From 4eb862408081a48bf127a0eb251266592c1cf9c2 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Wed, 7 Oct 2026 19:45:14 +0530 Subject: [PATCH 01/10] Add @Avinash2Suresh as a code owner --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 17a4e6de4d..dac883d426 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @marcoskirsch @ni-jfitzger @vnktshr21 +* @marcoskirsch @ni-jfitzger @vnktshr21 @Avinash2Suresh From 8305ba26e923b280a766b480f52f77b1170c6fcd Mon Sep 17 00:00:00 2001 From: Divakar Date: Thu, 8 Oct 2026 16:17:45 +0530 Subject: [PATCH 02/10] Remove @Avinash2Suresh from CODEOWNERS --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dac883d426..17a4e6de4d 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @marcoskirsch @ni-jfitzger @vnktshr21 @Avinash2Suresh +* @marcoskirsch @ni-jfitzger @vnktshr21 From 5eca951762be68badc222af0526faab92af32811 Mon Sep 17 00:00:00 2001 From: "Selvam, Divakar" Date: Thu, 29 Oct 2026 22:57:35 +0530 Subject: [PATCH 03/10] Add NI-Digital burst with conditional trigger example --- CHANGELOG.md | 1 + docs/nidigital/examples.rst | 9 ++ .../Pattern.digipat | Bin 0 -> 7186 bytes .../PinLevels.digilevels | 15 +++ .../PinMap.pinmap | 51 ++++++++ .../Specifications.specs | 9 ++ .../Timing.digitiming | 23 ++++ .../burst_with_conditional_trigger.digiproj | 38 ++++++ ...idigital_burst_with_conditional_trigger.py | 115 ++++++++++++++++++ 9 files changed, 261 insertions(+) create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/Pattern.digipat create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/PinLevels.digilevels create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/PinMap.pinmap create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/Specifications.specs create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/Timing.digitiming create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj create mode 100644 src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc3af6804..cf06cfa156 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_burst_with_conditional_trigger.py` example. - Changed - Removed diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst index b8c8cc689a..5518f79e0e 100644 --- a/docs/nidigital/examples.rst +++ b/docs/nidigital/examples.rst @@ -3,6 +3,15 @@ Examples `You can download all nidigital examples for latest version here `_ +nidigital_burst_with_conditional_trigger.py +------------------------------------------- + +.. literalinclude:: ../../src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_burst_with_conditional_trigger.py) `_ + nidigital_burst_with_start_trigger.py ------------------------------------- diff --git a/src/nidigital/examples/burst_with_conditional_trigger/Pattern.digipat b/src/nidigital/examples/burst_with_conditional_trigger/Pattern.digipat new file mode 100644 index 0000000000000000000000000000000000000000..9bcce0423550d06e7f9d53acffa4e33f499352c7 GIT binary patch literal 7186 zcmcgwTW=dh6y8uMy^vC9QD`aD5ztL2!cCe&x#!|Eb(_#AaT6p2?Z%!Y+uFNkJnHe=V*5>uTp`#q=Fq@Q0N5fqaDq;+TV%x9aby2jrK(vkn)$kg}}+FStsyZZ{dnJ z?JTJs#7aa3!MdMX(!QvOCa{sG=!{871mzGtMy|VrFhNX1Vm#nV+O&)XFM&4+F$pk_6Oa)oe{)jej z3*JW-b(kf*%~+QNSyn_+EG!)*rO%kFC1DrD#3=mfLeUQzTC92YBnYm<)RH!HwQQ|W z1d)Ieb3rJGVn6A6X{`#4#Qr8th6#e~IciB;$ih!!fnP4RF#fWc1R>*v7#SD*px|ix zC_ToKV5nGgn@W=K2Ga*Z5`D!x)Ih>J%vmT6hVkTK#lfl6&bF3 zLqT@Y)hesYfr=`Zc}Ph)7mVk^{a}V@{9wc{dm7swd(9+!gZ_sJ?o5_0T~?|%l&33S zH)fekvM~kYnXo%1oR!hsf|@AjwOh=)D!5uwIjKt~tsL}%@wB*G(e6q)+L?88dNJ({ zuWD5SDayS`I!OP+2E)HmF{~Yq<1~V_MyptwQ~`OI){a)gc|Us-+=uN-?h)n`j2Da> zY6W-Nql;WQi*Gow^dB<4U_AY?YI?qHZljh;_&HMxf|^S#Cu!0i_p?rZ+?iAP7N2ef z79$8TC#gN$F{T*E!m_oX?)WT35JI|Rg-oe=6(}#Oa-kFq!~`)UB6eks@3QEQxy(y| z0;UlJGmaT^O-5I6QEf+rJXRwJHHmmNEeuhXl?Xx!-#{KDuI$?|EV%q*kl60RqM1ez z%%`ZCVG;NE;vA?F6}xfeE$GEk3o>?z^$0>wPmG?F%C$LiIG$0I*%E zex8wSB3{fA*tc2hIM{jf~N6od)~Ci^tArVRE*_P7w&xmMz4 z&~TTa&*sY*C8g#j7MDy>al4-2PKgP|HW7Io&SJO`<#7U4d_OqLkCTjWR7cQxbofi6 z8HRp-U|zDisn1-Onn4!A4wG$$d(SaKTwMhUF2z=U%o^^o{9-FI4m?;K1rk8PkaFG#Xo2@japN%R%bIdP@u}7(y z(U9NL(En)bdx^aZ!uzYWy|<&hmsyS={{3G^tygY!-Zir@&3;D>|4qdQ z!o?uYbaI&=j4|$F)lD~FSGk#IdO?hRo|>8I#@B=v+-8v@K}b3s zFR49QKg*)hV#d{ literal 0 HcmV?d00001 diff --git a/src/nidigital/examples/burst_with_conditional_trigger/PinLevels.digilevels b/src/nidigital/examples/burst_with_conditional_trigger/PinLevels.digilevels new file mode 100644 index 0000000000..35dc1d1866 --- /dev/null +++ b/src/nidigital/examples/burst_with_conditional_trigger/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/burst_with_conditional_trigger/PinMap.pinmap b/src/nidigital/examples/burst_with_conditional_trigger/PinMap.pinmap new file mode 100644 index 0000000000..d6fa6148d0 --- /dev/null +++ b/src/nidigital/examples/burst_with_conditional_trigger/PinMap.pinmap @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/nidigital/examples/burst_with_conditional_trigger/Specifications.specs b/src/nidigital/examples/burst_with_conditional_trigger/Specifications.specs new file mode 100644 index 0000000000..51ba58bb5a --- /dev/null +++ b/src/nidigital/examples/burst_with_conditional_trigger/Specifications.specs @@ -0,0 +1,9 @@ + + +
+ + 1 µs + +
+ +
\ No newline at end of file diff --git a/src/nidigital/examples/burst_with_conditional_trigger/Timing.digitiming b/src/nidigital/examples/burst_with_conditional_trigger/Timing.digitiming new file mode 100644 index 0000000000..d020f8c7bb --- /dev/null +++ b/src/nidigital/examples/burst_with_conditional_trigger/Timing.digitiming @@ -0,0 +1,23 @@ + + + + + + timing.period + + + + 0 µs + timing.period / 2 + timing.period + + + (3 * timing.period) / 4 + + Pattern + + + + + + \ No newline at end of file diff --git a/src/nidigital/examples/burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj b/src/nidigital/examples/burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj new file mode 100644 index 0000000000..4d3d3e03af --- /dev/null +++ b/src/nidigital/examples/burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py b/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py new file mode 100644 index 0000000000..df6582eb7e --- /dev/null +++ b/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py @@ -0,0 +1,115 @@ +#!/usr/bin/python + +import argparse +import nidigital +import os +import sys + + +def example(resource_name, options, trigger_type, trigger_source, trigger_edge, send_software_trigger): + + with nidigital.Session(resource_name=resource_name, reset_device=True, options=options) as session: + + directory = os.path.dirname(os.path.abspath(__file__)) + + # 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) + + # Load the specifications (.specs), levels (.digilevels), and timing (.digitiming) sheets created using the Digital Pattern Editor + spec_filename = os.path.join(directory, 'Specifications.specs') + levels_filename = os.path.join(directory, 'PinLevels.digilevels') + timing_filename = os.path.join(directory, 'Timing.digitiming') + session.load_specifications_levels_and_timing(spec_filename, levels_filename, timing_filename) + + # Apply the settings from the levels and timing sheets we just loaded to the session + session.apply_levels_and_timing(levels_filename, timing_filename) + + # Load the pattern file (.digipat) created using the Digital Pattern Editor + pattern_filename = os.path.join(directory, 'Pattern.digipat') + session.load_pattern(pattern_filename) + + # Configure the conditional jump trigger instance used by the pattern + trigger_identifier = 'conditionalJumpTrigger0' + conditional_trigger = session.conditional_jump_triggers[trigger_identifier] + conditional_trigger.conditional_jump_trigger_type = trigger_type + if trigger_type == nidigital.TriggerType.DIGITAL_EDGE: + # Specify a source and edge for the external conditional jump trigger + conditional_trigger.digital_edge_conditional_jump_trigger_source = trigger_source + conditional_trigger.digital_edge_conditional_jump_trigger_edge = trigger_edge + + try: + print('Start bursting pattern') + if trigger_type == nidigital.TriggerType.SOFTWARE: + # Start the burst without blocking so the software conditional trigger can be sent + session.burst_pattern(start_label='new_pattern', wait_until_done=False) + if not send_software_trigger: + print('Pattern burst stopped without sending a software trigger') + return + + # Send the software conditional trigger and wait until the pattern is done bursting + session.send_software_edge_trigger(nidigital.SoftwareTrigger.CONDITIONAL_JUMP, trigger_identifier) + session.wait_until_done() + else: + # Burst the pattern and block until completion, including any wait for an external conditional trigger + session.burst_pattern(start_label='new_pattern') + finally: + try: + # Abort any pending burst before disconnecting the channels + session.abort() + finally: + # Disconnect all channels using programmable onboard switching + session.selected_function = nidigital.SelectedFunction.DISCONNECT + print('Done bursting pattern') + + +def _main(argsv): + parser = argparse.ArgumentParser(description='Demonstrates how to burst a pattern on the digital pattern instrument using a conditional trigger.', 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('-tt', '--trigger-type', default='SOFTWARE', type=str.upper, choices=nidigital.TriggerType.__members__, help='Disables the conditional jump trigger or configures it for either hardware triggering or software triggering.') + parser.add_argument('-ts', '--trigger-source', default='/PXI1Slot2/PXI_Trig0', help='Configures the digital trigger source terminal for a conditional jump trigger instance.') + parser.add_argument('-te', '--trigger-edge', default='RISING', type=str.upper, choices=nidigital.DigitalEdge.__members__, help='Configures the active edge of the incoming trigger signal for the conditional jump trigger instance.') + parser.add_argument('--send-software-trigger', default='True', choices=['True', 'False'], help='Whether to send the software conditional trigger or stop the burst without sending it; applies only to SOFTWARE mode.') + args = parser.parse_args(argsv) + + example(args.resource_name, + 'Simulate=1, DriverSetup=Model:6570' if args.simulate == 'True' else '', + nidigital.TriggerType[args.trigger_type], args.trigger_source, + nidigital.DigitalEdge[args.trigger_edge], args.send_software_trigger == 'True') + + +def main(): + _main(sys.argv[1:]) + + +def test_main(): + _main([]) + _main(['--trigger-type', 'NONE']) + _main(['--trigger-type', 'DIGITAL_EDGE']) + _main(['--trigger-type', 'DIGITAL_EDGE', '--trigger-edge', 'FALLING']) + _main(['--send-software-trigger', 'False']) + + +def test_example(): + resource_name = 'PXI1Slot2,PXI1Slot3' + options = {'simulate': True, 'driver_setup': {'Model': '6570'}} + trigger_source = '/PXI1Slot2/PXI_Trig0' + trigger_edge = nidigital.DigitalEdge.RISING + + trigger_type = nidigital.TriggerType.SOFTWARE + example(resource_name, options, trigger_type, trigger_source, trigger_edge, send_software_trigger=True) + example(resource_name, options, trigger_type, trigger_source, trigger_edge, send_software_trigger=False) + + trigger_type = nidigital.TriggerType.NONE + example(resource_name, options, trigger_type, trigger_source, trigger_edge, send_software_trigger=True) + + trigger_type = nidigital.TriggerType.DIGITAL_EDGE + example(resource_name, options, trigger_type, trigger_source, trigger_edge, send_software_trigger=True) + + trigger_edge = nidigital.DigitalEdge.FALLING + example(resource_name, options, trigger_type, trigger_source, trigger_edge, send_software_trigger=True) + + +if __name__ == '__main__': + main() From d1153aac1f124b83c35a93e5c5c6c41bf67d6f49 Mon Sep 17 00:00:00 2001 From: "Selvam, Divakar" Date: Wed, 4 Nov 2026 18:47:43 +0530 Subject: [PATCH 04/10] removing self explainatory comments Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../nidigital_burst_with_conditional_trigger.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py b/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py index df6582eb7e..321bec4aac 100644 --- a/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py +++ b/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py @@ -12,29 +12,23 @@ def example(resource_name, options, trigger_type, trigger_source, trigger_edge, directory = os.path.dirname(os.path.abspath(__file__)) - # 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) - # Load the specifications (.specs), levels (.digilevels), and timing (.digitiming) sheets created using the Digital Pattern Editor spec_filename = os.path.join(directory, 'Specifications.specs') levels_filename = os.path.join(directory, 'PinLevels.digilevels') timing_filename = os.path.join(directory, 'Timing.digitiming') session.load_specifications_levels_and_timing(spec_filename, levels_filename, timing_filename) - # Apply the settings from the levels and timing sheets we just loaded to the session session.apply_levels_and_timing(levels_filename, timing_filename) - # Load the pattern file (.digipat) created using the Digital Pattern Editor pattern_filename = os.path.join(directory, 'Pattern.digipat') session.load_pattern(pattern_filename) - # Configure the conditional jump trigger instance used by the pattern trigger_identifier = 'conditionalJumpTrigger0' conditional_trigger = session.conditional_jump_triggers[trigger_identifier] conditional_trigger.conditional_jump_trigger_type = trigger_type if trigger_type == nidigital.TriggerType.DIGITAL_EDGE: - # Specify a source and edge for the external conditional jump trigger conditional_trigger.digital_edge_conditional_jump_trigger_source = trigger_source conditional_trigger.digital_edge_conditional_jump_trigger_edge = trigger_edge @@ -47,18 +41,14 @@ def example(resource_name, options, trigger_type, trigger_source, trigger_edge, print('Pattern burst stopped without sending a software trigger') return - # Send the software conditional trigger and wait until the pattern is done bursting session.send_software_edge_trigger(nidigital.SoftwareTrigger.CONDITIONAL_JUMP, trigger_identifier) session.wait_until_done() else: - # Burst the pattern and block until completion, including any wait for an external conditional trigger session.burst_pattern(start_label='new_pattern') finally: try: - # Abort any pending burst before disconnecting the channels session.abort() finally: - # Disconnect all channels using programmable onboard switching session.selected_function = nidigital.SelectedFunction.DISCONNECT print('Done bursting pattern') From 64af3f80f8ce23cd1ed540e4b2f471f64d79e3b2 Mon Sep 17 00:00:00 2001 From: "Selvam, Divakar" Date: Wed, 4 Nov 2026 18:51:46 +0530 Subject: [PATCH 05/10] Update resource-name argument description Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../nidigital_burst_with_conditional_trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py b/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py index 321bec4aac..e8d659d6b3 100644 --- a/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py +++ b/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py @@ -55,7 +55,7 @@ def example(resource_name, options, trigger_type, trigger_source, trigger_edge, def _main(argsv): parser = argparse.ArgumentParser(description='Demonstrates how to burst a pattern on the digital pattern instrument using a conditional trigger.', 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('-tt', '--trigger-type', default='SOFTWARE', type=str.upper, choices=nidigital.TriggerType.__members__, help='Disables the conditional jump trigger or configures it for either hardware triggering or software triggering.') parser.add_argument('-ts', '--trigger-source', default='/PXI1Slot2/PXI_Trig0', help='Configures the digital trigger source terminal for a conditional jump trigger instance.') From 5ff15cc9e36b661b2d5a1e2b4883e79b02153f63 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Thu, 5 Nov 2026 15:45:42 +0000 Subject: [PATCH 06/10] 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 07/10] 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 2aa6cf0de270a7c2be5329e5adf5b940a44b753b Mon Sep 17 00:00:00 2001 From: "Selvam, Divakar" Date: Wed, 11 Nov 2026 11:52:30 +0530 Subject: [PATCH 08/10] Trigger CI build From 85c65db5ef5e225c17315b391932f70c68d15427 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Mon, 16 Nov 2026 09:26:17 +0000 Subject: [PATCH 09/10] Renaming the example --- README.rst | 665 - docs/nidcpower/.readthedocs.yaml | 51 - docs/nidcpower/about_nidcpower.inc | 15 - docs/nidcpower/class.rst | 12281 ---------------- docs/nidcpower/conf.py | 200 - docs/nidcpower/enums.rst | 1560 -- docs/nidcpower/errors.rst | 100 - docs/nidcpower/examples.rst | 68 - docs/nidcpower/grpc_session_options.rst | 139 - docs/nidcpower/index.rst | 31 - docs/nidcpower/installation.inc | 13 - docs/nidcpower/nidcpower.rst | 9 - docs/nidcpower/rep_caps.rst | 50 - docs/nidcpower/status.inc | 46 - docs/nidcpower/toc.inc | 12 - docs/nidigital/.readthedocs.yaml | 51 - docs/nidigital/about_nidigital.inc | 15 - docs/nidigital/class.rst | 5724 ------- docs/nidigital/conf.py | 200 - docs/nidigital/enums.rst | 799 - docs/nidigital/errors.rst | 100 - docs/nidigital/examples.rst | 50 - docs/nidigital/grpc_session_options.rst | 139 - docs/nidigital/index.rst | 31 - docs/nidigital/installation.inc | 13 - docs/nidigital/nidigital.rst | 9 - docs/nidigital/rep_caps.rst | 192 - docs/nidigital/status.inc | 46 - docs/nidigital/toc.inc | 12 - docs/nidmm/.readthedocs.yaml | 51 - docs/nidmm/about_nidmm.inc | 15 - docs/nidmm/class.rst | 3552 ----- docs/nidmm/conf.py | 200 - docs/nidmm/enums.rst | 1182 -- docs/nidmm/errors.rst | 100 - docs/nidmm/examples.rst | 131 - docs/nidmm/grpc_session_options.rst | 139 - docs/nidmm/index.rst | 31 - docs/nidmm/installation.inc | 13 - docs/nidmm/nidmm.rst | 9 - docs/nidmm/status.inc | 46 - docs/nidmm/toc.inc | 11 - docs/nifgen/.readthedocs.yaml | 51 - docs/nifgen/about_nifgen.inc | 15 - docs/nifgen/class.rst | 6185 -------- docs/nifgen/conf.py | 200 - docs/nifgen/enums.rst | 905 -- docs/nifgen/errors.rst | 100 - docs/nifgen/examples.rst | 41 - docs/nifgen/grpc_session_options.rst | 139 - docs/nifgen/index.rst | 31 - docs/nifgen/installation.inc | 13 - docs/nifgen/nifgen.rst | 9 - docs/nifgen/rep_caps.rst | 116 - docs/nifgen/status.inc | 46 - docs/nifgen/toc.inc | 12 - docs/nimodinst/.readthedocs.yaml | 51 - docs/nimodinst/about_nimodinst.inc | 15 - docs/nimodinst/class.rst | 267 - docs/nimodinst/conf.py | 200 - docs/nimodinst/errors.rst | 70 - docs/nimodinst/examples.rst | 14 - docs/nimodinst/index.rst | 31 - docs/nimodinst/installation.inc | 13 - docs/nimodinst/nimodinst.rst | 9 - docs/nimodinst/status.inc | 46 - docs/nimodinst/toc.inc | 9 - docs/nirfsa/.readthedocs.yaml | 51 - docs/nirfsa/about_nirfsa.inc | 15 - docs/nirfsa/class.rst | 10726 -------------- docs/nirfsa/conf.py | 200 - docs/nirfsa/enums.rst | 3510 ----- docs/nirfsa/errors.rst | 100 - docs/nirfsa/examples.rst | 23 - docs/nirfsa/grpc_session_options.rst | 139 - docs/nirfsa/index.rst | 30 - docs/nirfsa/installation.inc | 13 - docs/nirfsa/nirfsa.rst | 9 - docs/nirfsa/rep_caps.rst | 88 - docs/nirfsa/status.inc | 46 - docs/nirfsa/toc.inc | 12 - docs/nirfsg/.readthedocs.yaml | 51 - docs/nirfsg/about_nirfsg.inc | 15 - docs/nirfsg/class.rst | 10984 -------------- docs/nirfsg/conf.py | 200 - docs/nirfsg/enums.rst | 1990 --- docs/nirfsg/errors.rst | 100 - docs/nirfsg/examples.rst | 32 - docs/nirfsg/grpc_session_options.rst | 139 - docs/nirfsg/index.rst | 30 - docs/nirfsg/installation.inc | 13 - docs/nirfsg/nirfsg.rst | 9 - docs/nirfsg/rep_caps.rst | 166 - docs/nirfsg/status.inc | 46 - docs/nirfsg/toc.inc | 12 - docs/niscope/.readthedocs.yaml | 51 - docs/niscope/about_niscope.inc | 15 - docs/niscope/class.rst | 7483 ---------- docs/niscope/conf.py | 200 - docs/niscope/enums.rst | 1946 --- docs/niscope/errors.rst | 100 - docs/niscope/examples.rst | 50 - docs/niscope/grpc_session_options.rst | 139 - docs/niscope/index.rst | 31 - docs/niscope/installation.inc | 13 - docs/niscope/niscope.rst | 9 - docs/niscope/rep_caps.rst | 50 - docs/niscope/status.inc | 46 - docs/niscope/toc.inc | 12 - docs/nise/.readthedocs.yaml | 51 - docs/nise/about_nise.inc | 15 - docs/nise/class.rst | 716 - docs/nise/conf.py | 200 - docs/nise/enums.rst | 190 - docs/nise/errors.rst | 80 - docs/nise/examples.rst | 14 - docs/nise/index.rst | 31 - docs/nise/installation.inc | 13 - docs/nise/nise.rst | 9 - docs/nise/status.inc | 46 - docs/nise/toc.inc | 10 - docs/niswitch/.readthedocs.yaml | 51 - docs/niswitch/about_niswitch.inc | 15 - docs/niswitch/class.rst | 2668 ---- docs/niswitch/conf.py | 200 - docs/niswitch/enums.rst | 1060 -- docs/niswitch/errors.rst | 100 - docs/niswitch/examples.rst | 32 - docs/niswitch/grpc_session_options.rst | 139 - docs/niswitch/index.rst | 31 - docs/niswitch/installation.inc | 13 - docs/niswitch/niswitch.rst | 9 - docs/niswitch/rep_caps.rst | 38 - docs/niswitch/status.inc | 46 - docs/niswitch/toc.inc | 12 - docs/nitclk/.readthedocs.yaml | 51 - docs/nitclk/about_nitclk.inc | 15 - docs/nitclk/class.rst | 756 - docs/nitclk/conf.py | 200 - docs/nitclk/errors.rst | 70 - docs/nitclk/examples.rst | 14 - docs/nitclk/index.rst | 31 - docs/nitclk/installation.inc | 13 - docs/nitclk/nitclk.rst | 9 - docs/nitclk/status.inc | 46 - docs/nitclk/toc.inc | 9 - generated/nidcpower/README.rst | 192 - generated/nidcpower/nidcpower/VERSION | 2 - generated/nidcpower/nidcpower/__init__.py | 111 - generated/nidcpower/nidcpower/_attributes.py | 167 - generated/nidcpower/nidcpower/_converters.py | 394 - .../nidcpower/_grpc_stub_interpreter.py | 531 - generated/nidcpower/nidcpower/_library.py | 671 - .../nidcpower/_library_interpreter.py | 782 - .../nidcpower/nidcpower/_library_singleton.py | 57 - generated/nidcpower/nidcpower/_visatype.py | 29 - generated/nidcpower/nidcpower/enums.py | 680 - generated/nidcpower/nidcpower/errors.py | 126 - .../nidcpower/grpc_session_options.py | 78 - .../nidcpower/lcr_load_compensation_spot.py | 106 - .../nidcpower/nidcpower/lcr_measurement.py | 201 - .../nidcpower/nidcpower/nidcpower_pb2.py | 662 - .../nidcpower/nidcpower/nidcpower_pb2_grpc.py | 4884 ------ generated/nidcpower/nidcpower/nidevice_pb2.py | 32 - .../nidcpower/nidcpower/nidevice_pb2_grpc.py | 4 - generated/nidcpower/nidcpower/session.py | 8589 ----------- .../nidcpower/unit_tests/_matchers.py | 317 - .../nidcpower/unit_tests/_mock_helper.py | 1074 -- .../nidcpower/unit_tests/test_nidcpower.py | 352 - generated/nidcpower/setup.py | 63 - generated/nidcpower/tox-system_tests.ini | 73 - generated/nidigital/README.rst | 202 - generated/nidigital/nidigital/VERSION | 2 - generated/nidigital/nidigital/__init__.py | 105 - generated/nidigital/nidigital/_attributes.py | 167 - generated/nidigital/nidigital/_converters.py | 365 - .../nidigital/_grpc_stub_interpreter.py | 667 - generated/nidigital/nidigital/_library.py | 876 -- .../nidigital/_library_interpreter.py | 1047 -- .../nidigital/nidigital/_library_singleton.py | 57 - generated/nidigital/nidigital/_visatype.py | 29 - generated/nidigital/nidigital/enums.py | 356 - generated/nidigital/nidigital/errors.py | 126 - .../nidigital/grpc_session_options.py | 78 - .../history_ram_cycle_information.py | 52 - generated/nidigital/nidigital/nidevice_pb2.py | 32 - .../nidigital/nidigital/nidevice_pb2_grpc.py | 4 - .../nidigital/nidigitalpattern_pb2.py | 591 - .../nidigital/nidigitalpattern_pb2_grpc.py | 4323 ------ generated/nidigital/nidigital/session.py | 3991 ----- .../nidigital/unit_tests/_matchers.py | 317 - .../nidigital/unit_tests/_mock_helper.py | 1320 -- .../nidigital/unit_tests/test_nidigital.py | 371 - generated/nidigital/setup.py | 64 - generated/nidigital/tox-system_tests.ini | 74 - generated/nidmm/README.rst | 171 - generated/nidmm/nidmm/VERSION | 2 - generated/nidmm/nidmm/__init__.py | 103 - generated/nidmm/nidmm/_attributes.py | 167 - generated/nidmm/nidmm/_converters.py | 365 - .../nidmm/nidmm/_grpc_stub_interpreter.py | 398 - generated/nidmm/nidmm/_library.py | 478 - generated/nidmm/nidmm/_library_interpreter.py | 570 - generated/nidmm/nidmm/_library_singleton.py | 57 - generated/nidmm/nidmm/_visatype.py | 29 - generated/nidmm/nidmm/enums.py | 492 - generated/nidmm/nidmm/errors.py | 126 - generated/nidmm/nidmm/grpc_session_options.py | 78 - generated/nidmm/nidmm/nidevice_pb2.py | 32 - generated/nidmm/nidmm/nidevice_pb2_grpc.py | 4 - generated/nidmm/nidmm/nidmm_pb2.py | 425 - generated/nidmm/nidmm/nidmm_pb2_grpc.py | 2838 ---- generated/nidmm/nidmm/session.py | 2499 ---- generated/nidmm/nidmm/unit_tests/_matchers.py | 317 - .../nidmm/nidmm/unit_tests/_mock_helper.py | 745 - generated/nidmm/setup.py | 63 - generated/nidmm/tox-system_tests.ini | 65 - generated/nifake/README.rst | 21 - generated/nifake/nifake/VERSION | 2 - generated/nifake/nifake/__init__.py | 115 - generated/nifake/nifake/_attributes.py | 167 - generated/nifake/nifake/_complextype.py | 16 - generated/nifake/nifake/_converters.py | 389 - .../nifake/nifake/_grpc_stub_interpreter.py | 579 - generated/nifake/nifake/_library.py | 728 - .../nifake/nifake/_library_interpreter.py | 843 -- generated/nifake/nifake/_library_singleton.py | 57 - generated/nifake/nifake/_visatype.py | 29 - generated/nifake/nifake/custom_struct.py | 47 - .../nifake/custom_struct_nested_typedef.py | 60 - .../nifake/nifake/custom_struct_typedef.py | 42 - generated/nifake/nifake/enums.py | 103 - generated/nifake/nifake/errors.py | 126 - .../nifake/nifake/grpc_session_options.py | 78 - generated/nifake/nifake/nidevice_pb2.py | 32 - generated/nifake/nifake/nidevice_pb2_grpc.py | 4 - generated/nifake/nifake/nifake_pb2.py | 489 - generated/nifake/nifake/nifake_pb2_grpc.py | 3432 ----- generated/nifake/nifake/session.py | 1855 --- .../nifake/nifake/unit_tests/_matchers.py | 369 - .../nifake/nifake/unit_tests/_mock_helper.py | 1212 -- .../nifake/nifake/unit_tests/conftest.py | 19 - .../nifake/unit_tests/test_converters.py | 421 - .../nifake/nifake/unit_tests/test_grpc.py | 1111 -- .../unit_tests/test_library_interpreter.py | 1023 -- .../unit_tests/test_library_singleton.py | 7 - .../nifake/nifake/unit_tests/test_session.py | 1057 -- generated/nifake/setup.py | 65 - generated/nifake/tox-system_tests.ini | 73 - generated/nifgen/README.rst | 174 - generated/nifgen/nifgen/VERSION | 2 - generated/nifgen/nifgen/__init__.py | 103 - generated/nifgen/nifgen/_attributes.py | 167 - generated/nifgen/nifgen/_converters.py | 365 - .../nifgen/nifgen/_grpc_stub_interpreter.py | 527 - generated/nifgen/nifgen/_library.py | 667 - .../nifgen/nifgen/_library_interpreter.py | 782 - generated/nifgen/nifgen/_library_singleton.py | 57 - generated/nifgen/nifgen/_visatype.py | 29 - generated/nifgen/nifgen/enums.py | 390 - generated/nifgen/nifgen/errors.py | 126 - .../nifgen/nifgen/grpc_session_options.py | 78 - generated/nifgen/nifgen/nidevice_pb2.py | 32 - generated/nifgen/nifgen/nidevice_pb2_grpc.py | 4 - generated/nifgen/nifgen/nifgen_pb2.py | 592 - generated/nifgen/nifgen/nifgen_pb2_grpc.py | 4290 ------ generated/nifgen/nifgen/session.py | 4413 ------ .../nifgen/nifgen/unit_tests/_matchers.py | 317 - .../nifgen/nifgen/unit_tests/_mock_helper.py | 1013 -- generated/nifgen/setup.py | 64 - generated/nifgen/tox-system_tests.ini | 73 - generated/nimodinst/README.rst | 171 - generated/nimodinst/nimodinst/VERSION | 2 - generated/nimodinst/nimodinst/__init__.py | 101 - generated/nimodinst/nimodinst/_converters.py | 365 - generated/nimodinst/nimodinst/_library.py | 73 - .../nimodinst/_library_interpreter.py | 135 - .../nimodinst/nimodinst/_library_singleton.py | 57 - generated/nimodinst/nimodinst/_visatype.py | 29 - generated/nimodinst/nimodinst/errors.py | 96 - generated/nimodinst/nimodinst/session.py | 321 - .../nimodinst/unit_tests/_matchers.py | 317 - .../nimodinst/unit_tests/_mock_helper.py | 104 - .../nimodinst/unit_tests/test_modinst.py | 275 - generated/nimodinst/setup.py | 55 - generated/nimodinst/tox-system_tests.ini | 64 - generated/nirfsa/README.rst | 179 - generated/nirfsa/nirfsa/VERSION | 2 - generated/nirfsa/nirfsa/__init__.py | 115 - generated/nirfsa/nirfsa/_attributes.py | 167 - generated/nirfsa/nirfsa/_complextype.py | 16 - generated/nirfsa/nirfsa/_converters.py | 365 - .../nirfsa/nirfsa/_grpc_stub_interpreter.py | 598 - generated/nirfsa/nirfsa/_library.py | 701 - .../nirfsa/nirfsa/_library_interpreter.py | 773 - generated/nirfsa/nirfsa/_library_singleton.py | 57 - generated/nirfsa/nirfsa/_visatype.py | 29 - .../nirfsa/nirfsa/coefficient_info_type.py | 60 - generated/nirfsa/nirfsa/enums.py | 1479 -- generated/nirfsa/nirfsa/errors.py | 126 - .../nirfsa/nirfsa/grpc_session_options.py | 78 - generated/nirfsa/nirfsa/nidevice_pb2.py | 32 - generated/nirfsa/nirfsa/nidevice_pb2_grpc.py | 4 - generated/nirfsa/nirfsa/nirfsa_pb2.py | 492 - generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py | 3498 ----- generated/nirfsa/nirfsa/session.py | 8445 ----------- generated/nirfsa/nirfsa/spectrum_info_type.py | 112 - .../nirfsa/nirfsa/unit_tests/_matchers.py | 369 - .../nirfsa/nirfsa/unit_tests/_mock_helper.py | 1043 -- .../nirfsa/nirfsa/unit_tests/test_nirfsa.py | 25 - generated/nirfsa/nirfsa/waveform_info.py | 116 - generated/nirfsa/setup.py | 65 - generated/nirfsa/tox-system_tests.ini | 73 - generated/nirfsg/README.rst | 179 - generated/nirfsg/nirfsg/VERSION | 2 - generated/nirfsg/nirfsg/__init__.py | 103 - generated/nirfsg/nirfsg/_attributes.py | 167 - generated/nirfsg/nirfsg/_complextype.py | 16 - generated/nirfsg/nirfsg/_converters.py | 365 - .../nirfsg/nirfsg/_grpc_stub_interpreter.py | 629 - generated/nirfsg/nirfsg/_library.py | 776 - .../nirfsg/nirfsg/_library_interpreter.py | 820 -- generated/nirfsg/nirfsg/_library_singleton.py | 57 - generated/nirfsg/nirfsg/_visatype.py | 29 - generated/nirfsg/nirfsg/enums.py | 855 -- generated/nirfsg/nirfsg/errors.py | 126 - .../nirfsg/nirfsg/grpc_session_options.py | 78 - generated/nirfsg/nirfsg/nidevice_pb2.py | 32 - generated/nirfsg/nirfsg/nidevice_pb2_grpc.py | 4 - generated/nirfsg/nirfsg/nirfsg_pb2.py | 530 - generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py | 3762 ----- generated/nirfsg/nirfsg/session.py | 7416 ---------- .../nirfsg/nirfsg/unit_tests/_matchers.py | 369 - .../nirfsg/nirfsg/unit_tests/_mock_helper.py | 1124 -- generated/nirfsg/setup.py | 65 - generated/nirfsg/tox-system_tests.ini | 73 - generated/niscope/README.rst | 186 - generated/niscope/niscope/VERSION | 2 - generated/niscope/niscope/__init__.py | 109 - generated/niscope/niscope/_attributes.py | 167 - generated/niscope/niscope/_converters.py | 365 - .../niscope/niscope/_grpc_stub_interpreter.py | 463 - generated/niscope/niscope/_library.py | 599 - .../niscope/niscope/_library_interpreter.py | 729 - .../niscope/niscope/_library_singleton.py | 57 - generated/niscope/niscope/_visatype.py | 29 - generated/niscope/niscope/enums.py | 748 - generated/niscope/niscope/errors.py | 126 - .../niscope/niscope/grpc_session_options.py | 78 - .../niscope/niscope/measurement_stats.py | 43 - generated/niscope/niscope/nidevice_pb2.py | 32 - .../niscope/niscope/nidevice_pb2_grpc.py | 4 - generated/niscope/niscope/niscope_pb2.py | 452 - generated/niscope/niscope/niscope_pb2_grpc.py | 3003 ---- generated/niscope/niscope/session.py | 5224 ------- .../niscope/niscope/unit_tests/_matchers.py | 317 - .../niscope/unit_tests/_mock_helper.py | 971 -- .../niscope/unit_tests/test_niscope.py | 38 - generated/niscope/niscope/waveform_info.py | 148 - generated/niscope/setup.py | 64 - generated/niscope/tox-system_tests.ini | 73 - generated/nise/README.rst | 170 - generated/nise/nise/VERSION | 2 - generated/nise/nise/__init__.py | 102 - generated/nise/nise/_converters.py | 365 - generated/nise/nise/_library.py | 145 - generated/nise/nise/_library_interpreter.py | 188 - generated/nise/nise/_library_singleton.py | 57 - generated/nise/nise/_visatype.py | 29 - generated/nise/nise/enums.py | 80 - generated/nise/nise/errors.py | 103 - generated/nise/nise/session.py | 632 - generated/nise/nise/unit_tests/_matchers.py | 317 - .../nise/nise/unit_tests/_mock_helper.py | 214 - generated/nise/setup.py | 55 - generated/nise/tox-system_tests.ini | 64 - generated/niswitch/README.rst | 170 - generated/niswitch/niswitch/VERSION | 2 - generated/niswitch/niswitch/__init__.py | 103 - generated/niswitch/niswitch/_attributes.py | 167 - generated/niswitch/niswitch/_converters.py | 365 - .../niswitch/_grpc_stub_interpreter.py | 326 - generated/niswitch/niswitch/_library.py | 388 - .../niswitch/niswitch/_library_interpreter.py | 461 - .../niswitch/niswitch/_library_singleton.py | 57 - generated/niswitch/niswitch/_visatype.py | 29 - generated/niswitch/niswitch/enums.py | 472 - generated/niswitch/niswitch/errors.py | 126 - .../niswitch/niswitch/grpc_session_options.py | 78 - generated/niswitch/niswitch/nidevice_pb2.py | 32 - .../niswitch/niswitch/nidevice_pb2_grpc.py | 4 - generated/niswitch/niswitch/niswitch_pb2.py | 285 - .../niswitch/niswitch/niswitch_pb2_grpc.py | 1947 --- generated/niswitch/niswitch/session.py | 2262 --- .../niswitch/niswitch/unit_tests/_matchers.py | 317 - .../niswitch/unit_tests/_mock_helper.py | 508 - generated/niswitch/setup.py | 63 - generated/niswitch/tox-system_tests.ini | 65 - generated/nitclk/README.rst | 168 - generated/nitclk/nitclk/VERSION | 2 - generated/nitclk/nitclk/__init__.py | 111 - generated/nitclk/nitclk/_attributes.py | 167 - generated/nitclk/nitclk/_converters.py | 391 - generated/nitclk/nitclk/_library.py | 163 - .../nitclk/nitclk/_library_interpreter.py | 210 - generated/nitclk/nitclk/_library_singleton.py | 57 - generated/nitclk/nitclk/_visatype.py | 29 - generated/nitclk/nitclk/errors.py | 96 - generated/nitclk/nitclk/session.py | 876 -- .../nitclk/nitclk/unit_tests/_matchers.py | 317 - .../nitclk/nitclk/unit_tests/_mock_helper.py | 194 - .../nitclk/nitclk/unit_tests/test_nitclk.py | 286 - generated/nitclk/setup.py | 55 - generated/nitclk/tox-system_tests.ini | 72 - .../Pattern.digipat | Bin .../PinLevels.digilevels | 0 .../PinMap.pinmap | 0 .../Specifications.specs | 0 .../Timing.digitiming | 0 .../burst_with_conditional_trigger.digiproj | 0 ...idigital_burst_with_conditional_trigger.py | 0 421 files changed, 223571 deletions(-) delete mode 100644 README.rst delete mode 100644 docs/nidcpower/.readthedocs.yaml delete mode 100644 docs/nidcpower/about_nidcpower.inc delete mode 100644 docs/nidcpower/class.rst delete mode 100644 docs/nidcpower/conf.py delete mode 100644 docs/nidcpower/enums.rst delete mode 100644 docs/nidcpower/errors.rst delete mode 100644 docs/nidcpower/examples.rst delete mode 100644 docs/nidcpower/grpc_session_options.rst delete mode 100644 docs/nidcpower/index.rst delete mode 100644 docs/nidcpower/installation.inc delete mode 100644 docs/nidcpower/nidcpower.rst delete mode 100644 docs/nidcpower/rep_caps.rst delete mode 100644 docs/nidcpower/status.inc delete mode 100644 docs/nidcpower/toc.inc delete mode 100644 docs/nidigital/.readthedocs.yaml delete mode 100644 docs/nidigital/about_nidigital.inc delete mode 100644 docs/nidigital/class.rst delete mode 100644 docs/nidigital/conf.py delete mode 100644 docs/nidigital/enums.rst delete mode 100644 docs/nidigital/errors.rst delete mode 100644 docs/nidigital/examples.rst delete mode 100644 docs/nidigital/grpc_session_options.rst delete mode 100644 docs/nidigital/index.rst delete mode 100644 docs/nidigital/installation.inc delete mode 100644 docs/nidigital/nidigital.rst delete mode 100644 docs/nidigital/rep_caps.rst delete mode 100644 docs/nidigital/status.inc delete mode 100644 docs/nidigital/toc.inc delete mode 100644 docs/nidmm/.readthedocs.yaml delete mode 100644 docs/nidmm/about_nidmm.inc delete mode 100644 docs/nidmm/class.rst delete mode 100644 docs/nidmm/conf.py delete mode 100644 docs/nidmm/enums.rst delete mode 100644 docs/nidmm/errors.rst delete mode 100644 docs/nidmm/examples.rst delete mode 100644 docs/nidmm/grpc_session_options.rst delete mode 100644 docs/nidmm/index.rst delete mode 100644 docs/nidmm/installation.inc delete mode 100644 docs/nidmm/nidmm.rst delete mode 100644 docs/nidmm/status.inc delete mode 100644 docs/nidmm/toc.inc delete mode 100644 docs/nifgen/.readthedocs.yaml delete mode 100644 docs/nifgen/about_nifgen.inc delete mode 100644 docs/nifgen/class.rst delete mode 100644 docs/nifgen/conf.py delete mode 100644 docs/nifgen/enums.rst delete mode 100644 docs/nifgen/errors.rst delete mode 100644 docs/nifgen/examples.rst delete mode 100644 docs/nifgen/grpc_session_options.rst delete mode 100644 docs/nifgen/index.rst delete mode 100644 docs/nifgen/installation.inc delete mode 100644 docs/nifgen/nifgen.rst delete mode 100644 docs/nifgen/rep_caps.rst delete mode 100644 docs/nifgen/status.inc delete mode 100644 docs/nifgen/toc.inc delete mode 100644 docs/nimodinst/.readthedocs.yaml delete mode 100644 docs/nimodinst/about_nimodinst.inc delete mode 100644 docs/nimodinst/class.rst delete mode 100644 docs/nimodinst/conf.py delete mode 100644 docs/nimodinst/errors.rst delete mode 100644 docs/nimodinst/examples.rst delete mode 100644 docs/nimodinst/index.rst delete mode 100644 docs/nimodinst/installation.inc delete mode 100644 docs/nimodinst/nimodinst.rst delete mode 100644 docs/nimodinst/status.inc delete mode 100644 docs/nimodinst/toc.inc delete mode 100644 docs/nirfsa/.readthedocs.yaml delete mode 100644 docs/nirfsa/about_nirfsa.inc delete mode 100644 docs/nirfsa/class.rst delete mode 100644 docs/nirfsa/conf.py delete mode 100644 docs/nirfsa/enums.rst delete mode 100644 docs/nirfsa/errors.rst delete mode 100644 docs/nirfsa/examples.rst delete mode 100644 docs/nirfsa/grpc_session_options.rst delete mode 100644 docs/nirfsa/index.rst delete mode 100644 docs/nirfsa/installation.inc delete mode 100644 docs/nirfsa/nirfsa.rst delete mode 100644 docs/nirfsa/rep_caps.rst delete mode 100644 docs/nirfsa/status.inc delete mode 100644 docs/nirfsa/toc.inc delete mode 100644 docs/nirfsg/.readthedocs.yaml delete mode 100644 docs/nirfsg/about_nirfsg.inc delete mode 100644 docs/nirfsg/class.rst delete mode 100644 docs/nirfsg/conf.py delete mode 100644 docs/nirfsg/enums.rst delete mode 100644 docs/nirfsg/errors.rst delete mode 100644 docs/nirfsg/examples.rst delete mode 100644 docs/nirfsg/grpc_session_options.rst delete mode 100644 docs/nirfsg/index.rst delete mode 100644 docs/nirfsg/installation.inc delete mode 100644 docs/nirfsg/nirfsg.rst delete mode 100644 docs/nirfsg/rep_caps.rst delete mode 100644 docs/nirfsg/status.inc delete mode 100644 docs/nirfsg/toc.inc delete mode 100644 docs/niscope/.readthedocs.yaml delete mode 100644 docs/niscope/about_niscope.inc delete mode 100644 docs/niscope/class.rst delete mode 100644 docs/niscope/conf.py delete mode 100644 docs/niscope/enums.rst delete mode 100644 docs/niscope/errors.rst delete mode 100644 docs/niscope/examples.rst delete mode 100644 docs/niscope/grpc_session_options.rst delete mode 100644 docs/niscope/index.rst delete mode 100644 docs/niscope/installation.inc delete mode 100644 docs/niscope/niscope.rst delete mode 100644 docs/niscope/rep_caps.rst delete mode 100644 docs/niscope/status.inc delete mode 100644 docs/niscope/toc.inc delete mode 100644 docs/nise/.readthedocs.yaml delete mode 100644 docs/nise/about_nise.inc delete mode 100644 docs/nise/class.rst delete mode 100644 docs/nise/conf.py delete mode 100644 docs/nise/enums.rst delete mode 100644 docs/nise/errors.rst delete mode 100644 docs/nise/examples.rst delete mode 100644 docs/nise/index.rst delete mode 100644 docs/nise/installation.inc delete mode 100644 docs/nise/nise.rst delete mode 100644 docs/nise/status.inc delete mode 100644 docs/nise/toc.inc delete mode 100644 docs/niswitch/.readthedocs.yaml delete mode 100644 docs/niswitch/about_niswitch.inc delete mode 100644 docs/niswitch/class.rst delete mode 100644 docs/niswitch/conf.py delete mode 100644 docs/niswitch/enums.rst delete mode 100644 docs/niswitch/errors.rst delete mode 100644 docs/niswitch/examples.rst delete mode 100644 docs/niswitch/grpc_session_options.rst delete mode 100644 docs/niswitch/index.rst delete mode 100644 docs/niswitch/installation.inc delete mode 100644 docs/niswitch/niswitch.rst delete mode 100644 docs/niswitch/rep_caps.rst delete mode 100644 docs/niswitch/status.inc delete mode 100644 docs/niswitch/toc.inc delete mode 100644 docs/nitclk/.readthedocs.yaml delete mode 100644 docs/nitclk/about_nitclk.inc delete mode 100644 docs/nitclk/class.rst delete mode 100644 docs/nitclk/conf.py delete mode 100644 docs/nitclk/errors.rst delete mode 100644 docs/nitclk/examples.rst delete mode 100644 docs/nitclk/index.rst delete mode 100644 docs/nitclk/installation.inc delete mode 100644 docs/nitclk/nitclk.rst delete mode 100644 docs/nitclk/status.inc delete mode 100644 docs/nitclk/toc.inc delete mode 100644 generated/nidcpower/README.rst delete mode 100644 generated/nidcpower/nidcpower/VERSION delete mode 100644 generated/nidcpower/nidcpower/__init__.py delete mode 100644 generated/nidcpower/nidcpower/_attributes.py delete mode 100644 generated/nidcpower/nidcpower/_converters.py delete mode 100644 generated/nidcpower/nidcpower/_grpc_stub_interpreter.py delete mode 100644 generated/nidcpower/nidcpower/_library.py delete mode 100644 generated/nidcpower/nidcpower/_library_interpreter.py delete mode 100644 generated/nidcpower/nidcpower/_library_singleton.py delete mode 100644 generated/nidcpower/nidcpower/_visatype.py delete mode 100644 generated/nidcpower/nidcpower/enums.py delete mode 100644 generated/nidcpower/nidcpower/errors.py delete mode 100644 generated/nidcpower/nidcpower/grpc_session_options.py delete mode 100644 generated/nidcpower/nidcpower/lcr_load_compensation_spot.py delete mode 100644 generated/nidcpower/nidcpower/lcr_measurement.py delete mode 100644 generated/nidcpower/nidcpower/nidcpower_pb2.py delete mode 100644 generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py delete mode 100644 generated/nidcpower/nidcpower/nidevice_pb2.py delete mode 100644 generated/nidcpower/nidcpower/nidevice_pb2_grpc.py delete mode 100644 generated/nidcpower/nidcpower/session.py delete mode 100644 generated/nidcpower/nidcpower/unit_tests/_matchers.py delete mode 100644 generated/nidcpower/nidcpower/unit_tests/_mock_helper.py delete mode 100644 generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py delete mode 100644 generated/nidcpower/setup.py delete mode 100644 generated/nidcpower/tox-system_tests.ini delete mode 100644 generated/nidigital/README.rst delete mode 100644 generated/nidigital/nidigital/VERSION delete mode 100644 generated/nidigital/nidigital/__init__.py delete mode 100644 generated/nidigital/nidigital/_attributes.py delete mode 100644 generated/nidigital/nidigital/_converters.py delete mode 100644 generated/nidigital/nidigital/_grpc_stub_interpreter.py delete mode 100644 generated/nidigital/nidigital/_library.py delete mode 100644 generated/nidigital/nidigital/_library_interpreter.py delete mode 100644 generated/nidigital/nidigital/_library_singleton.py delete mode 100644 generated/nidigital/nidigital/_visatype.py delete mode 100644 generated/nidigital/nidigital/enums.py delete mode 100644 generated/nidigital/nidigital/errors.py delete mode 100644 generated/nidigital/nidigital/grpc_session_options.py delete mode 100644 generated/nidigital/nidigital/history_ram_cycle_information.py delete mode 100644 generated/nidigital/nidigital/nidevice_pb2.py delete mode 100644 generated/nidigital/nidigital/nidevice_pb2_grpc.py delete mode 100644 generated/nidigital/nidigital/nidigitalpattern_pb2.py delete mode 100644 generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py delete mode 100644 generated/nidigital/nidigital/session.py delete mode 100644 generated/nidigital/nidigital/unit_tests/_matchers.py delete mode 100644 generated/nidigital/nidigital/unit_tests/_mock_helper.py delete mode 100644 generated/nidigital/nidigital/unit_tests/test_nidigital.py delete mode 100644 generated/nidigital/setup.py delete mode 100644 generated/nidigital/tox-system_tests.ini delete mode 100644 generated/nidmm/README.rst delete mode 100644 generated/nidmm/nidmm/VERSION delete mode 100644 generated/nidmm/nidmm/__init__.py delete mode 100644 generated/nidmm/nidmm/_attributes.py delete mode 100644 generated/nidmm/nidmm/_converters.py delete mode 100644 generated/nidmm/nidmm/_grpc_stub_interpreter.py delete mode 100644 generated/nidmm/nidmm/_library.py delete mode 100644 generated/nidmm/nidmm/_library_interpreter.py delete mode 100644 generated/nidmm/nidmm/_library_singleton.py delete mode 100644 generated/nidmm/nidmm/_visatype.py delete mode 100644 generated/nidmm/nidmm/enums.py delete mode 100644 generated/nidmm/nidmm/errors.py delete mode 100644 generated/nidmm/nidmm/grpc_session_options.py delete mode 100644 generated/nidmm/nidmm/nidevice_pb2.py delete mode 100644 generated/nidmm/nidmm/nidevice_pb2_grpc.py delete mode 100644 generated/nidmm/nidmm/nidmm_pb2.py delete mode 100644 generated/nidmm/nidmm/nidmm_pb2_grpc.py delete mode 100644 generated/nidmm/nidmm/session.py delete mode 100644 generated/nidmm/nidmm/unit_tests/_matchers.py delete mode 100644 generated/nidmm/nidmm/unit_tests/_mock_helper.py delete mode 100644 generated/nidmm/setup.py delete mode 100644 generated/nidmm/tox-system_tests.ini delete mode 100644 generated/nifake/README.rst delete mode 100644 generated/nifake/nifake/VERSION delete mode 100644 generated/nifake/nifake/__init__.py delete mode 100644 generated/nifake/nifake/_attributes.py delete mode 100644 generated/nifake/nifake/_complextype.py delete mode 100644 generated/nifake/nifake/_converters.py delete mode 100644 generated/nifake/nifake/_grpc_stub_interpreter.py delete mode 100644 generated/nifake/nifake/_library.py delete mode 100644 generated/nifake/nifake/_library_interpreter.py delete mode 100644 generated/nifake/nifake/_library_singleton.py delete mode 100644 generated/nifake/nifake/_visatype.py delete mode 100644 generated/nifake/nifake/custom_struct.py delete mode 100644 generated/nifake/nifake/custom_struct_nested_typedef.py delete mode 100644 generated/nifake/nifake/custom_struct_typedef.py delete mode 100644 generated/nifake/nifake/enums.py delete mode 100644 generated/nifake/nifake/errors.py delete mode 100644 generated/nifake/nifake/grpc_session_options.py delete mode 100644 generated/nifake/nifake/nidevice_pb2.py delete mode 100644 generated/nifake/nifake/nidevice_pb2_grpc.py delete mode 100644 generated/nifake/nifake/nifake_pb2.py delete mode 100644 generated/nifake/nifake/nifake_pb2_grpc.py delete mode 100644 generated/nifake/nifake/session.py delete mode 100644 generated/nifake/nifake/unit_tests/_matchers.py delete mode 100644 generated/nifake/nifake/unit_tests/_mock_helper.py delete mode 100644 generated/nifake/nifake/unit_tests/conftest.py delete mode 100644 generated/nifake/nifake/unit_tests/test_converters.py delete mode 100644 generated/nifake/nifake/unit_tests/test_grpc.py delete mode 100644 generated/nifake/nifake/unit_tests/test_library_interpreter.py delete mode 100644 generated/nifake/nifake/unit_tests/test_library_singleton.py delete mode 100644 generated/nifake/nifake/unit_tests/test_session.py delete mode 100644 generated/nifake/setup.py delete mode 100644 generated/nifake/tox-system_tests.ini delete mode 100644 generated/nifgen/README.rst delete mode 100644 generated/nifgen/nifgen/VERSION delete mode 100644 generated/nifgen/nifgen/__init__.py delete mode 100644 generated/nifgen/nifgen/_attributes.py delete mode 100644 generated/nifgen/nifgen/_converters.py delete mode 100644 generated/nifgen/nifgen/_grpc_stub_interpreter.py delete mode 100644 generated/nifgen/nifgen/_library.py delete mode 100644 generated/nifgen/nifgen/_library_interpreter.py delete mode 100644 generated/nifgen/nifgen/_library_singleton.py delete mode 100644 generated/nifgen/nifgen/_visatype.py delete mode 100644 generated/nifgen/nifgen/enums.py delete mode 100644 generated/nifgen/nifgen/errors.py delete mode 100644 generated/nifgen/nifgen/grpc_session_options.py delete mode 100644 generated/nifgen/nifgen/nidevice_pb2.py delete mode 100644 generated/nifgen/nifgen/nidevice_pb2_grpc.py delete mode 100644 generated/nifgen/nifgen/nifgen_pb2.py delete mode 100644 generated/nifgen/nifgen/nifgen_pb2_grpc.py delete mode 100644 generated/nifgen/nifgen/session.py delete mode 100644 generated/nifgen/nifgen/unit_tests/_matchers.py delete mode 100644 generated/nifgen/nifgen/unit_tests/_mock_helper.py delete mode 100644 generated/nifgen/setup.py delete mode 100644 generated/nifgen/tox-system_tests.ini delete mode 100644 generated/nimodinst/README.rst delete mode 100644 generated/nimodinst/nimodinst/VERSION delete mode 100644 generated/nimodinst/nimodinst/__init__.py delete mode 100644 generated/nimodinst/nimodinst/_converters.py delete mode 100644 generated/nimodinst/nimodinst/_library.py delete mode 100644 generated/nimodinst/nimodinst/_library_interpreter.py delete mode 100644 generated/nimodinst/nimodinst/_library_singleton.py delete mode 100644 generated/nimodinst/nimodinst/_visatype.py delete mode 100644 generated/nimodinst/nimodinst/errors.py delete mode 100644 generated/nimodinst/nimodinst/session.py delete mode 100644 generated/nimodinst/nimodinst/unit_tests/_matchers.py delete mode 100644 generated/nimodinst/nimodinst/unit_tests/_mock_helper.py delete mode 100644 generated/nimodinst/nimodinst/unit_tests/test_modinst.py delete mode 100644 generated/nimodinst/setup.py delete mode 100644 generated/nimodinst/tox-system_tests.ini delete mode 100644 generated/nirfsa/README.rst delete mode 100644 generated/nirfsa/nirfsa/VERSION delete mode 100644 generated/nirfsa/nirfsa/__init__.py delete mode 100644 generated/nirfsa/nirfsa/_attributes.py delete mode 100644 generated/nirfsa/nirfsa/_complextype.py delete mode 100644 generated/nirfsa/nirfsa/_converters.py delete mode 100644 generated/nirfsa/nirfsa/_grpc_stub_interpreter.py delete mode 100644 generated/nirfsa/nirfsa/_library.py delete mode 100644 generated/nirfsa/nirfsa/_library_interpreter.py delete mode 100644 generated/nirfsa/nirfsa/_library_singleton.py delete mode 100644 generated/nirfsa/nirfsa/_visatype.py delete mode 100644 generated/nirfsa/nirfsa/coefficient_info_type.py delete mode 100644 generated/nirfsa/nirfsa/enums.py delete mode 100644 generated/nirfsa/nirfsa/errors.py delete mode 100644 generated/nirfsa/nirfsa/grpc_session_options.py delete mode 100644 generated/nirfsa/nirfsa/nidevice_pb2.py delete mode 100644 generated/nirfsa/nirfsa/nidevice_pb2_grpc.py delete mode 100644 generated/nirfsa/nirfsa/nirfsa_pb2.py delete mode 100644 generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py delete mode 100644 generated/nirfsa/nirfsa/session.py delete mode 100644 generated/nirfsa/nirfsa/spectrum_info_type.py delete mode 100644 generated/nirfsa/nirfsa/unit_tests/_matchers.py delete mode 100644 generated/nirfsa/nirfsa/unit_tests/_mock_helper.py delete mode 100644 generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py delete mode 100644 generated/nirfsa/nirfsa/waveform_info.py delete mode 100644 generated/nirfsa/setup.py delete mode 100644 generated/nirfsa/tox-system_tests.ini delete mode 100644 generated/nirfsg/README.rst delete mode 100644 generated/nirfsg/nirfsg/VERSION delete mode 100644 generated/nirfsg/nirfsg/__init__.py delete mode 100644 generated/nirfsg/nirfsg/_attributes.py delete mode 100644 generated/nirfsg/nirfsg/_complextype.py delete mode 100644 generated/nirfsg/nirfsg/_converters.py delete mode 100644 generated/nirfsg/nirfsg/_grpc_stub_interpreter.py delete mode 100644 generated/nirfsg/nirfsg/_library.py delete mode 100644 generated/nirfsg/nirfsg/_library_interpreter.py delete mode 100644 generated/nirfsg/nirfsg/_library_singleton.py delete mode 100644 generated/nirfsg/nirfsg/_visatype.py delete mode 100644 generated/nirfsg/nirfsg/enums.py delete mode 100644 generated/nirfsg/nirfsg/errors.py delete mode 100644 generated/nirfsg/nirfsg/grpc_session_options.py delete mode 100644 generated/nirfsg/nirfsg/nidevice_pb2.py delete mode 100644 generated/nirfsg/nirfsg/nidevice_pb2_grpc.py delete mode 100644 generated/nirfsg/nirfsg/nirfsg_pb2.py delete mode 100644 generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py delete mode 100644 generated/nirfsg/nirfsg/session.py delete mode 100644 generated/nirfsg/nirfsg/unit_tests/_matchers.py delete mode 100644 generated/nirfsg/nirfsg/unit_tests/_mock_helper.py delete mode 100644 generated/nirfsg/setup.py delete mode 100644 generated/nirfsg/tox-system_tests.ini delete mode 100644 generated/niscope/README.rst delete mode 100644 generated/niscope/niscope/VERSION delete mode 100644 generated/niscope/niscope/__init__.py delete mode 100644 generated/niscope/niscope/_attributes.py delete mode 100644 generated/niscope/niscope/_converters.py delete mode 100644 generated/niscope/niscope/_grpc_stub_interpreter.py delete mode 100644 generated/niscope/niscope/_library.py delete mode 100644 generated/niscope/niscope/_library_interpreter.py delete mode 100644 generated/niscope/niscope/_library_singleton.py delete mode 100644 generated/niscope/niscope/_visatype.py delete mode 100644 generated/niscope/niscope/enums.py delete mode 100644 generated/niscope/niscope/errors.py delete mode 100644 generated/niscope/niscope/grpc_session_options.py delete mode 100644 generated/niscope/niscope/measurement_stats.py delete mode 100644 generated/niscope/niscope/nidevice_pb2.py delete mode 100644 generated/niscope/niscope/nidevice_pb2_grpc.py delete mode 100644 generated/niscope/niscope/niscope_pb2.py delete mode 100644 generated/niscope/niscope/niscope_pb2_grpc.py delete mode 100644 generated/niscope/niscope/session.py delete mode 100644 generated/niscope/niscope/unit_tests/_matchers.py delete mode 100644 generated/niscope/niscope/unit_tests/_mock_helper.py delete mode 100644 generated/niscope/niscope/unit_tests/test_niscope.py delete mode 100644 generated/niscope/niscope/waveform_info.py delete mode 100644 generated/niscope/setup.py delete mode 100644 generated/niscope/tox-system_tests.ini delete mode 100644 generated/nise/README.rst delete mode 100644 generated/nise/nise/VERSION delete mode 100644 generated/nise/nise/__init__.py delete mode 100644 generated/nise/nise/_converters.py delete mode 100644 generated/nise/nise/_library.py delete mode 100644 generated/nise/nise/_library_interpreter.py delete mode 100644 generated/nise/nise/_library_singleton.py delete mode 100644 generated/nise/nise/_visatype.py delete mode 100644 generated/nise/nise/enums.py delete mode 100644 generated/nise/nise/errors.py delete mode 100644 generated/nise/nise/session.py delete mode 100644 generated/nise/nise/unit_tests/_matchers.py delete mode 100644 generated/nise/nise/unit_tests/_mock_helper.py delete mode 100644 generated/nise/setup.py delete mode 100644 generated/nise/tox-system_tests.ini delete mode 100644 generated/niswitch/README.rst delete mode 100644 generated/niswitch/niswitch/VERSION delete mode 100644 generated/niswitch/niswitch/__init__.py delete mode 100644 generated/niswitch/niswitch/_attributes.py delete mode 100644 generated/niswitch/niswitch/_converters.py delete mode 100644 generated/niswitch/niswitch/_grpc_stub_interpreter.py delete mode 100644 generated/niswitch/niswitch/_library.py delete mode 100644 generated/niswitch/niswitch/_library_interpreter.py delete mode 100644 generated/niswitch/niswitch/_library_singleton.py delete mode 100644 generated/niswitch/niswitch/_visatype.py delete mode 100644 generated/niswitch/niswitch/enums.py delete mode 100644 generated/niswitch/niswitch/errors.py delete mode 100644 generated/niswitch/niswitch/grpc_session_options.py delete mode 100644 generated/niswitch/niswitch/nidevice_pb2.py delete mode 100644 generated/niswitch/niswitch/nidevice_pb2_grpc.py delete mode 100644 generated/niswitch/niswitch/niswitch_pb2.py delete mode 100644 generated/niswitch/niswitch/niswitch_pb2_grpc.py delete mode 100644 generated/niswitch/niswitch/session.py delete mode 100644 generated/niswitch/niswitch/unit_tests/_matchers.py delete mode 100644 generated/niswitch/niswitch/unit_tests/_mock_helper.py delete mode 100644 generated/niswitch/setup.py delete mode 100644 generated/niswitch/tox-system_tests.ini delete mode 100644 generated/nitclk/README.rst delete mode 100644 generated/nitclk/nitclk/VERSION delete mode 100644 generated/nitclk/nitclk/__init__.py delete mode 100644 generated/nitclk/nitclk/_attributes.py delete mode 100644 generated/nitclk/nitclk/_converters.py delete mode 100644 generated/nitclk/nitclk/_library.py delete mode 100644 generated/nitclk/nitclk/_library_interpreter.py delete mode 100644 generated/nitclk/nitclk/_library_singleton.py delete mode 100644 generated/nitclk/nitclk/_visatype.py delete mode 100644 generated/nitclk/nitclk/errors.py delete mode 100644 generated/nitclk/nitclk/session.py delete mode 100644 generated/nitclk/nitclk/unit_tests/_matchers.py delete mode 100644 generated/nitclk/nitclk/unit_tests/_mock_helper.py delete mode 100644 generated/nitclk/nitclk/unit_tests/test_nitclk.py delete mode 100644 generated/nitclk/setup.py delete mode 100644 generated/nitclk/tox-system_tests.ini rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/Pattern.digipat (100%) rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/PinLevels.digilevels (100%) rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/PinMap.pinmap (100%) rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/Specifications.specs (100%) rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/Timing.digitiming (100%) rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/burst_with_conditional_trigger.digiproj (100%) rename src/nidigital/examples/{burst_with_conditional_trigger => nidigital_burst_with_conditional_trigger}/nidigital_burst_with_conditional_trigger.py (100%) diff --git a/README.rst b/README.rst deleted file mode 100644 index 3d7df64f10..0000000000 --- a/README.rst +++ /dev/null @@ -1,665 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nimi-python** repository generates Python bindings (Application Programming Interface) for interacting with the Modular Instrument drivers. The -following drivers are supported: - -* NI-DCPower (Python module: nidcpower) -* NI-Digital Pattern Driver (Python module: nidigital) -* NI-DMM (Python module: nidmm) -* NI-FGEN (Python module: nifgen) -* NI-ModInst (Python module: nimodinst) -* NI-RFSA (Python module: nirfsa) -* NI-RFSG (Python module: nirfsg) -* NI-SCOPE (Python module: niscope) -* NI Switch Executive (Python module: nise) -* NI-SWITCH (Python module: niswitch) -* NI-TClk (Python module: nitclk) - -It is implemented as a set of `Mako templates `_ and per-driver metafiles that produce a Python module for each driver. The driver is -called through its public C API using the `ctypes `_ Python library. - -**nimi-python** supports all the Operating Systems supported by the underlying driver. - -**nimi-python** follows `Python Software Foundation `_ support policy for different versions. - -NI created and supports **nimi-python**. - - -NI-DCPower Python API Status ----------------------------- - -+-------------------------------+--------------------------+ -| NI-DCPower (nidcpower) | | -+===============================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+--------------------------+ -| PyPI Version | |nidcpowerLatestVersion| | -+-------------------------------+--------------------------+ -| Supported Python Version | |nidcpowerPythonVersion| | -+-------------------------------+--------------------------+ -| Documentation | |nidcpowerDocs| | -+-------------------------------+--------------------------+ -| Open Issues | |nidcpowerOpenIssues| | -+-------------------------------+--------------------------+ -| Open Pull Requests | |nidcpowerOpenPRs| | -+-------------------------------+--------------------------+ - - -.. |nidcpowerLatestVersion| image:: http://img.shields.io/pypi/v/nidcpower.svg - :alt: Latest NI-DCPower Version - :target: http://pypi.python.org/pypi/nidcpower - - -.. |nidcpowerPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidcpower.svg - :alt: NI-DCPower supported Python versions - :target: http://pypi.python.org/pypi/nidcpower - - -.. |nidcpowerDocs| image:: https://readthedocs.org/projects/nidcpower/badge/?version=latest - :alt: NI-DCPower Python API Documentation Status - :target: https://nidcpower.readthedocs.io/en/latest - - -.. |nidcpowerOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidcpower.svg - :alt: Open Issues + Pull Requests for NI-DCPower - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidcpower - - -.. |nidcpowerOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidcpower.svg - :alt: Pull Requests for NI-DCPower - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidcpower - - - -NI-Digital Pattern Driver Python API Status -------------------------------------------- - -+---------------------------------------+--------------------------+ -| NI-Digital Pattern Driver (nidigital) | | -+=======================================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+---------------------------------------+--------------------------+ -| PyPI Version | |nidigitalLatestVersion| | -+---------------------------------------+--------------------------+ -| Supported Python Version | |nidigitalPythonVersion| | -+---------------------------------------+--------------------------+ -| Documentation | |nidigitalDocs| | -+---------------------------------------+--------------------------+ -| Open Issues | |nidigitalOpenIssues| | -+---------------------------------------+--------------------------+ -| Open Pull Requests | |nidigitalOpenPRs| | -+---------------------------------------+--------------------------+ - - -.. |nidigitalLatestVersion| image:: http://img.shields.io/pypi/v/nidigital.svg - :alt: Latest NI-Digital Pattern Driver Version - :target: http://pypi.python.org/pypi/nidigital - - -.. |nidigitalPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidigital.svg - :alt: NI-Digital Pattern Driver supported Python versions - :target: http://pypi.python.org/pypi/nidigital - - -.. |nidigitalDocs| image:: https://readthedocs.org/projects/nidigital/badge/?version=latest - :alt: NI-Digital Pattern Driver Python API Documentation Status - :target: https://nidigital.readthedocs.io/en/latest - - -.. |nidigitalOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidigital.svg - :alt: Open Issues + Pull Requests for NI-Digital Pattern Driver - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidigital - - -.. |nidigitalOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidigital.svg - :alt: Pull Requests for NI-Digital Pattern Driver - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidigital - - - -NI-DMM Python API Status ------------------------- - -+-------------------------------+----------------------+ -| NI-DMM (nidmm) | | -+===============================+======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+----------------------+ -| PyPI Version | |nidmmLatestVersion| | -+-------------------------------+----------------------+ -| Supported Python Version | |nidmmPythonVersion| | -+-------------------------------+----------------------+ -| Documentation | |nidmmDocs| | -+-------------------------------+----------------------+ -| Open Issues | |nidmmOpenIssues| | -+-------------------------------+----------------------+ -| Open Pull Requests | |nidmmOpenPRs| | -+-------------------------------+----------------------+ - - -.. |nidmmLatestVersion| image:: http://img.shields.io/pypi/v/nidmm.svg - :alt: Latest NI-DMM Version - :target: http://pypi.python.org/pypi/nidmm - - -.. |nidmmPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidmm.svg - :alt: NI-DMM supported Python versions - :target: http://pypi.python.org/pypi/nidmm - - -.. |nidmmDocs| image:: https://readthedocs.org/projects/nidmm/badge/?version=latest - :alt: NI-DMM Python API Documentation Status - :target: https://nidmm.readthedocs.io/en/latest - - -.. |nidmmOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidmm.svg - :alt: Open Issues + Pull Requests for NI-DMM - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidmm - - -.. |nidmmOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidmm.svg - :alt: Pull Requests for NI-DMM - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidmm - - - -NI-FGEN Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-FGEN (nifgen) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nifgenLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nifgenPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nifgenDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nifgenOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nifgenOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nifgenLatestVersion| image:: http://img.shields.io/pypi/v/nifgen.svg - :alt: Latest NI-FGEN Version - :target: http://pypi.python.org/pypi/nifgen - - -.. |nifgenPythonVersion| image:: http://img.shields.io/pypi/pyversions/nifgen.svg - :alt: NI-FGEN supported Python versions - :target: http://pypi.python.org/pypi/nifgen - - -.. |nifgenDocs| image:: https://readthedocs.org/projects/nifgen/badge/?version=latest - :alt: NI-FGEN Python API Documentation Status - :target: https://nifgen.readthedocs.io/en/latest - - -.. |nifgenOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nifgen.svg - :alt: Open Issues + Pull Requests for NI-FGEN - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anifgen - - -.. |nifgenOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nifgen.svg - :alt: Pull Requests for NI-FGEN - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anifgen - - - -NI-ModInst Python API Status ----------------------------- - -+-------------------------------+--------------------------+ -| NI-ModInst (nimodinst) | | -+===============================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+--------------------------+ -| PyPI Version | |nimodinstLatestVersion| | -+-------------------------------+--------------------------+ -| Supported Python Version | |nimodinstPythonVersion| | -+-------------------------------+--------------------------+ -| Documentation | |nimodinstDocs| | -+-------------------------------+--------------------------+ -| Open Issues | |nimodinstOpenIssues| | -+-------------------------------+--------------------------+ -| Open Pull Requests | |nimodinstOpenPRs| | -+-------------------------------+--------------------------+ - - -.. |nimodinstLatestVersion| image:: http://img.shields.io/pypi/v/nimodinst.svg - :alt: Latest NI-ModInst Version - :target: http://pypi.python.org/pypi/nimodinst - - -.. |nimodinstPythonVersion| image:: http://img.shields.io/pypi/pyversions/nimodinst.svg - :alt: NI-ModInst supported Python versions - :target: http://pypi.python.org/pypi/nimodinst - - -.. |nimodinstDocs| image:: https://readthedocs.org/projects/nimodinst/badge/?version=latest - :alt: NI-ModInst Python API Documentation Status - :target: https://nimodinst.readthedocs.io/en/latest - - -.. |nimodinstOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nimodinst.svg - :alt: Open Issues + Pull Requests for NI-ModInst - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Animodinst - - -.. |nimodinstOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nimodinst.svg - :alt: Pull Requests for NI-ModInst - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Animodinst - - - -NI-RFSA Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-RFSA (nirfsa) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nirfsaLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nirfsaPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nirfsaDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nirfsaOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nirfsaOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nirfsaLatestVersion| image:: http://img.shields.io/pypi/v/nirfsa.svg - :alt: Latest NI-RFSA Version - :target: http://pypi.python.org/pypi/nirfsa - - -.. |nirfsaPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsa.svg - :alt: NI-RFSA supported Python versions - :target: http://pypi.python.org/pypi/nirfsa - - -.. |nirfsaDocs| image:: https://readthedocs.org/projects/nirfsa/badge/?version=latest - :alt: NI-RFSA Python API Documentation Status - :target: https://nirfsa.readthedocs.io/en/latest - - -.. |nirfsaOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsa.svg - :alt: Open Issues + Pull Requests for NI-RFSA - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsa - - -.. |nirfsaOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsa.svg - :alt: Pull Requests for NI-RFSA - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsa - - - -NI-RFSG Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-RFSG (nirfsg) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nirfsgLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nirfsgPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nirfsgDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nirfsgOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nirfsgOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nirfsgLatestVersion| image:: http://img.shields.io/pypi/v/nirfsg.svg - :alt: Latest NI-RFSG Version - :target: http://pypi.python.org/pypi/nirfsg - - -.. |nirfsgPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsg.svg - :alt: NI-RFSG supported Python versions - :target: http://pypi.python.org/pypi/nirfsg - - -.. |nirfsgDocs| image:: https://readthedocs.org/projects/nirfsg/badge/?version=latest - :alt: NI-RFSG Python API Documentation Status - :target: https://nirfsg.readthedocs.io/en/latest - - -.. |nirfsgOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsg.svg - :alt: Open Issues + Pull Requests for NI-RFSG - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsg - - -.. |nirfsgOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsg.svg - :alt: Pull Requests for NI-RFSG - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsg - - - -NI-SCOPE Python API Status --------------------------- - -+-------------------------------+------------------------+ -| NI-SCOPE (niscope) | | -+===============================+========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+------------------------+ -| PyPI Version | |niscopeLatestVersion| | -+-------------------------------+------------------------+ -| Supported Python Version | |niscopePythonVersion| | -+-------------------------------+------------------------+ -| Documentation | |niscopeDocs| | -+-------------------------------+------------------------+ -| Open Issues | |niscopeOpenIssues| | -+-------------------------------+------------------------+ -| Open Pull Requests | |niscopeOpenPRs| | -+-------------------------------+------------------------+ - - -.. |niscopeLatestVersion| image:: http://img.shields.io/pypi/v/niscope.svg - :alt: Latest NI-SCOPE Version - :target: http://pypi.python.org/pypi/niscope - - -.. |niscopePythonVersion| image:: http://img.shields.io/pypi/pyversions/niscope.svg - :alt: NI-SCOPE supported Python versions - :target: http://pypi.python.org/pypi/niscope - - -.. |niscopeDocs| image:: https://readthedocs.org/projects/niscope/badge/?version=latest - :alt: NI-SCOPE Python API Documentation Status - :target: https://niscope.readthedocs.io/en/latest - - -.. |niscopeOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niscope.svg - :alt: Open Issues + Pull Requests for NI-SCOPE - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniscope - - -.. |niscopeOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niscope.svg - :alt: Pull Requests for NI-SCOPE - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniscope - - - -NI Switch Executive Python API Status -------------------------------------- - -+-------------------------------+---------------------+ -| NI Switch Executive (nise) | | -+===============================+=====================+ -| Driver Version Tested Against | 2023 Q1 | -+-------------------------------+---------------------+ -| PyPI Version | |niseLatestVersion| | -+-------------------------------+---------------------+ -| Supported Python Version | |nisePythonVersion| | -+-------------------------------+---------------------+ -| Documentation | |niseDocs| | -+-------------------------------+---------------------+ -| Open Issues | |niseOpenIssues| | -+-------------------------------+---------------------+ -| Open Pull Requests | |niseOpenPRs| | -+-------------------------------+---------------------+ - - -.. |niseLatestVersion| image:: http://img.shields.io/pypi/v/nise.svg - :alt: Latest NI Switch Executive Version - :target: http://pypi.python.org/pypi/nise - - -.. |nisePythonVersion| image:: http://img.shields.io/pypi/pyversions/nise.svg - :alt: NI Switch Executive supported Python versions - :target: http://pypi.python.org/pypi/nise - - -.. |niseDocs| image:: https://readthedocs.org/projects/nise/badge/?version=latest - :alt: NI Switch Executive Python API Documentation Status - :target: https://nise.readthedocs.io/en/latest - - -.. |niseOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nise.svg - :alt: Open Issues + Pull Requests for NI Switch Executive - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anise - - -.. |niseOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nise.svg - :alt: Pull Requests for NI Switch Executive - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anise - - - -NI-SWITCH Python API Status ---------------------------- - -+-------------------------------+-------------------------+ -| NI-SWITCH (niswitch) | | -+===============================+=========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-------------------------+ -| PyPI Version | |niswitchLatestVersion| | -+-------------------------------+-------------------------+ -| Supported Python Version | |niswitchPythonVersion| | -+-------------------------------+-------------------------+ -| Documentation | |niswitchDocs| | -+-------------------------------+-------------------------+ -| Open Issues | |niswitchOpenIssues| | -+-------------------------------+-------------------------+ -| Open Pull Requests | |niswitchOpenPRs| | -+-------------------------------+-------------------------+ - - -.. |niswitchLatestVersion| image:: http://img.shields.io/pypi/v/niswitch.svg - :alt: Latest NI-SWITCH Version - :target: http://pypi.python.org/pypi/niswitch - - -.. |niswitchPythonVersion| image:: http://img.shields.io/pypi/pyversions/niswitch.svg - :alt: NI-SWITCH supported Python versions - :target: http://pypi.python.org/pypi/niswitch - - -.. |niswitchDocs| image:: https://readthedocs.org/projects/niswitch/badge/?version=latest - :alt: NI-SWITCH Python API Documentation Status - :target: https://niswitch.readthedocs.io/en/latest - - -.. |niswitchOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niswitch.svg - :alt: Open Issues + Pull Requests for NI-SWITCH - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniswitch - - -.. |niswitchOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niswitch.svg - :alt: Pull Requests for NI-SWITCH - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniswitch - - - -NI-TClk Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-TClk (nitclk) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nitclkLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nitclkPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nitclkDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nitclkOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nitclkOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nitclkLatestVersion| image:: http://img.shields.io/pypi/v/nitclk.svg - :alt: Latest NI-TClk Version - :target: http://pypi.python.org/pypi/nitclk - - -.. |nitclkPythonVersion| image:: http://img.shields.io/pypi/pyversions/nitclk.svg - :alt: NI-TClk supported Python versions - :target: http://pypi.python.org/pypi/nitclk - - -.. |nitclkDocs| image:: https://readthedocs.org/projects/nitclk/badge/?version=latest - :alt: NI-TClk Python API Documentation Status - :target: https://nitclk.readthedocs.io/en/latest - - -.. |nitclkOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nitclk.svg - :alt: Open Issues + Pull Requests for NI-TClk - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anitclk - - -.. |nitclkOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nitclk.svg - :alt: Pull Requests for NI-TClk - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anitclk - - -.. _installation-section: - -Installation -============ - -Driver specific installation instructions can be found on **Read the Docs**: - -* `nidcpower `_ -* `nidigital `_ -* `nidmm `_ -* `nifgen `_ -* `nimodinst `_ -* `nirfsa `_ -* `nirfsg `_ -* `niscope `_ -* `nise `_ -* `niswitch `_ -* `nitclk `_ - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nidmm** module to open a session to a DMM and perform a 5.5 digits of resolution voltage measurement in the 10 V range. - -.. code-block:: python - - import nidmm - with nidmm.Session("Dev1") as session: - session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5) - print("Measurement: " + str(session.read())) - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available on **Read the Docs**: - -- https://nidcpower.readthedocs.io -- https://nidigital.readthedocs.io -- https://nidmm.readthedocs.io -- https://nifgen.readthedocs.io -- https://nimodinst.readthedocs.io -- https://nirfsa.readthedocs.io -- https://nirfsg.readthedocs.io -- https://niscope.readthedocs.io -- https://nise.readthedocs.io -- https://niswitch.readthedocs.io -- https://nitclk.readthedocs.io - - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/docs/nidcpower/.readthedocs.yaml b/docs/nidcpower/.readthedocs.yaml deleted file mode 100644 index dcd41d2979..0000000000 --- a/docs/nidcpower/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nidcpower/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nidcpower/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nidcpower/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nidcpower/about_nidcpower.inc b/docs/nidcpower/about_nidcpower.inc deleted file mode 100644 index 839ba52b1c..0000000000 --- a/docs/nidcpower/about_nidcpower.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nidcpower** module provides a Python API for NI-DCPower. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nidcpower** supports all the Operating Systems supported by NI-DCPower. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nidcpower**. - diff --git a/docs/nidcpower/class.rst b/docs/nidcpower/class.rst deleted file mode 100644 index 12652e49cc..0000000000 --- a/docs/nidcpower/class.rst +++ /dev/null @@ -1,12281 +0,0 @@ -.. py:module:: nidcpower - -Session -======= - -.. py:class:: Session(self, resource_name, channels=None, reset=False, options={}, independent_channels=True, *, grpc_options=None) - - - - Creates and returns a new NI-DCPower session to the instrument(s) and channel(s) specified - in **resource name** to be used in all subsequent NI-DCPower method calls. With this method, - you can optionally set the initial state of the following session properties: - - - :py:attr:`nidcpower.Session.simulate` - - :py:attr:`nidcpower.Session.driver_setup` - - After calling this method, the specified channel or channels will be in the Uncommitted - state. - - To place channel(s) in a known start-up state when creating a new session, set **reset** to - True. This action is equivalent to using the :py:meth:`nidcpower.Session.reset` method immediately after initializing the - session. - - To open a session and leave the channel(s) in an existing configuration without passing - through a transitional output state, set **reset** to False. Next, configure the channel(s) - as in the previous session, change the desired settings, and then call the :py:meth:`nidcpower.Session.initiate` method - to write both settings. - - **Details of Independent Channel Operation** - - With this method and channel-based NI-DCPower methods and properties, you can use any - channels in the session independently. For example, you can initiate a subset of channels in - the session with :py:meth:`nidcpower.Session.initiate`, and the other channels in the session remain in the Uncommitted - state. - - When you initialize with independent channels, each channel steps through the NI-DCPower - programming state model independently of all other channels, and you can specify a subset of - channels for most operations. - - **Note** You can make concurrent calls to a session from multiple threads, but the session - executes the calls one at a time. If you specify multiple channels for a method or property, - the session may perform the operation on multiple channels in parallel, though this is not - guaranteed, and some operations may execute sequentially. - - - - - - :param resource_name: - - - Specifies the **resource name** as seen in Measurement - & Automation Explorer (MAX) or lsni, for example "PXI1Slot3" where "PXI1Slot3" is an - instrument's **resource name**. If independent_channels is False, **resource name** - can also be a logical IVI name. - - If independent_channels is True, **resource name** can be names of the instrument(s) - and the channel(s) to initialize. Specify the instrument(s) and channel(s) using the - form "PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or - PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3", where "PXI1Slot3" and "PXI1Slot4" are - instrument resource names followed by channels. If you exclude a channels string - after an instrument resource name, all channels of the instrument(s) are included in - the session. - - - - - :type resource_name: str, list, tuple - - :param channels: - - - For new applications, use the default value of None - and specify the channels in **resource name**. - - Specifies which channel(s) to include in a new session. Specify multiple - channels by using a channel list or a channel range. A channel list is a comma (,) - separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). - A channel range is a lower bound channel followed by a hyphen (-) or colon (:) - followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, - and 2). - - If independent_channels is False, this argument specifies which channels to include - in a legacy synchronized channels session. If you do not specify any channels, by - default all channels on the device are included in the session. - - If independent_channels is True, this argument combines with **resource name** to - specify which channels to include in an independent channels session. Initializing - an independent channels session with a channels argument is deprecated. - - - - - :type channels: str, list, range, tuple - - :param reset: - - - Specifies whether to reset channel(s) during the initialization procedure. - - - - - :type reset: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param independent_channels: - - - Specifies whether to initialize the session with - independent channels. Set this argument to False on legacy applications or if you - are unable to upgrade your NI-DCPower driver runtime to 20.6 or higher. - - - - - :type independent_channels: bool - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: nidcpower.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: abort() - - Transitions the specified channel(s) from the Running state to the - Uncommitted state. If a sequence is running, it is stopped. Any - configuration methods called after this method are not applied until - the :py:meth:`nidcpower.Session.initiate` method is called. If power output is enabled - when you call the :py:meth:`nidcpower.Session.abort` method, the channels remain - in their current state and continue providing power. - - Use the :py:meth:`nidcpower.Session.ConfigureOutputEnabled` method to disable power - output on a per channel basis. Use the :py:meth:`nidcpower.Session.reset` method to - disable output on all channels. - - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for information about the - specific NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].abort` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.abort` - - -clear_latched_output_cutoff_state ---------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: clear_latched_output_cutoff_state(output_cutoff_reason) - - Clears the state of an output cutoff that was engaged. - To clear the state for all output cutoff reasons, use :py:data:`~nidcpower.OutputCutoffReason.ALL`. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_latched_output_cutoff_state` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.clear_latched_output_cutoff_state` - - - :param output_cutoff_reason: - - - Specifies the reasons for which to clear the output cutoff state. - - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.ALL` | Clears all output cutoff conditions | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_HIGH` | Clears cutoffs caused when the output exceeded the high cutoff limit for voltage output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_LOW` | Clears cutoffs caused when the output fell below the low cutoff limit for voltage output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_HIGH` | Clears cutoffs caused when the measured voltage exceeded the high cutoff limit for voltage output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_LOW` | Clears cutoffs caused when the measured voltage fell below the low cutoff limit for voltage output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_HIGH` | Clears cutoffs caused when the measured current exceeded the high cutoff limit for current output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_LOW` | Clears cutoffs caused when the measured current fell below the low cutoff limit for current output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_HIGH` | Clears cutoffs caused when the voltage slew rate increased beyond the positive change cutoff for voltage output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_LOW` | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for voltage output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_HIGH` | Clears cutoffs caused when the current slew rate increased beyond the positive change cutoff for current output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_LOW` | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for current output | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_SATURATED` | Clears cutoffs caused when the measured current saturates the current range | - +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - - - :type output_cutoff_reason: :py:data:`nidcpower.OutputCutoffReason` - -close ------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: close() - - Closes the session specified in **vi** and deallocates the resources - that NI-DCPower reserves. If power output is enabled when you call this - method, the channels remain in their existing state and - continue providing power. Use the :py:meth:`nidcpower.Session.ConfigureOutputEnabled` - method to disable power output on a per channel basis. Use the - :py:meth:`nidcpower.Session.reset` method to disable power output on all channel(s). - - **Related Topics:** - - `Programming - States `__ - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: commit() - - Applies previously configured settings to the specified channel(s). Calling this - method moves the NI-DCPower session from the Uncommitted state into - the Committed state. After calling this method, modifying any - property reverts the NI-DCPower session to the Uncommitted state. Use - the :py:meth:`nidcpower.Session.initiate` method to transition to the Running state. - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for details about the specific - NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].commit` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.commit` - - -configure_aperture_time ------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: configure_aperture_time(aperture_time, units=nidcpower.ApertureTimeUnits.SECONDS) - - Configures the aperture time on the specified channel(s). - - The supported values depend on the **units**. Refer to the *Aperture - Time* topic for your device in the *NI DC Power Supplies and SMUs Help* - for more information. In general, devices support discrete - **apertureTime** values, and if you configure **apertureTime** to some - unsupported value, NI-DCPower coerces it up to the next supported value. - - Refer to the *Measurement Configuration and Timing* or *DC Noise - Rejection* topic for your device in the *NI DC Power Supplies and SMUs - Help* for more information about how to configure your measurements. - - **Related Topics:** - - `Aperture Time `__ - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_aperture_time` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.configure_aperture_time` - - - :param aperture_time: - - - Specifies the aperture time. Refer to the *Aperture Time* topic for your - device in the *NI DC Power Supplies and SMUs Help* for more information. - - - - - :type aperture_time: float - :param units: - - - Specifies the units for **apertureTime**. - **Defined Values**: - - +-----------------------------------------------------------+------------------------------+ - | :py:data:`~nidcpower.ApertureTimeUnits.SECONDS` | Specifies seconds. | - +-----------------------------------------------------------+------------------------------+ - | :py:data:`~nidcpower.ApertureTimeUnits.POWER_LINE_CYCLES` | Specifies Power Line Cycles. | - +-----------------------------------------------------------+------------------------------+ - - - :type units: :py:data:`nidcpower.ApertureTimeUnits` - -configure_lcr_compensation --------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: configure_lcr_compensation(compensation_data) - - Applies previously generated open, short, load, as well as open and short custom cable compensation data to LCR measurements. - - This method applies open, short and load compensation data when you have set the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_CONFIGURED`, and it also applies custom cable compensation data when you have set the :py:attr:`nidcpower.Session.cable_length` property to :py:data:`~nidcpower.CableLength.CUSTOM_AS_CONFIGURED`. - - Call this method after you have obtained LCR compensation data. - - If the :py:attr:`nidcpower.Session.lcr_short_custom_cable_compensation_enabled` property is set to True, you must generate data with both :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation` and :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation`; if False, you must only use :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation`, and NI-DCPower uses default short data. - - Call :py:meth:`nidcpower.Session.get_lcr_compensation_data` and pass the **compensation data** to this method. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_lcr_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.configure_lcr_compensation` - - - :param compensation_data: - - - The open, short and load compensation data to apply. - - - - - :type compensation_data: bytes - -configure_lcr_custom_cable_compensation ---------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: configure_lcr_custom_cable_compensation(custom_cable_compensation_data) - - This method is deprecated. Use :py:meth:`nidcpower.Session.configure_lcr_compensation` - instead. - - Applies previously generated open and short custom cable compensation data to LCR measurements. - - This method applies custom cable compensation data when you have set :py:attr:`nidcpower.Session.cable_length` property to :py:data:`~nidcpower.CableLength.CUSTOM_AS_CONFIGURED`. - - Call this method after you have obtained custom cable compensation data. - - If :py:attr:`nidcpower.Session.lcr_short_custom_cable_compensation_enabled` property is set to True, you must generate data with both :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation` and :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation`; - if False, you must only use :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation`, and NI-DCPower uses default short data. - - Call :py:meth:`nidcpower.Session.get_lcr_custom_cable_compensation_data` and pass the **custom cable compensation data** to this method. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_lcr_custom_cable_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.configure_lcr_custom_cable_compensation` - - - :param custom_cable_compensation_data: - - - The open and short custom cable compensation data to apply. - - - - - :type custom_cable_compensation_data: bytes - -create_advanced_sequence ------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: create_advanced_sequence(sequence_name, property_names, set_as_active_sequence=True) - - Creates an empty advanced sequence. Call the - :py:meth:`nidcpower.Session.create_advanced_sequence_step` method to add steps to the - active advanced sequence. - - You can create multiple advanced sequences in a session. - - **Support for this method** - - You must set the source mode to Sequence to use this method. - - Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence - methods is unsupported. - - Use this method in the Uncommitted or Committed programming states. - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for more information about - NI-DCPower programming states. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - :py:meth:`nidcpower.Session.create_advanced_sequence_step` - - - - .. note:: This method is not supported on all devices. Refer to `Supported - Methods by - Device `__ - for more information about supported devices. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.create_advanced_sequence` - - - :param sequence_name: - - - Specifies the name of the sequence to create. - - - - - :type sequence_name: str - :param property_names: - - - Specifies the names of the properties you reconfigure per step in the advanced sequence. For more information about properties that can be configured in an advanced sequence for each NI-DCPower device that supports advanced sequencing, search ni.com for Supported Properties by Device. - - - - - :type property_names: list of str - :param set_as_active_sequence: - - - Specifies that this current sequence is active. - - - - - :type set_as_active_sequence: bool - -create_advanced_sequence_commit_step ------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: create_advanced_sequence_commit_step(set_as_active_step=True) - - Creates a Commit step in the Active advanced sequence. A Commit step - configures channels to a user-defined known state before starting the advanced sequence. - When a Commit step exists in the Active advanced sequence, you cannot - set the output method to Pulse Voltage or Pulse Current in either - the Commit step (-1) or step 0. When you create an advanced sequence - step, each property you passed to the :py:meth:`nidcpower.Session.create_advanced_sequence` - method is reset to its default value for that step unless otherwise specified. - - **Support for this Method** - - You must set the source mode to Sequence to use this method. - - Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence - methods is unsupported. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - :py:meth:`nidcpower.Session.create_advanced_sequence` - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_commit_step` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.create_advanced_sequence_commit_step` - - - :param set_as_active_step: - - - Specifies whether the step created with this method is active in the Active advanced sequence. - - - - - :type set_as_active_step: bool - -create_advanced_sequence_step ------------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: create_advanced_sequence_step(set_as_active_step=True) - - Creates a new advanced sequence step in the advanced sequence specified - by the Active advanced sequence. When you create an advanced sequence - step, each property you passed to the :py:meth:`nidcpower.Session.create_advanced_sequence` - method is reset to its default value for that step unless otherwise - specified. - - **Support for this Method** - - You must set the source mode to Sequence to use this method. - - Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence - methods is unsupported. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - :py:meth:`nidcpower.Session.create_advanced_sequence` - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_step` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.create_advanced_sequence_step` - - - :param set_as_active_step: - - - Specifies whether the step created with this method is active in the Active advanced sequence. - - - - - :type set_as_active_step: bool - -delete_advanced_sequence ------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: delete_advanced_sequence(sequence_name) - - Deletes a previously created advanced sequence and all the advanced - sequence steps in the advanced sequence. - - **Support for this Method** - - You must set the source mode to Sequence to use this method. - - Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence - methods is unsupported. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].delete_advanced_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.delete_advanced_sequence` - - - :param sequence_name: - - - specifies the name of the sequence to delete. - - - - - :type sequence_name: str - -disable -------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: disable() - - This method performs the same actions as the :py:meth:`nidcpower.Session.reset` - method, except that this method also immediately sets the - :py:attr:`nidcpower.Session.output_enabled` property to False. - - This method opens the output relay on devices that have an output - relay. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - -export_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: export_attribute_configuration_buffer() - - Exports the property configuration of the session to the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DCPower returns - an error. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - :py:meth:`nidcpower.Session.__init__` method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - - - .. note:: This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - - - :rtype: bytes - :return: - - - Specifies the byte array buffer to be populated with the exported - property configuration. - - - - - -export_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: export_attribute_configuration_file(file_path) - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DCPower returns - an error. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - :py:meth:`nidcpower.Session.__init__` method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - - - .. note:: This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - - - :param file_path: - - - Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:** .nidcpowerconfig - - - - - :type file_path: str - -fetch_multiple --------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: fetch_multiple(count, timeout=hightime.timedelta(seconds=1.0)) - - Returns a list of named tuples (Measurement) that were - previously taken and are stored in the NI-DCPower buffer. This method - should not be used when the :py:attr:`nidcpower.Session.measure_when` property is - set to :py:data:`~nidcpower.MeasureWhen.ON_DEMAND`. You must first call - :py:meth:`nidcpower.Session.initiate` before calling this method. - - Fields in Measurement: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - - **channel** (str) - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_multiple` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.fetch_multiple` - - - :param count: - - - Specifies the number of measurements to fetch. - - - - - :type count: int - :param timeout: - - - Specifies the maximum time allowed for this method to complete. If the method does not complete within this time interval, NI-DCPower returns an error. - Default value: 1.0 second - - - - .. note:: When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of Measurement - :return: - - - List of named tuples with fields: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - - **channel** (str) - - - - - -fetch_multiple_lcr ------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: fetch_multiple_lcr(count, timeout=hightime.timedelta(seconds=1.0)) - - Returns a list of previously measured LCRMeasurement instances on the specified channel that have been taken and stored in a buffer. - - To use this method: - - - Set :py:attr:`nidcpower.Session.measure_when` property to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE` or :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER` - - Put the channel in the Running state (call :py:meth:`nidcpower.Session.initiate`) - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_multiple_lcr` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.fetch_multiple_lcr` - - - :param count: - - - Specifies the number of measurements to fetch. - - - - - :type count: int - :param timeout: - - - Specifies the maximum time allowed for this method to complete, in seconds. - If the method does not complete within this time interval, NI-DCPower returns an error. - Default value: 1.0 second - - - - .. note:: When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of LCRMeasurement - :return: - - - A list of LCRMeasurement instances. - - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | channel | | The channel name associated with this LCR measurement. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | vdc | float | The measured DC voltage, in volts. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | idc | float | The measured DC current, in amps. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_voltage | complex | The measured AC voltage, in volts RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_current | complex | The measured AC current, in amps RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z | complex | The complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y | complex | The complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - -get_channel_name ----------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_channel_name(index) - - Retrieves the output **channelName** that corresponds to the requested - **index**. Use the :py:attr:`nidcpower.Session.channel_count` property to - determine the upper bound of valid values for **index**. - - - - - - :param index: - - - Specifies which channel name to return. The index values begin at - 1. - - - - - :type index: int - - :rtype: str - :return: - - - Returns the channel name that corresponds to **index**. - - - - - -get_channel_names ------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_channel_names(indices) - - Returns a list of channel names for the given channel indices. - - - - - - :param indices: - - - Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - - - :type indices: basic sequence types or str or int - - :rtype: list of str - :return: - - - The channel name(s) at the specified indices. - - - - - -get_ext_cal_last_date_and_time ------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_ext_cal_last_date_and_time() - - Returns the date and time of the last successful calibration. - - - - - - :rtype: hightime.datetime - :return: - - - Indicates date and time of the last calibration. - - - - - -get_ext_cal_last_temp ---------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_ext_cal_last_temp() - - Returns the onboard **temperature** of the device, in degrees Celsius, - during the last successful external calibration. - - - - - - :rtype: float - :return: - - - Returns the onboard **temperature** of the device, in degrees Celsius, - during the last successful external calibration. - - - - - -get_ext_cal_recommended_interval --------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_ext_cal_recommended_interval() - - Returns the recommended maximum interval, in **months**, between - external calibrations. - - - - - - :rtype: hightime.timedelta - :return: - - - Specifies the recommended maximum interval, in **months**, between - external calibrations. - - - - - -get_lcr_compensation_data -------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_lcr_compensation_data() - - Collects previously generated open, short, load, and custom cable compensation data so you can then apply it to LCR measurements with :py:meth:`nidcpower.Session.configure_lcr_compensation`. - - Call this method after you have obtained the compensation data of all types (open, short, load, open custom cable compensation, and short custom cable compensation) you want to apply to your measurements. Pass the **compensation data** to :py:meth:`nidcpower.Session.configure_lcr_compensation` - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_data` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.get_lcr_compensation_data` - - - :rtype: bytes - :return: - - - The open, short, load, and custom cable compensation data to retrieve. - - - - - -get_lcr_compensation_last_date_and_time ---------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_lcr_compensation_last_date_and_time(compensation_type) - - Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_last_date_and_time` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.get_lcr_compensation_last_date_and_time` - - - :param compensation_type: - - - Specifies the type of compensation for LCR measurements. - - - - - :type compensation_type: :py:data:`nidcpower.LCRCompensationType` - - :rtype: hightime.datetime - :return: - - - Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. - - - - - -get_lcr_custom_cable_compensation_data --------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_lcr_custom_cable_compensation_data() - - This method is deprecated. Use :py:meth:`nidcpower.Session.get_lcr_compensation_data` - instead. - - Collects previously generated open and short custom cable compensation data so you can then apply it to LCR measurements with :py:meth:`nidcpower.Session.configure_lcr_custom_cable_compensation`. - - Call this method after you have obtained open and short custom cable compensation data. Pass the **custom cable compensation data** to :py:meth:`nidcpower.Session.configure_lcr_custom_cable_compensation` - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_lcr_custom_cable_compensation_data` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.get_lcr_custom_cable_compensation_data` - - - :rtype: bytes - :return: - - - The open and short custom cable compensation data to retrieve. - - - - - -get_self_cal_last_date_and_time -------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_self_cal_last_date_and_time() - - Returns the date and time of the oldest successful self-calibration from among the channels in the session. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - - :rtype: hightime.datetime - :return: - - - Returns the date and time the device was last calibrated. - - - - - -get_self_cal_last_temp ----------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: get_self_cal_last_temp() - - Returns the onboard temperature of the device, in degrees Celsius, - during the oldest successful self-calibration from among the channels in - the session. - - For example, if you have a session using channels 1 and 2, and you - perform a self-calibration on channel 1 with a device temperature of 25 - degrees Celsius at 2:00, and a self-calibration was performed on channel - 2 at 27 degrees Celsius at 3:00 on the same day, this method returns - 25 for the **temperature** parameter. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - - :rtype: float - :return: - - - Returns the onboard **temperature** of the device, in degrees Celsius, - during the oldest successful calibration. - - - - - -import_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: import_attribute_configuration_buffer(configuration) - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - :py:meth:`nidcpower.Session.__init__` method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Programming - States `__ - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - - - .. note:: This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - - - :param configuration: - - - Specifies the byte array buffer that contains the property - configuration to import. - - - - - :type configuration: bytes - -import_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: import_attribute_configuration_file(file_path) - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - :py:meth:`nidcpower.Session.__init__` method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Programming - States `__ - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - - - .. note:: This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - - - :param file_path: - - - Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:** .nidcpowerconfig - - - - - :type file_path: str - -initiate --------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: initiate() - - Starts generation or acquisition, causing the specified channel(s) to - leave the Uncommitted state or Committed state and enter the Running - state. To return to the Uncommitted state call the :py:meth:`nidcpower.Session.abort` - method. Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for information about the - specific NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].initiate` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.initiate` - - -lock ----- - - .. py:currentmodule:: nidcpower.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`nidcpower.Session.lock` method. - - A call to NI-DCPower locked the session. - - After a call to the :py:meth:`nidcpower.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`nidcpower.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`nidcpower.Session.lock` method and the - :py:meth:`nidcpower.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`nidcpower.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`nidcpower.Session.lock` method with a call to - the :py:meth:`nidcpower.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with nidcpower.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`nidcpower.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -measure -------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: measure(measurement_type) - - Returns the measured value of either the voltage or current on the - specified channel. Each call to this method blocks other - method calls until the hardware returns the **measurement**. To - measure multiple channels, use the :py:meth:`nidcpower.Session.measure_multiple` - method. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].measure` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.measure` - - - :param measurement_type: - - - Specifies whether a voltage or current value is measured. - **Defined Values**: - - +------------------------------------------------+------------------------------+ - | :py:data:`~nidcpower.MeasurementTypes.VOLTAGE` | The device measures voltage. | - +------------------------------------------------+------------------------------+ - | :py:data:`~nidcpower.MeasurementTypes.CURRENT` | The device measures current. | - +------------------------------------------------+------------------------------+ - - - :type measurement_type: :py:data:`nidcpower.MeasurementTypes` - - :rtype: float - :return: - - - Returns the value of the measurement, either in volts for voltage or - amps for current. - - - - - -measure_multiple ----------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: measure_multiple() - - Returns a list of named tuples (Measurement) containing the measured voltage - and current values on the specified channel(s). Each call to this method - blocks other method calls until the measurements are returned from the device. - The order of the measurements returned in the array corresponds to the order - on the specified channel(s). - - Fields in Measurement: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - Always None - - **channel** (str) - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].measure_multiple` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.measure_multiple` - - - :rtype: list of Measurement - :return: - - - List of named tuples with fields: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - Always None - - **channel** (str) - - - - - -measure_multiple_lcr --------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: measure_multiple_lcr() - - Measures and returns a list of LCRMeasurement instances on the specified channel(s). - - To use this method: - - - Set :py:attr:`nidcpower.Session.instrument_mode` property to :py:data:`~nidcpower.InstrumentMode.LCR` - - Set :py:attr:`nidcpower.Session.measure_when` property to :py:data:`~nidcpower.MeasureWhen.ON_DEMAND` - - Put the channel(s) in the Running state (call :py:meth:`nidcpower.Session.initiate`) - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].measure_multiple_lcr` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.measure_multiple_lcr` - - - :rtype: list of LCRMeasurement - :return: - - - A list of LCRMeasurement instances. - - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | channel | | The channel name associated with this LCR measurement. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | vdc | float | The measured DC voltage, in volts. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | idc | float | The measured DC current, in amps. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_voltage | complex | The measured AC voltage, in volts RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_current | complex | The measured AC current, in amps RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z | complex | The complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y | complex | The complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - -perform_lcr_load_compensation ------------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: perform_lcr_load_compensation(compensation_spots) - - Generates load compensation data for LCR measurements for the test spots you specify. - - You must physically configure your LCR circuit with an appropriate reference load to use this method to generate valid load compensation data. - - When you call this method: - - - The load compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - To apply the load compensation data you generate with this method to your LCR measurements, set the :py:attr:`nidcpower.Session.lcr_load_compensation_enabled` property to True. - - Load compensation data are generated only for those specific frequencies you define with this method; load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_load_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_load_compensation` - - - :param compensation_spots: - - - Defines the frequencies and DUT specifications to use for LCR load compensation. - - You can specify <=1000 spot frequencies. - - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | frequency | The spot frequency, in Hz. | - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | reference_value_type | A known specification value of your DUT to use as the basis for load compensation. | - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | reference_value | A value that describes the **reference_value_type** specification. Use as indicated by the **reference_value_type** option you choose. | - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - - - :type compensation_spots: list of LCRLoadCompensationSpot - -perform_lcr_open_compensation ------------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: perform_lcr_open_compensation(additional_frequencies=None) - - Generates open compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. - - You must physically configure an open LCR circuit to use this method to generate valid open compensation data. - - When you call this method: - - - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - To apply the open compensation data you generate with this method to your LCR measurements, set the :py:attr:`nidcpower.Session.lcr_open_compensation_enabled` property to True. - - Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - .. note:: Default Open Compensation Frequencies: - By default, NI-DCPower uses the following frequencies for LCR open compensation: - - - 10 logarithmic steps at 1 kHz frequency decade - - 10 logarithmic steps at 10 kHz frequency decade - - 100 logarithmic steps at 100 kHz frequency decade - - 100 logarithmic steps at 1 MHz frequency decade - - The actual frequencies used depend on the bandwidth of your instrument. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_open_compensation` - - - :param additional_frequencies: - - - Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. - - - - - :type additional_frequencies: list of float - -perform_lcr_open_custom_cable_compensation ------------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: perform_lcr_open_custom_cable_compensation() - - Generates open custom cable compensation data for LCR measurements. - - To use this method, you must physically configure an open LCR circuit to generate valid open custom cable compensation data. - - When you call this method: - - - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_custom_cable_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_open_custom_cable_compensation` - - -perform_lcr_short_compensation ------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: perform_lcr_short_compensation(additional_frequencies=None) - - Generates short compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. - - You must physically configure your LCR circuit with a short to use this method to generate valid short compensation data. - - When you call this method: - - - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - To apply the short compensation data you generate with this method to your LCR measurements, set the :py:attr:`nidcpower.Session.lcr_short_compensation_enabled` property to True. - - Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - .. note:: Default Short Compensation Frequencies: - By default, NI-DCPower uses the following frequencies for LCR short compensation: - - - 10 logarithmic steps at 1 kHz frequency decade - - 10 logarithmic steps at 10 kHz frequency decade - - 100 logarithmic steps at 100 kHz frequency decade - - 100 logarithmic steps at 1 MHz frequency decade - - The actual frequencies used depend on the bandwidth of your instrument. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_short_compensation` - - - :param additional_frequencies: - - - Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. - - - - - :type additional_frequencies: list of float - -perform_lcr_short_custom_cable_compensation -------------------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: perform_lcr_short_custom_cable_compensation() - - Generates short custom cable compensation data for LCR measurements. - - To use this method: - - - You must physically configure your LCR circuit with a short to generate valid short custom cable compensation data. - - Set :py:attr:`nidcpower.Session.lcr_short_custom_cable_compensation_enabled` property to True - - When you call this method: - - - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_custom_cable_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_short_custom_cable_compensation` - - -query_in_compliance -------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: query_in_compliance() - - Queries the specified channel to determine if it is operating at the compliance limit. - - The compliance limit is the current limit when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`, :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`, :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` or :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. If the output is operating at the compliance limit, the output reaches the current limit before the desired voltage, resistance or power level. - - The compliance limit is the voltage limit when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT` or :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. If the output is operating at the compliance limit, the output reaches the voltage limit before the desired current level. - - Refer to the :py:attr:`nidcpower.Session.output_function` property for more information about the applicable properties to configure for each output method. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_in_compliance` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_in_compliance` - - - :rtype: bool - :return: - - - Returns whether the device channel is in compliance. - - - - - -query_latched_output_cutoff_state ---------------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: query_latched_output_cutoff_state(output_cutoff_reason) - - Discovers if an output cutoff limit was exceeded for the specified reason. When an output cutoff is engaged, the output of the channel(s) is disconnected. - If a limit was exceeded, the state is latched until you clear it with the :py:meth:`nidcpower.Session.clear_latched_output_cutoff_state` method or the :py:meth:`nidcpower.Session.reset` method. - - outputCutoffReason specifies the conditions for which an output is disconnected. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_latched_output_cutoff_state` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_latched_output_cutoff_state` - - - :param output_cutoff_reason: - - - Specifies which output cutoff conditions to query. - - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.ALL` | Any output cutoff condition was met | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_HIGH` | The output exceeded the high cutoff limit for voltage output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_LOW` | The output fell below the low cutoff limit for voltage output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_HIGH` | The measured voltage exceeded the high cutoff limit for voltage output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_LOW` | The measured voltage fell below the low cutoff limit for voltage output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_HIGH` | The measured current exceeded the high cutoff limit for current output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_LOW` | The measured current fell below the low cutoff limit for current output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_HIGH` | The voltage slew rate increased beyond the positive change cutoff for voltage output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_LOW` | The voltage slew rate decreased beyond the negative change cutoff for voltage output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_HIGH` | The current slew rate increased beyond the positive change cutoff for current output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_LOW` | The current slew rate decreased beyond the negative change cutoff for current output | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_SATURATED` | The measured current saturates the current range | - +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ - - - :type output_cutoff_reason: :py:data:`nidcpower.OutputCutoffReason` - - :rtype: bool - :return: - - - Specifies whether an output cutoff has engaged. - - +-------+------------------------------------------------------------------------------+ - | True | An output cutoff has engaged for the conditions in **output cutoff reason**. | - +-------+------------------------------------------------------------------------------+ - | False | No output cutoff has engaged. | - +-------+------------------------------------------------------------------------------+ - - - -query_max_current_limit ------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: query_max_current_limit(voltage_level) - - Queries the maximum current limit on a channel if the channel is set to the specified **voltageLevel**. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_max_current_limit` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_max_current_limit` - - - :param voltage_level: - - - Specifies the voltage level to use when calculating the - **maxCurrentLimit**. - - - - - :type voltage_level: float - - :rtype: float - :return: - - - Returns the maximum current limit that can be set with the specified - **voltageLevel**. - - - - - -query_max_voltage_level ------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: query_max_voltage_level(current_limit) - - Queries the maximum voltage level on a channel if the channel is set to the specified **currentLimit**. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_max_voltage_level` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_max_voltage_level` - - - :param current_limit: - - - Specifies the current limit to use when calculating the - **maxVoltageLevel**. - - - - - :type current_limit: float - - :rtype: float - :return: - - - Returns the maximum voltage level that can be set on a channel - with the specified **currentLimit**. - - - - - -query_min_current_limit ------------------------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: query_min_current_limit(voltage_level) - - Queries the minimum current limit on a channel if the channel is set to the specified **voltageLevel**. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_min_current_limit` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_min_current_limit` - - - :param voltage_level: - - - Specifies the voltage level to use when calculating the - **minCurrentLimit**. - - - - - :type voltage_level: float - - :rtype: float - :return: - - - Returns the minimum current limit that can be set on a channel - with the specified **voltageLevel**. - - - - - -query_output_state ------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: query_output_state(output_state) - - Queries the specified channel to determine if the channel - is currently in the state specified by **outputState**. - - **Related Topics:** - - `Compliance `__ - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_output_state` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_output_state` - - - :param output_state: - - - Specifies the output state of the channel that is being queried. - **Defined Values**: - - +-----------------------------------------------------+--------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputStates.CONSTANT_VOLTAGE` | The channel maintains a constant voltage by adjusting the current. | - +-----------------------------------------------------+--------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputStates.CONSTANT_CURRENT` | The channel maintains a constant current by adjusting the voltage. | - +-----------------------------------------------------+--------------------------------------------------------------------+ - | :py:data:`~nidcpower.OutputStates.INHIBITED` | The channel is in the inhibited state. | - +-----------------------------------------------------+--------------------------------------------------------------------+ - - - :type output_state: :py:data:`nidcpower.OutputStates` - - :rtype: bool - :return: - - - Returns whether the device channel is in the specified output - state. - - - - - -read_current_temperature ------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: read_current_temperature() - - Returns the current onboard **temperature**, in degrees Celsius, of the - device. - - - - - - :rtype: float - :return: - - - Returns the onboard **temperature**, in degrees Celsius, of the device. - - - - - -reset ------ - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: reset() - - Resets the specified channel(s) to a known state. This method disables power - generation, resets session properties to their default values, commits - the session properties, and leaves the session in the Uncommitted state. - Refer to the `Programming - States `__ topic for - more information about NI-DCPower software states. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].reset` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.reset` - - -reset_device ------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: reset_device() - - Resets the device to a known state. The method disables power - generation, resets session properties to their default values, clears - errors such as overtemperature and unexpected loss of auxiliary power, - commits the session properties, and leaves the session in the - Uncommitted state. This method also performs a hard reset on the - device and driver software. This method has the same functionality as - using reset in Measurement & Automation Explorer. Refer to the - `Programming - States `__ topic for - more information about NI-DCPower software states. - - This will also open the output relay on devices that have an output - relay. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - -reset_with_defaults -------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: reset_with_defaults() - - Resets the device to a known state. This method disables power - generation, resets session properties to their default values, commits - the session properties, and leaves the session in the - `Running `__ - state. In addition to exhibiting the behavior of the :py:meth:`nidcpower.Session.reset` - method, this method can assign user-defined default values for - configurable properties from the IVI configuration. - - - - - -self_cal --------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: self_cal() - - Performs a self-calibration upon the specified channel(s). - - This method disables the output, performs several internal - calculations, and updates calibration values. The updated calibration - values are written to the device hardware if the - :py:attr:`nidcpower.Session.self_calibration_persistence` property is set to - :py:data:`~nidcpower.SelfCalibrationPersistence.WRITE_TO_EEPROM`. Refer to the - :py:attr:`nidcpower.Session.self_calibration_persistence` property topic for more - information about the settings for this property. - - When calling :py:meth:`nidcpower.Session.self_cal` with the PXIe-4162/4163, - specify all channels of your PXIe-4162/4163 with the channelName input. - You cannot self-calibrate a subset of PXIe-4162/4163 channels. - - Refer to the - `Self-Calibration `__ topic for - more information about this method. - - **Related Topics:** - - `Self-Calibration `__ - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].self_cal` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.self_cal` - - -self_test ---------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: self_test() - - Performs the device self-test routine and returns the test result(s). - Calling this method implicitly calls the :py:meth:`nidcpower.Session.reset` method. - - When calling :py:meth:`nidcpower.Session.self_test` with the PXIe-4162/4163, specify all - channels of your PXIe-4162/4163 with the channels input of - :py:meth:`nidcpower.Session.__init__`. You cannot self test a subset of - PXIe-4162/4163 channels. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+-------------------+ - | Self-Test Code | Description | - +================+===================+ - | 0 | Self test passed. | - +----------------+-------------------+ - | 1 | Self test failed. | - +----------------+-------------------+ - - - -send_software_edge_trigger --------------------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: send_software_edge_trigger(trigger) - - Asserts the specified trigger. This method can override an external - edge trigger. - - **Related Topics:** - - `Triggers `__ - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].send_software_edge_trigger` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.send_software_edge_trigger` - - - :param trigger: - - - Specifies which trigger to assert. - **Defined Values:** - - +--------------------------------------------------------------------+---------------------------------------+ - | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.START` | Asserts the Start trigger. | - +--------------------------------------------------------------------+---------------------------------------+ - | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.SOURCE` | Asserts the Source trigger. | - +--------------------------------------------------------------------+---------------------------------------+ - | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.MEASURE` | Asserts the Measure trigger. | - +--------------------------------------------------------------------+---------------------------------------+ - | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.SEQUENCE_ADVANCE` | Asserts the Sequence Advance trigger. | - +--------------------------------------------------------------------+---------------------------------------+ - | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.PULSE` | Asserts the Pulse trigger. | - +--------------------------------------------------------------------+---------------------------------------+ - | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.SHUTDOWN` | Asserts the Shutdown trigger. | - +--------------------------------------------------------------------+---------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger: :py:data:`nidcpower.SendSoftwareEdgeTriggerType` - -set_sequence ------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: set_sequence(values, source_delays) - - Configures a series of voltage, current, resistance or power outputs and corresponding source delays. The source mode must be set to :py:data:`~nidcpower.SourceMode.SEQUENCE` for this method to take effect. - - Refer to the Configuring the Source Unit topic in the *NI DC Power Supplies and SMUs Help* for more information about how to configure your device. - - Use this method in the Uncommitted or Committed programming states. - Refer to the Programming States topic in the *NI DC Power Supplies and SMUs Help* for more information about NI-DCPower programming states. - - Using this method with Advanced Sequence methods for the same channel in the same session is not supported. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].set_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.set_sequence` - - - :param values: - - - Specifies the series of voltage, current, resistance or power levels, depending on the configured :py:attr:`nidcpower.Session.output_function`. - **Valid values**: The valid values for this parameter are defined by the voltage level range, current level range, constant resistance level range or constant power level range. - - - - - :type values: list of float - :param source_delays: - - - Specifies the source delay that follows the configuration of each value - in the sequence. - **Valid Values**: - The valid values are between 0 and 167 seconds. - - - - - :type source_delays: list of float - -unlock ------- - - .. py:currentmodule:: nidcpower.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`nidcpower.Session.lock`. Refer to :py:meth:`nidcpower.Session.unlock` for additional - information on session locks. - -wait_for_event --------------- - - .. py:currentmodule:: nidcpower.Session - - .. py:method:: wait_for_event(event_id, timeout=hightime.timedelta(seconds=10.0)) - - Waits until the specified channel(s) have generated the specified event. - - The session monitors whether each type of event has occurred at least - once since the last time this method or the :py:meth:`nidcpower.Session.initiate` - method were called. If an event has only been generated once and you - call this method successively, the method times out. Individual - events must be generated between separate calls of this method. - - - - .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - - .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].wait_for_event` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.wait_for_event` - - - :param event_id: - - - Specifies which event to wait for. - **Defined Values:** - - +---------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nidcpower.Event.SOURCE_COMPLETE` | Waits for the Source Complete event. | - +---------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nidcpower.Event.MEASURE_COMPLETE` | Waits for the Measure Complete event. | - +---------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nidcpower.Event.SEQUENCE_ITERATION_COMPLETE` | Waits for the Sequence Iteration Complete event. | - +---------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nidcpower.Event.SEQUENCE_ENGINE_DONE` | Waits for the Sequence Engine Done event. | - +---------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nidcpower.Event.PULSE_COMPLETE` | Waits for the Pulse Complete event. | - +---------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nidcpower.Event.READY_FOR_PULSE_TRIGGER` | Waits for the Ready for Pulse Trigger event. | - +---------------------------------------------------------+--------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type event_id: :py:data:`nidcpower.Event` - :param timeout: - - - Specifies the maximum time allowed for this method to complete, in - seconds. If the method does not complete within this time interval, - NI-DCPower returns an error. - - - - .. note:: When setting the timeout interval, ensure you take into account any - triggers so that the timeout interval is long enough for your - application. - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - -Properties -========== - -active_advanced_sequence ------------------------- - - .. py:attribute:: active_advanced_sequence - - Specifies the advanced sequence to configure or generate. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.active_advanced_sequence` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Active Advanced Sequence** - - C Attribute: **NIDCPOWER_ATTR_ACTIVE_ADVANCED_SEQUENCE** - -active_advanced_sequence_step ------------------------------ - - .. py:attribute:: active_advanced_sequence_step - - Specifies the advanced sequence step to configure. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence_step` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.active_advanced_sequence_step` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Active Advanced Sequence Step** - - C Attribute: **NIDCPOWER_ATTR_ACTIVE_ADVANCED_SEQUENCE_STEP** - -actual_power_allocation ------------------------ - - .. py:attribute:: actual_power_allocation - - Returns the power, in watts, the device is sourcing on each active channel if the :py:attr:`nidcpower.Session.power_allocation_mode` property is set to :py:data:`~nidcpower.PowerAllocationMode.AUTOMATIC` or :py:data:`~nidcpower.PowerAllocationMode.MANUAL`. - - Valid Values: [0, device per-channel maximum power] - - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - This property returns -1 when the :py:attr:`nidcpower.Session.power_allocation_mode` property is set to :py:data:`~nidcpower.PowerAllocationMode.DISABLED`. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].actual_power_allocation` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.actual_power_allocation` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Actual Power Allocation** - - C Attribute: **NIDCPOWER_ATTR_ACTUAL_POWER_ALLOCATION** - -aperture_time -------------- - - .. py:attribute:: aperture_time - - Specifies the measurement aperture time for the channel configuration. Aperture time is specified in the units set by the :py:attr:`nidcpower.Session.aperture_time_units` property. - Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. - Default Value: 0.01666666 seconds - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].aperture_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.aperture_time` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Aperture Time** - - C Attribute: **NIDCPOWER_ATTR_APERTURE_TIME** - -aperture_time_auto_mode ------------------------ - - .. py:attribute:: aperture_time_auto_mode - - Automatically optimizes the measurement aperture time according to the actual current range when measurement autorange is enabled. - Optimization accounts for power line frequency when the :py:attr:`nidcpower.Session.aperture_time_units` property is set to :py:data:`~nidcpower.ApertureTimeUnits.POWER_LINE_CYCLES`. - - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` and the :py:attr:`nidcpower.Session.autorange` property is enabled. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].aperture_time_auto_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.aperture_time_auto_mode` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ApertureTimeAutoMode | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Aperture Time Auto Mode** - - C Attribute: **NIDCPOWER_ATTR_APERTURE_TIME_AUTO_MODE** - -aperture_time_units -------------------- - - .. py:attribute:: aperture_time_units - - Specifies the units of the :py:attr:`nidcpower.Session.aperture_time` property for the channel configuration. - Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. - Default Value: :py:data:`~nidcpower.ApertureTimeUnits.SECONDS` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].aperture_time_units` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.aperture_time_units` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.ApertureTimeUnits | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Aperture Time Units** - - C Attribute: **NIDCPOWER_ATTR_APERTURE_TIME_UNITS** - -autorange ---------- - - .. py:attribute:: autorange - - Specifies whether the hardware automatically selects the best range to measure the signal. Note the highest range the algorithm uses is dependent on the corresponding limit range property. The algorithm the hardware uses can be controlled using the :py:attr:`nidcpower.Session.autorange_aperture_time_mode` property. - - - - .. note:: Autoranging begins at module startup and remains active until the module is reconfigured or reset. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Autorange** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE** - -autorange_aperture_time_mode ----------------------------- - - .. py:attribute:: autorange_aperture_time_mode - - Specifies whether the aperture time used for the measurement autorange algorithm is determined automatically or customized using the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_aperture_time_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_aperture_time_mode` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.AutorangeApertureTimeMode | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Aperture Time Mode** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_APERTURE_TIME_MODE** - -autorange_behavior ------------------- - - .. py:attribute:: autorange_behavior - - Specifies the algorithm the hardware uses for measurement autoranging. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.AutorangeBehavior | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Behavior** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_BEHAVIOR** - -autorange_maximum_delay_after_range_change ------------------------------------------- - - .. py:attribute:: autorange_maximum_delay_after_range_change - - Balances between settling time and maximum measurement time by specifying the maximum time delay between when a range change occurs and when measurements resume. - **Valid Values:** The minimum and maximum values of this property are hardware-dependent. - PXIe-4135/4136/4137: 0 to 9 seconds - PXIe-4138/4139: 0 to 9 seconds - PXIe-4147: 0 to 9 seconds - PXIe-4162/4163: 0 to 0.1 seconds. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_maximum_delay_after_range_change` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_maximum_delay_after_range_change` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Maximum Delay After Range Change** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MAXIMUM_DELAY_AFTER_RANGE_CHANGE** - -autorange_minimum_aperture_time -------------------------------- - - .. py:attribute:: autorange_minimum_aperture_time - - Specifies the measurement autorange aperture time used for the measurement autorange algorithm. The aperture time is specified in the units set by the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time_units` property. This value will typically be smaller than the aperture time used for measurements. - - - - .. note:: For smaller ranges, the value is scaled up to account for noise. The factor used to scale the value is derived from the module capabilities. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_aperture_time` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Aperture Time** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_APERTURE_TIME** - -autorange_minimum_aperture_time_units -------------------------------------- - - .. py:attribute:: autorange_minimum_aperture_time_units - - Specifies the units of the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time_units` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_aperture_time_units` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.ApertureTimeUnits | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Aperture Time Units** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_APERTURE_TIME_UNITS** - -autorange_minimum_current_range -------------------------------- - - .. py:attribute:: autorange_minimum_current_range - - Specifies the lowest range used during measurement autoranging. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and minimize frequent and unpredictable range changes for noisy signals. - - - - .. note:: The maximum range used is the range that includes the value specified in the compliance limit property, :py:attr:`nidcpower.Session.voltage_limit_range` property or :py:attr:`nidcpower.Session.current_limit_range` property, depending on the selected :py:attr:`nidcpower.Session.output_function`. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_current_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_current_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Current Range** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_CURRENT_RANGE** - -autorange_minimum_voltage_range -------------------------------- - - .. py:attribute:: autorange_minimum_voltage_range - - Specifies the lowest range used during measurement autoranging. The maximum range used is range that includes the value specified in the compliance limit property. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and/or minimize thrashing between ranges for noisy signals. - - - - .. note:: The maximum range used is the range that includes the value specified in the compliance limit property, :py:attr:`nidcpower.Session.voltage_limit_range` property or :py:attr:`nidcpower.Session.current_limit_range` property, depending on the selected :py:attr:`nidcpower.Session.output_function`. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_voltage_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_voltage_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Voltage Range** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_VOLTAGE_RANGE** - -autorange_threshold_mode ------------------------- - - .. py:attribute:: autorange_threshold_mode - - Specifies thresholds used during autoranging to determine when range changing occurs. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_threshold_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_threshold_mode` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.AutorangeThresholdMode | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Autorange Threshold Mode** - - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_THRESHOLD_MODE** - -auto_zero ---------- - - .. py:attribute:: auto_zero - - Specifies the auto-zero method to use on the device. - Refer to the NI PXI-4132 Measurement Configuration and Timing and Auto Zero topics for more information about how to configure your measurements. - Default Value: The default value for the NI PXI-4132 is :py:data:`~nidcpower.AutoZero.ON`. The default value for all other devices is :py:data:`~nidcpower.AutoZero.OFF`, which is the only supported value for these devices. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].auto_zero` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.auto_zero` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.AutoZero | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Auto Zero** - - C Attribute: **NIDCPOWER_ATTR_AUTO_ZERO** - -auxiliary_power_source_available --------------------------------- - - .. py:attribute:: auxiliary_power_source_available - - Indicates whether an auxiliary power source is connected to the device. - A value of False may indicate that the auxiliary input fuse has blown. Refer to the Detecting Internal/Auxiliary Power topic in the NI DC Power Supplies and SMUs Help for more information about internal and auxiliary power. - power source to generate power. Use the :py:attr:`nidcpower.Session.power_source_in_use` property to retrieve this information. - - - - .. note:: This property does not necessarily indicate if the device is using the auxiliary - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Advanced:Auxiliary Power Source Available** - - C Attribute: **NIDCPOWER_ATTR_AUXILIARY_POWER_SOURCE_AVAILABLE** - -cable_length ------------- - - .. py:attribute:: cable_length - - Specifies how to apply cable compensation data for instruments that support LCR functionality. - Supported instruments use cable compensation for the following operations: - - SMU mode: to stabilize DC current sourcing in the two smallest current ranges. - LCR mode: to compensate for the effects of cabling on LCR measurements. - - For NI standard options, select the length of your NI cable to apply compensation data for a typical cable of that type. - For custom options, choose the source of the custom cable compensation data. You must then generate the custom cable compensation data. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].cable_length` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.cable_length` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.CableLength | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:LCR:Cable Length** - - C Attribute: **NIDCPOWER_ATTR_CABLE_LENGTH** - -channel_count -------------- - - .. py:attribute:: channel_count - - Indicates the number of channels that NI-DCPower supports for the instrument that was chosen when the current session was opened. For channel-based properties, the IVI engine maintains a separate cache value for each channel. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Channel Count** - - C Attribute: **NIDCPOWER_ATTR_CHANNEL_COUNT** - -compliance_limit_symmetry -------------------------- - - .. py:attribute:: compliance_limit_symmetry - - Specifies whether compliance limits for current generation and voltage - generation for the device are applied symmetrically about 0 V and 0 A or - asymmetrically with respect to 0 V and 0 A. - When set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`, voltage limits and current limits are set - using a single property with a positive value. The resulting range is - bounded by this positive value and its opposite. - When set to :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC`, you must separately set a limit high and a - limit low using distinct properties. - For asymmetric limits, the range bounded by the limit high and limit low - must include zero. - **Default Value:** Symmetric - **Related Topics:** - Compliance; - Ranges; - Changing Ranges; - Overranging - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].compliance_limit_symmetry` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.compliance_limit_symmetry` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.ComplianceLimitSymmetry | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Compliance Limit Symmetry** - - C Attribute: **NIDCPOWER_ATTR_COMPLIANCE_LIMIT_SYMMETRY** - -conduction_voltage_mode ------------------------ - - .. py:attribute:: conduction_voltage_mode - - Specifies whether the conduction voltage feature is enabled on the specified channel(s). - - When the conduction voltage feature is enabled, - - The instrument will not begin sinking on the specified channel(s) until the voltage at the input of the specified channel(s) rises above :py:attr:`nidcpower.Session.conduction_voltage_on_threshold` - - The instrument will stop sinking if the voltage at the input of the specified channel(s) falls below :py:attr:`nidcpower.Session.conduction_voltage_off_threshold`. - - When the conduction voltage feature is disabled, - - The instrument will start sinking regardless of the voltage at the input of the specified channel(s). - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.conduction_voltage_mode` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.ConductionVoltageMode | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Conduction Voltage:Mode** - - C Attribute: **NIDCPOWER_ATTR_CONDUCTION_VOLTAGE_MODE** - -conduction_voltage_off_threshold --------------------------------- - - .. py:attribute:: conduction_voltage_off_threshold - - Specifies the minimum voltage, in volts, at the input of the specified channel(s) below which the instrument stops sinking on the specified channel(s) when the conduction voltage feature is enabled. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_off_threshold` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.conduction_voltage_off_threshold` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Conduction Voltage:Off Threshold** - - C Attribute: **NIDCPOWER_ATTR_CONDUCTION_VOLTAGE_OFF_THRESHOLD** - -conduction_voltage_on_threshold -------------------------------- - - .. py:attribute:: conduction_voltage_on_threshold - - Specifies the required minimum voltage, in volts, at the input of the specified channel(s) before the instrument starts sinking on the specified channel(s) when the conduction voltage feature is enabled. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_on_threshold` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.conduction_voltage_on_threshold` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Conduction Voltage:On Threshold** - - C Attribute: **NIDCPOWER_ATTR_CONDUCTION_VOLTAGE_ON_THRESHOLD** - -constant_power_compensation_frequency -------------------------------------- - - .. py:attribute:: constant_power_compensation_frequency - - The frequency at which a pole-zero pair is added to the system when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the output current is below the current limit. - - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_compensation_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Constant Power:Compensation Frequency** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_COMPENSATION_FREQUENCY** - -constant_power_current_limit ----------------------------- - - .. py:attribute:: constant_power_current_limit - - Specifies the current limit, in amps, that the output cannot exceed when generating the desired power level on the specified channel(s). - The device will operate in Constant Current mode if the current exceeds the specified limit. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. - - Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_power_level_range`. - - - - .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_current_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Constant Power:Current Limit** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_CURRENT_LIMIT** - -constant_power_gain_bandwidth ------------------------------ - - .. py:attribute:: constant_power_gain_bandwidth - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the output current is below the current limit. - - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_gain_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Constant Power:Gain Bandwidth** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_GAIN_BANDWIDTH** - -constant_power_level --------------------- - - .. py:attribute:: constant_power_level - - Specifies the power level, in watts, that the device attempts to generate on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. - - Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_power_level_range`. - - - - .. note:: The channel must be enabled for the specified power level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Constant Power:Level** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_LEVEL** - -constant_power_level_range --------------------------- - - .. py:attribute:: constant_power_level_range - - Specifies the power level range, in watts, for the specified channel(s). - The range defines the valid values to which you can set the power level. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. - - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The voltage range and current range used by the instrument are automatically determined by the selected power level range. For more information, refer to the specifications for your instrument. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Constant Power:Level Range** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_LEVEL_RANGE** - -constant_power_pole_zero_ratio ------------------------------- - - .. py:attribute:: constant_power_pole_zero_ratio - - The ratio of the pole frequency to the zero frequency when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the output current is below the current limit. - - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_pole_zero_ratio` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Constant Power:Pole-Zero Ratio** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_POLE_ZERO_RATIO** - -constant_resistance_compensation_frequency ------------------------------------------- - - .. py:attribute:: constant_resistance_compensation_frequency - - The frequency at which a pole-zero pair is added to the system when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the output current is below the current limit. - - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_compensation_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Constant Resistance:Compensation Frequency** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_COMPENSATION_FREQUENCY** - -constant_resistance_current_limit ---------------------------------- - - .. py:attribute:: constant_resistance_current_limit - - Specifies the current limit, in amps, that the output cannot exceed when generating the desired resistance level on the specified channel(s). - The device will operate in Constant Current mode if the current exceeds the specified limit. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. - - Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_resistance_level_range`. - - - - .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_current_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Constant Resistance:Current Limit** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_CURRENT_LIMIT** - -constant_resistance_gain_bandwidth ----------------------------------- - - .. py:attribute:: constant_resistance_gain_bandwidth - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the output current is below the current limit. - - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_gain_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Constant Resistance:Gain Bandwidth** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_GAIN_BANDWIDTH** - -constant_resistance_level -------------------------- - - .. py:attribute:: constant_resistance_level - - Specifies the resistance level, in ohms, that the device attempts to generate on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE`. - - Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_resistance_level_range`. - - - - .. note:: The channel must be enabled for the specified resistance level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Constant Resistance:Level** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_LEVEL** - -constant_resistance_level_range -------------------------------- - - .. py:attribute:: constant_resistance_level_range - - Specifies the resistance level range, in ohms, for the specified channel(s). - The range defines the valid values to which you can set the resistance level. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE`. - - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The voltage range and current range used by the instrument are automatically determined by the selected resistance level range. For more information, refer to the specifications for your instrument. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Constant Resistance:Level Range** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_LEVEL_RANGE** - -constant_resistance_pole_zero_ratio ------------------------------------ - - .. py:attribute:: constant_resistance_pole_zero_ratio - - The ratio of the pole frequency to the zero frequency when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the output current is below the current limit. - - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_pole_zero_ratio` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Constant Resistance:Pole-Zero Ratio** - - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_POLE_ZERO_RATIO** - -current_compensation_frequency ------------------------------- - - .. py:attribute:: current_compensation_frequency - - The frequency at which a pole-zero pair is added to the system when the channel is in Constant Current mode. - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_compensation_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Current:Compensation Frequency** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_COMPENSATION_FREQUENCY** - -current_gain_bandwidth ----------------------- - - .. py:attribute:: current_gain_bandwidth - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Current mode. - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_gain_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Current:Gain Bandwidth** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_GAIN_BANDWIDTH** - -current_level -------------- - - .. py:attribute:: current_level - - Specifies the current level, in amps, that the device attempts to generate on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - - Valid Values: The valid values for this property are defined by the values to which the :py:attr:`nidcpower.Session.current_level_range` property is set. - - - - .. note:: The channel must be enabled for the specified current level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Current Level** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL** - -current_level_autorange ------------------------ - - .. py:attribute:: current_level_autorange - - Specifies whether NI-DCPower automatically selects the current level range based on the desired current level for the specified channels. - If you set this property to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.current_level_range` property. If you change the :py:attr:`nidcpower.Session.current_level_autorange` property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.current_level_range` property was set to (or the default value if the property was never set) and uses that value as the current level range. - Query the :py:attr:`nidcpower.Session.current_level_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method for information about which range NI-DCPower automatically selects. - The :py:attr:`nidcpower.Session.current_level_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - Default Value: :py:data:`~nidcpower.AutoZero.OFF` - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_autorange` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Current Level Autorange** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_AUTORANGE** - -current_level_falling_slew_rate -------------------------------- - - .. py:attribute:: current_level_falling_slew_rate - - Specifies the rate of decrease, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). - This property is applicable only if you set the :py:attr:`nidcpower.Session.output_function` property to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_falling_slew_rate` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_falling_slew_rate` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Current Level Slew Rate:Falling** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_FALLING_SLEW_RATE** - -current_level_range -------------------- - - .. py:attribute:: current_level_range - - Specifies the current level range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the current level. Use the :py:attr:`nidcpower.Session.current_level_autorange` property to enable automatic selection of the current level range. - The :py:attr:`nidcpower.Session.current_level_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The channel must be enabled for the specified current level range to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Current Level Range** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_RANGE** - -current_level_rising_slew_rate ------------------------------- - - .. py:attribute:: current_level_rising_slew_rate - - Specifies the rate of increase, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). - This property is applicable only if you set the :py:attr:`nidcpower.Session.output_function` property to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_rising_slew_rate` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_rising_slew_rate` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Current Level Slew Rate:Rising** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_RISING_SLEW_RATE** - -current_limit -------------- - - .. py:attribute:: current_limit - - Specifies the current limit, in amps, that the output cannot exceed when generating the desired voltage level on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. - - Valid Values: The valid values for this property are defined by the values to which :py:attr:`nidcpower.Session.current_limit_range` property is set. - - - - .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Current Limit** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT** - -current_limit_autorange ------------------------ - - .. py:attribute:: current_limit_autorange - - Specifies whether NI-DCPower automatically selects the current limit range based on the desired current limit for the specified channel(s). - If you set this property to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.current_limit_range` property. If you change this property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.current_limit_range` property was set to (or the default value if the property was never set) and uses that value as the current limit range. - Query the :py:attr:`nidcpower.Session.current_limit_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method for information about which range NI-DCPower automatically selects. - The :py:attr:`nidcpower.Session.current_limit_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - Default Value: :py:data:`~nidcpower.AutoZero.OFF` - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_autorange` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Current Limit Autorange** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_AUTORANGE** - -current_limit_behavior ----------------------- - - .. py:attribute:: current_limit_behavior - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.CurrentLimitBehavior | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_BEHAVIOR** - -current_limit_high ------------------- - - .. py:attribute:: current_limit_high - - Specifies the maximum current, in amps, that the output can produce when - generating the desired voltage on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - You must also specify a :py:attr:`nidcpower.Session.current_limit_low` to complete the asymmetric - range. - **Valid Values:** [1% of :py:attr:`nidcpower.Session.current_limit_range`, :py:attr:`nidcpower.Session.current_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Current Limit High** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_HIGH** - -current_limit_low ------------------ - - .. py:attribute:: current_limit_low - - Specifies the minimum current, in amps, that the output can produce when - generating the desired voltage on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - You must also specify a :py:attr:`nidcpower.Session.current_limit_high` to complete the asymmetric - range. - **Valid Values:** [-:py:attr:`nidcpower.Session.current_limit_range`, -1% of :py:attr:`nidcpower.Session.current_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Current Limit Low** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_LOW** - -current_limit_range -------------------- - - .. py:attribute:: current_limit_range - - Specifies the current limit range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the current limit. Use the :py:attr:`nidcpower.Session.current_limit_autorange` property to enable automatic selection of the current limit range. - The :py:attr:`nidcpower.Session.current_limit_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Current Limit Range** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_RANGE** - -current_pole_zero_ratio ------------------------ - - .. py:attribute:: current_pole_zero_ratio - - The ratio of the pole frequency to the zero frequency when the channel is in Constant Current mode. - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_pole_zero_ratio` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Current:Pole-Zero Ratio** - - C Attribute: **NIDCPOWER_ATTR_CURRENT_POLE_ZERO_RATIO** - -dc_noise_rejection ------------------- - - .. py:attribute:: dc_noise_rejection - - Determines the relative weighting of samples in a measurement. Refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic in the NI DC Power Supplies and SMUs Help for more information about noise rejection. - Default Value: :py:data:`~nidcpower.TransientResponse.NORMAL` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].dc_noise_rejection` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.dc_noise_rejection` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.DCNoiseRejection | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | channels | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:DC Noise Rejection** - - C Attribute: **NIDCPOWER_ATTR_DC_NOISE_REJECTION** - -digital_edge_measure_trigger_input_terminal -------------------------------------------- - - .. py:attribute:: digital_edge_measure_trigger_input_terminal - - Specifies the input terminal for the Measure trigger. This property is used only when the :py:attr:`nidcpower.Session.measure_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. - for this property. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_measure_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_measure_trigger_input_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Measure Trigger:Digital Edge:Input Terminal** - - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_MEASURE_TRIGGER_INPUT_TERMINAL** - -digital_edge_pulse_trigger_input_terminal ------------------------------------------ - - .. py:attribute:: digital_edge_pulse_trigger_input_terminal - - Specifies the input terminal for the Pulse trigger. This property is used only when the :py:attr:`nidcpower.Session.pulse_trigger_type` property is set to digital edge. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_pulse_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_pulse_trigger_input_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Pulse Trigger:Digital Edge:Input Terminal** - - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_PULSE_TRIGGER_INPUT_TERMINAL** - -digital_edge_sequence_advance_trigger_input_terminal ----------------------------------------------------- - - .. py:attribute:: digital_edge_sequence_advance_trigger_input_terminal - - Specifies the input terminal for the Sequence Advance trigger. Use this property only when the :py:attr:`nidcpower.Session.sequence_advance_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. - the NI DC Power Supplies and SMUs Help for information about supported devices. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_sequence_advance_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_sequence_advance_trigger_input_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Sequence Advance Trigger:Digital Edge:Input Terminal** - - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_SEQUENCE_ADVANCE_TRIGGER_INPUT_TERMINAL** - -digital_edge_shutdown_trigger_input_terminal --------------------------------------------- - - .. py:attribute:: digital_edge_shutdown_trigger_input_terminal - - Specifies the input terminal for the Shutdown trigger. This property is used only when the :py:attr:`nidcpower.Session.shutdown_trigger_type` property is set to digital edge. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_shutdown_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_shutdown_trigger_input_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Shutdown Trigger:Digital Edge:Input Terminal** - - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_SHUTDOWN_TRIGGER_INPUT_TERMINAL** - -digital_edge_source_trigger_input_terminal ------------------------------------------- - - .. py:attribute:: digital_edge_source_trigger_input_terminal - - Specifies the input terminal for the Source trigger. Use this property only when the :py:attr:`nidcpower.Session.source_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_source_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_source_trigger_input_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Source Trigger:Digital Edge:Input Terminal** - - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_SOURCE_TRIGGER_INPUT_TERMINAL** - -digital_edge_start_trigger_input_terminal ------------------------------------------ - - .. py:attribute:: digital_edge_start_trigger_input_terminal - - Specifies the input terminal for the Start trigger. Use this property only when the :py:attr:`nidcpower.Session.start_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_start_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_start_trigger_input_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start Trigger:Digital Edge:Input Terminal** - - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_START_TRIGGER_INPUT_TERMINAL** - -driver_setup ------------- - - .. py:attribute:: driver_setup - - Indicates the Driver Setup string that you specified when initializing the driver. - Some cases exist where you must specify the instrument driver options at initialization time. An example of this case is specifying a particular device model from among a family of devices that the driver supports. This property is useful when simulating a device. You can specify the driver-specific options through the DriverSetup keyword in the optionsString parameter in the :py:meth:`nidcpower.Session.__init__` method or through the IVI Configuration Utility. - You can specify driver-specific options through the DriverSetup keyword in the optionsString parameter in the :py:meth:`nidcpower.Session.__init__` method. If you do not specify a Driver Setup string, this property returns an empty string. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Driver Setup** - - C Attribute: **NIDCPOWER_ATTR_DRIVER_SETUP** - -exported_measure_trigger_output_terminal ----------------------------------------- - - .. py:attribute:: exported_measure_trigger_output_terminal - - Specifies the output terminal for exporting the Measure trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_measure_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_measure_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Measure Trigger:Export Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_EXPORTED_MEASURE_TRIGGER_OUTPUT_TERMINAL** - -exported_pulse_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_pulse_trigger_output_terminal - - Specifies the output terminal for exporting the Pulse trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_pulse_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_pulse_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Pulse Trigger:Export Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_EXPORTED_PULSE_TRIGGER_OUTPUT_TERMINAL** - -exported_sequence_advance_trigger_output_terminal -------------------------------------------------- - - .. py:attribute:: exported_sequence_advance_trigger_output_terminal - - Specifies the output terminal for exporting the Sequence Advance trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_sequence_advance_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_sequence_advance_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Sequence Advance Trigger:Export Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_EXPORTED_SEQUENCE_ADVANCE_TRIGGER_OUTPUT_TERMINAL** - -exported_source_trigger_output_terminal ---------------------------------------- - - .. py:attribute:: exported_source_trigger_output_terminal - - Specifies the output terminal for exporting the Source trigger. - Refer to the Device Routes tab in MAX for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_source_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_source_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Source Trigger:Export Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_EXPORTED_SOURCE_TRIGGER_OUTPUT_TERMINAL** - -exported_start_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_start_trigger_output_terminal - - Specifies the output terminal for exporting the Start trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer (MAX) for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_start_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_start_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start Trigger:Export Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** - -fetch_backlog -------------- - - .. py:attribute:: fetch_backlog - - Returns the number of measurements acquired that have not been fetched yet. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].fetch_backlog` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.fetch_backlog` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Fetch Backlog** - - C Attribute: **NIDCPOWER_ATTR_FETCH_BACKLOG** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - Contains the firmware revision information for the device you are currently using. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_firmware_revision` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** - - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - Contains the name of the manufacturer for the device you are currently using. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_manufacturer` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_manufacturer` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** - - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_mode ---------------- - - .. py:attribute:: instrument_mode - - Specifies the mode of operation for an instrument channel for instruments that support multiple modes. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].instrument_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_mode` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.InstrumentMode | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Instrument Mode** - - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_MODE** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - Contains the model number or name of the device that you are currently using. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_model` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_model` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** - - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_MODEL** - -interlock_input_open --------------------- - - .. py:attribute:: interlock_input_open - - Indicates whether the safety interlock circuit is open. - Refer to the Safety Interlock topic in the NI DC Power Supplies and SMUs Help for more information about the safety interlock circuit. - about supported devices. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].interlock_input_open` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.interlock_input_open` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | bool | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Advanced:Interlock Input Open** - - C Attribute: **NIDCPOWER_ATTR_INTERLOCK_INPUT_OPEN** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Indicates the resource descriptor NI-DCPower uses to identify the physical device. - If you initialize NI-DCPower with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. - If you initialize NI-DCPower with the resource descriptor, this property contains that value. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** - - C Attribute: **NIDCPOWER_ATTR_IO_RESOURCE_DESCRIPTOR** - -isolation_state ---------------- - - .. py:attribute:: isolation_state - - Defines whether the channel is isolated. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].isolation_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.isolation_state` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Advanced:Isolation State** - - C Attribute: **NIDCPOWER_ATTR_ISOLATION_STATE** - -lcr_actual_load_reactance -------------------------- - - .. py:attribute:: lcr_actual_load_reactance - - Specifies the actual reactance, in ohms, of the load used for load LCR compensation. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_reactance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_actual_load_reactance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:LCR Actual Load Reactance** - - C Attribute: **NIDCPOWER_ATTR_LCR_ACTUAL_LOAD_REACTANCE** - -lcr_actual_load_resistance --------------------------- - - .. py:attribute:: lcr_actual_load_resistance - - Specifies the actual resistance, in ohms, of the load used for load LCR compensation. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_actual_load_resistance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:LCR Actual Load Resistance** - - C Attribute: **NIDCPOWER_ATTR_LCR_ACTUAL_LOAD_RESISTANCE** - -lcr_ac_dither_enabled ---------------------- - - .. py:attribute:: lcr_ac_dither_enabled - - Specifies whether dithering is enabled during LCR measurements. - Dithering adds out-of-band noise to improve measurements of small voltage and current signals. - - - - .. note:: Hardware is only warranted to meet its accuracy specs with dither enabled. You can disable dither if the added noise interferes with your device-under-test. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_ac_dither_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_ac_dither_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Advanced:Dither Enabled** - - C Attribute: **NIDCPOWER_ATTR_LCR_AC_DITHER_ENABLED** - -lcr_ac_electrical_cable_length_delay ------------------------------------- - - .. py:attribute:: lcr_ac_electrical_cable_length_delay - - Specifies the one-way electrical length delay of the cable, in seconds. - The default value depends on :py:attr:`nidcpower.Session.cable_length`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_ac_electrical_cable_length_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_ac_electrical_cable_length_delay` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:LCR AC Electrical Cable Length Delay** - - C Attribute: **NIDCPOWER_ATTR_LCR_AC_ELECTRICAL_CABLE_LENGTH_DELAY** - -lcr_automatic_level_control ---------------------------- - - .. py:attribute:: lcr_automatic_level_control - - Specifies whether the channel actively attempts to maintain a constant test voltage or current across the DUT for LCR measurements. - The use of voltage or current depends on the test signal you configure with the :py:attr:`nidcpower.Session.lcr_stimulus_function` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_automatic_level_control` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_automatic_level_control` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Automatic Level Control** - - C Attribute: **NIDCPOWER_ATTR_LCR_AUTOMATIC_LEVEL_CONTROL** - -lcr_current_amplitude ---------------------- - - .. py:attribute:: lcr_current_amplitude - - Specifies the amplitude, in amps RMS, of the AC current test signal applied to the DUT for LCR measurements. - This property applies when the :py:attr:`nidcpower.Session.lcr_stimulus_function` property is set to :py:data:`~nidcpower.LCRStimulusFunction.CURRENT`. - - Valid Values: 7.08e-9 A RMS to 0.707 A RMS - - Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_current_amplitude` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_current_amplitude` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Current Amplitude** - - C Attribute: **NIDCPOWER_ATTR_LCR_CURRENT_AMPLITUDE** - -lcr_current_range ------------------ - - .. py:attribute:: lcr_current_range - - Specifies the current range, in amps RMS, for the specified channel(s). - The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_current_amplitude`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_current_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_current_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Advanced:Current Range** - - C Attribute: **NIDCPOWER_ATTR_LCR_CURRENT_RANGE** - -lcr_custom_measurement_time ---------------------------- - - .. py:attribute:: lcr_custom_measurement_time - - Specifies the LCR measurement aperture time for a channel, in seconds, - when the :py:attr:`nidcpower.Session.lcr_measurement_time` property is set to :py:data:`~nidcpower.LCRMeasurementTime.CUSTOM`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_custom_measurement_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_custom_measurement_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Custom Measurement Time** - - C Attribute: **NIDCPOWER_ATTR_LCR_CUSTOM_MEASUREMENT_TIME** - -lcr_dc_bias_automatic_level_control ------------------------------------ - - .. py:attribute:: lcr_dc_bias_automatic_level_control - - Specifies whether the channel actively maintains a constant DC bias voltage or current across the DUT for LCR measurements. - To use this property, you must configure a DC bias by 1) selecting an :py:attr:`nidcpower.Session.lcr_dc_bias_source` and 2) depending on the DC bias source you choose, setting either the :py:attr:`nidcpower.Session.lcr_dc_bias_voltage_level` or :py:attr:`nidcpower.Session.lcr_dc_bias_current_level`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_automatic_level_control` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_automatic_level_control` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Automatic Level Control** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_AUTOMATIC_LEVEL_CONTROL** - -lcr_dc_bias_current_level -------------------------- - - .. py:attribute:: lcr_dc_bias_current_level - - Specifies the DC bias current level, in amps, when the :py:attr:`nidcpower.Session.lcr_dc_bias_source` property is set to :py:data:`~nidcpower.LCRDCBiasSource.CURRENT`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_current_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Current Level** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_CURRENT_LEVEL** - -lcr_dc_bias_current_range -------------------------- - - .. py:attribute:: lcr_dc_bias_current_range - - Specifies the DC Bias current range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_dc_bias_current_level`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_current_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Advanced:Current Range** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_CURRENT_RANGE** - -lcr_dc_bias_source ------------------- - - .. py:attribute:: lcr_dc_bias_source - - Specifies how to apply DC bias for LCR measurements. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_source` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_source` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.LCRDCBiasSource | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | channels | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Source** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_SOURCE** - -lcr_dc_bias_transient_response ------------------------------- - - .. py:attribute:: lcr_dc_bias_transient_response - - For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the transient response values for DC bias or applies the transient response you set manually. - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. - - Related Topics: Transient Response - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_transient_response` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_transient_response` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.LCRDCBiasTransientResponse | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Advanced:Transient Response** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_TRANSIENT_RESPONSE** - -lcr_dc_bias_voltage_level -------------------------- - - .. py:attribute:: lcr_dc_bias_voltage_level - - Specifies the DC bias voltage level, in volts, when the :py:attr:`nidcpower.Session.lcr_dc_bias_source` property is set to :py:data:`~nidcpower.LCRDCBiasSource.VOLTAGE`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_voltage_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Voltage Level** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_VOLTAGE_LEVEL** - -lcr_dc_bias_voltage_range -------------------------- - - .. py:attribute:: lcr_dc_bias_voltage_range - - Specifies the DC Bias voltage range, in volts, for the specified channel(s). - The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_dc_bias_voltage_level`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_voltage_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:DC Bias:Advanced:Voltage Range** - - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_VOLTAGE_RANGE** - -lcr_frequency -------------- - - .. py:attribute:: lcr_frequency - - Specifies the frequency of the AC test signal applied to the DUT for LCR measurements. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Frequency** - - C Attribute: **NIDCPOWER_ATTR_LCR_FREQUENCY** - -lcr_impedance_auto_range ------------------------- - - .. py:attribute:: lcr_impedance_auto_range - - Defines whether an instrument in LCR mode automatically selects the best impedance range for each given LCR measurement. - - Impedance autoranging may be enabled only when both: - - - The :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SINGLE_POINT` - - :py:attr:`nidcpower.Session.measure_when` is set to a value other than :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER` - - You can read :py:attr:`nidcpower.Session.lcr_impedance_range` back after a measurement to determine the actual range used. - - When enabled, impedance autoranging overrides impedance range settings you configure manually with any other properties. - - When using a load with unknown impedance, you can set this property to :py:data:`~nidcpower._LCRImpedanceAutoRange.ON` to determine the correct impedance range for the load. When you know the load impedance, you can achieve faster performance by setting this property to :py:data:`~nidcpower._LCRImpedanceAutoRange.OFF` and setting :py:attr:`nidcpower.Session.lcr_impedance_range_source` to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_auto_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_impedance_auto_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Impedance Range:Impedance Autorange** - - C Attribute: **NIDCPOWER_ATTR_LCR_IMPEDANCE_AUTO_RANGE** - -lcr_impedance_range -------------------- - - .. py:attribute:: lcr_impedance_range - - Specifies the impedance range the channel uses for LCR measurements. - - Valid Values: 0 ohms to +inf ohms - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_impedance_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Impedance Range:Impedance Range** - - C Attribute: **NIDCPOWER_ATTR_LCR_IMPEDANCE_RANGE** - -lcr_impedance_range_source --------------------------- - - .. py:attribute:: lcr_impedance_range_source - - Specifies how the impedance range for LCR measurements is determined. - - ":py:attr:`nidcpower.Session.LCR_IMPEDANCE_AUTORANGE` overrides any impedance range determined by this property. - - " - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range_source` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_impedance_range_source` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.LCRImpedanceRangeSource | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Impedance Range:Advanced:Impedance Range Source** - - C Attribute: **NIDCPOWER_ATTR_LCR_IMPEDANCE_RANGE_SOURCE** - -lcr_load_capacitance --------------------- - - .. py:attribute:: lcr_load_capacitance - - Specifies the load capacitance, in farads and assuming a series model, of the DUT in order to compute the impedance range when the :py:attr:`nidcpower.Session.lcr_impedance_range_source` property is set to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. - - Valid values: (0 farads, +inf farads) - 0 is a special value that signifies +inf farads. - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_capacitance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_capacitance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Impedance Range:Advanced:Load Capacitance** - - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_CAPACITANCE** - -lcr_load_compensation_enabled ------------------------------ - - .. py:attribute:: lcr_load_compensation_enabled - - Specifies whether to apply load LCR compensation data to LCR measurements. - Both the :py:attr:`nidcpower.Session.lcr_open_compensation_enabled` and :py:attr:`nidcpower.Session.lcr_short_compensation_enabled` properties must be set to True in order to set this property to True. - - Use the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to define where the load compensation data that is applied to LCR measurements comes from. - - - - .. note:: Load compensation data are applied only for those specific frequencies you define with :py:meth:`nidcpower.Session.perform_lcr_load_compensation`; - load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_compensation_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Load:Enabled** - - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_COMPENSATION_ENABLED** - -lcr_load_inductance -------------------- - - .. py:attribute:: lcr_load_inductance - - Specifies the load inductance, in henrys and assuming a series model, of the DUT in order to compute the impedance range when the :py:attr:`nidcpower.Session.lcr_impedance_range_source` property is set to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. - - Valid values: [0 henrys, +inf henrys) - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_inductance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_inductance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Impedance Range:Advanced:Load Inductance** - - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_INDUCTANCE** - -lcr_load_resistance -------------------- - - .. py:attribute:: lcr_load_resistance - - Specifies the load resistance, in ohms and assuming a series model, of the DUT in order to compute the impedance range when the :py:attr:`nidcpower.Session.lcr_impedance_range_source` property is set to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. - - Valid values: [0 ohms, +inf ohms) - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_resistance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Impedance Range:Advanced:Load Resistance** - - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_RESISTANCE** - -lcr_measured_load_reactance ---------------------------- - - .. py:attribute:: lcr_measured_load_reactance - - Specifies the reactance, in ohms, of the load used for load LCR compensation as measured by the instrument. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_reactance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_measured_load_reactance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Load:Measured Reactance** - - C Attribute: **NIDCPOWER_ATTR_LCR_MEASURED_LOAD_REACTANCE** - -lcr_measured_load_resistance ----------------------------- - - .. py:attribute:: lcr_measured_load_resistance - - Specifies the resistance, in ohms, of the load used for load LCR compensation as measured by the instrument. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_measured_load_resistance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Load:Measured Resistance** - - C Attribute: **NIDCPOWER_ATTR_LCR_MEASURED_LOAD_RESISTANCE** - -lcr_measurement_time --------------------- - - .. py:attribute:: lcr_measurement_time - - Selects a general aperture time profile for LCR measurements. The actual duration of each profile depends on the frequency of the LCR test signal. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_measurement_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_measurement_time` - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.LCRMeasurementTime | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | channels | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Measurement Time** - - C Attribute: **NIDCPOWER_ATTR_LCR_MEASUREMENT_TIME** - -lcr_open_compensation_enabled ------------------------------ - - .. py:attribute:: lcr_open_compensation_enabled - - Specifies whether to apply open LCR compensation data to LCR measurements. - Use the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to define where the open compensation data that is applied to LCR measurements comes from. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_compensation_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Open:Enabled** - - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_COMPENSATION_ENABLED** - -lcr_open_conductance --------------------- - - .. py:attribute:: lcr_open_conductance - - Specifies the conductance, in siemens, of the circuit used for open LCR compensation. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_conductance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_conductance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Open:Conductance** - - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_CONDUCTANCE** - -lcr_open_short_load_compensation_data_source --------------------------------------------- - - .. py:attribute:: lcr_open_short_load_compensation_data_source - - Specifies the source of the LCR compensation data NI-DCPower applies to LCR measurements. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_short_load_compensation_data_source` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_short_load_compensation_data_source` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------------------+ - | Characteristic | Value | - +=======================+==============================================+ - | Datatype | enums.LCROpenShortLoadCompensationDataSource | - +-----------------------+----------------------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:LCR Open/Short/Load Compensation Data Source** - - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE** - -lcr_open_susceptance --------------------- - - .. py:attribute:: lcr_open_susceptance - - Specifies the susceptance, in siemens, of the circuit used for open LCR compensation. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_susceptance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_susceptance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Open:Susceptance** - - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_SUSCEPTANCE** - -lcr_short_compensation_enabled ------------------------------- - - .. py:attribute:: lcr_short_compensation_enabled - - Specifies whether to apply short LCR compensation data to LCR measurements. - Use the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to define where the short compensation data that is applied to LCR measurements comes from. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_compensation_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Short:Enabled** - - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_COMPENSATION_ENABLED** - -lcr_short_custom_cable_compensation_enabled -------------------------------------------- - - .. py:attribute:: lcr_short_custom_cable_compensation_enabled - - Defines how to apply short custom cable compensation in LCR mode when :py:attr:`nidcpower.Session.cable_length` property is set to :py:data:`~nidcpower.CableLength.CUSTOM_ONBOARD_STORAGE` or :py:data:`~nidcpower.CableLength.CUSTOM_AS_CONFIGURED`. - - LCR custom cable compensation uses compensation data for both an open and short configuration. - For open custom cable compensation, you must supply your own data from a call to :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation`. - For short custom cable compensation, you can supply your own data from a call to :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation` or NI-DCPower can apply a default set of short compensation data. - - +-------+----------------------------------------------------------------------------------------------------------------------------------+ - | False | Uses default short compensation data. | - +-------+----------------------------------------------------------------------------------------------------------------------------------+ - | True | Uses short custom cable compensation data generated by :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation`. | - +-------+----------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_custom_cable_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_custom_cable_compensation_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:LCR Short Custom Cable Compensation Enabled** - - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_CUSTOM_CABLE_COMPENSATION_ENABLED** - -lcr_short_reactance -------------------- - - .. py:attribute:: lcr_short_reactance - - Specifies the reactance, in ohms, of the circuit used for short LCR compensation. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_reactance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_reactance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Short:Reactance** - - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_REACTANCE** - -lcr_short_resistance --------------------- - - .. py:attribute:: lcr_short_resistance - - Specifies the resistance, in ohms, of the circuit used for short LCR compensation. - This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_resistance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Compensation:Short:Resistance** - - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_RESISTANCE** - -lcr_source_aperture_time ------------------------- - - .. py:attribute:: lcr_source_aperture_time - - Specifies the LCR source aperture time for a channel, in seconds. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_source_aperture_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_source_aperture_time` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Advanced:Source Aperture Time** - - C Attribute: **NIDCPOWER_ATTR_LCR_SOURCE_APERTURE_TIME** - -lcr_source_delay_mode ---------------------- - - .. py:attribute:: lcr_source_delay_mode - - For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the source delay or applies a source delay you set manually. - - You can return the source delay duration for either option by reading :py:attr:`nidcpower.Session.source_delay`. - - When you use this property to manually set the source delay, it is possible to set source delays short enough to unbalance the bridge and affect measurement accuracy. LCR measurement methods report whether the bridge is unbalanced. - - Default Value: :py:data:`~nidcpower.LCRSourceDelayMode.AUTOMATIC` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_source_delay_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_source_delay_mode` - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.LCRSourceDelayMode | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | channels | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:Source Delay Mode** - - C Attribute: **NIDCPOWER_ATTR_LCR_SOURCE_DELAY_MODE** - -lcr_stimulus_function ---------------------- - - .. py:attribute:: lcr_stimulus_function - - Specifies the type of test signal to apply to the DUT for LCR measurements. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_stimulus_function` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_stimulus_function` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.LCRStimulusFunction | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Function** - - C Attribute: **NIDCPOWER_ATTR_LCR_STIMULUS_FUNCTION** - -lcr_voltage_amplitude ---------------------- - - .. py:attribute:: lcr_voltage_amplitude - - Specifies the amplitude, in volts RMS, of the AC voltage test signal applied to the DUT for LCR measurements. - This property applies when the :py:attr:`nidcpower.Session.lcr_stimulus_function` property is set to :py:data:`~nidcpower.LCRStimulusFunction.VOLTAGE`. - - Valid Values: 7.08e-4 V RMS to 7.07 V RMS - - Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_amplitude` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_voltage_amplitude` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Voltage Amplitude** - - C Attribute: **NIDCPOWER_ATTR_LCR_VOLTAGE_AMPLITUDE** - -lcr_voltage_range ------------------ - - .. py:attribute:: lcr_voltage_range - - Specifies the voltage range, in volts RMS, for the specified channel(s). - The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_voltage_amplitude`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_voltage_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **LCR:AC Stimulus:Advanced:Voltage Range** - - C Attribute: **NIDCPOWER_ATTR_LCR_VOLTAGE_RANGE** - -logical_name ------------- - - .. py:attribute:: logical_name - - Contains the logical name you specified when opening the current IVI session. - You can pass a logical name to the :py:meth:`nidcpower.Session.__init__` method. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a method section in the IVI Configuration file. The method section specifies a physical device and initial user options. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NIDCPOWER_ATTR_LOGICAL_NAME** - -measure_buffer_size -------------------- - - .. py:attribute:: measure_buffer_size - - Specifies the number of samples that the active channel measurement buffer can hold. - The default value is the maximum number of samples that a device is capable of recording in one second. - Valid Values: The PXIe-4051, PXIe-4147, and PXIe-4150/4151 support values from 170 to 18000110. - The PXIe-4162/4163 supports values from 256 to 1000192. - The PXIe-4190 supports values from 102 to 6000048. - The PXIe-4112, PXIe-4113, and PXIe-4154 support values from 1000 to 178956970. - All other supported instruments support values from 1000 to 268435455. - Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_buffer_size` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_buffer_size` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Measure Buffer Size** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_BUFFER_SIZE** - -measure_complete_event_delay ----------------------------- - - .. py:attribute:: measure_complete_event_delay - - Specifies the amount of time to delay the generation of the Measure Complete event, in seconds. - Valid Values: The PXIe-4051 supports values from 0 seconds to 39 seconds. - The PXIe-4147 supports values from 0 seconds to 26.5 seconds. - The PXIe-4150/4151 supports values from 0 seconds to 42 seconds. - The PXIe-4162/4163 and PXIe-4190 support values from 0 seconds to 23 seconds. - All other supported instruments support values from 0 to 167 seconds. - Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_delay` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Measure Complete Event:Event Delay** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_DELAY** - -measure_complete_event_output_behavior --------------------------------------- - - .. py:attribute:: measure_complete_event_output_behavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Measure Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Measure Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. - - - - .. note:: This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_output_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.EventOutputBehavior | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Measure Complete Event:Output Behavior** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_OUTPUT_BEHAVIOR** - -measure_complete_event_output_terminal --------------------------------------- - - .. py:attribute:: measure_complete_event_output_terminal - - Specifies the output terminal for exporting the Measure Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Measure Complete Event:Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_OUTPUT_TERMINAL** - -measure_complete_event_pulse_polarity -------------------------------------- - - .. py:attribute:: measure_complete_event_pulse_polarity - - Specifies the behavior of the Measure Complete event. - Default Value: :py:data:`~nidcpower.Polarity.HIGH` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_pulse_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Polarity | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Measure Complete Event:Pulse:Polarity** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_PULSE_POLARITY** - -measure_complete_event_pulse_width ----------------------------------- - - .. py:attribute:: measure_complete_event_pulse_width - - Specifies the width of the Measure Complete event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - Valid Values: 1.5e-7 to 1.6e-6 - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Measure Complete Event:Pulse:Width** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_PULSE_WIDTH** - -measure_complete_event_toggle_initial_state -------------------------------------------- - - .. py:attribute:: measure_complete_event_toggle_initial_state - - Specifies the initial state of the Measure Complete event when you set the :py:attr:`nidcpower.Session.measure_complete_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. - For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_toggle_initial_state` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.EventToggleInitialState | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Measure Complete Event:Toggle:Initial State** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_TOGGLE_INITIAL_STATE** - -measure_record_delta_time -------------------------- - - .. py:attribute:: measure_record_delta_time - - Queries the amount of time, in seconds, between between the start of two consecutive measurements in a measure record. Only query this property after the desired measurement settings are committed. - two measurements and the rest would differ. - - - - .. note:: This property is not available when Auto Zero is configured to Once because the amount of time between the first - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_record_delta_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_record_delta_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read only | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Measure Record Delta Time** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_RECORD_DELTA_TIME** - -measure_record_length ---------------------- - - .. py:attribute:: measure_record_length - - Specifies how many measurements compose a measure record. When this property is set to a value greater than 1, the :py:attr:`nidcpower.Session.measure_when` property must be set to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE` or :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`. - Valid Values: 1 to 16,777,216 - Default Value: 1 - - - - .. note:: This property is not available in a session involving multiple channels. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_record_length` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_record_length` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Measure Record Length** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_RECORD_LENGTH** - -measure_record_length_is_finite -------------------------------- - - .. py:attribute:: measure_record_length_is_finite - - Specifies whether to take continuous measurements. Call the :py:meth:`nidcpower.Session.abort` method to stop continuous measurements. When this property is set to False and the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SINGLE_POINT`, the :py:attr:`nidcpower.Session.measure_when` property must be set to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE` or :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`. When this property is set to False and the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SEQUENCE`, the :py:attr:`nidcpower.Session.measure_when` property must be set to :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`. - Default Value: True - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. This property is not available in a session involving multiple channels. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_record_length_is_finite` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_record_length_is_finite` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Measure Record Length Is Finite** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_RECORD_LENGTH_IS_FINITE** - -measure_trigger_type --------------------- - - .. py:attribute:: measure_trigger_type - - Specifies the behavior of the Measure trigger. - Default Value: :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Measure Trigger:Trigger Type** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_TRIGGER_TYPE** - -measure_when ------------- - - .. py:attribute:: measure_when - - Specifies when the measure unit should acquire measurements. Unless this property is configured to :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`, the :py:attr:`nidcpower.Session.measure_trigger_type` property is ignored. - Refer to the Acquiring Measurements topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements. - Default Value: If the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SINGLE_POINT`, the default value is :py:data:`~nidcpower.MeasureWhen.ON_DEMAND`. This value supports only the :py:meth:`nidcpower.Session.measure` method and :py:meth:`nidcpower.Session.measure_multiple` method. If the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SEQUENCE`, the default value is :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE`. This value supports only the :py:meth:`nidcpower.Session.fetch_multiple` method. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_when` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_when` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.MeasureWhen | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Measure When** - - C Attribute: **NIDCPOWER_ATTR_MEASURE_WHEN** - -merged_channels ---------------- - - .. py:attribute:: merged_channels - - Specifies the merge channel(s) to combine with a designated primary channel of an instrument in order to increase the maximum current you can source from the instrument. - Set this property on the primary channel only, and pass the merge channels as the value of this property. - Refer to the Merged Channels topic in your instrument user manual for more information about using merged channels. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if no channels were merged. - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].merged_channels` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.merged_channels` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Merged Channels** - - C Attribute: **NIDCPOWER_ATTR_MERGED_CHANNELS** - -output_capacitance ------------------- - - .. py:attribute:: output_capacitance - - Specifies whether to use a low or high capacitance on the output for the specified channel(s). - Refer to the NI PXI-4130 Output Capacitance Selection topic in the NI DC Power Supplies and SMUs Help for more information about capacitance. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_capacitance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_capacitance` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.OutputCapacitance | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Output Capacitance** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CAPACITANCE** - -output_connected ----------------- - - .. py:attribute:: output_connected - - Specifies whether the output relay is connected (closed) or disconnected (open). The :py:attr:`nidcpower.Session.output_enabled` property does not change based on this property; they are independent of each other. - - Set this property to False to disconnect the output terminal from the output. - - Default Value: True - - - - .. note:: Only disconnect the output when disconnecting is necessary for your application. For example, a battery connected to the output terminal might discharge unless the relay is disconnected. Excessive connecting and disconnecting of the output can cause premature wear on electromechanical relays, such as those used by the PXIe-4147, PXI-4132, or PXIe-4138/39. - - The PXIe-4051 does not have an output relay. For the PXIe-4051, this property specifies whether the input MOSFETs are connected (ON) or disconnected (OFF). - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_connected` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_connected` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Connected** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CONNECTED** - -output_cutoff_current_change_limit_high ---------------------------------------- - - .. py:attribute:: output_cutoff_current_change_limit_high - - Specifies a limit for positive current slew rate, in amps per microsecond, for output cutoff. - If the current increases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_HIGH` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_change_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Current Change Limit High** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_CHANGE_LIMIT_HIGH** - -output_cutoff_current_change_limit_low --------------------------------------- - - .. py:attribute:: output_cutoff_current_change_limit_low - - Specifies a limit for negative current slew rate, in amps per microsecond, for output cutoff. - If the current decreases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_LOW` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_change_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Current Change Limit Low** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_CHANGE_LIMIT_LOW** - -output_cutoff_current_measure_limit_high ----------------------------------------- - - .. py:attribute:: output_cutoff_current_measure_limit_high - - Specifies a high limit current value, in amps, for output cutoff. - If the measured current exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_HIGH` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_measure_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Current Measure Limit High** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_MEASURE_LIMIT_HIGH** - -output_cutoff_current_measure_limit_low ---------------------------------------- - - .. py:attribute:: output_cutoff_current_measure_limit_low - - Specifies a low limit current value, in amps, for output cutoff. - If the measured current falls below this limit, the output is disconnected. - - To find out whether an output has fallen below this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_LOW` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_measure_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Current Measure Limit Low** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_MEASURE_LIMIT_LOW** - -output_cutoff_current_overrange_enabled ---------------------------------------- - - .. py:attribute:: output_cutoff_current_overrange_enabled - - Enables or disables current overrange functionality for output cutoff. If enabled, the output is disconnected when the measured current saturates the current range. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_SATURATED` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_overrange_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_overrange_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Current Overrange Enabled** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_OVERRANGE_ENABLED** - -output_cutoff_delay -------------------- - - .. py:attribute:: output_cutoff_delay - - Delays disconnecting the output by the time you specify, in seconds, when a limit is exceeded. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_delay` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Delay** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_DELAY** - -output_cutoff_enabled ---------------------- - - .. py:attribute:: output_cutoff_enabled - - Enables or disables output cutoff functionality. If enabled, you can define output cutoffs that, if exceeded, cause the output of the specified channel(s) to be disconnected. - When this property is disabled, all other output cutoff properties are ignored. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - Instruments that do not support this property behave as if this property were set to False. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Enabled** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_ENABLED** - -output_cutoff_voltage_change_limit_high ---------------------------------------- - - .. py:attribute:: output_cutoff_voltage_change_limit_high - - Specifies a limit for positive voltage slew rate, in volts per microsecond, for output cutoff. - If the voltage increases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_HIGH` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Voltage Change Limit High** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_CHANGE_LIMIT_HIGH** - -output_cutoff_voltage_change_limit_low --------------------------------------- - - .. py:attribute:: output_cutoff_voltage_change_limit_low - - Specifies a limit for negative voltage slew rate, in volts per microsecond, for output cutoff. - If the voltage decreases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_LOW` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Voltage Change Limit Low** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_CHANGE_LIMIT_LOW** - -output_cutoff_voltage_measure_limit_high ----------------------------------------- - - .. py:attribute:: output_cutoff_voltage_measure_limit_high - - Specifies a high limit voltage value, in volts, for output cutoff. - If the measured voltage exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_HIGH` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Voltage Measure Limit High** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_MEASURE_LIMIT_HIGH** - -output_cutoff_voltage_measure_limit_low ---------------------------------------- - - .. py:attribute:: output_cutoff_voltage_measure_limit_low - - Specifies a low limit voltage value, in volts, for output cutoff. - If the measured voltage falls below this limit, the output is disconnected. - - To find out whether an output has fallen below this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_LOW` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Voltage Measure Limit Low** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_MEASURE_LIMIT_LOW** - -output_cutoff_voltage_output_limit_high ---------------------------------------- - - .. py:attribute:: output_cutoff_voltage_output_limit_high - - Specifies a high limit voltage value, in volts, for output cutoff. - If the voltage output exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_HIGH` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Voltage Output Limit High** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_OUTPUT_LIMIT_HIGH** - -output_cutoff_voltage_output_limit_low --------------------------------------- - - .. py:attribute:: output_cutoff_voltage_output_limit_low - - Specifies a low limit voltage value, in volts, for output cutoff. - If the voltage output falls below this limit, the output is disconnected. - - To find out whether an output has fallen below this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_LOW` as the output cutoff reason. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Cutoff:Voltage Output Limit Low** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_OUTPUT_LIMIT_LOW** - -output_enabled --------------- - - .. py:attribute:: output_enabled - - Specifies whether the output is enabled (True) or disabled (False). - - Depending on the value you specify for the :py:attr:`nidcpower.Session.output_function` property, you also must set the corresponding level properties or :py:attr:`nidcpower.Session.output_resistance` in addition to enabling the output to generate the desired level. - For more information about configuring the output level, refer to the :py:attr:`nidcpower.Session.output_function` property. - - Default Value: The default value is True if you use the :py:meth:`nidcpower.Session.__init__` method to open the session. Otherwise the default value is False, including when you use a calibration session or the deprecated programming model. - - - - .. note:: If the session is in the Committed or Uncommitted states, enabling the output does not take effect until you call the :py:meth:`nidcpower.Session.initiate` method. Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for more information about NI-DCPower programming states. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Enabled** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_ENABLED** - -output_function ---------------- - - .. py:attribute:: output_function - - Configures the method to generate on the specified channel(s). - - When :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` is selected, the device generates the desired voltage level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` is selected: - - :py:attr:`nidcpower.Session.voltage_level` - - :py:attr:`nidcpower.Session.current_limit` - - :py:attr:`nidcpower.Session.current_limit_high` - - :py:attr:`nidcpower.Session.current_limit_low` - - :py:attr:`nidcpower.Session.voltage_level_range` - - :py:attr:`nidcpower.Session.current_limit_range` - - :py:attr:`nidcpower.Session.compliance_limit_symmetry` - - When :py:data:`~nidcpower.OutputFunction.DC_CURRENT` is selected, the device generates the desired current level on the output as long as the output voltage is below the voltage limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.DC_CURRENT` is selected: - - :py:attr:`nidcpower.Session.current_level` - - :py:attr:`nidcpower.Session.voltage_limit` - - :py:attr:`nidcpower.Session.voltage_limit_high` - - :py:attr:`nidcpower.Session.voltage_limit_low` - - :py:attr:`nidcpower.Session.current_level_range` - - :py:attr:`nidcpower.Session.voltage_limit_range` - - :py:attr:`nidcpower.Session.compliance_limit_symmetry` - - When :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE` is selected, the device generates pulses at the desired pulse voltage levels on the output as long as the output current is below the pulse current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE` is selected: - - :py:attr:`nidcpower.Session.pulse_voltage_level` - - :py:attr:`nidcpower.Session.pulse_bias_voltage_level` - - :py:attr:`nidcpower.Session.pulse_current_limit` - - :py:attr:`nidcpower.Session.pulse_current_limit_high` - - :py:attr:`nidcpower.Session.pulse_current_limit_low` - - :py:attr:`nidcpower.Session.pulse_bias_current_limit` - - :py:attr:`nidcpower.Session.pulse_bias_current_limit_high` - - :py:attr:`nidcpower.Session.pulse_bias_current_limit_low` - - :py:attr:`nidcpower.Session.pulse_voltage_level_range` - - :py:attr:`nidcpower.Session.pulse_current_limit_range` - - :py:attr:`nidcpower.Session.compliance_limit_symmetry` - - When :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT` is selected, the device generates pulses at the desired pulse current levels on the output as long as the output voltage is below the pulse voltage limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT` is selected: - - :py:attr:`nidcpower.Session.pulse_current_level` - - :py:attr:`nidcpower.Session.pulse_bias_current_level` - - :py:attr:`nidcpower.Session.pulse_voltage_limit` - - :py:attr:`nidcpower.Session.pulse_voltage_limit_high` - - :py:attr:`nidcpower.Session.pulse_voltage_limit_low` - - :py:attr:`nidcpower.Session.pulse_bias_voltage_limit` - - :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_high` - - :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_low` - - :py:attr:`nidcpower.Session.pulse_current_level_range` - - :py:attr:`nidcpower.Session.pulse_voltage_limit_range` - - :py:attr:`nidcpower.Session.compliance_limit_symmetry` - - When :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` is selected, the device generates the desired resistance level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` is selected: - - :py:attr:`nidcpower.Session.constant_resistance_level` - - :py:attr:`nidcpower.Session.constant_resistance_current_limit` - - :py:attr:`nidcpower.Session.constant_resistance_level_range` - - When :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` is selected, the device generates the desired power level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` is selected: - - :py:attr:`nidcpower.Session.constant_power_level` - - :py:attr:`nidcpower.Session.constant_power_current_limit` - - :py:attr:`nidcpower.Session.constant_power_level_range` - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_function` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_function` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.OutputFunction | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Function** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_FUNCTION** - -output_resistance ------------------ - - .. py:attribute:: output_resistance - - Specifies the output resistance that the device attempts to generate for the specified channel(s). - - Depending on the instrument, output resistance is configurable only if you set the :py:attr:`nidcpower.Session.output_function` of the channel as follows: - - PXIe-4141, PXIe-4143, PXIe-4145: :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` - - PXIe-4135, PXIe-4137, PXIe-4139, PXIe-4147: :py:data:`~nidcpower.OutputFunction.DC_CURRENT` or :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` - - **Valid Values**: Vary by device. Refer to the device specifications for your device for more information about supported values. - - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - - - - .. note:: The channel must be enabled for the specified output resistance to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - Using the :py:attr:`nidcpower.Session.merged_channels` property to merge instrument outputs affects the valid output resistance range you can program. Refer to the Merged Channels topic for your device for details. - - To specify the resistance level that the device attempts to generate when :py:attr:`nidcpower.Session.output_function` is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE`, use the :py:attr:`nidcpower.Session.constant_resistance_level` property. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_resistance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Output Resistance** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_RESISTANCE** - -output_shorted --------------- - - .. py:attribute:: output_shorted - - Specifies whether the input of the instrument simulates a short circuit. - When this property is set to True, the electronic load will simulate a short circuit across the channel/input terminals. The electronic load uses the maximum rated current and range to simulate the short circuit. This property will only take effect when both :py:attr:`nidcpower.Session.output_enabled` and :py:attr:`nidcpower.Session.output_connected` are True. - - When this property is set to False, the instrument will resume normal operation based on its existing settings on the specified channel(s). - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_shorted` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_shorted` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Output Shorted** - - C Attribute: **NIDCPOWER_ATTR_OUTPUT_SHORTED** - -overranging_enabled -------------------- - - .. py:attribute:: overranging_enabled - - Specifies whether NI-DCPower allows setting the voltage level, current level, voltage limit and current limit outside the device specification limits. True means that overranging is enabled. - Refer to the Ranges topic in the NI DC Power Supplies and SMUs Help for more information about overranging. - Default Value: False - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].overranging_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.overranging_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Overranging Enabled** - - C Attribute: **NIDCPOWER_ATTR_OVERRANGING_ENABLED** - -ovp_enabled ------------ - - .. py:attribute:: ovp_enabled - - Enables (True) or disables (False) overvoltage protection (OVP). - Refer to the Output Overvoltage Protection topic in the NI DC Power Supplies and SMUs Help for more information about overvoltage protection. - Default Value: False - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ovp_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ovp_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:OVP Enabled** - - C Attribute: **NIDCPOWER_ATTR_OVP_ENABLED** - -ovp_limit ---------- - - .. py:attribute:: ovp_limit - - Determines the voltage limit, in volts, beyond which overvoltage protection (OVP) engages. - The limit is specified as a positive value, but symmetric positive and negative limits are enforced simultaneously. - For example, setting the OVP Limit to 65 will configure the OVP feature to trigger an OVP error if the output exceeds ±65 V. - - Valid Values: 2 V to 210 V - Default Value: 210 V - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ovp_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ovp_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:OVP Limit** - - C Attribute: **NIDCPOWER_ATTR_OVP_LIMIT** - -power_allocation_mode ---------------------- - - .. py:attribute:: power_allocation_mode - - Determines whether the device sources the power its source configuration requires or a specific wattage you request; determines whether NI-DCPower proactively checks that this sourcing power is within the maximum per-channel and overall sourcing power of the device. - - When this property configures NI-DCPower to perform a sourcing power check, a device is not permitted to source power in excess of its maximum per-channel or overall sourcing power. If the check determines a source configuration or power request would require the device to do so, NI-DCPower returns an error. - - When this property does not configure NI-DCPower to perform a sourcing power check, a device can attempt to fulfill source configurations that would require it to source power in excess of its maximum per-channel or overall sourcing power and may shut down to prevent damage. - - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if this property were set to :py:data:`~nidcpower.PowerAllocationMode.DISABLED`. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].power_allocation_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.power_allocation_mode` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.PowerAllocationMode | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Power Allocation Mode** - - C Attribute: **NIDCPOWER_ATTR_POWER_ALLOCATION_MODE** - -power_line_frequency --------------------- - - .. py:attribute:: power_line_frequency - - Specifies the power line frequency for specified channel(s). NI-DCPower uses this value to select a timebase for setting the :py:attr:`nidcpower.Session.aperture_time` property in power line cycles (PLCs). - in the NI DC Power Supplies and SMUs Help for information about supported devices. - Default Value: :py:data:`~nidcpower.NIDCPOWER_VAL_60_HERTZ` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].power_line_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.power_line_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Power Line Frequency** - - C Attribute: **NIDCPOWER_ATTR_POWER_LINE_FREQUENCY** - -power_source ------------- - - .. py:attribute:: power_source - - Specifies the power source to use. NI-DCPower switches the power source used by the device to the specified value. - Default Value: :py:data:`~nidcpower.PowerSource.AUTOMATIC` - is set to :py:data:`~nidcpower.PowerSource.AUTOMATIC`. However, if the session is in the Committed or Uncommitted state when you set this property, the power source selection only occurs after you call the :py:meth:`nidcpower.Session.initiate` method. - - - - .. note:: Automatic selection is not persistent and occurs only at the time this property - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.PowerSource | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Advanced:Power Source** - - C Attribute: **NIDCPOWER_ATTR_POWER_SOURCE** - -power_source_in_use -------------------- - - .. py:attribute:: power_source_in_use - - Indicates whether the device is using the internal or auxiliary power source to generate power. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.PowerSourceInUse | - +-----------------------+------------------------+ - | Permissions | read only | - +-----------------------+------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Advanced:Power Source In Use** - - C Attribute: **NIDCPOWER_ATTR_POWER_SOURCE_IN_USE** - -pulse_bias_current_level ------------------------- - - .. py:attribute:: pulse_bias_current_level - - Specifies the pulse bias current level, in amps, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_level_range` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Bias Current Level** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LEVEL** - -pulse_bias_current_limit ------------------------- - - .. py:attribute:: pulse_bias_current_limit - - Specifies the pulse bias current limit, in amps, that the output cannot exceed when generating the desired pulse bias voltage on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_limit_range` property. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Current Limit** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LIMIT** - -pulse_bias_current_limit_high ------------------------------ - - .. py:attribute:: pulse_bias_current_limit_high - - Specifies the maximum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *off* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - You must also specify a :py:attr:`nidcpower.Session.pulse_bias_current_limit_low` to complete the - asymmetric range. - **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`, :py:attr:`nidcpower.Session.pulse_current_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Current Limit High** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LIMIT_HIGH** - -pulse_bias_current_limit_low ----------------------------- - - .. py:attribute:: pulse_bias_current_limit_low - - Specifies the minimum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *off* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - You must also specify a :py:attr:`nidcpower.Session.pulse_bias_current_limit_high` to complete the - asymmetric range. - **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_current_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Current Limit Low** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LIMIT_LOW** - -pulse_bias_delay ----------------- - - .. py:attribute:: pulse_bias_delay - - Determines when, in seconds, the device generates the Pulse Complete event after generating the off level of a pulse. - Valid Values: 0 to 167 seconds - Default Value: 16.67 milliseconds - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_delay` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Pulse Bias Delay** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_DELAY** - -pulse_bias_voltage_level ------------------------- - - .. py:attribute:: pulse_bias_voltage_level - - Specifies the pulse bias voltage level, in volts, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_voltage_level_range` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Voltage Level** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LEVEL** - -pulse_bias_voltage_limit ------------------------- - - .. py:attribute:: pulse_bias_voltage_limit - - Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired current on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_voltage_limit_range` property. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Bias Voltage Limit** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LIMIT** - -pulse_bias_voltage_limit_high ------------------------------ - - .. py:attribute:: pulse_bias_voltage_limit_high - - Specifies the maximum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *off* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - You must also specify a :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_low` to complete the - asymmetric range. - **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`, :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Bias Voltage Limit High** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LIMIT_HIGH** - -pulse_bias_voltage_limit_low ----------------------------- - - .. py:attribute:: pulse_bias_voltage_limit_low - - Specifies the minimum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *off* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - You must also specify a :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_high` to complete the - asymmetric range. - **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_voltage_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Bias Voltage Limit Low** - - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LIMIT_LOW** - -pulse_complete_event_output_terminal ------------------------------------- - - .. py:attribute:: pulse_complete_event_output_terminal - - Specifies the output terminal for exporting the Pulse Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - Default Value:The default value for PXI Express devices is 250 ns. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_complete_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Pulse Complete Event:Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_PULSE_COMPLETE_EVENT_OUTPUT_TERMINAL** - -pulse_complete_event_pulse_polarity ------------------------------------ - - .. py:attribute:: pulse_complete_event_pulse_polarity - - Specifies the behavior of the Pulse Complete event. - Default Value: :py:data:`~nidcpower.Polarity.HIGH` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_complete_event_pulse_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Polarity | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Pulse Complete Event:Pulse:Polarity** - - C Attribute: **NIDCPOWER_ATTR_PULSE_COMPLETE_EVENT_PULSE_POLARITY** - -pulse_complete_event_pulse_width --------------------------------- - - .. py:attribute:: pulse_complete_event_pulse_width - - Specifies the width of the Pulse Complete event, in seconds. - The minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for PXI Express devices is 1.6 microseconds. - Default Value: The default value for PXI Express devices is 250 ns. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_complete_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Pulse Complete Event:Pulse:Width** - - C Attribute: **NIDCPOWER_ATTR_PULSE_COMPLETE_EVENT_PULSE_WIDTH** - -pulse_current_level -------------------- - - .. py:attribute:: pulse_current_level - - Specifies the pulse current level, in amps, that the device attempts to generate on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_level_range` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Current Level** - - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LEVEL** - -pulse_current_level_range -------------------------- - - .. py:attribute:: pulse_current_level_range - - Specifies the pulse current level range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the pulse current level and pulse bias current level. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Current Level Range** - - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LEVEL_RANGE** - -pulse_current_limit -------------------- - - .. py:attribute:: pulse_current_limit - - Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_limit_range` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit** - - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT** - -pulse_current_limit_high ------------------------- - - .. py:attribute:: pulse_current_limit_high - - Specifies the maximum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *on* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - You must also specify a :py:attr:`nidcpower.Session.pulse_current_limit_low` to complete the asymmetric - range. - **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`, :py:attr:`nidcpower.Session.pulse_current_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit High** - - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT_HIGH** - -pulse_current_limit_low ------------------------ - - .. py:attribute:: pulse_current_limit_low - - Specifies the minimum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *on* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - You must also specify a :py:attr:`nidcpower.Session.pulse_current_limit_high` to complete the - asymmetric range. - **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_current_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit Low** - - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT_LOW** - -pulse_current_limit_range -------------------------- - - .. py:attribute:: pulse_current_limit_range - - Specifies the pulse current limit range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the pulse current limit and pulse bias current limit. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit Range** - - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT_RANGE** - -pulse_off_time --------------- - - .. py:attribute:: pulse_off_time - - Determines the length, in seconds, of the off phase of a pulse. - Valid Values: 10 microseconds to 167 seconds - Default Value: 34 milliseconds - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_off_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_off_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Pulse Off Time** - - C Attribute: **NIDCPOWER_ATTR_PULSE_OFF_TIME** - -pulse_on_time -------------- - - .. py:attribute:: pulse_on_time - - Determines the length, in seconds, of the on phase of a pulse. - Valid Values: 10 microseconds to 167 seconds - Default Value: 34 milliseconds - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_on_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_on_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Pulse On Time** - - C Attribute: **NIDCPOWER_ATTR_PULSE_ON_TIME** - -pulse_trigger_type ------------------- - - .. py:attribute:: pulse_trigger_type - - Specifies the behavior of the Pulse trigger. - Default Value: :py:data:`~nidcpower.TriggerType.NONE` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Pulse Trigger:Trigger Type** - - C Attribute: **NIDCPOWER_ATTR_PULSE_TRIGGER_TYPE** - -pulse_voltage_level -------------------- - - .. py:attribute:: pulse_voltage_level - - Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_limit_range` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Voltage Level** - - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LEVEL** - -pulse_voltage_level_range -------------------------- - - .. py:attribute:: pulse_voltage_level_range - - Specifies the pulse voltage level range, in volts, for the specified channel(s). - The range defines the valid values at which you can set the pulse voltage level and pulse bias voltage level. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Voltage:Pulse Voltage Level Range** - - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LEVEL_RANGE** - -pulse_voltage_limit -------------------- - - .. py:attribute:: pulse_voltage_limit - - Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired pulse current on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_voltage_limit_range` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit** - - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT** - -pulse_voltage_limit_high ------------------------- - - .. py:attribute:: pulse_voltage_limit_high - - Specifies the maximum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *on* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - You must also specify a :py:attr:`nidcpower.Session.pulse_voltage_limit_low` to complete the asymmetric - range. - **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`, :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit High** - - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT_HIGH** - -pulse_voltage_limit_low ------------------------ - - .. py:attribute:: pulse_voltage_limit_low - - Specifies the minimum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *on* phase of a pulse. - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - You must also specify a :py:attr:`nidcpower.Session.pulse_voltage_limit_high` to complete the - asymmetric range. - **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_voltage_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a - pulsing method. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit Low** - - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT_LOW** - -pulse_voltage_limit_range -------------------------- - - .. py:attribute:: pulse_voltage_limit_range - - Specifies the pulse voltage limit range, in volts, for the specified channel(s). - The range defines the valid values to which you can set the pulse voltage limit and pulse bias voltage limit. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit Range** - - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT_RANGE** - -query_instrument_status ------------------------ - - .. py:attribute:: query_instrument_status - - Specifies whether NI-DCPower queries the device status after each operation. - Querying the device status is useful for debugging. After you validate your program, you can set this property to False to disable status checking and maximize performance. - NI-DCPower ignores status checking for particular properties regardless of the setting of this property. - Use the :py:meth:`nidcpower.Session.__init__` method to override this value. - Default Value: True - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Query Instrument Status** - - C Attribute: **NIDCPOWER_ATTR_QUERY_INSTRUMENT_STATUS** - -ready_for_pulse_trigger_event_output_terminal ---------------------------------------------- - - .. py:attribute:: ready_for_pulse_trigger_event_output_terminal - - Specifies the output terminal for exporting the Ready For Pulse Trigger event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ready_for_pulse_trigger_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Pulse Trigger Event:Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_READY_FOR_PULSE_TRIGGER_EVENT_OUTPUT_TERMINAL** - -ready_for_pulse_trigger_event_pulse_polarity --------------------------------------------- - - .. py:attribute:: ready_for_pulse_trigger_event_pulse_polarity - - Specifies the behavior of the Ready For Pulse Trigger event. - Default Value: :py:data:`~nidcpower.Polarity.HIGH` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Polarity | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Pulse Trigger Event:Pulse:Polarity** - - C Attribute: **NIDCPOWER_ATTR_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_POLARITY** - -ready_for_pulse_trigger_event_pulse_width ------------------------------------------ - - .. py:attribute:: ready_for_pulse_trigger_event_pulse_width - - Specifies the width of the Ready For Pulse Trigger event, in seconds. - The minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - Default Value: The default value for PXI Express devices is 250 ns - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Pulse Trigger Event:Pulse:Width** - - C Attribute: **NIDCPOWER_ATTR_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_WIDTH** - -requested_power_allocation --------------------------- - - .. py:attribute:: requested_power_allocation - - Specifies the power, in watts, to request the device to source from each active channel. - This property defines the power to source from the device only if the :py:attr:`nidcpower.Session.power_allocation_mode` property is set to :py:data:`~nidcpower.PowerAllocationMode.MANUAL`. - - The power you request with this property may be incompatible with the power a given source configuration requires or the power the device can provide: - If the requested power is less than the power required for the source configuration, the device does not exceed the requested power, and NI-DCPower returns an error. - If the requested power is greater than the maximum per-channel or overall sourcing power, the device does not exceed the allowed power, and NI-DCPower returns an error. - - Valid Values: [0, device per-channel maximum power] - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].requested_power_allocation` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.requested_power_allocation` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Requested Power Allocation** - - C Attribute: **NIDCPOWER_ATTR_REQUESTED_POWER_ALLOCATION** - -reset_average_before_measurement --------------------------------- - - .. py:attribute:: reset_average_before_measurement - - Specifies whether the measurement returned from any measurement call starts with a new measurement call (True) or returns a measurement that has already begun or completed(False). - When you set the :py:attr:`nidcpower.Session.samples_to_average` property in the Running state, the channel measurements might move out of synchronization. While NI-DCPower automatically synchronizes measurements upon the initialization of a session, you can force a synchronization in the running state before you run the :py:meth:`nidcpower.Session.measure_multiple` method. To force a synchronization in the running state, set this property to True, and then run the :py:meth:`nidcpower.Session.measure_multiple` method, specifying all channels in the channel name parameter. You can set the :py:attr:`nidcpower.Session.reset_average_before_measurement` property to False after the :py:meth:`nidcpower.Session.measure_multiple` method completes. - Default Value: True - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].reset_average_before_measurement` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.reset_average_before_measurement` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Advanced:Reset Average Before Measurement** - - C Attribute: **NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT** - -samples_to_average ------------------- - - .. py:attribute:: samples_to_average - - Specifies the number of samples to average when you take a measurement. - Increasing the number of samples to average decreases measurement noise but increases the time required to take a measurement. Refer to the NI PXI-4110, NI PXI-4130, NI PXI-4132, or NI PXIe-4154 Averaging topic for optional property settings to improve immunity to certain noise types, or refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic for information about improving noise immunity for those devices. - Default Value: - NI PXI-4110 or NI PXI-4130—10 - NI PXI-4132—1 - NI PXIe-4112—1 - NI PXIe-4113—1 - NI PXIe-4140/4141—1 - NI PXIe-4142/4143—1 - NI PXIe-4144/4145—1 - NI PXIe-4154—500 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].samples_to_average` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.samples_to_average` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Samples To Average** - - C Attribute: **NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE** - -self_calibration_persistence ----------------------------- - - .. py:attribute:: self_calibration_persistence - - Specifies whether the values calculated during self-calibration should be written to hardware to be used until the next self-calibration or only used until the :py:meth:`nidcpower.Session.reset_device` method is called or the machine is powered down. - This property affects the behavior of the :py:meth:`nidcpower.Session.self_cal` method. When set to :py:data:`~nidcpower.SelfCalibrationPersistence.KEEP_IN_MEMORY`, the values calculated by the :py:meth:`nidcpower.Session.self_cal` method are used in the existing session, as well as in all further sessions until you call the :py:meth:`nidcpower.Session.reset_device` method or restart the machine. When you set this property to :py:data:`~nidcpower.SelfCalibrationPersistence.WRITE_TO_EEPROM`, the values calculated by the :py:meth:`nidcpower.Session.self_cal` method are written to hardware and used in the existing session and in all subsequent sessions until another call to the :py:meth:`nidcpower.Session.self_cal` method is made. - about supported devices. - Default Value: :py:data:`~nidcpower.SelfCalibrationPersistence.KEEP_IN_MEMORY` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].self_calibration_persistence` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.self_calibration_persistence` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.SelfCalibrationPersistence | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | instruments | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Advanced:Self-Calibration Persistence** - - C Attribute: **NIDCPOWER_ATTR_SELF_CALIBRATION_PERSISTENCE** - -sense ------ - - .. py:attribute:: sense - - Selects either local or remote sensing of the output voltage for the specified channel(s). - Refer to the Local and Remote Sense topic in the NI DC Power Supplies and SMUs Help for more information about sensing voltage on supported channels and about devices that support local and/or remote sensing. - Default Value: The default value is :py:data:`~nidcpower.Sense.LOCAL` if the device supports local sense. Otherwise, the default and only supported value is :py:data:`~nidcpower.Sense.REMOTE`. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sense` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sense` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | enums.Sense | - +-----------------------+-------------+ - | Permissions | read-write | - +-----------------------+-------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Measurement:Sense** - - C Attribute: **NIDCPOWER_ATTR_SENSE** - -sequence_advance_trigger_type ------------------------------ - - .. py:attribute:: sequence_advance_trigger_type - - Specifies the behavior of the Sequence Advance trigger. - Default Value: :py:data:`~nidcpower.TriggerType.NONE` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_advance_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_advance_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Sequence Advance Trigger:Trigger Type** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ADVANCE_TRIGGER_TYPE** - -sequence_engine_done_event_output_behavior ------------------------------------------- - - .. py:attribute:: sequence_engine_done_event_output_behavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Engine Done event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Sequence Engine Done event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. - - - - .. note:: This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_output_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.EventOutputBehavior | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Engine Done Event:Output Behavior** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_OUTPUT_BEHAVIOR** - -sequence_engine_done_event_output_terminal ------------------------------------------- - - .. py:attribute:: sequence_engine_done_event_output_terminal - - Specifies the output terminal for exporting the Sequence Engine Done Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Engine Done Event:Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_OUTPUT_TERMINAL** - -sequence_engine_done_event_pulse_polarity ------------------------------------------ - - .. py:attribute:: sequence_engine_done_event_pulse_polarity - - Specifies the behavior of the Sequence Engine Done event. - Default Value: :py:data:`~nidcpower.Polarity.HIGH` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_pulse_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Polarity | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Engine Done Event:Pulse:Polarity** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_PULSE_POLARITY** - -sequence_engine_done_event_pulse_width --------------------------------------- - - .. py:attribute:: sequence_engine_done_event_pulse_width - - Specifies the width of the Sequence Engine Done event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - Valid Values: 1.5e-7 to 1.6e-6 seconds - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Engine Done Event:Pulse:Width** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_PULSE_WIDTH** - -sequence_engine_done_event_toggle_initial_state ------------------------------------------------ - - .. py:attribute:: sequence_engine_done_event_toggle_initial_state - - Specifies the initial state of the Sequence Engine Done event when you set the :py:attr:`nidcpower.Session.sequence_engine_done_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. - For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_toggle_initial_state` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.EventToggleInitialState | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Engine Done Event:Toggle:Initial State** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_TOGGLE_INITIAL_STATE** - -sequence_iteration_complete_event_output_behavior -------------------------------------------------- - - .. py:attribute:: sequence_iteration_complete_event_output_behavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Iteration Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Sequence Iteration Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. - - - - .. note:: This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_output_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.EventOutputBehavior | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Iteration Complete Event:Output Behavior** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_OUTPUT_BEHAVIOR** - -sequence_iteration_complete_event_output_terminal -------------------------------------------------- - - .. py:attribute:: sequence_iteration_complete_event_output_terminal - - Specifies the output terminal for exporting the Sequence Iteration Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Iteration Complete Event:Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_OUTPUT_TERMINAL** - -sequence_iteration_complete_event_pulse_polarity ------------------------------------------------- - - .. py:attribute:: sequence_iteration_complete_event_pulse_polarity - - Specifies the behavior of the Sequence Iteration Complete event. - Default Value: :py:data:`~nidcpower.Polarity.HIGH` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Polarity | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Iteration Complete Event:Pulse:Polarity** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_POLARITY** - -sequence_iteration_complete_event_pulse_width ---------------------------------------------- - - .. py:attribute:: sequence_iteration_complete_event_pulse_width - - Specifies the width of the Sequence Iteration Complete event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - the NI DC Power Supplies and SMUs Help for information about supported devices. - Valid Values: 1.5e-7 to 1.6e-6 seconds - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Iteration Complete Event:Pulse:Width** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_WIDTH** - -sequence_iteration_complete_event_toggle_initial_state ------------------------------------------------------- - - .. py:attribute:: sequence_iteration_complete_event_toggle_initial_state - - Specifies the initial state of the Sequence Iteration Complete event when you set the :py:attr:`nidcpower.Session.sequence_iteration_complete_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. - For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. - - - - .. note:: This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_toggle_initial_state` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.EventToggleInitialState | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Sequence Iteration Complete Event:Toggle:Initial State** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_TOGGLE_INITIAL_STATE** - -sequence_loop_count -------------------- - - .. py:attribute:: sequence_loop_count - - Specifies the number of times a sequence is run after initiation. - Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about the sequence loop count. - When the :py:attr:`nidcpower.Session.sequence_loop_count_is_finite` property is set to False, the :py:attr:`nidcpower.Session.sequence_loop_count` property is ignored. - Valid Range: 1 to 2147483647 - Default Value: 1 - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_loop_count` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Sequence Loop Count** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_LOOP_COUNT** - -sequence_loop_count_is_finite ------------------------------ - - .. py:attribute:: sequence_loop_count_is_finite - - Specifies whether a sequence should repeat indefinitely. - Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about infinite sequencing. - When the :py:attr:`nidcpower.Session.sequence_loop_count_is_finite` property is set to False, the :py:attr:`nidcpower.Session.sequence_loop_count` property is ignored. - Default Value: True - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count_is_finite` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_loop_count_is_finite` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Sequence Loop Count Is Finite** - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_LOOP_COUNT_IS_FINITE** - -sequence_step_delta_time ------------------------- - - .. py:attribute:: sequence_step_delta_time - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_step_delta_time` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_STEP_DELTA_TIME** - -sequence_step_delta_time_enabled --------------------------------- - - .. py:attribute:: sequence_step_delta_time_enabled - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_step_delta_time_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_STEP_DELTA_TIME_ENABLED** - -serial_number -------------- - - .. py:attribute:: serial_number - - Contains the serial number for the device you are currently using. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].serial_number` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.serial_number` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Serial Number** - - C Attribute: **NIDCPOWER_ATTR_SERIAL_NUMBER** - -shutdown_trigger_type ---------------------- - - .. py:attribute:: shutdown_trigger_type - - Specifies the behavior of the Shutdown trigger. - Default Value: :py:data:`~nidcpower.TriggerType.NONE` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].shutdown_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.shutdown_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Shutdown Trigger:Trigger Type** - - C Attribute: **NIDCPOWER_ATTR_SHUTDOWN_TRIGGER_TYPE** - -simulate --------- - - .. py:attribute:: simulate - - Specifies whether to simulate NI-DCPower I/O operations. True specifies that operation is simulated. - Default Value: False - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** - - C Attribute: **NIDCPOWER_ATTR_SIMULATE** - -source_complete_event_output_behavior -------------------------------------- - - .. py:attribute:: source_complete_event_output_behavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Source Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Source Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. - - - - .. note:: This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_output_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.EventOutputBehavior | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Source Complete Event:Output Behavior** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_OUTPUT_BEHAVIOR** - -source_complete_event_output_terminal -------------------------------------- - - .. py:attribute:: source_complete_event_output_terminal - - Specifies the output terminal for exporting the Source Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Source Complete Event:Output Terminal** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_OUTPUT_TERMINAL** - -source_complete_event_pulse_polarity ------------------------------------- - - .. py:attribute:: source_complete_event_pulse_polarity - - Specifies the behavior of the Source Complete event. - Default Value: :py:data:`~nidcpower.Polarity.HIGH` - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_pulse_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Polarity | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Source Complete Event:Pulse:Polarity** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_PULSE_POLARITY** - -source_complete_event_pulse_width ---------------------------------- - - .. py:attribute:: source_complete_event_pulse_width - - Specifies the width of the Source Complete event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds - Valid Values: 1.5e-7 to 1.6e-6 seconds - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Source Complete Event:Pulse:Width** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_PULSE_WIDTH** - -source_complete_event_toggle_initial_state ------------------------------------------- - - .. py:attribute:: source_complete_event_toggle_initial_state - - Specifies the initial state of the Source Complete event when you set the :py:attr:`nidcpower.Session.source_complete_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. - For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_toggle_initial_state` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.EventToggleInitialState | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Source Complete Event:Toggle:Initial State** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_TOGGLE_INITIAL_STATE** - -source_delay ------------- - - .. py:attribute:: source_delay - - Determines when, in seconds, the device generates the Source Complete event, potentially starting a measurement if the :py:attr:`nidcpower.Session.measure_when` property is set to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE`. - Refer to the Single Point Source Mode and Sequence Source Mode topics for more information. - Valid Values: The PXIe-4051 supports values from 0 to 39 seconds. - The PXIe-4147 supports values from 0 to 26.5 seconds. - The PXIe-4150/4151 supports values from 0 to 42 seconds. - The PXIe-4162/4163 and PXIe-4190 support values from 0 to 23 seconds. - All other supported instruments support values from 0 to 167 seconds. - Default Value: 0.01667 seconds - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_delay` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Advanced:Source Delay** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_DELAY** - -source_mode ------------ - - .. py:attribute:: source_mode - - Specifies whether to run a single output point or a sequence. Refer to the Single Point Source Mode and Sequence Source Mode topics in the NI DC Power Supplies and SMUs Help for more information about source modes. - Default value: :py:data:`~nidcpower.SourceMode.SINGLE_POINT` - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_mode` - - The following table lists the characteristics of this property. - - +-----------------------+------------------+ - | Characteristic | Value | - +=======================+==================+ - | Datatype | enums.SourceMode | - +-----------------------+------------------+ - | Permissions | read-write | - +-----------------------+------------------+ - | Repeated Capabilities | channels | - +-----------------------+------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Source Mode** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_MODE** - -source_trigger_type -------------------- - - .. py:attribute:: source_trigger_type - - Specifies the behavior of the Source trigger. - Default Value: :py:data:`~nidcpower.TriggerType.NONE` - - - - .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Source Trigger:Trigger Type** - - C Attribute: **NIDCPOWER_ATTR_SOURCE_TRIGGER_TYPE** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - Contains a brief description of the specific driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** - - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -specific_driver_prefix ----------------------- - - .. py:attribute:: specific_driver_prefix - - Contains the prefix for NI-DCPower. The name of each user-callable method in NI-DCPower begins with this prefix. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Prefix** - - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_PREFIX** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - Contains additional version information about NI-DCPower. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** - - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - Contains the name of the vendor that supplies NI-DCPower. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** - - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_VENDOR** - -start_trigger_type ------------------- - - .. py:attribute:: start_trigger_type - - Specifies the behavior of the Start trigger. - Default Value: :py:data:`~nidcpower.TriggerType.NONE` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].start_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.start_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start Trigger:Trigger Type** - - C Attribute: **NIDCPOWER_ATTR_START_TRIGGER_TYPE** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - Contains a comma-separated (,) list of supported NI-DCPower device models. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** - - C Attribute: **NIDCPOWER_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -transient_response ------------------- - - .. py:attribute:: transient_response - - Specifies the transient response. Refer to the Transient Response topic in the NI DC Power Supplies and SMUs Help for more information about transient response. - Default Value: :py:data:`~nidcpower.TransientResponse.NORMAL` - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].transient_response` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.transient_response` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.TransientResponse | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Transient Response** - - C Attribute: **NIDCPOWER_ATTR_TRANSIENT_RESPONSE** - -voltage_compensation_frequency ------------------------------- - - .. py:attribute:: voltage_compensation_frequency - - The frequency at which a pole-zero pair is added to the system when the channel is in Constant Voltage mode. - Default value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_compensation_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Voltage:Compensation Frequency** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_COMPENSATION_FREQUENCY** - -voltage_gain_bandwidth ----------------------- - - .. py:attribute:: voltage_gain_bandwidth - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Voltage mode. - Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_gain_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Voltage:Gain Bandwidth** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_GAIN_BANDWIDTH** - -voltage_level -------------- - - .. py:attribute:: voltage_level - - Specifies the voltage level, in volts, that the device attempts to generate on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - - Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.voltage_level_range` property. - - - - .. note:: The channel must be enabled for the specified voltage level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Voltage Level** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LEVEL** - -voltage_level_autorange ------------------------ - - .. py:attribute:: voltage_level_autorange - - Specifies whether NI-DCPower automatically selects the voltage level range based on the desired voltage level for the specified channel(s). - If you set this property to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.voltage_level_range` property. If you change the :py:attr:`nidcpower.Session.voltage_level_autorange` property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.voltage_level_range` property was set to (or the default value if the property was never set) and uses that value as the voltage level range. - Query the :py:attr:`nidcpower.Session.voltage_level_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method for information about which range NI-DCPower automatically selects. - The :py:attr:`nidcpower.Session.voltage_level_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - Default Value: :py:data:`~nidcpower.AutoZero.OFF` - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_level_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_level_autorange` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Voltage Level Autorange** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LEVEL_AUTORANGE** - -voltage_level_range -------------------- - - .. py:attribute:: voltage_level_range - - Specifies the voltage level range, in volts, for the specified channel(s). - The range defines the valid values to which the voltage level can be set. Use the :py:attr:`nidcpower.Session.voltage_level_autorange` property to enable automatic selection of the voltage level range. - The :py:attr:`nidcpower.Session.voltage_level_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. - - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The channel must be enabled for the specified voltage level range to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Voltage:Voltage Level Range** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LEVEL_RANGE** - -voltage_limit -------------- - - .. py:attribute:: voltage_limit - - Specifies the voltage limit, in volts, that the output cannot exceed when generating the desired current level on the specified channels. - This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. - - Valid Values: The valid values for this property are defined by the values to which the :py:attr:`nidcpower.Session.voltage_limit_range` property is set. - - - - .. note:: The channel must be enabled for the specified current level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Voltage Limit** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT** - -voltage_limit_autorange ------------------------ - - .. py:attribute:: voltage_limit_autorange - - Specifies whether NI-DCPower automatically selects the voltage limit range based on the desired voltage limit for the specified channel(s). - If this property is set to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.voltage_limit_range` property. If you change the :py:attr:`nidcpower.Session.voltage_limit_autorange` property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.voltage_limit_range` property was set to (or the default value if the property was never set) and uses that value as the voltage limit range. - Query the :py:attr:`nidcpower.Session.voltage_limit_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method to find out which range NI-DCPower automatically selects. - The :py:attr:`nidcpower.Session.voltage_limit_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - Default Value: :py:data:`~nidcpower.AutoZero.OFF` - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_autorange` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Voltage Limit Autorange** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_AUTORANGE** - -voltage_limit_high ------------------- - - .. py:attribute:: voltage_limit_high - - Specifies the maximum voltage, in volts, that the output can produce - when generating the desired current on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - You must also specify a :py:attr:`nidcpower.Session.voltage_limit_low` to complete the asymmetric - range. - **Valid Values:** [1% of :py:attr:`nidcpower.Session.voltage_limit_range`, :py:attr:`nidcpower.Session.voltage_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Voltage Limit High** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_HIGH** - -voltage_limit_low ------------------ - - .. py:attribute:: voltage_limit_low - - Specifies the minimum voltage, in volts, that the output can produce - when generating the desired current on the specified channel(s). - This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to - :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - You must also specify a :py:attr:`nidcpower.Session.voltage_limit_high` to complete the asymmetric - range. - **Valid Values:** [-:py:attr:`nidcpower.Session.voltage_limit_range`, -1% of :py:attr:`nidcpower.Session.voltage_limit_range`] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - - - .. note:: The limit may be extended beyond the selected limit range if the - :py:attr:`nidcpower.Session.overranging_enabled` property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Voltage Limit Low** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_LOW** - -voltage_limit_range -------------------- - - .. py:attribute:: voltage_limit_range - - Specifies the voltage limit range, in volts, for the specified channel(s). - The range defines the valid values to which the voltage limit can be set. Use the :py:attr:`nidcpower.Session.voltage_limit_autorange` property to enable automatic selection of the voltage limit range. - The :py:attr:`nidcpower.Session.voltage_limit_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. - - For valid ranges, refer to the specifications for your instrument. - - - - .. note:: The channel must be enabled for the specified voltage limit range to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:DC Current:Voltage Limit Range** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_RANGE** - -voltage_pole_zero_ratio ------------------------ - - .. py:attribute:: voltage_pole_zero_ratio - - The ratio of the pole frequency to the zero frequency when the channel is in Constant Voltage mode. - Default value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. - - - - .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_pole_zero_ratio` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Source:Custom Transient Response:Voltage:Pole-Zero Ratio** - - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_POLE_ZERO_RATIO** - - -.. contents:: Session diff --git a/docs/nidcpower/conf.py b/docs/nidcpower/conf.py deleted file mode 100644 index e8eafe2da8..0000000000 --- a/docs/nidcpower/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-DCPower Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-DCPower Python API' -copyright = '2017-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.6.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIDCPowerPythonAPI.tex', 'NI-DCPower Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nidcpowerpythonapi', 'NI-DCPower Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIDCPowerPythonAPI', 'NI-DCPower Python API Documentation', - author, 'NIDCPowerPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nidcpower/enums.rst b/docs/nidcpower/enums.rst deleted file mode 100644 index fab1748ed2..0000000000 --- a/docs/nidcpower/enums.rst +++ /dev/null @@ -1,1560 +0,0 @@ -Enums -===== - -Enums used in NI-DCPower - -.. py:currentmodule:: nidcpower - - -ApertureTimeAutoMode --------------------- - -.. py:class:: ApertureTimeAutoMode - - .. py:attribute:: ApertureTimeAutoMode.OFF - - - - Disables automatic aperture time scaling. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for all ranges. - - - - - - .. py:attribute:: ApertureTimeAutoMode.SHORT - - - - Prioritizes measurement speed over measurement accuracy by quickly scaling down aperture time in larger current ranges. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for the minimum range. - - - - - - .. py:attribute:: ApertureTimeAutoMode.NORMAL - - - - Balances measurement accuracy and speed by scaling down aperture time in larger current ranges. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for the minimum range. - - - - - - .. py:attribute:: ApertureTimeAutoMode.LONG - - - - Prioritizes accuracy while still decreasing measurement time by slowly scaling down aperture time in larger current ranges. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for the minimum range. - - - - - -ApertureTimeUnits ------------------ - -.. py:class:: ApertureTimeUnits - - .. py:attribute:: ApertureTimeUnits.SECONDS - - - - Specifies aperture time in seconds. - - - - - - .. py:attribute:: ApertureTimeUnits.POWER_LINE_CYCLES - - - - Specifies aperture time in power line cycles (PLCs). - - - - - -AutoZero --------- - -.. py:class:: AutoZero - - .. py:attribute:: AutoZero.OFF - - - - Disables auto zero. - - - - - - .. py:attribute:: AutoZero.ONCE - - - - Makes zero conversions following the first measurement after initiating the device. The device uses these zero conversions for the preceding measurement and future measurements until the device is reinitiated. - - - - - - .. py:attribute:: AutoZero.ON - - - - Makes zero conversions for every measurement. - - - - - -AutorangeApertureTimeMode -------------------------- - -.. py:class:: AutorangeApertureTimeMode - - .. py:attribute:: AutorangeApertureTimeMode.AUTO - - - - NI-DCPower optimizes the aperture time for the autorange algorithm based on the module range. - - - - - - .. py:attribute:: AutorangeApertureTimeMode.CUSTOM - - - - The user specifies a minimum aperture time for the algorithm using the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time` property and the corresponding :py:attr:`nidcpower.Session.autorange_minimum_aperture_time_units` property. - - - - - -AutorangeBehavior ------------------ - -.. py:class:: AutorangeBehavior - - .. py:attribute:: AutorangeBehavior.UP_TO_LIMIT_THEN_DOWN - - - - Go to limit range then range down as needed until measured value is within thresholds. - - - - - - .. py:attribute:: AutorangeBehavior.UP - - - - go up one range when the upper threshold is reached. - - - - - - .. py:attribute:: AutorangeBehavior.UP_AND_DOWN - - - - go up or down one range when the upper/lower threshold is reached. - - - - - -AutorangeThresholdMode ----------------------- - -.. py:class:: AutorangeThresholdMode - - .. py:attribute:: AutorangeThresholdMode.NORMAL - - - - Thresholds are selected based on a balance between accuracy and hysteresis. - - - - - - .. py:attribute:: AutorangeThresholdMode.FAST_STEP - - - - Optimized for faster changes in the measured signal. Thresholds are configured to be a smaller percentage of the range. - - - - - - .. py:attribute:: AutorangeThresholdMode.HIGH_HYSTERESIS - - - - Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a larger percentage of the range. - - - - - - .. py:attribute:: AutorangeThresholdMode.MEDIUM_HYSTERESIS - - - - Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a medium percentage of the range. - - - - - - .. py:attribute:: AutorangeThresholdMode.HOLD - - - - Attempt to maintain the active range. Thresholds will favor the active range. - - - - - -CableLength ------------ - -.. py:class:: CableLength - - .. py:attribute:: CableLength.ZERO_M - - - - Uses predefined cable compensation data for a 0m cable (direct connection). - - - - - - .. py:attribute:: CableLength.NI_STANDARD_0_5M - - - - Uses predefined cable compensation data for an NI standard 0.5m coaxial cable. - - - - - - .. py:attribute:: CableLength.NI_STANDARD_1M - - - - Uses predefined cable compensation data for an NI standard 1m coaxial cable. - - - - - - .. py:attribute:: CableLength.NI_STANDARD_2M - - - - Uses predefined cable compensation data for an NI standard 2m coaxial cable. - - - - - - .. py:attribute:: CableLength.NI_STANDARD_4M - - - - Uses predefined cable compensation data for an NI standard 4m coaxial cable. - - - - - - .. py:attribute:: CableLength.NI_STANDARD_TRIAXIAL_1M - - - - Uses predefined cable compensation data for an NI standard 1m triaxial cable. - - - - - - .. py:attribute:: CableLength.NI_STANDARD_TRIAXIAL_2M - - - - Uses predefined cable compensation data for an NI standard 2m triaxial cable. - - - - - - .. py:attribute:: CableLength.NI_STANDARD_TRIAXIAL_4M - - - - Uses predefined cable compensation data for an NI standard 4m triaxial cable. - - - - - - .. py:attribute:: CableLength.CUSTOM_ONBOARD_STORAGE - - - - Uses previously generated custom cable compensation data from onboard storage. Only the most recently performed compensation data for each custom cable compensation type (open, short) is stored. - - - - - - .. py:attribute:: CableLength.CUSTOM_AS_CONFIGURED - - - - Uses the custom cable compensation data supplied to :py:meth:`nidcpower.Session.configure_lcr_custom_cable_compensation`. Use this option to manage multiple sets of custom cable compensation data. - - - - - -ComplianceLimitSymmetry ------------------------ - -.. py:class:: ComplianceLimitSymmetry - - .. py:attribute:: ComplianceLimitSymmetry.SYMMETRIC - - - - Compliance limits are specified symmetrically about 0. - - - - - - .. py:attribute:: ComplianceLimitSymmetry.ASYMMETRIC - - - - Compliance limits can be specified asymmetrically with respect to 0. - - - - - -ConductionVoltageMode ---------------------- - -.. py:class:: ConductionVoltageMode - - .. py:attribute:: ConductionVoltageMode.AUTOMATIC - - - - The conduction voltage feature is only enabled when you set the :py:attr:`nidcpower.Session.output_function` property to :py:data:`~nidcpower.OutputFunction.DC_CURRENT` or :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. - - - - - - .. py:attribute:: ConductionVoltageMode.ENABLED - - - - The conduction voltage feature is enabled. - - - - - - .. py:attribute:: ConductionVoltageMode.DISABLED - - - - The conduction voltage feature is disabled. - - - - - -CurrentLimitBehavior --------------------- - -.. py:class:: CurrentLimitBehavior - - .. py:attribute:: CurrentLimitBehavior.REGULATE - - - - The channel acts to restrict the output current to the value of the Current Limit property when the actual output on the channel reaches or exceeds that value. - - - - - - .. py:attribute:: CurrentLimitBehavior.TRIP - - - - The channel disables the output when the actual output current on the channel reaches or exceeds the value of the Current Limit property. - - - - - -DCNoiseRejection ----------------- - -.. py:class:: DCNoiseRejection - - .. py:attribute:: DCNoiseRejection.SECOND_ORDER - - - - Second-order rejection of DC noise. - - - - - - .. py:attribute:: DCNoiseRejection.NORMAL - - - - Normal rejection of DC noise. - - - - - -Event ------ - -.. py:class:: Event - - .. py:attribute:: Event.SOURCE_COMPLETE - - - - Specifies the Source Complete event. - - - - - - .. py:attribute:: Event.MEASURE_COMPLETE - - - - Specifies the Measure Complete event. - - - - - - .. py:attribute:: Event.SEQUENCE_ITERATION_COMPLETE - - - - Specifies the Sequence Iteration Complete event. - - - - - - .. py:attribute:: Event.SEQUENCE_ENGINE_DONE - - - - Specifies the Sequence Engine Done event. - - - - - - .. py:attribute:: Event.PULSE_COMPLETE - - - - Specifies the Pulse Complete event. - - - - - - .. py:attribute:: Event.READY_FOR_PULSE_TRIGGER - - - - Specifies the Ready for Pulse Trigger event. - - - - - -EventOutputBehavior -------------------- - -.. py:class:: EventOutputBehavior - - .. py:attribute:: EventOutputBehavior.PULSE - - - - Output generates a pulse when the event is triggered. - - - - - - .. py:attribute:: EventOutputBehavior.TOGGLE - - - - Output toggles state when the event is triggered. - - - - - -EventToggleInitialState ------------------------ - -.. py:class:: EventToggleInitialState - - .. py:attribute:: EventToggleInitialState.LOW - - - - The initial state is low. - - - - - - .. py:attribute:: EventToggleInitialState.HIGH - - - - The initial state is high. - - - - - -InstrumentMode --------------- - -.. py:class:: InstrumentMode - - .. py:attribute:: InstrumentMode.SMU_PS - - - - The channel operates as an SMU/power supply. - - - - - - .. py:attribute:: InstrumentMode.LCR - - - - The channel operates as an LCR meter. - - - - - - .. py:attribute:: InstrumentMode.E_LOAD - - - - The channel operates as an electronic load (E-Load). - - - - - -LCRCompensationType -------------------- - -.. py:class:: LCRCompensationType - - .. py:attribute:: LCRCompensationType.OPEN - - - - Open LCR compensation. - - - - - - .. py:attribute:: LCRCompensationType.SHORT - - - - Short LCR compensation. - - - - - - .. py:attribute:: LCRCompensationType.LOAD - - - - Load LCR compensation. - - - - - - .. py:attribute:: LCRCompensationType.OPEN_CUSTOM_CABLE - - - - Open custom cable compensation. - - - - - - .. py:attribute:: LCRCompensationType.SHORT_CUSTOM_CABLE - - - - Short custom cable compensation. - - - - - -LCRDCBiasSource ---------------- - -.. py:class:: LCRDCBiasSource - - .. py:attribute:: LCRDCBiasSource.OFF - - - - Disables DC bias in LCR mode. - - - - - - .. py:attribute:: LCRDCBiasSource.VOLTAGE - - - - Applies a constant voltage bias, as defined by the :py:attr:`nidcpower.Session.lcr_dc_bias_voltage_level` property. - - - - - - .. py:attribute:: LCRDCBiasSource.CURRENT - - - - Applies a constant current bias, as defined by the :py:attr:`nidcpower.Session.lcr_dc_bias_current_level` property. - - - - - -LCRDCBiasTransientResponse --------------------------- - -.. py:class:: LCRDCBiasTransientResponse - - .. py:attribute:: LCRDCBiasTransientResponse.NORMAL - - - - NI-DCPower automatically applies transient response values for DC bias. - - - - - - .. py:attribute:: LCRDCBiasTransientResponse.CUSTOM - - - - NI-DCPower applies the transient response that you set manually with :py:attr:`nidcpower.Session.transient_response` for DC bias. Search ni.com for information on configuring transient response. - - - - - -LCRImpedanceRangeSource ------------------------ - -.. py:class:: LCRImpedanceRangeSource - - .. py:attribute:: LCRImpedanceRangeSource.IMPEDANCE_RANGE - - - - Uses the impedance range you specify with the :py:attr:`nidcpower.Session.lcr_impedance_range` property. - - - - - - .. py:attribute:: LCRImpedanceRangeSource.LOAD_CONFIGURATION - - - - Computes the impedance range to select based on the values you supply to the :py:attr:`nidcpower.Session.lcr_load_resistance`, :py:attr:`nidcpower.Session.lcr_load_inductance`, and :py:attr:`nidcpower.Session.lcr_load_capacitance` properties. NI-DCPower uses a series model of load resistance, load inductance, and load capacitance to compute the impedance range. - - - - - -LCRMeasurementTime ------------------- - -.. py:class:: LCRMeasurementTime - - .. py:attribute:: LCRMeasurementTime.SHORT - - - - Uses a short aperture time for LCR measurements. - - - - - - .. py:attribute:: LCRMeasurementTime.MEDIUM - - - - Uses a medium aperture time for LCR measurements. - - - - - - .. py:attribute:: LCRMeasurementTime.LONG - - - - Uses a long aperture time for LCR measurements. - - - - - - .. py:attribute:: LCRMeasurementTime.CUSTOM - - - - Uses a custom aperture time for LCR measurements as specified by the :py:attr:`nidcpower.Session.lcr_custom_measurement_time` property. - - - - - -LCROpenShortLoadCompensationDataSource --------------------------------------- - -.. py:class:: LCROpenShortLoadCompensationDataSource - - .. py:attribute:: LCROpenShortLoadCompensationDataSource.ONBOARD_STORAGE - - - - Uses previously generated LCR compensation data. Only the most recently performed compensation data for each LCR compensation type (open, short, and load) is stored. - - - - - - .. py:attribute:: LCROpenShortLoadCompensationDataSource.AS_DEFINED - - - - Uses the LCR compensation data represented by the relevant LCR compensation properties as generated by :py:meth:`nidcpower.Session.perform_lcr_open_compensation`, :py:meth:`nidcpower.Session.perform_lcr_short_compensation`, and :py:meth:`nidcpower.Session.perform_lcr_load_compensation`. Use this option to manage multiple sets of LCR compensation data. This option applies compensation data from the following properties: :py:attr:`nidcpower.Session.lcr_open_conductance`, :py:attr:`nidcpower.Session.lcr_open_susceptance`, :py:attr:`nidcpower.Session.lcr_short_resistance`, :py:attr:`nidcpower.Session.lcr_short_reactance`, :py:attr:`nidcpower.Session.lcr_measured_load_resistance`, :py:attr:`nidcpower.Session.lcr_measured_load_reactance`, :py:attr:`nidcpower.Session.lcr_actual_load_resistance`, :py:attr:`nidcpower.Session.lcr_actual_load_reactance`. - - - - - - .. py:attribute:: LCROpenShortLoadCompensationDataSource.AS_CONFIGURED - - - - Uses the LCR compensation data supplied to :py:meth:`nidcpower.Session.configure_lcr_compensation`. Use this option to manage multiple sets of LCR compensation data. - - - - - -LCRReferenceValueType ---------------------- - -.. py:class:: LCRReferenceValueType - - .. py:attribute:: LCRReferenceValueType.IMPEDANCE - - - - The actual impedance, comprising real resistance and imaginary reactance, of your DUT. Supply resistance, in ohms, to reference value A; supply reactance, in ohms, to reference value B. - - - - - - .. py:attribute:: LCRReferenceValueType.IDEAL_CAPACITANCE - - - - The ideal capacitance of your DUT. Supply capacitance, in farads, to reference value A. - - - - - - .. py:attribute:: LCRReferenceValueType.IDEAL_INDUCTANCE - - - - The ideal inductance of your DUT. Supply inductance, in henrys, to reference value A. - - - - - - .. py:attribute:: LCRReferenceValueType.IDEAL_RESISTANCE - - - - The ideal resistance of your DUT. Supply resistance, in ohms, to reference value A. - - - - - -LCRSourceDelayMode ------------------- - -.. py:class:: LCRSourceDelayMode - - .. py:attribute:: LCRSourceDelayMode.AUTOMATIC - - - - NI-DCPower automatically applies source delay of sufficient duration to account for settling time. - - - - - - .. py:attribute:: LCRSourceDelayMode.MANUAL - - - - NI-DCPower applies the source delay that you set manually with :py:attr:`nidcpower.Session.source_delay`. You can use this option to set a shorter delay to reduce measurement time at the possible expense of measurement accuracy. - - - - - -LCRStimulusFunction -------------------- - -.. py:class:: LCRStimulusFunction - - .. py:attribute:: LCRStimulusFunction.VOLTAGE - - - - Applies an AC voltage for LCR stimulus. - - - - - - .. py:attribute:: LCRStimulusFunction.CURRENT - - - - Applies an AC current for LCR stimulus. - - - - - -MeasureWhen ------------ - -.. py:class:: MeasureWhen - - .. py:attribute:: MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE - - - - Acquires a measurement after each Source Complete event completes. - - - - - - .. py:attribute:: MeasureWhen.ON_DEMAND - - - - Acquires a measurement when the :py:meth:`nidcpower.Session.measure` method or :py:meth:`nidcpower.Session.measure_multiple` method is called. - - - - - - .. py:attribute:: MeasureWhen.ON_MEASURE_TRIGGER - - - - Acquires a measurement when a Measure trigger is received. - - - - - -MeasurementTypes ----------------- - -.. py:class:: MeasurementTypes - - .. py:attribute:: MeasurementTypes.CURRENT - - - - The device measures current. - - - - - - .. py:attribute:: MeasurementTypes.VOLTAGE - - - - The device measures voltage. - - - - - -OutputCapacitance ------------------ - -.. py:class:: OutputCapacitance - - .. py:attribute:: OutputCapacitance.LOW - - - - Output Capacitance is low. - - - - - - .. py:attribute:: OutputCapacitance.HIGH - - - - Output Capacitance is high. - - - - - -OutputCutoffReason ------------------- - -.. py:class:: OutputCutoffReason - - .. py:attribute:: OutputCutoffReason.ALL - - - - Queries any output cutoff condition; clears all output cutoff conditions. - - - - - - .. py:attribute:: OutputCutoffReason.VOLTAGE_OUTPUT_HIGH - - - - Queries or clears cutoff conditions when the output exceeded the high cutoff limit for voltage output. - - - - - - .. py:attribute:: OutputCutoffReason.VOLTAGE_OUTPUT_LOW - - - - Queries or clears cutoff conditions when the output fell below the low cutoff limit for voltage output. - - - - - - .. py:attribute:: OutputCutoffReason.CURRENT_MEASURE_HIGH - - - - Queries or clears cutoff conditions when the measured current exceeded the high cutoff limit for current output. - - - - - - .. py:attribute:: OutputCutoffReason.CURRENT_MEASURE_LOW - - - - Queries or clears cutoff conditions when the measured current fell below the low cutoff limit for current output. - - - - - - .. py:attribute:: OutputCutoffReason.VOLTAGE_CHANGE_HIGH - - - - Queries or clears cutoff conditions when the voltage slew rate increased beyond the positive change cutoff for voltage output. - - - - - - .. py:attribute:: OutputCutoffReason.VOLTAGE_CHANGE_LOW - - - - Queries or clears cutoff conditions when the voltage slew rate decreased beyond the negative change cutoff for voltage output. - - - - - - .. py:attribute:: OutputCutoffReason.CURRENT_CHANGE_HIGH - - - - Queries or clears cutoff conditions when the current slew rate increased beyond the positive change cutoff for current output. - - - - - - .. py:attribute:: OutputCutoffReason.CURRENT_CHANGE_LOW - - - - Queries or clears cutoff conditions when the current slew rate decreased beyond the negative change cutoff for current output. - - - - - - .. py:attribute:: OutputCutoffReason.CURRENT_SATURATED - - - - Queries or clears cutoff conditions when the measured current saturates the current range. - - - - - - .. py:attribute:: OutputCutoffReason.VOLTAGE_MEASURE_HIGH - - - - Queries or clears cutoff conditions when the measured voltage exceeded the high cutoff limit for voltage output. - - - - - - .. py:attribute:: OutputCutoffReason.VOLTAGE_MEASURE_LOW - - - - Queries or clears cutoff conditions when the measured voltage fell below the low cutoff limit for voltage output. - - - - - -OutputFunction --------------- - -.. py:class:: OutputFunction - - .. py:attribute:: OutputFunction.DC_VOLTAGE - - - - Sets the output method to DC voltage. - - - - - - .. py:attribute:: OutputFunction.DC_CURRENT - - - - Sets the output method to DC current. - - - - - - .. py:attribute:: OutputFunction.PULSE_VOLTAGE - - - - Sets the output method to pulse voltage. - - - - - - .. py:attribute:: OutputFunction.PULSE_CURRENT - - - - Sets the output method to pulse current. - - - - - - .. py:attribute:: OutputFunction.CONSTANT_RESISTANCE - - - - Sets the output method to constant resistance. - - - - - - .. py:attribute:: OutputFunction.CONSTANT_POWER - - - - Sets the output method to constant power. - - - - - -OutputStates ------------- - -.. py:class:: OutputStates - - .. py:attribute:: OutputStates.CONSTANT_VOLTAGE - - - - The channel maintains a constant voltage by adjusting the current. - - - - - - .. py:attribute:: OutputStates.CONSTANT_CURRENT - - - - The channel maintains a constant current by adjusting the voltage. - - - - - - .. py:attribute:: OutputStates.INHIBITED - - - - The channel is in the inhibited state. - - - - - -Polarity --------- - -.. py:class:: Polarity - - .. py:attribute:: Polarity.HIGH - - - - A high pulse occurs when the event is generated. The exported signal is low level both before and after the event is generated. - - - - - - .. py:attribute:: Polarity.LOW - - - - A low pulse occurs when the event is generated. The exported signal is high level both before and after the event is generated. - - - - - -PowerAllocationMode -------------------- - -.. py:class:: PowerAllocationMode - - .. py:attribute:: PowerAllocationMode.DISABLED - - - - The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower does not perform a sourcing power check. If the required power is greater than the maximum sourcing power, the device attempts to source the required amount and may shut down to prevent damage. - - - - - - .. py:attribute:: PowerAllocationMode.AUTOMATIC - - - - The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower performs a sourcing power check. If the required power is greater than the maximum sourcing power, the device does not exceed the maximum power, and NI-DCPower returns an error. - - - - - - .. py:attribute:: PowerAllocationMode.MANUAL - - - - The device attempts to source, on each active channel, the power you request with the :py:attr:`nidcpower.Session.requested_power_allocation` property; NI-DCPower performs a sourcing power check. If the requested power is either less than the required power for the present source configuration or greater than the maximum sourcing power, the device does not exceed the requested or allowed power, respectively, and NI-DCPower returns an error. - - - - - -PowerSource ------------ - -.. py:class:: PowerSource - - .. py:attribute:: PowerSource.INTERNAL - - - - Uses the PXI chassis power source. - - - - - - .. py:attribute:: PowerSource.AUXILIARY - - - - Uses the auxiliary power source connected to the device. - - - - - - .. py:attribute:: PowerSource.AUTOMATIC - - - - Uses the auxiliary power source if it is available; otherwise uses the PXI chassis power source. - - - - - -PowerSourceInUse ----------------- - -.. py:class:: PowerSourceInUse - - .. py:attribute:: PowerSourceInUse.INTERNAL - - - - Uses the PXI chassis power source. - - - - - - .. py:attribute:: PowerSourceInUse.AUXILIARY - - - - Uses the auxiliary power source connected to the device. Only the NI PXI-4110, NI PXIe-4112, NI PXIe-4113, and NI PXI-4130 support this value. This is the only supported value for the NI PXIe-4112 and NI PXIe-4113. - - - - - -SelfCalibrationPersistence --------------------------- - -.. py:class:: SelfCalibrationPersistence - - .. py:attribute:: SelfCalibrationPersistence.KEEP_IN_MEMORY - - - - Keep new self calibration values in memory only. - - - - - - .. py:attribute:: SelfCalibrationPersistence.WRITE_TO_EEPROM - - - - Write new self calibration values to hardware. - - - - - -SendSoftwareEdgeTriggerType ---------------------------- - -.. py:class:: SendSoftwareEdgeTriggerType - - .. py:attribute:: SendSoftwareEdgeTriggerType.START - - - - Asserts the Start trigger. - - - - - - .. py:attribute:: SendSoftwareEdgeTriggerType.SOURCE - - - - Asserts the Source trigger. - - - - - - .. py:attribute:: SendSoftwareEdgeTriggerType.MEASURE - - - - Asserts the Measure trigger. - - - - - - .. py:attribute:: SendSoftwareEdgeTriggerType.SEQUENCE_ADVANCE - - - - Asserts the Sequence Advance trigger. - - - - - - .. py:attribute:: SendSoftwareEdgeTriggerType.PULSE - - - - Asserts the Pulse trigger. - - - - - - .. py:attribute:: SendSoftwareEdgeTriggerType.SHUTDOWN - - - - Asserts the Shutdown trigger. - - - - - -Sense ------ - -.. py:class:: Sense - - .. py:attribute:: Sense.LOCAL - - - - Local sensing is selected. - - - - - - .. py:attribute:: Sense.REMOTE - - - - Remote sensing is selected. - - - - - -SourceMode ----------- - -.. py:class:: SourceMode - - .. py:attribute:: SourceMode.SINGLE_POINT - - - - The source unit applies a single source configuration. - - - - - - .. py:attribute:: SourceMode.SEQUENCE - - - - The source unit applies a list of voltage or current configurations sequentially. - - - - - -TransientResponse ------------------ - -.. py:class:: TransientResponse - - .. py:attribute:: TransientResponse.NORMAL - - - - The output responds to changes in load at a normal speed. - - - - - - .. py:attribute:: TransientResponse.FAST - - - - The output responds to changes in load quickly. - - - - - - .. py:attribute:: TransientResponse.SLOW - - - - The output responds to changes in load slowly. - - - - - - .. py:attribute:: TransientResponse.CUSTOM - - - - The output responds to changes in load based on specified values. - - - - - -TriggerType ------------ - -.. py:class:: TriggerType - - .. py:attribute:: TriggerType.NONE - - - - No trigger is configured. - - - - - - .. py:attribute:: TriggerType.DIGITAL_EDGE - - - - The data operation starts when a digital edge is detected. - - - - - - .. py:attribute:: TriggerType.SOFTWARE_EDGE - - - - The data operation starts when a software trigger occurs. - - - - - - - diff --git a/docs/nidcpower/errors.rst b/docs/nidcpower/errors.rst deleted file mode 100644 index 5446f8504a..0000000000 --- a/docs/nidcpower/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nidcpower.errors - - .. exception:: Error - - Base exception type that all NI-DCPower exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nidcpower.errors - - .. exception:: DriverError - - An error originating from the NI-DCPower driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nidcpower.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nidcpower.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nidcpower.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-DCPower driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nidcpower.errors - - .. exception:: DriverTooNewError - - An error due to the NI-DCPower driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nidcpower.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: nidcpower.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: nidcpower.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: nidcpower.errors - - .. exception:: DriverWarning - - A warning originating from the NI-DCPower driver - - - diff --git a/docs/nidcpower/examples.rst b/docs/nidcpower/examples.rst deleted file mode 100644 index a9d5198b9b..0000000000 --- a/docs/nidcpower/examples.rst +++ /dev/null @@ -1,68 +0,0 @@ -Examples -======== - -`You can download all nidcpower examples for latest version here `_ - -nidcpower_advanced_sequence.py ------------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_advanced_sequence.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_advanced_sequence.py) `_ - -nidcpower_constant_resistance_and_constant_power.py ---------------------------------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_constant_resistance_and_constant_power.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_constant_resistance_and_constant_power.py) `_ - -nidcpower_lcr_source_ac_voltage.py ----------------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_lcr_source_ac_voltage.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_lcr_source_ac_voltage.py) `_ - -nidcpower_measure_record.py ---------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_measure_record.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_measure_record.py) `_ - -nidcpower_sink_dc_current_into_electronic_load.py -------------------------------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_sink_dc_current_into_electronic_load.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_sink_dc_current_into_electronic_load.py) `_ - -nidcpower_sink_dc_voltage_with_output_resistance.py ---------------------------------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_sink_dc_voltage_with_output_resistance.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_sink_dc_voltage_with_output_resistance.py) `_ - -nidcpower_source_delay_measure.py ---------------------------------- - -.. literalinclude:: ../../src/nidcpower/examples/nidcpower_source_delay_measure.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidcpower_source_delay_measure.py) `_ - diff --git a/docs/nidcpower/grpc_session_options.rst b/docs/nidcpower/grpc_session_options.rst deleted file mode 100644 index 5c67fb9a55..0000000000 --- a/docs/nidcpower/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-DCPower over gRPC - -.. py:currentmodule:: nidcpower - - - -Creating a gRPC channel ------------------------ - -Using NI-DCPower over gRPC requires the ``grpc`` extra:: - - $ python -m pip install nidcpower[grpc] - -Every NI-DCPower gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`nidcpower.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-DCPower runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import nidcpower - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = nidcpower.GrpcSessionOptions(channel, '') - with nidcpower.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`nidcpower.SessionInitializationBehavior` diff --git a/docs/nidcpower/index.rst b/docs/nidcpower/index.rst deleted file mode 100644 index 2a68c96659..0000000000 --- a/docs/nidcpower/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-DCPower Python API Documentation -=================================== - -.. include:: about_nidcpower.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nidcpower - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nidcpower/installation.inc b/docs/nidcpower/installation.inc deleted file mode 100644 index 632f6a018e..0000000000 --- a/docs/nidcpower/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nidcpower_installation-section: - -Installation ------------- - -As a prerequisite to using the **nidcpower** module, you must install the NI-DCPower runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-DCPower**) can be installed with `pip `_:: - - $ python -m pip install nidcpower - - diff --git a/docs/nidcpower/nidcpower.rst b/docs/nidcpower/nidcpower.rst deleted file mode 100644 index b8438db6ac..0000000000 --- a/docs/nidcpower/nidcpower.rst +++ /dev/null @@ -1,9 +0,0 @@ -nidcpower module -================ - -.. include:: installation.inc - -.. include:: ../_static/nidcpower_usage.inc - -.. include:: toc.inc - diff --git a/docs/nidcpower/rep_caps.rst b/docs/nidcpower/rep_caps.rst deleted file mode 100644 index 6078e4deab..0000000000 --- a/docs/nidcpower/rep_caps.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. py:module:: nidcpower - :noindex: - -.. py:currentmodule:: nidcpower.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niDCPower_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -channels --------- - - .. py:attribute:: nidcpower.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -instruments ------------ - - .. py:attribute:: nidcpower.Session.instruments[] - - .. code:: python - - session.instruments['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - - diff --git a/docs/nidcpower/status.inc b/docs/nidcpower/status.inc deleted file mode 100644 index 0ff6e79fe5..0000000000 --- a/docs/nidcpower/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-DCPower Python API Status ----------------------------- - -+-------------------------------+--------------------------+ -| NI-DCPower (nidcpower) | | -+===============================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+--------------------------+ -| PyPI Version | |nidcpowerLatestVersion| | -+-------------------------------+--------------------------+ -| Supported Python Version | |nidcpowerPythonVersion| | -+-------------------------------+--------------------------+ -| Documentation | |nidcpowerDocs| | -+-------------------------------+--------------------------+ -| Open Issues | |nidcpowerOpenIssues| | -+-------------------------------+--------------------------+ -| Open Pull Requests | |nidcpowerOpenPRs| | -+-------------------------------+--------------------------+ - - -.. |nidcpowerLatestVersion| image:: http://img.shields.io/pypi/v/nidcpower.svg - :alt: Latest NI-DCPower Version - :target: http://pypi.python.org/pypi/nidcpower - - -.. |nidcpowerPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidcpower.svg - :alt: NI-DCPower supported Python versions - :target: http://pypi.python.org/pypi/nidcpower - - -.. |nidcpowerDocs| image:: https://readthedocs.org/projects/nidcpower/badge/?version=latest - :alt: NI-DCPower Python API Documentation Status - :target: https://nidcpower.readthedocs.io/en/latest - - -.. |nidcpowerOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidcpower.svg - :alt: Open Issues + Pull Requests for NI-DCPower - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidcpower - - -.. |nidcpowerOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidcpower.svg - :alt: Pull Requests for NI-DCPower - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidcpower - - diff --git a/docs/nidcpower/toc.inc b/docs/nidcpower/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/nidcpower/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/nidigital/.readthedocs.yaml b/docs/nidigital/.readthedocs.yaml deleted file mode 100644 index 4aee39a79a..0000000000 --- a/docs/nidigital/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nidigital/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nidigital/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nidigital/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nidigital/about_nidigital.inc b/docs/nidigital/about_nidigital.inc deleted file mode 100644 index 083f0a6518..0000000000 --- a/docs/nidigital/about_nidigital.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nidigital** module provides a Python API for NI-Digital Pattern Driver. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nidigital** supports all the Operating Systems supported by NI-Digital Pattern Driver. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nidigital**. - diff --git a/docs/nidigital/class.rst b/docs/nidigital/class.rst deleted file mode 100644 index 757baeb72f..0000000000 --- a/docs/nidigital/class.rst +++ /dev/null @@ -1,5724 +0,0 @@ -.. py:module:: nidigital - -Session -======= - -.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) - - - - Creates and returns a new session to the specified digital pattern instrument to use in all subsequent method calls. To place the instrument in a known startup state when creating a new session, set the reset parameter to True, which is equivalent to calling the :py:meth:`nidigital.Session.reset` method immediately after initializing the session. - - - - - - :param resource_name: - - - 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. **resourceName** can also be a logical IVI name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where ``PXI1Slot2`` is one instrument resource name and ``PXI1Slot3`` is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. - - +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | |Note| | Note   You only can specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and PXIe-6571. The instruments must be in the same chassis. | - +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. |Note| image:: note.gif - - - - .. note:: - - - :type resource_name: str - - :param id_query: - - - A Boolean that verifies that the digital pattern instrument you initialize is supported by NI-Digital. NI-Digital automatically performs this query, so setting this parameter is not necessary. - - - - - :type id_query: bool - - :param reset_device: - - - A Boolean that specifies whether to reset a digital pattern instrument to a known state when the session is initialized. Setting the **resetDevice** value to True is equivalent to calling the :py:meth:`nidigital.Session.reset` method immediately after initializing the session. - - - - - :type reset_device: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: nidigital.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: abort() - - Stops bursting the pattern. - - - - - -abort_keep_alive ----------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: abort_keep_alive() - - Stops the keep alive pattern if it is currently running. If a pattern burst is in progress, the method aborts the pattern burst. If you start a new pattern burst while a keep alive pattern is running, the keep alive pattern runs to the last keep alive vector, and the new pattern burst starts on the next cycle. - - - - - -apply_levels_and_timing ------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: apply_levels_and_timing(levels_sheet, timing_sheet, initial_state_high_pins=None, initial_state_low_pins=None, initial_state_tristate_pins=None) - - Applies digital levels and timing values defined in previously loaded levels and timing sheets. When applying a levels sheet, only the levels specified in the sheet are affected. Any levels not specified in the sheet remain unchanged. When applying a timing sheet, all existing time sets are deleted before the new time sets are loaded. - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].apply_levels_and_timing` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.apply_levels_and_timing` - - - :param levels_sheet: - - - Name of the levels sheet to apply. Use the name of the sheet or pass the absolute file path you use in the :py:meth:`nidigital.Session.load_specifications_levels_and_timing` method. The name of the levels sheet is the file name without the directory and file extension. - - - - - :type levels_sheet: str - :param timing_sheet: - - - Name of the timing sheet to apply. Use the name of the sheet or pass the absolute file path that you use in the :py:meth:`nidigital.Session.load_specifications_levels_and_timing` method. The name of the timing sheet is the file name without the directory and file extension. - - - - - :type timing_sheet: str - :param initial_state_high_pins: - - - Comma-delimited list of pins, pin groups, or channels to initialize to a high state. - - - - - :type initial_state_high_pins: basic sequence types or str - :param initial_state_low_pins: - - - Comma-delimited list of pins, pin groups, or channels to initialize to a low state. - - - - - :type initial_state_low_pins: basic sequence types or str - :param initial_state_tristate_pins: - - - Comma-delimited list of pins, pin groups, or channels to initialize to a non-drive state (X) - - - - - :type initial_state_tristate_pins: basic sequence types or str - -apply_tdr_offsets ------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: apply_tdr_offsets(offsets) - - Applies the correction for propagation delay offsets to a digital pattern instrument. Use this method to apply TDR offsets that are stored from a past measurement or are measured by means other than the :py:meth:`nidigital.Session.tdr` method. Also use this method to apply correction for offsets if the **applyOffsets** input of the :py:meth:`nidigital.Session.tdr` method was set to False at the time of measurement. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].apply_tdr_offsets` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.apply_tdr_offsets` - - - :param offsets: - - - TDR offsets to apply, in seconds. Specify an offset for each pin or channel in the repeated capabilities. If the repeated capabilities contain pin names, you must specify offsets for each site in the channel map per pin. - - - - - :type offsets: basic sequence of hightime.timedelta, datetime.timedelta, or float in seconds - -burst_pattern -------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: burst_pattern(start_label, select_digital_function=True, wait_until_done=True, timeout=hightime.timedelta(seconds=10.0)) - - Uses the start_label you specify to burst the pattern on the sites you specify. If you - specify wait_until_done as True, waits for the burst to complete, and returns comparison results for each site. - - Digital pins retain their state at the end of a pattern burst until the first vector of the pattern burst, a call to - :py:meth:`nidigital.Session.write_static`, or a call to :py:meth:`nidigital.Session.apply_levels_and_timing`. - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].burst_pattern` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.burst_pattern` - - - :param start_label: - - - Pattern name or exported pattern label from which to start bursting the pattern. - - - - - :type start_label: str - :param select_digital_function: - - - A Boolean that specifies whether to select the digital method for the pins in the pattern prior to bursting. - - - - - :type select_digital_function: bool - :param wait_until_done: - - - A Boolean that indicates whether to wait until the bursting is complete. - - - - - :type wait_until_done: bool - :param timeout: - - - Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: { int: bool, int: bool, ... } - :return: - - - Dictionary where each key is a site number and value is pass/fail, - if wait_until_done is specified as True. Else, None. - - - - - -clock_generator_abort ---------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: clock_generator_abort() - - Stops clock generation on the specified channel(s) or pin(s) and pin group(s). - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clock_generator_abort` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.clock_generator_abort` - - -clock_generator_generate_clock ------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: clock_generator_generate_clock(frequency, select_digital_function=True) - - Configures clock generator frequency and initiates clock generation on the specified channel(s) or pin(s) and pin group(s). - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clock_generator_generate_clock` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.clock_generator_generate_clock` - - - :param frequency: - - - The frequency of the clock generation, in Hz. - - - - - :type frequency: float - :param select_digital_function: - - - A Boolean that specifies whether to select the digital method for the pins specified prior to starting clock generation. - - - - - :type select_digital_function: bool - -close ------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: close() - - Closes the specified instrument session to a digital pattern instrument, aborts pattern execution, and unloads pattern memory. The channels on a digital pattern instrument remain in their current state. - - - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: commit() - - Applies all previously configured pin levels, termination modes, clocks, triggers, and pattern timing to a digital pattern instrument. If you do not call the :py:meth:`nidigital.Session.commit` method, then the initiate method or the :py:meth:`nidigital.Session.burst_pattern` method will implicitly call this method for you. Calling this method moves the session from the Uncommitted state to the Committed state. - - - - - -configure_active_load_levels ----------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_active_load_levels(iol, ioh, vcom) - - Configures I\ :sub:`OL`, I\ :sub:`OH`, and V\ :sub:`COM` levels for the active load on the pins you specify. The DUT sources or sinks current based on the level values. To enable active load, set the termination mode to :py:data:`~nidigital.TerminationMode.ACTIVE_LOAD`. To disable active load, set the termination mode of the instrument to :py:data:`~nidigital.TerminationMode.HIGH_Z` or :py:data:`~nidigital.TerminationMode.VTERM`. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_active_load_levels` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_active_load_levels` - - - :param iol: - - - Maximum current that the DUT sinks while outputting a voltage below V\ :sub:`COM`. - - - - - :type iol: float - :param ioh: - - - Maximum current that the DUT sources while outputting a voltage above V\ :sub:`COM`. - - - - - :type ioh: float - :param vcom: - - - Commutating voltage level at which the active load circuit switches between sourcing current and sinking current. - - - - - :type vcom: float - -configure_pattern_burst_sites ------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_pattern_burst_sites() - - Configures which sites burst the pattern on the next call to the initiate method. The pattern burst sites can also be modified through the repeated capabilities for the :py:meth:`nidigital.Session.burst_pattern` method. If a site has been disabled through the :py:meth:`nidigital.Session.disable_sites` method, the site does not burst a pattern even if included in the pattern burst sites. - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].configure_pattern_burst_sites` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_pattern_burst_sites` - - -configure_time_set_compare_edges_strobe ---------------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_compare_edges_strobe(time_set_name, strobe_edge) - - Configures the strobe edge time for the specified pins. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param strobe_edge: - - - Time when the comparison happens within a vector period. - - - - - :type strobe_edge: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_time_set_compare_edges_strobe2x ------------------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_compare_edges_strobe2x(time_set_name, strobe_edge, strobe2_edge) - - Configures the compare strobes for the specified pins in the time set, including the 2x strobe. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe2x` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe2x` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param strobe_edge: - - - Time when the comparison happens within a vector period. - - - - - :type strobe_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param strobe2_edge: - - - Time when the comparison happens for the second DUT cycle within a vector period. - - - - - :type strobe2_edge: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_time_set_drive_edges ------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_drive_edges(time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge) - - Configures the drive format and drive edge placement for the specified pins. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_drive_edges` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param format: - - - Drive format of the time set. - - - :py:data:`~nidigital.DriveFormat.NR`: Non-return. - - :py:data:`~nidigital.DriveFormat.RL`: Return to low. - - :py:data:`~nidigital.DriveFormat.RH`: Return to high. - - :py:data:`~nidigital.DriveFormat.SBC`: Surround by complement. - - - - - :type format: :py:data:`nidigital.DriveFormat` - :param drive_on_edge: - - - Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. - - - - - :type drive_on_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_data_edge: - - - Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. - - - - - :type drive_data_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_return_edge: - - - Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. - - - - - :type drive_return_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_off_edge: - - - Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). - - - - - :type drive_off_edge: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_time_set_drive_edges2x --------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_drive_edges2x(time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge) - - Configures the drive edges of the pins in the time set, including 2x edges. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges2x` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_drive_edges2x` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param format: - - - Drive format of the time set. - - - :py:data:`~nidigital.DriveFormat.NR`: Non-return. - - :py:data:`~nidigital.DriveFormat.RL`: Return to low. - - :py:data:`~nidigital.DriveFormat.RH`: Return to high. - - :py:data:`~nidigital.DriveFormat.SBC`: Surround by complement. - - - - - :type format: :py:data:`nidigital.DriveFormat` - :param drive_on_edge: - - - Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. - - - - - :type drive_on_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_data_edge: - - - Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. - - - - - :type drive_data_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_return_edge: - - - Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. - - - - - :type drive_return_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_off_edge: - - - Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). - - - - - :type drive_off_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_data2_edge: - - - Delay, in seconds, from the beginning of the vector period until the pattern data in the second DUT cycle is driven to the pattern value. - - - - - :type drive_data2_edge: hightime.timedelta, datetime.timedelta, or float in seconds - :param drive_return2_edge: - - - Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data in the second DUT cycle to the return value, as specified in the format. - - - - - :type drive_return2_edge: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_time_set_drive_format -------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_drive_format(time_set_name, drive_format) - - Configures the drive format for the pins specified in the **pinList**. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_format` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_drive_format` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param drive_format: - - - Drive format of the time set. - - - :py:data:`~nidigital.DriveFormat.NR`: Non-return. - - :py:data:`~nidigital.DriveFormat.RL`: Return to low. - - :py:data:`~nidigital.DriveFormat.RH`: Return to high. - - :py:data:`~nidigital.DriveFormat.SBC`: Surround by complement. - - - - - :type drive_format: :py:data:`nidigital.DriveFormat` - -configure_time_set_edge ------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_edge(time_set_name, edge, time) - - Configures the edge placement for the pins specified in the pin list. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_edge` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param edge: - - - Name of the edge. - - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_ON` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_OFF` - - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA2` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN2` - - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE2` - - - - - :type edge: :py:data:`nidigital.TimeSetEdgeType` - :param time: - - - The time from the beginning of the vector period in which to place the edge. - - - - - :type time: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_time_set_edge_multiplier ----------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_edge_multiplier(time_set_name, edge_multiplier) - - Configures the edge multiplier of the pins in the time set. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge_multiplier` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_edge_multiplier` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param edge_multiplier: - - - The specified edge multiplier for the pins in the pin list. - - - - - :type edge_multiplier: int - -configure_time_set_period -------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_time_set_period(time_set_name, period) - - Configures the period of a time set. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. - - - - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param period: - - - Period for this time set, in seconds. - - - - - :type period: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_voltage_levels ------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: configure_voltage_levels(vil, vih, vol, voh, vterm) - - Configures voltage levels for the pins you specify. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_voltage_levels` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_voltage_levels` - - - :param vil: - - - Voltage that the instrument will apply to the input of the DUT when the pin driver drives a logic low (0). - - - - - :type vil: float - :param vih: - - - Voltage that the instrument will apply to the input of the DUT when the test instrument drives a logic high (1). - - - - - :type vih: float - :param vol: - - - Output voltage below which the comparator on the pin driver interprets a logic low (L). - - - - - :type vol: float - :param voh: - - - Output voltage above which the comparator on the pin driver interprets a logic high (H). - - - - - :type voh: float - :param vterm: - - - Termination voltage the instrument applies during non-drive cycles when the termination mode is set to V\ :sub:`term`. The instrument applies the termination voltage through a 50 ohm parallel termination resistance. - - - - - :type vterm: float - -create_capture_waveform_from_file_digicapture ---------------------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_capture_waveform_from_file_digicapture(waveform_name, waveform_file_path) - - Creates a capture waveform with the configuration information from a Digicapture file generated by the Digital Pattern Editor. - - - - - - :param waveform_name: - - - Waveform name you want to use. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the capture_start opcode in your pattern. - - - - - :type waveform_name: str - :param waveform_file_path: - - - Absolute file path to the capture waveform file (.digicapture) you want to load. - - - - - :type waveform_file_path: str - -create_capture_waveform_parallel --------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_capture_waveform_parallel(waveform_name) - - Sets the capture waveform settings for parallel acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_parallel` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_capture_waveform_parallel` - - - :param waveform_name: - - - Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. - - - - - :type waveform_name: str - -create_capture_waveform_serial ------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_capture_waveform_serial(waveform_name, sample_width, bit_order) - - Sets the capture waveform settings for serial acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_serial` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_capture_waveform_serial` - - - :param waveform_name: - - - Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. - - - - - :type waveform_name: str - :param sample_width: - - - Width in bits of each serial sample. Valid values are between 1 and 32. - - - - - :type sample_width: int - :param bit_order: - - - Order in which to shift the bits. - - - :py:data:`~nidigital.BitOrder.MSB`: Specifies the bit order by most significant bit first. - - :py:data:`~nidigital.BitOrder.LSB`: Specifies the bit order by least significant bit first. - - - - - :type bit_order: :py:data:`nidigital.BitOrder` - -create_source_waveform_from_file_tdms -------------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_source_waveform_from_file_tdms(waveform_name, waveform_file_path, write_waveform_data=True) - - Creates a source waveform with configuration information from a TDMS file generated by the Digital Pattern Editor. It also optionally writes waveform data from the file. - - - - - - :param waveform_name: - - - The waveform name you want to use from the file. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the source_start opcode in your pattern. - - - - - :type waveform_name: str - :param waveform_file_path: - - - Absolute file path to the load source waveform file (.tdms). - - - - - :type waveform_file_path: str - :param write_waveform_data: - - - A Boolean that writes waveform data to source memory if True and the waveform data is in the file. - - - - - :type write_waveform_data: bool - -create_source_waveform_parallel -------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_source_waveform_parallel(waveform_name, data_mapping) - - Sets the source waveform settings required for parallel sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_parallel` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_source_waveform_parallel` - - - :param waveform_name: - - - The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - - - - :type waveform_name: str - :param data_mapping: - - - Parameter that specifies how to map data on multiple sites. - - - :py:data:`~nidigital.SourceDataMapping.BROADCAST`: Broadcasts the waveform you specify to all sites. - - :py:data:`~nidigital.SourceDataMapping.SITE_UNIQUE`: Sources unique waveform data to each site. - - - - - :type data_mapping: :py:data:`nidigital.SourceDataMapping` - -create_source_waveform_serial ------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_source_waveform_serial(waveform_name, data_mapping, sample_width, bit_order) - - Sets the source waveform settings required for serial sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_serial` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_source_waveform_serial` - - - :param waveform_name: - - - The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - - - - :type waveform_name: str - :param data_mapping: - - - Parameter that specifies how to map data on multiple sites. - - - :py:data:`~nidigital.SourceDataMapping.BROADCAST`: Broadcasts the waveform you specify to all sites. - - :py:data:`~nidigital.SourceDataMapping.SITE_UNIQUE`: Sources unique waveform data to each site. - - - - - :type data_mapping: :py:data:`nidigital.SourceDataMapping` - :param sample_width: - - - Width in bits of each serial sample. Valid values are between 1 and 32. - - - - - :type sample_width: int - :param bit_order: - - - Order in which to shift the bits. - - - :py:data:`~nidigital.BitOrder.MSB`: Specifies the bit order by most significant bit first. - - :py:data:`~nidigital.BitOrder.LSB`: Specifies the bit order by least significant bit first. - - - - - :type bit_order: :py:data:`nidigital.BitOrder` - -create_time_set ---------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: create_time_set(name) - - Creates a time set with the name that you specify. Use this method when you want to create time sets programmatically rather than with a timing sheet. - - - - - - :param name: - - - The specified name of the new time set. - - - - - :type name: str - -delete_all_time_sets --------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: delete_all_time_sets() - - Deletes all time sets from instrument memory. - - - - - -disable_sites -------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: disable_sites() - - Disables specified sites. Disabled sites are not included in pattern bursts initiated by the initiate method or the :py:meth:`nidigital.Session.burst_pattern` method, even if the site is specified in the list of pattern burst sites in :py:meth:`nidigital.Session.configure_pattern_burst_sites` method or in the repeated capabilities for the :py:meth:`nidigital.Session.burst_pattern` method. Additionally, if you specify a list of pin or pin group names in repeated capabilities in any NI-Digital method, digital pattern instrument channels mapped to disabled sites are not affected by the method. The methods that return per-pin data, such as the :py:meth:`nidigital.Session.ppmu_measure` method, do not return data for channels mapped to disabled sites. The digital pattern instrument channels mapped to the sites specified are left in their current state. NI TestStand Semiconductor Module requires all sites to always be enabled, and manages the set of active sites without disabling the sites in the digital instrument session. Do not use this method with the Semiconductor Module. - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].disable_sites` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.disable_sites` - - -enable_match_fail_combination ------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: enable_match_fail_combination() - - Configures digital pattern instruments and the PXIe-6674T timing and synchronization instrument to combine pattern comparison results and control subsequent pattern execution across digital pattern instruments based on those results. You must initialize the PXIe-6674T using NI-Sync and call this method from a multi-instrument session. - - - - - -enable_sites ------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: enable_sites() - - Enables the sites you specify. All sites are enabled by default. - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].enable_sites` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.enable_sites` - - -fetch_capture_waveform ----------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: fetch_capture_waveform(waveform_name, samples_to_read, timeout=hightime.timedelta(seconds=10.0)) - - Returns dictionary where each key is a site number and value is a collection of digital states representing capture waveform data - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].fetch_capture_waveform` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.fetch_capture_waveform` - - - :param waveform_name: - - - Waveform name you create with the create capture waveform method. Use the waveform_name parameter with capture_start opcode in your pattern. - - - - - :type waveform_name: str - :param samples_to_read: - - - Number of samples to fetch. - - - - - :type samples_to_read: int - :param timeout: - - - Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: { int: memoryview of array.array of unsigned int, int: memoryview of array.array of unsigned int, ... } - :return: - - - Dictionary where each key is a site number and value is a collection of digital states representing capture waveform data - - - - - -fetch_history_ram_cycle_information ------------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: fetch_history_ram_cycle_information(position, samples_to_read) - - Returns the pattern information acquired for the specified cycles. - - If the pattern is using the edge multiplier feature, cycle numbers represent tester cycles, each of which may - consist of multiple DUT cycles. When using pins with mixed edge multipliers, pins may return - :py:data:`~nidigital.PinState.PIN_STATE_NOT_ACQUIRED` for DUT cycles where those pins do not have edges defined. - - Site number on which to retrieve pattern information must be specified via sites repeated capability. - The method returns an error if more than one site is specified. - - Pins for which to retrieve pattern information must be specified via pins repeated capability. - If pins are not specified, pin list from the pattern containing the start label is used. Call - :py:meth:`nidigital.Session.get_pattern_pin_names` with the start label to retrieve the pins associated with the pattern burst: - - .. code:: python - - session.sites[0].pins['PinA', 'PinB'].fetch_history_ram_cycle_information(0, -1) - - - - .. note:: Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. - - :py:attr:`nidigital.Session.history_ram_trigger_type` should be used to specify the trigger condition on which History RAM - starts acquiring pattern information. - - If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.CYCLE_NUMBER`, - :py:attr:`nidigital.Session.cycle_number_history_ram_trigger_cycle_number` should be used to specify the cycle number on which - History RAM starts acquiring pattern information. - - If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.PATTERN_LABEL`, - :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_label` should be used to specify the pattern label from which to - start acquiring pattern information. - :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_vector_offset` should be used to specify the number of vectors - following the specified pattern label from which to start acquiring pattern information. - :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_cycle_offset` should be used to specify the number of cycles - following the specified pattern label and vector offset from which to start acquiring pattern information. - - For all History RAM trigger conditions, :py:attr:`nidigital.Session.history_ram_pretrigger_samples` should be used to specify - the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only - acquire failed cycles, you must set :py:attr:`nidigital.Session.history_ram_pretrigger_samples` to 0. - - :py:attr:`nidigital.Session.history_ram_cycles_to_acquire` should be used to specify which cycles History RAM acquires after - the trigger conditions are met. - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].fetch_history_ram_cycle_information` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.fetch_history_ram_cycle_information` - - - :param position: - - - Sample index from which to start fetching pattern information. - - - - - :type position: int - :param samples_to_read: - - - Number of samples to fetch. A value of -1 specifies to fetch all available samples. - - - - - :type samples_to_read: int - - :rtype: list of HistoryRAMCycleInformation - :return: - - - Returns a list of class instances with - the following information about each pattern cycle: - - - **pattern_name** (str) Name of the pattern for the acquired cycle. - - **time_set_name** (str) Time set for the acquired cycle. - - **vector_number** (int) Vector number within the pattern for the acquired cycle. Vector numbers start - at 0 from the beginning of the pattern. - - **cycle_number** (int) Cycle number acquired by this History RAM sample. Cycle numbers start at 0 - from the beginning of the pattern burst. - - **scan_cycle_number** (int) Scan cycle number acquired by this History RAM sample. Scan cycle numbers - start at 0 from the first cycle of the scan vector. Scan cycle numbers are -1 for cycles that do not - have a scan opcode. - - **expected_pin_states** (list of list of enums.PinState) Pin states as expected by the loaded - pattern in the order specified in the pin list. Pins without defined edges in the specified DUT cycle - will have a value of :py:data:`~nidigital.PinState.PIN_STATE_NOT_ACQUIRED`. - Length of the outer list will be equal to the value of edge multiplier for the given vector. - Length of the inner list will be equal to the number of pins requested. - - **actual_pin_states** (list of list of enums.PinState) Pin states acquired by History RAM in the - order specified in the pin list. Pins without defined edges in the specified DUT cycle will have a - value of :py:data:`~nidigital.PinState.PIN_STATE_NOT_ACQUIRED`. - Length of the outer list will be equal to the value of edge multiplier for the given vector. - Length of the inner list will be equal to the number of pins requested. - - **per_pin_pass_fail** (list of list of bool) Pass fail information for pins in the order specified in - the pin list. Pins without defined edges in the specified DUT cycle will have a value of pass (True). - Length of the outer list will be equal to the value of edge multiplier for the given vector. - Length of the inner list will be equal to the number of pins requested. - - - - - -frequency_counter_measure_frequency ------------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: frequency_counter_measure_frequency() - - Measures the frequency on the specified channel(s) over the specified measurement time. All channels in the repeated capabilities should have the same measurement time. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].frequency_counter_measure_frequency` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.frequency_counter_measure_frequency` - - - :rtype: list of float - :return: - - - The returned frequency counter measurement, in Hz.This method returns -1 if the measurement is invalid for the channel. - - - - - -get_channel_names ------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_channel_names(indices) - - Returns a list of channel names for given channel indices. - - - - - - :param indices: - - - Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - - - :type indices: basic sequence types, str, or int - - :rtype: list of str - :return: - - - The channel name(s) at the specified indices. - - - - - -get_fail_count --------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_fail_count() - - Returns the comparison fail count for pins in the repeated capabilities. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_fail_count` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_fail_count` - - - :rtype: list of int - :return: - - - Number of failures in an array. If a site is disabled or not enabled for burst, the method does not return data for that site. You can also use the :py:meth:`nidigital.Session.get_pin_results_pin_information` method to obtain a sorted list of returned sites and channels. - - - - - -get_history_ram_sample_count ----------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_history_ram_sample_count() - - Returns the number of samples History RAM acquired on the last pattern burst. - - - - .. note:: Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. - - :py:attr:`nidigital.Session.history_ram_trigger_type` should be used to specify the trigger condition on which History RAM - starts acquiring pattern information. - - If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.CYCLE_NUMBER`, - :py:attr:`nidigital.Session.cycle_number_history_ram_trigger_cycle_number` should be used to specify the cycle number on which - History RAM starts acquiring pattern information. - - If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.PATTERN_LABEL`, - :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_label` should be used to specify the pattern label from which to - start acquiring pattern information. - :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_vector_offset` should be used to specify the number of vectors - following the specified pattern label from which to start acquiring pattern information. - :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_cycle_offset` should be used to specify the number of cycles - following the specified pattern label and vector offset from which to start acquiring pattern information. - - For all History RAM trigger conditions, :py:attr:`nidigital.Session.history_ram_pretrigger_samples` should be used to specify - the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only - acquire failed cycles, you must set :py:attr:`nidigital.Session.history_ram_pretrigger_samples` to 0. - - :py:attr:`nidigital.Session.history_ram_cycles_to_acquire` should be used to specify which cycles History RAM acquires after - the trigger conditions are met. - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].get_history_ram_sample_count` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_history_ram_sample_count` - - - :rtype: int - :return: - - - The returned number of samples that History RAM acquired. - - - - - -get_pattern_pin_names ---------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_pattern_pin_names(start_label) - - Returns the pattern pin list. - - - - - - :param start_label: - - - Pattern name or exported pattern label from which to get the pin names that the pattern references. - - - - - :type start_label: str - - :rtype: list of str - :return: - - - List of pins referenced by the pattern with the **startLabel**. - - - - - -get_pin_results_pin_information -------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_pin_results_pin_information() - - Returns the pin names, site numbers, and channel names that correspond to per-pin data read from the digital pattern instrument. The method returns pin information in the same order as values read using the :py:meth:`nidigital.Session.read_static` method, :py:meth:`nidigital.Session.ppmu_measure` method, and :py:meth:`nidigital.Session.get_fail_count` method. Use this method to match values the previously listed methods return with pins, sites, and instrument channels. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_pin_results_pin_information` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_pin_results_pin_information` - - - :rtype: list of PinInfo - :return: - - - List of named tuples with fields: - - - **pin_name** (str) - - **site_number** (int) - - **channel_name** (str) - - - - - -get_site_pass_fail ------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_site_pass_fail() - - Returns dictionary where each key is a site number and value is pass/fail - - - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].get_site_pass_fail` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_site_pass_fail` - - - :rtype: { int: bool, int: bool, ... } - :return: - - - Dictionary where each key is a site number and value is pass/fail - - - - - -get_time_set_drive_format -------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_time_set_drive_format(time_set_name) - - Returns the drive format of a pin in the specified time set. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].get_time_set_drive_format` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_time_set_drive_format` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - - :rtype: :py:data:`nidigital.DriveFormat` - :return: - - - Returned drive format of the time set for the specified pin. - - - - - -get_time_set_edge ------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_time_set_edge(time_set_name, edge) - - Returns the edge time of a pin in the specified time set. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_time_set_edge` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - :param edge: - - - Name of the edge. - - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_ON` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_OFF` - - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA2` - - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN2` - - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE2` - - - - - :type edge: :py:data:`nidigital.TimeSetEdgeType` - - :rtype: hightime.timedelta - :return: - - - Time from the beginning of the vector period in which to place the edge. - - - - - -get_time_set_edge_multiplier ----------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_time_set_edge_multiplier(time_set_name) - - Returns the edge multiplier of the specified time set. - - - - - .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge_multiplier` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_time_set_edge_multiplier` - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - - :rtype: int - :return: - - - Returned edge multiplier of the time set for the specified pin. - - - - - -get_time_set_period -------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: get_time_set_period(time_set_name) - - Returns the period of the specified time set. - - - - - - :param time_set_name: - - - The specified time set name. - - - - - :type time_set_name: str - - :rtype: hightime.timedelta - :return: - - - Returned period, in seconds, that the edge is configured to. - - - - - -initiate --------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: initiate() - - Starts bursting the pattern configured by :py:attr:`nidigital.Session.start_label`, causing the NI-Digital session to be committed. To stop the pattern burst, call :py:meth:`nidigital.Session.abort`. If keep alive pattern is bursting when :py:meth:`nidigital.Session.abort` is called or upon exiting the context manager, keep alive pattern will not be stopped. To stop the keep alive pattern, call :py:meth:`nidigital.Session.abort_keep_alive`. - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -is_done -------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: is_done() - - Checks the hardware to determine if the pattern burst has completed or if any errors have occurred. - - - - - - :rtype: bool - :return: - - - A Boolean that indicates whether the pattern burst completed. - - - - - -is_site_enabled ---------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: is_site_enabled() - - Checks if a specified site is enabled. - - - - .. note:: The method returns an error if more than one site is specified. - - - .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].is_site_enabled` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.is_site_enabled` - - - :rtype: bool - :return: - - - Boolean value that returns whether the site is enabled or disabled. - - - - - -load_pattern ------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: load_pattern(file_path) - - Loads the specified pattern file. - - - - - - :param file_path: - - - Absolute file path of the binary .digipat pattern file to load. Specify the pattern to burst using :py:attr:`nidigital.Session.start_label` or the start_label parameter of the :py:meth:`nidigital.Session.burst_pattern` method. - - - - - :type file_path: str - -load_pin_map ------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: load_pin_map(file_path) - - Loads a pin map file. You can load only a single pin and channel map file during an NI-Digital Pattern Driver session. To switch pin maps, create a new session or call the :py:meth:`nidigital.Session.reset` method. - - - - - - :param file_path: - - - Absolute file path to a pin map file created with the Digital Pattern Editor or the NI TestStand Semiconductor Module. - - - - - :type file_path: str - -load_specifications_levels_and_timing -------------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: load_specifications_levels_and_timing(specifications_file_paths=None, levels_file_paths=None, timing_file_paths=None) - - Loads settings in specifications, levels, and timing sheets. These settings are not - applied to the digital pattern instrument until :py:meth:`nidigital.Session.apply_levels_and_timing` is called. - - If the levels and timing sheets contains formulas, they are evaluated at load time. - If the formulas refer to variables, the specifications sheets that define those - variables must be loaded either first, or at the same time as the levels and timing sheets. - - - - - - :param specifications_file_paths: - - - Absolute file path of one or more specifications files. - - - - - :type specifications_file_paths: str or basic sequence of str - :param levels_file_paths: - - - Absolute file path of one or more levels sheet files. - - - - - :type levels_file_paths: str or basic sequence of str - :param timing_file_paths: - - - Absolute file path of one or more timing sheet files. - - - - - :type timing_file_paths: str or basic sequence of str - -lock ----- - - .. py:currentmodule:: nidigital.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`nidigital.Session.lock` method. - - A call to NI-Digital Pattern Driver locked the session. - - After a call to the :py:meth:`nidigital.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`nidigital.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`nidigital.Session.lock` method and the - :py:meth:`nidigital.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`nidigital.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`nidigital.Session.lock` method with a call to - the :py:meth:`nidigital.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with nidigital.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`nidigital.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -ppmu_measure ------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: ppmu_measure(measurement_type) - - Instructs the PPMU to measure voltage or current. This method can be called to take a voltage measurement even if the pin method is not set to PPMU. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].ppmu_measure` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.ppmu_measure` - - - :param measurement_type: - - - Parameter that specifies whether the PPMU measures voltage or current from the DUT. - - - :py:data:`~nidigital.PPMUMeasurementType.CURRENT`: The PPMU measures current from the DUT. - - :py:data:`~nidigital.PPMUMeasurementType.VOLTAGE`: The PPMU measures voltage from the DUT. - - - - - :type measurement_type: :py:data:`nidigital.PPMUMeasurementType` - - :rtype: list of float - :return: - - - The returned array of measurements in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the :py:meth:`nidigital.Session.get_pin_results_pin_information` method to obtain a sorted list of returned sites and channels. - - - - - -ppmu_source ------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: ppmu_source() - - Starts sourcing voltage or current from the PPMU. This method automatically selects the PPMU method. Changes to PPMU source settings do not take effect until you call this method. If you modify source settings after you call this method, you must call this method again for changes in the configuration to take effect. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].ppmu_source` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.ppmu_source` - - -read_sequencer_flag -------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: read_sequencer_flag(flag) - - Reads the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. - - - - - - :param flag: - - - The pattern sequencer flag you want to read. - - - :py:data:`~nidigital.SequencerFlag.FLAG0` ("seqflag0"): Reads pattern sequencer flag 0. - - :py:data:`~nidigital.SequencerFlag.FLAG1` ("seqflag1"): Reads pattern sequencer flag 1. - - :py:data:`~nidigital.SequencerFlag.FLAG2` ("seqflag2"): Reads pattern sequencer flag 2. - - :py:data:`~nidigital.SequencerFlag.FLAG3` ("seqflag3"): Reads pattern sequencer flag 3. - - - - - :type flag: :py:data:`nidigital.SequencerFlag` - - :rtype: bool - :return: - - - A Boolean that indicates the state of the pattern sequencer flag you specify. - - - - - -read_sequencer_register ------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: read_sequencer_register(reg) - - Reads the value of a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. For example, you can use this method to read a register modified by the write_reg opcode during a pattern burst. - - - - - - :param reg: - - - The sequencer register to read from. - - - :py:data:`~nidigital.SequencerRegister.REGISTER0` ("reg0"): Reads sequencer register 0. - - :py:data:`~nidigital.SequencerRegister.REGISTER1` ("reg1"): Reads sequencer register 1. - - :py:data:`~nidigital.SequencerRegister.REGISTER2` ("reg2"): Reads sequencer register 2. - - :py:data:`~nidigital.SequencerRegister.REGISTER3` ("reg3"): Reads sequencer register 3. - - :py:data:`~nidigital.SequencerRegister.REGISTER4` ("reg4"): Reads sequencer register 4. - - :py:data:`~nidigital.SequencerRegister.REGISTER5` ("reg5"): Reads sequencer register 5. - - :py:data:`~nidigital.SequencerRegister.REGISTER6` ("reg6"): Reads sequencer register 6. - - :py:data:`~nidigital.SequencerRegister.REGISTER7` ("reg7"): Reads sequencer register 7. - - :py:data:`~nidigital.SequencerRegister.REGISTER8` ("reg8"): Reads sequencer register 8. - - :py:data:`~nidigital.SequencerRegister.REGISTER9` ("reg9"): Reads sequencer register 9. - - :py:data:`~nidigital.SequencerRegister.REGISTER10` ("reg10"): Reads sequencer register 10. - - :py:data:`~nidigital.SequencerRegister.REGISTER11` ("reg11"): Reads sequencer register 11. - - :py:data:`~nidigital.SequencerRegister.REGISTER12` ("reg12"): Reads sequencer register 12. - - :py:data:`~nidigital.SequencerRegister.REGISTER13` ("reg13"): Reads sequencer register 13. - - :py:data:`~nidigital.SequencerRegister.REGISTER14` ("reg14"): Reads sequencer register 14. - - :py:data:`~nidigital.SequencerRegister.REGISTER15` ("reg15"): Reads sequencer register 15. - - - - - :type reg: :py:data:`nidigital.SequencerRegister` - - :rtype: int - :return: - - - Value read from the sequencer register. - - - - - -read_static ------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: read_static() - - Reads the current state of comparators for pins you specify in the repeated capabilities. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_static` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.read_static` - - - :rtype: list of :py:data:`nidigital.PinState` - :return: - - - The returned array of pin states read from the channels in the repeated capabilities. Data is returned in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the :py:meth:`nidigital.Session.get_pin_results_pin_information` method to obtain a sorted list of returned sites and channels. - - - :py:data:`~nidigital.PinState.L`: The comparators read a logic low pin state. - - :py:data:`~nidigital.PinState.H`: The comparators read a logic high pin state. - - :py:data:`~nidigital.PinState.M`: The comparators read a midband pin state. - - :py:data:`~nidigital.PinState.V`: The comparators read a value that is above VOH and below VOL, which can occur when you set VOL higher than VOH. - - - - - -reset ------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: reset() - - Returns a digital pattern instrument to a known state. This method performs the following actions: - - - Aborts pattern execution. - - Clears pin maps, time sets, source and capture waveforms, and patterns. - - Resets all properties to default values, including the :py:attr:`nidigital.Session.selected_function` property that is set to :py:data:`~nidigital.SelectedFunction.DISCONNECT`, causing the I/O switches to open. - - Stops exporting all external signals and events. - - - - - -reset_device ------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: reset_device() - - Returns a digital pattern instrument to a known state. This method performs the following actions: - - - Aborts pattern execution. - - Clears pin maps, time sets, source and capture waveforms, and patterns. - - Resets all properties to default values, including the :py:attr:`nidigital.Session.selected_function` property that is set to :py:data:`~nidigital.SelectedFunction.DISCONNECT`, causing the I/O switches to open. - - Stops export of all external signals and events. - - Clears over-temperature and over-power conditions. - - - - - -self_calibrate --------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: self_calibrate() - - Performs self-calibration on a digital pattern instrument. - - - - - -self_test ---------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: self_test() - - Returns self test results from a digital pattern instrument. This test requires several minutes to execute. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+-------------------+ - | Self-Test Code | Description | - +================+===================+ - | 0 | Self test passed. | - +----------------+-------------------+ - | 1 | Self test failed. | - +----------------+-------------------+ - - - -send_software_edge_trigger --------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: send_software_edge_trigger(trigger, trigger_identifier) - - Forces a particular edge-based trigger to occur regardless of how the specified trigger is configured. You can use this method as a software override. - - - - - - :param trigger: - - - Trigger specifies the trigger you want to override. - - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values | | - +========================================================+=================================================================================================================================+ - | :py:data:`~nidigital.SoftwareTrigger.START` | Overrides the Start trigger. You must specify an empty string in the trigger_identifier parameter. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.SoftwareTrigger.CONDITIONAL_JUMP` | Specifies to route a conditional jump trigger. You must specify a conditional jump trigger in the trigger_identifier parameter. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger: :py:data:`nidigital.SoftwareTrigger` - :param trigger_identifier: - - - Trigger Identifier specifies the instance of the trigger you want to override. - If trigger is specified as :py:data:`~nidigital.NIDIGITAL_VAL_START_TRIGGER`, this parameter must be an empty string. If trigger is - specified as :py:data:`~nidigital.NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER`, allowed values are conditionalJumpTrigger0, - conditionalJumpTrigger1, conditionalJumpTrigger2, and conditionalJumpTrigger3. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger_identifier: str - -tdr ---- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: tdr(apply_offsets=True) - - Measures propagation delays through cables, connectors, and load boards using Time-Domain Reflectometry (TDR). Ensure that the channels and pins you select are connected to an open circuit. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].tdr` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.tdr` - - - :param apply_offsets: - - - A Boolean that specifies whether to apply the measured TDR offsets. If you need to adjust the measured offsets prior to applying, set this input to False, and call the :py:meth:`nidigital.Session.apply_tdr_offsets` method to specify the adjusted TDR offsets values. - - - - - :type apply_offsets: bool - - :rtype: list of hightime.timedelta - :return: - - - Measured TDR offsets specified in seconds. - - - - - -unload_all_patterns -------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: unload_all_patterns(unload_keep_alive_pattern=False) - - Unloads all patterns, source waveforms, and capture waveforms from a digital pattern instrument. - - - - - - :param unload_keep_alive_pattern: - - - A Boolean that specifies whether to keep or unload the keep alive pattern. - - - - - :type unload_keep_alive_pattern: bool - -unload_specifications ---------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: unload_specifications(file_paths) - - Unloads the given specifications sheets present in the previously loaded - specifications files that you select. - - You must call :py:meth:`nidigital.Session.load_specifications_levels_and_timing` to reload the files with updated - specifications values. You must then call :py:meth:`nidigital.Session.apply_levels_and_timing` in order to apply - the levels and timing values that reference the updated specifications values. - - - - - - :param file_paths: - - - Absolute file path of one or more loaded specifications files. - - - - - :type file_paths: str or basic sequence of str - -unlock ------- - - .. py:currentmodule:: nidigital.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`nidigital.Session.lock`. Refer to :py:meth:`nidigital.Session.unlock` for additional - information on session locks. - -wait_until_done ---------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: wait_until_done(timeout=hightime.timedelta(seconds=10.0)) - - Waits until the pattern burst has completed or the timeout has expired. - - - - - - :param timeout: - - - Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - -write_sequencer_flag --------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: write_sequencer_flag(flag, value) - - Writes the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. - - - - - - :param flag: - - - The pattern sequencer flag to write. - - - :py:data:`~nidigital.SequencerFlag.FLAG0` ("seqflag0"): Writes pattern sequencer flag 0. - - :py:data:`~nidigital.SequencerFlag.FLAG1` ("seqflag1"): Writes pattern sequencer flag 1. - - :py:data:`~nidigital.SequencerFlag.FLAG2` ("seqflag2"): Writes pattern sequencer flag 2. - - :py:data:`~nidigital.SequencerFlag.FLAG3` ("seqflag3"): Writes pattern sequencer flag 3. - - - - - :type flag: :py:data:`nidigital.SequencerFlag` - :param value: - - - A Boolean that assigns a state to the pattern sequencer flag you specify. - - - - - :type value: bool - -write_sequencer_register ------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: write_sequencer_register(reg, value) - - Writes a value to a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. - - - - - - :param reg: - - - The sequencer register you want to write to. - - - :py:data:`~nidigital.SequencerRegister.REGISTER0` ("reg0"): Writes sequencer register 0. - - :py:data:`~nidigital.SequencerRegister.REGISTER1` ("reg1"): Writes sequencer register 1. - - :py:data:`~nidigital.SequencerRegister.REGISTER2` ("reg2"): Writes sequencer register 2. - - :py:data:`~nidigital.SequencerRegister.REGISTER3` ("reg3"): Writes sequencer register 3. - - :py:data:`~nidigital.SequencerRegister.REGISTER4` ("reg4"): Writes sequencer register 4. - - :py:data:`~nidigital.SequencerRegister.REGISTER5` ("reg5"): Writes sequencer register 5. - - :py:data:`~nidigital.SequencerRegister.REGISTER6` ("reg6"): Writes sequencer register 6. - - :py:data:`~nidigital.SequencerRegister.REGISTER7` ("reg7"): Writes sequencer register 7. - - :py:data:`~nidigital.SequencerRegister.REGISTER8` ("reg8"): Writes sequencer register 8. - - :py:data:`~nidigital.SequencerRegister.REGISTER9` ("reg9"): Writes sequencer register 9. - - :py:data:`~nidigital.SequencerRegister.REGISTER10` ("reg10"): Writes sequencer register 10. - - :py:data:`~nidigital.SequencerRegister.REGISTER11` ("reg11"): Writes sequencer register 11. - - :py:data:`~nidigital.SequencerRegister.REGISTER12` ("reg12"): Writes sequencer register 12. - - :py:data:`~nidigital.SequencerRegister.REGISTER13` ("reg13"): Writes sequencer register 13. - - :py:data:`~nidigital.SequencerRegister.REGISTER14` ("reg14"): Writes sequencer register 14. - - :py:data:`~nidigital.SequencerRegister.REGISTER15` ("reg15"): Writes sequencer register 15. - - - - - :type reg: :py:data:`nidigital.SequencerRegister` - :param value: - - - The value you want to write to the register. - - - - - :type value: int - -write_source_waveform_broadcast -------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: write_source_waveform_broadcast(waveform_name, waveform_data) - - Writes the same waveform data to all sites. Use this write method if you set the data_mapping parameter of the create source waveform method to :py:data:`~nidigital.SourceDataMapping.BROADCAST`. - - - - - - :param waveform_name: - - - The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - - - - :type waveform_name: str - :param waveform_data: - - - 1D array of samples to use as source data to apply to all sites. - - - - - :type waveform_data: list of int - -write_source_waveform_data_from_file_tdms ------------------------------------------ - - .. py:currentmodule:: nidigital.Session - - .. py:method:: write_source_waveform_data_from_file_tdms(waveform_name, waveform_file_path) - - Writes a source waveform based on the waveform data and configuration information the file contains. - - - - - - :param waveform_name: - - - The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - - - - :type waveform_name: str - :param waveform_file_path: - - - Absolute file path to the load source waveform file (.tdms). - - - - - :type waveform_file_path: str - -write_source_waveform_site_unique ---------------------------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: write_source_waveform_site_unique(waveform_name, waveform_data) - - Writes one waveform per site. Use this write method if you set the parameter of the create source waveform method to Site Unique. - - - - - - :param waveform_name: - - - The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - - - - :type waveform_name: str - :param waveform_data: - - - Dictionary where each key is a site number and value is a collection of samples to use as source data - - - - - :type waveform_data: { int: basic sequence of unsigned int, int: basic sequence of unsigned int, ... } - -write_static ------------- - - .. py:currentmodule:: nidigital.Session - - .. py:method:: write_static(state) - - Writes a static state to the specified pins. The selected pins remain in the specified state until the next pattern burst or call to this method. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. This method does not change the selected pin method. If you write a static state to a pin that does not have the Digital method selected, the new static state is stored by the instrument, and affects the state of the pin the next time you change the selected method to Digital. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].write_static` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.write_static` - - - :param state: - - - Parameter that specifies one of the following digital states to assign to the pin. - - - :py:data:`~nidigital.WriteStaticPinState.ZERO`: Specifies to drive low. - - :py:data:`~nidigital.WriteStaticPinState.ONE`: Specifies to drive high. - - :py:data:`~nidigital.WriteStaticPinState.X`: Specifies to not drive. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type state: :py:data:`nidigital.WriteStaticPinState` - - -Properties -========== - -active_load_ioh ---------------- - - .. py:attribute:: active_load_ioh - - Specifies the current that the DUT sources to the active load while outputting a voltage above VCOM. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_load_ioh` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.active_load_ioh` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_ACTIVE_LOAD_IOH** - -active_load_iol ---------------- - - .. py:attribute:: active_load_iol - - Specifies the current that the DUT sinks from the active load while outputting a voltage below VCOM. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_load_iol` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.active_load_iol` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_ACTIVE_LOAD_IOL** - -active_load_vcom ----------------- - - .. py:attribute:: active_load_vcom - - Specifies the voltage level at which the active load circuit switches between sourcing current and sinking current. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_load_vcom` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.active_load_vcom` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_ACTIVE_LOAD_VCOM** - -cache ------ - - .. py:attribute:: cache - - Specifies whether to cache the value of properties. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument. This significantly increases execution speed. Caching is always enabled in the driver, regardless of the value of this property. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CACHE** - -channel_count -------------- - - .. py:attribute:: channel_count - - Returns the number of channels that the specific digital pattern instrument driver supports. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CHANNEL_COUNT** - -clock_generator_frequency -------------------------- - - .. py:attribute:: clock_generator_frequency - - Specifies the frequency for the clock generator. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].clock_generator_frequency` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.clock_generator_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CLOCK_GENERATOR_FREQUENCY** - -clock_generator_is_running --------------------------- - - .. py:attribute:: clock_generator_is_running - - Indicates whether the clock generator is running. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].clock_generator_is_running` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.clock_generator_is_running` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | bool | - +-----------------------+----------------+ - | Permissions | read only | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CLOCK_GENERATOR_IS_RUNNING** - -conditional_jump_trigger_terminal_name --------------------------------------- - - .. py:attribute:: conditional_jump_trigger_terminal_name - - Specifies the terminal name from which the exported conditional jump trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the conditional jump trigger instance asserts on the digital pattern instrument. - - - - - .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_terminal_name` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.conditional_jump_trigger_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | str | - +-----------------------+---------------------------+ - | Permissions | read only | - +-----------------------+---------------------------+ - | Repeated Capabilities | conditional_jump_triggers | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CONDITIONAL_JUMP_TRIGGER_TERMINAL_NAME** - -conditional_jump_trigger_type ------------------------------ - - .. py:attribute:: conditional_jump_trigger_type - - Disables the conditional jump trigger or configures it for either hardware triggering or software triggering. The default value is :py:data:`~nidigital.TriggerType.NONE`. - - +------------------------------------------------+------------------------------------------------------------------+ - | Valid Values: | | - +================================================+==================================================================+ - | :py:data:`~nidigital.TriggerType.NONE` | Disables the conditional jump trigger. | - +------------------------------------------------+------------------------------------------------------------------+ - | :py:data:`~nidigital.TriggerType.DIGITAL_EDGE` | Configures the conditional jump trigger for hardware triggering. | - +------------------------------------------------+------------------------------------------------------------------+ - | :py:data:`~nidigital.TriggerType.SOFTWARE` | Configures the conditional jump trigger for software triggering. | - +------------------------------------------------+------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_type` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.conditional_jump_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.TriggerType | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | conditional_jump_triggers | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CONDITIONAL_JUMP_TRIGGER_TYPE** - -cycle_number_history_ram_trigger_cycle_number ---------------------------------------------- - - .. py:attribute:: cycle_number_history_ram_trigger_cycle_number - - Specifies the cycle number on which History RAM starts acquiring pattern information when configured for a cycle number trigger. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_CYCLE_NUMBER_HISTORY_RAM_TRIGGER_CYCLE_NUMBER** - -digital_edge_conditional_jump_trigger_edge ------------------------------------------- - - .. py:attribute:: digital_edge_conditional_jump_trigger_edge - - Configures the active edge of the incoming trigger signal for the conditional jump trigger instance. The default value is :py:data:`~nidigital.DigitalEdge.RISING`. - - +-------------------------------------------+---------------------------------------------------------------+ - | Valid Values: | | - +===========================================+===============================================================+ - | :py:data:`~nidigital.DigitalEdge.RISING` | Specifies the signal transition from low level to high level. | - +-------------------------------------------+---------------------------------------------------------------+ - | :py:data:`~nidigital.DigitalEdge.FALLING` | Specifies the signal transition from high level to low level. | - +-------------------------------------------+---------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_edge` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_edge` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.DigitalEdge | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | conditional_jump_triggers | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_EDGE** - -digital_edge_conditional_jump_trigger_source --------------------------------------------- - - .. py:attribute:: digital_edge_conditional_jump_trigger_source - - Configures the digital trigger source terminal for a conditional jump trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/ConditionalJumpTrigger0. The default value is VI_NULL. - - +----------------------------------------------+ - | Valid Values: | - +==============================================+ - | String identifier to any valid terminal name | - +----------------------------------------------+ - - - .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_source` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_source` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | str | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | conditional_jump_triggers | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_SOURCE** - -digital_edge_rio_trigger_edge ------------------------------ - - .. py:attribute:: digital_edge_rio_trigger_edge - - Configures the active edge of the incoming trigger signal for the RIO trigger instance. The default value is :py:data:`~nidigital.DigitalEdge.RISING`. - - +-------------------------------------------+---------------------------------------------------------------+ - | Valid Values: | | - +===========================================+===============================================================+ - | :py:data:`~nidigital.DigitalEdge.RISING` | Specifies the signal transition from low level to high level. | - +-------------------------------------------+---------------------------------------------------------------+ - | :py:data:`~nidigital.DigitalEdge.FALLING` | Specifies the signal transition from high level to low level. | - +-------------------------------------------+---------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_edge` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_rio_trigger_edge` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.DigitalEdge | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | rio_triggers | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_RIO_TRIGGER_EDGE** - -digital_edge_rio_trigger_source -------------------------------- - - .. py:attribute:: digital_edge_rio_trigger_source - - Configures the digital trigger source terminal for a RIO trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/RIOTrigger0. The default value is VI_NULL. - - +----------------------------------------------+ - | Valid Values: | - +==============================================+ - | String identifier to any valid terminal name | - +----------------------------------------------+ - - - .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_source` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_rio_trigger_source` - - The following table lists the characteristics of this property. - - +-----------------------+--------------+ - | Characteristic | Value | - +=======================+==============+ - | Datatype | str | - +-----------------------+--------------+ - | Permissions | read-write | - +-----------------------+--------------+ - | Repeated Capabilities | rio_triggers | - +-----------------------+--------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_RIO_TRIGGER_SOURCE** - -digital_edge_start_trigger_edge -------------------------------- - - .. py:attribute:: digital_edge_start_trigger_edge - - Specifies the active edge for the Start trigger. This property is used when the :py:attr:`nidigital.Session.start_trigger_type` property is set to Digital Edge. - - +-------------------------------------------+-------------------------------------------------------------------------------+ - | Defined Values: | | - +===========================================+===============================================================================+ - | :py:data:`~nidigital.DigitalEdge.RISING` | Asserts the trigger when the signal transitions from low level to high level. | - +-------------------------------------------+-------------------------------------------------------------------------------+ - | :py:data:`~nidigital.DigitalEdge.FALLING` | Asserts the trigger when the signal transitions from high level to low level. | - +-------------------------------------------+-------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.DigitalEdge | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** - -digital_edge_start_trigger_source ---------------------------------- - - .. py:attribute:: digital_edge_start_trigger_source - - Specifies the source terminal for the Start trigger. This property is used when the :py:attr:`nidigital.Session.start_trigger_type` property is set to Digital Edge. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/StartTrigger. - - +-----------------+--------------------+ - | Defined Values: | | - +=================+====================+ - | PXI_Trig0 | PXI trigger line 0 | - +-----------------+--------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +-----------------+--------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +-----------------+--------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +-----------------+--------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +-----------------+--------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +-----------------+--------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +-----------------+--------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +-----------------+--------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** - -driver_setup ------------- - - .. py:attribute:: driver_setup - - This property returns initial values for NI-Digital Pattern Driver properties as a string. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_DRIVER_SETUP** - -exported_conditional_jump_trigger_output_terminal -------------------------------------------------- - - .. py:attribute:: exported_conditional_jump_trigger_output_terminal - - Specifies the terminal to output the exported signal of the specified instance of the conditional jump trigger. The default value is VI_NULL. - - +---------------+-------------------------+ - | Valid Values: | | - +===============+=========================+ - | VI_NULL ("") | Returns an empty string | - +---------------+-------------------------+ - | PXI_Trig0 | PXI trigger line 0 | - +---------------+-------------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +---------------+-------------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +---------------+-------------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +---------------+-------------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +---------------+-------------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +---------------+-------------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +---------------+-------------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +---------------+-------------------------+ - - - .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].exported_conditional_jump_trigger_output_terminal` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.exported_conditional_jump_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | str | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | conditional_jump_triggers | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_EXPORTED_CONDITIONAL_JUMP_TRIGGER_OUTPUT_TERMINAL** - -exported_pattern_opcode_event_output_terminal ---------------------------------------------- - - .. py:attribute:: exported_pattern_opcode_event_output_terminal - - Specifies the destination terminal for exporting the Pattern Opcode Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - +-----------------+--------------------+ - | Defined Values: | | - +=================+====================+ - | PXI_Trig0 | PXI trigger line 0 | - +-----------------+--------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +-----------------+--------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +-----------------+--------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +-----------------+--------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +-----------------+--------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +-----------------+--------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +-----------------+--------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +-----------------+--------------------+ - - - .. tip:: This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. - - Example: :py:attr:`my_session.pattern_opcode_events[ ... ].exported_pattern_opcode_event_output_terminal` - - To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.exported_pattern_opcode_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | str | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | pattern_opcode_events | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_EXPORTED_PATTERN_OPCODE_EVENT_OUTPUT_TERMINAL** - -exported_rio_event_output_terminal ----------------------------------- - - .. py:attribute:: exported_rio_event_output_terminal - - Specifies the destination terminal for exporting the RIO Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - +-----------------+--------------------+ - | Defined Values: | | - +=================+====================+ - | PXI_Trig0 | PXI trigger line 0 | - +-----------------+--------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +-----------------+--------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +-----------------+--------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +-----------------+--------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +-----------------+--------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +-----------------+--------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +-----------------+--------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +-----------------+--------------------+ - - - .. tip:: This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_events to specify a subset. - - Example: :py:attr:`my_session.rio_events[ ... ].exported_rio_event_output_terminal` - - To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.exported_rio_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | rio_events | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_EXPORTED_RIO_EVENT_OUTPUT_TERMINAL** - -exported_start_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_start_trigger_output_terminal - - Specifies the destination terminal for exporting the Start trigger. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - +----------------------+-----------------------------+ - | Defined Values: | | - +======================+=============================+ - | Do not export signal | The signal is not exported. | - +----------------------+-----------------------------+ - | PXI_Trig0 | PXI trigger line 0 | - +----------------------+-----------------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +----------------------+-----------------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +----------------------+-----------------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +----------------------+-----------------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +----------------------+-----------------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +----------------------+-----------------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +----------------------+-----------------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +----------------------+-----------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** - -frequency_counter_hysteresis_enabled ------------------------------------- - - .. py:attribute:: frequency_counter_hysteresis_enabled - - Specifies whether hysteresis is enabled for the frequency counters of the digital pattern instrument. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_FREQUENCY_COUNTER_HYSTERESIS_ENABLED** - -frequency_counter_measurement_mode ----------------------------------- - - .. py:attribute:: frequency_counter_measurement_mode - - Determines how the frequency counters of the digital pattern instrument make measurements. - - +---------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Valid Values: | | - +=========================================================+==================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nidigital.FrequencyMeasurementMode.BANKED` | Each discrete frequency counter is mapped to specific channels and makes frequency measurements from only those channels. Use banked mode when you need access to the full measure frequency range of the instrument. **Note:** If you request frequency measurements from multiple channels within the same bank, the measurements are made in series for the channels in that bank. | - +---------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.FrequencyMeasurementMode.PARALLEL` | All discrete frequency counters make frequency measurements from all channels in parallel with one another. Use parallel mode to increase the speed of frequency measurements if you do not need access to the full measure frequency range of the instrument; in parallel mode, you can also add :py:attr:`nidigital.Session.frequency_counter_hysteresis_enabled` to reduce measurement noise. | - +---------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------+ - | Characteristic | Value | - +=======================+================================+ - | Datatype | enums.FrequencyMeasurementMode | - +-----------------------+--------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_FREQUENCY_COUNTER_MEASUREMENT_MODE** - -frequency_counter_measurement_time ----------------------------------- - - .. py:attribute:: frequency_counter_measurement_time - - Specifies the measurement time for the frequency counter. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].frequency_counter_measurement_time` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.frequency_counter_measurement_time` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------------+ - | Characteristic | Value | - +=======================+========================================+ - | Datatype | float in seconds or datetime.timedelta | - +-----------------------+----------------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_FREQUENCY_COUNTER_MEASUREMENT_TIME** - -group_capabilities ------------------- - - .. py:attribute:: group_capabilities - - Returns a string that contains a comma-separated list of class-extension groups that the driver implements. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_GROUP_CAPABILITIES** - -halt_on_keep_alive_opcode -------------------------- - - .. py:attribute:: halt_on_keep_alive_opcode - - Specifies whether keep_alive opcodes should behave like halt opcodes. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HALT_ON_KEEP_ALIVE_OPCODE** - -history_ram_buffer_size_per_site --------------------------------- - - .. py:attribute:: history_ram_buffer_size_per_site - - Specifies the size, in samples, of the host memory buffer. The default value is 32000. - - +---------------+ - | Valid Values: | - +===============+ - | 0-INT64_MAX | - +---------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_BUFFER_SIZE_PER_SITE** - -history_ram_cycles_to_acquire ------------------------------ - - .. py:attribute:: history_ram_cycles_to_acquire - - Configures which cycles History RAM acquires after the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. - - +--------------------------------------------------------+-----------------------------------------------------------------------------------+ - | Defined Values: | | - +========================================================+===================================================================================+ - | :py:data:`~nidigital.HistoryRAMCyclesToAcquire.FAILED` | Only acquires cycles that fail a compare after the triggering conditions are met. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------+ - | :py:data:`~nidigital.HistoryRAMCyclesToAcquire.ALL` | Acquires all cycles after the triggering conditions are met. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.HistoryRAMCyclesToAcquire | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_CYCLES_TO_ACQUIRE** - -history_ram_max_samples_to_acquire_per_site -------------------------------------------- - - .. py:attribute:: history_ram_max_samples_to_acquire_per_site - - Specifies the maximum number of History RAM samples to acquire per site. If the property is set to -1, it will acquire until the History RAM buffer is full. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_MAX_SAMPLES_TO_ACQUIRE_PER_SITE** - -history_ram_number_of_samples_is_finite ---------------------------------------- - - .. py:attribute:: history_ram_number_of_samples_is_finite - - Specifies whether the instrument acquires a finite number of History Ram samples or acquires continuously. The maximum number of samples that will be acquired when this property is set to True is determined by the instrument History RAM depth specification and the History RAM Max Samples to Acquire Per Site property. The default value is True. - - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Valid Values: | | - +===============+======================================================================================================================================================+ - | True | Specifies that History RAM results will not stream into the host buffer until a History RAM fetch API is called. | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ - | False | Specifies that History RAM results will automatically start streaming into a host buffer after a pattern is burst and the History RAM has triggered. | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_NUMBER_OF_SAMPLES_IS_FINITE** - -history_ram_pretrigger_samples ------------------------------- - - .. py:attribute:: history_ram_pretrigger_samples - - Specifies the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_PRETRIGGER_SAMPLES** - -history_ram_trigger_type ------------------------- - - .. py:attribute:: history_ram_trigger_type - - Specifies the type of trigger condition on which History RAM starts acquiring pattern information. - - +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +===========================================================+=====================================================================================================================================+ - | :py:data:`~nidigital.HistoryRAMTriggerType.FIRST_FAILURE` | Starts acquiring pattern information in History RAM on the first failed cycle in a pattern burst. | - +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.HistoryRAMTriggerType.CYCLE_NUMBER` | Starts acquiring pattern information in History RAM starting from a specified cycle number. | - +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.HistoryRAMTriggerType.PATTERN_LABEL` | Starts acquiring pattern information in History RAM starting from a specified pattern label, augmented by vector and cycle offsets. | - +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.HistoryRAMTriggerType | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_TRIGGER_TYPE** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - Returns a string that contains the firmware revision information for the digital pattern instrument. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.instrument_firmware_revision` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - Returns a string ("National Instruments") that contains the name of the manufacturer of the digital pattern instrument. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - Returns a string that contains the model number or name of the digital pattern instrument. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_INSTRUMENT_MODEL** - -interchange_check ------------------ - - .. py:attribute:: interchange_check - - This property is not supported. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_INTERCHANGE_CHECK** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Returns a string that contains the resource descriptor that the NI-Digital Pattern Driver uses to identify the digital pattern instrument. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_IO_RESOURCE_DESCRIPTOR** - -is_keep_alive_active --------------------- - - .. py:attribute:: is_keep_alive_active - - Returns True if the digital pattern instrument is driving the keep alive pattern. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_IS_KEEP_ALIVE_ACTIVE** - -logical_name ------------- - - .. py:attribute:: logical_name - - Returns a string containing the logical name that you specified when opening the current IVI session. This property is not supported. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_LOGICAL_NAME** - -mask_compare ------------- - - .. py:attribute:: mask_compare - - Specifies whether the pattern comparisons are masked or not. When set to True for a specified pin, failures on that pin will be masked. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].mask_compare` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.mask_compare` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | bool | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_MASK_COMPARE** - -pattern_label_history_ram_trigger_cycle_offset ----------------------------------------------- - - .. py:attribute:: pattern_label_history_ram_trigger_cycle_offset - - Specifies the number of cycles that follow the specified pattern label and vector offset, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PATTERN_LABEL_HISTORY_RAM_TRIGGER_CYCLE_OFFSET** - -pattern_label_history_ram_trigger_label ---------------------------------------- - - .. py:attribute:: pattern_label_history_ram_trigger_label - - Specifies the pattern label, augmented by the vector and cycle offset, to determine the point where History RAM will start acquiring pattern information when configured for a pattern label trigger. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PATTERN_LABEL_HISTORY_RAM_TRIGGER_LABEL** - -pattern_label_history_ram_trigger_vector_offset ------------------------------------------------ - - .. py:attribute:: pattern_label_history_ram_trigger_vector_offset - - Specifies the number of vectors that follow the specified pattern label, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PATTERN_LABEL_HISTORY_RAM_TRIGGER_VECTOR_OFFSET** - -pattern_opcode_event_terminal_name ----------------------------------- - - .. py:attribute:: pattern_opcode_event_terminal_name - - Specifies the terminal name for the output trigger signal of the specified instance of a Pattern Opcode Event. You can use this terminal name as an input signal source for another trigger. - - - - - .. tip:: This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. - - Example: :py:attr:`my_session.pattern_opcode_events[ ... ].pattern_opcode_event_terminal_name` - - To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.pattern_opcode_event_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | str | - +-----------------------+-----------------------+ - | Permissions | read only | - +-----------------------+-----------------------+ - | Repeated Capabilities | pattern_opcode_events | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PATTERN_OPCODE_EVENT_TERMINAL_NAME** - -ppmu_allow_extended_voltage_range ---------------------------------- - - .. py:attribute:: ppmu_allow_extended_voltage_range - - Enables the instrument to operate in additional voltage ranges where instrument specifications may differ from standard ranges. When set to True, this property enables extended voltage range operation. Review specification deviations for application suitability before using this property. NI recommends setting this property to False when not using the extended voltage range to avoid unintentional use of this range. The extended voltage range is supported only for PPMU, with the output method set to DC Voltage. A voltage glitch may occur when you change the PPMU output voltage from a standard range to the extended voltage range, or vice-versa, while the PPMU is sourcing. NI recommends temporarily changing the :py:attr:`nidigital.Session.selected_function` property to Off before sourcing a voltage level that requires a range change. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_allow_extended_voltage_range` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_allow_extended_voltage_range` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | bool | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_ALLOW_EXTENDED_VOLTAGE_RANGE** - -ppmu_aperture_time ------------------- - - .. py:attribute:: ppmu_aperture_time - - Specifies the measurement aperture time for the PPMU. The :py:attr:`nidigital.Session.ppmu_aperture_time_units` property sets the units of the PPMU aperture time. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_aperture_time` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_APERTURE_TIME** - -ppmu_aperture_time_units ------------------------- - - .. py:attribute:: ppmu_aperture_time_units - - Specifies the units of the measurement aperture time for the PPMU. - - +-----------------------------------------------------+-----------------------------------------+ - | Defined Values: | | - +=====================================================+=========================================+ - | :py:data:`~nidigital.PPMUApertureTimeUnits.SECONDS` | Specifies the aperture time in seconds. | - +-----------------------------------------------------+-----------------------------------------+ - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time_units` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_aperture_time_units` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.PPMUApertureTimeUnits | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_APERTURE_TIME_UNITS** - -ppmu_current_level ------------------- - - .. py:attribute:: ppmu_current_level - - Specifies the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. Specify valid values for the current level using the :py:meth:`nidigital.Session.PPMU_ConfigureCurrentLevelRange` method. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_level` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LEVEL** - -ppmu_current_level_range ------------------------- - - .. py:attribute:: ppmu_current_level_range - - Specifies the range of valid values for the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level_range` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_level_range` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LEVEL_RANGE** - -ppmu_current_limit ------------------- - - .. py:attribute:: ppmu_current_limit - - Specifies the current limit, in amps, that the output cannot exceed while the PPMU forces voltage to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. The PXIe-6570/6571 does not support the :py:attr:`nidigital.Session.ppmu_current_limit` property and only allows configuration of the :py:attr:`nidigital.Session.ppmu_current_limit_range` property. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT** - -ppmu_current_limit_behavior ---------------------------- - - .. py:attribute:: ppmu_current_limit_behavior - - Specifies how the output should behave when the current limit is reached. - - +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +=========================================================+=========================================================================================================================================+ - | :py:data:`~nidigital.PPMUCurrentLimitBehavior.REGULATE` | Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. | - +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_behavior` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------+ - | Characteristic | Value | - +=======================+================================+ - | Datatype | enums.PPMUCurrentLimitBehavior | - +-----------------------+--------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+--------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT_BEHAVIOR** - -ppmu_current_limit_range ------------------------- - - .. py:attribute:: ppmu_current_limit_range - - Specifies the valid range, in amps, to which the current limit can be set while the PPMU forces voltage to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_range` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit_range` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT_RANGE** - -ppmu_current_limit_supported ----------------------------- - - .. py:attribute:: ppmu_current_limit_supported - - Returns whether the device supports configuration of a current limit when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_supported` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit_supported` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | bool | - +-----------------------+----------------+ - | Permissions | read only | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT_SUPPORTED** - -ppmu_output_function --------------------- - - .. py:attribute:: ppmu_output_function - - Specifies whether the PPMU forces voltage or current to the DUT. - - +--------------------------------------------------+--------------------------------------------+ - | Defined Values: | | - +==================================================+============================================+ - | :py:data:`~nidigital.PPMUOutputFunction.VOLTAGE` | Specifies the output method to DC Voltage. | - +--------------------------------------------------+--------------------------------------------+ - | :py:data:`~nidigital.PPMUOutputFunction.CURRENT` | Specifies the output method to DC Current. | - +--------------------------------------------------+--------------------------------------------+ - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_output_function` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_output_function` - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.PPMUOutputFunction | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_OUTPUT_FUNCTION** - -ppmu_voltage_level ------------------- - - .. py:attribute:: ppmu_voltage_level - - Specifies the voltage level, in volts, that the PPMU forces to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_level` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_voltage_level` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_VOLTAGE_LEVEL** - -ppmu_voltage_limit_high ------------------------ - - .. py:attribute:: ppmu_voltage_limit_high - - Specifies the maximum voltage limit, or high clamp voltage (V :sub:`CH` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_high` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_voltage_limit_high` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_VOLTAGE_LIMIT_HIGH** - -ppmu_voltage_limit_low ----------------------- - - .. py:attribute:: ppmu_voltage_limit_low - - Specifies the minimum voltage limit, or low clamp voltage (V :sub:`CL` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_low` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_voltage_limit_low` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_PPMU_VOLTAGE_LIMIT_LOW** - -query_instrument_status ------------------------ - - .. py:attribute:: query_instrument_status - - Specifies whether the NI-Digital Pattern Driver queries the digital pattern instrument status after each operation. The instrument status is always queried, regardless of the property setting. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_QUERY_INSTRUMENT_STATUS** - -range_check ------------ - - .. py:attribute:: range_check - - Checks the range and validates parameter and property values you pass to NI-Digital Pattern Driver methods. Ranges are always checked, regardless of the property setting. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_RANGE_CHECK** - -record_coercions ----------------- - - .. py:attribute:: record_coercions - - Specifies whether the IVI engine keeps a list of the value coercions it makes for integer and real type properties. Enabling record value coercions is not supported. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_RECORD_COERCIONS** - -rio_event_terminal_name ------------------------ - - .. py:attribute:: rio_event_terminal_name - - Specifies the terminal name for the output signal of the specified instance of a RIO Event. You can use this terminal name as an input signal source for another trigger. - - - - - .. tip:: This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_events to specify a subset. - - Example: :py:attr:`my_session.rio_events[ ... ].rio_event_terminal_name` - - To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.rio_event_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read only | - +-----------------------+------------+ - | Repeated Capabilities | rio_events | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_RIO_EVENT_TERMINAL_NAME** - -rio_trigger_terminal_name -------------------------- - - .. py:attribute:: rio_trigger_terminal_name - - Specifies the terminal name from which the exported RIO trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the RIO trigger instance asserts on the digital pattern instrument. - - - - - .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_terminal_name` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.rio_trigger_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+--------------+ - | Characteristic | Value | - +=======================+==============+ - | Datatype | str | - +-----------------------+--------------+ - | Permissions | read only | - +-----------------------+--------------+ - | Repeated Capabilities | rio_triggers | - +-----------------------+--------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_RIO_TRIGGER_TERMINAL_NAME** - -rio_trigger_type ----------------- - - .. py:attribute:: rio_trigger_type - - Disables the rio trigger or configures it for hardware triggering. The default value is :py:data:`~nidigital.TriggerType.NONE`. - - +------------------------------------------------+------------------------------------------------------------------+ - | Valid Values: | | - +================================================+==================================================================+ - | :py:data:`~nidigital.TriggerType.NONE` | Disables the conditional jump trigger. | - +------------------------------------------------+------------------------------------------------------------------+ - | :py:data:`~nidigital.TriggerType.DIGITAL_EDGE` | Configures the conditional jump trigger for hardware triggering. | - +------------------------------------------------+------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_type` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.rio_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | rio_triggers | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_RIO_TRIGGER_TYPE** - -selected_function ------------------ - - .. py:attribute:: selected_function - - .. caution:: In the Disconnect state, some I/O protection and sensing circuitry remains exposed. Do not subject the instrument to voltage beyond its operating range. - - Specifies whether digital pattern instrument channels are controlled by the pattern sequencer or PPMU, disconnected, or off. - - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +===================================================+==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nidigital.SelectedFunction.DIGITAL` | The pin is connected to the driver, comparator, and active load methods. The PPMU is not sourcing, but can make voltage measurements. The state of the digital pin driver when you change the :py:attr:`nidigital.Session.selected_function` to Digital is determined by the most recent call to the :py:meth:`nidigital.Session.write_static` method or the last vector of the most recently executed pattern burst, whichever happened last. Use the :py:meth:`nidigital.Session.write_static` method to control the state of the digital pin driver through software. Use the :py:meth:`nidigital.Session.burst_pattern` method to control the state of the digital pin driver through a pattern. Set the **selectDigitalFunction** parameter of the :py:meth:`nidigital.Session.burst_pattern` method to True to automatically switch the :py:attr:`nidigital.Session.selected_function` of the pins in the pattern burst to :py:data:`~nidigital.SelectedFunction.DIGITAL`. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.SelectedFunction.PPMU` | The pin is connected to the PPMU. The driver, comparator, and active load are off while this method is selected. Call the :py:meth:`nidigital.Session.ppmu_source` method to source a voltage or current. The :py:meth:`nidigital.Session.ppmu_source` method automatically switches the :py:attr:`nidigital.Session.selected_function` to the PPMU state and starts sourcing from the PPMU. Changing the :py:attr:`nidigital.Session.selected_function` to :py:data:`~nidigital.SelectedFunction.DISCONNECT`, :py:data:`~nidigital.SelectedFunction.OFF`, or :py:data:`~nidigital.SelectedFunction.DIGITAL` causes the PPMU to stop sourcing. If you set the :py:attr:`nidigital.Session.selected_function` property to PPMU, the PPMU is initially not sourcing. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.SelectedFunction.OFF` | The pin is electrically connected, and the PPMU and digital pin driver are off while this method is selected. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.SelectedFunction.DISCONNECT` | The pin is electrically disconnected from instrument methods. Selecting this method causes the PPMU to stop sourcing prior to disconnecting the pin. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: You can make PPMU voltage measurements using the :py:meth:`nidigital.Session.ppmu_measure` method from within any :py:attr:`nidigital.Session.selected_function`. - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].selected_function` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.selected_function` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.SelectedFunction | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SELECTED_FUNCTION** - -sequencer_flag_terminal_name ----------------------------- - - .. py:attribute:: sequencer_flag_terminal_name - - Specifies the terminal name for the output trigger signal of the Sequencer Flags trigger. You can use this terminal name as an input signal source for another trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SEQUENCER_FLAG_TERMINAL_NAME** - -serial_number -------------- - - .. py:attribute:: serial_number - - Returns the serial number of the device. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].serial_number` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.serial_number` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SERIAL_NUMBER** - -simulate --------- - - .. py:attribute:: simulate - - Simulates I/O operations. After you open a session, you cannot change the simulation state. Use the :py:meth:`nidigital.Session.__init__` method to enable simulation. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SIMULATE** - -specific_driver_class_spec_major_version ----------------------------------------- - - .. py:attribute:: specific_driver_class_spec_major_version - - Returns the major version number of the class specification with which NI-Digital is compliant. This property is not supported. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION** - -specific_driver_class_spec_minor_version ----------------------------------------- - - .. py:attribute:: specific_driver_class_spec_minor_version - - Returns the minor version number of the class specification with which NI-Digital is compliant. This property is not supported. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - Returns a string that contains a brief description of the NI-Digital Pattern driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -specific_driver_prefix ----------------------- - - .. py:attribute:: specific_driver_prefix - - Returns a string that contains the prefix for the NI-Digital Pattern driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_PREFIX** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - Returns a string that contains additional version information about the NI-Digital Pattern Driver. For example, the driver can return Driver: NI-Digital 16.0 as the value of this property. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - Returns a string ("National Instruments") that contains the name of the vendor that supplies the NI-Digital Pattern Driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_VENDOR** - -start_label ------------ - - .. py:attribute:: start_label - - Specifies the pattern name or exported pattern label from which to start bursting the pattern. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_START_LABEL** - -start_trigger_terminal_name ---------------------------- - - .. py:attribute:: start_trigger_terminal_name - - Specifies the terminal name for the output trigger signal of the Start trigger. You can use this terminal name as an input signal source for another trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_START_TRIGGER_TERMINAL_NAME** - -start_trigger_type ------------------- - - .. py:attribute:: start_trigger_type - - Specifies the Start trigger type. The digital pattern instrument waits for this trigger after you call the :py:meth:`nidigital.Session.init` method or the :py:meth:`nidigital.Session.burst_pattern` method, and does not burst a pattern until this trigger is received. - - +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +================================================+=====================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nidigital.TriggerType.NONE` | Disables the Start trigger. Pattern bursting starts immediately after you call the :py:meth:`nidigital.Session.init` method or the :py:meth:`nidigital.Session.burst_pattern` method. | - +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.TriggerType.DIGITAL_EDGE` | Pattern bursting does not start until the digital pattern instrument detects a digital edge. | - +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.TriggerType.SOFTWARE` | Pattern bursting does not start until the digital pattern instrument receives a software Start trigger. Create a software Start trigger by calling the :py:meth:`nidigital.Session.send_software_edge_trigger` method and selecting start trigger in the **trigger** parameter.Related information: SendSoftwareEdgeTrigger method. | - +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_START_TRIGGER_TYPE** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - Returns a comma delimited string that contains the supported digital pattern instrument models for the specific driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -tdr_endpoint_termination ------------------------- - - .. py:attribute:: tdr_endpoint_termination - - Specifies whether TDR Channels are connected to an open circuit or a short to ground. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.TDREndpointTermination | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_TDR_ENDPOINT_TERMINATION** - -tdr_offset ----------- - - .. py:attribute:: tdr_offset - - Specifies the TDR Offset. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].tdr_offset` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.tdr_offset` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_TDR_OFFSET** - -termination_mode ----------------- - - .. py:attribute:: termination_mode - - Specifies the behavior of the pin during non-drive cycles. - - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +===================================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nidigital.TerminationMode.ACTIVE_LOAD` | Specifies that, for non-drive pin states (L, H, X, V, M, E), the active load is connected and the instrument sources or sinks a defined amount of current to load the DUT. The amount of current sourced by the instrument and therefore sunk by the DUT is specified by IOL. The amount of current sunk by the instrument and therefore sourced by the DUT is specified by IOH. The voltage at which the instrument changes between sourcing and sinking is specified by VCOM. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.TerminationMode.VTERM` | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver terminates the pin to the configured VTERM voltage through a 50 Ω impedance. VTERM is adjustable to allow for the pin to terminate at a set level. This is useful for instruments that might operate incorrectly if an instrument pin is unterminated and is allowed to float to any voltage level within the instrument voltage range. To address this issue, enable VTERM by configuring the VTERM pin level to the desired voltage and selecting the VTERM termination mode. Setting VTERM to 0 V and selecting the VTERM termination mode has the effect of connecting a 50 Ω termination to ground, which provides an effective 50 Ω impedance for the pin. This can be useful for improving signal integrity of certain DUTs by reducing reflections while the DUT drives the pin. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidigital.TerminationMode.HIGH_Z` | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver is put in a high-impedance state and the active load is disabled. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].termination_mode` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.termination_mode` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.TerminationMode | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_TERMINATION_MODE** - -timing_absolute_delay ---------------------- - - .. py:attribute:: timing_absolute_delay - - Specifies a timing delay, measured in seconds, and applies the delay to the digital pattern instrument in addition to TDR and calibration adjustments. If the :py:attr:`nidigital.Session.timing_absolute_delay_enabled` property is set to True, this value is the intermodule skew measured by NI-TClk. You can modify this value to override the timing delay and align the I/O timing of this instrument with another instrument that shares the same reference clock. If the :py:attr:`nidigital.Session.timing_absolute_delay_enabled` property is False, this property will return 0.0. Changing the :py:attr:`nidigital.Session.timing_absolute_delay_enabled` property from False to True will set the :py:attr:`nidigital.Session.timing_absolute_delay` value back to your previously set value. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].timing_absolute_delay` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.timing_absolute_delay` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_TIMING_ABSOLUTE_DELAY** - -timing_absolute_delay_enabled ------------------------------ - - .. py:attribute:: timing_absolute_delay_enabled - - Specifies whether the :py:attr:`nidigital.Session.timing_absolute_delay` property should be applied to adjust the digital pattern instrument timing reference relative to other instruments in the system. Do not use this feature with digital pattern instruments in a Semiconductor Test System (STS). Timing absolute delay conflicts with the adjustment performed during STS timing calibration. When set to True, the digital pattern instrument automatically adjusts the timing absolute delay to correct the instrument timing reference relative to other instruments in the system for better timing alignment among synchronized instruments. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_TIMING_ABSOLUTE_DELAY_ENABLED** - -vih ---- - - .. py:attribute:: vih - - Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic high (1). - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vih` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vih` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_VIH** - -vil ---- - - .. py:attribute:: vil - - Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic low (0). - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vil` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vil` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_VIL** - -voh ---- - - .. py:attribute:: voh - - Specifies the output voltage from the DUT above which the comparator on the digital pattern test instrument interprets a logic high (H). - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voh` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.voh` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_VOH** - -vol ---- - - .. py:attribute:: vol - - Specifies the output voltage from the DUT below which the comparator on the digital pattern test instrument interprets a logic low (L). - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vol` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vol` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_VOL** - -vterm ------ - - .. py:attribute:: vterm - - Specifies the termination voltage the digital pattern instrument applies during non-drive cycles when the termination mode is set to V :sub:`term`. The instrument applies the termination voltage through a 50 Ω parallel termination resistance. - - - - - .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vterm` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vterm` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | float | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels, pins | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIDIGITAL_ATTR_VTERM** - - -NI-TClk Support -=============== - - .. py:attribute:: tclk - - This is used to get and set NI-TClk attributes on the session. - - .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. - - -.. contents:: Session diff --git a/docs/nidigital/conf.py b/docs/nidigital/conf.py deleted file mode 100644 index 67fade2849..0000000000 --- a/docs/nidigital/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-Digital Pattern Driver Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-Digital Pattern Driver Python API' -copyright = '2019-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIDigitalPatternDriverPythonAPI.tex', 'NI-Digital Pattern Driver Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nidigitalpatterndriverpythonapi', 'NI-Digital Pattern Driver Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIDigitalPatternDriverPythonAPI', 'NI-Digital Pattern Driver Python API Documentation', - author, 'NIDigitalPatternDriverPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nidigital/enums.rst b/docs/nidigital/enums.rst deleted file mode 100644 index ca48b9e5d9..0000000000 --- a/docs/nidigital/enums.rst +++ /dev/null @@ -1,799 +0,0 @@ -Enums -===== - -Enums used in NI-Digital Pattern Driver - -.. py:currentmodule:: nidigital - - -BitOrder --------- - -.. py:class:: BitOrder - - .. py:attribute:: BitOrder.MSB - - - - The most significant bit is first. The first bit is in the 2^n place, where n is the number of bits. - - - - - - .. py:attribute:: BitOrder.LSB - - - - The least significant bit is first. The first bit is in the 2^0 place. - - - - - -DigitalEdge ------------ - -.. py:class:: DigitalEdge - - .. py:attribute:: DigitalEdge.RISING - - - - Asserts the trigger when the signal transitions from low level to high level. - - - - - - .. py:attribute:: DigitalEdge.FALLING - - - - Asserts the trigger when the signal transitions from high level to low level. - - - - - -DriveFormat ------------ - -.. py:class:: DriveFormat - - .. py:attribute:: DriveFormat.NR - - - - Drive format remains at logic level after each bit. - - - - - - .. py:attribute:: DriveFormat.RL - - - - Drive format returns to a logic level low after each bit. - - - - - - .. py:attribute:: DriveFormat.RH - - - - Drive format returns to a logic level high after each bit. - - - - - - .. py:attribute:: DriveFormat.SBC - - - - Drive format returns to the complement logic level of the bit after each bit. - - - - - -FrequencyMeasurementMode ------------------------- - -.. py:class:: FrequencyMeasurementMode - - .. py:attribute:: FrequencyMeasurementMode.BANKED - - - - Frequency measurements are made serially for groups of channels associated with a single frequency counter for each group. - - Maximum frequency measured: 200 MHz. - - - - - - .. py:attribute:: FrequencyMeasurementMode.PARALLEL - - - - Frequency measurements are made by multiple frequency counters in parallel. - - Maximum frequency measured: 100 MHz. - - - - - -HistoryRAMCyclesToAcquire -------------------------- - -.. py:class:: HistoryRAMCyclesToAcquire - - .. py:attribute:: HistoryRAMCyclesToAcquire.FAILED - - - - Acquires failed cycles. - - - - - - .. py:attribute:: HistoryRAMCyclesToAcquire.ALL - - - - Acquires all cycles. - - - - - -HistoryRAMTriggerType ---------------------- - -.. py:class:: HistoryRAMTriggerType - - .. py:attribute:: HistoryRAMTriggerType.FIRST_FAILURE - - - - First Failure History RAM trigger - - - - - - .. py:attribute:: HistoryRAMTriggerType.CYCLE_NUMBER - - - - Cycle Number History RAM trigger. - - - - - - .. py:attribute:: HistoryRAMTriggerType.PATTERN_LABEL - - - - Pattern Label History RAM trigger - - - - - -PPMUApertureTimeUnits ---------------------- - -.. py:class:: PPMUApertureTimeUnits - - .. py:attribute:: PPMUApertureTimeUnits.SECONDS - - - - Unit in seconds. - - - - - -PPMUCurrentLimitBehavior ------------------------- - -.. py:class:: PPMUCurrentLimitBehavior - - .. py:attribute:: PPMUCurrentLimitBehavior.REGULATE - - - - Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. - - - - - -PPMUMeasurementType -------------------- - -.. py:class:: PPMUMeasurementType - - .. py:attribute:: PPMUMeasurementType.CURRENT - - - - The PPMU measures current. - - - - - - .. py:attribute:: PPMUMeasurementType.VOLTAGE - - - - The PPMU measures voltage. - - - - - -PPMUOutputFunction ------------------- - -.. py:class:: PPMUOutputFunction - - .. py:attribute:: PPMUOutputFunction.VOLTAGE - - - - The PPMU forces voltage to the DUT. - - - - - - .. py:attribute:: PPMUOutputFunction.CURRENT - - - - The PPMU forces current to the DUT. - - - - - -PinState --------- - -.. py:class:: PinState - - .. py:attribute:: PinState.ZERO - - - - A digital state of 0. - - - - - - .. py:attribute:: PinState.ONE - - - - A digital state of 1. - - - - - - .. py:attribute:: PinState.L - - - - A digital state of L (low). - - - - - - .. py:attribute:: PinState.H - - - - A digital state of H (high). - - - - - - .. py:attribute:: PinState.X - - - - A digital state of X (non-drive state). - - - - - - .. py:attribute:: PinState.M - - - - A digital state of M (midband). - - - - - - .. py:attribute:: PinState.V - - - - A digital state of V (compare high or low, not midband; store results from capture functionality if configured). - - - - - - .. py:attribute:: PinState.D - - - - A digital state of D (drive data from source functionality if configured). - - - - - - .. py:attribute:: PinState.E - - - - A digital state of E (compare data from source functionality if configured). - - - - - - .. py:attribute:: PinState.NOT_A_PIN_STATE - - - - Not a pin state is used for non-existent DUT cycles. - - - - - - .. py:attribute:: PinState.PIN_STATE_NOT_ACQUIRED - - - - Pin state could not be acquired because none of the pins mapped to the instrument in a multi-instrument session had any failures. - - - - - -SelectedFunction ----------------- - -.. py:class:: SelectedFunction - - .. py:attribute:: SelectedFunction.DIGITAL - - - - The pattern sequencer controls the specified pin(s). If a pattern is currently bursting, the pin immediately switches to bursting the pattern. This option disconnects the PPMU. - - - - - - .. py:attribute:: SelectedFunction.PPMU - - - - The PPMU controls the specified pin(s) and connects the PPMU. The pin driver is in a non-drive state, and the active load is disabled. The PPMU does not start sourcing or measuring until Source or Measure(PpmuMeasurementType) is called. - - - - - - .. py:attribute:: SelectedFunction.OFF - - - - Puts the digital driver in a non-drive state, disables the active load, disconnects the PPMU, and closes the I/O switch connecting the instrument channel. - - - - - - .. py:attribute:: SelectedFunction.DISCONNECT - - - - The I/O switch connecting the instrument channel is open to the I/O connector. If the PPMU is sourcing, it is stopped prior to opening the I/O switch. - - - - - - .. py:attribute:: SelectedFunction.RIO - - - - Yields control of the specified pin(s) to LabVIEW FPGA. - - - - - -SequencerFlag -------------- - -.. py:class:: SequencerFlag - - .. py:attribute:: SequencerFlag.FLAG0 - - - - .. py:attribute:: SequencerFlag.FLAG1 - - - - .. py:attribute:: SequencerFlag.FLAG2 - - - - .. py:attribute:: SequencerFlag.FLAG3 - - - -SequencerRegister ------------------ - -.. py:class:: SequencerRegister - - .. py:attribute:: SequencerRegister.REGISTER0 - - - - .. py:attribute:: SequencerRegister.REGISTER1 - - - - .. py:attribute:: SequencerRegister.REGISTER2 - - - - .. py:attribute:: SequencerRegister.REGISTER3 - - - - .. py:attribute:: SequencerRegister.REGISTER4 - - - - .. py:attribute:: SequencerRegister.REGISTER5 - - - - .. py:attribute:: SequencerRegister.REGISTER6 - - - - .. py:attribute:: SequencerRegister.REGISTER7 - - - - .. py:attribute:: SequencerRegister.REGISTER8 - - - - .. py:attribute:: SequencerRegister.REGISTER9 - - - - .. py:attribute:: SequencerRegister.REGISTER10 - - - - .. py:attribute:: SequencerRegister.REGISTER11 - - - - .. py:attribute:: SequencerRegister.REGISTER12 - - - - .. py:attribute:: SequencerRegister.REGISTER13 - - - - .. py:attribute:: SequencerRegister.REGISTER14 - - - - .. py:attribute:: SequencerRegister.REGISTER15 - - - -SoftwareTrigger ---------------- - -.. py:class:: SoftwareTrigger - - .. py:attribute:: SoftwareTrigger.START - - - - Overrides the start trigger. - - - - - - .. py:attribute:: SoftwareTrigger.CONDITIONAL_JUMP - - - - Specifies to route a conditional jump trigger. - - - - - -SourceDataMapping ------------------ - -.. py:class:: SourceDataMapping - - .. py:attribute:: SourceDataMapping.BROADCAST - - - - Broadcasts the waveform you specify to all sites. - - - - - - .. py:attribute:: SourceDataMapping.SITE_UNIQUE - - - - Sources unique waveform data to each site. - - - - - -TDREndpointTermination ----------------------- - -.. py:class:: TDREndpointTermination - - .. py:attribute:: TDREndpointTermination.OPEN - - - - TDR channels are connected to an open circuit. - - - - - - .. py:attribute:: TDREndpointTermination.SHORT_TO_GROUND - - - - TDR channels are connected to a short to ground. - - - - - -TerminationMode ---------------- - -.. py:class:: TerminationMode - - .. py:attribute:: TerminationMode.ACTIVE_LOAD - - - - The active load provides a constant current to a commutating voltage (Vcom). - - - - - - .. py:attribute:: TerminationMode.VTERM - - - - The pin driver drives Vterm. - - - - - - .. py:attribute:: TerminationMode.HIGH_Z - - - - The pin driver is in a non-drive state (in a high-impedance state) and the active load is disabled. - - - - - -TimeSetEdgeType ---------------- - -.. py:class:: TimeSetEdgeType - - .. py:attribute:: TimeSetEdgeType.DRIVE_ON - - - - Specifies the drive on edge of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.DRIVE_DATA - - - - Specifies the drive data edge of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.DRIVE_RETURN - - - - Specifies the drive return edge of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.DRIVE_OFF - - - - Specifies the drive off edge of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.COMPARE_STROBE - - - - Specifies the compare strobe of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.DRIVE_DATA2 - - - - Specifies the drive data 2 edge of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.DRIVE_RETURN2 - - - - Specifies the drive return 2 edge of the time set. - - - - - - .. py:attribute:: TimeSetEdgeType.COMPARE_STROBE2 - - - - Specifies the compare strobe 2 of the time set. - - - - - -TriggerType ------------ - -.. py:class:: TriggerType - - .. py:attribute:: TriggerType.NONE - - - - Disables the start trigger. - - - - - - .. py:attribute:: TriggerType.DIGITAL_EDGE - - - - Digital edge trigger. - - - - - - .. py:attribute:: TriggerType.SOFTWARE - - - - Software start trigger. - - - - - -WriteStaticPinState -------------------- - -.. py:class:: WriteStaticPinState - - .. py:attribute:: WriteStaticPinState.ZERO - - - - Specifies to drive low. - - - - - - .. py:attribute:: WriteStaticPinState.ONE - - - - Specifies to drive high. - - - - - - .. py:attribute:: WriteStaticPinState.X - - - - Specifies to not drive. - - - - - - - diff --git a/docs/nidigital/errors.rst b/docs/nidigital/errors.rst deleted file mode 100644 index a22b697695..0000000000 --- a/docs/nidigital/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nidigital.errors - - .. exception:: Error - - Base exception type that all NI-Digital Pattern Driver exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nidigital.errors - - .. exception:: DriverError - - An error originating from the NI-Digital Pattern Driver driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nidigital.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nidigital.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nidigital.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-Digital Pattern Driver driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nidigital.errors - - .. exception:: DriverTooNewError - - An error due to the NI-Digital Pattern Driver driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nidigital.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: nidigital.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: nidigital.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: nidigital.errors - - .. exception:: DriverWarning - - A warning originating from the NI-Digital Pattern Driver driver - - - diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst deleted file mode 100644 index 81212fa55a..0000000000 --- a/docs/nidigital/examples.rst +++ /dev/null @@ -1,50 +0,0 @@ -Examples -======== - -`You can download all nidigital examples for latest version here `_ - -nidigital_burst_with_conditional_trigger.py -------------------------------------------- - -.. literalinclude:: ../../src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidigital_burst_with_conditional_trigger.py) `_ - -nidigital_burst_with_start_trigger.py -------------------------------------- - -.. literalinclude:: ../../src/nidigital/examples/burst_with_start_trigger/nidigital_burst_with_start_trigger.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidigital_burst_with_start_trigger.py) `_ - -nidigital_configure_time_set_and_voltage_levels.py --------------------------------------------------- - -.. literalinclude:: ../../src/nidigital/examples/configure_time_set_and_voltage_levels/nidigital_configure_time_set_and_voltage_levels.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidigital_configure_time_set_and_voltage_levels.py) `_ - -nidigital_load_sheets_and_burst.py ----------------------------------- - -.. literalinclude:: ../../src/nidigital/examples/load_sheets_and_burst/nidigital_load_sheets_and_burst.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidigital_load_sheets_and_burst.py) `_ - -nidigital_ppmu_source_and_measure.py ------------------------------------- - -.. literalinclude:: ../../src/nidigital/examples/ppmu_source_and_measure/nidigital_ppmu_source_and_measure.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidigital_ppmu_source_and_measure.py) `_ - diff --git a/docs/nidigital/grpc_session_options.rst b/docs/nidigital/grpc_session_options.rst deleted file mode 100644 index 41e1e3de53..0000000000 --- a/docs/nidigital/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-Digital Pattern Driver over gRPC - -.. py:currentmodule:: nidigital - - - -Creating a gRPC channel ------------------------ - -Using NI-Digital Pattern Driver over gRPC requires the ``grpc`` extra:: - - $ python -m pip install nidigital[grpc] - -Every NI-Digital Pattern Driver gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`nidigital.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-Digital Pattern Driver runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import nidigital - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = nidigital.GrpcSessionOptions(channel, '') - with nidigital.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`nidigital.SessionInitializationBehavior` diff --git a/docs/nidigital/index.rst b/docs/nidigital/index.rst deleted file mode 100644 index e743cca9c5..0000000000 --- a/docs/nidigital/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-Digital Pattern Driver Python API Documentation -================================================== - -.. include:: about_nidigital.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nidigital - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nidigital/installation.inc b/docs/nidigital/installation.inc deleted file mode 100644 index 5cd8bdcdff..0000000000 --- a/docs/nidigital/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nidigital_installation-section: - -Installation ------------- - -As a prerequisite to using the **nidigital** module, you must install the NI-Digital Pattern Driver runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-Digital Pattern Driver**) can be installed with `pip `_:: - - $ python -m pip install nidigital - - diff --git a/docs/nidigital/nidigital.rst b/docs/nidigital/nidigital.rst deleted file mode 100644 index 24055e8327..0000000000 --- a/docs/nidigital/nidigital.rst +++ /dev/null @@ -1,9 +0,0 @@ -nidigital module -================ - -.. include:: installation.inc - -.. include:: ../_static/nidigital_usage.inc - -.. include:: toc.inc - diff --git a/docs/nidigital/rep_caps.rst b/docs/nidigital/rep_caps.rst deleted file mode 100644 index 32550fc4f8..0000000000 --- a/docs/nidigital/rep_caps.rst +++ /dev/null @@ -1,192 +0,0 @@ -.. py:module:: nidigital - :noindex: - -.. py:currentmodule:: nidigital.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niDigital_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -channels --------- - - .. py:attribute:: nidigital.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -pins ----- - - .. py:attribute:: nidigital.Session.pins[] - - .. code:: python - - session.pins['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -instruments ------------ - - .. py:attribute:: nidigital.Session.instruments[] - - .. code:: python - - session.instruments['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -pattern_opcode_events ---------------------- - - .. py:attribute:: nidigital.Session.pattern_opcode_events[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.pattern_opcode_events['0-2'].channel_enabled = True - - passes a string of :python:`'patternOpcodeEvent0, patternOpcodeEvent1, patternOpcodeEvent2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.pattern_opcode_events['patternOpcodeEvent0-patternOpcodeEvent2'].channel_enabled = True - - passes a string of :python:`'patternOpcodeEvent0, patternOpcodeEvent1, patternOpcodeEvent2'` to the set attribute function. - - -conditional_jump_triggers -------------------------- - - .. py:attribute:: nidigital.Session.conditional_jump_triggers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.conditional_jump_triggers['0-2'].channel_enabled = True - - passes a string of :python:`'conditionalJumpTrigger0, conditionalJumpTrigger1, conditionalJumpTrigger2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.conditional_jump_triggers['conditionalJumpTrigger0-conditionalJumpTrigger2'].channel_enabled = True - - passes a string of :python:`'conditionalJumpTrigger0, conditionalJumpTrigger1, conditionalJumpTrigger2'` to the set attribute function. - - -sites ------ - - .. py:attribute:: nidigital.Session.sites[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.sites['0-2'].channel_enabled = True - - passes a string of :python:`'site0, site1, site2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.sites['site0-site2'].channel_enabled = True - - passes a string of :python:`'site0, site1, site2'` to the set attribute function. - - -rio_events ----------- - - .. py:attribute:: nidigital.Session.rio_events[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.rio_events['0-2'].channel_enabled = True - - passes a string of :python:`'RIOEvent0, RIOEvent1, RIOEvent2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.rio_events['RIOEvent0-RIOEvent2'].channel_enabled = True - - passes a string of :python:`'RIOEvent0, RIOEvent1, RIOEvent2'` to the set attribute function. - - -rio_triggers ------------- - - .. py:attribute:: nidigital.Session.rio_triggers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.rio_triggers['0-2'].channel_enabled = True - - passes a string of :python:`'RIOTrigger0, RIOTrigger1, RIOTrigger2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.rio_triggers['RIOTrigger0-RIOTrigger2'].channel_enabled = True - - passes a string of :python:`'RIOTrigger0, RIOTrigger1, RIOTrigger2'` to the set attribute function. - - - diff --git a/docs/nidigital/status.inc b/docs/nidigital/status.inc deleted file mode 100644 index 12eab6b86a..0000000000 --- a/docs/nidigital/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-Digital Pattern Driver Python API Status -------------------------------------------- - -+---------------------------------------+--------------------------+ -| NI-Digital Pattern Driver (nidigital) | | -+=======================================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+---------------------------------------+--------------------------+ -| PyPI Version | |nidigitalLatestVersion| | -+---------------------------------------+--------------------------+ -| Supported Python Version | |nidigitalPythonVersion| | -+---------------------------------------+--------------------------+ -| Documentation | |nidigitalDocs| | -+---------------------------------------+--------------------------+ -| Open Issues | |nidigitalOpenIssues| | -+---------------------------------------+--------------------------+ -| Open Pull Requests | |nidigitalOpenPRs| | -+---------------------------------------+--------------------------+ - - -.. |nidigitalLatestVersion| image:: http://img.shields.io/pypi/v/nidigital.svg - :alt: Latest NI-Digital Pattern Driver Version - :target: http://pypi.python.org/pypi/nidigital - - -.. |nidigitalPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidigital.svg - :alt: NI-Digital Pattern Driver supported Python versions - :target: http://pypi.python.org/pypi/nidigital - - -.. |nidigitalDocs| image:: https://readthedocs.org/projects/nidigital/badge/?version=latest - :alt: NI-Digital Pattern Driver Python API Documentation Status - :target: https://nidigital.readthedocs.io/en/latest - - -.. |nidigitalOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidigital.svg - :alt: Open Issues + Pull Requests for NI-Digital Pattern Driver - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidigital - - -.. |nidigitalOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidigital.svg - :alt: Pull Requests for NI-Digital Pattern Driver - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidigital - - diff --git a/docs/nidigital/toc.inc b/docs/nidigital/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/nidigital/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/nidmm/.readthedocs.yaml b/docs/nidmm/.readthedocs.yaml deleted file mode 100644 index 083b682cb1..0000000000 --- a/docs/nidmm/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nidmm/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nidmm/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nidmm/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nidmm/about_nidmm.inc b/docs/nidmm/about_nidmm.inc deleted file mode 100644 index 55b56b4433..0000000000 --- a/docs/nidmm/about_nidmm.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nidmm** module provides a Python API for NI-DMM. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nidmm** supports all the Operating Systems supported by NI-DMM. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nidmm**. - diff --git a/docs/nidmm/class.rst b/docs/nidmm/class.rst deleted file mode 100644 index 00d9a3e39c..0000000000 --- a/docs/nidmm/class.rst +++ /dev/null @@ -1,3552 +0,0 @@ -.. py:module:: nidmm - -Session -======= - -.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) - - - - This method completes the following tasks: - - - Creates a new IVI instrument driver session and, optionally, sets the - initial state of the following session properties: - :py:attr:`nidmm.Session.RANGE_CHECK`, :py:attr:`nidmm.Session.QUERY_INSTR_STATUS`, - :py:attr:`nidmm.Session.CACHE`, :py:attr:`nidmm.Session.simulate`, - :py:attr:`nidmm.Session.RECORD_COERCIONS`. - - Opens a session to the device you specify for the **Resource_Name** - parameter. If the **ID_Query** parameter is set to True, this - method queries the instrument ID and checks that it is valid for - this instrument driver. - - If the **Reset_Device** parameter is set to True, this method - resets the instrument to a known state. Sends initialization commands - to set the instrument to the state necessary for the operation of the - instrument driver. - - Returns a ViSession handle that you use to identify the instrument in - all subsequent instrument driver method calls. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param resource_name: - - - .. caution:: All IVI names for the **Resource_Name**, such as logical names or - virtual names, are case-sensitive. If you use logical names, driver - session names, or virtual names in your program, you must make sure that - the name you use matches the name in the IVI Configuration Store file - exactly, without any variations in the case of the characters in the - name. - - | Contains the **resource_name** of the device to initialize. The - **resource_name** is assigned in Measurement & Automation Explorer - (MAX). Refer to `Related - Documentation `__ - for the *NI Digital Multimeters Getting Started Guide* for more - information about configuring and testing the DMM in MAX. - | Valid Syntax: - - - NI-DAQmx name - - DAQ::NI-DAQmx name[::INSTR] - - DAQ::Traditional NI-DAQ device number[::INSTR] - - IVI logical name - - - - - :type resource_name: str - - :param id_query: - - - Verifies that the device you initialize is one that the driver supports. - NI-DMM automatically performs this query, so setting this parameter is - not necessary. - Defined Values: - - +----------------+---+------------------+ - | True (default) | 1 | Perform ID Query | - +----------------+---+------------------+ - | False | 0 | Skip ID Query | - +----------------+---+------------------+ - - - :type id_query: bool - - :param reset_device: - - - Specifies whether to reset the instrument during the initialization - procedure. - Defined Values: - - +----------------+---+--------------+ - | True (default) | 1 | Reset Device | - +----------------+---+--------------+ - | False | 0 | Don't Reset | - +----------------+---+--------------+ - - - :type reset_device: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: nidmm.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: abort() - - Aborts a previously initiated measurement and returns the DMM to the - Idle state. - - - - - -close ------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: close() - - Closes the specified session and deallocates resources that it reserved. - - - - .. note:: This method is not needed when using the session context manager - - - -configure_measurement_absolute ------------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_measurement_absolute(measurement_function, range, resolution_absolute) - - Configures the common properties of the measurement. These properties - include :py:attr:`nidmm.Session.method`, :py:attr:`nidmm.Session.range`, and - :py:attr:`nidmm.Session.resolution_absolute`. - - - - - - :param measurement_function: - - - Specifies the **measurement_function** used to acquire the measurement. - The driver sets :py:attr:`nidmm.Session.method` to this value. - - - - - :type measurement_function: :py:data:`nidmm.Function` - :param range: - - - Specifies the **range** for the method specified in the - **Measurement_Function** parameter. When frequency is specified in the - **Measurement_Function** parameter, you must supply the minimum - frequency expected in the **range** parameter. For example, you must - type in 100 Hz if you are measuring 101 Hz or higher. - For all other methods, you must supply a **range** that exceeds the - value that you are measuring. For example, you must type in 10 V if you - are measuring 9 V. **range** values are coerced up to the closest input - **range**. Refer to the `Devices - Overview `__ for a list of valid - ranges. The driver sets :py:attr:`nidmm.Session.range` to this value. The default is - 0.02 V. - - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_OFF` | -2.0 | NI-DMM sets the Range to the current :py:attr:`nidmm.Session.auto_range_value` and uses this range for all subsequent measurements until the measurement configuration is changed. | - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The :py:attr:`nidmm.Session.auto_range_value` is stored and used for all subsequent measurements until the measurement configuration is changed. | - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: The NI 4050, NI 4060, and NI 4065 only support Auto Range when the - trigger and sample trigger are set to IMMEDIATE. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type range: float - :param resolution_absolute: - - - Specifies the absolute resolution for the measurement. NI-DMM sets - :py:attr:`nidmm.Session.resolution_absolute` to this value. The PXIe-4080/4081/4082 - uses the resolution you specify. The NI 4065 and NI 4070/4071/4072 - ignore this parameter when the **Range** parameter is set to - :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` (-1.0) or :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` - (-3.0). The default is 0.001 V. - - - - .. note:: NI-DMM ignores this parameter for capacitance and inductance - measurements on the NI 4072. To achieve better resolution for such - measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` - property. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type resolution_absolute: float - -configure_measurement_digits ----------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_measurement_digits(measurement_function, range, resolution_digits) - - Configures the common properties of the measurement. These properties - include :py:attr:`nidmm.Session.method`, :py:attr:`nidmm.Session.range`, and - :py:attr:`nidmm.Session.resolution_digits`. - - - - - - :param measurement_function: - - - Specifies the **measurement_function** used to acquire the measurement. - The driver sets :py:attr:`nidmm.Session.method` to this value. - - - - - :type measurement_function: :py:data:`nidmm.Function` - :param range: - - - Specifies the range for the method specified in the - **Measurement_Function** parameter. When frequency is specified in the - **Measurement_Function** parameter, you must supply the minimum - frequency expected in the **range** parameter. For example, you must - type in 100 Hz if you are measuring 101 Hz or higher. - For all other methods, you must supply a range that exceeds the value - that you are measuring. For example, you must type in 10 V if you are - measuring 9 V. range values are coerced up to the closest input range. - Refer to the `Devices - Overview `__ for a list of valid - ranges. The driver sets :py:attr:`nidmm.Session.range` to this value. The default is - 0.02 V. - - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_OFF` | -2.0 | NI-DMM sets the Range to the current :py:attr:`nidmm.Session.auto_range_value` and uses this range for all subsequent measurements until the measurement configuration is changed. | - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The :py:attr:`nidmm.Session.auto_range_value` is stored and used for all subsequent measurements until the measurement configuration is changed. | - +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: The NI 4050, NI 4060, and NI 4065 only support Auto Range when the - trigger and sample trigger are set to IMMEDIATE. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type range: float - :param resolution_digits: - - - Specifies the resolution of the measurement in digits. The driver sets - the `Devices Overview `__ for a - list of valid ranges. The driver sets :py:attr:`nidmm.Session.resolution_digits` - property to this value. The PXIe-4080/4081/4082 uses the resolution you - specify. The NI 4065 and NI 4070/4071/4072 ignore this parameter when - the **Range** parameter is set to :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` (-1.0) or - :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` (-3.0). The default is 5½. - - - - .. note:: NI-DMM ignores this parameter for capacitance and inductance - measurements on the NI 4072. To achieve better resolution for such - measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` - property. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type resolution_digits: float - -configure_multi_point ---------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_multi_point(trigger_count, sample_count, sample_trigger=nidmm.SampleTrigger.IMMEDIATE, sample_interval=hightime.timedelta(seconds=-1)) - - Configures the properties for multipoint measurements. These properties - include :py:attr:`nidmm.Session.trigger_count`, :py:attr:`nidmm.Session.sample_count`, - :py:attr:`nidmm.Session.sample_trigger`, and :py:attr:`nidmm.Session.sample_interval`. - - For continuous acquisitions, set :py:attr:`nidmm.Session.trigger_count` or - :py:attr:`nidmm.Session.sample_count` to zero. For more information, refer to - `Multiple Point - Acquisitions `__, - `Triggering `__, and `Using - Switches `__. - - - - - - :param trigger_count: - - - Sets the number of triggers you want the DMM to receive before returning - to the Idle state. The driver sets :py:attr:`nidmm.Session.trigger_count` to this - value. The default value is 1. - - - - - :type trigger_count: int - :param sample_count: - - - Sets the number of measurements the DMM makes in each measurement - sequence initiated by a trigger. The driver sets - :py:attr:`nidmm.Session.sample_count` to this value. The default value is 1. - - - - - :type sample_count: int - :param sample_trigger: - - - Specifies the **sample_trigger** source you want to use. The driver - sets :py:attr:`nidmm.Session.sample_trigger` to this value. The default is - Immediate. - - - - .. note:: To determine which values are supported by each device, refer to the - `LabWindows/CVI Trigger - Routing `__ section. - - - :type sample_trigger: :py:data:`nidmm.SampleTrigger` - :param sample_interval: - - - Sets the amount of time in seconds the DMM waits between measurement - cycles. The driver sets :py:attr:`nidmm.Session.sample_interval` to this value. - Specify a sample interval to add settling time between measurement - cycles or to decrease the measurement rate. **sample_interval** only - applies when the **Sample_Trigger** is set to INTERVAL. - - On the NI 4060, the **sample_interval** value is used as the settling - time. When sample interval is set to 0, the DMM does not settle between - measurement cycles. The NI 4065 and NI 4070/4071/4072 use the value - specified in **sample_interval** as additional delay. The default value - (-1) ensures that the DMM settles for a recommended time. This is the - same as using an Immediate trigger. - - - - .. note:: This property is not used on the NI 4080/4081/4082 and the NI 4050. - - - :type sample_interval: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_rtd_custom --------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_rtd_custom(rtd_a, rtd_b, rtd_c) - - Configures the A, B, and C parameters for a custom RTD. - - - - - - :param rtd_a: - - - Specifies the Callendar-Van Dusen A coefficient for RTD scaling when RTD - Type parameter is set to Custom in the :py:meth:`nidmm.Session.configure_rtd_type` method. - The default is 3.9083e-3 (Pt3851) - - - - - :type rtd_a: float - :param rtd_b: - - - Specifies the Callendar-Van Dusen B coefficient for RTD scaling when RTD - Type parameter is set to Custom in the :py:meth:`nidmm.Session.configure_rtd_type` method. - The default is -5.775e-7 (Pt3851). - - - - - :type rtd_b: float - :param rtd_c: - - - Specifies the Callendar-Van Dusen C coefficient for RTD scaling when RTD - Type parameter is set to Custom in the :py:meth:`nidmm.Session.configure_rtd_type` method. - The default is -4.183e-12 (Pt3851). - - - - - :type rtd_c: float - -configure_rtd_type ------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_rtd_type(rtd_type, rtd_resistance) - - Configures the RTD Type and RTD Resistance parameters for an RTD. - - - - - - :param rtd_type: - - - Specifies the type of RTD used to measure the temperature resistance. - NI-DMM uses this value to set the RTD Type property. The default is - :py:data:`~nidmm.RTDType.PT3851`. - - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | Enum | Standards | Material | TCR (α) | Typical R\ :sub:`0` (Ω) | Notes | | - +==================================+===============================================+==========+=========+=========================+===============================================================================+===============================+ - | Callendar-Van Dusen Coefficient | | | | | | | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | :py:data:`~nidmm.RTDType.PT3851` | IEC-751 DIN 43760 BS 1904 ASTM-E1137 EN-60751 | Platinum | .003851 | 100 Ω 1000 Ω | A = 3.9083 × 10\ :sup:`–3` B = –5.775×10:sup:`–7` C = –4.183×10:sup:`–12` | Most common RTDs | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | :py:data:`~nidmm.RTDType.PT3750` | Low-cost vendor compliant RTD\* | Platinum | .003750 | 1000 Ω | A = 3.81 × 10\ :sup:`–3` B = –6.02×10:sup:`–7` C = –6.0×10:sup:`–12` | Low-cost RTD | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | :py:data:`~nidmm.RTDType.PT3916` | JISC 1604 | Platinum | .003916 | 100 Ω | A = 3.9739 × 10\ :sup:`–3` B = –5.870×10:sup:`–7` C = –4.4 ×10\ :sup:`–12` | Used in primarily in Japan | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | :py:data:`~nidmm.RTDType.PT3920` | US Industrial Standard D-100 American | Platinum | .003920 | 100 Ω | A = 3.9787 × 10\ :sup:`–3` B = –5.8686×10:sup:`–7` C = –4.167 ×10\ :sup:`–12` | Low-cost RTD | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | :py:data:`~nidmm.RTDType.PT3911` | US Industrial Standard American | Platinum | .003911 | 100 Ω | A = 3.9692 × 10\ :sup:`–3` B = –5.8495×10:sup:`–7` C = –4.233 ×10\ :sup:`–12` | Low-cost RTD | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | :py:data:`~nidmm.RTDType.PT3928` | ITS-90 | Platinum | .003928 | 100 Ω | A = 3.9888 × 10\ :sup:`–3` B = –5.915×10:sup:`–7` C = –3.85 ×10\ :sup:`–12` | The definition of temperature | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | \*No standard. Check the TCR. | | | | | | | - +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - - - :type rtd_type: :py:data:`nidmm.RTDType` - :param rtd_resistance: - - - Specifies the RTD resistance in ohms at 0 °C. NI-DMM uses this value to - set the RTD Resistance property. The default is 100 (Ω). - - - - - :type rtd_resistance: float - -configure_thermistor_custom ---------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_thermistor_custom(thermistor_a, thermistor_b, thermistor_c) - - Configures the A, B, and C parameters for a custom thermistor. - - - - - - :param thermistor_a: - - - Specifies the Steinhart-Hart A coefficient for thermistor scaling when - Thermistor Type is set to Custom in the :py:meth:`nidmm.Session.ConfigureThermistorType` - method. The default is 1.0295e-3 (44006). - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - :type thermistor_a: float - :param thermistor_b: - - - Specifies the Steinhart-Hart B coefficient for thermistor scaling when - Thermistor Type is set to Custom in the :py:meth:`nidmm.Session.ConfigureThermistorType` - method. The default is 2.391e-4 (44006). - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - :type thermistor_b: float - :param thermistor_c: - - - Specifies the Steinhart-Hart C coefficient for thermistor scaling when - Thermistor Type is set to Custom in the :py:meth:`nidmm.Session.ConfigureThermistorType` - method. The default is 1.568e-7 (44006). - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - :type thermistor_c: float - -configure_thermocouple ----------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_thermocouple(thermocouple_type, reference_junction_type=nidmm.ThermocoupleReferenceJunctionType.FIXED) - - Configures the thermocouple type and reference junction type for a - chosen thermocouple. - - - - - - :param thermocouple_type: - - - Specifies the type of thermocouple used to measure the temperature. - NI-DMM uses this value to set the Thermocouple Type property. The - default is :py:data:`~nidmm.ThermocoupleType.J`. - - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.B` | Thermocouple type B | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.E` | Thermocouple type E | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.J` | Thermocouple type J | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.K` | Thermocouple type K | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.N` | Thermocouple type N | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.R` | Thermocouple type R | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.S` | Thermocouple type S | - +--------------------------------------+---------------------+ - | :py:data:`~nidmm.ThermocoupleType.T` | Thermocouple type T | - +--------------------------------------+---------------------+ - - - :type thermocouple_type: :py:data:`nidmm.ThermocoupleType` - :param reference_junction_type: - - - Specifies the type of reference junction to be used in the reference - junction compensation of a thermocouple measurement. NI-DMM uses this - value to set the Reference Junction Type property. The only supported - value is :py:data:`~nidmm.ThermocoupleReferenceJunctionType.FIXED`. - - - - - :type reference_junction_type: :py:data:`nidmm.ThermocoupleReferenceJunctionType` - -configure_trigger ------------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_trigger(trigger_source, trigger_delay=hightime.timedelta(seconds=-1)) - - Configures the DMM **Trigger_Source** and **Trigger_Delay**. Refer to - `Triggering `__ and `Using - Switches `__ for more - information. - - - - - - :param trigger_source: - - - Specifies the **trigger_source** that initiates the acquisition. The - driver sets :py:attr:`nidmm.Session.trigger_source` to this value. Software - configures the DMM to wait until :py:meth:`nidmm.Session.send_software_trigger` is called - before triggering the DMM. - - - - .. note:: To determine which values are supported by each device, refer to the - `LabWindows/CVI Trigger - Routing `__ section. - - - :type trigger_source: :py:data:`nidmm.TriggerSource` - :param trigger_delay: - - - Specifies the time that the DMM waits after it has received a trigger - before taking a measurement. The driver sets the - :py:attr:`nidmm.Session.trigger_delay` property to this value. By default, - **trigger_delay** is :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` (-1), which means the DMM - waits an appropriate settling time before taking the measurement. On the - NI 4060, if you set **trigger_delay** to 0, the DMM does not settle - before taking the measurement. The NI 4065 and NI 4070/4071/4072 use the - value specified in **trigger_delay** as additional settling time. - - - - .. note:: When using the NI 4050, **Trigger_Delay** must be set to - :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` (-1). - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger_delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_waveform_acquisition ------------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: configure_waveform_acquisition(measurement_function, range, rate, waveform_points) - - Configures the DMM for waveform acquisitions. This feature is supported - on the NI 4080/4081/4082 and the NI 4070/4071/4072. - - - - - - :param measurement_function: - - - Specifies the **measurement_function** used in a waveform acquisition. - The driver sets :py:attr:`nidmm.Session.method` to this value. - - +-----------------------------------------------------+------+------------------+ - | :py:data:`~nidmm.Method.WAVEFORM_VOLTAGE` (default) | 1003 | Voltage Waveform | - +-----------------------------------------------------+------+------------------+ - | :py:data:`~nidmm.Method.WAVEFORM_CURRENT` | 1004 | Current Waveform | - +-----------------------------------------------------+------+------------------+ - - - :type measurement_function: :py:data:`nidmm.Function` - :param range: - - - Specifies the expected maximum amplitude of the input signal and sets - the **range** for the **Measurement_Function**. NI-DMM sets - :py:attr:`nidmm.Session.range` to this value. **range** values are coerced up to the - closest input **range**. The default is 10.0. - - For valid ranges refer to the topics in - `Devices `__. - - Auto-ranging is not supported during waveform acquisitions. - - - - - :type range: float - :param rate: - - - Specifies the **rate** of the acquisition in samples per second. NI-DMM - sets :py:attr:`nidmm.Session.waveform_rate` to this value. - - The valid **Range** is 10.0–1,800,000 S/s. **rate** values are coerced - to the closest integer divisor of 1,800,000. The default value is - 1,800,000. - - - - - :type rate: float - :param waveform_points: - - - Specifies the number of points to acquire before the waveform - acquisition completes. NI-DMM sets :py:attr:`nidmm.Session.waveform_points` to this - value. - - To calculate the maximum and minimum number of waveform points that you - can acquire in one acquisition, refer to the `Waveform Acquisition - Measurement Cycle `__. - - The default value is 500. - - - - - :type waveform_points: int - -disable -------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: disable() - - Places the instrument in a quiescent state where it has minimal or no - impact on the system to which it is connected. If a measurement is in - progress when this method is called, the measurement is aborted. - - - - - -export_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: export_attribute_configuration_buffer() - - Exports the property configuration of the session to the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DMM returns an - error. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - - - .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - - - :rtype: bytes - :return: - - - Specifies the byte array buffer to be populated with the exported - property configuration. - - - - - -export_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: export_attribute_configuration_file(file_path) - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DMM returns an - error. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - - - .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - - - :param file_path: - - - Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:**\ .nidmmconfig - - - - - :type file_path: str - -fetch ------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: fetch(maximum_time=hightime.timedelta(milliseconds=-1)) - - Returns the value from a previously initiated measurement. You must call - :py:meth:`nidmm.Session._initiate` before calling this method. Value is in base units. - - - - - - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - - :rtype: float - :return: - - - The measured value returned from the DMM. - - - - - -fetch_multi_point ------------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: fetch_multi_point(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) - - Returns an array of values from a previously initiated multipoint - measurement. The number of measurements the DMM makes is determined by - the values you specify for the **Trigger_Count** and **Sample_Count** - parameters of :py:meth:`nidmm.Session.configure_multi_point`. You must first call - :py:meth:`nidmm.Session._initiate` to initiate a measurement before calling this method. Values are in base units. - - - - - - :param array_size: - - - Specifies the number of measurements to acquire. The maximum number of - measurements for a finite acquisition is the (**Trigger Count** x - **Sample Count**) parameters in :py:meth:`nidmm.Session.configure_multi_point`. - - For continuous acquisitions, up to 100,000 points can be returned at - once. The number of measurements can be a subset. The valid range is any - positive ViInt32. The default value is 1. - - - - - :type array_size: int - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - - :rtype: array.array("d") - :return: - - - An array of measurement values. - - - - .. note:: The size of the **Reading_Array** must be at least the size that you - specify for the **Array_Size** parameter. - - - -fetch_waveform --------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: fetch_waveform(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of - values from a previously initiated waveform acquisition. You must call - :py:meth:`nidmm.Session._initiate` before calling this method. - - - - - - :param array_size: - - - Specifies the number of waveform points to return. You specify the total - number of points that the DMM acquires in the **Waveform Points** - parameter of :py:meth:`nidmm.Session.configure_waveform_acquisition`. The default value is - 1. - - - - - :type array_size: int - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - - :rtype: array.array("d") - :return: - - - **Waveform Array** is an array of measurement values stored in waveform - data type. - - - - - -fetch_waveform_into -------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: fetch_waveform_into(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of - values from a previously initiated waveform acquisition. You must call - :py:meth:`nidmm.Session._initiate` before calling this method. - - - - - - :param waveform_array: - - - **Waveform Array** is an array of measurement values stored in waveform - data type. - - - - - :type waveform_array: numpy.array(dtype=numpy.float64) - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - -get_cal_date_and_time ---------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: get_cal_date_and_time(cal_type) - - Returns the date and time of the last calibration performed. - - - - .. note:: The NI 4050 and NI 4060 are not supported. - - - - :param cal_type: - - - Specifies the type of calibration performed (external or self-calibration). - - +-----------------------------------------------------+---+----------------------+ - | :py:data:`~nidmm.NIDMM_VAL_INTERNAL_AREA` (default) | 0 | Self-Calibration | - +-----------------------------------------------------+---+----------------------+ - | :py:data:`~nidmm.NIDMM_VAL_EXTERNAL_AREA` | 1 | External Calibration | - +-----------------------------------------------------+---+----------------------+ - - .. note:: The NI 4065 does not support self-calibration. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type cal_type: int - - :rtype: hightime.datetime - :return: - - - Indicates date and time of the last calibration. - - - - - -get_dev_temp ------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: get_dev_temp(options="") - - Returns the current **Temperature** of the device. - - - - .. note:: The NI 4050 and NI 4060 are not supported. - - - - :param options: - - - Reserved. - - - - - :type options: str - - :rtype: float - :return: - - - Returns the current **temperature** of the device. - - - - - -get_ext_cal_recommended_interval --------------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: get_ext_cal_recommended_interval() - - Returns the recommended interval between external recalibration in - **Months**. - - - - .. note:: The NI 4050 and NI 4060 are not supported. - - - - :rtype: hightime.timedelta - :return: - - - Returns the recommended number of **months** between external - calibrations. - - - - - -get_last_cal_temp ------------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: get_last_cal_temp(cal_type) - - Returns the **Temperature** during the last calibration procedure. - - - - .. note:: The NI 4050 and NI 4060 are not supported. - - - - :param cal_type: - - - Specifies the type of calibration performed (external or - self-calibration). - - +-----------------------------------------------------+---+----------------------+ - | :py:data:`~nidmm.NIDMM_VAL_INTERNAL_AREA` (default) | 0 | Self-Calibration | - +-----------------------------------------------------+---+----------------------+ - | :py:data:`~nidmm.NIDMM_VAL_EXTERNAL_AREA` | 1 | External Calibration | - +-----------------------------------------------------+---+----------------------+ - - .. note:: The NI 4065 does not support self-calibration. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type cal_type: int - - :rtype: float - :return: - - - Returns the **temperature** during the last calibration. - - - - - -get_self_cal_supported ----------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: get_self_cal_supported() - - Returns a Boolean value that expresses whether or not the DMM that you - are using can perform self-calibration. - - - - - - :rtype: bool - :return: - - - Returns whether Self Cal is supported for the device specified by the - given session. - - +-------+---+-------------------------------------------------------------+ - | True | 1 | The DMM that you are using can perform self-calibration. | - +-------+---+-------------------------------------------------------------+ - | False | 0 | The DMM that you are using cannot perform self-calibration. | - +-------+---+-------------------------------------------------------------+ - - - -import_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: import_attribute_configuration_buffer(configuration) - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - - - .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - - - :param configuration: - - - Specifies the byte array buffer that contains the property - configuration to import. - - - - - :type configuration: bytes - -import_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: import_attribute_configuration_file(file_path) - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - - - .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - - - :param file_path: - - - Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:**\ .nidmmconfig - - - - - :type file_path: str - -initiate --------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: initiate() - - Initiates an acquisition. After you call this method, the DMM leaves - the Idle state and enters the Wait-for-Trigger state. If trigger is set - to Immediate mode, the DMM begins acquiring measurement data. Use - :py:meth:`nidmm.Session.fetch`, :py:meth:`nidmm.Session.fetch_multi_point`, or :py:meth:`nidmm.Session.fetch_waveform` to - retrieve the measurement data. - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -lock ----- - - .. py:currentmodule:: nidmm.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`nidmm.Session.lock` method. - - A call to NI-DMM locked the session. - - After a call to the :py:meth:`nidmm.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`nidmm.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`nidmm.Session.lock` method and the - :py:meth:`nidmm.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`nidmm.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`nidmm.Session.lock` method with a call to - the :py:meth:`nidmm.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with nidmm.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`nidmm.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -perform_open_cable_comp ------------------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: perform_open_cable_comp() - - For the NI 4082 and NI 4072 only, performs the open cable compensation - measurements for the current capacitance/inductance range, and returns - open cable compensation **Conductance** and **Susceptance** values. You - can use the return values of this method as inputs to - :py:meth:`nidmm.Session.ConfigureOpenCableCompValues`. - - This method returns an error if the value of the :py:attr:`nidmm.Session.method` - property is not set to :py:data:`~nidmm.Method.CAPACITANCE` (1005) or - :py:data:`~nidmm.Method.INDUCTANCE` (1006). - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - - :rtype: tuple (conductance, susceptance) - - WHERE - - conductance (float): - - - **conductance** is the measured value of open cable compensation - **conductance**. - - - - - susceptance (float): - - - **susceptance** is the measured value of open cable compensation - **susceptance**. - - - - - -perform_short_cable_comp ------------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: perform_short_cable_comp() - - Performs the short cable compensation measurements for the current - capacitance/inductance range, and returns short cable compensation - **Resistance** and **Reactance** values. You can use the return values - of this method as inputs to :py:meth:`nidmm.Session.ConfigureShortCableCompValues`. - - This method returns an error if the value of the :py:attr:`nidmm.Session.method` - property is not set to :py:data:`~nidmm.Method.CAPACITANCE` (1005) or - :py:data:`~nidmm.Method.INDUCTANCE` (1006). - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - - :rtype: tuple (resistance, reactance) - - WHERE - - resistance (float): - - - **resistance** is the measured value of short cable compensation - **resistance**. - - - - - reactance (float): - - - **reactance** is the measured value of short cable compensation - **reactance**. - - - - - -read ----- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: read(maximum_time=hightime.timedelta(milliseconds=-1)) - - Acquires a single measurement and returns the measured value in base units. - - - - - - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - - :rtype: float - :return: - - - The measured value returned from the DMM. - - - - - -read_multi_point ----------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: read_multi_point(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) - - Acquires multiple measurements and returns an array of measured values. - The number of measurements the DMM makes is determined by the values you - specify for the **Trigger_Count** and **Sample_Count** parameters in - :py:meth:`nidmm.Session.configure_multi_point`. - - - - - - :param array_size: - - - Specifies the number of measurements to acquire. The maximum number of - measurements for a finite acquisition is the (**Trigger Count** x - **Sample Count**) parameters in :py:meth:`nidmm.Session.configure_multi_point`. - - For continuous acquisitions, up to 100,000 points can be returned at - once. The number of measurements can be a subset. The valid range is any - positive ViInt32. The default value is 1. - - - - - :type array_size: int - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - - :rtype: array.array("d") - :return: - - - An array of measurement values. - - - - .. note:: The size of the **Reading_Array** must be at least the size that you - specify for the **Array_Size** parameter. - - - -read_status ------------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: read_status() - - Returns measurement backlog and acquisition status. Use this method to - determine how many measurements are available before calling - :py:meth:`nidmm.Session.fetch`, :py:meth:`nidmm.Session.fetch_multi_point`, or :py:meth:`nidmm.Session.fetch_waveform`. - - - - .. note:: The NI 4050 is not supported. - - - - :rtype: tuple (acquisition_backlog, acquisition_status) - - WHERE - - acquisition_backlog (int): - - - The number of measurements available to be read. If the backlog - continues to increase, data is eventually overwritten, resulting in an - error. - - - - .. note:: On the NI 4060, the **Backlog** does not increase when autoranging. On - the NI 4065, the **Backlog** does not increase when Range is set to AUTO - RANGE ON (-1), or before the first point is fetched when Range is set to - AUTO RANGE ONCE (-3). These behaviors are due to the autorange model of - the devices. - - - acquisition_status (:py:data:`nidmm.AcquisitionStatus`): - - - Indicates status of the acquisition. The following table shows the - acquisition states: - - +---+----------------------------+ - | 0 | Running | - +---+----------------------------+ - | 1 | Finished with backlog | - +---+----------------------------+ - | 2 | Finished with no backlog | - +---+----------------------------+ - | 3 | Paused | - +---+----------------------------+ - | 4 | No acquisition in progress | - +---+----------------------------+ - - - -read_waveform -------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: read_waveform(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, acquires a waveform - and returns data as an array of values or as a waveform data type. The - number of elements in the **Waveform_Array** is determined by the - values you specify for the **Waveform_Points** parameter in - :py:meth:`nidmm.Session.configure_waveform_acquisition`. - - - - - - :param array_size: - - - Specifies the number of waveform points to return. You specify the total - number of points that the DMM acquires in the **Waveform Points** - parameter of :py:meth:`nidmm.Session.configure_waveform_acquisition`. The default value is - 1. - - - - - :type array_size: int - :param maximum_time: - - - Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout - automatically. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - - :rtype: array.array("d") - :return: - - - An array of measurement values. - - - - .. note:: The size of the **Waveform_Array** must be at least the size that you - specify for the **Array_Size** parameter. - - - -reset ------ - - .. py:currentmodule:: nidmm.Session - - .. py:method:: reset() - - Resets the instrument to a known state and sends initialization commands - to the instrument. The initialization commands set instrument settings - to the state necessary for the operation of the instrument driver. - - - - - -reset_with_defaults -------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: reset_with_defaults() - - Resets the instrument to a known state and sends initialization commands - to the DMM. The initialization commands set the DMM settings to the - state necessary for the operation of NI-DMM. All user-defined default - values associated with a logical name are applied after setting the DMM. - - - - - -self_cal --------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: self_cal() - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, executes the - self-calibration routine to maintain measurement accuracy. - - - - .. note:: This method calls :py:meth:`nidmm.Session.reset`, and any configurations previous to - the call will be lost. All properties will be set to their default - values after the call returns. - - - -self_test ---------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: self_test() - - Performs a self-test on the DMM to ensure that the DMM is functioning - properly. Self-test does not calibrate the DMM. Zero - indicates success. - - On the NI 4080/4082 and NI 4070/4072, the error code 1013 indicates that - you should check the fuse and replace it, if necessary. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - - - .. note:: Self-test does not check the fuse on the NI 4065, NI 4071, and NI 4081. Hence, even if the fuse is blown on the device, self-test does not return error code 1013. - - .. note:: This method calls :py:meth:`nidmm.Session.reset`, and any configurations previous to the call will be lost. All properties will be set to their default values after the call returns. - - - -send_software_trigger ---------------------- - - .. py:currentmodule:: nidmm.Session - - .. py:method:: send_software_trigger() - - Sends a command to trigger the DMM. Call this method if you have - configured either the :py:attr:`nidmm.Session.trigger_source` or - :py:attr:`nidmm.Session.sample_trigger` properties. If the - :py:attr:`nidmm.Session.trigger_source` and/or :py:attr:`nidmm.Session.sample_trigger` - properties are set to :py:data:`~nidmm.NIDMM_VAL_EXTERNAL` or :py:data:`~nidmm.NIDMM_VAL_TTL`\ *n*, you - can use this method to override the trigger source that you configured - and trigger the device. The NI 4050 and NI 4060 are not supported. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - -unlock ------- - - .. py:currentmodule:: nidmm.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`nidmm.Session.lock`. Refer to :py:meth:`nidmm.Session.unlock` for additional - information on session locks. - - -Properties -========== - -ac_max_freq ------------ - - .. py:attribute:: ac_max_freq - - Specifies the maximum frequency component of the input signal for AC measurements. This property is used only for error checking and verifies that the value of this parameter is less than the maximum frequency of the device. This property affects the DMM only when you set the :py:attr:`nidmm.Session.method` property to AC measurements. - The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Max Frequency** - - C Attribute: **NIDMM_ATTR_AC_MAX_FREQ** - -ac_min_freq ------------ - - .. py:attribute:: ac_min_freq - - Specifies the minimum frequency component of the input signal for AC measurements. This property affects the DMM only when you set the :py:attr:`nidmm.Session.method` property to AC measurements. - The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Min Frequency** - - C Attribute: **NIDMM_ATTR_AC_MIN_FREQ** - -adc_calibration ---------------- - - .. py:attribute:: adc_calibration - - For the NI 4070/4071/4072 only, specifies the ADC calibration mode. - - The following table lists the characteristics of this property. - - +----------------+----------------------+ - | Characteristic | Value | - +================+======================+ - | Datatype | enums.ADCCalibration | - +----------------+----------------------+ - | Permissions | read-write | - +----------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:ADC Calibration** - - C Attribute: **NIDMM_ATTR_ADC_CALIBRATION** - -aperture_time -------------- - - .. py:attribute:: aperture_time - - Specifies the measurement aperture time for the current configuration. Aperture time is specified in units set by :py:attr:`nidmm.Session.aperture_time_units`. To override the default aperture, set this property to the desired aperture time after calling :py:meth:`nidmm.Session.ConfigureMeasurement`. To return to the default, set this property to :py:data:`~nidmm.NIDMM_VAL_APERTURE_TIME_AUTO` (-1). - On the NI 4070/4071/4072, the minimum aperture time is 8.89 usec, and the maximum aperture time is 149 sec. Any number of powerline cycles (PLCs) within the minimum and maximum ranges is allowed on the NI 4070/4071/4072. - On the NI 4065 the minimum aperture time is 333 µs, and the maximum aperture time is 78.2 s. If setting the number of averages directly, the total measurement time is aperture time X the number of averages, which must be less than 72.8 s. The aperture times allowed are 333 µs, 667 µs, or multiples of 1.11 ms-for example 1.11 ms, 2.22 ms, 3.33 ms, and so on. If you set an aperture time other than 333 µs, 667 µs, or multiples of 1.11 ms, the value will be coerced up to the next supported aperture time. - On the NI 4060, when the powerline frequency is 60 Hz, the PLCs allowed are 1 PLC, 6 PLC, 12 PLC, and 120 PLC. When the powerline frequency is 50 Hz, the PLCs allowed are 1 PLC, 5 PLC, 10 PLC, and 100 PLC. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Advanced:Aperture Time** - - C Attribute: **NIDMM_ATTR_APERTURE_TIME** - -aperture_time_units -------------------- - - .. py:attribute:: aperture_time_units - - Specifies the units of aperture time for the current configuration. - The NI 4060 does not support an aperture time set in seconds. - - The following table lists the characteristics of this property. - - +----------------+-------------------------+ - | Characteristic | Value | - +================+=========================+ - | Datatype | enums.ApertureTimeUnits | - +----------------+-------------------------+ - | Permissions | read-write | - +----------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Advanced:Aperture Time Units** - - C Attribute: **NIDMM_ATTR_APERTURE_TIME_UNITS** - -auto_range_value ----------------- - - .. py:attribute:: auto_range_value - - Specifies the value of the range. If auto ranging, shows the actual value of the active range. The value of this property is set during a read operation. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | float | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Auto Range Value** - - C Attribute: **NIDMM_ATTR_AUTO_RANGE_VALUE** - -auto_zero ---------- - - .. py:attribute:: auto_zero - - Specifies the AutoZero mode. - The NI 4050 is not supported. - - The following table lists the characteristics of this property. - - +----------------+----------------+ - | Characteristic | Value | - +================+================+ - | Datatype | enums.AutoZero | - +----------------+----------------+ - | Permissions | read-write | - +----------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Auto Zero** - - C Attribute: **NIDMM_ATTR_AUTO_ZERO** - -buffer_size ------------ - - .. py:attribute:: buffer_size - - Size in samples of the internal data buffer. Maximum is 134,217,727 (OX7FFFFFF) samples. When set to :py:data:`~nidmm.NIDMM_VAL_BUFFER_SIZE_AUTO` (-1), NI-DMM chooses the buffer size. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Multi Point Acquisition:Advanced:Buffer Size** - - C Attribute: **NIDMM_ATTR_BUFFER_SIZE** - -cable_comp_type ---------------- - - .. py:attribute:: cable_comp_type - - For the NI 4072 only, the type of cable compensation that is applied to the current capacitance or inductance measurement for the current range. - Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. - - The following table lists the characteristics of this property. - - +----------------+-----------------------------+ - | Characteristic | Value | - +================+=============================+ - | Datatype | enums.CableCompensationType | - +----------------+-----------------------------+ - | Permissions | read-write | - +----------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Cable Compensation Type** - - C Attribute: **NIDMM_ATTR_CABLE_COMP_TYPE** - -channel_count -------------- - - .. py:attribute:: channel_count - - Indicates the number of channels that the specific instrument driver supports. For each property for which the IVI_VAL_MULTI_CHANNEL flag property is set, the IVI engine maintains a separate cache value for each channel. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Capabilities:Channel Count** - - C Attribute: **NIDMM_ATTR_CHANNEL_COUNT** - -current_source --------------- - - .. py:attribute:: current_source - - Specifies the current source provided during diode measurements. - The NI 4050 and NI 4060 are not supported. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Current Source** - - C Attribute: **NIDMM_ATTR_CURRENT_SOURCE** - -dc_bias -------- - - .. py:attribute:: dc_bias - - For the NI 4072 only, controls the available DC bias for capacitance measurements. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Advanced:DC Bias** - - C Attribute: **NIDMM_ATTR_DC_BIAS** - -dc_noise_rejection ------------------- - - .. py:attribute:: dc_noise_rejection - - Specifies the DC noise rejection mode. - The NI 4050 and NI 4060 are not supported. - - The following table lists the characteristics of this property. - - +----------------+------------------------+ - | Characteristic | Value | - +================+========================+ - | Datatype | enums.DCNoiseRejection | - +----------------+------------------------+ - | Permissions | read-write | - +----------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:DC Noise Rejection** - - C Attribute: **NIDMM_ATTR_DC_NOISE_REJECTION** - -driver_setup ------------- - - .. py:attribute:: driver_setup - - This property indicates the Driver Setup string that the user specified when initializing the driver. - Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niDMM Init With Options.vi. - If the user does not specify a Driver Setup string, this property returns an empty string. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Driver Setup** - - C Attribute: **NIDMM_ATTR_DRIVER_SETUP** - -freq_voltage_auto_range ------------------------ - - .. py:attribute:: freq_voltage_auto_range - - For the NI 4070/4071/4072 only, specifies the value of the frequency voltage range. If Auto Ranging, shows the actual value of the active frequency voltage range. If not Auto Ranging, the value of this property is the same as that of :py:attr:`nidmm.Session.freq_voltage_range`. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | float | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Frequency Voltage Auto Range Value** - - C Attribute: **NIDMM_ATTR_FREQ_VOLTAGE_AUTO_RANGE** - -freq_voltage_range ------------------- - - .. py:attribute:: freq_voltage_range - - Specifies the maximum amplitude of the input signal for frequency measurements. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Frequency Voltage Range** - - C Attribute: **NIDMM_ATTR_FREQ_VOLTAGE_RANGE** - -function --------- - - .. py:attribute:: function - - Specifies the measurement method. - Refer to the :py:attr:`nidmm.Session.method` topic in the NI Digital Multimeters Help for device-specific information. - If you are setting this property directly, you must also set the :py:attr:`nidmm.Session.operation_mode` property, which controls whether the DMM takes standard single or multipoint measurements, or acquires a waveform. If you are programming properties directly, you must set the :py:attr:`nidmm.Session.operation_mode` property before setting other configuration properties. If the :py:attr:`nidmm.Session.operation_mode` property is set to :py:data:`~nidmm.OperationMode.WAVEFORM`, the only valid method types are :py:data:`~nidmm.Method.WAVEFORM_VOLTAGE` and :py:data:`~nidmm.Method.WAVEFORM_CURRENT`. Set the :py:attr:`nidmm.Session.operation_mode` property to :py:data:`~nidmm.OperationMode.IVIDMM` to set all other method values. - - The following table lists the characteristics of this property. - - +----------------+----------------+ - | Characteristic | Value | - +================+================+ - | Datatype | enums.Function | - +----------------+----------------+ - | Permissions | read-write | - +----------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Function** - - C Attribute: **NIDMM_ATTR_FUNCTION** - -input_resistance ----------------- - - .. py:attribute:: input_resistance - - Specifies the input resistance of the instrument. - The NI 4050 and NI 4060 are not supported. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Input Resistance** - - C Attribute: **NIDMM_ATTR_INPUT_RESISTANCE** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - A string containing the instrument firmware revision number. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Firmware Revision** - - C Attribute: **NIDMM_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - A string containing the manufacturer of the instrument. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Manufacturer** - - C Attribute: **NIDMM_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - A string containing the instrument model. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Model** - - C Attribute: **NIDMM_ATTR_INSTRUMENT_MODEL** - -instrument_product_id ---------------------- - - .. py:attribute:: instrument_product_id - - The PCI product ID. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Product ID** - - C Attribute: **NIDMM_ATTR_INSTRUMENT_PRODUCT_ID** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - A string containing the resource descriptor of the instrument. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:I/O Resource Descriptor** - - C Attribute: **NIDMM_ATTR_IO_RESOURCE_DESCRIPTOR** - -lc_calculation_model --------------------- - - .. py:attribute:: lc_calculation_model - - For the NI 4072 only, specifies the type of algorithm that the measurement processing uses for capacitance and inductance measurements. - - The following table lists the characteristics of this property. - - +----------------+--------------------------+ - | Characteristic | Value | - +================+==========================+ - | Datatype | enums.LCCalculationModel | - +----------------+--------------------------+ - | Permissions | read-write | - +----------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Advanced:Calculation Model** - - C Attribute: **NIDMM_ATTR_LC_CALCULATION_MODEL** - -lc_number_meas_to_average -------------------------- - - .. py:attribute:: lc_number_meas_to_average - - For the NI 4072 only, specifies the number of LC measurements that are averaged to produce one reading. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Number of LC Measurements To Average** - - C Attribute: **NIDMM_ATTR_LC_NUMBER_MEAS_TO_AVERAGE** - -logical_name ------------- - - .. py:attribute:: logical_name - - A string containing the logical name of the instrument. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NIDMM_ATTR_LOGICAL_NAME** - -meas_complete_dest ------------------- - - .. py:attribute:: meas_complete_dest - - Specifies the destination of the measurement complete (MC) signal. - The NI 4050 is not supported. - To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. - - The following table lists the characteristics of this property. - - +----------------+-------------------------------+ - | Characteristic | Value | - +================+===============================+ - | Datatype | enums.MeasurementCompleteDest | - +----------------+-------------------------------+ - | Permissions | read-write | - +----------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Trigger:Measurement Complete Dest** - - C Attribute: **NIDMM_ATTR_MEAS_COMPLETE_DEST** - -number_of_averages ------------------- - - .. py:attribute:: number_of_averages - - Specifies the number of averages to perform in a measurement. For the NI 4070/4071/4072, applies only when the aperture time is not set to AUTO and Auto Zero is ON. The default is 1. - The NI 4050 and NI 4060 are not supported. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Advanced:Number Of Averages** - - C Attribute: **NIDMM_ATTR_NUMBER_OF_AVERAGES** - -offset_comp_ohms ----------------- - - .. py:attribute:: offset_comp_ohms - - For the NI 4070/4071/4072 only, enables or disables offset compensated ohms. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Offset Compensated Ohms** - - C Attribute: **NIDMM_ATTR_OFFSET_COMP_OHMS** - -open_cable_comp_conductance ---------------------------- - - .. py:attribute:: open_cable_comp_conductance - - For the NI 4072 only, specifies the active part (conductance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. - Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Open Cable Compensation Values:Conductance** - - C Attribute: **NIDMM_ATTR_OPEN_CABLE_COMP_CONDUCTANCE** - -open_cable_comp_susceptance ---------------------------- - - .. py:attribute:: open_cable_comp_susceptance - - For the NI 4072 only, specifies the reactive part (susceptance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. - Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Open Cable Compensation Values:Susceptance** - - C Attribute: **NIDMM_ATTR_OPEN_CABLE_COMP_SUSCEPTANCE** - -operation_mode --------------- - - .. py:attribute:: operation_mode - - Specifies how the NI 4065 and NI 4070/4071/4072 acquire data. When you call :py:meth:`nidmm.Session.configure_measurement_digits`, NI-DMM sets this property to :py:data:`~nidmm.OperationMode.IVIDMM`. When you call :py:meth:`nidmm.Session.configure_waveform_acquisition`, NI-DMM sets this property to :py:data:`~nidmm.OperationMode.WAVEFORM`. If you are programming properties directly, you must set this property before setting other configuration properties. - - The following table lists the characteristics of this property. - - +----------------+---------------------+ - | Characteristic | Value | - +================+=====================+ - | Datatype | enums.OperationMode | - +----------------+---------------------+ - | Permissions | read-write | - +----------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Advanced:Operation Mode** - - C Attribute: **NIDMM_ATTR_OPERATION_MODE** - -powerline_freq --------------- - - .. py:attribute:: powerline_freq - - Specifies the powerline frequency. The NI 4050 and NI 4060 use this value to select an aperture time to reject powerline noise by selecting the appropriate internal sample clock and filter. The NI 4065 and NI 4070/4071/4072 use this value to select a timebase for setting the :py:attr:`nidmm.Session.aperture_time` property in powerline cycles (PLCs). - After configuring powerline frequency, set the :py:attr:`nidmm.Session.aperture_time_units` property to PLCs. When setting the :py:attr:`nidmm.Session.aperture_time` property, select the number of PLCs for the powerline frequency. For example, if powerline frequency = 50 Hz (or 20ms) and aperture time in PLCs = 5, then aperture time in Seconds = 20ms * 5 PLCs = 100 ms. Similarly, if powerline frequency = 60 Hz (or 16.667 ms) and aperture time in PLCs = 6, then aperture time in Seconds = 16.667 ms * 6 PLCs = 100 ms. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Powerline Frequency** - - C Attribute: **NIDMM_ATTR_POWERLINE_FREQ** - -range ------ - - .. py:attribute:: range - - Specifies the measurement range. Use positive values to represent the absolute value of the maximum expected measurement. The value is in units appropriate for the current value of the :py:attr:`nidmm.Session.method` property. For example, if :py:attr:`nidmm.Session.method` is set to :py:data:`~nidmm.NIDMM_VAL_VOLTS`, the units are volts. - The NI 4050 and NI 4060 only support Auto Range when the trigger and sample trigger is set to IMMEDIATE. - :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` -1.0 - NI-DMM performs an Auto Range before acquiring the measurement. - :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_OFF` -2.0 - NI-DMM sets the Range to the current :py:attr:`nidmm.Session.auto_range_value` and uses this range for all subsequent measurements until the measurement configuration is changed. - :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` -3.0 - NI-DMM performs an Auto Range before acquiring the next measurement. The :py:attr:`nidmm.Session.auto_range_value` is stored and used for all subsequent measurements until the measurement configuration is changed. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Range** - - C Attribute: **NIDMM_ATTR_RANGE** - -resolution_absolute -------------------- - - .. py:attribute:: resolution_absolute - - Specifies the measurement resolution in absolute units. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. - NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` property. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Absolute Resolution** - - C Attribute: **NIDMM_ATTR_RESOLUTION_ABSOLUTE** - -resolution_digits ------------------ - - .. py:attribute:: resolution_digits - - Specifies the measurement resolution in digits. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. - NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` property. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Digits Resolution** - - C Attribute: **NIDMM_ATTR_RESOLUTION_DIGITS** - -sample_count ------------- - - .. py:attribute:: sample_count - - Specifies the number of measurements the DMM takes each time it receives a trigger in a multiple point acquisition. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Multi Point Acquisition:Sample Count** - - C Attribute: **NIDMM_ATTR_SAMPLE_COUNT** - -sample_interval ---------------- - - .. py:attribute:: sample_interval - - Specifies the amount of time in seconds the DMM waits between measurement cycles. This property only applies when the :py:attr:`nidmm.Session.sample_trigger` property is set to INTERVAL. - On the NI 4060, the value for this property is used as the settling time. When this property is set to 0, the NI 4060 does not settle between measurement cycles. The onboard timing resolution is 1 µs on the NI 4060. - The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional delay. On the NI 4065 and NI 4070/4071/4072, the onboard timing resolution is 34.72 ns and the valid range is 0-149 s. - Only positive values are valid when setting the sample interval. - The NI 4050 is not supported. - - The following table lists the characteristics of this property. - - +----------------+-------------------------------------------------------------+ - | Characteristic | Value | - +================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +----------------+-------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Multi Point Acquisition:Sample Interval** - - C Attribute: **NIDMM_ATTR_SAMPLE_INTERVAL** - -sample_trigger --------------- - - .. py:attribute:: sample_trigger - - Specifies the sample trigger source. - To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. - - The following table lists the characteristics of this property. - - +----------------+---------------------+ - | Characteristic | Value | - +================+=====================+ - | Datatype | enums.SampleTrigger | - +----------------+---------------------+ - | Permissions | read-write | - +----------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Multi Point Acquisition:Sample Trigger** - - C Attribute: **NIDMM_ATTR_SAMPLE_TRIGGER** - -serial_number -------------- - - .. py:attribute:: serial_number - - A string containing the serial number of the instrument. This property corresponds to the serial number label that is attached to most products. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Serial Number** - - C Attribute: **NIDMM_ATTR_SERIAL_NUMBER** - -settle_time ------------ - - .. py:attribute:: settle_time - - Specifies the settling time in seconds. To override the default settling time, set this property. To return to the default, set this property to :py:data:`~nidmm.NIDMM_VAL_SETTLE_TIME_AUTO` (-1). - The NI 4050 and NI 4060 are not supported. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +----------------+-------------------------------------------------------------+ - | Characteristic | Value | - +================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +----------------+-------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Advanced:Settle Time** - - C Attribute: **NIDMM_ATTR_SETTLE_TIME** - -short_cable_comp_reactance --------------------------- - - .. py:attribute:: short_cable_comp_reactance - - For the NI 4072 only, represents the reactive part (reactance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. - Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Short Cable Compensation Values:Reactance** - - C Attribute: **NIDMM_ATTR_SHORT_CABLE_COMP_REACTANCE** - -short_cable_comp_resistance ---------------------------- - - .. py:attribute:: short_cable_comp_resistance - - For the NI 4072 only, represents the active part (resistance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. - Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Short Cable Compensation Values:Resistance** - - C Attribute: **NIDMM_ATTR_SHORT_CABLE_COMP_RESISTANCE** - -simulate --------- - - .. py:attribute:: simulate - - Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call IVI Get and Set methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. - The default value is False (0). Use the :py:meth:`nidmm.Session.__init__` method to override this setting. - Simulate can only be set within the InitWithOptions method. The property value cannot be changed outside of the method. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | bool | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** - - C Attribute: **NIDMM_ATTR_SIMULATE** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - A string containing a description of the specific driver. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Specific Driver Identification:Specific Driver Description** - - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -specific_driver_major_version ------------------------------ - - .. py:attribute:: specific_driver_major_version - - Returns the major version number of this instrument driver. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Version Info:Specific Driver Major Version** - - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_MAJOR_VERSION** - -specific_driver_minor_version ------------------------------ - - .. py:attribute:: specific_driver_minor_version - - The minor version number of this instrument driver. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Version Info:Specific Driver Minor Version** - - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_MINOR_VERSION** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - A string that contains additional version information about this specific instrument driver. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Version Info:Specific Driver Revision** - - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - A string containing the vendor of the specific driver. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Specific Driver Identification:Specific Driver Vendor** - - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_VENDOR** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - A string containing the instrument models supported by the specific driver. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Specific Driver Capabilities:Supported Instrument Models** - - C Attribute: **NIDMM_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -temp_rtd_a ----------- - - .. py:attribute:: temp_rtd_a - - Specifies the Callendar-Van Dusen A coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is 3.9083e-3 (Pt3851). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD A** - - C Attribute: **NIDMM_ATTR_TEMP_RTD_A** - -temp_rtd_b ----------- - - .. py:attribute:: temp_rtd_b - - Specifies the Callendar-Van Dusen B coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -5.775e-7(Pt3851). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD B** - - C Attribute: **NIDMM_ATTR_TEMP_RTD_B** - -temp_rtd_c ----------- - - .. py:attribute:: temp_rtd_c - - Specifies the Callendar-Van Dusen C coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -4.183e-12(Pt3851). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD C** - - C Attribute: **NIDMM_ATTR_TEMP_RTD_C** - -temp_rtd_res ------------- - - .. py:attribute:: temp_rtd_res - - Specifies the RTD resistance at 0 degrees Celsius. This applies to all supported RTDs, including custom RTDs. The default value is 100 (?). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD Resistance** - - C Attribute: **NIDMM_ATTR_TEMP_RTD_RES** - -temp_rtd_type -------------- - - .. py:attribute:: temp_rtd_type - - Specifies the type of RTD used to measure temperature. The default value is :py:data:`~nidmm.RTDType.PT3851`. - Refer to the :py:attr:`nidmm.Session.temp_rtd_type` topic in the NI Digital Multimeters Help for additional information about defined values. - - The following table lists the characteristics of this property. - - +----------------+---------------+ - | Characteristic | Value | - +================+===============+ - | Datatype | enums.RTDType | - +----------------+---------------+ - | Permissions | read-write | - +----------------+---------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD Type** - - C Attribute: **NIDMM_ATTR_TEMP_RTD_TYPE** - -temp_tc_fixed_ref_junc ----------------------- - - .. py:attribute:: temp_tc_fixed_ref_junc - - Specifies the reference junction temperature when a fixed reference junction is used to take a thermocouple measurement. The default value is 25.0 (°C). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermocouple:Fixed Reference Junction** - - C Attribute: **NIDMM_ATTR_TEMP_TC_FIXED_REF_JUNC** - -temp_tc_ref_junc_type ---------------------- - - .. py:attribute:: temp_tc_ref_junc_type - - Specifies the type of reference junction to be used in the reference junction compensation of a thermocouple. The only supported value, :py:data:`~nidmm.ThermocoupleReferenceJunctionType.FIXED`, is fixed. - - The following table lists the characteristics of this property. - - +----------------+-----------------------------------------+ - | Characteristic | Value | - +================+=========================================+ - | Datatype | enums.ThermocoupleReferenceJunctionType | - +----------------+-----------------------------------------+ - | Permissions | read-write | - +----------------+-----------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermocouple:Reference Junction Type** - - C Attribute: **NIDMM_ATTR_TEMP_TC_REF_JUNC_TYPE** - -temp_tc_type ------------- - - .. py:attribute:: temp_tc_type - - Specifies the type of thermocouple used to measure the temperature. The default value is :py:data:`~nidmm.ThermocoupleType.J`. - - The following table lists the characteristics of this property. - - +----------------+------------------------+ - | Characteristic | Value | - +================+========================+ - | Datatype | enums.ThermocoupleType | - +----------------+------------------------+ - | Permissions | read-write | - +----------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermocouple:Thermocouple Type** - - C Attribute: **NIDMM_ATTR_TEMP_TC_TYPE** - -temp_thermistor_a ------------------ - - .. py:attribute:: temp_thermistor_a - - Specifies the Steinhart-Hart A coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 0.0010295 (44006). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor A** - - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_A** - -temp_thermistor_b ------------------ - - .. py:attribute:: temp_thermistor_b - - Specifies the Steinhart-Hart B coefficient for thermistor scaling when the Thermistor Type proerty is set to Custom. The default value is 0.0002391 (44006). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor B** - - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_B** - -temp_thermistor_c ------------------ - - .. py:attribute:: temp_thermistor_c - - Specifies the Steinhart-Hart C coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 1.568e-7 (44006). - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor C** - - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_C** - -temp_thermistor_type --------------------- - - .. py:attribute:: temp_thermistor_type - - Specifies the type of thermistor used to measure the temperature. The default value is :py:data:`~nidmm.ThermistorType.THERMISTOR_44006`. - Refer to the :py:attr:`nidmm.Session.temp_thermistor_type` topic in the NI Digital Multimeters Help for additional information about defined values. - - The following table lists the characteristics of this property. - - +----------------+----------------------+ - | Characteristic | Value | - +================+======================+ - | Datatype | enums.ThermistorType | - +----------------+----------------------+ - | Permissions | read-write | - +----------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor Type** - - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_TYPE** - -temp_transducer_type --------------------- - - .. py:attribute:: temp_transducer_type - - Specifies the type of device used to measure the temperature. The default value is :py:data:`~nidmm.NIDMM_VAL_4_THERMOCOUPLE`. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +----------------+----------------------+ - | Characteristic | Value | - +================+======================+ - | Datatype | enums.TransducerType | - +----------------+----------------------+ - | Permissions | read-write | - +----------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Configuration:Measurement Options:Temperature:Transducer Type** - - C Attribute: **NIDMM_ATTR_TEMP_TRANSDUCER_TYPE** - -trigger_count -------------- - - .. py:attribute:: trigger_count - - Specifies the number of triggers the DMM receives before returning to the Idle state. - This property can be set to any positive ViInt32 value for the NI 4065 and NI 4070/4071/4072. - The NI 4050 and NI 4060 support this property being set to 1. - Refer to the Multiple Point Acquisitions section of the NI Digital Multimeters Help for more information. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Multi Point Acquisition:Trigger Count** - - C Attribute: **NIDMM_ATTR_TRIGGER_COUNT** - -trigger_delay -------------- - - .. py:attribute:: trigger_delay - - Specifies the time (in seconds) that the DMM waits after it has received a trigger before taking a measurement. The default value is AUTO DELAY (-1), which means that the DMM waits an appropriate settling time before taking the measurement. (-1) signifies that AUTO DELAY is on, and (-2) signifies that AUTO DELAY is off. - The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional settling time. For the The NI 4065 and NI 4070/4071/4072, the valid range for Trigger Delay is AUTO DELAY (-1) or 0.0-149.0 seconds and the onboard timing resolution is 34.72 ns. - On the NI 4060, if this property is set to 0, the DMM does not settle before taking the measurement. On the NI 4060, the valid range for AUTO DELAY (-1) is 0.0-12.0 seconds and the onboard timing resolution is 100 ms. - When using the NI 4050, this property must be set to AUTO DELAY (-1). - Use positive values to set the trigger delay in seconds. - Valid Range: :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` (-1.0), 0.0-12.0 seconds (NI 4060 only) - Default Value: :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +----------------+-------------------------------------------------------------+ - | Characteristic | Value | - +================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +----------------+-------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Trigger:Trigger Delay** - - C Attribute: **NIDMM_ATTR_TRIGGER_DELAY** - -trigger_source --------------- - - .. py:attribute:: trigger_source - - Specifies the trigger source. When :py:meth:`nidmm.Session._initiate` is called, the DMM waits for the trigger specified with this property. After it receives the trigger, the DMM waits the length of time specified with the :py:attr:`nidmm.Session.trigger_delay` property. The DMM then takes a measurement. - This property is not supported on the NI 4050. - To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. - - The following table lists the characteristics of this property. - - +----------------+---------------------+ - | Characteristic | Value | - +================+=====================+ - | Datatype | enums.TriggerSource | - +----------------+---------------------+ - | Permissions | read-write | - +----------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Trigger:Trigger Source** - - C Attribute: **NIDMM_ATTR_TRIGGER_SOURCE** - -waveform_coupling ------------------ - - .. py:attribute:: waveform_coupling - - For the NI 4070/4071/4072 only, specifies the coupling during a waveform acquisition. - - The following table lists the characteristics of this property. - - +----------------+------------------------+ - | Characteristic | Value | - +================+========================+ - | Datatype | enums.WaveformCoupling | - +----------------+------------------------+ - | Permissions | read-write | - +----------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Acquisition:Waveform Coupling** - - C Attribute: **NIDMM_ATTR_WAVEFORM_COUPLING** - -waveform_points ---------------- - - .. py:attribute:: waveform_points - - For the NI 4070/4071/4072 only, specifies the number of points to acquire in a waveform acquisition. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | int | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Acquisition:Waveform Points** - - C Attribute: **NIDMM_ATTR_WAVEFORM_POINTS** - -waveform_rate -------------- - - .. py:attribute:: waveform_rate - - For the NI 4070/4071/4072 only, specifies the rate of the waveform acquisition in Samples per second (S/s). The valid Range is 10.0-1,800,000 S/s. Values are coerced to the closest integer divisor of 1,800,000. The default value is 1,800,000. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | float | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Acquisition:Waveform Rate** - - C Attribute: **NIDMM_ATTR_WAVEFORM_RATE** - - -.. contents:: Session diff --git a/docs/nidmm/conf.py b/docs/nidmm/conf.py deleted file mode 100644 index 28f34b549d..0000000000 --- a/docs/nidmm/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-DMM Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-DMM Python API' -copyright = '2017-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIDMMPythonAPI.tex', 'NI-DMM Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nidmmpythonapi', 'NI-DMM Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIDMMPythonAPI', 'NI-DMM Python API Documentation', - author, 'NIDMMPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nidmm/enums.rst b/docs/nidmm/enums.rst deleted file mode 100644 index 3241e06231..0000000000 --- a/docs/nidmm/enums.rst +++ /dev/null @@ -1,1182 +0,0 @@ -Enums -===== - -Enums used in NI-DMM - -.. py:currentmodule:: nidmm - - -ADCCalibration --------------- - -.. py:class:: ADCCalibration - - .. py:attribute:: ADCCalibration.AUTO - - - - The DMM enables or disables ADC calibration for you. - - - - - - .. py:attribute:: ADCCalibration.OFF - - - - The DMM does not compensate for changes to the gain. - - - - - - .. py:attribute:: ADCCalibration.ON - - - - The DMM measures an internal reference to calculate the correct gain for the measurement. - - - - - -AcquisitionStatus ------------------ - -.. py:class:: AcquisitionStatus - - .. py:attribute:: AcquisitionStatus.RUNNING - - - - Running - - - - - - .. py:attribute:: AcquisitionStatus.FINISHED_WITH_BACKLOG - - - - Finished with **Backlog** - - - - - - .. py:attribute:: AcquisitionStatus.FINISHED_WITH_NO_BACKLOG - - - - Finished with no **Backlog** - - - - - - .. py:attribute:: AcquisitionStatus.PAUSED - - - - Paused - - - - - - .. py:attribute:: AcquisitionStatus.NO_ACQUISITION_IN_PROGRESS - - - - No acquisition in progress - - - - - -ApertureTimeUnits ------------------ - -.. py:class:: ApertureTimeUnits - - .. py:attribute:: ApertureTimeUnits.SECONDS - - - - Seconds - - - - - - .. py:attribute:: ApertureTimeUnits.POWER_LINE_CYCLES - - - - Powerline Cycles - - - - - -AutoZero --------- - -.. py:class:: AutoZero - - .. py:attribute:: AutoZero.AUTO - - - - The drivers chooses the AutoZero setting based on the configured method and resolution. - - - - - - .. py:attribute:: AutoZero.OFF - - - - Disables AutoZero. - - - - - - .. py:attribute:: AutoZero.ON - - - - The DMM internally disconnects the input signal following each measurement and takes a zero reading. It then subtracts the zero reading from the preceding reading. - - - - - - .. py:attribute:: AutoZero.ONCE - - - - The DMM internally disconnects the input signal for the first measurement and takes a zero reading. It then subtracts the zero reading from the first reading and the following readings. - - - - - -CableCompensationType ---------------------- - -.. py:class:: CableCompensationType - - .. py:attribute:: CableCompensationType.NONE - - - - No Cable Compensation - - - - - - .. py:attribute:: CableCompensationType.OPEN - - - - Open Cable Compensation - - - - - - .. py:attribute:: CableCompensationType.SHORT - - - - Short Cable Compensation - - - - - - .. py:attribute:: CableCompensationType.OPEN_AND_SHORT - - - - Open and Short Cable Compensation - - - - - -DCNoiseRejection ----------------- - -.. py:class:: DCNoiseRejection - - .. py:attribute:: DCNoiseRejection.AUTO - - - - The driver chooses the DC noise rejection setting based on the configured method and resolution. - - - - - - .. py:attribute:: DCNoiseRejection.NORMAL - - - - NI-DMM weighs all samples equally. - - - - - - .. py:attribute:: DCNoiseRejection.SECOND_ORDER - - - - NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a triangular weighing method. - - - - - - .. py:attribute:: DCNoiseRejection.HIGH_ORDER - - - - NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a bell-curve weighing method. - - - - - -Function --------- - -.. py:class:: Function - - .. py:attribute:: Function.DC_VOLTS - - - - DC Voltage - - - - - - .. py:attribute:: Function.AC_VOLTS - - - - AC Voltage - - - - - - .. py:attribute:: Function.DC_CURRENT - - - - DC Current - - - - - - .. py:attribute:: Function.AC_CURRENT - - - - AC Current - - - - - - .. py:attribute:: Function.TWO_WIRE_RES - - - - 2-Wire Resistance - - - - - - .. py:attribute:: Function.FOUR_WIRE_RES - - - - 4-Wire Resistance - - - - - - .. py:attribute:: Function.FREQ - - - - Frequency - - - - - - .. py:attribute:: Function.PERIOD - - - - Period - - - - - - .. py:attribute:: Function.TEMPERATURE - - - - NI 4065, NI 4070/4071/4072, and NI 4080/4081/4182 supported. - - - - - - .. py:attribute:: Function.AC_VOLTS_DC_COUPLED - - - - AC Voltage with DC Coupling - - - - - - .. py:attribute:: Function.DIODE - - - - Diode - - - - - - .. py:attribute:: Function.WAVEFORM_VOLTAGE - - - - Waveform voltage - - - - - - .. py:attribute:: Function.WAVEFORM_CURRENT - - - - Waveform current - - - - - - .. py:attribute:: Function.CAPACITANCE - - - - Capacitance - - - - - - .. py:attribute:: Function.INDUCTANCE - - - - Inductance - - - - - -LCCalculationModel ------------------- - -.. py:class:: LCCalculationModel - - .. py:attribute:: LCCalculationModel.AUTO - - - - NI-DMM chooses the algorithm based on method and range - - - - - - .. py:attribute:: LCCalculationModel.SERIES - - - - NI-DMM uses the series impedance model to calculate capacitance and inductance - - - - - - .. py:attribute:: LCCalculationModel.PARALLEL - - - - NI-DMM uses the parallel admittance model to calculate capacitance and inductance - - - - - -MeasurementCompleteDest ------------------------ - -.. py:class:: MeasurementCompleteDest - - .. py:attribute:: MeasurementCompleteDest.NONE - - - - No Trigger - - - - - - .. py:attribute:: MeasurementCompleteDest.EXTERNAL - - - - AUX I/O Connector - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG0 - - - - PXI Trigger Line 0 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG1 - - - - PXI Trigger Line 1 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG2 - - - - PXI Trigger Line 2 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG3 - - - - PXI Trigger Line 3 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG4 - - - - PXI Trigger Line 4 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG5 - - - - PXI Trigger Line 5 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG6 - - - - PXI Trigger Line 6 - - - - - - .. py:attribute:: MeasurementCompleteDest.PXI_TRIG7 - - - - PXI Trigger Line 7 - - - - - - .. py:attribute:: MeasurementCompleteDest.LBR_TRIG0 - - - - Internal Trigger Line of a PXI/SCXI Combination Chassis - - - - - -OperationMode -------------- - -.. py:class:: OperationMode - - .. py:attribute:: OperationMode.IVIDMM - - - - IviDmm Mode - - - - - - .. py:attribute:: OperationMode.WAVEFORM - - - - Waveform acquisition mode - - - - - -RTDType -------- - -.. py:class:: RTDType - - .. py:attribute:: RTDType.CUSTOM - - - - Performs Callendar-Van Dusen RTD scaling with the user-specified A, B, - and C coefficients. - - - - - - .. py:attribute:: RTDType.PT3750 - - - - Performs scaling for a Pt 3750 RTD. - - - - - - .. py:attribute:: RTDType.PT3851 - - - - Performs scaling for a Pt 3851 RTD. - - - - - - .. py:attribute:: RTDType.PT3911 - - - - Performs scaling for a Pt 3911 RTD. - - - - - - .. py:attribute:: RTDType.PT3916 - - - - Performs scaling for a Pt 3916 RTD. - - - - - - .. py:attribute:: RTDType.PT3920 - - - - Performs scaling for a Pt 3920 RTD. - - - - - - .. py:attribute:: RTDType.PT3928 - - - - Performs scaling for a Pt 3928 RTD. - - - - - -SampleTrigger -------------- - -.. py:class:: SampleTrigger - - .. py:attribute:: SampleTrigger.IMMEDIATE - - - - No Trigger - - - - - - .. py:attribute:: SampleTrigger.EXTERNAL - - - - AUX I/O Connector Trigger Line 0 - - - - - - .. py:attribute:: SampleTrigger.SOFTWARE_TRIG - - - - Software Trigger - - - - - - .. py:attribute:: SampleTrigger.INTERVAL - - - - Interval Trigger - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG0 - - - - PXI Trigger Line 0 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG1 - - - - PXI Trigger Line 1 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG2 - - - - PXI Trigger Line 2 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG3 - - - - PXI Trigger Line 3 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG4 - - - - PXI Trigger Line 4 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG5 - - - - PXI Trigger Line 5 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG6 - - - - PXI Trigger Line 6 - - - - - - .. py:attribute:: SampleTrigger.PXI_TRIG7 - - - - PXI Trigger Line 7 - - - - - - .. py:attribute:: SampleTrigger.PXI_STAR - - - - PXI Star Trigger Line - - - - - - .. py:attribute:: SampleTrigger.AUX_TRIG1 - - - - AUX I/0 Connector Trigger Line 1 - - - - - - .. py:attribute:: SampleTrigger.LBR_TRIG1 - - - - Internal Trigger Line of a PXI/SCXI Combination Chassis - - - - - -ThermistorType --------------- - -.. py:class:: ThermistorType - - .. py:attribute:: ThermistorType.CUSTOM - - - - Custom - - - - - - .. py:attribute:: ThermistorType.THERMISTOR_44004 - - - - 44004 - - - - - - .. py:attribute:: ThermistorType.THERMISTOR_44006 - - - - 44006 - - - - - - .. py:attribute:: ThermistorType.THERMISTOR_44007 - - - - 44007 - - - - - -ThermocoupleReferenceJunctionType ---------------------------------- - -.. py:class:: ThermocoupleReferenceJunctionType - - .. py:attribute:: ThermocoupleReferenceJunctionType.FIXED - - - - Thermocouple reference juction is fixed at the user-specified - temperature. - - - - - -ThermocoupleType ----------------- - -.. py:class:: ThermocoupleType - - .. py:attribute:: ThermocoupleType.B - - - - Thermocouple type B - - - - - - .. py:attribute:: ThermocoupleType.E - - - - Thermocouple type E - - - - - - .. py:attribute:: ThermocoupleType.J - - - - Thermocouple type J - - - - - - .. py:attribute:: ThermocoupleType.K - - - - Thermocouple type K - - - - - - .. py:attribute:: ThermocoupleType.N - - - - Thermocouple type N - - - - - - .. py:attribute:: ThermocoupleType.R - - - - Thermocouple type R - - - - - - .. py:attribute:: ThermocoupleType.S - - - - Thermocouple type S - - - - - - .. py:attribute:: ThermocoupleType.T - - - - Thermocouple type T - - - - - -TransducerType --------------- - -.. py:class:: TransducerType - - .. py:attribute:: TransducerType.THERMOCOUPLE - - - - Thermocouple - - - - - - .. py:attribute:: TransducerType.THERMISTOR - - - - Thermistor - - - - - - .. py:attribute:: TransducerType.TWO_WIRE_RTD - - - - 2-wire RTD - - - - - - .. py:attribute:: TransducerType.FOUR_WIRE_RTD - - - - 4-wire RTD - - - - - -TriggerSource -------------- - -.. py:class:: TriggerSource - - .. py:attribute:: TriggerSource.IMMEDIATE - - - - No Trigger - - - - - - .. py:attribute:: TriggerSource.EXTERNAL - - - - AUX I/O Connector Trigger Line 0 - - - - - - .. py:attribute:: TriggerSource.SOFTWARE_TRIG - - - - Software Trigger - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG0 - - - - PXI Trigger Line 0 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG1 - - - - PXI Trigger Line 1 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG2 - - - - PXI Trigger Line 2 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG3 - - - - PXI Trigger Line 3 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG4 - - - - PXI Trigger Line 4 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG5 - - - - PXI Trigger Line 5 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG6 - - - - PXI Trigger Line 6 - - - - - - .. py:attribute:: TriggerSource.PXI_TRIG7 - - - - PXI Trigger Line 7 - - - - - - .. py:attribute:: TriggerSource.PXI_STAR - - - - PXI Star Trigger Line - - - - - - .. py:attribute:: TriggerSource.AUX_TRIG1 - - - - AUX I/O Connector Trigger Line 1 - - - - - - .. py:attribute:: TriggerSource.LBR_TRIG1 - - - - Internal Trigger Line of a PXI/SCXI Combination Chassis - - - - - -WaveformCoupling ----------------- - -.. py:class:: WaveformCoupling - - .. py:attribute:: WaveformCoupling.AC - - - - AC Coupled - - - - - - .. py:attribute:: WaveformCoupling.DC - - - - DC Coupled - - - - - - - diff --git a/docs/nidmm/errors.rst b/docs/nidmm/errors.rst deleted file mode 100644 index beb02a179c..0000000000 --- a/docs/nidmm/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nidmm.errors - - .. exception:: Error - - Base exception type that all NI-DMM exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nidmm.errors - - .. exception:: DriverError - - An error originating from the NI-DMM driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nidmm.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nidmm.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nidmm.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-DMM driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nidmm.errors - - .. exception:: DriverTooNewError - - An error due to the NI-DMM driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nidmm.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: nidmm.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: nidmm.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: nidmm.errors - - .. exception:: DriverWarning - - A warning originating from the NI-DMM driver - - - diff --git a/docs/nidmm/examples.rst b/docs/nidmm/examples.rst deleted file mode 100644 index 8aeb38ce95..0000000000 --- a/docs/nidmm/examples.rst +++ /dev/null @@ -1,131 +0,0 @@ -Examples -======== - -`You can download all nidmm examples for latest version here `_ - -nidmm_cont_acq_chart_multiple_samples.py ----------------------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_cont_acq_chart_multiple_samples.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_cont_acq_chart_multiple_samples.py) `_ - -nidmm_cont_acq_multiple_samples_ext_trig.py -------------------------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_cont_acq_multiple_samples_ext_trig.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_cont_acq_multiple_samples_ext_trig.py) `_ - -nidmm_diode_test.py -------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_diode_test.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_diode_test.py) `_ - -nidmm_fetch_waveform.py ------------------------ - -.. literalinclude:: ../../src/nidmm/examples/nidmm_fetch_waveform.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_fetch_waveform.py) `_ - -nidmm_improve_dc_noise_rejection.py ------------------------------------ - -.. literalinclude:: ../../src/nidmm/examples/nidmm_improve_dc_noise_rejection.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_improve_dc_noise_rejection.py) `_ - -nidmm_max_dc_reading_rate_at_7_5_digits.py ------------------------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_max_dc_reading_rate_at_7_5_digits.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_max_dc_reading_rate_at_7_5_digits.py) `_ - -nidmm_measure_ac_volts.py -------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_ac_volts.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measure_ac_volts.py) `_ - -nidmm_measure_capacitance.py ----------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_capacitance.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measure_capacitance.py) `_ - -nidmm_measure_frequency.py --------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_frequency.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measure_frequency.py) `_ - -nidmm_measure_temperature_rtd.py --------------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_temperature_rtd.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measure_temperature_rtd.py) `_ - -nidmm_measure_temperature_thermistor.py ---------------------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_temperature_thermistor.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measure_temperature_thermistor.py) `_ - -nidmm_measure_temperature_thermocouple.py ------------------------------------------ - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_temperature_thermocouple.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measure_temperature_thermocouple.py) `_ - -nidmm_measurement.py --------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_measurement.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_measurement.py) `_ - -nidmm_multi_point_measurement.py --------------------------------- - -.. literalinclude:: ../../src/nidmm/examples/nidmm_multi_point_measurement.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidmm_multi_point_measurement.py) `_ - diff --git a/docs/nidmm/grpc_session_options.rst b/docs/nidmm/grpc_session_options.rst deleted file mode 100644 index 97a6f481be..0000000000 --- a/docs/nidmm/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-DMM over gRPC - -.. py:currentmodule:: nidmm - - - -Creating a gRPC channel ------------------------ - -Using NI-DMM over gRPC requires the ``grpc`` extra:: - - $ python -m pip install nidmm[grpc] - -Every NI-DMM gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`nidmm.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-DMM runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import nidmm - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = nidmm.GrpcSessionOptions(channel, '') - with nidmm.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`nidmm.SessionInitializationBehavior` diff --git a/docs/nidmm/index.rst b/docs/nidmm/index.rst deleted file mode 100644 index 05d0f629db..0000000000 --- a/docs/nidmm/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-DMM Python API Documentation -=============================== - -.. include:: about_nidmm.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nidmm - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nidmm/installation.inc b/docs/nidmm/installation.inc deleted file mode 100644 index 6f6988efe4..0000000000 --- a/docs/nidmm/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nidmm_installation-section: - -Installation ------------- - -As a prerequisite to using the **nidmm** module, you must install the NI-DMM runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-DMM**) can be installed with `pip `_:: - - $ python -m pip install nidmm - - diff --git a/docs/nidmm/nidmm.rst b/docs/nidmm/nidmm.rst deleted file mode 100644 index 671834d1c3..0000000000 --- a/docs/nidmm/nidmm.rst +++ /dev/null @@ -1,9 +0,0 @@ -nidmm module -============ - -.. include:: installation.inc - -.. include:: ../_static/nidmm_usage.inc - -.. include:: toc.inc - diff --git a/docs/nidmm/status.inc b/docs/nidmm/status.inc deleted file mode 100644 index 0105fcaac5..0000000000 --- a/docs/nidmm/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-DMM Python API Status ------------------------- - -+-------------------------------+----------------------+ -| NI-DMM (nidmm) | | -+===============================+======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+----------------------+ -| PyPI Version | |nidmmLatestVersion| | -+-------------------------------+----------------------+ -| Supported Python Version | |nidmmPythonVersion| | -+-------------------------------+----------------------+ -| Documentation | |nidmmDocs| | -+-------------------------------+----------------------+ -| Open Issues | |nidmmOpenIssues| | -+-------------------------------+----------------------+ -| Open Pull Requests | |nidmmOpenPRs| | -+-------------------------------+----------------------+ - - -.. |nidmmLatestVersion| image:: http://img.shields.io/pypi/v/nidmm.svg - :alt: Latest NI-DMM Version - :target: http://pypi.python.org/pypi/nidmm - - -.. |nidmmPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidmm.svg - :alt: NI-DMM supported Python versions - :target: http://pypi.python.org/pypi/nidmm - - -.. |nidmmDocs| image:: https://readthedocs.org/projects/nidmm/badge/?version=latest - :alt: NI-DMM Python API Documentation Status - :target: https://nidmm.readthedocs.io/en/latest - - -.. |nidmmOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidmm.svg - :alt: Open Issues + Pull Requests for NI-DMM - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidmm - - -.. |nidmmOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidmm.svg - :alt: Pull Requests for NI-DMM - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidmm - - diff --git a/docs/nidmm/toc.inc b/docs/nidmm/toc.inc deleted file mode 100644 index df05959018..0000000000 --- a/docs/nidmm/toc.inc +++ /dev/null @@ -1,11 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - enums - errors - examples - grpc_session_options - diff --git a/docs/nifgen/.readthedocs.yaml b/docs/nifgen/.readthedocs.yaml deleted file mode 100644 index f0502718c0..0000000000 --- a/docs/nifgen/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nifgen/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nifgen/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nifgen/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nifgen/about_nifgen.inc b/docs/nifgen/about_nifgen.inc deleted file mode 100644 index d2c4095c7d..0000000000 --- a/docs/nifgen/about_nifgen.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nifgen** module provides a Python API for NI-FGEN. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nifgen** supports all the Operating Systems supported by NI-FGEN. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nifgen**. - diff --git a/docs/nifgen/class.rst b/docs/nifgen/class.rst deleted file mode 100644 index bafcc8a63e..0000000000 --- a/docs/nifgen/class.rst +++ /dev/null @@ -1,6185 +0,0 @@ -.. py:module:: nifgen - -Session -======= - -.. py:class:: Session(self, resource_name, channel_name=None, reset_device=False, options={}, *, grpc_options=None) - - - - Creates and returns a new NI-FGEN session to the specified channel of a - waveform generator that is used in all subsequent NI-FGEN method - calls. - - - - - - :param resource_name: - - - .. caution:: Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. - However, all IVI names, such as logical names, are case-sensitive. If - you use logical names, driver session names, or virtual names in your - program, you must ensure that the name you use matches the name in the - IVI Configuration Store file exactly, without any variations in the case - of the characters. - - | Specifies the resource name of the device to initialize. - - For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is - the device number assigned by MAX, as shown in Example 1. - - For NI-DAQmx devices, the syntax is just the device name specified in - MAX, as shown in Example 2. Typical default names for NI-DAQmx devices - in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by - right-clicking on the name in MAX and entering a new name. - - An alternate syntax for NI-DAQmx devices consists of DAQ::\ *NI-DAQmx - device name*, as shown in Example 3. This naming convention allows for - the use of an NI-DAQmx device in an application that was originally - designed for a Traditional NI-DAQ device. For example, if the - application expects DAQ::1, you can rename the NI-DAQmx device to 1 in - MAX and pass in DAQ::1 for the resource name, as shown in Example 4. - - If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already - exists with that same name, the NI-DAQmx device is matched first. - - You can also pass in the name of an IVI logical name or an IVI virtual - name configured with the IVI Configuration utility, as shown in Example - 5. A logical name identifies a particular virtual instrument. A virtual - name identifies a specific device and specifies the initial settings for - the session. - - +-----------+--------------------------------------+------------------------+---------------------------------+ - | Example # | Device Type | Syntax | Variable | - +===========+======================================+========================+=================================+ - | 1 | Traditional NI-DAQ device | DAQ::\ *1* | (*1* = device number) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 2 | NI-DAQmx device | *myDAQmxDevice* | (*myDAQmxDevice* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 3 | NI-DAQmx device | DAQ::\ *myDAQmxDevice* | (*myDAQmxDevice* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 4 | NI-DAQmx device | DAQ::\ *2* | (*2* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 5 | IVI logical name or IVI virtual name | *myLogicalName* | (*myLogicalName* = name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - - - :type resource_name: str - - :param channel_name: - - - Specifies the channel that this VI uses. - - **Default Value**: "0" - - - - - :type channel_name: str, list, range, tuple - - :param reset_device: - - - Specifies whether you want to reset the device during the initialization - procedure. True specifies that the device is reset and performs the - same method as the :py:meth:`nifgen.Session.Reset` method. - - ****Defined Values**** - - **Default Value**: False - - +-------+---------------------+ - | True | Reset device | - +-------+---------------------+ - | False | Do not reset device | - +-------+---------------------+ - - - :type reset_device: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: nifgen.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: abort() - - Aborts any previously initiated signal generation. Call the - :py:meth:`nifgen.Session.initiate` method to cause the signal generator to - produce a signal again. - - - - - -allocate_named_waveform ------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: allocate_named_waveform(waveform_name, waveform_size) - - Specifies the size of a named waveform up front so that it can be - allocated in onboard memory before loading the associated data. Data can - then be loaded in smaller blocks with the niFgen Write (Binary16) - Waveform methods. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].allocate_named_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.allocate_named_waveform` - - - :param waveform_name: - - - Specifies the name to associate with the allocated waveform. - - - - - :type waveform_name: str - :param waveform_size: - - - Specifies the size of the waveform to allocate in samples. - - **Default Value**: "4096" - - - - - :type waveform_size: int - -allocate_waveform ------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: allocate_waveform(waveform_size) - - Specifies the size of a waveform so that it can be allocated in onboard - memory before loading the associated data. Data can then be loaded in - smaller blocks with the Write Binary 16 Waveform methods. - - - - .. note:: The signal generator must not be in the Generating state when you call - this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].allocate_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.allocate_waveform` - - - :param waveform_size: - - - Specifies, in samples, the size of the waveform to allocate. - - - - - :type waveform_size: int - - :rtype: int - :return: - - - The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - - - - -clear_arb_memory ----------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: clear_arb_memory() - - Removes all previously created arbitrary waveforms, sequences, and - scripts from the signal generator memory and invalidates all waveform - handles, sequence handles, and waveform names. - - - - .. note:: The signal generator must not be in the Generating state when you - call this method. - - - -clear_arb_sequence ------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: clear_arb_sequence(sequence_handle) - - Removes a previously created arbitrary sequence from the signal - generator memory and invalidates the sequence handle. - - - - .. note:: The signal generator must not be in the Generating state when you - call this method. - - - - :param sequence_handle: - - - Specifies the handle of the arbitrary sequence that you want the signal - generator to remove. You can create an arbitrary sequence using the - :py:meth:`nifgen.Session.create_arb_sequence` or :py:meth:`nifgen.Session.create_advanced_arb_sequence` method. - These methods return a handle that you use to identify the sequence. - - | **Defined Value**: - | :py:data:`~nifgen.NIFGEN_VAL_ALL_SEQUENCES`—Remove all sequences from the signal - generator - - **Default Value**: None - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type sequence_handle: int - -clear_freq_list ---------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: clear_freq_list(frequency_list_handle) - - Removes a previously created frequency list from the signal generator - memory and invalidates the frequency list handle. - - - - .. note:: The signal generator must not be in the Generating state when you - call this method. - - - - :param frequency_list_handle: - - - Specifies the handle of the frequency list you want the signal generator - to remove. You create multiple frequency lists using - :py:meth:`nifgen.Session.create_freq_list`. :py:meth:`nifgen.Session.create_freq_list` returns a handle that you - use to identify each list. Specify a value of -1 to clear all frequency - lists. - - **Defined Value** - - :py:data:`~nifgen.NIFGEN_VAL_ALL_FLISTS`—Remove all frequency lists from the signal - generator. - - **Default Value**: None - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type frequency_list_handle: int - -clear_user_standard_waveform ----------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: clear_user_standard_waveform() - - Clears the user-defined waveform created by the - :py:meth:`nifgen.Session.define_user_standard_waveform` method. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_user_standard_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.clear_user_standard_waveform` - - -close ------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: close() - - Performs the following operations: - - - Closes the instrument I/O session. - - Destroys the NI-FGEN session and all of its properties. - - Deallocates any memory resources NI-FGEN uses. - - Not all signal routes established by calling the :py:meth:`nifgen.Session.ExportSignal` - and :py:meth:`nifgen.Session.RouteSignalOut` methods are released when the NI-FGEN - session is closed. The following table shows what happens to a signal - route on your device when you call the :py:meth:`nifgen.Session._close` method. - - +--------------------+-------------------+------------------+ - | Routes To | NI 5401/5411/5431 | Other Devices | - +====================+===================+==================+ - | Front Panel | Remain connected | Remain connected | - +--------------------+-------------------+------------------+ - | RTSI/PXI Backplane | Remain connected | Disconnected | - +--------------------+-------------------+------------------+ - - .. note:: After calling :py:meth:`nifgen.Session._close`, you cannot use NI-FGEN again until you - call the :py:meth:`nifgen.Session.init` or :py:meth:`nifgen.Session.InitWithOptions` methods. - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: commit() - - Causes a transition to the Committed state. This method verifies - property values, reserves the device, and commits the property values - to the device. If the property values are all valid, NI-FGEN sets the - device hardware configuration to match the session configuration. This - method does not support the NI 5401/5404/5411/5431 signal generators. - - In the Committed state, you can load waveforms, scripts, and sequences - into memory. If any properties are changed, NI-FGEN implicitly - transitions back to the Idle state, where you can program all session - properties before applying them to the device. This method has no - effect if the device is already in the Committed or Generating state and - returns a successful status value. - - Calling this VI before the niFgen Initiate Generation VI is optional but - has the following benefits: - - - Routes are committed, so signals are exported or imported. - - Any Reference Clock and external clock circuits are phase-locked. - - A subsequent :py:meth:`nifgen.Session.initiate` method can run faster - because the device is already configured. - - - - - -configure_arb_sequence ----------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: configure_arb_sequence(sequence_handle, gain, offset) - - Configures the signal generator properties that affect arbitrary - sequence generation. Sets the :py:attr:`nifgen.Session.arb_sequence_handle`, - :py:attr:`nifgen.Session.arb_gain`, and :py:attr:`nifgen.Session.arb_offset` properties. - - - - .. note:: The signal generator must not be in the Generating state when you call - this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_arb_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_arb_sequence` - - - :param sequence_handle: - - - Specifies the handle of the arbitrary sequence that you want the signal - generator to produce. NI-FGEN sets the - :py:attr:`nifgen.Session.arb_sequence_handle` property to this value. You can - create an arbitrary sequence using the :py:meth:`nifgen.Session.create_arb_sequence` or - :py:meth:`nifgen.Session.create_advanced_arb_sequence` method. These methods return a - handle that you use to identify the sequence. - - **Default Value**: None - - - - - :type sequence_handle: int - :param gain: - - - Specifies the factor by which the signal generator scales the arbitrary - waveforms in the sequence. When you create an arbitrary waveform, you - must first normalize the data points to a range of –1.00 to +1.00. You - can use this parameter to scale the waveform to other ranges. The gain - is applied before the offset is added. - - For example, to configure the output signal to range from –2.00 to - +2.00 V, set **gain** to 2.00. - - **Units**: unitless - - **Default Value**: None - - - - - :type gain: float - :param offset: - - - Specifies the value the signal generator adds to the arbitrary waveform - data. When you create arbitrary waveforms, you must first normalize the - data points to a range of –1.00 to +1.00 V. You can use this parameter - to shift the range of the arbitrary waveform. NI-FGEN sets the - :py:attr:`nifgen.Session.arb_offset` property to this value. - - For example, to configure the output signal to range from 0.00 to 2.00 V - instead of –1.00 to 1.00 V, set the offset to 1.00. - - **Units**: volts - - **Default Value**: None - - - - - :type offset: float - -configure_arb_waveform ----------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: configure_arb_waveform(waveform_handle, gain, offset) - - Configures the properties of the signal generator that affect arbitrary - waveform generation. Sets the :py:attr:`nifgen.Session.arb_waveform_handle`, - :py:attr:`nifgen.Session.arb_gain`, and :py:attr:`nifgen.Session.arb_offset` properties. - - - - .. note:: The signal generator must not be in the Generating state when you call - this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_arb_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_arb_waveform` - - - :param waveform_handle: - - - Specifies the handle of the arbitrary waveform you want the signal - generator to produce. NI-FGEN sets the - :py:attr:`nifgen.Session.arb_waveform_handle` property to this value. You can - create an arbitrary waveform using one of the following niFgen Create - Waveform methods: - - - :py:meth:`nifgen.Session.create_waveform` - - :py:meth:`nifgen.Session.create_waveform` - - :py:meth:`nifgen.Session.create_waveform_from_file_i16` - - :py:meth:`nifgen.Session.create_waveform_from_file_f64` - - These methods return a handle that you use to identify the waveform. - - **Default Value**: None - - - - - :type waveform_handle: int - :param gain: - - - Specifies the factor by which the signal generator scales the arbitrary - waveforms in the sequence. When you create an arbitrary waveform, you - must first normalize the data points to a range of –1.00 to +1.00. You - can use this parameter to scale the waveform to other ranges. The gain - is applied before the offset is added. - - For example, to configure the output signal to range from –2.00 to - +2.00 V, set **gain** to 2.00. - - **Units**: unitless - - **Default Value**: None - - - - - :type gain: float - :param offset: - - - Specifies the value the signal generator adds to the arbitrary waveform - data. When you create arbitrary waveforms, you must first normalize the - data points to a range of –1.00 to +1.00 V. You can use this parameter - to shift the range of the arbitrary waveform. NI-FGEN sets the - :py:attr:`nifgen.Session.arb_offset` property to this value. - - For example, to configure the output signal to range from 0.00 to 2.00 V - instead of –1.00 to 1.00 V, set the offset to 1.00. - - **Units**: volts - - **Default Value**: None - - - - - :type offset: float - -configure_freq_list -------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: configure_freq_list(frequency_list_handle, amplitude, dc_offset=0.0, start_phase=0.0) - - Configures the properties of the signal generator that affect frequency - list generation (the :py:attr:`nifgen.Session.freq_list_handle`, - :py:attr:`nifgen.Session.func_amplitude`, :py:attr:`nifgen.Session.func_dc_offset`, and - :py:attr:`nifgen.Session.func_start_phase` properties). - - - - .. note:: The signal generator must not be in the Generating state when you call - this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_freq_list` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_freq_list` - - - :param frequency_list_handle: - - - Specifies the handle of the frequency list that you want the signal - generator to produce. NI-FGEN sets the :py:attr:`nifgen.Session.freq_list_handle` - property to this value. You can create a frequency list using the - :py:meth:`nifgen.Session.create_freq_list` method, which returns a handle that you use to - identify the list. - **Default Value**: None - - - - - :type frequency_list_handle: int - :param amplitude: - - - Specifies the amplitude of the standard waveform that you want the - signal generator to produce. This value is the amplitude at the output - terminal. NI-FGEN sets the :py:attr:`nifgen.Session.func_amplitude` property to - this value. - - For example, to produce a waveform ranging from –5.00 V to +5.00 V, set - the amplitude to 10.00 V. - - **Units**: peak-to-peak voltage - - **Default Value**: None - - - - .. note:: This parameter does not affect signal generator behavior when you set - the **waveform** parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` - method to :py:data:`~nifgen.Waveform.DC`. - - - :type amplitude: float - :param dc_offset: - - - Specifies the DC offset of the standard waveform that you want the - signal generator to produce. The value is the offset from ground to the - center of the waveform you specify with the **waveform** parameter, - observed at the output terminal. For example, to configure a waveform - with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the - **dcOffset** to 5.00 V. NI-FGEN sets the :py:attr:`nifgen.Session.func_dc_offset` - property to this value. - - **Units**: volts - - **Default Value**: None - - - - - :type dc_offset: float - :param start_phase: - - - Specifies the horizontal offset of the standard waveform you want the - signal generator to produce. Specify this property in degrees of one - waveform cycle. NI-FGEN sets the :py:attr:`nifgen.Session.func_start_phase` - property to this value. A start phase of 180 degrees means output - generation begins halfway through the waveform. A start phase of 360 - degrees offsets the output by an entire waveform cycle, which is - identical to a start phase of 0 degrees. - - **Units**: degrees of one cycle - - **Default Value**: None degrees - - - - .. note:: This parameter does not affect signal generator behavior when you set - the **waveform** parameter to :py:data:`~nifgen.Waveform.DC`. - - - :type start_phase: float - -configure_standard_waveform ---------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: configure_standard_waveform(waveform, amplitude, frequency, dc_offset=0.0, start_phase=0.0) - - Configures the following properties of the signal generator that affect - standard waveform generation: - - - :py:attr:`nifgen.Session.func_waveform` - - :py:attr:`nifgen.Session.func_amplitude` - - :py:attr:`nifgen.Session.func_dc_offset` - - :py:attr:`nifgen.Session.func_frequency` - - :py:attr:`nifgen.Session.func_start_phase` - - - - .. note:: You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method with the - **outputMode** parameter set to :py:data:`~nifgen.OutputMode.FUNC` before calling - this method. - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_standard_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_standard_waveform` - - - :param waveform: - - - Specifies the standard waveform that you want the signal generator to - produce. NI-FGEN sets the :py:attr:`nifgen.Session.func_waveform` property to this - value. - - ****Defined Values**** - - **Default Value**: :py:data:`~nifgen.Waveform.SINE` - - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.SINE` | Specifies that the signal generator produces a sinusoid waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.SQUARE` | Specifies that the signal generator produces a square waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.TRIANGLE` | Specifies that the signal generator produces a triangle waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.RAMP_UP` | Specifies that the signal generator produces a positive ramp waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.RAMP_DOWN` | Specifies that the signal generator produces a negative ramp waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.DC` | Specifies that the signal generator produces a constant voltage. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.NOISE` | Specifies that the signal generator produces white noise. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.USER` | Specifies that the signal generator produces a user-defined waveform as defined with the :py:meth:`nifgen.Session.define_user_standard_waveform` method. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - :type waveform: :py:data:`nifgen.Waveform` - :param amplitude: - - - Specifies the amplitude of the standard waveform that you want the - signal generator to produce. This value is the amplitude at the output - terminal. NI-FGEN sets the :py:attr:`nifgen.Session.func_amplitude` property to - this value. - - For example, to produce a waveform ranging from –5.00 V to +5.00 V, set - the amplitude to 10.00 V. - - **Units**: peak-to-peak voltage - - **Default Value**: None - - - - .. note:: This parameter does not affect signal generator behavior when you set - the **waveform** parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` - method to :py:data:`~nifgen.Waveform.DC`. - - - :type amplitude: float - :param frequency: - - - | Specifies the frequency of the standard waveform that you want the - signal generator to produce. NI-FGEN sets the - :py:attr:`nifgen.Session.func_frequency` property to this value. - - **Units**: hertz - - **Default Value**: None - - - - .. note:: This parameter does not affect signal generator behavior when you set - the **waveform** parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` - method to :py:data:`~nifgen.Waveform.DC`. - - - :type frequency: float - :param dc_offset: - - - Specifies the DC offset of the standard waveform that you want the - signal generator to produce. The value is the offset from ground to the - center of the waveform you specify with the **waveform** parameter, - observed at the output terminal. For example, to configure a waveform - with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the - **dcOffset** to 5.00 V. NI-FGEN sets the :py:attr:`nifgen.Session.func_dc_offset` - property to this value. - - **Units**: volts - - **Default Value**: None - - - - - :type dc_offset: float - :param start_phase: - - - Specifies the horizontal offset of the standard waveform that you want - the signal generator to produce. Specify this parameter in degrees of - one waveform cycle. NI-FGEN sets the :py:attr:`nifgen.Session.func_start_phase` - property to this value. A start phase of 180 degrees means output - generation begins halfway through the waveform. A start phase of 360 - degrees offsets the output by an entire waveform cycle, which is - identical to a start phase of 0 degrees. - - **Units**: degrees of one cycle - - **Default Value**: 0.00 - - - - .. note:: This parameter does not affect signal generator behavior when you set - the **waveform** parameter to :py:data:`~nifgen.Waveform.DC`. - - - :type start_phase: float - -create_advanced_arb_sequence ----------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: create_advanced_arb_sequence(waveform_handles_array, loop_counts_array, sample_counts_array=None, marker_location_array=None) - - Creates an arbitrary sequence from an array of waveform handles and an - array of corresponding loop counts. This method returns a handle that - identifies the sequence. You pass this handle to the - :py:meth:`nifgen.Session.configure_arb_sequence` method to specify what arbitrary sequence - you want the signal generator to produce. - - The :py:meth:`nifgen.Session.create_advanced_arb_sequence` method extends on the - :py:meth:`nifgen.Session.create_arb_sequence` method by adding the ability to set the - number of samples in each sequence step and to set marker locations. - - An arbitrary sequence consists of multiple waveforms. For each waveform, - you specify the number of times the signal generator produces the - waveform before proceeding to the next waveform. The number of times to - repeat a specific waveform is called the loop count. - - - - .. note:: The signal generator must not be in the Generating state when you call - this method. - You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method to set the - **outputMode** parameter to :py:data:`~nifgen.OutputMode.SEQ` before calling this - method. - - - - :param waveform_handles_array: - - - Specifies the array of waveform handles from which you want to create a - new arbitrary sequence. The array must have at least as many elements as - the value that you specify in **sequenceLength**. Each - **waveformHandlesArray** element has a corresponding **loopCountsArray** - element that indicates how many times that waveform is repeated. You - obtain waveform handles when you create arbitrary waveforms with the - :py:meth:`nifgen.Session.allocate_waveform` method or one of the following niFgen - CreateWaveform methods: - - - :py:meth:`nifgen.Session.create_waveform` - - :py:meth:`nifgen.Session.create_waveform` - - :py:meth:`nifgen.Session.create_waveform_from_file_i16` - - :py:meth:`nifgen.Session.create_waveform_from_file_f64` - - **Default Value**: None - - - - - :type waveform_handles_array: list of int - :param loop_counts_array: - - - Specifies the array of loop counts you want to use to create a new - arbitrary sequence. The array must have at least as many elements as the - value that you specify in the **sequenceLength** parameter. Each - **loopCountsArray** element corresponds to a **waveformHandlesArray** - element and indicates how many times to repeat that waveform. Each - element of the **loopCountsArray** must be less than or equal to the - maximum number of loop counts that the signal generator allows. You can - obtain the maximum loop count from **maximumLoopCount** in the - :py:meth:`nifgen.Session.query_arb_seq_capabilities` method. - - **Default Value**: None - - - - - :type loop_counts_array: list of int - :param sample_counts_array: - - - Specifies the array of sample counts that you want to use to create a - new arbitrary sequence. The array must have at least as many elements as - the value you specify in the **sequenceLength** parameter. Each - **sampleCountsArray** element corresponds to a **waveformHandlesArray** - element and indicates the subset, in samples, of the given waveform to - generate. Each element of the **sampleCountsArray** must be larger than - the minimum waveform size, a multiple of the waveform quantum and no - larger than the number of samples in the corresponding waveform. You can - obtain these values by calling the :py:meth:`nifgen.Session.query_arb_wfm_capabilities` - method. - - **Default Value**: None - - - - - :type sample_counts_array: list of int - :param marker_location_array: - - - Specifies the array of marker locations to where you want a marker to be - generated in the sequence. The array must have at least as many elements - as the value you specify in the **sequenceLength** parameter. Each - **markerLocationArray** element corresponds to a - **waveformHandlesArray** element and indicates where in the waveform a - marker is to generate. The marker location must be less than the size of - the waveform the marker is in. The markers are coerced to the nearest - marker quantum and the coerced values are returned in the - **coercedMarkersArray** parameter. - - If you do not want a marker generated for a particular sequence stage, - set this parameter to :py:data:`~nifgen.NIFGEN_VAL_NO_MARKER`. - - **Defined Value**: :py:data:`~nifgen.NIFGEN_VAL_NO_MARKER` - - **Default Value**: None - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type marker_location_array: list of int - - :rtype: tuple (coerced_markers_array, sequence_handle) - - WHERE - - coerced_markers_array (list of int): - - - Returns an array of all given markers that are coerced (rounded) to the - nearest marker quantum. Not all devices coerce markers. - - **Default Value**: None - - - - - sequence_handle (int): - - - Returns the handle that identifies the new arbitrary sequence. You can - pass this handle to :py:meth:`nifgen.Session.configure_arb_sequence` to generate the - arbitrary sequence. - - - - - -create_arb_sequence -------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: create_arb_sequence(waveform_handles_array, loop_counts_array) - - Creates an arbitrary sequence from an array of waveform handles and an - array of corresponding loop counts. This method returns a handle that - identifies the sequence. You pass this handle to the - :py:meth:`nifgen.Session.configure_arb_sequence` method to specify what arbitrary sequence - you want the signal generator to produce. - - An arbitrary sequence consists of multiple waveforms. For each waveform, - you can specify the number of times that the signal generator produces - the waveform before proceeding to the next waveform. The number of times - to repeat a specific waveform is called the loop count. - - - - .. note:: You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method to set the - **outputMode** parameter to :py:data:`~nifgen.OutputMode.SEQ` before calling this - method. - - - - :param waveform_handles_array: - - - Specifies the array of waveform handles from which you want to create a - new arbitrary sequence. The array must have at least as many elements as - the value that you specify in **sequenceLength**. Each - **waveformHandlesArray** element has a corresponding **loopCountsArray** - element that indicates how many times that waveform is repeated. You - obtain waveform handles when you create arbitrary waveforms with the - :py:meth:`nifgen.Session.allocate_waveform` method or one of the following niFgen - CreateWaveform methods: - - - :py:meth:`nifgen.Session.create_waveform` - - :py:meth:`nifgen.Session.create_waveform` - - :py:meth:`nifgen.Session.create_waveform_from_file_i16` - - :py:meth:`nifgen.Session.create_waveform_from_file_f64` - - **Default Value**: None - - - - - :type waveform_handles_array: list of int - :param loop_counts_array: - - - Specifies the array of loop counts you want to use to create a new - arbitrary sequence. The array must have at least as many elements as the - value that you specify in the **sequenceLength** parameter. Each - **loopCountsArray** element corresponds to a **waveformHandlesArray** - element and indicates how many times to repeat that waveform. Each - element of the **loopCountsArray** must be less than or equal to the - maximum number of loop counts that the signal generator allows. You can - obtain the maximum loop count from **maximumLoopCount** in the - :py:meth:`nifgen.Session.query_arb_seq_capabilities` method. - - **Default Value**: None - - - - - :type loop_counts_array: list of int - - :rtype: int - :return: - - - Returns the handle that identifies the new arbitrary sequence. You can - pass this handle to :py:meth:`nifgen.Session.configure_arb_sequence` to generate the - arbitrary sequence. - - - - - -create_freq_list ----------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: create_freq_list(waveform, frequency_array, duration_array) - - Creates a frequency list from an array of frequencies - (**frequencyArray**) and an array of durations (**durationArray**). The - two arrays should have the same number of elements, and this value must - also be the size of the **frequencyListLength**. The method returns a - handle that identifies the frequency list (the **frequencyListHandle**). - You can pass this handle to :py:meth:`nifgen.Session.configure_freq_list` to specify what - frequency list you want the signal generator to produce. - - A frequency list consists of a list of frequencies and durations. The - signal generator generates each frequency for the given amount of time - and then proceeds to the next frequency. When the end of the list is - reached, the signal generator starts over at the beginning of the list. - - - - .. note:: The signal generator must not be in the Generating state when you call - this method. - - - - :param waveform: - - - Specifies the standard waveform that you want the signal generator to - produce. NI-FGEN sets the :py:attr:`nifgen.Session.func_waveform` property to this - value. - - ****Defined Values**** - - **Default Value**: :py:data:`~nifgen.Waveform.SINE` - - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.SINE` | Specifies that the signal generator produces a sinusoid waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.SQUARE` | Specifies that the signal generator produces a square waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.TRIANGLE` | Specifies that the signal generator produces a triangle waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.RAMP_UP` | Specifies that the signal generator produces a positive ramp waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.RAMP_DOWN` | Specifies that the signal generator produces a negative ramp waveform. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.DC` | Specifies that the signal generator produces a constant voltage. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.NOISE` | Specifies that the signal generator produces white noise. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.Waveform.USER` | Specifies that the signal generator produces a user-defined waveform as defined with the :py:meth:`nifgen.Session.define_user_standard_waveform` method. | - +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - :type waveform: :py:data:`nifgen.Waveform` - :param frequency_array: - - - Specifies the array of frequencies to form the frequency list. The array - must have at least as many elements as the value you specify in - **frequencyListLength**. Each **frequencyArray** element has a - corresponding **durationArray** element that indicates how long that - frequency is repeated. - - **Units**: hertz - - **Default Value**: None - - - - - :type frequency_array: list of float - :param duration_array: - - - Specifies the array of durations to form the frequency list. The array - must have at least as many elements as the value that you specify in - **frequencyListLength**. Each **durationArray** element has a - corresponding **frequencyArray** element and indicates how long in - seconds to generate the corresponding frequency. - - **Units**: seconds - - **Default Value**: None - - - - - :type duration_array: list of float - - :rtype: int - :return: - - - Returns the handle that identifies the new frequency list. You can pass - this handle to :py:meth:`nifgen.Session.configure_freq_list` to generate the arbitrary - sequence. - - - - - -create_waveform_from_file_f64 ------------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: create_waveform_from_file_f64(file_name, byte_order) - - This method takes the floating point double (F64) data from the - specified file and creates an onboard waveform for use in Arbitrary - Waveform or Arbitrary Sequence output mode. The **waveformHandle** - returned by this method can later be used for setting the active - waveform, changing the data in the waveform, building sequences of - waveforms, or deleting the waveform when it is no longer needed. - - - - .. note:: The F64 data must be between –1.0 and +1.0 V. Use the - :py:attr:`nifgen.Session.digital_gain` property to generate different voltage - outputs. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.create_waveform_from_file_f64` - - - :param file_name: - - - The full path and name of the file where the waveform data resides. - - - - - :type file_name: str - :param byte_order: - - - Specifies the byte order of the data in the file. - - ****Defined Values**** - - | - | ****Default Value**:** :py:data:`~nifgen.ByteOrder.LITTLE` - - +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.ByteOrder.LITTLE` | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | - +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.ByteOrder.BIG` | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | - +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: Data written by most applications in Windows (including - LabWindows™/CVI™) is in Little Endian format. Data written to a file - from LabVIEW is in Big Endian format by default on all platforms. Big - Endian and Little Endian refer to the way data is stored in memory, - which can differ on different processors. - - - :type byte_order: :py:data:`nifgen.ByteOrder` - - :rtype: int - :return: - - - The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - - - - -create_waveform_from_file_i16 ------------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: create_waveform_from_file_i16(file_name, byte_order) - - Takes the binary 16-bit signed integer (I16) data from the specified - file and creates an onboard waveform for use in Arbitrary Waveform or - Arbitrary Sequence output mode. The **waveformHandle** returned by this - method can later be used for setting the active waveform, changing the - data in the waveform, building sequences of waveforms, or deleting the - waveform when it is no longer needed. - - - - .. note:: The I16 data (values between –32768 and +32767) is assumed to - represent –1 to +1 V. Use the :py:attr:`nifgen.Session.digital_gain` property to - generate different voltage outputs. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_i16` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.create_waveform_from_file_i16` - - - :param file_name: - - - The full path and name of the file where the waveform data resides. - - - - - :type file_name: str - :param byte_order: - - - Specifies the byte order of the data in the file. - - ****Defined Values**** - - | - | ****Default Value**:** :py:data:`~nifgen.ByteOrder.LITTLE` - - +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.ByteOrder.LITTLE` | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | - +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nifgen.ByteOrder.BIG` | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | - +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: Data written by most applications in Windows (including - LabWindows™/CVI™) is in Little Endian format. Data written to a file - from LabVIEW is in Big Endian format by default on all platforms. Big - Endian and Little Endian refer to the way data is stored in memory, - which can differ on different processors. - - - :type byte_order: :py:data:`nifgen.ByteOrder` - - :rtype: int - :return: - - - The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - - - - -create_waveform_numpy ---------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: create_waveform_numpy(waveform_data_array) - - Creates an onboard waveform for use in Arbitrary Waveform output mode or Arbitrary Sequence output mode. - - - - .. note:: You must set :py:attr:`nifgen.Session.output_mode` to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ` before calling this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.create_waveform` - - - :param waveform_data_array: - - - Array of data for the new arbitrary waveform. This may be an iterable of float or int16, or for best performance a numpy.ndarray of dtype int16 or float64. - - - - - :type waveform_data_array: iterable of float or int16 - - :rtype: int - :return: - - - The handle that identifies the new waveform. This handle is used in other methods when referring to this waveform. - - - - - -define_user_standard_waveform ------------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: define_user_standard_waveform(waveform_data_array) - - Defines a user waveform for use in either Standard Method or Frequency - List output mode. - - To select the waveform, set the **waveform** parameter to - :py:data:`~nifgen.Waveform.USER` with either the :py:meth:`nifgen.Session.configure_standard_waveform` - or the :py:meth:`nifgen.Session.create_freq_list` method. - - The waveform data must be scaled between –1.0 and 1.0. Use the - **amplitude** parameter in the :py:meth:`nifgen.Session.configure_standard_waveform` - method to generate different output voltages. - - - - .. note:: You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method to set the - **outputMode** parameter to :py:data:`~nifgen.OutputMode.FUNC` or - :py:data:`~nifgen.OutputMode.FREQ_LIST` before calling this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].define_user_standard_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.define_user_standard_waveform` - - - :param waveform_data_array: - - - Specifies the array of data you want to use for the new arbitrary - waveform. The array must have at least as many elements as the value - that you specify in **waveformSize**. - - You must normalize the data points in the array to be between –1.00 and - +1.00. - - **Default Value**: None - - - - - :type waveform_data_array: list of float - -delete_script -------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: delete_script(script_name) - - Deletes the specified script from onboard memory. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].delete_script` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.delete_script` - - - :param script_name: - - - Specifies the name of the script you want to delete. The script name - appears in the text of the script following the script keyword. - - - - - :type script_name: str - -delete_waveform ---------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: delete_waveform(waveform_name_or_handle) - - Removes a previously created arbitrary waveform from the signal generator memory. - - - - .. note:: The signal generator must not be in the Generating state when you call this method. - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].delete_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.delete_waveform` - - - :param waveform_name_or_handle: - - - The name (str) or handle (int) of an arbitrary waveform previously allocated with :py:meth:`nifgen.Session.allocate_named_waveform`, :py:meth:`nifgen.Session.allocate_waveform` or :py:meth:`nifgen.Session.create_waveform`. - - - - - :type waveform_name_or_handle: str or int - -disable -------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: disable() - - Places the instrument in a quiescent state where it has minimal or no - impact on the system to which it is connected. The analog output and all - exported signals are disabled. - - - - - -export_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: export_attribute_configuration_buffer() - - Exports the property configuration of the session to a configuration - buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑FGEN returns an - error. - - - - - - :rtype: bytes - :return: - - - Specifies the byte array buffer to be populated with the exported - property configuration. - - - - - -export_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: export_attribute_configuration_file(file_path) - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑FGEN returns an - error. - - - - - - :param file_path: - - - Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:** .nifgenconfig - - - - - :type file_path: str - -get_channel_name ----------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_channel_name(index) - - Returns the channel string that is in the channel table at an index you - specify. - - - - .. note:: This method is included for compliance with the IviFgen Class - Specification. - - - - :param index: - - - A 1-based index into the channel table. - - - - - :type index: int - - :rtype: str - :return: - - - Returns the channel string that is in the channel table at the index you - specify. Do not modify the contents of the channel string. - - - - - -get_ext_cal_last_date_and_time ------------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_ext_cal_last_date_and_time() - - Returns the date and time of the last successful external calibration. The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30 PM, this method returns 14 for the **hour** parameter and 30 for the **minute** parameter. - - - - - - :rtype: hightime.datetime - :return: - - - Indicates date and time of the last calibration. - - - - - -get_ext_cal_last_temp ---------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_ext_cal_last_temp() - - Returns the temperature at the last successful external calibration. The - temperature is returned in degrees Celsius. - - - - - - :rtype: float - :return: - - - Specifies the temperature at the last successful calibration in degrees - Celsius. - - - - - -get_ext_cal_recommended_interval --------------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_ext_cal_recommended_interval() - - Returns the recommended interval between external calibrations in - months. - - - - - - :rtype: hightime.timedelta - :return: - - - Specifies the recommended interval between external calibrations in - months. - - - - - -get_hardware_state ------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_hardware_state() - - Returns the current hardware state of the device and, if the device is - in the hardware error state, the current hardware error. - - - - .. note:: Hardware states do not necessarily correspond to NI-FGEN states. - - - - :rtype: :py:data:`nifgen.HardwareState` - :return: - - - Returns the hardware state of the signal generator. - - **Defined Values** - - +------------------------------------------------------------+--------------------------------------------+ - | :py:data:`~nifgen.HardwareState.IDLE` | The device is in the Idle state. | - +------------------------------------------------------------+--------------------------------------------+ - | :py:data:`~nifgen.HardwareState.WAITING_FOR_START_TRIGGER` | The device is waiting for Start Trigger. | - +------------------------------------------------------------+--------------------------------------------+ - | :py:data:`~nifgen.HardwareState.RUNNING` | The device is in the Running state. | - +------------------------------------------------------------+--------------------------------------------+ - | :py:data:`~nifgen.HardwareState.DONE` | The generation has completed successfully. | - +------------------------------------------------------------+--------------------------------------------+ - | :py:data:`~nifgen.HardwareState.HARDWARE_ERROR` | There is a hardware error. | - +------------------------------------------------------------+--------------------------------------------+ - - - -get_self_cal_last_date_and_time -------------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_self_cal_last_date_and_time() - - Returns the date and time of the last successful self-calibration. - - - - - - :rtype: hightime.datetime - :return: - - - Returns the date and time the device was last calibrated. - - - - - -get_self_cal_last_temp ----------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_self_cal_last_temp() - - Returns the temperature at the last successful self-calibration. The - temperature is returned in degrees Celsius. - - - - - - :rtype: float - :return: - - - Specifies the temperature at the last successful calibration in degrees - Celsius. - - - - - -get_self_cal_supported ----------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: get_self_cal_supported() - - Returns whether the device supports self–calibration. - - - - - - :rtype: bool - :return: - - - Returns whether the device supports self-calibration. - - ****Defined Values**** - - +-------+------------------------------------+ - | True | Self–calibration is supported. | - +-------+------------------------------------+ - | False | Self–calibration is not supported. | - +-------+------------------------------------+ - - - -import_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: import_attribute_configuration_buffer(configuration) - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - - - .. note:: You cannot call this method while the session is in a running state, - such as while generating a signal. - - - - :param configuration: - - - Specifies the byte array buffer that contains the property - configuration to import. - - - - - :type configuration: bytes - -import_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: import_attribute_configuration_file(file_path) - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - - - .. note:: You cannot call this method while the session is in a running state, - such as while generating a signal. - - - - :param file_path: - - - Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:** .nifgenconfig - - - - - :type file_path: str - -initiate --------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: initiate() - - Initiates signal generation. If you want to abort signal generation, - call the :py:meth:`nifgen.Session.abort` method. After the signal generation - is aborted, you can call the :py:meth:`nifgen.Session.initiate` method to - cause the signal generator to produce a signal again. - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -is_done -------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: is_done() - - Determines whether the current generation is complete. This method - sets the **done** parameter to True if the session is in the Idle or - Committed states. - - - - .. note:: NI-FGEN only reports the **done** parameter as True after the - current generation is complete in Single trigger mode. - - - - :rtype: bool - :return: - - - Returns information about the completion of waveform generation. - - **Defined Values** - - +-------+-----------------------------+ - | True | Generation is complete. | - +-------+-----------------------------+ - | False | Generation is not complete. | - +-------+-----------------------------+ - - - -lock ----- - - .. py:currentmodule:: nifgen.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`nifgen.Session.lock` method. - - A call to NI-FGEN locked the session. - - After a call to the :py:meth:`nifgen.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`nifgen.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`nifgen.Session.lock` method and the - :py:meth:`nifgen.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`nifgen.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`nifgen.Session.lock` method with a call to - the :py:meth:`nifgen.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with nifgen.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`nifgen.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -query_arb_seq_capabilities --------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: query_arb_seq_capabilities() - - Returns the properties of the signal generator that are related to - creating arbitrary sequences (the :py:attr:`nifgen.Session.max_num_sequences`, - :py:attr:`nifgen.Session.min_sequence_length`, - :py:attr:`nifgen.Session.max_sequence_length`, and :py:attr:`nifgen.Session.max_loop_count` - properties). - - - - - - :rtype: tuple (maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count) - - WHERE - - maximum_number_of_sequences (int): - - - Returns the maximum number of arbitrary waveform sequences that the - signal generator allows. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_num_sequences` property. - - - - - minimum_sequence_length (int): - - - Returns the minimum number of arbitrary waveforms the signal generator - allows in a sequence. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.min_sequence_length` property. - - - - - maximum_sequence_length (int): - - - Returns the maximum number of arbitrary waveforms the signal generator - allows in a sequence. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_sequence_length` property. - - - - - maximum_loop_count (int): - - - Returns the maximum number of times the signal generator can repeat an - arbitrary waveform in a sequence. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_loop_count` property. - - - - - -query_arb_wfm_capabilities --------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: query_arb_wfm_capabilities() - - Returns the properties of the signal generator that are related to - creating arbitrary waveforms. These properties are the maximum number of - waveforms, waveform quantum, minimum waveform size, and maximum waveform - size. - - - - .. note:: If you do not want to obtain the waveform quantum, pass a value of - VI_NULL for this parameter. - - - - :rtype: tuple (maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size) - - WHERE - - maximum_number_of_waveforms (int): - - - Returns the maximum number of arbitrary waveforms that the signal - generator allows. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_num_waveforms` property. - - - - - waveform_quantum (int): - - - The size (number of points) of each waveform must be a multiple of a - constant quantum value. This parameter obtains the quantum value that - the signal generator uses. NI-FGEN returns this value from the - :py:attr:`nifgen.Session.waveform_quantum` property. - - For example, when this property returns a value of 8, all waveform - sizes must be a multiple of 8. - - - - - minimum_waveform_size (int): - - - Returns the minimum number of points that the signal generator allows in - a waveform. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.min_waveform_size` property. - - - - - maximum_waveform_size (int): - - - Returns the maximum number of points that the signal generator allows in - a waveform. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_waveform_size` property. - - - - - -query_freq_list_capabilities ----------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: query_freq_list_capabilities() - - Returns the properties of the signal generator that are related to - creating frequency lists. These properties are - :py:attr:`nifgen.Session.max_num_freq_lists`, - :py:attr:`nifgen.Session.min_freq_list_length`, - :py:attr:`nifgen.Session.max_freq_list_length`, - :py:attr:`nifgen.Session.min_freq_list_duration`, - :py:attr:`nifgen.Session.max_freq_list_duration`, and - :py:attr:`nifgen.Session.freq_list_duration_quantum`. - - - - - - :rtype: tuple (maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum) - - WHERE - - maximum_number_of_freq_lists (int): - - - Returns the maximum number of frequency lists that the signal generator - allows. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_num_freq_lists` property. - - - - - minimum_frequency_list_length (int): - - - Returns the minimum number of steps that the signal generator allows in - a frequency list. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.min_freq_list_length` property. - - - - - maximum_frequency_list_length (int): - - - Returns the maximum number of steps that the signal generator allows in - a frequency list. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_freq_list_length` property. - - - - - minimum_frequency_list_duration (float): - - - Returns the minimum duration that the signal generator allows in a step - of a frequency list. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.min_freq_list_duration` property. - - - - - maximum_frequency_list_duration (float): - - - Returns the maximum duration that the signal generator allows in a step - of a frequency list. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.max_freq_list_duration` property. - - - - - frequency_list_duration_quantum (float): - - - Returns the quantum of which all durations must be a multiple in a - frequency list. NI-FGEN obtains this value from the - :py:attr:`nifgen.Session.freq_list_duration_quantum` property. - - - - - -read_current_temperature ------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: read_current_temperature() - - Reads the current onboard temperature of the device. The temperature is - returned in degrees Celsius. - - - - - - :rtype: float - :return: - - - Returns the current temperature read from onboard temperature sensors, - in degrees Celsius. - - - - - -reset ------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: reset() - - Resets the instrument to a known state. This method aborts the - generation, clears all routes, and resets session properties to the - default values. This method does not, however, commit the session - properties or configure the device hardware to its default state. - - - - .. note:: For the NI 5401/5404/5411/5431, this method exhibits the same - behavior as the :py:meth:`nifgen.Session.reset_device` method. - - - -reset_device ------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: reset_device() - - Performs a hard reset on the device. Generation is stopped, all routes - are released, external bidirectional terminals are tristated, FPGAs are - reset, hardware is configured to its default state, and all session - properties are reset to their default states. - - - - - -reset_with_defaults -------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: reset_with_defaults() - - Resets the instrument and reapplies initial user–specified settings from - the logical name that was used to initialize the session. If the session - was created without a logical name, this method is equivalent to the - :py:meth:`nifgen.Session.reset` method. - - - - - -self_cal --------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: self_cal() - - Performs a full internal self-calibration on the device. If the - calibration is successful, new calibration data and constants are stored - in the onboard EEPROM. - - - - - -self_test ---------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: self_test() - - Runs the instrument self-test routine and returns the test result(s). - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - .. note:: When used on some signal generators, the device is reset after the - :py:meth:`nifgen.Session.self_test` method runs. If you use the :py:meth:`nifgen.Session.self_test` - method, your device may not be in its previously configured state - after the method runs. - - - -send_software_edge_trigger --------------------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: send_software_edge_trigger(trigger, trigger_id) - - Sends a command to trigger the signal generator. This VI can act as an - override for an external edge trigger. - - - - .. note:: This VI does not override external digital edge triggers of the - NI 5401/5411/5431. - - - - :param trigger: - - - Trigger specifies the type of software trigger to send - - +-----------------------------------+ - | Defined Values | - +===================================+ - | :py:data:`~nifgen.Trigger.START` | - +-----------------------------------+ - | :py:data:`~nifgen.Trigger.SCRIPT` | - +-----------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger: :py:data:`nifgen.Trigger` - :param trigger_id: - - - Trigger ID specifies the Script Trigger to use for triggering. - - - - - :type trigger_id: str - -set_next_write_position ------------------------ - - .. py:currentmodule:: nifgen.Session - - .. py:method:: set_next_write_position(waveform_name_or_handle, relative_to, offset) - - Sets the position in the waveform at which the next waveform data is - written. This method allows you to write to arbitrary locations within - the waveform. These settings apply only to the next write to the - waveform specified by the waveformHandle parameter. Subsequent writes to - that waveform begin where the last write left off, unless this method - is called again. The waveformHandle passed in must have been created by - a call to the :py:meth:`nifgen.Session.allocate_waveform` method or one of the following - :py:meth:`nifgen.Session.create_waveform` method. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].set_next_write_position` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.set_next_write_position` - - - :param waveform_name_or_handle: - - - The name (str) or handle (int) of an arbitrary waveform previously allocated with :py:meth:`nifgen.Session.allocate_named_waveform`, :py:meth:`nifgen.Session.allocate_waveform` or :py:meth:`nifgen.Session.create_waveform`. - - - - - :type waveform_name_or_handle: str or int - :param relative_to: - - - Specifies the reference position in the waveform. This position and - **offset** together determine where to start loading data into the - waveform. - - ****Defined Values**** - - +-------------------------------------------+-------------------------------------------------------------------------+ - | :py:data:`~nifgen.RelativeTo.START` (0) | Use the start of the waveform as the reference position. | - +-------------------------------------------+-------------------------------------------------------------------------+ - | :py:data:`~nifgen.RelativeTo.CURRENT` (1) | Use the current position within the waveform as the reference position. | - +-------------------------------------------+-------------------------------------------------------------------------+ - - - :type relative_to: :py:data:`nifgen.RelativeTo` - :param offset: - - - Specifies the offset from **relativeTo** at which to start loading the - data into the waveform. - - - - - :type offset: int - -unlock ------- - - .. py:currentmodule:: nifgen.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`nifgen.Session.lock`. Refer to :py:meth:`nifgen.Session.unlock` for additional - information on session locks. - -wait_until_done ---------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: wait_until_done(max_time=hightime.timedelta(seconds=10.0)) - - Waits until the device is done generating or until the maximum time has - expired. - - - - - - :param max_time: - - - Specifies the timeout value in milliseconds. - - - - - :type max_time: hightime.timedelta, datetime.timedelta, or int in milliseconds - -write_script ------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: write_script(script) - - Writes a string containing one or more scripts that govern the - generation of waveforms. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].write_script` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.write_script` - - - :param script: - - - Contains the text of the script you want to use for your generation - operation. Refer to `scripting - Instructions `__ - for more information about writing scripts. - - - - - :type script: str - -write_waveform --------------- - - .. py:currentmodule:: nifgen.Session - - .. py:method:: write_waveform(waveform_name_or_handle, data) - - Writes data to the waveform in onboard memory. - - By default, subsequent calls to this method - continue writing data from the position of the last sample written. You - can set the write position and offset by calling the :py:meth:`nifgen.Session.set_next_write_position` - :py:meth:`nifgen.Session.set_next_write_position` method. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].write_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.write_waveform` - - - :param waveform_name_or_handle: - - - The name (str) or handle (int) of an arbitrary waveform previously allocated with :py:meth:`nifgen.Session.allocate_named_waveform`, :py:meth:`nifgen.Session.allocate_waveform` or :py:meth:`nifgen.Session.create_waveform`. - - - - - :type waveform_name_or_handle: str or int - :param data: - - - Array of data to load into the waveform. This may be an iterable of float, or for best performance a numpy.ndarray of dtype int16 or float64. - - - - - :type data: list of float - - -Properties -========== - -absolute_delay --------------- - - .. py:attribute:: absolute_delay - - Specifies the sub-Sample Clock delay, in seconds, to apply to the - waveform. Use this property to reduce the trigger jitter when - synchronizing multiple devices with NI-TClk. This property can also help - maintain synchronization repeatability by writing the absolute delay - value of a previous measurement to the current session. - To set this property, the waveform generator must be in the Idle - (Configuration) state. - **Units**: seconds (s) - **Valid Values**: Plus or minus half of one Sample Clock period - **Default Value**: 0.0 - **Supported Waveform Generators**: PXIe-5413/5423/5433 - - - - .. note:: If this property is set, NI-TClk cannot perform any sub-Sample Clock - adjustment. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Absolute Delay** - - C Attribute: **NIFGEN_ATTR_ABSOLUTE_DELAY** - -all_marker_events_latched_status --------------------------------- - - .. py:attribute:: all_marker_events_latched_status - - Returns a bit field of the latched status of all Marker Events. Write 0 to this property to clear the latched status of all Marker Events. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Advanced:All Marker Events Latched Status** - - C Attribute: **NIFGEN_ATTR_ALL_MARKER_EVENTS_LATCHED_STATUS** - -all_marker_events_live_status ------------------------------ - - .. py:attribute:: all_marker_events_live_status - - Returns a bit field of the live status of all Marker Events. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Advanced:All Marker Events Live Status** - - C Attribute: **NIFGEN_ATTR_ALL_MARKER_EVENTS_LIVE_STATUS** - -analog_data_mask ----------------- - - .. py:attribute:: analog_data_mask - - Specifies the mask to apply to the analog output. The masked data is replaced with the data in :py:attr:`nifgen.Session.analog_static_value`. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Data Mask:Analog Data Mask** - - C Attribute: **NIFGEN_ATTR_ANALOG_DATA_MASK** - -analog_filter_enabled ---------------------- - - .. py:attribute:: analog_filter_enabled - - Controls whether the signal generator applies to an analog filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Filters:Analog Filter Enabled** - - C Attribute: **NIFGEN_ATTR_ANALOG_FILTER_ENABLED** - -analog_path ------------ - - .. py:attribute:: analog_path - - Specifies the analog signal path that should be used. The main path allows you to configure gain, offset, analog filter status, output impedance, and output enable. The main path has two amplifier options, high- and low-gain. - The direct path presents a much smaller gain range, and you cannot adjust offset or the filter status. The direct path also provides a smaller output range but also lower distortion. NI-FGEN normally chooses the amplifier based on the user-specified gain. - - The following table lists the characteristics of this property. - - +-----------------------+------------------+ - | Characteristic | Value | - +=======================+==================+ - | Datatype | enums.AnalogPath | - +-----------------------+------------------+ - | Permissions | read-write | - +-----------------------+------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Analog Path** - - C Attribute: **NIFGEN_ATTR_ANALOG_PATH** - -analog_static_value -------------------- - - .. py:attribute:: analog_static_value - - Specifies the static value that replaces data masked by :py:attr:`nifgen.Session.analog_data_mask`. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Data Mask:Analog Static Value** - - C Attribute: **NIFGEN_ATTR_ANALOG_STATIC_VALUE** - -arb_gain --------- - - .. py:attribute:: arb_gain - - Specifies the factor by which the signal generator scales the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to scale the arbitrary waveform to other ranges. - For example, when you set this property to 2.0, the output signal ranges from -2.0 V to +2.0 V. - Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ`. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_gain` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_gain` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Gain** - - C Attribute: **NIFGEN_ATTR_ARB_GAIN** - -arb_marker_position -------------------- - - .. py:attribute:: arb_marker_position - - Specifies the position for a marker to be asserted in the arbitrary waveform. This property defaults to -1 when no marker position is specified. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB`. - Use :py:meth:`nifgen.Session.ExportSignal` to export the marker signal. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Waveform Mode:Marker Position** - - C Attribute: **NIFGEN_ATTR_ARB_MARKER_POSITION** - -arb_offset ----------- - - .. py:attribute:: arb_offset - - Specifies the value that the signal generator adds to the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to shift the arbitrary waveform range. - For example, when you set this property to 1.0, the output signal ranges from 2.0 V to 0.0 V. - Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ`. - Units: Volts - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Offset** - - C Attribute: **NIFGEN_ATTR_ARB_OFFSET** - -arb_repeat_count ----------------- - - .. py:attribute:: arb_repeat_count - - Specifies number of times to repeat the arbitrary waveform when the triggerMode parameter of :py:meth:`nifgen.Session.ConfigureTriggerMode` is set to :py:data:`~nifgen.TriggerMode.SINGLE` or :py:data:`~nifgen.TriggerMode.STEPPED`. This property is ignored if the triggerMode parameter is set to :py:data:`~nifgen.TriggerMode.CONTINUOUS` or :py:data:`~nifgen.TriggerMode.BURST`. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB`. - When used during streaming, this property specifies the number of times to repeat the streaming waveform (the onboard memory allocated for streaming). For more information about streaming, refer to the Streaming topic. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Waveform Mode:Repeat Count** - - C Attribute: **NIFGEN_ATTR_ARB_REPEAT_COUNT** - -arb_sample_rate ---------------- - - .. py:attribute:: arb_sample_rate - - Specifies the rate at which the signal generator outputs the points in arbitrary waveforms. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ`. - Units: Samples/s - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock:Rate** - - C Attribute: **NIFGEN_ATTR_ARB_SAMPLE_RATE** - -arb_sequence_handle -------------------- - - .. py:attribute:: arb_sequence_handle - - This channel-based property identifies which sequence the signal generator produces. You can create multiple sequences using :py:meth:`nifgen.Session.create_arb_sequence`. :py:meth:`nifgen.Session.create_arb_sequence` returns a handle that you can use to identify the particular sequence. To configure the signal generator to produce a particular sequence, set this property to the sequence handle. - Use this property only when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SEQ`. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_sequence_handle` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_sequence_handle` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Arbitrary Sequence Handle** - - C Attribute: **NIFGEN_ATTR_ARB_SEQUENCE_HANDLE** - -arb_waveform_handle -------------------- - - .. py:attribute:: arb_waveform_handle - - Selects which arbitrary waveform the signal generator produces. You can create multiple arbitrary waveforms using one of the following niFgen Create Waveform methods: - :py:meth:`nifgen.Session.create_waveform` - :py:meth:`nifgen.Session.create_waveform` - :py:meth:`nifgen.Session.create_waveform_from_file_i16` - :py:meth:`nifgen.Session.create_waveform_from_file_f64` - These methods return a handle that you can use to identify the particular waveform. To configure the signal generator to produce a particular waveform, set this property to the waveform handle. - Use this property only when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB`. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_waveform_handle` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_waveform_handle` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Waveform Mode:Arbitrary Waveform Handle** - - C Attribute: **NIFGEN_ATTR_ARB_WAVEFORM_HANDLE** - -aux_power_enabled ------------------ - - .. py:attribute:: aux_power_enabled - - Controls the specified auxiliary power pin. Setting this property to TRUE energizes the auxiliary power when the session is committed. When this property is FALSE, the power pin of the connector outputs no power. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Advanced:AUX Power Enabled** - - C Attribute: **NIFGEN_ATTR_AUX_POWER_ENABLED** - -bus_type --------- - - .. py:attribute:: bus_type - - The bus type of the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+---------------+ - | Characteristic | Value | - +=======================+===============+ - | Datatype | enums.BusType | - +-----------------------+---------------+ - | Permissions | read only | - +-----------------------+---------------+ - | Repeated Capabilities | None | - +-----------------------+---------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Bus Type** - - C Attribute: **NIFGEN_ATTR_BUS_TYPE** - -channel_delay -------------- - - .. py:attribute:: channel_delay - - Specifies, in seconds, the delay to apply to the analog output of the channel specified by the channel string. You can use the channel delay to configure the timing relationship between channels on a multichannel device. Values for this property can be zero or positive. A value of zero indicates that the channels are aligned. A positive value delays the analog output by the specified number of seconds. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].channel_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.channel_delay` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Channel Delay** - - C Attribute: **NIFGEN_ATTR_CHANNEL_DELAY** - -clock_mode ----------- - - .. py:attribute:: clock_mode - - Controls which clock mode is used for the signal generator. - For signal generators that support it, this property allows switching the sample clock to High-Resolution mode. When in Divide-Down mode, the sample rate can only be set to certain frequences, based on dividing down the update clock. However, in High-Resolution mode, the sample rate may be set to any value. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | enums.ClockMode | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock:Mode** - - C Attribute: **NIFGEN_ATTR_CLOCK_MODE** - -common_mode_offset ------------------- - - .. py:attribute:: common_mode_offset - - Specifies, in volts, the value the signal generator adds to or subtracts from the arbitrary waveform data. This property applies only when you set the :py:attr:`nifgen.Session.terminal_configuration` property to :py:data:`~nifgen.TerminalConfiguration.DIFFERENTIAL`. Common mode offset is applied to the signals generated at each differential output terminal. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].common_mode_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.common_mode_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Common Mode Offset** - - C Attribute: **NIFGEN_ATTR_COMMON_MODE_OFFSET** - -data_marker_events_count ------------------------- - - .. py:attribute:: data_marker_events_count - - Returns the number of Data Marker Events supported by the device. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Data Marker Events Count** - - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENTS_COUNT** - -data_marker_event_data_bit_number ---------------------------------- - - .. py:attribute:: data_marker_event_data_bit_number - - Specifies the bit number to assign to the Data Marker Event. - - - - - .. tip:: This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container data_markers to specify a subset. - - Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_data_bit_number` - - To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.data_marker_event_data_bit_number` - - The following table lists the characteristics of this property. - - +-----------------------+--------------+ - | Characteristic | Value | - +=======================+==============+ - | Datatype | int | - +-----------------------+--------------+ - | Permissions | read-write | - +-----------------------+--------------+ - | Repeated Capabilities | data_markers | - +-----------------------+--------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Data Marker:Data Bit Number** - - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENT_DATA_BIT_NUMBER** - -data_marker_event_level_polarity --------------------------------- - - .. py:attribute:: data_marker_event_level_polarity - - Specifies the output polarity of the Data marker event. - - - - - .. tip:: This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container data_markers to specify a subset. - - Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_level_polarity` - - To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.data_marker_event_level_polarity` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------+ - | Characteristic | Value | - +=======================+====================================+ - | Datatype | enums.DataMarkerEventLevelPolarity | - +-----------------------+------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------+ - | Repeated Capabilities | data_markers | - +-----------------------+------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Data Marker:Level:Active Level** - - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENT_LEVEL_POLARITY** - -data_marker_event_output_terminal ---------------------------------- - - .. py:attribute:: data_marker_event_output_terminal - - Specifies the destination terminal for the Data Marker Event. - - - - - .. tip:: This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container data_markers to specify a subset. - - Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_output_terminal` - - To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.data_marker_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+--------------+ - | Characteristic | Value | - +=======================+==============+ - | Datatype | str | - +-----------------------+--------------+ - | Permissions | read-write | - +-----------------------+--------------+ - | Repeated Capabilities | data_markers | - +-----------------------+--------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Data Marker:Output Terminal** - - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENT_OUTPUT_TERMINAL** - -data_transfer_block_size ------------------------- - - .. py:attribute:: data_transfer_block_size - - The number of samples at a time to download to onboard memory. Useful when the total data to be transferred to onboard memory is large. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Data Transfer Block Size** - - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_BLOCK_SIZE** - -data_transfer_maximum_bandwidth -------------------------------- - - .. py:attribute:: data_transfer_maximum_bandwidth - - Specifies the maximum amount of bus bandwidth (in bytes per second) to use for data transfers. The signal generator limits data transfer speeds on the PCIe bus to the value you specify for this property. Set this property to optimize bus bandwidth usage for multi-device streaming applications by preventing the signal generator from consuming all of the available bandwidth on a PCI express link when waveforms are being written to the onboard memory of the device. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Maximum Bandwidth** - - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_MAXIMUM_BANDWIDTH** - -data_transfer_maximum_in_flight_reads -------------------------------------- - - .. py:attribute:: data_transfer_maximum_in_flight_reads - - Specifies the maximum number of concurrent PCI Express read requests the signal generator can issue. - When transferring data from computer memory to device onboard memory across the PCI Express bus, the signal generator can issue multiple memory reads at the same time. In general, the larger the number of read requests, the more efficiently the device uses the bus because the multiple read requests keep the data flowing, even in a PCI Express topology that has high latency due to PCI Express switches in the data path. Most NI devices can issue a large number of read requests (typically 8 or 16). By default, this property is set to the highest value the signal generator supports. - If other devices in your system cannot tolerate long data latencies, it may be helpful to decrease the number of in-flight read requests the NI signal generator issues. This helps to reduce the amount of data the signal generator reads at one time. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Advanced:Maximum In-Flight Read Requests** - - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_MAXIMUM_IN_FLIGHT_READS** - -data_transfer_preferred_packet_size ------------------------------------ - - .. py:attribute:: data_transfer_preferred_packet_size - - Specifies the preferred size of the data field in a PCI Express read request packet. In general, the larger the packet size, the more efficiently the device uses the bus. By default, NI signal generators use the largest packet size allowed by the system. However, due to different system implementations, some systems may perform better with smaller packet sizes. - Recommended values for this property are powers of two between 64 and 512. - In some cases, the signal generator generates packets smaller than the preferred size you set with this property. - You cannot change this property while the device is generating a waveform. If you want to change the device configuration, call the :py:meth:`nifgen.Session.abort` method or wait for the generation to complete. - - - - .. note:: : - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Advanced:Preferred Packet Size** - - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_PREFERRED_PACKET_SIZE** - -digital_data_mask ------------------ - - .. py:attribute:: digital_data_mask - - Specifies the mask to apply to the output on the digital connector. The masked data is replaced with the data in :py:attr:`nifgen.Session.digital_static_value`. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Data Mask:Digital Data Mask** - - C Attribute: **NIFGEN_ATTR_DIGITAL_DATA_MASK** - -digital_edge_script_trigger_edge --------------------------------- - - .. py:attribute:: digital_edge_script_trigger_edge - - Specifies the active edge for the Script trigger. This property is used when :py:attr:`nifgen.Session.script_trigger_type` is set to Digital Edge. - - - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_edge` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------+ - | Characteristic | Value | - +=======================+====================================+ - | Datatype | enums.ScriptTriggerDigitalEdgeEdge | - +-----------------------+------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Digital Edge:Edge** - - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE** - -digital_edge_script_trigger_source ----------------------------------- - - .. py:attribute:: digital_edge_script_trigger_source - - Specifies the source terminal for the Script trigger. This property is used when :py:attr:`nifgen.Session.script_trigger_type` is set to Digital Edge. - - - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_source` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | str | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Digital Edge:Source** - - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE** - -digital_edge_start_trigger_edge -------------------------------- - - .. py:attribute:: digital_edge_start_trigger_edge - - Specifies the active edge for the Start trigger. This property is used only when :py:attr:`nifgen.Session.start_trigger_type` is set to Digital Edge. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------------+ - | Characteristic | Value | - +=======================+===================================+ - | Datatype | enums.StartTriggerDigitalEdgeEdge | - +-----------------------+-----------------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Digital Edge:Edge** - - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** - -digital_edge_start_trigger_source ---------------------------------- - - .. py:attribute:: digital_edge_start_trigger_source - - Specifies the source terminal for the Start trigger. This property is used only when :py:attr:`nifgen.Session.start_trigger_type` is set to Digital Edge. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Digital Edge:Source** - - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** - -digital_filter_enabled ----------------------- - - .. py:attribute:: digital_filter_enabled - - Controls whether the signal generator applies a digital filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Filters:Digital Filter Enabled** - - C Attribute: **NIFGEN_ATTR_DIGITAL_FILTER_ENABLED** - -digital_filter_interpolation_factor ------------------------------------ - - .. py:attribute:: digital_filter_interpolation_factor - - This property only affects the device when :py:attr:`nifgen.Session.digital_filter_enabled` is set to True. If you do not set this property directly, NI-FGEN automatically selects the maximum interpolation factor allowed for the current sample rate. Valid values are 2, 4, and 8. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Filters:Digital Filter Interpolation Factor** - - C Attribute: **NIFGEN_ATTR_DIGITAL_FILTER_INTERPOLATION_FACTOR** - -digital_gain ------------- - - .. py:attribute:: digital_gain - - Specifies a factor by which the signal generator digitally multiplies generated data before converting it to an analog signal in the DAC. For a digital gain greater than 1.0, the product of digital gain times the generated data must be inside the range plus or minus 1.0 (assuming floating point data). If the product exceeds these limits, the signal generator clips the output signal, and an error results. - Some signal generators support both digital gain and an analog gain (analog gain is specified with the :py:attr:`nifgen.Session.func_amplitude` property or the :py:attr:`nifgen.Session.arb_gain` property). Digital gain can be changed during generation without the glitches that may occur when changing analog gains, due to relay switching. However, the DAC output resolution is a method of analog gain, so only analog gain makes full use of the resolution of the DAC. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Digital Gain** - - C Attribute: **NIFGEN_ATTR_DIGITAL_GAIN** - -digital_pattern_enabled ------------------------ - - .. py:attribute:: digital_pattern_enabled - - Controls whether the signal generator generates a digital pattern of the output signal. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Advanced:Digital Pattern Enabled** - - C Attribute: **NIFGEN_ATTR_DIGITAL_PATTERN_ENABLED** - -digital_static_value --------------------- - - .. py:attribute:: digital_static_value - - Specifies the static value that replaces data masked by :py:attr:`nifgen.Session.digital_data_mask`. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Data Mask:Digital Static Value** - - C Attribute: **NIFGEN_ATTR_DIGITAL_STATIC_VALUE** - -done_event_output_terminal --------------------------- - - .. py:attribute:: done_event_output_terminal - - Specifies the destination terminal for the Done Event. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done:Output Terminal** - - C Attribute: **NIFGEN_ATTR_DONE_EVENT_OUTPUT_TERMINAL** - -done_event_pulse_width ----------------------- - - .. py:attribute:: done_event_pulse_width - - Specifies the pulse width for the Done Event. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done:Pulse:Width Value** - - C Attribute: **NIFGEN_ATTR_DONE_EVENT_PULSE_WIDTH** - -done_event_pulse_width_units ----------------------------- - - .. py:attribute:: done_event_pulse_width_units - - Specifies the pulse width units for the Done Event. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.EventPulseWidthUnits | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done:Pulse:Width Units** - - C Attribute: **NIFGEN_ATTR_DONE_EVENT_PULSE_WIDTH_UNITS** - -driver_setup ------------- - - .. py:attribute:: driver_setup - - Specifies the driver setup portion of the option string that was passed into the :py:meth:`nifgen.Session.InitWithOptions` method. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIFGEN_ATTR_DRIVER_SETUP** - -exported_onboard_reference_clock_output_terminal ------------------------------------------------- - - .. py:attribute:: exported_onboard_reference_clock_output_terminal - - Specifies the terminal to which to export the Onboard Reference Clock. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Reference Clock:Onboard Reference Clock:Export Output Terminal** - - C Attribute: **NIFGEN_ATTR_EXPORTED_ONBOARD_REFERENCE_CLOCK_OUTPUT_TERMINAL** - -exported_reference_clock_output_terminal ----------------------------------------- - - .. py:attribute:: exported_reference_clock_output_terminal - - Specifies the terminal to which to export the Reference Clock. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Reference Clock:Export Output Terminal** - - C Attribute: **NIFGEN_ATTR_EXPORTED_REFERENCE_CLOCK_OUTPUT_TERMINAL** - -exported_sample_clock_divisor ------------------------------ - - .. py:attribute:: exported_sample_clock_divisor - - Specifies the factor by which to divide the Sample clock, also known as the Update clock, before it is exported. To export the Sample clock, use the :py:meth:`nifgen.Session.ExportSignal` method or the :py:attr:`nifgen.Session.exported_sample_clock_output_terminal` property. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock:Exported Sample Clock Divisor** - - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_DIVISOR** - -exported_sample_clock_output_terminal -------------------------------------- - - .. py:attribute:: exported_sample_clock_output_terminal - - Specifies the terminal to which to export the Sample Clock. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock:Export Output Terminal** - - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL** - -exported_sample_clock_timebase_divisor --------------------------------------- - - .. py:attribute:: exported_sample_clock_timebase_divisor - - Specifies the factor by which to divide the sample clock timebase (board clock) before it is exported. To export the Sample clock timebase, use the :py:meth:`nifgen.Session.ExportSignal` method or the :py:attr:`nifgen.Session.exported_sample_clock_timebase_output_terminal` property. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock Timebase:Exported Sample Clock Timebase Divisor** - - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_TIMEBASE_DIVISOR** - -exported_sample_clock_timebase_output_terminal ----------------------------------------------- - - .. py:attribute:: exported_sample_clock_timebase_output_terminal - - Specifies the terminal to which to export the Sample clock timebase. If you specify a divisor with the :py:attr:`nifgen.Session.exported_sample_clock_timebase_divisor` property, the Sample clock exported with the :py:attr:`nifgen.Session.exported_sample_clock_timebase_output_terminal` property is the value of the Sample clock timebase after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. - To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock Timebase:Export Output Terminal** - - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_TIMEBASE_OUTPUT_TERMINAL** - -exported_script_trigger_output_terminal ---------------------------------------- - - .. py:attribute:: exported_script_trigger_output_terminal - - Specifies the output terminal for the exported Script trigger. - Setting this property to an empty string means that when you commit the session, the signal is removed from that terminal and, if possible, the terminal is tristated. - - - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.exported_script_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | str | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Output Terminal** - - C Attribute: **NIFGEN_ATTR_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL** - -exported_start_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_start_trigger_output_terminal - - Specifies the destination terminal for exporting the Start trigger. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Output Terminal** - - C Attribute: **NIFGEN_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** - -external_clock_delay_binary_value ---------------------------------- - - .. py:attribute:: external_clock_delay_binary_value - - Binary value of the external clock delay. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Advanced:External Clock Delay Binary Value** - - C Attribute: **NIFGEN_ATTR_EXTERNAL_CLOCK_DELAY_BINARY_VALUE** - -external_sample_clock_multiplier --------------------------------- - - .. py:attribute:: external_sample_clock_multiplier - - Specifies a multiplication factor to use to obtain a desired sample rate from an external Sample clock. The resulting sample rate is equal to this factor multiplied by the external Sample clock rate. You can use this property to generate samples at a rate higher than your external clock rate. When using this property, you do not need to explicitly set the external clock rate. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Advanced:External Sample Clock Multiplier** - - C Attribute: **NIFGEN_ATTR_EXTERNAL_SAMPLE_CLOCK_MULTIPLIER** - -file_transfer_block_size ------------------------- - - .. py:attribute:: file_transfer_block_size - - The number of samples at a time to read from the file and download to onboard memory. Used in conjunction with the Create From File and Write From File methods. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:File Transfer Block Size** - - C Attribute: **NIFGEN_ATTR_FILE_TRANSFER_BLOCK_SIZE** - -filter_correction_frequency ---------------------------- - - .. py:attribute:: filter_correction_frequency - - Controls the filter correction frequency of the analog filter. This property corrects for the ripples in the analog filter frequency response at the frequency specified. For standard waveform output, the filter correction frequency should be set to be the same as the frequency of the standard waveform. To have no filter correction, set this property to 0 Hz. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:5401/5411/5431:Filter Correction Frequency** - - C Attribute: **NIFGEN_ATTR_FILTER_CORRECTION_FREQUENCY** - -flatness_correction_enabled ---------------------------- - - .. py:attribute:: flatness_correction_enabled - - When True, the signal generator applies a flatness correction factor to the generated sine wave in order to ensure the same output power level at all frequencies. - This property should be set to False when performing Flatness Calibration. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Filters:Flatness Correction Enabled** - - C Attribute: **NIFGEN_ATTR_FLATNESS_CORRECTION_ENABLED** - -fpga_bitfile_path ------------------ - - .. py:attribute:: fpga_bitfile_path - - Gets the absolute file path to the bitfile loaded on the FPGA. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:FPGA Bitfile Path** - - C Attribute: **NIFGEN_ATTR_FPGA_BITFILE_PATH** - -freq_list_duration_quantum --------------------------- - - .. py:attribute:: freq_list_duration_quantum - - Returns the quantum of which all durations must be a multiple in a frequency list. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Frequency List Duration Quantum** - - C Attribute: **NIFGEN_ATTR_FREQ_LIST_DURATION_QUANTUM** - -freq_list_handle ----------------- - - .. py:attribute:: freq_list_handle - - Sets which frequency list the signal generator produces. Create a frequency list using :py:meth:`nifgen.Session.create_freq_list`. :py:meth:`nifgen.Session.create_freq_list` returns a handle that you can use to identify the list. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Frequency List Handle** - - C Attribute: **NIFGEN_ATTR_FREQ_LIST_HANDLE** - -func_amplitude --------------- - - .. py:attribute:: func_amplitude - - Controls the amplitude of the standard waveform that the signal generator produces. This value is the amplitude at the output terminal. - For example, to produce a waveform ranging from -5.00 V to +5.00 V, set the amplitude to 10.00 V. - set the Waveform parameter to :py:data:`~nifgen.Waveform.DC`. - Units: Vpk-pk - - - - .. note:: This parameter does not affect signal generator behavior when you - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_amplitude` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_amplitude` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Amplitude** - - C Attribute: **NIFGEN_ATTR_FUNC_AMPLITUDE** - -func_buffer_size ----------------- - - .. py:attribute:: func_buffer_size - - This property contains the number of samples used in the standard method waveform buffer. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. - implementation of Standard Method Mode on your device. - - - - .. note:: Refer to the Standard Method Mode topic for more information on the - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Standard Function Mode:Buffer Size** - - C Attribute: **NIFGEN_ATTR_FUNC_BUFFER_SIZE** - -func_dc_offset --------------- - - .. py:attribute:: func_dc_offset - - Controls the DC offset of the standard waveform that the signal generator produces. This value is the offset at the output terminal. The value is the offset from ground to the center of the waveform that you specify with the Waveform parameter. - For example, to configure a waveform with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set DC Offset to 5.00 V. - Units: volts - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_dc_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_dc_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:DC Offset** - - C Attribute: **NIFGEN_ATTR_FUNC_DC_OFFSET** - -func_duty_cycle_high --------------------- - - .. py:attribute:: func_duty_cycle_high - - Controls the duty cycle of the square wave the signal generator produces. Specify this property as a percentage of the time the square wave is high in a cycle. - set the Waveform parameter to :py:data:`~nifgen.Waveform.SQUARE`. - Units: Percentage of time the waveform is high - - - - .. note:: This parameter only affects signal generator behavior when you - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_duty_cycle_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_duty_cycle_high` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Duty Cycle High** - - C Attribute: **NIFGEN_ATTR_FUNC_DUTY_CYCLE_HIGH** - -func_frequency --------------- - - .. py:attribute:: func_frequency - - Controls the frequency of the standard waveform that the signal generator produces. - Units: hertz - (1) This parameter does not affect signal generator behavior when you set the Waveform parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` method to :py:data:`~nifgen.Waveform.DC`. - (2) For :py:data:`~nifgen.Waveform.SINE`, the range is between 0 MHz and 16 MHz, but the range is between 0 MHz and 1 MHz for all other waveforms. - - - - .. note:: : - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Standard Function Mode:Frequency** - - C Attribute: **NIFGEN_ATTR_FUNC_FREQUENCY** - -func_max_buffer_size --------------------- - - .. py:attribute:: func_max_buffer_size - - This property sets the maximum number of samples that can be used in the standard method waveform buffer. Increasing this value may increase the quality of the waveform. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. - implementation of Standard Method Mode on your device. - - - - .. note:: Refer to the Standard Method Mode topic for more information on the - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Standard Function Mode:Maximum Buffer Size** - - C Attribute: **NIFGEN_ATTR_FUNC_MAX_BUFFER_SIZE** - -func_start_phase ----------------- - - .. py:attribute:: func_start_phase - - Controls horizontal offset of the standard waveform the signal generator produces. Specify this property in degrees of one waveform cycle. - A start phase of 180 degrees means output generation begins halfway through the waveform. A start phase of 360 degrees offsets the output by an entire waveform cycle, which is identical to a start phase of 0 degrees. - set the Waveform parameter to :py:data:`~nifgen.Waveform.DC`. - Units: Degrees of one cycle - - - - .. note:: This parameter does not affect signal generator behavior when you - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_start_phase` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_start_phase` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Start Phase** - - C Attribute: **NIFGEN_ATTR_FUNC_START_PHASE** - -func_waveform -------------- - - .. py:attribute:: func_waveform - - This channel-based property specifies which standard waveform the signal generator produces. - Use this property only when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.FUNC`. - :py:data:`~nifgen.Waveform.SINE` - Sinusoid waveform - :py:data:`~nifgen.Waveform.SQUARE` - Square waveform - :py:data:`~nifgen.Waveform.TRIANGLE` - Triangle waveform - :py:data:`~nifgen.Waveform.RAMP_UP` - Positive ramp waveform - :py:data:`~nifgen.Waveform.RAMP_DOWN` - Negative ramp waveform - :py:data:`~nifgen.Waveform.DC` - Constant voltage - :py:data:`~nifgen.Waveform.NOISE` - White noise - :py:data:`~nifgen.Waveform.USER` - User-defined waveform as defined with - :py:meth:`nifgen.Session.define_user_standard_waveform` - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_waveform` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_waveform` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.Waveform | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Waveform** - - C Attribute: **NIFGEN_ATTR_FUNC_WAVEFORM** - -idle_behavior -------------- - - .. py:attribute:: idle_behavior - - Specifies the behavior of the output during the Idle state. The output can be configured to hold the last generated voltage before entering the Idle state or jump to the Idle Value. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------+ - | Characteristic | Value | - +=======================+====================+ - | Datatype | enums.IdleBehavior | - +-----------------------+--------------------+ - | Permissions | read-write | - +-----------------------+--------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Advanced:Idle Behavior** - - C Attribute: **NIFGEN_ATTR_IDLE_BEHAVIOR** - -idle_value ----------- - - .. py:attribute:: idle_value - - Specifies the value to generate in the Idle state. The Idle Behavior must be configured to jump to this value. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Advanced:Idle Value** - - C Attribute: **NIFGEN_ATTR_IDLE_VALUE** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - A string that contains the firmware revision information for the device that you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Firmware Revision** - - C Attribute: **NIFGEN_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - A string that contains the name of the device manufacturer you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Manufacturer** - - C Attribute: **NIFGEN_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - A string that contains the model number or name of the device that you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Model** - - C Attribute: **NIFGEN_ATTR_INSTRUMENT_MODEL** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Indicates the resource descriptor that NI-FGEN uses to identify the physical device. - If you initialize NI-FGEN with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration Utility. - If you initialize NI-FGEN with the resource descriptor, this property contains that value. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** - - C Attribute: **NIFGEN_ATTR_IO_RESOURCE_DESCRIPTOR** - -load_impedance --------------- - - .. py:attribute:: load_impedance - - This channel-based property specifies the load impedance connected to the analog output of the channel. If you set this property to :py:data:`~nifgen.NIFGEN_VAL_MATCHED_LOAD_IMPEDANCE` (-1.0), NI-FGEN assumes that the load impedance matches the output impedance. NI-FGEN compensates to give the desired peak-to-peak voltage amplitude or arbitrary gain (relative to 1 V). - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Load Impedance** - - C Attribute: **NIFGEN_ATTR_LOAD_IMPEDANCE** - -logical_name ------------- - - .. py:attribute:: logical_name - - A string containing the logical name that you specified when opening the current IVI session. - You may pass a logical name to :py:meth:`nifgen.Session.init` or :py:meth:`nifgen.Session.InitWithOptions`. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NIFGEN_ATTR_LOGICAL_NAME** - -marker_events_count -------------------- - - .. py:attribute:: marker_events_count - - Returns the number of markers supported by the device. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SCRIPT`. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Marker Events Count** - - C Attribute: **NIFGEN_ATTR_MARKER_EVENTS_COUNT** - -marker_event_output_terminal ----------------------------- - - .. py:attribute:: marker_event_output_terminal - - Specifies the destination terminal for the Marker Event. - - - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_output_terminal` - - To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.marker_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | markers | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Output Terminal** - - C Attribute: **NIFGEN_ATTR_MARKER_EVENT_OUTPUT_TERMINAL** - -marker_event_pulse_width ------------------------- - - .. py:attribute:: marker_event_pulse_width - - Specifies the pulse width for the Marker Event. - - - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` - - To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | markers | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Pulse:Width Value** - - C Attribute: **NIFGEN_ATTR_MARKER_EVENT_PULSE_WIDTH** - -marker_event_pulse_width_units ------------------------------- - - .. py:attribute:: marker_event_pulse_width_units - - Specifies the pulse width units for the Marker Event. - - - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` - - To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width_units` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.EventPulseWidthUnits | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | markers | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Pulse:Width Units** - - C Attribute: **NIFGEN_ATTR_MARKER_EVENT_PULSE_WIDTH_UNITS** - -max_freq_list_duration ----------------------- - - .. py:attribute:: max_freq_list_duration - - Returns the maximum duration of any one step in the frequency list. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Maximum Frequency List Duration** - - C Attribute: **NIFGEN_ATTR_MAX_FREQ_LIST_DURATION** - -max_freq_list_length --------------------- - - .. py:attribute:: max_freq_list_length - - Returns the maximum number of steps that can be in a frequency list. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Maximum Frequency List Length** - - C Attribute: **NIFGEN_ATTR_MAX_FREQ_LIST_LENGTH** - -max_loop_count --------------- - - .. py:attribute:: max_loop_count - - Returns the maximum number of times that the signal generator can repeat a waveform in a sequence. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Max Loop Count** - - C Attribute: **NIFGEN_ATTR_MAX_LOOP_COUNT** - -max_num_freq_lists ------------------- - - .. py:attribute:: max_num_freq_lists - - Returns the maximum number of frequency lists the signal generator allows. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Maximum Number Of Frequency Lists** - - C Attribute: **NIFGEN_ATTR_MAX_NUM_FREQ_LISTS** - -max_num_sequences ------------------ - - .. py:attribute:: max_num_sequences - - Returns the maximum number of arbitrary sequences that the signal generator allows. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Max Number of Sequences** - - C Attribute: **NIFGEN_ATTR_MAX_NUM_SEQUENCES** - -max_num_waveforms ------------------ - - .. py:attribute:: max_num_waveforms - - Returns the maximum number of arbitrary waveforms that the signal generator allows. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Capabilities:Max Number of Waveforms** - - C Attribute: **NIFGEN_ATTR_MAX_NUM_WAVEFORMS** - -max_sequence_length -------------------- - - .. py:attribute:: max_sequence_length - - Returns the maximum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Max Sequence Length** - - C Attribute: **NIFGEN_ATTR_MAX_SEQUENCE_LENGTH** - -max_waveform_size ------------------ - - .. py:attribute:: max_waveform_size - - Returns the size, in samples, of the largest waveform that can be created. This property reflects the space currently available, taking into account previously allocated waveforms and instructions. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Capabilities:Max Waveform Size** - - C Attribute: **NIFGEN_ATTR_MAX_WAVEFORM_SIZE** - -memory_size ------------ - - .. py:attribute:: memory_size - - The total amount of memory, in bytes, on the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Memory Size** - - C Attribute: **NIFGEN_ATTR_MEMORY_SIZE** - -min_freq_list_duration ----------------------- - - .. py:attribute:: min_freq_list_duration - - Returns the minimum number of steps that can be in a frequency list. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Minimum Frequency List Duration** - - C Attribute: **NIFGEN_ATTR_MIN_FREQ_LIST_DURATION** - -min_freq_list_length --------------------- - - .. py:attribute:: min_freq_list_length - - Returns the minimum number of frequency lists that the signal generator allows. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Standard Function:Frequency List Mode:Minimum Frequency List Length** - - C Attribute: **NIFGEN_ATTR_MIN_FREQ_LIST_LENGTH** - -min_sequence_length -------------------- - - .. py:attribute:: min_sequence_length - - Returns the minimum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Min Sequence Length** - - C Attribute: **NIFGEN_ATTR_MIN_SEQUENCE_LENGTH** - -min_waveform_size ------------------ - - .. py:attribute:: min_waveform_size - - Returns the minimum number of points that the signal generator allows in an arbitrary waveform. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Capabilities:Min Waveform Size** - - C Attribute: **NIFGEN_ATTR_MIN_WAVEFORM_SIZE** - -module_revision ---------------- - - .. py:attribute:: module_revision - - A string that contains the module revision for the device that you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Module Revision** - - C Attribute: **NIFGEN_ATTR_MODULE_REVISION** - -channel_count -------------- - - .. py:attribute:: channel_count - - Indicates the number of channels that the specific instrument driver supports. - For each property for which IVI_VAL_MULTI_CHANNEL is set, the IVI Engine maintains a separate cache value for each channel. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Capabilities:Channel Count** - - C Attribute: **NIFGEN_ATTR_NUM_CHANNELS** - -output_enabled --------------- - - .. py:attribute:: output_enabled - - This channel-based property specifies whether the signal that the signal generator produces appears at the output connector. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.output_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Output Enabled** - - C Attribute: **NIFGEN_ATTR_OUTPUT_ENABLED** - -output_impedance ----------------- - - .. py:attribute:: output_impedance - - This channel-based property specifies the signal generator output impedance at the output connector. NI signal sources modules have an output impedance of 50 ohms and an optional 75 ohms on select modules. If the load impedance matches the output impedance, then the voltage at the signal output connector is at the needed level. The voltage at the signal output connector varies with load output impedance, up to doubling the voltage for a high-impedance load. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.output_impedance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Output Impedance** - - C Attribute: **NIFGEN_ATTR_OUTPUT_IMPEDANCE** - -output_mode ------------ - - .. py:attribute:: output_mode - - Sets which output mode the signal generator will use. The value you specify determines which methods and properties you use to configure the waveform the signal generator produces. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. - - The following table lists the characteristics of this property. - - +-----------------------+------------------+ - | Characteristic | Value | - +=======================+==================+ - | Datatype | enums.OutputMode | - +-----------------------+------------------+ - | Permissions | read-write | - +-----------------------+------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Output Mode** - - C Attribute: **NIFGEN_ATTR_OUTPUT_MODE** - -ready_for_start_event_output_terminal -------------------------------------- - - .. py:attribute:: ready_for_start_event_output_terminal - - Specifies the destination terminal for the Ready for Start Event. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Start:Output Terminal** - - C Attribute: **NIFGEN_ATTR_READY_FOR_START_EVENT_OUTPUT_TERMINAL** - -reference_clock_source ----------------------- - - .. py:attribute:: reference_clock_source - - Specifies the reference clock source used by the signal generator. - The signal generator derives the frequencies and sample rates that it uses to generate waveforms from the source you specify. For example, when you set this property to ClkIn, the signal generator uses the signal it receives at the CLK IN front panel connector as the Reference clock. - To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ReferenceClockSource | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Reference Clock:Source** - - C Attribute: **NIFGEN_ATTR_REFERENCE_CLOCK_SOURCE** - -ref_clock_frequency -------------------- - - .. py:attribute:: ref_clock_frequency - - Sets the frequency of the signal generator reference clock. The signal generator uses the reference clock to derive frequencies and sample rates when generating output. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Reference Clock:Frequency** - - C Attribute: **NIFGEN_ATTR_REF_CLOCK_FREQUENCY** - -sample_clock_source -------------------- - - .. py:attribute:: sample_clock_source - - Specifies the Sample clock source. If you specify a divisor with the :py:attr:`nifgen.Session.exported_sample_clock_divisor` property, the Sample clock exported with the :py:attr:`nifgen.Session.exported_sample_clock_output_terminal` property is the value of the Sample clock after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. - To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.SampleClockSource | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock:Source** - - C Attribute: **NIFGEN_ATTR_SAMPLE_CLOCK_SOURCE** - -sample_clock_timebase_rate --------------------------- - - .. py:attribute:: sample_clock_timebase_rate - - Specifies the Sample clock timebase rate. This property applies only to external Sample clock timebases. - To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock Timebase:Rate** - - C Attribute: **NIFGEN_ATTR_SAMPLE_CLOCK_TIMEBASE_RATE** - -sample_clock_timebase_source ----------------------------- - - .. py:attribute:: sample_clock_timebase_source - - Specifies the Sample Clock Timebase source. - To change the device configuration, call the :py:meth:`nifgen.Session.abort` method or wait for the generation to complete. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.SampleClockTimebaseSource | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocks:Sample Clock Timebase:Source** - - C Attribute: **NIFGEN_ATTR_SAMPLE_CLOCK_TIMEBASE_SOURCE** - -script_to_generate ------------------- - - .. py:attribute:: script_to_generate - - Specifies which script the generator produces. To configure the generator to run a particular script, set this property to the name of the script. Use :py:meth:`nifgen.Session.write_script` to create multiple scripts. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SCRIPT`. - - - - .. note:: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Script Mode:Script to Generate** - - C Attribute: **NIFGEN_ATTR_SCRIPT_TO_GENERATE** - -script_triggers_count ---------------------- - - .. py:attribute:: script_triggers_count - - Specifies the number of Script triggers supported by the device. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SCRIPT`. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Script Triggers Count** - - C Attribute: **NIFGEN_ATTR_SCRIPT_TRIGGERS_COUNT** - -script_trigger_type -------------------- - - .. py:attribute:: script_trigger_type - - Specifies the Script trigger type. Depending upon the value of this property, additional properties may need to be configured to fully configure the trigger. - - - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.script_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.ScriptTriggerType | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Trigger Type** - - C Attribute: **NIFGEN_ATTR_SCRIPT_TRIGGER_TYPE** - -serial_number -------------- - - .. py:attribute:: serial_number - - The signal generator's serial number. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Serial Number** - - C Attribute: **NIFGEN_ATTR_SERIAL_NUMBER** - -simulate --------- - - .. py:attribute:: simulate - - Specifies whether to simulate NI-FGEN I/O operations. If simulation is enabled, NI-FGEN methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute, but they do not perform device I/O. For output parameters that represent device data, NI-FGEN methods return calculated values. - Default Value: False - Use :py:meth:`nifgen.Session.InitWithOptions` to override default value. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:User Options:Simulate** - - C Attribute: **NIFGEN_ATTR_SIMULATE** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - Returns a brief description of NI-FGEN. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Identification:Description** - - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -major_version -------------- - - .. py:attribute:: major_version - - Returns the major version number of NI-FGEN. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Obsolete:Major Version** - - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_MAJOR_VERSION** - -minor_version -------------- - - .. py:attribute:: minor_version - - Returns the minor version number of NI-FGEN. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Obsolete:Minor Version** - - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_MINOR_VERSION** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - A string that contains additional version information about NI-FGEN. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Identification:Revision** - - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - A string that contains the name of the vendor that supplies NI-FGEN. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Identification:Driver Vendor** - - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_VENDOR** - -started_event_output_terminal ------------------------------ - - .. py:attribute:: started_event_output_terminal - - Specifies the destination terminal for the Started Event. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Started:Output Terminal** - - C Attribute: **NIFGEN_ATTR_STARTED_EVENT_OUTPUT_TERMINAL** - -started_event_pulse_width -------------------------- - - .. py:attribute:: started_event_pulse_width - - Specifies the pulse width for the Started Event. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Started:Pulse:Width Value** - - C Attribute: **NIFGEN_ATTR_STARTED_EVENT_PULSE_WIDTH** - -started_event_pulse_width_units -------------------------------- - - .. py:attribute:: started_event_pulse_width_units - - Specifies the pulse width units for the Started Event. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.EventPulseWidthUnits | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Started:Pulse:Width Units** - - C Attribute: **NIFGEN_ATTR_STARTED_EVENT_PULSE_WIDTH_UNITS** - -start_trigger_type ------------------- - - .. py:attribute:: start_trigger_type - - Specifies whether you want the Start trigger to be a Digital Edge, or Software trigger. You can also choose None as the value for this property. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.StartTriggerType | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Trigger Type** - - C Attribute: **NIFGEN_ATTR_START_TRIGGER_TYPE** - -streaming_space_available_in_waveform -------------------------------------- - - .. py:attribute:: streaming_space_available_in_waveform - - Indicates the space available (in samples) in the streaming waveform for writing new data. During generation, this available space may be in multiple locations with, for example, part of the available space at the end of the streaming waveform and the rest at the beginning. In this situation, writing a block of waveform data the size of the total space available in the streaming waveform causes NI-FGEN to return an error, as NI-FGEN will not wrap the data from the end of the waveform to the beginning and cannot write data past the end of the waveform buffer. - To avoid writing data past the end of the waveform, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. - Used in conjunction with the :py:attr:`nifgen.Session.streaming_waveform_handle` or :py:attr:`nifgen.Session.streaming_waveform_name` properties. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Space Available in Streaming Waveform** - - C Attribute: **NIFGEN_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM** - -streaming_waveform_handle -------------------------- - - .. py:attribute:: streaming_waveform_handle - - Specifies the waveform handle of the waveform used to continuously stream data during generation. This property defaults to -1 when no streaming waveform is specified. - Used in conjunction with :py:attr:`nifgen.Session.streaming_space_available_in_waveform`. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Streaming Waveform Handle** - - C Attribute: **NIFGEN_ATTR_STREAMING_WAVEFORM_HANDLE** - -streaming_waveform_name ------------------------ - - .. py:attribute:: streaming_waveform_name - - Specifies the name of the waveform used to continuously stream data during generation. This property defaults to // when no streaming waveform is specified. - Use in conjunction with :py:attr:`nifgen.Session.streaming_space_available_in_waveform`. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Streaming Waveform Name** - - C Attribute: **NIFGEN_ATTR_STREAMING_WAVEFORM_NAME** - -streaming_write_timeout ------------------------ - - .. py:attribute:: streaming_write_timeout - - Specifies the maximum amount of time allowed to complete a streaming write operation. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Streaming Write Timeout** - - C Attribute: **NIFGEN_ATTR_STREAMING_WRITE_TIMEOUT** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - Returns a model code of the device. For NI-FGEN versions that support more than one device, this property contains a comma-separated list of supported device models. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** - - C Attribute: **NIFGEN_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -terminal_configuration ----------------------- - - .. py:attribute:: terminal_configuration - - Specifies whether gain and offset values will be analyzed based on single-ended or differential operation. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].terminal_configuration` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.terminal_configuration` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.TerminalConfiguration | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Terminal Configuration** - - C Attribute: **NIFGEN_ATTR_TERMINAL_CONFIGURATION** - -trigger_mode ------------- - - .. py:attribute:: trigger_mode - - Controls the trigger mode. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].trigger_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.trigger_mode` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerMode | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Trigger Mode** - - C Attribute: **NIFGEN_ATTR_TRIGGER_MODE** - -wait_behavior -------------- - - .. py:attribute:: wait_behavior - - Specifies the behavior of the output while waiting for a script trigger or during a wait instruction. The output can be configured to hold the last generated voltage before waiting or jump to the Wait Value. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------+ - | Characteristic | Value | - +=======================+====================+ - | Datatype | enums.WaitBehavior | - +-----------------------+--------------------+ - | Permissions | read-write | - +-----------------------+--------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Advanced:Wait Behavior** - - C Attribute: **NIFGEN_ATTR_WAIT_BEHAVIOR** - -wait_value ----------- - - .. py:attribute:: wait_value - - Specifies the value to generate while waiting. The Wait Behavior must be configured to jump to this value. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output:Advanced:Wait Value** - - C Attribute: **NIFGEN_ATTR_WAIT_VALUE** - -waveform_quantum ----------------- - - .. py:attribute:: waveform_quantum - - The size of each arbitrary waveform must be a multiple of a quantum value. This property returns the quantum value that the signal generator allows. - For example, when this property returns a value of 8, all waveform sizes must be a multiple of 8. Typically, this value is constant for the signal generator. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arbitrary Waveform:Capabilities:Waveform Quantum** - - C Attribute: **NIFGEN_ATTR_WAVEFORM_QUANTUM** - - -NI-TClk Support -=============== - - .. py:attribute:: tclk - - This is used to get and set NI-TClk attributes on the session. - - .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. - - -.. contents:: Session diff --git a/docs/nifgen/conf.py b/docs/nifgen/conf.py deleted file mode 100644 index 64f022df0e..0000000000 --- a/docs/nifgen/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-FGEN Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-FGEN Python API' -copyright = '2017-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIFGENPythonAPI.tex', 'NI-FGEN Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nifgenpythonapi', 'NI-FGEN Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIFGENPythonAPI', 'NI-FGEN Python API Documentation', - author, 'NIFGENPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nifgen/enums.rst b/docs/nifgen/enums.rst deleted file mode 100644 index 0ee2dd01c0..0000000000 --- a/docs/nifgen/enums.rst +++ /dev/null @@ -1,905 +0,0 @@ -Enums -===== - -Enums used in NI-FGEN - -.. py:currentmodule:: nifgen - - -AnalogPath ----------- - -.. py:class:: AnalogPath - - .. py:attribute:: AnalogPath.MAIN - - - - Specifies use of the main path. NI-FGEN chooses the amplifier based on the user-specified gain. - - - - - - .. py:attribute:: AnalogPath.DIRECT - - - - Specifies use of the direct path. - - - - - - .. py:attribute:: AnalogPath.FIXED_LOW_GAIN - - - - Specifies use of the low-gain amplifier in the main path, no matter what value the user specifies for gain. This setting limits the output range. - - - - - - .. py:attribute:: AnalogPath.FIXED_HIGH_GAIN - - - - Specifies use of the high-gain amplifier in the main path. - - - - - -BusType -------- - -.. py:class:: BusType - - .. py:attribute:: BusType.INVALID - - - - Indicates an invalid bus type. - - - - - - .. py:attribute:: BusType.AT - - - - Indicates the signal generator is the AT bus type. - - - - - - .. py:attribute:: BusType.PCI - - - - Indicates the signal generator is the PCI bus type. - - - - - - .. py:attribute:: BusType.PXI - - - - Indicates the signal generator is the PXI bus type. - - - - - - .. py:attribute:: BusType.VXI - - - - Indicates the signal generator is the VXI bus type. - - - - - - .. py:attribute:: BusType.PCMCIA - - - - Indicates the signal generator is the PCI-CMA bus type. - - - - - - .. py:attribute:: BusType.PXIE - - - - Indicates the signal generator is the PXI Express bus type. - - - - - -ByteOrder ---------- - -.. py:class:: ByteOrder - - .. py:attribute:: ByteOrder.LITTLE - - - - .. py:attribute:: ByteOrder.BIG - - - -ClockMode ---------- - -.. py:class:: ClockMode - - .. py:attribute:: ClockMode.HIGH_RESOLUTION - - - - High resolution sampling—Sample rate is generated by a high–resolution clock source. - - - - - - .. py:attribute:: ClockMode.DIVIDE_DOWN - - - - Divide down sampling—Sample rates are generated by dividing the source frequency. - - - - - - .. py:attribute:: ClockMode.AUTOMATIC - - - - Automatic Selection—NI-FGEN selects between the divide–down and high–resolution clocking modes. - - - - - -DataMarkerEventLevelPolarity ----------------------------- - -.. py:class:: DataMarkerEventLevelPolarity - - .. py:attribute:: DataMarkerEventLevelPolarity.HIGH - - - - When the operation is ready to start, the Ready for Start event level is high. - - - - - - .. py:attribute:: DataMarkerEventLevelPolarity.LOW - - - - When the operation is ready to start, the Ready for Start event level is low. - - - - - -EventPulseWidthUnits --------------------- - -.. py:class:: EventPulseWidthUnits - - .. py:attribute:: EventPulseWidthUnits.SAMPLE_CLOCK_PERIODS - - - - Specifies the pulse width in Sample clock periods. - - - - - - .. py:attribute:: EventPulseWidthUnits.SECONDS - - - - Specifies the pulse width in seconds. - - - - - -HardwareState -------------- - -.. py:class:: HardwareState - - .. py:attribute:: HardwareState.IDLE - - - - .. py:attribute:: HardwareState.WAITING_FOR_START_TRIGGER - - - - .. py:attribute:: HardwareState.RUNNING - - - - .. py:attribute:: HardwareState.DONE - - - - .. py:attribute:: HardwareState.HARDWARE_ERROR - - - -IdleBehavior ------------- - -.. py:class:: IdleBehavior - - .. py:attribute:: IdleBehavior.HOLD_LAST - - - - While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. - - - - - - .. py:attribute:: IdleBehavior.JUMP_TO - - - - While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. - - - - - -OutputMode ----------- - -.. py:class:: OutputMode - - .. py:attribute:: OutputMode.FUNC - - - - Standard Method mode— Generates standard method waveforms such as sine, square, triangle, and so on. - - - - - - .. py:attribute:: OutputMode.ARB - - - - Arbitrary waveform mode—Generates waveforms from user-created/provided waveform arrays of numeric data. - - - - - - .. py:attribute:: OutputMode.SEQ - - - - Arbitrary sequence mode — Generates downloaded waveforms in an order your specify. - - - - - - .. py:attribute:: OutputMode.FREQ_LIST - - - - Frequency List mode—Generates a standard method using a list of frequencies you define. - - - - - - .. py:attribute:: OutputMode.SCRIPT - - - - **Script mode—**\ Allows you to use scripting to link and loop multiple - waveforms in complex combinations. - - - - - -ReferenceClockSource --------------------- - -.. py:class:: ReferenceClockSource - - .. py:attribute:: ReferenceClockSource.CLOCK_IN - - - - Specifies that the CLK IN input signal from the front panel connector is - used as the Reference Clock source. - - - - - - .. py:attribute:: ReferenceClockSource.NONE - - - - Specifies that a Reference Clock is not used. - - - - - - .. py:attribute:: ReferenceClockSource.ONBOARD_REFERENCE_CLOCK - - - - Specifies that the onboard Reference Clock is used as the Reference - Clock source. - - - - - - .. py:attribute:: ReferenceClockSource.PXI_CLOCK - - - - Specifies that the PXI Clock is used as the Reference Clock source. - - - - - - .. py:attribute:: ReferenceClockSource.RTSI_7 - - - - Specifies that the RTSI line 7 is used as the Reference Clock source. - - - - - -RelativeTo ----------- - -.. py:class:: RelativeTo - - .. py:attribute:: RelativeTo.START - - - - .. py:attribute:: RelativeTo.CURRENT - - - -SampleClockSource ------------------ - -.. py:class:: SampleClockSource - - .. py:attribute:: SampleClockSource.CLOCK_IN - - - - Specifies that the signal at the CLK IN front panel connector is used as - the Sample Clock source. - - - - - - .. py:attribute:: SampleClockSource.DDC_CLOCK_IN - - - - Specifies that the Sample Clock from the DDC connector is used as the Sample - Clock source. - - - - - - .. py:attribute:: SampleClockSource.ONBOARD_CLOCK - - - - Specifies that the onboard clock is used as the Sample Clock source. - - - - - - .. py:attribute:: SampleClockSource.PXI_STAR_LINE - - - - Specifies that the PXI\_STAR trigger line is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_0_RTSI_0 - - - - Specifies that the PXI or RTSI line 0 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_1_RTSI_1 - - - - Specifies that the PXI or RTSI line 1 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_2_RTSI_2 - - - - Specifies that the PXI or RTSI line 2 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_3_RTSI_3 - - - - Specifies that the PXI or RTSI line 3 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_4_RTSI_4 - - - - Specifies that the PXI or RTSI line 4 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_5_RTSI_5 - - - - Specifies that the PXI or RTSI line 5 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_6_RTSI_6 - - - - Specifies that the PXI or RTSI line 6 is used as the Sample Clock - source. - - - - - - .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_7_RTSI_7 - - - - Specifies that the PXI or RTSI line 7 is used as the Sample Clock - source. - - - - - -SampleClockTimebaseSource -------------------------- - -.. py:class:: SampleClockTimebaseSource - - .. py:attribute:: SampleClockTimebaseSource.CLOCK_IN - - - - Specifies that the external signal on the CLK IN front panel connector - is used as the source. - - - - - - .. py:attribute:: SampleClockTimebaseSource.ONBOARD_CLOCK - - - - Specifies that the onboard Sample Clock timebase is used as the source. - - - - - -ScriptTriggerDigitalEdgeEdge ----------------------------- - -.. py:class:: ScriptTriggerDigitalEdgeEdge - - .. py:attribute:: ScriptTriggerDigitalEdgeEdge.RISING - - - - Rising Edge - - - - - - .. py:attribute:: ScriptTriggerDigitalEdgeEdge.FALLING - - - - Falling Edge - - - - - -ScriptTriggerType ------------------ - -.. py:class:: ScriptTriggerType - - .. py:attribute:: ScriptTriggerType.TRIG_NONE - - - - No trigger is configured. Signal generation starts immediately. - - - - - - .. py:attribute:: ScriptTriggerType.DIGITAL_EDGE - - - - Trigger is asserted when a digital edge is detected. - - - - - - .. py:attribute:: ScriptTriggerType.DIGITAL_LEVEL - - - - Trigger is asserted when a digital level is detected. - - - - - - .. py:attribute:: ScriptTriggerType.SOFTWARE_EDGE - - - - Trigger is asserted when a software edge is detected. - - - - - -StartTriggerDigitalEdgeEdge ---------------------------- - -.. py:class:: StartTriggerDigitalEdgeEdge - - .. py:attribute:: StartTriggerDigitalEdgeEdge.RISING - - - - Rising Edge - - - - - - .. py:attribute:: StartTriggerDigitalEdgeEdge.FALLING - - - - Falling Edge - - - - - -StartTriggerType ----------------- - -.. py:class:: StartTriggerType - - .. py:attribute:: StartTriggerType.TRIG_NONE - - - - None - - - - - - .. py:attribute:: StartTriggerType.DIGITAL_EDGE - - - - Digital Edge - - - - - - .. py:attribute:: StartTriggerType.SOFTWARE_EDGE - - - - Software Edge - - - - - - .. py:attribute:: StartTriggerType.P2P_ENDPOINT_FULLNESS - - - - P2P Endpoint Fullness - - - - - -TerminalConfiguration ---------------------- - -.. py:class:: TerminalConfiguration - - .. py:attribute:: TerminalConfiguration.SINGLE_ENDED - - - - Single-ended operation - - - - - - .. py:attribute:: TerminalConfiguration.DIFFERENTIAL - - - - Differential operation - - - - - -Trigger -------- - -.. py:class:: Trigger - - .. py:attribute:: Trigger.START - - - - .. py:attribute:: Trigger.SCRIPT - - - -TriggerMode ------------ - -.. py:class:: TriggerMode - - .. py:attribute:: TriggerMode.SINGLE - - - - Single Trigger Mode - The waveform you describe in the sequence list is generated only once by going through the entire staging list. Only one trigger is required to start the waveform generation. You can use Single trigger mode with the output mode in any mode. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. Then, the last stage generates repeatedly until you stop the waveform generation. - - - - - - .. py:attribute:: TriggerMode.CONTINUOUS - - - - Continuous Trigger Mode - The waveform you describe in the staging list generates infinitely by repeatedly cycling through the staging list. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. After the last stage completes, the waveform generation loops back to the start of the first stage and continues until it is stopped. Only one trigger is required to start the waveform generation. - - - - - - .. py:attribute:: TriggerMode.STEPPED - - - - Stepped Trigger Mode - After a start trigger is received, the waveform described by the first stage generates. Then, the device waits for the next trigger signal. On the next trigger, the waveform described by the second stage generates, and so on. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. After any stage has generated completely, the first eight samples of the next stage are repeated continuously until the next trigger is received. - trigger mode. - - - - .. note:: In Frequency List mode, Stepped trigger mode is the same as Burst - - - - .. py:attribute:: TriggerMode.BURST - - - - Burst Trigger Mode - After a start trigger is received, the waveform described by the first stage generates until another trigger is received. At the next trigger, the buffer of the previous stage completes, and then the waveform described by the second stage generates. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. In Frequency List mode, the duration instruction is ignored, and the trigger switches the frequency to the next frequency in the list. - trigger mode. - - - - .. note:: In Frequency List mode, Stepped trigger mode is the same as Burst - - - -WaitBehavior ------------- - -.. py:class:: WaitBehavior - - .. py:attribute:: WaitBehavior.HOLD_LAST - - - - While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. - - - - - - .. py:attribute:: WaitBehavior.JUMP_TO - - - - While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. - - - - - -Waveform --------- - -.. py:class:: Waveform - - .. py:attribute:: Waveform.SINE - - - - Sinusoid waveform - - - - - - .. py:attribute:: Waveform.SQUARE - - - - Square waveform - - - - - - .. py:attribute:: Waveform.TRIANGLE - - - - Triange waveform - - - - - - .. py:attribute:: Waveform.RAMP_UP - - - - Positive ramp waveform - - - - - - .. py:attribute:: Waveform.RAMP_DOWN - - - - Negative ramp waveform - - - - - - .. py:attribute:: Waveform.DC - - - - Constant voltage - - - - - - .. py:attribute:: Waveform.NOISE - - - - White noise - - - - - - .. py:attribute:: Waveform.USER - - - - User-defined waveform as defined by the :py:meth:`nifgen.Session.define_user_standard_waveform` method. - - - - - - - diff --git a/docs/nifgen/errors.rst b/docs/nifgen/errors.rst deleted file mode 100644 index 335216fafc..0000000000 --- a/docs/nifgen/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nifgen.errors - - .. exception:: Error - - Base exception type that all NI-FGEN exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nifgen.errors - - .. exception:: DriverError - - An error originating from the NI-FGEN driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nifgen.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nifgen.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nifgen.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-FGEN driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nifgen.errors - - .. exception:: DriverTooNewError - - An error due to the NI-FGEN driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nifgen.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: nifgen.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: nifgen.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: nifgen.errors - - .. exception:: DriverWarning - - A warning originating from the NI-FGEN driver - - - diff --git a/docs/nifgen/examples.rst b/docs/nifgen/examples.rst deleted file mode 100644 index 3731f4bea5..0000000000 --- a/docs/nifgen/examples.rst +++ /dev/null @@ -1,41 +0,0 @@ -Examples -======== - -`You can download all nifgen examples for latest version here `_ - -nifgen_arb_waveform.py ----------------------- - -.. literalinclude:: ../../src/nifgen/examples/nifgen_arb_waveform.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nifgen_arb_waveform.py) `_ - -nifgen_script.py ----------------- - -.. literalinclude:: ../../src/nifgen/examples/nifgen_script.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nifgen_script.py) `_ - -nifgen_standard_function.py ---------------------------- - -.. literalinclude:: ../../src/nifgen/examples/nifgen_standard_function.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nifgen_standard_function.py) `_ - -nifgen_trigger.py ------------------ - -.. literalinclude:: ../../src/nifgen/examples/nifgen_trigger.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nifgen_trigger.py) `_ - diff --git a/docs/nifgen/grpc_session_options.rst b/docs/nifgen/grpc_session_options.rst deleted file mode 100644 index 976e7dd485..0000000000 --- a/docs/nifgen/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-FGEN over gRPC - -.. py:currentmodule:: nifgen - - - -Creating a gRPC channel ------------------------ - -Using NI-FGEN over gRPC requires the ``grpc`` extra:: - - $ python -m pip install nifgen[grpc] - -Every NI-FGEN gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`nifgen.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-FGEN runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import nifgen - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = nifgen.GrpcSessionOptions(channel, '') - with nifgen.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`nifgen.SessionInitializationBehavior` diff --git a/docs/nifgen/index.rst b/docs/nifgen/index.rst deleted file mode 100644 index 2e348cf87a..0000000000 --- a/docs/nifgen/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-FGEN Python API Documentation -================================ - -.. include:: about_nifgen.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nifgen - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nifgen/installation.inc b/docs/nifgen/installation.inc deleted file mode 100644 index 6bd29bc04d..0000000000 --- a/docs/nifgen/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nifgen_installation-section: - -Installation ------------- - -As a prerequisite to using the **nifgen** module, you must install the NI-FGEN runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-FGEN**) can be installed with `pip `_:: - - $ python -m pip install nifgen - - diff --git a/docs/nifgen/nifgen.rst b/docs/nifgen/nifgen.rst deleted file mode 100644 index a0df8b7a93..0000000000 --- a/docs/nifgen/nifgen.rst +++ /dev/null @@ -1,9 +0,0 @@ -nifgen module -============= - -.. include:: installation.inc - -.. include:: ../_static/nifgen_usage.inc - -.. include:: toc.inc - diff --git a/docs/nifgen/rep_caps.rst b/docs/nifgen/rep_caps.rst deleted file mode 100644 index 5890a432ea..0000000000 --- a/docs/nifgen/rep_caps.rst +++ /dev/null @@ -1,116 +0,0 @@ -.. py:module:: nifgen - :noindex: - -.. py:currentmodule:: nifgen.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niFgen_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -channels --------- - - .. py:attribute:: nifgen.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -script_triggers ---------------- - - .. py:attribute:: nifgen.Session.script_triggers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.script_triggers['0-2'].channel_enabled = True - - passes a string of :python:`'ScriptTrigger0, ScriptTrigger1, ScriptTrigger2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.script_triggers['ScriptTrigger0-ScriptTrigger2'].channel_enabled = True - - passes a string of :python:`'ScriptTrigger0, ScriptTrigger1, ScriptTrigger2'` to the set attribute function. - - -markers -------- - - .. py:attribute:: nifgen.Session.markers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.markers['0-2'].channel_enabled = True - - passes a string of :python:`'Marker0, Marker1, Marker2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.markers['Marker0-Marker2'].channel_enabled = True - - passes a string of :python:`'Marker0, Marker1, Marker2'` to the set attribute function. - - -data_markers ------------- - - .. py:attribute:: nifgen.Session.data_markers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.data_markers['0-2'].channel_enabled = True - - passes a string of :python:`'DataMarker0, DataMarker1, DataMarker2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.data_markers['DataMarker0-DataMarker2'].channel_enabled = True - - passes a string of :python:`'DataMarker0, DataMarker1, DataMarker2'` to the set attribute function. - - - diff --git a/docs/nifgen/status.inc b/docs/nifgen/status.inc deleted file mode 100644 index a639f1cd32..0000000000 --- a/docs/nifgen/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-FGEN Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-FGEN (nifgen) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nifgenLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nifgenPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nifgenDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nifgenOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nifgenOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nifgenLatestVersion| image:: http://img.shields.io/pypi/v/nifgen.svg - :alt: Latest NI-FGEN Version - :target: http://pypi.python.org/pypi/nifgen - - -.. |nifgenPythonVersion| image:: http://img.shields.io/pypi/pyversions/nifgen.svg - :alt: NI-FGEN supported Python versions - :target: http://pypi.python.org/pypi/nifgen - - -.. |nifgenDocs| image:: https://readthedocs.org/projects/nifgen/badge/?version=latest - :alt: NI-FGEN Python API Documentation Status - :target: https://nifgen.readthedocs.io/en/latest - - -.. |nifgenOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nifgen.svg - :alt: Open Issues + Pull Requests for NI-FGEN - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anifgen - - -.. |nifgenOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nifgen.svg - :alt: Pull Requests for NI-FGEN - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anifgen - - diff --git a/docs/nifgen/toc.inc b/docs/nifgen/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/nifgen/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/nimodinst/.readthedocs.yaml b/docs/nimodinst/.readthedocs.yaml deleted file mode 100644 index 8b753c8417..0000000000 --- a/docs/nimodinst/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nimodinst/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nimodinst/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nimodinst/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nimodinst/about_nimodinst.inc b/docs/nimodinst/about_nimodinst.inc deleted file mode 100644 index dae2e74696..0000000000 --- a/docs/nimodinst/about_nimodinst.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nimodinst** module provides a Python API for NI-ModInst. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nimodinst** supports all the Operating Systems supported by NI-ModInst. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nimodinst**. - diff --git a/docs/nimodinst/class.rst b/docs/nimodinst/class.rst deleted file mode 100644 index 3a9dac527a..0000000000 --- a/docs/nimodinst/class.rst +++ /dev/null @@ -1,267 +0,0 @@ -.. py:module:: nimodinst - -Session -======= - -.. py:class:: Session(self, driver) - - - - Creates a handle to a list of installed devices supported by the - specified driver. Call this method and pass in the name of an NI - instrument driver, such as "NI-SCOPE". This method - searches the system and constructs a list of all the installed devices - that are supported by that driver, and then returns both a handle to - this list and the number of devices found. The handle is used with other - methods to query for properties such as device name and model, and to - safely discard the list when finished. Note This handle reflects the - system state when the handle is created (that is, when you call this - method. If you remove devices from the system or rename them in - Measurement & Automation Explorer (MAX), this handle may not refer to an - accurate list of devices. You should destroy the handle using - :py:meth:`nimodinst.Session._close_installed_devices_session` and create a new handle using - this method. - - - - - - :param driver: - - - A string specifying the driver whose supported devices you want to find. - This string is not case-sensitive. Some examples are: NI-SCOPE niScope - NI-FGEN niFgen NI-HSDIO niHSDIO NI-DMM niDMM NI-SWITCH niSwitch Note If - you use the empty string for this parameter, NI-ModInst creates a list - of all Modular Instruments devices installed in the system. - - - - - :type driver: str - - -Methods -======= - -close ------ - - .. py:currentmodule:: nimodinst.Session - - .. py:method:: close() - - Cleans up the NI-ModInst session created by a call to - :py:meth:`nimodinst.Session._open_installed_devices_session`. Call this method when you are - finished using the session handle and do not use this handle again. - - - - .. note:: This method is not needed when using the session context manager - - - - -Properties -========== - -bus_number ----------- - - .. py:attribute:: bus_number - - The bus on which the device has been enumerated. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_BUS_NUMBER** - -chassis_number --------------- - - .. py:attribute:: chassis_number - - The number of the chassis in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_CHASSIS_NUMBER** - -device_model ------------- - - .. py:attribute:: device_model - - The model of the device (for example, NI PXI-5122) - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_DEVICE_MODEL** - -device_name ------------ - - .. py:attribute:: device_name - - The name of the device, which can be used to open an instrument driver session for that device - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_DEVICE_NAME** - -max_pciexpress_link_width -------------------------- - - .. py:attribute:: max_pciexpress_link_width - - **MAX_PCIEXPRESS_LINK_WIDTH** - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_MAX_PCIEXPRESS_LINK_WIDTH** - -pciexpress_link_width ---------------------- - - .. py:attribute:: pciexpress_link_width - - **PCIEXPRESS_LINK_WIDTH** - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_PCIEXPRESS_LINK_WIDTH** - -serial_number -------------- - - .. py:attribute:: serial_number - - The serial number of the device - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | str | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_SERIAL_NUMBER** - -slot_number ------------ - - .. py:attribute:: slot_number - - The slot (for example, in a PXI chassis) in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_SLOT_NUMBER** - -socket_number -------------- - - .. py:attribute:: socket_number - - The socket number on which the device has been enumerated - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | int | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIMODINST_ATTR_SOCKET_NUMBER** - - -.. contents:: Session diff --git a/docs/nimodinst/conf.py b/docs/nimodinst/conf.py deleted file mode 100644 index 8fed7fdc77..0000000000 --- a/docs/nimodinst/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-ModInst Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-ModInst Python API' -copyright = '2017-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIModInstPythonAPI.tex', 'NI-ModInst Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nimodinstpythonapi', 'NI-ModInst Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIModInstPythonAPI', 'NI-ModInst Python API Documentation', - author, 'NIModInstPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nimodinst/errors.rst b/docs/nimodinst/errors.rst deleted file mode 100644 index 9cbc86b33b..0000000000 --- a/docs/nimodinst/errors.rst +++ /dev/null @@ -1,70 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nimodinst.errors - - .. exception:: Error - - Base exception type that all NI-ModInst exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nimodinst.errors - - .. exception:: DriverError - - An error originating from the NI-ModInst driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nimodinst.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nimodinst.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nimodinst.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-ModInst driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nimodinst.errors - - .. exception:: DriverTooNewError - - An error due to the NI-ModInst driver runtime being too new for this module. - -DriverWarning -------------- - - .. py:currentmodule:: nimodinst.errors - - .. exception:: DriverWarning - - A warning originating from the NI-ModInst driver - - - diff --git a/docs/nimodinst/examples.rst b/docs/nimodinst/examples.rst deleted file mode 100644 index 4bbca650e7..0000000000 --- a/docs/nimodinst/examples.rst +++ /dev/null @@ -1,14 +0,0 @@ -Examples -======== - -`You can download all nimodinst examples for latest version here `_ - -nimodinst_all_devices.py ------------------------- - -.. literalinclude:: ../../src/nimodinst/examples/nimodinst_all_devices.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nimodinst_all_devices.py) `_ - diff --git a/docs/nimodinst/index.rst b/docs/nimodinst/index.rst deleted file mode 100644 index d797664e42..0000000000 --- a/docs/nimodinst/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-ModInst Python API Documentation -=================================== - -.. include:: about_nimodinst.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nimodinst - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nimodinst/installation.inc b/docs/nimodinst/installation.inc deleted file mode 100644 index 900aa8f7d1..0000000000 --- a/docs/nimodinst/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nimodinst_installation-section: - -Installation ------------- - -As a prerequisite to using the **nimodinst** module, you must install the NI-ModInst runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-ModInst**) can be installed with `pip `_:: - - $ python -m pip install nimodinst - - diff --git a/docs/nimodinst/nimodinst.rst b/docs/nimodinst/nimodinst.rst deleted file mode 100644 index c2811b4f38..0000000000 --- a/docs/nimodinst/nimodinst.rst +++ /dev/null @@ -1,9 +0,0 @@ -nimodinst module -================ - -.. include:: installation.inc - -.. include:: ../_static/nimodinst_usage.inc - -.. include:: toc.inc - diff --git a/docs/nimodinst/status.inc b/docs/nimodinst/status.inc deleted file mode 100644 index 348cdb0ab1..0000000000 --- a/docs/nimodinst/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-ModInst Python API Status ----------------------------- - -+-------------------------------+--------------------------+ -| NI-ModInst (nimodinst) | | -+===============================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+--------------------------+ -| PyPI Version | |nimodinstLatestVersion| | -+-------------------------------+--------------------------+ -| Supported Python Version | |nimodinstPythonVersion| | -+-------------------------------+--------------------------+ -| Documentation | |nimodinstDocs| | -+-------------------------------+--------------------------+ -| Open Issues | |nimodinstOpenIssues| | -+-------------------------------+--------------------------+ -| Open Pull Requests | |nimodinstOpenPRs| | -+-------------------------------+--------------------------+ - - -.. |nimodinstLatestVersion| image:: http://img.shields.io/pypi/v/nimodinst.svg - :alt: Latest NI-ModInst Version - :target: http://pypi.python.org/pypi/nimodinst - - -.. |nimodinstPythonVersion| image:: http://img.shields.io/pypi/pyversions/nimodinst.svg - :alt: NI-ModInst supported Python versions - :target: http://pypi.python.org/pypi/nimodinst - - -.. |nimodinstDocs| image:: https://readthedocs.org/projects/nimodinst/badge/?version=latest - :alt: NI-ModInst Python API Documentation Status - :target: https://nimodinst.readthedocs.io/en/latest - - -.. |nimodinstOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nimodinst.svg - :alt: Open Issues + Pull Requests for NI-ModInst - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Animodinst - - -.. |nimodinstOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nimodinst.svg - :alt: Pull Requests for NI-ModInst - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Animodinst - - diff --git a/docs/nimodinst/toc.inc b/docs/nimodinst/toc.inc deleted file mode 100644 index f4c0c73875..0000000000 --- a/docs/nimodinst/toc.inc +++ /dev/null @@ -1,9 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - errors - examples - diff --git a/docs/nirfsa/.readthedocs.yaml b/docs/nirfsa/.readthedocs.yaml deleted file mode 100644 index 7e6f4f5051..0000000000 --- a/docs/nirfsa/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nirfsa/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nirfsa/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nirfsa/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nirfsa/about_nirfsa.inc b/docs/nirfsa/about_nirfsa.inc deleted file mode 100644 index 0ae36fb265..0000000000 --- a/docs/nirfsa/about_nirfsa.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nirfsa** module provides a Python API for NI-RFSA. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nirfsa** supports all the Operating Systems supported by NI-RFSA. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nirfsa**. - diff --git a/docs/nirfsa/class.rst b/docs/nirfsa/class.rst deleted file mode 100644 index f2b59ed344..0000000000 --- a/docs/nirfsa/class.rst +++ /dev/null @@ -1,10726 +0,0 @@ -.. py:module:: nirfsa - -Session -======= - -.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) - - - - Creates a new session for the device. - - This method sets the initial value of certain properties and sends initialization commands to reset all hardware modules to a known state necessary for NI-RFSA operation. - - To create a new session, pass the downconverter resource name for the RF vector signal analyzer to the **resource name** parameter. - - You can access the device session this VI creates using the NI-RFSA Soft Front Panel (SFP). Accessing the device session with the SFP can help you debug your code. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about accessing your session with the SFP. - - ---- - **Note** - Before initializing your device, you must first associate the modules that comprise your device in MAX. After associating the modules, pass the resource name of the device to this method to initialize all the modules. Refer to `Associating NI-RFSA Modules `_ for information about MAX association. - - ---- - - ---- - **Note** - For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending *ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Driver Setup Options `_ - - - - - - :param resource_name: - - - Specifies the resource name of the device to initialize. - - For NI-RFSA devices, the syntax is the device name specified in MAX. The typical default name for your device in MAX is PXI1Slot2. You can rename your device by right-clicking the name in MAX, selecting **Rename** from the drop-down menu, and entering a new name. You can also pass in the name of an IVI logical name configured with the IVI Configuration utility. For additional information, refer to the **Installed Devices IVI** topic of the *Measurement & Automation Explorer Help*. - - Device names are not case-sensitive. However, IVI logical names are case-sensitive. If you use an IVI logical name, verify the name is identical to the name shown in the IVI Configuration Utility. - - - - - :type resource_name: str - - :param id_query: - - - Specifies whether you want NI-RFSA to perform an ID query. - - **Defined Values** : - - +--------------------------+ - | Description | - +==========================+ - | Perform ID query. | - +--------------------------+ - | Do not perform ID query. | - +--------------------------+ - - - :type id_query: bool - - :param reset_device: - - - Specifies whether the NI-RFSA device is reset during the initialization procedure. - - **Defined Values** : - - +----------------------+ - | Description | - +======================+ - | Reset the device. | - +----------------------+ - | Do not reset device. | - +----------------------+ - - - :type reset_device: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: nirfsa.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: abort() - - Stops an acquisition previously started with the :py:meth:`nirfsa.Session._initiate` method or the :py:meth:`nirfsa.Session.read_power_spectrum` method. - - You can also use the :py:meth:`nirfsa.Session.abort` method to stop a self-calibration. Calling this method is optional, unless you want to stop an acquisition before it is complete or you are continuously acquiring data. - - You can stop the following kinds of acquisitions: - - - Triggered spectrum acquisitions that have not yet been triggered - - Multispan acquisitions in progress - - Average spectrum acquisitions in progress - - Single-record spectrum acquisitions in progress - - Streaming in progress - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - -change_external_calibration_password ------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: change_external_calibration_password(old_password, new_password) - - Changes the password that is required to initialize an external calibration session. - - **Supported Devices**: PXIe-5601/5603/5605/5606, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param old_password: - - - Specifies the old (current) external calibration password. - - The maximum length of the password varies by device. - - - - - :type old_password: str - :param new_password: - - - Specifies the new (desired) external calibration password. - - The maximum length of the password varies by device. - - - - - :type new_password: str - -check_acquisition_status ------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: check_acquisition_status() - - Checks the status of the acquisition. - - Use this method to check for any errors that may occur during signal acquisition or to check whether the device has completed the acquisition operation. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI RF Vector Signal Analyzer State Diagram `_ - - - - - - :rtype: bool - :return: - - - Returns signal acquisition status. - - |Value |Description | - |:---------|:------------------------------------| - | True | Signal acquisition is complete. | - | False | Signal acquisition is not complete. | - - - - - -clear_self_calibrate_range --------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: clear_self_calibrate_range() - - Clears the data obtained from the :py:meth:`nirfsa.Session.self_calibrate_range` method. - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - -close ------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: close() - - Closes the session to the device. - - If you close a session that has Soft Front Panel (SFP) session access enabled, any application connected to the shared device session is no longer usable. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about using SFP session access. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: commit() - - Commits settings to hardware. - - Calling this method is optional. Settings are automatically committed to hardware when you call the :py:meth:`nirfsa.Session._initiate` method, the read IQ single record complex F64 method, or the :py:meth:`nirfsa.Session.read_power_spectrum` method. - - ---- - **Note** - This method does not wait for settling time, unlike the :py:meth:`nirfsa.Session._initiate` method. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI RF Vector Signal Analyzer State Diagram `_ - - - - - -configure_deembedding_table_interpolation_linear ------------------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_deembedding_table_interpolation_linear(port, table_name, format) - - Selects the linear interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - :param format: - - - Specifies the format of parameters to interpolate. **Defined Values** : - - +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=====================================================================+=========================================================================================================================================+ - | :py:data:`~nirfsa.LinearInterpolationFormat.REAL_AND_IMAGINARY` | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | - +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.LinearInterpolationFormat.MAGNITUDE_AND_PHASE` | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | - +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.LinearInterpolationFormat.MAGNITUDE_DB_AND_PHASE` | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | - +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - - :type format: :py:data:`nirfsa.LinearInterpolationFormat` - -configure_deembedding_table_interpolation_nearest -------------------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_deembedding_table_interpolation_nearest(port, table_name) - - Selects the nearest interpolation method. - - NI-RFSA uses the parameters of the table nearest to the carrier frequency for de-embedding. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - -configure_deembedding_table_interpolation_spline ------------------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_deembedding_table_interpolation_spline(port, table_name) - - Selects the spline interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - -configure_digital_edge_advance_trigger --------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_digital_edge_advance_trigger(source, edge) - - Configures the device to wait for a digital edge Advance Trigger. - - The Advance Trigger indicates where a new record begins. - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - - :param source: - - - Specifies the source of the digital edge for the Advance Trigger. - - | Value | Description | - |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` ('PFI1') | The trigger is received on PFI 1. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1`('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type source: str - :param edge: - - - Specifies the trigger edge to detect. The default value is :py:data:`~nirfsa.AdvanceTriggerDigitalEdgeEdge.RISING`. - - | Value | Description | - |:------------------------------|:--------------------------------| - | :py:data:`~nirfsa.AdvanceTriggerDigitalEdgeEdge.RISING` (900) | NI-RFSA detects a rising edge. | - | :py:data:`~nirfsa.AdvanceTriggerDigitalEdgeEdge.FALLING` (901) | NI-RFSA detects a falling edge. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type edge: :py:data:`nirfsa.AdvanceTriggerDigitalEdgeEdge` - -configure_digital_edge_ref_trigger ----------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_digital_edge_ref_trigger(source, edge, pretrigger_samples=0) - - Configures the device to wait for a digital edge Reference Trigger to mark a reference point within the record. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - - :param source: - - - Specifies the source of the digital edge for the Reference trigger. - - |Value |Description | - |:-------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` ('PFI1') | The trigger is received on PFI 1. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1`('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type source: str - :param edge: - - - Specifies the trigger edge to detect. The default value is :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING`. - - |Value |Description | - |:------------------------------|:--------------------------------| - | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING` (900) | NI-RFSA detects a rising edge. | - | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.FALLING` (901) | NI-RFSA detects a falling edge. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type edge: :py:data:`nirfsa.ReferenceTriggerDigitalEdgeEdge` - :param pretrigger_samples: - - - Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. - - - - - :type pretrigger_samples: int - -configure_digital_edge_start_trigger ------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_digital_edge_start_trigger(source, edge) - - Configures the device to wait for a digital edge Start Trigger at the beginning of the acquisition. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - - :param source: - - - Specifies the source of the digital edge for the Start Trigger. - - | Value | Description | - |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` ('PFI1') | The trigger is received on PFI 1. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` ('PFI1') | The trigger is received on PFI 0 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1`('PFI2') | The trigger is received on PFI 1 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` ('PFI3') | The trigger is received on PFI 2 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` ('PFI4') | The trigger is received on PFI 3 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` ('PFI5') | The trigger is received on PFI 4 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` ('PFI6') | The trigger is received on PFI 5 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` ('PFI7') | The trigger is received on PFI 6 of the DIO Terminal. | - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` ('PFI8') | The trigger is received on PFI 7 of the DIO Terminal. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type source: str - :param edge: - - - Specifies the trigger edge to detect. The default value is :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING`. - - | Value | Description | - |:------------------------------|:--------------------------------| - | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING` (900) | NI-RFSA detects a rising edge. | - | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.FALLING` (901) | NI-RFSA detects a falling edge. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type edge: :py:data:`nirfsa.StartTriggerDigitalEdgeEdge` - -configure_iq_power_edge_ref_trigger ------------------------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_iq_power_edge_ref_trigger(source, level, slope, pretrigger_samples=0) - - Configures the device to wait for the complex power of the I/Q data to cross the specified threshold to mark a reference point within the record. - - To trigger on burst signals, add a minimum quiet time, configured with the :py:attr:`nirfsa.Session.ref_trigger_minimum_quiet_time` property, to ensure the trigger does not occur in the middle of a burst if the acquisition starts while a burst is being generated. The quiet time should be set to a value smaller than the time between bursts, but large enough to ignore power changes within a burst. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - - :param source: - - - Specifies the source of the RF signal for the power edge Reference trigger. The only supported value is "0". - - - - - :type source: str - :param level: - - - Specifies the threshold, in dBm, above or below which the device triggers. - - - - - :type level: float - :param slope: - - - Specifies whether the device detects a positive or negative slope on the trigger signal. The default value is :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING`. - - | Value | Description | - |:--------------------------------|:-------------------------------------------------| - | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` (1000) | NI-RFSA detects a rising edge (positive slope). | - | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.FALLING` (1001) | NI-RFSA detects a falling edge (negative slope). | - - - - - :type slope: :py:data:`nirfsa.ReferenceTriggerIqPowerEdgeSlope` - :param pretrigger_samples: - - - Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. - - - - - :type pretrigger_samples: int - -configure_ref_clock -------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_ref_clock(clock_source, ref_clock_rate) - - Configures the NI-RFSA device Reference Clock. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXI-5661 Reference Clock `_ - - `PXIe-5663 Timing Configurations `_ - - `PXIe-5665 Timing Configurations `_ - - `PXIe-5667 Timing Configurations `_ - - `PXIe-5668 Timing Configurations `_ - - `PXIe-5830 Timing Configurations `_ - - `PXIe-5831 Timing Configurations `_ - - - - - - :param clock_source: - - - specifies the source of the Reference Clock signal. - | Clock Source | Description | - |-----------------------|-------------| - | **Onboard Clock (default)** | Uses the onboard Reference Clock as the clock source.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to PXIe-5655 onboard clock. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to PXIe-5655 onboard clock. Use cables as shown in the Getting Started Guide. | - | **RefIn** | Uses the signal at the front panel REF IN connector.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT; lock external signal to PXIe-3621 REF IN.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT; lock external signal to PXIe-3622 REF IN.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT; lock external signal to PXIe-3623 REF IN.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to signal at REF IN on PXIe-5655. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to signal at REF IN on PXIe-5655. Use cables as shown in the Getting Started Guide. | - | **PXI Clock** | Uses the PXI_CLK signal present on the PXI backplane. | - | **PXI_ClkMaster** | Valid only for PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653.
**PXIe-5831 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3622 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN.
**PXIe-5832 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3623 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN. | - - - - - :type clock_source: :py:data:`nirfsa.ReferenceClockSource` - :param ref_clock_rate: - - - specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. This parameter is only valid when the **ref clock source** parameter is set to **RefIn**. The default value is Auto (-1.0), which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. Refer to the Reference Clock Rate property for possible values. - - - - - :type ref_clock_rate: float - -configure_software_edge_advance_trigger ---------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_software_edge_advance_trigger() - - Configures the device to wait for a software Advance Trigger. - - The Advance Trigger indicates where a new record begins. The device waits until you call the :py:meth:`nirfsa.Session.send_software_edge_trigger` method to assert the trigger. - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - -configure_software_edge_ref_trigger ------------------------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_software_edge_ref_trigger(pretrigger_samples=0) - - Configures the device to wait for a software Reference Trigger to mark a reference point within the record. - - The device waits until you call the :py:meth:`nirfsa.Session.send_software_edge_trigger` method to assert the trigger. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - - :param pretrigger_samples: - - - Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. - - - - - :type pretrigger_samples: int - -configure_software_edge_start_trigger -------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_software_edge_start_trigger() - - Configures the device to wait for a software Start Trigger at the beginning of the acquisition. - - The device waits until you call the :py:meth:`nirfsa.Session.send_software_edge_trigger` method to assert the trigger. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - -configure_spectrum_frequency ----------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: configure_spectrum_frequency(center_frequency=None, span=None, start_frequency=None, stop_frequency=None) - - Configures the frequency range of a spectrum acquisition. - - You can specify the frequency range using either center frequency and span, or start and stop frequencies. - - ---- - **Note** - If you configure the spectrum span to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_spectrum_frequency` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.configure_spectrum_frequency` - - - :param center_frequency: - - - Specifies the center frequency in a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **span**. - - - - - :type center_frequency: float - :param span: - - - Specifies the span of a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **center_frequency**. - - - - - :type span: float - :param start_frequency: - - - Specifies the lower limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **stop_frequency**. - - - - - :type start_frequency: float - :param stop_frequency: - - - Specifies the upper limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **start_frequency**. - - - - - :type stop_frequency: float - -create_deembedding_sparameter_table_array ------------------------------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, sparameter_orientation) - - Creates an s-parameter de-embedding table for the port from the input data. - - If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview`_ - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - - - - :type table_name: str - :param frequencies: - - - Specifies the frequencies for the :py:attr:`nirfsa.Session.SPARAMETER_TABLE` rows. Frequencies must be unique and in ascending order. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - :type frequencies: numpy.array(dtype=numpy.float64) - :param sparameter_table: - - - Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. - - - - - :type sparameter_table: numpy.array(dtype=numpy.complex128) - :param sparameter_orientation: - - - Specifies the orientation of the input data relative to the port on the DUT port. - - **Defined Values** : - - +------------------------------------------------------------+-----------------------------------------------------+ - | Name | Description | - +============================================================+=====================================================+ - | :py:data:`~nirfsa.SparameterOrientation.PORT1_TOWARDS_DUT` | Port 1 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+-----------------------------------------------------+ - | :py:data:`~nirfsa.SparameterOrientation.PORT2_TOWARDS_DUT` | Port 2 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+-----------------------------------------------------+ - - - :type sparameter_orientation: :py:data:`nirfsa.SparameterOrientation` - -create_deembedding_sparameter_table_s2p_file --------------------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) - - Creates an S-parameter de-embedding table for the port based on the specified S2P file. - - If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview `_ - - `S-parameters `_ - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - - - - :type table_name: str - :param s2p_file_path: - - - Specifies the path to the S2P file that contains de-embedding information for the specified port. - - - - - :type s2p_file_path: str - :param sparameter_orientation: - - - Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : - - +------------------------------------------------------------+-----------------------------------------------------+ - | Name | Description | - +============================================================+=====================================================+ - | :py:data:`~nirfsa.SparameterOrientation.PORT1_TOWARDS_DUT` | Port 1 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+-----------------------------------------------------+ - | :py:data:`~nirfsa.SparameterOrientation.PORT2_TOWARDS_DUT` | Port 2 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+-----------------------------------------------------+ - - - :type sparameter_orientation: :py:data:`nirfsa.SparameterOrientation` - -delete_all_deembedding_tables ------------------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: delete_all_deembedding_tables() - - Deletes all configured de-embedding tables for the session. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - -delete_deembedding_table ------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: delete_deembedding_table(port, table_name) - - Deletes the selected de-embedding table for a given port. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - -disable_advance_trigger ------------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: disable_advance_trigger() - - Configures the device to not use an Advance Trigger. - - This method is necessary only if you configured an Advance Trigger in the past and now want to disable it. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - -disable_ref_trigger -------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: disable_ref_trigger() - - Configures the device to not wait for a Reference Trigger to mark a reference point within a record. - - This method is necessary only if you previously configured a Reference trigger in the past and now want to disable it. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - -disable_start_trigger ---------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: disable_start_trigger() - - Configures the device to not wait for a Start Trigger at the beginning of the acquisition. - - This method is necessary only if you previously configured a Start Trigger in the past and now want to disable it. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - -enable_session_access ---------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: enable_session_access(enable) - - Enables or disables SFP session access for the specified instrument. - - SFP session access allows the NI-RFSA Soft Front Panel (SFP) to access a device with an existing open session and can help you debug your code. To enable session access, pass True to the **enabled** parameter. To disable session access, pass False to the **enabled** parameter. - - Refer to `Configuring SFP Session Access using LabWindows/CVI or C `_ for more information about SFP session access. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 - - ---- - **Note** - NI-RFSA does not support NI-TClk when driver session debugging is enabled. - - ---- - - - - - - :param enable: - - - Enables or disables SFP session access for the specified device. - - | Value | Description | - |:---------|:-------------------------| - | True | Enables session access. | - | False | Disables session access. | - - - - - :type enable: bool - -error_message -------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: error_message(error_code) - - Converts an error code returned by an NI-RFSA method into a user-readable string. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5840 - - - - - - :param error_code: - - - Passes the **errorCode** parameter that is returned from any NI-RFSA method. - - - - - :type error_code: int - - :rtype: str - :return: - - - Returns the user-readable message string that corresponds to the error code you specify. - - You must pass a ViChar array with 1024 bytes or more to this parameter. Only the first 1024 bytes of the array are used. - - - - - -fetch_iq_multi_record_into --------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: fetch_iq_multi_record_into(iq_data_arrays, starting_record=0, number_of_records=None, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)) - - Fetches I/Q data from multiple records in an acquisition. - - A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_iq_multi_record` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.fetch_iq_multi_record` - - - :param iq_data_arrays: - - - Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q data. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - - - - :type iq_data_arrays: 2D numpy.array of numpy.complex64, 2D numpy.array of numpy.complex128 or interleaved complex data in the form of 2D numpy.array of numpy.int16 - :param starting_record: - - - Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. - - - - - :type starting_record: int - :param number_of_records: - - - Specifies the number of records to fetch. - - - - - :type number_of_records: int - :param number_of_samples: - - - Specifies the number of samples per record. - - - - - :type number_of_samples: int - :param timeout: - - - **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - -fetch_iq_single_record_into ---------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: fetch_iq_single_record_into(iq_data_array, record_number=0, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)) - - Fetches I/Q data from a single record in an acquisition. - - The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_iq_single_record` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.fetch_iq_single_record` - - - :param iq_data_array: - - - Specifies the pre-allocated numpy array to be filled with the acquired I/Q data. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - - - - :type iq_data_array: numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16 - :param record_number: - - - Specifies the record to retrieve. Record numbers are zero-based. - - - - - :type record_number: int - :param number_of_samples: - - - Specifies the number of samples to fetch. The value must specify the array size of the :py:attr:`nirfsa.Session.DATA` parameter. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - :type number_of_samples: int - :param timeout: - - - **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - -get_deembedding_sparameters ---------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_deembedding_sparameters() - - Returns the S-parameters used for de-embedding a measurement on the selected port. - - This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. - - If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: The port orientation for the returned S-parameters is normalized to :py:data:`~nirfsa.SparameterOrientation.PORT1_TOWARDS_DUT`. - - - - :rtype: numpy.array(dtype=numpy.complex128) - :return: - - - Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. - - - - - -get_ext_cal_last_date_and_time ------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_ext_cal_last_date_and_time() - - Returns the date and time of the last successful external calibration. - - The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :rtype: hightime.datetime - :return: - - - - - - -get_ext_cal_recommended_interval --------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_ext_cal_recommended_interval() - - Returns the recommended interval between external calibrations, in months. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :rtype: hightime.timedelta, datetime.timedelta, or int in months - :return: - - - Returns the recommended maximum interval between external calibrations, in months. - - - - - -get_fetch_backlog ------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_fetch_backlog(record_number) - - Returns the number of points acquired that have not yet been fetched. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_fetch_backlog` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.get_fetch_backlog` - - - :param record_number: - - - Specifies the record from which to read the backlog. Record numbers are zero-based. - - - - - :type record_number: int - - :rtype: int - :return: - - - Returns the number of samples available to read for the requested record. - - - - - -get_frequency_response ----------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_frequency_response() - - Returns the requested device response type, based on current NI-RFSA settings. The PXI-5661 and PXIe-5663/5663E/5665/5667/5668 automatically corrects the IF and RF response when you set the Digital IF Equalization Enabled property to TRUE. If you are using external digitizer mode, you can use information returned from this VI to correct your measurement. - - Refer to the *Factory Calibration* topic for your device for more information about frequency-response calibration. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_frequency_response` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.get_frequency_response` - - - :rtype: tuple (frequencies, magnitude_response, phase_response) - - WHERE - - frequencies (list of float): - - - Returns an array containing the frequencies, in hertz (Hz), that correspond to the response data. - - Pass VI_NULL if you do not want to use this parameter. - - - - - magnitude_response (list of float): - - - Returns an array containing the magnitude of the requested response, in decibels (dB). The magnitude response is normalized to the center frequency at each frequency in the :py:attr:`nirfsa.Session.FREQUENCIES` array. - - Pass VI_NULL if you do not want to use this parameter. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - phase_response (list of float): - - - Returns an array containing the phase of the requested response, in radians. The phase response is normalized to the center frequency at each frequency entry in the :py:attr:`nirfsa.Session.FREQUENCIES` array. - - Pass VI_NULL if you do not want to use this parameter. This array may contain zeros if the device does not contain a stored phase response in its calibration data. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - -get_scaling_coefficients ------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_scaling_coefficients() - - Returns coefficients you can use to convert unscaled data to scaled I/Q data. - - Acquired data may be unscaled when sent by a peer-to-peer stream or fetched as unscaled data. Use this method to obtain :py:meth:`nirfsa.Session.get_scaling_coefficients` structures in the **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** array that provide gain and offset values you can use to scale this data into the actual I/Q values. The **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** array returns one element for each channel specified in the **:py:attr:`nirfsa.Session.CHANNEL_LIST`** parameter. The element order matches the order specified by the **:py:attr:`nirfsa.Session.CHANNEL_LIST`** parameter. To get the actual I/Q values, scale the unscaled data from an acquisition by multiplying it by the gain value of the appropriate **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** element then adding the offset from the same element. - - ---- - **Note** - The coefficients are calculated by NI-RFSA for the current configuration of the device, so they are only valid for acquisitions obtained with the same device configuration. - - ---- - - To get the required size of the array, call this method with **:py:attr:`nirfsa.Session.ARRAY_SIZE`** set to 0 and NULL for the **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** array. This method returns the required size in the **:py:attr:`nirfsa.Session.NUMBER_OF_COEFFICIENT_SETS`** parameter. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_scaling_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.get_scaling_coefficients` - - - :rtype: list of CoefficientInfo - :return: - - - Specifies the array for storing the coefficient info. - - - **offset** is the number that should be added to the data from a peer-to-peer stream after the gain has been applied if you want to scale unscaled data. - - **gain** returns the multiplier that you should use to scale data obtained from a peer-to-peer stream. - - - - - -get_self_cal_last_date_and_time -------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_self_cal_last_date_and_time(self_calibration_step) - - Returns the date and time of the last successful self-calibration. - - The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param self_calibration_step: - - - Specifies the self-calibration step to query for the last successful self-calibration date and time data. - - - - - :type self_calibration_step: :py:data:`nirfsa.SelfCalibrationStep` - - :rtype: hightime.datetime - :return: - - - - - - -get_self_calibration_temperature --------------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_self_calibration_temperature(self_calibration_step) - - Returns the temperature, in degrees Celsius, at the last successful self-calibration. - - ---- - **Note** - For the PXIe-5644/5645/5646, you must select :py:data:`~nirfsa.NIRFSA_VAL_SELF_CAL_IMAGE_SUPPRESSION` for the **selfCalibrationStep** parameter. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - - :param self_calibration_step: - - - Specifies the self-calibration step to query for the last successful self-calibration date and time data. - - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | Name | Description | - +===========================================+=================================================================================================+ - | SelfCalibrationStep.PRESELECTOR_ALIGNMENT | Calls for preselector alignment. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.GAIN_REFERENCE | Measures the changes in gain since the last external calibration was run. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.IF_FLATNESS | Measures the IF response of the entire system for each of the supported IF filters | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.DIGITIZER_SELF_CAL | Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.LO_SELF_CAL | Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.AMPLITUDE_ACCURACY | Selects the Amplitude Accuracy self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.RESIDUAL_LO_POWER | Selects the Residual LO Power self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.IMAGE_SUPPRESSION | Selects the Image Suppression self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.SYNTHESIZER_ALIGNMENT | Selects the Synthesizer Alignment self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.DC_OFFSET | Selects the DC Offset self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - - - :type self_calibration_step: :py:data:`nirfsa.SelfCalibrationStep` - - :rtype: float - :return: - - - Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. - - - - - -get_terminal_name ------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: get_terminal_name(signal, signal_identifier="") - - Returns the fully qualified name of the signal being queried. - - Signals can be triggers, clocks, or events. - - You can pass the **:py:attr:`nirfsa.Session.TERMINAL_NAME`** parameter that is returned to the **source** parameter of a configure trigger method. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param signal: - - - Specifies the signal for which you want to query the terminal. - - +------------------------------+----------------------------------------------+ - | Name | Description | - +==============================+==============================================+ - | Signal.START_TRIGGER | NI-RFSA routes a Start Trigger. | - +------------------------------+----------------------------------------------+ - | Signal.REF_TRIGGER | NI-RFSA routes a Reference | - +------------------------------+----------------------------------------------+ - | Signal.ADVANCE_TRIGGER | NI-RFSA routes an Advance | - +------------------------------+----------------------------------------------+ - | Signal.READY_FOR_START_EVENT | NI-RFSA routes a Ready for Start Event. | - +------------------------------+----------------------------------------------+ - | Signal.READY_FOR_REF_EVENT | NI-RFSA routes a Ready for Reference Event.. | - +------------------------------+----------------------------------------------+ - | Signal.END_OF_RECORD_EVENT | NI-RFSA routes a End of Record Event. | - +------------------------------+----------------------------------------------+ - | Signal.DONE_EVENT | NI-RFSA routes a Done Event. | - +------------------------------+----------------------------------------------+ - | Signal.REF_CLOCK | NI-RFSA routes a Reference Clock. | - +------------------------------+----------------------------------------------+ - | Signal.USER | NI-RFSA routes a User Defined Signal. | - +------------------------------+----------------------------------------------+ - - - :type signal: :py:data:`nirfsa.Signal` - :param signal_identifier: - - - Specifies a particular instance of a trigger. NI-RFSA does not support this parameter. - - - - - :type signal_identifier: str - - :rtype: str - :return: - - - Returns the fully qualified name of the signal being queried. - - - - - -initiate --------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: initiate() - - Commits settings to hardware, waits for hardware settling, and starts an acquisition. - - You can use this method in conjunction with one of the niRFSA fetch I/Q methods to retrieve acquired I/Q data, or you can use the read IQ single record complex F64 method to both initiate the acquisition and retrieve I/Q data at one time. - - ---- - **Note** - If you are using external digitizer mode, this method commits settings and waits for settling, but it does not start an acquisition. Notice that using the :py:meth:`nirfsa.Session.commit` method on its own commits settings to hardware, but the device does not wait for hardware settling. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - `RF List Mode `_ - - `NI RF Vector Signal Analyzer State Diagram `_ - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -is_self_cal_valid ------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: is_self_cal_valid() - - Indicates which calibration steps contain valid calibration data. - - To omit steps with valid calibration data from self-calibration, you can pass the **:py:attr:`nirfsa.Session.VALID_STEPS`** parameter to the **stepsToOmit** parameter of the :py:meth:`nirfsa.Session.SelfCalibrate` method. - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :rtype: tuple (self_cal_valid, valid_steps) - - WHERE - - self_cal_valid (bool): - - - Returns True if all the calibration data is valid and False if any of the calibration data is invalid. - - - - - valid_steps (:py:data:`nirfsa.SelfCalSteps`): - - - Returns valid steps. - - ---- - If two or more calibration steps are valid, this parameter returns a bitwise-OR combination of the calibration steps. For example, if both :py:data:`~nirfsa.SelfCalSteps.IF_FLATNESS` and :py:data:`~nirfsa.SelfCalSteps.LO_SELF_CAL` steps are valid, NI-RFSA returns the following string: - - :py:data:`~nirfsa.SelfCalSteps.IF_FLATNESS` | - - :py:data:`~nirfsa.SelfCalSteps.LO_SELF_CAL` - - ---- - - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=====================================================================================================================+ - | SelfCalSteps.DIGITIZER_SELF_CAL | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.PRESELECTOR_ALIGNMENT | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.OMIT_NONE | No calibration steps are omitted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.GAIN_REFERENCE | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.IF_FLATNESS | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.LO_SELF_CAL | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.AMPLITUDE_ACCURACY | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.RESIDUAL_LO_POWER | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.IMAGE_SUPPRESSION | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.SYNTHESIZER_ALIGNMENT | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.DC_OFFSET | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - -load_configurations_from_file ------------------------------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: load_configurations_from_file(file_path) - - Loads the configurations from the specified file to the NI-RFSA driver session. - - The VI does an implicit reset before loading the configurations from the file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.load_configurations_from_file` - - - :param file_path: - - - Specifies the absolute path of the file from which the NI-RFSA loads the configurations. - - - - - :type file_path: str - -lock ----- - - .. py:currentmodule:: nirfsa.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`nirfsa.Session.lock` method. - - A call to NI-RFSA locked the session. - - After a call to the :py:meth:`nirfsa.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`nirfsa.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`nirfsa.Session.lock` method and the - :py:meth:`nirfsa.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`nirfsa.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`nirfsa.Session.lock` method with a call to - the :py:meth:`nirfsa.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with nirfsa.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`nirfsa.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -perform_thermal_correction --------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: perform_thermal_correction() - - Corrects for temperature variations while acquiring the same signal for an extended period of time in a continuous acquisition. - - NI-RFSA internally acquires the temperature every time you initiate an acquisition. If you are performing a continuous acquisition, National Instruments recommends calling this method once every 10 minutes in a stable temperature environment to periodically update temperature calibration. If the ambient temperature varies, call this method more frequently. - - ---- - **Note** - You cannot call this method if your device is operating in `RF list mode `_. - - ---- - - Refer to the *Thermal Management* section for your device for more information about typical operating temperatures. - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842 - - - - - -read_iq_single_record_into --------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: read_iq_single_record_into(iq_data_array, data_array_size, timeout=hightime.timedelta(seconds=10.0)) - - Initiates an acquisition and fetches a single I/Q data record. - - Do not use this method if you have configured the device to continuously acquire data samples or to acquire multiple records. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_iq_single_record` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.read_iq_single_record` - - - :param iq_data_array: - - - Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as the number of samples configured in the :py:meth:`nirfsa.Session.ConfigureNumberOfSamples` method. - - - - - :type iq_data_array: numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16 - :param timeout: - - - Specifies in seconds the time allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: WaveformInfo - :return: - - - Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - - - - -read_power_spectrum_into ------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: read_power_spectrum_into(power_spectrum_data_array, data_array_size=None, timeout=hightime.timedelta(seconds=10.0)) - - Initiates a spectrum acquisition and returns power spectrum data. - - ---- - **Note** - Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_power_spectrum` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.read_power_spectrum` - - - :param power_spectrum_data_array: - - - Specifies a pre-allocated numpy array to be filled with power spectrum data. The dtype of this array determines the data format: numpy.float64 or numpy.float32. Allocate an array at least as large as the number of spectral lines returned by the get_number_of_spectral_lines method. - - - - - :type power_spectrum_data_array: numpy.array of numpy.float64 or numpy.array of numpy.float32 - :param data_array_size: - - - Specifies the expected number of spectral lines. If None, falls back to self.number_of_spectral_lines. - - - - - :type data_array_size: int - :param timeout: - - - Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - -reset ------ - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: reset() - - Resets all properties to default values, deletes all de-embedding tables, and stops the export of all external signals and events. - - For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Trigger Controller Slot, also known as the System Timing Slot. - - This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. To avoid resetting routes on the device that are in use by NI-RFSG sessions, NI recommends using the :py:meth:`nirfsa.Session.reset_with_options` method, with **stepsToOmit** set to :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES`. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - -reset_device ------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: reset_device() - - Performs a hard reset on the device. - - A hard reset consists of the following actions: - - - Signal acquisition is stopped. - - All routes are released. - - External bidirectional terminals are tristated. - - FPGAs are reset. - - Hardware is configured to its default state. - - All session properties are reset to their default states. - - During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. For example, a trigger signal exported to a PXI trigger line that is used by another device is no longer exported. - - On the PXI-5600, if you are driving the PXI_CLK10 line, you continue to drive the clock even after a device reset. To stop driving the PXI_CLK10 line, use the :py:meth:`nirfsa.Session.ConfigurePxiChassisClk10` method and set the **pxiClk10Source** parameter to :py:data:`~nirfsa.NIRFSA_VAL_NONE` or set the :py:attr:`nirfsa.Session.PXI_CHASSIS_CLK10_SOURCE` property to :py:data:`~nirfsa.NIRFSA_VAL_NONE`. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - -reset_with_options ------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: reset_with_options(steps_to_omit) - - Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. - - For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Star Trigger Controller Slot, also known as the System Timing Slot. - - By default, this method resets all properties to their default values, deletes all de-embedding tables, aborts generation, clears all routes, and resets session properties to initial values. You can specify steps to omit using the steps to omit parameter. For example, if you specify :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES` for the **:py:attr:`nirfsa.Session.STEPS_TO_OMIT`** parameter, this method does not release signal routes during the reset process. - - When routes of signals between two devices are released, they are released regardless of which device created the route. - - To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSG sessions, NI recommends using this method instead of :py:meth:`nirfsa.Session.Reset`, with **:py:attr:`nirfsa.Session.STEPS_TO_OMIT`** set to :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES`. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - - :param steps_to_omit: - - - Specifies a list of steps to skip during the reset process. The default value is :py:data:`~nirfsa.ResetWithOptionsStepsToOmit.NONE`, which specifies that no step is omitted during reset. - - Note::py:data:`~nirfsa.ResetWithOptionsStepsToOmit.ROUTES` is not supported in external calibration or alignment sessions. - - Note::py:data:`~nirfsa.ResetWithOptionsStepsToOmit.ROUTES` is not supported for the PXI-5600/5661. - - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +================================================+============================================================================================================================================================================================================+ - | ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.NONE | No step is omitted during reset. | - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.ROUTES | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type steps_to_omit: :py:data:`nirfsa.ResetWithOptionsStepsToOmit` - -save_configurations_to_file ---------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: save_configurations_to_file(file_path) - - Saves the configurations of the session to the specified file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.save_configurations_to_file` - - - :param file_path: - - - Specifies the absolute path of the file to which the NI-RFSA saves the configurations. - - - - - :type file_path: str - -self_calibrate_range --------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: self_calibrate_range(steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level) - - Self-calibrates all configurations within the specified frequency and reference level limits. - - Self-calibration range data is valid until you restart the system or call the :py:meth:`nirfsa.Session.clear_self_calibrate_range` method. - - NI recommends that no external signals are present on the RF In port while the calibration is taking place. - - ---- - **Note** - This method does not update self-calibration date and temperature. - - ---- - - For best results, NI recommends that you perform a complete self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit that step for faster execution. - - ---- - **Note** - If there is an existing NI-RFSG session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate. - - ---- - - ---- - **Note** - If there is an existing NI-RFSG session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - - :param steps_to_omit: - - - Specifies which calibration steps to skip as part of the self-calibration process. A value of 0 specifies all supported calibration steps are performed. - - ---- - - To omit two or more calibration steps, specify a bitwise-OR combination of the following constants. For example, if you wanted to omit :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY` and :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL`, you would pass the following string to the :py:meth:`nirfsa.Session.SelfCalibrate` method: :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY` | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL` - - ---- - - | Value | Description | - |:------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_NONE` | No step is omitted during self-calibration. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.PRESELECTOR_ALIGNMENT` | Not used by this method. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.GAIN_REFERENCE` | Not used by this method. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.IF_FLATNESS` | Not used by this method. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.DIGITIZER_SELF_CAL` | Not used by this method. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL` | Omits the Local Oscillator (LO) Self Cal step. If you omit this step and the :py:meth:`nirfsa.Session.is_self_cal_valid` method indicates the calibration data for this step is invalid, the LO phase-locked loop (PLL) may fail to lock. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY` | Omits the Amplitude Accuracy step. If you omit this step, the absolute accuracy of the device is not adjusted. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER` | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | - |:py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION` | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image Performance is not adjusted. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT` | Omits the Synthesizer Alignment step. If you omit this step, the LO PLL is not adjusted. This step is not valid for the PXIe-5820. | - | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.DC_OFFSET` | Omits the DC Offset step. This step applies only to the PXIe-5820. | - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type steps_to_omit: :py:data:`nirfsa.SelfCalibrateRangeStepsToOmit` - :param minimum_frequency: - - - Specifies the minimum RF frequency in Hz. - - - - - :type minimum_frequency: float - :param maximum_frequency: - - - Specifies the maximum RF frequency in Hz. - - - - - :type maximum_frequency: float - :param minimum_reference_level: - - - Specifies the minimum reference level in dBm. - - - - - :type minimum_reference_level: float - :param maximum_reference_level: - - - Specifies the maximum reference level in dBm. - - - - - :type maximum_reference_level: float - -self_test ---------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: self_test() - - Performs a self-test on the NI-RFSA device and returns the test results. - - This method performs a simple series of tests to ensure that the NI-RFSA device is powered up and responding. - - This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSA device must be in the Configuration state before you call this method. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Device Warm-Up `_ - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - - -send_software_edge_trigger --------------------------- - - .. py:currentmodule:: nirfsa.Session - - .. py:method:: send_software_edge_trigger(trigger, trigger_identifier="") - - Sends a trigger to the device when you use a software version of a supported trigger and the device is waiting for the trigger to be sent. - - You can also use this method to override a hardware trigger. - - This method returns an error in the following situations: - - - You configure an invalid trigger. - - You set the **acquisitionType** to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method. - - You have not previously called the :py:meth:`nirfsa.Session._initiate` method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Software Trigger `_ - - `Triggers `_ - - - - - - :param trigger: - - - Specifies the trigger to send. - - **Default Value:** :py:data:`~nirfsa.SoftwareTriggerType.START` - - **Defined Values:** - - +----------------------------------------------+-------------------------------+ - | Name | Description | - +==============================================+===============================+ - | :py:data:`~nirfsa.SoftwareTriggerType.START` | Specifies the Start Trigger. | - +----------------------------------------------+-------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_SCRIPT_TRIGGER` | Specifies the Script Trigger. | - +----------------------------------------------+-------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger: :py:data:`nirfsa.SoftwareTriggerType` - :param trigger_identifier: - - - Specifies a particular instance of a trigger. NI-RFSA does not currently support this parameter. - - - - - :type trigger_identifier: str - -unlock ------- - - .. py:currentmodule:: nirfsa.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`nirfsa.Session.lock`. Refer to :py:meth:`nirfsa.Session.unlock` for additional - information on session locks. - - -Properties -========== - -absolute_delay --------------- - - .. py:attribute:: absolute_delay - - Specifies the sub-sample clock delay, in seconds, to apply to the acquired signal. - - Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. - This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. - - To set this property, the NI-RFSA device must be in the Configuration state. - - ---- - **Note** - If this property is set, NI-TClk cannot do any sub-sample clock adjustment. - - ---- - - **Units:** Seconds - - **Valid Values:** Plus or minus half of one sample clock period - - **Default Value**: 0 - - **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Absolute Delay** - - C Attribute: **NIRFSA_ATTR_ABSOLUTE_DELAY** - -acquisition_type ----------------- - - .. py:attribute:: acquisition_type - - Configures the session to either acquire I/Q data or to compute a power spectrum over the specified frequency range. - - **Default Value**: :py:data:`~nirfsa.AcquisitionType.IQ` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureAcquisitionType` - - **Defined Values**: - - +---------------------------------------------+-----------------------------------------------+ - | Name | Description | - +=============================================+===============================================+ - | :py:data:`~nirfsa.AcquisitionType.IQ` | Configures NI-RFSA for I/Q acquisitions. | - +---------------------------------------------+-----------------------------------------------+ - | :py:data:`~nirfsa.AcquisitionType.SPECTRUM` | Configures NI-RFSA for spectrum acquisitions. | - +---------------------------------------------+-----------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.AcquisitionType | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition Type** - - C Attribute: **NIRFSA_ATTR_ACQUISITION_TYPE** - -advance_trigger_terminal_name ------------------------------ - - .. py:attribute:: advance_trigger_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/AdvanceTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleNameai/0/AdvanceTrigger, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/AdvanceTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/AdvanceTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Advance:Terminal Name** - - C Attribute: **NIRFSA_ATTR_ADVANCE_TRIGGER_TERMINAL_NAME** - -advance_trigger_type --------------------- - - .. py:attribute:: advance_trigger_type - - Specifies whether you want the Advance Trigger to be a digital edge or software trigger. - - ---- - **Note** - Set this property to :py:data:`~nirfsa.AdvanceTriggerType.NONE` if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` or if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method. - - ---- - - **Default Value**: :py:data:`~nirfsa.AdvanceTriggerType.NONE` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=====================================================+===============================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.AdvanceTriggerType.NONE` | No Advance Trigger is configured. | - +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.AdvanceTriggerType.DIGITAL_EDGE` | The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_advance_trigger_source` property. | - +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.AdvanceTriggerType.SOFTWARE_EDGE` | The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_ADVANCE_TRIGGER` as the **trigger** parameter. | - +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.AdvanceTriggerType | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Advance:Type** - - C Attribute: **NIRFSA_ATTR_ADVANCE_TRIGGER_TYPE** - -allow_more_records_than_memory ------------------------------- - - .. py:attribute:: allow_more_records_than_memory - - Specifies whether to allow the device to acquire more records than can fit in the device memory of the PXIe-5622/5624. - - ---- - **Note** - If you set the property to FALSE and attempt to acquire more records than can fit into the PXIe-5622/5624 device memory, NI-RFSA returns an error. If this property is set to TRUE, NI-RFSA returns an error only in the event of an acquisition buffer overflow. - - ---- - - ---- - **Note** - This property is always set to True for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841. - - ---- - - **Default Value**: False - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------+------------------------------------------------------------------------+ - | Name | Description | - +=======+========================================================================+ - | True | Allows acquisition of more records than fit in device memory. | - +-------+------------------------------------------------------------------------+ - | False | Does not allow acquisitions of more records than fit in device memory. | - +-------+------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Allow More Records Than Memory** - - C Attribute: **NIRFSA_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY** - -allow_out_of_specification_user_settings ----------------------------------------- - - .. py:attribute:: allow_out_of_specification_user_settings - - Enables or disables warnings and errors when you set frequency, power, or bandwidth values beyond the limits of the NI-RFSA device specifications. - - When you set this property to :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.ENABLED`, the driver does not report out-of-specification warnings and errors. - - **Default Value**: :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.DISABLED` - - **Supported Devices:** PXIe-5820/5830/5831/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------------------------------+----------------------------------------------+ - | Name | Description | - +=================================================================+==============================================+ - | :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.DISABLED` | Disables out-of-specification user settings. | - +-----------------------------------------------------------------+----------------------------------------------+ - | :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.ENABLED` | Enables out-of-specification user settings. | - +-----------------------------------------------------------------+----------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------+ - | Characteristic | Value | - +=======================+===========================================+ - | Datatype | enums.AllowOutOfSpecificationUserSettings | - +-----------------------+-------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Advanced:Allow Out Of Specification User Settings** - - C Attribute: **NIRFSA_ATTR_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS** - -amplitude_settling ------------------- - - .. py:attribute:: amplitude_settling - - Configures the amplitude settling accuracy in decibels. - - NI-RFSA waits until the RF power settles within the specified accuracy level after calling the :py:meth:`nirfsa.Session._initiate` method. - - Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. - - **Units**: dB - - **Default Value:** 0.5 - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Amplitude Settling** - - C Attribute: **NIRFSA_ATTR_AMPLITUDE_SETTLING** - -arm_ref_trigger_type --------------------- - - .. py:attribute:: arm_ref_trigger_type - - Specifies whether you want the Arm Reference Trigger to be a digital edge or software trigger. - - ---- - **Note** - The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 only support :py:data:`~nirfsa.ArmReferenceTriggerType.NONE`. - - ---- - - ---- - **Note** - Set this property to :py:data:`~nirfsa.ArmReferenceTriggerType.NONE` if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` or if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method. - - ---- - - **Default Value**: :py:data:`~nirfsa.ArmReferenceTriggerType.NONE` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==========================================================+======================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ArmReferenceTriggerType.NONE` | No Arm Reference Trigger is configured. | - +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ArmReferenceTriggerType.DIGITAL_EDGE` | The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_arm_ref_trigger_source` property. | - +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ArmReferenceTriggerType.SOFTWARE_EDGE` | The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.SoftwareTriggerType.ARM_REF` as the **trigger** parameter. | - +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.ArmReferenceTriggerType | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Arm Ref:Type** - - C Attribute: **NIRFSA_ATTR_ARM_REF_TRIGGER_TYPE** - -attenuation ------------ - - .. py:attribute:: attenuation - - Specifies the nominal attenuation setting, in dB, for all attenuators before the first mixer in the RF signal chain. - - If you do not set this property, NI-RFSA automatically chooses an attenuation setting based on the reference level you configure. The valid values for this property depend on the device configuration. - - **PXI-5600/5661**: You can change the attenuation value to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. - - **PXIe-5601/5663/5663E**: You can change the attenuation value and the value of the :py:attr:`nirfsa.Session.if_attenuation` property to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. - - **PXIe-5603/5605/5606/5665/5668**: You can set multiple properties to modify the attenuation values for the device. Refer to `PXIe-5665 RF Attenuation and Signal Levels `_ for more information about configuring attenuation. - - **PXIe-5667**: This property specifies the nominal attenuation setting for all attenuators before the first RF mixer in the input signal path. This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. - - **PXIe-5693**: This property is read-only and returns the nominal RF attenuation of the PXIe-5693. - - **Units**: dB - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:RF Attenuation (dB)** - - C Attribute: **NIRFSA_ATTR_ATTENUATION** - -available_paths ---------------- - - .. py:attribute:: available_paths - - Returns a comma separated list of the configurable paths available for use based on your instrument configuration. - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Available Paths** - - C Attribute: **NIRFSA_ATTR_AVAILABLE_PATHS** - -available_ports ---------------- - - .. py:attribute:: available_ports - - Returns a comma-separated list of the available ports for use based on your instrument configuration. - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Available Ports** - - C Attribute: **NIRFSA_ATTR_AVAILABLE_PORTS** - -center_frequency ----------------- - - .. py:attribute:: center_frequency - - Specifies the center frequency in a spectrum acquisition. - - The value is expressed in hertz (Hz). An acquisition consists of a span of data surrounding the center frequency. - - ---- - **Note** - Use this property to tune the downconverter when using external digitizer mode. - - ---- - - **Units**: hertz (Hz) - - **Default Values**: - - **PXIe-5694**: 193.6 MHz - - **PXIe-5820**: 0 Hz - - **PXIe-5830/5831/5832**: 6.5 GHz - - **All other devices**: 1 GHz - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Center Frequency** - - C Attribute: **NIRFSA_ATTR_CENTER_FREQUENCY** - -channel_coupling ----------------- - - .. py:attribute:: channel_coupling - - Specifies whether the RF IN connector is AC- or DC-coupled on the downconverter. - - ---- - **Note** - For the PXIe-5605/5606/5665/5667/5668, this property must be set to :py:data:`~nirfsa.ChannelCoupling.AC` when the DC block is present and set to :py:data:`~nirfsa.ChannelCoupling.DC` when the DC block is not present to ensure device specifications are met and proper calibration data is used. For more information about removing or attaching the DC block, refer to the `PXIe-5665 Block Diagram `_, the `PXIe-5605 Front Panel and LEDs `_, the `PXIe-5667 Block Diagram `_, or the `PXIe-5668 Block Diagram `_ topics in this help file. - - ---- - - **Valid Values**: - - **PXIe-5603/5665 (3.6 GHz)**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` - - **PXIe-5605/5665 (14 GHz)**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low-frequency bypass path**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: :py:data:`~nirfsa.ChannelCoupling.AC` - - **PXIe-5667 (7 GHz)**: :py:data:`~nirfsa.ChannelCoupling.AC` - - **PXIe-5606/5668**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` - - **Default Value**: :py:data:`~nirfsa.ChannelCoupling.AC` - - **Supported Devices**: PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 - - **Defined Values**: - - +---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================+============================================================================================================================================================+ - | :py:data:`~nirfsa.ChannelCoupling.AC` | Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. | - +---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ChannelCoupling.DC` | Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. | - +---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.ChannelCoupling | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:NI 5665/5667/5668R:Channel Coupling** - - C Attribute: **NIRFSA_ATTR_CHANNEL_COUPLING** - -common_mode_level ------------------ - - .. py:attribute:: common_mode_level - - Specifies the common-mode level presented at each differential input terminal. - - Common-mode level shifts both positive and negative terminals in the same direction. This must match the common-mode level of the device under test (DUT). - - **Units**: volts - - **Default Value**: 0 V - - **Supported Devices**: PXIe-5820 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Common Mode Level** - - C Attribute: **NIRFSA_ATTR_COMMON_MODE_LEVEL** - -deembedding_compensation_gain ------------------------------ - - .. py:attribute:: deembedding_compensation_gain - - Returns the de-embedding gain applied to compensate for the mismatch on the specified port. Use the Active Channel property to specify the name of the port to configure for de-embedding. - - If de-embedding is enabled, NI-RFSA uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. - - **Supported Devices**: PXIe-5830/5831/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **De-embedding:Compensation Gain** - - C Attribute: **NIRFSA_ATTR_DEEMBEDDING_COMPENSATION_GAIN** - -deembedding_selected_table --------------------------- - - .. py:attribute:: deembedding_selected_table - - Selects the de-embedding table to apply to the measurements on the specified port. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_string` method to specify the name of the port to configure for de-embedding. - - If de-embedding is enabled, NI-RFSA uses the specified table to remove the effects of the external network between the instrument and the DUT. - - Use the :py:meth:`nirfsa.Session._create_deembedding_sparameter_table_array` method to create tables. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.deembedding_selected_table` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | ports | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **De-embedding:Selected Table** - - C Attribute: **NIRFSA_ATTR_DEEMBEDDING_SELECTED_TABLE** - -deembedding_type ----------------- - - .. py:attribute:: deembedding_type - - Specifies the type of de-embedding to apply to measurements on the specified port. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the port to configure for de-embedding. - - If you set this property to any value besides :py:data:`~nirfsa.DeembeddingType.NONE`, NI-RFSA adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. - - **Default Value**: :py:data:`~nirfsa.DeembeddingType.SCALAR` - - **Valid Values for PXIe-5830/5832/5840/5841** : :py:data:`~nirfsa.DeembeddingType.NONE` or :py:data:`~nirfsa.DeembeddingType.SCALAR` - - **Valid Values for PXIe-5842/5860** : :py:data:`~nirfsa.DeembeddingType.NONE` or :py:data:`~nirfsa.DeembeddingType.SCALAR` or :py:data:`~nirfsa.DeembeddingType.AMPLITUDE_FLATNESS` - - **Valid Values for PXIe-5831:** :py:data:`~nirfsa.DeembeddingType.NONE`, :py:data:`~nirfsa.DeembeddingType.SCALAR`, or :py:data:`~nirfsa.DeembeddingType.VECTOR`. :py:data:`~nirfsa.DeembeddingType.VECTOR` is only supported for TRX Ports in a Semiconductor Test System (STS). - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------------------------------------------------------+-------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=========================================================================+ - | :py:data:`~nirfsa.DeembeddingType.NONE` | De-embedding is not applied to the measurement. | - +-------------------------------------------------------+-------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DeembeddingType.SCALAR` | De-embeds the measurement using only the gain term. | - +-------------------------------------------------------+-------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DeembeddingType.VECTOR` | De-embeds the measurement using the gain term and the reflection term. | - +-------------------------------------------------------+-------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DeembeddingType.AMPLITUDE_FLATNESS` | De-embeds the measurement using wideband amplitude flatness correction. | - +-------------------------------------------------------+-------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_type` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.deembedding_type` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.DeembeddingType | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | ports | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **De-embedding:Type** - - C Attribute: **NIRFSA_ATTR_DEEMBEDDING_TYPE** - -device_configuration_temperature --------------------------------- - - .. py:attribute:: device_configuration_temperature - - Specifies the temperature, in degrees Celsius, that NI-RFSA uses to calculate the device configuration settings. - - ---- - **Note** - For most applications, you can choose not to set this property, so NI-RFSA uses the device temperature to calculate best attenuation settings. Set this property only if you want NI-RFSA to maintain the same device configuration settings from acquisition to acquisition, independent of device temperature changes. - - ---- - - **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: This property is read-only. - - **Units**: degrees Celsius - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Device Configuration Temperature (Degrees C)** - - C Attribute: **NIRFSA_ATTR_DEVICE_CONFIGURATION_TEMPERATURE** - -device_instantaneous_bandwidth ------------------------------- - - .. py:attribute:: device_instantaneous_bandwidth - - Specifies the instantaneous bandwidth of the device in hertz (Hz). - - The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. - - Specify the maximum instantaneous bandwidth needed for your measurement. NI-RFSA coerces the actual IF filter to use based on other measurement constraints such as the :py:attr:`nirfsa.Session.if_filter_bandwidth` property and the :py:attr:`nirfsa.Session.digital_if_equalization_enabled` property. - - To change the value that NI-RFSA uses for the maximum size of multispan acquisition subspans, use the :py:attr:`nirfsa.Session.fft_width` property. - - ---- - **Note** - If your application uses the PXIe-5622 IF digitizer, your maximum device instantaneous bandwidth is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. If your application uses the PXIe-5624 digitizer, your maximum device instantaneous bandwidth is constrained by the hardware option you purchased and your FPGA image. - - ---- - - **PXI-5661**: The PXI-5600 RF downconverter instantaneous bandwidth is 20 MHz. - - **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the `PXIe-5601 RF Signal Downconverter Overview `_ for more information about instantaneous bandwidth. - - ---- - **Note** - For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than the instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. - - ---- - - **PXIe-5665**: Your maximum allowed instantaneous bandwidth is independent of the downconverter center frequency. Refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth. - - **PXIe-5665 (14 GHz), PXIe-5668**: If you have enabled the preselector for the PXIe-5605/5606, the device instantaneous bandwidth value is only a typical specification. For multispan acquisitions, NI-RFSA uses this typical specification as the maximum size for the acquisition subspans. - - ---- - **Note** - When used with an external digitizer, the PXIe-5603 and the low band signal path of the PXIe-5605 provide a nominal 80 MHz bandwidth at dB. At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector (YIG-tuned filter) enabled. - - ---- - - ---- - **Note** - For PXIe-5606 devices, the 765 MHz IF filter is available only at center frequencies above 3.6 GHz. - - ---- - - **PXIe-5693**: This property is read-only for the PXIe-5693. The value for the device instantaneous bandwidth depends on the value for the RF preselector filter. - - **PXIe-5694/PXIe-5667**: If your application uses the PXIe-5694 as part of an PXIe-5667 spectrum monitoring receiver or the PXIe-5694 as a stand-alone device, NI-RFSA determines the appropriate IF filter to use based on the value that you set for this property. - - ---- - **Note** - - ---- - - **PXIe-5644/5645/5646**: This property is read-only for the PXIe-5644/5645/5646. Refer to the specifications document for your device for more information about instantaneous bandwidth. - - **PXIe-5840/5841/5860**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the *PXIe-5840/5841/5860 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. - - **PXIe-5842**: Your maximum allowed instantaneous bandwidth depends on the device's hardware options, configured device personality, and the downconverter center frequency you use. Refer to the *PXIe-5842 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Device Instantaneous Bandwidth (Hz)** - - C Attribute: **NIRFSA_ATTR_DEVICE_INSTANTANEOUS_BANDWIDTH** - -device_temperature ------------------- - - .. py:attribute:: device_temperature - - Returns the current temperature, in degrees Celsius, of the module. - - **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **PXIe-5830/5831/5832**: To use this property, you must first set the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to using the appropriate string for your instrument configuration. Setting the :py:meth:`nirfsa.Session._set_attribute_vi_real64` property is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. - - **Units**: degrees Celcius - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - +--------------------------------+---------------------------+---------------------------+ - | Hardware Module | TRX Port Type | Active Channel String | - +================================+===========================+===========================+ - | PXIe-3621/3622/5842 | - | if or "" (empty string) | - +--------------------------------+---------------------------+---------------------------+ - | PXIe-5820 | - | fpga | - +--------------------------------+---------------------------+---------------------------+ - | PXIe-5860 | - | 5860 or "" (empty string) | - +--------------------------------+---------------------------+---------------------------+ - | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | - +--------------------------------+---------------------------+---------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | - +--------------------------------+---------------------------+---------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf0switch1 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf1switch1 | - +--------------------------------+---------------------------+---------------------------+ - | First connected RMM-5544/5546 | - | rmm0 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected RMM-5544/5546 | - | rmm1 | - +--------------------------------+---------------------------+---------------------------+ - - - .. tip:: This property can be set/get on specific device_temperatures within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. - - Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` - - To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.device_temperature` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | float | - +-----------------------+---------------------+ - | Permissions | read only | - +-----------------------+---------------------+ - | Repeated Capabilities | device_temperatures | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Device Temperature (Degrees C)** - - C Attribute: **NIRFSA_ATTR_DEVICE_TEMPERATURE** - -digital_edge_advance_trigger_source ------------------------------------ - - .. py:attribute:: digital_edge_advance_trigger_source - - Specifies the source terminal for the Advance Trigger. - - This property is used only when the :py:attr:`nirfsa.Session.advance_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_digital_edge_ref_trigger` - - **Defined Values**: - - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=============================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on the PFI 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on the PXI trigger line 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on the PXI trigger line 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on the PXI trigger line 2. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on the PXI trigger line 3. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on the PXI trigger line 4. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on the PXI trigger line 5. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on the PXI trigger line 6. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on the PXI trigger line 7. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Advance:Digital Edge:Source** - - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_ADVANCE_TRIGGER_SOURCE** - -digital_edge_arm_ref_trigger_source ------------------------------------ - - .. py:attribute:: digital_edge_arm_ref_trigger_source - - Specifies the source terminal for the digital edge Arm Reference Trigger. - - This property is used only when the :py:attr:`nirfsa.Session.arm_ref_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. - - **Default Value**: "" (empty string) - - ---- - **Note** - The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 devices only support "" (empty string). - - The trigger is received on PFI0 from the front panel DIO terminal. - - The trigger is received on PFI1 from the front panel DIO terminal. - - The trigger is received on PFI2 from the front panel DIO terminal. - - The trigger is received on PFI3 from the front panel DIO terminal. - - The trigger is received on PFI4 from the front panel DIO terminal. - - The trigger is received on PFI5 from the front panel DIO terminal. - - The trigger is received on PFI6 from the front panel DIO terminal. - - The trigger is received on PFI7 from the front panel DIO terminal. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=============================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on PFI 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Arm Ref:Digital Edge:Source** - - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_ARM_REF_TRIGGER_SOURCE** - -digital_edge_ref_trigger_edge ------------------------------ - - .. py:attribute:: digital_edge_ref_trigger_edge - - Specifies the active edge for the Reference Trigger. - - This property is used only when the :py:attr:`nirfsa.Session.ref_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. - - **Default Value**: :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_digital_edge_ref_trigger` - - **Defined Values**: - - +------------------------------------------------------------+-------------------------------------------------------+ - | Name | Description | - +============================================================+=======================================================+ - | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING` | The trigger asserts on the rising edge of the signal. | - +------------------------------------------------------------+-------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.FALLING` | The trigger asserts on the falling edge of the signal | - +------------------------------------------------------------+-------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------------+ - | Characteristic | Value | - +=======================+=======================================+ - | Datatype | enums.ReferenceTriggerDigitalEdgeEdge | - +-----------------------+---------------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Digital Edge:Edge** - - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_REF_TRIGGER_EDGE** - -digital_edge_ref_trigger_source -------------------------------- - - .. py:attribute:: digital_edge_ref_trigger_source - - Specifies the source terminal for the digital edge Reference Trigger. - - This property is used only when the :py:attr:`nirfsa.Session.ref_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=============================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on PFI 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Digital Edge:Source** - - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_REF_TRIGGER_SOURCE** - -digital_edge_start_trigger_edge -------------------------------- - - .. py:attribute:: digital_edge_start_trigger_edge - - Specifies the active edge for the Start Trigger. - - This property is used only when the :py:attr:`nirfsa.Session.start_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. - - **Default Value**: :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_digital_edge_start_trigger` - - **Defined and Valid Values:** - - +--------------------------------------------------------+-------------------------------------------------------+-------------------------------------+ - | Name | Description | Valid For | - +========================================================+=======================================================+=====================================+ - | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING` | The trigger asserts on the rising edge of the signal. | PXI-5661, PXIe-5663/5663E/5665/5668 | - +--------------------------------------------------------+-------------------------------------------------------+-------------------------------------+ - | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.FALLING` | The trigger asserts on the falling edge of the signal | PXIe-5668 | - +--------------------------------------------------------+-------------------------------------------------------+-------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------------+ - | Characteristic | Value | - +=======================+===================================+ - | Datatype | enums.StartTriggerDigitalEdgeEdge | - +-----------------------+-----------------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Digital Edge:Edge** - - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** - -digital_edge_start_trigger_source ---------------------------------- - - .. py:attribute:: digital_edge_start_trigger_source - - Specifies the source terminal for the Start Trigger. - - This property is used only when the :py:attr:`nirfsa.Session.start_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_digital_edge_start_trigger` - - **Defined Values**: - - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=============================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on PFI 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Digital Edge:Source** - - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** - -digital_gain ------------- - - .. py:attribute:: digital_gain - - Specifies the scaling factor applied to the time-domain voltage data in the digitizer. - - NI-RFSA does not compensate for the specified digital gain. - - You can use this property to account for external gain changes without changing the analog signal path. - - ---- - **Note** - The PXIe-5644/5645/5646 applies this gain when the data is scaled. The raw data does not include this scaling on these devices. - - ---- - - **Units:** dB - - **Default Value:** 0 dB - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Digital Gain (dB)** - - C Attribute: **NIRFSA_ATTR_DIGITAL_GAIN** - -digital_if_equalization_enabled -------------------------------- - - .. py:attribute:: digital_if_equalization_enabled - - Enables use of the digital equalization filter for the RF downconverter. - - **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. - - ---- - **Note** - For PXIe-5665/5667 devices, digital IF equalization is supported only with a 150 MHz clock. You cannot set this property to True if the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property is set to :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.LO_REF_CLK`. - - ---- - - ---- - **Note** - For the PXIe-5665 (14 GHz)/5667 (7 GHz)/5668, the preselector is not part of the IF filter path, so NI-RFSA does not equalize the preselector distortions. - - ---- - - **Default Value**: True, if the device configuration is supported. - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 - - **Defined Values**: - - +-------+-----------------------------------------------------------+ - | Name | Description | - +=======+===========================================================+ - | True | Enables digital IF equalization on the RF downconverter. | - +-------+-----------------------------------------------------------+ - | False | Disables digital IF equalization on the RF downconverter. | - +-------+-----------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Digital IF Equalization Enabled** - - C Attribute: **NIRFSA_ATTR_DIGITAL_IF_EQUALIZATION_ENABLED** - -digitizer_dither_enabled ------------------------- - - .. py:attribute:: digitizer_dither_enabled - - Specifies whether dithering is enabled on the digitizer. - - Dithering adds band-limited noise in the analog signal path to help reduce the quantization effects of the A/D converter and improve spectral performance. On the PXIe-5622, this out-of-band noise is added at low frequencies up to approximately 12 MHz. On the PXIe-5624, this out-of-band noise is added at low frequencies up to approximately 50 MHz. - - **PXIe-5663/5663E/5665/5667**: When you enable dithering, the maximum signal level is reduced by up to 3 dB. This signal level reduction is accounted for in the nominal input ranges of the PXIe-5622. Therefore, you can overrange the input by up to 3 dB with dither disabled. For example, the +4 dBm input range can handle signal levels up to +7 dBm with dither disabled. For wider bandwidth acquisitions, such as 40 MHz, disable dithering to eliminate residual leakage of the dither signal into the lower frequencies of the IF passband, which starts at 12.5 MHz and ends at 62.5 MHz. This leakage can slightly raise the noise floor in the lower frequencies, thus degrading the performance in high-sensitivity applications. When taking spectral measurements, this leakage can also appear as a wide, low-amplitude signal near 12.5 MHz and 62.5 MHz. The width and amplitude of the signal depends on your resolution bandwidth and the type of time-domain window you apply to your FFT. - - **PXIe-5668**: When you enable dithering, the maximum signal level is reduced by up to 2 dB. For the PXIe-5624, the maximum input power with dither off is 8 dBm and the maximum input power with dither on is 6 dBm. When acquiring an 800 MHz bandwidth signal, the I/Q data contains the dither even if the dither signal is not in the displayed spectrum. The dither can affect actions like power level triggering. - - ---- - **Note** - For the PXIe-5668, disabling dithering can negatively affect absolute amplitude accuracy. - - ---- - - ---- - **Note** - For the PXIe-5820/5830/5831/5832/5840/5841/5842, only :py:data:`~nirfsa.DigitizerDitherEnabled.ENABLED` is supported. - - ---- - - **Default Value**: :py:data:`~nirfsa.DigitizerDitherEnabled.ENABLED` - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +----------------------------------------------------+-----------------------------------+ - | Name | Description | - +====================================================+===================================+ - | :py:data:`~nirfsa.DigitizerDitherEnabled.DISABLED` | Disables dither on the digitizer. | - +----------------------------------------------------+-----------------------------------+ - | :py:data:`~nirfsa.DigitizerDitherEnabled.ENABLED` | Enables dither on the digitizer. | - +----------------------------------------------------+-----------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.DigitizerDitherEnabled | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Digitizer Dither Enabled** - - C Attribute: **NIRFSA_ATTR_DIGITIZER_DITHER_ENABLED** - -digitizer_sample_clock_rate ---------------------------- - - .. py:attribute:: digitizer_sample_clock_rate - - Returns the actual frequency, in hertz (Hz), of the digitizer Sample Clock. - - **Units**: hertz (Hz) - - **Supported Devices**: PXIe-5668 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Digitizer Sample Clock Rate** - - C Attribute: **NIRFSA_ATTR_DIGITIZER_SAMPLE_CLOCK_RATE** - -digitizer_sample_clock_timebase_rate ------------------------------------- - - .. py:attribute:: digitizer_sample_clock_timebase_rate - - Specifies the frequency, in hertz (Hz), of the external clock used as the timebase source if you set the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property to an external source, such as :py:data:`~nirfsa.NIRFSA_VAL_CLK_IN`, :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.LO_REF_CLK`, or :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT` - - **PXI-5661**If this property is set to a value less than 60 MHz, signals at frequencies just above the 20 MHz passband of the downconverter may be aliased back into the passband. This aliasing occurs because the IF frequency of the downconverter is 15 MHz, and the upper end of the passband is 25 MHz. At sampling rates below 60 MHz, the Nyquist frequency is close to the end of the passband and creates aliases that are not filtered effectively by the downconverter. - - **Units**: hertz (Hz) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - **Valid and Default Values**: - - +---------------------------+----------------------------+---------------+ - | Device | Valid Values | Default Value | - +===========================+============================+===============+ - | PXI-5661 | Any frequency 226552.5 MHz | 100 MHz | - +---------------------------+----------------------------+---------------+ - | PXIe-5663/5663E/5665/5667 | 150 MHz | 150 MHz | - +---------------------------+----------------------------+---------------+ - | PXIe-5668 | 2 GHz | 2 GHz | - +---------------------------+----------------------------+---------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Digitizer Sample Clock Timebase Rate** - - C Attribute: **NIRFSA_ATTR_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_RATE** - -digitizer_sample_clock_timebase_source --------------------------------------- - - .. py:attribute:: digitizer_sample_clock_timebase_source - - Specifies the source of the Sample Clock timebase, which is the timebase used to control waveform sampling. - - **Default Value**: :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK` - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - **Defined Values**: - - +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=============================================================================+========================================================================================================================================================================+ - | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK` | The digitizer uses its onboard clock as the Sample Clock timebase. | - +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.CLK_IN` | The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. | - +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.LO_REF_CLK` | The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. | - +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.PXI_STAR` | The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. | - +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT` | The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. | - +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------------+ - | Characteristic | Value | - +=======================+==========================================+ - | Datatype | enums.DigitizerSampleClockTimebaseSource | - +-----------------------+------------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Digitizer Sample Clock Timebase Source** - - C Attribute: **NIRFSA_ATTR_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE** - -digitizer_temperature ---------------------- - - .. py:attribute:: digitizer_temperature - - Returns the current temperature, in degrees Celsius, of the digitizer module. - - **PXIe-5820/5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Default Value**: N/A - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Digitizer Temperature (Degrees C)** - - C Attribute: **NIRFSA_ATTR_DIGITIZER_TEMPERATURE** - -digitizer_vertical_range ------------------------- - - .. py:attribute:: digitizer_vertical_range - - Specifies the vertical range of the digitizer. - - The vertical range is defined as the absolute value of the input range for a channel. The default vertical range works for all device configurations, but you can use this property to optimize performance if you know that the signal level at the digitizer input terminal is low. - - ---- - **Note** - For most applications, NI-RFSA selects an appropriate value for this property. - - ---- - - This value is expressed in volts. For example, to acquire a sine wave that spans between 20130.5 V and +0.5 V, set this property to 1.0. - - **PXIe-5840/5841/5842/5860**: This property is read-only. - - **Default Value**: 1.0 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Digitizer Vertical Range** - - C Attribute: **NIRFSA_ATTR_DIGITIZER_VERTICAL_RANGE** - -done_event_terminal_name ------------------------- - - .. py:attribute:: done_event_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/DoneEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/DoneEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done:Terminal Name** - - C Attribute: **NIRFSA_ATTR_DONE_EVENT_TERMINAL_NAME** - -downconverter_center_frequency ------------------------------- - - .. py:attribute:: downconverter_center_frequency - - Enables in-band retuning and specifies the current frequency, in hertz (Hz), of the RF downconverter. - - If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. To disable in-band retuning, reset the property or call the :py:meth:`nirfsa.Session.reset_device` method. - - After you set this property, the downconverter is locked to that frequency until the value is changed or the property is reset. Locking the downconverter to a fixed value allows frequencies within the instantaneous bandwidth of the downconverter to be measured with minimal overhead, decreasing tuning time. - - **Valid Values**: Any supported tuning frequency of the device - - **PXIe-5820**: The only valid value for this property is 0 Hz. - - **Default Value**: - - **PXIe-5694**: The default value for the PXIe-5694 is 193.6 MHz unless you set the :py:attr:`nirfsa.Session.signal_conditioning_enabled` property to :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED`, in which case the default value is 187.5 MHz. - - **All other devices**: The carrier frequency or spectrum center frequency. NI-RFSA sets this property to the default value based on the value of the :py:attr:`nirfsa.Session.acquisition_type` property. - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Advanced:Downconverter Center Frequency** - - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_CENTER_FREQUENCY** - -downconverter_frequency_offset ------------------------------- - - .. py:attribute:: downconverter_frequency_offset - - Specifies an offset from the I/Q carrier frequency for the downconverter. - - If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. After you set this property, the RF downconverter is locked to that frequency offset until the value is changed or the property is reset. - - **Valid Values:** - - **PXIe-5646:**: -100 MHz to +100 MHz - - **PXIe-5830/5831/5832/5840/5841:**: -500 MHz to +500 MHz - - **All other devices:**: -42 MHz to +42 MHz - - **Default Values:**: For spectrum acquisition types the driver automatically calculates the default to avoid residual LO power. For I/Q acquisition types the default is 0 Hz. If the center frequency is set to a non-multiple of the :py:attr:`nirfsa.Session.lo_frequency_step_size` property, the :py:attr:`nirfsa.Session.downconverter_frequency_offset` property is set to compensate for the difference. - - **Supported Devices:**: PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Acquisition:Advanced:Downconverter Frequency Offset** - - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_FREQUENCY_OFFSET** - -downconverter_frequency_offset_mode ------------------------------------ - - .. py:attribute:: downconverter_frequency_offset_mode - - Specifies whether to allow NI-RFSA to select the downconveter frequency offset. - - You can either set an offset yourself or let NI-RFSA select one for you. - - Placing the downconverter center frequency outside the bandwidth of your input signal can help avoid issues such as LO leakage. - - To set an offset yourself, set this property to :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` or :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.USER_DEFINED`, and set either the :py:attr:`nirfsa.Session.downconverter_center_frequency` or the :py:attr:`nirfsa.Session.downconverter_frequency_offset` properties. - - To allow NI-RFSA to automatically select the downconverter frequency offset, set this property to :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` or :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` and configure the :py:attr:`nirfsa.Session.signal_bandwidth` property to describe your expected input signal. The signal bandwidth must be no greater than half the specified value of the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property, minus a device-specific guard band. Do not set the :py:attr:`nirfsa.Session.downconverter_center_frequency` or :py:attr:`nirfsa.Session.downconverter_frequency_offset` properties. If all conditions are met, NI-RFSA places the downconverter center frequency outside the signal bandwidth. Set this property to :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` if you want to receive an error any time NI-RFSA is unable to apply automatic offset. - - When you set an offset yourself or do not use an offset, the reference frequency for gain is near the downconverter center frequency, and :py:attr:`nirfsa.Session.downconverter_frequency_offset_mode` returns :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.USER_DEFINED`. When NI-RFSA automatically sets an offset, the reference frequency for gain is the :py:attr:`nirfsa.Session.iq_carrier_frequency`, and :py:attr:`nirfsa.Session.downconverter_frequency_offset_mode` returns :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED`. Refer to the specifications document for your device for more information about gain, flatness, and reference frequencies. - - ---- - **Note** - Below 120 MHz, the PXIe-5841 does not use an LO and :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. - - ---- - - **Default Value:** :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` - - **Supported Devices**: PXIe-5830/5831/5832/5841/5842 - - **Related Topics** - - `PXIe-5830 Automatic Frequency Offset `_ - - `PXIe-5831/5832 Automatic Frequency Offset `_ - - `PXIe-5841 Automatic Frequency Offset `_ - - **Defined Values**: - - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==================================================================+==============================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSA returns an error if the :py:attr:`nirfsa.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.USER_DEFINED` | NI-RFSA uses the offset that you specified with the :py:attr:`nirfsa.Session.downconverter_frequency_offset` or :py:attr:`nirfsa.Session.downconverter_center_frequency` properties. | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------------+ - | Characteristic | Value | - +=======================+========================================+ - | Datatype | enums.DownconverterFrequencyOffsetMode | - +-----------------------+----------------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Advanced:Downconverter Frequency Offset Mode** - - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_FREQUENCY_OFFSET_MODE** - -downconverter_gain ------------------- - - .. py:attribute:: downconverter_gain - - Returns the net signal gain for the NI-RFSA device at the current NI-RFSA settings and temperature. - - NI-RFSA scales the acquired I/Q and spectrum data from the digitizer using the value of this property. - - For a vector signal analyzer (VSA), the system is defined as the RF downconverter and all interfaces between the RF IN connector on the RF downconverter front panel and the IF IN connector on the digitizer front panel. For a spectrum monitoring receiver, the system is defined as the RF preselector, RF downconverter, and IF conditioning modules including all interfaces between the RF IN connector on the RF preselector module front panel and the IF IN connector on the digitizer front panel. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Downconverter Gain (dB)** - - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_GAIN** - -downconverter_loop_bandwidth ----------------------------- - - .. py:attribute:: downconverter_loop_bandwidth - - Configures the loop bandwidth of the RF downconverter tuning PLLs. - - To set this property, the NI-RFSA device must be in the Configuration state. - - **PXI-5600/5661** : For signal bandwidths greater than 10 MHz, :py:data:`~nirfsa.DownconverterLoopBandwidth.WIDE` is the only value supported for this property. - - **PXIe-5601/5663/5663E** : The PXIe-5601 does not support the :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` value. This property is not supported if you are using an external LO. - - **PXIe-5830/5831/5832/5840/5841/5842** : The PXIe-5840/5841/5842 supports only :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` for this property. This property is not supported if you are using an external LO. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Values**: - - **PXI-5600** : :py:data:`~nirfsa.DownconverterLoopBandwidth.WIDE` - - **PXIe-5601** : :py:data:`~nirfsa.DownconverterLoopBandwidth.NARROW` - - **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842** : :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` - - **Supported Devices**: PXI-5600, PXIe-5601 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +------------------------------------------------------+-----------------------------------------------------------------------+ - | Name | Description | - +======================================================+=======================================================================+ - | :py:data:`~nirfsa.DownconverterLoopBandwidth.NARROW` | Specifies that the downconverter module uses a narrow loop bandwidth. | - +------------------------------------------------------+-----------------------------------------------------------------------+ - | :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` | Specifies that the downconverter module uses a medium loop bandwidth. | - +------------------------------------------------------+-----------------------------------------------------------------------+ - | :py:data:`~nirfsa.DownconverterLoopBandwidth.WIDE` | Specifies that the downconverter module uses a wide loop bandwidth. | - +------------------------------------------------------+-----------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].downconverter_loop_bandwidth` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.downconverter_loop_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.DownconverterLoopBandwidth | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | los | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Downconverter Loop Bandwidth** - - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_LOOP_BANDWIDTH** - -downconverter_preselector_enabled ---------------------------------- - - .. py:attribute:: downconverter_preselector_enabled - - Specifies whether the tunable preselector is enabled on the downconverter. - - ---- - **Note** - All devices support setting this property to :py:data:`~nirfsa.DownconverterPreselectorEnabled.DISABLED` or :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH`. Only devices with a preselector support setting this property to :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED`. - - ---- - - **Default Value**: :py:data:`~nirfsa.DownconverterPreselectorEnabled.DISABLED` if the device has no preselector. :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` if the device has a preselector. - - **Supported Devices:** PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +================================================================================+===================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.DownconverterPreselectorEnabled.DISABLED` | Disables the preselector. | - +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` | The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the :py:attr:`nirfsa.Session.preselector_present` property to determine if the downconverter has an preselector. | - +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED` | Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` whenever possible avoid an error. | - +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------------+ - | Characteristic | Value | - +=======================+=======================================+ - | Datatype | enums.DownconverterPreselectorEnabled | - +-----------------------+---------------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Downconverter Preselector Enabled** - - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_PRESELECTOR_ENABLED** - -driver_setup ------------- - - .. py:attribute:: driver_setup - - The Driver Setup string returns the initial values for properties that are specific to NI-RFSA. - - The Driver Setup string uses the following format: - - DriverSetup= Tag:Value - - *Tag* is the name of the Driver Setup string property. *Value* is the value set to the property. If multiple properties are set, their assignments are separated with a semicolon. - - This property only returns the Driver Setup string that has already been defined. Refer to `Driver Setup Options `_ for more information about configuring the Driver Setup string. Refer to the :py:meth:`nirfsa.Session.__init__` method for additional information about using the **option string** parameter. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Driver Setup** - - C Attribute: **NIRFSA_ATTR_DRIVER_SETUP** - -enable_fractional_resampling ----------------------------- - - .. py:attribute:: enable_fractional_resampling - - Specifies whether fractional resampling is enabled on the digitizer. - - Fractional resampling allows the digitizer to achieve very fine resolution on the I/Q rate value. Setting this property to False improves spectral performance. - - **PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. - - **PXIe-5668**: When using a 400 MHz FPGA image, the only valid value for this property is True. When using a 800 MHz FPGA image, the only valid value for this property is False. Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about FPGA images. - - **Default Value**: True - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------+---------------------------------+ - | Value | Description | - +=======+=================================+ - | True | Enables fractional resampling. | - +-------+---------------------------------+ - | False | Disables fractional resampling. | - +-------+---------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Fractional Resample Enabled** - - C Attribute: **NIRFSA_ATTR_ENABLE_FRACTIONAL_RESAMPLING** - -end_of_record_event_terminal_name ---------------------------------- - - .. py:attribute:: end_of_record_event_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/EndOfRecordEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/EndOfRecordEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:End Of Record:Terminal Name** - - C Attribute: **NIRFSA_ATTR_END_OF_RECORD_EVENT_TERMINAL_NAME** - -exported_advance_trigger_output_terminal ----------------------------------------- - - .. py:attribute:: exported_advance_trigger_output_terminal - - Specifies the destination terminal for the exported Advance Trigger. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Advance:Export:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL** - -exported_digitizer_sample_clock_output_terminal ------------------------------------------------ - - .. py:attribute:: exported_digitizer_sample_clock_output_terminal - - Specifies the terminal at which to export the Digitizer Sample Clock. - - **Valid Values**: - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5668 - - **Defined Values**: - - +-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=================================================================+==========================================================================================================================================================+ - | :py:data:`~nirfsa.DigitizerSampleClockExportedTerminal.NONE` | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | - +-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.DigitizerSampleClockExportedTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------------+ - | Characteristic | Value | - +=======================+============================================+ - | Datatype | enums.DigitizerSampleClockExportedTerminal | - +-----------------------+--------------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Digitizer Sample Clock Exported Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_DIGITIZER_SAMPLE_CLOCK_OUTPUT_TERMINAL** - -exported_done_event_output_terminal ------------------------------------ - - .. py:attribute:: exported_done_event_output_terminal - - Specifies the destination terminal for the Done Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL** - -exported_end_of_record_event_output_terminal --------------------------------------------- - - .. py:attribute:: exported_end_of_record_event_output_terminal - - Specifies the destination terminal for the End of Record Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `Signal Routing `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:End Of Record:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_END_OF_RECORD_EVENT_OUTPUT_TERMINAL** - -exported_ready_for_advance_event_output_terminal ------------------------------------------------- - - .. py:attribute:: exported_ready_for_advance_event_output_terminal - - Specifies the destination terminal for the Ready for Advance Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on the PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on the PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on the PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on the PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on the PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on the PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on the PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on the PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Advance:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL** - -exported_ready_for_ref_event_output_terminal --------------------------------------------- - - .. py:attribute:: exported_ready_for_ref_event_output_terminal - - Specifies the destination terminal for the Ready for Reference Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Ref:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_READY_FOR_REF_EVENT_OUTPUT_TERMINAL** - -exported_ready_for_start_event_output_terminal ----------------------------------------------- - - .. py:attribute:: exported_ready_for_start_event_output_terminal - - Specifies the destination terminal for the Ready for Start Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Start:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_READY_FOR_START_EVENT_OUTPUT_TERMINAL** - -exported_ref_clock_output_terminal ----------------------------------- - - .. py:attribute:: exported_ref_clock_output_terminal - - Specifies a comma-separated list of the terminals at which to export the Reference Clock. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===================================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ReferenceClockExportedTerminal.NONE` | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockExportedTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockExportedTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockExportedTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockExportedTerminal.IF_COND_REF_OUT` | Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. | - +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------+ - | Characteristic | Value | - +=======================+======================================+ - | Datatype | enums.ReferenceClockExportedTerminal | - +-----------------------+--------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Ref Clock Exported Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL** - -exported_ref_clock_rate ------------------------ - - .. py:attribute:: exported_ref_clock_rate - - Specifies the Reference Clock Rate, in Hz, of the signal sent to the Ref Clock Exported Terminal. - - **Default Value**: 10 MHz - - **Valid Values**: - - PXIe-5820/5830/5831/5832/5840/5841: 10 MHz - - PXIe-5842: 10 MHz, 100 MHz, 1 GHz - - PXIe-5860: 10 MHz, 100 MHz - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.ReferenceClockExportedRate | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Ref Clock Exported Rate:Ref Clock Exported Rate** - - C Attribute: **NIRFSA_ATTR_EXPORTED_REF_CLOCK_RATE** - -exported_ref_trigger_output_terminal ------------------------------------- - - .. py:attribute:: exported_ref_trigger_output_terminal - - Specifies the destination terminal for the exported Reference Trigger. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Export:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL** - -exported_start_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_start_trigger_output_terminal - - Specifies the destination terminal for the exported Start Trigger. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ExportSignal` - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================================+=================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | - +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ExportOutputTerminal | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Export:Output Terminal** - - C Attribute: **NIRFSA_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** - -external_gain -------------- - - .. py:attribute:: external_gain - - Specifies the gain, in dB, of a switch (or cable) connected before the RF IN connector of an NI-RFSA system. - - When you set this property, NI-RFSA calculates appropriate attenuator settings based on the value of this property and the value of the :py:attr:`nirfsa.Session.reference_level` property. In this case, NI-RFSA interprets the reference level as the maximum expected power level of the signal at the input of the external gain device. For more information about attenuation, refer to the *Attenuation and Signal Levels* topic for your device in the *NI RF Vector Signal Analyzers Help*. - - ---- - **Note** - For the PXIe-5820, this property specifies the gain, in dB, of a switch (or cable) connected before the IQ IN connector. - - ---- - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - ---- - - With this property set, NI-RFSA reads the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_level` property value as the power level at the input of the external gain device at which the NI-RFSA device should trigger. - - Negative values indicate attenuation. - - **Valid Values**: INF to +INF - - **Units**: dB - - **Default Value**: 0 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:External Gain (dB)** - - C Attribute: **NIRFSA_ATTR_EXTERNAL_GAIN** - -fetch_offset ------------- - - .. py:attribute:: fetch_offset - - Specifies the offset relative to the position specified by the :py:attr:`nirfsa.Session.fetch_relative_to` property from which to start fetching data. - - Offset can be a positive or negative value. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Fetch:Fetch Offset** - - C Attribute: **NIRFSA_ATTR_FETCH_OFFSET** - -fetch_relative_to ------------------ - - .. py:attribute:: fetch_relative_to - - Specifies the reference location within the acquired record from which to begin fetching. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +============================================================+=============================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.FetchRelativeTo.MOST_RECENT_SAMPLE` | Fetching occurs relative to the most recently acquired data. The value of the :py:attr:`nirfsa.Session.fetch_offset` property must be negative. | - +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.FetchRelativeTo.FIRST_SAMPLE` | Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. | - +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.FetchRelativeTo.REFERENCE_TRIGGER` | Fetching occurs relative to the Reference Trigger. This value behaves like :py:data:`~nirfsa.FetchRelativeTo.FIRST_SAMPLE` if no Reference Trigger is configured. | - +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.FetchRelativeTo.FIRST_PRETRIGGER_SAMPLE` | Fetching occurs relative to the first pretrigger sample acquired. | - +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.FetchRelativeTo.CURRENT_READ_POSITION` | Fetching occurs after the last fetched sample. | - +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.FetchRelativeTo | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Fetch:Fetch Relative To** - - C Attribute: **NIRFSA_ATTR_FETCH_RELATIVE_TO** - -fft_size --------- - - .. py:attribute:: fft_size - - Returns the size of the fast Fourier transform (FFT). - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:FFT Size** - - C Attribute: **NIRFSA_ATTR_FFT_SIZE** - -fft_width ---------- - - .. py:attribute:: fft_width - - Specifies the FFT width of the device. - - The FFT width is the effective bandwidth of the signal path during each signal acquisition. - - ---- - **Note** - The maximum FFT width when using the PXIe-5622 is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. The maximum FFT width when using thing PXIe-5624 is constrained to 400 MHz or 765 MHz, depending on the digitizer configuration. - - ---- - - ---- - **Note** - You can use the :py:attr:`nirfsa.Session.fft_width` property with in-band retuning. For more information about in-band retuning, refer to the :py:attr:`nirfsa.Session.downconverter_center_frequency` property. - - ---- - - NI-RFSA treats the *device instantaneous bandwidth* as the effective real-time bandwidth of the signal path. The *span* specifies the frequency range of the computed spectrum. An RF vector signal analyzer can acquire a bandwidth only within the device instantaneous bandwidth frequency. If the span you choose is greater than the device instantaneous bandwidth, NI-RFSA obtains multiple acquisitions and combines them into a single spectrum. By specifying the FFT width, you can control the specific bandwidth obtained in each signal acquisition. If you read the :py:attr:`nirfsa.Session.fft_width` property without setting it, NI-RFSA returns the value of the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property. - - **Valid Values**: - - The lower limit for all FFT width supported devices using the PXIe-5622 IF digitizer is 7.325 kHz. The lower limit for all FFT width supported devices using the PXIe-5624 IF digitizer is 400 MHz or 800 MHz, depending on the FPGA image that is downloaded upon opening the session to the PXIe-5624 IF digitizer. - - **PXIe-5663/5663E**: The FFT width upper limit for the PXIe-5663/5663E depends on the downconverter center frequency and on the module revision of the PXIe-5601 as illustrated in the following table. Refer to the `Identifying Module Revision `_ topic for more information about determining which revision of the PXIe-5601 RF downconverter you have installed. - - **PXIe-5665/5667/5668**: The upper limit of the FFT width is the maximum device instantaneous bandwidth. - - ---- - **Note** - - ---- - - ---- - **Note** - At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector enabled. The :py:attr:`nirfsa.Session.fft_width` property can override the typical bandwidth of the PXIe-5605 up to 57 MHz using an external digitizer and up to 50 MHz or 25 MHz depending on the PXIe-5622 digitizer option you purchased. The increase in bandwidth results in faster signal acquisitions, but amplitude accuracy is decreased for spectrum acquisitions, and magnitude and phase accuracy is decreased for I/Q acquisitions. National Instruments does not guarantee device specifications if you set the :py:attr:`nirfsa.Session.fft_width` property greater than the warranted instantaneous bandwidth specification. - - ---- - - ---- - **Note** - When using the PXIe-5606, the 765 MHz IF filter is only available at center frequencies of 3.6 GHz and above. - - ---- - - **Default Value**: N/A - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668 - - +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | Downconverter Center Frequency | PXIe-5601 Instantaneous Bandwidth | FFT Width Upper Limit | - +===============================================================================================================================================================================================================+===================================+====================================================================+ - | 10 MHz to <120 MHz | 10 MHz | 10 MHz (Revision E), 20 MHz< sup >* < /sup> (Revision G or later) | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | 120 MHz to <330 MHz | 20 MHz | 20 MHz (Revision E), 30 MHz< sup > * < /sup> (Revision G or later) | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | 330 MHz to <6.6 GHz | 50 MHz | 50 MHz | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | * < / sup >National Instruments does not guarantee device specifications if you set the :py:attr:`nirfsa.Session.fft_width` property greater than the warranted instantaneous bandwidth specification. | | | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:FFT Width** - - C Attribute: **NIRFSA_ATTR_FFT_WIDTH** - -fft_window_shape_factor ------------------------ - - .. py:attribute:: fft_window_shape_factor - - Returns the shape factor of the window used in the fast Fourier transform (FFT). - - The window shape factor is defined as the ratio of the 60 dB to 6 dB bandwidths. - - The following table shows the shape factor for each NI-RFSA FFT window type. - - | Window Type | Shape Factor | - |:-----------------------|:-------------| - | Uniform | 1.57:1 | - | Hanning | 1.94:1 | - | Hamming | 2.13:1 | - | Exact Blackman | 2.52:1 | - | Flat Top | 2.0:1 | - | 4-term Blackman-Harris | 2.5:1 | - | 7-term Blackman-Harris | 4.1:1 | - | Low Side Lobe | 2.78:1 | - | Gaussian | 2.3:1 | - | Kaiser Bessel | 2.55:1 | - - **Default Value**: N/A - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:FFT Window Shape Factor** - - C Attribute: **NIRFSA_ATTR_FFT_WINDOW_SHAPE_FACTOR** - -fft_window_size ---------------- - - .. py:attribute:: fft_window_size - - Returns the size of the window used in the fast Fourier transform (FFT), in terms of the number of samples in the window. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:FFT Window Size** - - C Attribute: **NIRFSA_ATTR_FFT_WINDOW_SIZE** - -fft_window_type ---------------- - - .. py:attribute:: fft_window_type - - Specifies the time-domain window type. - - **Default Values**: - - **PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: :py:data:`~nirfsa.SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS` - - **PXIe-5667**: :py:data:`~nirfsa.SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Resolution Bandwidth `_ - - **Defined Values**: - - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==================================================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.SpectrumFftWindowType.UNIFORM` | No window is applied. | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.HANNING` | The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.HAMMING` | A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.BLACKMAN_HARRIS` | A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.EXACT_BLACKMAN` | An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.BLACKMAN` | A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.FLAT_TOP` | The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS` | A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS` | A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.LOW_SIDE_LOBE` | The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.GAUSSIAN` | A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumFftWindowType.KAISER_BESSEL` | A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind | - +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.SpectrumFftWindowType | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:FFT Window Type** - - C Attribute: **NIRFSA_ATTR_FFT_WINDOW_TYPE** - -fixed_group_delay_across_ports ------------------------------- - - .. py:attribute:: fixed_group_delay_across_ports - - Specifies a comma-separated list of ports for which to fix the group delay. - - **Valid Values**: - - PXIe-5831/5832: rf<0-1>/port, where 0-1 indicates one (0) or two (1) mmRH-5582 connections and x is the port number on the mmRH-5582 front panel. - - **Default Value**: - - PXIe-5831/5832: (empty string), which specifies that the group delay will not be fixed for any port. - - **Supported Devices**: PXIe-5831/5832 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read-write | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Fixed Group Delay Across Ports** - - C Attribute: **NIRFSA_ATTR_FIXED_GROUP_DELAY_ACROSS_PORTS** - -fpga_bitfile_path ------------------ - - .. py:attribute:: fpga_bitfile_path - - Returns a string containing the path to the location of the current NI-RFSA instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. - - You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the :py:meth:`nirfsa.Session.__init__` method. - - NI-RFSA instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the device FPGA while maintaining the functionality of the NI-RFSA instrument driver. - - Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about using NI-RFSA instrument driver FPGA extensions for NI devices. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:FPGA Bitfile Path** - - C Attribute: **NIRFSA_ATTR_FPGA_BITFILE_PATH** - -fpga_target_name ----------------- - - .. py:attribute:: fpga_target_name - - Returns a string containing the name of the FPGA target being used. - - This name can be used with the RIO open session to open a reference to the FPGA. - - This property is channel dependent if multiple targets are supported. - - **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:FPGA Target Name** - - C Attribute: **NIRFSA_ATTR_FPGA_TARGET_NAME** - -fpga_temperature ----------------- - - .. py:attribute:: fpga_temperature - - Returns the current temperature, in degrees Celsius, of the FPGA. - - ---- - **Note** - If you query this property during RF list mode, list steps may take longer to complete during list execution. - - ---- - - **Units**: degrees Celcius - - **Default Value**: N/A - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:FPGA Temperature (Degrees C)** - - C Attribute: **NIRFSA_ATTR_FPGA_TEMPERATURE** - -frequency_settling ------------------- - - .. py:attribute:: frequency_settling - - Specifies the value used for local oscillator (LO) frequency settling. - - The units and interpretation for this scalar value are specified using the :py:attr:`nirfsa.Session.frequency_settling_units` property. This property is not supported if you are using an external LO. - - The valid values for this property depend on the :py:attr:`nirfsa.Session.frequency_settling_units` property. - - **Notes:** - 1. If the frequency settling units property is set to :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_LOCK` and the downconverter loop bandwidth property is set to narrow, NI recommends a minimum settling time of 128 microseconds to ensure that the phase-locked loop (PLL) lock stabilizes. If the downconverter loop bandwidth is set to wide, NI recommends a minimum settling time of 16 microseconds. - 2. When in RF list mode, the valid values for :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_IO` are 0 microseconds to 50 milliseconds. - 3. The valid values for this configuration depend on the module used as the LO source. Refer to the lo source property for more information. - - **Default Value**: 0.1 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 - - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | Device | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_LOCK` | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_IO` | %enum_value{frequency settling units.fsu ppm} | - +================================================================+===========================================================================================+============================================================================+===============================================+ - | PXIe-5663/5663E | 2 microseconds1 to 80 milliseconds, resolution of approximately 2 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5665/5667/5668 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01, 0.001 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5644/5645/5646 | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1.0, 0.1, 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5830/5831/5832/5840/5841/5842 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5831/5832 with PXIe-5653 (using PXIe-3622 LO)3 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5831/5832 with PXIe-5653 (using PXIe-5653 LO)3 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds, resolution of 1 microsecond | 1.0 to 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Frequency Settling** - - C Attribute: **NIRFSA_ATTR_FREQUENCY_SETTLING** - -frequency_settling_units ------------------------- - - .. py:attribute:: frequency_settling_units - - Specifies the delay duration units and interpretation for LO settling. - - Specify the actual settling value using the :py:attr:`nirfsa.Session.frequency_settling` property. This property is not supported if you are using an external LO. - - **Default Value**: :py:data:`~nirfsa.FrequencySettlingUnits.PPM` - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +--------------------------------------------------------------+-------------------------------------------------------------------+ - | Name | Description | - +==============================================================+===================================================================+ - | :py:data:`~nirfsa.FrequencySettlingUnits.PPM` | Specifies the frequency settling time in parts per million (PPM). | - +--------------------------------------------------------------+-------------------------------------------------------------------+ - | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_LOCK` | Specifies the frequency settling in time after lock (seconds). | - +--------------------------------------------------------------+-------------------------------------------------------------------+ - | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_IO` | Specifies the frequency settling time after I/O (seconds). | - +--------------------------------------------------------------+-------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.FrequencySettlingUnits | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Frequency Settling Units** - - C Attribute: **NIRFSA_ATTR_FREQUENCY_SETTLING_UNITS** - -group_capabilities ------------------- - - .. py:attribute:: group_capabilities - - Returns a list of class-extension groups that NI-RFSA implements. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Class Group Capabilities** - - C Attribute: **NIRFSA_ATTR_GROUP_CAPABILITIES** - -host_dma_buffer_size --------------------- - - .. py:attribute:: host_dma_buffer_size - - Specifies the size of the DMA buffer in computer memory, in bytes. - - To set this property, the NI-RFSA device must be in the Configuration state. - - A sufficiently large host DMA buffer improves performance by allowing large fetches to be transferred more efficiently. - - **Default Value:** 8 MB - - **Supported Devices**: PXI-5820/5830/5831/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Fetch:Data Transfer:Host DMA Buffer Size** - - C Attribute: **NIRFSA_ATTR_HOST_DMA_BUFFER_SIZE** - -if_attenuation --------------- - - .. py:attribute:: if_attenuation - - Configures the device attenuation to a value that has the actual calibrated IF attenuation closest to the desired value. - - **Valid Values**: 0 to 30 - - **Default Value**: N/A - - **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5663/5663E/5665/5667, PXIe-5693 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:NI 5663:IF Attenuation (dB)** - - C Attribute: **NIRFSA_ATTR_IF_ATTENUATION** - -if_filter_bandwidth -------------------- - - .. py:attribute:: if_filter_bandwidth - - Specifies the IF filter path bandwidth for your device configuration. - - ---- - **Note** - For composite devices, such as the PXIe-5665/5667/5668, the IF filter path bandwidth includes all IF filters across the component modules of a composite device. - - ---- - - NI-RFSA uses this property in conjunction with the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property and the :py:attr:`nirfsa.Session.digital_if_equalization_enabled` property to determine the settings for your measurement. NI-RFSA selects the next highest available filter based on the value you specify. The following table lists the IF filters available for NI devices. You may specify a higher value than your device instantaneous bandwidth if your measurement requires it, but specifying a lower value returns an error. - - **Valid Values**: - - **PXIe-5603/5605**: 0 to 80 MHz - - **PXIe-5665/5667**: 0 to 50 MHz - - **PXIe-5668**: 0 to 765 MHz - - **PXIe-5694**: 0 to 50 MHz - - ---- - **Note** - To set this property to values greater than 20 MHz, you must set the :py:attr:`nirfsa.Session.signal_conditioning_enabled` property to :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED` - - ---- - - **Default Values:** For spectrum acquisition types the default is greater than or equal to the :py:attr:`nirfsa.Session.spectrum_span` property. NI-RFSA chooses the default value of the :py:attr:`nirfsa.Session.if_filter_bandwidth` property to correspond to the appropriate IF filter. For I/Q acquisition types NI-RFSA chooses the default value corresponding to the widest IF filter possible for your equipment setup. - - **Supported Devices**: PXIe-5603/5605/5606, PXIe-5665/5667/5668, PXIe-5694 - - +--------------------------+---------------------------+-------------------+ - | Device | IF Filter Bandwidth Range | IF Filter | - +==========================+===========================+===================+ - | PXIe-5603/5665 (3.6 GHz) | 2264300 kHz | 300 kHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (3.6 GHz) | >300 kHz and 22645 MHz | Through IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (3.6 GHz) | >5 MHz | Through IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5605/5665 (14 GHz) | 2264300 kHz | 300 kHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (14 GHz) | >300 kHz and 22645 MHz | 5 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (14 GHz) | >5 MHz | Through IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | 2264300 kHz | 300 kHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >300 kHz and 22645 MHz | 5 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >5 MHz and 2264100 MHz | 100 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >100 MHz and 2264320 MHz | 320 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >320 MHz | 765 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:IF Filter Bandwidth** - - C Attribute: **NIRFSA_ATTR_IF_FILTER_BANDWIDTH** - -if_output_frequency -------------------- - - .. py:attribute:: if_output_frequency - - Returns the center frequency of the IF output signal that corresponds to the configured RF center frequency. - - The downconverter translates the RF input frequency to the IF output frequency by mixing it with the LO signal. The nominal values for the IF output frequency are shown in the following table. - - The coarse nature of the LO settings can cause the downconverter to be unable to tune to the exact LO frequency that would produce the nominal IF output frequency. Any coercion in the actual LO frequency results in the IF output frequency being slightly off from the nominal value. - - Additionally, if you use the :py:attr:`nirfsa.Session.downconverter_center_frequency` and :py:attr:`nirfsa.Session.lo_frequency` properties to program the downconverter, the IF output frequency could vary from the nominal value. NI-RFSA adjusts the acquired spectrum or I/Q data for the difference between nominal and actual IF output frequency. If you use an external digitizer with a RF downconverter, use this property to specify the actual IF output frequency. - - **Default Value**: N/A - - **Supported Devices**:PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694 - - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Downconverter | Nominal IF Output Frequency | - +===============+============================================================================================================================================================================================================================================================================================================+ - | PXI-5600 | 15 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5601 | 53 MHz or 187.5 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5603 | 187.5 MHz or 199 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5605 | 187.5 MHz, 190 MHz, or 199 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5606 | 187.5 MHz, 190 MHz, 199 MHz, 507.5 MHz, or 730 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5694 | - signal_conditioning_enabled set to SIGNAL_CONDITIONING_ENABLED and if_conditioning_down_conversion_enabled set to disabled: 193.6 MHz
- if_conditioning_down_conversion_enabled set to enabled: 21.4 MHz
- signal_conditioning_enabled set to SIGNAL_CONDITIONING_BYPASSED: 162.5 MHz to 212.5 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Advanced:IF Output Frequency** - - C Attribute: **NIRFSA_ATTR_IF_OUTPUT_FREQUENCY** - -if_output_power_level ---------------------- - - .. py:attribute:: if_output_power_level - - Specifies the level of the IF signal leaving the system, in dBm. - - Use this property to increase or decrease the nominal IF signal output level to achieve better measurement results. - - If you set the :py:attr:`nirfsa.Session.if_output_power_level` and :py:attr:`nirfsa.Session.if_output_power_level_offset` properties at the same time, NI-RFSA returns an error. - - ---- - **Note** - If you set the :py:attr:`nirfsa.Session.if_output_power_level` property to a value less than 201310 dBm, the IF output power level may be higher than the value you request. Read the value of this property to determine the configured IF output power level. - - ---- - - ---- - **Note** - The value of this property is limited by the amount of IF attenuation that the downconverter can apply, the :py:attr:`nirfsa.Session.reference_level` property, the :py:attr:`nirfsa.Session.downconverter_center_frequency` property, and the :py:attr:`nirfsa.Session.center_frequency` property or :py:attr:`nirfsa.Session.iq_carrier_frequency` property, depending on your acquisition type. - - ---- - - **Units**: dBm - - **Default Value**: - - **PXIe-5667**: -2 dBm - - **PXIe-5668**: -1 dBm - - **All other devices**: dBm - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:IF Output Power Level (dBm)** - - C Attribute: **NIRFSA_ATTR_IF_OUTPUT_POWER_LEVEL** - -if_output_power_level_offset ----------------------------- - - .. py:attribute:: if_output_power_level_offset - - Specifies the number of dB by which to adjust the default IF output power level. - - This property does not depend on absolute IF output power levels, so you can use it to adjust the IF output power level on all NI-RFSA devices without knowing the exact default value. Use this property to increase or decrease the nominal output level to achieve better measurement results. The default value for the offset is 0 dB. - - If you set the :py:attr:`nirfsa.Session.if_output_power_level` and :py:attr:`nirfsa.Session.if_output_power_level_offset` properties at the same time, NI-RFSA returns an error. - - **Units**: dB - - **Default Value**: 0 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:IF Output Power Level Offset (dB)** - - C Attribute: **NIRFSA_ATTR_IF_OUTPUT_POWER_LEVEL_OFFSET** - -input_isolation_enabled ------------------------ - - .. py:attribute:: input_isolation_enabled - - Specifies whether input isolation is enabled. - - Enabling this property isolates the input signal at the RF IN connector on the RF downconverter from the rest of the RF downconverter signal path. Disabling this property reintegrates the input signal into the RF downconverter signal path. - - ---- - **Note** - If you enable input isolation for your device, the device impedance is changed from the characteristic 50 impedance. A change in the device impedance may also cause a VSWR value higher than the device specifications. - - ---- - - For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. - - **Default Value**: :py:data:`~nirfsa.InputIsolationEnabled.DISABLED`, if the device configuration is supported. - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 - - **Defined Values**: - - +---------------------------------------------------+---------------------------+ - | Name | Description | - +===================================================+===========================+ - | :py:data:`~nirfsa.InputIsolationEnabled.DISABLED` | Disables input isolation. | - +---------------------------------------------------+---------------------------+ - | :py:data:`~nirfsa.InputIsolationEnabled.ENABLED` | Enables input isolation. | - +---------------------------------------------------+---------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.InputIsolationEnabled | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Input Isolation Enabled** - - C Attribute: **NIRFSA_ATTR_INPUT_ISOLATION_ENABLED** - -input_port ----------- - - .. py:attribute:: input_port - - Specifies the connector(s) to use to acquire the signal. - - To set this property, the NI-RFSA device must be in the Configuration state. - - **Default Values**: - - **PXIe-5820**: :py:data:`~nirfsa.InputPort.IQ_IN` - - **All other devices**: :py:data:`~nirfsa.InputPort.RF_IN` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------------------------------------+---------------------------------------------------------------------------------+ - | Name | Description | - +=====================================+=================================================================================+ - | :py:data:`~nirfsa.InputPort.RF_IN` | Enables the RF IN port. | - +-------------------------------------+---------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.InputPort.IQ_IN` | Enables the I/Q IN port. | - +-------------------------------------+---------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.InputPort.CAL_IN` | Enables the CAL IN port. | - +-------------------------------------+---------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.InputPort.I_ONLY` | Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. | - +-------------------------------------+---------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | enums.InputPort | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Input Port** - - C Attribute: **NIRFSA_ATTR_INPUT_PORT** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - Returns a string that contains the firmware revision information for the NI-RFSA downconverter for the composite device you are currently using. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - ---- - **Note** - PXIe-5820/5830/5831/5832/5840/5841/5842/5860 devices will return "No revision information available." To retrieve the firmware revision, use MAX, Hardware Configuration Utility, or NI System Configuration API. - - ---- - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** - - C Attribute: **NIRFSA_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - Returns a string that contains the name of the manufacturer for the NI-RFSA device you are currently using. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** - - C Attribute: **NIRFSA_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - Returns a string that contains the model number or name of the NI-RFSA device that you are currently using. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** - - C Attribute: **NIRFSA_ATTR_INSTRUMENT_MODEL** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Indicates the resource name NI-RFSA uses to identify the physical device. - - If you initialize NI-RFSA with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. - - If you initialize NI-RFSA with the resource name, this property contains that value. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** - - C Attribute: **NIRFSA_ATTR_IO_RESOURCE_DESCRIPTOR** - -iq_carrier_frequency --------------------- - - .. py:attribute:: iq_carrier_frequency - - Specifies the expected carrier frequency of the incoming signal for demodulation. - - The NI-RFSA device tunes to this frequency. NI-RFSA may coerce this value based on hardware settings and the RF downconverter specifications. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - ---- - - **Units**: hertz (Hz) - - **Default Values**: - - **PXIe-5644/5645/5646, PXIe-5840/5841/5860, PXIe-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options)**: 1 GHz - - **PXIe-5842 (4 GHz bandwidth option) using the Standard personality**: 1 GHz - - **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 6.5 GHz - - **PXIe-5820**: 0 Hz - - **PXIe-5830/5831/5832**: 6.5 GHz - - **All other devices**: 100 MHz - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Carrier Wave `_ - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureIqCarrierFrequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:IQ Carrier Frequency** - - C Attribute: **NIRFSA_ATTR_IQ_CARRIER_FREQUENCY** - -iq_in_port_carrier_frequency ----------------------------- - - .. py:attribute:: iq_in_port_carrier_frequency - - Configures the frequency of the signal. - - The onboard signal processing (OSP) frequency shifts the signal at this frequency to baseband prior to acquiring it. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the RF ports. - - ---- - - **Valid Values**: - - **PXIe-5645**: -60 MHz to +60 MHz - - **PXIe-5820**: -500 MHz to +500 MHz - - **Default Value**: 0 - - **Supported Devices**: PXIe-5645, PXIe-5820 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Carrier Frequency** - - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_CARRIER_FREQUENCY** - -iq_in_port_temperature ----------------------- - - .. py:attribute:: iq_in_port_temperature - - Returns the temperature of the I/Q IN circuitry on the device. - - **Units:** degrees C - - **Supported Devices:** PXIe-5645, PXIe-5820 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Temperature (Degrees C)** - - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_TEMPERATURE** - -iq_in_port_terminal_configuration ---------------------------------- - - .. py:attribute:: iq_in_port_terminal_configuration - - Configures the terminal configuration of the I/Q port. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the RF ports. - - ---- - - **PXIe-5820**: The only valid value for this property is :py:data:`~nirfsa.IqInPortTerminalConfiguration.DIFFERENTIAL`. - - **Default Value**: :py:data:`~nirfsa.IqInPortTerminalConfiguration.DIFFERENTIAL` - - **Supported Devices:** PXIe-5645, PXIe-5820 - - **Defined Values**: - - +---------------------------------------------------------------+--------------------------------------------------+ - | Name | Description | - +===============================================================+==================================================+ - | :py:data:`~nirfsa.IqInPortTerminalConfiguration.DIFFERENTIAL` | Sets the terminal configuration to differential. | - +---------------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nirfsa.IqInPortTerminalConfiguration.SINGLE_ENDED` | Sets the terminal configuration to single-ended. | - +---------------------------------------------------------------+--------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------+ - | Characteristic | Value | - +=======================+=====================================+ - | Datatype | enums.IqInPortTerminalConfiguration | - +-----------------------+-------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Terminal Configuration** - - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_TERMINAL_CONFIGURATION** - -iq_in_port_vertical_range -------------------------- - - .. py:attribute:: iq_in_port_vertical_range - - Specifies the voltage range for the I/Q terminals. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - The voltage range in differential terminal configuration is configurable from 2 Vpk-pk to 0.032 Vpk-pk in 1 dB steps. In single-ended terminal configuration, valid ranges are half those for differential. Values are always coerced up to the next valid range. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the RF ports. - - ---- - - **Valid Values:** - - **PXIe-5645**: 0 Vpk-pk to 2 Vpk-pk for differential terminal configuration, 0 Vpk-pk to 1 Vpk-pk for single-ended terminal configuration. - - **PXIe-5820**: 0 Vpk-pk to 4 Vpk-pk for differential terminal configuration. - - **Default Value**: 2 Vpk-pk - - **Supported Devices:** PXIe-5645, PXIe-5820 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Vertical Range** - - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_VERTICAL_RANGE** - -iq_power_edge_ref_trigger_level -------------------------------- - - .. py:attribute:: iq_power_edge_ref_trigger_level - - Specifies the power level, in dBm, at which the device triggers. - - The device asserts the trigger when the signal crosses the level specified by the value of this property, taking into consideration the specified slope. If you are using external gain, refer to the :py:attr:`nirfsa.Session.external_gain` property for more information about how this property affects the I/Q power edge trigger level. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:IQ Power Edge:Level** - - C Attribute: **NIRFSA_ATTR_IQ_POWER_EDGE_REF_TRIGGER_LEVEL** - -iq_power_edge_ref_trigger_slope -------------------------------- - - .. py:attribute:: iq_power_edge_ref_trigger_slope - - Specifies whether the device asserts the trigger when the signal power is rising or falling. - - When you set the :py:attr:`nirfsa.Session.ref_trigger_type` property to :py:data:`~nirfsa.ReferenceTriggerType.IQ_POWER_EDGE`, the device asserts the trigger when the signal power exceeds the specified level with the slope you specify. - - **Default Value**: :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` - - **Defined Values**: - - +-------------------------------------------------------------+-------------------------------------------------------+ - | Name | Description | - +=============================================================+=======================================================+ - | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` | The trigger asserts when the signal power is rising. | - +-------------------------------------------------------------+-------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.FALLING` | The trigger asserts when the signal power is falling. | - +-------------------------------------------------------------+-------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------------+ - | Characteristic | Value | - +=======================+========================================+ - | Datatype | enums.ReferenceTriggerIqPowerEdgeSlope | - +-----------------------+----------------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:IQ Power Edge:Slope** - - C Attribute: **NIRFSA_ATTR_IQ_POWER_EDGE_REF_TRIGGER_SLOPE** - -iq_power_edge_ref_trigger_source --------------------------------- - - .. py:attribute:: iq_power_edge_ref_trigger_source - - Specifies the channel from which the device monitors the trigger. - - NI-RFSA currently supports only 0 as the value of this property. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:IQ Power Edge:Source** - - C Attribute: **NIRFSA_ATTR_IQ_POWER_EDGE_REF_TRIGGER_SOURCE** - -iq_rate -------- - - .. py:attribute:: iq_rate - - Specifies the I/Q rate for the acquisition. - - The value is expressed in samples per second (S/s). - - Refer to the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property for more information about device specific instantaneous bandwidth limits. You can also refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth device specifications. - - ---- - **Note** - For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. At I/Q rates above 50 MS/s, the dither noise can affect phase coherency performance and leak into the lower frequencies and the upper frequencies of the IF passband. Refer to the :py:attr:`nirfsa.Session.digitizer_dither_enabled` property for more information about dithering. - - For the PXIe-5663/5663E/5665/5667, when you set the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property to :py:data:`~nirfsa.NIRFSA_VAL_ONBOARD_CLOCK`, the downconverter instantaneous bandwidth is greater than or equal to the coerced I/Q rate times 0.8. For the PXIe-5665, the actual signal bandwidth is further limited by the combination of the chosen IF filter and anti-aliasing filter. - - ---- - - **PXI-5661**: You should not need to configure an I/Q rate higher than 25 megasamples per second (MS/s) because the PXI-5600 RF downconverter bandwidth is 20 MHz. If you configure a higher I/Q rate, you may see aliasing effects at negative frequencies because the IF frequency of the PXI-5600 is 15 MHz. - - **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the I/Q carrier frequency you use. Refer to the `PXIe-5601 RF downconverter overview `_ for more information about instantaneous bandwidth. - - **PXIe-5665**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency if you have enabled the preselector (YIG-tuned filter). - - **PXIe-5667**: Your maximum allowed instantaneous bandwidth depends on the selected [RF preselector filter](:py:attr:`nirfsa.Session.RF_PRESELECTOR_FILTER`.html) and whether the preselector on the [RF downconverter](:py:attr:`nirfsa.Session.PRESELECTOR_ENABLED`.html) is enabled. - - **PXIe-5668**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use and whether or not you enable the highpass filter or preselector (YIG-tuned filter). - - **Units**: S/s - - **Default Values:** - - **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 5 GS/s only. - - **All Other Devices**: 1 MS/s - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureIqRate` - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:IQ Rate (S/s)** - - C Attribute: **NIRFSA_ATTR_IQ_RATE** - -lo2_export_enabled ------------------- - - .. py:attribute:: lo2_export_enabled - - Specifies whether to enable the LO2 OUT terminal on the installed devices. - - Set this property to TRUE to export the 4 GHz LO signal from the device LO2 IN terminal to the LO2 OUT terminal. - - You can also export the LO2 signal by setting the :py:attr:`nirfsa.Session.lo_export_enabled` property and the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property. - - | Value | Description | - |:------|:-------------------------------| - | True | Enables the LO2 OUT terminal. | - | False | Disables the LO2 OUT terminal. | - - **Default Value:** False - - **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5668 - - **Defined Values**: - - +----------------------------------------------+----------------------+ - | Name | Description | - +==============================================+======================+ - | :py:data:`~nirfsa.Lo2ExportEnabled.DISABLED` | Disables LO2 export. | - +----------------------------------------------+----------------------+ - | :py:data:`~nirfsa.Lo2ExportEnabled.ENABLED` | Enables LO2 export. | - +----------------------------------------------+----------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.Lo2ExportEnabled | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:LO2 Export Enabled** - - C Attribute: **NIRFSA_ATTR_LO2_EXPORT_ENABLED** - -load_configurations_from_file_reset_options -------------------------------------------- - - .. py:attribute:: load_configurations_from_file_reset_options - - Specifies the configurations to skip to reset while loading configurations from a file. - - **Default Value:** :py:data:`~nirfsa.NIRFSA_VAL_SKIP_NONE` - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------------------------------------------+--------------------------------------------------+ - | Name | Description | - +=====================================================================+==================================================+ - | :py:data:`~nirfsa.LoadConfigurationResetOptions.NONE` | NI-RFSA resets all configurations. | - +---------------------------------------------------------------------+--------------------------------------------------+ - | :py:data:`~nirfsa.LoadConfigurationResetOptions.DEEMBEDDING_TABLES` | NI-RFSA skips resetting the de-embedding tables. | - +---------------------------------------------------------------------+--------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------+ - | Characteristic | Value | - +=======================+=====================================+ - | Datatype | enums.LoadConfigurationResetOptions | - +-----------------------+-------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Load Configurations:Reset Options** - - C Attribute: **NIRFSA_ATTR_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS** - -logical_name ------------- - - .. py:attribute:: logical_name - - Contains the logical name you specified when opening the current IVI session. - - You may pass a logical name to the :py:meth:`nirfsa.Session.Init` method or the :py:meth:`nirfsa.Session.__init__` method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NIRFSA_ATTR_LOGICAL_NAME** - -lo_export_enabled ------------------ - - .. py:attribute:: lo_export_enabled - - Specifies whether to enable the LO OUT terminals on the installed devices. - - **PXIe-5601**: The only valid value for this property is True. - - **PXIe-5603/5605/5606**: If you want to daisy-chain multiple devices together using the same LO source, set this property to TRUE to export the LO input signals on the LO1 IN, LO2 IN, and LO3 IN terminals to LO1 OUT, LO2 OUT, and LO3 OUT, respectively. - - **PXIe-5694**: You can enable this property only if you set the :py:attr:`nirfsa.Session.lo_source` property to :py:data:`~nirfsa.LoSource.LO_IN`, or if you set the :py:attr:`nirfsa.Session.lo_source` property to :py:data:`~nirfsa.LoSource.ONBOARD` and the :py:attr:`nirfsa.Session.IF_CONDITIONING_DOWN_CONVERSION_ENABLED` property to :py:data:`~nirfsa.NIRFSA_VAL_ENABLED`. - - **PXIe-5830/5831**: To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_boolean` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). - - ---- - **Note** - If you are sharing an LO for the PXIe-5830/5831/5832 between an NI-RFSA and NI-RFSG session, ensure both sessions use the same shared setting. - - ---- - - **Defined Values:** - - | Value | Description | - |:---------|:-------------------------------| - | True | Enables the LO OUT terminals. | - | False | Disables the LO OUT terminals. | - - **Default Values**: - - **PXIe-5601, PXIe-5663/5663E**: True - - **PXIe-5603/5605/5606, PXIe-5644/5645/5646, PXIe-5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842**: False - - **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_export_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_export_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:LO Export Enabled** - - C Attribute: **NIRFSA_ATTR_LO_EXPORT_ENABLED** - -lo_frequency ------------- - - .. py:attribute:: lo_frequency - - Specifies the LO signal frequency for the configured center frequency. - - If you are using the NI RF vector signal analyzer with an external LO, use this property to specify the LO frequency that the external LO source passes into the LO IN or LO1 IN connector on the RF downconverter front panel. If you are using an external LO, reading the value of this property after configuring the rest of the parameters returns the LO frequency needed by the device. - - Set this property to the actual LO frequency because NI-RFSA corrects for any difference between expected and actual LO frequencies. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Values**: - - **PXIe-5694**: 215 MHz - - **All other devices**: 0 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Configuration `_ - - `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ - - `PXIe-5841 Frequency and Bandwidth Configuration `_ - - - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_frequency` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:LO Frequency** - - C Attribute: **NIRFSA_ATTR_LO_FREQUENCY** - -lo_frequency_step_size ----------------------- - - .. py:attribute:: lo_frequency_step_size - - Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). - - You can only tune the LO frequency by multiples of the :py:attr:`nirfsa.Session.lo_frequency_step_size` property. For the PXIe-5644/5645/5646 and PXIe-5840/5841, the LO frequency can therefore be offset from the requested center frequency by as much as half of the :py:attr:`nirfsa.Session.lo_frequency_step_size` property. This offset is corrected by digitally frequency shifting the :py:attr:`nirfsa.Session.lo_frequency` property to the value requested in either the :py:attr:`nirfsa.Session.iq_carrier_frequency` property or the :py:attr:`nirfsa.Session.center_frequency` property. - - ---- - **Note** - For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. - - ---- - - The valid values for this property depend on the :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property. - - **PXIe-5644/5645/5646**: If the :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`, the specified value is coerced to the closest valid value. - - **PXIe-5840/5841/5842**: If the :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. - - * Values up to 100 MHz are coerced to 50 MHz. - - ---- - **Note** - The default value for the PXIe-5831 depends on the frequency range of the selected port for your instrument configuration. Refer to the `Instrument Configurations `_ topic for more information about available ports for your hardware configuration. - - ---- - - **Default Values:** - - **PXIe-5644/5645/5646:** 200 kHz - - **PXIe-5830:** 2 MHz - - **PXIe-5831/5832 (RF port):** 8 MHz - - **PXIe-5831/5832 (IF port):** 2 MHz, 4 MHz - - **PXIe-5840/5841:** - - - Fractional mode: 500 kHz - - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. - - **PXIe-5841 with PXIe-5655:** 500 kHz - - **PXIe-5842:** 1 Hz - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - +----------------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ - | lo_pll_fractional_mode_enabled | PXIe-5644/5645 | PXIe-5646 | PXIe-5840/5841 | PXIe-5830/5831/5832 | PXIe-5841 w/PXIe-5655 | - +========================================+=====================================+==============================+===============================================+============================================+=======================+ - | :py:data:`~nirfsa.NIRFSA_VAL_ENABLED` | 50 kHz to 24 MHz | 50 kHz to 25 MHz | 50 kHz to 100 MHz | LO1: 8 Hz to 400 MHz - LO2: 4 kHz to 400 MHz | 1 nHz to 50 MHz | - +----------------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ - | :py:data:`~nirfsa.NIRFSA_VAL_DISABLED` | 4 MHz, 5 MHz, 6 MHz, 12 MHz, 24 MHz | 2 MHz, 5 MHz, 10 MHz, 25 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, 100 MHz | LO1: -- - LO2: -- | 1 nHz to 50 MHz | - +----------------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Frequency Step Size (Hz)** - - C Attribute: **NIRFSA_ATTR_LO_FREQUENCY_STEP_SIZE** - -lo_injection_side ------------------ - - .. py:attribute:: lo_injection_side - - Specifies the LO injection side. - - **PXIe-5601/5663/5663E**: For frequencies below 517.5 MHz or above 6.4125 GHz, the LO injection side is fixed and NI-RFSA returns an error if you specify the incorrect value. If you do not configure this property, NI-RFSA selects the default LO injection side based on the downconverter center frequency. Reset this property to return to automatic behavior. - - **PXIe-5603/5605/5665 (3.6 GHz)/5667 (3.6 GHz)**: Setting this property to :py:data:`~nirfsa.LoInjection.LOW` is not supported for this device. - - **PXIe-5605/5665 (14 GHz)/5667 (7 GHz)**: Setting this property to :py:data:`~nirfsa.LoInjection.LOW` is supported for this device for frequencies greater than 4 GHz, but this configuration is not calibrated, and device specifications are not guaranteed. - - **PXIe-5606/5668**: Setting this property to :py:data:`~nirfsa.LoInjection.LOW` is supported for certain frequencies in high band, varying by final IF frequency. This configuration is not calibrated and device specifications are not guaranteed. - - **Default Values**: - - **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies < 3.0 GHz)**: :py:data:`~nirfsa.LoInjection.HIGH` - - **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies 3.0 GHz)**: :py:data:`~nirfsa.LoInjection.LOW` - - **PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668**: :py:data:`~nirfsa.LoInjection.HIGH` - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 - - **Defined Values**: - - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=====================================+=====================================================================================================================================================================================================+ - | :py:data:`~nirfsa.LoInjection.HIGH` | Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.LoInjection.LOW` | Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.LoInjection | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:LO Injection Side** - - C Attribute: **NIRFSA_ATTR_LO_INJECTION_SIDE** - -lo_in_power ------------ - - .. py:attribute:: lo_in_power - - Returns the power level, in dBm, expected at the LO IN terminal when the :py:attr:`nirfsa.Session.lo_source` property is set to :py:data:`~nirfsa.LoSource.LO_IN`. - - ---- - **Note** - For the PXIe-5644/5645/5646, this property is always read-only. - - ---- - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO In Power (dBm)** - - C Attribute: **NIRFSA_ATTR_LO_IN_POWER** - -lo_out_export_configure_from_rfsg ---------------------------------- - - .. py:attribute:: lo_out_export_configure_from_rfsg - - Specifies whether to allow NI-RFSG to control the NI-RFSA LO out export. - - Set this property to :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.ENABLED` to allow NI-RFSG to control the LO out export. Use the NIRFSG ATTR RF IN LO EXPORT ENABLED property to control the NI-RFSA LO out export from NI-RFSG. - - **Default Value:** :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.DISABLED` - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +----------------------------------------------------------+----------------------------------------------------------------------+ - | Name | Description | - +==========================================================+======================================================================+ - | :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.DISABLED` | Do not allow NI-RFSG to control the NI-RFSA local oscillator export. | - +----------------------------------------------------------+----------------------------------------------------------------------+ - | :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.ENABLED` | Allow NI-RFSG to control the NI-RFSA local oscillator export. | - +----------------------------------------------------------+----------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------+ - | Characteristic | Value | - +=======================+====================================+ - | Datatype | enums.LoOutExportConfigureFromRfsg | - +-----------------------+------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:LO Out Export Configure From RFSG** - - C Attribute: **NIRFSA_ATTR_LO_OUT_EXPORT_CONFIGURE_FROM_RFSG** - -lo_out_power ------------- - - .. py:attribute:: lo_out_power - - Specifies the power level, in dBm, of the signal at the LO OUT terminal when the :py:attr:`nirfsa.Session.lo_export_enabled` property is set to True. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Units:** dBm - - **Supported Devices:** PXIe-5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_out_power` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_out_power` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Out Power (dBm)** - - C Attribute: **NIRFSA_ATTR_LO_OUT_POWER** - -lo_pll_fractional_mode_enabled ------------------------------- - - .. py:attribute:: lo_pll_fractional_mode_enabled - - Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). - - Fractional mode gives a finer frequency step resolution, but it may result in non harmonic spurs. Refer to the device specifications for your device for more information about fractional mode and non harmonic spurs. - - ---- - **Note** - The :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property is applicable only when using the internal LO. - - ---- - - ---- - **Note** - For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. - - ---- - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value**: :py:data:`~nirfsa.LoPllFractionalModeEnabled.ENABLED` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +--------------------------------------------------------+------------------------------------------+ - | Name | Description | - +========================================================+==========================================+ - | :py:data:`~nirfsa.LoPllFractionalModeEnabled.DISABLED` | Disables fractional mode for the LO PLL. | - +--------------------------------------------------------+------------------------------------------+ - | :py:data:`~nirfsa.LoPllFractionalModeEnabled.ENABLED` | Enables fractional mode for the LO PLL. | - +--------------------------------------------------------+------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.LoPllFractionalModeEnabled | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | los | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO PLL Fractional Mode Enabled** - - C Attribute: **NIRFSA_ATTR_LO_PLL_FRACTIONAL_MODE_ENABLED** - -lo_source ---------- - - .. py:attribute:: lo_source - - Specifies the LO signal source used to downconvert the RF input signal. - - If no signal downconversion is required, this property is ignored. If this property is set to "" (empty string), NI-RFSA uses the internal LO source. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_string` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). - - ---- - **Note** - For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to :py:data:`~nirfsa.LoSource.LO_SOURCE_SG_SA_SHARED`. - - ---- - - - - - **Default Value**: :py:data:`~nirfsa.LoSource.ONBOARD` ("Onboard") - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ - `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ - - **Defined Values**: - - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================================+===================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.LoSource.ONBOARD` | Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.LoSource.LO_IN` | Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.LoSource.LO_SOURCE_SECONDARY` | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.LoSource.LO_SOURCE_SG_SA_SHARED` | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_source` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_source` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.LoSource | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | los | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:LO Source** - - C Attribute: **NIRFSA_ATTR_LO_SOURCE** - -lo_temperature --------------- - - .. py:attribute:: lo_temperature - - Returns the current temperature, in degrees Celsius, of the LO module. - - **PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668** This property is not supported if you are using an external LO. - - **PXIe-5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:LO Temperature (Degrees C)** - - C Attribute: **NIRFSA_ATTR_LO_TEMPERATURE** - -lo_vco_frequency_step_size --------------------------- - - .. py:attribute:: lo_vco_frequency_step_size - - Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. - - ---- - **Note** - Do not set this property with the :py:attr:`nirfsa.Session.lo_frequency_step_size` property. - - ---- - - **Valid Values**: - - LO1: 1 Hz to 50 MHz - - LO2: 1 Hz to 100 MHz - - **Default Values**: 1 MHz - - **Supported Devices**: PXIe-5830/5831/5832 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO VCO Frequency Step Size (Hz)** - - C Attribute: **NIRFSA_ATTR_LO_VCO_FREQUENCY_STEP_SIZE** - -lo_yig_main_coil_drive ----------------------- - - .. py:attribute:: lo_yig_main_coil_drive - - Adjusts the dynamics of the current driving the YIG main coil. - - ---- - **Note** - Setting this property to :py:data:`~nirfsa.LoYigMainCoilDrive.FAST` allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. This property is not supported if you are using an external LO. - - ---- - - **Default Value**: :py:data:`~nirfsa.LoYigMainCoilDrive.NORMAL` - - **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 - - **Defined Values**: - - +----------------------------------------------+------------------------------------------------------------------+ - | Name | Description | - +==============================================+==================================================================+ - | :py:data:`~nirfsa.LoYigMainCoilDrive.NORMAL` | Adjusts the YIG main coil on the LO for an underdamped response. | - +----------------------------------------------+------------------------------------------------------------------+ - | :py:data:`~nirfsa.LoYigMainCoilDrive.FAST` | Adjusts the YIG main coil on the LO for an overdamped response. | - +----------------------------------------------+------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.LoYigMainCoilDrive | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:LO YIG Main Coil Drive** - - C Attribute: **NIRFSA_ATTR_LO_YIG_MAIN_COIL_DRIVE** - -max_device_instantaneous_bandwidth ----------------------------------- - - .. py:attribute:: max_device_instantaneous_bandwidth - - Returns the maximum instantaneous bandwidth of the device. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Max Device Instantaneous Bandwidth** - - C Attribute: **NIRFSA_ATTR_MAX_DEVICE_INSTANTANEOUS_BANDWIDTH** - -max_iq_rate ------------ - - .. py:attribute:: max_iq_rate - - Returns the maximum I/Q rate. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Max IQ Rate** - - C Attribute: **NIRFSA_ATTR_MAX_IQ_RATE** - -mechanical_attenuation ----------------------- - - .. py:attribute:: mechanical_attenuation - - Specifies the level of mechanical attenuation for the RF path, in dB. - - **PXIe-5667**: This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. - - **PXIe-5668with PXIe-5698**: This property is read-only when the :py:attr:`nirfsa.Session.rf_preamp_enabled` property is set to :py:data:`~nirfsa.EnableRfPreamp.ENABLED`. - - **Units**: dB - - **Valid Values:** - - **PXIe-5601/5663/5663E**: 0, 16 - - **PXIe-5603/5665 (3.6 GHz)**: 0, 10, 20, 30 - - **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 10, 20, 30 - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 0 - - **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 - - **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 0 - - **PXIe-5668 with PXIe-5698 with the** :py:attr:`nirfsa.Session.rf_preamp_enabled` property set to :py:data:`~nirfsa.EnableRfPreamp.ENABLED`: 5 - - **Default Value**: N/A - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Mechanical Attenuation (dB)** - - C Attribute: **NIRFSA_ATTR_MECHANICAL_ATTENUATION** - -memory_size ------------ - - .. py:attribute:: memory_size - - Returns the digitizer onboard memory size, in bytes. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Memory Size** - - C Attribute: **NIRFSA_ATTR_MEMORY_SIZE** - -minimum_acpr ------------- - - .. py:attribute:: minimum_acpr - - Specifies the minimum adjacent channel power ratio (ACPR), in dB, relative to the main channel reference level. - - This property configures NI-RFSA to optimize downconverter gain to measure a lower-power adjacent channel, adding gain only after filtering the main channel. The gain NI-RFSA applies is always less than or equal to the ACPR value you specify. - - ---- - **Note** - For the PXIe-5665 (3.6 GHz), this property is supported only if you set the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth`, :py:attr:`nirfsa.Session.spectrum_span`, or :py:attr:`nirfsa.Session.if_filter_bandwidth` property to a value less than 300 kHz. For the PXIe-5665 (14 GHz), this property is supported for :py:attr:`nirfsa.Session.device_instantaneous_bandwidth`, :py:attr:`nirfsa.Session.spectrum_span`, or :py:attr:`nirfsa.Session.if_filter_bandwidth` property values less than 300 kHz by using the 300 kHz IF filter, and it is supported for values between 300 kHz and 5 MHz by using the 5 MHz IF filter. - - ---- - - ---- - **Note** - NI-RFSA coerces this property to zero for the PXI-5600, PXIe-5601 and the PXIe-5667. For all other devices, read the coerced value of this property to determine the actual amount of gain applied. - - ---- - - ---- - **Note** - For the PXIe-5668, this property alters the :py:attr:`nirfsa.Session.if_output_power_level` property. This property will not affect the :py:attr:`nirfsa.Session.reference_level` property. - - ---- - - **Default Value**: 0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Minimum Adjacent Channel Power Ratio (dB)** - - C Attribute: **NIRFSA_ATTR_MINIMUM_ACPR** - -mixer_level ------------ - - .. py:attribute:: mixer_level - - Specifies the mixer level, in dBm. - - The mixer level represents the attenuation value to apply to the input RF signal as it reaches the first mixer in the signal chain. If you do not set this property, NI-RFSA automatically selects an optimal mixer level value based on the reference level. The valid values for this property depend on your device configuration. - - If you set the :py:attr:`nirfsa.Session.mixer_level` and :py:attr:`nirfsa.Session.mixer_level_offset` properties at the same time, NI-RFSA returns an error. - - **PXIe-5601/5663/5663E**: This property is read-only. - - **PXIe-5667**: This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. - - **Units**: dBm - - **Default Values**: - - **PXI-5600/5661**: -30 - - **PXIe-5603/5605/5665/5667/5668**: -10 - - **All other devices**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Mixer Level (dBm)** - - C Attribute: **NIRFSA_ATTR_MIXER_LEVEL** - -mixer_level_offset ------------------- - - .. py:attribute:: mixer_level_offset - - Specifies the number of dB by which to adjust the device mixer level. - - The default value is 0, which specifies device settings that are the best compromise between distortion and noise. Specifying a positive value for this property configures the device for moderate distortion and low noise, and specifying a negative value results in low distortion and higher noise. - - You cannot set the :py:attr:`nirfsa.Session.mixer_level` and :py:attr:`nirfsa.Session.mixer_level_offset` properties at the same time. - - **PXIe-5667**: This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. - - **Units**: dB - - **Default Value**: 0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Mixer Level Offset (dB)** - - C Attribute: **NIRFSA_ATTR_MIXER_LEVEL_OFFSET** - -module_power_consumption ------------------------- - - .. py:attribute:: module_power_consumption - - Returns the module power consumption. - - ---- - **Note** - If you query this property during RF list mode, list steps may take longer to complete during list execution. - - ---- - - **Units**: watts - - **Default Value**: N/A - - **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Module Power Consumption (W)** - - C Attribute: **NIRFSA_ATTR_MODULE_POWER_CONSUMPTION** - -module_revision ---------------- - - .. py:attribute:: module_revision - - Returns the revision of the RF downconverter module. - - ---- - **Note** - For the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5840/5841, this property returns the revision of the VST module. For the PXIe-5830/5831/5832, this property returns the revision of the PXIe-3621/3622 - - ---- - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Module Revision** - - C Attribute: **NIRFSA_ATTR_MODULE_REVISION** - -noise_source_power_enabled --------------------------- - - .. py:attribute:: noise_source_power_enabled - - Enables the 28 V DC source on the device front panel. - - **PXIe-5668 with PXIe-5698**: When this property is set to :py:data:`~nirfsa.NoiseSourcePowerEnabled.ENABLED`, the PXIe-5698 noise source is used instead of the PXIe-5668 noise source. - - **Units**: dB - - **Default Value**: :py:data:`~nirfsa.NoiseSourcePowerEnabled.DISABLED` - - **Supported Devices**: PXIe-5606, PXIe-5668, PXIe-5698 - - **Defined Values**: - - +-----------------------------------------------------+----------------------------------+ - | Name | Description | - +=====================================================+==================================+ - | :py:data:`~nirfsa.NoiseSourcePowerEnabled.DISABLED` | Disables the noise source power. | - +-----------------------------------------------------+----------------------------------+ - | :py:data:`~nirfsa.NoiseSourcePowerEnabled.ENABLED` | Enables the noise source power. | - +-----------------------------------------------------+----------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------+ - | Characteristic | Value | - +=======================+===============================+ - | Datatype | enums.NoiseSourcePowerEnabled | - +-----------------------+-------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:5606:Noise Source Power Enabled** - - C Attribute: **NIRFSA_ATTR_NOISE_SOURCE_POWER_ENABLED** - -number_of_records ------------------ - - .. py:attribute:: number_of_records - - Specifies the number of records to acquire if the :py:attr:`nirfsa.Session.number_of_records_is_finite` property is set to True. - - **Default Value**: 1 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureNumberOfRecords` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Number Of Records** - - C Attribute: **NIRFSA_ATTR_NUMBER_OF_RECORDS** - -number_of_records_is_finite ---------------------------- - - .. py:attribute:: number_of_records_is_finite - - Specifies whether the device stops after acquiring the specified number of records or acquires records continuously. - - **Defined Values**: - - | Value | Description | - |:---------|:--------------------------------------------------------------| - | True | Acquire a finite number of records. | - | False | Acquire records continuously until you abort the acquisition. | - - **Default Value**: True - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureNumberOfRecords` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Number Of Records Is Finite** - - C Attribute: **NIRFSA_ATTR_NUMBER_OF_RECORDS_IS_FINITE** - -number_of_samples ------------------ - - .. py:attribute:: number_of_samples - - Specifies the number of samples to acquire. - - This property is valid only if the :py:attr:`nirfsa.Session.number_of_samples_is_finite` property is set to True. - - **Default Value**: 1,000 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureNumberOfSamples` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Number Of Samples** - - C Attribute: **NIRFSA_ATTR_NUMBER_OF_SAMPLES** - -number_of_samples_is_finite ---------------------------- - - .. py:attribute:: number_of_samples_is_finite - - Specifies whether the device acquires a finite number of samples or acquires continuously. - - **Defined Values**: - - | Value | Description | - |:---------|:------------------------------------------------------| - | True | Acquire a finite number of samples. | - | False | Acquire continuously until you abort the acquisition. | - - **Default Value**: True - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureNumberOfSamples` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Number Of Samples Is Finite** - - C Attribute: **NIRFSA_ATTR_NUMBER_OF_SAMPLES_IS_FINITE** - -number_of_spectral_lines ------------------------- - - .. py:attribute:: number_of_spectral_lines - - Specifies the number of spectral lines expected with the current power spectrum configuration. - - If you do not configure this property, NI-RFSA selects an appropriate value based on the :py:attr:`nirfsa.Session.resolution_bandwidth` property. If you configure this property, NI-RFSA coerces the :py:attr:`nirfsa.Session.resolution_bandwidth` value based on the number of spectral lines requested and the value of the :py:attr:`nirfsa.Session.spectrum_span` property. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Number Of Spectral Lines** - - C Attribute: **NIRFSA_ATTR_NUMBER_OF_SPECTRAL_LINES** - -osp_data_scaling_factor ------------------------ - - .. py:attribute:: osp_data_scaling_factor - - Specifies the scaling factor applied to the time-domain voltage data in the IF digitizer. - - Use this property to maximize the dynamic range of the digitizer by increasing the maximum IF power the digitizer can measure without creating OSP overflows. - - Because of the device amplitude response, some wide-band signals normally attenuated by the downconverter go through the IF digitizer without causing an ADC overflow. During IF equalization, these wide-band digitizer input signals may become amplified. These amplified input signal values overflow the available numeric range used in the signal processing algorithm. - - You can use this property when OSP calculations would generate an overflow while applying digital filters to the data. The OSP module in the digitizer multiplies the time-domain signal amplitude, in volts, by the specified property value before further onboard processing. Set this property to a value less than 1 to avoid OSP overflow for near full-scale IF signals and to use the maximum dynamic range of the digitizer. NI-RFSA compensates for the specified OSP data scaling factor to ensure that the correct scaled data, in absolute levels, is always returned regardless of the value of this property. - - **Valid Values:**: 0.25 to 1.0 - - **Default Values:** - - **PXI-5661, PXIe-5663/5663E/5665 (3.6 GHz)/5667 (3.6 GHz)/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: 1.0 - - **PXIe-5665 (14 GHz)/5667 (7 GHz)**: 0.8 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:OSP Data Scaling Factor** - - C Attribute: **NIRFSA_ATTR_OSP_DATA_SCALING_FACTOR** - -overflow_error_reporting ------------------------- - - .. py:attribute:: overflow_error_reporting - - Configures error reporting for ADC and onboard signal processing overflows. - - Overflows lead to clipping of the waveform. - - **Default Value**: :py:data:`~nirfsa.OverflowErrorReporting.WARNING` - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------------+--------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================================+========================================================================================================+ - | :py:data:`~nirfsa.OverflowErrorReporting.WARNING` | Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. | - +----------------------------------------------------+--------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.OverflowErrorReporting.DISABLED` | Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. | - +----------------------------------------------------+--------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.OverflowErrorReporting | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Overflow Error Reporting** - - C Attribute: **NIRFSA_ATTR_OVERFLOW_ERROR_REPORTING** - -phase_offset ------------- - - .. py:attribute:: phase_offset - - Specifies the offset to apply to the initial I and Q phases. - - **Valid Values**: 0 to 180 - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Phase Offset** - - C Attribute: **NIRFSA_ATTR_PHASE_OFFSET** - -power_spectrum_units --------------------- - - .. py:attribute:: power_spectrum_units - - Specifies the units of the power spectrum. - - **Default Value**: :py:data:`~nirfsa.PowerSpectrumUnits.DBM` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------------------+---------------------------------------------+ - | Name | Description | - +=====================================================+=============================================+ - | :py:data:`~nirfsa.PowerSpectrumUnits.DBM` | Units are dB with reference to 1 milliwatt. | - +-----------------------------------------------------+---------------------------------------------+ - | :py:data:`~nirfsa.PowerSpectrumUnits.VOLTS_SQUARED` | Units are in volts squared. | - +-----------------------------------------------------+---------------------------------------------+ - | :py:data:`~nirfsa.PowerSpectrumUnits.DBMV` | Units are dB with reference to 1 millivolt. | - +-----------------------------------------------------+---------------------------------------------+ - | :py:data:`~nirfsa.PowerSpectrumUnits.DBUV` | Units are dB with reference to 1 microvolt. | - +-----------------------------------------------------+---------------------------------------------+ - | :py:data:`~nirfsa.PowerSpectrumUnits.VOLTS` | Units are in volts. | - +-----------------------------------------------------+---------------------------------------------+ - | :py:data:`~nirfsa.PowerSpectrumUnits.WATTS` | Units are in watts. | - +-----------------------------------------------------+---------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.PowerSpectrumUnits | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Power Spectrum Units** - - C Attribute: **NIRFSA_ATTR_POWER_SPECTRUM_UNITS** - -preselector_present -------------------- - - .. py:attribute:: preselector_present - - Returns whether a preselector is available on the RF downconverter module. - - **Defined Values**: - - | Value | Description | - |:---------|:--------------------------------------------------| - | True | A preselector is available on the downconverter. | - | False | No preselector is available on the downconverter. | - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Preselector Present** - - C Attribute: **NIRFSA_ATTR_PRESELECTOR_PRESENT** - -ready_for_advance_event_terminal_name -------------------------------------- - - .. py:attribute:: ready_for_advance_event_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForAdvanceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerNameReadyForAdvanceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Advance:Terminal Name** - - C Attribute: **NIRFSA_ATTR_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME** - -ready_for_ref_event_terminal_name ---------------------------------- - - .. py:attribute:: ready_for_ref_event_terminal_name - - Returns the fully qualified signal name as a string. - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForReferenceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/ReadyForReferenceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Ref:Terminal Name** - - C Attribute: **NIRFSA_ATTR_READY_FOR_REF_EVENT_TERMINAL_NAME** - -ready_for_start_event_terminal_name ------------------------------------ - - .. py:attribute:: ready_for_start_event_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForStartEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/ReadyForStartEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Ready For Start:Terminal Name** - - C Attribute: **NIRFSA_ATTR_READY_FOR_START_EVENT_TERMINAL_NAME** - -records_done ------------- - - .. py:attribute:: records_done - - Returns the number of records the RF vector signal analyzer has acquired. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Fetch:Records Done** - - C Attribute: **NIRFSA_ATTR_RECORDS_DONE** - -reference_level ---------------- - - .. py:attribute:: reference_level - - Specifies the reference level, in dBm. - - The reference level represents the maximum expected power of an RF input signal. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - ---- - - Refer to the :py:attr:`nirfsa.Session.external_gain` property for more information about how configuring an external gain and a reference level affect attenuation. - - **Default Value**: 0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Improving Your Measurements `_ - - `Programming Attenuation-Related Properties and Properties Using NI-RFSA `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureReferenceLevel` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Reference Level (dBm)** - - C Attribute: **NIRFSA_ATTR_REFERENCE_LEVEL** - -reference_level_headroom ------------------------- - - .. py:attribute:: reference_level_headroom - - Specifies the margin NI-RFSA adds to the :py:attr:`nirfsa.Session.reference_level` property. - - The margin helps to avoid clipping and overflow warnings if the input signal exceeds the configured reference level. - - NI-RFSA configures the input gain to avoid clipping and associated overflow warnings as long as the instantaneous power of the input signal remains within the reference level plus the reference level headroom. If you know the input power of the signal precisely or have already included margin in the reference level, you may be able to improve the signal-to-noise ratio by reducing the reference level headroom. - - **Units**: dB - - **Default Value**: - - **PXIe-5830/5831/5832/5841/5842/5860**: 1 dB - - **PXIe-5840**: 0 dB - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Reference Level Headroom (dB)** - - C Attribute: **NIRFSA_ATTR_REFERENCE_LEVEL_HEADROOM** - -ref_clock_rate --------------- - - .. py:attribute:: ref_clock_rate - - Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. - - This property is only valid when the :py:attr:`nirfsa.Session.ref_clock_source` property is set to :py:data:`~nirfsa.NIRFSA_VAL_CLK_IN`, :py:data:`~nirfsa.NIRFSA_VAL_REF_IN`, or :py:data:`~nirfsa.ReferenceClockSource.REF_IN_2`. - - **Valid Values**: - - **PXIe-5644/5645/5646, PXIe-5601/5663/5663E, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841**: 10 MHz - - **PXIe-5603/5605/5665/5667/5668**: 5 MHz to 100 MHz, in increments of 1 MHz - - **PXIe-5841 with PXIe-5655, PXIe-5842**: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz *y*, where *y* is 4, 8, 16, 24, 25, or 32. - - **PXIe-5860**: 10 MHz, 100 MHz - - **Default Value**: 10 MHz - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_ref_clock` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Ref Clock Rate** - - C Attribute: **NIRFSA_ATTR_REF_CLOCK_RATE** - -ref_clock_source ----------------- - - .. py:attribute:: ref_clock_source - - Specifies the Reference Clock source. - - ---- - **Note** - For the PXIe-5694, if your application requires an external LO source, set this property to :py:data:`~nirfsa.ReferenceClockSource.NONE`. - - ---- - - **Default Values**: - - **PXIe-5694**: :py:data:`~nirfsa.ReferenceClockSource.REF_IN` - - **All other devices**: :py:data:`~nirfsa.ReferenceClockSource.ONBOARD_CLOCK` - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_ref_clock` - - **Defined Values**: - - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +========================================================+===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ReferenceClockSource.NONE` | No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockSource.ONBOARD_CLOCK` | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockSource.REF_IN` | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockSource.PXI_CLK` | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockSource.CLK_IN` | **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockSource.PXI_CLK_MASTER` | **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceClockSource.REF_IN_2` | **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. | - +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ReferenceClockSource | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Ref Clock Source** - - C Attribute: **NIRFSA_ATTR_REF_CLOCK_SOURCE** - -ref_to_ref_trigger_holdoff --------------------------- - - .. py:attribute:: ref_to_ref_trigger_holdoff - - Specifies the minimum time, in seconds, that must elapse between Reference Triggers of two records. - - The device does not recognize the Reference Trigger of the next record before this minimum time elapses. - - **Units:**: seconds - - **Default Value**: 0 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Advanced:Ref To Ref Trigger Holdoff (s)** - - C Attribute: **NIRFSA_ATTR_REF_TO_REF_TRIGGER_HOLDOFF** - -ref_trigger_delay ------------------ - - .. py:attribute:: ref_trigger_delay - - Specifies the trigger delay time, in seconds. - - The trigger delay time is the length of time the IF digitizer waits after it receives the trigger before it asserts the Reference Event. - - **Units:**: seconds - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Advanced:Ref Trigger Delay (s)** - - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_DELAY** - -ref_trigger_minimum_quiet_time ------------------------------- - - .. py:attribute:: ref_trigger_minimum_quiet_time - - Specifies a time duration, in seconds, for which the signal must be quiet before the device arms the trigger. - - The signal is quiet when it is below the trigger level if the trigger slope, specified by the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_slope` property, is set to :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` or when it is above the trigger level if the trigger slope is set to :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.FALLING`. - - By default, this value is set to 0, which means the device does not wait for a quiet time before arming the trigger. This property is useful to trigger the acquisition on signals containing repeated bursts, but for which each burst may have large changes in signal power within itself. By configuring the minimum quiet time to the time between bursts, you can ensure that the trigger occurs at the beginning of a burst rather than at the signal power change within a burst. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Minimum Quiet Time** - - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_MINIMUM_QUIET_TIME** - -ref_trigger_osp_delay_enabled ------------------------------ - - .. py:attribute:: ref_trigger_osp_delay_enabled - - Specifies whether the digitizer OSP block delays Reference Triggers, along with the data samples, moving through the OSP block or if the Reference Triggers bypass the OSP block and are processed immediately. - - Enabling this property requires the following equipment configurations: - - - All digitizers being used must be the same model and hardware revision. - - All digitizers must use the same firmware. - - All digitizers must be configured with the same I/Q rate. - - All devices must use the same signal path. - - **PXIe-5663/5663E**: Read the value of the :py:attr:`nirfsa.Session.IF_FILTER` property to determine the IF filters used by the PXIe-5663/5663E. - - **PXIe-5665/5667/5668**:Refer to the device-specific information in the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property to determine the IF filters used by the PXIe-5665/5667/5668. If you set the :py:attr:`nirfsa.Session.fft_width` property, refer to the device-specific information for this property and the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property to determine the IF filters used. For frequencies less than 3.6 GHz, set the :py:attr:`nirfsa.Session.rf_preamp_enabled` to the same value for all devices. - - **PXIe-5665 14 GHz**: Set the :py:attr:`nirfsa.Session.downconverter_preselector_enabled` to the same value for all devices. - - If the I/Q rate is set programmatically for I/Q acquisitions, the following properties should be identical for the best device synchronization: - - - :py:attr:`nirfsa.Session.digital_if_equalization_enabled` - - :py:attr:`nirfsa.Session.spectrum_osp_sampling_ratio` - - For spectrum acquisitions, the following properties should be identical for the best device synchronization: - - - :py:attr:`nirfsa.Session.spectrum_span` - - :py:attr:`nirfsa.Session.resolution_bandwidth_type` - - :py:attr:`nirfsa.Session.digital_if_equalization_enabled` - - :py:attr:`nirfsa.Session.spectrum_osp_sampling_ratio` - - For more information about the digitizer OSP block and Reference Triggers, refer to the following topics in the *NI High-Speed Digitizers Help*: - - - NI 5622 Onboard Signal Processing (OSP) - - NI 5142 Onboard Signal Processing (OSP) - - NI PXIe-5622 Trigger Sources - - NI PXI-5142 Trigger Sources - - NI PXIe-5622 Block Diagram - - NI PXI-5142 Trigger Sources - - **Default Value**: :py:data:`~nirfsa.ReferenceTriggerOspDelayEnabled.ENABLED` - - **Supported Devices**:PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 - - **Defined Values**: - - +-------------------------------------------------------------+-----------------------------------------------+ - | Name | Description | - +=============================================================+===============================================+ - | :py:data:`~nirfsa.ReferenceTriggerOspDelayEnabled.DISABLED` | Disables OSP delay for the Reference Trigger. | - +-------------------------------------------------------------+-----------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerOspDelayEnabled.ENABLED` | Enables OSP delay for the Reference Trigger. | - +-------------------------------------------------------------+-----------------------------------------------+ - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------------+ - | Characteristic | Value | - +=======================+=======================================+ - | Datatype | enums.ReferenceTriggerOspDelayEnabled | - +-----------------------+---------------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Advanced:OSP Delay Enabled** - - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_OSP_DELAY_ENABLED** - -ref_trigger_pretrigger_samples ------------------------------- - - .. py:attribute:: ref_trigger_pretrigger_samples - - Specifies the number of pretrigger samples the samples acquired before the Reference Trigger is received to be acquired per record. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_digital_edge_ref_trigger` - - :py:meth:`nirfsa.Session.configure_software_edge_ref_trigger` - - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Pretrigger Samples** - - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_PRETRIGGER_SAMPLES** - -ref_trigger_terminal_name -------------------------- - - .. py:attribute:: ref_trigger_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/RefTrigger, where *BasebandModule* is the name of your baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/RefTrigger, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/RefTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/RefTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Terminal Name** - - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_TERMINAL_NAME** - -ref_trigger_type ----------------- - - .. py:attribute:: ref_trigger_type - - Specifies whether you want the Reference Trigger to be a digital edge, I/Q power edge, or software trigger. - - **Default Value**: :py:data:`~nirfsa.ReferenceTriggerType.NONE` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +========================================================+=============================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.ReferenceTriggerType.NONE` | No Reference Trigger is configured. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerType.DIGITAL_EDGE` | The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_ref_trigger_source` property. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerType.IQ_POWER_EDGE` | The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_slope` property. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerType.SOFTWARE_EDGE` | The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_REF_TRIGGER` as the **trigger** parameter. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.ReferenceTriggerType.IQ_ANALOG_EDGE` | The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the :py:attr:`nirfsa.Session.IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE` property. This value is valid only for PXIe-5644/5645 devices. | - +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ReferenceTriggerType | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Type** - - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_TYPE** - -resolution_bandwidth --------------------- - - .. py:attribute:: resolution_bandwidth - - Specifies the resolution along the x-axis of the spectrum. - - NI-RFSA uses the resolution bandwidth value to determine the acquisition size. If specified, the :py:attr:`nirfsa.Session.number_of_spectral_lines` property value overrides this value. - - **Units**: hertz (Hz) - - **Default Value**: 100 kHz - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.ConfigureResolutionBandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Resolution Bandwidth (Hz)** - - C Attribute: **NIRFSA_ATTR_RESOLUTION_BANDWIDTH** - -resolution_bandwidth_type -------------------------- - - .. py:attribute:: resolution_bandwidth_type - - Specifies how the :py:attr:`nirfsa.Session.resolution_bandwidth` property is expressed. - - **Default Value**: :py:data:`~nirfsa.SpectrumResolutionBandwidthType.THREE_DECIBELS` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===============================================================================+==========================================================================================================================================================+ - | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.THREE_DECIBELS` | Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. | - +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.SIX_DECIBELS` | Defines the RBW in terms of the 6 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. | - +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.BIN_WIDTH` | Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. | - +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.EQUIVALENT_NOISE_BANDWIDTH` | Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. | - +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------------+ - | Characteristic | Value | - +=======================+=======================================+ - | Datatype | enums.SpectrumResolutionBandwidthType | - +-----------------------+---------------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Resolution Bandwidth Type** - - C Attribute: **NIRFSA_ATTR_RESOLUTION_BANDWIDTH_TYPE** - -rf_attenuation_step_size ------------------------- - - .. py:attribute:: rf_attenuation_step_size - - Specifies the step size for the RF attenuation level. - - The actual RF attenuation is coerced up to the next highest multiple of this step size. You can also set this value to change the step size for the device within the supported device precision and configuration. - - **PXI-5600**: The device configuration supports only the following attenuation step size values: 10, 20, 30, 40, and 50. - - **PXIe-5601**: The attenuation is calculated based on the actual calibrated value closest to the desired value, so the step size varies as the actual gain values vary between consecutive attenuation settings. - - **PXIe-5603**: The device configuration supports attenuation changes in 1 dB steps. - - **PXIe-5605**: The available attenuation step size depends on the specified center frequency. In the high band signal path (input frequencies greater than 3.6 GHz), the only available attenuation is the step attenuator that you can change in 5 dB steps. In the low band signal path (input frequencies less than or equal to 3.6 GHz), an additional 31 dB of solid-state attenuation is available in 1 dB steps. The 5 dB default value indicates that, even when in the low band signal path, NI-RFSA changes the attenuation in 5 dB steps using only the mechanical attenuator. You can use this property to affect when the device changes the attenuation settings. To use the solid-state attenuation in the low band signal path, change the step size to a value other than a multiple of 5 (for example, a step size of 1 dB). If you use a value other than a multiple of 5 while in the high band of the PXIe-5605, NI-RFSA returns an error. - - **Units**: dB - - **Valid Values:** - - **PXI-5600/5661**: 10, 20, 30, 40, and 50 - - **PXIe-5601/5663/5663E**: 0.0 to 93.0, continuous - - **PXIe-5603/5665 (3.6 GHz)**: 1.0 to 74.0, in 1 dB steps - - **PXIe-5605/5665 (14 GHz) (low band), PXIe-5606/5668 (low band)**: 1.0 to 106.0, in 1 dB steps - - **PXIe-5605/5665 (14 GHz) (high band), PXIe-5606/5668 (high band)**: 5.0 to 75.0, in 5 dB steps - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 1.0 to 74.0, in 1 dB steps - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 - - **PXIe-5667 (7 GHz) using the PXIe-5693 preselector low frequency bypass path**: 1.0 to 106.0 in 1 dB steps - - **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 - - **Default Value:** - - **PXI-5600/5661**: 10.0 - - **PXIe-5601/5663/5663E**: 0.0 - - **PXIe-5603/5665 (3.6 GHz)**: 1.0 - - **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 5.0 - - **PXIe-5667**: 1.0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:RF Attenuation Step Size (dB)** - - C Attribute: **NIRFSA_ATTR_RF_ATTENUATION_STEP_SIZE** - -rf_high_pass_filtering ----------------------- - - .. py:attribute:: rf_high_pass_filtering - - Specifies the maximum corner frequency of the highpass filter in the RF signal path. - - The device uses the highest frequency highpass filter option below or equal to the value you specify and returns a coerced value. Specifying a value of 0 disables highpass filtering. - - For multispan acquisitions, the device uses the appropriate filter for each subspan during acquisition, depending on the details of your application and the value you specify. In multispan acquisition spectrum applications, this property returns the value you specified rather than a coerced value if multiple highpass filters are used during the acquisition. - - The PXIe-5606 features highpass filters at 1.35 GHz and 2.2 GHz. - - **Valid Values**: 0 to 26.5 - - **Default Value**: 0 - - **Supported Devices**: PXIe-5606, PXIe-5668 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:RF Highpass Filtering** - - C Attribute: **NIRFSA_ATTR_RF_HIGH_PASS_FILTERING** - -rf_out_lo_export_enabled ------------------------- - - .. py:attribute:: rf_out_lo_export_enabled - - Specifies whether to enable the RF OUT LO OUT terminal on the PXIe-5840/5841. - - When this property is enabled, if the :py:attr:`nirfsa.Session.lo_source` property is set to :py:data:`~nirfsa.LoSource.LO_IN` and you do not set the :py:attr:`nirfsa.Session.lo_frequency` or :py:attr:`nirfsa.Session.downconverter_center_frequency` properties, NI-RFSA rounds the LO frequency to approximately an LO step size as if the source was :py:data:`~nirfsa.LoSource.ONBOARD`. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. - - **Default Value:**: :py:data:`~nirfsa.RfOutLoExport.UNSPECIFIED` - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==============================================+================================================================================================================+ - | :py:data:`~nirfsa.RfOutLoExport.DISABLED` | The LO signal is not exported from the RF OUT LO OUT terminal. | - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.RfOutLoExport.ENABLED` | The LO signal is exported from the RF OUT LO OUT terminal. | - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.RfOutLoExport.UNSPECIFIED` | The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. | - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | enums.RfOutLoExport | - +-----------------------+---------------------+ - | Permissions | read-write | - +-----------------------+---------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:RF Out LO Export Enabled** - - C Attribute: **NIRFSA_ATTR_RF_OUT_LO_EXPORT_ENABLED** - -rf_preamp_enabled ------------------ - - .. py:attribute:: rf_preamp_enabled - - Specifies whether the RF preamplifier is enabled in the system. - - **PXIe-5667, PXIe-5644/5645/5646, PXIe-5830/5831/5840/5841/5842**: The :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` value enables the RF preamplifier based on the value of the :py:attr:`nirfsa.Session.reference_level` property and the center frequency. Except on the PXIe-5830/5831/5832, NI-RFSA coerces this property from :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` to the selected value. - - ---- - **Note** - For the PXIe-5840/5841, the automatically selected value may not be optimal for all measurements. At some reference levels, :py:data:`~nirfsa.EnableRfPreamp.ENABLED` may improve the noise floor while :py:data:`~nirfsa.EnableRfPreamp.DISABLED` may improve distortion. - - ---- - - **PXIe-5667**: The :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` value is supported only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.EnableRfPreamp.DISABLED`. If the reference level is greater than -25 dBm, NI-RFSA disables the preamplifier. If the reference level is less than or equal to -25 dBm, NI-RFSA sets the :py:attr:`nirfsa.Session.rf_preamp_enabled` property to :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH`. - - **PXIe-5668 with PXIe-5698**: If you set this property to :py:attr:`nirfsa.Session.rf_preamp_enabled`, only the preamplifier on the PXIe-5698 is used, and the preamplifier on the PXIe-5668 remains disabled. - - **Default Value**: - - **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842**: :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` - - **All other devices**: :py:data:`~nirfsa.EnableRfPreamp.DISABLED` - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5698, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===============================================================+==================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.EnableRfPreamp.DISABLED` | Disables the RF preamplifier. | - +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH` | Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the :py:attr:`nirfsa.Session.rf_preamp_present` property to determine whether the downconverter has a preamplifier. | - +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.EnableRfPreamp.ENABLED` | Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH` value whenever possible to avoid an error. | - +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` | Automatically enables the RF preamplifier based on the value of the :py:attr:`nirfsa.Session.reference_level` property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. | - +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.EnableRfPreamp | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Preamp Enabled** - - C Attribute: **NIRFSA_ATTR_RF_PREAMP_ENABLED** - -rf_preamp_present ------------------ - - .. py:attribute:: rf_preamp_present - - Returns whether an RF preamplifier is available on the RF downconverter module. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------+------------------------------------------------------+ - | Name | Description | - +=======+======================================================+ - | True | The device has an enabled RF preamplifier available. | - +-------+------------------------------------------------------+ - | False | The device has no RF preamplifier available. | - +-------+------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:RF Preamp Present** - - C Attribute: **NIRFSA_ATTR_RF_PREAMP_PRESENT** - -selected_path -------------- - - .. py:attribute:: selected_path - - Specifies which path to configure to acquire a signal. - - **Default Value**: "" (empty string) - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Selected Path** - - C Attribute: **NIRFSA_ATTR_SELECTED_PATH** - -selected_ports --------------- - - .. py:attribute:: selected_ports - - Specifies the port to configure. - - ---- - **Note** - When using RF list mode, ports cannot be shared with NI-RFSA. - - ---- - - **Valid Values**: - - **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) - - **PXIe-5830**: if0, if1 - - **PXIe-5831/5832**: if0, if1, rf <0-1> port , where - - *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and - - *x* is the port number on the mmRH-5582 front panel. - - **Default Value:** - - **PXIe-5830/5831/5832:**: if1 - - **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - :py:attr:`nirfsa.Session.available_ports` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Selected Ports** - - C Attribute: **NIRFSA_ATTR_SELECTED_PORTS** - -serial_number -------------- - - .. py:attribute:: serial_number - - Returns the serial number of the RF downconverter module. - - ---- - **Note** - For the PXIe-5644/5645/5646 and PXIe-5820/5840/5841, this property returns the serial number of the VST module. For the PXIe-5830/5831/5832, this property returns the serial number of the PXIe-3621/3622. - - ---- - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Serial Number** - - C Attribute: **NIRFSA_ATTR_SERIAL_NUMBER** - -signal_bandwidth ----------------- - - .. py:attribute:: signal_bandwidth - - Specifies the bandwidth of the input signal around the :py:attr:`nirfsa.Session.iq_carrier_frequency`. - - This value must be less than or equal to (0.8 7 [I/Q rate](:py:attr:`nirfsa.Session.iq_rate`.html)). - - NI-RFSA defines *signal bandwidth* as twice the maximum I/Q signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* < sub>max - *f*< sub>min. - - If you do not set this property, NI-RFSA uses the maximum available signal bandwidth. Depending on your device settings, setting this property enables certain optimizations. Based on the specified signal bandwidth, NI-RFSA decides the minimum equalized bandwidth and equalizer gain. - - ---- - **Note** - You must set this property to enable the :py:attr:`nirfsa.Session.downconverter_frequency_offset_mode` property. - - ---- - - Ensure you set the signal bandwidth wide enough to encompass all significant anticipated input power. In cases where NI-RFSA optimizes the input gain based on the signal bandwidth, significant input power outside the signal bandwidth can lead to clipping and associated overflow warnings if you do not have enough margin in your [reference level.](:py:attr:`nirfsa.Session.reference_level`.html) - - **Units**: Hz - - **Default Value**: 0 Hz - - **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ:Signal Bandwidth (Hz)** - - C Attribute: **NIRFSA_ATTR_SIGNAL_BANDWIDTH** - -signal_conditioning_enabled ---------------------------- - - .. py:attribute:: signal_conditioning_enabled - - Specifies whether all signal conditioning is enabled on the PXIe-5694. - - ---- - **Note** - If you set this property to :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED`, NI-RFSA bypasses all signal conditioning, prevents any signal downconversion, and fixes the values for :py:attr:`nirfsa.Session.downconverter_gain` property, the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property, and the :py:attr:`nirfsa.Session.if_filter_bandwidth` property. - - ---- - - **Default Value**: :py:data:`~nirfsa.SignalConditioningEnabled.ENABLED` - - **Supported Devices**: PXIe-5694 - - **Defined Values**: - - +-------------------------------------------------------+-----------------------------------+ - | Name | Description | - +=======================================================+===================================+ - | :py:data:`~nirfsa.SignalConditioningEnabled.ENABLED` | Enables signal conditioning. | - +-------------------------------------------------------+-----------------------------------+ - | :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED` | Bypasses all signal conditioning. | - +-------------------------------------------------------+-----------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.SignalConditioningEnabled | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:NI 5694:Signal Conditioning Enabled** - - C Attribute: **NIRFSA_ATTR_SIGNAL_CONDITIONING_ENABLED** - -smooth_spectrum_enabled ------------------------ - - .. py:attribute:: smooth_spectrum_enabled - - Specifies that an optimized IF filtering selection is made at different spectrum frequency ranges during spectrum acquisition. - - The IF filter used depends on the configured RF center frequency, as shown in the following table. - - | Center Frequency | IF Filter | - |:--------------------|:----------| - | 0 Hz and <80 MHz | 300 kHz | - | 0 MHz | 50 MHz | - - ---- - **Note** - Setting this property to **Enabled** prevents you from setting :py:attr:`nirfsa.Session.if_filter_bandwidth` or :py:attr:`nirfsa.Session.device_instantaneous_bandwidth`. - - ---- - - **Default Value**: :py:data:`~nirfsa.SmoothSpectrumEnabled.DISABLED` - - **Supported Devices**: PXIe-5665/5668 - - **Defined Values**: - - +---------------------------------------------------+------------------------------+ - | Name | Description | - +===================================================+==============================+ - | :py:data:`~nirfsa.SmoothSpectrumEnabled.DISABLED` | Disables spectrum smoothing. | - +---------------------------------------------------+------------------------------+ - | :py:data:`~nirfsa.SmoothSpectrumEnabled.ENABLED` | Enables spectrum smoothing. | - +---------------------------------------------------+------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.SmoothSpectrumEnabled | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Smooth Spectrum Enabled** - - C Attribute: **NIRFSA_ATTR_SMOOTH_SPECTRUM_ENABLED** - -spectrum_averaging_mode ------------------------ - - .. py:attribute:: spectrum_averaging_mode - - Specifies the averaging mode for the spectrum acquisition. - - **Default Value**: :py:data:`~nirfsa.SpectrumAveragingMode.NO` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================================+=======================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.SpectrumAveragingMode.NO` | Configures NI-RFSA to perform no averaging on acquisitions. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumAveragingMode.RMS` | Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumAveragingMode.VECTOR` | Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumAveragingMode.PEAK_HOLD` | Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumAveragingMode.MIN_HOLD` | Configures NI-RFSA to perform no averaging on acquisitions. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumAveragingMode.SCALAR` | Configures NI-RFSA to perform no averaging on acquisitions. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.SpectrumAveragingMode.LOG` | Configures NI-RFSA to perform no averaging on acquisitions. | - +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.SpectrumAveragingMode | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Averaging Mode** - - C Attribute: **NIRFSA_ATTR_SPECTRUM_AVERAGING_MODE** - -spectrum_number_of_averages ---------------------------- - - .. py:attribute:: spectrum_number_of_averages - - Specifies the number of acquisitions to average. - - The averaging process returns the final result after the number of averages is complete. - - **Default Value**: 10 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Number Of Averages** - - C Attribute: **NIRFSA_ATTR_SPECTRUM_NUMBER_OF_AVERAGES** - -spectrum_osp_sampling_ratio ---------------------------- - - .. py:attribute:: spectrum_osp_sampling_ratio - - Specifies the oversampling ratio used by the digitizer onboard signal processing (OSP) when you are in spectrum acquisition mode. This property allows you to acquire a larger bandwidth in hardware and reduce that bandwidth in software, decreasing the possibility of hardware data path overflows. - - **PXIe-5644/5645/5646**: The only valid value for this property is 1. - - **Default Value**: 1.0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Spectrum OSP Sampling Ratio** - - C Attribute: **NIRFSA_ATTR_SPECTRUM_OSP_SAMPLING_RATIO** - -spectrum_span -------------- - - .. py:attribute:: spectrum_span - - Specifies the frequency range of the computed spectrum in hertz (Hz). - - For example, if you specify a center frequency of 1 GHz and a span of 100 MHz, the spectrum ranges from 950 MHz to 1,050 MHz after zoom processing. This value may be coerced based on hardware settings and RF downconverter specifications. - - NI-RFSA performs multispan acquisitions by dividing the total requested span into equally sized subspans based on the device instantaneous bandwidth at the range of frequencies you specify. NI-RFSA combines these subspans to yield a multispan acquisition. You can use the :py:attr:`nirfsa.Session.fft_width` property to improve amplitude accuracy and avoid unwanted effects such as filter roll-off and spurs across the span you select. - - ---- - **Note** - If you configure the spectrum span to a value larger than the hardware instantaneous bandwidth, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. - - ---- - - ---- - **Note** - For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. The dither noise can appear in your passband and affect measurements. Refer to the :py:attr:`nirfsa.Session.digitizer_dither_enabled` property for more information about dithering. - - ---- - - **PXIe-5663/5663E**: NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. - - **PXIe-5665 (14 GHz)/5667 (7 GHz)**: If you enable the downconverter preselector filter, the device instantaneous bandwidth is only a typical specification. - - **Default Value**: 10 MHz - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.configure_spectrum_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Span** - - C Attribute: **NIRFSA_ATTR_SPECTRUM_SPAN** - -start_to_ref_trigger_holdoff ----------------------------- - - .. py:attribute:: start_to_ref_trigger_holdoff - - Specifies the minimum time, in seconds, that must elapse after the Start Trigger is received before the device recognizes a Reference Trigger. - - **Units:** seconds - - **Default Value**: 0 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Ref:Advanced:Start To Ref Trigger Holdoff (s)** - - C Attribute: **NIRFSA_ATTR_START_TO_REF_TRIGGER_HOLDOFF** - -start_trigger_terminal_name ---------------------------- - - .. py:attribute:: start_trigger_terminal_name - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/StartTrigger, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/StartTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - :py:meth:`nirfsa.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Terminal Name** - - C Attribute: **NIRFSA_ATTR_START_TRIGGER_TERMINAL_NAME** - -start_trigger_type ------------------- - - .. py:attribute:: start_trigger_type - - Specifies whether you want the Start Trigger to be a digital edge or software trigger. - - ---- - **Note** - Set this property to :py:data:`~nirfsa.StartTriggerType.NONE` if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` or if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the [cvi:py:meth:`nirfsa.Session.ConfigureAcquisitionType`](cvi:py:meth:`nirfsa.Session.ConfigureAcquisitionType`.html) method. - - ---- - - **Default Value**: :py:data:`~nirfsa.StartTriggerType.NONE` - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===================================================+========================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsa.StartTriggerType.NONE` | No Start Trigger is configured. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.StartTriggerType.DIGITAL_EDGE` | The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_start_trigger_source` property. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsa.StartTriggerType.SOFTWARE_EDGE` | The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_START_TRIGGER` as the value of the **trigger** parameter. | - +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.StartTriggerType | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Type** - - C Attribute: **NIRFSA_ATTR_START_TRIGGER_TYPE** - -subspan_overlap ---------------- - - .. py:attribute:: subspan_overlap - - Use subspan overlap process to eliminate or reduce analyzer spurs. - - To enable this feature, specify a non-zero percentage overlap between consecutive subspans in a spectrum acquisition. - - If a value greater than 0 is specified, then for each spectral line in the resulting spectrum, the driver acquires data twice with slightly different hardware settings, so that the analyzer spurs, if any, are present at different frequencies in the two acquisitions. Typically, LO frequency is shifted between the acquisitions causing analyzer spurs that are relative to the LO frequency, to move from one frequency to another. Those spurs, which are present in only one of the acquisitions for each spectral line, get removed. - - The subspan overlap feature will not remove any spurs from the Device Under Test or modify the signal being measured; unlike the analyzer spurs, the spurs in the signal being measured stay at a constant frequency in the two acquisitions. - - ---- - **Note** - Subspan overlap process effectively is performing minimum averaging, which might reduce the measured noise floor level. NI-RFSA Spectrum Averaging can be enabled to minimize the effect of subspan overlap on the noise floor. - - ---- - - ---- - **Note** - NI-RFSA may apply further shifts to the specified value to accommodate fixed-frequency edges of components such as preselectors. - - ---- - - **Valid Values**: - - **PXIe-5665/5668**: 0 to < 100 - - **PXIe-5820/5830/5831/5832/5840/5841/5860**: 0 - - **PXIe-5842**: 0, 50 - - **Default Value**: 0 - - **Supported Devices**: PXIe-5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - ---- - **Note** - Subspan overlap will not be supported by PXIe-5842, if RMM-5585 (54GHz Frequency Extension) is connected. - - ---- - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Spectrum:Subspan Overlap** - - C Attribute: **NIRFSA_ATTR_SUBSPAN_OVERLAP** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - Returns a comma-separated list of supported devices. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** - - C Attribute: **NIRFSA_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -temperature_read_interval -------------------------- - - .. py:attribute:: temperature_read_interval - - Indicates the minimum time between temperature sensor readings in seconds. - - When you call the :py:meth:`nirfsa.Session.read_power_spectrum` method, the :py:meth:`nirfsa.Session.ReadIqSingleRecordComplexF64` method, or the :py:meth:`nirfsa.Session._initiate` method, NI-RFSA checks whether at least the amount of time specified by this property has elapsed before reading the hardware temperature. - - ---- - **Note** - NI-RFSA ignores this property if you call the :py:meth:`nirfsa.Session.perform_thermal_correction` method or read the :py:attr:`nirfsa.Session.downconverter_gain` property. - - ---- - - **Default Value**: 30 seconds - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Temperature Read Interval** - - C Attribute: **NIRFSA_ATTR_TEMPERATURE_READ_INTERVAL** - -thermal_correction_headroom_range ---------------------------------- - - .. py:attribute:: thermal_correction_headroom_range - - Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the :py:attr:`nirfsa.Session.device_temperature` property. - - For example, if this property is set to 5.0, and the device is self-calibrated at 35 C, then you can expect to run the device from 30 C to 40 C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance and ADC or DSP overflows. - - **Units:** degrees Celsius (C) - - **Default Value**: - - **PXIe-5830/5831/5832/5842/5860**: 5 - - **PXIe-5840/5841**: 10 - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Thermal Correction Headroom Range (Degrees C)** - - C Attribute: **NIRFSA_ATTR_THERMAL_CORRECTION_HEADROOM_RANGE** - -thermal_correction_temperature_resolution ------------------------------------------ - - .. py:attribute:: thermal_correction_temperature_resolution - - Specifies the temperature change required before NI-RFSA recalculates the thermal correction settings when entering the Running state. - - **Units:** degrees Celsius (C) - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Default Values**: - - **PXIe-5830/5831/5832/5842/5860**: 0.2 - - **PXIe-5840/5841**: 1.0 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Thermal Correction Temperature Resolution (Degrees C)** - - C Attribute: **NIRFSA_ATTR_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION** - -user_source_pulse_width ------------------------ - - .. py:attribute:: user_source_pulse_width - - Specifies the pulse width for the User Source. - - Use the :py:attr:`nirfsa.Session.user_source_pulse_width_units` property to set the units for the pulse width. - - **Default Value**: 200E(-9) - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:User Source:Pulse Width** - - C Attribute: **NIRFSA_ATTR_USER_SOURCE_PULSE_WIDTH** - -user_source_pulse_width_units ------------------------------ - - .. py:attribute:: user_source_pulse_width_units - - Specifies the pulse width units for the User Source. - - When the value is :py:data:`~nirfsa.UserSourcePulseWidthUnits.SECONDS`, it is assumed that the clock rate of the signal is the data clock. Use :py:data:`~nirfsa.UserSourcePulseWidthUnits.CLOCK_PERIODS` if the user source clock rate is anything else. - - **Default Value**: :py:data:`~nirfsa.UserSourcePulseWidthUnits.SECONDS` - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------------------------------+--------------------------+ - | Name | Description | - +============================================================+==========================+ - | :py:data:`~nirfsa.UserSourcePulseWidthUnits.SECONDS` | Units are seconds. | - +------------------------------------------------------------+--------------------------+ - | :py:data:`~nirfsa.UserSourcePulseWidthUnits.CLOCK_PERIODS` | Units are clock periods. | - +------------------------------------------------------------+--------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.UserSourcePulseWidthUnits | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:User Source:Pulse Width Units** - - C Attribute: **NIRFSA_ATTR_USER_SOURCE_PULSE_WIDTH_UNITS** - - -NI-TClk Support -=============== - - .. py:attribute:: tclk - - This is used to get and set NI-TClk attributes on the session. - - .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. - - -.. contents:: Session diff --git a/docs/nirfsa/conf.py b/docs/nirfsa/conf.py deleted file mode 100644 index c41e58f880..0000000000 --- a/docs/nirfsa/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-RFSA Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-RFSA Python API' -copyright = '2026-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.0.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIRFSAPythonAPI.tex', 'NI-RFSA Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nirfsapythonapi', 'NI-RFSA Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIRFSAPythonAPI', 'NI-RFSA Python API Documentation', - author, 'NIRFSAPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nirfsa/enums.rst b/docs/nirfsa/enums.rst deleted file mode 100644 index 830ea32c0f..0000000000 --- a/docs/nirfsa/enums.rst +++ /dev/null @@ -1,3510 +0,0 @@ -Enums -===== - -Enums used in NI-RFSA - -.. py:currentmodule:: nirfsa - - -AcquisitionType ---------------- - -.. py:class:: AcquisitionType - - .. py:attribute:: AcquisitionType.IQ - - - - Configures NI-RFSA for I/Q acquisitions. - - - - - - .. py:attribute:: AcquisitionType.SPECTRUM - - - - Configures NI-RFSA for spectrum acquisitions. - - - - - -Action ------- - -.. py:class:: Action - - .. py:attribute:: Action.COMMIT - - - - The new calibration constants are stored in the EEPROM. - - - - - - .. py:attribute:: Action.ABORT - - - - The old calibration constants are kept, and the new ones are discarded. - - - - - -AdvanceTriggerDigitalEdgeEdge ------------------------------ - -.. py:class:: AdvanceTriggerDigitalEdgeEdge - - .. py:attribute:: AdvanceTriggerDigitalEdgeEdge.RISING - - - - The trigger asserts on the rising edge of the signal. - - - - - - .. py:attribute:: AdvanceTriggerDigitalEdgeEdge.FALLING - - - - The trigger asserts on the falling edge of the signal. - - - - - -AdvanceTriggerType ------------------- - -.. py:class:: AdvanceTriggerType - - .. py:attribute:: AdvanceTriggerType.NONE - - - - No Advance Trigger is configured. - - - - - - .. py:attribute:: AdvanceTriggerType.DIGITAL_EDGE - - - - The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_advance_trigger_source` property. - - - - - - .. py:attribute:: AdvanceTriggerType.SOFTWARE_EDGE - - - - The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_ADVANCE_TRIGGER` as the **trigger** parameter. - - - - - -AllowOutOfSpecificationUserSettings ------------------------------------ - -.. py:class:: AllowOutOfSpecificationUserSettings - - .. py:attribute:: AllowOutOfSpecificationUserSettings.DISABLED - - - - Disables out-of-specification user settings. - - - - - - .. py:attribute:: AllowOutOfSpecificationUserSettings.ENABLED - - - - Enables out-of-specification user settings. - - - - - -ArmReferenceTriggerType ------------------------ - -.. py:class:: ArmReferenceTriggerType - - .. py:attribute:: ArmReferenceTriggerType.NONE - - - - No Arm Reference Trigger is configured. - - - - - - .. py:attribute:: ArmReferenceTriggerType.DIGITAL_EDGE - - - - The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_arm_ref_trigger_source` property. - - - - - - .. py:attribute:: ArmReferenceTriggerType.SOFTWARE_EDGE - - - - The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.SoftwareTriggerType.ARM_REF` as the **trigger** parameter. - - - - - -CalToneMode ------------ - -.. py:class:: CalToneMode - - .. py:attribute:: CalToneMode.DISABLED - - - - Disables the calibration tone for the associated signal path. - - - - - - .. py:attribute:: CalToneMode.CAL_TONE_LOWBAND_RF - - - - Injects the calibration tone into the low band RF signal path. - - - - - - .. py:attribute:: CalToneMode.CAL_TONE_HIGHBAND_RF - - - - Injects the calibration tone into the high band RF signal path. - - - - - - .. py:attribute:: CalToneMode.CAL_TONE_HIGHBAND_IF - - - - Injects the calibration tone into the high band IF signal path. - - - - - - .. py:attribute:: CalToneMode.CAL_TONE_LOWBAND_RF_WITHOUT_ALC - - - - Injects the calibration tone into the low band RF signal path, bypassing the ALC. - - - - - - .. py:attribute:: CalToneMode.CAL_TONE_COMB_GENERATOR - - - - Injects the calibration tone into the high band RF signal path through the Comb Generator. - - - - - -CalibrateStep -------------- - -.. py:class:: CalibrateStep - - .. py:attribute:: CalibrateStep.IF_ATTENUATION - - - - Initializes the IF Attenuation Calibration step. This step is not supported for the PXIe-5693. - - - - - - .. py:attribute:: CalibrateStep.IF_RESPONSE - - - - Initializes the IF Response Calibration step. This step is not supported for the PXIe-5603/5605 or PXIe-5693/5698. - - - - - - .. py:attribute:: CalibrateStep.IF_REF_LEVEL - - - - Initializes the Ref Level Calibration step. This step is not supported on the PXIe-5694. - - - - - - .. py:attribute:: CalibrateStep.LO_EXPORT - - - - Initializes the LO Export Calibration step. This step calibrates the output power of each LO to be within specification. This step is not supported on the PXIe-5601 or the PXIe-5693/5694/5698. - - - - - - .. py:attribute:: CalibrateStep.GAIN_REFERENCE - - - - Initializes the Gain Reference Calibration step. This step calibrates the calibration tone amplitude across supported calibration tone frequencies. This step is not supported on the PXIe-5601/5603/5605 or PXIe-5694. - - - - - -ChannelCoupling ---------------- - -.. py:class:: ChannelCoupling - - .. py:attribute:: ChannelCoupling.AC - - - - Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. - - - - - - .. py:attribute:: ChannelCoupling.DC - - - - Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. - - - - - -ConditioningCalToneMode ------------------------ - -.. py:class:: ConditioningCalToneMode - - .. py:attribute:: ConditioningCalToneMode.DISABLED - - - - Disables the calibration tone for the associated signal path. - - - - - - .. py:attribute:: ConditioningCalToneMode.CAL_TONE_LOWBAND_RF - - - - Injects the calibration tone into the low band RF signal path. - - - - - - .. py:attribute:: ConditioningCalToneMode.CAL_TONE_HIGHBAND_RF - - - - Injects the calibration tone into the high band RF signal path. - - - - - -DeembeddingType ---------------- - -.. py:class:: DeembeddingType - - .. py:attribute:: DeembeddingType.NONE - - - - De-embedding is not applied to the measurement. - - - - - - .. py:attribute:: DeembeddingType.SCALAR - - - - De-embeds the measurement using only the gain term. - - - - - - .. py:attribute:: DeembeddingType.VECTOR - - - - De-embeds the measurement using the gain term and the reflection term. - - - - - - .. py:attribute:: DeembeddingType.AMPLITUDE_FLATNESS - - - - De-embeds the measurement using wideband amplitude flatness correction. - - - - - -DeviceResponseType ------------------- - -.. py:class:: DeviceResponseType - - .. py:attribute:: DeviceResponseType.DOWNCONVERTER_IF - - - - Returns the IF response of the downconverter. - - - - - - .. py:attribute:: DeviceResponseType.DOWNCONVERTER_RF - - - - Returns the RF response of the downconverter. This value is supported only for the PXIe-5603/5605/5665/5667/5693.. - - - - - - .. py:attribute:: DeviceResponseType.DOWNCONVERTER_COMBINED - - - - Returns the combined RF and IF response of the downconverter. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5603/5605/5665/5667. - - - - - - .. py:attribute:: DeviceResponseType.VSA_IF - - - - Returns the IF response of the entire NI-RFSA device. This value is supported only for the PXIe-5665/5667. - - - - - - .. py:attribute:: DeviceResponseType.VSA_COMBINED - - - - Returns the combined IF and RF response of the entire NI-RFSA device. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5665/5667. - - - - - -DigitizerDitherEnabled ----------------------- - -.. py:class:: DigitizerDitherEnabled - - .. py:attribute:: DigitizerDitherEnabled.DISABLED - - - - Disables dither on the digitizer. - - - - - - .. py:attribute:: DigitizerDitherEnabled.ENABLED - - - - Enables dither on the digitizer. - - - - - -DigitizerSampleClockExportedTerminal ------------------------------------- - -.. py:class:: DigitizerSampleClockExportedTerminal - - .. py:attribute:: DigitizerSampleClockExportedTerminal.NONE - - - - The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. - - - - - - .. py:attribute:: DigitizerSampleClockExportedTerminal.CLK_OUT - - - - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - - - - - -DigitizerSampleClockTimebaseSource ----------------------------------- - -.. py:class:: DigitizerSampleClockTimebaseSource - - .. py:attribute:: DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK - - - - The digitizer uses its onboard clock as the Sample Clock timebase. - - - - - - .. py:attribute:: DigitizerSampleClockTimebaseSource.CLK_IN - - - - The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. - - - - - - .. py:attribute:: DigitizerSampleClockTimebaseSource.LO_REF_CLK - - - - The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. - - - - - - .. py:attribute:: DigitizerSampleClockTimebaseSource.PXI_STAR - - - - The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. - - - - - - .. py:attribute:: DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT - - - - The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. - - - - - -DownconverterFrequencyOffsetMode --------------------------------- - -.. py:class:: DownconverterFrequencyOffsetMode - - .. py:attribute:: DownconverterFrequencyOffsetMode.AUTOMATIC - - - - NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. - - - - - - .. py:attribute:: DownconverterFrequencyOffsetMode.ENABLED - - - - NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSA returns an error if the :py:attr:`nirfsa.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. - - - - - - .. py:attribute:: DownconverterFrequencyOffsetMode.USER_DEFINED - - - - NI-RFSA uses the offset that you specified with the :py:attr:`nirfsa.Session.downconverter_frequency_offset` or :py:attr:`nirfsa.Session.downconverter_center_frequency` properties. - - - - - -DownconverterLoopBandwidth --------------------------- - -.. py:class:: DownconverterLoopBandwidth - - .. py:attribute:: DownconverterLoopBandwidth.NARROW - - - - Specifies that the downconverter module uses a narrow loop bandwidth. - - - - - - .. py:attribute:: DownconverterLoopBandwidth.MEDIUM - - - - Specifies that the downconverter module uses a medium loop bandwidth. - - - - - - .. py:attribute:: DownconverterLoopBandwidth.WIDE - - - - Specifies that the downconverter module uses a wide loop bandwidth. - - - - - -EnableAttrVals --------------- - -.. py:class:: EnableAttrVals - - .. py:attribute:: EnableAttrVals.DISABLED - - - - The property is disabled. - - - - - - .. py:attribute:: EnableAttrVals.ENABLED - - - - The property is enabled. - - - - - -DownconverterPreselectorEnabled -------------------------------- - -.. py:class:: DownconverterPreselectorEnabled - - .. py:attribute:: DownconverterPreselectorEnabled.DISABLED - - - - Disables the preselector. - - - - - - .. py:attribute:: DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH - - - - The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the :py:attr:`nirfsa.Session.preselector_present` property to determine if the downconverter has an preselector. - - - - - - .. py:attribute:: DownconverterPreselectorEnabled.ENABLED - - - - Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` whenever possible avoid an error. - - - - - -EnableRfPreamp --------------- - -.. py:class:: EnableRfPreamp - - .. py:attribute:: EnableRfPreamp.DISABLED - - - - Disables the RF preamplifier. - - - - - - .. py:attribute:: EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH - - - - Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the :py:attr:`nirfsa.Session.rf_preamp_present` property to determine whether the downconverter has a preamplifier. - - - - - - .. py:attribute:: EnableRfPreamp.ENABLED - - - - Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH` value whenever possible to avoid an error. - - - - - - .. py:attribute:: EnableRfPreamp.AUTOMATIC - - - - Automatically enables the RF preamplifier based on the value of the :py:attr:`nirfsa.Session.reference_level` property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. - - - - - -ExportOutputTerminal --------------------- - -.. py:class:: ExportOutputTerminal - - .. py:attribute:: ExportOutputTerminal.DO_NOT_EXPORT - - - - The signal is not exported. - - - - - - .. py:attribute:: ExportOutputTerminal.CLK_OUT - - - - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: ExportOutputTerminal.REF_OUT - - - - Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: ExportOutputTerminal.REF_OUT2 - - - - Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. - - - - - - .. py:attribute:: ExportOutputTerminal.PFI0 - - - - The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. - - - - - - .. py:attribute:: ExportOutputTerminal.PFI1 - - - - The trigger is received on PFI 1. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG0 - - - - The trigger is received on PXI trigger line 0. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG1 - - - - The trigger is received on PXI trigger line 1. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG2 - - - - The trigger is received on PXI trigger line 2. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG3 - - - - The trigger is received on PXI trigger line 3. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG4 - - - - The trigger is received on PXI trigger line 4. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG5 - - - - The trigger is received on PXI trigger line 5. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG6 - - - - The trigger is received on PXI trigger line 6. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_TRIG7 - - - - The trigger is received on PXI trigger line 7. - - - - - - .. py:attribute:: ExportOutputTerminal.PXI_STAR - - - - The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. - - - - - - .. py:attribute:: ExportOutputTerminal.PXIE_DSTARC - - - - The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI0 - - - - The trigger is received on PFI0 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI1 - - - - The trigger is received on PFI1 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI2 - - - - The trigger is received on PFI2 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI3 - - - - The trigger is received on PFI3 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI4 - - - - The trigger is received on PFI4 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI5 - - - - The trigger is received on PFI5 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI6 - - - - The trigger is received on PFI6 from the front panel DIO terminal. - - - - - - .. py:attribute:: ExportOutputTerminal.DIO_PFI7 - - - - The trigger is received on PFI7 from the front panel DIO terminal. - - - - - -FetchRelativeTo ---------------- - -.. py:class:: FetchRelativeTo - - .. py:attribute:: FetchRelativeTo.MOST_RECENT_SAMPLE - - - - Fetching occurs relative to the most recently acquired data. The value of the :py:attr:`nirfsa.Session.fetch_offset` property must be negative. - - - - - - .. py:attribute:: FetchRelativeTo.FIRST_SAMPLE - - - - Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. - - - - - - .. py:attribute:: FetchRelativeTo.REFERENCE_TRIGGER - - - - Fetching occurs relative to the Reference Trigger. This value behaves like :py:data:`~nirfsa.FetchRelativeTo.FIRST_SAMPLE` if no Reference Trigger is configured. - - - - - - .. py:attribute:: FetchRelativeTo.FIRST_PRETRIGGER_SAMPLE - - - - Fetching occurs relative to the first pretrigger sample acquired. - - - - - - .. py:attribute:: FetchRelativeTo.CURRENT_READ_POSITION - - - - Fetching occurs after the last fetched sample. - - - - - -FrequencySettlingUnits ----------------------- - -.. py:class:: FrequencySettlingUnits - - .. py:attribute:: FrequencySettlingUnits.PPM - - - - Specifies the frequency settling time in parts per million (PPM). - - - - - - .. py:attribute:: FrequencySettlingUnits.SECONDS_AFTER_LOCK - - - - Specifies the frequency settling in time after lock (seconds). - - - - - - .. py:attribute:: FrequencySettlingUnits.SECONDS_AFTER_IO - - - - Specifies the frequency settling time after I/O (seconds). - - - - - -IFattenTableSel ---------------- - -.. py:class:: IFattenTableSel - - .. py:attribute:: IFattenTableSel.STANDARD - - - - Specifies that the standard IF attenuation table is used for the external calibration. - - - - - - .. py:attribute:: IFattenTableSel.ACPR - - - - Specifies that the adjacent channel power ratio (ACPR) IF attenuation table is used for the external calibration. You can only select this value if you set the :py:attr:`nirfsa.Session.CAL_IF_FILTER_SELECTION` property to :py:data:`~nirfsa.IFfilterSelection.EXT_CAL_IF_FILTER_PATH_1` or :py:data:`~nirfsa.IFfilterSelection.EXT_CAL_IF_FILTER_PATH_2`. - - - - - -IFfilter --------- - -.. py:class:: IFfilter - - .. py:attribute:: IFfilter._187_5_MHZ_WIDE - - - - The device uses the 187.5 MHz wide bandwidth filter. - - - - - - .. py:attribute:: IFfilter._187_5_MHZ_NARROW - - - - The device uses the 187.5 MHz narrow bandwidth filter. - - - - - - .. py:attribute:: IFfilter._53_MHZ - - - - The device uses the 53 MHz filter. - - - - - - .. py:attribute:: IFfilter.BYPASS - - - - The device bypasses the IF filter. - - - - - -IFfilterSelection ------------------ - -.. py:class:: IFfilterSelection - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_1 - - - - Specifies that the 5 MHz filter path is used during calibration. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_2 - - - - Specifies that the 300 kHz filter path is used during calibration. Not supported for the PXIe-5694. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_3 - - - - None of the IF filter paths are used during calibration. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_4 - - - - Specifies that the 20 MHz filter path is used during calibration. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_5 - - - - Specifies that the 1.4 MHz filter path is used during calibration. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_6 - - - - Specifies that the 400 kHz filter path is used during calibration. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_7 - - - - Specifies that the 110 kHz filter path is used during calibration. - - - - - - .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_8 - - - - Specifies that the 30 kHz filter path is used during calibration. - - - - - -IqInPortTerminalConfiguration ------------------------------ - -.. py:class:: IqInPortTerminalConfiguration - - .. py:attribute:: IqInPortTerminalConfiguration.DIFFERENTIAL - - - - Sets the terminal configuration to differential. - - - - - - .. py:attribute:: IqInPortTerminalConfiguration.SINGLE_ENDED - - - - Sets the terminal configuration to single-ended. - - - - - -IfConditioningDownConversionEnabled ------------------------------------ - -.. py:class:: IfConditioningDownConversionEnabled - - .. py:attribute:: IfConditioningDownConversionEnabled.DISABLED - - - - Disables IF conditioning downconversion. - - - - - - .. py:attribute:: IfConditioningDownConversionEnabled.ENABLED - - - - Enables IF conditioning downconversion. - - - - - -InputIsolationEnabled ---------------------- - -.. py:class:: InputIsolationEnabled - - .. py:attribute:: InputIsolationEnabled.DISABLED - - - - Disables input isolation. - - - - - - .. py:attribute:: InputIsolationEnabled.ENABLED - - - - Enables input isolation. - - - - - -InputPort ---------- - -.. py:class:: InputPort - - .. py:attribute:: InputPort.RF_IN - - - - Enables the RF IN port. - - - - - - .. py:attribute:: InputPort.IQ_IN - - - - Enables the I/Q IN port. - - - - - - .. py:attribute:: InputPort.CAL_IN - - - - Enables the CAL IN port. - - - - - - .. py:attribute:: InputPort.I_ONLY - - - - Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. - - - - - -LinearInterpolationFormat -------------------------- - -.. py:class:: LinearInterpolationFormat - - .. py:attribute:: LinearInterpolationFormat.MAGNITUDE_AND_PHASE - - - - Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. - - - - - - .. py:attribute:: LinearInterpolationFormat.MAGNITUDE_DB_AND_PHASE - - - - Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. - - - - - - .. py:attribute:: LinearInterpolationFormat.REAL_AND_IMAGINARY - - - - Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. - - - - - -Lo2ExportEnabled ----------------- - -.. py:class:: Lo2ExportEnabled - - .. py:attribute:: Lo2ExportEnabled.DISABLED - - - - Disables LO2 export. - - - - - - .. py:attribute:: Lo2ExportEnabled.ENABLED - - - - Enables LO2 export. - - - - - -LoInjection ------------ - -.. py:class:: LoInjection - - .. py:attribute:: LoInjection.HIGH - - - - Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. - - - - - - .. py:attribute:: LoInjection.LOW - - - - Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. - - - - - -LoNumber --------- - -.. py:class:: LoNumber - - .. py:attribute:: LoNumber.LO2 - - - - Selects LO2, which is the 4 GHz signal path. - - - - - - .. py:attribute:: LoNumber.LO3 - - - - Selects LO3, which is the 800 MHz signal path. - - - - - - .. py:attribute:: LoNumber.LO1 - - - - Selects LO1, which is the 3.2 GHz to 8.3 GHz variable signal path. - - - - - -LoOutExportConfigureFromRfsg ----------------------------- - -.. py:class:: LoOutExportConfigureFromRfsg - - .. py:attribute:: LoOutExportConfigureFromRfsg.DISABLED - - - - Do not allow NI-RFSG to control the NI-RFSA local oscillator export. - - - - - - .. py:attribute:: LoOutExportConfigureFromRfsg.ENABLED - - - - Allow NI-RFSG to control the NI-RFSA local oscillator export. - - - - - -LoPathSel ---------- - -.. py:class:: LoPathSel - - .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_1 - - - - Specifies that the LO path 1 is used. - - - - - - .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_2 - - - - Specifies that the LO path 2 is used. - - - - - - .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_3 - - - - Specifies that the LO path 3 is used. - - - - - - .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_4 - - - - Specifies that the LO path 4 is used. - - - - - - .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_5 - - - - Specifies that the LO path 5 is used. - - - - - -LoPllFractionalModeEnabled --------------------------- - -.. py:class:: LoPllFractionalModeEnabled - - .. py:attribute:: LoPllFractionalModeEnabled.DISABLED - - - - Disables fractional mode for the LO PLL. - - - - - - .. py:attribute:: LoPllFractionalModeEnabled.ENABLED - - - - Enables fractional mode for the LO PLL. - - - - - -LoSource --------- - -.. py:class:: LoSource - - .. py:attribute:: LoSource.ONBOARD - - - - Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. - - - - - - .. py:attribute:: LoSource.LO_IN - - - - Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. - - - - - - .. py:attribute:: LoSource.LO_SOURCE_SECONDARY - - - - Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). - - - - - - .. py:attribute:: LoSource.LO_SOURCE_SG_SA_SHARED - - - - Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. - - - - - -LoYigMainCoilDrive ------------------- - -.. py:class:: LoYigMainCoilDrive - - .. py:attribute:: LoYigMainCoilDrive.NORMAL - - - - Adjusts the YIG main coil on the LO for an underdamped response. - - - - - - .. py:attribute:: LoYigMainCoilDrive.FAST - - - - Adjusts the YIG main coil on the LO for an overdamped response. - - - - - -LoadConfigurationResetOptions ------------------------------ - -.. py:class:: LoadConfigurationResetOptions - - .. py:attribute:: LoadConfigurationResetOptions.NONE - - - - NI-RFSA resets all configurations. - - - - - - .. py:attribute:: LoadConfigurationResetOptions.DEEMBEDDING_TABLES - - - - NI-RFSA skips resetting the de-embedding tables. - - - - - -NoiseSourcePowerEnabled ------------------------ - -.. py:class:: NoiseSourcePowerEnabled - - .. py:attribute:: NoiseSourcePowerEnabled.DISABLED - - - - Disables the noise source power. - - - - - - .. py:attribute:: NoiseSourcePowerEnabled.ENABLED - - - - Enables the noise source power. - - - - - -NotchFilterEnabled ------------------- - -.. py:class:: NotchFilterEnabled - - .. py:attribute:: NotchFilterEnabled.DISABLED - - - - Disables the notch filter. - - - - - - .. py:attribute:: NotchFilterEnabled.ENABLED_WHEN_IN_SIGNAL_PATH - - - - The notch filter is automatically enabled when it is in the signal path and automatically disabled when it is not in the signal path. - - - - - - .. py:attribute:: NotchFilterEnabled.ENABLED - - - - Enables the notch filter. If the notch filter is not in the signal path or if the notch filter is not supported on the device, NI-RFSA returns an error. Select :py:data:`~nirfsa.NotchFilterEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` whenever possible to avoid an error. - - - - - -OutputTerm ----------- - -.. py:class:: OutputTerm - - .. py:attribute:: OutputTerm.DO_NOT_EXPORT - - - - The signal is not exported. - - - - - - .. py:attribute:: OutputTerm.CLK_OUT - - - - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: OutputTerm.REF_OUT - - - - Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: OutputTerm.REF_OUT2 - - - - Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. - - - - - - .. py:attribute:: OutputTerm.PFI0 - - - - The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. - - - - - - .. py:attribute:: OutputTerm.PFI1 - - - - The trigger is received on PFI 1. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG0 - - - - The trigger is received on PXI trigger line 0. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG1 - - - - The trigger is received on PXI trigger line 1. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG2 - - - - The trigger is received on PXI trigger line 2. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG3 - - - - The trigger is received on PXI trigger line 3. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG4 - - - - The trigger is received on PXI trigger line 4. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG5 - - - - The trigger is received on PXI trigger line 5. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG6 - - - - The trigger is received on PXI trigger line 6. - - - - - - .. py:attribute:: OutputTerm.PXI_TRIG7 - - - - The trigger is received on PXI trigger line 7. - - - - - - .. py:attribute:: OutputTerm.PXI_STAR - - - - The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. - - - - - - .. py:attribute:: OutputTerm.PXIE_DSTARB - - - - The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI0 - - - - The trigger is received on PFI0 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI1 - - - - The trigger is received on PFI1 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI2 - - - - The trigger is received on PFI2 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI3 - - - - The trigger is received on PFI3 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI4 - - - - The trigger is received on PFI4 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI5 - - - - The trigger is received on PFI5 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI6 - - - - The trigger is received on PFI6 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.DIO_PFI7 - - - - The trigger is received on PFI7 from the front panel DIO terminal. - - - - - - .. py:attribute:: OutputTerm.TIMER_EVENT - - - - The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. - - - - - -OverflowErrorReporting ----------------------- - -.. py:class:: OverflowErrorReporting - - .. py:attribute:: OverflowErrorReporting.WARNING - - - - Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. - - - - - - .. py:attribute:: OverflowErrorReporting.DISABLED - - - - Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. - - - - - -PowerSpectrumUnits ------------------- - -.. py:class:: PowerSpectrumUnits - - .. py:attribute:: PowerSpectrumUnits.DBM - - - - Units are dB with reference to 1 milliwatt. - - - - - - .. py:attribute:: PowerSpectrumUnits.VOLTS_SQUARED - - - - Units are in volts squared. - - - - - - .. py:attribute:: PowerSpectrumUnits.DBMV - - - - Units are dB with reference to 1 millivolt. - - - - - - .. py:attribute:: PowerSpectrumUnits.DBUV - - - - Units are dB with reference to 1 microvolt. - - - - - - .. py:attribute:: PowerSpectrumUnits.VOLTS - - - - Units are in volts. - - - - - - .. py:attribute:: PowerSpectrumUnits.WATTS - - - - Units are in watts. - - - - - -PxiChassisClk10Source ---------------------- - -.. py:class:: PxiChassisClk10Source - - .. py:attribute:: PxiChassisClk10Source.NONE - - - - The device does not drive the PXI 10 MHz backplane Reference Clock. - - - - - - .. py:attribute:: PxiChassisClk10Source.ONBOARD_CLOCK - - - - The device drives the PXI 10 MHz backplane Reference Clock with the PXI-5600 onboard clock. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. - - - - - - .. py:attribute:: PxiChassisClk10Source.REF_IN - - - - The device drives the PXI 10 MHz backplane Reference Clock with the reference source attached to the PXI-5600 FREQ REF IN connector. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. - - - - - -ReferenceClockExportedRate --------------------------- - -.. py:class:: ReferenceClockExportedRate - - .. py:attribute:: ReferenceClockExportedRate._10MHZ - - - - Exports a 10 MHz Reference Clock. - - - - - - .. py:attribute:: ReferenceClockExportedRate._100MHZ - - - - Exports a 100 MHz Reference Clock. - - - - - - .. py:attribute:: ReferenceClockExportedRate._1GHZ - - - - Exports a 1 GHz Reference Clock. - - - - - -ReferenceClockExportedTerminal ------------------------------- - -.. py:class:: ReferenceClockExportedTerminal - - .. py:attribute:: ReferenceClockExportedTerminal.NONE - - - - The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. - - - - - - .. py:attribute:: ReferenceClockExportedTerminal.REF_OUT - - - - Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: ReferenceClockExportedTerminal.REF_OUT2 - - - - Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. - - - - - - .. py:attribute:: ReferenceClockExportedTerminal.CLK_OUT - - - - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - - - - - - .. py:attribute:: ReferenceClockExportedTerminal.IF_COND_REF_OUT - - - - Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. - - - - - -ReferenceClockSource --------------------- - -.. py:class:: ReferenceClockSource - - .. py:attribute:: ReferenceClockSource.NONE - - - - No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. - - - - - - .. py:attribute:: ReferenceClockSource.ONBOARD_CLOCK - - - - **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. - - - - - - .. py:attribute:: ReferenceClockSource.REF_IN - - - - **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. - - - - - - .. py:attribute:: ReferenceClockSource.PXI_CLK - - - - **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. - - - - - - .. py:attribute:: ReferenceClockSource.CLK_IN - - - - **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. - - - - - - .. py:attribute:: ReferenceClockSource.PXI_CLK_MASTER - - - - **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. - - - - - - .. py:attribute:: ReferenceClockSource.REF_IN_2 - - - - **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. - - - - - -ReferenceLevelDataType ----------------------- - -.. py:class:: ReferenceLevelDataType - - .. py:attribute:: ReferenceLevelDataType.MECHANICAL_ATTENUATOR_DISABLED - - - - The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. - - - - - - .. py:attribute:: ReferenceLevelDataType.DEFAULT - - - - The data is the default configuration data. - - - - - -ReferenceTriggerDigitalEdgeEdge -------------------------------- - -.. py:class:: ReferenceTriggerDigitalEdgeEdge - - .. py:attribute:: ReferenceTriggerDigitalEdgeEdge.RISING - - - - The trigger asserts on the rising edge of the signal. - - - - - - .. py:attribute:: ReferenceTriggerDigitalEdgeEdge.FALLING - - - - The trigger asserts on the falling edge of the signal - - - - - -ReferenceTriggerIqPowerEdgeSlope --------------------------------- - -.. py:class:: ReferenceTriggerIqPowerEdgeSlope - - .. py:attribute:: ReferenceTriggerIqPowerEdgeSlope.RISING - - - - The trigger asserts when the signal power is rising. - - - - - - .. py:attribute:: ReferenceTriggerIqPowerEdgeSlope.FALLING - - - - The trigger asserts when the signal power is falling. - - - - - -ReferenceTriggerOspDelayEnabled -------------------------------- - -.. py:class:: ReferenceTriggerOspDelayEnabled - - .. py:attribute:: ReferenceTriggerOspDelayEnabled.DISABLED - - - - Disables OSP delay for the Reference Trigger. - - - - - - .. py:attribute:: ReferenceTriggerOspDelayEnabled.ENABLED - - - - Enables OSP delay for the Reference Trigger. - - - - - -ReferenceTriggerType --------------------- - -.. py:class:: ReferenceTriggerType - - .. py:attribute:: ReferenceTriggerType.NONE - - - - No Reference Trigger is configured. - - - - - - .. py:attribute:: ReferenceTriggerType.DIGITAL_EDGE - - - - The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_ref_trigger_source` property. - - - - - - .. py:attribute:: ReferenceTriggerType.IQ_POWER_EDGE - - - - The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_slope` property. - - - - - - .. py:attribute:: ReferenceTriggerType.SOFTWARE_EDGE - - - - The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_REF_TRIGGER` as the **trigger** parameter. - - - - - - .. py:attribute:: ReferenceTriggerType.IQ_ANALOG_EDGE - - - - The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the :py:attr:`nirfsa.Session.IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE` property. This value is valid only for PXIe-5644/5645 devices. - - - - - -ResetWithOptionsStepsToOmit ---------------------------- - -.. py:class:: ResetWithOptionsStepsToOmit - - .. py:attribute:: ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES - - - - Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. - - - - - - .. py:attribute:: ResetWithOptionsStepsToOmit.NONE - - - - No step is omitted during reset. - - - - - - .. py:attribute:: ResetWithOptionsStepsToOmit.ROUTES - - - - Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. - - - - - -RfLbSigCondPathSel ------------------- - -.. py:class:: RfLbSigCondPathSel - - .. py:attribute:: RfLbSigCondPathSel.EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_1 - - - - yet to be defined - - - - - - .. py:attribute:: RfLbSigCondPathSel.EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_2 - - - - yet to be defined - - - - - -RfOutLoExport -------------- - -.. py:class:: RfOutLoExport - - .. py:attribute:: RfOutLoExport.DISABLED - - - - The LO signal is not exported from the RF OUT LO OUT terminal. - - - - - - .. py:attribute:: RfOutLoExport.ENABLED - - - - The LO signal is exported from the RF OUT LO OUT terminal. - - - - - - .. py:attribute:: RfOutLoExport.UNSPECIFIED - - - - The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. - - - - - -RfPathSelection ---------------- - -.. py:class:: RfPathSelection - - .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_1 - - - - The data is the default configuration data. - - - - - - .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_2 - - - - The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. - - - - - - .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_3 - - - - The data is the default configuration data. - - - - - - .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_4 - - - - The data is the default configuration data. - - - - - -SelfCalSteps ------------- - -.. py:class:: SelfCalSteps - - .. py:attribute:: SelfCalSteps.DIGITIZER_SELF_CAL - - - - Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.PRESELECTOR_ALIGNMENT - - - - Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.OMIT_NONE - - - - No calibration steps are omitted. - - - - - - .. py:attribute:: SelfCalSteps.GAIN_REFERENCE - - - - Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.IF_FLATNESS - - - - Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.LO_SELF_CAL - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.AMPLITUDE_ACCURACY - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.RESIDUAL_LO_POWER - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.IMAGE_SUPPRESSION - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.SYNTHESIZER_ALIGNMENT - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalSteps.DC_OFFSET - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - -SelfCalibrateRangeStepsToOmit ------------------------------ - -.. py:class:: SelfCalibrateRangeStepsToOmit - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.DIGITIZER_SELF_CAL - - - - Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.PRESELECTOR_ALIGNMENT - - - - Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.OMIT_NONE - - - - No calibration steps are omitted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.GAIN_REFERENCE - - - - Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.IF_FLATNESS - - - - Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.LO_SELF_CAL - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.DC_OFFSET - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - -SelfCalibrationStep -------------------- - -.. py:class:: SelfCalibrationStep - - .. py:attribute:: SelfCalibrationStep.PRESELECTOR_ALIGNMENT - - - - Calls for preselector alignment. - - - - - - .. py:attribute:: SelfCalibrationStep.GAIN_REFERENCE - - - - Measures the changes in gain since the last external calibration was run. - - - - - - .. py:attribute:: SelfCalibrationStep.IF_FLATNESS - - - - Measures the IF response of the entire system for each of the supported IF filters - - - - - - .. py:attribute:: SelfCalibrationStep.DIGITIZER_SELF_CAL - - - - Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. - - - - - - .. py:attribute:: SelfCalibrationStep.LO_SELF_CAL - - - - Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. - - - - - - .. py:attribute:: SelfCalibrationStep.AMPLITUDE_ACCURACY - - - - Selects the Amplitude Accuracy self-calibration step. - - - - - - .. py:attribute:: SelfCalibrationStep.RESIDUAL_LO_POWER - - - - Selects the Residual LO Power self-calibration step. - - - - - - .. py:attribute:: SelfCalibrationStep.IMAGE_SUPPRESSION - - - - Selects the Image Suppression self-calibration step. - - - - - - .. py:attribute:: SelfCalibrationStep.SYNTHESIZER_ALIGNMENT - - - - Selects the Synthesizer Alignment self-calibration step. - - - - - - .. py:attribute:: SelfCalibrationStep.DC_OFFSET - - - - Selects the DC Offset self-calibration step. - - - - - -Signal ------- - -.. py:class:: Signal - - .. py:attribute:: Signal.START_TRIGGER - - - - NI-RFSA routes a Start Trigger. - - - - - - .. py:attribute:: Signal.REF_TRIGGER - - - - NI-RFSA routes a Reference - - - - - - .. py:attribute:: Signal.ADVANCE_TRIGGER - - - - NI-RFSA routes an Advance - - - - - - .. py:attribute:: Signal.READY_FOR_START_EVENT - - - - NI-RFSA routes a Ready for Start Event. - - - - - - .. py:attribute:: Signal.READY_FOR_REF_EVENT - - - - NI-RFSA routes a Ready for Reference Event.. - - - - - - .. py:attribute:: Signal.END_OF_RECORD_EVENT - - - - NI-RFSA routes a End of Record Event. - - - - - - .. py:attribute:: Signal.DONE_EVENT - - - - NI-RFSA routes a Done Event. - - - - - - .. py:attribute:: Signal.REF_CLOCK - - - - NI-RFSA routes a Reference Clock. - - - - - - .. py:attribute:: Signal.USER - - - - NI-RFSA routes a User Defined Signal. - - - - - -SignalConditioningEnabled -------------------------- - -.. py:class:: SignalConditioningEnabled - - .. py:attribute:: SignalConditioningEnabled.ENABLED - - - - Enables signal conditioning. - - - - - - .. py:attribute:: SignalConditioningEnabled.BYPASSED - - - - Bypasses all signal conditioning. - - - - - -SmoothSpectrumEnabled ---------------------- - -.. py:class:: SmoothSpectrumEnabled - - .. py:attribute:: SmoothSpectrumEnabled.DISABLED - - - - Disables spectrum smoothing. - - - - - - .. py:attribute:: SmoothSpectrumEnabled.ENABLED - - - - Enables spectrum smoothing. - - - - - -SoftwareTriggerType -------------------- - -.. py:class:: SoftwareTriggerType - - .. py:attribute:: SoftwareTriggerType.START - - - - NI-RFSA sends a Start software trigger. - - - - - - .. py:attribute:: SoftwareTriggerType.REF - - - - NI-RFSA sends a Reference software trigger. - - - - - - .. py:attribute:: SoftwareTriggerType.ADVANCE - - - - NI-RFSA sends an Advance software trigger. - - - - - - .. py:attribute:: SoftwareTriggerType.ARM_REF - - - - NI-RFSA sends an Arm Reference software trigger. This trigger is not valid for the PXIe-5668. - - - - - -SparameterOrientation ---------------------- - -.. py:class:: SparameterOrientation - - .. py:attribute:: SparameterOrientation.PORT1_TOWARDS_DUT - - - - Port 1 of the S2P is oriented towards the DUT port. - - - - - - .. py:attribute:: SparameterOrientation.PORT2_TOWARDS_DUT - - - - Port 2 of the S2P is oriented towards the DUT port. - - - - - -SpectrumAveragingMode ---------------------- - -.. py:class:: SpectrumAveragingMode - - .. py:attribute:: SpectrumAveragingMode.NO - - - - Configures NI-RFSA to perform no averaging on acquisitions. - - - - - - .. py:attribute:: SpectrumAveragingMode.RMS - - - - Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. - - - - - - .. py:attribute:: SpectrumAveragingMode.VECTOR - - - - Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. - - - - - - .. py:attribute:: SpectrumAveragingMode.PEAK_HOLD - - - - Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. - - - - - - .. py:attribute:: SpectrumAveragingMode.MIN_HOLD - - - - Configures NI-RFSA to perform no averaging on acquisitions. - - - - - - .. py:attribute:: SpectrumAveragingMode.SCALAR - - - - Configures NI-RFSA to perform no averaging on acquisitions. - - - - - - .. py:attribute:: SpectrumAveragingMode.LOG - - - - Configures NI-RFSA to perform no averaging on acquisitions. - - - - - -SpectrumFftWindowType ---------------------- - -.. py:class:: SpectrumFftWindowType - - .. py:attribute:: SpectrumFftWindowType.UNIFORM - - - - No window is applied. - - - - - - .. py:attribute:: SpectrumFftWindowType.HANNING - - - - The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. - - - - - - .. py:attribute:: SpectrumFftWindowType.HAMMING - - - - A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. - - - - - - .. py:attribute:: SpectrumFftWindowType.BLACKMAN_HARRIS - - - - A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) - - - - - - .. py:attribute:: SpectrumFftWindowType.EXACT_BLACKMAN - - - - An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) - - - - - - .. py:attribute:: SpectrumFftWindowType.BLACKMAN - - - - A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) - - - - - - .. py:attribute:: SpectrumFftWindowType.FLAT_TOP - - - - The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) - - - - - - .. py:attribute:: SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS - - - - A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) - - - - - - .. py:attribute:: SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS - - - - A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) - - - - - - .. py:attribute:: SpectrumFftWindowType.LOW_SIDE_LOBE - - - - The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window - - - - - - .. py:attribute:: SpectrumFftWindowType.GAUSSIAN - - - - A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window - - - - - - .. py:attribute:: SpectrumFftWindowType.KAISER_BESSEL - - - - A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind - - - - - -SpectrumResolutionBandwidthType -------------------------------- - -.. py:class:: SpectrumResolutionBandwidthType - - .. py:attribute:: SpectrumResolutionBandwidthType.THREE_DECIBELS - - - - Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. - - - - - - .. py:attribute:: SpectrumResolutionBandwidthType.SIX_DECIBELS - - - - Defines the RBW in terms of the 6 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. - - - - - - .. py:attribute:: SpectrumResolutionBandwidthType.BIN_WIDTH - - - - Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. - - - - - - .. py:attribute:: SpectrumResolutionBandwidthType.EQUIVALENT_NOISE_BANDWIDTH - - - - Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. - - - - - -StartTriggerDigitalEdgeEdge ---------------------------- - -.. py:class:: StartTriggerDigitalEdgeEdge - - .. py:attribute:: StartTriggerDigitalEdgeEdge.RISING - - - - The trigger asserts on the rising edge of the signal.PXI-5661, PXIe-5663/5663E/5665/5668 - - - - - - .. py:attribute:: StartTriggerDigitalEdgeEdge.FALLING - - - - The trigger asserts on the falling edge of the signal | PXIe-5668 - - - - - -StartTriggerType ----------------- - -.. py:class:: StartTriggerType - - .. py:attribute:: StartTriggerType.NONE - - - - No Start Trigger is configured. - - - - - - .. py:attribute:: StartTriggerType.DIGITAL_EDGE - - - - The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_start_trigger_source` property. - - - - - - .. py:attribute:: StartTriggerType.SOFTWARE_EDGE - - - - The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_START_TRIGGER` as the value of the **trigger** parameter. - - - - - -StepsToOmit ------------ - -.. py:class:: StepsToOmit - - .. py:attribute:: StepsToOmit.DEEMBEDDING_TABLES - - - - Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. - - - - - - .. py:attribute:: StepsToOmit.NONE - - - - No step is omitted during reset. - - - - - - .. py:attribute:: StepsToOmit.ROUTES - - - - Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. - - - - - -SyncRefTriggerDelayEnabled --------------------------- - -.. py:class:: SyncRefTriggerDelayEnabled - - .. py:attribute:: SyncRefTriggerDelayEnabled.DISABLED - - - - Disables synchronization reference trigger delay. - - - - - - .. py:attribute:: SyncRefTriggerDelayEnabled.ENABLED - - - - Enables synchronization reference trigger delay. - - - - - -UserSourcePulseWidthUnits -------------------------- - -.. py:class:: UserSourcePulseWidthUnits - - .. py:attribute:: UserSourcePulseWidthUnits.SECONDS - - - - Units are seconds. - - - - - - .. py:attribute:: UserSourcePulseWidthUnits.CLOCK_PERIODS - - - - Units are clock periods. - - - - - - - diff --git a/docs/nirfsa/errors.rst b/docs/nirfsa/errors.rst deleted file mode 100644 index f0071083f3..0000000000 --- a/docs/nirfsa/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nirfsa.errors - - .. exception:: Error - - Base exception type that all NI-RFSA exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nirfsa.errors - - .. exception:: DriverError - - An error originating from the NI-RFSA driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nirfsa.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nirfsa.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nirfsa.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-RFSA driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nirfsa.errors - - .. exception:: DriverTooNewError - - An error due to the NI-RFSA driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nirfsa.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: nirfsa.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: nirfsa.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: nirfsa.errors - - .. exception:: DriverWarning - - A warning originating from the NI-RFSA driver - - - diff --git a/docs/nirfsa/examples.rst b/docs/nirfsa/examples.rst deleted file mode 100644 index f193159032..0000000000 --- a/docs/nirfsa/examples.rst +++ /dev/null @@ -1,23 +0,0 @@ -Examples -======== - -`You can download all nirfsa examples for latest version here `_ - -nirfsa_getting_started_iq.py ----------------------------- - -.. literalinclude:: ../../src/nirfsa/examples/nirfsa_getting_started_iq.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nirfsa_getting_started_iq.py) `_ - -nirfsa_getting_started_spectrum.py ----------------------------------- - -.. literalinclude:: ../../src/nirfsa/examples/nirfsa_getting_started_spectrum.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nirfsa_getting_started_spectrum.py) `_ - diff --git a/docs/nirfsa/grpc_session_options.rst b/docs/nirfsa/grpc_session_options.rst deleted file mode 100644 index 8176959ea0..0000000000 --- a/docs/nirfsa/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-RFSA over gRPC - -.. py:currentmodule:: nirfsa - - - -Creating a gRPC channel ------------------------ - -Using NI-RFSA over gRPC requires the ``grpc`` extra:: - - $ python -m pip install nirfsa[grpc] - -Every NI-RFSA gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`nirfsa.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-RFSA runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import nirfsa - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = nirfsa.GrpcSessionOptions(channel, '') - with nirfsa.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`nirfsa.SessionInitializationBehavior` diff --git a/docs/nirfsa/index.rst b/docs/nirfsa/index.rst deleted file mode 100644 index 031498c9c7..0000000000 --- a/docs/nirfsa/index.rst +++ /dev/null @@ -1,30 +0,0 @@ - -NI-RFSA Python API Documentation -================================ - -.. include:: about_nirfsa.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nirfsa - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nirfsa/installation.inc b/docs/nirfsa/installation.inc deleted file mode 100644 index 2bbf3c6472..0000000000 --- a/docs/nirfsa/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nirfsa_installation-section: - -Installation ------------- - -As a prerequisite to using the **nirfsa** module, you must install the NI-RFSA runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-RFSA**) can be installed with `pip `_:: - - $ python -m pip install nirfsa - - diff --git a/docs/nirfsa/nirfsa.rst b/docs/nirfsa/nirfsa.rst deleted file mode 100644 index 99ce0c0cf4..0000000000 --- a/docs/nirfsa/nirfsa.rst +++ /dev/null @@ -1,9 +0,0 @@ -nirfsa module -============= - -.. include:: installation.inc - -.. include:: ../_static/nirfsa_usage.inc - -.. include:: toc.inc - diff --git a/docs/nirfsa/rep_caps.rst b/docs/nirfsa/rep_caps.rst deleted file mode 100644 index 70a6a514b8..0000000000 --- a/docs/nirfsa/rep_caps.rst +++ /dev/null @@ -1,88 +0,0 @@ -.. py:module:: nirfsa - :noindex: - -.. py:currentmodule:: nirfsa.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niRFSA_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -ports ------ - - .. py:attribute:: nirfsa.Session.ports[] - - .. code:: python - - session.ports['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -los ---- - - .. py:attribute:: nirfsa.Session.los[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.los['0-2'].channel_enabled = True - - passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.los['LO0-LO2'].channel_enabled = True - - passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. - - -device_temperatures -------------------- - - .. py:attribute:: nirfsa.Session.device_temperatures[] - - .. code:: python - - session.device_temperatures['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -channels --------- - - .. py:attribute:: nirfsa.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - - diff --git a/docs/nirfsa/status.inc b/docs/nirfsa/status.inc deleted file mode 100644 index 2040a70284..0000000000 --- a/docs/nirfsa/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-RFSA Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-RFSA (nirfsa) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nirfsaLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nirfsaPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nirfsaDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nirfsaOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nirfsaOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nirfsaLatestVersion| image:: http://img.shields.io/pypi/v/nirfsa.svg - :alt: Latest NI-RFSA Version - :target: http://pypi.python.org/pypi/nirfsa - - -.. |nirfsaPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsa.svg - :alt: NI-RFSA supported Python versions - :target: http://pypi.python.org/pypi/nirfsa - - -.. |nirfsaDocs| image:: https://readthedocs.org/projects/nirfsa/badge/?version=latest - :alt: NI-RFSA Python API Documentation Status - :target: https://nirfsa.readthedocs.io/en/latest - - -.. |nirfsaOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsa.svg - :alt: Open Issues + Pull Requests for NI-RFSA - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsa - - -.. |nirfsaOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsa.svg - :alt: Pull Requests for NI-RFSA - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsa - - diff --git a/docs/nirfsa/toc.inc b/docs/nirfsa/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/nirfsa/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/nirfsg/.readthedocs.yaml b/docs/nirfsg/.readthedocs.yaml deleted file mode 100644 index 037adad77d..0000000000 --- a/docs/nirfsg/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nirfsg/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nirfsg/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nirfsg/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nirfsg/about_nirfsg.inc b/docs/nirfsg/about_nirfsg.inc deleted file mode 100644 index f3d1bb4d3c..0000000000 --- a/docs/nirfsg/about_nirfsg.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nirfsg** module provides a Python API for NI-RFSG. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nirfsg** supports all the Operating Systems supported by NI-RFSG. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nirfsg**. - diff --git a/docs/nirfsg/class.rst b/docs/nirfsg/class.rst deleted file mode 100644 index 7b8806965f..0000000000 --- a/docs/nirfsg/class.rst +++ /dev/null @@ -1,10984 +0,0 @@ -.. py:module:: nirfsg - -Session -======= - -.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) - - - - Opens a session to the device you specify as the :py:attr:`nirfsg.Session.RESOURCE_NAME` and returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. - - This method also configures the device through the :py:attr:`nirfsg.Session.OPTION_STRING` input. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Simulating an NI RF Signal Generator `_ - - - - .. note:: For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending /*ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param resource_name: - - - Specifies the resource name of the device to initialize. - - For NI-DAQmx devices, the syntax is the device name specified in MAX. Typical default names for NI-DAQmx devices in MAX are Dev2 or PXISlot2. You can rename an NI-DAQmx device in MAX. - - You can also specify the name of an IVI logical name configured with the IVI Configuration utility. Refer to the *IVI* topic of the *Measurement & Automation Explorer Help* for more information. - - - - .. note:: NI-RFSG device names are not case-sensitive. However, all IVI names, such as logical names, are case-sensitive. If you use an IVI logical name, make sure the name is identical to the name shown in the IVI Configuration Utility. - - - :type resource_name: str - - :param id_query: - - - Specifies whether you want NI-RFSG to perform an ID query. - - **Defined Values** : - - +-----------+--------------------------+ - | Value | Description | - +===========+==========================+ - | True (1) | Perform ID query. | - +-----------+--------------------------+ - | False (0) | Do not perform ID query. | - +-----------+--------------------------+ - - - :type id_query: bool - - :param reset_device: - - - Specifies whether you want to reset the NI-RFSG device during the initialization procedure. - - **Defined Values** : - - +-----------+----------------------+ - | Value | Description | - +===========+======================+ - | True (1) | Reset device. | - +-----------+----------------------+ - | False (0) | Do not reset device. | - +-----------+----------------------+ - - - :type reset_device: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: nirfsg.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: abort() - - Stops signal generation. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Programming State Model `_ - - - - - -allocate_arb_waveform ---------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: allocate_arb_waveform(waveform_name, size_in_samples) - - Allocates onboard memory space for the arbitrary waveform. - - Use this method to specify the total size of a waveform before writing the data. Use this method only if you are calling the :py:meth:`nirfsg.Session.WriteArbWaveform` method multiple times to write a large waveform in smaller blocks. - - The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming Waveform Data `_ - - - - - - :param waveform_name: - - - Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - - - - :type waveform_name: str - :param size_in_samples: - - - Specifies the number of samples to reserve in the onboard memory for the specified waveform. Each I/Q pair is considered one sample. - - - - - :type size_in_samples: int - -change_external_calibration_password ------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: change_external_calibration_password(old_password, new_password) - - Changes the external calibration password of the device. - - **Supported Devices:** PXIe-5611, PXIe-5653/5654, PXIe-5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param old_password: - - - Specifies the old (current) external calibration password. This password is case sensitive. - - - - - :type old_password: str - :param new_password: - - - Specifies the new (desired) external calibration password. - - - - - :type new_password: str - -check_generation_status ------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: check_generation_status() - - Checks the status of the generation. - - Call this method to check for any errors that might occur during the signal generation or to check whether the device has finished generating. - - **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow ` - - - - - - :rtype: bool - :return: - - - Returns information about the completion of signal generation. - - **Defined Values** : - - +-------+---------------------------------+ - | Value | Description | - +=======+=================================+ - | True | Signal generation is complete. | - +-------+---------------------------------+ - | False | Signal generation is occurring. | - +-------+---------------------------------+ - - - -check_if_script_exists ----------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: check_if_script_exists(script_name) - - Returns whether the script that you specify as :py:attr:`nirfsg.Session.SCRIPT_NAME` exists. - - **Supported Devices** : PXIe-5673/5673E. PXIe-5830/5831/5840/5841/5842/5860 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param script_name: - - - Specifies the name of the script. This string is case-insensitive. - - - - - :type script_name: str - - :rtype: bool - :return: - - - Returns True if the script exists. - - **Defined Values** : - - +-------+----------------------------+ - | Value | Description | - +=======+============================+ - | True | The script exists. | - +-------+----------------------------+ - | False | The script does not exist. | - +-------+----------------------------+ - - - -check_if_waveform_exists ------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: check_if_waveform_exists(waveform_name) - - Returns whether the waveform that you specify as :py:attr:`nirfsg.Session.WAVEFORM_NAME` exists. - - **Supported Devices** : PXIe-5673/5673E, PXIe-5830/5831/5840/5841/5842/5860 - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param waveform_name: - - - Specifies the name used to store the waveform. This string is case-insensitive. - - - - - :type waveform_name: str - - :rtype: bool - :return: - - - Returns True if the waveform exists. - - **Defined Values** : - - +-------+------------------------------+ - | Value | Description | - +=======+==============================+ - | True | The waveform exists. | - +-------+------------------------------+ - | False | The waveform does not exist. | - +-------+------------------------------+ - - - -clear_all_arb_waveforms ------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: clear_all_arb_waveforms() - - Deletes all currently defined waveforms and scripts. - - The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - -clear_arb_waveform ------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: clear_arb_waveform(waveform_name) - - Deletes a specified waveform from the pool of currently defined waveforms. - - The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param waveform_name: - - - Name of the stored waveform to delete. - - - - - :type waveform_name: str - -clear_self_calibrate_range --------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: clear_self_calibrate_range() - - Clears the data obtained from the :py:meth:`nirfsg.Session.self_calibrate_range` method. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - -close ------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: close() - - Aborts any signal generation in progress and destroys the instrument driver session. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - `NI-RFSG Programming State Model `_ - - - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: commit() - - Programs the device with the correct settings. - - Calling this method moves the NI-RFSG device from the Configuration state to the Committed state. After this method executes, a change to any property reverts the NI-RFSG device to the Configuration state. - - **Supported devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Programming State Model `_ - - - - - -configure_deembedding_table_interpolation_linear ------------------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_deembedding_table_interpolation_linear(port, table_name, format) - - Selects the linear interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - :param format: - - - Specifies the format of parameters to interpolate. **Defined Values** : - - +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +==================================================+================+=========================================================================================================================================+ - | :py:data:`~nirfsg.Format.REAL_AND_IMAGINARY` | 26000 (0x6590) | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | - +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.Format.MAGNITUDE_AND_PHASE` | 26001 (0x6591) | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | - +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.Format.MAGNITUDE_DB_AND_PHASE` | 26002 (0x6592) | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | - +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - - :type format: :py:data:`nirfsg.Format` - -configure_deembedding_table_interpolation_nearest -------------------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_deembedding_table_interpolation_nearest(port, table_name) - - Selects the nearest interpolation method. - - NI-RFSG uses the parameters of the table nearest to the carrier frequency for de-embedding. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - -configure_deembedding_table_interpolation_spline ------------------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_deembedding_table_interpolation_spline(port, table_name) - - Selects the spline interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - -configure_digital_edge_script_trigger -------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_digital_edge_script_trigger(source, edge) - - Configures the specified Script Trigger for digital edge triggering. - - The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Edge Trigger `_ - - - - - .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_edge_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.configure_digital_edge_script_trigger` - - - :param source: - - - Specifies the source terminal for the digital edge Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_script_trigger_source` property to this value. - - - - - :type source: str - :param edge: - - - Specifies the active edge for the digital edge Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_script_trigger_edge` property to this value. - - - - - :type edge: :py:data:`nirfsg.ScriptTriggerDigitalEdgeEdge` - -configure_digital_edge_start_trigger ------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_digital_edge_start_trigger(source, edge) - - Configures the Start Trigger for digital edge triggering. - - The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Digital Edge Trigger `_ - - - - .. note:: For the PXIe-5654/5654 with PXIe-5696, the Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - - - :param source: - - - Specifies the source terminal for the digital edge trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property to this value. - - - - - :type source: str - :param edge: - - - Specifies the active edge for the Start Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property to this value. - - - - - :type edge: :py:data:`nirfsg.StartTriggerDigitalEdgeEdge` - -configure_digital_level_script_trigger --------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_digital_level_script_trigger(source, level) - - Configures a specified Script Trigger for digital level triggering. - - The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Level Trigger `_ - - - - - .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_level_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.configure_digital_level_script_trigger` - - - :param source: - - - Specifies the trigger source terminal for the digital level Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property to this value. - - - - - :type source: str - :param level: - - - Specifies the active level for the digital level Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_level_script_trigger_active_level` property to this value. - - - - - :type level: int - -configure_ref_clock -------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_ref_clock(ref_clock_source, ref_clock_rate) - - Configures the NI-RFSG device Reference Clock. - - The Reference Clock ensures that the NI-RFSG devices are operating from a common timebase. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5672 Timing Configurations `_ - - `PXIe-5673 Timing Configurations `_ - - `PXIe-5673E Timing Configurations `_ - - `PXIe-5830 Timing Configurations `_ - - `PXIe-5831 Timing Configurations `_ - - - - - - :param ref_clock_source: - - - Specifies the source of Reference Clock signal. - - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Values | Description | - +=================+=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the Getting Started Guide for the instrument. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831, lock the external signal to the PXIe-3622 REF IN connector. For the PXIe-5832, lock the external signal to the PXIe-3623 REF IN connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the Getting Started Guide for the instrument. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the clock source. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655/5842. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn2" | \- | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_ClkMaster" | This value is valid on only the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. **PXIe-5831 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. **PXIe-5832 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3623 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - - :type ref_clock_source: str - :param ref_clock_rate: - - - Specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. The default value is :py:data:`~nirfsg.NIRFSG_VAL_AUTO`, which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. This parameter is only valid when the :py:attr:`nirfsg.Session.ref_clock_source` parameter is set to ClkIn, RefIn or RefIn2. Refer to the :py:attr:`nirfsg.Session.ref_clock_rate` property for possible values. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type ref_clock_rate: float - -configure_rf ------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_rf(frequency, power_level) - - Configures the frequency and power level of the RF output signal. - - The PXI-5670/5671, PXIe-5672, and PXIe-5860 device must be in the Configuration state before calling this method. The PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 device can be in the Configuration or Generation state when you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - - - - - :param frequency: - - - Specifies the frequency of the generated RF signal, in hertz. For arbitrary waveform generation, this parameter specifies the center frequency of the signal. - - **Units** : hertz (Hz) - - - - - :type frequency: float - :param power_level: - - - Specifies either the average power level or peak power level of the generated RF signal, depending on the :py:attr:`nirfsg.Session.power_level_type` property. - - **Units** : dBm - - - - - :type power_level: float - -configure_software_script_trigger ---------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_software_script_trigger() - - Configures the Script Trigger for software triggering. - - Refer to the :py:meth:`nirfsg.Session.send_software_edge_trigger` method for more information about using the software Script Trigger. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Trigger Types `_ - - - - - .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].configure_software_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.configure_software_script_trigger` - - -configure_software_start_trigger --------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: configure_software_start_trigger() - - Configures the Start Trigger for software triggering. - - Refer to the :py:meth:`nirfsg.Session.send_software_edge_trigger` method for more information about using a software trigger. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Trigger Types `_ - - - - - -create_deembedding_sparameter_table_array ------------------------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, sparameter_orientation) - - Creates an s-parameter de-embedding table for the port from the input data. - - If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview`_ - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - - - - :type table_name: str - :param frequencies: - - - Specifies the frequencies for the :py:attr:`nirfsg.Session.SPARAMETER_TABLE` rows. Frequencies must be unique and in ascending order. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - :type frequencies: numpy.array(dtype=numpy.float64) - :param sparameter_table: - - - Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. - - - - - :type sparameter_table: numpy.array(dtype=numpy.complex128) - :param sparameter_orientation: - - - Specifies the orientation of the input data relative to the port on the DUT port. - - **Defined Values** : - - +------------------------------------------------------------+----------------+-----------------------------------------------------+ - | Name | Value | Description | - +============================================================+================+=====================================================+ - | :py:data:`~nirfsg.SparameterOrientation.PORT1_TOWARDS_DUT` | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+----------------+-----------------------------------------------------+ - | :py:data:`~nirfsg.SparameterOrientation.PORT2_TOWARDS_DUT` | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+----------------+-----------------------------------------------------+ - - - :type sparameter_orientation: :py:data:`nirfsg.SparameterOrientation` - -create_deembedding_sparameter_table_s2p_file --------------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) - - Creates an S-parameter de-embedding table for the port based on the specified S2P file. - - If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview `_ - - `S-parameters `_ - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842 is empty string. - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - - - - :type table_name: str - :param s2p_file_path: - - - Specifies the path to the S2P file that contains de-embedding information for the specified port. - - - - - :type s2p_file_path: str - :param sparameter_orientation: - - - Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : - - +------------------------------------------------------------+----------------+-----------------------------------------------------+ - | Name | Value | Description | - +============================================================+================+=====================================================+ - | :py:data:`~nirfsg.SparameterOrientation.PORT1_TOWARDS_DUT` | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+----------------+-----------------------------------------------------+ - | :py:data:`~nirfsg.SparameterOrientation.PORT2_TOWARDS_DUT` | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | - +------------------------------------------------------------+----------------+-----------------------------------------------------+ - - - :type sparameter_orientation: :py:data:`nirfsg.SparameterOrientation` - -delete_all_deembedding_tables ------------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: delete_all_deembedding_tables() - - Deletes all configured de-embedding tables for the session. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - -delete_deembedding_table ------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: delete_deembedding_table(port, table_name) - - Deletes the selected de-embedding table for a given port. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :param port: - - - Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - - - - :type port: str - :param table_name: - - - Specifies the name of the table. - - - - - :type table_name: str - -delete_script -------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: delete_script(script_name) - - Deletes a specified script from the pool of currently defined scripts. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param script_name: - - - Specifies the name of the script to delete. This string is case-insensitive. - - - - - :type script_name: str - -disable_script_trigger ----------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: disable_script_trigger() - - Configures the device not to wait for the specified Script Trigger. - - Call this method only if you previously configured a Script Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - - - - .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].disable_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.disable_script_trigger` - - -disable_start_trigger ---------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: disable_start_trigger() - - Configures the device not to wait for a Start Trigger. - - This method is necessary only if you previously configured a Start Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - - - - -error_message -------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: error_message(error_code) - - Converts an error code returned by an NI-RFSG method into a user-readable string. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param error_code: - - - Pass the status parameter that is returned from any NI-RFSG method. - - **Default Value** : 0 (VI_SUCCESS) - - - - - :type error_code: int - - :rtype: str - :return: - - - Returns the user-readable message string that corresponds to the status code you specify. - - - - - -get_all_named_waveform_names ----------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_all_named_waveform_names() - - Return names of the waveforms present in the memory. - - **Supported Devices** :PXIe-5830/5831/5840/5841/5842E - - - - - - :rtype: list of str - :return: - - - Returns a list of string having waveform names. - - - - - -get_all_script_names --------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_all_script_names() - - Return names of the scripts present in the memory. - - **Supported Devices** :PXIe-5830/5831/5840/5841/5842E - - - - - - :rtype: list of str - :return: - - - Returns a list of string having script names. - - - - - -get_deembedding_sparameters ---------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_deembedding_sparameters() - - Returns the S-parameters used for de-embedding a measurement on the selected port. - - This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. - - If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: The port orientation for the returned S-parameters is normalized to :py:data:`~nirfsg.SparameterOrientation.PORT1_TOWARDS_DUT`. - - - - :rtype: numpy.array(dtype=numpy.complex128) - :return: - - - Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. - - - - - -get_error ---------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_error() - - Retrieves and then clears the IVI error information for the session or the current execution thread. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 - - - - .. note:: If the **bufferSize** parameter is 0, this method does not clear the error information. By passing 0 to the **bufferSize** parameter, you can determine the buffer size required to obtain the entire :py:attr:`nirfsg.Session.ERROR_DESCRIPTION` string. You can then call this method again with a sufficiently large buffer. If you specify a valid IVI session for the :py:attr:`nirfsg.Session.VI` parameter, this method retrieves and clears the error information for the session. If you pass VI_NULL for the :py:attr:`nirfsg.Session.VI` parameter, this method retrieves and clears the error information for the current execution thread. If the :py:attr:`nirfsg.Session.VI` parameter is an invalid session, this method does nothing and returns an error. Normally, the error information describes the first error that occurred since the user last called this method or the :py:meth:`nirfsg.Session.ClearError` method. - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :rtype: tuple (error_code, error_description) - - WHERE - - error_code (int): - - - Returns the error code for the session or execution thread. If you pass 0 for the **BufferSize** parameter, you can pass VI_NULL for this parameter. - - - - - error_description (str): - - - Returns the :py:attr:`nirfsg.Session.ERROR_DESCRIPTION` for the IVI session or execution thread. - - If there is no description, the method returns an empty string. The buffer must contain at least as many elements as the value you specify with the **bufferSize** parameter. If the :py:attr:`nirfsg.Session.ERROR_DESCRIPTION`, including the terminating NULL byte, contains more bytes than you indicate with the **bufferSize** parameter, the method copies **bufferSize** - 1 bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is 123456 and the buffer size is 4, the method places 123 into the buffer and returns 7. If you pass 0, you can pass VI_NULL for this parameter. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - -get_ext_cal_last_date_and_time ------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_ext_cal_last_date_and_time() - - Returns the date and time of the last successful external calibration. - - The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :rtype: hightime.datetime - :return: - - - - - - -get_max_settable_power ----------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_max_settable_power() - - Returns the maximum settable output power level for the current configuration. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - - :rtype: float - :return: - - - Returns maximum settable power level in dBm. - - - - - -get_script ----------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_script(script_name) - - Returns the content of specified script. - - **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param script_name: - - - Specifies the name of the script. This string is case-insensitive. - - - - - :type script_name: str - - :rtype: str - :return: - - - Returns the script. - - - - - -get_self_cal_last_date_and_time -------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_self_cal_last_date_and_time(module=nirfsg.Module.PRIMARY_MODULE) - - Returns the date and time of the last successful self-calibration. - - The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param module: - - - Specifies from which stand-alone module to retrieve the last successful self-calibration date and time. - - - - - :type module: :py:data:`nirfsg.Module` - - :rtype: hightime.datetime - :return: - - - - - - -get_self_calibration_temperature --------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_self_calibration_temperature(module=nirfsg.Module.PRIMARY_MODULE) - - Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. - - **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 - - - - - - :param module: - - - Specifies from which stand-alone module to retrieve the last successful self-calibration temperature. - **Default Value** : :py:data:`~nirfsg.Module.PRIMARY_MODULE` - **Defined Values** : - - +------------------------------------------+----------------+---------------------------------------------------------------------+ - | Name | Value | Description | - +==========================================+================+=====================================================================+ - | :py:data:`~nirfsg.Module.PRIMARY_MODULE` | 13000 (0x32c8) | The stand-alone device or the main module in a multi-module device. | - +------------------------------------------+----------------+---------------------------------------------------------------------+ - | :py:data:`~nirfsg.Module.AWG` | 13001 (0x32c9) | The AWG associated with the primary module. | - +------------------------------------------+----------------+---------------------------------------------------------------------+ - | :py:data:`~nirfsg.Module.LO` | 13002 (0x32ca) | The LO associated with the primary module. | - +------------------------------------------+----------------+---------------------------------------------------------------------+ - - - :type module: :py:data:`nirfsg.Module` - - :rtype: float - :return: - - - Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. - - - - - -get_terminal_name ------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_terminal_name(signal, signal_identifier) - - Returns the fully-qualified name of the specified signal. - - The fully-qualified name is helpful to automatically route signals in a multisegment chassis. - - **Supported Devices** : PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `Syntax for Terminal Names `_ - - - - - - :param signal: - - - Specifies the signal to query. **Defined Values** : - - +---------------------------------------------------------------+---------+--------------------------------------------+ - | Name | Value | Description | - +===============================================================+=========+============================================+ - | :py:data:`~nirfsg.Signal.START_TRIGGER` | 0 (0x0) | Exports a Start Trigger. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.Signal.SCRIPT_TRIGGER` | 1 (0x1) | Exports a Script Trigger. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.Signal.MARKER_EVENT` | 2 (0x2) | Exports a Marker Event. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.Signal.REF_CLOCK` | 3 (0x3) | Exports the Reference Clock. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.Signal.STARTED_EVENT` | 4 (0x4) | Exports a Started Event. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.Signal.DONE_EVENT` | 5 (0x5) | Exports a Done Event. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_CONFIGURATION_LIST_STEP_TRIGGER` | 6 (0x6) | Exports a Configuration List Step Trigger. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_CONFIGURATION_SETTLED_EVENT` | 7 (0x7) | Exports a Configuration Settled Event. | - +---------------------------------------------------------------+---------+--------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type signal: :py:data:`nirfsg.Signal` - :param signal_identifier: - - - Specifies which instance of the selected signal to query. This parameter is necessary when you set the :py:attr:`nirfsg.Session.SIGNAL` parameter to :py:data:`~nirfsg.NIRFSG_VAL_SCRIPT_TRIGGER` or :py:data:`~nirfsg.Signal.MARKER_EVENT` . Otherwise, set the :py:attr:`nirfsg.Session.SIGNAL_IDENTIFIER` parameter to "" (empty string). **Possible Values** : - - +------------------+-----------------------------+ - | Possible Value | Description | - +==================+=============================+ - | "marker0" | Specifies Marker 0. | - +------------------+-----------------------------+ - | "marker1" | Specifies Marker 1. | - +------------------+-----------------------------+ - | "marker2" | Specifies Marker 2. | - +------------------+-----------------------------+ - | "marker3" | Specifies Marker 3. | - +------------------+-----------------------------+ - | "scriptTrigger0" | Specifies Script Trigger 0. | - +------------------+-----------------------------+ - | "scriptTrigger1" | Specifies Script Trigger 1. | - +------------------+-----------------------------+ - | "scriptTrigger2" | Specifies Script Trigger 2. | - +------------------+-----------------------------+ - | "scriptTrigger3" | Specifies Script Trigger 3. | - +------------------+-----------------------------+ - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type signal_identifier: str - - :rtype: str - :return: - - - Returns the string to use as the source for other devices. - - - - - -get_waveform_burst_start_locations ----------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_waveform_burst_start_locations() - - Returns the burst start locations of the waveform stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_start_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.get_waveform_burst_start_locations` - - - :rtype: list of float - :return: - - - Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - -get_waveform_burst_stop_locations ---------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_waveform_burst_stop_locations() - - Returns the burst stop locations of the waveform stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_stop_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.get_waveform_burst_stop_locations` - - - :rtype: list of float - :return: - - - Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - -get_waveform_marker_event_locations ------------------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: get_waveform_marker_event_locations() - - Returns the marker locations associated with the waveform and the marker stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.markers[ ... ].get_waveform_marker_event_locations` - - To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.get_waveform_marker_event_locations` - - - :rtype: list of float - :return: - - - Returns the marker locations stored in the NI-RFSG database for the channel you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - -initiate --------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: initiate() - - Initiates signal generation, causing the NI-RFSG device to leave the Configuration state and enter the Generation state. - - If the settings have not been committed to the device before you call this method, they are committed by this method. The operation returns when the RF output signal settles. To return to the Configuration state, call the :py:meth:`nirfsg.Session.abort` method. - - **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -load_configurations_from_file ------------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: load_configurations_from_file(file_path) - - Loads the configurations from the specified file to the NI-RFSG driver session. - - The VI does an implicit reset before loading the configurations from the file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.load_configurations_from_file` - - - :param file_path: - - - Specifies the absolute path of the file from which the NI-RFSG loads the configurations. - - - - - :type file_path: str - -lock ----- - - .. py:currentmodule:: nirfsg.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`nirfsg.Session.lock` method. - - A call to NI-RFSG locked the session. - - After a call to the :py:meth:`nirfsg.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`nirfsg.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`nirfsg.Session.lock` method and the - :py:meth:`nirfsg.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`nirfsg.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`nirfsg.Session.lock` method with a call to - the :py:meth:`nirfsg.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with nirfsg.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`nirfsg.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -perform_power_search --------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: perform_power_search() - - Performs a power search if the :py:attr:`nirfsg.Session.alc_control` property is disabled. - - Calling this method disables modulation for a short time while the device levels the output signal. - - **Supported Devices** : PXIe-5654 with PXIe-5696 - - **Related Topics** - - `Power Search `_ - - - - .. note:: Power search temporarily enables the ALC, so ensure the appropriate included cable is connected between the PXIe-5654 ALCIN connector and the PXIe-5696 ALCOUT connector to successfully perform a power search. - - - -perform_thermal_correction --------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: perform_thermal_correction() - - Corrects for any signal drift due to environmental temperature variation when generating the same signal for extended periods of time without a parameter change. - - Under normal circumstances of short-term signal generation, NI-RFSG performs thermal correction automatically by ensuring stable power levels, and you do not need to call this method. - - Use this method when generating the same signal for an extended period of time in a temperature-fluctuating environment. The NI-RFSG device must be in the Generation state before calling this method. - - **Supported Devices** : PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Thermal Management `_ - - `Impairment Calibration `_ - - - - - -query_arb_waveform_capabilities -------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: query_arb_waveform_capabilities() - - Queries and returns the waveform capabilities of the NI-RFSG device. - - These capabilities are related to the current device configuration. The NI-RFSG device must be in the Configuration or the Generation state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :rtype: tuple (max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size) - - WHERE - - max_number_waveforms (int): - - - Returns the value of the :py:attr:`nirfsg.Session.arb_max_number_waveforms` property. This value is the maximum number of waveforms you can write. - - - - - waveform_quantum (int): - - - Returns the value of the :py:attr:`nirfsg.Session.arb_waveform_quantum` property. If the waveform quantum is *q*, then the size of the waveform that you write should be a multiple of *q*. The units are expressed in samples. - - - - - min_waveform_size (int): - - - Returns the value of the :py:attr:`nirfsg.Session.arb_waveform_size_min` property. The number of samples of the waveform that you write must be greater than or equal to this value. - - - - - max_waveform_size (int): - - - Returns the value of the :py:attr:`nirfsg.Session.arb_waveform_size_max` property. The number of samples of the waveform that you write must be less than or equal to this value. - - - - - -read_and_download_waveform_from_file_tdms ------------------------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: read_and_download_waveform_from_file_tdms(waveform_name, file_path, waveform_index) - - Reads the waveforms from a TDMS file and downloads one waveform into each of the NI RF vector signal generators. - - This method reads the following information from the TDMS file and writes it into the NI-RFSG session: - - - Sample Rate - - PAPR - - Runtime Scaling - - RF Blanking Marker Locations - - RF Blanking Enabled - - Burst Start Locations - - Burst Stop Locations - - RF Blanking Marker Source - - Signal Bandwidth - - Waveform Size - - If RF blanking marker locations are present in the file but burst locations are not present, burst locations are calculated from RF blanking marker locations and stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - - :param waveform_name: - - - Specifies the name used to store the waveform. This string is case-insensitive. - - Example: - - "waveform::waveform0" - - - - - :type waveform_name: str - :param file_path: - - - Specifies the absolute path to the TDMS file from which the NI-RFSG reads the waveforms. - - - - - :type file_path: str - :param waveform_index: - - - Specifies the index of the waveform to be read from the TDMS file. - - - - - :type waveform_index: int - -reset ------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: reset() - - Resets all properties to their default values and moves the NI-RFSG device to the Configuration state. - - This method aborts the generation, deletes all de-embedding tables, clears all routes, and resets session properties to their initial values. During a reset, routes of signals between this and other devices are released, regardless of which device created the route. - - Generally, calling this method instead of the :py:meth:`nirfsg.Session.reset_device` method is acceptable. The :py:meth:`nirfsg.Session.Reset` method executes faster than the :py:meth:`nirfsg.Session.reset_device` method. - - To avoid resetting routes on the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using the :py:meth:`nirfsg.Session.reset_with_options` method, with **stepsToOmit** set to :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` . - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. - - - -reset_device ------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: reset_device() - - Performs a hard reset on the device which consists of the following actions: - - - Signal generation is stopped. - - All routes are released. - - External bidirectional terminals are tristated. - - FPGAs are reset. - - Hardware is configured to its default state. - - All session properties are reset to their default states. - - During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. - - - PXI-5610, PXI-5670/5671, PXIe-5672-- After calling this method, the device requires 25 seconds before returning to full functionality. NI-RFSG enforces this condition by adding a wait, if needed, the next time you try to access the device. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E - - **Related Topics** - - `Thermal Shutdown `_ - - - - .. note:: You must call the :py:meth:`nirfsg.Session.reset_device` method if the NI-RFSG device has shut down because of a high-temperature condition. - - - -reset_with_defaults -------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: reset_with_defaults() - - Performs a software reset of the device, returning it to the default state and applying any initial default settings from the IVI Configuration Store. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696,PXI-5670/5671, PXIe-5672/5673/5673E - - - - - -reset_with_options ------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: reset_with_options(steps_to_omit) - - Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. - - By default, this method exhibits the same behavior as :py:meth:`nirfsg.Session.Reset`. You can specify steps to omit using the steps to omit parameter. For example, if you specify :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` for the :py:attr:`nirfsg.Session.STEPS_TO_OMIT` parameter, this method does not release signal routes during the reset process. - - When routes of signals between two devices are released, they are released regardless of which device created the route. - - To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using this method instead of :py:meth:`nirfsg.Session.Reset`, with :py:attr:`nirfsg.Session.STEPS_TO_OMIT` set to :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES`. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param steps_to_omit: - - - Specifies a list of steps to skip during the reset process. The default value is :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.NONE`, which specifies that no step is omitted during reset. **Defined Values** : - - +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +===================================================================+=========+============================================================================================================================================================================================================+ - | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.NONE` | 0 (0x0) | No step is omitted during reset. | - +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.WAVEFORMS` | 1 (0x1) | Omits clearing waveforms. | - +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.SCRIPTS` | 2 (0x2) | Omits clearing scripts. | - +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` | 4 (0x4) | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | - +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES` | 8 (0x8) | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | - +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` is not supported in external calibration or alignment sessions. - You can combine multiple enums.ResetWithOptionsStepsToOmit flags using the bitwise OR (|) operator. - - - :type steps_to_omit: :py:data:`nirfsg.ResetWithOptionsStepsToOmit` - -save_configurations_to_file ---------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: save_configurations_to_file(file_path) - - Saves the configurations of the session to the specified file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.save_configurations_to_file` - - - :param file_path: - - - Specifies the absolute path of the file to which the NI-RFSG saves the configurations. - - - - - :type file_path: str - -select_arb_waveform -------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: select_arb_waveform(waveform_name) - - Specifies the waveform that is generated upon a call to the :py:meth:`nirfsg.Session._initiate` method when the generation_mode property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. - - You must specify a waveform using the :py:attr:`nirfsg.Session.NAME` parameter if you have written multiple waveforms. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - - :param waveform_name: - - - Specifies the name of the stored waveform to generate. This is a case-insensitive alphanumeric string that does not use reserved words. NI-RFSG sets the :py:attr:`nirfsg.Session.arb_selected_waveform` property to this value. - - - - - :type waveform_name: str - -self_cal --------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: self_cal() - - Performs an internal self-calibration on the device and associated modules that support self-calibration. - - If the calibration is successful, new calibration data and constants are stored in the onboard nonvolatile memory of the module. - - The PXIe-5841 maintains separate self-calibration data for both the PXIe-5841 standalone and when associated with the PXIe-5655. Use this method once for each intended configuration. - - **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. - - **PXIe-5860** - - While this VI is running on one channel, if there are any existing NI-RFSG or NI-RFSA sessions open on the other channel, they may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate or niRFSA Commit or niRFSA Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. - - - -self_calibrate_range --------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: self_calibrate_range(steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level) - - Self-calibrates all configurations within the specified frequency and peak power level limits. - - Self-calibration range data is valid until you restart the system or call the :py:meth:`nirfsg.Session.clear_self_calibrate_range` method. - - NI recommends that no external signals are present on the RF In or IQ In ports during the calibration. - - For best results, NI recommends that you perform self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit certain steps for faster calibration. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - .. note:: - This method does not update self-calibration date and temperature. - - - If there is an existing NI-RFSA session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. - - - If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. - - - - :param steps_to_omit: - - - Specifies which calibration steps to skip during the self-calibration process. The default value is an empty array, which indicates that no calibration steps are omitted. - - **Default Value** : :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.OMIT_NONE` - - **Defined Values:** - - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +========================================================================+===========+=====================================================================================================================+ - | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.OMIT_NONE` | 0 (0x0) | No calibration steps are omitted. | - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL` | 1 (0x1) | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.POWER_LEVEL_ACCURACY` | 2 (0x2) | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER` | 4 (0x4) | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION` | 8 (0x8) | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT` | 16 (0x10) | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - - .. note:: You can combine multiple enums.SelfCalibrateRangeStepsToOmit flags using the bitwise OR (|) operator. - - - :type steps_to_omit: :py:data:`nirfsg.SelfCalibrateRangeStepsToOmit` - :param min_frequency: - - - Specifies the minimum frequency to calibrate. - - - - - :type min_frequency: float - :param max_frequency: - - - Specifies the maximum frequency to calibrate. - - - - - :type max_frequency: float - :param min_power_level: - - - Specifies the minimum power level to calibrate. - - - - - :type min_power_level: float - :param max_power_level: - - - Specifies the maximum power level to calibrate. - - - - - :type max_power_level: float - -self_test ---------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: self_test() - - Performs a self-test on the NI-RFSG device and returns the test results. - - This method performs a simple series of tests to ensure that the NI-RFSG device is powered up and responding. - - This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Device Warm-Up `_ - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - - -send_software_edge_trigger --------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: send_software_edge_trigger(trigger, trigger_identifier) - - Forces a trigger to occur. - - The specified trigger generates regardless of whether the trigger has been configured as a software trigger. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - - - - - :param trigger: - - - Specifies the trigger to send. - - **Default Value:** :py:data:`~nirfsg.SoftwareTriggerType.START` - - **Defined Values:** - - +-----------------------------------------------+---------+-------------------------------+ - | Name | Value | Description | - +===============================================+=========+===============================+ - | :py:data:`~nirfsg.SoftwareTriggerType.START` | 0 (0x0) | Specifies the Start Trigger. | - +-----------------------------------------------+---------+-------------------------------+ - | :py:data:`~nirfsg.SoftwareTriggerType.SCRIPT` | 1 (0x1) | Specifies the Script Trigger. | - +-----------------------------------------------+---------+-------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger: :py:data:`nirfsg.SoftwareTriggerType` - :param trigger_identifier: - - - Specifies the Script Trigger to configure. This parameter is valid only when you set the :py:attr:`nirfsg.Session.TRIGGER` parameter to :py:data:`~nirfsg.NIRFSG_VAL_START_TRIGGER`. Otherwise, set the :py:attr:`nirfsg.Session.TRIGGER_IDENTIFIER` parameter to "" (empty string). - - **Default Value:** "" (empty string) - - **Possible Values:** - - +----------------+-----------------------------+ - | Possible Value | Description | - +================+=============================+ - | scriptTrigger0 | Specifies Script Trigger 0. | - +----------------+-----------------------------+ - | scriptTrigger1 | Specifies Script Trigger 1. | - +----------------+-----------------------------+ - | scriptTrigger2 | Specifies Script Trigger 2. | - +----------------+-----------------------------+ - | scriptTrigger3 | Specifies Script Trigger 3. | - +----------------+-----------------------------+ - | | None (no signal to export) | - +----------------+-----------------------------+ - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger_identifier: :py:data:`nirfsg.TriggerIdentifier` - -set_arb_waveform_next_write_position ------------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: set_arb_waveform_next_write_position(waveform_name, relative_to, offset) - - Configures the start position to use for writing a waveform before calling the :py:meth:`nirfsg.Session.WriteArbWaveform` method. - - This method allows you to write to arbitrary locations within the waveform. These settings apply only to the next write to the waveform specified by the **name** input of the :py:meth:`nirfsg.Session.allocate_arb_waveform` method or the :py:meth:`nirfsg.Session.WriteArbWaveform` method. Subsequent writes to that waveform begin where the last write ended, unless this method is called again. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: If you use this method to write the waveform that is currently generating, an undefined output may result. - - - - :param waveform_name: - - - Specifies the name of the waveform. This string is case-insensitive and alphanumeric, and it cannot use `reserved words `_. - - - - - :type waveform_name: str - :param relative_to: - - - Specifies the reference position in the waveform. The position and :py:attr:`nirfsg.Session.OFFSET` together determine where to start loading data into the waveform. - - **Defined Values:** - - +-------------------------------------------------+---------------+------------------------------------------------------------------+ - | Name | Value | Description | - +=================================================+===============+==================================================================+ - | :py:data:`~nirfsg.RelativeTo.START_OF_WAVEFORM` | 8000 (0x1f40) | The reference position is relative to the start of the waveform. | - +-------------------------------------------------+---------------+------------------------------------------------------------------+ - | :py:data:`~nirfsg.RelativeTo.CURRENT_POSITION` | 8001 (0x1f41) | The reference position is relative to the current position. | - +-------------------------------------------------+---------------+------------------------------------------------------------------+ - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - :type relative_to: :py:data:`nirfsg.RelativeTo` - :param offset: - - - Specifies the offset from the **relative to** parameter at which to start loading the data into the waveform. - - - - - :type offset: int - -set_waveform_burst_start_locations ----------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: set_waveform_burst_start_locations(locations) - - Configures the start location of the burst in samples where the burst refers to the active portion of a waveform. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_start_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.set_waveform_burst_start_locations` - - - :param locations: - - - Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. - - - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - - :type locations: list of float - -set_waveform_burst_stop_locations ---------------------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: set_waveform_burst_stop_locations(locations) - - Configures the stop location of the burst in samples where the burst refers to the active portion of a waveform. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_stop_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.set_waveform_burst_stop_locations` - - - :param locations: - - - Specifies the burst stop locations, in samples, to store in the NI-RFSG session. - - - - - :type locations: list of float - -set_waveform_marker_event_locations ------------------------------------ - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: set_waveform_marker_event_locations(locations) - - Configures the marker locations associated with waveform and marker in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - - .. tip:: This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.markers[ ... ].set_waveform_marker_event_locations` - - To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.set_waveform_marker_event_locations` - - - :param locations: - - - Specifies the marker location, in samples, to store in the NI-RFSG database. - - - - - :type locations: list of float - -unlock ------- - - .. py:currentmodule:: nirfsg.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`nirfsg.Session.lock`. Refer to :py:meth:`nirfsg.Session.unlock` for additional - information on session locks. - -wait_until_settled ------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: wait_until_settled(max_time_milliseconds=hightime.timedelta(seconds=10.0)) - - Waits until the RF output signal has settled. This method is useful for devices that support changes while in the Generation state. - - Call this method after making a dynamic change to wait for the output signal to settle. - - You can also call this method after calling the :py:meth:`nirfsg.Session.commit` method to wait for changes to settle. The :py:meth:`nirfsg.Session.wait_until_settled` method is not required after calling the :py:meth:`nirfsg.Session._initiate` method because the :py:meth:`nirfsg.Session._initiate` automatically waits for the output to settle. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - - :param max_time_milliseconds: - - - Specifies the maximum time the method waits for the output to settle. If the maximum time is exceeded, this method returns an error. The units are expressed in milliseconds. - - **Default Value** : 10000 - - - - - :type max_time_milliseconds: hightime.timedelta, datetime.timedelta, or int in milliseconds - -write_arb_waveform ------------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: write_arb_waveform(waveform_name, waveform_data_array, more_data_pending=False) - - Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. - - This method accepts the complex baseband data in the form of numpy array of numpy.complex64 or numpy.complex128 or interleaved numpy array of numpy.int16. If the waveform to write is already allocated using the :py:meth:`nirfsg.Session.allocate_arb_waveform`, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_ - - - - .. note:: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. - If you are writing interleaved numpy array of numpy.int16, then this method only supports :py:data:`~nirfsg.PowerLevelType.PEAK` mode as specified in the :py:attr:`nirfsg.Session.power_level_type` property. If you download a waveform as interleaved numpy array of numpy.int16 when using this method, you cannot set the :py:attr:`nirfsg.Session.power_level_type` to :py:data:`~nirfsg.PowerLevelType.AVERAGE` without causing error in the output. - - - - :param waveform_name: - - - Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - - - - :type waveform_name: str - :param waveform_data_array: - - - Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the :py:meth:`nirfsg.Session.allocate_arb_waveform` method. - - - - - :type waveform_data_array: numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16 - :param more_data_pending: - - - Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the **name** parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. - - - - - :type more_data_pending: bool - -write_script ------------- - - .. py:currentmodule:: nirfsg.Session - - .. py:method:: write_script(script) - - Writes a script to the device to control waveform generation in Script mode. - - First, configure your device for Script mode by setting the generation_mode property. The NI-RFSG device must be in the Configuration state before calling the :py:meth:`nirfsg.Session.write_script` method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Scripting Instructions `_--Refer to this topic for more information about VST restrictions on scripts. - - `Common Scripting Use Cases `_ - - - - .. note:: If you are using an RF vector signal transceiver (VST) device, some script instructions may not be supported. - - - - :param script: - - - Specifies a string containing a syntactically correct script. NI-RFSG supports multiple scripts that are selected with the :py:attr:`nirfsg.Session.selected_script` property. Refer to `Scripting Instructions `_ for more information about using scripts. - - - - - :type script: str - - -Properties -========== - -absolute_delay --------------- - - .. py:attribute:: absolute_delay - - Specifies the sub-Sample Clock delay, in seconds, to apply to the I/Q waveform. Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** Seconds - - **Valid Values:** Plus or minus half of one Sample Clock period - - **Supported Devices:** PXIe-5820/5840/5841/5842 - - - - .. note:: - The resolution of this property is a method of the I/Q sample period at 15E(-6) times that sample period. - - - If this property is set, NI-TClk cannot perform any sub-Sample Clock adjustment. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Absolute Delay** - - C Attribute: **NIRFSG_ATTR_ABSOLUTE_DELAY** - -ae_temperature --------------- - - .. py:attribute:: ae_temperature - - Returns the amplitude extender module temperature in degrees Celsius. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXIe-5654 with PXIe-5696 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:AE Temperature (Degrees C)** - - C Attribute: **NIRFSG_ATTR_AE_TEMPERATURE** - -alc_control ------------ - - .. py:attribute:: alc_control - - Enables or disables the automatic leveling control (ALC). - - PXIe-5654 with PXIe-5696: If this property is enabled, the ALC is closed (closed-loop mode) and allows for better amplitude accuracy and wider amplitude dynamic range. If this property is disabled, the ALC is open (open-loop mode), which is ideal when using modulation. Disabling the :py:attr:`nirfsg.Session.alc_control` property also allows for NI-RFSG to perform an automatic power search. - - PXIe-5654: :py:data:`~nirfsg.AutomaticLevelControl.DISABLE` is the only supported value for this device. The PXIe-5654 does not support the ALC when used as a stand-alone device. - - **Default Value:** - - PXIe-5654: :py:data:`~nirfsg.AutomaticLevelControl.DISABLE` - - PXIe-5654 with PXIe-5696: :py:data:`~nirfsg.AutomaticLevelControl.ENABLE` - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Power Level Adjustment `_ - - `ALC Closed Loop Versus Open Loop `_ - - `Power Search `_ - - **Defined Values**: - - +--------------------------------------------------+---------+------------------+ - | Name | Value | Description | - +==================================================+=========+==================+ - | :py:data:`~nirfsg.AutomaticLevelControl.DISABLE` | 0 (0x0) | Disables ALC. | - +--------------------------------------------------+---------+------------------+ - | :py:data:`~nirfsg.AutomaticLevelControl.ENABLE` | 1 (0x1) | Enables the ALC. | - +--------------------------------------------------+---------+------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.AutomaticLevelControl | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:ALC Control** - - C Attribute: **NIRFSG_ATTR_ALC_CONTROL** - -allow_out_of_specification_user_settings ----------------------------------------- - - .. py:attribute:: allow_out_of_specification_user_settings - - Enables or disables warnings or errors when you set the frequency, power, and bandwidth values beyond the limits of the NI-RFSG device specifications. When you enable the :py:attr:`nirfsg.Session.allow_out_of_specification_user_settings` property, the driver does not report out-of-specification warnings or errors. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.AllowOutOfSpecificationUserSettings.DISABLE` - - **Supported Devices:** PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------------------------+---------+----------------------------------------------+ - | Name | Value | Description | - +================================================================+=========+==============================================+ - | :py:data:`~nirfsg.AllowOutOfSpecificationUserSettings.DISABLE` | 0 (0x0) | Disables out-of-specification user settings. | - +----------------------------------------------------------------+---------+----------------------------------------------+ - | :py:data:`~nirfsg.AllowOutOfSpecificationUserSettings.ENABLE` | 1 (0x1) | Enables out-of-specification user settings. | - +----------------------------------------------------------------+---------+----------------------------------------------+ - - .. note:: Accuracy cannot be guaranteed outside of device specifications, and results may vary by module. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------+ - | Characteristic | Value | - +=======================+===========================================+ - | Datatype | enums.AllowOutOfSpecificationUserSettings | - +-----------------------+-------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Allow Out Of Specification User Settings** - - C Attribute: **NIRFSG_ATTR_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS** - -amplitude_settling ------------------- - - .. py:attribute:: amplitude_settling - - Configures the amplitude settling accuracy in decibels. NI-RFSG waits until the RF power settles within the specified accuracy level after calling the :py:meth:`nirfsg.Session._initiate` method or :py:meth:`nirfsg.Session.wait_until_settled` method or prior to advancing to next step if using RF list mode. - - Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. - - PXI/PXIe-5650/5651/5652: This property is for NI internal use only. - - **Units**: dB - - **Default Value:** - - PXIe-5654: 4 - - PXIe-5654 with PXIe-5696 (ALC disabled): 4 - - PXIe-5654 with PXIe-5696 (ALC enabled): 0.2 - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.5 - - **Valid Values:** - - PXIe-5654: 1.5, 2, 4 - - PXIe-5654 with PXIe-5696 (ALC disabled): 1.5, 2, 4 - - PXIe-5654 with PXIe-5696 (ALC enabled): 0.2, 0.5 - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.01 to 1 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Amplitude Settling Times `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Amplitude Settling** - - C Attribute: **NIRFSG_ATTR_AMPLITUDE_SETTLING** - -amp_path --------- - - .. py:attribute:: amp_path - - Specifies the amplification path to use. The low harmonic path provides greater second and third harmonic spurious response, and the high power path provides higher output power. - - NI-RFSG automatically sets the value of this property based on power and frequency settings. Setting this property overrides the value chosen by NI-RFSG. - - **Default Value:** :py:data:`~nirfsg.AmpPath.LOW_HARMONIC` - - **Supported Devices:** PXIe-5654 with PXIe-5696 - - **Related Topics** - - `Low Harmonic Path Versus High Power Path `_ - - **Defined Values**: - - +-----------------------------------------+----------------+-----------------------------------------------------------+ - | Name | Value | Description | - +=========================================+================+===========================================================+ - | :py:data:`~nirfsg.AmpPath.HIGH_POWER` | 16000 (0x3e80) | Sets the amplification path to use the high power path. | - +-----------------------------------------+----------------+-----------------------------------------------------------+ - | :py:data:`~nirfsg.AmpPath.LOW_HARMONIC` | 16001 (0x3e81) | Sets the amplification path to use the low harmonic path. | - +-----------------------------------------+----------------+-----------------------------------------------------------+ - - .. note:: Resetting this property reverts back to the default unset behavior. - - The following table lists the characteristics of this property. - - +-----------------------+---------------+ - | Characteristic | Value | - +=======================+===============+ - | Datatype | enums.AmpPath | - +-----------------------+---------------+ - | Permissions | read-write | - +-----------------------+---------------+ - | Repeated Capabilities | None | - +-----------------------+---------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Amp Path** - - C Attribute: **NIRFSG_ATTR_AMP_PATH** - -analog_modulation_am_sensitivity --------------------------------- - - .. py:attribute:: analog_modulation_am_sensitivity - - Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. - - When using the PXIe-5654 with PXIe-5696, NI-RFSG may coerce AM sensitivity. Coercing the AM sensitivity prevents overpower conditions at the PXIe-5696 input. Read this property to determine the coerced value. - - **Default Value:** 100 - - **Valid Values:** 0 to 100 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Amplitude Modulation `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:AM Sensitivity** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_AM_SENSITIVITY** - -analog_modulation_fm_band -------------------------- - - .. py:attribute:: analog_modulation_fm_band - - Specifies the analog modulation frequency modulation (FM) band to use. Wideband FM allows for modulating signals higher than 100kHz. Narrowband FM allows for modulating lower frequency signals. - - **Default Value:** :py:data:`~nirfsg.AnalogModulationFmBand.WIDEBAND` - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Modulation `_ - - **Defined Values**: - - +------------------------------------------------------+----------------+--------------------------------------------+ - | Name | Value | Description | - +======================================================+================+============================================+ - | :py:data:`~nirfsg.AnalogModulationFmBand.NARROWBAND` | 17000 (0x4268) | Specifies narrowband frequency modulation. | - +------------------------------------------------------+----------------+--------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationFmBand.WIDEBAND` | 17001 (0x4269) | Specifies wideband frequency modulation. | - +------------------------------------------------------+----------------+--------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.AnalogModulationFmBand | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:FM Band** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_FM_BAND** - -analog_modulation_fm_narrowband_integrator ------------------------------------------- - - .. py:attribute:: analog_modulation_fm_narrowband_integrator - - Specifies the narrowband frequency modulation (FM) range to apply by sending the signal through an integrator. - - This property is valid only when you set the :py:attr:`nirfsg.Session.analog_modulation_type` property to :py:data:`~nirfsg.AnalogModulationType.FM` and the :py:attr:`nirfsg.Session.analog_modulation_fm_band` property to :py:data:`~nirfsg.AnalogModulationFmBand.NARROWBAND`. - - **Default Value:** :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ` - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Modulation `_ - - **Defined Values**: - - +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ - | Name | Value | Description | - +===============================================================================================+================+=============================================+ - | :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ` | 18000 (0x4650) | Specifies a range from 100Â Hz to 1Â kHz. | - +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_10_KILOHERTZ_TO_100_KILOHERTZ` | 18002 (0x4652) | Specifies a range from 10Â kHz to 100Â kHz. | - +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_1_KILOHERTZ_TO_10_KILOHERTZ` | 18001 (0x4651) | Specifies a range from 1Â kHz to 10Â kHz. | - +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------------------+ - | Characteristic | Value | - +=======================+==============================================+ - | Datatype | enums.AnalogModulationFmNarrowbandIntegrator | - +-----------------------+----------------------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:FM Narrowband Integrator** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR** - -analog_modulation_fm_sensitivity --------------------------------- - - .. py:attribute:: analog_modulation_fm_sensitivity - - Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. - - **Default Value:** 100 - - **Valid Values:** 0 to 100 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Modulation `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:FM Sensitivity** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_FM_SENSITIVITY** - -analog_modulation_pm_deviation ------------------------------- - - .. py:attribute:: analog_modulation_pm_deviation - - Specifies the `deviation `_ to use in phase modulation, in degrees. - - **Units**: degrees (°) - - **Default Value:** 90° - - **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5653 - - **Related Topics** - - `Modulation Schemes `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:PM Deviation (Degrees)** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_PM_DEVIATION** - -analog_modulation_pm_mode -------------------------- - - .. py:attribute:: analog_modulation_pm_mode - - Specifies the phase modulation (PM) mode to use. - - **Default Value:** :py:data:`~nirfsg.AnalogModulationPmMode.LOW_PHASE_NOISE` - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Phase Modulation `_ - - **Defined Values**: - - +-----------------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +===========================================================+================+===============================================================================================+ - | :py:data:`~nirfsg.AnalogModulationPmMode.HIGH_DEVIATION` | 19000 (0x4a38) | Specifies high deviation. High deviation comes at the expense of a higher phase noise. | - +-----------------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationPmMode.LOW_PHASE_NOISE` | 19001 (0x4a39) | Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. | - +-----------------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.AnalogModulationPmMode | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:PM Mode** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_PM_MODE** - -analog_modulation_pm_sensitivity --------------------------------- - - .. py:attribute:: analog_modulation_pm_sensitivity - - Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. - - **Default Value:** 100 - - **Valid Values:** 0 to 100 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Phase Modulation `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:PM Sensitivity** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_PM_SENSITIVITY** - -analog_modulation_type ----------------------- - - .. py:attribute:: analog_modulation_type - - Specifies the analog modulation format to use. - - **Default Value:** :py:data:`~nirfsg.AnalogModulationType.NONE` - - **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Modulation `_ - - `PXI/PXIe-5650/5651/5652 Modulation Schemes `_ - - `PXIe-5654/5654 with PXIe-5696 Modulation Schemes `_ - - **Defined Values**: - - +----------------------------------------------+--------------+--------------------------------------------------+ - | Name | Value | Description | - +==============================================+==============+==================================================+ - | :py:data:`~nirfsg.AnalogModulationType.AM` | 2002 (0x7d2) | Specifies that the analog modulation type is AM. | - +----------------------------------------------+--------------+--------------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationType.FM` | 2000 (0x7d0) | Specifies that the analog modulation type is FM. | - +----------------------------------------------+--------------+--------------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationType.NONE` | 0 (0x0) | Disables analog modulation. | - +----------------------------------------------+--------------+--------------------------------------------------+ - | :py:data:`~nirfsg.AnalogModulationType.PM` | 2001 (0x7d1) | Specifies that the analog modulation type is PM. | - +----------------------------------------------+--------------+--------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.AnalogModulationType | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Analog:Modulation Type** - - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_TYPE** - -arb_carrier_frequency ---------------------- - - .. py:attribute:: arb_carrier_frequency - - **Units**: hertz (Hz) - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a carrier frequency with a waveform. - Indicates the carrier frequency generated by the arbitrary waveform generator (AWG) module. The specified carrier frequency is related to the RF output as shown in the following equations: - - +-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Device | Equations | - +===============================================================================+===================================================================================================================================================================================================================================================================================================================================================================+ - | PXI-5610, PXI-5670/5671, PXIe-5672 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency* – 25 MHz | - +-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency*.Note that - the :py:attr:`nirfsg.Session.upconverter_center_frequency` property and the :py:attr:`nirfsg.Session.arb_carrier_frequency` property cannot be set at the same time. The only time the carrier frequency is nonzero on these devices is when in-band retuning is used. | - +-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: - Use this property to associate a carrier frequency with a waveform. - - - This property is read-only on the PXI-5670/5671 and PXIe-5672. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Arb Carrier Frequency (Hz)** - - C Attribute: **NIRFSG_ATTR_ARB_CARRIER_FREQUENCY** - -arb_digital_gain ----------------- - - .. py:attribute:: arb_digital_gain - - Specifies the digital gain, in decibels. The digital gain is applied to the waveform data after filtering. Use this property to adjust the output power of the device while keeping the analog path fixed. This may cause clipping, overflows, or quantization noise if used improperly. - - To set this property, the NI-RFSG device must be in the Configuration or Generation state. - - **Default Value:** 0 dB - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIRFSG_ATTR_ARB_DIGITAL_GAIN** - -arb_max_number_waveforms ------------------------- - - .. py:attribute:: arb_max_number_waveforms - - Returns the maximum number of waveforms the device can hold in memory. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Capabilities:Max Number Waveforms** - - C Attribute: **NIRFSG_ATTR_ARB_MAX_NUMBER_WAVEFORMS** - -arb_onboard_sample_clock_mode ------------------------------ - - .. py:attribute:: arb_onboard_sample_clock_mode - - Specifies the Sample Clock mode on the device. To set this property, the device must be in the Configuration state. - - PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.ArbOnboardSampleClockMode.DIVIDE_DOWN` is the only supported value for this device. - - **Default Values:** - - PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.ArbOnboardSampleClockMode.DIVIDE_DOWN` - - PXIe-5673/5673E: :py:data:`~nirfsg.ArbOnboardSampleClockMode.HIGH_RESOLUTION` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Clocking Modes `_ - - **Valid Values**: - - +--------------------------------------------------------------+--------------------------------------------------------------+ - | Name | Description | - +==============================================================+==============================================================+ - | :py:data:`~nirfsg.ArbOnboardSampleClockMode.HIGH_RESOLUTION` | Sample rates are generated by a high-resolution clock. | - +--------------------------------------------------------------+--------------------------------------------------------------+ - | :py:data:`~nirfsg.ArbOnboardSampleClockMode.DIVIDE_DOWN` | Sample rates are generated by dividing the source frequency. | - +--------------------------------------------------------------+--------------------------------------------------------------+ - - .. note:: Using the high resolution clock may result in increased phase noise. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.ArbOnboardSampleClockMode | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Arb Onboard Sample Clock Mode** - - C Attribute: **NIRFSG_ATTR_ARB_ONBOARD_SAMPLE_CLOCK_MODE** - -arb_pre_filter_gain -------------------- - - .. py:attribute:: arb_pre_filter_gain - - Specifies the AWG prefilter gain. The prefilter gain is applied to the waveform data before any other signal processing. Reduce this value to prevent overflow in the AWG interpolation filters. Other gains on the NI-RFSG device are automatically adjusted to compensate for nonunity AWG prefilter gain. The PXI-5671, PXIe-5672 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXIe-5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842 can be in either the Configuration or the Generation state to use this property. PXIe-5860 can only be in the Configuration state to use this property. - - On the PXI-5671, this property applies only when the :py:attr:`nirfsg.Session.iq_rate` property is set to a value less than or equal to 8.33MS/s. On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, this property is always applicable. - - **Units**: dB - - **Default Value:** 0dB - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Pre-filter Gain (dB)** - - C Attribute: **NIRFSG_ATTR_ARB_PRE_FILTER_GAIN** - -arb_sample_clock_rate ---------------------- - - .. py:attribute:: arb_sample_clock_rate - - Returns the rate of the Sample Clock on the device. - - **Units**: hertz (Hz) - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Arb Sample Clock Rate (Hz)** - - C Attribute: **NIRFSG_ATTR_ARB_SAMPLE_CLOCK_RATE** - -arb_sample_clock_source ------------------------ - - .. py:attribute:: arb_sample_clock_source - - Specifies the Sample Clock source for the device. To set this property, the NI-RFSG device must be in the Configuration state. - - PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: OnboardClock is the only supported value for this device. - - **Default Value:** OnboardClock - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Timing Configurations `_ - - **Possible Values**: - - +----------------+---------------------------------------------------------------+ - | Possible Value | Description | - +================+===============================================================+ - | "ClkIn" | Uses the external clock as the Sample Clock source. | - +----------------+---------------------------------------------------------------+ - | "OnboardClock" | Uses the AWG module onboard clock as the Sample Clock source. | - +----------------+---------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ArbSampleClockSource | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Arb Sample Clock Source** - - C Attribute: **NIRFSG_ATTR_ARB_SAMPLE_CLOCK_SOURCE** - -arb_selected_waveform ---------------------- - - .. py:attribute:: arb_selected_waveform - - Specifies the waveform in onboard memory to generate upon calling the :py:meth:`nirfsg.Session.Init` method when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. The :py:attr:`nirfsg.Session.arb_selected_waveform` property is ignored when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.SCRIPT` or :py:data:`~nirfsg.GenerationMode.CW`. To set the :py:attr:`nirfsg.Session.arb_selected_waveform` property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.select_arb_waveform` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Capabilities:Selected Waveform** - - C Attribute: **NIRFSG_ATTR_ARB_SELECTED_WAVEFORM** - -arb_temperature ---------------- - - .. py:attribute:: arb_temperature - - Returns the AWG module temperature in degrees Celsius. - - PXIe-5820/5840/5841/5842: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:AWG Temperature (Degrees C)** - - C Attribute: **NIRFSG_ATTR_ARB_TEMPERATURE** - -arb_waveform_quantum --------------------- - - .. py:attribute:: arb_waveform_quantum - - Returns the waveform quantum for the device. The number of samples in a waveform must be an integer multiple of the waveform quantum. The other restrictions on the length of the waveform are the :py:attr:`nirfsg.Session.arb_waveform_size_min` and :py:attr:`nirfsg.Session.arb_waveform_size_max` arbitrary waveform sizes. - - PXI-5671, PXIe-5672: The value of this property depends on the I/Q rate. Set the :py:attr:`nirfsg.Session.iq_rate` property before reading this property. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Capabilities:Waveform Quantum** - - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_QUANTUM** - -arb_waveform_repeat_count -------------------------- - - .. py:attribute:: arb_waveform_repeat_count - - Specifies the repeat count of a waveform when you set the :py:attr:`nirfsg.Session.arb_waveform_repeat_count_is_finite` property to True. This property is valid only when you set the :py:attr:`nirfsg.Session.generation_mode` property to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** 1 - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Repeat Count** - - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_REPEAT_COUNT** - -arb_waveform_repeat_count_is_finite ------------------------------------ - - .. py:attribute:: arb_waveform_repeat_count_is_finite - - Specifies the repetition mode of a waveform when you set the :py:attr:`nirfsg.Session.generation_mode` property to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. If you set this property to True, the number of repetitions is determined by the :py:attr:`nirfsg.Session.arb_waveform_repeat_count` property. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------+-------------------------------------------------------------------+ - | Value | Description | - +=======+===================================================================+ - | True | Repeats the waveform a finite number of times. | - +-------+-------------------------------------------------------------------+ - | False | Repeats the waveform continuously until you abort the generation. | - +-------+-------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Repeat Count Is Finite** - - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_REPEAT_COUNT_IS_FINITE** - -arb_waveform_size_max ---------------------- - - .. py:attribute:: arb_waveform_size_max - - Returns the size of the largest waveform that is allowed. - - To read this property, the NI-RFSG device must be in the Configuration state. - - For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the :py:attr:`nirfsg.Session.iq_rate` before reading this property. For the PXIe-5673/5673E, the maximum waveform size is reduced to account for the amount of device memory currently used. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` - - - - .. note:: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Capabilities:Max Waveform Size** - - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_SIZE_MAX** - -arb_waveform_size_min ---------------------- - - .. py:attribute:: arb_waveform_size_min - - Returns the smallest allowable waveform size. For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the :py:attr:`nirfsg.Session.iq_rate` property before reading this property. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Capabilities:Min Waveform Size** - - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_SIZE_MIN** - -arb_waveform_software_scaling_factor ------------------------------------- - - .. py:attribute:: arb_waveform_software_scaling_factor - - Specifies how much to scale the data before writing it with the :py:meth:`nirfsg.Session.WriteArbWaveform` method. The resulting waveform must be smaller than 1.0 in complex magnitude. This property is supported only if you set the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. - - **Default Value:** 1.0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Spurious Performance `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Software Scaling Factor** - - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_SOFTWARE_SCALING_FACTOR** - -attenuator_setting ------------------- - - .. py:attribute:: attenuator_setting - - Specifies the level of attenuation in the attenuator path. Setting this property overrides the value chosen by NI-RFSG. Not all power levels are achievable if you set this property. - - **Units**: dB - - **Valid Values**: 0dB to 110dB in steps of 10 - - **Supported Devices:** PXIe-5654 with PXIe-5696 - - - - .. note:: Resetting this property reverts back to the default unset behavior. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Attenuator Setting (dB)** - - C Attribute: **NIRFSG_ATTR_ATTENUATOR_SETTING** - -automatic_thermal_correction ----------------------------- - - .. py:attribute:: automatic_thermal_correction - - Enables or disables automatic thermal correction. When this property is enabled, changes to settings cause NI-RFSG to check whether the device temperature has changed and adjusts the settings as needed. When this property is disabled, you must explicitly call the :py:meth:`nirfsg.Session.perform_thermal_correction` method to adjust the device for temperature changes. - - **Default Value:** :py:data:`~nirfsg.AutomaticThermalCorrection.ENABLE` - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Temperature Monitoring `_ - - `Settling Times `_ - - **Defined Values**: - - +-------------------------------------------------------+---------+-------------------------------------------+ - | Name | Value | Description | - +=======================================================+=========+===========================================+ - | :py:data:`~nirfsg.AutomaticThermalCorrection.DISABLE` | 0 (0x0) | Automatic thermal correction is disabled. | - +-------------------------------------------------------+---------+-------------------------------------------+ - | :py:data:`~nirfsg.AutomaticThermalCorrection.ENABLE` | 1 (0x1) | Automatic thermal correction is enabled. | - +-------------------------------------------------------+---------+-------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.AutomaticThermalCorrection | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Automatic Thermal Correction** - - C Attribute: **NIRFSG_ATTR_AUTOMATIC_THERMAL_CORRECTION** - -auto_power_search ------------------ - - .. py:attribute:: auto_power_search - - Enables or disables automatic power search. When this property is enabled, a power search performs after the device is initiated, after output power is enabled, or when the frequency or power level changes while the device is generating. When this property is disabled, NI-RFSG does not perform a power search unless you call the :py:meth:`nirfsg.Session.perform_power_search` method. - - This property is ignored when the :py:attr:`nirfsg.Session.alc_control` property is enabled. - - PXIe-5654: :py:data:`~nirfsg.AutomaticPowerSearch.DISABLE` is the only supported value for this device. - - **Default Value:** - - PXIe-5654: :py:data:`~nirfsg.AutomaticPowerSearch.DISABLE` - - PXIe-5654 with PXIe-5696: :py:data:`~nirfsg.AutomaticPowerSearch.ENABLE` - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Power Search `_ - - **Defined Values**: - - +-------------------------------------------------+---------+----------------------------------+ - | Name | Value | Description | - +=================================================+=========+==================================+ - | :py:data:`~nirfsg.AutomaticPowerSearch.DISABLE` | 0 (0x0) | Disables automatic power search. | - +-------------------------------------------------+---------+----------------------------------+ - | :py:data:`~nirfsg.AutomaticPowerSearch.ENABLE` | 1 (0x1) | Enables automatic power search. | - +-------------------------------------------------+---------+----------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.AutomaticPowerSearch | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Automatic Power Search** - - C Attribute: **NIRFSG_ATTR_AUTO_POWER_SEARCH** - -available_paths ---------------- - - .. py:attribute:: available_paths - - Returns a list of the configurable paths available for use based on your instrument configuration. - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Available Paths** - - C Attribute: **NIRFSG_ATTR_AVAILABLE_PATHS** - -available_ports ---------------- - - .. py:attribute:: available_ports - - Returns a list of the ports available for use based on your instrument configuration. - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Available Ports** - - C Attribute: **NIRFSG_ATTR_AVAILABLE_PORTS** - -configuration_settled_event_terminal_name ------------------------------------------ - - .. py:attribute:: configuration_settled_event_terminal_name - - Returns the name of the fully qualified signal name as a string. - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Default Values**: - - PXIe-5654/5654 with PXIe-5696: /*ModuleName*/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ConfigurationSettledEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Configuration Settled Event Terminal Name** - - C Attribute: **NIRFSG_ATTR_CONFIGURATION_SETTLED_EVENT_TERMINAL_NAME** - -correction_temperature ----------------------- - - .. py:attribute:: correction_temperature - - Specifies the temperature, in degrees Celsius, to use for adjusting the device settings to correct for temperature changes. If you set this property, NI-RFSG uses the value you specify and therefore no longer uses the actual device temperature as the correction temperature. If you do not set this property, NI-RFSG checks the current device temperature in the Committed state and automatically sets the value of this property. - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: This property is read only. - - **Units**: Degrees Celsius - - **Supported Devices**: PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: - Resetting this property reverts back to the default unset behavior. - - - Use this property only when your application requires the same settings to be used every time, regardless of the temperature variation. In these cases, it is best to ensure that the temperature does not vary too much. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Correction Temperature** - - C Attribute: **NIRFSG_ATTR_CORRECTION_TEMPERATURE** - -deembedding_compensation_gain ------------------------------ - - .. py:attribute:: deembedding_compensation_gain - - Returns the de-embedding gain applied to compensate for the mismatch on the specified port. If de-embedding is enabled, NI-RFSG uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_compensation_gain` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.deembedding_compensation_gain` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | ports | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **De-embedding:Compensation Gain** - - C Attribute: **NIRFSG_ATTR_DEEMBEDDING_COMPENSATION_GAIN** - -deembedding_selected_table --------------------------- - - .. py:attribute:: deembedding_selected_table - - Selects the de-embedding table to apply to the measurements on the specified port. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_string` method to specify the name of the port to configure for de-embedding. - - If de-embedding is enabled, NI-RFSG uses the specified table to remove the effects of the external network between the instrument and the DUT. - - Use the create deembedding sparameter table array method to create tables. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.deembedding_selected_table` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | ports | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **De-embedding:Selected Table** - - C Attribute: **NIRFSG_ATTR_DEEMBEDDING_SELECTED_TABLE** - -deembedding_type ----------------- - - .. py:attribute:: deembedding_type - - Specifies the type of de-embedding to apply to measurements on the specified port. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the port to configure for de-embedding. - - If you set this property to any value besides :py:data:`~nirfsg.DeembeddingType.NONE`, NI-RFSG adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. - - **Default Value**: :py:data:`~nirfsg.DeembeddingType.SCALAR` - - **Valid Values for PXIe-5830/5832/5840/5841** : :py:data:`~nirfsg.DeembeddingType.NONE` or :py:data:`~nirfsg.DeembeddingType.SCALAR` - - **Valid Values for PXIe-5842/5860** : :py:data:`~nirfsg.DeembeddingType.NONE` or :py:data:`~nirfsg.DeembeddingType.SCALAR` or :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_FLATNESS` or :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS` - - **Valid Values for PXIe-5831** :py:data:`~nirfsg.DeembeddingType.NONE`, :py:data:`~nirfsg.DeembeddingType.SCALAR`, or :py:data:`~nirfsg.DeembeddingType.VECTOR`. :py:data:`~nirfsg.DeembeddingType.VECTOR` is only supported for TRX Ports in a Semiconductor Test System (STS). - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | Name | Value | Description | - +=================================================================+================+===================================================================================+ - | :py:data:`~nirfsg.DeembeddingType.NONE` | 25000 (0x61a8) | De-embedding is not applied to the measurement. | - +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.DeembeddingType.SCALAR` | 25001 (0x61a9) | De-embeds the measurement using only the gain term. | - +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.DeembeddingType.VECTOR` | 25002 (0x61aa) | De-embeds the measurement using the gain term and the reflection term. | - +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_FLATNESS` | 25003 (0x61ab) | De-embeds the measurement using wideband amplitude flatness correction. | - +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS` | 25004 (0x61ac) | De-embeds the measurement using wideband amplitude and phase flatness correction. | - +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_type` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.deembedding_type` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.DeembeddingType | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | ports | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **De-embedding:Type** - - C Attribute: **NIRFSG_ATTR_DEEMBEDDING_TYPE** - -device_instantaneous_bandwidth ------------------------------- - - .. py:attribute:: device_instantaneous_bandwidth - - Specifies the bandwidth of the device. The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. - - The :py:attr:`nirfsg.Session.signal_bandwidth` centered at the :py:attr:`nirfsg.Session.frequency` must fit within the device instantaneous bandwidth, which is centered at the :py:attr:`nirfsg.Session.upconverter_center_frequency`. - - **Units**: Hz - - **Default Value**: N/A - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Device Instantaneous Bandwidth (Hz)** - - C Attribute: **NIRFSG_ATTR_DEVICE_INSTANTANEOUS_BANDWIDTH** - -device_temperature ------------------- - - .. py:attribute:: device_temperature - - Returns the device temperature. If the NI-RFSG session is controlling multiple devices, this property returns the temperature of the primary NI RF device. The NI-RFSG session is opened using the primary RF device name. - - Serial signals between the sensor and the system control unit could modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. - - PXIe-5644/5645/5646, PXIe-5820/5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - PXIe-5830/5831/5832: To use this property, you must first set the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to using the appropriate string for your instrument configuration. Setting the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Temperature Monitoring `_ - - `Thermal Shutdown `_ - - +----------------------------+--------------------------+-------------------------+ - | Hardware Module | TRX Port Type | Active Channel String | - +============================+==========================+=========================+ - | PXIe-3621/3622 | — | if or "" (empty string) | - +----------------------------+--------------------------+-------------------------+ - | PXIe-5820 | — | fpga | - +----------------------------+--------------------------+-------------------------+ - | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | - +----------------------------+--------------------------+-------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | - +----------------------------+--------------------------+-------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch1 | - +----------------------------+--------------------------+-------------------------+ - | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | - +----------------------------+--------------------------+-------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | - +----------------------------+--------------------------+-------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch1 | - +----------------------------+--------------------------+-------------------------+ - - - .. tip:: This property can be set/get on specific device_temperatures within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. - - Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` - - To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.device_temperature` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | float | - +-----------------------+---------------------+ - | Permissions | read only | - +-----------------------+---------------------+ - | Repeated Capabilities | device_temperatures | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Device Temperature (Degrees C)** - - C Attribute: **NIRFSG_ATTR_DEVICE_TEMPERATURE** - -digital_edge_script_trigger_edge --------------------------------- - - .. py:attribute:: digital_edge_script_trigger_edge - - Specifies the active edge for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to digital edge. To set the :py:attr:`nirfsg.Session.digital_edge_script_trigger_edge` property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalEdgeEdge.RISING` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Edge Trigger `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_digital_edge_script_trigger` - - **Defined Values**: - - +---------------------------------------------------------+---------+-------------------------------------------------------------------------------+ - | Name | Value | Description | - +=========================================================+=========+===============================================================================+ - | :py:data:`~nirfsg.ScriptTriggerDigitalEdgeEdge.FALLING` | 1 (0x1) | Asserts the trigger when the signal transitions from high level to low level. | - +---------------------------------------------------------+---------+-------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerDigitalEdgeEdge.RISING` | 0 (0x0) | Asserts the trigger when the signal transitions from low level to high level. | - +---------------------------------------------------------+---------+-------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_edge` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------+ - | Characteristic | Value | - +=======================+====================================+ - | Datatype | enums.ScriptTriggerDigitalEdgeEdge | - +-----------------------+------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Digital Edge:Edge** - - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE** - -digital_edge_script_trigger_source ----------------------------------- - - .. py:attribute:: digital_edge_script_trigger_source - - Specifies the source terminal for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to digital edge. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_digital_edge_script_trigger` - - **Possible Values**: - - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=========================================================================================================================================+ - | "PFI0" | The trigger is received on PFI 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The trigger is received on PFI 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI2" | The trigger is received on PFI 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI3" | The trigger is received on PFI 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_source` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | str | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Digital Edge:Source** - - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE** - -digital_edge_start_trigger_edge -------------------------------- - - .. py:attribute:: digital_edge_start_trigger_edge - - Specifies the active edge for the Start Trigger. This property is used when the :py:attr:`nirfsg.Session.start_trigger_type` property is set to digital edge. To set the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property, the NI-RFSG device must be in the Configuration state. - - PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - **Default Value:** :py:data:`~nirfsg.StartTriggerDigitalEdgeEdge.RISING` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Digital Edge Trigger `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_digital_edge_start_trigger` - - **Defined Values**: - - +--------------------------------------------------------+---------+------------------------------------------------------------------+ - | Name | Value | Description | - +========================================================+=========+==================================================================+ - | :py:data:`~nirfsg.StartTriggerDigitalEdgeEdge.FALLING` | 1 (0x1) | Occurs when the signal transitions from high level to low level. | - +--------------------------------------------------------+---------+------------------------------------------------------------------+ - | :py:data:`~nirfsg.StartTriggerDigitalEdgeEdge.RISING` | 0 (0x0) | Occurs when the signal transitions from low level to high level. | - +--------------------------------------------------------+---------+------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------------+ - | Characteristic | Value | - +=======================+===================================+ - | Datatype | enums.StartTriggerDigitalEdgeEdge | - +-----------------------+-----------------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Digital Edge** - - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** - -digital_edge_start_trigger_source ---------------------------------- - - .. py:attribute:: digital_edge_start_trigger_source - - Specifies the source terminal for the Start Trigger. This property is used when the :py:attr:`nirfsg.Session.start_trigger_type` property is set to digital edge. The :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property is not case-sensitive. To set the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, the NI-RFSG device must be in the Configuration state. - - PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_digital_edge_start_trigger` - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+========================================================================================================================================+ - | "PFI0" | The trigger is received on PFI 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The trigger is received on PFI 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI2" | The trigger is received on PFI 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI3" | The trigger is received on PFI 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarB" | The trigger is received on the PXI DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "TrigIn" | The trigger is received on the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Digital Edge:Source** - - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** - -digital_equalization_enabled ----------------------------- - - .. py:attribute:: digital_equalization_enabled - - When this property is enabled, NI-RFSG equalizes the waveform data to correct for variations in the response of the NI-RFSG device. Enabling digital equalization improves the modulation error rates (MER) and error vector magnitude (EVM) for signals with large bandwidths (>500 kHz), but it increases tuning times. - - On the PXI-5670/5671, equalization is performed in the software, so tuning time is increased. On the PXIe-5672, equalization is performed in the hardware so that there is no compromise in performance. - - This property applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`. To set this property, the NI-RFSG device must be in the Configuration state. - - PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.DigitalEqualizationEnabled.ENABLE` is the only supported value for this device. - - **Default Value:** - - PXI-5670/5671: :py:data:`~nirfsg.DigitalEqualizationEnabled.DISABLE` - - PXIe-5644/5645/5646, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.DigitalEqualizationEnabled.ENABLE` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Response and Software Equalization `_—Refer to this topic for more information about equalization performed in software. - - `Frequency Tuning Times `_ - - **Defined Values**: - - +-------------------------------------------------------+---------+-----------------------+ - | Name | Value | Description | - +=======================================================+=========+=======================+ - | :py:data:`~nirfsg.DigitalEqualizationEnabled.DISABLE` | 0 (0x0) | Filter is not applied | - +-------------------------------------------------------+---------+-----------------------+ - | :py:data:`~nirfsg.DigitalEqualizationEnabled.ENABLE` | 1 (0x1) | Filter is applied. | - +-------------------------------------------------------+---------+-----------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.DigitalEqualizationEnabled | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Digital Equalization Enabled** - - C Attribute: **NIRFSG_ATTR_DIGITAL_EQUALIZATION_ENABLED** - -digital_level_script_trigger_active_level ------------------------------------------ - - .. py:attribute:: digital_level_script_trigger_active_level - - Specifies the active level for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_LEVEL`. - - **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Level Trigger `_ - - **Defined Values**: - - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - | Name | Value | Description | - +==============================================================+===============+==================================================+ - | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` | 9000 (0x2328) | Trigger when the digital trigger signal is high. | - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.LOW` | 9001 (0x2329) | Trigger when the digital trigger signal is low. | - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_active_level` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_level_script_trigger_active_level` - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------------+ - | Characteristic | Value | - +=======================+============================================+ - | Datatype | enums.ScriptTriggerDigitalLevelActiveLevel | - +-----------------------+--------------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+--------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Digital Level:Active Level** - - C Attribute: **NIRFSG_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL** - -digital_level_script_trigger_source ------------------------------------ - - .. py:attribute:: digital_level_script_trigger_source - - Specifies the source terminal for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_LEVEL`. The :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property is not case-sensitive. - - To set the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=========================================================================================================================================+ - | "PFI0" | The trigger is received on PFI 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The trigger is received on PFI 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI2" | The trigger is received on PFI 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI3" | The trigger is received on PFI 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_source` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_level_script_trigger_source` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | str | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Digital Level:Source** - - C Attribute: **NIRFSG_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE** - -direct_download ---------------- - - .. py:attribute:: direct_download - - Specifies whether the :py:meth:`nirfsg.Session.WriteArbWaveform` method immediately writes waveforms to the device or copies the waveform to host memory for later download. NI-RFSG reads and validates this property when an arbitrary waveform is first allocated. - - For the PXI-5670, direct download is always disabled. For all other devices, direct download is always enabled. - - PXI-5671: To increase performance when using large waveforms, enable direct download. To maximize reconfigurability, disable direct download. - - Perform the following steps to enable direct download: - - 1. Set the I/Q rate to less than or equal to 8.33MS/s with the :py:attr:`nirfsg.Session.iq_rate` property. - - 2. Set the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. - - 3. Disable the :py:attr:`nirfsg.Session.iq_swap_enabled` property. - - 4. Disable the :py:attr:`nirfsg.Session.digital_equalization_enabled` property. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +===============================================+===========+=========================================================================================================================================+ - | :py:data:`~nirfsg.DirectDownload.DISABLE` | 0 (0x0) | The RF In local oscillator signal is not present at the front panel LO OUT connector. | - +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.DirectDownload.ENABLE` | 1 (0x1) | The RF In local oscillator signal is present at the front panel LO OUT connector. | - +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.DirectDownload.UNSPECIFIED` | -2 (-0x2) | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | - +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.DirectDownload | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Data Transfer:Direct Download** - - C Attribute: **NIRFSG_ATTR_DIRECT_DOWNLOAD** - -done_event_terminal_name ------------------------- - - .. py:attribute:: done_event_terminal_name - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/DoneEvent, where *AWGName* is the name of your associated AWG module in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841: /*ModuleName*/ao/0/DoneEvent, where *ModuleName* is the name of your device in MAX. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done Event Terminal Name** - - C Attribute: **NIRFSG_ATTR_DONE_EVENT_TERMINAL_NAME** - -events_delay ------------- - - .. py:attribute:: events_delay - - Specifies the delay, in seconds, applied to the Started Event, Done Event, and all Marker Events with respect to the analog output of the RF signal generator. To set this property, the NI-RFSG device must be in the Configuration or Generation state. - - By default, markers and events are delayed to align with the waveform data generated from the device. This property adds an additional delay to markers and events. Use this property to adjust the time delay between events and the corresponding data. - - **Units:** Seconds - - **Valid Values:** - - PXIe-5644/5645: -1.217 μs to 67.050 μs - - PXIe-5646: -0.896 μs to 64.640 μs - - PXIe-5820/5830/5831/5832/5840/5841/5842: 0 μs to 3.276 μs - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Events `_ - - - - .. note:: If you decrease the event delay during generation, some markers may be dropped. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Events:Events Delay** - - C Attribute: **NIRFSG_ATTR_EVENTS_DELAY** - -exported_configuration_settled_event_output_terminal ----------------------------------------------------- - - .. py:attribute:: exported_configuration_settled_event_output_terminal - - Specifies the destination terminal for exporting the Configuration Settled event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+====================================================================================================================+ - | "" | The signal is not exported. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5840/5841/5842. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "TrigOut" | TRIG IN/OUT terminal. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Configuration Settled Event Export Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_CONFIGURATION_SETTLED_EVENT_OUTPUT_TERMINAL** - -exported_done_event_output_terminal ------------------------------------ - - .. py:attribute:: exported_done_event_output_terminal - - Specifies the destination terminal for exporting the Done event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Posible Value | Description | - +===============+=================================================================================================================================+ - | "" | The signal is not exported. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Done Event Export Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL** - -exported_marker_event_output_terminal -------------------------------------- - - .. py:attribute:: exported_marker_event_output_terminal - - Specifies the destination terminal for exporting the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Marker Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].exported_marker_event_output_terminal` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.exported_marker_event_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | markers | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_MARKER_EVENT_OUTPUT_TERMINAL** - -exported_pulse_modulation_event_active_level --------------------------------------------- - - .. py:attribute:: exported_pulse_modulation_event_active_level - - Specifies the active level of the exported Pulse Modulation Event. When `property pulse modulation enabled` is Enabled, `pulse modulation active level` is `active high`, `exported pulse modulation event output terminal` is `PulseOut`, and this property is `active high`, then the Pulse Modulation Event will transition from Low to High after the the Pulse In signal is set to logic high, and the RF Output has settled. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` - - **Supported Devices:** PXIe-5842 - - **Defined Values**: - - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - | Name | Value | Description | - +==============================================================+===============+==================================================+ - | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` | 9000 (0x2328) | Trigger when the digital trigger signal is high. | - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.LOW` | 9001 (0x2329) | Trigger when the digital trigger signal is low. | - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------------+ - | Characteristic | Value | - +=======================+============================================+ - | Datatype | enums.ScriptTriggerDigitalLevelActiveLevel | - +-----------------------+--------------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Pulse Modulation:Exported Pulse Modulation Event Active Level** - - C Attribute: **NIRFSG_ATTR_EXPORTED_PULSE_MODULATION_EVENT_ACTIVE_LEVEL** - -exported_pulse_modulation_event_output_terminal ------------------------------------------------ - - .. py:attribute:: exported_pulse_modulation_event_output_terminal - - Specifies the destination terminal for exporting the Pulse Modulation Event. The Pulse Modulation Event tracks the RF Envelope when Pulse Modulation is Enabled. If this property is set to a value other than `do not export str`, calling NI-RFSG Commit will cause the output terminal to be pulled to the logic level that is the inverse of `exported pulse modulation event active level`. You can tri-state this terminal by setting this property to `do not export str` or by calling `niRFSG Reset`. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** PulseOut - - **Supported Devices:** PXIe-5842 - - **Possible Values**: - - +----------------+---------------------------------------------------------------------+ - | Possible Value | Description | - +================+=====================================================================+ - | "" | Pulse modulation video signal is not exported. | - +----------------+---------------------------------------------------------------------+ - | "PulseOut" | Export the pulse modulation video signal on the pulse out terminal. | - +----------------+---------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------+ - | Characteristic | Value | - +=======================+=====================================+ - | Datatype | enums.PulseModulationOutputTerminal | - +-----------------------+-------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Pulse Modulation:Exported Pulse Modulation Event Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_PULSE_MODULATION_EVENT_OUTPUT_TERMINAL** - -exported_ref_clock_output_terminal ----------------------------------- - - .. py:attribute:: exported_ref_clock_output_terminal - - Specifies the destination terminal for exporting the Reference Clock on the RF signal generators. To set this property, the NI-RFSG device must be in the Configuration state. - - **Possible Values**: - - Possible Value: Description - - "" :The Reference Clock signal is not exported. - - "RefOut" :Exports the Reference Clock signal to the REF OUT connector of the device. - - "RefOut2" :Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. - - "ClkOut" :Exports the Reference Clock signal to the CLK OUT connector of the device. - - **Default Value:** '""' - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Interconnecting Multiple NI 5673E Modules `_ - - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | Supported devices | - +================+============================================================================================+=======================================================================================================================================================================+ - | "ClkOut" | Exports the Reference Clock signal to the CLK OUT connector of the device. | Supported on PXIe-5673, 5673E | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "" | The Reference Clock signal is not exported. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5652, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5652 (See Note) | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefOut" | Exports the Reference Clock signal to the REF OUT connector of the device. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5653, 5653, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5653, | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefOut2" | Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. | Supported on PXIe-5650/5651/5652, 5654, 5673E, PXIe-5654 with PXIe-5696 | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: The RefOut2 output terminal value is valid for only the PXIe-5650/5651/5652, not the PXI-5650/5651/5652. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------------+ - | Characteristic | Value | - +=======================+==========================================+ - | Datatype | enums.ReferenceClockExportOutputTerminal | - +-----------------------+------------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Reference Clock Export Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL** - -exported_ref_clock_rate ------------------------ - - .. py:attribute:: exported_ref_clock_rate - - Specifies the Reference Clock Rate, in Hz, of the signal sent to the Reference Clock Export Output Terminal. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** 10MHz - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------+-------------------------------------+ - | Value | Description | - +==============+=====================================+ - | 10000000.0 | Uses a 10MHz Reference Clock rate. | - +--------------+-------------------------------------+ - | 100000000.0 | Uses a 100MHz Reference Clock rate. | - +--------------+-------------------------------------+ - | 1000000000.0 | Uses a 1GHz Reference Clock rate. | - +--------------+-------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Reference Clock Exported Rate (Hz)** - - C Attribute: **NIRFSG_ATTR_EXPORTED_REF_CLOCK_RATE** - -exported_script_trigger_output_terminal ---------------------------------------- - - .. py:attribute:: exported_script_trigger_output_terminal - - Specifies the destination terminal for exporting the Script Trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ —Refer to this topic for information about trigger delay. - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.exported_script_trigger_output_terminal` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | str | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Export Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL** - -exported_started_event_output_terminal --------------------------------------- - - .. py:attribute:: exported_started_event_output_terminal - - Specifies the destination terminal for exporting the Started event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+========================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Started Event Export Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_STARTED_EVENT_OUTPUT_TERMINAL** - -exported_start_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_start_trigger_output_terminal - - Specifies the destination terminal for exporting the Start Trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+========================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "TrigOut" | The signal is exported to the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Export Output Terminal** - - C Attribute: **NIRFSG_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** - -external_calibration_recommended_interval ------------------------------------------ - - .. py:attribute:: external_calibration_recommended_interval - - Returns the recommended interval between each external calibration of the device. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+--------------------+ - | Characteristic | Value | - +=======================+====================+ - | Datatype | hightime.timedelta | - +-----------------------+--------------------+ - | Permissions | read only | - +-----------------------+--------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **External Calibration:Recommended Interval** - - C Attribute: **NIRFSG_ATTR_EXTERNAL_CALIBRATION_RECOMMENDED_INTERVAL** - -external_calibration_temperature --------------------------------- - - .. py:attribute:: external_calibration_temperature - - Returns the temperature of the device at the time of the last external calibration. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **External Calibration:Last External Calibration Temperature** - - C Attribute: **NIRFSG_ATTR_EXTERNAL_CALIBRATION_TEMPERATURE** - -external_gain -------------- - - .. py:attribute:: external_gain - - Specifies the external amplification or attenuation, if any, between the RF signal generator and the device under test. - - Positive values for this property represent amplification, and negative values for this property represent attenuation. - - **Valid Values:** -INF dB to +INF dB - - **Default Value:** 0dB - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: - Setting this property adjusts the actual device output power to compensate for any amplification or attenuation between the RF signal generator and the device under test. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:External Gain (dB)** - - C Attribute: **NIRFSG_ATTR_EXTERNAL_GAIN** - -fast_tuning_option ------------------- - - .. py:attribute:: fast_tuning_option - - Returns whether the NI RF signal generator has the fast tuning option available. - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Tuning Times for 5654 `_ - - **Defined Values**: - - +-------+------------------------------------------------------------+ - | Value | Description | - +=======+============================================================+ - | True | The RF signal generator has the fast 100 µs tuning option. | - +-------+------------------------------------------------------------+ - | False | The RF signal generator has the 1 ms tuning option. | - +-------+------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Options:Fast Tuning Option** - - C Attribute: **NIRFSG_ATTR_FAST_TUNING_OPTION** - -fixed_group_delay_across_ports ------------------------------- - - .. py:attribute:: fixed_group_delay_across_ports - - Specifies a list of ports for which to fix the group delay. - - - **Supported Devices:** PXIe-5831/5832 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read-write | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Fixed Group Delay Across Ports** - - C Attribute: **NIRFSG_ATTR_FIXED_GROUP_DELAY_ACROSS_PORTS** - -fpga_bitfile_path ------------------ - - .. py:attribute:: fpga_bitfile_path - - Returns a string containing the path to the location of the current NI-RFSG instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the :py:meth:`nirfsg.Session.__init__` method. - - NI-RFSG instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the vector signal transceiver FPGA while maintaining the functionality of the NI-RFSG instrument driver. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver FPGA Extensions `_ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Device Characteristics:FPGA Bitfile Path** - - C Attribute: **NIRFSG_ATTR_FPGA_BITFILE_PATH** - -fpga_target_name ----------------- - - .. py:attribute:: fpga_target_name - - Returns a string that contains the name of the FPGA target being used. This name can be used with the RIO open session to open a reference to the FPGA. - - This property is channel dependent if multiple FPGA targets are supported. - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:FPGA Target Name** - - C Attribute: **NIRFSG_ATTR_FPGA_TARGET_NAME** - -fpga_temperature ----------------- - - .. py:attribute:: fpga_temperature - - Returns the FPGA temperature in degrees Celsius. - - Serial signals between the sensor and the system control unit can potentially modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:FPGA Temperature (Degrees C)** - - C Attribute: **NIRFSG_ATTR_FPGA_TEMPERATURE** - -frequency ---------- - - .. py:attribute:: frequency - - Specifies the frequency of the generated RF signal. For arbitrary waveform generation, this property specifies the center frequency of the signal. - - The PXI-5670/5671, PXIe-5672, PXIe-5820, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. - - **Units**: hertz (Hz) - - **Defined Values**: - Refer to the specifications document for your device allowable frequency settings. - - **Default Value:** - - PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E: 100MHz - - PXIe-5653: 4GHz - - PXIe-5820: 0Hz - - PXIe-5830/5831/5832: 6.5 GHz - - PXIe-5840/5841/5860, PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options): 1GHz - - PXIe-5842 (4 GHz bandwidth option) using the Standard personality: 1GHz - - PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: 6.5GHz - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.ConfigureRf` - - - - .. note:: For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Frequency (Hz)** - - C Attribute: **NIRFSG_ATTR_FREQUENCY** - -frequency_settling ------------------- - - .. py:attribute:: frequency_settling - - Specifies the frequency settling time. Interpretation of this value depends on the :py:attr:`nirfsg.Session.frequency_settling_units` property. - - **Valid Values:** - - The valid values for this property depend on the :py:attr:`nirfsg.Session.frequency_settling_units` property. - - - - **Default Value**: 1.0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Settling Times `_ - - `Events `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Frequency Settling** - - C Attribute: **NIRFSG_ATTR_FREQUENCY_SETTLING** - -frequency_settling_units ------------------------- - - .. py:attribute:: frequency_settling_units - - Specifies the interpretation of the value passed to the :py:attr:`nirfsg.Session.frequency_settling` property. - - PXIe-5650/5651/5652/5653, PXIe-5673E: When the :py:attr:`nirfsg.Session.ACTIVE_CONFIGURATION_LIST` property is set to a valid list name, the :py:attr:`nirfsg.Session.frequency_settling_units` property supports only :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO` as a valid value. - - PXIe-5654/5654 with PXIe-5696: The :py:attr:`nirfsg.Session.frequency_settling_units` property supports only :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO` and :py:data:`~nirfsg.FrequencySettlingUnits.PPM` as valid values. - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Default Value**: :py:data:`~nirfsg.FrequencySettlingUnits.PPM` - - **Related Topics** - - `Events `_ - - **Defined Values**: - - +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===========================================================+=================================================================================================================+ - | :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_LOCK` | Specifies the time to wait after the frequency PLL locks. | - +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO` | Specifies the time to wait after all writes occur to change the frequency. | - +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.FrequencySettlingUnits.PPM` | Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). | - +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - - .. note:: If you set this property to :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO`, the definition of settled for the Configuration Settled event changes. - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.FrequencySettlingUnits | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Frequency Settling Units** - - C Attribute: **NIRFSG_ATTR_FREQUENCY_SETTLING_UNITS** - -generation_mode ---------------- - - .. py:attribute:: generation_mode - - Specifies whether to generate a continuous wave (CW) signal, the arbitrary waveform specified by the :py:attr:`nirfsg.Session.arb_selected_waveform` property, or the script specified by the :py:attr:`nirfsg.Session.selected_script` property, upon calling the :py:meth:`nirfsg.Session._initiate` method. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.GenerationMode.CW` - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696 (CW support only), PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - `Scripting Instructions `_—Refer to this topic for more information about scripting. - - **Defined Values**: - - +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +================================================+==============+==================================================================================================================================================+ - | :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` | 1001 (0x3e9) | Configures the RF signal generator to generate the arbitrary waveform specified by the :py:attr:`nirfsg.Session.arb_selected_waveform` property. | - +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.GenerationMode.CW` | 1000 (0x3e8) | Configures the RF signal generator to generate a CW signal. | - +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.GenerationMode.SCRIPT` | 1002 (0x3ea) | Configures the RF signal generator to generate arbitrary waveforms as directed by the :py:attr:`nirfsg.Session.selected_script` property.. | - +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.GenerationMode | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Generation Mode** - - C Attribute: **NIRFSG_ATTR_GENERATION_MODE** - -group_capabilities ------------------- - - .. py:attribute:: group_capabilities - - Returns a list of class-extension groups that NI-RFSG implements. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Class Group Capabilities** - - C Attribute: **NIRFSG_ATTR_GROUP_CAPABILITIES** - -host_dma_buffer_size --------------------- - - .. py:attribute:: host_dma_buffer_size - - Specifies the size of the DMA buffer in computer memory, in bytes. To set this property, the NI-RFSG device must be in the Configuration state. - - A sufficiently large host DMA buffer improves performance by allowing large writes to be transferred more efficiently. - - **Units:** bytes - - **Default Value:** 8MB - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Data Transfer:Advanced:Host DMA Buffer Size** - - C Attribute: **NIRFSG_ATTR_HOST_DMA_BUFFER_SIZE** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - Returns a string that contains the firmware revision information for the NI-RFSG device you are currently using. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** - - C Attribute: **NIRFSG_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - Returns a string that contains the name of the manufacturer of the NI-RFSG device you are currently using. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** - - C Attribute: **NIRFSG_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - Returns a string that contains the model number or name of the NI-RFSG device that you are currently using. For drivers that support more than one device, this property returns a comma-separated list of supported devices. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** - - C Attribute: **NIRFSG_ATTR_INSTRUMENT_MODEL** - -interpolation_delay -------------------- - - .. py:attribute:: interpolation_delay - - Specifies the delay, in seconds, to apply to the I/Q waveform. To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** Seconds - - **Valid Values:** Plus or minus half of one I/Q sample period - - **Supported Devices:** PXIe-5644/5645/5646 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Interpolation Delay** - - C Attribute: **NIRFSG_ATTR_INTERPOLATION_DELAY** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Returns a string that contains the resource name NI-RFSG uses to identify the physical device. If you initialize NI-RFSG with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. If you initialize NI-RFSG with the resource name, this property contains that value. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** - - C Attribute: **NIRFSG_ATTR_IO_RESOURCE_DESCRIPTOR** - -iq_gain_imbalance ------------------ - - .. py:attribute:: iq_gain_imbalance - - Specifies the gain imbalance of the I/Q modulator (I versus Q). - - Gain imbalance is calculated with the following equation: - - **Units**: dB - - **Valid Values:**-6dB to 6dB - - **Default Value:** 0dB - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Impairment Calibration `_ - - `Spurious Performance `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **IQ Impairment:Gain Imbalance (dB)** - - C Attribute: **NIRFSG_ATTR_IQ_GAIN_IMBALANCE** - -iq_impairment_enabled ---------------------- - - .. py:attribute:: iq_impairment_enabled - - Enables or disables I/Q impairment. The :py:attr:`nirfsg.Session.iq_i_offset`, :py:attr:`nirfsg.Session.iq_q_offset`, :py:attr:`nirfsg.Session.iq_gain_imbalance`, and :py:attr:`nirfsg.Session.iq_skew` properties are ignored when the :py:attr:`nirfsg.Session.iq_impairment_enabled` property is disabled. - - **Default Value:** True - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------+-----------------------------+ - | Value | Description | - +=======+=============================+ - | True | I/Q impairment is enabled. | - +-------+-----------------------------+ - | False | I/Q impairment is disabled. | - +-------+-----------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **IQ Impairment:Enabled** - - C Attribute: **NIRFSG_ATTR_IQ_IMPAIRMENT_ENABLED** - -iq_i_offset ------------ - - .. py:attribute:: iq_i_offset - - When using a National Instruments AWG module or vector signal transceiver (VST), this property specifies the I-signal DC offset. Units are either percent (%) or volts (V), depending on the :py:attr:`nirfsg.Session.iq_offset_units` property setting. - - PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), this property is read-only and indicates the I/Q modulator I-offset. Units are volts, as specified by the :py:attr:`nirfsg.Session.iq_offset_units` property. - - **Valid Values:**-100 to 100% or -0.2V to 0.2V - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Impairment Calibration `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **IQ Impairment:I Offset** - - C Attribute: **NIRFSG_ATTR_IQ_I_OFFSET** - -iq_offset_units ---------------- - - .. py:attribute:: iq_offset_units - - Specifies the units of the :py:attr:`nirfsg.Session.iq_i_offset` property and :py:attr:`nirfsg.Session.iq_q_offset` property. Offset units are either percent or volts. - - The AWG or VST offset is the specified percentage of the AWG or VST peak power level when the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.PERCENT`. Given perfect carrier leakage suppression, the following equation is satisfied - - - or equivalently - - If the :py:attr:`nirfsg.Session.iq_i_offset` property is set to 100%, :py:attr:`nirfsg.Session.iq_q_offset` property is set to 0%, and :py:attr:`nirfsg.Session.power_level` property set to 0 dBm, the desired RF signal is at 0 dBm and the carrier leakage is also at 0 dBm. - - The AWG or VST peak power level changes when settings change in other properties such as the :py:attr:`nirfsg.Session.power_level`, :py:attr:`nirfsg.Session.frequency`, :py:attr:`nirfsg.Session.iq_skew`, :py:attr:`nirfsg.Session.iq_gain_imbalance` and :py:attr:`nirfsg.Session.arb_pre_filter_gain` properties. When the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.PERCENT`, the actual AWG or VST offset changes as the AWG or VST peak power level changes to satisfy the preceding equations. These changes are useful if you are intentionally adding carrier leakage to test the tolerance of a receiver. When the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.PERCENT`, the carrier leakage, in dBc, remains at a consistent level. - - If you are trying to eliminate residual carrier leakage due to calibration inaccuracies or drift, set the :py:attr:`nirfsg.Session.iq_offset_units` property to :py:data:`~nirfsg.OffsetUnits.VOLTS`. Offset correction voltage is applied to the I/Q modulator or VST, regardless of changes to the AWG or VST peak power level. - - **Default Value**: :py:data:`~nirfsg.OffsetUnits.PERCENT` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +========================================+==========================================================================================================================+ - | :py:data:`~nirfsg.OffsetUnits.PERCENT` | Specifies the :py:attr:`nirfsg.Session.iq_i_offset` and :py:attr:`nirfsg.Session.iq_q_offset` property units as percent. | - +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.OffsetUnits.VOLTS` | Specifies the :py:attr:`nirfsg.Session.iq_i_offset` and :py:attr:`nirfsg.Session.iq_q_offset` property units as volts. | - +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ - - .. note:: For any devices except PXIe-5820, if the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.VOLTS`, a 0.1 I offset results in a 0.1 V offset in the output. For PXIe-5820 devices, 0.1 I offset results in a 10% offset in the output. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.OffsetUnits | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **IQ Impairment:Offset Units** - - C Attribute: **NIRFSG_ATTR_IQ_OFFSET_UNITS** - -iq_out_port_carrier_frequency ------------------------------ - - .. py:attribute:: iq_out_port_carrier_frequency - - Specifies the frequency of the I/Q OUT port signal. The onboard signal processing (OSP) applies the specified frequency shift to the I/Q data before the data is sent to the digital-to-analog converter (DAC). To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** hertz (Hz) - - **Valid Values:** - - PXIe-5645: -60MHz to 60MHz - - PXIe-5820: -500MHz to 500MHz - - **Supported Devices:** PXIe-5645, PXIe-5820 - - - - .. note:: - For the PXIe-5820, NI recommends using the :py:attr:`nirfsg.Session.frequency` property. - - - For the PXIe-5645, this property is ignored if you are using the RF ports. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Carrier Frequency** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_CARRIER_FREQUENCY** - -iq_out_port_common_mode_offset ------------------------------- - - .. py:attribute:: iq_out_port_common_mode_offset - - Specifies the common-mode offset applied to the signals generated at each differential output terminal. This property applies only when you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`. Common-mode offset shifts both positive and negative terminals in the same direction. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** Volts - - **Valid Values:** - - PXIe-5645: -0.8V to 0.8V if you set the :py:attr:`nirfsg.Session.iq_out_port_load_impedance` property to 50 Ω. The valid values are -1.2V to 1.2V if you set the :py:attr:`nirfsg.Session.iq_out_port_load_impedance` property to 100 Ω. - - PXIe-5820: -0.25V to 1.5V - - **Supported Devices:** PXIe-5645, PXIe-5820 - - - - .. note:: - For the PXIe-5645, this property is ignored if you are using the RF ports. - - - The valid range is dependent on the load impedance. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_common_mode_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_common_mode_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Common Mode Offset** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_COMMON_MODE_OFFSET** - -iq_out_port_level ------------------ - - .. py:attribute:: iq_out_port_level - - Specifies the amplitude of the generated signal in volts, peak-to-peak (V). For example, if you set this property to 1.0, the output signal ranges from -0.5 volts to 0.5 volts. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - To set this property, the NI-RFSG device must be in the Configuration state. - - Refer to the specifications document for your device for allowable output levels. - - **Units:** Volts, peak-to-peak (V :sub:`pk-pk` ) - - **Valid Values:** - - PXIe-5645: 1V :sub:`pk-pk` maximum if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`, and 0.5V :sub:`pk-pk` - - maximum if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`. - - PXIe-5820: 3.4V :sub:`pk-pk` maximum for signal bandwidth less than 160MHz, and 2V :sub:`pk-pk` - - maximum for signal bandwidth greater than 160MHz. - - **Default Value:** 0.5volts - - **Supported Devices:** PXIe-5645, PXIe-5820 - - - - .. note:: - For the PXIe-5645, this property is ignored if you are using the RF ports. - - - The valid values are only applicable when you set the :py:attr:`nirfsg.Session.iq_out_port_load_impedance` property to 50 Ω and when you set the :py:attr:`nirfsg.Session.iq_out_port_offset` property to 0. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Level** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_LEVEL** - -iq_out_port_load_impedance --------------------------- - - .. py:attribute:: iq_out_port_load_impedance - - Specifies the load impedance connected to the I/Q OUT port. To set this property, the NI-RFSG device must be in the Configuration state. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - **Units:** Ohms - - **Valid Values:** Any value greater than 0. Values greater than or equal to 1 megaohms (MΩ) are interpreted as high impedance. - - **Default Value:** 50 Ω if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`, and 100 Ω if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`. - - **Supported Devices:** PXIe-5645, PXIe-5820 - - - - .. note:: For the PXIe-5645, this property is ignored if you are using the RF ports. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_load_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_load_impedance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Load Impedance** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_LOAD_IMPEDANCE** - -iq_out_port_offset ------------------- - - .. py:attribute:: iq_out_port_offset - - Specifies the value, in volts, that the signal generator adds to the arbitrary waveform data. To set this property, the NI-RFSG device must be in the Configuration state. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - PXIe-5645: The waveform may be scaled in DSP prior to adding offset and the device state may be changed in order to accommodate the requested offset. - - PXIe-5820: The waveform is not automatically scaled in DSP. To prevent DSP overflows, use the :py:attr:`nirfsg.Session.arb_pre_filter_gain` property to scale the waveform to provide additional headroom for offsets. - - **Units:** Volts - - **Supported Devices:** PXIe-5645, PXIe-5820 - - - - .. note:: For the PXIe-5645, this property is ignored if you are using the RF ports. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Offset** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_OFFSET** - -iq_out_port_temperature ------------------------ - - .. py:attribute:: iq_out_port_temperature - - Returns the temperature, in degrees Celsius, of the I/Q Out circuitry on the device. - - **Units:** Degrees Celsius - - **Supported Devices:** PXIe-5645, PXIe-5820 - - - - .. note:: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Temperature (Degrees C)** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_TEMPERATURE** - -iq_out_port_terminal_configuration ----------------------------------- - - .. py:attribute:: iq_out_port_terminal_configuration - - Specifies whether to use the I/Q OUT port for differential configuration or single-ended configuration. If you set this property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`, you must terminate the negative I and Q output connectors with a 50 Ohm termination. - - If you set this property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`, the positive I and Q connectors generate the resulting waveform. If you set this property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`, both the positive and negative I and Q connectors generate the resulting waveform. - - To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL` - - PXIe-5820: The only valid value for this property is :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`. - - **Supported Devices:** PXIe-5645, PXIe-5820 - - **Related Topics** - - `Differential and Single-Ended Operation (I/O Interface) `_ - - **Defined Values**: - - +----------------------------------------------------------------+----------------+--------------------------------------------------+ - | Name | Value | Description | - +================================================================+================+==================================================+ - | :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL` | 15000 (0x3a98) | Sets the terminal configuration to differential. | - +----------------------------------------------------------------+----------------+--------------------------------------------------+ - | :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED` | 15001 (0x3a99) | Sets the terminal configuration to single-ended. | - +----------------------------------------------------------------+----------------+--------------------------------------------------+ - - .. note:: For the PXIe-5645, this property is ignored if you are using the RF ports. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_terminal_configuration` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_terminal_configuration` - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------+ - | Characteristic | Value | - +=======================+======================================+ - | Datatype | enums.IQOutPortTerminalConfiguration | - +-----------------------+--------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+--------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Terminal Configuration** - - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_TERMINAL_CONFIGURATION** - -iq_q_offset ------------ - - .. py:attribute:: iq_q_offset - - When using a National Instruments AWG module or VST device, this property specifies the Q-signal DC offset. Units are either percent (%) or volts (V), depending on the :py:attr:`nirfsg.Session.iq_offset_units` property setting. - PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), the :py:attr:`nirfsg.Session.iq_q_offset` property is read-only and indicates the I/Q modulator Q-offset. Units are volts, as indicated by the :py:attr:`nirfsg.Session.iq_offset_units` property. - **Valid Values**: -100% to 100% or -0.2V to 0.2V - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - **Related Topics** - `Impairment Calibration `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **IQ Impairment:Q Offset** - - C Attribute: **NIRFSG_ATTR_IQ_Q_OFFSET** - -iq_rate -------- - - .. py:attribute:: iq_rate - - This property specifies the I/Q rate of the arbitrary waveform. The I/Q rate is coerced to a value the hardware can achieve. Read this value back after setting it to see the actual I/Q rate. NI-RFSG internally uses an FIR filter with flat response up to (0.4 × IQ rate). Given a desired signal with the maximum frequency content *f*, sample the signal at an I/Q rate greater than or equal to ( *f*/0.4). - - This property applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`. - - To set this property, the NI-RFSG device must be in the Configuration state. - - Setting this property to 50 MS/s on the PXI-5670/5671 and PXIe-5672 has the following implications: - - NI-RFSG is forced to place the carrier frequency at 18 MHz ± 1 MHz to avoid aliasing. This means that NI-RFSG cannot select a carrier frequency that could optimize waveform size if phase continuity is enabled. - - Output signal bandwidth must be <5 MHz to avoid aliasing. - - Close-in phase noise is higher. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. - - `Digital Upconverter `_ - - **Valid Values**: - - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Device | I/Q Rates | - +==========================================================================+====================================================================================================================================================================================================================================================+ - | PXIe-5644/5645 | Up to 120 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5646 | Up to 250 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXI-5670 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | | 100 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXI-5671 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | | 100 MS/s | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5672 | Up to 100 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5673/5673E | Up to 200 MS/s. Note that - If an PXIe-5450 with module revisions A or B is used as part of your PXIe-5673/5673E, the NI-FGEN NIFGEN_ATTR_COMPENSATE_FOR_FILTER_GROUP_DELAY property is disabled if the requested I/Q rate is less than 1.5 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5820/5830/5831/5832/5840/5841/5860 | Up to 1.25 GS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options) | Up to 2.5 GS/s | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5842 (4 GHz bandwidth option) using the Standard personality | Up to 2.5 GS/s | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality | 5 GS/s only. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: Use this property to associate an I/Q rate with a waveform. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:IQ** - - C Attribute: **NIRFSG_ATTR_IQ_RATE** - -iq_skew -------- - - .. py:attribute:: iq_skew - - Specifies the adjustment of the phase angle between the I and Q vectors. If the skew is zero, the phase angle is 90 degrees. - - This property is ignored when the :py:attr:`nirfsg.Session.iq_impairment_enabled` property is disabled. - - **Units**: degrees (°) - - **Valid Values:**-30° to 30° - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Impairment Calibration `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **IQ Impairment:IQ Skew (Degrees)** - - C Attribute: **NIRFSG_ATTR_IQ_SKEW** - -iq_swap_enabled ---------------- - - .. py:attribute:: iq_swap_enabled - - Enables or disables the inverse phase rotation of the I/Q signal by swapping the I and Q inputs. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------+---------------------------------------------------------------------+ - | Value | Description | - +=======+=====================================================================+ - | True | NI-RFSG device applies noninverse phase rotation of the I/Q signal. | - +-------+---------------------------------------------------------------------+ - | False | NI-RFSG device applies inverse phase rotation of the I/Q signal. | - +-------+---------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NIRFSG_ATTR_IQ_SWAP_ENABLED** - -load_configurations_from_file_load_options ------------------------------------------- - - .. py:attribute:: load_configurations_from_file_load_options - - Specifies the configurations to skip while loading from a file. - - **Default Value:** :py:data:`~nirfsg.NIRFSG_VAL_SKIP_NONE` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------------------------------------------------------------+-------------------------------------------------------------------+ - | Value | Description | - +====================================================================+===================================================================+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_NONE | NI-RFSG loads all the configurations to the session. | - +--------------------------------------------------------------------+-------------------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips loading the waveform configurations to the session. | - +--------------------------------------------------------------------+-------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.LoadOptions | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Load Configurations:Load Options** - - C Attribute: **NIRFSG_ATTR_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS** - -load_configurations_from_file_reset_options -------------------------------------------- - - .. py:attribute:: load_configurations_from_file_reset_options - - Specifies the configurations to skip to reset while loading configurations from a file. - - **Default Value:** :py:data:`~nirfsg.NIRFSG_VAL_SKIP_NONE` - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------------------------------------------------+------------------------------------------------------+ - | Value | Description | - +==============================================================================+======================================================+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_NONE | NI-RFSG resets all configurations. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips resetting the waveform configurations. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_SCRIPTS | NI-RFSG skips resetting the scripts. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_DEEMBEDDING_TABLES | NI-RFSG skips resetting the de-embedding tables. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------+ - | Characteristic | Value | - +=======================+=====================================+ - | Datatype | enums.LoadConfigurationResetOptions | - +-----------------------+-------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Load Configurations:Reset Options** - - C Attribute: **NIRFSG_ATTR_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS** - -logical_name ------------- - - .. py:attribute:: logical_name - - Returns a string that contains the logical name you specified when opening the current IVI session. You can pass a logical name to the :py:meth:`nirfsg.Session.Init` method or the :py:meth:`nirfsg.Session.__init__` method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NIRFSG_ATTR_LOGICAL_NAME** - -loop_bandwidth --------------- - - .. py:attribute:: loop_bandwidth - - Configures the loop bandwidth of the tuning PLLs. This property is ignored on the PXI-5610, PXI-5670/5671, and PXIe-5672 for signal bandwidths greater than or equal to 10MHz. This property is ignored on the PXI/PXIe-5650/5651/5652 for RF frequencies less than 50MHz. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value:** - - PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842: :py:data:`~nirfsg.LoopBandwidth.MEDIUM` - - PXI/PXIe-5650/5651/5652, PXIe-5673/5673E: :py:data:`~nirfsg.LoopBandwidth.NARROW` - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Phase-Locked Loop Bandwidth `_ - - `Modulation Implementation `_ - - `Sinusoidal Tone Versus Modulation Operation `_ - - **Defined Values**: - - +-----------------------------------------+---------+--------------------------------------------------------+ - | Name | Value | Description | - +=========================================+=========+========================================================+ - | :py:data:`~nirfsg.LoopBandwidth.MEDIUM` | 1 (0x1) | Uses the medium loop bandwidth setting for the PLL. | - +-----------------------------------------+---------+--------------------------------------------------------+ - | :py:data:`~nirfsg.LoopBandwidth.NARROW` | 0 (0x0) | Uses the narrowest loop bandwidth setting for the PLL. | - +-----------------------------------------+---------+--------------------------------------------------------+ - | :py:data:`~nirfsg.LoopBandwidth.WIDE` | 2 (0x2) | Uses the widest loop bandwidth setting for the PLL. | - +-----------------------------------------+---------+--------------------------------------------------------+ - - .. note:: Setting this property to :py:data:`~nirfsg.LoopBandwidth.WIDE` on the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, or the PXIe-5673/5673E allows the frequency to settle significantly faster at the expense of increased phase noise. Setting this property to :py:data:`~nirfsg.LoopBandwidth.MEDIUM` is not a valid option on the PXI/PXIe-5650/5651/5652 or PXIe-5673/5673E. :py:data:`~nirfsg.LoopBandwidth.MEDIUM` is the only supported value for the PXIe-5840/5841/5842. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].loop_bandwidth` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.loop_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | enums.LoopBandwidth | - +-----------------------+---------------------+ - | Permissions | read-write | - +-----------------------+---------------------+ - | Repeated Capabilities | los | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Loop Bandwidth** - - C Attribute: **NIRFSG_ATTR_LOOP_BANDWIDTH** - -lo_frequency ------------- - - .. py:attribute:: lo_frequency - - Specifies the frequency of the LO source. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Configuration `_ - - `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ - - - - .. note:: This property is read/write if you are using an external LO. Otherwise, this property is read-only. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_frequency` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:LO Frequency (Hz)** - - C Attribute: **NIRFSG_ATTR_LO_FREQUENCY** - -lo_frequency_step_size ----------------------- - - .. py:attribute:: lo_frequency_step_size - - Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). - - When the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property is enabled, the specified step size affects the fractional spur performance of the device. When the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property is disabled, the specified step size affects the phase noise performance of the device. - - The valid values for this property depend on the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property. - - **PXIe-5644/5645/5646**—If you disable the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property, the specified value is coerced to the nearest valid value. - - **PXIe-5840/5841**—If you disable the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. - - **Units:** hertz (Hz) - - **Default Values:** - - PXIe-5644/5645/5646: 200kHz - - PXIe-5830: 2MHz - - PXIe-5831/5832 (RF port): 8MHz - - PXIe-5831/5832 (IF port): 2MHz, 4MHz - - PXIe-5840/5841: - - - Fractional mode: 500 kHz - - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. - - PXIe-5841 with PXIe-5655: 500kHz - - PXIe-5842: 1Hz - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - | :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` Property Setting | :py:data:`~nirfsg.NIRFSG_VAL_ENABLE` | :py:data:`~nirfsg.NIRFSG_VAL_DISABLE` | - +============================================================================================================================+======================================+==================================================+ - | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5644/5645 | 50 kHz to 24 MHz | 4 MHz, 5 MHz, 6 MHz, 12 MHz, or 24 MHz | - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5646 | 50 kHz to 25 MHz | 2 MHz, 5 MHz, 10 MHz, or 25 MHz | - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5840/5841 | 50 kHz to 100 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, or 100 MHz | - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5830/5831/ 5832 LO1 | 8 Hz to 400 MHz | — | - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5830/5831/ 5832 LO2 | 4 Hz to 400 MHz | — | - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5841 with PXIe-5655/NI PXIe-5842 (See note) | 1 nHz to 100 MHz | 1 nHz to 50 MHz | - +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ - - .. note:: Values up to 100 MHz are coerced to 50 MHz. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Frequency Step Size (Hz)** - - C Attribute: **NIRFSG_ATTR_LO_FREQUENCY_STEP_SIZE** - -lo_in_power ------------ - - .. py:attribute:: lo_in_power - - Specifies the power level of the signal at the LO IN front panel connector. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Units**: dBm - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `LO OUT `_ - - - - .. note:: - This property is read/write if you are using an external LO. Otherwise, this property is read-only. - - - For the PXIe-5644/5645/5646, this property is always read-only. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_in_power` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_in_power` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:LO In Power (dBm)** - - C Attribute: **NIRFSG_ATTR_LO_IN_POWER** - -lo_out_enabled --------------- - - .. py:attribute:: lo_out_enabled - - Specifies whether the local oscillator signal is present at the LO OUT front panel connector. The local oscillator signal remains at the LO OUT front panel connector until this property is set to False, even if the :py:attr:`nirfsg.Session.output_enabled` property is set to False, the :py:meth:`nirfsg.Session.abort` method is called, or the NI-RFSG session is closed. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_boolean` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value:** :py:data:`~nirfsg.NIRFSG_VAL_DISABLE` - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `LO OUT `_ - - **Defined Values**: - - +---------------------------------------+---------------------------------------------------------------------------------+ - | Name | Description | - +=======================================+=================================================================================+ - | :py:data:`~nirfsg.NIRFSG_VAL_ENABLE` | The local oscillator signal is present at the LO OUT front panel connector. | - +---------------------------------------+---------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_DISABLE` | The local oscillator signal is not present at the LO OUT front panel connector. | - +---------------------------------------+---------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_out_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_out_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:LO Out Enabled** - - C Attribute: **NIRFSG_ATTR_LO_OUT_ENABLED** - -lo_out_export_configure_from_rfsa ---------------------------------- - - .. py:attribute:: lo_out_export_configure_from_rfsa - - Specifies whether to allow NI-RFSA to control the NI-RFSG LO out export. - - Set this property to :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.ENABLE` to allow NI-RFSA to control the LO out export. Use the RF OUT LO EXPORT ENABLED property to control the LO out export from NI-RFSA. - - **Default Value:** :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.DISABLE` - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +---------------------------------------------------------------+---------+----------------------------------------------------------------------+ - | Name | Value | Description | - +===============================================================+=========+======================================================================+ - | :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.ENABLE` | 0 (0x0) | Do not allow NI-RFSA to control the NI-RFSG local oscillator export. | - +---------------------------------------------------------------+---------+----------------------------------------------------------------------+ - | :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.DISABLE` | 1 (0x1) | Allow NI-RFSA to control the NI-RFSG local oscillator export. | - +---------------------------------------------------------------+---------+----------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------------------+ - | Characteristic | Value | - +=======================+==========================================+ - | Datatype | enums.LoOutExportConfigureFromRfsaEnable | - +-----------------------+------------------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:LO Out Export Configure From RFSA** - - C Attribute: **NIRFSG_ATTR_LO_OUT_EXPORT_CONFIGURE_FROM_RFSA** - -lo_out_power ------------- - - .. py:attribute:: lo_out_power - - Specifies the power level of the signal at the LO OUT front panel connector. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Units**: dBm - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `LO OUT `_ - - - - .. note:: For the PXIe-5644/5645/5646 and PXIe-5673/5673E, this property is always read-only. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_out_power` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_out_power` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | los | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:LO Out Power (dBm)** - - C Attribute: **NIRFSG_ATTR_LO_OUT_POWER** - -lo_pll_fractional_mode_enabled ------------------------------- - - .. py:attribute:: lo_pll_fractional_mode_enabled - - Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). This property enables or disables fractional frequency tuning in the LO. Fractional mode provides a finer frequency step resolution and allows smaller values for the :py:attr:`nirfsg.Session.lo_frequency_step_size` property. However, fractional mode may introduce non-harmonic spurs. - - This property applies only if you set the :py:attr:`nirfsg.Session.lo_source` property to Onboard. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" . - - **Default Value:** :py:data:`~nirfsg.LoPllFractionalModeEnabled.ENABLE` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - Refer to the local oscillators topic appropriate to your device for more information about using fractional mode. - - **Defined Values**: - - +-------------------------------------------------------+---------+------------------------------------------+ - | Name | Value | Description | - +=======================================================+=========+==========================================+ - | :py:data:`~nirfsg.LoPllFractionalModeEnabled.ENABLE` | 0 (0x0) | Disables fractional mode for the LO PLL. | - +-------------------------------------------------------+---------+------------------------------------------+ - | :py:data:`~nirfsg.LoPllFractionalModeEnabled.DISABLE` | 1 (0x1) | Enables fractional mode for the LO PLL. | - +-------------------------------------------------------+---------+------------------------------------------+ - - .. note:: For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.LoPllFractionalModeEnabled | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | los | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO PLL Fractional Mode Enabled** - - C Attribute: **NIRFSG_ATTR_LO_PLL_FRACTIONAL_MODE_ENABLED** - -lo_source ---------- - - .. py:attribute:: lo_source - - Specifies whether to use the internal or external local oscillator (LO) source. If the :py:attr:`nirfsg.Session.lo_source` property is set to "" (empty string), NI-RFSG uses the internal LO source. To set this property, the NI-RFSG device must be in the Configuration state. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_string` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value:** Onboard - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ - - `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ - - **Possible Values**: - - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +==========================+==================================================================================================================================================================================================================================================================+ - | "Automatic_SG_SA_Shared" | NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "LO_In" | Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the :py:attr:`nirfsg.Session.upconverter_center_frequency` property to specify the LO frequency. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "Onboard" | Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "SG_SA_Shared" | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "Secondary" | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to SG_SA_Shared. - - - .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_source` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_source` - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.LoSource | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | los | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Source** - - C Attribute: **NIRFSG_ATTR_LO_SOURCE** - -lo_temperature --------------- - - .. py:attribute:: lo_temperature - - Returns the LO module temperature in degrees Celsius. - - PXIe-5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXIe-5673/5673E, PXIe-5840/5841/5842 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:LO Temperature (Degrees C)** - - C Attribute: **NIRFSG_ATTR_LO_TEMPERATURE** - -lo_vco_frequency_step_size --------------------------- - - .. py:attribute:: lo_vco_frequency_step_size - - Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. - - **Valid Values**: - - LO1: 1 Hz to 50 MHz - - LO2: 1 Hz to 100 MHz - - **Default Value**: 1 MHz - - **Supported Devices**: PXIe-5830/5831/5832 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO VCO Frequency Step Size (Hz)** - - C Attribute: **NIRFSG_ATTR_LO_VCO_FREQUENCY_STEP_SIZE** - -marker_event_output_behavior ----------------------------- - - .. py:attribute:: marker_event_output_behavior - - Specifies the output behavior for the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Defined Values**: - - +-----------------------------------------------------+----------------+-------------------------------------------------------+ - | Name | Value | Description | - +=====================================================+================+=======================================================+ - | :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE` | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | - +-----------------------------------------------------+----------------+-------------------------------------------------------+ - | :py:data:`~nirfsg.MarkerEventOutputBehavior.TOGGLE` | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | - +-----------------------------------------------------+----------------+-------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_output_behavior` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_output_behavior` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------+ - | Characteristic | Value | - +=======================+=================================+ - | Datatype | enums.MarkerEventOutputBehavior | - +-----------------------+---------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------+ - | Repeated Capabilities | markers | - +-----------------------+---------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Output Behavior** - - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_OUTPUT_BEHAVIOR** - -marker_event_pulse_width ------------------------- - - .. py:attribute:: marker_event_pulse_width - - Specifies the pulse width value for the Marker Event. Use the :py:attr:`nirfsg.Session.marker_event_pulse_width_units` property to set the units for the pulse width value. This property is valid only when the :py:attr:`nirfsg.Session.marker_event_output_behavior` property is set to :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE`. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** 200 ns - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | markers | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Pulse:Width Value** - - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_PULSE_WIDTH** - -marker_event_pulse_width_units ------------------------------- - - .. py:attribute:: marker_event_pulse_width_units - - Specifies the pulse width units for the Marker Event. This property is valid only when the :py:attr:`nirfsg.Session.marker_event_output_behavior` property is set to :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE`. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.MarkerEventPulseWidthUnits.SECONDS` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Defined Values**: - - +-----------------------------------------------------+----------------+-------------------------------------------------------+ - | Name | Value | Description | - +=====================================================+================+=======================================================+ - | :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE` | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | - +-----------------------------------------------------+----------------+-------------------------------------------------------+ - | :py:data:`~nirfsg.MarkerEventOutputBehavior.TOGGLE` | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | - +-----------------------------------------------------+----------------+-------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width_units` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.MarkerEventPulseWidthUnits | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | markers | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Pulse:Width Units** - - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_PULSE_WIDTH_UNITS** - -marker_event_terminal_name --------------------------- - - .. py:attribute:: marker_event_terminal_name - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/Marker *X* Event, where *AWGName* is the name of your associated AWG module in MAX and *X* is Marker Event 0 through 3. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/Marker *X* Event, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Marker Event 0 through 3. - - PXIe-5820/5840/5841: /*ModuleName*/ao/0/Marker *X* Event, where *ModuleName* is the name of your device in MAX and *X* is Marker Event 0 through 3. - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.get_terminal_name` - - - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_terminal_name` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | markers | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Terminal Name** - - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_TERMINAL_NAME** - -marker_event_toggle_initial_state ---------------------------------- - - .. py:attribute:: marker_event_toggle_initial_state - - Specifies the initial state for the Marker Event when the :py:attr:`nirfsg.Session.marker_event_output_behavior` property is set to :py:data:`~nirfsg.MarkerEventOutputBehavior.TOGGLE`. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.MarkerEventToggleInitialState.LOW` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Defined Values**: - - +-------------------------------------------------------+----------------+----------------------------------------------------------------------------------+ - | Name | Value | Description | - +=======================================================+================+==================================================================================+ - | :py:data:`~nirfsg.MarkerEventToggleInitialState.HIGH` | 21001 (0x5209) | Specifies the initial state of the Marker Event toggle behavior as digital high. | - +-------------------------------------------------------+----------------+----------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.MarkerEventToggleInitialState.LOW` | 21000 (0x5208) | Specifies the initial state of the Marker Event toggle behavior as digital low. | - +-------------------------------------------------------+----------------+----------------------------------------------------------------------------------+ - - - .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_toggle_initial_state` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_toggle_initial_state` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------+ - | Characteristic | Value | - +=======================+=====================================+ - | Datatype | enums.MarkerEventToggleInitialState | - +-----------------------+-------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------+ - | Repeated Capabilities | markers | - +-----------------------+-------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Marker:Toggle:Initial State** - - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_TOGGLE_INITIAL_STATE** - -memory_size ------------ - - .. py:attribute:: memory_size - - The total amount of memory on the signal generator in bytes. - - **Units:** bytes - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Memory Options `_ - - `Phase Continuity `_ - - - - .. note:: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Memory Size** - - C Attribute: **NIRFSG_ATTR_MEMORY_SIZE** - -module_power_consumption ------------------------- - - .. py:attribute:: module_power_consumption - - Returns the total power consumption of the device. - - **Units:** watts - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Module Power Consumption (W)** - - C Attribute: **NIRFSG_ATTR_MODULE_POWER_CONSUMPTION** - -module_revision ---------------- - - .. py:attribute:: module_revision - - Returns the module revision letter. If the NI-RFSG session is controlling multiple modules, this property returns the revision letter of the primary RF module. The NI-RFSG session is opened using the primary RF device name. - - **Supported Devices:** PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Identifying Module Revision `_ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Module Revision** - - C Attribute: **NIRFSG_ATTR_MODULE_REVISION** - -output_enabled --------------- - - .. py:attribute:: output_enabled - - Specifies whether signal output is enabled. Setting the :py:attr:`nirfsg.Session.output_enabled` property to False while in the Generation state stops signal output, although generation continues internally. For the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXI-5670/5671, and PXIe-5672/5673/5673E, setting the :py:attr:`nirfsg.Session.output_enabled` property while in the Committed state does not transition the device to the Configuration state, but output changes immediately. - - **Default Value:** True - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Output Enabled `_ - - `NI-RFSG Instrument Driver Programming Flow `_ - - **Defined Values**: - - +-------+-------------------------+ - | Value | Description | - +=======+=========================+ - | True | Enables signal output. | - +-------+-------------------------+ - | False | Disables signal output. | - +-------+-------------------------+ - - .. note:: - For the PXIe-5653, this property controls only the LO1 terminal. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - - When the :py:attr:`nirfsg.Session.ACTIVE_CONFIGURATION_LIST` property is set to a valid list name, setting the :py:attr:`nirfsg.Session.output_enabled` property transitions the device to the Configuration state. - - .. note:: One or more of the referenced properties are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Output Enabled** - - C Attribute: **NIRFSG_ATTR_OUTPUT_ENABLED** - -output_port ------------ - - .. py:attribute:: output_port - - Specifies the connector(s) to use to generate the signal. To set this property, the NI-RFSG device must be in the Configuration state. - - You must write complex I and Q data for all options. The Q data has no effect if you set this property to I Only and set the :py:attr:`nirfsg.Session.iq_out_port_carrier_frequency` property to 0. If you set the :py:attr:`nirfsg.Session.iq_out_port_carrier_frequency` property to a value other than 0, the onboard signal processing (OSP) frequency shifts I and Q as a complex value and outputs the real portion of the result on the I connector(s) of the device. - - If you set the :py:attr:`nirfsg.Session.output_port` property to :py:data:`~nirfsg.OutputPort.I_ONLY` or :py:data:`~nirfsg.OutputPort.IQ_OUT`, the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property applies. - - **Default Value:** - - PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.OutputPort.RF_OUT` - - PXIe-5820: :py:data:`~nirfsg.OutputPort.IQ_OUT` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +=======================================+================+==========================================================================================+ - | :py:data:`~nirfsg.OutputPort.CAL_OUT` | 14002 (0x36b2) | Enables the CAL OUT port. | - +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.OutputPort.I_ONLY` | 14003 (0x36b3) | Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. | - +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.OutputPort.IQ_OUT` | 14001 (0x36b1) | Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. | - +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.OutputPort.RF_OUT` | 14000 (0x36b0) | Enables the RF OUT port. This value is not valid for the PXIe-5820. | - +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------------+ - | Characteristic | Value | - +=======================+==================+ - | Datatype | enums.OutputPort | - +-----------------------+------------------+ - | Permissions | read-write | - +-----------------------+------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Output Port** - - C Attribute: **NIRFSG_ATTR_OUTPUT_PORT** - -overflow_error_reporting ------------------------- - - .. py:attribute:: overflow_error_reporting - - Configures error reporting for onboard signal processing (OSP) overflows. Overflows lead to clipping of the waveform. - - **Default Value:** :py:data:`~nirfsg.OverflowErrorReporting.WARNING` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------------+--------------+----------------------------------------------------------------------------+ - | Name | Value | Description | - +====================================================+==============+============================================================================+ - | :py:data:`~nirfsg.OverflowErrorReporting.DISABLED` | 1302 (0x516) | NI-RFSG does not return an error or a warning when an OSP overflow occurs. | - +----------------------------------------------------+--------------+----------------------------------------------------------------------------+ - | :py:data:`~nirfsg.OverflowErrorReporting.WARNING` | 1301 (0x515) | NI-RFSG returns a warning when an OSP overflow occurs. | - +----------------------------------------------------+--------------+----------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.OverflowErrorReporting | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Advanced:Overflow Error Reporting** - - C Attribute: **NIRFSG_ATTR_OVERFLOW_ERROR_REPORTING** - -peak_envelope_power -------------------- - - .. py:attribute:: peak_envelope_power - - Returns the maximum instantaneous power of the RF output signal. - - **Units**: dBm - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: - This property is valid only when the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.AVERAGE`. - - - The :py:attr:`nirfsg.Session.arb_digital_gain` property is not included in the calculation of the :py:attr:`nirfsg.Session.peak_envelope_power` property. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Peak Envelope Power (dBm)** - - C Attribute: **NIRFSG_ATTR_PEAK_ENVELOPE_POWER** - -peak_power_adjustment ---------------------- - - .. py:attribute:: peak_power_adjustment - - Specifies the adjustment for the :py:attr:`nirfsg.Session.power_level` property. This property is valid only when you set the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. The value of the :py:attr:`nirfsg.Session.peak_power_adjustment` property adds to the :py:attr:`nirfsg.Session.power_level` property. The :py:attr:`nirfsg.Session.peak_power_adjustment` property typically specifies the peak-to-average power ratio (PAPR) of a waveform. If the PAPR is specified, the specified power level becomes the average power level of the waveform, even if the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.PEAK`. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a peak power adjustment with a waveform. - - - - .. note:: - For the PXIe-5673/5673E only, use this property to associate a peak power adjustment with a waveform. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Peak Power Adjustment (dB)** - - C Attribute: **NIRFSG_ATTR_PEAK_POWER_ADJUSTMENT** - -phase_continuity_enabled ------------------------- - - .. py:attribute:: phase_continuity_enabled - - Specifies whether the driver maintains phase continuity in the arbitrary waveforms. When this property is set to :py:data:`~nirfsg.PhaseContinuityEnabled.ENABLE`, NI-RFSG may increase the waveform size. To set the :py:attr:`nirfsg.Session.phase_continuity_enabled` property, the NI-RFSG device must be in the Configuration state. :py:attr:`nirfsg.Session.phase_continuity_enabled` applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`. - - PXI-5671: When using the PXI-5671 with I/Q rates less than or equal to 8.33MS/s, an input phase-continuous signal is always phase-continuous upon output, and this property has no effect. - - PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Phase continuity is *always* enabled on this device. - - **Default Value:** :py:data:`~nirfsg.PhaseContinuityEnabled.AUTO` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Phase Continuity `_ - - `Arb Waveform Mode Tuning Speed Factors `_ - - **Defined Values**: - - +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:attr:`nirfsg.Session.phase_continuity_enabled` Property Setting | Value | With I/Q Rates > 8.33 MS/s. | - +=====================================================================+===========+==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsg.PhaseContinuityEnabled.AUTO` | -1 (-0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. When the Generation Mode property is set to Script, the Phase Continuity Enabled property indicates a warning condition. NI-RFSG cannot guarantee a phase-continuous output signal in Script mode. Phase continuity is automatically disabled in script mode, and the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. | - +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.PhaseContinuityEnabled.DISABLE` | 0 (0x0) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform is played back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | - +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.PhaseContinuityEnabled.ENABLE` | 1 (0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | - +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------------+ - | Characteristic | Value | - +=======================+==============================+ - | Datatype | enums.PhaseContinuityEnabled | - +-----------------------+------------------------------+ - | Permissions | read-write | - +-----------------------+------------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Phase Continuity Enabled** - - C Attribute: **NIRFSG_ATTR_PHASE_CONTINUITY_ENABLED** - -phase_offset ------------- - - .. py:attribute:: phase_offset - - Specifies the phase of the RF output signal. Use this property to align the phase of the RF output with the phase of the RF output of another device, as long as the two devices are phase-coherent. - - **Units**: degrees (°) - - **Default Value:** 0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Phase Synchronization and Phase Coherency `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Phase Offset (Degrees)** - - C Attribute: **NIRFSG_ATTR_PHASE_OFFSET** - -power_level ------------ - - .. py:attribute:: power_level - - Specifies either the average power level or peak power level of the generated RF signal, depending on the :py:attr:`nirfsg.Session.power_level_type` property setting. - - The PXI-5670/5671, PXIe-5672, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. - - Refer to the specifications document for your device for allowable power level settings. - - **Units**: dBm - - **Default Values:** - - PXIe-5644/5645/5646, PXIe-5673/5673E: -100 - - PXI/PXIe-5650/5651/5652: -90 - - PXIe-5654: -7 - - PXIe-5654 with PXIe-5696: -110 - - PXI-5670/5671, PXIe-5672: -145 - - PXIe-5830/5831/5832/5840/5841/5842/5860: -174 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.ConfigureRf` - - - - .. note:: - For the PXIe-5653, this property is read-only. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Power Level (dBm)** - - C Attribute: **NIRFSG_ATTR_POWER_LEVEL** - -power_level_type ----------------- - - .. py:attribute:: power_level_type - - Specifies how NI-RFSG interprets the value of the :py:attr:`nirfsg.Session.power_level` property. The :py:attr:`nirfsg.Session.power_level_type` property also affects how waveforms are scaled. - - PXI-5670/5671: While in Script generation mode, if this property is set to :py:data:`~nirfsg.PowerLevelType.AVERAGE`, NI-RFSG scales each waveform so that all waveforms have the same average power. The average power level of each waveform matches the value set with the :py:attr:`nirfsg.Session.power_level` property. You can disable this scaling operation by setting the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. - - PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: While in Script generation mode, this property must be set to :py:data:`~nirfsg.PowerLevelType.PEAK`. - - Converting from Average Power to Peak Power - - Typically, this property is set to :py:data:`~nirfsg.PowerLevelType.AVERAGE`. However, some instrument modes require this property to be set to :py:data:`~nirfsg.PowerLevelType.PEAK`. Use the following equations to calculate the equivalent peak power given the desired average power for your waveform: - - Where 1 is the highest possible magnitude in the waveform. - - **Default Value:** - - PXIe-5820: :py:data:`~nirfsg.PowerLevelType.PEAK` - - All other devices: :py:data:`~nirfsg.PowerLevelType.AVERAGE` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Spurious Performance `_ - - `Optimizing for Low Power Generation `_ - - **Defined Values**: - - +-------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +===========================================+===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsg.PowerLevelType.AVERAGE` | Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. | - +-------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.PowerLevelType.PEAK` | Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the :py:attr:`nirfsg.Session.arb_waveform_software_scaling_factor` property. You can use the :py:attr:`nirfsg.Session.peak_power_adjustment` property in conjunction with the :py:attr:`nirfsg.Session.power_level` property when the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.PEAK`. | - +-------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.PowerLevelType | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Power Level Type** - - C Attribute: **NIRFSG_ATTR_POWER_LEVEL_TYPE** - -pulse_modulation_active_level ------------------------------ - - .. py:attribute:: pulse_modulation_active_level - - Specifies the active level of the pulse modulation signal when pulse modulation is enabled. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` - - **Supported Devices:** PXIe-5842 - - **Defined Values**: - - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - | Name | Value | Description | - +==============================================================+===============+==================================================+ - | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` | 9000 (0x2328) | Trigger when the digital trigger signal is high. | - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.LOW` | 9001 (0x2329) | Trigger when the digital trigger signal is low. | - +--------------------------------------------------------------+---------------+--------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------------+ - | Characteristic | Value | - +=======================+============================================+ - | Datatype | enums.ScriptTriggerDigitalLevelActiveLevel | - +-----------------------+--------------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Pulse Modulation Active Level** - - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_ACTIVE_LEVEL** - -pulse_modulation_enabled ------------------------- - - .. py:attribute:: pulse_modulation_enabled - - Enables or disables pulse modulation. - - PXIe-5654/5654 with PXIe-5696: If this property is enabled and the signal at the PULSEIN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. - - PXIe-5673/5673E: If this property is enabled and the signal at the PLSMOD front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. - - PXIe-5842: If this property is enabled and the signal at the PULSE IN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. This behavior can be modified by setting pulse modulation active level. - - **Default Value:** False - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E - - **Related Topics** - - `Pulse Modulation `_ - - **Defined Values**: - - +-------+----------------------------+ - | Value | Description | - +=======+============================+ - | True | Enables pulse modulation. | - +-------+----------------------------+ - | False | Disables pulse modulation. | - +-------+----------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Pulse:Pulse Modulation Enabled** - - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_ENABLED** - -pulse_modulation_mode ---------------------- - - .. py:attribute:: pulse_modulation_mode - - PXIe-5654/5654 with PXIe-5696: Specifies the pulse modulation mode to use. - - PXIe-5842: This property allows you to choose a tradeoff between switching speed and On/Off Ratio when using pulse modulation. Refer to the product specifications document for the switching characteristics of each mode. This property is settable while the device is generating, but some output pulses may be dropped. - - **Default Value:** :py:data:`~nirfsg.PulseModulationMode.ANALOG` - - **Supported Devices:** PXIe-5842/5654/5654 with PXIe-5696 - - **Defined Values**: - - +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +======================================================================+=============================================================================================================================================+ - | :py:data:`~nirfsg.PulseModulationMode.OPTIMAL_MATCH` | Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842. | - +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_PULSE_MODULATION_ANALOG_HIGH_ISOLATION` | Allows for the best on/off power ratio of the pulsed signal. | - +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_PULSE_MODULATION_ANALOG` | Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. | - +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_PULSE_MODULATION_DIGITAL` | Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. | - +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.PulseModulationMode | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Pulse Modulation Mode** - - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_MODE** - -pulse_modulation_source ------------------------ - - .. py:attribute:: pulse_modulation_source - - Specifies the source of the pulse modulation signal. When Pulse In in used, the pulse modulation is applied with the lowest latency and jitter, but is not aligned to any particular waveform sample. When a marker is used, the RF pulse is aligned to a specific sample in the arbitrary waveform. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** PulseIn - - **Supported Devices:** PXIe-5842 - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+==============================================================================================+ - | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker0" | The trigger is received from the Marker 0. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker1" | The trigger is received from the Marker 1. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker2" | The trigger is received from the Marker 2. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker3" | The trigger is received from the Marker 3. | - +----------------+----------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.PulseModulationSource | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Modulation:Pulse:Pulse Modulation Source** - - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_SOURCE** - -ref_clock_rate --------------- - - .. py:attribute:: ref_clock_rate - - Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. This property is only valid when the :py:attr:`nirfsg.Session.ref_clock_source` property is set to ClkIn, RefIn, or RefIn2 - - To set this property, the NI-RFSG device must be in the Configuration state. If you are using the PXIe-5654/5654 with PXIe-5696, the NI-RFSG device must be in the Committed state to read this property. When you read this property, it returns the frequency the device is locked to during the Committed state. - - If you set this property to Auto, NI-RFSG uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if automatic detection is supported by the device. - - **Valid Values:** - - PXIe-5654/5654 with PXIe-5696: Values between 1MHz to 20MHz in 1MHz steps are supported in addition to the Auto and 10MHz values. - - PXIe-5841 with PXIe-5655, PXIe-5842: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz - - y, where - - y is 4, 8, 16, 24, 25, or 32. - - PXIe-5860: 10 MHz, 100 MHz - - **Units**: hertz (Hz) - - **Default Value:** Auto - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Timing Configurations `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_ref_clock` - - **Defined Values**: - - +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +=======+============+===================================================================================================================================+ - | Auto | -1.0 | Uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if the device supports it. | - +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ - | 10MHz | 10000000.0 | Uses a 10 MHz Reference Clock rate. | - +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: Automatic detection of the Reference Clock rate is supported on only the PXIe-5654/5654 with PXIe-5696. For all other supported devices, NI-RFSG uses the default Reference Clock rate of 10MHz. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Reference Clock Rate (Hz)** - - C Attribute: **NIRFSG_ATTR_REF_CLOCK_RATE** - -ref_clock_source ----------------- - - .. py:attribute:: ref_clock_source - - Specifies the Reference Clock source. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** OnboardClock - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Timing Configurations `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_ref_clock` - - **Possible Values**: - - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +=================+=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. ** PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector. **PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn2" | This value is not valid on any supported devices. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_ClkMaster" | This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653** —NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_CLK as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ReferenceClockSource | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clock:Reference Clock Source** - - C Attribute: **NIRFSG_ATTR_REF_CLOCK_SOURCE** - -ref_pll_bandwidth ------------------ - - .. py:attribute:: ref_pll_bandwidth - - Configures the loop bandwidth of the reference PLL. - - **Default Value:** :py:data:`~nirfsg.ReferencePllBandwidth.NARROW` - - **Supported Devices:** PXIe-5653 - - **Related Topics** - - `Phase-Locked Loop Bandwidth `_ - - **Defined Values**: - - +-------------------------------------------------+--------------------------------------------------------+ - | Value | Description | - +=================================================+========================================================+ - | :py:data:`~nirfsg.ReferencePllBandwidth.NARROW` | Uses the narrowest loop bandwidth setting for the PLL. | - +-------------------------------------------------+--------------------------------------------------------+ - | :py:data:`~nirfsg.ReferencePllBandwidth.MEDIUM` | Uses the medium loop bandwidth setting for the PLL. | - +-------------------------------------------------+--------------------------------------------------------+ - | :py:data:`~nirfsg.ReferencePllBandwidth.WIDE` | Uses the widest loop bandwidth setting for the PLL. | - +-------------------------------------------------+--------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.ReferencePllBandwidth | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Ref PLL Bandwidth** - - C Attribute: **NIRFSG_ATTR_REF_PLL_BANDWIDTH** - -relative_delay --------------- - - .. py:attribute:: relative_delay - - Specifies the delay, in seconds, to apply to the I/Q waveform. - - Relative delay allows for delaying the generated signal from one device relative to the generated signal of another device after those devices have been synchronized. You can achieve a negative relative delay by delaying both synchronized devices by the same value (1 μs) before generation begins and then changing the relative delay to a smaller amount than the initial value on only one of the devices. - - To set this property, the NI-RFSG device must be in the Configuration or Generation state. - - **Units:** Seconds - - **Valid Values:** - - PXIe-PXIe-5820/5830/5831/5832/5840/5841: 0 μs to 3.2 μs - - PXIe-5842: 0 μs to 6.5 μs - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `NI-TClk Overview `_ - - - - .. note:: - To obtain a negative relative delay when synchronizing the PXIe-5840/5841 with a module that does not support this property, use the NITCLK_ATTR_SAMPLE_CLOCK_DELAY property. - - - The resolution of this property is a method of the I/Q sample period at 15E(-6) of the sample period but not worse than one Sample Clock period. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Relative Delay** - - C Attribute: **NIRFSG_ATTR_RELATIVE_DELAY** - -rf_blanking_source ------------------- - - .. py:attribute:: rf_blanking_source - - Specifies the Marker Event at which RF blanking occurs. RF blanking quickly attenuates the RF OUT signal. Use Marker Events to toggle the state of RF blanking. The RF Output always starts in the unblanked state. - - To set this property, the NI-RFSG device must be in the Configuration state. - - You can specify Marker Events by using scripts to trigger blanking at a certain point in a waveform. For example, if you set this property to marker0 str}, and marker0 occurs on samples 1,000 and 2,000 of a script, then the RF Output will be blanked (attenuated) between samples 1,000 and 2,000. - - PXIe-5645: This property is ignored if you are using the I/Q ports. - - PXIe-5840/5841: RF blanking does not occur for frequencies below 120MHz. - - For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any :py:meth:`nirfsg.Session.Reset` or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call :py:meth:`nirfsg.Session.reset_with_options` or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Valid Values**: - - +-----------+---------------------------------+ - | Value | Description | - +===========+=================================+ - | "" | RF blanking is disabled. | - +-----------+---------------------------------+ - | "Marker0" | RF blanking is tied to marker0. | - +-----------+---------------------------------+ - | "Marker1" | RF blanking is tied to marker1. | - +-----------+---------------------------------+ - | "Marker2" | RF blanking is tied to marker2. | - +-----------+---------------------------------+ - | "Marker3" | RF blanking is tied to marker3. | - +-----------+---------------------------------+ - - .. note:: The shortest supported blanking interval is eight microseconds. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:RF Blanking Source** - - C Attribute: **NIRFSG_ATTR_RF_BLANKING_SOURCE** - -rf_in_lo_export_enabled ------------------------ - - .. py:attribute:: rf_in_lo_export_enabled - - Specifies whether to enable the RF IN LO OUT terminal on the PXIe-5840/5841. - - Set this property to :py:data:`~nirfsg.RFInLoExportEnabled.ENABLE` to export the LO signal from the RF IN LO OUT terminal. - - When this property is enabled, if the :py:attr:`nirfsg.Session.lo_source` property is set to LO_In and you do not set the :py:attr:`nirfsg.Session.lo_frequency` or :py:attr:`nirfsg.Session.upconverter_center_frequency` properties, NI-RFSG rounds the LO frequency to approximately an LO step size as if the source was OnboardClock. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. - - **Default Value:** :py:data:`~nirfsg.RFInLoExportEnabled.UNSPECIFIED` - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +====================================================+=========================================================================================================================================+ - | :py:data:`~nirfsg.RFInLoExportEnabled.DISABLE` | The RF In local oscillator signal is not present at the front panel LO OUT connector. | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.RFInLoExportEnabled.ENABLE` | The RF In local oscillator signal is present at the front panel LO OUT connector. | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.RFInLoExportEnabled.UNSPECIFIED` | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | - +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------+ - | Characteristic | Value | - +=======================+===========================+ - | Datatype | enums.RFInLoExportEnabled | - +-----------------------+---------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:RF In LO Export Enabled** - - C Attribute: **NIRFSG_ATTR_RF_IN_LO_EXPORT_ENABLED** - -script_trigger_terminal_name ----------------------------- - - .. py:attribute:: script_trigger_terminal_name - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/ScriptTrigger *X*, where *AWGName* is the name of your associated AWG module in MAX and *X* is Script Trigger 0 through 3. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ScriptTrigger *X*, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Script Trigger 0 through 3. - - PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX and *X* is Script Trigger 0 through 3. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX, *ChannelNumber* is the channel number (0 or 1), and *X* is Script Trigger 0 through 3. - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.get_terminal_name` - - - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_terminal_name` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.script_trigger_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | str | - +-----------------------+-----------------+ - | Permissions | read only | - +-----------------------+-----------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Terminal Name** - - C Attribute: **NIRFSG_ATTR_SCRIPT_TRIGGER_TERMINAL_NAME** - -script_trigger_type -------------------- - - .. py:attribute:: script_trigger_type - - Specifies the Script Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.ScriptTriggerType.NONE` - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Trigger Types `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_digital_edge_script_trigger` - - **Defined Values**: - - +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +====================================================+===========================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsg.ScriptTriggerType.NONE` | No trigger is configured. Signal generation starts immediately. | - +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_EDGE` | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. | - +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_LEVEL` | The data operation does not start until the digital level is detected. The source of the digital level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property, and the active level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_active_level` property. | - +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.ScriptTriggerType.SOFTWARE` | The data operation does not start until a software trigger occurs. You can create a software event by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. | - +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.script_trigger_type` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.ScriptTriggerType | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | script_triggers | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Script:Type** - - C Attribute: **NIRFSG_ATTR_SCRIPT_TRIGGER_TYPE** - -selected_path -------------- - - .. py:attribute:: selected_path - - Specifies which path to configure to generate a signal. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Signal Path:Advanced:Selected Path** - - C Attribute: **NIRFSG_ATTR_SELECTED_PATH** - -selected_ports --------------- - - .. py:attribute:: selected_ports - - Specifies the port to configure. - - **Valid Values**: - - PXIe-5644/5645/5646, PXIe-5820/5840/5841: "" (empty string) - - PXIe-5830: if0, if1 - - PXIe-5831/5832: if0, if1, rf*0-1*/port*x*, where *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and *x* is the port number on the mmRH-5582 front panel. - - **Default Value:** - - PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860: "" (empty string) - - PXIe-5830/5831/5832: if0 - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - :py:attr:`nirfsg.Session.available_ports` - - - - .. note:: When using RF list mode, ports cannot be shared with NI-RFSA. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Selected Ports** - - C Attribute: **NIRFSG_ATTR_SELECTED_PORTS** - -selected_script ---------------- - - .. py:attribute:: selected_script - - Specifies the script in onboard memory to generate upon calling the :py:meth:`nirfsg.Session._initiate` method when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.SCRIPT`. - - The :py:attr:`nirfsg.Session.selected_script` property is ignored when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.CW`. To set the :py:attr:`nirfsg.Session.selected_script` property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - `Scripting Instructions `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Selected Script** - - C Attribute: **NIRFSG_ATTR_SELECTED_SCRIPT** - -self_calibration_temperature ----------------------------- - - .. py:attribute:: self_calibration_temperature - - Indicates, in degrees Celsius, the temperature of the device at the time of the last self calibration. - - **Supported Devices:** PXIe-5644/5645/5646 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Self Calibration:Last Self Calibration Temperature** - - C Attribute: **NIRFSG_ATTR_SELF_CALIBRATION_TEMPERATURE** - -serial_number -------------- - - .. py:attribute:: serial_number - - Returns the serial number of the RF module. If the NI-RFSG session is controlling multiple modules, this property returns the serial number of the primary RF module. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Serial Number** - - C Attribute: **NIRFSG_ATTR_SERIAL_NUMBER** - -signal_bandwidth ----------------- - - .. py:attribute:: signal_bandwidth - - Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× :py:attr:`nirfsg.Session.iq_rate`). - - NI-RFSG defines *signal bandwidth* as twice the maximum baseband signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* :sub:`max` - *f* :sub:`min` . - - This property applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`, except for when using the PXIe-5830/5831/5832/5840/5841, which supports setting this property in all supported generation modes. To set the :py:attr:`nirfsg.Session.signal_bandwidth` property, the NI-RFSG device must be in the Configuration state. - - PXI-5670/5671, PXIe-5672: Based on your signal bandwidth, NI-RFSG determines whether to configure the upconverter center frequency in increments of 1MHz or 5MHz. Failure to configure this property may result in the signal being placed outside the upconverter passband. - - PXIe-5644/5645/5646, PXIe-5673/5673E: This property is used only for error-checking purposes. Otherwise, this property is ignored. - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Based on your signal bandwidth, NI-RFSG decides the equalized bandwidth. If this property is not set, NI-RFSG uses the maximum available signal bandwidth. For the PXIe-5840/5841, the maximum allowed signal bandwidth depends on the upconverter center frequency. Refer to the specifications document for your device for more information about signal bandwidth. The device specifications depend on the signal bandwidth. - - **Units**: hertz (Hz) - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Phase-Locked Loop Bandwidth `_ - - `Frequency Tuning Times `_ - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Signal Bandwidth (Hz)** - - C Attribute: **NIRFSG_ATTR_SIGNAL_BANDWIDTH** - -specific_driver_class_spec_major_version ----------------------------------------- - - .. py:attribute:: specific_driver_class_spec_major_version - - Returns the major version number of the class specification with which NI-RFSG is compliant. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Class Specification Major Version** - - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION** - -specific_driver_class_spec_minor_version ----------------------------------------- - - .. py:attribute:: specific_driver_class_spec_minor_version - - Returns the minor version number of the class specification with which NI-RFSG is compliant. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Class Specification Minor Version** - - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - Returns a string that contains a brief description of NI-RFSG. This property returns - - National Instruments RF Signal Generator Instrument Driver. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** - - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -specific_driver_prefix ----------------------- - - .. py:attribute:: specific_driver_prefix - - Returns a string that contains the prefix for NI-RFSG. The name of each user-callable method in NI-RFSG starts with this prefix. This property returns - - niRFSG. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Prefix** - - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_PREFIX** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - Returns a string that contains additional version information about NI-RFSG. For example, NI-RFSG can return - - Driver: NI-RFSG14.5.0, Compiler: MSVC9.00, Components: IVI Engine4.00, VISA-Spec4.00 as the value of this property. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** - - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - Returns a string that contains the name of the vendor that supplies NI-RFSG. This property returns - - National Instruments. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** - - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_VENDOR** - -started_event_terminal_name ---------------------------- - - .. py:attribute:: started_event_terminal_name - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartedEvent, where *AWGName* is the name of your associated AWG module in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartedEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841: /*ModuleName*/ao/0/StartedEvent, where *ModuleName* is the name of your device in MAX. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartedEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Started Event Terminal Name** - - C Attribute: **NIRFSG_ATTR_STARTED_EVENT_TERMINAL_NAME** - -start_trigger_terminal_name ---------------------------- - - .. py:attribute:: start_trigger_terminal_name - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXIe-5654/5654 with PXIe-5696: /*ModuleName*/StartTrigger, where *ModuleName* is the name of your device in MAX. - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartTrigger, where *ModuleName* is the name of your associated AWG module in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/StartTrigger, where *ModuleName* is the name of your device in MAX. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.get_terminal_name` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Terminal Name** - - C Attribute: **NIRFSG_ATTR_START_TRIGGER_TERMINAL_NAME** - -start_trigger_type ------------------- - - .. py:attribute:: start_trigger_type - - Specifies the Start Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** :py:data:`~nirfsg.StartTriggerType.NONE` - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Trigger Types `_ - - **High-Level Methods**: - - - :py:meth:`nirfsg.Session.configure_digital_edge_start_trigger` - - :py:meth:`nirfsg.Session.configure_software_start_trigger` - - :py:meth:`nirfsg.Session.disable_start_trigger` - - **Defined Values**: - - +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +==================================================+============================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsg.StartTriggerType.NONE` | No trigger is configured. | - +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.StartTriggerType.DIGITAL_EDGE` | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified in the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. | - +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.StartTriggerType.SOFTWARE` | The data operation does not start until a software event occurs. You may create a software trigger by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. | - +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.StartTriggerType | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggers:Start:Type** - - C Attribute: **NIRFSG_ATTR_START_TRIGGER_TYPE** - -streaming_enabled ------------------ - - .. py:attribute:: streaming_enabled - - Enables and disables continuous streaming of waveform data. - - **Default Value:** False - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - **Defined Values**: - - +-------+------------------------+ - | Value | Description | - +=======+========================+ - | True | Streaming is enabled. | - +-------+------------------------+ - | False | Streaming is disabled. | - +-------+------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Data Transfer:Streaming:Streaming Enabled** - - C Attribute: **NIRFSG_ATTR_STREAMING_ENABLED** - -streaming_space_available_in_waveform -------------------------------------- - - .. py:attribute:: streaming_space_available_in_waveform - - Indicates the space available, in samples, in the streaming waveform for writing new data. For optimal performance, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. This waveform size ensures that writes do not have to wrap around from the end to the beginning of the waveform buffer. - - To read this property, the NI-RFSG device must be in the Committed state. - - **Units**: samples - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Data Transfer:Streaming:Space Available In Streaming Waveform (Samples)** - - C Attribute: **NIRFSG_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM** - -streaming_waveform_name ------------------------ - - .. py:attribute:: streaming_waveform_name - - Specifies the name of the waveform used to continually stream data during generation. - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Streaming Waveform Data `_ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Data Transfer:Streaming:Streaming Waveform Name** - - C Attribute: **NIRFSG_ATTR_STREAMING_WAVEFORM_NAME** - -streaming_write_timeout ------------------------ - - .. py:attribute:: streaming_write_timeout - - Indicates the maximum amount of time allowed to complete a streaming write operation. - - **Default Value:** 10.0seconds - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Streaming Waveform Data `_ - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Data Transfer:Streaming:Streaming Write Timeout** - - C Attribute: **NIRFSG_ATTR_STREAMING_WRITE_TIMEOUT** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - Returns a list of supported devices. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | list of str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | None | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** - - C Attribute: **NIRFSG_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -sync_sample_clock_dist_line ---------------------------- - - .. py:attribute:: sync_sample_clock_dist_line - - Specifies which external trigger line distributes the Sample Clock sync signal. When synchronizing the Sample Clock between multiple devices, configure all devices to use the same Sample Clock sync distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5646 - - **Related Topics** - - `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Sample Clock Dist Line** - - C Attribute: **NIRFSG_ATTR_SYNC_SAMPLE_CLOCK_DIST_LINE** - -sync_sample_clock_master ------------------------- - - .. py:attribute:: sync_sample_clock_master - - Specifies whether the device is the master device when synchronizing the Sample Clock between multiple devices. The master device distributes the Sample Clock sync signal to all devices in the system through the Sample Clock sync distribution line. - - When synchronizing the Sample Clock, one device must always be designated as the master. The master device actively drives the Sample Clock sync distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5646 - - **Related Topics** - - `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. - - **Defined Values**: - - +-------+---------------------------------------------------------------------+ - | Value | Description | - +=======+=====================================================================+ - | True | The device is the master device for synchronizing the Sample Clock. | - +-------+---------------------------------------------------------------------+ - | False | The device is not the master for synchronizing the Sample Clock. | - +-------+---------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Sample Clock Master** - - C Attribute: **NIRFSG_ATTR_SYNC_SAMPLE_CLOCK_MASTER** - -sync_script_trigger_dist_line ------------------------------ - - .. py:attribute:: sync_script_trigger_dist_line - - Specifies which external trigger line distributes the synchronized Script Trigger signal. When synchronizing the Script Trigger, configure all devices to use the same Script Trigger distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Script Trigger `_ - - `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Script Trigger Dist Line** - - C Attribute: **NIRFSG_ATTR_SYNC_SCRIPT_TRIGGER_DIST_LINE** - -sync_script_trigger_master --------------------------- - - .. py:attribute:: sync_script_trigger_master - - Specifies whether the device is the master device when synchronizing the Script Trigger. - - The master device distributes the synchronized Script Trigger to all devices in the system through the Script Trigger distribution line. - - When synchronizing the Script trigger, one device must always be designated as the master. The master device actively drives the Script Trigger distribution line. For slave devices, set the :py:attr:`nirfsg.Session.script_trigger_type` property to digital edge, and set the :py:attr:`nirfsg.Session.digital_edge_script_trigger_source` property to sync_script. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Script Trigger `_ - - `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - - **Defined Values**: - - +-------+-----------------------------------------------------------------------+ - | Value | Description | - +=======+=======================================================================+ - | True | The device is the master device for synchronizing the Script Trigger. | - +-------+-----------------------------------------------------------------------+ - | False | The device is not the master for synchronizing the Script Trigger. | - +-------+-----------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Script Trigger Master** - - C Attribute: **NIRFSG_ATTR_SYNC_SCRIPT_TRIGGER_MASTER** - -sync_start_trigger_dist_line ----------------------------- - - .. py:attribute:: sync_start_trigger_dist_line - - Specifies which external trigger line distributes the synchronized Start Trigger signal. When synchronizing the Start Trigger, configure all devices to use the same Start Trigger distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Start Trigger `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Start Trigger Dist Line** - - C Attribute: **NIRFSG_ATTR_SYNC_START_TRIGGER_DIST_LINE** - -sync_start_trigger_master -------------------------- - - .. py:attribute:: sync_start_trigger_master - - Specifies whether the device is the master device when synchronizing the Start Trigger. The master device distributes the synchronized Start Trigger to all devices in the system through the Start Trigger distribution line. - - When synchronizing the Start Trigger, one device must always be designated as the master. The master device actively drives the Start Trigger distribution line. For slave devices, set the :py:attr:`nirfsg.Session.start_trigger_type` property to digital edge, and set the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property to sync_script. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Start Trigger `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - - **Defined Values**: - - +-------+----------------------------------------------------------------------+ - | Value | Description | - +=======+======================================================================+ - | True | The device is the master device for synchronizing the Start Trigger. | - +-------+----------------------------------------------------------------------+ - | False | The device is not the master for synchronizing the Start Trigger. | - +-------+----------------------------------------------------------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Start Trigger Master** - - C Attribute: **NIRFSG_ATTR_SYNC_START_TRIGGER_MASTER** - -temperature_read_interval -------------------------- - - .. py:attribute:: temperature_read_interval - - Specifies the minimum time between temperature sensor readings. - - **Units:** Seconds - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Characteristics:Temperature Read Interval** - - C Attribute: **NIRFSG_ATTR_TEMPERATURE_READ_INTERVAL** - -thermal_correction_headroom_range ---------------------------------- - - .. py:attribute:: thermal_correction_headroom_range - - Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the :py:attr:`nirfsg.Session.device_temperature` property. - - For example, if this property is set to 5.0, and the device is self-calibrated at 35°C, then you can expect to run the device from 30°C to 40°C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance or DSP overflows. - - **Units:** degrees Celsius (°C) - - **Default Value**: - - **PXIe-5830/5831/5832/5842/5860**: 5 - - **PXIe-5840/5841**: 10 - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Thermal Correction Headroom Range (Degrees C)** - - C Attribute: **NIRFSG_ATTR_THERMAL_CORRECTION_HEADROOM_RANGE** - -thermal_correction_temperature_resolution ------------------------------------------ - - .. py:attribute:: thermal_correction_temperature_resolution - - Specifies the temperature change, in degrees Celsius, that is required before NI-RFSG recalculates the thermal correction settings when entering the Generation state. - - **Units:** degrees Celsius (°C) - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Default Values:** - - PXIe-5830/5831/5832/5842/5860: 0.2 - - PXIe-5840/5841: 1.0 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:Thermal Correction Temperature Resolution (Degrees C)** - - C Attribute: **NIRFSG_ATTR_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION** - -timer_event_interval --------------------- - - .. py:attribute:: timer_event_interval - - Specifies the time before the timer emits an event after the task is started and specifies the time interval between Timer events after the first event. - - **Units**: seconds (s) - - **Default Value:** 0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - - - .. note:: For the PXIe-5820/5840/5841/5842/5860, this property must be set for the timer to start. If you do not set this property, the timer is disabled. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Events:Timer:Interval** - - C Attribute: **NIRFSG_ATTR_TIMER_EVENT_INTERVAL** - -upconverter_center_frequency ----------------------------- - - .. py:attribute:: upconverter_center_frequency - - Indicates the center frequency of the passband containing the upconverted RF signal. Writing a value to this property while using the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, or PXIe-5820/5840/5841 device enables in-band retuning. In-band retuning increases the speed of frequency sweeps by reducing the amount of upconverter retunes. - - **Units**: hertz (Hz) - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - - - .. note:: - This property is read/write on the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842, and is read-only on the PXI-5670/5671. - - - Resetting this property disables in-band retuning, however, for the PXIe-5820, in-band retuning is always enabled. - - - For the PXIe-5820, the only valid value for this property is 0. - - - Setting this property while the PXIe-5644/5645/5646, PXIe-5673/5673E, or PXIe-5820/5830/5831/5832/5840/5841/5842 device is generating has no effect until a dynamic property is set. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Upconverter:Center Frequency (Hz)** - - C Attribute: **NIRFSG_ATTR_UPCONVERTER_CENTER_FREQUENCY** - -upconverter_frequency_offset ----------------------------- - - .. py:attribute:: upconverter_frequency_offset - - This property offsets the :py:attr:`nirfsg.Session.upconverter_center_frequency` from the RF frequency. Use this property to keep the local oscillator (LO) leakage at a determined offset from the RF signal. - - **Valid Values:** - - PXIe-5644/5645: -42MHz to +42MHz - - PXIe-5646: -100MHz to +100MHz - - PXIe-5830/5831/5832/5840/5841: -500MHz to +500MHz - - PXI-5842 (500 MHz bandwidth option): -250MHz to +250MHz - - PXI-5842 (1 GHz bandwidth option): -500MHz to +500MHz - - PXI-5842 (2 GHz bandwidth option): -1GHz to +1GHz - - PXIe-5842 (4 GHz bandwidth option) using the Standard personality: -1GHz to +1GHz - - PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: -2GHz to +2GHz - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - - - .. note:: - You cannot set the :py:attr:`nirfsg.Session.upconverter_center_frequency` property or the :py:attr:`nirfsg.Session.arb_carrier_frequency` property at the same time as the :py:attr:`nirfsg.Session.upconverter_frequency_offset` property. - - - Resetting this property disables the upconverter frequency offset. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Upconverter:Frequency Offset (Hz)** - - C Attribute: **NIRFSG_ATTR_UPCONVERTER_FREQUENCY_OFFSET** - -upconverter_frequency_offset_mode ---------------------------------- - - .. py:attribute:: upconverter_frequency_offset_mode - - Specifies whether to allow NI-RFSG to select the upconverter frequency offset. You can either set an offset yourself or let NI-RFSG select one for you. - - Placing the upconverter center frequency outside the bandwidth of your waveform can help avoid issues such as LO leakage. - - To set an offset yourself, set this property to :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` or :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.USER_DEFINED`, and set either the :py:attr:`nirfsg.Session.upconverter_center_frequency` or the :py:attr:`nirfsg.Session.upconverter_frequency_offset` property. - - To allow NI-RFSG to automatically select the upconverter frequency offset, set this property to :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` or :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` and set the :py:attr:`nirfsg.Session.signal_bandwidth` to describe the bandwidth of your waveform. The signal bandwidth must be no greater than half the value of the :py:attr:`nirfsg.Session.device_instantaneous_bandwidth` property, minus a device-specific guard band. Do not set the :py:attr:`nirfsg.Session.upconverter_center_frequency` or :py:attr:`nirfsg.Session.upconverter_frequency_offset` properties. If all conditions are met, NI-RFSG places the upconverter center frequency outside the signal bandwidth. Set this property to :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` if you want to receive an error any time NI-RFSG is unable to apply automatic offset. - - When you set an offset yourself or do not use an offset, the reference frequency for gain is near the upconverter center frequency, and :py:attr:`nirfsg.Session.upconverter_frequency_offset_mode` returns :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.USER_DEFINED`. When NI-RFSG automatically sets an offset, the reference frequency for gain is near the :py:attr:`nirfsg.Session.frequency` and :py:attr:`nirfsg.Session.upconverter_frequency_offset_mode` returns :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE`. - - **Default Value:** :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` - - **Supported Devices**: PXIe-5830/5831/5832/5841/5842 - - **Related Topics** - - `PXIe-5830 Automatic Frequency Offset `_ - - `PXIe-5831/5832 Automatic Frequency Offset `_ - - `PXIe-5841 Automatic Frequency Offset `_ - - **Defined Values**: - - +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +================================================================+============================================================================================================================================================================================================================================================================================================================+ - | :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSG returns an error if the :py:attr:`nirfsg.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. | - +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. | - +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.USER_DEFINED` | NI-RFSG uses the offset that you specified with the :py:attr:`nirfsg.Session.upconverter_frequency_offset` or :py:attr:`nirfsg.Session.upconverter_center_frequency` properties. | - +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. note:: Below 120 MHz, the PXIe-5841 does not use an LO and :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------------------+ - | Characteristic | Value | - +=======================+======================================+ - | Datatype | enums.UpconverterFrequencyOffsetMode | - +-----------------------+--------------------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Upconverter:Frequency Offset Mode** - - C Attribute: **NIRFSG_ATTR_UPCONVERTER_FREQUENCY_OFFSET_MODE** - -upconverter_gain ----------------- - - .. py:attribute:: upconverter_gain - - Specifies the gain the upconverter applies to the signal. - - **Units**: dB - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: This property is read/write on the PXI-5610 and PXIe-5611 and is read-only on the PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Upconverter:Gain (dB)** - - C Attribute: **NIRFSG_ATTR_UPCONVERTER_GAIN** - -waveform_iq_rate ----------------- - - .. py:attribute:: waveform_iq_rate - - Specifies the I/Q rate of the waveform. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. - - `Digital Upconverter `_ - - - - - .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_iq_rate` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_iq_rate` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | waveforms | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Attributes:Waveform IQ Rate (S/s)** - - C Attribute: **NIRFSG_ATTR_WAVEFORM_IQ_RATE** - -waveform_papr -------------- - - .. py:attribute:: waveform_papr - - Specifies the peak-to-average power ratio (PAPR). - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_papr` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_papr` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | waveforms | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Attributes:Waveform PAPR (dB)** - - C Attribute: **NIRFSG_ATTR_WAVEFORM_PAPR** - -waveform_rf_blanking --------------------- - - .. py:attribute:: waveform_rf_blanking - - **Defined Values**: - - Name (Value): Description - - :py:data:`~nirfsg.RFBlanking.DISABLE` (0): RF blanking is disabled. - - :py:data:`~nirfsg.RFBlanking.ENABLE` (1): RF blanking is enabled. - - **Default Value:** :py:data:`~nirfsg.RFBlanking.DISABLE` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - Enables or disables RF blanking. - - +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ - | :py:attr:`nirfsg.Session.rf_blanking_source` | :py:attr:`nirfsg.Session.waveform_rf_blanking` | Behaviour | - +===============================================================================================================================================================+================================================+===========================================================================================================+ - | "" (empty string) | :py:data:`~nirfsg.RFBlanking.DISABLE` | No blanking performed. | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ - | "" (empty string) | :py:data:`~nirfsg.RFBlanking.ENABLE` | Blanking performed based on burst start and stop values and blanking source set to private marker. | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_MARKER0`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER1`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER2`, or :py:data:`~nirfsg.NIRFSG_VAL_MARKER3` | :py:data:`~nirfsg.RFBlanking.DISABLE` | Blanking performed based on the marker locations for the marker that the user set in the blanking source. | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.NIRFSG_VAL_MARKER0`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER1`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER2`, or :py:data:`~nirfsg.NIRFSG_VAL_MARKER3` | :py:data:`~nirfsg.RFBlanking.ENABLE` | Error is shown. | - +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ - - .. note:: For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any :py:meth:`nirfsg.Session.Reset` or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call :py:meth:`nirfsg.Session.reset_with_options` or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_rf_blanking` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_rf_blanking` - - The following table lists the characteristics of this property. - - +-----------------------+------------------+ - | Characteristic | Value | - +=======================+==================+ - | Datatype | enums.RFBlanking | - +-----------------------+------------------+ - | Permissions | read-write | - +-----------------------+------------------+ - | Repeated Capabilities | waveforms | - +-----------------------+------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Attributes:Waveform RF Blanking** - - C Attribute: **NIRFSG_ATTR_WAVEFORM_RF_BLANKING** - -waveform_runtime_scaling ------------------------- - - .. py:attribute:: waveform_runtime_scaling - - Specifies the waveform runtime scaling. The waveform runtime scaling is applied to the waveform data before any other signal processing. - - **Units**: dB - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860, PXIe-5841 with PXIe-5655 - - - - - .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_runtime_scaling` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_runtime_scaling` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | waveforms | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Attributes:Waveform Runtime Scaling** - - C Attribute: **NIRFSG_ATTR_WAVEFORM_RUNTIME_SCALING** - -waveform_signal_bandwidth -------------------------- - - .. py:attribute:: waveform_signal_bandwidth - - Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× :py:attr:`nirfsg.Session.iq_rate`). - - **Units**: hertz (Hz) - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - - .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_signal_bandwidth` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_signal_bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | waveforms | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Attributes:Waveform Signal Bandwidth (Hz)** - - C Attribute: **NIRFSG_ATTR_WAVEFORM_SIGNAL_BANDWIDTH** - -waveform_waveform_size ----------------------- - - .. py:attribute:: waveform_waveform_size - - Specifies the size of the waveform specified by an active channel. - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5841 with PXIe-5655/5842/5860 - - - - - .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_waveform_size` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_waveform_size` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | waveforms | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Waveform Attributes:Waveform Size** - - C Attribute: **NIRFSG_ATTR_WAVEFORM_WAVEFORM_SIZE** - -write_waveform_burst_detection ------------------------------- - - .. py:attribute:: write_waveform_burst_detection - - Enables the detection of burst start and burst stop locations in the waveform. You can read the detected burst start and burst stop locations using :py:meth:`nirfsg.Session.get_waveform_burst_start_locations` and :py:meth:`nirfsg.Session.get_waveform_burst_stop_locations` methods respectively. - - **Default Value:** :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------------------------------------------------+------------------------------+ - | Value | Description | - +========================================================+==============================+ - | :py:data:`~nirfsg.WriteWaveformBurstDetection.ENABLE` | Burst detection is enabled. | - +--------------------------------------------------------+------------------------------+ - | :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE` | Burst detection is disabled. | - +--------------------------------------------------------+------------------------------+ - - .. note:: - When you download a waveform using :py:meth:`nirfsg.Session.ReadAndDownloadWaveformFromFileTdms` method and if :py:attr:`nirfsg.Session.waveform_rf_blanking` property is enabled, you must set the :py:attr:`nirfsg.Session.write_waveform_burst_detection` property to :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE`. - - - For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any :py:meth:`nirfsg.Session.Reset` or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call :py:meth:`nirfsg.Session.reset_with_options` or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------------+ - | Characteristic | Value | - +=======================+===================================+ - | Datatype | enums.WriteWaveformBurstDetection | - +-----------------------+-----------------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Write Waveform Burst Detection:Enabled** - - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_BURST_DETECTION** - -write_waveform_burst_detection_mode ------------------------------------ - - .. py:attribute:: write_waveform_burst_detection_mode - - Specifies the algorithm that NI-RFSG uses to detect the burst start and burst stop locations in the waveform when burst detection is enabled using the :py:attr:`nirfsg.Session.write_waveform_burst_detection` property. When you set :py:attr:`nirfsg.Session.write_waveform_burst_detection_mode` to :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.AUTO`, NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. To fine-tune the burst detection process parameters yourself, you can set this property to :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.MANUAL` and specify the burst detection parameters using the write waveform burst detection minimum quiet time, :py:attr:`nirfsg.Session.write_waveform_burst_detection_power_threshold`, write waveform burst detection minimum burst time properties. - - **Default Value:** :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.AUTO` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------------------------+---------------------------------------------------------------------------------------------------+ - | Value | Description | - +===========================================================+===================================================================================================+ - | :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.AUTO` | NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. | - +-----------------------------------------------------------+---------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.MANUAL` | User sets the burst detection parameters. | - +-----------------------------------------------------------+---------------------------------------------------------------------------------------------------+ - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------------------------+ - | Characteristic | Value | - +=======================+=======================================+ - | Datatype | enums.WriteWaveformBurstDetectionMode | - +-----------------------+---------------------------------------+ - | Permissions | read-write | - +-----------------------+---------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Write Waveform Burst Detection:Mode** - - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_BURST_DETECTION_MODE** - -write_waveform_burst_detection_power_threshold ----------------------------------------------- - - .. py:attribute:: write_waveform_burst_detection_power_threshold - - Specifies the relative power level at which burst start or stop locations are detected. The threshold is relative to the peak power in the waveform. NI-RFSG detects burst start (or burst stop) locations when the signal exceeds (or falls below) the level specified by this property. This property is ignored when you disable the :py:attr:`nirfsg.Session.write_waveform_burst_detection` property or when you set the :py:attr:`nirfsg.Session.write_waveform_burst_detection_mode` property to :py:data:`~nirfsg.NIRFSG_VAL_AUTO`. - - **Units:** dB - - **Default Value:** 0 - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Write Waveform Burst Detection:Power Threshold** - - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_BURST_DETECTION_POWER_THRESHOLD** - -write_waveform_normalization ----------------------------- - - .. py:attribute:: write_waveform_normalization - - Specifies whether to perform the normalization on a waveform. - - **Default Value:** :py:data:`~nirfsg.WriteWaveformNormalization.DISABLE` - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +=======================================================+=========================================================================================================================+ - | :py:data:`~nirfsg.WriteWaveformNormalization.ENABLE` | Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 | - +-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ - | :py:data:`~nirfsg.WriteWaveformNormalization.DISABLE` | Disables normalization on the waveform. | - +-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ - - .. note:: You can not set :py:attr:`nirfsg.Session.write_waveform_normalization` and :py:attr:`nirfsg.Session.power_level_type` properties at the same time. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.WriteWaveformNormalization | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Arb:Write Waveform Normalization** - - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_NORMALIZATION** - -yig_main_coil_drive -------------------- - - .. py:attribute:: yig_main_coil_drive - - Adjusts the dynamics of the current driving the YIG main coil. - - **Default Value:** :py:data:`~nirfsg.YigMainCoilDrive.MANUAL` - - **Supported Devices:** PXIe-5653 - - **Defined Values**: - - +------------------------------------------+--------------------------------------------------------+ - | Value | Description | - +==========================================+========================================================+ - | :py:data:`~nirfsg.NIRFSG_VAL_SLOW` | Adjusts the YIG main coil for an underdamped response. | - +------------------------------------------+--------------------------------------------------------+ - | :py:data:`~nirfsg.YigMainCoilDrive.FAST` | Adjusts the YIG main coil for an overdamped response. | - +------------------------------------------+--------------------------------------------------------+ - - .. note:: Setting this property to :py:data:`~nirfsg.YigMainCoilDrive.FAST` on the PXIe-5653 allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.YigMainCoilDrive | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | None | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **RF:Advanced:YIG Main Coil Drive** - - C Attribute: **NIRFSG_ATTR_YIG_MAIN_COIL_DRIVE** - - -NI-TClk Support -=============== - - .. py:attribute:: tclk - - This is used to get and set NI-TClk attributes on the session. - - .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. - - -.. contents:: Session diff --git a/docs/nirfsg/conf.py b/docs/nirfsg/conf.py deleted file mode 100644 index 110386ef86..0000000000 --- a/docs/nirfsg/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-RFSG Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-RFSG Python API' -copyright = '2025-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.2.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NIRFSGPythonAPI.tex', 'NI-RFSG Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nirfsgpythonapi', 'NI-RFSG Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NIRFSGPythonAPI', 'NI-RFSG Python API Documentation', - author, 'NIRFSGPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nirfsg/enums.rst b/docs/nirfsg/enums.rst deleted file mode 100644 index 44b022fdea..0000000000 --- a/docs/nirfsg/enums.rst +++ /dev/null @@ -1,1990 +0,0 @@ -Enums -===== - -Enums used in NI-RFSG - -.. py:currentmodule:: nirfsg - - -AllowOutOfSpecificationUserSettings ------------------------------------ - -.. py:class:: AllowOutOfSpecificationUserSettings - - .. py:attribute:: AllowOutOfSpecificationUserSettings.DISABLE - - - - Disables out-of-specification user settings. - - - - - - .. py:attribute:: AllowOutOfSpecificationUserSettings.ENABLE - - - - Enables out-of-specification user settings. - - - - - -AmpPath -------- - -.. py:class:: AmpPath - - .. py:attribute:: AmpPath.HIGH_POWER - - - - Sets the amplification path to use the high power path. - - - - - - .. py:attribute:: AmpPath.LOW_HARMONIC - - - - Sets the amplification path to use the low harmonic path. - - - - - -AnalogModulationFmBand ----------------------- - -.. py:class:: AnalogModulationFmBand - - .. py:attribute:: AnalogModulationFmBand.NARROWBAND - - - - Specifies narrowband frequency modulation. - - - - - - .. py:attribute:: AnalogModulationFmBand.WIDEBAND - - - - Specifies wideband frequency modulation. - - - - - -AnalogModulationFmNarrowbandIntegrator --------------------------------------- - -.. py:class:: AnalogModulationFmNarrowbandIntegrator - - .. py:attribute:: AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ - - - - Specifies a range from 100Hz to 1kHz. - - - - - - .. py:attribute:: AnalogModulationFmNarrowbandIntegrator.RANGE_1_KILOHERTZ_TO_10_KILOHERTZ - - - - Specifies a range from 1kHz to 10kHz. - - - - - - .. py:attribute:: AnalogModulationFmNarrowbandIntegrator.RANGE_10_KILOHERTZ_TO_100_KILOHERTZ - - - - Specifies a range from 10kHz to 100kHz. - - - - - -AnalogModulationPmMode ----------------------- - -.. py:class:: AnalogModulationPmMode - - .. py:attribute:: AnalogModulationPmMode.HIGH_DEVIATION - - - - Specifies high deviation. High deviation comes at the expense of a higher phase noise. - - - - - - .. py:attribute:: AnalogModulationPmMode.LOW_PHASE_NOISE - - - - Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. - - - - - -AnalogModulationType --------------------- - -.. py:class:: AnalogModulationType - - .. py:attribute:: AnalogModulationType.NONE - - - - Disables analog modulation. - - - - - - .. py:attribute:: AnalogModulationType.FM - - - - Specifies that the analog modulation type is FM. - - - - - - .. py:attribute:: AnalogModulationType.PM - - - - Specifies that the analog modulation type is PM. - - - - - - .. py:attribute:: AnalogModulationType.AM - - - - Specifies that the analog modulation type is AM. - - - - - -ArbOnboardSampleClockMode -------------------------- - -.. py:class:: ArbOnboardSampleClockMode - - .. py:attribute:: ArbOnboardSampleClockMode.HIGH_RESOLUTION - - - - Sample rates are generated by a high-resolution clock. - - - - - - .. py:attribute:: ArbOnboardSampleClockMode.DIVIDE_DOWN - - - - Sample rates are generated by dividing the source frequency. - - - - - -ArbSampleClockSource --------------------- - -.. py:class:: ArbSampleClockSource - - .. py:attribute:: ArbSampleClockSource.ONBOARD_CLOCK - - - - Uses the AWG module onboard clock as the Sample Clock source. - - - - - - .. py:attribute:: ArbSampleClockSource.CLK_IN - - - - Uses the external clock as the Sample Clock source. - - - - - -AutomaticLevelControl ---------------------- - -.. py:class:: AutomaticLevelControl - - .. py:attribute:: AutomaticLevelControl.DISABLE - - - - Disables ALC. - - - - - - .. py:attribute:: AutomaticLevelControl.ENABLE - - - - Enables the ALC. - - - - - -AutomaticPowerSearch --------------------- - -.. py:class:: AutomaticPowerSearch - - .. py:attribute:: AutomaticPowerSearch.DISABLE - - - - Disables automatic power search. - - - - - - .. py:attribute:: AutomaticPowerSearch.ENABLE - - - - Enables automatic power search. - - - - - -AutomaticThermalCorrection --------------------------- - -.. py:class:: AutomaticThermalCorrection - - .. py:attribute:: AutomaticThermalCorrection.DISABLE - - - - Automatic thermal correction is disabled. - - - - - - .. py:attribute:: AutomaticThermalCorrection.ENABLE - - - - Automatic thermal correction is enabled. - - - - - -DeembeddingType ---------------- - -.. py:class:: DeembeddingType - - .. py:attribute:: DeembeddingType.NONE - - - - De-embedding is not applied to the measurement. - - - - - - .. py:attribute:: DeembeddingType.SCALAR - - - - De-embeds the measurement using only the gain term. - - - - - - .. py:attribute:: DeembeddingType.VECTOR - - - - De-embeds the measurement using the gain term and the reflection term. - - - - - - .. py:attribute:: DeembeddingType.AMPLITUDE_FLATNESS - - - - De-embeds the measurement using wideband amplitude flatness correction. - - - - - - .. py:attribute:: DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS - - - - De-embeds the measurement using wideband amplitude and phase flatness correction. - - - - - -DigitalEqualizationEnabled --------------------------- - -.. py:class:: DigitalEqualizationEnabled - - .. py:attribute:: DigitalEqualizationEnabled.DISABLE - - - - Filter is not applied - - - - - - .. py:attribute:: DigitalEqualizationEnabled.ENABLE - - - - Filter is applied. - - - - - -DirectDownload --------------- - -.. py:class:: DirectDownload - - .. py:attribute:: DirectDownload.DISABLE - - - - The RF In local oscillator signal is not present at the front panel LO OUT connector. - - - - - - .. py:attribute:: DirectDownload.ENABLE - - - - The RF In local oscillator signal is present at the front panel LO OUT connector. - - - - - - .. py:attribute:: DirectDownload.UNSPECIFIED - - - - The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. - - - - - -Format ------- - -.. py:class:: Format - - .. py:attribute:: Format.MAGNITUDE_AND_PHASE - - - - Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. - - - - - - .. py:attribute:: Format.MAGNITUDE_DB_AND_PHASE - - - - Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. - - - - - - .. py:attribute:: Format.REAL_AND_IMAGINARY - - - - Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. - - - - - -FrequencySettlingUnits ----------------------- - -.. py:class:: FrequencySettlingUnits - - .. py:attribute:: FrequencySettlingUnits.TIME_AFTER_LOCK - - - - Specifies the time to wait after the frequency PLL locks. - - - - - - .. py:attribute:: FrequencySettlingUnits.TIME_AFTER_IO - - - - Specifies the time to wait after all writes occur to change the frequency - - - - - - .. py:attribute:: FrequencySettlingUnits.PPM - - - - Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). - - - - - -GenerationMode --------------- - -.. py:class:: GenerationMode - - .. py:attribute:: GenerationMode.CW - - - - Configures the RF signal generator to generate a CW signal. - - - - - - .. py:attribute:: GenerationMode.ARB_WAVEFORM - - - - Configures the RF signal generator to generate the arbitrary waveform specified by the :py:attr:`nirfsg.Session.arb_selected_waveform` property. - - - - - - .. py:attribute:: GenerationMode.SCRIPT - - - - Configures the RF signal generator to generate arbitrary waveforms as directed by the :py:attr:`nirfsg.Session.selected_script` property. - - - - - -IQOutPortTerminalConfiguration ------------------------------- - -.. py:class:: IQOutPortTerminalConfiguration - - .. py:attribute:: IQOutPortTerminalConfiguration.DIFFERENTIAL - - - - Sets the terminal configuration to differential. - - - - - - .. py:attribute:: IQOutPortTerminalConfiguration.SINGLE_ENDED - - - - Sets the terminal configuration to single-ended. - - - - - -LoOutExportConfigureFromRfsaEnable ----------------------------------- - -.. py:class:: LoOutExportConfigureFromRfsaEnable - - .. py:attribute:: LoOutExportConfigureFromRfsaEnable.DISABLE - - - - Do not allow NI-RFSA to control the NI-RFSG local oscillator export. - - - - - - .. py:attribute:: LoOutExportConfigureFromRfsaEnable.ENABLE - - - - Allow NI-RFSA to control the NI-RFSG local oscillator export. - - - - - -LoPllFractionalModeEnabled --------------------------- - -.. py:class:: LoPllFractionalModeEnabled - - .. py:attribute:: LoPllFractionalModeEnabled.DISABLE - - - - Disables fractional mode for the LO PLL. - - - - - - .. py:attribute:: LoPllFractionalModeEnabled.ENABLE - - - - Enables fractional mode for the LO PLL. - - - - - -LoSource --------- - -.. py:class:: LoSource - - .. py:attribute:: LoSource.ONBOARD - - - - Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. - - - - - - .. py:attribute:: LoSource.LO_IN - - - - Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the UPCONVERTER_CENTER_FREQUENCY property to specify the LO frequency. - - - - - - .. py:attribute:: LoSource.SECONDARY - - - - Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. - - - - - - .. py:attribute:: LoSource.SG_SA_SHARED - - - - Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. - - - - - - .. py:attribute:: LoSource.AUTOMATIC_SG_SA_SHARED - - - - NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. - - - - - -LoadConfigurationResetOptions ------------------------------ - -.. py:class:: LoadConfigurationResetOptions - - .. py:attribute:: LoadConfigurationResetOptions.WAVEFORMS - - - - NI-RFSG skips resetting the waveform configurations. - - - - - - .. py:attribute:: LoadConfigurationResetOptions.DEEMBEDDING_TABLES - - - - NI-RFSG skips resetting the de-embedding tables. - - - - - - .. py:attribute:: LoadConfigurationResetOptions.SCRIPTS - - - - NI-RFSG skips resetting the scripts. - - - - - - .. py:attribute:: LoadConfigurationResetOptions.NONE - - - - NI-RFSG resets all configurations. - - - - - -LoadOptions ------------ - -.. py:class:: LoadOptions - - .. py:attribute:: LoadOptions.NONE - - - - NI-RFSG loads all the configurations to the session. - - - - - - .. py:attribute:: LoadOptions.WAVEFORMS - - - - NI-RFSG skips loading the waveform configurations to the session. - - - - - - .. py:attribute:: LoadOptions.SCRIPTS - - - - NI-RFSG skips loading the scripts to the session. - - - - - -LoopBandwidth -------------- - -.. py:class:: LoopBandwidth - - .. py:attribute:: LoopBandwidth.NARROW - - - - Uses the narrowest loop bandwidth setting for the PLL. - - - - - - .. py:attribute:: LoopBandwidth.MEDIUM - - - - Uses the medium loop bandwidth setting for the PLL. - - - - - - .. py:attribute:: LoopBandwidth.WIDE - - - - Uses the widest loop bandwidth setting for the PLL. - - - - - -MarkerEventOutputBehavior -------------------------- - -.. py:class:: MarkerEventOutputBehavior - - .. py:attribute:: MarkerEventOutputBehavior.PULSE - - - - Specifies the Marker Event output behavior as pulse. - - - - - - .. py:attribute:: MarkerEventOutputBehavior.TOGGLE - - - - Specifies the Marker Event output behavior as toggle. - - - - - -MarkerEventPulseWidthUnits --------------------------- - -.. py:class:: MarkerEventPulseWidthUnits - - .. py:attribute:: MarkerEventPulseWidthUnits.SECONDS - - - - Specifies the Marker Event pulse width units as seconds. - - - - - - .. py:attribute:: MarkerEventPulseWidthUnits.SAMPLE_CLOCK_PERIODS - - - - Specifies the Marker Event pulse width units as Sample Clock periods. - - - - - -MarkerEventToggleInitialState ------------------------------ - -.. py:class:: MarkerEventToggleInitialState - - .. py:attribute:: MarkerEventToggleInitialState.LOW - - - - Specifies the initial state of the Marker Event toggle behavior as digital low. - - - - - - .. py:attribute:: MarkerEventToggleInitialState.HIGH - - - - Specifies the initial state of the Marker Event toggle behavior as digital high. - - - - - -Module ------- - -.. py:class:: Module - - .. py:attribute:: Module.AWG - - - - The AWG associated with the primary module. - - - - - - .. py:attribute:: Module.LO - - - - The LO associated with the primary module. - - - - - - .. py:attribute:: Module.PRIMARY_MODULE - - - - The stand-alone device or the main module in a multi-module device. - - - - - -OffsetUnits ------------ - -.. py:class:: OffsetUnits - - .. py:attribute:: OffsetUnits.PERCENT - - - - Specifies the unit in percentage. - - - - - - .. py:attribute:: OffsetUnits.VOLTS - - - - Specifies the unit in volts. - - - - - -OutputPort ----------- - -.. py:class:: OutputPort - - .. py:attribute:: OutputPort.RF_OUT - - - - Enables the RF OUT port. This value is not valid for the PXIe-5820. - - - - - - .. py:attribute:: OutputPort.IQ_OUT - - - - Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. - - - - - - .. py:attribute:: OutputPort.CAL_OUT - - - - Enables the CAL OUT port. - - - - - - .. py:attribute:: OutputPort.I_ONLY - - - - Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. - - - - - -OverflowErrorReporting ----------------------- - -.. py:class:: OverflowErrorReporting - - .. py:attribute:: OverflowErrorReporting.WARNING - - - - NI-RFSG returns a warning when an OSP overflow occurs. - - - - - - .. py:attribute:: OverflowErrorReporting.DISABLED - - - - NI-RFSG does not return an error or a warning when an OSP overflow occurs. - - - - - -PhaseContinuityEnabled ----------------------- - -.. py:class:: PhaseContinuityEnabled - - .. py:attribute:: PhaseContinuityEnabled.AUTO - - - - The arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. - - - - - - .. py:attribute:: PhaseContinuityEnabled.DISABLE - - - - The arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. - - - - - - .. py:attribute:: PhaseContinuityEnabled.ENABLE - - - - The arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. - - - - - -PowerLevelType --------------- - -.. py:class:: PowerLevelType - - .. py:attribute:: PowerLevelType.AVERAGE - - - - Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. - - - - - - .. py:attribute:: PowerLevelType.PEAK - - - - Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the :py:attr:`nirfsg.Session.arb_waveform_software_scaling_factor` property. You can use the :py:attr:`nirfsg.Session.peak_power_adjustment` property in conjunction with the :py:attr:`nirfsg.Session.power_level` property when the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.PEAK`. - - - - - -PulseModulationMode -------------------- - -.. py:class:: PulseModulationMode - - .. py:attribute:: PulseModulationMode.OPTIMAL_MATCH - - - - Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842 - - - - - - .. py:attribute:: PulseModulationMode.HIGH_ISOLATION - - - - Allows for the best on/off power ratio of the pulsed signal. - - - - - - .. py:attribute:: PulseModulationMode.ANALOG - - - - Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. - - - - - - .. py:attribute:: PulseModulationMode.DIGITAL - - - - Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. - - - - - -PulseModulationOutputTerminal ------------------------------ - -.. py:class:: PulseModulationOutputTerminal - - .. py:attribute:: PulseModulationOutputTerminal.DO_NOT_EXPORT - - - - Pulse modulation video signal is not exported. - - - - - - .. py:attribute:: PulseModulationOutputTerminal.PULSE_OUT - - - - Export the pulse modulation video signal on the pulse out terminal. - - - - - -PulseModulationSource ---------------------- - -.. py:class:: PulseModulationSource - - .. py:attribute:: PulseModulationSource.PULSE_IN - - - - The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. - - - - - - .. py:attribute:: PulseModulationSource.MARKER0 - - - - The trigger is received from the Marker 0. - - - - - - .. py:attribute:: PulseModulationSource.MARKER1 - - - - The trigger is received from the Marker 1. - - - - - - .. py:attribute:: PulseModulationSource.MARKER2 - - - - The trigger is received from the Marker 2. - - - - - - .. py:attribute:: PulseModulationSource.MARKER3 - - - - The trigger is received from the Marker 3. - - - - - - .. py:attribute:: PulseModulationSource.DO_NOT_DRIVE_SIGNAL - - - - Do not drive pulse modulation. - - - - - -RFBlanking ----------- - -.. py:class:: RFBlanking - - .. py:attribute:: RFBlanking.DISABLE - - - - RF blanking is disabled. - - - - - - .. py:attribute:: RFBlanking.ENABLE - - - - RF blanking is enabled. - - - - - -RFInLoExportEnabled -------------------- - -.. py:class:: RFInLoExportEnabled - - .. py:attribute:: RFInLoExportEnabled.UNSPECIFIED - - - - The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may - - - - - - .. py:attribute:: RFInLoExportEnabled.DISABLE - - - - The RF In local oscillator signal is not present at the front panel LO OUT connector. - - - - - - .. py:attribute:: RFInLoExportEnabled.ENABLE - - - - The RF In local oscillator signal is present at the front panel LO OUT connector. - - - - - -ReferenceClockExportOutputTerminal ----------------------------------- - -.. py:class:: ReferenceClockExportOutputTerminal - - .. py:attribute:: ReferenceClockExportOutputTerminal.DO_NOT_EXPORT - - - - The Reference Clock signal is not exported. - - - - - - .. py:attribute:: ReferenceClockExportOutputTerminal.REF_OUT - - - - Exports the Reference Clock signal to the REF OUT connector of the device. - - - - - - .. py:attribute:: ReferenceClockExportOutputTerminal.REF_OUT2 - - - - Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. - - - - - - .. py:attribute:: ReferenceClockExportOutputTerminal.CLK_OUT - - - - Exports the Reference Clock signal to the CLK OUT connector of the device. - - - - - -ReferenceClockSource --------------------- - -.. py:class:: ReferenceClockSource - - .. py:attribute:: ReferenceClockSource.ONBOARD_CLOCK - - - - Uses the onboard Reference Clock as the clock source. - - - - - - .. py:attribute:: ReferenceClockSource.REF_IN - - - - Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. - - - - - - .. py:attribute:: ReferenceClockSource.PXI_CLK - - - - Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. - - - - - - .. py:attribute:: ReferenceClockSource.CLK_IN - - - - Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. - - - - - - .. py:attribute:: ReferenceClockSource.REF_IN_2 - - - - This value is not valid on any supported devices. - - - - - - .. py:attribute:: ReferenceClockSource.PXI_CLK_MASTER - - - - This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653 -** NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use :py:data:`~nirfsg.ReferenceClockSource.PXI_CLK` as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. - - - - - -ReferencePllBandwidth ---------------------- - -.. py:class:: ReferencePllBandwidth - - .. py:attribute:: ReferencePllBandwidth.NARROW - - - - Uses the narrowest loop bandwidth setting for the PLL. Setting this property to :py:data:`~nirfsg.NIRFSG_VAL_NARROW` allows the PXIe-5653 to lock to a reference with worse phase noise than the PXIe-5653 and utilize the better phase noise of the PXIe-5653. - - - - - - .. py:attribute:: ReferencePllBandwidth.MEDIUM - - - - Uses the medium loop bandwidth setting for the PLL. - - - - - - .. py:attribute:: ReferencePllBandwidth.WIDE - - - - Uses the widest loop bandwidth setting for the PLL. Setting this property to :py:data:`~nirfsg.NIRFSG_VAL_WIDE` on the PXIe-5653 allows the reference PLL to lock to a better reference with better phase noise than the PXIe-5653 and utilize the better phase noise of the reference. - - - - - -RelativeTo ----------- - -.. py:class:: RelativeTo - - .. py:attribute:: RelativeTo.CURRENT_POSITION - - - - The reference position is relative to the current position. - - - - - - .. py:attribute:: RelativeTo.START_OF_WAVEFORM - - - - The reference position is relative to the start of the waveform. - - - - - -ResetWithOptionsStepsToOmit ---------------------------- - -.. py:class:: ResetWithOptionsStepsToOmit - - .. py:attribute:: ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES - - - - Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. - - - - - - .. py:attribute:: ResetWithOptionsStepsToOmit.NONE - - - - No step is omitted during reset. - - - - - - .. py:attribute:: ResetWithOptionsStepsToOmit.ROUTES - - - - Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. - - - - - - .. py:attribute:: ResetWithOptionsStepsToOmit.SCRIPTS - - - - Omits clearing scripts. - - - - - - .. py:attribute:: ResetWithOptionsStepsToOmit.WAVEFORMS - - - - Omits clearing waveforms. - - - - - -ScriptTriggerDigitalEdgeEdge ----------------------------- - -.. py:class:: ScriptTriggerDigitalEdgeEdge - - .. py:attribute:: ScriptTriggerDigitalEdgeEdge.RISING - - - - Asserts the trigger when the signal transitions from low level to high level. - - - - - - .. py:attribute:: ScriptTriggerDigitalEdgeEdge.FALLING - - - - Asserts the trigger when the signal transitions from high level to low level. - - - - - -ScriptTriggerDigitalLevelActiveLevel ------------------------------------- - -.. py:class:: ScriptTriggerDigitalLevelActiveLevel - - .. py:attribute:: ScriptTriggerDigitalLevelActiveLevel.HIGH - - - - Trigger when the digital trigger signal is high. - - - - - - .. py:attribute:: ScriptTriggerDigitalLevelActiveLevel.LOW - - - - Trigger when the digital trigger signal is low. - - - - - -ScriptTriggerType ------------------ - -.. py:class:: ScriptTriggerType - - .. py:attribute:: ScriptTriggerType.NONE - - - - No trigger is configured. Signal generation starts immediately. - - - - - - .. py:attribute:: ScriptTriggerType.DIGITAL_EDGE - - - - The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. - - - - - - .. py:attribute:: ScriptTriggerType.DIGITAL_LEVEL - - - - The data operation does not start until the digital level is detected. The source of the digital level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property, and the active level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_active_level` property. - - - - - - .. py:attribute:: ScriptTriggerType.SOFTWARE - - - - The data operation does not start until a software trigger occurs. You can create a software event by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. - - - - - -SelfCalibrateRangeStepsToOmit ------------------------------ - -.. py:class:: SelfCalibrateRangeStepsToOmit - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION - - - - Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.LO_SELF_CAL - - - - Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.OMIT_NONE - - - - No calibration steps are omitted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.POWER_LEVEL_ACCURACY - - - - Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER - - - - Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. - - - - - - .. py:attribute:: SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT - - - - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - - - - - -Signal ------- - -.. py:class:: Signal - - .. py:attribute:: Signal.START_TRIGGER - - - - Exports a Start Trigger. - - - - - - .. py:attribute:: Signal.SCRIPT_TRIGGER - - - - Exports a Script Trigger. - - - - - - .. py:attribute:: Signal.MARKER_EVENT - - - - Exports a Marker Event. - - - - - - .. py:attribute:: Signal.REF_CLOCK - - - - Exports the Reference Clock. - - - - - - .. py:attribute:: Signal.STARTED_EVENT - - - - Exports a Started Event. - - - - - - .. py:attribute:: Signal.DONE_EVENT - - - - Exports a Done Event. - - - - - -SoftwareTriggerType -------------------- - -.. py:class:: SoftwareTriggerType - - .. py:attribute:: SoftwareTriggerType.SCRIPT - - - - Specifies the Script Trigger. - - - - - - .. py:attribute:: SoftwareTriggerType.START - - - - Specifies the Start Trigger. - - - - - -SparameterOrientation ---------------------- - -.. py:class:: SparameterOrientation - - .. py:attribute:: SparameterOrientation.PORT1_TOWARDS_DUT - - - - Port 1 of the S2P is oriented towards the DUT port. - - - - - - .. py:attribute:: SparameterOrientation.PORT2_TOWARDS_DUT - - - - Port 2 of the S2P is oriented towards the DUT port. - - - - - -StartTriggerDigitalEdgeEdge ---------------------------- - -.. py:class:: StartTriggerDigitalEdgeEdge - - .. py:attribute:: StartTriggerDigitalEdgeEdge.RISING - - - - Occurs when the signal transitions from low level to high level. - - - - - - .. py:attribute:: StartTriggerDigitalEdgeEdge.FALLING - - - - Occurs when the signal transitions from high level to low level. - - - - - -StartTriggerType ----------------- - -.. py:class:: StartTriggerType - - .. py:attribute:: StartTriggerType.NONE - - - - No trigger is configured. - - - - - - .. py:attribute:: StartTriggerType.DIGITAL_EDGE - - - - The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified in the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. - - - - - - .. py:attribute:: StartTriggerType.SOFTWARE - - - - The data operation does not start until a software event occurs. You may create a software trigger by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. - - - - - -TriggerIdentifier ------------------ - -.. py:class:: TriggerIdentifier - - .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER0 - - - - Specifies Script Trigger 0. - - - - - - .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER1 - - - - Specifies Script Trigger 1. - - - - - - .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER2 - - - - Specifies Script Trigger 2. - - - - - - .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER3 - - - - Specifies Script Trigger 3. - - - - - - .. py:attribute:: TriggerIdentifier.NONE - - - - None (no signal to export) - - - - - -UpconverterFrequencyOffsetMode ------------------------------- - -.. py:class:: UpconverterFrequencyOffsetMode - - .. py:attribute:: UpconverterFrequencyOffsetMode.AUTO - - - - NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. - - - - - - .. py:attribute:: UpconverterFrequencyOffsetMode.ENABLE - - - - NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSG returns an error if the :py:attr:`nirfsg.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. - - - - - - .. py:attribute:: UpconverterFrequencyOffsetMode.USER_DEFINED - - - - NI-RFSG uses the offset that you specified with the :py:attr:`nirfsg.Session.upconverter_frequency_offset` or :py:attr:`nirfsg.Session.upconverter_center_frequency` properties. - - - - - -WriteWaveformBurstDetection ---------------------------- - -.. py:class:: WriteWaveformBurstDetection - - .. py:attribute:: WriteWaveformBurstDetection.DISABLE - - - - Burst detection is disabled. - - - - - - .. py:attribute:: WriteWaveformBurstDetection.ENABLE - - - - Burst detection is enabled. - - - - - -WriteWaveformBurstDetectionMode -------------------------------- - -.. py:class:: WriteWaveformBurstDetectionMode - - .. py:attribute:: WriteWaveformBurstDetectionMode.AUTO - - - - NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. - - - - - - .. py:attribute:: WriteWaveformBurstDetectionMode.MANUAL - - - - User sets the burst detection parameters. - - - - - -WriteWaveformNormalization --------------------------- - -.. py:class:: WriteWaveformNormalization - - .. py:attribute:: WriteWaveformNormalization.DISABLE - - - - Disables normalization on the waveform. - - - - - - .. py:attribute:: WriteWaveformNormalization.ENABLE - - - - Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 - - - - - -YigMainCoilDrive ----------------- - -.. py:class:: YigMainCoilDrive - - .. py:attribute:: YigMainCoilDrive.MANUAL - - - - Adjusts the YIG main coil for an underdamped response. - - - - - - .. py:attribute:: YigMainCoilDrive.FAST - - - - Adjusts the YIG main coil for an overdamped response. - - - - - - - diff --git a/docs/nirfsg/errors.rst b/docs/nirfsg/errors.rst deleted file mode 100644 index 44bdd892f2..0000000000 --- a/docs/nirfsg/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nirfsg.errors - - .. exception:: Error - - Base exception type that all NI-RFSG exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nirfsg.errors - - .. exception:: DriverError - - An error originating from the NI-RFSG driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nirfsg.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nirfsg.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nirfsg.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-RFSG driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nirfsg.errors - - .. exception:: DriverTooNewError - - An error due to the NI-RFSG driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nirfsg.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: nirfsg.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: nirfsg.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: nirfsg.errors - - .. exception:: DriverWarning - - A warning originating from the NI-RFSG driver - - - diff --git a/docs/nirfsg/examples.rst b/docs/nirfsg/examples.rst deleted file mode 100644 index 99a9d9a65d..0000000000 --- a/docs/nirfsg/examples.rst +++ /dev/null @@ -1,32 +0,0 @@ -Examples -======== - -`You can download all nirfsg examples for latest version here `_ - -nirfsg_arb_waveform.py ----------------------- - -.. literalinclude:: ../../src/nirfsg/examples/nirfsg_arb_waveform.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nirfsg_arb_waveform.py) `_ - -nirfsg_cw.py ------------- - -.. literalinclude:: ../../src/nirfsg/examples/nirfsg_cw.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nirfsg_cw.py) `_ - -nirfsg_script.py ----------------- - -.. literalinclude:: ../../src/nirfsg/examples/nirfsg_script.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nirfsg_script.py) `_ - diff --git a/docs/nirfsg/grpc_session_options.rst b/docs/nirfsg/grpc_session_options.rst deleted file mode 100644 index 87595dc7f7..0000000000 --- a/docs/nirfsg/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-RFSG over gRPC - -.. py:currentmodule:: nirfsg - - - -Creating a gRPC channel ------------------------ - -Using NI-RFSG over gRPC requires the ``grpc`` extra:: - - $ python -m pip install nirfsg[grpc] - -Every NI-RFSG gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`nirfsg.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-RFSG runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import nirfsg - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = nirfsg.GrpcSessionOptions(channel, '') - with nirfsg.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`nirfsg.SessionInitializationBehavior` diff --git a/docs/nirfsg/index.rst b/docs/nirfsg/index.rst deleted file mode 100644 index 773b055477..0000000000 --- a/docs/nirfsg/index.rst +++ /dev/null @@ -1,30 +0,0 @@ - -NI-RFSG Python API Documentation -================================ - -.. include:: about_nirfsg.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nirfsg - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nirfsg/installation.inc b/docs/nirfsg/installation.inc deleted file mode 100644 index d0a7acbbf3..0000000000 --- a/docs/nirfsg/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nirfsg_installation-section: - -Installation ------------- - -As a prerequisite to using the **nirfsg** module, you must install the NI-RFSG runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-RFSG**) can be installed with `pip `_:: - - $ python -m pip install nirfsg - - diff --git a/docs/nirfsg/nirfsg.rst b/docs/nirfsg/nirfsg.rst deleted file mode 100644 index 17ca31595a..0000000000 --- a/docs/nirfsg/nirfsg.rst +++ /dev/null @@ -1,9 +0,0 @@ -nirfsg module -============= - -.. include:: installation.inc - -.. include:: ../_static/nirfsg_usage.inc - -.. include:: toc.inc - diff --git a/docs/nirfsg/rep_caps.rst b/docs/nirfsg/rep_caps.rst deleted file mode 100644 index 4b13100dfa..0000000000 --- a/docs/nirfsg/rep_caps.rst +++ /dev/null @@ -1,166 +0,0 @@ -.. py:module:: nirfsg - :noindex: - -.. py:currentmodule:: nirfsg.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niRFSG_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -markers -------- - - .. py:attribute:: nirfsg.Session.markers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.markers['0-2'].channel_enabled = True - - passes a string of :python:`'marker0, marker1, marker2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.markers['marker0-marker2'].channel_enabled = True - - passes a string of :python:`'marker0, marker1, marker2'` to the set attribute function. - - -script_triggers ---------------- - - .. py:attribute:: nirfsg.Session.script_triggers[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.script_triggers['0-2'].channel_enabled = True - - passes a string of :python:`'scripttrigger0, scripttrigger1, scripttrigger2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.script_triggers['scripttrigger0-scripttrigger2'].channel_enabled = True - - passes a string of :python:`'scripttrigger0, scripttrigger1, scripttrigger2'` to the set attribute function. - - -waveforms ---------- - - .. py:attribute:: nirfsg.Session.waveforms[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.waveforms['0-2'].channel_enabled = True - - passes a string of :python:`'waveform::0, waveform::1, waveform::2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.waveforms['waveform::0-waveform::2'].channel_enabled = True - - passes a string of :python:`'waveform::0, waveform::1, waveform::2'` to the set attribute function. - - -ports ------ - - .. py:attribute:: nirfsg.Session.ports[] - - .. code:: python - - session.ports['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -los ---- - - .. py:attribute:: nirfsg.Session.los[] - - If no prefix is added to the items in the parameter, the correct prefix will be added when - the driver function call is made. - - .. code:: python - - session.los['0-2'].channel_enabled = True - - passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. - - If an invalid repeated capability is passed to the driver, the driver will return an error. - - You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix - for the specific repeated capability. - - .. code:: python - - session.los['LO0-LO2'].channel_enabled = True - - passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. - - -device_temperatures -------------------- - - .. py:attribute:: nirfsg.Session.device_temperatures[] - - .. code:: python - - session.device_temperatures['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -channels --------- - - .. py:attribute:: nirfsg.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - - diff --git a/docs/nirfsg/status.inc b/docs/nirfsg/status.inc deleted file mode 100644 index 33b1e4116b..0000000000 --- a/docs/nirfsg/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-RFSG Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-RFSG (nirfsg) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nirfsgLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nirfsgPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nirfsgDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nirfsgOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nirfsgOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nirfsgLatestVersion| image:: http://img.shields.io/pypi/v/nirfsg.svg - :alt: Latest NI-RFSG Version - :target: http://pypi.python.org/pypi/nirfsg - - -.. |nirfsgPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsg.svg - :alt: NI-RFSG supported Python versions - :target: http://pypi.python.org/pypi/nirfsg - - -.. |nirfsgDocs| image:: https://readthedocs.org/projects/nirfsg/badge/?version=latest - :alt: NI-RFSG Python API Documentation Status - :target: https://nirfsg.readthedocs.io/en/latest - - -.. |nirfsgOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsg.svg - :alt: Open Issues + Pull Requests for NI-RFSG - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsg - - -.. |nirfsgOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsg.svg - :alt: Pull Requests for NI-RFSG - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsg - - diff --git a/docs/nirfsg/toc.inc b/docs/nirfsg/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/nirfsg/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/niscope/.readthedocs.yaml b/docs/niscope/.readthedocs.yaml deleted file mode 100644 index 25f77890b1..0000000000 --- a/docs/niscope/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/niscope/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/niscope/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/niscope/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/niscope/about_niscope.inc b/docs/niscope/about_niscope.inc deleted file mode 100644 index 2054d33175..0000000000 --- a/docs/niscope/about_niscope.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **niscope** module provides a Python API for NI-SCOPE. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**niscope** supports all the Operating Systems supported by NI-SCOPE. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **niscope**. - diff --git a/docs/niscope/class.rst b/docs/niscope/class.rst deleted file mode 100644 index bb512b4ea1..0000000000 --- a/docs/niscope/class.rst +++ /dev/null @@ -1,7483 +0,0 @@ -.. py:module:: niscope - -Session -======= - -.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) - - - - Performs the following initialization actions: - - - Creates a new IVI instrument driver and optionally sets the initial - state of the following session properties: Range Check, Cache, - Simulate, Record Value Coercions - - Opens a session to the specified device using the interface and - address you specify for the **resourceName** - - Resets the digitizer to a known state if **resetDevice** is set to - True - - Queries the instrument ID and verifies that it is valid for this - instrument driver if the **IDQuery** is set to True - - Returns an instrument handle that you use to identify the instrument - in all subsequent instrument driver method calls - - - - - - :param resource_name: - - - .. caution:: Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. - However, all IVI names, such as logical names, are case-sensitive. If - you use logical names, driver session names, or virtual names in your - program, you must make sure that the name you use matches the name in - the IVI Configuration Store file exactly, without any variations in the - case of the characters. - - | Specifies the resource name of the device to initialize - - For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is - the device number assigned by MAX, as shown in Example 1. - - For NI-DAQmx devices, the syntax is just the device name specified in - MAX, as shown in Example 2. Typical default names for NI-DAQmx devices - in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by - right-clicking on the name in MAX and entering a new name. - - An alternate syntax for NI-DAQmx devices consists of DAQ::NI-DAQmx - device name, as shown in Example 3. This naming convention allows for - the use of an NI-DAQmx device in an application that was originally - designed for a Traditional NI-DAQ device. For example, if the - application expects DAQ::1, you can rename the NI-DAQmx device to 1 in - MAX and pass in DAQ::1 for the resource name, as shown in Example 4. - - If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already - exists with that same name, the NI-DAQmx device is matched first. - - You can also pass in the name of an IVI logical name or an IVI virtual - name configured with the IVI Configuration utility, as shown in Example - 5. A logical name identifies a particular virtual instrument. A virtual - name identifies a specific device and specifies the initial settings for - the session. - - +---------+--------------------------------------+--------------------------------------------------+ - | Example | Device Type | Syntax | - +=========+======================================+==================================================+ - | 1 | Traditional NI-DAQ device | DAQ::1 (1 = device number) | - +---------+--------------------------------------+--------------------------------------------------+ - | 2 | NI-DAQmx device | myDAQmxDevice (myDAQmxDevice = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 3 | NI-DAQmx device | DAQ::myDAQmxDevice (myDAQmxDevice = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 4 | NI-DAQmx device | DAQ::2 (2 = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 5 | IVI logical name or IVI virtual name | myLogicalName (myLogicalName = name) | - +---------+--------------------------------------+--------------------------------------------------+ - - - :type resource_name: str - - :param id_query: - - - Specify whether to perform an ID query. - - When you set this parameter to True, NI-SCOPE verifies that the - device you initialize is a type that it supports. - - When you set this parameter to False, the method initializes the - device without performing an ID query. - - **Defined Values** - - | True—Perform ID query - | False—Skip ID query - - **Default Value**: True - - - - - :type id_query: bool - - :param reset_device: - - - Specify whether to reset the device during the initialization process. - - Default Value: True - - **Defined Values** - - True (1)—Reset device - - False (0)—Do not reset device - - - - .. note:: For the NI 5112, repeatedly resetting the device may cause excessive - wear on the electromechanical relays. Refer to `NI 5112 - Electromechanical Relays `__ - for recommended programming practices. - - - :type reset_device: bool - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: niscope.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: abort() - - Aborts an acquisition and returns the digitizer to the Idle state. Call - this method if the digitizer times out waiting for a trigger. - - - - - -acquisition_status ------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: acquisition_status() - - Returns status information about the acquisition to the **status** - output parameter. - - - - - - :rtype: :py:data:`niscope.AcquisitionStatus` - :return: - - - Returns whether the acquisition is complete, in progress, or unknown. - - **Defined Values** - - :py:data:`~niscope.AcquisitionStatus.COMPLETE` - - :py:data:`~niscope.AcquisitionStatus.IN_PROGRESS` - - :py:data:`~niscope.AcquisitionStatus.STATUS_UNKNOWN` - - - - - -add_waveform_processing ------------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: add_waveform_processing(meas_function) - - Adds one measurement to the list of processing steps that are completed - before the measurement. The processing is added on a per channel basis, - and the processing measurements are completed in the same order they are - registered. All measurement library parameters—the properties starting - with "meas_"—are cached at the time of registering the - processing, and this set of parameters is used during the processing - step. The processing measurements are streamed, so the result of the - first processing step is used as the input for the next step. The - processing is done before any other measurements. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].add_waveform_processing` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.add_waveform_processing` - - - :param meas_function: - - - The `array - measurement `__ - to add. - - - - - :type meas_function: :py:data:`niscope.ArrayMeasurement` - -auto_setup ----------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: auto_setup() - - Automatically configures the instrument. When you call this method, - the digitizer senses the input signal and automatically configures many - of the instrument settings. If a signal is detected on a channel, the - driver chooses the smallest available vertical range that is larger than - the signal range. For example, if the signal is a 1.2 V\ :sub:`pk-pk` - sine wave, and the device supports 1 V and 2 V vertical ranges, the - driver will choose the 2 V vertical range for that channel. - - If no signal is found on any analog input channel, a warning is - returned, and all channels are enabled. A channel is considered to have - a signal present if the signal is at least 10% of the smallest vertical - range available for that channel. - - The following settings are changed: - - +--------------------+-----------------------------------------------+ - | **General** | | - +--------------------+-----------------------------------------------+ - | Acquisition mode | Normal | - +--------------------+-----------------------------------------------+ - | Reference clock | Internal | - +--------------------+-----------------------------------------------+ - | **Vertical** | | - +--------------------+-----------------------------------------------+ - | Vertical coupling | AC (DC for NI 5621) | - +--------------------+-----------------------------------------------+ - | Vertical bandwidth | Full | - +--------------------+-----------------------------------------------+ - | Vertical range | Changed by auto setup | - +--------------------+-----------------------------------------------+ - | Vertical offset | 0 V | - +--------------------+-----------------------------------------------+ - | Probe attenuation | Unchanged by auto setup | - +--------------------+-----------------------------------------------+ - | Input impedance | Unchanged by auto setup | - +--------------------+-----------------------------------------------+ - | **Horizontal** | | - +--------------------+-----------------------------------------------+ - | Sample rate | Changed by auto setup | - +--------------------+-----------------------------------------------+ - | Min record length | Changed by auto setup | - +--------------------+-----------------------------------------------+ - | Enforce realtime | True | - +--------------------+-----------------------------------------------+ - | Number of Records | Changed to 1 | - +--------------------+-----------------------------------------------+ - | **Triggering** | | - +--------------------+-----------------------------------------------+ - | Trigger type | Edge if signal present, otherwise immediate | - +--------------------+-----------------------------------------------+ - | Trigger channel | Lowest numbered channel with a signal present | - +--------------------+-----------------------------------------------+ - | Trigger slope | Positive | - +--------------------+-----------------------------------------------+ - | Trigger coupling | DC | - +--------------------+-----------------------------------------------+ - | Reference position | 50% | - +--------------------+-----------------------------------------------+ - | Trigger level | 50% of signal on trigger channel | - +--------------------+-----------------------------------------------+ - | Trigger delay | 0 | - +--------------------+-----------------------------------------------+ - | Trigger holdoff | 0 | - +--------------------+-----------------------------------------------+ - | Trigger output | None | - +--------------------+-----------------------------------------------+ - - - -clear_waveform_measurement_stats --------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: clear_waveform_measurement_stats(clearable_measurement_function=niscope.ClearableMeasurement.ALL_MEASUREMENTS) - - Clears the waveform stats on the channel and measurement you specify. If - you want to clear all of the measurements, use - :py:data:`~niscope.ClearableMeasurement.ALL_MEASUREMENTS` in the **clearableMeasurementFunction** - parameter. - - Every time a measurement is called, the statistics information is - updated, including the min, max, mean, standard deviation, and number of - updates. This information is fetched with - :py:meth:`niscope.Session._fetch_measurement_stats`. The multi-acquisition array measurements - are also cleared with this method. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_waveform_measurement_stats` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.clear_waveform_measurement_stats` - - - :param clearable_measurement_function: - - - The `scalar - measurement `__ - or `array - measurement `__ - to clear the stats for. - - - - - :type clearable_measurement_function: :py:data:`niscope.ClearableMeasurement` - -clear_waveform_processing -------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: clear_waveform_processing() - - Clears the list of processing steps assigned to the given channel. The - processing is added using the :py:meth:`niscope.Session.add_waveform_processing` method, - where the processing steps are completed in the same order in which they - are registered. The processing measurements are streamed, so the result - of the first processing step is used as the input for the next step. The - processing is also done before any other measurements. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_waveform_processing` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.clear_waveform_processing` - - -close ------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: close() - - When you are finished using an instrument driver session, you must call - this method to perform the following actions: - - - Closes the instrument I/O session. - - Destroys the IVI session and all of its properties. - - Deallocates any memory resources used by the IVI session. - - - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: commit() - - Commits to hardware all the parameter settings associated with the task. - Use this method if you want a parameter change to be immediately - reflected in the hardware. This method is not supported for - Traditional NI-DAQ (Legacy) devices. - - - - - -configure_chan_characteristics ------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_chan_characteristics(input_impedance, max_input_frequency) - - Configures the properties that control the electrical characteristics of - the channel—the input impedance and the bandwidth. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_chan_characteristics` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.configure_chan_characteristics` - - - :param input_impedance: - - - The input impedance for the channel; NI-SCOPE sets - :py:attr:`niscope.Session.input_impedance` to this value. - - - - - :type input_impedance: float - :param max_input_frequency: - - - The bandwidth for the channel; NI-SCOPE sets - :py:attr:`niscope.Session.max_input_frequency` to this value. Pass 0 for this - value to use the hardware default bandwidth. Pass –1 for this value to - achieve full bandwidth. - - - - - :type max_input_frequency: float - -configure_equalization_filter_coefficients ------------------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_equalization_filter_coefficients(coefficients) - - Configures the custom coefficients for the equalization FIR filter on - the device. This filter is designed to compensate the input signal for - artifacts introduced to the signal outside of the digitizer. Because - this filter is a generic FIR filter, any coefficients are valid. - Coefficient values should be between +1 and –1. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_equalization_filter_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.configure_equalization_filter_coefficients` - - - :param coefficients: - - - The custom coefficients for the equalization FIR filter on the device. - These coefficients should be between +1 and –1. You can obtain the - number of coefficients from the - `:py:attr:`niscope.Session.equalization_num_coefficients` `__ - property. The - `:py:attr:`niscope.Session.equalization_filter_enabled` `__ - property must be set to TRUE to enable the filter. - - - - - :type coefficients: list of float - -configure_horizontal_timing ---------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_horizontal_timing(min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime) - - Configures the common properties of the horizontal subsystem for a - multirecord acquisition in terms of minimum sample rate. - - - - - - :param min_sample_rate: - - - The sampling rate for the acquisition. Refer to - :py:attr:`niscope.Session.min_sample_rate` for more information. - - - - - :type min_sample_rate: float - :param min_num_pts: - - - The minimum number of points you need in the record for each channel; - call :py:meth:`niscope.Session.ActualRecordLength` to obtain the actual record length - used. - - Valid Values: Greater than 1; limited by available memory - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - :type min_num_pts: int - :param ref_position: - - - The position of the Reference Event in the waveform record specified as - a percentage. - - - - - :type ref_position: float - :param num_records: - - - The number of records to acquire - - - - - :type num_records: int - :param enforce_realtime: - - - Indicates whether the digitizer enforces real-time measurements or - allows equivalent-time (RIS) measurements; not all digitizers support - RIS—refer to `Features Supported by - Device `__ for - more information. - - Default value: True - - **Defined Values** - - True—Allow real-time acquisitions only - - False—Allow real-time and equivalent-time acquisitions - - - - - :type enforce_realtime: bool - -configure_trigger_digital -------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_digital(trigger_source, slope=niscope.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) - - Configures the common properties of a digital trigger. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - - - .. note:: For multirecord acquisitions, all records after the first record are - started by using the Advance Trigger Source. The default is immediate. - - You can adjust the amount of pre-trigger and post-trigger samples using - the reference position parameter on the - :py:meth:`niscope.Session.configure_horizontal_timing` method. The default is half of the - record length. - - Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - Digital triggering is not supported in RIS mode. - - - - :param trigger_source: - - - Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` - for defined values. - - - - - :type trigger_source: str - :param slope: - - - Specifies whether you want a rising edge or a falling edge to trigger - the digitizer. Refer to :py:attr:`niscope.Session.trigger_slope` for more - information. - - - - - :type slope: :py:data:`niscope.TriggerSlope` - :param holdoff: - - - The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - :py:attr:`niscope.Session.trigger_holdoff` for more information. - - - - - :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds - :param delay: - - - How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more - information. - - - - - :type delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_trigger_edge ----------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_edge(trigger_source, level, trigger_coupling, slope=niscope.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) - - Configures common properties for analog edge triggering. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - - - .. note:: Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - - - :param trigger_source: - - - Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` - for defined values. - - - - - :type trigger_source: str - :param level: - - - The voltage threshold for the trigger. Refer to - :py:attr:`niscope.Session.trigger_level` for more information. - - - - - :type level: float - :param trigger_coupling: - - - Applies coupling and filtering options to the trigger signal. Refer to - :py:attr:`niscope.Session.trigger_coupling` for more information. - - - - - :type trigger_coupling: :py:data:`niscope.TriggerCoupling` - :param slope: - - - Specifies whether you want a rising edge or a falling edge to trigger - the digitizer. Refer to :py:attr:`niscope.Session.trigger_slope` for more - information. - - - - - :type slope: :py:data:`niscope.TriggerSlope` - :param holdoff: - - - The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - :py:attr:`niscope.Session.trigger_holdoff` for more information. - - - - - :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds - :param delay: - - - How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more - information. - - - - - :type delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_trigger_hysteresis ----------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_hysteresis(trigger_source, level, hysteresis, trigger_coupling, slope=niscope.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) - - Configures common properties for analog hysteresis triggering. This kind - of trigger specifies an additional value, specified in the - **hysteresis** parameter, that a signal must pass through before a - trigger can occur. This additional value acts as a kind of buffer zone - that keeps noise from triggering an acquisition. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the - :py:attr:`niscope.Session.acq_arm_source`. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - - - .. note:: Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - - - :param trigger_source: - - - Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` - for defined values. - - - - - :type trigger_source: str - :param level: - - - The voltage threshold for the trigger. Refer to - :py:attr:`niscope.Session.trigger_level` for more information. - - - - - :type level: float - :param hysteresis: - - - The size of the hysteresis window on either side of the **level** in - volts; the digitizer triggers when the trigger signal passes through the - hysteresis value you specify with this parameter, has the slope you - specify with **slope**, and passes through the **level**. Refer to - :py:attr:`niscope.Session.trigger_hysteresis` for defined values. - - - - - :type hysteresis: float - :param trigger_coupling: - - - Applies coupling and filtering options to the trigger signal. Refer to - :py:attr:`niscope.Session.trigger_coupling` for more information. - - - - - :type trigger_coupling: :py:data:`niscope.TriggerCoupling` - :param slope: - - - Specifies whether you want a rising edge or a falling edge to trigger - the digitizer. Refer to :py:attr:`niscope.Session.trigger_slope` for more - information. - - - - - :type slope: :py:data:`niscope.TriggerSlope` - :param holdoff: - - - The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - :py:attr:`niscope.Session.trigger_holdoff` for more information. - - - - - :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds - :param delay: - - - How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more - information. - - - - - :type delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_trigger_immediate ---------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_immediate() - - Configures common properties for immediate triggering. Immediate - triggering means the digitizer triggers itself. - - When you initiate an acquisition, the digitizer waits for a trigger. You - specify the type of trigger that the digitizer waits for with a - Configure Trigger method, such as :py:meth:`niscope.Session.configure_trigger_immediate`. - - - - - -configure_trigger_software --------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_software(holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) - - Configures common properties for software triggering. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - To trigger the acquisition, use :py:meth:`niscope.Session.send_software_trigger_edge`. - - - - .. note:: Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - - - :param holdoff: - - - The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - :py:attr:`niscope.Session.trigger_holdoff` for more information. - - - - - :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds - :param delay: - - - How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more - information. - - - - - :type delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_trigger_video ------------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_video(trigger_source, signal_format, event, polarity, trigger_coupling, enable_dc_restore=False, line_number=1, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) - - Configures the common properties for video triggering, including the - signal format, TV event, line number, polarity, and enable DC restore. A - video trigger occurs when the digitizer finds a valid video signal sync. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - - - .. note:: Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - - - :param trigger_source: - - - Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` - for defined values. - - - - - :type trigger_source: str - :param signal_format: - - - Specifies the type of video signal sync the digitizer should look for. - Refer to :py:attr:`niscope.Session.tv_trigger_signal_format` for more - information. - - - - - :type signal_format: :py:data:`niscope.VideoSignalFormat` - :param event: - - - Specifies the TV event you want to trigger on. You can trigger on a - specific or on the next coming line or field of the signal. - - - - - :type event: :py:data:`niscope.VideoTriggerEvent` - :param polarity: - - - Specifies the polarity of the video signal sync. - - - - - :type polarity: :py:data:`niscope.VideoPolarity` - :param trigger_coupling: - - - Applies coupling and filtering options to the trigger signal. Refer to - :py:attr:`niscope.Session.trigger_coupling` for more information. - - - - - :type trigger_coupling: :py:data:`niscope.TriggerCoupling` - :param enable_dc_restore: - - - Offsets each video line so the clamping level (the portion of the video - line between the end of the color burst and the beginning of the active - image) is moved to zero volt. Refer to - :py:attr:`niscope.Session.enable_dc_restore` for defined values. - - - - - :type enable_dc_restore: bool - :param line_number: - - - Selects the line number to trigger on. The line number range covers an - entire frame and is referenced as shown on `Vertical Blanking and - Synchronization - Signal `__. Refer to - :py:attr:`niscope.Session.tv_trigger_line_number` for more information. - - Default value: 1 - - - - - :type line_number: int - :param holdoff: - - - The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - :py:attr:`niscope.Session.trigger_holdoff` for more information. - - - - - :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds - :param delay: - - - How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more - information. - - - - - :type delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_trigger_window ------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_trigger_window(trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) - - Configures common properties for analog window triggering. A window - trigger occurs when a signal enters or leaves a window you specify with - the **high level** or **low level** parameters. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - To trigger the acquisition, use :py:meth:`niscope.Session.send_software_trigger_edge`. - - - - .. note:: Some features are not supported by all digitizers. - - - - :param trigger_source: - - - Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` - for defined values. - - - - - :type trigger_source: str - :param low_level: - - - Passes the voltage threshold you want the digitizer to use for low - triggering. - - - - - :type low_level: float - :param high_level: - - - Passes the voltage threshold you want the digitizer to use for high - triggering. - - - - - :type high_level: float - :param window_mode: - - - Specifies whether you want the trigger to occur when the signal enters - or leaves a window. - - - - - :type window_mode: :py:data:`niscope.TriggerWindowMode` - :param trigger_coupling: - - - Applies coupling and filtering options to the trigger signal. Refer to - :py:attr:`niscope.Session.trigger_coupling` for more information. - - - - - :type trigger_coupling: :py:data:`niscope.TriggerCoupling` - :param holdoff: - - - The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - :py:attr:`niscope.Session.trigger_holdoff` for more information. - - - - - :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds - :param delay: - - - How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more - information. - - - - - :type delay: hightime.timedelta, datetime.timedelta, or float in seconds - -configure_vertical ------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: configure_vertical(range, coupling, offset=0.0, probe_attenuation=1.0, enabled=True) - - Configures the most commonly configured properties of the digitizer - vertical subsystem, such as the range, offset, coupling, probe - attenuation, and the channel. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_vertical` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.configure_vertical` - - - :param range: - - - Specifies the vertical range Refer to :py:attr:`niscope.Session.vertical_range` for - more information. - - - - - :type range: float - :param coupling: - - - Specifies how to couple the input signal. Refer to - :py:attr:`niscope.Session.vertical_coupling` for more information. - - - - - :type coupling: :py:data:`niscope.VerticalCoupling` - :param offset: - - - Specifies the vertical offset. Refer to :py:attr:`niscope.Session.vertical_offset` - for more information. - - - - - :type offset: float - :param probe_attenuation: - - - Specifies the probe attenuation. Refer to - :py:attr:`niscope.Session.probe_attenuation` for valid values. - - - - - :type probe_attenuation: float - :param enabled: - - - Specifies whether the channel is enabled for acquisition. Refer to - :py:attr:`niscope.Session.channel_enabled` for more information. - - - - - :type enabled: bool - -disable -------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: disable() - - Aborts any current operation, opens data channel relays, and releases - RTSI and PFI lines. - - - - - -export_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: export_attribute_configuration_buffer() - - Exports the property configuration of the session to a configuration - buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑SCOPE returns an - error. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - - - - - :rtype: bytes - :return: - - - Specifies the byte array buffer to be populated with the exported - property configuration. - - - - - -export_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: export_attribute_configuration_file(file_path) - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑SCOPE returns an - error. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - - - - - :param file_path: - - - Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:** .niscopeconfig - - - - - :type file_path: str - -fetch ------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: fetch(num_samples=None, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) - - Returns the waveform from a previously initiated acquisition that the - digitizer acquires for the specified channel. This method returns - scaled voltage waveforms. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - - - .. note:: Some functionality, such as time stamping, is not supported in all digitizers. - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch` - - - :param num_samples: - - - The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. - - - - - :type num_samples: int - :param relative_to: - - - Position to start fetching within one record. - - - - - :type relative_to: :py:data:`niscope.FetchRelativeTo` - :param offset: - - - Offset in samples to start fetching data within each record. The offset can be positive or negative. - - - - - :type offset: int - :param record_number: - - - Zero-based index of the first record to fetch. - - - - - :type record_number: int - :param num_records: - - - Number of records to fetch. Use -1 to fetch all configured records. - - - - - :type num_records: int - :param timeout: - - - The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of WaveformInfo - :return: - - - Returns a list of class instances with the following timing and scaling information about each waveform: - - - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform - - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. - - **x_increment** (float) the time between points in the acquired waveform in seconds - - **channel** (str) channel name this waveform was acquired from - - **record** (int) record number of this waveform - - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired - - - - - -fetch_array_measurement ------------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: fetch_array_measurement(array_meas_function, meas_wfm_size=None, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, meas_num_samples=None, timeout=hightime.timedelta(seconds=5.0)) - - Obtains a waveform from the digitizer and returns the specified - measurement array. This method may return multiple waveforms depending - on the number of channels, the acquisition type, and the number of - records you specify. - - - - .. note:: Some functionality, such as time stamping, is not supported in all - digitizers. - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_array_measurement` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch_array_measurement` - - - :param array_meas_function: - - - The array measurement to perform. - - - - - :type array_meas_function: :py:data:`niscope.ArrayMeasurement` - :param meas_wfm_size: - - - The maximum number of samples returned in the measurement waveform array - for each waveform measurement. Default Value: None (returns all available samples). - - - - - :type meas_wfm_size: int - :param relative_to: - - - Position to start fetching within one record. - - - - - :type relative_to: :py:data:`niscope.FetchRelativeTo` - :param offset: - - - Offset in samples to start fetching data within each record. The offset can be positive or negative. - - - - - :type offset: int - :param record_number: - - - Zero-based index of the first record to fetch. - - - - - :type record_number: int - :param num_records: - - - Number of records to fetch. Use `None` to fetch all configured records. - - - - - :type num_records: int - :param meas_num_samples: - - - Number of samples to fetch when performing a measurement. Use `None` to fetch the actual record length. - - - - - :type meas_num_samples: int - :param timeout: - - - The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of WaveformInfo - :return: - - - Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **channel**-channel name this waveform was acquired from - - **record**-record number of this waveform - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **samples**-floating point array of samples. Length will be of actual samples acquired. - - - - - -fetch_into ----------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: fetch_into(waveform, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) - - Returns the waveform from a previously initiated acquisition that the - digitizer acquires for the specified channel. This method returns - scaled voltage waveforms. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - - - .. note:: Some functionality, such as time stamping, is not supported in all digitizers. - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch` - - - :param waveform: - - - numpy array of the appropriate type and size that should be acquired as a 1D array. Size should be **num_samples** times number of waveforms. Call :py:meth:`niscope.Session._actual_num_wfms` to determine the number of waveforms. - - Types supported are - - - `numpy.float64` - - `numpy.int8` - - `numpy.in16` - - `numpy.int32` - - Example: - - .. code-block:: python - - waveform = numpy.ndarray(num_samples * session.actual_num_wfms(), dtype=numpy.float64) - wfm_info = session['0,1'].fetch_into(waveform, timeout=5.0) - - - - - :type waveform: array.array("d") - :param relative_to: - - - Position to start fetching within one record. - - - - - :type relative_to: :py:data:`niscope.FetchRelativeTo` - :param offset: - - - Offset in samples to start fetching data within each record.The offset can be positive or negative. - - - - - :type offset: int - :param record_number: - - - Zero-based index of the first record to fetch. - - - - - :type record_number: int - :param num_records: - - - Number of records to fetch. Use -1 to fetch all configured records. - - - - - :type num_records: int - :param timeout: - - - The time to wait in seconds for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 for this parameter implies infinite timeout. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of WaveformInfo - :return: - - - Returns a list of class instances with the following timing and scaling information about each waveform: - - - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform - - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. - - **x_increment** (float) the time between points in the acquired waveform in seconds - - **channel** (str) channel name this waveform was acquired from - - **record** (int) record number of this waveform - - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired - - - - - -fetch_measurement_stats ------------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: fetch_measurement_stats(scalar_meas_function, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) - - Obtains a waveform measurement and returns the measurement value. This - method may return multiple statistical results depending on the number - of channels, the acquisition type, and the number of records you - specify. - - You specify a particular measurement type, such as rise time, frequency, - or voltage peak-to-peak. The waveform on which the digitizer calculates - the waveform measurement is from an acquisition that you previously - initiated. The statistics for the specified measurement method are - returned, where the statistics are updated once every acquisition when - the specified measurement is fetched by any of the Fetch Measurement - methods. If a Fetch Measurement method has not been called, this - method fetches the data on which to perform the measurement. The - statistics are cleared by calling - :py:meth:`niscope.Session.clear_waveform_measurement_stats`. - - Many of the measurements use the low, mid, and high reference levels. - You configure the low, mid, and high references with - :py:attr:`niscope.Session.meas_chan_low_ref_level`, - :py:attr:`niscope.Session.meas_chan_mid_ref_level`, and - :py:attr:`niscope.Session.meas_chan_high_ref_level` to set each channel - differently. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_measurement_stats` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch_measurement_stats` - - - :param scalar_meas_function: - - - The scalar measurement to be performed on each fetched waveform. - - - - - :type scalar_meas_function: :py:data:`niscope.ScalarMeasurement` - :param relative_to: - - - Position to start fetching within one record. - - - - - :type relative_to: :py:data:`niscope.FetchRelativeTo` - :param offset: - - - Offset in samples to start fetching data within each record. The offset can be positive or negative. - - - - - :type offset: int - :param record_number: - - - Zero-based index of the first record to fetch. - - - - - :type record_number: int - :param num_records: - - - Number of records to fetch. Use `None` to fetch all configured records. - - - - - :type num_records: int - :param timeout: - - - The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of MeasurementStats - :return: - - - Returns a list of class instances with the following measurement statistics - about the specified measurement: - - - **result** (float): the resulting measurement - - **mean** (float): the mean scalar value, which is obtained by - averaging each fetch_measurement_stats call - - **stdev** (float): the standard deviations of the most recent - **numInStats** measurements - - **min_val** (float): the smallest scalar value acquired (the minimum - of the **numInStats** measurements) - - **max_val** (float): the largest scalar value acquired (the maximum - of the **numInStats** measurements) - - **num_in_stats** (int): the number of times fetch_measurement_stats has been called - - **channel** (str): channel name this result was acquired from - - **record** (int): record number of this result - - - - - -get_channel_names ------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: get_channel_names(indices) - - Returns a list of channel names for given channel indices. - - - - - - :param indices: - - - Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - - - :type indices: basic sequence types, str, or int - - :rtype: list of str - :return: - - - The channel name(s) at the specified indices. - - - - - -get_equalization_filter_coefficients ------------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: get_equalization_filter_coefficients() - - Retrieves the custom coefficients for the equalization FIR filter on the device. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. Because this filter is a generic FIR filter, any coefficients are valid. Coefficient values should be between +1 and –1. - - - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_equalization_filter_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.get_equalization_filter_coefficients` - - -get_ext_cal_last_date_and_time ------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: get_ext_cal_last_date_and_time() - - Returns the date and time of the last external calibration performed. - - - - - - :rtype: hightime.timedelta, datetime.timedelta, or float in seconds - :return: - - - Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. - - - - - -get_ext_cal_last_temp ---------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: get_ext_cal_last_temp() - - Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful external calibration. - The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. - Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. - - - - - - :rtype: float - :return: - - - Returns the **temperature** in degrees Celsius during the last calibration. - - - - - -get_self_cal_last_date_and_time -------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: get_self_cal_last_date_and_time() - - Returns the date and time of the last self calibration performed. - - - - - - :rtype: hightime.timedelta, datetime.timedelta, or float in seconds - :return: - - - Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. - - - - - -get_self_cal_last_temp ----------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: get_self_cal_last_temp() - - Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful self calibration. - The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. - Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. - - - - - - :rtype: float - :return: - - - Returns the **temperature** in degrees Celsius during the last calibration. - - - - - -import_attribute_configuration_buffer -------------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: import_attribute_configuration_buffer(configuration) - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - - - .. note:: You cannot call this method while the session is in a running state, - such as while acquiring a signal. - - - - :param configuration: - - - Specifies the byte array buffer that contains the property - configuration to import. - - - - - :type configuration: bytes - -import_attribute_configuration_file ------------------------------------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: import_attribute_configuration_file(file_path) - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - - - .. note:: You cannot call this method while the session is in a running state, - such as while acquiring a signal. - - - - :param file_path: - - - Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:** .niscopeconfig - - - - - :type file_path: str - -initiate --------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: initiate() - - Initiates a waveform acquisition. - - After calling this method, the digitizer leaves the Idle state and - waits for a trigger. The digitizer acquires a waveform for each channel - you enable with :py:meth:`niscope.Session.configure_vertical`. - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -lock ----- - - .. py:currentmodule:: niscope.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`niscope.Session.lock` method. - - A call to NI-SCOPE locked the session. - - After a call to the :py:meth:`niscope.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`niscope.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`niscope.Session.lock` method and the - :py:meth:`niscope.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`niscope.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`niscope.Session.lock` method with a call to - the :py:meth:`niscope.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with niscope.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`niscope.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -probe_compensation_signal_start -------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: probe_compensation_signal_start() - - Starts the 1 kHz square wave output on PFI 1 for probe compensation. - - - - - -probe_compensation_signal_stop ------------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: probe_compensation_signal_stop() - - Stops the 1 kHz square wave output on PFI 1 for probe compensation. - - - - - -read ----- - - .. py:currentmodule:: niscope.Session - - .. py:method:: read(num_samples=None, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) - - Initiates an acquisition, waits for it to complete, and retrieves the - data. The process is similar to calling :py:meth:`niscope.Session._initiate_acquisition`, - :py:meth:`niscope.Session.acquisition_status`, and :py:meth:`niscope.Session.fetch`. The only difference is - that with :py:meth:`niscope.Session.read`, you enable all channels specified with - **channelList** before the acquisition; in the other method, you enable - the channels with :py:meth:`niscope.Session.configure_vertical`. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - - - .. note:: Some functionality, such as time stamping, is not supported in all digitizers. - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.read` - - - :param num_samples: - - - The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. - - - - - :type num_samples: int - :param relative_to: - - - Position to start fetching within one record. - - - - - :type relative_to: :py:data:`niscope.FetchRelativeTo` - :param offset: - - - Offset in samples to start fetching data within each record. The offset can be positive or negative. - - - - - :type offset: int - :param record_number: - - - Zero-based index of the first record to fetch. - - - - - :type record_number: int - :param num_records: - - - Number of records to fetch. Use -1 to fetch all configured records. - - - - - :type num_records: int - :param timeout: - - - The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - :rtype: list of WaveformInfo - :return: - - - Returns a list of class instances with the following timing and scaling information about each waveform: - - - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform - - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. - - **x_increment** (float) the time between points in the acquired waveform in seconds - - **channel** (str) channel name this waveform was acquired from - - **record** (int) record number of this waveform - - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired - - - - - -reset ------ - - .. py:currentmodule:: niscope.Session - - .. py:method:: reset() - - Stops the acquisition, releases routes, and all session properties are - reset to their `default - states `__. - - - - - -reset_device ------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: reset_device() - - Performs a hard reset of the device. Acquisition stops, all routes are - released, RTSI and PFI lines are tristated, hardware is configured to - its default state, and all session properties are reset to their default - state. - - - `Thermal Shutdown `__ - - - - - -reset_with_defaults -------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: reset_with_defaults() - - Performs a software reset of the device, returning it to the default - state and applying any initial default settings from the IVI - Configuration Store. - - - - - -self_cal --------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: self_cal(option=niscope.Option.SELF_CALIBRATE_ALL_CHANNELS) - - Self-calibrates most NI digitizers, including all SMC-based devices and - most Traditional NI-DAQ (Legacy) devices. To verify that your digitizer - supports self-calibration, refer to `Features Supported by - Device `__. - - For SMC-based digitizers, if the self-calibration is performed - successfully in a regular session, the calibration constants are - immediately stored in the self-calibration area of the EEPROM. If the - self-calibration is performed in an external calibration session, the - calibration constants take effect immediately for the duration of the - session. However, they are not stored in the EEPROM until - :py:meth:`niscope.Session.CalEnd` is called with **action** set to - :py:data:`~niscope.NISCOPE_VAL_ACTION_STORE` and no errors occur. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].self_cal` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.self_cal` - - - :param option: - - - The calibration option. Use VI_NULL for a normal self-calibration - operation or :py:data:`~niscope.NISCOPE_VAL_CAL_RESTORE_EXTERNAL_CALIBRATION` to - restore the previous calibration. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type option: :py:data:`niscope.Option` - -self_test ---------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: self_test() - - Runs the instrument self-test routine and returns the test result(s). Refer to the - device-specific help topics for an explanation of the message contents. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - - -send_software_trigger_edge --------------------------- - - .. py:currentmodule:: niscope.Session - - .. py:method:: send_software_trigger_edge(which_trigger) - - Sends the selected trigger to the digitizer. Call this method if you - called :py:meth:`niscope.Session.configure_trigger_software` when you want the Reference - trigger to occur. You can also call this method to override a misused - edge, digital, or hysteresis trigger. If you have configured - :py:attr:`niscope.Session.acq_arm_source`, :py:attr:`niscope.Session.arm_ref_trig_src`, or - :py:attr:`niscope.Session.adv_trig_src`, call this method when you want to send - the corresponding trigger to the digitizer. - - - - - - :param which_trigger: - - - Specifies the type of trigger to send to the digitizer. - - **Defined Values** - - | :py:data:`~niscope.WhichTrigger.START` (0L) - | :py:data:`~niscope.WhichTrigger.ARM_REFERENCE` (1L) - | :py:data:`~niscope.WhichTrigger.REFERENCE` (2L) - | :py:data:`~niscope.WhichTrigger.ADVANCE` (3L) - - - - - :type which_trigger: :py:data:`niscope.WhichTrigger` - -unlock ------- - - .. py:currentmodule:: niscope.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`niscope.Session.lock`. Refer to :py:meth:`niscope.Session.unlock` for additional - information on session locks. - - -Properties -========== - -absolute_sample_clock_offset ----------------------------- - - .. py:attribute:: absolute_sample_clock_offset - - Gets or sets the absolute time offset of the sample clock relative to - the reference clock in terms of seconds. - - - - .. note:: Configures the sample clock relationship with respect to the reference - clock. This parameter is factored into NI-TClk adjustments and is - typically used to improve the repeatability of NI-TClk Synchronization. - When this parameter is read, the currently programmed value is returned. - The range of the absolute sample clock offset is [-.5 sample clock - periods, .5 sample clock periods]. The default absolute sample clock - offset is 0s. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Advanced:Absolute Sample Clock Offset** - - C Attribute: **NISCOPE_ATTR_ABSOLUTE_SAMPLE_CLOCK_OFFSET** - -acquisition_start_time ----------------------- - - .. py:attribute:: acquisition_start_time - - Specifies the length of time from the trigger event to the first point in the waveform record in seconds. If the value is positive, the first point in the waveform record occurs after the trigger event (same as specifying :py:attr:`niscope.Session.trigger_delay_time`). If the value is negative, the first point in the waveform record occurs before the trigger event (same as specifying :py:attr:`niscope.Session.horz_record_ref_position`). - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Advanced:Acquisition Start Time** - - C Attribute: **NISCOPE_ATTR_ACQUISITION_START_TIME** - -acquisition_type ----------------- - - .. py:attribute:: acquisition_type - - Specifies how the digitizer acquires data and fills the waveform record. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.AcquisitionType | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Acquisition Type** - - C Attribute: **NISCOPE_ATTR_ACQUISITION_TYPE** - -acq_arm_source --------------- - - .. py:attribute:: acq_arm_source - - Specifies the source the digitizer monitors for a start (acquisition arm) trigger. When the start trigger is received, the digitizer begins acquiring pretrigger samples. - Valid Values: - :py:data:`~niscope.NISCOPE_VAL_IMMEDIATE` ('VAL_IMMEDIATE') - Triggers immediately - :py:data:`~niscope.NISCOPE_VAL_RTSI_0` ('VAL_RTSI_0') - RTSI 0 - :py:data:`~niscope.NISCOPE_VAL_RTSI_1` ('VAL_RTSI_1') - RTSI 1 - :py:data:`~niscope.NISCOPE_VAL_RTSI_2` ('VAL_RTSI_2') - RTSI 2 - :py:data:`~niscope.NISCOPE_VAL_RTSI_3` ('VAL_RTSI_3') - RTSI 3 - :py:data:`~niscope.NISCOPE_VAL_RTSI_4` ('VAL_RTSI_4') - RTSI 4 - :py:data:`~niscope.NISCOPE_VAL_RTSI_5` ('VAL_RTSI_5') - RTSI 5 - :py:data:`~niscope.NISCOPE_VAL_RTSI_6` ('VAL_RTSI_6') - RTSI 6 - :py:data:`~niscope.NISCOPE_VAL_PFI_0` ('VAL_PFI_0') - PFI 0 - :py:data:`~niscope.NISCOPE_VAL_PFI_1` ('VAL_PFI_1') - PFI 1 - :py:data:`~niscope.NISCOPE_VAL_PFI_2` ('VAL_PFI_2') - PFI 2 - :py:data:`~niscope.NISCOPE_VAL_PXI_STAR` ('VAL_PXI_STAR') - PXI Star Trigger - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Start Trigger (Acq. Arm):Source** - - C Attribute: **NISCOPE_ATTR_ACQ_ARM_SOURCE** - -advance_trigger_terminal_name ------------------------------ - - .. py:attribute:: advance_trigger_terminal_name - - Returns the fully qualified name for the Advance Trigger terminal. You can use this terminal as the source for another trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Advance Trigger:Terminal Name** - - C Attribute: **NISCOPE_ATTR_ADVANCE_TRIGGER_TERMINAL_NAME** - -adv_trig_src ------------- - - .. py:attribute:: adv_trig_src - - Specifies the source the digitizer monitors for an advance trigger. When the advance trigger is received, the digitizer begins acquiring pretrigger samples. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Advance Trigger:Source** - - C Attribute: **NISCOPE_ATTR_ADV_TRIG_SRC** - -allow_more_records_than_memory ------------------------------- - - .. py:attribute:: allow_more_records_than_memory - - Indicates whether more records can be configured with :py:meth:`niscope.Session.configure_horizontal_timing` than fit in the onboard memory. If this property is set to True, it is necessary to fetch records while the acquisition is in progress. Eventually, some of the records will be overwritten. An error is returned from the fetch method if you attempt to fetch a record that has been overwritten. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Enable Records > Memory** - - C Attribute: **NISCOPE_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY** - -arm_ref_trig_src ----------------- - - .. py:attribute:: arm_ref_trig_src - - Specifies the source the digitizer monitors for an arm reference trigger. When the arm reference trigger is received, the digitizer begins looking for a reference (stop) trigger from the user-configured trigger source. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Arm Reference Trigger:Source** - - C Attribute: **NISCOPE_ATTR_ARM_REF_TRIG_SRC** - -backlog -------- - - .. py:attribute:: backlog - - Returns the number of samples (:py:attr:`niscope.Session.points_done`) that have been acquired but not fetched for the record specified by :py:attr:`niscope.Session.fetch_record_number`. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Fetch:Fetch Backlog** - - C Attribute: **NISCOPE_ATTR_BACKLOG** - -bandpass_filter_enabled ------------------------ - - .. py:attribute:: bandpass_filter_enabled - - Enables the bandpass filter on the specificed channel. The default value is FALSE. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].bandpass_filter_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.bandpass_filter_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Bandpass Filter Enabled** - - C Attribute: **NISCOPE_ATTR_BANDPASS_FILTER_ENABLED** - -binary_sample_width -------------------- - - .. py:attribute:: binary_sample_width - - Indicates the bit width of the binary data in the acquired waveform. Useful for determining which Binary Fetch method to use. Compare to :py:attr:`niscope.Session.resolution`. - To configure the device to store samples with a lower resolution that the native, set this property to the desired binary width. - This can be useful for streaming at faster speeds at the cost of resolution. The least significant bits will be lost with this configuration. - Valid Values: 8, 16, 32 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Binary Sample Width** - - C Attribute: **NISCOPE_ATTR_BINARY_SAMPLE_WIDTH** - -cable_sense_mode ----------------- - - .. py:attribute:: cable_sense_mode - - Specifies whether and how the oscilloscope is configured to generate a CableSense signal on the specified channels when the :py:meth:`niscope.Session.CableSenseSignalStart` method is called. - - Device-Specific Behavior: - PXIe-5160/5162 - - The value of this property must be identical across all channels whose input impedance is set to 50 ohms. - - If this property is set to a value other than :py:data:`~niscope.CableSenseMode.DISABLED` for any channel(s), the input impedance of all channels for which this property is set to :py:data:`~niscope.CableSenseMode.DISABLED` must be set to 1 M Ohm. - - +-----------------------+ - | **Supported Devices** | - +-----------------------+ - | PXIe-5110 | - +-----------------------+ - | PXIe-5111 | - +-----------------------+ - | PXIe-5113 | - +-----------------------+ - | PXIe-5160 | - +-----------------------+ - | PXIe-5162 | - +-----------------------+ - - .. note:: the input impedance of the channel(s) to convey the CableSense signal must be set to 50 ohms. - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.CableSenseMode | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_CABLE_SENSE_MODE** - -cable_sense_signal_enable -------------------------- - - .. py:attribute:: cable_sense_signal_enable - - TBD - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_CABLE_SENSE_SIGNAL_ENABLE** - -cable_sense_voltage -------------------- - - .. py:attribute:: cable_sense_voltage - - Returns the voltage of the CableSense signal that is written to the EEPROM of the oscilloscope during factory calibration. - - +-----------------------+ - | **Supported Devices** | - +-----------------------+ - | PXIe-5110 | - +-----------------------+ - | PXIe-5111 | - +-----------------------+ - | PXIe-5113 | - +-----------------------+ - | PXIe-5160 | - +-----------------------+ - | PXIe-5162 | - +-----------------------+ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_CABLE_SENSE_VOLTAGE** - -channel_count -------------- - - .. py:attribute:: channel_count - - Indicates the number of channels that the specific instrument driver supports. - For channel-based properties, the IVI engine maintains a separate cache value for each channel. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Channel Count** - - C Attribute: **NISCOPE_ATTR_CHANNEL_COUNT** - -channel_enabled ---------------- - - .. py:attribute:: channel_enabled - - Specifies whether the digitizer acquires a waveform for the channel. - Valid Values: - True (1) - Acquire data on this channel - False (0) - Don't acquire data on this channel - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].channel_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.channel_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Channel Enabled** - - C Attribute: **NISCOPE_ATTR_CHANNEL_ENABLED** - -channel_terminal_configuration ------------------------------- - - .. py:attribute:: channel_terminal_configuration - - Specifies the terminal configuration for the channel. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].channel_terminal_configuration` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.channel_terminal_configuration` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.TerminalConfiguration | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Channel Terminal Configuration** - - C Attribute: **NISCOPE_ATTR_CHANNEL_TERMINAL_CONFIGURATION** - -data_transfer_block_size ------------------------- - - .. py:attribute:: data_transfer_block_size - - Specifies the maximum number of samples to transfer at one time from the device to host memory. Increasing this number should result in better fetching performance because the driver does not need to restart the transfers as often. However, increasing this number may also increase the amount of page-locked memory required from the system. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Fetch:Data Transfer Block Size** - - C Attribute: **NISCOPE_ATTR_DATA_TRANSFER_BLOCK_SIZE** - -data_transfer_maximum_bandwidth -------------------------------- - - .. py:attribute:: data_transfer_maximum_bandwidth - - This property specifies the maximum bandwidth that the device is allowed to consume. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Fetch:Advanced:Maximum Bandwidth** - - C Attribute: **NISCOPE_ATTR_DATA_TRANSFER_MAXIMUM_BANDWIDTH** - -data_transfer_preferred_packet_size ------------------------------------ - - .. py:attribute:: data_transfer_preferred_packet_size - - This property specifies the size of (read request|memory write) data payload. Due to alignment of the data buffers, the hardware may not always generate a packet of this size. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Fetch:Advanced:Preferred Packet Size** - - C Attribute: **NISCOPE_ATTR_DATA_TRANSFER_PREFERRED_PACKET_SIZE** - -device_temperature ------------------- - - .. py:attribute:: device_temperature - - Returns the temperature of the device in degrees Celsius from the onboard sensor. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].device_temperature` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.device_temperature` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | float | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device:Temperature** - - C Attribute: **NISCOPE_ATTR_DEVICE_TEMPERATURE** - -enabled_channels ----------------- - - .. py:attribute:: enabled_channels - - Returns a comma-separated list of the channels enabled for the session in ascending order. - - If no channels are enabled, this property returns an empty string, "". - If all channels are enabled, this property enumerates all of the channels. - - Because this property returns channels in ascending order, but the order in which you specify channels for the input is important, the value of this property may not necessarily reflect the order in which NI-SCOPE performs certain actions. - - Refer to Channel String Syntax in the NI High-Speed Digitizers Help for more information on the effects of channel order in NI-SCOPE. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_ENABLED_CHANNELS** - -enable_dc_restore ------------------ - - .. py:attribute:: enable_dc_restore - - Restores the video-triggered data retrieved by the digitizer to the video signal's zero reference point. - Valid Values: - True - Enable DC restore - False - Disable DC restore - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Video:Enable DC Restore** - - C Attribute: **NISCOPE_ATTR_ENABLE_DC_RESTORE** - -enable_time_interleaved_sampling --------------------------------- - - .. py:attribute:: enable_time_interleaved_sampling - - Specifies whether the digitizer acquires the waveform using multiple ADCs for the channel enabling a higher maximum real-time sampling rate. - Valid Values: - True (1) - Use multiple interleaved ADCs on this channel - False (0) - Use only this channel's ADC to acquire data for this channel - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].enable_time_interleaved_sampling` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.enable_time_interleaved_sampling` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Enable Time Interleaved Sampling** - - C Attribute: **NISCOPE_ATTR_ENABLE_TIME_INTERLEAVED_SAMPLING** - -end_of_acquisition_event_output_terminal ----------------------------------------- - - .. py:attribute:: end_of_acquisition_event_output_terminal - - Specifies the destination for the End of Acquisition Event. When this event is asserted, the digitizer has completed sampling for all records. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:End of Acquisition:Output Terminal** - - C Attribute: **NISCOPE_ATTR_END_OF_ACQUISITION_EVENT_OUTPUT_TERMINAL** - -end_of_acquisition_event_terminal_name --------------------------------------- - - .. py:attribute:: end_of_acquisition_event_terminal_name - - Returns the fully qualified name for the End of Acquisition Event terminal. You can use this terminal as the source for a trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:End of Acquisition:Terminal Name** - - C Attribute: **NISCOPE_ATTR_END_OF_ACQUISITION_EVENT_TERMINAL_NAME** - -end_of_record_event_output_terminal ------------------------------------ - - .. py:attribute:: end_of_record_event_output_terminal - - Specifies the destination for the End of Record Event. When this event is asserted, the digitizer has completed sampling for the current record. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:End of Record:Output Terminal** - - C Attribute: **NISCOPE_ATTR_END_OF_RECORD_EVENT_OUTPUT_TERMINAL** - -end_of_record_event_terminal_name ---------------------------------- - - .. py:attribute:: end_of_record_event_terminal_name - - Returns the fully qualified name for the End of Record Event terminal. You can use this terminal as the source for a trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:End of Record:Terminal Name** - - C Attribute: **NISCOPE_ATTR_END_OF_RECORD_EVENT_TERMINAL_NAME** - -end_of_record_to_advance_trigger_holdoff ----------------------------------------- - - .. py:attribute:: end_of_record_to_advance_trigger_holdoff - - End of Record to Advance Trigger Holdoff is the length of time (in - seconds) that a device waits between the completion of one record and - the acquisition of pre-trigger samples for the next record. During this - time, the acquisition engine state delays the transition to the Wait for - Advance Trigger state, and will not store samples in onboard memory, - accept an Advance Trigger, or trigger on the input signal.. - **Supported Devices**: NI 5185/5186 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:End of Record to Advance Trigger Holdoff** - - C Attribute: **NISCOPE_ATTR_END_OF_RECORD_TO_ADVANCE_TRIGGER_HOLDOFF** - -equalization_filter_enabled ---------------------------- - - .. py:attribute:: equalization_filter_enabled - - Enables the onboard signal processing FIR block. This block is connected directly to the input signal. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].equalization_filter_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.equalization_filter_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Onboard Signal Processing:Equalization:Equalization Filter Enabled** - - C Attribute: **NISCOPE_ATTR_EQUALIZATION_FILTER_ENABLED** - -equalization_num_coefficients ------------------------------ - - .. py:attribute:: equalization_num_coefficients - - Returns the number of coefficients that the FIR filter can accept. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].equalization_num_coefficients` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.equalization_num_coefficients` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Onboard Signal Processing:Equalization:Equalization Num Coefficients** - - C Attribute: **NISCOPE_ATTR_EQUALIZATION_NUM_COEFFICIENTS** - -exported_advance_trigger_output_terminal ----------------------------------------- - - .. py:attribute:: exported_advance_trigger_output_terminal - - Specifies the destination to export the advance trigger. When the advance trigger is received, the digitizer begins acquiring samples for the Nth record. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Advance Trigger:Output Terminal** - - C Attribute: **NISCOPE_ATTR_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL** - -exported_ref_trigger_output_terminal ------------------------------------- - - .. py:attribute:: exported_ref_trigger_output_terminal - - Specifies the destination export for the reference (stop) trigger. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Output Terminal** - - C Attribute: **NISCOPE_ATTR_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL** - -exported_start_trigger_output_terminal --------------------------------------- - - .. py:attribute:: exported_start_trigger_output_terminal - - Specifies the destination to export the Start trigger. When the start trigger is received, the digitizer begins acquiring samples. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Start Trigger (Acq. Arm):Output Terminal** - - C Attribute: **NISCOPE_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** - -flex_fir_antialias_filter_type ------------------------------- - - .. py:attribute:: flex_fir_antialias_filter_type - - The NI 5922 flexible-resolution digitizer uses an onboard FIR lowpass antialias filter. - Use this property to select from several types of filters to achieve desired filtering characteristics. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].flex_fir_antialias_filter_type` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.flex_fir_antialias_filter_type` - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.FlexFIRAntialiasFilterType | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Flex FIR Antialias Filter Type** - - C Attribute: **NISCOPE_ATTR_FLEX_FIR_ANTIALIAS_FILTER_TYPE** - -fpga_bitfile_path ------------------ - - .. py:attribute:: fpga_bitfile_path - - Gets the absolute file path to the bitfile loaded on the FPGA. - - - - .. note:: Gets the absolute file path to the bitfile loaded on the FPGA. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device:FPGA Bitfile Path** - - C Attribute: **NISCOPE_ATTR_FPGA_BITFILE_PATH** - -glitch_condition ----------------- - - .. py:attribute:: glitch_condition - - Specifies whether the oscilloscope triggers on pulses of duration less than or greater than the value specified by the :py:attr:`niscope.Session.glitch_width` property. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.GlitchCondition | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_GLITCH_CONDITION** - -glitch_polarity ---------------- - - .. py:attribute:: glitch_polarity - - Specifies the polarity of pulses that trigger the oscilloscope for glitch triggering. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.GlitchPolarity | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_GLITCH_POLARITY** - -glitch_width ------------- - - .. py:attribute:: glitch_width - - Specifies the glitch duration, in seconds. - - The oscilloscope triggers when it detects of pulse of duration either less than or greater than this value depending on the value of the :py:attr:`niscope.Session.glitch_condition` property. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_GLITCH_WIDTH** - -high_pass_filter_frequency --------------------------- - - .. py:attribute:: high_pass_filter_frequency - - Specifies the frequency for the highpass filter in Hz. The device uses - one of the valid values listed below. If an invalid value is specified, - no coercion occurs. The default value is 0. - **(PXIe-5164) Valid Values:** - 0 90 450 - **Related topics:** - `Digital Filtering `__ - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].high_pass_filter_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.high_pass_filter_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:High Pass Filter Frequency** - - C Attribute: **NISCOPE_ATTR_HIGH_PASS_FILTER_FREQUENCY** - -horz_enforce_realtime ---------------------- - - .. py:attribute:: horz_enforce_realtime - - Indicates whether the digitizer enforces real-time measurements or allows equivalent-time measurements. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Enforce Realtime** - - C Attribute: **NISCOPE_ATTR_HORZ_ENFORCE_REALTIME** - -horz_min_num_pts ----------------- - - .. py:attribute:: horz_min_num_pts - - Specifies the minimum number of points you require in the waveform record for each channel. NI-SCOPE uses the value you specify to configure the record length that the digitizer uses for waveform acquisition. :py:attr:`niscope.Session.horz_record_length` returns the actual record length. - Valid Values: 1 - available onboard memory - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Min Number of Points** - - C Attribute: **NISCOPE_ATTR_HORZ_MIN_NUM_PTS** - -horz_num_records ----------------- - - .. py:attribute:: horz_num_records - - Specifies the number of records to acquire. Can be used for multi-record acquisition and single-record acquisitions. Setting this to 1 indicates a single-record acquisition. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Number of Records** - - C Attribute: **NISCOPE_ATTR_HORZ_NUM_RECORDS** - -horz_record_length ------------------- - - .. py:attribute:: horz_record_length - - Returns the actual number of points the digitizer acquires for each channel. The value is equal to or greater than the minimum number of points you specify with :py:attr:`niscope.Session.horz_min_num_pts`. - Allocate a ViReal64 array of this size or greater to pass as the WaveformArray parameter of the Read and Fetch methods. This property is only valid after a call to the one of the Configure Horizontal methods. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Actual Record Length** - - C Attribute: **NISCOPE_ATTR_HORZ_RECORD_LENGTH** - -horz_record_ref_position ------------------------- - - .. py:attribute:: horz_record_ref_position - - Specifies the position of the Reference Event in the waveform record. When the digitizer detects a trigger, it waits the length of time the :py:attr:`niscope.Session.trigger_delay_time` property specifies. The event that occurs when the delay time elapses is the Reference Event. The Reference Event is relative to the start of the record and is a percentage of the record length. For example, the value 50.0 corresponds to the center of the waveform record and 0.0 corresponds to the first element in the waveform record. - Valid Values: 0.0 - 100.0 - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Reference Position** - - C Attribute: **NISCOPE_ATTR_HORZ_RECORD_REF_POSITION** - -horz_sample_rate ----------------- - - .. py:attribute:: horz_sample_rate - - Returns the effective sample rate using the current configuration. The units are samples per second. This property is only valid after a call to the one of the Configure Horizontal methods. - Units: Hertz (Samples / Second) - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Actual Sample Rate** - - C Attribute: **NISCOPE_ATTR_HORZ_SAMPLE_RATE** - -horz_time_per_record --------------------- - - .. py:attribute:: horz_time_per_record - - Specifies the length of time that corresponds to the record length. - Units: Seconds - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Advanced:Time Per Record** - - C Attribute: **NISCOPE_ATTR_HORZ_TIME_PER_RECORD** - -input_clock_source ------------------- - - .. py:attribute:: input_clock_source - - Specifies the input source for the PLL reference clock (the 1 MHz to 20 MHz clock on the NI 5122, the 10 MHz clock for the NI 5112/5620/5621/5911) to which the digitizer will be phase-locked; for the NI 5102, this is the source of the board clock. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Reference (Input) Clock Source** - - C Attribute: **NISCOPE_ATTR_INPUT_CLOCK_SOURCE** - -input_impedance ---------------- - - .. py:attribute:: input_impedance - - Specifies the input impedance for the channel in Ohms. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].input_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.input_impedance` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Input Impedance** - - C Attribute: **NISCOPE_ATTR_INPUT_IMPEDANCE** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - A string that contains the firmware revision information for the instrument you are currently using. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.instrument_firmware_revision` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** - - C Attribute: **NISCOPE_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - A string that contains the name of the instrument manufacturer. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** - - C Attribute: **NISCOPE_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - A string that contains the model number of the current instrument. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** - - C Attribute: **NISCOPE_ATTR_INSTRUMENT_MODEL** - -interleaving_offset_correction_enabled --------------------------------------- - - .. py:attribute:: interleaving_offset_correction_enabled - - Enables the interleaving offset correction on the specified channel. The - default value is TRUE. - **Related topics:** - `Timed Interleaved - Sampling `__ - - - - .. note:: If disabled, warranted specifications are not guaranteed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].interleaving_offset_correction_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.interleaving_offset_correction_enabled` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Advanced:Interleaving Offset Correction Enabled** - - C Attribute: **NISCOPE_ATTR_INTERLEAVING_OFFSET_CORRECTION_ENABLED** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Indicates the resource descriptor the driver uses to identify the physical device. If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. - If you initialize the instrument driver with the resource descriptor, this property contains that value.You can pass a logical name to :py:meth:`niscope.Session.Init` or :py:meth:`niscope.Session.__init__`. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** - - C Attribute: **NISCOPE_ATTR_IO_RESOURCE_DESCRIPTOR** - -is_probe_comp_on ----------------- - - .. py:attribute:: is_probe_comp_on - - .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].is_probe_comp_on` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.is_probe_comp_on` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | bool | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_IS_PROBE_COMP_ON** - -logical_name ------------- - - .. py:attribute:: logical_name - - A string containing the logical name you specified when opening the current IVI session. You can pass a logical name to :py:meth:`niscope.Session.Init` or :py:meth:`niscope.Session.__init__`. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NISCOPE_ATTR_LOGICAL_NAME** - -master_enable -------------- - - .. py:attribute:: master_enable - - Specifies whether you want the device to be a master or a slave. The master typically originates the trigger signal and clock sync pulse. For a standalone device, set this property to False. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Master Enable** - - C Attribute: **NISCOPE_ATTR_MASTER_ENABLE** - -max_input_frequency -------------------- - - .. py:attribute:: max_input_frequency - - Specifies the bandwidth of the channel. Express this value as the frequency at which the input circuitry attenuates the input signal by 3 dB. The units are hertz. - Defined Values: - :py:data:`~niscope.NISCOPE_VAL_BANDWIDTH_FULL` (-1.0) - :py:data:`~niscope.NISCOPE_VAL_BANDWIDTH_DEVICE_DEFAULT` (0.0) - :py:data:`~niscope.NISCOPE_VAL_20MHZ_BANDWIDTH` (20000000.0) - :py:data:`~niscope.NISCOPE_VAL_100MHZ_BANDWIDTH` (100000000.0) - :py:data:`~niscope.NISCOPE_VAL_20MHZ_MAX_INPUT_FREQUENCY` (20000000.0) - :py:data:`~niscope.NISCOPE_VAL_100MHZ_MAX_INPUT_FREQUENCY` (100000000.0) - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_input_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.max_input_frequency` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Maximum Input Frequency** - - C Attribute: **NISCOPE_ATTR_MAX_INPUT_FREQUENCY** - -max_real_time_sampling_rate ---------------------------- - - .. py:attribute:: max_real_time_sampling_rate - - Returns the maximum real time sample rate in Hz. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Maximum Real Time Sample Rate** - - C Attribute: **NISCOPE_ATTR_MAX_REAL_TIME_SAMPLING_RATE** - -max_ris_rate ------------- - - .. py:attribute:: max_ris_rate - - Returns the maximum sample rate in RIS mode in Hz. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Maximum RIS Rate** - - C Attribute: **NISCOPE_ATTR_MAX_RIS_RATE** - -meas_array_gain ---------------- - - .. py:attribute:: meas_array_gain - - Every element of an array is multiplied by this scalar value during the Array Gain measurement. Refer to :py:data:`~niscope.ArrayMeasurement.ARRAY_GAIN` for more information. - Default: 1.0 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_array_gain` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_array_gain` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Array Gain** - - C Attribute: **NISCOPE_ATTR_MEAS_ARRAY_GAIN** - -meas_array_offset ------------------ - - .. py:attribute:: meas_array_offset - - Every element of an array is added to this scalar value during the Array Offset measurement. Refer to :py:data:`~niscope.ArrayMeasurement.ARRAY_OFFSET` for more information. - Default: 0.0 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_array_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_array_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Array Offset** - - C Attribute: **NISCOPE_ATTR_MEAS_ARRAY_OFFSET** - -meas_chan_high_ref_level ------------------------- - - .. py:attribute:: meas_chan_high_ref_level - - Stores the high reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as :py:attr:`niscope.Session.meas_high_ref` if you use this property to set various channels to different values. - Default: 90% - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_chan_high_ref_level` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_chan_high_ref_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Reference Levels:Channel Based High Ref Level** - - C Attribute: **NISCOPE_ATTR_MEAS_CHAN_HIGH_REF_LEVEL** - -meas_chan_low_ref_level ------------------------ - - .. py:attribute:: meas_chan_low_ref_level - - Stores the low reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as :py:attr:`niscope.Session.meas_low_ref` if you use this property to set various channels to different values. - Default: 10% - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_chan_low_ref_level` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_chan_low_ref_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Reference Levels:Channel Based Low Ref Level** - - C Attribute: **NISCOPE_ATTR_MEAS_CHAN_LOW_REF_LEVEL** - -meas_chan_mid_ref_level ------------------------ - - .. py:attribute:: meas_chan_mid_ref_level - - Stores the mid reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as :py:attr:`niscope.Session.meas_mid_ref` if you use this property to set various channels to different values. - Default: 50% - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_chan_mid_ref_level` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_chan_mid_ref_level` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Reference Levels:Channel Based Mid Ref Level** - - C Attribute: **NISCOPE_ATTR_MEAS_CHAN_MID_REF_LEVEL** - -meas_filter_center_freq ------------------------ - - .. py:attribute:: meas_filter_center_freq - - The center frequency in hertz for filters of type bandpass and bandstop. The width of the filter is specified by :py:attr:`niscope.Session.meas_filter_width`, where the cutoff frequencies are the center ± width. - Default: 1.0e6 Hz - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_center_freq` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_center_freq` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:Center Frequency** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_CENTER_FREQ** - -meas_filter_cutoff_freq ------------------------ - - .. py:attribute:: meas_filter_cutoff_freq - - Specifies the cutoff frequency in hertz for filters of type lowpass and highpass. The cutoff frequency definition varies depending on the filter. - Default: 1.0e6 Hz - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_cutoff_freq` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_cutoff_freq` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:Cutoff Frequency** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_CUTOFF_FREQ** - -meas_filter_order ------------------ - - .. py:attribute:: meas_filter_order - - Specifies the order of an IIR filter. All positive integers are valid. - Default: 2 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_order` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_order` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:IIR Order** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_ORDER** - -meas_filter_ripple ------------------- - - .. py:attribute:: meas_filter_ripple - - Specifies the amount of ripple in the passband in units of decibels (positive values). Used only for Chebyshev filters. The more ripple allowed gives a sharper cutoff for a given filter order. - Default: 0.1 dB - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_ripple` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_ripple` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:Ripple** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_RIPPLE** - -meas_filter_taps ----------------- - - .. py:attribute:: meas_filter_taps - - Defines the number of taps (coefficients) for an FIR filter. - Default: 25 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_taps` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_taps` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:FIR Taps** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_TAPS** - -meas_filter_transient_waveform_percent --------------------------------------- - - .. py:attribute:: meas_filter_transient_waveform_percent - - The percentage (0 - 100%) of the IIR filtered waveform to eliminate from the beginning of the waveform. This allows eliminating the transient portion of the waveform that is undefined due to the assumptions necessary at the boundary condition. - Default: 20.0% - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_transient_waveform_percent` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_transient_waveform_percent` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:Percent Waveform Transient** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_TRANSIENT_WAVEFORM_PERCENT** - -meas_filter_type ----------------- - - .. py:attribute:: meas_filter_type - - Specifies the type of filter, for both IIR and FIR filters. The allowed values are the following: - · :py:data:`~niscope.NISCOPE_VAL_MEAS_LOWPASS` - · :py:data:`~niscope.NISCOPE_VAL_MEAS_HIGHPASS` - · :py:data:`~niscope.NISCOPE_VAL_MEAS_BANDPASS` - · :py:data:`~niscope.NISCOPE_VAL_MEAS_BANDSTOP` - Default: :py:data:`~niscope.NISCOPE_VAL_MEAS_LOWPASS` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_type` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_type` - - The following table lists the characteristics of this property. - - +-----------------------+------------------+ - | Characteristic | Value | - +=======================+==================+ - | Datatype | enums.FilterType | - +-----------------------+------------------+ - | Permissions | read-write | - +-----------------------+------------------+ - | Repeated Capabilities | channels | - +-----------------------+------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:Type** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_TYPE** - -meas_filter_width ------------------ - - .. py:attribute:: meas_filter_width - - Specifies the width of bandpass and bandstop type filters in hertz. The cutoff frequencies occur at :py:attr:`niscope.Session.meas_filter_center_freq` ± one-half width. - Default: 1.0e3 Hz - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_width` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_width` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:Width** - - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_WIDTH** - -meas_fir_filter_window ----------------------- - - .. py:attribute:: meas_fir_filter_window - - Specifies the FIR window type. The possible choices are: - :py:data:`~niscope.FIRFilterWindow.NONE` - :py:data:`~niscope.ArrayMeasurement.HANNING_WINDOW` - :py:data:`~niscope.ArrayMeasurement.HAMMING_WINDOW` - :py:data:`~niscope.ArrayMeasurement.TRIANGLE_WINDOW` - :py:data:`~niscope.ArrayMeasurement.FLAT_TOP_WINDOW` - :py:data:`~niscope.ArrayMeasurement.BLACKMAN_WINDOW` - The symmetric windows are applied to the FIR filter coefficients to limit passband ripple in FIR filters. - Default: :py:data:`~niscope.FIRFilterWindow.NONE` - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_fir_filter_window` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_fir_filter_window` - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.FIRFilterWindow | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | channels | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Filter:FIR Window** - - C Attribute: **NISCOPE_ATTR_MEAS_FIR_FILTER_WINDOW** - -meas_high_ref -------------- - - .. py:attribute:: meas_high_ref - - - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_MEAS_HIGH_REF** - -meas_hysteresis_percent ------------------------ - - .. py:attribute:: meas_hysteresis_percent - - Digital hysteresis that is used in several of the scalar waveform measurements. This property specifies the percentage of the full-scale vertical range for the hysteresis window size. - Default: 2% - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_hysteresis_percent` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_hysteresis_percent` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Hysteresis Percent** - - C Attribute: **NISCOPE_ATTR_MEAS_HYSTERESIS_PERCENT** - -meas_interpolation_sampling_factor ----------------------------------- - - .. py:attribute:: meas_interpolation_sampling_factor - - The new number of points for polynomial interpolation is the sampling factor times the input number of points. For example, if you acquire 1,000 points with the digitizer and set this property to 2.5, calling :py:meth:`niscope.Session.FetchWaveformMeasurementArray` with the :py:data:`~niscope.ArrayMeasurement.POLYNOMIAL_INTERPOLATION` measurement resamples the waveform to 2,500 points. - Default: 2.0 - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_interpolation_sampling_factor` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_interpolation_sampling_factor` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Interpolation:Sampling Factor** - - C Attribute: **NISCOPE_ATTR_MEAS_INTERPOLATION_SAMPLING_FACTOR** - -meas_last_acq_histogram_size ----------------------------- - - .. py:attribute:: meas_last_acq_histogram_size - - Specifies the size (that is, the number of bins) in the last acquisition histogram. This histogram is used to determine several scalar measurements, most importantly voltage low and voltage high. - Default: 256 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_last_acq_histogram_size` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_last_acq_histogram_size` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Last Acq. Histogram Size** - - C Attribute: **NISCOPE_ATTR_MEAS_LAST_ACQ_HISTOGRAM_SIZE** - -meas_low_ref ------------- - - .. py:attribute:: meas_low_ref - - - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_MEAS_LOW_REF** - -meas_mid_ref ------------- - - .. py:attribute:: meas_mid_ref - - - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_MEAS_MID_REF** - -meas_other_channel ------------------- - - .. py:attribute:: meas_other_channel - - Specifies the second channel for two-channel measurements, such as :py:data:`~niscope.ArrayMeasurement.ADD_CHANNELS`. If processing steps are registered with this channel, the processing is done before the waveform is used in a two-channel measurement. - Default: '0' - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_other_channel` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_other_channel` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str or int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Other Channel** - - C Attribute: **NISCOPE_ATTR_MEAS_OTHER_CHANNEL** - -meas_percentage_method ----------------------- - - .. py:attribute:: meas_percentage_method - - Specifies the method used to map percentage reference units to voltages for the reference. Possible values are: - :py:data:`~niscope.NISCOPE_VAL_MEAS_LOW_HIGH` - :py:data:`~niscope.NISCOPE_VAL_MEAS_MIN_MAX` - :py:data:`~niscope.NISCOPE_VAL_MEAS_BASE_TOP` - Default: :py:data:`~niscope.NISCOPE_VAL_MEAS_BASE_TOP` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_percentage_method` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_percentage_method` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.PercentageMethod | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | channels | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Reference Levels:Percentage Units Method** - - C Attribute: **NISCOPE_ATTR_MEAS_PERCENTAGE_METHOD** - -meas_polynomial_interpolation_order ------------------------------------ - - .. py:attribute:: meas_polynomial_interpolation_order - - Specifies the polynomial order used for the polynomial interpolation measurement. For example, an order of 1 is linear interpolation whereas an order of 2 specifies parabolic interpolation. Any positive integer is valid. - Default: 1 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_polynomial_interpolation_order` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_polynomial_interpolation_order` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Interpolation:Polynomial Interpolation Order** - - C Attribute: **NISCOPE_ATTR_MEAS_POLYNOMIAL_INTERPOLATION_ORDER** - -meas_ref_level_units --------------------- - - .. py:attribute:: meas_ref_level_units - - Specifies the units of the reference levels. - :py:data:`~niscope.NISCOPE_VAL_MEAS_VOLTAGE`--Specifies that the reference levels are given in units of volts - :py:data:`~niscope.NISCOPE_VAL_MEAS_PERCENTAGE`--Percentage units, where the measurements voltage low and voltage high represent 0% and 100%, respectively. - Default: :py:data:`~niscope.NISCOPE_VAL_MEAS_PERCENTAGE` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_ref_level_units` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_ref_level_units` - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | enums.RefLevelUnits | - +-----------------------+---------------------+ - | Permissions | read-write | - +-----------------------+---------------------+ - | Repeated Capabilities | channels | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Reference Levels:Units** - - C Attribute: **NISCOPE_ATTR_MEAS_REF_LEVEL_UNITS** - -meas_time_histogram_high_time ------------------------------ - - .. py:attribute:: meas_time_histogram_high_time - - Specifies the highest time value included in the multiple acquisition time histogram. The units are always seconds. - Default: 5.0e-4 seconds - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_time` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_high_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Time Histogram:High Time** - - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_HIGH_TIME** - -meas_time_histogram_high_volts ------------------------------- - - .. py:attribute:: meas_time_histogram_high_volts - - Specifies the highest voltage value included in the multiple-acquisition time histogram. The units are always volts. - Default: 10.0 V - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_high_volts` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Time Histogram:High Volts** - - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_HIGH_VOLTS** - -meas_time_histogram_low_time ----------------------------- - - .. py:attribute:: meas_time_histogram_low_time - - Specifies the lowest time value included in the multiple-acquisition time histogram. The units are always seconds. - Default: -5.0e-4 seconds - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_time` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_low_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Time Histogram:Low Time** - - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_LOW_TIME** - -meas_time_histogram_low_volts ------------------------------ - - .. py:attribute:: meas_time_histogram_low_volts - - Specifies the lowest voltage value included in the multiple acquisition time histogram. The units are always volts. - Default: -10.0 V - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_low_volts` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Time Histogram:Low Volts** - - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_LOW_VOLTS** - -meas_time_histogram_size ------------------------- - - .. py:attribute:: meas_time_histogram_size - - Determines the multiple acquisition voltage histogram size. The size is set during the first call to a time histogram measurement after clearing the measurement history with :py:meth:`niscope.Session.clear_waveform_measurement_stats`. - Default: 256 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_size` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_size` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Time Histogram:Size** - - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_SIZE** - -meas_voltage_histogram_high_volts ---------------------------------- - - .. py:attribute:: meas_voltage_histogram_high_volts - - Specifies the highest voltage value included in the multiple acquisition voltage histogram. The units are always volts. - Default: 10.0 V - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_high_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_voltage_histogram_high_volts` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Voltage Histogram:High Volts** - - C Attribute: **NISCOPE_ATTR_MEAS_VOLTAGE_HISTOGRAM_HIGH_VOLTS** - -meas_voltage_histogram_low_volts --------------------------------- - - .. py:attribute:: meas_voltage_histogram_low_volts - - Specifies the lowest voltage value included in the multiple-acquisition voltage histogram. The units are always volts. - Default: -10.0 V - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_low_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_voltage_histogram_low_volts` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Voltage Histogram:Low Volts** - - C Attribute: **NISCOPE_ATTR_MEAS_VOLTAGE_HISTOGRAM_LOW_VOLTS** - -meas_voltage_histogram_size ---------------------------- - - .. py:attribute:: meas_voltage_histogram_size - - Determines the multiple acquisition voltage histogram size. The size is set the first time a voltage histogram measurement is called after clearing the measurement history with the method :py:meth:`niscope.Session.clear_waveform_measurement_stats`. - Default: 256 - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_size` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_voltage_histogram_size` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Waveform Measurement:Voltage Histogram:Size** - - C Attribute: **NISCOPE_ATTR_MEAS_VOLTAGE_HISTOGRAM_SIZE** - -min_sample_rate ---------------- - - .. py:attribute:: min_sample_rate - - Specify the sampling rate for the acquisition in Samples per second. - Valid Values: - The combination of sampling rate and min record length must allow the digitizer to sample at a valid sampling rate for the acquisition type specified in :py:meth:`niscope.Session.ConfigureAcquisition` and not require more memory than the onboard memory module allows. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Min Sample Rate** - - C Attribute: **NISCOPE_ATTR_MIN_SAMPLE_RATE** - -onboard_memory_size -------------------- - - .. py:attribute:: onboard_memory_size - - Returns the total combined amount of onboard memory for all channels in bytes. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].onboard_memory_size` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.onboard_memory_size` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | int | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Memory Size** - - C Attribute: **NISCOPE_ATTR_ONBOARD_MEMORY_SIZE** - -output_clock_source -------------------- - - .. py:attribute:: output_clock_source - - Specifies the output source for the 10 MHz clock to which another digitizer's sample clock can be phased-locked. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Output Clock Source** - - C Attribute: **NISCOPE_ATTR_OUTPUT_CLOCK_SOURCE** - -pll_lock_status ---------------- - - .. py:attribute:: pll_lock_status - - If TRUE, the PLL has remained locked to the external reference clock since it was last checked. If FALSE, the PLL has become unlocked from the external reference clock since it was last checked. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].pll_lock_status` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.pll_lock_status` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | bool | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:PLL Lock Status** - - C Attribute: **NISCOPE_ATTR_PLL_LOCK_STATUS** - -points_done ------------ - - .. py:attribute:: points_done - - Actual number of samples acquired in the record specified by :py:attr:`niscope.Session.fetch_record_number` from the :py:attr:`niscope.Session.fetch_relative_to` and :py:attr:`niscope.Session.fetch_offset` properties. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Fetch:Points Done** - - C Attribute: **NISCOPE_ATTR_POINTS_DONE** - -poll_interval -------------- - - .. py:attribute:: poll_interval - - Specifies the poll interval in milliseconds to use during RIS acquisitions to check whether the acquisition is complete. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_POLL_INTERVAL** - -probe_attenuation ------------------ - - .. py:attribute:: probe_attenuation - - Specifies the probe attenuation for the input channel. For example, for a 10:1 probe, set this property to 10.0. - Valid Values: - Any positive real number. Typical values are 1, 10, and 100. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].probe_attenuation` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.probe_attenuation` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Probe Attenuation** - - C Attribute: **NISCOPE_ATTR_PROBE_ATTENUATION** - -ready_for_advance_event_output_terminal ---------------------------------------- - - .. py:attribute:: ready_for_advance_event_output_terminal - - Specifies the destination for the Ready for Advance Event. When this event is asserted, the digitizer is ready to receive an advance trigger. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Ready for Advance:Output Terminal** - - C Attribute: **NISCOPE_ATTR_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL** - -ready_for_advance_event_terminal_name -------------------------------------- - - .. py:attribute:: ready_for_advance_event_terminal_name - - Returns the fully qualified name for the Ready for Advance Event terminal. You can use this terminal as the source for a trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Ready for Advance:Terminal Name** - - C Attribute: **NISCOPE_ATTR_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME** - -ready_for_ref_event_output_terminal ------------------------------------ - - .. py:attribute:: ready_for_ref_event_output_terminal - - Specifies the destination for the Ready for Reference Event. When this event is asserted, the digitizer is ready to receive a reference trigger. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Ready for Reference:Output Terminal** - - C Attribute: **NISCOPE_ATTR_READY_FOR_REF_EVENT_OUTPUT_TERMINAL** - -ready_for_ref_event_terminal_name ---------------------------------- - - .. py:attribute:: ready_for_ref_event_terminal_name - - Returns the fully qualified name for the Ready for Reference Event terminal. You can use this terminal as the source for a trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Ready for Reference:Terminal Name** - - C Attribute: **NISCOPE_ATTR_READY_FOR_REF_EVENT_TERMINAL_NAME** - -ready_for_start_event_output_terminal -------------------------------------- - - .. py:attribute:: ready_for_start_event_output_terminal - - Specifies the destination for the Ready for Start Event. When this event is asserted, the digitizer is ready to receive a start trigger. - Consult your device documentation for a specific list of valid destinations. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Ready for Start:Output Terminal** - - C Attribute: **NISCOPE_ATTR_READY_FOR_START_EVENT_OUTPUT_TERMINAL** - -ready_for_start_event_terminal_name ------------------------------------ - - .. py:attribute:: ready_for_start_event_terminal_name - - Returns the fully qualified name for the Ready for Start Event terminal. You can use this terminal as the source for a trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Ready for Start:Terminal Name** - - C Attribute: **NISCOPE_ATTR_READY_FOR_START_EVENT_TERMINAL_NAME** - -records_done ------------- - - .. py:attribute:: records_done - - Specifies the number of records that have been completely acquired. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Fetch:Records Done** - - C Attribute: **NISCOPE_ATTR_RECORDS_DONE** - -record_arm_source ------------------ - - .. py:attribute:: record_arm_source - - Specifies the record arm source. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Record Arm Source** - - C Attribute: **NISCOPE_ATTR_RECORD_ARM_SOURCE** - -ref_clk_rate ------------- - - .. py:attribute:: ref_clk_rate - - If :py:attr:`niscope.Session.input_clock_source` is an external source, this property specifies the frequency of the input, or reference clock, to which the internal sample clock timebase is synchronized. The frequency is in hertz. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Reference Clock Rate** - - C Attribute: **NISCOPE_ATTR_REF_CLK_RATE** - -ref_trigger_detector_location ------------------------------ - - .. py:attribute:: ref_trigger_detector_location - - Indicates which analog compare circuitry to use on the device. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------------+ - | Characteristic | Value | - +=======================+==================================+ - | Datatype | enums.RefTriggerDetectorLocation | - +-----------------------+----------------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Onboard Signal Processing:Ref Trigger Detection Location** - - C Attribute: **NISCOPE_ATTR_REF_TRIGGER_DETECTOR_LOCATION** - -ref_trigger_minimum_quiet_time ------------------------------- - - .. py:attribute:: ref_trigger_minimum_quiet_time - - The amount of time the trigger circuit must not detect a signal above the trigger level before the trigger is armed. This property is useful for triggering at the beginning and not in the middle of signal bursts. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Onboard Signal Processing:Ref Trigger Min Quiet Time** - - C Attribute: **NISCOPE_ATTR_REF_TRIGGER_MINIMUM_QUIET_TIME** - -ref_trigger_terminal_name -------------------------- - - .. py:attribute:: ref_trigger_terminal_name - - Returns the fully qualified name for the Reference Trigger terminal. You can use this terminal as the source for another trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Terminal Name** - - C Attribute: **NISCOPE_ATTR_REF_TRIGGER_TERMINAL_NAME** - -ref_trig_tdc_enable -------------------- - - .. py:attribute:: ref_trig_tdc_enable - - This property controls whether the TDC is used to compute an accurate trigger. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:Advanced:Enable TDC** - - C Attribute: **NISCOPE_ATTR_REF_TRIG_TDC_ENABLE** - -resolution ----------- - - .. py:attribute:: resolution - - Indicates the bit width of valid data (as opposed to padding bits) in the acquired waveform. Compare to :py:attr:`niscope.Session.binary_sample_width`. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Resolution** - - C Attribute: **NISCOPE_ATTR_RESOLUTION** - -ris_in_auto_setup_enable ------------------------- - - .. py:attribute:: ris_in_auto_setup_enable - - Indicates whether the digitizer should use RIS sample rates when searching for a frequency in autosetup. - Valid Values: - True (1) - Use RIS sample rates in autosetup - False (0) - Do not use RIS sample rates in autosetup - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Advanced:Enable RIS in Auto Setup** - - C Attribute: **NISCOPE_ATTR_RIS_IN_AUTO_SETUP_ENABLE** - -ris_method ----------- - - .. py:attribute:: ris_method - - Specifies the algorithm for random-interleaved sampling, which is used if the sample rate exceeds the value of :py:attr:`niscope.Session.max_real_time_sampling_rate`. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------+ - | Characteristic | Value | - +=======================+=================+ - | Datatype | enums.RISMethod | - +-----------------------+-----------------+ - | Permissions | read-write | - +-----------------------+-----------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:RIS Method** - - C Attribute: **NISCOPE_ATTR_RIS_METHOD** - -ris_num_averages ----------------- - - .. py:attribute:: ris_num_averages - - The number of averages for each bin in an RIS acquisition. The number of averages times the oversampling factor is the minimum number of real-time acquisitions necessary to reconstruct the RIS waveform. Averaging is useful in RIS because the trigger times are not evenly spaced, so adjacent points in the reconstructed waveform not be accurately spaced. By averaging, the errors in both time and voltage are smoothed. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Horizontal:RIS Num Avg** - - C Attribute: **NISCOPE_ATTR_RIS_NUM_AVERAGES** - -runt_high_threshold -------------------- - - .. py:attribute:: runt_high_threshold - - Specifies the higher of two thresholds, in volts, that bound the vertical range to examine for runt pulses. - - The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the :py:attr:`niscope.Session.runt_polarity` property for more information. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_RUNT_HIGH_THRESHOLD** - -runt_low_threshold ------------------- - - .. py:attribute:: runt_low_threshold - - Specifies the lower of two thresholds, in volts, that bound the vertical range to examine for runt pulses. - - The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the :py:attr:`niscope.Session.runt_polarity` property for more information. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_RUNT_LOW_THRESHOLD** - -runt_polarity -------------- - - .. py:attribute:: runt_polarity - - Specifies the polarity of pulses that trigger the oscilloscope for runt triggering. - - When set to :py:data:`~niscope.RuntPolarity.POSITIVE`, the oscilloscope triggers when the following conditions are met: - * The leading edge of a pulse crosses the :py:attr:`niscope.Session.runt_low_threshold` in a positive direction; - * The trailing edge of the pulse crosses the :py:attr:`niscope.Session.runt_low_threshold` in a negative direction; and - * No portion of the pulse crosses the :py:attr:`niscope.Session.runt_high_threshold`. - - When set to :py:data:`~niscope.RuntPolarity.NEGATIVE`, the oscilloscope triggers when the following conditions are met: - * The leading edge of a pulse crosses the :py:attr:`niscope.Session.runt_high_threshold` in a negative direction; - * The trailing edge of the pulse crosses the :py:attr:`niscope.Session.runt_high_threshold` in a positive direction; and - * No portion of the pulse crosses the :py:attr:`niscope.Session.runt_low_threshold`. - - When set to :py:data:`~niscope.RuntPolarity.EITHER`, the oscilloscope triggers in either case. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------+ - | Characteristic | Value | - +=======================+====================+ - | Datatype | enums.RuntPolarity | - +-----------------------+--------------------+ - | Permissions | read-write | - +-----------------------+--------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_RUNT_POLARITY** - -runt_time_condition -------------------- - - .. py:attribute:: runt_time_condition - - Specifies whether runt triggers are time qualified, and if so, how the oscilloscope triggers in relation to the duration range bounded by the :py:attr:`niscope.Session.runt_time_low_limit` and :py:attr:`niscope.Session.runt_time_high_limit` properties. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.RuntTimeCondition | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_RUNT_TIME_CONDITION** - -runt_time_high_limit --------------------- - - .. py:attribute:: runt_time_high_limit - - Specifies, in seconds, the high runt threshold time. - - This property sets the upper bound on the duration of runt pulses that may trigger the oscilloscope. The :py:attr:`niscope.Session.runt_time_condition` property determines how the oscilloscope triggers in relation to the runt time limits. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_RUNT_TIME_HIGH_LIMIT** - -runt_time_low_limit -------------------- - - .. py:attribute:: runt_time_low_limit - - Specifies, in seconds, the low runt threshold time. - - This property sets the lower bound on the duration of runt pulses that may trigger the oscilloscope. The :py:attr:`niscope.Session.runt_time_condition` property determines how the oscilloscope triggers in relation to the runt time limits. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_RUNT_TIME_LOW_LIMIT** - -sample_mode ------------ - - .. py:attribute:: sample_mode - - Indicates the sample mode the digitizer is currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Acquisition:Sample Mode** - - C Attribute: **NISCOPE_ATTR_SAMPLE_MODE** - -samp_clk_timebase_div ---------------------- - - .. py:attribute:: samp_clk_timebase_div - - If :py:attr:`niscope.Session.samp_clk_timebase_src` is an external source, specifies the ratio between the sample clock timebase rate and the actual sample rate, which can be slower. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Sample Clock Timebase Divisor** - - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_DIV** - -sample_clock_timebase_multiplier --------------------------------- - - .. py:attribute:: sample_clock_timebase_multiplier - - If :py:attr:`niscope.Session.samp_clk_timebase_src` is an external source, this property specifies the ratio between the :py:attr:`niscope.Session.samp_clk_timebase_rate` and the actual sample rate, which can be higher. This property can be used in conjunction with :py:attr:`niscope.Session.samp_clk_timebase_div`. - Some devices use multiple ADCs to sample the same channel at an effective sample rate that is greater than the specified clock rate. When providing an external sample clock use this property to indicate when you want a higher sample rate. Valid values for this property vary by device and current configuration. - - **Related topics:** - `Sample Clock `__ - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_MULT** - -samp_clk_timebase_rate ----------------------- - - .. py:attribute:: samp_clk_timebase_rate - - If :py:attr:`niscope.Session.samp_clk_timebase_src` is an external source, specifies the frequency in hertz of the external clock used as the timebase source. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Sample Clock Timebase Rate** - - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_RATE** - -samp_clk_timebase_src ---------------------- - - .. py:attribute:: samp_clk_timebase_src - - Specifies the source of the sample clock timebase, which is the timebase used to control waveform sampling. The actual sample rate may be the timebase itself or a divided version of the timebase, depending on the :py:attr:`niscope.Session.min_sample_rate` (for internal sources) or the :py:attr:`niscope.Session.samp_clk_timebase_div` (for external sources). - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Clocking:Sample Clock Timebase Source** - - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_SRC** - -serial_number -------------- - - .. py:attribute:: serial_number - - Returns the serial number of the device. - - - - - .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].serial_number` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.serial_number` - - The following table lists the characteristics of this property. - - +-----------------------+-------------+ - | Characteristic | Value | - +=======================+=============+ - | Datatype | str | - +-----------------------+-------------+ - | Permissions | read only | - +-----------------------+-------------+ - | Repeated Capabilities | instruments | - +-----------------------+-------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Device:Serial Number** - - C Attribute: **NISCOPE_ATTR_SERIAL_NUMBER** - -accessory_gain --------------- - - .. py:attribute:: accessory_gain - - Returns the calibration gain for the current device configuration. - - **Related topics:** - `NI 5122/5124/5142 Calibration `__ - - - - .. note:: This property is supported only by the NI PXI-5900 differential amplifier. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].accessory_gain` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.accessory_gain` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_SIGNAL_COND_GAIN** - -accessory_offset ----------------- - - .. py:attribute:: accessory_offset - - Returns the calibration offset for the current device configuration. - - **Related topics:** - `NI 5122/5124/5142 Calibration `__ - - - - .. note:: This property is supported only by the NI PXI-5900 differential amplifier. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].accessory_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.accessory_offset` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_SIGNAL_COND_OFFSET** - -simulate --------- - - .. py:attribute:: simulate - - Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. - The default value is False. Use the :py:meth:`niscope.Session.__init__` method to override this value. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** - - C Attribute: **NISCOPE_ATTR_SIMULATE** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - A string that contains a brief description of the specific driver - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** - - C Attribute: **NISCOPE_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - A string that contains additional version information about this instrument driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** - - C Attribute: **NISCOPE_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - A string that contains the name of the vendor that supplies this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** - - C Attribute: **NISCOPE_ATTR_SPECIFIC_DRIVER_VENDOR** - -start_to_ref_trigger_holdoff ----------------------------- - - .. py:attribute:: start_to_ref_trigger_holdoff - - Pass the length of time you want the digitizer to wait after it starts acquiring data until the digitizer enables the trigger system to detect a reference (stop) trigger. - Units: Seconds - Valid Values: 0.0 - 171.8 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Start To Ref Trigger Holdoff** - - C Attribute: **NISCOPE_ATTR_START_TO_REF_TRIGGER_HOLDOFF** - -start_trigger_terminal_name ---------------------------- - - .. py:attribute:: start_trigger_terminal_name - - Returns the fully qualified name for the Start Trigger terminal. You can use this terminal as the source for another trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Synchronization:Start Trigger (Acq. Arm):Terminal Name** - - C Attribute: **NISCOPE_ATTR_START_TRIGGER_TERMINAL_NAME** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - A string that contains a comma-separated list of the instrument model numbers supported by this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** - - C Attribute: **NISCOPE_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -trigger_auto_triggered ----------------------- - - .. py:attribute:: trigger_auto_triggered - - Specifies if the last acquisition was auto triggered. You can use the Auto Triggered property to find out if the last acquisition was triggered. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Auto Triggered** - - C Attribute: **NISCOPE_ATTR_TRIGGER_AUTO_TRIGGERED** - -trigger_coupling ----------------- - - .. py:attribute:: trigger_coupling - - Specifies how the digitizer couples the trigger source. This property affects instrument operation only when :py:attr:`niscope.Session.trigger_type` is set to :py:data:`~niscope.TriggerType.EDGE`, :py:data:`~niscope.TriggerType.HYSTERESIS`, or :py:data:`~niscope.TriggerType.WINDOW`. - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.TriggerCoupling | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Coupling** - - C Attribute: **NISCOPE_ATTR_TRIGGER_COUPLING** - -trigger_delay_time ------------------- - - .. py:attribute:: trigger_delay_time - - Specifies the trigger delay time in seconds. The trigger delay time is the length of time the digitizer waits after it receives the trigger. The event that occurs when the trigger delay elapses is the Reference Event. - Valid Values: 0.0 - 171.8 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Delay** - - C Attribute: **NISCOPE_ATTR_TRIGGER_DELAY_TIME** - -trigger_holdoff ---------------- - - .. py:attribute:: trigger_holdoff - - Specifies the length of time (in seconds) the digitizer waits after detecting a trigger before enabling the trigger subsystem to detect another trigger. This property affects instrument operation only when the digitizer requires multiple acquisitions to build a complete waveform. The digitizer requires multiple waveform acquisitions when it uses equivalent-time sampling or when the digitizer is configured for a multi-record acquisition through a call to :py:meth:`niscope.Session.configure_horizontal_timing`. - Valid Values: 0.0 - 171.8 - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Holdoff** - - C Attribute: **NISCOPE_ATTR_TRIGGER_HOLDOFF** - -trigger_hysteresis ------------------- - - .. py:attribute:: trigger_hysteresis - - Specifies the size of the hysteresis window on either side of the trigger level. The digitizer triggers when the trigger signal passes through the threshold you specify with the Trigger Level parameter, has the slope you specify with the Trigger Slope parameter, and passes through the hysteresis window that you specify with this parameter. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Hysteresis** - - C Attribute: **NISCOPE_ATTR_TRIGGER_HYSTERESIS** - -trigger_impedance ------------------ - - .. py:attribute:: trigger_impedance - - Specifies the input impedance for the external analog trigger channel in Ohms. - Valid Values: - 50 - 50 ohms - 1000000 - 1 mega ohm - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Impedance** - - C Attribute: **NISCOPE_ATTR_TRIGGER_IMPEDANCE** - -trigger_level -------------- - - .. py:attribute:: trigger_level - - Specifies the voltage threshold for the trigger subsystem. The units are volts. This property affects instrument behavior only when the :py:attr:`niscope.Session.trigger_type` is set to :py:data:`~niscope.TriggerType.EDGE`, :py:data:`~niscope.TriggerType.HYSTERESIS`, or :py:data:`~niscope.TriggerType.WINDOW`. - Valid Values: - The values of the range and offset parameters in :py:meth:`niscope.Session.configure_vertical` determine the valid range for the trigger level on the channel you use as the Trigger Source. The value you pass for this parameter must meet the following conditions: - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Level** - - C Attribute: **NISCOPE_ATTR_TRIGGER_LEVEL** - -trigger_modifier ----------------- - - .. py:attribute:: trigger_modifier - - Configures the device to automatically complete an acquisition if a trigger has not been received. - Valid Values: - None (1) - Normal triggering - Auto Trigger (2) - Auto trigger acquisition if no trigger arrives - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------+ - | Characteristic | Value | - +=======================+=======================+ - | Datatype | enums.TriggerModifier | - +-----------------------+-----------------------+ - | Permissions | read-write | - +-----------------------+-----------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Modifier** - - C Attribute: **NISCOPE_ATTR_TRIGGER_MODIFIER** - -trigger_slope -------------- - - .. py:attribute:: trigger_slope - - Specifies if a rising or a falling edge triggers the digitizer. This property affects instrument operation only when :py:attr:`niscope.Session.trigger_type` is set to :py:data:`~niscope.TriggerType.EDGE`, :py:data:`~niscope.TriggerType.HYSTERESIS`, or :py:data:`~niscope.TriggerType.WINDOW`. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------+ - | Characteristic | Value | - +=======================+====================+ - | Datatype | enums.TriggerSlope | - +-----------------------+--------------------+ - | Permissions | read-write | - +-----------------------+--------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Slope** - - C Attribute: **NISCOPE_ATTR_TRIGGER_SLOPE** - -trigger_source --------------- - - .. py:attribute:: trigger_source - - Specifies the source the digitizer monitors for the trigger event. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Source** - - C Attribute: **NISCOPE_ATTR_TRIGGER_SOURCE** - -trigger_type ------------- - - .. py:attribute:: trigger_type - - Specifies the type of trigger to use. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------+ - | Characteristic | Value | - +=======================+===================+ - | Datatype | enums.TriggerType | - +-----------------------+-------------------+ - | Permissions | read-write | - +-----------------------+-------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Type** - - C Attribute: **NISCOPE_ATTR_TRIGGER_TYPE** - -trigger_window_high_level -------------------------- - - .. py:attribute:: trigger_window_high_level - - Pass the upper voltage threshold you want the digitizer to use for window triggering. - The digitizer triggers when the trigger signal enters or leaves the window you specify with :py:attr:`niscope.Session.trigger_window_low_level` and :py:attr:`niscope.Session.trigger_window_high_level` - Valid Values: - The values of the Vertical Range and Vertical Offset parameters in :py:meth:`niscope.Session.configure_vertical` determine the valid range for the High Window Level on the channel you use as the Trigger Source parameter in :py:meth:`niscope.Session.ConfigureTriggerSource`. The value you pass for this parameter must meet the following conditions. - High Trigger Level <= Vertical Range/2 + Vertical Offset - High Trigger Level >= (-Vertical Range/2) + Vertical Offset - High Trigger Level > Low Trigger Level - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Window:High Level** - - C Attribute: **NISCOPE_ATTR_TRIGGER_WINDOW_HIGH_LEVEL** - -trigger_window_low_level ------------------------- - - .. py:attribute:: trigger_window_low_level - - Pass the lower voltage threshold you want the digitizer to use for window triggering. - The digitizer triggers when the trigger signal enters or leaves the window you specify with :py:attr:`niscope.Session.trigger_window_low_level` and :py:attr:`niscope.Session.trigger_window_high_level`. - Units: Volts - Valid Values: - The values of the Vertical Range and Vertical Offset parameters in :py:meth:`niscope.Session.configure_vertical` determine the valid range for the Low Window Level on the channel you use as the Trigger Source parameter in :py:meth:`niscope.Session.ConfigureTriggerSource`. The value you pass for this parameter must meet the following conditions. - Low Trigger Level <= Vertical Range/2 + Vertical Offset - Low Trigger Level >= (-Vertical Range/2) + Vertical Offset - Low Trigger Level < High Trigger Level - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Window:Low Level** - - C Attribute: **NISCOPE_ATTR_TRIGGER_WINDOW_LOW_LEVEL** - -trigger_window_mode -------------------- - - .. py:attribute:: trigger_window_mode - - Specifies whether you want a trigger to occur when the signal enters or leaves the window specified by :py:attr:`niscope.Session.trigger_window_low_level`, or :py:attr:`niscope.Session.trigger_window_high_level`. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.TriggerWindowMode | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Window:Window Mode** - - C Attribute: **NISCOPE_ATTR_TRIGGER_WINDOW_MODE** - -tv_trigger_event ----------------- - - .. py:attribute:: tv_trigger_event - - Specifies the condition in the video signal that causes the digitizer to trigger. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.VideoTriggerEvent | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Video:Event** - - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_EVENT** - -tv_trigger_line_number ----------------------- - - .. py:attribute:: tv_trigger_line_number - - Specifies the line on which to trigger, if :py:attr:`niscope.Session.tv_trigger_event` is set to line number. The valid ranges of the property depend on the signal format selected. M-NTSC has a valid range of 1 to 525. B/G-PAL, SECAM, 576i, and 576p have a valid range of 1 to 625. 720p has a valid range of 1 to 750. 1080i and 1080p have a valid range of 1125. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | int | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Video:Line Number** - - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_LINE_NUMBER** - -tv_trigger_polarity -------------------- - - .. py:attribute:: tv_trigger_polarity - - Specifies whether the video signal sync is positive or negative. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | enums.VideoPolarity | - +-----------------------+---------------------+ - | Permissions | read-write | - +-----------------------+---------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Video:Polarity** - - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_POLARITY** - -tv_trigger_signal_format ------------------------- - - .. py:attribute:: tv_trigger_signal_format - - Specifies the type of video signal, such as NTSC, PAL, or SECAM. - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------+ - | Characteristic | Value | - +=======================+=========================+ - | Datatype | enums.VideoSignalFormat | - +-----------------------+-------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Triggering:Trigger Video:Signal Format** - - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_SIGNAL_FORMAT** - -use_spec_initial_x ------------------- - - .. py:attribute:: use_spec_initial_x - - - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_USE_SPEC_INITIAL_X** - -vertical_coupling ------------------ - - .. py:attribute:: vertical_coupling - - Specifies how the digitizer couples the input signal for the channel. When input coupling changes, the input stage takes a finite amount of time to settle. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vertical_coupling` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.vertical_coupling` - - The following table lists the characteristics of this property. - - +-----------------------+------------------------+ - | Characteristic | Value | - +=======================+========================+ - | Datatype | enums.VerticalCoupling | - +-----------------------+------------------------+ - | Permissions | read-write | - +-----------------------+------------------------+ - | Repeated Capabilities | channels | - +-----------------------+------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Vertical Coupling** - - C Attribute: **NISCOPE_ATTR_VERTICAL_COUPLING** - -vertical_offset ---------------- - - .. py:attribute:: vertical_offset - - Specifies the location of the center of the range. The value is with respect to ground and is in volts. For example, to acquire a sine wave that spans between 0.0 and 10.0 V, set this property to 5.0 V. - - - - .. note:: This property is not supported by all digitizers.Refer to the NI High-Speed Digitizers Help for a list of vertical offsets supported for each device. - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vertical_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.vertical_offset` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Vertical Offset** - - C Attribute: **NISCOPE_ATTR_VERTICAL_OFFSET** - -vertical_range --------------- - - .. py:attribute:: vertical_range - - Specifies the absolute value of the input range for a channel in volts. For example, to acquire a sine wave that spans between -5 and +5 V, set this property to 10.0 V. - Refer to the NI High-Speed Digitizers Help for a list of supported vertical ranges for each device. If the specified range is not supported by a device, the value is coerced up to the next valid range. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vertical_range` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.vertical_range` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Vertical:Vertical Range** - - C Attribute: **NISCOPE_ATTR_VERTICAL_RANGE** - -width_condition ---------------- - - .. py:attribute:: width_condition - - Specifies whether the oscilloscope triggers on pulses within or outside the duration range bounded by the :py:attr:`niscope.Session.width_low_threshold` and :py:attr:`niscope.Session.width_high_threshold` properties. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------+ - | Characteristic | Value | - +=======================+======================+ - | Datatype | enums.WidthCondition | - +-----------------------+----------------------+ - | Permissions | read-write | - +-----------------------+----------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_WIDTH_CONDITION** - -width_high_threshold --------------------- - - .. py:attribute:: width_high_threshold - - Specifies the high width threshold, in seconds. - - This properties sets the upper bound on the duration range that triggers the oscilloscope. The :py:attr:`niscope.Session.width_condition` property determines how the oscilloscope triggers in relation to the width thresholds. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_WIDTH_HIGH_THRESHOLD** - -width_low_threshold -------------------- - - .. py:attribute:: width_low_threshold - - Specifies the low width threshold, in seconds. - - This property sets the lower bound on the duration range that triggers the oscilloscope. The :py:attr:`niscope.Session.width_condition` property determines how the oscilloscope triggers in relation to the width thresholds. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | float | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_WIDTH_LOW_THRESHOLD** - -width_polarity --------------- - - .. py:attribute:: width_polarity - - Specifies the polarity of pulses that trigger the oscilloscope for width triggering. - - The following table lists the characteristics of this property. - - +-----------------------+---------------------+ - | Characteristic | Value | - +=======================+=====================+ - | Datatype | enums.WidthPolarity | - +-----------------------+---------------------+ - | Permissions | read-write | - +-----------------------+---------------------+ - | Repeated Capabilities | None | - +-----------------------+---------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - C Attribute: **NISCOPE_ATTR_WIDTH_POLARITY** - - -NI-TClk Support -=============== - - .. py:attribute:: tclk - - This is used to get and set NI-TClk attributes on the session. - - .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. - - -.. contents:: Session diff --git a/docs/niscope/conf.py b/docs/niscope/conf.py deleted file mode 100644 index 6d27c59cda..0000000000 --- a/docs/niscope/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-SCOPE Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-SCOPE Python API' -copyright = '2017-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NISCOPEPythonAPI.tex', 'NI-SCOPE Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'niscopepythonapi', 'NI-SCOPE Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NISCOPEPythonAPI', 'NI-SCOPE Python API Documentation', - author, 'NISCOPEPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/niscope/enums.rst b/docs/niscope/enums.rst deleted file mode 100644 index c0458089ac..0000000000 --- a/docs/niscope/enums.rst +++ /dev/null @@ -1,1946 +0,0 @@ -Enums -===== - -Enums used in NI-SCOPE - -.. py:currentmodule:: niscope - - -AcquisitionStatus ------------------ - -.. py:class:: AcquisitionStatus - - .. py:attribute:: AcquisitionStatus.COMPLETE - - - - .. py:attribute:: AcquisitionStatus.IN_PROGRESS - - - - .. py:attribute:: AcquisitionStatus.STATUS_UNKNOWN - - - -AcquisitionType ---------------- - -.. py:class:: AcquisitionType - - .. py:attribute:: AcquisitionType.NORMAL - - - - Sets the digitizer to normal resolution mode. The digitizer can use real-time sampling or equivalent-time sampling. - - - - - - .. py:attribute:: AcquisitionType.FLEXRES - - - - Sets the digitizer to flexible resolution mode if supported. The digitizer uses different hardware configurations to change the resolution depending on the sampling rate used. - - - - - - .. py:attribute:: AcquisitionType.DDC - - - - Sets the digitizer to DDC mode on the NI 5620/5621. - - - - - -ArrayMeasurement ----------------- - -.. py:class:: ArrayMeasurement - - .. py:attribute:: ArrayMeasurement.NO_MEASUREMENT - - - - None - - - - - - .. py:attribute:: ArrayMeasurement.LAST_ACQ_HISTOGRAM - - - - Last Acquisition Histogram - - - - - - .. py:attribute:: ArrayMeasurement.FFT_PHASE_SPECTRUM - - - - FFT Phase Spectrum - - - - - - .. py:attribute:: ArrayMeasurement.FFT_AMP_SPECTRUM_VOLTS_RMS - - - - FFT Amp. Spectrum (Volts RMS) - - - - - - .. py:attribute:: ArrayMeasurement.MULTI_ACQ_VOLTAGE_HISTOGRAM - - - - Multi Acquisition Voltage Histogram - - - - - - .. py:attribute:: ArrayMeasurement.MULTI_ACQ_TIME_HISTOGRAM - - - - Multi Acquisition Time Histogram - - - - - - .. py:attribute:: ArrayMeasurement.ARRAY_INTEGRAL - - - - Array Integral - - - - - - .. py:attribute:: ArrayMeasurement.DERIVATIVE - - - - Derivative - - - - - - .. py:attribute:: ArrayMeasurement.INVERSE - - - - Inverse - - - - - - .. py:attribute:: ArrayMeasurement.HANNING_WINDOW - - - - Hanning Window - - - - - - .. py:attribute:: ArrayMeasurement.FLAT_TOP_WINDOW - - - - Flat Top Window - - - - - - .. py:attribute:: ArrayMeasurement.POLYNOMIAL_INTERPOLATION - - - - Polynomial Interpolation - - - - - - .. py:attribute:: ArrayMeasurement.MULTIPLY_CHANNELS - - - - Multiply Channels - - - - - - .. py:attribute:: ArrayMeasurement.ADD_CHANNELS - - - - Add Channels - - - - - - .. py:attribute:: ArrayMeasurement.SUBTRACT_CHANNELS - - - - Subtract Channels - - - - - - .. py:attribute:: ArrayMeasurement.DIVIDE_CHANNELS - - - - Divide Channels - - - - - - .. py:attribute:: ArrayMeasurement.MULTI_ACQ_AVERAGE - - - - Multi Acquisition Average - - - - - - .. py:attribute:: ArrayMeasurement.BUTTERWORTH_FILTER - - - - Butterworth IIR Filter - - - - - - .. py:attribute:: ArrayMeasurement.CHEBYSHEV_FILTER - - - - Chebyshev IIR Filter - - - - - - .. py:attribute:: ArrayMeasurement.FFT_AMP_SPECTRUM_DB - - - - FFT Amp. Spectrum (dB) - - - - - - .. py:attribute:: ArrayMeasurement.HAMMING_WINDOW - - - - Hamming Window - - - - - - .. py:attribute:: ArrayMeasurement.WINDOWED_FIR_FILTER - - - - FIR Windowed Filter - - - - - - .. py:attribute:: ArrayMeasurement.BESSEL_FILTER - - - - Bessel IIR Filter - - - - - - .. py:attribute:: ArrayMeasurement.TRIANGLE_WINDOW - - - - Triangle Window - - - - - - .. py:attribute:: ArrayMeasurement.BLACKMAN_WINDOW - - - - Blackman Window - - - - - - .. py:attribute:: ArrayMeasurement.ARRAY_OFFSET - - - - Array Offset - - - - - - .. py:attribute:: ArrayMeasurement.ARRAY_GAIN - - - - Array Gain - - - - - -CableSenseMode --------------- - -.. py:class:: CableSenseMode - - .. py:attribute:: CableSenseMode.DISABLED - - - - The oscilloscope is not configured to emit a CableSense signal. - - - - - - .. py:attribute:: CableSenseMode.ON_DEMAND - - - - The oscilloscope is configured to emit a single CableSense pulse. - - - - - -ClearableMeasurement --------------------- - -.. py:class:: ClearableMeasurement - - .. py:attribute:: ClearableMeasurement.ALL_MEASUREMENTS - - - - .. py:attribute:: ClearableMeasurement.MULTI_ACQ_VOLTAGE_HISTOGRAM - - - - .. py:attribute:: ClearableMeasurement.MULTI_ACQ_TIME_HISTOGRAM - - - - .. py:attribute:: ClearableMeasurement.MULTI_ACQ_AVERAGE - - - - .. py:attribute:: ClearableMeasurement.FREQUENCY - - - - .. py:attribute:: ClearableMeasurement.AVERAGE_FREQUENCY - - - - .. py:attribute:: ClearableMeasurement.FFT_FREQUENCY - - - - .. py:attribute:: ClearableMeasurement.PERIOD - - - - .. py:attribute:: ClearableMeasurement.AVERAGE_PERIOD - - - - .. py:attribute:: ClearableMeasurement.RISE_TIME - - - - .. py:attribute:: ClearableMeasurement.FALL_TIME - - - - .. py:attribute:: ClearableMeasurement.RISE_SLEW_RATE - - - - .. py:attribute:: ClearableMeasurement.FALL_SLEW_RATE - - - - .. py:attribute:: ClearableMeasurement.OVERSHOOT - - - - .. py:attribute:: ClearableMeasurement.PRESHOOT - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_RMS - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_CYCLE_RMS - - - - .. py:attribute:: ClearableMeasurement.AC_ESTIMATE - - - - .. py:attribute:: ClearableMeasurement.FFT_AMPLITUDE - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_AVERAGE - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_CYCLE_AVERAGE - - - - .. py:attribute:: ClearableMeasurement.DC_ESTIMATE - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_MAX - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_MIN - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_PEAK_TO_PEAK - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HIGH - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_LOW - - - - .. py:attribute:: ClearableMeasurement.AMPLITUDE - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_TOP - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_BASE - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_BASE_TO_TOP - - - - .. py:attribute:: ClearableMeasurement.WIDTH_NEG - - - - .. py:attribute:: ClearableMeasurement.WIDTH_POS - - - - .. py:attribute:: ClearableMeasurement.DUTY_CYCLE_NEG - - - - .. py:attribute:: ClearableMeasurement.DUTY_CYCLE_POS - - - - .. py:attribute:: ClearableMeasurement.INTEGRAL - - - - .. py:attribute:: ClearableMeasurement.AREA - - - - .. py:attribute:: ClearableMeasurement.CYCLE_AREA - - - - .. py:attribute:: ClearableMeasurement.TIME_DELAY - - - - .. py:attribute:: ClearableMeasurement.PHASE_DELAY - - - - .. py:attribute:: ClearableMeasurement.LOW_REF_VOLTS - - - - .. py:attribute:: ClearableMeasurement.MID_REF_VOLTS - - - - .. py:attribute:: ClearableMeasurement.HIGH_REF_VOLTS - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_STDEV - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEDIAN - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MODE - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MAX - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MIN - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_PEAK_TO_PEAK - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN_PLUS_STDEV - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN_PLUS_2_STDEV - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN_PLUS_3_STDEV - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_HITS - - - - .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_NEW_HITS - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_STDEV - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEDIAN - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MODE - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MAX - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MIN - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_PEAK_TO_PEAK - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN_PLUS_STDEV - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN_PLUS_2_STDEV - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN_PLUS_3_STDEV - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_HITS - - - - .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_NEW_HITS - - - -FIRFilterWindow ---------------- - -.. py:class:: FIRFilterWindow - - .. py:attribute:: FIRFilterWindow.NONE - - - - No window. - - - - - - .. py:attribute:: FIRFilterWindow.HANNING - - - - Specifies a Hanning window. - - - - - - .. py:attribute:: FIRFilterWindow.FLAT_TOP - - - - Specifies a Flat Top window. - - - - - - .. py:attribute:: FIRFilterWindow.HAMMING - - - - Specifies a Hamming window. - - - - - - .. py:attribute:: FIRFilterWindow.TRIANGLE - - - - Specifies a Triangle window. - - - - - - .. py:attribute:: FIRFilterWindow.BLACKMAN - - - - Specifies a Blackman window. - - - - - -FetchRelativeTo ---------------- - -.. py:class:: FetchRelativeTo - - .. py:attribute:: FetchRelativeTo.READ_POINTER - - - - The read pointer is set to zero when a new acquisition is initiated. After every fetch the read pointer is incremeted to be the sample after the last sample retrieved. Therefore, you can repeatedly fetch relative to the read pointer for a continuous acquisition program. - - - - - - .. py:attribute:: FetchRelativeTo.PRETRIGGER - - - - Fetches relative to the first pretrigger point requested with :py:meth:`niscope.Session.configure_horizontal_timing`. - - - - - - .. py:attribute:: FetchRelativeTo.NOW - - - - Fetch data at the last sample acquired. - - - - - - .. py:attribute:: FetchRelativeTo.START - - - - Fetch data starting at the first point sampled by the digitizer. - - - - - - .. py:attribute:: FetchRelativeTo.TRIGGER - - - - Fetch at the first posttrigger sample. - - - - - -FilterType ----------- - -.. py:class:: FilterType - - .. py:attribute:: FilterType.LOWPASS - - - - Specifies lowpass as the filter type. - - - - - - .. py:attribute:: FilterType.HIGHPASS - - - - Specifies highpass as the filter type. - - - - - - .. py:attribute:: FilterType.BANDPASS - - - - Specifies bandpass as the filter type. - - - - - - .. py:attribute:: FilterType.BANDSTOP - - - - Specifies bandstop as the filter type. - - - - - -FlexFIRAntialiasFilterType --------------------------- - -.. py:class:: FlexFIRAntialiasFilterType - - .. py:attribute:: FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_STANDARD - - - - This filter is optimized for alias protection and frequency-domain flatness - - - - - - .. py:attribute:: FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_HANNING - - - - This filter is optimized for the lowest possible bandwidth for a 48 tap filter and maximizes the SNR - - - - - - .. py:attribute:: FlexFIRAntialiasFilterType.SIXTEEN_TAP_HANNING - - - - This filter is optimized for the lowest possible bandwidth for a 16 tap filter and maximizes the SNR - - - - - - .. py:attribute:: FlexFIRAntialiasFilterType.EIGHT_TAP_HANNING - - - - This filter is optimized for the lowest possible bandwidth for a 8 tap filter and maximizes the SNR - - - - - -GlitchCondition ---------------- - -.. py:class:: GlitchCondition - - .. py:attribute:: GlitchCondition.GREATER - - - - Trigger on pulses with a duration greater than the specified glitch width. - - - - - - .. py:attribute:: GlitchCondition.LESS - - - - Trigger on pulses with a duration shorter than the specified glitch width. - - - - - -GlitchPolarity --------------- - -.. py:class:: GlitchPolarity - - .. py:attribute:: GlitchPolarity.POSITIVE - - - - Trigger on pulses of positive polarity relative to the trigger threshold. - - - - - - .. py:attribute:: GlitchPolarity.NEGATIVE - - - - Trigger on pulses of negative polarity relative to the trigger threshold. - - - - - - .. py:attribute:: GlitchPolarity.EITHER - - - - Trigger on pulses of either positive or negative polarity. - - - - - -Option ------- - -.. py:class:: Option - - .. py:attribute:: Option.SELF_CALIBRATE_ALL_CHANNELS - - - - Self Calibrating all Channels - - - - - - .. py:attribute:: Option.RESTORE_EXTERNAL_CALIBRATION - - - - Restore External Calibration. - - - - - -PercentageMethod ----------------- - -.. py:class:: PercentageMethod - - .. py:attribute:: PercentageMethod.LOWHIGH - - - - Specifies that the reference level percentages should be computed using - the low/high method, - - - - - - .. py:attribute:: PercentageMethod.MINMAX - - - - Reference level percentages are computed using the min/max method. - - - - - - .. py:attribute:: PercentageMethod.BASETOP - - - - Reference level percentages are computed using the base/top method. - - - - - -RISMethod ---------- - -.. py:class:: RISMethod - - .. py:attribute:: RISMethod.EXACT_NUM_AVERAGES - - - - Acquires exactly the specified number of records for each bin in the RIS acquisition. An error is returned from the fetch method if the RIS acquisition does not successfully acquire the specified number of waveforms within the timeout period. You may call the fetch method again to allow more time for the acquisition to finish. - - - - - - .. py:attribute:: RISMethod.MIN_NUM_AVERAGES - - - - Each RIS sample is the average of a least a minimum number of randomly - distributed points. - - - - - - .. py:attribute:: RISMethod.INCOMPLETE - - - - Returns the RIS waveform after the specified timeout even if it is incomplete. If no waveforms have been acquired in certain bins, these bins will have a NaN (when fetching scaled data) or a zero (when fetching binary data). A warning (positive error code) is returned from the fetch method if the RIS acquisition did not finish. The acquisition aborts when data is returned. - - - - - - .. py:attribute:: RISMethod.LIMITED_BIN_WIDTH - - - - Limits the waveforms in the various bins to be within 200 ps of the center of the bin. - - - - - -RefLevelUnits -------------- - -.. py:class:: RefLevelUnits - - .. py:attribute:: RefLevelUnits.VOLTS - - - - Specifies that the reference levels are given in units of volts. - - - - - - .. py:attribute:: RefLevelUnits.PERCENTAGE - - - - (Default) Specifies that the reference levels are given in percentage - units. - - - - - -RefTriggerDetectorLocation --------------------------- - -.. py:class:: RefTriggerDetectorLocation - - .. py:attribute:: RefTriggerDetectorLocation.ANALOG_DETECTION_CIRCUIT - - - - use the hardware analog circuitry to implement the reference trigger. This option will trigger before any onboard signal processing. - - - - - - .. py:attribute:: RefTriggerDetectorLocation.DDC_OUTPUT - - - - use the onboard signal processing logic to implement the reference trigger. This option will trigger based on the onboard signal processed data. - - - - - -RuntPolarity ------------- - -.. py:class:: RuntPolarity - - .. py:attribute:: RuntPolarity.POSITIVE - - - - Trigger on pulses of positive polarity relative to :py:attr:`niscope.Session.runt_low_threshold` that do not cross :py:attr:`niscope.Session.runt_high_threshold`. - - - - - - .. py:attribute:: RuntPolarity.NEGATIVE - - - - Trigger on pulses of negative polarity relative to :py:attr:`niscope.Session.runt_high_threshold` that do not cross :py:attr:`niscope.Session.runt_low_threshold`. - - - - - - .. py:attribute:: RuntPolarity.EITHER - - - - Trigger on pulses of either positive or negative polarity. - - - - - -RuntTimeCondition ------------------ - -.. py:class:: RuntTimeCondition - - .. py:attribute:: RuntTimeCondition.NONE - - - - Time qualification is disabled. Trigger on runt pulses based solely on the voltage level of the pulses. - - - - - - .. py:attribute:: RuntTimeCondition.WITHIN - - - - Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration within the range bounded by :py:attr:`niscope.Session.runt_time_low_limit` and :py:attr:`niscope.Session.runt_time_high_limit`. - - - - - - .. py:attribute:: RuntTimeCondition.OUTSIDE - - - - Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration not within the range bounded by :py:attr:`niscope.Session.runt_time_low_limit` and :py:attr:`niscope.Session.runt_time_high_limit`. - - - - - -ScalarMeasurement ------------------ - -.. py:class:: ScalarMeasurement - - .. py:attribute:: ScalarMeasurement.NO_MEASUREMENT - - - - None - - - - - - .. py:attribute:: ScalarMeasurement.RISE_TIME - - - - .. py:attribute:: ScalarMeasurement.FALL_TIME - - - - .. py:attribute:: ScalarMeasurement.FREQUENCY - - - - .. py:attribute:: ScalarMeasurement.PERIOD - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_RMS - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_PEAK_TO_PEAK - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_MAX - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_MIN - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_HIGH - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_LOW - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_AVERAGE - - - - .. py:attribute:: ScalarMeasurement.WIDTH_NEG - - - - .. py:attribute:: ScalarMeasurement.WIDTH_POS - - - - .. py:attribute:: ScalarMeasurement.DUTY_CYCLE_NEG - - - - .. py:attribute:: ScalarMeasurement.DUTY_CYCLE_POS - - - - .. py:attribute:: ScalarMeasurement.AMPLITUDE - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_CYCLE_RMS - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_CYCLE_AVERAGE - - - - .. py:attribute:: ScalarMeasurement.OVERSHOOT - - - - .. py:attribute:: ScalarMeasurement.PRESHOOT - - - - .. py:attribute:: ScalarMeasurement.LOW_REF_VOLTS - - - - .. py:attribute:: ScalarMeasurement.MID_REF_VOLTS - - - - .. py:attribute:: ScalarMeasurement.HIGH_REF_VOLTS - - - - .. py:attribute:: ScalarMeasurement.AREA - - - - .. py:attribute:: ScalarMeasurement.CYCLE_AREA - - - - .. py:attribute:: ScalarMeasurement.INTEGRAL - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_BASE - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_TOP - - - - .. py:attribute:: ScalarMeasurement.FFT_FREQUENCY - - - - .. py:attribute:: ScalarMeasurement.FFT_AMPLITUDE - - - - .. py:attribute:: ScalarMeasurement.RISE_SLEW_RATE - - - - .. py:attribute:: ScalarMeasurement.FALL_SLEW_RATE - - - - .. py:attribute:: ScalarMeasurement.AC_ESTIMATE - - - - .. py:attribute:: ScalarMeasurement.DC_ESTIMATE - - - - .. py:attribute:: ScalarMeasurement.TIME_DELAY - - - - .. py:attribute:: ScalarMeasurement.AVERAGE_PERIOD - - - - .. py:attribute:: ScalarMeasurement.AVERAGE_FREQUENCY - - - - .. py:attribute:: ScalarMeasurement.VOLTAGE_BASE_TO_TOP - - - - .. py:attribute:: ScalarMeasurement.PHASE_DELAY - - - -TerminalConfiguration ---------------------- - -.. py:class:: TerminalConfiguration - - .. py:attribute:: TerminalConfiguration.SINGLE_ENDED - - - - Channel is single ended - - - - - - .. py:attribute:: TerminalConfiguration.UNBALANCED_DIFFERENTIAL - - - - Channel is unbalanced differential - - - - - - .. py:attribute:: TerminalConfiguration.DIFFERENTIAL - - - - Channel is differential - - - - - -TriggerCoupling ---------------- - -.. py:class:: TriggerCoupling - - .. py:attribute:: TriggerCoupling.AC - - - - AC coupling - - - - - - .. py:attribute:: TriggerCoupling.DC - - - - DC coupling - - - - - - .. py:attribute:: TriggerCoupling.HF_REJECT - - - - Highpass filter coupling - - - - - - .. py:attribute:: TriggerCoupling.LF_REJECT - - - - Lowpass filter coupling - - - - - - .. py:attribute:: TriggerCoupling.AC_PLUS_HF_REJECT - - - - Highpass and lowpass filter coupling - - - - - -TriggerModifier ---------------- - -.. py:class:: TriggerModifier - - .. py:attribute:: TriggerModifier.NO_TRIGGER_MOD - - - - Normal triggering. - - - - - - .. py:attribute:: TriggerModifier.AUTO - - - - Software will trigger an acquisition automatically if no trigger arrives - after a certain amount of time. - - - - - - .. py:attribute:: TriggerModifier.AUTO_LEVEL - - - -TriggerSlope ------------- - -.. py:class:: TriggerSlope - - .. py:attribute:: TriggerSlope.NEGATIVE - - - - Falling edge - - - - - - .. py:attribute:: TriggerSlope.POSITIVE - - - - Rising edge - - - - - - .. py:attribute:: TriggerSlope.SLOPE_EITHER - - - - Either edge - - - - - -TriggerType ------------ - -.. py:class:: TriggerType - - .. py:attribute:: TriggerType.EDGE - - - - Configures the digitizer for edge triggering. An edge trigger occurs when the trigger signal crosses the trigger level specified with the set trigger slope. You configure the trigger level and slope with :py:meth:`niscope.Session.configure_trigger_edge`. - - - - - - .. py:attribute:: TriggerType.HYSTERESIS - - - - Configures the digitizer for hysteresis triggering. A hysteresis trigger occurs when the trigger signal crosses the trigger level with the specified slope and passes through the hysteresis window you specify. You configure the trigger level, slope, and hysteresis with :py:meth:`niscope.Session.configure_trigger_hysteresis`. - - - - - - .. py:attribute:: TriggerType.DIGITAL - - - - Configures the digitizer for digital triggering. A digital trigger occurs when the trigger signal has the specified slope. You configure the trigger slope with :py:meth:`niscope.Session.configure_trigger_digital`. - - - - - - .. py:attribute:: TriggerType.WINDOW - - - - Configures the digitizer for window triggering. A window trigger occurs when the trigger signal enters or leaves the window defined by the values you specify with the Low Window Level, High Window Level, and Window Mode Parameters. You configure the low window level high window level, and window mode with :py:meth:`niscope.Session.configure_trigger_window`. - - - - - - .. py:attribute:: TriggerType.SOFTWARE - - - - Configures the digitizer for software triggering. A software trigger occurs when :py:meth:`niscope.Session.SendSoftwareTrigger` is called. - - - - - - .. py:attribute:: TriggerType.TV - - - - Configures the digitizer for video/TV triggering. You configure the video trigger parameters like signal Format, Line to trigger off of, Polarity, and Enable DC Restore with :py:meth:`niscope.Session.configure_trigger_video`. - - - - - - .. py:attribute:: TriggerType.GLITCH - - - - .. py:attribute:: TriggerType.WIDTH - - - - .. py:attribute:: TriggerType.RUNT - - - - .. py:attribute:: TriggerType.IMMEDIATE - - - - Configures the digitizer for immediate triggering. An immediate trigger occurs as soon as the pretrigger samples are acquired. - - - - - -TriggerWindowMode ------------------ - -.. py:class:: TriggerWindowMode - - .. py:attribute:: TriggerWindowMode.ENTERING - - - - Trigger upon entering the window - - - - - - .. py:attribute:: TriggerWindowMode.LEAVING - - - - Trigger upon leaving the window - - - - - - .. py:attribute:: TriggerWindowMode.ENTERING_OR_LEAVING - - - -VerticalCoupling ----------------- - -.. py:class:: VerticalCoupling - - .. py:attribute:: VerticalCoupling.AC - - - - AC coupling - - - - - - .. py:attribute:: VerticalCoupling.DC - - - - DC coupling - - - - - - .. py:attribute:: VerticalCoupling.GND - - - - GND coupling - - - - - -VideoPolarity -------------- - -.. py:class:: VideoPolarity - - .. py:attribute:: VideoPolarity.POSITIVE - - - - Specifies that the video signal has positive polarity. - - - - - - .. py:attribute:: VideoPolarity.NEGATIVE - - - - Specifies that the video signal has negative polarity. - - - - - -VideoSignalFormat ------------------ - -.. py:class:: VideoSignalFormat - - .. py:attribute:: VideoSignalFormat.NTSC - - - - NTSC signal format supports line numbers from 1 to 525 - - - - - - .. py:attribute:: VideoSignalFormat.PAL - - - - PAL signal format supports line numbers from 1 to 625 - - - - - - .. py:attribute:: VideoSignalFormat.SECAM - - - - SECAM signal format supports line numbers from 1 to 625 - - - - - - .. py:attribute:: VideoSignalFormat.M_PAL - - - - M-PAL signal format supports line numbers from 1 to 525 - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_480I_59_94_FIELDS_PER_SECOND - - - - 480 lines, interlaced, 59.94 fields per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_480I_60_FIELDS_PER_SECOND - - - - 480 lines, interlaced, 60 fields per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_480P_59_94_FRAMES_PER_SECOND - - - - 480 lines, progressive, 59.94 frames per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_480P_60_FRAMES_PER_SECOND - - - - 480 lines, progressive,60 frames per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_576I_50_FIELDS_PER_SECOND - - - - 576 lines, interlaced, 50 fields per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_576P_50_FRAMES_PER_SECOND - - - - 576 lines, progressive, 50 frames per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_720P_50_FRAMES_PER_SECOND - - - - 720 lines, progressive, 50 frames per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_720P_59_94_FRAMES_PER_SECOND - - - - 720 lines, progressive, 59.94 frames per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_720P_60_FRAMES_PER_SECOND - - - - 720 lines, progressive, 60 frames per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_1080I_50_FIELDS_PER_SECOND - - - - 1,080 lines, interlaced, 50 fields per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_1080I_59_94_FIELDS_PER_SECOND - - - - 1,080 lines, interlaced, 59.94 fields per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_1080I_60_FIELDS_PER_SECOND - - - - 1,080 lines, interlaced, 60 fields per second - - - - - - .. py:attribute:: VideoSignalFormat.VIDEO_1080P_24_FRAMES_PER_SECOND - - - - 1,080 lines, progressive, 24 frames per second - - - - - -VideoTriggerEvent ------------------ - -.. py:class:: VideoTriggerEvent - - .. py:attribute:: VideoTriggerEvent.FIELD1 - - - - Trigger on field 1 of the signal - - - - - - .. py:attribute:: VideoTriggerEvent.FIELD2 - - - - Trigger on field 2 of the signal - - - - - - .. py:attribute:: VideoTriggerEvent.ANY_FIELD - - - - Trigger on the first field acquired - - - - - - .. py:attribute:: VideoTriggerEvent.ANY_LINE - - - - Trigger on the first line acquired - - - - - - .. py:attribute:: VideoTriggerEvent.LINE_NUMBER - - - - Trigger on a specific line of a video signal. Valid values vary depending on the signal format configured. - - - - - -WhichTrigger ------------- - -.. py:class:: WhichTrigger - - .. py:attribute:: WhichTrigger.START - - - - .. py:attribute:: WhichTrigger.ARM_REFERENCE - - - - .. py:attribute:: WhichTrigger.REFERENCE - - - - .. py:attribute:: WhichTrigger.ADVANCE - - - -WidthCondition --------------- - -.. py:class:: WidthCondition - - .. py:attribute:: WidthCondition.WITHIN - - - - Trigger on pulses with a duration within the range bounded by :py:attr:`niscope.Session.width_low_threshold` and :py:attr:`niscope.Session.width_high_threshold`. - - - - - - .. py:attribute:: WidthCondition.OUTSIDE - - - - Trigger on pulses with a duration not within the range bounded by :py:attr:`niscope.Session.width_low_threshold` and :py:attr:`niscope.Session.width_high_threshold`. - - - - - -WidthPolarity -------------- - -.. py:class:: WidthPolarity - - .. py:attribute:: WidthPolarity.POSITIVE - - - - Trigger on pulses of positive polarity relative to the trigger threshold. - - - - - - .. py:attribute:: WidthPolarity.NEGATIVE - - - - Trigger on pulses of negative polarity relative to the trigger threshold. - - - - - - .. py:attribute:: WidthPolarity.EITHER - - - - Trigger on pulses of either positive or negative polarity. - - - - - - - diff --git a/docs/niscope/errors.rst b/docs/niscope/errors.rst deleted file mode 100644 index 3c96a3d875..0000000000 --- a/docs/niscope/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: niscope.errors - - .. exception:: Error - - Base exception type that all NI-SCOPE exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: niscope.errors - - .. exception:: DriverError - - An error originating from the NI-SCOPE driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: niscope.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: niscope.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: niscope.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-SCOPE driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: niscope.errors - - .. exception:: DriverTooNewError - - An error due to the NI-SCOPE driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: niscope.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: niscope.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: niscope.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: niscope.errors - - .. exception:: DriverWarning - - A warning originating from the NI-SCOPE driver - - - diff --git a/docs/niscope/examples.rst b/docs/niscope/examples.rst deleted file mode 100644 index f7308ebf4b..0000000000 --- a/docs/niscope/examples.rst +++ /dev/null @@ -1,50 +0,0 @@ -Examples -======== - -`You can download all niscope examples for latest version here `_ - -niscope_external_clocking.py ----------------------------- - -.. literalinclude:: ../../src/niscope/examples/niscope_external_clocking.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niscope_external_clocking.py) `_ - -niscope_fetch.py ----------------- - -.. literalinclude:: ../../src/niscope/examples/niscope_fetch.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niscope_fetch.py) `_ - -niscope_fetch_forever.py ------------------------- - -.. literalinclude:: ../../src/niscope/examples/niscope_fetch_forever.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niscope_fetch_forever.py) `_ - -niscope_fetch_into.py ---------------------- - -.. literalinclude:: ../../src/niscope/examples/niscope_fetch_into.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niscope_fetch_into.py) `_ - -niscope_read.py ---------------- - -.. literalinclude:: ../../src/niscope/examples/niscope_read.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niscope_read.py) `_ - diff --git a/docs/niscope/grpc_session_options.rst b/docs/niscope/grpc_session_options.rst deleted file mode 100644 index 1d3ff64594..0000000000 --- a/docs/niscope/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-SCOPE over gRPC - -.. py:currentmodule:: niscope - - - -Creating a gRPC channel ------------------------ - -Using NI-SCOPE over gRPC requires the ``grpc`` extra:: - - $ python -m pip install niscope[grpc] - -Every NI-SCOPE gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`niscope.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-SCOPE runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import niscope - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = niscope.GrpcSessionOptions(channel, '') - with niscope.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`niscope.SessionInitializationBehavior` diff --git a/docs/niscope/index.rst b/docs/niscope/index.rst deleted file mode 100644 index 36274bcfee..0000000000 --- a/docs/niscope/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-SCOPE Python API Documentation -================================= - -.. include:: about_niscope.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - niscope - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/niscope/installation.inc b/docs/niscope/installation.inc deleted file mode 100644 index ad9dcd9582..0000000000 --- a/docs/niscope/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _niscope_installation-section: - -Installation ------------- - -As a prerequisite to using the **niscope** module, you must install the NI-SCOPE runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-SCOPE**) can be installed with `pip `_:: - - $ python -m pip install niscope - - diff --git a/docs/niscope/niscope.rst b/docs/niscope/niscope.rst deleted file mode 100644 index 9d6ceba6b7..0000000000 --- a/docs/niscope/niscope.rst +++ /dev/null @@ -1,9 +0,0 @@ -niscope module -============== - -.. include:: installation.inc - -.. include:: ../_static/niscope_usage.inc - -.. include:: toc.inc - diff --git a/docs/niscope/rep_caps.rst b/docs/niscope/rep_caps.rst deleted file mode 100644 index 19169bc085..0000000000 --- a/docs/niscope/rep_caps.rst +++ /dev/null @@ -1,50 +0,0 @@ -.. py:module:: niscope - :noindex: - -.. py:currentmodule:: niscope.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niScope_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -channels --------- - - .. py:attribute:: niscope.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - -instruments ------------ - - .. py:attribute:: niscope.Session.instruments[] - - .. code:: python - - session.instruments['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - - diff --git a/docs/niscope/status.inc b/docs/niscope/status.inc deleted file mode 100644 index 262ddeca2c..0000000000 --- a/docs/niscope/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-SCOPE Python API Status --------------------------- - -+-------------------------------+------------------------+ -| NI-SCOPE (niscope) | | -+===============================+========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+------------------------+ -| PyPI Version | |niscopeLatestVersion| | -+-------------------------------+------------------------+ -| Supported Python Version | |niscopePythonVersion| | -+-------------------------------+------------------------+ -| Documentation | |niscopeDocs| | -+-------------------------------+------------------------+ -| Open Issues | |niscopeOpenIssues| | -+-------------------------------+------------------------+ -| Open Pull Requests | |niscopeOpenPRs| | -+-------------------------------+------------------------+ - - -.. |niscopeLatestVersion| image:: http://img.shields.io/pypi/v/niscope.svg - :alt: Latest NI-SCOPE Version - :target: http://pypi.python.org/pypi/niscope - - -.. |niscopePythonVersion| image:: http://img.shields.io/pypi/pyversions/niscope.svg - :alt: NI-SCOPE supported Python versions - :target: http://pypi.python.org/pypi/niscope - - -.. |niscopeDocs| image:: https://readthedocs.org/projects/niscope/badge/?version=latest - :alt: NI-SCOPE Python API Documentation Status - :target: https://niscope.readthedocs.io/en/latest - - -.. |niscopeOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niscope.svg - :alt: Open Issues + Pull Requests for NI-SCOPE - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniscope - - -.. |niscopeOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niscope.svg - :alt: Pull Requests for NI-SCOPE - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniscope - - diff --git a/docs/niscope/toc.inc b/docs/niscope/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/niscope/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/nise/.readthedocs.yaml b/docs/nise/.readthedocs.yaml deleted file mode 100644 index 0550569323..0000000000 --- a/docs/nise/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nise/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nise/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nise/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nise/about_nise.inc b/docs/nise/about_nise.inc deleted file mode 100644 index 069c1ec091..0000000000 --- a/docs/nise/about_nise.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nise** module provides a Python API for NI Switch Executive. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nise** supports all the Operating Systems supported by NI Switch Executive. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nise**. - diff --git a/docs/nise/class.rst b/docs/nise/class.rst deleted file mode 100644 index d5468da0bc..0000000000 --- a/docs/nise/class.rst +++ /dev/null @@ -1,716 +0,0 @@ -.. py:module:: nise - -Session -======= - -.. py:class:: Session(self, virtual_device_name, options={}) - - - - Opens a session to a specified NI Switch Executive virtual device. Opens - communications with all of the IVI switches associated with the - specified NI Switch Executive virtual device. Returns a session handle - that you use to identify the virtual device in all subsequent NI Switch - Executive method calls. NI Switch Executive uses a reference counting - scheme to manage open session handles to an NI Switch Executive virtual - device. Each call to :py:meth:`nise.Session.__init__` must be matched with a subsequent - call to :py:meth:`nise.Session.close`. Successive calls to :py:meth:`nise.Session.__init__` with - the same virtual device name always returns the same session handle. NI - Switch Executive disconnects its communication with the IVI switches - after all session handles are closed to a given virtual device. The - session handles may be used safely in multiple threads of an - application. Sessions may only be opened to a given NI Switch Executive - virtual device from a single process at a time. - - - - - - :param virtual_device_name: - - - The name of the NI Switch Executive virtual device. - - - - - :type virtual_device_name: str - - :param options: - - - Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - :type options: dict - - -Methods -======= - -close ------ - - .. py:currentmodule:: nise.Session - - .. py:method:: close() - - Reduces the reference count of open sessions by one. If the reference - count goes to 0, the method deallocates any memory resources the - driver uses and closes any open IVI switch sessions. After calling the - :py:meth:`nise.Session.close` method, you should not use the NI Switch Executive - virtual device again until you call :py:meth:`nise.Session.__init__`. - - - - .. note:: This method is not needed when using the session context manager - - - -connect -------- - - .. py:currentmodule:: nise.Session - - .. py:method:: connect(connect_spec, multiconnect_mode=nise.MulticonnectMode.DEFAULT, wait_for_debounce=True) - - Connects the routes specified by the connection specification. When - connecting, it may allow for multiconnection based on the - multiconnection mode. In the event of an error, the call to - :py:meth:`nise.Session.connect` will attempt to undo any connections made so that the - system will be left in the same state that it was in before the call was - made. Some errors can be caught before manipulating hardware, although - it is feasible that a hardware call could fail causing some connections - to be momentarily closed and then reopened. If the wait for debounce - parameter is set, the method will not return until the switch system - has debounced. - - - - - - :param connect_spec: - - - String describing the connections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - - - - :type connect_spec: str - :param multiconnect_mode: - - - This value sets the connection mode for the method. The mode might be - one of the following: :py:data:`~nise.NISE_VAL_USE_DEFAULT_MODE` (-1) - uses the mode - selected as the default for the route in the NI Switch Executive virtual - device configuration. If a mode has not been selected for the route in - the NI Switch Executive virtual device, this parameter defaults to - :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES`. :py:data:`~nise.MulticonnectMode.NO_MULTICONNECT` (0) - - routes specified in the connection specification must be disconnected - before they can be reconnected. Calling Connect on a route that was - connected using No Multiconnect mode results in an error condition. - :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES` (1)- routes specified in the connection - specification can be connected multiple times. The first call to Connect - performs the physical hardware connection. Successive calls to Connect - increase a connection reference count. Similarly, calls to Disconnect - decrease the reference count. Once it reaches 0, the hardware is - physically disconnected. Multiconnecting routes applies to entire routes - and not to route segments. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type multiconnect_mode: :py:data:`nise.MulticonnectMode` - :param wait_for_debounce: - - - Waits (if true) for switches to debounce between its connect and - disconnect operations. If false, it immediately begins the second - operation after completing the first. The order of connect and - disconnect operation is set by the Operation Order input. - - - - - :type wait_for_debounce: bool - -connect_and_disconnect ----------------------- - - .. py:currentmodule:: nise.Session - - .. py:method:: connect_and_disconnect(connect_spec, disconnect_spec, multiconnect_mode=nise.MulticonnectMode.DEFAULT, operation_order=nise.OperationOrder.AFTER, wait_for_debounce=True) - - Connects routes and disconnects routes in a similar fashion to - :py:meth:`nise.Session.connect` and :py:meth:`nise.Session.disconnect` except that the operations happen in - the context of a single method call. This method is useful for - switching from one state to another state. :py:meth:`nise.Session.connect_and_disconnect` - manipulates the hardware connections and disconnections only when the - routes are different between the connection and disconnection - specifications. If any routes are common between the connection and - disconnection specifications, NI Switch Executive determines whether or - not the relays need to be switched. This functionality has the distinct - advantage of increased throughput for shared connections, because - hardware does not have to be involved and potentially increases relay - lifetime by decreasing the number of times that the relay has to be - switched. In the event of an error, the call to - :py:meth:`nise.Session.connect_and_disconnect` attempts to undo any connections made, but - does not attempt to reconnect disconnections. Some errors can be caught - before manipulating hardware, although it is feasible that a hardware - call could fail causing some connections to be momentarily closed and - then reopened. - - - - - - :param connect_spec: - - - String describing the connections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - - - - :type connect_spec: str - :param disconnect_spec: - - - String describing the disconnections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - - - - :type disconnect_spec: str - :param multiconnect_mode: - - - This value sets the connection mode for the method. The mode might be - one of the following: :py:data:`~nise.NISE_VAL_USE_DEFAULT_MODE` (-1) - uses the mode - selected as the default for the route in the NI Switch Executive virtual - device configuration. If a mode has not been selected for the route in - the NI Switch Executive virtual device, this parameter defaults to - :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES`. :py:data:`~nise.MulticonnectMode.NO_MULTICONNECT` (0) - - routes specified in the connection specification must be disconnected - before they can be reconnected. Calling Connect on a route that was - connected using No Multiconnect mode results in an error condition. - :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES` (1) - routes specified in the connection - specification can be connected multiple times. The first call to Connect - performs the physical hardware connection. Successive calls to Connect - increase a connection reference count. Similarly, calls to Disconnect - decrease the reference count. Once it reaches 0, the hardware is - physically disconnected. This behavior is slightly different with SPDT - relays. For more information, refer to the Exclusions and SPDT Relays - topic in the NI Switch Executive Help. Multiconnecting routes applies to - entire routes and not to route segments. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type multiconnect_mode: :py:data:`nise.MulticonnectMode` - :param operation_order: - - - Sets the order of the operation for the method. Defined values are - Break Before Make and Break After Make. :py:data:`~nise.OperationOrder.BEFORE` - (1) - The method disconnects the routes specified in the disconnect - specification before connecting the routes specified in the connect - specification. This is the typical mode of operation. - :py:data:`~nise.OperationOrder.AFTER` (2) - The method connects the routes - specified in the connection specification before connecting the routes - specified in the disconnection specification. This mode of operation is - normally used when you are switching current and want to ensure that a - load is always connected to your source. The order of operation is to - connect first or disconnect first. - - - - - :type operation_order: :py:data:`nise.OperationOrder` - :param wait_for_debounce: - - - Waits (if true) for switches to debounce between its connect and - disconnect operations. If false, it immediately begins the second - operation after completing the first. The order of connect and - disconnect operation is set by the Operation Order input. - - - - - :type wait_for_debounce: bool - -disconnect ----------- - - .. py:currentmodule:: nise.Session - - .. py:method:: disconnect(disconnect_spec) - - Disconnects the routes specified in the Disconnection Specification. If - any of the specified routes were originally connected in a - multiconnected mode, the call to :py:meth:`nise.Session.disconnect` reduces the reference - count on the route by 1. If the reference count reaches 0, it is - disconnected. If a specified route does not exist, it is an error - condition. In the event of an error, the call to :py:meth:`nise.Session.disconnect` - continues to try to disconnect everything specified by the route - specification string but reports the error on completion. - - - - - - :param disconnect_spec: - - - String describing the disconnections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - - - - :type disconnect_spec: str - -disconnect_all --------------- - - .. py:currentmodule:: nise.Session - - .. py:method:: disconnect_all() - - Disconnects all connections on every IVI switch device managed by the - NISE session reference passed to this method. :py:meth:`nise.Session.disconnect_all` - ignores all multiconnect modes. Calling :py:meth:`nise.Session.disconnect_all` resets all - of the switch states for the system. - - - - - -expand_route_spec ------------------ - - .. py:currentmodule:: nise.Session - - .. py:method:: expand_route_spec(route_spec, expand_action=nise.ExpandAction.ROUTES, expanded_route_spec_size=[1024]) - - Expands a route spec string to yield more information about the routes - and route groups within the spec. The route specification string - returned from :py:meth:`nise.Session.expand_route_spec` can be passed to other Switch - Executive API methods (such as :py:meth:`nise.Session.connect`, :py:meth:`nise.Session.disconnect`, and - :py:meth:`nise.Session.connect_and_disconnect`) that use route specification strings. - - - - - - :param route_spec: - - - String describing the routes and route groups to expand. The route - specification strings are best summarized as a series of routes - delimited by ampersands. The specified routes may be route names, route - group names, or fully specified route paths delimited by square - brackets. Some examples of route specification strings are: MyRoute - MyRouteGroup MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & - MyRouteGroup & [A->Switch1/r0->B] Refer to Route Specification Strings - in the NI Switch Executive Help for more information. - - - - - :type route_spec: str - :param expand_action: - - - This value sets the expand action for the method. The action might be - one of the following: :py:data:`~nise.ExpandAction.ROUTES` (0) - expands the - route spec to routes. Converts route groups to their constituent routes. - :py:data:`~nise.ExpandAction.PATHS` (1) - expands the route spec to paths. - Converts routes and route groups to their constituent square bracket - route spec strings. Example: [Dev1/c0->Dev1/r0->Dev1/c1] - - - - - :type expand_action: :py:data:`nise.ExpandAction` - :param expanded_route_spec_size: - - - The routeSpecSize is an ViInt32 that is passed by reference into the - method. As an input, it is the size of the route spec string buffer - being passed. If the route spec string is larger than the string buffer - being passed, only the portion of the route spec string that can fit in - the string buffer is copied into it. On return from the method, - routeSpecSize holds the size required to hold the entire route spec - string. Note that this size may be larger than the buffer size as the - method always returns the size needed to hold the entire buffer. You - may pass NULL for this parameter if you are not interested in the return - value for routeSpecSize and routeSpec. - - - - - :type expanded_route_spec_size: list of int - - :rtype: str - :return: - - - The expanded route spec. Route specification strings can be directly - passed to :py:meth:`nise.Session.connect`, :py:meth:`nise.Session.disconnect`, or :py:meth:`nise.Session.connect_and_disconnect` - Refer to Route Specification Strings in the NI Switch Executive Help for - more information. You may pass NULL for this parameter if you are not - interested in the return value. To obtain the route specification - string, you should pass a buffer to this parameter. The size of the - buffer required may be obtained by calling the method with NULL for - this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize - will contain the size needed to hold the entire route specification - (including the NULL termination character). Common operation is to call - the method twice. The first time you call the method you can - determine the size needed to hold the route specification string. - Allocate a buffer of the appropriate size and then re-call the method - to obtain the entire buffer. - - - - - -find_route ----------- - - .. py:currentmodule:: nise.Session - - .. py:method:: find_route(channel1, channel2, route_spec_size=[1024]) - - Finds an existing or potential route between channel 1 and channel 2. - The returned route specification contains the route specification and - the route capability determines whether or not the route existed, is - possible, or is not possible for various reasons. The route - specification string returned from :py:meth:`nise.Session.find_route` can be passed to - other Switch Executive API methods (such as :py:meth:`nise.Session.connect`, - :py:meth:`nise.Session.disconnect`, and :py:meth:`nise.Session.connect_and_disconnect`) that use route - specification strings. - - - - - - :param channel1: - - - Channel name of one of the endpoints of the route to find. The channel - name must either be a channel alias name or a name in the - device/ivichannel syntax. Examples: MyChannel Switch1/R0 - - - - - :type channel1: str - :param channel2: - - - Channel name of one of the endpoints of the route to find. The channel - name must either be a channel alias name or a name in the - device/ivichannel syntax. Examples: MyChannel Switch1/R0 - - - - - :type channel2: str - :param route_spec_size: - - - The routeSpecSize is an ViInt32 that is passed by reference into the - method. As an input, it is the size of the route string buffer being - passed. If the route string is larger than the string buffer being - passed, only the portion of the route string that can fit in the string - buffer is copied into it. On return from the method, routeSpecSize - holds the size required to hold the entire route string. Note that this - size may be larger than the buffer size as the method always returns - the size needed to hold the entire buffer. You may pass NULL for this - parameter if you are not interested in the return value for - routeSpecSize and routeSpec. - - - - - :type route_spec_size: list of int - - :rtype: tuple (route_spec, path_capability) - - WHERE - - route_spec (str): - - - The fully specified route path complete with delimiting square - brackets if the route exists or is possible. An example of a fully - specified route string is: [A->Switch1/r0->B] Route specification - strings can be directly passed to :py:meth:`nise.Session.connect`, :py:meth:`nise.Session.disconnect`, or - :py:meth:`nise.Session.connect_and_disconnect` Refer to Route Specification Strings in the - NI Switch Executive Help for more information. You may pass NULL for - this parameter if you are not interested in the return value. To obtain - the route specification string, you should pass a buffer to this - parameter. The size of the buffer required may be obtained by calling - the method with NULL for this parameter and a valid ViInt32 to - routeSpecSize. The routeSpecSize will contain the size needed to hold - the entire route specification (including the NULL termination - character). Common operation is to call the method twice. The first - time you call the method you can determine the size needed to hold the - route specification string. Allocate a buffer of the appropriate size - and then re-call the method to obtain the entire buffer. - - - - - path_capability (:py:data:`nise.PathCapability`): - - - The return value which expresses the capability of finding a valid route - between Channel 1 and Channel 2. Refer to the table below for value - descriptions. You may pass NULL for this parameter if you are not - interested in the return value. Route capability might be one of the - following: Path Available (1) A path between channel 1 and channel 2 is - available. The route specification parameter returns a string describing - the available path. Path Exists (2) A path between channel 1 and channel - 2 already exists. The route specification parameter returns a string - describing the existing path. Path Unsupported (3) There is no potential - path between channel 1 and channel 2 given the current configuration. - Resource In Use (4) There is a potential path between channel 1 and - channel 2, although a resource needed to complete the path is already in - use. Source Conflict (5) Channel 1 and channel 2 cannot be connected - because their connection would result in an exclusion violation. Channel - Not Available (6) One of the channels is not useable as an endpoint - channel. Make sure that it is not marked as a reserved for routing. - Channels Hardwired (7) The two channels reside on the same hardwire. An - implicit path already exists. - - - - - -get_all_connections -------------------- - - .. py:currentmodule:: nise.Session - - .. py:method:: get_all_connections(route_spec_size=[1024]) - - Returns the top-level connected routes and route groups. The route - specification string returned from :py:meth:`nise.Session.get_all_connections` can be passed - to other Switch Executive API methods (such as :py:meth:`nise.Session.connect`, - :py:meth:`nise.Session.disconnect`, :py:meth:`nise.Session.connect_and_disconnect`, and :py:meth:`nise.Session.expand_route_spec`) - that use route specification strings. - - - - - - :param route_spec_size: - - - The routeSpecSize is an ViInt32 that is passed by reference into the - method. As an input, it is the size of the route spec string buffer - being passed. If the route spec string is larger than the string buffer - being passed, only the portion of the route spec string that can fit in - the string buffer is copied into it. On return from the method, - routeSpecSize holds the size required to hold the entire route spec - string. Note that this size may be larger than the buffer size as the - method always returns the size needed to hold the entire buffer. You - may pass NULL for this parameter if you are not interested in the return - value for routeSpecSize and routeSpec. - - - - - :type route_spec_size: list of int - - :rtype: str - :return: - - - The route spec of all currently connected routes and route groups. Route - specification strings can be directly passed to :py:meth:`nise.Session.connect`, - :py:meth:`nise.Session.disconnect`, :py:meth:`nise.Session.connect_and_disconnect`, or :py:meth:`nise.Session.expand_route_spec` - Refer to Route Specification Strings in the NI Switch Executive Help for - more information. You may pass NULL for this parameter if you are not - interested in the return value. To obtain the route specification - string, you should pass a buffer to this parameter. The size of the - buffer required may be obtained by calling the method with NULL for - this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize - will contain the size needed to hold the entire route specification - (including the NULL termination character). Common operation is to call - the method twice. The first time you call the method you can - determine the size needed to hold the route specification string. - Allocate a buffer of the appropriate size and then re-call the method - to obtain the entire buffer. - - - - - -is_connected ------------- - - .. py:currentmodule:: nise.Session - - .. py:method:: is_connected(route_spec) - - Checks whether the specified routes and routes groups are connected. It - returns true if connected. - - - - - - :param route_spec: - - - String describing the connections to check. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - - - - :type route_spec: str - - :rtype: bool - :return: - - - Returns TRUE if the routes and routes groups are connected or FALSE if - they are not. - - - - - -is_debounced ------------- - - .. py:currentmodule:: nise.Session - - .. py:method:: is_debounced() - - Checks to see if the switching system is debounced or not. This method - does not wait for debouncing to occur. It returns true if the system is - fully debounced. This method is similar to the IviSwtch specific - method. - - - - - - :rtype: bool - :return: - - - Returns TRUE if the system is fully debounced or FALSE if it is still - settling. - - - - - -wait_for_debounce ------------------ - - .. py:currentmodule:: nise.Session - - .. py:method:: wait_for_debounce(maximum_time_ms=hightime.timedelta(milliseconds=-1)) - - Waits for all of the switches in the NI Switch Executive virtual device - to debounce. This method does not return until either the switching - system is completely debounced and settled or the maximum time has - elapsed and the system is not yet debounced. In the event that the - maximum time elapses, the method returns an error indicating that a - timeout has occurred. To ensure that all of the switches have settled, - NI recommends calling :py:meth:`nise.Session.wait_for_debounce` after a series of connection - or disconnection operations and before taking any measurements of the - signals connected to the switching system. - - - - - - :param maximum_time_ms: - - - The amount of time to wait (in milliseconds) for the debounce to - complete. A value of 0 checks for debouncing once and returns an error - if the system is not debounced at that time. A value of -1 means to - block for an infinite period of time until the system is debounced. - - - - - :type maximum_time_ms: hightime.timedelta, datetime.timedelta, or int in milliseconds - - - -.. contents:: Session diff --git a/docs/nise/conf.py b/docs/nise/conf.py deleted file mode 100644 index 8421ee7508..0000000000 --- a/docs/nise/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI Switch Executive Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI Switch Executive Python API' -copyright = '2018-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NISwitchExecutivePythonAPI.tex', 'NI Switch Executive Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'niswitchexecutivepythonapi', 'NI Switch Executive Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NISwitchExecutivePythonAPI', 'NI Switch Executive Python API Documentation', - author, 'NISwitchExecutivePythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nise/enums.rst b/docs/nise/enums.rst deleted file mode 100644 index 404df5ad67..0000000000 --- a/docs/nise/enums.rst +++ /dev/null @@ -1,190 +0,0 @@ -Enums -===== - -Enums used in NI Switch Executive - -.. py:currentmodule:: nise - - -ExpandAction ------------- - -.. py:class:: ExpandAction - - .. py:attribute:: ExpandAction.ROUTES - - - - Expand to routes - - - - - - .. py:attribute:: ExpandAction.PATHS - - - - Expand to paths - - - - - -MulticonnectMode ----------------- - -.. py:class:: MulticonnectMode - - .. py:attribute:: MulticonnectMode.DEFAULT - - - - Default - - - - - - .. py:attribute:: MulticonnectMode.NO_MULTICONNECT - - - - No multiconnect - - - - - - .. py:attribute:: MulticonnectMode.MULTICONNECT - - - - Multiconnect - - - - - -OperationOrder --------------- - -.. py:class:: OperationOrder - - .. py:attribute:: OperationOrder.BEFORE - - - - Break before make - - - - - - .. py:attribute:: OperationOrder.AFTER - - - - Break after make - - - - - -PathCapability --------------- - -.. py:class:: PathCapability - - .. py:attribute:: PathCapability.PATH_NEEDS_HARDWIRE - - - - Path needs hardwire - - - - - - .. py:attribute:: PathCapability.PATH_NEEDS_CONFIG_CHANNEL - - - - Path needs config channel - - - - - - .. py:attribute:: PathCapability.PATH_AVAILABLE - - - - Path available - - - - - - .. py:attribute:: PathCapability.PATH_EXISTS - - - - Path exists - - - - - - .. py:attribute:: PathCapability.PATH_UNSUPPORTED - - - - Path Unsupported - - - - - - .. py:attribute:: PathCapability.RESOURCE_IN_USE - - - - Resource in use - - - - - - .. py:attribute:: PathCapability.EXCLUSION_CONFLICT - - - - Exclusion conflict - - - - - - .. py:attribute:: PathCapability.CHANNEL_NOT_AVAILABLE - - - - Channel not available - - - - - - .. py:attribute:: PathCapability.CHANNELS_HARDWIRED - - - - Channels hardwired - - - - - - - diff --git a/docs/nise/errors.rst b/docs/nise/errors.rst deleted file mode 100644 index b20453f2e9..0000000000 --- a/docs/nise/errors.rst +++ /dev/null @@ -1,80 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nise.errors - - .. exception:: Error - - Base exception type that all NI Switch Executive exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nise.errors - - .. exception:: DriverError - - An error originating from the NI Switch Executive driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nise.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nise.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nise.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI Switch Executive driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nise.errors - - .. exception:: DriverTooNewError - - An error due to the NI Switch Executive driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: nise.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -DriverWarning -------------- - - .. py:currentmodule:: nise.errors - - .. exception:: DriverWarning - - A warning originating from the NI Switch Executive driver - - - diff --git a/docs/nise/examples.rst b/docs/nise/examples.rst deleted file mode 100644 index 241a02704a..0000000000 --- a/docs/nise/examples.rst +++ /dev/null @@ -1,14 +0,0 @@ -Examples -======== - -`You can download all nise examples for latest version here `_ - -nise_basic_example.py ---------------------- - -.. literalinclude:: ../../src/nise/examples/nise_basic_example.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nise_basic_example.py) `_ - diff --git a/docs/nise/index.rst b/docs/nise/index.rst deleted file mode 100644 index 5221cda293..0000000000 --- a/docs/nise/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI Switch Executive Python API Documentation -============================================ - -.. include:: about_nise.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nise - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nise/installation.inc b/docs/nise/installation.inc deleted file mode 100644 index 6f9ec7e9db..0000000000 --- a/docs/nise/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nise_installation-section: - -Installation ------------- - -As a prerequisite to using the **nise** module, you must install the NI Switch Executive runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI Switch Executive**) can be installed with `pip `_:: - - $ python -m pip install nise - - diff --git a/docs/nise/nise.rst b/docs/nise/nise.rst deleted file mode 100644 index 4db377e53e..0000000000 --- a/docs/nise/nise.rst +++ /dev/null @@ -1,9 +0,0 @@ -nise module -=========== - -.. include:: installation.inc - -.. include:: ../_static/nise_usage.inc - -.. include:: toc.inc - diff --git a/docs/nise/status.inc b/docs/nise/status.inc deleted file mode 100644 index 365f879ed0..0000000000 --- a/docs/nise/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI Switch Executive Python API Status -------------------------------------- - -+-------------------------------+---------------------+ -| NI Switch Executive (nise) | | -+===============================+=====================+ -| Driver Version Tested Against | 2023 Q1 | -+-------------------------------+---------------------+ -| PyPI Version | |niseLatestVersion| | -+-------------------------------+---------------------+ -| Supported Python Version | |nisePythonVersion| | -+-------------------------------+---------------------+ -| Documentation | |niseDocs| | -+-------------------------------+---------------------+ -| Open Issues | |niseOpenIssues| | -+-------------------------------+---------------------+ -| Open Pull Requests | |niseOpenPRs| | -+-------------------------------+---------------------+ - - -.. |niseLatestVersion| image:: http://img.shields.io/pypi/v/nise.svg - :alt: Latest NI Switch Executive Version - :target: http://pypi.python.org/pypi/nise - - -.. |nisePythonVersion| image:: http://img.shields.io/pypi/pyversions/nise.svg - :alt: NI Switch Executive supported Python versions - :target: http://pypi.python.org/pypi/nise - - -.. |niseDocs| image:: https://readthedocs.org/projects/nise/badge/?version=latest - :alt: NI Switch Executive Python API Documentation Status - :target: https://nise.readthedocs.io/en/latest - - -.. |niseOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nise.svg - :alt: Open Issues + Pull Requests for NI Switch Executive - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anise - - -.. |niseOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nise.svg - :alt: Pull Requests for NI Switch Executive - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anise - - diff --git a/docs/nise/toc.inc b/docs/nise/toc.inc deleted file mode 100644 index 5f64afcd41..0000000000 --- a/docs/nise/toc.inc +++ /dev/null @@ -1,10 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - enums - errors - examples - diff --git a/docs/niswitch/.readthedocs.yaml b/docs/niswitch/.readthedocs.yaml deleted file mode 100644 index bc65e17ab4..0000000000 --- a/docs/niswitch/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/niswitch/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/niswitch/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/niswitch/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/niswitch/about_niswitch.inc b/docs/niswitch/about_niswitch.inc deleted file mode 100644 index 592be6924c..0000000000 --- a/docs/niswitch/about_niswitch.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **niswitch** module provides a Python API for NI-SWITCH. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**niswitch** supports all the Operating Systems supported by NI-SWITCH. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **niswitch**. - diff --git a/docs/niswitch/class.rst b/docs/niswitch/class.rst deleted file mode 100644 index a95dc4b475..0000000000 --- a/docs/niswitch/class.rst +++ /dev/null @@ -1,2668 +0,0 @@ -.. py:module:: niswitch - -Session -======= - -.. py:class:: Session(self, resource_name, topology="Configured Topology", simulate=False, reset_device=False, *, grpc_options=None) - - - - Returns a session handle used to identify the switch in all subsequent - instrument driver calls and sets the topology of the switch. - :py:meth:`niswitch.Session.__init__` creates a new IVI instrument driver session - for the switch specified in the resourceName parameter. The driver uses - the topology specified in the topology parameter and overrides the - topology specified in MAX. Note: When initializing an NI SwitchBlock - device with topology, you must specify the topology created when you - configured the device in MAX, using either - "Configured Topology" or the topology string of the - device. Refer to the Initializing with Topology for NI SwitchBlock - Devices topic in the NI Switches Help for information about determining - the topology string of an NI SwitchBlock device. By default, the switch - is reset to a known state. Enable simulation by specifying the topology - and setting the simulate parameter to True. - - - - - - :param resource_name: - - - Resource name of the switch module to initialize. Default value: None - Syntax: Optional fields are shown in square brackets ([]). Configured in - MAX Under Valid Syntax Devices and Interfaces DeviceName Traditional - NI-DAQ Devices SCXI[chassis ID]::slot number PXI System PXI[bus - number]::device number TIP: IVI logical names are also valid for the - resource name. Default values for optional fields: chassis ID = 1 bus - number = 0 Example resource names: Resource Name Description SC1Mod3 - NI-DAQmx module in chassis "SC1" slot 3 MySwitch NI-DAQmx module renamed - to "MySwitch" SCXI1::3 Traditional NI-DAQ module in chassis 1, slot 3 - SCXI::3 Traditional NI-DAQ module in chassis 1, slot 3 PXI0::16 PXI bus - 0, device number 16 PXI::16 PXI bus 0, device number 16 - - - - - :type resource_name: str - - :param topology: - - - Pass the topology name you want to use for the switch you specify with - Resource Name parameter. You can also pass - "Configured Topology" to use the last topology that - was configured for the device in MAX. - Default Value: - "Configured Topology" - Valid Values: - "Configured Topology" - "2501/1-Wire 48x1 Mux" - "2501/1-Wire 48x1 Amplified Mux" - "2501/2-Wire 24x1 Mux" - "2501/2-Wire 24x1 Amplified Mux" - "2501/2-Wire Dual 12x1 Mux" - "2501/2-Wire Quad 6x1 Mux" - "2501/2-Wire 4x6 Matrix" - "2501/4-Wire 12x1 Mux" - "2503/1-Wire 48x1 Mux" - "2503/2-Wire 24x1 Mux" - "2503/2-Wire Dual 12x1 Mux" - "2503/2-Wire Quad 6x1 Mux" - "2503/2-Wire 4x6 Matrix" - "2503/4-Wire 12x1 Mux" - "2510/Independent" - "2512/Independent" - "2514/Independent" - "2515/Independent" - "2520/80-SPST" - "2521/40-DPST" - "2522/53-SPDT" - "2523/26-DPDT" - "2524/1-Wire 128x1 Mux" - "2524/1-Wire Dual 64x1 Mux" - "2524/1-Wire Quad 32x1 Mux" - "2524/1-Wire Octal 16x1 Mux" - "2524/1-Wire Sixteen 8x1 Mux" - "2525/2-Wire 64x1 Mux" - "2525/2-Wire Dual 32x1 Mux" - "2525/2-Wire Quad 16x1 Mux" - "2525/2-Wire Octal 8x1 Mux" - "2525/2-Wire Sixteen 4x1 Mux" - "2526/1-Wire 158x1 Mux" - "2526/2-Wire 79x1 Mux" - "2527/1-Wire 64x1 Mux" - "2527/1-Wire Dual 32x1 Mux" - "2527/2-Wire 32x1 Mux" - "2527/2-Wire Dual 16x1 Mux" - "2527/4-Wire 16x1 Mux" - "2527/Independent" - "2529/2-Wire Dual 4x16 Matrix" - "2529/2-Wire 8x16 Matrix" - "2529/2-Wire 4x32 Matrix" - "2530/1-Wire 128x1 Mux" - "2530/1-Wire Dual 64x1 Mux" - "2530/1-Wire 4x32 Matrix" - "2530/1-Wire 8x16 Matrix" - "2530/1-Wire Octal 16x1 Mux" - "2530/1-Wire Quad 32x1 Mux" - "2530/2-Wire 4x16 Matrix" - "2530/2-Wire 64x1 Mux" - "2530/2-Wire Dual 32x1 Mux" - "2530/2-Wire Quad 16x1 Mux" - "2530/4-Wire 32x1 Mux" - "2530/4-Wire Dual 16x1 Mux" - "2530/Independent" - "2531/1-Wire 4x128 Matrix" - "2531/1-Wire 8x64 Matrix" - "2531/1-Wire Dual 4x64 Matrix" - "2531/1-Wire Dual 8x32 Matrix" - "2531/2-Wire 4x64 Matrix" - "2531/2-Wire 8x32 Matrix" - "2532/1-Wire 16x32 Matrix" - "2532/1-Wire 4x128 Matrix" - "2532/1-Wire 8x64 Matrix" - "2532/1-Wire Dual 16x16 Matrix" - "2532/1-Wire Dual 4x64 Matrix" - "2532/1-Wire Dual 8x32 Matrix" - "2532/1-Wire Quad 4x32 Matrix" - "2532/1-Wire Sixteen 2x16 Matrix" - "2532/2-Wire 16x16 Matrix" - "2532/2-Wire 4x64 Matrix" - "2532/2-Wire 8x32 Matrix" - "2532/2-Wire Dual 4x32 Matrix" - "2533/1-Wire 4x64 Matrix" - "2534/1-Wire 8x32 Matrix" - "2535/1-Wire 4x136 Matrix" - "2536/1-Wire 8x68 Matrix" - "2540/1-Wire 8x9 Matrix" - "2541/1-Wire 8x12 Matrix" - "2542/Quad 2x1 Terminated Mux" - "2543/Dual 4x1 Terminated Mux" - "2544/8x1 Terminated Mux" - "2545/4x1 Terminated Mux" - "2546/Dual 4x1 Mux" - "2547/8x1 Mux" - "2548/4-SPDT" - "2549/Terminated 2-SPDT" - "2554/4x1 Mux" - "2555/4x1 Terminated Mux" - "2556/Dual 4x1 Mux" - "2557/8x1 Mux" - "2558/4-SPDT" - "2559/Terminated 2-SPDT" - "2564/16-SPST" - "2564/8-DPST" - "2565/16-SPST" - "2566/16-SPDT" - "2566/8-DPDT" - "2567/Independent" - "2568/15-DPST" - "2568/31-SPST" - "2569/100-SPST" - "2569/50-DPST" - "2570/20-DPDT" - "2570/40-SPDT" - "2571/66-SPDT" - "2575/1-Wire 196x1 Mux" - "2575/2-Wire 98x1 Mux" - "2575/2-Wire 95x1 Mux" - "2576/2-Wire 64x1 Mux" - "2576/2-Wire Dual 32x1 Mux" - "2576/2-Wire Octal 8x1 Mux" - "2576/2-Wire Quad 16x1 Mux" - "2576/2-Wire Sixteen 4x1 Mux" - "2576/Independent" - "2584/1-Wire 12x1 Mux" - "2584/1-Wire Dual 6x1 Mux" - "2584/2-Wire 6x1 Mux" - "2584/Independent" - "2585/1-Wire 10x1 Mux" - "2586/10-SPST" - "2586/5-DPST" - "2590/4x1 Mux" - "2591/4x1 Mux" - "2593/16x1 Mux" - "2593/8x1 Terminated Mux" - "2593/Dual 8x1 Mux" - "2593/Dual 4x1 Terminated Mux" - "2593/Independent" - "2594/4x1 Mux" - "2595/4x1 Mux" - "2596/Dual 6x1 Mux" - "2597/6x1 Terminated Mux" - "2598/Dual Transfer" - "2599/2-SPDT" - "2720/Independent" - "2722/Independent" - "2725/Independent" - "2727/Independent" - "2737/2-Wire 4x64 Matrix" - "2738/2-Wire 8x32 Matrix" - "2739/2-Wire 16x16 Matrix" - "2746/Quad 4x1 Mux" - "2747/Dual 8x1 Mux" - "2748/16x1 Mux" - "2790/Independent" - "2796/Dual 6x1 Mux" - "2797/6x1 Terminated Mux" - "2798/Dual Transfer" - "2799/2-SPDT" - - - - - :type topology: str - - :param simulate: - - - Enables simulation of the switch module specified in the resource name - parameter. Valid Values: True - simulate False - Don't simulate - (Default Value) - - - - - :type simulate: bool - - :param reset_device: - - - Specifies whether to reset the switch module during the initialization - process. Valid Values: True - Reset Device (Default Value) False - - Currently unsupported. The device will not reset. - - - - - :type reset_device: bool - - :param grpc_options: - - - MeasurementLink gRPC session options - - - - - :type grpc_options: niswitch.GrpcSessionOptions - - -Methods -======= - -abort ------ - - .. py:currentmodule:: niswitch.Session - - .. py:method:: abort() - - Aborts the scan in progress. Initiate a scan with - :py:meth:`niswitch.Session.initiate`. If the switch module is not scanning, - NISWITCH_ERROR_NO_SCAN_IN_PROGRESS error is returned. - - - - - -can_connect ------------ - - .. py:currentmodule:: niswitch.Session - - .. py:method:: can_connect(channel1, channel2) - - Verifies that a path between channel 1 and channel 2 can be created. If - a path is possible in the switch module, the availability of that path - is returned given the existing connections. If the path is possible but - in use, a NISWITCH_WARN_IMPLICIT_CONNECTION_EXISTS warning is - returned. - - - - - - :param channel1: - - - Input one of the channel names of the desired path. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - - - - :type channel1: str - :param channel2: - - - Input one of the channel names of the desired path. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - - - - :type channel2: str - - :rtype: :py:data:`niswitch.PathCapability` - :return: - - - Indicates whether a path is valid. Possible values include: - - - :py:data:`~niswitch.PathCapability.PATH_AVAILABLE` 1 - - :py:data:`~niswitch.PathCapability.PATH_EXISTS` 2 - - :py:data:`~niswitch.PathCapability.PATH_UNSUPPORTED` 3 - - :py:data:`~niswitch.PathCapability.RESOURCE_IN_USE` 4 - - :py:data:`~niswitch.PathCapability.SOURCE_CONFLICT` 5 - - :py:data:`~niswitch.PathCapability.CHANNEL_NOT_AVAILABLE` 6 - - Notes: (1) - :py:data:`~niswitch.PathCapability.PATH_AVAILABLE` indicates that the driver can create the - path at this time. (2) :py:data:`~niswitch.PathCapability.PATH_EXISTS` indicates that the - path already exists. (3) :py:data:`~niswitch.PathCapability.PATH_UNSUPPORTED` indicates that - the instrument is not capable of creating a path between the channels - you specify. (4) :py:data:`~niswitch.PathCapability.RESOURCE_IN_USE` indicates that although - the path is valid, the driver cannot create the path at this moment - because the switch device is currently using one or more of the required - channels to create another path. You must destroy the other path before - creating this one. (5) :py:data:`~niswitch.PathCapability.SOURCE_CONFLICT` indicates that - the instrument cannot create a path because both channels are connected - to a different source channel. (6) - :py:data:`~niswitch.PathCapability.CHANNEL_NOT_AVAILABLE` indicates that the driver cannot - create a path between the two channels because one of the channels is a - configuration channel and thus unavailable for external connections. - - - - - -close ------ - - .. py:currentmodule:: niswitch.Session - - .. py:method:: close() - - Terminates the NI-SWITCH session and all of its properties and - deallocates any memory resources the driver uses. Notes: (1) You must - unlock the session before calling :py:meth:`niswitch.Session._close`. (2) After calling - :py:meth:`niswitch.Session._close`, you cannot use the instrument driver again until you - call :py:meth:`niswitch.Session.init` or :py:meth:`niswitch.Session.InitWithOptions`. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - .. note:: This method is not needed when using the session context manager - - - -commit ------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: commit() - - Downloads the configured scan list and trigger settings to hardware. - Calling :py:meth:`niswitch.Session.commit` optional as it is implicitly called during - :py:meth:`niswitch.Session.initiate`. Use :py:meth:`niswitch.Session.commit` to arm triggers in a given - order or to control when expensive hardware operations are performed. - - - - - -connect -------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: connect(channel1, channel2) - - Creates a path between channel 1 and channel 2. The driver calculates - and uses the shortest path between the two channels. Refer to Immediate - Operations for information about Channel Usage types. If a path is not - available, the method returns one of the following errors: - - NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are - already explicitly connected by calling either the :py:meth:`niswitch.Session.connect` or - :py:meth:`niswitch.Session.set_path` method. - - NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a - configuration channel. Error elaboration contains information about - which of the two channels is a configuration channel. - - NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are - connected to a different source. Error elaboration contains information - about sources channel 1 and 2 connect to. - - NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are - one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the - driver cannot find a path between the two channels. Note: Paths are - bidirectional. For example, if a path exists between channels CH1 and - CH2, then the path also exists between channels CH2 and CH1. - - - - - - :param channel1: - - - Input one of the channel names of the desired path. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - - - - :type channel1: str - :param channel2: - - - Input one of the channel names of the desired path. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - - - - :type channel2: str - -connect_multiple ----------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: connect_multiple(connection_list) - - Creates the connections between channels specified in Connection List. - Specify connections with two endpoints only or the explicit path between - two endpoints. NI-SWITCH calculates and uses the shortest path between - the channels. Refer to Setting Source and Configuration Channels for - information about channel usage types. In the event of an error, - connecting stops at the point in the list where the error occurred. If a - path is not available, the method returns one of the following errors: - - NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are - already explicitly connected. - - NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a - configuration channel. Error elaboration contains information about - which of the two channels is a configuration channel. - - NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are - connected to a different source. Error elaboration contains information - about sources channel 1 and 2 to connect. - - NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are - one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the - driver cannot find a path between the two channels. Note: Paths are - bidirectional. For example, if a path exists between channels ch1 and - ch2, then the path also exists between channels ch1 and ch2. - - - - - - :param connection_list: - - - Connection List specifies a list of connections between channels to - make. NI-SWITCH validates the connection list, and aborts execution of - the list if errors are returned. Refer to Connection and Disconnection - List Syntax for valid connection list syntax and examples. Refer to - Devices Overview for valid channel names for the switch module. Example - of a valid connection list: c0 -> r1, [c2 -> r2 -> c3] In this example, - r2 is a configuration channel. Default value: None - - - - - :type connection_list: str - -disable -------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: disable() - - Places the switch module in a quiescent state where it has minimal or no - impact on the system to which it is connected. All channels are - disconnected and any scan in progress is aborted. - - - - - -disconnect ----------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: disconnect(channel1, channel2) - - This method destroys the path between two channels that you create - with the :py:meth:`niswitch.Session.connect` or :py:meth:`niswitch.Session.set_path` method. If a path is - not connected or not available, the method returns the - IVISWTCH_ERROR_NO_SUCH_PATH error. - - - - - - :param channel1: - - - Input one of the channel names of the path to break. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - - - - :type channel1: str - :param channel2: - - - Input one of the channel names of the path to break. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - - - - :type channel2: str - -disconnect_all --------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: disconnect_all() - - Breaks all existing paths. If the switch module cannot break all paths, - NISWITCH_WARN_PATH_REMAINS warning is returned. - - - - - -disconnect_multiple -------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: disconnect_multiple(disconnection_list) - - Breaks the connections between channels specified in Disconnection List. - If no connections exist between channels, NI-SWITCH returns an error. In - the event of an error, the VI stops at the point in the list where the - error occurred. - - - - - - :param disconnection_list: - - - Disconnection List specifies a list of connections between channels to - break. NI-SWITCH validates the disconnection list, and aborts execution - of the list if errors are returned. Refer to Connection and - Disconnection List Syntax for valid disconnection list syntax and - examples. Refer to Devices Overview for valid channel names for the - switch module. Example of a valid disconnection list: c0 -> r1, [c2 -> - r2 -> c3] In this example, r2 is a configuration channel. Default value: - None - - - - - :type disconnection_list: str - -get_channel_name ----------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: get_channel_name(index) - - Returns the channel string that is in the channel table at the specified - index. Use :py:meth:`niswitch.Session.get_channel_name` in a For Loop to get a complete list - of valid channel names for the switch module. Use the Channel Count - property to determine the number of channels. - - - - - - :param index: - - - A 1-based index into the channel table. Default value: 1 Maximum value: - Value of Channel Count property. - - - - - :type index: int - - :rtype: str - :return: - - - Returns the channel name that is in the channel table at the index you - specify. - - - - - -get_path --------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: get_path(channel1, channel2) - - Returns a string that identifies the explicit path created with - :py:meth:`niswitch.Session.connect`. Pass this string to :py:meth:`niswitch.Session.set_path` to establish - the exact same path in future connections. In some cases, multiple paths - are available between two channels. When you call :py:meth:`niswitch.Session.connect`, the - driver selects an available path. With :py:meth:`niswitch.Session.connect`, there is no - guarantee that the driver selected path will always be the same path - through the switch module. :py:meth:`niswitch.Session.get_path` only returns those paths - explicitly created by niSwitch Connect Channels or :py:meth:`niswitch.Session.set_path`. - For example, if you connect channels CH1 and CH3,and then channels CH2 - and CH3, an explicit path between channels CH1 and CH2 does not exist an - error is returned - - - - - - :param channel1: - - - Input one of the channel names of the desired path. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - - - - :type channel1: str - :param channel2: - - - Input one of the channel names of the desired path. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - - - - :type channel2: str - - :rtype: str - :return: - - - A string composed of comma-separated paths between channel 1 and channel - 2. The first and last names in the path are the endpoints of the path. - All other channels in the path are configuration channels. Examples of - returned paths: ch0->com0, com0->ab0 - - - - - -get_relay_count ---------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: get_relay_count(relay_name) - - Returns the number of times the relay has changed from Closed to Open. - Relay count is useful for tracking relay lifetime and usage. Call - :py:meth:`niswitch.Session.wait_for_debounce` before :py:meth:`niswitch.Session.get_relay_count` to ensure an - accurate count. Refer to the Relay Count topic in the NI Switches Help - to determine if the switch module supports relay counting. - - - - - - :param relay_name: - - - Name of the relay. Default value: None Examples of valid relay names: - ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid - relay names for the switch module. - - - - - :type relay_name: str - - :rtype: int - :return: - - - The number of relay cycles. - - - - - -get_relay_name --------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: get_relay_name(index) - - Returns the relay name string that is in the relay list at the specified - index. Use :py:meth:`niswitch.Session.get_relay_name` in a For Loop to get a complete list - of valid relay names for the switch module. Use the Number of Relays - property to determine the number of relays. - - - - - - :param index: - - - A 1-based index into the channel table. Default value: 1 Maximum value: - Value of Channel Count property. - - - - - :type index: int - - :rtype: str - :return: - - - Returns the relay name for the index you specify. - - - - - -get_relay_position ------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: get_relay_position(relay_name) - - Returns the relay position for the relay specified in the Relay Name - parameter. - - - - - - :param relay_name: - - - Name of the relay. Default value: None Examples of valid relay names: - ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid - relay names for the switch module. - - - - - :type relay_name: str - - :rtype: :py:data:`niswitch.RelayPosition` - :return: - - - Indicates whether the relay is open or closed. :py:data:`~niswitch.RelayPosition.OPEN` 10 - :py:data:`~niswitch.RelayPosition.CLOSED` 11 - - - - - -initiate --------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: initiate() - - Commits the configured scan list and trigger settings to hardware and - initiates the scan. If niSwitch Commit was called earlier, niSwitch - Initiate Scan only initiates the scan and returns immediately. Once the - scanning operation begins, you cannot perform any other operation other - than GetAttribute, AbortScan, or SendSoftwareTrigger. All other - methods return NISWITCH_ERROR_SCAN_IN_PROGRESS. To stop the - scanning operation, To stop the scanning operation, call - :py:meth:`niswitch.Session.abort`. - - - - .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. - - - -lock ----- - - .. py:currentmodule:: niswitch.Session - -.. py:method:: lock() - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the :py:meth:`niswitch.Session.lock` method. - - A call to NI-SWITCH locked the session. - - After a call to the :py:meth:`niswitch.Session.lock` method returns - successfully, no other threads can access the device session until - you call the :py:meth:`niswitch.Session.unlock` method or exit out of the with block when using - lock context manager. - - Use the :py:meth:`niswitch.Session.lock` method and the - :py:meth:`niswitch.Session.unlock` method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the :py:meth:`niswitch.Session.lock` method - within the same thread. To completely unlock the session, you must - balance each call to the :py:meth:`niswitch.Session.lock` method with a call to - the :py:meth:`niswitch.Session.unlock` method. - - One method for ensuring there are the same number of unlock method calls as there is lock calls - is to use lock as a context manager - - .. code:: python - - with niswitch.Session('dev1') as session: - with session.lock(): - # Calls to session within a single lock context - - The first `with` block ensures the session is closed regardless of any exceptions raised - - The second `with` block ensures that unlock is called regardless of any exceptions raised - - :rtype: context manager - :return: - When used in a `with` statement, :py:meth:`niswitch.Session.lock` acts as - a context manager and unlock will be called when the `with` block is exited - -relay_control -------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: relay_control(relay_name, relay_action) - - Controls individual relays of the switch. When controlling individual - relays, the protection offered by setting the usage of source channels - and configuration channels, and by enabling or disabling analog bus - sharing on the NI SwitchBlock, does not apply. Refer to the device book - for your switch in the NI Switches Help to determine if the switch - supports individual relay control. - - - - - - :param relay_name: - - - Name of the relay. Default value: None Examples of valid relay names: - ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid - relay names for the switch module. - - - - - :type relay_name: str - :param relay_action: - - - Specifies whether to open or close a given relay. Default value: Relay - Close Defined values: :py:data:`~niswitch.RelayAction.OPEN` - :py:data:`~niswitch.RelayAction.CLOSE` (Default Value) - - - - - :type relay_action: :py:data:`niswitch.RelayAction` - -reset ------ - - .. py:currentmodule:: niswitch.Session - - .. py:method:: reset() - - Disconnects all created paths and returns the switch module to the state - at initialization. Configuration channel and source channel settings - remain unchanged. - - - - - -reset_with_defaults -------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: reset_with_defaults() - - Resets the switch module and applies initial user specified settings - from the logical name used to initialize the session. If the session was - created without a logical name, this method is equivalent to - :py:meth:`niswitch.Session.reset`. - - - - - -route_scan_advanced_output --------------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: route_scan_advanced_output(scan_advanced_output_connector, scan_advanced_output_bus_line, invert=False) - - Routes the scan advanced output trigger from a trigger bus line (TTLx) - to the front or rear connector. - - - - - - :param scan_advanced_output_connector: - - - The scan advanced trigger destination. Valid locations are the - :py:data:`~niswitch.ScanAdvancedOutput.FRONTCONNECTOR` and :py:data:`~niswitch.ScanAdvancedOutput.REARCONNECTOR`. Default - value: :py:data:`~niswitch.ScanAdvancedOutput.FRONTCONNECTOR` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type scan_advanced_output_connector: :py:data:`niswitch.ScanAdvancedOutput` - :param scan_advanced_output_bus_line: - - - The trigger line to route the scan advanced output trigger from the - front or rear connector. Select :py:data:`~niswitch.ScanAdvancedOutput.NONE` to break an existing - route. Default value: None Valid Values: :py:data:`~niswitch.ScanAdvancedOutput.NONE` - :py:data:`~niswitch.ScanAdvancedOutput.TTL0` :py:data:`~niswitch.ScanAdvancedOutput.TTL1` :py:data:`~niswitch.ScanAdvancedOutput.TTL2` - :py:data:`~niswitch.ScanAdvancedOutput.TTL3` :py:data:`~niswitch.ScanAdvancedOutput.TTL4` :py:data:`~niswitch.ScanAdvancedOutput.TTL5` - :py:data:`~niswitch.ScanAdvancedOutput.TTL6` :py:data:`~niswitch.ScanAdvancedOutput.TTL7` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type scan_advanced_output_bus_line: :py:data:`niswitch.ScanAdvancedOutput` - :param invert: - - - If True, inverts the input trigger signal from falling to rising or - vice versa. Default value: False - - - - - :type invert: bool - -route_trigger_input -------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: route_trigger_input(trigger_input_connector, trigger_input_bus_line, invert=False) - - Routes the input trigger from the front or rear connector to a trigger - bus line (TTLx). To disconnect the route, call this method again and - specify None for trigger bus line parameter. - - - - - - :param trigger_input_connector: - - - The location of the input trigger source on the switch module. Valid - locations are the :py:data:`~niswitch.TriggerInput.FRONTCONNECTOR` and - :py:data:`~niswitch.TriggerInput.REARCONNECTOR`. Default value: - :py:data:`~niswitch.TriggerInput.FRONTCONNECTOR` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger_input_connector: :py:data:`niswitch.TriggerInput` - :param trigger_input_bus_line: - - - The trigger line to route the input trigger. Select :py:data:`~niswitch.NISWITCH_VAL_NONE` - to break an existing route. Default value: None Valid Values: - :py:data:`~niswitch.NISWITCH_VAL_NONE` :py:data:`~niswitch.TriggerInput.TTL0` :py:data:`~niswitch.TriggerInput.TTL1` - :py:data:`~niswitch.TriggerInput.TTL2` :py:data:`~niswitch.TriggerInput.TTL3` :py:data:`~niswitch.TriggerInput.TTL4` - :py:data:`~niswitch.TriggerInput.TTL5` :py:data:`~niswitch.TriggerInput.TTL6` :py:data:`~niswitch.TriggerInput.TTL7` - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - :type trigger_input_bus_line: :py:data:`niswitch.TriggerInput` - :param invert: - - - If True, inverts the input trigger signal from falling to rising or - vice versa. Default value: False - - - - - :type invert: bool - -self_test ---------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: self_test() - - Verifies that the driver can communicate with the switch module. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - - -send_software_trigger ---------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: send_software_trigger() - - Sends a software trigger to the switch module specified in the NI-SWITCH - session. When the trigger input is set to :py:data:`~niswitch.TriggerInput.SOFTWARE_TRIG` - through either the :py:meth:`niswitch.Session.ConfigureScanTrigger` or the - :py:attr:`niswitch.Session.trigger_input` property, the scan does not proceed from - a semi-colon (wait for trigger) until :py:meth:`niswitch.Session.send_software_trigger` is - called. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - - -set_path --------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: set_path(path_list) - - Connects two channels by specifying an explicit path in the path list - parameter. :py:meth:`niswitch.Session.set_path` is particularly useful where path - repeatability is important, such as in calibrated signal paths. If this - is not necessary, use :py:meth:`niswitch.Session.connect`. - - - - - - :param path_list: - - - A string composed of comma-separated paths between channel 1 and channel - 2. The first and last names in the path are the endpoints of the path. - Every other channel in the path are configuration channels. Example of a - valid path list string: ch0->com0, com0->ab0. In this example, com0 is a - configuration channel. Default value: None Obtain the path list for a - previously created path with :py:meth:`niswitch.Session.get_path`. - - - - - :type path_list: str - -unlock ------- - - .. py:currentmodule:: niswitch.Session - -.. py:method:: unlock() - - Releases a lock that you acquired on an device session using - :py:meth:`niswitch.Session.lock`. Refer to :py:meth:`niswitch.Session.unlock` for additional - information on session locks. - -wait_for_debounce ------------------ - - .. py:currentmodule:: niswitch.Session - - .. py:method:: wait_for_debounce(maximum_time_ms=hightime.timedelta(milliseconds=5000)) - - Pauses until all created paths have settled. If the time you specify - with the Maximum Time (ms) parameter elapsed before the switch paths - have settled, this method returns the - NISWITCH_ERROR_MAX_TIME_EXCEEDED error. - - - - - - :param maximum_time_ms: - - - Specifies the maximum length of time to wait for all relays in the - switch module to activate or deactivate. If the specified time elapses - before all relays active or deactivate, a timeout error is returned. - Default Value:5000 ms - - - - - :type maximum_time_ms: hightime.timedelta, datetime.timedelta, or int in milliseconds - -wait_for_scan_complete ----------------------- - - .. py:currentmodule:: niswitch.Session - - .. py:method:: wait_for_scan_complete(maximum_time_ms=hightime.timedelta(milliseconds=5000)) - - Pauses until the switch module stops scanning or the maximum time has - elapsed and returns a timeout error. If the time you specify with the - Maximum Time (ms) parameter elapsed before the scanning operation has - finished, this method returns the NISWITCH_ERROR_MAX_TIME_EXCEEDED - error. - - - - - - :param maximum_time_ms: - - - Specifies the maximum length of time to wait for the switch module to - stop scanning. If the specified time elapses before the scan ends, - NISWITCH_ERROR_MAX_TIME_EXCEEDED error is returned. Default - Value:5000 ms - - - - - :type maximum_time_ms: hightime.timedelta, datetime.timedelta, or int in milliseconds - - -Properties -========== - -analog_bus_sharing_enable -------------------------- - - .. py:attribute:: analog_bus_sharing_enable - - Enables or disables sharing of an analog bus line so that multiple NI SwitchBlock devices may connect to it simultaneously. To enable multiple NI SwitchBlock devices to share an analog bus line, set this property to True for each device on the channel that corresponds with the shared analog bus line. The default value for all devices is False, which disables sharing of the analog bus. - Refer to the Using the Analog Bus on an NI SwitchBlock Carrier topic in the NI Switches Help for more information about sharing the analog bus. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].analog_bus_sharing_enable` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.analog_bus_sharing_enable` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Channel Configuration:Analog Bus Sharing Enable** - - C Attribute: **NISWITCH_ATTR_ANALOG_BUS_SHARING_ENABLE** - -bandwidth ---------- - - .. py:attribute:: bandwidth - - This channel-based property returns the bandwidth for the channel. - The units are hertz. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.bandwidth` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Bandwidth** - - C Attribute: **NISWITCH_ATTR_BANDWIDTH** - -channel_count -------------- - - .. py:attribute:: channel_count - - Indicates the number of channels that the specific instrument driver supports. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Channel Count** - - C Attribute: **NISWITCH_ATTR_CHANNEL_COUNT** - -characteristic_impedance ------------------------- - - .. py:attribute:: characteristic_impedance - - This channel-based property returns the characteristic impedance for the channel. - The units are ohms. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].characteristic_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.characteristic_impedance` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Characteristic Impedance** - - C Attribute: **NISWITCH_ATTR_CHARACTERISTIC_IMPEDANCE** - -continuous_scan ---------------- - - .. py:attribute:: continuous_scan - - When a switch device is scanning, the swich can either stop scanning when the end of the scan (False) or continue scanning from the top of the scan list again (True). - Notice that if you set the scan to continuous (True), the Wait For Scan Complete operation will always time out and you must call Abort to stop the scan. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Continuous Scan** - - C Attribute: **NISWITCH_ATTR_CONTINUOUS_SCAN** - -digital_filter_enable ---------------------- - - .. py:attribute:: digital_filter_enable - - This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (True) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7. - When Digital Filter is disabled (False), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Digital Filter Enable** - - C Attribute: **NISWITCH_ATTR_DIGITAL_FILTER_ENABLE** - -driver_setup ------------- - - .. py:attribute:: driver_setup - - This property indicates the Driver Setup string that the user specified when initializing the driver. - Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the :py:meth:`niswitch.Session.InitWithOptions` method, or through the IVI Configuration Utility. - If the user does not specify a Driver Setup string, this property returns an empty string. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Driver Setup** - - C Attribute: **NISWITCH_ATTR_DRIVER_SETUP** - -handshaking_initiation ----------------------- - - .. py:attribute:: handshaking_initiation - - - - The following table lists the characteristics of this property. - - +-----------------------+-----------------------------+ - | Characteristic | Value | - +=======================+=============================+ - | Datatype | enums.HandshakingInitiation | - +-----------------------+-----------------------------+ - | Permissions | read-write | - +-----------------------+-----------------------------+ - | Repeated Capabilities | None | - +-----------------------+-----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Handshaking Initiation** - - C Attribute: **NISWITCH_ATTR_HANDSHAKING_INITIATION** - -instrument_firmware_revision ----------------------------- - - .. py:attribute:: instrument_firmware_revision - - A string that contains the firmware revision information for the instrument you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** - - C Attribute: **NISWITCH_ATTR_INSTRUMENT_FIRMWARE_REVISION** - -instrument_manufacturer ------------------------ - - .. py:attribute:: instrument_manufacturer - - A string that contains the name of the instrument manufacturer you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** - - C Attribute: **NISWITCH_ATTR_INSTRUMENT_MANUFACTURER** - -instrument_model ----------------- - - .. py:attribute:: instrument_model - - A string that contains the model number or name of the instrument that you are currently using. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** - - C Attribute: **NISWITCH_ATTR_INSTRUMENT_MODEL** - -io_resource_descriptor ----------------------- - - .. py:attribute:: io_resource_descriptor - - Indicates the resource descriptor the driver uses to identify the physical device. - If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. - If you initialize the instrument driver with the resource descriptor, this property contains that value. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:IO Resource Descriptor** - - C Attribute: **NISWITCH_ATTR_IO_RESOURCE_DESCRIPTOR** - -is_configuration_channel ------------------------- - - .. py:attribute:: is_configuration_channel - - This channel-based property specifies whether to reserve the channel for internal path creation. A channel that is available for internal path creation is called a configuration channel. The driver may use configuration channels to create paths between two channels you specify in the :py:meth:`niswitch.Session.connect` method. Configuration channels are not available for external connections. - Set this property to True to mark the channel as a configuration channel. Set this property to False to mark the channel as available for external connections. - After you identify a channel as a configuration channel, you cannot use that channel for external connections. The :py:meth:`niswitch.Session.connect` method returns the NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL error when you attempt to establish a connection between a configuration channel and any other channel. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].is_configuration_channel` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.is_configuration_channel` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Channel Configuration:Is Configuration Channel** - - C Attribute: **NISWITCH_ATTR_IS_CONFIGURATION_CHANNEL** - -is_debounced ------------- - - .. py:attribute:: is_debounced - - This property indicates whether the entire switch device has settled since the last switching command. A value of True indicates that all signals going through the switch device are valid. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Is Debounced** - - C Attribute: **NISWITCH_ATTR_IS_DEBOUNCED** - -is_scanning ------------ - - .. py:attribute:: is_scanning - - If True, the switch module is currently scanning through the scan list (i.e. it is not in the Idle state). If False, the switch module is not currently scanning through the scan list (i.e. it is in the Idle state). - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Is Scanning** - - C Attribute: **NISWITCH_ATTR_IS_SCANNING** - -is_source_channel ------------------ - - .. py:attribute:: is_source_channel - - This channel-based property specifies whether you want to identify the channel as a source channel. Typically, you set this property to True when you attach the channel to a power supply, a method generator, or an active measurement point on the unit under test, and you do not want to connect the channel to another source. The driver prevents source channels from connecting to each other. The :py:meth:`niswitch.Session.connect` method returns the NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES when you attempt to connect two channels that you identify as source channels. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].is_source_channel` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.is_source_channel` - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | channels | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Channel Configuration:Is Source Channel** - - C Attribute: **NISWITCH_ATTR_IS_SOURCE_CHANNEL** - -is_waiting_for_trig -------------------- - - .. py:attribute:: is_waiting_for_trig - - In a scan list, a semi-colon (;) is used to indicate that at that point in the scan list, the scan engine should pause until a trigger is received from the trigger input. If that trigger is user generated through either a hardware pulse or the Send SW Trigger operation, it is necessary for the user to know when the scan engine has reached such a state. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | bool | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Is Waiting for Trigger?** - - C Attribute: **NISWITCH_ATTR_IS_WAITING_FOR_TRIG** - -logical_name ------------- - - .. py:attribute:: logical_name - - A string containing the logical name you specified when opening the current IVI session. - You may pass a logical name to the :py:meth:`niswitch.Session.init` or :py:meth:`niswitch.Session.InitWithOptions` methods. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** - - C Attribute: **NISWITCH_ATTR_LOGICAL_NAME** - -max_ac_voltage --------------- - - .. py:attribute:: max_ac_voltage - - This channel-based property returns the maximum AC voltage the channel can switch. - The units are volts RMS. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_ac_voltage` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_ac_voltage` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum AC Voltage** - - C Attribute: **NISWITCH_ATTR_MAX_AC_VOLTAGE** - -max_carry_ac_current --------------------- - - .. py:attribute:: max_carry_ac_current - - This channel-based property returns the maximum AC current the channel can carry. - The units are amperes RMS. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_ac_current` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Carry AC Current** - - C Attribute: **NISWITCH_ATTR_MAX_CARRY_AC_CURRENT** - -max_carry_ac_power ------------------- - - .. py:attribute:: max_carry_ac_power - - This channel-based property returns the maximum AC power the channel can carry. - The units are volt-amperes. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_ac_power` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Carry AC Power** - - C Attribute: **NISWITCH_ATTR_MAX_CARRY_AC_POWER** - -max_carry_dc_current --------------------- - - .. py:attribute:: max_carry_dc_current - - This channel-based property returns the maximum DC current the channel can carry. - The units are amperes. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_dc_current` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Carry DC Current** - - C Attribute: **NISWITCH_ATTR_MAX_CARRY_DC_CURRENT** - -max_carry_dc_power ------------------- - - .. py:attribute:: max_carry_dc_power - - This channel-based property returns the maximum DC power the channel can carry. - The units are watts. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_dc_power` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Carry DC Power** - - C Attribute: **NISWITCH_ATTR_MAX_CARRY_DC_POWER** - -max_dc_voltage --------------- - - .. py:attribute:: max_dc_voltage - - This channel-based property returns the maximum DC voltage the channel can switch. - The units are volts. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_dc_voltage` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_dc_voltage` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum DC Voltage** - - C Attribute: **NISWITCH_ATTR_MAX_DC_VOLTAGE** - -max_switching_ac_current ------------------------- - - .. py:attribute:: max_switching_ac_current - - This channel-based property returns the maximum AC current the channel can switch. - The units are amperes RMS. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_ac_current` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Switching AC Current** - - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_AC_CURRENT** - -max_switching_ac_power ----------------------- - - .. py:attribute:: max_switching_ac_power - - This channel-based property returns the maximum AC power the channel can switch. - The units are volt-amperes. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_ac_power` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Switching AC Power** - - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_AC_POWER** - -max_switching_dc_current ------------------------- - - .. py:attribute:: max_switching_dc_current - - This channel-based property returns the maximum DC current the channel can switch. - The units are amperes. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_dc_current` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Switching DC Current** - - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_DC_CURRENT** - -max_switching_dc_power ----------------------- - - .. py:attribute:: max_switching_dc_power - - This channel-based property returns the maximum DC power the channel can switch. - The units are watts. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_dc_power` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Maximum Switching DC Power** - - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_DC_POWER** - -number_of_relays ----------------- - - .. py:attribute:: number_of_relays - - This property returns the number of relays. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Number of Relays** - - C Attribute: **NISWITCH_ATTR_NUMBER_OF_RELAYS** - -num_of_columns --------------- - - .. py:attribute:: num_of_columns - - This property returns the number of channels on the column of a matrix or scanner. If the switch device is a scanner, this value is the number of input channels. - The :py:attr:`niswitch.Session.wire_mode` property affects the number of available columns. For example, if your device has 8 input lines and you use the four-wire mode, then the number of columns you have available is 2. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Matrix Configuration:Number of Columns** - - C Attribute: **NISWITCH_ATTR_NUM_OF_COLUMNS** - -num_of_rows ------------ - - .. py:attribute:: num_of_rows - - This property returns the number of channels on the row of a matrix or scanner. If the switch device is a scanner, this value is the number of output channels. - The :py:attr:`niswitch.Session.wire_mode` property affects the number of available rows. For example, if your device has 8 input lines and you use the two-wire mode, then the number of columns you have available is 4. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Matrix Configuration:Number of Rows** - - C Attribute: **NISWITCH_ATTR_NUM_OF_ROWS** - -power_down_latching_relays_after_debounce ------------------------------------------ - - .. py:attribute:: power_down_latching_relays_after_debounce - - This property specifies whether to power down latching relays after calling Wait For Debounce. - When Power Down Latching Relays After Debounce is enabled (True), a call to Wait For Debounce ensures that the relays are settled and the latching relays are powered down. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Power Down Latching Relays After Debounce** - - C Attribute: **NISWITCH_ATTR_POWER_DOWN_LATCHING_RELAYS_AFTER_DEBOUNCE** - -scan_advanced_output --------------------- - - .. py:attribute:: scan_advanced_output - - This property specifies the method you want to use to notify another instrument that all signals going through the switch device have settled following the processing of one entry in the scan list. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------------+ - | Characteristic | Value | - +=======================+==========================+ - | Datatype | enums.ScanAdvancedOutput | - +-----------------------+--------------------------+ - | Permissions | read-write | - +-----------------------+--------------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Scan Advanced Output** - - C Attribute: **NISWITCH_ATTR_SCAN_ADVANCED_OUTPUT** - -scan_advanced_polarity ----------------------- - - .. py:attribute:: scan_advanced_polarity - - - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.ScanAdvancedPolarity | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Scan Advanced Polarity** - - C Attribute: **NISWITCH_ATTR_SCAN_ADVANCED_POLARITY** - -scan_delay ----------- - - .. py:attribute:: scan_delay - - This property specifies the minimum amount of time the switch device waits before it asserts the scan advanced output trigger after opening or closing the switch. The switch device always waits for debounce before asserting the trigger. The units are seconds. - the greater value of the settling time and the value you specify as the scan delay. - - - - .. note:: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | None | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Scan Delay** - - C Attribute: **NISWITCH_ATTR_SCAN_DELAY** - -scan_list ---------- - - .. py:attribute:: scan_list - - This property contains a scan list, which is a string that specifies channel connections and trigger conditions. The :py:meth:`niswitch.Session.initiate` method makes or breaks connections and waits for triggers according to the instructions in the scan list. - The scan list is comprised of channel names that you separate with special characters. These special characters determine the operations the scanner performs on the channels when it executes this scan list. - To create a path between two channels, use the following character between the two channel names: - -> (a dash followed by a '>' sign) - Example: 'CH1->CH2' tells the switch to make a path from channel CH1 to channel CH2. - To break or clear a path, use the following character as a prefix before the path: - ~ (tilde) - Example: '~CH1->CH2' tells the switch to break the path from channel CH1 to channel CH2. - To tell the switch device to wait for a trigger event, use the following character as a separator between paths: - ; (semi-colon) - Example: 'CH1->CH2;CH3->CH4' tells the switch to make the path from channel CH1 to channel CH2, wait for a trigger, and then make the path from CH3 to CH4. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | str | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Scan List** - - C Attribute: **NISWITCH_ATTR_SCAN_LIST** - -scan_mode ---------- - - .. py:attribute:: scan_mode - - This property specifies what happens to existing connections that conflict with the connections you make in a scan list. For example, if CH1 is already connected to CH2 and the scan list instructs the switch device to connect CH1 to CH3, this property specifies what happens to the connection between CH1 and CH2. - If the value of this property is :py:data:`~niswitch.ScanMode.NONE`, the switch device takes no action on existing paths. If the value is :py:data:`~niswitch.ScanMode.BREAK_BEFORE_MAKE`, the switch device breaks conflicting paths before making new ones. If the value is :py:data:`~niswitch.ScanMode.BREAK_AFTER_MAKE`, the switch device breaks conflicting paths after making new ones. - Most switch devices support only one of the possible values. In such cases, this property serves as an indicator of the device's behavior. - - - - .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - The following table lists the characteristics of this property. - - +-----------------------+----------------+ - | Characteristic | Value | - +=======================+================+ - | Datatype | enums.ScanMode | - +-----------------------+----------------+ - | Permissions | read-write | - +-----------------------+----------------+ - | Repeated Capabilities | None | - +-----------------------+----------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Scan Mode** - - C Attribute: **NISWITCH_ATTR_SCAN_MODE** - -serial_number -------------- - - .. py:attribute:: serial_number - - This read-only property returns the serial number for the switch device controlled by this instrument driver. If the device does not return a serial number, the driver returns the IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED error. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Serial Number** - - C Attribute: **NISWITCH_ATTR_SERIAL_NUMBER** - -settling_time -------------- - - .. py:attribute:: settling_time - - This channel-based property returns the maximum length of time from after you make a connection until the signal flowing through the channel settles. The units are seconds. - the greater value of the settling time and the value you specify as the scan delay. - - - - .. note:: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].settling_time` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.settling_time` - - The following table lists the characteristics of this property. - - +-----------------------+-------------------------------------------------------------+ - | Characteristic | Value | - +=======================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +-----------------------+-------------------------------------------------------------+ - | Permissions | read-write | - +-----------------------+-------------------------------------------------------------+ - | Repeated Capabilities | channels | - +-----------------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Settling Time** - - C Attribute: **NISWITCH_ATTR_SETTLING_TIME** - -simulate --------- - - .. py:attribute:: simulate - - Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. - The default value is False. Use the :py:meth:`niswitch.Session.InitWithOptions` method to override this value. - - - - .. note:: One or more of the referenced methods are not in the Python API for this driver. - - The following table lists the characteristics of this property. - - +-----------------------+------------+ - | Characteristic | Value | - +=======================+============+ - | Datatype | bool | - +-----------------------+------------+ - | Permissions | read-write | - +-----------------------+------------+ - | Repeated Capabilities | None | - +-----------------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** - - C Attribute: **NISWITCH_ATTR_SIMULATE** - -specific_driver_description ---------------------------- - - .. py:attribute:: specific_driver_description - - A string that contains a brief description of the specific driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** - - C Attribute: **NISWITCH_ATTR_SPECIFIC_DRIVER_DESCRIPTION** - -specific_driver_revision ------------------------- - - .. py:attribute:: specific_driver_revision - - A string that contains additional version information about this instrument driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** - - C Attribute: **NISWITCH_ATTR_SPECIFIC_DRIVER_REVISION** - -specific_driver_vendor ----------------------- - - .. py:attribute:: specific_driver_vendor - - A string that contains the name of the vendor that supplies this driver. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** - - C Attribute: **NISWITCH_ATTR_SPECIFIC_DRIVER_VENDOR** - -supported_instrument_models ---------------------------- - - .. py:attribute:: supported_instrument_models - - Contains a comma-separated list of supported instrument models. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | str | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** - - C Attribute: **NISWITCH_ATTR_SUPPORTED_INSTRUMENT_MODELS** - -temperature ------------ - - .. py:attribute:: temperature - - This property returns the temperature as read by the Switch module. The units are degrees Celsius. - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | float | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | None | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Temperature** - - C Attribute: **NISWITCH_ATTR_TEMPERATURE** - -trigger_input -------------- - - .. py:attribute:: trigger_input - - This property specifies the source of the trigger for which the switch device can wait when processing a scan list. The switch device waits for a trigger when it encounters a semi-colon in a scan list. When the trigger occurs, the switch device advances to the next entry in the scan list. - - The following table lists the characteristics of this property. - - +-----------------------+--------------------+ - | Characteristic | Value | - +=======================+====================+ - | Datatype | enums.TriggerInput | - +-----------------------+--------------------+ - | Permissions | read-write | - +-----------------------+--------------------+ - | Repeated Capabilities | None | - +-----------------------+--------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Trigger Input** - - C Attribute: **NISWITCH_ATTR_TRIGGER_INPUT** - -trigger_input_polarity ----------------------- - - .. py:attribute:: trigger_input_polarity - - Determines the behavior of the trigger Input. - - The following table lists the characteristics of this property. - - +-----------------------+----------------------------+ - | Characteristic | Value | - +=======================+============================+ - | Datatype | enums.TriggerInputPolarity | - +-----------------------+----------------------------+ - | Permissions | read-write | - +-----------------------+----------------------------+ - | Repeated Capabilities | None | - +-----------------------+----------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Scanning Configuration:Trigger Input Polarity** - - C Attribute: **NISWITCH_ATTR_TRIGGER_INPUT_POLARITY** - -wire_mode ---------- - - .. py:attribute:: wire_mode - - This property returns the wire mode of the switch device. - This property affects the values of the :py:attr:`niswitch.Session.num_of_rows` and :py:attr:`niswitch.Session.num_of_columns` properties. The actual number of input and output lines on the switch device is fixed, but the number of channels depends on how many lines constitute each channel. - - - - - .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].wire_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.wire_mode` - - The following table lists the characteristics of this property. - - +-----------------------+-----------+ - | Characteristic | Value | - +=======================+===========+ - | Datatype | int | - +-----------------------+-----------+ - | Permissions | read only | - +-----------------------+-----------+ - | Repeated Capabilities | channels | - +-----------------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Module Characteristics:Wire mode** - - C Attribute: **NISWITCH_ATTR_WIRE_MODE** - - -.. contents:: Session diff --git a/docs/niswitch/conf.py b/docs/niswitch/conf.py deleted file mode 100644 index af61a15ba6..0000000000 --- a/docs/niswitch/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-SWITCH Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-SWITCH Python API' -copyright = '2017-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NISWITCHPythonAPI.tex', 'NI-SWITCH Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'niswitchpythonapi', 'NI-SWITCH Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NISWITCHPythonAPI', 'NI-SWITCH Python API Documentation', - author, 'NISWITCHPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/niswitch/enums.rst b/docs/niswitch/enums.rst deleted file mode 100644 index 0595644944..0000000000 --- a/docs/niswitch/enums.rst +++ /dev/null @@ -1,1060 +0,0 @@ -Enums -===== - -Enums used in NI-SWITCH - -.. py:currentmodule:: niswitch - - -HandshakingInitiation ---------------------- - -.. py:class:: HandshakingInitiation - - .. py:attribute:: HandshakingInitiation.MEASUREMENT_DEVICE - - - - The `niSwitch Initiate - Scan `__ VI does not - return until the switch hardware is waiting for a trigger input. This - ensures that if you initiate the measurement device after calling the - `niSwitch Initiate - Scan `__ VI , the switch - is sure to receive the first measurement complete (MC) signal sent by - the measurement device. The measurement device should be configured to - first take a measurement, send MC, then wait for scanner advanced output - signal. Thus, the first MC of the measurement device initiates - handshaking. - - - - - - .. py:attribute:: HandshakingInitiation.SWITCH - - - - The `niSwitch Initiate - Scan `__ VI returns - immediately after beginning scan list execution. It is assumed that the - measurement device has already been configured and is waiting for the - scanner advanced signal. The measurement should be configured to first - wait for a trigger, then take a measurement. Thus, the first scanner - advanced output signal of the switch module initiates handshaking. - - - - - -PathCapability --------------- - -.. py:class:: PathCapability - - .. py:attribute:: PathCapability.PATH_AVAILABLE - - - - Path Available - - - - - - .. py:attribute:: PathCapability.PATH_EXISTS - - - - Path Exists - - - - - - .. py:attribute:: PathCapability.PATH_UNSUPPORTED - - - - Path Unsupported - - - - - - .. py:attribute:: PathCapability.RESOURCE_IN_USE - - - - Resource in use - - - - - - .. py:attribute:: PathCapability.SOURCE_CONFLICT - - - - Source conflict - - - - - - .. py:attribute:: PathCapability.CHANNEL_NOT_AVAILABLE - - - - Channel not available - - - - - -RelayAction ------------ - -.. py:class:: RelayAction - - .. py:attribute:: RelayAction.OPEN - - - - Open Relay - - - - - - .. py:attribute:: RelayAction.CLOSE - - - - Close Relay - - - - - -RelayPosition -------------- - -.. py:class:: RelayPosition - - .. py:attribute:: RelayPosition.OPEN - - - - Open - - - - - - .. py:attribute:: RelayPosition.CLOSED - - - - Closed - - - - - -ScanAdvancedOutput ------------------- - -.. py:class:: ScanAdvancedOutput - - .. py:attribute:: ScanAdvancedOutput.NONE - - - - The switch device does not produce a Scan Advanced Output trigger. - - - - - - .. py:attribute:: ScanAdvancedOutput.EXTERNAL - - - - External Trigger. The switch device produces the Scan Advanced Output trigger on the external trigger output. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL0 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG0 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL1 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG1 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL2 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG2 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL3 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG3 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL4 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG4 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL5 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG5 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL6 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG6 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.TTL7 - - - - The switch device produces the Scan Advanced Output on the PXI TRIG7 line. - - - - - - .. py:attribute:: ScanAdvancedOutput.PXI_STAR - - - - The switch module produces the Scan Advanced Output Trigger on the PXI - Star trigger bus before processing the next entry in the scan list. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR - - - - The switch device produces the Scan Advanced Output trigger on the rear connector. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR - - - - The switch device produces the Scan Advanced Output trigger on the front connector. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE1 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 1. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE2 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 2. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE3 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 3. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE4 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 4. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE5 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 5. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE6 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 6. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE7 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 7. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE8 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 8. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE9 - - - - The switch module produces the Scan Advanced Ouptut Trigger on the rear - connector module 9. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE10 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 10. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE11 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 11. - - - - - - .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE12 - - - - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 12. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE1 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 1. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE2 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 2. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE3 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 3. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE4 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 4. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE5 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 5. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE6 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 6. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE7 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 7. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE8 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 8. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE9 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 9. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE10 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 10. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE11 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 11. - - - - - - .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE12 - - - - The switch module produces the Scan Advanced Output Trigger on the front - connector module 12. - - - - - -ScanAdvancedPolarity --------------------- - -.. py:class:: ScanAdvancedPolarity - - .. py:attribute:: ScanAdvancedPolarity.RISING - - - - The trigger occurs on the rising edge of the signal. - - - - - - .. py:attribute:: ScanAdvancedPolarity.FALLING - - - - The trigger occurs on the falling edge of the signal. - - - - - -ScanMode --------- - -.. py:class:: ScanMode - - .. py:attribute:: ScanMode.NONE - - - - No implicit action on connections when scanning. - - - - - - .. py:attribute:: ScanMode.BREAK_BEFORE_MAKE - - - - When scanning, the switch device breaks existing connections before making new connections. - - - - - - .. py:attribute:: ScanMode.BREAK_AFTER_MAKE - - - - When scanning, the switch device breaks existing connections after making new connections. - - - - - -TriggerInput ------------- - -.. py:class:: TriggerInput - - .. py:attribute:: TriggerInput.IMMEDIATE - - - - Immediate Trigger. The switch device does not wait for a trigger before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.EXTERNAL - - - - External Trigger. The switch device waits until it receives a trigger from an external source through the external trigger input before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.SOFTWARE_TRIG - - - - The switch device waits until you call the :py:meth:`niswitch.Session.send_software_trigger` method before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL0 - - - - The switch device waits until it receives a trigger on the PXI TRIG0 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL1 - - - - The switch device waits until it receives a trigger on the PXI TRIG1 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL2 - - - - The switch device waits until it receives a trigger on the PXI TRIG2 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL3 - - - - The switch device waits until it receives a trigger on the PXI TRIG3 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL4 - - - - The switch device waits until it receives a trigger on the PXI TRIG4 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL5 - - - - The switch device waits until it receives a trigger on the PXI TRIG5 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL6 - - - - The switch device waits until it receives a trigger on the PXI TRIG6 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.TTL7 - - - - The switch device waits until it receives a trigger on the PXI TRIG7 line before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.PXI_STAR - - - - The switch device waits until it receives a trigger on the PXI STAR trigger bus before processing the next entry in the scan list. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR - - - - The switch device waits until it receives a trigger on the rear connector. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR - - - - The switch device waits until it receives a trigger on the front connector. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE1 - - - - The switch module waits until it receives a trigger on the rear - connector module 1. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE2 - - - - The switch module waits until it receives a trigger on the rear - connector module 2. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE3 - - - - The switch module waits until it receives a trigger on the rear - connector module 3. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE4 - - - - The switch module waits until it receives a trigger on the rear - connector module 4. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE5 - - - - The switch module waits until it receives a trigger on the rear - connector module 5. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE6 - - - - The switch module waits until it receives a trigger on the rear - connector module 6. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE7 - - - - The switch module waits until it receives a trigger on the rear - connector module 7. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE8 - - - - The switch module waits until it receives a trigger on the rear - connector module 8. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE9 - - - - The switch module waits until it receives a trigger on the rear - connector module 9. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE10 - - - - The switch module waits until it receives a trigger on the rear - connector module 10. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE11 - - - - The switch module waits until it receives a trigger on the rear - connector module 11. - - - - - - .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE12 - - - - The switch module waits until it receives a trigger on the rear - connector module 12. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE1 - - - - The switch module waits until it receives a trigger on the front - connector module 1. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE2 - - - - The switch module waits until it receives a trigger on the front - connector module 2. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE3 - - - - The switch module waits until it receives a trigger on the front - connector module 3. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE4 - - - - The switch module waits until it receives a trigger on the front - connector module 4. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE5 - - - - The switch module waits until it receives a trigger on the front - connector module 5. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE6 - - - - The switch module waits until it receives a trigger on the front - connector module 6. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE7 - - - - The switch module waits until it receives a trigger on the front - connector module 7. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE8 - - - - The switch module waits until it receives a trigger on the front - connector module 8. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE9 - - - - The switch module waits until it receives a trigger on the front - connector module 9. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE10 - - - - The switch module waits until it receives a trigger on the front - connector module 10. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE11 - - - - The switch module waits until it receives a trigger on the front - connector module 11. - - - - - - .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE12 - - - - The switch module waits until it receives a trigger on the front - connector module 12. - - - - - -TriggerInputPolarity --------------------- - -.. py:class:: TriggerInputPolarity - - .. py:attribute:: TriggerInputPolarity.RISING - - - - The trigger occurs on the rising edge of the signal. - - - - - - .. py:attribute:: TriggerInputPolarity.FALLING - - - - The trigger occurs on the falling edge of the signal. - - - - - - - diff --git a/docs/niswitch/errors.rst b/docs/niswitch/errors.rst deleted file mode 100644 index 6a01582c60..0000000000 --- a/docs/niswitch/errors.rst +++ /dev/null @@ -1,100 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: niswitch.errors - - .. exception:: Error - - Base exception type that all NI-SWITCH exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: niswitch.errors - - .. exception:: DriverError - - An error originating from the NI-SWITCH driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: niswitch.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: niswitch.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: niswitch.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-SWITCH driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: niswitch.errors - - .. exception:: DriverTooNewError - - An error due to the NI-SWITCH driver runtime being too new for this module. - -InvalidRepeatedCapabilityError ------------------------------- - - .. py:currentmodule:: niswitch.errors - - .. exception:: InvalidRepeatedCapabilityError - - An error due to an invalid character in a repeated capability - - -SelfTestError -------------- - - .. py:currentmodule:: niswitch.errors - - .. exception:: SelfTestError - - An error due to a failed self-test - - -RpcError --------- - - .. py:currentmodule:: niswitch.errors - - .. exception:: RpcError - - An error specific to sessions to the NI gRPC Device Server - - -DriverWarning -------------- - - .. py:currentmodule:: niswitch.errors - - .. exception:: DriverWarning - - A warning originating from the NI-SWITCH driver - - - diff --git a/docs/niswitch/examples.rst b/docs/niswitch/examples.rst deleted file mode 100644 index f2c8dfef12..0000000000 --- a/docs/niswitch/examples.rst +++ /dev/null @@ -1,32 +0,0 @@ -Examples -======== - -`You can download all niswitch examples for latest version here `_ - -niswitch_connect_channels.py ----------------------------- - -.. literalinclude:: ../../src/niswitch/examples/niswitch_connect_channels.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niswitch_connect_channels.py) `_ - -niswitch_get_device_info.py ---------------------------- - -.. literalinclude:: ../../src/niswitch/examples/niswitch_get_device_info.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niswitch_get_device_info.py) `_ - -niswitch_relay_control.py -------------------------- - -.. literalinclude:: ../../src/niswitch/examples/niswitch_relay_control.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(niswitch_relay_control.py) `_ - diff --git a/docs/niswitch/grpc_session_options.rst b/docs/niswitch/grpc_session_options.rst deleted file mode 100644 index 474d9705ac..0000000000 --- a/docs/niswitch/grpc_session_options.rst +++ /dev/null @@ -1,139 +0,0 @@ -gRPC Support -============ - -Support for using NI-SWITCH over gRPC - -.. py:currentmodule:: niswitch - - - -Creating a gRPC channel ------------------------ - -Using NI-SWITCH over gRPC requires the ``grpc`` extra:: - - $ python -m pip install niswitch[grpc] - -Every NI-SWITCH gRPC session is created from a ``grpc.Channel`` that you build and pass to -:py:class:`niswitch.GrpcSessionOptions`. You own the channel, not the session, so you must -close it after the last session using it is closed. - -The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is -:py:func:`nitlsconfig.create_grpc_device_channel() ` -from the `nitlsconfig `_ package, which the -``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the -NI-SWITCH runtime and by default will attempt to build an encrypted gRPC channel using mTLS. - -Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a -certificate exchange with the remote system. -See `Managing mTLS `_ for -additional information. - -For example:: - - import niswitch - import nitlsconfig - - with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: - options = niswitch.GrpcSessionOptions(channel, '') - with niswitch.Session('dev1', grpc_options=options) as session: - # Calls to session over the encrypted channel - -.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` - produce an insecure channel. - -.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel - arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel - arguments cannot be changed after the channel is built, so they must be supplied here. - -.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its - TLS settings from nitlsconfig. See - `Bind Address Support `_ and - `NI TLS Config Integration `_ for details. - -You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` -if you need full control over how credentials are supplied. - - -SessionInitializationBehavior ------------------------------ - -.. py:class:: SessionInitializationBehavior - - .. py:attribute:: SessionInitializationBehavior.AUTO - - - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, - otherwise the server will initialize a new session. - - .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - - - .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - - - Require the NI gRPC Device Server to initialize a new session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will automatically close the - server session. - - - .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - - - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - .. note:: When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - - - -GrpcSessionOptions ------------------- - - -.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) - - - Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - - :param grpc_channel: - - - Specifies the channel to the NI gRPC Device Server. - - - - :type grpc_channel: grpc.Channel - - - :param session_name: - - - User-specified name that identifies the driver session on the NI gRPC Device Server. - - This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - - - :type session_name: str - - - :param initialization_behavior: - - - Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. - - The driver session exists on the NI gRPC Device Server. - - - - :type initialization_behavior: :py:data:`niswitch.SessionInitializationBehavior` diff --git a/docs/niswitch/index.rst b/docs/niswitch/index.rst deleted file mode 100644 index ac28a61bd0..0000000000 --- a/docs/niswitch/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-SWITCH Python API Documentation -================================== - -.. include:: about_niswitch.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - niswitch - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/niswitch/installation.inc b/docs/niswitch/installation.inc deleted file mode 100644 index 200e67ac47..0000000000 --- a/docs/niswitch/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _niswitch_installation-section: - -Installation ------------- - -As a prerequisite to using the **niswitch** module, you must install the NI-SWITCH runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-SWITCH**) can be installed with `pip `_:: - - $ python -m pip install niswitch - - diff --git a/docs/niswitch/niswitch.rst b/docs/niswitch/niswitch.rst deleted file mode 100644 index b43ed42239..0000000000 --- a/docs/niswitch/niswitch.rst +++ /dev/null @@ -1,9 +0,0 @@ -niswitch module -=============== - -.. include:: installation.inc - -.. include:: ../_static/niswitch_usage.inc - -.. include:: toc.inc - diff --git a/docs/niswitch/rep_caps.rst b/docs/niswitch/rep_caps.rst deleted file mode 100644 index 7f141fa26b..0000000000 --- a/docs/niswitch/rep_caps.rst +++ /dev/null @@ -1,38 +0,0 @@ -.. py:module:: niswitch - :noindex: - -.. py:currentmodule:: niswitch.Session - -.. role:: c(code) - :language: c - -.. role:: python(code) - :language: python - -Repeated Capabilities -===================== - - Repeated capabilities attributes are used to set the `channel_string` parameter to the - underlying driver function call. This can be the actual function based on the :py:class:`Session` - method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niSwitch_SetAttributeViInt32()`. - - Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. - The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or - an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or - :python:`'0:2'` - - Some repeated capabilities use a prefix before the number and this is optional - -channels --------- - - .. py:attribute:: niswitch.Session.channels[] - - .. code:: python - - session.channels['0-2'].channel_enabled = True - - passes a string of :python:`'0, 1, 2'` to the set attribute function. - - - diff --git a/docs/niswitch/status.inc b/docs/niswitch/status.inc deleted file mode 100644 index 669a365d71..0000000000 --- a/docs/niswitch/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-SWITCH Python API Status ---------------------------- - -+-------------------------------+-------------------------+ -| NI-SWITCH (niswitch) | | -+===============================+=========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-------------------------+ -| PyPI Version | |niswitchLatestVersion| | -+-------------------------------+-------------------------+ -| Supported Python Version | |niswitchPythonVersion| | -+-------------------------------+-------------------------+ -| Documentation | |niswitchDocs| | -+-------------------------------+-------------------------+ -| Open Issues | |niswitchOpenIssues| | -+-------------------------------+-------------------------+ -| Open Pull Requests | |niswitchOpenPRs| | -+-------------------------------+-------------------------+ - - -.. |niswitchLatestVersion| image:: http://img.shields.io/pypi/v/niswitch.svg - :alt: Latest NI-SWITCH Version - :target: http://pypi.python.org/pypi/niswitch - - -.. |niswitchPythonVersion| image:: http://img.shields.io/pypi/pyversions/niswitch.svg - :alt: NI-SWITCH supported Python versions - :target: http://pypi.python.org/pypi/niswitch - - -.. |niswitchDocs| image:: https://readthedocs.org/projects/niswitch/badge/?version=latest - :alt: NI-SWITCH Python API Documentation Status - :target: https://niswitch.readthedocs.io/en/latest - - -.. |niswitchOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niswitch.svg - :alt: Open Issues + Pull Requests for NI-SWITCH - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniswitch - - -.. |niswitchOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niswitch.svg - :alt: Pull Requests for NI-SWITCH - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniswitch - - diff --git a/docs/niswitch/toc.inc b/docs/niswitch/toc.inc deleted file mode 100644 index 300092a6ce..0000000000 --- a/docs/niswitch/toc.inc +++ /dev/null @@ -1,12 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - rep_caps - enums - errors - examples - grpc_session_options - diff --git a/docs/nitclk/.readthedocs.yaml b/docs/nitclk/.readthedocs.yaml deleted file mode 100644 index a0bb8bf609..0000000000 --- a/docs/nitclk/.readthedocs.yaml +++ /dev/null @@ -1,51 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Why Use A Configuration File? -# https://docs.readthedocs.io/en/stable/config-file/index.html -# The main advantages of using a configuration file over the web interface are: -# * Settings are per version rather than per project. -# * Settings live in your VCS. -# * They enable reproducible build environments over time. -# * Some settings are only available using a configuration file - -# Required -version: 2 - -# Set the version of Python and other tools you might need -build: - os: ubuntu-22.04 - tools: - python: "3.11" - jobs: - # pre_build: - # # Check for broken external links - # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck - post_checkout: - # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition - # Build-cancellation rules are recommended for monorepos. - # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nitclk/. - # - # If there are no changes (git diff exits with 0) we force the command to return with 183. - # This is a special exit code on Read the Docs that will cancel the build immediately. - - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nitclk/; - then - exit 183; - fi - -# Have Read the Docs build documentation with Sphinx -sphinx: - builder: html - configuration: docs/nitclk/conf.py - -# If using Sphinx, optionally build your docs in additional formats such as PDF -formats: - - epub - - pdf - -# Declare the Python requirements required to build your docs -python: - install: - - requirements: docs/requirements.txt diff --git a/docs/nitclk/about_nitclk.inc b/docs/nitclk/about_nitclk.inc deleted file mode 100644 index 76f4f2fd6f..0000000000 --- a/docs/nitclk/about_nitclk.inc +++ /dev/null @@ -1,15 +0,0 @@ -.. _about-section: - -About -===== - -The **nitclk** module provides a Python API for NI-TClk. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nitclk** supports all the Operating Systems supported by NI-TClk. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nitclk**. - diff --git a/docs/nitclk/class.rst b/docs/nitclk/class.rst deleted file mode 100644 index dbe8aa3ba1..0000000000 --- a/docs/nitclk/class.rst +++ /dev/null @@ -1,756 +0,0 @@ - -.. py:module:: nitclk - -Public API -========== - -The `nitclk` module provides synchronization facilites to allow multiple instruments to simultaneously -respond to triggers, to align Sample Clocks on multiple instruments, and/or to simultaneously start multiple -instruments. - -It consists of a set of functions that act on a list of :py:class:`SessionReference` objects or instrument `Session` -objects for drivers that support NI-TClk. :py:class:`SessionReference` also has a set of properties for configuration. - -.. code:: python - - with niscope.Session('dev1') as scope1, niscope.Session('dev2') as scope2: - nitclk.configure_for_homogeneous_triggers([scope1, scope2]) - nitclk.initiate([scope1, scope2]) - wfm1 = scope1.fetch() - wfm2 = scope2.fetch() - -configure_for_homogeneous_triggers ----------------------------------- - - .. py:currentmodule:: nitclk - - .. py:function:: configure_for_homogeneous_triggers(sessions) - - Configures the properties commonly required for the TClk synchronization - of device sessions with homogeneous triggers in a single PXI chassis or - a single PC. Use :py:func:`nitclk.configure_for_homogeneous_triggers` to configure - the properties for the reference clocks, start triggers, reference - triggers, script triggers, and pause triggers. If - :py:func:`nitclk.configure_for_homogeneous_triggers` cannot perform all the steps - appropriate for the given sessions, it returns an error. If an error is - returned, use the instrument driver methods and properties for signal - routing, along with the following NI-TClk properties: - :py:attr:`nitclk.SessionReference.start_trigger_master_session` - :py:attr:`nitclk.SessionReference.ref_trigger_master_session` - :py:attr:`nitclk.SessionReference.pause_trigger_master_session` - :py:func:`nitclk.configure_for_homogeneous_triggers` affects the following clocks and - triggers: - Reference clocks - Start triggers - Reference triggers - - Script triggers - Pause triggers Reference Clocks - :py:func:`nitclk.configure_for_homogeneous_triggers` configures the reference clocks - if they are needed. Specifically, if the internal sample clocks or - internal sample clock timebases are used, and the reference clock source - is not configured--or is set to None (no trigger - configured)--:py:func:`nitclk.configure_for_homogeneous_triggers` configures the - following: PXI--The reference clock source on all devices is set to be - the 10 MHz PXI backplane clock (PXI_CLK10). PCI--One of the devices - exports its 10 MHz onboard reference clock to RTSI 7. The reference - clock source on all devices is set to be RTSI 7. Note: If the reference - clock source is set to a value other than None, - :py:func:`nitclk.configure_for_homogeneous_triggers` cannot configure the reference - clock source. Start Triggers If the start trigger is set to None (no - trigger configured) for all sessions, the sessions are configured to - share the start trigger. The start trigger is shared by: - Implicitly - exporting the start trigger from one session - Configuring the other - sessions for digital edge start triggers with sources corresponding to - the exported start trigger - Setting - :py:attr:`nitclk.SessionReference.start_trigger_master_session` to the session that is - exporting the trigger for all sessions If the start triggers are None - for all except one session, :py:func:`nitclk.configure_for_homogeneous_triggers` - configures the sessions to share the start trigger from the one excepted - session. The start trigger is shared by: - Implicitly exporting start - trigger from the session with the start trigger that is not None - - Configuring the other sessions for digital-edge start triggers with - sources corresponding to the exported start trigger - Setting - :py:attr:`nitclk.SessionReference.start_trigger_master_session` to the session that is - exporting the trigger for all sessions If start triggers are configured - for all sessions, :py:func:`nitclk.configure_for_homogeneous_triggers` does not - affect the start triggers. Start triggers are considered to be - configured for all sessions if either of the following conditions is - true: - No session has a start trigger that is None - One session has a - start trigger that is None, and all other sessions have start triggers - other than None. The one session with the None trigger must have - :py:attr:`nitclk.SessionReference.start_trigger_master_session` set to itself, indicating - that the session itself is the start trigger master Reference Triggers - :py:func:`nitclk.configure_for_homogeneous_triggers` configures sessions that support - reference triggers to share the reference triggers if the reference - triggers are None (no trigger configured) for all except one session. - The reference triggers are shared by: - Implicitly exporting the - reference trigger from the session whose reference trigger is not None - - Configuring the other sessions that support the reference trigger for - digital-edge reference triggers with sources corresponding to the - exported reference trigger - Setting - :py:attr:`nitclk.SessionReference.ref_trigger_master_session` to the session that is - exporting the trigger for all sessions that support reference trigger If - the reference triggers are configured for all sessions that support - reference triggers, :py:func:`nitclk.configure_for_homogeneous_triggers` does not - affect the reference triggers. Reference triggers are considered to be - configured for all sessions if either one or the other of the following - conditions is true: - No session has a reference trigger that is None - - One session has a reference trigger that is None, and all other sessions - have reference triggers other than None. The one session with the None - trigger must have :py:attr:`nitclk.SessionReference.ref_trigger_master_session` set to - itself, indicating that the session itself is the reference trigger - master Reference Trigger Holdoffs Acquisition sessions may be configured - with the reference trigger. For acquisition sessions, when the reference - trigger is shared, :py:func:`nitclk.configure_for_homogeneous_triggers` configures - the holdoff properties (which are instrument driver specific) on the - reference trigger master session so that the session does not recognize - the reference trigger before the other sessions are ready. This - condition is only relevant when the sample clock rates, sample clock - timebase rates, sample counts, holdoffs, and/or any delays for the - acquisitions are different. When the sample clock rates, sample clock - timebase rates, and/or the sample counts are different in acquisition - sessions sharing the reference trigger, you should also set the holdoff - properties for the reference trigger master using the instrument driver. - Pause Triggers - :py:func:`nitclk.configure_for_homogeneous_triggers` configures generation sessions - that support pause triggers to share them, if the pause triggers are - None (no trigger configured) for all except one session. The pause - triggers are shared by: - Implicitly exporting the pause trigger from - the session whose script trigger is not None - Configuring the other - sessions that support the pause trigger for digital-edge pause triggers - with sources corresponding to the exported pause trigger - Setting - :py:attr:`nitclk.SessionReference.pause_trigger_master_session` to the session that is - exporting the trigger for all sessions that support script triggers If - the pause triggers are configured for all generation sessions that - support pause triggers, :py:func:`nitclk.configure_for_homogeneous_triggers` does not - affect pause triggers. Pause triggers are considered to be configured - for all sessions if either one or the other of the following conditions - is true: - No session has a pause trigger that is None - One session has - a pause trigger that is None and all other sessions have pause triggers - other than None. The one session with the None trigger must have - :py:attr:`nitclk.SessionReference.pause_trigger_master_session` set to itself, indicating - that the session itself is the pause trigger master Note: TClk - synchronization is not supported for pause triggers on acquisition - sessions. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - -finish_sync_pulse_sender_synchronize ------------------------------------- - - .. py:currentmodule:: nitclk - - .. py:function:: finish_sync_pulse_sender_synchronize(sessions, min_time=hightime.timedelta(seconds=0.0)) - - Finishes synchronizing the Sync Pulse Sender. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - :param min_time: - - - Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - - - - :type min_time: hightime.timedelta, datetime.timedelta, or float in seconds - -initiate --------- - - .. py:currentmodule:: nitclk - - .. py:function:: initiate(sessions) - - Initiates the acquisition or generation sessions specified, taking into - consideration any special requirements needed for synchronization. For - example, the session exporting the TClk-synchronized start trigger is - not initiated until after :py:func:`nitclk.initiate` initiates all the sessions - that import the TClk-synchronized start trigger. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - -is_done -------- - - .. py:currentmodule:: nitclk - - .. py:function:: is_done(sessions) - - Monitors the progress of the acquisitions and/or generations - corresponding to sessions. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - - :rtype: bool - :return: - - - Indicates that the operation is done. The operation is done when each - session has completed without any errors or when any one of the sessions - reports an error. - - - - - -setup_for_sync_pulse_sender_synchronize ---------------------------------------- - - .. py:currentmodule:: nitclk - - .. py:function:: setup_for_sync_pulse_sender_synchronize(sessions, min_time=hightime.timedelta(seconds=0.0)) - - Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - :param min_time: - - - Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - - - - :type min_time: hightime.timedelta, datetime.timedelta, or float in seconds - -synchronize ------------ - - .. py:currentmodule:: nitclk - - .. py:function:: synchronize(sessions, min_tclk_period=hightime.timedelta(seconds=0.0)) - - Synchronizes the TClk signals on the given sessions. After - :py:func:`nitclk.synchronize` executes, TClk signals from all sessions are - synchronized. Note: Before using this NI-TClk method, verify that your - system is configured as specified in the PXI Trigger Lines and RTSI - Lines topic of the NI-TClk Synchronization Help. You can locate this - help file at Start>>Programs>>National Instruments>>NI-TClk. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - :param min_tclk_period: - - - Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - - - - :type min_tclk_period: hightime.timedelta, datetime.timedelta, or float in seconds - -synchronize_to_sync_pulse_sender --------------------------------- - - .. py:currentmodule:: nitclk - - .. py:function:: synchronize_to_sync_pulse_sender(sessions, min_time=hightime.timedelta(seconds=0.0)) - - Synchronizes the other devices to the Sync Pulse Sender. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - :param min_time: - - - Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - - - - :type min_time: hightime.timedelta, datetime.timedelta, or float in seconds - -wait_until_done ---------------- - - .. py:currentmodule:: nitclk - - .. py:function:: wait_until_done(sessions, timeout=hightime.timedelta(seconds=0.0)) - - Call this method to pause execution of your program until the - acquisitions and/or generations corresponding to sessions are done or - until the method returns a timeout error. :py:func:`nitclk.wait_until_done` is a - blocking method that periodically checks the operation status. It - returns control to the calling program if the operation completes - successfully or an error occurs (including a timeout error). This - method is most useful for finite data operations that you expect to - complete within a certain time. - - - - - - :param sessions: - - - sessions is an array of sessions that are being synchronized. - - - - - :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances - :param timeout: - - - The amount of time in seconds that :py:func:`nitclk.wait_until_done` waits for the - sessions to complete. If timeout is exceeded, :py:func:`nitclk.wait_until_done` - returns an error. - - - - - :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds - - -SessionReference -================ -.. py:currentmodule:: nitclk - -.. py:class:: SessionReference(session_number) - - Helper class that contains all NI-TClk properties. This class is what is returned by - any nimi-python Session class tclk attribute when the driver supports NI-TClk - - .. code:: python - - with niscope.Session('dev1') as session: - session.tclk.sample_clock_delay = .42 - - ..note:: Constructing this class is an advanced use case and should not be needed in most circumstances. - - :param session_number: - nitclk session - :type session_number: int, nimi-python Session class, SessionReference - - -exported_sync_pulse_output_terminal ------------------------------------ - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: exported_sync_pulse_output_terminal - - Specifies the destination of the Sync Pulse. This property is most often used when synchronizing a multichassis system. - Values - Empty string. Empty string is a valid value, indicating that the signal is not exported. - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value is empty string - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | str | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Export Sync Pulse Output Terminal** - - C Attribute: **NITCLK_ATTR_EXPORTED_SYNC_PULSE_OUTPUT_TERMINAL** - -exported_tclk_output_terminal ------------------------------ - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: exported_tclk_output_terminal - - Specifies the destination of the device's TClk signal. - Values - Empty string. Empty string is a valid value, indicating that the signal is not exported. - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value is empty string - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | str | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Output Terminal** - - C Attribute: **NITCLK_ATTR_EXPORTED_TCLK_OUTPUT_TERMINAL** - -pause_trigger_master_session ----------------------------- - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: pause_trigger_master_session - - Specifies the pause trigger master session. - For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. - - The following table lists the characteristics of this property. - - +----------------+-----------------------------------------------------------------------+ - | Characteristic | Value | - +================+=======================================================================+ - | Datatype | instrument-specific session or an instance of nitclk.SessionReference | - +----------------+-----------------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-----------------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Pause Trigger Master Session** - - C Attribute: **NITCLK_ATTR_PAUSE_TRIGGER_MASTER_SESSION** - -ref_trigger_master_session --------------------------- - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: ref_trigger_master_session - - Specifies the reference trigger master session. - For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. - - The following table lists the characteristics of this property. - - +----------------+-----------------------------------------------------------------------+ - | Characteristic | Value | - +================+=======================================================================+ - | Datatype | instrument-specific session or an instance of nitclk.SessionReference | - +----------------+-----------------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-----------------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Reference Trigger Master Session** - - C Attribute: **NITCLK_ATTR_REF_TRIGGER_MASTER_SESSION** - -sample_clock_delay ------------------- - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: sample_clock_delay - - Specifies the sample clock delay. - Specifies the delay, in seconds, to apply to the session sample clock relative to the other synchronized sessions. During synchronization, NI-TClk aligns the sample clocks on the synchronized devices. If you want to delay the sample clocks, set this property before calling :py:func:`nitclk.synchronize`. - not supported for acquisition sessions. - Values - Between minus one and plus one period of the sample clock. - One sample clock period is equal to (1/sample clock rate). For example, for a session with sample rate of 100 MS/s, you can specify sample clock delays between -10.0 ns and +10.0 ns. - Default Value is 0 - - - - .. note:: Sample clock delay is supported for generation sessions only; it is - - The following table lists the characteristics of this property. - - +----------------+-------------------------------------------------------------+ - | Characteristic | Value | - +================+=============================================================+ - | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | - +----------------+-------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Sample Clock Delay** - - C Attribute: **NITCLK_ATTR_SAMPLE_CLOCK_DELAY** - -sequencer_flag_master_session ------------------------------ - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: sequencer_flag_master_session - - Specifies the sequencer flag master session. - For external triggers, the session that originally receives the trigger. - For None (no trigger configured) or software triggers, the session that - originally generates the trigger. - - The following table lists the characteristics of this property. - - +----------------+-----------------------------------------------------------------------+ - | Characteristic | Value | - +================+=======================================================================+ - | Datatype | instrument-specific session or an instance of nitclk.SessionReference | - +----------------+-----------------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-----------------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Sequencer Flag Master Session** - - C Attribute: **NITCLK_ATTR_SEQUENCER_FLAG_MASTER_SESSION** - -start_trigger_master_session ----------------------------- - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: start_trigger_master_session - - Specifies the start trigger master session. - For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. - - The following table lists the characteristics of this property. - - +----------------+-----------------------------------------------------------------------+ - | Characteristic | Value | - +================+=======================================================================+ - | Datatype | instrument-specific session or an instance of nitclk.SessionReference | - +----------------+-----------------------------------------------------------------------+ - | Permissions | read-write | - +----------------+-----------------------------------------------------------------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Start Trigger Master Session** - - C Attribute: **NITCLK_ATTR_START_TRIGGER_MASTER_SESSION** - -sync_pulse_clock_source ------------------------ - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: sync_pulse_clock_source - - Specifies the Sync Pulse Clock source. This property is typically used to synchronize PCI devices when you want to control RTSI 7 yourself. Make sure that a 10 MHz clock is driven onto RTSI 7. - Values - PCI Devices - 'RTSI_7' and 'None' - PXI Devices - 'PXI_CLK10' and 'None' - Default Value - 'None' directs :py:func:`nitclk.synchronize` to create the necessary routes. For PCI, one of the synchronized devices drives a 10 MHz clock on RTSI 7 unless that line is already being driven. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | str | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Sync Pulse Clock Source** - - C Attribute: **NITCLK_ATTR_SYNC_PULSE_CLOCK_SOURCE** - -sync_pulse_sender_sync_pulse_source ------------------------------------ - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: sync_pulse_sender_sync_pulse_source - - Specifies the external sync pulse source for the Sync Pulse Sender. You can use this source to synchronize the Sync Pulse Sender with an external non-TClk source. - Values - Empty string. Empty string is a valid value, indicating that the signal is not exported. - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value is empty string - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | str | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **External Pulse Source** - - C Attribute: **NITCLK_ATTR_SYNC_PULSE_SENDER_SYNC_PULSE_SOURCE** - -sync_pulse_source ------------------ - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: sync_pulse_source - - Specifies the Sync Pulse source. This property is most often used when synchronizing a multichassis system. - Values - Empty string - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value - Empty string. This default value directs :py:func:`nitclk.synchronize` to set this property when all the synchronized devices are in one PXI chassis. To synchronize a multichassis system, you must set this property before calling :py:func:`nitclk.synchronize`. - - The following table lists the characteristics of this property. - - +----------------+------------+ - | Characteristic | Value | - +================+============+ - | Datatype | str | - +----------------+------------+ - | Permissions | read-write | - +----------------+------------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Sync Pulse Source** - - C Attribute: **NITCLK_ATTR_SYNC_PULSE_SOURCE** - -tclk_actual_period ------------------- - - .. py:currentmodule:: nitclk.SessionReference - - .. py:attribute:: tclk_actual_period - - Indicates the computed TClk period that will be used during the acquisition. - - The following table lists the characteristics of this property. - - +----------------+-----------+ - | Characteristic | Value | - +================+===========+ - | Datatype | float | - +----------------+-----------+ - | Permissions | read only | - +----------------+-----------+ - - .. tip:: - This property corresponds to the following LabVIEW Property or C Attribute: - - - LabVIEW Property: **Period** - - C Attribute: **NITCLK_ATTR_TCLK_ACTUAL_PERIOD** - - -.. contents:: nitclk diff --git a/docs/nitclk/conf.py b/docs/nitclk/conf.py deleted file mode 100644 index 80ad918321..0000000000 --- a/docs/nitclk/conf.py +++ /dev/null @@ -1,200 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# -# NI-TClk Python API documentation build configuration file, created by -# sphinx-quickstart on Fri Jul 14 13:04:36 2017. -# -# This file is execfile()d with the current directory set to its -# containing dir. -# -# Note that not all possible configuration values are present in this -# autogenerated file. -# -# All configuration values have a default; values that are commented out -# serve to show the default. - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import os -import sys -sys.path.insert(0, os.path.abspath('../generated')) - - -# -- General configuration ------------------------------------------------ - -# If your documentation needs a minimal Sphinx version, state it here. -# -# needs_sphinx = '1.0' - -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. -extensions = ['sphinx.ext.autodoc', - 'sphinx.ext.doctest', - 'sphinx.ext.intersphinx', - 'sphinx.ext.todo', - 'sphinx.ext.coverage', - 'sphinx.ext.mathjax', - 'sphinx.ext.ifconfig', - 'sphinx.ext.viewcode', - 'sphinx.ext.githubpages'] - -# Add any paths that contain templates here, relative to this directory. -templates_path = ['_templates'] - -# The suffix(es) of source filenames. -# You can specify multiple suffix as a list of string: -# -# source_suffix = ['.rst', '.md'] -source_suffix = '.rst' - -# The master toctree document. -master_doc = 'index' - -# General information about the project. -project = 'NI-TClk Python API' -copyright = '2019-2026, National Instruments Corporation' -author = 'NI' - -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -# The full version, including alpha/beta/rc tags. -release = '1.5.1.dev0' -# The short X.Y version. -version = release[:3] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = 'en' - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This patterns also effect to html_static_path and html_extra_path -exclude_patterns = [] - -# The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' - -# If true, `todo` and `todoList` produce output, else they produce nothing. -todo_include_todos = True - - -# -- Options for HTML output ---------------------------------------------- - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# -html_theme = 'sphinx_rtd_theme' - -# Theme options are theme-specific and customize the look and feel of a theme -# further. For a list of options available for each theme, see the -# documentation. -# -html_theme_options = { - 'navigation_depth': -1, -} - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['../_static'] - -# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 -def setup(app): - app.add_css_file('theme_overrides.css') - -# Custom sidebar templates, must be a dictionary that maps document names -# to template names. -# -# This is required for the alabaster theme -# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars -html_sidebars = { - '**': [ - 'about.html', - 'navigation.html', - 'relations.html', # needs 'show_related': True theme option to display - 'searchbox.html', - 'donate.html', - ] -} - - -# -- Options for HTMLHelp output ------------------------------------------ - -# Output file base name for HTML help builder. -htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' - - -# -- Options for LaTeX output --------------------------------------------- - -latex_elements = { - # The paper size ('letterpaper' or 'a4paper'). - # - # 'papersize': 'letterpaper', - - # The font size ('10pt', '11pt' or '12pt'). - # - # 'pointsize': '10pt', - - # Additional stuff for the LaTeX preamble. - # - # 'preamble': '', - - # Latex figure (float) alignment - # - # 'figure_align': 'htbp', -} - -# Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, -# author, documentclass [howto, manual, or own class]). -latex_documents = [ - (master_doc, 'NITClkPythonAPI.tex', 'NI-TClk Python API Documentation', - 'NI', 'manual'), -] - - -# -- Options for manual page output --------------------------------------- - -# One entry per manual page. List of tuples -# (source start file, name, description, authors, manual section). -man_pages = [ - (master_doc, 'nitclkpythonapi', 'NI-TClk Python API Documentation', - [author], 1) -] - - -# -- Options for Texinfo output ------------------------------------------- - -# Grouping the document tree into Texinfo files. List of tuples -# (source start file, target name, title, author, -# dir menu entry, description, category) -texinfo_documents = [ - (master_doc, 'NITClkPythonAPI', 'NI-TClk Python API Documentation', - author, 'NITClkPythonAPI', 'One line description of project.', - 'Miscellaneous'), -] - -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = { - 'python': ('https://docs.python.org/3', None), - 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), - 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), - 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), - 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), - 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), - 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), - 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), - 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), - 'nise': ('https://nise.readthedocs.io/en/latest/', None), - 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), - # Read the Docs project slug differs from the module name. - 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), -} diff --git a/docs/nitclk/errors.rst b/docs/nitclk/errors.rst deleted file mode 100644 index ded6c86912..0000000000 --- a/docs/nitclk/errors.rst +++ /dev/null @@ -1,70 +0,0 @@ -Exceptions and Warnings -======================= - -Error ------ - - .. py:currentmodule:: nitclk.errors - - .. exception:: Error - - Base exception type that all NI-TClk exceptions derive from - - -DriverError ------------ - - .. py:currentmodule:: nitclk.errors - - .. exception:: DriverError - - An error originating from the NI-TClk driver - - -UnsupportedConfigurationError ------------------------------ - - .. py:currentmodule:: nitclk.errors - - .. exception:: UnsupportedConfigurationError - - An error due to using this module in an usupported platform. - -DriverNotInstalledError ------------------------ - - .. py:currentmodule:: nitclk.errors - - .. exception:: DriverNotInstalledError - - An error due to using this module without the driver runtime installed. - -DriverTooOldError ------------------ - - .. py:currentmodule:: nitclk.errors - - .. exception:: DriverTooOldError - - An error due to using this module with an older version of the NI-TClk driver runtime. - -DriverTooNewError ------------------ - - .. py:currentmodule:: nitclk.errors - - .. exception:: DriverTooNewError - - An error due to the NI-TClk driver runtime being too new for this module. - -DriverWarning -------------- - - .. py:currentmodule:: nitclk.errors - - .. exception:: DriverWarning - - A warning originating from the NI-TClk driver - - - diff --git a/docs/nitclk/examples.rst b/docs/nitclk/examples.rst deleted file mode 100644 index 34e507997b..0000000000 --- a/docs/nitclk/examples.rst +++ /dev/null @@ -1,14 +0,0 @@ -Examples -======== - -`You can download all nitclk examples for latest version here `_ - -nitclk_niscope_synchronize_with_trigger.py ------------------------------------------- - -.. literalinclude:: ../../src/nitclk/examples/nitclk_niscope_synchronize_with_trigger.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nitclk_niscope_synchronize_with_trigger.py) `_ - diff --git a/docs/nitclk/index.rst b/docs/nitclk/index.rst deleted file mode 100644 index 508cec06b4..0000000000 --- a/docs/nitclk/index.rst +++ /dev/null @@ -1,31 +0,0 @@ - -NI-TClk Python API Documentation -================================ - -.. include:: about_nitclk.inc - -.. include:: ../_static/contributing.inc - -.. include:: ../_static/support.inc - -.. toctree:: - :maxdepth: 3 - :caption: Documentation - - nitclk - -Additional Documentation ------------------------- - -Refer to your driver documentation for device-specific information and detailed API documentation. - -Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. - -.. include:: ../_static/license.inc - -Indices and tables -================== - -* :ref:`genindex` -* :ref:`modindex` -* :ref:`search` diff --git a/docs/nitclk/installation.inc b/docs/nitclk/installation.inc deleted file mode 100644 index c4b4404876..0000000000 --- a/docs/nitclk/installation.inc +++ /dev/null @@ -1,13 +0,0 @@ - -.. _nitclk_installation-section: - -Installation ------------- - -As a prerequisite to using the **nitclk** module, you must install the NI-TClk runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-TClk**) can be installed with `pip `_:: - - $ python -m pip install nitclk - - diff --git a/docs/nitclk/nitclk.rst b/docs/nitclk/nitclk.rst deleted file mode 100644 index 24aecf34cb..0000000000 --- a/docs/nitclk/nitclk.rst +++ /dev/null @@ -1,9 +0,0 @@ -nitclk module -============= - -.. include:: installation.inc - -.. include:: ../_static/nitclk_usage.inc - -.. include:: toc.inc - diff --git a/docs/nitclk/status.inc b/docs/nitclk/status.inc deleted file mode 100644 index ff56fc2c26..0000000000 --- a/docs/nitclk/status.inc +++ /dev/null @@ -1,46 +0,0 @@ - -NI-TClk Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-TClk (nitclk) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nitclkLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nitclkPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nitclkDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nitclkOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nitclkOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nitclkLatestVersion| image:: http://img.shields.io/pypi/v/nitclk.svg - :alt: Latest NI-TClk Version - :target: http://pypi.python.org/pypi/nitclk - - -.. |nitclkPythonVersion| image:: http://img.shields.io/pypi/pyversions/nitclk.svg - :alt: NI-TClk supported Python versions - :target: http://pypi.python.org/pypi/nitclk - - -.. |nitclkDocs| image:: https://readthedocs.org/projects/nitclk/badge/?version=latest - :alt: NI-TClk Python API Documentation Status - :target: https://nitclk.readthedocs.io/en/latest - - -.. |nitclkOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nitclk.svg - :alt: Open Issues + Pull Requests for NI-TClk - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anitclk - - -.. |nitclkOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nitclk.svg - :alt: Pull Requests for NI-TClk - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anitclk - - diff --git a/docs/nitclk/toc.inc b/docs/nitclk/toc.inc deleted file mode 100644 index f4c0c73875..0000000000 --- a/docs/nitclk/toc.inc +++ /dev/null @@ -1,9 +0,0 @@ -API Reference --------------- - -.. toctree:: - - class - errors - examples - diff --git a/generated/nidcpower/README.rst b/generated/nidcpower/README.rst deleted file mode 100644 index fcc2373164..0000000000 --- a/generated/nidcpower/README.rst +++ /dev/null @@ -1,192 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nidcpower** module provides a Python API for NI-DCPower. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nidcpower** supports all the Operating Systems supported by NI-DCPower. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nidcpower**. - - -NI-DCPower Python API Status ----------------------------- - -+-------------------------------+--------------------------+ -| NI-DCPower (nidcpower) | | -+===============================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+--------------------------+ -| PyPI Version | |nidcpowerLatestVersion| | -+-------------------------------+--------------------------+ -| Supported Python Version | |nidcpowerPythonVersion| | -+-------------------------------+--------------------------+ -| Documentation | |nidcpowerDocs| | -+-------------------------------+--------------------------+ -| Open Issues | |nidcpowerOpenIssues| | -+-------------------------------+--------------------------+ -| Open Pull Requests | |nidcpowerOpenPRs| | -+-------------------------------+--------------------------+ - - -.. |nidcpowerLatestVersion| image:: http://img.shields.io/pypi/v/nidcpower.svg - :alt: Latest NI-DCPower Version - :target: http://pypi.python.org/pypi/nidcpower - - -.. |nidcpowerPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidcpower.svg - :alt: NI-DCPower supported Python versions - :target: http://pypi.python.org/pypi/nidcpower - - -.. |nidcpowerDocs| image:: https://readthedocs.org/projects/nidcpower/badge/?version=latest - :alt: NI-DCPower Python API Documentation Status - :target: https://nidcpower.readthedocs.io/en/latest - - -.. |nidcpowerOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidcpower.svg - :alt: Open Issues + Pull Requests for NI-DCPower - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidcpower - - -.. |nidcpowerOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidcpower.svg - :alt: Pull Requests for NI-DCPower - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidcpower - - - -.. _nidcpower_installation-section: - -Installation ------------- - -As a prerequisite to using the **nidcpower** module, you must install the NI-DCPower runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-DCPower**) can be installed with `pip `_:: - - $ python -m pip install nidcpower - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nidcpower** module to open a session to a Source Measure Unit and measure voltage and current. - -.. code-block:: python - - import nidcpower - # Configure the session. - - with nidcpower.Session(resource_name='PXI1Slot2/0') as session: - session.measure_record_length = 20 - session.measure_record_length_is_finite = True - session.measure_when = nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE - session.voltage_level = 5.0 - - session.commit() - print('Effective measurement rate: {} S/s'.format(session.measure_record_delta_time / 1)) - - samples_acquired = 0 - print('Channel Num Voltage Current In Compliance') - row_format = '{0:15} {1:3d} {2:8.6f} {3:8.6f} {4}' - with session.initiate(): - channel_indices = '0-{}'.format(session.channel_count - 1) - channels = session.get_channel_names(channel_indices) - for i, channel_name in enumerate(channels): - samples_acquired = 0 - while samples_acquired < 20: - measurements = session.channels[channel_name].fetch_multiple(count=session.fetch_backlog) - samples_acquired += len(measurements) - for i in range(len(measurements)): - print(row_format.format(channel_name, i, measurements[i].voltage, measurements[i].current, measurements[i].in_compliance)) - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nidcpower/nidcpower/VERSION b/generated/nidcpower/nidcpower/VERSION deleted file mode 100644 index f26f5a3d38..0000000000 --- a/generated/nidcpower/nidcpower/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.6.1.dev0 - diff --git a/generated/nidcpower/nidcpower/__init__.py b/generated/nidcpower/nidcpower/__init__.py deleted file mode 100644 index 3236b9a78c..0000000000 --- a/generated/nidcpower/nidcpower/__init__.py +++ /dev/null @@ -1,111 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.6.1.dev0' - -from nidcpower.enums import * # noqa: F403,F401,H303 -from nidcpower.errors import DriverWarning # noqa: F401 -from nidcpower.errors import Error # noqa: F401 -from nidcpower.grpc_session_options import * # noqa: F403,F401,H303 -from nidcpower.session import Session # noqa: F401 - -from nidcpower.lcr_measurement import LCRMeasurement # noqa: F401 - -from nidcpower.lcr_measurement import struct_NILCRMeasurement # noqa: F401 - -from nidcpower.lcr_load_compensation_spot import LCRLoadCompensationSpot # noqa: F401 - -from nidcpower.lcr_load_compensation_spot import struct_NILCRLoadCompensationSpot # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-DCPower\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-DCPower" - info['driver']['version'] = driver_version - info['module']['name'] = 'nidcpower' - info['module']['version'] = "1.6.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nidcpower/nidcpower/_attributes.py b/generated/nidcpower/nidcpower/_attributes.py deleted file mode 100644 index d65c183e7d..0000000000 --- a/generated/nidcpower/nidcpower/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nidcpower._converters as _converters -import nidcpower.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nidcpower Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nidcpower.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nidcpower/nidcpower/_converters.py b/generated/nidcpower/nidcpower/_converters.py deleted file mode 100644 index 3c80fcb7cc..0000000000 --- a/generated/nidcpower/nidcpower/_converters.py +++ /dev/null @@ -1,394 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nidcpower._visatype as _visatype -import nidcpower.enums as enums -import nidcpower.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - -def convert_from_isolation_state_enum(value): - return { - enums._IsolationState.ISOLATED: True, - enums._IsolationState.NON_ISOLATED: False, - }[value] - - -def convert_to_isolation_state_enum(value): - return { - True: enums._IsolationState.ISOLATED, - False: enums._IsolationState.NON_ISOLATED, - }[value] - - -def convert_from_lcr_impedance_auto_range_enum(value): - return { - enums._LCRImpedanceAutoRange.OFF: False, - enums._LCRImpedanceAutoRange.ON: True, - }[value] - - -def convert_to_lcr_impedance_auto_range_enum(value): - return { - False: enums._LCRImpedanceAutoRange.OFF, - True: enums._LCRImpedanceAutoRange.ON, - }[value] - - diff --git a/generated/nidcpower/nidcpower/_grpc_stub_interpreter.py b/generated/nidcpower/nidcpower/_grpc_stub_interpreter.py deleted file mode 100644 index 353b856a1d..0000000000 --- a/generated/nidcpower/nidcpower/_grpc_stub_interpreter.py +++ /dev/null @@ -1,531 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nidcpower_pb2 as grpc_types -from . import nidcpower_pb2_grpc as nidcpower_grpc - -from . import lcr_measurement as lcr_measurement # noqa: F401 - -from . import lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nidcpower_grpc.NiDCPowerStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self, channel_name): # noqa: N802 - self._invoke( - self._client.AbortWithChannels, - grpc_types.AbortWithChannelsRequest(vi=self._vi, channel_name=channel_name), - ) - - def self_cal(self, channel_name): # noqa: N802 - self._invoke( - self._client.CalSelfCalibrate, - grpc_types.CalSelfCalibrateRequest(vi=self._vi, channel_name=channel_name), - ) - - def clear_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 - self._invoke( - self._client.ClearLatchedOutputCutoffState, - grpc_types.ClearLatchedOutputCutoffStateRequest(vi=self._vi, channel_name=channel_name, output_cutoff_reason_raw=output_cutoff_reason.value), - ) - - def commit(self, channel_name): # noqa: N802 - self._invoke( - self._client.CommitWithChannels, - grpc_types.CommitWithChannelsRequest(vi=self._vi, channel_name=channel_name), - ) - - def configure_aperture_time(self, channel_name, aperture_time, units): # noqa: N802 - self._invoke( - self._client.ConfigureApertureTime, - grpc_types.ConfigureApertureTimeRequest(vi=self._vi, channel_name=channel_name, aperture_time=aperture_time, units_raw=units.value), - ) - - def configure_lcr_compensation(self, channel_name, compensation_data): # noqa: N802 - raise NotImplementedError('configure_lcr_compensation is not supported over gRPC') - - def configure_lcr_custom_cable_compensation(self, channel_name, custom_cable_compensation_data): # noqa: N802 - self._invoke( - self._client.ConfigureLCRCustomCableCompensation, - grpc_types.ConfigureLCRCustomCableCompensationRequest(vi=self._vi, channel_name=channel_name, custom_cable_compensation_data=custom_cable_compensation_data), - ) - - def create_advanced_sequence_commit_step(self, channel_name, set_as_active_step): # noqa: N802 - self._invoke( - self._client.CreateAdvancedSequenceCommitStepWithChannels, - grpc_types.CreateAdvancedSequenceCommitStepWithChannelsRequest(vi=self._vi, channel_name=channel_name, set_as_active_step=set_as_active_step), - ) - - def create_advanced_sequence_step(self, channel_name, set_as_active_step): # noqa: N802 - self._invoke( - self._client.CreateAdvancedSequenceStepWithChannels, - grpc_types.CreateAdvancedSequenceStepWithChannelsRequest(vi=self._vi, channel_name=channel_name, set_as_active_step=set_as_active_step), - ) - - def create_advanced_sequence_with_channels(self, channel_name, sequence_name, attribute_ids, set_as_active_sequence): # noqa: N802 - self._invoke( - self._client.CreateAdvancedSequenceWithChannels, - grpc_types.CreateAdvancedSequenceWithChannelsRequest(vi=self._vi, channel_name=channel_name, sequence_name=sequence_name, attribute_ids=attribute_ids, set_as_active_sequence=set_as_active_sequence), - ) - - def delete_advanced_sequence(self, channel_name, sequence_name): # noqa: N802 - self._invoke( - self._client.DeleteAdvancedSequenceWithChannels, - grpc_types.DeleteAdvancedSequenceWithChannelsRequest(vi=self._vi, channel_name=channel_name, sequence_name=sequence_name), - ) - - def disable(self): # noqa: N802 - self._invoke( - self._client.Disable, - grpc_types.DisableRequest(vi=self._vi), - ) - - def export_attribute_configuration_buffer(self): # noqa: N802 - response = self._invoke( - self._client.ExportAttributeConfigurationBuffer, - grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), - ) - return response.configuration - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ExportAttributeConfigurationFile, - grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def fancy_initialize(self, resource_name, channels, reset, option_string, independent_channels): # noqa: N802 - response = self._invoke( - self._client.FancyInitialize, - grpc_types.FancyInitializeRequest(resource_name=resource_name, channels=channels, reset=reset, option_string=option_string, independent_channels=independent_channels), - ) - return response.vi - - def fetch_multiple(self, channel_name, timeout, count): # noqa: N802 - response = self._invoke( - self._client.FetchMultiple, - grpc_types.FetchMultipleRequest(vi=self._vi, channel_name=channel_name, timeout=timeout, count=count), - ) - return response.voltage_measurements, response.current_measurements, response.in_compliance - - def fetch_multiple_lcr(self, channel_name, timeout, count): # noqa: N802 - response = self._invoke( - self._client.FetchMultipleLCR, - grpc_types.FetchMultipleLCRRequest(vi=self._vi, channel_name=channel_name, timeout=timeout, count=count), - ) - return [lcr_measurement.LCRMeasurement(x) for x in response.measurements] - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt64, - grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_channel_name(self, index): # noqa: N802 - response = self._invoke( - self._client.GetChannelName, - grpc_types.GetChannelNameRequest(vi=self._vi, index=index), - ) - return response.channel_name - - def get_channel_names(self, indices): # noqa: N802 - response = self._invoke( - self._client.GetChannelNameFromString, - grpc_types.GetChannelNameFromStringRequest(vi=self._vi, index=indices), - ) - return response.channel_name - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.code, response.description - - def get_ext_cal_last_date_and_time(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalLastDateAndTime, - grpc_types.GetExtCalLastDateAndTimeRequest(vi=self._vi), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_ext_cal_last_temp(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalLastTemp, - grpc_types.GetExtCalLastTempRequest(vi=self._vi), - ) - return response.temperature - - def get_ext_cal_recommended_interval(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalRecommendedInterval, - grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), - ) - return response.months - - def get_lcr_compensation_data(self, channel_name): # noqa: N802 - raise NotImplementedError('get_lcr_compensation_data is not supported over gRPC') - - def get_lcr_compensation_last_date_and_time(self, channel_name, compensation_type): # noqa: N802 - response = self._invoke( - self._client.GetLCRCompensationLastDateAndTime, - grpc_types.GetLCRCompensationLastDateAndTimeRequest(vi=self._vi, channel_name=channel_name, compensation_type_raw=compensation_type.value), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_lcr_custom_cable_compensation_data(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.GetLCRCustomCableCompensationData, - grpc_types.GetLCRCustomCableCompensationDataRequest(vi=self._vi, channel_name=channel_name), - ) - return response.custom_cable_compensation_data - - def get_self_cal_last_date_and_time(self): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalLastDateAndTime, - grpc_types.GetSelfCalLastDateAndTimeRequest(vi=self._vi), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_self_cal_last_temp(self): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalLastTemp, - grpc_types.GetSelfCalLastTempRequest(vi=self._vi), - ) - return response.temperature - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationBuffer, - grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), - ) - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationFile, - grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def initialize_with_channels(self, resource_name, channels, reset, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitializeWithChannels, - grpc_types.InitializeWithChannelsRequest(resource_name=resource_name, channels=channels, reset=reset, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initialize_with_independent_channels(self, resource_name, reset, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitializeWithIndependentChannels, - grpc_types.InitializeWithIndependentChannelsRequest(resource_name=resource_name, reset=reset, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate_with_channels(self, channel_name): # noqa: N802 - self._invoke( - self._client.InitiateWithChannels, - grpc_types.InitiateWithChannelsRequest(vi=self._vi, channel_name=channel_name), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def measure(self, channel_name, measurement_type): # noqa: N802 - response = self._invoke( - self._client.Measure, - grpc_types.MeasureRequest(vi=self._vi, channel_name=channel_name, measurement_type_raw=measurement_type.value), - ) - return response.measurement - - def measure_multiple(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.MeasureMultiple, - grpc_types.MeasureMultipleRequest(vi=self._vi, channel_name=channel_name), - ) - return response.voltage_measurements, response.current_measurements - - def measure_multiple_lcr(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.MeasureMultipleLCR, - grpc_types.MeasureMultipleLCRRequest(vi=self._vi, channel_name=channel_name), - ) - return [lcr_measurement.LCRMeasurement(x) for x in response.measurements] - - def parse_channel_count(self, channels_string): # noqa: N802 - raise NotImplementedError('parse_channel_count is not supported over gRPC') - - def perform_lcr_load_compensation(self, channel_name, compensation_spots): # noqa: N802 - self._invoke( - self._client.PerformLCRLoadCompensation, - grpc_types.PerformLCRLoadCompensationRequest(vi=self._vi, channel_name=channel_name, compensation_spots=compensation_spots and [x._create_copy(grpc_types.NILCRLoadCompensationSpot) for x in compensation_spots]), - ) - - def perform_lcr_open_compensation(self, channel_name, additional_frequencies): # noqa: N802 - self._invoke( - self._client.PerformLCROpenCompensation, - grpc_types.PerformLCROpenCompensationRequest(vi=self._vi, channel_name=channel_name, additional_frequencies=additional_frequencies), - ) - - def perform_lcr_open_custom_cable_compensation(self, channel_name): # noqa: N802 - self._invoke( - self._client.PerformLCROpenCustomCableCompensation, - grpc_types.PerformLCROpenCustomCableCompensationRequest(vi=self._vi, channel_name=channel_name), - ) - - def perform_lcr_short_compensation(self, channel_name, additional_frequencies): # noqa: N802 - self._invoke( - self._client.PerformLCRShortCompensation, - grpc_types.PerformLCRShortCompensationRequest(vi=self._vi, channel_name=channel_name, additional_frequencies=additional_frequencies), - ) - - def perform_lcr_short_custom_cable_compensation(self, channel_name): # noqa: N802 - self._invoke( - self._client.PerformLCRShortCustomCableCompensation, - grpc_types.PerformLCRShortCustomCableCompensationRequest(vi=self._vi, channel_name=channel_name), - ) - - def query_in_compliance(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.QueryInCompliance, - grpc_types.QueryInComplianceRequest(vi=self._vi, channel_name=channel_name), - ) - return response.in_compliance - - def query_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 - response = self._invoke( - self._client.QueryLatchedOutputCutoffState, - grpc_types.QueryLatchedOutputCutoffStateRequest(vi=self._vi, channel_name=channel_name, output_cutoff_reason_raw=output_cutoff_reason.value), - ) - return response.output_cutoff_state - - def query_max_current_limit(self, channel_name, voltage_level): # noqa: N802 - response = self._invoke( - self._client.QueryMaxCurrentLimit, - grpc_types.QueryMaxCurrentLimitRequest(vi=self._vi, channel_name=channel_name, voltage_level=voltage_level), - ) - return response.max_current_limit - - def query_max_voltage_level(self, channel_name, current_limit): # noqa: N802 - response = self._invoke( - self._client.QueryMaxVoltageLevel, - grpc_types.QueryMaxVoltageLevelRequest(vi=self._vi, channel_name=channel_name, current_limit=current_limit), - ) - return response.max_voltage_level - - def query_min_current_limit(self, channel_name, voltage_level): # noqa: N802 - response = self._invoke( - self._client.QueryMinCurrentLimit, - grpc_types.QueryMinCurrentLimitRequest(vi=self._vi, channel_name=channel_name, voltage_level=voltage_level), - ) - return response.min_current_limit - - def query_output_state(self, channel_name, output_state): # noqa: N802 - response = self._invoke( - self._client.QueryOutputState, - grpc_types.QueryOutputStateRequest(vi=self._vi, channel_name=channel_name, output_state_raw=output_state.value), - ) - return response.in_state - - def read_current_temperature(self): # noqa: N802 - response = self._invoke( - self._client.ReadCurrentTemperature, - grpc_types.ReadCurrentTemperatureRequest(vi=self._vi), - ) - return response.temperature - - def reset_device(self): # noqa: N802 - self._invoke( - self._client.ResetDevice, - grpc_types.ResetDeviceRequest(vi=self._vi), - ) - - def reset(self, channel_name): # noqa: N802 - self._invoke( - self._client.ResetWithChannels, - grpc_types.ResetWithChannelsRequest(vi=self._vi, channel_name=channel_name), - ) - - def reset_with_defaults(self): # noqa: N802 - self._invoke( - self._client.ResetWithDefaults, - grpc_types.ResetWithDefaultsRequest(vi=self._vi), - ) - - def send_software_edge_trigger(self, channel_name, trigger): # noqa: N802 - self._invoke( - self._client.SendSoftwareEdgeTriggerWithChannels, - grpc_types.SendSoftwareEdgeTriggerWithChannelsRequest(vi=self._vi, channel_name=channel_name, trigger_raw=trigger.value), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt64, - grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def set_sequence(self, channel_name, values, source_delays): # noqa: N802 - self._invoke( - self._client.SetSequence, - grpc_types.SetSequenceRequest(vi=self._vi, channel_name=channel_name, values=values, source_delays=source_delays), - ) - - def unlock(self): # noqa: N802 - self._lock.release() - - def wait_for_event(self, channel_name, event_id, timeout): # noqa: N802 - self._invoke( - self._client.WaitForEventWithChannels, - grpc_types.WaitForEventWithChannelsRequest(vi=self._vi, channel_name=channel_name, event_id_raw=event_id.value, timeout=timeout), - ) - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.self_test_result, response.self_test_message diff --git a/generated/nidcpower/nidcpower/_library.py b/generated/nidcpower/nidcpower/_library.py deleted file mode 100644 index 2db23ea441..0000000000 --- a/generated/nidcpower/nidcpower/_library.py +++ /dev/null @@ -1,671 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nidcpower.errors as errors -import threading - -from nidcpower._visatype import * # noqa: F403,H303 - -import nidcpower.lcr_measurement as lcr_measurement # noqa: F401 - -import nidcpower.lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niDCPower_AbortWithChannels_cfunc = None - self.niDCPower_CalSelfCalibrate_cfunc = None - self.niDCPower_ClearLatchedOutputCutoffState_cfunc = None - self.niDCPower_CommitWithChannels_cfunc = None - self.niDCPower_ConfigureApertureTime_cfunc = None - self.niDCPower_ConfigureLCRCompensation_cfunc = None - self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc = None - self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc = None - self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc = None - self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc = None - self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc = None - self.niDCPower_Disable_cfunc = None - self.niDCPower_ExportAttributeConfigurationBuffer_cfunc = None - self.niDCPower_ExportAttributeConfigurationFile_cfunc = None - self.niDCPower_FancyInitialize_cfunc = None - self.niDCPower_FetchMultiple_cfunc = None - self.niDCPower_FetchMultipleLCR_cfunc = None - self.niDCPower_GetAttributeViBoolean_cfunc = None - self.niDCPower_GetAttributeViInt32_cfunc = None - self.niDCPower_GetAttributeViInt64_cfunc = None - self.niDCPower_GetAttributeViReal64_cfunc = None - self.niDCPower_GetAttributeViString_cfunc = None - self.niDCPower_GetChannelName_cfunc = None - self.niDCPower_GetChannelNameFromString_cfunc = None - self.niDCPower_GetError_cfunc = None - self.niDCPower_GetExtCalLastDateAndTime_cfunc = None - self.niDCPower_GetExtCalLastTemp_cfunc = None - self.niDCPower_GetExtCalRecommendedInterval_cfunc = None - self.niDCPower_GetLCRCompensationData_cfunc = None - self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc = None - self.niDCPower_GetLCRCustomCableCompensationData_cfunc = None - self.niDCPower_GetSelfCalLastDateAndTime_cfunc = None - self.niDCPower_GetSelfCalLastTemp_cfunc = None - self.niDCPower_ImportAttributeConfigurationBuffer_cfunc = None - self.niDCPower_ImportAttributeConfigurationFile_cfunc = None - self.niDCPower_InitializeWithChannels_cfunc = None - self.niDCPower_InitializeWithIndependentChannels_cfunc = None - self.niDCPower_InitiateWithChannels_cfunc = None - self.niDCPower_LockSession_cfunc = None - self.niDCPower_Measure_cfunc = None - self.niDCPower_MeasureMultiple_cfunc = None - self.niDCPower_MeasureMultipleLCR_cfunc = None - self.niDCPower_ParseChannelCount_cfunc = None - self.niDCPower_PerformLCRLoadCompensation_cfunc = None - self.niDCPower_PerformLCROpenCompensation_cfunc = None - self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc = None - self.niDCPower_PerformLCRShortCompensation_cfunc = None - self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc = None - self.niDCPower_QueryInCompliance_cfunc = None - self.niDCPower_QueryLatchedOutputCutoffState_cfunc = None - self.niDCPower_QueryMaxCurrentLimit_cfunc = None - self.niDCPower_QueryMaxVoltageLevel_cfunc = None - self.niDCPower_QueryMinCurrentLimit_cfunc = None - self.niDCPower_QueryOutputState_cfunc = None - self.niDCPower_ReadCurrentTemperature_cfunc = None - self.niDCPower_ResetDevice_cfunc = None - self.niDCPower_ResetWithChannels_cfunc = None - self.niDCPower_ResetWithDefaults_cfunc = None - self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc = None - self.niDCPower_SetAttributeViBoolean_cfunc = None - self.niDCPower_SetAttributeViInt32_cfunc = None - self.niDCPower_SetAttributeViInt64_cfunc = None - self.niDCPower_SetAttributeViReal64_cfunc = None - self.niDCPower_SetAttributeViString_cfunc = None - self.niDCPower_SetRuntimeEnvironment_cfunc = None - self.niDCPower_SetSequence_cfunc = None - self.niDCPower_UnlockSession_cfunc = None - self.niDCPower_WaitForEventWithChannels_cfunc = None - self.niDCPower_close_cfunc = None - self.niDCPower_error_message_cfunc = None - self.niDCPower_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niDCPower_AbortWithChannels(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_AbortWithChannels_cfunc is None: - self.niDCPower_AbortWithChannels_cfunc = self._get_library_function('niDCPower_AbortWithChannels') - self.niDCPower_AbortWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_AbortWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_AbortWithChannels_cfunc(vi, channel_name) - - def niDCPower_CalSelfCalibrate(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_CalSelfCalibrate_cfunc is None: - self.niDCPower_CalSelfCalibrate_cfunc = self._get_library_function('niDCPower_CalSelfCalibrate') - self.niDCPower_CalSelfCalibrate_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_CalSelfCalibrate_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_CalSelfCalibrate_cfunc(vi, channel_name) - - def niDCPower_ClearLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason): # noqa: N802 - with self._func_lock: - if self.niDCPower_ClearLatchedOutputCutoffState_cfunc is None: - self.niDCPower_ClearLatchedOutputCutoffState_cfunc = self._get_library_function('niDCPower_ClearLatchedOutputCutoffState') - self.niDCPower_ClearLatchedOutputCutoffState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niDCPower_ClearLatchedOutputCutoffState_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ClearLatchedOutputCutoffState_cfunc(vi, channel_name, output_cutoff_reason) - - def niDCPower_CommitWithChannels(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_CommitWithChannels_cfunc is None: - self.niDCPower_CommitWithChannels_cfunc = self._get_library_function('niDCPower_CommitWithChannels') - self.niDCPower_CommitWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_CommitWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_CommitWithChannels_cfunc(vi, channel_name) - - def niDCPower_ConfigureApertureTime(self, vi, channel_name, aperture_time, units): # noqa: N802 - with self._func_lock: - if self.niDCPower_ConfigureApertureTime_cfunc is None: - self.niDCPower_ConfigureApertureTime_cfunc = self._get_library_function('niDCPower_ConfigureApertureTime') - self.niDCPower_ConfigureApertureTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32] # noqa: F405 - self.niDCPower_ConfigureApertureTime_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ConfigureApertureTime_cfunc(vi, channel_name, aperture_time, units) - - def niDCPower_ConfigureLCRCompensation(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 - with self._func_lock: - if self.niDCPower_ConfigureLCRCompensation_cfunc is None: - self.niDCPower_ConfigureLCRCompensation_cfunc = self._get_library_function('niDCPower_ConfigureLCRCompensation') - self.niDCPower_ConfigureLCRCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDCPower_ConfigureLCRCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ConfigureLCRCompensation_cfunc(vi, channel_name, compensation_data_size, compensation_data) - - def niDCPower_ConfigureLCRCustomCableCompensation(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 - with self._func_lock: - if self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc is None: - self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc = self._get_library_function('niDCPower_ConfigureLCRCustomCableCompensation') - self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc(vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data) - - def niDCPower_CreateAdvancedSequenceCommitStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 - with self._func_lock: - if self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc is None: - self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc = self._get_library_function('niDCPower_CreateAdvancedSequenceCommitStepWithChannels') - self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 - self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc(vi, channel_name, set_as_active_step) - - def niDCPower_CreateAdvancedSequenceStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 - with self._func_lock: - if self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc is None: - self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc = self._get_library_function('niDCPower_CreateAdvancedSequenceStepWithChannels') - self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 - self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc(vi, channel_name, set_as_active_step) - - def niDCPower_CreateAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name, attribute_id_count, attribute_ids, set_as_active_sequence): # noqa: N802 - with self._func_lock: - if self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc is None: - self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc = self._get_library_function('niDCPower_CreateAdvancedSequenceWithChannels') - self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32), ViBoolean] # noqa: F405 - self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc(vi, channel_name, sequence_name, attribute_id_count, attribute_ids, set_as_active_sequence) - - def niDCPower_DeleteAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc is None: - self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc = self._get_library_function('niDCPower_DeleteAdvancedSequenceWithChannels') - self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc(vi, channel_name, sequence_name) - - def niDCPower_Disable(self, vi): # noqa: N802 - with self._func_lock: - if self.niDCPower_Disable_cfunc is None: - self.niDCPower_Disable_cfunc = self._get_library_function('niDCPower_Disable') - self.niDCPower_Disable_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDCPower_Disable_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_Disable_cfunc(vi) - - def niDCPower_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - with self._func_lock: - if self.niDCPower_ExportAttributeConfigurationBuffer_cfunc is None: - self.niDCPower_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDCPower_ExportAttributeConfigurationBuffer') - self.niDCPower_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDCPower_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ExportAttributeConfigurationBuffer_cfunc(vi, size, configuration) - - def niDCPower_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDCPower_ExportAttributeConfigurationFile_cfunc is None: - self.niDCPower_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niDCPower_ExportAttributeConfigurationFile') - self.niDCPower_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ExportAttributeConfigurationFile_cfunc(vi, file_path) - - def niDCPower_FancyInitialize(self, resource_name, channels, reset, option_string, vi, independent_channels): # noqa: N802 - with self._func_lock: - if self.niDCPower_FancyInitialize_cfunc is None: - self.niDCPower_FancyInitialize_cfunc = self._get_library_function('niDCPower_FancyInitialize') - self.niDCPower_FancyInitialize_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession), ViBoolean] # noqa: F405 - self.niDCPower_FancyInitialize_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_FancyInitialize_cfunc(resource_name, channels, reset, option_string, vi, independent_channels) - - def niDCPower_FetchMultiple(self, vi, channel_name, timeout, count, voltage_measurements, current_measurements, in_compliance, actual_count): # noqa: N802 - with self._func_lock: - if self.niDCPower_FetchMultiple_cfunc is None: - self.niDCPower_FetchMultiple_cfunc = self._get_library_function('niDCPower_FetchMultiple') - self.niDCPower_FetchMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_FetchMultiple_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_FetchMultiple_cfunc(vi, channel_name, timeout, count, voltage_measurements, current_measurements, in_compliance, actual_count) - - def niDCPower_FetchMultipleLCR(self, vi, channel_name, timeout, count, measurements, actual_count): # noqa: N802 - with self._func_lock: - if self.niDCPower_FetchMultipleLCR_cfunc is None: - self.niDCPower_FetchMultipleLCR_cfunc = self._get_library_function('niDCPower_FetchMultipleLCR') - self.niDCPower_FetchMultipleLCR_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(lcr_measurement.struct_NILCRMeasurement), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_FetchMultipleLCR_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_FetchMultipleLCR_cfunc(vi, channel_name, timeout, count, measurements, actual_count) - - def niDCPower_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetAttributeViBoolean_cfunc is None: - self.niDCPower_GetAttributeViBoolean_cfunc = self._get_library_function('niDCPower_GetAttributeViBoolean') - self.niDCPower_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDCPower_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetAttributeViInt32_cfunc is None: - self.niDCPower_GetAttributeViInt32_cfunc = self._get_library_function('niDCPower_GetAttributeViInt32') - self.niDCPower_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetAttributeViInt64_cfunc is None: - self.niDCPower_GetAttributeViInt64_cfunc = self._get_library_function('niDCPower_GetAttributeViInt64') - self.niDCPower_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niDCPower_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetAttributeViReal64_cfunc is None: - self.niDCPower_GetAttributeViReal64_cfunc = self._get_library_function('niDCPower_GetAttributeViReal64') - self.niDCPower_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetAttributeViString_cfunc is None: - self.niDCPower_GetAttributeViString_cfunc = self._get_library_function('niDCPower_GetAttributeViString') - self.niDCPower_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buffer_size, attribute_value) - - def niDCPower_GetChannelName(self, vi, index, buffer_size, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetChannelName_cfunc is None: - self.niDCPower_GetChannelName_cfunc = self._get_library_function('niDCPower_GetChannelName') - self.niDCPower_GetChannelName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_GetChannelName_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetChannelName_cfunc(vi, index, buffer_size, channel_name) - - def niDCPower_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetChannelNameFromString_cfunc is None: - self.niDCPower_GetChannelNameFromString_cfunc = self._get_library_function('niDCPower_GetChannelNameFromString') - self.niDCPower_GetChannelNameFromString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_GetChannelNameFromString_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetChannelNameFromString_cfunc(vi, indices, buffer_size, names) - - def niDCPower_GetError(self, vi, code, buffer_size, description): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetError_cfunc is None: - self.niDCPower_GetError_cfunc = self._get_library_function('niDCPower_GetError') - self.niDCPower_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetError_cfunc(vi, code, buffer_size, description) - - def niDCPower_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetExtCalLastDateAndTime_cfunc is None: - self.niDCPower_GetExtCalLastDateAndTime_cfunc = self._get_library_function('niDCPower_GetExtCalLastDateAndTime') - self.niDCPower_GetExtCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_GetExtCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetExtCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) - - def niDCPower_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetExtCalLastTemp_cfunc is None: - self.niDCPower_GetExtCalLastTemp_cfunc = self._get_library_function('niDCPower_GetExtCalLastTemp') - self.niDCPower_GetExtCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_GetExtCalLastTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetExtCalLastTemp_cfunc(vi, temperature) - - def niDCPower_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetExtCalRecommendedInterval_cfunc is None: - self.niDCPower_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niDCPower_GetExtCalRecommendedInterval') - self.niDCPower_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetExtCalRecommendedInterval_cfunc(vi, months) - - def niDCPower_GetLCRCompensationData(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetLCRCompensationData_cfunc is None: - self.niDCPower_GetLCRCompensationData_cfunc = self._get_library_function('niDCPower_GetLCRCompensationData') - self.niDCPower_GetLCRCompensationData_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDCPower_GetLCRCompensationData_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetLCRCompensationData_cfunc(vi, channel_name, compensation_data_size, compensation_data) - - def niDCPower_GetLCRCompensationLastDateAndTime(self, vi, channel_name, compensation_type, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc is None: - self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc = self._get_library_function('niDCPower_GetLCRCompensationLastDateAndTime') - self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc(vi, channel_name, compensation_type, year, month, day, hour, minute) - - def niDCPower_GetLCRCustomCableCompensationData(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetLCRCustomCableCompensationData_cfunc is None: - self.niDCPower_GetLCRCustomCableCompensationData_cfunc = self._get_library_function('niDCPower_GetLCRCustomCableCompensationData') - self.niDCPower_GetLCRCustomCableCompensationData_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDCPower_GetLCRCustomCableCompensationData_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetLCRCustomCableCompensationData_cfunc(vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data) - - def niDCPower_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetSelfCalLastDateAndTime_cfunc is None: - self.niDCPower_GetSelfCalLastDateAndTime_cfunc = self._get_library_function('niDCPower_GetSelfCalLastDateAndTime') - self.niDCPower_GetSelfCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDCPower_GetSelfCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetSelfCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) - - def niDCPower_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 - with self._func_lock: - if self.niDCPower_GetSelfCalLastTemp_cfunc is None: - self.niDCPower_GetSelfCalLastTemp_cfunc = self._get_library_function('niDCPower_GetSelfCalLastTemp') - self.niDCPower_GetSelfCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_GetSelfCalLastTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_GetSelfCalLastTemp_cfunc(vi, temperature) - - def niDCPower_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - with self._func_lock: - if self.niDCPower_ImportAttributeConfigurationBuffer_cfunc is None: - self.niDCPower_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDCPower_ImportAttributeConfigurationBuffer') - self.niDCPower_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDCPower_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ImportAttributeConfigurationBuffer_cfunc(vi, size, configuration) - - def niDCPower_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDCPower_ImportAttributeConfigurationFile_cfunc is None: - self.niDCPower_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niDCPower_ImportAttributeConfigurationFile') - self.niDCPower_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ImportAttributeConfigurationFile_cfunc(vi, file_path) - - def niDCPower_InitializeWithChannels(self, resource_name, channels, reset, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niDCPower_InitializeWithChannels_cfunc is None: - self.niDCPower_InitializeWithChannels_cfunc = self._get_library_function('niDCPower_InitializeWithChannels') - self.niDCPower_InitializeWithChannels_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niDCPower_InitializeWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_InitializeWithChannels_cfunc(resource_name, channels, reset, option_string, vi) - - def niDCPower_InitializeWithIndependentChannels(self, resource_name, reset, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niDCPower_InitializeWithIndependentChannels_cfunc is None: - self.niDCPower_InitializeWithIndependentChannels_cfunc = self._get_library_function('niDCPower_InitializeWithIndependentChannels') - self.niDCPower_InitializeWithIndependentChannels_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niDCPower_InitializeWithIndependentChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_InitializeWithIndependentChannels_cfunc(resource_name, reset, option_string, vi) - - def niDCPower_InitiateWithChannels(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_InitiateWithChannels_cfunc is None: - self.niDCPower_InitiateWithChannels_cfunc = self._get_library_function('niDCPower_InitiateWithChannels') - self.niDCPower_InitiateWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_InitiateWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_InitiateWithChannels_cfunc(vi, channel_name) - - def niDCPower_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niDCPower_LockSession_cfunc is None: - self.niDCPower_LockSession_cfunc = self._get_library_function('niDCPower_LockSession') - self.niDCPower_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDCPower_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_LockSession_cfunc(vi, caller_has_lock) - - def niDCPower_Measure(self, vi, channel_name, measurement_type, measurement): # noqa: N802 - with self._func_lock: - if self.niDCPower_Measure_cfunc is None: - self.niDCPower_Measure_cfunc = self._get_library_function('niDCPower_Measure') - self.niDCPower_Measure_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_Measure_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_Measure_cfunc(vi, channel_name, measurement_type, measurement) - - def niDCPower_MeasureMultiple(self, vi, channel_name, voltage_measurements, current_measurements): # noqa: N802 - with self._func_lock: - if self.niDCPower_MeasureMultiple_cfunc is None: - self.niDCPower_MeasureMultiple_cfunc = self._get_library_function('niDCPower_MeasureMultiple') - self.niDCPower_MeasureMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_MeasureMultiple_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_MeasureMultiple_cfunc(vi, channel_name, voltage_measurements, current_measurements) - - def niDCPower_MeasureMultipleLCR(self, vi, channel_name, measurements): # noqa: N802 - with self._func_lock: - if self.niDCPower_MeasureMultipleLCR_cfunc is None: - self.niDCPower_MeasureMultipleLCR_cfunc = self._get_library_function('niDCPower_MeasureMultipleLCR') - self.niDCPower_MeasureMultipleLCR_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(lcr_measurement.struct_NILCRMeasurement)] # noqa: F405 - self.niDCPower_MeasureMultipleLCR_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_MeasureMultipleLCR_cfunc(vi, channel_name, measurements) - - def niDCPower_ParseChannelCount(self, vi, channels_string, number_of_channels): # noqa: N802 - with self._func_lock: - if self.niDCPower_ParseChannelCount_cfunc is None: - self.niDCPower_ParseChannelCount_cfunc = self._get_library_function('niDCPower_ParseChannelCount') - self.niDCPower_ParseChannelCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViUInt32)] # noqa: F405 - self.niDCPower_ParseChannelCount_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ParseChannelCount_cfunc(vi, channels_string, number_of_channels) - - def niDCPower_PerformLCRLoadCompensation(self, vi, channel_name, num_compensation_spots, compensation_spots): # noqa: N802 - with self._func_lock: - if self.niDCPower_PerformLCRLoadCompensation_cfunc is None: - self.niDCPower_PerformLCRLoadCompensation_cfunc = self._get_library_function('niDCPower_PerformLCRLoadCompensation') - self.niDCPower_PerformLCRLoadCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(lcr_load_compensation_spot.struct_NILCRLoadCompensationSpot)] # noqa: F405 - self.niDCPower_PerformLCRLoadCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_PerformLCRLoadCompensation_cfunc(vi, channel_name, num_compensation_spots, compensation_spots) - - def niDCPower_PerformLCROpenCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 - with self._func_lock: - if self.niDCPower_PerformLCROpenCompensation_cfunc is None: - self.niDCPower_PerformLCROpenCompensation_cfunc = self._get_library_function('niDCPower_PerformLCROpenCompensation') - self.niDCPower_PerformLCROpenCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_PerformLCROpenCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_PerformLCROpenCompensation_cfunc(vi, channel_name, num_frequencies, additional_frequencies) - - def niDCPower_PerformLCROpenCustomCableCompensation(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc is None: - self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc = self._get_library_function('niDCPower_PerformLCROpenCustomCableCompensation') - self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc(vi, channel_name) - - def niDCPower_PerformLCRShortCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 - with self._func_lock: - if self.niDCPower_PerformLCRShortCompensation_cfunc is None: - self.niDCPower_PerformLCRShortCompensation_cfunc = self._get_library_function('niDCPower_PerformLCRShortCompensation') - self.niDCPower_PerformLCRShortCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_PerformLCRShortCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_PerformLCRShortCompensation_cfunc(vi, channel_name, num_frequencies, additional_frequencies) - - def niDCPower_PerformLCRShortCustomCableCompensation(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc is None: - self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc = self._get_library_function('niDCPower_PerformLCRShortCustomCableCompensation') - self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc(vi, channel_name) - - def niDCPower_QueryInCompliance(self, vi, channel_name, in_compliance): # noqa: N802 - with self._func_lock: - if self.niDCPower_QueryInCompliance_cfunc is None: - self.niDCPower_QueryInCompliance_cfunc = self._get_library_function('niDCPower_QueryInCompliance') - self.niDCPower_QueryInCompliance_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDCPower_QueryInCompliance_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_QueryInCompliance_cfunc(vi, channel_name, in_compliance) - - def niDCPower_QueryLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason, output_cutoff_state): # noqa: N802 - with self._func_lock: - if self.niDCPower_QueryLatchedOutputCutoffState_cfunc is None: - self.niDCPower_QueryLatchedOutputCutoffState_cfunc = self._get_library_function('niDCPower_QueryLatchedOutputCutoffState') - self.niDCPower_QueryLatchedOutputCutoffState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDCPower_QueryLatchedOutputCutoffState_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_QueryLatchedOutputCutoffState_cfunc(vi, channel_name, output_cutoff_reason, output_cutoff_state) - - def niDCPower_QueryMaxCurrentLimit(self, vi, channel_name, voltage_level, max_current_limit): # noqa: N802 - with self._func_lock: - if self.niDCPower_QueryMaxCurrentLimit_cfunc is None: - self.niDCPower_QueryMaxCurrentLimit_cfunc = self._get_library_function('niDCPower_QueryMaxCurrentLimit') - self.niDCPower_QueryMaxCurrentLimit_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_QueryMaxCurrentLimit_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_QueryMaxCurrentLimit_cfunc(vi, channel_name, voltage_level, max_current_limit) - - def niDCPower_QueryMaxVoltageLevel(self, vi, channel_name, current_limit, max_voltage_level): # noqa: N802 - with self._func_lock: - if self.niDCPower_QueryMaxVoltageLevel_cfunc is None: - self.niDCPower_QueryMaxVoltageLevel_cfunc = self._get_library_function('niDCPower_QueryMaxVoltageLevel') - self.niDCPower_QueryMaxVoltageLevel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_QueryMaxVoltageLevel_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_QueryMaxVoltageLevel_cfunc(vi, channel_name, current_limit, max_voltage_level) - - def niDCPower_QueryMinCurrentLimit(self, vi, channel_name, voltage_level, min_current_limit): # noqa: N802 - with self._func_lock: - if self.niDCPower_QueryMinCurrentLimit_cfunc is None: - self.niDCPower_QueryMinCurrentLimit_cfunc = self._get_library_function('niDCPower_QueryMinCurrentLimit') - self.niDCPower_QueryMinCurrentLimit_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_QueryMinCurrentLimit_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_QueryMinCurrentLimit_cfunc(vi, channel_name, voltage_level, min_current_limit) - - def niDCPower_QueryOutputState(self, vi, channel_name, output_state, in_state): # noqa: N802 - with self._func_lock: - if self.niDCPower_QueryOutputState_cfunc is None: - self.niDCPower_QueryOutputState_cfunc = self._get_library_function('niDCPower_QueryOutputState') - self.niDCPower_QueryOutputState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDCPower_QueryOutputState_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_QueryOutputState_cfunc(vi, channel_name, output_state, in_state) - - def niDCPower_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 - with self._func_lock: - if self.niDCPower_ReadCurrentTemperature_cfunc is None: - self.niDCPower_ReadCurrentTemperature_cfunc = self._get_library_function('niDCPower_ReadCurrentTemperature') - self.niDCPower_ReadCurrentTemperature_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDCPower_ReadCurrentTemperature_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ReadCurrentTemperature_cfunc(vi, temperature) - - def niDCPower_ResetDevice(self, vi): # noqa: N802 - with self._func_lock: - if self.niDCPower_ResetDevice_cfunc is None: - self.niDCPower_ResetDevice_cfunc = self._get_library_function('niDCPower_ResetDevice') - self.niDCPower_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDCPower_ResetDevice_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ResetDevice_cfunc(vi) - - def niDCPower_ResetWithChannels(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niDCPower_ResetWithChannels_cfunc is None: - self.niDCPower_ResetWithChannels_cfunc = self._get_library_function('niDCPower_ResetWithChannels') - self.niDCPower_ResetWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_ResetWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ResetWithChannels_cfunc(vi, channel_name) - - def niDCPower_ResetWithDefaults(self, vi): # noqa: N802 - with self._func_lock: - if self.niDCPower_ResetWithDefaults_cfunc is None: - self.niDCPower_ResetWithDefaults_cfunc = self._get_library_function('niDCPower_ResetWithDefaults') - self.niDCPower_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDCPower_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_ResetWithDefaults_cfunc(vi) - - def niDCPower_SendSoftwareEdgeTriggerWithChannels(self, vi, channel_name, trigger): # noqa: N802 - with self._func_lock: - if self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc is None: - self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc = self._get_library_function('niDCPower_SendSoftwareEdgeTriggerWithChannels') - self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc(vi, channel_name, trigger) - - def niDCPower_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetAttributeViBoolean_cfunc is None: - self.niDCPower_SetAttributeViBoolean_cfunc = self._get_library_function('niDCPower_SetAttributeViBoolean') - self.niDCPower_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niDCPower_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetAttributeViInt32_cfunc is None: - self.niDCPower_SetAttributeViInt32_cfunc = self._get_library_function('niDCPower_SetAttributeViInt32') - self.niDCPower_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niDCPower_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetAttributeViInt64_cfunc is None: - self.niDCPower_SetAttributeViInt64_cfunc = self._get_library_function('niDCPower_SetAttributeViInt64') - self.niDCPower_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 - self.niDCPower_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetAttributeViReal64_cfunc is None: - self.niDCPower_SetAttributeViReal64_cfunc = self._get_library_function('niDCPower_SetAttributeViReal64') - self.niDCPower_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niDCPower_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetAttributeViString_cfunc is None: - self.niDCPower_SetAttributeViString_cfunc = self._get_library_function('niDCPower_SetAttributeViString') - self.niDCPower_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDCPower_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetRuntimeEnvironment_cfunc is None: - self.niDCPower_SetRuntimeEnvironment_cfunc = self._get_library_function('niDCPower_SetRuntimeEnvironment') - self.niDCPower_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niDCPower_SetSequence(self, vi, channel_name, values, source_delays, size): # noqa: N802 - with self._func_lock: - if self.niDCPower_SetSequence_cfunc is None: - self.niDCPower_SetSequence_cfunc = self._get_library_function('niDCPower_SetSequence') - self.niDCPower_SetSequence_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViUInt32] # noqa: F405 - self.niDCPower_SetSequence_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_SetSequence_cfunc(vi, channel_name, values, source_delays, size) - - def niDCPower_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niDCPower_UnlockSession_cfunc is None: - self.niDCPower_UnlockSession_cfunc = self._get_library_function('niDCPower_UnlockSession') - self.niDCPower_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDCPower_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_UnlockSession_cfunc(vi, caller_has_lock) - - def niDCPower_WaitForEventWithChannels(self, vi, channel_name, event_id, timeout): # noqa: N802 - with self._func_lock: - if self.niDCPower_WaitForEventWithChannels_cfunc is None: - self.niDCPower_WaitForEventWithChannels_cfunc = self._get_library_function('niDCPower_WaitForEventWithChannels') - self.niDCPower_WaitForEventWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405 - self.niDCPower_WaitForEventWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_WaitForEventWithChannels_cfunc(vi, channel_name, event_id, timeout) - - def niDCPower_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niDCPower_close_cfunc is None: - self.niDCPower_close_cfunc = self._get_library_function('niDCPower_close') - self.niDCPower_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDCPower_close_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_close_cfunc(vi) - - def niDCPower_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niDCPower_error_message_cfunc is None: - self.niDCPower_error_message_cfunc = self._get_library_function('niDCPower_error_message') - self.niDCPower_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_error_message_cfunc(vi, error_code, error_message) - - def niDCPower_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niDCPower_self_test_cfunc is None: - self.niDCPower_self_test_cfunc = self._get_library_function('niDCPower_self_test') - self.niDCPower_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDCPower_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niDCPower_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nidcpower/nidcpower/_library_interpreter.py b/generated/nidcpower/nidcpower/_library_interpreter.py deleted file mode 100644 index 09640eca56..0000000000 --- a/generated/nidcpower/nidcpower/_library_interpreter.py +++ /dev/null @@ -1,782 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import nidcpower._library_singleton as _library_singleton -import nidcpower._visatype as _visatype -import nidcpower.enums as enums # noqa: F401 -import nidcpower.errors as errors - -import nidcpower.lcr_measurement as lcr_measurement # noqa: F401 - -import nidcpower.lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_AbortWithChannels(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_cal(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_CalSelfCalibrate(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - output_cutoff_reason_ctype = _visatype.ViInt32(output_cutoff_reason.value) # case S130 - error_code = self._library.niDCPower_ClearLatchedOutputCutoffState(vi_ctype, channel_name_ctype, output_cutoff_reason_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def commit(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_CommitWithChannels(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_aperture_time(self, channel_name, aperture_time, units): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - aperture_time_ctype = _visatype.ViReal64(aperture_time) # case S150 - units_ctype = _visatype.ViInt32(units.value) # case S130 - error_code = self._library.niDCPower_ConfigureApertureTime(vi_ctype, channel_name_ctype, aperture_time_ctype, units_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_lcr_compensation(self, channel_name, compensation_data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - compensation_data_size_ctype = _visatype.ViInt32(0 if compensation_data is None else len(compensation_data)) # case S160 - compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=compensation_data, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niDCPower_ConfigureLCRCompensation(vi_ctype, channel_name_ctype, compensation_data_size_ctype, compensation_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_lcr_custom_cable_compensation(self, channel_name, custom_cable_compensation_data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - custom_cable_compensation_data_size_ctype = _visatype.ViInt32(0 if custom_cable_compensation_data is None else len(custom_cable_compensation_data)) # case S160 - custom_cable_compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=custom_cable_compensation_data, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niDCPower_ConfigureLCRCustomCableCompensation(vi_ctype, channel_name_ctype, custom_cable_compensation_data_size_ctype, custom_cable_compensation_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_advanced_sequence_commit_step(self, channel_name, set_as_active_step): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - set_as_active_step_ctype = _visatype.ViBoolean(set_as_active_step) # case S150 - error_code = self._library.niDCPower_CreateAdvancedSequenceCommitStepWithChannels(vi_ctype, channel_name_ctype, set_as_active_step_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_advanced_sequence_step(self, channel_name, set_as_active_step): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - set_as_active_step_ctype = _visatype.ViBoolean(set_as_active_step) # case S150 - error_code = self._library.niDCPower_CreateAdvancedSequenceStepWithChannels(vi_ctype, channel_name_ctype, set_as_active_step_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_advanced_sequence_with_channels(self, channel_name, sequence_name, attribute_ids, set_as_active_sequence): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - sequence_name_ctype = ctypes.create_string_buffer(sequence_name.encode(self._encoding)) # case C020 - attribute_id_count_ctype = _visatype.ViInt32(0 if attribute_ids is None else len(attribute_ids)) # case S160 - attribute_ids_ctype = _get_ctypes_pointer_for_buffer(value=attribute_ids, library_type=_visatype.ViInt32) # case B550 - set_as_active_sequence_ctype = _visatype.ViBoolean(set_as_active_sequence) # case S150 - error_code = self._library.niDCPower_CreateAdvancedSequenceWithChannels(vi_ctype, channel_name_ctype, sequence_name_ctype, attribute_id_count_ctype, attribute_ids_ctype, set_as_active_sequence_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_advanced_sequence(self, channel_name, sequence_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - sequence_name_ctype = ctypes.create_string_buffer(sequence_name.encode(self._encoding)) # case C020 - error_code = self._library.niDCPower_DeleteAdvancedSequenceWithChannels(vi_ctype, channel_name_ctype, sequence_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDCPower_Disable(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def export_attribute_configuration_buffer(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_ctype = _visatype.ViInt32() # case S170 - configuration_ctype = None # case B580 - error_code = self._library.niDCPower_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - size_ctype = _visatype.ViInt32(error_code) # case S180 - configuration_size = size_ctype.value # case B590 - configuration_array = array.array("b", [0]) * configuration_size # case B590 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niDCPower_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return configuration_array - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDCPower_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def fancy_initialize(self, resource_name, channels, reset, option_string, independent_channels): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - channels_ctype = ctypes.create_string_buffer(channels.encode(self._encoding)) # case C020 - reset_ctype = _visatype.ViBoolean(reset) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - independent_channels_ctype = _visatype.ViBoolean(independent_channels) # case S150 - error_code = self._library.niDCPower_FancyInitialize(resource_name_ctype, channels_ctype, reset_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype)), independent_channels_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(vi_ctype.value) - - def fetch_multiple(self, channel_name, timeout, count): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - count_ctype = _visatype.ViInt32(count) # case S210 - voltage_measurements_size = count # case B600 - voltage_measurements_array = array.array("d", [0]) * voltage_measurements_size # case B600 - voltage_measurements_ctype = _get_ctypes_pointer_for_buffer(value=voltage_measurements_array, library_type=_visatype.ViReal64) # case B600 - current_measurements_size = count # case B600 - current_measurements_array = array.array("d", [0]) * current_measurements_size # case B600 - current_measurements_ctype = _get_ctypes_pointer_for_buffer(value=current_measurements_array, library_type=_visatype.ViReal64) # case B600 - in_compliance_size = count # case B600 - in_compliance_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=in_compliance_size) # case B600 - actual_count_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_FetchMultiple(vi_ctype, channel_name_ctype, timeout_ctype, count_ctype, voltage_measurements_ctype, current_measurements_ctype, in_compliance_ctype, None if actual_count_ctype is None else (ctypes.pointer(actual_count_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return voltage_measurements_array, current_measurements_array, [bool(in_compliance_ctype[i]) for i in range(count_ctype.value)] - - def fetch_multiple_lcr(self, channel_name, timeout, count): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - count_ctype = _visatype.ViInt32(count) # case S210 - measurements_size = count # case B600 - measurements_ctype = _get_ctypes_pointer_for_buffer(library_type=lcr_measurement.struct_NILCRMeasurement, size=measurements_size) # case B600 - actual_count_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_FetchMultipleLCR(vi_ctype, channel_name_ctype, timeout_ctype, count_ctype, measurements_ctype, None if actual_count_ctype is None else (ctypes.pointer(actual_count_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [lcr_measurement.LCRMeasurement(measurements_ctype[i]) for i in range(count_ctype.value)] - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDCPower_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(attribute_value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niDCPower_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(attribute_value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - attribute_value_ctype = None # case C050 - error_code = self._library.niDCPower_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - attribute_value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDCPower_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return attribute_value_ctype.value.decode(self._encoding) - - def get_channel_name(self, index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - index_ctype = _visatype.ViInt32(index) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - channel_name_ctype = None # case C050 - error_code = self._library.niDCPower_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - channel_name_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDCPower_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return channel_name_ctype.value.decode(self._encoding) - - def get_channel_names(self, indices): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 - buffer_size_ctype = _visatype.ViInt32() # case S170 - names_ctype = None # case C050 - error_code = self._library.niDCPower_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - names_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDCPower_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return names_ctype.value.decode(self._encoding) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - code_ctype = _visatype.ViStatus() # case S220 - buffer_size_ctype = _visatype.ViInt32() # case S170 - description_ctype = None # case C050 - error_code = self._library.niDCPower_GetError(vi_ctype, None if code_ctype is None else (ctypes.pointer(code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDCPower_GetError(vi_ctype, None if code_ctype is None else (ctypes.pointer(code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(code_ctype.value), description_ctype.value.decode(self._encoding) - - def get_ext_cal_last_date_and_time(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_GetExtCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_ext_cal_last_temp(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_GetExtCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_ext_cal_recommended_interval(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - months_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(months_ctype.value) - - def get_lcr_compensation_data(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - compensation_data_size_ctype = _visatype.ViInt32() # case S170 - compensation_data_ctype = None # case B580 - error_code = self._library.niDCPower_GetLCRCompensationData(vi_ctype, channel_name_ctype, compensation_data_size_ctype, compensation_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - compensation_data_size_ctype = _visatype.ViInt32(error_code) # case S180 - compensation_data_size = compensation_data_size_ctype.value # case B590 - compensation_data_array = array.array("b", [0]) * compensation_data_size # case B590 - compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=compensation_data_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niDCPower_GetLCRCompensationData(vi_ctype, channel_name_ctype, compensation_data_size_ctype, compensation_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return compensation_data_array - - def get_lcr_compensation_last_date_and_time(self, channel_name, compensation_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - compensation_type_ctype = _visatype.ViInt32(compensation_type.value) # case S130 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_GetLCRCompensationLastDateAndTime(vi_ctype, channel_name_ctype, compensation_type_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_lcr_custom_cable_compensation_data(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - custom_cable_compensation_data_size_ctype = _visatype.ViInt32() # case S170 - custom_cable_compensation_data_ctype = None # case B580 - error_code = self._library.niDCPower_GetLCRCustomCableCompensationData(vi_ctype, channel_name_ctype, custom_cable_compensation_data_size_ctype, custom_cable_compensation_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - custom_cable_compensation_data_size_ctype = _visatype.ViInt32(error_code) # case S180 - custom_cable_compensation_data_size = custom_cable_compensation_data_size_ctype.value # case B590 - custom_cable_compensation_data_array = array.array("b", [0]) * custom_cable_compensation_data_size # case B590 - custom_cable_compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=custom_cable_compensation_data_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niDCPower_GetLCRCustomCableCompensationData(vi_ctype, channel_name_ctype, custom_cable_compensation_data_size_ctype, custom_cable_compensation_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return custom_cable_compensation_data_array - - def get_self_cal_last_date_and_time(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDCPower_GetSelfCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_self_cal_last_temp(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_GetSelfCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niDCPower_ImportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDCPower_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def initialize_with_channels(self, resource_name, channels, reset, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - channels_ctype = ctypes.create_string_buffer(channels.encode(self._encoding)) # case C020 - reset_ctype = _visatype.ViBoolean(reset) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niDCPower_InitializeWithChannels(resource_name_ctype, channels_ctype, reset_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initialize_with_independent_channels(self, resource_name, reset, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - reset_ctype = _visatype.ViBoolean(reset) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niDCPower_InitializeWithIndependentChannels(resource_name_ctype, reset_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initiate_with_channels(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_InitiateWithChannels(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDCPower_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def measure(self, channel_name, measurement_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - measurement_type_ctype = _visatype.ViInt32(measurement_type.value) # case S130 - measurement_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_Measure(vi_ctype, channel_name_ctype, measurement_type_ctype, None if measurement_ctype is None else (ctypes.pointer(measurement_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(measurement_ctype.value) - - def measure_multiple(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - voltage_measurements_size = self.parse_channel_count(channel_name) # case B560 - voltage_measurements_array = array.array("d", [0]) * voltage_measurements_size # case B560 - voltage_measurements_ctype = _get_ctypes_pointer_for_buffer(value=voltage_measurements_array, library_type=_visatype.ViReal64) # case B560 - current_measurements_size = self.parse_channel_count(channel_name) # case B560 - current_measurements_array = array.array("d", [0]) * current_measurements_size # case B560 - current_measurements_ctype = _get_ctypes_pointer_for_buffer(value=current_measurements_array, library_type=_visatype.ViReal64) # case B560 - error_code = self._library.niDCPower_MeasureMultiple(vi_ctype, channel_name_ctype, voltage_measurements_ctype, current_measurements_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return voltage_measurements_array, current_measurements_array - - def measure_multiple_lcr(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - measurements_size = self.parse_channel_count(channel_name) # case B560 - measurements_ctype = _get_ctypes_pointer_for_buffer(library_type=lcr_measurement.struct_NILCRMeasurement, size=measurements_size) # case B560 - error_code = self._library.niDCPower_MeasureMultipleLCR(vi_ctype, channel_name_ctype, measurements_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [lcr_measurement.LCRMeasurement(measurements_ctype[i]) for i in range(self.parse_channel_count(channel_name))] - - def parse_channel_count(self, channels_string): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channels_string_ctype = ctypes.create_string_buffer(channels_string.encode(self._encoding)) # case C010 - number_of_channels_ctype = _visatype.ViUInt32() # case S220 - error_code = self._library.niDCPower_ParseChannelCount(vi_ctype, channels_string_ctype, None if number_of_channels_ctype is None else (ctypes.pointer(number_of_channels_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(number_of_channels_ctype.value) - - def perform_lcr_load_compensation(self, channel_name, compensation_spots): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - num_compensation_spots_ctype = _visatype.ViInt32(0 if compensation_spots is None else len(compensation_spots)) # case S160 - compensation_spots_ctype = _get_ctypes_pointer_for_buffer([lcr_load_compensation_spot.struct_NILCRLoadCompensationSpot(c) for c in compensation_spots], library_type=lcr_load_compensation_spot.struct_NILCRLoadCompensationSpot) # case B540 - error_code = self._library.niDCPower_PerformLCRLoadCompensation(vi_ctype, channel_name_ctype, num_compensation_spots_ctype, compensation_spots_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_lcr_open_compensation(self, channel_name, additional_frequencies): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - num_frequencies_ctype = _visatype.ViInt32(0 if additional_frequencies is None else len(additional_frequencies)) # case S160 - additional_frequencies_ctype = _get_ctypes_pointer_for_buffer(value=additional_frequencies, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niDCPower_PerformLCROpenCompensation(vi_ctype, channel_name_ctype, num_frequencies_ctype, additional_frequencies_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_lcr_open_custom_cable_compensation(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_PerformLCROpenCustomCableCompensation(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_lcr_short_compensation(self, channel_name, additional_frequencies): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - num_frequencies_ctype = _visatype.ViInt32(0 if additional_frequencies is None else len(additional_frequencies)) # case S160 - additional_frequencies_ctype = _get_ctypes_pointer_for_buffer(value=additional_frequencies, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niDCPower_PerformLCRShortCompensation(vi_ctype, channel_name_ctype, num_frequencies_ctype, additional_frequencies_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_lcr_short_custom_cable_compensation(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_PerformLCRShortCustomCableCompensation(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def query_in_compliance(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - in_compliance_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDCPower_QueryInCompliance(vi_ctype, channel_name_ctype, None if in_compliance_ctype is None else (ctypes.pointer(in_compliance_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(in_compliance_ctype.value) - - def query_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - output_cutoff_reason_ctype = _visatype.ViInt32(output_cutoff_reason.value) # case S130 - output_cutoff_state_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDCPower_QueryLatchedOutputCutoffState(vi_ctype, channel_name_ctype, output_cutoff_reason_ctype, None if output_cutoff_state_ctype is None else (ctypes.pointer(output_cutoff_state_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(output_cutoff_state_ctype.value) - - def query_max_current_limit(self, channel_name, voltage_level): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - voltage_level_ctype = _visatype.ViReal64(voltage_level) # case S150 - max_current_limit_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_QueryMaxCurrentLimit(vi_ctype, channel_name_ctype, voltage_level_ctype, None if max_current_limit_ctype is None else (ctypes.pointer(max_current_limit_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(max_current_limit_ctype.value) - - def query_max_voltage_level(self, channel_name, current_limit): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - current_limit_ctype = _visatype.ViReal64(current_limit) # case S150 - max_voltage_level_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_QueryMaxVoltageLevel(vi_ctype, channel_name_ctype, current_limit_ctype, None if max_voltage_level_ctype is None else (ctypes.pointer(max_voltage_level_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(max_voltage_level_ctype.value) - - def query_min_current_limit(self, channel_name, voltage_level): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - voltage_level_ctype = _visatype.ViReal64(voltage_level) # case S150 - min_current_limit_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_QueryMinCurrentLimit(vi_ctype, channel_name_ctype, voltage_level_ctype, None if min_current_limit_ctype is None else (ctypes.pointer(min_current_limit_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(min_current_limit_ctype.value) - - def query_output_state(self, channel_name, output_state): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - output_state_ctype = _visatype.ViInt32(output_state.value) # case S130 - in_state_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDCPower_QueryOutputState(vi_ctype, channel_name_ctype, output_state_ctype, None if in_state_ctype is None else (ctypes.pointer(in_state_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(in_state_ctype.value) - - def read_current_temperature(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDCPower_ReadCurrentTemperature(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def reset_device(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDCPower_ResetDevice(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niDCPower_ResetWithChannels(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_defaults(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDCPower_ResetWithDefaults(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_edge_trigger(self, channel_name, trigger): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 - error_code = self._library.niDCPower_SendSoftwareEdgeTriggerWithChannels(vi_ctype, channel_name_ctype, trigger_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 - error_code = self._library.niDCPower_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 - error_code = self._library.niDCPower_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt64(attribute_value) # case S150 - error_code = self._library.niDCPower_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 - error_code = self._library.niDCPower_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 - error_code = self._library.niDCPower_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niDCPower_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_sequence(self, channel_name, values, source_delays): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - values_ctype = _get_ctypes_pointer_for_buffer(value=values, library_type=_visatype.ViReal64) # case B550 - source_delays_ctype = _get_ctypes_pointer_for_buffer(value=source_delays, library_type=_visatype.ViReal64) # case B550 - size_ctype = _visatype.ViUInt32(0 if values is None else len(values)) # case S160 - error_code = self._library.niDCPower_SetSequence(vi_ctype, channel_name_ctype, values_ctype, source_delays_ctype, size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDCPower_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_for_event(self, channel_name, event_id, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - event_id_ctype = _visatype.ViInt32(event_id.value) # case S130 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - error_code = self._library.niDCPower_WaitForEventWithChannels(vi_ctype, channel_name_ctype, event_id_ctype, timeout_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDCPower_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niDCPower_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niDCPower_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nidcpower/nidcpower/_library_singleton.py b/generated/nidcpower/nidcpower/_library_singleton.py deleted file mode 100644 index 4fdb31ccdc..0000000000 --- a/generated/nidcpower/nidcpower/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nidcpower._library as _library -import nidcpower.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nidcpower', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'nidcpower_32.dll', 'type': 'windll'}, - '64bit': {'name': 'nidcpower_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nidcpower. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nidcpower/nidcpower/_visatype.py b/generated/nidcpower/nidcpower/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nidcpower/nidcpower/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nidcpower/nidcpower/enums.py b/generated/nidcpower/nidcpower/enums.py deleted file mode 100644 index 069dff0a13..0000000000 --- a/generated/nidcpower/nidcpower/enums.py +++ /dev/null @@ -1,680 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class ApertureTimeAutoMode(Enum): - OFF = 1135 - r''' - Disables automatic aperture time scaling. The aperture_time property specifies the aperture time for all ranges. - ''' - SHORT = 1136 - r''' - Prioritizes measurement speed over measurement accuracy by quickly scaling down aperture time in larger current ranges. The aperture_time property specifies the aperture time for the minimum range. - ''' - NORMAL = 1137 - r''' - Balances measurement accuracy and speed by scaling down aperture time in larger current ranges. The aperture_time property specifies the aperture time for the minimum range. - ''' - LONG = 1138 - r''' - Prioritizes accuracy while still decreasing measurement time by slowly scaling down aperture time in larger current ranges. The aperture_time property specifies the aperture time for the minimum range. - ''' - - -class ApertureTimeUnits(Enum): - SECONDS = 1028 - r''' - Specifies aperture time in seconds. - ''' - POWER_LINE_CYCLES = 1029 - r''' - Specifies aperture time in power line cycles (PLCs). - ''' - - -class AutoZero(Enum): - OFF = 0 - r''' - Disables auto zero. - ''' - ONCE = 1024 - r''' - Makes zero conversions following the first measurement after initiating the device. The device uses these zero conversions for the preceding measurement and future measurements until the device is reinitiated. - ''' - ON = 1 - r''' - Makes zero conversions for every measurement. - ''' - - -class AutorangeApertureTimeMode(Enum): - AUTO = 1110 - r''' - NI-DCPower optimizes the aperture time for the autorange algorithm based on the module range. - ''' - CUSTOM = 1111 - r''' - The user specifies a minimum aperture time for the algorithm using the autorange_minimum_aperture_time property and the corresponding autorange_minimum_aperture_time_units property. - ''' - - -class AutorangeBehavior(Enum): - UP_TO_LIMIT_THEN_DOWN = 1107 - r''' - Go to limit range then range down as needed until measured value is within thresholds. - ''' - UP = 1108 - r''' - go up one range when the upper threshold is reached. - ''' - UP_AND_DOWN = 1109 - r''' - go up or down one range when the upper/lower threshold is reached. - ''' - - -class AutorangeThresholdMode(Enum): - NORMAL = 1112 - r''' - Thresholds are selected based on a balance between accuracy and hysteresis. - ''' - FAST_STEP = 1113 - r''' - Optimized for faster changes in the measured signal. Thresholds are configured to be a smaller percentage of the range. - ''' - HIGH_HYSTERESIS = 1114 - r''' - Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a larger percentage of the range. - ''' - MEDIUM_HYSTERESIS = 1115 - r''' - Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a medium percentage of the range. - ''' - HOLD = 1116 - r''' - Attempt to maintain the active range. Thresholds will favor the active range. - ''' - - -class CableLength(Enum): - ZERO_M = 1121 - r''' - Uses predefined cable compensation data for a 0m cable (direct connection). - ''' - NI_STANDARD_0_5M = 1153 - r''' - Uses predefined cable compensation data for an NI standard 0.5m coaxial cable. - ''' - NI_STANDARD_1M = 1122 - r''' - Uses predefined cable compensation data for an NI standard 1m coaxial cable. - ''' - NI_STANDARD_2M = 1123 - r''' - Uses predefined cable compensation data for an NI standard 2m coaxial cable. - ''' - NI_STANDARD_4M = 1124 - r''' - Uses predefined cable compensation data for an NI standard 4m coaxial cable. - ''' - NI_STANDARD_TRIAXIAL_1M = 1139 - r''' - Uses predefined cable compensation data for an NI standard 1m triaxial cable. - ''' - NI_STANDARD_TRIAXIAL_2M = 1140 - r''' - Uses predefined cable compensation data for an NI standard 2m triaxial cable. - ''' - NI_STANDARD_TRIAXIAL_4M = 1141 - r''' - Uses predefined cable compensation data for an NI standard 4m triaxial cable. - ''' - CUSTOM_ONBOARD_STORAGE = 1125 - r''' - Uses previously generated custom cable compensation data from onboard storage. Only the most recently performed compensation data for each custom cable compensation type (open, short) is stored. - ''' - CUSTOM_AS_CONFIGURED = 1126 - r''' - Uses the custom cable compensation data supplied to configure_lcr_custom_cable_compensation. Use this option to manage multiple sets of custom cable compensation data. - ''' - - -class ComplianceLimitSymmetry(Enum): - SYMMETRIC = 0 - r''' - Compliance limits are specified symmetrically about 0. - ''' - ASYMMETRIC = 1 - r''' - Compliance limits can be specified asymmetrically with respect to 0. - ''' - - -class ConductionVoltageMode(Enum): - AUTOMATIC = 1155 - r''' - The conduction voltage feature is only enabled when you set the output_function property to OutputFunction.DC_CURRENT or OutputFunction.CONSTANT_POWER. - ''' - ENABLED = 1156 - r''' - The conduction voltage feature is enabled. - ''' - DISABLED = 1157 - r''' - The conduction voltage feature is disabled. - ''' - - -class CurrentLimitBehavior(Enum): - REGULATE = 0 - r''' - The channel acts to restrict the output current to the value of the Current Limit property when the actual output on the channel reaches or exceeds that value. - ''' - TRIP = 1 - r''' - The channel disables the output when the actual output current on the channel reaches or exceeds the value of the Current Limit property. - ''' - - -class DCNoiseRejection(Enum): - SECOND_ORDER = 1043 - r''' - Second-order rejection of DC noise. - ''' - NORMAL = 1044 - r''' - Normal rejection of DC noise. - ''' - - -class Event(Enum): - SOURCE_COMPLETE = 1030 - r''' - Specifies the Source Complete event. - ''' - MEASURE_COMPLETE = 1031 - r''' - Specifies the Measure Complete event. - ''' - SEQUENCE_ITERATION_COMPLETE = 1032 - r''' - Specifies the Sequence Iteration Complete event. - ''' - SEQUENCE_ENGINE_DONE = 1033 - r''' - Specifies the Sequence Engine Done event. - ''' - PULSE_COMPLETE = 1051 - r''' - Specifies the Pulse Complete event. - ''' - READY_FOR_PULSE_TRIGGER = 1052 - r''' - Specifies the Ready for Pulse Trigger event. - ''' - - -class EventOutputBehavior(Enum): - PULSE = 1147 - r''' - Output generates a pulse when the event is triggered. - ''' - TOGGLE = 1148 - r''' - Output toggles state when the event is triggered. - ''' - - -class EventToggleInitialState(Enum): - LOW = 1149 - r''' - The initial state is low. - ''' - HIGH = 1150 - r''' - The initial state is high. - ''' - - -class InstrumentMode(Enum): - SMU_PS = 1061 - r''' - The channel operates as an SMU/power supply. - ''' - LCR = 1062 - r''' - The channel operates as an LCR meter. - ''' - E_LOAD = 1154 - r''' - The channel operates as an electronic load (E-Load). - ''' - - -class _IsolationState(Enum): - ISOLATED = 1128 - r''' - The channel is disconnected from chassis ground. - ''' - NON_ISOLATED = 1129 - r''' - The channel is connected to chassis ground. - ''' - - -class LCRCompensationType(Enum): - OPEN = 1130 - r''' - Open LCR compensation. - ''' - SHORT = 1131 - r''' - Short LCR compensation. - ''' - LOAD = 1132 - r''' - Load LCR compensation. - ''' - OPEN_CUSTOM_CABLE = 1133 - r''' - Open custom cable compensation. - ''' - SHORT_CUSTOM_CABLE = 1134 - r''' - Short custom cable compensation. - ''' - - -class LCRDCBiasSource(Enum): - OFF = 1065 - r''' - Disables DC bias in LCR mode. - ''' - VOLTAGE = 1066 - r''' - Applies a constant voltage bias, as defined by the lcr_dc_bias_voltage_level property. - ''' - CURRENT = 1067 - r''' - Applies a constant current bias, as defined by the lcr_dc_bias_current_level property. - ''' - - -class LCRDCBiasTransientResponse(Enum): - NORMAL = 1151 - r''' - NI-DCPower automatically applies transient response values for DC bias. - ''' - CUSTOM = 1152 - r''' - NI-DCPower applies the transient response that you set manually with transient_response for DC bias. Search ni.com for information on configuring transient response. - ''' - - -class _LCRImpedanceAutoRange(Enum): - OFF = 1068 - ON = 1070 - - -class LCRImpedanceRangeSource(Enum): - IMPEDANCE_RANGE = 1142 - r''' - Uses the impedance range you specify with the lcr_impedance_range property. - ''' - LOAD_CONFIGURATION = 1143 - r''' - Computes the impedance range to select based on the values you supply to the lcr_load_resistance, lcr_load_inductance, and lcr_load_capacitance properties. NI-DCPower uses a series model of load resistance, load inductance, and load capacitance to compute the impedance range. - ''' - - -class LCRMeasurementTime(Enum): - SHORT = 1071 - r''' - Uses a short aperture time for LCR measurements. - ''' - MEDIUM = 1072 - r''' - Uses a medium aperture time for LCR measurements. - ''' - LONG = 1073 - r''' - Uses a long aperture time for LCR measurements. - ''' - CUSTOM = 1117 - r''' - Uses a custom aperture time for LCR measurements as specified by the lcr_custom_measurement_time property. - ''' - - -class LCROpenShortLoadCompensationDataSource(Enum): - ONBOARD_STORAGE = 1074 - r''' - Uses previously generated LCR compensation data. Only the most recently performed compensation data for each LCR compensation type (open, short, and load) is stored. - ''' - AS_DEFINED = 1075 - r''' - Uses the LCR compensation data represented by the relevant LCR compensation properties as generated by perform_lcr_open_compensation, perform_lcr_short_compensation, and perform_lcr_load_compensation. Use this option to manage multiple sets of LCR compensation data. This option applies compensation data from the following properties: lcr_open_conductance, lcr_open_susceptance, lcr_short_resistance, lcr_short_reactance, lcr_measured_load_resistance, lcr_measured_load_reactance, lcr_actual_load_resistance, lcr_actual_load_reactance. - ''' - AS_CONFIGURED = 1146 - r''' - Uses the LCR compensation data supplied to configure_lcr_compensation. Use this option to manage multiple sets of LCR compensation data. - ''' - - -class LCRReferenceValueType(Enum): - IMPEDANCE = 1076 - r''' - The actual impedance, comprising real resistance and imaginary reactance, of your DUT. Supply resistance, in ohms, to reference value A; supply reactance, in ohms, to reference value B. - ''' - IDEAL_CAPACITANCE = 1077 - r''' - The ideal capacitance of your DUT. Supply capacitance, in farads, to reference value A. - ''' - IDEAL_INDUCTANCE = 1078 - r''' - The ideal inductance of your DUT. Supply inductance, in henrys, to reference value A. - ''' - IDEAL_RESISTANCE = 1079 - r''' - The ideal resistance of your DUT. Supply resistance, in ohms, to reference value A. - ''' - - -class LCRSourceDelayMode(Enum): - AUTOMATIC = 1144 - r''' - NI-DCPower automatically applies source delay of sufficient duration to account for settling time. - ''' - MANUAL = 1145 - r''' - NI-DCPower applies the source delay that you set manually with source_delay. You can use this option to set a shorter delay to reduce measurement time at the possible expense of measurement accuracy. - ''' - - -class LCRStimulusFunction(Enum): - VOLTAGE = 1063 - r''' - Applies an AC voltage for LCR stimulus. - ''' - CURRENT = 1064 - r''' - Applies an AC current for LCR stimulus. - ''' - - -class MeasureWhen(Enum): - AUTOMATICALLY_AFTER_SOURCE_COMPLETE = 1025 - r''' - Acquires a measurement after each Source Complete event completes. - ''' - ON_DEMAND = 1026 - r''' - Acquires a measurement when the measure method or measure_multiple method is called. - ''' - ON_MEASURE_TRIGGER = 1027 - r''' - Acquires a measurement when a Measure trigger is received. - ''' - - -class MeasurementTypes(Enum): - CURRENT = 0 - r''' - The device measures current. - ''' - VOLTAGE = 1 - r''' - The device measures voltage. - ''' - - -class OutputCapacitance(Enum): - LOW = 1010 - r''' - Output Capacitance is low. - ''' - HIGH = 1011 - r''' - Output Capacitance is high. - ''' - - -class OutputCutoffReason(Enum): - ALL = -1 - r''' - Queries any output cutoff condition; clears all output cutoff conditions. - ''' - VOLTAGE_OUTPUT_HIGH = 1 - r''' - Queries or clears cutoff conditions when the output exceeded the high cutoff limit for voltage output. - ''' - VOLTAGE_OUTPUT_LOW = 2 - r''' - Queries or clears cutoff conditions when the output fell below the low cutoff limit for voltage output. - ''' - CURRENT_MEASURE_HIGH = 4 - r''' - Queries or clears cutoff conditions when the measured current exceeded the high cutoff limit for current output. - ''' - CURRENT_MEASURE_LOW = 8 - r''' - Queries or clears cutoff conditions when the measured current fell below the low cutoff limit for current output. - ''' - VOLTAGE_CHANGE_HIGH = 16 - r''' - Queries or clears cutoff conditions when the voltage slew rate increased beyond the positive change cutoff for voltage output. - ''' - VOLTAGE_CHANGE_LOW = 32 - r''' - Queries or clears cutoff conditions when the voltage slew rate decreased beyond the negative change cutoff for voltage output. - ''' - CURRENT_CHANGE_HIGH = 64 - r''' - Queries or clears cutoff conditions when the current slew rate increased beyond the positive change cutoff for current output. - ''' - CURRENT_CHANGE_LOW = 128 - r''' - Queries or clears cutoff conditions when the current slew rate decreased beyond the negative change cutoff for current output. - ''' - CURRENT_SATURATED = 512 - r''' - Queries or clears cutoff conditions when the measured current saturates the current range. - ''' - VOLTAGE_MEASURE_HIGH = 1024 - r''' - Queries or clears cutoff conditions when the measured voltage exceeded the high cutoff limit for voltage output. - ''' - VOLTAGE_MEASURE_LOW = 2048 - r''' - Queries or clears cutoff conditions when the measured voltage fell below the low cutoff limit for voltage output. - ''' - - -class OutputFunction(Enum): - DC_VOLTAGE = 1006 - r''' - Sets the output method to DC voltage. - ''' - DC_CURRENT = 1007 - r''' - Sets the output method to DC current. - ''' - PULSE_VOLTAGE = 1049 - r''' - Sets the output method to pulse voltage. - ''' - PULSE_CURRENT = 1050 - r''' - Sets the output method to pulse current. - ''' - CONSTANT_RESISTANCE = 1161 - r''' - Sets the output method to constant resistance. - ''' - CONSTANT_POWER = 1162 - r''' - Sets the output method to constant power. - ''' - - -class OutputStates(Enum): - CONSTANT_VOLTAGE = 0 - r''' - The channel maintains a constant voltage by adjusting the current. - ''' - CONSTANT_CURRENT = 1 - r''' - The channel maintains a constant current by adjusting the voltage. - ''' - INHIBITED = 1163 - r''' - The channel is in the inhibited state. - ''' - - -class Polarity(Enum): - HIGH = 1018 - r''' - A high pulse occurs when the event is generated. The exported signal is low level both before and after the event is generated. - ''' - LOW = 1019 - r''' - A low pulse occurs when the event is generated. The exported signal is high level both before and after the event is generated. - ''' - - -class PowerAllocationMode(Enum): - DISABLED = 1058 - r''' - The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower does not perform a sourcing power check. If the required power is greater than the maximum sourcing power, the device attempts to source the required amount and may shut down to prevent damage. - ''' - AUTOMATIC = 1059 - r''' - The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower performs a sourcing power check. If the required power is greater than the maximum sourcing power, the device does not exceed the maximum power, and NI-DCPower returns an error. - ''' - MANUAL = 1060 - r''' - The device attempts to source, on each active channel, the power you request with the requested_power_allocation property; NI-DCPower performs a sourcing power check. If the requested power is either less than the required power for the present source configuration or greater than the maximum sourcing power, the device does not exceed the requested or allowed power, respectively, and NI-DCPower returns an error. - ''' - - -class PowerSource(Enum): - INTERNAL = 1003 - r''' - Uses the PXI chassis power source. - ''' - AUXILIARY = 1004 - r''' - Uses the auxiliary power source connected to the device. - ''' - AUTOMATIC = 1005 - r''' - Uses the auxiliary power source if it is available; otherwise uses the PXI chassis power source. - ''' - - -class PowerSourceInUse(Enum): - INTERNAL = 1003 - r''' - Uses the PXI chassis power source. - ''' - AUXILIARY = 1004 - r''' - Uses the auxiliary power source connected to the device. Only the NI PXI-4110, NI PXIe-4112, NI PXIe-4113, and NI PXI-4130 support this value. This is the only supported value for the NI PXIe-4112 and NI PXIe-4113. - ''' - - -class SelfCalibrationPersistence(Enum): - KEEP_IN_MEMORY = 1045 - r''' - Keep new self calibration values in memory only. - ''' - WRITE_TO_EEPROM = 1046 - r''' - Write new self calibration values to hardware. - ''' - - -class SendSoftwareEdgeTriggerType(Enum): - START = 1034 - r''' - Asserts the Start trigger. - ''' - SOURCE = 1035 - r''' - Asserts the Source trigger. - ''' - MEASURE = 1036 - r''' - Asserts the Measure trigger. - ''' - SEQUENCE_ADVANCE = 1037 - r''' - Asserts the Sequence Advance trigger. - ''' - PULSE = 1053 - r''' - Asserts the Pulse trigger. - ''' - SHUTDOWN = 1118 - r''' - Asserts the Shutdown trigger. - ''' - - -class Sense(Enum): - LOCAL = 1008 - r''' - Local sensing is selected. - ''' - REMOTE = 1009 - r''' - Remote sensing is selected. - ''' - - -class SourceMode(Enum): - SINGLE_POINT = 1020 - r''' - The source unit applies a single source configuration. - ''' - SEQUENCE = 1021 - r''' - The source unit applies a list of voltage or current configurations sequentially. - ''' - - -class TransientResponse(Enum): - NORMAL = 1038 - r''' - The output responds to changes in load at a normal speed. - ''' - FAST = 1039 - r''' - The output responds to changes in load quickly. - ''' - SLOW = 1041 - r''' - The output responds to changes in load slowly. - ''' - CUSTOM = 1042 - r''' - The output responds to changes in load based on specified values. - ''' - - -class TriggerType(Enum): - NONE = 1012 - r''' - No trigger is configured. - ''' - DIGITAL_EDGE = 1014 - r''' - The data operation starts when a digital edge is detected. - ''' - SOFTWARE_EDGE = 1015 - r''' - The data operation starts when a software trigger occurs. - ''' diff --git a/generated/nidcpower/nidcpower/errors.py b/generated/nidcpower/nidcpower/errors.py deleted file mode 100644 index 2f4a964e68..0000000000 --- a/generated/nidcpower/nidcpower/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-DCPower''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-DCPower driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-DCPower driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-DCPower runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-DCPower driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-DCPower runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-DCPower driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-DCPower runtime returned an unexpected value. This can occur if it is too new for the nidcpower Python module. Upgrade the nidcpower Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nidcpower.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nidcpower/nidcpower/grpc_session_options.py b/generated/nidcpower/nidcpower/grpc_session_options.py deleted file mode 100644 index 29283b36ca..0000000000 --- a/generated/nidcpower/nidcpower/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nidcpower_grpc.NiDCPower' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nidcpower/nidcpower/lcr_load_compensation_spot.py b/generated/nidcpower/nidcpower/lcr_load_compensation_spot.py deleted file mode 100644 index fcab86a544..0000000000 --- a/generated/nidcpower/nidcpower/lcr_load_compensation_spot.py +++ /dev/null @@ -1,106 +0,0 @@ -import ctypes -import platform - -import nidcpower._visatype -import nidcpower.enums as enums - - -# This class is an internal ctypes implementation detail that corresponds to -# NILCRLoadCompensationSpot in the C API -class struct_NILCRLoadCompensationSpot(ctypes.Structure): # noqa N801 - if (platform.system() == "Windows" and platform.architecture()[0] == "64bit") or \ - platform.system() == "Linux" or platform.system() == "Darwin": - _pack_ = 8 - else: - _pack_ = 1 - _fields_ = [ - ("frequency", nidcpower._visatype.ViReal64), - ("reference_value_type", nidcpower._visatype.ViInt32), - ("reference_value_a", nidcpower._visatype.ViReal64), - ("reference_value_b", nidcpower._visatype.ViReal64), - ] - - def __init__(self, data): - super(ctypes.Structure, self).__init__() - self.frequency = data.frequency - self.reference_value_type = enums.LCRReferenceValueType(data.reference_value_type).value - if self.reference_value_type == enums.LCRReferenceValueType.IMPEDANCE.value: - self.reference_value_a = data.reference_value.real - self.reference_value_b = data.reference_value.imag - else: - self.reference_value_a = data.reference_value - self.reference_value_b = 0.0 - - -class LCRLoadCompensationSpot: - """Specifies a DUT specification for a given frequency to use in LCR load compensation.""" - - _lcr_reference_value_type_to_label_and_units = { - enums.LCRReferenceValueType.IMPEDANCE: { - "label": "Impedance ", - "unit": "Ω" - }, - enums.LCRReferenceValueType.IDEAL_CAPACITANCE: { - "label": "Ideal Capacitance", - "unit": "F" - }, - enums.LCRReferenceValueType.IDEAL_INDUCTANCE: { - "label": "Ideal Inductance ", - "unit": "H" - }, - enums.LCRReferenceValueType.IDEAL_RESISTANCE: { - "label": "Ideal Resistance ", - "unit": "Ω" - }, - } - - def __init__(self, frequency, reference_value_type, reference_value): - """LCRLoadCompensationSpot - - Creates and returns an instance of LCRLoadCompensationSpot. - - Args: - frequency (float): The spot frequency, in Hz. - - reference_value_type (enums.LCRReferenceValueType): A known specification value of your - DUT to use as the basis for load compensation. - - reference_value (complex or float): A value that describes the reference_value_type - specification. Use as indicated by the reference_value_type option you choose. - """ - self.frequency = frequency - self.reference_value_type = enums.LCRReferenceValueType(reference_value_type) - self.reference_value = reference_value - - def _create_copy(self, target_class): - try: - return target_class(frequency=self.frequency, reference_value_type=self.reference_value_type.value, reference_value=self.reference_value) - except ValueError: - return target_class(frequency=self.frequency, reference_value_type=self.reference_value_type.value, reference_value_a=self.reference_value.real, reference_value_b=self.reference_value.imag) - - def __repr__(self): - return "{}.{}(frequency={}, reference_value_type={}.{}.{}, reference_value={})".format( - self.__class__.__module__, - self.__class__.__qualname__, - self.frequency, - enums.LCRReferenceValueType.__module__, - enums.LCRReferenceValueType.__qualname__, - self.reference_value_type.name, - self.reference_value, - ) - - def __str__(self): - return "".join( - [ - "Frequency : {:,.6g} Hz\n{}: {:,.6g} {}\n".format( - self.frequency, - LCRLoadCompensationSpot._lcr_reference_value_type_to_label_and_units[ - self.reference_value_type - ]["label"], - self.reference_value, - LCRLoadCompensationSpot._lcr_reference_value_type_to_label_and_units[ - self.reference_value_type - ]["unit"], - ), - ] - ) diff --git a/generated/nidcpower/nidcpower/lcr_measurement.py b/generated/nidcpower/nidcpower/lcr_measurement.py deleted file mode 100644 index 5930862787..0000000000 --- a/generated/nidcpower/nidcpower/lcr_measurement.py +++ /dev/null @@ -1,201 +0,0 @@ -from collections import namedtuple -import ctypes - -import nidcpower._visatype -import nidcpower.enums as enums - - -# This class is an internal ctypes implementation detail that corresponds to -# NILCRMeasurement in the C API -class struct_NILCRMeasurement(ctypes.Structure): # noqa N801 - _pack_ = 8 - _fields_ = [ - # field_name field_ctype - ("vdc" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("idc" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("stimulus_frequency" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("ac_voltage_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("ac_voltage_imaginary", nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("ac_current_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("ac_current_imaginary", nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("z_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("z_imaginary" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("z_magnitude" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("z_phase" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("y_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("y_imaginary" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("y_magnitude" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("y_phase" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("ls" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("cs" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("rs" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("lp" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("cp" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("rp" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("d" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("q" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("measurement_mode" , nidcpower._visatype.ViUInt16 ), # noqa: E202,E203 - ("dc_in_compliance" , nidcpower._visatype.ViBoolean), # noqa: E202,E203 - ("ac_in_compliance" , nidcpower._visatype.ViBoolean), # noqa: E202,E203 - ("unbalanced" , nidcpower._visatype.ViBoolean), # noqa: E202,E203 - ("reserved1" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("reserved2" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("reserved3" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("reserved4" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("reserved5" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("reserved6" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ("reserved7" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 - ] - - -class LCRMeasurement: - """Specifies an LCR measurement. - - Data attributes: - channel (str): The channel name associated with this LCRMeasurement. - - vdc (float): The measured DC voltage, in volts. - - idc (float): The measured DC current, in amps. - - stimulus_frequency (float): The frequency of the LCR test signal, in Hz. - - ac_voltage (complex): The measured AC voltage, in volts RMS. - - ac_current (complex): The measured AC current, in amps RMS. - - z (complex): The complex impedance. - - z_magnitude_and_phase (tuple of float): The magnitude, in ohms, and phase angle, in degrees, - of the complex impedance. - - y (complex): The complex admittance. - - y_magnitude_and_phase (tuple of float): The magnitude, in siemens, and phase angle, in - degrees, of the complex admittance. - - series_lcr (LCR): The inductance, in henrys, the capacitance, in farads, and the resistance, - in ohms, as measured using a series circuit model. - - parallel_lcr (LCR): The inductance, in henrys, the capacitance, in farads, and the - resistance, in ohms, as measured using a parallel circuit model. - - d (float): The dissipation factor of the circuit. The dimensionless dissipation factor is - directly proportional to how quickly an oscillating system loses energy. D is the - reciprocal of Q, the quality factor. - - q (float): The quality factor of the circuit. The dimensionless quality factor is inversely - proportional to the degree of damping in a system. Q is the reciprocal of D, the - dissipation factor. - - measurement_mode (enums.InstrumentMode): The measurement mode. - **Defined Values**: - - +-----------------------+-----------------------------------------------------+ - | InstrumentMode.SMU_PS | The channel(s) are operating as a power supply/SMU. | - +-----------------------+-----------------------------------------------------+ - | InstrumentMode.LCR | The channel(s) are operating as an LCR meter. | - +-----------------------+-----------------------------------------------------+ - - dc_in_compliance (bool): Indicates whether the output was in DC compliance at the time the - measurement was taken. - - ac_in_compliance (bool): Indicates whether the output was in AC compliance at the time the - measurement was taken. - - unbalanced (bool): Indicates whether the bridge was unbalanced at the time the measurement - was taken. - """ - LCR = namedtuple(typename="LCR", field_names=("inductance", "capacitance", "resistance")) - - _lcr_measurement_field_metadata = [ - # field_name label(s) unit(s) - ("channel" , "Channel" , None ), # noqa: E202,E203 - ("vdc" , "DC voltage" , "V" ), # noqa: E202,E203 - ("idc" , "DC current" , "A" ), # noqa: E202,E203 - ("stimulus_frequency" , "Stimulus frequency" , "Hz" ), # noqa: E202,E203 - ("ac_voltage" , "AC voltage" , "V RMS" ), # noqa: E202,E203 - ("ac_current" , "AC current" , "A RMS" ), # noqa: E202,E203 - ("z" , "Impedance" , "Ω" ), # noqa: E202,E203 - ("z_magnitude_and_phase", ("Impedance magnitude", "Impedance phase") , ("Ω", "°") ), # noqa: E202,E203 - ("y" , "Admittance" , "S" ), # noqa: E202,E203 - ("y_magnitude_and_phase", ("Admittance magnitude", "Admittance phase") , ("S", "°") ), # noqa: E202,E203 - ("series_lcr" , ("Series inductance", "Series capacitance", "Series resistance") , ("H", "F", "Ω")), # noqa: E202,E203 - ("parallel_lcr" , ("Parallel inductance", "Parallel capacitance", "Parallel resistance"), ("H", "F", "Ω")), # noqa: E202,E203 - ("d" , "Dissipation factor" , None ), # noqa: E202,E203 - ("q" , "Quality factor" , None ), # noqa: E202,E203 - ("measurement_mode" , "Measurement mode" , None ), # noqa: E202,E203 - ("dc_in_compliance" , "DC in compliance" , None ), # noqa: E202,E203 - ("ac_in_compliance" , "AC in compliance" , None ), # noqa: E202,E203 - ("unbalanced" , "Unbalanced" , None ), # noqa: E202,E203 - ] - - def __init__(self, data): - """LCRMeasurement - - Creates and returns an instance of LCRMeasurement. - - Args: - data (struct_NILCRMeasurement): The LCR measurement ctypes instance returned by the driver. - """ - self.channel = "" - self.vdc = data.vdc - self.idc = data.idc - self.stimulus_frequency = data.stimulus_frequency - if hasattr(data, "ac_voltage_real"): - self.ac_voltage = complex(data.ac_voltage_real, data.ac_voltage_imaginary) - self.ac_current = complex(data.ac_current_real, data.ac_current_imaginary) - self.z = complex(data.z_real, data.z_imaginary) - self.y = complex(data.y_real, data.y_imaginary) - else: - self.ac_voltage = complex(data.ac_voltage.real, data.ac_voltage.imaginary) - self.ac_current = complex(data.ac_current.real, data.ac_current.imaginary) - self.z = complex(data.z.real, data.z.imaginary) - self.y = complex(data.y.real, data.y.imaginary) - self.z_magnitude_and_phase = (data.z_magnitude, data.z_phase) - self.y_magnitude_and_phase = (data.y_magnitude, data.y_phase) - self.series_lcr = LCRMeasurement.LCR( - inductance=data.ls, capacitance=data.cs, resistance=data.rs - ) - self.parallel_lcr = LCRMeasurement.LCR( - inductance=data.lp, capacitance=data.cp, resistance=data.rp - ) - self.d = data.d - self.q = data.q - self.measurement_mode = enums.InstrumentMode(data.measurement_mode) - self.dc_in_compliance = bool(data.dc_in_compliance) - self.ac_in_compliance = bool(data.ac_in_compliance) - self.unbalanced = bool(data.unbalanced) - - def __str__(self): - max_field_label_len = max( - len(max(field_label, key=len) if isinstance(field_label, tuple) else field_label) - for _, field_label, _ in LCRMeasurement._lcr_measurement_field_metadata - ) - field_value_strings = [] - for field_name, field_label, field_unit in LCRMeasurement._lcr_measurement_field_metadata: - # Determines row_format - if field_name in ( - "channel", - "measurement_mode", - "dc_in_compliance", - "ac_in_compliance", - "unbalanced" - ): - row_format = f"{{:<{max_field_label_len}}}: {{:}}{{}}\n" - else: - row_format = f"{{:<{max_field_label_len}}}: {{:,.6g}}{{}}\n" - # Process namedtuple fields - if isinstance(field_label, tuple) and isinstance(field_unit, tuple): - for label, unit, value in zip(field_label, field_unit, getattr(self, field_name)): - unit_string = f" {unit}" if unit is not None else "" - field_value_strings.append(row_format.format(label, value, unit_string)) - else: - field_value = getattr(self, field_name) - if field_name == "measurement_mode": - field_value = enums.InstrumentMode(field_value).name - elif field_name in ("dc_in_compliance", "ac_in_compliance", "unbalanced"): - field_value = bool(field_value) - unit_string = f" {field_unit}" if field_unit is not None else "" - field_value_strings.append(row_format.format(field_label, field_value, unit_string)) - return "".join(field_value_strings) diff --git a/generated/nidcpower/nidcpower/nidcpower_pb2.py b/generated/nidcpower/nidcpower/nidcpower_pb2.py deleted file mode 100644 index 7211528ce4..0000000000 --- a/generated/nidcpower/nidcpower/nidcpower_pb2.py +++ /dev/null @@ -1,662 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidcpower.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import nidevice_pb2 as nidevice__pb2 -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fnidcpower.proto\x12\x0enidcpower_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\x92\x04\n\x10NILCRMeasurement\x12\x0b\n\x03vdc\x18\x01 \x01(\x01\x12\x0b\n\x03idc\x18\x02 \x01(\x01\x12\x1a\n\x12stimulus_frequency\x18\x03 \x01(\x01\x12\x32\n\nac_voltage\x18\x04 \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x32\n\nac_current\x18\x05 \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12)\n\x01z\x18\x06 \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x13\n\x0bz_magnitude\x18\x07 \x01(\x01\x12\x0f\n\x07z_phase\x18\x08 \x01(\x01\x12)\n\x01y\x18\t \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x13\n\x0by_magnitude\x18\n \x01(\x01\x12\x0f\n\x07y_phase\x18\x0b \x01(\x01\x12\n\n\x02ls\x18\x0c \x01(\x01\x12\n\n\x02\x63s\x18\r \x01(\x01\x12\n\n\x02rs\x18\x0e \x01(\x01\x12\n\n\x02lp\x18\x0f \x01(\x01\x12\n\n\x02\x63p\x18\x10 \x01(\x01\x12\n\n\x02rp\x18\x11 \x01(\x01\x12\t\n\x01\x64\x18\x12 \x01(\x01\x12\t\n\x01q\x18\x13 \x01(\x01\x12\x18\n\x10measurement_mode\x18\x14 \x01(\r\x12\x18\n\x10\x64\x63_in_compliance\x18\x15 \x01(\x08\x12\x18\n\x10\x61\x63_in_compliance\x18\x16 \x01(\x08\x12\x12\n\nunbalanced\x18\x17 \x01(\x08\"\x82\x01\n\x19NILCRLoadCompensationSpot\x12\x11\n\tfrequency\x18\x01 \x01(\x01\x12\x1c\n\x14reference_value_type\x18\x02 \x01(\x11\x12\x19\n\x11reference_value_a\x18\x03 \x01(\x01\x12\x19\n\x11reference_value_b\x18\x04 \x01(\x01\"\xd3\x01\n\x1dInitializeWithChannelsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08\x63hannels\x18\x03 \x01(\t\x12\r\n\x05reset\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x90\x01\n\x1eInitializeWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa2\x01\n\x1a\x43onfigureSourceModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\x0bsource_mode\x18\x02 \x01(\x0e\x32\x1a.nidcpower_grpc.SourceModeH\x00\x12\x19\n\x0fsource_mode_raw\x18\x03 \x01(\x11H\x00\x42\x12\n\x10source_mode_enum\"-\n\x1b\x43onfigureSourceModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb7\x01\n\x1e\x43onfigureOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x08\x66unction\x18\x03 \x01(\x0e\x32\x1e.nidcpower_grpc.OutputFunctionH\x00\x12\x16\n\x0c\x66unction_raw\x18\x04 \x01(\x11H\x00\x42\x0f\n\rfunction_enum\"1\n\x1f\x43onfigureOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x1d\x43onfigureOutputEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\"0\n\x1e\x43onfigureOutputEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"u\n\x12SetSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0e\n\x06values\x18\x03 \x03(\x01\x12\x15\n\rsource_delays\x18\x04 \x03(\x01\"%\n\x13SetSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"g\n\x1c\x43onfigureVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"/\n\x1d\x43onfigureVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xca\x01\n\x1c\x43onfigureCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x08\x62\x65havior\x18\x03 \x01(\x0e\x32$.nidcpower_grpc.CurrentLimitBehaviorH\x00\x12\x16\n\x0c\x62\x65havior_raw\x18\x04 \x01(\x11H\x00\x12\r\n\x05limit\x18\x05 \x01(\x01\x42\x0f\n\rbehavior_enum\"/\n\x1d\x43onfigureCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureVoltageLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureVoltageLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureCurrentLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureCurrentLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n ConfigureOutputResistanceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x12\n\nresistance\x18\x03 \x01(\x01\"3\n!ConfigureOutputResistanceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"g\n\x1c\x43onfigureCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"/\n\x1d\x43onfigureCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureCurrentLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureCurrentLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"g\n\x1c\x43onfigureVoltageLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"/\n\x1d\x43onfigureVoltageLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureVoltageLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureVoltageLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"4\n\"ConfigurePulseVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"4\n\"ConfigurePulseCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseVoltageLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseVoltageLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseCurrentLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseCurrentLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"4\n\"ConfigurePulseCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseVoltageLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"4\n\"ConfigurePulseVoltageLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasVoltageLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasVoltageLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseCurrentLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseCurrentLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseVoltageLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseVoltageLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x91\x01\n\x1d\x43reateAdvancedSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rsequence_name\x18\x02 \x01(\t\x12\x15\n\rattribute_ids\x18\x03 \x03(\x11\x12\x1e\n\x16set_as_active_sequence\x18\x04 \x01(\x08\"0\n\x1e\x43reateAdvancedSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n!CreateAdvancedSequenceStepRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12set_as_active_step\x18\x02 \x01(\x08\"4\n\"CreateAdvancedSequenceStepResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1d\x44\x65leteAdvancedSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rsequence_name\x18\x02 \x01(\t\"0\n\x1e\x44\x65leteAdvancedSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc6\x01\n\x1c\x43onfigureApertureTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\raperture_time\x18\x03 \x01(\x01\x12\x32\n\x05units\x18\x04 \x01(\x0e\x32!.nidcpower_grpc.ApertureTimeUnitsH\x00\x12\x13\n\tunits_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nunits_enum\"/\n\x1d\x43onfigureApertureTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x18\x43onfigureAutoZeroRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12-\n\tauto_zero\x18\x03 \x01(\x0e\x32\x18.nidcpower_grpc.AutoZeroH\x00\x12\x17\n\rauto_zero_raw\x18\x04 \x01(\x11H\x00\x42\x10\n\x0e\x61uto_zero_enum\"+\n\x19\x43onfigureAutoZeroResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcc\x01\n\"ConfigurePowerLineFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x13powerline_frequency\x18\x02 \x01(\x0e\x32$.nidcpower_grpc.PowerLineFrequenciesH\x00\x12!\n\x17powerline_frequency_raw\x18\x03 \x01(\x01H\x00\x42\x1a\n\x18powerline_frequency_enum\"5\n#ConfigurePowerLineFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9c\x01\n\x15\x43onfigureSenseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12&\n\x05sense\x18\x03 \x01(\x0e\x32\x15.nidcpower_grpc.SenseH\x00\x12\x13\n\tsense_raw\x18\x04 \x01(\x11H\x00\x42\x0c\n\nsense_enum\"(\n\x16\x43onfigureSenseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc1\x01\n\x0eMeasureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\x10measurement_type\x18\x03 \x01(\x0e\x32 .nidcpower_grpc.MeasurementTypesH\x00\x12\x1e\n\x14measurement_type_raw\x18\x04 \x01(\x11H\x00\x42\x17\n\x15measurement_type_enum\"6\n\x0fMeasureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bmeasurement\x18\x02 \x01(\x01\"R\n\x16MeasureMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"e\n\x17MeasureMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14voltage_measurements\x18\x02 \x03(\x01\x12\x1c\n\x14\x63urrent_measurements\x18\x03 \x03(\x01\"p\n\x14\x46\x65tchMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\r\n\x05\x63ount\x18\x04 \x01(\x11\"\x90\x01\n\x15\x46\x65tchMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14voltage_measurements\x18\x02 \x03(\x01\x12\x1c\n\x14\x63urrent_measurements\x18\x03 \x03(\x01\x12\x15\n\rin_compliance\x18\x04 \x03(\x08\x12\x14\n\x0c\x61\x63tual_count\x18\x05 \x01(\x11\"U\n\x19MeasureMultipleLCRRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"d\n\x1aMeasureMultipleLCRResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x0cmeasurements\x18\x02 \x03(\x0b\x32 .nidcpower_grpc.NILCRMeasurement\"s\n\x17\x46\x65tchMultipleLCRRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\r\n\x05\x63ount\x18\x04 \x01(\x11\"x\n\x18\x46\x65tchMultipleLCRResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x0cmeasurements\x18\x02 \x03(\x0b\x32 .nidcpower_grpc.NILCRMeasurement\x12\x14\n\x0c\x61\x63tual_count\x18\x03 \x01(\x11\"T\n\x18QueryInComplianceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"B\n\x19QueryInComplianceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rin_compliance\x18\x02 \x01(\x08\"\xba\x01\n\x17QueryOutputStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x34\n\x0coutput_state\x18\x03 \x01(\x0e\x32\x1c.nidcpower_grpc.OutputStatesH\x00\x12\x1a\n\x10output_state_raw\x18\x04 \x01(\x11H\x00\x42\x13\n\x11output_state_enum\"<\n\x18QueryOutputStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08in_state\x18\x02 \x01(\x08\"\xe5\x01\n$QueryLatchedOutputCutoffStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x42\n\x14output_cutoff_reason\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.OutputCutoffReasonH\x00\x12\"\n\x18output_cutoff_reason_raw\x18\x04 \x01(\x11H\x00\x42\x1b\n\x19output_cutoff_reason_enum\"T\n%QueryLatchedOutputCutoffStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13output_cutoff_state\x18\x02 \x01(\x08\"\xe5\x01\n$ClearLatchedOutputCutoffStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x42\n\x14output_cutoff_reason\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.OutputCutoffReasonH\x00\x12\"\n\x18output_cutoff_reason_raw\x18\x04 \x01(\x11H\x00\x42\x1b\n\x19output_cutoff_reason_enum\"7\n%ClearLatchedOutputCutoffStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"n\n\x1bQueryMaxCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rvoltage_level\x18\x03 \x01(\x01\"I\n\x1cQueryMaxCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11max_current_limit\x18\x02 \x01(\x01\"n\n\x1bQueryMaxVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rcurrent_limit\x18\x03 \x01(\x01\"I\n\x1cQueryMaxVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11max_voltage_level\x18\x02 \x01(\x01\"n\n\x1bQueryMinCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rvoltage_level\x18\x03 \x01(\x01\"I\n\x1cQueryMinCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11min_current_limit\x18\x02 \x01(\x01\"S\n\x17\x43\x61lSelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"*\n\x18\x43\x61lSelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"E\n\x1fGetExtCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"z\n GetExtCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"C\n\x1dReadCurrentTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x1eReadCurrentTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\">\n\x18GetExtCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x19GetExtCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"F\n GetSelfCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"{\n!GetSelfCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"?\n\x19GetSelfCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x1aGetSelfCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"\xe1\x01\n(GetLCRCompensationLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12@\n\x11\x63ompensation_type\x18\x03 \x01(\x0e\x32#.nidcpower_grpc.LCRCompensationTypeH\x00\x12\x1f\n\x15\x63ompensation_type_raw\x18\x04 \x01(\x11H\x00\x42\x18\n\x16\x63ompensation_type_enum\"\x83\x01\n)GetLCRCompensationLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"\xb3\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n1ConfigureDigitalEdgeSequenceAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"D\n2ConfigureDigitalEdgeSequenceAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"X\n2ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n3ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n$DisableSequenceAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"7\n%DisableSequenceAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb4\x01\n(ConfigureDigitalEdgeSourceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\";\n)ConfigureDigitalEdgeSourceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ConfigureSoftwareEdgeSourceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"<\n*ConfigureSoftwareEdgeSourceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1b\x44isableSourceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x44isableSourceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb5\x01\n)ConfigureDigitalEdgeMeasureTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"<\n*ConfigureDigitalEdgeMeasureTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*ConfigureSoftwareEdgeMeasureTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n+ConfigureSoftwareEdgeMeasureTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\'ConfigureDigitalEdgePulseTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgePulseTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgePulseTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgePulseTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isablePulseTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isablePulseTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc2\x01\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12.\n\x06signal\x18\x02 \x01(\x0e\x32\x1c.nidcpower_grpc.ExportSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x05 \x01(\tB\r\n\x0bsignal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\x07trigger\x18\x02 \x01(\x0e\x32+.nidcpower_grpc.SendSoftwareEdgeTriggerTypeH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x42\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9e\x01\n\x13WaitForEventRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x08\x65vent_id\x18\x02 \x01(\x0e\x32\x15.nidcpower_grpc.EventH\x00\x12\x16\n\x0c\x65vent_id_raw\x18\x03 \x01(\x11H\x00\x12\x0f\n\x07timeout\x18\x04 \x01(\x01\x42\x0f\n\revent_id_enum\"&\n\x14WaitForEventResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\">\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"T\n\x1fGetChannelNameFromStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\t\"H\n GetChannelNameFromStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"B\n\x1cGetNextCoercionRecordRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"H\n\x1dGetNextCoercionRecordResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x63oercion_record\x18\x02 \x01(\t\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n GetNextInterchangeWarningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"P\n!GetNextInterchangeWarningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13interchange_warning\x18\x02 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"\x91\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12H\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32-.nidcpower_grpc.NiDCPowerInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xad\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x93\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12I\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32..nidcpower_grpc.NiDCPowerReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x90\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x90\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"F\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x03\"\x91\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x91\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\x92\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x92\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"}\n!PerformLCROpenCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_frequencies\x18\x03 \x03(\x01\"4\n\"PerformLCROpenCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"~\n\"PerformLCRShortCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_frequencies\x18\x03 \x03(\x01\"5\n#PerformLCRShortCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa4\x01\n!PerformLCRLoadCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x45\n\x12\x63ompensation_spots\x18\x03 \x03(\x0b\x32).nidcpower_grpc.NILCRLoadCompensationSpot\"4\n\"PerformLCRLoadCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"v\n\x1f\x43onfigureLCRCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x19\n\x11\x63ompensation_data\x18\x03 \x01(\x0c\"2\n ConfigureLCRCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n,PerformLCROpenCustomCableCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"?\n-PerformLCROpenCustomCableCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"i\n-PerformLCRShortCustomCableCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"@\n.PerformLCRShortCustomCableCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1dGetLCRCompensationDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"K\n\x1eGetLCRCompensationDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11\x63ompensation_data\x18\x02 \x01(\x0c\"\xcc\x01\n(InitializeWithIndependentChannelsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\r\n\x05reset\x18\x03 \x01(\x08\x12\x15\n\roption_string\x18\x04 \x01(\t\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x9b\x01\n)InitializeWithIndependentChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xc4\x01\n&ConfigureSourceModeWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x31\n\x0bsource_mode\x18\x03 \x01(\x0e\x32\x1a.nidcpower_grpc.SourceModeH\x00\x12\x19\n\x0fsource_mode_raw\x18\x04 \x01(\x11H\x00\x42\x12\n\x10source_mode_enum\"9\n\'ConfigureSourceModeWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n)CreateAdvancedSequenceWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rsequence_name\x18\x03 \x01(\t\x12\x15\n\rattribute_ids\x18\x04 \x03(\x11\x12\x1e\n\x16set_as_active_sequence\x18\x05 \x01(\x08\"<\n*CreateAdvancedSequenceWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n-CreateAdvancedSequenceStepWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1a\n\x12set_as_active_step\x18\x03 \x01(\x08\"@\n.CreateAdvancedSequenceStepWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8b\x01\n3CreateAdvancedSequenceCommitStepWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1a\n\x12set_as_active_step\x18\x03 \x01(\x08\"F\n4CreateAdvancedSequenceCommitStepWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"|\n)DeleteAdvancedSequenceWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rsequence_name\x18\x03 \x01(\t\"<\n*DeleteAdvancedSequenceWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"U\n\x19\x43ommitWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\",\n\x1a\x43ommitWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1bInitiateWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\".\n\x1cInitiateWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x18\x41\x62ortWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"+\n\x19\x41\x62ortWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n3ConfigureDigitalEdgeStartTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"F\n4ConfigureDigitalEdgeStartTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n4ConfigureSoftwareEdgeStartTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"G\n5ConfigureSoftwareEdgeStartTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"b\n&DisableStartTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"9\n\'DisableStartTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdf\x01\n=ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"P\n>ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n>ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"Q\n?ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n0DisableSequenceAdvanceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"C\n1DisableSequenceAdvanceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd6\x01\n4ConfigureDigitalEdgeSourceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"G\n5ConfigureDigitalEdgeSourceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n5ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"H\n6ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\'DisableSourceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\":\n(DisableSourceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd7\x01\n5ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"H\n6ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"r\n6ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"I\n7ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n3ConfigureDigitalEdgePulseTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"F\n4ConfigureDigitalEdgePulseTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n4ConfigureSoftwareEdgePulseTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"G\n5ConfigureSoftwareEdgePulseTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"b\n&DisablePulseTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"9\n\'DisablePulseTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd8\x01\n6ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"I\n7ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n7ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"J\n8ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n)DisableShutdownTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"<\n*DisableShutdownTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe4\x01\n\x1f\x45xportSignalWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12.\n\x06signal\x18\x03 \x01(\x0e\x32\x1c.nidcpower_grpc.ExportSignalH\x00\x12\x14\n\nsignal_raw\x18\x04 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x05 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x06 \x01(\tB\r\n\x0bsignal_enum\"2\n ExportSignalWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcd\x01\n*SendSoftwareEdgeTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12>\n\x07trigger\x18\x03 \x01(\x0e\x32+.nidcpower_grpc.SendSoftwareEdgeTriggerTypeH\x00\x12\x15\n\x0btrigger_raw\x18\x04 \x01(\x11H\x00\x42\x0e\n\x0ctrigger_enum\"=\n+SendSoftwareEdgeTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc0\x01\n\x1fWaitForEventWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12)\n\x08\x65vent_id\x18\x03 \x01(\x0e\x32\x15.nidcpower_grpc.EventH\x00\x12\x16\n\x0c\x65vent_id_raw\x18\x04 \x01(\x11H\x00\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\x42\x0f\n\revent_id_enum\"2\n WaitForEventWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x18ResetWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"+\n\x19ResetWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"o\n\x13\x43onfigureOvpRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\x12\r\n\x05limit\x18\x04 \x01(\x01\"&\n\x14\x43onfigureOvpResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"d\n(GetLCRCustomCableCompensationDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"c\n)GetLCRCustomCableCompensationDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12&\n\x1e\x63ustom_cable_compensation_data\x18\x02 \x01(\x0c\"\x8e\x01\n*ConfigureLCRCustomCableCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12&\n\x1e\x63ustom_cable_compensation_data\x18\x03 \x01(\x0c\"=\n+ConfigureLCRCustomCableCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\xc2\x65\n\x12NiDCPowerAttribute\x12#\n\x1fNIDCPOWER_ATTRIBUTE_UNSPECIFIED\x10\x00\x12%\n\x1fNIDCPOWER_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12\x31\n+NIDCPOWER_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1f\n\x19NIDCPOWER_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\"\n\x1cNIDCPOWER_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12*\n$NIDCPOWER_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12+\n%NIDCPOWER_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\'\n!NIDCPOWER_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x30\n*NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12\x35\n/NIDCPOWER_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12,\n&NIDCPOWER_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x31\n+NIDCPOWER_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12*\n$NIDCPOWER_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x36\n0NIDCPOWER_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\x32\n,NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12\x30\n*NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x35\n/NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12\x42\nNIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_COMPENSATION_FREQUENCY\x10\x9e\x9b\x46\x12=\n7NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_POLE_ZERO_RATIO\x10\xa3\x9b\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_GAIN_BANDWIDTH\x10\x9a\x9b\x46\x12?\n9NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_COMPENSATION_FREQUENCY\x10\x98\x9b\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_POLE_ZERO_RATIO\x10\x9d\x9b\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_VOLTAGE_LEVEL\x10\xd1\xa5L\x12\'\n!NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT\x10\xd5\xa5L\x12-\n\'NIDCPOWER_ATTRIBUTE_VOLTAGE_LEVEL_RANGE\x10\xb5\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_RANGE\x10\xb4\x98\x46\x12\x30\n*NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_BEHAVIOR\x10\xd4\xa5L\x12\x31\n+NIDCPOWER_ATTRIBUTE_VOLTAGE_LEVEL_AUTORANGE\x10\xbf\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_AUTORANGE\x10\xc0\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_HIGH\x10\xeb\x99\x46\x12+\n%NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_LOW\x10\xec\x99\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL\x10\xb9\x98\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT\x10\xba\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_RANGE\x10\xbb\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_RANGE\x10\xbc\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_AUTORANGE\x10\xc1\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_AUTORANGE\x10\xc2\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_HIGH\x10\xe9\x99\x46\x12+\n%NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_LOW\x10\xea\x99\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_RISING_SLEW_RATE\x10\x87\x9b\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_FALLING_SLEW_RATE\x10\x88\x9b\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LEVEL\x10\x80\x99\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT\x10\x81\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LEVEL\x10\x82\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LIMIT\x10\x83\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LEVEL_RANGE\x10\x84\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT_RANGE\x10\x85\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT_HIGH\x10\xf1\x99\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT_LOW\x10\xf2\x99\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LIMIT_HIGH\x10\xf3\x99\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LIMIT_LOW\x10\xf4\x99\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LEVEL\x10\x86\x99\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT\x10\x87\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LEVEL\x10\x88\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LIMIT\x10\x89\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LEVEL_RANGE\x10\x8a\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT_RANGE\x10\x8b\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT_HIGH\x10\xed\x99\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT_LOW\x10\xee\x99\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LIMIT_HIGH\x10\xef\x99\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LIMIT_LOW\x10\xf0\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_LEVEL\x10\xa1\x9b\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_LEVEL_RANGE\x10\xa2\x9b\x46\x12;\n5NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_CURRENT_LIMIT\x10\x9f\x9b\x46\x12.\n(NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_LEVEL\x10\x9b\x9b\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_LEVEL_RANGE\x10\x9c\x9b\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_CURRENT_LIMIT\x10\x99\x9b\x46\x12&\n NIDCPOWER_ATTRIBUTE_SOURCE_DELAY\x10\xe3\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_OVERRANGING_ENABLED\x10\xb7\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_OUTPUT_CAPACITANCE\x10\xbe\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_SEQUENCE_LOOP_COUNT\x10\xc9\x98\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_SEQUENCE_LOOP_COUNT_IS_FINITE\x10\xfe\x98\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_COMPLIANCE_LIMIT_SYMMETRY\x10\xe8\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_SEQUENCE_STEP_DELTA_TIME\x10\xf6\x99\x46\x12:\n4NIDCPOWER_ATTRIBUTE_SEQUENCE_STEP_DELTA_TIME_ENABLED\x10\xf7\x99\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_ACTUAL_POWER_ALLOCATION\x10\xfd\x99\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_REQUESTED_POWER_ALLOCATION\x10\xfe\x99\x46\x12/\n)NIDCPOWER_ATTRIBUTE_POWER_ALLOCATION_MODE\x10\xff\x99\x46\x12)\n#NIDCPOWER_ATTRIBUTE_MERGED_CHANNELS\x10\xa9\x9a\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_CONDUCTION_VOLTAGE_MODE\x10\x8e\x9b\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_CONDUCTION_VOLTAGE_ON_THRESHOLD\x10\x8f\x9b\x46\x12:\n4NIDCPOWER_ATTRIBUTE_CONDUCTION_VOLTAGE_OFF_THRESHOLD\x10\x90\x9b\x46\x12(\n\"NIDCPOWER_ATTRIBUTE_OUTPUT_SHORTED\x10\xa4\x9b\x46\x12*\n$NIDCPOWER_ATTRIBUTE_PULSE_BIAS_DELAY\x10\x8c\x99\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_PULSE_ON_TIME\x10\x8d\x99\x46\x12(\n\"NIDCPOWER_ATTRIBUTE_PULSE_OFF_TIME\x10\x8e\x99\x46\x12%\n\x1fNIDCPOWER_ATTRIBUTE_OVP_ENABLED\x10\xd2\xa5L\x12#\n\x1dNIDCPOWER_ATTRIBUTE_OVP_LIMIT\x10\xd3\xa5L\x12\x1f\n\x19NIDCPOWER_ATTRIBUTE_SENSE\x10\xbd\x98\x46\x12#\n\x1dNIDCPOWER_ATTRIBUTE_AUTO_ZERO\x10\xe7\x98\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_APERTURE_TIME\x10\xea\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_APERTURE_TIME_UNITS\x10\xeb\x98\x46\x12.\n(NIDCPOWER_ATTRIBUTE_POWER_LINE_FREQUENCY\x10\xc4\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_SAMPLES_TO_AVERAGE\x10\xb3\x98\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_FETCH_BACKLOG\x10\xe8\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_APERTURE_TIME_AUTO_MODE\x10\xea\x9a\x46\x12#\n\x1dNIDCPOWER_ATTRIBUTE_AUTORANGE\x10\xa4\x9a\x46\x12&\n NIDCPOWER_ATTRIBUTE_MEASURE_WHEN\x10\xe9\x98\x46\x12:\n4NIDCPOWER_ATTRIBUTE_RESET_AVERAGE_BEFORE_MEASUREMENT\x10\xb6\x98\x46\x12/\n)NIDCPOWER_ATTRIBUTE_MEASURE_RECORD_LENGTH\x10\xef\x98\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_MEASURE_RECORD_LENGTH_IS_FINITE\x10\xf0\x98\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_MEASURE_RECORD_DELTA_TIME\x10\xf1\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_DC_NOISE_REJECTION\x10\xf2\x98\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_SELF_CALIBRATION_PERSISTENCE\x10\xf9\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_MEASURE_BUFFER_SIZE\x10\xfd\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_AUTORANGE_BEHAVIOR\x10\xa5\x9a\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_AUTORANGE_APERTURE_TIME_MODE\x10\xa6\x9a\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_APERTURE_TIME\x10\xa7\x9a\x46\x12?\n9NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_APERTURE_TIME_UNITS\x10\xa8\x9a\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_CURRENT_RANGE\x10\xaf\x9a\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_VOLTAGE_RANGE\x10\xb0\x9a\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_AUTORANGE_THRESHOLD_MODE\x10\xb1\x9a\x46\x12\x44\n>NIDCPOWER_ATTRIBUTE_AUTORANGE_MAXIMUM_DELAY_AFTER_RANGE_CHANGE\x10\xf2\x9a\x46\x12,\n&NIDCPOWER_ATTRIBUTE_START_TRIGGER_TYPE\x10\xc5\x98\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_EDGE\x10\xc6\x98\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_INPUT_TERMINAL\x10\xc7\x98\x46\x12@\n:NIDCPOWER_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xc8\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_SOURCE_TRIGGER_TYPE\x10\xce\x98\x46\x12:\n4NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SOURCE_TRIGGER_EDGE\x10\xcf\x98\x46\x12\x44\n>NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SOURCE_TRIGGER_INPUT_TERMINAL\x10\xd0\x98\x46\x12\x41\n;NIDCPOWER_ATTRIBUTE_EXPORTED_SOURCE_TRIGGER_OUTPUT_TERMINAL\x10\xd1\x98\x46\x12.\n(NIDCPOWER_ATTRIBUTE_MEASURE_TRIGGER_TYPE\x10\xd2\x98\x46\x12;\n5NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_MEASURE_TRIGGER_EDGE\x10\xd3\x98\x46\x12\x45\n?NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_MEASURE_TRIGGER_INPUT_TERMINAL\x10\xd4\x98\x46\x12\x42\nNIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SEQUENCE_ADVANCE_TRIGGER_EDGE\x10\xcb\x98\x46\x12N\nHNIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SEQUENCE_ADVANCE_TRIGGER_INPUT_TERMINAL\x10\xcc\x98\x46\x12K\nENIDCPOWER_ATTRIBUTE_EXPORTED_SEQUENCE_ADVANCE_TRIGGER_OUTPUT_TERMINAL\x10\xcd\x98\x46\x12?\n9NIDCPOWER_ATTRIBUTE_SOURCE_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\xdb\x98\x46\x12>\n8NIDCPOWER_ATTRIBUTE_SOURCE_COMPLETE_EVENT_PULSE_POLARITY\x10\xd9\x98\x46\x12;\n5NIDCPOWER_ATTRIBUTE_SOURCE_COMPLETE_EVENT_PULSE_WIDTH\x10\xda\x98\x46\x12@\n:NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\xdf\x98\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_DELAY\x10\xde\x98\x46\x12?\n9NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_PULSE_POLARITY\x10\xdc\x98\x46\x12<\n6NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_PULSE_WIDTH\x10\xdd\x98\x46\x12K\nENIDCPOWER_ATTRIBUTE_SEQUENCE_ITERATION_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\xd8\x98\x46\x12J\nDNIDCPOWER_ATTRIBUTE_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_POLARITY\x10\xd6\x98\x46\x12G\nANIDCPOWER_ATTRIBUTE_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_WIDTH\x10\xd7\x98\x46\x12\x44\n>NIDCPOWER_ATTRIBUTE_SEQUENCE_ENGINE_DONE_EVENT_OUTPUT_TERMINAL\x10\xe2\x98\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_SEQUENCE_ENGINE_DONE_EVENT_PULSE_POLARITY\x10\xe0\x98\x46\x12@\n:NIDCPOWER_ATTRIBUTE_SEQUENCE_ENGINE_DONE_EVENT_PULSE_WIDTH\x10\xe1\x98\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_ACTIVE_ADVANCED_SEQUENCE\x10\xfa\x98\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_ACTIVE_ADVANCED_SEQUENCE_STEP\x10\xfb\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_PULSE_TRIGGER_TYPE\x10\x8f\x99\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_PULSE_TRIGGER_EDGE\x10\x90\x99\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_PULSE_TRIGGER_INPUT_TERMINAL\x10\x91\x99\x46\x12@\n:NIDCPOWER_ATTRIBUTE_EXPORTED_PULSE_TRIGGER_OUTPUT_TERMINAL\x10\x92\x99\x46\x12>\n8NIDCPOWER_ATTRIBUTE_PULSE_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\x93\x99\x46\x12=\n7NIDCPOWER_ATTRIBUTE_PULSE_COMPLETE_EVENT_PULSE_POLARITY\x10\x94\x99\x46\x12:\n4NIDCPOWER_ATTRIBUTE_PULSE_COMPLETE_EVENT_PULSE_WIDTH\x10\x95\x99\x46\x12G\nANIDCPOWER_ATTRIBUTE_READY_FOR_PULSE_TRIGGER_EVENT_OUTPUT_TERMINAL\x10\x96\x99\x46\x12\x46\n@NIDCPOWER_ATTRIBUTE_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_POLARITY\x10\x97\x99\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_WIDTH\x10\x98\x99\x46\x12/\n)NIDCPOWER_ATTRIBUTE_SHUTDOWN_TRIGGER_TYPE\x10\xc3\x9a\x46\x12<\n6NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SHUTDOWN_TRIGGER_EDGE\x10\xc4\x9a\x46\x12\x46\n@NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SHUTDOWN_TRIGGER_INPUT_TERMINAL\x10\xc5\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_INTERLOCK_INPUT_OPEN\x10\x99\x99\x46\x12&\n NIDCPOWER_ATTRIBUTE_POWER_SOURCE\x10\xb0\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_POWER_SOURCE_IN_USE\x10\xb1\x98\x46\x12:\n4NIDCPOWER_ATTRIBUTE_AUXILIARY_POWER_SOURCE_AVAILABLE\x10\xb2\x98\x46\x12)\n#NIDCPOWER_ATTRIBUTE_ISOLATION_STATE\x10\xde\x9a\x46\x12)\n#NIDCPOWER_ATTRIBUTE_INSTRUMENT_MODE\x10\x80\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_STIMULUS_FUNCTION\x10\x81\x9a\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_LCR_FREQUENCY\x10\x82\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_VOLTAGE_AMPLITUDE\x10\x83\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_CURRENT_AMPLITUDE\x10\x84\x9a\x46\x12,\n&NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_SOURCE\x10\x85\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_VOLTAGE_LEVEL\x10\x86\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_CURRENT_LEVEL\x10\x87\x9a\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_LCR_IMPEDANCE_AUTO_RANGE\x10\x88\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_IMPEDANCE_RANGE\x10\x89\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_MEASUREMENT_TIME\x10\x8a\x9a\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_LCR_OPEN_COMPENSATION_ENABLED\x10\x8c\x9a\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_LCR_SHORT_COMPENSATION_ENABLED\x10\x8d\x9a\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_LCR_LOAD_COMPENSATION_ENABLED\x10\x8e\x9a\x46\x12\x46\n@NIDCPOWER_ATTRIBUTE_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE\x10\x8f\x9a\x46\x12\x35\n/NIDCPOWER_ATTRIBUTE_LCR_CUSTOM_MEASUREMENT_TIME\x10\xb2\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_OPEN_CONDUCTANCE\x10\xb5\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_OPEN_SUSCEPTANCE\x10\xb6\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_SHORT_RESISTANCE\x10\xb7\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_SHORT_REACTANCE\x10\xb8\x9a\x46\x12+\n%NIDCPOWER_ATTRIBUTE_LCR_VOLTAGE_RANGE\x10\xb9\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_VOLTAGE_RANGE\x10\xba\x9a\x46\x12+\n%NIDCPOWER_ATTRIBUTE_LCR_CURRENT_RANGE\x10\xbb\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_CURRENT_RANGE\x10\xc2\x9a\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_LCR_MEASURED_LOAD_RESISTANCE\x10\xbc\x9a\x46\x12\x35\n/NIDCPOWER_ATTRIBUTE_LCR_MEASURED_LOAD_REACTANCE\x10\xbd\x9a\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_LCR_ACTUAL_LOAD_RESISTANCE\x10\xbe\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_ACTUAL_LOAD_REACTANCE\x10\xbf\x9a\x46\x12&\n NIDCPOWER_ATTRIBUTE_CABLE_LENGTH\x10\xc6\x9a\x46\x12\x35\n/NIDCPOWER_ATTRIBUTE_LCR_AUTOMATIC_LEVEL_CONTROL\x10\xd2\x9a\x46\x12=\n7NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_AUTOMATIC_LEVEL_CONTROL\x10\xd3\x9a\x46\x12\x45\n?NIDCPOWER_ATTRIBUTE_LCR_SHORT_CUSTOM_CABLE_COMPENSATION_ENABLED\x10\xdb\x9a\x46\x12>\n8NIDCPOWER_ATTRIBUTE_LCR_AC_ELECTRICAL_CABLE_LENGTH_DELAY\x10\xe5\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_SOURCE_DELAY_MODE\x10\xeb\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_LOAD_RESISTANCE\x10\xee\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_LOAD_INDUCTANCE\x10\xef\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_LOAD_CAPACITANCE\x10\xf0\x9a\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_LCR_IMPEDANCE_RANGE_SOURCE\x10\xf1\x9a\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_TRANSIENT_RESPONSE\x10\x8b\x9b\x46\x12/\n)NIDCPOWER_ATTRIBUTE_OUTPUT_CUTOFF_ENABLED\x10\x9b\x9a\x46\x12\x41\n;NIDCPOWER_ATTRIBUTE_OUTPUT_CUTOFF_VOLTAGE_OUTPUT_LIMIT_HIGH\x10\x9c\x9a\x46\x12\x42\n\n9EXPORT_SIGNAL_NIDCPOWER_VAL_READY_FOR_PULSE_TRIGGER_EVENT\x10\x9c\x08\x12.\n)EXPORT_SIGNAL_NIDCPOWER_VAL_START_TRIGGER\x10\x8a\x08\x12/\n*EXPORT_SIGNAL_NIDCPOWER_VAL_SOURCE_TRIGGER\x10\x8b\x08\x12\x30\n+EXPORT_SIGNAL_NIDCPOWER_VAL_MEASURE_TRIGGER\x10\x8c\x08\x12\x39\n4EXPORT_SIGNAL_NIDCPOWER_VAL_SEQUENCE_ADVANCE_TRIGGER\x10\x8d\x08\x12.\n)EXPORT_SIGNAL_NIDCPOWER_VAL_PULSE_TRIGGER\x10\x9d\x08\x12\x31\n,EXPORT_SIGNAL_NIDCPOWER_VAL_SHUTDOWN_TRIGGER\x10\xde\x08*\x81\n\n\x12OutputCutoffReason\x12$\n OUTPUT_CUTOFF_REASON_UNSPECIFIED\x10\x00\x12H\n;OUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_ALL\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_OUTPUT_HIGH\x10\x01\x12N\nJOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_OUTPUT_LOW\x10\x02\x12P\nLOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_MEASURE_HIGH\x10\x04\x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_MEASURE_LOW\x10\x08\x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_CHANGE_HIGH\x10\x10\x12N\nJOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_CHANGE_LOW\x10 \x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_CHANGE_HIGH\x10@\x12O\nJOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_CHANGE_LOW\x10\x80\x01\x12N\nIOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_SATURATED\x10\x80\x02\x12N\nIOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_SATURATED\x10\x80\x04\x12Q\nLOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_MEASURE_HIGH\x10\x80\x08\x12P\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_MEASURE_LOW\x10\x80\x10\x12W\nROUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_SELF_TEST_MEASUREMENT_HIGH\x10\x80 \x12V\nQOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_SELF_TEST_MEASUREMENT_LOW\x10\x80@*\x84\x03\n\x13LCRCompensationType\x12%\n!LCR_COMPENSATION_TYPE_UNSPECIFIED\x10\x00\x12:\n5LCR_COMPENSATION_TYPE_NIDCPOWER_VAL_OPEN_COMPENSATION\x10\xea\x08\x12;\n6LCR_COMPENSATION_TYPE_NIDCPOWER_VAL_SHORT_COMPENSATION\x10\xeb\x08\x12:\n5LCR_COMPENSATION_TYPE_NIDCPOWER_VAL_LOAD_COMPENSATION\x10\xec\x08\x12G\nBLCR_COMPENSATION_TYPE_NIDCPOWER_VAL_OPEN_CUSTOM_CABLE_COMPENSATION\x10\xed\x08\x12H\nCLCR_COMPENSATION_TYPE_NIDCPOWER_VAL_SHORT_CUSTOM_CABLE_COMPENSATION\x10\xee\x08*\xb3\x02\n\x05\x45vent\x12\x15\n\x11\x45VENT_UNSPECIFIED\x10\x00\x12(\n#EVENT_NIDCPOWER_VAL_SOURCE_COMPLETE\x10\x86\x08\x12)\n$EVENT_NIDCPOWER_VAL_MEASURE_COMPLETE\x10\x87\x08\x12\x34\n/EVENT_NIDCPOWER_VAL_SEQUENCE_ITERATION_COMPLETE\x10\x88\x08\x12-\n(EVENT_NIDCPOWER_VAL_SEQUENCE_ENGINE_DONE\x10\x89\x08\x12\'\n\"EVENT_NIDCPOWER_VAL_PULSE_COMPLETE\x10\x9b\x08\x12\x30\n+EVENT_NIDCPOWER_VAL_READY_FOR_PULSE_TRIGGER\x10\x9c\x08*\xbb\x03\n\x1bSendSoftwareEdgeTriggerType\x12/\n+SEND_SOFTWARE_EDGE_TRIGGER_TYPE_UNSPECIFIED\x10\x00\x12\x38\n3SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_START\x10\x8a\x08\x12\x39\n4SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_SOURCE\x10\x8b\x08\x12:\n5SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_MEASURE\x10\x8c\x08\x12\x43\n>SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_SEQUENCE_ADVANCE\x10\x8d\x08\x12\x38\n3SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_PULSE\x10\x9d\x08\x12;\n6SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_SHUTDOWN\x10\xde\x08*\x8e\x31\n\x1dNiDCPowerInt32AttributeValues\x12\x1f\n\x1bNIDCPOWER_INT32_UNSPECIFIED\x10\x00\x12L\nGNIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_OFF\x10\xef\x08\x12N\nINIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_SHORT\x10\xf0\x08\x12O\nJNIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_NORMAL\x10\xf1\x08\x12M\nHNIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_LONG\x10\xf2\x08\x12\x34\n/NIDCPOWER_INT32_APERTURE_TIME_UNITS_VAL_SECONDS\x10\x84\x08\x12>\n9NIDCPOWER_INT32_APERTURE_TIME_UNITS_VAL_POWER_LINE_CYCLES\x10\x85\x08\x12%\n!NIDCPOWER_INT32_AUTO_ZERO_VAL_OFF\x10\x00\x12\'\n\"NIDCPOWER_INT32_AUTO_ZERO_VAL_ONCE\x10\x80\x08\x12$\n NIDCPOWER_INT32_AUTO_ZERO_VAL_ON\x10\x01\x12H\nCNIDCPOWER_INT32_AUTORANGE_APERTURE_TIME_MODE_VAL_APERTURE_TIME_AUTO\x10\xd6\x08\x12J\nENIDCPOWER_INT32_AUTORANGE_APERTURE_TIME_MODE_VAL_APERTURE_TIME_CUSTOM\x10\xd7\x08\x12G\nBNIDCPOWER_INT32_AUTORANGE_BEHAVIOR_VAL_RANGE_UP_TO_LIMIT_THEN_DOWN\x10\xd3\x08\x12\x34\n/NIDCPOWER_INT32_AUTORANGE_BEHAVIOR_VAL_RANGE_UP\x10\xd4\x08\x12=\n8NIDCPOWER_INT32_AUTORANGE_BEHAVIOR_VAL_RANGE_UP_AND_DOWN\x10\xd5\x08\x12G\nBNIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_NORMAL\x10\xd8\x08\x12J\nENIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_FAST_STEP\x10\xd9\x08\x12P\nKNIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_HIGH_HYSTERESIS\x10\xda\x08\x12R\nMNIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_MEDIUM_HYSTERESIS\x10\xdb\x08\x12\x45\n@NIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_HOLD\x10\xdc\x08\x12,\n\'NIDCPOWER_INT32_CABLE_LENGTH_VAL_ZERO_M\x10\xe1\x08\x12\x36\n1NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_0_5M\x10\x81\t\x12\x34\n/NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_1M\x10\xe2\x08\x12\x34\n/NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_2M\x10\xe3\x08\x12\x34\n/NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_4M\x10\xe4\x08\x12=\n8NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_TRIAXIAL_1M\x10\xf3\x08\x12=\n8NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_TRIAXIAL_2M\x10\xf4\x08\x12=\n8NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_TRIAXIAL_4M\x10\xf5\x08\x12<\n7NIDCPOWER_INT32_CABLE_LENGTH_VAL_CUSTOM_ONBOARD_STORAGE\x10\xe5\x08\x12:\n5NIDCPOWER_INT32_CABLE_LENGTH_VAL_CUSTOM_AS_CONFIGURED\x10\xe6\x08\x12;\n7NIDCPOWER_INT32_COMPLIANCE_LIMIT_SYMMETRY_VAL_SYMMETRIC\x10\x00\x12<\n8NIDCPOWER_INT32_COMPLIANCE_LIMIT_SYMMETRY_VAL_ASYMMETRIC\x10\x01\x12R\nMNIDCPOWER_INT32_CONDUCTION_VOLTAGE_MODE_VAL_CONDUCTION_VOLTAGE_MODE_AUTOMATIC\x10\x83\t\x12P\nKNIDCPOWER_INT32_CONDUCTION_VOLTAGE_MODE_VAL_CONDUCTION_VOLTAGE_MODE_ENABLED\x10\x84\t\x12Q\nLNIDCPOWER_INT32_CONDUCTION_VOLTAGE_MODE_VAL_CONDUCTION_VOLTAGE_MODE_DISABLED\x10\x85\t\x12?\n;NIDCPOWER_INT32_CURRENT_LIMIT_BEHAVIOR_VAL_CURRENT_REGULATE\x10\x00\x12;\n7NIDCPOWER_INT32_CURRENT_LIMIT_BEHAVIOR_VAL_CURRENT_TRIP\x10\x01\x12K\nFNIDCPOWER_INT32_DC_NOISE_REJECTION_VAL_DC_NOISE_REJECTION_SECOND_ORDER\x10\x93\x08\x12\x45\n@NIDCPOWER_INT32_DC_NOISE_REJECTION_VAL_DC_NOISE_REJECTION_NORMAL\x10\x94\x08\x12,\n\'NIDCPOWER_INT32_DIGITAL_EDGE_VAL_RISING\x10\xf8\x07\x12-\n(NIDCPOWER_INT32_DIGITAL_EDGE_VAL_FALLING\x10\xf9\x07\x12/\n*NIDCPOWER_INT32_INSTRUMENT_MODE_VAL_SMU_PS\x10\xa5\x08\x12,\n\'NIDCPOWER_INT32_INSTRUMENT_MODE_VAL_LCR\x10\xa6\x08\x12/\n*NIDCPOWER_INT32_INSTRUMENT_MODE_VAL_E_LOAD\x10\x82\t\x12\x31\n,NIDCPOWER_INT32_ISOLATION_STATE_VAL_ISOLATED\x10\xe8\x08\x12\x35\n0NIDCPOWER_INT32_ISOLATION_STATE_VAL_NON_ISOLATED\x10\xe9\x08\x12\x37\n3NIDCPOWER_INT32_LCR_AUTOMATIC_LEVEL_CONTROL_VAL_OFF\x10\x00\x12\x36\n2NIDCPOWER_INT32_LCR_AUTOMATIC_LEVEL_CONTROL_VAL_ON\x10\x01\x12\x36\n1NIDCPOWER_INT32_LCRDC_BIAS_SOURCE_VAL_DC_BIAS_OFF\x10\xa9\x08\x12:\n5NIDCPOWER_INT32_LCRDC_BIAS_SOURCE_VAL_DC_BIAS_VOLTAGE\x10\xaa\x08\x12:\n5NIDCPOWER_INT32_LCRDC_BIAS_SOURCE_VAL_DC_BIAS_CURRENT\x10\xab\x08\x12\\\nWNIDCPOWER_INT32_LCRDC_BIAS_TRANSIENT_RESPONSE_VAL_LCR_DC_BIAS_TRANSIENT_RESPONSE_NORMAL\x10\xff\x08\x12\\\nWNIDCPOWER_INT32_LCRDC_BIAS_TRANSIENT_RESPONSE_VAL_LCR_DC_BIAS_TRANSIENT_RESPONSE_CUSTOM\x10\x80\t\x12@\n;NIDCPOWER_INT32_LCR_IMPEDANCE_AUTO_RANGE_VAL_AUTO_RANGE_OFF\x10\xac\x08\x12?\n:NIDCPOWER_INT32_LCR_IMPEDANCE_AUTO_RANGE_VAL_AUTO_RANGE_ON\x10\xae\x08\x12G\nBNIDCPOWER_INT32_LCR_IMPEDANCE_RANGE_SOURCE_VAL_LCR_IMPEDANCE_RANGE\x10\xf6\x08\x12J\nENIDCPOWER_INT32_LCR_IMPEDANCE_RANGE_SOURCE_VAL_LCR_LOAD_CONFIGURATION\x10\xf7\x08\x12\x44\n?NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_SHORT\x10\xaf\x08\x12\x45\n@NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_MEDIUM\x10\xb0\x08\x12\x43\n>NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_LONG\x10\xb1\x08\x12\x45\n@NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_CUSTOM\x10\xdd\x08\x12U\nPNIDCPOWER_INT32_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE_VAL_ONBOARD_STORAGE\x10\xb2\x08\x12P\nKNIDCPOWER_INT32_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE_VAL_AS_DEFINED\x10\xb3\x08\x12S\nNNIDCPOWER_INT32_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE_VAL_AS_CONFIGURED\x10\xfa\x08\x12N\nINIDCPOWER_INT32_LCR_SOURCE_DELAY_MODE_VAL_LCR_SOURCE_DELAY_MODE_AUTOMATIC\x10\xf8\x08\x12K\nFNIDCPOWER_INT32_LCR_SOURCE_DELAY_MODE_VAL_LCR_SOURCE_DELAY_MODE_MANUAL\x10\xf9\x08\x12\x39\n4NIDCPOWER_INT32_LCR_STIMULUS_FUNCTION_VAL_AC_VOLTAGE\x10\xa7\x08\x12\x39\n4NIDCPOWER_INT32_LCR_STIMULUS_FUNCTION_VAL_AC_CURRENT\x10\xa8\x08\x12I\nDNIDCPOWER_INT32_MEASURE_WHEN_VAL_AUTOMATICALLY_AFTER_SOURCE_COMPLETE\x10\x81\x08\x12/\n*NIDCPOWER_INT32_MEASURE_WHEN_VAL_ON_DEMAND\x10\x82\x08\x12\x38\n3NIDCPOWER_INT32_MEASURE_WHEN_VAL_ON_MEASURE_TRIGGER\x10\x83\x08\x12/\n*NIDCPOWER_INT32_OUTPUT_CAPACITANCE_VAL_LOW\x10\xf2\x07\x12\x30\n+NIDCPOWER_INT32_OUTPUT_CAPACITANCE_VAL_HIGH\x10\xf3\x07\x12\x33\n.NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_DC_VOLTAGE\x10\xee\x07\x12\x33\n.NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_DC_CURRENT\x10\xef\x07\x12\x36\n1NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_PULSE_VOLTAGE\x10\x99\x08\x12\x36\n1NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_PULSE_CURRENT\x10\x9a\x08\x12<\n7NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_CONSTANT_RESISTANCE\x10\x89\t\x12\x37\n2NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_CONSTANT_POWER\x10\x8a\t\x12-\n(NIDCPOWER_INT32_POLARITY_VAL_ACTIVE_HIGH\x10\xfa\x07\x12,\n\'NIDCPOWER_INT32_POLARITY_VAL_ACTIVE_LOW\x10\xfb\x07\x12\x37\n2NIDCPOWER_INT32_POWER_ALLOCATION_MODE_VAL_DISABLED\x10\xa2\x08\x12\x38\n3NIDCPOWER_INT32_POWER_ALLOCATION_MODE_VAL_AUTOMATIC\x10\xa3\x08\x12\x35\n0NIDCPOWER_INT32_POWER_ALLOCATION_MODE_VAL_MANUAL\x10\xa4\x08\x12.\n)NIDCPOWER_INT32_POWER_SOURCE_VAL_INTERNAL\x10\xeb\x07\x12/\n*NIDCPOWER_INT32_POWER_SOURCE_VAL_AUXILIARY\x10\xec\x07\x12/\n*NIDCPOWER_INT32_POWER_SOURCE_VAL_AUTOMATIC\x10\xed\x07\x12\x35\n0NIDCPOWER_INT32_POWER_SOURCE_IN_USE_VAL_INTERNAL\x10\xeb\x07\x12\x36\n1NIDCPOWER_INT32_POWER_SOURCE_IN_USE_VAL_AUXILIARY\x10\xec\x07\x12\x44\n?NIDCPOWER_INT32_SELF_CALIBRATION_PERSISTENCE_VAL_KEEP_IN_MEMORY\x10\x95\x08\x12\x45\n@NIDCPOWER_INT32_SELF_CALIBRATION_PERSISTENCE_VAL_WRITE_TO_EEPROM\x10\x96\x08\x12$\n\x1fNIDCPOWER_INT32_SENSE_VAL_LOCAL\x10\xf0\x07\x12%\n NIDCPOWER_INT32_SENSE_VAL_REMOTE\x10\xf1\x07\x12\x31\n,NIDCPOWER_INT32_SOURCE_MODE_VAL_SINGLE_POINT\x10\xfc\x07\x12-\n(NIDCPOWER_INT32_SOURCE_MODE_VAL_SEQUENCE\x10\xfd\x07\x12\x32\n-NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_NORMAL\x10\x8e\x08\x12\x30\n+NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_FAST\x10\x8f\x08\x12\x30\n+NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_SLOW\x10\x91\x08\x12\x32\n-NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_CUSTOM\x10\x92\x08\x12*\n%NIDCPOWER_INT32_TRIGGER_TYPE_VAL_NONE\x10\xf4\x07\x12\x32\n-NIDCPOWER_INT32_TRIGGER_TYPE_VAL_DIGITAL_EDGE\x10\xf6\x07\x12\x33\n.NIDCPOWER_INT32_TRIGGER_TYPE_VAL_SOFTWARE_EDGE\x10\xf7\x07\x1a\x02\x10\x01*\xb6\x01\n\x1eNiDCPowerReal64AttributeValues\x12 \n\x1cNIDCPOWER_REAL64_UNSPECIFIED\x10\x00\x12\x38\n4NIDCPOWER_REAL64_POWER_LINE_FREQUENCIES_VAL_50_HERTZ\x10\x32\x12\x38\n4NIDCPOWER_REAL64_POWER_LINE_FREQUENCIES_VAL_60_HERTZ\x10<2\x97\x97\x01\n\tNiDCPower\x12w\n\x16InitializeWithChannels\x12-.nidcpower_grpc.InitializeWithChannelsRequest\x1a..nidcpower_grpc.InitializeWithChannelsResponse\x12\x44\n\x05\x43lose\x12\x1c.nidcpower_grpc.CloseRequest\x1a\x1d.nidcpower_grpc.CloseResponse\x12n\n\x13\x43onfigureSourceMode\x12*.nidcpower_grpc.ConfigureSourceModeRequest\x1a+.nidcpower_grpc.ConfigureSourceModeResponse\x12z\n\x17\x43onfigureOutputFunction\x12..nidcpower_grpc.ConfigureOutputFunctionRequest\x1a/.nidcpower_grpc.ConfigureOutputFunctionResponse\x12w\n\x16\x43onfigureOutputEnabled\x12-.nidcpower_grpc.ConfigureOutputEnabledRequest\x1a..nidcpower_grpc.ConfigureOutputEnabledResponse\x12V\n\x0bSetSequence\x12\".nidcpower_grpc.SetSequenceRequest\x1a#.nidcpower_grpc.SetSequenceResponse\x12t\n\x15\x43onfigureVoltageLevel\x12,.nidcpower_grpc.ConfigureVoltageLevelRequest\x1a-.nidcpower_grpc.ConfigureVoltageLevelResponse\x12t\n\x15\x43onfigureCurrentLimit\x12,.nidcpower_grpc.ConfigureCurrentLimitRequest\x1a-.nidcpower_grpc.ConfigureCurrentLimitResponse\x12\x83\x01\n\x1a\x43onfigureVoltageLevelRange\x12\x31.nidcpower_grpc.ConfigureVoltageLevelRangeRequest\x1a\x32.nidcpower_grpc.ConfigureVoltageLevelRangeResponse\x12\x83\x01\n\x1a\x43onfigureCurrentLimitRange\x12\x31.nidcpower_grpc.ConfigureCurrentLimitRangeRequest\x1a\x32.nidcpower_grpc.ConfigureCurrentLimitRangeResponse\x12\x80\x01\n\x19\x43onfigureOutputResistance\x12\x30.nidcpower_grpc.ConfigureOutputResistanceRequest\x1a\x31.nidcpower_grpc.ConfigureOutputResistanceResponse\x12t\n\x15\x43onfigureCurrentLevel\x12,.nidcpower_grpc.ConfigureCurrentLevelRequest\x1a-.nidcpower_grpc.ConfigureCurrentLevelResponse\x12\x83\x01\n\x1a\x43onfigureCurrentLevelRange\x12\x31.nidcpower_grpc.ConfigureCurrentLevelRangeRequest\x1a\x32.nidcpower_grpc.ConfigureCurrentLevelRangeResponse\x12t\n\x15\x43onfigureVoltageLimit\x12,.nidcpower_grpc.ConfigureVoltageLimitRequest\x1a-.nidcpower_grpc.ConfigureVoltageLimitResponse\x12\x83\x01\n\x1a\x43onfigureVoltageLimitRange\x12\x31.nidcpower_grpc.ConfigureVoltageLimitRangeRequest\x1a\x32.nidcpower_grpc.ConfigureVoltageLimitRangeResponse\x12\x83\x01\n\x1a\x43onfigurePulseVoltageLevel\x12\x31.nidcpower_grpc.ConfigurePulseVoltageLevelRequest\x1a\x32.nidcpower_grpc.ConfigurePulseVoltageLevelResponse\x12\x83\x01\n\x1a\x43onfigurePulseCurrentLimit\x12\x31.nidcpower_grpc.ConfigurePulseCurrentLimitRequest\x1a\x32.nidcpower_grpc.ConfigurePulseCurrentLimitResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasVoltageLevel\x12\x35.nidcpower_grpc.ConfigurePulseBiasVoltageLevelRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasVoltageLevelResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasCurrentLimit\x12\x35.nidcpower_grpc.ConfigurePulseBiasCurrentLimitRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasCurrentLimitResponse\x12\x92\x01\n\x1f\x43onfigurePulseVoltageLevelRange\x12\x36.nidcpower_grpc.ConfigurePulseVoltageLevelRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseVoltageLevelRangeResponse\x12\x92\x01\n\x1f\x43onfigurePulseCurrentLimitRange\x12\x36.nidcpower_grpc.ConfigurePulseCurrentLimitRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseCurrentLimitRangeResponse\x12\x83\x01\n\x1a\x43onfigurePulseCurrentLevel\x12\x31.nidcpower_grpc.ConfigurePulseCurrentLevelRequest\x1a\x32.nidcpower_grpc.ConfigurePulseCurrentLevelResponse\x12\x83\x01\n\x1a\x43onfigurePulseVoltageLimit\x12\x31.nidcpower_grpc.ConfigurePulseVoltageLimitRequest\x1a\x32.nidcpower_grpc.ConfigurePulseVoltageLimitResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasCurrentLevel\x12\x35.nidcpower_grpc.ConfigurePulseBiasCurrentLevelRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasCurrentLevelResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasVoltageLimit\x12\x35.nidcpower_grpc.ConfigurePulseBiasVoltageLimitRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasVoltageLimitResponse\x12\x92\x01\n\x1f\x43onfigurePulseCurrentLevelRange\x12\x36.nidcpower_grpc.ConfigurePulseCurrentLevelRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseCurrentLevelRangeResponse\x12\x92\x01\n\x1f\x43onfigurePulseVoltageLimitRange\x12\x36.nidcpower_grpc.ConfigurePulseVoltageLimitRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseVoltageLimitRangeResponse\x12w\n\x16\x43reateAdvancedSequence\x12-.nidcpower_grpc.CreateAdvancedSequenceRequest\x1a..nidcpower_grpc.CreateAdvancedSequenceResponse\x12\x83\x01\n\x1a\x43reateAdvancedSequenceStep\x12\x31.nidcpower_grpc.CreateAdvancedSequenceStepRequest\x1a\x32.nidcpower_grpc.CreateAdvancedSequenceStepResponse\x12w\n\x16\x44\x65leteAdvancedSequence\x12-.nidcpower_grpc.DeleteAdvancedSequenceRequest\x1a..nidcpower_grpc.DeleteAdvancedSequenceResponse\x12t\n\x15\x43onfigureApertureTime\x12,.nidcpower_grpc.ConfigureApertureTimeRequest\x1a-.nidcpower_grpc.ConfigureApertureTimeResponse\x12h\n\x11\x43onfigureAutoZero\x12(.nidcpower_grpc.ConfigureAutoZeroRequest\x1a).nidcpower_grpc.ConfigureAutoZeroResponse\x12\x86\x01\n\x1b\x43onfigurePowerLineFrequency\x12\x32.nidcpower_grpc.ConfigurePowerLineFrequencyRequest\x1a\x33.nidcpower_grpc.ConfigurePowerLineFrequencyResponse\x12_\n\x0e\x43onfigureSense\x12%.nidcpower_grpc.ConfigureSenseRequest\x1a&.nidcpower_grpc.ConfigureSenseResponse\x12J\n\x07Measure\x12\x1e.nidcpower_grpc.MeasureRequest\x1a\x1f.nidcpower_grpc.MeasureResponse\x12\x62\n\x0fMeasureMultiple\x12&.nidcpower_grpc.MeasureMultipleRequest\x1a\'.nidcpower_grpc.MeasureMultipleResponse\x12\\\n\rFetchMultiple\x12$.nidcpower_grpc.FetchMultipleRequest\x1a%.nidcpower_grpc.FetchMultipleResponse\x12k\n\x12MeasureMultipleLCR\x12).nidcpower_grpc.MeasureMultipleLCRRequest\x1a*.nidcpower_grpc.MeasureMultipleLCRResponse\x12\x65\n\x10\x46\x65tchMultipleLCR\x12\'.nidcpower_grpc.FetchMultipleLCRRequest\x1a(.nidcpower_grpc.FetchMultipleLCRResponse\x12h\n\x11QueryInCompliance\x12(.nidcpower_grpc.QueryInComplianceRequest\x1a).nidcpower_grpc.QueryInComplianceResponse\x12\x65\n\x10QueryOutputState\x12\'.nidcpower_grpc.QueryOutputStateRequest\x1a(.nidcpower_grpc.QueryOutputStateResponse\x12\x8c\x01\n\x1dQueryLatchedOutputCutoffState\x12\x34.nidcpower_grpc.QueryLatchedOutputCutoffStateRequest\x1a\x35.nidcpower_grpc.QueryLatchedOutputCutoffStateResponse\x12\x8c\x01\n\x1d\x43learLatchedOutputCutoffState\x12\x34.nidcpower_grpc.ClearLatchedOutputCutoffStateRequest\x1a\x35.nidcpower_grpc.ClearLatchedOutputCutoffStateResponse\x12G\n\x06\x43ommit\x12\x1d.nidcpower_grpc.CommitRequest\x1a\x1e.nidcpower_grpc.CommitResponse\x12M\n\x08Initiate\x12\x1f.nidcpower_grpc.InitiateRequest\x1a .nidcpower_grpc.InitiateResponse\x12\x44\n\x05\x41\x62ort\x12\x1c.nidcpower_grpc.AbortRequest\x1a\x1d.nidcpower_grpc.AbortResponse\x12q\n\x14QueryMaxCurrentLimit\x12+.nidcpower_grpc.QueryMaxCurrentLimitRequest\x1a,.nidcpower_grpc.QueryMaxCurrentLimitResponse\x12q\n\x14QueryMaxVoltageLevel\x12+.nidcpower_grpc.QueryMaxVoltageLevelRequest\x1a,.nidcpower_grpc.QueryMaxVoltageLevelResponse\x12q\n\x14QueryMinCurrentLimit\x12+.nidcpower_grpc.QueryMinCurrentLimitRequest\x1a,.nidcpower_grpc.QueryMinCurrentLimitResponse\x12\x65\n\x10\x43\x61lSelfCalibrate\x12\'.nidcpower_grpc.CalSelfCalibrateRequest\x1a(.nidcpower_grpc.CalSelfCalibrateResponse\x12\x89\x01\n\x1cGetExtCalRecommendedInterval\x12\x33.nidcpower_grpc.GetExtCalRecommendedIntervalRequest\x1a\x34.nidcpower_grpc.GetExtCalRecommendedIntervalResponse\x12}\n\x18GetExtCalLastDateAndTime\x12/.nidcpower_grpc.GetExtCalLastDateAndTimeRequest\x1a\x30.nidcpower_grpc.GetExtCalLastDateAndTimeResponse\x12w\n\x16ReadCurrentTemperature\x12-.nidcpower_grpc.ReadCurrentTemperatureRequest\x1a..nidcpower_grpc.ReadCurrentTemperatureResponse\x12h\n\x11GetExtCalLastTemp\x12(.nidcpower_grpc.GetExtCalLastTempRequest\x1a).nidcpower_grpc.GetExtCalLastTempResponse\x12\x80\x01\n\x19GetSelfCalLastDateAndTime\x12\x30.nidcpower_grpc.GetSelfCalLastDateAndTimeRequest\x1a\x31.nidcpower_grpc.GetSelfCalLastDateAndTimeResponse\x12k\n\x12GetSelfCalLastTemp\x12).nidcpower_grpc.GetSelfCalLastTempRequest\x1a*.nidcpower_grpc.GetSelfCalLastTempResponse\x12\x98\x01\n!GetLCRCompensationLastDateAndTime\x12\x38.nidcpower_grpc.GetLCRCompensationLastDateAndTimeRequest\x1a\x39.nidcpower_grpc.GetLCRCompensationLastDateAndTimeResponse\x12\x95\x01\n ConfigureDigitalEdgeStartTrigger\x12\x37.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x38.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x98\x01\n!ConfigureSoftwareEdgeStartTrigger\x12\x38.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a\x39.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12n\n\x13\x44isableStartTrigger\x12*.nidcpower_grpc.DisableStartTriggerRequest\x1a+.nidcpower_grpc.DisableStartTriggerResponse\x12\xb3\x01\n*ConfigureDigitalEdgeSequenceAdvanceTrigger\x12\x41.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest\x1a\x42.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse\x12\xb6\x01\n+ConfigureSoftwareEdgeSequenceAdvanceTrigger\x12\x42.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest\x1a\x43.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse\x12\x8c\x01\n\x1d\x44isableSequenceAdvanceTrigger\x12\x34.nidcpower_grpc.DisableSequenceAdvanceTriggerRequest\x1a\x35.nidcpower_grpc.DisableSequenceAdvanceTriggerResponse\x12\x98\x01\n!ConfigureDigitalEdgeSourceTrigger\x12\x38.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerRequest\x1a\x39.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerResponse\x12\x9b\x01\n\"ConfigureSoftwareEdgeSourceTrigger\x12\x39.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerRequest\x1a:.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerResponse\x12q\n\x14\x44isableSourceTrigger\x12+.nidcpower_grpc.DisableSourceTriggerRequest\x1a,.nidcpower_grpc.DisableSourceTriggerResponse\x12\x9b\x01\n\"ConfigureDigitalEdgeMeasureTrigger\x12\x39.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerRequest\x1a:.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerResponse\x12\x9e\x01\n#ConfigureSoftwareEdgeMeasureTrigger\x12:.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerRequest\x1a;.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerResponse\x12\x95\x01\n ConfigureDigitalEdgePulseTrigger\x12\x37.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerRequest\x1a\x38.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerResponse\x12\x98\x01\n!ConfigureSoftwareEdgePulseTrigger\x12\x38.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerRequest\x1a\x39.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerResponse\x12n\n\x13\x44isablePulseTrigger\x12*.nidcpower_grpc.DisablePulseTriggerRequest\x1a+.nidcpower_grpc.DisablePulseTriggerResponse\x12Y\n\x0c\x45xportSignal\x12#.nidcpower_grpc.ExportSignalRequest\x1a$.nidcpower_grpc.ExportSignalResponse\x12z\n\x17SendSoftwareEdgeTrigger\x12..nidcpower_grpc.SendSoftwareEdgeTriggerRequest\x1a/.nidcpower_grpc.SendSoftwareEdgeTriggerResponse\x12Y\n\x0cWaitForEvent\x12#.nidcpower_grpc.WaitForEventRequest\x1a$.nidcpower_grpc.WaitForEventResponse\x12J\n\x07\x44isable\x12\x1e.nidcpower_grpc.DisableRequest\x1a\x1f.nidcpower_grpc.DisableResponse\x12\x44\n\x05Reset\x12\x1c.nidcpower_grpc.ResetRequest\x1a\x1d.nidcpower_grpc.ResetResponse\x12V\n\x0bResetDevice\x12\".nidcpower_grpc.ResetDeviceRequest\x1a#.nidcpower_grpc.ResetDeviceResponse\x12M\n\x08SelfTest\x12\x1f.nidcpower_grpc.SelfTestRequest\x1a .nidcpower_grpc.SelfTestResponse\x12\\\n\rRevisionQuery\x12$.nidcpower_grpc.RevisionQueryRequest\x1a%.nidcpower_grpc.RevisionQueryResponse\x12h\n\x11ResetWithDefaults\x12(.nidcpower_grpc.ResetWithDefaultsRequest\x1a).nidcpower_grpc.ResetWithDefaultsResponse\x12_\n\x0eGetChannelName\x12%.nidcpower_grpc.GetChannelNameRequest\x1a&.nidcpower_grpc.GetChannelNameResponse\x12}\n\x18GetChannelNameFromString\x12/.nidcpower_grpc.GetChannelNameFromStringRequest\x1a\x30.nidcpower_grpc.GetChannelNameFromStringResponse\x12t\n\x15GetNextCoercionRecord\x12,.nidcpower_grpc.GetNextCoercionRecordRequest\x1a-.nidcpower_grpc.GetNextCoercionRecordResponse\x12}\n\x18\x43learInterchangeWarnings\x12/.nidcpower_grpc.ClearInterchangeWarningsRequest\x1a\x30.nidcpower_grpc.ClearInterchangeWarningsResponse\x12t\n\x15ResetInterchangeCheck\x12,.nidcpower_grpc.ResetInterchangeCheckRequest\x1a-.nidcpower_grpc.ResetInterchangeCheckResponse\x12\x80\x01\n\x19GetNextInterchangeWarning\x12\x30.nidcpower_grpc.GetNextInterchangeWarningRequest\x1a\x31.nidcpower_grpc.GetNextInterchangeWarningResponse\x12M\n\x08GetError\x12\x1f.nidcpower_grpc.GetErrorRequest\x1a .nidcpower_grpc.GetErrorResponse\x12S\n\nClearError\x12!.nidcpower_grpc.ClearErrorRequest\x1a\".nidcpower_grpc.ClearErrorResponse\x12Y\n\x0c\x45rrorMessage\x12#.nidcpower_grpc.ErrorMessageRequest\x1a$.nidcpower_grpc.ErrorMessageResponse\x12n\n\x13SetAttributeViInt32\x12*.nidcpower_grpc.SetAttributeViInt32Request\x1a+.nidcpower_grpc.SetAttributeViInt32Response\x12n\n\x13SetAttributeViInt64\x12*.nidcpower_grpc.SetAttributeViInt64Request\x1a+.nidcpower_grpc.SetAttributeViInt64Response\x12q\n\x14SetAttributeViReal64\x12+.nidcpower_grpc.SetAttributeViReal64Request\x1a,.nidcpower_grpc.SetAttributeViReal64Response\x12q\n\x14SetAttributeViString\x12+.nidcpower_grpc.SetAttributeViStringRequest\x1a,.nidcpower_grpc.SetAttributeViStringResponse\x12t\n\x15SetAttributeViSession\x12,.nidcpower_grpc.SetAttributeViSessionRequest\x1a-.nidcpower_grpc.SetAttributeViSessionResponse\x12t\n\x15SetAttributeViBoolean\x12,.nidcpower_grpc.SetAttributeViBooleanRequest\x1a-.nidcpower_grpc.SetAttributeViBooleanResponse\x12n\n\x13GetAttributeViInt32\x12*.nidcpower_grpc.GetAttributeViInt32Request\x1a+.nidcpower_grpc.GetAttributeViInt32Response\x12n\n\x13GetAttributeViInt64\x12*.nidcpower_grpc.GetAttributeViInt64Request\x1a+.nidcpower_grpc.GetAttributeViInt64Response\x12q\n\x14GetAttributeViReal64\x12+.nidcpower_grpc.GetAttributeViReal64Request\x1a,.nidcpower_grpc.GetAttributeViReal64Response\x12q\n\x14GetAttributeViString\x12+.nidcpower_grpc.GetAttributeViStringRequest\x1a,.nidcpower_grpc.GetAttributeViStringResponse\x12t\n\x15GetAttributeViSession\x12,.nidcpower_grpc.GetAttributeViSessionRequest\x1a-.nidcpower_grpc.GetAttributeViSessionResponse\x12t\n\x15GetAttributeViBoolean\x12,.nidcpower_grpc.GetAttributeViBooleanRequest\x1a-.nidcpower_grpc.GetAttributeViBooleanResponse\x12\x95\x01\n ImportAttributeConfigurationFile\x12\x37.nidcpower_grpc.ImportAttributeConfigurationFileRequest\x1a\x38.nidcpower_grpc.ImportAttributeConfigurationFileResponse\x12\x95\x01\n ExportAttributeConfigurationFile\x12\x37.nidcpower_grpc.ExportAttributeConfigurationFileRequest\x1a\x38.nidcpower_grpc.ExportAttributeConfigurationFileResponse\x12\x9b\x01\n\"ImportAttributeConfigurationBuffer\x12\x39.nidcpower_grpc.ImportAttributeConfigurationBufferRequest\x1a:.nidcpower_grpc.ImportAttributeConfigurationBufferResponse\x12\x9b\x01\n\"ExportAttributeConfigurationBuffer\x12\x39.nidcpower_grpc.ExportAttributeConfigurationBufferRequest\x1a:.nidcpower_grpc.ExportAttributeConfigurationBufferResponse\x12\x83\x01\n\x1aPerformLCROpenCompensation\x12\x31.nidcpower_grpc.PerformLCROpenCompensationRequest\x1a\x32.nidcpower_grpc.PerformLCROpenCompensationResponse\x12\x86\x01\n\x1bPerformLCRShortCompensation\x12\x32.nidcpower_grpc.PerformLCRShortCompensationRequest\x1a\x33.nidcpower_grpc.PerformLCRShortCompensationResponse\x12\x83\x01\n\x1aPerformLCRLoadCompensation\x12\x31.nidcpower_grpc.PerformLCRLoadCompensationRequest\x1a\x32.nidcpower_grpc.PerformLCRLoadCompensationResponse\x12}\n\x18\x43onfigureLCRCompensation\x12/.nidcpower_grpc.ConfigureLCRCompensationRequest\x1a\x30.nidcpower_grpc.ConfigureLCRCompensationResponse\x12\xa4\x01\n%PerformLCROpenCustomCableCompensation\x12<.nidcpower_grpc.PerformLCROpenCustomCableCompensationRequest\x1a=.nidcpower_grpc.PerformLCROpenCustomCableCompensationResponse\x12\xa7\x01\n&PerformLCRShortCustomCableCompensation\x12=.nidcpower_grpc.PerformLCRShortCustomCableCompensationRequest\x1a>.nidcpower_grpc.PerformLCRShortCustomCableCompensationResponse\x12w\n\x16GetLCRCompensationData\x12-.nidcpower_grpc.GetLCRCompensationDataRequest\x1a..nidcpower_grpc.GetLCRCompensationDataResponse\x12\x98\x01\n!InitializeWithIndependentChannels\x12\x38.nidcpower_grpc.InitializeWithIndependentChannelsRequest\x1a\x39.nidcpower_grpc.InitializeWithIndependentChannelsResponse\x12\x92\x01\n\x1f\x43onfigureSourceModeWithChannels\x12\x36.nidcpower_grpc.ConfigureSourceModeWithChannelsRequest\x1a\x37.nidcpower_grpc.ConfigureSourceModeWithChannelsResponse\x12\x9b\x01\n\"CreateAdvancedSequenceWithChannels\x12\x39.nidcpower_grpc.CreateAdvancedSequenceWithChannelsRequest\x1a:.nidcpower_grpc.CreateAdvancedSequenceWithChannelsResponse\x12\xa7\x01\n&CreateAdvancedSequenceStepWithChannels\x12=.nidcpower_grpc.CreateAdvancedSequenceStepWithChannelsRequest\x1a>.nidcpower_grpc.CreateAdvancedSequenceStepWithChannelsResponse\x12\xb9\x01\n,CreateAdvancedSequenceCommitStepWithChannels\x12\x43.nidcpower_grpc.CreateAdvancedSequenceCommitStepWithChannelsRequest\x1a\x44.nidcpower_grpc.CreateAdvancedSequenceCommitStepWithChannelsResponse\x12\x9b\x01\n\"DeleteAdvancedSequenceWithChannels\x12\x39.nidcpower_grpc.DeleteAdvancedSequenceWithChannelsRequest\x1a:.nidcpower_grpc.DeleteAdvancedSequenceWithChannelsResponse\x12k\n\x12\x43ommitWithChannels\x12).nidcpower_grpc.CommitWithChannelsRequest\x1a*.nidcpower_grpc.CommitWithChannelsResponse\x12q\n\x14InitiateWithChannels\x12+.nidcpower_grpc.InitiateWithChannelsRequest\x1a,.nidcpower_grpc.InitiateWithChannelsResponse\x12h\n\x11\x41\x62ortWithChannels\x12(.nidcpower_grpc.AbortWithChannelsRequest\x1a).nidcpower_grpc.AbortWithChannelsResponse\x12\xb9\x01\n,ConfigureDigitalEdgeStartTriggerWithChannels\x12\x43.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerWithChannelsRequest\x1a\x44.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerWithChannelsResponse\x12\xbc\x01\n-ConfigureSoftwareEdgeStartTriggerWithChannels\x12\x44.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest\x1a\x45.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse\x12\x92\x01\n\x1f\x44isableStartTriggerWithChannels\x12\x36.nidcpower_grpc.DisableStartTriggerWithChannelsRequest\x1a\x37.nidcpower_grpc.DisableStartTriggerWithChannelsResponse\x12\xd7\x01\n6ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels\x12M.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest\x1aN.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\xda\x01\n7ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels\x12N.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest\x1aO.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\xb0\x01\n)DisableSequenceAdvanceTriggerWithChannels\x12@.nidcpower_grpc.DisableSequenceAdvanceTriggerWithChannelsRequest\x1a\x41.nidcpower_grpc.DisableSequenceAdvanceTriggerWithChannelsResponse\x12\xbc\x01\n-ConfigureDigitalEdgeSourceTriggerWithChannels\x12\x44.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest\x1a\x45.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse\x12\xbf\x01\n.ConfigureSoftwareEdgeSourceTriggerWithChannels\x12\x45.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest\x1a\x46.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse\x12\x95\x01\n DisableSourceTriggerWithChannels\x12\x37.nidcpower_grpc.DisableSourceTriggerWithChannelsRequest\x1a\x38.nidcpower_grpc.DisableSourceTriggerWithChannelsResponse\x12\xbf\x01\n.ConfigureDigitalEdgeMeasureTriggerWithChannels\x12\x45.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest\x1a\x46.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse\x12\xc2\x01\n/ConfigureSoftwareEdgeMeasureTriggerWithChannels\x12\x46.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest\x1aG.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse\x12\xb9\x01\n,ConfigureDigitalEdgePulseTriggerWithChannels\x12\x43.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerWithChannelsRequest\x1a\x44.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerWithChannelsResponse\x12\xbc\x01\n-ConfigureSoftwareEdgePulseTriggerWithChannels\x12\x44.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest\x1a\x45.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse\x12\x92\x01\n\x1f\x44isablePulseTriggerWithChannels\x12\x36.nidcpower_grpc.DisablePulseTriggerWithChannelsRequest\x1a\x37.nidcpower_grpc.DisablePulseTriggerWithChannelsResponse\x12\xc2\x01\n/ConfigureDigitalEdgeShutdownTriggerWithChannels\x12\x46.nidcpower_grpc.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest\x1aG.nidcpower_grpc.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse\x12\xc5\x01\n0ConfigureSoftwareEdgeShutdownTriggerWithChannels\x12G.nidcpower_grpc.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest\x1aH.nidcpower_grpc.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse\x12\x9b\x01\n\"DisableShutdownTriggerWithChannels\x12\x39.nidcpower_grpc.DisableShutdownTriggerWithChannelsRequest\x1a:.nidcpower_grpc.DisableShutdownTriggerWithChannelsResponse\x12}\n\x18\x45xportSignalWithChannels\x12/.nidcpower_grpc.ExportSignalWithChannelsRequest\x1a\x30.nidcpower_grpc.ExportSignalWithChannelsResponse\x12\x9e\x01\n#SendSoftwareEdgeTriggerWithChannels\x12:.nidcpower_grpc.SendSoftwareEdgeTriggerWithChannelsRequest\x1a;.nidcpower_grpc.SendSoftwareEdgeTriggerWithChannelsResponse\x12}\n\x18WaitForEventWithChannels\x12/.nidcpower_grpc.WaitForEventWithChannelsRequest\x1a\x30.nidcpower_grpc.WaitForEventWithChannelsResponse\x12h\n\x11ResetWithChannels\x12(.nidcpower_grpc.ResetWithChannelsRequest\x1a).nidcpower_grpc.ResetWithChannelsResponse\x12z\n\x17InvalidateAllAttributes\x12..nidcpower_grpc.InvalidateAllAttributesRequest\x1a/.nidcpower_grpc.InvalidateAllAttributesResponse\x12Y\n\x0c\x43onfigureOvp\x12#.nidcpower_grpc.ConfigureOvpRequest\x1a$.nidcpower_grpc.ConfigureOvpResponse\x12S\n\nErrorQuery\x12!.nidcpower_grpc.ErrorQueryRequest\x1a\".nidcpower_grpc.ErrorQueryResponse\x12\x98\x01\n!GetLCRCustomCableCompensationData\x12\x38.nidcpower_grpc.GetLCRCustomCableCompensationDataRequest\x1a\x39.nidcpower_grpc.GetLCRCustomCableCompensationDataResponse\x12\x9e\x01\n#ConfigureLCRCustomCableCompensation\x12:.nidcpower_grpc.ConfigureLCRCustomCableCompensationRequest\x1a;.nidcpower_grpc.ConfigureLCRCustomCableCompensationResponseBE\n\x13\x63om.ni.grpc.dcpowerB\tNiDCPowerP\x01\xaa\x02 NationalInstruments.Grpc.DCPowerb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidcpower_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\023com.ni.grpc.dcpowerB\tNiDCPowerP\001\252\002 NationalInstruments.Grpc.DCPower' - _NIDCPOWERINT32ATTRIBUTEVALUES._options = None - _NIDCPOWERINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._options = None - _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE.fields_by_name['error_message']._options = None - _INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NIDCPOWERATTRIBUTE']._serialized_start=28538 - _globals['_NIDCPOWERATTRIBUTE']._serialized_end=41532 - _globals['_CURRENTLIMITBEHAVIOR']._serialized_start=41535 - _globals['_CURRENTLIMITBEHAVIOR']._serialized_end=41671 - _globals['_OUTPUTSTATES']._serialized_start=41674 - _globals['_OUTPUTSTATES']._serialized_end=42011 - _globals['_MEASUREMENTTYPES']._serialized_start=42013 - _globals['_MEASUREMENTTYPES']._serialized_end=42137 - _globals['_OUTPUTFUNCTION']._serialized_start=42140 - _globals['_OUTPUTFUNCTION']._serialized_end=42490 - _globals['_SENSE']._serialized_start=42492 - _globals['_SENSE']._serialized_end=42587 - _globals['_DIGITALEDGE']._serialized_start=42589 - _globals['_DIGITALEDGE']._serialized_end=42713 - _globals['_SOURCEMODE']._serialized_start=42715 - _globals['_SOURCEMODE']._serialized_end=42842 - _globals['_AUTOZERO']._serialized_start=42844 - _globals['_AUTOZERO']._serialized_end=42954 - _globals['_POWERLINEFREQUENCIES']._serialized_start=42957 - _globals['_POWERLINEFREQUENCIES']._serialized_end=43121 - _globals['_APERTURETIMEUNITS']._serialized_start=43124 - _globals['_APERTURETIMEUNITS']._serialized_end=43286 - _globals['_EXPORTSIGNAL']._serialized_start=43289 - _globals['_EXPORTSIGNAL']._serialized_end=44000 - _globals['_OUTPUTCUTOFFREASON']._serialized_start=44003 - _globals['_OUTPUTCUTOFFREASON']._serialized_end=45284 - _globals['_LCRCOMPENSATIONTYPE']._serialized_start=45287 - _globals['_LCRCOMPENSATIONTYPE']._serialized_end=45675 - _globals['_EVENT']._serialized_start=45678 - _globals['_EVENT']._serialized_end=45985 - _globals['_SENDSOFTWAREEDGETRIGGERTYPE']._serialized_start=45988 - _globals['_SENDSOFTWAREEDGETRIGGERTYPE']._serialized_end=46431 - _globals['_NIDCPOWERINT32ATTRIBUTEVALUES']._serialized_start=46434 - _globals['_NIDCPOWERINT32ATTRIBUTEVALUES']._serialized_end=52720 - _globals['_NIDCPOWERREAL64ATTRIBUTEVALUES']._serialized_start=52723 - _globals['_NIDCPOWERREAL64ATTRIBUTEVALUES']._serialized_end=52905 - _globals['_NILCRMEASUREMENT']._serialized_start=67 - _globals['_NILCRMEASUREMENT']._serialized_end=597 - _globals['_NILCRLOADCOMPENSATIONSPOT']._serialized_start=600 - _globals['_NILCRLOADCOMPENSATIONSPOT']._serialized_end=730 - _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_start=733 - _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_end=944 - _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_start=947 - _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_end=1091 - _globals['_CLOSEREQUEST']._serialized_start=1093 - _globals['_CLOSEREQUEST']._serialized_end=1143 - _globals['_CLOSERESPONSE']._serialized_start=1145 - _globals['_CLOSERESPONSE']._serialized_end=1176 - _globals['_CONFIGURESOURCEMODEREQUEST']._serialized_start=1179 - _globals['_CONFIGURESOURCEMODEREQUEST']._serialized_end=1341 - _globals['_CONFIGURESOURCEMODERESPONSE']._serialized_start=1343 - _globals['_CONFIGURESOURCEMODERESPONSE']._serialized_end=1388 - _globals['_CONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_start=1391 - _globals['_CONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_end=1574 - _globals['_CONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_start=1576 - _globals['_CONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_end=1625 - _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_start=1627 - _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_end=1733 - _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_start=1735 - _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_end=1783 - _globals['_SETSEQUENCEREQUEST']._serialized_start=1785 - _globals['_SETSEQUENCEREQUEST']._serialized_end=1902 - _globals['_SETSEQUENCERESPONSE']._serialized_start=1904 - _globals['_SETSEQUENCERESPONSE']._serialized_end=1941 - _globals['_CONFIGUREVOLTAGELEVELREQUEST']._serialized_start=1943 - _globals['_CONFIGUREVOLTAGELEVELREQUEST']._serialized_end=2046 - _globals['_CONFIGUREVOLTAGELEVELRESPONSE']._serialized_start=2048 - _globals['_CONFIGUREVOLTAGELEVELRESPONSE']._serialized_end=2095 - _globals['_CONFIGURECURRENTLIMITREQUEST']._serialized_start=2098 - _globals['_CONFIGURECURRENTLIMITREQUEST']._serialized_end=2300 - _globals['_CONFIGURECURRENTLIMITRESPONSE']._serialized_start=2302 - _globals['_CONFIGURECURRENTLIMITRESPONSE']._serialized_end=2349 - _globals['_CONFIGUREVOLTAGELEVELRANGEREQUEST']._serialized_start=2351 - _globals['_CONFIGUREVOLTAGELEVELRANGEREQUEST']._serialized_end=2459 - _globals['_CONFIGUREVOLTAGELEVELRANGERESPONSE']._serialized_start=2461 - _globals['_CONFIGUREVOLTAGELEVELRANGERESPONSE']._serialized_end=2513 - _globals['_CONFIGURECURRENTLIMITRANGEREQUEST']._serialized_start=2515 - _globals['_CONFIGURECURRENTLIMITRANGEREQUEST']._serialized_end=2623 - _globals['_CONFIGURECURRENTLIMITRANGERESPONSE']._serialized_start=2625 - _globals['_CONFIGURECURRENTLIMITRANGERESPONSE']._serialized_end=2677 - _globals['_CONFIGUREOUTPUTRESISTANCEREQUEST']._serialized_start=2679 - _globals['_CONFIGUREOUTPUTRESISTANCEREQUEST']._serialized_end=2791 - _globals['_CONFIGUREOUTPUTRESISTANCERESPONSE']._serialized_start=2793 - _globals['_CONFIGUREOUTPUTRESISTANCERESPONSE']._serialized_end=2844 - _globals['_CONFIGURECURRENTLEVELREQUEST']._serialized_start=2846 - _globals['_CONFIGURECURRENTLEVELREQUEST']._serialized_end=2949 - _globals['_CONFIGURECURRENTLEVELRESPONSE']._serialized_start=2951 - _globals['_CONFIGURECURRENTLEVELRESPONSE']._serialized_end=2998 - _globals['_CONFIGURECURRENTLEVELRANGEREQUEST']._serialized_start=3000 - _globals['_CONFIGURECURRENTLEVELRANGEREQUEST']._serialized_end=3108 - _globals['_CONFIGURECURRENTLEVELRANGERESPONSE']._serialized_start=3110 - _globals['_CONFIGURECURRENTLEVELRANGERESPONSE']._serialized_end=3162 - _globals['_CONFIGUREVOLTAGELIMITREQUEST']._serialized_start=3164 - _globals['_CONFIGUREVOLTAGELIMITREQUEST']._serialized_end=3267 - _globals['_CONFIGUREVOLTAGELIMITRESPONSE']._serialized_start=3269 - _globals['_CONFIGUREVOLTAGELIMITRESPONSE']._serialized_end=3316 - _globals['_CONFIGUREVOLTAGELIMITRANGEREQUEST']._serialized_start=3318 - _globals['_CONFIGUREVOLTAGELIMITRANGEREQUEST']._serialized_end=3426 - _globals['_CONFIGUREVOLTAGELIMITRANGERESPONSE']._serialized_start=3428 - _globals['_CONFIGUREVOLTAGELIMITRANGERESPONSE']._serialized_end=3480 - _globals['_CONFIGUREPULSEVOLTAGELEVELREQUEST']._serialized_start=3482 - _globals['_CONFIGUREPULSEVOLTAGELEVELREQUEST']._serialized_end=3590 - _globals['_CONFIGUREPULSEVOLTAGELEVELRESPONSE']._serialized_start=3592 - _globals['_CONFIGUREPULSEVOLTAGELEVELRESPONSE']._serialized_end=3644 - _globals['_CONFIGUREPULSECURRENTLIMITREQUEST']._serialized_start=3646 - _globals['_CONFIGUREPULSECURRENTLIMITREQUEST']._serialized_end=3754 - _globals['_CONFIGUREPULSECURRENTLIMITRESPONSE']._serialized_start=3756 - _globals['_CONFIGUREPULSECURRENTLIMITRESPONSE']._serialized_end=3808 - _globals['_CONFIGUREPULSEBIASVOLTAGELEVELREQUEST']._serialized_start=3810 - _globals['_CONFIGUREPULSEBIASVOLTAGELEVELREQUEST']._serialized_end=3922 - _globals['_CONFIGUREPULSEBIASVOLTAGELEVELRESPONSE']._serialized_start=3924 - _globals['_CONFIGUREPULSEBIASVOLTAGELEVELRESPONSE']._serialized_end=3980 - _globals['_CONFIGUREPULSEBIASCURRENTLIMITREQUEST']._serialized_start=3982 - _globals['_CONFIGUREPULSEBIASCURRENTLIMITREQUEST']._serialized_end=4094 - _globals['_CONFIGUREPULSEBIASCURRENTLIMITRESPONSE']._serialized_start=4096 - _globals['_CONFIGUREPULSEBIASCURRENTLIMITRESPONSE']._serialized_end=4152 - _globals['_CONFIGUREPULSEVOLTAGELEVELRANGEREQUEST']._serialized_start=4154 - _globals['_CONFIGUREPULSEVOLTAGELEVELRANGEREQUEST']._serialized_end=4267 - _globals['_CONFIGUREPULSEVOLTAGELEVELRANGERESPONSE']._serialized_start=4269 - _globals['_CONFIGUREPULSEVOLTAGELEVELRANGERESPONSE']._serialized_end=4326 - _globals['_CONFIGUREPULSECURRENTLIMITRANGEREQUEST']._serialized_start=4328 - _globals['_CONFIGUREPULSECURRENTLIMITRANGEREQUEST']._serialized_end=4441 - _globals['_CONFIGUREPULSECURRENTLIMITRANGERESPONSE']._serialized_start=4443 - _globals['_CONFIGUREPULSECURRENTLIMITRANGERESPONSE']._serialized_end=4500 - _globals['_CONFIGUREPULSECURRENTLEVELREQUEST']._serialized_start=4502 - _globals['_CONFIGUREPULSECURRENTLEVELREQUEST']._serialized_end=4610 - _globals['_CONFIGUREPULSECURRENTLEVELRESPONSE']._serialized_start=4612 - _globals['_CONFIGUREPULSECURRENTLEVELRESPONSE']._serialized_end=4664 - _globals['_CONFIGUREPULSEVOLTAGELIMITREQUEST']._serialized_start=4666 - _globals['_CONFIGUREPULSEVOLTAGELIMITREQUEST']._serialized_end=4774 - _globals['_CONFIGUREPULSEVOLTAGELIMITRESPONSE']._serialized_start=4776 - _globals['_CONFIGUREPULSEVOLTAGELIMITRESPONSE']._serialized_end=4828 - _globals['_CONFIGUREPULSEBIASCURRENTLEVELREQUEST']._serialized_start=4830 - _globals['_CONFIGUREPULSEBIASCURRENTLEVELREQUEST']._serialized_end=4942 - _globals['_CONFIGUREPULSEBIASCURRENTLEVELRESPONSE']._serialized_start=4944 - _globals['_CONFIGUREPULSEBIASCURRENTLEVELRESPONSE']._serialized_end=5000 - _globals['_CONFIGUREPULSEBIASVOLTAGELIMITREQUEST']._serialized_start=5002 - _globals['_CONFIGUREPULSEBIASVOLTAGELIMITREQUEST']._serialized_end=5114 - _globals['_CONFIGUREPULSEBIASVOLTAGELIMITRESPONSE']._serialized_start=5116 - _globals['_CONFIGUREPULSEBIASVOLTAGELIMITRESPONSE']._serialized_end=5172 - _globals['_CONFIGUREPULSECURRENTLEVELRANGEREQUEST']._serialized_start=5174 - _globals['_CONFIGUREPULSECURRENTLEVELRANGEREQUEST']._serialized_end=5287 - _globals['_CONFIGUREPULSECURRENTLEVELRANGERESPONSE']._serialized_start=5289 - _globals['_CONFIGUREPULSECURRENTLEVELRANGERESPONSE']._serialized_end=5346 - _globals['_CONFIGUREPULSEVOLTAGELIMITRANGEREQUEST']._serialized_start=5348 - _globals['_CONFIGUREPULSEVOLTAGELIMITRANGEREQUEST']._serialized_end=5461 - _globals['_CONFIGUREPULSEVOLTAGELIMITRANGERESPONSE']._serialized_start=5463 - _globals['_CONFIGUREPULSEVOLTAGELIMITRANGERESPONSE']._serialized_end=5520 - _globals['_CREATEADVANCEDSEQUENCEREQUEST']._serialized_start=5523 - _globals['_CREATEADVANCEDSEQUENCEREQUEST']._serialized_end=5668 - _globals['_CREATEADVANCEDSEQUENCERESPONSE']._serialized_start=5670 - _globals['_CREATEADVANCEDSEQUENCERESPONSE']._serialized_end=5718 - _globals['_CREATEADVANCEDSEQUENCESTEPREQUEST']._serialized_start=5720 - _globals['_CREATEADVANCEDSEQUENCESTEPREQUEST']._serialized_end=5819 - _globals['_CREATEADVANCEDSEQUENCESTEPRESPONSE']._serialized_start=5821 - _globals['_CREATEADVANCEDSEQUENCESTEPRESPONSE']._serialized_end=5873 - _globals['_DELETEADVANCEDSEQUENCEREQUEST']._serialized_start=5875 - _globals['_DELETEADVANCEDSEQUENCEREQUEST']._serialized_end=5965 - _globals['_DELETEADVANCEDSEQUENCERESPONSE']._serialized_start=5967 - _globals['_DELETEADVANCEDSEQUENCERESPONSE']._serialized_end=6015 - _globals['_CONFIGUREAPERTURETIMEREQUEST']._serialized_start=6018 - _globals['_CONFIGUREAPERTURETIMEREQUEST']._serialized_end=6216 - _globals['_CONFIGUREAPERTURETIMERESPONSE']._serialized_start=6218 - _globals['_CONFIGUREAPERTURETIMERESPONSE']._serialized_end=6265 - _globals['_CONFIGUREAUTOZEROREQUEST']._serialized_start=6268 - _globals['_CONFIGUREAUTOZEROREQUEST']._serialized_end=6442 - _globals['_CONFIGUREAUTOZERORESPONSE']._serialized_start=6444 - _globals['_CONFIGUREAUTOZERORESPONSE']._serialized_end=6487 - _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_start=6490 - _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_end=6694 - _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_start=6696 - _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_end=6749 - _globals['_CONFIGURESENSEREQUEST']._serialized_start=6752 - _globals['_CONFIGURESENSEREQUEST']._serialized_end=6908 - _globals['_CONFIGURESENSERESPONSE']._serialized_start=6910 - _globals['_CONFIGURESENSERESPONSE']._serialized_end=6950 - _globals['_MEASUREREQUEST']._serialized_start=6953 - _globals['_MEASUREREQUEST']._serialized_end=7146 - _globals['_MEASURERESPONSE']._serialized_start=7148 - _globals['_MEASURERESPONSE']._serialized_end=7202 - _globals['_MEASUREMULTIPLEREQUEST']._serialized_start=7204 - _globals['_MEASUREMULTIPLEREQUEST']._serialized_end=7286 - _globals['_MEASUREMULTIPLERESPONSE']._serialized_start=7288 - _globals['_MEASUREMULTIPLERESPONSE']._serialized_end=7389 - _globals['_FETCHMULTIPLEREQUEST']._serialized_start=7391 - _globals['_FETCHMULTIPLEREQUEST']._serialized_end=7503 - _globals['_FETCHMULTIPLERESPONSE']._serialized_start=7506 - _globals['_FETCHMULTIPLERESPONSE']._serialized_end=7650 - _globals['_MEASUREMULTIPLELCRREQUEST']._serialized_start=7652 - _globals['_MEASUREMULTIPLELCRREQUEST']._serialized_end=7737 - _globals['_MEASUREMULTIPLELCRRESPONSE']._serialized_start=7739 - _globals['_MEASUREMULTIPLELCRRESPONSE']._serialized_end=7839 - _globals['_FETCHMULTIPLELCRREQUEST']._serialized_start=7841 - _globals['_FETCHMULTIPLELCRREQUEST']._serialized_end=7956 - _globals['_FETCHMULTIPLELCRRESPONSE']._serialized_start=7958 - _globals['_FETCHMULTIPLELCRRESPONSE']._serialized_end=8078 - _globals['_QUERYINCOMPLIANCEREQUEST']._serialized_start=8080 - _globals['_QUERYINCOMPLIANCEREQUEST']._serialized_end=8164 - _globals['_QUERYINCOMPLIANCERESPONSE']._serialized_start=8166 - _globals['_QUERYINCOMPLIANCERESPONSE']._serialized_end=8232 - _globals['_QUERYOUTPUTSTATEREQUEST']._serialized_start=8235 - _globals['_QUERYOUTPUTSTATEREQUEST']._serialized_end=8421 - _globals['_QUERYOUTPUTSTATERESPONSE']._serialized_start=8423 - _globals['_QUERYOUTPUTSTATERESPONSE']._serialized_end=8483 - _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_start=8486 - _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_end=8715 - _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_start=8717 - _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_end=8801 - _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_start=8804 - _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_end=9033 - _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_start=9035 - _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_end=9090 - _globals['_COMMITREQUEST']._serialized_start=9092 - _globals['_COMMITREQUEST']._serialized_end=9143 - _globals['_COMMITRESPONSE']._serialized_start=9145 - _globals['_COMMITRESPONSE']._serialized_end=9177 - _globals['_INITIATEREQUEST']._serialized_start=9179 - _globals['_INITIATEREQUEST']._serialized_end=9232 - _globals['_INITIATERESPONSE']._serialized_start=9234 - _globals['_INITIATERESPONSE']._serialized_end=9268 - _globals['_ABORTREQUEST']._serialized_start=9270 - _globals['_ABORTREQUEST']._serialized_end=9320 - _globals['_ABORTRESPONSE']._serialized_start=9322 - _globals['_ABORTRESPONSE']._serialized_end=9353 - _globals['_QUERYMAXCURRENTLIMITREQUEST']._serialized_start=9355 - _globals['_QUERYMAXCURRENTLIMITREQUEST']._serialized_end=9465 - _globals['_QUERYMAXCURRENTLIMITRESPONSE']._serialized_start=9467 - _globals['_QUERYMAXCURRENTLIMITRESPONSE']._serialized_end=9540 - _globals['_QUERYMAXVOLTAGELEVELREQUEST']._serialized_start=9542 - _globals['_QUERYMAXVOLTAGELEVELREQUEST']._serialized_end=9652 - _globals['_QUERYMAXVOLTAGELEVELRESPONSE']._serialized_start=9654 - _globals['_QUERYMAXVOLTAGELEVELRESPONSE']._serialized_end=9727 - _globals['_QUERYMINCURRENTLIMITREQUEST']._serialized_start=9729 - _globals['_QUERYMINCURRENTLIMITREQUEST']._serialized_end=9839 - _globals['_QUERYMINCURRENTLIMITRESPONSE']._serialized_start=9841 - _globals['_QUERYMINCURRENTLIMITRESPONSE']._serialized_end=9914 - _globals['_CALSELFCALIBRATEREQUEST']._serialized_start=9916 - _globals['_CALSELFCALIBRATEREQUEST']._serialized_end=9999 - _globals['_CALSELFCALIBRATERESPONSE']._serialized_start=10001 - _globals['_CALSELFCALIBRATERESPONSE']._serialized_end=10043 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=10045 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=10118 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=10120 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=10190 - _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_start=10192 - _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_end=10261 - _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_start=10263 - _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_end=10385 - _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_start=10387 - _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_end=10454 - _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_start=10456 - _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_end=10525 - _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_start=10527 - _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_end=10589 - _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_start=10591 - _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_end=10655 - _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_start=10657 - _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_end=10727 - _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_start=10729 - _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_end=10852 - _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_start=10854 - _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_end=10917 - _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_start=10919 - _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_end=10984 - _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMEREQUEST']._serialized_start=10987 - _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMEREQUEST']._serialized_end=11212 - _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMERESPONSE']._serialized_start=11215 - _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMERESPONSE']._serialized_end=11346 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=11349 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=11528 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=11530 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=11588 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=11590 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=11668 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=11670 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=11729 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=11731 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=11795 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=11797 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=11842 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_start=11845 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_end=12034 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_start=12036 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_end=12104 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_start=12106 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_end=12194 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_start=12196 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_end=12265 - _globals['_DISABLESEQUENCEADVANCETRIGGERREQUEST']._serialized_start=12267 - _globals['_DISABLESEQUENCEADVANCETRIGGERREQUEST']._serialized_end=12341 - _globals['_DISABLESEQUENCEADVANCETRIGGERRESPONSE']._serialized_start=12343 - _globals['_DISABLESEQUENCEADVANCETRIGGERRESPONSE']._serialized_end=12398 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERREQUEST']._serialized_start=12401 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERREQUEST']._serialized_end=12581 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERRESPONSE']._serialized_start=12583 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERRESPONSE']._serialized_end=12642 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERREQUEST']._serialized_start=12644 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERREQUEST']._serialized_end=12723 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERRESPONSE']._serialized_start=12725 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERRESPONSE']._serialized_end=12785 - _globals['_DISABLESOURCETRIGGERREQUEST']._serialized_start=12787 - _globals['_DISABLESOURCETRIGGERREQUEST']._serialized_end=12852 - _globals['_DISABLESOURCETRIGGERRESPONSE']._serialized_start=12854 - _globals['_DISABLESOURCETRIGGERRESPONSE']._serialized_end=12900 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERREQUEST']._serialized_start=12903 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERREQUEST']._serialized_end=13084 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERRESPONSE']._serialized_start=13086 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERRESPONSE']._serialized_end=13146 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERREQUEST']._serialized_start=13148 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERREQUEST']._serialized_end=13228 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERRESPONSE']._serialized_start=13230 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERRESPONSE']._serialized_end=13291 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERREQUEST']._serialized_start=13294 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERREQUEST']._serialized_end=13473 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERRESPONSE']._serialized_start=13475 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERRESPONSE']._serialized_end=13533 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERREQUEST']._serialized_start=13535 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERREQUEST']._serialized_end=13613 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERRESPONSE']._serialized_start=13615 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERRESPONSE']._serialized_end=13674 - _globals['_DISABLEPULSETRIGGERREQUEST']._serialized_start=13676 - _globals['_DISABLEPULSETRIGGERREQUEST']._serialized_end=13740 - _globals['_DISABLEPULSETRIGGERRESPONSE']._serialized_start=13742 - _globals['_DISABLEPULSETRIGGERRESPONSE']._serialized_end=13787 - _globals['_EXPORTSIGNALREQUEST']._serialized_start=13790 - _globals['_EXPORTSIGNALREQUEST']._serialized_end=13984 - _globals['_EXPORTSIGNALRESPONSE']._serialized_start=13986 - _globals['_EXPORTSIGNALRESPONSE']._serialized_end=14024 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=14027 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=14198 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=14200 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=14249 - _globals['_WAITFOREVENTREQUEST']._serialized_start=14252 - _globals['_WAITFOREVENTREQUEST']._serialized_end=14410 - _globals['_WAITFOREVENTRESPONSE']._serialized_start=14412 - _globals['_WAITFOREVENTRESPONSE']._serialized_end=14450 - _globals['_DISABLEREQUEST']._serialized_start=14452 - _globals['_DISABLEREQUEST']._serialized_end=14504 - _globals['_DISABLERESPONSE']._serialized_start=14506 - _globals['_DISABLERESPONSE']._serialized_end=14539 - _globals['_RESETREQUEST']._serialized_start=14541 - _globals['_RESETREQUEST']._serialized_end=14591 - _globals['_RESETRESPONSE']._serialized_start=14593 - _globals['_RESETRESPONSE']._serialized_end=14624 - _globals['_RESETDEVICEREQUEST']._serialized_start=14626 - _globals['_RESETDEVICEREQUEST']._serialized_end=14682 - _globals['_RESETDEVICERESPONSE']._serialized_start=14684 - _globals['_RESETDEVICERESPONSE']._serialized_end=14721 - _globals['_SELFTESTREQUEST']._serialized_start=14723 - _globals['_SELFTESTREQUEST']._serialized_end=14776 - _globals['_SELFTESTRESPONSE']._serialized_start=14778 - _globals['_SELFTESTRESPONSE']._serialized_end=14865 - _globals['_REVISIONQUERYREQUEST']._serialized_start=14867 - _globals['_REVISIONQUERYREQUEST']._serialized_end=14925 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=14927 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=15029 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=15031 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=15093 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=15095 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=15138 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=15140 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=15214 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=15216 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=15278 - _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_start=15280 - _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_end=15364 - _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_start=15366 - _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_end=15438 - _globals['_GETNEXTCOERCIONRECORDREQUEST']._serialized_start=15440 - _globals['_GETNEXTCOERCIONRECORDREQUEST']._serialized_end=15506 - _globals['_GETNEXTCOERCIONRECORDRESPONSE']._serialized_start=15508 - _globals['_GETNEXTCOERCIONRECORDRESPONSE']._serialized_end=15580 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=15582 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=15651 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=15653 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=15703 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=15705 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=15771 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=15773 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=15820 - _globals['_GETNEXTINTERCHANGEWARNINGREQUEST']._serialized_start=15822 - _globals['_GETNEXTINTERCHANGEWARNINGREQUEST']._serialized_end=15892 - _globals['_GETNEXTINTERCHANGEWARNINGRESPONSE']._serialized_start=15894 - _globals['_GETNEXTINTERCHANGEWARNINGRESPONSE']._serialized_end=15974 - _globals['_GETERRORREQUEST']._serialized_start=15976 - _globals['_GETERRORREQUEST']._serialized_end=16029 - _globals['_GETERRORRESPONSE']._serialized_start=16031 - _globals['_GETERRORRESPONSE']._serialized_end=16100 - _globals['_CLEARERRORREQUEST']._serialized_start=16102 - _globals['_CLEARERRORREQUEST']._serialized_end=16157 - _globals['_CLEARERRORRESPONSE']._serialized_start=16159 - _globals['_CLEARERRORRESPONSE']._serialized_end=16195 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=16197 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=16274 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=16276 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=16337 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=16340 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=16613 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=16615 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=16660 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=16663 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=16836 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=16838 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=16883 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=16886 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=17161 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=17163 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=17209 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=17212 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=17386 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=17388 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=17434 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=17437 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=17632 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=17634 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=17681 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=17684 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=17855 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=17857 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=17904 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=17907 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=18051 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=18053 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=18123 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=18126 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=18270 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=18272 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=18342 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=18345 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=18490 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=18492 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=18563 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=18566 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=18711 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=18713 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=18784 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=18787 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=18933 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=18935 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=19031 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19034 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19180 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19182 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19254 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19256 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19352 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19354 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19412 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19414 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19510 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19512 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19570 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19572 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19674 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19676 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19736 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19738 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19817 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19819 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19902 - _globals['_PERFORMLCROPENCOMPENSATIONREQUEST']._serialized_start=19904 - _globals['_PERFORMLCROPENCOMPENSATIONREQUEST']._serialized_end=20029 - _globals['_PERFORMLCROPENCOMPENSATIONRESPONSE']._serialized_start=20031 - _globals['_PERFORMLCROPENCOMPENSATIONRESPONSE']._serialized_end=20083 - _globals['_PERFORMLCRSHORTCOMPENSATIONREQUEST']._serialized_start=20085 - _globals['_PERFORMLCRSHORTCOMPENSATIONREQUEST']._serialized_end=20211 - _globals['_PERFORMLCRSHORTCOMPENSATIONRESPONSE']._serialized_start=20213 - _globals['_PERFORMLCRSHORTCOMPENSATIONRESPONSE']._serialized_end=20266 - _globals['_PERFORMLCRLOADCOMPENSATIONREQUEST']._serialized_start=20269 - _globals['_PERFORMLCRLOADCOMPENSATIONREQUEST']._serialized_end=20433 - _globals['_PERFORMLCRLOADCOMPENSATIONRESPONSE']._serialized_start=20435 - _globals['_PERFORMLCRLOADCOMPENSATIONRESPONSE']._serialized_end=20487 - _globals['_CONFIGURELCRCOMPENSATIONREQUEST']._serialized_start=20489 - _globals['_CONFIGURELCRCOMPENSATIONREQUEST']._serialized_end=20607 - _globals['_CONFIGURELCRCOMPENSATIONRESPONSE']._serialized_start=20609 - _globals['_CONFIGURELCRCOMPENSATIONRESPONSE']._serialized_end=20659 - _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONREQUEST']._serialized_start=20661 - _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONREQUEST']._serialized_end=20765 - _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_start=20767 - _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_end=20830 - _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONREQUEST']._serialized_start=20832 - _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONREQUEST']._serialized_end=20937 - _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_start=20939 - _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_end=21003 - _globals['_GETLCRCOMPENSATIONDATAREQUEST']._serialized_start=21005 - _globals['_GETLCRCOMPENSATIONDATAREQUEST']._serialized_end=21094 - _globals['_GETLCRCOMPENSATIONDATARESPONSE']._serialized_start=21096 - _globals['_GETLCRCOMPENSATIONDATARESPONSE']._serialized_end=21171 - _globals['_INITIALIZEWITHINDEPENDENTCHANNELSREQUEST']._serialized_start=21174 - _globals['_INITIALIZEWITHINDEPENDENTCHANNELSREQUEST']._serialized_end=21378 - _globals['_INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE']._serialized_start=21381 - _globals['_INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE']._serialized_end=21536 - _globals['_CONFIGURESOURCEMODEWITHCHANNELSREQUEST']._serialized_start=21539 - _globals['_CONFIGURESOURCEMODEWITHCHANNELSREQUEST']._serialized_end=21735 - _globals['_CONFIGURESOURCEMODEWITHCHANNELSRESPONSE']._serialized_start=21737 - _globals['_CONFIGURESOURCEMODEWITHCHANNELSRESPONSE']._serialized_end=21794 - _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_start=21797 - _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_end=21976 - _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_start=21978 - _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_end=22038 - _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSREQUEST']._serialized_start=22041 - _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSREQUEST']._serialized_end=22174 - _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSRESPONSE']._serialized_start=22176 - _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSRESPONSE']._serialized_end=22240 - _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSREQUEST']._serialized_start=22243 - _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSREQUEST']._serialized_end=22382 - _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSRESPONSE']._serialized_start=22384 - _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSRESPONSE']._serialized_end=22454 - _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_start=22456 - _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_end=22580 - _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_start=22582 - _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_end=22642 - _globals['_COMMITWITHCHANNELSREQUEST']._serialized_start=22644 - _globals['_COMMITWITHCHANNELSREQUEST']._serialized_end=22729 - _globals['_COMMITWITHCHANNELSRESPONSE']._serialized_start=22731 - _globals['_COMMITWITHCHANNELSRESPONSE']._serialized_end=22775 - _globals['_INITIATEWITHCHANNELSREQUEST']._serialized_start=22777 - _globals['_INITIATEWITHCHANNELSREQUEST']._serialized_end=22864 - _globals['_INITIATEWITHCHANNELSRESPONSE']._serialized_start=22866 - _globals['_INITIATEWITHCHANNELSRESPONSE']._serialized_end=22912 - _globals['_ABORTWITHCHANNELSREQUEST']._serialized_start=22914 - _globals['_ABORTWITHCHANNELSREQUEST']._serialized_end=22998 - _globals['_ABORTWITHCHANNELSRESPONSE']._serialized_start=23000 - _globals['_ABORTWITHCHANNELSRESPONSE']._serialized_end=23043 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_start=23046 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_end=23259 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_start=23261 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_end=23331 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_start=23333 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_end=23445 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_start=23447 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_end=23518 - _globals['_DISABLESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_start=23520 - _globals['_DISABLESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_end=23618 - _globals['_DISABLESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_start=23620 - _globals['_DISABLESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_end=23677 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_start=23680 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_end=23903 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=23905 - _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=23985 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_start=23987 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24109 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24111 - _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24192 - _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24194 - _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24302 - _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24304 - _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24371 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24374 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24588 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24590 - _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24661 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24663 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24776 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24778 - _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24850 - _globals['_DISABLESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24852 - _globals['_DISABLESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24951 - _globals['_DISABLESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24953 - _globals['_DISABLESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25011 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_start=25014 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_end=25229 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25231 - _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25303 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_start=25305 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_end=25419 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25421 - _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25494 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_start=25497 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_end=25710 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25712 - _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25782 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_start=25784 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_end=25896 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25898 - _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25969 - _globals['_DISABLEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_start=25971 - _globals['_DISABLEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_end=26069 - _globals['_DISABLEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_start=26071 - _globals['_DISABLEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_end=26128 - _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_start=26131 - _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_end=26347 - _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_start=26349 - _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_end=26422 - _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_start=26424 - _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_end=26539 - _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_start=26541 - _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_end=26615 - _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_start=26617 - _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_end=26718 - _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_start=26720 - _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_end=26780 - _globals['_EXPORTSIGNALWITHCHANNELSREQUEST']._serialized_start=26783 - _globals['_EXPORTSIGNALWITHCHANNELSREQUEST']._serialized_end=27011 - _globals['_EXPORTSIGNALWITHCHANNELSRESPONSE']._serialized_start=27013 - _globals['_EXPORTSIGNALWITHCHANNELSRESPONSE']._serialized_end=27063 - _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSREQUEST']._serialized_start=27066 - _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSREQUEST']._serialized_end=27271 - _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSRESPONSE']._serialized_start=27273 - _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSRESPONSE']._serialized_end=27334 - _globals['_WAITFOREVENTWITHCHANNELSREQUEST']._serialized_start=27337 - _globals['_WAITFOREVENTWITHCHANNELSREQUEST']._serialized_end=27529 - _globals['_WAITFOREVENTWITHCHANNELSRESPONSE']._serialized_start=27531 - _globals['_WAITFOREVENTWITHCHANNELSRESPONSE']._serialized_end=27581 - _globals['_RESETWITHCHANNELSREQUEST']._serialized_start=27583 - _globals['_RESETWITHCHANNELSREQUEST']._serialized_end=27667 - _globals['_RESETWITHCHANNELSRESPONSE']._serialized_start=27669 - _globals['_RESETWITHCHANNELSRESPONSE']._serialized_end=27712 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=27714 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=27782 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=27784 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=27833 - _globals['_CONFIGUREOVPREQUEST']._serialized_start=27835 - _globals['_CONFIGUREOVPREQUEST']._serialized_end=27946 - _globals['_CONFIGUREOVPRESPONSE']._serialized_start=27948 - _globals['_CONFIGUREOVPRESPONSE']._serialized_end=27986 - _globals['_ERRORQUERYREQUEST']._serialized_start=27988 - _globals['_ERRORQUERYREQUEST']._serialized_end=28043 - _globals['_ERRORQUERYRESPONSE']._serialized_start=28045 - _globals['_ERRORQUERYRESPONSE']._serialized_end=28124 - _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATAREQUEST']._serialized_start=28126 - _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATAREQUEST']._serialized_end=28226 - _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATARESPONSE']._serialized_start=28228 - _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATARESPONSE']._serialized_end=28327 - _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONREQUEST']._serialized_start=28330 - _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONREQUEST']._serialized_end=28472 - _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_start=28474 - _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_end=28535 - _globals['_NIDCPOWER']._serialized_start=52909 - _globals['_NIDCPOWER']._serialized_end=72260 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py b/generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py deleted file mode 100644 index 79c2ea265d..0000000000 --- a/generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py +++ /dev/null @@ -1,4884 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nidcpower_pb2 as nidcpower__pb2 - - -class NiDCPowerStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.InitializeWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/InitializeWithChannels', - request_serializer=nidcpower__pb2.InitializeWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.InitializeWithChannelsResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Close', - request_serializer=nidcpower__pb2.CloseRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CloseResponse.FromString, - ) - self.ConfigureSourceMode = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSourceMode', - request_serializer=nidcpower__pb2.ConfigureSourceModeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSourceModeResponse.FromString, - ) - self.ConfigureOutputFunction = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureOutputFunction', - request_serializer=nidcpower__pb2.ConfigureOutputFunctionRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureOutputFunctionResponse.FromString, - ) - self.ConfigureOutputEnabled = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureOutputEnabled', - request_serializer=nidcpower__pb2.ConfigureOutputEnabledRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureOutputEnabledResponse.FromString, - ) - self.SetSequence = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetSequence', - request_serializer=nidcpower__pb2.SetSequenceRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SetSequenceResponse.FromString, - ) - self.ConfigureVoltageLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevel', - request_serializer=nidcpower__pb2.ConfigureVoltageLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureVoltageLevelResponse.FromString, - ) - self.ConfigureCurrentLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimit', - request_serializer=nidcpower__pb2.ConfigureCurrentLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureCurrentLimitResponse.FromString, - ) - self.ConfigureVoltageLevelRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevelRange', - request_serializer=nidcpower__pb2.ConfigureVoltageLevelRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureVoltageLevelRangeResponse.FromString, - ) - self.ConfigureCurrentLimitRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimitRange', - request_serializer=nidcpower__pb2.ConfigureCurrentLimitRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureCurrentLimitRangeResponse.FromString, - ) - self.ConfigureOutputResistance = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureOutputResistance', - request_serializer=nidcpower__pb2.ConfigureOutputResistanceRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureOutputResistanceResponse.FromString, - ) - self.ConfigureCurrentLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevel', - request_serializer=nidcpower__pb2.ConfigureCurrentLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureCurrentLevelResponse.FromString, - ) - self.ConfigureCurrentLevelRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevelRange', - request_serializer=nidcpower__pb2.ConfigureCurrentLevelRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureCurrentLevelRangeResponse.FromString, - ) - self.ConfigureVoltageLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimit', - request_serializer=nidcpower__pb2.ConfigureVoltageLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureVoltageLimitResponse.FromString, - ) - self.ConfigureVoltageLimitRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimitRange', - request_serializer=nidcpower__pb2.ConfigureVoltageLimitRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureVoltageLimitRangeResponse.FromString, - ) - self.ConfigurePulseVoltageLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevel', - request_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelResponse.FromString, - ) - self.ConfigurePulseCurrentLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimit', - request_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitResponse.FromString, - ) - self.ConfigurePulseBiasVoltageLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLevel', - request_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelResponse.FromString, - ) - self.ConfigurePulseBiasCurrentLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLimit', - request_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitResponse.FromString, - ) - self.ConfigurePulseVoltageLevelRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevelRange', - request_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeResponse.FromString, - ) - self.ConfigurePulseCurrentLimitRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimitRange', - request_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeResponse.FromString, - ) - self.ConfigurePulseCurrentLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevel', - request_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelResponse.FromString, - ) - self.ConfigurePulseVoltageLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimit', - request_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitResponse.FromString, - ) - self.ConfigurePulseBiasCurrentLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLevel', - request_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelResponse.FromString, - ) - self.ConfigurePulseBiasVoltageLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLimit', - request_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitResponse.FromString, - ) - self.ConfigurePulseCurrentLevelRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevelRange', - request_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeResponse.FromString, - ) - self.ConfigurePulseVoltageLimitRange = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimitRange', - request_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeResponse.FromString, - ) - self.CreateAdvancedSequence = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CreateAdvancedSequence', - request_serializer=nidcpower__pb2.CreateAdvancedSequenceRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CreateAdvancedSequenceResponse.FromString, - ) - self.CreateAdvancedSequenceStep = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStep', - request_serializer=nidcpower__pb2.CreateAdvancedSequenceStepRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepResponse.FromString, - ) - self.DeleteAdvancedSequence = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequence', - request_serializer=nidcpower__pb2.DeleteAdvancedSequenceRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DeleteAdvancedSequenceResponse.FromString, - ) - self.ConfigureApertureTime = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureApertureTime', - request_serializer=nidcpower__pb2.ConfigureApertureTimeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureApertureTimeResponse.FromString, - ) - self.ConfigureAutoZero = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureAutoZero', - request_serializer=nidcpower__pb2.ConfigureAutoZeroRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureAutoZeroResponse.FromString, - ) - self.ConfigurePowerLineFrequency = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigurePowerLineFrequency', - request_serializer=nidcpower__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigurePowerLineFrequencyResponse.FromString, - ) - self.ConfigureSense = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSense', - request_serializer=nidcpower__pb2.ConfigureSenseRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSenseResponse.FromString, - ) - self.Measure = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Measure', - request_serializer=nidcpower__pb2.MeasureRequest.SerializeToString, - response_deserializer=nidcpower__pb2.MeasureResponse.FromString, - ) - self.MeasureMultiple = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/MeasureMultiple', - request_serializer=nidcpower__pb2.MeasureMultipleRequest.SerializeToString, - response_deserializer=nidcpower__pb2.MeasureMultipleResponse.FromString, - ) - self.FetchMultiple = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/FetchMultiple', - request_serializer=nidcpower__pb2.FetchMultipleRequest.SerializeToString, - response_deserializer=nidcpower__pb2.FetchMultipleResponse.FromString, - ) - self.MeasureMultipleLCR = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/MeasureMultipleLCR', - request_serializer=nidcpower__pb2.MeasureMultipleLCRRequest.SerializeToString, - response_deserializer=nidcpower__pb2.MeasureMultipleLCRResponse.FromString, - ) - self.FetchMultipleLCR = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/FetchMultipleLCR', - request_serializer=nidcpower__pb2.FetchMultipleLCRRequest.SerializeToString, - response_deserializer=nidcpower__pb2.FetchMultipleLCRResponse.FromString, - ) - self.QueryInCompliance = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/QueryInCompliance', - request_serializer=nidcpower__pb2.QueryInComplianceRequest.SerializeToString, - response_deserializer=nidcpower__pb2.QueryInComplianceResponse.FromString, - ) - self.QueryOutputState = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/QueryOutputState', - request_serializer=nidcpower__pb2.QueryOutputStateRequest.SerializeToString, - response_deserializer=nidcpower__pb2.QueryOutputStateResponse.FromString, - ) - self.QueryLatchedOutputCutoffState = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/QueryLatchedOutputCutoffState', - request_serializer=nidcpower__pb2.QueryLatchedOutputCutoffStateRequest.SerializeToString, - response_deserializer=nidcpower__pb2.QueryLatchedOutputCutoffStateResponse.FromString, - ) - self.ClearLatchedOutputCutoffState = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ClearLatchedOutputCutoffState', - request_serializer=nidcpower__pb2.ClearLatchedOutputCutoffStateRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ClearLatchedOutputCutoffStateResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Commit', - request_serializer=nidcpower__pb2.CommitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CommitResponse.FromString, - ) - self.Initiate = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Initiate', - request_serializer=nidcpower__pb2.InitiateRequest.SerializeToString, - response_deserializer=nidcpower__pb2.InitiateResponse.FromString, - ) - self.Abort = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Abort', - request_serializer=nidcpower__pb2.AbortRequest.SerializeToString, - response_deserializer=nidcpower__pb2.AbortResponse.FromString, - ) - self.QueryMaxCurrentLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/QueryMaxCurrentLimit', - request_serializer=nidcpower__pb2.QueryMaxCurrentLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.QueryMaxCurrentLimitResponse.FromString, - ) - self.QueryMaxVoltageLevel = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/QueryMaxVoltageLevel', - request_serializer=nidcpower__pb2.QueryMaxVoltageLevelRequest.SerializeToString, - response_deserializer=nidcpower__pb2.QueryMaxVoltageLevelResponse.FromString, - ) - self.QueryMinCurrentLimit = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/QueryMinCurrentLimit', - request_serializer=nidcpower__pb2.QueryMinCurrentLimitRequest.SerializeToString, - response_deserializer=nidcpower__pb2.QueryMinCurrentLimitResponse.FromString, - ) - self.CalSelfCalibrate = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CalSelfCalibrate', - request_serializer=nidcpower__pb2.CalSelfCalibrateRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CalSelfCalibrateResponse.FromString, - ) - self.GetExtCalRecommendedInterval = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetExtCalRecommendedInterval', - request_serializer=nidcpower__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetExtCalRecommendedIntervalResponse.FromString, - ) - self.GetExtCalLastDateAndTime = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetExtCalLastDateAndTime', - request_serializer=nidcpower__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetExtCalLastDateAndTimeResponse.FromString, - ) - self.ReadCurrentTemperature = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ReadCurrentTemperature', - request_serializer=nidcpower__pb2.ReadCurrentTemperatureRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ReadCurrentTemperatureResponse.FromString, - ) - self.GetExtCalLastTemp = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetExtCalLastTemp', - request_serializer=nidcpower__pb2.GetExtCalLastTempRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetExtCalLastTempResponse.FromString, - ) - self.GetSelfCalLastDateAndTime = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetSelfCalLastDateAndTime', - request_serializer=nidcpower__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetSelfCalLastDateAndTimeResponse.FromString, - ) - self.GetSelfCalLastTemp = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetSelfCalLastTemp', - request_serializer=nidcpower__pb2.GetSelfCalLastTempRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetSelfCalLastTempResponse.FromString, - ) - self.GetLCRCompensationLastDateAndTime = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetLCRCompensationLastDateAndTime', - request_serializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeResponse.FromString, - ) - self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTrigger', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTrigger', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - ) - self.DisableStartTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableStartTrigger', - request_serializer=nidcpower__pb2.DisableStartTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableStartTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeSequenceAdvanceTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTrigger', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeSequenceAdvanceTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTrigger', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse.FromString, - ) - self.DisableSequenceAdvanceTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTrigger', - request_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeSourceTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTrigger', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeSourceTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTrigger', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerResponse.FromString, - ) - self.DisableSourceTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableSourceTrigger', - request_serializer=nidcpower__pb2.DisableSourceTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableSourceTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeMeasureTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTrigger', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeMeasureTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTrigger', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgePulseTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTrigger', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgePulseTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTrigger', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerResponse.FromString, - ) - self.DisablePulseTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisablePulseTrigger', - request_serializer=nidcpower__pb2.DisablePulseTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisablePulseTriggerResponse.FromString, - ) - self.ExportSignal = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ExportSignal', - request_serializer=nidcpower__pb2.ExportSignalRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ExportSignalResponse.FromString, - ) - self.SendSoftwareEdgeTrigger = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTrigger', - request_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerResponse.FromString, - ) - self.WaitForEvent = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/WaitForEvent', - request_serializer=nidcpower__pb2.WaitForEventRequest.SerializeToString, - response_deserializer=nidcpower__pb2.WaitForEventResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Disable', - request_serializer=nidcpower__pb2.DisableRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/Reset', - request_serializer=nidcpower__pb2.ResetRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ResetResponse.FromString, - ) - self.ResetDevice = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ResetDevice', - request_serializer=nidcpower__pb2.ResetDeviceRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ResetDeviceResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SelfTest', - request_serializer=nidcpower__pb2.SelfTestRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SelfTestResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/RevisionQuery', - request_serializer=nidcpower__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=nidcpower__pb2.RevisionQueryResponse.FromString, - ) - self.ResetWithDefaults = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ResetWithDefaults', - request_serializer=nidcpower__pb2.ResetWithDefaultsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ResetWithDefaultsResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetChannelName', - request_serializer=nidcpower__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetChannelNameResponse.FromString, - ) - self.GetChannelNameFromString = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetChannelNameFromString', - request_serializer=nidcpower__pb2.GetChannelNameFromStringRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetChannelNameFromStringResponse.FromString, - ) - self.GetNextCoercionRecord = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetNextCoercionRecord', - request_serializer=nidcpower__pb2.GetNextCoercionRecordRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetNextCoercionRecordResponse.FromString, - ) - self.ClearInterchangeWarnings = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ClearInterchangeWarnings', - request_serializer=nidcpower__pb2.ClearInterchangeWarningsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ClearInterchangeWarningsResponse.FromString, - ) - self.ResetInterchangeCheck = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ResetInterchangeCheck', - request_serializer=nidcpower__pb2.ResetInterchangeCheckRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ResetInterchangeCheckResponse.FromString, - ) - self.GetNextInterchangeWarning = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetNextInterchangeWarning', - request_serializer=nidcpower__pb2.GetNextInterchangeWarningRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetNextInterchangeWarningResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetError', - request_serializer=nidcpower__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetErrorResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ClearError', - request_serializer=nidcpower__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ClearErrorResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ErrorMessage', - request_serializer=nidcpower__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ErrorMessageResponse.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetAttributeViInt32', - request_serializer=nidcpower__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nidcpower__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetAttributeViInt64', - request_serializer=nidcpower__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=nidcpower__pb2.SetAttributeViInt64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetAttributeViReal64', - request_serializer=nidcpower__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nidcpower__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetAttributeViString', - request_serializer=nidcpower__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SetAttributeViStringResponse.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetAttributeViSession', - request_serializer=nidcpower__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SetAttributeViBoolean', - request_serializer=nidcpower__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetAttributeViInt32', - request_serializer=nidcpower__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nidcpower__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetAttributeViInt64', - request_serializer=nidcpower__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=nidcpower__pb2.GetAttributeViInt64Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetAttributeViReal64', - request_serializer=nidcpower__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nidcpower__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetAttributeViString', - request_serializer=nidcpower__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetAttributeViSession', - request_serializer=nidcpower__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetAttributeViSessionResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetAttributeViBoolean', - request_serializer=nidcpower__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.ImportAttributeConfigurationFile = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationFile', - request_serializer=nidcpower__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ImportAttributeConfigurationFileResponse.FromString, - ) - self.ExportAttributeConfigurationFile = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationFile', - request_serializer=nidcpower__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ExportAttributeConfigurationFileResponse.FromString, - ) - self.ImportAttributeConfigurationBuffer = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationBuffer', - request_serializer=nidcpower__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ImportAttributeConfigurationBufferResponse.FromString, - ) - self.ExportAttributeConfigurationBuffer = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationBuffer', - request_serializer=nidcpower__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ExportAttributeConfigurationBufferResponse.FromString, - ) - self.PerformLCROpenCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/PerformLCROpenCompensation', - request_serializer=nidcpower__pb2.PerformLCROpenCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.PerformLCROpenCompensationResponse.FromString, - ) - self.PerformLCRShortCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/PerformLCRShortCompensation', - request_serializer=nidcpower__pb2.PerformLCRShortCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.PerformLCRShortCompensationResponse.FromString, - ) - self.PerformLCRLoadCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/PerformLCRLoadCompensation', - request_serializer=nidcpower__pb2.PerformLCRLoadCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.PerformLCRLoadCompensationResponse.FromString, - ) - self.ConfigureLCRCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureLCRCompensation', - request_serializer=nidcpower__pb2.ConfigureLCRCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureLCRCompensationResponse.FromString, - ) - self.PerformLCROpenCustomCableCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/PerformLCROpenCustomCableCompensation', - request_serializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationResponse.FromString, - ) - self.PerformLCRShortCustomCableCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/PerformLCRShortCustomCableCompensation', - request_serializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationResponse.FromString, - ) - self.GetLCRCompensationData = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetLCRCompensationData', - request_serializer=nidcpower__pb2.GetLCRCompensationDataRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetLCRCompensationDataResponse.FromString, - ) - self.InitializeWithIndependentChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/InitializeWithIndependentChannels', - request_serializer=nidcpower__pb2.InitializeWithIndependentChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.InitializeWithIndependentChannelsResponse.FromString, - ) - self.ConfigureSourceModeWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSourceModeWithChannels', - request_serializer=nidcpower__pb2.ConfigureSourceModeWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSourceModeWithChannelsResponse.FromString, - ) - self.CreateAdvancedSequenceWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceWithChannels', - request_serializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsResponse.FromString, - ) - self.CreateAdvancedSequenceStepWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStepWithChannels', - request_serializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsResponse.FromString, - ) - self.CreateAdvancedSequenceCommitStepWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceCommitStepWithChannels', - request_serializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsResponse.FromString, - ) - self.DeleteAdvancedSequenceWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequenceWithChannels', - request_serializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsResponse.FromString, - ) - self.CommitWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/CommitWithChannels', - request_serializer=nidcpower__pb2.CommitWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.CommitWithChannelsResponse.FromString, - ) - self.InitiateWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/InitiateWithChannels', - request_serializer=nidcpower__pb2.InitiateWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.InitiateWithChannelsResponse.FromString, - ) - self.AbortWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/AbortWithChannels', - request_serializer=nidcpower__pb2.AbortWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.AbortWithChannelsResponse.FromString, - ) - self.ConfigureDigitalEdgeStartTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsResponse.FromString, - ) - self.ConfigureSoftwareEdgeStartTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse.FromString, - ) - self.DisableStartTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableStartTriggerWithChannels', - request_serializer=nidcpower__pb2.DisableStartTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableStartTriggerWithChannelsResponse.FromString, - ) - self.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, - ) - self.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, - ) - self.DisableSequenceAdvanceTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTriggerWithChannels', - request_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsResponse.FromString, - ) - self.ConfigureDigitalEdgeSourceTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse.FromString, - ) - self.ConfigureSoftwareEdgeSourceTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse.FromString, - ) - self.DisableSourceTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableSourceTriggerWithChannels', - request_serializer=nidcpower__pb2.DisableSourceTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableSourceTriggerWithChannelsResponse.FromString, - ) - self.ConfigureDigitalEdgeMeasureTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse.FromString, - ) - self.ConfigureSoftwareEdgeMeasureTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse.FromString, - ) - self.ConfigureDigitalEdgePulseTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsResponse.FromString, - ) - self.ConfigureSoftwareEdgePulseTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse.FromString, - ) - self.DisablePulseTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisablePulseTriggerWithChannels', - request_serializer=nidcpower__pb2.DisablePulseTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisablePulseTriggerWithChannelsResponse.FromString, - ) - self.ConfigureDigitalEdgeShutdownTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeShutdownTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse.FromString, - ) - self.ConfigureSoftwareEdgeShutdownTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeShutdownTriggerWithChannels', - request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse.FromString, - ) - self.DisableShutdownTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/DisableShutdownTriggerWithChannels', - request_serializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsResponse.FromString, - ) - self.ExportSignalWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ExportSignalWithChannels', - request_serializer=nidcpower__pb2.ExportSignalWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ExportSignalWithChannelsResponse.FromString, - ) - self.SendSoftwareEdgeTriggerWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTriggerWithChannels', - request_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsResponse.FromString, - ) - self.WaitForEventWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/WaitForEventWithChannels', - request_serializer=nidcpower__pb2.WaitForEventWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.WaitForEventWithChannelsResponse.FromString, - ) - self.ResetWithChannels = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ResetWithChannels', - request_serializer=nidcpower__pb2.ResetWithChannelsRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ResetWithChannelsResponse.FromString, - ) - self.InvalidateAllAttributes = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/InvalidateAllAttributes', - request_serializer=nidcpower__pb2.InvalidateAllAttributesRequest.SerializeToString, - response_deserializer=nidcpower__pb2.InvalidateAllAttributesResponse.FromString, - ) - self.ConfigureOvp = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureOvp', - request_serializer=nidcpower__pb2.ConfigureOvpRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureOvpResponse.FromString, - ) - self.ErrorQuery = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ErrorQuery', - request_serializer=nidcpower__pb2.ErrorQueryRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ErrorQueryResponse.FromString, - ) - self.GetLCRCustomCableCompensationData = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/GetLCRCustomCableCompensationData', - request_serializer=nidcpower__pb2.GetLCRCustomCableCompensationDataRequest.SerializeToString, - response_deserializer=nidcpower__pb2.GetLCRCustomCableCompensationDataResponse.FromString, - ) - self.ConfigureLCRCustomCableCompensation = channel.unary_unary( - '/nidcpower_grpc.NiDCPower/ConfigureLCRCustomCableCompensation', - request_serializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationRequest.SerializeToString, - response_deserializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationResponse.FromString, - ) - - -class NiDCPowerServicer(object): - """Missing associated documentation comment in .proto file.""" - - def InitializeWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSourceMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputEnabled(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureVoltageLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCurrentLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureVoltageLevelRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCurrentLimitRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputResistance(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCurrentLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCurrentLevelRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureVoltageLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureVoltageLimitRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseVoltageLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseCurrentLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseBiasVoltageLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseBiasCurrentLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseVoltageLevelRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseCurrentLimitRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseCurrentLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseVoltageLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseBiasCurrentLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseBiasVoltageLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseCurrentLevelRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePulseVoltageLimitRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAdvancedSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAdvancedSequenceStep(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAdvancedSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureApertureTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureAutoZero(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePowerLineFrequency(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSense(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Measure(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MeasureMultiple(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchMultiple(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MeasureMultipleLCR(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchMultipleLCR(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryInCompliance(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryOutputState(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryLatchedOutputCutoffState(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearLatchedOutputCutoffState(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Initiate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryMaxCurrentLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryMaxVoltageLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryMinCurrentLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CalSelfCalibrate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalRecommendedInterval(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadCurrentTemperature(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalLastTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalLastTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLCRCompensationLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeSequenceAdvanceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeSequenceAdvanceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableSequenceAdvanceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeSourceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeSourceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableSourceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeMeasureTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeMeasureTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgePulseTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgePulseTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisablePulseTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareEdgeTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitForEvent(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelNameFromString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNextCoercionRecord(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearInterchangeWarnings(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetInterchangeCheck(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNextInterchangeWarning(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformLCROpenCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformLCRShortCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformLCRLoadCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureLCRCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformLCROpenCustomCableCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformLCRShortCustomCableCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLCRCompensationData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitializeWithIndependentChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSourceModeWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAdvancedSequenceWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAdvancedSequenceStepWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAdvancedSequenceCommitStepWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAdvancedSequenceWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CommitWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitiateWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AbortWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeStartTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeStartTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableStartTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableSequenceAdvanceTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeSourceTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeSourceTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableSourceTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeMeasureTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeMeasureTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgePulseTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgePulseTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisablePulseTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeShutdownTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeShutdownTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableShutdownTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignalWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareEdgeTriggerWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitForEventWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InvalidateAllAttributes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOvp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLCRCustomCableCompensationData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureLCRCustomCableCompensation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiDCPowerServicer_to_server(servicer, server): - rpc_method_handlers = { - 'InitializeWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.InitializeWithChannels, - request_deserializer=nidcpower__pb2.InitializeWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.InitializeWithChannelsResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nidcpower__pb2.CloseRequest.FromString, - response_serializer=nidcpower__pb2.CloseResponse.SerializeToString, - ), - 'ConfigureSourceMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSourceMode, - request_deserializer=nidcpower__pb2.ConfigureSourceModeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSourceModeResponse.SerializeToString, - ), - 'ConfigureOutputFunction': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputFunction, - request_deserializer=nidcpower__pb2.ConfigureOutputFunctionRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureOutputFunctionResponse.SerializeToString, - ), - 'ConfigureOutputEnabled': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputEnabled, - request_deserializer=nidcpower__pb2.ConfigureOutputEnabledRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureOutputEnabledResponse.SerializeToString, - ), - 'SetSequence': grpc.unary_unary_rpc_method_handler( - servicer.SetSequence, - request_deserializer=nidcpower__pb2.SetSequenceRequest.FromString, - response_serializer=nidcpower__pb2.SetSequenceResponse.SerializeToString, - ), - 'ConfigureVoltageLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureVoltageLevel, - request_deserializer=nidcpower__pb2.ConfigureVoltageLevelRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureVoltageLevelResponse.SerializeToString, - ), - 'ConfigureCurrentLimit': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCurrentLimit, - request_deserializer=nidcpower__pb2.ConfigureCurrentLimitRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureCurrentLimitResponse.SerializeToString, - ), - 'ConfigureVoltageLevelRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureVoltageLevelRange, - request_deserializer=nidcpower__pb2.ConfigureVoltageLevelRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureVoltageLevelRangeResponse.SerializeToString, - ), - 'ConfigureCurrentLimitRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCurrentLimitRange, - request_deserializer=nidcpower__pb2.ConfigureCurrentLimitRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureCurrentLimitRangeResponse.SerializeToString, - ), - 'ConfigureOutputResistance': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputResistance, - request_deserializer=nidcpower__pb2.ConfigureOutputResistanceRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureOutputResistanceResponse.SerializeToString, - ), - 'ConfigureCurrentLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCurrentLevel, - request_deserializer=nidcpower__pb2.ConfigureCurrentLevelRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureCurrentLevelResponse.SerializeToString, - ), - 'ConfigureCurrentLevelRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCurrentLevelRange, - request_deserializer=nidcpower__pb2.ConfigureCurrentLevelRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureCurrentLevelRangeResponse.SerializeToString, - ), - 'ConfigureVoltageLimit': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureVoltageLimit, - request_deserializer=nidcpower__pb2.ConfigureVoltageLimitRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureVoltageLimitResponse.SerializeToString, - ), - 'ConfigureVoltageLimitRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureVoltageLimitRange, - request_deserializer=nidcpower__pb2.ConfigureVoltageLimitRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureVoltageLimitRangeResponse.SerializeToString, - ), - 'ConfigurePulseVoltageLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseVoltageLevel, - request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelResponse.SerializeToString, - ), - 'ConfigurePulseCurrentLimit': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseCurrentLimit, - request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitResponse.SerializeToString, - ), - 'ConfigurePulseBiasVoltageLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseBiasVoltageLevel, - request_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelResponse.SerializeToString, - ), - 'ConfigurePulseBiasCurrentLimit': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseBiasCurrentLimit, - request_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitResponse.SerializeToString, - ), - 'ConfigurePulseVoltageLevelRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseVoltageLevelRange, - request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeResponse.SerializeToString, - ), - 'ConfigurePulseCurrentLimitRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseCurrentLimitRange, - request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeResponse.SerializeToString, - ), - 'ConfigurePulseCurrentLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseCurrentLevel, - request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelResponse.SerializeToString, - ), - 'ConfigurePulseVoltageLimit': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseVoltageLimit, - request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitResponse.SerializeToString, - ), - 'ConfigurePulseBiasCurrentLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseBiasCurrentLevel, - request_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelResponse.SerializeToString, - ), - 'ConfigurePulseBiasVoltageLimit': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseBiasVoltageLimit, - request_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitResponse.SerializeToString, - ), - 'ConfigurePulseCurrentLevelRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseCurrentLevelRange, - request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeResponse.SerializeToString, - ), - 'ConfigurePulseVoltageLimitRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePulseVoltageLimitRange, - request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeResponse.SerializeToString, - ), - 'CreateAdvancedSequence': grpc.unary_unary_rpc_method_handler( - servicer.CreateAdvancedSequence, - request_deserializer=nidcpower__pb2.CreateAdvancedSequenceRequest.FromString, - response_serializer=nidcpower__pb2.CreateAdvancedSequenceResponse.SerializeToString, - ), - 'CreateAdvancedSequenceStep': grpc.unary_unary_rpc_method_handler( - servicer.CreateAdvancedSequenceStep, - request_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepRequest.FromString, - response_serializer=nidcpower__pb2.CreateAdvancedSequenceStepResponse.SerializeToString, - ), - 'DeleteAdvancedSequence': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAdvancedSequence, - request_deserializer=nidcpower__pb2.DeleteAdvancedSequenceRequest.FromString, - response_serializer=nidcpower__pb2.DeleteAdvancedSequenceResponse.SerializeToString, - ), - 'ConfigureApertureTime': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureApertureTime, - request_deserializer=nidcpower__pb2.ConfigureApertureTimeRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureApertureTimeResponse.SerializeToString, - ), - 'ConfigureAutoZero': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureAutoZero, - request_deserializer=nidcpower__pb2.ConfigureAutoZeroRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureAutoZeroResponse.SerializeToString, - ), - 'ConfigurePowerLineFrequency': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePowerLineFrequency, - request_deserializer=nidcpower__pb2.ConfigurePowerLineFrequencyRequest.FromString, - response_serializer=nidcpower__pb2.ConfigurePowerLineFrequencyResponse.SerializeToString, - ), - 'ConfigureSense': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSense, - request_deserializer=nidcpower__pb2.ConfigureSenseRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSenseResponse.SerializeToString, - ), - 'Measure': grpc.unary_unary_rpc_method_handler( - servicer.Measure, - request_deserializer=nidcpower__pb2.MeasureRequest.FromString, - response_serializer=nidcpower__pb2.MeasureResponse.SerializeToString, - ), - 'MeasureMultiple': grpc.unary_unary_rpc_method_handler( - servicer.MeasureMultiple, - request_deserializer=nidcpower__pb2.MeasureMultipleRequest.FromString, - response_serializer=nidcpower__pb2.MeasureMultipleResponse.SerializeToString, - ), - 'FetchMultiple': grpc.unary_unary_rpc_method_handler( - servicer.FetchMultiple, - request_deserializer=nidcpower__pb2.FetchMultipleRequest.FromString, - response_serializer=nidcpower__pb2.FetchMultipleResponse.SerializeToString, - ), - 'MeasureMultipleLCR': grpc.unary_unary_rpc_method_handler( - servicer.MeasureMultipleLCR, - request_deserializer=nidcpower__pb2.MeasureMultipleLCRRequest.FromString, - response_serializer=nidcpower__pb2.MeasureMultipleLCRResponse.SerializeToString, - ), - 'FetchMultipleLCR': grpc.unary_unary_rpc_method_handler( - servicer.FetchMultipleLCR, - request_deserializer=nidcpower__pb2.FetchMultipleLCRRequest.FromString, - response_serializer=nidcpower__pb2.FetchMultipleLCRResponse.SerializeToString, - ), - 'QueryInCompliance': grpc.unary_unary_rpc_method_handler( - servicer.QueryInCompliance, - request_deserializer=nidcpower__pb2.QueryInComplianceRequest.FromString, - response_serializer=nidcpower__pb2.QueryInComplianceResponse.SerializeToString, - ), - 'QueryOutputState': grpc.unary_unary_rpc_method_handler( - servicer.QueryOutputState, - request_deserializer=nidcpower__pb2.QueryOutputStateRequest.FromString, - response_serializer=nidcpower__pb2.QueryOutputStateResponse.SerializeToString, - ), - 'QueryLatchedOutputCutoffState': grpc.unary_unary_rpc_method_handler( - servicer.QueryLatchedOutputCutoffState, - request_deserializer=nidcpower__pb2.QueryLatchedOutputCutoffStateRequest.FromString, - response_serializer=nidcpower__pb2.QueryLatchedOutputCutoffStateResponse.SerializeToString, - ), - 'ClearLatchedOutputCutoffState': grpc.unary_unary_rpc_method_handler( - servicer.ClearLatchedOutputCutoffState, - request_deserializer=nidcpower__pb2.ClearLatchedOutputCutoffStateRequest.FromString, - response_serializer=nidcpower__pb2.ClearLatchedOutputCutoffStateResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=nidcpower__pb2.CommitRequest.FromString, - response_serializer=nidcpower__pb2.CommitResponse.SerializeToString, - ), - 'Initiate': grpc.unary_unary_rpc_method_handler( - servicer.Initiate, - request_deserializer=nidcpower__pb2.InitiateRequest.FromString, - response_serializer=nidcpower__pb2.InitiateResponse.SerializeToString, - ), - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=nidcpower__pb2.AbortRequest.FromString, - response_serializer=nidcpower__pb2.AbortResponse.SerializeToString, - ), - 'QueryMaxCurrentLimit': grpc.unary_unary_rpc_method_handler( - servicer.QueryMaxCurrentLimit, - request_deserializer=nidcpower__pb2.QueryMaxCurrentLimitRequest.FromString, - response_serializer=nidcpower__pb2.QueryMaxCurrentLimitResponse.SerializeToString, - ), - 'QueryMaxVoltageLevel': grpc.unary_unary_rpc_method_handler( - servicer.QueryMaxVoltageLevel, - request_deserializer=nidcpower__pb2.QueryMaxVoltageLevelRequest.FromString, - response_serializer=nidcpower__pb2.QueryMaxVoltageLevelResponse.SerializeToString, - ), - 'QueryMinCurrentLimit': grpc.unary_unary_rpc_method_handler( - servicer.QueryMinCurrentLimit, - request_deserializer=nidcpower__pb2.QueryMinCurrentLimitRequest.FromString, - response_serializer=nidcpower__pb2.QueryMinCurrentLimitResponse.SerializeToString, - ), - 'CalSelfCalibrate': grpc.unary_unary_rpc_method_handler( - servicer.CalSelfCalibrate, - request_deserializer=nidcpower__pb2.CalSelfCalibrateRequest.FromString, - response_serializer=nidcpower__pb2.CalSelfCalibrateResponse.SerializeToString, - ), - 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalRecommendedInterval, - request_deserializer=nidcpower__pb2.GetExtCalRecommendedIntervalRequest.FromString, - response_serializer=nidcpower__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, - ), - 'GetExtCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalLastDateAndTime, - request_deserializer=nidcpower__pb2.GetExtCalLastDateAndTimeRequest.FromString, - response_serializer=nidcpower__pb2.GetExtCalLastDateAndTimeResponse.SerializeToString, - ), - 'ReadCurrentTemperature': grpc.unary_unary_rpc_method_handler( - servicer.ReadCurrentTemperature, - request_deserializer=nidcpower__pb2.ReadCurrentTemperatureRequest.FromString, - response_serializer=nidcpower__pb2.ReadCurrentTemperatureResponse.SerializeToString, - ), - 'GetExtCalLastTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalLastTemp, - request_deserializer=nidcpower__pb2.GetExtCalLastTempRequest.FromString, - response_serializer=nidcpower__pb2.GetExtCalLastTempResponse.SerializeToString, - ), - 'GetSelfCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalLastDateAndTime, - request_deserializer=nidcpower__pb2.GetSelfCalLastDateAndTimeRequest.FromString, - response_serializer=nidcpower__pb2.GetSelfCalLastDateAndTimeResponse.SerializeToString, - ), - 'GetSelfCalLastTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalLastTemp, - request_deserializer=nidcpower__pb2.GetSelfCalLastTempRequest.FromString, - response_serializer=nidcpower__pb2.GetSelfCalLastTempResponse.SerializeToString, - ), - 'GetLCRCompensationLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetLCRCompensationLastDateAndTime, - request_deserializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeRequest.FromString, - response_serializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeStartTrigger, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeStartTrigger, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, - ), - 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableStartTrigger, - request_deserializer=nidcpower__pb2.DisableStartTriggerRequest.FromString, - response_serializer=nidcpower__pb2.DisableStartTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeSequenceAdvanceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeSequenceAdvanceTrigger, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeSequenceAdvanceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeSequenceAdvanceTrigger, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse.SerializeToString, - ), - 'DisableSequenceAdvanceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableSequenceAdvanceTrigger, - request_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerRequest.FromString, - response_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeSourceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeSourceTrigger, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeSourceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeSourceTrigger, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerResponse.SerializeToString, - ), - 'DisableSourceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableSourceTrigger, - request_deserializer=nidcpower__pb2.DisableSourceTriggerRequest.FromString, - response_serializer=nidcpower__pb2.DisableSourceTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeMeasureTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeMeasureTrigger, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeMeasureTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeMeasureTrigger, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgePulseTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgePulseTrigger, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgePulseTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgePulseTrigger, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerResponse.SerializeToString, - ), - 'DisablePulseTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisablePulseTrigger, - request_deserializer=nidcpower__pb2.DisablePulseTriggerRequest.FromString, - response_serializer=nidcpower__pb2.DisablePulseTriggerResponse.SerializeToString, - ), - 'ExportSignal': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignal, - request_deserializer=nidcpower__pb2.ExportSignalRequest.FromString, - response_serializer=nidcpower__pb2.ExportSignalResponse.SerializeToString, - ), - 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareEdgeTrigger, - request_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerRequest.FromString, - response_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, - ), - 'WaitForEvent': grpc.unary_unary_rpc_method_handler( - servicer.WaitForEvent, - request_deserializer=nidcpower__pb2.WaitForEventRequest.FromString, - response_serializer=nidcpower__pb2.WaitForEventResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=nidcpower__pb2.DisableRequest.FromString, - response_serializer=nidcpower__pb2.DisableResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=nidcpower__pb2.ResetRequest.FromString, - response_serializer=nidcpower__pb2.ResetResponse.SerializeToString, - ), - 'ResetDevice': grpc.unary_unary_rpc_method_handler( - servicer.ResetDevice, - request_deserializer=nidcpower__pb2.ResetDeviceRequest.FromString, - response_serializer=nidcpower__pb2.ResetDeviceResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=nidcpower__pb2.SelfTestRequest.FromString, - response_serializer=nidcpower__pb2.SelfTestResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=nidcpower__pb2.RevisionQueryRequest.FromString, - response_serializer=nidcpower__pb2.RevisionQueryResponse.SerializeToString, - ), - 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithDefaults, - request_deserializer=nidcpower__pb2.ResetWithDefaultsRequest.FromString, - response_serializer=nidcpower__pb2.ResetWithDefaultsResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=nidcpower__pb2.GetChannelNameRequest.FromString, - response_serializer=nidcpower__pb2.GetChannelNameResponse.SerializeToString, - ), - 'GetChannelNameFromString': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelNameFromString, - request_deserializer=nidcpower__pb2.GetChannelNameFromStringRequest.FromString, - response_serializer=nidcpower__pb2.GetChannelNameFromStringResponse.SerializeToString, - ), - 'GetNextCoercionRecord': grpc.unary_unary_rpc_method_handler( - servicer.GetNextCoercionRecord, - request_deserializer=nidcpower__pb2.GetNextCoercionRecordRequest.FromString, - response_serializer=nidcpower__pb2.GetNextCoercionRecordResponse.SerializeToString, - ), - 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( - servicer.ClearInterchangeWarnings, - request_deserializer=nidcpower__pb2.ClearInterchangeWarningsRequest.FromString, - response_serializer=nidcpower__pb2.ClearInterchangeWarningsResponse.SerializeToString, - ), - 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( - servicer.ResetInterchangeCheck, - request_deserializer=nidcpower__pb2.ResetInterchangeCheckRequest.FromString, - response_serializer=nidcpower__pb2.ResetInterchangeCheckResponse.SerializeToString, - ), - 'GetNextInterchangeWarning': grpc.unary_unary_rpc_method_handler( - servicer.GetNextInterchangeWarning, - request_deserializer=nidcpower__pb2.GetNextInterchangeWarningRequest.FromString, - response_serializer=nidcpower__pb2.GetNextInterchangeWarningResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nidcpower__pb2.GetErrorRequest.FromString, - response_serializer=nidcpower__pb2.GetErrorResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=nidcpower__pb2.ClearErrorRequest.FromString, - response_serializer=nidcpower__pb2.ClearErrorResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=nidcpower__pb2.ErrorMessageRequest.FromString, - response_serializer=nidcpower__pb2.ErrorMessageResponse.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nidcpower__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nidcpower__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=nidcpower__pb2.SetAttributeViInt64Request.FromString, - response_serializer=nidcpower__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nidcpower__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nidcpower__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nidcpower__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nidcpower__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=nidcpower__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=nidcpower__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nidcpower__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nidcpower__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nidcpower__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nidcpower__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=nidcpower__pb2.GetAttributeViInt64Request.FromString, - response_serializer=nidcpower__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nidcpower__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nidcpower__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nidcpower__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nidcpower__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nidcpower__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nidcpower__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nidcpower__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nidcpower__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationFile, - request_deserializer=nidcpower__pb2.ImportAttributeConfigurationFileRequest.FromString, - response_serializer=nidcpower__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationFile, - request_deserializer=nidcpower__pb2.ExportAttributeConfigurationFileRequest.FromString, - response_serializer=nidcpower__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationBuffer, - request_deserializer=nidcpower__pb2.ImportAttributeConfigurationBufferRequest.FromString, - response_serializer=nidcpower__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationBuffer, - request_deserializer=nidcpower__pb2.ExportAttributeConfigurationBufferRequest.FromString, - response_serializer=nidcpower__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'PerformLCROpenCompensation': grpc.unary_unary_rpc_method_handler( - servicer.PerformLCROpenCompensation, - request_deserializer=nidcpower__pb2.PerformLCROpenCompensationRequest.FromString, - response_serializer=nidcpower__pb2.PerformLCROpenCompensationResponse.SerializeToString, - ), - 'PerformLCRShortCompensation': grpc.unary_unary_rpc_method_handler( - servicer.PerformLCRShortCompensation, - request_deserializer=nidcpower__pb2.PerformLCRShortCompensationRequest.FromString, - response_serializer=nidcpower__pb2.PerformLCRShortCompensationResponse.SerializeToString, - ), - 'PerformLCRLoadCompensation': grpc.unary_unary_rpc_method_handler( - servicer.PerformLCRLoadCompensation, - request_deserializer=nidcpower__pb2.PerformLCRLoadCompensationRequest.FromString, - response_serializer=nidcpower__pb2.PerformLCRLoadCompensationResponse.SerializeToString, - ), - 'ConfigureLCRCompensation': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureLCRCompensation, - request_deserializer=nidcpower__pb2.ConfigureLCRCompensationRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureLCRCompensationResponse.SerializeToString, - ), - 'PerformLCROpenCustomCableCompensation': grpc.unary_unary_rpc_method_handler( - servicer.PerformLCROpenCustomCableCompensation, - request_deserializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationRequest.FromString, - response_serializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationResponse.SerializeToString, - ), - 'PerformLCRShortCustomCableCompensation': grpc.unary_unary_rpc_method_handler( - servicer.PerformLCRShortCustomCableCompensation, - request_deserializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationRequest.FromString, - response_serializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationResponse.SerializeToString, - ), - 'GetLCRCompensationData': grpc.unary_unary_rpc_method_handler( - servicer.GetLCRCompensationData, - request_deserializer=nidcpower__pb2.GetLCRCompensationDataRequest.FromString, - response_serializer=nidcpower__pb2.GetLCRCompensationDataResponse.SerializeToString, - ), - 'InitializeWithIndependentChannels': grpc.unary_unary_rpc_method_handler( - servicer.InitializeWithIndependentChannels, - request_deserializer=nidcpower__pb2.InitializeWithIndependentChannelsRequest.FromString, - response_serializer=nidcpower__pb2.InitializeWithIndependentChannelsResponse.SerializeToString, - ), - 'ConfigureSourceModeWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSourceModeWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSourceModeWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSourceModeWithChannelsResponse.SerializeToString, - ), - 'CreateAdvancedSequenceWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.CreateAdvancedSequenceWithChannels, - request_deserializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsResponse.SerializeToString, - ), - 'CreateAdvancedSequenceStepWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.CreateAdvancedSequenceStepWithChannels, - request_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsResponse.SerializeToString, - ), - 'CreateAdvancedSequenceCommitStepWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.CreateAdvancedSequenceCommitStepWithChannels, - request_deserializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsResponse.SerializeToString, - ), - 'DeleteAdvancedSequenceWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAdvancedSequenceWithChannels, - request_deserializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsResponse.SerializeToString, - ), - 'CommitWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.CommitWithChannels, - request_deserializer=nidcpower__pb2.CommitWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.CommitWithChannelsResponse.SerializeToString, - ), - 'InitiateWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.InitiateWithChannels, - request_deserializer=nidcpower__pb2.InitiateWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.InitiateWithChannelsResponse.SerializeToString, - ), - 'AbortWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.AbortWithChannels, - request_deserializer=nidcpower__pb2.AbortWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.AbortWithChannelsResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeStartTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeStartTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeStartTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeStartTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse.SerializeToString, - ), - 'DisableStartTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.DisableStartTriggerWithChannels, - request_deserializer=nidcpower__pb2.DisableStartTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.DisableStartTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse.SerializeToString, - ), - 'DisableSequenceAdvanceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.DisableSequenceAdvanceTriggerWithChannels, - request_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeSourceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeSourceTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeSourceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeSourceTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse.SerializeToString, - ), - 'DisableSourceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.DisableSourceTriggerWithChannels, - request_deserializer=nidcpower__pb2.DisableSourceTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.DisableSourceTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeMeasureTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeMeasureTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeMeasureTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeMeasureTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureDigitalEdgePulseTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgePulseTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgePulseTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgePulseTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse.SerializeToString, - ), - 'DisablePulseTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.DisablePulseTriggerWithChannels, - request_deserializer=nidcpower__pb2.DisablePulseTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.DisablePulseTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeShutdownTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeShutdownTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeShutdownTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeShutdownTriggerWithChannels, - request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse.SerializeToString, - ), - 'DisableShutdownTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.DisableShutdownTriggerWithChannels, - request_deserializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsResponse.SerializeToString, - ), - 'ExportSignalWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignalWithChannels, - request_deserializer=nidcpower__pb2.ExportSignalWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ExportSignalWithChannelsResponse.SerializeToString, - ), - 'SendSoftwareEdgeTriggerWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareEdgeTriggerWithChannels, - request_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsResponse.SerializeToString, - ), - 'WaitForEventWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.WaitForEventWithChannels, - request_deserializer=nidcpower__pb2.WaitForEventWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.WaitForEventWithChannelsResponse.SerializeToString, - ), - 'ResetWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithChannels, - request_deserializer=nidcpower__pb2.ResetWithChannelsRequest.FromString, - response_serializer=nidcpower__pb2.ResetWithChannelsResponse.SerializeToString, - ), - 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( - servicer.InvalidateAllAttributes, - request_deserializer=nidcpower__pb2.InvalidateAllAttributesRequest.FromString, - response_serializer=nidcpower__pb2.InvalidateAllAttributesResponse.SerializeToString, - ), - 'ConfigureOvp': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOvp, - request_deserializer=nidcpower__pb2.ConfigureOvpRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureOvpResponse.SerializeToString, - ), - 'ErrorQuery': grpc.unary_unary_rpc_method_handler( - servicer.ErrorQuery, - request_deserializer=nidcpower__pb2.ErrorQueryRequest.FromString, - response_serializer=nidcpower__pb2.ErrorQueryResponse.SerializeToString, - ), - 'GetLCRCustomCableCompensationData': grpc.unary_unary_rpc_method_handler( - servicer.GetLCRCustomCableCompensationData, - request_deserializer=nidcpower__pb2.GetLCRCustomCableCompensationDataRequest.FromString, - response_serializer=nidcpower__pb2.GetLCRCustomCableCompensationDataResponse.SerializeToString, - ), - 'ConfigureLCRCustomCableCompensation': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureLCRCustomCableCompensation, - request_deserializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationRequest.FromString, - response_serializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nidcpower_grpc.NiDCPower', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiDCPower(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def InitializeWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InitializeWithChannels', - nidcpower__pb2.InitializeWithChannelsRequest.SerializeToString, - nidcpower__pb2.InitializeWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Close', - nidcpower__pb2.CloseRequest.SerializeToString, - nidcpower__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSourceMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSourceMode', - nidcpower__pb2.ConfigureSourceModeRequest.SerializeToString, - nidcpower__pb2.ConfigureSourceModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOutputFunction', - nidcpower__pb2.ConfigureOutputFunctionRequest.SerializeToString, - nidcpower__pb2.ConfigureOutputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputEnabled(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOutputEnabled', - nidcpower__pb2.ConfigureOutputEnabledRequest.SerializeToString, - nidcpower__pb2.ConfigureOutputEnabledResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetSequence', - nidcpower__pb2.SetSequenceRequest.SerializeToString, - nidcpower__pb2.SetSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureVoltageLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevel', - nidcpower__pb2.ConfigureVoltageLevelRequest.SerializeToString, - nidcpower__pb2.ConfigureVoltageLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCurrentLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimit', - nidcpower__pb2.ConfigureCurrentLimitRequest.SerializeToString, - nidcpower__pb2.ConfigureCurrentLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureVoltageLevelRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevelRange', - nidcpower__pb2.ConfigureVoltageLevelRangeRequest.SerializeToString, - nidcpower__pb2.ConfigureVoltageLevelRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCurrentLimitRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimitRange', - nidcpower__pb2.ConfigureCurrentLimitRangeRequest.SerializeToString, - nidcpower__pb2.ConfigureCurrentLimitRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputResistance(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOutputResistance', - nidcpower__pb2.ConfigureOutputResistanceRequest.SerializeToString, - nidcpower__pb2.ConfigureOutputResistanceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCurrentLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevel', - nidcpower__pb2.ConfigureCurrentLevelRequest.SerializeToString, - nidcpower__pb2.ConfigureCurrentLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCurrentLevelRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevelRange', - nidcpower__pb2.ConfigureCurrentLevelRangeRequest.SerializeToString, - nidcpower__pb2.ConfigureCurrentLevelRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureVoltageLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimit', - nidcpower__pb2.ConfigureVoltageLimitRequest.SerializeToString, - nidcpower__pb2.ConfigureVoltageLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureVoltageLimitRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimitRange', - nidcpower__pb2.ConfigureVoltageLimitRangeRequest.SerializeToString, - nidcpower__pb2.ConfigureVoltageLimitRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseVoltageLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevel', - nidcpower__pb2.ConfigurePulseVoltageLevelRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseVoltageLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseCurrentLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimit', - nidcpower__pb2.ConfigurePulseCurrentLimitRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseCurrentLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseBiasVoltageLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLevel', - nidcpower__pb2.ConfigurePulseBiasVoltageLevelRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseBiasVoltageLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseBiasCurrentLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLimit', - nidcpower__pb2.ConfigurePulseBiasCurrentLimitRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseBiasCurrentLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseVoltageLevelRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevelRange', - nidcpower__pb2.ConfigurePulseVoltageLevelRangeRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseVoltageLevelRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseCurrentLimitRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimitRange', - nidcpower__pb2.ConfigurePulseCurrentLimitRangeRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseCurrentLimitRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseCurrentLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevel', - nidcpower__pb2.ConfigurePulseCurrentLevelRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseCurrentLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseVoltageLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimit', - nidcpower__pb2.ConfigurePulseVoltageLimitRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseVoltageLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseBiasCurrentLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLevel', - nidcpower__pb2.ConfigurePulseBiasCurrentLevelRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseBiasCurrentLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseBiasVoltageLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLimit', - nidcpower__pb2.ConfigurePulseBiasVoltageLimitRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseBiasVoltageLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseCurrentLevelRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevelRange', - nidcpower__pb2.ConfigurePulseCurrentLevelRangeRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseCurrentLevelRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePulseVoltageLimitRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimitRange', - nidcpower__pb2.ConfigurePulseVoltageLimitRangeRequest.SerializeToString, - nidcpower__pb2.ConfigurePulseVoltageLimitRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAdvancedSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequence', - nidcpower__pb2.CreateAdvancedSequenceRequest.SerializeToString, - nidcpower__pb2.CreateAdvancedSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAdvancedSequenceStep(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStep', - nidcpower__pb2.CreateAdvancedSequenceStepRequest.SerializeToString, - nidcpower__pb2.CreateAdvancedSequenceStepResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAdvancedSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequence', - nidcpower__pb2.DeleteAdvancedSequenceRequest.SerializeToString, - nidcpower__pb2.DeleteAdvancedSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureApertureTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureApertureTime', - nidcpower__pb2.ConfigureApertureTimeRequest.SerializeToString, - nidcpower__pb2.ConfigureApertureTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureAutoZero(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureAutoZero', - nidcpower__pb2.ConfigureAutoZeroRequest.SerializeToString, - nidcpower__pb2.ConfigureAutoZeroResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePowerLineFrequency(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePowerLineFrequency', - nidcpower__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, - nidcpower__pb2.ConfigurePowerLineFrequencyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSense(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSense', - nidcpower__pb2.ConfigureSenseRequest.SerializeToString, - nidcpower__pb2.ConfigureSenseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Measure(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Measure', - nidcpower__pb2.MeasureRequest.SerializeToString, - nidcpower__pb2.MeasureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MeasureMultiple(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/MeasureMultiple', - nidcpower__pb2.MeasureMultipleRequest.SerializeToString, - nidcpower__pb2.MeasureMultipleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchMultiple(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/FetchMultiple', - nidcpower__pb2.FetchMultipleRequest.SerializeToString, - nidcpower__pb2.FetchMultipleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MeasureMultipleLCR(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/MeasureMultipleLCR', - nidcpower__pb2.MeasureMultipleLCRRequest.SerializeToString, - nidcpower__pb2.MeasureMultipleLCRResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchMultipleLCR(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/FetchMultipleLCR', - nidcpower__pb2.FetchMultipleLCRRequest.SerializeToString, - nidcpower__pb2.FetchMultipleLCRResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryInCompliance(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryInCompliance', - nidcpower__pb2.QueryInComplianceRequest.SerializeToString, - nidcpower__pb2.QueryInComplianceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryOutputState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryOutputState', - nidcpower__pb2.QueryOutputStateRequest.SerializeToString, - nidcpower__pb2.QueryOutputStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryLatchedOutputCutoffState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryLatchedOutputCutoffState', - nidcpower__pb2.QueryLatchedOutputCutoffStateRequest.SerializeToString, - nidcpower__pb2.QueryLatchedOutputCutoffStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearLatchedOutputCutoffState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ClearLatchedOutputCutoffState', - nidcpower__pb2.ClearLatchedOutputCutoffStateRequest.SerializeToString, - nidcpower__pb2.ClearLatchedOutputCutoffStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Commit', - nidcpower__pb2.CommitRequest.SerializeToString, - nidcpower__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Initiate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Initiate', - nidcpower__pb2.InitiateRequest.SerializeToString, - nidcpower__pb2.InitiateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Abort', - nidcpower__pb2.AbortRequest.SerializeToString, - nidcpower__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryMaxCurrentLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryMaxCurrentLimit', - nidcpower__pb2.QueryMaxCurrentLimitRequest.SerializeToString, - nidcpower__pb2.QueryMaxCurrentLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryMaxVoltageLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryMaxVoltageLevel', - nidcpower__pb2.QueryMaxVoltageLevelRequest.SerializeToString, - nidcpower__pb2.QueryMaxVoltageLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryMinCurrentLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryMinCurrentLimit', - nidcpower__pb2.QueryMinCurrentLimitRequest.SerializeToString, - nidcpower__pb2.QueryMinCurrentLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CalSelfCalibrate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CalSelfCalibrate', - nidcpower__pb2.CalSelfCalibrateRequest.SerializeToString, - nidcpower__pb2.CalSelfCalibrateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalRecommendedInterval(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetExtCalRecommendedInterval', - nidcpower__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - nidcpower__pb2.GetExtCalRecommendedIntervalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetExtCalLastDateAndTime', - nidcpower__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, - nidcpower__pb2.GetExtCalLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadCurrentTemperature(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ReadCurrentTemperature', - nidcpower__pb2.ReadCurrentTemperatureRequest.SerializeToString, - nidcpower__pb2.ReadCurrentTemperatureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalLastTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetExtCalLastTemp', - nidcpower__pb2.GetExtCalLastTempRequest.SerializeToString, - nidcpower__pb2.GetExtCalLastTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetSelfCalLastDateAndTime', - nidcpower__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, - nidcpower__pb2.GetSelfCalLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalLastTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetSelfCalLastTemp', - nidcpower__pb2.GetSelfCalLastTempRequest.SerializeToString, - nidcpower__pb2.GetSelfCalLastTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLCRCompensationLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetLCRCompensationLastDateAndTime', - nidcpower__pb2.GetLCRCompensationLastDateAndTimeRequest.SerializeToString, - nidcpower__pb2.GetLCRCompensationLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTrigger', - nidcpower__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTrigger', - nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableStartTrigger', - nidcpower__pb2.DisableStartTriggerRequest.SerializeToString, - nidcpower__pb2.DisableStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeSequenceAdvanceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTrigger', - nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeSequenceAdvanceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTrigger', - nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableSequenceAdvanceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTrigger', - nidcpower__pb2.DisableSequenceAdvanceTriggerRequest.SerializeToString, - nidcpower__pb2.DisableSequenceAdvanceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeSourceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTrigger', - nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeSourceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTrigger', - nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableSourceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSourceTrigger', - nidcpower__pb2.DisableSourceTriggerRequest.SerializeToString, - nidcpower__pb2.DisableSourceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeMeasureTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTrigger', - nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeMeasureTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTrigger', - nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgePulseTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTrigger', - nidcpower__pb2.ConfigureDigitalEdgePulseTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgePulseTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgePulseTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTrigger', - nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisablePulseTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisablePulseTrigger', - nidcpower__pb2.DisablePulseTriggerRequest.SerializeToString, - nidcpower__pb2.DisablePulseTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportSignal', - nidcpower__pb2.ExportSignalRequest.SerializeToString, - nidcpower__pb2.ExportSignalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareEdgeTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTrigger', - nidcpower__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - nidcpower__pb2.SendSoftwareEdgeTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitForEvent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/WaitForEvent', - nidcpower__pb2.WaitForEventRequest.SerializeToString, - nidcpower__pb2.WaitForEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Disable', - nidcpower__pb2.DisableRequest.SerializeToString, - nidcpower__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Reset', - nidcpower__pb2.ResetRequest.SerializeToString, - nidcpower__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetDevice', - nidcpower__pb2.ResetDeviceRequest.SerializeToString, - nidcpower__pb2.ResetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SelfTest', - nidcpower__pb2.SelfTestRequest.SerializeToString, - nidcpower__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/RevisionQuery', - nidcpower__pb2.RevisionQueryRequest.SerializeToString, - nidcpower__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetWithDefaults', - nidcpower__pb2.ResetWithDefaultsRequest.SerializeToString, - nidcpower__pb2.ResetWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetChannelName', - nidcpower__pb2.GetChannelNameRequest.SerializeToString, - nidcpower__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelNameFromString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetChannelNameFromString', - nidcpower__pb2.GetChannelNameFromStringRequest.SerializeToString, - nidcpower__pb2.GetChannelNameFromStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNextCoercionRecord(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetNextCoercionRecord', - nidcpower__pb2.GetNextCoercionRecordRequest.SerializeToString, - nidcpower__pb2.GetNextCoercionRecordResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearInterchangeWarnings(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ClearInterchangeWarnings', - nidcpower__pb2.ClearInterchangeWarningsRequest.SerializeToString, - nidcpower__pb2.ClearInterchangeWarningsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetInterchangeCheck(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetInterchangeCheck', - nidcpower__pb2.ResetInterchangeCheckRequest.SerializeToString, - nidcpower__pb2.ResetInterchangeCheckResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNextInterchangeWarning(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetNextInterchangeWarning', - nidcpower__pb2.GetNextInterchangeWarningRequest.SerializeToString, - nidcpower__pb2.GetNextInterchangeWarningResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetError', - nidcpower__pb2.GetErrorRequest.SerializeToString, - nidcpower__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ClearError', - nidcpower__pb2.ClearErrorRequest.SerializeToString, - nidcpower__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ErrorMessage', - nidcpower__pb2.ErrorMessageRequest.SerializeToString, - nidcpower__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViInt32', - nidcpower__pb2.SetAttributeViInt32Request.SerializeToString, - nidcpower__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViInt64', - nidcpower__pb2.SetAttributeViInt64Request.SerializeToString, - nidcpower__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViReal64', - nidcpower__pb2.SetAttributeViReal64Request.SerializeToString, - nidcpower__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViString', - nidcpower__pb2.SetAttributeViStringRequest.SerializeToString, - nidcpower__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViSession', - nidcpower__pb2.SetAttributeViSessionRequest.SerializeToString, - nidcpower__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViBoolean', - nidcpower__pb2.SetAttributeViBooleanRequest.SerializeToString, - nidcpower__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViInt32', - nidcpower__pb2.GetAttributeViInt32Request.SerializeToString, - nidcpower__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViInt64', - nidcpower__pb2.GetAttributeViInt64Request.SerializeToString, - nidcpower__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViReal64', - nidcpower__pb2.GetAttributeViReal64Request.SerializeToString, - nidcpower__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViString', - nidcpower__pb2.GetAttributeViStringRequest.SerializeToString, - nidcpower__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViSession', - nidcpower__pb2.GetAttributeViSessionRequest.SerializeToString, - nidcpower__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViBoolean', - nidcpower__pb2.GetAttributeViBooleanRequest.SerializeToString, - nidcpower__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationFile', - nidcpower__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - nidcpower__pb2.ImportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationFile', - nidcpower__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - nidcpower__pb2.ExportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationBuffer', - nidcpower__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - nidcpower__pb2.ImportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationBuffer', - nidcpower__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - nidcpower__pb2.ExportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformLCROpenCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCROpenCompensation', - nidcpower__pb2.PerformLCROpenCompensationRequest.SerializeToString, - nidcpower__pb2.PerformLCROpenCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformLCRShortCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCRShortCompensation', - nidcpower__pb2.PerformLCRShortCompensationRequest.SerializeToString, - nidcpower__pb2.PerformLCRShortCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformLCRLoadCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCRLoadCompensation', - nidcpower__pb2.PerformLCRLoadCompensationRequest.SerializeToString, - nidcpower__pb2.PerformLCRLoadCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureLCRCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureLCRCompensation', - nidcpower__pb2.ConfigureLCRCompensationRequest.SerializeToString, - nidcpower__pb2.ConfigureLCRCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformLCROpenCustomCableCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCROpenCustomCableCompensation', - nidcpower__pb2.PerformLCROpenCustomCableCompensationRequest.SerializeToString, - nidcpower__pb2.PerformLCROpenCustomCableCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformLCRShortCustomCableCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCRShortCustomCableCompensation', - nidcpower__pb2.PerformLCRShortCustomCableCompensationRequest.SerializeToString, - nidcpower__pb2.PerformLCRShortCustomCableCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLCRCompensationData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetLCRCompensationData', - nidcpower__pb2.GetLCRCompensationDataRequest.SerializeToString, - nidcpower__pb2.GetLCRCompensationDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitializeWithIndependentChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InitializeWithIndependentChannels', - nidcpower__pb2.InitializeWithIndependentChannelsRequest.SerializeToString, - nidcpower__pb2.InitializeWithIndependentChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSourceModeWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSourceModeWithChannels', - nidcpower__pb2.ConfigureSourceModeWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSourceModeWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAdvancedSequenceWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceWithChannels', - nidcpower__pb2.CreateAdvancedSequenceWithChannelsRequest.SerializeToString, - nidcpower__pb2.CreateAdvancedSequenceWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAdvancedSequenceStepWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStepWithChannels', - nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsRequest.SerializeToString, - nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAdvancedSequenceCommitStepWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceCommitStepWithChannels', - nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsRequest.SerializeToString, - nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAdvancedSequenceWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequenceWithChannels', - nidcpower__pb2.DeleteAdvancedSequenceWithChannelsRequest.SerializeToString, - nidcpower__pb2.DeleteAdvancedSequenceWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CommitWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CommitWithChannels', - nidcpower__pb2.CommitWithChannelsRequest.SerializeToString, - nidcpower__pb2.CommitWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitiateWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InitiateWithChannels', - nidcpower__pb2.InitiateWithChannelsRequest.SerializeToString, - nidcpower__pb2.InitiateWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AbortWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/AbortWithChannels', - nidcpower__pb2.AbortWithChannelsRequest.SerializeToString, - nidcpower__pb2.AbortWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeStartTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTriggerWithChannels', - nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeStartTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTriggerWithChannels', - nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableStartTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableStartTriggerWithChannels', - nidcpower__pb2.DisableStartTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.DisableStartTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels', - nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels', - nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableSequenceAdvanceTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTriggerWithChannels', - nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeSourceTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTriggerWithChannels', - nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeSourceTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTriggerWithChannels', - nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableSourceTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSourceTriggerWithChannels', - nidcpower__pb2.DisableSourceTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.DisableSourceTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeMeasureTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTriggerWithChannels', - nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeMeasureTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTriggerWithChannels', - nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgePulseTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTriggerWithChannels', - nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgePulseTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTriggerWithChannels', - nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisablePulseTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisablePulseTriggerWithChannels', - nidcpower__pb2.DisablePulseTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.DisablePulseTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeShutdownTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeShutdownTriggerWithChannels', - nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeShutdownTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeShutdownTriggerWithChannels', - nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableShutdownTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableShutdownTriggerWithChannels', - nidcpower__pb2.DisableShutdownTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.DisableShutdownTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignalWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportSignalWithChannels', - nidcpower__pb2.ExportSignalWithChannelsRequest.SerializeToString, - nidcpower__pb2.ExportSignalWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareEdgeTriggerWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTriggerWithChannels', - nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsRequest.SerializeToString, - nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitForEventWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/WaitForEventWithChannels', - nidcpower__pb2.WaitForEventWithChannelsRequest.SerializeToString, - nidcpower__pb2.WaitForEventWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetWithChannels', - nidcpower__pb2.ResetWithChannelsRequest.SerializeToString, - nidcpower__pb2.ResetWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InvalidateAllAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InvalidateAllAttributes', - nidcpower__pb2.InvalidateAllAttributesRequest.SerializeToString, - nidcpower__pb2.InvalidateAllAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOvp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOvp', - nidcpower__pb2.ConfigureOvpRequest.SerializeToString, - nidcpower__pb2.ConfigureOvpResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ErrorQuery', - nidcpower__pb2.ErrorQueryRequest.SerializeToString, - nidcpower__pb2.ErrorQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLCRCustomCableCompensationData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetLCRCustomCableCompensationData', - nidcpower__pb2.GetLCRCustomCableCompensationDataRequest.SerializeToString, - nidcpower__pb2.GetLCRCustomCableCompensationDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureLCRCustomCableCompensation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureLCRCustomCableCompensation', - nidcpower__pb2.ConfigureLCRCustomCableCompensationRequest.SerializeToString, - nidcpower__pb2.ConfigureLCRCustomCableCompensationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nidcpower/nidcpower/nidevice_pb2.py b/generated/nidcpower/nidcpower/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nidcpower/nidcpower/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nidcpower/nidcpower/nidevice_pb2_grpc.py b/generated/nidcpower/nidcpower/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nidcpower/nidcpower/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nidcpower/nidcpower/session.py b/generated/nidcpower/nidcpower/session.py deleted file mode 100644 index 3a9ff00714..0000000000 --- a/generated/nidcpower/nidcpower/session.py +++ /dev/null @@ -1,8589 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nidcpower._attributes as _attributes -import nidcpower._converters as _converters -import nidcpower._library_interpreter as _library_interpreter -import nidcpower.enums as enums -import nidcpower.errors as errors - -import nidcpower.lcr_measurement as lcr_measurement # noqa: F401 - -import nidcpower.lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 - -import hightime - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Acquisition(object): - def __init__(self, session): - self._session = session - self._session._initiate_with_channels() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-DCPower sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - active_advanced_sequence = _attributes.AttributeViString(1150074) - '''Type: str - - Specifies the advanced sequence to configure or generate. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.active_advanced_sequence` - ''' - active_advanced_sequence_step = _attributes.AttributeViInt64(1150075) - '''Type: int - - Specifies the advanced sequence step to configure. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence_step` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.active_advanced_sequence_step` - ''' - actual_power_allocation = _attributes.AttributeViReal64(1150205) - '''Type: float - - Returns the power, in watts, the device is sourcing on each active channel if the power_allocation_mode property is set to PowerAllocationMode.AUTOMATIC or PowerAllocationMode.MANUAL. - - Valid Values: [0, device per-channel maximum power] - - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - This property returns -1 when the power_allocation_mode property is set to PowerAllocationMode.DISABLED. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].actual_power_allocation` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.actual_power_allocation` - ''' - aperture_time = _attributes.AttributeViReal64(1150058) - '''Type: float - - Specifies the measurement aperture time for the channel configuration. Aperture time is specified in the units set by the aperture_time_units property. - Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. - Default Value: 0.01666666 seconds - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].aperture_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.aperture_time` - ''' - aperture_time_auto_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeAutoMode, 1150314) - '''Type: enums.ApertureTimeAutoMode - - Automatically optimizes the measurement aperture time according to the actual current range when measurement autorange is enabled. - Optimization accounts for power line frequency when the aperture_time_units property is set to ApertureTimeUnits.POWER_LINE_CYCLES. - - This property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE and the autorange property is enabled. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].aperture_time_auto_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.aperture_time_auto_mode` - ''' - aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeUnits, 1150059) - '''Type: enums.ApertureTimeUnits - - Specifies the units of the aperture_time property for the channel configuration. - Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. - Default Value: ApertureTimeUnits.SECONDS - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].aperture_time_units` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.aperture_time_units` - ''' - autorange = _attributes.AttributeViInt32(1150244) - '''Type: bool - - Specifies whether the hardware automatically selects the best range to measure the signal. Note the highest range the algorithm uses is dependent on the corresponding limit range property. The algorithm the hardware uses can be controlled using the autorange_aperture_time_mode property. - - Note: - Autoranging begins at module startup and remains active until the module is reconfigured or reset. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange` - ''' - autorange_aperture_time_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutorangeApertureTimeMode, 1150246) - '''Type: enums.AutorangeApertureTimeMode - - Specifies whether the aperture time used for the measurement autorange algorithm is determined automatically or customized using the autorange_minimum_aperture_time property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_aperture_time_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_aperture_time_mode` - ''' - autorange_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutorangeBehavior, 1150245) - '''Type: enums.AutorangeBehavior - - Specifies the algorithm the hardware uses for measurement autoranging. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_behavior` - ''' - autorange_maximum_delay_after_range_change = _attributes.AttributeViReal64TimeDeltaSeconds(1150322) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Balances between settling time and maximum measurement time by specifying the maximum time delay between when a range change occurs and when measurements resume. - **Valid Values:** The minimum and maximum values of this property are hardware-dependent. - PXIe-4135/4136/4137: 0 to 9 seconds - PXIe-4138/4139: 0 to 9 seconds - PXIe-4147: 0 to 9 seconds - PXIe-4162/4163: 0 to 0.1 seconds. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_maximum_delay_after_range_change` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_maximum_delay_after_range_change` - ''' - autorange_minimum_aperture_time = _attributes.AttributeViReal64(1150247) - '''Type: float - - Specifies the measurement autorange aperture time used for the measurement autorange algorithm. The aperture time is specified in the units set by the autorange_minimum_aperture_time_units property. This value will typically be smaller than the aperture time used for measurements. - - Note: For smaller ranges, the value is scaled up to account for noise. The factor used to scale the value is derived from the module capabilities. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_aperture_time` - ''' - autorange_minimum_aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeUnits, 1150248) - '''Type: enums.ApertureTimeUnits - - Specifies the units of the autorange_minimum_aperture_time property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time_units` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_aperture_time_units` - ''' - autorange_minimum_current_range = _attributes.AttributeViReal64(1150255) - '''Type: float - - Specifies the lowest range used during measurement autoranging. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and minimize frequent and unpredictable range changes for noisy signals. - - Note: The maximum range used is the range that includes the value specified in the compliance limit property, voltage_limit_range property or current_limit_range property, depending on the selected output_function. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_current_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_current_range` - ''' - autorange_minimum_voltage_range = _attributes.AttributeViReal64(1150256) - '''Type: float - - Specifies the lowest range used during measurement autoranging. The maximum range used is range that includes the value specified in the compliance limit property. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and/or minimize thrashing between ranges for noisy signals. - - Note: The maximum range used is the range that includes the value specified in the compliance limit property, voltage_limit_range property or current_limit_range property, depending on the selected output_function. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_voltage_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_minimum_voltage_range` - ''' - autorange_threshold_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutorangeThresholdMode, 1150257) - '''Type: enums.AutorangeThresholdMode - - Specifies thresholds used during autoranging to determine when range changing occurs. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].autorange_threshold_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.autorange_threshold_mode` - ''' - auto_zero = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutoZero, 1150055) - '''Type: enums.AutoZero - - Specifies the auto-zero method to use on the device. - Refer to the NI PXI-4132 Measurement Configuration and Timing and Auto Zero topics for more information about how to configure your measurements. - Default Value: The default value for the NI PXI-4132 is AutoZero.ON. The default value for all other devices is AutoZero.OFF, which is the only supported value for these devices. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].auto_zero` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.auto_zero` - ''' - auxiliary_power_source_available = _attributes.AttributeViBoolean(1150002) - '''Type: bool - - Indicates whether an auxiliary power source is connected to the device. - A value of False may indicate that the auxiliary input fuse has blown. Refer to the Detecting Internal/Auxiliary Power topic in the NI DC Power Supplies and SMUs Help for more information about internal and auxiliary power. - power source to generate power. Use the power_source_in_use property to retrieve this information. - - Note: This property does not necessarily indicate if the device is using the auxiliary - ''' - cable_length = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.CableLength, 1150278) - '''Type: enums.CableLength - - Specifies how to apply cable compensation data for instruments that support LCR functionality. - Supported instruments use cable compensation for the following operations: - - SMU mode: to stabilize DC current sourcing in the two smallest current ranges. - LCR mode: to compensate for the effects of cabling on LCR measurements. - - For NI standard options, select the length of your NI cable to apply compensation data for a typical cable of that type. - For custom options, choose the source of the custom cable compensation data. You must then generate the custom cable compensation data. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].cable_length` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.cable_length` - ''' - channel_count = _attributes.AttributeViInt32(1050203) - '''Type: int - - Indicates the number of channels that NI-DCPower supports for the instrument that was chosen when the current session was opened. For channel-based properties, the IVI engine maintains a separate cache value for each channel. - ''' - compliance_limit_symmetry = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ComplianceLimitSymmetry, 1150184) - '''Type: enums.ComplianceLimitSymmetry - - Specifies whether compliance limits for current generation and voltage - generation for the device are applied symmetrically about 0 V and 0 A or - asymmetrically with respect to 0 V and 0 A. - When set to ComplianceLimitSymmetry.SYMMETRIC, voltage limits and current limits are set - using a single property with a positive value. The resulting range is - bounded by this positive value and its opposite. - When set to ComplianceLimitSymmetry.ASYMMETRIC, you must separately set a limit high and a - limit low using distinct properties. - For asymmetric limits, the range bounded by the limit high and limit low - must include zero. - **Default Value:** Symmetric - **Related Topics:** - Compliance; - Ranges; - Changing Ranges; - Overranging - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].compliance_limit_symmetry` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.compliance_limit_symmetry` - ''' - conduction_voltage_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ConductionVoltageMode, 1150350) - '''Type: enums.ConductionVoltageMode - - Specifies whether the conduction voltage feature is enabled on the specified channel(s). - - When the conduction voltage feature is enabled, - - The instrument will not begin sinking on the specified channel(s) until the voltage at the input of the specified channel(s) rises above conduction_voltage_on_threshold - - The instrument will stop sinking if the voltage at the input of the specified channel(s) falls below conduction_voltage_off_threshold. - - When the conduction voltage feature is disabled, - - The instrument will start sinking regardless of the voltage at the input of the specified channel(s). - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.conduction_voltage_mode` - ''' - conduction_voltage_off_threshold = _attributes.AttributeViReal64(1150352) - '''Type: float - - Specifies the minimum voltage, in volts, at the input of the specified channel(s) below which the instrument stops sinking on the specified channel(s) when the conduction voltage feature is enabled. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_off_threshold` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.conduction_voltage_off_threshold` - ''' - conduction_voltage_on_threshold = _attributes.AttributeViReal64(1150351) - '''Type: float - - Specifies the required minimum voltage, in volts, at the input of the specified channel(s) before the instrument starts sinking on the specified channel(s) when the conduction voltage feature is enabled. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_on_threshold` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.conduction_voltage_on_threshold` - ''' - constant_power_compensation_frequency = _attributes.AttributeViReal64(1150360) - '''Type: float - - The frequency at which a pole-zero pair is added to the system when the output_function property is set to OutputFunction.CONSTANT_POWER and the output current is below the current limit. - - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_compensation_frequency` - ''' - constant_power_current_limit = _attributes.AttributeViReal64(1150361) - '''Type: float - - Specifies the current limit, in amps, that the output cannot exceed when generating the desired power level on the specified channel(s). - The device will operate in Constant Current mode if the current exceeds the specified limit. - This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_POWER and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. - - Valid Values: The valid values for this property are determined by the selected value for constant_power_level_range. - - Note: - The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_current_limit` - ''' - constant_power_gain_bandwidth = _attributes.AttributeViReal64(1150362) - '''Type: float - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the output_function property is set to OutputFunction.CONSTANT_POWER and the output current is below the current limit. - - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_gain_bandwidth` - ''' - constant_power_level = _attributes.AttributeViReal64(1150363) - '''Type: float - - Specifies the power level, in watts, that the device attempts to generate on the specified channel(s). - This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_POWER. - - Valid Values: The valid values for this property are determined by the selected value for constant_power_level_range. - - Note: - The channel must be enabled for the specified power level to take effect. Refer to the output_enabled property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_level` - ''' - constant_power_level_range = _attributes.AttributeViReal64(1150364) - '''Type: float - - Specifies the power level range, in watts, for the specified channel(s). - The range defines the valid values to which you can set the power level. - This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_POWER. - - For valid ranges, refer to the specifications for your instrument. - - Note: - The voltage range and current range used by the instrument are automatically determined by the selected power level range. For more information, refer to the specifications for your instrument. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_level_range` - ''' - constant_power_pole_zero_ratio = _attributes.AttributeViReal64(1150365) - '''Type: float - - The ratio of the pole frequency to the zero frequency when the output_function property is set to OutputFunction.CONSTANT_POWER and the output current is below the current limit. - - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_power_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_power_pole_zero_ratio` - ''' - constant_resistance_compensation_frequency = _attributes.AttributeViReal64(1150366) - '''Type: float - - The frequency at which a pole-zero pair is added to the system when the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the output current is below the current limit. - - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_compensation_frequency` - ''' - constant_resistance_current_limit = _attributes.AttributeViReal64(1150367) - '''Type: float - - Specifies the current limit, in amps, that the output cannot exceed when generating the desired resistance level on the specified channel(s). - The device will operate in Constant Current mode if the current exceeds the specified limit. - This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. - - Valid Values: The valid values for this property are determined by the selected value for constant_resistance_level_range. - - Note: - The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_current_limit` - ''' - constant_resistance_gain_bandwidth = _attributes.AttributeViReal64(1150368) - '''Type: float - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the output current is below the current limit. - - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_gain_bandwidth` - ''' - constant_resistance_level = _attributes.AttributeViReal64(1150369) - '''Type: float - - Specifies the resistance level, in ohms, that the device attempts to generate on the specified channel(s). - This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_RESISTANCE. - - Valid Values: The valid values for this property are determined by the selected value for constant_resistance_level_range. - - Note: - The channel must be enabled for the specified resistance level to take effect. Refer to the output_enabled property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_level` - ''' - constant_resistance_level_range = _attributes.AttributeViReal64(1150370) - '''Type: float - - Specifies the resistance level range, in ohms, for the specified channel(s). - The range defines the valid values to which you can set the resistance level. - This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_RESISTANCE. - - For valid ranges, refer to the specifications for your instrument. - - Note: - The voltage range and current range used by the instrument are automatically determined by the selected resistance level range. For more information, refer to the specifications for your instrument. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_level_range` - ''' - constant_resistance_pole_zero_ratio = _attributes.AttributeViReal64(1150371) - '''Type: float - - The ratio of the pole frequency to the zero frequency when the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the output current is below the current limit. - - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].constant_resistance_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.constant_resistance_pole_zero_ratio` - ''' - current_compensation_frequency = _attributes.AttributeViReal64(1150071) - '''Type: float - - The frequency at which a pole-zero pair is added to the system when the channel is in Constant Current mode. - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_compensation_frequency` - ''' - current_gain_bandwidth = _attributes.AttributeViReal64(1150070) - '''Type: float - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Current mode. - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_gain_bandwidth` - ''' - current_level = _attributes.AttributeViReal64(1150009) - '''Type: float - - Specifies the current level, in amps, that the device attempts to generate on the specified channel(s). - This property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. - - Valid Values: The valid values for this property are defined by the values to which the current_level_range property is set. - - Note: The channel must be enabled for the specified current level to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level` - ''' - current_level_autorange = _attributes.AttributeViInt32(1150017) - '''Type: bool - - Specifies whether NI-DCPower automatically selects the current level range based on the desired current level for the specified channels. - If you set this property to AutoZero.ON, NI-DCPower ignores any changes you make to the current_level_range property. If you change the current_level_autorange property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the current_level_range property was set to (or the default value if the property was never set) and uses that value as the current level range. - Query the current_level_range property by using the _get_attribute_vi_int32 method for information about which range NI-DCPower automatically selects. - The current_level_autorange property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. - Default Value: AutoZero.OFF - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_autorange` - ''' - current_level_falling_slew_rate = _attributes.AttributeViReal64(1150344) - '''Type: float - - Specifies the rate of decrease, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). - This property is applicable only if you set the output_function property to OutputFunction.DC_CURRENT. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_falling_slew_rate` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_falling_slew_rate` - ''' - current_level_range = _attributes.AttributeViReal64(1150011) - '''Type: float - - Specifies the current level range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the current level. Use the current_level_autorange property to enable automatic selection of the current level range. - The current_level_range property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. - - For valid ranges, refer to the specifications for your instrument. - - Note: The channel must be enabled for the specified current level range to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_range` - ''' - current_level_rising_slew_rate = _attributes.AttributeViReal64(1150343) - '''Type: float - - Specifies the rate of increase, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). - This property is applicable only if you set the output_function property to OutputFunction.DC_CURRENT. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_level_rising_slew_rate` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_level_rising_slew_rate` - ''' - current_limit = _attributes.AttributeViReal64(1250005) - '''Type: float - - Specifies the current limit, in amps, that the output cannot exceed when generating the desired voltage level on the specified channel(s). - This property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. - - Valid Values: The valid values for this property are defined by the values to which current_limit_range property is set. - - Note: - The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit` - ''' - current_limit_autorange = _attributes.AttributeViInt32(1150016) - '''Type: bool - - Specifies whether NI-DCPower automatically selects the current limit range based on the desired current limit for the specified channel(s). - If you set this property to AutoZero.ON, NI-DCPower ignores any changes you make to the current_limit_range property. If you change this property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the current_limit_range property was set to (or the default value if the property was never set) and uses that value as the current limit range. - Query the current_limit_range property by using the _get_attribute_vi_int32 method for information about which range NI-DCPower automatically selects. - The current_limit_autorange property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. - Default Value: AutoZero.OFF - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_autorange` - ''' - current_limit_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.CurrentLimitBehavior, 1250004) - '''Type: enums.CurrentLimitBehavior - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_behavior` - ''' - current_limit_high = _attributes.AttributeViReal64(1150187) - '''Type: float - - Specifies the maximum current, in amps, that the output can produce when - generating the desired voltage on the specified channel(s). - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_VOLTAGE. - You must also specify a current_limit_low to complete the asymmetric - range. - **Valid Values:** [1% of current_limit_range, current_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_high` - ''' - current_limit_low = _attributes.AttributeViReal64(1150188) - '''Type: float - - Specifies the minimum current, in amps, that the output can produce when - generating the desired voltage on the specified channel(s). - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_VOLTAGE. - You must also specify a current_limit_high to complete the asymmetric - range. - **Valid Values:** [-current_limit_range, -1% of current_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_low` - ''' - current_limit_range = _attributes.AttributeViReal64(1150004) - '''Type: float - - Specifies the current limit range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the current limit. Use the current_limit_autorange property to enable automatic selection of the current limit range. - The current_limit_range property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. - - For valid ranges, refer to the specifications for your instrument. - - Note: The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_limit_range` - ''' - current_pole_zero_ratio = _attributes.AttributeViReal64(1150072) - '''Type: float - - The ratio of the pole frequency to the zero frequency when the channel is in Constant Current mode. - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].current_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.current_pole_zero_ratio` - ''' - dc_noise_rejection = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DCNoiseRejection, 1150066) - '''Type: enums.DCNoiseRejection - - Determines the relative weighting of samples in a measurement. Refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic in the NI DC Power Supplies and SMUs Help for more information about noise rejection. - Default Value: TransientResponse.NORMAL - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].dc_noise_rejection` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.dc_noise_rejection` - ''' - digital_edge_measure_trigger_input_terminal = _attributes.AttributeViString(1150036) - '''Type: str - - Specifies the input terminal for the Measure trigger. This property is used only when the measure_trigger_type property is set to TriggerType.DIGITAL_EDGE. - for this property. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_measure_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_measure_trigger_input_terminal` - ''' - digital_edge_pulse_trigger_input_terminal = _attributes.AttributeViString(1150097) - '''Type: str - - Specifies the input terminal for the Pulse trigger. This property is used only when the pulse_trigger_type property is set to digital edge. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_pulse_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_pulse_trigger_input_terminal` - ''' - digital_edge_sequence_advance_trigger_input_terminal = _attributes.AttributeViString(1150028) - '''Type: str - - Specifies the input terminal for the Sequence Advance trigger. Use this property only when the sequence_advance_trigger_type property is set to TriggerType.DIGITAL_EDGE. - the NI DC Power Supplies and SMUs Help for information about supported devices. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_sequence_advance_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_sequence_advance_trigger_input_terminal` - ''' - digital_edge_shutdown_trigger_input_terminal = _attributes.AttributeViString(1150277) - '''Type: str - - Specifies the input terminal for the Shutdown trigger. This property is used only when the shutdown_trigger_type property is set to digital edge. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_shutdown_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_shutdown_trigger_input_terminal` - ''' - digital_edge_source_trigger_input_terminal = _attributes.AttributeViString(1150032) - '''Type: str - - Specifies the input terminal for the Source trigger. Use this property only when the source_trigger_type property is set to TriggerType.DIGITAL_EDGE. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_source_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_source_trigger_input_terminal` - ''' - digital_edge_start_trigger_input_terminal = _attributes.AttributeViString(1150023) - '''Type: str - - Specifies the input terminal for the Start trigger. Use this property only when the start_trigger_type property is set to TriggerType.DIGITAL_EDGE. - You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. - Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].digital_edge_start_trigger_input_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.digital_edge_start_trigger_input_terminal` - ''' - driver_setup = _attributes.AttributeViString(1050007) - '''Type: str - - Indicates the Driver Setup string that you specified when initializing the driver. - Some cases exist where you must specify the instrument driver options at initialization time. An example of this case is specifying a particular device model from among a family of devices that the driver supports. This property is useful when simulating a device. You can specify the driver-specific options through the DriverSetup keyword in the optionsString parameter in the __init__ method or through the IVI Configuration Utility. - You can specify driver-specific options through the DriverSetup keyword in the optionsString parameter in the __init__ method. If you do not specify a Driver Setup string, this property returns an empty string. - ''' - exported_measure_trigger_output_terminal = _attributes.AttributeViString(1150037) - '''Type: str - - Specifies the output terminal for exporting the Measure trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_measure_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_measure_trigger_output_terminal` - ''' - exported_pulse_trigger_output_terminal = _attributes.AttributeViString(1150098) - '''Type: str - - Specifies the output terminal for exporting the Pulse trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_pulse_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_pulse_trigger_output_terminal` - ''' - exported_sequence_advance_trigger_output_terminal = _attributes.AttributeViString(1150029) - '''Type: str - - Specifies the output terminal for exporting the Sequence Advance trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_sequence_advance_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_sequence_advance_trigger_output_terminal` - ''' - exported_source_trigger_output_terminal = _attributes.AttributeViString(1150033) - '''Type: str - - Specifies the output terminal for exporting the Source trigger. - Refer to the Device Routes tab in MAX for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_source_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_source_trigger_output_terminal` - ''' - exported_start_trigger_output_terminal = _attributes.AttributeViString(1150024) - '''Type: str - - Specifies the output terminal for exporting the Start trigger. - Refer to the Device Routes tab in Measurement & Automation Explorer (MAX) for a list of the terminals available on your device. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].exported_start_trigger_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.exported_start_trigger_output_terminal` - ''' - fetch_backlog = _attributes.AttributeViInt32(1150056) - '''Type: int - - Returns the number of measurements acquired that have not been fetched yet. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].fetch_backlog` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.fetch_backlog` - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - Contains the firmware revision information for the device you are currently using. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_firmware_revision` - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - Contains the name of the manufacturer for the device you are currently using. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_manufacturer` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_manufacturer` - ''' - instrument_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InstrumentMode, 1150208) - '''Type: enums.InstrumentMode - - Specifies the mode of operation for an instrument channel for instruments that support multiple modes. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].instrument_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_mode` - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - Contains the model number or name of the device that you are currently using. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_model` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.instrument_model` - ''' - interlock_input_open = _attributes.AttributeViBoolean(1150105) - '''Type: bool - - Indicates whether the safety interlock circuit is open. - Refer to the Safety Interlock topic in the NI DC Power Supplies and SMUs Help for more information about the safety interlock circuit. - about supported devices. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].interlock_input_open` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.interlock_input_open` - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Indicates the resource descriptor NI-DCPower uses to identify the physical device. - If you initialize NI-DCPower with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. - If you initialize NI-DCPower with the resource descriptor, this property contains that value. - ''' - isolation_state = _attributes.AttributeEnumWithConverter(_attributes.AttributeEnum(_attributes.AttributeViInt32, enums._IsolationState, 1150302), _converters.convert_from_isolation_state_enum, _converters.convert_to_isolation_state_enum) - '''Type: bool - - Defines whether the channel is isolated. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].isolation_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.isolation_state` - ''' - lcr_actual_load_reactance = _attributes.AttributeViReal64(1150271) - '''Type: float - - Specifies the actual reactance, in ohms, of the load used for load LCR compensation. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_reactance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_actual_load_reactance` - ''' - lcr_actual_load_resistance = _attributes.AttributeViReal64(1150270) - '''Type: float - - Specifies the actual resistance, in ohms, of the load used for load LCR compensation. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_actual_load_resistance` - ''' - lcr_ac_dither_enabled = _attributes.AttributeViBoolean(1150348) - '''Type: bool - - Specifies whether dithering is enabled during LCR measurements. - Dithering adds out-of-band noise to improve measurements of small voltage and current signals. - - Note: - Hardware is only warranted to meet its accuracy specs with dither enabled. You can disable dither if the added noise interferes with your device-under-test. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_ac_dither_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_ac_dither_enabled` - ''' - lcr_ac_electrical_cable_length_delay = _attributes.AttributeViReal64(1150309) - '''Type: float - - Specifies the one-way electrical length delay of the cable, in seconds. - The default value depends on cable_length. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_ac_electrical_cable_length_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_ac_electrical_cable_length_delay` - ''' - lcr_automatic_level_control = _attributes.AttributeViInt32(1150290) - '''Type: bool - - Specifies whether the channel actively attempts to maintain a constant test voltage or current across the DUT for LCR measurements. - The use of voltage or current depends on the test signal you configure with the lcr_stimulus_function property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_automatic_level_control` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_automatic_level_control` - ''' - lcr_current_amplitude = _attributes.AttributeViReal64(1150212) - '''Type: float - - Specifies the amplitude, in amps RMS, of the AC current test signal applied to the DUT for LCR measurements. - This property applies when the lcr_stimulus_function property is set to LCRStimulusFunction.CURRENT. - - Valid Values: 7.08e-9 A RMS to 0.707 A RMS - - Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_current_amplitude` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_current_amplitude` - ''' - lcr_current_range = _attributes.AttributeViReal64(1150267) - '''Type: float - - Specifies the current range, in amps RMS, for the specified channel(s). - The range defines the valid values to which you can set the lcr_current_amplitude. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_current_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_current_range` - ''' - lcr_custom_measurement_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150258) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the LCR measurement aperture time for a channel, in seconds, - when the lcr_measurement_time property is set to LCRMeasurementTime.CUSTOM. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_custom_measurement_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_custom_measurement_time` - ''' - lcr_dc_bias_automatic_level_control = _attributes.AttributeViInt32(1150291) - '''Type: bool - - Specifies whether the channel actively maintains a constant DC bias voltage or current across the DUT for LCR measurements. - To use this property, you must configure a DC bias by 1) selecting an lcr_dc_bias_source and 2) depending on the DC bias source you choose, setting either the lcr_dc_bias_voltage_level or lcr_dc_bias_current_level. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_automatic_level_control` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_automatic_level_control` - ''' - lcr_dc_bias_current_level = _attributes.AttributeViReal64(1150215) - '''Type: float - - Specifies the DC bias current level, in amps, when the lcr_dc_bias_source property is set to LCRDCBiasSource.CURRENT. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_current_level` - ''' - lcr_dc_bias_current_range = _attributes.AttributeViReal64(1150274) - '''Type: float - - Specifies the DC Bias current range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the lcr_dc_bias_current_level. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_current_range` - ''' - lcr_dc_bias_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRDCBiasSource, 1150213) - '''Type: enums.LCRDCBiasSource - - Specifies how to apply DC bias for LCR measurements. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_source` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_source` - ''' - lcr_dc_bias_transient_response = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRDCBiasTransientResponse, 1150347) - '''Type: enums.LCRDCBiasTransientResponse - - For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the transient response values for DC bias or applies the transient response you set manually. - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. - - Related Topics: Transient Response - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_transient_response` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_transient_response` - ''' - lcr_dc_bias_voltage_level = _attributes.AttributeViReal64(1150214) - '''Type: float - - Specifies the DC bias voltage level, in volts, when the lcr_dc_bias_source property is set to LCRDCBiasSource.VOLTAGE. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_voltage_level` - ''' - lcr_dc_bias_voltage_range = _attributes.AttributeViReal64(1150266) - '''Type: float - - Specifies the DC Bias voltage range, in volts, for the specified channel(s). - The range defines the valid values to which you can set the lcr_dc_bias_voltage_level. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_dc_bias_voltage_range` - ''' - lcr_frequency = _attributes.AttributeViReal64(1150210) - '''Type: float - - Specifies the frequency of the AC test signal applied to the DUT for LCR measurements. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_frequency` - ''' - lcr_impedance_auto_range = _attributes.AttributeEnumWithConverter(_attributes.AttributeEnum(_attributes.AttributeViInt32, enums._LCRImpedanceAutoRange, 1150216), _converters.convert_from_lcr_impedance_auto_range_enum, _converters.convert_to_lcr_impedance_auto_range_enum) - '''Type: bool - - Defines whether an instrument in LCR mode automatically selects the best impedance range for each given LCR measurement. - - Impedance autoranging may be enabled only when both: - - - The source_mode property is set to SourceMode.SINGLE_POINT - - measure_when is set to a value other than MeasureWhen.ON_MEASURE_TRIGGER - - You can read lcr_impedance_range back after a measurement to determine the actual range used. - - When enabled, impedance autoranging overrides impedance range settings you configure manually with any other properties. - - When using a load with unknown impedance, you can set this property to _LCRImpedanceAutoRange.ON to determine the correct impedance range for the load. When you know the load impedance, you can achieve faster performance by setting this property to _LCRImpedanceAutoRange.OFF and setting lcr_impedance_range_source to LCRImpedanceRangeSource.LOAD_CONFIGURATION. - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_auto_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_impedance_auto_range` - ''' - lcr_impedance_range = _attributes.AttributeViReal64(1150217) - '''Type: float - - Specifies the impedance range the channel uses for LCR measurements. - - Valid Values: 0 ohms to +inf ohms - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_impedance_range` - ''' - lcr_impedance_range_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRImpedanceRangeSource, 1150321) - '''Type: enums.LCRImpedanceRangeSource - - Specifies how the impedance range for LCR measurements is determined. - - "LCR_IMPEDANCE_AUTORANGE overrides any impedance range determined by this property. - - " - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range_source` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_impedance_range_source` - ''' - lcr_load_capacitance = _attributes.AttributeViReal64(1150320) - '''Type: float - - Specifies the load capacitance, in farads and assuming a series model, of the DUT in order to compute the impedance range when the lcr_impedance_range_source property is set to LCRImpedanceRangeSource.LOAD_CONFIGURATION. - - Valid values: (0 farads, +inf farads) - 0 is a special value that signifies +inf farads. - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_capacitance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_capacitance` - ''' - lcr_load_compensation_enabled = _attributes.AttributeViBoolean(1150222) - '''Type: bool - - Specifies whether to apply load LCR compensation data to LCR measurements. - Both the lcr_open_compensation_enabled and lcr_short_compensation_enabled properties must be set to True in order to set this property to True. - - Use the lcr_open_short_load_compensation_data_source property to define where the load compensation data that is applied to LCR measurements comes from. - - Note: - Load compensation data are applied only for those specific frequencies you define with perform_lcr_load_compensation; - load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_compensation_enabled` - ''' - lcr_load_inductance = _attributes.AttributeViReal64(1150319) - '''Type: float - - Specifies the load inductance, in henrys and assuming a series model, of the DUT in order to compute the impedance range when the lcr_impedance_range_source property is set to LCRImpedanceRangeSource.LOAD_CONFIGURATION. - - Valid values: [0 henrys, +inf henrys) - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_inductance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_inductance` - ''' - lcr_load_resistance = _attributes.AttributeViReal64(1150318) - '''Type: float - - Specifies the load resistance, in ohms and assuming a series model, of the DUT in order to compute the impedance range when the lcr_impedance_range_source property is set to LCRImpedanceRangeSource.LOAD_CONFIGURATION. - - Valid values: [0 ohms, +inf ohms) - - Default Value: Search ni.com for Supported Properties by Device for the default value by instrument - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_load_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_load_resistance` - ''' - lcr_measured_load_reactance = _attributes.AttributeViReal64(1150269) - '''Type: float - - Specifies the reactance, in ohms, of the load used for load LCR compensation as measured by the instrument. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_reactance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_measured_load_reactance` - ''' - lcr_measured_load_resistance = _attributes.AttributeViReal64(1150268) - '''Type: float - - Specifies the resistance, in ohms, of the load used for load LCR compensation as measured by the instrument. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_measured_load_resistance` - ''' - lcr_measurement_time = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRMeasurementTime, 1150218) - '''Type: enums.LCRMeasurementTime - - Selects a general aperture time profile for LCR measurements. The actual duration of each profile depends on the frequency of the LCR test signal. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_measurement_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_measurement_time` - ''' - lcr_open_compensation_enabled = _attributes.AttributeViBoolean(1150220) - '''Type: bool - - Specifies whether to apply open LCR compensation data to LCR measurements. - Use the lcr_open_short_load_compensation_data_source property to define where the open compensation data that is applied to LCR measurements comes from. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_compensation_enabled` - ''' - lcr_open_conductance = _attributes.AttributeViReal64(1150261) - '''Type: float - - Specifies the conductance, in siemens, of the circuit used for open LCR compensation. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_conductance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_conductance` - ''' - lcr_open_short_load_compensation_data_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCROpenShortLoadCompensationDataSource, 1150223) - '''Type: enums.LCROpenShortLoadCompensationDataSource - - Specifies the source of the LCR compensation data NI-DCPower applies to LCR measurements. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_short_load_compensation_data_source` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_short_load_compensation_data_source` - ''' - lcr_open_susceptance = _attributes.AttributeViReal64(1150262) - '''Type: float - - Specifies the susceptance, in siemens, of the circuit used for open LCR compensation. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_open_susceptance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_open_susceptance` - ''' - lcr_short_compensation_enabled = _attributes.AttributeViBoolean(1150221) - '''Type: bool - - Specifies whether to apply short LCR compensation data to LCR measurements. - Use the lcr_open_short_load_compensation_data_source property to define where the short compensation data that is applied to LCR measurements comes from. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_compensation_enabled` - ''' - lcr_short_custom_cable_compensation_enabled = _attributes.AttributeViBoolean(1150299) - '''Type: bool - - Defines how to apply short custom cable compensation in LCR mode when cable_length property is set to CableLength.CUSTOM_ONBOARD_STORAGE or CableLength.CUSTOM_AS_CONFIGURED. - - LCR custom cable compensation uses compensation data for both an open and short configuration. - For open custom cable compensation, you must supply your own data from a call to perform_lcr_open_custom_cable_compensation. - For short custom cable compensation, you can supply your own data from a call to perform_lcr_short_custom_cable_compensation or NI-DCPower can apply a default set of short compensation data. - - +-------+-----------------------------------------------------------------------------------------------------+ - | False | Uses default short compensation data. | - +-------+-----------------------------------------------------------------------------------------------------+ - | True | Uses short custom cable compensation data generated by perform_lcr_short_custom_cable_compensation. | - +-------+-----------------------------------------------------------------------------------------------------+ - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_custom_cable_compensation_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_custom_cable_compensation_enabled` - ''' - lcr_short_reactance = _attributes.AttributeViReal64(1150264) - '''Type: float - - Specifies the reactance, in ohms, of the circuit used for short LCR compensation. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_reactance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_reactance` - ''' - lcr_short_resistance = _attributes.AttributeViReal64(1150263) - '''Type: float - - Specifies the resistance, in ohms, of the circuit used for short LCR compensation. - This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_short_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_short_resistance` - ''' - lcr_source_aperture_time = _attributes.AttributeViReal64(1150349) - '''Type: float - - Specifies the LCR source aperture time for a channel, in seconds. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_source_aperture_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_source_aperture_time` - ''' - lcr_source_delay_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRSourceDelayMode, 1150315) - '''Type: enums.LCRSourceDelayMode - - For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the source delay or applies a source delay you set manually. - - You can return the source delay duration for either option by reading source_delay. - - When you use this property to manually set the source delay, it is possible to set source delays short enough to unbalance the bridge and affect measurement accuracy. LCR measurement methods report whether the bridge is unbalanced. - - Default Value: LCRSourceDelayMode.AUTOMATIC - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_source_delay_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_source_delay_mode` - ''' - lcr_stimulus_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRStimulusFunction, 1150209) - '''Type: enums.LCRStimulusFunction - - Specifies the type of test signal to apply to the DUT for LCR measurements. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_stimulus_function` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_stimulus_function` - ''' - lcr_voltage_amplitude = _attributes.AttributeViReal64(1150211) - '''Type: float - - Specifies the amplitude, in volts RMS, of the AC voltage test signal applied to the DUT for LCR measurements. - This property applies when the lcr_stimulus_function property is set to LCRStimulusFunction.VOLTAGE. - - Valid Values: 7.08e-4 V RMS to 7.07 V RMS - - Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_amplitude` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_voltage_amplitude` - ''' - lcr_voltage_range = _attributes.AttributeViReal64(1150265) - '''Type: float - - Specifies the voltage range, in volts RMS, for the specified channel(s). - The range defines the valid values to which you can set the lcr_voltage_amplitude. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.lcr_voltage_range` - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - Contains the logical name you specified when opening the current IVI session. - You can pass a logical name to the __init__ method. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a method section in the IVI Configuration file. The method section specifies a physical device and initial user options. - ''' - measure_buffer_size = _attributes.AttributeViInt32(1150077) - '''Type: int - - Specifies the number of samples that the active channel measurement buffer can hold. - The default value is the maximum number of samples that a device is capable of recording in one second. - Valid Values: The PXIe-4051, PXIe-4147, and PXIe-4150/4151 support values from 170 to 18000110. - The PXIe-4162/4163 supports values from 256 to 1000192. - The PXIe-4190 supports values from 102 to 6000048. - The PXIe-4112, PXIe-4113, and PXIe-4154 support values from 1000 to 178956970. - All other supported instruments support values from 1000 to 268435455. - Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_buffer_size` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_buffer_size` - ''' - measure_complete_event_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150046) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the amount of time to delay the generation of the Measure Complete event, in seconds. - Valid Values: The PXIe-4051 supports values from 0 seconds to 39 seconds. - The PXIe-4147 supports values from 0 seconds to 26.5 seconds. - The PXIe-4150/4151 supports values from 0 seconds to 42 seconds. - The PXIe-4162/4163 and PXIe-4190 support values from 0 seconds to 23 seconds. - All other supported instruments support values from 0 to 167 seconds. - Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_delay` - ''' - measure_complete_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150333) - '''Type: enums.EventOutputBehavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Measure Complete event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Measure Complete event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. - - Note: - This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_output_behavior` - ''' - measure_complete_event_output_terminal = _attributes.AttributeViString(1150047) - '''Type: str - - Specifies the output terminal for exporting the Measure Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_output_terminal` - ''' - measure_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150044) - '''Type: enums.Polarity - - Specifies the behavior of the Measure Complete event. - Default Value: Polarity.HIGH - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_pulse_polarity` - ''' - measure_complete_event_pulse_width = _attributes.AttributeViReal64(1150045) - '''Type: float - - Specifies the width of the Measure Complete event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - Valid Values: 1.5e-7 to 1.6e-6 - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_pulse_width` - ''' - measure_complete_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150334) - '''Type: enums.EventToggleInitialState - - Specifies the initial state of the Measure Complete event when you set the measure_complete_event_output_behavior property to EventOutputBehavior.TOGGLE. - For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is NIDCPOWER_VAL_LOW_STATE. - - Note: - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_complete_event_toggle_initial_state` - ''' - measure_record_delta_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150065) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Queries the amount of time, in seconds, between between the start of two consecutive measurements in a measure record. Only query this property after the desired measurement settings are committed. - two measurements and the rest would differ. - - Note: This property is not available when Auto Zero is configured to Once because the amount of time between the first - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_record_delta_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_record_delta_time` - ''' - measure_record_length = _attributes.AttributeViInt32(1150063) - '''Type: int - - Specifies how many measurements compose a measure record. When this property is set to a value greater than 1, the measure_when property must be set to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER. - Valid Values: 1 to 16,777,216 - Default Value: 1 - - Note: - This property is not available in a session involving multiple channels. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_record_length` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_record_length` - ''' - measure_record_length_is_finite = _attributes.AttributeViBoolean(1150064) - '''Type: bool - - Specifies whether to take continuous measurements. Call the abort method to stop continuous measurements. When this property is set to False and the source_mode property is set to SourceMode.SINGLE_POINT, the measure_when property must be set to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER. When this property is set to False and the source_mode property is set to SourceMode.SEQUENCE, the measure_when property must be set to MeasureWhen.ON_MEASURE_TRIGGER. - Default Value: True - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. This property is not available in a session involving multiple channels. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_record_length_is_finite` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_record_length_is_finite` - ''' - measure_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150034) - '''Type: enums.TriggerType - - Specifies the behavior of the Measure trigger. - Default Value: TriggerType.DIGITAL_EDGE - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_trigger_type` - ''' - measure_when = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MeasureWhen, 1150057) - '''Type: enums.MeasureWhen - - Specifies when the measure unit should acquire measurements. Unless this property is configured to MeasureWhen.ON_MEASURE_TRIGGER, the measure_trigger_type property is ignored. - Refer to the Acquiring Measurements topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements. - Default Value: If the source_mode property is set to SourceMode.SINGLE_POINT, the default value is MeasureWhen.ON_DEMAND. This value supports only the measure method and measure_multiple method. If the source_mode property is set to SourceMode.SEQUENCE, the default value is MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE. This value supports only the fetch_multiple method. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].measure_when` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.measure_when` - ''' - merged_channels = _attributes.AttributeViStringRepeatedCapability(1150249) - '''Type: str - - Specifies the merge channel(s) to combine with a designated primary channel of an instrument in order to increase the maximum current you can source from the instrument. - Set this property on the primary channel only, and pass the merge channels as the value of this property. - Refer to the Merged Channels topic in your instrument user manual for more information about using merged channels. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if no channels were merged. - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].merged_channels` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.merged_channels` - ''' - output_capacitance = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputCapacitance, 1150014) - '''Type: enums.OutputCapacitance - - Specifies whether to use a low or high capacitance on the output for the specified channel(s). - Refer to the NI PXI-4130 Output Capacitance Selection topic in the NI DC Power Supplies and SMUs Help for more information about capacitance. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_capacitance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_capacitance` - ''' - output_connected = _attributes.AttributeViBoolean(1150060) - '''Type: bool - - Specifies whether the output relay is connected (closed) or disconnected (open). The output_enabled property does not change based on this property; they are independent of each other. - - Set this property to False to disconnect the output terminal from the output. - - Default Value: True - - Note: - Only disconnect the output when disconnecting is necessary for your application. For example, a battery connected to the output terminal might discharge unless the relay is disconnected. Excessive connecting and disconnecting of the output can cause premature wear on electromechanical relays, such as those used by the PXIe-4147, PXI-4132, or PXIe-4138/39. - - The PXIe-4051 does not have an output relay. For the PXIe-4051, this property specifies whether the input MOSFETs are connected (ON) or disconnected (OFF). - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_connected` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_connected` - ''' - output_cutoff_current_change_limit_high = _attributes.AttributeViReal64(1150295) - '''Type: float - - Specifies a limit for positive current slew rate, in amps per microsecond, for output cutoff. - If the current increases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_CHANGE_HIGH as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_change_limit_high` - ''' - output_cutoff_current_change_limit_low = _attributes.AttributeViReal64(1150239) - '''Type: float - - Specifies a limit for negative current slew rate, in amps per microsecond, for output cutoff. - If the current decreases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_CHANGE_LOW as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_change_limit_low` - ''' - output_cutoff_current_measure_limit_high = _attributes.AttributeViReal64(1150237) - '''Type: float - - Specifies a high limit current value, in amps, for output cutoff. - If the measured current exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_MEASURE_HIGH as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_measure_limit_high` - ''' - output_cutoff_current_measure_limit_low = _attributes.AttributeViReal64(1150293) - '''Type: float - - Specifies a low limit current value, in amps, for output cutoff. - If the measured current falls below this limit, the output is disconnected. - - To find out whether an output has fallen below this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_MEASURE_LOW as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_measure_limit_low` - ''' - output_cutoff_current_overrange_enabled = _attributes.AttributeViBoolean(1150240) - '''Type: bool - - Enables or disables current overrange functionality for output cutoff. If enabled, the output is disconnected when the measured current saturates the current range. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_SATURATED as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_overrange_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_current_overrange_enabled` - ''' - output_cutoff_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150300) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Delays disconnecting the output by the time you specify, in seconds, when a limit is exceeded. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_delay` - ''' - output_cutoff_enabled = _attributes.AttributeViBoolean(1150235) - '''Type: bool - - Enables or disables output cutoff functionality. If enabled, you can define output cutoffs that, if exceeded, cause the output of the specified channel(s) to be disconnected. - When this property is disabled, all other output cutoff properties are ignored. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - Instruments that do not support this property behave as if this property were set to False. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_enabled` - ''' - output_cutoff_voltage_change_limit_high = _attributes.AttributeViReal64(1150294) - '''Type: float - - Specifies a limit for positive voltage slew rate, in volts per microsecond, for output cutoff. - If the voltage increases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state with OutputCutoffReason.VOLTAGE_CHANGE_HIGH as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_high` - ''' - output_cutoff_voltage_change_limit_low = _attributes.AttributeViReal64(1150238) - '''Type: float - - Specifies a limit for negative voltage slew rate, in volts per microsecond, for output cutoff. - If the voltage decreases at a rate that exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state with OutputCutoffReason.VOLTAGE_CHANGE_LOW as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_low` - ''' - output_cutoff_voltage_measure_limit_high = _attributes.AttributeViReal64(1150357) - '''Type: float - - Specifies a high limit voltage value, in volts, for output cutoff. - If the measured voltage exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_MEASURE_HIGH as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_high` - ''' - output_cutoff_voltage_measure_limit_low = _attributes.AttributeViReal64(1150358) - '''Type: float - - Specifies a low limit voltage value, in volts, for output cutoff. - If the measured voltage falls below this limit, the output is disconnected. - - To find out whether an output has fallen below this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_MEASURE_LOW as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_low` - ''' - output_cutoff_voltage_output_limit_high = _attributes.AttributeViReal64(1150236) - '''Type: float - - Specifies a high limit voltage value, in volts, for output cutoff. - If the voltage output exceeds this limit, the output is disconnected. - - To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_OUTPUT_HIGH as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_high` - ''' - output_cutoff_voltage_output_limit_low = _attributes.AttributeViReal64(1150292) - '''Type: float - - Specifies a low limit voltage value, in volts, for output cutoff. - If the voltage output falls below this limit, the output is disconnected. - - To find out whether an output has fallen below this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_OUTPUT_LOW as the output cutoff reason. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_low` - ''' - output_enabled = _attributes.AttributeViBoolean(1250006) - '''Type: bool - - Specifies whether the output is enabled (True) or disabled (False). - - Depending on the value you specify for the output_function property, you also must set the corresponding level properties or output_resistance in addition to enabling the output to generate the desired level. - For more information about configuring the output level, refer to the output_function property. - - Default Value: The default value is True if you use the __init__ method to open the session. Otherwise the default value is False, including when you use a calibration session or the deprecated programming model. - - Note: - If the session is in the Committed or Uncommitted states, enabling the output does not take effect until you call the initiate method. Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for more information about NI-DCPower programming states. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_enabled` - ''' - output_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputFunction, 1150008) - '''Type: enums.OutputFunction - - Configures the method to generate on the specified channel(s). - - When OutputFunction.DC_VOLTAGE is selected, the device generates the desired voltage level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when OutputFunction.DC_VOLTAGE is selected: - - voltage_level - - current_limit - - current_limit_high - - current_limit_low - - voltage_level_range - - current_limit_range - - compliance_limit_symmetry - - When OutputFunction.DC_CURRENT is selected, the device generates the desired current level on the output as long as the output voltage is below the voltage limit. Use the following properties to configure the channel when OutputFunction.DC_CURRENT is selected: - - current_level - - voltage_limit - - voltage_limit_high - - voltage_limit_low - - current_level_range - - voltage_limit_range - - compliance_limit_symmetry - - When OutputFunction.PULSE_VOLTAGE is selected, the device generates pulses at the desired pulse voltage levels on the output as long as the output current is below the pulse current limit. Use the following properties to configure the channel when OutputFunction.PULSE_VOLTAGE is selected: - - pulse_voltage_level - - pulse_bias_voltage_level - - pulse_current_limit - - pulse_current_limit_high - - pulse_current_limit_low - - pulse_bias_current_limit - - pulse_bias_current_limit_high - - pulse_bias_current_limit_low - - pulse_voltage_level_range - - pulse_current_limit_range - - compliance_limit_symmetry - - When OutputFunction.PULSE_CURRENT is selected, the device generates pulses at the desired pulse current levels on the output as long as the output voltage is below the pulse voltage limit. Use the following properties to configure the channel when OutputFunction.PULSE_CURRENT is selected: - - pulse_current_level - - pulse_bias_current_level - - pulse_voltage_limit - - pulse_voltage_limit_high - - pulse_voltage_limit_low - - pulse_bias_voltage_limit - - pulse_bias_voltage_limit_high - - pulse_bias_voltage_limit_low - - pulse_current_level_range - - pulse_voltage_limit_range - - compliance_limit_symmetry - - When OutputFunction.CONSTANT_RESISTANCE is selected, the device generates the desired resistance level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when OutputFunction.CONSTANT_RESISTANCE is selected: - - constant_resistance_level - - constant_resistance_current_limit - - constant_resistance_level_range - - When OutputFunction.CONSTANT_POWER is selected, the device generates the desired power level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when OutputFunction.CONSTANT_POWER is selected: - - constant_power_level - - constant_power_current_limit - - constant_power_level_range - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_function` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_function` - ''' - output_resistance = _attributes.AttributeViReal64(1150061) - '''Type: float - - Specifies the output resistance that the device attempts to generate for the specified channel(s). - - Depending on the instrument, output resistance is configurable only if you set the output_function of the channel as follows: - - PXIe-4141, PXIe-4143, PXIe-4145: OutputFunction.DC_VOLTAGE - - PXIe-4135, PXIe-4137, PXIe-4139, PXIe-4147: OutputFunction.DC_CURRENT or OutputFunction.DC_VOLTAGE - - **Valid Values**: Vary by device. Refer to the device specifications for your device for more information about supported values. - - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - - Note: - The channel must be enabled for the specified output resistance to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Using the merged_channels property to merge instrument outputs affects the valid output resistance range you can program. Refer to the Merged Channels topic for your device for details. - - To specify the resistance level that the device attempts to generate when output_function is set to OutputFunction.CONSTANT_RESISTANCE, use the constant_resistance_level property. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_resistance` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_resistance` - ''' - output_shorted = _attributes.AttributeViBoolean(1150372) - '''Type: bool - - Specifies whether the input of the instrument simulates a short circuit. - When this property is set to True, the electronic load will simulate a short circuit across the channel/input terminals. The electronic load uses the maximum rated current and range to simulate the short circuit. This property will only take effect when both output_enabled and output_connected are True. - - When this property is set to False, the instrument will resume normal operation based on its existing settings on the specified channel(s). - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_shorted` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.output_shorted` - ''' - overranging_enabled = _attributes.AttributeViBoolean(1150007) - '''Type: bool - - Specifies whether NI-DCPower allows setting the voltage level, current level, voltage limit and current limit outside the device specification limits. True means that overranging is enabled. - Refer to the Ranges topic in the NI DC Power Supplies and SMUs Help for more information about overranging. - Default Value: False - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].overranging_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.overranging_enabled` - ''' - ovp_enabled = _attributes.AttributeViBoolean(1250002) - '''Type: bool - - Enables (True) or disables (False) overvoltage protection (OVP). - Refer to the Output Overvoltage Protection topic in the NI DC Power Supplies and SMUs Help for more information about overvoltage protection. - Default Value: False - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ovp_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ovp_enabled` - ''' - ovp_limit = _attributes.AttributeViReal64(1250003) - '''Type: float - - Determines the voltage limit, in volts, beyond which overvoltage protection (OVP) engages. - The limit is specified as a positive value, but symmetric positive and negative limits are enforced simultaneously. - For example, setting the OVP Limit to 65 will configure the OVP feature to trigger an OVP error if the output exceeds ±65 V. - - Valid Values: 2 V to 210 V - Default Value: 210 V - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ovp_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ovp_limit` - ''' - power_allocation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerAllocationMode, 1150207) - '''Type: enums.PowerAllocationMode - - Determines whether the device sources the power its source configuration requires or a specific wattage you request; determines whether NI-DCPower proactively checks that this sourcing power is within the maximum per-channel and overall sourcing power of the device. - - When this property configures NI-DCPower to perform a sourcing power check, a device is not permitted to source power in excess of its maximum per-channel or overall sourcing power. If the check determines a source configuration or power request would require the device to do so, NI-DCPower returns an error. - - When this property does not configure NI-DCPower to perform a sourcing power check, a device can attempt to fulfill source configurations that would require it to source power in excess of its maximum per-channel or overall sourcing power and may shut down to prevent damage. - - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if this property were set to PowerAllocationMode.DISABLED. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].power_allocation_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.power_allocation_mode` - ''' - power_line_frequency = _attributes.AttributeViReal64(1150020) - '''Type: float - - Specifies the power line frequency for specified channel(s). NI-DCPower uses this value to select a timebase for setting the aperture_time property in power line cycles (PLCs). - in the NI DC Power Supplies and SMUs Help for information about supported devices. - Default Value: NIDCPOWER_VAL_60_HERTZ - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].power_line_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.power_line_frequency` - ''' - power_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerSource, 1150000) - '''Type: enums.PowerSource - - Specifies the power source to use. NI-DCPower switches the power source used by the device to the specified value. - Default Value: PowerSource.AUTOMATIC - is set to PowerSource.AUTOMATIC. However, if the session is in the Committed or Uncommitted state when you set this property, the power source selection only occurs after you call the initiate method. - - Note: Automatic selection is not persistent and occurs only at the time this property - ''' - power_source_in_use = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerSourceInUse, 1150001) - '''Type: enums.PowerSourceInUse - - Indicates whether the device is using the internal or auxiliary power source to generate power. - ''' - pulse_bias_current_level = _attributes.AttributeViReal64(1150088) - '''Type: float - - Specifies the pulse bias current level, in amps, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_level_range property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_level` - ''' - pulse_bias_current_limit = _attributes.AttributeViReal64(1150083) - '''Type: float - - Specifies the pulse bias current limit, in amps, that the output cannot exceed when generating the desired pulse bias voltage on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_limit_range property. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_limit` - ''' - pulse_bias_current_limit_high = _attributes.AttributeViReal64(1150195) - '''Type: float - - Specifies the maximum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *off* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. - You must also specify a pulse_bias_current_limit_low to complete the - asymmetric range. - **Valid Values:** [1% of pulse_current_limit_range, pulse_current_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_limit_high` - ''' - pulse_bias_current_limit_low = _attributes.AttributeViReal64(1150196) - '''Type: float - - Specifies the minimum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *off* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. - You must also specify a pulse_bias_current_limit_high to complete the - asymmetric range. - **Valid Values:** [-pulse_current_limit_range, -1% of pulse_current_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_current_limit_low` - ''' - pulse_bias_delay = _attributes.AttributeViReal64(1150092) - '''Type: float - - Determines when, in seconds, the device generates the Pulse Complete event after generating the off level of a pulse. - Valid Values: 0 to 167 seconds - Default Value: 16.67 milliseconds - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_delay` - ''' - pulse_bias_voltage_level = _attributes.AttributeViReal64(1150082) - '''Type: float - - Specifies the pulse bias voltage level, in volts, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_voltage_level_range property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_level` - ''' - pulse_bias_voltage_limit = _attributes.AttributeViReal64(1150089) - '''Type: float - - Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired current on the specified channel(s) during the off phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_voltage_limit_range property. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_limit` - ''' - pulse_bias_voltage_limit_high = _attributes.AttributeViReal64(1150191) - '''Type: float - - Specifies the maximum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *off* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. - You must also specify a pulse_bias_voltage_limit_low to complete the - asymmetric range. - **Valid Values:** [1% of pulse_voltage_limit_range, pulse_voltage_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_limit_high` - ''' - pulse_bias_voltage_limit_low = _attributes.AttributeViReal64(1150192) - '''Type: float - - Specifies the minimum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *off* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. - You must also specify a pulse_bias_voltage_limit_high to complete the - asymmetric range. - **Valid Values:** [-pulse_voltage_limit_range, -1% of pulse_voltage_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_bias_voltage_limit_low` - ''' - pulse_complete_event_output_terminal = _attributes.AttributeViString(1150099) - '''Type: str - - Specifies the output terminal for exporting the Pulse Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - Default Value:The default value for PXI Express devices is 250 ns. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_complete_event_output_terminal` - ''' - pulse_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150100) - '''Type: enums.Polarity - - Specifies the behavior of the Pulse Complete event. - Default Value: Polarity.HIGH - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_complete_event_pulse_polarity` - ''' - pulse_complete_event_pulse_width = _attributes.AttributeViReal64(1150101) - '''Type: float - - Specifies the width of the Pulse Complete event, in seconds. - The minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for PXI Express devices is 1.6 microseconds. - Default Value: The default value for PXI Express devices is 250 ns. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_complete_event_pulse_width` - ''' - pulse_current_level = _attributes.AttributeViReal64(1150086) - '''Type: float - - Specifies the pulse current level, in amps, that the device attempts to generate on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_level_range property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_level` - ''' - pulse_current_level_range = _attributes.AttributeViReal64(1150090) - '''Type: float - - Specifies the pulse current level range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the pulse current level and pulse bias current level. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_level_range` - ''' - pulse_current_limit = _attributes.AttributeViReal64(1150081) - '''Type: float - - Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_limit_range property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit` - ''' - pulse_current_limit_high = _attributes.AttributeViReal64(1150193) - '''Type: float - - Specifies the maximum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *on* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. - You must also specify a pulse_current_limit_low to complete the asymmetric - range. - **Valid Values:** [1% of pulse_current_limit_range, pulse_current_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit_high` - ''' - pulse_current_limit_low = _attributes.AttributeViReal64(1150194) - '''Type: float - - Specifies the minimum current, in amps, that the output can produce when - generating the desired pulse voltage on the specified channel(s) during - the *on* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. - You must also specify a pulse_current_limit_high to complete the - asymmetric range. - **Valid Values:** [-pulse_current_limit_range, -1% of pulse_current_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit_low` - ''' - pulse_current_limit_range = _attributes.AttributeViReal64(1150085) - '''Type: float - - Specifies the pulse current limit range, in amps, for the specified channel(s). - The range defines the valid values to which you can set the pulse current limit and pulse bias current limit. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_current_limit_range` - ''' - pulse_off_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150094) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Determines the length, in seconds, of the off phase of a pulse. - Valid Values: 10 microseconds to 167 seconds - Default Value: 34 milliseconds - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_off_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_off_time` - ''' - pulse_on_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150093) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Determines the length, in seconds, of the on phase of a pulse. - Valid Values: 10 microseconds to 167 seconds - Default Value: 34 milliseconds - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_on_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_on_time` - ''' - pulse_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150095) - '''Type: enums.TriggerType - - Specifies the behavior of the Pulse trigger. - Default Value: TriggerType.NONE - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_trigger_type` - ''' - pulse_voltage_level = _attributes.AttributeViReal64(1150080) - '''Type: float - - Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_limit_range property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_level` - ''' - pulse_voltage_level_range = _attributes.AttributeViReal64(1150084) - '''Type: float - - Specifies the pulse voltage level range, in volts, for the specified channel(s). - The range defines the valid values at which you can set the pulse voltage level and pulse bias voltage level. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. - For valid ranges, refer to the specifications for your instrument. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_level_range` - ''' - pulse_voltage_limit = _attributes.AttributeViReal64(1150087) - '''Type: float - - Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired pulse current on the specified channel(s) during the on phase of a pulse. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. - Valid Values: The valid values for this property are defined by the values you specify for the pulse_voltage_limit_range property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit` - ''' - pulse_voltage_limit_high = _attributes.AttributeViReal64(1150189) - '''Type: float - - Specifies the maximum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *on* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. - You must also specify a pulse_voltage_limit_low to complete the asymmetric - range. - **Valid Values:** [1% of pulse_voltage_limit_range, pulse_voltage_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit_high` - ''' - pulse_voltage_limit_low = _attributes.AttributeViReal64(1150190) - '''Type: float - - Specifies the minimum voltage, in volts, that the output can produce - when generating the desired pulse current on the specified channel(s) - during the *on* phase of a pulse. - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. - You must also specify a pulse_voltage_limit_high to complete the - asymmetric range. - **Valid Values:** [-pulse_voltage_limit_range, -1% of pulse_voltage_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True or if the output_function property is set to a - pulsing method. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit_low` - ''' - pulse_voltage_limit_range = _attributes.AttributeViReal64(1150091) - '''Type: float - - Specifies the pulse voltage limit range, in volts, for the specified channel(s). - The range defines the valid values to which you can set the pulse voltage limit and pulse bias voltage limit. - This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. - For valid ranges, refer to the specifications for your instrument. - - Note: The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.pulse_voltage_limit_range` - ''' - query_instrument_status = _attributes.AttributeViBoolean(1050003) - '''Type: bool - - Specifies whether NI-DCPower queries the device status after each operation. - Querying the device status is useful for debugging. After you validate your program, you can set this property to False to disable status checking and maximize performance. - NI-DCPower ignores status checking for particular properties regardless of the setting of this property. - Use the __init__ method to override this value. - Default Value: True - ''' - ready_for_pulse_trigger_event_output_terminal = _attributes.AttributeViString(1150102) - '''Type: str - - Specifies the output terminal for exporting the Ready For Pulse Trigger event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ready_for_pulse_trigger_event_output_terminal` - ''' - ready_for_pulse_trigger_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150103) - '''Type: enums.Polarity - - Specifies the behavior of the Ready For Pulse Trigger event. - Default Value: Polarity.HIGH - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_polarity` - ''' - ready_for_pulse_trigger_event_pulse_width = _attributes.AttributeViReal64(1150104) - '''Type: float - - Specifies the width of the Ready For Pulse Trigger event, in seconds. - The minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - Default Value: The default value for PXI Express devices is 250 ns - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_width` - ''' - requested_power_allocation = _attributes.AttributeViReal64(1150206) - '''Type: float - - Specifies the power, in watts, to request the device to source from each active channel. - This property defines the power to source from the device only if the power_allocation_mode property is set to PowerAllocationMode.MANUAL. - - The power you request with this property may be incompatible with the power a given source configuration requires or the power the device can provide: - If the requested power is less than the power required for the source configuration, the device does not exceed the requested power, and NI-DCPower returns an error. - If the requested power is greater than the maximum per-channel or overall sourcing power, the device does not exceed the allowed power, and NI-DCPower returns an error. - - Valid Values: [0, device per-channel maximum power] - Default Value: Refer to the Supported Properties by Device topic for the default value by device. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].requested_power_allocation` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.requested_power_allocation` - ''' - reset_average_before_measurement = _attributes.AttributeViBoolean(1150006) - '''Type: bool - - Specifies whether the measurement returned from any measurement call starts with a new measurement call (True) or returns a measurement that has already begun or completed(False). - When you set the samples_to_average property in the Running state, the channel measurements might move out of synchronization. While NI-DCPower automatically synchronizes measurements upon the initialization of a session, you can force a synchronization in the running state before you run the measure_multiple method. To force a synchronization in the running state, set this property to True, and then run the measure_multiple method, specifying all channels in the channel name parameter. You can set the reset_average_before_measurement property to False after the measure_multiple method completes. - Default Value: True - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].reset_average_before_measurement` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.reset_average_before_measurement` - ''' - samples_to_average = _attributes.AttributeViInt32(1150003) - '''Type: int - - Specifies the number of samples to average when you take a measurement. - Increasing the number of samples to average decreases measurement noise but increases the time required to take a measurement. Refer to the NI PXI-4110, NI PXI-4130, NI PXI-4132, or NI PXIe-4154 Averaging topic for optional property settings to improve immunity to certain noise types, or refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic for information about improving noise immunity for those devices. - Default Value: - NI PXI-4110 or NI PXI-4130—10 - NI PXI-4132—1 - NI PXIe-4112—1 - NI PXIe-4113—1 - NI PXIe-4140/4141—1 - NI PXIe-4142/4143—1 - NI PXIe-4144/4145—1 - NI PXIe-4154—500 - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].samples_to_average` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.samples_to_average` - ''' - self_calibration_persistence = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SelfCalibrationPersistence, 1150073) - '''Type: enums.SelfCalibrationPersistence - - Specifies whether the values calculated during self-calibration should be written to hardware to be used until the next self-calibration or only used until the reset_device method is called or the machine is powered down. - This property affects the behavior of the self_cal method. When set to SelfCalibrationPersistence.KEEP_IN_MEMORY, the values calculated by the self_cal method are used in the existing session, as well as in all further sessions until you call the reset_device method or restart the machine. When you set this property to SelfCalibrationPersistence.WRITE_TO_EEPROM, the values calculated by the self_cal method are written to hardware and used in the existing session and in all subsequent sessions until another call to the self_cal method is made. - about supported devices. - Default Value: SelfCalibrationPersistence.KEEP_IN_MEMORY - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].self_calibration_persistence` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.self_calibration_persistence` - ''' - sense = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Sense, 1150013) - '''Type: enums.Sense - - Selects either local or remote sensing of the output voltage for the specified channel(s). - Refer to the Local and Remote Sense topic in the NI DC Power Supplies and SMUs Help for more information about sensing voltage on supported channels and about devices that support local and/or remote sensing. - Default Value: The default value is Sense.LOCAL if the device supports local sense. Otherwise, the default and only supported value is Sense.REMOTE. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sense` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sense` - ''' - sequence_advance_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150026) - '''Type: enums.TriggerType - - Specifies the behavior of the Sequence Advance trigger. - Default Value: TriggerType.NONE - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_advance_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_advance_trigger_type` - ''' - sequence_engine_done_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150345) - '''Type: enums.EventOutputBehavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Engine Done event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Sequence Engine Done event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. - - Note: - This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_output_behavior` - ''' - sequence_engine_done_event_output_terminal = _attributes.AttributeViString(1150050) - '''Type: str - - Specifies the output terminal for exporting the Sequence Engine Done Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_output_terminal` - ''' - sequence_engine_done_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150048) - '''Type: enums.Polarity - - Specifies the behavior of the Sequence Engine Done event. - Default Value: Polarity.HIGH - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_pulse_polarity` - ''' - sequence_engine_done_event_pulse_width = _attributes.AttributeViReal64(1150049) - '''Type: float - - Specifies the width of the Sequence Engine Done event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - Valid Values: 1.5e-7 to 1.6e-6 seconds - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_pulse_width` - ''' - sequence_engine_done_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150346) - '''Type: enums.EventToggleInitialState - - Specifies the initial state of the Sequence Engine Done event when you set the sequence_engine_done_event_output_behavior property to EventOutputBehavior.TOGGLE. - For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is NIDCPOWER_VAL_LOW_STATE. - - Note: - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_engine_done_event_toggle_initial_state` - ''' - sequence_iteration_complete_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150335) - '''Type: enums.EventOutputBehavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Iteration Complete event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Sequence Iteration Complete event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. - - Note: - This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_output_behavior` - ''' - sequence_iteration_complete_event_output_terminal = _attributes.AttributeViString(1150040) - '''Type: str - - Specifies the output terminal for exporting the Sequence Iteration Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_output_terminal` - ''' - sequence_iteration_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150038) - '''Type: enums.Polarity - - Specifies the behavior of the Sequence Iteration Complete event. - Default Value: Polarity.HIGH - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_polarity` - ''' - sequence_iteration_complete_event_pulse_width = _attributes.AttributeViReal64(1150039) - '''Type: float - - Specifies the width of the Sequence Iteration Complete event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds. - the NI DC Power Supplies and SMUs Help for information about supported devices. - Valid Values: 1.5e-7 to 1.6e-6 seconds - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_width` - ''' - sequence_iteration_complete_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150336) - '''Type: enums.EventToggleInitialState - - Specifies the initial state of the Sequence Iteration Complete event when you set the sequence_iteration_complete_event_output_behavior property to EventOutputBehavior.TOGGLE. - For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is NIDCPOWER_VAL_LOW_STATE. - - Note: - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_iteration_complete_event_toggle_initial_state` - ''' - sequence_loop_count = _attributes.AttributeViInt32(1150025) - '''Type: int - - Specifies the number of times a sequence is run after initiation. - Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about the sequence loop count. - When the sequence_loop_count_is_finite property is set to False, the sequence_loop_count property is ignored. - Valid Range: 1 to 2147483647 - Default Value: 1 - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_loop_count` - ''' - sequence_loop_count_is_finite = _attributes.AttributeViBoolean(1150078) - '''Type: bool - - Specifies whether a sequence should repeat indefinitely. - Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about infinite sequencing. - When the sequence_loop_count_is_finite property is set to False, the sequence_loop_count property is ignored. - Default Value: True - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count_is_finite` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_loop_count_is_finite` - ''' - sequence_step_delta_time = _attributes.AttributeViReal64(1150198) - '''Type: float - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_step_delta_time` - ''' - sequence_step_delta_time_enabled = _attributes.AttributeViBoolean(1150199) - '''Type: bool - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.sequence_step_delta_time_enabled` - ''' - serial_number = _attributes.AttributeViString(1150152) - '''Type: str - - Contains the serial number for the device you are currently using. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].serial_number` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.serial_number` - ''' - shutdown_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150275) - '''Type: enums.TriggerType - - Specifies the behavior of the Shutdown trigger. - Default Value: TriggerType.NONE - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].shutdown_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.shutdown_trigger_type` - ''' - simulate = _attributes.AttributeViBoolean(1050005) - '''Type: bool - - Specifies whether to simulate NI-DCPower I/O operations. True specifies that operation is simulated. - Default Value: False - ''' - source_complete_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150331) - '''Type: enums.EventOutputBehavior - - Determines the event type's behavior when a corresponding trigger is received. If you set the Source Complete event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Source Complete event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. - - Note: - This property is not supported by all output terminals. - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_behavior` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_output_behavior` - ''' - source_complete_event_output_terminal = _attributes.AttributeViString(1150043) - '''Type: str - - Specifies the output terminal for exporting the Source Complete event. - Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_terminal` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_output_terminal` - ''' - source_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150041) - '''Type: enums.Polarity - - Specifies the behavior of the Source Complete event. - Default Value: Polarity.HIGH - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_polarity` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_pulse_polarity` - ''' - source_complete_event_pulse_width = _attributes.AttributeViReal64(1150042) - '''Type: float - - Specifies the width of the Source Complete event, in seconds. - The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. - The maximum event pulse width value for all devices is 1.6 microseconds - Valid Values: 1.5e-7 to 1.6e-6 seconds - Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_width` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_pulse_width` - ''' - source_complete_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150332) - '''Type: enums.EventToggleInitialState - - Specifies the initial state of the Source Complete event when you set the source_complete_event_output_behavior property to EventOutputBehavior.TOGGLE. - For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. - The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. - The output switches to low when the event occurs during the acquisition. - For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. - The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. - If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. - The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. - This pattern repeats for any subsequent event occurrences. - The default value is NIDCPOWER_VAL_LOW_STATE. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_complete_event_toggle_initial_state` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_complete_event_toggle_initial_state` - ''' - source_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150051) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Determines when, in seconds, the device generates the Source Complete event, potentially starting a measurement if the measure_when property is set to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE. - Refer to the Single Point Source Mode and Sequence Source Mode topics for more information. - Valid Values: The PXIe-4051 supports values from 0 to 39 seconds. - The PXIe-4147 supports values from 0 to 26.5 seconds. - The PXIe-4150/4151 supports values from 0 to 42 seconds. - The PXIe-4162/4163 and PXIe-4190 support values from 0 to 23 seconds. - All other supported instruments support values from 0 to 167 seconds. - Default Value: 0.01667 seconds - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_delay` - ''' - source_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SourceMode, 1150054) - '''Type: enums.SourceMode - - Specifies whether to run a single output point or a sequence. Refer to the Single Point Source Mode and Sequence Source Mode topics in the NI DC Power Supplies and SMUs Help for more information about source modes. - Default value: SourceMode.SINGLE_POINT - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_mode` - ''' - source_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150030) - '''Type: enums.TriggerType - - Specifies the behavior of the Source trigger. - Default Value: TriggerType.NONE - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].source_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.source_trigger_type` - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - Contains a brief description of the specific driver. - ''' - specific_driver_prefix = _attributes.AttributeViString(1050302) - '''Type: str - - Contains the prefix for NI-DCPower. The name of each user-callable method in NI-DCPower begins with this prefix. - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - Contains additional version information about NI-DCPower. - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - Contains the name of the vendor that supplies NI-DCPower. - ''' - start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150021) - '''Type: enums.TriggerType - - Specifies the behavior of the Start trigger. - Default Value: TriggerType.NONE - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].start_trigger_type` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.start_trigger_type` - ''' - supported_instrument_models = _attributes.AttributeViString(1050327) - '''Type: str - - Contains a comma-separated (,) list of supported NI-DCPower device models. - ''' - transient_response = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TransientResponse, 1150062) - '''Type: enums.TransientResponse - - Specifies the transient response. Refer to the Transient Response topic in the NI DC Power Supplies and SMUs Help for more information about transient response. - Default Value: TransientResponse.NORMAL - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].transient_response` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.transient_response` - ''' - voltage_compensation_frequency = _attributes.AttributeViReal64(1150068) - '''Type: float - - The frequency at which a pole-zero pair is added to the system when the channel is in Constant Voltage mode. - Default value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_compensation_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_compensation_frequency` - ''' - voltage_gain_bandwidth = _attributes.AttributeViReal64(1150067) - '''Type: float - - The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Voltage mode. - Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_gain_bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_gain_bandwidth` - ''' - voltage_level = _attributes.AttributeViReal64(1250001) - '''Type: float - - Specifies the voltage level, in volts, that the device attempts to generate on the specified channel(s). - This property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. - - Valid Values: The valid values for this property are defined by the values you specify for the voltage_level_range property. - - Note: The channel must be enabled for the specified voltage level to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_level` - ''' - voltage_level_autorange = _attributes.AttributeViInt32(1150015) - '''Type: bool - - Specifies whether NI-DCPower automatically selects the voltage level range based on the desired voltage level for the specified channel(s). - If you set this property to AutoZero.ON, NI-DCPower ignores any changes you make to the voltage_level_range property. If you change the voltage_level_autorange property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the voltage_level_range property was set to (or the default value if the property was never set) and uses that value as the voltage level range. - Query the voltage_level_range property by using the _get_attribute_vi_int32 method for information about which range NI-DCPower automatically selects. - The voltage_level_autorange property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. - Default Value: AutoZero.OFF - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_level_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_level_autorange` - ''' - voltage_level_range = _attributes.AttributeViReal64(1150005) - '''Type: float - - Specifies the voltage level range, in volts, for the specified channel(s). - The range defines the valid values to which the voltage level can be set. Use the voltage_level_autorange property to enable automatic selection of the voltage level range. - The voltage_level_range property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. - - For valid ranges, refer to the specifications for your instrument. - - Note: The channel must be enabled for the specified voltage level range to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_level_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_level_range` - ''' - voltage_limit = _attributes.AttributeViReal64(1150010) - '''Type: float - - Specifies the voltage limit, in volts, that the output cannot exceed when generating the desired current level on the specified channels. - This property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. - - Valid Values: The valid values for this property are defined by the values to which the voltage_limit_range property is set. - - Note: The channel must be enabled for the specified current level to take effect. Refer to the output_enabled property for more information about enabling the channel. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit` - ''' - voltage_limit_autorange = _attributes.AttributeViInt32(1150018) - '''Type: bool - - Specifies whether NI-DCPower automatically selects the voltage limit range based on the desired voltage limit for the specified channel(s). - If this property is set to AutoZero.ON, NI-DCPower ignores any changes you make to the voltage_limit_range property. If you change the voltage_limit_autorange property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the voltage_limit_range property was set to (or the default value if the property was never set) and uses that value as the voltage limit range. - Query the voltage_limit_range property by using the _get_attribute_vi_int32 method to find out which range NI-DCPower automatically selects. - The voltage_limit_autorange property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. - Default Value: AutoZero.OFF - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_autorange` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_autorange` - ''' - voltage_limit_high = _attributes.AttributeViReal64(1150185) - '''Type: float - - Specifies the maximum voltage, in volts, that the output can produce - when generating the desired current on the specified channel(s). - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_CURRENT. - You must also specify a voltage_limit_low to complete the asymmetric - range. - **Valid Values:** [1% of voltage_limit_range, voltage_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_high` - ''' - voltage_limit_low = _attributes.AttributeViReal64(1150186) - '''Type: float - - Specifies the minimum voltage, in volts, that the output can produce - when generating the desired current on the specified channel(s). - This property is applicable only if the compliance_limit_symmetry property is set to - ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_CURRENT. - You must also specify a voltage_limit_high to complete the asymmetric - range. - **Valid Values:** [-voltage_limit_range, -1% of voltage_limit_range] - The range bounded by the limit high and limit low must include zero. - **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. - **Related Topics:** - Ranges; - Changing Ranges; - Overranging - - Note: - The limit may be extended beyond the selected limit range if the - overranging_enabled property is - set to True. - - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_low` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_low` - ''' - voltage_limit_range = _attributes.AttributeViReal64(1150012) - '''Type: float - - Specifies the voltage limit range, in volts, for the specified channel(s). - The range defines the valid values to which the voltage limit can be set. Use the voltage_limit_autorange property to enable automatic selection of the voltage limit range. - The voltage_limit_range property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. - - For valid ranges, refer to the specifications for your instrument. - - Note: The channel must be enabled for the specified voltage limit range to take effect. Refer to the output_enabled property for more information about enabling the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_limit_range` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_limit_range` - ''' - voltage_pole_zero_ratio = _attributes.AttributeViReal64(1150069) - '''Type: float - - The ratio of the pole frequency to the zero frequency when the channel is in Constant Voltage mode. - Default value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. - - Note: - This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. - - Tip: - This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voltage_pole_zero_ratio` - - To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. - - Example: :py:attr:`my_session.voltage_pole_zero_ratio` - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nidcpower', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - def initiate(self): - '''initiate - - Starts generation or acquisition, causing the specified channel(s) to - leave the Uncommitted state or Committed state and enter the Running - state. To return to the Uncommitted state call the abort - method. Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for information about the - specific NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].initiate` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.initiate` - ''' - return _Acquisition(self) - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Transitions the specified channel(s) from the Running state to the - Uncommitted state. If a sequence is running, it is stopped. Any - configuration methods called after this method are not applied until - the initiate method is called. If power output is enabled - when you call the abort method, the channels remain - in their current state and continue providing power. - - Use the ConfigureOutputEnabled method to disable power - output on a per channel basis. Use the reset method to - disable output on all channels. - - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for information about the - specific NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].abort` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.abort` - ''' - self._interpreter.abort(self._repeated_capability) - - @ivi_synchronized - def self_cal(self): - r'''self_cal - - Performs a self-calibration upon the specified channel(s). - - This method disables the output, performs several internal - calculations, and updates calibration values. The updated calibration - values are written to the device hardware if the - self_calibration_persistence property is set to - SelfCalibrationPersistence.WRITE_TO_EEPROM. Refer to the - self_calibration_persistence property topic for more - information about the settings for this property. - - When calling self_cal with the PXIe-4162/4163, - specify all channels of your PXIe-4162/4163 with the channelName input. - You cannot self-calibrate a subset of PXIe-4162/4163 channels. - - Refer to the - `Self-Calibration `__ topic for - more information about this method. - - **Related Topics:** - - `Self-Calibration `__ - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].self_cal` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.self_cal` - ''' - self._interpreter.self_cal(self._repeated_capability) - - @ivi_synchronized - def clear_latched_output_cutoff_state(self, output_cutoff_reason): - r'''clear_latched_output_cutoff_state - - Clears the state of an output cutoff that was engaged. - To clear the state for all output cutoff reasons, use OutputCutoffReason.ALL. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_latched_output_cutoff_state` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.clear_latched_output_cutoff_state` - - Args: - output_cutoff_reason (enums.OutputCutoffReason): Specifies the reasons for which to clear the output cutoff state. - - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.ALL | Clears all output cutoff conditions | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_OUTPUT_HIGH | Clears cutoffs caused when the output exceeded the high cutoff limit for voltage output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_OUTPUT_LOW | Clears cutoffs caused when the output fell below the low cutoff limit for voltage output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_MEASURE_HIGH | Clears cutoffs caused when the measured voltage exceeded the high cutoff limit for voltage output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_MEASURE_LOW | Clears cutoffs caused when the measured voltage fell below the low cutoff limit for voltage output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_MEASURE_HIGH | Clears cutoffs caused when the measured current exceeded the high cutoff limit for current output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_MEASURE_LOW | Clears cutoffs caused when the measured current fell below the low cutoff limit for current output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_CHANGE_HIGH | Clears cutoffs caused when the voltage slew rate increased beyond the positive change cutoff for voltage output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_CHANGE_LOW | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for voltage output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_CHANGE_HIGH | Clears cutoffs caused when the current slew rate increased beyond the positive change cutoff for current output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_CHANGE_LOW | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for current output | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_SATURATED | Clears cutoffs caused when the measured current saturates the current range | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - - ''' - if type(output_cutoff_reason) is not enums.OutputCutoffReason: - raise TypeError('Parameter output_cutoff_reason must be of type ' + str(enums.OutputCutoffReason)) - self._interpreter.clear_latched_output_cutoff_state(self._repeated_capability, output_cutoff_reason) - - @ivi_synchronized - def commit(self): - r'''commit - - Applies previously configured settings to the specified channel(s). Calling this - method moves the NI-DCPower session from the Uncommitted state into - the Committed state. After calling this method, modifying any - property reverts the NI-DCPower session to the Uncommitted state. Use - the initiate method to transition to the Running state. - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for details about the specific - NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].commit` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.commit` - ''' - self._interpreter.commit(self._repeated_capability) - - @ivi_synchronized - def configure_aperture_time(self, aperture_time, units=enums.ApertureTimeUnits.SECONDS): - r'''configure_aperture_time - - Configures the aperture time on the specified channel(s). - - The supported values depend on the **units**. Refer to the *Aperture - Time* topic for your device in the *NI DC Power Supplies and SMUs Help* - for more information. In general, devices support discrete - **apertureTime** values, and if you configure **apertureTime** to some - unsupported value, NI-DCPower coerces it up to the next supported value. - - Refer to the *Measurement Configuration and Timing* or *DC Noise - Rejection* topic for your device in the *NI DC Power Supplies and SMUs - Help* for more information about how to configure your measurements. - - **Related Topics:** - - `Aperture Time `__ - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_aperture_time` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.configure_aperture_time` - - Args: - aperture_time (float): Specifies the aperture time. Refer to the *Aperture Time* topic for your - device in the *NI DC Power Supplies and SMUs Help* for more information. - - units (enums.ApertureTimeUnits): Specifies the units for **apertureTime**. - **Defined Values**: - - +-------------------------------------+------------------------------+ - | ApertureTimeUnits.SECONDS | Specifies seconds. | - +-------------------------------------+------------------------------+ - | ApertureTimeUnits.POWER_LINE_CYCLES | Specifies Power Line Cycles. | - +-------------------------------------+------------------------------+ - - ''' - if type(units) is not enums.ApertureTimeUnits: - raise TypeError('Parameter units must be of type ' + str(enums.ApertureTimeUnits)) - self._interpreter.configure_aperture_time(self._repeated_capability, aperture_time, units) - - @ivi_synchronized - def configure_lcr_compensation(self, compensation_data): - r'''configure_lcr_compensation - - Applies previously generated open, short, load, as well as open and short custom cable compensation data to LCR measurements. - - This method applies open, short and load compensation data when you have set the lcr_open_short_load_compensation_data_source property to LCROpenShortLoadCompensationDataSource.AS_CONFIGURED, and it also applies custom cable compensation data when you have set the cable_length property to CableLength.CUSTOM_AS_CONFIGURED. - - Call this method after you have obtained LCR compensation data. - - If the lcr_short_custom_cable_compensation_enabled property is set to True, you must generate data with both perform_lcr_open_custom_cable_compensation and perform_lcr_short_custom_cable_compensation; if False, you must only use perform_lcr_open_custom_cable_compensation, and NI-DCPower uses default short data. - - Call get_lcr_compensation_data and pass the **compensation data** to this method. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_lcr_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.configure_lcr_compensation` - - Args: - compensation_data (bytes): The open, short and load compensation data to apply. - - ''' - compensation_data = _converters.convert_to_bytes(compensation_data) - self._interpreter.configure_lcr_compensation(self._repeated_capability, compensation_data) - - @ivi_synchronized - def configure_lcr_custom_cable_compensation(self, custom_cable_compensation_data): - r'''configure_lcr_custom_cable_compensation - - This method is deprecated. Use configure_lcr_compensation - instead. - - Applies previously generated open and short custom cable compensation data to LCR measurements. - - This method applies custom cable compensation data when you have set cable_length property to CableLength.CUSTOM_AS_CONFIGURED. - - Call this method after you have obtained custom cable compensation data. - - If lcr_short_custom_cable_compensation_enabled property is set to True, you must generate data with both perform_lcr_open_custom_cable_compensation and perform_lcr_short_custom_cable_compensation; - if False, you must only use perform_lcr_open_custom_cable_compensation, and NI-DCPower uses default short data. - - Call get_lcr_custom_cable_compensation_data and pass the **custom cable compensation data** to this method. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_lcr_custom_cable_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.configure_lcr_custom_cable_compensation` - - Args: - custom_cable_compensation_data (bytes): The open and short custom cable compensation data to apply. - - ''' - custom_cable_compensation_data = _converters.convert_to_bytes(custom_cable_compensation_data) - self._interpreter.configure_lcr_custom_cable_compensation(self._repeated_capability, custom_cable_compensation_data) - - @ivi_synchronized - def create_advanced_sequence_commit_step(self, set_as_active_step=True): - r'''create_advanced_sequence_commit_step - - Creates a Commit step in the Active advanced sequence. A Commit step - configures channels to a user-defined known state before starting the advanced sequence. - When a Commit step exists in the Active advanced sequence, you cannot - set the output method to Pulse Voltage or Pulse Current in either - the Commit step (-1) or step 0. When you create an advanced sequence - step, each property you passed to the create_advanced_sequence - method is reset to its default value for that step unless otherwise specified. - - **Support for this Method** - - You must set the source mode to Sequence to use this method. - - Using the set_sequence method with Advanced Sequence - methods is unsupported. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - create_advanced_sequence - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_commit_step` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.create_advanced_sequence_commit_step` - - Args: - set_as_active_step (bool): Specifies whether the step created with this method is active in the Active advanced sequence. - - ''' - self._interpreter.create_advanced_sequence_commit_step(self._repeated_capability, set_as_active_step) - - @ivi_synchronized - def create_advanced_sequence_step(self, set_as_active_step=True): - r'''create_advanced_sequence_step - - Creates a new advanced sequence step in the advanced sequence specified - by the Active advanced sequence. When you create an advanced sequence - step, each property you passed to the create_advanced_sequence - method is reset to its default value for that step unless otherwise - specified. - - **Support for this Method** - - You must set the source mode to Sequence to use this method. - - Using the set_sequence method with Advanced Sequence - methods is unsupported. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - create_advanced_sequence - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_step` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.create_advanced_sequence_step` - - Args: - set_as_active_step (bool): Specifies whether the step created with this method is active in the Active advanced sequence. - - ''' - self._interpreter.create_advanced_sequence_step(self._repeated_capability, set_as_active_step) - - @ivi_synchronized - def _create_advanced_sequence_with_channels(self, sequence_name, attribute_ids, set_as_active_sequence): - r'''_create_advanced_sequence_with_channels - - Creates an empty advanced sequence. Call the - create_advanced_sequence_step method to add steps to the - active advanced sequence. - - You can create multiple advanced sequences for a channel. - - **Support for this method** - - You must set the source mode to Sequence to use this method. - - Using the set_sequence method with Advanced Sequence - methods is unsupported. - - Use this method in the Uncommitted or Committed programming states. - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for more information about - NI-DCPower programming states. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - create_advanced_sequence_step - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._create_advanced_sequence_with_channels` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._create_advanced_sequence_with_channels` - - Args: - sequence_name (str): Specifies the name of the sequence to create. - - attribute_ids (list of int): Specifies the properties you reconfigure per step in the advanced - sequence. For more information about which properties can be configured - in an advanced sequence for each NI-DCPower device that supports advanced - sequencing, search ni.com for Supported Properties by Device. - - set_as_active_sequence (bool): Specifies that this current sequence is active. - - ''' - self._interpreter.create_advanced_sequence_with_channels(self._repeated_capability, sequence_name, attribute_ids, set_as_active_sequence) - - @ivi_synchronized - def delete_advanced_sequence(self, sequence_name): - r'''delete_advanced_sequence - - Deletes a previously created advanced sequence and all the advanced - sequence steps in the advanced sequence. - - **Support for this Method** - - You must set the source mode to Sequence to use this method. - - Using the set_sequence method with Advanced Sequence - methods is unsupported. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].delete_advanced_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.delete_advanced_sequence` - - Args: - sequence_name (str): specifies the name of the sequence to delete. - - ''' - self._interpreter.delete_advanced_sequence(self._repeated_capability, sequence_name) - - @ivi_synchronized - def create_advanced_sequence(self, sequence_name, property_names, set_as_active_sequence=True): - '''create_advanced_sequence - - Creates an empty advanced sequence. Call the - create_advanced_sequence_step method to add steps to the - active advanced sequence. - - You can create multiple advanced sequences in a session. - - **Support for this method** - - You must set the source mode to Sequence to use this method. - - Using the set_sequence method with Advanced Sequence - methods is unsupported. - - Use this method in the Uncommitted or Committed programming states. - Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for more information about - NI-DCPower programming states. - - **Related Topics**: - - `Advanced Sequence - Mode `__ - - `Programming - States `__ - - create_advanced_sequence_step - - Note: - This method is not supported on all devices. Refer to `Supported - Methods by - Device `__ - for more information about supported devices. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.create_advanced_sequence` - - Args: - sequence_name (str): Specifies the name of the sequence to create. - - property_names (list of str): Specifies the names of the properties you reconfigure per step in the advanced sequence. For more information about properties that can be configured in an advanced sequence for each NI-DCPower device that supports advanced sequencing, search ni.com for Supported Properties by Device. - - set_as_active_sequence (bool): Specifies that this current sequence is active. - - ''' - # The way the NI-DCPower C API is designed, we need to know all the attribute ID's upfront in order to call - # `niDCPower_CreateAdvancedSequence`. In order to find the attribute ID of each property, we look at the - # member Attribute objects of Session. We use a set since we don't have to worry about is it already there. - attribute_ids_used = set() - for prop in property_names: - if prop not in Session.__base__.__dict__: - raise KeyError('{} is not an property on the nidcpower.Session'.format(prop)) - if not isinstance(Session.__base__.__dict__[prop], _attributes.Attribute): - raise TypeError('{} is not a valid property: {}'.format(prop, type(Session.__base__.__dict__[prop]))) - attribute_ids_used.add(Session.__base__.__dict__[prop]._attribute_id) - - self._create_advanced_sequence_with_channels(sequence_name, list(attribute_ids_used), set_as_active_sequence) - - @ivi_synchronized - def fetch_multiple(self, count, timeout=hightime.timedelta(seconds=1.0)): - '''fetch_multiple - - Returns a list of named tuples (Measurement) that were - previously taken and are stored in the NI-DCPower buffer. This method - should not be used when the measure_when property is - set to MeasureWhen.ON_DEMAND. You must first call - initiate before calling this method. - - Fields in Measurement: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - - **channel** (str) - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_multiple` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.fetch_multiple` - - Args: - count (int): Specifies the number of measurements to fetch. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete. If the method does not complete within this time interval, NI-DCPower returns an error. - Default value: 1.0 second - - Note: When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. - - - Returns: - measurements (list of Measurement): List of named tuples with fields: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - - **channel** (str) - - ''' - import collections - Measurement = collections.namedtuple('Measurement', ['voltage', 'current', 'in_compliance', 'channel']) - - voltage_measurements, current_measurements, in_compliances = self._fetch_multiple(timeout, count) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - assert len(channel_names) == 1, "fetch_multiple only supports one channel at a time" - return [ - Measurement( - voltage=voltage, - current=current, - in_compliance=in_compliance, - channel=channel_names[0] - ) for voltage, current, in_compliance in zip( - voltage_measurements, current_measurements, in_compliances - ) - ] - - @ivi_synchronized - def fetch_multiple_lcr(self, count, timeout=hightime.timedelta(seconds=1.0)): - '''fetch_multiple_lcr - - Returns a list of previously measured LCRMeasurement instances on the specified channel that have been taken and stored in a buffer. - - To use this method: - - - Set measure_when property to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER - - Put the channel in the Running state (call initiate) - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_multiple_lcr` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.fetch_multiple_lcr` - - Args: - count (int): Specifies the number of measurements to fetch. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in seconds. - If the method does not complete within this time interval, NI-DCPower returns an error. - Default value: 1.0 second - - Note: - When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. - - - Returns: - measurements (list of LCRMeasurement): A list of LCRMeasurement instances. - - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | channel | | The channel name associated with this LCR measurement. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | vdc | float | The measured DC voltage, in volts. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | idc | float | The measured DC current, in amps. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_voltage | complex | The measured AC voltage, in volts RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_current | complex | The measured AC current, in amps RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z | complex | The complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y | complex | The complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - lcr_measurements = self._fetch_multiple_lcr(count, timeout) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - assert len(channel_names) == 1, "fetch_multiple_lcr only supports one channel at a time" - for lcr_measurement_object, in zip(lcr_measurements): - lcr_measurement_object.channel = channel_names[0] - return lcr_measurements - - @ivi_synchronized - def measure_multiple(self): - '''measure_multiple - - Returns a list of named tuples (Measurement) containing the measured voltage - and current values on the specified channel(s). Each call to this method - blocks other method calls until the measurements are returned from the device. - The order of the measurements returned in the array corresponds to the order - on the specified channel(s). - - Fields in Measurement: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - Always None - - **channel** (str) - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].measure_multiple` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.measure_multiple` - - Returns: - measurements (list of Measurement): List of named tuples with fields: - - - **voltage** (float) - - **current** (float) - - **in_compliance** (bool) - Always None - - **channel** (str) - - ''' - import collections - Measurement = collections.namedtuple('Measurement', ['voltage', 'current', 'in_compliance', 'channel']) - - voltage_measurements, current_measurements = self._measure_multiple() - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - assert ( - len(channel_names) == len(voltage_measurements) and len(channel_names) == len(current_measurements) - ), "measure_multiple should return as many voltage and current measurements as the number of channels specified through the channel string" - return [ - Measurement( - voltage=voltage, - current=current, - in_compliance=None, - channel=channel_name - ) for voltage, current, channel_name in zip( - voltage_measurements, current_measurements, channel_names - ) - ] - - @ivi_synchronized - def measure_multiple_lcr(self): - '''measure_multiple_lcr - - Measures and returns a list of LCRMeasurement instances on the specified channel(s). - - To use this method: - - - Set instrument_mode property to InstrumentMode.LCR - - Set measure_when property to MeasureWhen.ON_DEMAND - - Put the channel(s) in the Running state (call initiate) - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].measure_multiple_lcr` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.measure_multiple_lcr` - - Returns: - measurements (list of LCRMeasurement): A list of LCRMeasurement instances. - - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | channel | | The channel name associated with this LCR measurement. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | vdc | float | The measured DC voltage, in volts. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | idc | float | The measured DC current, in amps. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_voltage | complex | The measured AC voltage, in volts RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_current | complex | The measured AC current, in amps RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z | complex | The complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y | complex | The complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - lcr_measurements = self._measure_multiple_lcr() - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - assert len(channel_names) == len(lcr_measurements), ( - "measure_multiple_lcr should return as many LCR measurements as the number of channels specified through the channel string" - ) - for lcr_measurement_object, channel_name in zip(lcr_measurements, channel_names): - lcr_measurement_object.channel = channel_name - return lcr_measurements - - @ivi_synchronized - def _fetch_multiple(self, timeout, count): - r'''_fetch_multiple - - Returns an array of voltage measurements, an array of current - measurements, and an array of compliance measurements that were - previously taken and are stored in the NI-DCPower buffer. This method - should not be used when the measure_when property is - set to MeasureWhen.ON_DEMAND. You must first call - initiate before calling this method. - - Refer to the `Acquiring - Measurements `__ - and `Compliance `__ topics in - the *NI DC Power Supplies and SMUs Help* for more information about - configuring this method. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_multiple` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._fetch_multiple` - - Args: - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in - seconds. If the method does not complete within this time interval, - NI-DCPower returns an error. - - Note: - When setting the timeout interval, ensure you take into account any - triggers so that the timeout interval is long enough for your - application. - - count (int): Specifies the number of measurements to fetch. - - - Returns: - voltage_measurements (array.array("d")): Returns an array of voltage measurements. Ensure that sufficient space - has been allocated for the returned array. - - current_measurements (array.array("d")): Returns an array of current measurements. Ensure that sufficient space - has been allocated for the returned array. - - in_compliance (list of bool): Returns an array of Boolean values indicating whether the output was in - compliance at the time the measurement was taken. Ensure that sufficient - space has been allocated for the returned array. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - voltage_measurements, current_measurements, in_compliance = self._interpreter.fetch_multiple(self._repeated_capability, timeout, count) - return voltage_measurements, current_measurements, in_compliance - - @ivi_synchronized - def _fetch_multiple_lcr(self, count, timeout=hightime.timedelta(seconds=1.0)): - r'''_fetch_multiple_lcr - - Returns a list of previously measured LCRMeasurement instances on the specified channel that have been taken and stored in a buffer. - - To use this method: - - - Set measure_when property to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER - - Put the channel in the Running state (call initiate) - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_multiple_lcr` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._fetch_multiple_lcr` - - Args: - count (int): Specifies the number of measurements to fetch. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in seconds. - If the method does not complete within this time interval, NI-DCPower returns an error. - - Note: - When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. - - - Returns: - measurements (list of LCRMeasurement): A list of LCRMeasurement instances. - - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | vdc | float | The measured DC voltage, in volts. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | idc | float | The measured DC current, in amps. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_voltage | complex | The measured AC voltage, in volts RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_current | complex | The measured AC current, in amps RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z | complex | The complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y | complex | The complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - measurements = self._interpreter.fetch_multiple_lcr(self._repeated_capability, timeout, count) - return measurements - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - | Queries the value of a ViBoolean property. - | You can use this method to get the values of device-specific - properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Help text is shown for each property. - Select a property by double-clicking on it or by selecting it and - then pressing **Enter**. - - A ring control at the top of the dialog box allows you to see all IVI - properties or only the properties of type ViBoolean. If you choose to - see all IVI properties, the data types appear to the right of the - property names in the list box. Properties with data types other - than ViBoolean are dim. If you select a property data type that is - dim, LabWindows/CVI transfers you to the method panel for the - corresponding method that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - - Returns: - attribute_value (bool): Returns the current value of the property. Passes the address of a - ViBoolean variable. - If the property currently showing in the property ring control has - constants as valid values, you can view a list of the constants by - pressing **Enter** on this control. Select a value by double-clicking on - it or by selecting it and then pressing **Enter**. - - ''' - attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - | Queries the value of a ViInt32 property. - | You can use this method to get the values of device-specific - properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Help text is shown for each property. - Select a property by double-clicking on it or by selecting it and - then pressing **Enter**. - - A ring control at the top of the dialog box allows you to see all IVI - properties or only the properties of type ViInt32. If you choose to - see all IVI properties, the data types appear to the right of the - property names in the list box. Properties with data types other - than ViInt32 are dim. If you select a property data type that is - dim, LabWindows/CVI transfers you to the method panel for the - corresponding method that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - - Returns: - attribute_value (int): Returns the current value of the property. Passes the address of a - ViInt32 variable. - If the property currently showing in the property ring control has - constants as valid values, you can view a list of the constants by - pressing **Enter** on this control. Select a value by double-clicking on - it or by selecting it and then pressing **Enter**. - - ''' - attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int64(self, attribute_id): - r'''_get_attribute_vi_int64 - - | Queries the value of a ViInt64 property. - | You can use this method to get the values of device-specific - properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int64` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Help text is shown for each property. - Select a property by double-clicking on it or by selecting it and - then pressing **Enter**. - - A ring control at the top of the dialog box allows you to see all IVI - properties or only the properties of type ViReal64. If you choose to - see all IVI properties, the data types appear to the right of the - property names in the list box. Properties with data types other - than ViReal64 are dim. If you select a property data type that is - dim, LabWindows/CVI transfers you to the method panel for the - corresponding method that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - - Returns: - attribute_value (int): Returns the current value of the property. Passes the address of a - ViReal64 variable. - If the property currently showing in the property ring control has - constants as valid values, you can view a list of the constants by - pressing **Enter** on this control. Select a value by double-clicking on - it or by selecting it and then pressing **Enter**. - - ''' - attribute_value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - | Queries the value of a ViReal64 property. - | You can use this method to get the values of device-specific - properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Help text is shown for each property. - Select a property by double-clicking on it or by selecting it and - then pressing **Enter**. - - A ring control at the top of the dialog box allows you to see all IVI - properties or only the properties of type ViReal64. If you choose to - see all IVI properties, the data types appear to the right of the - property names in the list box. Properties with data types other - than ViReal64 are dim. If you select a property data type that is - dim, LabWindows/CVI transfers you to the method panel for the - corresponding method that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - - Returns: - attribute_value (float): Returns the current value of the property. Passes the address of a - ViReal64 variable. - If the property currently showing in the property ring control has - constants as valid values, you can view a list of the constants by - pressing **Enter** on this control. Select a value by double-clicking on - it or by selecting it and then pressing **Enter**. - - ''' - attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - | Queries the value of a ViString property. - | You can use this method to get the values of device-specific - properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press or the - spacebar to display a dialog box containing hierarchical list of the - available properties. Help text is shown for each property. Select - a property by double-clicking on it or by selecting it and then - pressing . - - A ring control at the top of the dialog box allows you to see all IVI - properties or only the properties of type ViString. If you choose to - see all IVI properties, the data types appear to the right of the - property names in the list box. Properties with data types other - than ViString are dimmed. If you select a property data type that - is dimmed, LabWindows/CVI transfers you to the method panel for the - corresponding method that is consistent with the data type. - - If you want to enter a variable name, press to change this ring - control to a manual input control. If the property in this ring - control has named constants as valid values, you can view the - constants by moving to the value control and pressing . - - - Returns: - attribute_value (str): The buffer in which the method returns the current value of the - property. The buffer must be of type ViChar and have at least as many - bytes as indicated in **bufSize**. - If the current value of the property, including the terminating NUL - byte, contains more bytes that you indicate in this property, the - method copies (buffer size -1) bytes into the buffer, places an ASCII - NUL byte at the end of the buffer, and returns the buffer size you must - pass to get the entire value. For example, if the value is 123456 and - the buffer size is 4, the method places 123 into the buffer and - returns 7. - If you specify 0 for **bufSize**, you can pass VI_NULL for this - property. - If the property currently showing in the property ring control has - constants as valid values, you can view a list of the constants by - pressing on this control. Select a value by double-clicking on it or by - selecting it and then pressing . - - ''' - attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_channel_names(self, indices): - r'''_get_channel_names - - Returns a list of channel names for the given channel indices. - - Args: - indices (basic sequence types, str, or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - Returns: - names (list of str): The channel name(s) at the specified indices. - - ''' - indices = _converters.convert_repeated_capabilities_without_prefix(indices) - names = self._interpreter.get_channel_names(indices) - return _converters.convert_comma_separated_string_to_list(names) - - @ivi_synchronized - def get_lcr_compensation_data(self): - r'''get_lcr_compensation_data - - Collects previously generated open, short, load, and custom cable compensation data so you can then apply it to LCR measurements with configure_lcr_compensation. - - Call this method after you have obtained the compensation data of all types (open, short, load, open custom cable compensation, and short custom cable compensation) you want to apply to your measurements. Pass the **compensation data** to configure_lcr_compensation - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_data` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.get_lcr_compensation_data` - - Returns: - compensation_data (bytes): The open, short, load, and custom cable compensation data to retrieve. - - ''' - compensation_data = self._interpreter.get_lcr_compensation_data(self._repeated_capability) - return _converters.convert_to_bytes(compensation_data) - - @ivi_synchronized - def _get_lcr_compensation_last_date_and_time(self, compensation_type): - r'''_get_lcr_compensation_last_date_and_time - - Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. - The time returned is 24-hour (military) local time; for example, if the selected type of compensation data was generated at 2:30 PM, this method returns 14 for **hours** and 30 for **minutes**. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_lcr_compensation_last_date_and_time` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._get_lcr_compensation_last_date_and_time` - - Args: - compensation_type (enums.LCRCompensationType): Specifies the type of compensation for LCR measurements. - - - Returns: - year (int): Returns the year of the relevant operation. - - month (int): Returns the month of the relevant operation. - - day (int): Returns the day of the relevant operation. - - hour (int): Returns the hour (in 24-hour time) of the relevant operation. - - minute (int): Returns the minute of the relevant operation. - - ''' - if type(compensation_type) is not enums.LCRCompensationType: - raise TypeError('Parameter compensation_type must be of type ' + str(enums.LCRCompensationType)) - year, month, day, hour, minute = self._interpreter.get_lcr_compensation_last_date_and_time(self._repeated_capability, compensation_type) - return year, month, day, hour, minute - - @ivi_synchronized - def get_lcr_custom_cable_compensation_data(self): - r'''get_lcr_custom_cable_compensation_data - - This method is deprecated. Use get_lcr_compensation_data - instead. - - Collects previously generated open and short custom cable compensation data so you can then apply it to LCR measurements with configure_lcr_custom_cable_compensation. - - Call this method after you have obtained open and short custom cable compensation data. Pass the **custom cable compensation data** to configure_lcr_custom_cable_compensation - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_lcr_custom_cable_compensation_data` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.get_lcr_custom_cable_compensation_data` - - Returns: - custom_cable_compensation_data (bytes): The open and short custom cable compensation data to retrieve. - - ''' - custom_cable_compensation_data = self._interpreter.get_lcr_custom_cable_compensation_data(self._repeated_capability) - return _converters.convert_to_bytes(custom_cable_compensation_data) - - @ivi_synchronized - def get_lcr_compensation_last_date_and_time(self, compensation_type): - '''get_lcr_compensation_last_date_and_time - - Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_last_date_and_time` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.get_lcr_compensation_last_date_and_time` - - Args: - compensation_type (enums.LCRCompensationType): Specifies the type of compensation for LCR measurements. - - - Returns: - last_comp_datetime (hightime.datetime): Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. - - ''' - year, month, day, hour, minute = self._get_lcr_compensation_last_date_and_time(compensation_type) - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def _initiate_with_channels(self): - r'''_initiate_with_channels - - Starts generation or acquisition, causing the specified channel(s) to - leave the Uncommitted state or Committed state and enter the Running - state. To return to the Uncommitted state call the abort - method. Refer to the `Programming - States `__ topic in - the *NI DC Power Supplies and SMUs Help* for information about the - specific NI-DCPower software states. - - **Related Topics:** - - `Programming - States `__ - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._initiate_with_channels` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._initiate_with_channels` - ''' - self._interpreter.initiate_with_channels(self._repeated_capability) - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-DCPower locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nidcpower.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def measure(self, measurement_type): - r'''measure - - Returns the measured value of either the voltage or current on the - specified channel. Each call to this method blocks other - method calls until the hardware returns the **measurement**. To - measure multiple channels, use the measure_multiple - method. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].measure` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.measure` - - Args: - measurement_type (enums.MeasurementTypes): Specifies whether a voltage or current value is measured. - **Defined Values**: - - +--------------------------+------------------------------+ - | MeasurementTypes.VOLTAGE | The device measures voltage. | - +--------------------------+------------------------------+ - | MeasurementTypes.CURRENT | The device measures current. | - +--------------------------+------------------------------+ - - - Returns: - measurement (float): Returns the value of the measurement, either in volts for voltage or - amps for current. - - ''' - if type(measurement_type) is not enums.MeasurementTypes: - raise TypeError('Parameter measurement_type must be of type ' + str(enums.MeasurementTypes)) - measurement = self._interpreter.measure(self._repeated_capability, measurement_type) - return measurement - - @ivi_synchronized - def _measure_multiple(self): - r'''_measure_multiple - - Returns arrays of the measured voltage and current values on the - specified channel(s). Each call to this method blocks other - method calls until the measurements are returned from the device. The - order of the measurements returned in the array corresponds to the order - on the specified channel(s). - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._measure_multiple` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._measure_multiple` - - Returns: - voltage_measurements (array.array("d")): Returns an array of voltage measurements. The measurements in the array - are returned in the same order as the channels specified in - **channelName**. Ensure that sufficient space has been allocated for the - returned array. - - current_measurements (array.array("d")): Returns an array of current measurements. The measurements in the array - are returned in the same order as the channels specified in - **channelName**. Ensure that sufficient space has been allocated for the - returned array. - - ''' - voltage_measurements, current_measurements = self._interpreter.measure_multiple(self._repeated_capability) - return voltage_measurements, current_measurements - - @ivi_synchronized - def _measure_multiple_lcr(self): - r'''_measure_multiple_lcr - - Measures and returns a list of LCRMeasurement instances on the specified channel(s). - - To use this method: - - - Set instrument_mode property to InstrumentMode.LCR - - Set measure_when property to MeasureWhen.ON_DEMAND - - Put the channel(s) in the Running state (call initiate) - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._measure_multiple_lcr` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._measure_multiple_lcr` - - Returns: - measurements (list of LCRMeasurement): A list of LCRMeasurement instances. - - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | vdc | float | The measured DC voltage, in volts. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | idc | float | The measured DC current, in amps. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_voltage | complex | The measured AC voltage, in volts RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_current | complex | The measured AC current, in amps RMS. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z | complex | The complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y | complex | The complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | - +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - measurements = self._interpreter.measure_multiple_lcr(self._repeated_capability) - return measurements - - @ivi_synchronized - def _parse_channel_count(self): - r'''_parse_channel_count - - Returns the number of channels. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._parse_channel_count` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._parse_channel_count` - - Returns: - number_of_channels (int): - - ''' - number_of_channels = self._interpreter.parse_channel_count(self._repeated_capability) - return number_of_channels - - @ivi_synchronized - def perform_lcr_load_compensation(self, compensation_spots): - r'''perform_lcr_load_compensation - - Generates load compensation data for LCR measurements for the test spots you specify. - - You must physically configure your LCR circuit with an appropriate reference load to use this method to generate valid load compensation data. - - When you call this method: - - - The load compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - To apply the load compensation data you generate with this method to your LCR measurements, set the lcr_load_compensation_enabled property to True. - - Load compensation data are generated only for those specific frequencies you define with this method; load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_load_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_load_compensation` - - Args: - compensation_spots (list of LCRLoadCompensationSpot): Defines the frequencies and DUT specifications to use for LCR load compensation. - - You can specify <=1000 spot frequencies. - - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | frequency | The spot frequency, in Hz. | - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | reference_value_type | A known specification value of your DUT to use as the basis for load compensation. | - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | reference_value | A value that describes the **reference_value_type** specification. Use as indicated by the **reference_value_type** option you choose. | - +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - self._interpreter.perform_lcr_load_compensation(self._repeated_capability, compensation_spots) - - @ivi_synchronized - def perform_lcr_open_compensation(self, additional_frequencies=None): - r'''perform_lcr_open_compensation - - Generates open compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. - - You must physically configure an open LCR circuit to use this method to generate valid open compensation data. - - When you call this method: - - - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - To apply the open compensation data you generate with this method to your LCR measurements, set the lcr_open_compensation_enabled property to True. - - Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Note: - Default Open Compensation Frequencies: - By default, NI-DCPower uses the following frequencies for LCR open compensation: - - - 10 logarithmic steps at 1 kHz frequency decade - - 10 logarithmic steps at 10 kHz frequency decade - - 100 logarithmic steps at 100 kHz frequency decade - - 100 logarithmic steps at 1 MHz frequency decade - - The actual frequencies used depend on the bandwidth of your instrument. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_open_compensation` - - Args: - additional_frequencies (list of float): Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. - - ''' - self._interpreter.perform_lcr_open_compensation(self._repeated_capability, additional_frequencies) - - @ivi_synchronized - def perform_lcr_open_custom_cable_compensation(self): - r'''perform_lcr_open_custom_cable_compensation - - Generates open custom cable compensation data for LCR measurements. - - To use this method, you must physically configure an open LCR circuit to generate valid open custom cable compensation data. - - When you call this method: - - - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_custom_cable_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_open_custom_cable_compensation` - ''' - self._interpreter.perform_lcr_open_custom_cable_compensation(self._repeated_capability) - - @ivi_synchronized - def perform_lcr_short_compensation(self, additional_frequencies=None): - r'''perform_lcr_short_compensation - - Generates short compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. - - You must physically configure your LCR circuit with a short to use this method to generate valid short compensation data. - - When you call this method: - - - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - To apply the short compensation data you generate with this method to your LCR measurements, set the lcr_short_compensation_enabled property to True. - - Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Note: - Default Short Compensation Frequencies: - By default, NI-DCPower uses the following frequencies for LCR short compensation: - - - 10 logarithmic steps at 1 kHz frequency decade - - 10 logarithmic steps at 10 kHz frequency decade - - 100 logarithmic steps at 100 kHz frequency decade - - 100 logarithmic steps at 1 MHz frequency decade - - The actual frequencies used depend on the bandwidth of your instrument. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_short_compensation` - - Args: - additional_frequencies (list of float): Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. - - ''' - self._interpreter.perform_lcr_short_compensation(self._repeated_capability, additional_frequencies) - - @ivi_synchronized - def perform_lcr_short_custom_cable_compensation(self): - r'''perform_lcr_short_custom_cable_compensation - - Generates short custom cable compensation data for LCR measurements. - - To use this method: - - - You must physically configure your LCR circuit with a short to generate valid short custom cable compensation data. - - Set lcr_short_custom_cable_compensation_enabled property to True - - When you call this method: - - - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. - - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_custom_cable_compensation` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.perform_lcr_short_custom_cable_compensation` - ''' - self._interpreter.perform_lcr_short_custom_cable_compensation(self._repeated_capability) - - @ivi_synchronized - def query_in_compliance(self): - r'''query_in_compliance - - Queries the specified channel to determine if it is operating at the compliance limit. - - The compliance limit is the current limit when the output_function property is set to OutputFunction.DC_VOLTAGE, OutputFunction.PULSE_VOLTAGE, OutputFunction.CONSTANT_RESISTANCE or OutputFunction.CONSTANT_POWER. If the output is operating at the compliance limit, the output reaches the current limit before the desired voltage, resistance or power level. - - The compliance limit is the voltage limit when the output_function property is set to OutputFunction.DC_CURRENT or OutputFunction.PULSE_CURRENT. If the output is operating at the compliance limit, the output reaches the voltage limit before the desired current level. - - Refer to the output_function property for more information about the applicable properties to configure for each output method. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_in_compliance` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_in_compliance` - - Returns: - in_compliance (bool): Returns whether the device channel is in compliance. - - ''' - in_compliance = self._interpreter.query_in_compliance(self._repeated_capability) - return in_compliance - - @ivi_synchronized - def query_latched_output_cutoff_state(self, output_cutoff_reason): - r'''query_latched_output_cutoff_state - - Discovers if an output cutoff limit was exceeded for the specified reason. When an output cutoff is engaged, the output of the channel(s) is disconnected. - If a limit was exceeded, the state is latched until you clear it with the clear_latched_output_cutoff_state method or the reset method. - - outputCutoffReason specifies the conditions for which an output is disconnected. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_latched_output_cutoff_state` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_latched_output_cutoff_state` - - Args: - output_cutoff_reason (enums.OutputCutoffReason): Specifies which output cutoff conditions to query. - - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.ALL | Any output cutoff condition was met | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_OUTPUT_HIGH | The output exceeded the high cutoff limit for voltage output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_OUTPUT_LOW | The output fell below the low cutoff limit for voltage output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_MEASURE_HIGH | The measured voltage exceeded the high cutoff limit for voltage output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_MEASURE_LOW | The measured voltage fell below the low cutoff limit for voltage output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_MEASURE_HIGH | The measured current exceeded the high cutoff limit for current output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_MEASURE_LOW | The measured current fell below the low cutoff limit for current output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_CHANGE_HIGH | The voltage slew rate increased beyond the positive change cutoff for voltage output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.VOLTAGE_CHANGE_LOW | The voltage slew rate decreased beyond the negative change cutoff for voltage output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_CHANGE_HIGH | The current slew rate increased beyond the positive change cutoff for current output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_CHANGE_LOW | The current slew rate decreased beyond the negative change cutoff for current output | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - | OutputCutoffReason.CURRENT_SATURATED | The measured current saturates the current range | - +-----------------------------------------+--------------------------------------------------------------------------------------+ - - - Returns: - output_cutoff_state (bool): Specifies whether an output cutoff has engaged. - - +-------+------------------------------------------------------------------------------+ - | True | An output cutoff has engaged for the conditions in **output cutoff reason**. | - +-------+------------------------------------------------------------------------------+ - | False | No output cutoff has engaged. | - +-------+------------------------------------------------------------------------------+ - - ''' - if type(output_cutoff_reason) is not enums.OutputCutoffReason: - raise TypeError('Parameter output_cutoff_reason must be of type ' + str(enums.OutputCutoffReason)) - output_cutoff_state = self._interpreter.query_latched_output_cutoff_state(self._repeated_capability, output_cutoff_reason) - return output_cutoff_state - - @ivi_synchronized - def query_max_current_limit(self, voltage_level): - r'''query_max_current_limit - - Queries the maximum current limit on a channel if the channel is set to the specified **voltageLevel**. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_max_current_limit` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_max_current_limit` - - Args: - voltage_level (float): Specifies the voltage level to use when calculating the - **maxCurrentLimit**. - - - Returns: - max_current_limit (float): Returns the maximum current limit that can be set with the specified - **voltageLevel**. - - ''' - max_current_limit = self._interpreter.query_max_current_limit(self._repeated_capability, voltage_level) - return max_current_limit - - @ivi_synchronized - def query_max_voltage_level(self, current_limit): - r'''query_max_voltage_level - - Queries the maximum voltage level on a channel if the channel is set to the specified **currentLimit**. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_max_voltage_level` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_max_voltage_level` - - Args: - current_limit (float): Specifies the current limit to use when calculating the - **maxVoltageLevel**. - - - Returns: - max_voltage_level (float): Returns the maximum voltage level that can be set on a channel - with the specified **currentLimit**. - - ''' - max_voltage_level = self._interpreter.query_max_voltage_level(self._repeated_capability, current_limit) - return max_voltage_level - - @ivi_synchronized - def query_min_current_limit(self, voltage_level): - r'''query_min_current_limit - - Queries the minimum current limit on a channel if the channel is set to the specified **voltageLevel**. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_min_current_limit` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_min_current_limit` - - Args: - voltage_level (float): Specifies the voltage level to use when calculating the - **minCurrentLimit**. - - - Returns: - min_current_limit (float): Returns the minimum current limit that can be set on a channel - with the specified **voltageLevel**. - - ''' - min_current_limit = self._interpreter.query_min_current_limit(self._repeated_capability, voltage_level) - return min_current_limit - - @ivi_synchronized - def query_output_state(self, output_state): - r'''query_output_state - - Queries the specified channel to determine if the channel - is currently in the state specified by **outputState**. - - **Related Topics:** - - `Compliance `__ - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].query_output_state` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.query_output_state` - - Args: - output_state (enums.OutputStates): Specifies the output state of the channel that is being queried. - **Defined Values**: - - +-------------------------------+--------------------------------------------------------------------+ - | OutputStates.CONSTANT_VOLTAGE | The channel maintains a constant voltage by adjusting the current. | - +-------------------------------+--------------------------------------------------------------------+ - | OutputStates.CONSTANT_CURRENT | The channel maintains a constant current by adjusting the voltage. | - +-------------------------------+--------------------------------------------------------------------+ - | OutputStates.INHIBITED | The channel is in the inhibited state. | - +-------------------------------+--------------------------------------------------------------------+ - - - Returns: - in_state (bool): Returns whether the device channel is in the specified output - state. - - ''' - if type(output_state) is not enums.OutputStates: - raise TypeError('Parameter output_state must be of type ' + str(enums.OutputStates)) - in_state = self._interpreter.query_output_state(self._repeated_capability, output_state) - return in_state - - @ivi_synchronized - def reset(self): - r'''reset - - Resets the specified channel(s) to a known state. This method disables power - generation, resets session properties to their default values, commits - the session properties, and leaves the session in the Uncommitted state. - Refer to the `Programming - States `__ topic for - more information about NI-DCPower software states. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].reset` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.reset` - ''' - self._interpreter.reset(self._repeated_capability) - - @ivi_synchronized - def send_software_edge_trigger(self, trigger): - r'''send_software_edge_trigger - - Asserts the specified trigger. This method can override an external - edge trigger. - - **Related Topics:** - - `Triggers `__ - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].send_software_edge_trigger` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.send_software_edge_trigger` - - Args: - trigger (enums.SendSoftwareEdgeTriggerType): Specifies which trigger to assert. - **Defined Values:** - - +----------------------------------------------+---------------------------------------+ - | SendSoftwareEdgeTriggerType.START | Asserts the Start trigger. | - +----------------------------------------------+---------------------------------------+ - | SendSoftwareEdgeTriggerType.SOURCE | Asserts the Source trigger. | - +----------------------------------------------+---------------------------------------+ - | SendSoftwareEdgeTriggerType.MEASURE | Asserts the Measure trigger. | - +----------------------------------------------+---------------------------------------+ - | SendSoftwareEdgeTriggerType.SEQUENCE_ADVANCE | Asserts the Sequence Advance trigger. | - +----------------------------------------------+---------------------------------------+ - | SendSoftwareEdgeTriggerType.PULSE | Asserts the Pulse trigger. | - +----------------------------------------------+---------------------------------------+ - | SendSoftwareEdgeTriggerType.SHUTDOWN | Asserts the Shutdown trigger. | - +----------------------------------------------+---------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(trigger) is not enums.SendSoftwareEdgeTriggerType: - raise TypeError('Parameter trigger must be of type ' + str(enums.SendSoftwareEdgeTriggerType)) - self._interpreter.send_software_edge_trigger(self._repeated_capability, trigger) - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, attribute_value): - r'''_set_attribute_vi_boolean - - | Sets the value of a ViBoolean property. - | This is a low-level method that you can use to set the values of - device-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Properties whose value cannot be set are - dim. Help text is shown for each property. Select a property by - double-clicking on it or by selecting it and then pressing **Enter**. - - Read-only properties appear dim in the list box. If you select a - read-only property, an error message appears. A ring control at the - top of the dialog box allows you to see all IVI properties or only - the properties of type ViBoolean. If you choose to see all IVI - properties, the data types appear to the right of the property names - in the list box. Properties with data types other than ViBoolean are - dim. If you select a property data type that is dim, LabWindows/CVI - transfers you to the method panel for the corresponding method - that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - attribute_value (bool): Specifies the value to which you want to set the property. If the - property currently showing in the property ring control has constants - as valid values, you can view a list of the constants by pressing - **Enter** on this control. Select a value by double-clicking on it or by - selecting it and then pressing **Enter**. - - Note: - Some of the values might not be valid depending upon the current - settings of the device session. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int32 - - | Sets the value of a ViInt32 property. - | This is a low-level method that you can use to set the values of - device-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Properties whose value cannot be set are - dim. Help text is shown for each property. Select a property by - double-clicking on it or by selecting it and then pressing **Enter**. - - Read-only properties appear dim in the list box. If you select a - read-only property, an error message appears. A ring control at the - top of the dialog box allows you to see all IVI properties or only - the properties of type ViInt32. If you choose to see all IVI - properties, the data types appear to the right of the property names - in the list box. Properties with data types other than ViInt32 are - dim. If you select a property data type that is dim, LabWindows/CVI - transfers you to the method panel for the corresponding method - that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - attribute_value (int): Specifies the value to which you want to set the property. If the - property currently showing in the property ring control has constants - as valid values, you can view a list of the constants by pressing - **Enter** on this control. Select a value by double-clicking on it or by - selecting it and then pressing **Enter**. - - Note: - Some of the values might not be valid depending upon the current - settings of the device session. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int64 - - | Sets the value of a ViInt64 property. - | This is a low-level method that you can use to set the values of - device-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int64` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Properties whose value cannot be set are - dim. Help text is shown for each property. Select a property by - double-clicking on it or by selecting it and then pressing **Enter**. - - Read-only properties appear dim in the list box. If you select a - read-only property, an error message appears. A ring control at the - top of the dialog box allows you to see all IVI properties or only - the properties of type ViReal64. If you choose to see all IVI - properties, the data types appear to the right of the property names - in the list box. Properties with data types other than ViReal64 are - dim. If you select a property data type that is dim, LabWindows/CVI - transfers you to the method panel for the corresponding method - that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - attribute_value (int): Specifies the value to which you want to set the property. If the - property currently showing in the property ring control has constants - as valid values, you can view a list of the constants by pressing - **Enter** on this control. Select a value by double-clicking on it or by - selecting it and then pressing **Enter**. - - Note: - Some of the values might not be valid depending upon the current - settings of the device session. - - ''' - self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_real64 - - | Sets the value of a ViReal64 property. - | This is a low-level method that you can use to set the values of - device-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Properties whose value cannot be set are - dim. Help text is shown for each property. Select a property by - double-clicking on it or by selecting it and then pressing **Enter**. - - Read-only properties appear dim in the list box. If you select a - read-only property, an error message appears. A ring control at the - top of the dialog box allows you to see all IVI properties or only - the properties of type ViReal64. If you choose to see all IVI - properties, the data types appear to the right of the property names - in the list box. Properties with data types other than ViReal64 are - dim. If you select a property data type that is dim, LabWindows/CVI - transfers you to the method panel for the corresponding method - that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - attribute_value (float): Specifies the value to which you want to set the property. If the - property currently showing in the property ring control has constants - as valid values, you can view a list of the constants by pressing - **Enter** on this control. Select a value by double-clicking on it or by - selecting it and then pressing **Enter**. - - Note: - Some of the values might not be valid depending upon the current - settings of the device session. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, attribute_value): - r'''_set_attribute_vi_string - - | Sets the value of a ViString property. - | This is a low-level method that you can use to set the values of - device-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Specifies the ID of a property. From the method panel window, you - can use this control as follows. - - - In the method panel window, click on the control or press **Enter** - or the spacebar to display a dialog box containing hierarchical list - of the available properties. Properties whose value cannot be set are - dim. Help text is shown for each property. Select a property by - double-clicking on it or by selecting it and then pressing **Enter**. - - Read-only properties appear dim in the list box. If you select a - read-only property, an error message appears. A ring control at the - top of the dialog box allows you to see all IVI properties or only - the properties of type ViString. If you choose to see all IVI - properties, the data types appear to the right of the property names - in the list box. Properties with data types other than ViString are - dim. If you select a property data type that is dim, LabWindows/CVI - transfers you to the method panel for the corresponding method - that is consistent with the data type. - - If you want to enter a variable name, press **Ctrl**\ +\ **T** to - change this ring control to a manual input box. If the property in - this ring control has named constants as valid values, you can view - the constants by moving to the value control and pressing **Enter**. - - attribute_value (str): Specifies the value to which you want to set the property. If the - property currently showing in the property ring control has constants - as valid values, you can view a list of the constants by pressing - **Enter** on this control. Select a value by double-clicking on it or by - selecting it and then pressing **Enter**. - - Note: - Some of the values might not be valid depending upon the current - settings of the device session. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def set_sequence(self, values, source_delays): - r'''set_sequence - - Configures a series of voltage, current, resistance or power outputs and corresponding source delays. The source mode must be set to SourceMode.SEQUENCE for this method to take effect. - - Refer to the Configuring the Source Unit topic in the *NI DC Power Supplies and SMUs Help* for more information about how to configure your device. - - Use this method in the Uncommitted or Committed programming states. - Refer to the Programming States topic in the *NI DC Power Supplies and SMUs Help* for more information about NI-DCPower programming states. - - Using this method with Advanced Sequence methods for the same channel in the same session is not supported. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].set_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.set_sequence` - - Args: - values (list of float): Specifies the series of voltage, current, resistance or power levels, depending on the configured output_function. - **Valid values**: The valid values for this parameter are defined by the voltage level range, current level range, constant resistance level range or constant power level range. - - source_delays (list of float): Specifies the source delay that follows the configuration of each value - in the sequence. - **Valid Values**: - The valid values are between 0 and 167 seconds. - - ''' - if source_delays is not None and len(source_delays) != len(values): # case S160 - raise ValueError("Length of source_delays and values parameters do not match.") # case S160 - self._interpreter.set_sequence(self._repeated_capability, values, source_delays) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - @ivi_synchronized - def wait_for_event(self, event_id, timeout=hightime.timedelta(seconds=10.0)): - r'''wait_for_event - - Waits until the specified channel(s) have generated the specified event. - - The session monitors whether each type of event has occurred at least - once since the last time this method or the initiate - method were called. If an event has only been generated once and you - call this method successively, the method times out. Individual - events must be generated between separate calls of this method. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Tip: - This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].wait_for_event` - - To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. - - Example: :py:meth:`my_session.wait_for_event` - - Args: - event_id (enums.Event): Specifies which event to wait for. - **Defined Values:** - - +-----------------------------------+--------------------------------------------------+ - | Event.SOURCE_COMPLETE | Waits for the Source Complete event. | - +-----------------------------------+--------------------------------------------------+ - | Event.MEASURE_COMPLETE | Waits for the Measure Complete event. | - +-----------------------------------+--------------------------------------------------+ - | Event.SEQUENCE_ITERATION_COMPLETE | Waits for the Sequence Iteration Complete event. | - +-----------------------------------+--------------------------------------------------+ - | Event.SEQUENCE_ENGINE_DONE | Waits for the Sequence Engine Done event. | - +-----------------------------------+--------------------------------------------------+ - | Event.PULSE_COMPLETE | Waits for the Pulse Complete event. | - +-----------------------------------+--------------------------------------------------+ - | Event.READY_FOR_PULSE_TRIGGER | Waits for the Ready for Pulse Trigger event. | - +-----------------------------------+--------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in - seconds. If the method does not complete within this time interval, - NI-DCPower returns an error. - - Note: - When setting the timeout interval, ensure you take into account any - triggers so that the timeout interval is long enough for your - application. - - ''' - if type(event_id) is not enums.Event: - raise TypeError('Parameter event_id must be of type ' + str(enums.Event)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - self._interpreter.wait_for_event(self._repeated_capability, event_id, timeout) - - def _error_message(self, error_code): - r'''_error_message - - Converts a status code returned by an instrument driver method into a - user-readable string. - - Args: - error_code (int): Specifies the **status** parameter that is returned from any of the - NI-DCPower methods. - - - Returns: - error_message (str): Returns the user-readable message string that corresponds to the status - code you specify. - You must pass a ViChar array with at least 256 bytes. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-DCPower session to an NI programmable power supply or source measure unit.''' - - def __init__(self, resource_name, channels=None, reset=False, options={}, independent_channels=True, *, grpc_options=None): - r'''An NI-DCPower session to an NI programmable power supply or source measure unit. - - Creates and returns a new NI-DCPower session to the instrument(s) and channel(s) specified - in **resource name** to be used in all subsequent NI-DCPower method calls. With this method, - you can optionally set the initial state of the following session properties: - - - simulate - - driver_setup - - After calling this method, the specified channel or channels will be in the Uncommitted - state. - - To place channel(s) in a known start-up state when creating a new session, set **reset** to - True. This action is equivalent to using the reset method immediately after initializing the - session. - - To open a session and leave the channel(s) in an existing configuration without passing - through a transitional output state, set **reset** to False. Next, configure the channel(s) - as in the previous session, change the desired settings, and then call the initiate method - to write both settings. - - **Details of Independent Channel Operation** - - With this method and channel-based NI-DCPower methods and properties, you can use any - channels in the session independently. For example, you can initiate a subset of channels in - the session with initiate, and the other channels in the session remain in the Uncommitted - state. - - When you initialize with independent channels, each channel steps through the NI-DCPower - programming state model independently of all other channels, and you can specify a subset of - channels for most operations. - - **Note** You can make concurrent calls to a session from multiple threads, but the session - executes the calls one at a time. If you specify multiple channels for a method or property, - the session may perform the operation on multiple channels in parallel, though this is not - guaranteed, and some operations may execute sequentially. - - Args: - resource_name (str, list, tuple): Specifies the **resource name** as seen in Measurement - & Automation Explorer (MAX) or lsni, for example "PXI1Slot3" where "PXI1Slot3" is an - instrument's **resource name**. If independent_channels is False, **resource name** - can also be a logical IVI name. - - If independent_channels is True, **resource name** can be names of the instrument(s) - and the channel(s) to initialize. Specify the instrument(s) and channel(s) using the - form "PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or - PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3", where "PXI1Slot3" and "PXI1Slot4" are - instrument resource names followed by channels. If you exclude a channels string - after an instrument resource name, all channels of the instrument(s) are included in - the session. - - channels (str, list, range, tuple): For new applications, use the default value of None - and specify the channels in **resource name**. - - Specifies which channel(s) to include in a new session. Specify multiple - channels by using a channel list or a channel range. A channel list is a comma (,) - separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). - A channel range is a lower bound channel followed by a hyphen (-) or colon (:) - followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, - and 2). - - If independent_channels is False, this argument specifies which channels to include - in a legacy synchronized channels session. If you do not specify any channels, by - default all channels on the device are included in the session. - - If independent_channels is True, this argument combines with **resource name** to - specify which channels to include in an independent channels session. Initializing - an independent channels session with a channels argument is deprecated. - - reset (bool): Specifies whether to reset channel(s) during the initialization procedure. - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - independent_channels (bool): Specifies whether to initialize the session with - independent channels. Set this argument to False on legacy applications or if you - are unable to upgrade your NI-DCPower driver runtime to 20.6 or higher. - - grpc_options (nidcpower.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - session (nidcpower.Session): A session object representing the device. - - ''' - if grpc_options: - import nidcpower._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - resource_name = _converters.convert_repeated_capabilities_without_prefix(resource_name) - channels = _converters.convert_repeated_capabilities_without_prefix(channels) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _fancy_initialize fails, the error handler can reference it. - # And then here, once _fancy_initialize succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._fancy_initialize(resource_name, channels, reset, options, independent_channels)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-DCPower', grpc_options.grpc_channel, connected) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("channels=" + pp.pformat(channels)) - param_list.append("reset=" + pp.pformat(reset)) - param_list.append("options=" + pp.pformat(options)) - param_list.append("independent_channels=" + pp.pformat(independent_channels)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def close(self): - '''close - - Closes the session specified in **vi** and deallocates the resources - that NI-DCPower reserves. If power output is enabled when you call this - method, the channels remain in their existing state and - continue providing power. Use the ConfigureOutputEnabled - method to disable power output on a per channel basis. Use the - reset method to disable power output on all channel(s). - - **Related Topics:** - - `Programming - States `__ - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def disable(self): - r'''disable - - This method performs the same actions as the reset - method, except that this method also immediately sets the - output_enabled property to False. - - This method opens the output relay on devices that have an output - relay. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - ''' - self._interpreter.disable() - - @ivi_synchronized - def export_attribute_configuration_buffer(self): - r'''export_attribute_configuration_buffer - - Exports the property configuration of the session to the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DCPower returns - an error. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - __init__ method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - Note: - This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - Returns: - configuration (bytes): Specifies the byte array buffer to be populated with the exported - property configuration. - - ''' - configuration = self._interpreter.export_attribute_configuration_buffer() - return _converters.convert_to_bytes(configuration) - - @ivi_synchronized - def export_attribute_configuration_file(self, file_path): - r'''export_attribute_configuration_file - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DCPower returns - an error. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - __init__ method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - Note: - This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - Args: - file_path (str): Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:** .nidcpowerconfig - - ''' - self._interpreter.export_attribute_configuration_file(file_path) - - def _fancy_initialize(self, resource_name, channels=None, reset=False, option_string="", independent_channels=True): - '''_fancy_initialize - - Creates and returns a new NI-DCPower session to the instrument(s) and channel(s) specified - in **resource name** to be used in all subsequent NI-DCPower method calls. With this method, - you can optionally set the initial state of the following session properties: - - - simulate - - driver_setup - - After calling this method, the specified channel or channels will be in the Uncommitted - state. - - To place channel(s) in a known start-up state when creating a new session, set **reset** to - True. This action is equivalent to using the reset method immediately after initializing the - session. - - To open a session and leave the channel(s) in an existing configuration without passing - through a transitional output state, set **reset** to False. Next, configure the channel(s) - as in the previous session, change the desired settings, and then call the initiate method - to write both settings. - - **Details of Independent Channel Operation** - - With this method and channel-based NI-DCPower methods and properties, you can use any - channels in the session independently. For example, you can initiate a subset of channels in - the session with initiate, and the other channels in the session remain in the Uncommitted - state. - - When you initialize with independent channels, each channel steps through the NI-DCPower - programming state model independently of all other channels, and you can specify a subset of - channels for most operations. - - **Note** You can make concurrent calls to a session from multiple threads, but the session - executes the calls one at a time. If you specify multiple channels for a method or property, - the session may perform the operation on multiple channels in parallel, though this is not - guaranteed, and some operations may execute sequentially. - - Args: - resource_name (str, list, tuple): Specifies the **resource name** as seen in Measurement - & Automation Explorer (MAX) or lsni, for example "PXI1Slot3" where "PXI1Slot3" is an - instrument's **resource name**. If independent_channels is False, **resource name** - can also be a logical IVI name. - - If independent_channels is True, **resource name** can be names of the instrument(s) - and the channel(s) to initialize. Specify the instrument(s) and channel(s) using the - form "PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or - PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3", where "PXI1Slot3" and "PXI1Slot4" are - instrument resource names followed by channels. If you exclude a channels string - after an instrument resource name, all channels of the instrument(s) are included in - the session. - - channels (str, list, range, tuple): For new applications, use the default value of None - and specify the channels in **resource name**. - - Specifies which channel(s) to include in a new session. Specify multiple - channels by using a channel list or a channel range. A channel list is a comma (,) - separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). - A channel range is a lower bound channel followed by a hyphen (-) or colon (:) - followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, - and 2). - - If independent_channels is False, this argument specifies which channels to include - in a legacy synchronized channels session. If you do not specify any channels, by - default all channels on the device are included in the session. - - If independent_channels is True, this argument combines with **resource name** to - specify which channels to include in an independent channels session. Initializing - an independent channels session with a channels argument is deprecated. - - reset (bool): Specifies whether to reset channel(s) during the initialization procedure. - - option_string (dict): Specifies the initial value of certain properties for the session. - The syntax for **optionString** is a list of properties with an assigned value where - 1 is True and 0 is False. For example: - - Simulate=0, DriverSetup=Model:; BoardType: - - To simulate a multi-instrument session when independent_channels is True, set - Simulate to 1 and list multiple instruments for DriverSetup. For example: - - Simulate=1, DriverSetup=ResourceName:; Model:; - BoardType: & ResourceName:; Model:; - BoardType: - - You do not have to specify a value for all the properties. If you do not specify a - value for a property, the default value is used. - - independent_channels (bool): Specifies whether to initialize the session with - independent channels. Set this argument to False on legacy applications or if you - are unable to upgrade your NI-DCPower driver runtime to 20.6 or higher. - - - Returns: - vi (int): Returns a session handle that you use to identify the device in all - subsequent NI-DCPower method calls. - - ''' - if independent_channels: - resource_string = resource_name # store potential modifications to resource_name in a separate variable - - if channels: - # if we have a channels arg, we need to try and combine it with the resource name - # before calling into initialize with independent channels - channel_list = (resource_name + "/" + channel for channel in channels.split(",")) - resource_string = ",".join(channel_list) - - import warnings - warnings.warn( - "Attempting to initialize an independent channels session with a channels argument. The resource " - "name '" + resource_name + "' will be combined with the channels '" + channels + "' to form the " - "fully-qualified channel list '" + resource_string + "'. To avoid this warning, use a " - "fully-qualified channel list as the resource name instead of providing a channels argument.", - DeprecationWarning - ) - - if "," in resource_name: - raise ValueError( - "Channels cannot be combined with multiple instruments in the resource name '" + resource_name + "'. " - "Specify a list of fully-qualified channels as the resource name instead of supplying a " - "channels argument." - ) - - return self._initialize_with_independent_channels(resource_string, reset, option_string) - - else: - import warnings - warnings.warn("Initializing session without independent channels enabled.", DeprecationWarning) - - return self._initialize_with_channels(resource_name, channels, reset, option_string) - - @ivi_synchronized - def get_channel_name(self, index): - r'''get_channel_name - - Retrieves the output **channelName** that corresponds to the requested - **index**. Use the channel_count property to - determine the upper bound of valid values for **index**. - - Args: - index (int): Specifies which channel name to return. The index values begin at - 1. - - - Returns: - channel_name (str): Returns the channel name that corresponds to **index**. - - ''' - channel_name = self._interpreter.get_channel_name(index) - return channel_name - - @ivi_synchronized - def _get_ext_cal_last_date_and_time(self): - r'''_get_ext_cal_last_date_and_time - - Returns the date and time of the last successful calibration. The time - returned is 24-hour (military) local time; for example, if the device - was calibrated at 2:30 PM, this method returns 14 for **hours** and 30 - for **minutes**. - - Returns: - year (int): Returns the **year** the device was last calibrated. - - month (int): Returns the **month** in which the device was last calibrated. - - day (int): Returns the **day** on which the device was last calibrated. - - hour (int): Returns the **hour** (in 24-hour time) in which the device was last - calibrated. - - minute (int): Returns the **minute** in which the device was last calibrated. - - ''' - year, month, day, hour, minute = self._interpreter.get_ext_cal_last_date_and_time() - return year, month, day, hour, minute - - @ivi_synchronized - def get_ext_cal_last_temp(self): - r'''get_ext_cal_last_temp - - Returns the onboard **temperature** of the device, in degrees Celsius, - during the last successful external calibration. - - Returns: - temperature (float): Returns the onboard **temperature** of the device, in degrees Celsius, - during the last successful external calibration. - - ''' - temperature = self._interpreter.get_ext_cal_last_temp() - return temperature - - @ivi_synchronized - def get_ext_cal_recommended_interval(self): - r'''get_ext_cal_recommended_interval - - Returns the recommended maximum interval, in **months**, between - external calibrations. - - Returns: - months (hightime.timedelta): Specifies the recommended maximum interval, in **months**, between - external calibrations. - - ''' - months = self._interpreter.get_ext_cal_recommended_interval() - return _converters.convert_month_to_timedelta(months) - - @ivi_synchronized - def get_ext_cal_last_date_and_time(self): - '''get_ext_cal_last_date_and_time - - Returns the date and time of the last successful calibration. - - Returns: - last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. - - ''' - year, month, day, hour, minute = self._get_ext_cal_last_date_and_time() - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def get_self_cal_last_date_and_time(self): - '''get_self_cal_last_date_and_time - - Returns the date and time of the oldest successful self-calibration from among the channels in the session. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Returns: - last_cal_datetime (hightime.datetime): Returns the date and time the device was last calibrated. - - ''' - year, month, day, hour, minute = self._get_self_cal_last_date_and_time() - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def _get_self_cal_last_date_and_time(self): - r'''_get_self_cal_last_date_and_time - - Returns the date and time of the oldest successful self-calibration from - among the channels in the session. - - The time returned is 24-hour (military) local time; for example, if you - have a session using channels 1 and 2, and a self-calibration was - performed on channel 1 at 2:30 PM, and a self-calibration was performed - on channel 2 at 3:00 PM on the same day, this method returns 14 for - **hours** and 30 for **minutes**. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Returns: - year (int): Returns the **year** the device was last calibrated. - - month (int): Returns the **month** in which the device was last calibrated. - - day (int): Returns the **day** on which the device was last calibrated. - - hour (int): Returns the **hour** (in 24-hour time) in which the device was last - calibrated. - - minute (int): Returns the **minute** in which the device was last calibrated. - - ''' - year, month, day, hour, minute = self._interpreter.get_self_cal_last_date_and_time() - return year, month, day, hour, minute - - @ivi_synchronized - def get_self_cal_last_temp(self): - r'''get_self_cal_last_temp - - Returns the onboard temperature of the device, in degrees Celsius, - during the oldest successful self-calibration from among the channels in - the session. - - For example, if you have a session using channels 1 and 2, and you - perform a self-calibration on channel 1 with a device temperature of 25 - degrees Celsius at 2:00, and a self-calibration was performed on channel - 2 at 27 degrees Celsius at 3:00 on the same day, this method returns - 25 for the **temperature** parameter. - - Note: - This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. - - Returns: - temperature (float): Returns the onboard **temperature** of the device, in degrees Celsius, - during the oldest successful calibration. - - ''' - temperature = self._interpreter.get_self_cal_last_temp() - return temperature - - @ivi_synchronized - def import_attribute_configuration_buffer(self, configuration): - r'''import_attribute_configuration_buffer - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - __init__ method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Programming - States `__ - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - Note: - This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - Args: - configuration (bytes): Specifies the byte array buffer that contains the property - configuration to import. - - ''' - configuration = _converters.convert_to_bytes(configuration) - self._interpreter.import_attribute_configuration_buffer(configuration) - - @ivi_synchronized - def import_attribute_configuration_file(self, file_path): - r'''import_attribute_configuration_file - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers and the same number of configured - channels. - - **Support for this Method** - - Calling this method in `Sequence Source - Mode `__ is unsupported. - - **Channel Mapping Behavior for Multichannel Sessions** - - When importing and exporting session property configurations between - NI‑DCPower sessions that were initialized with different channels, the - configurations of the exporting channels are mapped to the importing - channels in the order you specify in the **channelName** input to the - __init__ method. - - For example, if your entry for **channelName** is 0,1 for the exporting - session and 1,2 for the importing session: - - - The configuration exported from channel 0 is imported into channel 1. - - The configuration exported from channel 1 is imported into channel 2. - - **Related Topics:** - - `Programming - States `__ - - `Using Properties and - Properties `__ - - `Setting Properties and Properties Before Reading - Them `__ - - Note: - This method will return an error if the total number of channels - initialized for the exporting session is not equal to the total number - of channels initialized for the importing session. - - Args: - file_path (str): Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:** .nidcpowerconfig - - ''' - self._interpreter.import_attribute_configuration_file(file_path) - - def _initialize_with_channels(self, resource_name, channels, reset, option_string): - r'''_initialize_with_channels - - Creates and returns a new NI-DCPower session to the instrument - specified in **resource name** to be used in all subsequent NI-DCPower - method calls. With this method, you can optionally set the initial - state of the following session properties: - - - simulate - - driver_setup - - After calling this method, the session will be in the Uncommitted - state. Refer to the `Programming - States `__ topic for - details about specific software states. - - To place the device in a known start-up state when creating a new - session, set **reset** to True. This action is equivalent to using - the reset method immediately after initializing the - session. - - To open a session and leave the device in its existing configuration - without passing through a transitional output state, set **reset** to - False. Then configure the device as in the previous session, - changing only the desired settings, and then call the - initiate method. - - **Related Topics:** - - `Programming States `__ - - Args: - resource_name (str): Specifies the **resourceName** assigned by Measurement & Automation - Explorer (MAX), for example "PXI1Slot3" where "PXI1Slot3" is an - instrument's **resourceName**. **resourceName** can also be a logical - IVI name. - - channels (str): Specifies which channel(s) to include in a new session. Specify - multiple channels by using a channel list or a channel range. A channel - list is a comma (,) separated sequence of channel names (for example, - 0,2 specifies channels 0 and 2). A channel range is a lower bound - channel followed by a hyphen (-) or colon (:) followed by an upper bound - channel (for example, 0-2 specifies channels 0, 1, and 2). In the - Running state, multiple channel configurations are performed - sequentially based on the order specified in this parameter. If you do - not specify any channels, by default all channels on the device are - included in the session. - - reset (bool): Specifies whether to reset the device during the initialization - procedure. - - option_string (str): Specifies the initial value of certain properties for the session. - The syntax for **optionString** is a list of properties with an assigned - value where 1 is True and 0 is False. For example: - - "Simulate=0" - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - For more information about simulating a device, refer to `Simulating an - Instrument `__. - - - Returns: - vi (int): Returns a session handle that you use to identify the device in all - subsequent NI-DCPower method calls. - - ''' - vi = self._interpreter.initialize_with_channels(resource_name, channels, reset, option_string) - return vi - - def _initialize_with_independent_channels(self, resource_name, reset, option_string): - r'''_initialize_with_independent_channels - - Creates a new NI-DCPower session to the specified instrument(s) and channel(s) and returns a - session handle to be used in all subsequent NI-DCPower method calls. - - After calling this method, the specified channel or channels will be in the Uncommitted - state. - - With this method and channel-based NI-DCPower methods and properties, you can use any - channels in the session independently. For example, you can initiate a subset of channels in - the session with initiate, and the other channels in the session - remain in the Uncommitted state. - - **Details of Independent Channel Operation** - - When you initialize with independent channels, each channel steps through the NI-DCPower - programming state model independently of all other channels, and you can specify a subset - of channels for most operations. - - **Note** You can make concurrent calls to a session from multiple threads, but the session - executes the calls one at a time. If you specify multiple channels for a method or - property, the session may perform the operation on multiple channels in parallel, though - this is not guaranteed, and some operations may execute sequentially. - - **Related Topics:** - - `Programming States `__ - - Args: - resource_name (str): Specifies the NI-DCPower resources to use in the session. - NI-DCPower resources can be names of the instrument(s) assigned by Measurement & - Automation Explorer (MAX) and the channel(s) to initialize. Specify the - instrument(s) and channel(s) using the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 - or PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3, where PXI1Slot3 and PXI1Slot4 are - instrument resource names and 0, 2, and 3 are channels. - - If you pass "" for this control, all channels of the instrument(s) are included in - the session. - - reset (bool): Specifies whether to reset channel(s) during the initialization procedure. - The default is False. - - To place channel(s) in a known startup state when creating a new session, set - **reset** to True. This action is equivalent to using the reset - method immediately after initializing the session. - - To open a session and leave the channel(s) in an existing configuration without - passing through a transitional output state, set **reset** to False. Next, configure - the channel(s) as in the previous session, change the desired settings, and then - call the initiate method to write both settings. - - option_string (str): Specifies the initial value of certain properties for the session. - The syntax for **optionString** is a list of properties with an assigned value where - 1 is True and 0 is False. For example: - - Simulate=0, DriverSetup=Model:; BoardType: - - To simulate a multi-instrument session, set Simulate to 1 and list multiple - instruments for DriverSetup. For example: - - Simulate=1, DriverSetup=ResourceName:; Model:; - BoardType: & ResourceName:; Model:; - BoardType: - - You do not have to specify a value for all the properties. If you do not specify a - value for a property, the default value is used. - - For more information about simulating a device, refer to `Simulating an - Instrument `__. - - - Returns: - vi (int): Returns a session handle that you use to identify the session in all - subsequent NI-DCPower method calls. - - ''' - vi = self._interpreter.initialize_with_independent_channels(resource_name, reset, option_string) - return vi - - @ivi_synchronized - def get_channel_names(self, indices): - '''get_channel_names - - Returns a list of channel names for the given channel indices. - - Args: - indices (basic sequence types or str or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - Returns: - names (list of str): The channel name(s) at the specified indices. - - ''' - return self._get_channel_names(indices) - - @ivi_synchronized - def read_current_temperature(self): - r'''read_current_temperature - - Returns the current onboard **temperature**, in degrees Celsius, of the - device. - - Returns: - temperature (float): Returns the onboard **temperature**, in degrees Celsius, of the device. - - ''' - temperature = self._interpreter.read_current_temperature() - return temperature - - @ivi_synchronized - def reset_device(self): - r'''reset_device - - Resets the device to a known state. The method disables power - generation, resets session properties to their default values, clears - errors such as overtemperature and unexpected loss of auxiliary power, - commits the session properties, and leaves the session in the - Uncommitted state. This method also performs a hard reset on the - device and driver software. This method has the same functionality as - using reset in Measurement & Automation Explorer. Refer to the - `Programming - States `__ topic for - more information about NI-DCPower software states. - - This will also open the output relay on devices that have an output - relay. - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - ''' - self._interpreter.reset_device() - - @ivi_synchronized - def reset_with_defaults(self): - r'''reset_with_defaults - - Resets the device to a known state. This method disables power - generation, resets session properties to their default values, commits - the session properties, and leaves the session in the - `Running `__ - state. In addition to exhibiting the behavior of the reset - method, this method can assign user-defined default values for - configurable properties from the IVI configuration. - ''' - self._interpreter.reset_with_defaults() - - def _close(self): - r'''_close - - Closes the session specified in **vi** and deallocates the resources - that NI-DCPower reserves. If power output is enabled when you call this - method, the channels remain in their existing state and - continue providing power. Use the ConfigureOutputEnabled - method to disable power output on a per channel basis. Use the - reset method to disable power output on all channel(s). - - **Related Topics:** - - `Programming - States `__ - - Note: - NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Performs the device self-test routine and returns the test result(s). - Calling this method implicitly calls the reset method. - - When calling self_test with the PXIe-4162/4163, specify all - channels of your PXIe-4162/4163 with the channels input of - __init__. You cannot self test a subset of - PXIe-4162/4163 channels. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+-------------------+ - | Self-Test Code | Description | - +================+===================+ - | 0 | Self test passed. | - +----------------+-------------------+ - | 1 | Self test failed. | - +----------------+-------------------+ - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Performs the device self-test routine and returns the test result(s). - Calling this method implicitly calls the reset method. - - When calling self_test with the PXIe-4162/4163, specify all - channels of your PXIe-4162/4163 with the channels input of - __init__. You cannot self test a subset of - PXIe-4162/4163 channels. - - Returns: - self_test_result (int): Returns the value result from the device self-test. - - +----------------+-------------------+ - | Self-Test Code | Description | - +================+===================+ - | 0 | Self test passed. | - +----------------+-------------------+ - | 1 | Self test failed. | - +----------------+-------------------+ - - self_test_message (str): Returns the self-test result message. The size of this array must be at - least 256 bytes. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/nidcpower/nidcpower/unit_tests/_matchers.py b/generated/nidcpower/nidcpower/unit_tests/_matchers.py deleted file mode 100644 index 6e8e651bf0..0000000000 --- a/generated/nidcpower/nidcpower/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nidcpower._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nidcpower/nidcpower/unit_tests/_mock_helper.py b/generated/nidcpower/nidcpower/unit_tests/_mock_helper.py deleted file mode 100644 index 0a79383ca5..0000000000 --- a/generated/nidcpower/nidcpower/unit_tests/_mock_helper.py +++ /dev/null @@ -1,1074 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['AbortWithChannels'] = {} - self._defaults['AbortWithChannels']['return'] = 0 - self._defaults['CalSelfCalibrate'] = {} - self._defaults['CalSelfCalibrate']['return'] = 0 - self._defaults['ClearLatchedOutputCutoffState'] = {} - self._defaults['ClearLatchedOutputCutoffState']['return'] = 0 - self._defaults['CommitWithChannels'] = {} - self._defaults['CommitWithChannels']['return'] = 0 - self._defaults['ConfigureApertureTime'] = {} - self._defaults['ConfigureApertureTime']['return'] = 0 - self._defaults['ConfigureLCRCompensation'] = {} - self._defaults['ConfigureLCRCompensation']['return'] = 0 - self._defaults['ConfigureLCRCustomCableCompensation'] = {} - self._defaults['ConfigureLCRCustomCableCompensation']['return'] = 0 - self._defaults['CreateAdvancedSequenceCommitStepWithChannels'] = {} - self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] = 0 - self._defaults['CreateAdvancedSequenceStepWithChannels'] = {} - self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] = 0 - self._defaults['CreateAdvancedSequenceWithChannels'] = {} - self._defaults['CreateAdvancedSequenceWithChannels']['return'] = 0 - self._defaults['DeleteAdvancedSequenceWithChannels'] = {} - self._defaults['DeleteAdvancedSequenceWithChannels']['return'] = 0 - self._defaults['Disable'] = {} - self._defaults['Disable']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer'] = {} - self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None - self._defaults['ExportAttributeConfigurationFile'] = {} - self._defaults['ExportAttributeConfigurationFile']['return'] = 0 - self._defaults['FancyInitialize'] = {} - self._defaults['FancyInitialize']['return'] = 0 - self._defaults['FancyInitialize']['vi'] = None - self._defaults['FetchMultiple'] = {} - self._defaults['FetchMultiple']['return'] = 0 - self._defaults['FetchMultiple']['voltageMeasurements'] = None - self._defaults['FetchMultiple']['currentMeasurements'] = None - self._defaults['FetchMultiple']['inCompliance'] = None - self._defaults['FetchMultiple']['actualCount'] = None - self._defaults['FetchMultipleLCR'] = {} - self._defaults['FetchMultipleLCR']['return'] = 0 - self._defaults['FetchMultipleLCR']['measurements'] = None - self._defaults['FetchMultipleLCR']['actualCount'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['attributeValue'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['attributeValue'] = None - self._defaults['GetAttributeViInt64'] = {} - self._defaults['GetAttributeViInt64']['return'] = 0 - self._defaults['GetAttributeViInt64']['attributeValue'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['attributeValue'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['attributeValue'] = None - self._defaults['GetChannelName'] = {} - self._defaults['GetChannelName']['return'] = 0 - self._defaults['GetChannelName']['channelName'] = None - self._defaults['GetChannelNameFromString'] = {} - self._defaults['GetChannelNameFromString']['return'] = 0 - self._defaults['GetChannelNameFromString']['channelName'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['code'] = None - self._defaults['GetError']['description'] = None - self._defaults['GetExtCalLastDateAndTime'] = {} - self._defaults['GetExtCalLastDateAndTime']['return'] = 0 - self._defaults['GetExtCalLastDateAndTime']['year'] = None - self._defaults['GetExtCalLastDateAndTime']['month'] = None - self._defaults['GetExtCalLastDateAndTime']['day'] = None - self._defaults['GetExtCalLastDateAndTime']['hour'] = None - self._defaults['GetExtCalLastDateAndTime']['minute'] = None - self._defaults['GetExtCalLastTemp'] = {} - self._defaults['GetExtCalLastTemp']['return'] = 0 - self._defaults['GetExtCalLastTemp']['temperature'] = None - self._defaults['GetExtCalRecommendedInterval'] = {} - self._defaults['GetExtCalRecommendedInterval']['return'] = 0 - self._defaults['GetExtCalRecommendedInterval']['months'] = None - self._defaults['GetLCRCompensationData'] = {} - self._defaults['GetLCRCompensationData']['return'] = 0 - self._defaults['GetLCRCompensationData']['compensationData'] = None - self._defaults['GetLCRCompensationLastDateAndTime'] = {} - self._defaults['GetLCRCompensationLastDateAndTime']['return'] = 0 - self._defaults['GetLCRCompensationLastDateAndTime']['year'] = None - self._defaults['GetLCRCompensationLastDateAndTime']['month'] = None - self._defaults['GetLCRCompensationLastDateAndTime']['day'] = None - self._defaults['GetLCRCompensationLastDateAndTime']['hour'] = None - self._defaults['GetLCRCompensationLastDateAndTime']['minute'] = None - self._defaults['GetLCRCustomCableCompensationData'] = {} - self._defaults['GetLCRCustomCableCompensationData']['return'] = 0 - self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'] = None - self._defaults['GetSelfCalLastDateAndTime'] = {} - self._defaults['GetSelfCalLastDateAndTime']['return'] = 0 - self._defaults['GetSelfCalLastDateAndTime']['year'] = None - self._defaults['GetSelfCalLastDateAndTime']['month'] = None - self._defaults['GetSelfCalLastDateAndTime']['day'] = None - self._defaults['GetSelfCalLastDateAndTime']['hour'] = None - self._defaults['GetSelfCalLastDateAndTime']['minute'] = None - self._defaults['GetSelfCalLastTemp'] = {} - self._defaults['GetSelfCalLastTemp']['return'] = 0 - self._defaults['GetSelfCalLastTemp']['temperature'] = None - self._defaults['ImportAttributeConfigurationBuffer'] = {} - self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ImportAttributeConfigurationFile'] = {} - self._defaults['ImportAttributeConfigurationFile']['return'] = 0 - self._defaults['InitializeWithChannels'] = {} - self._defaults['InitializeWithChannels']['return'] = 0 - self._defaults['InitializeWithChannels']['vi'] = None - self._defaults['InitializeWithIndependentChannels'] = {} - self._defaults['InitializeWithIndependentChannels']['return'] = 0 - self._defaults['InitializeWithIndependentChannels']['vi'] = None - self._defaults['InitiateWithChannels'] = {} - self._defaults['InitiateWithChannels']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['Measure'] = {} - self._defaults['Measure']['return'] = 0 - self._defaults['Measure']['measurement'] = None - self._defaults['MeasureMultiple'] = {} - self._defaults['MeasureMultiple']['return'] = 0 - self._defaults['MeasureMultiple']['voltageMeasurements'] = None - self._defaults['MeasureMultiple']['currentMeasurements'] = None - self._defaults['MeasureMultipleLCR'] = {} - self._defaults['MeasureMultipleLCR']['return'] = 0 - self._defaults['MeasureMultipleLCR']['measurements'] = None - self._defaults['ParseChannelCount'] = {} - self._defaults['ParseChannelCount']['return'] = 0 - self._defaults['ParseChannelCount']['numberOfChannels'] = None - self._defaults['PerformLCRLoadCompensation'] = {} - self._defaults['PerformLCRLoadCompensation']['return'] = 0 - self._defaults['PerformLCROpenCompensation'] = {} - self._defaults['PerformLCROpenCompensation']['return'] = 0 - self._defaults['PerformLCROpenCustomCableCompensation'] = {} - self._defaults['PerformLCROpenCustomCableCompensation']['return'] = 0 - self._defaults['PerformLCRShortCompensation'] = {} - self._defaults['PerformLCRShortCompensation']['return'] = 0 - self._defaults['PerformLCRShortCustomCableCompensation'] = {} - self._defaults['PerformLCRShortCustomCableCompensation']['return'] = 0 - self._defaults['QueryInCompliance'] = {} - self._defaults['QueryInCompliance']['return'] = 0 - self._defaults['QueryInCompliance']['inCompliance'] = None - self._defaults['QueryLatchedOutputCutoffState'] = {} - self._defaults['QueryLatchedOutputCutoffState']['return'] = 0 - self._defaults['QueryLatchedOutputCutoffState']['outputCutoffState'] = None - self._defaults['QueryMaxCurrentLimit'] = {} - self._defaults['QueryMaxCurrentLimit']['return'] = 0 - self._defaults['QueryMaxCurrentLimit']['maxCurrentLimit'] = None - self._defaults['QueryMaxVoltageLevel'] = {} - self._defaults['QueryMaxVoltageLevel']['return'] = 0 - self._defaults['QueryMaxVoltageLevel']['maxVoltageLevel'] = None - self._defaults['QueryMinCurrentLimit'] = {} - self._defaults['QueryMinCurrentLimit']['return'] = 0 - self._defaults['QueryMinCurrentLimit']['minCurrentLimit'] = None - self._defaults['QueryOutputState'] = {} - self._defaults['QueryOutputState']['return'] = 0 - self._defaults['QueryOutputState']['inState'] = None - self._defaults['ReadCurrentTemperature'] = {} - self._defaults['ReadCurrentTemperature']['return'] = 0 - self._defaults['ReadCurrentTemperature']['temperature'] = None - self._defaults['ResetDevice'] = {} - self._defaults['ResetDevice']['return'] = 0 - self._defaults['ResetWithChannels'] = {} - self._defaults['ResetWithChannels']['return'] = 0 - self._defaults['ResetWithDefaults'] = {} - self._defaults['ResetWithDefaults']['return'] = 0 - self._defaults['SendSoftwareEdgeTriggerWithChannels'] = {} - self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViInt64'] = {} - self._defaults['SetAttributeViInt64']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['SetSequence'] = {} - self._defaults['SetSequence']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['WaitForEventWithChannels'] = {} - self._defaults['WaitForEventWithChannels']['return'] = 0 - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niDCPower_AbortWithChannels(self, vi, channel_name): # noqa: N802 - if self._defaults['AbortWithChannels']['return'] != 0: - return self._defaults['AbortWithChannels']['return'] - return self._defaults['AbortWithChannels']['return'] - - def niDCPower_CalSelfCalibrate(self, vi, channel_name): # noqa: N802 - if self._defaults['CalSelfCalibrate']['return'] != 0: - return self._defaults['CalSelfCalibrate']['return'] - return self._defaults['CalSelfCalibrate']['return'] - - def niDCPower_ClearLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason): # noqa: N802 - if self._defaults['ClearLatchedOutputCutoffState']['return'] != 0: - return self._defaults['ClearLatchedOutputCutoffState']['return'] - return self._defaults['ClearLatchedOutputCutoffState']['return'] - - def niDCPower_CommitWithChannels(self, vi, channel_name): # noqa: N802 - if self._defaults['CommitWithChannels']['return'] != 0: - return self._defaults['CommitWithChannels']['return'] - return self._defaults['CommitWithChannels']['return'] - - def niDCPower_ConfigureApertureTime(self, vi, channel_name, aperture_time, units): # noqa: N802 - if self._defaults['ConfigureApertureTime']['return'] != 0: - return self._defaults['ConfigureApertureTime']['return'] - return self._defaults['ConfigureApertureTime']['return'] - - def niDCPower_ConfigureLCRCompensation(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 - if self._defaults['ConfigureLCRCompensation']['return'] != 0: - return self._defaults['ConfigureLCRCompensation']['return'] - return self._defaults['ConfigureLCRCompensation']['return'] - - def niDCPower_ConfigureLCRCustomCableCompensation(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 - if self._defaults['ConfigureLCRCustomCableCompensation']['return'] != 0: - return self._defaults['ConfigureLCRCustomCableCompensation']['return'] - return self._defaults['ConfigureLCRCustomCableCompensation']['return'] - - def niDCPower_CreateAdvancedSequenceCommitStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 - if self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] != 0: - return self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] - return self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] - - def niDCPower_CreateAdvancedSequenceStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 - if self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] != 0: - return self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] - return self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] - - def niDCPower_CreateAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name, attribute_id_count, attribute_ids, set_as_active_sequence): # noqa: N802 - if self._defaults['CreateAdvancedSequenceWithChannels']['return'] != 0: - return self._defaults['CreateAdvancedSequenceWithChannels']['return'] - return self._defaults['CreateAdvancedSequenceWithChannels']['return'] - - def niDCPower_DeleteAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name): # noqa: N802 - if self._defaults['DeleteAdvancedSequenceWithChannels']['return'] != 0: - return self._defaults['DeleteAdvancedSequenceWithChannels']['return'] - return self._defaults['DeleteAdvancedSequenceWithChannels']['return'] - - def niDCPower_Disable(self, vi): # noqa: N802 - if self._defaults['Disable']['return'] != 0: - return self._defaults['Disable']['return'] - return self._defaults['Disable']['return'] - - def niDCPower_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - # configuration - if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: - raise MockFunctionCallError("niDCPower_ExportAttributeConfigurationBuffer", param='configuration') - if size.value == 0: - return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) - try: - configuration_ref = configuration.contents - except AttributeError: - configuration_ref = configuration - for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): - configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - - def niDCPower_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ExportAttributeConfigurationFile']['return'] - return self._defaults['ExportAttributeConfigurationFile']['return'] - - def niDCPower_FancyInitialize(self, resource_name, channels, reset, option_string, vi, independent_channels): # noqa: N802 - if self._defaults['FancyInitialize']['return'] != 0: - return self._defaults['FancyInitialize']['return'] - # vi - if self._defaults['FancyInitialize']['vi'] is None: - raise MockFunctionCallError("niDCPower_FancyInitialize", param='vi') - if vi is not None: - vi.contents.value = self._defaults['FancyInitialize']['vi'] - return self._defaults['FancyInitialize']['return'] - - def niDCPower_FetchMultiple(self, vi, channel_name, timeout, count, voltage_measurements, current_measurements, in_compliance, actual_count): # noqa: N802 - if self._defaults['FetchMultiple']['return'] != 0: - return self._defaults['FetchMultiple']['return'] - # voltage_measurements - if self._defaults['FetchMultiple']['voltageMeasurements'] is None: - raise MockFunctionCallError("niDCPower_FetchMultiple", param='voltageMeasurements') - test_value = self._defaults['FetchMultiple']['voltageMeasurements'] - try: - voltage_measurements_ref = voltage_measurements.contents - except AttributeError: - voltage_measurements_ref = voltage_measurements - assert len(voltage_measurements_ref) >= len(test_value) - for i in range(len(test_value)): - voltage_measurements_ref[i] = test_value[i] - # current_measurements - if self._defaults['FetchMultiple']['currentMeasurements'] is None: - raise MockFunctionCallError("niDCPower_FetchMultiple", param='currentMeasurements') - test_value = self._defaults['FetchMultiple']['currentMeasurements'] - try: - current_measurements_ref = current_measurements.contents - except AttributeError: - current_measurements_ref = current_measurements - assert len(current_measurements_ref) >= len(test_value) - for i in range(len(test_value)): - current_measurements_ref[i] = test_value[i] - # in_compliance - if self._defaults['FetchMultiple']['inCompliance'] is None: - raise MockFunctionCallError("niDCPower_FetchMultiple", param='inCompliance') - test_value = self._defaults['FetchMultiple']['inCompliance'] - try: - in_compliance_ref = in_compliance.contents - except AttributeError: - in_compliance_ref = in_compliance - assert len(in_compliance_ref) >= len(test_value) - for i in range(len(test_value)): - in_compliance_ref[i] = test_value[i] - # actual_count - if self._defaults['FetchMultiple']['actualCount'] is None: - raise MockFunctionCallError("niDCPower_FetchMultiple", param='actualCount') - if actual_count is not None: - actual_count.contents.value = self._defaults['FetchMultiple']['actualCount'] - return self._defaults['FetchMultiple']['return'] - - def niDCPower_FetchMultipleLCR(self, vi, channel_name, timeout, count, measurements, actual_count): # noqa: N802 - if self._defaults['FetchMultipleLCR']['return'] != 0: - return self._defaults['FetchMultipleLCR']['return'] - # measurements - if self._defaults['FetchMultipleLCR']['measurements'] is None: - raise MockFunctionCallError("niDCPower_FetchMultipleLCR", param='measurements') - test_value = self._defaults['FetchMultipleLCR']['measurements'] - try: - measurements_ref = measurements.contents - except AttributeError: - measurements_ref = measurements - assert len(measurements_ref) >= len(test_value) - for i in range(len(test_value)): - measurements_ref[i] = test_value[i] - # actual_count - if self._defaults['FetchMultipleLCR']['actualCount'] is None: - raise MockFunctionCallError("niDCPower_FetchMultipleLCR", param='actualCount') - if actual_count is not None: - actual_count.contents.value = self._defaults['FetchMultipleLCR']['actualCount'] - return self._defaults['FetchMultipleLCR']['return'] - - def niDCPower_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # attribute_value - if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: - raise MockFunctionCallError("niDCPower_GetAttributeViBoolean", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niDCPower_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # attribute_value - if self._defaults['GetAttributeViInt32']['attributeValue'] is None: - raise MockFunctionCallError("niDCPower_GetAttributeViInt32", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] - return self._defaults['GetAttributeViInt32']['return'] - - def niDCPower_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt64']['return'] != 0: - return self._defaults['GetAttributeViInt64']['return'] - # attribute_value - if self._defaults['GetAttributeViInt64']['attributeValue'] is None: - raise MockFunctionCallError("niDCPower_GetAttributeViInt64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt64']['attributeValue'] - return self._defaults['GetAttributeViInt64']['return'] - - def niDCPower_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # attribute_value - if self._defaults['GetAttributeViReal64']['attributeValue'] is None: - raise MockFunctionCallError("niDCPower_GetAttributeViReal64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] - return self._defaults['GetAttributeViReal64']['return'] - - def niDCPower_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # attribute_value - if self._defaults['GetAttributeViString']['attributeValue'] is None: - raise MockFunctionCallError("niDCPower_GetAttributeViString", param='attributeValue') - if buffer_size.value == 0: - return len(self._defaults['GetAttributeViString']['attributeValue']) - attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niDCPower_GetChannelName(self, vi, index, buffer_size, channel_name): # noqa: N802 - if self._defaults['GetChannelName']['return'] != 0: - return self._defaults['GetChannelName']['return'] - # channel_name - if self._defaults['GetChannelName']['channelName'] is None: - raise MockFunctionCallError("niDCPower_GetChannelName", param='channelName') - if buffer_size.value == 0: - return len(self._defaults['GetChannelName']['channelName']) - channel_name.value = self._defaults['GetChannelName']['channelName'].encode('ascii') - return self._defaults['GetChannelName']['return'] - - def niDCPower_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 - if self._defaults['GetChannelNameFromString']['return'] != 0: - return self._defaults['GetChannelNameFromString']['return'] - # names - if self._defaults['GetChannelNameFromString']['channelName'] is None: - raise MockFunctionCallError("niDCPower_GetChannelNameFromString", param='channelName') - if buffer_size.value == 0: - return len(self._defaults['GetChannelNameFromString']['channelName']) - names.value = self._defaults['GetChannelNameFromString']['channelName'].encode('ascii') - return self._defaults['GetChannelNameFromString']['return'] - - def niDCPower_GetError(self, vi, code, buffer_size, description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # code - if self._defaults['GetError']['code'] is None: - raise MockFunctionCallError("niDCPower_GetError", param='code') - if code is not None: - code.contents.value = self._defaults['GetError']['code'] - # description - if self._defaults['GetError']['description'] is None: - raise MockFunctionCallError("niDCPower_GetError", param='description') - if buffer_size.value == 0: - return len(self._defaults['GetError']['description']) - description.value = self._defaults['GetError']['description'].encode('ascii') - return self._defaults['GetError']['return'] - - def niDCPower_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetExtCalLastDateAndTime']['return'] != 0: - return self._defaults['GetExtCalLastDateAndTime']['return'] - # year - if self._defaults['GetExtCalLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetExtCalLastDateAndTime']['year'] - # month - if self._defaults['GetExtCalLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetExtCalLastDateAndTime']['month'] - # day - if self._defaults['GetExtCalLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetExtCalLastDateAndTime']['day'] - # hour - if self._defaults['GetExtCalLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetExtCalLastDateAndTime']['hour'] - # minute - if self._defaults['GetExtCalLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetExtCalLastDateAndTime']['minute'] - return self._defaults['GetExtCalLastDateAndTime']['return'] - - def niDCPower_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 - if self._defaults['GetExtCalLastTemp']['return'] != 0: - return self._defaults['GetExtCalLastTemp']['return'] - # temperature - if self._defaults['GetExtCalLastTemp']['temperature'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalLastTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetExtCalLastTemp']['temperature'] - return self._defaults['GetExtCalLastTemp']['return'] - - def niDCPower_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: - return self._defaults['GetExtCalRecommendedInterval']['return'] - # months - if self._defaults['GetExtCalRecommendedInterval']['months'] is None: - raise MockFunctionCallError("niDCPower_GetExtCalRecommendedInterval", param='months') - if months is not None: - months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] - return self._defaults['GetExtCalRecommendedInterval']['return'] - - def niDCPower_GetLCRCompensationData(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 - if self._defaults['GetLCRCompensationData']['return'] != 0: - return self._defaults['GetLCRCompensationData']['return'] - # compensation_data - if self._defaults['GetLCRCompensationData']['compensationData'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCompensationData", param='compensationData') - if compensation_data_size.value == 0: - return len(self._defaults['GetLCRCompensationData']['compensationData']) - try: - compensation_data_ref = compensation_data.contents - except AttributeError: - compensation_data_ref = compensation_data - for i in range(len(self._defaults['GetLCRCompensationData']['compensationData'])): - compensation_data_ref[i] = self._defaults['GetLCRCompensationData']['compensationData'][i] - return self._defaults['GetLCRCompensationData']['return'] - - def niDCPower_GetLCRCompensationLastDateAndTime(self, vi, channel_name, compensation_type, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetLCRCompensationLastDateAndTime']['return'] != 0: - return self._defaults['GetLCRCompensationLastDateAndTime']['return'] - # year - if self._defaults['GetLCRCompensationLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['year'] - # month - if self._defaults['GetLCRCompensationLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['month'] - # day - if self._defaults['GetLCRCompensationLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['day'] - # hour - if self._defaults['GetLCRCompensationLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['hour'] - # minute - if self._defaults['GetLCRCompensationLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['minute'] - return self._defaults['GetLCRCompensationLastDateAndTime']['return'] - - def niDCPower_GetLCRCustomCableCompensationData(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 - if self._defaults['GetLCRCustomCableCompensationData']['return'] != 0: - return self._defaults['GetLCRCustomCableCompensationData']['return'] - # custom_cable_compensation_data - if self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'] is None: - raise MockFunctionCallError("niDCPower_GetLCRCustomCableCompensationData", param='customCableCompensationData') - if custom_cable_compensation_data_size.value == 0: - return len(self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData']) - try: - custom_cable_compensation_data_ref = custom_cable_compensation_data.contents - except AttributeError: - custom_cable_compensation_data_ref = custom_cable_compensation_data - for i in range(len(self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'])): - custom_cable_compensation_data_ref[i] = self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'][i] - return self._defaults['GetLCRCustomCableCompensationData']['return'] - - def niDCPower_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetSelfCalLastDateAndTime']['return'] != 0: - return self._defaults['GetSelfCalLastDateAndTime']['return'] - # year - if self._defaults['GetSelfCalLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetSelfCalLastDateAndTime']['year'] - # month - if self._defaults['GetSelfCalLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetSelfCalLastDateAndTime']['month'] - # day - if self._defaults['GetSelfCalLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetSelfCalLastDateAndTime']['day'] - # hour - if self._defaults['GetSelfCalLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetSelfCalLastDateAndTime']['hour'] - # minute - if self._defaults['GetSelfCalLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetSelfCalLastDateAndTime']['minute'] - return self._defaults['GetSelfCalLastDateAndTime']['return'] - - def niDCPower_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 - if self._defaults['GetSelfCalLastTemp']['return'] != 0: - return self._defaults['GetSelfCalLastTemp']['return'] - # temperature - if self._defaults['GetSelfCalLastTemp']['temperature'] is None: - raise MockFunctionCallError("niDCPower_GetSelfCalLastTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetSelfCalLastTemp']['temperature'] - return self._defaults['GetSelfCalLastTemp']['return'] - - def niDCPower_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - - def niDCPower_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ImportAttributeConfigurationFile']['return'] - return self._defaults['ImportAttributeConfigurationFile']['return'] - - def niDCPower_InitializeWithChannels(self, resource_name, channels, reset, option_string, vi): # noqa: N802 - if self._defaults['InitializeWithChannels']['return'] != 0: - return self._defaults['InitializeWithChannels']['return'] - # vi - if self._defaults['InitializeWithChannels']['vi'] is None: - raise MockFunctionCallError("niDCPower_InitializeWithChannels", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitializeWithChannels']['vi'] - return self._defaults['InitializeWithChannels']['return'] - - def niDCPower_InitializeWithIndependentChannels(self, resource_name, reset, option_string, vi): # noqa: N802 - if self._defaults['InitializeWithIndependentChannels']['return'] != 0: - return self._defaults['InitializeWithIndependentChannels']['return'] - # vi - if self._defaults['InitializeWithIndependentChannels']['vi'] is None: - raise MockFunctionCallError("niDCPower_InitializeWithIndependentChannels", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitializeWithIndependentChannels']['vi'] - return self._defaults['InitializeWithIndependentChannels']['return'] - - def niDCPower_InitiateWithChannels(self, vi, channel_name): # noqa: N802 - if self._defaults['InitiateWithChannels']['return'] != 0: - return self._defaults['InitiateWithChannels']['return'] - return self._defaults['InitiateWithChannels']['return'] - - def niDCPower_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niDCPower_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niDCPower_Measure(self, vi, channel_name, measurement_type, measurement): # noqa: N802 - if self._defaults['Measure']['return'] != 0: - return self._defaults['Measure']['return'] - # measurement - if self._defaults['Measure']['measurement'] is None: - raise MockFunctionCallError("niDCPower_Measure", param='measurement') - if measurement is not None: - measurement.contents.value = self._defaults['Measure']['measurement'] - return self._defaults['Measure']['return'] - - def niDCPower_MeasureMultiple(self, vi, channel_name, voltage_measurements, current_measurements): # noqa: N802 - if self._defaults['MeasureMultiple']['return'] != 0: - return self._defaults['MeasureMultiple']['return'] - # voltage_measurements - if self._defaults['MeasureMultiple']['voltageMeasurements'] is None: - raise MockFunctionCallError("niDCPower_MeasureMultiple", param='voltageMeasurements') - test_value = self._defaults['MeasureMultiple']['voltageMeasurements'] - try: - voltage_measurements_ref = voltage_measurements.contents - except AttributeError: - voltage_measurements_ref = voltage_measurements - assert len(voltage_measurements_ref) >= len(test_value) - for i in range(len(test_value)): - voltage_measurements_ref[i] = test_value[i] - # current_measurements - if self._defaults['MeasureMultiple']['currentMeasurements'] is None: - raise MockFunctionCallError("niDCPower_MeasureMultiple", param='currentMeasurements') - test_value = self._defaults['MeasureMultiple']['currentMeasurements'] - try: - current_measurements_ref = current_measurements.contents - except AttributeError: - current_measurements_ref = current_measurements - assert len(current_measurements_ref) >= len(test_value) - for i in range(len(test_value)): - current_measurements_ref[i] = test_value[i] - return self._defaults['MeasureMultiple']['return'] - - def niDCPower_MeasureMultipleLCR(self, vi, channel_name, measurements): # noqa: N802 - if self._defaults['MeasureMultipleLCR']['return'] != 0: - return self._defaults['MeasureMultipleLCR']['return'] - # measurements - if self._defaults['MeasureMultipleLCR']['measurements'] is None: - raise MockFunctionCallError("niDCPower_MeasureMultipleLCR", param='measurements') - test_value = self._defaults['MeasureMultipleLCR']['measurements'] - try: - measurements_ref = measurements.contents - except AttributeError: - measurements_ref = measurements - assert len(measurements_ref) >= len(test_value) - for i in range(len(test_value)): - measurements_ref[i] = test_value[i] - return self._defaults['MeasureMultipleLCR']['return'] - - def niDCPower_ParseChannelCount(self, vi, channels_string, number_of_channels): # noqa: N802 - if self._defaults['ParseChannelCount']['return'] != 0: - return self._defaults['ParseChannelCount']['return'] - # number_of_channels - if self._defaults['ParseChannelCount']['numberOfChannels'] is None: - raise MockFunctionCallError("niDCPower_ParseChannelCount", param='numberOfChannels') - if number_of_channels is not None: - number_of_channels.contents.value = self._defaults['ParseChannelCount']['numberOfChannels'] - return self._defaults['ParseChannelCount']['return'] - - def niDCPower_PerformLCRLoadCompensation(self, vi, channel_name, num_compensation_spots, compensation_spots): # noqa: N802 - if self._defaults['PerformLCRLoadCompensation']['return'] != 0: - return self._defaults['PerformLCRLoadCompensation']['return'] - return self._defaults['PerformLCRLoadCompensation']['return'] - - def niDCPower_PerformLCROpenCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 - if self._defaults['PerformLCROpenCompensation']['return'] != 0: - return self._defaults['PerformLCROpenCompensation']['return'] - return self._defaults['PerformLCROpenCompensation']['return'] - - def niDCPower_PerformLCROpenCustomCableCompensation(self, vi, channel_name): # noqa: N802 - if self._defaults['PerformLCROpenCustomCableCompensation']['return'] != 0: - return self._defaults['PerformLCROpenCustomCableCompensation']['return'] - return self._defaults['PerformLCROpenCustomCableCompensation']['return'] - - def niDCPower_PerformLCRShortCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 - if self._defaults['PerformLCRShortCompensation']['return'] != 0: - return self._defaults['PerformLCRShortCompensation']['return'] - return self._defaults['PerformLCRShortCompensation']['return'] - - def niDCPower_PerformLCRShortCustomCableCompensation(self, vi, channel_name): # noqa: N802 - if self._defaults['PerformLCRShortCustomCableCompensation']['return'] != 0: - return self._defaults['PerformLCRShortCustomCableCompensation']['return'] - return self._defaults['PerformLCRShortCustomCableCompensation']['return'] - - def niDCPower_QueryInCompliance(self, vi, channel_name, in_compliance): # noqa: N802 - if self._defaults['QueryInCompliance']['return'] != 0: - return self._defaults['QueryInCompliance']['return'] - # in_compliance - if self._defaults['QueryInCompliance']['inCompliance'] is None: - raise MockFunctionCallError("niDCPower_QueryInCompliance", param='inCompliance') - if in_compliance is not None: - in_compliance.contents.value = self._defaults['QueryInCompliance']['inCompliance'] - return self._defaults['QueryInCompliance']['return'] - - def niDCPower_QueryLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason, output_cutoff_state): # noqa: N802 - if self._defaults['QueryLatchedOutputCutoffState']['return'] != 0: - return self._defaults['QueryLatchedOutputCutoffState']['return'] - # output_cutoff_state - if self._defaults['QueryLatchedOutputCutoffState']['outputCutoffState'] is None: - raise MockFunctionCallError("niDCPower_QueryLatchedOutputCutoffState", param='outputCutoffState') - if output_cutoff_state is not None: - output_cutoff_state.contents.value = self._defaults['QueryLatchedOutputCutoffState']['outputCutoffState'] - return self._defaults['QueryLatchedOutputCutoffState']['return'] - - def niDCPower_QueryMaxCurrentLimit(self, vi, channel_name, voltage_level, max_current_limit): # noqa: N802 - if self._defaults['QueryMaxCurrentLimit']['return'] != 0: - return self._defaults['QueryMaxCurrentLimit']['return'] - # max_current_limit - if self._defaults['QueryMaxCurrentLimit']['maxCurrentLimit'] is None: - raise MockFunctionCallError("niDCPower_QueryMaxCurrentLimit", param='maxCurrentLimit') - if max_current_limit is not None: - max_current_limit.contents.value = self._defaults['QueryMaxCurrentLimit']['maxCurrentLimit'] - return self._defaults['QueryMaxCurrentLimit']['return'] - - def niDCPower_QueryMaxVoltageLevel(self, vi, channel_name, current_limit, max_voltage_level): # noqa: N802 - if self._defaults['QueryMaxVoltageLevel']['return'] != 0: - return self._defaults['QueryMaxVoltageLevel']['return'] - # max_voltage_level - if self._defaults['QueryMaxVoltageLevel']['maxVoltageLevel'] is None: - raise MockFunctionCallError("niDCPower_QueryMaxVoltageLevel", param='maxVoltageLevel') - if max_voltage_level is not None: - max_voltage_level.contents.value = self._defaults['QueryMaxVoltageLevel']['maxVoltageLevel'] - return self._defaults['QueryMaxVoltageLevel']['return'] - - def niDCPower_QueryMinCurrentLimit(self, vi, channel_name, voltage_level, min_current_limit): # noqa: N802 - if self._defaults['QueryMinCurrentLimit']['return'] != 0: - return self._defaults['QueryMinCurrentLimit']['return'] - # min_current_limit - if self._defaults['QueryMinCurrentLimit']['minCurrentLimit'] is None: - raise MockFunctionCallError("niDCPower_QueryMinCurrentLimit", param='minCurrentLimit') - if min_current_limit is not None: - min_current_limit.contents.value = self._defaults['QueryMinCurrentLimit']['minCurrentLimit'] - return self._defaults['QueryMinCurrentLimit']['return'] - - def niDCPower_QueryOutputState(self, vi, channel_name, output_state, in_state): # noqa: N802 - if self._defaults['QueryOutputState']['return'] != 0: - return self._defaults['QueryOutputState']['return'] - # in_state - if self._defaults['QueryOutputState']['inState'] is None: - raise MockFunctionCallError("niDCPower_QueryOutputState", param='inState') - if in_state is not None: - in_state.contents.value = self._defaults['QueryOutputState']['inState'] - return self._defaults['QueryOutputState']['return'] - - def niDCPower_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 - if self._defaults['ReadCurrentTemperature']['return'] != 0: - return self._defaults['ReadCurrentTemperature']['return'] - # temperature - if self._defaults['ReadCurrentTemperature']['temperature'] is None: - raise MockFunctionCallError("niDCPower_ReadCurrentTemperature", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['ReadCurrentTemperature']['temperature'] - return self._defaults['ReadCurrentTemperature']['return'] - - def niDCPower_ResetDevice(self, vi): # noqa: N802 - if self._defaults['ResetDevice']['return'] != 0: - return self._defaults['ResetDevice']['return'] - return self._defaults['ResetDevice']['return'] - - def niDCPower_ResetWithChannels(self, vi, channel_name): # noqa: N802 - if self._defaults['ResetWithChannels']['return'] != 0: - return self._defaults['ResetWithChannels']['return'] - return self._defaults['ResetWithChannels']['return'] - - def niDCPower_ResetWithDefaults(self, vi): # noqa: N802 - if self._defaults['ResetWithDefaults']['return'] != 0: - return self._defaults['ResetWithDefaults']['return'] - return self._defaults['ResetWithDefaults']['return'] - - def niDCPower_SendSoftwareEdgeTriggerWithChannels(self, vi, channel_name, trigger): # noqa: N802 - if self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] != 0: - return self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] - return self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] - - def niDCPower_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niDCPower_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niDCPower_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt64']['return'] != 0: - return self._defaults['SetAttributeViInt64']['return'] - return self._defaults['SetAttributeViInt64']['return'] - - def niDCPower_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niDCPower_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niDCPower_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niDCPower_SetSequence(self, vi, channel_name, values, source_delays, size): # noqa: N802 - if self._defaults['SetSequence']['return'] != 0: - return self._defaults['SetSequence']['return'] - return self._defaults['SetSequence']['return'] - - def niDCPower_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niDCPower_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niDCPower_WaitForEventWithChannels(self, vi, channel_name, event_id, timeout): # noqa: N802 - if self._defaults['WaitForEventWithChannels']['return'] != 0: - return self._defaults['WaitForEventWithChannels']['return'] - return self._defaults['WaitForEventWithChannels']['return'] - - def niDCPower_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niDCPower_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niDCPower_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niDCPower_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niDCPower_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niDCPower_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niDCPower_AbortWithChannels.side_effect = MockFunctionCallError("niDCPower_AbortWithChannels") - mock_library.niDCPower_AbortWithChannels.return_value = 0 - mock_library.niDCPower_CalSelfCalibrate.side_effect = MockFunctionCallError("niDCPower_CalSelfCalibrate") - mock_library.niDCPower_CalSelfCalibrate.return_value = 0 - mock_library.niDCPower_ClearLatchedOutputCutoffState.side_effect = MockFunctionCallError("niDCPower_ClearLatchedOutputCutoffState") - mock_library.niDCPower_ClearLatchedOutputCutoffState.return_value = 0 - mock_library.niDCPower_CommitWithChannels.side_effect = MockFunctionCallError("niDCPower_CommitWithChannels") - mock_library.niDCPower_CommitWithChannels.return_value = 0 - mock_library.niDCPower_ConfigureApertureTime.side_effect = MockFunctionCallError("niDCPower_ConfigureApertureTime") - mock_library.niDCPower_ConfigureApertureTime.return_value = 0 - mock_library.niDCPower_ConfigureLCRCompensation.side_effect = MockFunctionCallError("niDCPower_ConfigureLCRCompensation") - mock_library.niDCPower_ConfigureLCRCompensation.return_value = 0 - mock_library.niDCPower_ConfigureLCRCustomCableCompensation.side_effect = MockFunctionCallError("niDCPower_ConfigureLCRCustomCableCompensation") - mock_library.niDCPower_ConfigureLCRCustomCableCompensation.return_value = 0 - mock_library.niDCPower_CreateAdvancedSequenceCommitStepWithChannels.side_effect = MockFunctionCallError("niDCPower_CreateAdvancedSequenceCommitStepWithChannels") - mock_library.niDCPower_CreateAdvancedSequenceCommitStepWithChannels.return_value = 0 - mock_library.niDCPower_CreateAdvancedSequenceStepWithChannels.side_effect = MockFunctionCallError("niDCPower_CreateAdvancedSequenceStepWithChannels") - mock_library.niDCPower_CreateAdvancedSequenceStepWithChannels.return_value = 0 - mock_library.niDCPower_CreateAdvancedSequenceWithChannels.side_effect = MockFunctionCallError("niDCPower_CreateAdvancedSequenceWithChannels") - mock_library.niDCPower_CreateAdvancedSequenceWithChannels.return_value = 0 - mock_library.niDCPower_DeleteAdvancedSequenceWithChannels.side_effect = MockFunctionCallError("niDCPower_DeleteAdvancedSequenceWithChannels") - mock_library.niDCPower_DeleteAdvancedSequenceWithChannels.return_value = 0 - mock_library.niDCPower_Disable.side_effect = MockFunctionCallError("niDCPower_Disable") - mock_library.niDCPower_Disable.return_value = 0 - mock_library.niDCPower_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDCPower_ExportAttributeConfigurationBuffer") - mock_library.niDCPower_ExportAttributeConfigurationBuffer.return_value = 0 - mock_library.niDCPower_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDCPower_ExportAttributeConfigurationFile") - mock_library.niDCPower_ExportAttributeConfigurationFile.return_value = 0 - mock_library.niDCPower_FancyInitialize.side_effect = MockFunctionCallError("niDCPower_FancyInitialize") - mock_library.niDCPower_FancyInitialize.return_value = 0 - mock_library.niDCPower_FetchMultiple.side_effect = MockFunctionCallError("niDCPower_FetchMultiple") - mock_library.niDCPower_FetchMultiple.return_value = 0 - mock_library.niDCPower_FetchMultipleLCR.side_effect = MockFunctionCallError("niDCPower_FetchMultipleLCR") - mock_library.niDCPower_FetchMultipleLCR.return_value = 0 - mock_library.niDCPower_GetAttributeViBoolean.side_effect = MockFunctionCallError("niDCPower_GetAttributeViBoolean") - mock_library.niDCPower_GetAttributeViBoolean.return_value = 0 - mock_library.niDCPower_GetAttributeViInt32.side_effect = MockFunctionCallError("niDCPower_GetAttributeViInt32") - mock_library.niDCPower_GetAttributeViInt32.return_value = 0 - mock_library.niDCPower_GetAttributeViInt64.side_effect = MockFunctionCallError("niDCPower_GetAttributeViInt64") - mock_library.niDCPower_GetAttributeViInt64.return_value = 0 - mock_library.niDCPower_GetAttributeViReal64.side_effect = MockFunctionCallError("niDCPower_GetAttributeViReal64") - mock_library.niDCPower_GetAttributeViReal64.return_value = 0 - mock_library.niDCPower_GetAttributeViString.side_effect = MockFunctionCallError("niDCPower_GetAttributeViString") - mock_library.niDCPower_GetAttributeViString.return_value = 0 - mock_library.niDCPower_GetChannelName.side_effect = MockFunctionCallError("niDCPower_GetChannelName") - mock_library.niDCPower_GetChannelName.return_value = 0 - mock_library.niDCPower_GetChannelNameFromString.side_effect = MockFunctionCallError("niDCPower_GetChannelNameFromString") - mock_library.niDCPower_GetChannelNameFromString.return_value = 0 - mock_library.niDCPower_GetError.side_effect = MockFunctionCallError("niDCPower_GetError") - mock_library.niDCPower_GetError.return_value = 0 - mock_library.niDCPower_GetExtCalLastDateAndTime.side_effect = MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime") - mock_library.niDCPower_GetExtCalLastDateAndTime.return_value = 0 - mock_library.niDCPower_GetExtCalLastTemp.side_effect = MockFunctionCallError("niDCPower_GetExtCalLastTemp") - mock_library.niDCPower_GetExtCalLastTemp.return_value = 0 - mock_library.niDCPower_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niDCPower_GetExtCalRecommendedInterval") - mock_library.niDCPower_GetExtCalRecommendedInterval.return_value = 0 - mock_library.niDCPower_GetLCRCompensationData.side_effect = MockFunctionCallError("niDCPower_GetLCRCompensationData") - mock_library.niDCPower_GetLCRCompensationData.return_value = 0 - mock_library.niDCPower_GetLCRCompensationLastDateAndTime.side_effect = MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime") - mock_library.niDCPower_GetLCRCompensationLastDateAndTime.return_value = 0 - mock_library.niDCPower_GetLCRCustomCableCompensationData.side_effect = MockFunctionCallError("niDCPower_GetLCRCustomCableCompensationData") - mock_library.niDCPower_GetLCRCustomCableCompensationData.return_value = 0 - mock_library.niDCPower_GetSelfCalLastDateAndTime.side_effect = MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime") - mock_library.niDCPower_GetSelfCalLastDateAndTime.return_value = 0 - mock_library.niDCPower_GetSelfCalLastTemp.side_effect = MockFunctionCallError("niDCPower_GetSelfCalLastTemp") - mock_library.niDCPower_GetSelfCalLastTemp.return_value = 0 - mock_library.niDCPower_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDCPower_ImportAttributeConfigurationBuffer") - mock_library.niDCPower_ImportAttributeConfigurationBuffer.return_value = 0 - mock_library.niDCPower_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDCPower_ImportAttributeConfigurationFile") - mock_library.niDCPower_ImportAttributeConfigurationFile.return_value = 0 - mock_library.niDCPower_InitializeWithChannels.side_effect = MockFunctionCallError("niDCPower_InitializeWithChannels") - mock_library.niDCPower_InitializeWithChannels.return_value = 0 - mock_library.niDCPower_InitializeWithIndependentChannels.side_effect = MockFunctionCallError("niDCPower_InitializeWithIndependentChannels") - mock_library.niDCPower_InitializeWithIndependentChannels.return_value = 0 - mock_library.niDCPower_InitiateWithChannels.side_effect = MockFunctionCallError("niDCPower_InitiateWithChannels") - mock_library.niDCPower_InitiateWithChannels.return_value = 0 - mock_library.niDCPower_LockSession.side_effect = MockFunctionCallError("niDCPower_LockSession") - mock_library.niDCPower_LockSession.return_value = 0 - mock_library.niDCPower_Measure.side_effect = MockFunctionCallError("niDCPower_Measure") - mock_library.niDCPower_Measure.return_value = 0 - mock_library.niDCPower_MeasureMultiple.side_effect = MockFunctionCallError("niDCPower_MeasureMultiple") - mock_library.niDCPower_MeasureMultiple.return_value = 0 - mock_library.niDCPower_MeasureMultipleLCR.side_effect = MockFunctionCallError("niDCPower_MeasureMultipleLCR") - mock_library.niDCPower_MeasureMultipleLCR.return_value = 0 - mock_library.niDCPower_ParseChannelCount.side_effect = MockFunctionCallError("niDCPower_ParseChannelCount") - mock_library.niDCPower_ParseChannelCount.return_value = 0 - mock_library.niDCPower_PerformLCRLoadCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCRLoadCompensation") - mock_library.niDCPower_PerformLCRLoadCompensation.return_value = 0 - mock_library.niDCPower_PerformLCROpenCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCROpenCompensation") - mock_library.niDCPower_PerformLCROpenCompensation.return_value = 0 - mock_library.niDCPower_PerformLCROpenCustomCableCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCROpenCustomCableCompensation") - mock_library.niDCPower_PerformLCROpenCustomCableCompensation.return_value = 0 - mock_library.niDCPower_PerformLCRShortCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCRShortCompensation") - mock_library.niDCPower_PerformLCRShortCompensation.return_value = 0 - mock_library.niDCPower_PerformLCRShortCustomCableCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCRShortCustomCableCompensation") - mock_library.niDCPower_PerformLCRShortCustomCableCompensation.return_value = 0 - mock_library.niDCPower_QueryInCompliance.side_effect = MockFunctionCallError("niDCPower_QueryInCompliance") - mock_library.niDCPower_QueryInCompliance.return_value = 0 - mock_library.niDCPower_QueryLatchedOutputCutoffState.side_effect = MockFunctionCallError("niDCPower_QueryLatchedOutputCutoffState") - mock_library.niDCPower_QueryLatchedOutputCutoffState.return_value = 0 - mock_library.niDCPower_QueryMaxCurrentLimit.side_effect = MockFunctionCallError("niDCPower_QueryMaxCurrentLimit") - mock_library.niDCPower_QueryMaxCurrentLimit.return_value = 0 - mock_library.niDCPower_QueryMaxVoltageLevel.side_effect = MockFunctionCallError("niDCPower_QueryMaxVoltageLevel") - mock_library.niDCPower_QueryMaxVoltageLevel.return_value = 0 - mock_library.niDCPower_QueryMinCurrentLimit.side_effect = MockFunctionCallError("niDCPower_QueryMinCurrentLimit") - mock_library.niDCPower_QueryMinCurrentLimit.return_value = 0 - mock_library.niDCPower_QueryOutputState.side_effect = MockFunctionCallError("niDCPower_QueryOutputState") - mock_library.niDCPower_QueryOutputState.return_value = 0 - mock_library.niDCPower_ReadCurrentTemperature.side_effect = MockFunctionCallError("niDCPower_ReadCurrentTemperature") - mock_library.niDCPower_ReadCurrentTemperature.return_value = 0 - mock_library.niDCPower_ResetDevice.side_effect = MockFunctionCallError("niDCPower_ResetDevice") - mock_library.niDCPower_ResetDevice.return_value = 0 - mock_library.niDCPower_ResetWithChannels.side_effect = MockFunctionCallError("niDCPower_ResetWithChannels") - mock_library.niDCPower_ResetWithChannels.return_value = 0 - mock_library.niDCPower_ResetWithDefaults.side_effect = MockFunctionCallError("niDCPower_ResetWithDefaults") - mock_library.niDCPower_ResetWithDefaults.return_value = 0 - mock_library.niDCPower_SendSoftwareEdgeTriggerWithChannels.side_effect = MockFunctionCallError("niDCPower_SendSoftwareEdgeTriggerWithChannels") - mock_library.niDCPower_SendSoftwareEdgeTriggerWithChannels.return_value = 0 - mock_library.niDCPower_SetAttributeViBoolean.side_effect = MockFunctionCallError("niDCPower_SetAttributeViBoolean") - mock_library.niDCPower_SetAttributeViBoolean.return_value = 0 - mock_library.niDCPower_SetAttributeViInt32.side_effect = MockFunctionCallError("niDCPower_SetAttributeViInt32") - mock_library.niDCPower_SetAttributeViInt32.return_value = 0 - mock_library.niDCPower_SetAttributeViInt64.side_effect = MockFunctionCallError("niDCPower_SetAttributeViInt64") - mock_library.niDCPower_SetAttributeViInt64.return_value = 0 - mock_library.niDCPower_SetAttributeViReal64.side_effect = MockFunctionCallError("niDCPower_SetAttributeViReal64") - mock_library.niDCPower_SetAttributeViReal64.return_value = 0 - mock_library.niDCPower_SetAttributeViString.side_effect = MockFunctionCallError("niDCPower_SetAttributeViString") - mock_library.niDCPower_SetAttributeViString.return_value = 0 - mock_library.niDCPower_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niDCPower_SetRuntimeEnvironment") - mock_library.niDCPower_SetRuntimeEnvironment.return_value = 0 - mock_library.niDCPower_SetSequence.side_effect = MockFunctionCallError("niDCPower_SetSequence") - mock_library.niDCPower_SetSequence.return_value = 0 - mock_library.niDCPower_UnlockSession.side_effect = MockFunctionCallError("niDCPower_UnlockSession") - mock_library.niDCPower_UnlockSession.return_value = 0 - mock_library.niDCPower_WaitForEventWithChannels.side_effect = MockFunctionCallError("niDCPower_WaitForEventWithChannels") - mock_library.niDCPower_WaitForEventWithChannels.return_value = 0 - mock_library.niDCPower_close.side_effect = MockFunctionCallError("niDCPower_close") - mock_library.niDCPower_close.return_value = 0 - mock_library.niDCPower_error_message.side_effect = MockFunctionCallError("niDCPower_error_message") - mock_library.niDCPower_error_message.return_value = 0 - mock_library.niDCPower_self_test.side_effect = MockFunctionCallError("niDCPower_self_test") - mock_library.niDCPower_self_test.return_value = 0 diff --git a/generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py b/generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py deleted file mode 100644 index 77499a7ced..0000000000 --- a/generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py +++ /dev/null @@ -1,352 +0,0 @@ -import cmath -import platform -import pytest - -import nidcpower - - -@pytest.mark.parametrize( - "ctype_members, channel, expected_python_members, expected_python_str", - [ - ( - # ctype_members - { - "vdc": 0.1, - "idc": 0.001, - "stimulus_frequency": 10_000.0, - "ac_voltage_real": 1.0, - "ac_voltage_imaginary": 0.1, - "ac_current_real": 0.01, - "ac_current_imaginary": 0.001, - "z_real": 100.0, - "z_imaginary": 10.0, - "z_magnitude": 100.49876, - "z_phase": 5.7105931375, - "y_real": 0.0099009901, - "y_imaginary": -0.00099009901, - "y_magnitude": 0.0099503719, - "y_phase": -5.7105931375, - "ls": 10.0, - "cs": 20.0, - "rs": 90.0, - "lp": 30.0, - "cp": 40.0, - "rp": 110.0, - "d": 10.0, - "q": 0.1, - "measurement_mode": nidcpower.InstrumentMode.SMU_PS.value, - "dc_in_compliance": True, - "ac_in_compliance": True, - "unbalanced": True, - }, - # channel - "Dev1/0", - # expected_python_members - { - "channel": "Dev1/0", - "vdc": 0.1, - "idc": 0.001, - "stimulus_frequency": 10_000.0, - "ac_voltage": complex(1.0, 0.1), - "ac_current": complex(0.01, 0.001), - "z": complex(100.0, 10.0), - "series_lcr": nidcpower.LCRMeasurement.LCR( - inductance=10.0, - capacitance=20.0, - resistance=90.0 - ), - "parallel_lcr": nidcpower.LCRMeasurement.LCR( - inductance=30.0, - capacitance=40.0, - resistance=110.0 - ), - "d": 10.0, - "measurement_mode": nidcpower.InstrumentMode.SMU_PS, - "dc_in_compliance": True, - "ac_in_compliance": True, - "unbalanced": True, - # Derived properties - "z_magnitude_and_phase": (100.49876, 5.7105931375), - "y": complex(0.0099009901, -0.00099009901), - "y_magnitude_and_phase": (0.0099503719, -5.7105931375), - "q": 0.1 - }, - # expected_python_str - ( - "Channel : Dev1/0\n" - "DC voltage : 0.1 V\n" - "DC current : 0.001 A\n" - "Stimulus frequency : 10,000 Hz\n" - "AC voltage : 1+0.1j V RMS\n" - "AC current : 0.01+0.001j A RMS\n" - "Impedance : 100+10j Ω\n" - "Impedance magnitude : 100.499 Ω\n" - "Impedance phase : 5.71059 °\n" - "Admittance : 0.00990099-0.000990099j S\n" - "Admittance magnitude: 0.00995037 S\n" - "Admittance phase : -5.71059 °\n" - "Series inductance : 10 H\n" - "Series capacitance : 20 F\n" - "Series resistance : 90 Ω\n" - "Parallel inductance : 30 H\n" - "Parallel capacitance: 40 F\n" - "Parallel resistance : 110 Ω\n" - "Dissipation factor : 10\n" - "Quality factor : 0.1\n" - "Measurement mode : SMU_PS\n" - "DC in compliance : True\n" - "AC in compliance : True\n" - "Unbalanced : True\n" - ) - ), - ( - # ctype_members - { - "vdc": 0.0, - "idc": 0.0, - "stimulus_frequency": 0.0, - "ac_voltage_real": 0.0, - "ac_voltage_imaginary": 0.0, - "ac_current_real": 0.0, - "ac_current_imaginary": 0.0, - "z_real": 0.0, - "z_imaginary": 0.0, - "z_magnitude": 0.0, - "z_phase": 0.0, - "y_real": cmath.nan, - "y_imaginary": cmath.nan, - "y_magnitude": cmath.nan, - "y_phase": cmath.nan, - "ls": 0.0, - "cs": 0.0, - "rs": 0.0, - "lp": 0.0, - "cp": 0.0, - "rp": 0.0, - "d": 0.0, - "q": cmath.nan, - "measurement_mode": nidcpower.InstrumentMode.LCR.value, - "dc_in_compliance": False, - "ac_in_compliance": False, - "unbalanced": False, - }, - # channel - "1", - # expected_python_members - { - "channel": "1", - "vdc": 0.0, - "idc": 0.0, - "stimulus_frequency": 0.0, - "ac_voltage": complex(), - "ac_current": complex(), - "z": complex(), - "series_lcr": nidcpower.LCRMeasurement.LCR( - inductance=0.0, - capacitance=0.0, - resistance=0.0 - ), - "parallel_lcr": nidcpower.LCRMeasurement.LCR( - inductance=0.0, - capacitance=0.0, - resistance=0.0 - ), - "d": 0.0, - "measurement_mode": nidcpower.InstrumentMode.LCR, - "dc_in_compliance": False, - "ac_in_compliance": False, - "unbalanced": False, - # Derived properties - "z_magnitude_and_phase": (0.0, 0.0), - "y": complex(cmath.nan, cmath.nan), - "y_magnitude_and_phase": (cmath.nan, cmath.nan), - "q": cmath.nan - }, - # expected_python_str - ( - "Channel : 1\n" - "DC voltage : 0 V\n" - "DC current : 0 A\n" - "Stimulus frequency : 0 Hz\n" - "AC voltage : 0+0j V RMS\n" - "AC current : 0+0j A RMS\n" - "Impedance : 0+0j Ω\n" - "Impedance magnitude : 0 Ω\n" - "Impedance phase : 0 °\n" - "Admittance : nan+nanj S\n" - "Admittance magnitude: nan S\n" - "Admittance phase : nan °\n" - "Series inductance : 0 H\n" - "Series capacitance : 0 F\n" - "Series resistance : 0 Ω\n" - "Parallel inductance : 0 H\n" - "Parallel capacitance: 0 F\n" - "Parallel resistance : 0 Ω\n" - "Dissipation factor : 0\n" - "Quality factor : nan\n" - "Measurement mode : LCR\n" - "DC in compliance : False\n" - "AC in compliance : False\n" - "Unbalanced : False\n" - ) - ), - ] -) -def test_lcr_measurement(ctype_members, channel, expected_python_members, expected_python_str): - ctype_instance = nidcpower.struct_NILCRMeasurement(**ctype_members) - python_instance = nidcpower.LCRMeasurement(ctype_instance) - python_instance.channel = channel - for member in expected_python_members: - assert getattr(python_instance, member) == pytest.approx( - expected_python_members[member], - nan_ok=True - ) - assert str(python_instance) == expected_python_str - - -@pytest.mark.parametrize( - "python_init_params, expected_repr, expected_str, expected_ctype_members", - [ - ( - # python_init_params - { - "frequency": 200.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IMPEDANCE, - "reference_value": complex(3.0, 4.0) - }, - # expected_repr - ( - "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" - "frequency=200.0, " - "reference_value_type=nidcpower.enums.LCRReferenceValueType.IMPEDANCE, " - "reference_value=(3+4j))" - ), - # expected_str - ( - "Frequency : 200 Hz\n" - "Impedance : 3+4j Ω\n" - ), - # expected_ctype_members - { - "frequency": 200.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IMPEDANCE.value, - "reference_value_a": 3.0, - "reference_value_b": 4.0 - } - ), - ( - # python_init_params - { - "frequency": 300.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_CAPACITANCE, - "reference_value": 5.0 - }, - # expected_repr - ( - "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" - "frequency=300.0, " - "reference_value_type=nidcpower.enums.LCRReferenceValueType.IDEAL_CAPACITANCE, " - "reference_value=5.0)" - ), - # expected_str - ( - "Frequency : 300 Hz\n" - "Ideal Capacitance: 5 F\n" - ), - # expected_ctype_members - { - "frequency": 300.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_CAPACITANCE.value, - "reference_value_a": 5.0, - "reference_value_b": 0.0 - } - ), - ( - # python_init_params - { - "frequency": 400.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_INDUCTANCE, - "reference_value": 6.0 - }, - # expected_repr - ( - "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" - "frequency=400.0, " - "reference_value_type=nidcpower.enums.LCRReferenceValueType.IDEAL_INDUCTANCE, " - "reference_value=6.0)" - ), - # expected_str - ( - "Frequency : 400 Hz\n" - "Ideal Inductance : 6 H\n" - ), - # expected_ctype_members - { - "frequency": 400.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_INDUCTANCE.value, - "reference_value_a": 6.0, - "reference_value_b": 0.0 - } - ), - ( - # python_init_params - { - "frequency": 500.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_RESISTANCE, - "reference_value": 7.0 - }, - # expected_repr - ( - "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" - "frequency=500.0, " - "reference_value_type=nidcpower.enums.LCRReferenceValueType.IDEAL_RESISTANCE, " - "reference_value=7.0)" - ), - # expected_str - ( - "Frequency : 500 Hz\n" - "Ideal Resistance : 7 Ω\n" - ), - # expected_ctype_members - { - "frequency": 500.0, - "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_RESISTANCE.value, - "reference_value_a": 7.0, - "reference_value_b": 0.0 - }, - ), - ], -) -def test_lcr_load_compensation_spot( - python_init_params, - expected_repr, - expected_str, - expected_ctype_members -): - python_instance = nidcpower.LCRLoadCompensationSpot(**python_init_params) - for member in python_init_params: - assert getattr(python_instance, member) == pytest.approx(python_init_params[member]) - - assert repr(python_instance) == expected_repr - assert str(python_instance) == expected_str - recreated_instance = eval(repr(python_instance)) - assert str(recreated_instance) == str(python_instance) - - ctype_instance = nidcpower.struct_NILCRLoadCompensationSpot(python_instance) - for member in expected_ctype_members: - assert getattr(ctype_instance, member) == pytest.approx(expected_ctype_members[member]) - - -def test_lcr_load_compensation_spot_byte_packing_alignment(): - if (platform.system() == "Windows" and platform.architecture()[0] == "64bit") or \ - platform.system() == "Linux" or platform.system() == "Darwin": - expected_bytes_len = 32 - else: - expected_bytes_len = 28 - python_spot = nidcpower.LCRLoadCompensationSpot( - frequency=1_000.0, - reference_value_type=nidcpower.LCRReferenceValueType.IMPEDANCE, - reference_value=complex(1.0, 2.0) - ) - ctype_spot = nidcpower.struct_NILCRLoadCompensationSpot(python_spot) - assert len(bytes(ctype_spot)) == expected_bytes_len diff --git a/generated/nidcpower/setup.py b/generated/nidcpower/setup.py deleted file mode 100644 index b2d01ae8cd..0000000000 --- a/generated/nidcpower/setup.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nidcpower' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.6.1.dev0', - description='NI-DCPower Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nidcpower'], - license='MIT', - include_package_data=True, - packages=['nidcpower'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nidcpower/tox-system_tests.ini b/generated/nidcpower/tox-system_tests.ini deleted file mode 100644 index df9b8bf768..0000000000 --- a/generated/nidcpower/tox-system_tests.ini +++ /dev/null @@ -1,73 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nidcpower) -[tox] -envlist = py{310,311,312,313,314}-nidcpower-system_tests, py314-nidcpower-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nidcpower-system_tests: Run nidcpower system tests (requires NI-DCPower runtime to be installed) - nidcpower-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nidcpower-system_tests: . - nidcpower-coverage: . - -commands = - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nidcpower-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nidcpower-system_tests: python -c "import nidcpower; nidcpower.print_diagnostic_information()" - nidcpower-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidcpower --parallel-mode -m pytest ../../src/nidcpower/examples --junitxml=../junit/junit-nidcpower-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nidcpower-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidcpower --parallel-mode -m pytest ../../src/nidcpower/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidcpower-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nidcpower-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nidcpower-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nidcpower-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nidcpower-system_tests: pytest < 9.2.0 - nidcpower-system_tests: coverage - nidcpower-system_tests: numpy - nidcpower-system_tests: hightime - nidcpower-system_tests: fasteners - nidcpower-system_tests: pytest-json - nidcpower-system_tests: .[grpc] - - nidcpower-coverage: coverage - -depends = - nidcpower-coverage: py{310,311,312,313,314}-nidcpower-system_tests - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 -markers = # Defines custom markers used by nidcpower system tests. Prevents PytestUnknownMarkWarning. - include_legacy_session: Include a legacy session in nidcpower system tests. - legacy_session_only: Exclude an independent channels session in nidcpower system tests. - resource_name: Overrides the default resource_name argument in the nidcpower session fixture. - channels: Overrides the default channels argument in the nidcpower session fixture. - reset: Overrides the default reset argument in the nidcpower session fixture. - options: Overrides the default options argument in the nidcpower session fixture. - independent_channels: Overrides the default independent_channels argument in the nidcpower session fixture. diff --git a/generated/nidigital/README.rst b/generated/nidigital/README.rst deleted file mode 100644 index c9b84caf5f..0000000000 --- a/generated/nidigital/README.rst +++ /dev/null @@ -1,202 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nidigital** module provides a Python API for NI-Digital Pattern Driver. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nidigital** supports all the Operating Systems supported by NI-Digital Pattern Driver. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nidigital**. - - -NI-Digital Pattern Driver Python API Status -------------------------------------------- - -+---------------------------------------+--------------------------+ -| NI-Digital Pattern Driver (nidigital) | | -+=======================================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+---------------------------------------+--------------------------+ -| PyPI Version | |nidigitalLatestVersion| | -+---------------------------------------+--------------------------+ -| Supported Python Version | |nidigitalPythonVersion| | -+---------------------------------------+--------------------------+ -| Documentation | |nidigitalDocs| | -+---------------------------------------+--------------------------+ -| Open Issues | |nidigitalOpenIssues| | -+---------------------------------------+--------------------------+ -| Open Pull Requests | |nidigitalOpenPRs| | -+---------------------------------------+--------------------------+ - - -.. |nidigitalLatestVersion| image:: http://img.shields.io/pypi/v/nidigital.svg - :alt: Latest NI-Digital Pattern Driver Version - :target: http://pypi.python.org/pypi/nidigital - - -.. |nidigitalPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidigital.svg - :alt: NI-Digital Pattern Driver supported Python versions - :target: http://pypi.python.org/pypi/nidigital - - -.. |nidigitalDocs| image:: https://readthedocs.org/projects/nidigital/badge/?version=latest - :alt: NI-Digital Pattern Driver Python API Documentation Status - :target: https://nidigital.readthedocs.io/en/latest - - -.. |nidigitalOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidigital.svg - :alt: Open Issues + Pull Requests for NI-Digital Pattern Driver - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidigital - - -.. |nidigitalOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidigital.svg - :alt: Pull Requests for NI-Digital Pattern Driver - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidigital - - - -.. _nidigital_installation-section: - -Installation ------------- - -As a prerequisite to using the **nidigital** module, you must install the NI-Digital Pattern Driver runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-Digital Pattern Driver**) can be installed with `pip `_:: - - $ python -m pip install nidigital - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nidigital** module to open a session to a digital pattern instrument, -source current, and measure both voltage and current using the PPMU on selected channels. - -.. code-block:: python - - import nidigital - import time - - with nidigital.Session(resource_name='PXI1Slot2') as session: - - channels = 'PXI1Slot2/0,PXI1Slot2/1' - - # Configure PPMU measurements - session.channels[channels].ppmu_aperture_time = 0.000004 - session.channels[channels].ppmu_aperture_time_units = nidigital.PPMUApertureTimeUnits.SECONDS - - session.channels[channels].ppmu_output_function = nidigital.PPMUOutputFunction.CURRENT - - session.channels[channels].ppmu_current_level_range = 0.000002 - session.channels[channels].ppmu_current_level = 0.000002 - session.channels[channels].ppmu_voltage_limit_high = 3.3 - session.channels[channels].ppmu_voltage_limit_low = 0 - - # Sourcing - session.channels[channels].ppmu_source() - - # Settling time between sourcing and measuring - time.sleep(0.01) - - # Measuring - current_measurements = session.channels[channels].ppmu_measure(nidigital.PPMUMeasurementType.CURRENT) - voltage_measurements = session.channels[channels].ppmu_measure(nidigital.PPMUMeasurementType.VOLTAGE) - - print('{:<20} {:<10} {:<10}'.format('Channel Name', 'Current', 'Voltage')) - for channel, current, voltage in zip(channels.split(','), current_measurements, voltage_measurements): - print('{:<20} {:<10f} {:<10f}'.format(channel, current, voltage)) - - # Disconnect all channels using programmable onboard switching - session.channels[channels].selected_function = nidigital.SelectedFunction.DISCONNECT - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nidigital/nidigital/VERSION b/generated/nidigital/nidigital/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nidigital/nidigital/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nidigital/nidigital/__init__.py b/generated/nidigital/nidigital/__init__.py deleted file mode 100644 index 1384b31271..0000000000 --- a/generated/nidigital/nidigital/__init__.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nidigital.enums import * # noqa: F403,F401,H303 -from nidigital.errors import DriverWarning # noqa: F401 -from nidigital.errors import Error # noqa: F401 -from nidigital.grpc_session_options import * # noqa: F403,F401,H303 -from nidigital.session import Session # noqa: F401 - -from nidigital.history_ram_cycle_information import HistoryRAMCycleInformation # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-Digital Pattern Driver\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-Digital Pattern Driver" - info['driver']['version'] = driver_version - info['module']['name'] = 'nidigital' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nidigital/nidigital/_attributes.py b/generated/nidigital/nidigital/_attributes.py deleted file mode 100644 index f13e721b40..0000000000 --- a/generated/nidigital/nidigital/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nidigital._converters as _converters -import nidigital.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nidigital Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nidigital.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nidigital/nidigital/_converters.py b/generated/nidigital/nidigital/_converters.py deleted file mode 100644 index e645ad43d4..0000000000 --- a/generated/nidigital/nidigital/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nidigital._visatype as _visatype -import nidigital.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nidigital/nidigital/_grpc_stub_interpreter.py b/generated/nidigital/nidigital/_grpc_stub_interpreter.py deleted file mode 100644 index d733b9e7ff..0000000000 --- a/generated/nidigital/nidigital/_grpc_stub_interpreter.py +++ /dev/null @@ -1,667 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nidigitalpattern_pb2 as grpc_types -from . import nidigitalpattern_pb2_grpc as nidigital_grpc - -from . import history_ram_cycle_information as history_ram_cycle_information # noqa: F401 - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nidigital_grpc.NiDigitalStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.Abort, - grpc_types.AbortRequest(vi=self._vi), - ) - - def abort_keep_alive(self): # noqa: N802 - self._invoke( - self._client.AbortKeepAlive, - grpc_types.AbortKeepAliveRequest(vi=self._vi), - ) - - def apply_levels_and_timing(self, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 - self._invoke( - self._client.ApplyLevelsAndTiming, - grpc_types.ApplyLevelsAndTimingRequest(vi=self._vi, site_list=site_list, levels_sheet=levels_sheet, timing_sheet=timing_sheet, initial_state_high_pins=initial_state_high_pins, initial_state_low_pins=initial_state_low_pins, initial_state_tristate_pins=initial_state_tristate_pins), - ) - - def apply_tdr_offsets(self, channel_list, offsets): # noqa: N802 - self._invoke( - self._client.ApplyTDROffsets, - grpc_types.ApplyTDROffsetsRequest(vi=self._vi, channel_list=channel_list, offsets=offsets), - ) - - def burst_pattern(self, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 - self._invoke( - self._client.BurstPattern, - grpc_types.BurstPatternRequest(vi=self._vi, site_list=site_list, start_label=start_label, select_digital_function=select_digital_function, wait_until_done=wait_until_done, timeout=timeout), - ) - - def clock_generator_abort(self, channel_list): # noqa: N802 - self._invoke( - self._client.ClockGeneratorAbort, - grpc_types.ClockGeneratorAbortRequest(vi=self._vi, channel_list=channel_list), - ) - - def clock_generator_generate_clock(self, channel_list, frequency, select_digital_function): # noqa: N802 - self._invoke( - self._client.ClockGeneratorGenerateClock, - grpc_types.ClockGeneratorGenerateClockRequest(vi=self._vi, channel_list=channel_list, frequency=frequency, select_digital_function=select_digital_function), - ) - - def commit(self): # noqa: N802 - self._invoke( - self._client.Commit, - grpc_types.CommitRequest(vi=self._vi), - ) - - def configure_active_load_levels(self, channel_list, iol, ioh, vcom): # noqa: N802 - self._invoke( - self._client.ConfigureActiveLoadLevels, - grpc_types.ConfigureActiveLoadLevelsRequest(vi=self._vi, channel_list=channel_list, iol=iol, ioh=ioh, vcom=vcom), - ) - - def configure_pattern_burst_sites(self, site_list): # noqa: N802 - self._invoke( - self._client.ConfigurePatternBurstSites, - grpc_types.ConfigurePatternBurstSitesRequest(vi=self._vi, site_list=site_list), - ) - - def configure_time_set_compare_edges_strobe(self, pin_list, time_set_name, strobe_edge): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetCompareEdgesStrobe, - grpc_types.ConfigureTimeSetCompareEdgesStrobeRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, strobe_edge=strobe_edge), - ) - - def configure_time_set_compare_edges_strobe2x(self, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetCompareEdgesStrobe2x, - grpc_types.ConfigureTimeSetCompareEdgesStrobe2xRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, strobe_edge=strobe_edge, strobe2_edge=strobe2_edge), - ) - - def configure_time_set_drive_edges(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetDriveEdges, - grpc_types.ConfigureTimeSetDriveEdgesRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, format_raw=format.value, drive_on_edge=drive_on_edge, drive_data_edge=drive_data_edge, drive_return_edge=drive_return_edge, drive_off_edge=drive_off_edge), - ) - - def configure_time_set_drive_edges2x(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetDriveEdges2x, - grpc_types.ConfigureTimeSetDriveEdges2xRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, format_raw=format.value, drive_on_edge=drive_on_edge, drive_data_edge=drive_data_edge, drive_return_edge=drive_return_edge, drive_off_edge=drive_off_edge, drive_data2_edge=drive_data2_edge, drive_return2_edge=drive_return2_edge), - ) - - def configure_time_set_drive_format(self, pin_list, time_set_name, drive_format): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetDriveFormat, - grpc_types.ConfigureTimeSetDriveFormatRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, drive_format_raw=drive_format.value), - ) - - def configure_time_set_edge(self, pin_list, time_set_name, edge, time): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetEdge, - grpc_types.ConfigureTimeSetEdgeRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, edge_raw=edge.value, time=time), - ) - - def configure_time_set_edge_multiplier(self, pin_list, time_set_name, edge_multiplier): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetEdgeMultiplier, - grpc_types.ConfigureTimeSetEdgeMultiplierRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, edge_multiplier=edge_multiplier), - ) - - def configure_time_set_period(self, time_set_name, period): # noqa: N802 - self._invoke( - self._client.ConfigureTimeSetPeriod, - grpc_types.ConfigureTimeSetPeriodRequest(vi=self._vi, time_set_name=time_set_name, period=period), - ) - - def configure_voltage_levels(self, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 - self._invoke( - self._client.ConfigureVoltageLevels, - grpc_types.ConfigureVoltageLevelsRequest(vi=self._vi, channel_list=channel_list, vil=vil, vih=vih, vol=vol, voh=voh, vterm=vterm), - ) - - def create_capture_waveform_from_file_digicapture(self, waveform_name, waveform_file_path): # noqa: N802 - self._invoke( - self._client.CreateCaptureWaveformFromFileDigicapture, - grpc_types.CreateCaptureWaveformFromFileDigicaptureRequest(vi=self._vi, waveform_name=waveform_name, waveform_file_path=waveform_file_path), - ) - - def create_capture_waveform_parallel(self, pin_list, waveform_name): # noqa: N802 - self._invoke( - self._client.CreateCaptureWaveformParallel, - grpc_types.CreateCaptureWaveformParallelRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name), - ) - - def create_capture_waveform_serial(self, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 - self._invoke( - self._client.CreateCaptureWaveformSerial, - grpc_types.CreateCaptureWaveformSerialRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name, sample_width=sample_width, bit_order_raw=bit_order.value), - ) - - def create_source_waveform_from_file_tdms(self, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 - self._invoke( - self._client.CreateSourceWaveformFromFileTDMS, - grpc_types.CreateSourceWaveformFromFileTDMSRequest(vi=self._vi, waveform_name=waveform_name, waveform_file_path=waveform_file_path, write_waveform_data=write_waveform_data), - ) - - def create_source_waveform_parallel(self, pin_list, waveform_name, data_mapping): # noqa: N802 - self._invoke( - self._client.CreateSourceWaveformParallel, - grpc_types.CreateSourceWaveformParallelRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name, data_mapping_raw=data_mapping.value), - ) - - def create_source_waveform_serial(self, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 - self._invoke( - self._client.CreateSourceWaveformSerial, - grpc_types.CreateSourceWaveformSerialRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name, data_mapping_raw=data_mapping.value, sample_width=sample_width, bit_order_raw=bit_order.value), - ) - - def create_time_set(self, name): # noqa: N802 - self._invoke( - self._client.CreateTimeSet, - grpc_types.CreateTimeSetRequest(vi=self._vi, name=name), - ) - - def delete_all_time_sets(self): # noqa: N802 - self._invoke( - self._client.DeleteAllTimeSets, - grpc_types.DeleteAllTimeSetsRequest(vi=self._vi), - ) - - def disable_sites(self, site_list): # noqa: N802 - self._invoke( - self._client.DisableSites, - grpc_types.DisableSitesRequest(vi=self._vi, site_list=site_list), - ) - - def enable_sites(self, site_list): # noqa: N802 - self._invoke( - self._client.EnableSites, - grpc_types.EnableSitesRequest(vi=self._vi, site_list=site_list), - ) - - def fetch_capture_waveform(self, site_list, waveform_name, samples_to_read, timeout): # noqa: N802 - response = self._invoke( - self._client.FetchCaptureWaveformU32, - grpc_types.FetchCaptureWaveformU32Request(vi=self._vi, site_list=site_list, waveform_name=waveform_name, samples_to_read=samples_to_read, timeout=timeout), - ) - return bytes(response.data), response.actual_num_waveforms, response.actual_samples_per_waveform - - def fetch_history_ram_cycle_information(self, site, sample_index): # noqa: N802 - response = self._invoke( - self._client.FetchHistoryRAMCycleInformation, - grpc_types.FetchHistoryRAMCycleInformationRequest(vi=self._vi, site=site, sample_index=sample_index), - ) - return response.pattern_index, response.time_set_index, response.vector_number, response.cycle_number, response.num_dut_cycles - - def fetch_history_ram_cycle_pin_data(self, site, pin_list, sample_index, dut_cycle_index): # noqa: N802 - response = self._invoke( - self._client.FetchHistoryRAMCyclePinData, - grpc_types.FetchHistoryRAMCyclePinDataRequest(vi=self._vi, site=site, pin_list=pin_list, sample_index=sample_index, dut_cycle_index=dut_cycle_index), - ) - return [enums.PinState(x) for x in response.expected_pin_states_raw], [enums.PinState(x) for x in response.actual_pin_states_raw], response.per_pin_pass_fail - - def fetch_history_ram_scan_cycle_number(self, site, sample_index): # noqa: N802 - response = self._invoke( - self._client.FetchHistoryRAMScanCycleNumber, - grpc_types.FetchHistoryRAMScanCycleNumberRequest(vi=self._vi, site=site, sample_index=sample_index), - ) - return response.scan_cycle_number - - def frequency_counter_measure_frequency(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.FrequencyCounterMeasureFrequency, - grpc_types.FrequencyCounterMeasureFrequencyRequest(vi=self._vi, channel_list=channel_list), - ) - return response.frequencies - - def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute=attribute), - ) - return response.value - - def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute=attribute), - ) - return response.value - - def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt64, - grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute=attribute), - ) - return response.value - - def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute=attribute), - ) - return response.value - - def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute=attribute), - ) - return response.value - - def get_channel_names(self, indices): # noqa: N802 - response = self._invoke( - self._client.GetChannelNameFromString, - grpc_types.GetChannelNameFromStringRequest(vi=self._vi, indices=indices), - ) - return response.names - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.error_description - - def get_fail_count(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.GetFailCount, - grpc_types.GetFailCountRequest(vi=self._vi, channel_list=channel_list), - ) - return response.failure_count - - def get_history_ram_sample_count(self, site): # noqa: N802 - response = self._invoke( - self._client.GetHistoryRAMSampleCount, - grpc_types.GetHistoryRAMSampleCountRequest(vi=self._vi, site=site), - ) - return response.sample_count - - def get_pattern_name(self, pattern_index): # noqa: N802 - response = self._invoke( - self._client.GetPatternName, - grpc_types.GetPatternNameRequest(vi=self._vi, pattern_index=pattern_index), - ) - return response.name - - def get_pattern_pin_names(self, start_label): # noqa: N802 - response = self._invoke( - self._client.GetPatternPinList, - grpc_types.GetPatternPinListRequest(vi=self._vi, start_label=start_label), - ) - return response.pin_list - - def get_pin_name(self, pin_index): # noqa: N802 - response = self._invoke( - self._client.GetPinName, - grpc_types.GetPinNameRequest(vi=self._vi, pin_index=pin_index), - ) - return response.name - - def get_pin_results_pin_information(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.GetPinResultsPinInformation, - grpc_types.GetPinResultsPinInformationRequest(vi=self._vi, channel_list=channel_list), - ) - return response.pin_indexes, response.site_numbers, response.channel_indexes - - def get_site_pass_fail(self, site_list): # noqa: N802 - response = self._invoke( - self._client.GetSitePassFail, - grpc_types.GetSitePassFailRequest(vi=self._vi, site_list=site_list), - ) - return response.pass_fail - - def get_site_results_site_numbers(self, site_list, site_result_type): # noqa: N802 - response = self._invoke( - self._client.GetSiteResultsSiteNumbers, - grpc_types.GetSiteResultsSiteNumbersRequest(vi=self._vi, site_list=site_list, site_result_type_raw=site_result_type.value), - ) - return response.site_numbers - - def get_time_set_drive_format(self, pin, time_set_name): # noqa: N802 - response = self._invoke( - self._client.GetTimeSetDriveFormat, - grpc_types.GetTimeSetDriveFormatRequest(vi=self._vi, pin=pin, time_set_name=time_set_name), - ) - return enums.DriveFormat(response.format_raw) - - def get_time_set_edge(self, pin, time_set_name, edge): # noqa: N802 - response = self._invoke( - self._client.GetTimeSetEdge, - grpc_types.GetTimeSetEdgeRequest(vi=self._vi, pin=pin, time_set_name=time_set_name, edge_raw=edge.value), - ) - return response.time - - def get_time_set_edge_multiplier(self, pin, time_set_name): # noqa: N802 - response = self._invoke( - self._client.GetTimeSetEdgeMultiplier, - grpc_types.GetTimeSetEdgeMultiplierRequest(vi=self._vi, pin=pin, time_set_name=time_set_name), - ) - return response.edge_multiplier - - def get_time_set_name(self, time_set_index): # noqa: N802 - response = self._invoke( - self._client.GetTimeSetName, - grpc_types.GetTimeSetNameRequest(vi=self._vi, time_set_index=time_set_index), - ) - return response.name - - def get_time_set_period(self, time_set_name): # noqa: N802 - response = self._invoke( - self._client.GetTimeSetPeriod, - grpc_types.GetTimeSetPeriodRequest(vi=self._vi, time_set_name=time_set_name), - ) - return response.period - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithOptions, - grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate(self): # noqa: N802 - self._invoke( - self._client.Initiate, - grpc_types.InitiateRequest(vi=self._vi), - ) - - def is_done(self): # noqa: N802 - response = self._invoke( - self._client.IsDone, - grpc_types.IsDoneRequest(vi=self._vi), - ) - return response.done - - def is_site_enabled(self, site): # noqa: N802 - response = self._invoke( - self._client.IsSiteEnabled, - grpc_types.IsSiteEnabledRequest(vi=self._vi, site=site), - ) - return response.enable - - def load_levels(self, file_path): # noqa: N802 - self._invoke( - self._client.LoadLevels, - grpc_types.LoadLevelsRequest(vi=self._vi, file_path=file_path), - ) - - def load_pattern(self, file_path): # noqa: N802 - self._invoke( - self._client.LoadPattern, - grpc_types.LoadPatternRequest(vi=self._vi, file_path=file_path), - ) - - def load_pin_map(self, file_path): # noqa: N802 - self._invoke( - self._client.LoadPinMap, - grpc_types.LoadPinMapRequest(vi=self._vi, file_path=file_path), - ) - - def load_specifications(self, file_path): # noqa: N802 - self._invoke( - self._client.LoadSpecifications, - grpc_types.LoadSpecificationsRequest(vi=self._vi, file_path=file_path), - ) - - def load_timing(self, file_path): # noqa: N802 - self._invoke( - self._client.LoadTiming, - grpc_types.LoadTimingRequest(vi=self._vi, file_path=file_path), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def ppmu_measure(self, channel_list, measurement_type): # noqa: N802 - response = self._invoke( - self._client.PPMUMeasure, - grpc_types.PPMUMeasureRequest(vi=self._vi, channel_list=channel_list, measurement_type_raw=measurement_type.value), - ) - return response.measurements - - def ppmu_source(self, channel_list): # noqa: N802 - self._invoke( - self._client.PPMUSource, - grpc_types.PPMUSourceRequest(vi=self._vi, channel_list=channel_list), - ) - - def read_sequencer_flag(self, flag): # noqa: N802 - response = self._invoke( - self._client.ReadSequencerFlag, - grpc_types.ReadSequencerFlagRequest(vi=self._vi, flag=flag.value), - ) - return response.value - - def read_sequencer_register(self, reg): # noqa: N802 - response = self._invoke( - self._client.ReadSequencerRegister, - grpc_types.ReadSequencerRegisterRequest(vi=self._vi, reg=reg.value), - ) - return response.value - - def read_static(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.ReadStatic, - grpc_types.ReadStaticRequest(vi=self._vi, channel_list=channel_list), - ) - return [enums.PinState(x) for x in response.data_raw] - - def reset_device(self): # noqa: N802 - self._invoke( - self._client.ResetDevice, - grpc_types.ResetDeviceRequest(vi=self._vi), - ) - - def self_calibrate(self): # noqa: N802 - self._invoke( - self._client.SelfCalibrate, - grpc_types.SelfCalibrateRequest(vi=self._vi), - ) - - def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 - self._invoke( - self._client.SendSoftwareEdgeTrigger, - grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_identifier=trigger_identifier), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute=attribute, value=value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), - ) - - def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt64, - grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), - ) - - def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def tdr(self, channel_list, apply_offsets): # noqa: N802 - response = self._invoke( - self._client.TDR, - grpc_types.TDRRequest(vi=self._vi, channel_list=channel_list, apply_offsets=apply_offsets), - ) - return response.offsets - - def unload_all_patterns(self, unload_keep_alive_pattern): # noqa: N802 - self._invoke( - self._client.UnloadAllPatterns, - grpc_types.UnloadAllPatternsRequest(vi=self._vi, unload_keep_alive_pattern=unload_keep_alive_pattern), - ) - - def unload_specifications(self, file_path): # noqa: N802 - self._invoke( - self._client.UnloadSpecifications, - grpc_types.UnloadSpecificationsRequest(vi=self._vi, file_path=file_path), - ) - - def unlock(self): # noqa: N802 - self._lock.release() - - def wait_until_done(self, timeout): # noqa: N802 - self._invoke( - self._client.WaitUntilDone, - grpc_types.WaitUntilDoneRequest(vi=self._vi, timeout=timeout), - ) - - def write_sequencer_flag(self, flag, value): # noqa: N802 - self._invoke( - self._client.WriteSequencerFlag, - grpc_types.WriteSequencerFlagRequest(vi=self._vi, flag=flag.value, value=value), - ) - - def write_sequencer_register(self, reg, value): # noqa: N802 - self._invoke( - self._client.WriteSequencerRegister, - grpc_types.WriteSequencerRegisterRequest(vi=self._vi, reg=reg.value, value=value), - ) - - def write_source_waveform_broadcast(self, waveform_name, waveform_data): # noqa: N802 - self._invoke( - self._client.WriteSourceWaveformBroadcastU32, - grpc_types.WriteSourceWaveformBroadcastU32Request(vi=self._vi, waveform_name=waveform_name, waveform_data=waveform_data), - ) - - def write_source_waveform_data_from_file_tdms(self, waveform_name, waveform_file_path): # noqa: N802 - self._invoke( - self._client.WriteSourceWaveformDataFromFileTDMS, - grpc_types.WriteSourceWaveformDataFromFileTDMSRequest(vi=self._vi, waveform_name=waveform_name, waveform_file_path=waveform_file_path), - ) - - def write_source_waveform_site_unique_u32(self, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 - self._invoke( - self._client.WriteSourceWaveformSiteUniqueU32, - grpc_types.WriteSourceWaveformSiteUniqueU32Request(vi=self._vi, site_list=site_list, waveform_name=waveform_name, num_waveforms=num_waveforms, samples_per_waveform=samples_per_waveform, waveform_data=waveform_data), - ) - - def write_static(self, channel_list, state): # noqa: N802 - self._invoke( - self._client.WriteStatic, - grpc_types.WriteStaticRequest(vi=self._vi, channel_list=channel_list, state_raw=state.value), - ) - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.test_result, response.test_message diff --git a/generated/nidigital/nidigital/_library.py b/generated/nidigital/nidigital/_library.py deleted file mode 100644 index 1f1d78ed16..0000000000 --- a/generated/nidigital/nidigital/_library.py +++ /dev/null @@ -1,876 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nidigital.errors as errors -import threading - -from nidigital._visatype import * # noqa: F403,H303 - -import nidigital.history_ram_cycle_information as history_ram_cycle_information # noqa: F401 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niDigital_Abort_cfunc = None - self.niDigital_AbortKeepAlive_cfunc = None - self.niDigital_ApplyLevelsAndTiming_cfunc = None - self.niDigital_ApplyTDROffsets_cfunc = None - self.niDigital_BurstPattern_cfunc = None - self.niDigital_ClockGenerator_Abort_cfunc = None - self.niDigital_ClockGenerator_GenerateClock_cfunc = None - self.niDigital_Commit_cfunc = None - self.niDigital_ConfigureActiveLoadLevels_cfunc = None - self.niDigital_ConfigurePatternBurstSites_cfunc = None - self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc = None - self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc = None - self.niDigital_ConfigureTimeSetDriveEdges_cfunc = None - self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc = None - self.niDigital_ConfigureTimeSetDriveFormat_cfunc = None - self.niDigital_ConfigureTimeSetEdge_cfunc = None - self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc = None - self.niDigital_ConfigureTimeSetPeriod_cfunc = None - self.niDigital_ConfigureVoltageLevels_cfunc = None - self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc = None - self.niDigital_CreateCaptureWaveformParallel_cfunc = None - self.niDigital_CreateCaptureWaveformSerial_cfunc = None - self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc = None - self.niDigital_CreateSourceWaveformParallel_cfunc = None - self.niDigital_CreateSourceWaveformSerial_cfunc = None - self.niDigital_CreateTimeSet_cfunc = None - self.niDigital_DeleteAllTimeSets_cfunc = None - self.niDigital_DisableSites_cfunc = None - self.niDigital_EnableMatchFailCombination_cfunc = None - self.niDigital_EnableSites_cfunc = None - self.niDigital_FetchCaptureWaveformU32_cfunc = None - self.niDigital_FetchHistoryRAMCycleInformation_cfunc = None - self.niDigital_FetchHistoryRAMCyclePinData_cfunc = None - self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc = None - self.niDigital_FrequencyCounter_MeasureFrequency_cfunc = None - self.niDigital_GetAttributeViBoolean_cfunc = None - self.niDigital_GetAttributeViInt32_cfunc = None - self.niDigital_GetAttributeViInt64_cfunc = None - self.niDigital_GetAttributeViReal64_cfunc = None - self.niDigital_GetAttributeViString_cfunc = None - self.niDigital_GetChannelNameFromString_cfunc = None - self.niDigital_GetError_cfunc = None - self.niDigital_GetFailCount_cfunc = None - self.niDigital_GetHistoryRAMSampleCount_cfunc = None - self.niDigital_GetPatternName_cfunc = None - self.niDigital_GetPatternPinList_cfunc = None - self.niDigital_GetPinName_cfunc = None - self.niDigital_GetPinResultsPinInformation_cfunc = None - self.niDigital_GetSitePassFail_cfunc = None - self.niDigital_GetSiteResultsSiteNumbers_cfunc = None - self.niDigital_GetTimeSetDriveFormat_cfunc = None - self.niDigital_GetTimeSetEdge_cfunc = None - self.niDigital_GetTimeSetEdgeMultiplier_cfunc = None - self.niDigital_GetTimeSetName_cfunc = None - self.niDigital_GetTimeSetPeriod_cfunc = None - self.niDigital_InitWithOptions_cfunc = None - self.niDigital_Initiate_cfunc = None - self.niDigital_IsDone_cfunc = None - self.niDigital_IsSiteEnabled_cfunc = None - self.niDigital_LoadLevels_cfunc = None - self.niDigital_LoadPattern_cfunc = None - self.niDigital_LoadPinMap_cfunc = None - self.niDigital_LoadSpecifications_cfunc = None - self.niDigital_LoadTiming_cfunc = None - self.niDigital_LockSession_cfunc = None - self.niDigital_PPMU_Measure_cfunc = None - self.niDigital_PPMU_Source_cfunc = None - self.niDigital_ReadSequencerFlag_cfunc = None - self.niDigital_ReadSequencerRegister_cfunc = None - self.niDigital_ReadStatic_cfunc = None - self.niDigital_ResetDevice_cfunc = None - self.niDigital_SelfCalibrate_cfunc = None - self.niDigital_SendSoftwareEdgeTrigger_cfunc = None - self.niDigital_SetAttributeViBoolean_cfunc = None - self.niDigital_SetAttributeViInt32_cfunc = None - self.niDigital_SetAttributeViInt64_cfunc = None - self.niDigital_SetAttributeViReal64_cfunc = None - self.niDigital_SetAttributeViString_cfunc = None - self.niDigital_SetRuntimeEnvironment_cfunc = None - self.niDigital_TDR_cfunc = None - self.niDigital_UnloadAllPatterns_cfunc = None - self.niDigital_UnloadSpecifications_cfunc = None - self.niDigital_UnlockSession_cfunc = None - self.niDigital_WaitUntilDone_cfunc = None - self.niDigital_WriteSequencerFlag_cfunc = None - self.niDigital_WriteSequencerRegister_cfunc = None - self.niDigital_WriteSourceWaveformBroadcastU32_cfunc = None - self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc = None - self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc = None - self.niDigital_WriteStatic_cfunc = None - self.niDigital_close_cfunc = None - self.niDigital_error_message_cfunc = None - self.niDigital_reset_cfunc = None - self.niDigital_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niDigital_Abort(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_Abort_cfunc is None: - self.niDigital_Abort_cfunc = self._get_library_function('niDigital_Abort') - self.niDigital_Abort_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_Abort_cfunc(vi) - - def niDigital_AbortKeepAlive(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_AbortKeepAlive_cfunc is None: - self.niDigital_AbortKeepAlive_cfunc = self._get_library_function('niDigital_AbortKeepAlive') - self.niDigital_AbortKeepAlive_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_AbortKeepAlive_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_AbortKeepAlive_cfunc(vi) - - def niDigital_ApplyLevelsAndTiming(self, vi, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 - with self._func_lock: - if self.niDigital_ApplyLevelsAndTiming_cfunc is None: - self.niDigital_ApplyLevelsAndTiming_cfunc = self._get_library_function('niDigital_ApplyLevelsAndTiming') - self.niDigital_ApplyLevelsAndTiming_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_ApplyLevelsAndTiming_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ApplyLevelsAndTiming_cfunc(vi, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins) - - def niDigital_ApplyTDROffsets(self, vi, channel_list, num_offsets, offsets): # noqa: N802 - with self._func_lock: - if self.niDigital_ApplyTDROffsets_cfunc is None: - self.niDigital_ApplyTDROffsets_cfunc = self._get_library_function('niDigital_ApplyTDROffsets') - self.niDigital_ApplyTDROffsets_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDigital_ApplyTDROffsets_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ApplyTDROffsets_cfunc(vi, channel_list, num_offsets, offsets) - - def niDigital_BurstPattern(self, vi, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 - with self._func_lock: - if self.niDigital_BurstPattern_cfunc is None: - self.niDigital_BurstPattern_cfunc = self._get_library_function('niDigital_BurstPattern') - self.niDigital_BurstPattern_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ViReal64] # noqa: F405 - self.niDigital_BurstPattern_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_BurstPattern_cfunc(vi, site_list, start_label, select_digital_function, wait_until_done, timeout) - - def niDigital_ClockGenerator_Abort(self, vi, channel_list): # noqa: N802 - with self._func_lock: - if self.niDigital_ClockGenerator_Abort_cfunc is None: - self.niDigital_ClockGenerator_Abort_cfunc = self._get_library_function('niDigital_ClockGenerator_Abort') - self.niDigital_ClockGenerator_Abort_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_ClockGenerator_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ClockGenerator_Abort_cfunc(vi, channel_list) - - def niDigital_ClockGenerator_GenerateClock(self, vi, channel_list, frequency, select_digital_function): # noqa: N802 - with self._func_lock: - if self.niDigital_ClockGenerator_GenerateClock_cfunc is None: - self.niDigital_ClockGenerator_GenerateClock_cfunc = self._get_library_function('niDigital_ClockGenerator_GenerateClock') - self.niDigital_ClockGenerator_GenerateClock_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViBoolean] # noqa: F405 - self.niDigital_ClockGenerator_GenerateClock_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ClockGenerator_GenerateClock_cfunc(vi, channel_list, frequency, select_digital_function) - - def niDigital_Commit(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_Commit_cfunc is None: - self.niDigital_Commit_cfunc = self._get_library_function('niDigital_Commit') - self.niDigital_Commit_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_Commit_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_Commit_cfunc(vi) - - def niDigital_ConfigureActiveLoadLevels(self, vi, channel_list, iol, ioh, vcom): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureActiveLoadLevels_cfunc is None: - self.niDigital_ConfigureActiveLoadLevels_cfunc = self._get_library_function('niDigital_ConfigureActiveLoadLevels') - self.niDigital_ConfigureActiveLoadLevels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niDigital_ConfigureActiveLoadLevels_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureActiveLoadLevels_cfunc(vi, channel_list, iol, ioh, vcom) - - def niDigital_ConfigurePatternBurstSites(self, vi, site_list): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigurePatternBurstSites_cfunc is None: - self.niDigital_ConfigurePatternBurstSites_cfunc = self._get_library_function('niDigital_ConfigurePatternBurstSites') - self.niDigital_ConfigurePatternBurstSites_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_ConfigurePatternBurstSites_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigurePatternBurstSites_cfunc(vi, site_list) - - def niDigital_ConfigureTimeSetCompareEdgesStrobe(self, vi, pin_list, time_set_name, strobe_edge): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc is None: - self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc = self._get_library_function('niDigital_ConfigureTimeSetCompareEdgesStrobe') - self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViReal64] # noqa: F405 - self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc(vi, pin_list, time_set_name, strobe_edge) - - def niDigital_ConfigureTimeSetCompareEdgesStrobe2x(self, vi, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc is None: - self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc = self._get_library_function('niDigital_ConfigureTimeSetCompareEdgesStrobe2x') - self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 - self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc(vi, pin_list, time_set_name, strobe_edge, strobe2_edge) - - def niDigital_ConfigureTimeSetDriveEdges(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetDriveEdges_cfunc is None: - self.niDigital_ConfigureTimeSetDriveEdges_cfunc = self._get_library_function('niDigital_ConfigureTimeSetDriveEdges') - self.niDigital_ConfigureTimeSetDriveEdges_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niDigital_ConfigureTimeSetDriveEdges_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetDriveEdges_cfunc(vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge) - - def niDigital_ConfigureTimeSetDriveEdges2x(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc is None: - self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc = self._get_library_function('niDigital_ConfigureTimeSetDriveEdges2x') - self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc(vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge) - - def niDigital_ConfigureTimeSetDriveFormat(self, vi, pin_list, time_set_name, drive_format): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetDriveFormat_cfunc is None: - self.niDigital_ConfigureTimeSetDriveFormat_cfunc = self._get_library_function('niDigital_ConfigureTimeSetDriveFormat') - self.niDigital_ConfigureTimeSetDriveFormat_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niDigital_ConfigureTimeSetDriveFormat_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetDriveFormat_cfunc(vi, pin_list, time_set_name, drive_format) - - def niDigital_ConfigureTimeSetEdge(self, vi, pin_list, time_set_name, edge, time): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetEdge_cfunc is None: - self.niDigital_ConfigureTimeSetEdge_cfunc = self._get_library_function('niDigital_ConfigureTimeSetEdge') - self.niDigital_ConfigureTimeSetEdge_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405 - self.niDigital_ConfigureTimeSetEdge_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetEdge_cfunc(vi, pin_list, time_set_name, edge, time) - - def niDigital_ConfigureTimeSetEdgeMultiplier(self, vi, pin_list, time_set_name, edge_multiplier): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc is None: - self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc = self._get_library_function('niDigital_ConfigureTimeSetEdgeMultiplier') - self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc(vi, pin_list, time_set_name, edge_multiplier) - - def niDigital_ConfigureTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureTimeSetPeriod_cfunc is None: - self.niDigital_ConfigureTimeSetPeriod_cfunc = self._get_library_function('niDigital_ConfigureTimeSetPeriod') - self.niDigital_ConfigureTimeSetPeriod_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64] # noqa: F405 - self.niDigital_ConfigureTimeSetPeriod_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureTimeSetPeriod_cfunc(vi, time_set_name, period) - - def niDigital_ConfigureVoltageLevels(self, vi, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 - with self._func_lock: - if self.niDigital_ConfigureVoltageLevels_cfunc is None: - self.niDigital_ConfigureVoltageLevels_cfunc = self._get_library_function('niDigital_ConfigureVoltageLevels') - self.niDigital_ConfigureVoltageLevels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niDigital_ConfigureVoltageLevels_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ConfigureVoltageLevels_cfunc(vi, channel_list, vil, vih, vol, voh, vterm) - - def niDigital_CreateCaptureWaveformFromFileDigicapture(self, vi, waveform_name, waveform_file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc is None: - self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc = self._get_library_function('niDigital_CreateCaptureWaveformFromFileDigicapture') - self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc(vi, waveform_name, waveform_file_path) - - def niDigital_CreateCaptureWaveformParallel(self, vi, pin_list, waveform_name): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateCaptureWaveformParallel_cfunc is None: - self.niDigital_CreateCaptureWaveformParallel_cfunc = self._get_library_function('niDigital_CreateCaptureWaveformParallel') - self.niDigital_CreateCaptureWaveformParallel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_CreateCaptureWaveformParallel_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateCaptureWaveformParallel_cfunc(vi, pin_list, waveform_name) - - def niDigital_CreateCaptureWaveformSerial(self, vi, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateCaptureWaveformSerial_cfunc is None: - self.niDigital_CreateCaptureWaveformSerial_cfunc = self._get_library_function('niDigital_CreateCaptureWaveformSerial') - self.niDigital_CreateCaptureWaveformSerial_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViUInt32, ViInt32] # noqa: F405 - self.niDigital_CreateCaptureWaveformSerial_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateCaptureWaveformSerial_cfunc(vi, pin_list, waveform_name, sample_width, bit_order) - - def niDigital_CreateSourceWaveformFromFileTDMS(self, vi, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc is None: - self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc = self._get_library_function('niDigital_CreateSourceWaveformFromFileTDMS') - self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 - self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc(vi, waveform_name, waveform_file_path, write_waveform_data) - - def niDigital_CreateSourceWaveformParallel(self, vi, pin_list, waveform_name, data_mapping): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateSourceWaveformParallel_cfunc is None: - self.niDigital_CreateSourceWaveformParallel_cfunc = self._get_library_function('niDigital_CreateSourceWaveformParallel') - self.niDigital_CreateSourceWaveformParallel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niDigital_CreateSourceWaveformParallel_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateSourceWaveformParallel_cfunc(vi, pin_list, waveform_name, data_mapping) - - def niDigital_CreateSourceWaveformSerial(self, vi, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateSourceWaveformSerial_cfunc is None: - self.niDigital_CreateSourceWaveformSerial_cfunc = self._get_library_function('niDigital_CreateSourceWaveformSerial') - self.niDigital_CreateSourceWaveformSerial_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViUInt32, ViInt32] # noqa: F405 - self.niDigital_CreateSourceWaveformSerial_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateSourceWaveformSerial_cfunc(vi, pin_list, waveform_name, data_mapping, sample_width, bit_order) - - def niDigital_CreateTimeSet(self, vi, name): # noqa: N802 - with self._func_lock: - if self.niDigital_CreateTimeSet_cfunc is None: - self.niDigital_CreateTimeSet_cfunc = self._get_library_function('niDigital_CreateTimeSet') - self.niDigital_CreateTimeSet_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_CreateTimeSet_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_CreateTimeSet_cfunc(vi, name) - - def niDigital_DeleteAllTimeSets(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_DeleteAllTimeSets_cfunc is None: - self.niDigital_DeleteAllTimeSets_cfunc = self._get_library_function('niDigital_DeleteAllTimeSets') - self.niDigital_DeleteAllTimeSets_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_DeleteAllTimeSets_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_DeleteAllTimeSets_cfunc(vi) - - def niDigital_DisableSites(self, vi, site_list): # noqa: N802 - with self._func_lock: - if self.niDigital_DisableSites_cfunc is None: - self.niDigital_DisableSites_cfunc = self._get_library_function('niDigital_DisableSites') - self.niDigital_DisableSites_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_DisableSites_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_DisableSites_cfunc(vi, site_list) - - def niDigital_EnableMatchFailCombination(self, session_count, sessions, sync_session): # noqa: N802 - with self._func_lock: - if self.niDigital_EnableMatchFailCombination_cfunc is None: - self.niDigital_EnableMatchFailCombination_cfunc = self._get_library_function('niDigital_EnableMatchFailCombination') - self.niDigital_EnableMatchFailCombination_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViSession] # noqa: F405 - self.niDigital_EnableMatchFailCombination_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_EnableMatchFailCombination_cfunc(session_count, sessions, sync_session) - - def niDigital_EnableSites(self, vi, site_list): # noqa: N802 - with self._func_lock: - if self.niDigital_EnableSites_cfunc is None: - self.niDigital_EnableSites_cfunc = self._get_library_function('niDigital_EnableSites') - self.niDigital_EnableSites_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_EnableSites_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_EnableSites_cfunc(vi, site_list) - - def niDigital_FetchCaptureWaveformU32(self, vi, site_list, waveform_name, samples_to_read, timeout, data_buffer_size, data, actual_num_waveforms, actual_samples_per_waveform): # noqa: N802 - with self._func_lock: - if self.niDigital_FetchCaptureWaveformU32_cfunc is None: - self.niDigital_FetchCaptureWaveformU32_cfunc = self._get_library_function('niDigital_FetchCaptureWaveformU32') - self.niDigital_FetchCaptureWaveformU32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64, ViInt32, ctypes.POINTER(ViUInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_FetchCaptureWaveformU32_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_FetchCaptureWaveformU32_cfunc(vi, site_list, waveform_name, samples_to_read, timeout, data_buffer_size, data, actual_num_waveforms, actual_samples_per_waveform) - - def niDigital_FetchHistoryRAMCycleInformation(self, vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles): # noqa: N802 - with self._func_lock: - if self.niDigital_FetchHistoryRAMCycleInformation_cfunc is None: - self.niDigital_FetchHistoryRAMCycleInformation_cfunc = self._get_library_function('niDigital_FetchHistoryRAMCycleInformation') - self.niDigital_FetchHistoryRAMCycleInformation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_FetchHistoryRAMCycleInformation_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_FetchHistoryRAMCycleInformation_cfunc(vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles) - - def niDigital_FetchHistoryRAMCyclePinData(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 - with self._func_lock: - if self.niDigital_FetchHistoryRAMCyclePinData_cfunc is None: - self.niDigital_FetchHistoryRAMCyclePinData_cfunc = self._get_library_function('niDigital_FetchHistoryRAMCyclePinData') - self.niDigital_FetchHistoryRAMCyclePinData_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt64, ViInt32, ViInt32, ctypes.POINTER(ViUInt8), ctypes.POINTER(ViUInt8), ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_FetchHistoryRAMCyclePinData_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_FetchHistoryRAMCyclePinData_cfunc(vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data) - - def niDigital_FetchHistoryRAMScanCycleNumber(self, vi, site, sample_index, scan_cycle_number): # noqa: N802 - with self._func_lock: - if self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc is None: - self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc = self._get_library_function('niDigital_FetchHistoryRAMScanCycleNumber') - self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc(vi, site, sample_index, scan_cycle_number) - - def niDigital_FrequencyCounter_MeasureFrequency(self, vi, channel_list, frequencies_buffer_size, frequencies, actual_num_frequencies): # noqa: N802 - with self._func_lock: - if self.niDigital_FrequencyCounter_MeasureFrequency_cfunc is None: - self.niDigital_FrequencyCounter_MeasureFrequency_cfunc = self._get_library_function('niDigital_FrequencyCounter_MeasureFrequency') - self.niDigital_FrequencyCounter_MeasureFrequency_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_FrequencyCounter_MeasureFrequency_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_FrequencyCounter_MeasureFrequency_cfunc(vi, channel_list, frequencies_buffer_size, frequencies, actual_num_frequencies) - - def niDigital_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_GetAttributeViBoolean_cfunc is None: - self.niDigital_GetAttributeViBoolean_cfunc = self._get_library_function('niDigital_GetAttributeViBoolean') - self.niDigital_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDigital_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) - - def niDigital_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_GetAttributeViInt32_cfunc is None: - self.niDigital_GetAttributeViInt32_cfunc = self._get_library_function('niDigital_GetAttributeViInt32') - self.niDigital_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetAttributeViInt32_cfunc(vi, channel_name, attribute, value) - - def niDigital_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_GetAttributeViInt64_cfunc is None: - self.niDigital_GetAttributeViInt64_cfunc = self._get_library_function('niDigital_GetAttributeViInt64') - self.niDigital_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niDigital_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetAttributeViInt64_cfunc(vi, channel_name, attribute, value) - - def niDigital_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_GetAttributeViReal64_cfunc is None: - self.niDigital_GetAttributeViReal64_cfunc = self._get_library_function('niDigital_GetAttributeViReal64') - self.niDigital_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDigital_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetAttributeViReal64_cfunc(vi, channel_name, attribute, value) - - def niDigital_GetAttributeViString(self, vi, channel_name, attribute, buffer_size, value): # noqa: N802 - with self._func_lock: - if self.niDigital_GetAttributeViString_cfunc is None: - self.niDigital_GetAttributeViString_cfunc = self._get_library_function('niDigital_GetAttributeViString') - self.niDigital_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetAttributeViString_cfunc(vi, channel_name, attribute, buffer_size, value) - - def niDigital_GetChannelNameFromString(self, vi, indices, name_buffer_size, names): # noqa: N802 - with self._func_lock: - if self.niDigital_GetChannelNameFromString_cfunc is None: - self.niDigital_GetChannelNameFromString_cfunc = self._get_library_function('niDigital_GetChannelNameFromString') - self.niDigital_GetChannelNameFromString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetChannelNameFromString_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetChannelNameFromString_cfunc(vi, indices, name_buffer_size, names) - - def niDigital_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - with self._func_lock: - if self.niDigital_GetError_cfunc is None: - self.niDigital_GetError_cfunc = self._get_library_function('niDigital_GetError') - self.niDigital_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) - - def niDigital_GetFailCount(self, vi, channel_list, buffer_size, failure_count, actual_num_read): # noqa: N802 - with self._func_lock: - if self.niDigital_GetFailCount_cfunc is None: - self.niDigital_GetFailCount_cfunc = self._get_library_function('niDigital_GetFailCount') - self.niDigital_GetFailCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetFailCount_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetFailCount_cfunc(vi, channel_list, buffer_size, failure_count, actual_num_read) - - def niDigital_GetHistoryRAMSampleCount(self, vi, site, sample_count): # noqa: N802 - with self._func_lock: - if self.niDigital_GetHistoryRAMSampleCount_cfunc is None: - self.niDigital_GetHistoryRAMSampleCount_cfunc = self._get_library_function('niDigital_GetHistoryRAMSampleCount') - self.niDigital_GetHistoryRAMSampleCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt64)] # noqa: F405 - self.niDigital_GetHistoryRAMSampleCount_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetHistoryRAMSampleCount_cfunc(vi, site, sample_count) - - def niDigital_GetPatternName(self, vi, pattern_index, name_buffer_size, name): # noqa: N802 - with self._func_lock: - if self.niDigital_GetPatternName_cfunc is None: - self.niDigital_GetPatternName_cfunc = self._get_library_function('niDigital_GetPatternName') - self.niDigital_GetPatternName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetPatternName_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetPatternName_cfunc(vi, pattern_index, name_buffer_size, name) - - def niDigital_GetPatternPinList(self, vi, start_label, pin_list_buffer_size, pin_list): # noqa: N802 - with self._func_lock: - if self.niDigital_GetPatternPinList_cfunc is None: - self.niDigital_GetPatternPinList_cfunc = self._get_library_function('niDigital_GetPatternPinList') - self.niDigital_GetPatternPinList_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetPatternPinList_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetPatternPinList_cfunc(vi, start_label, pin_list_buffer_size, pin_list) - - def niDigital_GetPinName(self, vi, pin_index, name_buffer_size, name): # noqa: N802 - with self._func_lock: - if self.niDigital_GetPinName_cfunc is None: - self.niDigital_GetPinName_cfunc = self._get_library_function('niDigital_GetPinName') - self.niDigital_GetPinName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetPinName_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetPinName_cfunc(vi, pin_index, name_buffer_size, name) - - def niDigital_GetPinResultsPinInformation(self, vi, channel_list, buffer_size, pin_indexes, site_numbers, channel_indexes, actual_num_values): # noqa: N802 - with self._func_lock: - if self.niDigital_GetPinResultsPinInformation_cfunc is None: - self.niDigital_GetPinResultsPinInformation_cfunc = self._get_library_function('niDigital_GetPinResultsPinInformation') - self.niDigital_GetPinResultsPinInformation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetPinResultsPinInformation_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetPinResultsPinInformation_cfunc(vi, channel_list, buffer_size, pin_indexes, site_numbers, channel_indexes, actual_num_values) - - def niDigital_GetSitePassFail(self, vi, site_list, pass_fail_buffer_size, pass_fail, actual_num_sites): # noqa: N802 - with self._func_lock: - if self.niDigital_GetSitePassFail_cfunc is None: - self.niDigital_GetSitePassFail_cfunc = self._get_library_function('niDigital_GetSitePassFail') - self.niDigital_GetSitePassFail_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetSitePassFail_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetSitePassFail_cfunc(vi, site_list, pass_fail_buffer_size, pass_fail, actual_num_sites) - - def niDigital_GetSiteResultsSiteNumbers(self, vi, site_list, site_result_type, site_numbers_buffer_size, site_numbers, actual_num_site_numbers): # noqa: N802 - with self._func_lock: - if self.niDigital_GetSiteResultsSiteNumbers_cfunc is None: - self.niDigital_GetSiteResultsSiteNumbers_cfunc = self._get_library_function('niDigital_GetSiteResultsSiteNumbers') - self.niDigital_GetSiteResultsSiteNumbers_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetSiteResultsSiteNumbers_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetSiteResultsSiteNumbers_cfunc(vi, site_list, site_result_type, site_numbers_buffer_size, site_numbers, actual_num_site_numbers) - - def niDigital_GetTimeSetDriveFormat(self, vi, pin, time_set_name, format): # noqa: N802 - with self._func_lock: - if self.niDigital_GetTimeSetDriveFormat_cfunc is None: - self.niDigital_GetTimeSetDriveFormat_cfunc = self._get_library_function('niDigital_GetTimeSetDriveFormat') - self.niDigital_GetTimeSetDriveFormat_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetTimeSetDriveFormat_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetTimeSetDriveFormat_cfunc(vi, pin, time_set_name, format) - - def niDigital_GetTimeSetEdge(self, vi, pin, time_set_name, edge, time): # noqa: N802 - with self._func_lock: - if self.niDigital_GetTimeSetEdge_cfunc is None: - self.niDigital_GetTimeSetEdge_cfunc = self._get_library_function('niDigital_GetTimeSetEdge') - self.niDigital_GetTimeSetEdge_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDigital_GetTimeSetEdge_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetTimeSetEdge_cfunc(vi, pin, time_set_name, edge, time) - - def niDigital_GetTimeSetEdgeMultiplier(self, vi, pin, time_set_name, edge_multiplier): # noqa: N802 - with self._func_lock: - if self.niDigital_GetTimeSetEdgeMultiplier_cfunc is None: - self.niDigital_GetTimeSetEdgeMultiplier_cfunc = self._get_library_function('niDigital_GetTimeSetEdgeMultiplier') - self.niDigital_GetTimeSetEdgeMultiplier_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_GetTimeSetEdgeMultiplier_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetTimeSetEdgeMultiplier_cfunc(vi, pin, time_set_name, edge_multiplier) - - def niDigital_GetTimeSetName(self, vi, time_set_index, name_buffer_size, name): # noqa: N802 - with self._func_lock: - if self.niDigital_GetTimeSetName_cfunc is None: - self.niDigital_GetTimeSetName_cfunc = self._get_library_function('niDigital_GetTimeSetName') - self.niDigital_GetTimeSetName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_GetTimeSetName_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetTimeSetName_cfunc(vi, time_set_index, name_buffer_size, name) - - def niDigital_GetTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 - with self._func_lock: - if self.niDigital_GetTimeSetPeriod_cfunc is None: - self.niDigital_GetTimeSetPeriod_cfunc = self._get_library_function('niDigital_GetTimeSetPeriod') - self.niDigital_GetTimeSetPeriod_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDigital_GetTimeSetPeriod_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_GetTimeSetPeriod_cfunc(vi, time_set_name, period) - - def niDigital_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 - with self._func_lock: - if self.niDigital_InitWithOptions_cfunc is None: - self.niDigital_InitWithOptions_cfunc = self._get_library_function('niDigital_InitWithOptions') - self.niDigital_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niDigital_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, new_vi) - - def niDigital_Initiate(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_Initiate_cfunc is None: - self.niDigital_Initiate_cfunc = self._get_library_function('niDigital_Initiate') - self.niDigital_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_Initiate_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_Initiate_cfunc(vi) - - def niDigital_IsDone(self, vi, done): # noqa: N802 - with self._func_lock: - if self.niDigital_IsDone_cfunc is None: - self.niDigital_IsDone_cfunc = self._get_library_function('niDigital_IsDone') - self.niDigital_IsDone_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDigital_IsDone_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_IsDone_cfunc(vi, done) - - def niDigital_IsSiteEnabled(self, vi, site, enable): # noqa: N802 - with self._func_lock: - if self.niDigital_IsSiteEnabled_cfunc is None: - self.niDigital_IsSiteEnabled_cfunc = self._get_library_function('niDigital_IsSiteEnabled') - self.niDigital_IsSiteEnabled_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDigital_IsSiteEnabled_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_IsSiteEnabled_cfunc(vi, site, enable) - - def niDigital_LoadLevels(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_LoadLevels_cfunc is None: - self.niDigital_LoadLevels_cfunc = self._get_library_function('niDigital_LoadLevels') - self.niDigital_LoadLevels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_LoadLevels_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_LoadLevels_cfunc(vi, file_path) - - def niDigital_LoadPattern(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_LoadPattern_cfunc is None: - self.niDigital_LoadPattern_cfunc = self._get_library_function('niDigital_LoadPattern') - self.niDigital_LoadPattern_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_LoadPattern_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_LoadPattern_cfunc(vi, file_path) - - def niDigital_LoadPinMap(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_LoadPinMap_cfunc is None: - self.niDigital_LoadPinMap_cfunc = self._get_library_function('niDigital_LoadPinMap') - self.niDigital_LoadPinMap_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_LoadPinMap_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_LoadPinMap_cfunc(vi, file_path) - - def niDigital_LoadSpecifications(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_LoadSpecifications_cfunc is None: - self.niDigital_LoadSpecifications_cfunc = self._get_library_function('niDigital_LoadSpecifications') - self.niDigital_LoadSpecifications_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_LoadSpecifications_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_LoadSpecifications_cfunc(vi, file_path) - - def niDigital_LoadTiming(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_LoadTiming_cfunc is None: - self.niDigital_LoadTiming_cfunc = self._get_library_function('niDigital_LoadTiming') - self.niDigital_LoadTiming_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_LoadTiming_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_LoadTiming_cfunc(vi, file_path) - - def niDigital_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niDigital_LockSession_cfunc is None: - self.niDigital_LockSession_cfunc = self._get_library_function('niDigital_LockSession') - self.niDigital_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDigital_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_LockSession_cfunc(vi, caller_has_lock) - - def niDigital_PPMU_Measure(self, vi, channel_list, measurement_type, buffer_size, measurements, actual_num_read): # noqa: N802 - with self._func_lock: - if self.niDigital_PPMU_Measure_cfunc is None: - self.niDigital_PPMU_Measure_cfunc = self._get_library_function('niDigital_PPMU_Measure') - self.niDigital_PPMU_Measure_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_PPMU_Measure_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_PPMU_Measure_cfunc(vi, channel_list, measurement_type, buffer_size, measurements, actual_num_read) - - def niDigital_PPMU_Source(self, vi, channel_list): # noqa: N802 - with self._func_lock: - if self.niDigital_PPMU_Source_cfunc is None: - self.niDigital_PPMU_Source_cfunc = self._get_library_function('niDigital_PPMU_Source') - self.niDigital_PPMU_Source_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_PPMU_Source_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_PPMU_Source_cfunc(vi, channel_list) - - def niDigital_ReadSequencerFlag(self, vi, flag, value): # noqa: N802 - with self._func_lock: - if self.niDigital_ReadSequencerFlag_cfunc is None: - self.niDigital_ReadSequencerFlag_cfunc = self._get_library_function('niDigital_ReadSequencerFlag') - self.niDigital_ReadSequencerFlag_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDigital_ReadSequencerFlag_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ReadSequencerFlag_cfunc(vi, flag, value) - - def niDigital_ReadSequencerRegister(self, vi, reg, value): # noqa: N802 - with self._func_lock: - if self.niDigital_ReadSequencerRegister_cfunc is None: - self.niDigital_ReadSequencerRegister_cfunc = self._get_library_function('niDigital_ReadSequencerRegister') - self.niDigital_ReadSequencerRegister_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_ReadSequencerRegister_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ReadSequencerRegister_cfunc(vi, reg, value) - - def niDigital_ReadStatic(self, vi, channel_list, buffer_size, data, actual_num_read): # noqa: N802 - with self._func_lock: - if self.niDigital_ReadStatic_cfunc is None: - self.niDigital_ReadStatic_cfunc = self._get_library_function('niDigital_ReadStatic') - self.niDigital_ReadStatic_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViUInt8), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_ReadStatic_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ReadStatic_cfunc(vi, channel_list, buffer_size, data, actual_num_read) - - def niDigital_ResetDevice(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_ResetDevice_cfunc is None: - self.niDigital_ResetDevice_cfunc = self._get_library_function('niDigital_ResetDevice') - self.niDigital_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_ResetDevice_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_ResetDevice_cfunc(vi) - - def niDigital_SelfCalibrate(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_SelfCalibrate_cfunc is None: - self.niDigital_SelfCalibrate_cfunc = self._get_library_function('niDigital_SelfCalibrate') - self.niDigital_SelfCalibrate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_SelfCalibrate_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SelfCalibrate_cfunc(vi) - - def niDigital_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 - with self._func_lock: - if self.niDigital_SendSoftwareEdgeTrigger_cfunc is None: - self.niDigital_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niDigital_SendSoftwareEdgeTrigger') - self.niDigital_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_identifier) - - def niDigital_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_SetAttributeViBoolean_cfunc is None: - self.niDigital_SetAttributeViBoolean_cfunc = self._get_library_function('niDigital_SetAttributeViBoolean') - self.niDigital_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niDigital_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) - - def niDigital_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_SetAttributeViInt32_cfunc is None: - self.niDigital_SetAttributeViInt32_cfunc = self._get_library_function('niDigital_SetAttributeViInt32') - self.niDigital_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niDigital_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SetAttributeViInt32_cfunc(vi, channel_name, attribute, value) - - def niDigital_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_SetAttributeViInt64_cfunc is None: - self.niDigital_SetAttributeViInt64_cfunc = self._get_library_function('niDigital_SetAttributeViInt64') - self.niDigital_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 - self.niDigital_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SetAttributeViInt64_cfunc(vi, channel_name, attribute, value) - - def niDigital_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_SetAttributeViReal64_cfunc is None: - self.niDigital_SetAttributeViReal64_cfunc = self._get_library_function('niDigital_SetAttributeViReal64') - self.niDigital_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niDigital_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SetAttributeViReal64_cfunc(vi, channel_name, attribute, value) - - def niDigital_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niDigital_SetAttributeViString_cfunc is None: - self.niDigital_SetAttributeViString_cfunc = self._get_library_function('niDigital_SetAttributeViString') - self.niDigital_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SetAttributeViString_cfunc(vi, channel_name, attribute, value) - - def niDigital_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niDigital_SetRuntimeEnvironment_cfunc is None: - self.niDigital_SetRuntimeEnvironment_cfunc = self._get_library_function('niDigital_SetRuntimeEnvironment') - self.niDigital_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niDigital_TDR(self, vi, channel_list, apply_offsets, offsets_buffer_size, offsets, actual_num_offsets): # noqa: N802 - with self._func_lock: - if self.niDigital_TDR_cfunc is None: - self.niDigital_TDR_cfunc = self._get_library_function('niDigital_TDR') - self.niDigital_TDR_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDigital_TDR_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_TDR_cfunc(vi, channel_list, apply_offsets, offsets_buffer_size, offsets, actual_num_offsets) - - def niDigital_UnloadAllPatterns(self, vi, unload_keep_alive_pattern): # noqa: N802 - with self._func_lock: - if self.niDigital_UnloadAllPatterns_cfunc is None: - self.niDigital_UnloadAllPatterns_cfunc = self._get_library_function('niDigital_UnloadAllPatterns') - self.niDigital_UnloadAllPatterns_cfunc.argtypes = [ViSession, ViBoolean] # noqa: F405 - self.niDigital_UnloadAllPatterns_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_UnloadAllPatterns_cfunc(vi, unload_keep_alive_pattern) - - def niDigital_UnloadSpecifications(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_UnloadSpecifications_cfunc is None: - self.niDigital_UnloadSpecifications_cfunc = self._get_library_function('niDigital_UnloadSpecifications') - self.niDigital_UnloadSpecifications_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_UnloadSpecifications_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_UnloadSpecifications_cfunc(vi, file_path) - - def niDigital_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niDigital_UnlockSession_cfunc is None: - self.niDigital_UnlockSession_cfunc = self._get_library_function('niDigital_UnlockSession') - self.niDigital_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDigital_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_UnlockSession_cfunc(vi, caller_has_lock) - - def niDigital_WaitUntilDone(self, vi, timeout): # noqa: N802 - with self._func_lock: - if self.niDigital_WaitUntilDone_cfunc is None: - self.niDigital_WaitUntilDone_cfunc = self._get_library_function('niDigital_WaitUntilDone') - self.niDigital_WaitUntilDone_cfunc.argtypes = [ViSession, ViReal64] # noqa: F405 - self.niDigital_WaitUntilDone_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WaitUntilDone_cfunc(vi, timeout) - - def niDigital_WriteSequencerFlag(self, vi, flag, value): # noqa: N802 - with self._func_lock: - if self.niDigital_WriteSequencerFlag_cfunc is None: - self.niDigital_WriteSequencerFlag_cfunc = self._get_library_function('niDigital_WriteSequencerFlag') - self.niDigital_WriteSequencerFlag_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 - self.niDigital_WriteSequencerFlag_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WriteSequencerFlag_cfunc(vi, flag, value) - - def niDigital_WriteSequencerRegister(self, vi, reg, value): # noqa: N802 - with self._func_lock: - if self.niDigital_WriteSequencerRegister_cfunc is None: - self.niDigital_WriteSequencerRegister_cfunc = self._get_library_function('niDigital_WriteSequencerRegister') - self.niDigital_WriteSequencerRegister_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niDigital_WriteSequencerRegister_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WriteSequencerRegister_cfunc(vi, reg, value) - - def niDigital_WriteSourceWaveformBroadcastU32(self, vi, waveform_name, waveform_size, waveform_data): # noqa: N802 - with self._func_lock: - if self.niDigital_WriteSourceWaveformBroadcastU32_cfunc is None: - self.niDigital_WriteSourceWaveformBroadcastU32_cfunc = self._get_library_function('niDigital_WriteSourceWaveformBroadcastU32') - self.niDigital_WriteSourceWaveformBroadcastU32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViUInt32)] # noqa: F405 - self.niDigital_WriteSourceWaveformBroadcastU32_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WriteSourceWaveformBroadcastU32_cfunc(vi, waveform_name, waveform_size, waveform_data) - - def niDigital_WriteSourceWaveformDataFromFileTDMS(self, vi, waveform_name, waveform_file_path): # noqa: N802 - with self._func_lock: - if self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc is None: - self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc = self._get_library_function('niDigital_WriteSourceWaveformDataFromFileTDMS') - self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc(vi, waveform_name, waveform_file_path) - - def niDigital_WriteSourceWaveformSiteUniqueU32(self, vi, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 - with self._func_lock: - if self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc is None: - self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc = self._get_library_function('niDigital_WriteSourceWaveformSiteUniqueU32') - self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViUInt32)] # noqa: F405 - self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc(vi, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data) - - def niDigital_WriteStatic(self, vi, channel_list, state): # noqa: N802 - with self._func_lock: - if self.niDigital_WriteStatic_cfunc is None: - self.niDigital_WriteStatic_cfunc = self._get_library_function('niDigital_WriteStatic') - self.niDigital_WriteStatic_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViUInt8] # noqa: F405 - self.niDigital_WriteStatic_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_WriteStatic_cfunc(vi, channel_list, state) - - def niDigital_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_close_cfunc is None: - self.niDigital_close_cfunc = self._get_library_function('niDigital_close') - self.niDigital_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_close_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_close_cfunc(vi) - - def niDigital_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niDigital_error_message_cfunc is None: - self.niDigital_error_message_cfunc = self._get_library_function('niDigital_error_message') - self.niDigital_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_error_message_cfunc(vi, error_code, error_message) - - def niDigital_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niDigital_reset_cfunc is None: - self.niDigital_reset_cfunc = self._get_library_function('niDigital_reset') - self.niDigital_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDigital_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_reset_cfunc(vi) - - def niDigital_self_test(self, vi, test_result, test_message): # noqa: N802 - with self._func_lock: - if self.niDigital_self_test_cfunc is None: - self.niDigital_self_test_cfunc = self._get_library_function('niDigital_self_test') - self.niDigital_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDigital_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niDigital_self_test_cfunc(vi, test_result, test_message) diff --git a/generated/nidigital/nidigital/_library_interpreter.py b/generated/nidigital/nidigital/_library_interpreter.py deleted file mode 100644 index 8c00b6c500..0000000000 --- a/generated/nidigital/nidigital/_library_interpreter.py +++ /dev/null @@ -1,1047 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import nidigital._library_singleton as _library_singleton -import nidigital._visatype as _visatype -import nidigital.enums as enums # noqa: F401 -import nidigital.errors as errors - -import nidigital.history_ram_cycle_information as history_ram_cycle_information # noqa: F401 - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_Abort(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def abort_keep_alive(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_AbortKeepAlive(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def apply_levels_and_timing(self, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - levels_sheet_ctype = ctypes.create_string_buffer(levels_sheet.encode(self._encoding)) # case C020 - timing_sheet_ctype = ctypes.create_string_buffer(timing_sheet.encode(self._encoding)) # case C020 - initial_state_high_pins_ctype = ctypes.create_string_buffer(initial_state_high_pins.encode(self._encoding)) # case C020 - initial_state_low_pins_ctype = ctypes.create_string_buffer(initial_state_low_pins.encode(self._encoding)) # case C020 - initial_state_tristate_pins_ctype = ctypes.create_string_buffer(initial_state_tristate_pins.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_ApplyLevelsAndTiming(vi_ctype, site_list_ctype, levels_sheet_ctype, timing_sheet_ctype, initial_state_high_pins_ctype, initial_state_low_pins_ctype, initial_state_tristate_pins_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def apply_tdr_offsets(self, channel_list, offsets): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - num_offsets_ctype = _visatype.ViInt32(0 if offsets is None else len(offsets)) # case S160 - offsets_ctype = _get_ctypes_pointer_for_buffer(value=offsets, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niDigital_ApplyTDROffsets(vi_ctype, channel_list_ctype, num_offsets_ctype, offsets_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def burst_pattern(self, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - start_label_ctype = ctypes.create_string_buffer(start_label.encode(self._encoding)) # case C020 - select_digital_function_ctype = _visatype.ViBoolean(select_digital_function) # case S150 - wait_until_done_ctype = _visatype.ViBoolean(wait_until_done) # case S150 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - error_code = self._library.niDigital_BurstPattern(vi_ctype, site_list_ctype, start_label_ctype, select_digital_function_ctype, wait_until_done_ctype, timeout_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clock_generator_abort(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - error_code = self._library.niDigital_ClockGenerator_Abort(vi_ctype, channel_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clock_generator_generate_clock(self, channel_list, frequency, select_digital_function): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - frequency_ctype = _visatype.ViReal64(frequency) # case S150 - select_digital_function_ctype = _visatype.ViBoolean(select_digital_function) # case S150 - error_code = self._library.niDigital_ClockGenerator_GenerateClock(vi_ctype, channel_list_ctype, frequency_ctype, select_digital_function_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def commit(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_Commit(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_active_load_levels(self, channel_list, iol, ioh, vcom): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - iol_ctype = _visatype.ViReal64(iol) # case S150 - ioh_ctype = _visatype.ViReal64(ioh) # case S150 - vcom_ctype = _visatype.ViReal64(vcom) # case S150 - error_code = self._library.niDigital_ConfigureActiveLoadLevels(vi_ctype, channel_list_ctype, iol_ctype, ioh_ctype, vcom_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_pattern_burst_sites(self, site_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - error_code = self._library.niDigital_ConfigurePatternBurstSites(vi_ctype, site_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_compare_edges_strobe(self, pin_list, time_set_name, strobe_edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - strobe_edge_ctype = _visatype.ViReal64(strobe_edge) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetCompareEdgesStrobe(vi_ctype, pin_list_ctype, time_set_name_ctype, strobe_edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_compare_edges_strobe2x(self, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - strobe_edge_ctype = _visatype.ViReal64(strobe_edge) # case S150 - strobe2_edge_ctype = _visatype.ViReal64(strobe2_edge) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetCompareEdgesStrobe2x(vi_ctype, pin_list_ctype, time_set_name_ctype, strobe_edge_ctype, strobe2_edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_drive_edges(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - format_ctype = _visatype.ViInt32(format.value) # case S130 - drive_on_edge_ctype = _visatype.ViReal64(drive_on_edge) # case S150 - drive_data_edge_ctype = _visatype.ViReal64(drive_data_edge) # case S150 - drive_return_edge_ctype = _visatype.ViReal64(drive_return_edge) # case S150 - drive_off_edge_ctype = _visatype.ViReal64(drive_off_edge) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetDriveEdges(vi_ctype, pin_list_ctype, time_set_name_ctype, format_ctype, drive_on_edge_ctype, drive_data_edge_ctype, drive_return_edge_ctype, drive_off_edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_drive_edges2x(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - format_ctype = _visatype.ViInt32(format.value) # case S130 - drive_on_edge_ctype = _visatype.ViReal64(drive_on_edge) # case S150 - drive_data_edge_ctype = _visatype.ViReal64(drive_data_edge) # case S150 - drive_return_edge_ctype = _visatype.ViReal64(drive_return_edge) # case S150 - drive_off_edge_ctype = _visatype.ViReal64(drive_off_edge) # case S150 - drive_data2_edge_ctype = _visatype.ViReal64(drive_data2_edge) # case S150 - drive_return2_edge_ctype = _visatype.ViReal64(drive_return2_edge) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetDriveEdges2x(vi_ctype, pin_list_ctype, time_set_name_ctype, format_ctype, drive_on_edge_ctype, drive_data_edge_ctype, drive_return_edge_ctype, drive_off_edge_ctype, drive_data2_edge_ctype, drive_return2_edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_drive_format(self, pin_list, time_set_name, drive_format): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - drive_format_ctype = _visatype.ViInt32(drive_format.value) # case S130 - error_code = self._library.niDigital_ConfigureTimeSetDriveFormat(vi_ctype, pin_list_ctype, time_set_name_ctype, drive_format_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_edge(self, pin_list, time_set_name, edge, time): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - time_ctype = _visatype.ViReal64(time) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetEdge(vi_ctype, pin_list_ctype, time_set_name_ctype, edge_ctype, time_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_edge_multiplier(self, pin_list, time_set_name, edge_multiplier): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - edge_multiplier_ctype = _visatype.ViInt32(edge_multiplier) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetEdgeMultiplier(vi_ctype, pin_list_ctype, time_set_name_ctype, edge_multiplier_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_time_set_period(self, time_set_name, period): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - period_ctype = _visatype.ViReal64(period) # case S150 - error_code = self._library.niDigital_ConfigureTimeSetPeriod(vi_ctype, time_set_name_ctype, period_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_voltage_levels(self, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - vil_ctype = _visatype.ViReal64(vil) # case S150 - vih_ctype = _visatype.ViReal64(vih) # case S150 - vol_ctype = _visatype.ViReal64(vol) # case S150 - voh_ctype = _visatype.ViReal64(voh) # case S150 - vterm_ctype = _visatype.ViReal64(vterm) # case S150 - error_code = self._library.niDigital_ConfigureVoltageLevels(vi_ctype, channel_list_ctype, vil_ctype, vih_ctype, vol_ctype, voh_ctype, vterm_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_capture_waveform_from_file_digicapture(self, waveform_name, waveform_file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - waveform_file_path_ctype = ctypes.create_string_buffer(waveform_file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_CreateCaptureWaveformFromFileDigicapture(vi_ctype, waveform_name_ctype, waveform_file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_capture_waveform_parallel(self, pin_list, waveform_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_CreateCaptureWaveformParallel(vi_ctype, pin_list_ctype, waveform_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_capture_waveform_serial(self, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - sample_width_ctype = _visatype.ViUInt32(sample_width) # case S150 - bit_order_ctype = _visatype.ViInt32(bit_order.value) # case S130 - error_code = self._library.niDigital_CreateCaptureWaveformSerial(vi_ctype, pin_list_ctype, waveform_name_ctype, sample_width_ctype, bit_order_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_source_waveform_from_file_tdms(self, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - waveform_file_path_ctype = ctypes.create_string_buffer(waveform_file_path.encode(self._encoding)) # case C020 - write_waveform_data_ctype = _visatype.ViBoolean(write_waveform_data) # case S150 - error_code = self._library.niDigital_CreateSourceWaveformFromFileTDMS(vi_ctype, waveform_name_ctype, waveform_file_path_ctype, write_waveform_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_source_waveform_parallel(self, pin_list, waveform_name, data_mapping): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - data_mapping_ctype = _visatype.ViInt32(data_mapping.value) # case S130 - error_code = self._library.niDigital_CreateSourceWaveformParallel(vi_ctype, pin_list_ctype, waveform_name_ctype, data_mapping_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_source_waveform_serial(self, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - data_mapping_ctype = _visatype.ViInt32(data_mapping.value) # case S130 - sample_width_ctype = _visatype.ViUInt32(sample_width) # case S150 - bit_order_ctype = _visatype.ViInt32(bit_order.value) # case S130 - error_code = self._library.niDigital_CreateSourceWaveformSerial(vi_ctype, pin_list_ctype, waveform_name_ctype, data_mapping_ctype, sample_width_ctype, bit_order_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_time_set(self, name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - name_ctype = ctypes.create_string_buffer(name.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_CreateTimeSet(vi_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_all_time_sets(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_DeleteAllTimeSets(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable_sites(self, site_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - error_code = self._library.niDigital_DisableSites(vi_ctype, site_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def enable_match_fail_combination(self, sessions, sync_session): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - sync_session_ctype = _visatype.ViSession(sync_session) # case S110 - error_code = self._library.niDigital_EnableMatchFailCombination(session_count_ctype, sessions_ctype, sync_session_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def enable_sites(self, site_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - error_code = self._library.niDigital_EnableSites(vi_ctype, site_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def fetch_capture_waveform(self, site_list, waveform_name, samples_to_read, timeout): - # This is slightly modified codegen from the function - # We cannot use codegen without major modifications to the code generator - # This function uses two 'ivi-dance' parameters and then multiplies them together - see - # the (modified) line below - # Also, we want to return the two sizes that normally wouldn't be returned - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - samples_to_read_ctype = _visatype.ViInt32(samples_to_read) # case S150 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - data_buffer_size_ctype = _visatype.ViInt32(0) # case S190 - data_ctype = None # case B610 - actual_num_waveforms_ctype = _visatype.ViInt32() # case S220 - actual_samples_per_waveform_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_FetchCaptureWaveformU32(vi_ctype, site_list_ctype, waveform_name_ctype, samples_to_read_ctype, timeout_ctype, data_buffer_size_ctype, data_ctype, None if actual_num_waveforms_ctype is None else (ctypes.pointer(actual_num_waveforms_ctype)), None if actual_samples_per_waveform_ctype is None else (ctypes.pointer(actual_samples_per_waveform_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - data_buffer_size_ctype = _visatype.ViInt32(actual_num_waveforms_ctype.value * actual_samples_per_waveform_ctype.value) # case S200 (modified) - data_size = actual_num_waveforms_ctype.value * actual_samples_per_waveform_ctype.value # case B620 (modified) - data_array = array.array("L", [0]) * data_size # case B620 - data_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViUInt32) # case B620 - error_code = self._library.niDigital_FetchCaptureWaveformU32(vi_ctype, site_list_ctype, waveform_name_ctype, samples_to_read_ctype, timeout_ctype, data_buffer_size_ctype, data_ctype, None if actual_num_waveforms_ctype is None else (ctypes.pointer(actual_num_waveforms_ctype)), None if actual_samples_per_waveform_ctype is None else (ctypes.pointer(actual_samples_per_waveform_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return data_array, actual_num_waveforms_ctype.value, actual_samples_per_waveform_ctype.value # (modified) - - def fetch_history_ram_cycle_information(self, site, sample_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 - sample_index_ctype = _visatype.ViInt64(sample_index) # case S150 - pattern_index_ctype = _visatype.ViInt32() # case S220 - time_set_index_ctype = _visatype.ViInt32() # case S220 - vector_number_ctype = _visatype.ViInt64() # case S220 - cycle_number_ctype = _visatype.ViInt64() # case S220 - num_dut_cycles_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_FetchHistoryRAMCycleInformation(vi_ctype, site_ctype, sample_index_ctype, None if pattern_index_ctype is None else (ctypes.pointer(pattern_index_ctype)), None if time_set_index_ctype is None else (ctypes.pointer(time_set_index_ctype)), None if vector_number_ctype is None else (ctypes.pointer(vector_number_ctype)), None if cycle_number_ctype is None else (ctypes.pointer(cycle_number_ctype)), None if num_dut_cycles_ctype is None else (ctypes.pointer(num_dut_cycles_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(pattern_index_ctype.value), int(time_set_index_ctype.value), int(vector_number_ctype.value), int(cycle_number_ctype.value), int(num_dut_cycles_ctype.value) - - def fetch_history_ram_cycle_pin_data(self, site, pin_list, sample_index, dut_cycle_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 - pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C020 - sample_index_ctype = _visatype.ViInt64(sample_index) # case S150 - dut_cycle_index_ctype = _visatype.ViInt32(dut_cycle_index) # case S150 - pin_data_buffer_size_ctype = _visatype.ViInt32(0) # case S190 - expected_pin_states_ctype = None # case B610 - actual_pin_states_ctype = None # case B610 - per_pin_pass_fail_ctype = None # case B610 - actual_num_pin_data_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_FetchHistoryRAMCyclePinData(vi_ctype, site_ctype, pin_list_ctype, sample_index_ctype, dut_cycle_index_ctype, pin_data_buffer_size_ctype, expected_pin_states_ctype, actual_pin_states_ctype, per_pin_pass_fail_ctype, None if actual_num_pin_data_ctype is None else (ctypes.pointer(actual_num_pin_data_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - pin_data_buffer_size_ctype = _visatype.ViInt32(actual_num_pin_data_ctype.value) # case S200 - expected_pin_states_size = actual_num_pin_data_ctype.value # case B620 - expected_pin_states_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViUInt8, size=expected_pin_states_size) # case B620 - actual_pin_states_size = actual_num_pin_data_ctype.value # case B620 - actual_pin_states_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViUInt8, size=actual_pin_states_size) # case B620 - per_pin_pass_fail_size = actual_num_pin_data_ctype.value # case B620 - per_pin_pass_fail_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=per_pin_pass_fail_size) # case B620 - error_code = self._library.niDigital_FetchHistoryRAMCyclePinData(vi_ctype, site_ctype, pin_list_ctype, sample_index_ctype, dut_cycle_index_ctype, pin_data_buffer_size_ctype, expected_pin_states_ctype, actual_pin_states_ctype, per_pin_pass_fail_ctype, None if actual_num_pin_data_ctype is None else (ctypes.pointer(actual_num_pin_data_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [enums.PinState(expected_pin_states_ctype[i]) for i in range(pin_data_buffer_size_ctype.value)], [enums.PinState(actual_pin_states_ctype[i]) for i in range(pin_data_buffer_size_ctype.value)], [bool(per_pin_pass_fail_ctype[i]) for i in range(pin_data_buffer_size_ctype.value)] - - def fetch_history_ram_scan_cycle_number(self, site, sample_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 - sample_index_ctype = _visatype.ViInt64(sample_index) # case S150 - scan_cycle_number_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niDigital_FetchHistoryRAMScanCycleNumber(vi_ctype, site_ctype, sample_index_ctype, None if scan_cycle_number_ctype is None else (ctypes.pointer(scan_cycle_number_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(scan_cycle_number_ctype.value) - - def frequency_counter_measure_frequency(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - frequencies_buffer_size_ctype = _visatype.ViInt32(0) # case S190 - frequencies_ctype = None # case B610 - actual_num_frequencies_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_FrequencyCounter_MeasureFrequency(vi_ctype, channel_list_ctype, frequencies_buffer_size_ctype, frequencies_ctype, None if actual_num_frequencies_ctype is None else (ctypes.pointer(actual_num_frequencies_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - frequencies_buffer_size_ctype = _visatype.ViInt32(actual_num_frequencies_ctype.value) # case S200 - frequencies_size = actual_num_frequencies_ctype.value # case B620 - frequencies_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=frequencies_size) # case B620 - error_code = self._library.niDigital_FrequencyCounter_MeasureFrequency(vi_ctype, channel_list_ctype, frequencies_buffer_size_ctype, frequencies_ctype, None if actual_num_frequencies_ctype is None else (ctypes.pointer(actual_num_frequencies_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(frequencies_ctype[i]) for i in range(frequencies_buffer_size_ctype.value)] - - def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDigital_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niDigital_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDigital_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - value_ctype = None # case C050 - error_code = self._library.niDigital_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buffer_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buffer_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return value_ctype.value.decode(self._encoding) - - def get_channel_names(self, indices): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 - name_buffer_size_ctype = _visatype.ViInt32() # case S170 - names_ctype = None # case C050 - error_code = self._library.niDigital_GetChannelNameFromString(vi_ctype, indices_ctype, name_buffer_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - names_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetChannelNameFromString(vi_ctype, indices_ctype, name_buffer_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return names_ctype.value.decode(self._encoding) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 - error_description_ctype = None # case C050 - error_code = self._library.niDigital_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) - - def get_fail_count(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - failure_count_ctype = None # case B610 - actual_num_read_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetFailCount(vi_ctype, channel_list_ctype, buffer_size_ctype, failure_count_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_num_read_ctype.value) # case S200 - failure_count_size = actual_num_read_ctype.value # case B620 - failure_count_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt64, size=failure_count_size) # case B620 - error_code = self._library.niDigital_GetFailCount(vi_ctype, channel_list_ctype, buffer_size_ctype, failure_count_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [int(failure_count_ctype[i]) for i in range(buffer_size_ctype.value)] - - def get_history_ram_sample_count(self, site): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 - sample_count_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niDigital_GetHistoryRAMSampleCount(vi_ctype, site_ctype, None if sample_count_ctype is None else (ctypes.pointer(sample_count_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(sample_count_ctype.value) - - def get_pattern_name(self, pattern_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pattern_index_ctype = _visatype.ViInt32(pattern_index) # case S150 - name_buffer_size_ctype = _visatype.ViInt32() # case S170 - name_ctype = None # case C050 - error_code = self._library.niDigital_GetPatternName(vi_ctype, pattern_index_ctype, name_buffer_size_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - name_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetPatternName(vi_ctype, pattern_index_ctype, name_buffer_size_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return name_ctype.value.decode(self._encoding) - - def get_pattern_pin_names(self, start_label): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - start_label_ctype = ctypes.create_string_buffer(start_label.encode(self._encoding)) # case C020 - pin_list_buffer_size_ctype = _visatype.ViInt32() # case S170 - pin_list_ctype = None # case C050 - error_code = self._library.niDigital_GetPatternPinList(vi_ctype, start_label_ctype, pin_list_buffer_size_ctype, pin_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - pin_list_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - pin_list_ctype = (_visatype.ViChar * pin_list_buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetPatternPinList(vi_ctype, start_label_ctype, pin_list_buffer_size_ctype, pin_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return pin_list_ctype.value.decode(self._encoding) - - def get_pin_name(self, pin_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_index_ctype = _visatype.ViInt32(pin_index) # case S150 - name_buffer_size_ctype = _visatype.ViInt32() # case S170 - name_ctype = None # case C050 - error_code = self._library.niDigital_GetPinName(vi_ctype, pin_index_ctype, name_buffer_size_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - name_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetPinName(vi_ctype, pin_index_ctype, name_buffer_size_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return name_ctype.value.decode(self._encoding) - - def get_pin_results_pin_information(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - pin_indexes_ctype = None # case B610 - site_numbers_ctype = None # case B610 - channel_indexes_ctype = None # case B610 - actual_num_values_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetPinResultsPinInformation(vi_ctype, channel_list_ctype, buffer_size_ctype, pin_indexes_ctype, site_numbers_ctype, channel_indexes_ctype, None if actual_num_values_ctype is None else (ctypes.pointer(actual_num_values_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_num_values_ctype.value) # case S200 - pin_indexes_size = actual_num_values_ctype.value # case B620 - pin_indexes_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=pin_indexes_size) # case B620 - site_numbers_size = actual_num_values_ctype.value # case B620 - site_numbers_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=site_numbers_size) # case B620 - channel_indexes_size = actual_num_values_ctype.value # case B620 - channel_indexes_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=channel_indexes_size) # case B620 - error_code = self._library.niDigital_GetPinResultsPinInformation(vi_ctype, channel_list_ctype, buffer_size_ctype, pin_indexes_ctype, site_numbers_ctype, channel_indexes_ctype, None if actual_num_values_ctype is None else (ctypes.pointer(actual_num_values_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [int(pin_indexes_ctype[i]) for i in range(buffer_size_ctype.value)], [int(site_numbers_ctype[i]) for i in range(buffer_size_ctype.value)], [int(channel_indexes_ctype[i]) for i in range(buffer_size_ctype.value)] - - def get_site_pass_fail(self, site_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - pass_fail_buffer_size_ctype = _visatype.ViInt32(0) # case S190 - pass_fail_ctype = None # case B610 - actual_num_sites_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetSitePassFail(vi_ctype, site_list_ctype, pass_fail_buffer_size_ctype, pass_fail_ctype, None if actual_num_sites_ctype is None else (ctypes.pointer(actual_num_sites_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - pass_fail_buffer_size_ctype = _visatype.ViInt32(actual_num_sites_ctype.value) # case S200 - pass_fail_size = actual_num_sites_ctype.value # case B620 - pass_fail_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=pass_fail_size) # case B620 - error_code = self._library.niDigital_GetSitePassFail(vi_ctype, site_list_ctype, pass_fail_buffer_size_ctype, pass_fail_ctype, None if actual_num_sites_ctype is None else (ctypes.pointer(actual_num_sites_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [bool(pass_fail_ctype[i]) for i in range(pass_fail_buffer_size_ctype.value)] - - def get_site_results_site_numbers(self, site_list, site_result_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - site_result_type_ctype = _visatype.ViInt32(site_result_type.value) # case S130 - site_numbers_buffer_size_ctype = _visatype.ViInt32(0) # case S190 - site_numbers_ctype = None # case B610 - actual_num_site_numbers_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetSiteResultsSiteNumbers(vi_ctype, site_list_ctype, site_result_type_ctype, site_numbers_buffer_size_ctype, site_numbers_ctype, None if actual_num_site_numbers_ctype is None else (ctypes.pointer(actual_num_site_numbers_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - site_numbers_buffer_size_ctype = _visatype.ViInt32(actual_num_site_numbers_ctype.value) # case S200 - site_numbers_size = actual_num_site_numbers_ctype.value # case B620 - site_numbers_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=site_numbers_size) # case B620 - error_code = self._library.niDigital_GetSiteResultsSiteNumbers(vi_ctype, site_list_ctype, site_result_type_ctype, site_numbers_buffer_size_ctype, site_numbers_ctype, None if actual_num_site_numbers_ctype is None else (ctypes.pointer(actual_num_site_numbers_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [int(site_numbers_ctype[i]) for i in range(site_numbers_buffer_size_ctype.value)] - - def get_time_set_drive_format(self, pin, time_set_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_ctype = ctypes.create_string_buffer(pin.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - format_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetTimeSetDriveFormat(vi_ctype, pin_ctype, time_set_name_ctype, None if format_ctype is None else (ctypes.pointer(format_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return enums.DriveFormat(format_ctype.value) - - def get_time_set_edge(self, pin, time_set_name, edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_ctype = ctypes.create_string_buffer(pin.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - time_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDigital_GetTimeSetEdge(vi_ctype, pin_ctype, time_set_name_ctype, edge_ctype, None if time_ctype is None else (ctypes.pointer(time_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(time_ctype.value) - - def get_time_set_edge_multiplier(self, pin, time_set_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pin_ctype = ctypes.create_string_buffer(pin.encode(self._encoding)) # case C010 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - edge_multiplier_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_GetTimeSetEdgeMultiplier(vi_ctype, pin_ctype, time_set_name_ctype, None if edge_multiplier_ctype is None else (ctypes.pointer(edge_multiplier_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(edge_multiplier_ctype.value) - - def get_time_set_name(self, time_set_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - time_set_index_ctype = _visatype.ViInt32(time_set_index) # case S150 - name_buffer_size_ctype = _visatype.ViInt32() # case S170 - name_ctype = None # case C050 - error_code = self._library.niDigital_GetTimeSetName(vi_ctype, time_set_index_ctype, name_buffer_size_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - name_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 - error_code = self._library.niDigital_GetTimeSetName(vi_ctype, time_set_index_ctype, name_buffer_size_ctype, name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return name_ctype.value.decode(self._encoding) - - def get_time_set_period(self, time_set_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 - period_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDigital_GetTimeSetPeriod(vi_ctype, time_set_name_ctype, None if period_ctype is None else (ctypes.pointer(period_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(period_ctype.value) - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - id_query_ctype = _visatype.ViBoolean(id_query) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - new_vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niDigital_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if new_vi_ctype is None else (ctypes.pointer(new_vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(new_vi_ctype.value) - - def initiate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_Initiate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def is_done(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - done_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDigital_IsDone(vi_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(done_ctype.value) - - def is_site_enabled(self, site): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 - enable_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDigital_IsSiteEnabled(vi_ctype, site_ctype, None if enable_ctype is None else (ctypes.pointer(enable_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(enable_ctype.value) - - def load_levels(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_LoadLevels(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def load_pattern(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_LoadPattern(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def load_pin_map(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_LoadPinMap(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def load_specifications(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_LoadSpecifications(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def load_timing(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_LoadTiming(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def ppmu_measure(self, channel_list, measurement_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - measurement_type_ctype = _visatype.ViInt32(measurement_type.value) # case S130 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - measurements_ctype = None # case B610 - actual_num_read_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_PPMU_Measure(vi_ctype, channel_list_ctype, measurement_type_ctype, buffer_size_ctype, measurements_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_num_read_ctype.value) # case S200 - measurements_size = actual_num_read_ctype.value # case B620 - measurements_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=measurements_size) # case B620 - error_code = self._library.niDigital_PPMU_Measure(vi_ctype, channel_list_ctype, measurement_type_ctype, buffer_size_ctype, measurements_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(measurements_ctype[i]) for i in range(buffer_size_ctype.value)] - - def ppmu_source(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - error_code = self._library.niDigital_PPMU_Source(vi_ctype, channel_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def read_sequencer_flag(self, flag): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - flag_ctype = ctypes.create_string_buffer(flag.value.encode(self._encoding)) # case C030 - value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDigital_ReadSequencerFlag(vi_ctype, flag_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(value_ctype.value) - - def read_sequencer_register(self, reg): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - reg_ctype = ctypes.create_string_buffer(reg.value.encode(self._encoding)) # case C030 - value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_ReadSequencerRegister(vi_ctype, reg_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def read_static(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - data_ctype = None # case B610 - actual_num_read_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_ReadStatic(vi_ctype, channel_list_ctype, buffer_size_ctype, data_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_num_read_ctype.value) # case S200 - data_size = actual_num_read_ctype.value # case B620 - data_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViUInt8, size=data_size) # case B620 - error_code = self._library.niDigital_ReadStatic(vi_ctype, channel_list_ctype, buffer_size_ctype, data_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [enums.PinState(data_ctype[i]) for i in range(buffer_size_ctype.value)] - - def reset_device(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_ResetDevice(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_calibrate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_SelfCalibrate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 - trigger_identifier_ctype = ctypes.create_string_buffer(trigger_identifier.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_identifier_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViBoolean(value) # case S150 - error_code = self._library.niDigital_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt32(value) # case S150 - error_code = self._library.niDigital_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt64(value) # case S150 - error_code = self._library.niDigital_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViReal64(value) # case S150 - error_code = self._library.niDigital_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def tdr(self, channel_list, apply_offsets): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - apply_offsets_ctype = _visatype.ViBoolean(apply_offsets) # case S150 - offsets_buffer_size_ctype = _visatype.ViInt32(0) # case S190 - offsets_ctype = None # case B610 - actual_num_offsets_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDigital_TDR(vi_ctype, channel_list_ctype, apply_offsets_ctype, offsets_buffer_size_ctype, offsets_ctype, None if actual_num_offsets_ctype is None else (ctypes.pointer(actual_num_offsets_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - offsets_buffer_size_ctype = _visatype.ViInt32(actual_num_offsets_ctype.value) # case S200 - offsets_size = actual_num_offsets_ctype.value # case B620 - offsets_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=offsets_size) # case B620 - error_code = self._library.niDigital_TDR(vi_ctype, channel_list_ctype, apply_offsets_ctype, offsets_buffer_size_ctype, offsets_ctype, None if actual_num_offsets_ctype is None else (ctypes.pointer(actual_num_offsets_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(offsets_ctype[i]) for i in range(offsets_buffer_size_ctype.value)] - - def unload_all_patterns(self, unload_keep_alive_pattern): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - unload_keep_alive_pattern_ctype = _visatype.ViBoolean(unload_keep_alive_pattern) # case S150 - error_code = self._library.niDigital_UnloadAllPatterns(vi_ctype, unload_keep_alive_pattern_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unload_specifications(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_UnloadSpecifications(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_until_done(self, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - error_code = self._library.niDigital_WaitUntilDone(vi_ctype, timeout_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_sequencer_flag(self, flag, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - flag_ctype = ctypes.create_string_buffer(flag.value.encode(self._encoding)) # case C030 - value_ctype = _visatype.ViBoolean(value) # case S150 - error_code = self._library.niDigital_WriteSequencerFlag(vi_ctype, flag_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_sequencer_register(self, reg, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - reg_ctype = ctypes.create_string_buffer(reg.value.encode(self._encoding)) # case C030 - value_ctype = _visatype.ViInt32(value) # case S150 - error_code = self._library.niDigital_WriteSequencerRegister(vi_ctype, reg_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_source_waveform_broadcast(self, waveform_name, waveform_data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - waveform_size_ctype = _visatype.ViInt32(0 if waveform_data is None else len(waveform_data)) # case S160 - waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data, library_type=_visatype.ViUInt32) # case B550 - error_code = self._library.niDigital_WriteSourceWaveformBroadcastU32(vi_ctype, waveform_name_ctype, waveform_size_ctype, waveform_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_source_waveform_data_from_file_tdms(self, waveform_name, waveform_file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - waveform_file_path_ctype = ctypes.create_string_buffer(waveform_file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDigital_WriteSourceWaveformDataFromFileTDMS(vi_ctype, waveform_name_ctype, waveform_file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_source_waveform_site_unique_u32(self, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - num_waveforms_ctype = _visatype.ViInt32(num_waveforms) # case S150 - samples_per_waveform_ctype = _visatype.ViInt32(samples_per_waveform) # case S150 - waveform_data_array = _convert_to_array(value=waveform_data, array_type="L") # case B550 - waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_visatype.ViUInt32) # case B550 - error_code = self._library.niDigital_WriteSourceWaveformSiteUniqueU32(vi_ctype, site_list_ctype, waveform_name_ctype, num_waveforms_ctype, samples_per_waveform_ctype, waveform_data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_static(self, channel_list, state): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - state_ctype = _visatype.ViUInt8(state.value) # case S130 - error_code = self._library.niDigital_WriteStatic(vi_ctype, channel_list_ctype, state_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niDigital_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDigital_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - test_result_ctype = _visatype.ViInt16() # case S220 - test_message_ctype = (_visatype.ViChar * 2048)() # case C070 - error_code = self._library.niDigital_self_test(vi_ctype, None if test_result_ctype is None else (ctypes.pointer(test_result_ctype)), test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(test_result_ctype.value), test_message_ctype.value.decode(self._encoding) diff --git a/generated/nidigital/nidigital/_library_singleton.py b/generated/nidigital/nidigital/_library_singleton.py deleted file mode 100644 index 7275b0715c..0000000000 --- a/generated/nidigital/nidigital/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nidigital._library as _library -import nidigital.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nidigital', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niDigital_32.dll', 'type': 'windll'}, - '64bit': {'name': 'niDigital_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nidigital. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nidigital/nidigital/_visatype.py b/generated/nidigital/nidigital/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nidigital/nidigital/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nidigital/nidigital/enums.py b/generated/nidigital/nidigital/enums.py deleted file mode 100644 index 0542e11adf..0000000000 --- a/generated/nidigital/nidigital/enums.py +++ /dev/null @@ -1,356 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class BitOrder(Enum): - MSB = 2500 - r''' - The most significant bit is first. The first bit is in the 2^n place, where n is the number of bits. - ''' - LSB = 2501 - r''' - The least significant bit is first. The first bit is in the 2^0 place. - ''' - - -class DigitalEdge(Enum): - RISING = 1800 - r''' - Asserts the trigger when the signal transitions from low level to high level. - ''' - FALLING = 1801 - r''' - Asserts the trigger when the signal transitions from high level to low level. - ''' - - -class DriveFormat(Enum): - NR = 1500 - r''' - Drive format remains at logic level after each bit. - ''' - RL = 1501 - r''' - Drive format returns to a logic level low after each bit. - ''' - RH = 1502 - r''' - Drive format returns to a logic level high after each bit. - ''' - SBC = 1503 - r''' - Drive format returns to the complement logic level of the bit after each bit. - ''' - - -class FrequencyMeasurementMode(Enum): - BANKED = 3700 - r''' - Frequency measurements are made serially for groups of channels associated with a single frequency counter for each group. - - Maximum frequency measured: 200 MHz. - ''' - PARALLEL = 3701 - r''' - Frequency measurements are made by multiple frequency counters in parallel. - - Maximum frequency measured: 100 MHz. - ''' - - -class HistoryRAMCyclesToAcquire(Enum): - FAILED = 2303 - r''' - Acquires failed cycles. - ''' - ALL = 2304 - r''' - Acquires all cycles. - ''' - - -class HistoryRAMTriggerType(Enum): - FIRST_FAILURE = 2200 - r''' - First Failure History RAM trigger - ''' - CYCLE_NUMBER = 2201 - r''' - Cycle Number History RAM trigger. - ''' - PATTERN_LABEL = 2202 - r''' - Pattern Label History RAM trigger - ''' - - -class PPMUApertureTimeUnits(Enum): - SECONDS = 2100 - r''' - Unit in seconds. - ''' - - -class PPMUCurrentLimitBehavior(Enum): - REGULATE = 3100 - r''' - Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. - ''' - - -class PPMUMeasurementType(Enum): - CURRENT = 2400 - r''' - The PPMU measures current. - ''' - VOLTAGE = 2401 - r''' - The PPMU measures voltage. - ''' - - -class PPMUOutputFunction(Enum): - VOLTAGE = 1300 - r''' - The PPMU forces voltage to the DUT. - ''' - CURRENT = 1301 - r''' - The PPMU forces current to the DUT. - ''' - - -class PinState(Enum): - ZERO = 0 - r''' - A digital state of 0. - ''' - ONE = 1 - r''' - A digital state of 1. - ''' - L = 3 - r''' - A digital state of L (low). - ''' - H = 4 - r''' - A digital state of H (high). - ''' - X = 5 - r''' - A digital state of X (non-drive state). - ''' - M = 6 - r''' - A digital state of M (midband). - ''' - V = 7 - r''' - A digital state of V (compare high or low, not midband; store results from capture functionality if configured). - ''' - D = 8 - r''' - A digital state of D (drive data from source functionality if configured). - ''' - E = 9 - r''' - A digital state of E (compare data from source functionality if configured). - ''' - NOT_A_PIN_STATE = 254 - r''' - Not a pin state is used for non-existent DUT cycles. - ''' - PIN_STATE_NOT_ACQUIRED = 255 - r''' - Pin state could not be acquired because none of the pins mapped to the instrument in a multi-instrument session had any failures. - ''' - - def __str__(self): - return { - 'ZERO': '0', - 'ONE': '1', - 'NOT_A_PIN_STATE': 'Not a Pin State', - 'PIN_STATE_NOT_ACQUIRED': 'Pin State Not Acquired', - }.get(self.name, self.name) - - -class SelectedFunction(Enum): - DIGITAL = 1100 - r''' - The pattern sequencer controls the specified pin(s). If a pattern is currently bursting, the pin immediately switches to bursting the pattern. This option disconnects the PPMU. - ''' - PPMU = 1101 - r''' - The PPMU controls the specified pin(s) and connects the PPMU. The pin driver is in a non-drive state, and the active load is disabled. The PPMU does not start sourcing or measuring until Source or Measure(PpmuMeasurementType) is called. - ''' - OFF = 1102 - r''' - Puts the digital driver in a non-drive state, disables the active load, disconnects the PPMU, and closes the I/O switch connecting the instrument channel. - ''' - DISCONNECT = 1103 - r''' - The I/O switch connecting the instrument channel is open to the I/O connector. If the PPMU is sourcing, it is stopped prior to opening the I/O switch. - ''' - RIO = 1104 - r''' - Yields control of the specified pin(s) to LabVIEW FPGA. - ''' - - -class SequencerFlag(Enum): - FLAG0 = 'seqflag0' - FLAG1 = 'seqflag1' - FLAG2 = 'seqflag2' - FLAG3 = 'seqflag3' - - -class SequencerRegister(Enum): - REGISTER0 = 'reg0' - REGISTER1 = 'reg1' - REGISTER2 = 'reg2' - REGISTER3 = 'reg3' - REGISTER4 = 'reg4' - REGISTER5 = 'reg5' - REGISTER6 = 'reg6' - REGISTER7 = 'reg7' - REGISTER8 = 'reg8' - REGISTER9 = 'reg9' - REGISTER10 = 'reg10' - REGISTER11 = 'reg11' - REGISTER12 = 'reg12' - REGISTER13 = 'reg13' - REGISTER14 = 'reg14' - REGISTER15 = 'reg15' - - -class _SiteResultType(Enum): - PASS_FAIL = 3300 - r''' - Pass/fail site result. - ''' - CAPTURE_WAVEFORM = 3301 - r''' - Capture waveform site result. - ''' - - -class SoftwareTrigger(Enum): - START = 2000 - r''' - Overrides the start trigger. - ''' - CONDITIONAL_JUMP = 2001 - r''' - Specifies to route a conditional jump trigger. - ''' - - -class SourceDataMapping(Enum): - BROADCAST = 2600 - r''' - Broadcasts the waveform you specify to all sites. - ''' - SITE_UNIQUE = 2601 - r''' - Sources unique waveform data to each site. - ''' - - -class TDREndpointTermination(Enum): - OPEN = 3600 - r''' - TDR channels are connected to an open circuit. - ''' - SHORT_TO_GROUND = 3601 - r''' - TDR channels are connected to a short to ground. - ''' - - -class TerminationMode(Enum): - ACTIVE_LOAD = 1200 - r''' - The active load provides a constant current to a commutating voltage (Vcom). - ''' - VTERM = 1201 - r''' - The pin driver drives Vterm. - ''' - HIGH_Z = 1202 - r''' - The pin driver is in a non-drive state (in a high-impedance state) and the active load is disabled. - ''' - - -class TimeSetEdgeType(Enum): - DRIVE_ON = 2800 - r''' - Specifies the drive on edge of the time set. - ''' - DRIVE_DATA = 2801 - r''' - Specifies the drive data edge of the time set. - ''' - DRIVE_RETURN = 2802 - r''' - Specifies the drive return edge of the time set. - ''' - DRIVE_OFF = 2803 - r''' - Specifies the drive off edge of the time set. - ''' - COMPARE_STROBE = 2804 - r''' - Specifies the compare strobe of the time set. - ''' - DRIVE_DATA2 = 2805 - r''' - Specifies the drive data 2 edge of the time set. - ''' - DRIVE_RETURN2 = 2806 - r''' - Specifies the drive return 2 edge of the time set. - ''' - COMPARE_STROBE2 = 2807 - r''' - Specifies the compare strobe 2 of the time set. - ''' - - -class TriggerType(Enum): - NONE = 1700 - r''' - Disables the start trigger. - ''' - DIGITAL_EDGE = 1701 - r''' - Digital edge trigger. - ''' - SOFTWARE = 1702 - r''' - Software start trigger. - ''' - - -class WriteStaticPinState(Enum): - ZERO = 0 - r''' - Specifies to drive low. - ''' - ONE = 1 - r''' - Specifies to drive high. - ''' - X = 5 - r''' - Specifies to not drive. - ''' - - def __str__(self): - return { - 'ZERO': '0', - 'ONE': '1', - }.get(self.name, self.name) diff --git a/generated/nidigital/nidigital/errors.py b/generated/nidigital/nidigital/errors.py deleted file mode 100644 index dafbadc9a9..0000000000 --- a/generated/nidigital/nidigital/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-Digital Pattern Driver''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-Digital Pattern Driver driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-Digital Pattern Driver driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-Digital Pattern Driver runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-Digital Pattern Driver driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-Digital Pattern Driver runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-Digital Pattern Driver driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-Digital Pattern Driver runtime returned an unexpected value. This can occur if it is too new for the nidigital Python module. Upgrade the nidigital Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nidigital.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nidigital/nidigital/grpc_session_options.py b/generated/nidigital/nidigital/grpc_session_options.py deleted file mode 100644 index 1ed3f269a6..0000000000 --- a/generated/nidigital/nidigital/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nidigitalpattern_grpc.NiDigital' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nidigital/nidigital/history_ram_cycle_information.py b/generated/nidigital/nidigital/history_ram_cycle_information.py deleted file mode 100644 index 4508cde921..0000000000 --- a/generated/nidigital/nidigital/history_ram_cycle_information.py +++ /dev/null @@ -1,52 +0,0 @@ -class HistoryRAMCycleInformation: - def __init__(self, pattern_name, time_set_name, vector_number, cycle_number, scan_cycle_number, expected_pin_states, actual_pin_states, per_pin_pass_fail): - self.pattern_name = pattern_name - self.time_set_name = time_set_name - self.vector_number = vector_number - self.cycle_number = cycle_number - self.scan_cycle_number = scan_cycle_number - self.expected_pin_states = expected_pin_states - self.actual_pin_states = actual_pin_states - self.per_pin_pass_fail = per_pin_pass_fail - - def __repr__(self): - parameter_list = [ - f'pattern_name="{self.pattern_name}"', - f'time_set_name="{self.time_set_name}"', - f'vector_number={self.vector_number}', - f'cycle_number={self.cycle_number}', - f'scan_cycle_number={self.scan_cycle_number}', - f'expected_pin_states={self._digital_states_representation(self.expected_pin_states)}', - f'actual_pin_states={self._digital_states_representation(self.actual_pin_states)}', - f'per_pin_pass_fail={self.per_pin_pass_fail}', - ] - - return '{}.{}({})'.format(self.__class__.__module__, self.__class__.__qualname__, ', '.join(parameter_list)) - - def __str__(self): - # different format lines - row_format_d = '{:<20}: {:,}\n' - row_format_s = '{:<20}: {:}\n' - - string_representation = '' - string_representation += row_format_s.format('Pattern Name', self.pattern_name) - string_representation += row_format_s.format('Time Set Name', self.time_set_name) - string_representation += row_format_d.format('Vector Number', self.vector_number) - string_representation += row_format_d.format('Cycle Number', self.cycle_number) - string_representation += row_format_d.format('Scan Cycle Number', self.scan_cycle_number) - string_representation += row_format_s.format('Expected Pin States', self._digital_states_string(self.expected_pin_states)) - string_representation += row_format_s.format('Actual Pin States', self._digital_states_string(self.actual_pin_states)) - string_representation += row_format_s.format('Per Pin Pass Fail', self.per_pin_pass_fail) - - return string_representation - - @staticmethod - def _digital_states_representation(states): - states_representation = [[f'{i.__class__.__module__}.{i.__class__.__qualname__}.{i.name}' for i in j] for j in states] - return '[{}]'.format(', '.join(['[{}]'.format(', '.join(i)) for i in states_representation])) - - @staticmethod - def _digital_states_string(states): - states_string = [[str(i) for i in j] for j in states] - return '[{}]'.format(', '.join(['[{}]'.format(', '.join(i)) for i in states_string])) - diff --git a/generated/nidigital/nidigital/nidevice_pb2.py b/generated/nidigital/nidigital/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nidigital/nidigital/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nidigital/nidigital/nidevice_pb2_grpc.py b/generated/nidigital/nidigital/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nidigital/nidigital/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nidigital/nidigital/nidigitalpattern_pb2.py b/generated/nidigital/nidigital/nidigitalpattern_pb2.py deleted file mode 100644 index 383350aa80..0000000000 --- a/generated/nidigital/nidigital/nidigitalpattern_pb2.py +++ /dev/null @@ -1,591 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidigitalpattern.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16nidigitalpattern.proto\x12\x15nidigitalpattern_grpc\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"M\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btest_result\x18\x02 \x01(\x11\x12\x14\n\x0ctest_message\x18\x03 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\":\n\x14SelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\'\n\x15SelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x94\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x94\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x95\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x95\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"\x96\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x96\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\xfe\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x45\n\x05value\x18\x04 \x01(\x0e\x32\x34.nidigitalpattern_grpc.NiDigitalInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x01\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x92\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12?\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11LoadPinMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"$\n\x12LoadPinMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"K\n\x12\x45nableSitesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"%\n\x13\x45nableSitesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"L\n\x13\x44isableSitesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"&\n\x14\x44isableSitesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x14IsSiteEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\"7\n\x15IsSiteEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06\x65nable\x18\x02 \x01(\x08\"h\n\x13\x43reatePinMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x64ut_pin_list\x18\x02 \x01(\t\x12\x17\n\x0fsystem_pin_list\x18\x03 \x01(\t\"&\n\x14\x43reatePinMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x15\x43reatePinGroupRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0epin_group_name\x18\x02 \x01(\t\x12\x10\n\x08pin_list\x18\x03 \x01(\t\"(\n\x16\x43reatePinGroupResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x17\x43reateChannelMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tnum_sites\x18\x02 \x01(\x11\"*\n\x18\x43reateChannelMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n\x16MapPinToChannelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x0c\n\x04site\x18\x03 \x01(\x11\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\")\n\x17MapPinToChannelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14\x45ndChannelMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\'\n\x15\x45ndChannelMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11GetPinNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tpin_index\x18\x02 \x01(\x11\"2\n\x12GetPinNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"6\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xb7\x01\n\x15SelectFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12;\n\x08\x66unction\x18\x03 \x01(\x0e\x32\'.nidigitalpattern_grpc.SelectedFunctionH\x00\x12\x16\n\x0c\x66unction_raw\x18\x04 \x01(\x11H\x00\x42\x0f\n\rfunction_enum\"(\n\x16SelectFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x11ReadStaticRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"~\n\x12ReadStaticResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12-\n\x04\x64\x61ta\x18\x02 \x03(\x0e\x32\x1f.nidigitalpattern_grpc.PinState\x12\x10\n\x08\x64\x61ta_raw\x18\x03 \x01(\x0c\x12\x17\n\x0f\x61\x63tual_num_read\x18\x04 \x01(\x11\"\xae\x01\n\x12WriteStaticRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12;\n\x05state\x18\x03 \x01(\x0e\x32*.nidigitalpattern_grpc.WriteStaticPinStateH\x00\x12\x13\n\tstate_raw\x18\x04 \x01(\rH\x00\x42\x0c\n\nstate_enum\"%\n\x13WriteStaticResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x92\x01\n\"ClockGeneratorGenerateClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x11\n\tfrequency\x18\x03 \x01(\x01\x12\x1f\n\x17select_digital_function\x18\x04 \x01(\x08\"5\n#ClockGeneratorGenerateClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1d\x43lockGeneratorInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"0\n\x1e\x43lockGeneratorInitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1a\x43lockGeneratorAbortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"-\n\x1b\x43lockGeneratorAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"R\n\x19LoadSpecificationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\",\n\x1aLoadSpecificationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x1bUnloadSpecificationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\".\n\x1cUnloadSpecificationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11LoadLevelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"$\n\x12LoadLevelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11LoadTimingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"$\n\x12LoadTimingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe6\x01\n\x1b\x41pplyLevelsAndTimingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x14\n\x0clevels_sheet\x18\x03 \x01(\t\x12\x14\n\x0ctiming_sheet\x18\x04 \x01(\t\x12\x1f\n\x17initial_state_high_pins\x18\x05 \x01(\t\x12\x1e\n\x16initial_state_low_pins\x18\x06 \x01(\t\x12#\n\x1binitial_state_tristate_pins\x18\x07 \x01(\t\".\n\x1c\x41pplyLevelsAndTimingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9c\x01\n\x1d\x43onfigureVoltageLevelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0b\n\x03vil\x18\x03 \x01(\x01\x12\x0b\n\x03vih\x18\x04 \x01(\x01\x12\x0b\n\x03vol\x18\x05 \x01(\x01\x12\x0b\n\x03voh\x18\x06 \x01(\x01\x12\r\n\x05vterm\x18\x07 \x01(\x01\"0\n\x1e\x43onfigureVoltageLevelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x84\x01\n ConfigureActiveLoadLevelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0b\n\x03iol\x18\x03 \x01(\x01\x12\x0b\n\x03ioh\x18\x04 \x01(\x01\x12\x0c\n\x04vcom\x18\x05 \x01(\x01\"3\n!ConfigureActiveLoadLevelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb4\x01\n\x1f\x43onfigureTerminationModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32&.nidigitalpattern_grpc.TerminationModeH\x00\x12\x12\n\x08mode_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tmode_enum\"2\n ConfigureTerminationModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x14\x43reateTimeSetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04name\x18\x02 \x01(\t\"\'\n\x15\x43reateTimeSetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x1d\x43onfigureTimeSetPeriodRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rtime_set_name\x18\x02 \x01(\t\x12\x0e\n\x06period\x18\x03 \x01(\x01\"0\n\x1e\x43onfigureTimeSetPeriodResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x02\n!ConfigureTimeSetDriveEdgesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x34\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x12\x15\n\rdrive_on_edge\x18\x06 \x01(\x01\x12\x17\n\x0f\x64rive_data_edge\x18\x07 \x01(\x01\x12\x19\n\x11\x64rive_return_edge\x18\x08 \x01(\x01\x12\x16\n\x0e\x64rive_off_edge\x18\t \x01(\x01\x42\r\n\x0b\x66ormat_enum\"4\n\"ConfigureTimeSetDriveEdgesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n)ConfigureTimeSetCompareEdgesStrobeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x13\n\x0bstrobe_edge\x18\x04 \x01(\x01\"<\n*ConfigureTimeSetCompareEdgesStrobeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xde\x01\n\"ConfigureTimeSetDriveFormatRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12:\n\x0c\x64rive_format\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormatH\x00\x12\x1a\n\x10\x64rive_format_raw\x18\x05 \x01(\x11H\x00\x42\x13\n\x11\x64rive_format_enum\"5\n#ConfigureTimeSetDriveFormatResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18\x44\x65leteAllTimeSetsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19\x44\x65leteAllTimeSetsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n%ConfigureTimeSetEdgeMultiplierRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x17\n\x0f\x65\x64ge_multiplier\x18\x04 \x01(\x11\"8\n&ConfigureTimeSetEdgeMultiplierResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe6\x02\n#ConfigureTimeSetDriveEdges2xRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x34\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x12\x15\n\rdrive_on_edge\x18\x06 \x01(\x01\x12\x17\n\x0f\x64rive_data_edge\x18\x07 \x01(\x01\x12\x19\n\x11\x64rive_return_edge\x18\x08 \x01(\x01\x12\x16\n\x0e\x64rive_off_edge\x18\t \x01(\x01\x12\x18\n\x10\x64rive_data2_edge\x18\n \x01(\x01\x12\x1a\n\x12\x64rive_return2_edge\x18\x0b \x01(\x01\x42\r\n\x0b\x66ormat_enum\"6\n$ConfigureTimeSetDriveEdges2xResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n+ConfigureTimeSetCompareEdgesStrobe2xRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x13\n\x0bstrobe_edge\x18\x04 \x01(\x01\x12\x14\n\x0cstrobe2_edge\x18\x05 \x01(\x01\">\n,ConfigureTimeSetCompareEdgesStrobe2xResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd1\x01\n\x1b\x43onfigureTimeSetEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x36\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32&.nidigitalpattern_grpc.TimeSetEdgeTypeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x12\x0c\n\x04time\x18\x06 \x01(\x01\x42\x0b\n\tedge_enum\".\n\x1c\x43onfigureTimeSetEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x17GetTimeSetPeriodRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rtime_set_name\x18\x02 \x01(\t\":\n\x18GetTimeSetPeriodResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06period\x18\x02 \x01(\x01\"\xb8\x01\n\x15GetTimeSetEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x36\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32&.nidigitalpattern_grpc.TimeSetEdgeTypeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"6\n\x16GetTimeSetEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04time\x18\x02 \x01(\x01\"i\n\x1fGetTimeSetEdgeMultiplierRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\"K\n GetTimeSetEdgeMultiplierResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x65\x64ge_multiplier\x18\x02 \x01(\x11\"f\n\x1cGetTimeSetDriveFormatRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\"w\n\x1dGetTimeSetDriveFormatResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x32\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormat\x12\x12\n\nformat_raw\x18\x03 \x01(\x11\"S\n\x15GetTimeSetNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etime_set_index\x18\x02 \x01(\x11\"6\n\x16GetTimeSetNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"]\n\nTDRRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rapply_offsets\x18\x03 \x01(\x08\"J\n\x0bTDRResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07offsets\x18\x02 \x03(\x01\x12\x1a\n\x12\x61\x63tual_num_offsets\x18\x03 \x01(\x11\"c\n\x16\x41pplyTDROffsetsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07offsets\x18\x03 \x03(\x01\")\n\x17\x41pplyTDROffsetsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdb\x01\n\"PPMUConfigureOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x44\n\x0foutput_function\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.PpmuOutputFunctionH\x00\x12\x1d\n\x13output_function_raw\x18\x04 \x01(\x11H\x00\x42\x16\n\x14output_function_enum\"5\n#PPMUConfigureOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n PPMUConfigureApertureTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\raperture_time\x18\x03 \x01(\x01\x12=\n\x05units\x18\x04 \x01(\x0e\x32,.nidigitalpattern_grpc.PpmuApertureTimeUnitsH\x00\x12\x13\n\tunits_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nunits_enum\"3\n!PPMUConfigureApertureTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n PPMUConfigureVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rvoltage_level\x18\x03 \x01(\x01\"3\n!PPMUConfigureVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x01\n PPMUConfigureCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x43\n\x08\x62\x65havior\x18\x03 \x01(\x0e\x32/.nidigitalpattern_grpc.PpmuCurrentLimitBehaviorH\x00\x12\x16\n\x0c\x62\x65havior_raw\x18\x04 \x01(\x11H\x00\x12\r\n\x05limit\x18\x05 \x01(\x01\x42\x0f\n\rbehavior_enum\"3\n!PPMUConfigureCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%PPMUConfigureCurrentLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"8\n&PPMUConfigureCurrentLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n PPMUConfigureCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rcurrent_level\x18\x03 \x01(\x01\"3\n!PPMUConfigureCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%PPMUConfigureCurrentLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"8\n&PPMUConfigureCurrentLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x01\n!PPMUConfigureVoltageLimitsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x1b\n\x13lower_voltage_limit\x18\x03 \x01(\x01\x12\x1b\n\x13upper_voltage_limit\x18\x04 \x01(\x01\"4\n\"PPMUConfigureVoltageLimitsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x11PPMUSourceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"$\n\x12PPMUSourceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcf\x01\n\x12PPMUMeasureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x46\n\x10measurement_type\x18\x03 \x01(\x0e\x32*.nidigitalpattern_grpc.PpmuMeasurementTypeH\x00\x12\x1e\n\x14measurement_type_raw\x18\x04 \x01(\x11H\x00\x42\x17\n\x15measurement_type_enum\"T\n\x13PPMUMeasureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0cmeasurements\x18\x02 \x03(\x01\x12\x17\n\x0f\x61\x63tual_num_read\x18\x03 \x01(\x11\"K\n\x12LoadPatternRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"%\n\x13LoadPatternResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n\x18UnloadAllPatternsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12!\n\x19unload_keep_alive_pattern\x18\x02 \x01(\x08\"+\n\x19UnloadAllPatternsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n\x1a\x43onfigureStartLabelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05label\x18\x02 \x01(\t\"-\n\x1b\x43onfigureStartLabelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n!ConfigurePatternBurstSitesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"4\n\"ConfigurePatternBurstSitesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1bGetPatternPinIndexesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstart_label\x18\x02 \x01(\t\"\\\n\x1cGetPatternPinIndexesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bpin_indexes\x18\x02 \x03(\x11\x12\x17\n\x0f\x61\x63tual_num_pins\x18\x03 \x01(\x11\"S\n\x18GetPatternPinListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstart_label\x18\x02 \x01(\t\"=\n\x19GetPatternPinListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08pin_list\x18\x02 \x01(\t\"R\n\x15GetPatternNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rpattern_index\x18\x02 \x01(\x11\"6\n\x16GetPatternNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xac\x01\n\x13\x42urstPatternRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x13\n\x0bstart_label\x18\x03 \x01(\t\x12\x1f\n\x17select_digital_function\x18\x04 \x01(\x08\x12\x17\n\x0fwait_until_done\x18\x05 \x01(\x08\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"&\n\x14\x42urstPatternResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n\x1f\x42urstPatternSynchronizedRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12(\n\x08sessions\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x03 \x01(\t\x12\x13\n\x0bstart_label\x18\x04 \x01(\t\x12\x1f\n\x17select_digital_function\x18\x05 \x01(\x08\x12\x17\n\x0fwait_until_done\x18\x06 \x01(\x08\x12\x0f\n\x07timeout\x18\x07 \x01(\x01\"2\n BurstPatternSynchronizedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rIsDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x0eIsDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64one\x18\x02 \x01(\x08\"K\n\x14WaitUntilDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07timeout\x18\x02 \x01(\x01\"\'\n\x15WaitUntilDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\";\n\x15\x41\x62ortKeepAliveRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"(\n\x16\x41\x62ortKeepAliveResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n-ConfigurePatternLabelHistoryRAMTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05label\x18\x02 \x01(\t\x12\x15\n\rvector_offset\x18\x03 \x01(\x03\x12\x14\n\x0c\x63ycle_offset\x18\x04 \x01(\x03\x12\x1a\n\x12pretrigger_samples\x18\x05 \x01(\x11\"@\n.ConfigurePatternLabelHistoryRAMTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x84\x01\n,ConfigureCycleNumberHistoryRAMTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63ycle_number\x18\x02 \x01(\x03\x12\x1a\n\x12pretrigger_samples\x18\x03 \x01(\x11\"?\n-ConfigureCycleNumberHistoryRAMTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"o\n-ConfigureFirstFailureHistoryRAMTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12pretrigger_samples\x18\x02 \x01(\x11\"@\n.ConfigureFirstFailureHistoryRAMTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x01\n)ConfigureHistoryRAMCyclesToAcquireRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12M\n\x11\x63ycles_to_acquire\x18\x02 \x01(\x0e\x32\x30.nidigitalpattern_grpc.HistoryRamCyclesToAcquireH\x00\x12\x1f\n\x15\x63ycles_to_acquire_raw\x18\x03 \x01(\x11H\x00\x42\x18\n\x16\x63ycles_to_acquire_enum\"<\n*ConfigureHistoryRAMCyclesToAcquireResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"S\n\x1fGetHistoryRAMSampleCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\"H\n GetHistoryRAMSampleCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0csample_count\x18\x02 \x01(\x03\"p\n&FetchHistoryRAMCycleInformationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\x12\x14\n\x0csample_index\x18\x03 \x01(\x03\"\xad\x01\n\'FetchHistoryRAMCycleInformationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rpattern_index\x18\x02 \x01(\x11\x12\x16\n\x0etime_set_index\x18\x03 \x01(\x11\x12\x15\n\rvector_number\x18\x04 \x01(\x03\x12\x14\n\x0c\x63ycle_number\x18\x05 \x01(\x03\x12\x16\n\x0enum_dut_cycles\x18\x06 \x01(\x11\"\x97\x01\n\"FetchHistoryRAMCyclePinDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\x12\x10\n\x08pin_list\x18\x03 \x01(\t\x12\x14\n\x0csample_index\x18\x04 \x01(\x03\x12\x17\n\x0f\x64ut_cycle_index\x18\x05 \x01(\x11\"\xa7\x02\n#FetchHistoryRAMCyclePinDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12<\n\x13\x65xpected_pin_states\x18\x02 \x03(\x0e\x32\x1f.nidigitalpattern_grpc.PinState\x12\x1f\n\x17\x65xpected_pin_states_raw\x18\x03 \x01(\x0c\x12:\n\x11\x61\x63tual_pin_states\x18\x04 \x03(\x0e\x32\x1f.nidigitalpattern_grpc.PinState\x12\x1d\n\x15\x61\x63tual_pin_states_raw\x18\x05 \x01(\x0c\x12\x19\n\x11per_pin_pass_fail\x18\x06 \x03(\x08\x12\x1b\n\x13\x61\x63tual_num_pin_data\x18\x07 \x01(\x11\"o\n%FetchHistoryRAMScanCycleNumberRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\x12\x14\n\x0csample_index\x18\x03 \x01(\x03\"S\n&FetchHistoryRAMScanCycleNumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11scan_cycle_number\x18\x02 \x01(\x03\"\xe5\x01\n#CreateSourceWaveformParallelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12@\n\x0c\x64\x61ta_mapping\x18\x04 \x01(\x0e\x32(.nidigitalpattern_grpc.SourceDataMappingH\x00\x12\x1a\n\x10\x64\x61ta_mapping_raw\x18\x05 \x01(\x11H\x00\x42\x13\n\x11\x64\x61ta_mapping_enum\"6\n$CreateSourceWaveformParallelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xda\x02\n!CreateSourceWaveformSerialRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12@\n\x0c\x64\x61ta_mapping\x18\x04 \x01(\x0e\x32(.nidigitalpattern_grpc.SourceDataMappingH\x00\x12\x1a\n\x10\x64\x61ta_mapping_raw\x18\x05 \x01(\x11H\x00\x12\x14\n\x0csample_width\x18\x06 \x01(\r\x12\x34\n\tbit_order\x18\x07 \x01(\x0e\x32\x1f.nidigitalpattern_grpc.BitOrderH\x01\x12\x17\n\rbit_order_raw\x18\x08 \x01(\x11H\x01\x42\x13\n\x11\x64\x61ta_mapping_enumB\x10\n\x0e\x62it_order_enum\"4\n\"CreateSourceWaveformSerialResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\'CreateSourceWaveformFromFileTDMSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x1a\n\x12waveform_file_path\x18\x03 \x01(\t\x12\x1b\n\x13write_waveform_data\x18\x04 \x01(\x08\":\n(CreateSourceWaveformFromFileTDMSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n&WriteSourceWaveformBroadcastU32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_data\x18\x03 \x03(\r\"9\n\'WriteSourceWaveformBroadcastU32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\'WriteSourceWaveformSiteUniqueU32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x15\n\rnum_waveforms\x18\x04 \x01(\x11\x12\x1c\n\x14samples_per_waveform\x18\x05 \x01(\x11\x12\x15\n\rwaveform_data\x18\x06 \x03(\r\":\n(WriteSourceWaveformSiteUniqueU32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x83\x01\n*WriteSourceWaveformDataFromFileTDMSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x1a\n\x12waveform_file_path\x18\x03 \x01(\t\"=\n+WriteSourceWaveformDataFromFileTDMSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n$CreateCaptureWaveformParallelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\"7\n%CreateCaptureWaveformParallelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe8\x01\n\"CreateCaptureWaveformSerialRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x14\n\x0csample_width\x18\x04 \x01(\r\x12\x34\n\tbit_order\x18\x05 \x01(\x0e\x32\x1f.nidigitalpattern_grpc.BitOrderH\x00\x12\x17\n\rbit_order_raw\x18\x06 \x01(\x11H\x00\x42\x10\n\x0e\x62it_order_enum\"5\n#CreateCaptureWaveformSerialResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x88\x01\n/CreateCaptureWaveformFromFileDigicaptureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x1a\n\x12waveform_file_path\x18\x03 \x01(\t\"B\n0CreateCaptureWaveformFromFileDigicaptureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x98\x01\n\x1e\x46\x65tchCaptureWaveformU32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x17\n\x0fsamples_to_read\x18\x04 \x01(\x11\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x82\x01\n\x1f\x46\x65tchCaptureWaveformU32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\r\x12\x1c\n\x14\x61\x63tual_num_waveforms\x18\x03 \x01(\x11\x12#\n\x1b\x61\x63tual_samples_per_waveform\x18\x04 \x01(\x11\"\xc9\x01\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x35\n\x06signal\x18\x02 \x01(\x0e\x32#.nidigitalpattern_grpc.ExportSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x05 \x01(\tB\r\n\x0bsignal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb2\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x32\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\".nidigitalpattern_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd8\x01\n1ConfigureDigitalEdgeConditionalJumpTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12trigger_identifier\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x32\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"D\n2ConfigureDigitalEdgeConditionalJumpTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"t\n2ConfigureSoftwareEdgeConditionalJumpTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12trigger_identifier\x18\x02 \x01(\t\"E\n3ConfigureSoftwareEdgeConditionalJumpTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n$DisableConditionalJumpTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12trigger_identifier\x18\x02 \x01(\t\"7\n%DisableConditionalJumpTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc2\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x39\n\x07trigger\x18\x02 \x01(\x0e\x32&.nidigitalpattern_grpc.SoftwareTriggerH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x1a\n\x12trigger_identifier\x18\x04 \x01(\tB\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n\x19WriteSequencerFlagRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04\x66lag\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\x08\",\n\x1aWriteSequencerFlagResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n%WriteSequencerFlagSynchronizedRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12(\n\x08sessions\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04\x66lag\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\x08\"8\n&WriteSequencerFlagSynchronizedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"L\n\x18ReadSequencerFlagRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04\x66lag\x18\x02 \x01(\t\":\n\x19ReadSequencerFlagResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"_\n\x1dWriteSequencerRegisterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03reg\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\x11\"0\n\x1eWriteSequencerRegisterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n\x1cReadSequencerRegisterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03reg\x18\x02 \x01(\t\">\n\x1dReadSequencerRegisterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x92\x01\n!EnableMatchFailCombinationRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12(\n\x08sessions\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\x12,\n\x0csync_session\x18\x03 \x01(\x0b\x32\x16.nidevice_grpc.Session\"4\n\"EnableMatchFailCombinationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n\x16GetSitePassFailRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"V\n\x17GetSitePassFailResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tpass_fail\x18\x02 \x03(\x08\x12\x18\n\x10\x61\x63tual_num_sites\x18\x03 \x01(\x11\"O\n\x13GetFailCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"V\n\x14GetFailCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rfailure_count\x18\x02 \x03(\x03\x12\x17\n\x0f\x61\x63tual_num_read\x18\x03 \x01(\x11\"^\n\"GetPinResultsPinInformationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x94\x01\n#GetPinResultsPinInformationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bpin_indexes\x18\x02 \x03(\x11\x12\x14\n\x0csite_numbers\x18\x03 \x03(\x11\x12\x17\n\x0f\x63hannel_indexes\x18\x04 \x03(\x11\x12\x19\n\x11\x61\x63tual_num_values\x18\x05 \x01(\x11\"\xd5\x01\n GetSiteResultsSiteNumbersRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x41\n\x10site_result_type\x18\x03 \x01(\x0e\x32%.nidigitalpattern_grpc.SiteResultTypeH\x00\x12\x1e\n\x14site_result_type_raw\x18\x04 \x01(\x11H\x00\x42\x17\n\x15site_result_type_enum\"j\n!GetSiteResultsSiteNumbersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0csite_numbers\x18\x02 \x03(\x11\x12\x1f\n\x17\x61\x63tual_num_site_numbers\x18\x03 \x01(\x11\"\x85\x01\n/FrequencyCounterConfigureMeasurementTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x18\n\x10measurement_time\x18\x03 \x01(\x01\"B\n0FrequencyCounterConfigureMeasurementTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdb\x01\n/FrequencyCounterConfigureMeasurementModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12K\n\x10measurement_mode\x18\x02 \x01(\x0e\x32/.nidigitalpattern_grpc.FrequencyMeasurementModeH\x00\x12\x1e\n\x14measurement_mode_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15measurement_mode_enum\"B\n0FrequencyCounterConfigureMeasurementModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\'FrequencyCounterMeasureFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"o\n(FrequencyCounterMeasureFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x1e\n\x16\x61\x63tual_num_frequencies\x18\x03 \x01(\x11\"V\n\x1fGetChannelNameFromStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07indices\x18\x02 \x01(\t\"A\n GetChannelNameFromStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05names\x18\x02 \x01(\t*\x8c$\n\x12NiDigitalAttribute\x12#\n\x1fNIDIGITAL_ATTRIBUTE_UNSPECIFIED\x10\x00\x12%\n\x1fNIDIGITAL_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12\x31\n+NIDIGITAL_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1f\n\x19NIDIGITAL_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\"\n\x1cNIDIGITAL_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12*\n$NIDIGITAL_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12&\n NIDIGITAL_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12+\n%NIDIGITAL_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\'\n!NIDIGITAL_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x30\n*NIDIGITAL_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12\x30\n*NIDIGITAL_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12&\n NIDIGITAL_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12\x35\n/NIDIGITAL_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12,\n&NIDIGITAL_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x36\n0NIDIGITAL_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\x31\n+NIDIGITAL_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\x30\n*NIDIGITAL_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x35\n/NIDIGITAL_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12\x42\n\n8NIDIGITAL_ATTRIBUTE_FREQUENCY_COUNTER_HYSTERESIS_ENABLED\x10\x85\x99\x46\x12\x37\n1NIDIGITAL_ATTRIBUTE_TIMING_ABSOLUTE_DELAY_ENABLED\x10\xf7\x98\x46\x12/\n)NIDIGITAL_ATTRIBUTE_TIMING_ABSOLUTE_DELAY\x10\xf8\x98\x46\x12\x33\n-NIDIGITAL_ATTRIBUTE_CLOCK_GENERATOR_FREQUENCY\x10\xf9\x98\x46\x12\x34\n.NIDIGITAL_ATTRIBUTE_CLOCK_GENERATOR_IS_RUNNING\x10\xfa\x98\x46\x12;\n5NIDIGITAL_ATTRIBUTE_PPMU_ALLOW_EXTENDED_VOLTAGE_RANGE\x10\xfc\x98\x46\x12\x45\n?NIDIGITAL_ATTRIBUTE_HISTORY_RAM_MAX_SAMPLES_TO_ACQUIRE_PER_SITE\x10\xfd\x98\x46\x12\x41\n;NIDIGITAL_ATTRIBUTE_HISTORY_RAM_NUMBER_OF_SAMPLES_IS_FINITE\x10\xfe\x98\x46\x12:\n4NIDIGITAL_ATTRIBUTE_HISTORY_RAM_BUFFER_SIZE_PER_SITE\x10\xff\x98\x46\x12\x37\n1NIDIGITAL_ATTRIBUTE_CONDITIONAL_JUMP_TRIGGER_TYPE\x10\xd1\x98\x46\x12\x46\n@NIDIGITAL_ATTRIBUTE_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_SOURCE\x10\xd2\x98\x46\x12\x44\n>NIDIGITAL_ATTRIBUTE_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_EDGE\x10\xd3\x98\x46\x12K\nENIDIGITAL_ATTRIBUTE_EXPORTED_CONDITIONAL_JUMP_TRIGGER_OUTPUT_TERMINAL\x10\xd4\x98\x46\x12@\n:NIDIGITAL_ATTRIBUTE_CONDITIONAL_JUMP_TRIGGER_TERMINAL_NAME\x10\xd8\x98\x46*v\n\x15PpmuApertureTimeUnits\x12(\n$PPMU_APERTURE_TIME_UNITS_UNSPECIFIED\x10\x00\x12\x33\n.PPMU_APERTURE_TIME_UNITS_NIDIGITAL_VAL_SECONDS\x10\xb4\x10*u\n\x08\x42itOrder\x12\x19\n\x15\x42IT_ORDER_UNSPECIFIED\x10\x00\x12&\n!BIT_ORDER_NIDIGITAL_VAL_MSB_FIRST\x10\xc4\x13\x12&\n!BIT_ORDER_NIDIGITAL_VAL_LSB_FIRST\x10\xc5\x13*\x86\x01\n\x0b\x44igitalEdge\x12\x1c\n\x18\x44IGITAL_EDGE_UNSPECIFIED\x10\x00\x12+\n&DIGITAL_EDGE_NIDIGITAL_VAL_RISING_EDGE\x10\x88\x0e\x12,\n\'DIGITAL_EDGE_NIDIGITAL_VAL_FALLING_EDGE\x10\x89\x0e*\x84\x03\n\x08PinState\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_0\x10\x00\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_1\x10\x01\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_L\x10\x03\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_H\x10\x04\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_X\x10\x05\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_M\x10\x06\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_V\x10\x07\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_D\x10\x08\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_E\x10\t\x12,\n\'PIN_STATE_NIDIGITAL_VAL_NOT_A_PIN_STATE\x10\xfe\x01\x12\x33\n.PIN_STATE_NIDIGITAL_VAL_PIN_STATE_NOT_ACQUIRED\x10\xff\x01*\xbc\x01\n\x0b\x44riveFormat\x12\x1c\n\x18\x44RIVE_FORMAT_UNSPECIFIED\x10\x00\x12\"\n\x1d\x44RIVE_FORMAT_NIDIGITAL_VAL_NR\x10\xdc\x0b\x12\"\n\x1d\x44RIVE_FORMAT_NIDIGITAL_VAL_RL\x10\xdd\x0b\x12\"\n\x1d\x44RIVE_FORMAT_NIDIGITAL_VAL_RH\x10\xde\x0b\x12#\n\x1e\x44RIVE_FORMAT_NIDIGITAL_VAL_SBC\x10\xdf\x0b*\xc7\x01\n\x19HistoryRamCyclesToAcquire\x12-\n)HISTORY_RAM_CYCLES_TO_ACQUIRE_UNSPECIFIED\x10\x00\x12>\n9HISTORY_RAM_CYCLES_TO_ACQUIRE_NIDIGITAL_VAL_FAILED_CYCLES\x10\xff\x11\x12;\n6HISTORY_RAM_CYCLES_TO_ACQUIRE_NIDIGITAL_VAL_ALL_CYCLES\x10\x80\x12*\x88\x01\n\x18PpmuCurrentLimitBehavior\x12+\n\'PPMU_CURRENT_LIMIT_BEHAVIOR_UNSPECIFIED\x10\x00\x12?\n:PPMU_CURRENT_LIMIT_BEHAVIOR_NIDIGITAL_VAL_CURRENT_REGULATE\x10\x9c\x18*\xb0\x01\n\x13PpmuMeasurementType\x12%\n!PPMU_MEASUREMENT_TYPE_UNSPECIFIED\x10\x00\x12\x38\n3PPMU_MEASUREMENT_TYPE_NIDIGITAL_VAL_MEASURE_CURRENT\x10\xe0\x12\x12\x38\n3PPMU_MEASUREMENT_TYPE_NIDIGITAL_VAL_MEASURE_VOLTAGE\x10\xe1\x12*\xa2\x01\n\x12PpmuOutputFunction\x12$\n PPMU_OUTPUT_FUNCTION_UNSPECIFIED\x10\x00\x12\x32\n-PPMU_OUTPUT_FUNCTION_NIDIGITAL_VAL_DC_VOLTAGE\x10\x94\n\x12\x32\n-PPMU_OUTPUT_FUNCTION_NIDIGITAL_VAL_DC_CURRENT\x10\x95\n*\x93\x02\n\x10SelectedFunction\x12!\n\x1dSELECTED_FUNCTION_UNSPECIFIED\x10\x00\x12,\n\'SELECTED_FUNCTION_NIDIGITAL_VAL_DIGITAL\x10\xcc\x08\x12)\n$SELECTED_FUNCTION_NIDIGITAL_VAL_PPMU\x10\xcd\x08\x12(\n#SELECTED_FUNCTION_NIDIGITAL_VAL_OFF\x10\xce\x08\x12/\n*SELECTED_FUNCTION_NIDIGITAL_VAL_DISCONNECT\x10\xcf\x08\x12(\n#SELECTED_FUNCTION_NIDIGITAL_VAL_RIO\x10\xd0\x08*\xa7\x02\n\x0c\x45xportSignal\x12\x1d\n\x19\x45XPORT_SIGNAL_UNSPECIFIED\x10\x00\x12.\n)EXPORT_SIGNAL_NIDIGITAL_VAL_START_TRIGGER\x10\xd0\x0f\x12\x39\n4EXPORT_SIGNAL_NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER\x10\xd1\x0f\x12\x35\n0EXPORT_SIGNAL_NIDIGITAL_VAL_PATTERN_OPCODE_EVENT\x10\xd2\x0f\x12*\n%EXPORT_SIGNAL_NIDIGITAL_VAL_REF_CLOCK\x10\xd3\x0f\x12*\n%EXPORT_SIGNAL_NIDIGITAL_VAL_RIO_EVENT\x10\xd4\x0f*\x97\x01\n\x0eSiteResultType\x12 \n\x1cSITE_RESULT_TYPE_UNSPECIFIED\x10\x00\x12-\n(SITE_RESULT_TYPE_NIDIGITAL_VAL_PASS_FAIL\x10\xe4\x19\x12\x34\n/SITE_RESULT_TYPE_NIDIGITAL_VAL_CAPTURE_WAVEFORM\x10\xe5\x19*\xa4\x01\n\x0fSoftwareTrigger\x12 \n\x1cSOFTWARE_TRIGGER_UNSPECIFIED\x10\x00\x12\x31\n,SOFTWARE_TRIGGER_NIDIGITAL_VAL_START_TRIGGER\x10\xd0\x0f\x12<\n7SOFTWARE_TRIGGER_NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER\x10\xd1\x0f*\x9e\x01\n\x11SourceDataMapping\x12#\n\x1fSOURCE_DATA_MAPPING_UNSPECIFIED\x10\x00\x12\x30\n+SOURCE_DATA_MAPPING_NIDIGITAL_VAL_BROADCAST\x10\xa8\x14\x12\x32\n-SOURCE_DATA_MAPPING_NIDIGITAL_VAL_SITE_UNIQUE\x10\xa9\x14*\xbb\x01\n\x0fTerminationMode\x12 \n\x1cTERMINATION_MODE_UNSPECIFIED\x10\x00\x12/\n*TERMINATION_MODE_NIDIGITAL_VAL_ACTIVE_LOAD\x10\xb0\t\x12)\n$TERMINATION_MODE_NIDIGITAL_VAL_VTERM\x10\xb1\t\x12*\n%TERMINATION_MODE_NIDIGITAL_VAL_HIGH_Z\x10\xb2\t*\xd1\x03\n\x0fTimeSetEdgeType\x12\"\n\x1eTIME_SET_EDGE_TYPE_UNSPECIFIED\x10\x00\x12.\n)TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_ON\x10\xf0\x15\x12\x30\n+TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_DATA\x10\xf1\x15\x12\x32\n-TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_RETURN\x10\xf2\x15\x12/\n*TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_OFF\x10\xf3\x15\x12\x34\n/TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_COMPARE_STROBE\x10\xf4\x15\x12\x31\n,TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_DATA2\x10\xf5\x15\x12\x33\n.TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_RETURN2\x10\xf6\x15\x12\x35\n0TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_COMPARE_STROBE2\x10\xf7\x15*\xb4\x01\n\x18\x46requencyMeasurementMode\x12*\n&FREQUENCY_MEASUREMENT_MODE_UNSPECIFIED\x10\x00\x12\x34\n/FREQUENCY_MEASUREMENT_MODE_NIDIGITAL_VAL_BANKED\x10\xf4\x1c\x12\x36\n1FREQUENCY_MEASUREMENT_MODE_NIDIGITAL_VAL_PARALLEL\x10\xf5\x1c*\x99\x01\n\x13WriteStaticPinState\x12*\n&WRITE_STATIC_PIN_STATE_NIDIGITAL_VAL_0\x10\x00\x12*\n&WRITE_STATIC_PIN_STATE_NIDIGITAL_VAL_1\x10\x01\x12*\n&WRITE_STATIC_PIN_STATE_NIDIGITAL_VAL_X\x10\x05*\xf3\x0c\n\x1dNiDigitalInt32AttributeValues\x12\x1f\n\x1bNIDIGITAL_INT32_UNSPECIFIED\x10\x00\x12\x31\n,NIDIGITAL_INT32_DIGITAL_EDGE_VAL_RISING_EDGE\x10\x88\x0e\x12\x32\n-NIDIGITAL_INT32_DIGITAL_EDGE_VAL_FALLING_EDGE\x10\x89\x0e\x12:\n5NIDIGITAL_INT32_FREQUENCY_MEASUREMENT_MODE_VAL_BANKED\x10\xf4\x1c\x12<\n7NIDIGITAL_INT32_FREQUENCY_MEASUREMENT_MODE_VAL_PARALLEL\x10\xf5\x1c\x12\x44\n?NIDIGITAL_INT32_HISTORY_RAM_CYCLES_TO_ACQUIRE_VAL_FAILED_CYCLES\x10\xff\x11\x12\x41\n\n9NIDIGITAL_INT32_HISTORY_RAM_TRIGGER_TYPE_VAL_CYCLE_NUMBER\x10\x99\x11\x12?\n:NIDIGITAL_INT32_HISTORY_RAM_TRIGGER_TYPE_VAL_PATTERN_LABEL\x10\x9a\x11\x12\x39\n4NIDIGITAL_INT32_PPMU_APERTURE_TIME_UNITS_VAL_SECONDS\x10\xb4\x10\x12\x45\n@NIDIGITAL_INT32_PPMU_CURRENT_LIMIT_BEHAVIOR_VAL_CURRENT_REGULATE\x10\x9c\x18\x12\x38\n3NIDIGITAL_INT32_PPMU_OUTPUT_FUNCTION_VAL_DC_VOLTAGE\x10\x94\n\x12\x38\n3NIDIGITAL_INT32_PPMU_OUTPUT_FUNCTION_VAL_DC_CURRENT\x10\x95\n\x12\x32\n-NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_DIGITAL\x10\xcc\x08\x12/\n*NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_PPMU\x10\xcd\x08\x12.\n)NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_OFF\x10\xce\x08\x12\x35\n0NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_DISCONNECT\x10\xcf\x08\x12.\n)NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_RIO\x10\xd0\x08\x12=\n8NIDIGITAL_INT32_TDR_ENDPOINT_TERMINATION_VAL_TDR_TO_OPEN\x10\x90\x1c\x12H\nCNIDIGITAL_INT32_TDR_ENDPOINT_TERMINATION_VAL_TDR_TO_SHORT_TO_GROUND\x10\x91\x1c\x12\x35\n0NIDIGITAL_INT32_TERMINATION_MODE_VAL_ACTIVE_LOAD\x10\xb0\t\x12/\n*NIDIGITAL_INT32_TERMINATION_MODE_VAL_VTERM\x10\xb1\t\x12\x30\n+NIDIGITAL_INT32_TERMINATION_MODE_VAL_HIGH_Z\x10\xb2\t\x12*\n%NIDIGITAL_INT32_TRIGGER_TYPE_VAL_NONE\x10\xa4\r\x12\x32\n-NIDIGITAL_INT32_TRIGGER_TYPE_VAL_DIGITAL_EDGE\x10\xa5\r\x12.\n)NIDIGITAL_INT32_TRIGGER_TYPE_VAL_SOFTWARE\x10\xa6\r2\xd0\x85\x01\n\tNiDigital\x12O\n\x04Init\x12\".nidigitalpattern_grpc.InitRequest\x1a#.nidigitalpattern_grpc.InitResponse\x12p\n\x0fInitWithOptions\x12-.nidigitalpattern_grpc.InitWithOptionsRequest\x1a..nidigitalpattern_grpc.InitWithOptionsResponse\x12R\n\x05\x43lose\x12#.nidigitalpattern_grpc.CloseRequest\x1a$.nidigitalpattern_grpc.CloseResponse\x12R\n\x05Reset\x12#.nidigitalpattern_grpc.ResetRequest\x1a$.nidigitalpattern_grpc.ResetResponse\x12\x64\n\x0bResetDevice\x12).nidigitalpattern_grpc.ResetDeviceRequest\x1a*.nidigitalpattern_grpc.ResetDeviceResponse\x12[\n\x08SelfTest\x12&.nidigitalpattern_grpc.SelfTestRequest\x1a\'.nidigitalpattern_grpc.SelfTestResponse\x12[\n\x08GetError\x12&.nidigitalpattern_grpc.GetErrorRequest\x1a\'.nidigitalpattern_grpc.GetErrorResponse\x12\x61\n\nClearError\x12(.nidigitalpattern_grpc.ClearErrorRequest\x1a).nidigitalpattern_grpc.ClearErrorResponse\x12g\n\x0c\x45rrorMessage\x12*.nidigitalpattern_grpc.ErrorMessageRequest\x1a+.nidigitalpattern_grpc.ErrorMessageResponse\x12j\n\rSelfCalibrate\x12+.nidigitalpattern_grpc.SelfCalibrateRequest\x1a,.nidigitalpattern_grpc.SelfCalibrateResponse\x12|\n\x13GetAttributeViInt32\x12\x31.nidigitalpattern_grpc.GetAttributeViInt32Request\x1a\x32.nidigitalpattern_grpc.GetAttributeViInt32Response\x12|\n\x13GetAttributeViInt64\x12\x31.nidigitalpattern_grpc.GetAttributeViInt64Request\x1a\x32.nidigitalpattern_grpc.GetAttributeViInt64Response\x12\x7f\n\x14GetAttributeViReal64\x12\x32.nidigitalpattern_grpc.GetAttributeViReal64Request\x1a\x33.nidigitalpattern_grpc.GetAttributeViReal64Response\x12\x7f\n\x14GetAttributeViString\x12\x32.nidigitalpattern_grpc.GetAttributeViStringRequest\x1a\x33.nidigitalpattern_grpc.GetAttributeViStringResponse\x12\x82\x01\n\x15GetAttributeViSession\x12\x33.nidigitalpattern_grpc.GetAttributeViSessionRequest\x1a\x34.nidigitalpattern_grpc.GetAttributeViSessionResponse\x12\x82\x01\n\x15GetAttributeViBoolean\x12\x33.nidigitalpattern_grpc.GetAttributeViBooleanRequest\x1a\x34.nidigitalpattern_grpc.GetAttributeViBooleanResponse\x12|\n\x13SetAttributeViInt32\x12\x31.nidigitalpattern_grpc.SetAttributeViInt32Request\x1a\x32.nidigitalpattern_grpc.SetAttributeViInt32Response\x12|\n\x13SetAttributeViInt64\x12\x31.nidigitalpattern_grpc.SetAttributeViInt64Request\x1a\x32.nidigitalpattern_grpc.SetAttributeViInt64Response\x12\x7f\n\x14SetAttributeViReal64\x12\x32.nidigitalpattern_grpc.SetAttributeViReal64Request\x1a\x33.nidigitalpattern_grpc.SetAttributeViReal64Response\x12\x7f\n\x14SetAttributeViString\x12\x32.nidigitalpattern_grpc.SetAttributeViStringRequest\x1a\x33.nidigitalpattern_grpc.SetAttributeViStringResponse\x12\x82\x01\n\x15SetAttributeViSession\x12\x33.nidigitalpattern_grpc.SetAttributeViSessionRequest\x1a\x34.nidigitalpattern_grpc.SetAttributeViSessionResponse\x12\x82\x01\n\x15SetAttributeViBoolean\x12\x33.nidigitalpattern_grpc.SetAttributeViBooleanRequest\x1a\x34.nidigitalpattern_grpc.SetAttributeViBooleanResponse\x12m\n\x0eResetAttribute\x12,.nidigitalpattern_grpc.ResetAttributeRequest\x1a-.nidigitalpattern_grpc.ResetAttributeResponse\x12\x61\n\nLoadPinMap\x12(.nidigitalpattern_grpc.LoadPinMapRequest\x1a).nidigitalpattern_grpc.LoadPinMapResponse\x12\x64\n\x0b\x45nableSites\x12).nidigitalpattern_grpc.EnableSitesRequest\x1a*.nidigitalpattern_grpc.EnableSitesResponse\x12g\n\x0c\x44isableSites\x12*.nidigitalpattern_grpc.DisableSitesRequest\x1a+.nidigitalpattern_grpc.DisableSitesResponse\x12j\n\rIsSiteEnabled\x12+.nidigitalpattern_grpc.IsSiteEnabledRequest\x1a,.nidigitalpattern_grpc.IsSiteEnabledResponse\x12g\n\x0c\x43reatePinMap\x12*.nidigitalpattern_grpc.CreatePinMapRequest\x1a+.nidigitalpattern_grpc.CreatePinMapResponse\x12m\n\x0e\x43reatePinGroup\x12,.nidigitalpattern_grpc.CreatePinGroupRequest\x1a-.nidigitalpattern_grpc.CreatePinGroupResponse\x12s\n\x10\x43reateChannelMap\x12..nidigitalpattern_grpc.CreateChannelMapRequest\x1a/.nidigitalpattern_grpc.CreateChannelMapResponse\x12p\n\x0fMapPinToChannel\x12-.nidigitalpattern_grpc.MapPinToChannelRequest\x1a..nidigitalpattern_grpc.MapPinToChannelResponse\x12j\n\rEndChannelMap\x12+.nidigitalpattern_grpc.EndChannelMapRequest\x1a,.nidigitalpattern_grpc.EndChannelMapResponse\x12\x61\n\nGetPinName\x12(.nidigitalpattern_grpc.GetPinNameRequest\x1a).nidigitalpattern_grpc.GetPinNameResponse\x12m\n\x0eGetChannelName\x12,.nidigitalpattern_grpc.GetChannelNameRequest\x1a-.nidigitalpattern_grpc.GetChannelNameResponse\x12m\n\x0eSelectFunction\x12,.nidigitalpattern_grpc.SelectFunctionRequest\x1a-.nidigitalpattern_grpc.SelectFunctionResponse\x12\x61\n\nReadStatic\x12(.nidigitalpattern_grpc.ReadStaticRequest\x1a).nidigitalpattern_grpc.ReadStaticResponse\x12\x64\n\x0bWriteStatic\x12).nidigitalpattern_grpc.WriteStaticRequest\x1a*.nidigitalpattern_grpc.WriteStaticResponse\x12\x94\x01\n\x1b\x43lockGeneratorGenerateClock\x12\x39.nidigitalpattern_grpc.ClockGeneratorGenerateClockRequest\x1a:.nidigitalpattern_grpc.ClockGeneratorGenerateClockResponse\x12\x85\x01\n\x16\x43lockGeneratorInitiate\x12\x34.nidigitalpattern_grpc.ClockGeneratorInitiateRequest\x1a\x35.nidigitalpattern_grpc.ClockGeneratorInitiateResponse\x12|\n\x13\x43lockGeneratorAbort\x12\x31.nidigitalpattern_grpc.ClockGeneratorAbortRequest\x1a\x32.nidigitalpattern_grpc.ClockGeneratorAbortResponse\x12y\n\x12LoadSpecifications\x12\x30.nidigitalpattern_grpc.LoadSpecificationsRequest\x1a\x31.nidigitalpattern_grpc.LoadSpecificationsResponse\x12\x7f\n\x14UnloadSpecifications\x12\x32.nidigitalpattern_grpc.UnloadSpecificationsRequest\x1a\x33.nidigitalpattern_grpc.UnloadSpecificationsResponse\x12\x61\n\nLoadLevels\x12(.nidigitalpattern_grpc.LoadLevelsRequest\x1a).nidigitalpattern_grpc.LoadLevelsResponse\x12\x61\n\nLoadTiming\x12(.nidigitalpattern_grpc.LoadTimingRequest\x1a).nidigitalpattern_grpc.LoadTimingResponse\x12\x7f\n\x14\x41pplyLevelsAndTiming\x12\x32.nidigitalpattern_grpc.ApplyLevelsAndTimingRequest\x1a\x33.nidigitalpattern_grpc.ApplyLevelsAndTimingResponse\x12\x85\x01\n\x16\x43onfigureVoltageLevels\x12\x34.nidigitalpattern_grpc.ConfigureVoltageLevelsRequest\x1a\x35.nidigitalpattern_grpc.ConfigureVoltageLevelsResponse\x12\x8e\x01\n\x19\x43onfigureActiveLoadLevels\x12\x37.nidigitalpattern_grpc.ConfigureActiveLoadLevelsRequest\x1a\x38.nidigitalpattern_grpc.ConfigureActiveLoadLevelsResponse\x12\x8b\x01\n\x18\x43onfigureTerminationMode\x12\x36.nidigitalpattern_grpc.ConfigureTerminationModeRequest\x1a\x37.nidigitalpattern_grpc.ConfigureTerminationModeResponse\x12j\n\rCreateTimeSet\x12+.nidigitalpattern_grpc.CreateTimeSetRequest\x1a,.nidigitalpattern_grpc.CreateTimeSetResponse\x12\x85\x01\n\x16\x43onfigureTimeSetPeriod\x12\x34.nidigitalpattern_grpc.ConfigureTimeSetPeriodRequest\x1a\x35.nidigitalpattern_grpc.ConfigureTimeSetPeriodResponse\x12\x91\x01\n\x1a\x43onfigureTimeSetDriveEdges\x12\x38.nidigitalpattern_grpc.ConfigureTimeSetDriveEdgesRequest\x1a\x39.nidigitalpattern_grpc.ConfigureTimeSetDriveEdgesResponse\x12\xa9\x01\n\"ConfigureTimeSetCompareEdgesStrobe\x12@.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobeRequest\x1a\x41.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobeResponse\x12\x94\x01\n\x1b\x43onfigureTimeSetDriveFormat\x12\x39.nidigitalpattern_grpc.ConfigureTimeSetDriveFormatRequest\x1a:.nidigitalpattern_grpc.ConfigureTimeSetDriveFormatResponse\x12v\n\x11\x44\x65leteAllTimeSets\x12/.nidigitalpattern_grpc.DeleteAllTimeSetsRequest\x1a\x30.nidigitalpattern_grpc.DeleteAllTimeSetsResponse\x12\x9d\x01\n\x1e\x43onfigureTimeSetEdgeMultiplier\x12<.nidigitalpattern_grpc.ConfigureTimeSetEdgeMultiplierRequest\x1a=.nidigitalpattern_grpc.ConfigureTimeSetEdgeMultiplierResponse\x12\x97\x01\n\x1c\x43onfigureTimeSetDriveEdges2x\x12:.nidigitalpattern_grpc.ConfigureTimeSetDriveEdges2xRequest\x1a;.nidigitalpattern_grpc.ConfigureTimeSetDriveEdges2xResponse\x12\xaf\x01\n$ConfigureTimeSetCompareEdgesStrobe2x\x12\x42.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobe2xRequest\x1a\x43.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobe2xResponse\x12\x7f\n\x14\x43onfigureTimeSetEdge\x12\x32.nidigitalpattern_grpc.ConfigureTimeSetEdgeRequest\x1a\x33.nidigitalpattern_grpc.ConfigureTimeSetEdgeResponse\x12s\n\x10GetTimeSetPeriod\x12..nidigitalpattern_grpc.GetTimeSetPeriodRequest\x1a/.nidigitalpattern_grpc.GetTimeSetPeriodResponse\x12m\n\x0eGetTimeSetEdge\x12,.nidigitalpattern_grpc.GetTimeSetEdgeRequest\x1a-.nidigitalpattern_grpc.GetTimeSetEdgeResponse\x12\x8b\x01\n\x18GetTimeSetEdgeMultiplier\x12\x36.nidigitalpattern_grpc.GetTimeSetEdgeMultiplierRequest\x1a\x37.nidigitalpattern_grpc.GetTimeSetEdgeMultiplierResponse\x12\x82\x01\n\x15GetTimeSetDriveFormat\x12\x33.nidigitalpattern_grpc.GetTimeSetDriveFormatRequest\x1a\x34.nidigitalpattern_grpc.GetTimeSetDriveFormatResponse\x12m\n\x0eGetTimeSetName\x12,.nidigitalpattern_grpc.GetTimeSetNameRequest\x1a-.nidigitalpattern_grpc.GetTimeSetNameResponse\x12L\n\x03TDR\x12!.nidigitalpattern_grpc.TDRRequest\x1a\".nidigitalpattern_grpc.TDRResponse\x12p\n\x0f\x41pplyTDROffsets\x12-.nidigitalpattern_grpc.ApplyTDROffsetsRequest\x1a..nidigitalpattern_grpc.ApplyTDROffsetsResponse\x12\x94\x01\n\x1bPPMUConfigureOutputFunction\x12\x39.nidigitalpattern_grpc.PPMUConfigureOutputFunctionRequest\x1a:.nidigitalpattern_grpc.PPMUConfigureOutputFunctionResponse\x12\x8e\x01\n\x19PPMUConfigureApertureTime\x12\x37.nidigitalpattern_grpc.PPMUConfigureApertureTimeRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureApertureTimeResponse\x12\x8e\x01\n\x19PPMUConfigureVoltageLevel\x12\x37.nidigitalpattern_grpc.PPMUConfigureVoltageLevelRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureVoltageLevelResponse\x12\x8e\x01\n\x19PPMUConfigureCurrentLimit\x12\x37.nidigitalpattern_grpc.PPMUConfigureCurrentLimitRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureCurrentLimitResponse\x12\x9d\x01\n\x1ePPMUConfigureCurrentLimitRange\x12<.nidigitalpattern_grpc.PPMUConfigureCurrentLimitRangeRequest\x1a=.nidigitalpattern_grpc.PPMUConfigureCurrentLimitRangeResponse\x12\x8e\x01\n\x19PPMUConfigureCurrentLevel\x12\x37.nidigitalpattern_grpc.PPMUConfigureCurrentLevelRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureCurrentLevelResponse\x12\x9d\x01\n\x1ePPMUConfigureCurrentLevelRange\x12<.nidigitalpattern_grpc.PPMUConfigureCurrentLevelRangeRequest\x1a=.nidigitalpattern_grpc.PPMUConfigureCurrentLevelRangeResponse\x12\x91\x01\n\x1aPPMUConfigureVoltageLimits\x12\x38.nidigitalpattern_grpc.PPMUConfigureVoltageLimitsRequest\x1a\x39.nidigitalpattern_grpc.PPMUConfigureVoltageLimitsResponse\x12\x61\n\nPPMUSource\x12(.nidigitalpattern_grpc.PPMUSourceRequest\x1a).nidigitalpattern_grpc.PPMUSourceResponse\x12\x64\n\x0bPPMUMeasure\x12).nidigitalpattern_grpc.PPMUMeasureRequest\x1a*.nidigitalpattern_grpc.PPMUMeasureResponse\x12\x64\n\x0bLoadPattern\x12).nidigitalpattern_grpc.LoadPatternRequest\x1a*.nidigitalpattern_grpc.LoadPatternResponse\x12v\n\x11UnloadAllPatterns\x12/.nidigitalpattern_grpc.UnloadAllPatternsRequest\x1a\x30.nidigitalpattern_grpc.UnloadAllPatternsResponse\x12|\n\x13\x43onfigureStartLabel\x12\x31.nidigitalpattern_grpc.ConfigureStartLabelRequest\x1a\x32.nidigitalpattern_grpc.ConfigureStartLabelResponse\x12\x91\x01\n\x1a\x43onfigurePatternBurstSites\x12\x38.nidigitalpattern_grpc.ConfigurePatternBurstSitesRequest\x1a\x39.nidigitalpattern_grpc.ConfigurePatternBurstSitesResponse\x12\x7f\n\x14GetPatternPinIndexes\x12\x32.nidigitalpattern_grpc.GetPatternPinIndexesRequest\x1a\x33.nidigitalpattern_grpc.GetPatternPinIndexesResponse\x12v\n\x11GetPatternPinList\x12/.nidigitalpattern_grpc.GetPatternPinListRequest\x1a\x30.nidigitalpattern_grpc.GetPatternPinListResponse\x12m\n\x0eGetPatternName\x12,.nidigitalpattern_grpc.GetPatternNameRequest\x1a-.nidigitalpattern_grpc.GetPatternNameResponse\x12g\n\x0c\x42urstPattern\x12*.nidigitalpattern_grpc.BurstPatternRequest\x1a+.nidigitalpattern_grpc.BurstPatternResponse\x12\x8b\x01\n\x18\x42urstPatternSynchronized\x12\x36.nidigitalpattern_grpc.BurstPatternSynchronizedRequest\x1a\x37.nidigitalpattern_grpc.BurstPatternSynchronizedResponse\x12U\n\x06\x43ommit\x12$.nidigitalpattern_grpc.CommitRequest\x1a%.nidigitalpattern_grpc.CommitResponse\x12[\n\x08Initiate\x12&.nidigitalpattern_grpc.InitiateRequest\x1a\'.nidigitalpattern_grpc.InitiateResponse\x12U\n\x06IsDone\x12$.nidigitalpattern_grpc.IsDoneRequest\x1a%.nidigitalpattern_grpc.IsDoneResponse\x12j\n\rWaitUntilDone\x12+.nidigitalpattern_grpc.WaitUntilDoneRequest\x1a,.nidigitalpattern_grpc.WaitUntilDoneResponse\x12R\n\x05\x41\x62ort\x12#.nidigitalpattern_grpc.AbortRequest\x1a$.nidigitalpattern_grpc.AbortResponse\x12m\n\x0e\x41\x62ortKeepAlive\x12,.nidigitalpattern_grpc.AbortKeepAliveRequest\x1a-.nidigitalpattern_grpc.AbortKeepAliveResponse\x12\xb5\x01\n&ConfigurePatternLabelHistoryRAMTrigger\x12\x44.nidigitalpattern_grpc.ConfigurePatternLabelHistoryRAMTriggerRequest\x1a\x45.nidigitalpattern_grpc.ConfigurePatternLabelHistoryRAMTriggerResponse\x12\xb2\x01\n%ConfigureCycleNumberHistoryRAMTrigger\x12\x43.nidigitalpattern_grpc.ConfigureCycleNumberHistoryRAMTriggerRequest\x1a\x44.nidigitalpattern_grpc.ConfigureCycleNumberHistoryRAMTriggerResponse\x12\xb5\x01\n&ConfigureFirstFailureHistoryRAMTrigger\x12\x44.nidigitalpattern_grpc.ConfigureFirstFailureHistoryRAMTriggerRequest\x1a\x45.nidigitalpattern_grpc.ConfigureFirstFailureHistoryRAMTriggerResponse\x12\xa9\x01\n\"ConfigureHistoryRAMCyclesToAcquire\x12@.nidigitalpattern_grpc.ConfigureHistoryRAMCyclesToAcquireRequest\x1a\x41.nidigitalpattern_grpc.ConfigureHistoryRAMCyclesToAcquireResponse\x12\x8b\x01\n\x18GetHistoryRAMSampleCount\x12\x36.nidigitalpattern_grpc.GetHistoryRAMSampleCountRequest\x1a\x37.nidigitalpattern_grpc.GetHistoryRAMSampleCountResponse\x12\xa0\x01\n\x1f\x46\x65tchHistoryRAMCycleInformation\x12=.nidigitalpattern_grpc.FetchHistoryRAMCycleInformationRequest\x1a>.nidigitalpattern_grpc.FetchHistoryRAMCycleInformationResponse\x12\x94\x01\n\x1b\x46\x65tchHistoryRAMCyclePinData\x12\x39.nidigitalpattern_grpc.FetchHistoryRAMCyclePinDataRequest\x1a:.nidigitalpattern_grpc.FetchHistoryRAMCyclePinDataResponse\x12\x9d\x01\n\x1e\x46\x65tchHistoryRAMScanCycleNumber\x12<.nidigitalpattern_grpc.FetchHistoryRAMScanCycleNumberRequest\x1a=.nidigitalpattern_grpc.FetchHistoryRAMScanCycleNumberResponse\x12\x97\x01\n\x1c\x43reateSourceWaveformParallel\x12:.nidigitalpattern_grpc.CreateSourceWaveformParallelRequest\x1a;.nidigitalpattern_grpc.CreateSourceWaveformParallelResponse\x12\x91\x01\n\x1a\x43reateSourceWaveformSerial\x12\x38.nidigitalpattern_grpc.CreateSourceWaveformSerialRequest\x1a\x39.nidigitalpattern_grpc.CreateSourceWaveformSerialResponse\x12\xa3\x01\n CreateSourceWaveformFromFileTDMS\x12>.nidigitalpattern_grpc.CreateSourceWaveformFromFileTDMSRequest\x1a?.nidigitalpattern_grpc.CreateSourceWaveformFromFileTDMSResponse\x12\xa0\x01\n\x1fWriteSourceWaveformBroadcastU32\x12=.nidigitalpattern_grpc.WriteSourceWaveformBroadcastU32Request\x1a>.nidigitalpattern_grpc.WriteSourceWaveformBroadcastU32Response\x12\xa3\x01\n WriteSourceWaveformSiteUniqueU32\x12>.nidigitalpattern_grpc.WriteSourceWaveformSiteUniqueU32Request\x1a?.nidigitalpattern_grpc.WriteSourceWaveformSiteUniqueU32Response\x12\xac\x01\n#WriteSourceWaveformDataFromFileTDMS\x12\x41.nidigitalpattern_grpc.WriteSourceWaveformDataFromFileTDMSRequest\x1a\x42.nidigitalpattern_grpc.WriteSourceWaveformDataFromFileTDMSResponse\x12\x9a\x01\n\x1d\x43reateCaptureWaveformParallel\x12;.nidigitalpattern_grpc.CreateCaptureWaveformParallelRequest\x1a<.nidigitalpattern_grpc.CreateCaptureWaveformParallelResponse\x12\x94\x01\n\x1b\x43reateCaptureWaveformSerial\x12\x39.nidigitalpattern_grpc.CreateCaptureWaveformSerialRequest\x1a:.nidigitalpattern_grpc.CreateCaptureWaveformSerialResponse\x12\xbb\x01\n(CreateCaptureWaveformFromFileDigicapture\x12\x46.nidigitalpattern_grpc.CreateCaptureWaveformFromFileDigicaptureRequest\x1aG.nidigitalpattern_grpc.CreateCaptureWaveformFromFileDigicaptureResponse\x12\x88\x01\n\x17\x46\x65tchCaptureWaveformU32\x12\x35.nidigitalpattern_grpc.FetchCaptureWaveformU32Request\x1a\x36.nidigitalpattern_grpc.FetchCaptureWaveformU32Response\x12g\n\x0c\x45xportSignal\x12*.nidigitalpattern_grpc.ExportSignalRequest\x1a+.nidigitalpattern_grpc.ExportSignalResponse\x12\xa3\x01\n ConfigureDigitalEdgeStartTrigger\x12>.nidigitalpattern_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a?.nidigitalpattern_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\xa6\x01\n!ConfigureSoftwareEdgeStartTrigger\x12?.nidigitalpattern_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a@.nidigitalpattern_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12|\n\x13\x44isableStartTrigger\x12\x31.nidigitalpattern_grpc.DisableStartTriggerRequest\x1a\x32.nidigitalpattern_grpc.DisableStartTriggerResponse\x12\xc1\x01\n*ConfigureDigitalEdgeConditionalJumpTrigger\x12H.nidigitalpattern_grpc.ConfigureDigitalEdgeConditionalJumpTriggerRequest\x1aI.nidigitalpattern_grpc.ConfigureDigitalEdgeConditionalJumpTriggerResponse\x12\xc4\x01\n+ConfigureSoftwareEdgeConditionalJumpTrigger\x12I.nidigitalpattern_grpc.ConfigureSoftwareEdgeConditionalJumpTriggerRequest\x1aJ.nidigitalpattern_grpc.ConfigureSoftwareEdgeConditionalJumpTriggerResponse\x12\x9a\x01\n\x1d\x44isableConditionalJumpTrigger\x12;.nidigitalpattern_grpc.DisableConditionalJumpTriggerRequest\x1a<.nidigitalpattern_grpc.DisableConditionalJumpTriggerResponse\x12\x88\x01\n\x17SendSoftwareEdgeTrigger\x12\x35.nidigitalpattern_grpc.SendSoftwareEdgeTriggerRequest\x1a\x36.nidigitalpattern_grpc.SendSoftwareEdgeTriggerResponse\x12y\n\x12WriteSequencerFlag\x12\x30.nidigitalpattern_grpc.WriteSequencerFlagRequest\x1a\x31.nidigitalpattern_grpc.WriteSequencerFlagResponse\x12\x9d\x01\n\x1eWriteSequencerFlagSynchronized\x12<.nidigitalpattern_grpc.WriteSequencerFlagSynchronizedRequest\x1a=.nidigitalpattern_grpc.WriteSequencerFlagSynchronizedResponse\x12v\n\x11ReadSequencerFlag\x12/.nidigitalpattern_grpc.ReadSequencerFlagRequest\x1a\x30.nidigitalpattern_grpc.ReadSequencerFlagResponse\x12\x85\x01\n\x16WriteSequencerRegister\x12\x34.nidigitalpattern_grpc.WriteSequencerRegisterRequest\x1a\x35.nidigitalpattern_grpc.WriteSequencerRegisterResponse\x12\x82\x01\n\x15ReadSequencerRegister\x12\x33.nidigitalpattern_grpc.ReadSequencerRegisterRequest\x1a\x34.nidigitalpattern_grpc.ReadSequencerRegisterResponse\x12\x91\x01\n\x1a\x45nableMatchFailCombination\x12\x38.nidigitalpattern_grpc.EnableMatchFailCombinationRequest\x1a\x39.nidigitalpattern_grpc.EnableMatchFailCombinationResponse\x12p\n\x0fGetSitePassFail\x12-.nidigitalpattern_grpc.GetSitePassFailRequest\x1a..nidigitalpattern_grpc.GetSitePassFailResponse\x12g\n\x0cGetFailCount\x12*.nidigitalpattern_grpc.GetFailCountRequest\x1a+.nidigitalpattern_grpc.GetFailCountResponse\x12\x94\x01\n\x1bGetPinResultsPinInformation\x12\x39.nidigitalpattern_grpc.GetPinResultsPinInformationRequest\x1a:.nidigitalpattern_grpc.GetPinResultsPinInformationResponse\x12\x8e\x01\n\x19GetSiteResultsSiteNumbers\x12\x37.nidigitalpattern_grpc.GetSiteResultsSiteNumbersRequest\x1a\x38.nidigitalpattern_grpc.GetSiteResultsSiteNumbersResponse\x12\xbb\x01\n(FrequencyCounterConfigureMeasurementTime\x12\x46.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementTimeRequest\x1aG.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementTimeResponse\x12\xbb\x01\n(FrequencyCounterConfigureMeasurementMode\x12\x46.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementModeRequest\x1aG.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementModeResponse\x12\xa3\x01\n FrequencyCounterMeasureFrequency\x12>.nidigitalpattern_grpc.FrequencyCounterMeasureFrequencyRequest\x1a?.nidigitalpattern_grpc.FrequencyCounterMeasureFrequencyResponse\x12\x8b\x01\n\x18GetChannelNameFromString\x12\x36.nidigitalpattern_grpc.GetChannelNameFromStringRequest\x1a\x37.nidigitalpattern_grpc.GetChannelNameFromStringResponseBG\n\x15\x63om.ni.grpc.nidigitalB\tNiDigitalP\x01\xaa\x02 NationalInstruments.Grpc.Digitalb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidigitalpattern_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\025com.ni.grpc.nidigitalB\tNiDigitalP\001\252\002 NationalInstruments.Grpc.Digital' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NIDIGITALATTRIBUTE']._serialized_start=25129 - _globals['_NIDIGITALATTRIBUTE']._serialized_end=29749 - _globals['_PPMUAPERTURETIMEUNITS']._serialized_start=29751 - _globals['_PPMUAPERTURETIMEUNITS']._serialized_end=29869 - _globals['_BITORDER']._serialized_start=29871 - _globals['_BITORDER']._serialized_end=29988 - _globals['_DIGITALEDGE']._serialized_start=29991 - _globals['_DIGITALEDGE']._serialized_end=30125 - _globals['_PINSTATE']._serialized_start=30128 - _globals['_PINSTATE']._serialized_end=30516 - _globals['_DRIVEFORMAT']._serialized_start=30519 - _globals['_DRIVEFORMAT']._serialized_end=30707 - _globals['_HISTORYRAMCYCLESTOACQUIRE']._serialized_start=30710 - _globals['_HISTORYRAMCYCLESTOACQUIRE']._serialized_end=30909 - _globals['_PPMUCURRENTLIMITBEHAVIOR']._serialized_start=30912 - _globals['_PPMUCURRENTLIMITBEHAVIOR']._serialized_end=31048 - _globals['_PPMUMEASUREMENTTYPE']._serialized_start=31051 - _globals['_PPMUMEASUREMENTTYPE']._serialized_end=31227 - _globals['_PPMUOUTPUTFUNCTION']._serialized_start=31230 - _globals['_PPMUOUTPUTFUNCTION']._serialized_end=31392 - _globals['_SELECTEDFUNCTION']._serialized_start=31395 - _globals['_SELECTEDFUNCTION']._serialized_end=31670 - _globals['_EXPORTSIGNAL']._serialized_start=31673 - _globals['_EXPORTSIGNAL']._serialized_end=31968 - _globals['_SITERESULTTYPE']._serialized_start=31971 - _globals['_SITERESULTTYPE']._serialized_end=32122 - _globals['_SOFTWARETRIGGER']._serialized_start=32125 - _globals['_SOFTWARETRIGGER']._serialized_end=32289 - _globals['_SOURCEDATAMAPPING']._serialized_start=32292 - _globals['_SOURCEDATAMAPPING']._serialized_end=32450 - _globals['_TERMINATIONMODE']._serialized_start=32453 - _globals['_TERMINATIONMODE']._serialized_end=32640 - _globals['_TIMESETEDGETYPE']._serialized_start=32643 - _globals['_TIMESETEDGETYPE']._serialized_end=33108 - _globals['_FREQUENCYMEASUREMENTMODE']._serialized_start=33111 - _globals['_FREQUENCYMEASUREMENTMODE']._serialized_end=33291 - _globals['_WRITESTATICPINSTATE']._serialized_start=33294 - _globals['_WRITESTATICPINSTATE']._serialized_end=33447 - _globals['_NIDIGITALINT32ATTRIBUTEVALUES']._serialized_start=33450 - _globals['_NIDIGITALINT32ATTRIBUTEVALUES']._serialized_end=35101 - _globals['_INITREQUEST']._serialized_start=65 - _globals['_INITREQUEST']._serialized_end=242 - _globals['_INITRESPONSE']._serialized_start=244 - _globals['_INITRESPONSE']._serialized_end=370 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=373 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=584 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=587 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=724 - _globals['_CLOSEREQUEST']._serialized_start=726 - _globals['_CLOSEREQUEST']._serialized_end=776 - _globals['_CLOSERESPONSE']._serialized_start=778 - _globals['_CLOSERESPONSE']._serialized_end=809 - _globals['_RESETREQUEST']._serialized_start=811 - _globals['_RESETREQUEST']._serialized_end=861 - _globals['_RESETRESPONSE']._serialized_start=863 - _globals['_RESETRESPONSE']._serialized_end=894 - _globals['_RESETDEVICEREQUEST']._serialized_start=896 - _globals['_RESETDEVICEREQUEST']._serialized_end=952 - _globals['_RESETDEVICERESPONSE']._serialized_start=954 - _globals['_RESETDEVICERESPONSE']._serialized_end=991 - _globals['_SELFTESTREQUEST']._serialized_start=993 - _globals['_SELFTESTREQUEST']._serialized_end=1046 - _globals['_SELFTESTRESPONSE']._serialized_start=1048 - _globals['_SELFTESTRESPONSE']._serialized_end=1125 - _globals['_GETERRORREQUEST']._serialized_start=1127 - _globals['_GETERRORREQUEST']._serialized_end=1180 - _globals['_GETERRORRESPONSE']._serialized_start=1182 - _globals['_GETERRORRESPONSE']._serialized_end=1263 - _globals['_CLEARERRORREQUEST']._serialized_start=1265 - _globals['_CLEARERRORREQUEST']._serialized_end=1320 - _globals['_CLEARERRORRESPONSE']._serialized_start=1322 - _globals['_CLEARERRORRESPONSE']._serialized_end=1358 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=1360 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=1437 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=1439 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=1500 - _globals['_SELFCALIBRATEREQUEST']._serialized_start=1502 - _globals['_SELFCALIBRATEREQUEST']._serialized_end=1560 - _globals['_SELFCALIBRATERESPONSE']._serialized_start=1562 - _globals['_SELFCALIBRATERESPONSE']._serialized_end=1601 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=1604 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=1752 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=1754 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=1814 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=1817 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=1965 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=1967 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=2027 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=2030 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=2179 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=2181 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=2242 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=2245 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=2394 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=2396 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=2457 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=2460 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=2610 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=2612 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=2698 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=2701 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=2851 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=2853 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=2915 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=2918 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=3172 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=3174 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=3219 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=3222 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=3389 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=3391 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=3436 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=3439 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=3607 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=3609 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=3655 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=3658 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=3826 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=3828 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=3874 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=3877 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=4066 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=4068 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=4115 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=4118 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=4283 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=4285 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=4332 - _globals['_RESETATTRIBUTEREQUEST']._serialized_start=4335 - _globals['_RESETATTRIBUTEREQUEST']._serialized_end=4481 - _globals['_RESETATTRIBUTERESPONSE']._serialized_start=4483 - _globals['_RESETATTRIBUTERESPONSE']._serialized_end=4523 - _globals['_LOADPINMAPREQUEST']._serialized_start=4525 - _globals['_LOADPINMAPREQUEST']._serialized_end=4599 - _globals['_LOADPINMAPRESPONSE']._serialized_start=4601 - _globals['_LOADPINMAPRESPONSE']._serialized_end=4637 - _globals['_ENABLESITESREQUEST']._serialized_start=4639 - _globals['_ENABLESITESREQUEST']._serialized_end=4714 - _globals['_ENABLESITESRESPONSE']._serialized_start=4716 - _globals['_ENABLESITESRESPONSE']._serialized_end=4753 - _globals['_DISABLESITESREQUEST']._serialized_start=4755 - _globals['_DISABLESITESREQUEST']._serialized_end=4831 - _globals['_DISABLESITESRESPONSE']._serialized_start=4833 - _globals['_DISABLESITESRESPONSE']._serialized_end=4871 - _globals['_ISSITEENABLEDREQUEST']._serialized_start=4873 - _globals['_ISSITEENABLEDREQUEST']._serialized_end=4945 - _globals['_ISSITEENABLEDRESPONSE']._serialized_start=4947 - _globals['_ISSITEENABLEDRESPONSE']._serialized_end=5002 - _globals['_CREATEPINMAPREQUEST']._serialized_start=5004 - _globals['_CREATEPINMAPREQUEST']._serialized_end=5108 - _globals['_CREATEPINMAPRESPONSE']._serialized_start=5110 - _globals['_CREATEPINMAPRESPONSE']._serialized_end=5148 - _globals['_CREATEPINGROUPREQUEST']._serialized_start=5150 - _globals['_CREATEPINGROUPREQUEST']._serialized_end=5251 - _globals['_CREATEPINGROUPRESPONSE']._serialized_start=5253 - _globals['_CREATEPINGROUPRESPONSE']._serialized_end=5293 - _globals['_CREATECHANNELMAPREQUEST']._serialized_start=5295 - _globals['_CREATECHANNELMAPREQUEST']._serialized_end=5375 - _globals['_CREATECHANNELMAPRESPONSE']._serialized_start=5377 - _globals['_CREATECHANNELMAPRESPONSE']._serialized_end=5419 - _globals['_MAPPINTOCHANNELREQUEST']._serialized_start=5421 - _globals['_MAPPINTOCHANNELREQUEST']._serialized_end=5525 - _globals['_MAPPINTOCHANNELRESPONSE']._serialized_start=5527 - _globals['_MAPPINTOCHANNELRESPONSE']._serialized_end=5568 - _globals['_ENDCHANNELMAPREQUEST']._serialized_start=5570 - _globals['_ENDCHANNELMAPREQUEST']._serialized_end=5628 - _globals['_ENDCHANNELMAPRESPONSE']._serialized_start=5630 - _globals['_ENDCHANNELMAPRESPONSE']._serialized_end=5669 - _globals['_GETPINNAMEREQUEST']._serialized_start=5671 - _globals['_GETPINNAMEREQUEST']._serialized_end=5745 - _globals['_GETPINNAMERESPONSE']._serialized_start=5747 - _globals['_GETPINNAMERESPONSE']._serialized_end=5797 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=5799 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=5873 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=5875 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=5929 - _globals['_SELECTFUNCTIONREQUEST']._serialized_start=5932 - _globals['_SELECTFUNCTIONREQUEST']._serialized_end=6115 - _globals['_SELECTFUNCTIONRESPONSE']._serialized_start=6117 - _globals['_SELECTFUNCTIONRESPONSE']._serialized_end=6157 - _globals['_READSTATICREQUEST']._serialized_start=6159 - _globals['_READSTATICREQUEST']._serialized_end=6236 - _globals['_READSTATICRESPONSE']._serialized_start=6238 - _globals['_READSTATICRESPONSE']._serialized_end=6364 - _globals['_WRITESTATICREQUEST']._serialized_start=6367 - _globals['_WRITESTATICREQUEST']._serialized_end=6541 - _globals['_WRITESTATICRESPONSE']._serialized_start=6543 - _globals['_WRITESTATICRESPONSE']._serialized_end=6580 - _globals['_CLOCKGENERATORGENERATECLOCKREQUEST']._serialized_start=6583 - _globals['_CLOCKGENERATORGENERATECLOCKREQUEST']._serialized_end=6729 - _globals['_CLOCKGENERATORGENERATECLOCKRESPONSE']._serialized_start=6731 - _globals['_CLOCKGENERATORGENERATECLOCKRESPONSE']._serialized_end=6784 - _globals['_CLOCKGENERATORINITIATEREQUEST']._serialized_start=6786 - _globals['_CLOCKGENERATORINITIATEREQUEST']._serialized_end=6875 - _globals['_CLOCKGENERATORINITIATERESPONSE']._serialized_start=6877 - _globals['_CLOCKGENERATORINITIATERESPONSE']._serialized_end=6925 - _globals['_CLOCKGENERATORABORTREQUEST']._serialized_start=6927 - _globals['_CLOCKGENERATORABORTREQUEST']._serialized_end=7013 - _globals['_CLOCKGENERATORABORTRESPONSE']._serialized_start=7015 - _globals['_CLOCKGENERATORABORTRESPONSE']._serialized_end=7060 - _globals['_LOADSPECIFICATIONSREQUEST']._serialized_start=7062 - _globals['_LOADSPECIFICATIONSREQUEST']._serialized_end=7144 - _globals['_LOADSPECIFICATIONSRESPONSE']._serialized_start=7146 - _globals['_LOADSPECIFICATIONSRESPONSE']._serialized_end=7190 - _globals['_UNLOADSPECIFICATIONSREQUEST']._serialized_start=7192 - _globals['_UNLOADSPECIFICATIONSREQUEST']._serialized_end=7276 - _globals['_UNLOADSPECIFICATIONSRESPONSE']._serialized_start=7278 - _globals['_UNLOADSPECIFICATIONSRESPONSE']._serialized_end=7324 - _globals['_LOADLEVELSREQUEST']._serialized_start=7326 - _globals['_LOADLEVELSREQUEST']._serialized_end=7400 - _globals['_LOADLEVELSRESPONSE']._serialized_start=7402 - _globals['_LOADLEVELSRESPONSE']._serialized_end=7438 - _globals['_LOADTIMINGREQUEST']._serialized_start=7440 - _globals['_LOADTIMINGREQUEST']._serialized_end=7514 - _globals['_LOADTIMINGRESPONSE']._serialized_start=7516 - _globals['_LOADTIMINGRESPONSE']._serialized_end=7552 - _globals['_APPLYLEVELSANDTIMINGREQUEST']._serialized_start=7555 - _globals['_APPLYLEVELSANDTIMINGREQUEST']._serialized_end=7785 - _globals['_APPLYLEVELSANDTIMINGRESPONSE']._serialized_start=7787 - _globals['_APPLYLEVELSANDTIMINGRESPONSE']._serialized_end=7833 - _globals['_CONFIGUREVOLTAGELEVELSREQUEST']._serialized_start=7836 - _globals['_CONFIGUREVOLTAGELEVELSREQUEST']._serialized_end=7992 - _globals['_CONFIGUREVOLTAGELEVELSRESPONSE']._serialized_start=7994 - _globals['_CONFIGUREVOLTAGELEVELSRESPONSE']._serialized_end=8042 - _globals['_CONFIGUREACTIVELOADLEVELSREQUEST']._serialized_start=8045 - _globals['_CONFIGUREACTIVELOADLEVELSREQUEST']._serialized_end=8177 - _globals['_CONFIGUREACTIVELOADLEVELSRESPONSE']._serialized_start=8179 - _globals['_CONFIGUREACTIVELOADLEVELSRESPONSE']._serialized_end=8230 - _globals['_CONFIGURETERMINATIONMODEREQUEST']._serialized_start=8233 - _globals['_CONFIGURETERMINATIONMODEREQUEST']._serialized_end=8413 - _globals['_CONFIGURETERMINATIONMODERESPONSE']._serialized_start=8415 - _globals['_CONFIGURETERMINATIONMODERESPONSE']._serialized_end=8465 - _globals['_CREATETIMESETREQUEST']._serialized_start=8467 - _globals['_CREATETIMESETREQUEST']._serialized_end=8539 - _globals['_CREATETIMESETRESPONSE']._serialized_start=8541 - _globals['_CREATETIMESETRESPONSE']._serialized_end=8580 - _globals['_CONFIGURETIMESETPERIODREQUEST']._serialized_start=8582 - _globals['_CONFIGURETIMESETPERIODREQUEST']._serialized_end=8688 - _globals['_CONFIGURETIMESETPERIODRESPONSE']._serialized_start=8690 - _globals['_CONFIGURETIMESETPERIODRESPONSE']._serialized_end=8738 - _globals['_CONFIGURETIMESETDRIVEEDGESREQUEST']._serialized_start=8741 - _globals['_CONFIGURETIMESETDRIVEEDGESREQUEST']._serialized_end=9043 - _globals['_CONFIGURETIMESETDRIVEEDGESRESPONSE']._serialized_start=9045 - _globals['_CONFIGURETIMESETDRIVEEDGESRESPONSE']._serialized_end=9097 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBEREQUEST']._serialized_start=9100 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBEREQUEST']._serialized_end=9241 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBERESPONSE']._serialized_start=9243 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBERESPONSE']._serialized_end=9303 - _globals['_CONFIGURETIMESETDRIVEFORMATREQUEST']._serialized_start=9306 - _globals['_CONFIGURETIMESETDRIVEFORMATREQUEST']._serialized_end=9528 - _globals['_CONFIGURETIMESETDRIVEFORMATRESPONSE']._serialized_start=9530 - _globals['_CONFIGURETIMESETDRIVEFORMATRESPONSE']._serialized_end=9583 - _globals['_DELETEALLTIMESETSREQUEST']._serialized_start=9585 - _globals['_DELETEALLTIMESETSREQUEST']._serialized_end=9647 - _globals['_DELETEALLTIMESETSRESPONSE']._serialized_start=9649 - _globals['_DELETEALLTIMESETSRESPONSE']._serialized_end=9692 - _globals['_CONFIGURETIMESETEDGEMULTIPLIERREQUEST']._serialized_start=9695 - _globals['_CONFIGURETIMESETEDGEMULTIPLIERREQUEST']._serialized_end=9836 - _globals['_CONFIGURETIMESETEDGEMULTIPLIERRESPONSE']._serialized_start=9838 - _globals['_CONFIGURETIMESETEDGEMULTIPLIERRESPONSE']._serialized_end=9894 - _globals['_CONFIGURETIMESETDRIVEEDGES2XREQUEST']._serialized_start=9897 - _globals['_CONFIGURETIMESETDRIVEEDGES2XREQUEST']._serialized_end=10255 - _globals['_CONFIGURETIMESETDRIVEEDGES2XRESPONSE']._serialized_start=10257 - _globals['_CONFIGURETIMESETDRIVEEDGES2XRESPONSE']._serialized_end=10311 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XREQUEST']._serialized_start=10314 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XREQUEST']._serialized_end=10479 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XRESPONSE']._serialized_start=10481 - _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XRESPONSE']._serialized_end=10543 - _globals['_CONFIGURETIMESETEDGEREQUEST']._serialized_start=10546 - _globals['_CONFIGURETIMESETEDGEREQUEST']._serialized_end=10755 - _globals['_CONFIGURETIMESETEDGERESPONSE']._serialized_start=10757 - _globals['_CONFIGURETIMESETEDGERESPONSE']._serialized_end=10803 - _globals['_GETTIMESETPERIODREQUEST']._serialized_start=10805 - _globals['_GETTIMESETPERIODREQUEST']._serialized_end=10889 - _globals['_GETTIMESETPERIODRESPONSE']._serialized_start=10891 - _globals['_GETTIMESETPERIODRESPONSE']._serialized_end=10949 - _globals['_GETTIMESETEDGEREQUEST']._serialized_start=10952 - _globals['_GETTIMESETEDGEREQUEST']._serialized_end=11136 - _globals['_GETTIMESETEDGERESPONSE']._serialized_start=11138 - _globals['_GETTIMESETEDGERESPONSE']._serialized_end=11192 - _globals['_GETTIMESETEDGEMULTIPLIERREQUEST']._serialized_start=11194 - _globals['_GETTIMESETEDGEMULTIPLIERREQUEST']._serialized_end=11299 - _globals['_GETTIMESETEDGEMULTIPLIERRESPONSE']._serialized_start=11301 - _globals['_GETTIMESETEDGEMULTIPLIERRESPONSE']._serialized_end=11376 - _globals['_GETTIMESETDRIVEFORMATREQUEST']._serialized_start=11378 - _globals['_GETTIMESETDRIVEFORMATREQUEST']._serialized_end=11480 - _globals['_GETTIMESETDRIVEFORMATRESPONSE']._serialized_start=11482 - _globals['_GETTIMESETDRIVEFORMATRESPONSE']._serialized_end=11601 - _globals['_GETTIMESETNAMEREQUEST']._serialized_start=11603 - _globals['_GETTIMESETNAMEREQUEST']._serialized_end=11686 - _globals['_GETTIMESETNAMERESPONSE']._serialized_start=11688 - _globals['_GETTIMESETNAMERESPONSE']._serialized_end=11742 - _globals['_TDRREQUEST']._serialized_start=11744 - _globals['_TDRREQUEST']._serialized_end=11837 - _globals['_TDRRESPONSE']._serialized_start=11839 - _globals['_TDRRESPONSE']._serialized_end=11913 - _globals['_APPLYTDROFFSETSREQUEST']._serialized_start=11915 - _globals['_APPLYTDROFFSETSREQUEST']._serialized_end=12014 - _globals['_APPLYTDROFFSETSRESPONSE']._serialized_start=12016 - _globals['_APPLYTDROFFSETSRESPONSE']._serialized_end=12057 - _globals['_PPMUCONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_start=12060 - _globals['_PPMUCONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_end=12279 - _globals['_PPMUCONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_start=12281 - _globals['_PPMUCONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_end=12334 - _globals['_PPMUCONFIGUREAPERTURETIMEREQUEST']._serialized_start=12337 - _globals['_PPMUCONFIGUREAPERTURETIMEREQUEST']._serialized_end=12550 - _globals['_PPMUCONFIGUREAPERTURETIMERESPONSE']._serialized_start=12552 - _globals['_PPMUCONFIGUREAPERTURETIMERESPONSE']._serialized_end=12603 - _globals['_PPMUCONFIGUREVOLTAGELEVELREQUEST']._serialized_start=12605 - _globals['_PPMUCONFIGUREVOLTAGELEVELREQUEST']._serialized_end=12720 - _globals['_PPMUCONFIGUREVOLTAGELEVELRESPONSE']._serialized_start=12722 - _globals['_PPMUCONFIGUREVOLTAGELEVELRESPONSE']._serialized_end=12773 - _globals['_PPMUCONFIGURECURRENTLIMITREQUEST']._serialized_start=12776 - _globals['_PPMUCONFIGURECURRENTLIMITREQUEST']._serialized_end=12993 - _globals['_PPMUCONFIGURECURRENTLIMITRESPONSE']._serialized_start=12995 - _globals['_PPMUCONFIGURECURRENTLIMITRESPONSE']._serialized_end=13046 - _globals['_PPMUCONFIGURECURRENTLIMITRANGEREQUEST']._serialized_start=13048 - _globals['_PPMUCONFIGURECURRENTLIMITRANGEREQUEST']._serialized_end=13160 - _globals['_PPMUCONFIGURECURRENTLIMITRANGERESPONSE']._serialized_start=13162 - _globals['_PPMUCONFIGURECURRENTLIMITRANGERESPONSE']._serialized_end=13218 - _globals['_PPMUCONFIGURECURRENTLEVELREQUEST']._serialized_start=13220 - _globals['_PPMUCONFIGURECURRENTLEVELREQUEST']._serialized_end=13335 - _globals['_PPMUCONFIGURECURRENTLEVELRESPONSE']._serialized_start=13337 - _globals['_PPMUCONFIGURECURRENTLEVELRESPONSE']._serialized_end=13388 - _globals['_PPMUCONFIGURECURRENTLEVELRANGEREQUEST']._serialized_start=13390 - _globals['_PPMUCONFIGURECURRENTLEVELRANGEREQUEST']._serialized_end=13502 - _globals['_PPMUCONFIGURECURRENTLEVELRANGERESPONSE']._serialized_start=13504 - _globals['_PPMUCONFIGURECURRENTLEVELRANGERESPONSE']._serialized_end=13560 - _globals['_PPMUCONFIGUREVOLTAGELIMITSREQUEST']._serialized_start=13563 - _globals['_PPMUCONFIGUREVOLTAGELIMITSREQUEST']._serialized_end=13714 - _globals['_PPMUCONFIGUREVOLTAGELIMITSRESPONSE']._serialized_start=13716 - _globals['_PPMUCONFIGUREVOLTAGELIMITSRESPONSE']._serialized_end=13768 - _globals['_PPMUSOURCEREQUEST']._serialized_start=13770 - _globals['_PPMUSOURCEREQUEST']._serialized_end=13847 - _globals['_PPMUSOURCERESPONSE']._serialized_start=13849 - _globals['_PPMUSOURCERESPONSE']._serialized_end=13885 - _globals['_PPMUMEASUREREQUEST']._serialized_start=13888 - _globals['_PPMUMEASUREREQUEST']._serialized_end=14095 - _globals['_PPMUMEASURERESPONSE']._serialized_start=14097 - _globals['_PPMUMEASURERESPONSE']._serialized_end=14181 - _globals['_LOADPATTERNREQUEST']._serialized_start=14183 - _globals['_LOADPATTERNREQUEST']._serialized_end=14258 - _globals['_LOADPATTERNRESPONSE']._serialized_start=14260 - _globals['_LOADPATTERNRESPONSE']._serialized_end=14297 - _globals['_UNLOADALLPATTERNSREQUEST']._serialized_start=14299 - _globals['_UNLOADALLPATTERNSREQUEST']._serialized_end=14396 - _globals['_UNLOADALLPATTERNSRESPONSE']._serialized_start=14398 - _globals['_UNLOADALLPATTERNSRESPONSE']._serialized_end=14441 - _globals['_CONFIGURESTARTLABELREQUEST']._serialized_start=14443 - _globals['_CONFIGURESTARTLABELREQUEST']._serialized_end=14522 - _globals['_CONFIGURESTARTLABELRESPONSE']._serialized_start=14524 - _globals['_CONFIGURESTARTLABELRESPONSE']._serialized_end=14569 - _globals['_CONFIGUREPATTERNBURSTSITESREQUEST']._serialized_start=14571 - _globals['_CONFIGUREPATTERNBURSTSITESREQUEST']._serialized_end=14661 - _globals['_CONFIGUREPATTERNBURSTSITESRESPONSE']._serialized_start=14663 - _globals['_CONFIGUREPATTERNBURSTSITESRESPONSE']._serialized_end=14715 - _globals['_GETPATTERNPININDEXESREQUEST']._serialized_start=14717 - _globals['_GETPATTERNPININDEXESREQUEST']._serialized_end=14803 - _globals['_GETPATTERNPININDEXESRESPONSE']._serialized_start=14805 - _globals['_GETPATTERNPININDEXESRESPONSE']._serialized_end=14897 - _globals['_GETPATTERNPINLISTREQUEST']._serialized_start=14899 - _globals['_GETPATTERNPINLISTREQUEST']._serialized_end=14982 - _globals['_GETPATTERNPINLISTRESPONSE']._serialized_start=14984 - _globals['_GETPATTERNPINLISTRESPONSE']._serialized_end=15045 - _globals['_GETPATTERNNAMEREQUEST']._serialized_start=15047 - _globals['_GETPATTERNNAMEREQUEST']._serialized_end=15129 - _globals['_GETPATTERNNAMERESPONSE']._serialized_start=15131 - _globals['_GETPATTERNNAMERESPONSE']._serialized_end=15185 - _globals['_BURSTPATTERNREQUEST']._serialized_start=15188 - _globals['_BURSTPATTERNREQUEST']._serialized_end=15360 - _globals['_BURSTPATTERNRESPONSE']._serialized_start=15362 - _globals['_BURSTPATTERNRESPONSE']._serialized_end=15400 - _globals['_BURSTPATTERNSYNCHRONIZEDREQUEST']._serialized_start=15403 - _globals['_BURSTPATTERNSYNCHRONIZEDREQUEST']._serialized_end=15616 - _globals['_BURSTPATTERNSYNCHRONIZEDRESPONSE']._serialized_start=15618 - _globals['_BURSTPATTERNSYNCHRONIZEDRESPONSE']._serialized_end=15668 - _globals['_COMMITREQUEST']._serialized_start=15670 - _globals['_COMMITREQUEST']._serialized_end=15721 - _globals['_COMMITRESPONSE']._serialized_start=15723 - _globals['_COMMITRESPONSE']._serialized_end=15755 - _globals['_INITIATEREQUEST']._serialized_start=15757 - _globals['_INITIATEREQUEST']._serialized_end=15810 - _globals['_INITIATERESPONSE']._serialized_start=15812 - _globals['_INITIATERESPONSE']._serialized_end=15846 - _globals['_ISDONEREQUEST']._serialized_start=15848 - _globals['_ISDONEREQUEST']._serialized_end=15899 - _globals['_ISDONERESPONSE']._serialized_start=15901 - _globals['_ISDONERESPONSE']._serialized_end=15947 - _globals['_WAITUNTILDONEREQUEST']._serialized_start=15949 - _globals['_WAITUNTILDONEREQUEST']._serialized_end=16024 - _globals['_WAITUNTILDONERESPONSE']._serialized_start=16026 - _globals['_WAITUNTILDONERESPONSE']._serialized_end=16065 - _globals['_ABORTREQUEST']._serialized_start=16067 - _globals['_ABORTREQUEST']._serialized_end=16117 - _globals['_ABORTRESPONSE']._serialized_start=16119 - _globals['_ABORTRESPONSE']._serialized_end=16150 - _globals['_ABORTKEEPALIVEREQUEST']._serialized_start=16152 - _globals['_ABORTKEEPALIVEREQUEST']._serialized_end=16211 - _globals['_ABORTKEEPALIVERESPONSE']._serialized_start=16213 - _globals['_ABORTKEEPALIVERESPONSE']._serialized_end=16253 - _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERREQUEST']._serialized_start=16256 - _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERREQUEST']._serialized_end=16427 - _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERRESPONSE']._serialized_start=16429 - _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERRESPONSE']._serialized_end=16493 - _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERREQUEST']._serialized_start=16496 - _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERREQUEST']._serialized_end=16628 - _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERRESPONSE']._serialized_start=16630 - _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERRESPONSE']._serialized_end=16693 - _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERREQUEST']._serialized_start=16695 - _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERREQUEST']._serialized_end=16806 - _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERRESPONSE']._serialized_start=16808 - _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERRESPONSE']._serialized_end=16872 - _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIREREQUEST']._serialized_start=16875 - _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIREREQUEST']._serialized_end=17092 - _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIRERESPONSE']._serialized_start=17094 - _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIRERESPONSE']._serialized_end=17154 - _globals['_GETHISTORYRAMSAMPLECOUNTREQUEST']._serialized_start=17156 - _globals['_GETHISTORYRAMSAMPLECOUNTREQUEST']._serialized_end=17239 - _globals['_GETHISTORYRAMSAMPLECOUNTRESPONSE']._serialized_start=17241 - _globals['_GETHISTORYRAMSAMPLECOUNTRESPONSE']._serialized_end=17313 - _globals['_FETCHHISTORYRAMCYCLEINFORMATIONREQUEST']._serialized_start=17315 - _globals['_FETCHHISTORYRAMCYCLEINFORMATIONREQUEST']._serialized_end=17427 - _globals['_FETCHHISTORYRAMCYCLEINFORMATIONRESPONSE']._serialized_start=17430 - _globals['_FETCHHISTORYRAMCYCLEINFORMATIONRESPONSE']._serialized_end=17603 - _globals['_FETCHHISTORYRAMCYCLEPINDATAREQUEST']._serialized_start=17606 - _globals['_FETCHHISTORYRAMCYCLEPINDATAREQUEST']._serialized_end=17757 - _globals['_FETCHHISTORYRAMCYCLEPINDATARESPONSE']._serialized_start=17760 - _globals['_FETCHHISTORYRAMCYCLEPINDATARESPONSE']._serialized_end=18055 - _globals['_FETCHHISTORYRAMSCANCYCLENUMBERREQUEST']._serialized_start=18057 - _globals['_FETCHHISTORYRAMSCANCYCLENUMBERREQUEST']._serialized_end=18168 - _globals['_FETCHHISTORYRAMSCANCYCLENUMBERRESPONSE']._serialized_start=18170 - _globals['_FETCHHISTORYRAMSCANCYCLENUMBERRESPONSE']._serialized_end=18253 - _globals['_CREATESOURCEWAVEFORMPARALLELREQUEST']._serialized_start=18256 - _globals['_CREATESOURCEWAVEFORMPARALLELREQUEST']._serialized_end=18485 - _globals['_CREATESOURCEWAVEFORMPARALLELRESPONSE']._serialized_start=18487 - _globals['_CREATESOURCEWAVEFORMPARALLELRESPONSE']._serialized_end=18541 - _globals['_CREATESOURCEWAVEFORMSERIALREQUEST']._serialized_start=18544 - _globals['_CREATESOURCEWAVEFORMSERIALREQUEST']._serialized_end=18890 - _globals['_CREATESOURCEWAVEFORMSERIALRESPONSE']._serialized_start=18892 - _globals['_CREATESOURCEWAVEFORMSERIALRESPONSE']._serialized_end=18944 - _globals['_CREATESOURCEWAVEFORMFROMFILETDMSREQUEST']._serialized_start=18947 - _globals['_CREATESOURCEWAVEFORMFROMFILETDMSREQUEST']._serialized_end=19104 - _globals['_CREATESOURCEWAVEFORMFROMFILETDMSRESPONSE']._serialized_start=19106 - _globals['_CREATESOURCEWAVEFORMFROMFILETDMSRESPONSE']._serialized_end=19164 - _globals['_WRITESOURCEWAVEFORMBROADCASTU32REQUEST']._serialized_start=19166 - _globals['_WRITESOURCEWAVEFORMBROADCASTU32REQUEST']._serialized_end=19288 - _globals['_WRITESOURCEWAVEFORMBROADCASTU32RESPONSE']._serialized_start=19290 - _globals['_WRITESOURCEWAVEFORMBROADCASTU32RESPONSE']._serialized_end=19347 - _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32REQUEST']._serialized_start=19350 - _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32REQUEST']._serialized_end=19545 - _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32RESPONSE']._serialized_start=19547 - _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32RESPONSE']._serialized_end=19605 - _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSREQUEST']._serialized_start=19608 - _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSREQUEST']._serialized_end=19739 - _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSRESPONSE']._serialized_start=19741 - _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSRESPONSE']._serialized_end=19802 - _globals['_CREATECAPTUREWAVEFORMPARALLELREQUEST']._serialized_start=19804 - _globals['_CREATECAPTUREWAVEFORMPARALLELREQUEST']._serialized_end=19919 - _globals['_CREATECAPTUREWAVEFORMPARALLELRESPONSE']._serialized_start=19921 - _globals['_CREATECAPTUREWAVEFORMPARALLELRESPONSE']._serialized_end=19976 - _globals['_CREATECAPTUREWAVEFORMSERIALREQUEST']._serialized_start=19979 - _globals['_CREATECAPTUREWAVEFORMSERIALREQUEST']._serialized_end=20211 - _globals['_CREATECAPTUREWAVEFORMSERIALRESPONSE']._serialized_start=20213 - _globals['_CREATECAPTUREWAVEFORMSERIALRESPONSE']._serialized_end=20266 - _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTUREREQUEST']._serialized_start=20269 - _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTUREREQUEST']._serialized_end=20405 - _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTURERESPONSE']._serialized_start=20407 - _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTURERESPONSE']._serialized_end=20473 - _globals['_FETCHCAPTUREWAVEFORMU32REQUEST']._serialized_start=20476 - _globals['_FETCHCAPTUREWAVEFORMU32REQUEST']._serialized_end=20628 - _globals['_FETCHCAPTUREWAVEFORMU32RESPONSE']._serialized_start=20631 - _globals['_FETCHCAPTUREWAVEFORMU32RESPONSE']._serialized_end=20761 - _globals['_EXPORTSIGNALREQUEST']._serialized_start=20764 - _globals['_EXPORTSIGNALREQUEST']._serialized_end=20965 - _globals['_EXPORTSIGNALRESPONSE']._serialized_start=20967 - _globals['_EXPORTSIGNALRESPONSE']._serialized_end=21005 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=21008 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=21186 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=21188 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=21246 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=21248 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=21326 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=21328 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=21387 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=21389 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=21453 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=21455 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=21500 - _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_start=21503 - _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_end=21719 - _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_start=21721 - _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_end=21789 - _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_start=21791 - _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_end=21907 - _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_start=21909 - _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_end=21978 - _globals['_DISABLECONDITIONALJUMPTRIGGERREQUEST']._serialized_start=21980 - _globals['_DISABLECONDITIONALJUMPTRIGGERREQUEST']._serialized_end=22082 - _globals['_DISABLECONDITIONALJUMPTRIGGERRESPONSE']._serialized_start=22084 - _globals['_DISABLECONDITIONALJUMPTRIGGERRESPONSE']._serialized_end=22139 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=22142 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=22336 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=22338 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=22387 - _globals['_WRITESEQUENCERFLAGREQUEST']._serialized_start=22389 - _globals['_WRITESEQUENCERFLAGREQUEST']._serialized_end=22481 - _globals['_WRITESEQUENCERFLAGRESPONSE']._serialized_start=22483 - _globals['_WRITESEQUENCERFLAGRESPONSE']._serialized_end=22527 - _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDREQUEST']._serialized_start=22530 - _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDREQUEST']._serialized_end=22663 - _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDRESPONSE']._serialized_start=22665 - _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDRESPONSE']._serialized_end=22721 - _globals['_READSEQUENCERFLAGREQUEST']._serialized_start=22723 - _globals['_READSEQUENCERFLAGREQUEST']._serialized_end=22799 - _globals['_READSEQUENCERFLAGRESPONSE']._serialized_start=22801 - _globals['_READSEQUENCERFLAGRESPONSE']._serialized_end=22859 - _globals['_WRITESEQUENCERREGISTERREQUEST']._serialized_start=22861 - _globals['_WRITESEQUENCERREGISTERREQUEST']._serialized_end=22956 - _globals['_WRITESEQUENCERREGISTERRESPONSE']._serialized_start=22958 - _globals['_WRITESEQUENCERREGISTERRESPONSE']._serialized_end=23006 - _globals['_READSEQUENCERREGISTERREQUEST']._serialized_start=23008 - _globals['_READSEQUENCERREGISTERREQUEST']._serialized_end=23087 - _globals['_READSEQUENCERREGISTERRESPONSE']._serialized_start=23089 - _globals['_READSEQUENCERREGISTERRESPONSE']._serialized_end=23151 - _globals['_ENABLEMATCHFAILCOMBINATIONREQUEST']._serialized_start=23154 - _globals['_ENABLEMATCHFAILCOMBINATIONREQUEST']._serialized_end=23300 - _globals['_ENABLEMATCHFAILCOMBINATIONRESPONSE']._serialized_start=23302 - _globals['_ENABLEMATCHFAILCOMBINATIONRESPONSE']._serialized_end=23354 - _globals['_GETSITEPASSFAILREQUEST']._serialized_start=23356 - _globals['_GETSITEPASSFAILREQUEST']._serialized_end=23435 - _globals['_GETSITEPASSFAILRESPONSE']._serialized_start=23437 - _globals['_GETSITEPASSFAILRESPONSE']._serialized_end=23523 - _globals['_GETFAILCOUNTREQUEST']._serialized_start=23525 - _globals['_GETFAILCOUNTREQUEST']._serialized_end=23604 - _globals['_GETFAILCOUNTRESPONSE']._serialized_start=23606 - _globals['_GETFAILCOUNTRESPONSE']._serialized_end=23692 - _globals['_GETPINRESULTSPININFORMATIONREQUEST']._serialized_start=23694 - _globals['_GETPINRESULTSPININFORMATIONREQUEST']._serialized_end=23788 - _globals['_GETPINRESULTSPININFORMATIONRESPONSE']._serialized_start=23791 - _globals['_GETPINRESULTSPININFORMATIONRESPONSE']._serialized_end=23939 - _globals['_GETSITERESULTSSITENUMBERSREQUEST']._serialized_start=23942 - _globals['_GETSITERESULTSSITENUMBERSREQUEST']._serialized_end=24155 - _globals['_GETSITERESULTSSITENUMBERSRESPONSE']._serialized_start=24157 - _globals['_GETSITERESULTSSITENUMBERSRESPONSE']._serialized_end=24263 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMEREQUEST']._serialized_start=24266 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMEREQUEST']._serialized_end=24399 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMERESPONSE']._serialized_start=24401 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMERESPONSE']._serialized_end=24467 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODEREQUEST']._serialized_start=24470 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODEREQUEST']._serialized_end=24689 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODERESPONSE']._serialized_start=24691 - _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODERESPONSE']._serialized_end=24757 - _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYREQUEST']._serialized_start=24759 - _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYREQUEST']._serialized_end=24858 - _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYRESPONSE']._serialized_start=24860 - _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYRESPONSE']._serialized_end=24971 - _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_start=24973 - _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_end=25059 - _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_start=25061 - _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_end=25126 - _globals['_NIDIGITAL']._serialized_start=35105 - _globals['_NIDIGITAL']._serialized_end=52209 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py b/generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py deleted file mode 100644 index b19dea54dc..0000000000 --- a/generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py +++ /dev/null @@ -1,4323 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nidigitalpattern_pb2 as nidigitalpattern__pb2 - - -class NiDigitalStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Init = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/Init', - request_serializer=nidigitalpattern__pb2.InitRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/InitWithOptions', - request_serializer=nidigitalpattern__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.InitWithOptionsResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/Close', - request_serializer=nidigitalpattern__pb2.CloseRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CloseResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/Reset', - request_serializer=nidigitalpattern__pb2.ResetRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ResetResponse.FromString, - ) - self.ResetDevice = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ResetDevice', - request_serializer=nidigitalpattern__pb2.ResetDeviceRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ResetDeviceResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SelfTest', - request_serializer=nidigitalpattern__pb2.SelfTestRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SelfTestResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetError', - request_serializer=nidigitalpattern__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetErrorResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ClearError', - request_serializer=nidigitalpattern__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ClearErrorResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ErrorMessage', - request_serializer=nidigitalpattern__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ErrorMessageResponse.FromString, - ) - self.SelfCalibrate = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SelfCalibrate', - request_serializer=nidigitalpattern__pb2.SelfCalibrateRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SelfCalibrateResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt32', - request_serializer=nidigitalpattern__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt64', - request_serializer=nidigitalpattern__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetAttributeViInt64Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetAttributeViReal64', - request_serializer=nidigitalpattern__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetAttributeViString', - request_serializer=nidigitalpattern__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetAttributeViSession', - request_serializer=nidigitalpattern__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetAttributeViSessionResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetAttributeViBoolean', - request_serializer=nidigitalpattern__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt32', - request_serializer=nidigitalpattern__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt64', - request_serializer=nidigitalpattern__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SetAttributeViInt64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SetAttributeViReal64', - request_serializer=nidigitalpattern__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SetAttributeViString', - request_serializer=nidigitalpattern__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SetAttributeViStringResponse.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SetAttributeViSession', - request_serializer=nidigitalpattern__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SetAttributeViBoolean', - request_serializer=nidigitalpattern__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.ResetAttribute = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ResetAttribute', - request_serializer=nidigitalpattern__pb2.ResetAttributeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ResetAttributeResponse.FromString, - ) - self.LoadPinMap = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/LoadPinMap', - request_serializer=nidigitalpattern__pb2.LoadPinMapRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.LoadPinMapResponse.FromString, - ) - self.EnableSites = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/EnableSites', - request_serializer=nidigitalpattern__pb2.EnableSitesRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.EnableSitesResponse.FromString, - ) - self.DisableSites = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/DisableSites', - request_serializer=nidigitalpattern__pb2.DisableSitesRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.DisableSitesResponse.FromString, - ) - self.IsSiteEnabled = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/IsSiteEnabled', - request_serializer=nidigitalpattern__pb2.IsSiteEnabledRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.IsSiteEnabledResponse.FromString, - ) - self.CreatePinMap = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreatePinMap', - request_serializer=nidigitalpattern__pb2.CreatePinMapRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreatePinMapResponse.FromString, - ) - self.CreatePinGroup = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreatePinGroup', - request_serializer=nidigitalpattern__pb2.CreatePinGroupRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreatePinGroupResponse.FromString, - ) - self.CreateChannelMap = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateChannelMap', - request_serializer=nidigitalpattern__pb2.CreateChannelMapRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateChannelMapResponse.FromString, - ) - self.MapPinToChannel = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/MapPinToChannel', - request_serializer=nidigitalpattern__pb2.MapPinToChannelRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.MapPinToChannelResponse.FromString, - ) - self.EndChannelMap = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/EndChannelMap', - request_serializer=nidigitalpattern__pb2.EndChannelMapRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.EndChannelMapResponse.FromString, - ) - self.GetPinName = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetPinName', - request_serializer=nidigitalpattern__pb2.GetPinNameRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetPinNameResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetChannelName', - request_serializer=nidigitalpattern__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetChannelNameResponse.FromString, - ) - self.SelectFunction = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SelectFunction', - request_serializer=nidigitalpattern__pb2.SelectFunctionRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SelectFunctionResponse.FromString, - ) - self.ReadStatic = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ReadStatic', - request_serializer=nidigitalpattern__pb2.ReadStaticRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ReadStaticResponse.FromString, - ) - self.WriteStatic = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteStatic', - request_serializer=nidigitalpattern__pb2.WriteStaticRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteStaticResponse.FromString, - ) - self.ClockGeneratorGenerateClock = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ClockGeneratorGenerateClock', - request_serializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockResponse.FromString, - ) - self.ClockGeneratorInitiate = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ClockGeneratorInitiate', - request_serializer=nidigitalpattern__pb2.ClockGeneratorInitiateRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ClockGeneratorInitiateResponse.FromString, - ) - self.ClockGeneratorAbort = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ClockGeneratorAbort', - request_serializer=nidigitalpattern__pb2.ClockGeneratorAbortRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ClockGeneratorAbortResponse.FromString, - ) - self.LoadSpecifications = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/LoadSpecifications', - request_serializer=nidigitalpattern__pb2.LoadSpecificationsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.LoadSpecificationsResponse.FromString, - ) - self.UnloadSpecifications = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/UnloadSpecifications', - request_serializer=nidigitalpattern__pb2.UnloadSpecificationsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.UnloadSpecificationsResponse.FromString, - ) - self.LoadLevels = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/LoadLevels', - request_serializer=nidigitalpattern__pb2.LoadLevelsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.LoadLevelsResponse.FromString, - ) - self.LoadTiming = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/LoadTiming', - request_serializer=nidigitalpattern__pb2.LoadTimingRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.LoadTimingResponse.FromString, - ) - self.ApplyLevelsAndTiming = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ApplyLevelsAndTiming', - request_serializer=nidigitalpattern__pb2.ApplyLevelsAndTimingRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ApplyLevelsAndTimingResponse.FromString, - ) - self.ConfigureVoltageLevels = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureVoltageLevels', - request_serializer=nidigitalpattern__pb2.ConfigureVoltageLevelsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureVoltageLevelsResponse.FromString, - ) - self.ConfigureActiveLoadLevels = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureActiveLoadLevels', - request_serializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsResponse.FromString, - ) - self.ConfigureTerminationMode = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTerminationMode', - request_serializer=nidigitalpattern__pb2.ConfigureTerminationModeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTerminationModeResponse.FromString, - ) - self.CreateTimeSet = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateTimeSet', - request_serializer=nidigitalpattern__pb2.CreateTimeSetRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateTimeSetResponse.FromString, - ) - self.ConfigureTimeSetPeriod = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetPeriod', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodResponse.FromString, - ) - self.ConfigureTimeSetDriveEdges = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesResponse.FromString, - ) - self.ConfigureTimeSetCompareEdgesStrobe = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeResponse.FromString, - ) - self.ConfigureTimeSetDriveFormat = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveFormat', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatResponse.FromString, - ) - self.DeleteAllTimeSets = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/DeleteAllTimeSets', - request_serializer=nidigitalpattern__pb2.DeleteAllTimeSetsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.DeleteAllTimeSetsResponse.FromString, - ) - self.ConfigureTimeSetEdgeMultiplier = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdgeMultiplier', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierResponse.FromString, - ) - self.ConfigureTimeSetDriveEdges2x = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges2x', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xResponse.FromString, - ) - self.ConfigureTimeSetCompareEdgesStrobe2x = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe2x', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xResponse.FromString, - ) - self.ConfigureTimeSetEdge = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdge', - request_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeResponse.FromString, - ) - self.GetTimeSetPeriod = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetTimeSetPeriod', - request_serializer=nidigitalpattern__pb2.GetTimeSetPeriodRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetTimeSetPeriodResponse.FromString, - ) - self.GetTimeSetEdge = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdge', - request_serializer=nidigitalpattern__pb2.GetTimeSetEdgeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeResponse.FromString, - ) - self.GetTimeSetEdgeMultiplier = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdgeMultiplier', - request_serializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierResponse.FromString, - ) - self.GetTimeSetDriveFormat = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetTimeSetDriveFormat', - request_serializer=nidigitalpattern__pb2.GetTimeSetDriveFormatRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetTimeSetDriveFormatResponse.FromString, - ) - self.GetTimeSetName = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetTimeSetName', - request_serializer=nidigitalpattern__pb2.GetTimeSetNameRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetTimeSetNameResponse.FromString, - ) - self.TDR = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/TDR', - request_serializer=nidigitalpattern__pb2.TDRRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.TDRResponse.FromString, - ) - self.ApplyTDROffsets = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ApplyTDROffsets', - request_serializer=nidigitalpattern__pb2.ApplyTDROffsetsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ApplyTDROffsetsResponse.FromString, - ) - self.PPMUConfigureOutputFunction = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureOutputFunction', - request_serializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionResponse.FromString, - ) - self.PPMUConfigureApertureTime = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureApertureTime', - request_serializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeResponse.FromString, - ) - self.PPMUConfigureVoltageLevel = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLevel', - request_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelResponse.FromString, - ) - self.PPMUConfigureCurrentLimit = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimit', - request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitResponse.FromString, - ) - self.PPMUConfigureCurrentLimitRange = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimitRange', - request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeResponse.FromString, - ) - self.PPMUConfigureCurrentLevel = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevel', - request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelResponse.FromString, - ) - self.PPMUConfigureCurrentLevelRange = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevelRange', - request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeResponse.FromString, - ) - self.PPMUConfigureVoltageLimits = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLimits', - request_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsResponse.FromString, - ) - self.PPMUSource = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUSource', - request_serializer=nidigitalpattern__pb2.PPMUSourceRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUSourceResponse.FromString, - ) - self.PPMUMeasure = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/PPMUMeasure', - request_serializer=nidigitalpattern__pb2.PPMUMeasureRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.PPMUMeasureResponse.FromString, - ) - self.LoadPattern = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/LoadPattern', - request_serializer=nidigitalpattern__pb2.LoadPatternRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.LoadPatternResponse.FromString, - ) - self.UnloadAllPatterns = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/UnloadAllPatterns', - request_serializer=nidigitalpattern__pb2.UnloadAllPatternsRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.UnloadAllPatternsResponse.FromString, - ) - self.ConfigureStartLabel = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureStartLabel', - request_serializer=nidigitalpattern__pb2.ConfigureStartLabelRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureStartLabelResponse.FromString, - ) - self.ConfigurePatternBurstSites = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigurePatternBurstSites', - request_serializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesResponse.FromString, - ) - self.GetPatternPinIndexes = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetPatternPinIndexes', - request_serializer=nidigitalpattern__pb2.GetPatternPinIndexesRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetPatternPinIndexesResponse.FromString, - ) - self.GetPatternPinList = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetPatternPinList', - request_serializer=nidigitalpattern__pb2.GetPatternPinListRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetPatternPinListResponse.FromString, - ) - self.GetPatternName = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetPatternName', - request_serializer=nidigitalpattern__pb2.GetPatternNameRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetPatternNameResponse.FromString, - ) - self.BurstPattern = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/BurstPattern', - request_serializer=nidigitalpattern__pb2.BurstPatternRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.BurstPatternResponse.FromString, - ) - self.BurstPatternSynchronized = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/BurstPatternSynchronized', - request_serializer=nidigitalpattern__pb2.BurstPatternSynchronizedRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.BurstPatternSynchronizedResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/Commit', - request_serializer=nidigitalpattern__pb2.CommitRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CommitResponse.FromString, - ) - self.Initiate = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/Initiate', - request_serializer=nidigitalpattern__pb2.InitiateRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.InitiateResponse.FromString, - ) - self.IsDone = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/IsDone', - request_serializer=nidigitalpattern__pb2.IsDoneRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.IsDoneResponse.FromString, - ) - self.WaitUntilDone = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WaitUntilDone', - request_serializer=nidigitalpattern__pb2.WaitUntilDoneRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WaitUntilDoneResponse.FromString, - ) - self.Abort = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/Abort', - request_serializer=nidigitalpattern__pb2.AbortRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.AbortResponse.FromString, - ) - self.AbortKeepAlive = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/AbortKeepAlive', - request_serializer=nidigitalpattern__pb2.AbortKeepAliveRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.AbortKeepAliveResponse.FromString, - ) - self.ConfigurePatternLabelHistoryRAMTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigurePatternLabelHistoryRAMTrigger', - request_serializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerResponse.FromString, - ) - self.ConfigureCycleNumberHistoryRAMTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureCycleNumberHistoryRAMTrigger', - request_serializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerResponse.FromString, - ) - self.ConfigureFirstFailureHistoryRAMTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureFirstFailureHistoryRAMTrigger', - request_serializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerResponse.FromString, - ) - self.ConfigureHistoryRAMCyclesToAcquire = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureHistoryRAMCyclesToAcquire', - request_serializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireResponse.FromString, - ) - self.GetHistoryRAMSampleCount = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetHistoryRAMSampleCount', - request_serializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountResponse.FromString, - ) - self.FetchHistoryRAMCycleInformation = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCycleInformation', - request_serializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationResponse.FromString, - ) - self.FetchHistoryRAMCyclePinData = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCyclePinData', - request_serializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataResponse.FromString, - ) - self.FetchHistoryRAMScanCycleNumber = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMScanCycleNumber', - request_serializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberResponse.FromString, - ) - self.CreateSourceWaveformParallel = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformParallel', - request_serializer=nidigitalpattern__pb2.CreateSourceWaveformParallelRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateSourceWaveformParallelResponse.FromString, - ) - self.CreateSourceWaveformSerial = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformSerial', - request_serializer=nidigitalpattern__pb2.CreateSourceWaveformSerialRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateSourceWaveformSerialResponse.FromString, - ) - self.CreateSourceWaveformFromFileTDMS = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformFromFileTDMS', - request_serializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSResponse.FromString, - ) - self.WriteSourceWaveformBroadcastU32 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformBroadcastU32', - request_serializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Response.FromString, - ) - self.WriteSourceWaveformSiteUniqueU32 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformSiteUniqueU32', - request_serializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Response.FromString, - ) - self.WriteSourceWaveformDataFromFileTDMS = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformDataFromFileTDMS', - request_serializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSResponse.FromString, - ) - self.CreateCaptureWaveformParallel = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformParallel', - request_serializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelResponse.FromString, - ) - self.CreateCaptureWaveformSerial = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformSerial', - request_serializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialResponse.FromString, - ) - self.CreateCaptureWaveformFromFileDigicapture = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformFromFileDigicapture', - request_serializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureResponse.FromString, - ) - self.FetchCaptureWaveformU32 = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FetchCaptureWaveformU32', - request_serializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Request.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Response.FromString, - ) - self.ExportSignal = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ExportSignal', - request_serializer=nidigitalpattern__pb2.ExportSignalRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ExportSignalResponse.FromString, - ) - self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeStartTrigger', - request_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeStartTrigger', - request_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - ) - self.DisableStartTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/DisableStartTrigger', - request_serializer=nidigitalpattern__pb2.DisableStartTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.DisableStartTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeConditionalJumpTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeConditionalJumpTrigger', - request_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeConditionalJumpTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeConditionalJumpTrigger', - request_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerResponse.FromString, - ) - self.DisableConditionalJumpTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/DisableConditionalJumpTrigger', - request_serializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerResponse.FromString, - ) - self.SendSoftwareEdgeTrigger = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/SendSoftwareEdgeTrigger', - request_serializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerResponse.FromString, - ) - self.WriteSequencerFlag = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlag', - request_serializer=nidigitalpattern__pb2.WriteSequencerFlagRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteSequencerFlagResponse.FromString, - ) - self.WriteSequencerFlagSynchronized = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlagSynchronized', - request_serializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedResponse.FromString, - ) - self.ReadSequencerFlag = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ReadSequencerFlag', - request_serializer=nidigitalpattern__pb2.ReadSequencerFlagRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ReadSequencerFlagResponse.FromString, - ) - self.WriteSequencerRegister = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/WriteSequencerRegister', - request_serializer=nidigitalpattern__pb2.WriteSequencerRegisterRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.WriteSequencerRegisterResponse.FromString, - ) - self.ReadSequencerRegister = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/ReadSequencerRegister', - request_serializer=nidigitalpattern__pb2.ReadSequencerRegisterRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.ReadSequencerRegisterResponse.FromString, - ) - self.EnableMatchFailCombination = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/EnableMatchFailCombination', - request_serializer=nidigitalpattern__pb2.EnableMatchFailCombinationRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.EnableMatchFailCombinationResponse.FromString, - ) - self.GetSitePassFail = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetSitePassFail', - request_serializer=nidigitalpattern__pb2.GetSitePassFailRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetSitePassFailResponse.FromString, - ) - self.GetFailCount = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetFailCount', - request_serializer=nidigitalpattern__pb2.GetFailCountRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetFailCountResponse.FromString, - ) - self.GetPinResultsPinInformation = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetPinResultsPinInformation', - request_serializer=nidigitalpattern__pb2.GetPinResultsPinInformationRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetPinResultsPinInformationResponse.FromString, - ) - self.GetSiteResultsSiteNumbers = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetSiteResultsSiteNumbers', - request_serializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersResponse.FromString, - ) - self.FrequencyCounterConfigureMeasurementTime = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementTime', - request_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeResponse.FromString, - ) - self.FrequencyCounterConfigureMeasurementMode = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementMode', - request_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeResponse.FromString, - ) - self.FrequencyCounterMeasureFrequency = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/FrequencyCounterMeasureFrequency', - request_serializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyResponse.FromString, - ) - self.GetChannelNameFromString = channel.unary_unary( - '/nidigitalpattern_grpc.NiDigital/GetChannelNameFromString', - request_serializer=nidigitalpattern__pb2.GetChannelNameFromStringRequest.SerializeToString, - response_deserializer=nidigitalpattern__pb2.GetChannelNameFromStringResponse.FromString, - ) - - -class NiDigitalServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCalibrate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetAttribute(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadPinMap(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnableSites(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableSites(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsSiteEnabled(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreatePinMap(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreatePinGroup(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateChannelMap(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MapPinToChannel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EndChannelMap(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPinName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelectFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadStatic(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteStatic(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClockGeneratorGenerateClock(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClockGeneratorInitiate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClockGeneratorAbort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadSpecifications(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UnloadSpecifications(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadLevels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadTiming(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ApplyLevelsAndTiming(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureVoltageLevels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureActiveLoadLevels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTerminationMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateTimeSet(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetPeriod(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetDriveEdges(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetCompareEdgesStrobe(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetDriveFormat(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAllTimeSets(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetEdgeMultiplier(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetDriveEdges2x(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetCompareEdgesStrobe2x(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTimeSetEdge(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTimeSetPeriod(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTimeSetEdge(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTimeSetEdgeMultiplier(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTimeSetDriveFormat(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTimeSetName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TDR(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ApplyTDROffsets(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureOutputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureApertureTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureVoltageLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureCurrentLimit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureCurrentLimitRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureCurrentLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureCurrentLevelRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUConfigureVoltageLimits(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUSource(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PPMUMeasure(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadPattern(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UnloadAllPatterns(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureStartLabel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePatternBurstSites(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPatternPinIndexes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPatternPinList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPatternName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def BurstPattern(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def BurstPatternSynchronized(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Initiate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsDone(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitUntilDone(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AbortKeepAlive(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePatternLabelHistoryRAMTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCycleNumberHistoryRAMTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureFirstFailureHistoryRAMTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureHistoryRAMCyclesToAcquire(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetHistoryRAMSampleCount(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchHistoryRAMCycleInformation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchHistoryRAMCyclePinData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchHistoryRAMScanCycleNumber(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateSourceWaveformParallel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateSourceWaveformSerial(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateSourceWaveformFromFileTDMS(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteSourceWaveformBroadcastU32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteSourceWaveformSiteUniqueU32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteSourceWaveformDataFromFileTDMS(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateCaptureWaveformParallel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateCaptureWaveformSerial(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateCaptureWaveformFromFileDigicapture(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchCaptureWaveformU32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeConditionalJumpTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeConditionalJumpTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableConditionalJumpTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareEdgeTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteSequencerFlag(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteSequencerFlagSynchronized(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadSequencerFlag(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteSequencerRegister(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadSequencerRegister(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnableMatchFailCombination(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSitePassFail(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetFailCount(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPinResultsPinInformation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSiteResultsSiteNumbers(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FrequencyCounterConfigureMeasurementTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FrequencyCounterConfigureMeasurementMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FrequencyCounterMeasureFrequency(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelNameFromString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiDigitalServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=nidigitalpattern__pb2.InitRequest.FromString, - response_serializer=nidigitalpattern__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=nidigitalpattern__pb2.InitWithOptionsRequest.FromString, - response_serializer=nidigitalpattern__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nidigitalpattern__pb2.CloseRequest.FromString, - response_serializer=nidigitalpattern__pb2.CloseResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=nidigitalpattern__pb2.ResetRequest.FromString, - response_serializer=nidigitalpattern__pb2.ResetResponse.SerializeToString, - ), - 'ResetDevice': grpc.unary_unary_rpc_method_handler( - servicer.ResetDevice, - request_deserializer=nidigitalpattern__pb2.ResetDeviceRequest.FromString, - response_serializer=nidigitalpattern__pb2.ResetDeviceResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=nidigitalpattern__pb2.SelfTestRequest.FromString, - response_serializer=nidigitalpattern__pb2.SelfTestResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nidigitalpattern__pb2.GetErrorRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetErrorResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=nidigitalpattern__pb2.ClearErrorRequest.FromString, - response_serializer=nidigitalpattern__pb2.ClearErrorResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=nidigitalpattern__pb2.ErrorMessageRequest.FromString, - response_serializer=nidigitalpattern__pb2.ErrorMessageResponse.SerializeToString, - ), - 'SelfCalibrate': grpc.unary_unary_rpc_method_handler( - servicer.SelfCalibrate, - request_deserializer=nidigitalpattern__pb2.SelfCalibrateRequest.FromString, - response_serializer=nidigitalpattern__pb2.SelfCalibrateResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nidigitalpattern__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nidigitalpattern__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=nidigitalpattern__pb2.GetAttributeViInt64Request.FromString, - response_serializer=nidigitalpattern__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nidigitalpattern__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nidigitalpattern__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nidigitalpattern__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nidigitalpattern__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nidigitalpattern__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nidigitalpattern__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nidigitalpattern__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=nidigitalpattern__pb2.SetAttributeViInt64Request.FromString, - response_serializer=nidigitalpattern__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nidigitalpattern__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nidigitalpattern__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nidigitalpattern__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nidigitalpattern__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=nidigitalpattern__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=nidigitalpattern__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nidigitalpattern__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nidigitalpattern__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'ResetAttribute': grpc.unary_unary_rpc_method_handler( - servicer.ResetAttribute, - request_deserializer=nidigitalpattern__pb2.ResetAttributeRequest.FromString, - response_serializer=nidigitalpattern__pb2.ResetAttributeResponse.SerializeToString, - ), - 'LoadPinMap': grpc.unary_unary_rpc_method_handler( - servicer.LoadPinMap, - request_deserializer=nidigitalpattern__pb2.LoadPinMapRequest.FromString, - response_serializer=nidigitalpattern__pb2.LoadPinMapResponse.SerializeToString, - ), - 'EnableSites': grpc.unary_unary_rpc_method_handler( - servicer.EnableSites, - request_deserializer=nidigitalpattern__pb2.EnableSitesRequest.FromString, - response_serializer=nidigitalpattern__pb2.EnableSitesResponse.SerializeToString, - ), - 'DisableSites': grpc.unary_unary_rpc_method_handler( - servicer.DisableSites, - request_deserializer=nidigitalpattern__pb2.DisableSitesRequest.FromString, - response_serializer=nidigitalpattern__pb2.DisableSitesResponse.SerializeToString, - ), - 'IsSiteEnabled': grpc.unary_unary_rpc_method_handler( - servicer.IsSiteEnabled, - request_deserializer=nidigitalpattern__pb2.IsSiteEnabledRequest.FromString, - response_serializer=nidigitalpattern__pb2.IsSiteEnabledResponse.SerializeToString, - ), - 'CreatePinMap': grpc.unary_unary_rpc_method_handler( - servicer.CreatePinMap, - request_deserializer=nidigitalpattern__pb2.CreatePinMapRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreatePinMapResponse.SerializeToString, - ), - 'CreatePinGroup': grpc.unary_unary_rpc_method_handler( - servicer.CreatePinGroup, - request_deserializer=nidigitalpattern__pb2.CreatePinGroupRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreatePinGroupResponse.SerializeToString, - ), - 'CreateChannelMap': grpc.unary_unary_rpc_method_handler( - servicer.CreateChannelMap, - request_deserializer=nidigitalpattern__pb2.CreateChannelMapRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateChannelMapResponse.SerializeToString, - ), - 'MapPinToChannel': grpc.unary_unary_rpc_method_handler( - servicer.MapPinToChannel, - request_deserializer=nidigitalpattern__pb2.MapPinToChannelRequest.FromString, - response_serializer=nidigitalpattern__pb2.MapPinToChannelResponse.SerializeToString, - ), - 'EndChannelMap': grpc.unary_unary_rpc_method_handler( - servicer.EndChannelMap, - request_deserializer=nidigitalpattern__pb2.EndChannelMapRequest.FromString, - response_serializer=nidigitalpattern__pb2.EndChannelMapResponse.SerializeToString, - ), - 'GetPinName': grpc.unary_unary_rpc_method_handler( - servicer.GetPinName, - request_deserializer=nidigitalpattern__pb2.GetPinNameRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetPinNameResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=nidigitalpattern__pb2.GetChannelNameRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetChannelNameResponse.SerializeToString, - ), - 'SelectFunction': grpc.unary_unary_rpc_method_handler( - servicer.SelectFunction, - request_deserializer=nidigitalpattern__pb2.SelectFunctionRequest.FromString, - response_serializer=nidigitalpattern__pb2.SelectFunctionResponse.SerializeToString, - ), - 'ReadStatic': grpc.unary_unary_rpc_method_handler( - servicer.ReadStatic, - request_deserializer=nidigitalpattern__pb2.ReadStaticRequest.FromString, - response_serializer=nidigitalpattern__pb2.ReadStaticResponse.SerializeToString, - ), - 'WriteStatic': grpc.unary_unary_rpc_method_handler( - servicer.WriteStatic, - request_deserializer=nidigitalpattern__pb2.WriteStaticRequest.FromString, - response_serializer=nidigitalpattern__pb2.WriteStaticResponse.SerializeToString, - ), - 'ClockGeneratorGenerateClock': grpc.unary_unary_rpc_method_handler( - servicer.ClockGeneratorGenerateClock, - request_deserializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockRequest.FromString, - response_serializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockResponse.SerializeToString, - ), - 'ClockGeneratorInitiate': grpc.unary_unary_rpc_method_handler( - servicer.ClockGeneratorInitiate, - request_deserializer=nidigitalpattern__pb2.ClockGeneratorInitiateRequest.FromString, - response_serializer=nidigitalpattern__pb2.ClockGeneratorInitiateResponse.SerializeToString, - ), - 'ClockGeneratorAbort': grpc.unary_unary_rpc_method_handler( - servicer.ClockGeneratorAbort, - request_deserializer=nidigitalpattern__pb2.ClockGeneratorAbortRequest.FromString, - response_serializer=nidigitalpattern__pb2.ClockGeneratorAbortResponse.SerializeToString, - ), - 'LoadSpecifications': grpc.unary_unary_rpc_method_handler( - servicer.LoadSpecifications, - request_deserializer=nidigitalpattern__pb2.LoadSpecificationsRequest.FromString, - response_serializer=nidigitalpattern__pb2.LoadSpecificationsResponse.SerializeToString, - ), - 'UnloadSpecifications': grpc.unary_unary_rpc_method_handler( - servicer.UnloadSpecifications, - request_deserializer=nidigitalpattern__pb2.UnloadSpecificationsRequest.FromString, - response_serializer=nidigitalpattern__pb2.UnloadSpecificationsResponse.SerializeToString, - ), - 'LoadLevels': grpc.unary_unary_rpc_method_handler( - servicer.LoadLevels, - request_deserializer=nidigitalpattern__pb2.LoadLevelsRequest.FromString, - response_serializer=nidigitalpattern__pb2.LoadLevelsResponse.SerializeToString, - ), - 'LoadTiming': grpc.unary_unary_rpc_method_handler( - servicer.LoadTiming, - request_deserializer=nidigitalpattern__pb2.LoadTimingRequest.FromString, - response_serializer=nidigitalpattern__pb2.LoadTimingResponse.SerializeToString, - ), - 'ApplyLevelsAndTiming': grpc.unary_unary_rpc_method_handler( - servicer.ApplyLevelsAndTiming, - request_deserializer=nidigitalpattern__pb2.ApplyLevelsAndTimingRequest.FromString, - response_serializer=nidigitalpattern__pb2.ApplyLevelsAndTimingResponse.SerializeToString, - ), - 'ConfigureVoltageLevels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureVoltageLevels, - request_deserializer=nidigitalpattern__pb2.ConfigureVoltageLevelsRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureVoltageLevelsResponse.SerializeToString, - ), - 'ConfigureActiveLoadLevels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureActiveLoadLevels, - request_deserializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsResponse.SerializeToString, - ), - 'ConfigureTerminationMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTerminationMode, - request_deserializer=nidigitalpattern__pb2.ConfigureTerminationModeRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTerminationModeResponse.SerializeToString, - ), - 'CreateTimeSet': grpc.unary_unary_rpc_method_handler( - servicer.CreateTimeSet, - request_deserializer=nidigitalpattern__pb2.CreateTimeSetRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateTimeSetResponse.SerializeToString, - ), - 'ConfigureTimeSetPeriod': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetPeriod, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodResponse.SerializeToString, - ), - 'ConfigureTimeSetDriveEdges': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetDriveEdges, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesResponse.SerializeToString, - ), - 'ConfigureTimeSetCompareEdgesStrobe': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetCompareEdgesStrobe, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeResponse.SerializeToString, - ), - 'ConfigureTimeSetDriveFormat': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetDriveFormat, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatResponse.SerializeToString, - ), - 'DeleteAllTimeSets': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAllTimeSets, - request_deserializer=nidigitalpattern__pb2.DeleteAllTimeSetsRequest.FromString, - response_serializer=nidigitalpattern__pb2.DeleteAllTimeSetsResponse.SerializeToString, - ), - 'ConfigureTimeSetEdgeMultiplier': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetEdgeMultiplier, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierResponse.SerializeToString, - ), - 'ConfigureTimeSetDriveEdges2x': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetDriveEdges2x, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xResponse.SerializeToString, - ), - 'ConfigureTimeSetCompareEdgesStrobe2x': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetCompareEdgesStrobe2x, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xResponse.SerializeToString, - ), - 'ConfigureTimeSetEdge': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTimeSetEdge, - request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeResponse.SerializeToString, - ), - 'GetTimeSetPeriod': grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSetPeriod, - request_deserializer=nidigitalpattern__pb2.GetTimeSetPeriodRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetTimeSetPeriodResponse.SerializeToString, - ), - 'GetTimeSetEdge': grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSetEdge, - request_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetTimeSetEdgeResponse.SerializeToString, - ), - 'GetTimeSetEdgeMultiplier': grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSetEdgeMultiplier, - request_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierResponse.SerializeToString, - ), - 'GetTimeSetDriveFormat': grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSetDriveFormat, - request_deserializer=nidigitalpattern__pb2.GetTimeSetDriveFormatRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetTimeSetDriveFormatResponse.SerializeToString, - ), - 'GetTimeSetName': grpc.unary_unary_rpc_method_handler( - servicer.GetTimeSetName, - request_deserializer=nidigitalpattern__pb2.GetTimeSetNameRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetTimeSetNameResponse.SerializeToString, - ), - 'TDR': grpc.unary_unary_rpc_method_handler( - servicer.TDR, - request_deserializer=nidigitalpattern__pb2.TDRRequest.FromString, - response_serializer=nidigitalpattern__pb2.TDRResponse.SerializeToString, - ), - 'ApplyTDROffsets': grpc.unary_unary_rpc_method_handler( - servicer.ApplyTDROffsets, - request_deserializer=nidigitalpattern__pb2.ApplyTDROffsetsRequest.FromString, - response_serializer=nidigitalpattern__pb2.ApplyTDROffsetsResponse.SerializeToString, - ), - 'PPMUConfigureOutputFunction': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureOutputFunction, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionResponse.SerializeToString, - ), - 'PPMUConfigureApertureTime': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureApertureTime, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeResponse.SerializeToString, - ), - 'PPMUConfigureVoltageLevel': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureVoltageLevel, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelResponse.SerializeToString, - ), - 'PPMUConfigureCurrentLimit': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureCurrentLimit, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitResponse.SerializeToString, - ), - 'PPMUConfigureCurrentLimitRange': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureCurrentLimitRange, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeResponse.SerializeToString, - ), - 'PPMUConfigureCurrentLevel': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureCurrentLevel, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelResponse.SerializeToString, - ), - 'PPMUConfigureCurrentLevelRange': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureCurrentLevelRange, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeResponse.SerializeToString, - ), - 'PPMUConfigureVoltageLimits': grpc.unary_unary_rpc_method_handler( - servicer.PPMUConfigureVoltageLimits, - request_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsResponse.SerializeToString, - ), - 'PPMUSource': grpc.unary_unary_rpc_method_handler( - servicer.PPMUSource, - request_deserializer=nidigitalpattern__pb2.PPMUSourceRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUSourceResponse.SerializeToString, - ), - 'PPMUMeasure': grpc.unary_unary_rpc_method_handler( - servicer.PPMUMeasure, - request_deserializer=nidigitalpattern__pb2.PPMUMeasureRequest.FromString, - response_serializer=nidigitalpattern__pb2.PPMUMeasureResponse.SerializeToString, - ), - 'LoadPattern': grpc.unary_unary_rpc_method_handler( - servicer.LoadPattern, - request_deserializer=nidigitalpattern__pb2.LoadPatternRequest.FromString, - response_serializer=nidigitalpattern__pb2.LoadPatternResponse.SerializeToString, - ), - 'UnloadAllPatterns': grpc.unary_unary_rpc_method_handler( - servicer.UnloadAllPatterns, - request_deserializer=nidigitalpattern__pb2.UnloadAllPatternsRequest.FromString, - response_serializer=nidigitalpattern__pb2.UnloadAllPatternsResponse.SerializeToString, - ), - 'ConfigureStartLabel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureStartLabel, - request_deserializer=nidigitalpattern__pb2.ConfigureStartLabelRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureStartLabelResponse.SerializeToString, - ), - 'ConfigurePatternBurstSites': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePatternBurstSites, - request_deserializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesResponse.SerializeToString, - ), - 'GetPatternPinIndexes': grpc.unary_unary_rpc_method_handler( - servicer.GetPatternPinIndexes, - request_deserializer=nidigitalpattern__pb2.GetPatternPinIndexesRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetPatternPinIndexesResponse.SerializeToString, - ), - 'GetPatternPinList': grpc.unary_unary_rpc_method_handler( - servicer.GetPatternPinList, - request_deserializer=nidigitalpattern__pb2.GetPatternPinListRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetPatternPinListResponse.SerializeToString, - ), - 'GetPatternName': grpc.unary_unary_rpc_method_handler( - servicer.GetPatternName, - request_deserializer=nidigitalpattern__pb2.GetPatternNameRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetPatternNameResponse.SerializeToString, - ), - 'BurstPattern': grpc.unary_unary_rpc_method_handler( - servicer.BurstPattern, - request_deserializer=nidigitalpattern__pb2.BurstPatternRequest.FromString, - response_serializer=nidigitalpattern__pb2.BurstPatternResponse.SerializeToString, - ), - 'BurstPatternSynchronized': grpc.unary_unary_rpc_method_handler( - servicer.BurstPatternSynchronized, - request_deserializer=nidigitalpattern__pb2.BurstPatternSynchronizedRequest.FromString, - response_serializer=nidigitalpattern__pb2.BurstPatternSynchronizedResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=nidigitalpattern__pb2.CommitRequest.FromString, - response_serializer=nidigitalpattern__pb2.CommitResponse.SerializeToString, - ), - 'Initiate': grpc.unary_unary_rpc_method_handler( - servicer.Initiate, - request_deserializer=nidigitalpattern__pb2.InitiateRequest.FromString, - response_serializer=nidigitalpattern__pb2.InitiateResponse.SerializeToString, - ), - 'IsDone': grpc.unary_unary_rpc_method_handler( - servicer.IsDone, - request_deserializer=nidigitalpattern__pb2.IsDoneRequest.FromString, - response_serializer=nidigitalpattern__pb2.IsDoneResponse.SerializeToString, - ), - 'WaitUntilDone': grpc.unary_unary_rpc_method_handler( - servicer.WaitUntilDone, - request_deserializer=nidigitalpattern__pb2.WaitUntilDoneRequest.FromString, - response_serializer=nidigitalpattern__pb2.WaitUntilDoneResponse.SerializeToString, - ), - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=nidigitalpattern__pb2.AbortRequest.FromString, - response_serializer=nidigitalpattern__pb2.AbortResponse.SerializeToString, - ), - 'AbortKeepAlive': grpc.unary_unary_rpc_method_handler( - servicer.AbortKeepAlive, - request_deserializer=nidigitalpattern__pb2.AbortKeepAliveRequest.FromString, - response_serializer=nidigitalpattern__pb2.AbortKeepAliveResponse.SerializeToString, - ), - 'ConfigurePatternLabelHistoryRAMTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePatternLabelHistoryRAMTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerResponse.SerializeToString, - ), - 'ConfigureCycleNumberHistoryRAMTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCycleNumberHistoryRAMTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerResponse.SerializeToString, - ), - 'ConfigureFirstFailureHistoryRAMTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureFirstFailureHistoryRAMTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerResponse.SerializeToString, - ), - 'ConfigureHistoryRAMCyclesToAcquire': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureHistoryRAMCyclesToAcquire, - request_deserializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireResponse.SerializeToString, - ), - 'GetHistoryRAMSampleCount': grpc.unary_unary_rpc_method_handler( - servicer.GetHistoryRAMSampleCount, - request_deserializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountResponse.SerializeToString, - ), - 'FetchHistoryRAMCycleInformation': grpc.unary_unary_rpc_method_handler( - servicer.FetchHistoryRAMCycleInformation, - request_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationRequest.FromString, - response_serializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationResponse.SerializeToString, - ), - 'FetchHistoryRAMCyclePinData': grpc.unary_unary_rpc_method_handler( - servicer.FetchHistoryRAMCyclePinData, - request_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataRequest.FromString, - response_serializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataResponse.SerializeToString, - ), - 'FetchHistoryRAMScanCycleNumber': grpc.unary_unary_rpc_method_handler( - servicer.FetchHistoryRAMScanCycleNumber, - request_deserializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberRequest.FromString, - response_serializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberResponse.SerializeToString, - ), - 'CreateSourceWaveformParallel': grpc.unary_unary_rpc_method_handler( - servicer.CreateSourceWaveformParallel, - request_deserializer=nidigitalpattern__pb2.CreateSourceWaveformParallelRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateSourceWaveformParallelResponse.SerializeToString, - ), - 'CreateSourceWaveformSerial': grpc.unary_unary_rpc_method_handler( - servicer.CreateSourceWaveformSerial, - request_deserializer=nidigitalpattern__pb2.CreateSourceWaveformSerialRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateSourceWaveformSerialResponse.SerializeToString, - ), - 'CreateSourceWaveformFromFileTDMS': grpc.unary_unary_rpc_method_handler( - servicer.CreateSourceWaveformFromFileTDMS, - request_deserializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSResponse.SerializeToString, - ), - 'WriteSourceWaveformBroadcastU32': grpc.unary_unary_rpc_method_handler( - servicer.WriteSourceWaveformBroadcastU32, - request_deserializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Request.FromString, - response_serializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Response.SerializeToString, - ), - 'WriteSourceWaveformSiteUniqueU32': grpc.unary_unary_rpc_method_handler( - servicer.WriteSourceWaveformSiteUniqueU32, - request_deserializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Request.FromString, - response_serializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Response.SerializeToString, - ), - 'WriteSourceWaveformDataFromFileTDMS': grpc.unary_unary_rpc_method_handler( - servicer.WriteSourceWaveformDataFromFileTDMS, - request_deserializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSRequest.FromString, - response_serializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSResponse.SerializeToString, - ), - 'CreateCaptureWaveformParallel': grpc.unary_unary_rpc_method_handler( - servicer.CreateCaptureWaveformParallel, - request_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelResponse.SerializeToString, - ), - 'CreateCaptureWaveformSerial': grpc.unary_unary_rpc_method_handler( - servicer.CreateCaptureWaveformSerial, - request_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialResponse.SerializeToString, - ), - 'CreateCaptureWaveformFromFileDigicapture': grpc.unary_unary_rpc_method_handler( - servicer.CreateCaptureWaveformFromFileDigicapture, - request_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureRequest.FromString, - response_serializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureResponse.SerializeToString, - ), - 'FetchCaptureWaveformU32': grpc.unary_unary_rpc_method_handler( - servicer.FetchCaptureWaveformU32, - request_deserializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Request.FromString, - response_serializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Response.SerializeToString, - ), - 'ExportSignal': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignal, - request_deserializer=nidigitalpattern__pb2.ExportSignalRequest.FromString, - response_serializer=nidigitalpattern__pb2.ExportSignalResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeStartTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeStartTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, - ), - 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableStartTrigger, - request_deserializer=nidigitalpattern__pb2.DisableStartTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.DisableStartTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeConditionalJumpTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeConditionalJumpTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeConditionalJumpTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeConditionalJumpTrigger, - request_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerResponse.SerializeToString, - ), - 'DisableConditionalJumpTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableConditionalJumpTrigger, - request_deserializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerResponse.SerializeToString, - ), - 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareEdgeTrigger, - request_deserializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerRequest.FromString, - response_serializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, - ), - 'WriteSequencerFlag': grpc.unary_unary_rpc_method_handler( - servicer.WriteSequencerFlag, - request_deserializer=nidigitalpattern__pb2.WriteSequencerFlagRequest.FromString, - response_serializer=nidigitalpattern__pb2.WriteSequencerFlagResponse.SerializeToString, - ), - 'WriteSequencerFlagSynchronized': grpc.unary_unary_rpc_method_handler( - servicer.WriteSequencerFlagSynchronized, - request_deserializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedRequest.FromString, - response_serializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedResponse.SerializeToString, - ), - 'ReadSequencerFlag': grpc.unary_unary_rpc_method_handler( - servicer.ReadSequencerFlag, - request_deserializer=nidigitalpattern__pb2.ReadSequencerFlagRequest.FromString, - response_serializer=nidigitalpattern__pb2.ReadSequencerFlagResponse.SerializeToString, - ), - 'WriteSequencerRegister': grpc.unary_unary_rpc_method_handler( - servicer.WriteSequencerRegister, - request_deserializer=nidigitalpattern__pb2.WriteSequencerRegisterRequest.FromString, - response_serializer=nidigitalpattern__pb2.WriteSequencerRegisterResponse.SerializeToString, - ), - 'ReadSequencerRegister': grpc.unary_unary_rpc_method_handler( - servicer.ReadSequencerRegister, - request_deserializer=nidigitalpattern__pb2.ReadSequencerRegisterRequest.FromString, - response_serializer=nidigitalpattern__pb2.ReadSequencerRegisterResponse.SerializeToString, - ), - 'EnableMatchFailCombination': grpc.unary_unary_rpc_method_handler( - servicer.EnableMatchFailCombination, - request_deserializer=nidigitalpattern__pb2.EnableMatchFailCombinationRequest.FromString, - response_serializer=nidigitalpattern__pb2.EnableMatchFailCombinationResponse.SerializeToString, - ), - 'GetSitePassFail': grpc.unary_unary_rpc_method_handler( - servicer.GetSitePassFail, - request_deserializer=nidigitalpattern__pb2.GetSitePassFailRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetSitePassFailResponse.SerializeToString, - ), - 'GetFailCount': grpc.unary_unary_rpc_method_handler( - servicer.GetFailCount, - request_deserializer=nidigitalpattern__pb2.GetFailCountRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetFailCountResponse.SerializeToString, - ), - 'GetPinResultsPinInformation': grpc.unary_unary_rpc_method_handler( - servicer.GetPinResultsPinInformation, - request_deserializer=nidigitalpattern__pb2.GetPinResultsPinInformationRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetPinResultsPinInformationResponse.SerializeToString, - ), - 'GetSiteResultsSiteNumbers': grpc.unary_unary_rpc_method_handler( - servicer.GetSiteResultsSiteNumbers, - request_deserializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersResponse.SerializeToString, - ), - 'FrequencyCounterConfigureMeasurementTime': grpc.unary_unary_rpc_method_handler( - servicer.FrequencyCounterConfigureMeasurementTime, - request_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeRequest.FromString, - response_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeResponse.SerializeToString, - ), - 'FrequencyCounterConfigureMeasurementMode': grpc.unary_unary_rpc_method_handler( - servicer.FrequencyCounterConfigureMeasurementMode, - request_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeRequest.FromString, - response_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeResponse.SerializeToString, - ), - 'FrequencyCounterMeasureFrequency': grpc.unary_unary_rpc_method_handler( - servicer.FrequencyCounterMeasureFrequency, - request_deserializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyRequest.FromString, - response_serializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyResponse.SerializeToString, - ), - 'GetChannelNameFromString': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelNameFromString, - request_deserializer=nidigitalpattern__pb2.GetChannelNameFromStringRequest.FromString, - response_serializer=nidigitalpattern__pb2.GetChannelNameFromStringResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nidigitalpattern_grpc.NiDigital', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiDigital(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Init', - nidigitalpattern__pb2.InitRequest.SerializeToString, - nidigitalpattern__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/InitWithOptions', - nidigitalpattern__pb2.InitWithOptionsRequest.SerializeToString, - nidigitalpattern__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Close', - nidigitalpattern__pb2.CloseRequest.SerializeToString, - nidigitalpattern__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Reset', - nidigitalpattern__pb2.ResetRequest.SerializeToString, - nidigitalpattern__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ResetDevice', - nidigitalpattern__pb2.ResetDeviceRequest.SerializeToString, - nidigitalpattern__pb2.ResetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SelfTest', - nidigitalpattern__pb2.SelfTestRequest.SerializeToString, - nidigitalpattern__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetError', - nidigitalpattern__pb2.GetErrorRequest.SerializeToString, - nidigitalpattern__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClearError', - nidigitalpattern__pb2.ClearErrorRequest.SerializeToString, - nidigitalpattern__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ErrorMessage', - nidigitalpattern__pb2.ErrorMessageRequest.SerializeToString, - nidigitalpattern__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCalibrate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SelfCalibrate', - nidigitalpattern__pb2.SelfCalibrateRequest.SerializeToString, - nidigitalpattern__pb2.SelfCalibrateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt32', - nidigitalpattern__pb2.GetAttributeViInt32Request.SerializeToString, - nidigitalpattern__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt64', - nidigitalpattern__pb2.GetAttributeViInt64Request.SerializeToString, - nidigitalpattern__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViReal64', - nidigitalpattern__pb2.GetAttributeViReal64Request.SerializeToString, - nidigitalpattern__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViString', - nidigitalpattern__pb2.GetAttributeViStringRequest.SerializeToString, - nidigitalpattern__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViSession', - nidigitalpattern__pb2.GetAttributeViSessionRequest.SerializeToString, - nidigitalpattern__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViBoolean', - nidigitalpattern__pb2.GetAttributeViBooleanRequest.SerializeToString, - nidigitalpattern__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt32', - nidigitalpattern__pb2.SetAttributeViInt32Request.SerializeToString, - nidigitalpattern__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt64', - nidigitalpattern__pb2.SetAttributeViInt64Request.SerializeToString, - nidigitalpattern__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViReal64', - nidigitalpattern__pb2.SetAttributeViReal64Request.SerializeToString, - nidigitalpattern__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViString', - nidigitalpattern__pb2.SetAttributeViStringRequest.SerializeToString, - nidigitalpattern__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViSession', - nidigitalpattern__pb2.SetAttributeViSessionRequest.SerializeToString, - nidigitalpattern__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViBoolean', - nidigitalpattern__pb2.SetAttributeViBooleanRequest.SerializeToString, - nidigitalpattern__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetAttribute(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ResetAttribute', - nidigitalpattern__pb2.ResetAttributeRequest.SerializeToString, - nidigitalpattern__pb2.ResetAttributeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadPinMap(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadPinMap', - nidigitalpattern__pb2.LoadPinMapRequest.SerializeToString, - nidigitalpattern__pb2.LoadPinMapResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnableSites(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/EnableSites', - nidigitalpattern__pb2.EnableSitesRequest.SerializeToString, - nidigitalpattern__pb2.EnableSitesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableSites(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DisableSites', - nidigitalpattern__pb2.DisableSitesRequest.SerializeToString, - nidigitalpattern__pb2.DisableSitesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsSiteEnabled(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/IsSiteEnabled', - nidigitalpattern__pb2.IsSiteEnabledRequest.SerializeToString, - nidigitalpattern__pb2.IsSiteEnabledResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreatePinMap(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreatePinMap', - nidigitalpattern__pb2.CreatePinMapRequest.SerializeToString, - nidigitalpattern__pb2.CreatePinMapResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreatePinGroup(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreatePinGroup', - nidigitalpattern__pb2.CreatePinGroupRequest.SerializeToString, - nidigitalpattern__pb2.CreatePinGroupResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateChannelMap(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateChannelMap', - nidigitalpattern__pb2.CreateChannelMapRequest.SerializeToString, - nidigitalpattern__pb2.CreateChannelMapResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MapPinToChannel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/MapPinToChannel', - nidigitalpattern__pb2.MapPinToChannelRequest.SerializeToString, - nidigitalpattern__pb2.MapPinToChannelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EndChannelMap(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/EndChannelMap', - nidigitalpattern__pb2.EndChannelMapRequest.SerializeToString, - nidigitalpattern__pb2.EndChannelMapResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPinName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPinName', - nidigitalpattern__pb2.GetPinNameRequest.SerializeToString, - nidigitalpattern__pb2.GetPinNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetChannelName', - nidigitalpattern__pb2.GetChannelNameRequest.SerializeToString, - nidigitalpattern__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelectFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SelectFunction', - nidigitalpattern__pb2.SelectFunctionRequest.SerializeToString, - nidigitalpattern__pb2.SelectFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadStatic(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ReadStatic', - nidigitalpattern__pb2.ReadStaticRequest.SerializeToString, - nidigitalpattern__pb2.ReadStaticResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteStatic(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteStatic', - nidigitalpattern__pb2.WriteStaticRequest.SerializeToString, - nidigitalpattern__pb2.WriteStaticResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClockGeneratorGenerateClock(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClockGeneratorGenerateClock', - nidigitalpattern__pb2.ClockGeneratorGenerateClockRequest.SerializeToString, - nidigitalpattern__pb2.ClockGeneratorGenerateClockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClockGeneratorInitiate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClockGeneratorInitiate', - nidigitalpattern__pb2.ClockGeneratorInitiateRequest.SerializeToString, - nidigitalpattern__pb2.ClockGeneratorInitiateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClockGeneratorAbort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClockGeneratorAbort', - nidigitalpattern__pb2.ClockGeneratorAbortRequest.SerializeToString, - nidigitalpattern__pb2.ClockGeneratorAbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadSpecifications(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadSpecifications', - nidigitalpattern__pb2.LoadSpecificationsRequest.SerializeToString, - nidigitalpattern__pb2.LoadSpecificationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UnloadSpecifications(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/UnloadSpecifications', - nidigitalpattern__pb2.UnloadSpecificationsRequest.SerializeToString, - nidigitalpattern__pb2.UnloadSpecificationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadLevels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadLevels', - nidigitalpattern__pb2.LoadLevelsRequest.SerializeToString, - nidigitalpattern__pb2.LoadLevelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadTiming(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadTiming', - nidigitalpattern__pb2.LoadTimingRequest.SerializeToString, - nidigitalpattern__pb2.LoadTimingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ApplyLevelsAndTiming(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ApplyLevelsAndTiming', - nidigitalpattern__pb2.ApplyLevelsAndTimingRequest.SerializeToString, - nidigitalpattern__pb2.ApplyLevelsAndTimingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureVoltageLevels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureVoltageLevels', - nidigitalpattern__pb2.ConfigureVoltageLevelsRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureVoltageLevelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureActiveLoadLevels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureActiveLoadLevels', - nidigitalpattern__pb2.ConfigureActiveLoadLevelsRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureActiveLoadLevelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTerminationMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTerminationMode', - nidigitalpattern__pb2.ConfigureTerminationModeRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTerminationModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateTimeSet(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateTimeSet', - nidigitalpattern__pb2.CreateTimeSetRequest.SerializeToString, - nidigitalpattern__pb2.CreateTimeSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetPeriod(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetPeriod', - nidigitalpattern__pb2.ConfigureTimeSetPeriodRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetPeriodResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetDriveEdges(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges', - nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetCompareEdgesStrobe(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe', - nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetDriveFormat(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveFormat', - nidigitalpattern__pb2.ConfigureTimeSetDriveFormatRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetDriveFormatResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAllTimeSets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DeleteAllTimeSets', - nidigitalpattern__pb2.DeleteAllTimeSetsRequest.SerializeToString, - nidigitalpattern__pb2.DeleteAllTimeSetsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetEdgeMultiplier(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdgeMultiplier', - nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetDriveEdges2x(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges2x', - nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetCompareEdgesStrobe2x(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe2x', - nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTimeSetEdge(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdge', - nidigitalpattern__pb2.ConfigureTimeSetEdgeRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureTimeSetEdgeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTimeSetPeriod(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetPeriod', - nidigitalpattern__pb2.GetTimeSetPeriodRequest.SerializeToString, - nidigitalpattern__pb2.GetTimeSetPeriodResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTimeSetEdge(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdge', - nidigitalpattern__pb2.GetTimeSetEdgeRequest.SerializeToString, - nidigitalpattern__pb2.GetTimeSetEdgeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTimeSetEdgeMultiplier(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdgeMultiplier', - nidigitalpattern__pb2.GetTimeSetEdgeMultiplierRequest.SerializeToString, - nidigitalpattern__pb2.GetTimeSetEdgeMultiplierResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTimeSetDriveFormat(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetDriveFormat', - nidigitalpattern__pb2.GetTimeSetDriveFormatRequest.SerializeToString, - nidigitalpattern__pb2.GetTimeSetDriveFormatResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTimeSetName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetName', - nidigitalpattern__pb2.GetTimeSetNameRequest.SerializeToString, - nidigitalpattern__pb2.GetTimeSetNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TDR(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/TDR', - nidigitalpattern__pb2.TDRRequest.SerializeToString, - nidigitalpattern__pb2.TDRResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ApplyTDROffsets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ApplyTDROffsets', - nidigitalpattern__pb2.ApplyTDROffsetsRequest.SerializeToString, - nidigitalpattern__pb2.ApplyTDROffsetsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureOutputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureOutputFunction', - nidigitalpattern__pb2.PPMUConfigureOutputFunctionRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureOutputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureApertureTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureApertureTime', - nidigitalpattern__pb2.PPMUConfigureApertureTimeRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureApertureTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureVoltageLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLevel', - nidigitalpattern__pb2.PPMUConfigureVoltageLevelRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureVoltageLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureCurrentLimit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimit', - nidigitalpattern__pb2.PPMUConfigureCurrentLimitRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureCurrentLimitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureCurrentLimitRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimitRange', - nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureCurrentLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevel', - nidigitalpattern__pb2.PPMUConfigureCurrentLevelRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureCurrentLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureCurrentLevelRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevelRange', - nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUConfigureVoltageLimits(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLimits', - nidigitalpattern__pb2.PPMUConfigureVoltageLimitsRequest.SerializeToString, - nidigitalpattern__pb2.PPMUConfigureVoltageLimitsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUSource(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUSource', - nidigitalpattern__pb2.PPMUSourceRequest.SerializeToString, - nidigitalpattern__pb2.PPMUSourceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PPMUMeasure(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUMeasure', - nidigitalpattern__pb2.PPMUMeasureRequest.SerializeToString, - nidigitalpattern__pb2.PPMUMeasureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadPattern(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadPattern', - nidigitalpattern__pb2.LoadPatternRequest.SerializeToString, - nidigitalpattern__pb2.LoadPatternResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UnloadAllPatterns(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/UnloadAllPatterns', - nidigitalpattern__pb2.UnloadAllPatternsRequest.SerializeToString, - nidigitalpattern__pb2.UnloadAllPatternsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureStartLabel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureStartLabel', - nidigitalpattern__pb2.ConfigureStartLabelRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureStartLabelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePatternBurstSites(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigurePatternBurstSites', - nidigitalpattern__pb2.ConfigurePatternBurstSitesRequest.SerializeToString, - nidigitalpattern__pb2.ConfigurePatternBurstSitesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPatternPinIndexes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPatternPinIndexes', - nidigitalpattern__pb2.GetPatternPinIndexesRequest.SerializeToString, - nidigitalpattern__pb2.GetPatternPinIndexesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPatternPinList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPatternPinList', - nidigitalpattern__pb2.GetPatternPinListRequest.SerializeToString, - nidigitalpattern__pb2.GetPatternPinListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPatternName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPatternName', - nidigitalpattern__pb2.GetPatternNameRequest.SerializeToString, - nidigitalpattern__pb2.GetPatternNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def BurstPattern(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/BurstPattern', - nidigitalpattern__pb2.BurstPatternRequest.SerializeToString, - nidigitalpattern__pb2.BurstPatternResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def BurstPatternSynchronized(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/BurstPatternSynchronized', - nidigitalpattern__pb2.BurstPatternSynchronizedRequest.SerializeToString, - nidigitalpattern__pb2.BurstPatternSynchronizedResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Commit', - nidigitalpattern__pb2.CommitRequest.SerializeToString, - nidigitalpattern__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Initiate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Initiate', - nidigitalpattern__pb2.InitiateRequest.SerializeToString, - nidigitalpattern__pb2.InitiateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsDone(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/IsDone', - nidigitalpattern__pb2.IsDoneRequest.SerializeToString, - nidigitalpattern__pb2.IsDoneResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitUntilDone(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WaitUntilDone', - nidigitalpattern__pb2.WaitUntilDoneRequest.SerializeToString, - nidigitalpattern__pb2.WaitUntilDoneResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Abort', - nidigitalpattern__pb2.AbortRequest.SerializeToString, - nidigitalpattern__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AbortKeepAlive(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/AbortKeepAlive', - nidigitalpattern__pb2.AbortKeepAliveRequest.SerializeToString, - nidigitalpattern__pb2.AbortKeepAliveResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePatternLabelHistoryRAMTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigurePatternLabelHistoryRAMTrigger', - nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCycleNumberHistoryRAMTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureCycleNumberHistoryRAMTrigger', - nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureFirstFailureHistoryRAMTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureFirstFailureHistoryRAMTrigger', - nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureHistoryRAMCyclesToAcquire(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureHistoryRAMCyclesToAcquire', - nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetHistoryRAMSampleCount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetHistoryRAMSampleCount', - nidigitalpattern__pb2.GetHistoryRAMSampleCountRequest.SerializeToString, - nidigitalpattern__pb2.GetHistoryRAMSampleCountResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchHistoryRAMCycleInformation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCycleInformation', - nidigitalpattern__pb2.FetchHistoryRAMCycleInformationRequest.SerializeToString, - nidigitalpattern__pb2.FetchHistoryRAMCycleInformationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchHistoryRAMCyclePinData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCyclePinData', - nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataRequest.SerializeToString, - nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchHistoryRAMScanCycleNumber(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMScanCycleNumber', - nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberRequest.SerializeToString, - nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateSourceWaveformParallel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformParallel', - nidigitalpattern__pb2.CreateSourceWaveformParallelRequest.SerializeToString, - nidigitalpattern__pb2.CreateSourceWaveformParallelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateSourceWaveformSerial(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformSerial', - nidigitalpattern__pb2.CreateSourceWaveformSerialRequest.SerializeToString, - nidigitalpattern__pb2.CreateSourceWaveformSerialResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateSourceWaveformFromFileTDMS(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformFromFileTDMS', - nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSRequest.SerializeToString, - nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteSourceWaveformBroadcastU32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformBroadcastU32', - nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Request.SerializeToString, - nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteSourceWaveformSiteUniqueU32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformSiteUniqueU32', - nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Request.SerializeToString, - nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteSourceWaveformDataFromFileTDMS(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformDataFromFileTDMS', - nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSRequest.SerializeToString, - nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateCaptureWaveformParallel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformParallel', - nidigitalpattern__pb2.CreateCaptureWaveformParallelRequest.SerializeToString, - nidigitalpattern__pb2.CreateCaptureWaveformParallelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateCaptureWaveformSerial(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformSerial', - nidigitalpattern__pb2.CreateCaptureWaveformSerialRequest.SerializeToString, - nidigitalpattern__pb2.CreateCaptureWaveformSerialResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateCaptureWaveformFromFileDigicapture(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformFromFileDigicapture', - nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureRequest.SerializeToString, - nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchCaptureWaveformU32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchCaptureWaveformU32', - nidigitalpattern__pb2.FetchCaptureWaveformU32Request.SerializeToString, - nidigitalpattern__pb2.FetchCaptureWaveformU32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ExportSignal', - nidigitalpattern__pb2.ExportSignalRequest.SerializeToString, - nidigitalpattern__pb2.ExportSignalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeStartTrigger', - nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeStartTrigger', - nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DisableStartTrigger', - nidigitalpattern__pb2.DisableStartTriggerRequest.SerializeToString, - nidigitalpattern__pb2.DisableStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeConditionalJumpTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeConditionalJumpTrigger', - nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeConditionalJumpTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeConditionalJumpTrigger', - nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerRequest.SerializeToString, - nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableConditionalJumpTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DisableConditionalJumpTrigger', - nidigitalpattern__pb2.DisableConditionalJumpTriggerRequest.SerializeToString, - nidigitalpattern__pb2.DisableConditionalJumpTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareEdgeTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SendSoftwareEdgeTrigger', - nidigitalpattern__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - nidigitalpattern__pb2.SendSoftwareEdgeTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteSequencerFlag(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlag', - nidigitalpattern__pb2.WriteSequencerFlagRequest.SerializeToString, - nidigitalpattern__pb2.WriteSequencerFlagResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteSequencerFlagSynchronized(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlagSynchronized', - nidigitalpattern__pb2.WriteSequencerFlagSynchronizedRequest.SerializeToString, - nidigitalpattern__pb2.WriteSequencerFlagSynchronizedResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadSequencerFlag(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ReadSequencerFlag', - nidigitalpattern__pb2.ReadSequencerFlagRequest.SerializeToString, - nidigitalpattern__pb2.ReadSequencerFlagResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteSequencerRegister(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSequencerRegister', - nidigitalpattern__pb2.WriteSequencerRegisterRequest.SerializeToString, - nidigitalpattern__pb2.WriteSequencerRegisterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadSequencerRegister(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ReadSequencerRegister', - nidigitalpattern__pb2.ReadSequencerRegisterRequest.SerializeToString, - nidigitalpattern__pb2.ReadSequencerRegisterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnableMatchFailCombination(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/EnableMatchFailCombination', - nidigitalpattern__pb2.EnableMatchFailCombinationRequest.SerializeToString, - nidigitalpattern__pb2.EnableMatchFailCombinationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSitePassFail(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetSitePassFail', - nidigitalpattern__pb2.GetSitePassFailRequest.SerializeToString, - nidigitalpattern__pb2.GetSitePassFailResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetFailCount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetFailCount', - nidigitalpattern__pb2.GetFailCountRequest.SerializeToString, - nidigitalpattern__pb2.GetFailCountResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPinResultsPinInformation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPinResultsPinInformation', - nidigitalpattern__pb2.GetPinResultsPinInformationRequest.SerializeToString, - nidigitalpattern__pb2.GetPinResultsPinInformationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSiteResultsSiteNumbers(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetSiteResultsSiteNumbers', - nidigitalpattern__pb2.GetSiteResultsSiteNumbersRequest.SerializeToString, - nidigitalpattern__pb2.GetSiteResultsSiteNumbersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FrequencyCounterConfigureMeasurementTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementTime', - nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeRequest.SerializeToString, - nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FrequencyCounterConfigureMeasurementMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementMode', - nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeRequest.SerializeToString, - nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FrequencyCounterMeasureFrequency(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FrequencyCounterMeasureFrequency', - nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyRequest.SerializeToString, - nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelNameFromString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetChannelNameFromString', - nidigitalpattern__pb2.GetChannelNameFromStringRequest.SerializeToString, - nidigitalpattern__pb2.GetChannelNameFromStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nidigital/nidigital/session.py b/generated/nidigital/nidigital/session.py deleted file mode 100644 index 5e2ca29c31..0000000000 --- a/generated/nidigital/nidigital/session.py +++ /dev/null @@ -1,3991 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nidigital._attributes as _attributes -import nidigital._converters as _converters -import nidigital._library_interpreter as _library_interpreter -import nidigital.enums as enums -import nidigital.errors as errors - -import nidigital.history_ram_cycle_information as history_ram_cycle_information # noqa: F401 - -import hightime -import nitclk - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Burst(object): - def __init__(self, session): - self._session = session - self._session._initiate() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-Digital Pattern Driver sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - active_load_ioh = _attributes.AttributeViReal64(1150013) - '''Type: float - - Specifies the current that the DUT sources to the active load while outputting a voltage above VCOM. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_load_ioh` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.active_load_ioh` - ''' - active_load_iol = _attributes.AttributeViReal64(1150012) - '''Type: float - - Specifies the current that the DUT sinks from the active load while outputting a voltage below VCOM. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_load_iol` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.active_load_iol` - ''' - active_load_vcom = _attributes.AttributeViReal64(1150014) - '''Type: float - - Specifies the voltage level at which the active load circuit switches between sourcing current and sinking current. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].active_load_vcom` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.active_load_vcom` - ''' - cache = _attributes.AttributeViBoolean(1050004) - '''Type: bool - - Specifies whether to cache the value of properties. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument. This significantly increases execution speed. Caching is always enabled in the driver, regardless of the value of this property. - ''' - channel_count = _attributes.AttributeViInt32(1050203) - '''Type: int - - Returns the number of channels that the specific digital pattern instrument driver supports. - ''' - clock_generator_frequency = _attributes.AttributeViReal64(1150073) - '''Type: float - - Specifies the frequency for the clock generator. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].clock_generator_frequency` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.clock_generator_frequency` - ''' - clock_generator_is_running = _attributes.AttributeViBoolean(1150074) - '''Type: bool - - Indicates whether the clock generator is running. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].clock_generator_is_running` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.clock_generator_is_running` - ''' - conditional_jump_trigger_terminal_name = _attributes.AttributeViString(1150040) - '''Type: str - - Specifies the terminal name from which the exported conditional jump trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the conditional jump trigger instance asserts on the digital pattern instrument. - - Tip: - This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_terminal_name` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.conditional_jump_trigger_terminal_name` - ''' - conditional_jump_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150033) - '''Type: enums.TriggerType - - Disables the conditional jump trigger or configures it for either hardware triggering or software triggering. The default value is TriggerType.NONE. - - +--------------------------+------------------------------------------------------------------+ - | Valid Values: | | - +==========================+==================================================================+ - | TriggerType.NONE | Disables the conditional jump trigger. | - +--------------------------+------------------------------------------------------------------+ - | TriggerType.DIGITAL_EDGE | Configures the conditional jump trigger for hardware triggering. | - +--------------------------+------------------------------------------------------------------+ - | TriggerType.SOFTWARE | Configures the conditional jump trigger for software triggering. | - +--------------------------+------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_type` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.conditional_jump_trigger_type` - ''' - cycle_number_history_ram_trigger_cycle_number = _attributes.AttributeViInt64(1150044) - '''Type: int - - Specifies the cycle number on which History RAM starts acquiring pattern information when configured for a cycle number trigger. - ''' - digital_edge_conditional_jump_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEdge, 1150035) - '''Type: enums.DigitalEdge - - Configures the active edge of the incoming trigger signal for the conditional jump trigger instance. The default value is DigitalEdge.RISING. - - +---------------------+---------------------------------------------------------------+ - | Valid Values: | | - +=====================+===============================================================+ - | DigitalEdge.RISING | Specifies the signal transition from low level to high level. | - +---------------------+---------------------------------------------------------------+ - | DigitalEdge.FALLING | Specifies the signal transition from high level to low level. | - +---------------------+---------------------------------------------------------------+ - - Tip: - This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_edge` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_edge` - ''' - digital_edge_conditional_jump_trigger_source = _attributes.AttributeViString(1150034) - '''Type: str - - Configures the digital trigger source terminal for a conditional jump trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/ConditionalJumpTrigger0. The default value is VI_NULL. - - +----------------------------------------------+ - | Valid Values: | - +==============================================+ - | String identifier to any valid terminal name | - +----------------------------------------------+ - - Tip: - This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_source` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_source` - ''' - digital_edge_rio_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEdge, 1150088) - '''Type: enums.DigitalEdge - - Configures the active edge of the incoming trigger signal for the RIO trigger instance. The default value is DigitalEdge.RISING. - - +---------------------+---------------------------------------------------------------+ - | Valid Values: | | - +=====================+===============================================================+ - | DigitalEdge.RISING | Specifies the signal transition from low level to high level. | - +---------------------+---------------------------------------------------------------+ - | DigitalEdge.FALLING | Specifies the signal transition from high level to low level. | - +---------------------+---------------------------------------------------------------+ - - Tip: - This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_edge` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_rio_trigger_edge` - ''' - digital_edge_rio_trigger_source = _attributes.AttributeViString(1150087) - '''Type: str - - Configures the digital trigger source terminal for a RIO trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/RIOTrigger0. The default value is VI_NULL. - - +----------------------------------------------+ - | Valid Values: | - +==============================================+ - | String identifier to any valid terminal name | - +----------------------------------------------+ - - Tip: - This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_source` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.digital_edge_rio_trigger_source` - ''' - digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEdge, 1150031) - '''Type: enums.DigitalEdge - - Specifies the active edge for the Start trigger. This property is used when the start_trigger_type property is set to Digital Edge. - - +---------------------+-------------------------------------------------------------------------------+ - | Defined Values: | | - +=====================+===============================================================================+ - | DigitalEdge.RISING | Asserts the trigger when the signal transitions from low level to high level. | - +---------------------+-------------------------------------------------------------------------------+ - | DigitalEdge.FALLING | Asserts the trigger when the signal transitions from high level to low level. | - +---------------------+-------------------------------------------------------------------------------+ - ''' - digital_edge_start_trigger_source = _attributes.AttributeViString(1150030) - '''Type: str - - Specifies the source terminal for the Start trigger. This property is used when the start_trigger_type property is set to Digital Edge. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/StartTrigger. - - +-----------------+--------------------+ - | Defined Values: | | - +=================+====================+ - | PXI_Trig0 | PXI trigger line 0 | - +-----------------+--------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +-----------------+--------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +-----------------+--------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +-----------------+--------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +-----------------+--------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +-----------------+--------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +-----------------+--------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +-----------------+--------------------+ - ''' - driver_setup = _attributes.AttributeViString(1050007) - '''Type: str - - This property returns initial values for NI-Digital Pattern Driver properties as a string. - ''' - exported_conditional_jump_trigger_output_terminal = _attributes.AttributeViString(1150036) - '''Type: str - - Specifies the terminal to output the exported signal of the specified instance of the conditional jump trigger. The default value is VI_NULL. - - +---------------+-------------------------+ - | Valid Values: | | - +===============+=========================+ - | VI_NULL ("") | Returns an empty string | - +---------------+-------------------------+ - | PXI_Trig0 | PXI trigger line 0 | - +---------------+-------------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +---------------+-------------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +---------------+-------------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +---------------+-------------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +---------------+-------------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +---------------+-------------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +---------------+-------------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +---------------+-------------------------+ - - Tip: - This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. - - Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].exported_conditional_jump_trigger_output_terminal` - - To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.exported_conditional_jump_trigger_output_terminal` - ''' - exported_pattern_opcode_event_output_terminal = _attributes.AttributeViString(1150041) - '''Type: str - - Specifies the destination terminal for exporting the Pattern Opcode Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - +-----------------+--------------------+ - | Defined Values: | | - +=================+====================+ - | PXI_Trig0 | PXI trigger line 0 | - +-----------------+--------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +-----------------+--------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +-----------------+--------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +-----------------+--------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +-----------------+--------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +-----------------+--------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +-----------------+--------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +-----------------+--------------------+ - - Tip: - This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. - - Example: :py:attr:`my_session.pattern_opcode_events[ ... ].exported_pattern_opcode_event_output_terminal` - - To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.exported_pattern_opcode_event_output_terminal` - ''' - exported_rio_event_output_terminal = _attributes.AttributeViString(1150090) - '''Type: str - - Specifies the destination terminal for exporting the RIO Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - +-----------------+--------------------+ - | Defined Values: | | - +=================+====================+ - | PXI_Trig0 | PXI trigger line 0 | - +-----------------+--------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +-----------------+--------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +-----------------+--------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +-----------------+--------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +-----------------+--------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +-----------------+--------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +-----------------+--------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +-----------------+--------------------+ - - Tip: - This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_events to specify a subset. - - Example: :py:attr:`my_session.rio_events[ ... ].exported_rio_event_output_terminal` - - To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.exported_rio_event_output_terminal` - ''' - exported_start_trigger_output_terminal = _attributes.AttributeViString(1150032) - '''Type: str - - Specifies the destination terminal for exporting the Start trigger. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. - - +----------------------+-----------------------------+ - | Defined Values: | | - +======================+=============================+ - | Do not export signal | The signal is not exported. | - +----------------------+-----------------------------+ - | PXI_Trig0 | PXI trigger line 0 | - +----------------------+-----------------------------+ - | PXI_Trig1 | PXI trigger line 1 | - +----------------------+-----------------------------+ - | PXI_Trig2 | PXI trigger line 2 | - +----------------------+-----------------------------+ - | PXI_Trig3 | PXI trigger line 3 | - +----------------------+-----------------------------+ - | PXI_Trig4 | PXI trigger line 4 | - +----------------------+-----------------------------+ - | PXI_Trig5 | PXI trigger line 5 | - +----------------------+-----------------------------+ - | PXI_Trig6 | PXI trigger line 6 | - +----------------------+-----------------------------+ - | PXI_Trig7 | PXI trigger line 7 | - +----------------------+-----------------------------+ - ''' - frequency_counter_hysteresis_enabled = _attributes.AttributeViBoolean(1150085) - '''Type: bool - - Specifies whether hysteresis is enabled for the frequency counters of the digital pattern instrument. - ''' - frequency_counter_measurement_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FrequencyMeasurementMode, 1150084) - '''Type: enums.FrequencyMeasurementMode - - Determines how the frequency counters of the digital pattern instrument make measurements. - - +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Valid Values: | | - +===================================+=======================================================================================================================================================================================================================================================================================================================================================================================+ - | FrequencyMeasurementMode.BANKED | Each discrete frequency counter is mapped to specific channels and makes frequency measurements from only those channels. Use banked mode when you need access to the full measure frequency range of the instrument. **Note:** If you request frequency measurements from multiple channels within the same bank, the measurements are made in series for the channels in that bank. | - +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | FrequencyMeasurementMode.PARALLEL | All discrete frequency counters make frequency measurements from all channels in parallel with one another. Use parallel mode to increase the speed of frequency measurements if you do not need access to the full measure frequency range of the instrument; in parallel mode, you can also add frequency_counter_hysteresis_enabled to reduce measurement noise. | - +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - frequency_counter_measurement_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150069) - '''Type: float in seconds or datetime.timedelta - - Specifies the measurement time for the frequency counter. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].frequency_counter_measurement_time` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.frequency_counter_measurement_time` - ''' - group_capabilities = _attributes.AttributeViString(1050401) - '''Type: str - - Returns a string that contains a comma-separated list of class-extension groups that the driver implements. - ''' - halt_on_keep_alive_opcode = _attributes.AttributeViBoolean(1150062) - '''Type: bool - - Specifies whether keep_alive opcodes should behave like halt opcodes. - ''' - history_ram_buffer_size_per_site = _attributes.AttributeViInt64(1150079) - '''Type: int - - Specifies the size, in samples, of the host memory buffer. The default value is 32000. - - +---------------+ - | Valid Values: | - +===============+ - | 0-INT64_MAX | - +---------------+ - ''' - history_ram_cycles_to_acquire = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.HistoryRAMCyclesToAcquire, 1150047) - '''Type: enums.HistoryRAMCyclesToAcquire - - Configures which cycles History RAM acquires after the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. - - +----------------------------------+-----------------------------------------------------------------------------------+ - | Defined Values: | | - +==================================+===================================================================================+ - | HistoryRAMCyclesToAcquire.FAILED | Only acquires cycles that fail a compare after the triggering conditions are met. | - +----------------------------------+-----------------------------------------------------------------------------------+ - | HistoryRAMCyclesToAcquire.ALL | Acquires all cycles after the triggering conditions are met. | - +----------------------------------+-----------------------------------------------------------------------------------+ - ''' - history_ram_max_samples_to_acquire_per_site = _attributes.AttributeViInt32(1150077) - '''Type: int - - Specifies the maximum number of History RAM samples to acquire per site. If the property is set to -1, it will acquire until the History RAM buffer is full. - ''' - history_ram_number_of_samples_is_finite = _attributes.AttributeViBoolean(1150078) - '''Type: bool - - Specifies whether the instrument acquires a finite number of History Ram samples or acquires continuously. The maximum number of samples that will be acquired when this property is set to True is determined by the instrument History RAM depth specification and the History RAM Max Samples to Acquire Per Site property. The default value is True. - - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Valid Values: | | - +===============+======================================================================================================================================================+ - | True | Specifies that History RAM results will not stream into the host buffer until a History RAM fetch API is called. | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ - | False | Specifies that History RAM results will automatically start streaming into a host buffer after a pattern is burst and the History RAM has triggered. | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - history_ram_pretrigger_samples = _attributes.AttributeViInt32(1150048) - '''Type: int - - Specifies the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. - ''' - history_ram_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.HistoryRAMTriggerType, 1150043) - '''Type: enums.HistoryRAMTriggerType - - Specifies the type of trigger condition on which History RAM starts acquiring pattern information. - - +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +=====================================+=====================================================================================================================================+ - | HistoryRAMTriggerType.FIRST_FAILURE | Starts acquiring pattern information in History RAM on the first failed cycle in a pattern burst. | - +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - | HistoryRAMTriggerType.CYCLE_NUMBER | Starts acquiring pattern information in History RAM starting from a specified cycle number. | - +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - | HistoryRAMTriggerType.PATTERN_LABEL | Starts acquiring pattern information in History RAM starting from a specified pattern label, augmented by vector and cycle offsets. | - +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - Returns a string that contains the firmware revision information for the digital pattern instrument. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.instrument_firmware_revision` - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - Returns a string ("National Instruments") that contains the name of the manufacturer of the digital pattern instrument. - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - Returns a string that contains the model number or name of the digital pattern instrument. - ''' - interchange_check = _attributes.AttributeViBoolean(1050021) - '''Type: bool - - This property is not supported. - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Returns a string that contains the resource descriptor that the NI-Digital Pattern Driver uses to identify the digital pattern instrument. - ''' - is_keep_alive_active = _attributes.AttributeViBoolean(1150063) - '''Type: bool - - Returns True if the digital pattern instrument is driving the keep alive pattern. - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - Returns a string containing the logical name that you specified when opening the current IVI session. This property is not supported. - ''' - mask_compare = _attributes.AttributeViBoolean(1150060) - '''Type: bool - - Specifies whether the pattern comparisons are masked or not. When set to True for a specified pin, failures on that pin will be masked. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].mask_compare` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.mask_compare` - ''' - pattern_label_history_ram_trigger_cycle_offset = _attributes.AttributeViInt64(1150045) - '''Type: int - - Specifies the number of cycles that follow the specified pattern label and vector offset, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. - ''' - pattern_label_history_ram_trigger_label = _attributes.AttributeViString(1150046) - '''Type: str - - Specifies the pattern label, augmented by the vector and cycle offset, to determine the point where History RAM will start acquiring pattern information when configured for a pattern label trigger. - ''' - pattern_label_history_ram_trigger_vector_offset = _attributes.AttributeViInt64(1150052) - '''Type: int - - Specifies the number of vectors that follow the specified pattern label, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. - ''' - pattern_opcode_event_terminal_name = _attributes.AttributeViString(1150042) - '''Type: str - - Specifies the terminal name for the output trigger signal of the specified instance of a Pattern Opcode Event. You can use this terminal name as an input signal source for another trigger. - - Tip: - This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. - - Example: :py:attr:`my_session.pattern_opcode_events[ ... ].pattern_opcode_event_terminal_name` - - To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.pattern_opcode_event_terminal_name` - ''' - ppmu_allow_extended_voltage_range = _attributes.AttributeViBoolean(1150076) - '''Type: bool - - Enables the instrument to operate in additional voltage ranges where instrument specifications may differ from standard ranges. When set to True, this property enables extended voltage range operation. Review specification deviations for application suitability before using this property. NI recommends setting this property to False when not using the extended voltage range to avoid unintentional use of this range. The extended voltage range is supported only for PPMU, with the output method set to DC Voltage. A voltage glitch may occur when you change the PPMU output voltage from a standard range to the extended voltage range, or vice-versa, while the PPMU is sourcing. NI recommends temporarily changing the selected_function property to Off before sourcing a voltage level that requires a range change. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_allow_extended_voltage_range` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_allow_extended_voltage_range` - ''' - ppmu_aperture_time = _attributes.AttributeViReal64(1150037) - '''Type: float - - Specifies the measurement aperture time for the PPMU. The ppmu_aperture_time_units property sets the units of the PPMU aperture time. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_aperture_time` - ''' - ppmu_aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PPMUApertureTimeUnits, 1150038) - '''Type: enums.PPMUApertureTimeUnits - - Specifies the units of the measurement aperture time for the PPMU. - - +-------------------------------+-----------------------------------------+ - | Defined Values: | | - +===============================+=========================================+ - | PPMUApertureTimeUnits.SECONDS | Specifies the aperture time in seconds. | - +-------------------------------+-----------------------------------------+ - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time_units` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_aperture_time_units` - ''' - ppmu_current_level = _attributes.AttributeViReal64(1150019) - '''Type: float - - Specifies the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. Specify valid values for the current level using the PPMU_ConfigureCurrentLevelRange method. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_level` - ''' - ppmu_current_level_range = _attributes.AttributeViReal64(1150020) - '''Type: float - - Specifies the range of valid values for the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level_range` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_level_range` - ''' - ppmu_current_limit = _attributes.AttributeViReal64(1150054) - '''Type: float - - Specifies the current limit, in amps, that the output cannot exceed while the PPMU forces voltage to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Voltage. The PXIe-6570/6571 does not support the ppmu_current_limit property and only allows configuration of the ppmu_current_limit_range property. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit` - ''' - ppmu_current_limit_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PPMUCurrentLimitBehavior, 1150064) - '''Type: enums.PPMUCurrentLimitBehavior - - Specifies how the output should behave when the current limit is reached. - - +-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +===================================+=========================================================================================================================================+ - | PPMUCurrentLimitBehavior.REGULATE | Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. | - +-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_behavior` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit_behavior` - ''' - ppmu_current_limit_range = _attributes.AttributeViReal64(1150017) - '''Type: float - - Specifies the valid range, in amps, to which the current limit can be set while the PPMU forces voltage to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Voltage. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_range` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit_range` - ''' - ppmu_current_limit_supported = _attributes.AttributeViBoolean(1150055) - '''Type: bool - - Returns whether the device supports configuration of a current limit when you set the ppmu_output_function property to DC Voltage. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_supported` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_current_limit_supported` - ''' - ppmu_output_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PPMUOutputFunction, 1150015) - '''Type: enums.PPMUOutputFunction - - Specifies whether the PPMU forces voltage or current to the DUT. - - +----------------------------+--------------------------------------------+ - | Defined Values: | | - +============================+============================================+ - | PPMUOutputFunction.VOLTAGE | Specifies the output method to DC Voltage. | - +----------------------------+--------------------------------------------+ - | PPMUOutputFunction.CURRENT | Specifies the output method to DC Current. | - +----------------------------+--------------------------------------------+ - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_output_function` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_output_function` - ''' - ppmu_voltage_level = _attributes.AttributeViReal64(1150016) - '''Type: float - - Specifies the voltage level, in volts, that the PPMU forces to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Voltage. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_level` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_voltage_level` - ''' - ppmu_voltage_limit_high = _attributes.AttributeViReal64(1150022) - '''Type: float - - Specifies the maximum voltage limit, or high clamp voltage (V :sub:`CH` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_high` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_voltage_limit_high` - ''' - ppmu_voltage_limit_low = _attributes.AttributeViReal64(1150021) - '''Type: float - - Specifies the minimum voltage limit, or low clamp voltage (V :sub:`CL` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_low` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.ppmu_voltage_limit_low` - ''' - query_instrument_status = _attributes.AttributeViBoolean(1050003) - '''Type: bool - - Specifies whether the NI-Digital Pattern Driver queries the digital pattern instrument status after each operation. The instrument status is always queried, regardless of the property setting. - ''' - range_check = _attributes.AttributeViBoolean(1050002) - '''Type: bool - - Checks the range and validates parameter and property values you pass to NI-Digital Pattern Driver methods. Ranges are always checked, regardless of the property setting. - ''' - record_coercions = _attributes.AttributeViBoolean(1050006) - '''Type: bool - - Specifies whether the IVI engine keeps a list of the value coercions it makes for integer and real type properties. Enabling record value coercions is not supported. - ''' - rio_event_terminal_name = _attributes.AttributeViString(1150091) - '''Type: str - - Specifies the terminal name for the output signal of the specified instance of a RIO Event. You can use this terminal name as an input signal source for another trigger. - - Tip: - This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_events to specify a subset. - - Example: :py:attr:`my_session.rio_events[ ... ].rio_event_terminal_name` - - To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.rio_event_terminal_name` - ''' - rio_trigger_terminal_name = _attributes.AttributeViString(1150089) - '''Type: str - - Specifies the terminal name from which the exported RIO trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the RIO trigger instance asserts on the digital pattern instrument. - - Tip: - This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_terminal_name` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.rio_trigger_terminal_name` - ''' - rio_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150086) - '''Type: enums.TriggerType - - Disables the rio trigger or configures it for hardware triggering. The default value is TriggerType.NONE. - - +--------------------------+------------------------------------------------------------------+ - | Valid Values: | | - +==========================+==================================================================+ - | TriggerType.NONE | Disables the conditional jump trigger. | - +--------------------------+------------------------------------------------------------------+ - | TriggerType.DIGITAL_EDGE | Configures the conditional jump trigger for hardware triggering. | - +--------------------------+------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. - - Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_type` - - To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.rio_trigger_type` - ''' - selected_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SelectedFunction, 1150004) - '''Type: enums.SelectedFunction - - Caution: In the Disconnect state, some I/O protection and sensing circuitry remains exposed. Do not subject the instrument to voltage beyond its operating range. - - Specifies whether digital pattern instrument channels are controlled by the pattern sequencer or PPMU, disconnected, or off. - - +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +=============================+==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | SelectedFunction.DIGITAL | The pin is connected to the driver, comparator, and active load methods. The PPMU is not sourcing, but can make voltage measurements. The state of the digital pin driver when you change the selected_function to Digital is determined by the most recent call to the write_static method or the last vector of the most recently executed pattern burst, whichever happened last. Use the write_static method to control the state of the digital pin driver through software. Use the burst_pattern method to control the state of the digital pin driver through a pattern. Set the **selectDigitalFunction** parameter of the burst_pattern method to True to automatically switch the selected_function of the pins in the pattern burst to SelectedFunction.DIGITAL. | - +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SelectedFunction.PPMU | The pin is connected to the PPMU. The driver, comparator, and active load are off while this method is selected. Call the ppmu_source method to source a voltage or current. The ppmu_source method automatically switches the selected_function to the PPMU state and starts sourcing from the PPMU. Changing the selected_function to SelectedFunction.DISCONNECT, SelectedFunction.OFF, or SelectedFunction.DIGITAL causes the PPMU to stop sourcing. If you set the selected_function property to PPMU, the PPMU is initially not sourcing. | - +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SelectedFunction.OFF | The pin is electrically connected, and the PPMU and digital pin driver are off while this method is selected. | - +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SelectedFunction.DISCONNECT | The pin is electrically disconnected from instrument methods. Selecting this method causes the PPMU to stop sourcing prior to disconnecting the pin. | - +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: You can make PPMU voltage measurements using the ppmu_measure method from within any selected_function. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].selected_function` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.selected_function` - ''' - sequencer_flag_terminal_name = _attributes.AttributeViString(1150059) - '''Type: str - - Specifies the terminal name for the output trigger signal of the Sequencer Flags trigger. You can use this terminal name as an input signal source for another trigger. - ''' - serial_number = _attributes.AttributeViString(1150001) - '''Type: str - - Returns the serial number of the device. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].serial_number` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.serial_number` - ''' - simulate = _attributes.AttributeViBoolean(1050005) - '''Type: bool - - Simulates I/O operations. After you open a session, you cannot change the simulation state. Use the __init__ method to enable simulation. - ''' - specific_driver_class_spec_major_version = _attributes.AttributeViInt32(1050515) - '''Type: int - - Returns the major version number of the class specification with which NI-Digital is compliant. This property is not supported. - ''' - specific_driver_class_spec_minor_version = _attributes.AttributeViInt32(1050516) - '''Type: int - - Returns the minor version number of the class specification with which NI-Digital is compliant. This property is not supported. - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - Returns a string that contains a brief description of the NI-Digital Pattern driver. - ''' - specific_driver_prefix = _attributes.AttributeViString(1050302) - '''Type: str - - Returns a string that contains the prefix for the NI-Digital Pattern driver. - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - Returns a string that contains additional version information about the NI-Digital Pattern Driver. For example, the driver can return Driver: NI-Digital 16.0 as the value of this property. - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - Returns a string ("National Instruments") that contains the name of the vendor that supplies the NI-Digital Pattern Driver. - ''' - start_label = _attributes.AttributeViString(1150023) - '''Type: str - - Specifies the pattern name or exported pattern label from which to start bursting the pattern. - ''' - start_trigger_terminal_name = _attributes.AttributeViString(1150039) - '''Type: str - - Specifies the terminal name for the output trigger signal of the Start trigger. You can use this terminal name as an input signal source for another trigger. - ''' - start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150029) - '''Type: enums.TriggerType - - Specifies the Start trigger type. The digital pattern instrument waits for this trigger after you call the init method or the burst_pattern method, and does not burst a pattern until this trigger is received. - - +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +==========================+========================================================================================================================================================================================================================================================================================================+ - | TriggerType.NONE | Disables the Start trigger. Pattern bursting starts immediately after you call the init method or the burst_pattern method. | - +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | TriggerType.DIGITAL_EDGE | Pattern bursting does not start until the digital pattern instrument detects a digital edge. | - +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | TriggerType.SOFTWARE | Pattern bursting does not start until the digital pattern instrument receives a software Start trigger. Create a software Start trigger by calling the send_software_edge_trigger method and selecting start trigger in the **trigger** parameter.Related information: SendSoftwareEdgeTrigger method. | - +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - supported_instrument_models = _attributes.AttributeViString(1050327) - '''Type: str - - Returns a comma delimited string that contains the supported digital pattern instrument models for the specific driver. - ''' - tdr_endpoint_termination = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TDREndpointTermination, 1150081) - '''Type: enums.TDREndpointTermination - - Specifies whether TDR Channels are connected to an open circuit or a short to ground. - ''' - tdr_offset = _attributes.AttributeViReal64TimeDeltaSeconds(1150051) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the TDR Offset. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].tdr_offset` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.tdr_offset` - ''' - termination_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TerminationMode, 1150006) - '''Type: enums.TerminationMode - - Specifies the behavior of the pin during non-drive cycles. - - +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values: | | - +=============================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | TerminationMode.ACTIVE_LOAD | Specifies that, for non-drive pin states (L, H, X, V, M, E), the active load is connected and the instrument sources or sinks a defined amount of current to load the DUT. The amount of current sourced by the instrument and therefore sunk by the DUT is specified by IOL. The amount of current sunk by the instrument and therefore sourced by the DUT is specified by IOH. The voltage at which the instrument changes between sourcing and sinking is specified by VCOM. | - +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | TerminationMode.VTERM | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver terminates the pin to the configured VTERM voltage through a 50 Ω impedance. VTERM is adjustable to allow for the pin to terminate at a set level. This is useful for instruments that might operate incorrectly if an instrument pin is unterminated and is allowed to float to any voltage level within the instrument voltage range. To address this issue, enable VTERM by configuring the VTERM pin level to the desired voltage and selecting the VTERM termination mode. Setting VTERM to 0 V and selecting the VTERM termination mode has the effect of connecting a 50 Ω termination to ground, which provides an effective 50 Ω impedance for the pin. This can be useful for improving signal integrity of certain DUTs by reducing reflections while the DUT drives the pin. | - +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | TerminationMode.HIGH_Z | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver is put in a high-impedance state and the active load is disabled. | - +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].termination_mode` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.termination_mode` - ''' - timing_absolute_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150072) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies a timing delay, measured in seconds, and applies the delay to the digital pattern instrument in addition to TDR and calibration adjustments. If the timing_absolute_delay_enabled property is set to True, this value is the intermodule skew measured by NI-TClk. You can modify this value to override the timing delay and align the I/O timing of this instrument with another instrument that shares the same reference clock. If the timing_absolute_delay_enabled property is False, this property will return 0.0. Changing the timing_absolute_delay_enabled property from False to True will set the timing_absolute_delay value back to your previously set value. - - Tip: - This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].timing_absolute_delay` - - To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.timing_absolute_delay` - ''' - timing_absolute_delay_enabled = _attributes.AttributeViBoolean(1150071) - '''Type: bool - - Specifies whether the timing_absolute_delay property should be applied to adjust the digital pattern instrument timing reference relative to other instruments in the system. Do not use this feature with digital pattern instruments in a Semiconductor Test System (STS). Timing absolute delay conflicts with the adjustment performed during STS timing calibration. When set to True, the digital pattern instrument automatically adjusts the timing absolute delay to correct the instrument timing reference relative to other instruments in the system for better timing alignment among synchronized instruments. - ''' - vih = _attributes.AttributeViReal64(1150008) - '''Type: float - - Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic high (1). - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vih` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vih` - ''' - vil = _attributes.AttributeViReal64(1150007) - '''Type: float - - Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic low (0). - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vil` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vil` - ''' - voh = _attributes.AttributeViReal64(1150010) - '''Type: float - - Specifies the output voltage from the DUT above which the comparator on the digital pattern test instrument interprets a logic high (H). - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].voh` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.voh` - ''' - vol = _attributes.AttributeViReal64(1150009) - '''Type: float - - Specifies the output voltage from the DUT below which the comparator on the digital pattern test instrument interprets a logic low (L). - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vol` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vol` - ''' - vterm = _attributes.AttributeViReal64(1150011) - '''Type: float - - Specifies the termination voltage the digital pattern instrument applies during non-drive cycles when the termination mode is set to V :sub:`term`. The instrument applies the termination voltage through a 50 Ω parallel termination resistance. - - Tip: - This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels or pins to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vterm` - - To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. - - Example: :py:attr:`my_session.vterm` - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - self.pins = _RepeatedCapabilities(self, '', repeated_capability_list) - self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) - self.pattern_opcode_events = _RepeatedCapabilities(self, 'patternOpcodeEvent', repeated_capability_list) - self.conditional_jump_triggers = _RepeatedCapabilities(self, 'conditionalJumpTrigger', repeated_capability_list) - self.sites = _RepeatedCapabilities(self, 'site', repeated_capability_list) - self.rio_events = _RepeatedCapabilities(self, 'RIOEvent', repeated_capability_list) - self.rio_triggers = _RepeatedCapabilities(self, 'RIOTrigger', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nidigital', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def apply_levels_and_timing(self, levels_sheet, timing_sheet, initial_state_high_pins=None, initial_state_low_pins=None, initial_state_tristate_pins=None): - r'''apply_levels_and_timing - - Applies digital levels and timing values defined in previously loaded levels and timing sheets. When applying a levels sheet, only the levels specified in the sheet are affected. Any levels not specified in the sheet remain unchanged. When applying a timing sheet, all existing time sets are deleted before the new time sets are loaded. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].apply_levels_and_timing` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.apply_levels_and_timing` - - Args: - levels_sheet (str): Name of the levels sheet to apply. Use the name of the sheet or pass the absolute file path you use in the load_specifications_levels_and_timing method. The name of the levels sheet is the file name without the directory and file extension. - - timing_sheet (str): Name of the timing sheet to apply. Use the name of the sheet or pass the absolute file path that you use in the load_specifications_levels_and_timing method. The name of the timing sheet is the file name without the directory and file extension. - - initial_state_high_pins (basic sequence types or str): Comma-delimited list of pins, pin groups, or channels to initialize to a high state. - - initial_state_low_pins (basic sequence types or str): Comma-delimited list of pins, pin groups, or channels to initialize to a low state. - - initial_state_tristate_pins (basic sequence types or str): Comma-delimited list of pins, pin groups, or channels to initialize to a non-drive state (X) - - ''' - initial_state_high_pins = _converters.convert_repeated_capabilities_without_prefix(initial_state_high_pins) - initial_state_low_pins = _converters.convert_repeated_capabilities_without_prefix(initial_state_low_pins) - initial_state_tristate_pins = _converters.convert_repeated_capabilities_without_prefix(initial_state_tristate_pins) - self._interpreter.apply_levels_and_timing(self._repeated_capability, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins) - - @ivi_synchronized - def apply_tdr_offsets(self, offsets): - r'''apply_tdr_offsets - - Applies the correction for propagation delay offsets to a digital pattern instrument. Use this method to apply TDR offsets that are stored from a past measurement or are measured by means other than the tdr method. Also use this method to apply correction for offsets if the **applyOffsets** input of the tdr method was set to False at the time of measurement. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].apply_tdr_offsets` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.apply_tdr_offsets` - - Args: - offsets (basic sequence of hightime.timedelta, datetime.timedelta, or float in seconds): TDR offsets to apply, in seconds. Specify an offset for each pin or channel in the repeated capabilities. If the repeated capabilities contain pin names, you must specify offsets for each site in the channel map per pin. - - ''' - offsets = _converters.convert_timedeltas_to_seconds_real64(offsets) - self._interpreter.apply_tdr_offsets(self._repeated_capability, offsets) - - @ivi_synchronized - def _burst_pattern(self, start_label, select_digital_function=True, wait_until_done=True, timeout=hightime.timedelta(seconds=10.0)): - r'''_burst_pattern - - Uses the **startLabel** you specify to burst the pattern on the sites you specify and provides the option to wait for the burst to complete. Digital pins retain their state at the end of a pattern burst until the first vector of a subsequent pattern burst, a call to write_static, or a call to apply_levels_and_timing. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._burst_pattern` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._burst_pattern` - - Args: - start_label (str): Pattern name or exported pattern label from which to start bursting the pattern. - - select_digital_function (bool): A Boolean that specifies whether to select the digital method for the pins in the pattern prior to bursting. - - wait_until_done (bool): A Boolean that indicates whether to wait until the bursting is complete. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - self._interpreter.burst_pattern(self._repeated_capability, start_label, select_digital_function, wait_until_done, timeout) - - @ivi_synchronized - def clock_generator_abort(self): - r'''clock_generator_abort - - Stops clock generation on the specified channel(s) or pin(s) and pin group(s). - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clock_generator_abort` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.clock_generator_abort` - ''' - self._interpreter.clock_generator_abort(self._repeated_capability) - - @ivi_synchronized - def clock_generator_generate_clock(self, frequency, select_digital_function=True): - r'''clock_generator_generate_clock - - Configures clock generator frequency and initiates clock generation on the specified channel(s) or pin(s) and pin group(s). - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clock_generator_generate_clock` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.clock_generator_generate_clock` - - Args: - frequency (float): The frequency of the clock generation, in Hz. - - select_digital_function (bool): A Boolean that specifies whether to select the digital method for the pins specified prior to starting clock generation. - - ''' - self._interpreter.clock_generator_generate_clock(self._repeated_capability, frequency, select_digital_function) - - @ivi_synchronized - def configure_active_load_levels(self, iol, ioh, vcom): - r'''configure_active_load_levels - - Configures I\ :sub:`OL`, I\ :sub:`OH`, and V\ :sub:`COM` levels for the active load on the pins you specify. The DUT sources or sinks current based on the level values. To enable active load, set the termination mode to TerminationMode.ACTIVE_LOAD. To disable active load, set the termination mode of the instrument to TerminationMode.HIGH_Z or TerminationMode.VTERM. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_active_load_levels` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_active_load_levels` - - Args: - iol (float): Maximum current that the DUT sinks while outputting a voltage below V\ :sub:`COM`. - - ioh (float): Maximum current that the DUT sources while outputting a voltage above V\ :sub:`COM`. - - vcom (float): Commutating voltage level at which the active load circuit switches between sourcing current and sinking current. - - ''' - self._interpreter.configure_active_load_levels(self._repeated_capability, iol, ioh, vcom) - - @ivi_synchronized - def configure_pattern_burst_sites(self): - r'''configure_pattern_burst_sites - - Configures which sites burst the pattern on the next call to the initiate method. The pattern burst sites can also be modified through the repeated capabilities for the burst_pattern method. If a site has been disabled through the disable_sites method, the site does not burst a pattern even if included in the pattern burst sites. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].configure_pattern_burst_sites` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_pattern_burst_sites` - ''' - self._interpreter.configure_pattern_burst_sites(self._repeated_capability) - - @ivi_synchronized - def configure_time_set_compare_edges_strobe(self, time_set_name, strobe_edge): - r'''configure_time_set_compare_edges_strobe - - Configures the strobe edge time for the specified pins. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe` - - Args: - time_set_name (str): The specified time set name. - - strobe_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Time when the comparison happens within a vector period. - - ''' - strobe_edge = _converters.convert_timedelta_to_seconds_real64(strobe_edge) - self._interpreter.configure_time_set_compare_edges_strobe(self._repeated_capability, time_set_name, strobe_edge) - - @ivi_synchronized - def configure_time_set_compare_edges_strobe2x(self, time_set_name, strobe_edge, strobe2_edge): - r'''configure_time_set_compare_edges_strobe2x - - Configures the compare strobes for the specified pins in the time set, including the 2x strobe. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe2x` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe2x` - - Args: - time_set_name (str): The specified time set name. - - strobe_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Time when the comparison happens within a vector period. - - strobe2_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Time when the comparison happens for the second DUT cycle within a vector period. - - ''' - strobe_edge = _converters.convert_timedelta_to_seconds_real64(strobe_edge) - strobe2_edge = _converters.convert_timedelta_to_seconds_real64(strobe2_edge) - self._interpreter.configure_time_set_compare_edges_strobe2x(self._repeated_capability, time_set_name, strobe_edge, strobe2_edge) - - @ivi_synchronized - def configure_time_set_drive_edges(self, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): - r'''configure_time_set_drive_edges - - Configures the drive format and drive edge placement for the specified pins. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_drive_edges` - - Args: - time_set_name (str): The specified time set name. - - format (enums.DriveFormat): Drive format of the time set. - - - DriveFormat.NR: Non-return. - - DriveFormat.RL: Return to low. - - DriveFormat.RH: Return to high. - - DriveFormat.SBC: Surround by complement. - - drive_on_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. - - drive_data_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. - - drive_return_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. - - drive_off_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). - - ''' - if type(format) is not enums.DriveFormat: - raise TypeError('Parameter format must be of type ' + str(enums.DriveFormat)) - drive_on_edge = _converters.convert_timedelta_to_seconds_real64(drive_on_edge) - drive_data_edge = _converters.convert_timedelta_to_seconds_real64(drive_data_edge) - drive_return_edge = _converters.convert_timedelta_to_seconds_real64(drive_return_edge) - drive_off_edge = _converters.convert_timedelta_to_seconds_real64(drive_off_edge) - self._interpreter.configure_time_set_drive_edges(self._repeated_capability, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge) - - @ivi_synchronized - def configure_time_set_drive_edges2x(self, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): - r'''configure_time_set_drive_edges2x - - Configures the drive edges of the pins in the time set, including 2x edges. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges2x` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_drive_edges2x` - - Args: - time_set_name (str): The specified time set name. - - format (enums.DriveFormat): Drive format of the time set. - - - DriveFormat.NR: Non-return. - - DriveFormat.RL: Return to low. - - DriveFormat.RH: Return to high. - - DriveFormat.SBC: Surround by complement. - - drive_on_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. - - drive_data_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. - - drive_return_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. - - drive_off_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). - - drive_data2_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pattern data in the second DUT cycle is driven to the pattern value. - - drive_return2_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data in the second DUT cycle to the return value, as specified in the format. - - ''' - if type(format) is not enums.DriveFormat: - raise TypeError('Parameter format must be of type ' + str(enums.DriveFormat)) - drive_on_edge = _converters.convert_timedelta_to_seconds_real64(drive_on_edge) - drive_data_edge = _converters.convert_timedelta_to_seconds_real64(drive_data_edge) - drive_return_edge = _converters.convert_timedelta_to_seconds_real64(drive_return_edge) - drive_off_edge = _converters.convert_timedelta_to_seconds_real64(drive_off_edge) - drive_data2_edge = _converters.convert_timedelta_to_seconds_real64(drive_data2_edge) - drive_return2_edge = _converters.convert_timedelta_to_seconds_real64(drive_return2_edge) - self._interpreter.configure_time_set_drive_edges2x(self._repeated_capability, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge) - - @ivi_synchronized - def configure_time_set_drive_format(self, time_set_name, drive_format): - r'''configure_time_set_drive_format - - Configures the drive format for the pins specified in the **pinList**. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_format` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_drive_format` - - Args: - time_set_name (str): The specified time set name. - - drive_format (enums.DriveFormat): Drive format of the time set. - - - DriveFormat.NR: Non-return. - - DriveFormat.RL: Return to low. - - DriveFormat.RH: Return to high. - - DriveFormat.SBC: Surround by complement. - - ''' - if type(drive_format) is not enums.DriveFormat: - raise TypeError('Parameter drive_format must be of type ' + str(enums.DriveFormat)) - self._interpreter.configure_time_set_drive_format(self._repeated_capability, time_set_name, drive_format) - - @ivi_synchronized - def configure_time_set_edge(self, time_set_name, edge, time): - r'''configure_time_set_edge - - Configures the edge placement for the pins specified in the pin list. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_edge` - - Args: - time_set_name (str): The specified time set name. - - edge (enums.TimeSetEdgeType): Name of the edge. - - - TimeSetEdgeType.DRIVE_ON - - TimeSetEdgeType.DRIVE_DATA - - TimeSetEdgeType.DRIVE_RETURN - - TimeSetEdgeType.DRIVE_OFF - - TimeSetEdgeType.COMPARE_STROBE - - TimeSetEdgeType.DRIVE_DATA2 - - TimeSetEdgeType.DRIVE_RETURN2 - - TimeSetEdgeType.COMPARE_STROBE2 - - time (hightime.timedelta, datetime.timedelta, or float in seconds): The time from the beginning of the vector period in which to place the edge. - - ''' - if type(edge) is not enums.TimeSetEdgeType: - raise TypeError('Parameter edge must be of type ' + str(enums.TimeSetEdgeType)) - time = _converters.convert_timedelta_to_seconds_real64(time) - self._interpreter.configure_time_set_edge(self._repeated_capability, time_set_name, edge, time) - - @ivi_synchronized - def configure_time_set_edge_multiplier(self, time_set_name, edge_multiplier): - r'''configure_time_set_edge_multiplier - - Configures the edge multiplier of the pins in the time set. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge_multiplier` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_time_set_edge_multiplier` - - Args: - time_set_name (str): The specified time set name. - - edge_multiplier (int): The specified edge multiplier for the pins in the pin list. - - ''' - self._interpreter.configure_time_set_edge_multiplier(self._repeated_capability, time_set_name, edge_multiplier) - - @ivi_synchronized - def configure_voltage_levels(self, vil, vih, vol, voh, vterm): - r'''configure_voltage_levels - - Configures voltage levels for the pins you specify. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_voltage_levels` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.configure_voltage_levels` - - Args: - vil (float): Voltage that the instrument will apply to the input of the DUT when the pin driver drives a logic low (0). - - vih (float): Voltage that the instrument will apply to the input of the DUT when the test instrument drives a logic high (1). - - vol (float): Output voltage below which the comparator on the pin driver interprets a logic low (L). - - voh (float): Output voltage above which the comparator on the pin driver interprets a logic high (H). - - vterm (float): Termination voltage the instrument applies during non-drive cycles when the termination mode is set to V\ :sub:`term`. The instrument applies the termination voltage through a 50 ohm parallel termination resistance. - - ''' - self._interpreter.configure_voltage_levels(self._repeated_capability, vil, vih, vol, voh, vterm) - - @ivi_synchronized - def create_capture_waveform_parallel(self, waveform_name): - r'''create_capture_waveform_parallel - - Sets the capture waveform settings for parallel acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_parallel` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_capture_waveform_parallel` - - Args: - waveform_name (str): Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. - - ''' - self._interpreter.create_capture_waveform_parallel(self._repeated_capability, waveform_name) - - @ivi_synchronized - def create_capture_waveform_serial(self, waveform_name, sample_width, bit_order): - r'''create_capture_waveform_serial - - Sets the capture waveform settings for serial acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_serial` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_capture_waveform_serial` - - Args: - waveform_name (str): Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. - - sample_width (int): Width in bits of each serial sample. Valid values are between 1 and 32. - - bit_order (enums.BitOrder): Order in which to shift the bits. - - - BitOrder.MSB: Specifies the bit order by most significant bit first. - - BitOrder.LSB: Specifies the bit order by least significant bit first. - - ''' - if type(bit_order) is not enums.BitOrder: - raise TypeError('Parameter bit_order must be of type ' + str(enums.BitOrder)) - self._interpreter.create_capture_waveform_serial(self._repeated_capability, waveform_name, sample_width, bit_order) - - @ivi_synchronized - def create_source_waveform_parallel(self, waveform_name, data_mapping): - r'''create_source_waveform_parallel - - Sets the source waveform settings required for parallel sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_parallel` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_source_waveform_parallel` - - Args: - waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - data_mapping (enums.SourceDataMapping): Parameter that specifies how to map data on multiple sites. - - - SourceDataMapping.BROADCAST: Broadcasts the waveform you specify to all sites. - - SourceDataMapping.SITE_UNIQUE: Sources unique waveform data to each site. - - ''' - if type(data_mapping) is not enums.SourceDataMapping: - raise TypeError('Parameter data_mapping must be of type ' + str(enums.SourceDataMapping)) - self._interpreter.create_source_waveform_parallel(self._repeated_capability, waveform_name, data_mapping) - - @ivi_synchronized - def create_source_waveform_serial(self, waveform_name, data_mapping, sample_width, bit_order): - r'''create_source_waveform_serial - - Sets the source waveform settings required for serial sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_serial` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.create_source_waveform_serial` - - Args: - waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - data_mapping (enums.SourceDataMapping): Parameter that specifies how to map data on multiple sites. - - - SourceDataMapping.BROADCAST: Broadcasts the waveform you specify to all sites. - - SourceDataMapping.SITE_UNIQUE: Sources unique waveform data to each site. - - sample_width (int): Width in bits of each serial sample. Valid values are between 1 and 32. - - bit_order (enums.BitOrder): Order in which to shift the bits. - - - BitOrder.MSB: Specifies the bit order by most significant bit first. - - BitOrder.LSB: Specifies the bit order by least significant bit first. - - ''' - if type(data_mapping) is not enums.SourceDataMapping: - raise TypeError('Parameter data_mapping must be of type ' + str(enums.SourceDataMapping)) - if type(bit_order) is not enums.BitOrder: - raise TypeError('Parameter bit_order must be of type ' + str(enums.BitOrder)) - self._interpreter.create_source_waveform_serial(self._repeated_capability, waveform_name, data_mapping, sample_width, bit_order) - - @ivi_synchronized - def disable_sites(self): - r'''disable_sites - - Disables specified sites. Disabled sites are not included in pattern bursts initiated by the initiate method or the burst_pattern method, even if the site is specified in the list of pattern burst sites in configure_pattern_burst_sites method or in the repeated capabilities for the burst_pattern method. Additionally, if you specify a list of pin or pin group names in repeated capabilities in any NI-Digital method, digital pattern instrument channels mapped to disabled sites are not affected by the method. The methods that return per-pin data, such as the ppmu_measure method, do not return data for channels mapped to disabled sites. The digital pattern instrument channels mapped to the sites specified are left in their current state. NI TestStand Semiconductor Module requires all sites to always be enabled, and manages the set of active sites without disabling the sites in the digital instrument session. Do not use this method with the Semiconductor Module. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].disable_sites` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.disable_sites` - ''' - self._interpreter.disable_sites(self._repeated_capability) - - @ivi_synchronized - def enable_sites(self): - r'''enable_sites - - Enables the sites you specify. All sites are enabled by default. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].enable_sites` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.enable_sites` - ''' - self._interpreter.enable_sites(self._repeated_capability) - - @ivi_synchronized - def burst_pattern(self, start_label, select_digital_function=True, wait_until_done=True, timeout=hightime.timedelta(seconds=10.0)): - '''burst_pattern - - Uses the start_label you specify to burst the pattern on the sites you specify. If you - specify wait_until_done as True, waits for the burst to complete, and returns comparison results for each site. - - Digital pins retain their state at the end of a pattern burst until the first vector of the pattern burst, a call to - write_static, or a call to apply_levels_and_timing. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].burst_pattern` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.burst_pattern` - - Args: - start_label (str): Pattern name or exported pattern label from which to start bursting the pattern. - - select_digital_function (bool): A Boolean that specifies whether to select the digital method for the pins in the pattern prior to bursting. - - wait_until_done (bool): A Boolean that indicates whether to wait until the bursting is complete. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - - Returns: - pass_fail ({ int: bool, int: bool, ... }): Dictionary where each key is a site number and value is pass/fail, - if wait_until_done is specified as True. Else, None. - - ''' - self._burst_pattern(start_label, select_digital_function, wait_until_done, timeout) - - if wait_until_done: - return self.get_site_pass_fail() - else: - return None - - @ivi_synchronized - def fetch_capture_waveform(self, waveform_name, samples_to_read, timeout=hightime.timedelta(seconds=10.0)): - '''fetch_capture_waveform - - Returns dictionary where each key is a site number and value is a collection of digital states representing capture waveform data - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].fetch_capture_waveform` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.fetch_capture_waveform` - - Args: - waveform_name (str): Waveform name you create with the create capture waveform method. Use the waveform_name parameter with capture_start opcode in your pattern. - - samples_to_read (int): Number of samples to fetch. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - - Returns: - waveform ({ int: memoryview of array.array of unsigned int, int: memoryview of array.array of unsigned int, ... }): Dictionary where each key is a site number and value is a collection of digital states representing capture waveform data - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - data, actual_num_waveforms, actual_samples_per_waveform = self._interpreter.fetch_capture_waveform(self._repeated_capability, waveform_name, samples_to_read, timeout) - - # Get the site list - site_list = self._get_site_results_site_numbers(enums._SiteResultType.CAPTURE_WAVEFORM) - assert len(site_list) == actual_num_waveforms - - waveforms = {} - - mv = memoryview(data) - - for i in range(actual_num_waveforms): - start = i * actual_samples_per_waveform - end = start + actual_samples_per_waveform - waveforms[site_list[i]] = mv[start:end] - - return waveforms - - @ivi_synchronized - def fetch_history_ram_cycle_information(self, position, samples_to_read): - '''fetch_history_ram_cycle_information - - Returns the pattern information acquired for the specified cycles. - - If the pattern is using the edge multiplier feature, cycle numbers represent tester cycles, each of which may - consist of multiple DUT cycles. When using pins with mixed edge multipliers, pins may return - PinState.PIN_STATE_NOT_ACQUIRED for DUT cycles where those pins do not have edges defined. - - Site number on which to retrieve pattern information must be specified via sites repeated capability. - The method returns an error if more than one site is specified. - - Pins for which to retrieve pattern information must be specified via pins repeated capability. - If pins are not specified, pin list from the pattern containing the start label is used. Call - get_pattern_pin_names with the start label to retrieve the pins associated with the pattern burst: - - .. code:: python - - session.sites[0].pins['PinA', 'PinB'].fetch_history_ram_cycle_information(0, -1) - - Note: - Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. - - history_ram_trigger_type should be used to specify the trigger condition on which History RAM - starts acquiring pattern information. - - If History RAM trigger is configured as HistoryRAMTriggerType.CYCLE_NUMBER, - cycle_number_history_ram_trigger_cycle_number should be used to specify the cycle number on which - History RAM starts acquiring pattern information. - - If History RAM trigger is configured as HistoryRAMTriggerType.PATTERN_LABEL, - pattern_label_history_ram_trigger_label should be used to specify the pattern label from which to - start acquiring pattern information. - pattern_label_history_ram_trigger_vector_offset should be used to specify the number of vectors - following the specified pattern label from which to start acquiring pattern information. - pattern_label_history_ram_trigger_cycle_offset should be used to specify the number of cycles - following the specified pattern label and vector offset from which to start acquiring pattern information. - - For all History RAM trigger conditions, history_ram_pretrigger_samples should be used to specify - the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only - acquire failed cycles, you must set history_ram_pretrigger_samples to 0. - - history_ram_cycles_to_acquire should be used to specify which cycles History RAM acquires after - the trigger conditions are met. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].fetch_history_ram_cycle_information` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.fetch_history_ram_cycle_information` - - Args: - position (int): Sample index from which to start fetching pattern information. - - samples_to_read (int): Number of samples to fetch. A value of -1 specifies to fetch all available samples. - - - Returns: - history_ram_cycle_information (list of HistoryRAMCycleInformation): Returns a list of class instances with - the following information about each pattern cycle: - - - **pattern_name** (str) Name of the pattern for the acquired cycle. - - **time_set_name** (str) Time set for the acquired cycle. - - **vector_number** (int) Vector number within the pattern for the acquired cycle. Vector numbers start - at 0 from the beginning of the pattern. - - **cycle_number** (int) Cycle number acquired by this History RAM sample. Cycle numbers start at 0 - from the beginning of the pattern burst. - - **scan_cycle_number** (int) Scan cycle number acquired by this History RAM sample. Scan cycle numbers - start at 0 from the first cycle of the scan vector. Scan cycle numbers are -1 for cycles that do not - have a scan opcode. - - **expected_pin_states** (list of list of enums.PinState) Pin states as expected by the loaded - pattern in the order specified in the pin list. Pins without defined edges in the specified DUT cycle - will have a value of PinState.PIN_STATE_NOT_ACQUIRED. - Length of the outer list will be equal to the value of edge multiplier for the given vector. - Length of the inner list will be equal to the number of pins requested. - - **actual_pin_states** (list of list of enums.PinState) Pin states acquired by History RAM in the - order specified in the pin list. Pins without defined edges in the specified DUT cycle will have a - value of PinState.PIN_STATE_NOT_ACQUIRED. - Length of the outer list will be equal to the value of edge multiplier for the given vector. - Length of the inner list will be equal to the number of pins requested. - - **per_pin_pass_fail** (list of list of bool) Pass fail information for pins in the order specified in - the pin list. Pins without defined edges in the specified DUT cycle will have a value of pass (True). - Length of the outer list will be equal to the value of edge multiplier for the given vector. - Length of the inner list will be equal to the number of pins requested. - - ''' - # Extract the site number and pin list from repeated capability - repeated_capability_lists = _converters.convert_chained_repeated_capability_to_parts(self._repeated_capability) - site = repeated_capability_lists[0] - if not site.startswith('site'): - raise ValueError('Site number on which to retrieve pattern information must be specified via sites repeated capability.') - pins = '' if len(repeated_capability_lists) == 1 else repeated_capability_lists[1] - - # Put site back into repeated capability container; it will be used by other - # sites-rep-cap-based methods that will be called later. - self._repeated_capability = site - - if position < 0: - raise ValueError('position should be greater than or equal to 0.') - - if samples_to_read < -1: - raise ValueError('samples_to_read should be greater than or equal to -1.') - - # site is passed as repeated capability - samples_available = self.get_history_ram_sample_count() - if position > samples_available: - raise ValueError('position: Specified value = {}, Maximum value = {}.'.format(position, samples_available - 1)) - - if samples_to_read == -1: - with _NoChannel(session=self): - if not self.history_ram_number_of_samples_is_finite: - raise RuntimeError( - 'Specifying -1 to fetch all History RAM samples is not supported when the digital pattern instrument is ' - 'configured for continuous History RAM acquisition. You must specify an exact number of samples to fetch.') - samples_to_read = samples_available - position - - if position + samples_to_read > samples_available: - raise ValueError( - 'position: Specified value = {}, samples_to_read: Specified value = {}; Samples available = {}.' - .format(position, samples_to_read, samples_available - position)) - - pattern_names = {} - time_set_names = {} - cycle_infos = [] - for _ in range(samples_to_read): - - # site is passed as repeated capability - pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles = self._fetch_history_ram_cycle_information(position) - - if pattern_index not in pattern_names: - # Repeated capability is not used - pattern_names[pattern_index] = self._get_pattern_name(pattern_index) - pattern_name = pattern_names[pattern_index] - - if time_set_index not in time_set_names: - # Repeated capability is not used - time_set_names[time_set_index] = self._get_time_set_name(time_set_index) - time_set_name = time_set_names[time_set_index] - - # site is passed as repeated capability - scan_cycle_number = self._fetch_history_ram_scan_cycle_number(position) - - vector_expected_pin_states = [] - vector_actual_pin_states = [] - vector_per_pin_pass_fail = [] - for dut_cycle_index in range(num_dut_cycles): - # site is passed as repeated capability - cycle_expected_pin_states, cycle_actual_pin_states, cycle_per_pin_pass_fail = self._fetch_history_ram_cycle_pin_data(pins, position, dut_cycle_index) - vector_expected_pin_states.append(cycle_expected_pin_states) - vector_actual_pin_states.append(cycle_actual_pin_states) - vector_per_pin_pass_fail.append(cycle_per_pin_pass_fail) - - cycle_infos.append(history_ram_cycle_information.HistoryRAMCycleInformation( - pattern_name=pattern_name, - time_set_name=time_set_name, - vector_number=vector_number, - cycle_number=cycle_number, - scan_cycle_number=scan_cycle_number, - expected_pin_states=vector_expected_pin_states, - actual_pin_states=vector_actual_pin_states, - per_pin_pass_fail=vector_per_pin_pass_fail)) - position += 1 - - return cycle_infos - - @ivi_synchronized - def get_pin_results_pin_information(self): - '''get_pin_results_pin_information - - Returns the pin names, site numbers, and channel names that correspond to per-pin data read from the digital pattern instrument. The method returns pin information in the same order as values read using the read_static method, ppmu_measure method, and get_fail_count method. Use this method to match values the previously listed methods return with pins, sites, and instrument channels. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_pin_results_pin_information` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_pin_results_pin_information` - - Returns: - pin_info (list of PinInfo): List of named tuples with fields: - - - **pin_name** (str) - - **site_number** (int) - - **channel_name** (str) - - ''' - import collections - PinInfo = collections.namedtuple('PinInformation', ['pin_name', 'site_number', 'channel_name']) - - pin_indexes, site_numbers, channel_indexes = self._get_pin_results_pin_information() - assert len(pin_indexes) == len(site_numbers), "length of returned arrays don't match" - assert len(pin_indexes) == len(channel_indexes), "length of returned arrays don't match" - - pin_infos = [] - for i in range(len(pin_indexes)): - pin_name = "" if pin_indexes[i] == -1 else self._get_pin_name(pin_indexes[i]) - channel_names = self.get_channel_names(channel_indexes[i] - 1) # channel_indexes are 1-based - assert 1 == len(channel_names) - pin_infos.append(PinInfo(pin_name=pin_name, site_number=site_numbers[i], channel_name=channel_names[0])) - - return pin_infos - - @ivi_synchronized - def get_site_pass_fail(self): - '''get_site_pass_fail - - Returns dictionary where each key is a site number and value is pass/fail - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].get_site_pass_fail` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_site_pass_fail` - - Returns: - pass_fail ({ int: bool, int: bool, ... }): Dictionary where each key is a site number and value is pass/fail - - ''' - # For site_list, we just use the repeated capability - result_list = self._get_site_pass_fail() - site_list = self._get_site_results_site_numbers(enums._SiteResultType.PASS_FAIL) - assert len(site_list) == len(result_list) - - return dict(zip(site_list, result_list)) - - @ivi_synchronized - def _fetch_history_ram_cycle_information(self, sample_index): - r'''_fetch_history_ram_cycle_information - - Gets the per-cycle pattern information acquired for the specified cycle. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._fetch_history_ram_cycle_information` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._fetch_history_ram_cycle_information` - - Args: - sample_index (int): The index of the History RAM sample to fetch. Each History RAM sample contains information about a single cycle in the pattern burst. - - - Returns: - pattern_index (int): The returned index of the pattern for the acquired cycle. Use _get_pattern_name to get the name of the pattern from its index. - - time_set_index (int): The returned time set for the acquired cycle. Use _get_time_set_name to get the name of the time set from its index. - - vector_number (int): The returned vector number within the pattern for the acquired cycle. Vector numbers start at 0 from the beginning of the pattern. - - cycle_number (int): Returns the cycle number acquired by this History RAM sample. Cycle numbers start at 0 from the beginning of the pattern burst. - - num_dut_cycles (int): The returned number of DUT cycles contained in the cycle acquired by this History RAM sample. This is only needed if the pattern uses the edge multiplier feature. - - ''' - pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles = self._interpreter.fetch_history_ram_cycle_information(self._repeated_capability, sample_index) - return pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles - - @ivi_synchronized - def _fetch_history_ram_cycle_pin_data(self, pin_list, sample_index, dut_cycle_index): - r'''_fetch_history_ram_cycle_pin_data - - Gets the per-pin pattern data acquired for the specified cycle. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._fetch_history_ram_cycle_pin_data` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._fetch_history_ram_cycle_pin_data` - - Args: - pin_list (str): The specified pins for which to retrieve History RAM data. If empty, the pin list from the pattern containing the start label is used. Call get_pattern_pin_names or GetPatternPinIndexeswith the start label to retrieve the pins associated with the pattern burst. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - sample_index (int): The index of the History RAM sample to fetch. Each History RAM sample contains information about a single cycle in the pattern burst. - - dut_cycle_index (int): The specified index of the DUT cycle. If the pattern does not use the edge multiplier feature, pass 0 for this parameter. For History RAM samples that contain multiple DUT cycles, indicated by the **numDutCycles** value returned by _fetch_history_ram_cycle_information, call this method multiple times to retrieve pin states for each DUT cycle. The DUT cycle index should start at 0. - - - Returns: - expected_pin_states (list of enums.PinState): The returned pin state as expected by the loaded pattern in the order specified in **pinList**. Pins without defined edges in the specified DUT cycle will return PinState.NOT_A_PIN_STATE - - actual_pin_states (list of enums.PinState): The returned pin state acquired by History RAM in the order specified in **pinList**. Pins without defined edges in the specified DUT cycle will return PinState.NOT_A_PIN_STATE - - per_pin_pass_fail (list of bool): The returned pass fail information for pins in the order specified in **pinList**. Pins without defined edges in the specified DUT cycle will return pass (True). - - ''' - expected_pin_states, actual_pin_states, per_pin_pass_fail = self._interpreter.fetch_history_ram_cycle_pin_data(self._repeated_capability, pin_list, sample_index, dut_cycle_index) - return expected_pin_states, actual_pin_states, per_pin_pass_fail - - @ivi_synchronized - def _fetch_history_ram_scan_cycle_number(self, sample_index): - r'''_fetch_history_ram_scan_cycle_number - - Fetches the History RAM Scan Cycle Number for the sample index. If the sample is not from a scan vector, the scan cycle number will be returned as -1. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._fetch_history_ram_scan_cycle_number` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._fetch_history_ram_scan_cycle_number` - - Args: - sample_index (int): The index of the History RAM sample to fetch. Each History RAM sample contains information about a single cycle in the pattern burst. - - - Returns: - scan_cycle_number (int): Returns the scan cycle number acquired by this History RAM sample. Scan cycle numbers start at 0 from the first cycle of the scan vector. Scan cycle numbers are -1 for cycles that do not have a scan opcode. - - ''' - scan_cycle_number = self._interpreter.fetch_history_ram_scan_cycle_number(self._repeated_capability, sample_index) - return scan_cycle_number - - @ivi_synchronized - def frequency_counter_measure_frequency(self): - r'''frequency_counter_measure_frequency - - Measures the frequency on the specified channel(s) over the specified measurement time. All channels in the repeated capabilities should have the same measurement time. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].frequency_counter_measure_frequency` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.frequency_counter_measure_frequency` - - Returns: - frequencies (list of float): The returned frequency counter measurement, in Hz.This method returns -1 if the measurement is invalid for the channel. - - ''' - frequencies = self._interpreter.frequency_counter_measure_frequency(self._repeated_capability) - return frequencies - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute (int): The ID of a property. - - - Returns: - value (bool): The returned current value of the property; pass the address of a ViBoolean variable. - - ''' - value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute (int): The ID of a property. - - - Returns: - value (int): The returned current value of the property; pass the address of a ViInt32 variable. - - ''' - value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_int64(self, attribute): - r'''_get_attribute_vi_int64 - - Queries the value of a ViInt64 property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int64` - - Args: - attribute (int): The ID of a property. - - - Returns: - value (int): The returned current value of the property; pass the address of a ViInt64 variable. - - ''' - value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute): - r'''_get_attribute_vi_real64 - - This method queries the value of a ViReal64 property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute (int): The ID of a property. - - - Returns: - value (float): The returned current value of the property; pass the address of a ViReal64 variable. - - ''' - value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute): - r'''_get_attribute_vi_string - - Queries the value of a ViString property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. You must provide a ViChar array to serve as a buffer for the value. You pass the number of bytes in the buffer as the **bufferSize**. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the **bufferSize**, the method copies (bufferSize - 1) bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the **bufferSize** you must pass to get the entire value. For example, if the value is "123456" and the **bufferSize** is 4, the method places "123" into the buffer and returns 7. If you want to call this method just to get the required buffer size, you can pass 0 for the **bufferSize** and VI_NULL for the value. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute (int): The ID of a property. - - - Returns: - value (str): The buffer in which the method returns the current value of the property; the buffer must be of type ViChar and have at least as many bytes as indicated in the **bufferSize**. - - ''' - value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def get_channel_names(self, indices): - r'''get_channel_names - - Returns a list of channel names for given channel indices. - - Args: - indices (basic sequence types, str, or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - Returns: - names (list of str): The channel name(s) at the specified indices. - - ''' - indices = _converters.convert_repeated_capabilities_without_prefix(indices) - names = self._interpreter.get_channel_names(indices) - return _converters.convert_comma_separated_string_to_list(names) - - @ivi_synchronized - def get_fail_count(self): - r'''get_fail_count - - Returns the comparison fail count for pins in the repeated capabilities. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_fail_count` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_fail_count` - - Returns: - failure_count (list of int): Number of failures in an array. If a site is disabled or not enabled for burst, the method does not return data for that site. You can also use the get_pin_results_pin_information method to obtain a sorted list of returned sites and channels. - - ''' - failure_count = self._interpreter.get_fail_count(self._repeated_capability) - return failure_count - - @ivi_synchronized - def get_history_ram_sample_count(self): - r'''get_history_ram_sample_count - - Returns the number of samples History RAM acquired on the last pattern burst. - - Note: - Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. - - history_ram_trigger_type should be used to specify the trigger condition on which History RAM - starts acquiring pattern information. - - If History RAM trigger is configured as HistoryRAMTriggerType.CYCLE_NUMBER, - cycle_number_history_ram_trigger_cycle_number should be used to specify the cycle number on which - History RAM starts acquiring pattern information. - - If History RAM trigger is configured as HistoryRAMTriggerType.PATTERN_LABEL, - pattern_label_history_ram_trigger_label should be used to specify the pattern label from which to - start acquiring pattern information. - pattern_label_history_ram_trigger_vector_offset should be used to specify the number of vectors - following the specified pattern label from which to start acquiring pattern information. - pattern_label_history_ram_trigger_cycle_offset should be used to specify the number of cycles - following the specified pattern label and vector offset from which to start acquiring pattern information. - - For all History RAM trigger conditions, history_ram_pretrigger_samples should be used to specify - the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only - acquire failed cycles, you must set history_ram_pretrigger_samples to 0. - - history_ram_cycles_to_acquire should be used to specify which cycles History RAM acquires after - the trigger conditions are met. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].get_history_ram_sample_count` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_history_ram_sample_count` - - Returns: - sample_count (int): The returned number of samples that History RAM acquired. - - ''' - sample_count = self._interpreter.get_history_ram_sample_count(self._repeated_capability) - return sample_count - - @ivi_synchronized - def _get_pattern_name(self, pattern_index): - r'''_get_pattern_name - - TBD - - Args: - pattern_index (int): - - - Returns: - name (str): - - ''' - name = self._interpreter.get_pattern_name(pattern_index) - return name - - @ivi_synchronized - def _get_pin_name(self, pin_index): - r'''_get_pin_name - - Returns the name of the pin at the index you specify. You must provide a ViChar array to serve as a buffer for the value. You pass the number of bytes in the buffer as the **nameBufferSize**. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the buffer size, the method copies (buffer size - 1) bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is "123456" and the buffer size is 4, the method places "123" into the buffer and returns 7. If you want to call this method just to get the required buffer size, you can pass 0 for **nameBufferSize** and VI_NULL for the name. - - Args: - pin_index (int): Index of pin to query. Pin indexes begin at 0. - - - Returns: - name (str): Returns the pin name at the specified **pinIndex**. - - ''' - name = self._interpreter.get_pin_name(pin_index) - return name - - @ivi_synchronized - def _get_pin_results_pin_information(self): - r'''_get_pin_results_pin_information - - Returns the pin names, site numbers, and channel names that correspond to per-pin data read from the digital pattern instrument. The method returns pin information in the same order as values read using the read_static method, ppmu_measure method, and get_fail_count method. Use this method to match values the previously listed methods return with pins, sites, and instrument channels. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_pin_results_pin_information` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_pin_results_pin_information` - - Returns: - pin_indexes (list of int): The returned index of the pins corresponding to data read from the digital pattern instrument using the specified repeated capabilities. If you do not want to use this parameter, pass VI_NULL. - Call _get_pin_name to get the name of the pin associated with an index. - - site_numbers (list of int): The returned site numbers that correspond to data read from the digital pattern instrument using the specified repeated capabilities. If you do not want to use this parameter, pass VI_NULL. - - channel_indexes (list of int): The returned index of channels corresponding to data read from the digital pattern instrument using the specified repeated capabilities. If you do not want to use this parameter, pass VI_NULL. - Call GetChannelName to get the name of the channel associated with an index. Channel indexes are one-based. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - ''' - pin_indexes, site_numbers, channel_indexes = self._interpreter.get_pin_results_pin_information(self._repeated_capability) - return pin_indexes, site_numbers, channel_indexes - - @ivi_synchronized - def _get_site_pass_fail(self): - r'''_get_site_pass_fail - - Returns the pass or fail results for each site. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._get_site_pass_fail` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_site_pass_fail` - - Returns: - pass_fail (list of bool): The returned array of pass (True) and fail results for the sites you specify in the repeated capabilities. If sites span multiple digital pattern instruments, you must use an AND operator for the partial results for those sites returned by each instrument. If a site is disabled or not enabled for burst, the method does not return data for that site. Use the SortSiteResultsViBoolean method to order and combine the data to match the repeated capabilities. You can also use the _get_site_results_site_numbers method to determine the order of the sites returned from this method call so that you can match the pass array with site numbers. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - ''' - pass_fail = self._interpreter.get_site_pass_fail(self._repeated_capability) - return pass_fail - - @ivi_synchronized - def _get_site_results_site_numbers(self, site_result_type): - r'''_get_site_results_site_numbers - - Returns the site numbers that correspond to per-site data read from the digital pattern instrument. The method returns site numbers in the same order as values read using the _get_site_pass_fail and fetch_capture_waveform_u32 methods. Use this method to match values the previously listed methods return with site numbers. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._get_site_results_site_numbers` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._get_site_results_site_numbers` - - Args: - site_result_type (enums._SiteResultType): The type of data specified in the results array. - - - _SiteResultType.PASS_FAIL: Get site numbers for pass/fail data. - - _SiteResultType.CAPTURE_WAVEFORM: Get site numbers for capture waveforms. - - - Returns: - site_numbers (list of int): The returned array of site numbers that correspond to the values specified by **siteResultType**. - - ''' - if type(site_result_type) is not enums._SiteResultType: - raise TypeError('Parameter site_result_type must be of type ' + str(enums._SiteResultType)) - site_numbers = self._interpreter.get_site_results_site_numbers(self._repeated_capability, site_result_type) - return site_numbers - - @ivi_synchronized - def get_time_set_drive_format(self, time_set_name): - r'''get_time_set_drive_format - - Returns the drive format of a pin in the specified time set. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].get_time_set_drive_format` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_time_set_drive_format` - - Args: - time_set_name (str): The specified time set name. - - - Returns: - format (enums.DriveFormat): Returned drive format of the time set for the specified pin. - - ''' - format = self._interpreter.get_time_set_drive_format(self._repeated_capability, time_set_name) - return format - - @ivi_synchronized - def get_time_set_edge(self, time_set_name, edge): - r'''get_time_set_edge - - Returns the edge time of a pin in the specified time set. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_time_set_edge` - - Args: - time_set_name (str): The specified time set name. - - edge (enums.TimeSetEdgeType): Name of the edge. - - - TimeSetEdgeType.DRIVE_ON - - TimeSetEdgeType.DRIVE_DATA - - TimeSetEdgeType.DRIVE_RETURN - - TimeSetEdgeType.DRIVE_OFF - - TimeSetEdgeType.COMPARE_STROBE - - TimeSetEdgeType.DRIVE_DATA2 - - TimeSetEdgeType.DRIVE_RETURN2 - - TimeSetEdgeType.COMPARE_STROBE2 - - - Returns: - time (hightime.timedelta): Time from the beginning of the vector period in which to place the edge. - - ''' - if type(edge) is not enums.TimeSetEdgeType: - raise TypeError('Parameter edge must be of type ' + str(enums.TimeSetEdgeType)) - time = self._interpreter.get_time_set_edge(self._repeated_capability, time_set_name, edge) - return _converters.convert_seconds_real64_to_timedelta(time) - - @ivi_synchronized - def get_time_set_edge_multiplier(self, time_set_name): - r'''get_time_set_edge_multiplier - - Returns the edge multiplier of the specified time set. - - Tip: - This method can be called on specific pins within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container pins to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge_multiplier` - - To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.get_time_set_edge_multiplier` - - Args: - time_set_name (str): The specified time set name. - - - Returns: - edge_multiplier (int): Returned edge multiplier of the time set for the specified pin. - - ''' - edge_multiplier = self._interpreter.get_time_set_edge_multiplier(self._repeated_capability, time_set_name) - return edge_multiplier - - @ivi_synchronized - def _get_time_set_name(self, time_set_index): - r'''_get_time_set_name - - TBD - - Args: - time_set_index (int): - - - Returns: - name (str): - - ''' - name = self._interpreter.get_time_set_name(time_set_index) - return name - - @ivi_synchronized - def is_site_enabled(self): - r'''is_site_enabled - - Checks if a specified site is enabled. - - Note: The method returns an error if more than one site is specified. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].is_site_enabled` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.is_site_enabled` - - Returns: - enable (bool): Boolean value that returns whether the site is enabled or disabled. - - ''' - enable = self._interpreter.is_site_enabled(self._repeated_capability) - return enable - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-Digital Pattern Driver locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nidigital.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def ppmu_measure(self, measurement_type): - r'''ppmu_measure - - Instructs the PPMU to measure voltage or current. This method can be called to take a voltage measurement even if the pin method is not set to PPMU. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].ppmu_measure` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.ppmu_measure` - - Args: - measurement_type (enums.PPMUMeasurementType): Parameter that specifies whether the PPMU measures voltage or current from the DUT. - - - PPMUMeasurementType.CURRENT: The PPMU measures current from the DUT. - - PPMUMeasurementType.VOLTAGE: The PPMU measures voltage from the DUT. - - - Returns: - measurements (list of float): The returned array of measurements in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the get_pin_results_pin_information method to obtain a sorted list of returned sites and channels. - - ''' - if type(measurement_type) is not enums.PPMUMeasurementType: - raise TypeError('Parameter measurement_type must be of type ' + str(enums.PPMUMeasurementType)) - measurements = self._interpreter.ppmu_measure(self._repeated_capability, measurement_type) - return measurements - - @ivi_synchronized - def ppmu_source(self): - r'''ppmu_source - - Starts sourcing voltage or current from the PPMU. This method automatically selects the PPMU method. Changes to PPMU source settings do not take effect until you call this method. If you modify source settings after you call this method, you must call this method again for changes in the configuration to take effect. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].ppmu_source` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.ppmu_source` - ''' - self._interpreter.ppmu_source(self._repeated_capability) - - @ivi_synchronized - def read_static(self): - r'''read_static - - Reads the current state of comparators for pins you specify in the repeated capabilities. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_static` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.read_static` - - Returns: - data (list of enums.PinState): The returned array of pin states read from the channels in the repeated capabilities. Data is returned in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the get_pin_results_pin_information method to obtain a sorted list of returned sites and channels. - - - PinState.L: The comparators read a logic low pin state. - - PinState.H: The comparators read a logic high pin state. - - PinState.M: The comparators read a midband pin state. - - PinState.V: The comparators read a value that is above VOH and below VOL, which can occur when you set VOL higher than VOH. - - ''' - data = self._interpreter.read_static(self._repeated_capability) - return data - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute, value): - r'''_set_attribute_vi_boolean - - Sets the value of a ViBoolean property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute (int): The ID of a property. - - value (bool): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute, value): - r'''_set_attribute_vi_int32 - - Sets the value of a ViInt32 property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute (int): The ID of a property. - - value (int): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_int64(self, attribute, value): - r'''_set_attribute_vi_int64 - - Sets the value of a ViInt64 property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int64` - - Args: - attribute (int): The ID of a property. - - value (int): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute, value): - r'''_set_attribute_vi_real64 - - Sets the value of a ViIntReal64 property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute (int): The ID of a property. - - value (float): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute, value): - r'''_set_attribute_vi_string - - Sets the value of a ViString property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute (int): The ID of a property. - - value (str): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute, value) - - @ivi_synchronized - def tdr(self, apply_offsets=True): - r'''tdr - - Measures propagation delays through cables, connectors, and load boards using Time-Domain Reflectometry (TDR). Ensure that the channels and pins you select are connected to an open circuit. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].tdr` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.tdr` - - Args: - apply_offsets (bool): A Boolean that specifies whether to apply the measured TDR offsets. If you need to adjust the measured offsets prior to applying, set this input to False, and call the apply_tdr_offsets method to specify the adjusted TDR offsets values. - - - Returns: - offsets (list of hightime.timedelta): Measured TDR offsets specified in seconds. - - ''' - offsets = self._interpreter.tdr(self._repeated_capability, apply_offsets) - return _converters.convert_seconds_real64_to_timedeltas(offsets) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - @ivi_synchronized - def _write_source_waveform_site_unique_u32(self, waveform_name, num_waveforms, samples_per_waveform, waveform_data): - r'''_write_source_waveform_site_unique_u32 - - Writes one waveform per site. Use this write method if you set the parameter of the create source waveform method to Site Unique. - - Tip: - This method can be called on specific sites within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ]._write_source_waveform_site_unique_u32` - - To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session._write_source_waveform_site_unique_u32` - - Args: - waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - num_waveforms (int): Number of waveforms. - - samples_per_waveform (int): Number of samples per waveform. - - waveform_data (array.array("L")): An array of samples to use as source data. Data for each site must be appended sequentially in the array (non-interleaved). - - ''' - self._interpreter.write_source_waveform_site_unique_u32(self._repeated_capability, waveform_name, num_waveforms, samples_per_waveform, waveform_data) - - @ivi_synchronized - def write_static(self, state): - r'''write_static - - Writes a static state to the specified pins. The selected pins remain in the specified state until the next pattern burst or call to this method. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. This method does not change the selected pin method. If you write a static state to a pin that does not have the Digital method selected, the new static state is stored by the instrument, and affects the state of the pin the next time you change the selected method to Digital. - - Tip: - This method can be called on specific channels within your :py:class:`nidigital.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].write_static` - - To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. - - Example: :py:meth:`my_session.write_static` - - Args: - state (enums.WriteStaticPinState): Parameter that specifies one of the following digital states to assign to the pin. - - - WriteStaticPinState.ZERO: Specifies to drive low. - - WriteStaticPinState.ONE: Specifies to drive high. - - WriteStaticPinState.X: Specifies to not drive. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(state) is not enums.WriteStaticPinState: - raise TypeError('Parameter state must be of type ' + str(enums.WriteStaticPinState)) - self._interpreter.write_static(self._repeated_capability, state) - - def _error_message(self, error_code): - r'''_error_message - - Takes the error code returned by the digital pattern instrument driver methods, interprets it, and returns it as a user readable string. - - Args: - error_code (int): The specified error code. - - - Returns: - error_message (str): The error information formatted as a string. The array must contain at least 256 characters. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-Digital Pattern Driver session''' - - def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): - r'''An NI-Digital Pattern Driver session - - Creates and returns a new session to the specified digital pattern instrument to use in all subsequent method calls. To place the instrument in a known startup state when creating a new session, set the reset parameter to True, which is equivalent to calling the reset method immediately after initializing the session. - - Args: - resource_name (str): 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. **resourceName** can also be a logical IVI name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where ``PXI1Slot2`` is one instrument resource name and ``PXI1Slot3`` is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. - - +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | |Note| | Note   You only can specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and PXIe-6571. The instruments must be in the same chassis. | - +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. |Note| image:: note.gif - - Note: - - id_query (bool): A Boolean that verifies that the digital pattern instrument you initialize is supported by NI-Digital. NI-Digital automatically performs this query, so setting this parameter is not necessary. - - reset_device (bool): A Boolean that specifies whether to reset a digital pattern instrument to a known state when the session is initialized. Setting the **resetDevice** value to True is equivalent to calling the reset method immediately after initializing the session. - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - grpc_options (nidigital.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - new_vi (int): The returned instrument session. - - ''' - if grpc_options: - import nidigital._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_options fails, the error handler can reference it. - # And then here, once _init_with_options succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-Digital Pattern Driver', grpc_options.grpc_channel, connected) - - # NI-TClk does not work over NI gRPC Device Server - if not grpc_options: - self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Starts bursting the pattern configured by start_label, causing the NI-Digital session to be committed. To stop the pattern burst, call abort. If keep alive pattern is bursting when abort is called or upon exiting the context manager, keep alive pattern will not be stopped. To stop the keep alive pattern, call abort_keep_alive. - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Burst(self) - - def close(self): - '''close - - Closes the specified instrument session to a digital pattern instrument, aborts pattern execution, and unloads pattern memory. The channels on a digital pattern instrument remain in their current state. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Stops bursting the pattern. - ''' - self._interpreter.abort() - - @ivi_synchronized - def abort_keep_alive(self): - r'''abort_keep_alive - - Stops the keep alive pattern if it is currently running. If a pattern burst is in progress, the method aborts the pattern burst. If you start a new pattern burst while a keep alive pattern is running, the keep alive pattern runs to the last keep alive vector, and the new pattern burst starts on the next cycle. - ''' - self._interpreter.abort_keep_alive() - - @ivi_synchronized - def commit(self): - r'''commit - - Applies all previously configured pin levels, termination modes, clocks, triggers, and pattern timing to a digital pattern instrument. If you do not call the commit method, then the initiate method or the burst_pattern method will implicitly call this method for you. Calling this method moves the session from the Uncommitted state to the Committed state. - ''' - self._interpreter.commit() - - @ivi_synchronized - def configure_time_set_period(self, time_set_name, period): - r'''configure_time_set_period - - Configures the period of a time set. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. - - Args: - time_set_name (str): The specified time set name. - - period (hightime.timedelta, datetime.timedelta, or float in seconds): Period for this time set, in seconds. - - ''' - period = _converters.convert_timedelta_to_seconds_real64(period) - self._interpreter.configure_time_set_period(time_set_name, period) - - @ivi_synchronized - def create_capture_waveform_from_file_digicapture(self, waveform_name, waveform_file_path): - r'''create_capture_waveform_from_file_digicapture - - Creates a capture waveform with the configuration information from a Digicapture file generated by the Digital Pattern Editor. - - Args: - waveform_name (str): Waveform name you want to use. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the capture_start opcode in your pattern. - - waveform_file_path (str): Absolute file path to the capture waveform file (.digicapture) you want to load. - - ''' - self._interpreter.create_capture_waveform_from_file_digicapture(waveform_name, waveform_file_path) - - @ivi_synchronized - def create_source_waveform_from_file_tdms(self, waveform_name, waveform_file_path, write_waveform_data=True): - r'''create_source_waveform_from_file_tdms - - Creates a source waveform with configuration information from a TDMS file generated by the Digital Pattern Editor. It also optionally writes waveform data from the file. - - Args: - waveform_name (str): The waveform name you want to use from the file. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the source_start opcode in your pattern. - - waveform_file_path (str): Absolute file path to the load source waveform file (.tdms). - - write_waveform_data (bool): A Boolean that writes waveform data to source memory if True and the waveform data is in the file. - - ''' - self._interpreter.create_source_waveform_from_file_tdms(waveform_name, waveform_file_path, write_waveform_data) - - @ivi_synchronized - def create_time_set(self, name): - r'''create_time_set - - Creates a time set with the name that you specify. Use this method when you want to create time sets programmatically rather than with a timing sheet. - - Args: - name (str): The specified name of the new time set. - - ''' - self._interpreter.create_time_set(name) - - @ivi_synchronized - def delete_all_time_sets(self): - r'''delete_all_time_sets - - Deletes all time sets from instrument memory. - ''' - self._interpreter.delete_all_time_sets() - - @ivi_synchronized - def enable_match_fail_combination(self, sync_session): - '''enable_match_fail_combination - - Configures digital pattern instruments and the PXIe-6674T timing and synchronization instrument to combine pattern comparison results and control subsequent pattern execution across digital pattern instruments based on those results. You must initialize the PXIe-6674T using NI-Sync and call this method from a multi-instrument session. - ''' - self._interpreter.enable_match_fail_combination([self._interpreter.get_session_handle()], sync_session.session_handle) - - @ivi_synchronized - def load_specifications_levels_and_timing(self, specifications_file_paths=None, levels_file_paths=None, timing_file_paths=None): - '''load_specifications_levels_and_timing - - Loads settings in specifications, levels, and timing sheets. These settings are not - applied to the digital pattern instrument until apply_levels_and_timing is called. - - If the levels and timing sheets contains formulas, they are evaluated at load time. - If the formulas refer to variables, the specifications sheets that define those - variables must be loaded either first, or at the same time as the levels and timing sheets. - - Args: - specifications_file_paths (str or basic sequence of str): Absolute file path of one or more specifications files. - - levels_file_paths (str or basic sequence of str): Absolute file path of one or more levels sheet files. - - timing_file_paths (str or basic sequence of str): Absolute file path of one or more timing sheet files. - - ''' - self._call_method_with_iterable(self._load_specifications, specifications_file_paths) - self._call_method_with_iterable(self._load_levels, levels_file_paths) - self._call_method_with_iterable(self._load_timing, timing_file_paths) - - def _call_method_with_iterable(self, method, files): - if files is None: - return - if isinstance(files, str): - files = [files] - for f in files: - method(f) - - @ivi_synchronized - def self_test(self): - '''self_test - - Returns self test results from a digital pattern instrument. This test requires several minutes to execute. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+-------------------+ - | Self-Test Code | Description | - +================+===================+ - | 0 | Self test passed. | - +----------------+-------------------+ - | 1 | Self test failed. | - +----------------+-------------------+ - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def unload_specifications(self, file_paths): - '''unload_specifications - - Unloads the given specifications sheets present in the previously loaded - specifications files that you select. - - You must call load_specifications_levels_and_timing to reload the files with updated - specifications values. You must then call apply_levels_and_timing in order to apply - the levels and timing values that reference the updated specifications values. - - Args: - file_paths (str or basic sequence of str): Absolute file path of one or more loaded specifications files. - - ''' - self._call_method_with_iterable(self._unload_specifications, file_paths) - - @ivi_synchronized - def write_source_waveform_site_unique(self, waveform_name, waveform_data): - '''write_source_waveform_site_unique - - Writes one waveform per site. Use this write method if you set the parameter of the create source waveform method to Site Unique. - - Args: - waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - waveform_data ({ int: basic sequence of unsigned int, int: basic sequence of unsigned int, ... }): Dictionary where each key is a site number and value is a collection of samples to use as source data - - ''' - from collections.abc import Mapping - if not isinstance(waveform_data, Mapping): - raise TypeError("Expecting waveform_data to be a dictionary but got {}".format(type(waveform_data))) - site_list = [] - # We assume all the entries are the same length (we'll check later) to make the array the correct size - # Get an entry from the dictionary from https://stackoverflow.com/questions/30362391/how-do-you-find-the-first-key-in-a-dictionary - if len(waveform_data) == 0: - actual_samples_per_waveform = 0 - else: - actual_samples_per_waveform = len(waveform_data[next(iter(waveform_data))]) - data = array.array('L', [0]) * (len(waveform_data) * actual_samples_per_waveform) - mv = memoryview(data) - - i = 0 - for site in waveform_data: - if len(waveform_data[site]) != actual_samples_per_waveform: - raise ValueError('Mismatched length of waveforms. All must be the same length.') - # Check the type by using string comparison so that we don't import numpy unnecessarily. - if str(type(waveform_data[site])).find("'numpy.ndarray'") != -1: - import numpy - if waveform_data[site].dtype == numpy.uint32: - wfm = array.array('L', waveform_data[site]) - else: - raise TypeError("Unsupported dtype for waveform_data array element type. Is {}, expected {}".format(waveform_data[site].dtype, numpy.int32)) - - elif isinstance(waveform_data[site], array.array): - if waveform_data[site].typecode == 'L': - wfm = waveform_data[site] - else: - raise TypeError('Wrong waveform_data array element type. Must be unsigned 32 bit int ("L"), was {}'.format(waveform_data[site].typecode)) - - elif isinstance(waveform_data[site], list): - wfm = array.array('L', waveform_data[site]) - - else: - raise TypeError('Unknown array type: {}'.format(type(waveform_data[site]))) - - site_list.append(site) - - start = i * actual_samples_per_waveform - end = start + actual_samples_per_waveform - mv[start:end] = wfm - - i += 1 - - self.sites[site_list]._write_source_waveform_site_unique_u32(waveform_name, len(waveform_data), actual_samples_per_waveform, data) - - @ivi_synchronized - def get_pattern_pin_names(self, start_label): - r'''get_pattern_pin_names - - Returns the pattern pin list. - - Args: - start_label (str): Pattern name or exported pattern label from which to get the pin names that the pattern references. - - - Returns: - pin_list (list of str): List of pins referenced by the pattern with the **startLabel**. - - ''' - pin_list = self._interpreter.get_pattern_pin_names(start_label) - return _converters.convert_comma_separated_string_to_list(pin_list) - - @ivi_synchronized - def get_time_set_period(self, time_set_name): - r'''get_time_set_period - - Returns the period of the specified time set. - - Args: - time_set_name (str): The specified time set name. - - - Returns: - period (hightime.timedelta): Returned period, in seconds, that the edge is configured to. - - ''' - period = self._interpreter.get_time_set_period(time_set_name) - return _converters.convert_seconds_real64_to_timedelta(period) - - def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): - r'''_init_with_options - - Creates and returns a new session to the specified digital pattern instrument to use in all subsequent method calls. To place the instrument in a known startup state when creating a new session, set the reset parameter to True, which is equivalent to calling the reset method immediately after initializing the session. - - Args: - resource_name (str): 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. **resourceName** can also be a logical IVI name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where ``PXI1Slot2`` is one instrument resource name and ``PXI1Slot3`` is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. - - +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | |Note| | Note   You only can specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and PXIe-6571. The instruments must be in the same chassis. | - +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - .. |Note| image:: note.gif - - Note: - - id_query (bool): A Boolean that verifies that the digital pattern instrument you initialize is supported by NI-Digital. NI-Digital automatically performs this query, so setting this parameter is not necessary. - - reset_device (bool): A Boolean that specifies whether to reset a digital pattern instrument to a known state when the session is initialized. Setting the **resetDevice** value to True is equivalent to calling the reset method immediately after initializing the session. - - option_string (dict): The initial values of certain properties for the NI-Digital Pattern Driver session. The string can be empty. You can use the DriverSetup flag to simulate a digital pattern instrument. When simulating a digital pattern instrument, you must specify the model you want to simulate. For example, Simulate = 1, DriverSetup = Model:6570. - - - Returns: - new_vi (int): The returned instrument session. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - new_vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) - return new_vi - - @ivi_synchronized - def _initiate(self): - r'''_initiate - - Starts bursting the pattern configured by start_label, causing the NI-Digital session to be committed. To stop the pattern burst, call abort. If keep alive pattern is bursting when abort is called or upon exiting the context manager, keep alive pattern will not be stopped. To stop the keep alive pattern, call abort_keep_alive. - ''' - self._interpreter.initiate() - - @ivi_synchronized - def is_done(self): - r'''is_done - - Checks the hardware to determine if the pattern burst has completed or if any errors have occurred. - - Returns: - done (bool): A Boolean that indicates whether the pattern burst completed. - - ''' - done = self._interpreter.is_done() - return done - - @ivi_synchronized - def _load_levels(self, file_path): - r'''_load_levels - - Loads a levels sheet from a specified file. - - Args: - file_path (str): Absolute file path to the specified levels sheet file. - - ''' - self._interpreter.load_levels(file_path) - - @ivi_synchronized - def load_pattern(self, file_path): - r'''load_pattern - - Loads the specified pattern file. - - Args: - file_path (str): Absolute file path of the binary .digipat pattern file to load. Specify the pattern to burst using start_label or the start_label parameter of the burst_pattern method. - - ''' - self._interpreter.load_pattern(file_path) - - @ivi_synchronized - def load_pin_map(self, file_path): - r'''load_pin_map - - Loads a pin map file. You can load only a single pin and channel map file during an NI-Digital Pattern Driver session. To switch pin maps, create a new session or call the reset method. - - Args: - file_path (str): Absolute file path to a pin map file created with the Digital Pattern Editor or the NI TestStand Semiconductor Module. - - ''' - self._interpreter.load_pin_map(file_path) - - @ivi_synchronized - def _load_specifications(self, file_path): - r'''_load_specifications - - Loads a specifications sheet from a specified file. - - Args: - file_path (str): Absolute file path to a specifications file. - - ''' - self._interpreter.load_specifications(file_path) - - @ivi_synchronized - def _load_timing(self, file_path): - r'''_load_timing - - Loads a timing sheet from a specified file. - - Args: - file_path (str): Absolute file path to the specified timing sheet file. - - ''' - self._interpreter.load_timing(file_path) - - @ivi_synchronized - def read_sequencer_flag(self, flag): - r'''read_sequencer_flag - - Reads the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. - - Args: - flag (enums.SequencerFlag): The pattern sequencer flag you want to read. - - - SequencerFlag.FLAG0 ("seqflag0"): Reads pattern sequencer flag 0. - - SequencerFlag.FLAG1 ("seqflag1"): Reads pattern sequencer flag 1. - - SequencerFlag.FLAG2 ("seqflag2"): Reads pattern sequencer flag 2. - - SequencerFlag.FLAG3 ("seqflag3"): Reads pattern sequencer flag 3. - - - Returns: - value (bool): A Boolean that indicates the state of the pattern sequencer flag you specify. - - ''' - if type(flag) is not enums.SequencerFlag: - raise TypeError('Parameter flag must be of type ' + str(enums.SequencerFlag)) - value = self._interpreter.read_sequencer_flag(flag) - return value - - @ivi_synchronized - def read_sequencer_register(self, reg): - r'''read_sequencer_register - - Reads the value of a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. For example, you can use this method to read a register modified by the write_reg opcode during a pattern burst. - - Args: - reg (enums.SequencerRegister): The sequencer register to read from. - - - SequencerRegister.REGISTER0 ("reg0"): Reads sequencer register 0. - - SequencerRegister.REGISTER1 ("reg1"): Reads sequencer register 1. - - SequencerRegister.REGISTER2 ("reg2"): Reads sequencer register 2. - - SequencerRegister.REGISTER3 ("reg3"): Reads sequencer register 3. - - SequencerRegister.REGISTER4 ("reg4"): Reads sequencer register 4. - - SequencerRegister.REGISTER5 ("reg5"): Reads sequencer register 5. - - SequencerRegister.REGISTER6 ("reg6"): Reads sequencer register 6. - - SequencerRegister.REGISTER7 ("reg7"): Reads sequencer register 7. - - SequencerRegister.REGISTER8 ("reg8"): Reads sequencer register 8. - - SequencerRegister.REGISTER9 ("reg9"): Reads sequencer register 9. - - SequencerRegister.REGISTER10 ("reg10"): Reads sequencer register 10. - - SequencerRegister.REGISTER11 ("reg11"): Reads sequencer register 11. - - SequencerRegister.REGISTER12 ("reg12"): Reads sequencer register 12. - - SequencerRegister.REGISTER13 ("reg13"): Reads sequencer register 13. - - SequencerRegister.REGISTER14 ("reg14"): Reads sequencer register 14. - - SequencerRegister.REGISTER15 ("reg15"): Reads sequencer register 15. - - - Returns: - value (int): Value read from the sequencer register. - - ''' - if type(reg) is not enums.SequencerRegister: - raise TypeError('Parameter reg must be of type ' + str(enums.SequencerRegister)) - value = self._interpreter.read_sequencer_register(reg) - return value - - @ivi_synchronized - def reset_device(self): - r'''reset_device - - Returns a digital pattern instrument to a known state. This method performs the following actions: - - - Aborts pattern execution. - - Clears pin maps, time sets, source and capture waveforms, and patterns. - - Resets all properties to default values, including the selected_function property that is set to SelectedFunction.DISCONNECT, causing the I/O switches to open. - - Stops export of all external signals and events. - - Clears over-temperature and over-power conditions. - ''' - self._interpreter.reset_device() - - @ivi_synchronized - def self_calibrate(self): - r'''self_calibrate - - Performs self-calibration on a digital pattern instrument. - ''' - self._interpreter.self_calibrate() - - @ivi_synchronized - def send_software_edge_trigger(self, trigger, trigger_identifier): - r'''send_software_edge_trigger - - Forces a particular edge-based trigger to occur regardless of how the specified trigger is configured. You can use this method as a software override. - - Args: - trigger (enums.SoftwareTrigger): Trigger specifies the trigger you want to override. - - +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Defined Values | | - +==================================+=================================================================================================================================+ - | SoftwareTrigger.START | Overrides the Start trigger. You must specify an empty string in the trigger_identifier parameter. | - +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ - | SoftwareTrigger.CONDITIONAL_JUMP | Specifies to route a conditional jump trigger. You must specify a conditional jump trigger in the trigger_identifier parameter. | - +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - trigger_identifier (str): Trigger Identifier specifies the instance of the trigger you want to override. - If trigger is specified as NIDIGITAL_VAL_START_TRIGGER, this parameter must be an empty string. If trigger is - specified as NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER, allowed values are conditionalJumpTrigger0, - conditionalJumpTrigger1, conditionalJumpTrigger2, and conditionalJumpTrigger3. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(trigger) is not enums.SoftwareTrigger: - raise TypeError('Parameter trigger must be of type ' + str(enums.SoftwareTrigger)) - self._interpreter.send_software_edge_trigger(trigger, trigger_identifier) - - @ivi_synchronized - def unload_all_patterns(self, unload_keep_alive_pattern=False): - r'''unload_all_patterns - - Unloads all patterns, source waveforms, and capture waveforms from a digital pattern instrument. - - Args: - unload_keep_alive_pattern (bool): A Boolean that specifies whether to keep or unload the keep alive pattern. - - ''' - self._interpreter.unload_all_patterns(unload_keep_alive_pattern) - - @ivi_synchronized - def _unload_specifications(self, file_path): - r'''_unload_specifications - - Unloads the given specifications sheet present in the previously loaded specifications file that you select. You must call the _load_specifications method to reload the file with updated specifications values. You must then call the apply_levels_and_timing method in order to apply the levels and timing values that reference the updated specifications values. - - Args: - file_path (str): Absolute file path to a loaded specifications file. - - ''' - self._interpreter.unload_specifications(file_path) - - @ivi_synchronized - def wait_until_done(self, timeout=hightime.timedelta(seconds=10.0)): - r'''wait_until_done - - Waits until the pattern burst has completed or the timeout has expired. - - Args: - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - self._interpreter.wait_until_done(timeout) - - @ivi_synchronized - def write_sequencer_flag(self, flag, value): - r'''write_sequencer_flag - - Writes the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. - - Args: - flag (enums.SequencerFlag): The pattern sequencer flag to write. - - - SequencerFlag.FLAG0 ("seqflag0"): Writes pattern sequencer flag 0. - - SequencerFlag.FLAG1 ("seqflag1"): Writes pattern sequencer flag 1. - - SequencerFlag.FLAG2 ("seqflag2"): Writes pattern sequencer flag 2. - - SequencerFlag.FLAG3 ("seqflag3"): Writes pattern sequencer flag 3. - - value (bool): A Boolean that assigns a state to the pattern sequencer flag you specify. - - ''' - if type(flag) is not enums.SequencerFlag: - raise TypeError('Parameter flag must be of type ' + str(enums.SequencerFlag)) - self._interpreter.write_sequencer_flag(flag, value) - - @ivi_synchronized - def write_sequencer_register(self, reg, value): - r'''write_sequencer_register - - Writes a value to a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. - - Args: - reg (enums.SequencerRegister): The sequencer register you want to write to. - - - SequencerRegister.REGISTER0 ("reg0"): Writes sequencer register 0. - - SequencerRegister.REGISTER1 ("reg1"): Writes sequencer register 1. - - SequencerRegister.REGISTER2 ("reg2"): Writes sequencer register 2. - - SequencerRegister.REGISTER3 ("reg3"): Writes sequencer register 3. - - SequencerRegister.REGISTER4 ("reg4"): Writes sequencer register 4. - - SequencerRegister.REGISTER5 ("reg5"): Writes sequencer register 5. - - SequencerRegister.REGISTER6 ("reg6"): Writes sequencer register 6. - - SequencerRegister.REGISTER7 ("reg7"): Writes sequencer register 7. - - SequencerRegister.REGISTER8 ("reg8"): Writes sequencer register 8. - - SequencerRegister.REGISTER9 ("reg9"): Writes sequencer register 9. - - SequencerRegister.REGISTER10 ("reg10"): Writes sequencer register 10. - - SequencerRegister.REGISTER11 ("reg11"): Writes sequencer register 11. - - SequencerRegister.REGISTER12 ("reg12"): Writes sequencer register 12. - - SequencerRegister.REGISTER13 ("reg13"): Writes sequencer register 13. - - SequencerRegister.REGISTER14 ("reg14"): Writes sequencer register 14. - - SequencerRegister.REGISTER15 ("reg15"): Writes sequencer register 15. - - value (int): The value you want to write to the register. - - ''' - if type(reg) is not enums.SequencerRegister: - raise TypeError('Parameter reg must be of type ' + str(enums.SequencerRegister)) - self._interpreter.write_sequencer_register(reg, value) - - @ivi_synchronized - def write_source_waveform_broadcast(self, waveform_name, waveform_data): - r'''write_source_waveform_broadcast - - Writes the same waveform data to all sites. Use this write method if you set the data_mapping parameter of the create source waveform method to SourceDataMapping.BROADCAST. - - Args: - waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - waveform_data (list of int): 1D array of samples to use as source data to apply to all sites. - - ''' - self._interpreter.write_source_waveform_broadcast(waveform_name, waveform_data) - - @ivi_synchronized - def write_source_waveform_data_from_file_tdms(self, waveform_name, waveform_file_path): - r'''write_source_waveform_data_from_file_tdms - - Writes a source waveform based on the waveform data and configuration information the file contains. - - Args: - waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. - - waveform_file_path (str): Absolute file path to the load source waveform file (.tdms). - - ''' - self._interpreter.write_source_waveform_data_from_file_tdms(waveform_name, waveform_file_path) - - def _close(self): - r'''_close - - Closes the specified instrument session to a digital pattern instrument, aborts pattern execution, and unloads pattern memory. The channels on a digital pattern instrument remain in their current state. - ''' - self._interpreter.close() - - @ivi_synchronized - def reset(self): - r'''reset - - Returns a digital pattern instrument to a known state. This method performs the following actions: - - - Aborts pattern execution. - - Clears pin maps, time sets, source and capture waveforms, and patterns. - - Resets all properties to default values, including the selected_function property that is set to SelectedFunction.DISCONNECT, causing the I/O switches to open. - - Stops exporting all external signals and events. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Returns self test results from a digital pattern instrument. This test requires several minutes to execute. - - Returns: - test_result (int): A parameter that indicates if the self test passed (0) or failed (!=0). - - test_message (str): The returned self test status message. The array must contain at least 256 characters. - - ''' - test_result, test_message = self._interpreter.self_test() - return test_result, test_message diff --git a/generated/nidigital/nidigital/unit_tests/_matchers.py b/generated/nidigital/nidigital/unit_tests/_matchers.py deleted file mode 100644 index 2832a0b8f3..0000000000 --- a/generated/nidigital/nidigital/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nidigital._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nidigital/nidigital/unit_tests/_mock_helper.py b/generated/nidigital/nidigital/unit_tests/_mock_helper.py deleted file mode 100644 index 5a5e111dcf..0000000000 --- a/generated/nidigital/nidigital/unit_tests/_mock_helper.py +++ /dev/null @@ -1,1320 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['Abort'] = {} - self._defaults['Abort']['return'] = 0 - self._defaults['AbortKeepAlive'] = {} - self._defaults['AbortKeepAlive']['return'] = 0 - self._defaults['ApplyLevelsAndTiming'] = {} - self._defaults['ApplyLevelsAndTiming']['return'] = 0 - self._defaults['ApplyTDROffsets'] = {} - self._defaults['ApplyTDROffsets']['return'] = 0 - self._defaults['BurstPattern'] = {} - self._defaults['BurstPattern']['return'] = 0 - self._defaults['ClockGenerator_Abort'] = {} - self._defaults['ClockGenerator_Abort']['return'] = 0 - self._defaults['ClockGenerator_GenerateClock'] = {} - self._defaults['ClockGenerator_GenerateClock']['return'] = 0 - self._defaults['Commit'] = {} - self._defaults['Commit']['return'] = 0 - self._defaults['ConfigureActiveLoadLevels'] = {} - self._defaults['ConfigureActiveLoadLevels']['return'] = 0 - self._defaults['ConfigurePatternBurstSites'] = {} - self._defaults['ConfigurePatternBurstSites']['return'] = 0 - self._defaults['ConfigureTimeSetCompareEdgesStrobe'] = {} - self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] = 0 - self._defaults['ConfigureTimeSetCompareEdgesStrobe2x'] = {} - self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] = 0 - self._defaults['ConfigureTimeSetDriveEdges'] = {} - self._defaults['ConfigureTimeSetDriveEdges']['return'] = 0 - self._defaults['ConfigureTimeSetDriveEdges2x'] = {} - self._defaults['ConfigureTimeSetDriveEdges2x']['return'] = 0 - self._defaults['ConfigureTimeSetDriveFormat'] = {} - self._defaults['ConfigureTimeSetDriveFormat']['return'] = 0 - self._defaults['ConfigureTimeSetEdge'] = {} - self._defaults['ConfigureTimeSetEdge']['return'] = 0 - self._defaults['ConfigureTimeSetEdgeMultiplier'] = {} - self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] = 0 - self._defaults['ConfigureTimeSetPeriod'] = {} - self._defaults['ConfigureTimeSetPeriod']['return'] = 0 - self._defaults['ConfigureVoltageLevels'] = {} - self._defaults['ConfigureVoltageLevels']['return'] = 0 - self._defaults['CreateCaptureWaveformFromFileDigicapture'] = {} - self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] = 0 - self._defaults['CreateCaptureWaveformParallel'] = {} - self._defaults['CreateCaptureWaveformParallel']['return'] = 0 - self._defaults['CreateCaptureWaveformSerial'] = {} - self._defaults['CreateCaptureWaveformSerial']['return'] = 0 - self._defaults['CreateSourceWaveformFromFileTDMS'] = {} - self._defaults['CreateSourceWaveformFromFileTDMS']['return'] = 0 - self._defaults['CreateSourceWaveformParallel'] = {} - self._defaults['CreateSourceWaveformParallel']['return'] = 0 - self._defaults['CreateSourceWaveformSerial'] = {} - self._defaults['CreateSourceWaveformSerial']['return'] = 0 - self._defaults['CreateTimeSet'] = {} - self._defaults['CreateTimeSet']['return'] = 0 - self._defaults['DeleteAllTimeSets'] = {} - self._defaults['DeleteAllTimeSets']['return'] = 0 - self._defaults['DisableSites'] = {} - self._defaults['DisableSites']['return'] = 0 - self._defaults['EnableMatchFailCombination'] = {} - self._defaults['EnableMatchFailCombination']['return'] = 0 - self._defaults['EnableSites'] = {} - self._defaults['EnableSites']['return'] = 0 - self._defaults['FetchCaptureWaveformU32'] = {} - self._defaults['FetchCaptureWaveformU32']['return'] = 0 - self._defaults['FetchCaptureWaveformU32']['actualNumWaveforms'] = None - self._defaults['FetchCaptureWaveformU32']['actualSamplesPerWaveform'] = None - self._defaults['FetchCaptureWaveformU32']['data'] = None - self._defaults['FetchHistoryRAMCycleInformation'] = {} - self._defaults['FetchHistoryRAMCycleInformation']['return'] = 0 - self._defaults['FetchHistoryRAMCycleInformation']['patternIndex'] = None - self._defaults['FetchHistoryRAMCycleInformation']['timeSetIndex'] = None - self._defaults['FetchHistoryRAMCycleInformation']['vectorNumber'] = None - self._defaults['FetchHistoryRAMCycleInformation']['cycleNumber'] = None - self._defaults['FetchHistoryRAMCycleInformation']['numDutCycles'] = None - self._defaults['FetchHistoryRAMCyclePinData'] = {} - self._defaults['FetchHistoryRAMCyclePinData']['return'] = 0 - self._defaults['FetchHistoryRAMCyclePinData']['actualNumPinData'] = None - self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'] = None - self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'] = None - self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'] = None - self._defaults['FetchHistoryRAMScanCycleNumber'] = {} - self._defaults['FetchHistoryRAMScanCycleNumber']['return'] = 0 - self._defaults['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] = None - self._defaults['FrequencyCounter_MeasureFrequency'] = {} - self._defaults['FrequencyCounter_MeasureFrequency']['return'] = 0 - self._defaults['FrequencyCounter_MeasureFrequency']['actualNumFrequencies'] = None - self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['value'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['value'] = None - self._defaults['GetAttributeViInt64'] = {} - self._defaults['GetAttributeViInt64']['return'] = 0 - self._defaults['GetAttributeViInt64']['value'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['value'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['value'] = None - self._defaults['GetChannelNameFromString'] = {} - self._defaults['GetChannelNameFromString']['return'] = 0 - self._defaults['GetChannelNameFromString']['name'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['errorDescription'] = None - self._defaults['GetFailCount'] = {} - self._defaults['GetFailCount']['return'] = 0 - self._defaults['GetFailCount']['actualNumRead'] = None - self._defaults['GetFailCount']['failureCount'] = None - self._defaults['GetHistoryRAMSampleCount'] = {} - self._defaults['GetHistoryRAMSampleCount']['return'] = 0 - self._defaults['GetHistoryRAMSampleCount']['sampleCount'] = None - self._defaults['GetPatternName'] = {} - self._defaults['GetPatternName']['return'] = 0 - self._defaults['GetPatternName']['name'] = None - self._defaults['GetPatternPinList'] = {} - self._defaults['GetPatternPinList']['return'] = 0 - self._defaults['GetPatternPinList']['pinList'] = None - self._defaults['GetPinName'] = {} - self._defaults['GetPinName']['return'] = 0 - self._defaults['GetPinName']['name'] = None - self._defaults['GetPinResultsPinInformation'] = {} - self._defaults['GetPinResultsPinInformation']['return'] = 0 - self._defaults['GetPinResultsPinInformation']['actualNumValues'] = None - self._defaults['GetPinResultsPinInformation']['pinIndexes'] = None - self._defaults['GetPinResultsPinInformation']['siteNumbers'] = None - self._defaults['GetPinResultsPinInformation']['channelIndexes'] = None - self._defaults['GetSitePassFail'] = {} - self._defaults['GetSitePassFail']['return'] = 0 - self._defaults['GetSitePassFail']['actualNumSites'] = None - self._defaults['GetSitePassFail']['passFail'] = None - self._defaults['GetSiteResultsSiteNumbers'] = {} - self._defaults['GetSiteResultsSiteNumbers']['return'] = 0 - self._defaults['GetSiteResultsSiteNumbers']['actualNumSiteNumbers'] = None - self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'] = None - self._defaults['GetTimeSetDriveFormat'] = {} - self._defaults['GetTimeSetDriveFormat']['return'] = 0 - self._defaults['GetTimeSetDriveFormat']['format'] = None - self._defaults['GetTimeSetEdge'] = {} - self._defaults['GetTimeSetEdge']['return'] = 0 - self._defaults['GetTimeSetEdge']['time'] = None - self._defaults['GetTimeSetEdgeMultiplier'] = {} - self._defaults['GetTimeSetEdgeMultiplier']['return'] = 0 - self._defaults['GetTimeSetEdgeMultiplier']['edgeMultiplier'] = None - self._defaults['GetTimeSetName'] = {} - self._defaults['GetTimeSetName']['return'] = 0 - self._defaults['GetTimeSetName']['name'] = None - self._defaults['GetTimeSetPeriod'] = {} - self._defaults['GetTimeSetPeriod']['return'] = 0 - self._defaults['GetTimeSetPeriod']['period'] = None - self._defaults['InitWithOptions'] = {} - self._defaults['InitWithOptions']['return'] = 0 - self._defaults['InitWithOptions']['newVi'] = None - self._defaults['Initiate'] = {} - self._defaults['Initiate']['return'] = 0 - self._defaults['IsDone'] = {} - self._defaults['IsDone']['return'] = 0 - self._defaults['IsDone']['done'] = None - self._defaults['IsSiteEnabled'] = {} - self._defaults['IsSiteEnabled']['return'] = 0 - self._defaults['IsSiteEnabled']['enable'] = None - self._defaults['LoadLevels'] = {} - self._defaults['LoadLevels']['return'] = 0 - self._defaults['LoadPattern'] = {} - self._defaults['LoadPattern']['return'] = 0 - self._defaults['LoadPinMap'] = {} - self._defaults['LoadPinMap']['return'] = 0 - self._defaults['LoadSpecifications'] = {} - self._defaults['LoadSpecifications']['return'] = 0 - self._defaults['LoadTiming'] = {} - self._defaults['LoadTiming']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['PPMU_Measure'] = {} - self._defaults['PPMU_Measure']['return'] = 0 - self._defaults['PPMU_Measure']['actualNumRead'] = None - self._defaults['PPMU_Measure']['measurements'] = None - self._defaults['PPMU_Source'] = {} - self._defaults['PPMU_Source']['return'] = 0 - self._defaults['ReadSequencerFlag'] = {} - self._defaults['ReadSequencerFlag']['return'] = 0 - self._defaults['ReadSequencerFlag']['value'] = None - self._defaults['ReadSequencerRegister'] = {} - self._defaults['ReadSequencerRegister']['return'] = 0 - self._defaults['ReadSequencerRegister']['value'] = None - self._defaults['ReadStatic'] = {} - self._defaults['ReadStatic']['return'] = 0 - self._defaults['ReadStatic']['actualNumRead'] = None - self._defaults['ReadStatic']['data'] = None - self._defaults['ResetDevice'] = {} - self._defaults['ResetDevice']['return'] = 0 - self._defaults['SelfCalibrate'] = {} - self._defaults['SelfCalibrate']['return'] = 0 - self._defaults['SendSoftwareEdgeTrigger'] = {} - self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViInt64'] = {} - self._defaults['SetAttributeViInt64']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['TDR'] = {} - self._defaults['TDR']['return'] = 0 - self._defaults['TDR']['actualNumOffsets'] = None - self._defaults['TDR']['offsets'] = None - self._defaults['UnloadAllPatterns'] = {} - self._defaults['UnloadAllPatterns']['return'] = 0 - self._defaults['UnloadSpecifications'] = {} - self._defaults['UnloadSpecifications']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['WaitUntilDone'] = {} - self._defaults['WaitUntilDone']['return'] = 0 - self._defaults['WriteSequencerFlag'] = {} - self._defaults['WriteSequencerFlag']['return'] = 0 - self._defaults['WriteSequencerRegister'] = {} - self._defaults['WriteSequencerRegister']['return'] = 0 - self._defaults['WriteSourceWaveformBroadcastU32'] = {} - self._defaults['WriteSourceWaveformBroadcastU32']['return'] = 0 - self._defaults['WriteSourceWaveformDataFromFileTDMS'] = {} - self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] = 0 - self._defaults['WriteSourceWaveformSiteUniqueU32'] = {} - self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] = 0 - self._defaults['WriteStatic'] = {} - self._defaults['WriteStatic']['return'] = 0 - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['testResult'] = None - self._defaults['self_test']['testMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niDigital_Abort(self, vi): # noqa: N802 - if self._defaults['Abort']['return'] != 0: - return self._defaults['Abort']['return'] - return self._defaults['Abort']['return'] - - def niDigital_AbortKeepAlive(self, vi): # noqa: N802 - if self._defaults['AbortKeepAlive']['return'] != 0: - return self._defaults['AbortKeepAlive']['return'] - return self._defaults['AbortKeepAlive']['return'] - - def niDigital_ApplyLevelsAndTiming(self, vi, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 - if self._defaults['ApplyLevelsAndTiming']['return'] != 0: - return self._defaults['ApplyLevelsAndTiming']['return'] - return self._defaults['ApplyLevelsAndTiming']['return'] - - def niDigital_ApplyTDROffsets(self, vi, channel_list, num_offsets, offsets): # noqa: N802 - if self._defaults['ApplyTDROffsets']['return'] != 0: - return self._defaults['ApplyTDROffsets']['return'] - return self._defaults['ApplyTDROffsets']['return'] - - def niDigital_BurstPattern(self, vi, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 - if self._defaults['BurstPattern']['return'] != 0: - return self._defaults['BurstPattern']['return'] - return self._defaults['BurstPattern']['return'] - - def niDigital_ClockGenerator_Abort(self, vi, channel_list): # noqa: N802 - if self._defaults['ClockGenerator_Abort']['return'] != 0: - return self._defaults['ClockGenerator_Abort']['return'] - return self._defaults['ClockGenerator_Abort']['return'] - - def niDigital_ClockGenerator_GenerateClock(self, vi, channel_list, frequency, select_digital_function): # noqa: N802 - if self._defaults['ClockGenerator_GenerateClock']['return'] != 0: - return self._defaults['ClockGenerator_GenerateClock']['return'] - return self._defaults['ClockGenerator_GenerateClock']['return'] - - def niDigital_Commit(self, vi): # noqa: N802 - if self._defaults['Commit']['return'] != 0: - return self._defaults['Commit']['return'] - return self._defaults['Commit']['return'] - - def niDigital_ConfigureActiveLoadLevels(self, vi, channel_list, iol, ioh, vcom): # noqa: N802 - if self._defaults['ConfigureActiveLoadLevels']['return'] != 0: - return self._defaults['ConfigureActiveLoadLevels']['return'] - return self._defaults['ConfigureActiveLoadLevels']['return'] - - def niDigital_ConfigurePatternBurstSites(self, vi, site_list): # noqa: N802 - if self._defaults['ConfigurePatternBurstSites']['return'] != 0: - return self._defaults['ConfigurePatternBurstSites']['return'] - return self._defaults['ConfigurePatternBurstSites']['return'] - - def niDigital_ConfigureTimeSetCompareEdgesStrobe(self, vi, pin_list, time_set_name, strobe_edge): # noqa: N802 - if self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] != 0: - return self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] - return self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] - - def niDigital_ConfigureTimeSetCompareEdgesStrobe2x(self, vi, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 - if self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] != 0: - return self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] - return self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] - - def niDigital_ConfigureTimeSetDriveEdges(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 - if self._defaults['ConfigureTimeSetDriveEdges']['return'] != 0: - return self._defaults['ConfigureTimeSetDriveEdges']['return'] - return self._defaults['ConfigureTimeSetDriveEdges']['return'] - - def niDigital_ConfigureTimeSetDriveEdges2x(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 - if self._defaults['ConfigureTimeSetDriveEdges2x']['return'] != 0: - return self._defaults['ConfigureTimeSetDriveEdges2x']['return'] - return self._defaults['ConfigureTimeSetDriveEdges2x']['return'] - - def niDigital_ConfigureTimeSetDriveFormat(self, vi, pin_list, time_set_name, drive_format): # noqa: N802 - if self._defaults['ConfigureTimeSetDriveFormat']['return'] != 0: - return self._defaults['ConfigureTimeSetDriveFormat']['return'] - return self._defaults['ConfigureTimeSetDriveFormat']['return'] - - def niDigital_ConfigureTimeSetEdge(self, vi, pin_list, time_set_name, edge, time): # noqa: N802 - if self._defaults['ConfigureTimeSetEdge']['return'] != 0: - return self._defaults['ConfigureTimeSetEdge']['return'] - return self._defaults['ConfigureTimeSetEdge']['return'] - - def niDigital_ConfigureTimeSetEdgeMultiplier(self, vi, pin_list, time_set_name, edge_multiplier): # noqa: N802 - if self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] != 0: - return self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] - return self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] - - def niDigital_ConfigureTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 - if self._defaults['ConfigureTimeSetPeriod']['return'] != 0: - return self._defaults['ConfigureTimeSetPeriod']['return'] - return self._defaults['ConfigureTimeSetPeriod']['return'] - - def niDigital_ConfigureVoltageLevels(self, vi, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 - if self._defaults['ConfigureVoltageLevels']['return'] != 0: - return self._defaults['ConfigureVoltageLevels']['return'] - return self._defaults['ConfigureVoltageLevels']['return'] - - def niDigital_CreateCaptureWaveformFromFileDigicapture(self, vi, waveform_name, waveform_file_path): # noqa: N802 - if self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] != 0: - return self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] - return self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] - - def niDigital_CreateCaptureWaveformParallel(self, vi, pin_list, waveform_name): # noqa: N802 - if self._defaults['CreateCaptureWaveformParallel']['return'] != 0: - return self._defaults['CreateCaptureWaveformParallel']['return'] - return self._defaults['CreateCaptureWaveformParallel']['return'] - - def niDigital_CreateCaptureWaveformSerial(self, vi, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 - if self._defaults['CreateCaptureWaveformSerial']['return'] != 0: - return self._defaults['CreateCaptureWaveformSerial']['return'] - return self._defaults['CreateCaptureWaveformSerial']['return'] - - def niDigital_CreateSourceWaveformFromFileTDMS(self, vi, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 - if self._defaults['CreateSourceWaveformFromFileTDMS']['return'] != 0: - return self._defaults['CreateSourceWaveformFromFileTDMS']['return'] - return self._defaults['CreateSourceWaveformFromFileTDMS']['return'] - - def niDigital_CreateSourceWaveformParallel(self, vi, pin_list, waveform_name, data_mapping): # noqa: N802 - if self._defaults['CreateSourceWaveformParallel']['return'] != 0: - return self._defaults['CreateSourceWaveformParallel']['return'] - return self._defaults['CreateSourceWaveformParallel']['return'] - - def niDigital_CreateSourceWaveformSerial(self, vi, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 - if self._defaults['CreateSourceWaveformSerial']['return'] != 0: - return self._defaults['CreateSourceWaveformSerial']['return'] - return self._defaults['CreateSourceWaveformSerial']['return'] - - def niDigital_CreateTimeSet(self, vi, name): # noqa: N802 - if self._defaults['CreateTimeSet']['return'] != 0: - return self._defaults['CreateTimeSet']['return'] - return self._defaults['CreateTimeSet']['return'] - - def niDigital_DeleteAllTimeSets(self, vi): # noqa: N802 - if self._defaults['DeleteAllTimeSets']['return'] != 0: - return self._defaults['DeleteAllTimeSets']['return'] - return self._defaults['DeleteAllTimeSets']['return'] - - def niDigital_DisableSites(self, vi, site_list): # noqa: N802 - if self._defaults['DisableSites']['return'] != 0: - return self._defaults['DisableSites']['return'] - return self._defaults['DisableSites']['return'] - - def niDigital_EnableMatchFailCombination(self, session_count, sessions, sync_session): # noqa: N802 - if self._defaults['EnableMatchFailCombination']['return'] != 0: - return self._defaults['EnableMatchFailCombination']['return'] - return self._defaults['EnableMatchFailCombination']['return'] - - def niDigital_EnableSites(self, vi, site_list): # noqa: N802 - if self._defaults['EnableSites']['return'] != 0: - return self._defaults['EnableSites']['return'] - return self._defaults['EnableSites']['return'] - - def niDigital_FetchCaptureWaveformU32(self, vi, site_list, waveform_name, samples_to_read, timeout, data_buffer_size, data, actual_num_waveforms, actual_samples_per_waveform): # noqa: N802 - if self._defaults['FetchCaptureWaveformU32']['return'] != 0: - return self._defaults['FetchCaptureWaveformU32']['return'] - # actual_num_waveforms - if self._defaults['FetchCaptureWaveformU32']['actualNumWaveforms'] is None: - raise MockFunctionCallError("niDigital_FetchCaptureWaveformU32", param='actualNumWaveforms') - if actual_num_waveforms is not None: - actual_num_waveforms.contents.value = self._defaults['FetchCaptureWaveformU32']['actualNumWaveforms'] - # actual_samples_per_waveform - if self._defaults['FetchCaptureWaveformU32']['actualSamplesPerWaveform'] is None: - raise MockFunctionCallError("niDigital_FetchCaptureWaveformU32", param='actualSamplesPerWaveform') - if actual_samples_per_waveform is not None: - actual_samples_per_waveform.contents.value = self._defaults['FetchCaptureWaveformU32']['actualSamplesPerWaveform'] - # data - if self._defaults['FetchCaptureWaveformU32']['data'] is None: - raise MockFunctionCallError("niDigital_FetchCaptureWaveformU32", param='data') - if data_buffer_size.value == 0: - return len(self._defaults['FetchCaptureWaveformU32']['data']) - try: - data_ref = data.contents - except AttributeError: - data_ref = data - for i in range(len(self._defaults['FetchCaptureWaveformU32']['data'])): - data_ref[i] = self._defaults['FetchCaptureWaveformU32']['data'][i] - return self._defaults['FetchCaptureWaveformU32']['return'] - - def niDigital_FetchHistoryRAMCycleInformation(self, vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles): # noqa: N802 - if self._defaults['FetchHistoryRAMCycleInformation']['return'] != 0: - return self._defaults['FetchHistoryRAMCycleInformation']['return'] - # pattern_index - if self._defaults['FetchHistoryRAMCycleInformation']['patternIndex'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='patternIndex') - if pattern_index is not None: - pattern_index.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['patternIndex'] - # time_set_index - if self._defaults['FetchHistoryRAMCycleInformation']['timeSetIndex'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='timeSetIndex') - if time_set_index is not None: - time_set_index.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['timeSetIndex'] - # vector_number - if self._defaults['FetchHistoryRAMCycleInformation']['vectorNumber'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='vectorNumber') - if vector_number is not None: - vector_number.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['vectorNumber'] - # cycle_number - if self._defaults['FetchHistoryRAMCycleInformation']['cycleNumber'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='cycleNumber') - if cycle_number is not None: - cycle_number.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['cycleNumber'] - # num_dut_cycles - if self._defaults['FetchHistoryRAMCycleInformation']['numDutCycles'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='numDutCycles') - if num_dut_cycles is not None: - num_dut_cycles.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['numDutCycles'] - return self._defaults['FetchHistoryRAMCycleInformation']['return'] - - def niDigital_FetchHistoryRAMCyclePinData(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 - if self._defaults['FetchHistoryRAMCyclePinData']['return'] != 0: - return self._defaults['FetchHistoryRAMCyclePinData']['return'] - # actual_num_pin_data - if self._defaults['FetchHistoryRAMCyclePinData']['actualNumPinData'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='actualNumPinData') - if actual_num_pin_data is not None: - actual_num_pin_data.contents.value = self._defaults['FetchHistoryRAMCyclePinData']['actualNumPinData'] - # expected_pin_states - if self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='expectedPinStates') - if pin_data_buffer_size.value == 0: - return len(self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates']) - try: - expected_pin_states_ref = expected_pin_states.contents - except AttributeError: - expected_pin_states_ref = expected_pin_states - for i in range(len(self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'])): - expected_pin_states_ref[i] = self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'][i] - # actual_pin_states - if self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='actualPinStates') - if pin_data_buffer_size.value == 0: - return len(self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates']) - try: - actual_pin_states_ref = actual_pin_states.contents - except AttributeError: - actual_pin_states_ref = actual_pin_states - for i in range(len(self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'])): - actual_pin_states_ref[i] = self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'][i] - # per_pin_pass_fail - if self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='perPinPassFail') - if pin_data_buffer_size.value == 0: - return len(self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail']) - try: - per_pin_pass_fail_ref = per_pin_pass_fail.contents - except AttributeError: - per_pin_pass_fail_ref = per_pin_pass_fail - for i in range(len(self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'])): - per_pin_pass_fail_ref[i] = self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'][i] - return self._defaults['FetchHistoryRAMCyclePinData']['return'] - - def niDigital_FetchHistoryRAMScanCycleNumber(self, vi, site, sample_index, scan_cycle_number): # noqa: N802 - if self._defaults['FetchHistoryRAMScanCycleNumber']['return'] != 0: - return self._defaults['FetchHistoryRAMScanCycleNumber']['return'] - # scan_cycle_number - if self._defaults['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] is None: - raise MockFunctionCallError("niDigital_FetchHistoryRAMScanCycleNumber", param='scanCycleNumber') - if scan_cycle_number is not None: - scan_cycle_number.contents.value = self._defaults['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] - return self._defaults['FetchHistoryRAMScanCycleNumber']['return'] - - def niDigital_FrequencyCounter_MeasureFrequency(self, vi, channel_list, frequencies_buffer_size, frequencies, actual_num_frequencies): # noqa: N802 - if self._defaults['FrequencyCounter_MeasureFrequency']['return'] != 0: - return self._defaults['FrequencyCounter_MeasureFrequency']['return'] - # actual_num_frequencies - if self._defaults['FrequencyCounter_MeasureFrequency']['actualNumFrequencies'] is None: - raise MockFunctionCallError("niDigital_FrequencyCounter_MeasureFrequency", param='actualNumFrequencies') - if actual_num_frequencies is not None: - actual_num_frequencies.contents.value = self._defaults['FrequencyCounter_MeasureFrequency']['actualNumFrequencies'] - # frequencies - if self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'] is None: - raise MockFunctionCallError("niDigital_FrequencyCounter_MeasureFrequency", param='frequencies') - if frequencies_buffer_size.value == 0: - return len(self._defaults['FrequencyCounter_MeasureFrequency']['frequencies']) - try: - frequencies_ref = frequencies.contents - except AttributeError: - frequencies_ref = frequencies - for i in range(len(self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'])): - frequencies_ref[i] = self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'][i] - return self._defaults['FrequencyCounter_MeasureFrequency']['return'] - - def niDigital_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # value - if self._defaults['GetAttributeViBoolean']['value'] is None: - raise MockFunctionCallError("niDigital_GetAttributeViBoolean", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViBoolean']['value'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niDigital_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # value - if self._defaults['GetAttributeViInt32']['value'] is None: - raise MockFunctionCallError("niDigital_GetAttributeViInt32", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt32']['value'] - return self._defaults['GetAttributeViInt32']['return'] - - def niDigital_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViInt64']['return'] != 0: - return self._defaults['GetAttributeViInt64']['return'] - # value - if self._defaults['GetAttributeViInt64']['value'] is None: - raise MockFunctionCallError("niDigital_GetAttributeViInt64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt64']['value'] - return self._defaults['GetAttributeViInt64']['return'] - - def niDigital_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # value - if self._defaults['GetAttributeViReal64']['value'] is None: - raise MockFunctionCallError("niDigital_GetAttributeViReal64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViReal64']['value'] - return self._defaults['GetAttributeViReal64']['return'] - - def niDigital_GetAttributeViString(self, vi, channel_name, attribute, buffer_size, value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # value - if self._defaults['GetAttributeViString']['value'] is None: - raise MockFunctionCallError("niDigital_GetAttributeViString", param='value') - if buffer_size.value == 0: - return len(self._defaults['GetAttributeViString']['value']) - value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niDigital_GetChannelNameFromString(self, vi, indices, name_buffer_size, names): # noqa: N802 - if self._defaults['GetChannelNameFromString']['return'] != 0: - return self._defaults['GetChannelNameFromString']['return'] - # names - if self._defaults['GetChannelNameFromString']['name'] is None: - raise MockFunctionCallError("niDigital_GetChannelNameFromString", param='name') - if name_buffer_size.value == 0: - return len(self._defaults['GetChannelNameFromString']['name']) - names.value = self._defaults['GetChannelNameFromString']['name'].encode('ascii') - return self._defaults['GetChannelNameFromString']['return'] - - def niDigital_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niDigital_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # error_description - if self._defaults['GetError']['errorDescription'] is None: - raise MockFunctionCallError("niDigital_GetError", param='errorDescription') - if error_description_buffer_size.value == 0: - return len(self._defaults['GetError']['errorDescription']) - error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') - return self._defaults['GetError']['return'] - - def niDigital_GetFailCount(self, vi, channel_list, buffer_size, failure_count, actual_num_read): # noqa: N802 - if self._defaults['GetFailCount']['return'] != 0: - return self._defaults['GetFailCount']['return'] - # actual_num_read - if self._defaults['GetFailCount']['actualNumRead'] is None: - raise MockFunctionCallError("niDigital_GetFailCount", param='actualNumRead') - if actual_num_read is not None: - actual_num_read.contents.value = self._defaults['GetFailCount']['actualNumRead'] - # failure_count - if self._defaults['GetFailCount']['failureCount'] is None: - raise MockFunctionCallError("niDigital_GetFailCount", param='failureCount') - if buffer_size.value == 0: - return len(self._defaults['GetFailCount']['failureCount']) - try: - failure_count_ref = failure_count.contents - except AttributeError: - failure_count_ref = failure_count - for i in range(len(self._defaults['GetFailCount']['failureCount'])): - failure_count_ref[i] = self._defaults['GetFailCount']['failureCount'][i] - return self._defaults['GetFailCount']['return'] - - def niDigital_GetHistoryRAMSampleCount(self, vi, site, sample_count): # noqa: N802 - if self._defaults['GetHistoryRAMSampleCount']['return'] != 0: - return self._defaults['GetHistoryRAMSampleCount']['return'] - # sample_count - if self._defaults['GetHistoryRAMSampleCount']['sampleCount'] is None: - raise MockFunctionCallError("niDigital_GetHistoryRAMSampleCount", param='sampleCount') - if sample_count is not None: - sample_count.contents.value = self._defaults['GetHistoryRAMSampleCount']['sampleCount'] - return self._defaults['GetHistoryRAMSampleCount']['return'] - - def niDigital_GetPatternName(self, vi, pattern_index, name_buffer_size, name): # noqa: N802 - if self._defaults['GetPatternName']['return'] != 0: - return self._defaults['GetPatternName']['return'] - # name - if self._defaults['GetPatternName']['name'] is None: - raise MockFunctionCallError("niDigital_GetPatternName", param='name') - if name_buffer_size.value == 0: - return len(self._defaults['GetPatternName']['name']) - name.value = self._defaults['GetPatternName']['name'].encode('ascii') - return self._defaults['GetPatternName']['return'] - - def niDigital_GetPatternPinList(self, vi, start_label, pin_list_buffer_size, pin_list): # noqa: N802 - if self._defaults['GetPatternPinList']['return'] != 0: - return self._defaults['GetPatternPinList']['return'] - # pin_list - if self._defaults['GetPatternPinList']['pinList'] is None: - raise MockFunctionCallError("niDigital_GetPatternPinList", param='pinList') - if pin_list_buffer_size.value == 0: - return len(self._defaults['GetPatternPinList']['pinList']) - pin_list.value = self._defaults['GetPatternPinList']['pinList'].encode('ascii') - return self._defaults['GetPatternPinList']['return'] - - def niDigital_GetPinName(self, vi, pin_index, name_buffer_size, name): # noqa: N802 - if self._defaults['GetPinName']['return'] != 0: - return self._defaults['GetPinName']['return'] - # name - if self._defaults['GetPinName']['name'] is None: - raise MockFunctionCallError("niDigital_GetPinName", param='name') - if name_buffer_size.value == 0: - return len(self._defaults['GetPinName']['name']) - name.value = self._defaults['GetPinName']['name'].encode('ascii') - return self._defaults['GetPinName']['return'] - - def niDigital_GetPinResultsPinInformation(self, vi, channel_list, buffer_size, pin_indexes, site_numbers, channel_indexes, actual_num_values): # noqa: N802 - if self._defaults['GetPinResultsPinInformation']['return'] != 0: - return self._defaults['GetPinResultsPinInformation']['return'] - # actual_num_values - if self._defaults['GetPinResultsPinInformation']['actualNumValues'] is None: - raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='actualNumValues') - if actual_num_values is not None: - actual_num_values.contents.value = self._defaults['GetPinResultsPinInformation']['actualNumValues'] - # pin_indexes - if self._defaults['GetPinResultsPinInformation']['pinIndexes'] is None: - raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='pinIndexes') - if buffer_size.value == 0: - return len(self._defaults['GetPinResultsPinInformation']['pinIndexes']) - try: - pin_indexes_ref = pin_indexes.contents - except AttributeError: - pin_indexes_ref = pin_indexes - for i in range(len(self._defaults['GetPinResultsPinInformation']['pinIndexes'])): - pin_indexes_ref[i] = self._defaults['GetPinResultsPinInformation']['pinIndexes'][i] - # site_numbers - if self._defaults['GetPinResultsPinInformation']['siteNumbers'] is None: - raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='siteNumbers') - if buffer_size.value == 0: - return len(self._defaults['GetPinResultsPinInformation']['siteNumbers']) - try: - site_numbers_ref = site_numbers.contents - except AttributeError: - site_numbers_ref = site_numbers - for i in range(len(self._defaults['GetPinResultsPinInformation']['siteNumbers'])): - site_numbers_ref[i] = self._defaults['GetPinResultsPinInformation']['siteNumbers'][i] - # channel_indexes - if self._defaults['GetPinResultsPinInformation']['channelIndexes'] is None: - raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='channelIndexes') - if buffer_size.value == 0: - return len(self._defaults['GetPinResultsPinInformation']['channelIndexes']) - try: - channel_indexes_ref = channel_indexes.contents - except AttributeError: - channel_indexes_ref = channel_indexes - for i in range(len(self._defaults['GetPinResultsPinInformation']['channelIndexes'])): - channel_indexes_ref[i] = self._defaults['GetPinResultsPinInformation']['channelIndexes'][i] - return self._defaults['GetPinResultsPinInformation']['return'] - - def niDigital_GetSitePassFail(self, vi, site_list, pass_fail_buffer_size, pass_fail, actual_num_sites): # noqa: N802 - if self._defaults['GetSitePassFail']['return'] != 0: - return self._defaults['GetSitePassFail']['return'] - # actual_num_sites - if self._defaults['GetSitePassFail']['actualNumSites'] is None: - raise MockFunctionCallError("niDigital_GetSitePassFail", param='actualNumSites') - if actual_num_sites is not None: - actual_num_sites.contents.value = self._defaults['GetSitePassFail']['actualNumSites'] - # pass_fail - if self._defaults['GetSitePassFail']['passFail'] is None: - raise MockFunctionCallError("niDigital_GetSitePassFail", param='passFail') - if pass_fail_buffer_size.value == 0: - return len(self._defaults['GetSitePassFail']['passFail']) - try: - pass_fail_ref = pass_fail.contents - except AttributeError: - pass_fail_ref = pass_fail - for i in range(len(self._defaults['GetSitePassFail']['passFail'])): - pass_fail_ref[i] = self._defaults['GetSitePassFail']['passFail'][i] - return self._defaults['GetSitePassFail']['return'] - - def niDigital_GetSiteResultsSiteNumbers(self, vi, site_list, site_result_type, site_numbers_buffer_size, site_numbers, actual_num_site_numbers): # noqa: N802 - if self._defaults['GetSiteResultsSiteNumbers']['return'] != 0: - return self._defaults['GetSiteResultsSiteNumbers']['return'] - # actual_num_site_numbers - if self._defaults['GetSiteResultsSiteNumbers']['actualNumSiteNumbers'] is None: - raise MockFunctionCallError("niDigital_GetSiteResultsSiteNumbers", param='actualNumSiteNumbers') - if actual_num_site_numbers is not None: - actual_num_site_numbers.contents.value = self._defaults['GetSiteResultsSiteNumbers']['actualNumSiteNumbers'] - # site_numbers - if self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'] is None: - raise MockFunctionCallError("niDigital_GetSiteResultsSiteNumbers", param='siteNumbers') - if site_numbers_buffer_size.value == 0: - return len(self._defaults['GetSiteResultsSiteNumbers']['siteNumbers']) - try: - site_numbers_ref = site_numbers.contents - except AttributeError: - site_numbers_ref = site_numbers - for i in range(len(self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'])): - site_numbers_ref[i] = self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'][i] - return self._defaults['GetSiteResultsSiteNumbers']['return'] - - def niDigital_GetTimeSetDriveFormat(self, vi, pin, time_set_name, format): # noqa: N802 - if self._defaults['GetTimeSetDriveFormat']['return'] != 0: - return self._defaults['GetTimeSetDriveFormat']['return'] - # format - if self._defaults['GetTimeSetDriveFormat']['format'] is None: - raise MockFunctionCallError("niDigital_GetTimeSetDriveFormat", param='format') - if format is not None: - format.contents.value = self._defaults['GetTimeSetDriveFormat']['format'] - return self._defaults['GetTimeSetDriveFormat']['return'] - - def niDigital_GetTimeSetEdge(self, vi, pin, time_set_name, edge, time): # noqa: N802 - if self._defaults['GetTimeSetEdge']['return'] != 0: - return self._defaults['GetTimeSetEdge']['return'] - # time - if self._defaults['GetTimeSetEdge']['time'] is None: - raise MockFunctionCallError("niDigital_GetTimeSetEdge", param='time') - if time is not None: - time.contents.value = self._defaults['GetTimeSetEdge']['time'] - return self._defaults['GetTimeSetEdge']['return'] - - def niDigital_GetTimeSetEdgeMultiplier(self, vi, pin, time_set_name, edge_multiplier): # noqa: N802 - if self._defaults['GetTimeSetEdgeMultiplier']['return'] != 0: - return self._defaults['GetTimeSetEdgeMultiplier']['return'] - # edge_multiplier - if self._defaults['GetTimeSetEdgeMultiplier']['edgeMultiplier'] is None: - raise MockFunctionCallError("niDigital_GetTimeSetEdgeMultiplier", param='edgeMultiplier') - if edge_multiplier is not None: - edge_multiplier.contents.value = self._defaults['GetTimeSetEdgeMultiplier']['edgeMultiplier'] - return self._defaults['GetTimeSetEdgeMultiplier']['return'] - - def niDigital_GetTimeSetName(self, vi, time_set_index, name_buffer_size, name): # noqa: N802 - if self._defaults['GetTimeSetName']['return'] != 0: - return self._defaults['GetTimeSetName']['return'] - # name - if self._defaults['GetTimeSetName']['name'] is None: - raise MockFunctionCallError("niDigital_GetTimeSetName", param='name') - if name_buffer_size.value == 0: - return len(self._defaults['GetTimeSetName']['name']) - name.value = self._defaults['GetTimeSetName']['name'].encode('ascii') - return self._defaults['GetTimeSetName']['return'] - - def niDigital_GetTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 - if self._defaults['GetTimeSetPeriod']['return'] != 0: - return self._defaults['GetTimeSetPeriod']['return'] - # period - if self._defaults['GetTimeSetPeriod']['period'] is None: - raise MockFunctionCallError("niDigital_GetTimeSetPeriod", param='period') - if period is not None: - period.contents.value = self._defaults['GetTimeSetPeriod']['period'] - return self._defaults['GetTimeSetPeriod']['return'] - - def niDigital_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 - if self._defaults['InitWithOptions']['return'] != 0: - return self._defaults['InitWithOptions']['return'] - # new_vi - if self._defaults['InitWithOptions']['newVi'] is None: - raise MockFunctionCallError("niDigital_InitWithOptions", param='newVi') - if new_vi is not None: - new_vi.contents.value = self._defaults['InitWithOptions']['newVi'] - return self._defaults['InitWithOptions']['return'] - - def niDigital_Initiate(self, vi): # noqa: N802 - if self._defaults['Initiate']['return'] != 0: - return self._defaults['Initiate']['return'] - return self._defaults['Initiate']['return'] - - def niDigital_IsDone(self, vi, done): # noqa: N802 - if self._defaults['IsDone']['return'] != 0: - return self._defaults['IsDone']['return'] - # done - if self._defaults['IsDone']['done'] is None: - raise MockFunctionCallError("niDigital_IsDone", param='done') - if done is not None: - done.contents.value = self._defaults['IsDone']['done'] - return self._defaults['IsDone']['return'] - - def niDigital_IsSiteEnabled(self, vi, site, enable): # noqa: N802 - if self._defaults['IsSiteEnabled']['return'] != 0: - return self._defaults['IsSiteEnabled']['return'] - # enable - if self._defaults['IsSiteEnabled']['enable'] is None: - raise MockFunctionCallError("niDigital_IsSiteEnabled", param='enable') - if enable is not None: - enable.contents.value = self._defaults['IsSiteEnabled']['enable'] - return self._defaults['IsSiteEnabled']['return'] - - def niDigital_LoadLevels(self, vi, file_path): # noqa: N802 - if self._defaults['LoadLevels']['return'] != 0: - return self._defaults['LoadLevels']['return'] - return self._defaults['LoadLevels']['return'] - - def niDigital_LoadPattern(self, vi, file_path): # noqa: N802 - if self._defaults['LoadPattern']['return'] != 0: - return self._defaults['LoadPattern']['return'] - return self._defaults['LoadPattern']['return'] - - def niDigital_LoadPinMap(self, vi, file_path): # noqa: N802 - if self._defaults['LoadPinMap']['return'] != 0: - return self._defaults['LoadPinMap']['return'] - return self._defaults['LoadPinMap']['return'] - - def niDigital_LoadSpecifications(self, vi, file_path): # noqa: N802 - if self._defaults['LoadSpecifications']['return'] != 0: - return self._defaults['LoadSpecifications']['return'] - return self._defaults['LoadSpecifications']['return'] - - def niDigital_LoadTiming(self, vi, file_path): # noqa: N802 - if self._defaults['LoadTiming']['return'] != 0: - return self._defaults['LoadTiming']['return'] - return self._defaults['LoadTiming']['return'] - - def niDigital_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niDigital_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niDigital_PPMU_Measure(self, vi, channel_list, measurement_type, buffer_size, measurements, actual_num_read): # noqa: N802 - if self._defaults['PPMU_Measure']['return'] != 0: - return self._defaults['PPMU_Measure']['return'] - # actual_num_read - if self._defaults['PPMU_Measure']['actualNumRead'] is None: - raise MockFunctionCallError("niDigital_PPMU_Measure", param='actualNumRead') - if actual_num_read is not None: - actual_num_read.contents.value = self._defaults['PPMU_Measure']['actualNumRead'] - # measurements - if self._defaults['PPMU_Measure']['measurements'] is None: - raise MockFunctionCallError("niDigital_PPMU_Measure", param='measurements') - if buffer_size.value == 0: - return len(self._defaults['PPMU_Measure']['measurements']) - try: - measurements_ref = measurements.contents - except AttributeError: - measurements_ref = measurements - for i in range(len(self._defaults['PPMU_Measure']['measurements'])): - measurements_ref[i] = self._defaults['PPMU_Measure']['measurements'][i] - return self._defaults['PPMU_Measure']['return'] - - def niDigital_PPMU_Source(self, vi, channel_list): # noqa: N802 - if self._defaults['PPMU_Source']['return'] != 0: - return self._defaults['PPMU_Source']['return'] - return self._defaults['PPMU_Source']['return'] - - def niDigital_ReadSequencerFlag(self, vi, flag, value): # noqa: N802 - if self._defaults['ReadSequencerFlag']['return'] != 0: - return self._defaults['ReadSequencerFlag']['return'] - # value - if self._defaults['ReadSequencerFlag']['value'] is None: - raise MockFunctionCallError("niDigital_ReadSequencerFlag", param='value') - if value is not None: - value.contents.value = self._defaults['ReadSequencerFlag']['value'] - return self._defaults['ReadSequencerFlag']['return'] - - def niDigital_ReadSequencerRegister(self, vi, reg, value): # noqa: N802 - if self._defaults['ReadSequencerRegister']['return'] != 0: - return self._defaults['ReadSequencerRegister']['return'] - # value - if self._defaults['ReadSequencerRegister']['value'] is None: - raise MockFunctionCallError("niDigital_ReadSequencerRegister", param='value') - if value is not None: - value.contents.value = self._defaults['ReadSequencerRegister']['value'] - return self._defaults['ReadSequencerRegister']['return'] - - def niDigital_ReadStatic(self, vi, channel_list, buffer_size, data, actual_num_read): # noqa: N802 - if self._defaults['ReadStatic']['return'] != 0: - return self._defaults['ReadStatic']['return'] - # actual_num_read - if self._defaults['ReadStatic']['actualNumRead'] is None: - raise MockFunctionCallError("niDigital_ReadStatic", param='actualNumRead') - if actual_num_read is not None: - actual_num_read.contents.value = self._defaults['ReadStatic']['actualNumRead'] - # data - if self._defaults['ReadStatic']['data'] is None: - raise MockFunctionCallError("niDigital_ReadStatic", param='data') - if buffer_size.value == 0: - return len(self._defaults['ReadStatic']['data']) - try: - data_ref = data.contents - except AttributeError: - data_ref = data - for i in range(len(self._defaults['ReadStatic']['data'])): - data_ref[i] = self._defaults['ReadStatic']['data'][i] - return self._defaults['ReadStatic']['return'] - - def niDigital_ResetDevice(self, vi): # noqa: N802 - if self._defaults['ResetDevice']['return'] != 0: - return self._defaults['ResetDevice']['return'] - return self._defaults['ResetDevice']['return'] - - def niDigital_SelfCalibrate(self, vi): # noqa: N802 - if self._defaults['SelfCalibrate']['return'] != 0: - return self._defaults['SelfCalibrate']['return'] - return self._defaults['SelfCalibrate']['return'] - - def niDigital_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 - if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: - return self._defaults['SendSoftwareEdgeTrigger']['return'] - return self._defaults['SendSoftwareEdgeTrigger']['return'] - - def niDigital_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niDigital_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niDigital_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViInt64']['return'] != 0: - return self._defaults['SetAttributeViInt64']['return'] - return self._defaults['SetAttributeViInt64']['return'] - - def niDigital_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niDigital_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niDigital_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niDigital_TDR(self, vi, channel_list, apply_offsets, offsets_buffer_size, offsets, actual_num_offsets): # noqa: N802 - if self._defaults['TDR']['return'] != 0: - return self._defaults['TDR']['return'] - # actual_num_offsets - if self._defaults['TDR']['actualNumOffsets'] is None: - raise MockFunctionCallError("niDigital_TDR", param='actualNumOffsets') - if actual_num_offsets is not None: - actual_num_offsets.contents.value = self._defaults['TDR']['actualNumOffsets'] - # offsets - if self._defaults['TDR']['offsets'] is None: - raise MockFunctionCallError("niDigital_TDR", param='offsets') - if offsets_buffer_size.value == 0: - return len(self._defaults['TDR']['offsets']) - try: - offsets_ref = offsets.contents - except AttributeError: - offsets_ref = offsets - for i in range(len(self._defaults['TDR']['offsets'])): - offsets_ref[i] = self._defaults['TDR']['offsets'][i] - return self._defaults['TDR']['return'] - - def niDigital_UnloadAllPatterns(self, vi, unload_keep_alive_pattern): # noqa: N802 - if self._defaults['UnloadAllPatterns']['return'] != 0: - return self._defaults['UnloadAllPatterns']['return'] - return self._defaults['UnloadAllPatterns']['return'] - - def niDigital_UnloadSpecifications(self, vi, file_path): # noqa: N802 - if self._defaults['UnloadSpecifications']['return'] != 0: - return self._defaults['UnloadSpecifications']['return'] - return self._defaults['UnloadSpecifications']['return'] - - def niDigital_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niDigital_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niDigital_WaitUntilDone(self, vi, timeout): # noqa: N802 - if self._defaults['WaitUntilDone']['return'] != 0: - return self._defaults['WaitUntilDone']['return'] - return self._defaults['WaitUntilDone']['return'] - - def niDigital_WriteSequencerFlag(self, vi, flag, value): # noqa: N802 - if self._defaults['WriteSequencerFlag']['return'] != 0: - return self._defaults['WriteSequencerFlag']['return'] - return self._defaults['WriteSequencerFlag']['return'] - - def niDigital_WriteSequencerRegister(self, vi, reg, value): # noqa: N802 - if self._defaults['WriteSequencerRegister']['return'] != 0: - return self._defaults['WriteSequencerRegister']['return'] - return self._defaults['WriteSequencerRegister']['return'] - - def niDigital_WriteSourceWaveformBroadcastU32(self, vi, waveform_name, waveform_size, waveform_data): # noqa: N802 - if self._defaults['WriteSourceWaveformBroadcastU32']['return'] != 0: - return self._defaults['WriteSourceWaveformBroadcastU32']['return'] - return self._defaults['WriteSourceWaveformBroadcastU32']['return'] - - def niDigital_WriteSourceWaveformDataFromFileTDMS(self, vi, waveform_name, waveform_file_path): # noqa: N802 - if self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] != 0: - return self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] - return self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] - - def niDigital_WriteSourceWaveformSiteUniqueU32(self, vi, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 - if self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] != 0: - return self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] - return self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] - - def niDigital_WriteStatic(self, vi, channel_list, state): # noqa: N802 - if self._defaults['WriteStatic']['return'] != 0: - return self._defaults['WriteStatic']['return'] - return self._defaults['WriteStatic']['return'] - - def niDigital_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niDigital_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niDigital_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niDigital_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niDigital_self_test(self, vi, test_result, test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # test_result - if self._defaults['self_test']['testResult'] is None: - raise MockFunctionCallError("niDigital_self_test", param='testResult') - if test_result is not None: - test_result.contents.value = self._defaults['self_test']['testResult'] - # test_message - if self._defaults['self_test']['testMessage'] is None: - raise MockFunctionCallError("niDigital_self_test", param='testMessage') - test_value = self._defaults['self_test']['testMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(test_message) >= len(test_value) - for i in range(len(test_value)): - test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niDigital_Abort.side_effect = MockFunctionCallError("niDigital_Abort") - mock_library.niDigital_Abort.return_value = 0 - mock_library.niDigital_AbortKeepAlive.side_effect = MockFunctionCallError("niDigital_AbortKeepAlive") - mock_library.niDigital_AbortKeepAlive.return_value = 0 - mock_library.niDigital_ApplyLevelsAndTiming.side_effect = MockFunctionCallError("niDigital_ApplyLevelsAndTiming") - mock_library.niDigital_ApplyLevelsAndTiming.return_value = 0 - mock_library.niDigital_ApplyTDROffsets.side_effect = MockFunctionCallError("niDigital_ApplyTDROffsets") - mock_library.niDigital_ApplyTDROffsets.return_value = 0 - mock_library.niDigital_BurstPattern.side_effect = MockFunctionCallError("niDigital_BurstPattern") - mock_library.niDigital_BurstPattern.return_value = 0 - mock_library.niDigital_ClockGenerator_Abort.side_effect = MockFunctionCallError("niDigital_ClockGenerator_Abort") - mock_library.niDigital_ClockGenerator_Abort.return_value = 0 - mock_library.niDigital_ClockGenerator_GenerateClock.side_effect = MockFunctionCallError("niDigital_ClockGenerator_GenerateClock") - mock_library.niDigital_ClockGenerator_GenerateClock.return_value = 0 - mock_library.niDigital_Commit.side_effect = MockFunctionCallError("niDigital_Commit") - mock_library.niDigital_Commit.return_value = 0 - mock_library.niDigital_ConfigureActiveLoadLevels.side_effect = MockFunctionCallError("niDigital_ConfigureActiveLoadLevels") - mock_library.niDigital_ConfigureActiveLoadLevels.return_value = 0 - mock_library.niDigital_ConfigurePatternBurstSites.side_effect = MockFunctionCallError("niDigital_ConfigurePatternBurstSites") - mock_library.niDigital_ConfigurePatternBurstSites.return_value = 0 - mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetCompareEdgesStrobe") - mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe.return_value = 0 - mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe2x.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetCompareEdgesStrobe2x") - mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe2x.return_value = 0 - mock_library.niDigital_ConfigureTimeSetDriveEdges.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetDriveEdges") - mock_library.niDigital_ConfigureTimeSetDriveEdges.return_value = 0 - mock_library.niDigital_ConfigureTimeSetDriveEdges2x.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetDriveEdges2x") - mock_library.niDigital_ConfigureTimeSetDriveEdges2x.return_value = 0 - mock_library.niDigital_ConfigureTimeSetDriveFormat.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetDriveFormat") - mock_library.niDigital_ConfigureTimeSetDriveFormat.return_value = 0 - mock_library.niDigital_ConfigureTimeSetEdge.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetEdge") - mock_library.niDigital_ConfigureTimeSetEdge.return_value = 0 - mock_library.niDigital_ConfigureTimeSetEdgeMultiplier.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetEdgeMultiplier") - mock_library.niDigital_ConfigureTimeSetEdgeMultiplier.return_value = 0 - mock_library.niDigital_ConfigureTimeSetPeriod.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetPeriod") - mock_library.niDigital_ConfigureTimeSetPeriod.return_value = 0 - mock_library.niDigital_ConfigureVoltageLevels.side_effect = MockFunctionCallError("niDigital_ConfigureVoltageLevels") - mock_library.niDigital_ConfigureVoltageLevels.return_value = 0 - mock_library.niDigital_CreateCaptureWaveformFromFileDigicapture.side_effect = MockFunctionCallError("niDigital_CreateCaptureWaveformFromFileDigicapture") - mock_library.niDigital_CreateCaptureWaveformFromFileDigicapture.return_value = 0 - mock_library.niDigital_CreateCaptureWaveformParallel.side_effect = MockFunctionCallError("niDigital_CreateCaptureWaveformParallel") - mock_library.niDigital_CreateCaptureWaveformParallel.return_value = 0 - mock_library.niDigital_CreateCaptureWaveformSerial.side_effect = MockFunctionCallError("niDigital_CreateCaptureWaveformSerial") - mock_library.niDigital_CreateCaptureWaveformSerial.return_value = 0 - mock_library.niDigital_CreateSourceWaveformFromFileTDMS.side_effect = MockFunctionCallError("niDigital_CreateSourceWaveformFromFileTDMS") - mock_library.niDigital_CreateSourceWaveformFromFileTDMS.return_value = 0 - mock_library.niDigital_CreateSourceWaveformParallel.side_effect = MockFunctionCallError("niDigital_CreateSourceWaveformParallel") - mock_library.niDigital_CreateSourceWaveformParallel.return_value = 0 - mock_library.niDigital_CreateSourceWaveformSerial.side_effect = MockFunctionCallError("niDigital_CreateSourceWaveformSerial") - mock_library.niDigital_CreateSourceWaveformSerial.return_value = 0 - mock_library.niDigital_CreateTimeSet.side_effect = MockFunctionCallError("niDigital_CreateTimeSet") - mock_library.niDigital_CreateTimeSet.return_value = 0 - mock_library.niDigital_DeleteAllTimeSets.side_effect = MockFunctionCallError("niDigital_DeleteAllTimeSets") - mock_library.niDigital_DeleteAllTimeSets.return_value = 0 - mock_library.niDigital_DisableSites.side_effect = MockFunctionCallError("niDigital_DisableSites") - mock_library.niDigital_DisableSites.return_value = 0 - mock_library.niDigital_EnableMatchFailCombination.side_effect = MockFunctionCallError("niDigital_EnableMatchFailCombination") - mock_library.niDigital_EnableMatchFailCombination.return_value = 0 - mock_library.niDigital_EnableSites.side_effect = MockFunctionCallError("niDigital_EnableSites") - mock_library.niDigital_EnableSites.return_value = 0 - mock_library.niDigital_FetchCaptureWaveformU32.side_effect = MockFunctionCallError("niDigital_FetchCaptureWaveformU32") - mock_library.niDigital_FetchCaptureWaveformU32.return_value = 0 - mock_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation") - mock_library.niDigital_FetchHistoryRAMCycleInformation.return_value = 0 - mock_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData") - mock_library.niDigital_FetchHistoryRAMCyclePinData.return_value = 0 - mock_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = MockFunctionCallError("niDigital_FetchHistoryRAMScanCycleNumber") - mock_library.niDigital_FetchHistoryRAMScanCycleNumber.return_value = 0 - mock_library.niDigital_FrequencyCounter_MeasureFrequency.side_effect = MockFunctionCallError("niDigital_FrequencyCounter_MeasureFrequency") - mock_library.niDigital_FrequencyCounter_MeasureFrequency.return_value = 0 - mock_library.niDigital_GetAttributeViBoolean.side_effect = MockFunctionCallError("niDigital_GetAttributeViBoolean") - mock_library.niDigital_GetAttributeViBoolean.return_value = 0 - mock_library.niDigital_GetAttributeViInt32.side_effect = MockFunctionCallError("niDigital_GetAttributeViInt32") - mock_library.niDigital_GetAttributeViInt32.return_value = 0 - mock_library.niDigital_GetAttributeViInt64.side_effect = MockFunctionCallError("niDigital_GetAttributeViInt64") - mock_library.niDigital_GetAttributeViInt64.return_value = 0 - mock_library.niDigital_GetAttributeViReal64.side_effect = MockFunctionCallError("niDigital_GetAttributeViReal64") - mock_library.niDigital_GetAttributeViReal64.return_value = 0 - mock_library.niDigital_GetAttributeViString.side_effect = MockFunctionCallError("niDigital_GetAttributeViString") - mock_library.niDigital_GetAttributeViString.return_value = 0 - mock_library.niDigital_GetChannelNameFromString.side_effect = MockFunctionCallError("niDigital_GetChannelNameFromString") - mock_library.niDigital_GetChannelNameFromString.return_value = 0 - mock_library.niDigital_GetError.side_effect = MockFunctionCallError("niDigital_GetError") - mock_library.niDigital_GetError.return_value = 0 - mock_library.niDigital_GetFailCount.side_effect = MockFunctionCallError("niDigital_GetFailCount") - mock_library.niDigital_GetFailCount.return_value = 0 - mock_library.niDigital_GetHistoryRAMSampleCount.side_effect = MockFunctionCallError("niDigital_GetHistoryRAMSampleCount") - mock_library.niDigital_GetHistoryRAMSampleCount.return_value = 0 - mock_library.niDigital_GetPatternName.side_effect = MockFunctionCallError("niDigital_GetPatternName") - mock_library.niDigital_GetPatternName.return_value = 0 - mock_library.niDigital_GetPatternPinList.side_effect = MockFunctionCallError("niDigital_GetPatternPinList") - mock_library.niDigital_GetPatternPinList.return_value = 0 - mock_library.niDigital_GetPinName.side_effect = MockFunctionCallError("niDigital_GetPinName") - mock_library.niDigital_GetPinName.return_value = 0 - mock_library.niDigital_GetPinResultsPinInformation.side_effect = MockFunctionCallError("niDigital_GetPinResultsPinInformation") - mock_library.niDigital_GetPinResultsPinInformation.return_value = 0 - mock_library.niDigital_GetSitePassFail.side_effect = MockFunctionCallError("niDigital_GetSitePassFail") - mock_library.niDigital_GetSitePassFail.return_value = 0 - mock_library.niDigital_GetSiteResultsSiteNumbers.side_effect = MockFunctionCallError("niDigital_GetSiteResultsSiteNumbers") - mock_library.niDigital_GetSiteResultsSiteNumbers.return_value = 0 - mock_library.niDigital_GetTimeSetDriveFormat.side_effect = MockFunctionCallError("niDigital_GetTimeSetDriveFormat") - mock_library.niDigital_GetTimeSetDriveFormat.return_value = 0 - mock_library.niDigital_GetTimeSetEdge.side_effect = MockFunctionCallError("niDigital_GetTimeSetEdge") - mock_library.niDigital_GetTimeSetEdge.return_value = 0 - mock_library.niDigital_GetTimeSetEdgeMultiplier.side_effect = MockFunctionCallError("niDigital_GetTimeSetEdgeMultiplier") - mock_library.niDigital_GetTimeSetEdgeMultiplier.return_value = 0 - mock_library.niDigital_GetTimeSetName.side_effect = MockFunctionCallError("niDigital_GetTimeSetName") - mock_library.niDigital_GetTimeSetName.return_value = 0 - mock_library.niDigital_GetTimeSetPeriod.side_effect = MockFunctionCallError("niDigital_GetTimeSetPeriod") - mock_library.niDigital_GetTimeSetPeriod.return_value = 0 - mock_library.niDigital_InitWithOptions.side_effect = MockFunctionCallError("niDigital_InitWithOptions") - mock_library.niDigital_InitWithOptions.return_value = 0 - mock_library.niDigital_Initiate.side_effect = MockFunctionCallError("niDigital_Initiate") - mock_library.niDigital_Initiate.return_value = 0 - mock_library.niDigital_IsDone.side_effect = MockFunctionCallError("niDigital_IsDone") - mock_library.niDigital_IsDone.return_value = 0 - mock_library.niDigital_IsSiteEnabled.side_effect = MockFunctionCallError("niDigital_IsSiteEnabled") - mock_library.niDigital_IsSiteEnabled.return_value = 0 - mock_library.niDigital_LoadLevels.side_effect = MockFunctionCallError("niDigital_LoadLevels") - mock_library.niDigital_LoadLevels.return_value = 0 - mock_library.niDigital_LoadPattern.side_effect = MockFunctionCallError("niDigital_LoadPattern") - mock_library.niDigital_LoadPattern.return_value = 0 - mock_library.niDigital_LoadPinMap.side_effect = MockFunctionCallError("niDigital_LoadPinMap") - mock_library.niDigital_LoadPinMap.return_value = 0 - mock_library.niDigital_LoadSpecifications.side_effect = MockFunctionCallError("niDigital_LoadSpecifications") - mock_library.niDigital_LoadSpecifications.return_value = 0 - mock_library.niDigital_LoadTiming.side_effect = MockFunctionCallError("niDigital_LoadTiming") - mock_library.niDigital_LoadTiming.return_value = 0 - mock_library.niDigital_LockSession.side_effect = MockFunctionCallError("niDigital_LockSession") - mock_library.niDigital_LockSession.return_value = 0 - mock_library.niDigital_PPMU_Measure.side_effect = MockFunctionCallError("niDigital_PPMU_Measure") - mock_library.niDigital_PPMU_Measure.return_value = 0 - mock_library.niDigital_PPMU_Source.side_effect = MockFunctionCallError("niDigital_PPMU_Source") - mock_library.niDigital_PPMU_Source.return_value = 0 - mock_library.niDigital_ReadSequencerFlag.side_effect = MockFunctionCallError("niDigital_ReadSequencerFlag") - mock_library.niDigital_ReadSequencerFlag.return_value = 0 - mock_library.niDigital_ReadSequencerRegister.side_effect = MockFunctionCallError("niDigital_ReadSequencerRegister") - mock_library.niDigital_ReadSequencerRegister.return_value = 0 - mock_library.niDigital_ReadStatic.side_effect = MockFunctionCallError("niDigital_ReadStatic") - mock_library.niDigital_ReadStatic.return_value = 0 - mock_library.niDigital_ResetDevice.side_effect = MockFunctionCallError("niDigital_ResetDevice") - mock_library.niDigital_ResetDevice.return_value = 0 - mock_library.niDigital_SelfCalibrate.side_effect = MockFunctionCallError("niDigital_SelfCalibrate") - mock_library.niDigital_SelfCalibrate.return_value = 0 - mock_library.niDigital_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niDigital_SendSoftwareEdgeTrigger") - mock_library.niDigital_SendSoftwareEdgeTrigger.return_value = 0 - mock_library.niDigital_SetAttributeViBoolean.side_effect = MockFunctionCallError("niDigital_SetAttributeViBoolean") - mock_library.niDigital_SetAttributeViBoolean.return_value = 0 - mock_library.niDigital_SetAttributeViInt32.side_effect = MockFunctionCallError("niDigital_SetAttributeViInt32") - mock_library.niDigital_SetAttributeViInt32.return_value = 0 - mock_library.niDigital_SetAttributeViInt64.side_effect = MockFunctionCallError("niDigital_SetAttributeViInt64") - mock_library.niDigital_SetAttributeViInt64.return_value = 0 - mock_library.niDigital_SetAttributeViReal64.side_effect = MockFunctionCallError("niDigital_SetAttributeViReal64") - mock_library.niDigital_SetAttributeViReal64.return_value = 0 - mock_library.niDigital_SetAttributeViString.side_effect = MockFunctionCallError("niDigital_SetAttributeViString") - mock_library.niDigital_SetAttributeViString.return_value = 0 - mock_library.niDigital_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niDigital_SetRuntimeEnvironment") - mock_library.niDigital_SetRuntimeEnvironment.return_value = 0 - mock_library.niDigital_TDR.side_effect = MockFunctionCallError("niDigital_TDR") - mock_library.niDigital_TDR.return_value = 0 - mock_library.niDigital_UnloadAllPatterns.side_effect = MockFunctionCallError("niDigital_UnloadAllPatterns") - mock_library.niDigital_UnloadAllPatterns.return_value = 0 - mock_library.niDigital_UnloadSpecifications.side_effect = MockFunctionCallError("niDigital_UnloadSpecifications") - mock_library.niDigital_UnloadSpecifications.return_value = 0 - mock_library.niDigital_UnlockSession.side_effect = MockFunctionCallError("niDigital_UnlockSession") - mock_library.niDigital_UnlockSession.return_value = 0 - mock_library.niDigital_WaitUntilDone.side_effect = MockFunctionCallError("niDigital_WaitUntilDone") - mock_library.niDigital_WaitUntilDone.return_value = 0 - mock_library.niDigital_WriteSequencerFlag.side_effect = MockFunctionCallError("niDigital_WriteSequencerFlag") - mock_library.niDigital_WriteSequencerFlag.return_value = 0 - mock_library.niDigital_WriteSequencerRegister.side_effect = MockFunctionCallError("niDigital_WriteSequencerRegister") - mock_library.niDigital_WriteSequencerRegister.return_value = 0 - mock_library.niDigital_WriteSourceWaveformBroadcastU32.side_effect = MockFunctionCallError("niDigital_WriteSourceWaveformBroadcastU32") - mock_library.niDigital_WriteSourceWaveformBroadcastU32.return_value = 0 - mock_library.niDigital_WriteSourceWaveformDataFromFileTDMS.side_effect = MockFunctionCallError("niDigital_WriteSourceWaveformDataFromFileTDMS") - mock_library.niDigital_WriteSourceWaveformDataFromFileTDMS.return_value = 0 - mock_library.niDigital_WriteSourceWaveformSiteUniqueU32.side_effect = MockFunctionCallError("niDigital_WriteSourceWaveformSiteUniqueU32") - mock_library.niDigital_WriteSourceWaveformSiteUniqueU32.return_value = 0 - mock_library.niDigital_WriteStatic.side_effect = MockFunctionCallError("niDigital_WriteStatic") - mock_library.niDigital_WriteStatic.return_value = 0 - mock_library.niDigital_close.side_effect = MockFunctionCallError("niDigital_close") - mock_library.niDigital_close.return_value = 0 - mock_library.niDigital_error_message.side_effect = MockFunctionCallError("niDigital_error_message") - mock_library.niDigital_error_message.return_value = 0 - mock_library.niDigital_reset.side_effect = MockFunctionCallError("niDigital_reset") - mock_library.niDigital_reset.return_value = 0 - mock_library.niDigital_self_test.side_effect = MockFunctionCallError("niDigital_self_test") - mock_library.niDigital_self_test.return_value = 0 diff --git a/generated/nidigital/nidigital/unit_tests/test_nidigital.py b/generated/nidigital/nidigital/unit_tests/test_nidigital.py deleted file mode 100644 index 2e541c039c..0000000000 --- a/generated/nidigital/nidigital/unit_tests/test_nidigital.py +++ /dev/null @@ -1,371 +0,0 @@ -import _mock_helper - -import nidigital -import nitclk - -import pytest -from unittest.mock import MagicMock -from unittest.mock import patch - -session_id_for_test = 42 - - -class TestSession: - class PatchedLibrary(nidigital._library.Library): - def __init__(self, ctypes_library): - super().__init__(ctypes_library) - - for f in dir(self): - if f.startswith("niDigital_") and not f.endswith("_cfunc"): - setattr(self, f, MagicMock()) - - class PatchedTClkLibrary(nitclk._library.Library): - def __init__(self, ctypes_library): - super().__init__(ctypes_library) - - for f in dir(self): - if f.startswith("niTClk_") and not f.endswith("_cfunc"): - setattr(self, f, MagicMock()) - - def setup_method(self, method): - self.patched_library = self.PatchedLibrary(None) - self.patched_library_singleton_get = patch('nidigital._library_interpreter._library_singleton.get', return_value=self.patched_library) - self.patched_library_singleton_get.start() - - self.patched_tclk_library = self.PatchedTClkLibrary(None) - self.patched_tclk_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=self.patched_tclk_library) - self.patched_tclk_library_singleton_get.start() - - self.side_effects_helper = _mock_helper.SideEffectsHelper() - self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) - - # The side effect must be set for this, because it's called. - # No need to set argument values; the method is tested in nifake unit tests, not here. - self.patched_library.niDigital_SetRuntimeEnvironment.side_effect = self.side_effects_helper.niDigital_SetRuntimeEnvironment - - self.patched_library.niDigital_InitWithOptions.side_effect = self.side_effects_helper.niDigital_InitWithOptions - self.side_effects_helper['InitWithOptions']['newVi'] = session_id_for_test - - self.patched_library.niDigital_close.side_effect = self.side_effects_helper.niDigital_close - - self.patched_library.niDigital_LockSession.side_effect = self.side_effects_helper.niDigital_LockSession - self.side_effects_helper['LockSession']['callerHasLock'] = True - - self.patched_library.niDigital_UnlockSession.side_effect = self.side_effects_helper.niDigital_UnlockSession - self.side_effects_helper['UnlockSession']['callerHasLock'] = True - - # For trying to set `_all_channels_in_session` in the Session constructor - self.patched_library.niDigital_GetAttributeViInt32.side_effect = self.side_effects_helper.niDigital_GetAttributeViInt32 - self.side_effects_helper['GetAttributeViInt32']['value'] = 1 # channel_count - self.patched_library.niDigital_GetChannelNameFromString.side_effect = self.side_effects_helper.niDigital_GetChannelNameFromString - self.side_effects_helper['GetChannelNameFromString']['name'] = '0' # get_channel_names() - - # for niDigital_FetchHistoryRAMCycleInformation_looping - self.pattern_indices_looping = [0, 0, 0, 0, 0, 0, 0] - self.time_set_indices_looping = [0, 1, 1, 2, 2, 2, 0] - self.vector_numbers_looping = [5, 6, 6, 7, 7, 8, 9] - self.cycle_numbers_looping = [5, 6, 7, 8, 9, 10, 11] - self.num_duty_cycles_looping = [1, 1, 1, 2, 2, 2, 1] - - # for niDigital_GetTimeSetName_looping - self.time_set_name_looping = ['t0', 'tScan', 't2X'] - - # for niDigital_FetchHistoryRAMScanCycleNumber_looping - self.scan_cycle_number_looping = [-1, 0, 1, -1, -1, -1, -1] - - # for niDigital_FetchHistoryRAMCyclePinData_looping - self.expected_pin_states_looping = [ - [[nidigital.PinState.ZERO, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.ZERO, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H]], - [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.ONE, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L]], - [[nidigital.PinState.ONE, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], - [nidigital.PinState.ZERO, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.ONE, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], - [nidigital.PinState.ZERO, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.ZERO, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], - [nidigital.PinState.ONE, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X]] - ] - self.actual_pin_states_looping = [ - [[nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H]], - [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L]], - [[nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], - [nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], - [nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], - [nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], - [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X]] - ] - self.per_pin_pass_fail_looping = [ - [[True, False, True, True, False, True, True, True]], - [[True, True, True, True, True, True, True, True]], - [[True, True, True, True, True, True, True, True]], - [[True, True, True, True, True, True, True, True], [True, True, True, True, True, True, True, True]], - [[True, True, True, True, True, True, True, True], [True, True, True, True, True, True, True, True]], - [[True, True, True, True, True, True, True, True], [True, True, True, True, True, True, True, True]], - [[True, True, True, True, True, True, True, True]], - ] - - # for niDigital_FetchHistoryRAMCyclePinData_check_pins_looping - self.expected_pin_list_check_pins_looping = None - self.expected_pin_states_check_pins_looping = [[[nidigital.PinState.ZERO, nidigital.PinState.H]]] - self.actual_pin_states_check_pins_looping = [[[nidigital.PinState.L, nidigital.PinState.L]]] - self.per_pin_pass_fail_check_pins_looping = [[[True, False]]] - - # for niDigital_GetHistoryRAMSampleCount_check_site_looping - self.iteration_check_site_looping = 0 - self.site_numbers_looping = [0, 1, 2] - - def teardown_method(self, method): - self.patched_tclk_library_singleton_get.stop() - self.patched_library_singleton_get.stop() - - # API Tests - - # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), - # this test should be converted to a system test. (GitHub issue# 1353). - def test_fetch_history_ram_cycle_information_position_out_of_bound(self): - - self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount - self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 - with nidigital.Session('') as session: - with pytest.raises(ValueError, match='position: Specified value = 8, Maximum value = 6.'): - session.sites[1].fetch_history_ram_cycle_information(position=8, samples_to_read=-1) - - # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), - # this test should be converted to a system test. (GitHub issue# 1353). - def test_fetch_history_ram_cycle_information_position_last(self): - - self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount - self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 - self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean - self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite - self.patched_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMCycleInformation - self.side_effects_helper['FetchHistoryRAMCycleInformation']['patternIndex'] = 0 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['timeSetIndex'] = 0 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['vectorNumber'] = 9 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['cycleNumber'] = 11 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['numDutCycles'] = 1 - self.patched_library.niDigital_GetPatternName.side_effect = self.side_effects_helper.niDigital_GetPatternName - self.side_effects_helper['GetPatternName']['name'] = 'new_pattern' - self.patched_library.niDigital_GetTimeSetName.side_effect = self.side_effects_helper.niDigital_GetTimeSetName - self.side_effects_helper['GetTimeSetName']['name'] = 't0' - self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMScanCycleNumber - self.side_effects_helper['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] = -1 - self.patched_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMCyclePinData - self.side_effects_helper['FetchHistoryRAMCyclePinData']['actualNumPinData'] = 8 - self.side_effects_helper['FetchHistoryRAMCyclePinData']['expectedPinStates'] = [nidigital.PinState.X.value] * 8 - self.side_effects_helper['FetchHistoryRAMCyclePinData']['actualPinStates'] = [nidigital.PinState.NOT_A_PIN_STATE.value] * 8 - self.side_effects_helper['FetchHistoryRAMCyclePinData']['perPinPassFail'] = [True] * 8 - with nidigital.Session('') as session: - history_ram_cycle_info = session.sites[1].fetch_history_ram_cycle_information( - position=6, - samples_to_read=-1) - self.patched_library.niDigital_FetchHistoryRAMCycleInformation.assert_called_once() - assert self.patched_library.niDigital_GetPatternName.call_count == 2 - assert self.patched_library.niDigital_GetTimeSetName.call_count == 2 - self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.assert_called_once() - assert self.patched_library.niDigital_FetchHistoryRAMCyclePinData.call_count == 2 - - assert len(history_ram_cycle_info) == 1 - assert history_ram_cycle_info[0].vector_number == 9 - assert history_ram_cycle_info[0].cycle_number == 11 - - # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), - # this test should be converted to a system test. (GitHub issue# 1353). - def test_fetch_history_ram_cycle_information_samples_to_read_too_much(self): - - self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount - self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 - self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean - self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite - - with nidigital.Session('') as session: - assert session.sites[1].get_history_ram_sample_count() == 7 - - expected_error_description = ( - 'position: Specified value = 3, samples_to_read: Specified value = 5; Samples available = 4.') - with pytest.raises(ValueError, match=expected_error_description): - session.sites[1].fetch_history_ram_cycle_information(position=3, samples_to_read=5) - - # Helper function for mocking multiple calls - def niDigital_FetchHistoryRAMCycleInformation_looping(self, vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles): # noqa: N802 - sample_index_int = int(sample_index.value) - pattern_index.contents.value = self.pattern_indices_looping[sample_index_int] - time_set_index.contents.value = self.time_set_indices_looping[sample_index_int] - vector_number.contents.value = self.vector_numbers_looping[sample_index_int] - cycle_number.contents.value = self.cycle_numbers_looping[sample_index_int] - num_dut_cycles.contents.value = self.num_duty_cycles_looping[sample_index_int] - return 0 - - # Helper function for mocking multiple calls - def niDigital_GetTimeSetName_looping(self, vi, time_set_index, name_buffer_size, name): # noqa: N802 - time_set_index_int = int(time_set_index.value) - if int(name_buffer_size.value) == 0: - return (len(self.time_set_name_looping[time_set_index_int])) - bytes_to_copy = self.time_set_name_looping[time_set_index_int].encode('ascii') - for i in range(0, len(bytes_to_copy)): - name[i] = bytes_to_copy[i] - return 0 - - # Helper function for mocking multiple calls - def niDigital_FetchHistoryRAMScanCycleNumber_looping(self, vi, site, sample_index, scan_cycle_number): # noqa: N802 - sample_index_int = int(sample_index.value) - scan_cycle_number.contents.value = self.scan_cycle_number_looping[sample_index_int] - return 0 - - # Helper function for mocking multiple calls - def niDigital_FetchHistoryRAMCyclePinData_looping(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 - sample_index_int = int(sample_index.value) - dut_cycle_index_int = int(dut_cycle_index.value) - if int(pin_data_buffer_size.value) == 0: - actual_num_pin_data.contents.value = len(self.expected_pin_states_looping[sample_index_int][dut_cycle_index_int]) - return actual_num_pin_data.contents.value - for i in range(0, int(pin_data_buffer_size.value)): - expected_pin_states[i] = self.expected_pin_states_looping[sample_index_int][dut_cycle_index_int][i].value - actual_pin_states[i] = self.actual_pin_states_looping[sample_index_int][dut_cycle_index_int][i].value - per_pin_pass_fail[i] = self.per_pin_pass_fail_looping[sample_index_int][dut_cycle_index_int][i] - return 0 - - # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), - # this test should be converted to a system test. (GitHub issue# 1353). - def test_fetch_history_ram_cycle_information_samples_to_read_all(self): - - self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount - self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 - self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean - self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite - self.patched_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = self.niDigital_FetchHistoryRAMCycleInformation_looping - self.patched_library.niDigital_GetPatternName.side_effect = self.side_effects_helper.niDigital_GetPatternName - self.side_effects_helper['GetPatternName']['name'] = 'new_pattern' - self.patched_library.niDigital_GetTimeSetName.side_effect = self.niDigital_GetTimeSetName_looping - self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = self.niDigital_FetchHistoryRAMScanCycleNumber_looping - self.patched_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = self.niDigital_FetchHistoryRAMCyclePinData_looping - self.patched_library.niDigital_GetPatternPinList.side_effect = self.side_effects_helper.niDigital_GetPatternPinList - pin_list = ['LO' + str(i) for i in range(4)] + ['HI' + str(i) for i in range(4)] - self.side_effects_helper['GetPatternPinList']['pinList'] = ','.join(pin_list) - with nidigital.Session('') as session: - history_ram_cycle_info = session.sites[1].fetch_history_ram_cycle_information( - position=0, - samples_to_read=-1) - assert self.patched_library.niDigital_FetchHistoryRAMCycleInformation.call_count == 7 - assert self.patched_library.niDigital_GetPatternName.call_count == 2 # there's only one pattern, so this is a 2 - assert self.patched_library.niDigital_GetTimeSetName.call_count == 6 # 3 time sets, so this is a 6 - assert self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.call_count == 7 - assert self.patched_library.niDigital_FetchHistoryRAMCyclePinData.call_count == 20 # 10 DUT cycles - - assert len(history_ram_cycle_info) == 7 - assert all([i.pattern_name == 'new_pattern' for i in history_ram_cycle_info]) - - time_set_names = [i.time_set_name for i in history_ram_cycle_info] - assert time_set_names == ['t0', 'tScan', 'tScan', 't2X', 't2X', 't2X', 't0'] - - vector_numbers = [i.vector_number for i in history_ram_cycle_info] - assert vector_numbers == [5, 6, 6, 7, 7, 8, 9] - - cycle_numbers = [i.cycle_number for i in history_ram_cycle_info] - assert cycle_numbers == list(range(5, 12)) - - scan_cycle_numbers = [i.scan_cycle_number for i in history_ram_cycle_info] - assert scan_cycle_numbers == [-1, 0, 1, -1, -1, -1, -1] - - pin_names = session.get_pattern_pin_names('new_pattern') - assert self.patched_library.niDigital_GetPatternPinList.call_count == 2 - assert pin_names == pin_list - - expected_pin_states = [i.expected_pin_states for i in history_ram_cycle_info] - assert expected_pin_states == self.expected_pin_states_looping - - # If test expects actual pin state to be 'X', then value returned by the API can be anything. - # So, need to skip those pin states while comparing. - actual_pin_states = [i.actual_pin_states for i in history_ram_cycle_info] - assert len(actual_pin_states) == len(self.actual_pin_states_looping) - for vector_pin_states, vector_pin_states_expected_by_test in zip(actual_pin_states, self.actual_pin_states_looping): - for cycle_pin_states, cycle_pin_states_expected_by_test in zip(vector_pin_states, vector_pin_states_expected_by_test): - for pin_state, pin_state_expected_by_test in zip(cycle_pin_states, cycle_pin_states_expected_by_test): - if pin_state_expected_by_test is not nidigital.PinState.X: - assert pin_state == pin_state_expected_by_test - - # Only the first cycle returned is expected to have failures - per_pin_pass_fail = [i.per_pin_pass_fail for i in history_ram_cycle_info] - assert per_pin_pass_fail == self.per_pin_pass_fail_looping - - # Helper function for validating pin list behavior in fetch_history_ram_cycle_information. - def niDigital_FetchHistoryRAMCyclePinData_check_pins_looping(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 - sample_index_int = int(sample_index.value) - dut_cycle_index_int = int(dut_cycle_index.value) - if int(pin_data_buffer_size.value) == 0: - actual_num_pin_data.contents.value = len(self.expected_pin_states_check_pins_looping[sample_index_int][dut_cycle_index_int]) - return actual_num_pin_data.contents.value - for i in range(0, int(pin_data_buffer_size.value)): - expected_pin_states[i] = self.expected_pin_states_check_pins_looping[sample_index_int][dut_cycle_index_int][i].value - actual_pin_states[i] = self.actual_pin_states_check_pins_looping[sample_index_int][dut_cycle_index_int][i].value - per_pin_pass_fail[i] = self.per_pin_pass_fail_check_pins_looping[sample_index_int][dut_cycle_index_int][i] - assert self.expected_pin_list_check_pins_looping is not None - assert pin_list.value.decode('ascii') == self.expected_pin_list_check_pins_looping - return 0 - - def test_fetch_history_ram_cycle_information_pin_list(self): - - self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount - self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 1 - self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean - self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite - self.patched_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMCycleInformation - self.side_effects_helper['FetchHistoryRAMCycleInformation']['patternIndex'] = 0 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['timeSetIndex'] = 0 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['vectorNumber'] = 0 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['cycleNumber'] = 0 - self.side_effects_helper['FetchHistoryRAMCycleInformation']['numDutCycles'] = 1 - self.patched_library.niDigital_GetPatternName.side_effect = self.side_effects_helper.niDigital_GetPatternName - self.side_effects_helper['GetPatternName']['name'] = 'new_pattern' - self.patched_library.niDigital_GetTimeSetName.side_effect = self.side_effects_helper.niDigital_GetTimeSetName - self.side_effects_helper['GetTimeSetName']['name'] = 't0' - self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMScanCycleNumber - self.side_effects_helper['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] = -1 - self.patched_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = self.niDigital_FetchHistoryRAMCyclePinData_check_pins_looping - with nidigital.Session('') as session: - self.expected_pin_list_check_pins_looping = 'PinA,PinB' - session.sites[0].pins['PinA', 'PinB'].fetch_history_ram_cycle_information(position=0, samples_to_read=-1) - self.expected_pin_list_check_pins_looping = '' - session.sites[0].fetch_history_ram_cycle_information(position=0, samples_to_read=-1) - assert self.patched_library.niDigital_FetchHistoryRAMCyclePinData.call_count == 4 - - # Helper function for validating site behavior in fetch_history_ram_cycle_information. - def niDigital_GetHistoryRAMSampleCount_check_site_looping(self, vi, site, sample_count): # noqa: N802 - assert site.value.decode('ascii') == f'site{self.site_numbers_looping[self.iteration_check_site_looping]}' - sample_count.contents.value = 0 # we don't care if this is right as long as the fetch does not error - self.iteration_check_site_looping += 1 - return 0 - - def test_fetch_history_ram_cycle_information_site_n(self): - - self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.niDigital_GetHistoryRAMSampleCount_check_site_looping - self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 1 - - with nidigital.Session('') as session: - for s in self.site_numbers_looping: - session.sites[s].fetch_history_ram_cycle_information(position=0, samples_to_read=0) - assert self.patched_library.niDigital_GetHistoryRAMSampleCount.call_count == len(self.site_numbers_looping) - - def test_pin_state_enum_print(self): - - assert str(nidigital.PinState.ZERO) == '0' - assert str(nidigital.PinState.ONE) == '1' - assert str(nidigital.PinState.NOT_A_PIN_STATE) == 'Not a Pin State' - assert str(nidigital.PinState.PIN_STATE_NOT_ACQUIRED) == 'Pin State Not Acquired' - assert str(nidigital.PinState.L) == 'L' - assert str(nidigital.PinState.H) == 'H' - assert str(nidigital.PinState.X) == 'X' - assert str(nidigital.PinState.M) == 'M' - assert str(nidigital.PinState.V) == 'V' - assert str(nidigital.PinState.D) == 'D' - assert str(nidigital.PinState.E) == 'E' - - def test_write_static_pin_state_enum_print(self): - - assert str(nidigital.WriteStaticPinState.ZERO) == '0' - assert str(nidigital.WriteStaticPinState.ONE) == '1' - assert str(nidigital.WriteStaticPinState.X) == 'X' diff --git a/generated/nidigital/setup.py b/generated/nidigital/setup.py deleted file mode 100644 index ec3377e3c2..0000000000 --- a/generated/nidigital/setup.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nidigital' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-Digital Pattern Driver Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nidigital'], - license='MIT', - include_package_data=True, - packages=['nidigital'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - 'nitclk', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nidigital/tox-system_tests.ini b/generated/nidigital/tox-system_tests.ini deleted file mode 100644 index 6d4b4e2fe5..0000000000 --- a/generated/nidigital/tox-system_tests.ini +++ /dev/null @@ -1,74 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nidigital) -[tox] -envlist = py{310,311,312,313,314}-nidigital-wheel_dep,py{310,311,312,313,314}-nidigital-system_tests, py314-nidigital-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nidigital-wheel_dep: Build the nitclk wheel because we use it in nidigital tests - nidigital-system_tests: Run nidigital system tests (requires NI-Digital Pattern Driver runtime to be installed) - nidigital-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nidigital-wheel_dep: ../nitclk - nidigital-system_tests: . - nidigital-coverage: . - -commands = - nidigital-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nidigital-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nidigital-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. - nidigital-system_tests: python -c "import nidigital; nidigital.print_diagnostic_information()" - nidigital-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidigital --parallel-mode -m pytest ../../src/nidigital/examples --junitxml=../junit/junit-nidigital-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nidigital-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidigital --parallel-mode -m pytest ../../src/nidigital/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidigital-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nidigital-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nidigital-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nidigital-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nidigital-wheel_dep: build - - nidigital-system_tests: nisync - nidigital-system_tests: pytest < 9.2.0 - nidigital-system_tests: coverage - nidigital-system_tests: numpy - nidigital-system_tests: hightime - nidigital-system_tests: fasteners - nidigital-system_tests: pytest-json - nidigital-system_tests: .[grpc] - - nidigital-coverage: coverage - -depends = - nidigital-coverage: py{310,311,312,313,314}-nidigital-system_tests - nidigital-system_tests: py{310,311,312,313,314}-nidigital-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nidmm/README.rst b/generated/nidmm/README.rst deleted file mode 100644 index d60384117f..0000000000 --- a/generated/nidmm/README.rst +++ /dev/null @@ -1,171 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nidmm** module provides a Python API for NI-DMM. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nidmm** supports all the Operating Systems supported by NI-DMM. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nidmm**. - - -NI-DMM Python API Status ------------------------- - -+-------------------------------+----------------------+ -| NI-DMM (nidmm) | | -+===============================+======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+----------------------+ -| PyPI Version | |nidmmLatestVersion| | -+-------------------------------+----------------------+ -| Supported Python Version | |nidmmPythonVersion| | -+-------------------------------+----------------------+ -| Documentation | |nidmmDocs| | -+-------------------------------+----------------------+ -| Open Issues | |nidmmOpenIssues| | -+-------------------------------+----------------------+ -| Open Pull Requests | |nidmmOpenPRs| | -+-------------------------------+----------------------+ - - -.. |nidmmLatestVersion| image:: http://img.shields.io/pypi/v/nidmm.svg - :alt: Latest NI-DMM Version - :target: http://pypi.python.org/pypi/nidmm - - -.. |nidmmPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidmm.svg - :alt: NI-DMM supported Python versions - :target: http://pypi.python.org/pypi/nidmm - - -.. |nidmmDocs| image:: https://readthedocs.org/projects/nidmm/badge/?version=latest - :alt: NI-DMM Python API Documentation Status - :target: https://nidmm.readthedocs.io/en/latest - - -.. |nidmmOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidmm.svg - :alt: Open Issues + Pull Requests for NI-DMM - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidmm - - -.. |nidmmOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidmm.svg - :alt: Pull Requests for NI-DMM - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidmm - - - -.. _nidmm_installation-section: - -Installation ------------- - -As a prerequisite to using the **nidmm** module, you must install the NI-DMM runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-DMM**) can be installed with `pip `_:: - - $ python -m pip install nidmm - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nidmm** module to open a session to a DMM and perform a 5.5 digits of resolution voltage measurement in the 10 V range. - -.. code-block:: python - - import nidmm - with nidmm.Session("Dev1") as session: - session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5) - print("Measurement: " + str(session.read())) - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nidmm/nidmm/VERSION b/generated/nidmm/nidmm/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nidmm/nidmm/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nidmm/nidmm/__init__.py b/generated/nidmm/nidmm/__init__.py deleted file mode 100644 index 9ce05942dc..0000000000 --- a/generated/nidmm/nidmm/__init__.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nidmm.enums import * # noqa: F403,F401,H303 -from nidmm.errors import DriverWarning # noqa: F401 -from nidmm.errors import Error # noqa: F401 -from nidmm.grpc_session_options import * # noqa: F403,F401,H303 -from nidmm.session import Session # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-DMM\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-DMM" - info['driver']['version'] = driver_version - info['module']['name'] = 'nidmm' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nidmm/nidmm/_attributes.py b/generated/nidmm/nidmm/_attributes.py deleted file mode 100644 index 82e2329efa..0000000000 --- a/generated/nidmm/nidmm/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nidmm._converters as _converters -import nidmm.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nidmm Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nidmm.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nidmm/nidmm/_converters.py b/generated/nidmm/nidmm/_converters.py deleted file mode 100644 index 7dcf49ee8f..0000000000 --- a/generated/nidmm/nidmm/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nidmm._visatype as _visatype -import nidmm.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nidmm/nidmm/_grpc_stub_interpreter.py b/generated/nidmm/nidmm/_grpc_stub_interpreter.py deleted file mode 100644 index 91bf0fa8b6..0000000000 --- a/generated/nidmm/nidmm/_grpc_stub_interpreter.py +++ /dev/null @@ -1,398 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nidmm_pb2 as grpc_types -from . import nidmm_pb2_grpc as nidmm_grpc - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nidmm_grpc.NiDmmStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.Abort, - grpc_types.AbortRequest(vi=self._vi), - ) - - def configure_measurement_absolute(self, measurement_function, range, resolution_absolute): # noqa: N802 - self._invoke( - self._client.ConfigureMeasurementAbsolute, - grpc_types.ConfigureMeasurementAbsoluteRequest(vi=self._vi, measurement_function_raw=measurement_function.value, range=range, resolution_absolute=resolution_absolute), - ) - - def configure_measurement_digits(self, measurement_function, range, resolution_digits): # noqa: N802 - self._invoke( - self._client.ConfigureMeasurementDigits, - grpc_types.ConfigureMeasurementDigitsRequest(vi=self._vi, measurement_function_raw=measurement_function.value, range=range, resolution_digits=resolution_digits), - ) - - def configure_multi_point(self, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 - self._invoke( - self._client.ConfigureMultiPoint, - grpc_types.ConfigureMultiPointRequest(vi=self._vi, trigger_count_raw=trigger_count, sample_count_raw=sample_count, sample_trigger_raw=sample_trigger.value, sample_interval_raw=sample_interval), - ) - - def configure_rtd_custom(self, rtd_a, rtd_b, rtd_c): # noqa: N802 - self._invoke( - self._client.ConfigureRTDCustom, - grpc_types.ConfigureRTDCustomRequest(vi=self._vi, rtd_a=rtd_a, rtd_b=rtd_b, rtd_c=rtd_c), - ) - - def configure_rtd_type(self, rtd_type, rtd_resistance): # noqa: N802 - self._invoke( - self._client.ConfigureRTDType, - grpc_types.ConfigureRTDTypeRequest(vi=self._vi, rtd_type_raw=rtd_type.value, rtd_resistance=rtd_resistance), - ) - - def configure_thermistor_custom(self, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 - self._invoke( - self._client.ConfigureThermistorCustom, - grpc_types.ConfigureThermistorCustomRequest(vi=self._vi, thermistor_a=thermistor_a, thermistor_b=thermistor_b, thermistor_c=thermistor_c), - ) - - def configure_thermocouple(self, thermocouple_type, reference_junction_type): # noqa: N802 - self._invoke( - self._client.ConfigureThermocouple, - grpc_types.ConfigureThermocoupleRequest(vi=self._vi, thermocouple_type_raw=thermocouple_type.value, reference_junction_type_raw=reference_junction_type.value), - ) - - def configure_trigger(self, trigger_source, trigger_delay): # noqa: N802 - self._invoke( - self._client.ConfigureTrigger, - grpc_types.ConfigureTriggerRequest(vi=self._vi, trigger_source_raw=trigger_source.value, trigger_delay_raw=trigger_delay), - ) - - def configure_waveform_acquisition(self, measurement_function, range, rate, waveform_points): # noqa: N802 - self._invoke( - self._client.ConfigureWaveformAcquisition, - grpc_types.ConfigureWaveformAcquisitionRequest(vi=self._vi, measurement_function_raw=measurement_function.value, range=range, rate=rate, waveform_points=waveform_points), - ) - - def disable(self): # noqa: N802 - self._invoke( - self._client.Disable, - grpc_types.DisableRequest(vi=self._vi), - ) - - def export_attribute_configuration_buffer(self): # noqa: N802 - response = self._invoke( - self._client.ExportAttributeConfigurationBuffer, - grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), - ) - return response.configuration - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ExportAttributeConfigurationFile, - grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def fetch(self, maximum_time): # noqa: N802 - response = self._invoke( - self._client.Fetch, - grpc_types.FetchRequest(vi=self._vi, maximum_time_raw=maximum_time), - ) - return response.reading - - def fetch_multi_point(self, maximum_time, array_size): # noqa: N802 - response = self._invoke( - self._client.FetchMultiPoint, - grpc_types.FetchMultiPointRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), - ) - return response.reading_array - - def fetch_waveform(self, maximum_time, array_size): # noqa: N802 - response = self._invoke( - self._client.FetchWaveform, - grpc_types.FetchWaveformRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), - ) - return response.waveform_array - - def fetch_waveform_into(self, maximum_time, array_size): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_cal_date_and_time(self, cal_type): # noqa: N802 - response = self._invoke( - self._client.GetCalDateAndTime, - grpc_types.GetCalDateAndTimeRequest(vi=self._vi, cal_type=cal_type), - ) - return response.month, response.day, response.year, response.hour, response.minute - - def get_dev_temp(self, options): # noqa: N802 - response = self._invoke( - self._client.GetDevTemp, - grpc_types.GetDevTempRequest(vi=self._vi, options=options), - ) - return response.temperature - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.description - - def get_ext_cal_recommended_interval(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalRecommendedInterval, - grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), - ) - return response.months - - def get_last_cal_temp(self, cal_type): # noqa: N802 - response = self._invoke( - self._client.GetLastCalTemp, - grpc_types.GetLastCalTempRequest(vi=self._vi, cal_type=cal_type), - ) - return response.temperature - - def get_self_cal_supported(self): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalSupported, - grpc_types.GetSelfCalSupportedRequest(vi=self._vi), - ) - return response.self_cal_supported - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationBuffer, - grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), - ) - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationFile, - grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithOptions, - grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate(self): # noqa: N802 - self._invoke( - self._client.Initiate, - grpc_types.InitiateRequest(vi=self._vi), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def perform_open_cable_comp(self): # noqa: N802 - response = self._invoke( - self._client.PerformOpenCableComp, - grpc_types.PerformOpenCableCompRequest(vi=self._vi), - ) - return response.conductance, response.susceptance - - def perform_short_cable_comp(self): # noqa: N802 - response = self._invoke( - self._client.PerformShortCableComp, - grpc_types.PerformShortCableCompRequest(vi=self._vi), - ) - return response.resistance, response.reactance - - def read(self, maximum_time): # noqa: N802 - response = self._invoke( - self._client.Read, - grpc_types.ReadRequest(vi=self._vi, maximum_time_raw=maximum_time), - ) - return response.reading - - def read_multi_point(self, maximum_time, array_size): # noqa: N802 - response = self._invoke( - self._client.ReadMultiPoint, - grpc_types.ReadMultiPointRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), - ) - return response.reading_array - - def read_status(self): # noqa: N802 - response = self._invoke( - self._client.ReadStatus, - grpc_types.ReadStatusRequest(vi=self._vi), - ) - return response.acquisition_backlog, enums.AcquisitionStatus(response.acquisition_status_raw) - - def read_waveform(self, maximum_time, array_size): # noqa: N802 - response = self._invoke( - self._client.ReadWaveform, - grpc_types.ReadWaveformRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), - ) - return response.waveform_array - - def reset_with_defaults(self): # noqa: N802 - self._invoke( - self._client.ResetWithDefaults, - grpc_types.ResetWithDefaultsRequest(vi=self._vi), - ) - - def self_cal(self): # noqa: N802 - self._invoke( - self._client.SelfCal, - grpc_types.SelfCalRequest(vi=self._vi), - ) - - def send_software_trigger(self): # noqa: N802 - self._invoke( - self._client.SendSoftwareTrigger, - grpc_types.SendSoftwareTriggerRequest(vi=self._vi), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def unlock(self): # noqa: N802 - self._lock.release() - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.GetErrorMessage, - grpc_types.GetErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.self_test_result, response.self_test_message diff --git a/generated/nidmm/nidmm/_library.py b/generated/nidmm/nidmm/_library.py deleted file mode 100644 index 67dc31dffb..0000000000 --- a/generated/nidmm/nidmm/_library.py +++ /dev/null @@ -1,478 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nidmm.errors as errors -import threading - -from nidmm._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niDMM_Abort_cfunc = None - self.niDMM_ConfigureMeasurementAbsolute_cfunc = None - self.niDMM_ConfigureMeasurementDigits_cfunc = None - self.niDMM_ConfigureMultiPoint_cfunc = None - self.niDMM_ConfigureRTDCustom_cfunc = None - self.niDMM_ConfigureRTDType_cfunc = None - self.niDMM_ConfigureThermistorCustom_cfunc = None - self.niDMM_ConfigureThermocouple_cfunc = None - self.niDMM_ConfigureTrigger_cfunc = None - self.niDMM_ConfigureWaveformAcquisition_cfunc = None - self.niDMM_Disable_cfunc = None - self.niDMM_ExportAttributeConfigurationBuffer_cfunc = None - self.niDMM_ExportAttributeConfigurationFile_cfunc = None - self.niDMM_Fetch_cfunc = None - self.niDMM_FetchMultiPoint_cfunc = None - self.niDMM_FetchWaveform_cfunc = None - self.niDMM_GetAttributeViBoolean_cfunc = None - self.niDMM_GetAttributeViInt32_cfunc = None - self.niDMM_GetAttributeViReal64_cfunc = None - self.niDMM_GetAttributeViString_cfunc = None - self.niDMM_GetCalDateAndTime_cfunc = None - self.niDMM_GetDevTemp_cfunc = None - self.niDMM_GetError_cfunc = None - self.niDMM_GetExtCalRecommendedInterval_cfunc = None - self.niDMM_GetLastCalTemp_cfunc = None - self.niDMM_GetSelfCalSupported_cfunc = None - self.niDMM_ImportAttributeConfigurationBuffer_cfunc = None - self.niDMM_ImportAttributeConfigurationFile_cfunc = None - self.niDMM_InitWithOptions_cfunc = None - self.niDMM_Initiate_cfunc = None - self.niDMM_LockSession_cfunc = None - self.niDMM_PerformOpenCableComp_cfunc = None - self.niDMM_PerformShortCableComp_cfunc = None - self.niDMM_Read_cfunc = None - self.niDMM_ReadMultiPoint_cfunc = None - self.niDMM_ReadStatus_cfunc = None - self.niDMM_ReadWaveform_cfunc = None - self.niDMM_ResetWithDefaults_cfunc = None - self.niDMM_SelfCal_cfunc = None - self.niDMM_SendSoftwareTrigger_cfunc = None - self.niDMM_SetAttributeViBoolean_cfunc = None - self.niDMM_SetAttributeViInt32_cfunc = None - self.niDMM_SetAttributeViReal64_cfunc = None - self.niDMM_SetAttributeViString_cfunc = None - self.niDMM_SetRuntimeEnvironment_cfunc = None - self.niDMM_UnlockSession_cfunc = None - self.niDMM_close_cfunc = None - self.niDMM_error_message_cfunc = None - self.niDMM_reset_cfunc = None - self.niDMM_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niDMM_Abort(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_Abort_cfunc is None: - self.niDMM_Abort_cfunc = self._get_library_function('niDMM_Abort') - self.niDMM_Abort_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_Abort_cfunc(vi) - - def niDMM_ConfigureMeasurementAbsolute(self, vi, measurement_function, range, resolution_absolute): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureMeasurementAbsolute_cfunc is None: - self.niDMM_ConfigureMeasurementAbsolute_cfunc = self._get_library_function('niDMM_ConfigureMeasurementAbsolute') - self.niDMM_ConfigureMeasurementAbsolute_cfunc.argtypes = [ViSession, ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niDMM_ConfigureMeasurementAbsolute_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureMeasurementAbsolute_cfunc(vi, measurement_function, range, resolution_absolute) - - def niDMM_ConfigureMeasurementDigits(self, vi, measurement_function, range, resolution_digits): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureMeasurementDigits_cfunc is None: - self.niDMM_ConfigureMeasurementDigits_cfunc = self._get_library_function('niDMM_ConfigureMeasurementDigits') - self.niDMM_ConfigureMeasurementDigits_cfunc.argtypes = [ViSession, ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niDMM_ConfigureMeasurementDigits_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureMeasurementDigits_cfunc(vi, measurement_function, range, resolution_digits) - - def niDMM_ConfigureMultiPoint(self, vi, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureMultiPoint_cfunc is None: - self.niDMM_ConfigureMultiPoint_cfunc = self._get_library_function('niDMM_ConfigureMultiPoint') - self.niDMM_ConfigureMultiPoint_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViInt32, ViReal64] # noqa: F405 - self.niDMM_ConfigureMultiPoint_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureMultiPoint_cfunc(vi, trigger_count, sample_count, sample_trigger, sample_interval) - - def niDMM_ConfigureRTDCustom(self, vi, rtd_a, rtd_b, rtd_c): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureRTDCustom_cfunc is None: - self.niDMM_ConfigureRTDCustom_cfunc = self._get_library_function('niDMM_ConfigureRTDCustom') - self.niDMM_ConfigureRTDCustom_cfunc.argtypes = [ViSession, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niDMM_ConfigureRTDCustom_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureRTDCustom_cfunc(vi, rtd_a, rtd_b, rtd_c) - - def niDMM_ConfigureRTDType(self, vi, rtd_type, rtd_resistance): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureRTDType_cfunc is None: - self.niDMM_ConfigureRTDType_cfunc = self._get_library_function('niDMM_ConfigureRTDType') - self.niDMM_ConfigureRTDType_cfunc.argtypes = [ViSession, ViInt32, ViReal64] # noqa: F405 - self.niDMM_ConfigureRTDType_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureRTDType_cfunc(vi, rtd_type, rtd_resistance) - - def niDMM_ConfigureThermistorCustom(self, vi, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureThermistorCustom_cfunc is None: - self.niDMM_ConfigureThermistorCustom_cfunc = self._get_library_function('niDMM_ConfigureThermistorCustom') - self.niDMM_ConfigureThermistorCustom_cfunc.argtypes = [ViSession, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niDMM_ConfigureThermistorCustom_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureThermistorCustom_cfunc(vi, thermistor_a, thermistor_b, thermistor_c) - - def niDMM_ConfigureThermocouple(self, vi, thermocouple_type, reference_junction_type): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureThermocouple_cfunc is None: - self.niDMM_ConfigureThermocouple_cfunc = self._get_library_function('niDMM_ConfigureThermocouple') - self.niDMM_ConfigureThermocouple_cfunc.argtypes = [ViSession, ViInt32, ViInt32] # noqa: F405 - self.niDMM_ConfigureThermocouple_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureThermocouple_cfunc(vi, thermocouple_type, reference_junction_type) - - def niDMM_ConfigureTrigger(self, vi, trigger_source, trigger_delay): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureTrigger_cfunc is None: - self.niDMM_ConfigureTrigger_cfunc = self._get_library_function('niDMM_ConfigureTrigger') - self.niDMM_ConfigureTrigger_cfunc.argtypes = [ViSession, ViInt32, ViReal64] # noqa: F405 - self.niDMM_ConfigureTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureTrigger_cfunc(vi, trigger_source, trigger_delay) - - def niDMM_ConfigureWaveformAcquisition(self, vi, measurement_function, range, rate, waveform_points): # noqa: N802 - with self._func_lock: - if self.niDMM_ConfigureWaveformAcquisition_cfunc is None: - self.niDMM_ConfigureWaveformAcquisition_cfunc = self._get_library_function('niDMM_ConfigureWaveformAcquisition') - self.niDMM_ConfigureWaveformAcquisition_cfunc.argtypes = [ViSession, ViInt32, ViReal64, ViReal64, ViInt32] # noqa: F405 - self.niDMM_ConfigureWaveformAcquisition_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ConfigureWaveformAcquisition_cfunc(vi, measurement_function, range, rate, waveform_points) - - def niDMM_Disable(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_Disable_cfunc is None: - self.niDMM_Disable_cfunc = self._get_library_function('niDMM_Disable') - self.niDMM_Disable_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_Disable_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_Disable_cfunc(vi) - - def niDMM_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - with self._func_lock: - if self.niDMM_ExportAttributeConfigurationBuffer_cfunc is None: - self.niDMM_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDMM_ExportAttributeConfigurationBuffer') - self.niDMM_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDMM_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ExportAttributeConfigurationBuffer_cfunc(vi, size, configuration) - - def niDMM_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDMM_ExportAttributeConfigurationFile_cfunc is None: - self.niDMM_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niDMM_ExportAttributeConfigurationFile') - self.niDMM_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ExportAttributeConfigurationFile_cfunc(vi, file_path) - - def niDMM_Fetch(self, vi, maximum_time, reading): # noqa: N802 - with self._func_lock: - if self.niDMM_Fetch_cfunc is None: - self.niDMM_Fetch_cfunc = self._get_library_function('niDMM_Fetch') - self.niDMM_Fetch_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_Fetch_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_Fetch_cfunc(vi, maximum_time, reading) - - def niDMM_FetchMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 - with self._func_lock: - if self.niDMM_FetchMultiPoint_cfunc is None: - self.niDMM_FetchMultiPoint_cfunc = self._get_library_function('niDMM_FetchMultiPoint') - self.niDMM_FetchMultiPoint_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_FetchMultiPoint_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_FetchMultiPoint_cfunc(vi, maximum_time, array_size, reading_array, actual_number_of_points) - - def niDMM_FetchWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 - with self._func_lock: - if self.niDMM_FetchWaveform_cfunc is None: - self.niDMM_FetchWaveform_cfunc = self._get_library_function('niDMM_FetchWaveform') - self.niDMM_FetchWaveform_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_FetchWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_FetchWaveform_cfunc(vi, maximum_time, array_size, waveform_array, actual_number_of_points) - - def niDMM_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_GetAttributeViBoolean_cfunc is None: - self.niDMM_GetAttributeViBoolean_cfunc = self._get_library_function('niDMM_GetAttributeViBoolean') - self.niDMM_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDMM_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_GetAttributeViInt32_cfunc is None: - self.niDMM_GetAttributeViInt32_cfunc = self._get_library_function('niDMM_GetAttributeViInt32') - self.niDMM_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_GetAttributeViReal64_cfunc is None: - self.niDMM_GetAttributeViReal64_cfunc = self._get_library_function('niDMM_GetAttributeViReal64') - self.niDMM_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_GetAttributeViString_cfunc is None: - self.niDMM_GetAttributeViString_cfunc = self._get_library_function('niDMM_GetAttributeViString') - self.niDMM_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buffer_size, attribute_value) - - def niDMM_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 - with self._func_lock: - if self.niDMM_GetCalDateAndTime_cfunc is None: - self.niDMM_GetCalDateAndTime_cfunc = self._get_library_function('niDMM_GetCalDateAndTime') - self.niDMM_GetCalDateAndTime_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_GetCalDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetCalDateAndTime_cfunc(vi, cal_type, month, day, year, hour, minute) - - def niDMM_GetDevTemp(self, vi, options, temperature): # noqa: N802 - with self._func_lock: - if self.niDMM_GetDevTemp_cfunc is None: - self.niDMM_GetDevTemp_cfunc = self._get_library_function('niDMM_GetDevTemp') - self.niDMM_GetDevTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_GetDevTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetDevTemp_cfunc(vi, options, temperature) - - def niDMM_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - with self._func_lock: - if self.niDMM_GetError_cfunc is None: - self.niDMM_GetError_cfunc = self._get_library_function('niDMM_GetError') - self.niDMM_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetError_cfunc(vi, error_code, buffer_size, description) - - def niDMM_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - with self._func_lock: - if self.niDMM_GetExtCalRecommendedInterval_cfunc is None: - self.niDMM_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niDMM_GetExtCalRecommendedInterval') - self.niDMM_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetExtCalRecommendedInterval_cfunc(vi, months) - - def niDMM_GetLastCalTemp(self, vi, cal_type, temperature): # noqa: N802 - with self._func_lock: - if self.niDMM_GetLastCalTemp_cfunc is None: - self.niDMM_GetLastCalTemp_cfunc = self._get_library_function('niDMM_GetLastCalTemp') - self.niDMM_GetLastCalTemp_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_GetLastCalTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetLastCalTemp_cfunc(vi, cal_type, temperature) - - def niDMM_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 - with self._func_lock: - if self.niDMM_GetSelfCalSupported_cfunc is None: - self.niDMM_GetSelfCalSupported_cfunc = self._get_library_function('niDMM_GetSelfCalSupported') - self.niDMM_GetSelfCalSupported_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDMM_GetSelfCalSupported_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_GetSelfCalSupported_cfunc(vi, self_cal_supported) - - def niDMM_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - with self._func_lock: - if self.niDMM_ImportAttributeConfigurationBuffer_cfunc is None: - self.niDMM_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDMM_ImportAttributeConfigurationBuffer') - self.niDMM_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niDMM_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ImportAttributeConfigurationBuffer_cfunc(vi, size, configuration) - - def niDMM_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niDMM_ImportAttributeConfigurationFile_cfunc is None: - self.niDMM_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niDMM_ImportAttributeConfigurationFile') - self.niDMM_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ImportAttributeConfigurationFile_cfunc(vi, file_path) - - def niDMM_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_InitWithOptions_cfunc is None: - self.niDMM_InitWithOptions_cfunc = self._get_library_function('niDMM_InitWithOptions') - self.niDMM_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niDMM_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, vi) - - def niDMM_Initiate(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_Initiate_cfunc is None: - self.niDMM_Initiate_cfunc = self._get_library_function('niDMM_Initiate') - self.niDMM_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_Initiate_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_Initiate_cfunc(vi) - - def niDMM_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niDMM_LockSession_cfunc is None: - self.niDMM_LockSession_cfunc = self._get_library_function('niDMM_LockSession') - self.niDMM_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDMM_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_LockSession_cfunc(vi, caller_has_lock) - - def niDMM_PerformOpenCableComp(self, vi, conductance, susceptance): # noqa: N802 - with self._func_lock: - if self.niDMM_PerformOpenCableComp_cfunc is None: - self.niDMM_PerformOpenCableComp_cfunc = self._get_library_function('niDMM_PerformOpenCableComp') - self.niDMM_PerformOpenCableComp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_PerformOpenCableComp_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_PerformOpenCableComp_cfunc(vi, conductance, susceptance) - - def niDMM_PerformShortCableComp(self, vi, resistance, reactance): # noqa: N802 - with self._func_lock: - if self.niDMM_PerformShortCableComp_cfunc is None: - self.niDMM_PerformShortCableComp_cfunc = self._get_library_function('niDMM_PerformShortCableComp') - self.niDMM_PerformShortCableComp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_PerformShortCableComp_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_PerformShortCableComp_cfunc(vi, resistance, reactance) - - def niDMM_Read(self, vi, maximum_time, reading): # noqa: N802 - with self._func_lock: - if self.niDMM_Read_cfunc is None: - self.niDMM_Read_cfunc = self._get_library_function('niDMM_Read') - self.niDMM_Read_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niDMM_Read_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_Read_cfunc(vi, maximum_time, reading) - - def niDMM_ReadMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 - with self._func_lock: - if self.niDMM_ReadMultiPoint_cfunc is None: - self.niDMM_ReadMultiPoint_cfunc = self._get_library_function('niDMM_ReadMultiPoint') - self.niDMM_ReadMultiPoint_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_ReadMultiPoint_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ReadMultiPoint_cfunc(vi, maximum_time, array_size, reading_array, actual_number_of_points) - - def niDMM_ReadStatus(self, vi, acquisition_backlog, acquisition_status): # noqa: N802 - with self._func_lock: - if self.niDMM_ReadStatus_cfunc is None: - self.niDMM_ReadStatus_cfunc = self._get_library_function('niDMM_ReadStatus') - self.niDMM_ReadStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt16)] # noqa: F405 - self.niDMM_ReadStatus_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ReadStatus_cfunc(vi, acquisition_backlog, acquisition_status) - - def niDMM_ReadWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 - with self._func_lock: - if self.niDMM_ReadWaveform_cfunc is None: - self.niDMM_ReadWaveform_cfunc = self._get_library_function('niDMM_ReadWaveform') - self.niDMM_ReadWaveform_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niDMM_ReadWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ReadWaveform_cfunc(vi, maximum_time, array_size, waveform_array, actual_number_of_points) - - def niDMM_ResetWithDefaults(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_ResetWithDefaults_cfunc is None: - self.niDMM_ResetWithDefaults_cfunc = self._get_library_function('niDMM_ResetWithDefaults') - self.niDMM_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_ResetWithDefaults_cfunc(vi) - - def niDMM_SelfCal(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_SelfCal_cfunc is None: - self.niDMM_SelfCal_cfunc = self._get_library_function('niDMM_SelfCal') - self.niDMM_SelfCal_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_SelfCal_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SelfCal_cfunc(vi) - - def niDMM_SendSoftwareTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_SendSoftwareTrigger_cfunc is None: - self.niDMM_SendSoftwareTrigger_cfunc = self._get_library_function('niDMM_SendSoftwareTrigger') - self.niDMM_SendSoftwareTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_SendSoftwareTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SendSoftwareTrigger_cfunc(vi) - - def niDMM_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_SetAttributeViBoolean_cfunc is None: - self.niDMM_SetAttributeViBoolean_cfunc = self._get_library_function('niDMM_SetAttributeViBoolean') - self.niDMM_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niDMM_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_SetAttributeViInt32_cfunc is None: - self.niDMM_SetAttributeViInt32_cfunc = self._get_library_function('niDMM_SetAttributeViInt32') - self.niDMM_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niDMM_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_SetAttributeViReal64_cfunc is None: - self.niDMM_SetAttributeViReal64_cfunc = self._get_library_function('niDMM_SetAttributeViReal64') - self.niDMM_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niDMM_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niDMM_SetAttributeViString_cfunc is None: - self.niDMM_SetAttributeViString_cfunc = self._get_library_function('niDMM_SetAttributeViString') - self.niDMM_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niDMM_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niDMM_SetRuntimeEnvironment_cfunc is None: - self.niDMM_SetRuntimeEnvironment_cfunc = self._get_library_function('niDMM_SetRuntimeEnvironment') - self.niDMM_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niDMM_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niDMM_UnlockSession_cfunc is None: - self.niDMM_UnlockSession_cfunc = self._get_library_function('niDMM_UnlockSession') - self.niDMM_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niDMM_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_UnlockSession_cfunc(vi, caller_has_lock) - - def niDMM_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_close_cfunc is None: - self.niDMM_close_cfunc = self._get_library_function('niDMM_close') - self.niDMM_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_close_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_close_cfunc(vi) - - def niDMM_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niDMM_error_message_cfunc is None: - self.niDMM_error_message_cfunc = self._get_library_function('niDMM_error_message') - self.niDMM_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_error_message_cfunc(vi, error_code, error_message) - - def niDMM_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niDMM_reset_cfunc is None: - self.niDMM_reset_cfunc = self._get_library_function('niDMM_reset') - self.niDMM_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niDMM_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_reset_cfunc(vi) - - def niDMM_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niDMM_self_test_cfunc is None: - self.niDMM_self_test_cfunc = self._get_library_function('niDMM_self_test') - self.niDMM_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niDMM_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niDMM_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nidmm/nidmm/_library_interpreter.py b/generated/nidmm/nidmm/_library_interpreter.py deleted file mode 100644 index 6de856e8c1..0000000000 --- a/generated/nidmm/nidmm/_library_interpreter.py +++ /dev/null @@ -1,570 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import nidmm._library_singleton as _library_singleton -import nidmm._visatype as _visatype -import nidmm.enums as enums # noqa: F401 -import nidmm.errors as errors - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_Abort(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_measurement_absolute(self, measurement_function, range, resolution_absolute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - measurement_function_ctype = _visatype.ViInt32(measurement_function.value) # case S130 - range_ctype = _visatype.ViReal64(range) # case S150 - resolution_absolute_ctype = _visatype.ViReal64(resolution_absolute) # case S150 - error_code = self._library.niDMM_ConfigureMeasurementAbsolute(vi_ctype, measurement_function_ctype, range_ctype, resolution_absolute_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_measurement_digits(self, measurement_function, range, resolution_digits): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - measurement_function_ctype = _visatype.ViInt32(measurement_function.value) # case S130 - range_ctype = _visatype.ViReal64(range) # case S150 - resolution_digits_ctype = _visatype.ViReal64(resolution_digits) # case S150 - error_code = self._library.niDMM_ConfigureMeasurementDigits(vi_ctype, measurement_function_ctype, range_ctype, resolution_digits_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_multi_point(self, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_count_ctype = _visatype.ViInt32(trigger_count) # case S150 - sample_count_ctype = _visatype.ViInt32(sample_count) # case S150 - sample_trigger_ctype = _visatype.ViInt32(sample_trigger.value) # case S130 - sample_interval_ctype = _visatype.ViReal64(sample_interval) # case S150 - error_code = self._library.niDMM_ConfigureMultiPoint(vi_ctype, trigger_count_ctype, sample_count_ctype, sample_trigger_ctype, sample_interval_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_rtd_custom(self, rtd_a, rtd_b, rtd_c): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - rtd_a_ctype = _visatype.ViReal64(rtd_a) # case S150 - rtd_b_ctype = _visatype.ViReal64(rtd_b) # case S150 - rtd_c_ctype = _visatype.ViReal64(rtd_c) # case S150 - error_code = self._library.niDMM_ConfigureRTDCustom(vi_ctype, rtd_a_ctype, rtd_b_ctype, rtd_c_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_rtd_type(self, rtd_type, rtd_resistance): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - rtd_type_ctype = _visatype.ViInt32(rtd_type.value) # case S130 - rtd_resistance_ctype = _visatype.ViReal64(rtd_resistance) # case S150 - error_code = self._library.niDMM_ConfigureRTDType(vi_ctype, rtd_type_ctype, rtd_resistance_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_thermistor_custom(self, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - thermistor_a_ctype = _visatype.ViReal64(thermistor_a) # case S150 - thermistor_b_ctype = _visatype.ViReal64(thermistor_b) # case S150 - thermistor_c_ctype = _visatype.ViReal64(thermistor_c) # case S150 - error_code = self._library.niDMM_ConfigureThermistorCustom(vi_ctype, thermistor_a_ctype, thermistor_b_ctype, thermistor_c_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_thermocouple(self, thermocouple_type, reference_junction_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - thermocouple_type_ctype = _visatype.ViInt32(thermocouple_type.value) # case S130 - reference_junction_type_ctype = _visatype.ViInt32(reference_junction_type.value) # case S130 - error_code = self._library.niDMM_ConfigureThermocouple(vi_ctype, thermocouple_type_ctype, reference_junction_type_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger(self, trigger_source, trigger_delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_source_ctype = _visatype.ViInt32(trigger_source.value) # case S130 - trigger_delay_ctype = _visatype.ViReal64(trigger_delay) # case S150 - error_code = self._library.niDMM_ConfigureTrigger(vi_ctype, trigger_source_ctype, trigger_delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_waveform_acquisition(self, measurement_function, range, rate, waveform_points): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - measurement_function_ctype = _visatype.ViInt32(measurement_function.value) # case S130 - range_ctype = _visatype.ViReal64(range) # case S150 - rate_ctype = _visatype.ViReal64(rate) # case S150 - waveform_points_ctype = _visatype.ViInt32(waveform_points) # case S150 - error_code = self._library.niDMM_ConfigureWaveformAcquisition(vi_ctype, measurement_function_ctype, range_ctype, rate_ctype, waveform_points_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_Disable(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def export_attribute_configuration_buffer(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_ctype = _visatype.ViInt32() # case S170 - configuration_ctype = None # case B580 - error_code = self._library.niDMM_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - size_ctype = _visatype.ViInt32(error_code) # case S180 - configuration_size = size_ctype.value # case B590 - configuration_array = array.array("b", [0]) * configuration_size # case B590 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niDMM_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return configuration_array - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDMM_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def fetch(self, maximum_time): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - reading_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_Fetch(vi_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(reading_ctype.value) - - def fetch_multi_point(self, maximum_time, array_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - array_size_ctype = _visatype.ViInt32(array_size) # case S210 - reading_array_size = array_size # case B600 - reading_array_array = array.array("d", [0]) * reading_array_size # case B600 - reading_array_ctype = _get_ctypes_pointer_for_buffer(value=reading_array_array, library_type=_visatype.ViReal64) # case B600 - actual_number_of_points_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_FetchMultiPoint(vi_ctype, maximum_time_ctype, array_size_ctype, reading_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return reading_array_array - - def fetch_waveform(self, maximum_time, array_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - array_size_ctype = _visatype.ViInt32(array_size) # case S210 - waveform_array_size = array_size # case B600 - waveform_array_array = array.array("d", [0]) * waveform_array_size # case B600 - waveform_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array_array, library_type=_visatype.ViReal64) # case B600 - actual_number_of_points_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_FetchWaveform(vi_ctype, maximum_time_ctype, array_size_ctype, waveform_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_array_array - - def fetch_waveform_into(self, waveform_array, maximum_time): # noqa: N802 - array_size = len(waveform_array) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - array_size_ctype = _visatype.ViInt32(array_size) # case S210 - waveform_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array) # case B510 - actual_number_of_points_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_FetchWaveform(vi_ctype, maximum_time_ctype, array_size_ctype, waveform_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDMM_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(attribute_value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(attribute_value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - attribute_value_ctype = None # case C050 - error_code = self._library.niDMM_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - attribute_value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDMM_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return attribute_value_ctype.value.decode(self._encoding) - - def get_cal_date_and_time(self, cal_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - cal_type_ctype = _visatype.ViInt32(cal_type) # case S150 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - year_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_GetCalDateAndTime(vi_ctype, cal_type_ctype, None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if year_ctype is None else (ctypes.pointer(year_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(month_ctype.value), int(day_ctype.value), int(year_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_dev_temp(self, options): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - options_ctype = ctypes.create_string_buffer(options.encode(self._encoding)) # case C020 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_GetDevTemp(vi_ctype, options_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - buffer_size_ctype = _visatype.ViInt32() # case S170 - description_ctype = None # case C050 - error_code = self._library.niDMM_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niDMM_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) - - def get_ext_cal_recommended_interval(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - months_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(months_ctype.value) - - def get_last_cal_temp(self, cal_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - cal_type_ctype = _visatype.ViInt32(cal_type) # case S150 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_GetLastCalTemp(vi_ctype, cal_type_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_self_cal_supported(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_cal_supported_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niDMM_GetSelfCalSupported(vi_ctype, None if self_cal_supported_ctype is None else (ctypes.pointer(self_cal_supported_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(self_cal_supported_ctype.value) - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niDMM_ImportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niDMM_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - id_query_ctype = _visatype.ViBoolean(id_query) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niDMM_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initiate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_Initiate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_open_cable_comp(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - conductance_ctype = _visatype.ViReal64() # case S220 - susceptance_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_PerformOpenCableComp(vi_ctype, None if conductance_ctype is None else (ctypes.pointer(conductance_ctype)), None if susceptance_ctype is None else (ctypes.pointer(susceptance_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(conductance_ctype.value), float(susceptance_ctype.value) - - def perform_short_cable_comp(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - resistance_ctype = _visatype.ViReal64() # case S220 - reactance_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_PerformShortCableComp(vi_ctype, None if resistance_ctype is None else (ctypes.pointer(resistance_ctype)), None if reactance_ctype is None else (ctypes.pointer(reactance_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(resistance_ctype.value), float(reactance_ctype.value) - - def read(self, maximum_time): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - reading_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niDMM_Read(vi_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(reading_ctype.value) - - def read_multi_point(self, maximum_time, array_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - array_size_ctype = _visatype.ViInt32(array_size) # case S210 - reading_array_size = array_size # case B600 - reading_array_array = array.array("d", [0]) * reading_array_size # case B600 - reading_array_ctype = _get_ctypes_pointer_for_buffer(value=reading_array_array, library_type=_visatype.ViReal64) # case B600 - actual_number_of_points_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_ReadMultiPoint(vi_ctype, maximum_time_ctype, array_size_ctype, reading_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return reading_array_array - - def read_status(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - acquisition_backlog_ctype = _visatype.ViInt32() # case S220 - acquisition_status_ctype = _visatype.ViInt16() # case S220 - error_code = self._library.niDMM_ReadStatus(vi_ctype, None if acquisition_backlog_ctype is None else (ctypes.pointer(acquisition_backlog_ctype)), None if acquisition_status_ctype is None else (ctypes.pointer(acquisition_status_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(acquisition_backlog_ctype.value), enums.AcquisitionStatus(acquisition_status_ctype.value) - - def read_waveform(self, maximum_time, array_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - array_size_ctype = _visatype.ViInt32(array_size) # case S210 - waveform_array_size = array_size # case B600 - waveform_array_array = array.array("d", [0]) * waveform_array_size # case B600 - waveform_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array_array, library_type=_visatype.ViReal64) # case B600 - actual_number_of_points_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niDMM_ReadWaveform(vi_ctype, maximum_time_ctype, array_size_ctype, waveform_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_array_array - - def reset_with_defaults(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_ResetWithDefaults(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_cal(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_SelfCal(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_SendSoftwareTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 - error_code = self._library.niDMM_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 - error_code = self._library.niDMM_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 - error_code = self._library.niDMM_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 - error_code = self._library.niDMM_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niDMM_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niDMM_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niDMM_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niDMM_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nidmm/nidmm/_library_singleton.py b/generated/nidmm/nidmm/_library_singleton.py deleted file mode 100644 index cd997d9a15..0000000000 --- a/generated/nidmm/nidmm/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nidmm._library as _library -import nidmm.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nidmm', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'nidmm_32.dll', 'type': 'windll'}, - '64bit': {'name': 'nidmm_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nidmm. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nidmm/nidmm/_visatype.py b/generated/nidmm/nidmm/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nidmm/nidmm/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nidmm/nidmm/enums.py b/generated/nidmm/nidmm/enums.py deleted file mode 100644 index b476424cef..0000000000 --- a/generated/nidmm/nidmm/enums.py +++ /dev/null @@ -1,492 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class ADCCalibration(Enum): - AUTO = -1 - r''' - The DMM enables or disables ADC calibration for you. - ''' - OFF = 0 - r''' - The DMM does not compensate for changes to the gain. - ''' - ON = 1 - r''' - The DMM measures an internal reference to calculate the correct gain for the measurement. - ''' - - -class AcquisitionStatus(Enum): - RUNNING = 0 - r''' - Running - ''' - FINISHED_WITH_BACKLOG = 1 - r''' - Finished with **Backlog** - ''' - FINISHED_WITH_NO_BACKLOG = 2 - r''' - Finished with no **Backlog** - ''' - PAUSED = 3 - r''' - Paused - ''' - NO_ACQUISITION_IN_PROGRESS = 4 - r''' - No acquisition in progress - ''' - - -class ApertureTimeUnits(Enum): - SECONDS = 0 - r''' - Seconds - ''' - POWER_LINE_CYCLES = 1 - r''' - Powerline Cycles - ''' - - -class AutoZero(Enum): - AUTO = -1 - r''' - The drivers chooses the AutoZero setting based on the configured method and resolution. - ''' - OFF = 0 - r''' - Disables AutoZero. - ''' - ON = 1 - r''' - The DMM internally disconnects the input signal following each measurement and takes a zero reading. It then subtracts the zero reading from the preceding reading. - ''' - ONCE = 2 - r''' - The DMM internally disconnects the input signal for the first measurement and takes a zero reading. It then subtracts the zero reading from the first reading and the following readings. - ''' - - -class CableCompensationType(Enum): - NONE = 0 - r''' - No Cable Compensation - ''' - OPEN = 1 - r''' - Open Cable Compensation - ''' - SHORT = 2 - r''' - Short Cable Compensation - ''' - OPEN_AND_SHORT = 3 - r''' - Open and Short Cable Compensation - ''' - - -class DCNoiseRejection(Enum): - AUTO = -1 - r''' - The driver chooses the DC noise rejection setting based on the configured method and resolution. - ''' - NORMAL = 0 - r''' - NI-DMM weighs all samples equally. - ''' - SECOND_ORDER = 1 - r''' - NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a triangular weighing method. - ''' - HIGH_ORDER = 2 - r''' - NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a bell-curve weighing method. - ''' - - -class Function(Enum): - DC_VOLTS = 1 - r''' - DC Voltage - ''' - AC_VOLTS = 2 - r''' - AC Voltage - ''' - DC_CURRENT = 3 - r''' - DC Current - ''' - AC_CURRENT = 4 - r''' - AC Current - ''' - TWO_WIRE_RES = 5 - r''' - 2-Wire Resistance - ''' - FOUR_WIRE_RES = 101 - r''' - 4-Wire Resistance - ''' - FREQ = 104 - r''' - Frequency - ''' - PERIOD = 105 - r''' - Period - ''' - TEMPERATURE = 108 - r''' - NI 4065, NI 4070/4071/4072, and NI 4080/4081/4182 supported. - ''' - AC_VOLTS_DC_COUPLED = 1001 - r''' - AC Voltage with DC Coupling - ''' - DIODE = 1002 - r''' - Diode - ''' - WAVEFORM_VOLTAGE = 1003 - r''' - Waveform voltage - ''' - WAVEFORM_CURRENT = 1004 - r''' - Waveform current - ''' - CAPACITANCE = 1005 - r''' - Capacitance - ''' - INDUCTANCE = 1006 - r''' - Inductance - ''' - - -class LCCalculationModel(Enum): - AUTO = -1 - r''' - NI-DMM chooses the algorithm based on method and range - ''' - SERIES = 0 - r''' - NI-DMM uses the series impedance model to calculate capacitance and inductance - ''' - PARALLEL = 1 - r''' - NI-DMM uses the parallel admittance model to calculate capacitance and inductance - ''' - - -class MeasurementCompleteDest(Enum): - NONE = -1 - r''' - No Trigger - ''' - EXTERNAL = 2 - r''' - AUX I/O Connector - ''' - PXI_TRIG0 = 111 - r''' - PXI Trigger Line 0 - ''' - PXI_TRIG1 = 112 - r''' - PXI Trigger Line 1 - ''' - PXI_TRIG2 = 113 - r''' - PXI Trigger Line 2 - ''' - PXI_TRIG3 = 114 - r''' - PXI Trigger Line 3 - ''' - PXI_TRIG4 = 115 - r''' - PXI Trigger Line 4 - ''' - PXI_TRIG5 = 116 - r''' - PXI Trigger Line 5 - ''' - PXI_TRIG6 = 117 - r''' - PXI Trigger Line 6 - ''' - PXI_TRIG7 = 118 - r''' - PXI Trigger Line 7 - ''' - LBR_TRIG0 = 1003 - r''' - Internal Trigger Line of a PXI/SCXI Combination Chassis - ''' - - -class OperationMode(Enum): - IVIDMM = 0 - r''' - IviDmm Mode - ''' - WAVEFORM = 1 - r''' - Waveform acquisition mode - ''' - - -class RTDType(Enum): - CUSTOM = 0 - r''' - Performs Callendar-Van Dusen RTD scaling with the user-specified A, B, - and C coefficients. - ''' - PT3750 = 1 - r''' - Performs scaling for a Pt 3750 RTD. - ''' - PT3851 = 2 - r''' - Performs scaling for a Pt 3851 RTD. - ''' - PT3911 = 3 - r''' - Performs scaling for a Pt 3911 RTD. - ''' - PT3916 = 4 - r''' - Performs scaling for a Pt 3916 RTD. - ''' - PT3920 = 5 - r''' - Performs scaling for a Pt 3920 RTD. - ''' - PT3928 = 6 - r''' - Performs scaling for a Pt 3928 RTD. - ''' - - -class SampleTrigger(Enum): - IMMEDIATE = 1 - r''' - No Trigger - ''' - EXTERNAL = 2 - r''' - AUX I/O Connector Trigger Line 0 - ''' - SOFTWARE_TRIG = 3 - r''' - Software Trigger - ''' - INTERVAL = 10 - r''' - Interval Trigger - ''' - PXI_TRIG0 = 111 - r''' - PXI Trigger Line 0 - ''' - PXI_TRIG1 = 112 - r''' - PXI Trigger Line 1 - ''' - PXI_TRIG2 = 113 - r''' - PXI Trigger Line 2 - ''' - PXI_TRIG3 = 114 - r''' - PXI Trigger Line 3 - ''' - PXI_TRIG4 = 115 - r''' - PXI Trigger Line 4 - ''' - PXI_TRIG5 = 116 - r''' - PXI Trigger Line 5 - ''' - PXI_TRIG6 = 117 - r''' - PXI Trigger Line 6 - ''' - PXI_TRIG7 = 118 - r''' - PXI Trigger Line 7 - ''' - PXI_STAR = 131 - r''' - PXI Star Trigger Line - ''' - AUX_TRIG1 = 1001 - r''' - AUX I/0 Connector Trigger Line 1 - ''' - LBR_TRIG1 = 1004 - r''' - Internal Trigger Line of a PXI/SCXI Combination Chassis - ''' - - -class ThermistorType(Enum): - CUSTOM = 0 - r''' - Custom - ''' - THERMISTOR_44004 = 1 - r''' - 44004 - ''' - THERMISTOR_44006 = 2 - r''' - 44006 - ''' - THERMISTOR_44007 = 3 - r''' - 44007 - ''' - - -class ThermocoupleReferenceJunctionType(Enum): - FIXED = 2 - r''' - Thermocouple reference juction is fixed at the user-specified - temperature. - ''' - - -class ThermocoupleType(Enum): - B = 1 - r''' - Thermocouple type B - ''' - E = 4 - r''' - Thermocouple type E - ''' - J = 6 - r''' - Thermocouple type J - ''' - K = 7 - r''' - Thermocouple type K - ''' - N = 8 - r''' - Thermocouple type N - ''' - R = 9 - r''' - Thermocouple type R - ''' - S = 10 - r''' - Thermocouple type S - ''' - T = 11 - r''' - Thermocouple type T - ''' - - -class TransducerType(Enum): - THERMOCOUPLE = 1 - r''' - Thermocouple - ''' - THERMISTOR = 2 - r''' - Thermistor - ''' - TWO_WIRE_RTD = 3 - r''' - 2-wire RTD - ''' - FOUR_WIRE_RTD = 4 - r''' - 4-wire RTD - ''' - - -class TriggerSource(Enum): - IMMEDIATE = 1 - r''' - No Trigger - ''' - EXTERNAL = 2 - r''' - AUX I/O Connector Trigger Line 0 - ''' - SOFTWARE_TRIG = 3 - r''' - Software Trigger - ''' - PXI_TRIG0 = 111 - r''' - PXI Trigger Line 0 - ''' - PXI_TRIG1 = 112 - r''' - PXI Trigger Line 1 - ''' - PXI_TRIG2 = 113 - r''' - PXI Trigger Line 2 - ''' - PXI_TRIG3 = 114 - r''' - PXI Trigger Line 3 - ''' - PXI_TRIG4 = 115 - r''' - PXI Trigger Line 4 - ''' - PXI_TRIG5 = 116 - r''' - PXI Trigger Line 5 - ''' - PXI_TRIG6 = 117 - r''' - PXI Trigger Line 6 - ''' - PXI_TRIG7 = 118 - r''' - PXI Trigger Line 7 - ''' - PXI_STAR = 131 - r''' - PXI Star Trigger Line - ''' - AUX_TRIG1 = 1001 - r''' - AUX I/O Connector Trigger Line 1 - ''' - LBR_TRIG1 = 1004 - r''' - Internal Trigger Line of a PXI/SCXI Combination Chassis - ''' - - -class WaveformCoupling(Enum): - AC = 0 - r''' - AC Coupled - ''' - DC = 1 - r''' - DC Coupled - ''' diff --git a/generated/nidmm/nidmm/errors.py b/generated/nidmm/nidmm/errors.py deleted file mode 100644 index fba2f79427..0000000000 --- a/generated/nidmm/nidmm/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-DMM''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-DMM driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-DMM driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-DMM runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-DMM driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-DMM runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-DMM driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-DMM runtime returned an unexpected value. This can occur if it is too new for the nidmm Python module. Upgrade the nidmm Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nidmm.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nidmm/nidmm/grpc_session_options.py b/generated/nidmm/nidmm/grpc_session_options.py deleted file mode 100644 index 0a8dc73eb9..0000000000 --- a/generated/nidmm/nidmm/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nidmm_grpc.NiDmm' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nidmm/nidmm/nidevice_pb2.py b/generated/nidmm/nidmm/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nidmm/nidmm/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nidmm/nidmm/nidevice_pb2_grpc.py b/generated/nidmm/nidmm/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nidmm/nidmm/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nidmm/nidmm/nidmm_pb2.py b/generated/nidmm/nidmm/nidmm_pb2.py deleted file mode 100644 index 608f6b9860..0000000000 --- a/generated/nidmm/nidmm/nidmm_pb2.py +++ /dev/null @@ -1,425 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidmm.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bnidmm.proto\x12\nnidmm_grpc\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"K\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"P\n\x16GetErrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"@\n\x17GetErrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1bGetMeasurementPeriodRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\">\n\x1cGetMeasurementPeriodResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06period\x18\x02 \x01(\x01\"\x8e\x02\n\x17\x43onfigureTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\x0etrigger_source\x18\x02 \x01(\x0e\x32\x19.nidmm_grpc.TriggerSourceH\x00\x12\x1c\n\x12trigger_source_raw\x18\x03 \x01(\x11H\x00\x12\x32\n\rtrigger_delay\x18\x04 \x01(\x0e\x32\x19.nidmm_grpc.TriggerDelaysH\x01\x12\x1b\n\x11trigger_delay_raw\x18\x05 \x01(\x01H\x01\x42\x15\n\x13trigger_source_enumB\x14\n\x12trigger_delay_enum\"*\n\x18\x43onfigureTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x91\x01\n\x0bReadRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x42\x13\n\x11maximum_time_enum\"/\n\x0cReadResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"\x92\x01\n\x0c\x46\x65tchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x42\x13\n\x11maximum_time_enum\"0\n\rFetchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"S\n\x12IsOverRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11measurement_value\x18\x02 \x01(\x01\"<\n\x13IsOverRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\ris_over_range\x18\x02 \x01(\x08\"T\n\x13IsUnderRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11measurement_value\x18\x02 \x01(\x01\">\n\x14IsUnderRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0eis_under_range\x18\x02 \x01(\x08\"\x83\x01\n\x1b\x43onfigureACBandwidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1f\n\x17\x61\x63_minimum_frequency_hz\x18\x02 \x01(\x01\x12\x1f\n\x17\x61\x63_maximum_frequency_hz\x18\x03 \x01(\x01\".\n\x1c\x43onfigureACBandwidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x01\n%ConfigureFrequencyVoltageRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12:\n\rvoltage_range\x18\x02 \x01(\x0e\x32!.nidmm_grpc.FrequencyVoltageRangeH\x00\x12\x1b\n\x11voltage_range_raw\x18\x03 \x01(\x01H\x00\x42\x14\n\x12voltage_range_enum\"8\n&ConfigureFrequencyVoltageRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"i\n ConfigureMeasCompleteDestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12!\n\x19meas_complete_destination\x18\x02 \x01(\x11\"3\n!ConfigureMeasCompleteDestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe0\x03\n\x1a\x43onfigureMultiPointRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\rtrigger_count\x18\x02 \x01(\x0e\x32\x18.nidmm_grpc.TriggerCountH\x00\x12\x1b\n\x11trigger_count_raw\x18\x03 \x01(\x11H\x00\x12/\n\x0csample_count\x18\x04 \x01(\x0e\x32\x17.nidmm_grpc.SampleCountH\x01\x12\x1a\n\x10sample_count_raw\x18\x05 \x01(\x11H\x01\x12\x33\n\x0esample_trigger\x18\x06 \x01(\x0e\x32\x19.nidmm_grpc.SampleTriggerH\x02\x12\x1c\n\x12sample_trigger_raw\x18\x07 \x01(\x11H\x02\x12\x35\n\x0fsample_interval\x18\x08 \x01(\x0e\x32\x1a.nidmm_grpc.SampleIntervalH\x03\x12\x1d\n\x13sample_interval_raw\x18\t \x01(\x01H\x03\x42\x14\n\x12trigger_count_enumB\x13\n\x11sample_count_enumB\x15\n\x13sample_trigger_enumB\x16\n\x14sample_interval_enum\"-\n\x1b\x43onfigureMultiPointResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xaf\x01\n\x15ReadMultiPointRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"`\n\x16ReadMultiPointResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rreading_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\xb0\x01\n\x16\x46\x65tchMultiPointRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"a\n\x17\x46\x65tchMultiPointResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rreading_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\xa8\x01\n\x1c\x43onfigureTriggerSlopeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\rtrigger_slope\x18\x02 \x01(\x0e\x32\x18.nidmm_grpc.TriggerSlopeH\x00\x12\x1b\n\x11trigger_slope_raw\x18\x03 \x01(\x11H\x00\x42\x14\n\x12trigger_slope_enum\"/\n\x1d\x43onfigureTriggerSlopeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aSendSoftwareTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1bSendSoftwareTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aGetApertureTimeInfoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xd6\x01\n\x1bGetApertureTimeInfoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\raperture_time\x18\x02 \x01(\x0e\x32\x18.nidmm_grpc.ApertureTime\x12\x19\n\x11\x61perture_time_raw\x18\x03 \x01(\x01\x12:\n\x13\x61perture_time_units\x18\x04 \x01(\x0e\x32\x1d.nidmm_grpc.ApertureTimeUnits\x12\x1f\n\x17\x61perture_time_units_raw\x18\x05 \x01(\x11\">\n\x18GetAutoRangeValueRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x19GetAutoRangeValueResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x61\x63tual_range\x18\x02 \x01(\x01\"Z\n\x1c\x43onfigureAutoZeroModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0e\x61uto_zero_mode\x18\x02 \x01(\x11\"/\n\x1d\x43onfigureAutoZeroModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd4\x01\n\"ConfigurePowerLineFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x17power_line_frequency_hz\x18\x02 \x01(\x0e\x32 .nidmm_grpc.PowerLineFrequenciesH\x00\x12%\n\x1bpower_line_frequency_hz_raw\x18\x03 \x01(\x01H\x00\x42\x1e\n\x1cpower_line_frequency_hz_enum\"5\n#ConfigurePowerLineFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe8\x01\n!ConfigureMeasurementDigitsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x34\n\x14measurement_function\x18\x02 \x01(\x0e\x32\x14.nidmm_grpc.FunctionH\x00\x12\"\n\x18measurement_function_raw\x18\x03 \x01(\x11H\x00\x12\r\n\x05range\x18\x04 \x01(\x01\x12\x19\n\x11resolution_digits\x18\x05 \x01(\x01\x42\x1b\n\x19measurement_function_enum\"4\n\"ConfigureMeasurementDigitsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xec\x01\n#ConfigureMeasurementAbsoluteRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x34\n\x14measurement_function\x18\x02 \x01(\x0e\x32\x14.nidmm_grpc.FunctionH\x00\x12\"\n\x18measurement_function_raw\x18\x03 \x01(\x11H\x00\x12\r\n\x05range\x18\x04 \x01(\x01\x12\x1b\n\x13resolution_absolute\x18\x05 \x01(\x01\x42\x1b\n\x19measurement_function_enum\"6\n$ConfigureMeasurementAbsoluteResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n!ConfigureMeasCompleteSlopeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1b\n\x13meas_complete_slope\x18\x02 \x01(\x11\"4\n\"ConfigureMeasCompleteSlopeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc6\x01\n\"ConfigureSampleTriggerSlopeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12;\n\x14sample_trigger_slope\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.SampleTrigSlopeH\x00\x12\"\n\x18sample_trigger_slope_raw\x18\x03 \x01(\x11H\x00\x42\x1b\n\x19sample_trigger_slope_enum\"5\n#ConfigureSampleTriggerSlopeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11ReadStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x9c\x01\n\x12ReadStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13\x61\x63quisition_backlog\x18\x02 \x01(\x11\x12\x39\n\x12\x61\x63quisition_status\x18\x03 \x01(\x0e\x32\x1d.nidmm_grpc.AcquisitionStatus\x12\x1e\n\x16\x61\x63quisition_status_raw\x18\x04 \x01(\x11\"\x9e\x01\n\x0e\x43ontrolRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\x0e\x63ontrol_action\x18\x02 \x01(\x0e\x32\x19.nidmm_grpc.ControlCommitH\x00\x12\x1c\n\x12\x63ontrol_action_raw\x18\x03 \x01(\x11H\x00\x42\x15\n\x13\x63ontrol_action_enum\"!\n\x0f\x43ontrolResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"]\n\x1e\x43onfigureADCCalibrationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x61\x64\x63_calibration\x18\x02 \x01(\x11\"1\n\x1f\x43onfigureADCCalibrationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb6\x01\n\x1e\x43onfigureOffsetCompOhmsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x37\n\x10offset_comp_ohms\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.CompensatedOhmsH\x00\x12\x1e\n\x14offset_comp_ohms_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15offset_comp_ohms_enum\"1\n\x1f\x43onfigureOffsetCompOhmsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1d\x43onfigureCurrentSourceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0e\x63urrent_source\x18\x02 \x01(\x01\"0\n\x1e\x43onfigureCurrentSourceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n\x1d\x43onfigureCableCompTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x63\x61\x62le_comp_type\x18\x02 \x01(\x11\"0\n\x1e\x43onfigureCableCompTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1bPerformOpenCableCompRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"X\n\x1cPerformOpenCableCompResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x63onductance\x18\x02 \x01(\x01\x12\x13\n\x0bsusceptance\x18\x03 \x01(\x01\"B\n\x1cPerformShortCableCompRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"V\n\x1dPerformShortCableCompResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nresistance\x18\x02 \x01(\x01\x12\x11\n\treactance\x18\x03 \x01(\x01\"s\n#ConfigureOpenCableCompValuesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0b\x63onductance\x18\x02 \x01(\x01\x12\x13\n\x0bsusceptance\x18\x03 \x01(\x01\"6\n$ConfigureOpenCableCompValuesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n$ConfigureShortCableCompValuesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nresistance\x18\x02 \x01(\x01\x12\x11\n\treactance\x18\x03 \x01(\x01\"7\n%ConfigureShortCableCompValuesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n#ConfigureWaveformAcquisitionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x34\n\x14measurement_function\x18\x02 \x01(\x0e\x32\x14.nidmm_grpc.FunctionH\x00\x12\"\n\x18measurement_function_raw\x18\x03 \x01(\x11H\x00\x12\r\n\x05range\x18\x04 \x01(\x01\x12\x0c\n\x04rate\x18\x05 \x01(\x01\x12\x17\n\x0fwaveform_points\x18\x06 \x01(\x11\x42\x1b\n\x19measurement_function_enum\"6\n$ConfigureWaveformAcquisitionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n ConfigureWaveformCouplingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11waveform_coupling\x18\x02 \x01(\x11\"3\n!ConfigureWaveformCouplingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x14\x46\x65tchWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"`\n\x15\x46\x65tchWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0ewaveform_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\xad\x01\n\x13ReadWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"_\n\x14ReadWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0ewaveform_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\x88\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x81\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12@\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32%.nidmm_grpc.NiDmmInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x83\x02\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12@\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32%.nidmm_grpc.NiDmmInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\xd3\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x41\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32&.nidmm_grpc.NiDmmReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x12N\n\x16\x61ttribute_value_mapped\x18\x06 \x01(\x0e\x32,.nidmm_grpc.NiDmmReal64AttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x02\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x41\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32&.nidmm_grpc.NiDmmReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x12N\n\x16\x61ttribute_value_mapped\x18\x06 \x01(\x0e\x32,.nidmm_grpc.NiDmmReal64AttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\xa6\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xbb\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\xa3\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"@\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x63hannel_string\x18\x02 \x01(\t\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"@\n\x1aGetSelfCalSupportedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"I\n\x1bGetSelfCalSupportedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12self_cal_supported\x18\x02 \x01(\x08\"\x98\x01\n\x18GetCalDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12/\n\x08\x63\x61l_type\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.CalibrationTypeH\x00\x12\x16\n\x0c\x63\x61l_type_raw\x18\x03 \x01(\x11H\x00\x42\x0f\n\rcal_type_enum\"s\n\x19GetCalDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x11\x12\x0c\n\x04year\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"\x95\x01\n\x15GetLastCalTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12/\n\x08\x63\x61l_type\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.CalibrationTypeH\x00\x12\x16\n\x0c\x63\x61l_type_raw\x18\x03 \x01(\x11H\x00\x42\x0f\n\rcal_type_enum\"=\n\x16GetLastCalTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"H\n\x11GetDevTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07options\x18\x02 \x01(\t\"9\n\x12GetDevTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"]\n\x1e\x43onfigureTransducerTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0ftransducer_type\x18\x02 \x01(\x11\"1\n\x1f\x43onfigureTransducerTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd1\x02\n\x1c\x43onfigureThermocoupleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x39\n\x11thermocouple_type\x18\x02 \x01(\x0e\x32\x1c.nidmm_grpc.ThermocoupleTypeH\x00\x12\x1f\n\x15thermocouple_type_raw\x18\x03 \x01(\x11H\x00\x12P\n\x17reference_junction_type\x18\x04 \x01(\x0e\x32-.nidmm_grpc.ThermocoupleReferenceJunctionTypeH\x01\x12%\n\x1breference_junction_type_raw\x18\x05 \x01(\x11H\x01\x42\x18\n\x16thermocouple_type_enumB\x1e\n\x1creference_junction_type_enum\"/\n\x1d\x43onfigureThermocoupleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n ConfigureFixedRefJunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12 \n\x18\x66ixed_reference_junction\x18\x02 \x01(\x01\"3\n!ConfigureFixedRefJunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x17\x43onfigureRTDTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\'\n\x08rtd_type\x18\x02 \x01(\x0e\x32\x13.nidmm_grpc.RtdTypeH\x00\x12\x16\n\x0crtd_type_raw\x18\x03 \x01(\x11H\x00\x12\x16\n\x0ertd_resistance\x18\x04 \x01(\x01\x42\x0f\n\rrtd_type_enum\"*\n\x18\x43onfigureRTDTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n\x19\x43onfigureRTDCustomRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05rtd_a\x18\x02 \x01(\x01\x12\r\n\x05rtd_b\x18\x03 \x01(\x01\x12\r\n\x05rtd_c\x18\x04 \x01(\x01\",\n\x1a\x43onfigureRTDCustomResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"]\n\x1e\x43onfigureThermistorTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fthermistor_type\x18\x02 \x01(\x11\"1\n\x1f\x43onfigureThermistorTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x88\x01\n ConfigureThermistorCustomRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cthermistor_a\x18\x02 \x01(\x01\x12\x14\n\x0cthermistor_b\x18\x03 \x01(\x01\x12\x14\n\x0cthermistor_c\x18\x04 \x01(\x01\"3\n!ConfigureThermistorCustomResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\x8a\x1b\n\x0eNiDmmAttribute\x12\x1f\n\x1bNIDMM_ATTRIBUTE_UNSPECIFIED\x10\x00\x12!\n\x1bNIDMM_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12-\n\'NIDMM_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1b\n\x15NIDMM_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\x1e\n\x18NIDMM_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12&\n NIDMM_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12\'\n!NIDMM_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12>\n8NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12>\n8NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x31\n+NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12,\n&NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12,\n&NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12.\n(NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12#\n\x1dNIDMM_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x31\n+NIDMM_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12(\n\"NIDMM_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12-\n\'NIDMM_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12&\n NIDMM_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x32\n,NIDMM_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\"\n\x1cNIDMM_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12,\n&NIDMM_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12\"\n\x1cNIDMM_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12\x1e\n\x18NIDMM_ATTRIBUTE_FUNCTION\x10\xd1\xa5L\x12\x1b\n\x15NIDMM_ATTRIBUTE_RANGE\x10\xd2\xa5L\x12)\n#NIDMM_ATTRIBUTE_RESOLUTION_ABSOLUTE\x10\xd8\xa5L\x12\'\n!NIDMM_ATTRIBUTE_RESOLUTION_DIGITS\x10\xd3\xa5L\x12#\n\x1dNIDMM_ATTRIBUTE_TRIGGER_DELAY\x10\xd5\xa5L\x12$\n\x1eNIDMM_ATTRIBUTE_TRIGGER_SOURCE\x10\xd4\xa5L\x12!\n\x1bNIDMM_ATTRIBUTE_AC_MAX_FREQ\x10\xd7\xa5L\x12!\n\x1bNIDMM_ATTRIBUTE_AC_MIN_FREQ\x10\xd6\xa5L\x12(\n\"NIDMM_ATTRIBUTE_FREQ_VOLTAGE_RANGE\x10\xb5\xa6L\x12(\n\"NIDMM_ATTRIBUTE_MEAS_COMPLETE_DEST\x10\x81\xa8L\x12\"\n\x1cNIDMM_ATTRIBUTE_SAMPLE_COUNT\x10\xfd\xa7L\x12%\n\x1fNIDMM_ATTRIBUTE_SAMPLE_INTERVAL\x10\xff\xa7L\x12$\n\x1eNIDMM_ATTRIBUTE_SAMPLE_TRIGGER\x10\xfe\xa7L\x12#\n\x1dNIDMM_ATTRIBUTE_TRIGGER_COUNT\x10\x80\xa8L\x12#\n\x1dNIDMM_ATTRIBUTE_APERTURE_TIME\x10\x91\xa8L\x12)\n#NIDMM_ATTRIBUTE_APERTURE_TIME_UNITS\x10\x92\xa8L\x12&\n NIDMM_ATTRIBUTE_AUTO_RANGE_VALUE\x10\x9b\xa8L\x12\x1f\n\x19NIDMM_ATTRIBUTE_AUTO_ZERO\x10\x9c\xa8L\x12$\n\x1eNIDMM_ATTRIBUTE_POWERLINE_FREQ\x10\x9d\xa8L\x12#\n\x1dNIDMM_ATTRIBUTE_TRIGGER_SLOPE\x10\x9e\xa8L\x12*\n$NIDMM_ATTRIBUTE_SAMPLE_TRIGGER_SLOPE\x10\xba\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_MEAS_DEST_SLOPE\x10\xb2\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_ADC_CALIBRATION\x10\xc6\x98\x46\x12&\n NIDMM_ATTRIBUTE_OFFSET_COMP_OHMS\x10\xc7\x98\x46\x12(\n\"NIDMM_ATTRIBUTE_NUMBER_OF_AVERAGES\x10\xd0\x98\x46\x12$\n\x1eNIDMM_ATTRIBUTE_CURRENT_SOURCE\x10\xc9\x98\x46\x12(\n\"NIDMM_ATTRIBUTE_DC_NOISE_REJECTION\x10\xca\x98\x46\x12!\n\x1bNIDMM_ATTRIBUTE_SETTLE_TIME\x10\xcc\x98\x46\x12&\n NIDMM_ATTRIBUTE_INPUT_RESISTANCE\x10\xcd\x98\x46\x12\x1d\n\x17NIDMM_ATTRIBUTE_LATENCY\x10\xd2\x98\x46\x12!\n\x1bNIDMM_ATTRIBUTE_BUFFER_SIZE\x10\xd5\x98\x46\x12!\n\x1bNIDMM_ATTRIBUTE_SHUNT_VALUE\x10\xb3\x98\x46\x12$\n\x1eNIDMM_ATTRIBUTE_OPERATION_MODE\x10\xbe\x98\x46\x12#\n\x1dNIDMM_ATTRIBUTE_WAVEFORM_RATE\x10\xc2\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_WAVEFORM_POINTS\x10\xc3\x98\x46\x12\'\n!NIDMM_ATTRIBUTE_WAVEFORM_COUPLING\x10\xcb\x98\x46\x12\x33\n-NIDMM_ATTRIBUTE_FREQ_VOLTAGE_AUTO_RANGE_VALUE\x10\xdc\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_CABLE_COMP_TYPE\x10\xdd\x98\x46\x12\x30\n*NIDMM_ATTRIBUTE_SHORT_CABLE_COMP_REACTANCE\x10\xde\x98\x46\x12\x31\n+NIDMM_ATTRIBUTE_SHORT_CABLE_COMP_RESISTANCE\x10\xdf\x98\x46\x12\x31\n+NIDMM_ATTRIBUTE_OPEN_CABLE_COMP_SUSCEPTANCE\x10\xe0\x98\x46\x12\x31\n+NIDMM_ATTRIBUTE_OPEN_CABLE_COMP_CONDUCTANCE\x10\xe1\x98\x46\x12*\n$NIDMM_ATTRIBUTE_LC_CALCULATION_MODEL\x10\xe4\x98\x46\x12\x1d\n\x17NIDMM_ATTRIBUTE_DC_BIAS\x10\xe5\x98\x46\x12/\n)NIDMM_ATTRIBUTE_LC_NUMBER_MEAS_TO_AVERAGE\x10\xe7\x98\x46\x12#\n\x1dNIDMM_ATTRIBUTE_SERIAL_NUMBER\x10\xe6\x98\x46\x12+\n%NIDMM_ATTRIBUTE_CONFIG_PRODUCT_NUMBER\x10\xed\x98\x46\x12*\n$NIDMM_ATTRIBUTE_TEMP_TRANSDUCER_TYPE\x10\x99\xa7L\x12+\n%NIDMM_ATTRIBUTE_TEMP_TC_REF_JUNC_TYPE\x10\xb8\xa7L\x12\"\n\x1cNIDMM_ATTRIBUTE_TEMP_TC_TYPE\x10\xb7\xa7L\x12,\n&NIDMM_ATTRIBUTE_TEMP_TC_FIXED_REF_JUNC\x10\xb9\xa7L\x12#\n\x1dNIDMM_ATTRIBUTE_TEMP_RTD_TYPE\x10\xa8\x99\x46\x12\"\n\x1cNIDMM_ATTRIBUTE_TEMP_RTD_RES\x10\xc2\xa7L\x12 \n\x1aNIDMM_ATTRIBUTE_TEMP_RTD_A\x10\xa9\x99\x46\x12 \n\x1aNIDMM_ATTRIBUTE_TEMP_RTD_B\x10\xaa\x99\x46\x12 \n\x1aNIDMM_ATTRIBUTE_TEMP_RTD_C\x10\xab\x99\x46\x12*\n$NIDMM_ATTRIBUTE_TEMP_THERMISTOR_TYPE\x10\xac\x99\x46\x12\'\n!NIDMM_ATTRIBUTE_TEMP_THERMISTOR_A\x10\xad\x99\x46\x12\'\n!NIDMM_ATTRIBUTE_TEMP_THERMISTOR_B\x10\xae\x99\x46\x12\'\n!NIDMM_ATTRIBUTE_TEMP_THERMISTOR_C\x10\xaf\x99\x46\x12\x33\n-NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_MAJOR_VERSION\x10\x87\x8f@\x12\x33\n-NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_MINOR_VERSION\x10\x88\x8f@*\xbb\x04\n\x08\x46unction\x12\x18\n\x14\x46UNCTION_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x46UNCTION_NIDMM_VAL_DC_VOLTS\x10\x01\x12\x1f\n\x1b\x46UNCTION_NIDMM_VAL_AC_VOLTS\x10\x02\x12!\n\x1d\x46UNCTION_NIDMM_VAL_DC_CURRENT\x10\x03\x12!\n\x1d\x46UNCTION_NIDMM_VAL_AC_CURRENT\x10\x04\x12!\n\x1d\x46UNCTION_NIDMM_VAL_2_WIRE_RES\x10\x05\x12!\n\x1d\x46UNCTION_NIDMM_VAL_4_WIRE_RES\x10\x65\x12\x1b\n\x17\x46UNCTION_NIDMM_VAL_FREQ\x10h\x12\x1d\n\x19\x46UNCTION_NIDMM_VAL_PERIOD\x10i\x12\"\n\x1e\x46UNCTION_NIDMM_VAL_TEMPERATURE\x10l\x12+\n&FUNCTION_NIDMM_VAL_AC_VOLTS_DC_COUPLED\x10\xe9\x07\x12\x1d\n\x18\x46UNCTION_NIDMM_VAL_DIODE\x10\xea\x07\x12(\n#FUNCTION_NIDMM_VAL_WAVEFORM_VOLTAGE\x10\xeb\x07\x12(\n#FUNCTION_NIDMM_VAL_WAVEFORM_CURRENT\x10\xec\x07\x12#\n\x1e\x46UNCTION_NIDMM_VAL_CAPACITANCE\x10\xed\x07\x12\"\n\x1d\x46UNCTION_NIDMM_VAL_INDUCTANCE\x10\xee\x07*\xe4\x04\n\rTriggerSource\x12\x1e\n\x1aTRIGGER_SOURCE_UNSPECIFIED\x10\x00\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_IMMEDIATE\x10\x01\x12%\n!TRIGGER_SOURCE_NIDMM_VAL_EXTERNAL\x10\x02\x12*\n&TRIGGER_SOURCE_NIDMM_VAL_SOFTWARE_TRIG\x10\x03\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG0\x10o\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG1\x10p\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG2\x10q\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG3\x10r\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG4\x10s\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG5\x10t\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG6\x10u\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG7\x10v\x12&\n!TRIGGER_SOURCE_NIDMM_VAL_PXI_STAR\x10\x83\x01\x12\'\n\"TRIGGER_SOURCE_NIDMM_VAL_AUX_TRIG1\x10\xe9\x07\x12\'\n\"TRIGGER_SOURCE_NIDMM_VAL_LBR_TRIG1\x10\xec\x07*\x8b\x05\n\rSampleTrigger\x12\x1e\n\x1aSAMPLE_TRIGGER_UNSPECIFIED\x10\x00\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_IMMEDIATE\x10\x01\x12%\n!SAMPLE_TRIGGER_NIDMM_VAL_EXTERNAL\x10\x02\x12*\n&SAMPLE_TRIGGER_NIDMM_VAL_SOFTWARE_TRIG\x10\x03\x12%\n!SAMPLE_TRIGGER_NIDMM_VAL_INTERVAL\x10\n\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG0\x10o\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG1\x10p\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG2\x10q\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG3\x10r\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG4\x10s\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG5\x10t\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG6\x10u\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG7\x10v\x12&\n!SAMPLE_TRIGGER_NIDMM_VAL_PXI_STAR\x10\x83\x01\x12\'\n\"SAMPLE_TRIGGER_NIDMM_VAL_AUX_TRIG1\x10\xe9\x07\x12\'\n\"SAMPLE_TRIGGER_NIDMM_VAL_LBR_TRIG1\x10\xec\x07*Z\n\x0cTriggerSlope\x12$\n TRIGGER_SLOPE_NIDMM_VAL_POSITIVE\x10\x00\x12$\n TRIGGER_SLOPE_NIDMM_VAL_NEGATIVE\x10\x01*e\n\x0fSampleTrigSlope\x12(\n$SAMPLE_TRIG_SLOPE_NIDMM_VAL_POSITIVE\x10\x00\x12(\n$SAMPLE_TRIG_SLOPE_NIDMM_VAL_NEGATIVE\x10\x01*\x9c\x01\n\x14PowerLineFrequencies\x12&\n\"POWER_LINE_FREQUENCIES_UNSPECIFIED\x10\x00\x12-\n)POWER_LINE_FREQUENCIES_NIDMM_VAL_50_HERTZ\x10\x32\x12-\n)POWER_LINE_FREQUENCIES_NIDMM_VAL_60_HERTZ\x10<*s\n\x11\x41pertureTimeUnits\x12)\n%APERTURE_TIME_UNITS_NIDMM_VAL_SECONDS\x10\x00\x12\x33\n/APERTURE_TIME_UNITS_NIDMM_VAL_POWER_LINE_CYCLES\x10\x01*z\n\x0f\x43ompensatedOhms\x12\x33\n/COMPENSATED_OHMS_NIDMM_VAL_OFFSET_COMP_OHMS_OFF\x10\x00\x12\x32\n.COMPENSATED_OHMS_NIDMM_VAL_OFFSET_COMP_OHMS_ON\x10\x01*m\n\x0f\x43\x61librationType\x12,\n(CALIBRATION_TYPE_NIDMM_VAL_INTERNAL_AREA\x10\x00\x12,\n(CALIBRATION_TYPE_NIDMM_VAL_EXTERNAL_AREA\x10\x01*\xa1\x01\n!ThermocoupleReferenceJunctionType\x12\x34\n0THERMOCOUPLE_REFERENCE_JUNCTION_TYPE_UNSPECIFIED\x10\x00\x12\x46\nBTHERMOCOUPLE_REFERENCE_JUNCTION_TYPE_NIDMM_VAL_TEMP_REF_JUNC_FIXED\x10\x02*\x8d\x03\n\x10ThermocoupleType\x12!\n\x1dTHERMOCOUPLE_TYPE_UNSPECIFIED\x10\x00\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_B\x10\x01\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_E\x10\x04\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_J\x10\x06\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_K\x10\x07\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_N\x10\x08\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_R\x10\t\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_S\x10\n\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_T\x10\x0b*\xa1\x02\n\x07RtdType\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_CUSTOM\x10\x00\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3750\x10\x01\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3851\x10\x02\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3911\x10\x03\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3916\x10\x04\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3920\x10\x05\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3928\x10\x06*\xa4\x02\n\x11\x41\x63quisitionStatus\x12\x36\n2ACQUISITION_STATUS_NIDMM_VAL_RUNNING_ANTICOLLISION\x10\x00\x12\x36\n2ACQUISITION_STATUS_NIDMM_VAL_FINISHED_WITH_BACKLOG\x10\x01\x12\x39\n5ACQUISITION_STATUS_NIDMM_VAL_FINISHED_WITH_NO_BACKLOG\x10\x02\x12\'\n#ACQUISITION_STATUS_NIDMM_VAL_PAUSED\x10\x03\x12;\n7ACQUISITION_STATUS_NIDMM_VAL_NO_ACQUISITION_IN_PROGRESS\x10\x04*\xe1\x02\n\x0c\x41pertureTime\x12\x1d\n\x19\x41PERTURE_TIME_UNSPECIFIED\x10\x00\x12\x37\n*APERTURE_TIME_NIDMM_VAL_APERTURE_TIME_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12!\n\x1d\x41PERTURE_TIME_NIDMM_VAL_1_PLC\x10\x01\x12!\n\x1d\x41PERTURE_TIME_NIDMM_VAL_5_PLC\x10\x05\x12!\n\x1d\x41PERTURE_TIME_NIDMM_VAL_6_PLC\x10\x06\x12\"\n\x1e\x41PERTURE_TIME_NIDMM_VAL_10_PLC\x10\n\x12\"\n\x1e\x41PERTURE_TIME_NIDMM_VAL_12_PLC\x10\x0c\x12#\n\x1f\x41PERTURE_TIME_NIDMM_VAL_100_PLC\x10\x64\x12#\n\x1f\x41PERTURE_TIME_NIDMM_VAL_120_PLC\x10x*<\n\rControlCommit\x12+\n\'CONTROL_COMMIT_NIDMM_VAL_CONTROL_COMMIT\x10\x00*\xbd\x01\n\x15\x46requencyVoltageRange\x12\'\n#FREQUENCY_VOLTAGE_RANGE_UNSPECIFIED\x10\x00\x12<\n/FREQUENCY_VOLTAGE_RANGE_NIDMM_VAL_AUTO_RANGE_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12=\n0FREQUENCY_VOLTAGE_RANGE_NIDMM_VAL_AUTO_RANGE_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01*?\n\x0bSampleCount\x12\x30\n,SAMPLE_COUNT_NIDMM_VAL_SAMPLE_COUNT_INFINITE\x10\x00*d\n\x0eSampleInterval\x12\x1f\n\x1bSAMPLE_INTERVAL_UNSPECIFIED\x10\x00\x12\x31\n$SAMPLE_INTERVAL_NIDMM_VAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*Z\n\tTimeLimit\x12\x1a\n\x16TIME_LIMIT_UNSPECIFIED\x10\x00\x12\x31\n$TIME_LIMIT_NIDMM_VAL_TIME_LIMIT_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*?\n\x0cTriggerCount\x12/\n+TRIGGER_COUNT_NIDMM_VAL_TRIG_COUNT_INFINITE\x10\x00*\x9a\x01\n\rTriggerDelays\x12\x1e\n\x1aTRIGGER_DELAYS_UNSPECIFIED\x10\x00\x12\x33\n&TRIGGER_DELAYS_NIDMM_VAL_AUTO_DELAY_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x34\n\'TRIGGER_DELAYS_NIDMM_VAL_AUTO_DELAY_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xd2.\n\x19NiDmmInt32AttributeValues\x12\x1b\n\x17NIDMM_INT32_UNSPECIFIED\x10\x00\x12\x37\n3NIDMM_INT32_ADC_CALIBRATION_VAL_ADC_CALIBRATION_OFF\x10\x00\x12\x41\n4NIDMM_INT32_ADC_CALIBRATION_VAL_ADC_CALIBRATION_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x36\n2NIDMM_INT32_ADC_CALIBRATION_VAL_ADC_CALIBRATION_ON\x10\x01\x12/\n+NIDMM_INT32_APERTURE_TIME_UNITS_VAL_SECONDS\x10\x00\x12\x39\n5NIDMM_INT32_APERTURE_TIME_UNITS_VAL_POWER_LINE_CYCLES\x10\x01\x12+\n\'NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_OFF\x10\x00\x12\x35\n(NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12*\n&NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_ON\x10\x01\x12,\n(NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_ONCE\x10\x02\x12\x39\n,NIDMM_INT32_BUFFER_SIZE_VAL_BUFFER_SIZE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12;\n7NIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_NONE\x10\x00\x12;\n7NIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_OPEN\x10\x01\x12<\n8NIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_SHORT\x10\x02\x12\x45\nANIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_OPEN_AND_SHORT\x10\x03\x12\x39\n5NIDMM_INT32_COMPENSATED_OHMS_VAL_OFFSET_COMP_OHMS_OFF\x10\x00\x12\x38\n4NIDMM_INT32_COMPENSATED_OHMS_VAL_OFFSET_COMP_OHMS_ON\x10\x01\x12\'\n#NIDMM_INT32_DC_BIAS_VAL_DC_BIAS_OFF\x10\x00\x12&\n\"NIDMM_INT32_DC_BIAS_VAL_DC_BIAS_ON\x10\x01\x12\x32\n.NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_NORMAL\x10\x00\x12\x39\n,NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x38\n4NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_SECOND_ORDER\x10\x01\x12\x36\n2NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_HIGH_ORDER\x10\x02\x12%\n!NIDMM_INT32_FUNCTION_VAL_DC_VOLTS\x10\x01\x12%\n!NIDMM_INT32_FUNCTION_VAL_AC_VOLTS\x10\x02\x12\'\n#NIDMM_INT32_FUNCTION_VAL_DC_CURRENT\x10\x03\x12\'\n#NIDMM_INT32_FUNCTION_VAL_AC_CURRENT\x10\x04\x12\'\n#NIDMM_INT32_FUNCTION_VAL_2_WIRE_RES\x10\x05\x12\'\n#NIDMM_INT32_FUNCTION_VAL_4_WIRE_RES\x10\x65\x12!\n\x1dNIDMM_INT32_FUNCTION_VAL_FREQ\x10h\x12#\n\x1fNIDMM_INT32_FUNCTION_VAL_PERIOD\x10i\x12(\n$NIDMM_INT32_FUNCTION_VAL_TEMPERATURE\x10l\x12\x31\n,NIDMM_INT32_FUNCTION_VAL_AC_VOLTS_DC_COUPLED\x10\xe9\x07\x12#\n\x1eNIDMM_INT32_FUNCTION_VAL_DIODE\x10\xea\x07\x12.\n)NIDMM_INT32_FUNCTION_VAL_WAVEFORM_VOLTAGE\x10\xeb\x07\x12.\n)NIDMM_INT32_FUNCTION_VAL_WAVEFORM_CURRENT\x10\xec\x07\x12)\n$NIDMM_INT32_FUNCTION_VAL_CAPACITANCE\x10\xed\x07\x12(\n#NIDMM_INT32_FUNCTION_VAL_INDUCTANCE\x10\xee\x07\x12\x31\n$NIDMM_INT32_LATENCY_VAL_LATENCY_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12:\n6NIDMM_INT32_LC_CALCULATION_MODEL_VAL_CALC_MODEL_SERIES\x10\x00\x12\x41\n4NIDMM_INT32_LC_CALCULATION_MODEL_VAL_CALC_MODEL_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12<\n8NIDMM_INT32_LC_CALCULATION_MODEL_VAL_CALC_MODEL_PARALLEL\x10\x01\x12;\n.NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_NONE\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x36\n2NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_EXTERNAL\x10\x02\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG0\x10o\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG1\x10p\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG2\x10q\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG3\x10r\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG4\x10s\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG5\x10t\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG6\x10u\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG7\x10v\x12\x38\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_LBR_TRIG0\x10\xeb\x07\x12:\n6NIDMM_INT32_MEASUREMENT_DESTINATION_SLOPE_VAL_POSITIVE\x10\x00\x12:\n6NIDMM_INT32_MEASUREMENT_DESTINATION_SLOPE_VAL_NEGATIVE\x10\x01\x12.\n*NIDMM_INT32_OPERATION_MODE_VAL_IVIDMM_MODE\x10\x00\x12\x30\n,NIDMM_INT32_OPERATION_MODE_VAL_WAVEFORM_MODE\x10\x01\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_CUSTOM\x10\x00\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3750\x10\x01\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3851\x10\x02\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3911\x10\x03\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3916\x10\x04\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3920\x10\x05\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3928\x10\x06\x12\x36\n2NIDMM_INT32_SAMPLE_COUNT_VAL_SAMPLE_COUNT_INFINITE\x10\x00\x12.\n*NIDMM_INT32_SAMPLE_TRIG_SLOPE_VAL_POSITIVE\x10\x00\x12.\n*NIDMM_INT32_SAMPLE_TRIG_SLOPE_VAL_NEGATIVE\x10\x01\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_IMMEDIATE\x10\x01\x12+\n\'NIDMM_INT32_SAMPLE_TRIGGER_VAL_EXTERNAL\x10\x02\x12\x30\n,NIDMM_INT32_SAMPLE_TRIGGER_VAL_SOFTWARE_TRIG\x10\x03\x12+\n\'NIDMM_INT32_SAMPLE_TRIGGER_VAL_INTERVAL\x10\n\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG0\x10o\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG1\x10p\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG2\x10q\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG3\x10r\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG4\x10s\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG5\x10t\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG6\x10u\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG7\x10v\x12,\n\'NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_STAR\x10\x83\x01\x12-\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_AUX_TRIG1\x10\xe9\x07\x12-\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_LBR_TRIG1\x10\xec\x07\x12:\n6NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_CUSTOM\x10\x00\x12\x39\n5NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_44004\x10\x01\x12\x39\n5NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_44006\x10\x02\x12\x39\n5NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_44007\x10\x03\x12L\nHNIDMM_INT32_THERMOCOUPLE_REFERENCE_JUNCTION_TYPE_VAL_TEMP_REF_JUNC_FIXED\x10\x02\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_B\x10\x01\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_E\x10\x04\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_J\x10\x06\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_K\x10\x07\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_N\x10\x08\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_R\x10\t\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_S\x10\n\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_T\x10\x0b\x12\x30\n,NIDMM_INT32_TRANSDUCER_TYPE_VAL_THERMOCOUPLE\x10\x01\x12.\n*NIDMM_INT32_TRANSDUCER_TYPE_VAL_THERMISTOR\x10\x02\x12.\n*NIDMM_INT32_TRANSDUCER_TYPE_VAL_2_WIRE_RTD\x10\x03\x12.\n*NIDMM_INT32_TRANSDUCER_TYPE_VAL_4_WIRE_RTD\x10\x04\x12\x35\n1NIDMM_INT32_TRIGGER_COUNT_VAL_TRIG_COUNT_INFINITE\x10\x00\x12*\n&NIDMM_INT32_TRIGGER_SLOPE_VAL_POSITIVE\x10\x00\x12*\n&NIDMM_INT32_TRIGGER_SLOPE_VAL_NEGATIVE\x10\x01\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_IMMEDIATE\x10\x01\x12+\n\'NIDMM_INT32_TRIGGER_SOURCE_VAL_EXTERNAL\x10\x02\x12\x30\n,NIDMM_INT32_TRIGGER_SOURCE_VAL_SOFTWARE_TRIG\x10\x03\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG0\x10o\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG1\x10p\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG2\x10q\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG3\x10r\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG4\x10s\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG5\x10t\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG6\x10u\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG7\x10v\x12,\n\'NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_STAR\x10\x83\x01\x12-\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_AUX_TRIG1\x10\xe9\x07\x12-\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_LBR_TRIG1\x10\xec\x07\x12:\n6NIDMM_INT32_WAVEFORM_COUPLING_VAL_WAVEFORM_COUPLING_AC\x10\x00\x12:\n6NIDMM_INT32_WAVEFORM_COUPLING_VAL_WAVEFORM_COUPLING_DC\x10\x01\x1a\x02\x10\x01*\xac\x08\n\x1aNiDmmReal64AttributeValues\x12\x1c\n\x18NIDMM_REAL64_UNSPECIFIED\x10\x00\x12>\n1NIDMM_REAL64_APERTURE_TIME_VAL_APERTURE_TIME_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12(\n$NIDMM_REAL64_APERTURE_TIME_VAL_1_PLC\x10\x01\x12(\n$NIDMM_REAL64_APERTURE_TIME_VAL_5_PLC\x10\x05\x12(\n$NIDMM_REAL64_APERTURE_TIME_VAL_6_PLC\x10\x06\x12)\n%NIDMM_REAL64_APERTURE_TIME_VAL_10_PLC\x10\n\x12)\n%NIDMM_REAL64_APERTURE_TIME_VAL_12_PLC\x10\x0c\x12*\n&NIDMM_REAL64_APERTURE_TIME_VAL_100_PLC\x10\x64\x12*\n&NIDMM_REAL64_APERTURE_TIME_VAL_120_PLC\x10x\x12\x43\n6NIDMM_REAL64_FREQUENCY_VOLTAGE_RANGE_VAL_AUTO_RANGE_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x44\n7NIDMM_REAL64_FREQUENCY_VOLTAGE_RANGE_VAL_AUTO_RANGE_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x34\n0NIDMM_REAL64_POWER_LINE_FREQUENCIES_VAL_50_HERTZ\x10\x32\x12\x34\n0NIDMM_REAL64_POWER_LINE_FREQUENCIES_VAL_60_HERTZ\x10<\x12\x31\n$NIDMM_REAL64_RANGE_VAL_AUTO_RANGE_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x32\n%NIDMM_REAL64_RANGE_VAL_AUTO_RANGE_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x33\n&NIDMM_REAL64_RANGE_VAL_AUTO_RANGE_ONCE\x10\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x38\n+NIDMM_REAL64_SAMPLE_INTERVAL_VAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12:\n-NIDMM_REAL64_SETTLE_TIME_VAL_SETTLE_TIME_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12:\n-NIDMM_REAL64_TRIGGER_DELAYS_VAL_AUTO_DELAY_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12;\n.NIDMM_REAL64_TRIGGER_DELAYS_VAL_AUTO_DELAY_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x1a\x02\x10\x01*\xac\x03\n NiDmmReal64AttributeValuesMapped\x12#\n\x1fNIDMM_REAL64_MAPPED_UNSPECIFIED\x10\x00\x12.\n*NIDMM_REAL64_CURRENT_SOURCE_VAL_1_MICROAMP\x10\x01\x12/\n+NIDMM_REAL64_CURRENT_SOURCE_VAL_10_MICROAMP\x10\x02\x12\x30\n,NIDMM_REAL64_CURRENT_SOURCE_VAL_100_MICROAMP\x10\x03\x12.\n*NIDMM_REAL64_CURRENT_SOURCE_VAL_1_MILLIAMP\x10\x04\x12/\n+NIDMM_REAL64_INPUT_RESISTANCE_VAL_1_MEGAOHM\x10\x05\x12\x30\n,NIDMM_REAL64_INPUT_RESISTANCE_VAL_10_MEGAOHM\x10\x06\x12=\n9NIDMM_REAL64_INPUT_RESISTANCE_VAL_GREATER_THAN_10_GIGAOHM\x10\x07\x32\xe6\x44\n\x05NiDmm\x12\x39\n\x04Init\x12\x17.nidmm_grpc.InitRequest\x1a\x18.nidmm_grpc.InitResponse\x12Z\n\x0fInitWithOptions\x12\".nidmm_grpc.InitWithOptionsRequest\x1a#.nidmm_grpc.InitWithOptionsResponse\x12<\n\x05\x43lose\x12\x18.nidmm_grpc.CloseRequest\x1a\x19.nidmm_grpc.CloseResponse\x12\x45\n\x08GetError\x12\x1b.nidmm_grpc.GetErrorRequest\x1a\x1c.nidmm_grpc.GetErrorResponse\x12Z\n\x0fGetErrorMessage\x12\".nidmm_grpc.GetErrorMessageRequest\x1a#.nidmm_grpc.GetErrorMessageResponse\x12K\n\nClearError\x12\x1d.nidmm_grpc.ClearErrorRequest\x1a\x1e.nidmm_grpc.ClearErrorResponse\x12<\n\x05Reset\x12\x18.nidmm_grpc.ResetRequest\x1a\x19.nidmm_grpc.ResetResponse\x12\x45\n\x08SelfTest\x12\x1b.nidmm_grpc.SelfTestRequest\x1a\x1c.nidmm_grpc.SelfTestResponse\x12\x42\n\x07SelfCal\x12\x1a.nidmm_grpc.SelfCalRequest\x1a\x1b.nidmm_grpc.SelfCalResponse\x12T\n\rRevisionQuery\x12 .nidmm_grpc.RevisionQueryRequest\x1a!.nidmm_grpc.RevisionQueryResponse\x12`\n\x11ResetWithDefaults\x12$.nidmm_grpc.ResetWithDefaultsRequest\x1a%.nidmm_grpc.ResetWithDefaultsResponse\x12\x42\n\x07\x44isable\x12\x1a.nidmm_grpc.DisableRequest\x1a\x1b.nidmm_grpc.DisableResponse\x12i\n\x14GetMeasurementPeriod\x12\'.nidmm_grpc.GetMeasurementPeriodRequest\x1a(.nidmm_grpc.GetMeasurementPeriodResponse\x12]\n\x10\x43onfigureTrigger\x12#.nidmm_grpc.ConfigureTriggerRequest\x1a$.nidmm_grpc.ConfigureTriggerResponse\x12\x39\n\x04Read\x12\x17.nidmm_grpc.ReadRequest\x1a\x18.nidmm_grpc.ReadResponse\x12<\n\x05\x46\x65tch\x12\x18.nidmm_grpc.FetchRequest\x1a\x19.nidmm_grpc.FetchResponse\x12<\n\x05\x41\x62ort\x12\x18.nidmm_grpc.AbortRequest\x1a\x19.nidmm_grpc.AbortResponse\x12\x45\n\x08Initiate\x12\x1b.nidmm_grpc.InitiateRequest\x1a\x1c.nidmm_grpc.InitiateResponse\x12N\n\x0bIsOverRange\x12\x1e.nidmm_grpc.IsOverRangeRequest\x1a\x1f.nidmm_grpc.IsOverRangeResponse\x12Q\n\x0cIsUnderRange\x12\x1f.nidmm_grpc.IsUnderRangeRequest\x1a .nidmm_grpc.IsUnderRangeResponse\x12i\n\x14\x43onfigureACBandwidth\x12\'.nidmm_grpc.ConfigureACBandwidthRequest\x1a(.nidmm_grpc.ConfigureACBandwidthResponse\x12\x87\x01\n\x1e\x43onfigureFrequencyVoltageRange\x12\x31.nidmm_grpc.ConfigureFrequencyVoltageRangeRequest\x1a\x32.nidmm_grpc.ConfigureFrequencyVoltageRangeResponse\x12x\n\x19\x43onfigureMeasCompleteDest\x12,.nidmm_grpc.ConfigureMeasCompleteDestRequest\x1a-.nidmm_grpc.ConfigureMeasCompleteDestResponse\x12\x66\n\x13\x43onfigureMultiPoint\x12&.nidmm_grpc.ConfigureMultiPointRequest\x1a\'.nidmm_grpc.ConfigureMultiPointResponse\x12W\n\x0eReadMultiPoint\x12!.nidmm_grpc.ReadMultiPointRequest\x1a\".nidmm_grpc.ReadMultiPointResponse\x12Z\n\x0f\x46\x65tchMultiPoint\x12\".nidmm_grpc.FetchMultiPointRequest\x1a#.nidmm_grpc.FetchMultiPointResponse\x12l\n\x15\x43onfigureTriggerSlope\x12(.nidmm_grpc.ConfigureTriggerSlopeRequest\x1a).nidmm_grpc.ConfigureTriggerSlopeResponse\x12\x66\n\x13SendSoftwareTrigger\x12&.nidmm_grpc.SendSoftwareTriggerRequest\x1a\'.nidmm_grpc.SendSoftwareTriggerResponse\x12\x66\n\x13GetApertureTimeInfo\x12&.nidmm_grpc.GetApertureTimeInfoRequest\x1a\'.nidmm_grpc.GetApertureTimeInfoResponse\x12`\n\x11GetAutoRangeValue\x12$.nidmm_grpc.GetAutoRangeValueRequest\x1a%.nidmm_grpc.GetAutoRangeValueResponse\x12l\n\x15\x43onfigureAutoZeroMode\x12(.nidmm_grpc.ConfigureAutoZeroModeRequest\x1a).nidmm_grpc.ConfigureAutoZeroModeResponse\x12~\n\x1b\x43onfigurePowerLineFrequency\x12..nidmm_grpc.ConfigurePowerLineFrequencyRequest\x1a/.nidmm_grpc.ConfigurePowerLineFrequencyResponse\x12{\n\x1a\x43onfigureMeasurementDigits\x12-.nidmm_grpc.ConfigureMeasurementDigitsRequest\x1a..nidmm_grpc.ConfigureMeasurementDigitsResponse\x12\x81\x01\n\x1c\x43onfigureMeasurementAbsolute\x12/.nidmm_grpc.ConfigureMeasurementAbsoluteRequest\x1a\x30.nidmm_grpc.ConfigureMeasurementAbsoluteResponse\x12{\n\x1a\x43onfigureMeasCompleteSlope\x12-.nidmm_grpc.ConfigureMeasCompleteSlopeRequest\x1a..nidmm_grpc.ConfigureMeasCompleteSlopeResponse\x12~\n\x1b\x43onfigureSampleTriggerSlope\x12..nidmm_grpc.ConfigureSampleTriggerSlopeRequest\x1a/.nidmm_grpc.ConfigureSampleTriggerSlopeResponse\x12K\n\nReadStatus\x12\x1d.nidmm_grpc.ReadStatusRequest\x1a\x1e.nidmm_grpc.ReadStatusResponse\x12\x42\n\x07\x43ontrol\x12\x1a.nidmm_grpc.ControlRequest\x1a\x1b.nidmm_grpc.ControlResponse\x12r\n\x17\x43onfigureADCCalibration\x12*.nidmm_grpc.ConfigureADCCalibrationRequest\x1a+.nidmm_grpc.ConfigureADCCalibrationResponse\x12r\n\x17\x43onfigureOffsetCompOhms\x12*.nidmm_grpc.ConfigureOffsetCompOhmsRequest\x1a+.nidmm_grpc.ConfigureOffsetCompOhmsResponse\x12o\n\x16\x43onfigureCurrentSource\x12).nidmm_grpc.ConfigureCurrentSourceRequest\x1a*.nidmm_grpc.ConfigureCurrentSourceResponse\x12o\n\x16\x43onfigureCableCompType\x12).nidmm_grpc.ConfigureCableCompTypeRequest\x1a*.nidmm_grpc.ConfigureCableCompTypeResponse\x12i\n\x14PerformOpenCableComp\x12\'.nidmm_grpc.PerformOpenCableCompRequest\x1a(.nidmm_grpc.PerformOpenCableCompResponse\x12l\n\x15PerformShortCableComp\x12(.nidmm_grpc.PerformShortCableCompRequest\x1a).nidmm_grpc.PerformShortCableCompResponse\x12\x81\x01\n\x1c\x43onfigureOpenCableCompValues\x12/.nidmm_grpc.ConfigureOpenCableCompValuesRequest\x1a\x30.nidmm_grpc.ConfigureOpenCableCompValuesResponse\x12\x84\x01\n\x1d\x43onfigureShortCableCompValues\x12\x30.nidmm_grpc.ConfigureShortCableCompValuesRequest\x1a\x31.nidmm_grpc.ConfigureShortCableCompValuesResponse\x12\x81\x01\n\x1c\x43onfigureWaveformAcquisition\x12/.nidmm_grpc.ConfigureWaveformAcquisitionRequest\x1a\x30.nidmm_grpc.ConfigureWaveformAcquisitionResponse\x12x\n\x19\x43onfigureWaveformCoupling\x12,.nidmm_grpc.ConfigureWaveformCouplingRequest\x1a-.nidmm_grpc.ConfigureWaveformCouplingResponse\x12T\n\rFetchWaveform\x12 .nidmm_grpc.FetchWaveformRequest\x1a!.nidmm_grpc.FetchWaveformResponse\x12Q\n\x0cReadWaveform\x12\x1f.nidmm_grpc.ReadWaveformRequest\x1a .nidmm_grpc.ReadWaveformResponse\x12\x66\n\x13GetAttributeViInt32\x12&.nidmm_grpc.GetAttributeViInt32Request\x1a\'.nidmm_grpc.GetAttributeViInt32Response\x12\x66\n\x13SetAttributeViInt32\x12&.nidmm_grpc.SetAttributeViInt32Request\x1a\'.nidmm_grpc.SetAttributeViInt32Response\x12l\n\x15\x43heckAttributeViInt32\x12(.nidmm_grpc.CheckAttributeViInt32Request\x1a).nidmm_grpc.CheckAttributeViInt32Response\x12i\n\x14GetAttributeViReal64\x12\'.nidmm_grpc.GetAttributeViReal64Request\x1a(.nidmm_grpc.GetAttributeViReal64Response\x12i\n\x14SetAttributeViReal64\x12\'.nidmm_grpc.SetAttributeViReal64Request\x1a(.nidmm_grpc.SetAttributeViReal64Response\x12o\n\x16\x43heckAttributeViReal64\x12).nidmm_grpc.CheckAttributeViReal64Request\x1a*.nidmm_grpc.CheckAttributeViReal64Response\x12i\n\x14GetAttributeViString\x12\'.nidmm_grpc.GetAttributeViStringRequest\x1a(.nidmm_grpc.GetAttributeViStringResponse\x12i\n\x14SetAttributeViString\x12\'.nidmm_grpc.SetAttributeViStringRequest\x1a(.nidmm_grpc.SetAttributeViStringResponse\x12o\n\x16\x43heckAttributeViString\x12).nidmm_grpc.CheckAttributeViStringRequest\x1a*.nidmm_grpc.CheckAttributeViStringResponse\x12l\n\x15GetAttributeViSession\x12(.nidmm_grpc.GetAttributeViSessionRequest\x1a).nidmm_grpc.GetAttributeViSessionResponse\x12l\n\x15SetAttributeViSession\x12(.nidmm_grpc.SetAttributeViSessionRequest\x1a).nidmm_grpc.SetAttributeViSessionResponse\x12r\n\x17\x43heckAttributeViSession\x12*.nidmm_grpc.CheckAttributeViSessionRequest\x1a+.nidmm_grpc.CheckAttributeViSessionResponse\x12l\n\x15GetAttributeViBoolean\x12(.nidmm_grpc.GetAttributeViBooleanRequest\x1a).nidmm_grpc.GetAttributeViBooleanResponse\x12l\n\x15SetAttributeViBoolean\x12(.nidmm_grpc.SetAttributeViBooleanRequest\x1a).nidmm_grpc.SetAttributeViBooleanResponse\x12r\n\x17\x43heckAttributeViBoolean\x12*.nidmm_grpc.CheckAttributeViBooleanRequest\x1a+.nidmm_grpc.CheckAttributeViBooleanResponse\x12\x8d\x01\n ImportAttributeConfigurationFile\x12\x33.nidmm_grpc.ImportAttributeConfigurationFileRequest\x1a\x34.nidmm_grpc.ImportAttributeConfigurationFileResponse\x12\x8d\x01\n ExportAttributeConfigurationFile\x12\x33.nidmm_grpc.ExportAttributeConfigurationFileRequest\x1a\x34.nidmm_grpc.ExportAttributeConfigurationFileResponse\x12\x93\x01\n\"ImportAttributeConfigurationBuffer\x12\x35.nidmm_grpc.ImportAttributeConfigurationBufferRequest\x1a\x36.nidmm_grpc.ImportAttributeConfigurationBufferResponse\x12\x93\x01\n\"ExportAttributeConfigurationBuffer\x12\x35.nidmm_grpc.ExportAttributeConfigurationBufferRequest\x1a\x36.nidmm_grpc.ExportAttributeConfigurationBufferResponse\x12l\n\x15ResetInterchangeCheck\x12(.nidmm_grpc.ResetInterchangeCheckRequest\x1a).nidmm_grpc.ResetInterchangeCheckResponse\x12u\n\x18\x43learInterchangeWarnings\x12+.nidmm_grpc.ClearInterchangeWarningsRequest\x1a,.nidmm_grpc.ClearInterchangeWarningsResponse\x12W\n\x0eGetChannelName\x12!.nidmm_grpc.GetChannelNameRequest\x1a\".nidmm_grpc.GetChannelNameResponse\x12\x81\x01\n\x1cGetExtCalRecommendedInterval\x12/.nidmm_grpc.GetExtCalRecommendedIntervalRequest\x1a\x30.nidmm_grpc.GetExtCalRecommendedIntervalResponse\x12\x66\n\x13GetSelfCalSupported\x12&.nidmm_grpc.GetSelfCalSupportedRequest\x1a\'.nidmm_grpc.GetSelfCalSupportedResponse\x12`\n\x11GetCalDateAndTime\x12$.nidmm_grpc.GetCalDateAndTimeRequest\x1a%.nidmm_grpc.GetCalDateAndTimeResponse\x12W\n\x0eGetLastCalTemp\x12!.nidmm_grpc.GetLastCalTempRequest\x1a\".nidmm_grpc.GetLastCalTempResponse\x12K\n\nGetDevTemp\x12\x1d.nidmm_grpc.GetDevTempRequest\x1a\x1e.nidmm_grpc.GetDevTempResponse\x12r\n\x17\x43onfigureTransducerType\x12*.nidmm_grpc.ConfigureTransducerTypeRequest\x1a+.nidmm_grpc.ConfigureTransducerTypeResponse\x12l\n\x15\x43onfigureThermocouple\x12(.nidmm_grpc.ConfigureThermocoupleRequest\x1a).nidmm_grpc.ConfigureThermocoupleResponse\x12x\n\x19\x43onfigureFixedRefJunction\x12,.nidmm_grpc.ConfigureFixedRefJunctionRequest\x1a-.nidmm_grpc.ConfigureFixedRefJunctionResponse\x12]\n\x10\x43onfigureRTDType\x12#.nidmm_grpc.ConfigureRTDTypeRequest\x1a$.nidmm_grpc.ConfigureRTDTypeResponse\x12\x63\n\x12\x43onfigureRTDCustom\x12%.nidmm_grpc.ConfigureRTDCustomRequest\x1a&.nidmm_grpc.ConfigureRTDCustomResponse\x12r\n\x17\x43onfigureThermistorType\x12*.nidmm_grpc.ConfigureThermistorTypeRequest\x1a+.nidmm_grpc.ConfigureThermistorTypeResponse\x12x\n\x19\x43onfigureThermistorCustom\x12,.nidmm_grpc.ConfigureThermistorCustomRequest\x1a-.nidmm_grpc.ConfigureThermistorCustomResponse\x12r\n\x17InvalidateAllAttributes\x12*.nidmm_grpc.InvalidateAllAttributesRequest\x1a+.nidmm_grpc.InvalidateAllAttributesResponseB9\n\x0f\x63om.ni.grpc.dmmB\x05NiDmmP\x01\xaa\x02\x1cNationalInstruments.Grpc.Dmmb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidmm_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\017com.ni.grpc.dmmB\005NiDmmP\001\252\002\034NationalInstruments.Grpc.Dmm' - _NIDMMINT32ATTRIBUTEVALUES._options = None - _NIDMMINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _NIDMMREAL64ATTRIBUTEVALUES._options = None - _NIDMMREAL64ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NIDMMATTRIBUTE']._serialized_start=17041 - _globals['_NIDMMATTRIBUTE']._serialized_end=20507 - _globals['_FUNCTION']._serialized_start=20510 - _globals['_FUNCTION']._serialized_end=21081 - _globals['_TRIGGERSOURCE']._serialized_start=21084 - _globals['_TRIGGERSOURCE']._serialized_end=21696 - _globals['_SAMPLETRIGGER']._serialized_start=21699 - _globals['_SAMPLETRIGGER']._serialized_end=22350 - _globals['_TRIGGERSLOPE']._serialized_start=22352 - _globals['_TRIGGERSLOPE']._serialized_end=22442 - _globals['_SAMPLETRIGSLOPE']._serialized_start=22444 - _globals['_SAMPLETRIGSLOPE']._serialized_end=22545 - _globals['_POWERLINEFREQUENCIES']._serialized_start=22548 - _globals['_POWERLINEFREQUENCIES']._serialized_end=22704 - _globals['_APERTURETIMEUNITS']._serialized_start=22706 - _globals['_APERTURETIMEUNITS']._serialized_end=22821 - _globals['_COMPENSATEDOHMS']._serialized_start=22823 - _globals['_COMPENSATEDOHMS']._serialized_end=22945 - _globals['_CALIBRATIONTYPE']._serialized_start=22947 - _globals['_CALIBRATIONTYPE']._serialized_end=23056 - _globals['_THERMOCOUPLEREFERENCEJUNCTIONTYPE']._serialized_start=23059 - _globals['_THERMOCOUPLEREFERENCEJUNCTIONTYPE']._serialized_end=23220 - _globals['_THERMOCOUPLETYPE']._serialized_start=23223 - _globals['_THERMOCOUPLETYPE']._serialized_end=23620 - _globals['_RTDTYPE']._serialized_start=23623 - _globals['_RTDTYPE']._serialized_end=23912 - _globals['_ACQUISITIONSTATUS']._serialized_start=23915 - _globals['_ACQUISITIONSTATUS']._serialized_end=24207 - _globals['_APERTURETIME']._serialized_start=24210 - _globals['_APERTURETIME']._serialized_end=24563 - _globals['_CONTROLCOMMIT']._serialized_start=24565 - _globals['_CONTROLCOMMIT']._serialized_end=24625 - _globals['_FREQUENCYVOLTAGERANGE']._serialized_start=24628 - _globals['_FREQUENCYVOLTAGERANGE']._serialized_end=24817 - _globals['_SAMPLECOUNT']._serialized_start=24819 - _globals['_SAMPLECOUNT']._serialized_end=24882 - _globals['_SAMPLEINTERVAL']._serialized_start=24884 - _globals['_SAMPLEINTERVAL']._serialized_end=24984 - _globals['_TIMELIMIT']._serialized_start=24986 - _globals['_TIMELIMIT']._serialized_end=25076 - _globals['_TRIGGERCOUNT']._serialized_start=25078 - _globals['_TRIGGERCOUNT']._serialized_end=25141 - _globals['_TRIGGERDELAYS']._serialized_start=25144 - _globals['_TRIGGERDELAYS']._serialized_end=25298 - _globals['_NIDMMINT32ATTRIBUTEVALUES']._serialized_start=25301 - _globals['_NIDMMINT32ATTRIBUTEVALUES']._serialized_end=31271 - _globals['_NIDMMREAL64ATTRIBUTEVALUES']._serialized_start=31274 - _globals['_NIDMMREAL64ATTRIBUTEVALUES']._serialized_end=32342 - _globals['_NIDMMREAL64ATTRIBUTEVALUESMAPPED']._serialized_start=32345 - _globals['_NIDMMREAL64ATTRIBUTEVALUESMAPPED']._serialized_end=32773 - _globals['_INITREQUEST']._serialized_start=43 - _globals['_INITREQUEST']._serialized_end=220 - _globals['_INITRESPONSE']._serialized_start=222 - _globals['_INITRESPONSE']._serialized_end=348 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=351 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=562 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=565 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=702 - _globals['_CLOSEREQUEST']._serialized_start=704 - _globals['_CLOSEREQUEST']._serialized_end=754 - _globals['_CLOSERESPONSE']._serialized_start=756 - _globals['_CLOSERESPONSE']._serialized_end=787 - _globals['_GETERRORREQUEST']._serialized_start=789 - _globals['_GETERRORREQUEST']._serialized_end=842 - _globals['_GETERRORRESPONSE']._serialized_start=844 - _globals['_GETERRORRESPONSE']._serialized_end=919 - _globals['_GETERRORMESSAGEREQUEST']._serialized_start=921 - _globals['_GETERRORMESSAGEREQUEST']._serialized_end=1001 - _globals['_GETERRORMESSAGERESPONSE']._serialized_start=1003 - _globals['_GETERRORMESSAGERESPONSE']._serialized_end=1067 - _globals['_CLEARERRORREQUEST']._serialized_start=1069 - _globals['_CLEARERRORREQUEST']._serialized_end=1124 - _globals['_CLEARERRORRESPONSE']._serialized_start=1126 - _globals['_CLEARERRORRESPONSE']._serialized_end=1162 - _globals['_RESETREQUEST']._serialized_start=1164 - _globals['_RESETREQUEST']._serialized_end=1214 - _globals['_RESETRESPONSE']._serialized_start=1216 - _globals['_RESETRESPONSE']._serialized_end=1247 - _globals['_SELFTESTREQUEST']._serialized_start=1249 - _globals['_SELFTESTREQUEST']._serialized_end=1302 - _globals['_SELFTESTRESPONSE']._serialized_start=1304 - _globals['_SELFTESTRESPONSE']._serialized_end=1391 - _globals['_SELFCALREQUEST']._serialized_start=1393 - _globals['_SELFCALREQUEST']._serialized_end=1445 - _globals['_SELFCALRESPONSE']._serialized_start=1447 - _globals['_SELFCALRESPONSE']._serialized_end=1480 - _globals['_REVISIONQUERYREQUEST']._serialized_start=1482 - _globals['_REVISIONQUERYREQUEST']._serialized_end=1540 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=1542 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=1644 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=1646 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=1708 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=1710 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=1753 - _globals['_DISABLEREQUEST']._serialized_start=1755 - _globals['_DISABLEREQUEST']._serialized_end=1807 - _globals['_DISABLERESPONSE']._serialized_start=1809 - _globals['_DISABLERESPONSE']._serialized_end=1842 - _globals['_GETMEASUREMENTPERIODREQUEST']._serialized_start=1844 - _globals['_GETMEASUREMENTPERIODREQUEST']._serialized_end=1909 - _globals['_GETMEASUREMENTPERIODRESPONSE']._serialized_start=1911 - _globals['_GETMEASUREMENTPERIODRESPONSE']._serialized_end=1973 - _globals['_CONFIGURETRIGGERREQUEST']._serialized_start=1976 - _globals['_CONFIGURETRIGGERREQUEST']._serialized_end=2246 - _globals['_CONFIGURETRIGGERRESPONSE']._serialized_start=2248 - _globals['_CONFIGURETRIGGERRESPONSE']._serialized_end=2290 - _globals['_READREQUEST']._serialized_start=2293 - _globals['_READREQUEST']._serialized_end=2438 - _globals['_READRESPONSE']._serialized_start=2440 - _globals['_READRESPONSE']._serialized_end=2487 - _globals['_FETCHREQUEST']._serialized_start=2490 - _globals['_FETCHREQUEST']._serialized_end=2636 - _globals['_FETCHRESPONSE']._serialized_start=2638 - _globals['_FETCHRESPONSE']._serialized_end=2686 - _globals['_ABORTREQUEST']._serialized_start=2688 - _globals['_ABORTREQUEST']._serialized_end=2738 - _globals['_ABORTRESPONSE']._serialized_start=2740 - _globals['_ABORTRESPONSE']._serialized_end=2771 - _globals['_INITIATEREQUEST']._serialized_start=2773 - _globals['_INITIATEREQUEST']._serialized_end=2826 - _globals['_INITIATERESPONSE']._serialized_start=2828 - _globals['_INITIATERESPONSE']._serialized_end=2862 - _globals['_ISOVERRANGEREQUEST']._serialized_start=2864 - _globals['_ISOVERRANGEREQUEST']._serialized_end=2947 - _globals['_ISOVERRANGERESPONSE']._serialized_start=2949 - _globals['_ISOVERRANGERESPONSE']._serialized_end=3009 - _globals['_ISUNDERRANGEREQUEST']._serialized_start=3011 - _globals['_ISUNDERRANGEREQUEST']._serialized_end=3095 - _globals['_ISUNDERRANGERESPONSE']._serialized_start=3097 - _globals['_ISUNDERRANGERESPONSE']._serialized_end=3159 - _globals['_CONFIGUREACBANDWIDTHREQUEST']._serialized_start=3162 - _globals['_CONFIGUREACBANDWIDTHREQUEST']._serialized_end=3293 - _globals['_CONFIGUREACBANDWIDTHRESPONSE']._serialized_start=3295 - _globals['_CONFIGUREACBANDWIDTHRESPONSE']._serialized_end=3341 - _globals['_CONFIGUREFREQUENCYVOLTAGERANGEREQUEST']._serialized_start=3344 - _globals['_CONFIGUREFREQUENCYVOLTAGERANGEREQUEST']._serialized_end=3530 - _globals['_CONFIGUREFREQUENCYVOLTAGERANGERESPONSE']._serialized_start=3532 - _globals['_CONFIGUREFREQUENCYVOLTAGERANGERESPONSE']._serialized_end=3588 - _globals['_CONFIGUREMEASCOMPLETEDESTREQUEST']._serialized_start=3590 - _globals['_CONFIGUREMEASCOMPLETEDESTREQUEST']._serialized_end=3695 - _globals['_CONFIGUREMEASCOMPLETEDESTRESPONSE']._serialized_start=3697 - _globals['_CONFIGUREMEASCOMPLETEDESTRESPONSE']._serialized_end=3748 - _globals['_CONFIGUREMULTIPOINTREQUEST']._serialized_start=3751 - _globals['_CONFIGUREMULTIPOINTREQUEST']._serialized_end=4231 - _globals['_CONFIGUREMULTIPOINTRESPONSE']._serialized_start=4233 - _globals['_CONFIGUREMULTIPOINTRESPONSE']._serialized_end=4278 - _globals['_READMULTIPOINTREQUEST']._serialized_start=4281 - _globals['_READMULTIPOINTREQUEST']._serialized_end=4456 - _globals['_READMULTIPOINTRESPONSE']._serialized_start=4458 - _globals['_READMULTIPOINTRESPONSE']._serialized_end=4554 - _globals['_FETCHMULTIPOINTREQUEST']._serialized_start=4557 - _globals['_FETCHMULTIPOINTREQUEST']._serialized_end=4733 - _globals['_FETCHMULTIPOINTRESPONSE']._serialized_start=4735 - _globals['_FETCHMULTIPOINTRESPONSE']._serialized_end=4832 - _globals['_CONFIGURETRIGGERSLOPEREQUEST']._serialized_start=4835 - _globals['_CONFIGURETRIGGERSLOPEREQUEST']._serialized_end=5003 - _globals['_CONFIGURETRIGGERSLOPERESPONSE']._serialized_start=5005 - _globals['_CONFIGURETRIGGERSLOPERESPONSE']._serialized_end=5052 - _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_start=5054 - _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_end=5118 - _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_start=5120 - _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_end=5165 - _globals['_GETAPERTURETIMEINFOREQUEST']._serialized_start=5167 - _globals['_GETAPERTURETIMEINFOREQUEST']._serialized_end=5231 - _globals['_GETAPERTURETIMEINFORESPONSE']._serialized_start=5234 - _globals['_GETAPERTURETIMEINFORESPONSE']._serialized_end=5448 - _globals['_GETAUTORANGEVALUEREQUEST']._serialized_start=5450 - _globals['_GETAUTORANGEVALUEREQUEST']._serialized_end=5512 - _globals['_GETAUTORANGEVALUERESPONSE']._serialized_start=5514 - _globals['_GETAUTORANGEVALUERESPONSE']._serialized_end=5579 - _globals['_CONFIGUREAUTOZEROMODEREQUEST']._serialized_start=5581 - _globals['_CONFIGUREAUTOZEROMODEREQUEST']._serialized_end=5671 - _globals['_CONFIGUREAUTOZEROMODERESPONSE']._serialized_start=5673 - _globals['_CONFIGUREAUTOZEROMODERESPONSE']._serialized_end=5720 - _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_start=5723 - _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_end=5935 - _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_start=5937 - _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_end=5990 - _globals['_CONFIGUREMEASUREMENTDIGITSREQUEST']._serialized_start=5993 - _globals['_CONFIGUREMEASUREMENTDIGITSREQUEST']._serialized_end=6225 - _globals['_CONFIGUREMEASUREMENTDIGITSRESPONSE']._serialized_start=6227 - _globals['_CONFIGUREMEASUREMENTDIGITSRESPONSE']._serialized_end=6279 - _globals['_CONFIGUREMEASUREMENTABSOLUTEREQUEST']._serialized_start=6282 - _globals['_CONFIGUREMEASUREMENTABSOLUTEREQUEST']._serialized_end=6518 - _globals['_CONFIGUREMEASUREMENTABSOLUTERESPONSE']._serialized_start=6520 - _globals['_CONFIGUREMEASUREMENTABSOLUTERESPONSE']._serialized_end=6574 - _globals['_CONFIGUREMEASCOMPLETESLOPEREQUEST']._serialized_start=6576 - _globals['_CONFIGUREMEASCOMPLETESLOPEREQUEST']._serialized_end=6676 - _globals['_CONFIGUREMEASCOMPLETESLOPERESPONSE']._serialized_start=6678 - _globals['_CONFIGUREMEASCOMPLETESLOPERESPONSE']._serialized_end=6730 - _globals['_CONFIGURESAMPLETRIGGERSLOPEREQUEST']._serialized_start=6733 - _globals['_CONFIGURESAMPLETRIGGERSLOPEREQUEST']._serialized_end=6931 - _globals['_CONFIGURESAMPLETRIGGERSLOPERESPONSE']._serialized_start=6933 - _globals['_CONFIGURESAMPLETRIGGERSLOPERESPONSE']._serialized_end=6986 - _globals['_READSTATUSREQUEST']._serialized_start=6988 - _globals['_READSTATUSREQUEST']._serialized_end=7043 - _globals['_READSTATUSRESPONSE']._serialized_start=7046 - _globals['_READSTATUSRESPONSE']._serialized_end=7202 - _globals['_CONTROLREQUEST']._serialized_start=7205 - _globals['_CONTROLREQUEST']._serialized_end=7363 - _globals['_CONTROLRESPONSE']._serialized_start=7365 - _globals['_CONTROLRESPONSE']._serialized_end=7398 - _globals['_CONFIGUREADCCALIBRATIONREQUEST']._serialized_start=7400 - _globals['_CONFIGUREADCCALIBRATIONREQUEST']._serialized_end=7493 - _globals['_CONFIGUREADCCALIBRATIONRESPONSE']._serialized_start=7495 - _globals['_CONFIGUREADCCALIBRATIONRESPONSE']._serialized_end=7544 - _globals['_CONFIGUREOFFSETCOMPOHMSREQUEST']._serialized_start=7547 - _globals['_CONFIGUREOFFSETCOMPOHMSREQUEST']._serialized_end=7729 - _globals['_CONFIGUREOFFSETCOMPOHMSRESPONSE']._serialized_start=7731 - _globals['_CONFIGUREOFFSETCOMPOHMSRESPONSE']._serialized_end=7780 - _globals['_CONFIGURECURRENTSOURCEREQUEST']._serialized_start=7782 - _globals['_CONFIGURECURRENTSOURCEREQUEST']._serialized_end=7873 - _globals['_CONFIGURECURRENTSOURCERESPONSE']._serialized_start=7875 - _globals['_CONFIGURECURRENTSOURCERESPONSE']._serialized_end=7923 - _globals['_CONFIGURECABLECOMPTYPEREQUEST']._serialized_start=7925 - _globals['_CONFIGURECABLECOMPTYPEREQUEST']._serialized_end=8017 - _globals['_CONFIGURECABLECOMPTYPERESPONSE']._serialized_start=8019 - _globals['_CONFIGURECABLECOMPTYPERESPONSE']._serialized_end=8067 - _globals['_PERFORMOPENCABLECOMPREQUEST']._serialized_start=8069 - _globals['_PERFORMOPENCABLECOMPREQUEST']._serialized_end=8134 - _globals['_PERFORMOPENCABLECOMPRESPONSE']._serialized_start=8136 - _globals['_PERFORMOPENCABLECOMPRESPONSE']._serialized_end=8224 - _globals['_PERFORMSHORTCABLECOMPREQUEST']._serialized_start=8226 - _globals['_PERFORMSHORTCABLECOMPREQUEST']._serialized_end=8292 - _globals['_PERFORMSHORTCABLECOMPRESPONSE']._serialized_start=8294 - _globals['_PERFORMSHORTCABLECOMPRESPONSE']._serialized_end=8380 - _globals['_CONFIGUREOPENCABLECOMPVALUESREQUEST']._serialized_start=8382 - _globals['_CONFIGUREOPENCABLECOMPVALUESREQUEST']._serialized_end=8497 - _globals['_CONFIGUREOPENCABLECOMPVALUESRESPONSE']._serialized_start=8499 - _globals['_CONFIGUREOPENCABLECOMPVALUESRESPONSE']._serialized_end=8553 - _globals['_CONFIGURESHORTCABLECOMPVALUESREQUEST']._serialized_start=8555 - _globals['_CONFIGURESHORTCABLECOMPVALUESREQUEST']._serialized_end=8668 - _globals['_CONFIGURESHORTCABLECOMPVALUESRESPONSE']._serialized_start=8670 - _globals['_CONFIGURESHORTCABLECOMPVALUESRESPONSE']._serialized_end=8725 - _globals['_CONFIGUREWAVEFORMACQUISITIONREQUEST']._serialized_start=8728 - _globals['_CONFIGUREWAVEFORMACQUISITIONREQUEST']._serialized_end=8974 - _globals['_CONFIGUREWAVEFORMACQUISITIONRESPONSE']._serialized_start=8976 - _globals['_CONFIGUREWAVEFORMACQUISITIONRESPONSE']._serialized_end=9030 - _globals['_CONFIGUREWAVEFORMCOUPLINGREQUEST']._serialized_start=9032 - _globals['_CONFIGUREWAVEFORMCOUPLINGREQUEST']._serialized_end=9129 - _globals['_CONFIGUREWAVEFORMCOUPLINGRESPONSE']._serialized_start=9131 - _globals['_CONFIGUREWAVEFORMCOUPLINGRESPONSE']._serialized_end=9182 - _globals['_FETCHWAVEFORMREQUEST']._serialized_start=9185 - _globals['_FETCHWAVEFORMREQUEST']._serialized_end=9359 - _globals['_FETCHWAVEFORMRESPONSE']._serialized_start=9361 - _globals['_FETCHWAVEFORMRESPONSE']._serialized_end=9457 - _globals['_READWAVEFORMREQUEST']._serialized_start=9460 - _globals['_READWAVEFORMREQUEST']._serialized_end=9633 - _globals['_READWAVEFORMRESPONSE']._serialized_start=9635 - _globals['_READWAVEFORMRESPONSE']._serialized_end=9730 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=9733 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=9869 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=9871 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=9941 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=9944 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=10201 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=10203 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=10248 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=10251 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=10510 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=10512 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=10559 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=10562 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=10699 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=10701 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=10772 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=10775 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=11114 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=11116 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=11162 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=11165 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=11506 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=11508 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=11556 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=11559 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=11696 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=11698 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=11769 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=11772 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=11938 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=11940 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=11986 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=11989 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=12157 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=12159 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=12207 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=12210 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=12348 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=12350 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=12446 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=12449 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=12636 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=12638 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=12685 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=12688 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=12877 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=12879 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=12928 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=12931 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=13069 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=13071 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=13143 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=13146 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=13309 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=13311 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=13358 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=13361 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=13526 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=13528 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=13577 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=13579 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=13675 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=13677 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=13735 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=13737 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=13833 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=13835 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=13893 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=13895 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=13997 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=13999 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=14059 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=14061 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=14140 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=14142 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=14225 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=14227 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=14293 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=14295 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=14342 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=14344 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=14413 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=14415 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=14465 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=14467 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=14541 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=14543 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=14607 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=14609 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=14682 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=14684 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=14754 - _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_start=14756 - _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_end=14820 - _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_start=14822 - _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_end=14895 - _globals['_GETCALDATEANDTIMEREQUEST']._serialized_start=14898 - _globals['_GETCALDATEANDTIMEREQUEST']._serialized_end=15050 - _globals['_GETCALDATEANDTIMERESPONSE']._serialized_start=15052 - _globals['_GETCALDATEANDTIMERESPONSE']._serialized_end=15167 - _globals['_GETLASTCALTEMPREQUEST']._serialized_start=15170 - _globals['_GETLASTCALTEMPREQUEST']._serialized_end=15319 - _globals['_GETLASTCALTEMPRESPONSE']._serialized_start=15321 - _globals['_GETLASTCALTEMPRESPONSE']._serialized_end=15382 - _globals['_GETDEVTEMPREQUEST']._serialized_start=15384 - _globals['_GETDEVTEMPREQUEST']._serialized_end=15456 - _globals['_GETDEVTEMPRESPONSE']._serialized_start=15458 - _globals['_GETDEVTEMPRESPONSE']._serialized_end=15515 - _globals['_CONFIGURETRANSDUCERTYPEREQUEST']._serialized_start=15517 - _globals['_CONFIGURETRANSDUCERTYPEREQUEST']._serialized_end=15610 - _globals['_CONFIGURETRANSDUCERTYPERESPONSE']._serialized_start=15612 - _globals['_CONFIGURETRANSDUCERTYPERESPONSE']._serialized_end=15661 - _globals['_CONFIGURETHERMOCOUPLEREQUEST']._serialized_start=15664 - _globals['_CONFIGURETHERMOCOUPLEREQUEST']._serialized_end=16001 - _globals['_CONFIGURETHERMOCOUPLERESPONSE']._serialized_start=16003 - _globals['_CONFIGURETHERMOCOUPLERESPONSE']._serialized_end=16050 - _globals['_CONFIGUREFIXEDREFJUNCTIONREQUEST']._serialized_start=16052 - _globals['_CONFIGUREFIXEDREFJUNCTIONREQUEST']._serialized_end=16156 - _globals['_CONFIGUREFIXEDREFJUNCTIONRESPONSE']._serialized_start=16158 - _globals['_CONFIGUREFIXEDREFJUNCTIONRESPONSE']._serialized_end=16209 - _globals['_CONFIGURERTDTYPEREQUEST']._serialized_start=16212 - _globals['_CONFIGURERTDTYPEREQUEST']._serialized_end=16379 - _globals['_CONFIGURERTDTYPERESPONSE']._serialized_start=16381 - _globals['_CONFIGURERTDTYPERESPONSE']._serialized_end=16423 - _globals['_CONFIGURERTDCUSTOMREQUEST']._serialized_start=16425 - _globals['_CONFIGURERTDCUSTOMREQUEST']._serialized_end=16533 - _globals['_CONFIGURERTDCUSTOMRESPONSE']._serialized_start=16535 - _globals['_CONFIGURERTDCUSTOMRESPONSE']._serialized_end=16579 - _globals['_CONFIGURETHERMISTORTYPEREQUEST']._serialized_start=16581 - _globals['_CONFIGURETHERMISTORTYPEREQUEST']._serialized_end=16674 - _globals['_CONFIGURETHERMISTORTYPERESPONSE']._serialized_start=16676 - _globals['_CONFIGURETHERMISTORTYPERESPONSE']._serialized_end=16725 - _globals['_CONFIGURETHERMISTORCUSTOMREQUEST']._serialized_start=16728 - _globals['_CONFIGURETHERMISTORCUSTOMREQUEST']._serialized_end=16864 - _globals['_CONFIGURETHERMISTORCUSTOMRESPONSE']._serialized_start=16866 - _globals['_CONFIGURETHERMISTORCUSTOMRESPONSE']._serialized_end=16917 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=16919 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=16987 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=16989 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=17038 - _globals['_NIDMM']._serialized_start=32776 - _globals['_NIDMM']._serialized_end=41582 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nidmm/nidmm/nidmm_pb2_grpc.py b/generated/nidmm/nidmm/nidmm_pb2_grpc.py deleted file mode 100644 index cbe353554c..0000000000 --- a/generated/nidmm/nidmm/nidmm_pb2_grpc.py +++ /dev/null @@ -1,2838 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nidmm_pb2 as nidmm__pb2 - - -class NiDmmStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Init = channel.unary_unary( - '/nidmm_grpc.NiDmm/Init', - request_serializer=nidmm__pb2.InitRequest.SerializeToString, - response_deserializer=nidmm__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/nidmm_grpc.NiDmm/InitWithOptions', - request_serializer=nidmm__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=nidmm__pb2.InitWithOptionsResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nidmm_grpc.NiDmm/Close', - request_serializer=nidmm__pb2.CloseRequest.SerializeToString, - response_deserializer=nidmm__pb2.CloseResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetError', - request_serializer=nidmm__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetErrorResponse.FromString, - ) - self.GetErrorMessage = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetErrorMessage', - request_serializer=nidmm__pb2.GetErrorMessageRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetErrorMessageResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/nidmm_grpc.NiDmm/ClearError', - request_serializer=nidmm__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=nidmm__pb2.ClearErrorResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/nidmm_grpc.NiDmm/Reset', - request_serializer=nidmm__pb2.ResetRequest.SerializeToString, - response_deserializer=nidmm__pb2.ResetResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/nidmm_grpc.NiDmm/SelfTest', - request_serializer=nidmm__pb2.SelfTestRequest.SerializeToString, - response_deserializer=nidmm__pb2.SelfTestResponse.FromString, - ) - self.SelfCal = channel.unary_unary( - '/nidmm_grpc.NiDmm/SelfCal', - request_serializer=nidmm__pb2.SelfCalRequest.SerializeToString, - response_deserializer=nidmm__pb2.SelfCalResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/nidmm_grpc.NiDmm/RevisionQuery', - request_serializer=nidmm__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=nidmm__pb2.RevisionQueryResponse.FromString, - ) - self.ResetWithDefaults = channel.unary_unary( - '/nidmm_grpc.NiDmm/ResetWithDefaults', - request_serializer=nidmm__pb2.ResetWithDefaultsRequest.SerializeToString, - response_deserializer=nidmm__pb2.ResetWithDefaultsResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/nidmm_grpc.NiDmm/Disable', - request_serializer=nidmm__pb2.DisableRequest.SerializeToString, - response_deserializer=nidmm__pb2.DisableResponse.FromString, - ) - self.GetMeasurementPeriod = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetMeasurementPeriod', - request_serializer=nidmm__pb2.GetMeasurementPeriodRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetMeasurementPeriodResponse.FromString, - ) - self.ConfigureTrigger = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureTrigger', - request_serializer=nidmm__pb2.ConfigureTriggerRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureTriggerResponse.FromString, - ) - self.Read = channel.unary_unary( - '/nidmm_grpc.NiDmm/Read', - request_serializer=nidmm__pb2.ReadRequest.SerializeToString, - response_deserializer=nidmm__pb2.ReadResponse.FromString, - ) - self.Fetch = channel.unary_unary( - '/nidmm_grpc.NiDmm/Fetch', - request_serializer=nidmm__pb2.FetchRequest.SerializeToString, - response_deserializer=nidmm__pb2.FetchResponse.FromString, - ) - self.Abort = channel.unary_unary( - '/nidmm_grpc.NiDmm/Abort', - request_serializer=nidmm__pb2.AbortRequest.SerializeToString, - response_deserializer=nidmm__pb2.AbortResponse.FromString, - ) - self.Initiate = channel.unary_unary( - '/nidmm_grpc.NiDmm/Initiate', - request_serializer=nidmm__pb2.InitiateRequest.SerializeToString, - response_deserializer=nidmm__pb2.InitiateResponse.FromString, - ) - self.IsOverRange = channel.unary_unary( - '/nidmm_grpc.NiDmm/IsOverRange', - request_serializer=nidmm__pb2.IsOverRangeRequest.SerializeToString, - response_deserializer=nidmm__pb2.IsOverRangeResponse.FromString, - ) - self.IsUnderRange = channel.unary_unary( - '/nidmm_grpc.NiDmm/IsUnderRange', - request_serializer=nidmm__pb2.IsUnderRangeRequest.SerializeToString, - response_deserializer=nidmm__pb2.IsUnderRangeResponse.FromString, - ) - self.ConfigureACBandwidth = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureACBandwidth', - request_serializer=nidmm__pb2.ConfigureACBandwidthRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureACBandwidthResponse.FromString, - ) - self.ConfigureFrequencyVoltageRange = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureFrequencyVoltageRange', - request_serializer=nidmm__pb2.ConfigureFrequencyVoltageRangeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureFrequencyVoltageRangeResponse.FromString, - ) - self.ConfigureMeasCompleteDest = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureMeasCompleteDest', - request_serializer=nidmm__pb2.ConfigureMeasCompleteDestRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureMeasCompleteDestResponse.FromString, - ) - self.ConfigureMultiPoint = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureMultiPoint', - request_serializer=nidmm__pb2.ConfigureMultiPointRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureMultiPointResponse.FromString, - ) - self.ReadMultiPoint = channel.unary_unary( - '/nidmm_grpc.NiDmm/ReadMultiPoint', - request_serializer=nidmm__pb2.ReadMultiPointRequest.SerializeToString, - response_deserializer=nidmm__pb2.ReadMultiPointResponse.FromString, - ) - self.FetchMultiPoint = channel.unary_unary( - '/nidmm_grpc.NiDmm/FetchMultiPoint', - request_serializer=nidmm__pb2.FetchMultiPointRequest.SerializeToString, - response_deserializer=nidmm__pb2.FetchMultiPointResponse.FromString, - ) - self.ConfigureTriggerSlope = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureTriggerSlope', - request_serializer=nidmm__pb2.ConfigureTriggerSlopeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureTriggerSlopeResponse.FromString, - ) - self.SendSoftwareTrigger = channel.unary_unary( - '/nidmm_grpc.NiDmm/SendSoftwareTrigger', - request_serializer=nidmm__pb2.SendSoftwareTriggerRequest.SerializeToString, - response_deserializer=nidmm__pb2.SendSoftwareTriggerResponse.FromString, - ) - self.GetApertureTimeInfo = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetApertureTimeInfo', - request_serializer=nidmm__pb2.GetApertureTimeInfoRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetApertureTimeInfoResponse.FromString, - ) - self.GetAutoRangeValue = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetAutoRangeValue', - request_serializer=nidmm__pb2.GetAutoRangeValueRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetAutoRangeValueResponse.FromString, - ) - self.ConfigureAutoZeroMode = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureAutoZeroMode', - request_serializer=nidmm__pb2.ConfigureAutoZeroModeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureAutoZeroModeResponse.FromString, - ) - self.ConfigurePowerLineFrequency = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigurePowerLineFrequency', - request_serializer=nidmm__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigurePowerLineFrequencyResponse.FromString, - ) - self.ConfigureMeasurementDigits = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureMeasurementDigits', - request_serializer=nidmm__pb2.ConfigureMeasurementDigitsRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureMeasurementDigitsResponse.FromString, - ) - self.ConfigureMeasurementAbsolute = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureMeasurementAbsolute', - request_serializer=nidmm__pb2.ConfigureMeasurementAbsoluteRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureMeasurementAbsoluteResponse.FromString, - ) - self.ConfigureMeasCompleteSlope = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureMeasCompleteSlope', - request_serializer=nidmm__pb2.ConfigureMeasCompleteSlopeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureMeasCompleteSlopeResponse.FromString, - ) - self.ConfigureSampleTriggerSlope = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureSampleTriggerSlope', - request_serializer=nidmm__pb2.ConfigureSampleTriggerSlopeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureSampleTriggerSlopeResponse.FromString, - ) - self.ReadStatus = channel.unary_unary( - '/nidmm_grpc.NiDmm/ReadStatus', - request_serializer=nidmm__pb2.ReadStatusRequest.SerializeToString, - response_deserializer=nidmm__pb2.ReadStatusResponse.FromString, - ) - self.Control = channel.unary_unary( - '/nidmm_grpc.NiDmm/Control', - request_serializer=nidmm__pb2.ControlRequest.SerializeToString, - response_deserializer=nidmm__pb2.ControlResponse.FromString, - ) - self.ConfigureADCCalibration = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureADCCalibration', - request_serializer=nidmm__pb2.ConfigureADCCalibrationRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureADCCalibrationResponse.FromString, - ) - self.ConfigureOffsetCompOhms = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureOffsetCompOhms', - request_serializer=nidmm__pb2.ConfigureOffsetCompOhmsRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureOffsetCompOhmsResponse.FromString, - ) - self.ConfigureCurrentSource = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureCurrentSource', - request_serializer=nidmm__pb2.ConfigureCurrentSourceRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureCurrentSourceResponse.FromString, - ) - self.ConfigureCableCompType = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureCableCompType', - request_serializer=nidmm__pb2.ConfigureCableCompTypeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureCableCompTypeResponse.FromString, - ) - self.PerformOpenCableComp = channel.unary_unary( - '/nidmm_grpc.NiDmm/PerformOpenCableComp', - request_serializer=nidmm__pb2.PerformOpenCableCompRequest.SerializeToString, - response_deserializer=nidmm__pb2.PerformOpenCableCompResponse.FromString, - ) - self.PerformShortCableComp = channel.unary_unary( - '/nidmm_grpc.NiDmm/PerformShortCableComp', - request_serializer=nidmm__pb2.PerformShortCableCompRequest.SerializeToString, - response_deserializer=nidmm__pb2.PerformShortCableCompResponse.FromString, - ) - self.ConfigureOpenCableCompValues = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureOpenCableCompValues', - request_serializer=nidmm__pb2.ConfigureOpenCableCompValuesRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureOpenCableCompValuesResponse.FromString, - ) - self.ConfigureShortCableCompValues = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureShortCableCompValues', - request_serializer=nidmm__pb2.ConfigureShortCableCompValuesRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureShortCableCompValuesResponse.FromString, - ) - self.ConfigureWaveformAcquisition = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureWaveformAcquisition', - request_serializer=nidmm__pb2.ConfigureWaveformAcquisitionRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureWaveformAcquisitionResponse.FromString, - ) - self.ConfigureWaveformCoupling = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureWaveformCoupling', - request_serializer=nidmm__pb2.ConfigureWaveformCouplingRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureWaveformCouplingResponse.FromString, - ) - self.FetchWaveform = channel.unary_unary( - '/nidmm_grpc.NiDmm/FetchWaveform', - request_serializer=nidmm__pb2.FetchWaveformRequest.SerializeToString, - response_deserializer=nidmm__pb2.FetchWaveformResponse.FromString, - ) - self.ReadWaveform = channel.unary_unary( - '/nidmm_grpc.NiDmm/ReadWaveform', - request_serializer=nidmm__pb2.ReadWaveformRequest.SerializeToString, - response_deserializer=nidmm__pb2.ReadWaveformResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetAttributeViInt32', - request_serializer=nidmm__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nidmm__pb2.GetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nidmm_grpc.NiDmm/SetAttributeViInt32', - request_serializer=nidmm__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nidmm__pb2.SetAttributeViInt32Response.FromString, - ) - self.CheckAttributeViInt32 = channel.unary_unary( - '/nidmm_grpc.NiDmm/CheckAttributeViInt32', - request_serializer=nidmm__pb2.CheckAttributeViInt32Request.SerializeToString, - response_deserializer=nidmm__pb2.CheckAttributeViInt32Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetAttributeViReal64', - request_serializer=nidmm__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nidmm__pb2.GetAttributeViReal64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nidmm_grpc.NiDmm/SetAttributeViReal64', - request_serializer=nidmm__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nidmm__pb2.SetAttributeViReal64Response.FromString, - ) - self.CheckAttributeViReal64 = channel.unary_unary( - '/nidmm_grpc.NiDmm/CheckAttributeViReal64', - request_serializer=nidmm__pb2.CheckAttributeViReal64Request.SerializeToString, - response_deserializer=nidmm__pb2.CheckAttributeViReal64Response.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetAttributeViString', - request_serializer=nidmm__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetAttributeViStringResponse.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nidmm_grpc.NiDmm/SetAttributeViString', - request_serializer=nidmm__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nidmm__pb2.SetAttributeViStringResponse.FromString, - ) - self.CheckAttributeViString = channel.unary_unary( - '/nidmm_grpc.NiDmm/CheckAttributeViString', - request_serializer=nidmm__pb2.CheckAttributeViStringRequest.SerializeToString, - response_deserializer=nidmm__pb2.CheckAttributeViStringResponse.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetAttributeViSession', - request_serializer=nidmm__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/nidmm_grpc.NiDmm/SetAttributeViSession', - request_serializer=nidmm__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=nidmm__pb2.SetAttributeViSessionResponse.FromString, - ) - self.CheckAttributeViSession = channel.unary_unary( - '/nidmm_grpc.NiDmm/CheckAttributeViSession', - request_serializer=nidmm__pb2.CheckAttributeViSessionRequest.SerializeToString, - response_deserializer=nidmm__pb2.CheckAttributeViSessionResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetAttributeViBoolean', - request_serializer=nidmm__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nidmm_grpc.NiDmm/SetAttributeViBoolean', - request_serializer=nidmm__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidmm__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.CheckAttributeViBoolean = channel.unary_unary( - '/nidmm_grpc.NiDmm/CheckAttributeViBoolean', - request_serializer=nidmm__pb2.CheckAttributeViBooleanRequest.SerializeToString, - response_deserializer=nidmm__pb2.CheckAttributeViBooleanResponse.FromString, - ) - self.ImportAttributeConfigurationFile = channel.unary_unary( - '/nidmm_grpc.NiDmm/ImportAttributeConfigurationFile', - request_serializer=nidmm__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=nidmm__pb2.ImportAttributeConfigurationFileResponse.FromString, - ) - self.ExportAttributeConfigurationFile = channel.unary_unary( - '/nidmm_grpc.NiDmm/ExportAttributeConfigurationFile', - request_serializer=nidmm__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=nidmm__pb2.ExportAttributeConfigurationFileResponse.FromString, - ) - self.ImportAttributeConfigurationBuffer = channel.unary_unary( - '/nidmm_grpc.NiDmm/ImportAttributeConfigurationBuffer', - request_serializer=nidmm__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nidmm__pb2.ImportAttributeConfigurationBufferResponse.FromString, - ) - self.ExportAttributeConfigurationBuffer = channel.unary_unary( - '/nidmm_grpc.NiDmm/ExportAttributeConfigurationBuffer', - request_serializer=nidmm__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nidmm__pb2.ExportAttributeConfigurationBufferResponse.FromString, - ) - self.ResetInterchangeCheck = channel.unary_unary( - '/nidmm_grpc.NiDmm/ResetInterchangeCheck', - request_serializer=nidmm__pb2.ResetInterchangeCheckRequest.SerializeToString, - response_deserializer=nidmm__pb2.ResetInterchangeCheckResponse.FromString, - ) - self.ClearInterchangeWarnings = channel.unary_unary( - '/nidmm_grpc.NiDmm/ClearInterchangeWarnings', - request_serializer=nidmm__pb2.ClearInterchangeWarningsRequest.SerializeToString, - response_deserializer=nidmm__pb2.ClearInterchangeWarningsResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetChannelName', - request_serializer=nidmm__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetChannelNameResponse.FromString, - ) - self.GetExtCalRecommendedInterval = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetExtCalRecommendedInterval', - request_serializer=nidmm__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetExtCalRecommendedIntervalResponse.FromString, - ) - self.GetSelfCalSupported = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetSelfCalSupported', - request_serializer=nidmm__pb2.GetSelfCalSupportedRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetSelfCalSupportedResponse.FromString, - ) - self.GetCalDateAndTime = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetCalDateAndTime', - request_serializer=nidmm__pb2.GetCalDateAndTimeRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetCalDateAndTimeResponse.FromString, - ) - self.GetLastCalTemp = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetLastCalTemp', - request_serializer=nidmm__pb2.GetLastCalTempRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetLastCalTempResponse.FromString, - ) - self.GetDevTemp = channel.unary_unary( - '/nidmm_grpc.NiDmm/GetDevTemp', - request_serializer=nidmm__pb2.GetDevTempRequest.SerializeToString, - response_deserializer=nidmm__pb2.GetDevTempResponse.FromString, - ) - self.ConfigureTransducerType = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureTransducerType', - request_serializer=nidmm__pb2.ConfigureTransducerTypeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureTransducerTypeResponse.FromString, - ) - self.ConfigureThermocouple = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureThermocouple', - request_serializer=nidmm__pb2.ConfigureThermocoupleRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureThermocoupleResponse.FromString, - ) - self.ConfigureFixedRefJunction = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureFixedRefJunction', - request_serializer=nidmm__pb2.ConfigureFixedRefJunctionRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureFixedRefJunctionResponse.FromString, - ) - self.ConfigureRTDType = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureRTDType', - request_serializer=nidmm__pb2.ConfigureRTDTypeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureRTDTypeResponse.FromString, - ) - self.ConfigureRTDCustom = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureRTDCustom', - request_serializer=nidmm__pb2.ConfigureRTDCustomRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureRTDCustomResponse.FromString, - ) - self.ConfigureThermistorType = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureThermistorType', - request_serializer=nidmm__pb2.ConfigureThermistorTypeRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureThermistorTypeResponse.FromString, - ) - self.ConfigureThermistorCustom = channel.unary_unary( - '/nidmm_grpc.NiDmm/ConfigureThermistorCustom', - request_serializer=nidmm__pb2.ConfigureThermistorCustomRequest.SerializeToString, - response_deserializer=nidmm__pb2.ConfigureThermistorCustomResponse.FromString, - ) - self.InvalidateAllAttributes = channel.unary_unary( - '/nidmm_grpc.NiDmm/InvalidateAllAttributes', - request_serializer=nidmm__pb2.InvalidateAllAttributesRequest.SerializeToString, - response_deserializer=nidmm__pb2.InvalidateAllAttributesResponse.FromString, - ) - - -class NiDmmServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMeasurementPeriod(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Read(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Fetch(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Initiate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsOverRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsUnderRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureACBandwidth(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureFrequencyVoltageRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureMeasCompleteDest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureMultiPoint(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadMultiPoint(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchMultiPoint(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerSlope(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetApertureTimeInfo(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAutoRangeValue(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureAutoZeroMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePowerLineFrequency(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureMeasurementDigits(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureMeasurementAbsolute(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureMeasCompleteSlope(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSampleTriggerSlope(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadStatus(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Control(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureADCCalibration(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOffsetCompOhms(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCurrentSource(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCableCompType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformOpenCableComp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformShortCableComp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOpenCableCompValues(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureShortCableCompValues(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureWaveformAcquisition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureWaveformCoupling(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetInterchangeCheck(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearInterchangeWarnings(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalRecommendedInterval(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalSupported(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCalDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLastCalTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDevTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTransducerType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureThermocouple(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureFixedRefJunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureRTDType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureRTDCustom(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureThermistorType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureThermistorCustom(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InvalidateAllAttributes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiDmmServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=nidmm__pb2.InitRequest.FromString, - response_serializer=nidmm__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=nidmm__pb2.InitWithOptionsRequest.FromString, - response_serializer=nidmm__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nidmm__pb2.CloseRequest.FromString, - response_serializer=nidmm__pb2.CloseResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nidmm__pb2.GetErrorRequest.FromString, - response_serializer=nidmm__pb2.GetErrorResponse.SerializeToString, - ), - 'GetErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.GetErrorMessage, - request_deserializer=nidmm__pb2.GetErrorMessageRequest.FromString, - response_serializer=nidmm__pb2.GetErrorMessageResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=nidmm__pb2.ClearErrorRequest.FromString, - response_serializer=nidmm__pb2.ClearErrorResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=nidmm__pb2.ResetRequest.FromString, - response_serializer=nidmm__pb2.ResetResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=nidmm__pb2.SelfTestRequest.FromString, - response_serializer=nidmm__pb2.SelfTestResponse.SerializeToString, - ), - 'SelfCal': grpc.unary_unary_rpc_method_handler( - servicer.SelfCal, - request_deserializer=nidmm__pb2.SelfCalRequest.FromString, - response_serializer=nidmm__pb2.SelfCalResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=nidmm__pb2.RevisionQueryRequest.FromString, - response_serializer=nidmm__pb2.RevisionQueryResponse.SerializeToString, - ), - 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithDefaults, - request_deserializer=nidmm__pb2.ResetWithDefaultsRequest.FromString, - response_serializer=nidmm__pb2.ResetWithDefaultsResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=nidmm__pb2.DisableRequest.FromString, - response_serializer=nidmm__pb2.DisableResponse.SerializeToString, - ), - 'GetMeasurementPeriod': grpc.unary_unary_rpc_method_handler( - servicer.GetMeasurementPeriod, - request_deserializer=nidmm__pb2.GetMeasurementPeriodRequest.FromString, - response_serializer=nidmm__pb2.GetMeasurementPeriodResponse.SerializeToString, - ), - 'ConfigureTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTrigger, - request_deserializer=nidmm__pb2.ConfigureTriggerRequest.FromString, - response_serializer=nidmm__pb2.ConfigureTriggerResponse.SerializeToString, - ), - 'Read': grpc.unary_unary_rpc_method_handler( - servicer.Read, - request_deserializer=nidmm__pb2.ReadRequest.FromString, - response_serializer=nidmm__pb2.ReadResponse.SerializeToString, - ), - 'Fetch': grpc.unary_unary_rpc_method_handler( - servicer.Fetch, - request_deserializer=nidmm__pb2.FetchRequest.FromString, - response_serializer=nidmm__pb2.FetchResponse.SerializeToString, - ), - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=nidmm__pb2.AbortRequest.FromString, - response_serializer=nidmm__pb2.AbortResponse.SerializeToString, - ), - 'Initiate': grpc.unary_unary_rpc_method_handler( - servicer.Initiate, - request_deserializer=nidmm__pb2.InitiateRequest.FromString, - response_serializer=nidmm__pb2.InitiateResponse.SerializeToString, - ), - 'IsOverRange': grpc.unary_unary_rpc_method_handler( - servicer.IsOverRange, - request_deserializer=nidmm__pb2.IsOverRangeRequest.FromString, - response_serializer=nidmm__pb2.IsOverRangeResponse.SerializeToString, - ), - 'IsUnderRange': grpc.unary_unary_rpc_method_handler( - servicer.IsUnderRange, - request_deserializer=nidmm__pb2.IsUnderRangeRequest.FromString, - response_serializer=nidmm__pb2.IsUnderRangeResponse.SerializeToString, - ), - 'ConfigureACBandwidth': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureACBandwidth, - request_deserializer=nidmm__pb2.ConfigureACBandwidthRequest.FromString, - response_serializer=nidmm__pb2.ConfigureACBandwidthResponse.SerializeToString, - ), - 'ConfigureFrequencyVoltageRange': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureFrequencyVoltageRange, - request_deserializer=nidmm__pb2.ConfigureFrequencyVoltageRangeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureFrequencyVoltageRangeResponse.SerializeToString, - ), - 'ConfigureMeasCompleteDest': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureMeasCompleteDest, - request_deserializer=nidmm__pb2.ConfigureMeasCompleteDestRequest.FromString, - response_serializer=nidmm__pb2.ConfigureMeasCompleteDestResponse.SerializeToString, - ), - 'ConfigureMultiPoint': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureMultiPoint, - request_deserializer=nidmm__pb2.ConfigureMultiPointRequest.FromString, - response_serializer=nidmm__pb2.ConfigureMultiPointResponse.SerializeToString, - ), - 'ReadMultiPoint': grpc.unary_unary_rpc_method_handler( - servicer.ReadMultiPoint, - request_deserializer=nidmm__pb2.ReadMultiPointRequest.FromString, - response_serializer=nidmm__pb2.ReadMultiPointResponse.SerializeToString, - ), - 'FetchMultiPoint': grpc.unary_unary_rpc_method_handler( - servicer.FetchMultiPoint, - request_deserializer=nidmm__pb2.FetchMultiPointRequest.FromString, - response_serializer=nidmm__pb2.FetchMultiPointResponse.SerializeToString, - ), - 'ConfigureTriggerSlope': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerSlope, - request_deserializer=nidmm__pb2.ConfigureTriggerSlopeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureTriggerSlopeResponse.SerializeToString, - ), - 'SendSoftwareTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareTrigger, - request_deserializer=nidmm__pb2.SendSoftwareTriggerRequest.FromString, - response_serializer=nidmm__pb2.SendSoftwareTriggerResponse.SerializeToString, - ), - 'GetApertureTimeInfo': grpc.unary_unary_rpc_method_handler( - servicer.GetApertureTimeInfo, - request_deserializer=nidmm__pb2.GetApertureTimeInfoRequest.FromString, - response_serializer=nidmm__pb2.GetApertureTimeInfoResponse.SerializeToString, - ), - 'GetAutoRangeValue': grpc.unary_unary_rpc_method_handler( - servicer.GetAutoRangeValue, - request_deserializer=nidmm__pb2.GetAutoRangeValueRequest.FromString, - response_serializer=nidmm__pb2.GetAutoRangeValueResponse.SerializeToString, - ), - 'ConfigureAutoZeroMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureAutoZeroMode, - request_deserializer=nidmm__pb2.ConfigureAutoZeroModeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureAutoZeroModeResponse.SerializeToString, - ), - 'ConfigurePowerLineFrequency': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePowerLineFrequency, - request_deserializer=nidmm__pb2.ConfigurePowerLineFrequencyRequest.FromString, - response_serializer=nidmm__pb2.ConfigurePowerLineFrequencyResponse.SerializeToString, - ), - 'ConfigureMeasurementDigits': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureMeasurementDigits, - request_deserializer=nidmm__pb2.ConfigureMeasurementDigitsRequest.FromString, - response_serializer=nidmm__pb2.ConfigureMeasurementDigitsResponse.SerializeToString, - ), - 'ConfigureMeasurementAbsolute': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureMeasurementAbsolute, - request_deserializer=nidmm__pb2.ConfigureMeasurementAbsoluteRequest.FromString, - response_serializer=nidmm__pb2.ConfigureMeasurementAbsoluteResponse.SerializeToString, - ), - 'ConfigureMeasCompleteSlope': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureMeasCompleteSlope, - request_deserializer=nidmm__pb2.ConfigureMeasCompleteSlopeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureMeasCompleteSlopeResponse.SerializeToString, - ), - 'ConfigureSampleTriggerSlope': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSampleTriggerSlope, - request_deserializer=nidmm__pb2.ConfigureSampleTriggerSlopeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureSampleTriggerSlopeResponse.SerializeToString, - ), - 'ReadStatus': grpc.unary_unary_rpc_method_handler( - servicer.ReadStatus, - request_deserializer=nidmm__pb2.ReadStatusRequest.FromString, - response_serializer=nidmm__pb2.ReadStatusResponse.SerializeToString, - ), - 'Control': grpc.unary_unary_rpc_method_handler( - servicer.Control, - request_deserializer=nidmm__pb2.ControlRequest.FromString, - response_serializer=nidmm__pb2.ControlResponse.SerializeToString, - ), - 'ConfigureADCCalibration': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureADCCalibration, - request_deserializer=nidmm__pb2.ConfigureADCCalibrationRequest.FromString, - response_serializer=nidmm__pb2.ConfigureADCCalibrationResponse.SerializeToString, - ), - 'ConfigureOffsetCompOhms': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOffsetCompOhms, - request_deserializer=nidmm__pb2.ConfigureOffsetCompOhmsRequest.FromString, - response_serializer=nidmm__pb2.ConfigureOffsetCompOhmsResponse.SerializeToString, - ), - 'ConfigureCurrentSource': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCurrentSource, - request_deserializer=nidmm__pb2.ConfigureCurrentSourceRequest.FromString, - response_serializer=nidmm__pb2.ConfigureCurrentSourceResponse.SerializeToString, - ), - 'ConfigureCableCompType': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCableCompType, - request_deserializer=nidmm__pb2.ConfigureCableCompTypeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureCableCompTypeResponse.SerializeToString, - ), - 'PerformOpenCableComp': grpc.unary_unary_rpc_method_handler( - servicer.PerformOpenCableComp, - request_deserializer=nidmm__pb2.PerformOpenCableCompRequest.FromString, - response_serializer=nidmm__pb2.PerformOpenCableCompResponse.SerializeToString, - ), - 'PerformShortCableComp': grpc.unary_unary_rpc_method_handler( - servicer.PerformShortCableComp, - request_deserializer=nidmm__pb2.PerformShortCableCompRequest.FromString, - response_serializer=nidmm__pb2.PerformShortCableCompResponse.SerializeToString, - ), - 'ConfigureOpenCableCompValues': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOpenCableCompValues, - request_deserializer=nidmm__pb2.ConfigureOpenCableCompValuesRequest.FromString, - response_serializer=nidmm__pb2.ConfigureOpenCableCompValuesResponse.SerializeToString, - ), - 'ConfigureShortCableCompValues': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureShortCableCompValues, - request_deserializer=nidmm__pb2.ConfigureShortCableCompValuesRequest.FromString, - response_serializer=nidmm__pb2.ConfigureShortCableCompValuesResponse.SerializeToString, - ), - 'ConfigureWaveformAcquisition': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureWaveformAcquisition, - request_deserializer=nidmm__pb2.ConfigureWaveformAcquisitionRequest.FromString, - response_serializer=nidmm__pb2.ConfigureWaveformAcquisitionResponse.SerializeToString, - ), - 'ConfigureWaveformCoupling': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureWaveformCoupling, - request_deserializer=nidmm__pb2.ConfigureWaveformCouplingRequest.FromString, - response_serializer=nidmm__pb2.ConfigureWaveformCouplingResponse.SerializeToString, - ), - 'FetchWaveform': grpc.unary_unary_rpc_method_handler( - servicer.FetchWaveform, - request_deserializer=nidmm__pb2.FetchWaveformRequest.FromString, - response_serializer=nidmm__pb2.FetchWaveformResponse.SerializeToString, - ), - 'ReadWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ReadWaveform, - request_deserializer=nidmm__pb2.ReadWaveformRequest.FromString, - response_serializer=nidmm__pb2.ReadWaveformResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nidmm__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nidmm__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nidmm__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nidmm__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt32, - request_deserializer=nidmm__pb2.CheckAttributeViInt32Request.FromString, - response_serializer=nidmm__pb2.CheckAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nidmm__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nidmm__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nidmm__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nidmm__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViReal64, - request_deserializer=nidmm__pb2.CheckAttributeViReal64Request.FromString, - response_serializer=nidmm__pb2.CheckAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nidmm__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nidmm__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nidmm__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nidmm__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViString, - request_deserializer=nidmm__pb2.CheckAttributeViStringRequest.FromString, - response_serializer=nidmm__pb2.CheckAttributeViStringResponse.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nidmm__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nidmm__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=nidmm__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=nidmm__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViSession, - request_deserializer=nidmm__pb2.CheckAttributeViSessionRequest.FromString, - response_serializer=nidmm__pb2.CheckAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nidmm__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nidmm__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nidmm__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nidmm__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViBoolean, - request_deserializer=nidmm__pb2.CheckAttributeViBooleanRequest.FromString, - response_serializer=nidmm__pb2.CheckAttributeViBooleanResponse.SerializeToString, - ), - 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationFile, - request_deserializer=nidmm__pb2.ImportAttributeConfigurationFileRequest.FromString, - response_serializer=nidmm__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationFile, - request_deserializer=nidmm__pb2.ExportAttributeConfigurationFileRequest.FromString, - response_serializer=nidmm__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationBuffer, - request_deserializer=nidmm__pb2.ImportAttributeConfigurationBufferRequest.FromString, - response_serializer=nidmm__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationBuffer, - request_deserializer=nidmm__pb2.ExportAttributeConfigurationBufferRequest.FromString, - response_serializer=nidmm__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( - servicer.ResetInterchangeCheck, - request_deserializer=nidmm__pb2.ResetInterchangeCheckRequest.FromString, - response_serializer=nidmm__pb2.ResetInterchangeCheckResponse.SerializeToString, - ), - 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( - servicer.ClearInterchangeWarnings, - request_deserializer=nidmm__pb2.ClearInterchangeWarningsRequest.FromString, - response_serializer=nidmm__pb2.ClearInterchangeWarningsResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=nidmm__pb2.GetChannelNameRequest.FromString, - response_serializer=nidmm__pb2.GetChannelNameResponse.SerializeToString, - ), - 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalRecommendedInterval, - request_deserializer=nidmm__pb2.GetExtCalRecommendedIntervalRequest.FromString, - response_serializer=nidmm__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, - ), - 'GetSelfCalSupported': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalSupported, - request_deserializer=nidmm__pb2.GetSelfCalSupportedRequest.FromString, - response_serializer=nidmm__pb2.GetSelfCalSupportedResponse.SerializeToString, - ), - 'GetCalDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetCalDateAndTime, - request_deserializer=nidmm__pb2.GetCalDateAndTimeRequest.FromString, - response_serializer=nidmm__pb2.GetCalDateAndTimeResponse.SerializeToString, - ), - 'GetLastCalTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetLastCalTemp, - request_deserializer=nidmm__pb2.GetLastCalTempRequest.FromString, - response_serializer=nidmm__pb2.GetLastCalTempResponse.SerializeToString, - ), - 'GetDevTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetDevTemp, - request_deserializer=nidmm__pb2.GetDevTempRequest.FromString, - response_serializer=nidmm__pb2.GetDevTempResponse.SerializeToString, - ), - 'ConfigureTransducerType': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTransducerType, - request_deserializer=nidmm__pb2.ConfigureTransducerTypeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureTransducerTypeResponse.SerializeToString, - ), - 'ConfigureThermocouple': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureThermocouple, - request_deserializer=nidmm__pb2.ConfigureThermocoupleRequest.FromString, - response_serializer=nidmm__pb2.ConfigureThermocoupleResponse.SerializeToString, - ), - 'ConfigureFixedRefJunction': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureFixedRefJunction, - request_deserializer=nidmm__pb2.ConfigureFixedRefJunctionRequest.FromString, - response_serializer=nidmm__pb2.ConfigureFixedRefJunctionResponse.SerializeToString, - ), - 'ConfigureRTDType': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureRTDType, - request_deserializer=nidmm__pb2.ConfigureRTDTypeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureRTDTypeResponse.SerializeToString, - ), - 'ConfigureRTDCustom': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureRTDCustom, - request_deserializer=nidmm__pb2.ConfigureRTDCustomRequest.FromString, - response_serializer=nidmm__pb2.ConfigureRTDCustomResponse.SerializeToString, - ), - 'ConfigureThermistorType': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureThermistorType, - request_deserializer=nidmm__pb2.ConfigureThermistorTypeRequest.FromString, - response_serializer=nidmm__pb2.ConfigureThermistorTypeResponse.SerializeToString, - ), - 'ConfigureThermistorCustom': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureThermistorCustom, - request_deserializer=nidmm__pb2.ConfigureThermistorCustomRequest.FromString, - response_serializer=nidmm__pb2.ConfigureThermistorCustomResponse.SerializeToString, - ), - 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( - servicer.InvalidateAllAttributes, - request_deserializer=nidmm__pb2.InvalidateAllAttributesRequest.FromString, - response_serializer=nidmm__pb2.InvalidateAllAttributesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nidmm_grpc.NiDmm', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiDmm(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Init', - nidmm__pb2.InitRequest.SerializeToString, - nidmm__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/InitWithOptions', - nidmm__pb2.InitWithOptionsRequest.SerializeToString, - nidmm__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Close', - nidmm__pb2.CloseRequest.SerializeToString, - nidmm__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetError', - nidmm__pb2.GetErrorRequest.SerializeToString, - nidmm__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetErrorMessage', - nidmm__pb2.GetErrorMessageRequest.SerializeToString, - nidmm__pb2.GetErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ClearError', - nidmm__pb2.ClearErrorRequest.SerializeToString, - nidmm__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Reset', - nidmm__pb2.ResetRequest.SerializeToString, - nidmm__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SelfTest', - nidmm__pb2.SelfTestRequest.SerializeToString, - nidmm__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SelfCal', - nidmm__pb2.SelfCalRequest.SerializeToString, - nidmm__pb2.SelfCalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/RevisionQuery', - nidmm__pb2.RevisionQueryRequest.SerializeToString, - nidmm__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ResetWithDefaults', - nidmm__pb2.ResetWithDefaultsRequest.SerializeToString, - nidmm__pb2.ResetWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Disable', - nidmm__pb2.DisableRequest.SerializeToString, - nidmm__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMeasurementPeriod(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetMeasurementPeriod', - nidmm__pb2.GetMeasurementPeriodRequest.SerializeToString, - nidmm__pb2.GetMeasurementPeriodResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureTrigger', - nidmm__pb2.ConfigureTriggerRequest.SerializeToString, - nidmm__pb2.ConfigureTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Read(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Read', - nidmm__pb2.ReadRequest.SerializeToString, - nidmm__pb2.ReadResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Fetch(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Fetch', - nidmm__pb2.FetchRequest.SerializeToString, - nidmm__pb2.FetchResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Abort', - nidmm__pb2.AbortRequest.SerializeToString, - nidmm__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Initiate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Initiate', - nidmm__pb2.InitiateRequest.SerializeToString, - nidmm__pb2.InitiateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsOverRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/IsOverRange', - nidmm__pb2.IsOverRangeRequest.SerializeToString, - nidmm__pb2.IsOverRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsUnderRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/IsUnderRange', - nidmm__pb2.IsUnderRangeRequest.SerializeToString, - nidmm__pb2.IsUnderRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureACBandwidth(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureACBandwidth', - nidmm__pb2.ConfigureACBandwidthRequest.SerializeToString, - nidmm__pb2.ConfigureACBandwidthResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureFrequencyVoltageRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureFrequencyVoltageRange', - nidmm__pb2.ConfigureFrequencyVoltageRangeRequest.SerializeToString, - nidmm__pb2.ConfigureFrequencyVoltageRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureMeasCompleteDest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasCompleteDest', - nidmm__pb2.ConfigureMeasCompleteDestRequest.SerializeToString, - nidmm__pb2.ConfigureMeasCompleteDestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureMultiPoint(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMultiPoint', - nidmm__pb2.ConfigureMultiPointRequest.SerializeToString, - nidmm__pb2.ConfigureMultiPointResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadMultiPoint(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ReadMultiPoint', - nidmm__pb2.ReadMultiPointRequest.SerializeToString, - nidmm__pb2.ReadMultiPointResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchMultiPoint(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/FetchMultiPoint', - nidmm__pb2.FetchMultiPointRequest.SerializeToString, - nidmm__pb2.FetchMultiPointResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerSlope(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureTriggerSlope', - nidmm__pb2.ConfigureTriggerSlopeRequest.SerializeToString, - nidmm__pb2.ConfigureTriggerSlopeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SendSoftwareTrigger', - nidmm__pb2.SendSoftwareTriggerRequest.SerializeToString, - nidmm__pb2.SendSoftwareTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetApertureTimeInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetApertureTimeInfo', - nidmm__pb2.GetApertureTimeInfoRequest.SerializeToString, - nidmm__pb2.GetApertureTimeInfoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAutoRangeValue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAutoRangeValue', - nidmm__pb2.GetAutoRangeValueRequest.SerializeToString, - nidmm__pb2.GetAutoRangeValueResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureAutoZeroMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureAutoZeroMode', - nidmm__pb2.ConfigureAutoZeroModeRequest.SerializeToString, - nidmm__pb2.ConfigureAutoZeroModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePowerLineFrequency(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigurePowerLineFrequency', - nidmm__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, - nidmm__pb2.ConfigurePowerLineFrequencyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureMeasurementDigits(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasurementDigits', - nidmm__pb2.ConfigureMeasurementDigitsRequest.SerializeToString, - nidmm__pb2.ConfigureMeasurementDigitsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureMeasurementAbsolute(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasurementAbsolute', - nidmm__pb2.ConfigureMeasurementAbsoluteRequest.SerializeToString, - nidmm__pb2.ConfigureMeasurementAbsoluteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureMeasCompleteSlope(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasCompleteSlope', - nidmm__pb2.ConfigureMeasCompleteSlopeRequest.SerializeToString, - nidmm__pb2.ConfigureMeasCompleteSlopeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSampleTriggerSlope(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureSampleTriggerSlope', - nidmm__pb2.ConfigureSampleTriggerSlopeRequest.SerializeToString, - nidmm__pb2.ConfigureSampleTriggerSlopeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadStatus(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ReadStatus', - nidmm__pb2.ReadStatusRequest.SerializeToString, - nidmm__pb2.ReadStatusResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Control(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Control', - nidmm__pb2.ControlRequest.SerializeToString, - nidmm__pb2.ControlResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureADCCalibration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureADCCalibration', - nidmm__pb2.ConfigureADCCalibrationRequest.SerializeToString, - nidmm__pb2.ConfigureADCCalibrationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOffsetCompOhms(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureOffsetCompOhms', - nidmm__pb2.ConfigureOffsetCompOhmsRequest.SerializeToString, - nidmm__pb2.ConfigureOffsetCompOhmsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCurrentSource(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureCurrentSource', - nidmm__pb2.ConfigureCurrentSourceRequest.SerializeToString, - nidmm__pb2.ConfigureCurrentSourceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCableCompType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureCableCompType', - nidmm__pb2.ConfigureCableCompTypeRequest.SerializeToString, - nidmm__pb2.ConfigureCableCompTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformOpenCableComp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/PerformOpenCableComp', - nidmm__pb2.PerformOpenCableCompRequest.SerializeToString, - nidmm__pb2.PerformOpenCableCompResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformShortCableComp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/PerformShortCableComp', - nidmm__pb2.PerformShortCableCompRequest.SerializeToString, - nidmm__pb2.PerformShortCableCompResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOpenCableCompValues(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureOpenCableCompValues', - nidmm__pb2.ConfigureOpenCableCompValuesRequest.SerializeToString, - nidmm__pb2.ConfigureOpenCableCompValuesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureShortCableCompValues(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureShortCableCompValues', - nidmm__pb2.ConfigureShortCableCompValuesRequest.SerializeToString, - nidmm__pb2.ConfigureShortCableCompValuesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureWaveformAcquisition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureWaveformAcquisition', - nidmm__pb2.ConfigureWaveformAcquisitionRequest.SerializeToString, - nidmm__pb2.ConfigureWaveformAcquisitionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureWaveformCoupling(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureWaveformCoupling', - nidmm__pb2.ConfigureWaveformCouplingRequest.SerializeToString, - nidmm__pb2.ConfigureWaveformCouplingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/FetchWaveform', - nidmm__pb2.FetchWaveformRequest.SerializeToString, - nidmm__pb2.FetchWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ReadWaveform', - nidmm__pb2.ReadWaveformRequest.SerializeToString, - nidmm__pb2.ReadWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViInt32', - nidmm__pb2.GetAttributeViInt32Request.SerializeToString, - nidmm__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViInt32', - nidmm__pb2.SetAttributeViInt32Request.SerializeToString, - nidmm__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViInt32', - nidmm__pb2.CheckAttributeViInt32Request.SerializeToString, - nidmm__pb2.CheckAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViReal64', - nidmm__pb2.GetAttributeViReal64Request.SerializeToString, - nidmm__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViReal64', - nidmm__pb2.SetAttributeViReal64Request.SerializeToString, - nidmm__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViReal64', - nidmm__pb2.CheckAttributeViReal64Request.SerializeToString, - nidmm__pb2.CheckAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViString', - nidmm__pb2.GetAttributeViStringRequest.SerializeToString, - nidmm__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViString', - nidmm__pb2.SetAttributeViStringRequest.SerializeToString, - nidmm__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViString', - nidmm__pb2.CheckAttributeViStringRequest.SerializeToString, - nidmm__pb2.CheckAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViSession', - nidmm__pb2.GetAttributeViSessionRequest.SerializeToString, - nidmm__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViSession', - nidmm__pb2.SetAttributeViSessionRequest.SerializeToString, - nidmm__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViSession', - nidmm__pb2.CheckAttributeViSessionRequest.SerializeToString, - nidmm__pb2.CheckAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViBoolean', - nidmm__pb2.GetAttributeViBooleanRequest.SerializeToString, - nidmm__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViBoolean', - nidmm__pb2.SetAttributeViBooleanRequest.SerializeToString, - nidmm__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViBoolean', - nidmm__pb2.CheckAttributeViBooleanRequest.SerializeToString, - nidmm__pb2.CheckAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ImportAttributeConfigurationFile', - nidmm__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - nidmm__pb2.ImportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ExportAttributeConfigurationFile', - nidmm__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - nidmm__pb2.ExportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ImportAttributeConfigurationBuffer', - nidmm__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - nidmm__pb2.ImportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ExportAttributeConfigurationBuffer', - nidmm__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - nidmm__pb2.ExportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetInterchangeCheck(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ResetInterchangeCheck', - nidmm__pb2.ResetInterchangeCheckRequest.SerializeToString, - nidmm__pb2.ResetInterchangeCheckResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearInterchangeWarnings(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ClearInterchangeWarnings', - nidmm__pb2.ClearInterchangeWarningsRequest.SerializeToString, - nidmm__pb2.ClearInterchangeWarningsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetChannelName', - nidmm__pb2.GetChannelNameRequest.SerializeToString, - nidmm__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalRecommendedInterval(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetExtCalRecommendedInterval', - nidmm__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - nidmm__pb2.GetExtCalRecommendedIntervalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalSupported(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetSelfCalSupported', - nidmm__pb2.GetSelfCalSupportedRequest.SerializeToString, - nidmm__pb2.GetSelfCalSupportedResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCalDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetCalDateAndTime', - nidmm__pb2.GetCalDateAndTimeRequest.SerializeToString, - nidmm__pb2.GetCalDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLastCalTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetLastCalTemp', - nidmm__pb2.GetLastCalTempRequest.SerializeToString, - nidmm__pb2.GetLastCalTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDevTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetDevTemp', - nidmm__pb2.GetDevTempRequest.SerializeToString, - nidmm__pb2.GetDevTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTransducerType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureTransducerType', - nidmm__pb2.ConfigureTransducerTypeRequest.SerializeToString, - nidmm__pb2.ConfigureTransducerTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureThermocouple(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureThermocouple', - nidmm__pb2.ConfigureThermocoupleRequest.SerializeToString, - nidmm__pb2.ConfigureThermocoupleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureFixedRefJunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureFixedRefJunction', - nidmm__pb2.ConfigureFixedRefJunctionRequest.SerializeToString, - nidmm__pb2.ConfigureFixedRefJunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureRTDType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureRTDType', - nidmm__pb2.ConfigureRTDTypeRequest.SerializeToString, - nidmm__pb2.ConfigureRTDTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureRTDCustom(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureRTDCustom', - nidmm__pb2.ConfigureRTDCustomRequest.SerializeToString, - nidmm__pb2.ConfigureRTDCustomResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureThermistorType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureThermistorType', - nidmm__pb2.ConfigureThermistorTypeRequest.SerializeToString, - nidmm__pb2.ConfigureThermistorTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureThermistorCustom(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureThermistorCustom', - nidmm__pb2.ConfigureThermistorCustomRequest.SerializeToString, - nidmm__pb2.ConfigureThermistorCustomResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InvalidateAllAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/InvalidateAllAttributes', - nidmm__pb2.InvalidateAllAttributesRequest.SerializeToString, - nidmm__pb2.InvalidateAllAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nidmm/nidmm/session.py b/generated/nidmm/nidmm/session.py deleted file mode 100644 index 8f52477dbe..0000000000 --- a/generated/nidmm/nidmm/session.py +++ /dev/null @@ -1,2499 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nidmm._attributes as _attributes -import nidmm._converters as _converters -import nidmm._library_interpreter as _library_interpreter -import nidmm.enums as enums -import nidmm.errors as errors - -import hightime - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Acquisition(object): - def __init__(self, session): - self._session = session - self._session._initiate() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _SessionBase(object): - '''Base class for all NI-DMM sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - ac_max_freq = _attributes.AttributeViReal64(1250007) - '''Type: float - - Specifies the maximum frequency component of the input signal for AC measurements. This property is used only for error checking and verifies that the value of this parameter is less than the maximum frequency of the device. This property affects the DMM only when you set the method property to AC measurements. - The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. - ''' - ac_min_freq = _attributes.AttributeViReal64(1250006) - '''Type: float - - Specifies the minimum frequency component of the input signal for AC measurements. This property affects the DMM only when you set the method property to AC measurements. - The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. - ''' - adc_calibration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ADCCalibration, 1150022) - '''Type: enums.ADCCalibration - - For the NI 4070/4071/4072 only, specifies the ADC calibration mode. - ''' - aperture_time = _attributes.AttributeViReal64(1250321) - '''Type: float - - Specifies the measurement aperture time for the current configuration. Aperture time is specified in units set by aperture_time_units. To override the default aperture, set this property to the desired aperture time after calling ConfigureMeasurement. To return to the default, set this property to NIDMM_VAL_APERTURE_TIME_AUTO (-1). - On the NI 4070/4071/4072, the minimum aperture time is 8.89 usec, and the maximum aperture time is 149 sec. Any number of powerline cycles (PLCs) within the minimum and maximum ranges is allowed on the NI 4070/4071/4072. - On the NI 4065 the minimum aperture time is 333 µs, and the maximum aperture time is 78.2 s. If setting the number of averages directly, the total measurement time is aperture time X the number of averages, which must be less than 72.8 s. The aperture times allowed are 333 µs, 667 µs, or multiples of 1.11 ms-for example 1.11 ms, 2.22 ms, 3.33 ms, and so on. If you set an aperture time other than 333 µs, 667 µs, or multiples of 1.11 ms, the value will be coerced up to the next supported aperture time. - On the NI 4060, when the powerline frequency is 60 Hz, the PLCs allowed are 1 PLC, 6 PLC, 12 PLC, and 120 PLC. When the powerline frequency is 50 Hz, the PLCs allowed are 1 PLC, 5 PLC, 10 PLC, and 100 PLC. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeUnits, 1250322) - '''Type: enums.ApertureTimeUnits - - Specifies the units of aperture time for the current configuration. - The NI 4060 does not support an aperture time set in seconds. - ''' - auto_range_value = _attributes.AttributeViReal64(1250331) - '''Type: float - - Specifies the value of the range. If auto ranging, shows the actual value of the active range. The value of this property is set during a read operation. - ''' - auto_zero = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutoZero, 1250332) - '''Type: enums.AutoZero - - Specifies the AutoZero mode. - The NI 4050 is not supported. - ''' - buffer_size = _attributes.AttributeViInt32(1150037) - '''Type: int - - Size in samples of the internal data buffer. Maximum is 134,217,727 (OX7FFFFFF) samples. When set to NIDMM_VAL_BUFFER_SIZE_AUTO (-1), NI-DMM chooses the buffer size. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - cable_comp_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.CableCompensationType, 1150045) - '''Type: enums.CableCompensationType - - For the NI 4072 only, the type of cable compensation that is applied to the current capacitance or inductance measurement for the current range. - Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. - ''' - channel_count = _attributes.AttributeViInt32(1050203) - '''Type: int - - Indicates the number of channels that the specific instrument driver supports. For each property for which the IVI_VAL_MULTI_CHANNEL flag property is set, the IVI engine maintains a separate cache value for each channel. - ''' - current_source = _attributes.AttributeViReal64(1150025) - '''Type: float - - Specifies the current source provided during diode measurements. - The NI 4050 and NI 4060 are not supported. - ''' - dc_bias = _attributes.AttributeViInt32(1150053) - '''Type: int - - For the NI 4072 only, controls the available DC bias for capacitance measurements. - ''' - dc_noise_rejection = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DCNoiseRejection, 1150026) - '''Type: enums.DCNoiseRejection - - Specifies the DC noise rejection mode. - The NI 4050 and NI 4060 are not supported. - ''' - driver_setup = _attributes.AttributeViString(1050007) - '''Type: str - - This property indicates the Driver Setup string that the user specified when initializing the driver. - Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niDMM Init With Options.vi. - If the user does not specify a Driver Setup string, this property returns an empty string. - ''' - freq_voltage_auto_range = _attributes.AttributeViReal64(1150044) - '''Type: float - - For the NI 4070/4071/4072 only, specifies the value of the frequency voltage range. If Auto Ranging, shows the actual value of the active frequency voltage range. If not Auto Ranging, the value of this property is the same as that of freq_voltage_range. - ''' - freq_voltage_range = _attributes.AttributeViReal64(1250101) - '''Type: float - - Specifies the maximum amplitude of the input signal for frequency measurements. - ''' - function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Function, 1250001) - '''Type: enums.Function - - Specifies the measurement method. - Refer to the method topic in the NI Digital Multimeters Help for device-specific information. - If you are setting this property directly, you must also set the operation_mode property, which controls whether the DMM takes standard single or multipoint measurements, or acquires a waveform. If you are programming properties directly, you must set the operation_mode property before setting other configuration properties. If the operation_mode property is set to OperationMode.WAVEFORM, the only valid method types are Method.WAVEFORM_VOLTAGE and Method.WAVEFORM_CURRENT. Set the operation_mode property to OperationMode.IVIDMM to set all other method values. - ''' - input_resistance = _attributes.AttributeViReal64(1150029) - '''Type: float - - Specifies the input resistance of the instrument. - The NI 4050 and NI 4060 are not supported. - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - A string containing the instrument firmware revision number. - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - A string containing the manufacturer of the instrument. - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - A string containing the instrument model. - ''' - instrument_product_id = _attributes.AttributeViInt32(1150061) - '''Type: int - - The PCI product ID. - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - A string containing the resource descriptor of the instrument. - ''' - lc_calculation_model = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCCalculationModel, 1150052) - '''Type: enums.LCCalculationModel - - For the NI 4072 only, specifies the type of algorithm that the measurement processing uses for capacitance and inductance measurements. - ''' - lc_number_meas_to_average = _attributes.AttributeViInt32(1150055) - '''Type: int - - For the NI 4072 only, specifies the number of LC measurements that are averaged to produce one reading. - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - A string containing the logical name of the instrument. - ''' - meas_complete_dest = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MeasurementCompleteDest, 1250305) - '''Type: enums.MeasurementCompleteDest - - Specifies the destination of the measurement complete (MC) signal. - The NI 4050 is not supported. - To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. - ''' - number_of_averages = _attributes.AttributeViInt32(1150032) - '''Type: int - - Specifies the number of averages to perform in a measurement. For the NI 4070/4071/4072, applies only when the aperture time is not set to AUTO and Auto Zero is ON. The default is 1. - The NI 4050 and NI 4060 are not supported. - ''' - offset_comp_ohms = _attributes.AttributeViInt32(1150023) - '''Type: int - - For the NI 4070/4071/4072 only, enables or disables offset compensated ohms. - ''' - open_cable_comp_conductance = _attributes.AttributeViReal64(1150049) - '''Type: float - - For the NI 4072 only, specifies the active part (conductance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. - Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. - ''' - open_cable_comp_susceptance = _attributes.AttributeViReal64(1150048) - '''Type: float - - For the NI 4072 only, specifies the reactive part (susceptance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. - Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. - ''' - operation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OperationMode, 1150014) - '''Type: enums.OperationMode - - Specifies how the NI 4065 and NI 4070/4071/4072 acquire data. When you call configure_measurement_digits, NI-DMM sets this property to OperationMode.IVIDMM. When you call configure_waveform_acquisition, NI-DMM sets this property to OperationMode.WAVEFORM. If you are programming properties directly, you must set this property before setting other configuration properties. - ''' - powerline_freq = _attributes.AttributeViReal64(1250333) - '''Type: float - - Specifies the powerline frequency. The NI 4050 and NI 4060 use this value to select an aperture time to reject powerline noise by selecting the appropriate internal sample clock and filter. The NI 4065 and NI 4070/4071/4072 use this value to select a timebase for setting the aperture_time property in powerline cycles (PLCs). - After configuring powerline frequency, set the aperture_time_units property to PLCs. When setting the aperture_time property, select the number of PLCs for the powerline frequency. For example, if powerline frequency = 50 Hz (or 20ms) and aperture time in PLCs = 5, then aperture time in Seconds = 20ms * 5 PLCs = 100 ms. Similarly, if powerline frequency = 60 Hz (or 16.667 ms) and aperture time in PLCs = 6, then aperture time in Seconds = 16.667 ms * 6 PLCs = 100 ms. - ''' - range = _attributes.AttributeViReal64(1250002) - '''Type: float - - Specifies the measurement range. Use positive values to represent the absolute value of the maximum expected measurement. The value is in units appropriate for the current value of the method property. For example, if method is set to NIDMM_VAL_VOLTS, the units are volts. - The NI 4050 and NI 4060 only support Auto Range when the trigger and sample trigger is set to IMMEDIATE. - NIDMM_VAL_AUTO_RANGE_ON -1.0 - NI-DMM performs an Auto Range before acquiring the measurement. - NIDMM_VAL_AUTO_RANGE_OFF -2.0 - NI-DMM sets the Range to the current auto_range_value and uses this range for all subsequent measurements until the measurement configuration is changed. - NIDMM_VAL_AUTO_RANGE_ONCE -3.0 - NI-DMM performs an Auto Range before acquiring the next measurement. The auto_range_value is stored and used for all subsequent measurements until the measurement configuration is changed. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - resolution_absolute = _attributes.AttributeViReal64(1250008) - '''Type: float - - Specifies the measurement resolution in absolute units. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. - NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the lc_number_meas_to_average property. - ''' - resolution_digits = _attributes.AttributeViReal64(1250003) - '''Type: float - - Specifies the measurement resolution in digits. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. - NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the lc_number_meas_to_average property. - ''' - sample_count = _attributes.AttributeViInt32(1250301) - '''Type: int - - Specifies the number of measurements the DMM takes each time it receives a trigger in a multiple point acquisition. - ''' - sample_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1250303) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the amount of time in seconds the DMM waits between measurement cycles. This property only applies when the sample_trigger property is set to INTERVAL. - On the NI 4060, the value for this property is used as the settling time. When this property is set to 0, the NI 4060 does not settle between measurement cycles. The onboard timing resolution is 1 µs on the NI 4060. - The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional delay. On the NI 4065 and NI 4070/4071/4072, the onboard timing resolution is 34.72 ns and the valid range is 0-149 s. - Only positive values are valid when setting the sample interval. - The NI 4050 is not supported. - ''' - sample_trigger = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SampleTrigger, 1250302) - '''Type: enums.SampleTrigger - - Specifies the sample trigger source. - To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. - ''' - serial_number = _attributes.AttributeViString(1150054) - '''Type: str - - A string containing the serial number of the instrument. This property corresponds to the serial number label that is attached to most products. - ''' - settle_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150028) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the settling time in seconds. To override the default settling time, set this property. To return to the default, set this property to NIDMM_VAL_SETTLE_TIME_AUTO (-1). - The NI 4050 and NI 4060 are not supported. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - short_cable_comp_reactance = _attributes.AttributeViReal64(1150046) - '''Type: float - - For the NI 4072 only, represents the reactive part (reactance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. - Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. - ''' - short_cable_comp_resistance = _attributes.AttributeViReal64(1150047) - '''Type: float - - For the NI 4072 only, represents the active part (resistance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. - Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. - ''' - simulate = _attributes.AttributeViBoolean(1050005) - '''Type: bool - - Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call IVI Get and Set methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. - The default value is False (0). Use the __init__ method to override this setting. - Simulate can only be set within the InitWithOptions method. The property value cannot be changed outside of the method. - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - A string containing a description of the specific driver. - ''' - specific_driver_major_version = _attributes.AttributeViInt32(1050503) - '''Type: int - - Returns the major version number of this instrument driver. - ''' - specific_driver_minor_version = _attributes.AttributeViInt32(1050504) - '''Type: int - - The minor version number of this instrument driver. - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - A string that contains additional version information about this specific instrument driver. - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - A string containing the vendor of the specific driver. - ''' - supported_instrument_models = _attributes.AttributeViString(1050327) - '''Type: str - - A string containing the instrument models supported by the specific driver. - ''' - temp_rtd_a = _attributes.AttributeViReal64(1150121) - '''Type: float - - Specifies the Callendar-Van Dusen A coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is 3.9083e-3 (Pt3851). - ''' - temp_rtd_b = _attributes.AttributeViReal64(1150122) - '''Type: float - - Specifies the Callendar-Van Dusen B coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -5.775e-7(Pt3851). - ''' - temp_rtd_c = _attributes.AttributeViReal64(1150123) - '''Type: float - - Specifies the Callendar-Van Dusen C coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -4.183e-12(Pt3851). - ''' - temp_rtd_res = _attributes.AttributeViReal64(1250242) - '''Type: float - - Specifies the RTD resistance at 0 degrees Celsius. This applies to all supported RTDs, including custom RTDs. The default value is 100 (?). - ''' - temp_rtd_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RTDType, 1150120) - '''Type: enums.RTDType - - Specifies the type of RTD used to measure temperature. The default value is RTDType.PT3851. - Refer to the temp_rtd_type topic in the NI Digital Multimeters Help for additional information about defined values. - ''' - temp_tc_fixed_ref_junc = _attributes.AttributeViReal64(1250233) - '''Type: float - - Specifies the reference junction temperature when a fixed reference junction is used to take a thermocouple measurement. The default value is 25.0 (°C). - ''' - temp_tc_ref_junc_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ThermocoupleReferenceJunctionType, 1250232) - '''Type: enums.ThermocoupleReferenceJunctionType - - Specifies the type of reference junction to be used in the reference junction compensation of a thermocouple. The only supported value, ThermocoupleReferenceJunctionType.FIXED, is fixed. - ''' - temp_tc_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ThermocoupleType, 1250231) - '''Type: enums.ThermocoupleType - - Specifies the type of thermocouple used to measure the temperature. The default value is ThermocoupleType.J. - ''' - temp_thermistor_a = _attributes.AttributeViReal64(1150125) - '''Type: float - - Specifies the Steinhart-Hart A coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 0.0010295 (44006). - ''' - temp_thermistor_b = _attributes.AttributeViReal64(1150126) - '''Type: float - - Specifies the Steinhart-Hart B coefficient for thermistor scaling when the Thermistor Type proerty is set to Custom. The default value is 0.0002391 (44006). - ''' - temp_thermistor_c = _attributes.AttributeViReal64(1150127) - '''Type: float - - Specifies the Steinhart-Hart C coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 1.568e-7 (44006). - ''' - temp_thermistor_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ThermistorType, 1150124) - '''Type: enums.ThermistorType - - Specifies the type of thermistor used to measure the temperature. The default value is ThermistorType.THERMISTOR_44006. - Refer to the temp_thermistor_type topic in the NI Digital Multimeters Help for additional information about defined values. - ''' - temp_transducer_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TransducerType, 1250201) - '''Type: enums.TransducerType - - Specifies the type of device used to measure the temperature. The default value is NIDMM_VAL_4_THERMOCOUPLE. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - trigger_count = _attributes.AttributeViInt32(1250304) - '''Type: int - - Specifies the number of triggers the DMM receives before returning to the Idle state. - This property can be set to any positive ViInt32 value for the NI 4065 and NI 4070/4071/4072. - The NI 4050 and NI 4060 support this property being set to 1. - Refer to the Multiple Point Acquisitions section of the NI Digital Multimeters Help for more information. - ''' - trigger_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1250005) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the time (in seconds) that the DMM waits after it has received a trigger before taking a measurement. The default value is AUTO DELAY (-1), which means that the DMM waits an appropriate settling time before taking the measurement. (-1) signifies that AUTO DELAY is on, and (-2) signifies that AUTO DELAY is off. - The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional settling time. For the The NI 4065 and NI 4070/4071/4072, the valid range for Trigger Delay is AUTO DELAY (-1) or 0.0-149.0 seconds and the onboard timing resolution is 34.72 ns. - On the NI 4060, if this property is set to 0, the DMM does not settle before taking the measurement. On the NI 4060, the valid range for AUTO DELAY (-1) is 0.0-12.0 seconds and the onboard timing resolution is 100 ms. - When using the NI 4050, this property must be set to AUTO DELAY (-1). - Use positive values to set the trigger delay in seconds. - Valid Range: NIDMM_VAL_AUTO_DELAY (-1.0), 0.0-12.0 seconds (NI 4060 only) - Default Value: NIDMM_VAL_AUTO_DELAY - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - trigger_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerSource, 1250004) - '''Type: enums.TriggerSource - - Specifies the trigger source. When _initiate is called, the DMM waits for the trigger specified with this property. After it receives the trigger, the DMM waits the length of time specified with the trigger_delay property. The DMM then takes a measurement. - This property is not supported on the NI 4050. - To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. - ''' - waveform_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WaveformCoupling, 1150027) - '''Type: enums.WaveformCoupling - - For the NI 4070/4071/4072 only, specifies the coupling during a waveform acquisition. - ''' - waveform_points = _attributes.AttributeViInt32(1150019) - '''Type: int - - For the NI 4070/4071/4072 only, specifies the number of points to acquire in a waveform acquisition. - ''' - waveform_rate = _attributes.AttributeViReal64(1150018) - '''Type: float - - For the NI 4070/4071/4072 only, specifies the rate of the waveform acquisition in Samples per second (S/s). The valid Range is 10.0-1,800,000 S/s. Values are coerced to the closest integer divisor of 1,800,000. The default value is 1,800,000. - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nidmm', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (bool): Returns the current value of the property. Pass the address of a - ViBoolean variable. - - ''' - attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (int): Returns the current value of the property. Pass the address of a - ViInt32 variable. - - ''' - attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - Queries the value of a ViReal64 property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (float): Returns the current value of the property. Pass the address of a - ViReal64 variable. - - ''' - attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - Queries the value of a ViString property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid. - You must provide a ViChar array to serve as a buffer for the value. - You pass the number of bytes in the buffer as the Array Size - parameter. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (str): The buffer in which the method returns the current value of the - property. The buffer must be of type ViChar and have at least as many - bytes as indicated in the **Buffer_Size** parameter. - - If you specify 0 for the **Buffer_Size** parameter, you can pass - VI_NULL for this parameter. - - ''' - attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return attribute_value - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-DMM locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nidmm.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, attribute_value): - r'''_set_attribute_vi_boolean - - This method sets the value of a ViBoolean property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid - or is different than the value you specify. - - This instrument driver contains high-level methods that set most of - the instrument properties. It is best to use the high-level driver - methods as much as possible. They handle order dependencies and - multithread locking for you. In addition, they perform status checking - only after setting all of the properties. - - In contrast, when you set multiple properties using the SetAttribute - methods, the methods check the instrument status after each call. - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (bool): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int32 - - This method sets the value of a ViInt32 property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid - or is different than the value you specify. - - This instrument driver contains high-level methods that set most of - the instrument properties. It is best to use the high-level driver - methods as much as possible. They handle order dependencies and - multithread locking for you. In addition, they perform status checking - only after setting all of the properties. - - In contrast, when you set multiple properties using the SetAttribute - methods, the methods check the instrument status after each call. - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (int): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_real64 - - This method sets the value of a ViReal64 property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid - or is different than the value you specify. - - This instrument driver contains high-level methods that set most of - the instrument properties. It is best to use the high-level driver - methods as much as possible. They handle order dependencies and - multithread locking for you. In addition, they perform status checking - only after setting all of the properties. - - In contrast, when you set multiple properties using the SetAttribute - methods, the methods check the instrument status after each call. - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (float): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, attribute_value): - r'''_set_attribute_vi_string - - This method sets the value of a ViString property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. - - If the property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled, and the currently cached value is invalid - or is different than the value you specify. - - This instrument driver contains high-level methods that set most of - the instrument properties. It is best to use the high-level driver - methods as much as possible. They handle order dependencies and - multithread locking for you. In addition, they perform status checking - only after setting all of the properties. - - In contrast, when you set multiple properties using the SetAttribute - methods, the methods check the instrument status after each call. - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nidmm.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (str): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - def _error_message(self, error_code): - r'''_error_message - - Takes the **Error_Code** returned by the instrument driver methods, - interprets it, and returns it as a user-readable string. - - Note: - When using grpc-device, this method will call GetErrorMessage server-side while providing the same interface. - - Args: - error_code (int): The **error_code** returned from the instrument. The default is 0, - indicating VI_SUCCESS. - - - Returns: - error_message (str): The error information formatted into a string. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-DMM session to an NI digital multimeter''' - - def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): - r'''An NI-DMM session to an NI digital multimeter - - This method completes the following tasks: - - - Creates a new IVI instrument driver session and, optionally, sets the - initial state of the following session properties: - RANGE_CHECK, QUERY_INSTR_STATUS, - CACHE, simulate, - RECORD_COERCIONS. - - Opens a session to the device you specify for the **Resource_Name** - parameter. If the **ID_Query** parameter is set to True, this - method queries the instrument ID and checks that it is valid for - this instrument driver. - - If the **Reset_Device** parameter is set to True, this method - resets the instrument to a known state. Sends initialization commands - to set the instrument to the state necessary for the operation of the - instrument driver. - - Returns a ViSession handle that you use to identify the instrument in - all subsequent instrument driver method calls. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - resource_name (str): Caution: - All IVI names for the **Resource_Name**, such as logical names or - virtual names, are case-sensitive. If you use logical names, driver - session names, or virtual names in your program, you must make sure that - the name you use matches the name in the IVI Configuration Store file - exactly, without any variations in the case of the characters in the - name. - - | Contains the **resource_name** of the device to initialize. The - **resource_name** is assigned in Measurement & Automation Explorer - (MAX). Refer to `Related - Documentation `__ - for the *NI Digital Multimeters Getting Started Guide* for more - information about configuring and testing the DMM in MAX. - | Valid Syntax: - - - NI-DAQmx name - - DAQ::NI-DAQmx name[::INSTR] - - DAQ::Traditional NI-DAQ device number[::INSTR] - - IVI logical name - - id_query (bool): Verifies that the device you initialize is one that the driver supports. - NI-DMM automatically performs this query, so setting this parameter is - not necessary. - Defined Values: - - +----------------+---+------------------+ - | True (default) | 1 | Perform ID Query | - +----------------+---+------------------+ - | False | 0 | Skip ID Query | - +----------------+---+------------------+ - - reset_device (bool): Specifies whether to reset the instrument during the initialization - procedure. - Defined Values: - - +----------------+---+--------------+ - | True (default) | 1 | Reset Device | - +----------------+---+--------------+ - | False | 0 | Don't Reset | - +----------------+---+--------------+ - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - grpc_options (nidmm.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - session (nidmm.Session): A session object representing the device. - - ''' - if grpc_options: - import nidmm._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_options fails, the error handler can reference it. - # And then here, once _init_with_options succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-DMM', grpc_options.grpc_channel, connected) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Initiates an acquisition. After you call this method, the DMM leaves - the Idle state and enters the Wait-for-Trigger state. If trigger is set - to Immediate mode, the DMM begins acquiring measurement data. Use - fetch, fetch_multi_point, or fetch_waveform to - retrieve the measurement data. - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Acquisition(self) - - def close(self): - '''close - - Closes the specified session and deallocates resources that it reserved. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Aborts a previously initiated measurement and returns the DMM to the - Idle state. - ''' - self._interpreter.abort() - - @ivi_synchronized - def configure_measurement_absolute(self, measurement_function, range, resolution_absolute): - r'''configure_measurement_absolute - - Configures the common properties of the measurement. These properties - include method, range, and - resolution_absolute. - - Args: - measurement_function (enums.Function): Specifies the **measurement_function** used to acquire the measurement. - The driver sets method to this value. - - range (float): Specifies the **range** for the method specified in the - **Measurement_Function** parameter. When frequency is specified in the - **Measurement_Function** parameter, you must supply the minimum - frequency expected in the **range** parameter. For example, you must - type in 100 Hz if you are measuring 101 Hz or higher. - For all other methods, you must supply a **range** that exceeds the - value that you are measuring. For example, you must type in 10 V if you - are measuring 9 V. **range** values are coerced up to the closest input - **range**. Refer to the `Devices - Overview `__ for a list of valid - ranges. The driver sets range to this value. The default is - 0.02 V. - - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIDMM_VAL_AUTO_RANGE_ON | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIDMM_VAL_AUTO_RANGE_OFF | -2.0 | NI-DMM sets the Range to the current auto_range_value and uses this range for all subsequent measurements until the measurement configuration is changed. | - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIDMM_VAL_AUTO_RANGE_ONCE | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The auto_range_value is stored and used for all subsequent measurements until the measurement configuration is changed. | - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - The NI 4050, NI 4060, and NI 4065 only support Auto Range when the - trigger and sample trigger are set to IMMEDIATE. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - resolution_absolute (float): Specifies the absolute resolution for the measurement. NI-DMM sets - resolution_absolute to this value. The PXIe-4080/4081/4082 - uses the resolution you specify. The NI 4065 and NI 4070/4071/4072 - ignore this parameter when the **Range** parameter is set to - NIDMM_VAL_AUTO_RANGE_ON (-1.0) or NIDMM_VAL_AUTO_RANGE_ONCE - (-3.0). The default is 0.001 V. - - Note: - NI-DMM ignores this parameter for capacitance and inductance - measurements on the NI 4072. To achieve better resolution for such - measurements, use the lc_number_meas_to_average - property. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(measurement_function) is not enums.Function: - raise TypeError('Parameter measurement_function must be of type ' + str(enums.Function)) - self._interpreter.configure_measurement_absolute(measurement_function, range, resolution_absolute) - - @ivi_synchronized - def configure_measurement_digits(self, measurement_function, range, resolution_digits): - r'''configure_measurement_digits - - Configures the common properties of the measurement. These properties - include method, range, and - resolution_digits. - - Args: - measurement_function (enums.Function): Specifies the **measurement_function** used to acquire the measurement. - The driver sets method to this value. - - range (float): Specifies the range for the method specified in the - **Measurement_Function** parameter. When frequency is specified in the - **Measurement_Function** parameter, you must supply the minimum - frequency expected in the **range** parameter. For example, you must - type in 100 Hz if you are measuring 101 Hz or higher. - For all other methods, you must supply a range that exceeds the value - that you are measuring. For example, you must type in 10 V if you are - measuring 9 V. range values are coerced up to the closest input range. - Refer to the `Devices - Overview `__ for a list of valid - ranges. The driver sets range to this value. The default is - 0.02 V. - - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIDMM_VAL_AUTO_RANGE_ON | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIDMM_VAL_AUTO_RANGE_OFF | -2.0 | NI-DMM sets the Range to the current auto_range_value and uses this range for all subsequent measurements until the measurement configuration is changed. | - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIDMM_VAL_AUTO_RANGE_ONCE | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The auto_range_value is stored and used for all subsequent measurements until the measurement configuration is changed. | - +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - The NI 4050, NI 4060, and NI 4065 only support Auto Range when the - trigger and sample trigger are set to IMMEDIATE. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - resolution_digits (float): Specifies the resolution of the measurement in digits. The driver sets - the `Devices Overview `__ for a - list of valid ranges. The driver sets resolution_digits - property to this value. The PXIe-4080/4081/4082 uses the resolution you - specify. The NI 4065 and NI 4070/4071/4072 ignore this parameter when - the **Range** parameter is set to NIDMM_VAL_AUTO_RANGE_ON (-1.0) or - NIDMM_VAL_AUTO_RANGE_ONCE (-3.0). The default is 5½. - - Note: - NI-DMM ignores this parameter for capacitance and inductance - measurements on the NI 4072. To achieve better resolution for such - measurements, use the lc_number_meas_to_average - property. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(measurement_function) is not enums.Function: - raise TypeError('Parameter measurement_function must be of type ' + str(enums.Function)) - self._interpreter.configure_measurement_digits(measurement_function, range, resolution_digits) - - @ivi_synchronized - def configure_multi_point(self, trigger_count, sample_count, sample_trigger=enums.SampleTrigger.IMMEDIATE, sample_interval=hightime.timedelta(seconds=-1)): - r'''configure_multi_point - - Configures the properties for multipoint measurements. These properties - include trigger_count, sample_count, - sample_trigger, and sample_interval. - - For continuous acquisitions, set trigger_count or - sample_count to zero. For more information, refer to - `Multiple Point - Acquisitions `__, - `Triggering `__, and `Using - Switches `__. - - Args: - trigger_count (int): Sets the number of triggers you want the DMM to receive before returning - to the Idle state. The driver sets trigger_count to this - value. The default value is 1. - - sample_count (int): Sets the number of measurements the DMM makes in each measurement - sequence initiated by a trigger. The driver sets - sample_count to this value. The default value is 1. - - sample_trigger (enums.SampleTrigger): Specifies the **sample_trigger** source you want to use. The driver - sets sample_trigger to this value. The default is - Immediate. - - Note: - To determine which values are supported by each device, refer to the - `LabWindows/CVI Trigger - Routing `__ section. - - sample_interval (hightime.timedelta, datetime.timedelta, or float in seconds): Sets the amount of time in seconds the DMM waits between measurement - cycles. The driver sets sample_interval to this value. - Specify a sample interval to add settling time between measurement - cycles or to decrease the measurement rate. **sample_interval** only - applies when the **Sample_Trigger** is set to INTERVAL. - - On the NI 4060, the **sample_interval** value is used as the settling - time. When sample interval is set to 0, the DMM does not settle between - measurement cycles. The NI 4065 and NI 4070/4071/4072 use the value - specified in **sample_interval** as additional delay. The default value - (-1) ensures that the DMM settles for a recommended time. This is the - same as using an Immediate trigger. - - Note: This property is not used on the NI 4080/4081/4082 and the NI 4050. - - ''' - if type(sample_trigger) is not enums.SampleTrigger: - raise TypeError('Parameter sample_trigger must be of type ' + str(enums.SampleTrigger)) - sample_interval = _converters.convert_timedelta_to_seconds_real64(sample_interval) - self._interpreter.configure_multi_point(trigger_count, sample_count, sample_trigger, sample_interval) - - @ivi_synchronized - def configure_rtd_custom(self, rtd_a, rtd_b, rtd_c): - r'''configure_rtd_custom - - Configures the A, B, and C parameters for a custom RTD. - - Args: - rtd_a (float): Specifies the Callendar-Van Dusen A coefficient for RTD scaling when RTD - Type parameter is set to Custom in the configure_rtd_type method. - The default is 3.9083e-3 (Pt3851) - - rtd_b (float): Specifies the Callendar-Van Dusen B coefficient for RTD scaling when RTD - Type parameter is set to Custom in the configure_rtd_type method. - The default is -5.775e-7 (Pt3851). - - rtd_c (float): Specifies the Callendar-Van Dusen C coefficient for RTD scaling when RTD - Type parameter is set to Custom in the configure_rtd_type method. - The default is -4.183e-12 (Pt3851). - - ''' - self._interpreter.configure_rtd_custom(rtd_a, rtd_b, rtd_c) - - @ivi_synchronized - def configure_rtd_type(self, rtd_type, rtd_resistance): - r'''configure_rtd_type - - Configures the RTD Type and RTD Resistance parameters for an RTD. - - Args: - rtd_type (enums.RTDType): Specifies the type of RTD used to measure the temperature resistance. - NI-DMM uses this value to set the RTD Type property. The default is - RTDType.PT3851. - - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | Enum | Standards | Material | TCR (α) | Typical R\ :sub:`0` (Ω) | Notes | | - +=================================+===============================================+==========+=========+=========================+===============================================================================+===============================+ - | Callendar-Van Dusen Coefficient | | | | | | | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | RTDType.PT3851 | IEC-751 DIN 43760 BS 1904 ASTM-E1137 EN-60751 | Platinum | .003851 | 100 Ω 1000 Ω | A = 3.9083 × 10\ :sup:`–3` B = –5.775×10:sup:`–7` C = –4.183×10:sup:`–12` | Most common RTDs | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | RTDType.PT3750 | Low-cost vendor compliant RTD\* | Platinum | .003750 | 1000 Ω | A = 3.81 × 10\ :sup:`–3` B = –6.02×10:sup:`–7` C = –6.0×10:sup:`–12` | Low-cost RTD | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | RTDType.PT3916 | JISC 1604 | Platinum | .003916 | 100 Ω | A = 3.9739 × 10\ :sup:`–3` B = –5.870×10:sup:`–7` C = –4.4 ×10\ :sup:`–12` | Used in primarily in Japan | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | RTDType.PT3920 | US Industrial Standard D-100 American | Platinum | .003920 | 100 Ω | A = 3.9787 × 10\ :sup:`–3` B = –5.8686×10:sup:`–7` C = –4.167 ×10\ :sup:`–12` | Low-cost RTD | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | RTDType.PT3911 | US Industrial Standard American | Platinum | .003911 | 100 Ω | A = 3.9692 × 10\ :sup:`–3` B = –5.8495×10:sup:`–7` C = –4.233 ×10\ :sup:`–12` | Low-cost RTD | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | RTDType.PT3928 | ITS-90 | Platinum | .003928 | 100 Ω | A = 3.9888 × 10\ :sup:`–3` B = –5.915×10:sup:`–7` C = –3.85 ×10\ :sup:`–12` | The definition of temperature | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - | \*No standard. Check the TCR. | | | | | | | - +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ - - rtd_resistance (float): Specifies the RTD resistance in ohms at 0 °C. NI-DMM uses this value to - set the RTD Resistance property. The default is 100 (Ω). - - ''' - if type(rtd_type) is not enums.RTDType: - raise TypeError('Parameter rtd_type must be of type ' + str(enums.RTDType)) - self._interpreter.configure_rtd_type(rtd_type, rtd_resistance) - - @ivi_synchronized - def configure_thermistor_custom(self, thermistor_a, thermistor_b, thermistor_c): - r'''configure_thermistor_custom - - Configures the A, B, and C parameters for a custom thermistor. - - Args: - thermistor_a (float): Specifies the Steinhart-Hart A coefficient for thermistor scaling when - Thermistor Type is set to Custom in the ConfigureThermistorType - method. The default is 1.0295e-3 (44006). - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - thermistor_b (float): Specifies the Steinhart-Hart B coefficient for thermistor scaling when - Thermistor Type is set to Custom in the ConfigureThermistorType - method. The default is 2.391e-4 (44006). - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - thermistor_c (float): Specifies the Steinhart-Hart C coefficient for thermistor scaling when - Thermistor Type is set to Custom in the ConfigureThermistorType - method. The default is 1.568e-7 (44006). - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - ''' - self._interpreter.configure_thermistor_custom(thermistor_a, thermistor_b, thermistor_c) - - @ivi_synchronized - def configure_thermocouple(self, thermocouple_type, reference_junction_type=enums.ThermocoupleReferenceJunctionType.FIXED): - r'''configure_thermocouple - - Configures the thermocouple type and reference junction type for a - chosen thermocouple. - - Args: - thermocouple_type (enums.ThermocoupleType): Specifies the type of thermocouple used to measure the temperature. - NI-DMM uses this value to set the Thermocouple Type property. The - default is ThermocoupleType.J. - - +--------------------+---------------------+ - | ThermocoupleType.B | Thermocouple type B | - +--------------------+---------------------+ - | ThermocoupleType.E | Thermocouple type E | - +--------------------+---------------------+ - | ThermocoupleType.J | Thermocouple type J | - +--------------------+---------------------+ - | ThermocoupleType.K | Thermocouple type K | - +--------------------+---------------------+ - | ThermocoupleType.N | Thermocouple type N | - +--------------------+---------------------+ - | ThermocoupleType.R | Thermocouple type R | - +--------------------+---------------------+ - | ThermocoupleType.S | Thermocouple type S | - +--------------------+---------------------+ - | ThermocoupleType.T | Thermocouple type T | - +--------------------+---------------------+ - - reference_junction_type (enums.ThermocoupleReferenceJunctionType): Specifies the type of reference junction to be used in the reference - junction compensation of a thermocouple measurement. NI-DMM uses this - value to set the Reference Junction Type property. The only supported - value is ThermocoupleReferenceJunctionType.FIXED. - - ''' - if type(thermocouple_type) is not enums.ThermocoupleType: - raise TypeError('Parameter thermocouple_type must be of type ' + str(enums.ThermocoupleType)) - if type(reference_junction_type) is not enums.ThermocoupleReferenceJunctionType: - raise TypeError('Parameter reference_junction_type must be of type ' + str(enums.ThermocoupleReferenceJunctionType)) - self._interpreter.configure_thermocouple(thermocouple_type, reference_junction_type) - - @ivi_synchronized - def configure_trigger(self, trigger_source, trigger_delay=hightime.timedelta(seconds=-1)): - r'''configure_trigger - - Configures the DMM **Trigger_Source** and **Trigger_Delay**. Refer to - `Triggering `__ and `Using - Switches `__ for more - information. - - Args: - trigger_source (enums.TriggerSource): Specifies the **trigger_source** that initiates the acquisition. The - driver sets trigger_source to this value. Software - configures the DMM to wait until send_software_trigger is called - before triggering the DMM. - - Note: - To determine which values are supported by each device, refer to the - `LabWindows/CVI Trigger - Routing `__ section. - - trigger_delay (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time that the DMM waits after it has received a trigger - before taking a measurement. The driver sets the - trigger_delay property to this value. By default, - **trigger_delay** is NIDMM_VAL_AUTO_DELAY (-1), which means the DMM - waits an appropriate settling time before taking the measurement. On the - NI 4060, if you set **trigger_delay** to 0, the DMM does not settle - before taking the measurement. The NI 4065 and NI 4070/4071/4072 use the - value specified in **trigger_delay** as additional settling time. - - Note: - When using the NI 4050, **Trigger_Delay** must be set to - NIDMM_VAL_AUTO_DELAY (-1). - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(trigger_source) is not enums.TriggerSource: - raise TypeError('Parameter trigger_source must be of type ' + str(enums.TriggerSource)) - trigger_delay = _converters.convert_timedelta_to_seconds_real64(trigger_delay) - self._interpreter.configure_trigger(trigger_source, trigger_delay) - - @ivi_synchronized - def configure_waveform_acquisition(self, measurement_function, range, rate, waveform_points): - r'''configure_waveform_acquisition - - Configures the DMM for waveform acquisitions. This feature is supported - on the NI 4080/4081/4082 and the NI 4070/4071/4072. - - Args: - measurement_function (enums.Function): Specifies the **measurement_function** used in a waveform acquisition. - The driver sets method to this value. - - +-----------------------------------+------+------------------+ - | Method.WAVEFORM_VOLTAGE (default) | 1003 | Voltage Waveform | - +-----------------------------------+------+------------------+ - | Method.WAVEFORM_CURRENT | 1004 | Current Waveform | - +-----------------------------------+------+------------------+ - - range (float): Specifies the expected maximum amplitude of the input signal and sets - the **range** for the **Measurement_Function**. NI-DMM sets - range to this value. **range** values are coerced up to the - closest input **range**. The default is 10.0. - - For valid ranges refer to the topics in - `Devices `__. - - Auto-ranging is not supported during waveform acquisitions. - - rate (float): Specifies the **rate** of the acquisition in samples per second. NI-DMM - sets waveform_rate to this value. - - The valid **Range** is 10.0–1,800,000 S/s. **rate** values are coerced - to the closest integer divisor of 1,800,000. The default value is - 1,800,000. - - waveform_points (int): Specifies the number of points to acquire before the waveform - acquisition completes. NI-DMM sets waveform_points to this - value. - - To calculate the maximum and minimum number of waveform points that you - can acquire in one acquisition, refer to the `Waveform Acquisition - Measurement Cycle `__. - - The default value is 500. - - ''' - if type(measurement_function) is not enums.Function: - raise TypeError('Parameter measurement_function must be of type ' + str(enums.Function)) - self._interpreter.configure_waveform_acquisition(measurement_function, range, rate, waveform_points) - - @ivi_synchronized - def disable(self): - r'''disable - - Places the instrument in a quiescent state where it has minimal or no - impact on the system to which it is connected. If a measurement is in - progress when this method is called, the measurement is aborted. - ''' - self._interpreter.disable() - - @ivi_synchronized - def export_attribute_configuration_buffer(self): - r'''export_attribute_configuration_buffer - - Exports the property configuration of the session to the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DMM returns an - error. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - Returns: - configuration (bytes): Specifies the byte array buffer to be populated with the exported - property configuration. - - ''' - configuration = self._interpreter.export_attribute_configuration_buffer() - return _converters.convert_to_bytes(configuration) - - @ivi_synchronized - def export_attribute_configuration_file(self, file_path): - r'''export_attribute_configuration_file - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑DMM returns an - error. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - Args: - file_path (str): Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:**\ .nidmmconfig - - ''' - self._interpreter.export_attribute_configuration_file(file_path) - - @ivi_synchronized - def fetch(self, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''fetch - - Returns the value from a previously initiated measurement. You must call - _initiate before calling this method. Value is in base units. - - Args: - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - reading (float): The measured value returned from the DMM. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - reading = self._interpreter.fetch(maximum_time) - return reading - - @ivi_synchronized - def fetch_multi_point(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''fetch_multi_point - - Returns an array of values from a previously initiated multipoint - measurement. The number of measurements the DMM makes is determined by - the values you specify for the **Trigger_Count** and **Sample_Count** - parameters of configure_multi_point. You must first call - _initiate to initiate a measurement before calling this method. Values are in base units. - - Args: - array_size (int): Specifies the number of measurements to acquire. The maximum number of - measurements for a finite acquisition is the (**Trigger Count** x - **Sample Count**) parameters in configure_multi_point. - - For continuous acquisitions, up to 100,000 points can be returned at - once. The number of measurements can be a subset. The valid range is any - positive ViInt32. The default value is 1. - - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - reading_array (array.array("d")): An array of measurement values. - - Note: - The size of the **Reading_Array** must be at least the size that you - specify for the **Array_Size** parameter. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - reading_array = self._interpreter.fetch_multi_point(maximum_time, array_size) - return reading_array - - @ivi_synchronized - def fetch_waveform(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''fetch_waveform - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of - values from a previously initiated waveform acquisition. You must call - _initiate before calling this method. - - Args: - array_size (int): Specifies the number of waveform points to return. You specify the total - number of points that the DMM acquires in the **Waveform Points** - parameter of configure_waveform_acquisition. The default value is - 1. - - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - waveform_array (array.array("d")): **Waveform Array** is an array of measurement values stored in waveform - data type. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - waveform_array = self._interpreter.fetch_waveform(maximum_time, array_size) - return waveform_array - - @ivi_synchronized - def fetch_waveform_into(self, waveform_array, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''fetch_waveform_into - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of - values from a previously initiated waveform acquisition. You must call - _initiate before calling this method. - - Args: - waveform_array (numpy.array(dtype=numpy.float64)): **Waveform Array** is an array of measurement values stored in waveform - data type. - - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - import numpy - - if type(waveform_array) is not numpy.ndarray: - raise TypeError('waveform_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_array))) - if numpy.isfortran(waveform_array) is True: - raise TypeError('waveform_array must be in C-order') - if waveform_array.dtype is not numpy.dtype('float64'): - raise TypeError('waveform_array must be numpy.ndarray of dtype=float64, is ' + str(waveform_array.dtype)) - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - self._interpreter.fetch_waveform_into(waveform_array, maximum_time) - - @ivi_synchronized - def _get_cal_date_and_time(self, cal_type): - r'''_get_cal_date_and_time - - Returns the date and time of the last calibration performed. - - Note: The NI 4050 and NI 4060 are not supported. - - Args: - cal_type (int): Specifies the type of calibration performed (external or - self-calibration). - - +-----------------------------------+---+----------------------+ - | NIDMM_VAL_INTERNAL_AREA (default) | 0 | Self-Calibration | - +-----------------------------------+---+----------------------+ - | NIDMM_VAL_EXTERNAL_AREA | 1 | External Calibration | - +-----------------------------------+---+----------------------+ - - Note: The NI 4065 does not support self-calibration. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - month (int): Indicates the **month** of the last calibration. - - day (int): Indicates the **day** of the last calibration. - - year (int): Indicates the **year** of the last calibration. - - hour (int): Indicates the **hour** of the last calibration. - - minute (int): Indicates the **minute** of the last calibration. - - ''' - month, day, year, hour, minute = self._interpreter.get_cal_date_and_time(cal_type) - return month, day, year, hour, minute - - @ivi_synchronized - def get_dev_temp(self, options=""): - r'''get_dev_temp - - Returns the current **Temperature** of the device. - - Note: The NI 4050 and NI 4060 are not supported. - - Args: - options (str): Reserved. - - - Returns: - temperature (float): Returns the current **temperature** of the device. - - ''' - temperature = self._interpreter.get_dev_temp(options) - return temperature - - @ivi_synchronized - def get_ext_cal_recommended_interval(self): - r'''get_ext_cal_recommended_interval - - Returns the recommended interval between external recalibration in - **Months**. - - Note: The NI 4050 and NI 4060 are not supported. - - Returns: - months (hightime.timedelta): Returns the recommended number of **months** between external - calibrations. - - ''' - months = self._interpreter.get_ext_cal_recommended_interval() - return _converters.convert_month_to_timedelta(months) - - @ivi_synchronized - def get_cal_date_and_time(self, cal_type): - '''get_cal_date_and_time - - Returns the date and time of the last calibration performed. - - Note: The NI 4050 and NI 4060 are not supported. - - Args: - cal_type (int): Specifies the type of calibration performed (external or self-calibration). - - +-----------------------------------+---+----------------------+ - | NIDMM_VAL_INTERNAL_AREA (default) | 0 | Self-Calibration | - +-----------------------------------+---+----------------------+ - | NIDMM_VAL_EXTERNAL_AREA | 1 | External Calibration | - +-----------------------------------+---+----------------------+ - - Note: The NI 4065 does not support self-calibration. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. - - ''' - month, day, year, hour, minute = self._get_cal_date_and_time(cal_type) - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def get_last_cal_temp(self, cal_type): - r'''get_last_cal_temp - - Returns the **Temperature** during the last calibration procedure. - - Note: The NI 4050 and NI 4060 are not supported. - - Args: - cal_type (int): Specifies the type of calibration performed (external or - self-calibration). - - +-----------------------------------+---+----------------------+ - | NIDMM_VAL_INTERNAL_AREA (default) | 0 | Self-Calibration | - +-----------------------------------+---+----------------------+ - | NIDMM_VAL_EXTERNAL_AREA | 1 | External Calibration | - +-----------------------------------+---+----------------------+ - - Note: The NI 4065 does not support self-calibration. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - temperature (float): Returns the **temperature** during the last calibration. - - ''' - temperature = self._interpreter.get_last_cal_temp(cal_type) - return temperature - - @ivi_synchronized - def get_self_cal_supported(self): - r'''get_self_cal_supported - - Returns a Boolean value that expresses whether or not the DMM that you - are using can perform self-calibration. - - Returns: - self_cal_supported (bool): Returns whether Self Cal is supported for the device specified by the - given session. - - +-------+---+-------------------------------------------------------------+ - | True | 1 | The DMM that you are using can perform self-calibration. | - +-------+---+-------------------------------------------------------------+ - | False | 0 | The DMM that you are using cannot perform self-calibration. | - +-------+---+-------------------------------------------------------------+ - - ''' - self_cal_supported = self._interpreter.get_self_cal_supported() - return self_cal_supported - - @ivi_synchronized - def import_attribute_configuration_buffer(self, configuration): - r'''import_attribute_configuration_buffer - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - Args: - configuration (bytes): Specifies the byte array buffer that contains the property - configuration to import. - - ''' - configuration = _converters.convert_to_bytes(configuration) - self._interpreter.import_attribute_configuration_buffer(configuration) - - @ivi_synchronized - def import_attribute_configuration_file(self, file_path): - r'''import_attribute_configuration_file - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers. - - **Coercion Behavior for Certain Devices** - - Imported and exported property configurations contain coerced values - for the following NI‑DMM devices: - - - PXI/PCI/PCIe/USB‑4065 - - PXI/PCI‑4070 - - PXI‑4071 - - PXI‑4072 - - NI‑DMM coerces property values when the value you set is within the - allowed range for the property but is not one of the discrete valid - values the property supports. For example, for a property that - coerces values up, if you choose a value of 4 when the adjacent valid - values are 1 and 10, the property coerces the value to 10. - - **Related Topics:** - - `Using Properties and Properties with - NI‑DMM `__ - - `Setting Properties Before Reading - Properties `__ - - Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. - - Args: - file_path (str): Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:**\ .nidmmconfig - - ''' - self._interpreter.import_attribute_configuration_file(file_path) - - def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): - r'''_init_with_options - - This method completes the following tasks: - - - Creates a new IVI instrument driver session and, optionally, sets the - initial state of the following session properties: - RANGE_CHECK, QUERY_INSTR_STATUS, - CACHE, simulate, - RECORD_COERCIONS. - - Opens a session to the device you specify for the **Resource_Name** - parameter. If the **ID_Query** parameter is set to True, this - method queries the instrument ID and checks that it is valid for - this instrument driver. - - If the **Reset_Device** parameter is set to True, this method - resets the instrument to a known state. Sends initialization commands - to set the instrument to the state necessary for the operation of the - instrument driver. - - Returns a ViSession handle that you use to identify the instrument in - all subsequent instrument driver method calls. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - resource_name (str): Caution: - All IVI names for the **Resource_Name**, such as logical names or - virtual names, are case-sensitive. If you use logical names, driver - session names, or virtual names in your program, you must make sure that - the name you use matches the name in the IVI Configuration Store file - exactly, without any variations in the case of the characters in the - name. - - | Contains the **resource_name** of the device to initialize. The - **resource_name** is assigned in Measurement & Automation Explorer - (MAX). Refer to `Related - Documentation `__ - for the *NI Digital Multimeters Getting Started Guide* for more - information about configuring and testing the DMM in MAX. - | Valid Syntax: - - - NI-DAQmx name - - DAQ::NI-DAQmx name[::INSTR] - - DAQ::Traditional NI-DAQ device number[::INSTR] - - IVI logical name - - id_query (bool): Verifies that the device you initialize is one that the driver supports. - NI-DMM automatically performs this query, so setting this parameter is - not necessary. - Defined Values: - - +----------------+---+------------------+ - | True (default) | 1 | Perform ID Query | - +----------------+---+------------------+ - | False | 0 | Skip ID Query | - +----------------+---+------------------+ - - reset_device (bool): Specifies whether to reset the instrument during the initialization - procedure. - Defined Values: - - +----------------+---+--------------+ - | True (default) | 1 | Reset Device | - +----------------+---+--------------+ - | False | 0 | Don't Reset | - +----------------+---+--------------+ - - option_string (dict): | Sets the initial value of certain properties for the session. The - following table specifies the property name, property constant, and - default value for each property that you can use in this parameter: - - The format of this string is, "AttributeName=Value." To set multiple - properties, separate their assignments with a comma. - - If you pass NULL or an empty string for this parameter, the session uses - the default values for the properties. You can override the default - values by assigning a value explicitly in an **option_string** - parameter. You do not have to specify all of the properties and may - leave any of them out (those left out use the default value). - - Refer to `Simulating NI Digital - Multimeters `__ for more - information. - - +------------------+--------------------+-------------------+----+ - | Check | RANGE_CHECK | True | 1 | - +------------------+--------------------+-------------------+----+ - | QueryInstrStatus | QUERY_INSTR_STATUS | False | 0 | - +------------------+--------------------+-------------------+----+ - | Cache | CACHE | True | 1 | - +------------------+--------------------+-------------------+----+ - | Simulate | simulate | False | 0 | - +------------------+--------------------+-------------------+----+ - | RecordCoercions | RECORD_COERCIONS | False | 0 | - +------------------+--------------------+-------------------+----+ - | DriverSetup | driver_setup | "" (empty string) | "" | - +------------------+--------------------+-------------------+----+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - - Returns: - vi (int): Returns a ViSession handle that you use to identify the instrument in - all subsequent instrument driver method calls. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) - return vi - - @ivi_synchronized - def _initiate(self): - r'''_initiate - - Initiates an acquisition. After you call this method, the DMM leaves - the Idle state and enters the Wait-for-Trigger state. If trigger is set - to Immediate mode, the DMM begins acquiring measurement data. Use - fetch, fetch_multi_point, or fetch_waveform to - retrieve the measurement data. - ''' - self._interpreter.initiate() - - @ivi_synchronized - def perform_open_cable_comp(self): - r'''perform_open_cable_comp - - For the NI 4082 and NI 4072 only, performs the open cable compensation - measurements for the current capacitance/inductance range, and returns - open cable compensation **Conductance** and **Susceptance** values. You - can use the return values of this method as inputs to - ConfigureOpenCableCompValues. - - This method returns an error if the value of the method - property is not set to Method.CAPACITANCE (1005) or - Method.INDUCTANCE (1006). - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Returns: - conductance (float): **conductance** is the measured value of open cable compensation - **conductance**. - - susceptance (float): **susceptance** is the measured value of open cable compensation - **susceptance**. - - ''' - conductance, susceptance = self._interpreter.perform_open_cable_comp() - return conductance, susceptance - - @ivi_synchronized - def perform_short_cable_comp(self): - r'''perform_short_cable_comp - - Performs the short cable compensation measurements for the current - capacitance/inductance range, and returns short cable compensation - **Resistance** and **Reactance** values. You can use the return values - of this method as inputs to ConfigureShortCableCompValues. - - This method returns an error if the value of the method - property is not set to Method.CAPACITANCE (1005) or - Method.INDUCTANCE (1006). - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Returns: - resistance (float): **resistance** is the measured value of short cable compensation - **resistance**. - - reactance (float): **reactance** is the measured value of short cable compensation - **reactance**. - - ''' - resistance, reactance = self._interpreter.perform_short_cable_comp() - return resistance, reactance - - @ivi_synchronized - def read(self, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''read - - Acquires a single measurement and returns the measured value in base units. - - Args: - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - reading (float): The measured value returned from the DMM. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - reading = self._interpreter.read(maximum_time) - return reading - - @ivi_synchronized - def read_multi_point(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''read_multi_point - - Acquires multiple measurements and returns an array of measured values. - The number of measurements the DMM makes is determined by the values you - specify for the **Trigger_Count** and **Sample_Count** parameters in - configure_multi_point. - - Args: - array_size (int): Specifies the number of measurements to acquire. The maximum number of - measurements for a finite acquisition is the (**Trigger Count** x - **Sample Count**) parameters in configure_multi_point. - - For continuous acquisitions, up to 100,000 points can be returned at - once. The number of measurements can be a subset. The valid range is any - positive ViInt32. The default value is 1. - - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - reading_array (array.array("d")): An array of measurement values. - - Note: - The size of the **Reading_Array** must be at least the size that you - specify for the **Array_Size** parameter. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - reading_array = self._interpreter.read_multi_point(maximum_time, array_size) - return reading_array - - @ivi_synchronized - def read_status(self): - r'''read_status - - Returns measurement backlog and acquisition status. Use this method to - determine how many measurements are available before calling - fetch, fetch_multi_point, or fetch_waveform. - - Note: The NI 4050 is not supported. - - Returns: - acquisition_backlog (int): The number of measurements available to be read. If the backlog - continues to increase, data is eventually overwritten, resulting in an - error. - - Note: - On the NI 4060, the **Backlog** does not increase when autoranging. On - the NI 4065, the **Backlog** does not increase when Range is set to AUTO - RANGE ON (-1), or before the first point is fetched when Range is set to - AUTO RANGE ONCE (-3). These behaviors are due to the autorange model of - the devices. - - acquisition_status (enums.AcquisitionStatus): Indicates status of the acquisition. The following table shows the - acquisition states: - - +---+----------------------------+ - | 0 | Running | - +---+----------------------------+ - | 1 | Finished with backlog | - +---+----------------------------+ - | 2 | Finished with no backlog | - +---+----------------------------+ - | 3 | Paused | - +---+----------------------------+ - | 4 | No acquisition in progress | - +---+----------------------------+ - - ''' - acquisition_backlog, acquisition_status = self._interpreter.read_status() - return acquisition_backlog, acquisition_status - - @ivi_synchronized - def read_waveform(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): - r'''read_waveform - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, acquires a waveform - and returns data as an array of values or as a waveform data type. The - number of elements in the **Waveform_Array** is determined by the - values you specify for the **Waveform_Points** parameter in - configure_waveform_acquisition. - - Args: - array_size (int): Specifies the number of waveform points to return. You specify the total - number of points that the DMM acquires in the **Waveform Points** - parameter of configure_waveform_acquisition. The default value is - 1. - - maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in - milliseconds. If the method does not complete within this time - interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED - error code. This may happen if an external trigger has not been - received, or if the specified timeout is not long enough for the - acquisition to complete. - - The valid range is 0–86400000. The default value is - NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout - automatically. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - waveform_array (array.array("d")): An array of measurement values. - - Note: - The size of the **Waveform_Array** must be at least the size that you - specify for the **Array_Size** parameter. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - waveform_array = self._interpreter.read_waveform(maximum_time, array_size) - return waveform_array - - @ivi_synchronized - def reset_with_defaults(self): - r'''reset_with_defaults - - Resets the instrument to a known state and sends initialization commands - to the DMM. The initialization commands set the DMM settings to the - state necessary for the operation of NI-DMM. All user-defined default - values associated with a logical name are applied after setting the DMM. - ''' - self._interpreter.reset_with_defaults() - - @ivi_synchronized - def self_cal(self): - r'''self_cal - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, executes the - self-calibration routine to maintain measurement accuracy. - - Note: - This method calls reset, and any configurations previous to - the call will be lost. All properties will be set to their default - values after the call returns. - ''' - self._interpreter.self_cal() - - @ivi_synchronized - def send_software_trigger(self): - r'''send_software_trigger - - Sends a command to trigger the DMM. Call this method if you have - configured either the trigger_source or - sample_trigger properties. If the - trigger_source and/or sample_trigger - properties are set to NIDMM_VAL_EXTERNAL or NIDMM_VAL_TTL\ *n*, you - can use this method to override the trigger source that you configured - and trigger the device. The NI 4050 and NI 4060 are not supported. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - self._interpreter.send_software_trigger() - - def _close(self): - r'''_close - - Closes the specified session and deallocates resources that it reserved. - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Performs a self-test on the DMM to ensure that the DMM is functioning - properly. Self-test does not calibrate the DMM. Zero - indicates success. - - On the NI 4080/4082 and NI 4070/4072, the error code 1013 indicates that - you should check the fuse and replace it, if necessary. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - Note: Self-test does not check the fuse on the NI 4065, NI 4071, and NI 4081. Hence, even if the fuse is blown on the device, self-test does not return error code 1013. - - Note: This method calls reset, and any configurations previous to the call will be lost. All properties will be set to their default values after the call returns. - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def reset(self): - r'''reset - - Resets the instrument to a known state and sends initialization commands - to the instrument. The initialization commands set instrument settings - to the state necessary for the operation of the instrument driver. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Performs a self-test on the DMM to ensure that the DMM is functioning - properly. Self-test does not calibrate the DMM. - - Note: - This method calls reset, and any configurations previous to - the call will be lost. All properties will be set to their default - values after the call returns. - - Returns: - self_test_result (int): Contains the value returned from the instrument self-test. Zero - indicates success. - - On the NI 4080/4082 and NI 4070/4072, the error code 1013 indicates that - you should check the fuse and replace it, if necessary. - - Note: - Self-test does not check the fuse on the NI 4065, NI 4071, and - NI 4081. Hence, even if the fuse is blown on the device, self-test does - not return error code 1013. - - self_test_message (str): This parameter contains the string returned from the instrument - self-test. The array must contain at least 256 elements. - - For the NI 4050 and NI 4060, the error codes returned for self-test - failures include the following: - - - NIDMM_ERROR_AC_TEST_FAILURE - - NIDMM_ERROR_DC_TEST_FAILURE - - NIDMM_ERROR_RESISTANCE_TEST_FAILURE - - These error codes indicate that the DMM should be repaired. - - For the NI 4080/4081/4082 and the NI 4070/4071/4072, the error code - returned for a self-test failure is NIDMM_ERROR_SELF_TEST_FAILURE. - This error code indicates that the DMM should be repaired. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/nidmm/nidmm/unit_tests/_matchers.py b/generated/nidmm/nidmm/unit_tests/_matchers.py deleted file mode 100644 index fa56c4cc55..0000000000 --- a/generated/nidmm/nidmm/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nidmm._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nidmm/nidmm/unit_tests/_mock_helper.py b/generated/nidmm/nidmm/unit_tests/_mock_helper.py deleted file mode 100644 index d648475dc2..0000000000 --- a/generated/nidmm/nidmm/unit_tests/_mock_helper.py +++ /dev/null @@ -1,745 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['Abort'] = {} - self._defaults['Abort']['return'] = 0 - self._defaults['ConfigureMeasurementAbsolute'] = {} - self._defaults['ConfigureMeasurementAbsolute']['return'] = 0 - self._defaults['ConfigureMeasurementDigits'] = {} - self._defaults['ConfigureMeasurementDigits']['return'] = 0 - self._defaults['ConfigureMultiPoint'] = {} - self._defaults['ConfigureMultiPoint']['return'] = 0 - self._defaults['ConfigureRTDCustom'] = {} - self._defaults['ConfigureRTDCustom']['return'] = 0 - self._defaults['ConfigureRTDType'] = {} - self._defaults['ConfigureRTDType']['return'] = 0 - self._defaults['ConfigureThermistorCustom'] = {} - self._defaults['ConfigureThermistorCustom']['return'] = 0 - self._defaults['ConfigureThermocouple'] = {} - self._defaults['ConfigureThermocouple']['return'] = 0 - self._defaults['ConfigureTrigger'] = {} - self._defaults['ConfigureTrigger']['return'] = 0 - self._defaults['ConfigureWaveformAcquisition'] = {} - self._defaults['ConfigureWaveformAcquisition']['return'] = 0 - self._defaults['Disable'] = {} - self._defaults['Disable']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer'] = {} - self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None - self._defaults['ExportAttributeConfigurationFile'] = {} - self._defaults['ExportAttributeConfigurationFile']['return'] = 0 - self._defaults['Fetch'] = {} - self._defaults['Fetch']['return'] = 0 - self._defaults['Fetch']['reading'] = None - self._defaults['FetchMultiPoint'] = {} - self._defaults['FetchMultiPoint']['return'] = 0 - self._defaults['FetchMultiPoint']['readingArray'] = None - self._defaults['FetchMultiPoint']['actualNumberOfPoints'] = None - self._defaults['FetchWaveform'] = {} - self._defaults['FetchWaveform']['return'] = 0 - self._defaults['FetchWaveform']['waveformArray'] = None - self._defaults['FetchWaveform']['actualNumberOfPoints'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['attributeValue'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['attributeValue'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['attributeValue'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['attributeValue'] = None - self._defaults['GetCalDateAndTime'] = {} - self._defaults['GetCalDateAndTime']['return'] = 0 - self._defaults['GetCalDateAndTime']['month'] = None - self._defaults['GetCalDateAndTime']['day'] = None - self._defaults['GetCalDateAndTime']['year'] = None - self._defaults['GetCalDateAndTime']['hour'] = None - self._defaults['GetCalDateAndTime']['minute'] = None - self._defaults['GetDevTemp'] = {} - self._defaults['GetDevTemp']['return'] = 0 - self._defaults['GetDevTemp']['temperature'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['description'] = None - self._defaults['GetExtCalRecommendedInterval'] = {} - self._defaults['GetExtCalRecommendedInterval']['return'] = 0 - self._defaults['GetExtCalRecommendedInterval']['months'] = None - self._defaults['GetLastCalTemp'] = {} - self._defaults['GetLastCalTemp']['return'] = 0 - self._defaults['GetLastCalTemp']['temperature'] = None - self._defaults['GetSelfCalSupported'] = {} - self._defaults['GetSelfCalSupported']['return'] = 0 - self._defaults['GetSelfCalSupported']['selfCalSupported'] = None - self._defaults['ImportAttributeConfigurationBuffer'] = {} - self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ImportAttributeConfigurationFile'] = {} - self._defaults['ImportAttributeConfigurationFile']['return'] = 0 - self._defaults['InitWithOptions'] = {} - self._defaults['InitWithOptions']['return'] = 0 - self._defaults['InitWithOptions']['vi'] = None - self._defaults['Initiate'] = {} - self._defaults['Initiate']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['PerformOpenCableComp'] = {} - self._defaults['PerformOpenCableComp']['return'] = 0 - self._defaults['PerformOpenCableComp']['conductance'] = None - self._defaults['PerformOpenCableComp']['susceptance'] = None - self._defaults['PerformShortCableComp'] = {} - self._defaults['PerformShortCableComp']['return'] = 0 - self._defaults['PerformShortCableComp']['resistance'] = None - self._defaults['PerformShortCableComp']['reactance'] = None - self._defaults['Read'] = {} - self._defaults['Read']['return'] = 0 - self._defaults['Read']['reading'] = None - self._defaults['ReadMultiPoint'] = {} - self._defaults['ReadMultiPoint']['return'] = 0 - self._defaults['ReadMultiPoint']['readingArray'] = None - self._defaults['ReadMultiPoint']['actualNumberOfPoints'] = None - self._defaults['ReadStatus'] = {} - self._defaults['ReadStatus']['return'] = 0 - self._defaults['ReadStatus']['acquisitionBacklog'] = None - self._defaults['ReadStatus']['acquisitionStatus'] = None - self._defaults['ReadWaveform'] = {} - self._defaults['ReadWaveform']['return'] = 0 - self._defaults['ReadWaveform']['waveformArray'] = None - self._defaults['ReadWaveform']['actualNumberOfPoints'] = None - self._defaults['ResetWithDefaults'] = {} - self._defaults['ResetWithDefaults']['return'] = 0 - self._defaults['SelfCal'] = {} - self._defaults['SelfCal']['return'] = 0 - self._defaults['SendSoftwareTrigger'] = {} - self._defaults['SendSoftwareTrigger']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niDMM_Abort(self, vi): # noqa: N802 - if self._defaults['Abort']['return'] != 0: - return self._defaults['Abort']['return'] - return self._defaults['Abort']['return'] - - def niDMM_ConfigureMeasurementAbsolute(self, vi, measurement_function, range, resolution_absolute): # noqa: N802 - if self._defaults['ConfigureMeasurementAbsolute']['return'] != 0: - return self._defaults['ConfigureMeasurementAbsolute']['return'] - return self._defaults['ConfigureMeasurementAbsolute']['return'] - - def niDMM_ConfigureMeasurementDigits(self, vi, measurement_function, range, resolution_digits): # noqa: N802 - if self._defaults['ConfigureMeasurementDigits']['return'] != 0: - return self._defaults['ConfigureMeasurementDigits']['return'] - return self._defaults['ConfigureMeasurementDigits']['return'] - - def niDMM_ConfigureMultiPoint(self, vi, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 - if self._defaults['ConfigureMultiPoint']['return'] != 0: - return self._defaults['ConfigureMultiPoint']['return'] - return self._defaults['ConfigureMultiPoint']['return'] - - def niDMM_ConfigureRTDCustom(self, vi, rtd_a, rtd_b, rtd_c): # noqa: N802 - if self._defaults['ConfigureRTDCustom']['return'] != 0: - return self._defaults['ConfigureRTDCustom']['return'] - return self._defaults['ConfigureRTDCustom']['return'] - - def niDMM_ConfigureRTDType(self, vi, rtd_type, rtd_resistance): # noqa: N802 - if self._defaults['ConfigureRTDType']['return'] != 0: - return self._defaults['ConfigureRTDType']['return'] - return self._defaults['ConfigureRTDType']['return'] - - def niDMM_ConfigureThermistorCustom(self, vi, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 - if self._defaults['ConfigureThermistorCustom']['return'] != 0: - return self._defaults['ConfigureThermistorCustom']['return'] - return self._defaults['ConfigureThermistorCustom']['return'] - - def niDMM_ConfigureThermocouple(self, vi, thermocouple_type, reference_junction_type): # noqa: N802 - if self._defaults['ConfigureThermocouple']['return'] != 0: - return self._defaults['ConfigureThermocouple']['return'] - return self._defaults['ConfigureThermocouple']['return'] - - def niDMM_ConfigureTrigger(self, vi, trigger_source, trigger_delay): # noqa: N802 - if self._defaults['ConfigureTrigger']['return'] != 0: - return self._defaults['ConfigureTrigger']['return'] - return self._defaults['ConfigureTrigger']['return'] - - def niDMM_ConfigureWaveformAcquisition(self, vi, measurement_function, range, rate, waveform_points): # noqa: N802 - if self._defaults['ConfigureWaveformAcquisition']['return'] != 0: - return self._defaults['ConfigureWaveformAcquisition']['return'] - return self._defaults['ConfigureWaveformAcquisition']['return'] - - def niDMM_Disable(self, vi): # noqa: N802 - if self._defaults['Disable']['return'] != 0: - return self._defaults['Disable']['return'] - return self._defaults['Disable']['return'] - - def niDMM_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - # configuration - if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: - raise MockFunctionCallError("niDMM_ExportAttributeConfigurationBuffer", param='configuration') - if size.value == 0: - return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) - try: - configuration_ref = configuration.contents - except AttributeError: - configuration_ref = configuration - for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): - configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - - def niDMM_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ExportAttributeConfigurationFile']['return'] - return self._defaults['ExportAttributeConfigurationFile']['return'] - - def niDMM_Fetch(self, vi, maximum_time, reading): # noqa: N802 - if self._defaults['Fetch']['return'] != 0: - return self._defaults['Fetch']['return'] - # reading - if self._defaults['Fetch']['reading'] is None: - raise MockFunctionCallError("niDMM_Fetch", param='reading') - if reading is not None: - reading.contents.value = self._defaults['Fetch']['reading'] - return self._defaults['Fetch']['return'] - - def niDMM_FetchMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 - if self._defaults['FetchMultiPoint']['return'] != 0: - return self._defaults['FetchMultiPoint']['return'] - # reading_array - if self._defaults['FetchMultiPoint']['readingArray'] is None: - raise MockFunctionCallError("niDMM_FetchMultiPoint", param='readingArray') - test_value = self._defaults['FetchMultiPoint']['readingArray'] - try: - reading_array_ref = reading_array.contents - except AttributeError: - reading_array_ref = reading_array - assert len(reading_array_ref) >= len(test_value) - for i in range(len(test_value)): - reading_array_ref[i] = test_value[i] - # actual_number_of_points - if self._defaults['FetchMultiPoint']['actualNumberOfPoints'] is None: - raise MockFunctionCallError("niDMM_FetchMultiPoint", param='actualNumberOfPoints') - if actual_number_of_points is not None: - actual_number_of_points.contents.value = self._defaults['FetchMultiPoint']['actualNumberOfPoints'] - return self._defaults['FetchMultiPoint']['return'] - - def niDMM_FetchWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 - if self._defaults['FetchWaveform']['return'] != 0: - return self._defaults['FetchWaveform']['return'] - # waveform_array - if self._defaults['FetchWaveform']['waveformArray'] is None: - raise MockFunctionCallError("niDMM_FetchWaveform", param='waveformArray') - test_value = self._defaults['FetchWaveform']['waveformArray'] - try: - waveform_array_ref = waveform_array.contents - except AttributeError: - waveform_array_ref = waveform_array - assert len(waveform_array_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_array_ref[i] = test_value[i] - # actual_number_of_points - if self._defaults['FetchWaveform']['actualNumberOfPoints'] is None: - raise MockFunctionCallError("niDMM_FetchWaveform", param='actualNumberOfPoints') - if actual_number_of_points is not None: - actual_number_of_points.contents.value = self._defaults['FetchWaveform']['actualNumberOfPoints'] - return self._defaults['FetchWaveform']['return'] - - def niDMM_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # attribute_value - if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: - raise MockFunctionCallError("niDMM_GetAttributeViBoolean", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niDMM_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # attribute_value - if self._defaults['GetAttributeViInt32']['attributeValue'] is None: - raise MockFunctionCallError("niDMM_GetAttributeViInt32", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] - return self._defaults['GetAttributeViInt32']['return'] - - def niDMM_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # attribute_value - if self._defaults['GetAttributeViReal64']['attributeValue'] is None: - raise MockFunctionCallError("niDMM_GetAttributeViReal64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] - return self._defaults['GetAttributeViReal64']['return'] - - def niDMM_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # attribute_value - if self._defaults['GetAttributeViString']['attributeValue'] is None: - raise MockFunctionCallError("niDMM_GetAttributeViString", param='attributeValue') - if buffer_size.value == 0: - return len(self._defaults['GetAttributeViString']['attributeValue']) - attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niDMM_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 - if self._defaults['GetCalDateAndTime']['return'] != 0: - return self._defaults['GetCalDateAndTime']['return'] - # month - if self._defaults['GetCalDateAndTime']['month'] is None: - raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetCalDateAndTime']['month'] - # day - if self._defaults['GetCalDateAndTime']['day'] is None: - raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetCalDateAndTime']['day'] - # year - if self._defaults['GetCalDateAndTime']['year'] is None: - raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetCalDateAndTime']['year'] - # hour - if self._defaults['GetCalDateAndTime']['hour'] is None: - raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetCalDateAndTime']['hour'] - # minute - if self._defaults['GetCalDateAndTime']['minute'] is None: - raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetCalDateAndTime']['minute'] - return self._defaults['GetCalDateAndTime']['return'] - - def niDMM_GetDevTemp(self, vi, options, temperature): # noqa: N802 - if self._defaults['GetDevTemp']['return'] != 0: - return self._defaults['GetDevTemp']['return'] - # temperature - if self._defaults['GetDevTemp']['temperature'] is None: - raise MockFunctionCallError("niDMM_GetDevTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetDevTemp']['temperature'] - return self._defaults['GetDevTemp']['return'] - - def niDMM_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niDMM_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # description - if self._defaults['GetError']['description'] is None: - raise MockFunctionCallError("niDMM_GetError", param='description') - if buffer_size.value == 0: - return len(self._defaults['GetError']['description']) - description.value = self._defaults['GetError']['description'].encode('ascii') - return self._defaults['GetError']['return'] - - def niDMM_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: - return self._defaults['GetExtCalRecommendedInterval']['return'] - # months - if self._defaults['GetExtCalRecommendedInterval']['months'] is None: - raise MockFunctionCallError("niDMM_GetExtCalRecommendedInterval", param='months') - if months is not None: - months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] - return self._defaults['GetExtCalRecommendedInterval']['return'] - - def niDMM_GetLastCalTemp(self, vi, cal_type, temperature): # noqa: N802 - if self._defaults['GetLastCalTemp']['return'] != 0: - return self._defaults['GetLastCalTemp']['return'] - # temperature - if self._defaults['GetLastCalTemp']['temperature'] is None: - raise MockFunctionCallError("niDMM_GetLastCalTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetLastCalTemp']['temperature'] - return self._defaults['GetLastCalTemp']['return'] - - def niDMM_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 - if self._defaults['GetSelfCalSupported']['return'] != 0: - return self._defaults['GetSelfCalSupported']['return'] - # self_cal_supported - if self._defaults['GetSelfCalSupported']['selfCalSupported'] is None: - raise MockFunctionCallError("niDMM_GetSelfCalSupported", param='selfCalSupported') - if self_cal_supported is not None: - self_cal_supported.contents.value = self._defaults['GetSelfCalSupported']['selfCalSupported'] - return self._defaults['GetSelfCalSupported']['return'] - - def niDMM_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 - if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - - def niDMM_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ImportAttributeConfigurationFile']['return'] - return self._defaults['ImportAttributeConfigurationFile']['return'] - - def niDMM_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 - if self._defaults['InitWithOptions']['return'] != 0: - return self._defaults['InitWithOptions']['return'] - # vi - if self._defaults['InitWithOptions']['vi'] is None: - raise MockFunctionCallError("niDMM_InitWithOptions", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitWithOptions']['vi'] - return self._defaults['InitWithOptions']['return'] - - def niDMM_Initiate(self, vi): # noqa: N802 - if self._defaults['Initiate']['return'] != 0: - return self._defaults['Initiate']['return'] - return self._defaults['Initiate']['return'] - - def niDMM_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niDMM_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niDMM_PerformOpenCableComp(self, vi, conductance, susceptance): # noqa: N802 - if self._defaults['PerformOpenCableComp']['return'] != 0: - return self._defaults['PerformOpenCableComp']['return'] - # conductance - if self._defaults['PerformOpenCableComp']['conductance'] is None: - raise MockFunctionCallError("niDMM_PerformOpenCableComp", param='conductance') - if conductance is not None: - conductance.contents.value = self._defaults['PerformOpenCableComp']['conductance'] - # susceptance - if self._defaults['PerformOpenCableComp']['susceptance'] is None: - raise MockFunctionCallError("niDMM_PerformOpenCableComp", param='susceptance') - if susceptance is not None: - susceptance.contents.value = self._defaults['PerformOpenCableComp']['susceptance'] - return self._defaults['PerformOpenCableComp']['return'] - - def niDMM_PerformShortCableComp(self, vi, resistance, reactance): # noqa: N802 - if self._defaults['PerformShortCableComp']['return'] != 0: - return self._defaults['PerformShortCableComp']['return'] - # resistance - if self._defaults['PerformShortCableComp']['resistance'] is None: - raise MockFunctionCallError("niDMM_PerformShortCableComp", param='resistance') - if resistance is not None: - resistance.contents.value = self._defaults['PerformShortCableComp']['resistance'] - # reactance - if self._defaults['PerformShortCableComp']['reactance'] is None: - raise MockFunctionCallError("niDMM_PerformShortCableComp", param='reactance') - if reactance is not None: - reactance.contents.value = self._defaults['PerformShortCableComp']['reactance'] - return self._defaults['PerformShortCableComp']['return'] - - def niDMM_Read(self, vi, maximum_time, reading): # noqa: N802 - if self._defaults['Read']['return'] != 0: - return self._defaults['Read']['return'] - # reading - if self._defaults['Read']['reading'] is None: - raise MockFunctionCallError("niDMM_Read", param='reading') - if reading is not None: - reading.contents.value = self._defaults['Read']['reading'] - return self._defaults['Read']['return'] - - def niDMM_ReadMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 - if self._defaults['ReadMultiPoint']['return'] != 0: - return self._defaults['ReadMultiPoint']['return'] - # reading_array - if self._defaults['ReadMultiPoint']['readingArray'] is None: - raise MockFunctionCallError("niDMM_ReadMultiPoint", param='readingArray') - test_value = self._defaults['ReadMultiPoint']['readingArray'] - try: - reading_array_ref = reading_array.contents - except AttributeError: - reading_array_ref = reading_array - assert len(reading_array_ref) >= len(test_value) - for i in range(len(test_value)): - reading_array_ref[i] = test_value[i] - # actual_number_of_points - if self._defaults['ReadMultiPoint']['actualNumberOfPoints'] is None: - raise MockFunctionCallError("niDMM_ReadMultiPoint", param='actualNumberOfPoints') - if actual_number_of_points is not None: - actual_number_of_points.contents.value = self._defaults['ReadMultiPoint']['actualNumberOfPoints'] - return self._defaults['ReadMultiPoint']['return'] - - def niDMM_ReadStatus(self, vi, acquisition_backlog, acquisition_status): # noqa: N802 - if self._defaults['ReadStatus']['return'] != 0: - return self._defaults['ReadStatus']['return'] - # acquisition_backlog - if self._defaults['ReadStatus']['acquisitionBacklog'] is None: - raise MockFunctionCallError("niDMM_ReadStatus", param='acquisitionBacklog') - if acquisition_backlog is not None: - acquisition_backlog.contents.value = self._defaults['ReadStatus']['acquisitionBacklog'] - # acquisition_status - if self._defaults['ReadStatus']['acquisitionStatus'] is None: - raise MockFunctionCallError("niDMM_ReadStatus", param='acquisitionStatus') - if acquisition_status is not None: - acquisition_status.contents.value = self._defaults['ReadStatus']['acquisitionStatus'] - return self._defaults['ReadStatus']['return'] - - def niDMM_ReadWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 - if self._defaults['ReadWaveform']['return'] != 0: - return self._defaults['ReadWaveform']['return'] - # waveform_array - if self._defaults['ReadWaveform']['waveformArray'] is None: - raise MockFunctionCallError("niDMM_ReadWaveform", param='waveformArray') - test_value = self._defaults['ReadWaveform']['waveformArray'] - try: - waveform_array_ref = waveform_array.contents - except AttributeError: - waveform_array_ref = waveform_array - assert len(waveform_array_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_array_ref[i] = test_value[i] - # actual_number_of_points - if self._defaults['ReadWaveform']['actualNumberOfPoints'] is None: - raise MockFunctionCallError("niDMM_ReadWaveform", param='actualNumberOfPoints') - if actual_number_of_points is not None: - actual_number_of_points.contents.value = self._defaults['ReadWaveform']['actualNumberOfPoints'] - return self._defaults['ReadWaveform']['return'] - - def niDMM_ResetWithDefaults(self, vi): # noqa: N802 - if self._defaults['ResetWithDefaults']['return'] != 0: - return self._defaults['ResetWithDefaults']['return'] - return self._defaults['ResetWithDefaults']['return'] - - def niDMM_SelfCal(self, vi): # noqa: N802 - if self._defaults['SelfCal']['return'] != 0: - return self._defaults['SelfCal']['return'] - return self._defaults['SelfCal']['return'] - - def niDMM_SendSoftwareTrigger(self, vi): # noqa: N802 - if self._defaults['SendSoftwareTrigger']['return'] != 0: - return self._defaults['SendSoftwareTrigger']['return'] - return self._defaults['SendSoftwareTrigger']['return'] - - def niDMM_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niDMM_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niDMM_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niDMM_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niDMM_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niDMM_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niDMM_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niDMM_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niDMM_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niDMM_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niDMM_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niDMM_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niDMM_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niDMM_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niDMM_Abort.side_effect = MockFunctionCallError("niDMM_Abort") - mock_library.niDMM_Abort.return_value = 0 - mock_library.niDMM_ConfigureMeasurementAbsolute.side_effect = MockFunctionCallError("niDMM_ConfigureMeasurementAbsolute") - mock_library.niDMM_ConfigureMeasurementAbsolute.return_value = 0 - mock_library.niDMM_ConfigureMeasurementDigits.side_effect = MockFunctionCallError("niDMM_ConfigureMeasurementDigits") - mock_library.niDMM_ConfigureMeasurementDigits.return_value = 0 - mock_library.niDMM_ConfigureMultiPoint.side_effect = MockFunctionCallError("niDMM_ConfigureMultiPoint") - mock_library.niDMM_ConfigureMultiPoint.return_value = 0 - mock_library.niDMM_ConfigureRTDCustom.side_effect = MockFunctionCallError("niDMM_ConfigureRTDCustom") - mock_library.niDMM_ConfigureRTDCustom.return_value = 0 - mock_library.niDMM_ConfigureRTDType.side_effect = MockFunctionCallError("niDMM_ConfigureRTDType") - mock_library.niDMM_ConfigureRTDType.return_value = 0 - mock_library.niDMM_ConfigureThermistorCustom.side_effect = MockFunctionCallError("niDMM_ConfigureThermistorCustom") - mock_library.niDMM_ConfigureThermistorCustom.return_value = 0 - mock_library.niDMM_ConfigureThermocouple.side_effect = MockFunctionCallError("niDMM_ConfigureThermocouple") - mock_library.niDMM_ConfigureThermocouple.return_value = 0 - mock_library.niDMM_ConfigureTrigger.side_effect = MockFunctionCallError("niDMM_ConfigureTrigger") - mock_library.niDMM_ConfigureTrigger.return_value = 0 - mock_library.niDMM_ConfigureWaveformAcquisition.side_effect = MockFunctionCallError("niDMM_ConfigureWaveformAcquisition") - mock_library.niDMM_ConfigureWaveformAcquisition.return_value = 0 - mock_library.niDMM_Disable.side_effect = MockFunctionCallError("niDMM_Disable") - mock_library.niDMM_Disable.return_value = 0 - mock_library.niDMM_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDMM_ExportAttributeConfigurationBuffer") - mock_library.niDMM_ExportAttributeConfigurationBuffer.return_value = 0 - mock_library.niDMM_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDMM_ExportAttributeConfigurationFile") - mock_library.niDMM_ExportAttributeConfigurationFile.return_value = 0 - mock_library.niDMM_Fetch.side_effect = MockFunctionCallError("niDMM_Fetch") - mock_library.niDMM_Fetch.return_value = 0 - mock_library.niDMM_FetchMultiPoint.side_effect = MockFunctionCallError("niDMM_FetchMultiPoint") - mock_library.niDMM_FetchMultiPoint.return_value = 0 - mock_library.niDMM_FetchWaveform.side_effect = MockFunctionCallError("niDMM_FetchWaveform") - mock_library.niDMM_FetchWaveform.return_value = 0 - mock_library.niDMM_GetAttributeViBoolean.side_effect = MockFunctionCallError("niDMM_GetAttributeViBoolean") - mock_library.niDMM_GetAttributeViBoolean.return_value = 0 - mock_library.niDMM_GetAttributeViInt32.side_effect = MockFunctionCallError("niDMM_GetAttributeViInt32") - mock_library.niDMM_GetAttributeViInt32.return_value = 0 - mock_library.niDMM_GetAttributeViReal64.side_effect = MockFunctionCallError("niDMM_GetAttributeViReal64") - mock_library.niDMM_GetAttributeViReal64.return_value = 0 - mock_library.niDMM_GetAttributeViString.side_effect = MockFunctionCallError("niDMM_GetAttributeViString") - mock_library.niDMM_GetAttributeViString.return_value = 0 - mock_library.niDMM_GetCalDateAndTime.side_effect = MockFunctionCallError("niDMM_GetCalDateAndTime") - mock_library.niDMM_GetCalDateAndTime.return_value = 0 - mock_library.niDMM_GetDevTemp.side_effect = MockFunctionCallError("niDMM_GetDevTemp") - mock_library.niDMM_GetDevTemp.return_value = 0 - mock_library.niDMM_GetError.side_effect = MockFunctionCallError("niDMM_GetError") - mock_library.niDMM_GetError.return_value = 0 - mock_library.niDMM_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niDMM_GetExtCalRecommendedInterval") - mock_library.niDMM_GetExtCalRecommendedInterval.return_value = 0 - mock_library.niDMM_GetLastCalTemp.side_effect = MockFunctionCallError("niDMM_GetLastCalTemp") - mock_library.niDMM_GetLastCalTemp.return_value = 0 - mock_library.niDMM_GetSelfCalSupported.side_effect = MockFunctionCallError("niDMM_GetSelfCalSupported") - mock_library.niDMM_GetSelfCalSupported.return_value = 0 - mock_library.niDMM_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDMM_ImportAttributeConfigurationBuffer") - mock_library.niDMM_ImportAttributeConfigurationBuffer.return_value = 0 - mock_library.niDMM_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDMM_ImportAttributeConfigurationFile") - mock_library.niDMM_ImportAttributeConfigurationFile.return_value = 0 - mock_library.niDMM_InitWithOptions.side_effect = MockFunctionCallError("niDMM_InitWithOptions") - mock_library.niDMM_InitWithOptions.return_value = 0 - mock_library.niDMM_Initiate.side_effect = MockFunctionCallError("niDMM_Initiate") - mock_library.niDMM_Initiate.return_value = 0 - mock_library.niDMM_LockSession.side_effect = MockFunctionCallError("niDMM_LockSession") - mock_library.niDMM_LockSession.return_value = 0 - mock_library.niDMM_PerformOpenCableComp.side_effect = MockFunctionCallError("niDMM_PerformOpenCableComp") - mock_library.niDMM_PerformOpenCableComp.return_value = 0 - mock_library.niDMM_PerformShortCableComp.side_effect = MockFunctionCallError("niDMM_PerformShortCableComp") - mock_library.niDMM_PerformShortCableComp.return_value = 0 - mock_library.niDMM_Read.side_effect = MockFunctionCallError("niDMM_Read") - mock_library.niDMM_Read.return_value = 0 - mock_library.niDMM_ReadMultiPoint.side_effect = MockFunctionCallError("niDMM_ReadMultiPoint") - mock_library.niDMM_ReadMultiPoint.return_value = 0 - mock_library.niDMM_ReadStatus.side_effect = MockFunctionCallError("niDMM_ReadStatus") - mock_library.niDMM_ReadStatus.return_value = 0 - mock_library.niDMM_ReadWaveform.side_effect = MockFunctionCallError("niDMM_ReadWaveform") - mock_library.niDMM_ReadWaveform.return_value = 0 - mock_library.niDMM_ResetWithDefaults.side_effect = MockFunctionCallError("niDMM_ResetWithDefaults") - mock_library.niDMM_ResetWithDefaults.return_value = 0 - mock_library.niDMM_SelfCal.side_effect = MockFunctionCallError("niDMM_SelfCal") - mock_library.niDMM_SelfCal.return_value = 0 - mock_library.niDMM_SendSoftwareTrigger.side_effect = MockFunctionCallError("niDMM_SendSoftwareTrigger") - mock_library.niDMM_SendSoftwareTrigger.return_value = 0 - mock_library.niDMM_SetAttributeViBoolean.side_effect = MockFunctionCallError("niDMM_SetAttributeViBoolean") - mock_library.niDMM_SetAttributeViBoolean.return_value = 0 - mock_library.niDMM_SetAttributeViInt32.side_effect = MockFunctionCallError("niDMM_SetAttributeViInt32") - mock_library.niDMM_SetAttributeViInt32.return_value = 0 - mock_library.niDMM_SetAttributeViReal64.side_effect = MockFunctionCallError("niDMM_SetAttributeViReal64") - mock_library.niDMM_SetAttributeViReal64.return_value = 0 - mock_library.niDMM_SetAttributeViString.side_effect = MockFunctionCallError("niDMM_SetAttributeViString") - mock_library.niDMM_SetAttributeViString.return_value = 0 - mock_library.niDMM_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niDMM_SetRuntimeEnvironment") - mock_library.niDMM_SetRuntimeEnvironment.return_value = 0 - mock_library.niDMM_UnlockSession.side_effect = MockFunctionCallError("niDMM_UnlockSession") - mock_library.niDMM_UnlockSession.return_value = 0 - mock_library.niDMM_close.side_effect = MockFunctionCallError("niDMM_close") - mock_library.niDMM_close.return_value = 0 - mock_library.niDMM_error_message.side_effect = MockFunctionCallError("niDMM_error_message") - mock_library.niDMM_error_message.return_value = 0 - mock_library.niDMM_reset.side_effect = MockFunctionCallError("niDMM_reset") - mock_library.niDMM_reset.return_value = 0 - mock_library.niDMM_self_test.side_effect = MockFunctionCallError("niDMM_self_test") - mock_library.niDMM_self_test.return_value = 0 diff --git a/generated/nidmm/setup.py b/generated/nidmm/setup.py deleted file mode 100644 index 0a6113944a..0000000000 --- a/generated/nidmm/setup.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nidmm' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-DMM Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nidmm'], - license='MIT', - include_package_data=True, - packages=['nidmm'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nidmm/tox-system_tests.ini b/generated/nidmm/tox-system_tests.ini deleted file mode 100644 index 64eb90b7df..0000000000 --- a/generated/nidmm/tox-system_tests.ini +++ /dev/null @@ -1,65 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nidmm) -[tox] -envlist = py{310,311,312,313,314}-nidmm-system_tests, py314-nidmm-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nidmm-system_tests: Run nidmm system tests (requires NI-DMM runtime to be installed) - nidmm-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nidmm-system_tests: . - nidmm-coverage: . - -commands = - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nidmm-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nidmm-system_tests: python -c "import nidmm; nidmm.print_diagnostic_information()" - nidmm-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidmm --parallel-mode -m pytest ../../src/nidmm/examples --junitxml=../junit/junit-nidmm-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nidmm-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidmm --parallel-mode -m pytest ../../src/nidmm/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidmm-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nidmm-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nidmm-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nidmm-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nidmm-system_tests: pytest < 9.2.0 - nidmm-system_tests: coverage - nidmm-system_tests: numpy - nidmm-system_tests: hightime - nidmm-system_tests: fasteners - nidmm-system_tests: pytest-json - nidmm-system_tests: .[grpc] - - nidmm-coverage: coverage - -depends = - nidmm-coverage: py{310,311,312,313,314}-nidmm-system_tests - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nifake/README.rst b/generated/nifake/README.rst deleted file mode 100644 index 3ffec6a895..0000000000 --- a/generated/nifake/README.rst +++ /dev/null @@ -1,21 +0,0 @@ -This is the MIT license: http://www.opensource.org/licenses/mit-license.php - -Copyright (c) 2017-2022, National Instruments Corporation. -NI-Digital Pattern Driver, NI-DMM, NI-DCPower, NI-FGEN, NI-RFSA, NI-RFSG, NI-SCOPE, NI-SWITCH, NI Switch Executive, -NI-ModInst, NI-TClk are trademarks of National Instruments. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this -software and associated documentation files (the "Software"), to deal in the Software -without restriction, including without limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons -to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or -substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR -PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE -FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/generated/nifake/nifake/VERSION b/generated/nifake/nifake/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nifake/nifake/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nifake/nifake/__init__.py b/generated/nifake/nifake/__init__.py deleted file mode 100644 index 39f4542a3c..0000000000 --- a/generated/nifake/nifake/__init__.py +++ /dev/null @@ -1,115 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nifake.enums import * # noqa: F403,F401,H303 -from nifake.errors import DriverWarning # noqa: F401 -from nifake.errors import Error # noqa: F401 -from nifake.grpc_session_options import * # noqa: F403,F401,H303 -from nifake.session import Session # noqa: F401 - -from nifake.custom_struct import CustomStruct # noqa: F401 - -from nifake.custom_struct import struct_CustomStruct # noqa: F401 - -from nifake.custom_struct_typedef import CustomStructTypedef # noqa: F401 - -from nifake.custom_struct_typedef import struct_CustomStructTypedef # noqa: F401 - -from nifake.custom_struct_nested_typedef import CustomStructNestedTypedef # noqa: F401 - -from nifake.custom_struct_nested_typedef import struct_CustomStructNestedTypedef # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-FAKE\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-FAKE" - info['driver']['version'] = driver_version - info['module']['name'] = 'nifake' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nifake/nifake/_attributes.py b/generated/nifake/nifake/_attributes.py deleted file mode 100644 index 060c58f0ed..0000000000 --- a/generated/nifake/nifake/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nifake._converters as _converters -import nifake.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nifake Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nifake.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nifake/nifake/_complextype.py b/generated/nifake/nifake/_complextype.py deleted file mode 100644 index e23fa1b7e2..0000000000 --- a/generated/nifake/nifake/_complextype.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import ctypes -import nifake._visatype as _visatype - - -class NIComplexNumber(ctypes.Structure): - _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] - - -class NIComplexNumberF32(ctypes.Structure): - _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] - - -class NIComplexI16(ctypes.Structure): - _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] diff --git a/generated/nifake/nifake/_converters.py b/generated/nifake/nifake/_converters.py deleted file mode 100644 index 9de6fa6942..0000000000 --- a/generated/nifake/nifake/_converters.py +++ /dev/null @@ -1,389 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nifake._visatype as _visatype -import nifake.enums as enums -import nifake.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - -# nifake specific converter(s) - used only for testing -def convert_double_each_element(numbers): - return [x * 2 for x in numbers] - - -def convert_from_enum_with_converter_enum(value): - return { - enums.EnumWithConverter.RED: True, - enums.EnumWithConverter.BLUE: False, - enums.EnumWithConverter.YELLOW: 'yellow', - enums.EnumWithConverter.BLACK: 42, - }[value] - - -def convert_to_enum_with_converter_enum(value): - return { - True: enums.EnumWithConverter.RED, - False: enums.EnumWithConverter.BLUE, - 'yellow': enums.EnumWithConverter.YELLOW, - 42: enums.EnumWithConverter.BLACK, - }[value] - - diff --git a/generated/nifake/nifake/_grpc_stub_interpreter.py b/generated/nifake/nifake/_grpc_stub_interpreter.py deleted file mode 100644 index a3e34085b2..0000000000 --- a/generated/nifake/nifake/_grpc_stub_interpreter.py +++ /dev/null @@ -1,579 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nidevice_pb2 as grpc_complex_types # noqa: F401 -from . import nifake_pb2 as grpc_types -from . import nifake_pb2_grpc as nifake_grpc - -from . import custom_struct as custom_struct # noqa: F401 - -from . import custom_struct_typedef as custom_struct_typedef # noqa: F401 - -from . import custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nifake_grpc.NiFakeStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.Abort, - grpc_types.AbortRequest(vi=self._vi), - ) - - def accept_list_of_durations_in_seconds(self, delays): # noqa: N802 - self._invoke( - self._client.AcceptListOfDurationsInSeconds, - grpc_types.AcceptListOfDurationsInSecondsRequest(vi=self._vi, delays=delays), - ) - - def bool_array_output_function(self, number_of_elements): # noqa: N802 - response = self._invoke( - self._client.BoolArrayOutputFunction, - grpc_types.BoolArrayOutputFunctionRequest(vi=self._vi, number_of_elements=number_of_elements), - ) - return response.an_array - - def configure_abc(self): # noqa: N802 - self._invoke( - self._client.ConfigureAbc, - grpc_types.ConfigureAbcRequest(vi=self._vi), - ) - - def custom_nested_struct_roundtrip(self, nested_custom_type_in): # noqa: N802 - response = self._invoke( - self._client.CustomNestedStructRoundtrip, - grpc_types.CustomNestedStructRoundtripRequest(nested_custom_type_in=nested_custom_type_in._create_copy(grpc_types.CustomStructNestedTypedef)), - ) - return custom_struct_nested_typedef.CustomStructNestedTypedef(response.nested_custom_type_out) - - def double_all_the_nums(self, numbers): # noqa: N802 - self._invoke( - self._client.DoubleAllTheNums, - grpc_types.DoubleAllTheNumsRequest(vi=self._vi, numbers=numbers), - ) - - def enum_array_output_function(self, number_of_elements): # noqa: N802 - response = self._invoke( - self._client.EnumArrayOutputFunction, - grpc_types.EnumArrayOutputFunctionRequest(vi=self._vi, number_of_elements=number_of_elements), - ) - return [enums.Turtle(x) for x in response.an_array_raw] - - def enum_input_function_with_defaults(self, a_turtle): # noqa: N802 - self._invoke( - self._client.EnumInputFunctionWithDefaults, - grpc_types.EnumInputFunctionWithDefaultsRequest(vi=self._vi, a_turtle_raw=a_turtle.value), - ) - - def export_attribute_configuration_buffer(self): # noqa: N802 - response = self._invoke( - self._client.ExportAttributeConfigurationBuffer, - grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), - ) - return response.configuration - - def fetch_waveform(self, number_of_samples): # noqa: N802 - response = self._invoke( - self._client.FetchWaveform, - grpc_types.FetchWaveformRequest(vi=self._vi, number_of_samples=number_of_samples), - ) - return response.waveform_data - - def fetch_waveform_into(self, number_of_samples): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self, multidimensional_array): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - multidimensional_array_list = [ - grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) - for val in multidimensional_array.ravel() - ] - self._invoke( - self._client.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter, - grpc_types.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest(vi=self._vi, multidimensional_array=multidimensional_array_list), - ) - - def function_with_intflag_parameter(self, flag): # noqa: N802 - self._invoke( - self._client.FunctionWithIntflagParameter, - grpc_types.FunctionWithIntflagParameterRequest(vi=self._vi, flag=flag.value), - ) - - def function_with_repeated_capability_type(self, site_list): # noqa: N802 - raise NotImplementedError('function_with_repeated_capability_type is not supported over gRPC') - - def get_a_boolean(self): # noqa: N802 - response = self._invoke( - self._client.GetABoolean, - grpc_types.GetABooleanRequest(vi=self._vi), - ) - return response.a_boolean - - def get_a_number(self): # noqa: N802 - response = self._invoke( - self._client.GetANumber, - grpc_types.GetANumberRequest(vi=self._vi), - ) - return response.a_number - - def get_a_string_of_fixed_maximum_size(self): # noqa: N802 - response = self._invoke( - self._client.GetAStringOfFixedMaximumSize, - grpc_types.GetAStringOfFixedMaximumSizeRequest(vi=self._vi), - ) - return response.a_string - - def get_a_string_using_python_code(self, a_number): # noqa: N802 - raise NotImplementedError('get_a_string_using_python_code is not supported over gRPC') - - def get_an_ivi_dance_char_array(self): # noqa: N802 - response = self._invoke( - self._client.GetAnIviDanceCharArray, - grpc_types.GetAnIviDanceCharArrayRequest(vi=self._vi), - ) - return response.char_array - - def get_an_ivi_dance_with_a_twist_string(self): # noqa: N802 - response = self._invoke( - self._client.GetAnIviDanceWithATwistString, - grpc_types.GetAnIviDanceWithATwistStringRequest(vi=self._vi), - ) - return response.a_string - - def get_array_for_python_code_custom_type(self): # noqa: N802 - raise NotImplementedError('get_array_for_python_code_custom_type is not supported over gRPC') - - def get_array_for_python_code_double(self): # noqa: N802 - raise NotImplementedError('get_array_for_python_code_double is not supported over gRPC') - - def get_array_size_for_python_code(self): # noqa: N802 - raise NotImplementedError('get_array_size_for_python_code is not supported over gRPC') - - def get_array_using_ivi_dance(self): # noqa: N802 - response = self._invoke( - self._client.GetArrayUsingIviDance, - grpc_types.GetArrayUsingIviDanceRequest(vi=self._vi), - ) - return response.array_out - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt64, - grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_cal_date_and_time(self, cal_type): # noqa: N802 - response = self._invoke( - self._client.GetCalDateAndTime, - grpc_types.GetCalDateAndTimeRequest(vi=self._vi, cal_type=cal_type), - ) - return response.month, response.day, response.year, response.hour, response.minute - - def get_cal_interval(self): # noqa: N802 - response = self._invoke( - self._client.GetCalInterval, - grpc_types.GetCalIntervalRequest(vi=self._vi), - ) - return response.months - - def get_channel_names(self, indices): # noqa: N802 - raise NotImplementedError('get_channel_names is not supported over gRPC') - - def get_custom_type(self): # noqa: N802 - response = self._invoke( - self._client.GetCustomType, - grpc_types.GetCustomTypeRequest(vi=self._vi), - ) - return custom_struct.CustomStruct(response.cs) - - def get_custom_type_array(self, number_of_elements): # noqa: N802 - response = self._invoke( - self._client.GetCustomTypeArray, - grpc_types.GetCustomTypeArrayRequest(vi=self._vi, number_of_elements=number_of_elements), - ) - return [custom_struct.CustomStruct(x) for x in response.cs] - - def get_custom_type_typedef(self): # noqa: N802 - raise NotImplementedError('get_custom_type_typedef is not supported over gRPC') - - def get_enum_value(self): # noqa: N802 - response = self._invoke( - self._client.GetEnumValue, - grpc_types.GetEnumValueRequest(vi=self._vi), - ) - return response.a_quantity, enums.Turtle(response.a_turtle_raw) - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.description - - def get_parameter_with_overridden_grpc_name(self, enum_parameter): # noqa: N802 - response = self._invoke( - self._client.GetParameterWithOverriddenGrpcName, - grpc_types.GetParameterWithOverriddenGrpcNameRequest(vi=self._vi, enum_parameter_raw=enum_parameter.value), - ) - return response.overridden_parameter - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationBuffer, - grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), - ) - - def import_attribute_configuration_buffer_ex(self, configuration): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationBufferEx, - grpc_types.ImportAttributeConfigurationBufferExRequest(vi=self._vi, configuration=configuration), - ) - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithOptions, - grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate(self): # noqa: N802 - raise NotImplementedError('initiate is not supported over gRPC') - - def lock(self): # noqa: N802 - self._lock.acquire() - - def method_using_whole_and_fractional_numbers(self): # noqa: N802 - response = self._invoke( - self._client.MethodUsingWholeAndFractionalNumbers, - grpc_types.MethodUsingWholeAndFractionalNumbersRequest(), - ) - return response.whole_number_raw, response.fractional_number_raw - - def method_with_grpc_only_param(self, simple_param): # noqa: N802 - self._invoke( - self._client.MethodWithGrpcOnlyParam, - grpc_types.MethodWithGrpcOnlyParamRequest(simple_param=simple_param), - ) - - def method_with_proto_only_parameter(self, attribute_value): # noqa: N802 - self._invoke( - self._client.MethodWithProtoOnlyParameter, - grpc_types.MethodWithProtoOnlyParameterRequest(attribute_value=attribute_value), - ) - - def mixed_ivi_dance_and_len_mechanism(self, input_values): # noqa: N802 - response = self._invoke( - self._client.MixedIviDanceAndLenMechanism, - grpc_types.MixedIviDanceAndLenMechanismRequest(vi=self._vi, input_values=input_values), - ) - return response.output_array - - def multiple_array_types(self, output_array_size, input_array_of_floats, input_array_of_integers): # noqa: N802 - response = self._invoke( - self._client.MultipleArrayTypes, - grpc_types.MultipleArrayTypesRequest(vi=self._vi, output_array_size=output_array_size, input_array_of_floats=input_array_of_floats, input_array_of_integers=input_array_of_integers), - ) - return response.output_array, response.output_array_of_fixed_length - - def multiple_arrays_different_size(self, values_array, data_array): # noqa: N802 - self._invoke( - self._client.MultipleArraysDifferentSize, - grpc_types.MultipleArraysDifferentSizeRequest(vi=self._vi, values_array=values_array, data_array=data_array), - ) - - def multiple_arrays_same_size(self, values1, values2, values3, values4): # noqa: N802 - self._invoke( - self._client.MultipleArraysSameSize, - grpc_types.MultipleArraysSameSizeRequest(vi=self._vi, values1=values1, values2=values2, values3=values3, values4=values4), - ) - - def one_input_function(self, a_number): # noqa: N802 - self._invoke( - self._client.OneInputFunction, - grpc_types.OneInputFunctionRequest(vi=self._vi, a_number=a_number), - ) - - def parameters_are_multiple_types(self, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 - self._invoke( - self._client.ParametersAreMultipleTypes, - grpc_types.ParametersAreMultipleTypesRequest(vi=self._vi, a_boolean=a_boolean, an_int32=an_int32, an_int64=an_int64, an_int_enum_raw=an_int_enum.value, a_float=a_float, a_float_enum_raw=a_float_enum.value, a_string=a_string), - ) - - def simple_function(self): # noqa: N802 - self._invoke( - self._client.PoorlyNamedSimpleFunction, - grpc_types.PoorlyNamedSimpleFunctionRequest(vi=self._vi), - ) - - def read(self, maximum_time): # noqa: N802 - response = self._invoke( - self._client.Read, - grpc_types.ReadRequest(vi=self._vi, maximum_time=maximum_time), - ) - return response.reading - - def read_from_channel(self, channel_name, maximum_time): # noqa: N802 - response = self._invoke( - self._client.ReadFromChannel, - grpc_types.ReadFromChannelRequest(vi=self._vi, channel_name=channel_name, maximum_time=maximum_time), - ) - return response.reading - - def return_a_number_and_a_string(self): # noqa: N802 - response = self._invoke( - self._client.ReturnANumberAndAString, - grpc_types.ReturnANumberAndAStringRequest(vi=self._vi), - ) - return response.a_number, response.a_string - - def return_duration_in_seconds(self): # noqa: N802 - response = self._invoke( - self._client.ReturnDurationInSeconds, - grpc_types.ReturnDurationInSecondsRequest(vi=self._vi), - ) - return response.timedelta - - def return_list_of_durations_in_seconds(self, number_of_elements): # noqa: N802 - response = self._invoke( - self._client.ReturnListOfDurationsInSeconds, - grpc_types.ReturnListOfDurationsInSecondsRequest(vi=self._vi, number_of_elements=number_of_elements), - ) - return response.timedeltas - - def return_multiple_types(self, array_size): # noqa: N802 - response = self._invoke( - self._client.ReturnMultipleTypes, - grpc_types.ReturnMultipleTypesRequest(vi=self._vi, array_size=array_size), - ) - return response.a_boolean, response.an_int32, response.an_int64, enums.Turtle(response.an_int_enum_raw), response.a_float, enums.FloatEnum(response.a_float_enum_raw), response.an_array, response.a_string - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt64, - grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_custom_type(self, cs): # noqa: N802 - self._invoke( - self._client.SetCustomType, - grpc_types.SetCustomTypeRequest(vi=self._vi, cs=cs._create_copy(grpc_types.FakeCustomStruct)), - ) - - def set_custom_type_array(self, cs): # noqa: N802 - self._invoke( - self._client.SetCustomTypeArray, - grpc_types.SetCustomTypeArrayRequest(vi=self._vi, cs=cs and [x._create_copy(grpc_types.FakeCustomStruct) for x in cs]), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def string_valued_enum_input_function_with_defaults(self, a_mobile_os_name): # noqa: N802 - self._invoke( - self._client.StringValuedEnumInputFunctionWithDefaults, - grpc_types.StringValuedEnumInputFunctionWithDefaultsRequest(vi=self._vi, a_mobile_os_name_raw=a_mobile_os_name.value), - ) - - def two_input_function(self, a_number, a_string): # noqa: N802 - self._invoke( - self._client.TwoInputFunction, - grpc_types.TwoInputFunctionRequest(vi=self._vi, a_number=a_number, a_string=a_string), - ) - - def unlock(self): # noqa: N802 - self._lock.release() - - def use64_bit_number(self, input): # noqa: N802 - response = self._invoke( - self._client.Use64BitNumber, - grpc_types.Use64BitNumberRequest(vi=self._vi, input=input), - ) - return response.output - - def write_waveform(self, waveform): # noqa: N802 - self._invoke( - self._client.WriteWaveform, - grpc_types.WriteWaveformRequest(vi=self._vi, waveform=waveform), - ) - - def write_waveform_numpy(self, waveform): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def write_waveform_numpy_complex128(self, waveform_data_array): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - waveform_data_array_list = [ - grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) - for val in waveform_data_array.ravel() - ] - self._invoke( - self._client.WriteWaveformNumpyComplex128, - grpc_types.WriteWaveformNumpyComplex128Request(vi=self._vi, waveform_data_array=waveform_data_array_list), - ) - - def write_waveform_numpy_complex64(self, waveform_data_array): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - waveform_data_array_list = [ - grpc_complex_types.NIComplexNumberF32(real=val.real, imaginary=val.imag) - for val in waveform_data_array.ravel() - ] - self._invoke( - self._client.WriteWaveformNumpyComplex64, - grpc_types.WriteWaveformNumpyComplex64Request(vi=self._vi, waveform_data_array=waveform_data_array_list), - ) - - def write_waveform_numpy_complex_interleaved_i16(self, waveform_data_array): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - arr = waveform_data_array.ravel() - if arr.size % 2 != 0: - raise ValueError("Interleaved int16 array must have even length (real/imag pairs)") - arr_pairs = arr.reshape(-1, 2) - waveform_data_array_list = [ - grpc_complex_types.NIComplexI16(real=int(pair[0]), imaginary=int(pair[1])) - for pair in arr_pairs - ] - self._invoke( - self._client.WriteWaveformNumpyComplexInterleavedI16, - grpc_types.WriteWaveformNumpyComplexInterleavedI16Request(vi=self._vi, waveform_data_array=waveform_data_array_list), - ) - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def self_test(self): # noqa: N802 - raise NotImplementedError('self_test is not supported over gRPC') diff --git a/generated/nifake/nifake/_library.py b/generated/nifake/nifake/_library.py deleted file mode 100644 index dbbe4c0095..0000000000 --- a/generated/nifake/nifake/_library.py +++ /dev/null @@ -1,728 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nifake.errors as errors -import threading - -from nifake._complextype import * # noqa: F403 -from nifake._visatype import * # noqa: F403,H303 - -import nifake.custom_struct as custom_struct # noqa: F401 - -import nifake.custom_struct_typedef as custom_struct_typedef # noqa: F401 - -import nifake.custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niFake_Abort_cfunc = None - self.niFake_AcceptListOfDurationsInSeconds_cfunc = None - self.niFake_BoolArrayOutputFunction_cfunc = None - self.niFake_ConfigureABC_cfunc = None - self.niFake_CustomNestedStructRoundtrip_cfunc = None - self.niFake_DoubleAllTheNums_cfunc = None - self.niFake_EnumArrayOutputFunction_cfunc = None - self.niFake_EnumInputFunctionWithDefaults_cfunc = None - self.niFake_ExportAttributeConfigurationBuffer_cfunc = None - self.niFake_FetchWaveform_cfunc = None - self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc = None - self.niFake_FunctionWithIntflagParameter_cfunc = None - self.niFake_FunctionWithRepeatedCapabilityType_cfunc = None - self.niFake_GetABoolean_cfunc = None - self.niFake_GetANumber_cfunc = None - self.niFake_GetAStringOfFixedMaximumSize_cfunc = None - self.niFake_GetAStringUsingPythonCode_cfunc = None - self.niFake_GetAnIviDanceCharArray_cfunc = None - self.niFake_GetAnIviDanceWithATwistString_cfunc = None - self.niFake_GetArrayForPythonCodeCustomType_cfunc = None - self.niFake_GetArrayForPythonCodeDouble_cfunc = None - self.niFake_GetArraySizeForPythonCode_cfunc = None - self.niFake_GetArrayUsingIviDance_cfunc = None - self.niFake_GetAttributeViBoolean_cfunc = None - self.niFake_GetAttributeViInt32_cfunc = None - self.niFake_GetAttributeViInt64_cfunc = None - self.niFake_GetAttributeViReal64_cfunc = None - self.niFake_GetAttributeViString_cfunc = None - self.niFake_GetCalDateAndTime_cfunc = None - self.niFake_GetCalInterval_cfunc = None - self.niFake_GetChannelNames_cfunc = None - self.niFake_GetCustomType_cfunc = None - self.niFake_GetCustomTypeArray_cfunc = None - self.niFake_GetCustomTypeTypedef_cfunc = None - self.niFake_GetEnumValue_cfunc = None - self.niFake_GetError_cfunc = None - self.niFake_GetParameterWithOverriddenGrpcName_cfunc = None - self.niFake_ImportAttributeConfigurationBuffer_cfunc = None - self.niFake_ImportAttributeConfigurationBufferEx_cfunc = None - self.niFake_InitWithOptions_cfunc = None - self.niFake_Initiate_cfunc = None - self.niFake_LockSession_cfunc = None - self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc = None - self.niFake_MethodWithGrpcOnlyParam_cfunc = None - self.niFake_MethodWithProtoOnlyParameter_cfunc = None - self.niFake_MixedIviDanceAndLenMechanism_cfunc = None - self.niFake_MultipleArrayTypes_cfunc = None - self.niFake_MultipleArraysDifferentSize_cfunc = None - self.niFake_MultipleArraysSameSize_cfunc = None - self.niFake_OneInputFunction_cfunc = None - self.niFake_ParametersAreMultipleTypes_cfunc = None - self.niFake_PoorlyNamedSimpleFunction_cfunc = None - self.niFake_Read_cfunc = None - self.niFake_ReadFromChannel_cfunc = None - self.niFake_ReturnANumberAndAString_cfunc = None - self.niFake_ReturnDurationInSeconds_cfunc = None - self.niFake_ReturnListOfDurationsInSeconds_cfunc = None - self.niFake_ReturnMultipleTypes_cfunc = None - self.niFake_SetAttributeViBoolean_cfunc = None - self.niFake_SetAttributeViInt32_cfunc = None - self.niFake_SetAttributeViInt64_cfunc = None - self.niFake_SetAttributeViReal64_cfunc = None - self.niFake_SetAttributeViString_cfunc = None - self.niFake_SetCustomType_cfunc = None - self.niFake_SetCustomTypeArray_cfunc = None - self.niFake_SetRuntimeEnvironment_cfunc = None - self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc = None - self.niFake_TwoInputFunction_cfunc = None - self.niFake_UnlockSession_cfunc = None - self.niFake_Use64BitNumber_cfunc = None - self.niFake_WriteWaveform_cfunc = None - self.niFake_WriteWaveformNumpyComplex128_cfunc = None - self.niFake_WriteWaveformNumpyComplex64_cfunc = None - self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc = None - self.niFake_close_cfunc = None - self.niFake_error_message_cfunc = None - self.niFake_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niFake_Abort(self, vi): # noqa: N802 - with self._func_lock: - if self.niFake_Abort_cfunc is None: - self.niFake_Abort_cfunc = self._get_library_function('niFake_Abort') - self.niFake_Abort_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFake_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_Abort_cfunc(vi) - - def niFake_AcceptListOfDurationsInSeconds(self, vi, count, delays): # noqa: N802 - with self._func_lock: - if self.niFake_AcceptListOfDurationsInSeconds_cfunc is None: - self.niFake_AcceptListOfDurationsInSeconds_cfunc = self._get_library_function('niFake_AcceptListOfDurationsInSeconds') - self.niFake_AcceptListOfDurationsInSeconds_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_AcceptListOfDurationsInSeconds_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_AcceptListOfDurationsInSeconds_cfunc(vi, count, delays) - - def niFake_BoolArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 - with self._func_lock: - if self.niFake_BoolArrayOutputFunction_cfunc is None: - self.niFake_BoolArrayOutputFunction_cfunc = self._get_library_function('niFake_BoolArrayOutputFunction') - self.niFake_BoolArrayOutputFunction_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFake_BoolArrayOutputFunction_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_BoolArrayOutputFunction_cfunc(vi, number_of_elements, an_array) - - def niFake_ConfigureABC(self, vi): # noqa: N802 - with self._func_lock: - if self.niFake_ConfigureABC_cfunc is None: - self.niFake_ConfigureABC_cfunc = self._get_library_function('niFake_ConfigureABC') - self.niFake_ConfigureABC_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFake_ConfigureABC_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ConfigureABC_cfunc(vi) - - def niFake_CustomNestedStructRoundtrip(self, nested_custom_type_in, nested_custom_type_out): # noqa: N802 - with self._func_lock: - if self.niFake_CustomNestedStructRoundtrip_cfunc is None: - self.niFake_CustomNestedStructRoundtrip_cfunc = self._get_library_function('niFake_CustomNestedStructRoundtrip') - self.niFake_CustomNestedStructRoundtrip_cfunc.argtypes = [custom_struct_nested_typedef.struct_CustomStructNestedTypedef, ctypes.POINTER(custom_struct_nested_typedef.struct_CustomStructNestedTypedef)] # noqa: F405 - self.niFake_CustomNestedStructRoundtrip_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_CustomNestedStructRoundtrip_cfunc(nested_custom_type_in, nested_custom_type_out) - - def niFake_DoubleAllTheNums(self, vi, number_count, numbers): # noqa: N802 - with self._func_lock: - if self.niFake_DoubleAllTheNums_cfunc is None: - self.niFake_DoubleAllTheNums_cfunc = self._get_library_function('niFake_DoubleAllTheNums') - self.niFake_DoubleAllTheNums_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_DoubleAllTheNums_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_DoubleAllTheNums_cfunc(vi, number_count, numbers) - - def niFake_EnumArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 - with self._func_lock: - if self.niFake_EnumArrayOutputFunction_cfunc is None: - self.niFake_EnumArrayOutputFunction_cfunc = self._get_library_function('niFake_EnumArrayOutputFunction') - self.niFake_EnumArrayOutputFunction_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt16)] # noqa: F405 - self.niFake_EnumArrayOutputFunction_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_EnumArrayOutputFunction_cfunc(vi, number_of_elements, an_array) - - def niFake_EnumInputFunctionWithDefaults(self, vi, a_turtle): # noqa: N802 - with self._func_lock: - if self.niFake_EnumInputFunctionWithDefaults_cfunc is None: - self.niFake_EnumInputFunctionWithDefaults_cfunc = self._get_library_function('niFake_EnumInputFunctionWithDefaults') - self.niFake_EnumInputFunctionWithDefaults_cfunc.argtypes = [ViSession, ViInt16] # noqa: F405 - self.niFake_EnumInputFunctionWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_EnumInputFunctionWithDefaults_cfunc(vi, a_turtle) - - def niFake_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - with self._func_lock: - if self.niFake_ExportAttributeConfigurationBuffer_cfunc is None: - self.niFake_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFake_ExportAttributeConfigurationBuffer') - self.niFake_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niFake_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ExportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) - - def niFake_FetchWaveform(self, vi, number_of_samples, waveform_data, actual_number_of_samples): # noqa: N802 - with self._func_lock: - if self.niFake_FetchWaveform_cfunc is None: - self.niFake_FetchWaveform_cfunc = self._get_library_function('niFake_FetchWaveform') - self.niFake_FetchWaveform_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_FetchWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_FetchWaveform_cfunc(vi, number_of_samples, waveform_data, actual_number_of_samples) - - def niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(self, vi, multidimensional_array): # noqa: N802 - with self._func_lock: - if self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc is None: - self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc = self._get_library_function('niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter') - self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc.argtypes = [ViSession, ctypes.POINTER(NIComplexNumber)] # noqa: F405 - self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc(vi, multidimensional_array) - - def niFake_FunctionWithIntflagParameter(self, vi, flag): # noqa: N802 - with self._func_lock: - if self.niFake_FunctionWithIntflagParameter_cfunc is None: - self.niFake_FunctionWithIntflagParameter_cfunc = self._get_library_function('niFake_FunctionWithIntflagParameter') - self.niFake_FunctionWithIntflagParameter_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405 - self.niFake_FunctionWithIntflagParameter_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_FunctionWithIntflagParameter_cfunc(vi, flag) - - def niFake_FunctionWithRepeatedCapabilityType(self, vi, site_list): # noqa: N802 - with self._func_lock: - if self.niFake_FunctionWithRepeatedCapabilityType_cfunc is None: - self.niFake_FunctionWithRepeatedCapabilityType_cfunc = self._get_library_function('niFake_FunctionWithRepeatedCapabilityType') - self.niFake_FunctionWithRepeatedCapabilityType_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_FunctionWithRepeatedCapabilityType_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_FunctionWithRepeatedCapabilityType_cfunc(vi, site_list) - - def niFake_GetABoolean(self, vi, a_boolean): # noqa: N802 - with self._func_lock: - if self.niFake_GetABoolean_cfunc is None: - self.niFake_GetABoolean_cfunc = self._get_library_function('niFake_GetABoolean') - self.niFake_GetABoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFake_GetABoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetABoolean_cfunc(vi, a_boolean) - - def niFake_GetANumber(self, vi, a_number): # noqa: N802 - with self._func_lock: - if self.niFake_GetANumber_cfunc is None: - self.niFake_GetANumber_cfunc = self._get_library_function('niFake_GetANumber') - self.niFake_GetANumber_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16)] # noqa: F405 - self.niFake_GetANumber_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetANumber_cfunc(vi, a_number) - - def niFake_GetAStringOfFixedMaximumSize(self, vi, a_string): # noqa: N802 - with self._func_lock: - if self.niFake_GetAStringOfFixedMaximumSize_cfunc is None: - self.niFake_GetAStringOfFixedMaximumSize_cfunc = self._get_library_function('niFake_GetAStringOfFixedMaximumSize') - self.niFake_GetAStringOfFixedMaximumSize_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_GetAStringOfFixedMaximumSize_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAStringOfFixedMaximumSize_cfunc(vi, a_string) - - def niFake_GetAStringUsingPythonCode(self, vi, a_number, a_string): # noqa: N802 - with self._func_lock: - if self.niFake_GetAStringUsingPythonCode_cfunc is None: - self.niFake_GetAStringUsingPythonCode_cfunc = self._get_library_function('niFake_GetAStringUsingPythonCode') - self.niFake_GetAStringUsingPythonCode_cfunc.argtypes = [ViSession, ViInt16, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_GetAStringUsingPythonCode_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAStringUsingPythonCode_cfunc(vi, a_number, a_string) - - def niFake_GetAnIviDanceCharArray(self, vi, buffer_size, char_array): # noqa: N802 - with self._func_lock: - if self.niFake_GetAnIviDanceCharArray_cfunc is None: - self.niFake_GetAnIviDanceCharArray_cfunc = self._get_library_function('niFake_GetAnIviDanceCharArray') - self.niFake_GetAnIviDanceCharArray_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_GetAnIviDanceCharArray_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAnIviDanceCharArray_cfunc(vi, buffer_size, char_array) - - def niFake_GetAnIviDanceWithATwistString(self, vi, buffer_size, a_string, actual_size): # noqa: N802 - with self._func_lock: - if self.niFake_GetAnIviDanceWithATwistString_cfunc is None: - self.niFake_GetAnIviDanceWithATwistString_cfunc = self._get_library_function('niFake_GetAnIviDanceWithATwistString') - self.niFake_GetAnIviDanceWithATwistString_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_GetAnIviDanceWithATwistString_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAnIviDanceWithATwistString_cfunc(vi, buffer_size, a_string, actual_size) - - def niFake_GetArrayForPythonCodeCustomType(self, vi, number_of_elements, array_out): # noqa: N802 - with self._func_lock: - if self.niFake_GetArrayForPythonCodeCustomType_cfunc is None: - self.niFake_GetArrayForPythonCodeCustomType_cfunc = self._get_library_function('niFake_GetArrayForPythonCodeCustomType') - self.niFake_GetArrayForPythonCodeCustomType_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 - self.niFake_GetArrayForPythonCodeCustomType_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetArrayForPythonCodeCustomType_cfunc(vi, number_of_elements, array_out) - - def niFake_GetArrayForPythonCodeDouble(self, vi, number_of_elements, array_out): # noqa: N802 - with self._func_lock: - if self.niFake_GetArrayForPythonCodeDouble_cfunc is None: - self.niFake_GetArrayForPythonCodeDouble_cfunc = self._get_library_function('niFake_GetArrayForPythonCodeDouble') - self.niFake_GetArrayForPythonCodeDouble_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_GetArrayForPythonCodeDouble_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetArrayForPythonCodeDouble_cfunc(vi, number_of_elements, array_out) - - def niFake_GetArraySizeForPythonCode(self, vi, size_out): # noqa: N802 - with self._func_lock: - if self.niFake_GetArraySizeForPythonCode_cfunc is None: - self.niFake_GetArraySizeForPythonCode_cfunc = self._get_library_function('niFake_GetArraySizeForPythonCode') - self.niFake_GetArraySizeForPythonCode_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_GetArraySizeForPythonCode_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetArraySizeForPythonCode_cfunc(vi, size_out) - - def niFake_GetArrayUsingIviDance(self, vi, array_size, array_out): # noqa: N802 - with self._func_lock: - if self.niFake_GetArrayUsingIviDance_cfunc is None: - self.niFake_GetArrayUsingIviDance_cfunc = self._get_library_function('niFake_GetArrayUsingIviDance') - self.niFake_GetArrayUsingIviDance_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_GetArrayUsingIviDance_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetArrayUsingIviDance_cfunc(vi, array_size, array_out) - - def niFake_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_GetAttributeViBoolean_cfunc is None: - self.niFake_GetAttributeViBoolean_cfunc = self._get_library_function('niFake_GetAttributeViBoolean') - self.niFake_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFake_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_GetAttributeViInt32_cfunc is None: - self.niFake_GetAttributeViInt32_cfunc = self._get_library_function('niFake_GetAttributeViInt32') - self.niFake_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_GetAttributeViInt64_cfunc is None: - self.niFake_GetAttributeViInt64_cfunc = self._get_library_function('niFake_GetAttributeViInt64') - self.niFake_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niFake_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_GetAttributeViReal64_cfunc is None: - self.niFake_GetAttributeViReal64_cfunc = self._get_library_function('niFake_GetAttributeViReal64') - self.niFake_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_GetAttributeViString_cfunc is None: - self.niFake_GetAttributeViString_cfunc = self._get_library_function('niFake_GetAttributeViString') - self.niFake_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buffer_size, attribute_value) - - def niFake_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 - with self._func_lock: - if self.niFake_GetCalDateAndTime_cfunc is None: - self.niFake_GetCalDateAndTime_cfunc = self._get_library_function('niFake_GetCalDateAndTime') - self.niFake_GetCalDateAndTime_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_GetCalDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetCalDateAndTime_cfunc(vi, cal_type, month, day, year, hour, minute) - - def niFake_GetCalInterval(self, vi, months): # noqa: N802 - with self._func_lock: - if self.niFake_GetCalInterval_cfunc is None: - self.niFake_GetCalInterval_cfunc = self._get_library_function('niFake_GetCalInterval') - self.niFake_GetCalInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_GetCalInterval_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetCalInterval_cfunc(vi, months) - - def niFake_GetChannelNames(self, vi, indices, name_size, names): # noqa: N802 - with self._func_lock: - if self.niFake_GetChannelNames_cfunc is None: - self.niFake_GetChannelNames_cfunc = self._get_library_function('niFake_GetChannelNames') - self.niFake_GetChannelNames_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_GetChannelNames_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetChannelNames_cfunc(vi, indices, name_size, names) - - def niFake_GetCustomType(self, vi, cs): # noqa: N802 - with self._func_lock: - if self.niFake_GetCustomType_cfunc is None: - self.niFake_GetCustomType_cfunc = self._get_library_function('niFake_GetCustomType') - self.niFake_GetCustomType_cfunc.argtypes = [ViSession, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 - self.niFake_GetCustomType_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetCustomType_cfunc(vi, cs) - - def niFake_GetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 - with self._func_lock: - if self.niFake_GetCustomTypeArray_cfunc is None: - self.niFake_GetCustomTypeArray_cfunc = self._get_library_function('niFake_GetCustomTypeArray') - self.niFake_GetCustomTypeArray_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 - self.niFake_GetCustomTypeArray_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetCustomTypeArray_cfunc(vi, number_of_elements, cs) - - def niFake_GetCustomTypeTypedef(self, vi, cst, csnt): # noqa: N802 - with self._func_lock: - if self.niFake_GetCustomTypeTypedef_cfunc is None: - self.niFake_GetCustomTypeTypedef_cfunc = self._get_library_function('niFake_GetCustomTypeTypedef') - self.niFake_GetCustomTypeTypedef_cfunc.argtypes = [ViSession, ctypes.POINTER(custom_struct_typedef.struct_CustomStructTypedef), ctypes.POINTER(custom_struct_nested_typedef.struct_CustomStructNestedTypedef)] # noqa: F405 - self.niFake_GetCustomTypeTypedef_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetCustomTypeTypedef_cfunc(vi, cst, csnt) - - def niFake_GetEnumValue(self, vi, a_quantity, a_turtle): # noqa: N802 - with self._func_lock: - if self.niFake_GetEnumValue_cfunc is None: - self.niFake_GetEnumValue_cfunc = self._get_library_function('niFake_GetEnumValue') - self.niFake_GetEnumValue_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt16)] # noqa: F405 - self.niFake_GetEnumValue_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetEnumValue_cfunc(vi, a_quantity, a_turtle) - - def niFake_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - with self._func_lock: - if self.niFake_GetError_cfunc is None: - self.niFake_GetError_cfunc = self._get_library_function('niFake_GetError') - self.niFake_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetError_cfunc(vi, error_code, buffer_size, description) - - def niFake_GetParameterWithOverriddenGrpcName(self, vi, original_parameter, enum_parameter): # noqa: N802 - with self._func_lock: - if self.niFake_GetParameterWithOverriddenGrpcName_cfunc is None: - self.niFake_GetParameterWithOverriddenGrpcName_cfunc = self._get_library_function('niFake_GetParameterWithOverriddenGrpcName') - self.niFake_GetParameterWithOverriddenGrpcName_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ViInt16] # noqa: F405 - self.niFake_GetParameterWithOverriddenGrpcName_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_GetParameterWithOverriddenGrpcName_cfunc(vi, original_parameter, enum_parameter) - - def niFake_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - with self._func_lock: - if self.niFake_ImportAttributeConfigurationBuffer_cfunc is None: - self.niFake_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFake_ImportAttributeConfigurationBuffer') - self.niFake_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niFake_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ImportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) - - def niFake_ImportAttributeConfigurationBufferEx(self, vi, size, configuration): # noqa: N802 - with self._func_lock: - if self.niFake_ImportAttributeConfigurationBufferEx_cfunc is None: - self.niFake_ImportAttributeConfigurationBufferEx_cfunc = self._get_library_function('niFake_ImportAttributeConfigurationBufferEx') - self.niFake_ImportAttributeConfigurationBufferEx_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niFake_ImportAttributeConfigurationBufferEx_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ImportAttributeConfigurationBufferEx_cfunc(vi, size, configuration) - - def niFake_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niFake_InitWithOptions_cfunc is None: - self.niFake_InitWithOptions_cfunc = self._get_library_function('niFake_InitWithOptions') - self.niFake_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niFake_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, vi) - - def niFake_Initiate(self, vi): # noqa: N802 - with self._func_lock: - if self.niFake_Initiate_cfunc is None: - self.niFake_Initiate_cfunc = self._get_library_function('niFake_Initiate') - self.niFake_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFake_Initiate_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_Initiate_cfunc(vi) - - def niFake_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niFake_LockSession_cfunc is None: - self.niFake_LockSession_cfunc = self._get_library_function('niFake_LockSession') - self.niFake_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFake_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_LockSession_cfunc(vi, caller_has_lock) - - def niFake_MethodUsingWholeAndFractionalNumbers(self, whole_number, fractional_number): # noqa: N802 - with self._func_lock: - if self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc is None: - self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc = self._get_library_function('niFake_MethodUsingWholeAndFractionalNumbers') - self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc.argtypes = [ctypes.POINTER(ViInt32), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc(whole_number, fractional_number) - - def niFake_MethodWithGrpcOnlyParam(self, simple_param): # noqa: N802 - with self._func_lock: - if self.niFake_MethodWithGrpcOnlyParam_cfunc is None: - self.niFake_MethodWithGrpcOnlyParam_cfunc = self._get_library_function('niFake_MethodWithGrpcOnlyParam') - self.niFake_MethodWithGrpcOnlyParam_cfunc.argtypes = [ViInt32] # noqa: F405 - self.niFake_MethodWithGrpcOnlyParam_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MethodWithGrpcOnlyParam_cfunc(simple_param) - - def niFake_MethodWithProtoOnlyParameter(self, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_MethodWithProtoOnlyParameter_cfunc is None: - self.niFake_MethodWithProtoOnlyParameter_cfunc = self._get_library_function('niFake_MethodWithProtoOnlyParameter') - self.niFake_MethodWithProtoOnlyParameter_cfunc.argtypes = [ViInt32] # noqa: F405 - self.niFake_MethodWithProtoOnlyParameter_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MethodWithProtoOnlyParameter_cfunc(attribute_value) - - def niFake_MixedIviDanceAndLenMechanism(self, vi, input_values, input_values_size, output_size, output_array): # noqa: N802 - with self._func_lock: - if self.niFake_MixedIviDanceAndLenMechanism_cfunc is None: - self.niFake_MixedIviDanceAndLenMechanism_cfunc = self._get_library_function('niFake_MixedIviDanceAndLenMechanism') - self.niFake_MixedIviDanceAndLenMechanism_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ViInt32, ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFake_MixedIviDanceAndLenMechanism_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MixedIviDanceAndLenMechanism_cfunc(vi, input_values, input_values_size, output_size, output_array) - - def niFake_MultipleArrayTypes(self, vi, output_array_size, output_array, output_array_of_fixed_length, input_array_sizes, input_array_of_floats, input_array_of_integers): # noqa: N802 - with self._func_lock: - if self.niFake_MultipleArrayTypes_cfunc is None: - self.niFake_MultipleArrayTypes_cfunc = self._get_library_function('niFake_MultipleArrayTypes') - self.niFake_MultipleArrayTypes_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt16)] # noqa: F405 - self.niFake_MultipleArrayTypes_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MultipleArrayTypes_cfunc(vi, output_array_size, output_array, output_array_of_fixed_length, input_array_sizes, input_array_of_floats, input_array_of_integers) - - def niFake_MultipleArraysDifferentSize(self, vi, values_array, values_array_size, data_array, data_array_size): # noqa: N802 - with self._func_lock: - if self.niFake_MultipleArraysDifferentSize_cfunc is None: - self.niFake_MultipleArraysDifferentSize_cfunc = self._get_library_function('niFake_MultipleArraysDifferentSize') - self.niFake_MultipleArraysDifferentSize_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViInt32), ViInt32] # noqa: F405 - self.niFake_MultipleArraysDifferentSize_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MultipleArraysDifferentSize_cfunc(vi, values_array, values_array_size, data_array, data_array_size) - - def niFake_MultipleArraysSameSize(self, vi, values1, values2, values3, values4, size): # noqa: N802 - with self._func_lock: - if self.niFake_MultipleArraysSameSize_cfunc is None: - self.niFake_MultipleArraysSameSize_cfunc = self._get_library_function('niFake_MultipleArraysSameSize') - self.niFake_MultipleArraysSameSize_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViInt32] # noqa: F405 - self.niFake_MultipleArraysSameSize_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_MultipleArraysSameSize_cfunc(vi, values1, values2, values3, values4, size) - - def niFake_OneInputFunction(self, vi, a_number): # noqa: N802 - with self._func_lock: - if self.niFake_OneInputFunction_cfunc is None: - self.niFake_OneInputFunction_cfunc = self._get_library_function('niFake_OneInputFunction') - self.niFake_OneInputFunction_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niFake_OneInputFunction_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_OneInputFunction_cfunc(vi, a_number) - - def niFake_ParametersAreMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 - with self._func_lock: - if self.niFake_ParametersAreMultipleTypes_cfunc is None: - self.niFake_ParametersAreMultipleTypes_cfunc = self._get_library_function('niFake_ParametersAreMultipleTypes') - self.niFake_ParametersAreMultipleTypes_cfunc.argtypes = [ViSession, ViBoolean, ViInt32, ViInt64, ViInt16, ViReal64, ViReal64, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_ParametersAreMultipleTypes_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ParametersAreMultipleTypes_cfunc(vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string) - - def niFake_PoorlyNamedSimpleFunction(self, vi): # noqa: N802 - with self._func_lock: - if self.niFake_PoorlyNamedSimpleFunction_cfunc is None: - self.niFake_PoorlyNamedSimpleFunction_cfunc = self._get_library_function('niFake_PoorlyNamedSimpleFunction') - self.niFake_PoorlyNamedSimpleFunction_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFake_PoorlyNamedSimpleFunction_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_PoorlyNamedSimpleFunction_cfunc(vi) - - def niFake_Read(self, vi, maximum_time, reading): # noqa: N802 - with self._func_lock: - if self.niFake_Read_cfunc is None: - self.niFake_Read_cfunc = self._get_library_function('niFake_Read') - self.niFake_Read_cfunc.argtypes = [ViSession, ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_Read_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_Read_cfunc(vi, maximum_time, reading) - - def niFake_ReadFromChannel(self, vi, channel_name, maximum_time, reading): # noqa: N802 - with self._func_lock: - if self.niFake_ReadFromChannel_cfunc is None: - self.niFake_ReadFromChannel_cfunc = self._get_library_function('niFake_ReadFromChannel') - self.niFake_ReadFromChannel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_ReadFromChannel_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ReadFromChannel_cfunc(vi, channel_name, maximum_time, reading) - - def niFake_ReturnANumberAndAString(self, vi, a_number, a_string): # noqa: N802 - with self._func_lock: - if self.niFake_ReturnANumberAndAString_cfunc is None: - self.niFake_ReturnANumberAndAString_cfunc = self._get_library_function('niFake_ReturnANumberAndAString') - self.niFake_ReturnANumberAndAString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_ReturnANumberAndAString_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ReturnANumberAndAString_cfunc(vi, a_number, a_string) - - def niFake_ReturnDurationInSeconds(self, vi, timedelta): # noqa: N802 - with self._func_lock: - if self.niFake_ReturnDurationInSeconds_cfunc is None: - self.niFake_ReturnDurationInSeconds_cfunc = self._get_library_function('niFake_ReturnDurationInSeconds') - self.niFake_ReturnDurationInSeconds_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_ReturnDurationInSeconds_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ReturnDurationInSeconds_cfunc(vi, timedelta) - - def niFake_ReturnListOfDurationsInSeconds(self, vi, number_of_elements, timedeltas): # noqa: N802 - with self._func_lock: - if self.niFake_ReturnListOfDurationsInSeconds_cfunc is None: - self.niFake_ReturnListOfDurationsInSeconds_cfunc = self._get_library_function('niFake_ReturnListOfDurationsInSeconds') - self.niFake_ReturnListOfDurationsInSeconds_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_ReturnListOfDurationsInSeconds_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ReturnListOfDurationsInSeconds_cfunc(vi, number_of_elements, timedeltas) - - def niFake_ReturnMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, array_size, an_array, string_size, a_string): # noqa: N802 - with self._func_lock: - if self.niFake_ReturnMultipleTypes_cfunc is None: - self.niFake_ReturnMultipleTypes_cfunc = self._get_library_function('niFake_ReturnMultipleTypes') - self.niFake_ReturnMultipleTypes_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt16), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_ReturnMultipleTypes_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_ReturnMultipleTypes_cfunc(vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, array_size, an_array, string_size, a_string) - - def niFake_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_SetAttributeViBoolean_cfunc is None: - self.niFake_SetAttributeViBoolean_cfunc = self._get_library_function('niFake_SetAttributeViBoolean') - self.niFake_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niFake_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_SetAttributeViInt32_cfunc is None: - self.niFake_SetAttributeViInt32_cfunc = self._get_library_function('niFake_SetAttributeViInt32') - self.niFake_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niFake_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_SetAttributeViInt64_cfunc is None: - self.niFake_SetAttributeViInt64_cfunc = self._get_library_function('niFake_SetAttributeViInt64') - self.niFake_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 - self.niFake_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_SetAttributeViReal64_cfunc is None: - self.niFake_SetAttributeViReal64_cfunc = self._get_library_function('niFake_SetAttributeViReal64') - self.niFake_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niFake_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFake_SetAttributeViString_cfunc is None: - self.niFake_SetAttributeViString_cfunc = self._get_library_function('niFake_SetAttributeViString') - self.niFake_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFake_SetCustomType(self, vi, cs): # noqa: N802 - with self._func_lock: - if self.niFake_SetCustomType_cfunc is None: - self.niFake_SetCustomType_cfunc = self._get_library_function('niFake_SetCustomType') - self.niFake_SetCustomType_cfunc.argtypes = [ViSession, custom_struct.struct_CustomStruct] # noqa: F405 - self.niFake_SetCustomType_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetCustomType_cfunc(vi, cs) - - def niFake_SetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 - with self._func_lock: - if self.niFake_SetCustomTypeArray_cfunc is None: - self.niFake_SetCustomTypeArray_cfunc = self._get_library_function('niFake_SetCustomTypeArray') - self.niFake_SetCustomTypeArray_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 - self.niFake_SetCustomTypeArray_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetCustomTypeArray_cfunc(vi, number_of_elements, cs) - - def niFake_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niFake_SetRuntimeEnvironment_cfunc is None: - self.niFake_SetRuntimeEnvironment_cfunc = self._get_library_function('niFake_SetRuntimeEnvironment') - self.niFake_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niFake_StringValuedEnumInputFunctionWithDefaults(self, vi, a_mobile_os_name): # noqa: N802 - with self._func_lock: - if self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc is None: - self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc = self._get_library_function('niFake_StringValuedEnumInputFunctionWithDefaults') - self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc(vi, a_mobile_os_name) - - def niFake_TwoInputFunction(self, vi, a_number, a_string): # noqa: N802 - with self._func_lock: - if self.niFake_TwoInputFunction_cfunc is None: - self.niFake_TwoInputFunction_cfunc = self._get_library_function('niFake_TwoInputFunction') - self.niFake_TwoInputFunction_cfunc.argtypes = [ViSession, ViReal64, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_TwoInputFunction_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_TwoInputFunction_cfunc(vi, a_number, a_string) - - def niFake_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niFake_UnlockSession_cfunc is None: - self.niFake_UnlockSession_cfunc = self._get_library_function('niFake_UnlockSession') - self.niFake_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFake_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_UnlockSession_cfunc(vi, caller_has_lock) - - def niFake_Use64BitNumber(self, vi, input, output): # noqa: N802 - with self._func_lock: - if self.niFake_Use64BitNumber_cfunc is None: - self.niFake_Use64BitNumber_cfunc = self._get_library_function('niFake_Use64BitNumber') - self.niFake_Use64BitNumber_cfunc.argtypes = [ViSession, ViInt64, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niFake_Use64BitNumber_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_Use64BitNumber_cfunc(vi, input, output) - - def niFake_WriteWaveform(self, vi, number_of_samples, waveform): # noqa: N802 - with self._func_lock: - if self.niFake_WriteWaveform_cfunc is None: - self.niFake_WriteWaveform_cfunc = self._get_library_function('niFake_WriteWaveform') - self.niFake_WriteWaveform_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFake_WriteWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_WriteWaveform_cfunc(vi, number_of_samples, waveform) - - def niFake_WriteWaveformNumpyComplex128(self, vi, number_of_samples, waveform_data_array): # noqa: N802 - with self._func_lock: - if self.niFake_WriteWaveformNumpyComplex128_cfunc is None: - self.niFake_WriteWaveformNumpyComplex128_cfunc = self._get_library_function('niFake_WriteWaveformNumpyComplex128') - self.niFake_WriteWaveformNumpyComplex128_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(NIComplexNumber)] # noqa: F405 - self.niFake_WriteWaveformNumpyComplex128_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_WriteWaveformNumpyComplex128_cfunc(vi, number_of_samples, waveform_data_array) - - def niFake_WriteWaveformNumpyComplex64(self, vi, number_of_samples, waveform_data_array): # noqa: N802 - with self._func_lock: - if self.niFake_WriteWaveformNumpyComplex64_cfunc is None: - self.niFake_WriteWaveformNumpyComplex64_cfunc = self._get_library_function('niFake_WriteWaveformNumpyComplex64') - self.niFake_WriteWaveformNumpyComplex64_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(NIComplexNumberF32)] # noqa: F405 - self.niFake_WriteWaveformNumpyComplex64_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_WriteWaveformNumpyComplex64_cfunc(vi, number_of_samples, waveform_data_array) - - def niFake_WriteWaveformNumpyComplexInterleavedI16(self, vi, number_of_samples, waveform_data_array): # noqa: N802 - with self._func_lock: - if self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc is None: - self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc = self._get_library_function('niFake_WriteWaveformNumpyComplexInterleavedI16') - self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(NIComplexI16)] # noqa: F405 - self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc(vi, number_of_samples, waveform_data_array) - - def niFake_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niFake_close_cfunc is None: - self.niFake_close_cfunc = self._get_library_function('niFake_close') - self.niFake_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFake_close_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_close_cfunc(vi) - - def niFake_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niFake_error_message_cfunc is None: - self.niFake_error_message_cfunc = self._get_library_function('niFake_error_message') - self.niFake_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_error_message_cfunc(vi, error_code, error_message) - - def niFake_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niFake_self_test_cfunc is None: - self.niFake_self_test_cfunc = self._get_library_function('niFake_self_test') - self.niFake_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFake_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niFake_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nifake/nifake/_library_interpreter.py b/generated/nifake/nifake/_library_interpreter.py deleted file mode 100644 index 1df2f18b87..0000000000 --- a/generated/nifake/nifake/_library_interpreter.py +++ /dev/null @@ -1,843 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import nifake._complextype as _complextype -import nifake._library_singleton as _library_singleton -import nifake._visatype as _visatype -import nifake.enums as enums # noqa: F401 -import nifake.errors as errors - -import nifake.custom_struct as custom_struct # noqa: F401 - -import nifake.custom_struct_typedef as custom_struct_typedef # noqa: F401 - -import nifake.custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - if library_type in (_complextype.NIComplexI16, _complextype.NIComplexNumberF32, _complextype.NIComplexNumber): - complex_dtype = numpy.dtype(library_type) - if value.ndim > 1: - # we create a flattened view of the multi-dimensional numpy array - restructured_array_view = value.ravel().view(complex_dtype) - else: - restructured_array_view = value.view(complex_dtype) - return restructured_array_view.ctypes.data_as(ctypes.POINTER(library_type)) - else: - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_Abort(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def accept_list_of_durations_in_seconds(self, delays): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - count_ctype = _visatype.ViInt32(0 if delays is None else len(delays)) # case S160 - delays_ctype = _get_ctypes_pointer_for_buffer(value=delays, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niFake_AcceptListOfDurationsInSeconds(vi_ctype, count_ctype, delays_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def bool_array_output_function(self, number_of_elements): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 - an_array_size = number_of_elements # case B600 - an_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=an_array_size) # case B600 - error_code = self._library.niFake_BoolArrayOutputFunction(vi_ctype, number_of_elements_ctype, an_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [bool(an_array_ctype[i]) for i in range(number_of_elements_ctype.value)] - - def configure_abc(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_ConfigureABC(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def custom_nested_struct_roundtrip(self, nested_custom_type_in): # noqa: N802 - nested_custom_type_in_ctype = custom_struct_nested_typedef.struct_CustomStructNestedTypedef(nested_custom_type_in) # case S150 - nested_custom_type_out_ctype = custom_struct_nested_typedef.struct_CustomStructNestedTypedef() # case S220 - error_code = self._library.niFake_CustomNestedStructRoundtrip(nested_custom_type_in_ctype, None if nested_custom_type_out_ctype is None else (ctypes.pointer(nested_custom_type_out_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return custom_struct_nested_typedef.CustomStructNestedTypedef(nested_custom_type_out_ctype) - - def double_all_the_nums(self, numbers): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_count_ctype = _visatype.ViInt32(0 if numbers is None else len(numbers)) # case S160 - numbers_ctype = _get_ctypes_pointer_for_buffer(value=numbers, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niFake_DoubleAllTheNums(vi_ctype, number_count_ctype, numbers_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def enum_array_output_function(self, number_of_elements): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 - an_array_size = number_of_elements # case B600 - an_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt16, size=an_array_size) # case B600 - error_code = self._library.niFake_EnumArrayOutputFunction(vi_ctype, number_of_elements_ctype, an_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [enums.Turtle(an_array_ctype[i]) for i in range(number_of_elements_ctype.value)] - - def enum_input_function_with_defaults(self, a_turtle): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_turtle_ctype = _visatype.ViInt16(a_turtle.value) # case S130 - error_code = self._library.niFake_EnumInputFunctionWithDefaults(vi_ctype, a_turtle_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def export_attribute_configuration_buffer(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_in_bytes_ctype = _visatype.ViInt32() # case S170 - configuration_ctype = None # case B580 - error_code = self._library.niFake_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - size_in_bytes_ctype = _visatype.ViInt32(error_code) # case S180 - configuration_size = size_in_bytes_ctype.value # case B590 - configuration_array = array.array("b", [0]) * configuration_size # case B590 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niFake_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return configuration_array - - def fetch_waveform(self, number_of_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(number_of_samples) # case S210 - waveform_data_size = number_of_samples # case B600 - waveform_data_array = array.array("d", [0]) * waveform_data_size # case B600 - waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_visatype.ViReal64) # case B600 - actual_number_of_samples_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_FetchWaveform(vi_ctype, number_of_samples_ctype, waveform_data_ctype, None if actual_number_of_samples_ctype is None else (ctypes.pointer(actual_number_of_samples_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_data_array - - def fetch_waveform_into(self, waveform_data): # noqa: N802 - number_of_samples = len(waveform_data) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(number_of_samples) # case S210 - waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data) # case B510 - actual_number_of_samples_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_FetchWaveform(vi_ctype, number_of_samples_ctype, waveform_data_ctype, None if actual_number_of_samples_ctype is None else (ctypes.pointer(actual_number_of_samples_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self, multidimensional_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - multidimensional_array_ctype = _get_ctypes_pointer_for_buffer(value=multidimensional_array, library_type=_complextype.NIComplexNumber) # case B510 - error_code = self._library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(vi_ctype, multidimensional_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def function_with_intflag_parameter(self, flag): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - flag_ctype = _visatype.ViUInt64(flag.value) # case S130 - error_code = self._library.niFake_FunctionWithIntflagParameter(vi_ctype, flag_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def function_with_repeated_capability_type(self, site_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 - error_code = self._library.niFake_FunctionWithRepeatedCapabilityType(vi_ctype, site_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def get_a_boolean(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_boolean_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niFake_GetABoolean(vi_ctype, None if a_boolean_ctype is None else (ctypes.pointer(a_boolean_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(a_boolean_ctype.value) - - def get_a_number(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_number_ctype = _visatype.ViInt16() # case S220 - error_code = self._library.niFake_GetANumber(vi_ctype, None if a_number_ctype is None else (ctypes.pointer(a_number_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(a_number_ctype.value) - - def get_a_string_of_fixed_maximum_size(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_string_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niFake_GetAStringOfFixedMaximumSize(vi_ctype, a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return a_string_ctype.value.decode(self._encoding) - - def get_a_string_using_python_code(self, a_number): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_number_ctype = _visatype.ViInt16(a_number) # case S150 - a_string_ctype = (_visatype.ViChar * a_number)() # case C080 - error_code = self._library.niFake_GetAStringUsingPythonCode(vi_ctype, a_number_ctype, a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return a_string_ctype.value.decode(self._encoding) - - def get_an_ivi_dance_char_array(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - buffer_size_ctype = _visatype.ViInt32() # case S170 - char_array_ctype = None # case C050 - error_code = self._library.niFake_GetAnIviDanceCharArray(vi_ctype, buffer_size_ctype, char_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - char_array_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niFake_GetAnIviDanceCharArray(vi_ctype, buffer_size_ctype, char_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return char_array_ctype.value.decode(self._encoding) - - def get_an_ivi_dance_with_a_twist_string(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - a_string_ctype = None # case C090 - actual_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_GetAnIviDanceWithATwistString(vi_ctype, buffer_size_ctype, a_string_ctype, None if actual_size_ctype is None else (ctypes.pointer(actual_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_size_ctype.value) # case S200 - a_string_ctype = (_visatype.ViChar * actual_size_ctype.value)() # case C100 - error_code = self._library.niFake_GetAnIviDanceWithATwistString(vi_ctype, buffer_size_ctype, a_string_ctype, None if actual_size_ctype is None else (ctypes.pointer(actual_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return a_string_ctype.value.decode(self._encoding) - - def get_array_for_python_code_custom_type(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(self.get_array_size_for_python_code()) # case S120 - array_out_size = self.get_array_size_for_python_code() # case B560 - array_out_ctype = _get_ctypes_pointer_for_buffer(library_type=custom_struct.struct_CustomStruct, size=array_out_size) # case B560 - error_code = self._library.niFake_GetArrayForPythonCodeCustomType(vi_ctype, number_of_elements_ctype, array_out_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [custom_struct.CustomStruct(array_out_ctype[i]) for i in range(self.get_array_size_for_python_code())] - - def get_array_for_python_code_double(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(self.get_array_size_for_python_code()) # case S120 - array_out_size = self.get_array_size_for_python_code() # case B560 - array_out_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=array_out_size) # case B560 - error_code = self._library.niFake_GetArrayForPythonCodeDouble(vi_ctype, number_of_elements_ctype, array_out_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(array_out_ctype[i]) for i in range(self.get_array_size_for_python_code())] - - def get_array_size_for_python_code(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_out_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_GetArraySizeForPythonCode(vi_ctype, None if size_out_ctype is None else (ctypes.pointer(size_out_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(size_out_ctype.value) - - def get_array_using_ivi_dance(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - array_size_ctype = _visatype.ViInt32() # case S170 - array_out_ctype = None # case B580 - error_code = self._library.niFake_GetArrayUsingIviDance(vi_ctype, array_size_ctype, array_out_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - array_size_ctype = _visatype.ViInt32(error_code) # case S180 - array_out_size = array_size_ctype.value # case B590 - array_out_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=array_out_size) # case B590 - error_code = self._library.niFake_GetArrayUsingIviDance(vi_ctype, array_size_ctype, array_out_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(array_out_ctype[i]) for i in range(array_size_ctype.value)] - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niFake_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(attribute_value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niFake_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFake_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(attribute_value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - attribute_value_ctype = None # case C050 - error_code = self._library.niFake_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - attribute_value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niFake_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return attribute_value_ctype.value.decode(self._encoding) - - def get_cal_date_and_time(self, cal_type): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - cal_type_ctype = _visatype.ViInt32(cal_type) # case S150 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - year_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_GetCalDateAndTime(vi_ctype, cal_type_ctype, None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if year_ctype is None else (ctypes.pointer(year_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(month_ctype.value), int(day_ctype.value), int(year_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_cal_interval(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - months_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFake_GetCalInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(months_ctype.value) - - def get_channel_names(self, indices): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 - name_size_ctype = _visatype.ViInt32() # case S170 - names_ctype = None # case C050 - error_code = self._library.niFake_GetChannelNames(vi_ctype, indices_ctype, name_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - name_size_ctype = _visatype.ViInt32(error_code) # case S180 - names_ctype = (_visatype.ViChar * name_size_ctype.value)() # case C060 - error_code = self._library.niFake_GetChannelNames(vi_ctype, indices_ctype, name_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return names_ctype.value.decode(self._encoding) - - def get_custom_type(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - cs_ctype = custom_struct.struct_CustomStruct() # case S220 - error_code = self._library.niFake_GetCustomType(vi_ctype, None if cs_ctype is None else (ctypes.pointer(cs_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return custom_struct.CustomStruct(cs_ctype) - - def get_custom_type_array(self, number_of_elements): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 - cs_size = number_of_elements # case B600 - cs_ctype = _get_ctypes_pointer_for_buffer(library_type=custom_struct.struct_CustomStruct, size=cs_size) # case B600 - error_code = self._library.niFake_GetCustomTypeArray(vi_ctype, number_of_elements_ctype, cs_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [custom_struct.CustomStruct(cs_ctype[i]) for i in range(number_of_elements_ctype.value)] - - def get_custom_type_typedef(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - cst_ctype = custom_struct_typedef.struct_CustomStructTypedef() # case S220 - csnt_ctype = custom_struct_nested_typedef.struct_CustomStructNestedTypedef() # case S220 - error_code = self._library.niFake_GetCustomTypeTypedef(vi_ctype, None if cst_ctype is None else (ctypes.pointer(cst_ctype)), None if csnt_ctype is None else (ctypes.pointer(csnt_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return custom_struct_typedef.CustomStructTypedef(cst_ctype), custom_struct_nested_typedef.CustomStructNestedTypedef(csnt_ctype) - - def get_enum_value(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_quantity_ctype = _visatype.ViInt32() # case S220 - a_turtle_ctype = _visatype.ViInt16() # case S220 - error_code = self._library.niFake_GetEnumValue(vi_ctype, None if a_quantity_ctype is None else (ctypes.pointer(a_quantity_ctype)), None if a_turtle_ctype is None else (ctypes.pointer(a_turtle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(a_quantity_ctype.value), enums.Turtle(a_turtle_ctype.value) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - buffer_size_ctype = _visatype.ViInt32() # case S170 - description_ctype = None # case C050 - error_code = self._library.niFake_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niFake_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) - - def get_parameter_with_overridden_grpc_name(self, enum_parameter): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - original_parameter_ctype = _visatype.ViInt16() # case S220 - enum_parameter_ctype = _visatype.ViInt16(enum_parameter.value) # case S130 - error_code = self._library.niFake_GetParameterWithOverriddenGrpcName(vi_ctype, None if original_parameter_ctype is None else (ctypes.pointer(original_parameter_ctype)), enum_parameter_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(original_parameter_ctype.value) - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_in_bytes_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niFake_ImportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def import_attribute_configuration_buffer_ex(self, configuration): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niFake_ImportAttributeConfigurationBufferEx(vi_ctype, size_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - id_query_ctype = _visatype.ViBoolean(id_query) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niFake_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initiate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_Initiate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def method_using_whole_and_fractional_numbers(self): # noqa: N802 - whole_number_ctype = _visatype.ViInt32() # case S220 - fractional_number_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFake_MethodUsingWholeAndFractionalNumbers(None if whole_number_ctype is None else (ctypes.pointer(whole_number_ctype)), None if fractional_number_ctype is None else (ctypes.pointer(fractional_number_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(whole_number_ctype.value), float(fractional_number_ctype.value) - - def method_with_grpc_only_param(self, simple_param): # noqa: N802 - simple_param_ctype = _visatype.ViInt32(simple_param) # case S150 - error_code = self._library.niFake_MethodWithGrpcOnlyParam(simple_param_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def method_with_proto_only_parameter(self, attribute_value): # noqa: N802 - attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 - error_code = self._library.niFake_MethodWithProtoOnlyParameter(attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def mixed_ivi_dance_and_len_mechanism(self, input_values): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - input_values_ctype = _get_ctypes_pointer_for_buffer(value=input_values, library_type=_visatype.ViReal64) # case B550 - input_values_size_ctype = _visatype.ViInt32(0 if input_values is None else len(input_values)) # case S160 - output_size_ctype = _visatype.ViInt32() # case S170 - output_array_ctype = None # case B580 - error_code = self._library.niFake_MixedIviDanceAndLenMechanism(vi_ctype, input_values_ctype, input_values_size_ctype, output_size_ctype, output_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - output_size_ctype = _visatype.ViInt32(error_code) # case S180 - output_array_size = output_size_ctype.value # case B590 - output_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=output_array_size) # case B590 - error_code = self._library.niFake_MixedIviDanceAndLenMechanism(vi_ctype, input_values_ctype, input_values_size_ctype, output_size_ctype, output_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [int(output_array_ctype[i]) for i in range(output_size_ctype.value)] - - def multiple_array_types(self, output_array_size, input_array_of_floats, input_array_of_integers): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - output_array_size_ctype = _visatype.ViInt32(output_array_size) # case S210 - output_array_size = output_array_size # case B600 - output_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=output_array_size) # case B600 - output_array_of_fixed_length_size = 3 # case B570 - output_array_of_fixed_length_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=output_array_of_fixed_length_size) # case B570 - input_array_sizes_ctype = _visatype.ViInt32(0 if input_array_of_floats is None else len(input_array_of_floats)) # case S160 - input_array_of_floats_ctype = _get_ctypes_pointer_for_buffer(value=input_array_of_floats, library_type=_visatype.ViReal64) # case B550 - input_array_of_integers_ctype = _get_ctypes_pointer_for_buffer(value=input_array_of_integers, library_type=_visatype.ViInt16) # case B550 - error_code = self._library.niFake_MultipleArrayTypes(vi_ctype, output_array_size_ctype, output_array_ctype, output_array_of_fixed_length_ctype, input_array_sizes_ctype, input_array_of_floats_ctype, input_array_of_integers_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(output_array_ctype[i]) for i in range(output_array_size_ctype.value)], [float(output_array_of_fixed_length_ctype[i]) for i in range(3)] - - def multiple_arrays_different_size(self, values_array, data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - values_array_ctype = _get_ctypes_pointer_for_buffer(value=values_array, library_type=_visatype.ViReal64) # case B550 - values_array_size_ctype = _visatype.ViInt32(0 if values_array is None else len(values_array)) # case S160 - data_array_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViInt32) # case B550 - data_array_size_ctype = _visatype.ViInt32(0 if data_array is None else len(data_array)) # case S160 - error_code = self._library.niFake_MultipleArraysDifferentSize(vi_ctype, values_array_ctype, values_array_size_ctype, data_array_ctype, data_array_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def multiple_arrays_same_size(self, values1, values2, values3, values4): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - values1_ctype = _get_ctypes_pointer_for_buffer(value=values1, library_type=_visatype.ViReal64) # case B550 - values2_ctype = _get_ctypes_pointer_for_buffer(value=values2, library_type=_visatype.ViReal64) # case B550 - values3_ctype = _get_ctypes_pointer_for_buffer(value=values3, library_type=_visatype.ViReal64) # case B550 - values4_ctype = _get_ctypes_pointer_for_buffer(value=values4, library_type=_visatype.ViReal64) # case B550 - size_ctype = _visatype.ViInt32(0 if values1 is None else len(values1)) # case S160 - error_code = self._library.niFake_MultipleArraysSameSize(vi_ctype, values1_ctype, values2_ctype, values3_ctype, values4_ctype, size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def one_input_function(self, a_number): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_number_ctype = _visatype.ViInt32(a_number) # case S150 - error_code = self._library.niFake_OneInputFunction(vi_ctype, a_number_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def parameters_are_multiple_types(self, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_boolean_ctype = _visatype.ViBoolean(a_boolean) # case S150 - an_int32_ctype = _visatype.ViInt32(an_int32) # case S150 - an_int64_ctype = _visatype.ViInt64(an_int64) # case S150 - an_int_enum_ctype = _visatype.ViInt16(an_int_enum.value) # case S130 - a_float_ctype = _visatype.ViReal64(a_float) # case S150 - a_float_enum_ctype = _visatype.ViReal64(a_float_enum.value) # case S130 - a_string_ctype = ctypes.create_string_buffer(a_string.encode(self._encoding)) # case C020 - error_code = self._library.niFake_ParametersAreMultipleTypes(vi_ctype, a_boolean_ctype, an_int32_ctype, an_int64_ctype, an_int_enum_ctype, a_float_ctype, a_float_enum_ctype, a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def simple_function(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_PoorlyNamedSimpleFunction(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def read(self, maximum_time): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ctype = _visatype.ViReal64(maximum_time) # case S150 - reading_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFake_Read(vi_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(reading_ctype.value) - - def read_from_channel(self, channel_name, maximum_time): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 - reading_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFake_ReadFromChannel(vi_ctype, channel_name_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(reading_ctype.value) - - def return_a_number_and_a_string(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_number_ctype = _visatype.ViInt16() # case S220 - a_string_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niFake_ReturnANumberAndAString(vi_ctype, None if a_number_ctype is None else (ctypes.pointer(a_number_ctype)), a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(a_number_ctype.value), a_string_ctype.value.decode(self._encoding) - - def return_duration_in_seconds(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - timedelta_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFake_ReturnDurationInSeconds(vi_ctype, None if timedelta_ctype is None else (ctypes.pointer(timedelta_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(timedelta_ctype.value) - - def return_list_of_durations_in_seconds(self, number_of_elements): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 - timedeltas_size = number_of_elements # case B600 - timedeltas_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=timedeltas_size) # case B600 - error_code = self._library.niFake_ReturnListOfDurationsInSeconds(vi_ctype, number_of_elements_ctype, timedeltas_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(timedeltas_ctype[i]) for i in range(number_of_elements_ctype.value)] - - def return_multiple_types(self, array_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_boolean_ctype = _visatype.ViBoolean() # case S220 - an_int32_ctype = _visatype.ViInt32() # case S220 - an_int64_ctype = _visatype.ViInt64() # case S220 - an_int_enum_ctype = _visatype.ViInt16() # case S220 - a_float_ctype = _visatype.ViReal64() # case S220 - a_float_enum_ctype = _visatype.ViReal64() # case S220 - array_size_ctype = _visatype.ViInt32(array_size) # case S210 - an_array_size = array_size # case B600 - an_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=an_array_size) # case B600 - string_size_ctype = _visatype.ViInt32() # case S170 - a_string_ctype = None # case C050 - error_code = self._library.niFake_ReturnMultipleTypes(vi_ctype, None if a_boolean_ctype is None else (ctypes.pointer(a_boolean_ctype)), None if an_int32_ctype is None else (ctypes.pointer(an_int32_ctype)), None if an_int64_ctype is None else (ctypes.pointer(an_int64_ctype)), None if an_int_enum_ctype is None else (ctypes.pointer(an_int_enum_ctype)), None if a_float_ctype is None else (ctypes.pointer(a_float_ctype)), None if a_float_enum_ctype is None else (ctypes.pointer(a_float_enum_ctype)), array_size_ctype, an_array_ctype, string_size_ctype, a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - string_size_ctype = _visatype.ViInt32(error_code) # case S180 - a_string_ctype = (_visatype.ViChar * string_size_ctype.value)() # case C060 - error_code = self._library.niFake_ReturnMultipleTypes(vi_ctype, None if a_boolean_ctype is None else (ctypes.pointer(a_boolean_ctype)), None if an_int32_ctype is None else (ctypes.pointer(an_int32_ctype)), None if an_int64_ctype is None else (ctypes.pointer(an_int64_ctype)), None if an_int_enum_ctype is None else (ctypes.pointer(an_int_enum_ctype)), None if a_float_ctype is None else (ctypes.pointer(a_float_ctype)), None if a_float_enum_ctype is None else (ctypes.pointer(a_float_enum_ctype)), array_size_ctype, an_array_ctype, string_size_ctype, a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(a_boolean_ctype.value), int(an_int32_ctype.value), int(an_int64_ctype.value), enums.Turtle(an_int_enum_ctype.value), float(a_float_ctype.value), enums.FloatEnum(a_float_enum_ctype.value), [float(an_array_ctype[i]) for i in range(array_size_ctype.value)], a_string_ctype.value.decode(self._encoding) - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 - error_code = self._library.niFake_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 - error_code = self._library.niFake_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt64(attribute_value) # case S150 - error_code = self._library.niFake_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 - error_code = self._library.niFake_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 - error_code = self._library.niFake_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_custom_type(self, cs): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - cs_ctype = custom_struct.struct_CustomStruct(cs) # case S150 - error_code = self._library.niFake_SetCustomType(vi_ctype, cs_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_custom_type_array(self, cs): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_elements_ctype = _visatype.ViInt32(0 if cs is None else len(cs)) # case S160 - cs_ctype = _get_ctypes_pointer_for_buffer([custom_struct.struct_CustomStruct(c) for c in cs], library_type=custom_struct.struct_CustomStruct) # case B540 - error_code = self._library.niFake_SetCustomTypeArray(vi_ctype, number_of_elements_ctype, cs_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niFake_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def string_valued_enum_input_function_with_defaults(self, a_mobile_os_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_mobile_os_name_ctype = ctypes.create_string_buffer(a_mobile_os_name.value.encode(self._encoding)) # case C030 - error_code = self._library.niFake_StringValuedEnumInputFunctionWithDefaults(vi_ctype, a_mobile_os_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def two_input_function(self, a_number, a_string): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - a_number_ctype = _visatype.ViReal64(a_number) # case S150 - a_string_ctype = ctypes.create_string_buffer(a_string.encode(self._encoding)) # case C020 - error_code = self._library.niFake_TwoInputFunction(vi_ctype, a_number_ctype, a_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def use64_bit_number(self, input): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - input_ctype = _visatype.ViInt64(input) # case S150 - output_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niFake_Use64BitNumber(vi_ctype, input_ctype, None if output_ctype is None else (ctypes.pointer(output_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(output_ctype.value) - - def write_waveform(self, waveform): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform is None else len(waveform)) # case S160 - waveform_array = _convert_to_array(value=waveform, array_type="d") # case B550 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niFake_WriteWaveform(vi_ctype, number_of_samples_ctype, waveform_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_waveform_numpy(self, waveform): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform is None else len(waveform)) # case S160 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 - error_code = self._library.niFake_WriteWaveform(vi_ctype, number_of_samples_ctype, waveform_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_waveform_numpy_complex128(self, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumber) # case B510 - error_code = self._library.niFake_WriteWaveformNumpyComplex128(vi_ctype, number_of_samples_ctype, waveform_data_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_waveform_numpy_complex64(self, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumberF32) # case B510 - error_code = self._library.niFake_WriteWaveformNumpyComplex64(vi_ctype, number_of_samples_ctype, waveform_data_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_waveform_numpy_complex_interleaved_i16(self, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array) // 2) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexI16) # case B510 - error_code = self._library.niFake_WriteWaveformNumpyComplexInterleavedI16(vi_ctype, number_of_samples_ctype, waveform_data_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFake_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niFake_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niFake_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nifake/nifake/_library_singleton.py b/generated/nifake/nifake/_library_singleton.py deleted file mode 100644 index ca9282ecb9..0000000000 --- a/generated/nifake/nifake/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nifake._library as _library -import nifake.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nifake', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'nifake_32.dll', 'type': 'windll'}, - '64bit': {'name': 'nifake_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nifake. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nifake/nifake/_visatype.py b/generated/nifake/nifake/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nifake/nifake/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nifake/nifake/custom_struct.py b/generated/nifake/nifake/custom_struct.py deleted file mode 100644 index be0f6ea326..0000000000 --- a/generated/nifake/nifake/custom_struct.py +++ /dev/null @@ -1,47 +0,0 @@ -import ctypes - -import nifake._visatype - - -# This class is an internal implementation detail -# ctypes definition -# Name must match exactly what the name of the structure type is named in the C API. -class struct_CustomStruct(ctypes.Structure): # noqa N801 - _fields_ = [ - ('struct_int', nifake._visatype.ViInt32), - ('struct_double', nifake._visatype.ViReal64), - ] - - def __init__(self, data=None, struct_int=0, struct_double=0.0): - super(ctypes.Structure, self).__init__() - if data is not None: - self.struct_int = data.struct_int - self.struct_double = data.struct_double - else: - self.struct_int = struct_int - self.struct_double = struct_double - - def __repr__(self): - return f'{self.__class__.__name__}(data=None, struct_int={self.struct_int}, struct_double={self.struct_double})' - - def __str__(self): - return self.__repr__() - - -class CustomStruct: - def __init__(self, data=None, struct_int=0, struct_double=0.0): - if data is not None: - self.struct_int = data.struct_int - self.struct_double = data.struct_double - else: - self.struct_int = struct_int - self.struct_double = struct_double - - def _create_copy(self, target_class): - return target_class(struct_int=self.struct_int, struct_double=self.struct_double) - - def __repr__(self): - return f'{self.__class__.__name__}(data=None, struct_int={self.struct_int}, struct_double={self.struct_double})' - - def __str__(self): - return self.__repr__() diff --git a/generated/nifake/nifake/custom_struct_nested_typedef.py b/generated/nifake/nifake/custom_struct_nested_typedef.py deleted file mode 100644 index 821eef6f41..0000000000 --- a/generated/nifake/nifake/custom_struct_nested_typedef.py +++ /dev/null @@ -1,60 +0,0 @@ -import ctypes - -import nifake.custom_struct as custom_struct -import nifake.custom_struct_typedef as custom_struct_typedef - - -class struct_CustomStructNestedTypedef(ctypes.Structure): # noqa N801 - _fields_ = [ - ('struct_custom_struct', custom_struct.struct_CustomStruct), - ('struct_custom_struct_typedef', custom_struct_typedef.struct_CustomStructTypedef), - ] - - def __init__(self, data=None): - super(ctypes.Structure, self).__init__() - if data is not None: - self.struct_custom_struct = custom_struct.struct_CustomStruct(data.struct_custom_struct) - self.struct_custom_struct_typedef = custom_struct_typedef.struct_CustomStructTypedef( - data.struct_custom_struct_typedef - ) - else: - self.struct_custom_struct = custom_struct.struct_CustomStruct() - self.struct_custom_struct_typedef = custom_struct_typedef.struct_CustomStructTypedef() - - -class CustomStructNestedTypedef: - def __init__( - self, - data=None, - struct_custom_struct=custom_struct.CustomStruct(), - struct_custom_struct_typedef=custom_struct_typedef.CustomStructTypedef() - ): - if data is not None: - self.struct_custom_struct = custom_struct.CustomStruct(data.struct_custom_struct) - self.struct_custom_struct_typedef = custom_struct_typedef.CustomStructTypedef( - data.struct_custom_struct_typedef - ) - else: - self.struct_custom_struct = struct_custom_struct - self.struct_custom_struct_typedef = struct_custom_struct_typedef - - def _create_copy(self, target_class): - sample_object = target_class() - return target_class( - struct_custom_struct=self.struct_custom_struct._create_copy( - type(sample_object.struct_custom_struct) - ), - struct_custom_struct_typedef=self.struct_custom_struct_typedef._create_copy( - type(sample_object.struct_custom_struct_typedef) - ), - ) - - def __repr__(self): - return '{}(data=None, struct_custom_struct={}, struct_custom_struct_typedef={})'.format( - self.__class__.__name__, - repr(self.struct_custom_struct), - repr(self.struct_custom_struct_typedef) - ) - - def __str__(self): - return self.__repr__() diff --git a/generated/nifake/nifake/custom_struct_typedef.py b/generated/nifake/nifake/custom_struct_typedef.py deleted file mode 100644 index f919399509..0000000000 --- a/generated/nifake/nifake/custom_struct_typedef.py +++ /dev/null @@ -1,42 +0,0 @@ -import ctypes - -import nifake._visatype - - -class struct_CustomStructTypedef(ctypes.Structure): # noqa N801 - _fields_ = [ - ('struct_int', nifake._visatype.ViInt32), - ('struct_double', nifake._visatype.ViReal64), - ] - - def __init__(self, data=None): - super(ctypes.Structure, self).__init__() - if data is not None: - self.struct_int = data.struct_int - self.struct_double = data.struct_double - else: - self.struct_int = 0 - self.struct_double = 0.0 - - -class CustomStructTypedef: - def __init__(self, data=None, struct_int=0, struct_double=0.0): - if data is not None: - self.struct_int = data.struct_int - self.struct_double = data.struct_double - else: - self.struct_int = struct_int - self.struct_double = struct_double - - def _create_copy(self, target_class): - return target_class(struct_int=self.struct_int, struct_double=self.struct_double) - - def __repr__(self): - return '{}(data=None, struct_int={}, struct_double={})'.format( - self.__class__.__name__, - self.struct_int, - self.struct_double - ) - - def __str__(self): - return self.__repr__() diff --git a/generated/nifake/nifake/enums.py b/generated/nifake/nifake/enums.py deleted file mode 100644 index cd042c61c0..0000000000 --- a/generated/nifake/nifake/enums.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum -from enum import IntFlag - - -class Color(Enum): - RED = 1 - r''' - Like blood. - ''' - BLUE = 2 - r''' - Like the sky. - ''' - YELLOW = 5 - r''' - Like a banana. - ''' - BLACK = 42 - r''' - Like this developer's conscience. - ''' - - -class EnumWithConverter(Enum): - RED = 1 - BLUE = 2 - YELLOW = 5 - BLACK = 42 - - -class FloatEnum(Enum): - THREE_POINT_FIVE = 3.5 - r''' - Specifies 3.5 digits resolution. - ''' - FOUR_POINT_FIVE = 4.5 - r''' - Specifies 4.5 digits resolution. - ''' - FIVE_POINT_FIVE = 5.5 - r''' - Specifies 5.5 digits resolution. - ''' - SIX_POINT_FIVE = 6.5 - r''' - Specifies 6.5 digits resolution. - ''' - SEVEN_POINT_FIVE = 7.5 - r''' - Specifies 7.5 digits resolution. - ''' - - -class IntFlagEnum(IntFlag): - A = 1 - r''' - Flag A option. - ''' - B = 2 - r''' - Flag B option. - ''' - E = 1073741824 - r''' - Flag E option. - ''' - - -class MobileOSNames(Enum): - ANDROID = 'Android' - r''' - Most popular OS. - ''' - IOS = 'iOS' - r''' - Most secure OS. - ''' - NONE = 'None' - r''' - Remember Symbian?. - ''' - - -class Turtle(Enum): - LEONARDO = 0 - r''' - Wields two katanas. - ''' - DONATELLO = 1 - r''' - Uses a bo staff. - ''' - RAPHAEL = 2 - r''' - Has a pair of sai. - ''' - MICHELANGELO = 3 - r''' - Owns nunchucks. - ''' diff --git a/generated/nifake/nifake/errors.py b/generated/nifake/nifake/errors.py deleted file mode 100644 index e36463b1a7..0000000000 --- a/generated/nifake/nifake/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-FAKE''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-FAKE driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-FAKE driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-FAKE runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-FAKE driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-FAKE runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-FAKE driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-FAKE runtime returned an unexpected value. This can occur if it is too new for the nifake Python module. Upgrade the nifake Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nifake.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nifake/nifake/grpc_session_options.py b/generated/nifake/nifake/grpc_session_options.py deleted file mode 100644 index 1859e5aa8f..0000000000 --- a/generated/nifake/nifake/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nifake_grpc.NiFake' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nifake/nifake/nidevice_pb2.py b/generated/nifake/nifake/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nifake/nifake/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nifake/nifake/nidevice_pb2_grpc.py b/generated/nifake/nifake/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nifake/nifake/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nifake/nifake/nifake_pb2.py b/generated/nifake/nifake/nifake_pb2.py deleted file mode 100644 index f57e242948..0000000000 --- a/generated/nifake/nifake/nifake_pb2.py +++ /dev/null @@ -1,489 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nifake.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnifake.proto\x12\x0bnifake_grpc\x1a\rsession.proto\"=\n\x10\x46\x61keCustomStruct\x12\x12\n\nstruct_int\x18\x01 \x01(\x11\x12\x15\n\rstruct_double\x18\x02 \x01(\x01\"\xa0\x01\n\x19\x43ustomStructNestedTypedef\x12;\n\x14struct_custom_struct\x18\x01 \x01(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\x12\x46\n\x1cstruct_custom_struct_typedef\x18\x02 \x01(\x0b\x32 .nifake_grpc.CustomStructTypedef\"@\n\x13\x43ustomStructTypedef\x12\x12\n\nstruct_int\x18\x01 \x01(\x11\x12\x15\n\rstruct_double\x18\x02 \x01(\x01\"6\n\x13NIComplexI16_struct\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"9\n\x16NIComplexNumber_struct\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"<\n\x19NIComplexNumberF32_struct\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"J\n\x0fStringAndTurtle\x12\x12\n\nstring_arg\x18\x01 \x01(\t\x12#\n\x06turtle\x18\x02 \x01(\x0e\x32\x13.nifake_grpc.Turtle\"%\n\x0f\x43ustomNamedType\x12\x12\n\nstring_arg\x18\x01 \x01(\t\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\x1e\x42oolArrayOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"C\n\x1f\x42oolArrayOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61n_array\x18\x02 \x03(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\x1e\x45numArrayOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"n\n\x1f\x45numArrayOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x08\x61n_array\x18\x02 \x03(\x0e\x32\x13.nifake_grpc.Turtle\x12\x14\n\x0c\x61n_array_raw\x18\x03 \x03(\x11\"\x9c\x01\n$EnumInputFunctionWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\'\n\x08\x61_turtle\x18\x02 \x01(\x0e\x32\x13.nifake_grpc.TurtleH\x00\x12\x16\n\x0c\x61_turtle_raw\x18\x03 \x01(\x11H\x00\x42\x0f\n\ra_turtle_enum\"7\n%EnumInputFunctionWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xce\x01\n0StringValuedEnumInputFunctionWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12=\n\x17\x61_mobile_os_name_mapped\x18\x02 \x01(\x0e\x32\x1a.nifake_grpc.MobileOSNamesH\x00\x12\x1e\n\x14\x61_mobile_os_name_raw\x18\x03 \x01(\tH\x00\x42\x17\n\x15\x61_mobile_os_name_enum\"C\n1StringValuedEnumInputFunctionWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"U\n\x14\x46\x65tchWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11number_of_samples\x18\x02 \x01(\x11\"`\n\x15\x46\x65tchWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwaveform_data\x18\x02 \x03(\x01\x12 \n\x18\x61\x63tual_number_of_samples\x18\x03 \x01(\x11\"8\n\x12GetABooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"8\n\x13GetABooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\ta_boolean\x18\x02 \x01(\x08\"7\n\x11GetANumberRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"6\n\x12GetANumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_number\x18\x02 \x01(\x11\"I\n#GetAStringOfFixedMaximumSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"H\n$GetAStringOfFixedMaximumSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_string\x18\x02 \x01(\t\"C\n\x1dGetAnIviDanceCharArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"D\n\x1eGetAnIviDanceCharArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nchar_array\x18\x02 \x01(\t\"B\n\x1cGetArrayUsingIviDanceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"B\n\x1dGetArrayUsingIviDanceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x01\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"F\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x03\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"P\n\x18GetCalDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63\x61l_type\x18\x02 \x01(\x11\"s\n\x19GetCalDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x11\x12\x0c\n\x04year\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\";\n\x15GetCalIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"8\n\x16GetCalIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"9\n\x13GetEnumValueRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"w\n\x14GetEnumValueResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\na_quantity\x18\x02 \x01(\x11\x12%\n\x08\x61_turtle\x18\x03 \x01(\x0e\x32\x13.nifake_grpc.Turtle\x12\x14\n\x0c\x61_turtle_raw\x18\x04 \x01(\x11\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"K\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"n\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1f\n\x17new_session_initialized\x18\x03 \x01(\x08\"\x9a\x01\n\x19MultipleArrayTypesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11output_array_size\x18\x02 \x01(\x11\x12\x1d\n\x15input_array_of_floats\x18\x03 \x03(\x01\x12\x1f\n\x17input_array_of_integers\x18\x04 \x03(\x11\"h\n\x1aMultipleArrayTypesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0coutput_array\x18\x02 \x03(\x01\x12$\n\x1coutput_array_of_fixed_length\x18\x03 \x03(\x01\"\x87\x01\n\x1dMultipleArraysSameSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07values1\x18\x02 \x03(\x01\x12\x0f\n\x07values2\x18\x03 \x03(\x01\x12\x0f\n\x07values3\x18\x04 \x03(\x01\x12\x0f\n\x07values4\x18\x05 \x03(\x01\"0\n\x1eMultipleArraysSameSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"r\n\"MultipleArraysDifferentSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cvalues_array\x18\x02 \x03(\x01\x12\x12\n\ndata_array\x18\x03 \x03(\x11\"5\n#MultipleArraysDifferentSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"_\n#MixedIviDanceAndLenMechanismRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cinput_values\x18\x02 \x03(\x01\"L\n$MixedIviDanceAndLenMechanismResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0coutput_array\x18\x02 \x03(\x11\"O\n\x17OneInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61_number\x18\x02 \x01(\x11\"*\n\x18OneInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe4\x02\n!ParametersAreMultipleTypesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\ta_boolean\x18\x02 \x01(\x08\x12\x10\n\x08\x61n_int32\x18\x03 \x01(\x11\x12\x10\n\x08\x61n_int64\x18\x04 \x01(\x03\x12*\n\x0b\x61n_int_enum\x18\x05 \x01(\x0e\x32\x13.nifake_grpc.TurtleH\x00\x12\x19\n\x0f\x61n_int_enum_raw\x18\x06 \x01(\x11H\x00\x12\x0f\n\x07\x61_float\x18\x07 \x01(\x01\x12\x35\n\x13\x61_float_enum_mapped\x18\x08 \x01(\x0e\x32\x16.nifake_grpc.FloatEnumH\x01\x12\x1a\n\x10\x61_float_enum_raw\x18\t \x01(\x01H\x01\x12\x10\n\x08\x61_string\x18\n \x01(\tB\x12\n\x10\x61n_int_enum_enumB\x13\n\x11\x61_float_enum_enum\"4\n\"ParametersAreMultipleTypesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n PoorlyNamedSimpleFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"3\n!PoorlyNamedSimpleFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"G\n\x0bReadRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cmaximum_time\x18\x02 \x01(\x01\"/\n\x0cReadResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"h\n\x16ReadFromChannelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x14\n\x0cmaximum_time\x18\x03 \x01(\x11\":\n\x17ReadFromChannelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"D\n\x1eReturnANumberAndAStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"U\n\x1fReturnANumberAndAStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_number\x18\x02 \x01(\x11\x12\x10\n\x08\x61_string\x18\x03 \x01(\t\"T\n\x1aReturnMultipleTypesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\narray_size\x18\x02 \x01(\x11\"\xab\x02\n\x1bReturnMultipleTypesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\ta_boolean\x18\x02 \x01(\x08\x12\x10\n\x08\x61n_int32\x18\x03 \x01(\x11\x12\x10\n\x08\x61n_int64\x18\x04 \x01(\x03\x12(\n\x0b\x61n_int_enum\x18\x05 \x01(\x0e\x32\x13.nifake_grpc.Turtle\x12\x17\n\x0f\x61n_int_enum_raw\x18\x06 \x01(\x11\x12\x0f\n\x07\x61_float\x18\x07 \x01(\x01\x12\x33\n\x13\x61_float_enum_mapped\x18\x08 \x01(\x0e\x32\x16.nifake_grpc.FloatEnum\x12\x18\n\x10\x61_float_enum_raw\x18\t \x01(\x01\x12\x10\n\x08\x61n_array\x18\n \x03(\x01\x12\x10\n\x08\x61_string\x18\x0b \x01(\t\"\xa5\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x42\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32\'.nifake_grpc.NiFakeInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x43\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32(.nifake_grpc.NiFakeReal64AttributeValuesH\x00\x12P\n\x16\x61ttribute_value_mapped\x18\x05 \x01(\x0e\x32..nifake_grpc.NiFakeReal64AttributeValuesMappedH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x06 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n\x17TwoInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61_number\x18\x02 \x01(\x01\x12\x10\n\x08\x61_string\x18\x03 \x01(\t\"*\n\x18TwoInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15Use64BitNumberRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05input\x18\x02 \x01(\x03\"8\n\x16Use64BitNumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06output\x18\x02 \x01(\x03\"L\n\x14WriteWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08waveform\x18\x02 \x03(\x01\"\'\n\x15WriteWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8b\x01\n#WriteWaveformNumpyComplex128Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12@\n\x13waveform_data_array\x18\x02 \x03(\x0b\x32#.nifake_grpc.NIComplexNumber_struct\"6\n$WriteWaveformNumpyComplex128Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n\"WriteWaveformNumpyComplex64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x13waveform_data_array\x18\x02 \x03(\x0b\x32&.nifake_grpc.NIComplexNumberF32_struct\"5\n#WriteWaveformNumpyComplex64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x93\x01\n.WriteWaveformNumpyComplexInterleavedI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12=\n\x13waveform_data_array\x18\x02 \x03(\x0b\x32 .nifake_grpc.NIComplexI16_struct\"A\n/WriteWaveformNumpyComplexInterleavedI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x14SetCustomTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x02\x63s\x18\x02 \x01(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"\'\n\x15SetCustomTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x19SetCustomTypeArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x02\x63s\x18\x02 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\",\n\x1aSetCustomTypeArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14GetCustomTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"R\n\x15GetCustomTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x02\x63s\x18\x02 \x01(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"[\n\x19GetCustomTypeArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"W\n\x1aGetCustomTypeArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x02\x63s\x18\x02 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"[\n#GetAnIviDanceWithATwistArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61_string\x18\x02 \x01(\t\"^\n$GetAnIviDanceWithATwistArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x11\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"J\n$GetAnIviDanceWithATwistStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"^\n%GetAnIviDanceWithATwistStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_string\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"N\n\x17\x44oubleAllTheNumsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"*\n\x18\x44oubleAllTheNumsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n%AcceptListOfDurationsInSecondsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06\x64\x65lays\x18\x02 \x03(\x01\"8\n&AcceptListOfDurationsInSecondsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eReturnDurationInSecondsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"D\n\x1fReturnDurationInSecondsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\ttimedelta\x18\x02 \x01(\x01\"g\n%ReturnListOfDurationsInSecondsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"L\n&ReturnListOfDurationsInSecondsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\ntimedeltas\x18\x02 \x03(\x01\"9\n\x13\x43onfigureAbcRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"&\n\x14\x43onfigureAbcResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x02\n\x15\x43onfigureEnumsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x30\n\x0csample_count\x18\x02 \x01(\x0e\x32\x18.nifake_grpc.SampleCountH\x00\x12\x1a\n\x10sample_count_raw\x18\x03 \x01(\x11H\x00\x12\x36\n\x0fsample_interval\x18\x04 \x01(\x0e\x32\x1b.nifake_grpc.SampleIntervalH\x01\x12\x1d\n\x13sample_interval_raw\x18\x05 \x01(\x01H\x01\x42\x13\n\x11sample_count_enumB\x16\n\x14sample_interval_enum\"(\n\x16\x43onfigureEnumsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Q\n+ExportAttributeConfigurationBufferExRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"U\n,ExportAttributeConfigurationBufferExResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"h\n+ImportAttributeConfigurationBufferExRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\">\n,ImportAttributeConfigurationBufferExResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"x\n\x1a\x46\x65tchWithCustomSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1b\n\x13number_of_waveforms\x18\x02 \x01(\x11\x12\x19\n\x11number_of_samples\x18\x03 \x01(\x11\"D\n\x1b\x46\x65tchWithCustomSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwaveform_data\x18\x02 \x03(\x01\"\xbf\x01\n)GetParameterWithOverriddenGrpcNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\x12\x65num_parameter_raw\x18\x02 \x01(\x0e\x32\x13.nifake_grpc.TurtleH\x00\x12 \n\x16\x65num_parameter_raw_raw\x18\x03 \x01(\x11H\x00\x42\x19\n\x17\x65num_parameter_raw_enum\"Z\n*GetParameterWithOverriddenGrpcNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14overridden_parameter\x18\x02 \x01(\x11\"`\n:IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x9a\x01\n;IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06\x61rray1\x18\x02 \x03(\x11\x12\x0e\n\x06\x61rray2\x18\x03 \x03(\x11\x12\x0e\n\x06\x61rray3\x18\x04 \x03(\x11\x12\x1b\n\x13\x61\x63tual_num_elements\x18\x05 \x01(\x11\"M\n\'FunctionWithOverriddenGrpcName2xRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\":\n(FunctionWithOverriddenGrpcName2xResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa9\x01\n>FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x16multidimensional_array\x18\x02 \x03(\x0b\x32#.nifake_grpc.NIComplexNumber_struct\"Q\n?FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n&StringValuedEnumNoEnumGeneratedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\ra_string_enum\x18\x02 \x01(\t\"9\n\'StringValuedEnumNoEnumGeneratedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*IviDanceWithATwistCalculatedSizeOutRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8e\x01\n+IviDanceWithATwistCalculatedSizeOutResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\r\x12\x1c\n\x14\x61\x63tual_num_waveforms\x18\x03 \x01(\x11\x12#\n\x1b\x61\x63tual_samples_per_waveform\x18\x04 \x01(\x11\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"B\n\x12\x43ontrol4022Request\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x15\n\rconfiguration\x18\x02 \x01(\x11\"%\n\x13\x43ontrol4022Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\x1b\x41\x63\x63\x65ptViSessionArrayRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12-\n\rsession_array\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x41\x63\x63\x65ptViSessionArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1a\x41\x63\x63\x65ptViUInt32ArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\ru_int32_array\x18\x02 \x03(\r\"-\n\x1b\x41\x63\x63\x65ptViUInt32ArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n\x1d\x42oolArrayInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\x12\x10\n\x08\x61n_array\x18\x03 \x03(\x08\"0\n\x1e\x42oolArrayInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x12\x43loseExtCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06\x61\x63tion\x18\x02 \x01(\x11\"%\n\x13\x43loseExtCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43ommandWithReservedParamRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n CommandWithReservedParamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1e\x43reateConfigurationListRequest\x12\x38\n\x12list_attribute_ids\x18\x01 \x03(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"1\n\x1f\x43reateConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"k\n\"CustomNestedStructRoundtripRequest\x12\x45\n\x15nested_custom_type_in\x18\x01 \x01(\x0b\x32&.nifake_grpc.CustomStructNestedTypedef\"}\n#CustomNestedStructRoundtripResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x46\n\x16nested_custom_type_out\x18\x02 \x01(\x0b\x32&.nifake_grpc.CustomStructNestedTypedef\"\x1f\n\x1dGetBitfieldAsEnumArrayRequest\"o\n\x1eGetBitfieldAsEnumArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12*\n\x0b\x66lags_array\x18\x02 \x03(\x0e\x32\x15.nifake_grpc.Bitfield\x12\x11\n\tflags_raw\x18\x03 \x01(\x03\"U\n/GetAnIviDanceWithATwistArrayOfCustomTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x89\x01\n0GetAnIviDanceWithATwistArrayOfCustomTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x30\n\tarray_out\x18\x02 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"D\n1GetAnIviDanceWithATwistArrayWithInputArrayRequest\x12\x0f\n\x07\x64\x61ta_in\x18\x01 \x03(\x11\"l\n2GetAnIviDanceWithATwistArrayWithInputArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x11\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\")\n\'GetAnIviDanceWithATwistByteArrayRequest\"b\n(GetAnIviDanceWithATwistByteArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x01(\x0c\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"/\n-GetAnIviDanceWithATwistStringStrlenBugRequest\"i\n.GetAnIviDanceWithATwistStringStrlenBugResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nstring_out\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"F\n GetArraySizeForCustomCodeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n!GetArraySizeForCustomCodeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08size_out\x18\x02 \x01(\x11\"W\n\x1eGetArrayViUInt8WithEnumRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tarray_len\x18\x02 \x01(\x11\"\x8b\x01\n\x1fGetArrayViUInt8WithEnumResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x39\n\x11u_int8_enum_array\x18\x02 \x03(\x0e\x32\x1e.nifake_grpc.GrpcColorOverride\x12\x1d\n\x15u_int8_enum_array_raw\x18\x03 \x01(\x0c\"7\n\x11GetViUInt8Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"<\n\x12GetViUInt8Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x61_uint8_number\x18\x02 \x01(\r\"O\n\x16GetViInt32ArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tarray_len\x18\x02 \x01(\x11\">\n\x17GetViInt32ArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bint32_array\x18\x02 \x03(\x11\"P\n\x17GetViUInt32ArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tarray_len\x18\x02 \x01(\x11\"A\n\x18GetViUInt32ArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\ru_int32_array\x18\x02 \x03(\r\"\x92\x01\n(MethodUsingEnumWithGrpcNameValuesRequest\x12\x39\n\nusing_enum\x18\x01 \x01(\x0e\x32#.nifake_grpc.EnumWithGrpcNameValuesH\x00\x12\x18\n\x0eusing_enum_raw\x18\x02 \x01(\x11H\x00\x42\x11\n\x0fusing_enum_enum\";\n)MethodUsingEnumWithGrpcNameValuesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"$\n\"MethodWithGetLastErrorParamRequest\"M\n#MethodWithGetLastErrorParamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\nlast_error\x18\x02 \x01(\tB\x02\x18\x01\"6\n\x1eMethodWithGrpcOnlyParamRequest\x12\x14\n\x0csimple_param\x18\x01 \x01(\x11\"J\n\x1fMethodWithGrpcOnlyParamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fgrpc_only_param\x18\x02 \x01(\x11\"-\n+MethodUsingWholeAndFractionalNumbersRequest\"\xf1\x01\n,MethodUsingWholeAndFractionalNumbersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x35\n\x0cwhole_number\x18\x02 \x01(\x0e\x32\x1f.nifake_grpc.DecimalWholeNumber\x12\x18\n\x10whole_number_raw\x18\x03 \x01(\x11\x12\x41\n\x18\x66ractional_number_mapped\x18\x04 \x01(\x0e\x32\x1f.nifake_grpc.DecimalMixedNumber\x12\x1d\n\x15\x66ractional_number_raw\x18\x05 \x01(\x01\"&\n$MethodUsingWholeMappedNumbersRequest\"\x95\x01\n%MethodUsingWholeMappedNumbersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x42\n\x13whole_number_mapped\x18\x02 \x01(\x0e\x32%.nifake_grpc.DecimalWholeNumberMapped\x12\x18\n\x10whole_number_raw\x18\x03 \x01(\x01\";\n MethodWithGrpcFieldNumberRequest\x12\x17\n\x0f\x61ttribute_value\x18\x05 \x01(\x11\"3\n!MethodWithGrpcFieldNumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n#MethodWithProtoOnlyParameterRequest\x12\x17\n\x0f\x61ttribute_value\x18\x01 \x01(\x11\"6\n$MethodWithProtoOnlyParameterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\"\n ReadDataWithInOutIviTwistRequest\"V\n!ReadDataWithInOutIviTwistResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x11\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\".\n,ReadDataWithMultipleIviTwistParamSetsRequest\"\x9b\x01\n-ReadDataWithMultipleIviTwistParamSetsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x11\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\x12\x17\n\x0fother_array_out\x18\x04 \x03(\x11\x12\x19\n\x11other_actual_size\x18\x05 \x01(\x11\"^\n\x11InitExtCalRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x1c\n\x14\x63\x61libration_password\x18\x03 \x01(\t\"H\n\x12InitExtCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"|\n\x16InitWithVarArgsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x35\n\x0fname_and_turtle\x18\x03 \x03(\x0b\x32\x1c.nifake_grpc.StringAndTurtle\"M\n\x17InitWithVarArgsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xc3\x01\n)MultipleArraysSameSizeWithOptionalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07values1\x18\x02 \x03(\x01\x12\x0f\n\x07values2\x18\x03 \x03(\x01\x12\x0f\n\x07values3\x18\x04 \x03(\x01\x12\x0f\n\x07values4\x18\x05 \x03(\x01\x12.\n\x07values5\x18\x06 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"<\n*MultipleArraysSameSizeWithOptionalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n UseATwoDimensionParameterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05\x61rray\x18\x02 \x03(\x11\x12\x15\n\rarray_lengths\x18\x03 \x03(\x11\"3\n!UseATwoDimensionParameterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"t\n ViUInt8ArrayInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\x12\x10\n\x08\x61n_array\x18\x03 \x01(\x0c\"3\n!ViUInt8ArrayInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n!ViUInt8ArrayOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"F\n\"ViUInt8ArrayOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61n_array\x18\x02 \x01(\x0c\"X\n ViInt16ArrayInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61n_array\x18\x02 \x03(\x11\"3\n!ViInt16ArrayInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\x9e\x05\n\x0fNiFakeAttribute\x12 \n\x1cNIFAKE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12&\n NIFAKE_ATTRIBUTE_READ_WRITE_BOOL\x10\xc0\x84=\x12(\n\"NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE\x10\xc1\x84=\x12(\n\"NIFAKE_ATTRIBUTE_READ_WRITE_STRING\x10\xc2\x84=\x12\'\n!NIFAKE_ATTRIBUTE_READ_WRITE_COLOR\x10\xc3\x84=\x12)\n#NIFAKE_ATTRIBUTE_READ_WRITE_INTEGER\x10\xc4\x84=\x12/\n)NIFAKE_ATTRIBUTE_FLOAT_ENUM_NAME_OVERRIDE\x10\xc5\x84=\x12\'\n!NIFAKE_ATTRIBUTE_READ_WRITE_INT64\x10\xc6\x84=\x12\x37\n1NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE_WITH_CONVERTER\x10\xc7\x84=\x12\x38\n2NIFAKE_ATTRIBUTE_READ_WRITE_INTEGER_WITH_CONVERTER\x10\xc8\x84=\x12\x41\n;NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE_WITH_REPEATED_CAPABILITY\x10\xc9\x84=\x12<\n6NIFAKE_ATTRIBUTE_READ_WRITE_STRING_REPEATED_CAPABILITY\x10\xca\x84=\x12#\n\x1dNIFAKE_ATTRIBUTE_SAMPLE_COUNT\x10\xcc\x84=\x12&\n NIFAKE_ATTRIBUTE_SAMPLE_INTERVAL\x10\xcd\x84=*\xb2\x01\n\x11GrpcColorOverride\x12#\n\x1fGRPC_COLOR_OVERRIDE_UNSPECIFIED\x10\x00\x12\x1b\n\x17GRPC_COLOR_OVERRIDE_RED\x10\x01\x12\x1c\n\x18GRPC_COLOR_OVERRIDE_BLUE\x10\x02\x12\x1e\n\x1aGRPC_COLOR_OVERRIDE_YELLOW\x10\x05\x12\x1d\n\x19GRPC_COLOR_OVERRIDE_BLACK\x10**\xc8\x01\n\tFloatEnum\x12\x1a\n\x16\x46LOAT_ENUM_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x46LOAT_ENUM_THREE_POINT_FIVE\x10\x01\x12\x1e\n\x1a\x46LOAT_ENUM_FOUR_POINT_FIVE\x10\x02\x12\x1e\n\x1a\x46LOAT_ENUM_FIVE_POINT_FIVE\x10\x03\x12\x1d\n\x19\x46LOAT_ENUM_SIX_POINT_FIVE\x10\x04\x12\x1f\n\x1b\x46LOAT_ENUM_SEVEN_POINT_FIVE\x10\x05*`\n\x06Turtle\x12\x13\n\x0fTURTLE_LEONARDO\x10\x00\x12\x14\n\x10TURTLE_DONATELLO\x10\x01\x12\x12\n\x0eTURTLE_RAPHAEL\x10\x02\x12\x17\n\x13TURTLE_MICHELANGELO\x10\x03*\x80\x01\n\rMobileOSNames\x12\x1f\n\x1bMOBILE_OS_NAMES_UNSPECIFIED\x10\x00\x12\x1b\n\x17MOBILE_OS_NAMES_ANDROID\x10\x01\x12\x17\n\x13MOBILE_OS_NAMES_IOS\x10\x02\x12\x18\n\x14MOBILE_OS_NAMES_NONE\x10\x03*x\n\x08\x42itfield\x12\x18\n\x14\x42ITFIELD_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x42ITFIELD_FLAG_A\x10\x01\x12\x13\n\x0f\x42ITFIELD_FLAG_B\x10\x02\x12\x13\n\x0f\x42ITFIELD_FLAG_C\x10\x04\x12\x13\n\x0f\x42ITFIELD_FLAG_D\x10\x08*\x88\x01\n\x12\x44\x65\x63imalWholeNumber\x12\x1d\n\x19\x44\x45\x43IMAL_WHOLE_NUMBER_ZERO\x10\x00\x12.\n!DECIMAL_WHOLE_NUMBER_NEGATIVE_ONE\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12#\n\x1f\x44\x45\x43IMAL_WHOLE_NUMBER_TWENTY_TWO\x10\x16*\xc7\x01\n\x18\x44\x65\x63imalWholeNumberMapped\x12+\n\'DECIMAL_WHOLE_NUMBER_MAPPED_UNSPECIFIED\x10\x00\x12$\n DECIMAL_WHOLE_NUMBER_MAPPED_ZERO\x10\x01\x12,\n(DECIMAL_WHOLE_NUMBER_MAPPED_NEGATIVE_ONE\x10\x02\x12*\n&DECIMAL_WHOLE_NUMBER_MAPPED_TWENTY_TWO\x10\x03*\xd7\x02\n\x12\x44\x65\x63imalMixedNumber\x12$\n DECIMAL_MIXED_NUMBER_UNSPECIFIED\x10\x00\x12#\n\x1f\x44\x45\x43IMAL_MIXED_NUMBER_TWENTY_TWO\x10\x01\x12&\n\"DECIMAL_MIXED_NUMBER_TWO_POINT_TWO\x10\x02\x12\'\n#DECIMAL_MIXED_NUMBER_NEGATIVE_THREE\x10\x03\x12#\n\x1f\x44\x45\x43IMAL_MIXED_NUMBER_MAX_INT_32\x10\x04\x12,\n(DECIMAL_MIXED_NUMBER_MAX_INT_32_PLUS_ONE\x10\x05\x12#\n\x1f\x44\x45\x43IMAL_MIXED_NUMBER_MIN_INT_32\x10\x06\x12-\n)DECIMAL_MIXED_NUMBER_MIN_INT_32_MINUS_ONE\x10\x07*\x9e\x01\n\x16\x45numWithGrpcNameValues\x12*\n&ENUM_WITH_GRPC_NAME_VALUES_UNSPECIFIED\x10\x00\x12\x34\n0ENUM_WITH_GRPC_NAME_VALUES_ALTERED_GRPC_NAME_ONE\x10\x01\x12\"\n\x1e\x45NUM_WITH_GRPC_NAME_VALUES_TWO\x10\x02*5\n\x0bSampleCount\x12&\n\"SAMPLE_COUNT_SAMPLE_COUNT_INFINITE\x10\x00*Z\n\x0eSampleInterval\x12\x1f\n\x1bSAMPLE_INTERVAL_UNSPECIFIED\x10\x00\x12\'\n\x1aSAMPLE_INTERVAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xa1\x02\n\x1aNiFakeInt32AttributeValues\x12\x1c\n\x18NIFAKE_INT32_UNSPECIFIED\x10\x00\x12(\n$NIFAKE_INT32_GRPC_COLOR_OVERRIDE_RED\x10\x01\x12)\n%NIFAKE_INT32_GRPC_COLOR_OVERRIDE_BLUE\x10\x02\x12+\n\'NIFAKE_INT32_GRPC_COLOR_OVERRIDE_YELLOW\x10\x05\x12*\n&NIFAKE_INT32_GRPC_COLOR_OVERRIDE_BLACK\x10*\x12\x33\n/NIFAKE_INT32_SAMPLE_COUNT_SAMPLE_COUNT_INFINITE\x10\x00\x1a\x02\x10\x01*s\n\x1bNiFakeReal64AttributeValues\x12\x1d\n\x19NIFAKE_REAL64_UNSPECIFIED\x10\x00\x12\x35\n(NIFAKE_REAL64_SAMPLE_INTERVAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xb0\x02\n!NiFakeReal64AttributeValuesMapped\x12$\n NIFAKE_REAL64_MAPPED_UNSPECIFIED\x10\x00\x12-\n)NIFAKE_REAL64_FLOAT_ENUM_THREE_POINT_FIVE\x10\x01\x12,\n(NIFAKE_REAL64_FLOAT_ENUM_FOUR_POINT_FIVE\x10\x02\x12,\n(NIFAKE_REAL64_FLOAT_ENUM_FIVE_POINT_FIVE\x10\x03\x12+\n\'NIFAKE_REAL64_FLOAT_ENUM_SIX_POINT_FIVE\x10\x04\x12-\n)NIFAKE_REAL64_FLOAT_ENUM_SEVEN_POINT_FIVE\x10\x05\x32\xad_\n\x06NiFake\x12>\n\x05\x41\x62ort\x12\x19.nifake_grpc.AbortRequest\x1a\x1a.nifake_grpc.AbortResponse\x12t\n\x17\x42oolArrayOutputFunction\x12+.nifake_grpc.BoolArrayOutputFunctionRequest\x1a,.nifake_grpc.BoolArrayOutputFunctionResponse\x12>\n\x05\x43lose\x12\x19.nifake_grpc.CloseRequest\x1a\x1a.nifake_grpc.CloseResponse\x12t\n\x17\x45numArrayOutputFunction\x12+.nifake_grpc.EnumArrayOutputFunctionRequest\x1a,.nifake_grpc.EnumArrayOutputFunctionResponse\x12\x86\x01\n\x1d\x45numInputFunctionWithDefaults\x12\x31.nifake_grpc.EnumInputFunctionWithDefaultsRequest\x1a\x32.nifake_grpc.EnumInputFunctionWithDefaultsResponse\x12\xaa\x01\n)StringValuedEnumInputFunctionWithDefaults\x12=.nifake_grpc.StringValuedEnumInputFunctionWithDefaultsRequest\x1a>.nifake_grpc.StringValuedEnumInputFunctionWithDefaultsResponse\x12S\n\x0c\x45rrorMessage\x12 .nifake_grpc.ErrorMessageRequest\x1a!.nifake_grpc.ErrorMessageResponse\x12V\n\rFetchWaveform\x12!.nifake_grpc.FetchWaveformRequest\x1a\".nifake_grpc.FetchWaveformResponse\x12P\n\x0bGetABoolean\x12\x1f.nifake_grpc.GetABooleanRequest\x1a .nifake_grpc.GetABooleanResponse\x12M\n\nGetANumber\x12\x1e.nifake_grpc.GetANumberRequest\x1a\x1f.nifake_grpc.GetANumberResponse\x12\x83\x01\n\x1cGetAStringOfFixedMaximumSize\x12\x30.nifake_grpc.GetAStringOfFixedMaximumSizeRequest\x1a\x31.nifake_grpc.GetAStringOfFixedMaximumSizeResponse\x12q\n\x16GetAnIviDanceCharArray\x12*.nifake_grpc.GetAnIviDanceCharArrayRequest\x1a+.nifake_grpc.GetAnIviDanceCharArrayResponse\x12n\n\x15GetArrayUsingIviDance\x12).nifake_grpc.GetArrayUsingIviDanceRequest\x1a*.nifake_grpc.GetArrayUsingIviDanceResponse\x12n\n\x15GetAttributeViBoolean\x12).nifake_grpc.GetAttributeViBooleanRequest\x1a*.nifake_grpc.GetAttributeViBooleanResponse\x12h\n\x13GetAttributeViInt32\x12\'.nifake_grpc.GetAttributeViInt32Request\x1a(.nifake_grpc.GetAttributeViInt32Response\x12h\n\x13GetAttributeViInt64\x12\'.nifake_grpc.GetAttributeViInt64Request\x1a(.nifake_grpc.GetAttributeViInt64Response\x12k\n\x14GetAttributeViReal64\x12(.nifake_grpc.GetAttributeViReal64Request\x1a).nifake_grpc.GetAttributeViReal64Response\x12n\n\x15GetAttributeViSession\x12).nifake_grpc.GetAttributeViSessionRequest\x1a*.nifake_grpc.GetAttributeViSessionResponse\x12k\n\x14GetAttributeViString\x12(.nifake_grpc.GetAttributeViStringRequest\x1a).nifake_grpc.GetAttributeViStringResponse\x12\x62\n\x11GetCalDateAndTime\x12%.nifake_grpc.GetCalDateAndTimeRequest\x1a&.nifake_grpc.GetCalDateAndTimeResponse\x12Y\n\x0eGetCalInterval\x12\".nifake_grpc.GetCalIntervalRequest\x1a#.nifake_grpc.GetCalIntervalResponse\x12S\n\x0cGetEnumValue\x12 .nifake_grpc.GetEnumValueRequest\x1a!.nifake_grpc.GetEnumValueResponse\x12G\n\x08GetError\x12\x1c.nifake_grpc.GetErrorRequest\x1a\x1d.nifake_grpc.GetErrorResponse\x12\\\n\x0fInitWithOptions\x12#.nifake_grpc.InitWithOptionsRequest\x1a$.nifake_grpc.InitWithOptionsResponse\x12\x65\n\x12MultipleArrayTypes\x12&.nifake_grpc.MultipleArrayTypesRequest\x1a\'.nifake_grpc.MultipleArrayTypesResponse\x12q\n\x16MultipleArraysSameSize\x12*.nifake_grpc.MultipleArraysSameSizeRequest\x1a+.nifake_grpc.MultipleArraysSameSizeResponse\x12\x80\x01\n\x1bMultipleArraysDifferentSize\x12/.nifake_grpc.MultipleArraysDifferentSizeRequest\x1a\x30.nifake_grpc.MultipleArraysDifferentSizeResponse\x12\x83\x01\n\x1cMixedIviDanceAndLenMechanism\x12\x30.nifake_grpc.MixedIviDanceAndLenMechanismRequest\x1a\x31.nifake_grpc.MixedIviDanceAndLenMechanismResponse\x12_\n\x10OneInputFunction\x12$.nifake_grpc.OneInputFunctionRequest\x1a%.nifake_grpc.OneInputFunctionResponse\x12}\n\x1aParametersAreMultipleTypes\x12..nifake_grpc.ParametersAreMultipleTypesRequest\x1a/.nifake_grpc.ParametersAreMultipleTypesResponse\x12z\n\x19PoorlyNamedSimpleFunction\x12-.nifake_grpc.PoorlyNamedSimpleFunctionRequest\x1a..nifake_grpc.PoorlyNamedSimpleFunctionResponse\x12;\n\x04Read\x12\x18.nifake_grpc.ReadRequest\x1a\x19.nifake_grpc.ReadResponse\x12\\\n\x0fReadFromChannel\x12#.nifake_grpc.ReadFromChannelRequest\x1a$.nifake_grpc.ReadFromChannelResponse\x12t\n\x17ReturnANumberAndAString\x12+.nifake_grpc.ReturnANumberAndAStringRequest\x1a,.nifake_grpc.ReturnANumberAndAStringResponse\x12h\n\x13ReturnMultipleTypes\x12\'.nifake_grpc.ReturnMultipleTypesRequest\x1a(.nifake_grpc.ReturnMultipleTypesResponse\x12n\n\x15SetAttributeViBoolean\x12).nifake_grpc.SetAttributeViBooleanRequest\x1a*.nifake_grpc.SetAttributeViBooleanResponse\x12h\n\x13SetAttributeViInt32\x12\'.nifake_grpc.SetAttributeViInt32Request\x1a(.nifake_grpc.SetAttributeViInt32Response\x12h\n\x13SetAttributeViInt64\x12\'.nifake_grpc.SetAttributeViInt64Request\x1a(.nifake_grpc.SetAttributeViInt64Response\x12k\n\x14SetAttributeViReal64\x12(.nifake_grpc.SetAttributeViReal64Request\x1a).nifake_grpc.SetAttributeViReal64Response\x12k\n\x14SetAttributeViString\x12(.nifake_grpc.SetAttributeViStringRequest\x1a).nifake_grpc.SetAttributeViStringResponse\x12_\n\x10TwoInputFunction\x12$.nifake_grpc.TwoInputFunctionRequest\x1a%.nifake_grpc.TwoInputFunctionResponse\x12Y\n\x0eUse64BitNumber\x12\".nifake_grpc.Use64BitNumberRequest\x1a#.nifake_grpc.Use64BitNumberResponse\x12V\n\rWriteWaveform\x12!.nifake_grpc.WriteWaveformRequest\x1a\".nifake_grpc.WriteWaveformResponse\x12\x83\x01\n\x1cWriteWaveformNumpyComplex128\x12\x30.nifake_grpc.WriteWaveformNumpyComplex128Request\x1a\x31.nifake_grpc.WriteWaveformNumpyComplex128Response\x12\x80\x01\n\x1bWriteWaveformNumpyComplex64\x12/.nifake_grpc.WriteWaveformNumpyComplex64Request\x1a\x30.nifake_grpc.WriteWaveformNumpyComplex64Response\x12\xa4\x01\n\'WriteWaveformNumpyComplexInterleavedI16\x12;.nifake_grpc.WriteWaveformNumpyComplexInterleavedI16Request\x1a<.nifake_grpc.WriteWaveformNumpyComplexInterleavedI16Response\x12V\n\rSetCustomType\x12!.nifake_grpc.SetCustomTypeRequest\x1a\".nifake_grpc.SetCustomTypeResponse\x12\x65\n\x12SetCustomTypeArray\x12&.nifake_grpc.SetCustomTypeArrayRequest\x1a\'.nifake_grpc.SetCustomTypeArrayResponse\x12V\n\rGetCustomType\x12!.nifake_grpc.GetCustomTypeRequest\x1a\".nifake_grpc.GetCustomTypeResponse\x12\x65\n\x12GetCustomTypeArray\x12&.nifake_grpc.GetCustomTypeArrayRequest\x1a\'.nifake_grpc.GetCustomTypeArrayResponse\x12\x83\x01\n\x1cGetAnIviDanceWithATwistArray\x12\x30.nifake_grpc.GetAnIviDanceWithATwistArrayRequest\x1a\x31.nifake_grpc.GetAnIviDanceWithATwistArrayResponse\x12\x86\x01\n\x1dGetAnIviDanceWithATwistString\x12\x31.nifake_grpc.GetAnIviDanceWithATwistStringRequest\x1a\x32.nifake_grpc.GetAnIviDanceWithATwistStringResponse\x12_\n\x10\x44oubleAllTheNums\x12$.nifake_grpc.DoubleAllTheNumsRequest\x1a%.nifake_grpc.DoubleAllTheNumsResponse\x12\x89\x01\n\x1e\x41\x63\x63\x65ptListOfDurationsInSeconds\x12\x32.nifake_grpc.AcceptListOfDurationsInSecondsRequest\x1a\x33.nifake_grpc.AcceptListOfDurationsInSecondsResponse\x12t\n\x17ReturnDurationInSeconds\x12+.nifake_grpc.ReturnDurationInSecondsRequest\x1a,.nifake_grpc.ReturnDurationInSecondsResponse\x12\x89\x01\n\x1eReturnListOfDurationsInSeconds\x12\x32.nifake_grpc.ReturnListOfDurationsInSecondsRequest\x1a\x33.nifake_grpc.ReturnListOfDurationsInSecondsResponse\x12S\n\x0c\x43onfigureAbc\x12 .nifake_grpc.ConfigureAbcRequest\x1a!.nifake_grpc.ConfigureAbcResponse\x12Y\n\x0e\x43onfigureEnums\x12\".nifake_grpc.ConfigureEnumsRequest\x1a#.nifake_grpc.ConfigureEnumsResponse\x12\x9b\x01\n$ExportAttributeConfigurationBufferEx\x12\x38.nifake_grpc.ExportAttributeConfigurationBufferExRequest\x1a\x39.nifake_grpc.ExportAttributeConfigurationBufferExResponse\x12\x9b\x01\n$ImportAttributeConfigurationBufferEx\x12\x38.nifake_grpc.ImportAttributeConfigurationBufferExRequest\x1a\x39.nifake_grpc.ImportAttributeConfigurationBufferExResponse\x12h\n\x13\x46\x65tchWithCustomSize\x12\'.nifake_grpc.FetchWithCustomSizeRequest\x1a(.nifake_grpc.FetchWithCustomSizeResponse\x12\x95\x01\n\"GetParameterWithOverriddenGrpcName\x12\x36.nifake_grpc.GetParameterWithOverriddenGrpcNameRequest\x1a\x37.nifake_grpc.GetParameterWithOverriddenGrpcNameResponse\x12\xc8\x01\n3IviDanceWithTwistWithMultipleArraysAndOneBufferSize\x12G.nifake_grpc.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest\x1aH.nifake_grpc.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse\x12\x8f\x01\n FunctionWithOverriddenGrpcName2x\x12\x34.nifake_grpc.FunctionWithOverriddenGrpcName2xRequest\x1a\x35.nifake_grpc.FunctionWithOverriddenGrpcName2xResponse\x12\xd4\x01\n7FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter\x12K.nifake_grpc.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest\x1aL.nifake_grpc.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse\x12\x8c\x01\n\x1fStringValuedEnumNoEnumGenerated\x12\x33.nifake_grpc.StringValuedEnumNoEnumGeneratedRequest\x1a\x34.nifake_grpc.StringValuedEnumNoEnumGeneratedResponse\x12\x98\x01\n#IviDanceWithATwistCalculatedSizeOut\x12\x37.nifake_grpc.IviDanceWithATwistCalculatedSizeOutRequest\x1a\x38.nifake_grpc.IviDanceWithATwistCalculatedSizeOutResponse\x12\x95\x01\n\"ImportAttributeConfigurationBuffer\x12\x36.nifake_grpc.ImportAttributeConfigurationBufferRequest\x1a\x37.nifake_grpc.ImportAttributeConfigurationBufferResponse\x12\x95\x01\n\"ExportAttributeConfigurationBuffer\x12\x36.nifake_grpc.ExportAttributeConfigurationBufferRequest\x1a\x37.nifake_grpc.ExportAttributeConfigurationBufferResponse\x12P\n\x0b\x43ontrol4022\x12\x1f.nifake_grpc.Control4022Request\x1a .nifake_grpc.Control4022Response\x12k\n\x14\x41\x63\x63\x65ptViSessionArray\x12(.nifake_grpc.AcceptViSessionArrayRequest\x1a).nifake_grpc.AcceptViSessionArrayResponse\x12h\n\x13\x41\x63\x63\x65ptViUInt32Array\x12\'.nifake_grpc.AcceptViUInt32ArrayRequest\x1a(.nifake_grpc.AcceptViUInt32ArrayResponse\x12q\n\x16\x42oolArrayInputFunction\x12*.nifake_grpc.BoolArrayInputFunctionRequest\x1a+.nifake_grpc.BoolArrayInputFunctionResponse\x12P\n\x0b\x43loseExtCal\x12\x1f.nifake_grpc.CloseExtCalRequest\x1a .nifake_grpc.CloseExtCalResponse\x12w\n\x18\x43ommandWithReservedParam\x12,.nifake_grpc.CommandWithReservedParamRequest\x1a-.nifake_grpc.CommandWithReservedParamResponse\x12t\n\x17\x43reateConfigurationList\x12+.nifake_grpc.CreateConfigurationListRequest\x1a,.nifake_grpc.CreateConfigurationListResponse\x12\x80\x01\n\x1b\x43ustomNestedStructRoundtrip\x12/.nifake_grpc.CustomNestedStructRoundtripRequest\x1a\x30.nifake_grpc.CustomNestedStructRoundtripResponse\x12q\n\x16GetBitfieldAsEnumArray\x12*.nifake_grpc.GetBitfieldAsEnumArrayRequest\x1a+.nifake_grpc.GetBitfieldAsEnumArrayResponse\x12\xa7\x01\n(GetAnIviDanceWithATwistArrayOfCustomType\x12<.nifake_grpc.GetAnIviDanceWithATwistArrayOfCustomTypeRequest\x1a=.nifake_grpc.GetAnIviDanceWithATwistArrayOfCustomTypeResponse\x12\xad\x01\n*GetAnIviDanceWithATwistArrayWithInputArray\x12>.nifake_grpc.GetAnIviDanceWithATwistArrayWithInputArrayRequest\x1a?.nifake_grpc.GetAnIviDanceWithATwistArrayWithInputArrayResponse\x12\x8f\x01\n GetAnIviDanceWithATwistByteArray\x12\x34.nifake_grpc.GetAnIviDanceWithATwistByteArrayRequest\x1a\x35.nifake_grpc.GetAnIviDanceWithATwistByteArrayResponse\x12\xa1\x01\n&GetAnIviDanceWithATwistStringStrlenBug\x12:.nifake_grpc.GetAnIviDanceWithATwistStringStrlenBugRequest\x1a;.nifake_grpc.GetAnIviDanceWithATwistStringStrlenBugResponse\x12z\n\x19GetArraySizeForCustomCode\x12-.nifake_grpc.GetArraySizeForCustomCodeRequest\x1a..nifake_grpc.GetArraySizeForCustomCodeResponse\x12t\n\x17GetArrayViUInt8WithEnum\x12+.nifake_grpc.GetArrayViUInt8WithEnumRequest\x1a,.nifake_grpc.GetArrayViUInt8WithEnumResponse\x12M\n\nGetViUInt8\x12\x1e.nifake_grpc.GetViUInt8Request\x1a\x1f.nifake_grpc.GetViUInt8Response\x12\\\n\x0fGetViInt32Array\x12#.nifake_grpc.GetViInt32ArrayRequest\x1a$.nifake_grpc.GetViInt32ArrayResponse\x12_\n\x10GetViUInt32Array\x12$.nifake_grpc.GetViUInt32ArrayRequest\x1a%.nifake_grpc.GetViUInt32ArrayResponse\x12\x92\x01\n!MethodUsingEnumWithGrpcNameValues\x12\x35.nifake_grpc.MethodUsingEnumWithGrpcNameValuesRequest\x1a\x36.nifake_grpc.MethodUsingEnumWithGrpcNameValuesResponse\x12\x80\x01\n\x1bMethodWithGetLastErrorParam\x12/.nifake_grpc.MethodWithGetLastErrorParamRequest\x1a\x30.nifake_grpc.MethodWithGetLastErrorParamResponse\x12t\n\x17MethodWithGrpcOnlyParam\x12+.nifake_grpc.MethodWithGrpcOnlyParamRequest\x1a,.nifake_grpc.MethodWithGrpcOnlyParamResponse\x12\x9b\x01\n$MethodUsingWholeAndFractionalNumbers\x12\x38.nifake_grpc.MethodUsingWholeAndFractionalNumbersRequest\x1a\x39.nifake_grpc.MethodUsingWholeAndFractionalNumbersResponse\x12\x86\x01\n\x1dMethodUsingWholeMappedNumbers\x12\x31.nifake_grpc.MethodUsingWholeMappedNumbersRequest\x1a\x32.nifake_grpc.MethodUsingWholeMappedNumbersResponse\x12z\n\x19MethodWithGrpcFieldNumber\x12-.nifake_grpc.MethodWithGrpcFieldNumberRequest\x1a..nifake_grpc.MethodWithGrpcFieldNumberResponse\x12\x83\x01\n\x1cMethodWithProtoOnlyParameter\x12\x30.nifake_grpc.MethodWithProtoOnlyParameterRequest\x1a\x31.nifake_grpc.MethodWithProtoOnlyParameterResponse\x12z\n\x19ReadDataWithInOutIviTwist\x12-.nifake_grpc.ReadDataWithInOutIviTwistRequest\x1a..nifake_grpc.ReadDataWithInOutIviTwistResponse\x12\x9e\x01\n%ReadDataWithMultipleIviTwistParamSets\x12\x39.nifake_grpc.ReadDataWithMultipleIviTwistParamSetsRequest\x1a:.nifake_grpc.ReadDataWithMultipleIviTwistParamSetsResponse\x12M\n\nInitExtCal\x12\x1e.nifake_grpc.InitExtCalRequest\x1a\x1f.nifake_grpc.InitExtCalResponse\x12\\\n\x0fInitWithVarArgs\x12#.nifake_grpc.InitWithVarArgsRequest\x1a$.nifake_grpc.InitWithVarArgsResponse\x12\x95\x01\n\"MultipleArraysSameSizeWithOptional\x12\x36.nifake_grpc.MultipleArraysSameSizeWithOptionalRequest\x1a\x37.nifake_grpc.MultipleArraysSameSizeWithOptionalResponse\x12z\n\x19UseATwoDimensionParameter\x12-.nifake_grpc.UseATwoDimensionParameterRequest\x1a..nifake_grpc.UseATwoDimensionParameterResponse\x12z\n\x19ViUInt8ArrayInputFunction\x12-.nifake_grpc.ViUInt8ArrayInputFunctionRequest\x1a..nifake_grpc.ViUInt8ArrayInputFunctionResponse\x12}\n\x1aViUInt8ArrayOutputFunction\x12..nifake_grpc.ViUInt8ArrayOutputFunctionRequest\x1a/.nifake_grpc.ViUInt8ArrayOutputFunctionResponse\x12z\n\x19ViInt16ArrayInputFunction\x12-.nifake_grpc.ViInt16ArrayInputFunctionRequest\x1a..nifake_grpc.ViInt16ArrayInputFunctionResponseB<\n\x10\x63om.ni.grpc.fakeB\x06NiFakeP\x01\xaa\x02\x1dNationalInstruments.Grpc.Fakeb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nifake_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\020com.ni.grpc.fakeB\006NiFakeP\001\252\002\035NationalInstruments.Grpc.Fake' - _NIFAKEINT32ATTRIBUTEVALUES._options = None - _NIFAKEINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _METHODWITHGETLASTERRORPARAMRESPONSE.fields_by_name['last_error']._options = None - _METHODWITHGETLASTERRORPARAMRESPONSE.fields_by_name['last_error']._serialized_options = b'\030\001' - _globals['_NIFAKEATTRIBUTE']._serialized_start=19367 - _globals['_NIFAKEATTRIBUTE']._serialized_end=20037 - _globals['_GRPCCOLOROVERRIDE']._serialized_start=20040 - _globals['_GRPCCOLOROVERRIDE']._serialized_end=20218 - _globals['_FLOATENUM']._serialized_start=20221 - _globals['_FLOATENUM']._serialized_end=20421 - _globals['_TURTLE']._serialized_start=20423 - _globals['_TURTLE']._serialized_end=20519 - _globals['_MOBILEOSNAMES']._serialized_start=20522 - _globals['_MOBILEOSNAMES']._serialized_end=20650 - _globals['_BITFIELD']._serialized_start=20652 - _globals['_BITFIELD']._serialized_end=20772 - _globals['_DECIMALWHOLENUMBER']._serialized_start=20775 - _globals['_DECIMALWHOLENUMBER']._serialized_end=20911 - _globals['_DECIMALWHOLENUMBERMAPPED']._serialized_start=20914 - _globals['_DECIMALWHOLENUMBERMAPPED']._serialized_end=21113 - _globals['_DECIMALMIXEDNUMBER']._serialized_start=21116 - _globals['_DECIMALMIXEDNUMBER']._serialized_end=21459 - _globals['_ENUMWITHGRPCNAMEVALUES']._serialized_start=21462 - _globals['_ENUMWITHGRPCNAMEVALUES']._serialized_end=21620 - _globals['_SAMPLECOUNT']._serialized_start=21622 - _globals['_SAMPLECOUNT']._serialized_end=21675 - _globals['_SAMPLEINTERVAL']._serialized_start=21677 - _globals['_SAMPLEINTERVAL']._serialized_end=21767 - _globals['_NIFAKEINT32ATTRIBUTEVALUES']._serialized_start=21770 - _globals['_NIFAKEINT32ATTRIBUTEVALUES']._serialized_end=22059 - _globals['_NIFAKEREAL64ATTRIBUTEVALUES']._serialized_start=22061 - _globals['_NIFAKEREAL64ATTRIBUTEVALUES']._serialized_end=22176 - _globals['_NIFAKEREAL64ATTRIBUTEVALUESMAPPED']._serialized_start=22179 - _globals['_NIFAKEREAL64ATTRIBUTEVALUESMAPPED']._serialized_end=22483 - _globals['_FAKECUSTOMSTRUCT']._serialized_start=44 - _globals['_FAKECUSTOMSTRUCT']._serialized_end=105 - _globals['_CUSTOMSTRUCTNESTEDTYPEDEF']._serialized_start=108 - _globals['_CUSTOMSTRUCTNESTEDTYPEDEF']._serialized_end=268 - _globals['_CUSTOMSTRUCTTYPEDEF']._serialized_start=270 - _globals['_CUSTOMSTRUCTTYPEDEF']._serialized_end=334 - _globals['_NICOMPLEXI16_STRUCT']._serialized_start=336 - _globals['_NICOMPLEXI16_STRUCT']._serialized_end=390 - _globals['_NICOMPLEXNUMBER_STRUCT']._serialized_start=392 - _globals['_NICOMPLEXNUMBER_STRUCT']._serialized_end=449 - _globals['_NICOMPLEXNUMBERF32_STRUCT']._serialized_start=451 - _globals['_NICOMPLEXNUMBERF32_STRUCT']._serialized_end=511 - _globals['_STRINGANDTURTLE']._serialized_start=513 - _globals['_STRINGANDTURTLE']._serialized_end=587 - _globals['_CUSTOMNAMEDTYPE']._serialized_start=589 - _globals['_CUSTOMNAMEDTYPE']._serialized_end=626 - _globals['_ABORTREQUEST']._serialized_start=628 - _globals['_ABORTREQUEST']._serialized_end=678 - _globals['_ABORTRESPONSE']._serialized_start=680 - _globals['_ABORTRESPONSE']._serialized_end=711 - _globals['_BOOLARRAYOUTPUTFUNCTIONREQUEST']._serialized_start=713 - _globals['_BOOLARRAYOUTPUTFUNCTIONREQUEST']._serialized_end=809 - _globals['_BOOLARRAYOUTPUTFUNCTIONRESPONSE']._serialized_start=811 - _globals['_BOOLARRAYOUTPUTFUNCTIONRESPONSE']._serialized_end=878 - _globals['_CLOSEREQUEST']._serialized_start=880 - _globals['_CLOSEREQUEST']._serialized_end=930 - _globals['_CLOSERESPONSE']._serialized_start=932 - _globals['_CLOSERESPONSE']._serialized_end=963 - _globals['_ENUMARRAYOUTPUTFUNCTIONREQUEST']._serialized_start=965 - _globals['_ENUMARRAYOUTPUTFUNCTIONREQUEST']._serialized_end=1061 - _globals['_ENUMARRAYOUTPUTFUNCTIONRESPONSE']._serialized_start=1063 - _globals['_ENUMARRAYOUTPUTFUNCTIONRESPONSE']._serialized_end=1173 - _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_start=1176 - _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_end=1332 - _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_start=1334 - _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_end=1389 - _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_start=1392 - _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_end=1598 - _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_start=1600 - _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_end=1667 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=1669 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=1746 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=1748 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=1809 - _globals['_FETCHWAVEFORMREQUEST']._serialized_start=1811 - _globals['_FETCHWAVEFORMREQUEST']._serialized_end=1896 - _globals['_FETCHWAVEFORMRESPONSE']._serialized_start=1898 - _globals['_FETCHWAVEFORMRESPONSE']._serialized_end=1994 - _globals['_GETABOOLEANREQUEST']._serialized_start=1996 - _globals['_GETABOOLEANREQUEST']._serialized_end=2052 - _globals['_GETABOOLEANRESPONSE']._serialized_start=2054 - _globals['_GETABOOLEANRESPONSE']._serialized_end=2110 - _globals['_GETANUMBERREQUEST']._serialized_start=2112 - _globals['_GETANUMBERREQUEST']._serialized_end=2167 - _globals['_GETANUMBERRESPONSE']._serialized_start=2169 - _globals['_GETANUMBERRESPONSE']._serialized_end=2223 - _globals['_GETASTRINGOFFIXEDMAXIMUMSIZEREQUEST']._serialized_start=2225 - _globals['_GETASTRINGOFFIXEDMAXIMUMSIZEREQUEST']._serialized_end=2298 - _globals['_GETASTRINGOFFIXEDMAXIMUMSIZERESPONSE']._serialized_start=2300 - _globals['_GETASTRINGOFFIXEDMAXIMUMSIZERESPONSE']._serialized_end=2372 - _globals['_GETANIVIDANCECHARARRAYREQUEST']._serialized_start=2374 - _globals['_GETANIVIDANCECHARARRAYREQUEST']._serialized_end=2441 - _globals['_GETANIVIDANCECHARARRAYRESPONSE']._serialized_start=2443 - _globals['_GETANIVIDANCECHARARRAYRESPONSE']._serialized_end=2511 - _globals['_GETARRAYUSINGIVIDANCEREQUEST']._serialized_start=2513 - _globals['_GETARRAYUSINGIVIDANCEREQUEST']._serialized_end=2579 - _globals['_GETARRAYUSINGIVIDANCERESPONSE']._serialized_start=2581 - _globals['_GETARRAYUSINGIVIDANCERESPONSE']._serialized_end=2647 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=2650 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=2790 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=2792 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=2864 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=2867 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=3005 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=3007 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=3077 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=3080 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=3218 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=3220 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=3290 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=3293 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=3432 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=3434 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=3505 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=3508 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=3648 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=3650 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=3746 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=3749 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=3888 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=3890 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=3961 - _globals['_GETCALDATEANDTIMEREQUEST']._serialized_start=3963 - _globals['_GETCALDATEANDTIMEREQUEST']._serialized_end=4043 - _globals['_GETCALDATEANDTIMERESPONSE']._serialized_start=4045 - _globals['_GETCALDATEANDTIMERESPONSE']._serialized_end=4160 - _globals['_GETCALINTERVALREQUEST']._serialized_start=4162 - _globals['_GETCALINTERVALREQUEST']._serialized_end=4221 - _globals['_GETCALINTERVALRESPONSE']._serialized_start=4223 - _globals['_GETCALINTERVALRESPONSE']._serialized_end=4279 - _globals['_GETENUMVALUEREQUEST']._serialized_start=4281 - _globals['_GETENUMVALUEREQUEST']._serialized_end=4338 - _globals['_GETENUMVALUERESPONSE']._serialized_start=4340 - _globals['_GETENUMVALUERESPONSE']._serialized_end=4459 - _globals['_GETERRORREQUEST']._serialized_start=4461 - _globals['_GETERRORREQUEST']._serialized_end=4514 - _globals['_GETERRORRESPONSE']._serialized_start=4516 - _globals['_GETERRORRESPONSE']._serialized_end=4591 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=4594 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=4805 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=4807 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=4917 - _globals['_MULTIPLEARRAYTYPESREQUEST']._serialized_start=4920 - _globals['_MULTIPLEARRAYTYPESREQUEST']._serialized_end=5074 - _globals['_MULTIPLEARRAYTYPESRESPONSE']._serialized_start=5076 - _globals['_MULTIPLEARRAYTYPESRESPONSE']._serialized_end=5180 - _globals['_MULTIPLEARRAYSSAMESIZEREQUEST']._serialized_start=5183 - _globals['_MULTIPLEARRAYSSAMESIZEREQUEST']._serialized_end=5318 - _globals['_MULTIPLEARRAYSSAMESIZERESPONSE']._serialized_start=5320 - _globals['_MULTIPLEARRAYSSAMESIZERESPONSE']._serialized_end=5368 - _globals['_MULTIPLEARRAYSDIFFERENTSIZEREQUEST']._serialized_start=5370 - _globals['_MULTIPLEARRAYSDIFFERENTSIZEREQUEST']._serialized_end=5484 - _globals['_MULTIPLEARRAYSDIFFERENTSIZERESPONSE']._serialized_start=5486 - _globals['_MULTIPLEARRAYSDIFFERENTSIZERESPONSE']._serialized_end=5539 - _globals['_MIXEDIVIDANCEANDLENMECHANISMREQUEST']._serialized_start=5541 - _globals['_MIXEDIVIDANCEANDLENMECHANISMREQUEST']._serialized_end=5636 - _globals['_MIXEDIVIDANCEANDLENMECHANISMRESPONSE']._serialized_start=5638 - _globals['_MIXEDIVIDANCEANDLENMECHANISMRESPONSE']._serialized_end=5714 - _globals['_ONEINPUTFUNCTIONREQUEST']._serialized_start=5716 - _globals['_ONEINPUTFUNCTIONREQUEST']._serialized_end=5795 - _globals['_ONEINPUTFUNCTIONRESPONSE']._serialized_start=5797 - _globals['_ONEINPUTFUNCTIONRESPONSE']._serialized_end=5839 - _globals['_PARAMETERSAREMULTIPLETYPESREQUEST']._serialized_start=5842 - _globals['_PARAMETERSAREMULTIPLETYPESREQUEST']._serialized_end=6198 - _globals['_PARAMETERSAREMULTIPLETYPESRESPONSE']._serialized_start=6200 - _globals['_PARAMETERSAREMULTIPLETYPESRESPONSE']._serialized_end=6252 - _globals['_POORLYNAMEDSIMPLEFUNCTIONREQUEST']._serialized_start=6254 - _globals['_POORLYNAMEDSIMPLEFUNCTIONREQUEST']._serialized_end=6324 - _globals['_POORLYNAMEDSIMPLEFUNCTIONRESPONSE']._serialized_start=6326 - _globals['_POORLYNAMEDSIMPLEFUNCTIONRESPONSE']._serialized_end=6377 - _globals['_READREQUEST']._serialized_start=6379 - _globals['_READREQUEST']._serialized_end=6450 - _globals['_READRESPONSE']._serialized_start=6452 - _globals['_READRESPONSE']._serialized_end=6499 - _globals['_READFROMCHANNELREQUEST']._serialized_start=6501 - _globals['_READFROMCHANNELREQUEST']._serialized_end=6605 - _globals['_READFROMCHANNELRESPONSE']._serialized_start=6607 - _globals['_READFROMCHANNELRESPONSE']._serialized_end=6665 - _globals['_RETURNANUMBERANDASTRINGREQUEST']._serialized_start=6667 - _globals['_RETURNANUMBERANDASTRINGREQUEST']._serialized_end=6735 - _globals['_RETURNANUMBERANDASTRINGRESPONSE']._serialized_start=6737 - _globals['_RETURNANUMBERANDASTRINGRESPONSE']._serialized_end=6822 - _globals['_RETURNMULTIPLETYPESREQUEST']._serialized_start=6824 - _globals['_RETURNMULTIPLETYPESREQUEST']._serialized_end=6908 - _globals['_RETURNMULTIPLETYPESRESPONSE']._serialized_start=6911 - _globals['_RETURNMULTIPLETYPESRESPONSE']._serialized_end=7210 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=7213 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=7378 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=7380 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=7427 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=7430 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=7691 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=7693 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=7738 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=7741 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=7908 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=7910 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=7955 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=7958 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=8303 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=8305 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=8351 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=8354 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=8522 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=8524 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=8570 - _globals['_TWOINPUTFUNCTIONREQUEST']._serialized_start=8572 - _globals['_TWOINPUTFUNCTIONREQUEST']._serialized_end=8669 - _globals['_TWOINPUTFUNCTIONRESPONSE']._serialized_start=8671 - _globals['_TWOINPUTFUNCTIONRESPONSE']._serialized_end=8713 - _globals['_USE64BITNUMBERREQUEST']._serialized_start=8715 - _globals['_USE64BITNUMBERREQUEST']._serialized_end=8789 - _globals['_USE64BITNUMBERRESPONSE']._serialized_start=8791 - _globals['_USE64BITNUMBERRESPONSE']._serialized_end=8847 - _globals['_WRITEWAVEFORMREQUEST']._serialized_start=8849 - _globals['_WRITEWAVEFORMREQUEST']._serialized_end=8925 - _globals['_WRITEWAVEFORMRESPONSE']._serialized_start=8927 - _globals['_WRITEWAVEFORMRESPONSE']._serialized_end=8966 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX128REQUEST']._serialized_start=8969 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX128REQUEST']._serialized_end=9108 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX128RESPONSE']._serialized_start=9110 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX128RESPONSE']._serialized_end=9164 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX64REQUEST']._serialized_start=9167 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX64REQUEST']._serialized_end=9308 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX64RESPONSE']._serialized_start=9310 - _globals['_WRITEWAVEFORMNUMPYCOMPLEX64RESPONSE']._serialized_end=9363 - _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16REQUEST']._serialized_start=9366 - _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16REQUEST']._serialized_end=9513 - _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16RESPONSE']._serialized_start=9515 - _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16RESPONSE']._serialized_end=9580 - _globals['_SETCUSTOMTYPEREQUEST']._serialized_start=9582 - _globals['_SETCUSTOMTYPEREQUEST']._serialized_end=9683 - _globals['_SETCUSTOMTYPERESPONSE']._serialized_start=9685 - _globals['_SETCUSTOMTYPERESPONSE']._serialized_end=9724 - _globals['_SETCUSTOMTYPEARRAYREQUEST']._serialized_start=9726 - _globals['_SETCUSTOMTYPEARRAYREQUEST']._serialized_end=9832 - _globals['_SETCUSTOMTYPEARRAYRESPONSE']._serialized_start=9834 - _globals['_SETCUSTOMTYPEARRAYRESPONSE']._serialized_end=9878 - _globals['_GETCUSTOMTYPEREQUEST']._serialized_start=9880 - _globals['_GETCUSTOMTYPEREQUEST']._serialized_end=9938 - _globals['_GETCUSTOMTYPERESPONSE']._serialized_start=9940 - _globals['_GETCUSTOMTYPERESPONSE']._serialized_end=10022 - _globals['_GETCUSTOMTYPEARRAYREQUEST']._serialized_start=10024 - _globals['_GETCUSTOMTYPEARRAYREQUEST']._serialized_end=10115 - _globals['_GETCUSTOMTYPEARRAYRESPONSE']._serialized_start=10117 - _globals['_GETCUSTOMTYPEARRAYRESPONSE']._serialized_end=10204 - _globals['_GETANIVIDANCEWITHATWISTARRAYREQUEST']._serialized_start=10206 - _globals['_GETANIVIDANCEWITHATWISTARRAYREQUEST']._serialized_end=10297 - _globals['_GETANIVIDANCEWITHATWISTARRAYRESPONSE']._serialized_start=10299 - _globals['_GETANIVIDANCEWITHATWISTARRAYRESPONSE']._serialized_end=10393 - _globals['_GETANIVIDANCEWITHATWISTSTRINGREQUEST']._serialized_start=10395 - _globals['_GETANIVIDANCEWITHATWISTSTRINGREQUEST']._serialized_end=10469 - _globals['_GETANIVIDANCEWITHATWISTSTRINGRESPONSE']._serialized_start=10471 - _globals['_GETANIVIDANCEWITHATWISTSTRINGRESPONSE']._serialized_end=10565 - _globals['_DOUBLEALLTHENUMSREQUEST']._serialized_start=10567 - _globals['_DOUBLEALLTHENUMSREQUEST']._serialized_end=10645 - _globals['_DOUBLEALLTHENUMSRESPONSE']._serialized_start=10647 - _globals['_DOUBLEALLTHENUMSRESPONSE']._serialized_end=10689 - _globals['_ACCEPTLISTOFDURATIONSINSECONDSREQUEST']._serialized_start=10691 - _globals['_ACCEPTLISTOFDURATIONSINSECONDSREQUEST']._serialized_end=10782 - _globals['_ACCEPTLISTOFDURATIONSINSECONDSRESPONSE']._serialized_start=10784 - _globals['_ACCEPTLISTOFDURATIONSINSECONDSRESPONSE']._serialized_end=10840 - _globals['_RETURNDURATIONINSECONDSREQUEST']._serialized_start=10842 - _globals['_RETURNDURATIONINSECONDSREQUEST']._serialized_end=10910 - _globals['_RETURNDURATIONINSECONDSRESPONSE']._serialized_start=10912 - _globals['_RETURNDURATIONINSECONDSRESPONSE']._serialized_end=10980 - _globals['_RETURNLISTOFDURATIONSINSECONDSREQUEST']._serialized_start=10982 - _globals['_RETURNLISTOFDURATIONSINSECONDSREQUEST']._serialized_end=11085 - _globals['_RETURNLISTOFDURATIONSINSECONDSRESPONSE']._serialized_start=11087 - _globals['_RETURNLISTOFDURATIONSINSECONDSRESPONSE']._serialized_end=11163 - _globals['_CONFIGUREABCREQUEST']._serialized_start=11165 - _globals['_CONFIGUREABCREQUEST']._serialized_end=11222 - _globals['_CONFIGUREABCRESPONSE']._serialized_start=11224 - _globals['_CONFIGUREABCRESPONSE']._serialized_end=11262 - _globals['_CONFIGUREENUMSREQUEST']._serialized_start=11265 - _globals['_CONFIGUREENUMSREQUEST']._serialized_end=11534 - _globals['_CONFIGUREENUMSRESPONSE']._serialized_start=11536 - _globals['_CONFIGUREENUMSRESPONSE']._serialized_end=11576 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_start=11578 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_end=11659 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_start=11661 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_end=11746 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_start=11748 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_end=11852 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_start=11854 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_end=11916 - _globals['_FETCHWITHCUSTOMSIZEREQUEST']._serialized_start=11918 - _globals['_FETCHWITHCUSTOMSIZEREQUEST']._serialized_end=12038 - _globals['_FETCHWITHCUSTOMSIZERESPONSE']._serialized_start=12040 - _globals['_FETCHWITHCUSTOMSIZERESPONSE']._serialized_end=12108 - _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMEREQUEST']._serialized_start=12111 - _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMEREQUEST']._serialized_end=12302 - _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMERESPONSE']._serialized_start=12304 - _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMERESPONSE']._serialized_end=12394 - _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZEREQUEST']._serialized_start=12396 - _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZEREQUEST']._serialized_end=12492 - _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZERESPONSE']._serialized_start=12495 - _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZERESPONSE']._serialized_end=12649 - _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XREQUEST']._serialized_start=12651 - _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XREQUEST']._serialized_end=12728 - _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XRESPONSE']._serialized_start=12730 - _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XRESPONSE']._serialized_end=12788 - _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERREQUEST']._serialized_start=12791 - _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERREQUEST']._serialized_end=12960 - _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERRESPONSE']._serialized_start=12962 - _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERRESPONSE']._serialized_end=13043 - _globals['_STRINGVALUEDENUMNOENUMGENERATEDREQUEST']._serialized_start=13045 - _globals['_STRINGVALUEDENUMNOENUMGENERATEDREQUEST']._serialized_end=13144 - _globals['_STRINGVALUEDENUMNOENUMGENERATEDRESPONSE']._serialized_start=13146 - _globals['_STRINGVALUEDENUMNOENUMGENERATEDRESPONSE']._serialized_end=13203 - _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTREQUEST']._serialized_start=13205 - _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTREQUEST']._serialized_end=13285 - _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTRESPONSE']._serialized_start=13288 - _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTRESPONSE']._serialized_end=13430 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=13432 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=13534 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=13536 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=13596 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=13598 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=13677 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=13679 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=13762 - _globals['_CONTROL4022REQUEST']._serialized_start=13764 - _globals['_CONTROL4022REQUEST']._serialized_end=13830 - _globals['_CONTROL4022RESPONSE']._serialized_start=13832 - _globals['_CONTROL4022RESPONSE']._serialized_end=13869 - _globals['_ACCEPTVISESSIONARRAYREQUEST']._serialized_start=13871 - _globals['_ACCEPTVISESSIONARRAYREQUEST']._serialized_end=13970 - _globals['_ACCEPTVISESSIONARRAYRESPONSE']._serialized_start=13972 - _globals['_ACCEPTVISESSIONARRAYRESPONSE']._serialized_end=14018 - _globals['_ACCEPTVIUINT32ARRAYREQUEST']._serialized_start=14020 - _globals['_ACCEPTVIUINT32ARRAYREQUEST']._serialized_end=14107 - _globals['_ACCEPTVIUINT32ARRAYRESPONSE']._serialized_start=14109 - _globals['_ACCEPTVIUINT32ARRAYRESPONSE']._serialized_end=14154 - _globals['_BOOLARRAYINPUTFUNCTIONREQUEST']._serialized_start=14156 - _globals['_BOOLARRAYINPUTFUNCTIONREQUEST']._serialized_end=14269 - _globals['_BOOLARRAYINPUTFUNCTIONRESPONSE']._serialized_start=14271 - _globals['_BOOLARRAYINPUTFUNCTIONRESPONSE']._serialized_end=14319 - _globals['_CLOSEEXTCALREQUEST']._serialized_start=14321 - _globals['_CLOSEEXTCALREQUEST']._serialized_end=14393 - _globals['_CLOSEEXTCALRESPONSE']._serialized_start=14395 - _globals['_CLOSEEXTCALRESPONSE']._serialized_end=14432 - _globals['_COMMANDWITHRESERVEDPARAMREQUEST']._serialized_start=14434 - _globals['_COMMANDWITHRESERVEDPARAMREQUEST']._serialized_end=14503 - _globals['_COMMANDWITHRESERVEDPARAMRESPONSE']._serialized_start=14505 - _globals['_COMMANDWITHRESERVEDPARAMRESPONSE']._serialized_end=14555 - _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_start=14557 - _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_end=14647 - _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_start=14649 - _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_end=14698 - _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPREQUEST']._serialized_start=14700 - _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPREQUEST']._serialized_end=14807 - _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPRESPONSE']._serialized_start=14809 - _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPRESPONSE']._serialized_end=14934 - _globals['_GETBITFIELDASENUMARRAYREQUEST']._serialized_start=14936 - _globals['_GETBITFIELDASENUMARRAYREQUEST']._serialized_end=14967 - _globals['_GETBITFIELDASENUMARRAYRESPONSE']._serialized_start=14969 - _globals['_GETBITFIELDASENUMARRAYRESPONSE']._serialized_end=15080 - _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPEREQUEST']._serialized_start=15082 - _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPEREQUEST']._serialized_end=15167 - _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPERESPONSE']._serialized_start=15170 - _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPERESPONSE']._serialized_end=15307 - _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYREQUEST']._serialized_start=15309 - _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYREQUEST']._serialized_end=15377 - _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYRESPONSE']._serialized_start=15379 - _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYRESPONSE']._serialized_end=15487 - _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYREQUEST']._serialized_start=15489 - _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYREQUEST']._serialized_end=15530 - _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYRESPONSE']._serialized_start=15532 - _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYRESPONSE']._serialized_end=15630 - _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGREQUEST']._serialized_start=15632 - _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGREQUEST']._serialized_end=15679 - _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGRESPONSE']._serialized_start=15681 - _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGRESPONSE']._serialized_end=15786 - _globals['_GETARRAYSIZEFORCUSTOMCODEREQUEST']._serialized_start=15788 - _globals['_GETARRAYSIZEFORCUSTOMCODEREQUEST']._serialized_end=15858 - _globals['_GETARRAYSIZEFORCUSTOMCODERESPONSE']._serialized_start=15860 - _globals['_GETARRAYSIZEFORCUSTOMCODERESPONSE']._serialized_end=15929 - _globals['_GETARRAYVIUINT8WITHENUMREQUEST']._serialized_start=15931 - _globals['_GETARRAYVIUINT8WITHENUMREQUEST']._serialized_end=16018 - _globals['_GETARRAYVIUINT8WITHENUMRESPONSE']._serialized_start=16021 - _globals['_GETARRAYVIUINT8WITHENUMRESPONSE']._serialized_end=16160 - _globals['_GETVIUINT8REQUEST']._serialized_start=16162 - _globals['_GETVIUINT8REQUEST']._serialized_end=16217 - _globals['_GETVIUINT8RESPONSE']._serialized_start=16219 - _globals['_GETVIUINT8RESPONSE']._serialized_end=16279 - _globals['_GETVIINT32ARRAYREQUEST']._serialized_start=16281 - _globals['_GETVIINT32ARRAYREQUEST']._serialized_end=16360 - _globals['_GETVIINT32ARRAYRESPONSE']._serialized_start=16362 - _globals['_GETVIINT32ARRAYRESPONSE']._serialized_end=16424 - _globals['_GETVIUINT32ARRAYREQUEST']._serialized_start=16426 - _globals['_GETVIUINT32ARRAYREQUEST']._serialized_end=16506 - _globals['_GETVIUINT32ARRAYRESPONSE']._serialized_start=16508 - _globals['_GETVIUINT32ARRAYRESPONSE']._serialized_end=16573 - _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESREQUEST']._serialized_start=16576 - _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESREQUEST']._serialized_end=16722 - _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESRESPONSE']._serialized_start=16724 - _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESRESPONSE']._serialized_end=16783 - _globals['_METHODWITHGETLASTERRORPARAMREQUEST']._serialized_start=16785 - _globals['_METHODWITHGETLASTERRORPARAMREQUEST']._serialized_end=16821 - _globals['_METHODWITHGETLASTERRORPARAMRESPONSE']._serialized_start=16823 - _globals['_METHODWITHGETLASTERRORPARAMRESPONSE']._serialized_end=16900 - _globals['_METHODWITHGRPCONLYPARAMREQUEST']._serialized_start=16902 - _globals['_METHODWITHGRPCONLYPARAMREQUEST']._serialized_end=16956 - _globals['_METHODWITHGRPCONLYPARAMRESPONSE']._serialized_start=16958 - _globals['_METHODWITHGRPCONLYPARAMRESPONSE']._serialized_end=17032 - _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSREQUEST']._serialized_start=17034 - _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSREQUEST']._serialized_end=17079 - _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSRESPONSE']._serialized_start=17082 - _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSRESPONSE']._serialized_end=17323 - _globals['_METHODUSINGWHOLEMAPPEDNUMBERSREQUEST']._serialized_start=17325 - _globals['_METHODUSINGWHOLEMAPPEDNUMBERSREQUEST']._serialized_end=17363 - _globals['_METHODUSINGWHOLEMAPPEDNUMBERSRESPONSE']._serialized_start=17366 - _globals['_METHODUSINGWHOLEMAPPEDNUMBERSRESPONSE']._serialized_end=17515 - _globals['_METHODWITHGRPCFIELDNUMBERREQUEST']._serialized_start=17517 - _globals['_METHODWITHGRPCFIELDNUMBERREQUEST']._serialized_end=17576 - _globals['_METHODWITHGRPCFIELDNUMBERRESPONSE']._serialized_start=17578 - _globals['_METHODWITHGRPCFIELDNUMBERRESPONSE']._serialized_end=17629 - _globals['_METHODWITHPROTOONLYPARAMETERREQUEST']._serialized_start=17631 - _globals['_METHODWITHPROTOONLYPARAMETERREQUEST']._serialized_end=17693 - _globals['_METHODWITHPROTOONLYPARAMETERRESPONSE']._serialized_start=17695 - _globals['_METHODWITHPROTOONLYPARAMETERRESPONSE']._serialized_end=17749 - _globals['_READDATAWITHINOUTIVITWISTREQUEST']._serialized_start=17751 - _globals['_READDATAWITHINOUTIVITWISTREQUEST']._serialized_end=17785 - _globals['_READDATAWITHINOUTIVITWISTRESPONSE']._serialized_start=17787 - _globals['_READDATAWITHINOUTIVITWISTRESPONSE']._serialized_end=17873 - _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSREQUEST']._serialized_start=17875 - _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSREQUEST']._serialized_end=17921 - _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSRESPONSE']._serialized_start=17924 - _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSRESPONSE']._serialized_end=18079 - _globals['_INITEXTCALREQUEST']._serialized_start=18081 - _globals['_INITEXTCALREQUEST']._serialized_end=18175 - _globals['_INITEXTCALRESPONSE']._serialized_start=18177 - _globals['_INITEXTCALRESPONSE']._serialized_end=18249 - _globals['_INITWITHVARARGSREQUEST']._serialized_start=18251 - _globals['_INITWITHVARARGSREQUEST']._serialized_end=18375 - _globals['_INITWITHVARARGSRESPONSE']._serialized_start=18377 - _globals['_INITWITHVARARGSRESPONSE']._serialized_end=18454 - _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALREQUEST']._serialized_start=18457 - _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALREQUEST']._serialized_end=18652 - _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALRESPONSE']._serialized_start=18654 - _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALRESPONSE']._serialized_end=18714 - _globals['_USEATWODIMENSIONPARAMETERREQUEST']._serialized_start=18716 - _globals['_USEATWODIMENSIONPARAMETERREQUEST']._serialized_end=18824 - _globals['_USEATWODIMENSIONPARAMETERRESPONSE']._serialized_start=18826 - _globals['_USEATWODIMENSIONPARAMETERRESPONSE']._serialized_end=18877 - _globals['_VIUINT8ARRAYINPUTFUNCTIONREQUEST']._serialized_start=18879 - _globals['_VIUINT8ARRAYINPUTFUNCTIONREQUEST']._serialized_end=18995 - _globals['_VIUINT8ARRAYINPUTFUNCTIONRESPONSE']._serialized_start=18997 - _globals['_VIUINT8ARRAYINPUTFUNCTIONRESPONSE']._serialized_end=19048 - _globals['_VIUINT8ARRAYOUTPUTFUNCTIONREQUEST']._serialized_start=19050 - _globals['_VIUINT8ARRAYOUTPUTFUNCTIONREQUEST']._serialized_end=19149 - _globals['_VIUINT8ARRAYOUTPUTFUNCTIONRESPONSE']._serialized_start=19151 - _globals['_VIUINT8ARRAYOUTPUTFUNCTIONRESPONSE']._serialized_end=19221 - _globals['_VIINT16ARRAYINPUTFUNCTIONREQUEST']._serialized_start=19223 - _globals['_VIINT16ARRAYINPUTFUNCTIONREQUEST']._serialized_end=19311 - _globals['_VIINT16ARRAYINPUTFUNCTIONRESPONSE']._serialized_start=19313 - _globals['_VIINT16ARRAYINPUTFUNCTIONRESPONSE']._serialized_end=19364 - _globals['_NIFAKE']._serialized_start=22486 - _globals['_NIFAKE']._serialized_end=34691 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nifake/nifake/nifake_pb2_grpc.py b/generated/nifake/nifake/nifake_pb2_grpc.py deleted file mode 100644 index 6c68c06d4a..0000000000 --- a/generated/nifake/nifake/nifake_pb2_grpc.py +++ /dev/null @@ -1,3432 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nifake_pb2 as nifake__pb2 - - -class NiFakeStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Abort = channel.unary_unary( - '/nifake_grpc.NiFake/Abort', - request_serializer=nifake__pb2.AbortRequest.SerializeToString, - response_deserializer=nifake__pb2.AbortResponse.FromString, - ) - self.BoolArrayOutputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/BoolArrayOutputFunction', - request_serializer=nifake__pb2.BoolArrayOutputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.BoolArrayOutputFunctionResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nifake_grpc.NiFake/Close', - request_serializer=nifake__pb2.CloseRequest.SerializeToString, - response_deserializer=nifake__pb2.CloseResponse.FromString, - ) - self.EnumArrayOutputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/EnumArrayOutputFunction', - request_serializer=nifake__pb2.EnumArrayOutputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.EnumArrayOutputFunctionResponse.FromString, - ) - self.EnumInputFunctionWithDefaults = channel.unary_unary( - '/nifake_grpc.NiFake/EnumInputFunctionWithDefaults', - request_serializer=nifake__pb2.EnumInputFunctionWithDefaultsRequest.SerializeToString, - response_deserializer=nifake__pb2.EnumInputFunctionWithDefaultsResponse.FromString, - ) - self.StringValuedEnumInputFunctionWithDefaults = channel.unary_unary( - '/nifake_grpc.NiFake/StringValuedEnumInputFunctionWithDefaults', - request_serializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsRequest.SerializeToString, - response_deserializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/nifake_grpc.NiFake/ErrorMessage', - request_serializer=nifake__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=nifake__pb2.ErrorMessageResponse.FromString, - ) - self.FetchWaveform = channel.unary_unary( - '/nifake_grpc.NiFake/FetchWaveform', - request_serializer=nifake__pb2.FetchWaveformRequest.SerializeToString, - response_deserializer=nifake__pb2.FetchWaveformResponse.FromString, - ) - self.GetABoolean = channel.unary_unary( - '/nifake_grpc.NiFake/GetABoolean', - request_serializer=nifake__pb2.GetABooleanRequest.SerializeToString, - response_deserializer=nifake__pb2.GetABooleanResponse.FromString, - ) - self.GetANumber = channel.unary_unary( - '/nifake_grpc.NiFake/GetANumber', - request_serializer=nifake__pb2.GetANumberRequest.SerializeToString, - response_deserializer=nifake__pb2.GetANumberResponse.FromString, - ) - self.GetAStringOfFixedMaximumSize = channel.unary_unary( - '/nifake_grpc.NiFake/GetAStringOfFixedMaximumSize', - request_serializer=nifake__pb2.GetAStringOfFixedMaximumSizeRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAStringOfFixedMaximumSizeResponse.FromString, - ) - self.GetAnIviDanceCharArray = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceCharArray', - request_serializer=nifake__pb2.GetAnIviDanceCharArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceCharArrayResponse.FromString, - ) - self.GetArrayUsingIviDance = channel.unary_unary( - '/nifake_grpc.NiFake/GetArrayUsingIviDance', - request_serializer=nifake__pb2.GetArrayUsingIviDanceRequest.SerializeToString, - response_deserializer=nifake__pb2.GetArrayUsingIviDanceResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nifake_grpc.NiFake/GetAttributeViBoolean', - request_serializer=nifake__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nifake_grpc.NiFake/GetAttributeViInt32', - request_serializer=nifake__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nifake__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/nifake_grpc.NiFake/GetAttributeViInt64', - request_serializer=nifake__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=nifake__pb2.GetAttributeViInt64Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nifake_grpc.NiFake/GetAttributeViReal64', - request_serializer=nifake__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nifake__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nifake_grpc.NiFake/GetAttributeViSession', - request_serializer=nifake__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAttributeViSessionResponse.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nifake_grpc.NiFake/GetAttributeViString', - request_serializer=nifake__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetCalDateAndTime = channel.unary_unary( - '/nifake_grpc.NiFake/GetCalDateAndTime', - request_serializer=nifake__pb2.GetCalDateAndTimeRequest.SerializeToString, - response_deserializer=nifake__pb2.GetCalDateAndTimeResponse.FromString, - ) - self.GetCalInterval = channel.unary_unary( - '/nifake_grpc.NiFake/GetCalInterval', - request_serializer=nifake__pb2.GetCalIntervalRequest.SerializeToString, - response_deserializer=nifake__pb2.GetCalIntervalResponse.FromString, - ) - self.GetEnumValue = channel.unary_unary( - '/nifake_grpc.NiFake/GetEnumValue', - request_serializer=nifake__pb2.GetEnumValueRequest.SerializeToString, - response_deserializer=nifake__pb2.GetEnumValueResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nifake_grpc.NiFake/GetError', - request_serializer=nifake__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nifake__pb2.GetErrorResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/nifake_grpc.NiFake/InitWithOptions', - request_serializer=nifake__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=nifake__pb2.InitWithOptionsResponse.FromString, - ) - self.MultipleArrayTypes = channel.unary_unary( - '/nifake_grpc.NiFake/MultipleArrayTypes', - request_serializer=nifake__pb2.MultipleArrayTypesRequest.SerializeToString, - response_deserializer=nifake__pb2.MultipleArrayTypesResponse.FromString, - ) - self.MultipleArraysSameSize = channel.unary_unary( - '/nifake_grpc.NiFake/MultipleArraysSameSize', - request_serializer=nifake__pb2.MultipleArraysSameSizeRequest.SerializeToString, - response_deserializer=nifake__pb2.MultipleArraysSameSizeResponse.FromString, - ) - self.MultipleArraysDifferentSize = channel.unary_unary( - '/nifake_grpc.NiFake/MultipleArraysDifferentSize', - request_serializer=nifake__pb2.MultipleArraysDifferentSizeRequest.SerializeToString, - response_deserializer=nifake__pb2.MultipleArraysDifferentSizeResponse.FromString, - ) - self.MixedIviDanceAndLenMechanism = channel.unary_unary( - '/nifake_grpc.NiFake/MixedIviDanceAndLenMechanism', - request_serializer=nifake__pb2.MixedIviDanceAndLenMechanismRequest.SerializeToString, - response_deserializer=nifake__pb2.MixedIviDanceAndLenMechanismResponse.FromString, - ) - self.OneInputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/OneInputFunction', - request_serializer=nifake__pb2.OneInputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.OneInputFunctionResponse.FromString, - ) - self.ParametersAreMultipleTypes = channel.unary_unary( - '/nifake_grpc.NiFake/ParametersAreMultipleTypes', - request_serializer=nifake__pb2.ParametersAreMultipleTypesRequest.SerializeToString, - response_deserializer=nifake__pb2.ParametersAreMultipleTypesResponse.FromString, - ) - self.PoorlyNamedSimpleFunction = channel.unary_unary( - '/nifake_grpc.NiFake/PoorlyNamedSimpleFunction', - request_serializer=nifake__pb2.PoorlyNamedSimpleFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.PoorlyNamedSimpleFunctionResponse.FromString, - ) - self.Read = channel.unary_unary( - '/nifake_grpc.NiFake/Read', - request_serializer=nifake__pb2.ReadRequest.SerializeToString, - response_deserializer=nifake__pb2.ReadResponse.FromString, - ) - self.ReadFromChannel = channel.unary_unary( - '/nifake_grpc.NiFake/ReadFromChannel', - request_serializer=nifake__pb2.ReadFromChannelRequest.SerializeToString, - response_deserializer=nifake__pb2.ReadFromChannelResponse.FromString, - ) - self.ReturnANumberAndAString = channel.unary_unary( - '/nifake_grpc.NiFake/ReturnANumberAndAString', - request_serializer=nifake__pb2.ReturnANumberAndAStringRequest.SerializeToString, - response_deserializer=nifake__pb2.ReturnANumberAndAStringResponse.FromString, - ) - self.ReturnMultipleTypes = channel.unary_unary( - '/nifake_grpc.NiFake/ReturnMultipleTypes', - request_serializer=nifake__pb2.ReturnMultipleTypesRequest.SerializeToString, - response_deserializer=nifake__pb2.ReturnMultipleTypesResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nifake_grpc.NiFake/SetAttributeViBoolean', - request_serializer=nifake__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nifake__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nifake_grpc.NiFake/SetAttributeViInt32', - request_serializer=nifake__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nifake__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/nifake_grpc.NiFake/SetAttributeViInt64', - request_serializer=nifake__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=nifake__pb2.SetAttributeViInt64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nifake_grpc.NiFake/SetAttributeViReal64', - request_serializer=nifake__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nifake__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nifake_grpc.NiFake/SetAttributeViString', - request_serializer=nifake__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nifake__pb2.SetAttributeViStringResponse.FromString, - ) - self.TwoInputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/TwoInputFunction', - request_serializer=nifake__pb2.TwoInputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.TwoInputFunctionResponse.FromString, - ) - self.Use64BitNumber = channel.unary_unary( - '/nifake_grpc.NiFake/Use64BitNumber', - request_serializer=nifake__pb2.Use64BitNumberRequest.SerializeToString, - response_deserializer=nifake__pb2.Use64BitNumberResponse.FromString, - ) - self.WriteWaveform = channel.unary_unary( - '/nifake_grpc.NiFake/WriteWaveform', - request_serializer=nifake__pb2.WriteWaveformRequest.SerializeToString, - response_deserializer=nifake__pb2.WriteWaveformResponse.FromString, - ) - self.WriteWaveformNumpyComplex128 = channel.unary_unary( - '/nifake_grpc.NiFake/WriteWaveformNumpyComplex128', - request_serializer=nifake__pb2.WriteWaveformNumpyComplex128Request.SerializeToString, - response_deserializer=nifake__pb2.WriteWaveformNumpyComplex128Response.FromString, - ) - self.WriteWaveformNumpyComplex64 = channel.unary_unary( - '/nifake_grpc.NiFake/WriteWaveformNumpyComplex64', - request_serializer=nifake__pb2.WriteWaveformNumpyComplex64Request.SerializeToString, - response_deserializer=nifake__pb2.WriteWaveformNumpyComplex64Response.FromString, - ) - self.WriteWaveformNumpyComplexInterleavedI16 = channel.unary_unary( - '/nifake_grpc.NiFake/WriteWaveformNumpyComplexInterleavedI16', - request_serializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Request.SerializeToString, - response_deserializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Response.FromString, - ) - self.SetCustomType = channel.unary_unary( - '/nifake_grpc.NiFake/SetCustomType', - request_serializer=nifake__pb2.SetCustomTypeRequest.SerializeToString, - response_deserializer=nifake__pb2.SetCustomTypeResponse.FromString, - ) - self.SetCustomTypeArray = channel.unary_unary( - '/nifake_grpc.NiFake/SetCustomTypeArray', - request_serializer=nifake__pb2.SetCustomTypeArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.SetCustomTypeArrayResponse.FromString, - ) - self.GetCustomType = channel.unary_unary( - '/nifake_grpc.NiFake/GetCustomType', - request_serializer=nifake__pb2.GetCustomTypeRequest.SerializeToString, - response_deserializer=nifake__pb2.GetCustomTypeResponse.FromString, - ) - self.GetCustomTypeArray = channel.unary_unary( - '/nifake_grpc.NiFake/GetCustomTypeArray', - request_serializer=nifake__pb2.GetCustomTypeArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetCustomTypeArrayResponse.FromString, - ) - self.GetAnIviDanceWithATwistArray = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArray', - request_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayResponse.FromString, - ) - self.GetAnIviDanceWithATwistString = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceWithATwistString', - request_serializer=nifake__pb2.GetAnIviDanceWithATwistStringRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringResponse.FromString, - ) - self.DoubleAllTheNums = channel.unary_unary( - '/nifake_grpc.NiFake/DoubleAllTheNums', - request_serializer=nifake__pb2.DoubleAllTheNumsRequest.SerializeToString, - response_deserializer=nifake__pb2.DoubleAllTheNumsResponse.FromString, - ) - self.AcceptListOfDurationsInSeconds = channel.unary_unary( - '/nifake_grpc.NiFake/AcceptListOfDurationsInSeconds', - request_serializer=nifake__pb2.AcceptListOfDurationsInSecondsRequest.SerializeToString, - response_deserializer=nifake__pb2.AcceptListOfDurationsInSecondsResponse.FromString, - ) - self.ReturnDurationInSeconds = channel.unary_unary( - '/nifake_grpc.NiFake/ReturnDurationInSeconds', - request_serializer=nifake__pb2.ReturnDurationInSecondsRequest.SerializeToString, - response_deserializer=nifake__pb2.ReturnDurationInSecondsResponse.FromString, - ) - self.ReturnListOfDurationsInSeconds = channel.unary_unary( - '/nifake_grpc.NiFake/ReturnListOfDurationsInSeconds', - request_serializer=nifake__pb2.ReturnListOfDurationsInSecondsRequest.SerializeToString, - response_deserializer=nifake__pb2.ReturnListOfDurationsInSecondsResponse.FromString, - ) - self.ConfigureAbc = channel.unary_unary( - '/nifake_grpc.NiFake/ConfigureAbc', - request_serializer=nifake__pb2.ConfigureAbcRequest.SerializeToString, - response_deserializer=nifake__pb2.ConfigureAbcResponse.FromString, - ) - self.ConfigureEnums = channel.unary_unary( - '/nifake_grpc.NiFake/ConfigureEnums', - request_serializer=nifake__pb2.ConfigureEnumsRequest.SerializeToString, - response_deserializer=nifake__pb2.ConfigureEnumsResponse.FromString, - ) - self.ExportAttributeConfigurationBufferEx = channel.unary_unary( - '/nifake_grpc.NiFake/ExportAttributeConfigurationBufferEx', - request_serializer=nifake__pb2.ExportAttributeConfigurationBufferExRequest.SerializeToString, - response_deserializer=nifake__pb2.ExportAttributeConfigurationBufferExResponse.FromString, - ) - self.ImportAttributeConfigurationBufferEx = channel.unary_unary( - '/nifake_grpc.NiFake/ImportAttributeConfigurationBufferEx', - request_serializer=nifake__pb2.ImportAttributeConfigurationBufferExRequest.SerializeToString, - response_deserializer=nifake__pb2.ImportAttributeConfigurationBufferExResponse.FromString, - ) - self.FetchWithCustomSize = channel.unary_unary( - '/nifake_grpc.NiFake/FetchWithCustomSize', - request_serializer=nifake__pb2.FetchWithCustomSizeRequest.SerializeToString, - response_deserializer=nifake__pb2.FetchWithCustomSizeResponse.FromString, - ) - self.GetParameterWithOverriddenGrpcName = channel.unary_unary( - '/nifake_grpc.NiFake/GetParameterWithOverriddenGrpcName', - request_serializer=nifake__pb2.GetParameterWithOverriddenGrpcNameRequest.SerializeToString, - response_deserializer=nifake__pb2.GetParameterWithOverriddenGrpcNameResponse.FromString, - ) - self.IviDanceWithTwistWithMultipleArraysAndOneBufferSize = channel.unary_unary( - '/nifake_grpc.NiFake/IviDanceWithTwistWithMultipleArraysAndOneBufferSize', - request_serializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest.SerializeToString, - response_deserializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse.FromString, - ) - self.FunctionWithOverriddenGrpcName2x = channel.unary_unary( - '/nifake_grpc.NiFake/FunctionWithOverriddenGrpcName2x', - request_serializer=nifake__pb2.FunctionWithOverriddenGrpcName2xRequest.SerializeToString, - response_deserializer=nifake__pb2.FunctionWithOverriddenGrpcName2xResponse.FromString, - ) - self.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter = channel.unary_unary( - '/nifake_grpc.NiFake/FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter', - request_serializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest.SerializeToString, - response_deserializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse.FromString, - ) - self.StringValuedEnumNoEnumGenerated = channel.unary_unary( - '/nifake_grpc.NiFake/StringValuedEnumNoEnumGenerated', - request_serializer=nifake__pb2.StringValuedEnumNoEnumGeneratedRequest.SerializeToString, - response_deserializer=nifake__pb2.StringValuedEnumNoEnumGeneratedResponse.FromString, - ) - self.IviDanceWithATwistCalculatedSizeOut = channel.unary_unary( - '/nifake_grpc.NiFake/IviDanceWithATwistCalculatedSizeOut', - request_serializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutRequest.SerializeToString, - response_deserializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutResponse.FromString, - ) - self.ImportAttributeConfigurationBuffer = channel.unary_unary( - '/nifake_grpc.NiFake/ImportAttributeConfigurationBuffer', - request_serializer=nifake__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nifake__pb2.ImportAttributeConfigurationBufferResponse.FromString, - ) - self.ExportAttributeConfigurationBuffer = channel.unary_unary( - '/nifake_grpc.NiFake/ExportAttributeConfigurationBuffer', - request_serializer=nifake__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nifake__pb2.ExportAttributeConfigurationBufferResponse.FromString, - ) - self.Control4022 = channel.unary_unary( - '/nifake_grpc.NiFake/Control4022', - request_serializer=nifake__pb2.Control4022Request.SerializeToString, - response_deserializer=nifake__pb2.Control4022Response.FromString, - ) - self.AcceptViSessionArray = channel.unary_unary( - '/nifake_grpc.NiFake/AcceptViSessionArray', - request_serializer=nifake__pb2.AcceptViSessionArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.AcceptViSessionArrayResponse.FromString, - ) - self.AcceptViUInt32Array = channel.unary_unary( - '/nifake_grpc.NiFake/AcceptViUInt32Array', - request_serializer=nifake__pb2.AcceptViUInt32ArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.AcceptViUInt32ArrayResponse.FromString, - ) - self.BoolArrayInputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/BoolArrayInputFunction', - request_serializer=nifake__pb2.BoolArrayInputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.BoolArrayInputFunctionResponse.FromString, - ) - self.CloseExtCal = channel.unary_unary( - '/nifake_grpc.NiFake/CloseExtCal', - request_serializer=nifake__pb2.CloseExtCalRequest.SerializeToString, - response_deserializer=nifake__pb2.CloseExtCalResponse.FromString, - ) - self.CommandWithReservedParam = channel.unary_unary( - '/nifake_grpc.NiFake/CommandWithReservedParam', - request_serializer=nifake__pb2.CommandWithReservedParamRequest.SerializeToString, - response_deserializer=nifake__pb2.CommandWithReservedParamResponse.FromString, - ) - self.CreateConfigurationList = channel.unary_unary( - '/nifake_grpc.NiFake/CreateConfigurationList', - request_serializer=nifake__pb2.CreateConfigurationListRequest.SerializeToString, - response_deserializer=nifake__pb2.CreateConfigurationListResponse.FromString, - ) - self.CustomNestedStructRoundtrip = channel.unary_unary( - '/nifake_grpc.NiFake/CustomNestedStructRoundtrip', - request_serializer=nifake__pb2.CustomNestedStructRoundtripRequest.SerializeToString, - response_deserializer=nifake__pb2.CustomNestedStructRoundtripResponse.FromString, - ) - self.GetBitfieldAsEnumArray = channel.unary_unary( - '/nifake_grpc.NiFake/GetBitfieldAsEnumArray', - request_serializer=nifake__pb2.GetBitfieldAsEnumArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetBitfieldAsEnumArrayResponse.FromString, - ) - self.GetAnIviDanceWithATwistArrayOfCustomType = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayOfCustomType', - request_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeResponse.FromString, - ) - self.GetAnIviDanceWithATwistArrayWithInputArray = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayWithInputArray', - request_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayResponse.FromString, - ) - self.GetAnIviDanceWithATwistByteArray = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceWithATwistByteArray', - request_serializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayResponse.FromString, - ) - self.GetAnIviDanceWithATwistStringStrlenBug = channel.unary_unary( - '/nifake_grpc.NiFake/GetAnIviDanceWithATwistStringStrlenBug', - request_serializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugRequest.SerializeToString, - response_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugResponse.FromString, - ) - self.GetArraySizeForCustomCode = channel.unary_unary( - '/nifake_grpc.NiFake/GetArraySizeForCustomCode', - request_serializer=nifake__pb2.GetArraySizeForCustomCodeRequest.SerializeToString, - response_deserializer=nifake__pb2.GetArraySizeForCustomCodeResponse.FromString, - ) - self.GetArrayViUInt8WithEnum = channel.unary_unary( - '/nifake_grpc.NiFake/GetArrayViUInt8WithEnum', - request_serializer=nifake__pb2.GetArrayViUInt8WithEnumRequest.SerializeToString, - response_deserializer=nifake__pb2.GetArrayViUInt8WithEnumResponse.FromString, - ) - self.GetViUInt8 = channel.unary_unary( - '/nifake_grpc.NiFake/GetViUInt8', - request_serializer=nifake__pb2.GetViUInt8Request.SerializeToString, - response_deserializer=nifake__pb2.GetViUInt8Response.FromString, - ) - self.GetViInt32Array = channel.unary_unary( - '/nifake_grpc.NiFake/GetViInt32Array', - request_serializer=nifake__pb2.GetViInt32ArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetViInt32ArrayResponse.FromString, - ) - self.GetViUInt32Array = channel.unary_unary( - '/nifake_grpc.NiFake/GetViUInt32Array', - request_serializer=nifake__pb2.GetViUInt32ArrayRequest.SerializeToString, - response_deserializer=nifake__pb2.GetViUInt32ArrayResponse.FromString, - ) - self.MethodUsingEnumWithGrpcNameValues = channel.unary_unary( - '/nifake_grpc.NiFake/MethodUsingEnumWithGrpcNameValues', - request_serializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesResponse.FromString, - ) - self.MethodWithGetLastErrorParam = channel.unary_unary( - '/nifake_grpc.NiFake/MethodWithGetLastErrorParam', - request_serializer=nifake__pb2.MethodWithGetLastErrorParamRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodWithGetLastErrorParamResponse.FromString, - ) - self.MethodWithGrpcOnlyParam = channel.unary_unary( - '/nifake_grpc.NiFake/MethodWithGrpcOnlyParam', - request_serializer=nifake__pb2.MethodWithGrpcOnlyParamRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodWithGrpcOnlyParamResponse.FromString, - ) - self.MethodUsingWholeAndFractionalNumbers = channel.unary_unary( - '/nifake_grpc.NiFake/MethodUsingWholeAndFractionalNumbers', - request_serializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersResponse.FromString, - ) - self.MethodUsingWholeMappedNumbers = channel.unary_unary( - '/nifake_grpc.NiFake/MethodUsingWholeMappedNumbers', - request_serializer=nifake__pb2.MethodUsingWholeMappedNumbersRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodUsingWholeMappedNumbersResponse.FromString, - ) - self.MethodWithGrpcFieldNumber = channel.unary_unary( - '/nifake_grpc.NiFake/MethodWithGrpcFieldNumber', - request_serializer=nifake__pb2.MethodWithGrpcFieldNumberRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodWithGrpcFieldNumberResponse.FromString, - ) - self.MethodWithProtoOnlyParameter = channel.unary_unary( - '/nifake_grpc.NiFake/MethodWithProtoOnlyParameter', - request_serializer=nifake__pb2.MethodWithProtoOnlyParameterRequest.SerializeToString, - response_deserializer=nifake__pb2.MethodWithProtoOnlyParameterResponse.FromString, - ) - self.ReadDataWithInOutIviTwist = channel.unary_unary( - '/nifake_grpc.NiFake/ReadDataWithInOutIviTwist', - request_serializer=nifake__pb2.ReadDataWithInOutIviTwistRequest.SerializeToString, - response_deserializer=nifake__pb2.ReadDataWithInOutIviTwistResponse.FromString, - ) - self.ReadDataWithMultipleIviTwistParamSets = channel.unary_unary( - '/nifake_grpc.NiFake/ReadDataWithMultipleIviTwistParamSets', - request_serializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsRequest.SerializeToString, - response_deserializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsResponse.FromString, - ) - self.InitExtCal = channel.unary_unary( - '/nifake_grpc.NiFake/InitExtCal', - request_serializer=nifake__pb2.InitExtCalRequest.SerializeToString, - response_deserializer=nifake__pb2.InitExtCalResponse.FromString, - ) - self.InitWithVarArgs = channel.unary_unary( - '/nifake_grpc.NiFake/InitWithVarArgs', - request_serializer=nifake__pb2.InitWithVarArgsRequest.SerializeToString, - response_deserializer=nifake__pb2.InitWithVarArgsResponse.FromString, - ) - self.MultipleArraysSameSizeWithOptional = channel.unary_unary( - '/nifake_grpc.NiFake/MultipleArraysSameSizeWithOptional', - request_serializer=nifake__pb2.MultipleArraysSameSizeWithOptionalRequest.SerializeToString, - response_deserializer=nifake__pb2.MultipleArraysSameSizeWithOptionalResponse.FromString, - ) - self.UseATwoDimensionParameter = channel.unary_unary( - '/nifake_grpc.NiFake/UseATwoDimensionParameter', - request_serializer=nifake__pb2.UseATwoDimensionParameterRequest.SerializeToString, - response_deserializer=nifake__pb2.UseATwoDimensionParameterResponse.FromString, - ) - self.ViUInt8ArrayInputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/ViUInt8ArrayInputFunction', - request_serializer=nifake__pb2.ViUInt8ArrayInputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.ViUInt8ArrayInputFunctionResponse.FromString, - ) - self.ViUInt8ArrayOutputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/ViUInt8ArrayOutputFunction', - request_serializer=nifake__pb2.ViUInt8ArrayOutputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.ViUInt8ArrayOutputFunctionResponse.FromString, - ) - self.ViInt16ArrayInputFunction = channel.unary_unary( - '/nifake_grpc.NiFake/ViInt16ArrayInputFunction', - request_serializer=nifake__pb2.ViInt16ArrayInputFunctionRequest.SerializeToString, - response_deserializer=nifake__pb2.ViInt16ArrayInputFunctionResponse.FromString, - ) - - -class NiFakeServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def BoolArrayOutputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnumArrayOutputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnumInputFunctionWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StringValuedEnumInputFunctionWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetABoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetANumber(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAStringOfFixedMaximumSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceCharArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetArrayUsingIviDance(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCalDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCalInterval(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetEnumValue(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MultipleArrayTypes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MultipleArraysSameSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MultipleArraysDifferentSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MixedIviDanceAndLenMechanism(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def OneInputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ParametersAreMultipleTypes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PoorlyNamedSimpleFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Read(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadFromChannel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReturnANumberAndAString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReturnMultipleTypes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TwoInputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Use64BitNumber(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteWaveformNumpyComplex128(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteWaveformNumpyComplex64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteWaveformNumpyComplexInterleavedI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetCustomType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetCustomTypeArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCustomType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCustomTypeArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceWithATwistArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceWithATwistString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DoubleAllTheNums(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AcceptListOfDurationsInSeconds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReturnDurationInSeconds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReturnListOfDurationsInSeconds(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureAbc(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureEnums(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationBufferEx(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationBufferEx(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchWithCustomSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetParameterWithOverriddenGrpcName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IviDanceWithTwistWithMultipleArraysAndOneBufferSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FunctionWithOverriddenGrpcName2x(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def StringValuedEnumNoEnumGenerated(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IviDanceWithATwistCalculatedSizeOut(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Control4022(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AcceptViSessionArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AcceptViUInt32Array(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def BoolArrayInputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CloseExtCal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CommandWithReservedParam(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateConfigurationList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CustomNestedStructRoundtrip(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetBitfieldAsEnumArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceWithATwistArrayOfCustomType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceWithATwistArrayWithInputArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceWithATwistByteArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAnIviDanceWithATwistStringStrlenBug(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetArraySizeForCustomCode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetArrayViUInt8WithEnum(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetViUInt8(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetViInt32Array(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetViUInt32Array(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodUsingEnumWithGrpcNameValues(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodWithGetLastErrorParam(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodWithGrpcOnlyParam(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodUsingWholeAndFractionalNumbers(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodUsingWholeMappedNumbers(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodWithGrpcFieldNumber(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MethodWithProtoOnlyParameter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadDataWithInOutIviTwist(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadDataWithMultipleIviTwistParamSets(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitExtCal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithVarArgs(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MultipleArraysSameSizeWithOptional(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UseATwoDimensionParameter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ViUInt8ArrayInputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ViUInt8ArrayOutputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ViInt16ArrayInputFunction(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiFakeServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=nifake__pb2.AbortRequest.FromString, - response_serializer=nifake__pb2.AbortResponse.SerializeToString, - ), - 'BoolArrayOutputFunction': grpc.unary_unary_rpc_method_handler( - servicer.BoolArrayOutputFunction, - request_deserializer=nifake__pb2.BoolArrayOutputFunctionRequest.FromString, - response_serializer=nifake__pb2.BoolArrayOutputFunctionResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nifake__pb2.CloseRequest.FromString, - response_serializer=nifake__pb2.CloseResponse.SerializeToString, - ), - 'EnumArrayOutputFunction': grpc.unary_unary_rpc_method_handler( - servicer.EnumArrayOutputFunction, - request_deserializer=nifake__pb2.EnumArrayOutputFunctionRequest.FromString, - response_serializer=nifake__pb2.EnumArrayOutputFunctionResponse.SerializeToString, - ), - 'EnumInputFunctionWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.EnumInputFunctionWithDefaults, - request_deserializer=nifake__pb2.EnumInputFunctionWithDefaultsRequest.FromString, - response_serializer=nifake__pb2.EnumInputFunctionWithDefaultsResponse.SerializeToString, - ), - 'StringValuedEnumInputFunctionWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.StringValuedEnumInputFunctionWithDefaults, - request_deserializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsRequest.FromString, - response_serializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=nifake__pb2.ErrorMessageRequest.FromString, - response_serializer=nifake__pb2.ErrorMessageResponse.SerializeToString, - ), - 'FetchWaveform': grpc.unary_unary_rpc_method_handler( - servicer.FetchWaveform, - request_deserializer=nifake__pb2.FetchWaveformRequest.FromString, - response_serializer=nifake__pb2.FetchWaveformResponse.SerializeToString, - ), - 'GetABoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetABoolean, - request_deserializer=nifake__pb2.GetABooleanRequest.FromString, - response_serializer=nifake__pb2.GetABooleanResponse.SerializeToString, - ), - 'GetANumber': grpc.unary_unary_rpc_method_handler( - servicer.GetANumber, - request_deserializer=nifake__pb2.GetANumberRequest.FromString, - response_serializer=nifake__pb2.GetANumberResponse.SerializeToString, - ), - 'GetAStringOfFixedMaximumSize': grpc.unary_unary_rpc_method_handler( - servicer.GetAStringOfFixedMaximumSize, - request_deserializer=nifake__pb2.GetAStringOfFixedMaximumSizeRequest.FromString, - response_serializer=nifake__pb2.GetAStringOfFixedMaximumSizeResponse.SerializeToString, - ), - 'GetAnIviDanceCharArray': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceCharArray, - request_deserializer=nifake__pb2.GetAnIviDanceCharArrayRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceCharArrayResponse.SerializeToString, - ), - 'GetArrayUsingIviDance': grpc.unary_unary_rpc_method_handler( - servicer.GetArrayUsingIviDance, - request_deserializer=nifake__pb2.GetArrayUsingIviDanceRequest.FromString, - response_serializer=nifake__pb2.GetArrayUsingIviDanceResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nifake__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nifake__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nifake__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nifake__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=nifake__pb2.GetAttributeViInt64Request.FromString, - response_serializer=nifake__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nifake__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nifake__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nifake__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nifake__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nifake__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nifake__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetCalDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetCalDateAndTime, - request_deserializer=nifake__pb2.GetCalDateAndTimeRequest.FromString, - response_serializer=nifake__pb2.GetCalDateAndTimeResponse.SerializeToString, - ), - 'GetCalInterval': grpc.unary_unary_rpc_method_handler( - servicer.GetCalInterval, - request_deserializer=nifake__pb2.GetCalIntervalRequest.FromString, - response_serializer=nifake__pb2.GetCalIntervalResponse.SerializeToString, - ), - 'GetEnumValue': grpc.unary_unary_rpc_method_handler( - servicer.GetEnumValue, - request_deserializer=nifake__pb2.GetEnumValueRequest.FromString, - response_serializer=nifake__pb2.GetEnumValueResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nifake__pb2.GetErrorRequest.FromString, - response_serializer=nifake__pb2.GetErrorResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=nifake__pb2.InitWithOptionsRequest.FromString, - response_serializer=nifake__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'MultipleArrayTypes': grpc.unary_unary_rpc_method_handler( - servicer.MultipleArrayTypes, - request_deserializer=nifake__pb2.MultipleArrayTypesRequest.FromString, - response_serializer=nifake__pb2.MultipleArrayTypesResponse.SerializeToString, - ), - 'MultipleArraysSameSize': grpc.unary_unary_rpc_method_handler( - servicer.MultipleArraysSameSize, - request_deserializer=nifake__pb2.MultipleArraysSameSizeRequest.FromString, - response_serializer=nifake__pb2.MultipleArraysSameSizeResponse.SerializeToString, - ), - 'MultipleArraysDifferentSize': grpc.unary_unary_rpc_method_handler( - servicer.MultipleArraysDifferentSize, - request_deserializer=nifake__pb2.MultipleArraysDifferentSizeRequest.FromString, - response_serializer=nifake__pb2.MultipleArraysDifferentSizeResponse.SerializeToString, - ), - 'MixedIviDanceAndLenMechanism': grpc.unary_unary_rpc_method_handler( - servicer.MixedIviDanceAndLenMechanism, - request_deserializer=nifake__pb2.MixedIviDanceAndLenMechanismRequest.FromString, - response_serializer=nifake__pb2.MixedIviDanceAndLenMechanismResponse.SerializeToString, - ), - 'OneInputFunction': grpc.unary_unary_rpc_method_handler( - servicer.OneInputFunction, - request_deserializer=nifake__pb2.OneInputFunctionRequest.FromString, - response_serializer=nifake__pb2.OneInputFunctionResponse.SerializeToString, - ), - 'ParametersAreMultipleTypes': grpc.unary_unary_rpc_method_handler( - servicer.ParametersAreMultipleTypes, - request_deserializer=nifake__pb2.ParametersAreMultipleTypesRequest.FromString, - response_serializer=nifake__pb2.ParametersAreMultipleTypesResponse.SerializeToString, - ), - 'PoorlyNamedSimpleFunction': grpc.unary_unary_rpc_method_handler( - servicer.PoorlyNamedSimpleFunction, - request_deserializer=nifake__pb2.PoorlyNamedSimpleFunctionRequest.FromString, - response_serializer=nifake__pb2.PoorlyNamedSimpleFunctionResponse.SerializeToString, - ), - 'Read': grpc.unary_unary_rpc_method_handler( - servicer.Read, - request_deserializer=nifake__pb2.ReadRequest.FromString, - response_serializer=nifake__pb2.ReadResponse.SerializeToString, - ), - 'ReadFromChannel': grpc.unary_unary_rpc_method_handler( - servicer.ReadFromChannel, - request_deserializer=nifake__pb2.ReadFromChannelRequest.FromString, - response_serializer=nifake__pb2.ReadFromChannelResponse.SerializeToString, - ), - 'ReturnANumberAndAString': grpc.unary_unary_rpc_method_handler( - servicer.ReturnANumberAndAString, - request_deserializer=nifake__pb2.ReturnANumberAndAStringRequest.FromString, - response_serializer=nifake__pb2.ReturnANumberAndAStringResponse.SerializeToString, - ), - 'ReturnMultipleTypes': grpc.unary_unary_rpc_method_handler( - servicer.ReturnMultipleTypes, - request_deserializer=nifake__pb2.ReturnMultipleTypesRequest.FromString, - response_serializer=nifake__pb2.ReturnMultipleTypesResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nifake__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nifake__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nifake__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nifake__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=nifake__pb2.SetAttributeViInt64Request.FromString, - response_serializer=nifake__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nifake__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nifake__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nifake__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nifake__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'TwoInputFunction': grpc.unary_unary_rpc_method_handler( - servicer.TwoInputFunction, - request_deserializer=nifake__pb2.TwoInputFunctionRequest.FromString, - response_serializer=nifake__pb2.TwoInputFunctionResponse.SerializeToString, - ), - 'Use64BitNumber': grpc.unary_unary_rpc_method_handler( - servicer.Use64BitNumber, - request_deserializer=nifake__pb2.Use64BitNumberRequest.FromString, - response_serializer=nifake__pb2.Use64BitNumberResponse.SerializeToString, - ), - 'WriteWaveform': grpc.unary_unary_rpc_method_handler( - servicer.WriteWaveform, - request_deserializer=nifake__pb2.WriteWaveformRequest.FromString, - response_serializer=nifake__pb2.WriteWaveformResponse.SerializeToString, - ), - 'WriteWaveformNumpyComplex128': grpc.unary_unary_rpc_method_handler( - servicer.WriteWaveformNumpyComplex128, - request_deserializer=nifake__pb2.WriteWaveformNumpyComplex128Request.FromString, - response_serializer=nifake__pb2.WriteWaveformNumpyComplex128Response.SerializeToString, - ), - 'WriteWaveformNumpyComplex64': grpc.unary_unary_rpc_method_handler( - servicer.WriteWaveformNumpyComplex64, - request_deserializer=nifake__pb2.WriteWaveformNumpyComplex64Request.FromString, - response_serializer=nifake__pb2.WriteWaveformNumpyComplex64Response.SerializeToString, - ), - 'WriteWaveformNumpyComplexInterleavedI16': grpc.unary_unary_rpc_method_handler( - servicer.WriteWaveformNumpyComplexInterleavedI16, - request_deserializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Request.FromString, - response_serializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Response.SerializeToString, - ), - 'SetCustomType': grpc.unary_unary_rpc_method_handler( - servicer.SetCustomType, - request_deserializer=nifake__pb2.SetCustomTypeRequest.FromString, - response_serializer=nifake__pb2.SetCustomTypeResponse.SerializeToString, - ), - 'SetCustomTypeArray': grpc.unary_unary_rpc_method_handler( - servicer.SetCustomTypeArray, - request_deserializer=nifake__pb2.SetCustomTypeArrayRequest.FromString, - response_serializer=nifake__pb2.SetCustomTypeArrayResponse.SerializeToString, - ), - 'GetCustomType': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomType, - request_deserializer=nifake__pb2.GetCustomTypeRequest.FromString, - response_serializer=nifake__pb2.GetCustomTypeResponse.SerializeToString, - ), - 'GetCustomTypeArray': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomTypeArray, - request_deserializer=nifake__pb2.GetCustomTypeArrayRequest.FromString, - response_serializer=nifake__pb2.GetCustomTypeArrayResponse.SerializeToString, - ), - 'GetAnIviDanceWithATwistArray': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceWithATwistArray, - request_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayResponse.SerializeToString, - ), - 'GetAnIviDanceWithATwistString': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceWithATwistString, - request_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceWithATwistStringResponse.SerializeToString, - ), - 'DoubleAllTheNums': grpc.unary_unary_rpc_method_handler( - servicer.DoubleAllTheNums, - request_deserializer=nifake__pb2.DoubleAllTheNumsRequest.FromString, - response_serializer=nifake__pb2.DoubleAllTheNumsResponse.SerializeToString, - ), - 'AcceptListOfDurationsInSeconds': grpc.unary_unary_rpc_method_handler( - servicer.AcceptListOfDurationsInSeconds, - request_deserializer=nifake__pb2.AcceptListOfDurationsInSecondsRequest.FromString, - response_serializer=nifake__pb2.AcceptListOfDurationsInSecondsResponse.SerializeToString, - ), - 'ReturnDurationInSeconds': grpc.unary_unary_rpc_method_handler( - servicer.ReturnDurationInSeconds, - request_deserializer=nifake__pb2.ReturnDurationInSecondsRequest.FromString, - response_serializer=nifake__pb2.ReturnDurationInSecondsResponse.SerializeToString, - ), - 'ReturnListOfDurationsInSeconds': grpc.unary_unary_rpc_method_handler( - servicer.ReturnListOfDurationsInSeconds, - request_deserializer=nifake__pb2.ReturnListOfDurationsInSecondsRequest.FromString, - response_serializer=nifake__pb2.ReturnListOfDurationsInSecondsResponse.SerializeToString, - ), - 'ConfigureAbc': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureAbc, - request_deserializer=nifake__pb2.ConfigureAbcRequest.FromString, - response_serializer=nifake__pb2.ConfigureAbcResponse.SerializeToString, - ), - 'ConfigureEnums': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureEnums, - request_deserializer=nifake__pb2.ConfigureEnumsRequest.FromString, - response_serializer=nifake__pb2.ConfigureEnumsResponse.SerializeToString, - ), - 'ExportAttributeConfigurationBufferEx': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationBufferEx, - request_deserializer=nifake__pb2.ExportAttributeConfigurationBufferExRequest.FromString, - response_serializer=nifake__pb2.ExportAttributeConfigurationBufferExResponse.SerializeToString, - ), - 'ImportAttributeConfigurationBufferEx': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationBufferEx, - request_deserializer=nifake__pb2.ImportAttributeConfigurationBufferExRequest.FromString, - response_serializer=nifake__pb2.ImportAttributeConfigurationBufferExResponse.SerializeToString, - ), - 'FetchWithCustomSize': grpc.unary_unary_rpc_method_handler( - servicer.FetchWithCustomSize, - request_deserializer=nifake__pb2.FetchWithCustomSizeRequest.FromString, - response_serializer=nifake__pb2.FetchWithCustomSizeResponse.SerializeToString, - ), - 'GetParameterWithOverriddenGrpcName': grpc.unary_unary_rpc_method_handler( - servicer.GetParameterWithOverriddenGrpcName, - request_deserializer=nifake__pb2.GetParameterWithOverriddenGrpcNameRequest.FromString, - response_serializer=nifake__pb2.GetParameterWithOverriddenGrpcNameResponse.SerializeToString, - ), - 'IviDanceWithTwistWithMultipleArraysAndOneBufferSize': grpc.unary_unary_rpc_method_handler( - servicer.IviDanceWithTwistWithMultipleArraysAndOneBufferSize, - request_deserializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest.FromString, - response_serializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse.SerializeToString, - ), - 'FunctionWithOverriddenGrpcName2x': grpc.unary_unary_rpc_method_handler( - servicer.FunctionWithOverriddenGrpcName2x, - request_deserializer=nifake__pb2.FunctionWithOverriddenGrpcName2xRequest.FromString, - response_serializer=nifake__pb2.FunctionWithOverriddenGrpcName2xResponse.SerializeToString, - ), - 'FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter': grpc.unary_unary_rpc_method_handler( - servicer.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter, - request_deserializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest.FromString, - response_serializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse.SerializeToString, - ), - 'StringValuedEnumNoEnumGenerated': grpc.unary_unary_rpc_method_handler( - servicer.StringValuedEnumNoEnumGenerated, - request_deserializer=nifake__pb2.StringValuedEnumNoEnumGeneratedRequest.FromString, - response_serializer=nifake__pb2.StringValuedEnumNoEnumGeneratedResponse.SerializeToString, - ), - 'IviDanceWithATwistCalculatedSizeOut': grpc.unary_unary_rpc_method_handler( - servicer.IviDanceWithATwistCalculatedSizeOut, - request_deserializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutRequest.FromString, - response_serializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutResponse.SerializeToString, - ), - 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationBuffer, - request_deserializer=nifake__pb2.ImportAttributeConfigurationBufferRequest.FromString, - response_serializer=nifake__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationBuffer, - request_deserializer=nifake__pb2.ExportAttributeConfigurationBufferRequest.FromString, - response_serializer=nifake__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'Control4022': grpc.unary_unary_rpc_method_handler( - servicer.Control4022, - request_deserializer=nifake__pb2.Control4022Request.FromString, - response_serializer=nifake__pb2.Control4022Response.SerializeToString, - ), - 'AcceptViSessionArray': grpc.unary_unary_rpc_method_handler( - servicer.AcceptViSessionArray, - request_deserializer=nifake__pb2.AcceptViSessionArrayRequest.FromString, - response_serializer=nifake__pb2.AcceptViSessionArrayResponse.SerializeToString, - ), - 'AcceptViUInt32Array': grpc.unary_unary_rpc_method_handler( - servicer.AcceptViUInt32Array, - request_deserializer=nifake__pb2.AcceptViUInt32ArrayRequest.FromString, - response_serializer=nifake__pb2.AcceptViUInt32ArrayResponse.SerializeToString, - ), - 'BoolArrayInputFunction': grpc.unary_unary_rpc_method_handler( - servicer.BoolArrayInputFunction, - request_deserializer=nifake__pb2.BoolArrayInputFunctionRequest.FromString, - response_serializer=nifake__pb2.BoolArrayInputFunctionResponse.SerializeToString, - ), - 'CloseExtCal': grpc.unary_unary_rpc_method_handler( - servicer.CloseExtCal, - request_deserializer=nifake__pb2.CloseExtCalRequest.FromString, - response_serializer=nifake__pb2.CloseExtCalResponse.SerializeToString, - ), - 'CommandWithReservedParam': grpc.unary_unary_rpc_method_handler( - servicer.CommandWithReservedParam, - request_deserializer=nifake__pb2.CommandWithReservedParamRequest.FromString, - response_serializer=nifake__pb2.CommandWithReservedParamResponse.SerializeToString, - ), - 'CreateConfigurationList': grpc.unary_unary_rpc_method_handler( - servicer.CreateConfigurationList, - request_deserializer=nifake__pb2.CreateConfigurationListRequest.FromString, - response_serializer=nifake__pb2.CreateConfigurationListResponse.SerializeToString, - ), - 'CustomNestedStructRoundtrip': grpc.unary_unary_rpc_method_handler( - servicer.CustomNestedStructRoundtrip, - request_deserializer=nifake__pb2.CustomNestedStructRoundtripRequest.FromString, - response_serializer=nifake__pb2.CustomNestedStructRoundtripResponse.SerializeToString, - ), - 'GetBitfieldAsEnumArray': grpc.unary_unary_rpc_method_handler( - servicer.GetBitfieldAsEnumArray, - request_deserializer=nifake__pb2.GetBitfieldAsEnumArrayRequest.FromString, - response_serializer=nifake__pb2.GetBitfieldAsEnumArrayResponse.SerializeToString, - ), - 'GetAnIviDanceWithATwistArrayOfCustomType': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceWithATwistArrayOfCustomType, - request_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeResponse.SerializeToString, - ), - 'GetAnIviDanceWithATwistArrayWithInputArray': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceWithATwistArrayWithInputArray, - request_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayResponse.SerializeToString, - ), - 'GetAnIviDanceWithATwistByteArray': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceWithATwistByteArray, - request_deserializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayResponse.SerializeToString, - ), - 'GetAnIviDanceWithATwistStringStrlenBug': grpc.unary_unary_rpc_method_handler( - servicer.GetAnIviDanceWithATwistStringStrlenBug, - request_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugRequest.FromString, - response_serializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugResponse.SerializeToString, - ), - 'GetArraySizeForCustomCode': grpc.unary_unary_rpc_method_handler( - servicer.GetArraySizeForCustomCode, - request_deserializer=nifake__pb2.GetArraySizeForCustomCodeRequest.FromString, - response_serializer=nifake__pb2.GetArraySizeForCustomCodeResponse.SerializeToString, - ), - 'GetArrayViUInt8WithEnum': grpc.unary_unary_rpc_method_handler( - servicer.GetArrayViUInt8WithEnum, - request_deserializer=nifake__pb2.GetArrayViUInt8WithEnumRequest.FromString, - response_serializer=nifake__pb2.GetArrayViUInt8WithEnumResponse.SerializeToString, - ), - 'GetViUInt8': grpc.unary_unary_rpc_method_handler( - servicer.GetViUInt8, - request_deserializer=nifake__pb2.GetViUInt8Request.FromString, - response_serializer=nifake__pb2.GetViUInt8Response.SerializeToString, - ), - 'GetViInt32Array': grpc.unary_unary_rpc_method_handler( - servicer.GetViInt32Array, - request_deserializer=nifake__pb2.GetViInt32ArrayRequest.FromString, - response_serializer=nifake__pb2.GetViInt32ArrayResponse.SerializeToString, - ), - 'GetViUInt32Array': grpc.unary_unary_rpc_method_handler( - servicer.GetViUInt32Array, - request_deserializer=nifake__pb2.GetViUInt32ArrayRequest.FromString, - response_serializer=nifake__pb2.GetViUInt32ArrayResponse.SerializeToString, - ), - 'MethodUsingEnumWithGrpcNameValues': grpc.unary_unary_rpc_method_handler( - servicer.MethodUsingEnumWithGrpcNameValues, - request_deserializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesRequest.FromString, - response_serializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesResponse.SerializeToString, - ), - 'MethodWithGetLastErrorParam': grpc.unary_unary_rpc_method_handler( - servicer.MethodWithGetLastErrorParam, - request_deserializer=nifake__pb2.MethodWithGetLastErrorParamRequest.FromString, - response_serializer=nifake__pb2.MethodWithGetLastErrorParamResponse.SerializeToString, - ), - 'MethodWithGrpcOnlyParam': grpc.unary_unary_rpc_method_handler( - servicer.MethodWithGrpcOnlyParam, - request_deserializer=nifake__pb2.MethodWithGrpcOnlyParamRequest.FromString, - response_serializer=nifake__pb2.MethodWithGrpcOnlyParamResponse.SerializeToString, - ), - 'MethodUsingWholeAndFractionalNumbers': grpc.unary_unary_rpc_method_handler( - servicer.MethodUsingWholeAndFractionalNumbers, - request_deserializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersRequest.FromString, - response_serializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersResponse.SerializeToString, - ), - 'MethodUsingWholeMappedNumbers': grpc.unary_unary_rpc_method_handler( - servicer.MethodUsingWholeMappedNumbers, - request_deserializer=nifake__pb2.MethodUsingWholeMappedNumbersRequest.FromString, - response_serializer=nifake__pb2.MethodUsingWholeMappedNumbersResponse.SerializeToString, - ), - 'MethodWithGrpcFieldNumber': grpc.unary_unary_rpc_method_handler( - servicer.MethodWithGrpcFieldNumber, - request_deserializer=nifake__pb2.MethodWithGrpcFieldNumberRequest.FromString, - response_serializer=nifake__pb2.MethodWithGrpcFieldNumberResponse.SerializeToString, - ), - 'MethodWithProtoOnlyParameter': grpc.unary_unary_rpc_method_handler( - servicer.MethodWithProtoOnlyParameter, - request_deserializer=nifake__pb2.MethodWithProtoOnlyParameterRequest.FromString, - response_serializer=nifake__pb2.MethodWithProtoOnlyParameterResponse.SerializeToString, - ), - 'ReadDataWithInOutIviTwist': grpc.unary_unary_rpc_method_handler( - servicer.ReadDataWithInOutIviTwist, - request_deserializer=nifake__pb2.ReadDataWithInOutIviTwistRequest.FromString, - response_serializer=nifake__pb2.ReadDataWithInOutIviTwistResponse.SerializeToString, - ), - 'ReadDataWithMultipleIviTwistParamSets': grpc.unary_unary_rpc_method_handler( - servicer.ReadDataWithMultipleIviTwistParamSets, - request_deserializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsRequest.FromString, - response_serializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsResponse.SerializeToString, - ), - 'InitExtCal': grpc.unary_unary_rpc_method_handler( - servicer.InitExtCal, - request_deserializer=nifake__pb2.InitExtCalRequest.FromString, - response_serializer=nifake__pb2.InitExtCalResponse.SerializeToString, - ), - 'InitWithVarArgs': grpc.unary_unary_rpc_method_handler( - servicer.InitWithVarArgs, - request_deserializer=nifake__pb2.InitWithVarArgsRequest.FromString, - response_serializer=nifake__pb2.InitWithVarArgsResponse.SerializeToString, - ), - 'MultipleArraysSameSizeWithOptional': grpc.unary_unary_rpc_method_handler( - servicer.MultipleArraysSameSizeWithOptional, - request_deserializer=nifake__pb2.MultipleArraysSameSizeWithOptionalRequest.FromString, - response_serializer=nifake__pb2.MultipleArraysSameSizeWithOptionalResponse.SerializeToString, - ), - 'UseATwoDimensionParameter': grpc.unary_unary_rpc_method_handler( - servicer.UseATwoDimensionParameter, - request_deserializer=nifake__pb2.UseATwoDimensionParameterRequest.FromString, - response_serializer=nifake__pb2.UseATwoDimensionParameterResponse.SerializeToString, - ), - 'ViUInt8ArrayInputFunction': grpc.unary_unary_rpc_method_handler( - servicer.ViUInt8ArrayInputFunction, - request_deserializer=nifake__pb2.ViUInt8ArrayInputFunctionRequest.FromString, - response_serializer=nifake__pb2.ViUInt8ArrayInputFunctionResponse.SerializeToString, - ), - 'ViUInt8ArrayOutputFunction': grpc.unary_unary_rpc_method_handler( - servicer.ViUInt8ArrayOutputFunction, - request_deserializer=nifake__pb2.ViUInt8ArrayOutputFunctionRequest.FromString, - response_serializer=nifake__pb2.ViUInt8ArrayOutputFunctionResponse.SerializeToString, - ), - 'ViInt16ArrayInputFunction': grpc.unary_unary_rpc_method_handler( - servicer.ViInt16ArrayInputFunction, - request_deserializer=nifake__pb2.ViInt16ArrayInputFunctionRequest.FromString, - response_serializer=nifake__pb2.ViInt16ArrayInputFunctionResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nifake_grpc.NiFake', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiFake(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Abort', - nifake__pb2.AbortRequest.SerializeToString, - nifake__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def BoolArrayOutputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/BoolArrayOutputFunction', - nifake__pb2.BoolArrayOutputFunctionRequest.SerializeToString, - nifake__pb2.BoolArrayOutputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Close', - nifake__pb2.CloseRequest.SerializeToString, - nifake__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnumArrayOutputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/EnumArrayOutputFunction', - nifake__pb2.EnumArrayOutputFunctionRequest.SerializeToString, - nifake__pb2.EnumArrayOutputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnumInputFunctionWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/EnumInputFunctionWithDefaults', - nifake__pb2.EnumInputFunctionWithDefaultsRequest.SerializeToString, - nifake__pb2.EnumInputFunctionWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StringValuedEnumInputFunctionWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/StringValuedEnumInputFunctionWithDefaults', - nifake__pb2.StringValuedEnumInputFunctionWithDefaultsRequest.SerializeToString, - nifake__pb2.StringValuedEnumInputFunctionWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ErrorMessage', - nifake__pb2.ErrorMessageRequest.SerializeToString, - nifake__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FetchWaveform', - nifake__pb2.FetchWaveformRequest.SerializeToString, - nifake__pb2.FetchWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetABoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetABoolean', - nifake__pb2.GetABooleanRequest.SerializeToString, - nifake__pb2.GetABooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetANumber(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetANumber', - nifake__pb2.GetANumberRequest.SerializeToString, - nifake__pb2.GetANumberResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAStringOfFixedMaximumSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAStringOfFixedMaximumSize', - nifake__pb2.GetAStringOfFixedMaximumSizeRequest.SerializeToString, - nifake__pb2.GetAStringOfFixedMaximumSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceCharArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceCharArray', - nifake__pb2.GetAnIviDanceCharArrayRequest.SerializeToString, - nifake__pb2.GetAnIviDanceCharArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetArrayUsingIviDance(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetArrayUsingIviDance', - nifake__pb2.GetArrayUsingIviDanceRequest.SerializeToString, - nifake__pb2.GetArrayUsingIviDanceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViBoolean', - nifake__pb2.GetAttributeViBooleanRequest.SerializeToString, - nifake__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViInt32', - nifake__pb2.GetAttributeViInt32Request.SerializeToString, - nifake__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViInt64', - nifake__pb2.GetAttributeViInt64Request.SerializeToString, - nifake__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViReal64', - nifake__pb2.GetAttributeViReal64Request.SerializeToString, - nifake__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViSession', - nifake__pb2.GetAttributeViSessionRequest.SerializeToString, - nifake__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViString', - nifake__pb2.GetAttributeViStringRequest.SerializeToString, - nifake__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCalDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCalDateAndTime', - nifake__pb2.GetCalDateAndTimeRequest.SerializeToString, - nifake__pb2.GetCalDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCalInterval(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCalInterval', - nifake__pb2.GetCalIntervalRequest.SerializeToString, - nifake__pb2.GetCalIntervalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetEnumValue(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetEnumValue', - nifake__pb2.GetEnumValueRequest.SerializeToString, - nifake__pb2.GetEnumValueResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetError', - nifake__pb2.GetErrorRequest.SerializeToString, - nifake__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/InitWithOptions', - nifake__pb2.InitWithOptionsRequest.SerializeToString, - nifake__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MultipleArrayTypes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArrayTypes', - nifake__pb2.MultipleArrayTypesRequest.SerializeToString, - nifake__pb2.MultipleArrayTypesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MultipleArraysSameSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArraysSameSize', - nifake__pb2.MultipleArraysSameSizeRequest.SerializeToString, - nifake__pb2.MultipleArraysSameSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MultipleArraysDifferentSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArraysDifferentSize', - nifake__pb2.MultipleArraysDifferentSizeRequest.SerializeToString, - nifake__pb2.MultipleArraysDifferentSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MixedIviDanceAndLenMechanism(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MixedIviDanceAndLenMechanism', - nifake__pb2.MixedIviDanceAndLenMechanismRequest.SerializeToString, - nifake__pb2.MixedIviDanceAndLenMechanismResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def OneInputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/OneInputFunction', - nifake__pb2.OneInputFunctionRequest.SerializeToString, - nifake__pb2.OneInputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ParametersAreMultipleTypes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ParametersAreMultipleTypes', - nifake__pb2.ParametersAreMultipleTypesRequest.SerializeToString, - nifake__pb2.ParametersAreMultipleTypesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PoorlyNamedSimpleFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/PoorlyNamedSimpleFunction', - nifake__pb2.PoorlyNamedSimpleFunctionRequest.SerializeToString, - nifake__pb2.PoorlyNamedSimpleFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Read(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Read', - nifake__pb2.ReadRequest.SerializeToString, - nifake__pb2.ReadResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadFromChannel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReadFromChannel', - nifake__pb2.ReadFromChannelRequest.SerializeToString, - nifake__pb2.ReadFromChannelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReturnANumberAndAString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnANumberAndAString', - nifake__pb2.ReturnANumberAndAStringRequest.SerializeToString, - nifake__pb2.ReturnANumberAndAStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReturnMultipleTypes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnMultipleTypes', - nifake__pb2.ReturnMultipleTypesRequest.SerializeToString, - nifake__pb2.ReturnMultipleTypesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViBoolean', - nifake__pb2.SetAttributeViBooleanRequest.SerializeToString, - nifake__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViInt32', - nifake__pb2.SetAttributeViInt32Request.SerializeToString, - nifake__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViInt64', - nifake__pb2.SetAttributeViInt64Request.SerializeToString, - nifake__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViReal64', - nifake__pb2.SetAttributeViReal64Request.SerializeToString, - nifake__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViString', - nifake__pb2.SetAttributeViStringRequest.SerializeToString, - nifake__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TwoInputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/TwoInputFunction', - nifake__pb2.TwoInputFunctionRequest.SerializeToString, - nifake__pb2.TwoInputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Use64BitNumber(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Use64BitNumber', - nifake__pb2.Use64BitNumberRequest.SerializeToString, - nifake__pb2.Use64BitNumberResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveform', - nifake__pb2.WriteWaveformRequest.SerializeToString, - nifake__pb2.WriteWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteWaveformNumpyComplex128(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveformNumpyComplex128', - nifake__pb2.WriteWaveformNumpyComplex128Request.SerializeToString, - nifake__pb2.WriteWaveformNumpyComplex128Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteWaveformNumpyComplex64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveformNumpyComplex64', - nifake__pb2.WriteWaveformNumpyComplex64Request.SerializeToString, - nifake__pb2.WriteWaveformNumpyComplex64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteWaveformNumpyComplexInterleavedI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveformNumpyComplexInterleavedI16', - nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Request.SerializeToString, - nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetCustomType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetCustomType', - nifake__pb2.SetCustomTypeRequest.SerializeToString, - nifake__pb2.SetCustomTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetCustomTypeArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetCustomTypeArray', - nifake__pb2.SetCustomTypeArrayRequest.SerializeToString, - nifake__pb2.SetCustomTypeArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCustomType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCustomType', - nifake__pb2.GetCustomTypeRequest.SerializeToString, - nifake__pb2.GetCustomTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCustomTypeArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCustomTypeArray', - nifake__pb2.GetCustomTypeArrayRequest.SerializeToString, - nifake__pb2.GetCustomTypeArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceWithATwistArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArray', - nifake__pb2.GetAnIviDanceWithATwistArrayRequest.SerializeToString, - nifake__pb2.GetAnIviDanceWithATwistArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceWithATwistString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistString', - nifake__pb2.GetAnIviDanceWithATwistStringRequest.SerializeToString, - nifake__pb2.GetAnIviDanceWithATwistStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DoubleAllTheNums(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/DoubleAllTheNums', - nifake__pb2.DoubleAllTheNumsRequest.SerializeToString, - nifake__pb2.DoubleAllTheNumsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AcceptListOfDurationsInSeconds(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/AcceptListOfDurationsInSeconds', - nifake__pb2.AcceptListOfDurationsInSecondsRequest.SerializeToString, - nifake__pb2.AcceptListOfDurationsInSecondsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReturnDurationInSeconds(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnDurationInSeconds', - nifake__pb2.ReturnDurationInSecondsRequest.SerializeToString, - nifake__pb2.ReturnDurationInSecondsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReturnListOfDurationsInSeconds(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnListOfDurationsInSeconds', - nifake__pb2.ReturnListOfDurationsInSecondsRequest.SerializeToString, - nifake__pb2.ReturnListOfDurationsInSecondsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureAbc(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ConfigureAbc', - nifake__pb2.ConfigureAbcRequest.SerializeToString, - nifake__pb2.ConfigureAbcResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureEnums(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ConfigureEnums', - nifake__pb2.ConfigureEnumsRequest.SerializeToString, - nifake__pb2.ConfigureEnumsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationBufferEx(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ExportAttributeConfigurationBufferEx', - nifake__pb2.ExportAttributeConfigurationBufferExRequest.SerializeToString, - nifake__pb2.ExportAttributeConfigurationBufferExResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationBufferEx(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ImportAttributeConfigurationBufferEx', - nifake__pb2.ImportAttributeConfigurationBufferExRequest.SerializeToString, - nifake__pb2.ImportAttributeConfigurationBufferExResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchWithCustomSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FetchWithCustomSize', - nifake__pb2.FetchWithCustomSizeRequest.SerializeToString, - nifake__pb2.FetchWithCustomSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetParameterWithOverriddenGrpcName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetParameterWithOverriddenGrpcName', - nifake__pb2.GetParameterWithOverriddenGrpcNameRequest.SerializeToString, - nifake__pb2.GetParameterWithOverriddenGrpcNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IviDanceWithTwistWithMultipleArraysAndOneBufferSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/IviDanceWithTwistWithMultipleArraysAndOneBufferSize', - nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest.SerializeToString, - nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FunctionWithOverriddenGrpcName2x(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FunctionWithOverriddenGrpcName2x', - nifake__pb2.FunctionWithOverriddenGrpcName2xRequest.SerializeToString, - nifake__pb2.FunctionWithOverriddenGrpcName2xResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter', - nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest.SerializeToString, - nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def StringValuedEnumNoEnumGenerated(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/StringValuedEnumNoEnumGenerated', - nifake__pb2.StringValuedEnumNoEnumGeneratedRequest.SerializeToString, - nifake__pb2.StringValuedEnumNoEnumGeneratedResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IviDanceWithATwistCalculatedSizeOut(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/IviDanceWithATwistCalculatedSizeOut', - nifake__pb2.IviDanceWithATwistCalculatedSizeOutRequest.SerializeToString, - nifake__pb2.IviDanceWithATwistCalculatedSizeOutResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ImportAttributeConfigurationBuffer', - nifake__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - nifake__pb2.ImportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ExportAttributeConfigurationBuffer', - nifake__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - nifake__pb2.ExportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Control4022(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Control4022', - nifake__pb2.Control4022Request.SerializeToString, - nifake__pb2.Control4022Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AcceptViSessionArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/AcceptViSessionArray', - nifake__pb2.AcceptViSessionArrayRequest.SerializeToString, - nifake__pb2.AcceptViSessionArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AcceptViUInt32Array(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/AcceptViUInt32Array', - nifake__pb2.AcceptViUInt32ArrayRequest.SerializeToString, - nifake__pb2.AcceptViUInt32ArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def BoolArrayInputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/BoolArrayInputFunction', - nifake__pb2.BoolArrayInputFunctionRequest.SerializeToString, - nifake__pb2.BoolArrayInputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CloseExtCal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CloseExtCal', - nifake__pb2.CloseExtCalRequest.SerializeToString, - nifake__pb2.CloseExtCalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CommandWithReservedParam(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CommandWithReservedParam', - nifake__pb2.CommandWithReservedParamRequest.SerializeToString, - nifake__pb2.CommandWithReservedParamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateConfigurationList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CreateConfigurationList', - nifake__pb2.CreateConfigurationListRequest.SerializeToString, - nifake__pb2.CreateConfigurationListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CustomNestedStructRoundtrip(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CustomNestedStructRoundtrip', - nifake__pb2.CustomNestedStructRoundtripRequest.SerializeToString, - nifake__pb2.CustomNestedStructRoundtripResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetBitfieldAsEnumArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetBitfieldAsEnumArray', - nifake__pb2.GetBitfieldAsEnumArrayRequest.SerializeToString, - nifake__pb2.GetBitfieldAsEnumArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceWithATwistArrayOfCustomType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayOfCustomType', - nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeRequest.SerializeToString, - nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceWithATwistArrayWithInputArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayWithInputArray', - nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayRequest.SerializeToString, - nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceWithATwistByteArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistByteArray', - nifake__pb2.GetAnIviDanceWithATwistByteArrayRequest.SerializeToString, - nifake__pb2.GetAnIviDanceWithATwistByteArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAnIviDanceWithATwistStringStrlenBug(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistStringStrlenBug', - nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugRequest.SerializeToString, - nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetArraySizeForCustomCode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetArraySizeForCustomCode', - nifake__pb2.GetArraySizeForCustomCodeRequest.SerializeToString, - nifake__pb2.GetArraySizeForCustomCodeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetArrayViUInt8WithEnum(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetArrayViUInt8WithEnum', - nifake__pb2.GetArrayViUInt8WithEnumRequest.SerializeToString, - nifake__pb2.GetArrayViUInt8WithEnumResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetViUInt8(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetViUInt8', - nifake__pb2.GetViUInt8Request.SerializeToString, - nifake__pb2.GetViUInt8Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetViInt32Array(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetViInt32Array', - nifake__pb2.GetViInt32ArrayRequest.SerializeToString, - nifake__pb2.GetViInt32ArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetViUInt32Array(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetViUInt32Array', - nifake__pb2.GetViUInt32ArrayRequest.SerializeToString, - nifake__pb2.GetViUInt32ArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodUsingEnumWithGrpcNameValues(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodUsingEnumWithGrpcNameValues', - nifake__pb2.MethodUsingEnumWithGrpcNameValuesRequest.SerializeToString, - nifake__pb2.MethodUsingEnumWithGrpcNameValuesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodWithGetLastErrorParam(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithGetLastErrorParam', - nifake__pb2.MethodWithGetLastErrorParamRequest.SerializeToString, - nifake__pb2.MethodWithGetLastErrorParamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodWithGrpcOnlyParam(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithGrpcOnlyParam', - nifake__pb2.MethodWithGrpcOnlyParamRequest.SerializeToString, - nifake__pb2.MethodWithGrpcOnlyParamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodUsingWholeAndFractionalNumbers(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodUsingWholeAndFractionalNumbers', - nifake__pb2.MethodUsingWholeAndFractionalNumbersRequest.SerializeToString, - nifake__pb2.MethodUsingWholeAndFractionalNumbersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodUsingWholeMappedNumbers(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodUsingWholeMappedNumbers', - nifake__pb2.MethodUsingWholeMappedNumbersRequest.SerializeToString, - nifake__pb2.MethodUsingWholeMappedNumbersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodWithGrpcFieldNumber(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithGrpcFieldNumber', - nifake__pb2.MethodWithGrpcFieldNumberRequest.SerializeToString, - nifake__pb2.MethodWithGrpcFieldNumberResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MethodWithProtoOnlyParameter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithProtoOnlyParameter', - nifake__pb2.MethodWithProtoOnlyParameterRequest.SerializeToString, - nifake__pb2.MethodWithProtoOnlyParameterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadDataWithInOutIviTwist(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReadDataWithInOutIviTwist', - nifake__pb2.ReadDataWithInOutIviTwistRequest.SerializeToString, - nifake__pb2.ReadDataWithInOutIviTwistResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadDataWithMultipleIviTwistParamSets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReadDataWithMultipleIviTwistParamSets', - nifake__pb2.ReadDataWithMultipleIviTwistParamSetsRequest.SerializeToString, - nifake__pb2.ReadDataWithMultipleIviTwistParamSetsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitExtCal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/InitExtCal', - nifake__pb2.InitExtCalRequest.SerializeToString, - nifake__pb2.InitExtCalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithVarArgs(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/InitWithVarArgs', - nifake__pb2.InitWithVarArgsRequest.SerializeToString, - nifake__pb2.InitWithVarArgsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def MultipleArraysSameSizeWithOptional(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArraysSameSizeWithOptional', - nifake__pb2.MultipleArraysSameSizeWithOptionalRequest.SerializeToString, - nifake__pb2.MultipleArraysSameSizeWithOptionalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UseATwoDimensionParameter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/UseATwoDimensionParameter', - nifake__pb2.UseATwoDimensionParameterRequest.SerializeToString, - nifake__pb2.UseATwoDimensionParameterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ViUInt8ArrayInputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ViUInt8ArrayInputFunction', - nifake__pb2.ViUInt8ArrayInputFunctionRequest.SerializeToString, - nifake__pb2.ViUInt8ArrayInputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ViUInt8ArrayOutputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ViUInt8ArrayOutputFunction', - nifake__pb2.ViUInt8ArrayOutputFunctionRequest.SerializeToString, - nifake__pb2.ViUInt8ArrayOutputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ViInt16ArrayInputFunction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ViInt16ArrayInputFunction', - nifake__pb2.ViInt16ArrayInputFunctionRequest.SerializeToString, - nifake__pb2.ViInt16ArrayInputFunctionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nifake/nifake/session.py b/generated/nifake/nifake/session.py deleted file mode 100644 index 66741bcab8..0000000000 --- a/generated/nifake/nifake/session.py +++ /dev/null @@ -1,1855 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nifake._attributes as _attributes -import nifake._converters as _converters -import nifake._library_interpreter as _library_interpreter -import nifake.enums as enums -import nifake.errors as errors - -import nifake.custom_struct as custom_struct # noqa: F401 - -import nifake.custom_struct_typedef as custom_struct_typedef # noqa: F401 - -import nifake.custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 - -import hightime -import nitclk - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Acquisition(object): - def __init__(self, session): - self._session = session - self._session._initiate() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-FAKE sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - float_enum = _attributes.AttributeEnum(_attributes.AttributeViReal64, enums.FloatEnum, 1000005) - '''Type: enums.FloatEnum - - A property with an enum that is also a float - ''' - read_write_bool = _attributes.AttributeViBoolean(1000000) - '''Type: bool - - A property of type bool with read/write access. - ''' - read_write_color = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Color, 1000003) - '''Type: enums.Color - - A property of type Color with read/write access. - ''' - read_write_comma_separated_string = _attributes.AttributeViStringCommaSeparated(1000015) - '''Type: str - - A property of type comma separated string with read/write access. - ''' - read_write_double = _attributes.AttributeViReal64(1000001) - '''Type: float - - A property of type float with read/write access. - ''' - read_write_double_with_converter = _attributes.AttributeViReal64TimeDeltaSeconds(1000007) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Property in seconds - ''' - read_write_double_with_repeated_capability = _attributes.AttributeViReal64(1000009) - '''Type: float - - Tip: - This property can be set/get on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].read_write_double_with_repeated_capability` - - To set/get on all channels, you can call the property directly on the :py:class:`nifake.Session`. - - Example: :py:attr:`my_session.read_write_double_with_repeated_capability` - ''' - read_write_enum_with_converter = _attributes.AttributeEnumWithConverter(_attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EnumWithConverter, 1000011), _converters.convert_from_enum_with_converter_enum, _converters.convert_to_enum_with_converter_enum) - read_write_int64 = _attributes.AttributeViInt64(1000006) - '''Type: int - - A property of type 64-bit integer with read/write access. - ''' - read_write_integer = _attributes.AttributeViInt32(1000004) - '''Type: int - - A property of type integer with read/write access. - ''' - read_write_integer_with_converter = _attributes.AttributeViInt32TimeDeltaMilliseconds(1000008) - '''Type: hightime.timedelta, datetime.timedelta, or int in milliseconds - - Property in milliseconds - ''' - read_write_integer_with_month_converter = _attributes.AttributeViInt32TimeDeltaMonths(1000014) - '''Type: hightime.timedelta, datetime.timedelta, or int in months - - Property in months - ''' - read_write_string = _attributes.AttributeViString(1000002) - '''Type: str - - A property of type string with read/write access. - ''' - read_write_string_repeated_capability = _attributes.AttributeViStringRepeatedCapability(1000010) - '''Type: Any repeated capability type, as defined in nimi-python: - - str - - str - Comma delimited list - - str - Range (using '-' or ':') - - int - - Basic sequence types (list, tuple, range, slice) of other supported types - - A property with read/write access, that represents a repeated capability - - Tip: - This property can be set/get on specific instruments within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].read_write_string_repeated_capability` - - To set/get on all instruments, you can call the property directly on the :py:class:`nifake.Session`. - - Example: :py:attr:`my_session.read_write_string_repeated_capability` - ''' - sample_count = _attributes.AttributeViInt32(1000012) - sample_interval = _attributes.AttributeViReal64(1000013) - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - self.sites = _RepeatedCapabilities(self, 'site', repeated_capability_list) - self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nifake', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def function_with_repeated_capability_type(self): - r'''function_with_repeated_capability_type - - A method with a parameter that specifies repeated_capability_type. - - Tip: - This method can be called on specific sites within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container sites to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.sites[ ... ].function_with_repeated_capability_type` - - To call the method on all sites, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session.function_with_repeated_capability_type` - ''' - self._interpreter.function_with_repeated_capability_type(self._repeated_capability) - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (bool): Returns the value of the property. - - ''' - attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (int): Returns the value of the property. - - ''' - attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int64(self, attribute_id): - r'''_get_attribute_vi_int64 - - Queries the value of a ViInt64 property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int64` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (int): Returns the value of the property. - - ''' - attribute_value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - Queries the value of a ViReal property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (float): Returns the value of the property. - - ''' - attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - Queries the value of a ViBoolean property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - attribute_value (str): Returns the value of the property. - - ''' - attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_channel_names(self, indices): - r'''_get_channel_names - - Returns a list of channel names for the given channel indices. - - Args: - indices (basic sequence types or str or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - Returns: - names (list of str): The channel name(s) at the specified indices. - - ''' - indices = _converters.convert_repeated_capabilities_without_prefix(indices) - names = self._interpreter.get_channel_names(indices) - return _converters.convert_comma_separated_string_to_list(names) - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-FAKE locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nifake.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def get_channel_names(self, indices): - '''get_channel_names - - Returns a list of channel names for the given channel indices. - - Args: - indices (basic sequence types or str or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - Returns: - names (list of str): The channel name(s) at the specified indices. - - ''' - return self._get_channel_names(indices) - - @ivi_synchronized - def read_from_channel(self, maximum_time): - r'''read_from_channel - - Acquires a single measurement and returns the measured value. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_from_channel` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session.read_from_channel` - - Args: - maximum_time (hightime.timedelta): Specifies the **maximum_time** allowed in milliseconds. - - - Returns: - reading (float): The measured value. - - ''' - maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) - reading = self._interpreter.read_from_channel(self._repeated_capability, maximum_time) - return reading - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, attribute_value): - r'''_set_attribute_vi_boolean - - This method sets the value of a ViBoolean property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (bool): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int32 - - This method sets the value of a ViInt32 property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (int): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int64 - - This method sets the value of a ViInt64 property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int64` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (int): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_real64 - - This method sets the value of a ViReal64 property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (float): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, attribute_value): - r'''_set_attribute_vi_string - - This method sets the value of a ViString property. - - Tip: - This method can be called on specific channels within your :py:class:`nifake.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. - - attribute_value (str): Pass the value that you want to set the property to. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - def _error_message(self, error_code): - r'''_error_message - - Takes the errorCode returned by a functiona and returns it as a user-readable string. - - Args: - error_code (int): The errorCode returned from the instrument. - - - Returns: - error_message (str): The error information formatted into a string. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-FAKE session to a fake MI driver whose sole purpose is to test nimi-python code generation''' - - def __init__(self, resource_name, options={}, id_query=False, reset_device=False, *, grpc_options=None): - r'''An NI-FAKE session to a fake MI driver whose sole purpose is to test nimi-python code generation - - Creates a new IVI instrument driver session. - - Args: - resource_name (str): Caution: This is just some string. - - Contains the **resource_name** of the device to initialize. - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - id_query (bool): NI-FAKE is probably not needed. - - +----------------+---+------------------+ - | True (default) | 1 | Perform ID Query | - +----------------+---+------------------+ - | False | 0 | Skip ID Query | - +----------------+---+------------------+ - - reset_device (bool): Specifies whether to reset - - +----------------+---+--------------+ - | True (default) | 1 | Reset Device | - +----------------+---+--------------+ - | False | 0 | Don't Reset | - +----------------+---+--------------+ - - grpc_options (nifake.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - session (nifake.Session): A session object representing the device. - - ''' - if grpc_options: - import nifake._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_options fails, the error handler can reference it. - # And then here, once _init_with_options succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_options(resource_name, options, id_query, reset_device)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-FAKE', grpc_options.grpc_channel, connected) - - # NI-TClk does not work over NI gRPC Device Server - if not grpc_options: - self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("options=" + pp.pformat(options)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Initiates a thingie. - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Acquisition(self) - - def close(self): - '''close - - Closes the specified session and deallocates resources that it reserved. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Aborts a previously initiated thingie. - ''' - self._interpreter.abort() - - @ivi_synchronized - def accept_list_of_durations_in_seconds(self, delays): - r'''accept_list_of_durations_in_seconds - - Accepts list of hightime.timedelta or datetime.timedelta or float instances representing time delays. - - Args: - delays (hightime.timedelta, datetime.timedelta, or float in seconds): A collection of time delay values. - - ''' - delays = _converters.convert_timedeltas_to_seconds_real64(delays) - self._interpreter.accept_list_of_durations_in_seconds(delays) - - @ivi_synchronized - def bool_array_output_function(self, number_of_elements): - r'''bool_array_output_function - - This method returns an array of booleans. - - Args: - number_of_elements (int): Number of elements in the array. - - - Returns: - an_array (list of bool): Contains an array of booleans - - ''' - an_array = self._interpreter.bool_array_output_function(number_of_elements) - return an_array - - @ivi_synchronized - def configure_abc(self): - r'''configure_abc - - TBD - ''' - self._interpreter.configure_abc() - - @ivi_synchronized - def custom_nested_struct_roundtrip(self, nested_custom_type_in): - r'''custom_nested_struct_roundtrip - - TBD - - Args: - nested_custom_type_in (CustomStructNestedTypedef): - - - Returns: - nested_custom_type_out (CustomStructNestedTypedef): - - ''' - nested_custom_type_out = self._interpreter.custom_nested_struct_roundtrip(nested_custom_type_in) - return nested_custom_type_out - - @ivi_synchronized - def double_all_the_nums(self, numbers): - r'''double_all_the_nums - - Test for buffer with converter - - Args: - numbers (list of float): numbers is an array of numbers we want to double. - - ''' - numbers = _converters.convert_double_each_element(numbers) - self._interpreter.double_all_the_nums(numbers) - - @ivi_synchronized - def enum_array_output_function(self, number_of_elements): - r'''enum_array_output_function - - This method returns an array of enums, stored as 16 bit integers under the hood. - - Args: - number_of_elements (int): Number of elements in the array. - - - Returns: - an_array (list of enums.Turtle): Contains an array of enums, stored as 16 bit integers under the hood - - ''' - an_array = self._interpreter.enum_array_output_function(number_of_elements) - return an_array - - @ivi_synchronized - def enum_input_function_with_defaults(self, a_turtle=enums.Turtle.LEONARDO): - r'''enum_input_function_with_defaults - - This method takes one parameter other than the session, which happens to be an enum and has a default value. - - Args: - a_turtle (enums.Turtle): Indicates a ninja turtle - - +---+---------------+ - | 0 | Leonardo | - +---+---------------+ - | 1 | Donatello | - +---+---------------+ - | 2 | Raphael | - +---+---------------+ - | 3 | Mich elangelo | - +---+---------------+ - - ''' - if type(a_turtle) is not enums.Turtle: - raise TypeError('Parameter a_turtle must be of type ' + str(enums.Turtle)) - self._interpreter.enum_input_function_with_defaults(a_turtle) - - @ivi_synchronized - def export_attribute_configuration_buffer(self): - r'''export_attribute_configuration_buffer - - Export configuration buffer. - - Returns: - configuration (bytes): - - ''' - configuration = self._interpreter.export_attribute_configuration_buffer() - return _converters.convert_to_bytes(configuration) - - @ivi_synchronized - def fetch_waveform(self, number_of_samples): - r'''fetch_waveform - - Returns waveform data. - - Args: - number_of_samples (int): Number of samples to return - - - Returns: - waveform_data (array.array("d")): Samples fetched from the device. Array should be numberOfSamples big. - - ''' - waveform_data = self._interpreter.fetch_waveform(number_of_samples) - return waveform_data - - @ivi_synchronized - def fetch_waveform_into(self, waveform_data): - r'''fetch_waveform_into - - Returns waveform data. - - Args: - waveform_data (numpy.array(dtype=numpy.float64)): Samples fetched from the device. Array should be numberOfSamples big. - - ''' - import numpy - - if type(waveform_data) is not numpy.ndarray: - raise TypeError('waveform_data must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data))) - if numpy.isfortran(waveform_data) is True: - raise TypeError('waveform_data must be in C-order') - if waveform_data.dtype is not numpy.dtype('float64'): - raise TypeError('waveform_data must be numpy.ndarray of dtype=float64, is ' + str(waveform_data.dtype)) - self._interpreter.fetch_waveform_into(waveform_data) - - def function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self, multidimensional_array): - r'''function_with_3d_numpy_array_of_numpy_complex128_input_parameter - - Method that takes a 3D numpy array of numpy complex128 as an input parameter. - - Args: - multidimensional_array (numpy.array(dtype=numpy.complex128)): Specifies the 3D array of numpy complex numbers to write. - - ''' - import numpy - - if type(multidimensional_array) is not numpy.ndarray: - raise TypeError('multidimensional_array must be {0}, is {1}'.format(numpy.ndarray, type(multidimensional_array))) - if numpy.isfortran(multidimensional_array) is True: - raise TypeError('multidimensional_array must be in C-order') - if multidimensional_array.dtype is not numpy.dtype('complex128'): - raise TypeError('multidimensional_array must be numpy.ndarray of dtype=complex128, is ' + str(multidimensional_array.dtype)) - if multidimensional_array.ndim != 3: - raise TypeError('multidimensional_array must be numpy.ndarray of dimension=3, is ' + str(multidimensional_array.ndim)) - self._interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(multidimensional_array) - - @ivi_synchronized - def function_with_intflag_parameter(self, flag): - r'''function_with_intflag_parameter - - Calls a method that takes a flag parameter which can be OR'd from multiple enum values. - - Args: - flag (enums.IntFlagEnum): A flag parameter that can be a combination (bitwise OR) of IntFlagEnum values. - - ''' - if type(flag) is not enums.IntFlagEnum: - raise TypeError('Parameter flag must be of type ' + str(enums.IntFlagEnum)) - self._interpreter.function_with_intflag_parameter(flag) - - @ivi_synchronized - def get_a_boolean(self): - r'''get_a_boolean - - Returns a boolean. - - Note: This method rules! - - Returns: - a_boolean (bool): Contains a boolean. - - ''' - a_boolean = self._interpreter.get_a_boolean() - return a_boolean - - @ivi_synchronized - def get_a_number(self): - r'''get_a_number - - Returns a number. - - Note: This method rules! - - Returns: - a_number (int): Contains a number. - - ''' - a_number = self._interpreter.get_a_number() - return a_number - - @ivi_synchronized - def get_a_string_of_fixed_maximum_size(self): - r'''get_a_string_of_fixed_maximum_size - - Illustrates returning a string of fixed size. - - Returns: - a_string (str): String comes back here. Buffer must be 256 big. - - ''' - a_string = self._interpreter.get_a_string_of_fixed_maximum_size() - return a_string - - @ivi_synchronized - def get_a_string_using_python_code(self, a_number): - r'''get_a_string_using_python_code - - Returns a number and a string. - - Note: This method rules! - - Args: - a_number (int): Contains a number. - - - Returns: - a_string (str): Contains a string of length aNumber. - - ''' - a_string = self._interpreter.get_a_string_using_python_code(a_number) - return a_string - - @ivi_synchronized - def get_an_ivi_dance_char_array(self): - r'''get_an_ivi_dance_char_array - - TBD - - Returns: - char_array (str): - - ''' - char_array = self._interpreter.get_an_ivi_dance_char_array() - return char_array - - @ivi_synchronized - def get_an_ivi_dance_with_a_twist_string(self): - r'''get_an_ivi_dance_with_a_twist_string - - TBD - - Returns: - a_string (str): - - ''' - a_string = self._interpreter.get_an_ivi_dance_with_a_twist_string() - return a_string - - @ivi_synchronized - def get_array_for_python_code_custom_type(self): - r'''get_array_for_python_code_custom_type - - This method returns an array for use in python-code size mechanism. - - Returns: - array_out (list of CustomStruct): Array of custom type using python-code size mechanism - - ''' - array_out = self._interpreter.get_array_for_python_code_custom_type() - return array_out - - @ivi_synchronized - def get_array_for_python_code_double(self): - r'''get_array_for_python_code_double - - This method returns an array for use in python-code size mechanism. - - Returns: - array_out (list of float): Array of double using python-code size mechanism - - ''' - array_out = self._interpreter.get_array_for_python_code_double() - return array_out - - @ivi_synchronized - def get_array_size_for_python_code(self): - r'''get_array_size_for_python_code - - This method returns the size of the array for use in python-code size mechanism. - - Returns: - size_out (int): Size of array - - ''' - size_out = self._interpreter.get_array_size_for_python_code() - return size_out - - @ivi_synchronized - def get_array_using_ivi_dance(self): - r'''get_array_using_ivi_dance - - This method returns an array of float whose size is determined with the IVI dance. - - Returns: - array_out (list of float): The array returned by this method - - ''' - array_out = self._interpreter.get_array_using_ivi_dance() - return array_out - - @ivi_synchronized - def _get_cal_date_and_time(self, cal_type): - r'''_get_cal_date_and_time - - Returns the date and time of the last calibration performed. - - Args: - cal_type (int): Specifies the type of calibration performed (external or self-calibration). - - - Returns: - month (int): Indicates the **month** of the last calibration. - - day (int): Indicates the **day** of the last calibration. - - year (int): Indicates the **year** of the last calibration. - - hour (int): Indicates the **hour** of the last calibration. - - minute (int): Indicates the **minute** of the last calibration. - - ''' - month, day, year, hour, minute = self._interpreter.get_cal_date_and_time(cal_type) - return month, day, year, hour, minute - - @ivi_synchronized - def get_cal_interval(self): - r'''get_cal_interval - - Returns the recommended maximum interval, in **months**, between external calibrations. - - Returns: - months (hightime.timedelta): Specifies the recommended maximum interval, in **months**, between external calibrations. - - ''' - months = self._interpreter.get_cal_interval() - return _converters.convert_month_to_timedelta(months) - - @ivi_synchronized - def get_custom_type(self): - r'''get_custom_type - - This method returns a custom type. - - Returns: - cs (CustomStruct): Set using custom type - - ''' - cs = self._interpreter.get_custom_type() - return cs - - @ivi_synchronized - def get_custom_type_array(self, number_of_elements): - r'''get_custom_type_array - - This method returns a custom type. - - Args: - number_of_elements (int): Number of elements in the array. - - - Returns: - cs (list of CustomStruct): Get using custom type - - ''' - cs = self._interpreter.get_custom_type_array(number_of_elements) - return cs - - @ivi_synchronized - def get_custom_type_typedef(self): - r'''get_custom_type_typedef - - This method returns a custom type with typedef and a custom type with nested typedef. - - Returns: - cst (CustomStructTypedef): An object of a custom type with typedef - - csnt (CustomStructNestedTypedef): An object of a custom type with nested typedef - - ''' - cst, csnt = self._interpreter.get_custom_type_typedef() - return cst, csnt - - @ivi_synchronized - def get_enum_value(self): - r'''get_enum_value - - Returns an enum value - - Note: Splinter is not supported. - - Returns: - a_quantity (int): This is an amount. - - Note: The amount will be between -2^31 and (2^31-1) - - a_turtle (enums.Turtle): Indicates a ninja turtle - - +---+---------------+ - | 0 | Leonardo | - +---+---------------+ - | 1 | Donatello | - +---+---------------+ - | 2 | Raphael | - +---+---------------+ - | 3 | Mich elangelo | - +---+---------------+ - - ''' - a_quantity, a_turtle = self._interpreter.get_enum_value() - return a_quantity, a_turtle - - @ivi_synchronized - def get_cal_date_and_time(self, cal_type): - '''get_cal_date_and_time - - Returns the date and time of the last calibration performed. - - Args: - cal_type (int): Specifies the type of calibration performed (external or self-calibration). - - - Returns: - last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. - - ''' - month, day, year, hour, minute = self._get_cal_date_and_time(cal_type) - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def get_parameter_with_overridden_grpc_name(self, enum_parameter): - r'''get_parameter_with_overridden_grpc_name - - TBD - - Args: - enum_parameter (enums.Turtle): - - - Returns: - original_parameter (int): - - ''' - if type(enum_parameter) is not enums.Turtle: - raise TypeError('Parameter enum_parameter must be of type ' + str(enums.Turtle)) - original_parameter = self._interpreter.get_parameter_with_overridden_grpc_name(enum_parameter) - return original_parameter - - @ivi_synchronized - def import_attribute_configuration_buffer(self, configuration): - r'''import_attribute_configuration_buffer - - Import configuration buffer. - - Args: - configuration (bytes): - - ''' - configuration = _converters.convert_to_bytes(configuration) - self._interpreter.import_attribute_configuration_buffer(configuration) - - @ivi_synchronized - def import_attribute_configuration_buffer_ex(self, configuration): - r'''import_attribute_configuration_buffer_ex - - TBD - - Args: - configuration (list of ViAddr): - - ''' - self._interpreter.import_attribute_configuration_buffer_ex(configuration) - - def _init_with_options(self, resource_name, option_string, id_query=False, reset_device=False): - r'''_init_with_options - - Creates a new IVI instrument driver session. - - Args: - resource_name (str): Caution: This is just some string. - - Contains the **resource_name** of the device to initialize. - - option_string (dict): Some options - - id_query (bool): NI-FAKE is probably not needed. - - +----------------+---+------------------+ - | True (default) | 1 | Perform ID Query | - +----------------+---+------------------+ - | False | 0 | Skip ID Query | - +----------------+---+------------------+ - - reset_device (bool): Specifies whether to reset - - +----------------+---+--------------+ - | True (default) | 1 | Reset Device | - +----------------+---+--------------+ - | False | 0 | Don't Reset | - +----------------+---+--------------+ - - - Returns: - vi (int): Returns a ViSession handle that you use. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) - return vi - - @ivi_synchronized - def _initiate(self): - r'''_initiate - - Initiates a thingie. - ''' - self._interpreter.initiate() - - @ivi_synchronized - def method_using_whole_and_fractional_numbers(self): - r'''method_using_whole_and_fractional_numbers - - TBD - - Returns: - whole_number (int): - - fractional_number (float): - - ''' - whole_number, fractional_number = self._interpreter.method_using_whole_and_fractional_numbers() - return whole_number, fractional_number - - @ivi_synchronized - def method_with_grpc_only_param(self, simple_param): - r'''method_with_grpc_only_param - - TBD - - Args: - simple_param (int): - - ''' - self._interpreter.method_with_grpc_only_param(simple_param) - - @ivi_synchronized - def method_with_proto_only_parameter(self, attribute_value): - r'''method_with_proto_only_parameter - - TBD - - Args: - attribute_value (int): - - ''' - self._interpreter.method_with_proto_only_parameter(attribute_value) - - @ivi_synchronized - def mixed_ivi_dance_and_len_mechanism(self, input_values): - r'''mixed_ivi_dance_and_len_mechanism - - Test method with mixed size mechanisms: one len-sized input array and one IVI-dance output array. - - Args: - input_values (list of float): Input array of doubles using len size mechanism. - - - Returns: - output_array (list of int): Output array using IVI-dance size mechanism. - - ''' - output_array = self._interpreter.mixed_ivi_dance_and_len_mechanism(input_values) - return output_array - - @ivi_synchronized - def multiple_array_types(self, output_array_size, input_array_of_floats, input_array_of_integers=None): - r'''multiple_array_types - - Receives and returns multiple types of arrays. - - Args: - output_array_size (int): Size of the array that will be returned. - - input_array_of_floats (list of float): Array of floats - - input_array_of_integers (list of int): Array of integers. Optional. If passed in then size must match that of inputArrayOfFloats. - - - Returns: - output_array (list of float): Array that will be returned. - - Note: The size must be at least outputArraySize. - - output_array_of_fixed_length (list of float): An array of doubles with fixed size. - - ''' - if input_array_of_integers is not None and len(input_array_of_integers) != len(input_array_of_floats): # case S160 - raise ValueError("Length of input_array_of_integers and input_array_of_floats parameters do not match.") # case S160 - output_array, output_array_of_fixed_length = self._interpreter.multiple_array_types(output_array_size, input_array_of_floats, input_array_of_integers) - return output_array, output_array_of_fixed_length - - @ivi_synchronized - def multiple_arrays_different_size(self, values_array, data_array): - r'''multiple_arrays_different_size - - Test method with multiple arrays that have different size parameters. This tests the length handling mechanism where different array parameters can reference different size parameters. - - Args: - values_array (list of float): Array of double values with its own size parameter. - - data_array (list of int): Array of integer values with a different size parameter. - - ''' - self._interpreter.multiple_arrays_different_size(values_array, data_array) - - @ivi_synchronized - def multiple_arrays_same_size(self, values1, values2, values3, values4): - r'''multiple_arrays_same_size - - Method to test multiple arrays that use the same size - - Args: - values1 (list of float): Array 1 of same size. - - values2 (list of float): Array 2 of same size. - - values3 (list of float): Array 3 of same size. - - values4 (list of float): Array 4 of same size. - - ''' - if values2 is not None and len(values2) != len(values1): # case S160 - raise ValueError("Length of values2 and values1 parameters do not match.") # case S160 - if values3 is not None and len(values3) != len(values1): # case S160 - raise ValueError("Length of values3 and values1 parameters do not match.") # case S160 - if values4 is not None and len(values4) != len(values1): # case S160 - raise ValueError("Length of values4 and values1 parameters do not match.") # case S160 - self._interpreter.multiple_arrays_same_size(values1, values2, values3, values4) - - @ivi_synchronized - def one_input_function(self, a_number): - r'''one_input_function - - This method takes one parameter other than the session. - - Args: - a_number (int): Contains a number - - ''' - self._interpreter.one_input_function(a_number) - - @ivi_synchronized - def parameters_are_multiple_types(self, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): - r'''parameters_are_multiple_types - - Has parameters of multiple types. - - Args: - a_boolean (bool): Contains a boolean. - - an_int32 (int): Contains a 32-bit integer. - - an_int64 (int): Contains a 64-bit integer. - - an_int_enum (enums.Turtle): Indicates a ninja turtle - - +---+---------------+ - | 0 | Leonardo | - +---+---------------+ - | 1 | Donatello | - +---+---------------+ - | 2 | Raphael | - +---+---------------+ - | 3 | Mich elangelo | - +---+---------------+ - - a_float (float): The measured value. - - a_float_enum (enums.FloatEnum): A float enum. - - a_string (str): An IVI dance string. - - ''' - if type(an_int_enum) is not enums.Turtle: - raise TypeError('Parameter an_int_enum must be of type ' + str(enums.Turtle)) - if type(a_float_enum) is not enums.FloatEnum: - raise TypeError('Parameter a_float_enum must be of type ' + str(enums.FloatEnum)) - self._interpreter.parameters_are_multiple_types(a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string) - - @ivi_synchronized - def simple_function(self): - r'''simple_function - - This method takes no parameters other than the session. - ''' - self._interpreter.simple_function() - - @ivi_synchronized - def read(self, maximum_time): - r'''read - - Acquires a single measurement and returns the measured value. - - Args: - maximum_time (hightime.timedelta): Specifies the **maximum_time** allowed in seconds. - - - Returns: - reading (float): The measured value. - - ''' - maximum_time = _converters.convert_timedelta_to_seconds_real64(maximum_time) - reading = self._interpreter.read(maximum_time) - return reading - - @ivi_synchronized - def return_a_number_and_a_string(self): - r'''return_a_number_and_a_string - - Returns a number and a string. - - Note: This method rules! - - Returns: - a_number (int): Contains a number. - - a_string (str): Contains a string. Buffer must be 256 bytes or larger. - - ''' - a_number, a_string = self._interpreter.return_a_number_and_a_string() - return a_number, a_string - - @ivi_synchronized - def return_duration_in_seconds(self): - r'''return_duration_in_seconds - - Returns a hightime.timedelta instance. - - Returns: - timedelta (hightime.timedelta): Duration in seconds. - - ''' - timedelta = self._interpreter.return_duration_in_seconds() - return _converters.convert_seconds_real64_to_timedelta(timedelta) - - @ivi_synchronized - def return_list_of_durations_in_seconds(self, number_of_elements): - r'''return_list_of_durations_in_seconds - - Returns a list of hightime.timedelta instances. - - Args: - number_of_elements (int): Number of elements in output. - - - Returns: - timedeltas (hightime.timedelta): Contains a list of hightime.timedelta instances. - - ''' - timedeltas = self._interpreter.return_list_of_durations_in_seconds(number_of_elements) - return _converters.convert_seconds_real64_to_timedeltas(timedeltas) - - @ivi_synchronized - def return_multiple_types(self, array_size): - r'''return_multiple_types - - Returns multiple types. - - Args: - array_size (int): Number of measurements to acquire. - - - Returns: - a_boolean (bool): Contains a boolean. - - an_int32 (int): Contains a 32-bit integer. - - an_int64 (int): Contains a 64-bit integer. - - an_int_enum (enums.Turtle): Indicates a ninja turtle - - +---+---------------+ - | 0 | Leonardo | - +---+---------------+ - | 1 | Donatello | - +---+---------------+ - | 2 | Raphael | - +---+---------------+ - | 3 | Mich elangelo | - +---+---------------+ - - a_float (float): The measured value. - - a_float_enum (enums.FloatEnum): A float enum. - - an_array (list of float): An array of measurement values. - - Note: The size must be at least arraySize. - - a_string (str): An IVI dance string. - - ''' - a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, an_array, a_string = self._interpreter.return_multiple_types(array_size) - return a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, an_array, a_string - - @ivi_synchronized - def set_custom_type(self, cs): - r'''set_custom_type - - This method takes a custom type. - - Args: - cs (CustomStruct): Set using custom type - - ''' - self._interpreter.set_custom_type(cs) - - @ivi_synchronized - def set_custom_type_array(self, cs): - r'''set_custom_type_array - - This method takes an array of custom types. - - Args: - cs (list of CustomStruct): Set using custom type - - ''' - self._interpreter.set_custom_type_array(cs) - - @ivi_synchronized - def string_valued_enum_input_function_with_defaults(self, a_mobile_os_name=enums.MobileOSNames.ANDROID): - r'''string_valued_enum_input_function_with_defaults - - This method takes one parameter other than the session, which happens to be a string-valued enum and has a default value. - - Args: - a_mobile_os_name (enums.MobileOSNames): Indicates a Mobile OS - - +---------+---------+ - | ANDROID | Android | - +---------+---------+ - | IOS | iOS | - +---------+---------+ - | NONE | None | - +---------+---------+ - - ''' - if type(a_mobile_os_name) is not enums.MobileOSNames: - raise TypeError('Parameter a_mobile_os_name must be of type ' + str(enums.MobileOSNames)) - self._interpreter.string_valued_enum_input_function_with_defaults(a_mobile_os_name) - - @ivi_synchronized - def two_input_function(self, a_number, a_string): - r'''two_input_function - - This method takes two parameters other than the session. - - Args: - a_number (float): Contains a number - - a_string (str): Contains a string - - ''' - self._interpreter.two_input_function(a_number, a_string) - - @ivi_synchronized - def use64_bit_number(self, input): - r'''use64_bit_number - - Returns a number and a string. - - Note: This method rules! - - Args: - input (int): A big number on its way in. - - - Returns: - output (int): A big number on its way out. - - ''' - output = self._interpreter.use64_bit_number(input) - return output - - @ivi_synchronized - def write_waveform(self, waveform): - r'''write_waveform - - Writes waveform to the driver - - Args: - waveform (array.array("d")): Waveform data. - - ''' - self._interpreter.write_waveform(waveform) - - @ivi_synchronized - def write_waveform_numpy(self, waveform): - r'''write_waveform_numpy - - Writes waveform to the driver - - Args: - waveform (numpy.array(dtype=numpy.float64)): Waveform data. - - ''' - import numpy - - if type(waveform) is not numpy.ndarray: - raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) - if numpy.isfortran(waveform) is True: - raise TypeError('waveform must be in C-order') - if waveform.dtype is not numpy.dtype('float64'): - raise TypeError('waveform must be numpy.ndarray of dtype=float64, is ' + str(waveform.dtype)) - if waveform.ndim != 1: - raise TypeError('waveform must be numpy.ndarray of dimension=1, is ' + str(waveform.ndim)) - self._interpreter.write_waveform_numpy(waveform) - - @ivi_synchronized - def write_waveform_numpy_complex128(self, waveform_data_array): - r'''write_waveform_numpy_complex128 - - A method that writes a waveform of numpy complex128 samples. - - Args: - waveform_data_array (numpy.array(dtype=numpy.complex128)): Specifies the array of data to load into the waveform. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('complex128'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex128, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - self._interpreter.write_waveform_numpy_complex128(waveform_data_array) - - @ivi_synchronized - def write_waveform_numpy_complex64(self, waveform_data_array): - r'''write_waveform_numpy_complex64 - - A method that writes a waveform of numpy complex64 samples. - - Args: - waveform_data_array (numpy.array(dtype=numpy.complex64)): Specifies the array of data to load into the waveform. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('complex64'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex64, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - self._interpreter.write_waveform_numpy_complex64(waveform_data_array) - - @ivi_synchronized - def write_waveform_numpy_complex_interleaved_i16(self, waveform_data_array): - r'''write_waveform_numpy_complex_interleaved_i16 - - A method that writes a waveform of numpy complex i16 samples. - - Args: - waveform_data_array (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('int16'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=int16, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - self._interpreter.write_waveform_numpy_complex_interleaved_i16(waveform_data_array) - - def _close(self): - r'''_close - - Closes the specified session and deallocates resources that it reserved. - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Performs a self-test - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Performs a self-test. - - Returns: - self_test_result (int): Contains the value returned from the instrument self-test. Zero indicates success. - - self_test_message (str): This parameter contains the string returned from the instrument self-test. The array must contain at least 256 elements. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/nifake/nifake/unit_tests/_matchers.py b/generated/nifake/nifake/unit_tests/_matchers.py deleted file mode 100644 index f95383417b..0000000000 --- a/generated/nifake/nifake/unit_tests/_matchers.py +++ /dev/null @@ -1,369 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nifake._complextype as _complextype -import nifake._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -def _compare_complex_number_arrays(expected, actual): - for i in range(expected.expected_size): - expected_value = expected.expected_data[i] - actual_value = actual[i] - if expected_value.real != actual_value.real or expected_value.imag != actual_value.imag: - return False - return True - - -class NIComplexNumberPointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexNumber) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexNumberPointerMatcher({self.expected_data})" - - -class NIComplexNumberF32PointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexNumberF32) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexNumberF32PointerMatcher({self.expected_data})" - - -class NIComplexI16PointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexI16) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexI16PointerMatcher({self.expected_data})" - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nifake/nifake/unit_tests/_mock_helper.py b/generated/nifake/nifake/unit_tests/_mock_helper.py deleted file mode 100644 index 894124c2b0..0000000000 --- a/generated/nifake/nifake/unit_tests/_mock_helper.py +++ /dev/null @@ -1,1212 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['Abort'] = {} - self._defaults['Abort']['return'] = 0 - self._defaults['AcceptListOfDurationsInSeconds'] = {} - self._defaults['AcceptListOfDurationsInSeconds']['return'] = 0 - self._defaults['BoolArrayOutputFunction'] = {} - self._defaults['BoolArrayOutputFunction']['return'] = 0 - self._defaults['BoolArrayOutputFunction']['anArray'] = None - self._defaults['ConfigureABC'] = {} - self._defaults['ConfigureABC']['return'] = 0 - self._defaults['CustomNestedStructRoundtrip'] = {} - self._defaults['CustomNestedStructRoundtrip']['return'] = 0 - self._defaults['CustomNestedStructRoundtrip']['nestedCustomTypeOut'] = None - self._defaults['DoubleAllTheNums'] = {} - self._defaults['DoubleAllTheNums']['return'] = 0 - self._defaults['EnumArrayOutputFunction'] = {} - self._defaults['EnumArrayOutputFunction']['return'] = 0 - self._defaults['EnumArrayOutputFunction']['anArray'] = None - self._defaults['EnumInputFunctionWithDefaults'] = {} - self._defaults['EnumInputFunctionWithDefaults']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer'] = {} - self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None - self._defaults['FetchWaveform'] = {} - self._defaults['FetchWaveform']['return'] = 0 - self._defaults['FetchWaveform']['waveformData'] = None - self._defaults['FetchWaveform']['actualNumberOfSamples'] = None - self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter'] = {} - self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] = 0 - self._defaults['FunctionWithIntflagParameter'] = {} - self._defaults['FunctionWithIntflagParameter']['return'] = 0 - self._defaults['FunctionWithRepeatedCapabilityType'] = {} - self._defaults['FunctionWithRepeatedCapabilityType']['return'] = 0 - self._defaults['GetABoolean'] = {} - self._defaults['GetABoolean']['return'] = 0 - self._defaults['GetABoolean']['aBoolean'] = None - self._defaults['GetANumber'] = {} - self._defaults['GetANumber']['return'] = 0 - self._defaults['GetANumber']['aNumber'] = None - self._defaults['GetAStringOfFixedMaximumSize'] = {} - self._defaults['GetAStringOfFixedMaximumSize']['return'] = 0 - self._defaults['GetAStringOfFixedMaximumSize']['aString'] = None - self._defaults['GetAStringUsingPythonCode'] = {} - self._defaults['GetAStringUsingPythonCode']['return'] = 0 - self._defaults['GetAStringUsingPythonCode']['aString'] = None - self._defaults['GetAnIviDanceCharArray'] = {} - self._defaults['GetAnIviDanceCharArray']['return'] = 0 - self._defaults['GetAnIviDanceCharArray']['charArray'] = None - self._defaults['GetAnIviDanceWithATwistString'] = {} - self._defaults['GetAnIviDanceWithATwistString']['return'] = 0 - self._defaults['GetAnIviDanceWithATwistString']['actualSize'] = None - self._defaults['GetAnIviDanceWithATwistString']['aString'] = None - self._defaults['GetArrayForPythonCodeCustomType'] = {} - self._defaults['GetArrayForPythonCodeCustomType']['return'] = 0 - self._defaults['GetArrayForPythonCodeCustomType']['arrayOut'] = None - self._defaults['GetArrayForPythonCodeDouble'] = {} - self._defaults['GetArrayForPythonCodeDouble']['return'] = 0 - self._defaults['GetArrayForPythonCodeDouble']['arrayOut'] = None - self._defaults['GetArraySizeForPythonCode'] = {} - self._defaults['GetArraySizeForPythonCode']['return'] = 0 - self._defaults['GetArraySizeForPythonCode']['sizeOut'] = None - self._defaults['GetArrayUsingIviDance'] = {} - self._defaults['GetArrayUsingIviDance']['return'] = 0 - self._defaults['GetArrayUsingIviDance']['arrayOut'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['attributeValue'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['attributeValue'] = None - self._defaults['GetAttributeViInt64'] = {} - self._defaults['GetAttributeViInt64']['return'] = 0 - self._defaults['GetAttributeViInt64']['attributeValue'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['attributeValue'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['attributeValue'] = None - self._defaults['GetCalDateAndTime'] = {} - self._defaults['GetCalDateAndTime']['return'] = 0 - self._defaults['GetCalDateAndTime']['month'] = None - self._defaults['GetCalDateAndTime']['day'] = None - self._defaults['GetCalDateAndTime']['year'] = None - self._defaults['GetCalDateAndTime']['hour'] = None - self._defaults['GetCalDateAndTime']['minute'] = None - self._defaults['GetCalInterval'] = {} - self._defaults['GetCalInterval']['return'] = 0 - self._defaults['GetCalInterval']['months'] = None - self._defaults['GetChannelNames'] = {} - self._defaults['GetChannelNames']['return'] = 0 - self._defaults['GetChannelNames']['names'] = None - self._defaults['GetCustomType'] = {} - self._defaults['GetCustomType']['return'] = 0 - self._defaults['GetCustomType']['cs'] = None - self._defaults['GetCustomTypeArray'] = {} - self._defaults['GetCustomTypeArray']['return'] = 0 - self._defaults['GetCustomTypeArray']['cs'] = None - self._defaults['GetCustomTypeTypedef'] = {} - self._defaults['GetCustomTypeTypedef']['return'] = 0 - self._defaults['GetCustomTypeTypedef']['cst'] = None - self._defaults['GetCustomTypeTypedef']['csnt'] = None - self._defaults['GetEnumValue'] = {} - self._defaults['GetEnumValue']['return'] = 0 - self._defaults['GetEnumValue']['aQuantity'] = None - self._defaults['GetEnumValue']['aTurtle'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['description'] = None - self._defaults['GetParameterWithOverriddenGrpcName'] = {} - self._defaults['GetParameterWithOverriddenGrpcName']['return'] = 0 - self._defaults['GetParameterWithOverriddenGrpcName']['originalParameter'] = None - self._defaults['ImportAttributeConfigurationBuffer'] = {} - self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ImportAttributeConfigurationBufferEx'] = {} - self._defaults['ImportAttributeConfigurationBufferEx']['return'] = 0 - self._defaults['InitWithOptions'] = {} - self._defaults['InitWithOptions']['return'] = 0 - self._defaults['InitWithOptions']['vi'] = None - self._defaults['Initiate'] = {} - self._defaults['Initiate']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['MethodUsingWholeAndFractionalNumbers'] = {} - self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] = 0 - self._defaults['MethodUsingWholeAndFractionalNumbers']['wholeNumber'] = None - self._defaults['MethodUsingWholeAndFractionalNumbers']['fractionalNumber'] = None - self._defaults['MethodWithGrpcOnlyParam'] = {} - self._defaults['MethodWithGrpcOnlyParam']['return'] = 0 - self._defaults['MethodWithProtoOnlyParameter'] = {} - self._defaults['MethodWithProtoOnlyParameter']['return'] = 0 - self._defaults['MixedIviDanceAndLenMechanism'] = {} - self._defaults['MixedIviDanceAndLenMechanism']['return'] = 0 - self._defaults['MixedIviDanceAndLenMechanism']['outputArray'] = None - self._defaults['MultipleArrayTypes'] = {} - self._defaults['MultipleArrayTypes']['return'] = 0 - self._defaults['MultipleArrayTypes']['outputArray'] = None - self._defaults['MultipleArrayTypes']['outputArrayOfFixedLength'] = None - self._defaults['MultipleArraysDifferentSize'] = {} - self._defaults['MultipleArraysDifferentSize']['return'] = 0 - self._defaults['MultipleArraysSameSize'] = {} - self._defaults['MultipleArraysSameSize']['return'] = 0 - self._defaults['OneInputFunction'] = {} - self._defaults['OneInputFunction']['return'] = 0 - self._defaults['ParametersAreMultipleTypes'] = {} - self._defaults['ParametersAreMultipleTypes']['return'] = 0 - self._defaults['PoorlyNamedSimpleFunction'] = {} - self._defaults['PoorlyNamedSimpleFunction']['return'] = 0 - self._defaults['Read'] = {} - self._defaults['Read']['return'] = 0 - self._defaults['Read']['reading'] = None - self._defaults['ReadFromChannel'] = {} - self._defaults['ReadFromChannel']['return'] = 0 - self._defaults['ReadFromChannel']['reading'] = None - self._defaults['ReturnANumberAndAString'] = {} - self._defaults['ReturnANumberAndAString']['return'] = 0 - self._defaults['ReturnANumberAndAString']['aNumber'] = None - self._defaults['ReturnANumberAndAString']['aString'] = None - self._defaults['ReturnDurationInSeconds'] = {} - self._defaults['ReturnDurationInSeconds']['return'] = 0 - self._defaults['ReturnDurationInSeconds']['timedelta'] = None - self._defaults['ReturnListOfDurationsInSeconds'] = {} - self._defaults['ReturnListOfDurationsInSeconds']['return'] = 0 - self._defaults['ReturnListOfDurationsInSeconds']['timedeltas'] = None - self._defaults['ReturnMultipleTypes'] = {} - self._defaults['ReturnMultipleTypes']['return'] = 0 - self._defaults['ReturnMultipleTypes']['aBoolean'] = None - self._defaults['ReturnMultipleTypes']['anInt32'] = None - self._defaults['ReturnMultipleTypes']['anInt64'] = None - self._defaults['ReturnMultipleTypes']['anIntEnum'] = None - self._defaults['ReturnMultipleTypes']['aFloat'] = None - self._defaults['ReturnMultipleTypes']['aFloatEnum'] = None - self._defaults['ReturnMultipleTypes']['anArray'] = None - self._defaults['ReturnMultipleTypes']['aString'] = None - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViInt64'] = {} - self._defaults['SetAttributeViInt64']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetCustomType'] = {} - self._defaults['SetCustomType']['return'] = 0 - self._defaults['SetCustomTypeArray'] = {} - self._defaults['SetCustomTypeArray']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['StringValuedEnumInputFunctionWithDefaults'] = {} - self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] = 0 - self._defaults['TwoInputFunction'] = {} - self._defaults['TwoInputFunction']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['Use64BitNumber'] = {} - self._defaults['Use64BitNumber']['return'] = 0 - self._defaults['Use64BitNumber']['output'] = None - self._defaults['WriteWaveform'] = {} - self._defaults['WriteWaveform']['return'] = 0 - self._defaults['WriteWaveformNumpyComplex128'] = {} - self._defaults['WriteWaveformNumpyComplex128']['return'] = 0 - self._defaults['WriteWaveformNumpyComplex64'] = {} - self._defaults['WriteWaveformNumpyComplex64']['return'] = 0 - self._defaults['WriteWaveformNumpyComplexInterleavedI16'] = {} - self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] = 0 - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niFake_Abort(self, vi): # noqa: N802 - if self._defaults['Abort']['return'] != 0: - return self._defaults['Abort']['return'] - return self._defaults['Abort']['return'] - - def niFake_AcceptListOfDurationsInSeconds(self, vi, count, delays): # noqa: N802 - if self._defaults['AcceptListOfDurationsInSeconds']['return'] != 0: - return self._defaults['AcceptListOfDurationsInSeconds']['return'] - return self._defaults['AcceptListOfDurationsInSeconds']['return'] - - def niFake_BoolArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 - if self._defaults['BoolArrayOutputFunction']['return'] != 0: - return self._defaults['BoolArrayOutputFunction']['return'] - # an_array - if self._defaults['BoolArrayOutputFunction']['anArray'] is None: - raise MockFunctionCallError("niFake_BoolArrayOutputFunction", param='anArray') - test_value = self._defaults['BoolArrayOutputFunction']['anArray'] - try: - an_array_ref = an_array.contents - except AttributeError: - an_array_ref = an_array - assert len(an_array_ref) >= len(test_value) - for i in range(len(test_value)): - an_array_ref[i] = test_value[i] - return self._defaults['BoolArrayOutputFunction']['return'] - - def niFake_ConfigureABC(self, vi): # noqa: N802 - if self._defaults['ConfigureABC']['return'] != 0: - return self._defaults['ConfigureABC']['return'] - return self._defaults['ConfigureABC']['return'] - - def niFake_CustomNestedStructRoundtrip(self, nested_custom_type_in, nested_custom_type_out): # noqa: N802 - if self._defaults['CustomNestedStructRoundtrip']['return'] != 0: - return self._defaults['CustomNestedStructRoundtrip']['return'] - # nested_custom_type_out - if self._defaults['CustomNestedStructRoundtrip']['nestedCustomTypeOut'] is None: - raise MockFunctionCallError("niFake_CustomNestedStructRoundtrip", param='nestedCustomTypeOut') - for field in self._defaults['CustomNestedStructRoundtrip']['nested_custom_type_out']._fields_: - field_name = field[0] - setattr(nested_custom_type_out.contents, field_name, getattr(self._defaults['CustomNestedStructRoundtrip']['nested_custom_type_out'], field_name)) - return self._defaults['CustomNestedStructRoundtrip']['return'] - - def niFake_DoubleAllTheNums(self, vi, number_count, numbers): # noqa: N802 - if self._defaults['DoubleAllTheNums']['return'] != 0: - return self._defaults['DoubleAllTheNums']['return'] - return self._defaults['DoubleAllTheNums']['return'] - - def niFake_EnumArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 - if self._defaults['EnumArrayOutputFunction']['return'] != 0: - return self._defaults['EnumArrayOutputFunction']['return'] - # an_array - if self._defaults['EnumArrayOutputFunction']['anArray'] is None: - raise MockFunctionCallError("niFake_EnumArrayOutputFunction", param='anArray') - test_value = self._defaults['EnumArrayOutputFunction']['anArray'] - try: - an_array_ref = an_array.contents - except AttributeError: - an_array_ref = an_array - assert len(an_array_ref) >= len(test_value) - for i in range(len(test_value)): - an_array_ref[i] = test_value[i] - return self._defaults['EnumArrayOutputFunction']['return'] - - def niFake_EnumInputFunctionWithDefaults(self, vi, a_turtle): # noqa: N802 - if self._defaults['EnumInputFunctionWithDefaults']['return'] != 0: - return self._defaults['EnumInputFunctionWithDefaults']['return'] - return self._defaults['EnumInputFunctionWithDefaults']['return'] - - def niFake_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - # configuration - if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: - raise MockFunctionCallError("niFake_ExportAttributeConfigurationBuffer", param='configuration') - if size_in_bytes.value == 0: - return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) - try: - configuration_ref = configuration.contents - except AttributeError: - configuration_ref = configuration - for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): - configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - - def niFake_FetchWaveform(self, vi, number_of_samples, waveform_data, actual_number_of_samples): # noqa: N802 - if self._defaults['FetchWaveform']['return'] != 0: - return self._defaults['FetchWaveform']['return'] - # waveform_data - if self._defaults['FetchWaveform']['waveformData'] is None: - raise MockFunctionCallError("niFake_FetchWaveform", param='waveformData') - test_value = self._defaults['FetchWaveform']['waveformData'] - try: - waveform_data_ref = waveform_data.contents - except AttributeError: - waveform_data_ref = waveform_data - assert len(waveform_data_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_data_ref[i] = test_value[i] - # actual_number_of_samples - if self._defaults['FetchWaveform']['actualNumberOfSamples'] is None: - raise MockFunctionCallError("niFake_FetchWaveform", param='actualNumberOfSamples') - if actual_number_of_samples is not None: - actual_number_of_samples.contents.value = self._defaults['FetchWaveform']['actualNumberOfSamples'] - return self._defaults['FetchWaveform']['return'] - - def niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(self, vi, multidimensional_array): # noqa: N802 - if self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] != 0: - return self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] - return self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] - - def niFake_FunctionWithIntflagParameter(self, vi, flag): # noqa: N802 - if self._defaults['FunctionWithIntflagParameter']['return'] != 0: - return self._defaults['FunctionWithIntflagParameter']['return'] - return self._defaults['FunctionWithIntflagParameter']['return'] - - def niFake_FunctionWithRepeatedCapabilityType(self, vi, site_list): # noqa: N802 - if self._defaults['FunctionWithRepeatedCapabilityType']['return'] != 0: - return self._defaults['FunctionWithRepeatedCapabilityType']['return'] - return self._defaults['FunctionWithRepeatedCapabilityType']['return'] - - def niFake_GetABoolean(self, vi, a_boolean): # noqa: N802 - if self._defaults['GetABoolean']['return'] != 0: - return self._defaults['GetABoolean']['return'] - # a_boolean - if self._defaults['GetABoolean']['aBoolean'] is None: - raise MockFunctionCallError("niFake_GetABoolean", param='aBoolean') - if a_boolean is not None: - a_boolean.contents.value = self._defaults['GetABoolean']['aBoolean'] - return self._defaults['GetABoolean']['return'] - - def niFake_GetANumber(self, vi, a_number): # noqa: N802 - if self._defaults['GetANumber']['return'] != 0: - return self._defaults['GetANumber']['return'] - # a_number - if self._defaults['GetANumber']['aNumber'] is None: - raise MockFunctionCallError("niFake_GetANumber", param='aNumber') - if a_number is not None: - a_number.contents.value = self._defaults['GetANumber']['aNumber'] - return self._defaults['GetANumber']['return'] - - def niFake_GetAStringOfFixedMaximumSize(self, vi, a_string): # noqa: N802 - if self._defaults['GetAStringOfFixedMaximumSize']['return'] != 0: - return self._defaults['GetAStringOfFixedMaximumSize']['return'] - # a_string - if self._defaults['GetAStringOfFixedMaximumSize']['aString'] is None: - raise MockFunctionCallError("niFake_GetAStringOfFixedMaximumSize", param='aString') - test_value = self._defaults['GetAStringOfFixedMaximumSize']['aString'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(a_string) >= len(test_value) - for i in range(len(test_value)): - a_string[i] = test_value[i] - return self._defaults['GetAStringOfFixedMaximumSize']['return'] - - def niFake_GetAStringUsingPythonCode(self, vi, a_number, a_string): # noqa: N802 - if self._defaults['GetAStringUsingPythonCode']['return'] != 0: - return self._defaults['GetAStringUsingPythonCode']['return'] - # a_string - if self._defaults['GetAStringUsingPythonCode']['aString'] is None: - raise MockFunctionCallError("niFake_GetAStringUsingPythonCode", param='aString') - test_value = self._defaults['GetAStringUsingPythonCode']['aString'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(a_string) >= len(test_value) - for i in range(len(test_value)): - a_string[i] = test_value[i] - return self._defaults['GetAStringUsingPythonCode']['return'] - - def niFake_GetAnIviDanceCharArray(self, vi, buffer_size, char_array): # noqa: N802 - if self._defaults['GetAnIviDanceCharArray']['return'] != 0: - return self._defaults['GetAnIviDanceCharArray']['return'] - # char_array - if self._defaults['GetAnIviDanceCharArray']['charArray'] is None: - raise MockFunctionCallError("niFake_GetAnIviDanceCharArray", param='charArray') - if buffer_size.value == 0: - return len(self._defaults['GetAnIviDanceCharArray']['charArray']) - char_array.value = self._defaults['GetAnIviDanceCharArray']['charArray'].encode('ascii') - return self._defaults['GetAnIviDanceCharArray']['return'] - - def niFake_GetAnIviDanceWithATwistString(self, vi, buffer_size, a_string, actual_size): # noqa: N802 - if self._defaults['GetAnIviDanceWithATwistString']['return'] != 0: - return self._defaults['GetAnIviDanceWithATwistString']['return'] - # actual_size - if self._defaults['GetAnIviDanceWithATwistString']['actualSize'] is None: - raise MockFunctionCallError("niFake_GetAnIviDanceWithATwistString", param='actualSize') - if actual_size is not None: - actual_size.contents.value = self._defaults['GetAnIviDanceWithATwistString']['actualSize'] - # a_string - if self._defaults['GetAnIviDanceWithATwistString']['aString'] is None: - raise MockFunctionCallError("niFake_GetAnIviDanceWithATwistString", param='aString') - if buffer_size.value == 0: - return len(self._defaults['GetAnIviDanceWithATwistString']['aString']) - a_string.value = self._defaults['GetAnIviDanceWithATwistString']['aString'].encode('ascii') - return self._defaults['GetAnIviDanceWithATwistString']['return'] - - def niFake_GetArrayForPythonCodeCustomType(self, vi, number_of_elements, array_out): # noqa: N802 - if self._defaults['GetArrayForPythonCodeCustomType']['return'] != 0: - return self._defaults['GetArrayForPythonCodeCustomType']['return'] - # array_out - if self._defaults['GetArrayForPythonCodeCustomType']['arrayOut'] is None: - raise MockFunctionCallError("niFake_GetArrayForPythonCodeCustomType", param='arrayOut') - test_value = self._defaults['GetArrayForPythonCodeCustomType']['arrayOut'] - try: - array_out_ref = array_out.contents - except AttributeError: - array_out_ref = array_out - assert len(array_out_ref) >= len(test_value) - for i in range(len(test_value)): - array_out_ref[i] = test_value[i] - return self._defaults['GetArrayForPythonCodeCustomType']['return'] - - def niFake_GetArrayForPythonCodeDouble(self, vi, number_of_elements, array_out): # noqa: N802 - if self._defaults['GetArrayForPythonCodeDouble']['return'] != 0: - return self._defaults['GetArrayForPythonCodeDouble']['return'] - # array_out - if self._defaults['GetArrayForPythonCodeDouble']['arrayOut'] is None: - raise MockFunctionCallError("niFake_GetArrayForPythonCodeDouble", param='arrayOut') - test_value = self._defaults['GetArrayForPythonCodeDouble']['arrayOut'] - try: - array_out_ref = array_out.contents - except AttributeError: - array_out_ref = array_out - assert len(array_out_ref) >= len(test_value) - for i in range(len(test_value)): - array_out_ref[i] = test_value[i] - return self._defaults['GetArrayForPythonCodeDouble']['return'] - - def niFake_GetArraySizeForPythonCode(self, vi, size_out): # noqa: N802 - if self._defaults['GetArraySizeForPythonCode']['return'] != 0: - return self._defaults['GetArraySizeForPythonCode']['return'] - # size_out - if self._defaults['GetArraySizeForPythonCode']['sizeOut'] is None: - raise MockFunctionCallError("niFake_GetArraySizeForPythonCode", param='sizeOut') - if size_out is not None: - size_out.contents.value = self._defaults['GetArraySizeForPythonCode']['sizeOut'] - return self._defaults['GetArraySizeForPythonCode']['return'] - - def niFake_GetArrayUsingIviDance(self, vi, array_size, array_out): # noqa: N802 - if self._defaults['GetArrayUsingIviDance']['return'] != 0: - return self._defaults['GetArrayUsingIviDance']['return'] - # array_out - if self._defaults['GetArrayUsingIviDance']['arrayOut'] is None: - raise MockFunctionCallError("niFake_GetArrayUsingIviDance", param='arrayOut') - if array_size.value == 0: - return len(self._defaults['GetArrayUsingIviDance']['arrayOut']) - try: - array_out_ref = array_out.contents - except AttributeError: - array_out_ref = array_out - for i in range(len(self._defaults['GetArrayUsingIviDance']['arrayOut'])): - array_out_ref[i] = self._defaults['GetArrayUsingIviDance']['arrayOut'][i] - return self._defaults['GetArrayUsingIviDance']['return'] - - def niFake_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # attribute_value - if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: - raise MockFunctionCallError("niFake_GetAttributeViBoolean", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niFake_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # attribute_value - if self._defaults['GetAttributeViInt32']['attributeValue'] is None: - raise MockFunctionCallError("niFake_GetAttributeViInt32", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] - return self._defaults['GetAttributeViInt32']['return'] - - def niFake_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt64']['return'] != 0: - return self._defaults['GetAttributeViInt64']['return'] - # attribute_value - if self._defaults['GetAttributeViInt64']['attributeValue'] is None: - raise MockFunctionCallError("niFake_GetAttributeViInt64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt64']['attributeValue'] - return self._defaults['GetAttributeViInt64']['return'] - - def niFake_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # attribute_value - if self._defaults['GetAttributeViReal64']['attributeValue'] is None: - raise MockFunctionCallError("niFake_GetAttributeViReal64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] - return self._defaults['GetAttributeViReal64']['return'] - - def niFake_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # attribute_value - if self._defaults['GetAttributeViString']['attributeValue'] is None: - raise MockFunctionCallError("niFake_GetAttributeViString", param='attributeValue') - if buffer_size.value == 0: - return len(self._defaults['GetAttributeViString']['attributeValue']) - attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niFake_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 - if self._defaults['GetCalDateAndTime']['return'] != 0: - return self._defaults['GetCalDateAndTime']['return'] - # month - if self._defaults['GetCalDateAndTime']['month'] is None: - raise MockFunctionCallError("niFake_GetCalDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetCalDateAndTime']['month'] - # day - if self._defaults['GetCalDateAndTime']['day'] is None: - raise MockFunctionCallError("niFake_GetCalDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetCalDateAndTime']['day'] - # year - if self._defaults['GetCalDateAndTime']['year'] is None: - raise MockFunctionCallError("niFake_GetCalDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetCalDateAndTime']['year'] - # hour - if self._defaults['GetCalDateAndTime']['hour'] is None: - raise MockFunctionCallError("niFake_GetCalDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetCalDateAndTime']['hour'] - # minute - if self._defaults['GetCalDateAndTime']['minute'] is None: - raise MockFunctionCallError("niFake_GetCalDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetCalDateAndTime']['minute'] - return self._defaults['GetCalDateAndTime']['return'] - - def niFake_GetCalInterval(self, vi, months): # noqa: N802 - if self._defaults['GetCalInterval']['return'] != 0: - return self._defaults['GetCalInterval']['return'] - # months - if self._defaults['GetCalInterval']['months'] is None: - raise MockFunctionCallError("niFake_GetCalInterval", param='months') - if months is not None: - months.contents.value = self._defaults['GetCalInterval']['months'] - return self._defaults['GetCalInterval']['return'] - - def niFake_GetChannelNames(self, vi, indices, name_size, names): # noqa: N802 - if self._defaults['GetChannelNames']['return'] != 0: - return self._defaults['GetChannelNames']['return'] - # names - if self._defaults['GetChannelNames']['names'] is None: - raise MockFunctionCallError("niFake_GetChannelNames", param='names') - if name_size.value == 0: - return len(self._defaults['GetChannelNames']['names']) - names.value = self._defaults['GetChannelNames']['names'].encode('ascii') - return self._defaults['GetChannelNames']['return'] - - def niFake_GetCustomType(self, vi, cs): # noqa: N802 - if self._defaults['GetCustomType']['return'] != 0: - return self._defaults['GetCustomType']['return'] - # cs - if self._defaults['GetCustomType']['cs'] is None: - raise MockFunctionCallError("niFake_GetCustomType", param='cs') - for field in self._defaults['GetCustomType']['cs']._fields_: - field_name = field[0] - setattr(cs.contents, field_name, getattr(self._defaults['GetCustomType']['cs'], field_name)) - return self._defaults['GetCustomType']['return'] - - def niFake_GetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 - if self._defaults['GetCustomTypeArray']['return'] != 0: - return self._defaults['GetCustomTypeArray']['return'] - # cs - if self._defaults['GetCustomTypeArray']['cs'] is None: - raise MockFunctionCallError("niFake_GetCustomTypeArray", param='cs') - test_value = self._defaults['GetCustomTypeArray']['cs'] - try: - cs_ref = cs.contents - except AttributeError: - cs_ref = cs - assert len(cs_ref) >= len(test_value) - for i in range(len(test_value)): - cs_ref[i] = test_value[i] - return self._defaults['GetCustomTypeArray']['return'] - - def niFake_GetCustomTypeTypedef(self, vi, cst, csnt): # noqa: N802 - if self._defaults['GetCustomTypeTypedef']['return'] != 0: - return self._defaults['GetCustomTypeTypedef']['return'] - # cst - if self._defaults['GetCustomTypeTypedef']['cst'] is None: - raise MockFunctionCallError("niFake_GetCustomTypeTypedef", param='cst') - for field in self._defaults['GetCustomTypeTypedef']['cst']._fields_: - field_name = field[0] - setattr(cst.contents, field_name, getattr(self._defaults['GetCustomTypeTypedef']['cst'], field_name)) - # csnt - if self._defaults['GetCustomTypeTypedef']['csnt'] is None: - raise MockFunctionCallError("niFake_GetCustomTypeTypedef", param='csnt') - for field in self._defaults['GetCustomTypeTypedef']['csnt']._fields_: - field_name = field[0] - setattr(csnt.contents, field_name, getattr(self._defaults['GetCustomTypeTypedef']['csnt'], field_name)) - return self._defaults['GetCustomTypeTypedef']['return'] - - def niFake_GetEnumValue(self, vi, a_quantity, a_turtle): # noqa: N802 - if self._defaults['GetEnumValue']['return'] != 0: - return self._defaults['GetEnumValue']['return'] - # a_quantity - if self._defaults['GetEnumValue']['aQuantity'] is None: - raise MockFunctionCallError("niFake_GetEnumValue", param='aQuantity') - if a_quantity is not None: - a_quantity.contents.value = self._defaults['GetEnumValue']['aQuantity'] - # a_turtle - if self._defaults['GetEnumValue']['aTurtle'] is None: - raise MockFunctionCallError("niFake_GetEnumValue", param='aTurtle') - if a_turtle is not None: - a_turtle.contents.value = self._defaults['GetEnumValue']['aTurtle'] - return self._defaults['GetEnumValue']['return'] - - def niFake_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niFake_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # description - if self._defaults['GetError']['description'] is None: - raise MockFunctionCallError("niFake_GetError", param='description') - if buffer_size.value == 0: - return len(self._defaults['GetError']['description']) - description.value = self._defaults['GetError']['description'].encode('ascii') - return self._defaults['GetError']['return'] - - def niFake_GetParameterWithOverriddenGrpcName(self, vi, original_parameter, enum_parameter): # noqa: N802 - if self._defaults['GetParameterWithOverriddenGrpcName']['return'] != 0: - return self._defaults['GetParameterWithOverriddenGrpcName']['return'] - # original_parameter - if self._defaults['GetParameterWithOverriddenGrpcName']['originalParameter'] is None: - raise MockFunctionCallError("niFake_GetParameterWithOverriddenGrpcName", param='originalParameter') - if original_parameter is not None: - original_parameter.contents.value = self._defaults['GetParameterWithOverriddenGrpcName']['originalParameter'] - return self._defaults['GetParameterWithOverriddenGrpcName']['return'] - - def niFake_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - - def niFake_ImportAttributeConfigurationBufferEx(self, vi, size, configuration): # noqa: N802 - if self._defaults['ImportAttributeConfigurationBufferEx']['return'] != 0: - return self._defaults['ImportAttributeConfigurationBufferEx']['return'] - return self._defaults['ImportAttributeConfigurationBufferEx']['return'] - - def niFake_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 - if self._defaults['InitWithOptions']['return'] != 0: - return self._defaults['InitWithOptions']['return'] - # vi - if self._defaults['InitWithOptions']['vi'] is None: - raise MockFunctionCallError("niFake_InitWithOptions", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitWithOptions']['vi'] - return self._defaults['InitWithOptions']['return'] - - def niFake_Initiate(self, vi): # noqa: N802 - if self._defaults['Initiate']['return'] != 0: - return self._defaults['Initiate']['return'] - return self._defaults['Initiate']['return'] - - def niFake_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niFake_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niFake_MethodUsingWholeAndFractionalNumbers(self, whole_number, fractional_number): # noqa: N802 - if self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] != 0: - return self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] - # whole_number - if self._defaults['MethodUsingWholeAndFractionalNumbers']['wholeNumber'] is None: - raise MockFunctionCallError("niFake_MethodUsingWholeAndFractionalNumbers", param='wholeNumber') - if whole_number is not None: - whole_number.contents.value = self._defaults['MethodUsingWholeAndFractionalNumbers']['wholeNumber'] - # fractional_number - if self._defaults['MethodUsingWholeAndFractionalNumbers']['fractionalNumber'] is None: - raise MockFunctionCallError("niFake_MethodUsingWholeAndFractionalNumbers", param='fractionalNumber') - if fractional_number is not None: - fractional_number.contents.value = self._defaults['MethodUsingWholeAndFractionalNumbers']['fractionalNumber'] - return self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] - - def niFake_MethodWithGrpcOnlyParam(self, simple_param): # noqa: N802 - if self._defaults['MethodWithGrpcOnlyParam']['return'] != 0: - return self._defaults['MethodWithGrpcOnlyParam']['return'] - return self._defaults['MethodWithGrpcOnlyParam']['return'] - - def niFake_MethodWithProtoOnlyParameter(self, attribute_value): # noqa: N802 - if self._defaults['MethodWithProtoOnlyParameter']['return'] != 0: - return self._defaults['MethodWithProtoOnlyParameter']['return'] - return self._defaults['MethodWithProtoOnlyParameter']['return'] - - def niFake_MixedIviDanceAndLenMechanism(self, vi, input_values, input_values_size, output_size, output_array): # noqa: N802 - if self._defaults['MixedIviDanceAndLenMechanism']['return'] != 0: - return self._defaults['MixedIviDanceAndLenMechanism']['return'] - # output_array - if self._defaults['MixedIviDanceAndLenMechanism']['outputArray'] is None: - raise MockFunctionCallError("niFake_MixedIviDanceAndLenMechanism", param='outputArray') - if output_size.value == 0: - return len(self._defaults['MixedIviDanceAndLenMechanism']['outputArray']) - try: - output_array_ref = output_array.contents - except AttributeError: - output_array_ref = output_array - for i in range(len(self._defaults['MixedIviDanceAndLenMechanism']['outputArray'])): - output_array_ref[i] = self._defaults['MixedIviDanceAndLenMechanism']['outputArray'][i] - return self._defaults['MixedIviDanceAndLenMechanism']['return'] - - def niFake_MultipleArrayTypes(self, vi, output_array_size, output_array, output_array_of_fixed_length, input_array_sizes, input_array_of_floats, input_array_of_integers): # noqa: N802 - if self._defaults['MultipleArrayTypes']['return'] != 0: - return self._defaults['MultipleArrayTypes']['return'] - # output_array - if self._defaults['MultipleArrayTypes']['outputArray'] is None: - raise MockFunctionCallError("niFake_MultipleArrayTypes", param='outputArray') - test_value = self._defaults['MultipleArrayTypes']['outputArray'] - try: - output_array_ref = output_array.contents - except AttributeError: - output_array_ref = output_array - assert len(output_array_ref) >= len(test_value) - for i in range(len(test_value)): - output_array_ref[i] = test_value[i] - # output_array_of_fixed_length - if self._defaults['MultipleArrayTypes']['outputArrayOfFixedLength'] is None: - raise MockFunctionCallError("niFake_MultipleArrayTypes", param='outputArrayOfFixedLength') - test_value = self._defaults['MultipleArrayTypes']['outputArrayOfFixedLength'] - try: - output_array_of_fixed_length_ref = output_array_of_fixed_length.contents - except AttributeError: - output_array_of_fixed_length_ref = output_array_of_fixed_length - assert len(output_array_of_fixed_length_ref) >= len(test_value) - for i in range(len(test_value)): - output_array_of_fixed_length_ref[i] = test_value[i] - return self._defaults['MultipleArrayTypes']['return'] - - def niFake_MultipleArraysDifferentSize(self, vi, values_array, values_array_size, data_array, data_array_size): # noqa: N802 - if self._defaults['MultipleArraysDifferentSize']['return'] != 0: - return self._defaults['MultipleArraysDifferentSize']['return'] - return self._defaults['MultipleArraysDifferentSize']['return'] - - def niFake_MultipleArraysSameSize(self, vi, values1, values2, values3, values4, size): # noqa: N802 - if self._defaults['MultipleArraysSameSize']['return'] != 0: - return self._defaults['MultipleArraysSameSize']['return'] - return self._defaults['MultipleArraysSameSize']['return'] - - def niFake_OneInputFunction(self, vi, a_number): # noqa: N802 - if self._defaults['OneInputFunction']['return'] != 0: - return self._defaults['OneInputFunction']['return'] - return self._defaults['OneInputFunction']['return'] - - def niFake_ParametersAreMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 - if self._defaults['ParametersAreMultipleTypes']['return'] != 0: - return self._defaults['ParametersAreMultipleTypes']['return'] - return self._defaults['ParametersAreMultipleTypes']['return'] - - def niFake_PoorlyNamedSimpleFunction(self, vi): # noqa: N802 - if self._defaults['PoorlyNamedSimpleFunction']['return'] != 0: - return self._defaults['PoorlyNamedSimpleFunction']['return'] - return self._defaults['PoorlyNamedSimpleFunction']['return'] - - def niFake_Read(self, vi, maximum_time, reading): # noqa: N802 - if self._defaults['Read']['return'] != 0: - return self._defaults['Read']['return'] - # reading - if self._defaults['Read']['reading'] is None: - raise MockFunctionCallError("niFake_Read", param='reading') - if reading is not None: - reading.contents.value = self._defaults['Read']['reading'] - return self._defaults['Read']['return'] - - def niFake_ReadFromChannel(self, vi, channel_name, maximum_time, reading): # noqa: N802 - if self._defaults['ReadFromChannel']['return'] != 0: - return self._defaults['ReadFromChannel']['return'] - # reading - if self._defaults['ReadFromChannel']['reading'] is None: - raise MockFunctionCallError("niFake_ReadFromChannel", param='reading') - if reading is not None: - reading.contents.value = self._defaults['ReadFromChannel']['reading'] - return self._defaults['ReadFromChannel']['return'] - - def niFake_ReturnANumberAndAString(self, vi, a_number, a_string): # noqa: N802 - if self._defaults['ReturnANumberAndAString']['return'] != 0: - return self._defaults['ReturnANumberAndAString']['return'] - # a_number - if self._defaults['ReturnANumberAndAString']['aNumber'] is None: - raise MockFunctionCallError("niFake_ReturnANumberAndAString", param='aNumber') - if a_number is not None: - a_number.contents.value = self._defaults['ReturnANumberAndAString']['aNumber'] - # a_string - if self._defaults['ReturnANumberAndAString']['aString'] is None: - raise MockFunctionCallError("niFake_ReturnANumberAndAString", param='aString') - test_value = self._defaults['ReturnANumberAndAString']['aString'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(a_string) >= len(test_value) - for i in range(len(test_value)): - a_string[i] = test_value[i] - return self._defaults['ReturnANumberAndAString']['return'] - - def niFake_ReturnDurationInSeconds(self, vi, timedelta): # noqa: N802 - if self._defaults['ReturnDurationInSeconds']['return'] != 0: - return self._defaults['ReturnDurationInSeconds']['return'] - # timedelta - if self._defaults['ReturnDurationInSeconds']['timedelta'] is None: - raise MockFunctionCallError("niFake_ReturnDurationInSeconds", param='timedelta') - if timedelta is not None: - timedelta.contents.value = self._defaults['ReturnDurationInSeconds']['timedelta'] - return self._defaults['ReturnDurationInSeconds']['return'] - - def niFake_ReturnListOfDurationsInSeconds(self, vi, number_of_elements, timedeltas): # noqa: N802 - if self._defaults['ReturnListOfDurationsInSeconds']['return'] != 0: - return self._defaults['ReturnListOfDurationsInSeconds']['return'] - # timedeltas - if self._defaults['ReturnListOfDurationsInSeconds']['timedeltas'] is None: - raise MockFunctionCallError("niFake_ReturnListOfDurationsInSeconds", param='timedeltas') - test_value = self._defaults['ReturnListOfDurationsInSeconds']['timedeltas'] - try: - timedeltas_ref = timedeltas.contents - except AttributeError: - timedeltas_ref = timedeltas - assert len(timedeltas_ref) >= len(test_value) - for i in range(len(test_value)): - timedeltas_ref[i] = test_value[i] - return self._defaults['ReturnListOfDurationsInSeconds']['return'] - - def niFake_ReturnMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, array_size, an_array, string_size, a_string): # noqa: N802 - if self._defaults['ReturnMultipleTypes']['return'] != 0: - return self._defaults['ReturnMultipleTypes']['return'] - # a_boolean - if self._defaults['ReturnMultipleTypes']['aBoolean'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aBoolean') - if a_boolean is not None: - a_boolean.contents.value = self._defaults['ReturnMultipleTypes']['aBoolean'] - # an_int32 - if self._defaults['ReturnMultipleTypes']['anInt32'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anInt32') - if an_int32 is not None: - an_int32.contents.value = self._defaults['ReturnMultipleTypes']['anInt32'] - # an_int64 - if self._defaults['ReturnMultipleTypes']['anInt64'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anInt64') - if an_int64 is not None: - an_int64.contents.value = self._defaults['ReturnMultipleTypes']['anInt64'] - # an_int_enum - if self._defaults['ReturnMultipleTypes']['anIntEnum'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anIntEnum') - if an_int_enum is not None: - an_int_enum.contents.value = self._defaults['ReturnMultipleTypes']['anIntEnum'] - # a_float - if self._defaults['ReturnMultipleTypes']['aFloat'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aFloat') - if a_float is not None: - a_float.contents.value = self._defaults['ReturnMultipleTypes']['aFloat'] - # a_float_enum - if self._defaults['ReturnMultipleTypes']['aFloatEnum'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aFloatEnum') - if a_float_enum is not None: - a_float_enum.contents.value = self._defaults['ReturnMultipleTypes']['aFloatEnum'] - # an_array - if self._defaults['ReturnMultipleTypes']['anArray'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anArray') - test_value = self._defaults['ReturnMultipleTypes']['anArray'] - try: - an_array_ref = an_array.contents - except AttributeError: - an_array_ref = an_array - assert len(an_array_ref) >= len(test_value) - for i in range(len(test_value)): - an_array_ref[i] = test_value[i] - # a_string - if self._defaults['ReturnMultipleTypes']['aString'] is None: - raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aString') - if string_size.value == 0: - return len(self._defaults['ReturnMultipleTypes']['aString']) - a_string.value = self._defaults['ReturnMultipleTypes']['aString'].encode('ascii') - return self._defaults['ReturnMultipleTypes']['return'] - - def niFake_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niFake_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niFake_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt64']['return'] != 0: - return self._defaults['SetAttributeViInt64']['return'] - return self._defaults['SetAttributeViInt64']['return'] - - def niFake_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niFake_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niFake_SetCustomType(self, vi, cs): # noqa: N802 - if self._defaults['SetCustomType']['return'] != 0: - return self._defaults['SetCustomType']['return'] - return self._defaults['SetCustomType']['return'] - - def niFake_SetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 - if self._defaults['SetCustomTypeArray']['return'] != 0: - return self._defaults['SetCustomTypeArray']['return'] - return self._defaults['SetCustomTypeArray']['return'] - - def niFake_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niFake_StringValuedEnumInputFunctionWithDefaults(self, vi, a_mobile_os_name): # noqa: N802 - if self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] != 0: - return self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] - return self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] - - def niFake_TwoInputFunction(self, vi, a_number, a_string): # noqa: N802 - if self._defaults['TwoInputFunction']['return'] != 0: - return self._defaults['TwoInputFunction']['return'] - return self._defaults['TwoInputFunction']['return'] - - def niFake_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niFake_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niFake_Use64BitNumber(self, vi, input, output): # noqa: N802 - if self._defaults['Use64BitNumber']['return'] != 0: - return self._defaults['Use64BitNumber']['return'] - # output - if self._defaults['Use64BitNumber']['output'] is None: - raise MockFunctionCallError("niFake_Use64BitNumber", param='output') - if output is not None: - output.contents.value = self._defaults['Use64BitNumber']['output'] - return self._defaults['Use64BitNumber']['return'] - - def niFake_WriteWaveform(self, vi, number_of_samples, waveform): # noqa: N802 - if self._defaults['WriteWaveform']['return'] != 0: - return self._defaults['WriteWaveform']['return'] - return self._defaults['WriteWaveform']['return'] - - def niFake_WriteWaveformNumpyComplex128(self, vi, number_of_samples, waveform_data_array): # noqa: N802 - if self._defaults['WriteWaveformNumpyComplex128']['return'] != 0: - return self._defaults['WriteWaveformNumpyComplex128']['return'] - return self._defaults['WriteWaveformNumpyComplex128']['return'] - - def niFake_WriteWaveformNumpyComplex64(self, vi, number_of_samples, waveform_data_array): # noqa: N802 - if self._defaults['WriteWaveformNumpyComplex64']['return'] != 0: - return self._defaults['WriteWaveformNumpyComplex64']['return'] - return self._defaults['WriteWaveformNumpyComplex64']['return'] - - def niFake_WriteWaveformNumpyComplexInterleavedI16(self, vi, number_of_samples, waveform_data_array): # noqa: N802 - if self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] != 0: - return self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] - return self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] - - def niFake_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niFake_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niFake_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niFake_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niFake_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niFake_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niFake_Abort.side_effect = MockFunctionCallError("niFake_Abort") - mock_library.niFake_Abort.return_value = 0 - mock_library.niFake_AcceptListOfDurationsInSeconds.side_effect = MockFunctionCallError("niFake_AcceptListOfDurationsInSeconds") - mock_library.niFake_AcceptListOfDurationsInSeconds.return_value = 0 - mock_library.niFake_BoolArrayOutputFunction.side_effect = MockFunctionCallError("niFake_BoolArrayOutputFunction") - mock_library.niFake_BoolArrayOutputFunction.return_value = 0 - mock_library.niFake_ConfigureABC.side_effect = MockFunctionCallError("niFake_ConfigureABC") - mock_library.niFake_ConfigureABC.return_value = 0 - mock_library.niFake_CustomNestedStructRoundtrip.side_effect = MockFunctionCallError("niFake_CustomNestedStructRoundtrip") - mock_library.niFake_CustomNestedStructRoundtrip.return_value = 0 - mock_library.niFake_DoubleAllTheNums.side_effect = MockFunctionCallError("niFake_DoubleAllTheNums") - mock_library.niFake_DoubleAllTheNums.return_value = 0 - mock_library.niFake_EnumArrayOutputFunction.side_effect = MockFunctionCallError("niFake_EnumArrayOutputFunction") - mock_library.niFake_EnumArrayOutputFunction.return_value = 0 - mock_library.niFake_EnumInputFunctionWithDefaults.side_effect = MockFunctionCallError("niFake_EnumInputFunctionWithDefaults") - mock_library.niFake_EnumInputFunctionWithDefaults.return_value = 0 - mock_library.niFake_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFake_ExportAttributeConfigurationBuffer") - mock_library.niFake_ExportAttributeConfigurationBuffer.return_value = 0 - mock_library.niFake_FetchWaveform.side_effect = MockFunctionCallError("niFake_FetchWaveform") - mock_library.niFake_FetchWaveform.return_value = 0 - mock_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.side_effect = MockFunctionCallError("niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter") - mock_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.return_value = 0 - mock_library.niFake_FunctionWithIntflagParameter.side_effect = MockFunctionCallError("niFake_FunctionWithIntflagParameter") - mock_library.niFake_FunctionWithIntflagParameter.return_value = 0 - mock_library.niFake_FunctionWithRepeatedCapabilityType.side_effect = MockFunctionCallError("niFake_FunctionWithRepeatedCapabilityType") - mock_library.niFake_FunctionWithRepeatedCapabilityType.return_value = 0 - mock_library.niFake_GetABoolean.side_effect = MockFunctionCallError("niFake_GetABoolean") - mock_library.niFake_GetABoolean.return_value = 0 - mock_library.niFake_GetANumber.side_effect = MockFunctionCallError("niFake_GetANumber") - mock_library.niFake_GetANumber.return_value = 0 - mock_library.niFake_GetAStringOfFixedMaximumSize.side_effect = MockFunctionCallError("niFake_GetAStringOfFixedMaximumSize") - mock_library.niFake_GetAStringOfFixedMaximumSize.return_value = 0 - mock_library.niFake_GetAStringUsingPythonCode.side_effect = MockFunctionCallError("niFake_GetAStringUsingPythonCode") - mock_library.niFake_GetAStringUsingPythonCode.return_value = 0 - mock_library.niFake_GetAnIviDanceCharArray.side_effect = MockFunctionCallError("niFake_GetAnIviDanceCharArray") - mock_library.niFake_GetAnIviDanceCharArray.return_value = 0 - mock_library.niFake_GetAnIviDanceWithATwistString.side_effect = MockFunctionCallError("niFake_GetAnIviDanceWithATwistString") - mock_library.niFake_GetAnIviDanceWithATwistString.return_value = 0 - mock_library.niFake_GetArrayForPythonCodeCustomType.side_effect = MockFunctionCallError("niFake_GetArrayForPythonCodeCustomType") - mock_library.niFake_GetArrayForPythonCodeCustomType.return_value = 0 - mock_library.niFake_GetArrayForPythonCodeDouble.side_effect = MockFunctionCallError("niFake_GetArrayForPythonCodeDouble") - mock_library.niFake_GetArrayForPythonCodeDouble.return_value = 0 - mock_library.niFake_GetArraySizeForPythonCode.side_effect = MockFunctionCallError("niFake_GetArraySizeForPythonCode") - mock_library.niFake_GetArraySizeForPythonCode.return_value = 0 - mock_library.niFake_GetArrayUsingIviDance.side_effect = MockFunctionCallError("niFake_GetArrayUsingIviDance") - mock_library.niFake_GetArrayUsingIviDance.return_value = 0 - mock_library.niFake_GetAttributeViBoolean.side_effect = MockFunctionCallError("niFake_GetAttributeViBoolean") - mock_library.niFake_GetAttributeViBoolean.return_value = 0 - mock_library.niFake_GetAttributeViInt32.side_effect = MockFunctionCallError("niFake_GetAttributeViInt32") - mock_library.niFake_GetAttributeViInt32.return_value = 0 - mock_library.niFake_GetAttributeViInt64.side_effect = MockFunctionCallError("niFake_GetAttributeViInt64") - mock_library.niFake_GetAttributeViInt64.return_value = 0 - mock_library.niFake_GetAttributeViReal64.side_effect = MockFunctionCallError("niFake_GetAttributeViReal64") - mock_library.niFake_GetAttributeViReal64.return_value = 0 - mock_library.niFake_GetAttributeViString.side_effect = MockFunctionCallError("niFake_GetAttributeViString") - mock_library.niFake_GetAttributeViString.return_value = 0 - mock_library.niFake_GetCalDateAndTime.side_effect = MockFunctionCallError("niFake_GetCalDateAndTime") - mock_library.niFake_GetCalDateAndTime.return_value = 0 - mock_library.niFake_GetCalInterval.side_effect = MockFunctionCallError("niFake_GetCalInterval") - mock_library.niFake_GetCalInterval.return_value = 0 - mock_library.niFake_GetChannelNames.side_effect = MockFunctionCallError("niFake_GetChannelNames") - mock_library.niFake_GetChannelNames.return_value = 0 - mock_library.niFake_GetCustomType.side_effect = MockFunctionCallError("niFake_GetCustomType") - mock_library.niFake_GetCustomType.return_value = 0 - mock_library.niFake_GetCustomTypeArray.side_effect = MockFunctionCallError("niFake_GetCustomTypeArray") - mock_library.niFake_GetCustomTypeArray.return_value = 0 - mock_library.niFake_GetCustomTypeTypedef.side_effect = MockFunctionCallError("niFake_GetCustomTypeTypedef") - mock_library.niFake_GetCustomTypeTypedef.return_value = 0 - mock_library.niFake_GetEnumValue.side_effect = MockFunctionCallError("niFake_GetEnumValue") - mock_library.niFake_GetEnumValue.return_value = 0 - mock_library.niFake_GetError.side_effect = MockFunctionCallError("niFake_GetError") - mock_library.niFake_GetError.return_value = 0 - mock_library.niFake_GetParameterWithOverriddenGrpcName.side_effect = MockFunctionCallError("niFake_GetParameterWithOverriddenGrpcName") - mock_library.niFake_GetParameterWithOverriddenGrpcName.return_value = 0 - mock_library.niFake_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFake_ImportAttributeConfigurationBuffer") - mock_library.niFake_ImportAttributeConfigurationBuffer.return_value = 0 - mock_library.niFake_ImportAttributeConfigurationBufferEx.side_effect = MockFunctionCallError("niFake_ImportAttributeConfigurationBufferEx") - mock_library.niFake_ImportAttributeConfigurationBufferEx.return_value = 0 - mock_library.niFake_InitWithOptions.side_effect = MockFunctionCallError("niFake_InitWithOptions") - mock_library.niFake_InitWithOptions.return_value = 0 - mock_library.niFake_Initiate.side_effect = MockFunctionCallError("niFake_Initiate") - mock_library.niFake_Initiate.return_value = 0 - mock_library.niFake_LockSession.side_effect = MockFunctionCallError("niFake_LockSession") - mock_library.niFake_LockSession.return_value = 0 - mock_library.niFake_MethodUsingWholeAndFractionalNumbers.side_effect = MockFunctionCallError("niFake_MethodUsingWholeAndFractionalNumbers") - mock_library.niFake_MethodUsingWholeAndFractionalNumbers.return_value = 0 - mock_library.niFake_MethodWithGrpcOnlyParam.side_effect = MockFunctionCallError("niFake_MethodWithGrpcOnlyParam") - mock_library.niFake_MethodWithGrpcOnlyParam.return_value = 0 - mock_library.niFake_MethodWithProtoOnlyParameter.side_effect = MockFunctionCallError("niFake_MethodWithProtoOnlyParameter") - mock_library.niFake_MethodWithProtoOnlyParameter.return_value = 0 - mock_library.niFake_MixedIviDanceAndLenMechanism.side_effect = MockFunctionCallError("niFake_MixedIviDanceAndLenMechanism") - mock_library.niFake_MixedIviDanceAndLenMechanism.return_value = 0 - mock_library.niFake_MultipleArrayTypes.side_effect = MockFunctionCallError("niFake_MultipleArrayTypes") - mock_library.niFake_MultipleArrayTypes.return_value = 0 - mock_library.niFake_MultipleArraysDifferentSize.side_effect = MockFunctionCallError("niFake_MultipleArraysDifferentSize") - mock_library.niFake_MultipleArraysDifferentSize.return_value = 0 - mock_library.niFake_MultipleArraysSameSize.side_effect = MockFunctionCallError("niFake_MultipleArraysSameSize") - mock_library.niFake_MultipleArraysSameSize.return_value = 0 - mock_library.niFake_OneInputFunction.side_effect = MockFunctionCallError("niFake_OneInputFunction") - mock_library.niFake_OneInputFunction.return_value = 0 - mock_library.niFake_ParametersAreMultipleTypes.side_effect = MockFunctionCallError("niFake_ParametersAreMultipleTypes") - mock_library.niFake_ParametersAreMultipleTypes.return_value = 0 - mock_library.niFake_PoorlyNamedSimpleFunction.side_effect = MockFunctionCallError("niFake_PoorlyNamedSimpleFunction") - mock_library.niFake_PoorlyNamedSimpleFunction.return_value = 0 - mock_library.niFake_Read.side_effect = MockFunctionCallError("niFake_Read") - mock_library.niFake_Read.return_value = 0 - mock_library.niFake_ReadFromChannel.side_effect = MockFunctionCallError("niFake_ReadFromChannel") - mock_library.niFake_ReadFromChannel.return_value = 0 - mock_library.niFake_ReturnANumberAndAString.side_effect = MockFunctionCallError("niFake_ReturnANumberAndAString") - mock_library.niFake_ReturnANumberAndAString.return_value = 0 - mock_library.niFake_ReturnDurationInSeconds.side_effect = MockFunctionCallError("niFake_ReturnDurationInSeconds") - mock_library.niFake_ReturnDurationInSeconds.return_value = 0 - mock_library.niFake_ReturnListOfDurationsInSeconds.side_effect = MockFunctionCallError("niFake_ReturnListOfDurationsInSeconds") - mock_library.niFake_ReturnListOfDurationsInSeconds.return_value = 0 - mock_library.niFake_ReturnMultipleTypes.side_effect = MockFunctionCallError("niFake_ReturnMultipleTypes") - mock_library.niFake_ReturnMultipleTypes.return_value = 0 - mock_library.niFake_SetAttributeViBoolean.side_effect = MockFunctionCallError("niFake_SetAttributeViBoolean") - mock_library.niFake_SetAttributeViBoolean.return_value = 0 - mock_library.niFake_SetAttributeViInt32.side_effect = MockFunctionCallError("niFake_SetAttributeViInt32") - mock_library.niFake_SetAttributeViInt32.return_value = 0 - mock_library.niFake_SetAttributeViInt64.side_effect = MockFunctionCallError("niFake_SetAttributeViInt64") - mock_library.niFake_SetAttributeViInt64.return_value = 0 - mock_library.niFake_SetAttributeViReal64.side_effect = MockFunctionCallError("niFake_SetAttributeViReal64") - mock_library.niFake_SetAttributeViReal64.return_value = 0 - mock_library.niFake_SetAttributeViString.side_effect = MockFunctionCallError("niFake_SetAttributeViString") - mock_library.niFake_SetAttributeViString.return_value = 0 - mock_library.niFake_SetCustomType.side_effect = MockFunctionCallError("niFake_SetCustomType") - mock_library.niFake_SetCustomType.return_value = 0 - mock_library.niFake_SetCustomTypeArray.side_effect = MockFunctionCallError("niFake_SetCustomTypeArray") - mock_library.niFake_SetCustomTypeArray.return_value = 0 - mock_library.niFake_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niFake_SetRuntimeEnvironment") - mock_library.niFake_SetRuntimeEnvironment.return_value = 0 - mock_library.niFake_StringValuedEnumInputFunctionWithDefaults.side_effect = MockFunctionCallError("niFake_StringValuedEnumInputFunctionWithDefaults") - mock_library.niFake_StringValuedEnumInputFunctionWithDefaults.return_value = 0 - mock_library.niFake_TwoInputFunction.side_effect = MockFunctionCallError("niFake_TwoInputFunction") - mock_library.niFake_TwoInputFunction.return_value = 0 - mock_library.niFake_UnlockSession.side_effect = MockFunctionCallError("niFake_UnlockSession") - mock_library.niFake_UnlockSession.return_value = 0 - mock_library.niFake_Use64BitNumber.side_effect = MockFunctionCallError("niFake_Use64BitNumber") - mock_library.niFake_Use64BitNumber.return_value = 0 - mock_library.niFake_WriteWaveform.side_effect = MockFunctionCallError("niFake_WriteWaveform") - mock_library.niFake_WriteWaveform.return_value = 0 - mock_library.niFake_WriteWaveformNumpyComplex128.side_effect = MockFunctionCallError("niFake_WriteWaveformNumpyComplex128") - mock_library.niFake_WriteWaveformNumpyComplex128.return_value = 0 - mock_library.niFake_WriteWaveformNumpyComplex64.side_effect = MockFunctionCallError("niFake_WriteWaveformNumpyComplex64") - mock_library.niFake_WriteWaveformNumpyComplex64.return_value = 0 - mock_library.niFake_WriteWaveformNumpyComplexInterleavedI16.side_effect = MockFunctionCallError("niFake_WriteWaveformNumpyComplexInterleavedI16") - mock_library.niFake_WriteWaveformNumpyComplexInterleavedI16.return_value = 0 - mock_library.niFake_close.side_effect = MockFunctionCallError("niFake_close") - mock_library.niFake_close.return_value = 0 - mock_library.niFake_error_message.side_effect = MockFunctionCallError("niFake_error_message") - mock_library.niFake_error_message.return_value = 0 - mock_library.niFake_self_test.side_effect = MockFunctionCallError("niFake_self_test") - mock_library.niFake_self_test.return_value = 0 diff --git a/generated/nifake/nifake/unit_tests/conftest.py b/generated/nifake/nifake/unit_tests/conftest.py deleted file mode 100644 index a4aeca5503..0000000000 --- a/generated/nifake/nifake/unit_tests/conftest.py +++ /dev/null @@ -1,19 +0,0 @@ -import grpc -import nitlsconfig.channel_tag -import pytest - - -@pytest.fixture -def nitls_tagged_channel(): - """A real gRPC channel tagged the way nitlsconfig.create_grpc_device_channel tags one. - - nitlsconfig.create_grpc_device_channel itself requires the nitlsconfig library to be - installed on the system in order to access the CLI. As a result, we are unable to directly - leverage it in our unit tests. But, this can at least allow us to unit-test our code - that relies on channels being created from nitlsconfig.create_grpc_device_channel. - """ - target = 'localhost:31763' - with grpc.insecure_channel(target) as channel: - nitlsconfig.channel_tag.tag_channel_target(channel, target) - assert nitlsconfig.channel_tag.is_nitls_channel(channel), 'nitlsconfig no longer recognizes a channel it tagged' - yield channel diff --git a/generated/nifake/nifake/unit_tests/test_converters.py b/generated/nifake/nifake/unit_tests/test_converters.py deleted file mode 100644 index daa0d21963..0000000000 --- a/generated/nifake/nifake/unit_tests/test_converters.py +++ /dev/null @@ -1,421 +0,0 @@ -import nifake._converters as _converters -import nifake.errors as errors - -import hightime -import pytest - - -def test_convert_init_with_options_dictionary(): - assert _converters.convert_init_with_options_dictionary('') == '' - assert _converters.convert_init_with_options_dictionary('Simulate=1') == 'Simulate=1' - assert _converters.convert_init_with_options_dictionary({'Simulate': True, }) == 'Simulate=1' - assert _converters.convert_init_with_options_dictionary({'Simulate': False, }) == 'Simulate=0' - assert _converters.convert_init_with_options_dictionary({'Simulate': True, 'Cache': False}) == 'Cache=0,Simulate=1' - assert _converters.convert_init_with_options_dictionary({'DriverSetup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH)' - assert _converters.convert_init_with_options_dictionary({'Simulate': True, 'DriverSetup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH),Simulate=1' - assert _converters.convert_init_with_options_dictionary({'simulate': True, 'cache': False}) == 'Cache=0,Simulate=1' - assert _converters.convert_init_with_options_dictionary({'driver_setup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH)' - assert _converters.convert_init_with_options_dictionary({'simulate': True, 'driver_setup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH),Simulate=1' - - -# Tests - time -def test_convert_timedelta_to_seconds_double(): - test_result = _converters.convert_timedelta_to_seconds_real64(hightime.timedelta(seconds=10)) - assert test_result == 10.0 - test_result = _converters.convert_timedelta_to_seconds_real64(hightime.timedelta(nanoseconds=-0.5)) - assert test_result == pytest.approx(-5e-10) - test_result = _converters.convert_timedelta_to_seconds_real64(10.5) - assert test_result == 10.5 - test_result = _converters.convert_timedelta_to_seconds_real64(-1) - assert test_result == -1 - - -def test_convert_timedelta_to_milliseconds_int32(): - test_result = _converters.convert_timedelta_to_milliseconds_int32(hightime.timedelta(seconds=10)) - assert test_result == 10000 - test_result = _converters.convert_timedelta_to_milliseconds_int32(hightime.timedelta(seconds=-5)) - assert test_result == -5000 - test_result = _converters.convert_timedelta_to_milliseconds_int32(10.5) - assert test_result == 10500 - test_result = _converters.convert_timedelta_to_milliseconds_int32(-1) - assert test_result == -1000 - - -def test_convert_timedeltas_to_seconds_real64(): - time_values = [10.5, -5e-10] - test_result = _converters.convert_timedeltas_to_seconds_real64(time_values) - assert all([actual == pytest.approx(expected) for actual, expected in zip(test_result, time_values)]) - test_input = [hightime.timedelta(seconds=10.5), hightime.timedelta(nanoseconds=-0.5)] - test_result = _converters.convert_timedeltas_to_seconds_real64(test_input) - assert all([actual == pytest.approx(expected) for actual, expected in zip(test_result, time_values)]) - - -def test_convert_timedelta_to_months_int32(): - # 1 month = 60*60*24*30.4167 seconds = 2628002.88 seconds - seconds_per_month = 60 * 60 * 24 * 30.4167 - test_result = _converters.convert_timedelta_to_months_int32(hightime.timedelta(seconds=seconds_per_month)) - assert test_result == 1 - test_result = _converters.convert_timedelta_to_months_int32(hightime.timedelta(seconds=-5 * seconds_per_month)) - assert test_result == -5 - test_result = _converters.convert_timedelta_to_months_int32(seconds_per_month * 2) - assert test_result == 2 - test_result = _converters.convert_timedelta_to_months_int32(-seconds_per_month) - assert test_result == -1 - - -def test_convert_seconds_real64_to_timedelta(): - time_value = -5e-10 - test_result = _converters.convert_seconds_real64_to_timedelta(time_value) - assert test_result.total_seconds() == pytest.approx(time_value) - assert isinstance(test_result, hightime.timedelta) - - -def test_convert_seconds_real64_to_timedeltas(): - time_values = [10.5, -5e-10] - test_result = _converters.convert_seconds_real64_to_timedeltas(time_values) - assert all([actual.total_seconds() == pytest.approx(expected) for actual, expected in zip(test_result, time_values)]) - assert all([isinstance(x, hightime.timedelta) for x in test_result]) - - -# Tests - repeated capabilities -def test_repeated_capabilities_string_channel(): - test_result_list = _converters.convert_repeated_capabilities('0') - assert test_result_list == ['0'] - test_result_list = _converters.convert_repeated_capabilities('r0') - assert test_result_list == ['r0'] - test_result_list = _converters.convert_repeated_capabilities('0,1') - assert test_result_list == ['0', '1'] - - -def test_repeated_capabilities_string_prefix(): - test_result_list = _converters.convert_repeated_capabilities('0', prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0'] - - -def test_repeated_capabilities_list_channel(): - test_result_list = _converters.convert_repeated_capabilities(['0']) - assert test_result_list == ['0'] - test_result_list = _converters.convert_repeated_capabilities(['r0']) - assert test_result_list == ['r0'] - test_result_list = _converters.convert_repeated_capabilities(['0', '1']) - assert test_result_list == ['0', '1'] - test_result_list = _converters.convert_repeated_capabilities([0, 1]) - assert test_result_list == ['0', '1'] - test_result_list = _converters.convert_repeated_capabilities([0, 1, '3']) - assert test_result_list == ['0', '1', '3'] - - -def test_repeated_capabilities_list_prefix(): - test_result_list = _converters.convert_repeated_capabilities(['ScriptTrigger0', 'ScriptTrigger1'], prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(['0'], prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0'] - test_result_list = _converters.convert_repeated_capabilities(['0', '1'], prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities([0, 1], prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - - -def test_repeated_capabilities_tuple_channel(): - test_result_list = _converters.convert_repeated_capabilities(('0')) - assert test_result_list == ['0'] - test_result_list = _converters.convert_repeated_capabilities(('0,1')) - assert test_result_list == ['0', '1'] - test_result_list = _converters.convert_repeated_capabilities(('0', '1')) - assert test_result_list == ['0', '1'] - test_result_list = _converters.convert_repeated_capabilities((0, 1)) - assert test_result_list == ['0', '1'] - test_result_list = _converters.convert_repeated_capabilities((0, 1, '3')) - assert test_result_list == ['0', '1', '3'] - - -def test_repeated_capabilities_tuple_prefix(): - test_result_list = _converters.convert_repeated_capabilities(('ScriptTrigger0,ScriptTrigger1'), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(('0'), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0'] - test_result_list = _converters.convert_repeated_capabilities(('0', '1'), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities((0, 1), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - - -def test_repeated_capabilities_unicode(): - test_result_list = _converters.convert_repeated_capabilities(u'ScriptTrigger0,ScriptTrigger1', prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(u'ScriptTrigger0,ScriptTrigger1', prefix=u'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities('ScriptTrigger0,ScriptTrigger1', prefix=u'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - - -def test_repeated_capabilities_raw(): - test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities('ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix=u'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(u'ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - - -def test_repeated_capabilities_slice_channel(): - test_result_list = _converters.convert_repeated_capabilities(slice(0, 1)) - assert test_result_list == ['0'] - test_result_list = _converters.convert_repeated_capabilities(slice(0, 2)) - assert test_result_list == ['0', '1'] - test_result_list = _converters.convert_repeated_capabilities(slice(None, 2)) - assert test_result_list == ['0', '1'] - - -def test_repeated_capabilities_mixed_channel(): - test_result_list = _converters.convert_repeated_capabilities((slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17')) - assert test_result_list == ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - test_result_list = _converters.convert_repeated_capabilities([slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17']) - assert test_result_list == ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - - -def test_repeated_capabilities_mixed_prefix(): - test_result_list = _converters.convert_repeated_capabilities((slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17'), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger2', 'ScriptTrigger4', 'ScriptTrigger5', 'ScriptTrigger6', 'ScriptTrigger7', 'ScriptTrigger8', 'ScriptTrigger9', 'ScriptTrigger11', 'ScriptTrigger12', 'ScriptTrigger13', 'ScriptTrigger14', 'ScriptTrigger16', 'ScriptTrigger17'] - test_result_list = _converters.convert_repeated_capabilities([slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17'], prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger2', 'ScriptTrigger4', 'ScriptTrigger5', 'ScriptTrigger6', 'ScriptTrigger7', 'ScriptTrigger8', 'ScriptTrigger9', 'ScriptTrigger11', 'ScriptTrigger12', 'ScriptTrigger13', 'ScriptTrigger14', 'ScriptTrigger16', 'ScriptTrigger17'] - - -def test_invalid_repeated_capabilities(): - try: - _converters.convert_repeated_capabilities('6-8-10') - assert False - except errors.InvalidRepeatedCapabilityError: - pass - try: - _converters.convert_repeated_capabilities(['5', '6-8-10']) - assert False - except errors.InvalidRepeatedCapabilityError: - pass - try: - _converters.convert_repeated_capabilities(('5', '6-8-10')) - assert False - except errors.InvalidRepeatedCapabilityError: - pass - try: - _converters.convert_repeated_capabilities('5,6-8-10') - assert False - except errors.InvalidRepeatedCapabilityError: - pass - try: - _converters.convert_repeated_capabilities(5.0) - assert False - except errors.InvalidRepeatedCapabilityError: - pass - try: - _converters.convert_repeated_capabilities([5.0, '0']) - assert False - except errors.InvalidRepeatedCapabilityError: - pass - try: - _converters.convert_repeated_capabilities((5.0, '0')) - assert False - except errors.InvalidRepeatedCapabilityError: - pass - - -def test_repeated_capabilities_slice_prefix(): - test_result_list = _converters.convert_repeated_capabilities(slice(0, 1), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0'] - test_result_list = _converters.convert_repeated_capabilities(slice(0, 2), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - test_result_list = _converters.convert_repeated_capabilities(slice(None, 2), prefix='ScriptTrigger') - assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] - - -def test_repeated_capabilities_without_prefix(): - test_result = _converters.convert_repeated_capabilities_without_prefix((slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17')) - assert test_result == '0,2,4,5,6,7,8,9,11,12,13,14,16,17' - - -def test_repeated_capabilities_string_resource_name(): - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1') - assert test_result_list == 'Dev1' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1,Dev2') - assert test_result_list == 'Dev1,Dev2' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1/0') - assert test_result_list == 'Dev1/0' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1/0:1, Dev2/0-1') - assert test_result_list == 'Dev1/0:1,Dev2/0-1' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1, Dev2/0-2') - assert test_result_list == 'Dev1,Dev2/0-2' - - -def test_repeated_capabilities_list_resource_name(): - test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1']) - assert test_result_list == 'Dev1' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1', 'Dev2']) - assert test_result_list == 'Dev1,Dev2' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1/0']) - assert test_result_list == 'Dev1/0' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1/0:1', 'Dev2/0-1']) - assert test_result_list == 'Dev1/0:1,Dev2/0-1' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1', 'Dev2/0-2']) - assert test_result_list == 'Dev1,Dev2/0-2' - - -def test_repeated_capabilities_tuple_resource_name(): - test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1')) - assert test_result_list == 'Dev1' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1', 'Dev2')) - assert test_result_list == 'Dev1,Dev2' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1/0')) - assert test_result_list == 'Dev1/0' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1/0:1', 'Dev2/0-1')) - assert test_result_list == 'Dev1/0:1,Dev2/0-1' - test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1', 'Dev2/0-2')) - assert test_result_list == 'Dev1,Dev2/0-2' - - -def test_repeated_capabilities_mixed_resource_name(): - test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1', ('Dev2/0', 'Dev2/1'), ['Dev3/0:1', 'Dev4/1:2'], 'Dev5/1']) - assert test_result_list == 'Dev1,Dev2/0,Dev2/1,Dev3/0:1,Dev4/1:2,Dev5/1' - - -def test_repeated_capabilities_invalid_resource_names(): - test_result_list = _converters.convert_repeated_capabilities_without_prefix('/') - assert test_result_list == '/' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev/') - assert test_result_list == 'Dev/' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev,') - assert test_result_list == 'Dev,' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev/1/1,') - assert test_result_list == 'Dev/1/1,' - test_result_list = _converters.convert_repeated_capabilities_without_prefix('0/1:2,') - assert test_result_list == '0/1:2,' - - -def test_expand_channel_string_non_fully_qualified_channel_names(): - test_result_list = _converters.expand_channel_string('1', ['0', '1', '2', '3']) - assert test_result_list == ['1'] - test_result_list = _converters.expand_channel_string('0-2', ['0', '1', '2', '3']) - assert test_result_list == ['0', '1', '2'] - test_result_list = _converters.expand_channel_string('0:2', ['0', '1', '2', '3']) - assert test_result_list == ['0', '1', '2'] - test_result_list = _converters.expand_channel_string('0:2,4', ['0', '1', '2', '3', '4', '5']) - assert test_result_list == ['0', '1', '2', '4'] - test_result_list = _converters.expand_channel_string('4,1:2', ['1', '2', '4']) - assert test_result_list == ['4', '1', '2'] - test_result_list = _converters.expand_channel_string(' 1 : 2 , 4 ', ['1', '2', '4']) - assert test_result_list == ['1', '2', '4'] - - -def test_expand_channel_string_fully_qualified_channel_names(): - test_result_list = _converters.expand_channel_string( - '2:3,0', - ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] - ) - assert test_result_list == ['Dev1/2', 'Dev1/3', 'Dev1/0'] - test_result_list = _converters.expand_channel_string( - 'Dev1/1', - ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] - ) - assert test_result_list == ['Dev1/1'] - test_result_list = _converters.expand_channel_string( - 'Dev1/0-2', - ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] - ) - assert test_result_list == ['Dev1/0', 'Dev1/1', 'Dev1/2'] - test_result_list = _converters.expand_channel_string( - 'Dev1/0:2', - ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] - ) - assert test_result_list == ['Dev1/0', 'Dev1/1', 'Dev1/2'] - test_result_list = _converters.expand_channel_string( - 'Dev1/0:2,4', - ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/4'] - ) - assert test_result_list == ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/4'] - test_result_list = _converters.expand_channel_string( - '4,Dev1/1:2', - ['Dev1/1', 'Dev1/2', 'Dev1/4'] - ) - assert test_result_list == ['Dev1/4', 'Dev1/1', 'Dev1/2'] - test_result_list = _converters.expand_channel_string( - 'Dev1/4,Dev1/2,Dev1/3', - ['Dev1/2', 'Dev1/3', 'Dev1/4'] - ) - assert test_result_list == ['Dev1/4', 'Dev1/2', 'Dev1/3'] - test_result_list = _converters.expand_channel_string( - 'Dev1/1,Dev2/2', - ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3'] - ) - assert test_result_list == ['Dev1/1', 'Dev2/2'] - test_result_list = _converters.expand_channel_string( - ' Dev1 / 1 : 2 , 4 ', - ['Dev1/1', 'Dev1/2', 'Dev1/4'] - ) - assert test_result_list == ['Dev1/1', 'Dev1/2', 'Dev1/4'] - test_result_list = _converters.expand_channel_string( - 'DEV1/0-1 , Dev1/3', - ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3'] - ) - assert test_result_list == ['dev1/0', 'dev1/1', 'dev1/3'] - - -def test_convert_chained_repeated_capability_to_parts_three_parts(): - chained_rep_cap = ('site0/test/PinA,site0/test/PinB,site0/test/PinC,' - 'site1/test/PinA,site1/test/PinB,site1/test/PinC') - rep_cap_list = _converters.convert_chained_repeated_capability_to_parts(chained_rep_cap) - assert rep_cap_list == ['site0,site1', 'test', 'PinA,PinB,PinC'] - - -def test_convert_chained_repeated_capability_to_parts_single_part(): - rep_cap_list = _converters.convert_chained_repeated_capability_to_parts('site0, site1') - assert rep_cap_list == ['site0,site1'] - - -def test_convert_chained_repeated_capability_to_parts_empty_string(): - rep_cap_list = _converters.convert_chained_repeated_capability_to_parts('') - assert rep_cap_list == [''] - - -def test_string_to_list_channel(): - test_result = _converters._convert_repeated_capabilities('r0', '') - assert test_result == ['r0'] - test_result = _converters._convert_repeated_capabilities(['0-2'], '') - assert test_result == ['0', '1', '2'] - test_result = _converters._convert_repeated_capabilities(['3:7'], '') - assert test_result == ['3', '4', '5', '6', '7'] - test_result = _converters._convert_repeated_capabilities(['2-0'], '') - assert test_result == ['2', '1', '0'] - test_result = _converters._convert_repeated_capabilities(['2:0'], '') - assert test_result == ['2', '1', '0'] - - -def test_string_to_list_prefix(): - test_result = _converters._convert_repeated_capabilities(['ScriptTrigger3-ScriptTrigger7'], 'ScriptTrigger') - assert test_result == ['3', '4', '5', '6', '7'] - test_result = _converters._convert_repeated_capabilities(['ScriptTrigger3:ScriptTrigger7'], 'ScriptTrigger') - assert test_result == ['3', '4', '5', '6', '7'] - test_result = _converters._convert_repeated_capabilities(['ScriptTrigger2-ScriptTrigger0'], 'ScriptTrigger') - assert test_result == ['2', '1', '0'] - test_result = _converters._convert_repeated_capabilities(['ScriptTrigger2:ScriptTrigger0'], 'ScriptTrigger') - assert test_result == ['2', '1', '0'] - - -def test_convert_comma_separated_string_to_list(): - out_list = _converters.convert_comma_separated_string_to_list(' PinA , PinB , PinC ') - assert out_list == ['PinA', 'PinB', 'PinC'] - - -def test_convert_list_to_comma_separated_string(): - out_string = _converters.convert_list_to_comma_separated_string(['PinA', 'PinB', 'PinC']) - assert out_string == 'PinA,PinB,PinC' - - -def test_convert_list_to_comma_separated_string_invalid_input(): - with pytest.raises(TypeError) as error_info: - _converters.convert_list_to_comma_separated_string('PinA,PinB,PinC') - assert str(error_info.value) == 'Input must be a list or tuple of str' diff --git a/generated/nifake/nifake/unit_tests/test_grpc.py b/generated/nifake/nifake/unit_tests/test_grpc.py deleted file mode 100644 index f47e7e72e5..0000000000 --- a/generated/nifake/nifake/unit_tests/test_grpc.py +++ /dev/null @@ -1,1111 +0,0 @@ -import array -import collections -import grpc -import math -import nifake -import nifake.errors -import nitlsconfig -import numpy -import pytest -import session_pb2 -import warnings - -from unittest.mock import MagicMock -from unittest.mock import patch - -import _mock_helper - -GRPC_SESSION_OBJECT_FOR_TEST = session_pb2.Session(name="TestSession", id=42) - - -Metadatum = collections.namedtuple('Metadatum', ('key', 'value')) - - -class MyRpcError(grpc.RpcError): - def __init__(self, error_code, error_message, grpc_error=grpc.StatusCode.UNKNOWN): - super().__init__() - self._grpc_error = grpc_error - self._error_code = error_code - self._error_message = error_message - - def code(self): - return self._grpc_error - - def details(self): - return self._error_message - - def trailing_metadata(self): - if self._error_code is None: - return [] - else: - return [Metadatum('ni-error', str(self._error_code))] - - -class TestGrpcStubInterpreter: - - class PatchedGrpcTypes: - def __init__(self): - for f in dir(nifake._grpc_stub_interpreter.grpc_types): - if f.endswith('Request'): - real_func = getattr(nifake._grpc_stub_interpreter.grpc_types, f) - error_func = _mock_helper.MockFunctionCallError(f) - setattr(self, f, MagicMock(spec_set=real_func, side_effect=error_func)) - else: - setattr(self, f, getattr(nifake._grpc_stub_interpreter.grpc_types, f)) - - class PatchedGrpcStub(nifake._grpc_stub_interpreter.nifake_grpc.NiFakeServicer): - def _sample_func(self, request, metadata=None): - pass - - def __init__(self): - for f in dir(self): - if not f.startswith('_') and f not in {'get_session_handle', 'set_session_handle'}: - error_func = _mock_helper.MockFunctionCallError(f) - setattr(self, f, MagicMock(spec_set=self._sample_func, side_effect=error_func)) - - def __call__(self, grpc_channel): - self._grpc_channel = grpc_channel - return self - - def setup_method(self, method): - self.patched_grpc_types = self.PatchedGrpcTypes() - self.patched_grpc_stub = self.PatchedGrpcStub() - self.real_grpc_types = nifake._grpc_stub_interpreter.grpc_types - self.grpc_types_patch = patch('nifake._grpc_stub_interpreter.grpc_types', self.patched_grpc_types) - self.grpc_stub_patch = patch('nifake._grpc_stub_interpreter.nifake_grpc.NiFakeStub', side_effect=self.patched_grpc_stub) - self.grpc_types_patch.start() - self.grpc_stub_patch.start() - - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - self.get_ctypes_pointer_for_buffer_side_effect_items = [] - - def teardown_method(self, method): - self.grpc_stub_patch.stop() - self.grpc_types_patch.stop() - - def _get_initialized_stub_interpreter(self, grpc_channel=object()): - session_options = nifake.GrpcSessionOptions(grpc_channel, '', initialization_behavior=nifake.SessionInitializationBehavior.AUTO) - interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(session_options) - assert interpreter._client is self.patched_grpc_stub - assert interpreter.get_session_handle().id == 0 - assert interpreter.get_session_handle().name == "" - assert self.patched_grpc_stub._grpc_channel is grpc_channel - interpreter.set_session_handle(GRPC_SESSION_OBJECT_FOR_TEST) - return interpreter - - def _check_fields(self, response_class, **kwargs): - fields = dict(kwargs) - response_fields = {x.name: x for x in response_class.DESCRIPTOR.fields} - - unexpected_fields = set(fields) - set(response_fields) - assert not unexpected_fields, 'Unexpected fields: ' + str(list(sorted(unexpected_fields))) - - for f in response_fields: - if f.endswith('_raw') and f[:-4] in response_fields: - fields.setdefault(f, fields[f[:-4]]) - fields.setdefault(f[:-4], fields[f]) - - missing_fields = set(response_fields) - set(fields) - assert not missing_fields, 'Missing fields: ' + str(list(sorted(missing_fields))) - - for field, value in fields.items(): - rf = response_fields[field] - field_type = rf.type - if field_type == rf.TYPE_ENUM: - if (field + '_raw') not in fields: - assert field.endswith('_mapped') - raw_field = field.rpartition('_mapped')[0] + '_raw' - assert raw_field in fields - assert kwargs.get(raw_field) - if rf.label == rf.LABEL_REPEATED: - assert len(kwargs[raw_field]) == len(value) - expected_py_type = int - elif field_type == rf.TYPE_BOOL: - expected_py_type = bool - elif field_type == rf.TYPE_STRING: - expected_py_type = str - elif field_type == rf.TYPE_BYTES: - expected_py_type = bytes - elif field_type in {rf.TYPE_DOUBLE, rf.TYPE_FLOAT}: - expected_py_type = float - elif field_type in {rf.TYPE_INT32, rf.TYPE_INT64, rf.TYPE_FIXED64, rf.TYPE_FIXED32}: - expected_py_type = int - elif field_type in {rf.TYPE_UINT32, rf.TYPE_UINT64}: - expected_py_type = int - elif field_type in {rf.TYPE_SINT32, rf.TYPE_SINT64, rf.TYPE_SFIXED32, rf.TYPE_SFIXED64}: - expected_py_type = int - elif field_type == rf.TYPE_MESSAGE: - expected_py_type = object - elif field_type == rf.TYPE_GROUP: - assert False, 'GROUP types not yet supported here' - else: - assert False, f'Unknown type {field_type}' - - if rf.label == rf.LABEL_REPEATED: - for x in value: - assert isinstance(x, expected_py_type) - else: - assert isinstance(value, expected_py_type), (field, field_type) - - return fields - - def _set_side_effect(self, function_name, side_effect=None, **kwargs): - if side_effect is None: - kwargs.setdefault('status', 0) - response_class = getattr(self.real_grpc_types, function_name + 'Response') - kwargs = self._check_fields(response_class, **kwargs) - side_effect = [response_class(**kwargs)] - else: - assert not kwargs, 'Do not use both side_effect and kwargs' - - request_object = object() - getattr(self.patched_grpc_types, function_name + 'Request').side_effect = [request_object] - getattr(self.patched_grpc_stub, function_name).side_effect = side_effect - return request_object - - def _assert_call(self, function_name, request_object, metadata=None): - func = getattr(self.patched_grpc_stub, function_name) - func.assert_called_once_with(request_object, metadata=metadata) - return getattr(self.patched_grpc_types, function_name + 'Request') - - # gRPC errors - - def test_server_unavailable(self): - library_func = 'InitWithOptions' - grpc_error = grpc.StatusCode.UNAVAILABLE - expected_error_message = 'Failed to connect to server' - self._set_side_effect(library_func, side_effect=MyRpcError(None, '', grpc_error=grpc_error)) - grpc_options = nifake.GrpcSessionOptions(object(), '', initialization_behavior=nifake.SessionInitializationBehavior.AUTO) - interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - try: - interpreter.init_with_options('dev1', False, False, '') - assert False - except nifake.Error as e: - assert e.rpc_code == grpc_error - assert e.description == expected_error_message - assert str(e) == f'StatusCode.UNAVAILABLE: {expected_error_message}' - - def test_server_unavailable_with_tls_elaboration(self, nitls_tagged_channel): - library_func = 'InitWithOptions' - grpc_error = grpc.StatusCode.UNAVAILABLE - self._set_side_effect(library_func, side_effect=MyRpcError(None, '', grpc_error=grpc_error)) - # The real elaboration, so this fails if nitlsconfig stops recognizing our channel. - expected_error_message = nitlsconfig.get_tls_connection_error_elaboration(nitls_tagged_channel) - assert expected_error_message is not None - assert expected_error_message != 'Failed to connect to server' - grpc_options = nifake.GrpcSessionOptions(nitls_tagged_channel, '', initialization_behavior=nifake.SessionInitializationBehavior.AUTO) - interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - try: - interpreter.init_with_options('dev1', False, False, '') - assert False - except nifake.Error as e: - assert e.rpc_code == grpc_error - assert e.description == expected_error_message - assert str(e) == f'StatusCode.UNAVAILABLE: {expected_error_message}' - - def test_function_not_implemented(self): - library_func = 'PoorlyNamedSimpleFunction' - grpc_error = grpc.StatusCode.UNIMPLEMENTED - expected_error_message_intro = 'This operation is not supported' - self._set_side_effect(library_func, side_effect=MyRpcError(None, '', grpc_error=grpc_error)) - interpreter = self._get_initialized_stub_interpreter() - try: - interpreter.simple_function() - assert False - except nifake.Error as e: - assert e.rpc_code == grpc_error - assert e.description.startswith(expected_error_message_intro) - assert str(e).startswith(f'StatusCode.UNIMPLEMENTED: {expected_error_message_intro}') - - # Methods - - def test_api_key_sent_to_init(self): - library_func = 'InitWithOptions' - expected_metadata = (('ni-api-key', nifake.MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY),) - from session_pb2 import Session as GrpcSession - grpc_session_object = GrpcSession(id=42, name='') - response_object = self._set_side_effect(library_func, new_session_initialized=True, vi=grpc_session_object) - init_behavior = nifake.SessionInitializationBehavior.AUTO - grpc_options = nifake.GrpcSessionOptions(object(), '', initialization_behavior=init_behavior) - interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - interpreter.init_with_options('dev1', False, False, '') - self._assert_call(library_func, response_object, metadata=expected_metadata).assert_called_once_with( - resource_name='dev1', id_query=False, reset_device=False, option_string='', session_name='', initialization_behavior=init_behavior, - ) - - def test_new_session_already_exists(self): - library_func = 'InitWithOptions' - session_name = 'existing_session' - error_message = "Cannot initialize '" + session_name + "' when a session already exists." - grpc_error = grpc.StatusCode.ALREADY_EXISTS - self._set_side_effect(library_func, side_effect=MyRpcError(None, error_message, grpc_error=grpc_error)) - init_behavior = nifake.SessionInitializationBehavior.INITIALIZE_SERVER_SESSION - grpc_options = nifake.GrpcSessionOptions(object(), session_name, initialization_behavior=init_behavior) - interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - try: - interpreter.init_with_options('dev1', False, False, '') - assert False - except nifake.Error as e: - assert e.rpc_code == grpc_error - assert e.description == error_message - assert str(e) == f'StatusCode.ALREADY_EXISTS: {error_message}' - - def test_attach_to_non_existent_session(self): - library_func = 'InitWithOptions' - session_name = 'non_existent_session' - error_message = "Cannot attach to '" + session_name + "' because a session has not been initialized." - grpc_error = grpc.StatusCode.FAILED_PRECONDITION - self._set_side_effect(library_func, side_effect=MyRpcError(None, error_message, grpc_error=grpc_error)) - init_behavior = nifake.SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION - grpc_options = nifake.GrpcSessionOptions(object(), session_name, initialization_behavior=init_behavior) - interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - try: - interpreter.init_with_options('dev1', False, False, '') - assert False - except nifake.Error as e: - assert e.rpc_code == grpc_error - assert e.description == error_message - assert str(e) == f'StatusCode.FAILED_PRECONDITION: {error_message}' - - @pytest.mark.timeout(2) - def test_lock_unlock(self): - # Note: this is purely local; don't set up any grpc mocks - interpreter = self._get_initialized_stub_interpreter() - interpreter.lock() - interpreter.lock() # ensure recurive locking is allowed - interpreter.unlock() - interpreter.unlock() - - def test_simple_function(self): - library_func = 'PoorlyNamedSimpleFunction' - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.simple_function() is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_get_a_number(self): - library_func = 'GetANumber' - test_number = 16 - response_object = self._set_side_effect(library_func, a_number=test_number) - interpreter = self._get_initialized_stub_interpreter() - test_result = interpreter.get_a_number() - assert isinstance(test_result, int) - assert test_result == test_number - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_one_input_function(self): - library_func = 'OneInputFunction' - test_number = 1 - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.one_input_function(test_number) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, a_number=test_number - ) - - def test_vi_int_64_function(self): - library_func = 'Use64BitNumber' - input_value = 2 ** 40 - output_value = 2 ** 41 - response_object = self._set_side_effect(library_func, output=output_value) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.use64_bit_number(input_value) == output_value - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, input=input_value - ) - - def test_two_input_function(self): - library_func = 'TwoInputFunction' - test_number = 1.5 - test_string = 'test' - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.two_input_function(test_number, test_string) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, a_number=test_number, a_string=test_string - ) - - def test_get_enum_value(self): - library_func = 'GetEnumValue' - test_number = 1 - test_turtle = nifake.Turtle.LEONARDO - response_object = self._set_side_effect(library_func, a_quantity=test_number, a_turtle=test_turtle.value) - interpreter = self._get_initialized_stub_interpreter() - test_result_number, test_result_enum = interpreter.get_enum_value() - assert isinstance(test_result_number, int) - assert test_result_number == test_number - assert isinstance(test_result_enum, nifake.Turtle) - assert test_result_enum == test_turtle - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_get_a_list_enums(self): - library_func = 'EnumArrayOutputFunction' - test_list = [1, 1, 0] - response_object = self._set_side_effect(library_func, an_array=test_list) - interpreter = self._get_initialized_stub_interpreter() - test_result = interpreter.enum_array_output_function(len(test_list)) - assert len(test_list) == len(test_result) - for expected_value, actual_value in zip(test_list, test_result): - assert isinstance(actual_value, nifake.Turtle) - assert actual_value.value == expected_value - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_elements=len(test_list) - ) - - def test_get_a_boolean(self): - library_func = 'GetABoolean' - response_object = self._set_side_effect(library_func, a_boolean=True) - interpreter = self._get_initialized_stub_interpreter() - test_result = interpreter.get_a_boolean() - assert test_result is True - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_get_a_list_booleans(self): - library_func = 'BoolArrayOutputFunction' - test_list = [True, True, False] - response_object = self._set_side_effect(library_func, an_array=test_list) - interpreter = self._get_initialized_stub_interpreter() - test_result = interpreter.bool_array_output_function(len(test_list)) - assert len(test_list) == len(test_result) - for expected_value, actual_value in zip(test_list, test_result): - assert actual_value is expected_value - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_elements=len(test_list) - ) - - def test_single_point_read_nan(self): - library_func = 'Read' - test_maximum_time_s = 10.0 - test_reading = float('NaN') - response_object = self._set_side_effect(library_func, reading=test_reading) - interpreter = self._get_initialized_stub_interpreter() - assert math.isnan(interpreter.read(test_maximum_time_s)) - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, maximum_time=test_maximum_time_s - ) - - def test_fetch_waveform(self): - library_func = 'FetchWaveform' - expected_waveform_list = [1.0, 0.1, 42.0, 0.42] - response_object = self._set_side_effect(library_func, waveform_data=expected_waveform_list, actual_number_of_samples=len(expected_waveform_list)) - interpreter = self._get_initialized_stub_interpreter() - actual_waveform = interpreter.fetch_waveform(len(expected_waveform_list)) - assert isinstance(actual_waveform[0], float) - assert len(actual_waveform) == len(expected_waveform_list) - for i in range(len(actual_waveform)): - assert actual_waveform[i] == expected_waveform_list[i] - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_samples=len(expected_waveform_list) - ) - - def test_fetch_waveform_into(self): - interpreter = self._get_initialized_stub_interpreter() - waveform = numpy.empty(4, numpy.float64) - try: - interpreter.fetch_waveform_into(waveform) - assert False - except NotImplementedError: - pass - - def test_write_waveform(self): - library_func = 'WriteWaveform' - expected_waveform = [1.1, 2.2, 3.3, 4.4] - expected_array = array.array('d', expected_waveform) - interpreter = self._get_initialized_stub_interpreter() - response_object = self._set_side_effect(library_func) - assert interpreter.write_waveform(expected_array) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, waveform=expected_array - ) - - def test_write_waveform_numpy(self): - waveform = numpy.array([1.1, 2.2, 3.3, 4.4], order='C') - interpreter = self._get_initialized_stub_interpreter() - try: - interpreter.write_waveform_numpy(waveform) - assert False - except NotImplementedError: - pass - - def test_write_waveform_numpy_complex128(self): - library_func = 'WriteWaveformNumpyComplex128' - waveform = numpy.array([1.0 + 2.0j, 3.0 + 4.0j, 5.0 + 6.0j], dtype=numpy.complex128) - grpc_waveform = [ - nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexNumber(real=value.real, imaginary=value.imag) - for value in waveform.ravel() - ] - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.write_waveform_numpy_complex128(waveform) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - waveform_data_array=grpc_waveform, - ) - - def test_write_waveform_numpy_complex64(self): - library_func = 'WriteWaveformNumpyComplex64' - waveform = numpy.array([1.0 + 2.0j, 3.0 + 4.0j, 5.0 + 6.0j], dtype=numpy.complex64) - grpc_waveform = [ - nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexNumberF32(real=value.real, imaginary=value.imag) - for value in waveform.ravel() - ] - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.write_waveform_numpy_complex64(waveform) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - waveform_data_array=grpc_waveform, - ) - - def test_write_waveform_numpy_complex_interleaved_i16(self): - library_func = 'WriteWaveformNumpyComplexInterleavedI16' - waveform = numpy.array([32767, 0, 123, -456], dtype=numpy.int16) - assert len(waveform) % 2 == 0 - grpc_waveform = [ - nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexI16(real=waveform[i], imaginary=waveform[i + 1]) - for i in range(0, len(waveform), 2) - ] - assert len(grpc_waveform) == len(waveform) // 2 - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.write_waveform_numpy_complex_interleaved_i16(waveform) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - waveform_data_array=grpc_waveform, - ) - - def test_function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self): - library_func = 'FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter' - array_3d = numpy.array( - [[[1.0 + 2.0j, 3.0 + 4.0j], [5.0 + 6.0j, 7.0 + 8.0j]], [[9.0 + 10.0j, 11.0 + 12.0j], [13.0 + 14.0j, 15.0 + 16.0j]]], - dtype=numpy.complex128, - ) - grpc_array = [ - nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexNumber(real=value.real, imaginary=value.imag) - for value in array_3d.ravel() - ] - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(array_3d) is None - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - multidimensional_array=grpc_array, - ) - - def test_return_multiple_types(self): - library_func = 'ReturnMultipleTypes' - boolean_val = True - int32_val = 32 - int64_val = 6000000000 - expected_enum_val = nifake.Turtle.LEONARDO - enum_val = nifake._grpc_stub_interpreter.grpc_types.Turtle.TURTLE_LEONARDO - float_val = 1.23 - expected_float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE - float_enum_val = nifake._grpc_stub_interpreter.grpc_types.FloatEnum.FLOAT_ENUM_SIX_POINT_FIVE - raw_float_enum_val = 6.5 - array_val = [0.0, 1.0, 2.0] - array_size = len(array_val) - string_val = 'Testing is fun?' - response_object = self._set_side_effect( - library_func, - a_boolean=boolean_val, - an_int32=int32_val, - an_int64=int64_val, - an_int_enum=enum_val, - a_float=float_val, - a_float_enum_mapped=float_enum_val, - a_float_enum_raw=raw_float_enum_val, - an_array=array_val, - a_string=string_val, - ) - interpreter = self._get_initialized_stub_interpreter() - result_boolean, result_int32, result_int64, result_enum, result_float, result_float_enum, result_array, result_string = interpreter.return_multiple_types(array_size) - assert result_boolean == boolean_val - assert isinstance(result_boolean, bool) - assert result_int32 == int32_val - assert isinstance(result_int32, int) - assert result_int64 == int64_val - assert isinstance(result_int64, int) - assert result_enum == expected_enum_val - assert isinstance(result_enum, nifake.Turtle) - assert result_float == float_val - assert isinstance(result_float, float) - assert result_float_enum == expected_float_enum_val - assert isinstance(result_float_enum, nifake.FloatEnum) - assert result_array == array_val - # assert `list` duck typing (in reality, it's a google._upb._message.RepeatedScalarContainer - assert isinstance(result_array, collections.abc.Sequence) - assert isinstance(result_array[0], float) - assert result_string == string_val - assert isinstance(result_string, str) - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, array_size=array_size - ) - - def test_multiple_array_types(self): - library_func = 'MultipleArrayTypes' - expected_output_array = [0.2, 0.4] - expected_output_array_of_fixed_length = [-6.0, -7.0, -8.0] - output_array_size = len(expected_output_array) - input_array_of_integers = [1, 2] - input_array_of_floats = [-1.0, -2.0] - response_object = self._set_side_effect( - library_func, - output_array=expected_output_array, - output_array_of_fixed_length=expected_output_array_of_fixed_length, - ) - interpreter = self._get_initialized_stub_interpreter() - output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, input_array_of_integers) - assert output_array == output_array - assert expected_output_array_of_fixed_length == output_array_of_fixed_length - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - output_array_size=output_array_size, - input_array_of_floats=input_array_of_floats, - input_array_of_integers=input_array_of_integers, - ) - - def test_multiple_array_types_none_input(self): - library_func = 'MultipleArrayTypes' - expected_output_array = [0.2, 0.4] - expected_output_array_of_fixed_length = [-6.0, -7.0, -8.0] - output_array_size = len(expected_output_array) - input_array_of_floats = [0.1, 0.2] - response_object = self._set_side_effect( - library_func, - output_array=expected_output_array, - output_array_of_fixed_length=expected_output_array_of_fixed_length, - ) - interpreter = self._get_initialized_stub_interpreter() - output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, None) - assert output_array == output_array - assert expected_output_array_of_fixed_length == output_array_of_fixed_length - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - output_array_size=output_array_size, - input_array_of_floats=input_array_of_floats, - input_array_of_integers=None, - ) - - def test_multiple_arrays_same_size(self): - library_func = 'MultipleArraysSameSize' - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] - input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] - input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] - response_object = self._set_side_effect(library_func) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - values1=input_array_of_floats1, - values2=input_array_of_floats2, - values3=input_array_of_floats3, - values4=input_array_of_floats4, - ) - - def test_multiple_arrays_same_size_none_input(self): - library_func = 'MultipleArraysSameSize' - response_object = self._set_side_effect(library_func) - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.multiple_arrays_same_size(input_array_of_floats1, None, None, None) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - values1=input_array_of_floats1, - values2=None, - values3=None, - values4=None, - ) - - def test_multiple_arrays_different_size(self): - library_func = 'MultipleArraysDifferentSize' - response_object = self._set_side_effect(library_func) - values_array = [1.1, 2.2, 3.3] - data_array = [10, 20, 30, 40, 50] - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.multiple_arrays_different_size(values_array, data_array) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - values_array=values_array, - data_array=data_array, - ) - - def test_multiple_arrays_different_size_none_input(self): - library_func = 'MultipleArraysDifferentSize' - response_object = self._set_side_effect(library_func) - values_array = [1.1, 2.2, 3.3] - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.multiple_arrays_different_size(values_array, None) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - values_array=values_array, - data_array=None, - ) - - def test_mixed_ivi_dance_and_len_mechanism(self): - library_func = 'MixedIviDanceAndLenMechanism' - input_values = [1.1, 2.2, 3.3] - expected_output = [4, 5] - response_object = self._set_side_effect(library_func, output_array=expected_output) - interpreter = self._get_initialized_stub_interpreter() - result_array = interpreter.mixed_ivi_dance_and_len_mechanism(input_values) - assert result_array == expected_output - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - input_values=input_values, - ) - - def test_multiple_arrays_same_size_wrong_size(self): - library_func = 'MultipleArraysSameSize' - # grpc-device server checks this server-side and errors with ::grpc::INVALID_ARGUMENT - self._set_side_effect(library_func, side_effect=MyRpcError( - None, - 'The sizes of linked repeated fields [values1, values2, values3, values4] do not match', - grpc_error=grpc.StatusCode.INVALID_ARGUMENT, - )) - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - input_array_of_floats2 = [0.410, 0.420, 0.430] - input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] - input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] - interpreter = self._get_initialized_stub_interpreter() - try: - assert interpreter.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) is None # no outputs - assert False - except ValueError: - pass - - def test_parameters_are_multiple_types(self): - library_func = 'ParametersAreMultipleTypes' - response_object = self._set_side_effect(library_func) - boolean_val = True - int32_val = 32 - int64_val = 6000000000 - enum_val = nifake.Turtle.LEONARDO - float_val = 1.23 - float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE - string_val = 'Testing is fun?' - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.parameters_are_multiple_types(boolean_val, int32_val, int64_val, enum_val, float_val, float_enum_val, string_val) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - a_boolean=boolean_val, - an_int32=int32_val, - an_int64=int64_val, - an_int_enum_raw=enum_val.value, - a_float=float_val, - a_float_enum_raw=float_enum_val.value, - a_string=string_val, - ) - - def test_method_with_error(self): - library_func = 'PoorlyNamedSimpleFunction' - test_error_code = -42 - test_error_desc = 'The answer to the ultimate question' - self._set_side_effect(library_func, side_effect=MyRpcError(test_error_code, test_error_desc)) - interpreter = self._get_initialized_stub_interpreter() - try: - assert interpreter.simple_function() is None # no outputs - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_call_not_enough_parameters_error(self): - interpreter = self._get_initialized_stub_interpreter() - try: - assert interpreter.multiple_array_types(10) is None # no outputs - assert False - except TypeError: - pass - - def test_invalid_method_call_wrong_type_error(self): - interpreter = self._get_initialized_stub_interpreter() - try: - assert interpreter.multiple_array_types('potato', [0.0, 0.1, 0.2]) is None # no outputs - assert False - except TypeError: - pass - - def test_method_with_warning(self): - # We want to capture all of our warnings, not just the first one - warnings.filterwarnings('always', category=nifake.DriverWarning) - - library_func = 'PoorlyNamedSimpleFunction' - test_error_code = 42 - test_error_desc = 'The answer to the ultimate question, only positive' - response_object = self._set_side_effect(library_func, status=test_error_code) - error_response_object = self._set_side_effect('ErrorMessage', error_message=test_error_desc) - interpreter = self._get_initialized_stub_interpreter() - with warnings.catch_warnings(record=True) as w: - assert interpreter.simple_function() is None # no outputs - assert len(w) == 1 - assert issubclass(w[0].category, nifake.DriverWarning) - assert test_error_desc in str(w[0].message) - assert f'Warning {test_error_code} occurred.' in str(w[0].message) - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - self._assert_call('ErrorMessage', error_response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, error_code=test_error_code - ) - - def test_read_with_warning(self): - # We want to capture all of our warnings, not just the first one - warnings.filterwarnings('always', category=nifake.DriverWarning) - - library_func = 'Read' - test_maximum_time_s = 10.0 - test_reading = float('nan') - test_error_code = 42 - test_error_desc = 'The answer to the ultimate question, only positive' - response_object = self._set_side_effect(library_func, status=test_error_code, reading=test_reading) - error_response_object = self._set_side_effect('ErrorMessage', error_message=test_error_desc) - interpreter = self._get_initialized_stub_interpreter() - with warnings.catch_warnings(record=True) as w: - assert math.isnan(interpreter.read(test_maximum_time_s)) - assert len(w) == 1 - assert issubclass(w[0].category, nifake.DriverWarning) - assert test_error_desc in str(w[0].message) - assert f'Warning {test_error_code} occurred.' in str(w[0].message) - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, maximum_time=test_maximum_time_s - ) - self._assert_call('ErrorMessage', error_response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, error_code=test_error_code - ) - - # Retrieving buffers and strings - - def test_get_a_string_of_fixed_maximum_size(self): - library_func = 'GetAStringOfFixedMaximumSize' - test_string = 'A string no larger than the max size of 256 allowed by the function.' - response_object = self._set_side_effect(library_func, a_string=test_string) - interpreter = self._get_initialized_stub_interpreter() - returned_string = interpreter.get_a_string_of_fixed_maximum_size() - assert returned_string == test_string - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_return_a_number_and_a_string(self): - library_func = 'ReturnANumberAndAString' - test_string = 'this string' - test_number = 13 - response_object = self._set_side_effect(library_func, a_string=test_string, a_number=test_number) - interpreter = self._get_initialized_stub_interpreter() - returned_number, returned_string = interpreter.return_a_number_and_a_string() - assert returned_string == test_string - assert returned_number == test_number - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_get_an_ivi_dance_char_array(self): - library_func = 'GetAnIviDanceCharArray' - string_val = 'Testing is fun?' - response_object = self._set_side_effect(library_func, char_array=string_val) - interpreter = self._get_initialized_stub_interpreter() - result_string = interpreter.get_an_ivi_dance_char_array() - assert result_string == string_val - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_get_string_ivi_dance_error(self): - library_func = 'GetAttributeViString' - read_write_string_attribute_id = 1000002 - test_error_code = -1234 - test_error_desc = 'ascending order' - self._set_side_effect(library_func, side_effect=MyRpcError(test_error_code, test_error_desc)) - interpreter = self._get_initialized_stub_interpreter() - try: - assert interpreter.get_attribute_vi_string('', read_write_string_attribute_id) is None # no outputs - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_get_an_ivi_dance_with_a_twist_string(self): - library_func = 'GetAnIviDanceWithATwistString' - string_val = 'Testing is fun?' - response_object = self._set_side_effect(library_func, a_string=string_val, actual_size=len(string_val)) - interpreter = self._get_initialized_stub_interpreter() - result_string = interpreter.get_an_ivi_dance_with_a_twist_string() - assert result_string == string_val - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_get_array_using_ivi_dance(self): - library_func = 'GetArrayUsingIviDance' - response_object = self._set_side_effect(library_func, array_out=[1.1, 2.2]) - interpreter = self._get_initialized_stub_interpreter() - result_array = interpreter.get_array_using_ivi_dance() - assert result_array == [1.1, 2.2] - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - # Attributes - - def test_get_attribute_int32(self): - library_func = 'GetAttributeViInt32' - attribute_id = 1000004 - test_number = 3 - response_object = self._set_side_effect(library_func, attribute_value=test_number) - interpreter = self._get_initialized_stub_interpreter() - attr_int = interpreter.get_attribute_vi_int32('', attribute_id) - assert attr_int == test_number - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id - ) - - def test_set_attribute_int32(self): - library_func = 'SetAttributeViInt32' - response_object = self._set_side_effect(library_func) - attribute_id = 1000004 - test_number = -10 - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_attribute_vi_int32('', attribute_id, test_number) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - channel_name='', - attribute_id=attribute_id, - attribute_value_raw=test_number, - ) - - def test_get_attribute_real64(self): - library_func = 'GetAttributeViReal64' - attribute_id = 1000001 - test_number = 1.5 - response_object = self._set_side_effect(library_func, attribute_value=test_number) - interpreter = self._get_initialized_stub_interpreter() - attr_double = interpreter.get_attribute_vi_real64('', attribute_id) - assert attr_double == test_number - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id - ) - - def test_set_attribute_real64(self): - library_func = 'SetAttributeViReal64' - response_object = self._set_side_effect(library_func) - attribute_id = 1000001 - test_number = 10.1 - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_attribute_vi_real64('', attribute_id, test_number) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - channel_name='', - attribute_id=attribute_id, - attribute_value_raw=test_number, - ) - - def test_get_attribute_string(self): - library_func = 'GetAttributeViString' - attribute_id = 1000002 - string = 'Testing is fun?' - response_object = self._set_side_effect(library_func, attribute_value=string) - interpreter = self._get_initialized_stub_interpreter() - attr_string = interpreter.get_attribute_vi_string('', attribute_id) - assert attr_string == string - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id - ) - - def test_set_attribute_string(self): - library_func = 'SetAttributeViString' - response_object = self._set_side_effect(library_func) - attribute_id = 1000002 - attrib_string = 'This is test string' - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_attribute_vi_string('', attribute_id, attrib_string) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - channel_name='', - attribute_id=attribute_id, - attribute_value_raw='This is test string', - ) - - def test_get_attribute_boolean(self): - library_func = 'GetAttributeViBoolean' - attribute_id = 1000000 - response_object = self._set_side_effect(library_func, attribute_value=True) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.get_attribute_vi_boolean('', attribute_id) - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id - ) - - def test_set_attribute_boolean(self): - library_func = 'SetAttributeViBoolean' - response_object = self._set_side_effect(library_func) - attribute_id = 1000000 - attrib_bool = True - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_attribute_vi_boolean('', attribute_id, attrib_bool) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id, attribute_value=True - ) - - def test_get_attribute_int64(self): - library_func = 'GetAttributeViInt64' - attribute_id = 1000006 - test_number = 6000000000 - response_object = self._set_side_effect(library_func, attribute_value=test_number) - interpreter = self._get_initialized_stub_interpreter() - attr_int = interpreter.get_attribute_vi_int64('', attribute_id) - assert attr_int == test_number - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id - ) - - def test_set_attribute_int64(self): - library_func = 'SetAttributeViInt64' - response_object = self._set_side_effect(library_func) - attribute_id = 1000006 - test_number = -6000000000 - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_attribute_vi_int64('', attribute_id, test_number) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, - channel_name='', - attribute_id=attribute_id, - attribute_value_raw=test_number, - ) - - # Error descriptions - - def test_error_message_returns_error(self): - # We want to capture all of our warnings, not just the first one - warnings.filterwarnings('always', category=nifake.DriverWarning) - - test_error_code = 42 - library_func = 'PoorlyNamedSimpleFunction' - response_object = self._set_side_effect(library_func, status=test_error_code) - error_msg_response_object = self._set_side_effect('ErrorMessage', side_effect=MyRpcError(-3, 'ErrorMessage failed')) - interpreter = self._get_initialized_stub_interpreter() - with warnings.catch_warnings(record=True) as w: - assert interpreter.simple_function() is None # no outputs - assert len(w) == 1 - assert issubclass(w[0].category, nifake.DriverWarning) - assert 'Failed to retrieve error description.' in str(w[0].message) - assert f'Warning {test_error_code} occurred.' in str(w[0].message) - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - self._assert_call('ErrorMessage', error_msg_response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST, error_code=test_error_code) - - # Custom types - - def test_set_custom_type(self): - library_func = 'SetCustomType' - response_object = self._set_side_effect(library_func) - cs = nifake.CustomStruct(struct_int=42, struct_double=4.2) - grpc_cs = nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2) - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_custom_type(cs) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, cs=grpc_cs - ) - - def test_get_custom_type(self): - library_func = 'GetCustomType' - expected_cs = nifake.CustomStruct(struct_int=42, struct_double=4.2) - grpc_cs = nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2) - response_object = self._set_side_effect(library_func, cs=grpc_cs) - interpreter = self._get_initialized_stub_interpreter() - cs = interpreter.get_custom_type() - assert cs.struct_int == expected_cs.struct_int - assert cs.struct_double == expected_cs.struct_double - assert isinstance(cs, type(expected_cs)) - self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) - - def test_set_custom_type_array(self): - library_func = 'SetCustomTypeArray' - response_object = self._set_side_effect(library_func) - cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] - grpc_cs = [nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=43, struct_double=4.3), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.3)] - interpreter = self._get_initialized_stub_interpreter() - assert interpreter.set_custom_type_array(cs) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, cs=grpc_cs - ) - - def test_get_custom_type_array(self): - library_func = 'GetCustomTypeArray' - cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] - grpc_cs = [nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=43, struct_double=4.3), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.3)] - response_object = self._set_side_effect(library_func, cs=grpc_cs) - interpreter = self._get_initialized_stub_interpreter() - cs_test = interpreter.get_custom_type_array(len(cs)) - assert len(cs_test) == len(cs) - for actual, expected in zip(cs_test, cs): - assert actual.struct_int == expected.struct_int - assert actual.struct_double == expected.struct_double - assert isinstance(actual, type(expected)) - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_elements=len(cs) - ) - - def test_get_custom_type_typedef(self): - library_func = 'CustomNestedStructRoundtrip' - csnt = nifake.CustomStructNestedTypedef( - struct_custom_struct=nifake.CustomStruct(struct_int=43, struct_double=4.3), - struct_custom_struct_typedef=nifake.CustomStructTypedef(struct_int=44, struct_double=4.4) - ) - grpc_csnt = nifake._grpc_stub_interpreter.grpc_types.CustomStructNestedTypedef( - struct_custom_struct=nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=43, struct_double=4.3), - struct_custom_struct_typedef=nifake._grpc_stub_interpreter.grpc_types.CustomStructTypedef(struct_int=44, struct_double=4.4) - ) - response_object = self._set_side_effect(library_func, nested_custom_type_out=grpc_csnt) - interpreter = self._get_initialized_stub_interpreter() - csnt_test = interpreter.custom_nested_struct_roundtrip(nested_custom_type_in=csnt) - assert csnt_test.struct_custom_struct.struct_int == csnt.struct_custom_struct.struct_int - assert csnt_test.struct_custom_struct.struct_double == csnt.struct_custom_struct.struct_double - assert csnt_test.struct_custom_struct_typedef.struct_int == csnt.struct_custom_struct_typedef.struct_int - assert csnt_test.struct_custom_struct_typedef.struct_double == csnt.struct_custom_struct_typedef.struct_double - assert isinstance(csnt_test.struct_custom_struct, type(csnt.struct_custom_struct)) - assert isinstance(csnt_test.struct_custom_struct_typedef, type(csnt.struct_custom_struct_typedef)) - assert isinstance(csnt_test, type(csnt)) - request_object = self._assert_call(library_func, response_object) - request_object.assert_called_once() - call = request_object.call_args_list[0] - assert len(call) == 2 - call_args, call_kwargs = call - assert not call_args - assert 'nested_custom_type_in' in call_kwargs - sent_csnt = call_kwargs['nested_custom_type_in'] - assert sent_csnt.struct_custom_struct.struct_int == grpc_csnt.struct_custom_struct.struct_int - assert sent_csnt.struct_custom_struct.struct_double == grpc_csnt.struct_custom_struct.struct_double - assert sent_csnt.struct_custom_struct_typedef.struct_int == grpc_csnt.struct_custom_struct_typedef.struct_int - assert sent_csnt.struct_custom_struct_typedef.struct_double == grpc_csnt.struct_custom_struct_typedef.struct_double - assert isinstance(sent_csnt.struct_custom_struct, type(grpc_csnt.struct_custom_struct)) - assert isinstance(sent_csnt.struct_custom_struct_typedef, type(grpc_csnt.struct_custom_struct_typedef)) - assert isinstance(sent_csnt, type(grpc_csnt)) - - def test_get_cal_date_time(self): - library_func = 'GetCalDateAndTime' - month = 12 - day = 30 - year = 1988 - hour = 10 - minute = 15 - response_object = self._set_side_effect( - library_func, month=month, day=day, year=year, hour=hour, minute=minute - ) - interpreter = self._get_initialized_stub_interpreter() - last_cal = interpreter.get_cal_date_and_time(0) - assert (month, day, year, hour, minute) == last_cal - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, cal_type=0 - ) - - # Import/Export functions - - def test_import_attribute_configuration_buffer(self): - library_func = 'ImportAttributeConfigurationBuffer' - configuration = b'abcd' - interpreter = self._get_initialized_stub_interpreter() - response_object = self._set_side_effect(library_func) - assert interpreter.import_attribute_configuration_buffer(configuration) is None # no outputs - self._assert_call(library_func, response_object).assert_called_once_with( - vi=GRPC_SESSION_OBJECT_FOR_TEST, configuration=configuration - ) - - def test_missing_function(self): - library_func = 'Abort' - self._set_side_effect(library_func, side_effect=MyRpcError(None, 'not found', grpc_error=grpc.StatusCode.NOT_FOUND)) - interpreter = self._get_initialized_stub_interpreter() - try: - interpreter.abort() - assert False - except nifake.errors.DriverTooOldError as e: - message = e.args[0] - assert message == 'A function was not found in the NI-FAKE runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.' diff --git a/generated/nifake/nifake/unit_tests/test_library_interpreter.py b/generated/nifake/nifake/unit_tests/test_library_interpreter.py deleted file mode 100644 index 8a7c5f8e02..0000000000 --- a/generated/nifake/nifake/unit_tests/test_library_interpreter.py +++ /dev/null @@ -1,1023 +0,0 @@ -import array -import ctypes -import math -import nifake -import nifake.errors -import numpy -import pytest -import warnings - -from unittest.mock import call -from unittest.mock import MagicMock -from unittest.mock import patch - -import _matchers -import _mock_helper - -SESSION_NUM_FOR_TEST = 42 - - -class TestLibraryInterpreter: - - class PatchedLibrary(nifake._library.Library): - def __init__(self, ctypes_library): - super().__init__(ctypes_library) - - for f in dir(self): - if f.startswith("niFake_") and not f.endswith("_cfunc"): - setattr(self, f, MagicMock()) - - def setup_method(self, method): - self.patched_library = self.PatchedLibrary(None) - self.patched_library_singleton_get = patch('nifake._library_interpreter._library_singleton.get', return_value=self.patched_library) - self.patched_library_singleton_get.start() - - self.side_effects_helper = _mock_helper.SideEffectsHelper() - self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) - self.patched_library.niFake_SetRuntimeEnvironment.side_effect = self.side_effects_helper.niFake_SetRuntimeEnvironment - - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - self.get_ctypes_pointer_for_buffer_side_effect_items = [] - - def teardown_method(self, method): - self.patched_library_singleton_get.stop() - - def get_initialized_library_interpreter(self): - interpreter = nifake._library_interpreter.LibraryInterpreter('windows-1251') - interpreter._vi = SESSION_NUM_FOR_TEST - return interpreter - - def niFake_read_warning(self, vi, maximum_time, reading): # noqa: N802 - reading.contents.value = self.reading - return self.error_code_return - - def get_ctypes_pointer_for_buffer_side_effect(self, value, library_type=None): - ret_val = self.get_ctypes_pointer_for_buffer_side_effect_items[self.get_ctypes_pointer_for_buffer_side_effect_count] - self.get_ctypes_pointer_for_buffer_side_effect_count += 1 - return ret_val - - # Methods - - def test_simple_function(self): - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - interpreter = self.get_initialized_library_interpreter() - interpreter.simple_function() - self.patched_library.niFake_PoorlyNamedSimpleFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) - - def test_get_a_number(self): - test_number = 16 - self.patched_library.niFake_GetANumber.side_effect = self.side_effects_helper.niFake_GetANumber - self.side_effects_helper['GetANumber']['aNumber'] = test_number - interpreter = self.get_initialized_library_interpreter() - test_result = interpreter.get_a_number() - assert isinstance(test_result, int) - assert test_result == test_number - self.patched_library.niFake_GetANumber.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt16PointerMatcher()) - - def test_one_input_function(self): - test_number = 1 - self.patched_library.niFake_OneInputFunction.side_effect = self.side_effects_helper.niFake_OneInputFunction - interpreter = self.get_initialized_library_interpreter() - interpreter.one_input_function(test_number) - self.patched_library.niFake_OneInputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_number)) - - def test_vi_int_64_function(self): - input_value = 2 ** 40 - output_value = 2 ** 41 - self.patched_library.niFake_Use64BitNumber.side_effect = self.side_effects_helper.niFake_Use64BitNumber - self.side_effects_helper['Use64BitNumber']['output'] = output_value - interpreter = self.get_initialized_library_interpreter() - assert interpreter.use64_bit_number(input_value) == output_value - self.patched_library.niFake_Use64BitNumber.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt64Matcher(input_value), _matchers.ViInt64PointerMatcher()) - - def test_two_input_function(self): - test_number = 1.5 - test_string = 'test' - self.patched_library.niFake_TwoInputFunction.side_effect = self.side_effects_helper.niFake_TwoInputFunction - interpreter = self.get_initialized_library_interpreter() - interpreter.two_input_function(test_number, test_string) - self.patched_library.niFake_TwoInputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViReal64Matcher(test_number), _matchers.ViStringMatcher(test_string)) - - def test_get_enum_value(self): - test_number = 1 - test_turtle = nifake.Turtle.LEONARDO - self.patched_library.niFake_GetEnumValue.side_effect = self.side_effects_helper.niFake_GetEnumValue - self.side_effects_helper['GetEnumValue']['aQuantity'] = test_number - self.side_effects_helper['GetEnumValue']['aTurtle'] = 0 - interpreter = self.get_initialized_library_interpreter() - test_result_number, test_result_enum = interpreter.get_enum_value() - assert isinstance(test_result_number, int) - assert test_result_number == test_number - assert isinstance(test_result_enum, nifake.Turtle) - assert test_result_enum == test_turtle - self.patched_library.niFake_GetEnumValue.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32PointerMatcher(), _matchers.ViInt16PointerMatcher()) - - def test_get_a_list_enums(self): - self.patched_library.niFake_EnumArrayOutputFunction.side_effect = self.side_effects_helper.niFake_EnumArrayOutputFunction - test_list = [1, 1, 0] - self.side_effects_helper['EnumArrayOutputFunction']['anArray'] = test_list - interpreter = self.get_initialized_library_interpreter() - test_result = interpreter.enum_array_output_function(len(test_list)) - assert len(test_list) == len(test_result) - for expected_value, actual_value in zip(test_list, test_result): - assert isinstance(actual_value, nifake.Turtle) - assert actual_value.value == expected_value - self.patched_library.niFake_EnumArrayOutputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(test_list)), _matchers.ViInt16BufferMatcher(len(test_list))) - - def test_get_a_boolean(self): - self.patched_library.niFake_GetABoolean.side_effect = self.side_effects_helper.niFake_GetABoolean - self.side_effects_helper['GetABoolean']['aBoolean'] = 1 - interpreter = self.get_initialized_library_interpreter() - test_result = interpreter.get_a_boolean() - assert isinstance(test_result, bool) - assert test_result - self.patched_library.niFake_GetABoolean.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViBooleanPointerMatcher()) - - def test_get_a_list_booleans(self): - self.patched_library.niFake_BoolArrayOutputFunction.side_effect = self.side_effects_helper.niFake_BoolArrayOutputFunction - test_list = [1, 1, 0] - self.side_effects_helper['BoolArrayOutputFunction']['anArray'] = test_list - interpreter = self.get_initialized_library_interpreter() - test_result = interpreter.bool_array_output_function(len(test_list)) - assert len(test_list) == len(test_result) - for expected_value, actual_value in zip(test_list, test_result): - assert isinstance(actual_value, bool) - assert actual_value == bool(expected_value) - self.patched_library.niFake_BoolArrayOutputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(test_list)), _matchers.ViBooleanBufferMatcher(len(test_list))) - - def test_single_point_read_nan(self): - test_maximum_time_s = 10.0 - test_reading = float('NaN') - self.patched_library.niFake_Read.side_effect = self.side_effects_helper.niFake_Read - self.side_effects_helper['Read']['reading'] = test_reading - interpreter = self.get_initialized_library_interpreter() - assert math.isnan(interpreter.read(test_maximum_time_s)) - - def test_fetch_waveform(self): - expected_waveform_list = [1.0, 0.1, 42, .42] - self.patched_library.niFake_FetchWaveform.side_effect = self.side_effects_helper.niFake_FetchWaveform - self.side_effects_helper['FetchWaveform']['waveformData'] = expected_waveform_list - self.side_effects_helper['FetchWaveform']['actualNumberOfSamples'] = len(expected_waveform_list) - - # Because we are mocking _get_ctypes_pointer_for_buffer() we don't end up using the array allocated in the function call. Instead, we will allocate the arrays here - # and have the mock return them. These are the ones that are actually filled in by the function. - expected_waveform = array.array('d', [0]) * len(expected_waveform_list) - expected_waveform_ctypes = ctypes.cast(expected_waveform.buffer_info()[0], ctypes.POINTER(nifake._visatype.ViReal64 * len(expected_waveform_list))) - - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_waveform_ctypes] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - self.patched_library.niFake_WriteWaveform.side_effect = self.side_effects_helper.niFake_WriteWaveform - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - # Because we have mocked away _get_ctypes_pointer_for_buffer(), we ignore the return values here and look at our already allocated arrays to make - # sure they are filled in correctly - interpreter.fetch_waveform(len(expected_waveform_list)) - assert isinstance(expected_waveform[0], float) - assert len(expected_waveform) == len(expected_waveform_list) - for i in range(len(expected_waveform)): - assert expected_waveform[i] == expected_waveform_list[i] - self.patched_library.niFake_FetchWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_waveform), _matchers.ViInt32PointerMatcher()) - - def test_fetch_waveform_into(self): - expected_waveform = [1.0, 0.1, 42, .42] - self.patched_library.niFake_FetchWaveform.side_effect = self.side_effects_helper.niFake_FetchWaveform - self.side_effects_helper['FetchWaveform']['waveformData'] = expected_waveform - self.side_effects_helper['FetchWaveform']['actualNumberOfSamples'] = len(expected_waveform) - interpreter = self.get_initialized_library_interpreter() - waveform = numpy.empty(len(expected_waveform), numpy.float64) - interpreter.fetch_waveform_into(waveform) - assert numpy.array_equal(waveform, expected_waveform) - self.patched_library.niFake_FetchWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_waveform), _matchers.ViInt32PointerMatcher()) - - def test_write_waveform(self): - expected_waveform = [1.1, 2.2, 3.3, 4.4] - expected_array = array.array('d', expected_waveform) - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_waveform] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - self.patched_library.niFake_WriteWaveform.side_effect = self.side_effects_helper.niFake_WriteWaveform - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - interpreter.write_waveform(expected_array) - self.patched_library.niFake_WriteWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_array)) - - def test_write_waveform_numpy(self): - expected_waveform = numpy.array([1.1, 2.2, 3.3, 4.4], order='C') - self.patched_library.niFake_WriteWaveform.side_effect = self.side_effects_helper.niFake_WriteWaveform - interpreter = self.get_initialized_library_interpreter() - interpreter.write_waveform_numpy(expected_waveform) - self.patched_library.niFake_WriteWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_waveform)) - - def test_return_multiple_types(self): - self.patched_library.niFake_ReturnMultipleTypes.side_effect = self.side_effects_helper.niFake_ReturnMultipleTypes - boolean_val = True - int32_val = 32 - int64_val = 6000000000 - enum_val = nifake.Turtle.LEONARDO - float_val = 1.23 - float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE - array_val = [0, 1, 2] - array_size = len(array_val) - string_val = 'Testing is fun?' - self.side_effects_helper['ReturnMultipleTypes']['return'] = len(string_val) - self.side_effects_helper['ReturnMultipleTypes']['aBoolean'] = boolean_val - self.side_effects_helper['ReturnMultipleTypes']['anInt32'] = int32_val - self.side_effects_helper['ReturnMultipleTypes']['anInt64'] = int64_val - self.side_effects_helper['ReturnMultipleTypes']['anIntEnum'] = enum_val.value - self.side_effects_helper['ReturnMultipleTypes']['aFloat'] = float_val - self.side_effects_helper['ReturnMultipleTypes']['aFloatEnum'] = float_enum_val.value - self.side_effects_helper['ReturnMultipleTypes']['anArray'] = array_val - self.side_effects_helper['ReturnMultipleTypes']['aString'] = string_val - self.side_effects_helper['ReturnMultipleTypes']['return'] = 0 - interpreter = self.get_initialized_library_interpreter() - result_boolean, result_int32, result_int64, result_enum, result_float, result_float_enum, result_array, result_string = interpreter.return_multiple_types(array_size) - assert result_boolean == boolean_val - assert isinstance(result_boolean, bool) - assert result_int32 == int32_val - assert isinstance(result_int32, int) - assert result_int64 == int64_val - assert isinstance(result_int64, int) - assert result_enum == enum_val - assert isinstance(result_enum, nifake.Turtle) - assert result_float == float_val - assert isinstance(result_float, float) - assert result_float_enum == float_enum_val - assert isinstance(result_float_enum, nifake.FloatEnum) - assert result_array == array_val - assert isinstance(result_array, list) - assert isinstance(result_array[0], float) - assert result_string == string_val - assert isinstance(result_string, str) - assert self.patched_library.niFake_ReturnMultipleTypes.call_count == 2 - - def test_multiple_array_types(self): - self.patched_library.niFake_MultipleArrayTypes.side_effect = self.side_effects_helper.niFake_MultipleArrayTypes - expected_output_array = [0.2, 0.4] - expected_output_array_of_fixed_length = [-6, -7, -8] - output_array_size = len(expected_output_array) - input_array_of_integers = [1, 2] - input_array_of_floats = [-1.0, -2.0] - self.side_effects_helper['MultipleArrayTypes']['outputArray'] = expected_output_array - self.side_effects_helper['MultipleArrayTypes']['outputArrayOfFixedLength'] = expected_output_array_of_fixed_length - interpreter = self.get_initialized_library_interpreter() - output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, input_array_of_integers) - assert output_array == output_array - assert expected_output_array_of_fixed_length == output_array_of_fixed_length - self.patched_library.niFake_MultipleArrayTypes.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViInt32Matcher(output_array_size), - _matchers.ViReal64BufferMatcher(output_array_size), - _matchers.ViReal64BufferMatcher(len(expected_output_array_of_fixed_length)), - _matchers.ViInt32Matcher(len(input_array_of_integers)), - _matchers.ViReal64BufferMatcher(input_array_of_floats), - _matchers.ViInt16BufferMatcher(input_array_of_integers), - ) - - def test_multiple_array_types_none_input(self): - self.patched_library.niFake_MultipleArrayTypes.side_effect = self.side_effects_helper.niFake_MultipleArrayTypes - expected_output_array = [0.2, 0.4] - expected_output_array_of_fixed_length = [-6, -7, -8] - output_array_size = len(expected_output_array) - input_array_of_floats = [0.1, 0.2] - self.side_effects_helper['MultipleArrayTypes']['outputArray'] = expected_output_array - self.side_effects_helper['MultipleArrayTypes']['outputArrayOfFixedLength'] = expected_output_array_of_fixed_length - interpreter = self.get_initialized_library_interpreter() - output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, None) - assert output_array == output_array - assert expected_output_array_of_fixed_length == output_array_of_fixed_length - self.patched_library.niFake_MultipleArrayTypes.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViInt32Matcher(output_array_size), - _matchers.ViReal64BufferMatcher(output_array_size), - _matchers.ViReal64BufferMatcher(len(expected_output_array_of_fixed_length)), - _matchers.ViInt32Matcher(len(input_array_of_floats)), - _matchers.ViReal64BufferMatcher(input_array_of_floats), - None - ) - - def test_multiple_arrays_same_size(self): - self.patched_library.niFake_MultipleArraysSameSize.side_effect = self.side_effects_helper.niFake_MultipleArraysSameSize - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] - input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] - input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] - interpreter = self.get_initialized_library_interpreter() - interpreter.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) - self.patched_library.niFake_MultipleArraysSameSize.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViReal64BufferMatcher(input_array_of_floats1), - _matchers.ViReal64BufferMatcher(input_array_of_floats2), - _matchers.ViReal64BufferMatcher(input_array_of_floats3), - _matchers.ViReal64BufferMatcher(input_array_of_floats4), - _matchers.ViInt32Matcher(len(input_array_of_floats1)), - ) - - def test_multiple_arrays_same_size_none_input(self): - self.patched_library.niFake_MultipleArraysSameSize.side_effect = self.side_effects_helper.niFake_MultipleArraysSameSize - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - interpreter = self.get_initialized_library_interpreter() - interpreter.multiple_arrays_same_size(input_array_of_floats1, None, None, None) - self.patched_library.niFake_MultipleArraysSameSize.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViReal64BufferMatcher(input_array_of_floats1), - None, - None, - None, - _matchers.ViInt32Matcher(len(input_array_of_floats1)), - ) - - def test_multiple_arrays_different_size(self): - self.patched_library.niFake_MultipleArraysDifferentSize.side_effect = self.side_effects_helper.niFake_MultipleArraysDifferentSize - values_array = [1.1, 2.2, 3.3] - data_array = [10, 20, 30, 40, 50] - interpreter = self.get_initialized_library_interpreter() - interpreter.multiple_arrays_different_size(values_array, data_array) - self.patched_library.niFake_MultipleArraysDifferentSize.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViReal64BufferMatcher(values_array), - _matchers.ViInt32Matcher(len(values_array)), - _matchers.ViInt32BufferMatcher(data_array), - _matchers.ViInt32Matcher(len(data_array)), - ) - - def test_multiple_arrays_different_size_none_input(self): - self.patched_library.niFake_MultipleArraysDifferentSize.side_effect = self.side_effects_helper.niFake_MultipleArraysDifferentSize - values_array = [1.1, 2.2, 3.3] - interpreter = self.get_initialized_library_interpreter() - interpreter.multiple_arrays_different_size(values_array, None) - self.patched_library.niFake_MultipleArraysDifferentSize.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViReal64BufferMatcher(values_array), - _matchers.ViInt32Matcher(len(values_array)), - None, - _matchers.ViInt32Matcher(0), - ) - - def test_mixed_ivi_dance_and_len_mechanism(self): - self.patched_library.niFake_MixedIviDanceAndLenMechanism.side_effect = self.side_effects_helper.niFake_MixedIviDanceAndLenMechanism - expected_output = [4, 5] - self.side_effects_helper['MixedIviDanceAndLenMechanism']['outputArray'] = expected_output - interpreter = self.get_initialized_library_interpreter() - result_array = interpreter.mixed_ivi_dance_and_len_mechanism([1.1]) - assert result_array == expected_output - assert self.patched_library.niFake_MixedIviDanceAndLenMechanism.call_count == 2 - - def test_parameters_are_multiple_types(self): - self.patched_library.niFake_ParametersAreMultipleTypes.side_effect = self.side_effects_helper.niFake_ParametersAreMultipleTypes - boolean_val = True - int32_val = 32 - int64_val = 6000000000 - enum_val = nifake.Turtle.LEONARDO - float_val = 1.23 - float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE - string_val = 'Testing is fun?' - interpreter = self.get_initialized_library_interpreter() - interpreter.parameters_are_multiple_types(boolean_val, int32_val, int64_val, enum_val, float_val, float_enum_val, string_val) - self.patched_library.niFake_ParametersAreMultipleTypes.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViBooleanMatcher(boolean_val), _matchers.ViInt32Matcher(int32_val), _matchers.ViInt64Matcher(int64_val), _matchers.ViInt16Matcher(enum_val.value), _matchers.ViReal64Matcher(float_val), _matchers.ViReal64Matcher(float_enum_val.value), _matchers.ViStringMatcher(string_val)) - - def test_method_with_error(self): - test_error_code = -42 - test_error_desc = "The answer to the ultimate question" - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = test_error_code - self.side_effects_helper['GetError']['description'] = test_error_desc - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.simple_function() - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_call_not_enough_parameters_error(self): - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.multiple_array_types(10) - assert False - except TypeError: - pass - - def test_invalid_method_call_wrong_type_error(self): - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.multiple_array_types('potato', [0.0, 0.1, 0.2]) - assert False - except TypeError: - pass - - def test_method_with_warning(self): - # We want to capture all of our warnings, not just the first one - warnings.filterwarnings("always", category=nifake.DriverWarning) - - test_error_code = 42 - test_error_desc = "The answer to the ultimate question, only positive" - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = test_error_code - self.side_effects_helper['GetError']['description'] = test_error_desc - interpreter = self.get_initialized_library_interpreter() - with warnings.catch_warnings(record=True) as w: - interpreter.simple_function() - assert len(w) == 1 - assert issubclass(w[0].category, nifake.DriverWarning) - assert test_error_desc in str(w[0].message) - assert f'Warning {test_error_code} occurred.' in str(w[0].message) - - def test_read_with_warning(self): - # We want to capture all of our warnings, not just the first one - warnings.filterwarnings("always", category=nifake.DriverWarning) - - test_maximum_time_s = 10.0 - test_reading = float('nan') - test_error_code = 42 - test_error_desc = "The answer to the ultimate question, only positive" - self.patched_library.niFake_Read.side_effect = self.niFake_read_warning - self.error_code_return = test_error_code - self.reading = test_reading - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = test_error_code - self.side_effects_helper['GetError']['description'] = test_error_desc - interpreter = self.get_initialized_library_interpreter() - with warnings.catch_warnings(record=True) as w: - assert math.isnan(interpreter.read(test_maximum_time_s)) - assert len(w) == 1 - assert issubclass(w[0].category, nifake.DriverWarning) - assert test_error_desc in str(w[0].message) - assert f'Warning {test_error_code} occurred.' in str(w[0].message) - - def test_library_interpreter_always_uses_same_library_instance(self): - interpreter1 = self.get_initialized_library_interpreter() - interpreter2 = self.get_initialized_library_interpreter() - assert interpreter1 is not interpreter2 - assert interpreter1._library is interpreter2._library - - def test_set_runtime_environment_is_called_once_if_present(self): - nifake._library_interpreter._was_runtime_environment_set = None - self.get_initialized_library_interpreter() - self.get_initialized_library_interpreter() - self.patched_library.niFake_SetRuntimeEnvironment.assert_called_once() - - def test_set_runtime_environment_not_present_in_driver_runtime(self): - class TypesLibrary: - item = "" - - nifake._library_interpreter._was_runtime_environment_set = None - self.patched_library._library = TypesLibrary() - interpreter = self.get_initialized_library_interpreter() - with pytest.raises(nifake.errors.DriverTooOldError): - interpreter._library._get_library_function('niFake_SetRuntimeEnvironment') - - # Retrieving buffers and strings - - def test_get_a_string_of_fixed_maximum_size(self): - test_string = "A string no larger than the max size of 256 allowed by the function." - self.patched_library.niFake_GetAStringOfFixedMaximumSize.side_effect = self.side_effects_helper.niFake_GetAStringOfFixedMaximumSize - self.side_effects_helper['GetAStringOfFixedMaximumSize']['aString'] = test_string - interpreter = self.get_initialized_library_interpreter() - returned_string = interpreter.get_a_string_of_fixed_maximum_size() - assert returned_string == test_string - self.patched_library.niFake_GetAStringOfFixedMaximumSize.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViCharBufferMatcher(256)) - - def test_get_a_string_of_size_python_code(self): - test_size = 4 - expected_string_size = test_size - 1 - test_string = "A string that is larger than test_size." - expected_string = test_string[:expected_string_size] - self.patched_library.niFake_GetAStringUsingPythonCode.side_effect = self.side_effects_helper.niFake_GetAStringUsingPythonCode - self.side_effects_helper['GetAStringUsingPythonCode']['aString'] = expected_string - interpreter = self.get_initialized_library_interpreter() - returned_string = interpreter.get_a_string_using_python_code(test_size) - assert returned_string == expected_string - self.patched_library.niFake_GetAStringUsingPythonCode.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt16Matcher(test_size), _matchers.ViCharBufferMatcher(test_size)) - - def test_return_a_number_and_a_string(self): - test_string = "this string" - test_number = 13 - self.patched_library.niFake_ReturnANumberAndAString.side_effect = self.side_effects_helper.niFake_ReturnANumberAndAString - self.side_effects_helper['ReturnANumberAndAString']['aString'] = test_string - self.side_effects_helper['ReturnANumberAndAString']['aNumber'] = test_number - interpreter = self.get_initialized_library_interpreter() - returned_number, returned_string = interpreter.return_a_number_and_a_string() - assert returned_string == test_string - assert returned_number == test_number - self.patched_library.niFake_ReturnANumberAndAString.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt16PointerMatcher(), _matchers.ViCharBufferMatcher(256)) - - def test_get_an_ivi_dance_char_array(self): - self.patched_library.niFake_GetAnIviDanceCharArray.side_effect = self.side_effects_helper.niFake_GetAnIviDanceCharArray - string_val = 'Testing is fun?' - self.side_effects_helper['GetAnIviDanceCharArray']['charArray'] = string_val - interpreter = self.get_initialized_library_interpreter() - result_string = interpreter.get_an_ivi_dance_char_array() - assert result_string == string_val - calls = [ - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(0), None), - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(string_val)), _matchers.ViCharBufferMatcher(len(string_val))) - ] - self.patched_library.niFake_GetAnIviDanceCharArray.assert_has_calls(calls) - assert self.patched_library.niFake_GetAnIviDanceCharArray.call_count == 2 - - def test_get_string_ivi_dance_error(self): - read_write_string_attribute_id = 1000002 - test_error_code = -1234 - test_error_desc = "ascending order" - self.patched_library.niFake_GetAttributeViString.side_effect = self.side_effects_helper.niFake_GetAttributeViString - self.side_effects_helper['GetAttributeViString']['attributeValue'] = 'Testing is fun?' - self.side_effects_helper['GetAttributeViString']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = test_error_code - self.side_effects_helper['GetError']['description'] = test_error_desc - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.get_attribute_vi_string('', read_write_string_attribute_id) - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_get_an_ivi_dance_with_a_twist_string(self): - self.patched_library.niFake_GetAnIviDanceWithATwistString.side_effect = self.side_effects_helper.niFake_GetAnIviDanceWithATwistString - string_val = 'Testing is fun?' - self.side_effects_helper['GetAnIviDanceWithATwistString']['aString'] = string_val - self.side_effects_helper['GetAnIviDanceWithATwistString']['actualSize'] = len(string_val) - interpreter = self.get_initialized_library_interpreter() - result_string = interpreter.get_an_ivi_dance_with_a_twist_string() - assert result_string == string_val - calls = [ - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(0), None, _matchers.ViInt32PointerMatcher()), - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(string_val)), _matchers.ViCharBufferMatcher(len(string_val)), _matchers.ViInt32PointerMatcher()) - ] - self.patched_library.niFake_GetAnIviDanceWithATwistString.assert_has_calls(calls) - assert self.patched_library.niFake_GetAnIviDanceWithATwistString.call_count == 2 - - def test_get_array_using_ivi_dance(self): - self.patched_library.niFake_GetArrayUsingIviDance.side_effect = self.side_effects_helper.niFake_GetArrayUsingIviDance - self.side_effects_helper['GetArrayUsingIviDance']['arrayOut'] = [1.1, 2.2] - interpreter = self.get_initialized_library_interpreter() - result_array = interpreter.get_array_using_ivi_dance() - assert result_array == [1.1, 2.2] - - # Attributes - - def test_get_attribute_int32(self): - self.patched_library.niFake_GetAttributeViInt32.side_effect = self.side_effects_helper.niFake_GetAttributeViInt32 - attribute_id = 1000004 - test_number = 3 - self.side_effects_helper['GetAttributeViInt32']['attributeValue'] = test_number - interpreter = self.get_initialized_library_interpreter() - attr_int = interpreter.get_attribute_vi_int32('', attribute_id) - assert attr_int == test_number - self.patched_library.niFake_GetAttributeViInt32.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32PointerMatcher()) - - def test_set_attribute_int32(self): - self.patched_library.niFake_SetAttributeViInt32.side_effect = self.side_effects_helper.niFake_SetAttributeViInt32 - attribute_id = 1000004 - test_number = -10 - interpreter = self.get_initialized_library_interpreter() - interpreter.set_attribute_vi_int32('', attribute_id, test_number) - self.patched_library.niFake_SetAttributeViInt32.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(test_number)) - - def test_get_attribute_real64(self): - self.patched_library.niFake_GetAttributeViReal64.side_effect = self.side_effects_helper.niFake_GetAttributeViReal64 - attribute_id = 1000001 - test_number = 1.5 - self.side_effects_helper['GetAttributeViReal64']['attributeValue'] = test_number - interpreter = self.get_initialized_library_interpreter() - attr_double = interpreter.get_attribute_vi_real64('', attribute_id) - assert attr_double == test_number - self.patched_library.niFake_GetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64PointerMatcher()) - - def test_set_attribute_real64(self): - self.patched_library.niFake_SetAttributeViReal64.side_effect = self.side_effects_helper.niFake_SetAttributeViReal64 - attribute_id = 1000001 - test_number = 10.1 - interpreter = self.get_initialized_library_interpreter() - interpreter.set_attribute_vi_real64('', attribute_id, test_number) - self.patched_library.niFake_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) - - def test_get_attribute_string(self): - self.patched_library.niFake_GetAttributeViString.side_effect = self.side_effects_helper.niFake_GetAttributeViString - attribute_id = 1000002 - string = 'Testing is fun?' - self.side_effects_helper['GetAttributeViString']['attributeValue'] = string - interpreter = self.get_initialized_library_interpreter() - attr_string = interpreter.get_attribute_vi_string('', attribute_id) - assert attr_string == string - calls = [ - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(1000002), _matchers.ViInt32Matcher(0), None), - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(15), _matchers.ViCharBufferMatcher(len(string))) - ] - self.patched_library.niFake_GetAttributeViString.assert_has_calls(calls) - assert self.patched_library.niFake_GetAttributeViString.call_count == 2 - - def test_set_attribute_string(self): - self.patched_library.niFake_SetAttributeViString.side_effect = self.side_effects_helper.niFake_SetAttributeViString - attribute_id = 1000002 - attrib_string = 'This is test string' - interpreter = self.get_initialized_library_interpreter() - interpreter.set_attribute_vi_string('', attribute_id, attrib_string) - self.patched_library.niFake_SetAttributeViString.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViStringMatcher('This is test string')) - - def test_get_attribute_boolean(self): - self.patched_library.niFake_GetAttributeViBoolean.side_effect = self.side_effects_helper.niFake_GetAttributeViBoolean - attribute_id = 1000000 - self.side_effects_helper['GetAttributeViBoolean']['attributeValue'] = 1 - interpreter = self.get_initialized_library_interpreter() - assert interpreter.get_attribute_vi_boolean('', attribute_id) - self.patched_library.niFake_GetAttributeViBoolean.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViBooleanPointerMatcher()) - - def test_set_attribute_boolean(self): - self.patched_library.niFake_SetAttributeViBoolean.side_effect = self.side_effects_helper.niFake_SetAttributeViBoolean - attribute_id = 1000000 - attrib_bool = True - interpreter = self.get_initialized_library_interpreter() - interpreter.set_attribute_vi_boolean('', attribute_id, attrib_bool) - self.patched_library.niFake_SetAttributeViBoolean.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViBooleanMatcher(True)) - - def test_get_attribute_int64(self): - self.patched_library.niFake_GetAttributeViInt64.side_effect = self.side_effects_helper.niFake_GetAttributeViInt64 - attribute_id = 1000006 - test_number = 6000000000 - self.side_effects_helper['GetAttributeViInt64']['attributeValue'] = test_number - interpreter = self.get_initialized_library_interpreter() - attr_int = interpreter.get_attribute_vi_int64('', attribute_id) - assert attr_int == test_number - self.patched_library.niFake_GetAttributeViInt64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt64PointerMatcher()) - - def test_set_attribute_int64(self): - self.patched_library.niFake_SetAttributeViInt64.side_effect = self.side_effects_helper.niFake_SetAttributeViInt64 - attribute_id = 1000006 - test_number = -6000000000 - interpreter = self.get_initialized_library_interpreter() - interpreter.set_attribute_vi_int64('', attribute_id, test_number) - self.patched_library.niFake_SetAttributeViInt64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt64Matcher(test_number)) - - # Error descriptions - - def test_get_error_returns_mismatched_error_code(self): - test_error_code = -42 - test_error_desc = "The answer to the ultimate question, only positive" - wrong_error_code = 54 - wrong_error_desc = "What is six times nine" - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = wrong_error_code - self.side_effects_helper['GetError']['description'] = wrong_error_desc - self.patched_library.niFake_error_message.side_effect = self.side_effects_helper.niFake_error_message - self.side_effects_helper['error_message']['errorMessage'] = test_error_desc - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.simple_function() - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - self.patched_library.niFake_PoorlyNamedSimpleFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) - self.patched_library.niFake_error_message.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)) - - def test_get_error_and_error_message_returns_error(self): - test_error_code = -42 - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = -1 - self.side_effects_helper['GetError']['description'] = "Shouldn't get this" - self.side_effects_helper['GetError']['return'] = -2 - self.patched_library.niFake_error_message.side_effect = self.side_effects_helper.niFake_error_message - self.side_effects_helper['error_message']['errorMessage'] = "Also shouldn't get this" - self.side_effects_helper['error_message']['return'] = -3 - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.simple_function() - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == 'Failed to retrieve error description.' - - def test_get_error_description_error_message_error(self): - test_error_code = -42 - test_error_desc = "The answer to the ultimate question" - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = -1 - self.side_effects_helper['GetError']['description'] = "Shouldn't get this" - self.side_effects_helper['GetError']['return'] = -2 - self.patched_library.niFake_error_message.side_effect = self.side_effects_helper.niFake_error_message - self.side_effects_helper['error_message']['errorMessage'] = test_error_desc - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.simple_function() - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - self.patched_library.niFake_error_message.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)) - - def test_get_error_description_error_message_after_session_reset(self): - test_error_code = -42 - test_error_desc = "The answer to the ultimate question" - self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction - self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code - self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError - self.side_effects_helper['GetError']['errorCode'] = -1 - self.side_effects_helper['GetError']['description'] = "Shouldn't get this" - self.side_effects_helper['GetError']['return'] = -2 - self.side_effects_helper['error_message']['errorMessage'] = test_error_desc - - def error_message_side_effect(vi, error_code, error_message_buf): - if vi.value == SESSION_NUM_FOR_TEST: - return -3 - return self.side_effects_helper.niFake_error_message(vi, error_code, error_message_buf) - - self.patched_library.niFake_error_message.side_effect = error_message_side_effect - interpreter = self.get_initialized_library_interpreter() - try: - interpreter.simple_function() - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - assert self.patched_library.niFake_error_message.call_count == 2 - self.patched_library.niFake_error_message.assert_has_calls([ - call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)), - call(_matchers.ViSessionMatcher(0), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)), - ]) - - # Custom types - - def test_set_custom_type(self): - self.patched_library.niFake_SetCustomType.side_effect = self.side_effects_helper.niFake_SetCustomType - cs = nifake.CustomStruct(struct_int=42, struct_double=4.2) - interpreter = self.get_initialized_library_interpreter() - interpreter.set_custom_type(cs) - self.patched_library.niFake_SetCustomType.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.CustomTypeMatcher(nifake.struct_CustomStruct, nifake.struct_CustomStruct(cs))) - - def test_get_custom_type(self): - self.patched_library.niFake_GetCustomType.side_effect = self.side_effects_helper.niFake_GetCustomType - cs_ctype = nifake.struct_CustomStruct(struct_int=42, struct_double=4.2) - self.side_effects_helper['GetCustomType']['cs'] = cs_ctype - interpreter = self.get_initialized_library_interpreter() - cs = interpreter.get_custom_type() - assert cs.struct_int == cs_ctype.struct_int - assert cs.struct_double == cs_ctype.struct_double - - def test_set_custom_type_array(self): - self.patched_library.niFake_SetCustomTypeArray.side_effect = self.side_effects_helper.niFake_SetCustomTypeArray - cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] - cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) - interpreter = self.get_initialized_library_interpreter() - interpreter.set_custom_type_array(cs) - self.patched_library.niFake_SetCustomTypeArray.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(cs)), _matchers.CustomTypeBufferMatcher(nifake.struct_CustomStruct, cs_ctype)) - - def test_get_custom_type_array(self): - self.patched_library.niFake_GetCustomTypeArray.side_effect = self.side_effects_helper.niFake_GetCustomTypeArray - cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] - cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) - self.side_effects_helper['GetCustomTypeArray']['cs'] = cs_ctype - interpreter = self.get_initialized_library_interpreter() - cs_test = interpreter.get_custom_type_array(len(cs_ctype)) - assert len(cs_test) == len(cs_ctype) - for actual, expected in zip(cs_test, cs): - assert actual.struct_int == expected.struct_int - assert actual.struct_double == expected.struct_double - - def test_get_custom_type_typedef(self): - self.patched_library.niFake_GetCustomTypeTypedef.side_effect = self.side_effects_helper.niFake_GetCustomTypeTypedef - cst = nifake.CustomStructTypedef(struct_int=42, struct_double=4.2) - cst_ctype = nifake.struct_CustomStructTypedef(cst) - csnt = nifake.CustomStructNestedTypedef( - struct_custom_struct=nifake.CustomStruct(struct_int=43, struct_double=4.3), - struct_custom_struct_typedef=nifake.CustomStructTypedef(struct_int=44, struct_double=4.4) - ) - csnt_ctype = nifake.struct_CustomStructNestedTypedef(csnt) - self.side_effects_helper['GetCustomTypeTypedef']['cst'] = cst_ctype - self.side_effects_helper['GetCustomTypeTypedef']['csnt'] = csnt_ctype - interpreter = self.get_initialized_library_interpreter() - cst_test, csnt_test = interpreter.get_custom_type_typedef() - assert cst_test.struct_int == cst.struct_int - assert cst_test.struct_double == cst.struct_double - assert csnt_test.struct_custom_struct.struct_int == csnt.struct_custom_struct.struct_int - assert csnt_test.struct_custom_struct.struct_double == csnt.struct_custom_struct.struct_double - assert csnt_test.struct_custom_struct_typedef.struct_int == csnt.struct_custom_struct_typedef.struct_int - assert csnt_test.struct_custom_struct_typedef.struct_double == csnt.struct_custom_struct_typedef.struct_double - - # python-code size mechanism - - def test_get_array_using_python_code_double(self): - import nifake._visatype - self.patched_library.niFake_GetArraySizeForPythonCode.side_effect = self.side_effects_helper.niFake_GetArraySizeForPythonCode - self.patched_library.niFake_GetArrayForPythonCodeDouble.side_effect = self.side_effects_helper.niFake_GetArrayForPythonCodeDouble - array_out = [42.0, 43.0, 44.0] - array_out_ctype = (nifake._visatype.ViReal64 * len(array_out))(*array_out) - self.side_effects_helper['GetArraySizeForPythonCode']['sizeOut'] = len(array_out) - self.side_effects_helper['GetArrayForPythonCodeDouble']['arrayOut'] = array_out_ctype - interpreter = self.get_initialized_library_interpreter() - array_out_test = interpreter.get_array_for_python_code_double() - assert len(array_out_test) == len(array_out) - for actual, expected in zip(array_out_test, array_out): - assert actual == expected - - def test_get_array_using_python_code_custom_type(self): - import nifake._visatype - self.patched_library.niFake_GetArraySizeForPythonCode.side_effect = self.side_effects_helper.niFake_GetArraySizeForPythonCode - self.patched_library.niFake_GetArrayForPythonCodeCustomType.side_effect = self.side_effects_helper.niFake_GetArrayForPythonCodeCustomType - cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] - cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) - self.side_effects_helper['GetArraySizeForPythonCode']['sizeOut'] = len(cs) - self.side_effects_helper['GetArrayForPythonCodeCustomType']['arrayOut'] = cs_ctype - interpreter = self.get_initialized_library_interpreter() - cs_test = interpreter.get_array_for_python_code_custom_type() - assert len(cs_test) == len(cs) - for actual, expected in zip(cs_test, cs): - assert actual.struct_int == expected.struct_int - assert actual.struct_double == expected.struct_double - - def test_get_cal_date_time(self): - self.patched_library.niFake_GetCalDateAndTime.side_effect = self.side_effects_helper.niFake_GetCalDateAndTime - month = 12 - day = 30 - year = 1988 - hour = 10 - minute = 15 - self.side_effects_helper['GetCalDateAndTime']['return'] = 0 - self.side_effects_helper['GetCalDateAndTime']['month'] = month - self.side_effects_helper['GetCalDateAndTime']['day'] = day - self.side_effects_helper['GetCalDateAndTime']['year'] = year - self.side_effects_helper['GetCalDateAndTime']['hour'] = hour - self.side_effects_helper['GetCalDateAndTime']['minute'] = minute - interpreter = self.get_initialized_library_interpreter() - last_cal = interpreter.get_cal_date_and_time(0) - assert (month, day, year, hour, minute) == last_cal - - # Import/Export functions - - def test_import_attribute_configuration_buffer_list_i8(self): - self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer - expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] - configuration = expected_list - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - interpreter.import_attribute_configuration_buffer(configuration) - self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) - - def test_import_attribute_configuration_buffer_bytes(self): - self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer - expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] - configuration = b'abcd' - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - interpreter.import_attribute_configuration_buffer(configuration) - self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) - - def test_import_attribute_configuration_buffer_bytearray(self): - self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer - expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] - configuration = bytearray(b'abcd') - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - interpreter.import_attribute_configuration_buffer(configuration) - self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) - - def test_import_attribute_configuration_buffer_array_bytes(self): - self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer - expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] - configuration = array.array('b', b'abcd') - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - interpreter.import_attribute_configuration_buffer(configuration) - self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) - - def test_import_attribute_configuration_buffer_str(self): - self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer - expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] - configuration = 'abcd' - interpreter = self.get_initialized_library_interpreter() - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): - interpreter.import_attribute_configuration_buffer(configuration) - self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) - - def test_write_waveform_numpy_complex128_valid_input(self): - from nifake._complextype import NIComplexNumber - - waveform_data = numpy.full(1000, 0.707 + 0.707j, dtype=numpy.complex128) - number_of_samples = len(waveform_data) - - waveform_data_ctypes = (NIComplexNumber * number_of_samples)( - *[NIComplexNumber(real=0.707, imag=0.707) for _ in range(number_of_samples)] - ) - waveform_data_pointer = ctypes.cast(waveform_data_ctypes, ctypes.POINTER(NIComplexNumber)) - self.patched_library.niFake_WriteWaveformNumpyComplex128.side_effect = self.side_effects_helper.niFake_WriteWaveformNumpyComplex128 - interpreter = self.get_initialized_library_interpreter() - interpreter.write_waveform_numpy_complex128(waveform_data) - self.patched_library.niFake_WriteWaveformNumpyComplex128.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViInt32Matcher(number_of_samples), - _matchers.NIComplexNumberPointerMatcher(waveform_data_pointer, number_of_samples) - ) - - def test_write_waveform_numpy_complex64_valid_input(self): - from nifake._complextype import NIComplexNumberF32 - - waveform_data = numpy.full(1000, 0.707 + 0.707j, dtype=numpy.complex64) - number_of_samples = len(waveform_data) - - waveform_data_ctypes = (NIComplexNumberF32 * number_of_samples)( - *[NIComplexNumberF32(real=0.707, imag=0.707) for _ in range(number_of_samples)] - ) - waveform_data_pointer = ctypes.cast(waveform_data_ctypes, ctypes.POINTER(NIComplexNumberF32)) - self.patched_library.niFake_WriteWaveformNumpyComplex64.side_effect = self.side_effects_helper.niFake_WriteWaveformNumpyComplex64 - interpreter = self.get_initialized_library_interpreter() - interpreter.write_waveform_numpy_complex64(waveform_data) - self.patched_library.niFake_WriteWaveformNumpyComplex64.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViInt32Matcher(number_of_samples), - _matchers.NIComplexNumberF32PointerMatcher(waveform_data_pointer, number_of_samples) - ) - - def test_write_waveform_numpy_complex_interleaved_i16_valid_input(self): - from nifake._complextype import NIComplexI16 - - waveform_data = numpy.array([32767, 0] * 1000, dtype=numpy.int16) - number_of_samples = len(waveform_data) // 2 - waveform_data_ctypes = (NIComplexI16 * number_of_samples)( - *[NIComplexI16(real=32767, imag=0) for _ in range(number_of_samples)] - ) - waveform_data_pointer = ctypes.cast(waveform_data_ctypes, ctypes.POINTER(NIComplexI16)) - self.patched_library.niFake_WriteWaveformNumpyComplexInterleavedI16.side_effect = self.side_effects_helper.niFake_WriteWaveformNumpyComplexInterleavedI16 - interpreter = self.get_initialized_library_interpreter() - interpreter.write_waveform_numpy_complex_interleaved_i16(waveform_data) - self.patched_library.niFake_WriteWaveformNumpyComplexInterleavedI16.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.ViInt32Matcher(number_of_samples), - _matchers.NIComplexI16PointerMatcher(waveform_data_pointer, number_of_samples) - ) - - def test_write_3d_numpy_array_of_numpy_complex128(self): - from nifake._complextype import NIComplexNumber - - array_3d = numpy.full((2, 3, 4), 1.0 + 2.0j, dtype=numpy.complex128) - number_of_samples = array_3d.size - flattened_array = array_3d.flatten() - complex_array = (NIComplexNumber * len(flattened_array))() - for i, value in enumerate(flattened_array): - complex_array[i] = NIComplexNumber(value.real, value.imag) - flattened_array_ptr = ctypes.cast(complex_array, ctypes.POINTER(NIComplexNumber)) - self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.side_effect = self.side_effects_helper.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter - interpreter = self.get_initialized_library_interpreter() - interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(array_3d) - self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.assert_called_once_with( - _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), - _matchers.NIComplexNumberPointerMatcher(flattened_array_ptr, number_of_samples) - ) - - def test_no_memorycopy_with_multi_dimensional_numpy_complex128_array(self): - array_3d = numpy.full((2, 3, 4), 1.0 + 2.0j, dtype=numpy.complex128) - self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.side_effect = self.side_effects_helper.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter - interpreter = self.get_initialized_library_interpreter() - interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(array_3d) - args, kwargs = self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.call_args - actual_pointer = args[1] - input_address = array_3d.__array_interface__['data'][0] - address_passed_to_library = ctypes.addressof(actual_pointer.contents) - assert input_address == address_passed_to_library, f"Addresses do NOT match: input_address={input_address}, address_passed_to_library={address_passed_to_library}" - - def test_no_memorycopy_with_numpy_complex64_array(self): - array_1d = numpy.full(1000, 0.707 + 0.707j, dtype=numpy.complex64) - self.patched_library.niFake_WriteWaveformNumpyComplex64.side_effect = ( - self.side_effects_helper.niFake_WriteWaveformNumpyComplex64 - ) - interpreter = self.get_initialized_library_interpreter() - interpreter.write_waveform_numpy_complex64(array_1d) - args, kwargs = self.patched_library.niFake_WriteWaveformNumpyComplex64.call_args - actual_pointer = args[2] - input_address = array_1d.__array_interface__['data'][0] - address_passed_to_library = ctypes.addressof(actual_pointer.contents) - assert input_address == address_passed_to_library, ( - f"Addresses do NOT match: input_address={input_address}, address_passed_to_library={address_passed_to_library}" - ) - - def test_matcher_prints(self): - assert _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST).__repr__() == "ViSessionMatcher(" + str(nifake._visatype.ViSession) + ", 42)" - assert _matchers.ViAttrMatcher(SESSION_NUM_FOR_TEST).__repr__() == "ViAttrMatcher(" + str(nifake._visatype.ViAttr) + ", 42)" - assert _matchers.ViInt32Matcher(4).__repr__() == "ViInt32Matcher(" + str(nifake._visatype.ViInt32) + ", 4)" - assert _matchers.ViStringMatcher('0-24').__repr__() == "ViStringMatcher('0-24')" - assert _matchers.ViReal64Matcher(-42.0).__repr__() == "ViReal64Matcher(" + str(nifake._visatype.ViReal64) + ", -42.0)" - assert _matchers.ViReal64PointerMatcher().__repr__() == "ViReal64PointerMatcher(" + str(nifake._visatype.ViReal64) + ")" - assert _matchers.ViInt32PointerMatcher().__repr__() == "ViInt32PointerMatcher(" + str(nifake._visatype.ViInt32) + ")" - cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] - cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) - assert _matchers.CustomTypeMatcher(nifake.struct_CustomStruct, nifake.struct_CustomStruct(cs[0])).__repr__() == "CustomTypeMatcher(, struct_CustomStruct(data=None, struct_int=42, struct_double=4.2))" - assert _matchers.CustomTypeBufferMatcher(nifake.struct_CustomStruct, cs_ctype).__repr__() == "CustomTypeBufferMatcher(, [struct_CustomStruct(data=None, struct_int=42, struct_double=4.2), struct_CustomStruct(data=None, struct_int=43, struct_double=4.3), struct_CustomStruct(data=None, struct_int=42, struct_double=4.3)])" diff --git a/generated/nifake/nifake/unit_tests/test_library_singleton.py b/generated/nifake/nifake/unit_tests/test_library_singleton.py deleted file mode 100644 index 8639515a4c..0000000000 --- a/generated/nifake/nifake/unit_tests/test_library_singleton.py +++ /dev/null @@ -1,7 +0,0 @@ -import nifake -import pytest - - -def test_driver_runtime_not_installed_raises_driver_not_installed_error(): - with pytest.raises(nifake.errors.DriverNotInstalledError): - nifake._library_singleton.get() diff --git a/generated/nifake/nifake/unit_tests/test_session.py b/generated/nifake/nifake/unit_tests/test_session.py deleted file mode 100644 index edc6cd6120..0000000000 --- a/generated/nifake/nifake/unit_tests/test_session.py +++ /dev/null @@ -1,1057 +0,0 @@ -import array -import datetime -import hightime -import nifake -import nifake.errors -import numpy -import pytest - -from unittest.mock import MagicMock -from unittest.mock import patch - -import _mock_helper - -SESSION_NUM_FOR_TEST = 42 -GRPC_SESSION_OBJECT_FOR_TEST = object() - - -class TestSession: - - class PatchedLibraryInterpreter(nifake._library_interpreter.LibraryInterpreter): - def __init__(self, encoding): - for f in dir(self): - if not f.startswith("_") and f not in {'get_session_handle', 'set_session_handle'}: - setattr(self, f, MagicMock(spec_set=getattr(self, f), side_effect=_mock_helper.MockFunctionCallError(f))) - - def setup_method(self, method): - self.patched_library_interpreter = self.PatchedLibraryInterpreter(None) - self.patched_library_interpreter_ctor = patch('nifake.session._library_interpreter.LibraryInterpreter', return_value=self.patched_library_interpreter) - self.patched_library_interpreter_ctor.start() - - # We don't actually call into the nitclk DLL, but we do need to mock the function since it is called - self.tclk_patched_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=None) - self.tclk_patched_library_singleton_get.start() - - # We shouldn't call into grpc - self.patched_grpc_interpreter = patch('nifake._grpc_stub_interpreter.GrpcStubInterpreter', side_effect=AssertionError('Called into grpc!')) - self.patched_grpc_interpreter.start() - - def interpreter_init(*args, **kwargs): - self.patched_library_interpreter._close_on_exit = True - return SESSION_NUM_FOR_TEST - - self.patched_library_interpreter.init_with_options.side_effect = interpreter_init - self.patched_library_interpreter.close.side_effect = [None] - - # Mock lock/unlock - self.patched_library_interpreter.lock.side_effect = lambda *args: None - self.patched_library_interpreter.unlock.side_effect = lambda *args: None - - def teardown_method(self, method): - self.patched_grpc_interpreter.stop() - self.patched_library_interpreter_ctor.stop() - self.tclk_patched_library_singleton_get.stop() - - # Session management - - def test_init_with_options_and_close(self): - session = nifake.Session('dev1') - self.patched_library_interpreter.init_with_options.assert_called_once_with('dev1', False, False, '') - assert session._interpreter._vi == SESSION_NUM_FOR_TEST - session.close() - self.patched_library_interpreter.close.assert_called_once_with() - - def test_init_with_options_nondefault_and_close(self): - session = nifake.Session('FakeDevice', 'Some string', True, True) - self.patched_library_interpreter.init_with_options.assert_called_once_with('FakeDevice', True, True, 'Some string') - assert session._interpreter._vi == SESSION_NUM_FOR_TEST - session.close() - self.patched_library_interpreter.close.assert_called_once_with() - - def test_init_without_grpc_options_does_not_audit(self): - with patch('nitlsconfig.audit_session_connect', autospec=True) as patched_audit: - with nifake.Session('dev1'): - pass - patched_audit.assert_not_called() - - def test_close(self): - session = nifake.Session('dev1') - assert session._interpreter._vi == SESSION_NUM_FOR_TEST - session.close() - self.patched_library_interpreter.close.assert_called_once_with() - assert session._interpreter._vi == 0 - - def test_session_context_manager(self): - with nifake.Session('dev1') as session: - assert isinstance(session, nifake.Session) - self.patched_library_interpreter.init_with_options.assert_called_once_with('dev1', False, False, '') - assert session._interpreter._vi == SESSION_NUM_FOR_TEST - self.patched_library_interpreter.close.assert_called_once_with() - assert session._interpreter._vi == 0 - - def test_init_with_error(self): - test_error_code = -1 - test_error_desc = 'Test' - self.patched_library_interpreter.init_with_options.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - try: - nifake.Session('dev1') - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_close_with_error(self): - test_error_code = -1 - test_error_desc = 'Test' - session = nifake.Session('dev1') - assert session._interpreter._vi == SESSION_NUM_FOR_TEST - self.patched_library_interpreter.close.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - try: - session.close() - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - self.patched_library_interpreter.close.assert_called_once_with() - assert session._interpreter._vi == 0 - - def test_session_context_manager_init_with_error(self): - test_error_code = -1 - test_error_desc = 'Test' - self.patched_library_interpreter.init_with_options.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - try: - with nifake.Session('dev1') as session: - assert isinstance(session, nifake.Session) - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_session_context_manager_close_with_error(self): - test_error_code = -1 - test_error_desc = 'Test' - self.patched_library_interpreter.close.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - try: - with nifake.Session('dev1') as session: - assert isinstance(session, nifake.Session) - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - # Session locking - - def test_lock_session_none(self): - with nifake.Session('dev1') as session: - session.lock() - self.patched_library_interpreter.lock.assert_called_once_with() - - def test_unlock_session_none(self): - with nifake.Session('dev1') as session: - session.unlock() - self.patched_library_interpreter.unlock.assert_called_once_with() - - def test_lock_context_manager(self): - with nifake.Session('dev1') as session: - with session.lock(): - pass - self.patched_library_interpreter.lock.assert_called_once_with() - self.patched_library_interpreter.unlock.assert_called_once_with() - - def test_lock_context_manager_abnormal_exit(self): - with nifake.Session('dev1') as session: - try: - with session.lock(): - raise nifake.Error('Fake exception') - except nifake.Error: - pass - self.patched_library_interpreter.lock.assert_called_once_with() - self.patched_library_interpreter.unlock.assert_called_once_with() - - # Methods - - def test_self_test(self): - test_error_code = 0 - self.patched_library_interpreter.self_test.side_effect = [(test_error_code, '')] - with nifake.Session('dev1') as session: - session.self_test() - - def test_self_test_fail(self): - test_error_code = 1 - test_error_message = 'error message' - self.patched_library_interpreter.self_test.side_effect = [(test_error_code, test_error_message)] - with nifake.Session('dev1') as session: - try: - session.self_test() - assert False - except nifake.errors.SelfTestError as e: - assert e.code == test_error_code - assert e.message == test_error_message - - def test_acquisition_context_manager(self): - self.patched_library_interpreter.initiate.side_effect = [None] - self.patched_library_interpreter.abort.side_effect = [None] - with nifake.Session('dev1') as session: - with session.initiate(): - self.patched_library_interpreter.initiate.assert_called_once_with() - self.patched_library_interpreter.abort.assert_called_once_with() - self.patched_library_interpreter.close.assert_called_once_with() - - def test_acquisition_no_context_manager(self): - self.patched_library_interpreter.initiate.side_effect = [None] - self.patched_library_interpreter.abort.side_effect = [None] - with nifake.Session('dev1') as session: - session.initiate() - self.patched_library_interpreter.initiate.assert_called_once_with() - session.abort() - self.patched_library_interpreter.abort.assert_called_once_with() - self.patched_library_interpreter.close.assert_called_once_with() - - def test_single_point_read_timedelta(self): - test_maximum_time_ns = 1 # nanoseconds - test_maximum_time_s = 1e-9 # seconds - test_maximum_time_timedelta = hightime.timedelta(nanoseconds=test_maximum_time_ns) - test_reading = 5 - self.patched_library_interpreter.read.side_effect = [test_reading] - with nifake.Session('dev1') as session: - assert test_reading == session.read(test_maximum_time_timedelta) - self.patched_library_interpreter.read.assert_called_once_with(test_maximum_time_s) - - def test_enum_input_function_with_defaults(self): - default_turtle = nifake.Turtle.LEONARDO - test_turtle = nifake.Turtle.DONATELLO - self.patched_library_interpreter.enum_input_function_with_defaults.side_effect = [None, None] - with nifake.Session('dev1') as session: - session.enum_input_function_with_defaults() - session.enum_input_function_with_defaults(test_turtle) - from unittest.mock import call - calls = [call(default_turtle), call(test_turtle)] - self.patched_library_interpreter.enum_input_function_with_defaults.assert_has_calls(calls) - - def test_string_valued_enum_input_function_with_defaults(self): - default_mobile_os_name = nifake.MobileOSNames.ANDROID - test_mobile_os_name = nifake.MobileOSNames.IOS - self.patched_library_interpreter.string_valued_enum_input_function_with_defaults.side_effect = [None, None] - with nifake.Session('dev1') as session: - session.string_valued_enum_input_function_with_defaults() - session.string_valued_enum_input_function_with_defaults(test_mobile_os_name) - from unittest.mock import call - calls = [call(default_mobile_os_name), call(test_mobile_os_name)] - self.patched_library_interpreter.string_valued_enum_input_function_with_defaults.assert_has_calls(calls) - - def test_fetch_waveform_into_wrong_type(self): - length = 10 - with nifake.Session('dev1') as session: - waveforms = [ - 10, - 10.5, - "Not a numpy.ndarray", - range(length), - [i + 0.0 for i in range(length)], - numpy.empty(length, numpy.int32), - numpy.empty(length, numpy.uint8) - ] - for w in waveforms: - try: - session.fetch_waveform_into(w) - assert False - except TypeError: - pass - - def test_parameters_are_multiple_types_error(self): - boolean_val = True - int32_val = 32 - int64_val = 6000000000 - enum_val = nifake.Turtle.LEONARDO - float_val = 1.23 - float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE - string_val = 'Testing is fun?' - with nifake.Session('dev1') as session: - try: - session.parameters_are_multiple_types(boolean_val, int32_val, int64_val, 123, float_val, float_enum_val, string_val) - assert False - except TypeError: - pass - try: - session.parameters_are_multiple_types(boolean_val, int32_val, int64_val, enum_val, float_val, 0.123, string_val) - assert False - except TypeError: - pass - - def test_error_with_rep_cap(self): - test_error_code = -42 - test_error_desc = "The answer to the ultimate question" - self.patched_library_interpreter.set_attribute_vi_real64.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - with nifake.Session('dev1') as session: - try: - session.channels['100'].read_write_double = 5.0 - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_call_not_enough_parameters_error(self): - with nifake.Session('dev1') as session: - try: - session.multiple_array_types(10) - assert False - except TypeError: - pass - - def test_enum_input_function_with_defaults_bad_type_error(self): - test_turtle = 123 - with nifake.Session('dev1') as session: - try: - session.enum_input_function_with_defaults(test_turtle) - assert False - except TypeError: - pass - - def test_get_channel_names(self): - channel_indices = [0, 3, 2] - channel_indices_string = '0,3,2' - expected_channel_names_string = 'ch0,ch3,ch2' - expected_channel_names = ['ch0', 'ch3', 'ch2'] - self.patched_library_interpreter.get_channel_names.side_effect = [expected_channel_names_string] - with nifake.Session('dev1') as session: - channel_names_from_session = session.get_channel_names(channel_indices) - assert channel_names_from_session == expected_channel_names - self.patched_library_interpreter.get_channel_names.assert_called_once_with(channel_indices_string) - - # Repeated Capabilities - - def test_repeated_capability_method_on_session_timedelta(self): - test_maximum_time_ms = 10 # milliseconds - test_maximum_time_timedelta = hightime.timedelta(milliseconds=test_maximum_time_ms) - test_reading = 5 - self.patched_library_interpreter.read_from_channel.side_effect = [test_reading] - with nifake.Session('dev1') as session: - value = session.read_from_channel(test_maximum_time_timedelta) - self.patched_library_interpreter.read_from_channel.assert_called_once_with('', test_maximum_time_ms) - assert value == test_reading - - def test_repeated_capability_method_on_specific_channel(self): - test_maximum_time_ms = 10 # milliseconds - test_maximum_time = hightime.timedelta(milliseconds=test_maximum_time_ms) - test_reading = 5 - self.patched_library_interpreter.read_from_channel.side_effect = [test_reading] - with nifake.Session('dev1') as session: - value = session.channels['3'].read_from_channel(test_maximum_time) - self.patched_library_interpreter.read_from_channel.assert_called_once_with('3', test_maximum_time_ms) - assert value == test_reading - - def test_device_method_not_exist_on_repeated_capability_error(self): - with nifake.Session('dev1') as session: - try: - session.channels['3'].simple_function() - assert False, 'Method has no repeated capability so it shouldn\'t exist on _RepeatedCapability' - except AttributeError: - pass - - def test_repeated_capabilities_list(self): - with nifake.Session('dev1') as session: - assert session.channels['r0']._repeated_capability_list == ['r0'] - - def test_chained_repeated_capabilities_list(self): - with nifake.Session('dev1') as session: - assert session.sites[0, 1].channels[2, 3]._repeated_capability_list == ['site0/2', 'site0/3', 'site1/2', 'site1/3'] - - def test_multi_instrument_chained_repeated_capabilities_list(self): - with nifake.Session('dev1,dev2') as session: - assert session.instruments['dev1', 'dev2'].sites[0, 1]._repeated_capability_list == ['dev1/site0', 'dev1/site1', 'dev2/site0', 'dev2/site1'] - - def test_chained_repeated_capability_method_on_specific_channel(self): - test_maximum_time_ms = 10 # milliseconds - test_maximum_time = hightime.timedelta(milliseconds=test_maximum_time_ms) - test_reading = 5 - self.patched_library_interpreter.read_from_channel.side_effect = [test_reading] - with nifake.Session('dev1') as session: - value = session.sites[0, 1].channels[2, 3].read_from_channel(test_maximum_time) - self.patched_library_interpreter.read_from_channel.assert_called_once_with('site0/2,site0/3,site1/2,site1/3', test_maximum_time_ms) - assert value == test_reading - - def test_function_with_repeated_capability_type(self): - self.patched_library_interpreter.function_with_repeated_capability_type.side_effect = [None] - with nifake.Session('dev1') as session: - session.channels['0-3'].function_with_repeated_capability_type() - self.patched_library_interpreter.function_with_repeated_capability_type.assert_called_once_with('0,1,2,3') - - # Attributes - - def test_get_attribute_int32(self): - test_number = 3 - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number] - with nifake.Session('dev1') as session: - attr_int = session.read_write_integer - assert attr_int == test_number - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', 1000004) - - def test_set_attribute_int32(self): - self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] - attribute_id = 1000004 - test_number = -10 - with nifake.Session('dev1') as session: - session.read_write_integer = test_number - self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, test_number) - - def test_get_attribute_int32_with_converter(self): - attribute_id = 1000008 - test_number_ms = 3 - test_number_s = 0.003 - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number_ms] - with nifake.Session('dev1') as session: - attr_timedelta = session.read_write_integer_with_converter - assert attr_timedelta.total_seconds() == test_number_s - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) - - def test_set_attribute_int32_with_converter(self): - self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] - attribute_id = 1000008 - test_number_ms = -10000 - with nifake.Session('dev1') as session: - session.read_write_integer_with_converter = hightime.timedelta(milliseconds=test_number_ms) - self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, test_number_ms) - - def test_get_attribute_int32_with_month_converter(self): - attribute_id = 1000014 - test_number_months = 2 - test_number_s = 5256005.76 - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number_months] - with nifake.Session('dev1') as session: - attr_timedelta = session.read_write_integer_with_month_converter - assert attr_timedelta.total_seconds() == test_number_s - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) - - def test_set_attribute_int32_with_month_converter(self): - self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] - attribute_id = 1000014 - test_number_months = 3 - with nifake.Session('dev1') as session: - session.read_write_integer_with_month_converter = hightime.timedelta(seconds=60 * 60 * 24 * 30.4167 * test_number_months) - self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, test_number_months) - - def test_get_attribute_real64(self): - attribute_id = 1000001 - test_number = 1.5 - self.patched_library_interpreter.get_attribute_vi_real64.side_effect = [test_number] - with nifake.Session('dev1') as session: - attr_double = session.read_write_double - assert attr_double == test_number - self.patched_library_interpreter.get_attribute_vi_real64.assert_called_once_with('', attribute_id) - - def test_set_attribute_real64(self): - self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] - attribute_id = 1000001 - test_number = 10.1 - with nifake.Session('dev1') as session: - session.read_write_double = test_number - self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, test_number) - - def test_get_attribute_real64_with_converter(self): - attribute_id = 1000007 - test_number = 1e-9 - self.patched_library_interpreter.get_attribute_vi_real64.side_effect = [test_number] - with nifake.Session('dev1') as session: - attr_timedelta = session.read_write_double_with_converter - assert attr_timedelta.total_seconds() == test_number - self.patched_library_interpreter.get_attribute_vi_real64.assert_called_once_with('', attribute_id) - - def test_set_attribute_real64_with_converter(self): - self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] - attribute_id = 1000007 - test_number = 1e-9 - with nifake.Session('dev1') as session: - session.read_write_double_with_converter = hightime.timedelta(nanoseconds=1) - self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, test_number) - - def test_get_attribute_string(self): - string = 'Testing is fun?' - self.patched_library_interpreter.get_attribute_vi_string.side_effect = [string] - attribute_id = 1000002 - with nifake.Session('dev1') as session: - attr_string = session.read_write_string - assert attr_string == string - self.patched_library_interpreter.get_attribute_vi_string.assert_called_once_with('', attribute_id) - - def test_set_attribute_string(self): - self.patched_library_interpreter.set_attribute_vi_string.side_effect = [None] - attribute_id = 1000002 - attrib_string = 'This is test string' - with nifake.Session('dev1') as session: - session.read_write_string = attrib_string - self.patched_library_interpreter.set_attribute_vi_string.assert_called_once_with('', attribute_id, 'This is test string') - - def test_get_attribute_comma_separated_string(self): - comma_separated_string = 'PinA,PinB,PinC' - expected_list = ['PinA', 'PinB', 'PinC'] - self.patched_library_interpreter.get_attribute_vi_string.side_effect = [comma_separated_string] - attribute_id = 1000015 - with nifake.Session('dev1') as session: - attr_list = session.read_write_comma_separated_string - assert attr_list == expected_list - self.patched_library_interpreter.get_attribute_vi_string.assert_called_once_with('', attribute_id) - - def test_set_attribute_comma_separated_string(self): - self.patched_library_interpreter.set_attribute_vi_string.side_effect = [None] - attribute_id = 1000015 - attrib_list = ['PinA', 'PinB', 'PinC'] - expected_string = 'PinA,PinB,PinC' - with nifake.Session('dev1') as session: - session.read_write_comma_separated_string = attrib_list - self.patched_library_interpreter.set_attribute_vi_string.assert_called_once_with('', attribute_id, expected_string) - - def test_get_attribute_string_with_converter(self): - string = 'not that interesting' - self.patched_library_interpreter.get_attribute_vi_string.side_effect = [string] - attribute_id = 1000010 - with nifake.Session('dev1') as session: - attr_string = session.read_write_string_repeated_capability - assert attr_string == string - self.patched_library_interpreter.get_attribute_vi_string.assert_called_once_with('', attribute_id) - - def test_set_attribute_string_with_converter(self): - self.patched_library_interpreter.set_attribute_vi_string.side_effect = [None] - attribute_id = 1000010 - with nifake.Session('dev1') as session: - session.read_write_string_repeated_capability = 42 - self.patched_library_interpreter.set_attribute_vi_string.assert_called_once_with('', attribute_id, '42') - - def test_get_attribute_boolean(self): - self.patched_library_interpreter.get_attribute_vi_boolean.side_effect = [1] - attribute_id = 1000000 - with nifake.Session('dev1') as session: - assert session.read_write_bool - self.patched_library_interpreter.get_attribute_vi_boolean.assert_called_once_with('', attribute_id) - - def test_set_attribute_boolean(self): - self.patched_library_interpreter.set_attribute_vi_boolean.side_effect = [None] - attribute_id = 1000000 - attrib_bool = True - with nifake.Session('dev1') as session: - session.read_write_bool = attrib_bool - self.patched_library_interpreter.set_attribute_vi_boolean.assert_called_once_with('', attribute_id, True) - - def test_get_attribute_enum_int32(self): - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [nifake.Color.BLUE] - with nifake.Session('dev1') as session: - assert session.read_write_color == nifake.Color.BLUE - attribute_id = 1000003 - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) - - def test_set_attribute_enum_int32(self): - self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] - enum_value = nifake.Color.RED - with nifake.Session('dev1') as session: - session.read_write_color = enum_value - attribute_id = 1000003 - self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, enum_value.value) - - def test_get_attribute_enum_real64(self): - enum_value = nifake.FloatEnum.SIX_POINT_FIVE - self.patched_library_interpreter.get_attribute_vi_real64.side_effect = [enum_value] - with nifake.Session('dev1') as session: - assert session.float_enum == enum_value - attribute_id = 1000005 - self.patched_library_interpreter.get_attribute_vi_real64.assert_called_once_with('', attribute_id) - - def test_set_attribute_enum_real64(self): - self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] - enum_value = nifake.FloatEnum.FIVE_POINT_FIVE - with nifake.Session('dev1') as session: - session.float_enum = enum_value - attribute_id = 1000005 - self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, enum_value.value) - - def test_get_attribute_enum_with_converter(self): - enum_value = nifake.EnumWithConverter.RED - converted_value = True - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [enum_value] - with nifake.Session('dev1') as session: - assert session.read_write_enum_with_converter == converted_value - attribute_id = 1000011 - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) - - def test_get_attribute_enum_with_converter_invalid_value_from_driver(self): - invalid_value_from_driver = 0 - expected_error_message = 'The NI-FAKE runtime returned an unexpected value. This can occur if it is too new for the nifake Python module. Upgrade the nifake Python module.' - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [invalid_value_from_driver] - with nifake.Session('dev1') as session: - try: - session.read_write_enum_with_converter - assert False - except nifake.errors.DriverTooNewError as actual_error: - actual_error_message = actual_error.args[0] - assert actual_error_message == expected_error_message - attribute_id = 1000011 - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) - - def test_set_attribute_enum_with_converter(self): - enum_value = nifake.EnumWithConverter.RED - converted_value = True - self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] - with nifake.Session('dev1') as session: - session.read_write_enum_with_converter = converted_value - attribute_id = 1000011 - self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, enum_value.value) - - def test_set_attribute_enum_with_converter_invalid_input(self): - invalid_input_value = 'invalid' - expected_error_description = "Invalid value: invalid" - self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] - with nifake.Session('dev1') as session: - try: - session.read_write_enum_with_converter = invalid_input_value - assert False - except ValueError as actual_error: - actual_error_message = actual_error.args[0] - assert actual_error_message == expected_error_description - assert not self.patched_library_interpreter.set_attribute_vi_int32.called - - def test_get_attribute_channel(self): - test_number = 100 - self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number] - attribute_id = 1000004 - with nifake.Session('dev1') as session: - attr_int = session.channels[['0', '1']].read_write_integer - assert attr_int == test_number - self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('0,1', attribute_id) - - def test_set_attribute_channel(self): - self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] - attribute_id = 1000001 - test_number = 0.001 - with nifake.Session('dev1') as session: - session.channels[range(24)].read_write_double = test_number - self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23', attribute_id, test_number) - - def test_get_attribute_int64(self): - attribute_id = 1000006 - test_number = 6000000000 - self.patched_library_interpreter.get_attribute_vi_int64.side_effect = [test_number] - with nifake.Session('dev1') as session: - attr_int = session.read_write_int64 - assert attr_int == test_number - self.patched_library_interpreter.get_attribute_vi_int64.assert_called_once_with('', attribute_id) - - def test_set_attribute_int64(self): - self.patched_library_interpreter.set_attribute_vi_int64.side_effect = [None] - attribute_id = 1000006 - test_number = -6000000000 - with nifake.Session('dev1') as session: - session.read_write_int64 = test_number - self.patched_library_interpreter.set_attribute_vi_int64.assert_called_once_with('', attribute_id, test_number) - - def test_get_attribute_error(self): - test_error_code = -123 - test_error_desc = "ascending order" - self.patched_library_interpreter.get_attribute_vi_real64.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - with nifake.Session('dev1') as session: - try: - session.read_write_double - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - - def test_set_attribute_error(self): - attribute_id = 1000001 - test_error_code = -1 - test_error_desc = 'Test' - self.patched_library_interpreter.set_attribute_vi_real64.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) - with nifake.Session('dev1') as session: - try: - session.read_write_double = -42.0 - assert False - except nifake.Error as e: - assert e.code == test_error_code - assert e.description == test_error_desc - self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, -42.0) - - def test_add_properties_to_session_error_set(self): - with nifake.Session('dev1') as session: - try: - session.non_existent_property = 5 - assert False - except AttributeError as e: - assert str(e) == "'Session' object has no attribute 'non_existent_property'" - - def test_add_properties_to_session_error_get(self): - with nifake.Session('dev1') as session: - try: - value = session.non_existent_property # noqa: F841 - assert False - except AttributeError as e: - assert str(e) == "'Session' object has no attribute 'non_existent_property'" - - def test_add_properties_to_repeated_capability_error_set(self): - with nifake.Session('dev1') as session: - try: - session.channels['0'].non_existent_property = 5 - assert False - except AttributeError as e: - assert str(e) == "'_SessionBase' object has no attribute 'non_existent_property'" - - def test_add_properties_to_repeated_capability_error_get(self): - with nifake.Session('dev1') as session: - try: - value = session.channels['0'].non_existent_property # noqa: F841 - assert False - except AttributeError as e: - assert str(e) == "'_SessionBase' object has no attribute 'non_existent_property'" - - def test_set_enum_attribute_int32_error(self): - with nifake.Session('dev1') as session: - try: - session.read_write_color = 5 - except TypeError as e: - assert str(e) == 'must be Color not int' - - def test_set_wrong_enum_attribute_int32_error(self): - with nifake.Session('dev1') as session: - try: - session.read_write_color = nifake.FloatEnum.SIX_POINT_FIVE - except TypeError as e: - assert str(e) == 'must be Color not FloatEnum' - - def test_multiple_arrays_same_size_wrong_size_2(self): - with nifake.Session('dev1') as session: - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - input_array_of_floats2 = [0.410, 0.420, 0.430] - input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] - input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] - try: - session.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) - except ValueError: - pass - - def test_multiple_arrays_same_size_wrong_size_3(self): - with nifake.Session('dev1') as session: - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] - input_array_of_floats3 = [4.100, 4.200, 4.400] - input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] - try: - session.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) - except ValueError: - pass - - def test_multiple_arrays_same_size_wrong_size_4(self): - with nifake.Session('dev1') as session: - input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] - input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] - input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] - input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00, 45.00] - try: - session.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) - except ValueError: - pass - - def test_multiple_arrays_different_size_none_input(self): - values_array = [1.1, 2.2, 3.3] - self.patched_library_interpreter.multiple_arrays_different_size.side_effect = [None] - with nifake.Session('dev1') as session: - assert session.multiple_arrays_different_size(values_array, None) is None - self.patched_library_interpreter.multiple_arrays_different_size.assert_called_once_with(values_array, None) - - def test_get_cal_date_time(self): - month = 12 - day = 30 - year = 1988 - hour = 10 - minute = 15 - self.patched_library_interpreter.get_cal_date_and_time.side_effect = [(month, day, year, hour, minute)] - with nifake.Session('dev1') as session: - last_cal = session.get_cal_date_and_time(0) - assert isinstance(last_cal, hightime.datetime) - assert hightime.datetime(year, month, day, hour, minute) == last_cal - - def test_get_cal_interval(self): - self.patched_library_interpreter.get_cal_interval.side_effect = [24] - with nifake.Session('dev1') as session: - last_cal = session.get_cal_interval() - assert isinstance(last_cal, hightime.timedelta) - assert 730 == last_cal.days - - # Import/Export functions - Invalid types - - def test_import_attribute_configuration_buffer_list_i8_big(self): - expected_list = [ord('a') * 100, ord('b') * 100, ord('c') * 100, ord('d') * 100] - configuration = expected_list - with nifake.Session('dev1') as session: - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - try: - session.import_attribute_configuration_buffer(configuration) - assert False - except ValueError: - pass - - def test_import_attribute_configuration_buffer_list_i8_float(self): - expected_list = [ord('a') * 1.0, ord('b') * 1.0, ord('c') * 1.0, ord('d') * 1.0] - configuration = expected_list - with nifake.Session('dev1') as session: - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - try: - session.import_attribute_configuration_buffer(configuration) - assert False - except TypeError: - pass - - def test_import_attribute_configuration_buffer_list_i8_big_float(self): - expected_list = [ord('a') * 100.0, ord('b') * 100.0, ord('c') * 100.0, ord('d') * 100.0] - configuration = expected_list - with nifake.Session('dev1') as session: - self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] - self.get_ctypes_pointer_for_buffer_side_effect_count = 0 - try: - session.import_attribute_configuration_buffer(configuration) - assert False - except TypeError: - pass - - def test_export_attribute_configuration_buffer(self): - expected_buffer_list = [ord('a'), ord('b'), ord('c'), ord('d'), ] - self.patched_library_interpreter.export_attribute_configuration_buffer.side_effect = [expected_buffer_list] - with nifake.Session('dev1') as session: - actual_configuration = session.export_attribute_configuration_buffer() - assert type(actual_configuration) is bytes - assert actual_configuration == bytes(expected_buffer_list) - self.patched_library_interpreter.export_attribute_configuration_buffer.assert_called_once_with() - - def test_channel_on_session(self): - with nifake.Session('dev1') as session: - try: - session['100'].read_write_double = 5.0 - assert False - except TypeError: - pass - - def test_function_name(self): - with nifake.Session('dev1') as session: - # Pick a function that uses @ivi_synchronized - assert session.bool_array_output_function.__name__ == 'bool_array_output_function' - # Pick several functions that do not use @ivi_synchronized to make sure they don't break in the future - assert session.lock.__name__ == 'lock' - assert session._error_message.__name__ == '_error_message' - assert session.initiate.__name__ == 'initiate' - # Cannot use session..__name__ since that invokes the get attribute value and the returned value - # (string, int, float) don't have __name__ properties - - def test_buffer_converter(self): - self.patched_library_interpreter.double_all_the_nums.side_effect = [None] - nums = [1, 2, 3, 4.2] - nums_x2 = [x * 2 for x in nums] - with nifake.Session('dev1') as session: - session.double_all_the_nums(nums) - self.patched_library_interpreter.double_all_the_nums.assert_called_once_with(nums_x2) - - def test_nitclk_integration(self): - with nifake.Session('dev1') as session: - assert str(type(session.tclk)) == "" - - def test_accept_list_of_time_values_as_floats(self): - self.patched_library_interpreter.accept_list_of_durations_in_seconds.side_effect = [None] - delays = [-1.5, 2.0] - with nifake.Session('dev1') as session: - session.accept_list_of_durations_in_seconds(delays) - self.patched_library_interpreter.accept_list_of_durations_in_seconds.assert_called_once_with(delays) - - def test_accept_array_of_time_values_as_floats(self): - self.patched_library_interpreter.accept_list_of_durations_in_seconds.side_effect = [None] - time_values = [-1.5, 2.0] - delays = array.array('d', time_values) - with nifake.Session('dev1') as session: - session.accept_list_of_durations_in_seconds(delays) - self.patched_library_interpreter.accept_list_of_durations_in_seconds.assert_called_once_with(time_values) - - def test_accept_list_of_time_values_as_timedelta_instances(self): - self.patched_library_interpreter.accept_list_of_durations_in_seconds.side_effect = [None] - time_values = [-1.5, 2e-9] - delays = [datetime.timedelta(seconds=-1.5), hightime.timedelta(nanoseconds=2)] - with nifake.Session('dev1') as session: - session.accept_list_of_durations_in_seconds(delays) - self.patched_library_interpreter.accept_list_of_durations_in_seconds.assert_called_once_with(time_values) - - def test_return_timedelta(self): - time_value = -1.5 - expected_timedelta = hightime.timedelta(seconds=time_value) - self.patched_library_interpreter.return_duration_in_seconds.side_effect = [time_value] - with nifake.Session('dev1') as session: - returned_timedelta = session.return_duration_in_seconds() - assert returned_timedelta == expected_timedelta - self.patched_library_interpreter.return_duration_in_seconds.assert_called_once_with() - - def test_return_timedeltas(self): - time_values = [-1.5, 2.0] - expected_timedeltas = [hightime.timedelta(seconds=i) for i in time_values] - self.patched_library_interpreter.return_list_of_durations_in_seconds.side_effect = [time_values] - with nifake.Session('dev1') as session: - returned_timedeltas = session.return_list_of_durations_in_seconds(len(expected_timedeltas)) - assert len(returned_timedeltas) == len(expected_timedeltas) - assert returned_timedeltas == expected_timedeltas - self.patched_library_interpreter.return_list_of_durations_in_seconds.assert_called_once_with(len(time_values)) - - def test_with_valid_intflag_parameter(self): - flags = nifake.IntFlagEnum.E | nifake.IntFlagEnum.A - self.patched_library_interpreter.function_with_intflag_parameter.side_effect = None - self.patched_library_interpreter.function_with_intflag_parameter.return_value = None - with nifake.Session('dev1') as session: - session.function_with_intflag_parameter(flags) - self.patched_library_interpreter.function_with_intflag_parameter.assert_called_once_with(1073741825) - - def test_with_intflag_parameter_invalid(self): - invalid_flag = 5 - with nifake.Session('dev1') as session: - try: - session.function_with_intflag_parameter(invalid_flag) - assert False - except TypeError: - pass - - def test_session_write_waveform_numpy_complex64_invalid_dtype(self): - invalid_waveform_data = numpy.full(10, 1.0 + 1.0j, dtype=numpy.complex128) - expected_error_message = "waveform_data_array must be numpy.ndarray of dtype=complex64, is complex128" - with nifake.Session('dev1') as session: - with pytest.raises(TypeError) as exc_info: - session.write_waveform_numpy_complex64(invalid_waveform_data) - assert str(exc_info.value) == expected_error_message - - def test_session_write_waveform_numpy_complex128_invalid_dtype(self): - invalid_waveform_data = numpy.full(10, 1.0 + 1.0j, dtype=numpy.complex64) - expected_error_message = "waveform_data_array must be numpy.ndarray of dtype=complex128, is complex64" - with nifake.Session('dev1') as session: - with pytest.raises(TypeError) as exc_info: - session.write_waveform_numpy_complex128(invalid_waveform_data) - assert str(exc_info.value) == expected_error_message - - def test_session_write_waveform_numpy_complex_interleaved_i16_invalid_dtype(self): - invalid_waveform_data = numpy.full(10, 1.0 + 1.0j, dtype=numpy.complex64) - expected_error_message = "waveform_data_array must be numpy.ndarray of dtype=int16, is complex64" - with nifake.Session('dev1') as session: - with pytest.raises(TypeError) as exc_info: - session.write_waveform_numpy_complex_interleaved_i16(invalid_waveform_data) - assert str(exc_info.value) == expected_error_message - - -class TestGrpcSession: - - class PatchedGrpcInterpreter(nifake._grpc_stub_interpreter.GrpcStubInterpreter): - def __init__(self, grpc_options): - for f in dir(self): - if not f.startswith("_") and f not in {'get_session_handle', 'set_session_handle'}: - setattr(self, f, MagicMock(spec_set=getattr(self, f), side_effect=_mock_helper.MockFunctionCallError(f))) - - def setup_method(self, method): - self.patched_grpc_interpreter = self.PatchedGrpcInterpreter(None) - self.patched_grpc_constructor = patch('nifake._grpc_stub_interpreter.GrpcStubInterpreter', return_value=self.patched_grpc_interpreter) - self.patched_grpc_constructor.start() - - # We don't actually call into the nitclk DLL, but we do need to mock the function since it is called - self.tclk_patched_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=None) - self.tclk_patched_library_singleton_get.start() - - def interpreter_init(*args, **kwargs): - self.patched_grpc_interpreter._close_on_exit = True - return GRPC_SESSION_OBJECT_FOR_TEST - - self.patched_grpc_interpreter.init_with_options.side_effect = interpreter_init - self.patched_grpc_interpreter._close_on_exit = True - self.patched_grpc_interpreter.close.side_effect = [None] - - # Mock lock/unlock - self.patched_grpc_interpreter.lock.side_effect = lambda *args: None - self.patched_grpc_interpreter.unlock.side_effect = lambda *args: None - - def teardown_method(self, method): - self.patched_grpc_constructor.stop() - self.tclk_patched_library_singleton_get.stop() - - # Session management - - def test_init_with_options_and_close(self): - session = nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) - self.patched_grpc_interpreter.init_with_options.assert_called_once_with('dev1', False, False, '') - assert session._interpreter._vi == GRPC_SESSION_OBJECT_FOR_TEST - session.close() - self.patched_grpc_interpreter.close.assert_called_once_with() - - def test_init_audits_successful_connect(self, nitls_tagged_channel): - with patch('nitlsconfig.audit_session_connect', autospec=True) as patched_audit: - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(nitls_tagged_channel, '')): - pass - patched_audit.assert_called_once_with('NI-FAKE', nitls_tagged_channel, True) - - def test_init_audits_failed_connect(self, nitls_tagged_channel): - self.patched_grpc_interpreter.init_with_options.side_effect = nifake.Error('Fake init failure') - with patch('nitlsconfig.audit_session_connect', autospec=True) as patched_audit: - with pytest.raises(nifake.Error): - nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(nitls_tagged_channel, '')) - patched_audit.assert_called_once_with('NI-FAKE', nitls_tagged_channel, False) - - # Session locking - - def test_lock_session_none(self): - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - session.lock() - self.patched_grpc_interpreter.lock.assert_called_once_with() - - def test_unlock_session_none(self): - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - session.unlock() - self.patched_grpc_interpreter.unlock.assert_called_once_with() - - def test_lock_context_manager(self): - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - with session.lock(): - pass - self.patched_grpc_interpreter.lock.assert_called_once_with() - self.patched_grpc_interpreter.unlock.assert_called_once_with() - - def test_lock_context_manager_abnormal_exit(self): - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - try: - with session.lock(): - raise nifake.Error('Fake exception') - except nifake.Error: - pass - self.patched_grpc_interpreter.lock.assert_called_once_with() - self.patched_grpc_interpreter.unlock.assert_called_once_with() - - # Methods - - def test_self_test(self): - test_error_code = 0 - self.patched_grpc_interpreter.self_test.side_effect = [(test_error_code, '')] - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - session.self_test() - - def test_export_attribute_configuration_buffer(self): - expected_buffer = b'abcd' - self.patched_grpc_interpreter.export_attribute_configuration_buffer.side_effect = [expected_buffer] - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - actual_configuration = session.export_attribute_configuration_buffer() - assert type(actual_configuration) is bytes - assert actual_configuration == bytes(expected_buffer) - self.patched_grpc_interpreter.export_attribute_configuration_buffer.assert_called_once_with() - - # Attributes - - def test_get_attribute_int32(self): - test_number = 3 - self.patched_grpc_interpreter.get_attribute_vi_int32.side_effect = [test_number] - with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: - attr_int = session.read_write_integer - assert attr_int == test_number - self.patched_grpc_interpreter.get_attribute_vi_int32.assert_called_once_with('', 1000004) - - -# not session tests per se -def test_diagnostic_information(): - info = nifake.print_diagnostic_information() - assert isinstance(info, dict) - - -def test_dunder_version(): - print(f'Version = {nifake.__version__}') - assert type(nifake.__version__) is str diff --git a/generated/nifake/setup.py b/generated/nifake/setup.py deleted file mode 100644 index 5fec3f14d3..0000000000 --- a/generated/nifake/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nifake' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-FAKE Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nifake'], - license='MIT', - include_package_data=True, - packages=['nifake'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - 'nitclk', - 'numpy', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nifake/tox-system_tests.ini b/generated/nifake/tox-system_tests.ini deleted file mode 100644 index d43bd532f3..0000000000 --- a/generated/nifake/tox-system_tests.ini +++ /dev/null @@ -1,73 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nifake) -[tox] -envlist = py{310,311,312,313,314}-nifake-wheel_dep,py{310,311,312,313,314}-nifake-system_tests, py314-nifake-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nifake-wheel_dep: Build the nitclk wheel because we use it in nifake tests - nifake-system_tests: Run nifake system tests (requires NI-FAKE runtime to be installed) - nifake-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nifake-wheel_dep: ../nitclk - nifake-system_tests: . - nifake-coverage: . - -commands = - nifake-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nifake-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nifake-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. - nifake-system_tests: python -c "import nifake; nifake.print_diagnostic_information()" - nifake-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifake --parallel-mode -m pytest ../../src/nifake/examples --junitxml=../junit/junit-nifake-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nifake-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifake --parallel-mode -m pytest ../../src/nifake/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nifake-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nifake-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nifake-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nifake-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nifake-wheel_dep: build - - nifake-system_tests: pytest < 9.2.0 - nifake-system_tests: coverage - nifake-system_tests: numpy - nifake-system_tests: hightime - nifake-system_tests: fasteners - nifake-system_tests: pytest-json - nifake-system_tests: .[grpc] - - nifake-coverage: coverage - -depends = - nifake-coverage: py{310,311,312,313,314}-nifake-system_tests - nifake-system_tests: py{310,311,312,313,314}-nifake-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nifgen/README.rst b/generated/nifgen/README.rst deleted file mode 100644 index b73d6e4812..0000000000 --- a/generated/nifgen/README.rst +++ /dev/null @@ -1,174 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nifgen** module provides a Python API for NI-FGEN. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nifgen** supports all the Operating Systems supported by NI-FGEN. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nifgen**. - - -NI-FGEN Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-FGEN (nifgen) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nifgenLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nifgenPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nifgenDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nifgenOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nifgenOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nifgenLatestVersion| image:: http://img.shields.io/pypi/v/nifgen.svg - :alt: Latest NI-FGEN Version - :target: http://pypi.python.org/pypi/nifgen - - -.. |nifgenPythonVersion| image:: http://img.shields.io/pypi/pyversions/nifgen.svg - :alt: NI-FGEN supported Python versions - :target: http://pypi.python.org/pypi/nifgen - - -.. |nifgenDocs| image:: https://readthedocs.org/projects/nifgen/badge/?version=latest - :alt: NI-FGEN Python API Documentation Status - :target: https://nifgen.readthedocs.io/en/latest - - -.. |nifgenOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nifgen.svg - :alt: Open Issues + Pull Requests for NI-FGEN - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anifgen - - -.. |nifgenOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nifgen.svg - :alt: Pull Requests for NI-FGEN - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anifgen - - - -.. _nifgen_installation-section: - -Installation ------------- - -As a prerequisite to using the **nifgen** module, you must install the NI-FGEN runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-FGEN**) can be installed with `pip `_:: - - $ python -m pip install nifgen - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nifgen** module to open a session to a Function Generator and generate a sine wave for 5 seconds. - -.. code-block:: python - - import nifgen - import time - with nifgen.Session("Dev1") as session: - session.output_mode = nifgen.OutputMode.FUNC - session.configure_standard_waveform(waveform=nifgen.Waveform.SINE, amplitude=1.0, frequency=10000000, dc_offset=0.0, start_phase=0.0) - with session.initiate(): - time.sleep(5) - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nifgen/nifgen/VERSION b/generated/nifgen/nifgen/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nifgen/nifgen/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nifgen/nifgen/__init__.py b/generated/nifgen/nifgen/__init__.py deleted file mode 100644 index abfc81a83a..0000000000 --- a/generated/nifgen/nifgen/__init__.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nifgen.enums import * # noqa: F403,F401,H303 -from nifgen.errors import DriverWarning # noqa: F401 -from nifgen.errors import Error # noqa: F401 -from nifgen.grpc_session_options import * # noqa: F403,F401,H303 -from nifgen.session import Session # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-FGEN\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-FGEN" - info['driver']['version'] = driver_version - info['module']['name'] = 'nifgen' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nifgen/nifgen/_attributes.py b/generated/nifgen/nifgen/_attributes.py deleted file mode 100644 index 958f66443b..0000000000 --- a/generated/nifgen/nifgen/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nifgen._converters as _converters -import nifgen.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nifgen Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nifgen.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nifgen/nifgen/_converters.py b/generated/nifgen/nifgen/_converters.py deleted file mode 100644 index 1d18df460c..0000000000 --- a/generated/nifgen/nifgen/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nifgen._visatype as _visatype -import nifgen.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nifgen/nifgen/_grpc_stub_interpreter.py b/generated/nifgen/nifgen/_grpc_stub_interpreter.py deleted file mode 100644 index 21f50c24da..0000000000 --- a/generated/nifgen/nifgen/_grpc_stub_interpreter.py +++ /dev/null @@ -1,527 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nifgen_pb2 as grpc_types -from . import nifgen_pb2_grpc as nifgen_grpc - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nifgen_grpc.NiFgenStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.AbortGeneration, - grpc_types.AbortGenerationRequest(vi=self._vi), - ) - - def allocate_named_waveform(self, channel_name, waveform_name, waveform_size): # noqa: N802 - self._invoke( - self._client.AllocateNamedWaveform, - grpc_types.AllocateNamedWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name, waveform_size=waveform_size), - ) - - def allocate_waveform(self, channel_name, waveform_size): # noqa: N802 - response = self._invoke( - self._client.AllocateWaveform, - grpc_types.AllocateWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_size=waveform_size), - ) - return response.waveform_handle - - def clear_arb_memory(self): # noqa: N802 - self._invoke( - self._client.ClearArbMemory, - grpc_types.ClearArbMemoryRequest(vi=self._vi), - ) - - def clear_arb_sequence(self, sequence_handle): # noqa: N802 - self._invoke( - self._client.ClearArbSequence, - grpc_types.ClearArbSequenceRequest(vi=self._vi, sequence_handle_raw=sequence_handle), - ) - - def clear_arb_waveform(self, waveform_handle): # noqa: N802 - self._invoke( - self._client.ClearArbWaveform, - grpc_types.ClearArbWaveformRequest(vi=self._vi, waveform_handle_raw=waveform_handle), - ) - - def clear_freq_list(self, frequency_list_handle): # noqa: N802 - self._invoke( - self._client.ClearFreqList, - grpc_types.ClearFreqListRequest(vi=self._vi, frequency_list_handle_raw=frequency_list_handle), - ) - - def clear_user_standard_waveform(self, channel_name): # noqa: N802 - self._invoke( - self._client.ClearUserStandardWaveform, - grpc_types.ClearUserStandardWaveformRequest(vi=self._vi, channel_name=channel_name), - ) - - def commit(self): # noqa: N802 - self._invoke( - self._client.Commit, - grpc_types.CommitRequest(vi=self._vi), - ) - - def configure_arb_sequence(self, channel_name, sequence_handle, gain, offset): # noqa: N802 - self._invoke( - self._client.ConfigureArbSequence, - grpc_types.ConfigureArbSequenceRequest(vi=self._vi, channel_name=channel_name, sequence_handle=sequence_handle, gain=gain, offset=offset), - ) - - def configure_arb_waveform(self, channel_name, waveform_handle, gain, offset): # noqa: N802 - self._invoke( - self._client.ConfigureArbWaveform, - grpc_types.ConfigureArbWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_handle=waveform_handle, gain=gain, offset=offset), - ) - - def configure_freq_list(self, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 - self._invoke( - self._client.ConfigureFreqList, - grpc_types.ConfigureFreqListRequest(vi=self._vi, channel_name=channel_name, frequency_list_handle=frequency_list_handle, amplitude=amplitude, dc_offset=dc_offset, start_phase=start_phase), - ) - - def configure_standard_waveform(self, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 - self._invoke( - self._client.ConfigureStandardWaveform, - grpc_types.ConfigureStandardWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_raw=waveform.value, amplitude=amplitude, dc_offset=dc_offset, frequency=frequency, start_phase=start_phase), - ) - - def create_advanced_arb_sequence(self, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array): # noqa: N802 - response = self._invoke( - self._client.CreateAdvancedArbSequence, - grpc_types.CreateAdvancedArbSequenceRequest(vi=self._vi, waveform_handles_array=waveform_handles_array, loop_counts_array=loop_counts_array, sample_counts_array=sample_counts_array, marker_location_array=marker_location_array), - ) - return response.coerced_markers_array, response.sequence_handle - - def create_arb_sequence(self, waveform_handles_array, loop_counts_array): # noqa: N802 - response = self._invoke( - self._client.CreateArbSequence, - grpc_types.CreateArbSequenceRequest(vi=self._vi, waveform_handles_array=waveform_handles_array, loop_counts_array=loop_counts_array), - ) - return response.sequence_handle - - def create_freq_list(self, waveform, frequency_array, duration_array): # noqa: N802 - response = self._invoke( - self._client.CreateFreqList, - grpc_types.CreateFreqListRequest(vi=self._vi, waveform_raw=waveform.value, frequency_array=frequency_array, duration_array=duration_array), - ) - return response.frequency_list_handle - - def create_waveform_f64(self, channel_name, waveform_data_array): # noqa: N802 - response = self._invoke( - self._client.CreateWaveformF64, - grpc_types.CreateWaveformF64Request(vi=self._vi, channel_name=channel_name, waveform_data_array=waveform_data_array), - ) - return response.waveform_handle - - def create_waveform_f64_numpy(self, channel_name, waveform_data_array): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def create_waveform_from_file_f64(self, channel_name, file_name, byte_order): # noqa: N802 - response = self._invoke( - self._client.CreateWaveformFromFileF64, - grpc_types.CreateWaveformFromFileF64Request(vi=self._vi, channel_name=channel_name, file_name=file_name, byte_order_raw=byte_order.value), - ) - return response.waveform_handle - - def create_waveform_from_file_i16(self, channel_name, file_name, byte_order): # noqa: N802 - response = self._invoke( - self._client.CreateWaveformFromFileI16, - grpc_types.CreateWaveformFromFileI16Request(vi=self._vi, channel_name=channel_name, file_name=file_name, byte_order_raw=byte_order.value), - ) - return response.waveform_handle - - def create_waveform_i16_numpy(self, channel_name, waveform_data_array): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def define_user_standard_waveform(self, channel_name, waveform_data_array): # noqa: N802 - self._invoke( - self._client.DefineUserStandardWaveform, - grpc_types.DefineUserStandardWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_data_array=waveform_data_array), - ) - - def delete_named_waveform(self, channel_name, waveform_name): # noqa: N802 - self._invoke( - self._client.DeleteNamedWaveform, - grpc_types.DeleteNamedWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name), - ) - - def delete_script(self, channel_name, script_name): # noqa: N802 - self._invoke( - self._client.DeleteScript, - grpc_types.DeleteScriptRequest(vi=self._vi, channel_name=channel_name, script_name=script_name), - ) - - def disable(self): # noqa: N802 - self._invoke( - self._client.Disable, - grpc_types.DisableRequest(vi=self._vi), - ) - - def export_attribute_configuration_buffer(self): # noqa: N802 - response = self._invoke( - self._client.ExportAttributeConfigurationBuffer, - grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), - ) - return response.configuration - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ExportAttributeConfigurationFile, - grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_channel_name(self, index): # noqa: N802 - response = self._invoke( - self._client.GetChannelName, - grpc_types.GetChannelNameRequest(vi=self._vi, index=index), - ) - return response.channel_string - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.error_description - - def get_ext_cal_last_date_and_time(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalLastDateAndTime, - grpc_types.GetExtCalLastDateAndTimeRequest(vi=self._vi), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_ext_cal_last_temp(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalLastTemp, - grpc_types.GetExtCalLastTempRequest(vi=self._vi), - ) - return response.temperature - - def get_ext_cal_recommended_interval(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalRecommendedInterval, - grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), - ) - return response.months - - def get_hardware_state(self): # noqa: N802 - response = self._invoke( - self._client.GetHardwareState, - grpc_types.GetHardwareStateRequest(vi=self._vi), - ) - return enums.HardwareState(response.state_raw) - - def get_self_cal_last_date_and_time(self): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalLastDateAndTime, - grpc_types.GetSelfCalLastDateAndTimeRequest(vi=self._vi), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_self_cal_last_temp(self): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalLastTemp, - grpc_types.GetSelfCalLastTempRequest(vi=self._vi), - ) - return response.temperature - - def get_self_cal_supported(self): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalSupported, - grpc_types.GetSelfCalSupportedRequest(vi=self._vi), - ) - return response.self_cal_supported - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationBuffer, - grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), - ) - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationFile, - grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def initialize_with_channels(self, resource_name, channel_name, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitializeWithChannels, - grpc_types.InitializeWithChannelsRequest(resource_name=resource_name, channel_name=channel_name, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate_generation(self): # noqa: N802 - self._invoke( - self._client.InitiateGeneration, - grpc_types.InitiateGenerationRequest(vi=self._vi), - ) - - def is_done(self): # noqa: N802 - response = self._invoke( - self._client.IsDone, - grpc_types.IsDoneRequest(vi=self._vi), - ) - return response.done - - def lock(self): # noqa: N802 - self._lock.acquire() - - def query_arb_seq_capabilities(self): # noqa: N802 - response = self._invoke( - self._client.QueryArbSeqCapabilities, - grpc_types.QueryArbSeqCapabilitiesRequest(vi=self._vi), - ) - return response.maximum_number_of_sequences, response.minimum_sequence_length, response.maximum_sequence_length, response.maximum_loop_count - - def query_arb_wfm_capabilities(self): # noqa: N802 - response = self._invoke( - self._client.QueryArbWfmCapabilities, - grpc_types.QueryArbWfmCapabilitiesRequest(vi=self._vi), - ) - return response.maximum_number_of_waveforms, response.waveform_quantum, response.minimum_waveform_size, response.maximum_waveform_size - - def query_freq_list_capabilities(self): # noqa: N802 - response = self._invoke( - self._client.QueryFreqListCapabilities, - grpc_types.QueryFreqListCapabilitiesRequest(vi=self._vi), - ) - return response.maximum_number_of_freq_lists, response.minimum_frequency_list_length, response.maximum_frequency_list_length, response.minimum_frequency_list_duration, response.maximum_frequency_list_duration, response.frequency_list_duration_quantum - - def read_current_temperature(self): # noqa: N802 - response = self._invoke( - self._client.ReadCurrentTemperature, - grpc_types.ReadCurrentTemperatureRequest(vi=self._vi), - ) - return response.temperature - - def reset_device(self): # noqa: N802 - self._invoke( - self._client.ResetDevice, - grpc_types.ResetDeviceRequest(vi=self._vi), - ) - - def reset_with_defaults(self): # noqa: N802 - self._invoke( - self._client.ResetWithDefaults, - grpc_types.ResetWithDefaultsRequest(vi=self._vi), - ) - - def self_cal(self): # noqa: N802 - self._invoke( - self._client.SelfCal, - grpc_types.SelfCalRequest(vi=self._vi), - ) - - def send_software_edge_trigger(self, trigger, trigger_id): # noqa: N802 - self._invoke( - self._client.SendSoftwareEdgeTrigger, - grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_id=trigger_id), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_named_waveform_next_write_position(self, channel_name, waveform_name, relative_to, offset): # noqa: N802 - self._invoke( - self._client.SetNamedWaveformNextWritePosition, - grpc_types.SetNamedWaveformNextWritePositionRequest(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name, relative_to_raw=relative_to.value, offset=offset), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def set_waveform_next_write_position(self, channel_name, waveform_handle, relative_to, offset): # noqa: N802 - self._invoke( - self._client.SetWaveformNextWritePosition, - grpc_types.SetWaveformNextWritePositionRequest(vi=self._vi, channel_name=channel_name, waveform_handle=waveform_handle, relative_to_raw=relative_to.value, offset=offset), - ) - - def unlock(self): # noqa: N802 - self._lock.release() - - def wait_until_done(self, max_time): # noqa: N802 - self._invoke( - self._client.WaitUntilDone, - grpc_types.WaitUntilDoneRequest(vi=self._vi, max_time=max_time), - ) - - def write_binary16_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def write_named_waveform_f64(self, channel_name, waveform_name, data): # noqa: N802 - self._invoke( - self._client.WriteNamedWaveformF64, - grpc_types.WriteNamedWaveformF64Request(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name, data=data), - ) - - def write_named_waveform_f64_numpy(self, channel_name, waveform_name, data): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def write_named_waveform_i16_numpy(self, channel_name, waveform_name, data): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def write_script(self, channel_name, script): # noqa: N802 - self._invoke( - self._client.WriteScript, - grpc_types.WriteScriptRequest(vi=self._vi, channel_name=channel_name, script=script), - ) - - def write_waveform(self, channel_name, waveform_handle, data): # noqa: N802 - self._invoke( - self._client.WriteWaveform, - grpc_types.WriteWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_handle=waveform_handle, data=data), - ) - - def write_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.self_test_result, response.self_test_message diff --git a/generated/nifgen/nifgen/_library.py b/generated/nifgen/nifgen/_library.py deleted file mode 100644 index 92a4ed764c..0000000000 --- a/generated/nifgen/nifgen/_library.py +++ /dev/null @@ -1,667 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nifgen.errors as errors -import threading - -from nifgen._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niFgen_AbortGeneration_cfunc = None - self.niFgen_AllocateNamedWaveform_cfunc = None - self.niFgen_AllocateWaveform_cfunc = None - self.niFgen_ClearArbMemory_cfunc = None - self.niFgen_ClearArbSequence_cfunc = None - self.niFgen_ClearArbWaveform_cfunc = None - self.niFgen_ClearFreqList_cfunc = None - self.niFgen_ClearUserStandardWaveform_cfunc = None - self.niFgen_Commit_cfunc = None - self.niFgen_ConfigureArbSequence_cfunc = None - self.niFgen_ConfigureArbWaveform_cfunc = None - self.niFgen_ConfigureFreqList_cfunc = None - self.niFgen_ConfigureStandardWaveform_cfunc = None - self.niFgen_CreateAdvancedArbSequence_cfunc = None - self.niFgen_CreateArbSequence_cfunc = None - self.niFgen_CreateFreqList_cfunc = None - self.niFgen_CreateWaveformF64_cfunc = None - self.niFgen_CreateWaveformFromFileF64_cfunc = None - self.niFgen_CreateWaveformFromFileI16_cfunc = None - self.niFgen_CreateWaveformI16_cfunc = None - self.niFgen_DefineUserStandardWaveform_cfunc = None - self.niFgen_DeleteNamedWaveform_cfunc = None - self.niFgen_DeleteScript_cfunc = None - self.niFgen_Disable_cfunc = None - self.niFgen_ExportAttributeConfigurationBuffer_cfunc = None - self.niFgen_ExportAttributeConfigurationFile_cfunc = None - self.niFgen_GetAttributeViBoolean_cfunc = None - self.niFgen_GetAttributeViInt32_cfunc = None - self.niFgen_GetAttributeViReal64_cfunc = None - self.niFgen_GetAttributeViString_cfunc = None - self.niFgen_GetChannelName_cfunc = None - self.niFgen_GetError_cfunc = None - self.niFgen_GetExtCalLastDateAndTime_cfunc = None - self.niFgen_GetExtCalLastTemp_cfunc = None - self.niFgen_GetExtCalRecommendedInterval_cfunc = None - self.niFgen_GetHardwareState_cfunc = None - self.niFgen_GetSelfCalLastDateAndTime_cfunc = None - self.niFgen_GetSelfCalLastTemp_cfunc = None - self.niFgen_GetSelfCalSupported_cfunc = None - self.niFgen_ImportAttributeConfigurationBuffer_cfunc = None - self.niFgen_ImportAttributeConfigurationFile_cfunc = None - self.niFgen_InitializeWithChannels_cfunc = None - self.niFgen_InitiateGeneration_cfunc = None - self.niFgen_IsDone_cfunc = None - self.niFgen_LockSession_cfunc = None - self.niFgen_QueryArbSeqCapabilities_cfunc = None - self.niFgen_QueryArbWfmCapabilities_cfunc = None - self.niFgen_QueryFreqListCapabilities_cfunc = None - self.niFgen_ReadCurrentTemperature_cfunc = None - self.niFgen_ResetDevice_cfunc = None - self.niFgen_ResetWithDefaults_cfunc = None - self.niFgen_SelfCal_cfunc = None - self.niFgen_SendSoftwareEdgeTrigger_cfunc = None - self.niFgen_SetAttributeViBoolean_cfunc = None - self.niFgen_SetAttributeViInt32_cfunc = None - self.niFgen_SetAttributeViReal64_cfunc = None - self.niFgen_SetAttributeViString_cfunc = None - self.niFgen_SetNamedWaveformNextWritePosition_cfunc = None - self.niFgen_SetRuntimeEnvironment_cfunc = None - self.niFgen_SetWaveformNextWritePosition_cfunc = None - self.niFgen_UnlockSession_cfunc = None - self.niFgen_WaitUntilDone_cfunc = None - self.niFgen_WriteBinary16Waveform_cfunc = None - self.niFgen_WriteNamedWaveformF64_cfunc = None - self.niFgen_WriteNamedWaveformI16_cfunc = None - self.niFgen_WriteScript_cfunc = None - self.niFgen_WriteWaveform_cfunc = None - self.niFgen_close_cfunc = None - self.niFgen_error_message_cfunc = None - self.niFgen_reset_cfunc = None - self.niFgen_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niFgen_AbortGeneration(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_AbortGeneration_cfunc is None: - self.niFgen_AbortGeneration_cfunc = self._get_library_function('niFgen_AbortGeneration') - self.niFgen_AbortGeneration_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_AbortGeneration_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_AbortGeneration_cfunc(vi) - - def niFgen_AllocateNamedWaveform(self, vi, channel_name, waveform_name, waveform_size): # noqa: N802 - with self._func_lock: - if self.niFgen_AllocateNamedWaveform_cfunc is None: - self.niFgen_AllocateNamedWaveform_cfunc = self._get_library_function('niFgen_AllocateNamedWaveform') - self.niFgen_AllocateNamedWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niFgen_AllocateNamedWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_AllocateNamedWaveform_cfunc(vi, channel_name, waveform_name, waveform_size) - - def niFgen_AllocateWaveform(self, vi, channel_name, waveform_size, waveform_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_AllocateWaveform_cfunc is None: - self.niFgen_AllocateWaveform_cfunc = self._get_library_function('niFgen_AllocateWaveform') - self.niFgen_AllocateWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_AllocateWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_AllocateWaveform_cfunc(vi, channel_name, waveform_size, waveform_handle) - - def niFgen_ClearArbMemory(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_ClearArbMemory_cfunc is None: - self.niFgen_ClearArbMemory_cfunc = self._get_library_function('niFgen_ClearArbMemory') - self.niFgen_ClearArbMemory_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_ClearArbMemory_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ClearArbMemory_cfunc(vi) - - def niFgen_ClearArbSequence(self, vi, sequence_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_ClearArbSequence_cfunc is None: - self.niFgen_ClearArbSequence_cfunc = self._get_library_function('niFgen_ClearArbSequence') - self.niFgen_ClearArbSequence_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niFgen_ClearArbSequence_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ClearArbSequence_cfunc(vi, sequence_handle) - - def niFgen_ClearArbWaveform(self, vi, waveform_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_ClearArbWaveform_cfunc is None: - self.niFgen_ClearArbWaveform_cfunc = self._get_library_function('niFgen_ClearArbWaveform') - self.niFgen_ClearArbWaveform_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niFgen_ClearArbWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ClearArbWaveform_cfunc(vi, waveform_handle) - - def niFgen_ClearFreqList(self, vi, frequency_list_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_ClearFreqList_cfunc is None: - self.niFgen_ClearFreqList_cfunc = self._get_library_function('niFgen_ClearFreqList') - self.niFgen_ClearFreqList_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niFgen_ClearFreqList_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ClearFreqList_cfunc(vi, frequency_list_handle) - - def niFgen_ClearUserStandardWaveform(self, vi, channel_name): # noqa: N802 - with self._func_lock: - if self.niFgen_ClearUserStandardWaveform_cfunc is None: - self.niFgen_ClearUserStandardWaveform_cfunc = self._get_library_function('niFgen_ClearUserStandardWaveform') - self.niFgen_ClearUserStandardWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_ClearUserStandardWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ClearUserStandardWaveform_cfunc(vi, channel_name) - - def niFgen_Commit(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_Commit_cfunc is None: - self.niFgen_Commit_cfunc = self._get_library_function('niFgen_Commit') - self.niFgen_Commit_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_Commit_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_Commit_cfunc(vi) - - def niFgen_ConfigureArbSequence(self, vi, channel_name, sequence_handle, gain, offset): # noqa: N802 - with self._func_lock: - if self.niFgen_ConfigureArbSequence_cfunc is None: - self.niFgen_ConfigureArbSequence_cfunc = self._get_library_function('niFgen_ConfigureArbSequence') - self.niFgen_ConfigureArbSequence_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niFgen_ConfigureArbSequence_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ConfigureArbSequence_cfunc(vi, channel_name, sequence_handle, gain, offset) - - def niFgen_ConfigureArbWaveform(self, vi, channel_name, waveform_handle, gain, offset): # noqa: N802 - with self._func_lock: - if self.niFgen_ConfigureArbWaveform_cfunc is None: - self.niFgen_ConfigureArbWaveform_cfunc = self._get_library_function('niFgen_ConfigureArbWaveform') - self.niFgen_ConfigureArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niFgen_ConfigureArbWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ConfigureArbWaveform_cfunc(vi, channel_name, waveform_handle, gain, offset) - - def niFgen_ConfigureFreqList(self, vi, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 - with self._func_lock: - if self.niFgen_ConfigureFreqList_cfunc is None: - self.niFgen_ConfigureFreqList_cfunc = self._get_library_function('niFgen_ConfigureFreqList') - self.niFgen_ConfigureFreqList_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niFgen_ConfigureFreqList_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ConfigureFreqList_cfunc(vi, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase) - - def niFgen_ConfigureStandardWaveform(self, vi, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 - with self._func_lock: - if self.niFgen_ConfigureStandardWaveform_cfunc is None: - self.niFgen_ConfigureStandardWaveform_cfunc = self._get_library_function('niFgen_ConfigureStandardWaveform') - self.niFgen_ConfigureStandardWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niFgen_ConfigureStandardWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ConfigureStandardWaveform_cfunc(vi, channel_name, waveform, amplitude, dc_offset, frequency, start_phase) - - def niFgen_CreateAdvancedArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array, coerced_markers_array, sequence_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateAdvancedArbSequence_cfunc is None: - self.niFgen_CreateAdvancedArbSequence_cfunc = self._get_library_function('niFgen_CreateAdvancedArbSequence') - self.niFgen_CreateAdvancedArbSequence_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateAdvancedArbSequence_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateAdvancedArbSequence_cfunc(vi, sequence_length, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array, coerced_markers_array, sequence_handle) - - def niFgen_CreateArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sequence_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateArbSequence_cfunc is None: - self.niFgen_CreateArbSequence_cfunc = self._get_library_function('niFgen_CreateArbSequence') - self.niFgen_CreateArbSequence_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateArbSequence_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateArbSequence_cfunc(vi, sequence_length, waveform_handles_array, loop_counts_array, sequence_handle) - - def niFgen_CreateFreqList(self, vi, waveform, frequency_list_length, frequency_array, duration_array, frequency_list_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateFreqList_cfunc is None: - self.niFgen_CreateFreqList_cfunc = self._get_library_function('niFgen_CreateFreqList') - self.niFgen_CreateFreqList_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateFreqList_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateFreqList_cfunc(vi, waveform, frequency_list_length, frequency_array, duration_array, frequency_list_handle) - - def niFgen_CreateWaveformF64(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateWaveformF64_cfunc is None: - self.niFgen_CreateWaveformF64_cfunc = self._get_library_function('niFgen_CreateWaveformF64') - self.niFgen_CreateWaveformF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateWaveformF64_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateWaveformF64_cfunc(vi, channel_name, waveform_size, waveform_data_array, waveform_handle) - - def niFgen_CreateWaveformFromFileF64(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateWaveformFromFileF64_cfunc is None: - self.niFgen_CreateWaveformFromFileF64_cfunc = self._get_library_function('niFgen_CreateWaveformFromFileF64') - self.niFgen_CreateWaveformFromFileF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateWaveformFromFileF64_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateWaveformFromFileF64_cfunc(vi, channel_name, file_name, byte_order, waveform_handle) - - def niFgen_CreateWaveformFromFileI16(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateWaveformFromFileI16_cfunc is None: - self.niFgen_CreateWaveformFromFileI16_cfunc = self._get_library_function('niFgen_CreateWaveformFromFileI16') - self.niFgen_CreateWaveformFromFileI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateWaveformFromFileI16_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateWaveformFromFileI16_cfunc(vi, channel_name, file_name, byte_order, waveform_handle) - - def niFgen_CreateWaveformI16(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 - with self._func_lock: - if self.niFgen_CreateWaveformI16_cfunc is None: - self.niFgen_CreateWaveformI16_cfunc = self._get_library_function('niFgen_CreateWaveformI16') - self.niFgen_CreateWaveformI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt16), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_CreateWaveformI16_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_CreateWaveformI16_cfunc(vi, channel_name, waveform_size, waveform_data_array, waveform_handle) - - def niFgen_DefineUserStandardWaveform(self, vi, channel_name, waveform_size, waveform_data_array): # noqa: N802 - with self._func_lock: - if self.niFgen_DefineUserStandardWaveform_cfunc is None: - self.niFgen_DefineUserStandardWaveform_cfunc = self._get_library_function('niFgen_DefineUserStandardWaveform') - self.niFgen_DefineUserStandardWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_DefineUserStandardWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_DefineUserStandardWaveform_cfunc(vi, channel_name, waveform_size, waveform_data_array) - - def niFgen_DeleteNamedWaveform(self, vi, channel_name, waveform_name): # noqa: N802 - with self._func_lock: - if self.niFgen_DeleteNamedWaveform_cfunc is None: - self.niFgen_DeleteNamedWaveform_cfunc = self._get_library_function('niFgen_DeleteNamedWaveform') - self.niFgen_DeleteNamedWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_DeleteNamedWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_DeleteNamedWaveform_cfunc(vi, channel_name, waveform_name) - - def niFgen_DeleteScript(self, vi, channel_name, script_name): # noqa: N802 - with self._func_lock: - if self.niFgen_DeleteScript_cfunc is None: - self.niFgen_DeleteScript_cfunc = self._get_library_function('niFgen_DeleteScript') - self.niFgen_DeleteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_DeleteScript_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_DeleteScript_cfunc(vi, channel_name, script_name) - - def niFgen_Disable(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_Disable_cfunc is None: - self.niFgen_Disable_cfunc = self._get_library_function('niFgen_Disable') - self.niFgen_Disable_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_Disable_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_Disable_cfunc(vi) - - def niFgen_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - with self._func_lock: - if self.niFgen_ExportAttributeConfigurationBuffer_cfunc is None: - self.niFgen_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFgen_ExportAttributeConfigurationBuffer') - self.niFgen_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niFgen_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ExportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) - - def niFgen_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niFgen_ExportAttributeConfigurationFile_cfunc is None: - self.niFgen_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niFgen_ExportAttributeConfigurationFile') - self.niFgen_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ExportAttributeConfigurationFile_cfunc(vi, file_path) - - def niFgen_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_GetAttributeViBoolean_cfunc is None: - self.niFgen_GetAttributeViBoolean_cfunc = self._get_library_function('niFgen_GetAttributeViBoolean') - self.niFgen_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFgen_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_GetAttributeViInt32_cfunc is None: - self.niFgen_GetAttributeViInt32_cfunc = self._get_library_function('niFgen_GetAttributeViInt32') - self.niFgen_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_GetAttributeViReal64_cfunc is None: - self.niFgen_GetAttributeViReal64_cfunc = self._get_library_function('niFgen_GetAttributeViReal64') - self.niFgen_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_GetAttributeViString_cfunc is None: - self.niFgen_GetAttributeViString_cfunc = self._get_library_function('niFgen_GetAttributeViString') - self.niFgen_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetAttributeViString_cfunc(vi, channel_name, attribute_id, array_size, attribute_value) - - def niFgen_GetChannelName(self, vi, index, buffer_size, channel_string): # noqa: N802 - with self._func_lock: - if self.niFgen_GetChannelName_cfunc is None: - self.niFgen_GetChannelName_cfunc = self._get_library_function('niFgen_GetChannelName') - self.niFgen_GetChannelName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_GetChannelName_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetChannelName_cfunc(vi, index, buffer_size, channel_string) - - def niFgen_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - with self._func_lock: - if self.niFgen_GetError_cfunc is None: - self.niFgen_GetError_cfunc = self._get_library_function('niFgen_GetError') - self.niFgen_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) - - def niFgen_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niFgen_GetExtCalLastDateAndTime_cfunc is None: - self.niFgen_GetExtCalLastDateAndTime_cfunc = self._get_library_function('niFgen_GetExtCalLastDateAndTime') - self.niFgen_GetExtCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_GetExtCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetExtCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) - - def niFgen_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 - with self._func_lock: - if self.niFgen_GetExtCalLastTemp_cfunc is None: - self.niFgen_GetExtCalLastTemp_cfunc = self._get_library_function('niFgen_GetExtCalLastTemp') - self.niFgen_GetExtCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_GetExtCalLastTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetExtCalLastTemp_cfunc(vi, temperature) - - def niFgen_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - with self._func_lock: - if self.niFgen_GetExtCalRecommendedInterval_cfunc is None: - self.niFgen_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niFgen_GetExtCalRecommendedInterval') - self.niFgen_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetExtCalRecommendedInterval_cfunc(vi, months) - - def niFgen_GetHardwareState(self, vi, state): # noqa: N802 - with self._func_lock: - if self.niFgen_GetHardwareState_cfunc is None: - self.niFgen_GetHardwareState_cfunc = self._get_library_function('niFgen_GetHardwareState') - self.niFgen_GetHardwareState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_GetHardwareState_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetHardwareState_cfunc(vi, state) - - def niFgen_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niFgen_GetSelfCalLastDateAndTime_cfunc is None: - self.niFgen_GetSelfCalLastDateAndTime_cfunc = self._get_library_function('niFgen_GetSelfCalLastDateAndTime') - self.niFgen_GetSelfCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_GetSelfCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetSelfCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) - - def niFgen_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 - with self._func_lock: - if self.niFgen_GetSelfCalLastTemp_cfunc is None: - self.niFgen_GetSelfCalLastTemp_cfunc = self._get_library_function('niFgen_GetSelfCalLastTemp') - self.niFgen_GetSelfCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_GetSelfCalLastTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetSelfCalLastTemp_cfunc(vi, temperature) - - def niFgen_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 - with self._func_lock: - if self.niFgen_GetSelfCalSupported_cfunc is None: - self.niFgen_GetSelfCalSupported_cfunc = self._get_library_function('niFgen_GetSelfCalSupported') - self.niFgen_GetSelfCalSupported_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFgen_GetSelfCalSupported_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_GetSelfCalSupported_cfunc(vi, self_cal_supported) - - def niFgen_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - with self._func_lock: - if self.niFgen_ImportAttributeConfigurationBuffer_cfunc is None: - self.niFgen_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFgen_ImportAttributeConfigurationBuffer') - self.niFgen_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niFgen_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ImportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) - - def niFgen_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niFgen_ImportAttributeConfigurationFile_cfunc is None: - self.niFgen_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niFgen_ImportAttributeConfigurationFile') - self.niFgen_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ImportAttributeConfigurationFile_cfunc(vi, file_path) - - def niFgen_InitializeWithChannels(self, resource_name, channel_name, reset_device, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_InitializeWithChannels_cfunc is None: - self.niFgen_InitializeWithChannels_cfunc = self._get_library_function('niFgen_InitializeWithChannels') - self.niFgen_InitializeWithChannels_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niFgen_InitializeWithChannels_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_InitializeWithChannels_cfunc(resource_name, channel_name, reset_device, option_string, vi) - - def niFgen_InitiateGeneration(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_InitiateGeneration_cfunc is None: - self.niFgen_InitiateGeneration_cfunc = self._get_library_function('niFgen_InitiateGeneration') - self.niFgen_InitiateGeneration_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_InitiateGeneration_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_InitiateGeneration_cfunc(vi) - - def niFgen_IsDone(self, vi, done): # noqa: N802 - with self._func_lock: - if self.niFgen_IsDone_cfunc is None: - self.niFgen_IsDone_cfunc = self._get_library_function('niFgen_IsDone') - self.niFgen_IsDone_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFgen_IsDone_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_IsDone_cfunc(vi, done) - - def niFgen_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niFgen_LockSession_cfunc is None: - self.niFgen_LockSession_cfunc = self._get_library_function('niFgen_LockSession') - self.niFgen_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFgen_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_LockSession_cfunc(vi, caller_has_lock) - - def niFgen_QueryArbSeqCapabilities(self, vi, maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count): # noqa: N802 - with self._func_lock: - if self.niFgen_QueryArbSeqCapabilities_cfunc is None: - self.niFgen_QueryArbSeqCapabilities_cfunc = self._get_library_function('niFgen_QueryArbSeqCapabilities') - self.niFgen_QueryArbSeqCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_QueryArbSeqCapabilities_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_QueryArbSeqCapabilities_cfunc(vi, maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count) - - def niFgen_QueryArbWfmCapabilities(self, vi, maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size): # noqa: N802 - with self._func_lock: - if self.niFgen_QueryArbWfmCapabilities_cfunc is None: - self.niFgen_QueryArbWfmCapabilities_cfunc = self._get_library_function('niFgen_QueryArbWfmCapabilities') - self.niFgen_QueryArbWfmCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niFgen_QueryArbWfmCapabilities_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_QueryArbWfmCapabilities_cfunc(vi, maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size) - - def niFgen_QueryFreqListCapabilities(self, vi, maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum): # noqa: N802 - with self._func_lock: - if self.niFgen_QueryFreqListCapabilities_cfunc is None: - self.niFgen_QueryFreqListCapabilities_cfunc = self._get_library_function('niFgen_QueryFreqListCapabilities') - self.niFgen_QueryFreqListCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_QueryFreqListCapabilities_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_QueryFreqListCapabilities_cfunc(vi, maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum) - - def niFgen_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 - with self._func_lock: - if self.niFgen_ReadCurrentTemperature_cfunc is None: - self.niFgen_ReadCurrentTemperature_cfunc = self._get_library_function('niFgen_ReadCurrentTemperature') - self.niFgen_ReadCurrentTemperature_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_ReadCurrentTemperature_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ReadCurrentTemperature_cfunc(vi, temperature) - - def niFgen_ResetDevice(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_ResetDevice_cfunc is None: - self.niFgen_ResetDevice_cfunc = self._get_library_function('niFgen_ResetDevice') - self.niFgen_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_ResetDevice_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ResetDevice_cfunc(vi) - - def niFgen_ResetWithDefaults(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_ResetWithDefaults_cfunc is None: - self.niFgen_ResetWithDefaults_cfunc = self._get_library_function('niFgen_ResetWithDefaults') - self.niFgen_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_ResetWithDefaults_cfunc(vi) - - def niFgen_SelfCal(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_SelfCal_cfunc is None: - self.niFgen_SelfCal_cfunc = self._get_library_function('niFgen_SelfCal') - self.niFgen_SelfCal_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_SelfCal_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SelfCal_cfunc(vi) - - def niFgen_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_id): # noqa: N802 - with self._func_lock: - if self.niFgen_SendSoftwareEdgeTrigger_cfunc is None: - self.niFgen_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niFgen_SendSoftwareEdgeTrigger') - self.niFgen_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_id) - - def niFgen_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_SetAttributeViBoolean_cfunc is None: - self.niFgen_SetAttributeViBoolean_cfunc = self._get_library_function('niFgen_SetAttributeViBoolean') - self.niFgen_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niFgen_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_SetAttributeViInt32_cfunc is None: - self.niFgen_SetAttributeViInt32_cfunc = self._get_library_function('niFgen_SetAttributeViInt32') - self.niFgen_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niFgen_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_SetAttributeViReal64_cfunc is None: - self.niFgen_SetAttributeViReal64_cfunc = self._get_library_function('niFgen_SetAttributeViReal64') - self.niFgen_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niFgen_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niFgen_SetAttributeViString_cfunc is None: - self.niFgen_SetAttributeViString_cfunc = self._get_library_function('niFgen_SetAttributeViString') - self.niFgen_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niFgen_SetNamedWaveformNextWritePosition(self, vi, channel_name, waveform_name, relative_to, offset): # noqa: N802 - with self._func_lock: - if self.niFgen_SetNamedWaveformNextWritePosition_cfunc is None: - self.niFgen_SetNamedWaveformNextWritePosition_cfunc = self._get_library_function('niFgen_SetNamedWaveformNextWritePosition') - self.niFgen_SetNamedWaveformNextWritePosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViInt32] # noqa: F405 - self.niFgen_SetNamedWaveformNextWritePosition_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetNamedWaveformNextWritePosition_cfunc(vi, channel_name, waveform_name, relative_to, offset) - - def niFgen_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niFgen_SetRuntimeEnvironment_cfunc is None: - self.niFgen_SetRuntimeEnvironment_cfunc = self._get_library_function('niFgen_SetRuntimeEnvironment') - self.niFgen_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niFgen_SetWaveformNextWritePosition(self, vi, channel_name, waveform_handle, relative_to, offset): # noqa: N802 - with self._func_lock: - if self.niFgen_SetWaveformNextWritePosition_cfunc is None: - self.niFgen_SetWaveformNextWritePosition_cfunc = self._get_library_function('niFgen_SetWaveformNextWritePosition') - self.niFgen_SetWaveformNextWritePosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ViInt32] # noqa: F405 - self.niFgen_SetWaveformNextWritePosition_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_SetWaveformNextWritePosition_cfunc(vi, channel_name, waveform_handle, relative_to, offset) - - def niFgen_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niFgen_UnlockSession_cfunc is None: - self.niFgen_UnlockSession_cfunc = self._get_library_function('niFgen_UnlockSession') - self.niFgen_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niFgen_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_UnlockSession_cfunc(vi, caller_has_lock) - - def niFgen_WaitUntilDone(self, vi, max_time): # noqa: N802 - with self._func_lock: - if self.niFgen_WaitUntilDone_cfunc is None: - self.niFgen_WaitUntilDone_cfunc = self._get_library_function('niFgen_WaitUntilDone') - self.niFgen_WaitUntilDone_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niFgen_WaitUntilDone_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_WaitUntilDone_cfunc(vi, max_time) - - def niFgen_WriteBinary16Waveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 - with self._func_lock: - if self.niFgen_WriteBinary16Waveform_cfunc is None: - self.niFgen_WriteBinary16Waveform_cfunc = self._get_library_function('niFgen_WriteBinary16Waveform') - self.niFgen_WriteBinary16Waveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViInt16)] # noqa: F405 - self.niFgen_WriteBinary16Waveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_WriteBinary16Waveform_cfunc(vi, channel_name, waveform_handle, size, data) - - def niFgen_WriteNamedWaveformF64(self, vi, channel_name, waveform_name, size, data): # noqa: N802 - with self._func_lock: - if self.niFgen_WriteNamedWaveformF64_cfunc is None: - self.niFgen_WriteNamedWaveformF64_cfunc = self._get_library_function('niFgen_WriteNamedWaveformF64') - self.niFgen_WriteNamedWaveformF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_WriteNamedWaveformF64_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_WriteNamedWaveformF64_cfunc(vi, channel_name, waveform_name, size, data) - - def niFgen_WriteNamedWaveformI16(self, vi, channel_name, waveform_name, size, data): # noqa: N802 - with self._func_lock: - if self.niFgen_WriteNamedWaveformI16_cfunc is None: - self.niFgen_WriteNamedWaveformI16_cfunc = self._get_library_function('niFgen_WriteNamedWaveformI16') - self.niFgen_WriteNamedWaveformI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt16)] # noqa: F405 - self.niFgen_WriteNamedWaveformI16_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_WriteNamedWaveformI16_cfunc(vi, channel_name, waveform_name, size, data) - - def niFgen_WriteScript(self, vi, channel_name, script): # noqa: N802 - with self._func_lock: - if self.niFgen_WriteScript_cfunc is None: - self.niFgen_WriteScript_cfunc = self._get_library_function('niFgen_WriteScript') - self.niFgen_WriteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_WriteScript_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_WriteScript_cfunc(vi, channel_name, script) - - def niFgen_WriteWaveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 - with self._func_lock: - if self.niFgen_WriteWaveform_cfunc is None: - self.niFgen_WriteWaveform_cfunc = self._get_library_function('niFgen_WriteWaveform') - self.niFgen_WriteWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niFgen_WriteWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_WriteWaveform_cfunc(vi, channel_name, waveform_handle, size, data) - - def niFgen_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_close_cfunc is None: - self.niFgen_close_cfunc = self._get_library_function('niFgen_close') - self.niFgen_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_close_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_close_cfunc(vi) - - def niFgen_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niFgen_error_message_cfunc is None: - self.niFgen_error_message_cfunc = self._get_library_function('niFgen_error_message') - self.niFgen_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_error_message_cfunc(vi, error_code, error_message) - - def niFgen_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niFgen_reset_cfunc is None: - self.niFgen_reset_cfunc = self._get_library_function('niFgen_reset') - self.niFgen_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niFgen_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_reset_cfunc(vi) - - def niFgen_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niFgen_self_test_cfunc is None: - self.niFgen_self_test_cfunc = self._get_library_function('niFgen_self_test') - self.niFgen_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niFgen_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niFgen_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nifgen/nifgen/_library_interpreter.py b/generated/nifgen/nifgen/_library_interpreter.py deleted file mode 100644 index 5ff00c7150..0000000000 --- a/generated/nifgen/nifgen/_library_interpreter.py +++ /dev/null @@ -1,782 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import nifgen._library_singleton as _library_singleton -import nifgen._visatype as _visatype -import nifgen.enums as enums # noqa: F401 -import nifgen.errors as errors - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_AbortGeneration(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def allocate_named_waveform(self, channel_name, waveform_name, waveform_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - waveform_size_ctype = _visatype.ViInt32(waveform_size) # case S150 - error_code = self._library.niFgen_AllocateNamedWaveform(vi_ctype, channel_name_ctype, waveform_name_ctype, waveform_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def allocate_waveform(self, channel_name, waveform_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_size_ctype = _visatype.ViInt32(waveform_size) # case S150 - waveform_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_AllocateWaveform(vi_ctype, channel_name_ctype, waveform_size_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(waveform_handle_ctype.value) - - def clear_arb_memory(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_ClearArbMemory(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_arb_sequence(self, sequence_handle): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - sequence_handle_ctype = _visatype.ViInt32(sequence_handle) # case S150 - error_code = self._library.niFgen_ClearArbSequence(vi_ctype, sequence_handle_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_arb_waveform(self, waveform_handle): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 - error_code = self._library.niFgen_ClearArbWaveform(vi_ctype, waveform_handle_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_freq_list(self, frequency_list_handle): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - frequency_list_handle_ctype = _visatype.ViInt32(frequency_list_handle) # case S150 - error_code = self._library.niFgen_ClearFreqList(vi_ctype, frequency_list_handle_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_user_standard_waveform(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - error_code = self._library.niFgen_ClearUserStandardWaveform(vi_ctype, channel_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def commit(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_Commit(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_arb_sequence(self, channel_name, sequence_handle, gain, offset): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - sequence_handle_ctype = _visatype.ViInt32(sequence_handle) # case S150 - gain_ctype = _visatype.ViReal64(gain) # case S150 - offset_ctype = _visatype.ViReal64(offset) # case S150 - error_code = self._library.niFgen_ConfigureArbSequence(vi_ctype, channel_name_ctype, sequence_handle_ctype, gain_ctype, offset_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_arb_waveform(self, channel_name, waveform_handle, gain, offset): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 - gain_ctype = _visatype.ViReal64(gain) # case S150 - offset_ctype = _visatype.ViReal64(offset) # case S150 - error_code = self._library.niFgen_ConfigureArbWaveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, gain_ctype, offset_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_freq_list(self, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - frequency_list_handle_ctype = _visatype.ViInt32(frequency_list_handle) # case S150 - amplitude_ctype = _visatype.ViReal64(amplitude) # case S150 - dc_offset_ctype = _visatype.ViReal64(dc_offset) # case S150 - start_phase_ctype = _visatype.ViReal64(start_phase) # case S150 - error_code = self._library.niFgen_ConfigureFreqList(vi_ctype, channel_name_ctype, frequency_list_handle_ctype, amplitude_ctype, dc_offset_ctype, start_phase_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_standard_waveform(self, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_ctype = _visatype.ViInt32(waveform.value) # case S130 - amplitude_ctype = _visatype.ViReal64(amplitude) # case S150 - dc_offset_ctype = _visatype.ViReal64(dc_offset) # case S150 - frequency_ctype = _visatype.ViReal64(frequency) # case S150 - start_phase_ctype = _visatype.ViReal64(start_phase) # case S150 - error_code = self._library.niFgen_ConfigureStandardWaveform(vi_ctype, channel_name_ctype, waveform_ctype, amplitude_ctype, dc_offset_ctype, frequency_ctype, start_phase_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_advanced_arb_sequence(self, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - sequence_length_ctype = _visatype.ViInt32(0 if waveform_handles_array is None else len(waveform_handles_array)) # case S160 - waveform_handles_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_handles_array, library_type=_visatype.ViInt32) # case B550 - loop_counts_array_ctype = _get_ctypes_pointer_for_buffer(value=loop_counts_array, library_type=_visatype.ViInt32) # case B550 - sample_counts_array_ctype = _get_ctypes_pointer_for_buffer(value=sample_counts_array, library_type=_visatype.ViInt32) # case B550 - marker_location_array_ctype = _get_ctypes_pointer_for_buffer(value=marker_location_array, library_type=_visatype.ViInt32) # case B550 - coerced_markers_array_size = (0 if marker_location_array is None else len(marker_location_array)) # case B560 - coerced_markers_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=coerced_markers_array_size) # case B560 - sequence_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateAdvancedArbSequence(vi_ctype, sequence_length_ctype, waveform_handles_array_ctype, loop_counts_array_ctype, sample_counts_array_ctype, marker_location_array_ctype, coerced_markers_array_ctype, None if sequence_handle_ctype is None else (ctypes.pointer(sequence_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [int(coerced_markers_array_ctype[i]) for i in range((0 if marker_location_array is None else len(marker_location_array)))], int(sequence_handle_ctype.value) - - def create_arb_sequence(self, waveform_handles_array, loop_counts_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - sequence_length_ctype = _visatype.ViInt32(0 if waveform_handles_array is None else len(waveform_handles_array)) # case S160 - waveform_handles_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_handles_array, library_type=_visatype.ViInt32) # case B550 - loop_counts_array_ctype = _get_ctypes_pointer_for_buffer(value=loop_counts_array, library_type=_visatype.ViInt32) # case B550 - sequence_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateArbSequence(vi_ctype, sequence_length_ctype, waveform_handles_array_ctype, loop_counts_array_ctype, None if sequence_handle_ctype is None else (ctypes.pointer(sequence_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(sequence_handle_ctype.value) - - def create_freq_list(self, waveform, frequency_array, duration_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_ctype = _visatype.ViInt32(waveform.value) # case S130 - frequency_list_length_ctype = _visatype.ViInt32(0 if frequency_array is None else len(frequency_array)) # case S160 - frequency_array_ctype = _get_ctypes_pointer_for_buffer(value=frequency_array, library_type=_visatype.ViReal64) # case B550 - duration_array_ctype = _get_ctypes_pointer_for_buffer(value=duration_array, library_type=_visatype.ViReal64) # case B550 - frequency_list_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateFreqList(vi_ctype, waveform_ctype, frequency_list_length_ctype, frequency_array_ctype, duration_array_ctype, None if frequency_list_handle_ctype is None else (ctypes.pointer(frequency_list_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(frequency_list_handle_ctype.value) - - def create_waveform_f64(self, channel_name, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_array = _convert_to_array(value=waveform_data_array, array_type="d") # case B550 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array_array, library_type=_visatype.ViReal64) # case B550 - waveform_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateWaveformF64(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(waveform_handle_ctype.value) - - def create_waveform_f64_numpy(self, channel_name, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array) # case B510 - waveform_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateWaveformF64(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(waveform_handle_ctype.value) - - def create_waveform_from_file_f64(self, channel_name, file_name, byte_order): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - file_name_ctype = ctypes.create_string_buffer(file_name.encode(self._encoding)) # case C020 - byte_order_ctype = _visatype.ViInt32(byte_order.value) # case S130 - waveform_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateWaveformFromFileF64(vi_ctype, channel_name_ctype, file_name_ctype, byte_order_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(waveform_handle_ctype.value) - - def create_waveform_from_file_i16(self, channel_name, file_name, byte_order): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - file_name_ctype = ctypes.create_string_buffer(file_name.encode(self._encoding)) # case C020 - byte_order_ctype = _visatype.ViInt32(byte_order.value) # case S130 - waveform_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateWaveformFromFileI16(vi_ctype, channel_name_ctype, file_name_ctype, byte_order_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(waveform_handle_ctype.value) - - def create_waveform_i16_numpy(self, channel_name, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array) # case B510 - waveform_handle_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_CreateWaveformI16(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(waveform_handle_ctype.value) - - def define_user_standard_waveform(self, channel_name, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niFgen_DefineUserStandardWaveform(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_named_waveform(self, channel_name, waveform_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_DeleteNamedWaveform(vi_ctype, channel_name_ctype, waveform_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_script(self, channel_name, script_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_DeleteScript(vi_ctype, channel_name_ctype, script_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_Disable(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def export_attribute_configuration_buffer(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_in_bytes_ctype = _visatype.ViInt32() # case S170 - configuration_ctype = None # case B580 - error_code = self._library.niFgen_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - size_in_bytes_ctype = _visatype.ViInt32(error_code) # case S180 - configuration_size = size_in_bytes_ctype.value # case B590 - configuration_array = array.array("b", [0]) * configuration_size # case B590 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niFgen_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return configuration_array - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niFgen_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(attribute_value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFgen_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(attribute_value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - array_size_ctype = _visatype.ViInt32() # case S170 - attribute_value_ctype = None # case C050 - error_code = self._library.niFgen_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - array_size_ctype = _visatype.ViInt32(error_code) # case S180 - attribute_value_ctype = (_visatype.ViChar * array_size_ctype.value)() # case C060 - error_code = self._library.niFgen_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return attribute_value_ctype.value.decode(self._encoding) - - def get_channel_name(self, index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - index_ctype = _visatype.ViInt32(index) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - channel_string_ctype = None # case C050 - error_code = self._library.niFgen_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - channel_string_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niFgen_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_string_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return channel_string_ctype.value.decode(self._encoding) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 - error_description_ctype = None # case C050 - error_code = self._library.niFgen_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 - error_code = self._library.niFgen_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) - - def get_ext_cal_last_date_and_time(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_GetExtCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_ext_cal_last_temp(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFgen_GetExtCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_ext_cal_recommended_interval(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - months_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(months_ctype.value) - - def get_hardware_state(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - state_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_GetHardwareState(vi_ctype, None if state_ctype is None else (ctypes.pointer(state_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return enums.HardwareState(state_ctype.value) - - def get_self_cal_last_date_and_time(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_GetSelfCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_self_cal_last_temp(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFgen_GetSelfCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_self_cal_supported(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_cal_supported_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niFgen_GetSelfCalSupported(vi_ctype, None if self_cal_supported_ctype is None else (ctypes.pointer(self_cal_supported_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(self_cal_supported_ctype.value) - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_in_bytes_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niFgen_ImportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def initialize_with_channels(self, resource_name, channel_name, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C020 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niFgen_InitializeWithChannels(resource_name_ctype, channel_name_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initiate_generation(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_InitiateGeneration(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def is_done(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - done_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niFgen_IsDone(vi_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(done_ctype.value) - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def query_arb_seq_capabilities(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_number_of_sequences_ctype = _visatype.ViInt32() # case S220 - minimum_sequence_length_ctype = _visatype.ViInt32() # case S220 - maximum_sequence_length_ctype = _visatype.ViInt32() # case S220 - maximum_loop_count_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_QueryArbSeqCapabilities(vi_ctype, None if maximum_number_of_sequences_ctype is None else (ctypes.pointer(maximum_number_of_sequences_ctype)), None if minimum_sequence_length_ctype is None else (ctypes.pointer(minimum_sequence_length_ctype)), None if maximum_sequence_length_ctype is None else (ctypes.pointer(maximum_sequence_length_ctype)), None if maximum_loop_count_ctype is None else (ctypes.pointer(maximum_loop_count_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(maximum_number_of_sequences_ctype.value), int(minimum_sequence_length_ctype.value), int(maximum_sequence_length_ctype.value), int(maximum_loop_count_ctype.value) - - def query_arb_wfm_capabilities(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_number_of_waveforms_ctype = _visatype.ViInt32() # case S220 - waveform_quantum_ctype = _visatype.ViInt32() # case S220 - minimum_waveform_size_ctype = _visatype.ViInt32() # case S220 - maximum_waveform_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niFgen_QueryArbWfmCapabilities(vi_ctype, None if maximum_number_of_waveforms_ctype is None else (ctypes.pointer(maximum_number_of_waveforms_ctype)), None if waveform_quantum_ctype is None else (ctypes.pointer(waveform_quantum_ctype)), None if minimum_waveform_size_ctype is None else (ctypes.pointer(minimum_waveform_size_ctype)), None if maximum_waveform_size_ctype is None else (ctypes.pointer(maximum_waveform_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(maximum_number_of_waveforms_ctype.value), int(waveform_quantum_ctype.value), int(minimum_waveform_size_ctype.value), int(maximum_waveform_size_ctype.value) - - def query_freq_list_capabilities(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_number_of_freq_lists_ctype = _visatype.ViInt32() # case S220 - minimum_frequency_list_length_ctype = _visatype.ViInt32() # case S220 - maximum_frequency_list_length_ctype = _visatype.ViInt32() # case S220 - minimum_frequency_list_duration_ctype = _visatype.ViReal64() # case S220 - maximum_frequency_list_duration_ctype = _visatype.ViReal64() # case S220 - frequency_list_duration_quantum_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFgen_QueryFreqListCapabilities(vi_ctype, None if maximum_number_of_freq_lists_ctype is None else (ctypes.pointer(maximum_number_of_freq_lists_ctype)), None if minimum_frequency_list_length_ctype is None else (ctypes.pointer(minimum_frequency_list_length_ctype)), None if maximum_frequency_list_length_ctype is None else (ctypes.pointer(maximum_frequency_list_length_ctype)), None if minimum_frequency_list_duration_ctype is None else (ctypes.pointer(minimum_frequency_list_duration_ctype)), None if maximum_frequency_list_duration_ctype is None else (ctypes.pointer(maximum_frequency_list_duration_ctype)), None if frequency_list_duration_quantum_ctype is None else (ctypes.pointer(frequency_list_duration_quantum_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(maximum_number_of_freq_lists_ctype.value), int(minimum_frequency_list_length_ctype.value), int(maximum_frequency_list_length_ctype.value), float(minimum_frequency_list_duration_ctype.value), float(maximum_frequency_list_duration_ctype.value), float(frequency_list_duration_quantum_ctype.value) - - def read_current_temperature(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niFgen_ReadCurrentTemperature(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def reset_device(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_ResetDevice(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_defaults(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_ResetWithDefaults(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_cal(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_SelfCal(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_edge_trigger(self, trigger, trigger_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 - trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_id_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 - error_code = self._library.niFgen_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 - error_code = self._library.niFgen_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 - error_code = self._library.niFgen_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_named_waveform_next_write_position(self, channel_name, waveform_name, relative_to, offset): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - relative_to_ctype = _visatype.ViInt32(relative_to.value) # case S130 - offset_ctype = _visatype.ViInt32(offset) # case S150 - error_code = self._library.niFgen_SetNamedWaveformNextWritePosition(vi_ctype, channel_name_ctype, waveform_name_ctype, relative_to_ctype, offset_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_waveform_next_write_position(self, channel_name, waveform_handle, relative_to, offset): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 - relative_to_ctype = _visatype.ViInt32(relative_to.value) # case S130 - offset_ctype = _visatype.ViInt32(offset) # case S150 - error_code = self._library.niFgen_SetWaveformNextWritePosition(vi_ctype, channel_name_ctype, waveform_handle_ctype, relative_to_ctype, offset_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_until_done(self, max_time): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - max_time_ctype = _visatype.ViInt32(max_time) # case S150 - error_code = self._library.niFgen_WaitUntilDone(vi_ctype, max_time_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_binary16_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 - size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 - data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 - error_code = self._library.niFgen_WriteBinary16Waveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, size_ctype, data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_named_waveform_f64(self, channel_name, waveform_name, data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 - data_array = _convert_to_array(value=data, array_type="d") # case B550 - data_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niFgen_WriteNamedWaveformF64(vi_ctype, channel_name_ctype, waveform_name_ctype, size_ctype, data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_named_waveform_f64_numpy(self, channel_name, waveform_name, data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 - data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 - error_code = self._library.niFgen_WriteNamedWaveformF64(vi_ctype, channel_name_ctype, waveform_name_ctype, size_ctype, data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_named_waveform_i16_numpy(self, channel_name, waveform_name, data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 - data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 - error_code = self._library.niFgen_WriteNamedWaveformI16(vi_ctype, channel_name_ctype, waveform_name_ctype, size_ctype, data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_script(self, channel_name, script): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - script_ctype = ctypes.create_string_buffer(script.encode(self._encoding)) # case C020 - error_code = self._library.niFgen_WriteScript(vi_ctype, channel_name_ctype, script_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_waveform(self, channel_name, waveform_handle, data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 - size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 - data_array = _convert_to_array(value=data, array_type="d") # case B550 - data_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niFgen_WriteWaveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, size_ctype, data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 - size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 - data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 - error_code = self._library.niFgen_WriteWaveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, size_ctype, data_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niFgen_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niFgen_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niFgen_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nifgen/nifgen/_library_singleton.py b/generated/nifgen/nifgen/_library_singleton.py deleted file mode 100644 index c93d34683e..0000000000 --- a/generated/nifgen/nifgen/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nifgen._library as _library -import nifgen.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nifgen', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niFgen_32.dll', 'type': 'windll'}, - '64bit': {'name': 'niFgen_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nifgen. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nifgen/nifgen/_visatype.py b/generated/nifgen/nifgen/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nifgen/nifgen/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nifgen/nifgen/enums.py b/generated/nifgen/nifgen/enums.py deleted file mode 100644 index 8c5a22f7be..0000000000 --- a/generated/nifgen/nifgen/enums.py +++ /dev/null @@ -1,390 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class AnalogPath(Enum): - MAIN = 0 - r''' - Specifies use of the main path. NI-FGEN chooses the amplifier based on the user-specified gain. - ''' - DIRECT = 1 - r''' - Specifies use of the direct path. - ''' - FIXED_LOW_GAIN = 2 - r''' - Specifies use of the low-gain amplifier in the main path, no matter what value the user specifies for gain. This setting limits the output range. - ''' - FIXED_HIGH_GAIN = 3 - r''' - Specifies use of the high-gain amplifier in the main path. - ''' - - -class BusType(Enum): - INVALID = 0 - r''' - Indicates an invalid bus type. - ''' - AT = 1 - r''' - Indicates the signal generator is the AT bus type. - ''' - PCI = 2 - r''' - Indicates the signal generator is the PCI bus type. - ''' - PXI = 3 - r''' - Indicates the signal generator is the PXI bus type. - ''' - VXI = 4 - r''' - Indicates the signal generator is the VXI bus type. - ''' - PCMCIA = 5 - r''' - Indicates the signal generator is the PCI-CMA bus type. - ''' - PXIE = 6 - r''' - Indicates the signal generator is the PXI Express bus type. - ''' - - -class ByteOrder(Enum): - LITTLE = 0 - BIG = 1 - - -class ClockMode(Enum): - HIGH_RESOLUTION = 0 - r''' - High resolution sampling—Sample rate is generated by a high–resolution clock source. - ''' - DIVIDE_DOWN = 1 - r''' - Divide down sampling—Sample rates are generated by dividing the source frequency. - ''' - AUTOMATIC = 2 - r''' - Automatic Selection—NI-FGEN selects between the divide–down and high–resolution clocking modes. - ''' - - -class DataMarkerEventLevelPolarity(Enum): - HIGH = 101 - r''' - When the operation is ready to start, the Ready for Start event level is high. - ''' - LOW = 102 - r''' - When the operation is ready to start, the Ready for Start event level is low. - ''' - - -class EventPulseWidthUnits(Enum): - SAMPLE_CLOCK_PERIODS = 101 - r''' - Specifies the pulse width in Sample clock periods. - ''' - SECONDS = 102 - r''' - Specifies the pulse width in seconds. - ''' - - -class HardwareState(Enum): - IDLE = 0 - WAITING_FOR_START_TRIGGER = 100 - RUNNING = 200 - DONE = 600 - HARDWARE_ERROR = 1000 - - -class IdleBehavior(Enum): - HOLD_LAST = 400 - r''' - While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. - ''' - JUMP_TO = 401 - r''' - While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. - ''' - - -class OutputMode(Enum): - FUNC = 0 - r''' - Standard Method mode— Generates standard method waveforms such as sine, square, triangle, and so on. - ''' - ARB = 1 - r''' - Arbitrary waveform mode—Generates waveforms from user-created/provided waveform arrays of numeric data. - ''' - SEQ = 2 - r''' - Arbitrary sequence mode — Generates downloaded waveforms in an order your specify. - ''' - FREQ_LIST = 101 - r''' - Frequency List mode—Generates a standard method using a list of frequencies you define. - ''' - SCRIPT = 102 - r''' - **Script mode—**\ Allows you to use scripting to link and loop multiple - waveforms in complex combinations. - ''' - - -class ReferenceClockSource(Enum): - CLOCK_IN = 'ClkIn' - r''' - Specifies that the CLK IN input signal from the front panel connector is - used as the Reference Clock source. - ''' - NONE = 'None' - r''' - Specifies that a Reference Clock is not used. - ''' - ONBOARD_REFERENCE_CLOCK = 'OnboardRefClk' - r''' - Specifies that the onboard Reference Clock is used as the Reference - Clock source. - ''' - PXI_CLOCK = 'PXI_Clk' - r''' - Specifies that the PXI Clock is used as the Reference Clock source. - ''' - RTSI_7 = 'RTSI7' - r''' - Specifies that the RTSI line 7 is used as the Reference Clock source. - ''' - - -class RelativeTo(Enum): - START = 0 - CURRENT = 1 - - -class SampleClockSource(Enum): - CLOCK_IN = 'ClkIn' - r''' - Specifies that the signal at the CLK IN front panel connector is used as - the Sample Clock source. - ''' - DDC_CLOCK_IN = 'DDC_ClkIn' - r''' - Specifies that the Sample Clock from the DDC connector is used as the Sample - Clock source. - ''' - ONBOARD_CLOCK = 'OnboardClock' - r''' - Specifies that the onboard clock is used as the Sample Clock source. - ''' - PXI_STAR_LINE = 'PXI_Star' - r''' - Specifies that the PXI\_STAR trigger line is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_0_RTSI_0 = 'PXI_Trig0' - r''' - Specifies that the PXI or RTSI line 0 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_1_RTSI_1 = 'PXI_Trig1' - r''' - Specifies that the PXI or RTSI line 1 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_2_RTSI_2 = 'PXI_Trig2' - r''' - Specifies that the PXI or RTSI line 2 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_3_RTSI_3 = 'PXI_Trig3' - r''' - Specifies that the PXI or RTSI line 3 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_4_RTSI_4 = 'PXI_Trig4' - r''' - Specifies that the PXI or RTSI line 4 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_5_RTSI_5 = 'PXI_Trig5' - r''' - Specifies that the PXI or RTSI line 5 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_6_RTSI_6 = 'PXI_Trig6' - r''' - Specifies that the PXI or RTSI line 6 is used as the Sample Clock - source. - ''' - PXI_TRIGGER_LINE_7_RTSI_7 = 'PXI_Trig7' - r''' - Specifies that the PXI or RTSI line 7 is used as the Sample Clock - source. - ''' - - -class SampleClockTimebaseSource(Enum): - CLOCK_IN = 'ClkIn' - r''' - Specifies that the external signal on the CLK IN front panel connector - is used as the source. - ''' - ONBOARD_CLOCK = 'OnboardClock' - r''' - Specifies that the onboard Sample Clock timebase is used as the source. - ''' - - -class ScriptTriggerDigitalEdgeEdge(Enum): - RISING = 101 - r''' - Rising Edge - ''' - FALLING = 102 - r''' - Falling Edge - ''' - - -class ScriptTriggerType(Enum): - TRIG_NONE = 101 - r''' - No trigger is configured. Signal generation starts immediately. - ''' - DIGITAL_EDGE = 102 - r''' - Trigger is asserted when a digital edge is detected. - ''' - DIGITAL_LEVEL = 103 - r''' - Trigger is asserted when a digital level is detected. - ''' - SOFTWARE_EDGE = 104 - r''' - Trigger is asserted when a software edge is detected. - ''' - - -class StartTriggerDigitalEdgeEdge(Enum): - RISING = 101 - r''' - Rising Edge - ''' - FALLING = 102 - r''' - Falling Edge - ''' - - -class StartTriggerType(Enum): - TRIG_NONE = 101 - r''' - None - ''' - DIGITAL_EDGE = 102 - r''' - Digital Edge - ''' - SOFTWARE_EDGE = 104 - r''' - Software Edge - ''' - P2P_ENDPOINT_FULLNESS = 106 - r''' - P2P Endpoint Fullness - ''' - - -class TerminalConfiguration(Enum): - SINGLE_ENDED = 300 - r''' - Single-ended operation - ''' - DIFFERENTIAL = 301 - r''' - Differential operation - ''' - - -class Trigger(Enum): - START = 1004 - SCRIPT = 103 - - -class TriggerMode(Enum): - SINGLE = 1 - r''' - Single Trigger Mode - The waveform you describe in the sequence list is generated only once by going through the entire staging list. Only one trigger is required to start the waveform generation. You can use Single trigger mode with the output mode in any mode. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. Then, the last stage generates repeatedly until you stop the waveform generation. - ''' - CONTINUOUS = 2 - r''' - Continuous Trigger Mode - The waveform you describe in the staging list generates infinitely by repeatedly cycling through the staging list. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. After the last stage completes, the waveform generation loops back to the start of the first stage and continues until it is stopped. Only one trigger is required to start the waveform generation. - ''' - STEPPED = 3 - r''' - Stepped Trigger Mode - After a start trigger is received, the waveform described by the first stage generates. Then, the device waits for the next trigger signal. On the next trigger, the waveform described by the second stage generates, and so on. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. After any stage has generated completely, the first eight samples of the next stage are repeated continuously until the next trigger is received. - trigger mode. - - Note: In Frequency List mode, Stepped trigger mode is the same as Burst - ''' - BURST = 4 - r''' - Burst Trigger Mode - After a start trigger is received, the waveform described by the first stage generates until another trigger is received. At the next trigger, the buffer of the previous stage completes, and then the waveform described by the second stage generates. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. In Frequency List mode, the duration instruction is ignored, and the trigger switches the frequency to the next frequency in the list. - trigger mode. - - Note: In Frequency List mode, Stepped trigger mode is the same as Burst - ''' - - -class WaitBehavior(Enum): - HOLD_LAST = 400 - r''' - While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. - ''' - JUMP_TO = 401 - r''' - While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. - ''' - - -class Waveform(Enum): - SINE = 1 - r''' - Sinusoid waveform - ''' - SQUARE = 2 - r''' - Square waveform - ''' - TRIANGLE = 3 - r''' - Triange waveform - ''' - RAMP_UP = 4 - r''' - Positive ramp waveform - ''' - RAMP_DOWN = 5 - r''' - Negative ramp waveform - ''' - DC = 6 - r''' - Constant voltage - ''' - NOISE = 101 - r''' - White noise - ''' - USER = 102 - r''' - User-defined waveform as defined by the define_user_standard_waveform method. - ''' diff --git a/generated/nifgen/nifgen/errors.py b/generated/nifgen/nifgen/errors.py deleted file mode 100644 index f799868c53..0000000000 --- a/generated/nifgen/nifgen/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-FGEN''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-FGEN driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-FGEN driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-FGEN runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-FGEN driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-FGEN runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-FGEN driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-FGEN runtime returned an unexpected value. This can occur if it is too new for the nifgen Python module. Upgrade the nifgen Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nifgen.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nifgen/nifgen/grpc_session_options.py b/generated/nifgen/nifgen/grpc_session_options.py deleted file mode 100644 index 2d8a715490..0000000000 --- a/generated/nifgen/nifgen/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nifgen_grpc.NiFgen' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nifgen/nifgen/nidevice_pb2.py b/generated/nifgen/nifgen/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nifgen/nifgen/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nifgen/nifgen/nidevice_pb2_grpc.py b/generated/nifgen/nifgen/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nifgen/nifgen/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nifgen/nifgen/nifgen_pb2.py b/generated/nifgen/nifgen/nifgen_pb2.py deleted file mode 100644 index dd5c1fc656..0000000000 --- a/generated/nifgen/nifgen/nifgen_pb2.py +++ /dev/null @@ -1,592 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nifgen.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import nidevice_pb2 as nidevice__pb2 -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnifgen.proto\x12\x0bnifgen_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xde\x01\n\x1dInitializeWithChannelsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63hannel_name\x18\x03 \x01(\t\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x90\x01\n\x1eInitializeWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorHandlerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorHandlerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"@\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x63hannel_string\x18\x02 \x01(\t\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"=\n\x17GetHardwareStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"h\n\x18GetHardwareStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x05state\x18\x02 \x01(\x0e\x32\x1a.nifgen_grpc.HardwareState\x12\x11\n\tstate_raw\x18\x03 \x01(\x11\"L\n\x14WaitUntilDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08max_time\x18\x02 \x01(\x11\"\'\n\x15WaitUntilDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rIsDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x0eIsDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64one\x18\x02 \x01(\x08\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n\x1d\x43onfigureOperationModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0eoperation_mode\x18\x03 \x01(\x11\"0\n\x1e\x43onfigureOperationModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9f\x01\n\x1a\x43onfigureOutputModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12.\n\x0boutput_mode\x18\x02 \x01(\x0e\x32\x17.nifgen_grpc.OutputModeH\x00\x12\x19\n\x0foutput_mode_raw\x18\x03 \x01(\x11H\x00\x42\x12\n\x10output_mode_enum\"-\n\x1b\x43onfigureOutputModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x87\x01\n\x1e\x43onfigureReferenceClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1e\n\x16reference_clock_source\x18\x02 \x01(\t\x12!\n\x19reference_clock_frequency\x18\x03 \x01(\x01\"1\n\x1f\x43onfigureReferenceClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"n\n\x1f\x43onfigureOutputImpedanceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\timpedance\x18\x03 \x01(\x01\"2\n ConfigureOutputImpedanceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x1d\x43onfigureOutputEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\"0\n\x1e\x43onfigureOutputEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x18\x43onfigureChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannels\x18\x02 \x01(\t\"+\n\x19\x43onfigureChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"?\n\x19InitiateGenerationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\",\n\x1aInitiateGenerationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"<\n\x16\x41\x62ortGenerationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\")\n\x17\x41\x62ortGenerationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfe\x01\n ConfigureStandardWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12)\n\x08waveform\x18\x03 \x01(\x0e\x32\x15.nifgen_grpc.WaveformH\x00\x12\x16\n\x0cwaveform_raw\x18\x04 \x01(\x11H\x00\x12\x11\n\tamplitude\x18\x05 \x01(\x01\x12\x11\n\tdc_offset\x18\x06 \x01(\x01\x12\x11\n\tfrequency\x18\x07 \x01(\x01\x12\x13\n\x0bstart_phase\x18\x08 \x01(\x01\x42\x0f\n\rwaveform_enum\"3\n!ConfigureStandardWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n!DefineUserStandardWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1b\n\x13waveform_data_array\x18\x03 \x03(\x01\"4\n\"DefineUserStandardWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n ClearUserStandardWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"3\n!ClearUserStandardWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n\x19\x43onfigureFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfrequency\x18\x03 \x01(\x01\",\n\x1a\x43onfigureFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n\x19\x43onfigureAmplitudeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tamplitude\x18\x03 \x01(\x01\",\n\x1a\x43onfigureAmplitudeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eQueryArbWfmCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xae\x01\n\x1fQueryArbWfmCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12#\n\x1bmaximum_number_of_waveforms\x18\x02 \x01(\x11\x12\x18\n\x10waveform_quantum\x18\x03 \x01(\x11\x12\x1d\n\x15minimum_waveform_size\x18\x04 \x01(\x11\x12\x1d\n\x15maximum_waveform_size\x18\x05 \x01(\x11\"q\n\x18\x43reateWaveformF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1b\n\x13waveform_data_array\x18\x03 \x03(\x01\"D\n\x19\x43reateWaveformF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"q\n\x18\x43reateWaveformI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1b\n\x13waveform_data_array\x18\x03 \x03(\x11\"D\n\x19\x43reateWaveformI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\x98\x01\n\x1f\x43reateWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12;\n\x13waveform_data_array\x18\x03 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\"K\n CreateWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\xca\x01\n CreateWaveformFromFileI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12,\n\nbyte_order\x18\x04 \x01(\x0e\x32\x16.nifgen_grpc.ByteOrderH\x00\x12\x18\n\x0e\x62yte_order_raw\x18\x05 \x01(\x11H\x00\x42\x11\n\x0f\x62yte_order_enum\"L\n!CreateWaveformFromFileI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\xca\x01\n CreateWaveformFromFileF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12,\n\nbyte_order\x18\x04 \x01(\x0e\x32\x16.nifgen_grpc.ByteOrderH\x00\x12\x18\n\x0e\x62yte_order_raw\x18\x05 \x01(\x11H\x00\x42\x11\n\x0f\x62yte_order_enum\"L\n!CreateWaveformFromFileF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"U\n\x1a\x43onfigureSampleRateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bsample_rate\x18\x02 \x01(\x01\"-\n\x1b\x43onfigureSampleRateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8e\x01\n\x1b\x43onfigureArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12\x0c\n\x04gain\x18\x04 \x01(\x01\x12\x0e\n\x06offset\x18\x05 \x01(\x01\".\n\x1c\x43onfigureArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x17\x43learArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x36\n\x0fwaveform_handle\x18\x02 \x01(\x0e\x32\x1b.nifgen_grpc.WaveformHandleH\x00\x12\x1d\n\x13waveform_handle_raw\x18\x03 \x01(\x11H\x00\x42\x16\n\x14waveform_handle_enum\"*\n\x18\x43learArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x86\x01\n\x1c\x41llocateNamedWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x15\n\rwaveform_size\x18\x04 \x01(\x11\"/\n\x1d\x41llocateNamedWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xea\x01\n(SetNamedWaveformNextWritePositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12.\n\x0brelative_to\x18\x04 \x01(\x0e\x32\x17.nifgen_grpc.RelativeToH\x00\x12\x19\n\x0frelative_to_raw\x18\x05 \x01(\x11H\x00\x12\x0e\n\x06offset\x18\x06 \x01(\x11\x42\x12\n\x10relative_to_enum\";\n)SetNamedWaveformNextWritePositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"}\n\x1cWriteNamedWaveformF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x01\"/\n\x1dWriteNamedWaveformF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"}\n\x1cWriteNamedWaveformI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x11\"/\n\x1dWriteNamedWaveformI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa4\x01\n#WriteNamedWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12,\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\"6\n$WriteNamedWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa1\x01\n#WriteNamedWaveformComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12)\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\"6\n$WriteNamedWaveformComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"m\n\x1a\x44\x65leteNamedWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\"-\n\x1b\x44\x65leteNamedWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eQueryArbSeqCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xb4\x01\n\x1fQueryArbSeqCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12#\n\x1bmaximum_number_of_sequences\x18\x02 \x01(\x11\x12\x1f\n\x17minimum_sequence_length\x18\x03 \x01(\x11\x12\x1f\n\x17maximum_sequence_length\x18\x04 \x01(\x11\x12\x1a\n\x12maximum_loop_count\x18\x05 \x01(\x11\"y\n\x18\x43reateArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1e\n\x16waveform_handles_array\x18\x02 \x03(\x11\x12\x19\n\x11loop_counts_array\x18\x03 \x03(\x11\"D\n\x19\x43reateArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fsequence_handle\x18\x02 \x01(\x11\"\xbd\x01\n CreateAdvancedArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1e\n\x16waveform_handles_array\x18\x02 \x03(\x11\x12\x19\n\x11loop_counts_array\x18\x03 \x03(\x11\x12\x1b\n\x13sample_counts_array\x18\x04 \x03(\x11\x12\x1d\n\x15marker_location_array\x18\x05 \x03(\x11\"k\n!CreateAdvancedArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1d\n\x15\x63oerced_markers_array\x18\x02 \x03(\x11\x12\x17\n\x0fsequence_handle\x18\x03 \x01(\x11\"\x8e\x01\n\x1b\x43onfigureArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fsequence_handle\x18\x03 \x01(\x11\x12\x0c\n\x04gain\x18\x04 \x01(\x01\x12\x0e\n\x06offset\x18\x05 \x01(\x01\".\n\x1c\x43onfigureArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x17\x43learArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x36\n\x0fsequence_handle\x18\x02 \x01(\x0e\x32\x1b.nifgen_grpc.SequenceHandleH\x00\x12\x1d\n\x13sequence_handle_raw\x18\x03 \x01(\x11H\x00\x42\x16\n\x14sequence_handle_enum\"*\n\x18\x43learArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\";\n\x15\x43learArbMemoryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"(\n\x16\x43learArbMemoryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n QueryFreqListCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa2\x02\n!QueryFreqListCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12$\n\x1cmaximum_number_of_freq_lists\x18\x02 \x01(\x11\x12%\n\x1dminimum_frequency_list_length\x18\x03 \x01(\x11\x12%\n\x1dmaximum_frequency_list_length\x18\x04 \x01(\x11\x12\'\n\x1fminimum_frequency_list_duration\x18\x05 \x01(\x01\x12\'\n\x1fmaximum_frequency_list_duration\x18\x06 \x01(\x01\x12\'\n\x1f\x66requency_list_duration_quantum\x18\x07 \x01(\x01\"\xc0\x01\n\x15\x43reateFreqListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x08waveform\x18\x02 \x01(\x0e\x32\x15.nifgen_grpc.WaveformH\x00\x12\x16\n\x0cwaveform_raw\x18\x03 \x01(\x11H\x00\x12\x17\n\x0f\x66requency_array\x18\x04 \x03(\x01\x12\x16\n\x0e\x64uration_array\x18\x05 \x03(\x01\x42\x0f\n\rwaveform_enum\"G\n\x16\x43reateFreqListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1d\n\x15\x66requency_list_handle\x18\x02 \x01(\x11\"\xae\x01\n\x18\x43onfigureFreqListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1d\n\x15\x66requency_list_handle\x18\x03 \x01(\x11\x12\x11\n\tamplitude\x18\x04 \x01(\x01\x12\x11\n\tdc_offset\x18\x05 \x01(\x01\x12\x13\n\x0bstart_phase\x18\x06 \x01(\x01\"+\n\x19\x43onfigureFreqListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc1\x01\n\x14\x43learFreqListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x42\n\x15\x66requency_list_handle\x18\x02 \x01(\x0e\x32!.nifgen_grpc.FrequencyListOptionsH\x00\x12#\n\x19\x66requency_list_handle_raw\x18\x03 \x01(\x11H\x00\x42\x1c\n\x1a\x66requency_list_handle_enum\"\'\n\x15\x43learFreqListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"^\n\x12WriteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0e\n\x06script\x18\x03 \x01(\t\"%\n\x13WriteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n\x13\x44\x65leteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x13\n\x0bscript_name\x18\x03 \x01(\t\"&\n\x14\x44\x65leteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb9\x01\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06signal\x18\x02 \x01(\x0e\x32\x13.nifgen_grpc.SignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x05 \x01(\tB\r\n\x0bsignal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb5\x02\n\x15RouteSignalOutRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x39\n\x11route_signal_from\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.RouteSignalFromH\x00\x12\x1f\n\x15route_signal_from_raw\x18\x04 \x01(\x11H\x00\x12\x35\n\x0froute_signal_to\x18\x05 \x01(\x0e\x32\x1a.nifgen_grpc.RouteSignalToH\x01\x12\x1d\n\x13route_signal_to_raw\x18\x06 \x01(\x11H\x01\x42\x18\n\x16route_signal_from_enumB\x16\n\x14route_signal_to_enum\"(\n\x16RouteSignalOutResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\'\n\x07trigger\x18\x02 \x01(\x0e\x32\x14.nifgen_grpc.TriggerH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\ntrigger_id\x18\x04 \x01(\tB\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"k\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x0c\n\x04\x65\x64ge\x18\x03 \x01(\x11\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n/ConfigureP2PEndpointFullnessStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12#\n\x1bp2p_endpoint_fullness_level\x18\x02 \x01(\x11\"B\n0ConfigureP2PEndpointFullnessStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x80\x01\n(ConfigureDigitalEdgeScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x0c\n\x04\x65\x64ge\x18\x04 \x01(\x11\";\n)ConfigureDigitalEdgeScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd6\x01\n)ConfigureDigitalLevelScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x30\n\x0ctrigger_when\x18\x04 \x01(\x0e\x32\x18.nifgen_grpc.TriggerWhenH\x00\x12\x1a\n\x10trigger_when_raw\x18\x05 \x01(\x11H\x00\x42\x13\n\x11trigger_when_enum\"<\n*ConfigureDigitalLevelScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n)ConfigureSoftwareEdgeScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\"<\n*ConfigureSoftwareEdgeScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"U\n\x1b\x44isableScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\".\n\x1c\x44isableScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9a\x01\n\x19\x43onfigureClockModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12,\n\nclock_mode\x18\x02 \x01(\x0e\x32\x16.nifgen_grpc.ClockModeH\x00\x12\x18\n\x0e\x63lock_mode_raw\x18\x03 \x01(\x11H\x00\x42\x11\n\x0f\x63lock_mode_enum\",\n\x1a\x43onfigureClockModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n%AdjustSampleClockRelativeDelayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x61\x64justment_time\x18\x02 \x01(\x01\"8\n&AdjustSampleClockRelativeDelayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x17\x41llocateWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_size\x18\x03 \x01(\x11\"C\n\x18\x41llocateWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\xe7\x01\n#SetWaveformNextWritePositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12.\n\x0brelative_to\x18\x04 \x01(\x0e\x32\x17.nifgen_grpc.RelativeToH\x00\x12\x19\n\x0frelative_to_raw\x18\x05 \x01(\x11H\x00\x12\x0e\n\x06offset\x18\x06 \x01(\x11\x42\x12\n\x10relative_to_enum\"6\n$SetWaveformNextWritePositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"w\n\x14WriteWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x01\"\'\n\x15WriteWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x7f\n\x1cWriteBinary16WaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x11\"/\n\x1dWriteBinary16WaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa1\x01\n\x1eWriteWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12,\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x17\n\x0fwaveform_handle\x18\x04 \x01(\x11\"1\n\x1fWriteWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa3\x01\n#WriteComplexBinary16WaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12)\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\"6\n$WriteComplexBinary16WaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aGetSelfCalSupportedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"I\n\x1bGetSelfCalSupportedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12self_cal_supported\x18\x02 \x01(\x08\"F\n GetSelfCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"{\n!GetSelfCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"E\n\x1fGetExtCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"z\n GetExtCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"?\n\x19GetSelfCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x1aGetSelfCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\">\n\x18GetExtCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x19GetExtCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"C\n\x1dReadCurrentTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x1eReadCurrentTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"\x83\x01\n+ConfigureCustomFIRFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1a\n\x12\x63oefficients_array\x18\x03 \x03(\x01\">\n,ConfigureCustomFIRFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1fGetFIRFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"s\n GetFIRFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12\x63oefficients_array\x18\x02 \x03(\x01\x12#\n\x1bnumber_of_coefficients_read\x18\x03 \x01(\x11\"]\n\x1eGetStreamEndpointHandleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fstream_endpoint\x18\x02 \x01(\t\"H\n\x1fGetStreamEndpointHandleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rreader_handle\x18\x02 \x01(\r\"n\n\x1aWriteP2PEndpointI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rendpoint_name\x18\x02 \x01(\t\x12\x15\n\rendpoint_data\x18\x03 \x03(\x11\"-\n\x1bWriteP2PEndpointI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"{\n\x1f\x43onfigureSynchronizationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1e\n\x16synchronization_source\x18\x03 \x01(\x11\"2\n ConfigureSynchronizationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1e\x45nableDigitalPatterningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"1\n\x1f\x45nableDigitalPatterningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1f\x44isableDigitalPatterningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"2\n DisableDigitalPatterningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1a\x45nableDigitalFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"-\n\x1b\x45nableDigitalFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1b\x44isableDigitalFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\".\n\x1c\x44isableDigitalFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n\x19\x45nableAnalogFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12#\n\x1b\x66ilter_correction_frequency\x18\x03 \x01(\x01\",\n\x1a\x45nableAnalogFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1a\x44isableAnalogFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"-\n\x1b\x44isableAnalogFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n!ConfigureSampleClockSourceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1b\n\x13sample_clock_source\x18\x02 \x01(\t\"4\n\"ConfigureSampleClockSourceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x01\n\x1b\x43onfigureTriggerModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0ctrigger_mode\x18\x03 \x01(\x0e\x32\x18.nifgen_grpc.TriggerModeH\x00\x12\x1a\n\x10trigger_mode_raw\x18\x04 \x01(\x11H\x00\x42\x13\n\x11trigger_mode_enum\".\n\x1c\x43onfigureTriggerModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"\xa7\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa9\x01\n\x1c\x43heckAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"/\n\x1d\x43heckAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"F\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x03\"\x85\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x42\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32\'.nifgen_grpc.NiFgenInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x87\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x43\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32(.nifgen_grpc.NiFgenReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x94\x02\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\tH\x00\x12P\n\x16\x61ttribute_value_mapped\x18\x05 \x01(\x0e\x32..nifgen_grpc.NiFgenStringAttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x87\x02\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x42\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32\'.nifgen_grpc.NiFgenInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x02\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x43\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32(.nifgen_grpc.NiFgenReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x96\x02\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\tH\x00\x12P\n\x16\x61ttribute_value_mapped\x18\x05 \x01(\x0e\x32..nifgen_grpc.NiFgenStringAttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbf\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x85\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1cManualEnableP2PStreamRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rendpoint_name\x18\x02 \x01(\t\"/\n\x1dManualEnableP2PStreamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x01\n CreateWaveformFromFileHWSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12\x1e\n\x16use_rate_from_waveform\x18\x04 \x01(\x08\x12)\n!use_gain_and_offset_from_waveform\x18\x05 \x01(\x08\"L\n!CreateWaveformFromFileHWSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11*\xa9S\n\x0fNiFgenAttribute\x12 \n\x1cNIFGEN_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\"\n\x1cNIFGEN_ATTRIBUTE_OUTPUT_MODE\x10\xd1\xa5L\x12%\n\x1fNIFGEN_ATTRIBUTE_OUTPUT_ENABLED\x10\xd3\xa5L\x12#\n\x1dNIFGEN_ATTRIBUTE_DIGITAL_GAIN\x10\xae\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_ANALOG_PATH\x10\x8e\x9a\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_LOAD_IMPEDANCE\x10\x8c\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_OUTPUT_IMPEDANCE\x10\xd4\xa5L\x12-\n\'NIFGEN_ATTRIBUTE_TERMINAL_CONFIGURATION\x10\x9d\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_COMMON_MODE_OFFSET\x10\x9e\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_CHANNEL_DELAY\x10\xa1\x9b\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_ABSOLUTE_DELAY\x10\xcd\x9b\x46\x12,\n&NIFGEN_ATTRIBUTE_ANALOG_FILTER_ENABLED\x10\x97\x99\x46\x12-\n\'NIFGEN_ATTRIBUTE_DIGITAL_FILTER_ENABLED\x10\x96\x99\x46\x12:\n4NIFGEN_ATTRIBUTE_DIGITAL_FILTER_INTERPOLATION_FACTOR\x10\x8a\x9a\x46\x12\x32\n,NIFGEN_ATTRIBUTE_FLATNESS_CORRECTION_ENABLED\x10\xf3\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_ANALOG_DATA_MASK\x10\x9a\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_ANALOG_STATIC_VALUE\x10\x9b\x9a\x46\x12(\n\"NIFGEN_ATTRIBUTE_DIGITAL_DATA_MASK\x10\x9c\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_DIGITAL_STATIC_VALUE\x10\x9d\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_DIGITAL_PATTERN_ENABLED\x10\x95\x99\x46\x12(\n\"NIFGEN_ATTRIBUTE_AUX_POWER_ENABLED\x10\xcb\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_IDLE_BEHAVIOR\x10\xa9\x9b\x46\x12!\n\x1bNIFGEN_ATTRIBUTE_IDLE_VALUE\x10\xaa\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_WAIT_BEHAVIOR\x10\xab\x9b\x46\x12!\n\x1bNIFGEN_ATTRIBUTE_WAIT_VALUE\x10\xac\x9b\x46\x12\x1f\n\x19NIFGEN_ATTRIBUTE_ARB_GAIN\x10\x9a\xa7L\x12!\n\x1bNIFGEN_ATTRIBUTE_ARB_OFFSET\x10\x9b\xa7L\x12\'\n!NIFGEN_ATTRIBUTE_WAVEFORM_QUANTUM\x10\x9e\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MAX_NUM_WAVEFORMS\x10\x9d\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MIN_WAVEFORM_SIZE\x10\x9f\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MAX_WAVEFORM_SIZE\x10\xa0\xa7L\x12*\n$NIFGEN_ATTRIBUTE_ARB_WAVEFORM_HANDLE\x10\x99\xa7L\x12*\n$NIFGEN_ATTRIBUTE_ARB_MARKER_POSITION\x10\xf7\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_ARB_REPEAT_COUNT\x10\xf8\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_ARB_SEQUENCE_HANDLE\x10\xa3\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MAX_NUM_SEQUENCES\x10\xa4\xa7L\x12*\n$NIFGEN_ATTRIBUTE_MIN_SEQUENCE_LENGTH\x10\xa5\xa7L\x12*\n$NIFGEN_ATTRIBUTE_MAX_SEQUENCE_LENGTH\x10\xa6\xa7L\x12%\n\x1fNIFGEN_ATTRIBUTE_MAX_LOOP_COUNT\x10\xa7\xa7L\x12)\n#NIFGEN_ATTRIBUTE_SCRIPT_TO_GENERATE\x10\xbe\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_FILE_TRANSFER_BLOCK_SIZE\x10\xa0\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\xa1\x9a\x46\x12\x36\n0NIFGEN_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\xa5\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_DIRECT_DMA_ENABLED\x10\xa4\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_DIRECT_DMA_WINDOW_SIZE\x10\xa5\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_DIRECT_DMA_WINDOW_ADDRESS\x10\xc2\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_STREAMING_WAVEFORM_NAME\x10\xf6\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_STREAMING_WAVEFORM_HANDLE\x10\xf4\x9a\x46\x12<\n6NIFGEN_ATTRIBUTE_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM\x10\xf5\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_STREAMING_WRITE_TIMEOUT\x10\xc9\x9b\x46\x12:\n4NIFGEN_ATTRIBUTE_DATA_TRANSFER_PREFERRED_PACKET_SIZE\x10\xa6\x9b\x46\x12<\n6NIFGEN_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_IN_FLIGHT_READS\x10\xa7\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_PCI_DMA_OPTIMIZATIONS_ENABLED\x10\x9a\x9b\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_OSP_ENABLED\x10\xa6\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_OSP_IQ_RATE\x10\xa8\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_OSP_DATA_PROCESSING_MODE\x10\xa7\x9a\x46\x12\x1f\n\x19NIFGEN_ATTRIBUTE_OSP_MODE\x10\xa2\x9b\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_FREQUENCY_SHIFT\x10\xa3\x9b\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CARRIER_ENABLED\x10\xa9\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_OSP_CARRIER_FREQUENCY\x10\xaa\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CARRIER_PHASE_I\x10\xab\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CARRIER_PHASE_Q\x10\xac\x9a\x46\x12<\n6NIFGEN_ATTRIBUTE_OSP_COMPENSATE_FOR_FILTER_GROUP_DELAY\x10\xb5\x9b\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_TYPE\x10\xad\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_ENABLED\x10\xaf\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_INTERPOLATION\x10\xb0\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_OSP_CIC_FILTER_ENABLED\x10\xb1\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_CIC_FILTER_INTERPOLATION\x10\xb2\x9a\x46\x12>\n8NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_ROOT_RAISED_COSINE_ALPHA\x10\xb3\x9a\x46\x12\x39\n3NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_RAISED_COSINE_ALPHA\x10\xb4\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_FLAT_PASSBAND\x10\xb5\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_GAUSSIAN_BT\x10\xb6\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CIC_FILTER_GAIN\x10\xb7\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_GAIN_I\x10\xb8\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_GAIN_Q\x10\xb9\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_OFFSET_I\x10\xba\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_OFFSET_Q\x10\xbb\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_OVERFLOW_ERROR_REPORTING\x10\xbc\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_OVERFLOW_STATUS\x10\xbd\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_P2P_ENABLED\x10\xb7\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_P2P_DESTINATION_CHANNELS\x10\xb8\x9b\x46\x12(\n\"NIFGEN_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\xb9\x9b\x46\x12\x36\n0NIFGEN_ATTRIBUTE_P2P_SPACE_AVAILABLE_IN_ENDPOINT\x10\xba\x9b\x46\x12;\n5NIFGEN_ATTRIBUTE_P2P_MOST_SPACE_AVAILABLE_IN_ENDPOINT\x10\xbb\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_P2P_ENDPOINT_COUNT\x10\xbc\x9b\x46\x12<\n6NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INTERVAL\x10\xc0\x9b\x46\x12\x43\n=NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INITIAL_CREDITS\x10\xc8\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_P2P_MANUAL_CONFIGURATION_ENABLED\x10\xbd\x9b\x46\x12;\n5NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_ADDRESS\x10\xbe\x9b\x46\x12@\n:NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_ADDRESS_TYPE\x10\xbf\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_P2P_ENDPOINT_WINDOW_ADDRESS\x10\xc1\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_P2P_ENDPOINT_WINDOW_ADDRESS_TYPE\x10\xc2\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_P2P_ENDPOINT_WINDOW_SIZE\x10\xc3\x9b\x46\x12@\n:NIFGEN_ATTRIBUTE_P2P_ENDPOINT_FULLNESS_START_TRIGGER_LEVEL\x10\xca\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_P2P_DONE_NOTIFICATION_ADDRESS\x10\xc5\x9b\x46\x12\x39\n3NIFGEN_ATTRIBUTE_P2P_DONE_NOTIFICATION_ADDRESS_TYPE\x10\xc6\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_P2P_DONE_NOTIFICATION_VALUE\x10\xc7\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_FUNC_WAVEFORM\x10\xb5\xa6L\x12%\n\x1fNIFGEN_ATTRIBUTE_FUNC_AMPLITUDE\x10\xb6\xa6L\x12%\n\x1fNIFGEN_ATTRIBUTE_FUNC_DC_OFFSET\x10\xb7\xa6L\x12\'\n!NIFGEN_ATTRIBUTE_FUNC_START_PHASE\x10\xb9\xa6L\x12+\n%NIFGEN_ATTRIBUTE_FUNC_DUTY_CYCLE_HIGH\x10\xba\xa6L\x12+\n%NIFGEN_ATTRIBUTE_SYNC_DUTY_CYCLE_HIGH\x10\x99\x99\x46\x12/\n)NIFGEN_ATTRIBUTE_SYNC_OUT_OUTPUT_TERMINAL\x10\xfa\x9a\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_FUNC_FREQUENCY\x10\xb8\xa6L\x12\'\n!NIFGEN_ATTRIBUTE_FUNC_BUFFER_SIZE\x10\x9e\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_FUNC_MAX_BUFFER_SIZE\x10\x9f\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_FREQ_LIST_HANDLE\x10\x80\x9a\x46\x12)\n#NIFGEN_ATTRIBUTE_MAX_NUM_FREQ_LISTS\x10\x81\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_MIN_FREQ_LIST_LENGTH\x10\x82\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_MAX_FREQ_LIST_LENGTH\x10\x83\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_MIN_FREQ_LIST_DURATION\x10\x84\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_MAX_FREQ_LIST_DURATION\x10\x85\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_FREQ_LIST_DURATION_QUANTUM\x10\x86\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_REFERENCE_CLOCK_SOURCE\x10\xa1\x99\x46\x12*\n$NIFGEN_ATTRIBUTE_REF_CLOCK_FREQUENCY\x10\x9b\x99\x46\x12?\n9NIFGEN_ATTRIBUTE_EXPORTED_REFERENCE_CLOCK_OUTPUT_TERMINAL\x10\xf1\x9a\x46\x12G\nANIFGEN_ATTRIBUTE_EXPORTED_ONBOARD_REFERENCE_CLOCK_OUTPUT_TERMINAL\x10\xf2\x9a\x46\x12&\n NIFGEN_ATTRIBUTE_ARB_SAMPLE_RATE\x10\x9c\xa7L\x12!\n\x1bNIFGEN_ATTRIBUTE_CLOCK_MODE\x10\x9e\x99\x46\x12*\n$NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_SOURCE\x10\xa0\x99\x46\x12<\n6NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL\x10\xf0\x9a\x46\x12\x34\n.NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_DIVISOR\x10\x8b\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_TIMEBASE_SOURCE\x10\x9f\x9b\x46\x12\x31\n+NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_TIMEBASE_RATE\x10\xa0\x9b\x46\x12\x45\n?NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_TIMEBASE_OUTPUT_TERMINAL\x10\xf9\x9a\x46\x12=\n7NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_TIMEBASE_DIVISOR\x10\x96\x9a\x46\x12\x37\n1NIFGEN_ATTRIBUTE_EXTERNAL_SAMPLE_CLOCK_MULTIPLIER\x10\xa8\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_ABSOLUTE_DELAY\x10\x97\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_OSCILLATOR_PHASE_DAC_VALUE\x10\x98\x9a\x46\x12\x38\n2NIFGEN_ATTRIBUTE_EXTERNAL_CLOCK_DELAY_BINARY_VALUE\x10\x99\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_MARKER_EVENT_OUTPUT_TERMINAL\x10\xe8\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_MARKER_EVENT_OUTPUT_BEHAVIOR\x10\x86\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_MARKER_EVENT_PULSE_POLARITY\x10\xe9\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH\x10\x84\x9b\x46\x12\x35\n/NIFGEN_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH_UNITS\x10\x85\x9b\x46\x12\x38\n2NIFGEN_ATTRIBUTE_MARKER_EVENT_TOGGLE_INITIAL_STATE\x10\x87\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_MARKER_EVENT_DELAY\x10\x92\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_MARKER_EVENT_DELAY_UNITS\x10\x93\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_ALL_MARKER_EVENTS_LIVE_STATUS\x10\x88\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_MARKER_EVENT_LIVE_STATUS\x10\x89\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_ALL_MARKER_EVENTS_LATCHED_STATUS\x10\x8d\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_MARKER_EVENT_LATCHED_STATUS\x10\x8e\x9b\x46\x12\x38\n2NIFGEN_ATTRIBUTE_DATA_MARKER_EVENT_DATA_BIT_NUMBER\x10\x81\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_DATA_MARKER_EVENT_LEVEL_POLARITY\x10\x82\x9b\x46\x12\x38\n2NIFGEN_ATTRIBUTE_DATA_MARKER_EVENT_OUTPUT_TERMINAL\x10\x83\x9b\x46\x12<\n6NIFGEN_ATTRIBUTE_READY_FOR_START_EVENT_OUTPUT_TERMINAL\x10\xe6\x9a\x46\x12?\n9NIFGEN_ATTRIBUTE_READY_FOR_START_EVENT_LEVEL_ACTIVE_LEVEL\x10\xe7\x9a\x46\x12\x38\n2NIFGEN_ATTRIBUTE_READY_FOR_START_EVENT_LIVE_STATUS\x10\x8c\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_STARTED_EVENT_OUTPUT_TERMINAL\x10\xea\x9a\x46\x12\x34\n.NIFGEN_ATTRIBUTE_STARTED_EVENT_OUTPUT_BEHAVIOR\x10\xfb\x9a\x46\x12\x37\n1NIFGEN_ATTRIBUTE_STARTED_EVENT_LEVEL_ACTIVE_LEVEL\x10\xec\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_STARTED_EVENT_PULSE_POLARITY\x10\xee\x9a\x46\x12\x36\n0NIFGEN_ATTRIBUTE_STARTED_EVENT_PULSE_WIDTH_UNITS\x10\xfd\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_STARTED_EVENT_PULSE_WIDTH\x10\xff\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_STARTED_EVENT_DELAY\x10\x94\x9b\x46\x12\x30\n*NIFGEN_ATTRIBUTE_STARTED_EVENT_DELAY_UNITS\x10\x95\x9b\x46\x12\x33\n-NIFGEN_ATTRIBUTE_STARTED_EVENT_LATCHED_STATUS\x10\x90\x9b\x46\x12\x31\n+NIFGEN_ATTRIBUTE_DONE_EVENT_OUTPUT_TERMINAL\x10\xeb\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_DONE_EVENT_OUTPUT_BEHAVIOR\x10\xfc\x9a\x46\x12\x34\n.NIFGEN_ATTRIBUTE_DONE_EVENT_LEVEL_ACTIVE_LEVEL\x10\xed\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_DONE_EVENT_PULSE_POLARITY\x10\xef\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_DONE_EVENT_PULSE_WIDTH_UNITS\x10\xfe\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_DONE_EVENT_PULSE_WIDTH\x10\x80\x9b\x46\x12\'\n!NIFGEN_ATTRIBUTE_DONE_EVENT_DELAY\x10\x96\x9b\x46\x12-\n\'NIFGEN_ATTRIBUTE_DONE_EVENT_DELAY_UNITS\x10\x97\x9b\x46\x12\x30\n*NIFGEN_ATTRIBUTE_DONE_EVENT_LATCHED_STATUS\x10\x8f\x9b\x46\x12#\n\x1dNIFGEN_ATTRIBUTE_TRIGGER_MODE\x10\x9c\x99\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_BURST_COUNT\x10\xae\xa8L\x12)\n#NIFGEN_ATTRIBUTE_START_TRIGGER_TYPE\x10\xc8\x9a\x46\x12\x38\n2NIFGEN_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_SOURCE\x10\xc9\x9a\x46\x12\x36\n0NIFGEN_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_EDGE\x10\xca\x9a\x46\x12=\n7NIFGEN_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xcb\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_SCRIPT_TRIGGER_TYPE\x10\xd2\x9a\x46\x12\x39\n3NIFGEN_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE\x10\xd3\x9a\x46\x12\x37\n1NIFGEN_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE\x10\xd4\x9a\x46\x12:\n4NIFGEN_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE\x10\xd5\x9a\x46\x12@\n:NIFGEN_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL\x10\xd6\x9a\x46\x12>\n8NIFGEN_ATTRIBUTE_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL\x10\xd7\x9a\x46\x12\x1f\n\x19NIFGEN_ATTRIBUTE_BUS_TYPE\x10\x87\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_MEMORY_SIZE\x10\xa2\x9a\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_SERIAL_NUMBER\x10\xa3\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_MARKER_EVENTS_COUNT\x10\xbf\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_DATA_MARKER_EVENTS_COUNT\x10\xc1\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_SCRIPT_TRIGGERS_COUNT\x10\xc0\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_VIDEO_WAVEFORM_TYPE\x10\x88\x9a\x46\x12(\n\"NIFGEN_ATTRIBUTE_FPGA_BITFILE_PATH\x10\xcc\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_FILTER_CORRECTION_FREQUENCY\x10\x98\x99\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_TRIGGER_SOURCE\x10\xfe\xa7L\x12&\n NIFGEN_ATTRIBUTE_SYNCHRONIZATION\x10\x9f\x99\x46\x12(\n\"NIFGEN_ATTRIBUTE_ID_QUERY_RESPONSE\x10\xb1\x98\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_GAIN_DAC_VALUE\x10\x8f\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_OFFSET_DAC_VALUE\x10\x90\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_OSCILLATOR_FREQ_DAC_VALUE\x10\x91\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_PRE_AMPLIFIER_ATTENUATION\x10\x94\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_POST_AMPLIFIER_ATTENUATION\x10\x95\x9a\x46\x12\x1c\n\x16NIFGEN_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\"\n\x1cNIFGEN_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12.\n(NIFGEN_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\'\n!NIFGEN_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12\x1f\n\x19NIFGEN_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12(\n\"NIFGEN_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\x32\n,NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12-\n\'NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12-\n\'NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12/\n)NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12?\n9NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12?\n9NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x32\n,NIFGEN_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12)\n#NIFGEN_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12$\n\x1eNIFGEN_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12.\n(NIFGEN_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\'\n!NIFGEN_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x33\n-NIFGEN_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12&\n NIFGEN_ATTRIBUTE_MODULE_REVISION\x10\xb6\x9b\x46\x12-\n\'NIFGEN_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12#\n\x1dNIFGEN_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12#\n\x1dNIFGEN_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12\x34\n.NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_MAJOR_VERSION\x10\x87\x8f@\x12\x34\n.NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_MINOR_VERSION\x10\x88\x8f@\x12*\n$NIFGEN_ATTRIBUTE_UPDATE_CLOCK_SOURCE\x10\x9a\x99\x46*\xd9\x01\n\nOutputMode\x12&\n\"OUTPUT_MODE_NIFGEN_VAL_OUTPUT_FUNC\x10\x00\x12%\n!OUTPUT_MODE_NIFGEN_VAL_OUTPUT_ARB\x10\x01\x12%\n!OUTPUT_MODE_NIFGEN_VAL_OUTPUT_SEQ\x10\x02\x12+\n\'OUTPUT_MODE_NIFGEN_VAL_OUTPUT_FREQ_LIST\x10\x65\x12(\n$OUTPUT_MODE_NIFGEN_VAL_OUTPUT_SCRIPT\x10\x66*\xc1\x02\n\x08Waveform\x12\x18\n\x14WAVEFORM_UNSPECIFIED\x10\x00\x12 \n\x1cWAVEFORM_NIFGEN_VAL_WFM_SINE\x10\x01\x12\"\n\x1eWAVEFORM_NIFGEN_VAL_WFM_SQUARE\x10\x02\x12$\n WAVEFORM_NIFGEN_VAL_WFM_TRIANGLE\x10\x03\x12#\n\x1fWAVEFORM_NIFGEN_VAL_WFM_RAMP_UP\x10\x04\x12%\n!WAVEFORM_NIFGEN_VAL_WFM_RAMP_DOWN\x10\x05\x12\x1e\n\x1aWAVEFORM_NIFGEN_VAL_WFM_DC\x10\x06\x12!\n\x1dWAVEFORM_NIFGEN_VAL_WFM_NOISE\x10\x65\x12 \n\x1cWAVEFORM_NIFGEN_VAL_WFM_USER\x10\x66*\xa0\x04\n\x06Signal\x12\x16\n\x12SIGNAL_UNSPECIFIED\x10\x00\x12.\n)SIGNAL_NIFGEN_VAL_ONBOARD_REFERENCE_CLOCK\x10\xfb\x07\x12\x1f\n\x1aSIGNAL_NIFGEN_VAL_SYNC_OUT\x10\xea\x07\x12$\n\x1fSIGNAL_NIFGEN_VAL_START_TRIGGER\x10\xec\x07\x12#\n\x1eSIGNAL_NIFGEN_VAL_MARKER_EVENT\x10\xe9\x07\x12,\n\'SIGNAL_NIFGEN_VAL_SAMPLE_CLOCK_TIMEBASE\x10\xee\x07\x12&\n!SIGNAL_NIFGEN_VAL_SYNCHRONIZATION\x10\xef\x07\x12\"\n\x1eSIGNAL_NIFGEN_VAL_SAMPLE_CLOCK\x10\x65\x12%\n!SIGNAL_NIFGEN_VAL_REFERENCE_CLOCK\x10\x66\x12$\n SIGNAL_NIFGEN_VAL_SCRIPT_TRIGGER\x10g\x12+\n\'SIGNAL_NIFGEN_VAL_READY_FOR_START_EVENT\x10i\x12#\n\x1fSIGNAL_NIFGEN_VAL_STARTED_EVENT\x10j\x12 \n\x1cSIGNAL_NIFGEN_VAL_DONE_EVENT\x10k\x12\'\n#SIGNAL_NIFGEN_VAL_DATA_MARKER_EVENT\x10l*\xbf\x01\n\x0bTriggerMode\x12\x1c\n\x18TRIGGER_MODE_UNSPECIFIED\x10\x00\x12\"\n\x1eTRIGGER_MODE_NIFGEN_VAL_SINGLE\x10\x01\x12&\n\"TRIGGER_MODE_NIFGEN_VAL_CONTINUOUS\x10\x02\x12#\n\x1fTRIGGER_MODE_NIFGEN_VAL_STEPPED\x10\x03\x12!\n\x1dTRIGGER_MODE_NIFGEN_VAL_BURST\x10\x04*\x82\x01\n\tClockMode\x12)\n%CLOCK_MODE_NIFGEN_VAL_HIGH_RESOLUTION\x10\x00\x12%\n!CLOCK_MODE_NIFGEN_VAL_DIVIDE_DOWN\x10\x01\x12#\n\x1f\x43LOCK_MODE_NIFGEN_VAL_AUTOMATIC\x10\x02*v\n\nRelativeTo\x12\x32\n.RELATIVE_TO_NIFGEN_VAL_WAVEFORM_POSITION_START\x10\x00\x12\x34\n0RELATIVE_TO_NIFGEN_VAL_WAVEFORM_POSITION_CURRENT\x10\x01*\xe8\x01\n\rHardwareState\x12\"\n\x1eHARDWARE_STATE_NIFGEN_VAL_IDLE\x10\x00\x12\x37\n3HARDWARE_STATE_NIFGEN_VAL_WAITING_FOR_START_TRIGGER\x10\x64\x12&\n!HARDWARE_STATE_NIFGEN_VAL_RUNNING\x10\xc8\x01\x12#\n\x1eHARDWARE_STATE_NIFGEN_VAL_DONE\x10\xd8\x04\x12-\n(HARDWARE_STATE_NIFGEN_VAL_HARDWARE_ERROR\x10\xe8\x07*Z\n\tByteOrder\x12\'\n#BYTE_ORDER_NIFGEN_VAL_LITTLE_ENDIAN\x10\x00\x12$\n BYTE_ORDER_NIFGEN_VAL_BIG_ENDIAN\x10\x01*|\n\x0bTriggerWhen\x12\x1c\n\x18TRIGGER_WHEN_UNSPECIFIED\x10\x00\x12\'\n#TRIGGER_WHEN_NIFGEN_VAL_ACTIVE_HIGH\x10\x65\x12&\n\"TRIGGER_WHEN_NIFGEN_VAL_ACTIVE_LOW\x10\x66*p\n\x07Trigger\x12\x17\n\x13TRIGGER_UNSPECIFIED\x10\x00\x12%\n TRIGGER_NIFGEN_VAL_START_TRIGGER\x10\xec\x07\x12%\n!TRIGGER_NIFGEN_VAL_SCRIPT_TRIGGER\x10g*y\n\x14\x46requencyListOptions\x12&\n\"FREQUENCY_LIST_OPTIONS_UNSPECIFIED\x10\x00\x12\x39\n,FREQUENCY_LIST_OPTIONS_NIFGEN_VAL_ALL_FLISTS\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\x89\x07\n\x0fRouteSignalFrom\x12!\n\x1dROUTE_SIGNAL_FROM_UNSPECIFIED\x10\x00\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_MARKER\x10\xe9\x07\x12*\n%ROUTE_SIGNAL_FROM_NIFGEN_VAL_SYNC_OUT\x10\xea\x07\x12\x33\n.ROUTE_SIGNAL_FROM_NIFGEN_VAL_OUT_START_TRIGGER\x10\xec\x07\x12-\n(ROUTE_SIGNAL_FROM_NIFGEN_VAL_BOARD_CLOCK\x10\xee\x07\x12\x31\n,ROUTE_SIGNAL_FROM_NIFGEN_VAL_SYNCHRONIZATION\x10\xef\x07\x12.\n*ROUTE_SIGNAL_FROM_NIFGEN_VAL_SOFTWARE_TRIG\x10\x02\x12)\n$ROUTE_SIGNAL_FROM_NIFGEN_VAL_REF_OUT\x10\xf0\x07\x12+\n&ROUTE_SIGNAL_FROM_NIFGEN_VAL_CLOCK_OUT\x10\xf1\x07\x12*\n%ROUTE_SIGNAL_FROM_NIFGEN_VAL_PXI_STAR\x10\x83\x01\x12\'\n\"ROUTE_SIGNAL_FROM_NIFGEN_VAL_PFI_0\x10\xf3\x07\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_0\x10\x8d\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_1\x10\x8e\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_2\x10\x8f\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_3\x10\x90\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_4\x10\x91\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_5\x10\x92\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_6\x10\x93\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_7\x10\xf2\x07\x12\x39\n4ROUTE_SIGNAL_FROM_NIFGEN_VAL_ONBOARD_REFERENCE_CLOCK\x10\xfb\x07*\x91\x04\n\rRouteSignalTo\x12\x1f\n\x1bROUTE_SIGNAL_TO_UNSPECIFIED\x10\x00\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_0\x10\x8d\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_1\x10\x8e\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_2\x10\x8f\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_3\x10\x90\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_4\x10\x91\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_5\x10\x92\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_6\x10\x93\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_7\x10\xf2\x07\x12\'\n\"ROUTE_SIGNAL_TO_NIFGEN_VAL_REF_OUT\x10\xf0\x07\x12%\n ROUTE_SIGNAL_TO_NIFGEN_VAL_PFI_0\x10\xf3\x07\x12%\n ROUTE_SIGNAL_TO_NIFGEN_VAL_PFI_1\x10\xf4\x07\x12(\n#ROUTE_SIGNAL_TO_NIFGEN_VAL_PXI_STAR\x10\x83\x01*h\n\x0eSequenceHandle\x12\x1f\n\x1bSEQUENCE_HANDLE_UNSPECIFIED\x10\x00\x12\x35\n(SEQUENCE_HANDLE_NIFGEN_VAL_ALL_SEQUENCES\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*h\n\x0eWaveformHandle\x12\x1f\n\x1bWAVEFORM_HANDLE_UNSPECIFIED\x10\x00\x12\x35\n(WAVEFORM_HANDLE_NIFGEN_VAL_ALL_WAVEFORMS\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xc1Q\n\x1aNiFgenInt32AttributeValues\x12\x1c\n\x18NIFGEN_INT32_UNSPECIFIED\x10\x00\x12/\n+NIFGEN_INT32_ADDRESS_TYPE_VAL_ADDR_PHYSICAL\x10\x00\x12.\n*NIFGEN_INT32_ADDRESS_TYPE_VAL_ADDR_VIRTUAL\x10\x01\x12\x31\n-NIFGEN_INT32_ANALOG_PATH_VAL_MAIN_ANALOG_PATH\x10\x00\x12\x33\n/NIFGEN_INT32_ANALOG_PATH_VAL_DIRECT_ANALOG_PATH\x10\x01\x12;\n7NIFGEN_INT32_ANALOG_PATH_VAL_FIXED_LOW_GAIN_ANALOG_PATH\x10\x02\x12<\n8NIFGEN_INT32_ANALOG_PATH_VAL_FIXED_HIGH_GAIN_ANALOG_PATH\x10\x03\x12\x46\n@NIFGEN_INT32_ARBITRARY_SEQUENCE_HANDLE_VAL_FIRST_SEQUENCE_HANDLE\x10\xa0\x8d\x06\x12\x45\n?NIFGEN_INT32_ARBITRARY_SEQUENCE_HANDLE_VAL_LAST_SEQUENCE_HANDLE\x10\xaf\xdb\x06\x12\x43\n6NIFGEN_INT32_ARBITRARY_SEQUENCE_HANDLE_VAL_NO_SEQUENCE\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x45\n@NIFGEN_INT32_ARBITRARY_WAVEFORM_HANDLE_VAL_FIRST_WAVEFORM_HANDLE\x10\x90N\x12\x44\n?NIFGEN_INT32_ARBITRARY_WAVEFORM_HANDLE_VAL_LAST_WAVEFORM_HANDLE\x10\xf7U\x12\x43\n6NIFGEN_INT32_ARBITRARY_WAVEFORM_HANDLE_VAL_NO_WAVEFORM\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12=\n0NIFGEN_INT32_BURST_COUNT_VAL_GENERATE_CONTINUOUS\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12)\n%NIFGEN_INT32_BUS_TYPE_VAL_BUS_INVALID\x10\x00\x12$\n NIFGEN_INT32_BUS_TYPE_VAL_BUS_AT\x10\x01\x12%\n!NIFGEN_INT32_BUS_TYPE_VAL_BUS_PCI\x10\x02\x12%\n!NIFGEN_INT32_BUS_TYPE_VAL_BUS_PXI\x10\x03\x12%\n!NIFGEN_INT32_BUS_TYPE_VAL_BUS_VXI\x10\x04\x12(\n$NIFGEN_INT32_BUS_TYPE_VAL_BUS_PCMCIA\x10\x05\x12&\n\"NIFGEN_INT32_BUS_TYPE_VAL_BUS_PXIE\x10\x06\x12/\n+NIFGEN_INT32_CLOCK_MODE_VAL_HIGH_RESOLUTION\x10\x00\x12+\n\'NIFGEN_INT32_CLOCK_MODE_VAL_DIVIDE_DOWN\x10\x01\x12)\n%NIFGEN_INT32_CLOCK_MODE_VAL_AUTOMATIC\x10\x02\x12\x41\n=NIFGEN_INT32_DATA_MARKER_EVENT_LEVEL_POLARITY_VAL_ACTIVE_HIGH\x10\x65\x12@\nNIFGEN_INT32_MARKER_EVENT_DELAY_UNITS_VAL_SAMPLE_CLOCK_PERIODS\x10\x65\x12\x35\n1NIFGEN_INT32_MARKER_EVENT_DELAY_UNITS_VAL_SECONDS\x10\x66\x12\x37\n3NIFGEN_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_VAL_PULSE\x10\x65\x12\x37\n3NIFGEN_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_VAL_LEVEL\x10\x66\x12\x38\n4NIFGEN_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_VAL_TOGGLE\x10g\x12<\n8NIFGEN_INT32_MARKER_EVENT_PULSE_POLARITY_VAL_ACTIVE_HIGH\x10\x65\x12;\n7NIFGEN_INT32_MARKER_EVENT_PULSE_POLARITY_VAL_ACTIVE_LOW\x10\x66\x12H\nDNIFGEN_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_VAL_SAMPLE_CLOCK_PERIODS\x10\x65\x12;\n7NIFGEN_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_VAL_SECONDS\x10\x66\x12;\n7NIFGEN_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_VAL_HIGH\x10\x65\x12:\n6NIFGEN_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_VAL_LOW\x10\x66\x12$\n NIFGEN_INT32_OSP_MODE_VAL_OSP_IF\x10\x00\x12*\n&NIFGEN_INT32_OSP_MODE_VAL_OSP_BASEBAND\x10\x01\x12G\nCNIFGEN_INT32_OSP_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_ERROR\x10\x00\x12J\nFNIFGEN_INT32_OSP_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_DISABLED\x10\x02\x12:\n6NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_NONE\x10\x00\x12G\nCNIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_GAIN_I\x10\x01\x12G\nCNIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_GAIN_Q\x10\x02\x12I\nENIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_OFFSET_I\x10\x04\x12I\nENIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_OFFSET_Q\x10\x08\x12\x42\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_FIR_FILTER_I\x10\x10\x12\x43\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PFIR_FILTER_I\x10\x10\x12\x42\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_FIR_FILTER_Q\x10 \x12\x43\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PFIR_FILTER_Q\x10 \x12\x42\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CIC_FILTER_I\x10@\x12\x43\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CIC_FILTER_Q\x10\x80\x01\x12\x43\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_COMPLEX_DATA\x10\x80\x02\x12\x44\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CFIR_FILTER_I\x10\x80\x04\x12\x44\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CFIR_FILTER_Q\x10\x80\x08\x12@\n;NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_EQUALIZER\x10\x80\x10\x12,\n(NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_FUNC\x10\x00\x12+\n\'NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_ARB\x10\x01\x12+\n\'NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_SEQ\x10\x02\x12\x31\n-NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_FREQ_LIST\x10\x65\x12.\n*NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_SCRIPT\x10\x66\x12\x43\n?NIFGEN_INT32_READY_FOR_START_EVENT_ACTIVE_LEVEL_VAL_ACTIVE_HIGH\x10\x65\x12\x42\n>NIFGEN_INT32_READY_FOR_START_EVENT_ACTIVE_LEVEL_VAL_ACTIVE_LOW\x10\x66\x12\x41\n=NIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_EDGE_EDGE_VAL_RISING_EDGE\x10\x65\x12\x42\n>NIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_EDGE_EDGE_VAL_FALLING_EDGE\x10\x66\x12J\nFNIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_LEVEL_ACTIVE_LEVEL_VAL_ACTIVE_HIGH\x10\x65\x12I\nENIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_LEVEL_ACTIVE_LEVEL_VAL_ACTIVE_LOW\x10\x66\x12\x32\n.NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_TRIG_NONE\x10\x65\x12\x35\n1NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_DIGITAL_EDGE\x10\x66\x12\x36\n2NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_DIGITAL_LEVEL\x10g\x12\x36\n2NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_SOFTWARE_EDGE\x10h\x12@\n\n\x05\x43lose\x12\x19.nifgen_grpc.CloseRequest\x1a\x1a.nifgen_grpc.CloseResponse\x12>\n\x05Reset\x12\x19.nifgen_grpc.ResetRequest\x1a\x1a.nifgen_grpc.ResetResponse\x12G\n\x08SelfTest\x12\x1c.nifgen_grpc.SelfTestRequest\x1a\x1d.nifgen_grpc.SelfTestResponse\x12M\n\nErrorQuery\x12\x1e.nifgen_grpc.ErrorQueryRequest\x1a\x1f.nifgen_grpc.ErrorQueryResponse\x12S\n\x0c\x45rrorMessage\x12 .nifgen_grpc.ErrorMessageRequest\x1a!.nifgen_grpc.ErrorMessageResponse\x12V\n\rRevisionQuery\x12!.nifgen_grpc.RevisionQueryRequest\x1a\".nifgen_grpc.RevisionQueryResponse\x12G\n\x08GetError\x12\x1c.nifgen_grpc.GetErrorRequest\x1a\x1d.nifgen_grpc.GetErrorResponse\x12M\n\nClearError\x12\x1e.nifgen_grpc.ClearErrorRequest\x1a\x1f.nifgen_grpc.ClearErrorResponse\x12S\n\x0c\x45rrorHandler\x12 .nifgen_grpc.ErrorHandlerRequest\x1a!.nifgen_grpc.ErrorHandlerResponse\x12Y\n\x0eGetChannelName\x12\".nifgen_grpc.GetChannelNameRequest\x1a#.nifgen_grpc.GetChannelNameResponse\x12n\n\x15ResetInterchangeCheck\x12).nifgen_grpc.ResetInterchangeCheckRequest\x1a*.nifgen_grpc.ResetInterchangeCheckResponse\x12w\n\x18\x43learInterchangeWarnings\x12,.nifgen_grpc.ClearInterchangeWarningsRequest\x1a-.nifgen_grpc.ClearInterchangeWarningsResponse\x12t\n\x17InvalidateAllAttributes\x12+.nifgen_grpc.InvalidateAllAttributesRequest\x1a,.nifgen_grpc.InvalidateAllAttributesResponse\x12\x62\n\x11ResetWithDefaults\x12%.nifgen_grpc.ResetWithDefaultsRequest\x1a&.nifgen_grpc.ResetWithDefaultsResponse\x12\x44\n\x07\x44isable\x12\x1b.nifgen_grpc.DisableRequest\x1a\x1c.nifgen_grpc.DisableResponse\x12\x41\n\x06\x43ommit\x12\x1a.nifgen_grpc.CommitRequest\x1a\x1b.nifgen_grpc.CommitResponse\x12_\n\x10GetHardwareState\x12$.nifgen_grpc.GetHardwareStateRequest\x1a%.nifgen_grpc.GetHardwareStateResponse\x12V\n\rWaitUntilDone\x12!.nifgen_grpc.WaitUntilDoneRequest\x1a\".nifgen_grpc.WaitUntilDoneResponse\x12\x41\n\x06IsDone\x12\x1a.nifgen_grpc.IsDoneRequest\x1a\x1b.nifgen_grpc.IsDoneResponse\x12P\n\x0bResetDevice\x12\x1f.nifgen_grpc.ResetDeviceRequest\x1a .nifgen_grpc.ResetDeviceResponse\x12q\n\x16\x43onfigureOperationMode\x12*.nifgen_grpc.ConfigureOperationModeRequest\x1a+.nifgen_grpc.ConfigureOperationModeResponse\x12h\n\x13\x43onfigureOutputMode\x12\'.nifgen_grpc.ConfigureOutputModeRequest\x1a(.nifgen_grpc.ConfigureOutputModeResponse\x12t\n\x17\x43onfigureReferenceClock\x12+.nifgen_grpc.ConfigureReferenceClockRequest\x1a,.nifgen_grpc.ConfigureReferenceClockResponse\x12w\n\x18\x43onfigureOutputImpedance\x12,.nifgen_grpc.ConfigureOutputImpedanceRequest\x1a-.nifgen_grpc.ConfigureOutputImpedanceResponse\x12q\n\x16\x43onfigureOutputEnabled\x12*.nifgen_grpc.ConfigureOutputEnabledRequest\x1a+.nifgen_grpc.ConfigureOutputEnabledResponse\x12\x62\n\x11\x43onfigureChannels\x12%.nifgen_grpc.ConfigureChannelsRequest\x1a&.nifgen_grpc.ConfigureChannelsResponse\x12\x65\n\x12InitiateGeneration\x12&.nifgen_grpc.InitiateGenerationRequest\x1a\'.nifgen_grpc.InitiateGenerationResponse\x12\\\n\x0f\x41\x62ortGeneration\x12#.nifgen_grpc.AbortGenerationRequest\x1a$.nifgen_grpc.AbortGenerationResponse\x12z\n\x19\x43onfigureStandardWaveform\x12-.nifgen_grpc.ConfigureStandardWaveformRequest\x1a..nifgen_grpc.ConfigureStandardWaveformResponse\x12}\n\x1a\x44\x65\x66ineUserStandardWaveform\x12..nifgen_grpc.DefineUserStandardWaveformRequest\x1a/.nifgen_grpc.DefineUserStandardWaveformResponse\x12z\n\x19\x43learUserStandardWaveform\x12-.nifgen_grpc.ClearUserStandardWaveformRequest\x1a..nifgen_grpc.ClearUserStandardWaveformResponse\x12\x65\n\x12\x43onfigureFrequency\x12&.nifgen_grpc.ConfigureFrequencyRequest\x1a\'.nifgen_grpc.ConfigureFrequencyResponse\x12\x65\n\x12\x43onfigureAmplitude\x12&.nifgen_grpc.ConfigureAmplitudeRequest\x1a\'.nifgen_grpc.ConfigureAmplitudeResponse\x12t\n\x17QueryArbWfmCapabilities\x12+.nifgen_grpc.QueryArbWfmCapabilitiesRequest\x1a,.nifgen_grpc.QueryArbWfmCapabilitiesResponse\x12\x62\n\x11\x43reateWaveformF64\x12%.nifgen_grpc.CreateWaveformF64Request\x1a&.nifgen_grpc.CreateWaveformF64Response\x12\x62\n\x11\x43reateWaveformI16\x12%.nifgen_grpc.CreateWaveformI16Request\x1a&.nifgen_grpc.CreateWaveformI16Response\x12w\n\x18\x43reateWaveformComplexF64\x12,.nifgen_grpc.CreateWaveformComplexF64Request\x1a-.nifgen_grpc.CreateWaveformComplexF64Response\x12z\n\x19\x43reateWaveformFromFileI16\x12-.nifgen_grpc.CreateWaveformFromFileI16Request\x1a..nifgen_grpc.CreateWaveformFromFileI16Response\x12z\n\x19\x43reateWaveformFromFileF64\x12-.nifgen_grpc.CreateWaveformFromFileF64Request\x1a..nifgen_grpc.CreateWaveformFromFileF64Response\x12h\n\x13\x43onfigureSampleRate\x12\'.nifgen_grpc.ConfigureSampleRateRequest\x1a(.nifgen_grpc.ConfigureSampleRateResponse\x12k\n\x14\x43onfigureArbWaveform\x12(.nifgen_grpc.ConfigureArbWaveformRequest\x1a).nifgen_grpc.ConfigureArbWaveformResponse\x12_\n\x10\x43learArbWaveform\x12$.nifgen_grpc.ClearArbWaveformRequest\x1a%.nifgen_grpc.ClearArbWaveformResponse\x12n\n\x15\x41llocateNamedWaveform\x12).nifgen_grpc.AllocateNamedWaveformRequest\x1a*.nifgen_grpc.AllocateNamedWaveformResponse\x12\x92\x01\n!SetNamedWaveformNextWritePosition\x12\x35.nifgen_grpc.SetNamedWaveformNextWritePositionRequest\x1a\x36.nifgen_grpc.SetNamedWaveformNextWritePositionResponse\x12n\n\x15WriteNamedWaveformF64\x12).nifgen_grpc.WriteNamedWaveformF64Request\x1a*.nifgen_grpc.WriteNamedWaveformF64Response\x12n\n\x15WriteNamedWaveformI16\x12).nifgen_grpc.WriteNamedWaveformI16Request\x1a*.nifgen_grpc.WriteNamedWaveformI16Response\x12\x83\x01\n\x1cWriteNamedWaveformComplexF64\x12\x30.nifgen_grpc.WriteNamedWaveformComplexF64Request\x1a\x31.nifgen_grpc.WriteNamedWaveformComplexF64Response\x12\x83\x01\n\x1cWriteNamedWaveformComplexI16\x12\x30.nifgen_grpc.WriteNamedWaveformComplexI16Request\x1a\x31.nifgen_grpc.WriteNamedWaveformComplexI16Response\x12h\n\x13\x44\x65leteNamedWaveform\x12\'.nifgen_grpc.DeleteNamedWaveformRequest\x1a(.nifgen_grpc.DeleteNamedWaveformResponse\x12t\n\x17QueryArbSeqCapabilities\x12+.nifgen_grpc.QueryArbSeqCapabilitiesRequest\x1a,.nifgen_grpc.QueryArbSeqCapabilitiesResponse\x12\x62\n\x11\x43reateArbSequence\x12%.nifgen_grpc.CreateArbSequenceRequest\x1a&.nifgen_grpc.CreateArbSequenceResponse\x12z\n\x19\x43reateAdvancedArbSequence\x12-.nifgen_grpc.CreateAdvancedArbSequenceRequest\x1a..nifgen_grpc.CreateAdvancedArbSequenceResponse\x12k\n\x14\x43onfigureArbSequence\x12(.nifgen_grpc.ConfigureArbSequenceRequest\x1a).nifgen_grpc.ConfigureArbSequenceResponse\x12_\n\x10\x43learArbSequence\x12$.nifgen_grpc.ClearArbSequenceRequest\x1a%.nifgen_grpc.ClearArbSequenceResponse\x12Y\n\x0e\x43learArbMemory\x12\".nifgen_grpc.ClearArbMemoryRequest\x1a#.nifgen_grpc.ClearArbMemoryResponse\x12z\n\x19QueryFreqListCapabilities\x12-.nifgen_grpc.QueryFreqListCapabilitiesRequest\x1a..nifgen_grpc.QueryFreqListCapabilitiesResponse\x12Y\n\x0e\x43reateFreqList\x12\".nifgen_grpc.CreateFreqListRequest\x1a#.nifgen_grpc.CreateFreqListResponse\x12\x62\n\x11\x43onfigureFreqList\x12%.nifgen_grpc.ConfigureFreqListRequest\x1a&.nifgen_grpc.ConfigureFreqListResponse\x12V\n\rClearFreqList\x12!.nifgen_grpc.ClearFreqListRequest\x1a\".nifgen_grpc.ClearFreqListResponse\x12P\n\x0bWriteScript\x12\x1f.nifgen_grpc.WriteScriptRequest\x1a .nifgen_grpc.WriteScriptResponse\x12S\n\x0c\x44\x65leteScript\x12 .nifgen_grpc.DeleteScriptRequest\x1a!.nifgen_grpc.DeleteScriptResponse\x12S\n\x0c\x45xportSignal\x12 .nifgen_grpc.ExportSignalRequest\x1a!.nifgen_grpc.ExportSignalResponse\x12Y\n\x0eRouteSignalOut\x12\".nifgen_grpc.RouteSignalOutRequest\x1a#.nifgen_grpc.RouteSignalOutResponse\x12t\n\x17SendSoftwareEdgeTrigger\x12+.nifgen_grpc.SendSoftwareEdgeTriggerRequest\x1a,.nifgen_grpc.SendSoftwareEdgeTriggerResponse\x12\x8f\x01\n ConfigureDigitalEdgeStartTrigger\x12\x34.nifgen_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x35.nifgen_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x92\x01\n!ConfigureSoftwareEdgeStartTrigger\x12\x35.nifgen_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a\x36.nifgen_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12h\n\x13\x44isableStartTrigger\x12\'.nifgen_grpc.DisableStartTriggerRequest\x1a(.nifgen_grpc.DisableStartTriggerResponse\x12\xa7\x01\n(ConfigureP2PEndpointFullnessStartTrigger\x12<.nifgen_grpc.ConfigureP2PEndpointFullnessStartTriggerRequest\x1a=.nifgen_grpc.ConfigureP2PEndpointFullnessStartTriggerResponse\x12\x92\x01\n!ConfigureDigitalEdgeScriptTrigger\x12\x35.nifgen_grpc.ConfigureDigitalEdgeScriptTriggerRequest\x1a\x36.nifgen_grpc.ConfigureDigitalEdgeScriptTriggerResponse\x12\x95\x01\n\"ConfigureDigitalLevelScriptTrigger\x12\x36.nifgen_grpc.ConfigureDigitalLevelScriptTriggerRequest\x1a\x37.nifgen_grpc.ConfigureDigitalLevelScriptTriggerResponse\x12\x95\x01\n\"ConfigureSoftwareEdgeScriptTrigger\x12\x36.nifgen_grpc.ConfigureSoftwareEdgeScriptTriggerRequest\x1a\x37.nifgen_grpc.ConfigureSoftwareEdgeScriptTriggerResponse\x12k\n\x14\x44isableScriptTrigger\x12(.nifgen_grpc.DisableScriptTriggerRequest\x1a).nifgen_grpc.DisableScriptTriggerResponse\x12\x65\n\x12\x43onfigureClockMode\x12&.nifgen_grpc.ConfigureClockModeRequest\x1a\'.nifgen_grpc.ConfigureClockModeResponse\x12\x89\x01\n\x1e\x41\x64justSampleClockRelativeDelay\x12\x32.nifgen_grpc.AdjustSampleClockRelativeDelayRequest\x1a\x33.nifgen_grpc.AdjustSampleClockRelativeDelayResponse\x12_\n\x10\x41llocateWaveform\x12$.nifgen_grpc.AllocateWaveformRequest\x1a%.nifgen_grpc.AllocateWaveformResponse\x12\x83\x01\n\x1cSetWaveformNextWritePosition\x12\x30.nifgen_grpc.SetWaveformNextWritePositionRequest\x1a\x31.nifgen_grpc.SetWaveformNextWritePositionResponse\x12V\n\rWriteWaveform\x12!.nifgen_grpc.WriteWaveformRequest\x1a\".nifgen_grpc.WriteWaveformResponse\x12n\n\x15WriteBinary16Waveform\x12).nifgen_grpc.WriteBinary16WaveformRequest\x1a*.nifgen_grpc.WriteBinary16WaveformResponse\x12t\n\x17WriteWaveformComplexF64\x12+.nifgen_grpc.WriteWaveformComplexF64Request\x1a,.nifgen_grpc.WriteWaveformComplexF64Response\x12\x83\x01\n\x1cWriteComplexBinary16Waveform\x12\x30.nifgen_grpc.WriteComplexBinary16WaveformRequest\x1a\x31.nifgen_grpc.WriteComplexBinary16WaveformResponse\x12\x44\n\x07SelfCal\x12\x1b.nifgen_grpc.SelfCalRequest\x1a\x1c.nifgen_grpc.SelfCalResponse\x12h\n\x13GetSelfCalSupported\x12\'.nifgen_grpc.GetSelfCalSupportedRequest\x1a(.nifgen_grpc.GetSelfCalSupportedResponse\x12z\n\x19GetSelfCalLastDateAndTime\x12-.nifgen_grpc.GetSelfCalLastDateAndTimeRequest\x1a..nifgen_grpc.GetSelfCalLastDateAndTimeResponse\x12w\n\x18GetExtCalLastDateAndTime\x12,.nifgen_grpc.GetExtCalLastDateAndTimeRequest\x1a-.nifgen_grpc.GetExtCalLastDateAndTimeResponse\x12\x65\n\x12GetSelfCalLastTemp\x12&.nifgen_grpc.GetSelfCalLastTempRequest\x1a\'.nifgen_grpc.GetSelfCalLastTempResponse\x12\x62\n\x11GetExtCalLastTemp\x12%.nifgen_grpc.GetExtCalLastTempRequest\x1a&.nifgen_grpc.GetExtCalLastTempResponse\x12\x83\x01\n\x1cGetExtCalRecommendedInterval\x12\x30.nifgen_grpc.GetExtCalRecommendedIntervalRequest\x1a\x31.nifgen_grpc.GetExtCalRecommendedIntervalResponse\x12q\n\x16ReadCurrentTemperature\x12*.nifgen_grpc.ReadCurrentTemperatureRequest\x1a+.nifgen_grpc.ReadCurrentTemperatureResponse\x12\x9b\x01\n$ConfigureCustomFIRFilterCoefficients\x12\x38.nifgen_grpc.ConfigureCustomFIRFilterCoefficientsRequest\x1a\x39.nifgen_grpc.ConfigureCustomFIRFilterCoefficientsResponse\x12w\n\x18GetFIRFilterCoefficients\x12,.nifgen_grpc.GetFIRFilterCoefficientsRequest\x1a-.nifgen_grpc.GetFIRFilterCoefficientsResponse\x12t\n\x17GetStreamEndpointHandle\x12+.nifgen_grpc.GetStreamEndpointHandleRequest\x1a,.nifgen_grpc.GetStreamEndpointHandleResponse\x12h\n\x13WriteP2PEndpointI16\x12\'.nifgen_grpc.WriteP2PEndpointI16Request\x1a(.nifgen_grpc.WriteP2PEndpointI16Response\x12w\n\x18\x43onfigureSynchronization\x12,.nifgen_grpc.ConfigureSynchronizationRequest\x1a-.nifgen_grpc.ConfigureSynchronizationResponse\x12t\n\x17\x45nableDigitalPatterning\x12+.nifgen_grpc.EnableDigitalPatterningRequest\x1a,.nifgen_grpc.EnableDigitalPatterningResponse\x12w\n\x18\x44isableDigitalPatterning\x12,.nifgen_grpc.DisableDigitalPatterningRequest\x1a-.nifgen_grpc.DisableDigitalPatterningResponse\x12h\n\x13\x45nableDigitalFilter\x12\'.nifgen_grpc.EnableDigitalFilterRequest\x1a(.nifgen_grpc.EnableDigitalFilterResponse\x12k\n\x14\x44isableDigitalFilter\x12(.nifgen_grpc.DisableDigitalFilterRequest\x1a).nifgen_grpc.DisableDigitalFilterResponse\x12\x65\n\x12\x45nableAnalogFilter\x12&.nifgen_grpc.EnableAnalogFilterRequest\x1a\'.nifgen_grpc.EnableAnalogFilterResponse\x12h\n\x13\x44isableAnalogFilter\x12\'.nifgen_grpc.DisableAnalogFilterRequest\x1a(.nifgen_grpc.DisableAnalogFilterResponse\x12}\n\x1a\x43onfigureSampleClockSource\x12..nifgen_grpc.ConfigureSampleClockSourceRequest\x1a/.nifgen_grpc.ConfigureSampleClockSourceResponse\x12k\n\x14\x43onfigureTriggerMode\x12(.nifgen_grpc.ConfigureTriggerModeRequest\x1a).nifgen_grpc.ConfigureTriggerModeResponse\x12\x8f\x01\n ImportAttributeConfigurationFile\x12\x34.nifgen_grpc.ImportAttributeConfigurationFileRequest\x1a\x35.nifgen_grpc.ImportAttributeConfigurationFileResponse\x12\x8f\x01\n ExportAttributeConfigurationFile\x12\x34.nifgen_grpc.ExportAttributeConfigurationFileRequest\x1a\x35.nifgen_grpc.ExportAttributeConfigurationFileResponse\x12\x95\x01\n\"ImportAttributeConfigurationBuffer\x12\x36.nifgen_grpc.ImportAttributeConfigurationBufferRequest\x1a\x37.nifgen_grpc.ImportAttributeConfigurationBufferResponse\x12\x95\x01\n\"ExportAttributeConfigurationBuffer\x12\x36.nifgen_grpc.ExportAttributeConfigurationBufferRequest\x1a\x37.nifgen_grpc.ExportAttributeConfigurationBufferResponse\x12h\n\x13SetAttributeViInt64\x12\'.nifgen_grpc.SetAttributeViInt64Request\x1a(.nifgen_grpc.SetAttributeViInt64Response\x12n\n\x15\x43heckAttributeViInt64\x12).nifgen_grpc.CheckAttributeViInt64Request\x1a*.nifgen_grpc.CheckAttributeViInt64Response\x12h\n\x13GetAttributeViInt64\x12\'.nifgen_grpc.GetAttributeViInt64Request\x1a(.nifgen_grpc.GetAttributeViInt64Response\x12h\n\x13SetAttributeViInt32\x12\'.nifgen_grpc.SetAttributeViInt32Request\x1a(.nifgen_grpc.SetAttributeViInt32Response\x12k\n\x14SetAttributeViReal64\x12(.nifgen_grpc.SetAttributeViReal64Request\x1a).nifgen_grpc.SetAttributeViReal64Response\x12k\n\x14SetAttributeViString\x12(.nifgen_grpc.SetAttributeViStringRequest\x1a).nifgen_grpc.SetAttributeViStringResponse\x12n\n\x15SetAttributeViBoolean\x12).nifgen_grpc.SetAttributeViBooleanRequest\x1a*.nifgen_grpc.SetAttributeViBooleanResponse\x12n\n\x15SetAttributeViSession\x12).nifgen_grpc.SetAttributeViSessionRequest\x1a*.nifgen_grpc.SetAttributeViSessionResponse\x12n\n\x15\x43heckAttributeViInt32\x12).nifgen_grpc.CheckAttributeViInt32Request\x1a*.nifgen_grpc.CheckAttributeViInt32Response\x12q\n\x16\x43heckAttributeViReal64\x12*.nifgen_grpc.CheckAttributeViReal64Request\x1a+.nifgen_grpc.CheckAttributeViReal64Response\x12q\n\x16\x43heckAttributeViString\x12*.nifgen_grpc.CheckAttributeViStringRequest\x1a+.nifgen_grpc.CheckAttributeViStringResponse\x12t\n\x17\x43heckAttributeViBoolean\x12+.nifgen_grpc.CheckAttributeViBooleanRequest\x1a,.nifgen_grpc.CheckAttributeViBooleanResponse\x12t\n\x17\x43heckAttributeViSession\x12+.nifgen_grpc.CheckAttributeViSessionRequest\x1a,.nifgen_grpc.CheckAttributeViSessionResponse\x12h\n\x13GetAttributeViInt32\x12\'.nifgen_grpc.GetAttributeViInt32Request\x1a(.nifgen_grpc.GetAttributeViInt32Response\x12k\n\x14GetAttributeViReal64\x12(.nifgen_grpc.GetAttributeViReal64Request\x1a).nifgen_grpc.GetAttributeViReal64Response\x12k\n\x14GetAttributeViString\x12(.nifgen_grpc.GetAttributeViStringRequest\x1a).nifgen_grpc.GetAttributeViStringResponse\x12n\n\x15GetAttributeViBoolean\x12).nifgen_grpc.GetAttributeViBooleanRequest\x1a*.nifgen_grpc.GetAttributeViBooleanResponse\x12n\n\x15GetAttributeViSession\x12).nifgen_grpc.GetAttributeViSessionRequest\x1a*.nifgen_grpc.GetAttributeViSessionResponse\x12Y\n\x0eResetAttribute\x12\".nifgen_grpc.ResetAttributeRequest\x1a#.nifgen_grpc.ResetAttributeResponse\x12n\n\x15ManualEnableP2PStream\x12).nifgen_grpc.ManualEnableP2PStreamRequest\x1a*.nifgen_grpc.ManualEnableP2PStreamResponse\x12z\n\x19\x43reateWaveformFromFileHWS\x12-.nifgen_grpc.CreateWaveformFromFileHWSRequest\x1a..nifgen_grpc.CreateWaveformFromFileHWSResponseB<\n\x10\x63om.ni.grpc.fgenB\x06NiFgenP\x01\xaa\x02\x1dNationalInstruments.Grpc.Fgenb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nifgen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\020com.ni.grpc.fgenB\006NiFgenP\001\252\002\035NationalInstruments.Grpc.Fgen' - _NIFGENINT32ATTRIBUTEVALUES._options = None - _NIFGENINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _NIFGENREAL64ATTRIBUTEVALUES._options = None - _NIFGENREAL64ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._options = None - _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NIFGENATTRIBUTE']._serialized_start=24660 - _globals['_NIFGENATTRIBUTE']._serialized_end=35325 - _globals['_OUTPUTMODE']._serialized_start=35328 - _globals['_OUTPUTMODE']._serialized_end=35545 - _globals['_WAVEFORM']._serialized_start=35548 - _globals['_WAVEFORM']._serialized_end=35869 - _globals['_SIGNAL']._serialized_start=35872 - _globals['_SIGNAL']._serialized_end=36416 - _globals['_TRIGGERMODE']._serialized_start=36419 - _globals['_TRIGGERMODE']._serialized_end=36610 - _globals['_CLOCKMODE']._serialized_start=36613 - _globals['_CLOCKMODE']._serialized_end=36743 - _globals['_RELATIVETO']._serialized_start=36745 - _globals['_RELATIVETO']._serialized_end=36863 - _globals['_HARDWARESTATE']._serialized_start=36866 - _globals['_HARDWARESTATE']._serialized_end=37098 - _globals['_BYTEORDER']._serialized_start=37100 - _globals['_BYTEORDER']._serialized_end=37190 - _globals['_TRIGGERWHEN']._serialized_start=37192 - _globals['_TRIGGERWHEN']._serialized_end=37316 - _globals['_TRIGGER']._serialized_start=37318 - _globals['_TRIGGER']._serialized_end=37430 - _globals['_FREQUENCYLISTOPTIONS']._serialized_start=37432 - _globals['_FREQUENCYLISTOPTIONS']._serialized_end=37553 - _globals['_ROUTESIGNALFROM']._serialized_start=37556 - _globals['_ROUTESIGNALFROM']._serialized_end=38461 - _globals['_ROUTESIGNALTO']._serialized_start=38464 - _globals['_ROUTESIGNALTO']._serialized_end=38993 - _globals['_SEQUENCEHANDLE']._serialized_start=38995 - _globals['_SEQUENCEHANDLE']._serialized_end=39099 - _globals['_WAVEFORMHANDLE']._serialized_start=39101 - _globals['_WAVEFORMHANDLE']._serialized_end=39205 - _globals['_NIFGENINT32ATTRIBUTEVALUES']._serialized_start=39208 - _globals['_NIFGENINT32ATTRIBUTEVALUES']._serialized_end=49641 - _globals['_NIFGENREAL64ATTRIBUTEVALUES']._serialized_start=49644 - _globals['_NIFGENREAL64ATTRIBUTEVALUES']._serialized_end=49939 - _globals['_NIFGENSTRINGATTRIBUTEVALUESMAPPED']._serialized_start=49942 - _globals['_NIFGENSTRINGATTRIBUTEVALUESMAPPED']._serialized_end=51301 - _globals['_INITREQUEST']._serialized_start=61 - _globals['_INITREQUEST']._serialized_end=238 - _globals['_INITRESPONSE']._serialized_start=240 - _globals['_INITRESPONSE']._serialized_end=366 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=369 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=580 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=583 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=720 - _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_start=723 - _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_end=945 - _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_start=948 - _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_end=1092 - _globals['_CLOSEREQUEST']._serialized_start=1094 - _globals['_CLOSEREQUEST']._serialized_end=1144 - _globals['_CLOSERESPONSE']._serialized_start=1146 - _globals['_CLOSERESPONSE']._serialized_end=1177 - _globals['_RESETREQUEST']._serialized_start=1179 - _globals['_RESETREQUEST']._serialized_end=1229 - _globals['_RESETRESPONSE']._serialized_start=1231 - _globals['_RESETRESPONSE']._serialized_end=1262 - _globals['_SELFTESTREQUEST']._serialized_start=1264 - _globals['_SELFTESTREQUEST']._serialized_end=1317 - _globals['_SELFTESTRESPONSE']._serialized_start=1319 - _globals['_SELFTESTRESPONSE']._serialized_end=1406 - _globals['_ERRORQUERYREQUEST']._serialized_start=1408 - _globals['_ERRORQUERYREQUEST']._serialized_end=1463 - _globals['_ERRORQUERYRESPONSE']._serialized_start=1465 - _globals['_ERRORQUERYRESPONSE']._serialized_end=1544 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=1546 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=1623 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=1625 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=1686 - _globals['_REVISIONQUERYREQUEST']._serialized_start=1688 - _globals['_REVISIONQUERYREQUEST']._serialized_end=1746 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=1748 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=1850 - _globals['_GETERRORREQUEST']._serialized_start=1852 - _globals['_GETERRORREQUEST']._serialized_end=1905 - _globals['_GETERRORRESPONSE']._serialized_start=1907 - _globals['_GETERRORRESPONSE']._serialized_end=1988 - _globals['_CLEARERRORREQUEST']._serialized_start=1990 - _globals['_CLEARERRORREQUEST']._serialized_end=2045 - _globals['_CLEARERRORRESPONSE']._serialized_start=2047 - _globals['_CLEARERRORRESPONSE']._serialized_end=2083 - _globals['_ERRORHANDLERREQUEST']._serialized_start=2085 - _globals['_ERRORHANDLERREQUEST']._serialized_end=2162 - _globals['_ERRORHANDLERRESPONSE']._serialized_start=2164 - _globals['_ERRORHANDLERRESPONSE']._serialized_end=2225 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=2227 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=2301 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=2303 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=2367 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=2369 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=2435 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=2437 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=2484 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=2486 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=2555 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=2557 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=2607 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=2609 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=2677 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=2679 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=2728 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=2730 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=2792 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=2794 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=2837 - _globals['_DISABLEREQUEST']._serialized_start=2839 - _globals['_DISABLEREQUEST']._serialized_end=2891 - _globals['_DISABLERESPONSE']._serialized_start=2893 - _globals['_DISABLERESPONSE']._serialized_end=2926 - _globals['_COMMITREQUEST']._serialized_start=2928 - _globals['_COMMITREQUEST']._serialized_end=2979 - _globals['_COMMITRESPONSE']._serialized_start=2981 - _globals['_COMMITRESPONSE']._serialized_end=3013 - _globals['_GETHARDWARESTATEREQUEST']._serialized_start=3015 - _globals['_GETHARDWARESTATEREQUEST']._serialized_end=3076 - _globals['_GETHARDWARESTATERESPONSE']._serialized_start=3078 - _globals['_GETHARDWARESTATERESPONSE']._serialized_end=3182 - _globals['_WAITUNTILDONEREQUEST']._serialized_start=3184 - _globals['_WAITUNTILDONEREQUEST']._serialized_end=3260 - _globals['_WAITUNTILDONERESPONSE']._serialized_start=3262 - _globals['_WAITUNTILDONERESPONSE']._serialized_end=3301 - _globals['_ISDONEREQUEST']._serialized_start=3303 - _globals['_ISDONEREQUEST']._serialized_end=3354 - _globals['_ISDONERESPONSE']._serialized_start=3356 - _globals['_ISDONERESPONSE']._serialized_end=3402 - _globals['_RESETDEVICEREQUEST']._serialized_start=3404 - _globals['_RESETDEVICEREQUEST']._serialized_end=3460 - _globals['_RESETDEVICERESPONSE']._serialized_start=3462 - _globals['_RESETDEVICERESPONSE']._serialized_end=3499 - _globals['_CONFIGUREOPERATIONMODEREQUEST']._serialized_start=3501 - _globals['_CONFIGUREOPERATIONMODEREQUEST']._serialized_end=3614 - _globals['_CONFIGUREOPERATIONMODERESPONSE']._serialized_start=3616 - _globals['_CONFIGUREOPERATIONMODERESPONSE']._serialized_end=3664 - _globals['_CONFIGUREOUTPUTMODEREQUEST']._serialized_start=3667 - _globals['_CONFIGUREOUTPUTMODEREQUEST']._serialized_end=3826 - _globals['_CONFIGUREOUTPUTMODERESPONSE']._serialized_start=3828 - _globals['_CONFIGUREOUTPUTMODERESPONSE']._serialized_end=3873 - _globals['_CONFIGUREREFERENCECLOCKREQUEST']._serialized_start=3876 - _globals['_CONFIGUREREFERENCECLOCKREQUEST']._serialized_end=4011 - _globals['_CONFIGUREREFERENCECLOCKRESPONSE']._serialized_start=4013 - _globals['_CONFIGUREREFERENCECLOCKRESPONSE']._serialized_end=4062 - _globals['_CONFIGUREOUTPUTIMPEDANCEREQUEST']._serialized_start=4064 - _globals['_CONFIGUREOUTPUTIMPEDANCEREQUEST']._serialized_end=4174 - _globals['_CONFIGUREOUTPUTIMPEDANCERESPONSE']._serialized_start=4176 - _globals['_CONFIGUREOUTPUTIMPEDANCERESPONSE']._serialized_end=4226 - _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_start=4228 - _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_end=4334 - _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_start=4336 - _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_end=4384 - _globals['_CONFIGURECHANNELSREQUEST']._serialized_start=4386 - _globals['_CONFIGURECHANNELSREQUEST']._serialized_end=4466 - _globals['_CONFIGURECHANNELSRESPONSE']._serialized_start=4468 - _globals['_CONFIGURECHANNELSRESPONSE']._serialized_end=4511 - _globals['_INITIATEGENERATIONREQUEST']._serialized_start=4513 - _globals['_INITIATEGENERATIONREQUEST']._serialized_end=4576 - _globals['_INITIATEGENERATIONRESPONSE']._serialized_start=4578 - _globals['_INITIATEGENERATIONRESPONSE']._serialized_end=4622 - _globals['_ABORTGENERATIONREQUEST']._serialized_start=4624 - _globals['_ABORTGENERATIONREQUEST']._serialized_end=4684 - _globals['_ABORTGENERATIONRESPONSE']._serialized_start=4686 - _globals['_ABORTGENERATIONRESPONSE']._serialized_end=4727 - _globals['_CONFIGURESTANDARDWAVEFORMREQUEST']._serialized_start=4730 - _globals['_CONFIGURESTANDARDWAVEFORMREQUEST']._serialized_end=4984 - _globals['_CONFIGURESTANDARDWAVEFORMRESPONSE']._serialized_start=4986 - _globals['_CONFIGURESTANDARDWAVEFORMRESPONSE']._serialized_end=5037 - _globals['_DEFINEUSERSTANDARDWAVEFORMREQUEST']._serialized_start=5039 - _globals['_DEFINEUSERSTANDARDWAVEFORMREQUEST']._serialized_end=5161 - _globals['_DEFINEUSERSTANDARDWAVEFORMRESPONSE']._serialized_start=5163 - _globals['_DEFINEUSERSTANDARDWAVEFORMRESPONSE']._serialized_end=5215 - _globals['_CLEARUSERSTANDARDWAVEFORMREQUEST']._serialized_start=5217 - _globals['_CLEARUSERSTANDARDWAVEFORMREQUEST']._serialized_end=5309 - _globals['_CLEARUSERSTANDARDWAVEFORMRESPONSE']._serialized_start=5311 - _globals['_CLEARUSERSTANDARDWAVEFORMRESPONSE']._serialized_end=5362 - _globals['_CONFIGUREFREQUENCYREQUEST']._serialized_start=5364 - _globals['_CONFIGUREFREQUENCYREQUEST']._serialized_end=5468 - _globals['_CONFIGUREFREQUENCYRESPONSE']._serialized_start=5470 - _globals['_CONFIGUREFREQUENCYRESPONSE']._serialized_end=5514 - _globals['_CONFIGUREAMPLITUDEREQUEST']._serialized_start=5516 - _globals['_CONFIGUREAMPLITUDEREQUEST']._serialized_end=5620 - _globals['_CONFIGUREAMPLITUDERESPONSE']._serialized_start=5622 - _globals['_CONFIGUREAMPLITUDERESPONSE']._serialized_end=5666 - _globals['_QUERYARBWFMCAPABILITIESREQUEST']._serialized_start=5668 - _globals['_QUERYARBWFMCAPABILITIESREQUEST']._serialized_end=5736 - _globals['_QUERYARBWFMCAPABILITIESRESPONSE']._serialized_start=5739 - _globals['_QUERYARBWFMCAPABILITIESRESPONSE']._serialized_end=5913 - _globals['_CREATEWAVEFORMF64REQUEST']._serialized_start=5915 - _globals['_CREATEWAVEFORMF64REQUEST']._serialized_end=6028 - _globals['_CREATEWAVEFORMF64RESPONSE']._serialized_start=6030 - _globals['_CREATEWAVEFORMF64RESPONSE']._serialized_end=6098 - _globals['_CREATEWAVEFORMI16REQUEST']._serialized_start=6100 - _globals['_CREATEWAVEFORMI16REQUEST']._serialized_end=6213 - _globals['_CREATEWAVEFORMI16RESPONSE']._serialized_start=6215 - _globals['_CREATEWAVEFORMI16RESPONSE']._serialized_end=6283 - _globals['_CREATEWAVEFORMCOMPLEXF64REQUEST']._serialized_start=6286 - _globals['_CREATEWAVEFORMCOMPLEXF64REQUEST']._serialized_end=6438 - _globals['_CREATEWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=6440 - _globals['_CREATEWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=6515 - _globals['_CREATEWAVEFORMFROMFILEI16REQUEST']._serialized_start=6518 - _globals['_CREATEWAVEFORMFROMFILEI16REQUEST']._serialized_end=6720 - _globals['_CREATEWAVEFORMFROMFILEI16RESPONSE']._serialized_start=6722 - _globals['_CREATEWAVEFORMFROMFILEI16RESPONSE']._serialized_end=6798 - _globals['_CREATEWAVEFORMFROMFILEF64REQUEST']._serialized_start=6801 - _globals['_CREATEWAVEFORMFROMFILEF64REQUEST']._serialized_end=7003 - _globals['_CREATEWAVEFORMFROMFILEF64RESPONSE']._serialized_start=7005 - _globals['_CREATEWAVEFORMFROMFILEF64RESPONSE']._serialized_end=7081 - _globals['_CONFIGURESAMPLERATEREQUEST']._serialized_start=7083 - _globals['_CONFIGURESAMPLERATEREQUEST']._serialized_end=7168 - _globals['_CONFIGURESAMPLERATERESPONSE']._serialized_start=7170 - _globals['_CONFIGURESAMPLERATERESPONSE']._serialized_end=7215 - _globals['_CONFIGUREARBWAVEFORMREQUEST']._serialized_start=7218 - _globals['_CONFIGUREARBWAVEFORMREQUEST']._serialized_end=7360 - _globals['_CONFIGUREARBWAVEFORMRESPONSE']._serialized_start=7362 - _globals['_CONFIGUREARBWAVEFORMRESPONSE']._serialized_end=7408 - _globals['_CLEARARBWAVEFORMREQUEST']._serialized_start=7411 - _globals['_CLEARARBWAVEFORMREQUEST']._serialized_end=7583 - _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_start=7585 - _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_end=7627 - _globals['_ALLOCATENAMEDWAVEFORMREQUEST']._serialized_start=7630 - _globals['_ALLOCATENAMEDWAVEFORMREQUEST']._serialized_end=7764 - _globals['_ALLOCATENAMEDWAVEFORMRESPONSE']._serialized_start=7766 - _globals['_ALLOCATENAMEDWAVEFORMRESPONSE']._serialized_end=7813 - _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_start=7816 - _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_end=8050 - _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_start=8052 - _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_end=8111 - _globals['_WRITENAMEDWAVEFORMF64REQUEST']._serialized_start=8113 - _globals['_WRITENAMEDWAVEFORMF64REQUEST']._serialized_end=8238 - _globals['_WRITENAMEDWAVEFORMF64RESPONSE']._serialized_start=8240 - _globals['_WRITENAMEDWAVEFORMF64RESPONSE']._serialized_end=8287 - _globals['_WRITENAMEDWAVEFORMI16REQUEST']._serialized_start=8289 - _globals['_WRITENAMEDWAVEFORMI16REQUEST']._serialized_end=8414 - _globals['_WRITENAMEDWAVEFORMI16RESPONSE']._serialized_start=8416 - _globals['_WRITENAMEDWAVEFORMI16RESPONSE']._serialized_end=8463 - _globals['_WRITENAMEDWAVEFORMCOMPLEXF64REQUEST']._serialized_start=8466 - _globals['_WRITENAMEDWAVEFORMCOMPLEXF64REQUEST']._serialized_end=8630 - _globals['_WRITENAMEDWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=8632 - _globals['_WRITENAMEDWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=8686 - _globals['_WRITENAMEDWAVEFORMCOMPLEXI16REQUEST']._serialized_start=8689 - _globals['_WRITENAMEDWAVEFORMCOMPLEXI16REQUEST']._serialized_end=8850 - _globals['_WRITENAMEDWAVEFORMCOMPLEXI16RESPONSE']._serialized_start=8852 - _globals['_WRITENAMEDWAVEFORMCOMPLEXI16RESPONSE']._serialized_end=8906 - _globals['_DELETENAMEDWAVEFORMREQUEST']._serialized_start=8908 - _globals['_DELETENAMEDWAVEFORMREQUEST']._serialized_end=9017 - _globals['_DELETENAMEDWAVEFORMRESPONSE']._serialized_start=9019 - _globals['_DELETENAMEDWAVEFORMRESPONSE']._serialized_end=9064 - _globals['_QUERYARBSEQCAPABILITIESREQUEST']._serialized_start=9066 - _globals['_QUERYARBSEQCAPABILITIESREQUEST']._serialized_end=9134 - _globals['_QUERYARBSEQCAPABILITIESRESPONSE']._serialized_start=9137 - _globals['_QUERYARBSEQCAPABILITIESRESPONSE']._serialized_end=9317 - _globals['_CREATEARBSEQUENCEREQUEST']._serialized_start=9319 - _globals['_CREATEARBSEQUENCEREQUEST']._serialized_end=9440 - _globals['_CREATEARBSEQUENCERESPONSE']._serialized_start=9442 - _globals['_CREATEARBSEQUENCERESPONSE']._serialized_end=9510 - _globals['_CREATEADVANCEDARBSEQUENCEREQUEST']._serialized_start=9513 - _globals['_CREATEADVANCEDARBSEQUENCEREQUEST']._serialized_end=9702 - _globals['_CREATEADVANCEDARBSEQUENCERESPONSE']._serialized_start=9704 - _globals['_CREATEADVANCEDARBSEQUENCERESPONSE']._serialized_end=9811 - _globals['_CONFIGUREARBSEQUENCEREQUEST']._serialized_start=9814 - _globals['_CONFIGUREARBSEQUENCEREQUEST']._serialized_end=9956 - _globals['_CONFIGUREARBSEQUENCERESPONSE']._serialized_start=9958 - _globals['_CONFIGUREARBSEQUENCERESPONSE']._serialized_end=10004 - _globals['_CLEARARBSEQUENCEREQUEST']._serialized_start=10007 - _globals['_CLEARARBSEQUENCEREQUEST']._serialized_end=10179 - _globals['_CLEARARBSEQUENCERESPONSE']._serialized_start=10181 - _globals['_CLEARARBSEQUENCERESPONSE']._serialized_end=10223 - _globals['_CLEARARBMEMORYREQUEST']._serialized_start=10225 - _globals['_CLEARARBMEMORYREQUEST']._serialized_end=10284 - _globals['_CLEARARBMEMORYRESPONSE']._serialized_start=10286 - _globals['_CLEARARBMEMORYRESPONSE']._serialized_end=10326 - _globals['_QUERYFREQLISTCAPABILITIESREQUEST']._serialized_start=10328 - _globals['_QUERYFREQLISTCAPABILITIESREQUEST']._serialized_end=10398 - _globals['_QUERYFREQLISTCAPABILITIESRESPONSE']._serialized_start=10401 - _globals['_QUERYFREQLISTCAPABILITIESRESPONSE']._serialized_end=10691 - _globals['_CREATEFREQLISTREQUEST']._serialized_start=10694 - _globals['_CREATEFREQLISTREQUEST']._serialized_end=10886 - _globals['_CREATEFREQLISTRESPONSE']._serialized_start=10888 - _globals['_CREATEFREQLISTRESPONSE']._serialized_end=10959 - _globals['_CONFIGUREFREQLISTREQUEST']._serialized_start=10962 - _globals['_CONFIGUREFREQLISTREQUEST']._serialized_end=11136 - _globals['_CONFIGUREFREQLISTRESPONSE']._serialized_start=11138 - _globals['_CONFIGUREFREQLISTRESPONSE']._serialized_end=11181 - _globals['_CLEARFREQLISTREQUEST']._serialized_start=11184 - _globals['_CLEARFREQLISTREQUEST']._serialized_end=11377 - _globals['_CLEARFREQLISTRESPONSE']._serialized_start=11379 - _globals['_CLEARFREQLISTRESPONSE']._serialized_end=11418 - _globals['_WRITESCRIPTREQUEST']._serialized_start=11420 - _globals['_WRITESCRIPTREQUEST']._serialized_end=11514 - _globals['_WRITESCRIPTRESPONSE']._serialized_start=11516 - _globals['_WRITESCRIPTRESPONSE']._serialized_end=11553 - _globals['_DELETESCRIPTREQUEST']._serialized_start=11555 - _globals['_DELETESCRIPTREQUEST']._serialized_end=11655 - _globals['_DELETESCRIPTRESPONSE']._serialized_start=11657 - _globals['_DELETESCRIPTRESPONSE']._serialized_end=11695 - _globals['_EXPORTSIGNALREQUEST']._serialized_start=11698 - _globals['_EXPORTSIGNALREQUEST']._serialized_end=11883 - _globals['_EXPORTSIGNALRESPONSE']._serialized_start=11885 - _globals['_EXPORTSIGNALRESPONSE']._serialized_end=11923 - _globals['_ROUTESIGNALOUTREQUEST']._serialized_start=11926 - _globals['_ROUTESIGNALOUTREQUEST']._serialized_end=12235 - _globals['_ROUTESIGNALOUTRESPONSE']._serialized_start=12237 - _globals['_ROUTESIGNALOUTRESPONSE']._serialized_end=12277 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=12280 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=12448 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=12450 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=12499 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=12501 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=12608 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=12610 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=12668 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=12670 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=12748 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=12750 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=12809 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=12811 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=12875 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=12877 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=12922 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_start=12924 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_end=13046 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_start=13048 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_end=13114 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_start=13117 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_end=13245 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_start=13247 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_end=13306 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_start=13309 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_end=13523 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_start=13525 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_end=13585 - _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERREQUEST']._serialized_start=13587 - _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERREQUEST']._serialized_end=13686 - _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERRESPONSE']._serialized_start=13688 - _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERRESPONSE']._serialized_end=13748 - _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_start=13750 - _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_end=13835 - _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_start=13837 - _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_end=13883 - _globals['_CONFIGURECLOCKMODEREQUEST']._serialized_start=13886 - _globals['_CONFIGURECLOCKMODEREQUEST']._serialized_end=14040 - _globals['_CONFIGURECLOCKMODERESPONSE']._serialized_start=14042 - _globals['_CONFIGURECLOCKMODERESPONSE']._serialized_end=14086 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_start=14088 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_end=14188 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_start=14190 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_end=14246 - _globals['_ALLOCATEWAVEFORMREQUEST']._serialized_start=14248 - _globals['_ALLOCATEWAVEFORMREQUEST']._serialized_end=14354 - _globals['_ALLOCATEWAVEFORMRESPONSE']._serialized_start=14356 - _globals['_ALLOCATEWAVEFORMRESPONSE']._serialized_end=14423 - _globals['_SETWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_start=14426 - _globals['_SETWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_end=14657 - _globals['_SETWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_start=14659 - _globals['_SETWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_end=14713 - _globals['_WRITEWAVEFORMREQUEST']._serialized_start=14715 - _globals['_WRITEWAVEFORMREQUEST']._serialized_end=14834 - _globals['_WRITEWAVEFORMRESPONSE']._serialized_start=14836 - _globals['_WRITEWAVEFORMRESPONSE']._serialized_end=14875 - _globals['_WRITEBINARY16WAVEFORMREQUEST']._serialized_start=14877 - _globals['_WRITEBINARY16WAVEFORMREQUEST']._serialized_end=15004 - _globals['_WRITEBINARY16WAVEFORMRESPONSE']._serialized_start=15006 - _globals['_WRITEBINARY16WAVEFORMRESPONSE']._serialized_end=15053 - _globals['_WRITEWAVEFORMCOMPLEXF64REQUEST']._serialized_start=15056 - _globals['_WRITEWAVEFORMCOMPLEXF64REQUEST']._serialized_end=15217 - _globals['_WRITEWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=15219 - _globals['_WRITEWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=15268 - _globals['_WRITECOMPLEXBINARY16WAVEFORMREQUEST']._serialized_start=15271 - _globals['_WRITECOMPLEXBINARY16WAVEFORMREQUEST']._serialized_end=15434 - _globals['_WRITECOMPLEXBINARY16WAVEFORMRESPONSE']._serialized_start=15436 - _globals['_WRITECOMPLEXBINARY16WAVEFORMRESPONSE']._serialized_end=15490 - _globals['_SELFCALREQUEST']._serialized_start=15492 - _globals['_SELFCALREQUEST']._serialized_end=15544 - _globals['_SELFCALRESPONSE']._serialized_start=15546 - _globals['_SELFCALRESPONSE']._serialized_end=15579 - _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_start=15581 - _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_end=15645 - _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_start=15647 - _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_end=15720 - _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_start=15722 - _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_end=15792 - _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_start=15794 - _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_end=15917 - _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_start=15919 - _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_end=15988 - _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_start=15990 - _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_end=16112 - _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_start=16114 - _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_end=16177 - _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_start=16179 - _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_end=16244 - _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_start=16246 - _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_end=16308 - _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_start=16310 - _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_end=16374 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=16376 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=16449 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=16451 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=16521 - _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_start=16523 - _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_end=16590 - _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_start=16592 - _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_end=16661 - _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSREQUEST']._serialized_start=16664 - _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSREQUEST']._serialized_end=16795 - _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSRESPONSE']._serialized_start=16797 - _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSRESPONSE']._serialized_end=16859 - _globals['_GETFIRFILTERCOEFFICIENTSREQUEST']._serialized_start=16861 - _globals['_GETFIRFILTERCOEFFICIENTSREQUEST']._serialized_end=16952 - _globals['_GETFIRFILTERCOEFFICIENTSRESPONSE']._serialized_start=16954 - _globals['_GETFIRFILTERCOEFFICIENTSRESPONSE']._serialized_end=17069 - _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_start=17071 - _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_end=17164 - _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_start=17166 - _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_end=17238 - _globals['_WRITEP2PENDPOINTI16REQUEST']._serialized_start=17240 - _globals['_WRITEP2PENDPOINTI16REQUEST']._serialized_end=17350 - _globals['_WRITEP2PENDPOINTI16RESPONSE']._serialized_start=17352 - _globals['_WRITEP2PENDPOINTI16RESPONSE']._serialized_end=17397 - _globals['_CONFIGURESYNCHRONIZATIONREQUEST']._serialized_start=17399 - _globals['_CONFIGURESYNCHRONIZATIONREQUEST']._serialized_end=17522 - _globals['_CONFIGURESYNCHRONIZATIONRESPONSE']._serialized_start=17524 - _globals['_CONFIGURESYNCHRONIZATIONRESPONSE']._serialized_end=17574 - _globals['_ENABLEDIGITALPATTERNINGREQUEST']._serialized_start=17576 - _globals['_ENABLEDIGITALPATTERNINGREQUEST']._serialized_end=17666 - _globals['_ENABLEDIGITALPATTERNINGRESPONSE']._serialized_start=17668 - _globals['_ENABLEDIGITALPATTERNINGRESPONSE']._serialized_end=17717 - _globals['_DISABLEDIGITALPATTERNINGREQUEST']._serialized_start=17719 - _globals['_DISABLEDIGITALPATTERNINGREQUEST']._serialized_end=17810 - _globals['_DISABLEDIGITALPATTERNINGRESPONSE']._serialized_start=17812 - _globals['_DISABLEDIGITALPATTERNINGRESPONSE']._serialized_end=17862 - _globals['_ENABLEDIGITALFILTERREQUEST']._serialized_start=17864 - _globals['_ENABLEDIGITALFILTERREQUEST']._serialized_end=17950 - _globals['_ENABLEDIGITALFILTERRESPONSE']._serialized_start=17952 - _globals['_ENABLEDIGITALFILTERRESPONSE']._serialized_end=17997 - _globals['_DISABLEDIGITALFILTERREQUEST']._serialized_start=17999 - _globals['_DISABLEDIGITALFILTERREQUEST']._serialized_end=18086 - _globals['_DISABLEDIGITALFILTERRESPONSE']._serialized_start=18088 - _globals['_DISABLEDIGITALFILTERRESPONSE']._serialized_end=18134 - _globals['_ENABLEANALOGFILTERREQUEST']._serialized_start=18136 - _globals['_ENABLEANALOGFILTERREQUEST']._serialized_end=18258 - _globals['_ENABLEANALOGFILTERRESPONSE']._serialized_start=18260 - _globals['_ENABLEANALOGFILTERRESPONSE']._serialized_end=18304 - _globals['_DISABLEANALOGFILTERREQUEST']._serialized_start=18306 - _globals['_DISABLEANALOGFILTERREQUEST']._serialized_end=18392 - _globals['_DISABLEANALOGFILTERRESPONSE']._serialized_start=18394 - _globals['_DISABLEANALOGFILTERRESPONSE']._serialized_end=18439 - _globals['_CONFIGURESAMPLECLOCKSOURCEREQUEST']._serialized_start=18441 - _globals['_CONFIGURESAMPLECLOCKSOURCEREQUEST']._serialized_end=18541 - _globals['_CONFIGURESAMPLECLOCKSOURCERESPONSE']._serialized_start=18543 - _globals['_CONFIGURESAMPLECLOCKSOURCERESPONSE']._serialized_end=18595 - _globals['_CONFIGURETRIGGERMODEREQUEST']._serialized_start=18598 - _globals['_CONFIGURETRIGGERMODEREQUEST']._serialized_end=18784 - _globals['_CONFIGURETRIGGERMODERESPONSE']._serialized_start=18786 - _globals['_CONFIGURETRIGGERMODERESPONSE']._serialized_end=18832 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=18834 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=18930 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=18932 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=18990 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=18992 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19088 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19090 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19148 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19150 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19252 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19254 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19314 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19316 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19395 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19397 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19480 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=19483 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=19650 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=19652 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=19697 - _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_start=19700 - _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_end=19869 - _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_start=19871 - _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_end=19918 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=19921 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=20059 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=20061 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=20131 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=20134 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=20395 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=20397 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=20442 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=20445 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=20708 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=20710 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=20756 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=20759 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=21035 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=21037 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=21083 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=21086 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=21251 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=21253 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=21300 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=21303 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=21492 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=21494 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=21541 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=21544 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=21807 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=21809 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=21856 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=21859 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=22124 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=22126 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=22174 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=22177 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=22455 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=22457 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=22505 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=22508 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=22675 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=22677 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=22726 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=22729 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=22920 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=22922 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=22971 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=22974 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=23112 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=23114 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=23184 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=23187 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=23326 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=23328 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=23399 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=23402 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=23541 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=23543 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=23614 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=23617 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=23757 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=23759 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=23831 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=23834 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=23974 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=23976 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=24072 - _globals['_RESETATTRIBUTEREQUEST']._serialized_start=24075 - _globals['_RESETATTRIBUTEREQUEST']._serialized_end=24208 - _globals['_RESETATTRIBUTERESPONSE']._serialized_start=24210 - _globals['_RESETATTRIBUTERESPONSE']._serialized_end=24250 - _globals['_MANUALENABLEP2PSTREAMREQUEST']._serialized_start=24252 - _globals['_MANUALENABLEP2PSTREAMREQUEST']._serialized_end=24341 - _globals['_MANUALENABLEP2PSTREAMRESPONSE']._serialized_start=24343 - _globals['_MANUALENABLEP2PSTREAMRESPONSE']._serialized_end=24390 - _globals['_CREATEWAVEFORMFROMFILEHWSREQUEST']._serialized_start=24393 - _globals['_CREATEWAVEFORMFROMFILEHWSREQUEST']._serialized_end=24579 - _globals['_CREATEWAVEFORMFROMFILEHWSRESPONSE']._serialized_start=24581 - _globals['_CREATEWAVEFORMFROMFILEHWSRESPONSE']._serialized_end=24657 - _globals['_NIFGEN']._serialized_start=51304 - _globals['_NIFGEN']._serialized_end=65475 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nifgen/nifgen/nifgen_pb2_grpc.py b/generated/nifgen/nifgen/nifgen_pb2_grpc.py deleted file mode 100644 index ca2504232f..0000000000 --- a/generated/nifgen/nifgen/nifgen_pb2_grpc.py +++ /dev/null @@ -1,4290 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nifgen_pb2 as nifgen__pb2 - - -class NiFgenStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Init = channel.unary_unary( - '/nifgen_grpc.NiFgen/Init', - request_serializer=nifgen__pb2.InitRequest.SerializeToString, - response_deserializer=nifgen__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/nifgen_grpc.NiFgen/InitWithOptions', - request_serializer=nifgen__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=nifgen__pb2.InitWithOptionsResponse.FromString, - ) - self.InitializeWithChannels = channel.unary_unary( - '/nifgen_grpc.NiFgen/InitializeWithChannels', - request_serializer=nifgen__pb2.InitializeWithChannelsRequest.SerializeToString, - response_deserializer=nifgen__pb2.InitializeWithChannelsResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nifgen_grpc.NiFgen/Close', - request_serializer=nifgen__pb2.CloseRequest.SerializeToString, - response_deserializer=nifgen__pb2.CloseResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/nifgen_grpc.NiFgen/Reset', - request_serializer=nifgen__pb2.ResetRequest.SerializeToString, - response_deserializer=nifgen__pb2.ResetResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/nifgen_grpc.NiFgen/SelfTest', - request_serializer=nifgen__pb2.SelfTestRequest.SerializeToString, - response_deserializer=nifgen__pb2.SelfTestResponse.FromString, - ) - self.ErrorQuery = channel.unary_unary( - '/nifgen_grpc.NiFgen/ErrorQuery', - request_serializer=nifgen__pb2.ErrorQueryRequest.SerializeToString, - response_deserializer=nifgen__pb2.ErrorQueryResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/nifgen_grpc.NiFgen/ErrorMessage', - request_serializer=nifgen__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=nifgen__pb2.ErrorMessageResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/nifgen_grpc.NiFgen/RevisionQuery', - request_serializer=nifgen__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=nifgen__pb2.RevisionQueryResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetError', - request_serializer=nifgen__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetErrorResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearError', - request_serializer=nifgen__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearErrorResponse.FromString, - ) - self.ErrorHandler = channel.unary_unary( - '/nifgen_grpc.NiFgen/ErrorHandler', - request_serializer=nifgen__pb2.ErrorHandlerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ErrorHandlerResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetChannelName', - request_serializer=nifgen__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetChannelNameResponse.FromString, - ) - self.ResetInterchangeCheck = channel.unary_unary( - '/nifgen_grpc.NiFgen/ResetInterchangeCheck', - request_serializer=nifgen__pb2.ResetInterchangeCheckRequest.SerializeToString, - response_deserializer=nifgen__pb2.ResetInterchangeCheckResponse.FromString, - ) - self.ClearInterchangeWarnings = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearInterchangeWarnings', - request_serializer=nifgen__pb2.ClearInterchangeWarningsRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearInterchangeWarningsResponse.FromString, - ) - self.InvalidateAllAttributes = channel.unary_unary( - '/nifgen_grpc.NiFgen/InvalidateAllAttributes', - request_serializer=nifgen__pb2.InvalidateAllAttributesRequest.SerializeToString, - response_deserializer=nifgen__pb2.InvalidateAllAttributesResponse.FromString, - ) - self.ResetWithDefaults = channel.unary_unary( - '/nifgen_grpc.NiFgen/ResetWithDefaults', - request_serializer=nifgen__pb2.ResetWithDefaultsRequest.SerializeToString, - response_deserializer=nifgen__pb2.ResetWithDefaultsResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/nifgen_grpc.NiFgen/Disable', - request_serializer=nifgen__pb2.DisableRequest.SerializeToString, - response_deserializer=nifgen__pb2.DisableResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/nifgen_grpc.NiFgen/Commit', - request_serializer=nifgen__pb2.CommitRequest.SerializeToString, - response_deserializer=nifgen__pb2.CommitResponse.FromString, - ) - self.GetHardwareState = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetHardwareState', - request_serializer=nifgen__pb2.GetHardwareStateRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetHardwareStateResponse.FromString, - ) - self.WaitUntilDone = channel.unary_unary( - '/nifgen_grpc.NiFgen/WaitUntilDone', - request_serializer=nifgen__pb2.WaitUntilDoneRequest.SerializeToString, - response_deserializer=nifgen__pb2.WaitUntilDoneResponse.FromString, - ) - self.IsDone = channel.unary_unary( - '/nifgen_grpc.NiFgen/IsDone', - request_serializer=nifgen__pb2.IsDoneRequest.SerializeToString, - response_deserializer=nifgen__pb2.IsDoneResponse.FromString, - ) - self.ResetDevice = channel.unary_unary( - '/nifgen_grpc.NiFgen/ResetDevice', - request_serializer=nifgen__pb2.ResetDeviceRequest.SerializeToString, - response_deserializer=nifgen__pb2.ResetDeviceResponse.FromString, - ) - self.ConfigureOperationMode = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureOperationMode', - request_serializer=nifgen__pb2.ConfigureOperationModeRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureOperationModeResponse.FromString, - ) - self.ConfigureOutputMode = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureOutputMode', - request_serializer=nifgen__pb2.ConfigureOutputModeRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureOutputModeResponse.FromString, - ) - self.ConfigureReferenceClock = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureReferenceClock', - request_serializer=nifgen__pb2.ConfigureReferenceClockRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureReferenceClockResponse.FromString, - ) - self.ConfigureOutputImpedance = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureOutputImpedance', - request_serializer=nifgen__pb2.ConfigureOutputImpedanceRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureOutputImpedanceResponse.FromString, - ) - self.ConfigureOutputEnabled = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureOutputEnabled', - request_serializer=nifgen__pb2.ConfigureOutputEnabledRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureOutputEnabledResponse.FromString, - ) - self.ConfigureChannels = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureChannels', - request_serializer=nifgen__pb2.ConfigureChannelsRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureChannelsResponse.FromString, - ) - self.InitiateGeneration = channel.unary_unary( - '/nifgen_grpc.NiFgen/InitiateGeneration', - request_serializer=nifgen__pb2.InitiateGenerationRequest.SerializeToString, - response_deserializer=nifgen__pb2.InitiateGenerationResponse.FromString, - ) - self.AbortGeneration = channel.unary_unary( - '/nifgen_grpc.NiFgen/AbortGeneration', - request_serializer=nifgen__pb2.AbortGenerationRequest.SerializeToString, - response_deserializer=nifgen__pb2.AbortGenerationResponse.FromString, - ) - self.ConfigureStandardWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureStandardWaveform', - request_serializer=nifgen__pb2.ConfigureStandardWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureStandardWaveformResponse.FromString, - ) - self.DefineUserStandardWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/DefineUserStandardWaveform', - request_serializer=nifgen__pb2.DefineUserStandardWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.DefineUserStandardWaveformResponse.FromString, - ) - self.ClearUserStandardWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearUserStandardWaveform', - request_serializer=nifgen__pb2.ClearUserStandardWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearUserStandardWaveformResponse.FromString, - ) - self.ConfigureFrequency = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureFrequency', - request_serializer=nifgen__pb2.ConfigureFrequencyRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureFrequencyResponse.FromString, - ) - self.ConfigureAmplitude = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureAmplitude', - request_serializer=nifgen__pb2.ConfigureAmplitudeRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureAmplitudeResponse.FromString, - ) - self.QueryArbWfmCapabilities = channel.unary_unary( - '/nifgen_grpc.NiFgen/QueryArbWfmCapabilities', - request_serializer=nifgen__pb2.QueryArbWfmCapabilitiesRequest.SerializeToString, - response_deserializer=nifgen__pb2.QueryArbWfmCapabilitiesResponse.FromString, - ) - self.CreateWaveformF64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateWaveformF64', - request_serializer=nifgen__pb2.CreateWaveformF64Request.SerializeToString, - response_deserializer=nifgen__pb2.CreateWaveformF64Response.FromString, - ) - self.CreateWaveformI16 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateWaveformI16', - request_serializer=nifgen__pb2.CreateWaveformI16Request.SerializeToString, - response_deserializer=nifgen__pb2.CreateWaveformI16Response.FromString, - ) - self.CreateWaveformComplexF64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateWaveformComplexF64', - request_serializer=nifgen__pb2.CreateWaveformComplexF64Request.SerializeToString, - response_deserializer=nifgen__pb2.CreateWaveformComplexF64Response.FromString, - ) - self.CreateWaveformFromFileI16 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateWaveformFromFileI16', - request_serializer=nifgen__pb2.CreateWaveformFromFileI16Request.SerializeToString, - response_deserializer=nifgen__pb2.CreateWaveformFromFileI16Response.FromString, - ) - self.CreateWaveformFromFileF64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateWaveformFromFileF64', - request_serializer=nifgen__pb2.CreateWaveformFromFileF64Request.SerializeToString, - response_deserializer=nifgen__pb2.CreateWaveformFromFileF64Response.FromString, - ) - self.ConfigureSampleRate = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureSampleRate', - request_serializer=nifgen__pb2.ConfigureSampleRateRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureSampleRateResponse.FromString, - ) - self.ConfigureArbWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureArbWaveform', - request_serializer=nifgen__pb2.ConfigureArbWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureArbWaveformResponse.FromString, - ) - self.ClearArbWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearArbWaveform', - request_serializer=nifgen__pb2.ClearArbWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearArbWaveformResponse.FromString, - ) - self.AllocateNamedWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/AllocateNamedWaveform', - request_serializer=nifgen__pb2.AllocateNamedWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.AllocateNamedWaveformResponse.FromString, - ) - self.SetNamedWaveformNextWritePosition = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetNamedWaveformNextWritePosition', - request_serializer=nifgen__pb2.SetNamedWaveformNextWritePositionRequest.SerializeToString, - response_deserializer=nifgen__pb2.SetNamedWaveformNextWritePositionResponse.FromString, - ) - self.WriteNamedWaveformF64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteNamedWaveformF64', - request_serializer=nifgen__pb2.WriteNamedWaveformF64Request.SerializeToString, - response_deserializer=nifgen__pb2.WriteNamedWaveformF64Response.FromString, - ) - self.WriteNamedWaveformI16 = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteNamedWaveformI16', - request_serializer=nifgen__pb2.WriteNamedWaveformI16Request.SerializeToString, - response_deserializer=nifgen__pb2.WriteNamedWaveformI16Response.FromString, - ) - self.WriteNamedWaveformComplexF64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexF64', - request_serializer=nifgen__pb2.WriteNamedWaveformComplexF64Request.SerializeToString, - response_deserializer=nifgen__pb2.WriteNamedWaveformComplexF64Response.FromString, - ) - self.WriteNamedWaveformComplexI16 = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexI16', - request_serializer=nifgen__pb2.WriteNamedWaveformComplexI16Request.SerializeToString, - response_deserializer=nifgen__pb2.WriteNamedWaveformComplexI16Response.FromString, - ) - self.DeleteNamedWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/DeleteNamedWaveform', - request_serializer=nifgen__pb2.DeleteNamedWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.DeleteNamedWaveformResponse.FromString, - ) - self.QueryArbSeqCapabilities = channel.unary_unary( - '/nifgen_grpc.NiFgen/QueryArbSeqCapabilities', - request_serializer=nifgen__pb2.QueryArbSeqCapabilitiesRequest.SerializeToString, - response_deserializer=nifgen__pb2.QueryArbSeqCapabilitiesResponse.FromString, - ) - self.CreateArbSequence = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateArbSequence', - request_serializer=nifgen__pb2.CreateArbSequenceRequest.SerializeToString, - response_deserializer=nifgen__pb2.CreateArbSequenceResponse.FromString, - ) - self.CreateAdvancedArbSequence = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateAdvancedArbSequence', - request_serializer=nifgen__pb2.CreateAdvancedArbSequenceRequest.SerializeToString, - response_deserializer=nifgen__pb2.CreateAdvancedArbSequenceResponse.FromString, - ) - self.ConfigureArbSequence = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureArbSequence', - request_serializer=nifgen__pb2.ConfigureArbSequenceRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureArbSequenceResponse.FromString, - ) - self.ClearArbSequence = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearArbSequence', - request_serializer=nifgen__pb2.ClearArbSequenceRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearArbSequenceResponse.FromString, - ) - self.ClearArbMemory = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearArbMemory', - request_serializer=nifgen__pb2.ClearArbMemoryRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearArbMemoryResponse.FromString, - ) - self.QueryFreqListCapabilities = channel.unary_unary( - '/nifgen_grpc.NiFgen/QueryFreqListCapabilities', - request_serializer=nifgen__pb2.QueryFreqListCapabilitiesRequest.SerializeToString, - response_deserializer=nifgen__pb2.QueryFreqListCapabilitiesResponse.FromString, - ) - self.CreateFreqList = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateFreqList', - request_serializer=nifgen__pb2.CreateFreqListRequest.SerializeToString, - response_deserializer=nifgen__pb2.CreateFreqListResponse.FromString, - ) - self.ConfigureFreqList = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureFreqList', - request_serializer=nifgen__pb2.ConfigureFreqListRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureFreqListResponse.FromString, - ) - self.ClearFreqList = channel.unary_unary( - '/nifgen_grpc.NiFgen/ClearFreqList', - request_serializer=nifgen__pb2.ClearFreqListRequest.SerializeToString, - response_deserializer=nifgen__pb2.ClearFreqListResponse.FromString, - ) - self.WriteScript = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteScript', - request_serializer=nifgen__pb2.WriteScriptRequest.SerializeToString, - response_deserializer=nifgen__pb2.WriteScriptResponse.FromString, - ) - self.DeleteScript = channel.unary_unary( - '/nifgen_grpc.NiFgen/DeleteScript', - request_serializer=nifgen__pb2.DeleteScriptRequest.SerializeToString, - response_deserializer=nifgen__pb2.DeleteScriptResponse.FromString, - ) - self.ExportSignal = channel.unary_unary( - '/nifgen_grpc.NiFgen/ExportSignal', - request_serializer=nifgen__pb2.ExportSignalRequest.SerializeToString, - response_deserializer=nifgen__pb2.ExportSignalResponse.FromString, - ) - self.RouteSignalOut = channel.unary_unary( - '/nifgen_grpc.NiFgen/RouteSignalOut', - request_serializer=nifgen__pb2.RouteSignalOutRequest.SerializeToString, - response_deserializer=nifgen__pb2.RouteSignalOutResponse.FromString, - ) - self.SendSoftwareEdgeTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/SendSoftwareEdgeTrigger', - request_serializer=nifgen__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.SendSoftwareEdgeTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeStartTrigger', - request_serializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeStartTrigger', - request_serializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - ) - self.DisableStartTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/DisableStartTrigger', - request_serializer=nifgen__pb2.DisableStartTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.DisableStartTriggerResponse.FromString, - ) - self.ConfigureP2PEndpointFullnessStartTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureP2PEndpointFullnessStartTrigger', - request_serializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeScriptTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeScriptTrigger', - request_serializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, - ) - self.ConfigureDigitalLevelScriptTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureDigitalLevelScriptTrigger', - request_serializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeScriptTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeScriptTrigger', - request_serializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerResponse.FromString, - ) - self.DisableScriptTrigger = channel.unary_unary( - '/nifgen_grpc.NiFgen/DisableScriptTrigger', - request_serializer=nifgen__pb2.DisableScriptTriggerRequest.SerializeToString, - response_deserializer=nifgen__pb2.DisableScriptTriggerResponse.FromString, - ) - self.ConfigureClockMode = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureClockMode', - request_serializer=nifgen__pb2.ConfigureClockModeRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureClockModeResponse.FromString, - ) - self.AdjustSampleClockRelativeDelay = channel.unary_unary( - '/nifgen_grpc.NiFgen/AdjustSampleClockRelativeDelay', - request_serializer=nifgen__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, - response_deserializer=nifgen__pb2.AdjustSampleClockRelativeDelayResponse.FromString, - ) - self.AllocateWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/AllocateWaveform', - request_serializer=nifgen__pb2.AllocateWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.AllocateWaveformResponse.FromString, - ) - self.SetWaveformNextWritePosition = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetWaveformNextWritePosition', - request_serializer=nifgen__pb2.SetWaveformNextWritePositionRequest.SerializeToString, - response_deserializer=nifgen__pb2.SetWaveformNextWritePositionResponse.FromString, - ) - self.WriteWaveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteWaveform', - request_serializer=nifgen__pb2.WriteWaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.WriteWaveformResponse.FromString, - ) - self.WriteBinary16Waveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteBinary16Waveform', - request_serializer=nifgen__pb2.WriteBinary16WaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.WriteBinary16WaveformResponse.FromString, - ) - self.WriteWaveformComplexF64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteWaveformComplexF64', - request_serializer=nifgen__pb2.WriteWaveformComplexF64Request.SerializeToString, - response_deserializer=nifgen__pb2.WriteWaveformComplexF64Response.FromString, - ) - self.WriteComplexBinary16Waveform = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteComplexBinary16Waveform', - request_serializer=nifgen__pb2.WriteComplexBinary16WaveformRequest.SerializeToString, - response_deserializer=nifgen__pb2.WriteComplexBinary16WaveformResponse.FromString, - ) - self.SelfCal = channel.unary_unary( - '/nifgen_grpc.NiFgen/SelfCal', - request_serializer=nifgen__pb2.SelfCalRequest.SerializeToString, - response_deserializer=nifgen__pb2.SelfCalResponse.FromString, - ) - self.GetSelfCalSupported = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetSelfCalSupported', - request_serializer=nifgen__pb2.GetSelfCalSupportedRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetSelfCalSupportedResponse.FromString, - ) - self.GetSelfCalLastDateAndTime = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetSelfCalLastDateAndTime', - request_serializer=nifgen__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetSelfCalLastDateAndTimeResponse.FromString, - ) - self.GetExtCalLastDateAndTime = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetExtCalLastDateAndTime', - request_serializer=nifgen__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetExtCalLastDateAndTimeResponse.FromString, - ) - self.GetSelfCalLastTemp = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetSelfCalLastTemp', - request_serializer=nifgen__pb2.GetSelfCalLastTempRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetSelfCalLastTempResponse.FromString, - ) - self.GetExtCalLastTemp = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetExtCalLastTemp', - request_serializer=nifgen__pb2.GetExtCalLastTempRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetExtCalLastTempResponse.FromString, - ) - self.GetExtCalRecommendedInterval = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetExtCalRecommendedInterval', - request_serializer=nifgen__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetExtCalRecommendedIntervalResponse.FromString, - ) - self.ReadCurrentTemperature = channel.unary_unary( - '/nifgen_grpc.NiFgen/ReadCurrentTemperature', - request_serializer=nifgen__pb2.ReadCurrentTemperatureRequest.SerializeToString, - response_deserializer=nifgen__pb2.ReadCurrentTemperatureResponse.FromString, - ) - self.ConfigureCustomFIRFilterCoefficients = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureCustomFIRFilterCoefficients', - request_serializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsResponse.FromString, - ) - self.GetFIRFilterCoefficients = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetFIRFilterCoefficients', - request_serializer=nifgen__pb2.GetFIRFilterCoefficientsRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetFIRFilterCoefficientsResponse.FromString, - ) - self.GetStreamEndpointHandle = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetStreamEndpointHandle', - request_serializer=nifgen__pb2.GetStreamEndpointHandleRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetStreamEndpointHandleResponse.FromString, - ) - self.WriteP2PEndpointI16 = channel.unary_unary( - '/nifgen_grpc.NiFgen/WriteP2PEndpointI16', - request_serializer=nifgen__pb2.WriteP2PEndpointI16Request.SerializeToString, - response_deserializer=nifgen__pb2.WriteP2PEndpointI16Response.FromString, - ) - self.ConfigureSynchronization = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureSynchronization', - request_serializer=nifgen__pb2.ConfigureSynchronizationRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureSynchronizationResponse.FromString, - ) - self.EnableDigitalPatterning = channel.unary_unary( - '/nifgen_grpc.NiFgen/EnableDigitalPatterning', - request_serializer=nifgen__pb2.EnableDigitalPatterningRequest.SerializeToString, - response_deserializer=nifgen__pb2.EnableDigitalPatterningResponse.FromString, - ) - self.DisableDigitalPatterning = channel.unary_unary( - '/nifgen_grpc.NiFgen/DisableDigitalPatterning', - request_serializer=nifgen__pb2.DisableDigitalPatterningRequest.SerializeToString, - response_deserializer=nifgen__pb2.DisableDigitalPatterningResponse.FromString, - ) - self.EnableDigitalFilter = channel.unary_unary( - '/nifgen_grpc.NiFgen/EnableDigitalFilter', - request_serializer=nifgen__pb2.EnableDigitalFilterRequest.SerializeToString, - response_deserializer=nifgen__pb2.EnableDigitalFilterResponse.FromString, - ) - self.DisableDigitalFilter = channel.unary_unary( - '/nifgen_grpc.NiFgen/DisableDigitalFilter', - request_serializer=nifgen__pb2.DisableDigitalFilterRequest.SerializeToString, - response_deserializer=nifgen__pb2.DisableDigitalFilterResponse.FromString, - ) - self.EnableAnalogFilter = channel.unary_unary( - '/nifgen_grpc.NiFgen/EnableAnalogFilter', - request_serializer=nifgen__pb2.EnableAnalogFilterRequest.SerializeToString, - response_deserializer=nifgen__pb2.EnableAnalogFilterResponse.FromString, - ) - self.DisableAnalogFilter = channel.unary_unary( - '/nifgen_grpc.NiFgen/DisableAnalogFilter', - request_serializer=nifgen__pb2.DisableAnalogFilterRequest.SerializeToString, - response_deserializer=nifgen__pb2.DisableAnalogFilterResponse.FromString, - ) - self.ConfigureSampleClockSource = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureSampleClockSource', - request_serializer=nifgen__pb2.ConfigureSampleClockSourceRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureSampleClockSourceResponse.FromString, - ) - self.ConfigureTriggerMode = channel.unary_unary( - '/nifgen_grpc.NiFgen/ConfigureTriggerMode', - request_serializer=nifgen__pb2.ConfigureTriggerModeRequest.SerializeToString, - response_deserializer=nifgen__pb2.ConfigureTriggerModeResponse.FromString, - ) - self.ImportAttributeConfigurationFile = channel.unary_unary( - '/nifgen_grpc.NiFgen/ImportAttributeConfigurationFile', - request_serializer=nifgen__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=nifgen__pb2.ImportAttributeConfigurationFileResponse.FromString, - ) - self.ExportAttributeConfigurationFile = channel.unary_unary( - '/nifgen_grpc.NiFgen/ExportAttributeConfigurationFile', - request_serializer=nifgen__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=nifgen__pb2.ExportAttributeConfigurationFileResponse.FromString, - ) - self.ImportAttributeConfigurationBuffer = channel.unary_unary( - '/nifgen_grpc.NiFgen/ImportAttributeConfigurationBuffer', - request_serializer=nifgen__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nifgen__pb2.ImportAttributeConfigurationBufferResponse.FromString, - ) - self.ExportAttributeConfigurationBuffer = channel.unary_unary( - '/nifgen_grpc.NiFgen/ExportAttributeConfigurationBuffer', - request_serializer=nifgen__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=nifgen__pb2.ExportAttributeConfigurationBufferResponse.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetAttributeViInt64', - request_serializer=nifgen__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=nifgen__pb2.SetAttributeViInt64Response.FromString, - ) - self.CheckAttributeViInt64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CheckAttributeViInt64', - request_serializer=nifgen__pb2.CheckAttributeViInt64Request.SerializeToString, - response_deserializer=nifgen__pb2.CheckAttributeViInt64Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetAttributeViInt64', - request_serializer=nifgen__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=nifgen__pb2.GetAttributeViInt64Response.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetAttributeViInt32', - request_serializer=nifgen__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nifgen__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetAttributeViReal64', - request_serializer=nifgen__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nifgen__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetAttributeViString', - request_serializer=nifgen__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nifgen__pb2.SetAttributeViStringResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetAttributeViBoolean', - request_serializer=nifgen__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nifgen__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/nifgen_grpc.NiFgen/SetAttributeViSession', - request_serializer=nifgen__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=nifgen__pb2.SetAttributeViSessionResponse.FromString, - ) - self.CheckAttributeViInt32 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CheckAttributeViInt32', - request_serializer=nifgen__pb2.CheckAttributeViInt32Request.SerializeToString, - response_deserializer=nifgen__pb2.CheckAttributeViInt32Response.FromString, - ) - self.CheckAttributeViReal64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/CheckAttributeViReal64', - request_serializer=nifgen__pb2.CheckAttributeViReal64Request.SerializeToString, - response_deserializer=nifgen__pb2.CheckAttributeViReal64Response.FromString, - ) - self.CheckAttributeViString = channel.unary_unary( - '/nifgen_grpc.NiFgen/CheckAttributeViString', - request_serializer=nifgen__pb2.CheckAttributeViStringRequest.SerializeToString, - response_deserializer=nifgen__pb2.CheckAttributeViStringResponse.FromString, - ) - self.CheckAttributeViBoolean = channel.unary_unary( - '/nifgen_grpc.NiFgen/CheckAttributeViBoolean', - request_serializer=nifgen__pb2.CheckAttributeViBooleanRequest.SerializeToString, - response_deserializer=nifgen__pb2.CheckAttributeViBooleanResponse.FromString, - ) - self.CheckAttributeViSession = channel.unary_unary( - '/nifgen_grpc.NiFgen/CheckAttributeViSession', - request_serializer=nifgen__pb2.CheckAttributeViSessionRequest.SerializeToString, - response_deserializer=nifgen__pb2.CheckAttributeViSessionResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetAttributeViInt32', - request_serializer=nifgen__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nifgen__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetAttributeViReal64', - request_serializer=nifgen__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nifgen__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetAttributeViString', - request_serializer=nifgen__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetAttributeViBoolean', - request_serializer=nifgen__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nifgen_grpc.NiFgen/GetAttributeViSession', - request_serializer=nifgen__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nifgen__pb2.GetAttributeViSessionResponse.FromString, - ) - self.ResetAttribute = channel.unary_unary( - '/nifgen_grpc.NiFgen/ResetAttribute', - request_serializer=nifgen__pb2.ResetAttributeRequest.SerializeToString, - response_deserializer=nifgen__pb2.ResetAttributeResponse.FromString, - ) - self.ManualEnableP2PStream = channel.unary_unary( - '/nifgen_grpc.NiFgen/ManualEnableP2PStream', - request_serializer=nifgen__pb2.ManualEnableP2PStreamRequest.SerializeToString, - response_deserializer=nifgen__pb2.ManualEnableP2PStreamResponse.FromString, - ) - self.CreateWaveformFromFileHWS = channel.unary_unary( - '/nifgen_grpc.NiFgen/CreateWaveformFromFileHWS', - request_serializer=nifgen__pb2.CreateWaveformFromFileHWSRequest.SerializeToString, - response_deserializer=nifgen__pb2.CreateWaveformFromFileHWSResponse.FromString, - ) - - -class NiFgenServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitializeWithChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorHandler(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetInterchangeCheck(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearInterchangeWarnings(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InvalidateAllAttributes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetHardwareState(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitUntilDone(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsDone(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOperationMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureReferenceClock(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputImpedance(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputEnabled(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureChannels(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitiateGeneration(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AbortGeneration(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureStandardWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DefineUserStandardWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearUserStandardWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureFrequency(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureAmplitude(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryArbWfmCapabilities(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWaveformF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWaveformI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWaveformComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWaveformFromFileI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWaveformFromFileF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSampleRate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureArbWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearArbWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AllocateNamedWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetNamedWaveformNextWritePosition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteNamedWaveformF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteNamedWaveformI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteNamedWaveformComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteNamedWaveformComplexI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteNamedWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryArbSeqCapabilities(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateArbSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateAdvancedArbSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureArbSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearArbSequence(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearArbMemory(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryFreqListCapabilities(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateFreqList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureFreqList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearFreqList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteScript(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteScript(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RouteSignalOut(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareEdgeTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureP2PEndpointFullnessStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalLevelScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureClockMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AdjustSampleClockRelativeDelay(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AllocateWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetWaveformNextWritePosition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteBinary16Waveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteWaveformComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteComplexBinary16Waveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalSupported(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalLastTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalLastTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalRecommendedInterval(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadCurrentTemperature(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureCustomFIRFilterCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetFIRFilterCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetStreamEndpointHandle(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteP2PEndpointI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSynchronization(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnableDigitalPatterning(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableDigitalPatterning(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnableDigitalFilter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableDigitalFilter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnableAnalogFilter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableAnalogFilter(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSampleClockSource(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetAttribute(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ManualEnableP2PStream(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWaveformFromFileHWS(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiFgenServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=nifgen__pb2.InitRequest.FromString, - response_serializer=nifgen__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=nifgen__pb2.InitWithOptionsRequest.FromString, - response_serializer=nifgen__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'InitializeWithChannels': grpc.unary_unary_rpc_method_handler( - servicer.InitializeWithChannels, - request_deserializer=nifgen__pb2.InitializeWithChannelsRequest.FromString, - response_serializer=nifgen__pb2.InitializeWithChannelsResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nifgen__pb2.CloseRequest.FromString, - response_serializer=nifgen__pb2.CloseResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=nifgen__pb2.ResetRequest.FromString, - response_serializer=nifgen__pb2.ResetResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=nifgen__pb2.SelfTestRequest.FromString, - response_serializer=nifgen__pb2.SelfTestResponse.SerializeToString, - ), - 'ErrorQuery': grpc.unary_unary_rpc_method_handler( - servicer.ErrorQuery, - request_deserializer=nifgen__pb2.ErrorQueryRequest.FromString, - response_serializer=nifgen__pb2.ErrorQueryResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=nifgen__pb2.ErrorMessageRequest.FromString, - response_serializer=nifgen__pb2.ErrorMessageResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=nifgen__pb2.RevisionQueryRequest.FromString, - response_serializer=nifgen__pb2.RevisionQueryResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nifgen__pb2.GetErrorRequest.FromString, - response_serializer=nifgen__pb2.GetErrorResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=nifgen__pb2.ClearErrorRequest.FromString, - response_serializer=nifgen__pb2.ClearErrorResponse.SerializeToString, - ), - 'ErrorHandler': grpc.unary_unary_rpc_method_handler( - servicer.ErrorHandler, - request_deserializer=nifgen__pb2.ErrorHandlerRequest.FromString, - response_serializer=nifgen__pb2.ErrorHandlerResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=nifgen__pb2.GetChannelNameRequest.FromString, - response_serializer=nifgen__pb2.GetChannelNameResponse.SerializeToString, - ), - 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( - servicer.ResetInterchangeCheck, - request_deserializer=nifgen__pb2.ResetInterchangeCheckRequest.FromString, - response_serializer=nifgen__pb2.ResetInterchangeCheckResponse.SerializeToString, - ), - 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( - servicer.ClearInterchangeWarnings, - request_deserializer=nifgen__pb2.ClearInterchangeWarningsRequest.FromString, - response_serializer=nifgen__pb2.ClearInterchangeWarningsResponse.SerializeToString, - ), - 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( - servicer.InvalidateAllAttributes, - request_deserializer=nifgen__pb2.InvalidateAllAttributesRequest.FromString, - response_serializer=nifgen__pb2.InvalidateAllAttributesResponse.SerializeToString, - ), - 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithDefaults, - request_deserializer=nifgen__pb2.ResetWithDefaultsRequest.FromString, - response_serializer=nifgen__pb2.ResetWithDefaultsResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=nifgen__pb2.DisableRequest.FromString, - response_serializer=nifgen__pb2.DisableResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=nifgen__pb2.CommitRequest.FromString, - response_serializer=nifgen__pb2.CommitResponse.SerializeToString, - ), - 'GetHardwareState': grpc.unary_unary_rpc_method_handler( - servicer.GetHardwareState, - request_deserializer=nifgen__pb2.GetHardwareStateRequest.FromString, - response_serializer=nifgen__pb2.GetHardwareStateResponse.SerializeToString, - ), - 'WaitUntilDone': grpc.unary_unary_rpc_method_handler( - servicer.WaitUntilDone, - request_deserializer=nifgen__pb2.WaitUntilDoneRequest.FromString, - response_serializer=nifgen__pb2.WaitUntilDoneResponse.SerializeToString, - ), - 'IsDone': grpc.unary_unary_rpc_method_handler( - servicer.IsDone, - request_deserializer=nifgen__pb2.IsDoneRequest.FromString, - response_serializer=nifgen__pb2.IsDoneResponse.SerializeToString, - ), - 'ResetDevice': grpc.unary_unary_rpc_method_handler( - servicer.ResetDevice, - request_deserializer=nifgen__pb2.ResetDeviceRequest.FromString, - response_serializer=nifgen__pb2.ResetDeviceResponse.SerializeToString, - ), - 'ConfigureOperationMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOperationMode, - request_deserializer=nifgen__pb2.ConfigureOperationModeRequest.FromString, - response_serializer=nifgen__pb2.ConfigureOperationModeResponse.SerializeToString, - ), - 'ConfigureOutputMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputMode, - request_deserializer=nifgen__pb2.ConfigureOutputModeRequest.FromString, - response_serializer=nifgen__pb2.ConfigureOutputModeResponse.SerializeToString, - ), - 'ConfigureReferenceClock': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureReferenceClock, - request_deserializer=nifgen__pb2.ConfigureReferenceClockRequest.FromString, - response_serializer=nifgen__pb2.ConfigureReferenceClockResponse.SerializeToString, - ), - 'ConfigureOutputImpedance': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputImpedance, - request_deserializer=nifgen__pb2.ConfigureOutputImpedanceRequest.FromString, - response_serializer=nifgen__pb2.ConfigureOutputImpedanceResponse.SerializeToString, - ), - 'ConfigureOutputEnabled': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputEnabled, - request_deserializer=nifgen__pb2.ConfigureOutputEnabledRequest.FromString, - response_serializer=nifgen__pb2.ConfigureOutputEnabledResponse.SerializeToString, - ), - 'ConfigureChannels': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureChannels, - request_deserializer=nifgen__pb2.ConfigureChannelsRequest.FromString, - response_serializer=nifgen__pb2.ConfigureChannelsResponse.SerializeToString, - ), - 'InitiateGeneration': grpc.unary_unary_rpc_method_handler( - servicer.InitiateGeneration, - request_deserializer=nifgen__pb2.InitiateGenerationRequest.FromString, - response_serializer=nifgen__pb2.InitiateGenerationResponse.SerializeToString, - ), - 'AbortGeneration': grpc.unary_unary_rpc_method_handler( - servicer.AbortGeneration, - request_deserializer=nifgen__pb2.AbortGenerationRequest.FromString, - response_serializer=nifgen__pb2.AbortGenerationResponse.SerializeToString, - ), - 'ConfigureStandardWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureStandardWaveform, - request_deserializer=nifgen__pb2.ConfigureStandardWaveformRequest.FromString, - response_serializer=nifgen__pb2.ConfigureStandardWaveformResponse.SerializeToString, - ), - 'DefineUserStandardWaveform': grpc.unary_unary_rpc_method_handler( - servicer.DefineUserStandardWaveform, - request_deserializer=nifgen__pb2.DefineUserStandardWaveformRequest.FromString, - response_serializer=nifgen__pb2.DefineUserStandardWaveformResponse.SerializeToString, - ), - 'ClearUserStandardWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ClearUserStandardWaveform, - request_deserializer=nifgen__pb2.ClearUserStandardWaveformRequest.FromString, - response_serializer=nifgen__pb2.ClearUserStandardWaveformResponse.SerializeToString, - ), - 'ConfigureFrequency': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureFrequency, - request_deserializer=nifgen__pb2.ConfigureFrequencyRequest.FromString, - response_serializer=nifgen__pb2.ConfigureFrequencyResponse.SerializeToString, - ), - 'ConfigureAmplitude': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureAmplitude, - request_deserializer=nifgen__pb2.ConfigureAmplitudeRequest.FromString, - response_serializer=nifgen__pb2.ConfigureAmplitudeResponse.SerializeToString, - ), - 'QueryArbWfmCapabilities': grpc.unary_unary_rpc_method_handler( - servicer.QueryArbWfmCapabilities, - request_deserializer=nifgen__pb2.QueryArbWfmCapabilitiesRequest.FromString, - response_serializer=nifgen__pb2.QueryArbWfmCapabilitiesResponse.SerializeToString, - ), - 'CreateWaveformF64': grpc.unary_unary_rpc_method_handler( - servicer.CreateWaveformF64, - request_deserializer=nifgen__pb2.CreateWaveformF64Request.FromString, - response_serializer=nifgen__pb2.CreateWaveformF64Response.SerializeToString, - ), - 'CreateWaveformI16': grpc.unary_unary_rpc_method_handler( - servicer.CreateWaveformI16, - request_deserializer=nifgen__pb2.CreateWaveformI16Request.FromString, - response_serializer=nifgen__pb2.CreateWaveformI16Response.SerializeToString, - ), - 'CreateWaveformComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.CreateWaveformComplexF64, - request_deserializer=nifgen__pb2.CreateWaveformComplexF64Request.FromString, - response_serializer=nifgen__pb2.CreateWaveformComplexF64Response.SerializeToString, - ), - 'CreateWaveformFromFileI16': grpc.unary_unary_rpc_method_handler( - servicer.CreateWaveformFromFileI16, - request_deserializer=nifgen__pb2.CreateWaveformFromFileI16Request.FromString, - response_serializer=nifgen__pb2.CreateWaveformFromFileI16Response.SerializeToString, - ), - 'CreateWaveformFromFileF64': grpc.unary_unary_rpc_method_handler( - servicer.CreateWaveformFromFileF64, - request_deserializer=nifgen__pb2.CreateWaveformFromFileF64Request.FromString, - response_serializer=nifgen__pb2.CreateWaveformFromFileF64Response.SerializeToString, - ), - 'ConfigureSampleRate': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSampleRate, - request_deserializer=nifgen__pb2.ConfigureSampleRateRequest.FromString, - response_serializer=nifgen__pb2.ConfigureSampleRateResponse.SerializeToString, - ), - 'ConfigureArbWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureArbWaveform, - request_deserializer=nifgen__pb2.ConfigureArbWaveformRequest.FromString, - response_serializer=nifgen__pb2.ConfigureArbWaveformResponse.SerializeToString, - ), - 'ClearArbWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ClearArbWaveform, - request_deserializer=nifgen__pb2.ClearArbWaveformRequest.FromString, - response_serializer=nifgen__pb2.ClearArbWaveformResponse.SerializeToString, - ), - 'AllocateNamedWaveform': grpc.unary_unary_rpc_method_handler( - servicer.AllocateNamedWaveform, - request_deserializer=nifgen__pb2.AllocateNamedWaveformRequest.FromString, - response_serializer=nifgen__pb2.AllocateNamedWaveformResponse.SerializeToString, - ), - 'SetNamedWaveformNextWritePosition': grpc.unary_unary_rpc_method_handler( - servicer.SetNamedWaveformNextWritePosition, - request_deserializer=nifgen__pb2.SetNamedWaveformNextWritePositionRequest.FromString, - response_serializer=nifgen__pb2.SetNamedWaveformNextWritePositionResponse.SerializeToString, - ), - 'WriteNamedWaveformF64': grpc.unary_unary_rpc_method_handler( - servicer.WriteNamedWaveformF64, - request_deserializer=nifgen__pb2.WriteNamedWaveformF64Request.FromString, - response_serializer=nifgen__pb2.WriteNamedWaveformF64Response.SerializeToString, - ), - 'WriteNamedWaveformI16': grpc.unary_unary_rpc_method_handler( - servicer.WriteNamedWaveformI16, - request_deserializer=nifgen__pb2.WriteNamedWaveformI16Request.FromString, - response_serializer=nifgen__pb2.WriteNamedWaveformI16Response.SerializeToString, - ), - 'WriteNamedWaveformComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.WriteNamedWaveformComplexF64, - request_deserializer=nifgen__pb2.WriteNamedWaveformComplexF64Request.FromString, - response_serializer=nifgen__pb2.WriteNamedWaveformComplexF64Response.SerializeToString, - ), - 'WriteNamedWaveformComplexI16': grpc.unary_unary_rpc_method_handler( - servicer.WriteNamedWaveformComplexI16, - request_deserializer=nifgen__pb2.WriteNamedWaveformComplexI16Request.FromString, - response_serializer=nifgen__pb2.WriteNamedWaveformComplexI16Response.SerializeToString, - ), - 'DeleteNamedWaveform': grpc.unary_unary_rpc_method_handler( - servicer.DeleteNamedWaveform, - request_deserializer=nifgen__pb2.DeleteNamedWaveformRequest.FromString, - response_serializer=nifgen__pb2.DeleteNamedWaveformResponse.SerializeToString, - ), - 'QueryArbSeqCapabilities': grpc.unary_unary_rpc_method_handler( - servicer.QueryArbSeqCapabilities, - request_deserializer=nifgen__pb2.QueryArbSeqCapabilitiesRequest.FromString, - response_serializer=nifgen__pb2.QueryArbSeqCapabilitiesResponse.SerializeToString, - ), - 'CreateArbSequence': grpc.unary_unary_rpc_method_handler( - servicer.CreateArbSequence, - request_deserializer=nifgen__pb2.CreateArbSequenceRequest.FromString, - response_serializer=nifgen__pb2.CreateArbSequenceResponse.SerializeToString, - ), - 'CreateAdvancedArbSequence': grpc.unary_unary_rpc_method_handler( - servicer.CreateAdvancedArbSequence, - request_deserializer=nifgen__pb2.CreateAdvancedArbSequenceRequest.FromString, - response_serializer=nifgen__pb2.CreateAdvancedArbSequenceResponse.SerializeToString, - ), - 'ConfigureArbSequence': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureArbSequence, - request_deserializer=nifgen__pb2.ConfigureArbSequenceRequest.FromString, - response_serializer=nifgen__pb2.ConfigureArbSequenceResponse.SerializeToString, - ), - 'ClearArbSequence': grpc.unary_unary_rpc_method_handler( - servicer.ClearArbSequence, - request_deserializer=nifgen__pb2.ClearArbSequenceRequest.FromString, - response_serializer=nifgen__pb2.ClearArbSequenceResponse.SerializeToString, - ), - 'ClearArbMemory': grpc.unary_unary_rpc_method_handler( - servicer.ClearArbMemory, - request_deserializer=nifgen__pb2.ClearArbMemoryRequest.FromString, - response_serializer=nifgen__pb2.ClearArbMemoryResponse.SerializeToString, - ), - 'QueryFreqListCapabilities': grpc.unary_unary_rpc_method_handler( - servicer.QueryFreqListCapabilities, - request_deserializer=nifgen__pb2.QueryFreqListCapabilitiesRequest.FromString, - response_serializer=nifgen__pb2.QueryFreqListCapabilitiesResponse.SerializeToString, - ), - 'CreateFreqList': grpc.unary_unary_rpc_method_handler( - servicer.CreateFreqList, - request_deserializer=nifgen__pb2.CreateFreqListRequest.FromString, - response_serializer=nifgen__pb2.CreateFreqListResponse.SerializeToString, - ), - 'ConfigureFreqList': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureFreqList, - request_deserializer=nifgen__pb2.ConfigureFreqListRequest.FromString, - response_serializer=nifgen__pb2.ConfigureFreqListResponse.SerializeToString, - ), - 'ClearFreqList': grpc.unary_unary_rpc_method_handler( - servicer.ClearFreqList, - request_deserializer=nifgen__pb2.ClearFreqListRequest.FromString, - response_serializer=nifgen__pb2.ClearFreqListResponse.SerializeToString, - ), - 'WriteScript': grpc.unary_unary_rpc_method_handler( - servicer.WriteScript, - request_deserializer=nifgen__pb2.WriteScriptRequest.FromString, - response_serializer=nifgen__pb2.WriteScriptResponse.SerializeToString, - ), - 'DeleteScript': grpc.unary_unary_rpc_method_handler( - servicer.DeleteScript, - request_deserializer=nifgen__pb2.DeleteScriptRequest.FromString, - response_serializer=nifgen__pb2.DeleteScriptResponse.SerializeToString, - ), - 'ExportSignal': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignal, - request_deserializer=nifgen__pb2.ExportSignalRequest.FromString, - response_serializer=nifgen__pb2.ExportSignalResponse.SerializeToString, - ), - 'RouteSignalOut': grpc.unary_unary_rpc_method_handler( - servicer.RouteSignalOut, - request_deserializer=nifgen__pb2.RouteSignalOutRequest.FromString, - response_serializer=nifgen__pb2.RouteSignalOutResponse.SerializeToString, - ), - 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareEdgeTrigger, - request_deserializer=nifgen__pb2.SendSoftwareEdgeTriggerRequest.FromString, - response_serializer=nifgen__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeStartTrigger, - request_deserializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, - response_serializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeStartTrigger, - request_deserializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, - response_serializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, - ), - 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableStartTrigger, - request_deserializer=nifgen__pb2.DisableStartTriggerRequest.FromString, - response_serializer=nifgen__pb2.DisableStartTriggerResponse.SerializeToString, - ), - 'ConfigureP2PEndpointFullnessStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureP2PEndpointFullnessStartTrigger, - request_deserializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.FromString, - response_serializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeScriptTrigger, - request_deserializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerRequest.FromString, - response_serializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalLevelScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalLevelScriptTrigger, - request_deserializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerRequest.FromString, - response_serializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeScriptTrigger, - request_deserializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerRequest.FromString, - response_serializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerResponse.SerializeToString, - ), - 'DisableScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableScriptTrigger, - request_deserializer=nifgen__pb2.DisableScriptTriggerRequest.FromString, - response_serializer=nifgen__pb2.DisableScriptTriggerResponse.SerializeToString, - ), - 'ConfigureClockMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureClockMode, - request_deserializer=nifgen__pb2.ConfigureClockModeRequest.FromString, - response_serializer=nifgen__pb2.ConfigureClockModeResponse.SerializeToString, - ), - 'AdjustSampleClockRelativeDelay': grpc.unary_unary_rpc_method_handler( - servicer.AdjustSampleClockRelativeDelay, - request_deserializer=nifgen__pb2.AdjustSampleClockRelativeDelayRequest.FromString, - response_serializer=nifgen__pb2.AdjustSampleClockRelativeDelayResponse.SerializeToString, - ), - 'AllocateWaveform': grpc.unary_unary_rpc_method_handler( - servicer.AllocateWaveform, - request_deserializer=nifgen__pb2.AllocateWaveformRequest.FromString, - response_serializer=nifgen__pb2.AllocateWaveformResponse.SerializeToString, - ), - 'SetWaveformNextWritePosition': grpc.unary_unary_rpc_method_handler( - servicer.SetWaveformNextWritePosition, - request_deserializer=nifgen__pb2.SetWaveformNextWritePositionRequest.FromString, - response_serializer=nifgen__pb2.SetWaveformNextWritePositionResponse.SerializeToString, - ), - 'WriteWaveform': grpc.unary_unary_rpc_method_handler( - servicer.WriteWaveform, - request_deserializer=nifgen__pb2.WriteWaveformRequest.FromString, - response_serializer=nifgen__pb2.WriteWaveformResponse.SerializeToString, - ), - 'WriteBinary16Waveform': grpc.unary_unary_rpc_method_handler( - servicer.WriteBinary16Waveform, - request_deserializer=nifgen__pb2.WriteBinary16WaveformRequest.FromString, - response_serializer=nifgen__pb2.WriteBinary16WaveformResponse.SerializeToString, - ), - 'WriteWaveformComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.WriteWaveformComplexF64, - request_deserializer=nifgen__pb2.WriteWaveformComplexF64Request.FromString, - response_serializer=nifgen__pb2.WriteWaveformComplexF64Response.SerializeToString, - ), - 'WriteComplexBinary16Waveform': grpc.unary_unary_rpc_method_handler( - servicer.WriteComplexBinary16Waveform, - request_deserializer=nifgen__pb2.WriteComplexBinary16WaveformRequest.FromString, - response_serializer=nifgen__pb2.WriteComplexBinary16WaveformResponse.SerializeToString, - ), - 'SelfCal': grpc.unary_unary_rpc_method_handler( - servicer.SelfCal, - request_deserializer=nifgen__pb2.SelfCalRequest.FromString, - response_serializer=nifgen__pb2.SelfCalResponse.SerializeToString, - ), - 'GetSelfCalSupported': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalSupported, - request_deserializer=nifgen__pb2.GetSelfCalSupportedRequest.FromString, - response_serializer=nifgen__pb2.GetSelfCalSupportedResponse.SerializeToString, - ), - 'GetSelfCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalLastDateAndTime, - request_deserializer=nifgen__pb2.GetSelfCalLastDateAndTimeRequest.FromString, - response_serializer=nifgen__pb2.GetSelfCalLastDateAndTimeResponse.SerializeToString, - ), - 'GetExtCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalLastDateAndTime, - request_deserializer=nifgen__pb2.GetExtCalLastDateAndTimeRequest.FromString, - response_serializer=nifgen__pb2.GetExtCalLastDateAndTimeResponse.SerializeToString, - ), - 'GetSelfCalLastTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalLastTemp, - request_deserializer=nifgen__pb2.GetSelfCalLastTempRequest.FromString, - response_serializer=nifgen__pb2.GetSelfCalLastTempResponse.SerializeToString, - ), - 'GetExtCalLastTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalLastTemp, - request_deserializer=nifgen__pb2.GetExtCalLastTempRequest.FromString, - response_serializer=nifgen__pb2.GetExtCalLastTempResponse.SerializeToString, - ), - 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalRecommendedInterval, - request_deserializer=nifgen__pb2.GetExtCalRecommendedIntervalRequest.FromString, - response_serializer=nifgen__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, - ), - 'ReadCurrentTemperature': grpc.unary_unary_rpc_method_handler( - servicer.ReadCurrentTemperature, - request_deserializer=nifgen__pb2.ReadCurrentTemperatureRequest.FromString, - response_serializer=nifgen__pb2.ReadCurrentTemperatureResponse.SerializeToString, - ), - 'ConfigureCustomFIRFilterCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureCustomFIRFilterCoefficients, - request_deserializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsRequest.FromString, - response_serializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsResponse.SerializeToString, - ), - 'GetFIRFilterCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.GetFIRFilterCoefficients, - request_deserializer=nifgen__pb2.GetFIRFilterCoefficientsRequest.FromString, - response_serializer=nifgen__pb2.GetFIRFilterCoefficientsResponse.SerializeToString, - ), - 'GetStreamEndpointHandle': grpc.unary_unary_rpc_method_handler( - servicer.GetStreamEndpointHandle, - request_deserializer=nifgen__pb2.GetStreamEndpointHandleRequest.FromString, - response_serializer=nifgen__pb2.GetStreamEndpointHandleResponse.SerializeToString, - ), - 'WriteP2PEndpointI16': grpc.unary_unary_rpc_method_handler( - servicer.WriteP2PEndpointI16, - request_deserializer=nifgen__pb2.WriteP2PEndpointI16Request.FromString, - response_serializer=nifgen__pb2.WriteP2PEndpointI16Response.SerializeToString, - ), - 'ConfigureSynchronization': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSynchronization, - request_deserializer=nifgen__pb2.ConfigureSynchronizationRequest.FromString, - response_serializer=nifgen__pb2.ConfigureSynchronizationResponse.SerializeToString, - ), - 'EnableDigitalPatterning': grpc.unary_unary_rpc_method_handler( - servicer.EnableDigitalPatterning, - request_deserializer=nifgen__pb2.EnableDigitalPatterningRequest.FromString, - response_serializer=nifgen__pb2.EnableDigitalPatterningResponse.SerializeToString, - ), - 'DisableDigitalPatterning': grpc.unary_unary_rpc_method_handler( - servicer.DisableDigitalPatterning, - request_deserializer=nifgen__pb2.DisableDigitalPatterningRequest.FromString, - response_serializer=nifgen__pb2.DisableDigitalPatterningResponse.SerializeToString, - ), - 'EnableDigitalFilter': grpc.unary_unary_rpc_method_handler( - servicer.EnableDigitalFilter, - request_deserializer=nifgen__pb2.EnableDigitalFilterRequest.FromString, - response_serializer=nifgen__pb2.EnableDigitalFilterResponse.SerializeToString, - ), - 'DisableDigitalFilter': grpc.unary_unary_rpc_method_handler( - servicer.DisableDigitalFilter, - request_deserializer=nifgen__pb2.DisableDigitalFilterRequest.FromString, - response_serializer=nifgen__pb2.DisableDigitalFilterResponse.SerializeToString, - ), - 'EnableAnalogFilter': grpc.unary_unary_rpc_method_handler( - servicer.EnableAnalogFilter, - request_deserializer=nifgen__pb2.EnableAnalogFilterRequest.FromString, - response_serializer=nifgen__pb2.EnableAnalogFilterResponse.SerializeToString, - ), - 'DisableAnalogFilter': grpc.unary_unary_rpc_method_handler( - servicer.DisableAnalogFilter, - request_deserializer=nifgen__pb2.DisableAnalogFilterRequest.FromString, - response_serializer=nifgen__pb2.DisableAnalogFilterResponse.SerializeToString, - ), - 'ConfigureSampleClockSource': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSampleClockSource, - request_deserializer=nifgen__pb2.ConfigureSampleClockSourceRequest.FromString, - response_serializer=nifgen__pb2.ConfigureSampleClockSourceResponse.SerializeToString, - ), - 'ConfigureTriggerMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerMode, - request_deserializer=nifgen__pb2.ConfigureTriggerModeRequest.FromString, - response_serializer=nifgen__pb2.ConfigureTriggerModeResponse.SerializeToString, - ), - 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationFile, - request_deserializer=nifgen__pb2.ImportAttributeConfigurationFileRequest.FromString, - response_serializer=nifgen__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationFile, - request_deserializer=nifgen__pb2.ExportAttributeConfigurationFileRequest.FromString, - response_serializer=nifgen__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationBuffer, - request_deserializer=nifgen__pb2.ImportAttributeConfigurationBufferRequest.FromString, - response_serializer=nifgen__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationBuffer, - request_deserializer=nifgen__pb2.ExportAttributeConfigurationBufferRequest.FromString, - response_serializer=nifgen__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=nifgen__pb2.SetAttributeViInt64Request.FromString, - response_serializer=nifgen__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'CheckAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt64, - request_deserializer=nifgen__pb2.CheckAttributeViInt64Request.FromString, - response_serializer=nifgen__pb2.CheckAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=nifgen__pb2.GetAttributeViInt64Request.FromString, - response_serializer=nifgen__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nifgen__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nifgen__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nifgen__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nifgen__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nifgen__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nifgen__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nifgen__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nifgen__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=nifgen__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=nifgen__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt32, - request_deserializer=nifgen__pb2.CheckAttributeViInt32Request.FromString, - response_serializer=nifgen__pb2.CheckAttributeViInt32Response.SerializeToString, - ), - 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViReal64, - request_deserializer=nifgen__pb2.CheckAttributeViReal64Request.FromString, - response_serializer=nifgen__pb2.CheckAttributeViReal64Response.SerializeToString, - ), - 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViString, - request_deserializer=nifgen__pb2.CheckAttributeViStringRequest.FromString, - response_serializer=nifgen__pb2.CheckAttributeViStringResponse.SerializeToString, - ), - 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViBoolean, - request_deserializer=nifgen__pb2.CheckAttributeViBooleanRequest.FromString, - response_serializer=nifgen__pb2.CheckAttributeViBooleanResponse.SerializeToString, - ), - 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViSession, - request_deserializer=nifgen__pb2.CheckAttributeViSessionRequest.FromString, - response_serializer=nifgen__pb2.CheckAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nifgen__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nifgen__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nifgen__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nifgen__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nifgen__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nifgen__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nifgen__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nifgen__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nifgen__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nifgen__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'ResetAttribute': grpc.unary_unary_rpc_method_handler( - servicer.ResetAttribute, - request_deserializer=nifgen__pb2.ResetAttributeRequest.FromString, - response_serializer=nifgen__pb2.ResetAttributeResponse.SerializeToString, - ), - 'ManualEnableP2PStream': grpc.unary_unary_rpc_method_handler( - servicer.ManualEnableP2PStream, - request_deserializer=nifgen__pb2.ManualEnableP2PStreamRequest.FromString, - response_serializer=nifgen__pb2.ManualEnableP2PStreamResponse.SerializeToString, - ), - 'CreateWaveformFromFileHWS': grpc.unary_unary_rpc_method_handler( - servicer.CreateWaveformFromFileHWS, - request_deserializer=nifgen__pb2.CreateWaveformFromFileHWSRequest.FromString, - response_serializer=nifgen__pb2.CreateWaveformFromFileHWSResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nifgen_grpc.NiFgen', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiFgen(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Init', - nifgen__pb2.InitRequest.SerializeToString, - nifgen__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InitWithOptions', - nifgen__pb2.InitWithOptionsRequest.SerializeToString, - nifgen__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitializeWithChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InitializeWithChannels', - nifgen__pb2.InitializeWithChannelsRequest.SerializeToString, - nifgen__pb2.InitializeWithChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Close', - nifgen__pb2.CloseRequest.SerializeToString, - nifgen__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Reset', - nifgen__pb2.ResetRequest.SerializeToString, - nifgen__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SelfTest', - nifgen__pb2.SelfTestRequest.SerializeToString, - nifgen__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ErrorQuery', - nifgen__pb2.ErrorQueryRequest.SerializeToString, - nifgen__pb2.ErrorQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ErrorMessage', - nifgen__pb2.ErrorMessageRequest.SerializeToString, - nifgen__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/RevisionQuery', - nifgen__pb2.RevisionQueryRequest.SerializeToString, - nifgen__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetError', - nifgen__pb2.GetErrorRequest.SerializeToString, - nifgen__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearError', - nifgen__pb2.ClearErrorRequest.SerializeToString, - nifgen__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorHandler(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ErrorHandler', - nifgen__pb2.ErrorHandlerRequest.SerializeToString, - nifgen__pb2.ErrorHandlerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetChannelName', - nifgen__pb2.GetChannelNameRequest.SerializeToString, - nifgen__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetInterchangeCheck(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetInterchangeCheck', - nifgen__pb2.ResetInterchangeCheckRequest.SerializeToString, - nifgen__pb2.ResetInterchangeCheckResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearInterchangeWarnings(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearInterchangeWarnings', - nifgen__pb2.ClearInterchangeWarningsRequest.SerializeToString, - nifgen__pb2.ClearInterchangeWarningsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InvalidateAllAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InvalidateAllAttributes', - nifgen__pb2.InvalidateAllAttributesRequest.SerializeToString, - nifgen__pb2.InvalidateAllAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetWithDefaults', - nifgen__pb2.ResetWithDefaultsRequest.SerializeToString, - nifgen__pb2.ResetWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Disable', - nifgen__pb2.DisableRequest.SerializeToString, - nifgen__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Commit', - nifgen__pb2.CommitRequest.SerializeToString, - nifgen__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetHardwareState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetHardwareState', - nifgen__pb2.GetHardwareStateRequest.SerializeToString, - nifgen__pb2.GetHardwareStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitUntilDone(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WaitUntilDone', - nifgen__pb2.WaitUntilDoneRequest.SerializeToString, - nifgen__pb2.WaitUntilDoneResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsDone(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/IsDone', - nifgen__pb2.IsDoneRequest.SerializeToString, - nifgen__pb2.IsDoneResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetDevice', - nifgen__pb2.ResetDeviceRequest.SerializeToString, - nifgen__pb2.ResetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOperationMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOperationMode', - nifgen__pb2.ConfigureOperationModeRequest.SerializeToString, - nifgen__pb2.ConfigureOperationModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOutputMode', - nifgen__pb2.ConfigureOutputModeRequest.SerializeToString, - nifgen__pb2.ConfigureOutputModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureReferenceClock(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureReferenceClock', - nifgen__pb2.ConfigureReferenceClockRequest.SerializeToString, - nifgen__pb2.ConfigureReferenceClockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputImpedance(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOutputImpedance', - nifgen__pb2.ConfigureOutputImpedanceRequest.SerializeToString, - nifgen__pb2.ConfigureOutputImpedanceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputEnabled(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOutputEnabled', - nifgen__pb2.ConfigureOutputEnabledRequest.SerializeToString, - nifgen__pb2.ConfigureOutputEnabledResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureChannels(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureChannels', - nifgen__pb2.ConfigureChannelsRequest.SerializeToString, - nifgen__pb2.ConfigureChannelsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitiateGeneration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InitiateGeneration', - nifgen__pb2.InitiateGenerationRequest.SerializeToString, - nifgen__pb2.InitiateGenerationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AbortGeneration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AbortGeneration', - nifgen__pb2.AbortGenerationRequest.SerializeToString, - nifgen__pb2.AbortGenerationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureStandardWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureStandardWaveform', - nifgen__pb2.ConfigureStandardWaveformRequest.SerializeToString, - nifgen__pb2.ConfigureStandardWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DefineUserStandardWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DefineUserStandardWaveform', - nifgen__pb2.DefineUserStandardWaveformRequest.SerializeToString, - nifgen__pb2.DefineUserStandardWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearUserStandardWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearUserStandardWaveform', - nifgen__pb2.ClearUserStandardWaveformRequest.SerializeToString, - nifgen__pb2.ClearUserStandardWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureFrequency(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureFrequency', - nifgen__pb2.ConfigureFrequencyRequest.SerializeToString, - nifgen__pb2.ConfigureFrequencyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureAmplitude(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureAmplitude', - nifgen__pb2.ConfigureAmplitudeRequest.SerializeToString, - nifgen__pb2.ConfigureAmplitudeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryArbWfmCapabilities(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/QueryArbWfmCapabilities', - nifgen__pb2.QueryArbWfmCapabilitiesRequest.SerializeToString, - nifgen__pb2.QueryArbWfmCapabilitiesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWaveformF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformF64', - nifgen__pb2.CreateWaveformF64Request.SerializeToString, - nifgen__pb2.CreateWaveformF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWaveformI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformI16', - nifgen__pb2.CreateWaveformI16Request.SerializeToString, - nifgen__pb2.CreateWaveformI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWaveformComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformComplexF64', - nifgen__pb2.CreateWaveformComplexF64Request.SerializeToString, - nifgen__pb2.CreateWaveformComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWaveformFromFileI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformFromFileI16', - nifgen__pb2.CreateWaveformFromFileI16Request.SerializeToString, - nifgen__pb2.CreateWaveformFromFileI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWaveformFromFileF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformFromFileF64', - nifgen__pb2.CreateWaveformFromFileF64Request.SerializeToString, - nifgen__pb2.CreateWaveformFromFileF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSampleRate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSampleRate', - nifgen__pb2.ConfigureSampleRateRequest.SerializeToString, - nifgen__pb2.ConfigureSampleRateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureArbWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureArbWaveform', - nifgen__pb2.ConfigureArbWaveformRequest.SerializeToString, - nifgen__pb2.ConfigureArbWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearArbWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearArbWaveform', - nifgen__pb2.ClearArbWaveformRequest.SerializeToString, - nifgen__pb2.ClearArbWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AllocateNamedWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AllocateNamedWaveform', - nifgen__pb2.AllocateNamedWaveformRequest.SerializeToString, - nifgen__pb2.AllocateNamedWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetNamedWaveformNextWritePosition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetNamedWaveformNextWritePosition', - nifgen__pb2.SetNamedWaveformNextWritePositionRequest.SerializeToString, - nifgen__pb2.SetNamedWaveformNextWritePositionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteNamedWaveformF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformF64', - nifgen__pb2.WriteNamedWaveformF64Request.SerializeToString, - nifgen__pb2.WriteNamedWaveformF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteNamedWaveformI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformI16', - nifgen__pb2.WriteNamedWaveformI16Request.SerializeToString, - nifgen__pb2.WriteNamedWaveformI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteNamedWaveformComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexF64', - nifgen__pb2.WriteNamedWaveformComplexF64Request.SerializeToString, - nifgen__pb2.WriteNamedWaveformComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteNamedWaveformComplexI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexI16', - nifgen__pb2.WriteNamedWaveformComplexI16Request.SerializeToString, - nifgen__pb2.WriteNamedWaveformComplexI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteNamedWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DeleteNamedWaveform', - nifgen__pb2.DeleteNamedWaveformRequest.SerializeToString, - nifgen__pb2.DeleteNamedWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryArbSeqCapabilities(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/QueryArbSeqCapabilities', - nifgen__pb2.QueryArbSeqCapabilitiesRequest.SerializeToString, - nifgen__pb2.QueryArbSeqCapabilitiesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateArbSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateArbSequence', - nifgen__pb2.CreateArbSequenceRequest.SerializeToString, - nifgen__pb2.CreateArbSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateAdvancedArbSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateAdvancedArbSequence', - nifgen__pb2.CreateAdvancedArbSequenceRequest.SerializeToString, - nifgen__pb2.CreateAdvancedArbSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureArbSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureArbSequence', - nifgen__pb2.ConfigureArbSequenceRequest.SerializeToString, - nifgen__pb2.ConfigureArbSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearArbSequence(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearArbSequence', - nifgen__pb2.ClearArbSequenceRequest.SerializeToString, - nifgen__pb2.ClearArbSequenceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearArbMemory(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearArbMemory', - nifgen__pb2.ClearArbMemoryRequest.SerializeToString, - nifgen__pb2.ClearArbMemoryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryFreqListCapabilities(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/QueryFreqListCapabilities', - nifgen__pb2.QueryFreqListCapabilitiesRequest.SerializeToString, - nifgen__pb2.QueryFreqListCapabilitiesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateFreqList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateFreqList', - nifgen__pb2.CreateFreqListRequest.SerializeToString, - nifgen__pb2.CreateFreqListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureFreqList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureFreqList', - nifgen__pb2.ConfigureFreqListRequest.SerializeToString, - nifgen__pb2.ConfigureFreqListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearFreqList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearFreqList', - nifgen__pb2.ClearFreqListRequest.SerializeToString, - nifgen__pb2.ClearFreqListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteScript(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteScript', - nifgen__pb2.WriteScriptRequest.SerializeToString, - nifgen__pb2.WriteScriptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteScript(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DeleteScript', - nifgen__pb2.DeleteScriptRequest.SerializeToString, - nifgen__pb2.DeleteScriptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ExportSignal', - nifgen__pb2.ExportSignalRequest.SerializeToString, - nifgen__pb2.ExportSignalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RouteSignalOut(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/RouteSignalOut', - nifgen__pb2.RouteSignalOutRequest.SerializeToString, - nifgen__pb2.RouteSignalOutResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareEdgeTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SendSoftwareEdgeTrigger', - nifgen__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - nifgen__pb2.SendSoftwareEdgeTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeStartTrigger', - nifgen__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - nifgen__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeStartTrigger', - nifgen__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - nifgen__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableStartTrigger', - nifgen__pb2.DisableStartTriggerRequest.SerializeToString, - nifgen__pb2.DisableStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureP2PEndpointFullnessStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureP2PEndpointFullnessStartTrigger', - nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, - nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeScriptTrigger', - nifgen__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, - nifgen__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalLevelScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureDigitalLevelScriptTrigger', - nifgen__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, - nifgen__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeScriptTrigger', - nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerRequest.SerializeToString, - nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableScriptTrigger', - nifgen__pb2.DisableScriptTriggerRequest.SerializeToString, - nifgen__pb2.DisableScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureClockMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureClockMode', - nifgen__pb2.ConfigureClockModeRequest.SerializeToString, - nifgen__pb2.ConfigureClockModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AdjustSampleClockRelativeDelay(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AdjustSampleClockRelativeDelay', - nifgen__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, - nifgen__pb2.AdjustSampleClockRelativeDelayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AllocateWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AllocateWaveform', - nifgen__pb2.AllocateWaveformRequest.SerializeToString, - nifgen__pb2.AllocateWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetWaveformNextWritePosition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetWaveformNextWritePosition', - nifgen__pb2.SetWaveformNextWritePositionRequest.SerializeToString, - nifgen__pb2.SetWaveformNextWritePositionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteWaveform', - nifgen__pb2.WriteWaveformRequest.SerializeToString, - nifgen__pb2.WriteWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteBinary16Waveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteBinary16Waveform', - nifgen__pb2.WriteBinary16WaveformRequest.SerializeToString, - nifgen__pb2.WriteBinary16WaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteWaveformComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteWaveformComplexF64', - nifgen__pb2.WriteWaveformComplexF64Request.SerializeToString, - nifgen__pb2.WriteWaveformComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteComplexBinary16Waveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteComplexBinary16Waveform', - nifgen__pb2.WriteComplexBinary16WaveformRequest.SerializeToString, - nifgen__pb2.WriteComplexBinary16WaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SelfCal', - nifgen__pb2.SelfCalRequest.SerializeToString, - nifgen__pb2.SelfCalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalSupported(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetSelfCalSupported', - nifgen__pb2.GetSelfCalSupportedRequest.SerializeToString, - nifgen__pb2.GetSelfCalSupportedResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetSelfCalLastDateAndTime', - nifgen__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, - nifgen__pb2.GetSelfCalLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetExtCalLastDateAndTime', - nifgen__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, - nifgen__pb2.GetExtCalLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalLastTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetSelfCalLastTemp', - nifgen__pb2.GetSelfCalLastTempRequest.SerializeToString, - nifgen__pb2.GetSelfCalLastTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalLastTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetExtCalLastTemp', - nifgen__pb2.GetExtCalLastTempRequest.SerializeToString, - nifgen__pb2.GetExtCalLastTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalRecommendedInterval(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetExtCalRecommendedInterval', - nifgen__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - nifgen__pb2.GetExtCalRecommendedIntervalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadCurrentTemperature(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ReadCurrentTemperature', - nifgen__pb2.ReadCurrentTemperatureRequest.SerializeToString, - nifgen__pb2.ReadCurrentTemperatureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureCustomFIRFilterCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureCustomFIRFilterCoefficients', - nifgen__pb2.ConfigureCustomFIRFilterCoefficientsRequest.SerializeToString, - nifgen__pb2.ConfigureCustomFIRFilterCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetFIRFilterCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetFIRFilterCoefficients', - nifgen__pb2.GetFIRFilterCoefficientsRequest.SerializeToString, - nifgen__pb2.GetFIRFilterCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetStreamEndpointHandle(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetStreamEndpointHandle', - nifgen__pb2.GetStreamEndpointHandleRequest.SerializeToString, - nifgen__pb2.GetStreamEndpointHandleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteP2PEndpointI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteP2PEndpointI16', - nifgen__pb2.WriteP2PEndpointI16Request.SerializeToString, - nifgen__pb2.WriteP2PEndpointI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSynchronization(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSynchronization', - nifgen__pb2.ConfigureSynchronizationRequest.SerializeToString, - nifgen__pb2.ConfigureSynchronizationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnableDigitalPatterning(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/EnableDigitalPatterning', - nifgen__pb2.EnableDigitalPatterningRequest.SerializeToString, - nifgen__pb2.EnableDigitalPatterningResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableDigitalPatterning(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableDigitalPatterning', - nifgen__pb2.DisableDigitalPatterningRequest.SerializeToString, - nifgen__pb2.DisableDigitalPatterningResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnableDigitalFilter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/EnableDigitalFilter', - nifgen__pb2.EnableDigitalFilterRequest.SerializeToString, - nifgen__pb2.EnableDigitalFilterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableDigitalFilter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableDigitalFilter', - nifgen__pb2.DisableDigitalFilterRequest.SerializeToString, - nifgen__pb2.DisableDigitalFilterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnableAnalogFilter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/EnableAnalogFilter', - nifgen__pb2.EnableAnalogFilterRequest.SerializeToString, - nifgen__pb2.EnableAnalogFilterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableAnalogFilter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableAnalogFilter', - nifgen__pb2.DisableAnalogFilterRequest.SerializeToString, - nifgen__pb2.DisableAnalogFilterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSampleClockSource(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSampleClockSource', - nifgen__pb2.ConfigureSampleClockSourceRequest.SerializeToString, - nifgen__pb2.ConfigureSampleClockSourceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureTriggerMode', - nifgen__pb2.ConfigureTriggerModeRequest.SerializeToString, - nifgen__pb2.ConfigureTriggerModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ImportAttributeConfigurationFile', - nifgen__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - nifgen__pb2.ImportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ExportAttributeConfigurationFile', - nifgen__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - nifgen__pb2.ExportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ImportAttributeConfigurationBuffer', - nifgen__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - nifgen__pb2.ImportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ExportAttributeConfigurationBuffer', - nifgen__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - nifgen__pb2.ExportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViInt64', - nifgen__pb2.SetAttributeViInt64Request.SerializeToString, - nifgen__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViInt64', - nifgen__pb2.CheckAttributeViInt64Request.SerializeToString, - nifgen__pb2.CheckAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViInt64', - nifgen__pb2.GetAttributeViInt64Request.SerializeToString, - nifgen__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViInt32', - nifgen__pb2.SetAttributeViInt32Request.SerializeToString, - nifgen__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViReal64', - nifgen__pb2.SetAttributeViReal64Request.SerializeToString, - nifgen__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViString', - nifgen__pb2.SetAttributeViStringRequest.SerializeToString, - nifgen__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViBoolean', - nifgen__pb2.SetAttributeViBooleanRequest.SerializeToString, - nifgen__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViSession', - nifgen__pb2.SetAttributeViSessionRequest.SerializeToString, - nifgen__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViInt32', - nifgen__pb2.CheckAttributeViInt32Request.SerializeToString, - nifgen__pb2.CheckAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViReal64', - nifgen__pb2.CheckAttributeViReal64Request.SerializeToString, - nifgen__pb2.CheckAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViString', - nifgen__pb2.CheckAttributeViStringRequest.SerializeToString, - nifgen__pb2.CheckAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViBoolean', - nifgen__pb2.CheckAttributeViBooleanRequest.SerializeToString, - nifgen__pb2.CheckAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViSession', - nifgen__pb2.CheckAttributeViSessionRequest.SerializeToString, - nifgen__pb2.CheckAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViInt32', - nifgen__pb2.GetAttributeViInt32Request.SerializeToString, - nifgen__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViReal64', - nifgen__pb2.GetAttributeViReal64Request.SerializeToString, - nifgen__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViString', - nifgen__pb2.GetAttributeViStringRequest.SerializeToString, - nifgen__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViBoolean', - nifgen__pb2.GetAttributeViBooleanRequest.SerializeToString, - nifgen__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViSession', - nifgen__pb2.GetAttributeViSessionRequest.SerializeToString, - nifgen__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetAttribute(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetAttribute', - nifgen__pb2.ResetAttributeRequest.SerializeToString, - nifgen__pb2.ResetAttributeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ManualEnableP2PStream(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ManualEnableP2PStream', - nifgen__pb2.ManualEnableP2PStreamRequest.SerializeToString, - nifgen__pb2.ManualEnableP2PStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWaveformFromFileHWS(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformFromFileHWS', - nifgen__pb2.CreateWaveformFromFileHWSRequest.SerializeToString, - nifgen__pb2.CreateWaveformFromFileHWSResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nifgen/nifgen/session.py b/generated/nifgen/nifgen/session.py deleted file mode 100644 index 0429bfcb3f..0000000000 --- a/generated/nifgen/nifgen/session.py +++ /dev/null @@ -1,4413 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nifgen._attributes as _attributes -import nifgen._converters as _converters -import nifgen._library_interpreter as _library_interpreter -import nifgen.enums as enums -import nifgen.errors as errors - -import hightime -import nitclk - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Generation(object): - def __init__(self, session): - self._session = session - self._session._initiate_generation() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-FGEN sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - absolute_delay = _attributes.AttributeViReal64(1150413) - '''Type: float - - Specifies the sub-Sample Clock delay, in seconds, to apply to the - waveform. Use this property to reduce the trigger jitter when - synchronizing multiple devices with NI-TClk. This property can also help - maintain synchronization repeatability by writing the absolute delay - value of a previous measurement to the current session. - To set this property, the waveform generator must be in the Idle - (Configuration) state. - **Units**: seconds (s) - **Valid Values**: Plus or minus half of one Sample Clock period - **Default Value**: 0.0 - **Supported Waveform Generators**: PXIe-5413/5423/5433 - - Note: - If this property is set, NI-TClk cannot perform any sub-Sample Clock - adjustment. - ''' - all_marker_events_latched_status = _attributes.AttributeViInt32(1150349) - '''Type: int - - Returns a bit field of the latched status of all Marker Events. Write 0 to this property to clear the latched status of all Marker Events. - ''' - all_marker_events_live_status = _attributes.AttributeViInt32(1150344) - '''Type: int - - Returns a bit field of the live status of all Marker Events. - ''' - analog_data_mask = _attributes.AttributeViInt32(1150234) - '''Type: int - - Specifies the mask to apply to the analog output. The masked data is replaced with the data in analog_static_value. - ''' - analog_filter_enabled = _attributes.AttributeViBoolean(1150103) - '''Type: bool - - Controls whether the signal generator applies to an analog filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. - ''' - analog_path = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogPath, 1150222) - '''Type: enums.AnalogPath - - Specifies the analog signal path that should be used. The main path allows you to configure gain, offset, analog filter status, output impedance, and output enable. The main path has two amplifier options, high- and low-gain. - The direct path presents a much smaller gain range, and you cannot adjust offset or the filter status. The direct path also provides a smaller output range but also lower distortion. NI-FGEN normally chooses the amplifier based on the user-specified gain. - ''' - analog_static_value = _attributes.AttributeViInt32(1150235) - '''Type: int - - Specifies the static value that replaces data masked by analog_data_mask. - ''' - arb_gain = _attributes.AttributeViReal64(1250202) - '''Type: float - - Specifies the factor by which the signal generator scales the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to scale the arbitrary waveform to other ranges. - For example, when you set this property to 2.0, the output signal ranges from -2.0 V to +2.0 V. - Use this property when output_mode is set to OutputMode.ARB or OutputMode.SEQ. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_gain` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_gain` - ''' - arb_marker_position = _attributes.AttributeViInt32(1150327) - '''Type: int - - Specifies the position for a marker to be asserted in the arbitrary waveform. This property defaults to -1 when no marker position is specified. Use this property when output_mode is set to OutputMode.ARB. - Use ExportSignal to export the marker signal. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - arb_offset = _attributes.AttributeViReal64(1250203) - '''Type: float - - Specifies the value that the signal generator adds to the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to shift the arbitrary waveform range. - For example, when you set this property to 1.0, the output signal ranges from 2.0 V to 0.0 V. - Use this property when output_mode is set to OutputMode.ARB or OutputMode.SEQ. - Units: Volts - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_offset` - ''' - arb_repeat_count = _attributes.AttributeViInt32(1150328) - '''Type: int - - Specifies number of times to repeat the arbitrary waveform when the triggerMode parameter of ConfigureTriggerMode is set to TriggerMode.SINGLE or TriggerMode.STEPPED. This property is ignored if the triggerMode parameter is set to TriggerMode.CONTINUOUS or TriggerMode.BURST. Use this property when output_mode is set to OutputMode.ARB. - When used during streaming, this property specifies the number of times to repeat the streaming waveform (the onboard memory allocated for streaming). For more information about streaming, refer to the Streaming topic. - ''' - arb_sample_rate = _attributes.AttributeViReal64(1250204) - '''Type: float - - Specifies the rate at which the signal generator outputs the points in arbitrary waveforms. Use this property when output_mode is set to OutputMode.ARB or OutputMode.SEQ. - Units: Samples/s - ''' - arb_sequence_handle = _attributes.AttributeViInt32(1250211) - '''Type: int - - This channel-based property identifies which sequence the signal generator produces. You can create multiple sequences using create_arb_sequence. create_arb_sequence returns a handle that you can use to identify the particular sequence. To configure the signal generator to produce a particular sequence, set this property to the sequence handle. - Use this property only when output_mode is set to OutputMode.SEQ. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_sequence_handle` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_sequence_handle` - ''' - arb_waveform_handle = _attributes.AttributeViInt32(1250201) - '''Type: int - - Selects which arbitrary waveform the signal generator produces. You can create multiple arbitrary waveforms using one of the following niFgen Create Waveform methods: - create_waveform - create_waveform - create_waveform_from_file_i16 - create_waveform_from_file_f64 - These methods return a handle that you can use to identify the particular waveform. To configure the signal generator to produce a particular waveform, set this property to the waveform handle. - Use this property only when output_mode is set to OutputMode.ARB. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].arb_waveform_handle` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.arb_waveform_handle` - ''' - aux_power_enabled = _attributes.AttributeViBoolean(1150411) - '''Type: bool - - Controls the specified auxiliary power pin. Setting this property to TRUE energizes the auxiliary power when the session is committed. When this property is FALSE, the power pin of the connector outputs no power. - ''' - bus_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.BusType, 1150215) - '''Type: enums.BusType - - The bus type of the signal generator. - ''' - channel_delay = _attributes.AttributeViReal64(1150369) - '''Type: float - - Specifies, in seconds, the delay to apply to the analog output of the channel specified by the channel string. You can use the channel delay to configure the timing relationship between channels on a multichannel device. Values for this property can be zero or positive. A value of zero indicates that the channels are aligned. A positive value delays the analog output by the specified number of seconds. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].channel_delay` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.channel_delay` - ''' - clock_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ClockMode, 1150110) - '''Type: enums.ClockMode - - Controls which clock mode is used for the signal generator. - For signal generators that support it, this property allows switching the sample clock to High-Resolution mode. When in Divide-Down mode, the sample rate can only be set to certain frequences, based on dividing down the update clock. However, in High-Resolution mode, the sample rate may be set to any value. - ''' - common_mode_offset = _attributes.AttributeViReal64(1150366) - '''Type: float - - Specifies, in volts, the value the signal generator adds to or subtracts from the arbitrary waveform data. This property applies only when you set the terminal_configuration property to TerminalConfiguration.DIFFERENTIAL. Common mode offset is applied to the signals generated at each differential output terminal. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].common_mode_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.common_mode_offset` - ''' - data_marker_events_count = _attributes.AttributeViInt32(1150273) - '''Type: int - - Returns the number of Data Marker Events supported by the device. - ''' - data_marker_event_data_bit_number = _attributes.AttributeViInt32(1150337) - '''Type: int - - Specifies the bit number to assign to the Data Marker Event. - - Tip: - This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container data_markers to specify a subset. - - Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_data_bit_number` - - To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.data_marker_event_data_bit_number` - ''' - data_marker_event_level_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DataMarkerEventLevelPolarity, 1150338) - '''Type: enums.DataMarkerEventLevelPolarity - - Specifies the output polarity of the Data marker event. - - Tip: - This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container data_markers to specify a subset. - - Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_level_polarity` - - To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.data_marker_event_level_polarity` - ''' - data_marker_event_output_terminal = _attributes.AttributeViString(1150339) - '''Type: str - - Specifies the destination terminal for the Data Marker Event. - - Tip: - This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container data_markers to specify a subset. - - Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_output_terminal` - - To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.data_marker_event_output_terminal` - ''' - data_transfer_block_size = _attributes.AttributeViInt32(1150241) - '''Type: int - - The number of samples at a time to download to onboard memory. Useful when the total data to be transferred to onboard memory is large. - ''' - data_transfer_maximum_bandwidth = _attributes.AttributeViReal64(1150373) - '''Type: float - - Specifies the maximum amount of bus bandwidth (in bytes per second) to use for data transfers. The signal generator limits data transfer speeds on the PCIe bus to the value you specify for this property. Set this property to optimize bus bandwidth usage for multi-device streaming applications by preventing the signal generator from consuming all of the available bandwidth on a PCI express link when waveforms are being written to the onboard memory of the device. - ''' - data_transfer_maximum_in_flight_reads = _attributes.AttributeViInt32(1150375) - '''Type: int - - Specifies the maximum number of concurrent PCI Express read requests the signal generator can issue. - When transferring data from computer memory to device onboard memory across the PCI Express bus, the signal generator can issue multiple memory reads at the same time. In general, the larger the number of read requests, the more efficiently the device uses the bus because the multiple read requests keep the data flowing, even in a PCI Express topology that has high latency due to PCI Express switches in the data path. Most NI devices can issue a large number of read requests (typically 8 or 16). By default, this property is set to the highest value the signal generator supports. - If other devices in your system cannot tolerate long data latencies, it may be helpful to decrease the number of in-flight read requests the NI signal generator issues. This helps to reduce the amount of data the signal generator reads at one time. - ''' - data_transfer_preferred_packet_size = _attributes.AttributeViInt32(1150374) - '''Type: int - - Specifies the preferred size of the data field in a PCI Express read request packet. In general, the larger the packet size, the more efficiently the device uses the bus. By default, NI signal generators use the largest packet size allowed by the system. However, due to different system implementations, some systems may perform better with smaller packet sizes. - Recommended values for this property are powers of two between 64 and 512. - In some cases, the signal generator generates packets smaller than the preferred size you set with this property. - You cannot change this property while the device is generating a waveform. If you want to change the device configuration, call the abort method or wait for the generation to complete. - - Note: - : - ''' - digital_data_mask = _attributes.AttributeViInt32(1150236) - '''Type: int - - Specifies the mask to apply to the output on the digital connector. The masked data is replaced with the data in digital_static_value. - ''' - digital_edge_script_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalEdgeEdge, 1150292) - '''Type: enums.ScriptTriggerDigitalEdgeEdge - - Specifies the active edge for the Script trigger. This property is used when script_trigger_type is set to Digital Edge. - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_edge` - ''' - digital_edge_script_trigger_source = _attributes.AttributeViString(1150291) - '''Type: str - - Specifies the source terminal for the Script trigger. This property is used when script_trigger_type is set to Digital Edge. - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_source` - ''' - digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerDigitalEdgeEdge, 1150282) - '''Type: enums.StartTriggerDigitalEdgeEdge - - Specifies the active edge for the Start trigger. This property is used only when start_trigger_type is set to Digital Edge. - ''' - digital_edge_start_trigger_source = _attributes.AttributeViString(1150281) - '''Type: str - - Specifies the source terminal for the Start trigger. This property is used only when start_trigger_type is set to Digital Edge. - ''' - digital_filter_enabled = _attributes.AttributeViBoolean(1150102) - '''Type: bool - - Controls whether the signal generator applies a digital filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. - ''' - digital_filter_interpolation_factor = _attributes.AttributeViReal64(1150218) - '''Type: float - - This property only affects the device when digital_filter_enabled is set to True. If you do not set this property directly, NI-FGEN automatically selects the maximum interpolation factor allowed for the current sample rate. Valid values are 2, 4, and 8. - ''' - digital_gain = _attributes.AttributeViReal64(1150254) - '''Type: float - - Specifies a factor by which the signal generator digitally multiplies generated data before converting it to an analog signal in the DAC. For a digital gain greater than 1.0, the product of digital gain times the generated data must be inside the range plus or minus 1.0 (assuming floating point data). If the product exceeds these limits, the signal generator clips the output signal, and an error results. - Some signal generators support both digital gain and an analog gain (analog gain is specified with the func_amplitude property or the arb_gain property). Digital gain can be changed during generation without the glitches that may occur when changing analog gains, due to relay switching. However, the DAC output resolution is a method of analog gain, so only analog gain makes full use of the resolution of the DAC. - ''' - digital_pattern_enabled = _attributes.AttributeViBoolean(1150101) - '''Type: bool - - Controls whether the signal generator generates a digital pattern of the output signal. - ''' - digital_static_value = _attributes.AttributeViInt32(1150237) - '''Type: int - - Specifies the static value that replaces data masked by digital_data_mask. - ''' - done_event_output_terminal = _attributes.AttributeViString(1150315) - '''Type: str - - Specifies the destination terminal for the Done Event. - ''' - done_event_pulse_width = _attributes.AttributeViReal64(1150336) - '''Type: float - - Specifies the pulse width for the Done Event. - ''' - done_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventPulseWidthUnits, 1150334) - '''Type: enums.EventPulseWidthUnits - - Specifies the pulse width units for the Done Event. - ''' - driver_setup = _attributes.AttributeViString(1050007) - '''Type: str - - Specifies the driver setup portion of the option string that was passed into the InitWithOptions method. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - exported_onboard_reference_clock_output_terminal = _attributes.AttributeViString(1150322) - '''Type: str - - Specifies the terminal to which to export the Onboard Reference Clock. - ''' - exported_reference_clock_output_terminal = _attributes.AttributeViString(1150321) - '''Type: str - - Specifies the terminal to which to export the Reference Clock. - ''' - exported_sample_clock_divisor = _attributes.AttributeViInt32(1150219) - '''Type: int - - Specifies the factor by which to divide the Sample clock, also known as the Update clock, before it is exported. To export the Sample clock, use the ExportSignal method or the exported_sample_clock_output_terminal property. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - exported_sample_clock_output_terminal = _attributes.AttributeViString(1150320) - '''Type: str - - Specifies the terminal to which to export the Sample Clock. - ''' - exported_sample_clock_timebase_divisor = _attributes.AttributeViInt32(1150230) - '''Type: int - - Specifies the factor by which to divide the sample clock timebase (board clock) before it is exported. To export the Sample clock timebase, use the ExportSignal method or the exported_sample_clock_timebase_output_terminal property. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - exported_sample_clock_timebase_output_terminal = _attributes.AttributeViString(1150329) - '''Type: str - - Specifies the terminal to which to export the Sample clock timebase. If you specify a divisor with the exported_sample_clock_timebase_divisor property, the Sample clock exported with the exported_sample_clock_timebase_output_terminal property is the value of the Sample clock timebase after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. - To change the device configuration, call abort or wait for the generation to complete. - - Note: The signal generator must not be in the Generating state when you change this property. - ''' - exported_script_trigger_output_terminal = _attributes.AttributeViString(1150295) - '''Type: str - - Specifies the output terminal for the exported Script trigger. - Setting this property to an empty string means that when you commit the session, the signal is removed from that terminal and, if possible, the terminal is tristated. - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.exported_script_trigger_output_terminal` - ''' - exported_start_trigger_output_terminal = _attributes.AttributeViString(1150283) - '''Type: str - - Specifies the destination terminal for exporting the Start trigger. - ''' - external_clock_delay_binary_value = _attributes.AttributeViInt32(1150233) - '''Type: int - - Binary value of the external clock delay. - ''' - external_sample_clock_multiplier = _attributes.AttributeViReal64(1150376) - '''Type: float - - Specifies a multiplication factor to use to obtain a desired sample rate from an external Sample clock. The resulting sample rate is equal to this factor multiplied by the external Sample clock rate. You can use this property to generate samples at a rate higher than your external clock rate. When using this property, you do not need to explicitly set the external clock rate. - ''' - file_transfer_block_size = _attributes.AttributeViInt32(1150240) - '''Type: int - - The number of samples at a time to read from the file and download to onboard memory. Used in conjunction with the Create From File and Write From File methods. - ''' - filter_correction_frequency = _attributes.AttributeViReal64(1150104) - '''Type: float - - Controls the filter correction frequency of the analog filter. This property corrects for the ripples in the analog filter frequency response at the frequency specified. For standard waveform output, the filter correction frequency should be set to be the same as the frequency of the standard waveform. To have no filter correction, set this property to 0 Hz. - ''' - flatness_correction_enabled = _attributes.AttributeViBoolean(1150323) - '''Type: bool - - When True, the signal generator applies a flatness correction factor to the generated sine wave in order to ensure the same output power level at all frequencies. - This property should be set to False when performing Flatness Calibration. - ''' - fpga_bitfile_path = _attributes.AttributeViString(1150412) - '''Type: str - - Gets the absolute file path to the bitfile loaded on the FPGA. - ''' - freq_list_duration_quantum = _attributes.AttributeViReal64(1150214) - '''Type: float - - Returns the quantum of which all durations must be a multiple in a frequency list. - ''' - freq_list_handle = _attributes.AttributeViInt32(1150208) - '''Type: int - - Sets which frequency list the signal generator produces. Create a frequency list using create_freq_list. create_freq_list returns a handle that you can use to identify the list. - ''' - func_amplitude = _attributes.AttributeViReal64(1250102) - '''Type: float - - Controls the amplitude of the standard waveform that the signal generator produces. This value is the amplitude at the output terminal. - For example, to produce a waveform ranging from -5.00 V to +5.00 V, set the amplitude to 10.00 V. - set the Waveform parameter to Waveform.DC. - Units: Vpk-pk - - Note: This parameter does not affect signal generator behavior when you - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_amplitude` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_amplitude` - ''' - func_buffer_size = _attributes.AttributeViInt32(1150238) - '''Type: int - - This property contains the number of samples used in the standard method waveform buffer. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. - implementation of Standard Method Mode on your device. - - Note: Refer to the Standard Method Mode topic for more information on the - ''' - func_dc_offset = _attributes.AttributeViReal64(1250103) - '''Type: float - - Controls the DC offset of the standard waveform that the signal generator produces. This value is the offset at the output terminal. The value is the offset from ground to the center of the waveform that you specify with the Waveform parameter. - For example, to configure a waveform with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set DC Offset to 5.00 V. - Units: volts - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_dc_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_dc_offset` - ''' - func_duty_cycle_high = _attributes.AttributeViReal64(1250106) - '''Type: float - - Controls the duty cycle of the square wave the signal generator produces. Specify this property as a percentage of the time the square wave is high in a cycle. - set the Waveform parameter to Waveform.SQUARE. - Units: Percentage of time the waveform is high - - Note: This parameter only affects signal generator behavior when you - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_duty_cycle_high` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_duty_cycle_high` - ''' - func_frequency = _attributes.AttributeViReal64(1250104) - '''Type: float - - Controls the frequency of the standard waveform that the signal generator produces. - Units: hertz - (1) This parameter does not affect signal generator behavior when you set the Waveform parameter of the configure_standard_waveform method to Waveform.DC. - (2) For Waveform.SINE, the range is between 0 MHz and 16 MHz, but the range is between 0 MHz and 1 MHz for all other waveforms. - - Note: - : - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_frequency` - ''' - func_max_buffer_size = _attributes.AttributeViInt32(1150239) - '''Type: int - - This property sets the maximum number of samples that can be used in the standard method waveform buffer. Increasing this value may increase the quality of the waveform. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. - implementation of Standard Method Mode on your device. - - Note: Refer to the Standard Method Mode topic for more information on the - ''' - func_start_phase = _attributes.AttributeViReal64(1250105) - '''Type: float - - Controls horizontal offset of the standard waveform the signal generator produces. Specify this property in degrees of one waveform cycle. - A start phase of 180 degrees means output generation begins halfway through the waveform. A start phase of 360 degrees offsets the output by an entire waveform cycle, which is identical to a start phase of 0 degrees. - set the Waveform parameter to Waveform.DC. - Units: Degrees of one cycle - - Note: This parameter does not affect signal generator behavior when you - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_start_phase` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_start_phase` - ''' - func_waveform = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Waveform, 1250101) - '''Type: enums.Waveform - - This channel-based property specifies which standard waveform the signal generator produces. - Use this property only when output_mode is set to OutputMode.FUNC. - Waveform.SINE - Sinusoid waveform - Waveform.SQUARE - Square waveform - Waveform.TRIANGLE - Triangle waveform - Waveform.RAMP_UP - Positive ramp waveform - Waveform.RAMP_DOWN - Negative ramp waveform - Waveform.DC - Constant voltage - Waveform.NOISE - White noise - Waveform.USER - User-defined waveform as defined with - define_user_standard_waveform - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].func_waveform` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.func_waveform` - ''' - idle_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IdleBehavior, 1150377) - '''Type: enums.IdleBehavior - - Specifies the behavior of the output during the Idle state. The output can be configured to hold the last generated voltage before entering the Idle state or jump to the Idle Value. - ''' - idle_value = _attributes.AttributeViInt32(1150378) - '''Type: int - - Specifies the value to generate in the Idle state. The Idle Behavior must be configured to jump to this value. - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - A string that contains the firmware revision information for the device that you are currently using. - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - A string that contains the name of the device manufacturer you are currently using. - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - A string that contains the model number or name of the device that you are currently using. - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Indicates the resource descriptor that NI-FGEN uses to identify the physical device. - If you initialize NI-FGEN with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration Utility. - If you initialize NI-FGEN with the resource descriptor, this property contains that value. - ''' - load_impedance = _attributes.AttributeViReal64(1150220) - '''Type: float - - This channel-based property specifies the load impedance connected to the analog output of the channel. If you set this property to NIFGEN_VAL_MATCHED_LOAD_IMPEDANCE (-1.0), NI-FGEN assumes that the load impedance matches the output impedance. NI-FGEN compensates to give the desired peak-to-peak voltage amplitude or arbitrary gain (relative to 1 V). - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - A string containing the logical name that you specified when opening the current IVI session. - You may pass a logical name to init or InitWithOptions. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - marker_events_count = _attributes.AttributeViInt32(1150271) - '''Type: int - - Returns the number of markers supported by the device. Use this property when output_mode is set to OutputMode.SCRIPT. - ''' - marker_event_output_terminal = _attributes.AttributeViString(1150312) - '''Type: str - - Specifies the destination terminal for the Marker Event. - - Tip: - This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_output_terminal` - - To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.marker_event_output_terminal` - ''' - marker_event_pulse_width = _attributes.AttributeViReal64(1150340) - '''Type: float - - Specifies the pulse width for the Marker Event. - - Tip: - This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` - - To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width` - ''' - marker_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventPulseWidthUnits, 1150341) - '''Type: enums.EventPulseWidthUnits - - Specifies the pulse width units for the Marker Event. - - Tip: - This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` - - To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width_units` - ''' - max_freq_list_duration = _attributes.AttributeViReal64(1150213) - '''Type: float - - Returns the maximum duration of any one step in the frequency list. - ''' - max_freq_list_length = _attributes.AttributeViInt32(1150211) - '''Type: int - - Returns the maximum number of steps that can be in a frequency list. - ''' - max_loop_count = _attributes.AttributeViInt32(1250215) - '''Type: int - - Returns the maximum number of times that the signal generator can repeat a waveform in a sequence. Typically, this value is constant for the signal generator. - ''' - max_num_freq_lists = _attributes.AttributeViInt32(1150209) - '''Type: int - - Returns the maximum number of frequency lists the signal generator allows. - ''' - max_num_sequences = _attributes.AttributeViInt32(1250212) - '''Type: int - - Returns the maximum number of arbitrary sequences that the signal generator allows. Typically, this value is constant for the signal generator. - ''' - max_num_waveforms = _attributes.AttributeViInt32(1250205) - '''Type: int - - Returns the maximum number of arbitrary waveforms that the signal generator allows. Typically, this value is constant for the signal generator. - ''' - max_sequence_length = _attributes.AttributeViInt32(1250214) - '''Type: int - - Returns the maximum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. - ''' - max_waveform_size = _attributes.AttributeViInt32(1250208) - '''Type: int - - Returns the size, in samples, of the largest waveform that can be created. This property reflects the space currently available, taking into account previously allocated waveforms and instructions. - ''' - memory_size = _attributes.AttributeViInt32(1150242) - '''Type: int - - The total amount of memory, in bytes, on the signal generator. - ''' - min_freq_list_duration = _attributes.AttributeViReal64(1150212) - '''Type: float - - Returns the minimum number of steps that can be in a frequency list. - ''' - min_freq_list_length = _attributes.AttributeViInt32(1150210) - '''Type: int - - Returns the minimum number of frequency lists that the signal generator allows. - ''' - min_sequence_length = _attributes.AttributeViInt32(1250213) - '''Type: int - - Returns the minimum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. - ''' - min_waveform_size = _attributes.AttributeViInt32(1250207) - '''Type: int - - Returns the minimum number of points that the signal generator allows in an arbitrary waveform. Typically, this value is constant for the signal generator. - ''' - module_revision = _attributes.AttributeViString(1150390) - '''Type: str - - A string that contains the module revision for the device that you are currently using. - ''' - channel_count = _attributes.AttributeViInt32(1050203) - '''Type: int - - Indicates the number of channels that the specific instrument driver supports. - For each property for which IVI_VAL_MULTI_CHANNEL is set, the IVI Engine maintains a separate cache value for each channel. - ''' - output_enabled = _attributes.AttributeViBoolean(1250003) - '''Type: bool - - This channel-based property specifies whether the signal that the signal generator produces appears at the output connector. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.output_enabled` - ''' - output_impedance = _attributes.AttributeViReal64(1250004) - '''Type: float - - This channel-based property specifies the signal generator output impedance at the output connector. NI signal sources modules have an output impedance of 50 ohms and an optional 75 ohms on select modules. If the load impedance matches the output impedance, then the voltage at the signal output connector is at the needed level. The voltage at the signal output connector varies with load output impedance, up to doubling the voltage for a high-impedance load. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].output_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.output_impedance` - ''' - output_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputMode, 1250001) - '''Type: enums.OutputMode - - Sets which output mode the signal generator will use. The value you specify determines which methods and properties you use to configure the waveform the signal generator produces. - - Note: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call abort or wait for the generation to complete. - ''' - ready_for_start_event_output_terminal = _attributes.AttributeViString(1150310) - '''Type: str - - Specifies the destination terminal for the Ready for Start Event. - ''' - reference_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockSource, 1150113) - '''Type: enums.ReferenceClockSource - - Specifies the reference clock source used by the signal generator. - The signal generator derives the frequencies and sample rates that it uses to generate waveforms from the source you specify. For example, when you set this property to ClkIn, the signal generator uses the signal it receives at the CLK IN front panel connector as the Reference clock. - To change the device configuration, call abort or wait for the generation to complete. - - Note: The signal generator must not be in the Generating state when you change this property. - ''' - ref_clock_frequency = _attributes.AttributeViReal64(1150107) - '''Type: float - - Sets the frequency of the signal generator reference clock. The signal generator uses the reference clock to derive frequencies and sample rates when generating output. - ''' - sample_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.SampleClockSource, 1150112) - '''Type: enums.SampleClockSource - - Specifies the Sample clock source. If you specify a divisor with the exported_sample_clock_divisor property, the Sample clock exported with the exported_sample_clock_output_terminal property is the value of the Sample clock after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. - To change the device configuration, call abort or wait for the generation to complete. - - Note: The signal generator must not be in the Generating state when you change this property. - ''' - sample_clock_timebase_rate = _attributes.AttributeViReal64(1150368) - '''Type: float - - Specifies the Sample clock timebase rate. This property applies only to external Sample clock timebases. - To change the device configuration, call abort or wait for the generation to complete. - - Note: The signal generator must not be in the Generating state when you change this property. - ''' - sample_clock_timebase_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.SampleClockTimebaseSource, 1150367) - '''Type: enums.SampleClockTimebaseSource - - Specifies the Sample Clock Timebase source. - To change the device configuration, call the abort method or wait for the generation to complete. - - Note: The signal generator must not be in the Generating state when you change this property. - ''' - script_to_generate = _attributes.AttributeViString(1150270) - '''Type: str - - Specifies which script the generator produces. To configure the generator to run a particular script, set this property to the name of the script. Use write_script to create multiple scripts. Use this property when output_mode is set to OutputMode.SCRIPT. - - Note: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call abort or wait for the generation to complete. - ''' - script_triggers_count = _attributes.AttributeViInt32(1150272) - '''Type: int - - Specifies the number of Script triggers supported by the device. Use this property when output_mode is set to OutputMode.SCRIPT. - ''' - script_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerType, 1150290) - '''Type: enums.ScriptTriggerType - - Specifies the Script trigger type. Depending upon the value of this property, additional properties may need to be configured to fully configure the trigger. - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.script_trigger_type` - ''' - serial_number = _attributes.AttributeViString(1150243) - '''Type: str - - The signal generator's serial number. - ''' - simulate = _attributes.AttributeViBoolean(1050005) - '''Type: bool - - Specifies whether to simulate NI-FGEN I/O operations. If simulation is enabled, NI-FGEN methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute, but they do not perform device I/O. For output parameters that represent device data, NI-FGEN methods return calculated values. - Default Value: False - Use InitWithOptions to override default value. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - Returns a brief description of NI-FGEN. - ''' - major_version = _attributes.AttributeViInt32(1050503) - '''Type: int - - Returns the major version number of NI-FGEN. - ''' - minor_version = _attributes.AttributeViInt32(1050504) - '''Type: int - - Returns the minor version number of NI-FGEN. - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - A string that contains additional version information about NI-FGEN. - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - A string that contains the name of the vendor that supplies NI-FGEN. - ''' - started_event_output_terminal = _attributes.AttributeViString(1150314) - '''Type: str - - Specifies the destination terminal for the Started Event. - ''' - started_event_pulse_width = _attributes.AttributeViReal64(1150335) - '''Type: float - - Specifies the pulse width for the Started Event. - ''' - started_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventPulseWidthUnits, 1150333) - '''Type: enums.EventPulseWidthUnits - - Specifies the pulse width units for the Started Event. - ''' - start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerType, 1150280) - '''Type: enums.StartTriggerType - - Specifies whether you want the Start trigger to be a Digital Edge, or Software trigger. You can also choose None as the value for this property. - ''' - streaming_space_available_in_waveform = _attributes.AttributeViInt32(1150325) - '''Type: int - - Indicates the space available (in samples) in the streaming waveform for writing new data. During generation, this available space may be in multiple locations with, for example, part of the available space at the end of the streaming waveform and the rest at the beginning. In this situation, writing a block of waveform data the size of the total space available in the streaming waveform causes NI-FGEN to return an error, as NI-FGEN will not wrap the data from the end of the waveform to the beginning and cannot write data past the end of the waveform buffer. - To avoid writing data past the end of the waveform, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. - Used in conjunction with the streaming_waveform_handle or streaming_waveform_name properties. - ''' - streaming_waveform_handle = _attributes.AttributeViInt32(1150324) - '''Type: int - - Specifies the waveform handle of the waveform used to continuously stream data during generation. This property defaults to -1 when no streaming waveform is specified. - Used in conjunction with streaming_space_available_in_waveform. - ''' - streaming_waveform_name = _attributes.AttributeViString(1150326) - '''Type: str - - Specifies the name of the waveform used to continuously stream data during generation. This property defaults to // when no streaming waveform is specified. - Use in conjunction with streaming_space_available_in_waveform. - ''' - streaming_write_timeout = _attributes.AttributeViReal64TimeDeltaSeconds(1150409) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the maximum amount of time allowed to complete a streaming write operation. - ''' - supported_instrument_models = _attributes.AttributeViString(1050327) - '''Type: str - - Returns a model code of the device. For NI-FGEN versions that support more than one device, this property contains a comma-separated list of supported device models. - ''' - terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TerminalConfiguration, 1150365) - '''Type: enums.TerminalConfiguration - - Specifies whether gain and offset values will be analyzed based on single-ended or differential operation. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].terminal_configuration` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.terminal_configuration` - ''' - trigger_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerMode, 1150108) - '''Type: enums.TriggerMode - - Controls the trigger mode. - - Tip: - This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].trigger_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. - - Example: :py:attr:`my_session.trigger_mode` - ''' - wait_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WaitBehavior, 1150379) - '''Type: enums.WaitBehavior - - Specifies the behavior of the output while waiting for a script trigger or during a wait instruction. The output can be configured to hold the last generated voltage before waiting or jump to the Wait Value. - ''' - wait_value = _attributes.AttributeViInt32(1150380) - '''Type: int - - Specifies the value to generate while waiting. The Wait Behavior must be configured to jump to this value. - ''' - waveform_quantum = _attributes.AttributeViInt32(1250206) - '''Type: int - - The size of each arbitrary waveform must be a multiple of a quantum value. This property returns the quantum value that the signal generator allows. - For example, when this property returns a value of 8, all waveform sizes must be a multiple of 8. Typically, this value is constant for the signal generator. - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - self.script_triggers = _RepeatedCapabilities(self, 'ScriptTrigger', repeated_capability_list) - self.markers = _RepeatedCapabilities(self, 'Marker', repeated_capability_list) - self.data_markers = _RepeatedCapabilities(self, 'DataMarker', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nifgen', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def allocate_named_waveform(self, waveform_name, waveform_size): - r'''allocate_named_waveform - - Specifies the size of a named waveform up front so that it can be - allocated in onboard memory before loading the associated data. Data can - then be loaded in smaller blocks with the niFgen Write (Binary16) - Waveform methods. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].allocate_named_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.allocate_named_waveform` - - Args: - waveform_name (str): Specifies the name to associate with the allocated waveform. - - waveform_size (int): Specifies the size of the waveform to allocate in samples. - - **Default Value**: "4096" - - ''' - self._interpreter.allocate_named_waveform(self._repeated_capability, waveform_name, waveform_size) - - @ivi_synchronized - def allocate_waveform(self, waveform_size): - r'''allocate_waveform - - Specifies the size of a waveform so that it can be allocated in onboard - memory before loading the associated data. Data can then be loaded in - smaller blocks with the Write Binary 16 Waveform methods. - - Note: - The signal generator must not be in the Generating state when you call - this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].allocate_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.allocate_waveform` - - Args: - waveform_size (int): Specifies, in samples, the size of the waveform to allocate. - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - ''' - waveform_handle = self._interpreter.allocate_waveform(self._repeated_capability, waveform_size) - return waveform_handle - - @ivi_synchronized - def clear_user_standard_waveform(self): - r'''clear_user_standard_waveform - - Clears the user-defined waveform created by the - define_user_standard_waveform method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_user_standard_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.clear_user_standard_waveform` - ''' - self._interpreter.clear_user_standard_waveform(self._repeated_capability) - - @ivi_synchronized - def configure_arb_sequence(self, sequence_handle, gain, offset): - r'''configure_arb_sequence - - Configures the signal generator properties that affect arbitrary - sequence generation. Sets the arb_sequence_handle, - arb_gain, and arb_offset properties. - - Note: - The signal generator must not be in the Generating state when you call - this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_arb_sequence` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_arb_sequence` - - Args: - sequence_handle (int): Specifies the handle of the arbitrary sequence that you want the signal - generator to produce. NI-FGEN sets the - arb_sequence_handle property to this value. You can - create an arbitrary sequence using the create_arb_sequence or - create_advanced_arb_sequence method. These methods return a - handle that you use to identify the sequence. - - **Default Value**: None - - gain (float): Specifies the factor by which the signal generator scales the arbitrary - waveforms in the sequence. When you create an arbitrary waveform, you - must first normalize the data points to a range of –1.00 to +1.00. You - can use this parameter to scale the waveform to other ranges. The gain - is applied before the offset is added. - - For example, to configure the output signal to range from –2.00 to - +2.00 V, set **gain** to 2.00. - - **Units**: unitless - - **Default Value**: None - - offset (float): Specifies the value the signal generator adds to the arbitrary waveform - data. When you create arbitrary waveforms, you must first normalize the - data points to a range of –1.00 to +1.00 V. You can use this parameter - to shift the range of the arbitrary waveform. NI-FGEN sets the - arb_offset property to this value. - - For example, to configure the output signal to range from 0.00 to 2.00 V - instead of –1.00 to 1.00 V, set the offset to 1.00. - - **Units**: volts - - **Default Value**: None - - ''' - self._interpreter.configure_arb_sequence(self._repeated_capability, sequence_handle, gain, offset) - - @ivi_synchronized - def configure_arb_waveform(self, waveform_handle, gain, offset): - r'''configure_arb_waveform - - Configures the properties of the signal generator that affect arbitrary - waveform generation. Sets the arb_waveform_handle, - arb_gain, and arb_offset properties. - - Note: - The signal generator must not be in the Generating state when you call - this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_arb_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_arb_waveform` - - Args: - waveform_handle (int): Specifies the handle of the arbitrary waveform you want the signal - generator to produce. NI-FGEN sets the - arb_waveform_handle property to this value. You can - create an arbitrary waveform using one of the following niFgen Create - Waveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - These methods return a handle that you use to identify the waveform. - - **Default Value**: None - - gain (float): Specifies the factor by which the signal generator scales the arbitrary - waveforms in the sequence. When you create an arbitrary waveform, you - must first normalize the data points to a range of –1.00 to +1.00. You - can use this parameter to scale the waveform to other ranges. The gain - is applied before the offset is added. - - For example, to configure the output signal to range from –2.00 to - +2.00 V, set **gain** to 2.00. - - **Units**: unitless - - **Default Value**: None - - offset (float): Specifies the value the signal generator adds to the arbitrary waveform - data. When you create arbitrary waveforms, you must first normalize the - data points to a range of –1.00 to +1.00 V. You can use this parameter - to shift the range of the arbitrary waveform. NI-FGEN sets the - arb_offset property to this value. - - For example, to configure the output signal to range from 0.00 to 2.00 V - instead of –1.00 to 1.00 V, set the offset to 1.00. - - **Units**: volts - - **Default Value**: None - - ''' - self._interpreter.configure_arb_waveform(self._repeated_capability, waveform_handle, gain, offset) - - @ivi_synchronized - def configure_freq_list(self, frequency_list_handle, amplitude, dc_offset=0.0, start_phase=0.0): - r'''configure_freq_list - - Configures the properties of the signal generator that affect frequency - list generation (the freq_list_handle, - func_amplitude, func_dc_offset, and - func_start_phase properties). - - Note: - The signal generator must not be in the Generating state when you call - this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_freq_list` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_freq_list` - - Args: - frequency_list_handle (int): Specifies the handle of the frequency list that you want the signal - generator to produce. NI-FGEN sets the freq_list_handle - property to this value. You can create a frequency list using the - create_freq_list method, which returns a handle that you use to - identify the list. - **Default Value**: None - - amplitude (float): Specifies the amplitude of the standard waveform that you want the - signal generator to produce. This value is the amplitude at the output - terminal. NI-FGEN sets the func_amplitude property to - this value. - - For example, to produce a waveform ranging from –5.00 V to +5.00 V, set - the amplitude to 10.00 V. - - **Units**: peak-to-peak voltage - - **Default Value**: None - - Note: - This parameter does not affect signal generator behavior when you set - the **waveform** parameter of the configure_standard_waveform - method to Waveform.DC. - - dc_offset (float): Specifies the DC offset of the standard waveform that you want the - signal generator to produce. The value is the offset from ground to the - center of the waveform you specify with the **waveform** parameter, - observed at the output terminal. For example, to configure a waveform - with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the - **dcOffset** to 5.00 V. NI-FGEN sets the func_dc_offset - property to this value. - - **Units**: volts - - **Default Value**: None - - start_phase (float): Specifies the horizontal offset of the standard waveform you want the - signal generator to produce. Specify this property in degrees of one - waveform cycle. NI-FGEN sets the func_start_phase - property to this value. A start phase of 180 degrees means output - generation begins halfway through the waveform. A start phase of 360 - degrees offsets the output by an entire waveform cycle, which is - identical to a start phase of 0 degrees. - - **Units**: degrees of one cycle - - **Default Value**: None degrees - - Note: - This parameter does not affect signal generator behavior when you set - the **waveform** parameter to Waveform.DC. - - ''' - self._interpreter.configure_freq_list(self._repeated_capability, frequency_list_handle, amplitude, dc_offset, start_phase) - - @ivi_synchronized - def configure_standard_waveform(self, waveform, amplitude, frequency, dc_offset=0.0, start_phase=0.0): - r'''configure_standard_waveform - - Configures the following properties of the signal generator that affect - standard waveform generation: - - - func_waveform - - func_amplitude - - func_dc_offset - - func_frequency - - func_start_phase - - Note: - You must call the ConfigureOutputMode method with the - **outputMode** parameter set to OutputMode.FUNC before calling - this method. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_standard_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.configure_standard_waveform` - - Args: - waveform (enums.Waveform): Specifies the standard waveform that you want the signal generator to - produce. NI-FGEN sets the func_waveform property to this - value. - - ****Defined Values**** - - **Default Value**: Waveform.SINE - - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.SINE | Specifies that the signal generator produces a sinusoid waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.SQUARE | Specifies that the signal generator produces a square waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.TRIANGLE | Specifies that the signal generator produces a triangle waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.RAMP_UP | Specifies that the signal generator produces a positive ramp waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.RAMP_DOWN | Specifies that the signal generator produces a negative ramp waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.DC | Specifies that the signal generator produces a constant voltage. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.NOISE | Specifies that the signal generator produces white noise. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.USER | Specifies that the signal generator produces a user-defined waveform as defined with the define_user_standard_waveform method. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - - amplitude (float): Specifies the amplitude of the standard waveform that you want the - signal generator to produce. This value is the amplitude at the output - terminal. NI-FGEN sets the func_amplitude property to - this value. - - For example, to produce a waveform ranging from –5.00 V to +5.00 V, set - the amplitude to 10.00 V. - - **Units**: peak-to-peak voltage - - **Default Value**: None - - Note: - This parameter does not affect signal generator behavior when you set - the **waveform** parameter of the configure_standard_waveform - method to Waveform.DC. - - frequency (float): | Specifies the frequency of the standard waveform that you want the - signal generator to produce. NI-FGEN sets the - func_frequency property to this value. - - **Units**: hertz - - **Default Value**: None - - Note: - This parameter does not affect signal generator behavior when you set - the **waveform** parameter of the configure_standard_waveform - method to Waveform.DC. - - dc_offset (float): Specifies the DC offset of the standard waveform that you want the - signal generator to produce. The value is the offset from ground to the - center of the waveform you specify with the **waveform** parameter, - observed at the output terminal. For example, to configure a waveform - with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the - **dcOffset** to 5.00 V. NI-FGEN sets the func_dc_offset - property to this value. - - **Units**: volts - - **Default Value**: None - - start_phase (float): Specifies the horizontal offset of the standard waveform that you want - the signal generator to produce. Specify this parameter in degrees of - one waveform cycle. NI-FGEN sets the func_start_phase - property to this value. A start phase of 180 degrees means output - generation begins halfway through the waveform. A start phase of 360 - degrees offsets the output by an entire waveform cycle, which is - identical to a start phase of 0 degrees. - - **Units**: degrees of one cycle - - **Default Value**: 0.00 - - Note: - This parameter does not affect signal generator behavior when you set - the **waveform** parameter to Waveform.DC. - - ''' - if type(waveform) is not enums.Waveform: - raise TypeError('Parameter waveform must be of type ' + str(enums.Waveform)) - self._interpreter.configure_standard_waveform(self._repeated_capability, waveform, amplitude, dc_offset, frequency, start_phase) - - @ivi_synchronized - def create_waveform(self, waveform_data_array): - '''create_waveform - - Creates an onboard waveform for use in Arbitrary Waveform output mode or Arbitrary Sequence output mode. - - Note: You must set output_mode to OutputMode.ARB or OutputMode.SEQ before calling this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.create_waveform` - - Args: - waveform_data_array (iterable of float or int16): Array of data for the new arbitrary waveform. This may be an iterable of float or int16, or for best performance a numpy.ndarray of dtype int16 or float64. - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used in other methods when referring to this waveform. - - ''' - # Check the type by using string comparison so that we don't import numpy unnecessarily. - if str(type(waveform_data_array)).find("'numpy.ndarray'") != -1: - import numpy - if waveform_data_array.dtype == numpy.float64: - return self._create_waveform_f64_numpy(waveform_data_array) - elif waveform_data_array.dtype == numpy.int16: - return self._create_waveform_i16_numpy(waveform_data_array) - else: - raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(waveform_data_array.dtype, numpy.float64, numpy.int16)) - elif isinstance(waveform_data_array, array.array): - if waveform_data_array.typecode == 'd': - return self._create_waveform_f64(waveform_data_array) - elif waveform_data_array.typecode == 'h': - return self._create_waveform_i16(waveform_data_array) - else: - raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(waveform_data_array.typecode, 'd (double)', 'h (16 bit int)')) - - return self._create_waveform_f64(waveform_data_array) - - @ivi_synchronized - def _create_waveform_f64(self, waveform_data_array): - r'''_create_waveform_f64 - - Creates an onboard waveform from binary F64 (floating point double) data - for use in Arbitrary Waveform output mode or Arbitrary Sequence output - mode. The **waveformHandle** returned can later be used for setting the - active waveform, changing the data in the waveform, building sequences - of waveforms, or deleting the waveform when it is no longer needed. - - Note: - You must call the ConfigureOutputMode method to set the - **outputMode** parameter to OutputMode.ARB or - OutputMode.SEQ before calling this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._create_waveform_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._create_waveform_f64` - - Args: - waveform_data_array (array.array("d")): Specifies the array of data you want to use for the new arbitrary - waveform. The array must have at least as many elements as the value - that you specify in **waveformSize**. - - You must normalize the data points in the array to be between –1.00 and - +1.00. - - **Default Value**: None - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - ''' - waveform_handle = self._interpreter.create_waveform_f64(self._repeated_capability, waveform_data_array) - return waveform_handle - - @ivi_synchronized - def _create_waveform_f64_numpy(self, waveform_data_array): - r'''_create_waveform_f64_numpy - - Creates an onboard waveform from binary F64 (floating point double) data - for use in Arbitrary Waveform output mode or Arbitrary Sequence output - mode. The **waveformHandle** returned can later be used for setting the - active waveform, changing the data in the waveform, building sequences - of waveforms, or deleting the waveform when it is no longer needed. - - Note: - You must call the ConfigureOutputMode method to set the - **outputMode** parameter to OutputMode.ARB or - OutputMode.SEQ before calling this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._create_waveform_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._create_waveform_f64` - - Args: - waveform_data_array (numpy.array(dtype=numpy.float64)): Specifies the array of data you want to use for the new arbitrary - waveform. The array must have at least as many elements as the value - that you specify in **waveformSize**. - - You must normalize the data points in the array to be between –1.00 and - +1.00. - - **Default Value**: None - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('float64'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=float64, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - waveform_handle = self._interpreter.create_waveform_f64_numpy(self._repeated_capability, waveform_data_array) - return waveform_handle - - @ivi_synchronized - def create_waveform_from_file_f64(self, file_name, byte_order): - r'''create_waveform_from_file_f64 - - This method takes the floating point double (F64) data from the - specified file and creates an onboard waveform for use in Arbitrary - Waveform or Arbitrary Sequence output mode. The **waveformHandle** - returned by this method can later be used for setting the active - waveform, changing the data in the waveform, building sequences of - waveforms, or deleting the waveform when it is no longer needed. - - Note: - The F64 data must be between –1.0 and +1.0 V. Use the - digital_gain property to generate different voltage - outputs. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.create_waveform_from_file_f64` - - Args: - file_name (str): The full path and name of the file where the waveform data resides. - - byte_order (enums.ByteOrder): Specifies the byte order of the data in the file. - - ****Defined Values**** - - | - | ****Default Value**:** ByteOrder.LITTLE - - +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | ByteOrder.LITTLE | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | - +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | ByteOrder.BIG | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | - +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - Data written by most applications in Windows (including - LabWindows™/CVI™) is in Little Endian format. Data written to a file - from LabVIEW is in Big Endian format by default on all platforms. Big - Endian and Little Endian refer to the way data is stored in memory, - which can differ on different processors. - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - ''' - if type(byte_order) is not enums.ByteOrder: - raise TypeError('Parameter byte_order must be of type ' + str(enums.ByteOrder)) - waveform_handle = self._interpreter.create_waveform_from_file_f64(self._repeated_capability, file_name, byte_order) - return waveform_handle - - @ivi_synchronized - def create_waveform_from_file_i16(self, file_name, byte_order): - r'''create_waveform_from_file_i16 - - Takes the binary 16-bit signed integer (I16) data from the specified - file and creates an onboard waveform for use in Arbitrary Waveform or - Arbitrary Sequence output mode. The **waveformHandle** returned by this - method can later be used for setting the active waveform, changing the - data in the waveform, building sequences of waveforms, or deleting the - waveform when it is no longer needed. - - Note: - The I16 data (values between –32768 and +32767) is assumed to - represent –1 to +1 V. Use the digital_gain property to - generate different voltage outputs. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_i16` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.create_waveform_from_file_i16` - - Args: - file_name (str): The full path and name of the file where the waveform data resides. - - byte_order (enums.ByteOrder): Specifies the byte order of the data in the file. - - ****Defined Values**** - - | - | ****Default Value**:** ByteOrder.LITTLE - - +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | ByteOrder.LITTLE | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | - +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - | ByteOrder.BIG | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | - +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - Data written by most applications in Windows (including - LabWindows™/CVI™) is in Little Endian format. Data written to a file - from LabVIEW is in Big Endian format by default on all platforms. Big - Endian and Little Endian refer to the way data is stored in memory, - which can differ on different processors. - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - ''' - if type(byte_order) is not enums.ByteOrder: - raise TypeError('Parameter byte_order must be of type ' + str(enums.ByteOrder)) - waveform_handle = self._interpreter.create_waveform_from_file_i16(self._repeated_capability, file_name, byte_order) - return waveform_handle - - @ivi_synchronized - def _create_waveform_i16_numpy(self, waveform_data_array): - r'''_create_waveform_i16_numpy - - Creates an onboard waveform from binary 16-bit signed integer (I16) data - for use in Arbitrary Waveform or Arbitrary Sequence output mode. The - **waveformHandle** returned can later be used for setting the active - waveform, changing the data in the waveform, building sequences of - waveforms, or deleting the waveform when it is no longer needed. - - Note: - You must call the ConfigureOutputMode method to set the - **outputMode** parameter to OutputMode.ARB or - OutputMode.SEQ before calling this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._create_waveform_i16` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._create_waveform_i16` - - Args: - waveform_data_array (numpy.array(dtype=numpy.int16)): Specify the array of data that you want to use for the new arbitrary - waveform. The array must have at least as many elements as the value - that you specify in the Waveform Size parameter. - You must normalize the data points in the array to be between -32768 and - +32767. - ****Default Value**:** None - - - Returns: - waveform_handle (int): The handle that identifies the new waveform. This handle is used later - when referring to this waveform. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('int16'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=int16, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - waveform_handle = self._interpreter.create_waveform_i16_numpy(self._repeated_capability, waveform_data_array) - return waveform_handle - - @ivi_synchronized - def define_user_standard_waveform(self, waveform_data_array): - r'''define_user_standard_waveform - - Defines a user waveform for use in either Standard Method or Frequency - List output mode. - - To select the waveform, set the **waveform** parameter to - Waveform.USER with either the configure_standard_waveform - or the create_freq_list method. - - The waveform data must be scaled between –1.0 and 1.0. Use the - **amplitude** parameter in the configure_standard_waveform - method to generate different output voltages. - - Note: - You must call the ConfigureOutputMode method to set the - **outputMode** parameter to OutputMode.FUNC or - OutputMode.FREQ_LIST before calling this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].define_user_standard_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.define_user_standard_waveform` - - Args: - waveform_data_array (list of float): Specifies the array of data you want to use for the new arbitrary - waveform. The array must have at least as many elements as the value - that you specify in **waveformSize**. - - You must normalize the data points in the array to be between –1.00 and - +1.00. - - **Default Value**: None - - ''' - self._interpreter.define_user_standard_waveform(self._repeated_capability, waveform_data_array) - - @ivi_synchronized - def _delete_named_waveform(self, waveform_name): - r'''_delete_named_waveform - - Removes a previously created arbitrary waveform from the signal - generator memory and invalidates the waveform handle. - - Note: - The signal generator must not be in the Generating state when you call - this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._delete_named_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._delete_named_waveform` - - Args: - waveform_name (str): Specifies the name to associate with the allocated waveform. - - ''' - self._interpreter.delete_named_waveform(self._repeated_capability, waveform_name) - - @ivi_synchronized - def delete_script(self, script_name): - r'''delete_script - - Deletes the specified script from onboard memory. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].delete_script` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.delete_script` - - Args: - script_name (str): Specifies the name of the script you want to delete. The script name - appears in the text of the script following the script keyword. - - ''' - self._interpreter.delete_script(self._repeated_capability, script_name) - - @ivi_synchronized - def delete_waveform(self, waveform_name_or_handle): - '''delete_waveform - - Removes a previously created arbitrary waveform from the signal generator memory. - - Note: The signal generator must not be in the Generating state when you call this method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].delete_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.delete_waveform` - - Args: - waveform_name_or_handle (str or int): The name (str) or handle (int) of an arbitrary waveform previously allocated with allocate_named_waveform, allocate_waveform or create_waveform. - - ''' - if isinstance(waveform_name_or_handle, str): - return self._delete_named_waveform(waveform_name_or_handle) - else: - return self._clear_arb_waveform(waveform_name_or_handle) - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. - - You can use this method to get the values of instrument-specific - properties and inherent IVI properties. If the property represents an - instrument state, this method performs instrument I/O in the following - cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): Specifies the ID of a property. - - - Returns: - attribute_value (bool): Returns the current value of the property. Pass the address of a - ViBoolean variable. - - ''' - attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. If the property represents an instrument state, this - method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): Specifies the ID of a property. - - - Returns: - attribute_value (int): Returns the current value of the property. Pass the address of a - ViInt32 variable. - - ''' - attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - Queries the value of a ViReal64 property. - - You can use this method to get the values of instrument-specific - properties and inherent IVI properties. If the property represents an - instrument state, this method performs instrument I/O in the following - cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): Specifies the ID of a property. - - - Returns: - attribute_value (float): Returns the current value of the property. Pass the address of a - ViReal64 variable. - - ''' - attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - Queries the value of a ViString property. - - You can use this method to get the values of instrument-specific - properties and inherent IVI properties. If the property represents an - instrument state, this method performs instrument I/O in the following - cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - You must provide a ViChar array to serve as a buffer for the value. You - pass the number of bytes in the buffer as the **arraySize** parameter. - If the current value of the property, including the terminating NUL - byte, is larger than the size you indicate in the **arraySize** - parameter, the method copies **arraySize** – 1 bytes into the buffer, - places an ASCII NUL byte at the end of the buffer, and returns the array - size you must pass to get the entire value. For example, if the value is - 123456 and **arraySize** is 4, the method places 123 into the buffer - and returns 7. - - If you want to call this method just to get the required array size, - you can pass 0 for **arraySize** and VI_NULL for the **attributeValue** - buffer. - - If you want the method to fill in the buffer regardless of the number - of bytes in the value, pass a negative number for the **arraySize** - parameter. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): Specifies the ID of a property. - - - Returns: - attribute_value (str): The buffer in which the method returns the current value of the - property. The buffer must be a ViChar data type and have at least as - many bytes as indicated in the **arraySize** parameter. - - If the current value of the property, including the terminating NUL - byte, contains more bytes than you indicate in this parameter, the - method copies **arraySize** – 1 bytes into the buffer, places an ASCII - NUL byte at the end of the buffer, and returns the array size you must - pass to get the entire value. For example, if the value is 123456 and - **arraySize** is 4, the method places 123 into the buffer and returns - 7. - - If you specify 0 for the **arraySize** parameter, you can pass VI_NULL - for this parameter. - - ''' - attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return attribute_value - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-FGEN locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nifgen.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def send_software_edge_trigger(self, trigger=None, trigger_id=None): - '''send_software_edge_trigger - - Sends a command to trigger the signal generator. This VI can act as an - override for an external edge trigger. - - Note: - This VI does not override external digital edge triggers of the - NI 5401/5411/5431. - - Args: - trigger (enums.Trigger): Trigger specifies the type of software trigger to send - - +----------------+ - | Defined Values | - +================+ - | Trigger.START | - +----------------+ - | Trigger.SCRIPT | - +----------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - trigger_id (str): Trigger ID specifies the Script Trigger to use for triggering. - - ''' - if trigger is None or trigger_id is None: - import warnings - warnings.warn('trigger and trigger_id should now always be passed in to the method', category=DeprecationWarning) - - # We look at whether we are called directly on the session or a repeated capability container to determine how to behave - if len(self._repeated_capability) > 0: - trigger_id = self._repeated_capability - trigger = enums.Trigger.SCRIPT - else: - trigger_id = "None" - trigger = enums.Trigger.START - - elif trigger is not None and trigger_id is not None: - pass # This is how the function should be called - - else: - raise ValueError('Both trigger ({}) and trigger_id ({}) should be passed in to the method'.format(str(trigger), str(trigger_id))) - - if type(trigger) is not enums.Trigger: - raise TypeError('Parameter trigger must be of type ' + str(enums.Trigger)) - self._interpreter.send_software_edge_trigger(trigger, trigger_id) - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, attribute_value): - r'''_set_attribute_vi_boolean - - Sets the value of a ViBoolean property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - NI-FGEN contains high-level methods that set most of the instrument - properties. NI recommends that you use the high-level driver methods - as much as possible. They handle order dependencies and multithread - locking for you. In addition, they perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. - - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): Specifies the ID of a property. - - attribute_value (bool): Specifies the value to which you want to set the property. **Default - Value**: None - - Note: - Some of the values might not be valid depending on the current - settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int32 - - Sets the value of a ViInt32 property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - NI-FGEN contains high-level methods that set most of the instrument - properties. NI recommends that you use the high-level driver methods - as much as possible. They handle order dependencies and multithread - locking for you. In addition, they perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. - - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): Specifies the ID of a property. - - attribute_value (int): Specifies the value to which you want to set the property. **Default - Value**: None - - Note: - Some of the values might not be valid depending on the current - settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_real64 - - Sets the value of a ViReal64 property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - NI-FGEN contains high-level methods that set most of the instrument - properties. NI recommends that you use the high-level driver methods - as much as possible. They handle order dependencies and multithread - locking for you. In addition, they perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. - - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): Specifies the ID of a property. - - attribute_value (float): Specifies the value to which you want to set the property. **Default - Value**: None - - Note: - Some of the values might not be valid depending on the current - settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, attribute_value): - r'''_set_attribute_vi_string - - Sets the value of a ViString property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - NI-FGEN contains high-level methods that set most of the instrument - properties. NI recommends that you use the high-level driver methods - as much as possible. They handle order dependencies and multithread - locking for you. In addition, they perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. - - Also, when state caching is enabled, the high-level methods that - configure multiple properties perform instrument I/O only for the - properties whose value you change. Thus, you can safely call the - high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Specifies the ID of a property. - - attribute_value (str): Specifies the value to which you want to set the property. **Default - Value**: None - - Note: - Some of the values might not be valid depending on the current - settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_named_waveform_next_write_position(self, waveform_name, relative_to, offset): - r'''_set_named_waveform_next_write_position - - Sets the position in the waveform to which data is written at the next - write. This method allows you to write to arbitrary locations within - the waveform. These settings apply only to the next write to the - waveform specified by the **waveformHandle** parameter. Subsequent - writes to that waveform begin where the last write left off, unless this - method is called again. The **waveformHandle** passed in must have - been created with a call to one of the following methods: - - - allocate_waveform - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_named_waveform_next_write_position` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._set_named_waveform_next_write_position` - - Args: - waveform_name (str): Specifies the name to associate with the allocated waveform. - - relative_to (enums.RelativeTo): Specifies the reference position in the waveform. This position and - **offset** together determine where to start loading data into the - waveform. - - ****Defined Values**** - - +------------------------+-------------------------------------------------------------------------+ - | RelativeTo.START (0) | Use the start of the waveform as the reference position. | - +------------------------+-------------------------------------------------------------------------+ - | RelativeTo.CURRENT (1) | Use the current position within the waveform as the reference position. | - +------------------------+-------------------------------------------------------------------------+ - - offset (int): Specifies the offset from the **relativeTo** parameter at which to start - loading the data into the waveform. - - ''' - if type(relative_to) is not enums.RelativeTo: - raise TypeError('Parameter relative_to must be of type ' + str(enums.RelativeTo)) - self._interpreter.set_named_waveform_next_write_position(self._repeated_capability, waveform_name, relative_to, offset) - - @ivi_synchronized - def set_next_write_position(self, waveform_name_or_handle, relative_to, offset): - '''set_next_write_position - - Sets the position in the waveform at which the next waveform data is - written. This method allows you to write to arbitrary locations within - the waveform. These settings apply only to the next write to the - waveform specified by the waveformHandle parameter. Subsequent writes to - that waveform begin where the last write left off, unless this method - is called again. The waveformHandle passed in must have been created by - a call to the allocate_waveform method or one of the following - create_waveform method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].set_next_write_position` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.set_next_write_position` - - Args: - waveform_name_or_handle (str or int): The name (str) or handle (int) of an arbitrary waveform previously allocated with allocate_named_waveform, allocate_waveform or create_waveform. - - relative_to (enums.RelativeTo): Specifies the reference position in the waveform. This position and - **offset** together determine where to start loading data into the - waveform. - - ****Defined Values**** - - +------------------------+-------------------------------------------------------------------------+ - | RelativeTo.START (0) | Use the start of the waveform as the reference position. | - +------------------------+-------------------------------------------------------------------------+ - | RelativeTo.CURRENT (1) | Use the current position within the waveform as the reference position. | - +------------------------+-------------------------------------------------------------------------+ - - offset (int): Specifies the offset from **relativeTo** at which to start loading the - data into the waveform. - - ''' - if isinstance(waveform_name_or_handle, str): - return self._set_named_waveform_next_write_position(waveform_name_or_handle, relative_to, offset) - else: - return self._set_waveform_next_write_position(waveform_name_or_handle, relative_to, offset) - - @ivi_synchronized - def _set_waveform_next_write_position(self, waveform_handle, relative_to, offset): - r'''_set_waveform_next_write_position - - Sets the position in the waveform at which the next waveform data is - written. This method allows you to write to arbitrary locations within - the waveform. These settings apply only to the next write to the - waveform specified by the waveformHandle parameter. Subsequent writes to - that waveform begin where the last write left off, unless this method - is called again. The waveformHandle passed in must have been created by - a call to the allocate_waveform method or one of the following - niFgen CreateWaveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_waveform_next_write_position` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._set_waveform_next_write_position` - - Args: - waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with - the allocate_waveform method. - - relative_to (enums.RelativeTo): Specifies the reference position in the waveform. This position and - **offset** together determine where to start loading data into the - waveform. - - ****Defined Values**** - - +------------------------+-------------------------------------------------------------------------+ - | RelativeTo.START (0) | Use the start of the waveform as the reference position. | - +------------------------+-------------------------------------------------------------------------+ - | RelativeTo.CURRENT (1) | Use the current position within the waveform as the reference position. | - +------------------------+-------------------------------------------------------------------------+ - - offset (int): Specifies the offset from **relativeTo** at which to start loading the - data into the waveform. - - ''' - if type(relative_to) is not enums.RelativeTo: - raise TypeError('Parameter relative_to must be of type ' + str(enums.RelativeTo)) - self._interpreter.set_waveform_next_write_position(self._repeated_capability, waveform_handle, relative_to, offset) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - @ivi_synchronized - def _write_binary16_waveform_numpy(self, waveform_handle, data): - r'''_write_binary16_waveform_numpy - - Writes binary data to the waveform in onboard memory. The waveform - handle passed must have been created by a call to the - allocate_waveform or the create_waveform method. - - By default, the subsequent call to the write_waveform - method continues writing data from the position of the last sample - written. You can set the write position and offset by calling the - set_next_write_position method. If streaming is enabled, - you can write more data than the allocated waveform size in onboard - memory. Refer to the - `Streaming `__ topic for more - information about streaming data. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._write_binary16_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._write_binary16_waveform` - - Args: - waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with - the allocate_waveform method. - - data (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. The array must - have at least as many elements as the value in **size**. The binary data - is left-justified. - - ''' - import numpy - - if type(data) is not numpy.ndarray: - raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) - if numpy.isfortran(data) is True: - raise TypeError('data must be in C-order') - if data.dtype is not numpy.dtype('int16'): - raise TypeError('data must be numpy.ndarray of dtype=int16, is ' + str(data.dtype)) - if data.ndim != 1: - raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) - self._interpreter.write_binary16_waveform_numpy(self._repeated_capability, waveform_handle, data) - - @ivi_synchronized - def _write_named_waveform_f64(self, waveform_name, data): - r'''_write_named_waveform_f64 - - Writes floating-point data to the waveform in onboard memory. The - waveform handle passed in must have been created by a call to the - allocate_waveform method or to one of the following niFgen - Create Waveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - By default, the subsequent call to the write_waveform - method continues writing data from the position of the last sample - written. You can set the write position and offset by calling the - set_next_write_position method. If streaming is - enabled, you can write more data than the allocated waveform size in - onboard memory. Refer to the - `Streaming `__ topic for more - information about streaming data. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._write_named_waveform_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._write_named_waveform_f64` - - Args: - waveform_name (str): Specifies the name to associate with the allocated waveform. - - data (array.array("d")): Specifies the array of data to load into the waveform. The array must - have at least as many elements as the value in **size**. - - ''' - self._interpreter.write_named_waveform_f64(self._repeated_capability, waveform_name, data) - - @ivi_synchronized - def _write_named_waveform_f64_numpy(self, waveform_name, data): - r'''_write_named_waveform_f64_numpy - - Writes floating-point data to the waveform in onboard memory. The - waveform handle passed in must have been created by a call to the - allocate_waveform method or to one of the following niFgen - Create Waveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - By default, the subsequent call to the write_waveform - method continues writing data from the position of the last sample - written. You can set the write position and offset by calling the - set_next_write_position method. If streaming is - enabled, you can write more data than the allocated waveform size in - onboard memory. Refer to the - `Streaming `__ topic for more - information about streaming data. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._write_named_waveform_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._write_named_waveform_f64` - - Args: - waveform_name (str): Specifies the name to associate with the allocated waveform. - - data (numpy.array(dtype=numpy.float64)): Specifies the array of data to load into the waveform. The array must - have at least as many elements as the value in **size**. - - ''' - import numpy - - if type(data) is not numpy.ndarray: - raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) - if numpy.isfortran(data) is True: - raise TypeError('data must be in C-order') - if data.dtype is not numpy.dtype('float64'): - raise TypeError('data must be numpy.ndarray of dtype=float64, is ' + str(data.dtype)) - if data.ndim != 1: - raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) - self._interpreter.write_named_waveform_f64_numpy(self._repeated_capability, waveform_name, data) - - @ivi_synchronized - def _write_named_waveform_i16_numpy(self, waveform_name, data): - r'''_write_named_waveform_i16_numpy - - Writes binary data to the named waveform in onboard memory. - - By default, the subsequent call to the write_waveform - method continues writing data from the position of the last sample - written. You can set the write position and offset by calling the - set_next_write_position method. If streaming is - enabled, you can write more data than the allocated waveform size in - onboard memory. Refer to the - `Streaming `__ topic for more - information about streaming data. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._write_named_waveform_i16` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._write_named_waveform_i16` - - Args: - waveform_name (str): Specifies the name to associate with the allocated waveform. - - data (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. The array must - have at least as many elements as the value in **size**. - - ''' - import numpy - - if type(data) is not numpy.ndarray: - raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) - if numpy.isfortran(data) is True: - raise TypeError('data must be in C-order') - if data.dtype is not numpy.dtype('int16'): - raise TypeError('data must be numpy.ndarray of dtype=int16, is ' + str(data.dtype)) - if data.ndim != 1: - raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) - self._interpreter.write_named_waveform_i16_numpy(self._repeated_capability, waveform_name, data) - - @ivi_synchronized - def write_script(self, script): - r'''write_script - - Writes a string containing one or more scripts that govern the - generation of waveforms. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].write_script` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.write_script` - - Args: - script (str): Contains the text of the script you want to use for your generation - operation. Refer to `scripting - Instructions `__ - for more information about writing scripts. - - ''' - self._interpreter.write_script(self._repeated_capability, script) - - @ivi_synchronized - def _write_waveform(self, waveform_handle, data): - r'''_write_waveform - - Writes floating-point data to the waveform in onboard memory. The - waveform handle passed in must have been created by a call to the - allocate_waveform method or one of the following niFgen - CreateWaveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - By default, the subsequent call to the write_waveform method - continues writing data from the position of the last sample written. You - can set the write position and offset by calling the - set_next_write_position method. If streaming is enabled, - you can write more data than the allocated waveform size in onboard - memory. Refer to the - `Streaming `__ topic for more - information about streaming data. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._write_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._write_waveform` - - Args: - waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with - the allocate_waveform method. - - data (array.array("d")): Specifies the array of data to load into the waveform. The array must - have at least as many elements as the value in **size**. - - ''' - self._interpreter.write_waveform(self._repeated_capability, waveform_handle, data) - - @ivi_synchronized - def _write_waveform_numpy(self, waveform_handle, data): - r'''_write_waveform_numpy - - Writes floating-point data to the waveform in onboard memory. The - waveform handle passed in must have been created by a call to the - allocate_waveform method or one of the following niFgen - CreateWaveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - By default, the subsequent call to the write_waveform method - continues writing data from the position of the last sample written. You - can set the write position and offset by calling the - set_next_write_position method. If streaming is enabled, - you can write more data than the allocated waveform size in onboard - memory. Refer to the - `Streaming `__ topic for more - information about streaming data. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._write_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session._write_waveform` - - Args: - waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with - the allocate_waveform method. - - data (numpy.array(dtype=numpy.float64)): Specifies the array of data to load into the waveform. The array must - have at least as many elements as the value in **size**. - - ''' - import numpy - - if type(data) is not numpy.ndarray: - raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) - if numpy.isfortran(data) is True: - raise TypeError('data must be in C-order') - if data.dtype is not numpy.dtype('float64'): - raise TypeError('data must be numpy.ndarray of dtype=float64, is ' + str(data.dtype)) - if data.ndim != 1: - raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) - self._interpreter.write_waveform_numpy(self._repeated_capability, waveform_handle, data) - - @ivi_synchronized - def write_waveform(self, waveform_name_or_handle, data): - '''write_waveform - - Writes data to the waveform in onboard memory. - - By default, subsequent calls to this method - continue writing data from the position of the last sample written. You - can set the write position and offset by calling the set_next_write_position - set_next_write_position method. - - Tip: - This method can be called on specific channels within your :py:class:`nifgen.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].write_waveform` - - To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. - - Example: :py:meth:`my_session.write_waveform` - - Args: - waveform_name_or_handle (str or int): The name (str) or handle (int) of an arbitrary waveform previously allocated with allocate_named_waveform, allocate_waveform or create_waveform. - - data (list of float): Array of data to load into the waveform. This may be an iterable of float, or for best performance a numpy.ndarray of dtype int16 or float64. - - ''' - use_named = isinstance(waveform_name_or_handle, str) - # Check the type by using string comparison so that we don't import numpy unnecessarily. - if str(type(data)).find("'numpy.ndarray'") != -1: - import numpy - if data.dtype == numpy.float64: - return self._write_named_waveform_f64_numpy(waveform_name_or_handle, data) if use_named else self._write_waveform_numpy(waveform_name_or_handle, data) - elif data.dtype == numpy.int16: - return self._write_named_waveform_i16_numpy(waveform_name_or_handle, data) if use_named else self._write_binary16_waveform_numpy(waveform_name_or_handle, data) - else: - raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(data.dtype, numpy.float64, numpy.int16)) - elif isinstance(data, array.array): - if data.typecode == 'd': - return self._write_named_waveform_f64(waveform_name_or_handle, data) if use_named else self._write_waveform(waveform_name_or_handle, data) - elif data.typecode == 'h': - return self._write_named_waveform_i16(waveform_name_or_handle, data) if use_named else self._write_binary16_waveform(waveform_name_or_handle, data) - else: - raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(data.typecode, 'd (double)', 'h (16 bit int)')) - - return self._write_named_waveform_f64(waveform_name_or_handle, data) if use_named else self._write_waveform(waveform_name_or_handle, data) - - def _error_message(self, error_code): - r'''_error_message - - Converts a status code returned by an NI-FGEN method into a - user-readable string. - - Args: - error_code (int): Specifies the **status** parameter that is returned from any of the - NI-FGEN methods. - - **Default Value**: 0 (VI_SUCCESS) - - - Returns: - error_message (str): Returns the error message string read from the instrument error message - queue. - - You must pass a ViChar array with at least 256 bytes. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-FGEN session to an NI signal generator.''' - - def __init__(self, resource_name, channel_name=None, reset_device=False, options={}, *, grpc_options=None): - r'''An NI-FGEN session to an NI signal generator. - - Creates and returns a new NI-FGEN session to the specified channel of a - waveform generator that is used in all subsequent NI-FGEN method - calls. - - Args: - resource_name (str): Caution: - Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. - However, all IVI names, such as logical names, are case-sensitive. If - you use logical names, driver session names, or virtual names in your - program, you must ensure that the name you use matches the name in the - IVI Configuration Store file exactly, without any variations in the case - of the characters. - - | Specifies the resource name of the device to initialize. - - For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is - the device number assigned by MAX, as shown in Example 1. - - For NI-DAQmx devices, the syntax is just the device name specified in - MAX, as shown in Example 2. Typical default names for NI-DAQmx devices - in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by - right-clicking on the name in MAX and entering a new name. - - An alternate syntax for NI-DAQmx devices consists of DAQ::\ *NI-DAQmx - device name*, as shown in Example 3. This naming convention allows for - the use of an NI-DAQmx device in an application that was originally - designed for a Traditional NI-DAQ device. For example, if the - application expects DAQ::1, you can rename the NI-DAQmx device to 1 in - MAX and pass in DAQ::1 for the resource name, as shown in Example 4. - - If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already - exists with that same name, the NI-DAQmx device is matched first. - - You can also pass in the name of an IVI logical name or an IVI virtual - name configured with the IVI Configuration utility, as shown in Example - 5. A logical name identifies a particular virtual instrument. A virtual - name identifies a specific device and specifies the initial settings for - the session. - - +-----------+--------------------------------------+------------------------+---------------------------------+ - | Example # | Device Type | Syntax | Variable | - +===========+======================================+========================+=================================+ - | 1 | Traditional NI-DAQ device | DAQ::\ *1* | (*1* = device number) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 2 | NI-DAQmx device | *myDAQmxDevice* | (*myDAQmxDevice* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 3 | NI-DAQmx device | DAQ::\ *myDAQmxDevice* | (*myDAQmxDevice* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 4 | NI-DAQmx device | DAQ::\ *2* | (*2* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 5 | IVI logical name or IVI virtual name | *myLogicalName* | (*myLogicalName* = name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - - channel_name (str, list, range, tuple): Specifies the channel that this VI uses. - - **Default Value**: "0" - - reset_device (bool): Specifies whether you want to reset the device during the initialization - procedure. True specifies that the device is reset and performs the - same method as the Reset method. - - ****Defined Values**** - - **Default Value**: False - - +-------+---------------------+ - | True | Reset device | - +-------+---------------------+ - | False | Do not reset device | - +-------+---------------------+ - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - grpc_options (nifgen.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - session (nifgen.Session): A session object representing the device. - - ''' - if grpc_options: - import nifgen._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - channel_name = _converters.convert_repeated_capabilities_without_prefix(channel_name) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _initialize_with_channels fails, the error handler can reference it. - # And then here, once _initialize_with_channels succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._initialize_with_channels(resource_name, channel_name, reset_device, options)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-FGEN', grpc_options.grpc_channel, connected) - - # NI-TClk does not work over NI gRPC Device Server - if not grpc_options: - self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("channel_name=" + pp.pformat(channel_name)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Initiates signal generation. If you want to abort signal generation, - call the abort method. After the signal generation - is aborted, you can call the initiate method to - cause the signal generator to produce a signal again. - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Generation(self) - - def close(self): - '''close - - Performs the following operations: - - - Closes the instrument I/O session. - - Destroys the NI-FGEN session and all of its properties. - - Deallocates any memory resources NI-FGEN uses. - - Not all signal routes established by calling the ExportSignal - and RouteSignalOut methods are released when the NI-FGEN - session is closed. The following table shows what happens to a signal - route on your device when you call the _close method. - - +--------------------+-------------------+------------------+ - | Routes To | NI 5401/5411/5431 | Other Devices | - +====================+===================+==================+ - | Front Panel | Remain connected | Remain connected | - +--------------------+-------------------+------------------+ - | RTSI/PXI Backplane | Remain connected | Disconnected | - +--------------------+-------------------+------------------+ - - Note: - After calling _close, you cannot use NI-FGEN again until you - call the init or InitWithOptions methods. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Aborts any previously initiated signal generation. Call the - initiate method to cause the signal generator to - produce a signal again. - ''' - self._interpreter.abort() - - @ivi_synchronized - def clear_arb_memory(self): - r'''clear_arb_memory - - Removes all previously created arbitrary waveforms, sequences, and - scripts from the signal generator memory and invalidates all waveform - handles, sequence handles, and waveform names. - - Note: - The signal generator must not be in the Generating state when you - call this method. - ''' - self._interpreter.clear_arb_memory() - - @ivi_synchronized - def clear_arb_sequence(self, sequence_handle): - r'''clear_arb_sequence - - Removes a previously created arbitrary sequence from the signal - generator memory and invalidates the sequence handle. - - Note: - The signal generator must not be in the Generating state when you - call this method. - - Args: - sequence_handle (int): Specifies the handle of the arbitrary sequence that you want the signal - generator to remove. You can create an arbitrary sequence using the - create_arb_sequence or create_advanced_arb_sequence method. - These methods return a handle that you use to identify the sequence. - - | **Defined Value**: - | NIFGEN_VAL_ALL_SEQUENCES—Remove all sequences from the signal - generator - - **Default Value**: None - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - self._interpreter.clear_arb_sequence(sequence_handle) - - @ivi_synchronized - def _clear_arb_waveform(self, waveform_handle): - r'''_clear_arb_waveform - - Removes a previously created arbitrary waveform from the signal - generator memory and invalidates the waveform handle. - - Note: - The signal generator must not be in the Generating state when you - call this method. - - Args: - waveform_handle (int): Specifies the handle of the arbitrary waveform that you want the signal - generator to remove. - - You can create multiple arbitrary waveforms using one of the following - niFgen Create Waveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - **Defined Value**: - - NIFGEN_VAL_ALL_WAVEFORMS—Remove all waveforms from the signal - generator. - - **Default Value**: None - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - self._interpreter.clear_arb_waveform(waveform_handle) - - @ivi_synchronized - def clear_freq_list(self, frequency_list_handle): - r'''clear_freq_list - - Removes a previously created frequency list from the signal generator - memory and invalidates the frequency list handle. - - Note: - The signal generator must not be in the Generating state when you - call this method. - - Args: - frequency_list_handle (int): Specifies the handle of the frequency list you want the signal generator - to remove. You create multiple frequency lists using - create_freq_list. create_freq_list returns a handle that you - use to identify each list. Specify a value of -1 to clear all frequency - lists. - - **Defined Value** - - NIFGEN_VAL_ALL_FLISTS—Remove all frequency lists from the signal - generator. - - **Default Value**: None - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - self._interpreter.clear_freq_list(frequency_list_handle) - - @ivi_synchronized - def commit(self): - r'''commit - - Causes a transition to the Committed state. This method verifies - property values, reserves the device, and commits the property values - to the device. If the property values are all valid, NI-FGEN sets the - device hardware configuration to match the session configuration. This - method does not support the NI 5401/5404/5411/5431 signal generators. - - In the Committed state, you can load waveforms, scripts, and sequences - into memory. If any properties are changed, NI-FGEN implicitly - transitions back to the Idle state, where you can program all session - properties before applying them to the device. This method has no - effect if the device is already in the Committed or Generating state and - returns a successful status value. - - Calling this VI before the niFgen Initiate Generation VI is optional but - has the following benefits: - - - Routes are committed, so signals are exported or imported. - - Any Reference Clock and external clock circuits are phase-locked. - - A subsequent initiate method can run faster - because the device is already configured. - ''' - self._interpreter.commit() - - @ivi_synchronized - def create_advanced_arb_sequence(self, waveform_handles_array, loop_counts_array, sample_counts_array=None, marker_location_array=None): - r'''create_advanced_arb_sequence - - Creates an arbitrary sequence from an array of waveform handles and an - array of corresponding loop counts. This method returns a handle that - identifies the sequence. You pass this handle to the - configure_arb_sequence method to specify what arbitrary sequence - you want the signal generator to produce. - - The create_advanced_arb_sequence method extends on the - create_arb_sequence method by adding the ability to set the - number of samples in each sequence step and to set marker locations. - - An arbitrary sequence consists of multiple waveforms. For each waveform, - you specify the number of times the signal generator produces the - waveform before proceeding to the next waveform. The number of times to - repeat a specific waveform is called the loop count. - - Note: - The signal generator must not be in the Generating state when you call - this method. - You must call the ConfigureOutputMode method to set the - **outputMode** parameter to OutputMode.SEQ before calling this - method. - - Args: - waveform_handles_array (list of int): Specifies the array of waveform handles from which you want to create a - new arbitrary sequence. The array must have at least as many elements as - the value that you specify in **sequenceLength**. Each - **waveformHandlesArray** element has a corresponding **loopCountsArray** - element that indicates how many times that waveform is repeated. You - obtain waveform handles when you create arbitrary waveforms with the - allocate_waveform method or one of the following niFgen - CreateWaveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - **Default Value**: None - - loop_counts_array (list of int): Specifies the array of loop counts you want to use to create a new - arbitrary sequence. The array must have at least as many elements as the - value that you specify in the **sequenceLength** parameter. Each - **loopCountsArray** element corresponds to a **waveformHandlesArray** - element and indicates how many times to repeat that waveform. Each - element of the **loopCountsArray** must be less than or equal to the - maximum number of loop counts that the signal generator allows. You can - obtain the maximum loop count from **maximumLoopCount** in the - query_arb_seq_capabilities method. - - **Default Value**: None - - sample_counts_array (list of int): Specifies the array of sample counts that you want to use to create a - new arbitrary sequence. The array must have at least as many elements as - the value you specify in the **sequenceLength** parameter. Each - **sampleCountsArray** element corresponds to a **waveformHandlesArray** - element and indicates the subset, in samples, of the given waveform to - generate. Each element of the **sampleCountsArray** must be larger than - the minimum waveform size, a multiple of the waveform quantum and no - larger than the number of samples in the corresponding waveform. You can - obtain these values by calling the query_arb_wfm_capabilities - method. - - **Default Value**: None - - marker_location_array (list of int): Specifies the array of marker locations to where you want a marker to be - generated in the sequence. The array must have at least as many elements - as the value you specify in the **sequenceLength** parameter. Each - **markerLocationArray** element corresponds to a - **waveformHandlesArray** element and indicates where in the waveform a - marker is to generate. The marker location must be less than the size of - the waveform the marker is in. The markers are coerced to the nearest - marker quantum and the coerced values are returned in the - **coercedMarkersArray** parameter. - - If you do not want a marker generated for a particular sequence stage, - set this parameter to NIFGEN_VAL_NO_MARKER. - - **Defined Value**: NIFGEN_VAL_NO_MARKER - - **Default Value**: None - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - coerced_markers_array (list of int): Returns an array of all given markers that are coerced (rounded) to the - nearest marker quantum. Not all devices coerce markers. - - **Default Value**: None - - sequence_handle (int): Returns the handle that identifies the new arbitrary sequence. You can - pass this handle to configure_arb_sequence to generate the - arbitrary sequence. - - ''' - if loop_counts_array is not None and len(loop_counts_array) != len(waveform_handles_array): # case S160 - raise ValueError("Length of loop_counts_array and waveform_handles_array parameters do not match.") # case S160 - if sample_counts_array is not None and len(sample_counts_array) != len(waveform_handles_array): # case S160 - raise ValueError("Length of sample_counts_array and waveform_handles_array parameters do not match.") # case S160 - if marker_location_array is not None and len(marker_location_array) != len(waveform_handles_array): # case S160 - raise ValueError("Length of marker_location_array and waveform_handles_array parameters do not match.") # case S160 - coerced_markers_array, sequence_handle = self._interpreter.create_advanced_arb_sequence(waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array) - return coerced_markers_array, sequence_handle - - @ivi_synchronized - def create_arb_sequence(self, waveform_handles_array, loop_counts_array): - r'''create_arb_sequence - - Creates an arbitrary sequence from an array of waveform handles and an - array of corresponding loop counts. This method returns a handle that - identifies the sequence. You pass this handle to the - configure_arb_sequence method to specify what arbitrary sequence - you want the signal generator to produce. - - An arbitrary sequence consists of multiple waveforms. For each waveform, - you can specify the number of times that the signal generator produces - the waveform before proceeding to the next waveform. The number of times - to repeat a specific waveform is called the loop count. - - Note: - You must call the ConfigureOutputMode method to set the - **outputMode** parameter to OutputMode.SEQ before calling this - method. - - Args: - waveform_handles_array (list of int): Specifies the array of waveform handles from which you want to create a - new arbitrary sequence. The array must have at least as many elements as - the value that you specify in **sequenceLength**. Each - **waveformHandlesArray** element has a corresponding **loopCountsArray** - element that indicates how many times that waveform is repeated. You - obtain waveform handles when you create arbitrary waveforms with the - allocate_waveform method or one of the following niFgen - CreateWaveform methods: - - - create_waveform - - create_waveform - - create_waveform_from_file_i16 - - create_waveform_from_file_f64 - - **Default Value**: None - - loop_counts_array (list of int): Specifies the array of loop counts you want to use to create a new - arbitrary sequence. The array must have at least as many elements as the - value that you specify in the **sequenceLength** parameter. Each - **loopCountsArray** element corresponds to a **waveformHandlesArray** - element and indicates how many times to repeat that waveform. Each - element of the **loopCountsArray** must be less than or equal to the - maximum number of loop counts that the signal generator allows. You can - obtain the maximum loop count from **maximumLoopCount** in the - query_arb_seq_capabilities method. - - **Default Value**: None - - - Returns: - sequence_handle (int): Returns the handle that identifies the new arbitrary sequence. You can - pass this handle to configure_arb_sequence to generate the - arbitrary sequence. - - ''' - if loop_counts_array is not None and len(loop_counts_array) != len(waveform_handles_array): # case S160 - raise ValueError("Length of loop_counts_array and waveform_handles_array parameters do not match.") # case S160 - sequence_handle = self._interpreter.create_arb_sequence(waveform_handles_array, loop_counts_array) - return sequence_handle - - @ivi_synchronized - def create_freq_list(self, waveform, frequency_array, duration_array): - r'''create_freq_list - - Creates a frequency list from an array of frequencies - (**frequencyArray**) and an array of durations (**durationArray**). The - two arrays should have the same number of elements, and this value must - also be the size of the **frequencyListLength**. The method returns a - handle that identifies the frequency list (the **frequencyListHandle**). - You can pass this handle to configure_freq_list to specify what - frequency list you want the signal generator to produce. - - A frequency list consists of a list of frequencies and durations. The - signal generator generates each frequency for the given amount of time - and then proceeds to the next frequency. When the end of the list is - reached, the signal generator starts over at the beginning of the list. - - Note: - The signal generator must not be in the Generating state when you call - this method. - - Args: - waveform (enums.Waveform): Specifies the standard waveform that you want the signal generator to - produce. NI-FGEN sets the func_waveform property to this - value. - - ****Defined Values**** - - **Default Value**: Waveform.SINE - - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.SINE | Specifies that the signal generator produces a sinusoid waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.SQUARE | Specifies that the signal generator produces a square waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.TRIANGLE | Specifies that the signal generator produces a triangle waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.RAMP_UP | Specifies that the signal generator produces a positive ramp waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.RAMP_DOWN | Specifies that the signal generator produces a negative ramp waveform. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.DC | Specifies that the signal generator produces a constant voltage. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.NOISE | Specifies that the signal generator produces white noise. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - | Waveform.USER | Specifies that the signal generator produces a user-defined waveform as defined with the define_user_standard_waveform method. | - +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ - - frequency_array (list of float): Specifies the array of frequencies to form the frequency list. The array - must have at least as many elements as the value you specify in - **frequencyListLength**. Each **frequencyArray** element has a - corresponding **durationArray** element that indicates how long that - frequency is repeated. - - **Units**: hertz - - **Default Value**: None - - duration_array (list of float): Specifies the array of durations to form the frequency list. The array - must have at least as many elements as the value that you specify in - **frequencyListLength**. Each **durationArray** element has a - corresponding **frequencyArray** element and indicates how long in - seconds to generate the corresponding frequency. - - **Units**: seconds - - **Default Value**: None - - - Returns: - frequency_list_handle (int): Returns the handle that identifies the new frequency list. You can pass - this handle to configure_freq_list to generate the arbitrary - sequence. - - ''' - if type(waveform) is not enums.Waveform: - raise TypeError('Parameter waveform must be of type ' + str(enums.Waveform)) - if duration_array is not None and len(duration_array) != len(frequency_array): # case S160 - raise ValueError("Length of duration_array and frequency_array parameters do not match.") # case S160 - frequency_list_handle = self._interpreter.create_freq_list(waveform, frequency_array, duration_array) - return frequency_list_handle - - @ivi_synchronized - def disable(self): - r'''disable - - Places the instrument in a quiescent state where it has minimal or no - impact on the system to which it is connected. The analog output and all - exported signals are disabled. - ''' - self._interpreter.disable() - - @ivi_synchronized - def export_attribute_configuration_buffer(self): - r'''export_attribute_configuration_buffer - - Exports the property configuration of the session to a configuration - buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑FGEN returns an - error. - - Returns: - configuration (bytes): Specifies the byte array buffer to be populated with the exported - property configuration. - - ''' - configuration = self._interpreter.export_attribute_configuration_buffer() - return _converters.convert_to_bytes(configuration) - - @ivi_synchronized - def export_attribute_configuration_file(self, file_path): - r'''export_attribute_configuration_file - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑FGEN returns an - error. - - Args: - file_path (str): Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:** .nifgenconfig - - ''' - self._interpreter.export_attribute_configuration_file(file_path) - - @ivi_synchronized - def get_channel_name(self, index): - r'''get_channel_name - - Returns the channel string that is in the channel table at an index you - specify. - - Note: - This method is included for compliance with the IviFgen Class - Specification. - - Args: - index (int): A 1-based index into the channel table. - - - Returns: - channel_string (str): Returns the channel string that is in the channel table at the index you - specify. Do not modify the contents of the channel string. - - ''' - channel_string = self._interpreter.get_channel_name(index) - return channel_string - - @ivi_synchronized - def _get_ext_cal_last_date_and_time(self): - r'''_get_ext_cal_last_date_and_time - - Returns the date and time of the last successful external calibration. - The time returned is 24-hour (military) local time; for example, if the - device was calibrated at 2:30 PM, this method returns 14 for the - **hour** parameter and 30 for the **minute** parameter. - - Returns: - year (int): Specifies the year of the last successful calibration. - - month (int): Specifies the month of the last successful calibration. - - day (int): Specifies the day of the last successful calibration. - - hour (int): Specifies the hour of the last successful calibration. - - minute (int): Specifies the minute of the last successful calibration. - - ''' - year, month, day, hour, minute = self._interpreter.get_ext_cal_last_date_and_time() - return year, month, day, hour, minute - - @ivi_synchronized - def get_ext_cal_last_temp(self): - r'''get_ext_cal_last_temp - - Returns the temperature at the last successful external calibration. The - temperature is returned in degrees Celsius. - - Returns: - temperature (float): Specifies the temperature at the last successful calibration in degrees - Celsius. - - ''' - temperature = self._interpreter.get_ext_cal_last_temp() - return temperature - - @ivi_synchronized - def get_ext_cal_recommended_interval(self): - r'''get_ext_cal_recommended_interval - - Returns the recommended interval between external calibrations in - months. - - Returns: - months (hightime.timedelta): Specifies the recommended interval between external calibrations in - months. - - ''' - months = self._interpreter.get_ext_cal_recommended_interval() - return _converters.convert_month_to_timedelta(months) - - @ivi_synchronized - def get_hardware_state(self): - r'''get_hardware_state - - Returns the current hardware state of the device and, if the device is - in the hardware error state, the current hardware error. - - Note: Hardware states do not necessarily correspond to NI-FGEN states. - - Returns: - state (enums.HardwareState): Returns the hardware state of the signal generator. - - **Defined Values** - - +-----------------------------------------+--------------------------------------------+ - | HardwareState.IDLE | The device is in the Idle state. | - +-----------------------------------------+--------------------------------------------+ - | HardwareState.WAITING_FOR_START_TRIGGER | The device is waiting for Start Trigger. | - +-----------------------------------------+--------------------------------------------+ - | HardwareState.RUNNING | The device is in the Running state. | - +-----------------------------------------+--------------------------------------------+ - | HardwareState.DONE | The generation has completed successfully. | - +-----------------------------------------+--------------------------------------------+ - | HardwareState.HARDWARE_ERROR | There is a hardware error. | - +-----------------------------------------+--------------------------------------------+ - - ''' - state = self._interpreter.get_hardware_state() - return state - - @ivi_synchronized - def get_ext_cal_last_date_and_time(self): - '''get_ext_cal_last_date_and_time - - Returns the date and time of the last successful external calibration. The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30 PM, this method returns 14 for the **hour** parameter and 30 for the **minute** parameter. - - Returns: - last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. - - ''' - year, month, day, hour, minute = self._get_ext_cal_last_date_and_time() - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def get_self_cal_last_date_and_time(self): - '''get_self_cal_last_date_and_time - - Returns the date and time of the last successful self-calibration. - - Returns: - last_cal_datetime (hightime.datetime): Returns the date and time the device was last calibrated. - - ''' - year, month, day, hour, minute = self._get_self_cal_last_date_and_time() - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def _get_self_cal_last_date_and_time(self): - r'''_get_self_cal_last_date_and_time - - Returns the date and time of the last successful self-calibration. - - All values are returned as separate parameters. Each parameter is - returned as an integer, including the year, month, day, hour, minute, - and second. For example, if the device is calibrated in September 2013, - this method returns 9 for the **month** parameter and 2013 for the - **year** parameter. - - The time returned is 24-hour (military) local time. For example, if the - device was calibrated at 2:30 PM, this method returns 14 for the - **hours** parameter and 30 for the **minutes** parameter. - - Returns: - year (int): Specifies the year of the last successful calibration. - - month (int): Specifies the month of the last successful calibration. - - day (int): Specifies the day of the last successful calibration. - - hour (int): Specifies the hour of the last successful calibration. - - minute (int): Specifies the minute of the last successful calibration. - - ''' - year, month, day, hour, minute = self._interpreter.get_self_cal_last_date_and_time() - return year, month, day, hour, minute - - @ivi_synchronized - def get_self_cal_last_temp(self): - r'''get_self_cal_last_temp - - Returns the temperature at the last successful self-calibration. The - temperature is returned in degrees Celsius. - - Returns: - temperature (float): Specifies the temperature at the last successful calibration in degrees - Celsius. - - ''' - temperature = self._interpreter.get_self_cal_last_temp() - return temperature - - @ivi_synchronized - def get_self_cal_supported(self): - r'''get_self_cal_supported - - Returns whether the device supports self–calibration. - - Returns: - self_cal_supported (bool): Returns whether the device supports self-calibration. - - ****Defined Values**** - - +-------+------------------------------------+ - | True | Self–calibration is supported. | - +-------+------------------------------------+ - | False | Self–calibration is not supported. | - +-------+------------------------------------+ - - ''' - self_cal_supported = self._interpreter.get_self_cal_supported() - return self_cal_supported - - @ivi_synchronized - def import_attribute_configuration_buffer(self, configuration): - r'''import_attribute_configuration_buffer - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - Note: - You cannot call this method while the session is in a running state, - such as while generating a signal. - - Args: - configuration (bytes): Specifies the byte array buffer that contains the property - configuration to import. - - ''' - configuration = _converters.convert_to_bytes(configuration) - self._interpreter.import_attribute_configuration_buffer(configuration) - - @ivi_synchronized - def import_attribute_configuration_file(self, file_path): - r'''import_attribute_configuration_file - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - Note: - You cannot call this method while the session is in a running state, - such as while generating a signal. - - Args: - file_path (str): Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:** .nifgenconfig - - ''' - self._interpreter.import_attribute_configuration_file(file_path) - - def _initialize_with_channels(self, resource_name, channel_name=None, reset_device=False, option_string=""): - r'''_initialize_with_channels - - Creates and returns a new NI-FGEN session to the specified channel of a - waveform generator that is used in all subsequent NI-FGEN method - calls. - - Args: - resource_name (str): Caution: - Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. - However, all IVI names, such as logical names, are case-sensitive. If - you use logical names, driver session names, or virtual names in your - program, you must ensure that the name you use matches the name in the - IVI Configuration Store file exactly, without any variations in the case - of the characters. - - | Specifies the resource name of the device to initialize. - - For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is - the device number assigned by MAX, as shown in Example 1. - - For NI-DAQmx devices, the syntax is just the device name specified in - MAX, as shown in Example 2. Typical default names for NI-DAQmx devices - in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by - right-clicking on the name in MAX and entering a new name. - - An alternate syntax for NI-DAQmx devices consists of DAQ::\ *NI-DAQmx - device name*, as shown in Example 3. This naming convention allows for - the use of an NI-DAQmx device in an application that was originally - designed for a Traditional NI-DAQ device. For example, if the - application expects DAQ::1, you can rename the NI-DAQmx device to 1 in - MAX and pass in DAQ::1 for the resource name, as shown in Example 4. - - If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already - exists with that same name, the NI-DAQmx device is matched first. - - You can also pass in the name of an IVI logical name or an IVI virtual - name configured with the IVI Configuration utility, as shown in Example - 5. A logical name identifies a particular virtual instrument. A virtual - name identifies a specific device and specifies the initial settings for - the session. - - +-----------+--------------------------------------+------------------------+---------------------------------+ - | Example # | Device Type | Syntax | Variable | - +===========+======================================+========================+=================================+ - | 1 | Traditional NI-DAQ device | DAQ::\ *1* | (*1* = device number) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 2 | NI-DAQmx device | *myDAQmxDevice* | (*myDAQmxDevice* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 3 | NI-DAQmx device | DAQ::\ *myDAQmxDevice* | (*myDAQmxDevice* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 4 | NI-DAQmx device | DAQ::\ *2* | (*2* = device name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - | 5 | IVI logical name or IVI virtual name | *myLogicalName* | (*myLogicalName* = name) | - +-----------+--------------------------------------+------------------------+---------------------------------+ - - channel_name (str, list, range, tuple): Specifies the channel that this VI uses. - - **Default Value**: "0" - - reset_device (bool): Specifies whether you want to reset the device during the initialization - procedure. True specifies that the device is reset and performs the - same method as the Reset method. - - ****Defined Values**** - - **Default Value**: False - - +-------+---------------------+ - | True | Reset device | - +-------+---------------------+ - | False | Do not reset device | - +-------+---------------------+ - - option_string (dict): Sets the initial value of certain session properties. - - The syntax for **optionString** is - - <*attributeName*> = <*value*> - - where - - *attributeName* is the name of the property and *value* is the value to - which the property is set - - To set multiple properties, separate them with a comma. - - If you pass NULL or an empty string for this parameter, the session uses - the default values for these properties. You can override the default - values by assigning a value explicitly in a string that you pass for - this parameter. - - You do not have to specify all of the properties and may leave any of - them out. However, if you do not specify one of the properties, its - default value is used. - - If simulation is enabled (Simulate=1), you may specify the device that - you want to simulate. To specify a device, enter the following syntax in - **optionString**. - - DriverSetup=Model:<*driver model number*>;Channels:<*channel - names*>;BoardType:<*module type*>;MemorySize:<*size of onboard memory in - bytes*> - - **Syntax Examples** - - **Properties and **Defined Values**** - - **Default Values**: "Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1" - - +------------------+-------------------------+-------------+ - | Property Name | Property | Values | - +==================+=========================+=============+ - | RangeCheck | RANGE_CHECK | True, False | - +------------------+-------------------------+-------------+ - | QueryInstrStatus | QUERY_INSTRUMENT_STATUS | True, False | - +------------------+-------------------------+-------------+ - | Cache | CACHE | True, False | - +------------------+-------------------------+-------------+ - | Simulate | simulate | True, False | - +------------------+-------------------------+-------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - - Returns: - vi (int): Returns a session handle that you can use to identify the device in all - subsequent NI-FGEN method calls. - - ''' - channel_name = _converters.convert_repeated_capabilities_without_prefix(channel_name) - option_string = _converters.convert_init_with_options_dictionary(option_string) - vi = self._interpreter.initialize_with_channels(resource_name, channel_name, reset_device, option_string) - return vi - - @ivi_synchronized - def _initiate_generation(self): - r'''_initiate_generation - - Initiates signal generation. If you want to abort signal generation, - call the abort method. After the signal generation - is aborted, you can call the initiate method to - cause the signal generator to produce a signal again. - ''' - self._interpreter.initiate_generation() - - @ivi_synchronized - def is_done(self): - r'''is_done - - Determines whether the current generation is complete. This method - sets the **done** parameter to True if the session is in the Idle or - Committed states. - - Note: - NI-FGEN only reports the **done** parameter as True after the - current generation is complete in Single trigger mode. - - Returns: - done (bool): Returns information about the completion of waveform generation. - - **Defined Values** - - +-------+-----------------------------+ - | True | Generation is complete. | - +-------+-----------------------------+ - | False | Generation is not complete. | - +-------+-----------------------------+ - - ''' - done = self._interpreter.is_done() - return done - - @ivi_synchronized - def query_arb_seq_capabilities(self): - r'''query_arb_seq_capabilities - - Returns the properties of the signal generator that are related to - creating arbitrary sequences (the max_num_sequences, - min_sequence_length, - max_sequence_length, and max_loop_count - properties). - - Returns: - maximum_number_of_sequences (int): Returns the maximum number of arbitrary waveform sequences that the - signal generator allows. NI-FGEN obtains this value from the - max_num_sequences property. - - minimum_sequence_length (int): Returns the minimum number of arbitrary waveforms the signal generator - allows in a sequence. NI-FGEN obtains this value from the - min_sequence_length property. - - maximum_sequence_length (int): Returns the maximum number of arbitrary waveforms the signal generator - allows in a sequence. NI-FGEN obtains this value from the - max_sequence_length property. - - maximum_loop_count (int): Returns the maximum number of times the signal generator can repeat an - arbitrary waveform in a sequence. NI-FGEN obtains this value from the - max_loop_count property. - - ''' - maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count = self._interpreter.query_arb_seq_capabilities() - return maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count - - @ivi_synchronized - def query_arb_wfm_capabilities(self): - r'''query_arb_wfm_capabilities - - Returns the properties of the signal generator that are related to - creating arbitrary waveforms. These properties are the maximum number of - waveforms, waveform quantum, minimum waveform size, and maximum waveform - size. - - Note: - If you do not want to obtain the waveform quantum, pass a value of - VI_NULL for this parameter. - - Returns: - maximum_number_of_waveforms (int): Returns the maximum number of arbitrary waveforms that the signal - generator allows. NI-FGEN obtains this value from the - max_num_waveforms property. - - waveform_quantum (int): The size (number of points) of each waveform must be a multiple of a - constant quantum value. This parameter obtains the quantum value that - the signal generator uses. NI-FGEN returns this value from the - waveform_quantum property. - - For example, when this property returns a value of 8, all waveform - sizes must be a multiple of 8. - - minimum_waveform_size (int): Returns the minimum number of points that the signal generator allows in - a waveform. NI-FGEN obtains this value from the - min_waveform_size property. - - maximum_waveform_size (int): Returns the maximum number of points that the signal generator allows in - a waveform. NI-FGEN obtains this value from the - max_waveform_size property. - - ''' - maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size = self._interpreter.query_arb_wfm_capabilities() - return maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size - - @ivi_synchronized - def query_freq_list_capabilities(self): - r'''query_freq_list_capabilities - - Returns the properties of the signal generator that are related to - creating frequency lists. These properties are - max_num_freq_lists, - min_freq_list_length, - max_freq_list_length, - min_freq_list_duration, - max_freq_list_duration, and - freq_list_duration_quantum. - - Returns: - maximum_number_of_freq_lists (int): Returns the maximum number of frequency lists that the signal generator - allows. NI-FGEN obtains this value from the - max_num_freq_lists property. - - minimum_frequency_list_length (int): Returns the minimum number of steps that the signal generator allows in - a frequency list. NI-FGEN obtains this value from the - min_freq_list_length property. - - maximum_frequency_list_length (int): Returns the maximum number of steps that the signal generator allows in - a frequency list. NI-FGEN obtains this value from the - max_freq_list_length property. - - minimum_frequency_list_duration (float): Returns the minimum duration that the signal generator allows in a step - of a frequency list. NI-FGEN obtains this value from the - min_freq_list_duration property. - - maximum_frequency_list_duration (float): Returns the maximum duration that the signal generator allows in a step - of a frequency list. NI-FGEN obtains this value from the - max_freq_list_duration property. - - frequency_list_duration_quantum (float): Returns the quantum of which all durations must be a multiple in a - frequency list. NI-FGEN obtains this value from the - freq_list_duration_quantum property. - - ''' - maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum = self._interpreter.query_freq_list_capabilities() - return maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum - - @ivi_synchronized - def read_current_temperature(self): - r'''read_current_temperature - - Reads the current onboard temperature of the device. The temperature is - returned in degrees Celsius. - - Returns: - temperature (float): Returns the current temperature read from onboard temperature sensors, - in degrees Celsius. - - ''' - temperature = self._interpreter.read_current_temperature() - return temperature - - @ivi_synchronized - def reset_device(self): - r'''reset_device - - Performs a hard reset on the device. Generation is stopped, all routes - are released, external bidirectional terminals are tristated, FPGAs are - reset, hardware is configured to its default state, and all session - properties are reset to their default states. - ''' - self._interpreter.reset_device() - - @ivi_synchronized - def reset_with_defaults(self): - r'''reset_with_defaults - - Resets the instrument and reapplies initial user–specified settings from - the logical name that was used to initialize the session. If the session - was created without a logical name, this method is equivalent to the - reset method. - ''' - self._interpreter.reset_with_defaults() - - @ivi_synchronized - def self_cal(self): - r'''self_cal - - Performs a full internal self-calibration on the device. If the - calibration is successful, new calibration data and constants are stored - in the onboard EEPROM. - ''' - self._interpreter.self_cal() - - @ivi_synchronized - def wait_until_done(self, max_time=hightime.timedelta(seconds=10.0)): - r'''wait_until_done - - Waits until the device is done generating or until the maximum time has - expired. - - Args: - max_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the timeout value in milliseconds. - - ''' - max_time = _converters.convert_timedelta_to_milliseconds_int32(max_time) - self._interpreter.wait_until_done(max_time) - - def _close(self): - r'''_close - - Performs the following operations: - - - Closes the instrument I/O session. - - Destroys the NI-FGEN session and all of its properties. - - Deallocates any memory resources NI-FGEN uses. - - Not all signal routes established by calling the ExportSignal - and RouteSignalOut methods are released when the NI-FGEN - session is closed. The following table shows what happens to a signal - route on your device when you call the _close method. - - +--------------------+-------------------+------------------+ - | Routes To | NI 5401/5411/5431 | Other Devices | - +====================+===================+==================+ - | Front Panel | Remain connected | Remain connected | - +--------------------+-------------------+------------------+ - | RTSI/PXI Backplane | Remain connected | Disconnected | - +--------------------+-------------------+------------------+ - - Note: - After calling _close, you cannot use NI-FGEN again until you - call the init or InitWithOptions methods. - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Runs the instrument self-test routine and returns the test result(s). - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - Note: - When used on some signal generators, the device is reset after the - self_test method runs. If you use the self_test - method, your device may not be in its previously configured state - after the method runs. - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def reset(self): - r'''reset - - Resets the instrument to a known state. This method aborts the - generation, clears all routes, and resets session properties to the - default values. This method does not, however, commit the session - properties or configure the device hardware to its default state. - - Note: - For the NI 5401/5404/5411/5431, this method exhibits the same - behavior as the reset_device method. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Runs the instrument self-test routine and returns the test result(s). - - Note: - When used on some signal generators, the device is reset after the - self_test method runs. If you use the self_test - method, your device may not be in its previously configured state - after the method runs. - - Returns: - self_test_result (int): Contains the value returned from the instrument self-test. A value of 0 - indicates success. - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - - self_test_message (str): Returns the self-test response string from the instrument. - - You must pass a ViChar array with at least 256 bytes. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/nifgen/nifgen/unit_tests/_matchers.py b/generated/nifgen/nifgen/unit_tests/_matchers.py deleted file mode 100644 index d2bcbe40dc..0000000000 --- a/generated/nifgen/nifgen/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nifgen._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nifgen/nifgen/unit_tests/_mock_helper.py b/generated/nifgen/nifgen/unit_tests/_mock_helper.py deleted file mode 100644 index 68603c4124..0000000000 --- a/generated/nifgen/nifgen/unit_tests/_mock_helper.py +++ /dev/null @@ -1,1013 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['AbortGeneration'] = {} - self._defaults['AbortGeneration']['return'] = 0 - self._defaults['AllocateNamedWaveform'] = {} - self._defaults['AllocateNamedWaveform']['return'] = 0 - self._defaults['AllocateWaveform'] = {} - self._defaults['AllocateWaveform']['return'] = 0 - self._defaults['AllocateWaveform']['waveformHandle'] = None - self._defaults['ClearArbMemory'] = {} - self._defaults['ClearArbMemory']['return'] = 0 - self._defaults['ClearArbSequence'] = {} - self._defaults['ClearArbSequence']['return'] = 0 - self._defaults['ClearArbWaveform'] = {} - self._defaults['ClearArbWaveform']['return'] = 0 - self._defaults['ClearFreqList'] = {} - self._defaults['ClearFreqList']['return'] = 0 - self._defaults['ClearUserStandardWaveform'] = {} - self._defaults['ClearUserStandardWaveform']['return'] = 0 - self._defaults['Commit'] = {} - self._defaults['Commit']['return'] = 0 - self._defaults['ConfigureArbSequence'] = {} - self._defaults['ConfigureArbSequence']['return'] = 0 - self._defaults['ConfigureArbWaveform'] = {} - self._defaults['ConfigureArbWaveform']['return'] = 0 - self._defaults['ConfigureFreqList'] = {} - self._defaults['ConfigureFreqList']['return'] = 0 - self._defaults['ConfigureStandardWaveform'] = {} - self._defaults['ConfigureStandardWaveform']['return'] = 0 - self._defaults['CreateAdvancedArbSequence'] = {} - self._defaults['CreateAdvancedArbSequence']['return'] = 0 - self._defaults['CreateAdvancedArbSequence']['coercedMarkersArray'] = None - self._defaults['CreateAdvancedArbSequence']['sequenceHandle'] = None - self._defaults['CreateArbSequence'] = {} - self._defaults['CreateArbSequence']['return'] = 0 - self._defaults['CreateArbSequence']['sequenceHandle'] = None - self._defaults['CreateFreqList'] = {} - self._defaults['CreateFreqList']['return'] = 0 - self._defaults['CreateFreqList']['frequencyListHandle'] = None - self._defaults['CreateWaveformF64'] = {} - self._defaults['CreateWaveformF64']['return'] = 0 - self._defaults['CreateWaveformF64']['waveformHandle'] = None - self._defaults['CreateWaveformFromFileF64'] = {} - self._defaults['CreateWaveformFromFileF64']['return'] = 0 - self._defaults['CreateWaveformFromFileF64']['waveformHandle'] = None - self._defaults['CreateWaveformFromFileI16'] = {} - self._defaults['CreateWaveformFromFileI16']['return'] = 0 - self._defaults['CreateWaveformFromFileI16']['waveformHandle'] = None - self._defaults['CreateWaveformI16'] = {} - self._defaults['CreateWaveformI16']['return'] = 0 - self._defaults['CreateWaveformI16']['waveformHandle'] = None - self._defaults['DefineUserStandardWaveform'] = {} - self._defaults['DefineUserStandardWaveform']['return'] = 0 - self._defaults['DeleteNamedWaveform'] = {} - self._defaults['DeleteNamedWaveform']['return'] = 0 - self._defaults['DeleteScript'] = {} - self._defaults['DeleteScript']['return'] = 0 - self._defaults['Disable'] = {} - self._defaults['Disable']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer'] = {} - self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None - self._defaults['ExportAttributeConfigurationFile'] = {} - self._defaults['ExportAttributeConfigurationFile']['return'] = 0 - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['attributeValue'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['attributeValue'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['attributeValue'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['attributeValue'] = None - self._defaults['GetChannelName'] = {} - self._defaults['GetChannelName']['return'] = 0 - self._defaults['GetChannelName']['channelString'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['errorDescription'] = None - self._defaults['GetExtCalLastDateAndTime'] = {} - self._defaults['GetExtCalLastDateAndTime']['return'] = 0 - self._defaults['GetExtCalLastDateAndTime']['year'] = None - self._defaults['GetExtCalLastDateAndTime']['month'] = None - self._defaults['GetExtCalLastDateAndTime']['day'] = None - self._defaults['GetExtCalLastDateAndTime']['hour'] = None - self._defaults['GetExtCalLastDateAndTime']['minute'] = None - self._defaults['GetExtCalLastTemp'] = {} - self._defaults['GetExtCalLastTemp']['return'] = 0 - self._defaults['GetExtCalLastTemp']['temperature'] = None - self._defaults['GetExtCalRecommendedInterval'] = {} - self._defaults['GetExtCalRecommendedInterval']['return'] = 0 - self._defaults['GetExtCalRecommendedInterval']['months'] = None - self._defaults['GetHardwareState'] = {} - self._defaults['GetHardwareState']['return'] = 0 - self._defaults['GetHardwareState']['state'] = None - self._defaults['GetSelfCalLastDateAndTime'] = {} - self._defaults['GetSelfCalLastDateAndTime']['return'] = 0 - self._defaults['GetSelfCalLastDateAndTime']['year'] = None - self._defaults['GetSelfCalLastDateAndTime']['month'] = None - self._defaults['GetSelfCalLastDateAndTime']['day'] = None - self._defaults['GetSelfCalLastDateAndTime']['hour'] = None - self._defaults['GetSelfCalLastDateAndTime']['minute'] = None - self._defaults['GetSelfCalLastTemp'] = {} - self._defaults['GetSelfCalLastTemp']['return'] = 0 - self._defaults['GetSelfCalLastTemp']['temperature'] = None - self._defaults['GetSelfCalSupported'] = {} - self._defaults['GetSelfCalSupported']['return'] = 0 - self._defaults['GetSelfCalSupported']['selfCalSupported'] = None - self._defaults['ImportAttributeConfigurationBuffer'] = {} - self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ImportAttributeConfigurationFile'] = {} - self._defaults['ImportAttributeConfigurationFile']['return'] = 0 - self._defaults['InitializeWithChannels'] = {} - self._defaults['InitializeWithChannels']['return'] = 0 - self._defaults['InitializeWithChannels']['vi'] = None - self._defaults['InitiateGeneration'] = {} - self._defaults['InitiateGeneration']['return'] = 0 - self._defaults['IsDone'] = {} - self._defaults['IsDone']['return'] = 0 - self._defaults['IsDone']['done'] = None - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['QueryArbSeqCapabilities'] = {} - self._defaults['QueryArbSeqCapabilities']['return'] = 0 - self._defaults['QueryArbSeqCapabilities']['maximumNumberOfSequences'] = None - self._defaults['QueryArbSeqCapabilities']['minimumSequenceLength'] = None - self._defaults['QueryArbSeqCapabilities']['maximumSequenceLength'] = None - self._defaults['QueryArbSeqCapabilities']['maximumLoopCount'] = None - self._defaults['QueryArbWfmCapabilities'] = {} - self._defaults['QueryArbWfmCapabilities']['return'] = 0 - self._defaults['QueryArbWfmCapabilities']['maximumNumberOfWaveforms'] = None - self._defaults['QueryArbWfmCapabilities']['waveformQuantum'] = None - self._defaults['QueryArbWfmCapabilities']['minimumWaveformSize'] = None - self._defaults['QueryArbWfmCapabilities']['maximumWaveformSize'] = None - self._defaults['QueryFreqListCapabilities'] = {} - self._defaults['QueryFreqListCapabilities']['return'] = 0 - self._defaults['QueryFreqListCapabilities']['maximumNumberOfFreqLists'] = None - self._defaults['QueryFreqListCapabilities']['minimumFrequencyListLength'] = None - self._defaults['QueryFreqListCapabilities']['maximumFrequencyListLength'] = None - self._defaults['QueryFreqListCapabilities']['minimumFrequencyListDuration'] = None - self._defaults['QueryFreqListCapabilities']['maximumFrequencyListDuration'] = None - self._defaults['QueryFreqListCapabilities']['frequencyListDurationQuantum'] = None - self._defaults['ReadCurrentTemperature'] = {} - self._defaults['ReadCurrentTemperature']['return'] = 0 - self._defaults['ReadCurrentTemperature']['temperature'] = None - self._defaults['ResetDevice'] = {} - self._defaults['ResetDevice']['return'] = 0 - self._defaults['ResetWithDefaults'] = {} - self._defaults['ResetWithDefaults']['return'] = 0 - self._defaults['SelfCal'] = {} - self._defaults['SelfCal']['return'] = 0 - self._defaults['SendSoftwareEdgeTrigger'] = {} - self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetNamedWaveformNextWritePosition'] = {} - self._defaults['SetNamedWaveformNextWritePosition']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['SetWaveformNextWritePosition'] = {} - self._defaults['SetWaveformNextWritePosition']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['WaitUntilDone'] = {} - self._defaults['WaitUntilDone']['return'] = 0 - self._defaults['WriteBinary16Waveform'] = {} - self._defaults['WriteBinary16Waveform']['return'] = 0 - self._defaults['WriteNamedWaveformF64'] = {} - self._defaults['WriteNamedWaveformF64']['return'] = 0 - self._defaults['WriteNamedWaveformI16'] = {} - self._defaults['WriteNamedWaveformI16']['return'] = 0 - self._defaults['WriteScript'] = {} - self._defaults['WriteScript']['return'] = 0 - self._defaults['WriteWaveform'] = {} - self._defaults['WriteWaveform']['return'] = 0 - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niFgen_AbortGeneration(self, vi): # noqa: N802 - if self._defaults['AbortGeneration']['return'] != 0: - return self._defaults['AbortGeneration']['return'] - return self._defaults['AbortGeneration']['return'] - - def niFgen_AllocateNamedWaveform(self, vi, channel_name, waveform_name, waveform_size): # noqa: N802 - if self._defaults['AllocateNamedWaveform']['return'] != 0: - return self._defaults['AllocateNamedWaveform']['return'] - return self._defaults['AllocateNamedWaveform']['return'] - - def niFgen_AllocateWaveform(self, vi, channel_name, waveform_size, waveform_handle): # noqa: N802 - if self._defaults['AllocateWaveform']['return'] != 0: - return self._defaults['AllocateWaveform']['return'] - # waveform_handle - if self._defaults['AllocateWaveform']['waveformHandle'] is None: - raise MockFunctionCallError("niFgen_AllocateWaveform", param='waveformHandle') - if waveform_handle is not None: - waveform_handle.contents.value = self._defaults['AllocateWaveform']['waveformHandle'] - return self._defaults['AllocateWaveform']['return'] - - def niFgen_ClearArbMemory(self, vi): # noqa: N802 - if self._defaults['ClearArbMemory']['return'] != 0: - return self._defaults['ClearArbMemory']['return'] - return self._defaults['ClearArbMemory']['return'] - - def niFgen_ClearArbSequence(self, vi, sequence_handle): # noqa: N802 - if self._defaults['ClearArbSequence']['return'] != 0: - return self._defaults['ClearArbSequence']['return'] - return self._defaults['ClearArbSequence']['return'] - - def niFgen_ClearArbWaveform(self, vi, waveform_handle): # noqa: N802 - if self._defaults['ClearArbWaveform']['return'] != 0: - return self._defaults['ClearArbWaveform']['return'] - return self._defaults['ClearArbWaveform']['return'] - - def niFgen_ClearFreqList(self, vi, frequency_list_handle): # noqa: N802 - if self._defaults['ClearFreqList']['return'] != 0: - return self._defaults['ClearFreqList']['return'] - return self._defaults['ClearFreqList']['return'] - - def niFgen_ClearUserStandardWaveform(self, vi, channel_name): # noqa: N802 - if self._defaults['ClearUserStandardWaveform']['return'] != 0: - return self._defaults['ClearUserStandardWaveform']['return'] - return self._defaults['ClearUserStandardWaveform']['return'] - - def niFgen_Commit(self, vi): # noqa: N802 - if self._defaults['Commit']['return'] != 0: - return self._defaults['Commit']['return'] - return self._defaults['Commit']['return'] - - def niFgen_ConfigureArbSequence(self, vi, channel_name, sequence_handle, gain, offset): # noqa: N802 - if self._defaults['ConfigureArbSequence']['return'] != 0: - return self._defaults['ConfigureArbSequence']['return'] - return self._defaults['ConfigureArbSequence']['return'] - - def niFgen_ConfigureArbWaveform(self, vi, channel_name, waveform_handle, gain, offset): # noqa: N802 - if self._defaults['ConfigureArbWaveform']['return'] != 0: - return self._defaults['ConfigureArbWaveform']['return'] - return self._defaults['ConfigureArbWaveform']['return'] - - def niFgen_ConfigureFreqList(self, vi, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 - if self._defaults['ConfigureFreqList']['return'] != 0: - return self._defaults['ConfigureFreqList']['return'] - return self._defaults['ConfigureFreqList']['return'] - - def niFgen_ConfigureStandardWaveform(self, vi, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 - if self._defaults['ConfigureStandardWaveform']['return'] != 0: - return self._defaults['ConfigureStandardWaveform']['return'] - return self._defaults['ConfigureStandardWaveform']['return'] - - def niFgen_CreateAdvancedArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array, coerced_markers_array, sequence_handle): # noqa: N802 - if self._defaults['CreateAdvancedArbSequence']['return'] != 0: - return self._defaults['CreateAdvancedArbSequence']['return'] - # coerced_markers_array - if self._defaults['CreateAdvancedArbSequence']['coercedMarkersArray'] is None: - raise MockFunctionCallError("niFgen_CreateAdvancedArbSequence", param='coercedMarkersArray') - test_value = self._defaults['CreateAdvancedArbSequence']['coercedMarkersArray'] - try: - coerced_markers_array_ref = coerced_markers_array.contents - except AttributeError: - coerced_markers_array_ref = coerced_markers_array - assert len(coerced_markers_array_ref) >= len(test_value) - for i in range(len(test_value)): - coerced_markers_array_ref[i] = test_value[i] - # sequence_handle - if self._defaults['CreateAdvancedArbSequence']['sequenceHandle'] is None: - raise MockFunctionCallError("niFgen_CreateAdvancedArbSequence", param='sequenceHandle') - if sequence_handle is not None: - sequence_handle.contents.value = self._defaults['CreateAdvancedArbSequence']['sequenceHandle'] - return self._defaults['CreateAdvancedArbSequence']['return'] - - def niFgen_CreateArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sequence_handle): # noqa: N802 - if self._defaults['CreateArbSequence']['return'] != 0: - return self._defaults['CreateArbSequence']['return'] - # sequence_handle - if self._defaults['CreateArbSequence']['sequenceHandle'] is None: - raise MockFunctionCallError("niFgen_CreateArbSequence", param='sequenceHandle') - if sequence_handle is not None: - sequence_handle.contents.value = self._defaults['CreateArbSequence']['sequenceHandle'] - return self._defaults['CreateArbSequence']['return'] - - def niFgen_CreateFreqList(self, vi, waveform, frequency_list_length, frequency_array, duration_array, frequency_list_handle): # noqa: N802 - if self._defaults['CreateFreqList']['return'] != 0: - return self._defaults['CreateFreqList']['return'] - # frequency_list_handle - if self._defaults['CreateFreqList']['frequencyListHandle'] is None: - raise MockFunctionCallError("niFgen_CreateFreqList", param='frequencyListHandle') - if frequency_list_handle is not None: - frequency_list_handle.contents.value = self._defaults['CreateFreqList']['frequencyListHandle'] - return self._defaults['CreateFreqList']['return'] - - def niFgen_CreateWaveformF64(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 - if self._defaults['CreateWaveformF64']['return'] != 0: - return self._defaults['CreateWaveformF64']['return'] - # waveform_handle - if self._defaults['CreateWaveformF64']['waveformHandle'] is None: - raise MockFunctionCallError("niFgen_CreateWaveformF64", param='waveformHandle') - if waveform_handle is not None: - waveform_handle.contents.value = self._defaults['CreateWaveformF64']['waveformHandle'] - return self._defaults['CreateWaveformF64']['return'] - - def niFgen_CreateWaveformFromFileF64(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 - if self._defaults['CreateWaveformFromFileF64']['return'] != 0: - return self._defaults['CreateWaveformFromFileF64']['return'] - # waveform_handle - if self._defaults['CreateWaveformFromFileF64']['waveformHandle'] is None: - raise MockFunctionCallError("niFgen_CreateWaveformFromFileF64", param='waveformHandle') - if waveform_handle is not None: - waveform_handle.contents.value = self._defaults['CreateWaveformFromFileF64']['waveformHandle'] - return self._defaults['CreateWaveformFromFileF64']['return'] - - def niFgen_CreateWaveformFromFileI16(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 - if self._defaults['CreateWaveformFromFileI16']['return'] != 0: - return self._defaults['CreateWaveformFromFileI16']['return'] - # waveform_handle - if self._defaults['CreateWaveformFromFileI16']['waveformHandle'] is None: - raise MockFunctionCallError("niFgen_CreateWaveformFromFileI16", param='waveformHandle') - if waveform_handle is not None: - waveform_handle.contents.value = self._defaults['CreateWaveformFromFileI16']['waveformHandle'] - return self._defaults['CreateWaveformFromFileI16']['return'] - - def niFgen_CreateWaveformI16(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 - if self._defaults['CreateWaveformI16']['return'] != 0: - return self._defaults['CreateWaveformI16']['return'] - # waveform_handle - if self._defaults['CreateWaveformI16']['waveformHandle'] is None: - raise MockFunctionCallError("niFgen_CreateWaveformI16", param='waveformHandle') - if waveform_handle is not None: - waveform_handle.contents.value = self._defaults['CreateWaveformI16']['waveformHandle'] - return self._defaults['CreateWaveformI16']['return'] - - def niFgen_DefineUserStandardWaveform(self, vi, channel_name, waveform_size, waveform_data_array): # noqa: N802 - if self._defaults['DefineUserStandardWaveform']['return'] != 0: - return self._defaults['DefineUserStandardWaveform']['return'] - return self._defaults['DefineUserStandardWaveform']['return'] - - def niFgen_DeleteNamedWaveform(self, vi, channel_name, waveform_name): # noqa: N802 - if self._defaults['DeleteNamedWaveform']['return'] != 0: - return self._defaults['DeleteNamedWaveform']['return'] - return self._defaults['DeleteNamedWaveform']['return'] - - def niFgen_DeleteScript(self, vi, channel_name, script_name): # noqa: N802 - if self._defaults['DeleteScript']['return'] != 0: - return self._defaults['DeleteScript']['return'] - return self._defaults['DeleteScript']['return'] - - def niFgen_Disable(self, vi): # noqa: N802 - if self._defaults['Disable']['return'] != 0: - return self._defaults['Disable']['return'] - return self._defaults['Disable']['return'] - - def niFgen_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - # configuration - if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: - raise MockFunctionCallError("niFgen_ExportAttributeConfigurationBuffer", param='configuration') - if size_in_bytes.value == 0: - return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) - try: - configuration_ref = configuration.contents - except AttributeError: - configuration_ref = configuration - for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): - configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - - def niFgen_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ExportAttributeConfigurationFile']['return'] - return self._defaults['ExportAttributeConfigurationFile']['return'] - - def niFgen_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # attribute_value - if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: - raise MockFunctionCallError("niFgen_GetAttributeViBoolean", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niFgen_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # attribute_value - if self._defaults['GetAttributeViInt32']['attributeValue'] is None: - raise MockFunctionCallError("niFgen_GetAttributeViInt32", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] - return self._defaults['GetAttributeViInt32']['return'] - - def niFgen_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # attribute_value - if self._defaults['GetAttributeViReal64']['attributeValue'] is None: - raise MockFunctionCallError("niFgen_GetAttributeViReal64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] - return self._defaults['GetAttributeViReal64']['return'] - - def niFgen_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # attribute_value - if self._defaults['GetAttributeViString']['attributeValue'] is None: - raise MockFunctionCallError("niFgen_GetAttributeViString", param='attributeValue') - if array_size.value == 0: - return len(self._defaults['GetAttributeViString']['attributeValue']) - attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niFgen_GetChannelName(self, vi, index, buffer_size, channel_string): # noqa: N802 - if self._defaults['GetChannelName']['return'] != 0: - return self._defaults['GetChannelName']['return'] - # channel_string - if self._defaults['GetChannelName']['channelString'] is None: - raise MockFunctionCallError("niFgen_GetChannelName", param='channelString') - if buffer_size.value == 0: - return len(self._defaults['GetChannelName']['channelString']) - channel_string.value = self._defaults['GetChannelName']['channelString'].encode('ascii') - return self._defaults['GetChannelName']['return'] - - def niFgen_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niFgen_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # error_description - if self._defaults['GetError']['errorDescription'] is None: - raise MockFunctionCallError("niFgen_GetError", param='errorDescription') - if error_description_buffer_size.value == 0: - return len(self._defaults['GetError']['errorDescription']) - error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') - return self._defaults['GetError']['return'] - - def niFgen_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetExtCalLastDateAndTime']['return'] != 0: - return self._defaults['GetExtCalLastDateAndTime']['return'] - # year - if self._defaults['GetExtCalLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetExtCalLastDateAndTime']['year'] - # month - if self._defaults['GetExtCalLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetExtCalLastDateAndTime']['month'] - # day - if self._defaults['GetExtCalLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetExtCalLastDateAndTime']['day'] - # hour - if self._defaults['GetExtCalLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetExtCalLastDateAndTime']['hour'] - # minute - if self._defaults['GetExtCalLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetExtCalLastDateAndTime']['minute'] - return self._defaults['GetExtCalLastDateAndTime']['return'] - - def niFgen_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 - if self._defaults['GetExtCalLastTemp']['return'] != 0: - return self._defaults['GetExtCalLastTemp']['return'] - # temperature - if self._defaults['GetExtCalLastTemp']['temperature'] is None: - raise MockFunctionCallError("niFgen_GetExtCalLastTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetExtCalLastTemp']['temperature'] - return self._defaults['GetExtCalLastTemp']['return'] - - def niFgen_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: - return self._defaults['GetExtCalRecommendedInterval']['return'] - # months - if self._defaults['GetExtCalRecommendedInterval']['months'] is None: - raise MockFunctionCallError("niFgen_GetExtCalRecommendedInterval", param='months') - if months is not None: - months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] - return self._defaults['GetExtCalRecommendedInterval']['return'] - - def niFgen_GetHardwareState(self, vi, state): # noqa: N802 - if self._defaults['GetHardwareState']['return'] != 0: - return self._defaults['GetHardwareState']['return'] - # state - if self._defaults['GetHardwareState']['state'] is None: - raise MockFunctionCallError("niFgen_GetHardwareState", param='state') - if state is not None: - state.contents.value = self._defaults['GetHardwareState']['state'] - return self._defaults['GetHardwareState']['return'] - - def niFgen_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetSelfCalLastDateAndTime']['return'] != 0: - return self._defaults['GetSelfCalLastDateAndTime']['return'] - # year - if self._defaults['GetSelfCalLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetSelfCalLastDateAndTime']['year'] - # month - if self._defaults['GetSelfCalLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetSelfCalLastDateAndTime']['month'] - # day - if self._defaults['GetSelfCalLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetSelfCalLastDateAndTime']['day'] - # hour - if self._defaults['GetSelfCalLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetSelfCalLastDateAndTime']['hour'] - # minute - if self._defaults['GetSelfCalLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetSelfCalLastDateAndTime']['minute'] - return self._defaults['GetSelfCalLastDateAndTime']['return'] - - def niFgen_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 - if self._defaults['GetSelfCalLastTemp']['return'] != 0: - return self._defaults['GetSelfCalLastTemp']['return'] - # temperature - if self._defaults['GetSelfCalLastTemp']['temperature'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalLastTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetSelfCalLastTemp']['temperature'] - return self._defaults['GetSelfCalLastTemp']['return'] - - def niFgen_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 - if self._defaults['GetSelfCalSupported']['return'] != 0: - return self._defaults['GetSelfCalSupported']['return'] - # self_cal_supported - if self._defaults['GetSelfCalSupported']['selfCalSupported'] is None: - raise MockFunctionCallError("niFgen_GetSelfCalSupported", param='selfCalSupported') - if self_cal_supported is not None: - self_cal_supported.contents.value = self._defaults['GetSelfCalSupported']['selfCalSupported'] - return self._defaults['GetSelfCalSupported']['return'] - - def niFgen_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - - def niFgen_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ImportAttributeConfigurationFile']['return'] - return self._defaults['ImportAttributeConfigurationFile']['return'] - - def niFgen_InitializeWithChannels(self, resource_name, channel_name, reset_device, option_string, vi): # noqa: N802 - if self._defaults['InitializeWithChannels']['return'] != 0: - return self._defaults['InitializeWithChannels']['return'] - # vi - if self._defaults['InitializeWithChannels']['vi'] is None: - raise MockFunctionCallError("niFgen_InitializeWithChannels", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitializeWithChannels']['vi'] - return self._defaults['InitializeWithChannels']['return'] - - def niFgen_InitiateGeneration(self, vi): # noqa: N802 - if self._defaults['InitiateGeneration']['return'] != 0: - return self._defaults['InitiateGeneration']['return'] - return self._defaults['InitiateGeneration']['return'] - - def niFgen_IsDone(self, vi, done): # noqa: N802 - if self._defaults['IsDone']['return'] != 0: - return self._defaults['IsDone']['return'] - # done - if self._defaults['IsDone']['done'] is None: - raise MockFunctionCallError("niFgen_IsDone", param='done') - if done is not None: - done.contents.value = self._defaults['IsDone']['done'] - return self._defaults['IsDone']['return'] - - def niFgen_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niFgen_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niFgen_QueryArbSeqCapabilities(self, vi, maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count): # noqa: N802 - if self._defaults['QueryArbSeqCapabilities']['return'] != 0: - return self._defaults['QueryArbSeqCapabilities']['return'] - # maximum_number_of_sequences - if self._defaults['QueryArbSeqCapabilities']['maximumNumberOfSequences'] is None: - raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='maximumNumberOfSequences') - if maximum_number_of_sequences is not None: - maximum_number_of_sequences.contents.value = self._defaults['QueryArbSeqCapabilities']['maximumNumberOfSequences'] - # minimum_sequence_length - if self._defaults['QueryArbSeqCapabilities']['minimumSequenceLength'] is None: - raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='minimumSequenceLength') - if minimum_sequence_length is not None: - minimum_sequence_length.contents.value = self._defaults['QueryArbSeqCapabilities']['minimumSequenceLength'] - # maximum_sequence_length - if self._defaults['QueryArbSeqCapabilities']['maximumSequenceLength'] is None: - raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='maximumSequenceLength') - if maximum_sequence_length is not None: - maximum_sequence_length.contents.value = self._defaults['QueryArbSeqCapabilities']['maximumSequenceLength'] - # maximum_loop_count - if self._defaults['QueryArbSeqCapabilities']['maximumLoopCount'] is None: - raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='maximumLoopCount') - if maximum_loop_count is not None: - maximum_loop_count.contents.value = self._defaults['QueryArbSeqCapabilities']['maximumLoopCount'] - return self._defaults['QueryArbSeqCapabilities']['return'] - - def niFgen_QueryArbWfmCapabilities(self, vi, maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size): # noqa: N802 - if self._defaults['QueryArbWfmCapabilities']['return'] != 0: - return self._defaults['QueryArbWfmCapabilities']['return'] - # maximum_number_of_waveforms - if self._defaults['QueryArbWfmCapabilities']['maximumNumberOfWaveforms'] is None: - raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='maximumNumberOfWaveforms') - if maximum_number_of_waveforms is not None: - maximum_number_of_waveforms.contents.value = self._defaults['QueryArbWfmCapabilities']['maximumNumberOfWaveforms'] - # waveform_quantum - if self._defaults['QueryArbWfmCapabilities']['waveformQuantum'] is None: - raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='waveformQuantum') - if waveform_quantum is not None: - waveform_quantum.contents.value = self._defaults['QueryArbWfmCapabilities']['waveformQuantum'] - # minimum_waveform_size - if self._defaults['QueryArbWfmCapabilities']['minimumWaveformSize'] is None: - raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='minimumWaveformSize') - if minimum_waveform_size is not None: - minimum_waveform_size.contents.value = self._defaults['QueryArbWfmCapabilities']['minimumWaveformSize'] - # maximum_waveform_size - if self._defaults['QueryArbWfmCapabilities']['maximumWaveformSize'] is None: - raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='maximumWaveformSize') - if maximum_waveform_size is not None: - maximum_waveform_size.contents.value = self._defaults['QueryArbWfmCapabilities']['maximumWaveformSize'] - return self._defaults['QueryArbWfmCapabilities']['return'] - - def niFgen_QueryFreqListCapabilities(self, vi, maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum): # noqa: N802 - if self._defaults['QueryFreqListCapabilities']['return'] != 0: - return self._defaults['QueryFreqListCapabilities']['return'] - # maximum_number_of_freq_lists - if self._defaults['QueryFreqListCapabilities']['maximumNumberOfFreqLists'] is None: - raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='maximumNumberOfFreqLists') - if maximum_number_of_freq_lists is not None: - maximum_number_of_freq_lists.contents.value = self._defaults['QueryFreqListCapabilities']['maximumNumberOfFreqLists'] - # minimum_frequency_list_length - if self._defaults['QueryFreqListCapabilities']['minimumFrequencyListLength'] is None: - raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='minimumFrequencyListLength') - if minimum_frequency_list_length is not None: - minimum_frequency_list_length.contents.value = self._defaults['QueryFreqListCapabilities']['minimumFrequencyListLength'] - # maximum_frequency_list_length - if self._defaults['QueryFreqListCapabilities']['maximumFrequencyListLength'] is None: - raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='maximumFrequencyListLength') - if maximum_frequency_list_length is not None: - maximum_frequency_list_length.contents.value = self._defaults['QueryFreqListCapabilities']['maximumFrequencyListLength'] - # minimum_frequency_list_duration - if self._defaults['QueryFreqListCapabilities']['minimumFrequencyListDuration'] is None: - raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='minimumFrequencyListDuration') - if minimum_frequency_list_duration is not None: - minimum_frequency_list_duration.contents.value = self._defaults['QueryFreqListCapabilities']['minimumFrequencyListDuration'] - # maximum_frequency_list_duration - if self._defaults['QueryFreqListCapabilities']['maximumFrequencyListDuration'] is None: - raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='maximumFrequencyListDuration') - if maximum_frequency_list_duration is not None: - maximum_frequency_list_duration.contents.value = self._defaults['QueryFreqListCapabilities']['maximumFrequencyListDuration'] - # frequency_list_duration_quantum - if self._defaults['QueryFreqListCapabilities']['frequencyListDurationQuantum'] is None: - raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='frequencyListDurationQuantum') - if frequency_list_duration_quantum is not None: - frequency_list_duration_quantum.contents.value = self._defaults['QueryFreqListCapabilities']['frequencyListDurationQuantum'] - return self._defaults['QueryFreqListCapabilities']['return'] - - def niFgen_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 - if self._defaults['ReadCurrentTemperature']['return'] != 0: - return self._defaults['ReadCurrentTemperature']['return'] - # temperature - if self._defaults['ReadCurrentTemperature']['temperature'] is None: - raise MockFunctionCallError("niFgen_ReadCurrentTemperature", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['ReadCurrentTemperature']['temperature'] - return self._defaults['ReadCurrentTemperature']['return'] - - def niFgen_ResetDevice(self, vi): # noqa: N802 - if self._defaults['ResetDevice']['return'] != 0: - return self._defaults['ResetDevice']['return'] - return self._defaults['ResetDevice']['return'] - - def niFgen_ResetWithDefaults(self, vi): # noqa: N802 - if self._defaults['ResetWithDefaults']['return'] != 0: - return self._defaults['ResetWithDefaults']['return'] - return self._defaults['ResetWithDefaults']['return'] - - def niFgen_SelfCal(self, vi): # noqa: N802 - if self._defaults['SelfCal']['return'] != 0: - return self._defaults['SelfCal']['return'] - return self._defaults['SelfCal']['return'] - - def niFgen_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_id): # noqa: N802 - if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: - return self._defaults['SendSoftwareEdgeTrigger']['return'] - return self._defaults['SendSoftwareEdgeTrigger']['return'] - - def niFgen_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niFgen_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niFgen_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niFgen_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niFgen_SetNamedWaveformNextWritePosition(self, vi, channel_name, waveform_name, relative_to, offset): # noqa: N802 - if self._defaults['SetNamedWaveformNextWritePosition']['return'] != 0: - return self._defaults['SetNamedWaveformNextWritePosition']['return'] - return self._defaults['SetNamedWaveformNextWritePosition']['return'] - - def niFgen_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niFgen_SetWaveformNextWritePosition(self, vi, channel_name, waveform_handle, relative_to, offset): # noqa: N802 - if self._defaults['SetWaveformNextWritePosition']['return'] != 0: - return self._defaults['SetWaveformNextWritePosition']['return'] - return self._defaults['SetWaveformNextWritePosition']['return'] - - def niFgen_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niFgen_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niFgen_WaitUntilDone(self, vi, max_time): # noqa: N802 - if self._defaults['WaitUntilDone']['return'] != 0: - return self._defaults['WaitUntilDone']['return'] - return self._defaults['WaitUntilDone']['return'] - - def niFgen_WriteBinary16Waveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 - if self._defaults['WriteBinary16Waveform']['return'] != 0: - return self._defaults['WriteBinary16Waveform']['return'] - return self._defaults['WriteBinary16Waveform']['return'] - - def niFgen_WriteNamedWaveformF64(self, vi, channel_name, waveform_name, size, data): # noqa: N802 - if self._defaults['WriteNamedWaveformF64']['return'] != 0: - return self._defaults['WriteNamedWaveformF64']['return'] - return self._defaults['WriteNamedWaveformF64']['return'] - - def niFgen_WriteNamedWaveformI16(self, vi, channel_name, waveform_name, size, data): # noqa: N802 - if self._defaults['WriteNamedWaveformI16']['return'] != 0: - return self._defaults['WriteNamedWaveformI16']['return'] - return self._defaults['WriteNamedWaveformI16']['return'] - - def niFgen_WriteScript(self, vi, channel_name, script): # noqa: N802 - if self._defaults['WriteScript']['return'] != 0: - return self._defaults['WriteScript']['return'] - return self._defaults['WriteScript']['return'] - - def niFgen_WriteWaveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 - if self._defaults['WriteWaveform']['return'] != 0: - return self._defaults['WriteWaveform']['return'] - return self._defaults['WriteWaveform']['return'] - - def niFgen_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niFgen_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niFgen_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niFgen_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niFgen_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niFgen_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niFgen_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niFgen_AbortGeneration.side_effect = MockFunctionCallError("niFgen_AbortGeneration") - mock_library.niFgen_AbortGeneration.return_value = 0 - mock_library.niFgen_AllocateNamedWaveform.side_effect = MockFunctionCallError("niFgen_AllocateNamedWaveform") - mock_library.niFgen_AllocateNamedWaveform.return_value = 0 - mock_library.niFgen_AllocateWaveform.side_effect = MockFunctionCallError("niFgen_AllocateWaveform") - mock_library.niFgen_AllocateWaveform.return_value = 0 - mock_library.niFgen_ClearArbMemory.side_effect = MockFunctionCallError("niFgen_ClearArbMemory") - mock_library.niFgen_ClearArbMemory.return_value = 0 - mock_library.niFgen_ClearArbSequence.side_effect = MockFunctionCallError("niFgen_ClearArbSequence") - mock_library.niFgen_ClearArbSequence.return_value = 0 - mock_library.niFgen_ClearArbWaveform.side_effect = MockFunctionCallError("niFgen_ClearArbWaveform") - mock_library.niFgen_ClearArbWaveform.return_value = 0 - mock_library.niFgen_ClearFreqList.side_effect = MockFunctionCallError("niFgen_ClearFreqList") - mock_library.niFgen_ClearFreqList.return_value = 0 - mock_library.niFgen_ClearUserStandardWaveform.side_effect = MockFunctionCallError("niFgen_ClearUserStandardWaveform") - mock_library.niFgen_ClearUserStandardWaveform.return_value = 0 - mock_library.niFgen_Commit.side_effect = MockFunctionCallError("niFgen_Commit") - mock_library.niFgen_Commit.return_value = 0 - mock_library.niFgen_ConfigureArbSequence.side_effect = MockFunctionCallError("niFgen_ConfigureArbSequence") - mock_library.niFgen_ConfigureArbSequence.return_value = 0 - mock_library.niFgen_ConfigureArbWaveform.side_effect = MockFunctionCallError("niFgen_ConfigureArbWaveform") - mock_library.niFgen_ConfigureArbWaveform.return_value = 0 - mock_library.niFgen_ConfigureFreqList.side_effect = MockFunctionCallError("niFgen_ConfigureFreqList") - mock_library.niFgen_ConfigureFreqList.return_value = 0 - mock_library.niFgen_ConfigureStandardWaveform.side_effect = MockFunctionCallError("niFgen_ConfigureStandardWaveform") - mock_library.niFgen_ConfigureStandardWaveform.return_value = 0 - mock_library.niFgen_CreateAdvancedArbSequence.side_effect = MockFunctionCallError("niFgen_CreateAdvancedArbSequence") - mock_library.niFgen_CreateAdvancedArbSequence.return_value = 0 - mock_library.niFgen_CreateArbSequence.side_effect = MockFunctionCallError("niFgen_CreateArbSequence") - mock_library.niFgen_CreateArbSequence.return_value = 0 - mock_library.niFgen_CreateFreqList.side_effect = MockFunctionCallError("niFgen_CreateFreqList") - mock_library.niFgen_CreateFreqList.return_value = 0 - mock_library.niFgen_CreateWaveformF64.side_effect = MockFunctionCallError("niFgen_CreateWaveformF64") - mock_library.niFgen_CreateWaveformF64.return_value = 0 - mock_library.niFgen_CreateWaveformFromFileF64.side_effect = MockFunctionCallError("niFgen_CreateWaveformFromFileF64") - mock_library.niFgen_CreateWaveformFromFileF64.return_value = 0 - mock_library.niFgen_CreateWaveformFromFileI16.side_effect = MockFunctionCallError("niFgen_CreateWaveformFromFileI16") - mock_library.niFgen_CreateWaveformFromFileI16.return_value = 0 - mock_library.niFgen_CreateWaveformI16.side_effect = MockFunctionCallError("niFgen_CreateWaveformI16") - mock_library.niFgen_CreateWaveformI16.return_value = 0 - mock_library.niFgen_DefineUserStandardWaveform.side_effect = MockFunctionCallError("niFgen_DefineUserStandardWaveform") - mock_library.niFgen_DefineUserStandardWaveform.return_value = 0 - mock_library.niFgen_DeleteNamedWaveform.side_effect = MockFunctionCallError("niFgen_DeleteNamedWaveform") - mock_library.niFgen_DeleteNamedWaveform.return_value = 0 - mock_library.niFgen_DeleteScript.side_effect = MockFunctionCallError("niFgen_DeleteScript") - mock_library.niFgen_DeleteScript.return_value = 0 - mock_library.niFgen_Disable.side_effect = MockFunctionCallError("niFgen_Disable") - mock_library.niFgen_Disable.return_value = 0 - mock_library.niFgen_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFgen_ExportAttributeConfigurationBuffer") - mock_library.niFgen_ExportAttributeConfigurationBuffer.return_value = 0 - mock_library.niFgen_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niFgen_ExportAttributeConfigurationFile") - mock_library.niFgen_ExportAttributeConfigurationFile.return_value = 0 - mock_library.niFgen_GetAttributeViBoolean.side_effect = MockFunctionCallError("niFgen_GetAttributeViBoolean") - mock_library.niFgen_GetAttributeViBoolean.return_value = 0 - mock_library.niFgen_GetAttributeViInt32.side_effect = MockFunctionCallError("niFgen_GetAttributeViInt32") - mock_library.niFgen_GetAttributeViInt32.return_value = 0 - mock_library.niFgen_GetAttributeViReal64.side_effect = MockFunctionCallError("niFgen_GetAttributeViReal64") - mock_library.niFgen_GetAttributeViReal64.return_value = 0 - mock_library.niFgen_GetAttributeViString.side_effect = MockFunctionCallError("niFgen_GetAttributeViString") - mock_library.niFgen_GetAttributeViString.return_value = 0 - mock_library.niFgen_GetChannelName.side_effect = MockFunctionCallError("niFgen_GetChannelName") - mock_library.niFgen_GetChannelName.return_value = 0 - mock_library.niFgen_GetError.side_effect = MockFunctionCallError("niFgen_GetError") - mock_library.niFgen_GetError.return_value = 0 - mock_library.niFgen_GetExtCalLastDateAndTime.side_effect = MockFunctionCallError("niFgen_GetExtCalLastDateAndTime") - mock_library.niFgen_GetExtCalLastDateAndTime.return_value = 0 - mock_library.niFgen_GetExtCalLastTemp.side_effect = MockFunctionCallError("niFgen_GetExtCalLastTemp") - mock_library.niFgen_GetExtCalLastTemp.return_value = 0 - mock_library.niFgen_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niFgen_GetExtCalRecommendedInterval") - mock_library.niFgen_GetExtCalRecommendedInterval.return_value = 0 - mock_library.niFgen_GetHardwareState.side_effect = MockFunctionCallError("niFgen_GetHardwareState") - mock_library.niFgen_GetHardwareState.return_value = 0 - mock_library.niFgen_GetSelfCalLastDateAndTime.side_effect = MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime") - mock_library.niFgen_GetSelfCalLastDateAndTime.return_value = 0 - mock_library.niFgen_GetSelfCalLastTemp.side_effect = MockFunctionCallError("niFgen_GetSelfCalLastTemp") - mock_library.niFgen_GetSelfCalLastTemp.return_value = 0 - mock_library.niFgen_GetSelfCalSupported.side_effect = MockFunctionCallError("niFgen_GetSelfCalSupported") - mock_library.niFgen_GetSelfCalSupported.return_value = 0 - mock_library.niFgen_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFgen_ImportAttributeConfigurationBuffer") - mock_library.niFgen_ImportAttributeConfigurationBuffer.return_value = 0 - mock_library.niFgen_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niFgen_ImportAttributeConfigurationFile") - mock_library.niFgen_ImportAttributeConfigurationFile.return_value = 0 - mock_library.niFgen_InitializeWithChannels.side_effect = MockFunctionCallError("niFgen_InitializeWithChannels") - mock_library.niFgen_InitializeWithChannels.return_value = 0 - mock_library.niFgen_InitiateGeneration.side_effect = MockFunctionCallError("niFgen_InitiateGeneration") - mock_library.niFgen_InitiateGeneration.return_value = 0 - mock_library.niFgen_IsDone.side_effect = MockFunctionCallError("niFgen_IsDone") - mock_library.niFgen_IsDone.return_value = 0 - mock_library.niFgen_LockSession.side_effect = MockFunctionCallError("niFgen_LockSession") - mock_library.niFgen_LockSession.return_value = 0 - mock_library.niFgen_QueryArbSeqCapabilities.side_effect = MockFunctionCallError("niFgen_QueryArbSeqCapabilities") - mock_library.niFgen_QueryArbSeqCapabilities.return_value = 0 - mock_library.niFgen_QueryArbWfmCapabilities.side_effect = MockFunctionCallError("niFgen_QueryArbWfmCapabilities") - mock_library.niFgen_QueryArbWfmCapabilities.return_value = 0 - mock_library.niFgen_QueryFreqListCapabilities.side_effect = MockFunctionCallError("niFgen_QueryFreqListCapabilities") - mock_library.niFgen_QueryFreqListCapabilities.return_value = 0 - mock_library.niFgen_ReadCurrentTemperature.side_effect = MockFunctionCallError("niFgen_ReadCurrentTemperature") - mock_library.niFgen_ReadCurrentTemperature.return_value = 0 - mock_library.niFgen_ResetDevice.side_effect = MockFunctionCallError("niFgen_ResetDevice") - mock_library.niFgen_ResetDevice.return_value = 0 - mock_library.niFgen_ResetWithDefaults.side_effect = MockFunctionCallError("niFgen_ResetWithDefaults") - mock_library.niFgen_ResetWithDefaults.return_value = 0 - mock_library.niFgen_SelfCal.side_effect = MockFunctionCallError("niFgen_SelfCal") - mock_library.niFgen_SelfCal.return_value = 0 - mock_library.niFgen_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niFgen_SendSoftwareEdgeTrigger") - mock_library.niFgen_SendSoftwareEdgeTrigger.return_value = 0 - mock_library.niFgen_SetAttributeViBoolean.side_effect = MockFunctionCallError("niFgen_SetAttributeViBoolean") - mock_library.niFgen_SetAttributeViBoolean.return_value = 0 - mock_library.niFgen_SetAttributeViInt32.side_effect = MockFunctionCallError("niFgen_SetAttributeViInt32") - mock_library.niFgen_SetAttributeViInt32.return_value = 0 - mock_library.niFgen_SetAttributeViReal64.side_effect = MockFunctionCallError("niFgen_SetAttributeViReal64") - mock_library.niFgen_SetAttributeViReal64.return_value = 0 - mock_library.niFgen_SetAttributeViString.side_effect = MockFunctionCallError("niFgen_SetAttributeViString") - mock_library.niFgen_SetAttributeViString.return_value = 0 - mock_library.niFgen_SetNamedWaveformNextWritePosition.side_effect = MockFunctionCallError("niFgen_SetNamedWaveformNextWritePosition") - mock_library.niFgen_SetNamedWaveformNextWritePosition.return_value = 0 - mock_library.niFgen_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niFgen_SetRuntimeEnvironment") - mock_library.niFgen_SetRuntimeEnvironment.return_value = 0 - mock_library.niFgen_SetWaveformNextWritePosition.side_effect = MockFunctionCallError("niFgen_SetWaveformNextWritePosition") - mock_library.niFgen_SetWaveformNextWritePosition.return_value = 0 - mock_library.niFgen_UnlockSession.side_effect = MockFunctionCallError("niFgen_UnlockSession") - mock_library.niFgen_UnlockSession.return_value = 0 - mock_library.niFgen_WaitUntilDone.side_effect = MockFunctionCallError("niFgen_WaitUntilDone") - mock_library.niFgen_WaitUntilDone.return_value = 0 - mock_library.niFgen_WriteBinary16Waveform.side_effect = MockFunctionCallError("niFgen_WriteBinary16Waveform") - mock_library.niFgen_WriteBinary16Waveform.return_value = 0 - mock_library.niFgen_WriteNamedWaveformF64.side_effect = MockFunctionCallError("niFgen_WriteNamedWaveformF64") - mock_library.niFgen_WriteNamedWaveformF64.return_value = 0 - mock_library.niFgen_WriteNamedWaveformI16.side_effect = MockFunctionCallError("niFgen_WriteNamedWaveformI16") - mock_library.niFgen_WriteNamedWaveformI16.return_value = 0 - mock_library.niFgen_WriteScript.side_effect = MockFunctionCallError("niFgen_WriteScript") - mock_library.niFgen_WriteScript.return_value = 0 - mock_library.niFgen_WriteWaveform.side_effect = MockFunctionCallError("niFgen_WriteWaveform") - mock_library.niFgen_WriteWaveform.return_value = 0 - mock_library.niFgen_close.side_effect = MockFunctionCallError("niFgen_close") - mock_library.niFgen_close.return_value = 0 - mock_library.niFgen_error_message.side_effect = MockFunctionCallError("niFgen_error_message") - mock_library.niFgen_error_message.return_value = 0 - mock_library.niFgen_reset.side_effect = MockFunctionCallError("niFgen_reset") - mock_library.niFgen_reset.return_value = 0 - mock_library.niFgen_self_test.side_effect = MockFunctionCallError("niFgen_self_test") - mock_library.niFgen_self_test.return_value = 0 diff --git a/generated/nifgen/setup.py b/generated/nifgen/setup.py deleted file mode 100644 index 76ee778cc1..0000000000 --- a/generated/nifgen/setup.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nifgen' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-FGEN Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nifgen'], - license='MIT', - include_package_data=True, - packages=['nifgen'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - 'nitclk', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nifgen/tox-system_tests.ini b/generated/nifgen/tox-system_tests.ini deleted file mode 100644 index a8f30cabca..0000000000 --- a/generated/nifgen/tox-system_tests.ini +++ /dev/null @@ -1,73 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nifgen) -[tox] -envlist = py{310,311,312,313,314}-nifgen-wheel_dep,py{310,311,312,313,314}-nifgen-system_tests, py314-nifgen-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nifgen-wheel_dep: Build the nitclk wheel because we use it in nifgen tests - nifgen-system_tests: Run nifgen system tests (requires NI-FGEN runtime to be installed) - nifgen-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nifgen-wheel_dep: ../nitclk - nifgen-system_tests: . - nifgen-coverage: . - -commands = - nifgen-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nifgen-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nifgen-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. - nifgen-system_tests: python -c "import nifgen; nifgen.print_diagnostic_information()" - nifgen-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifgen --parallel-mode -m pytest ../../src/nifgen/examples --junitxml=../junit/junit-nifgen-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nifgen-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifgen --parallel-mode -m pytest ../../src/nifgen/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nifgen-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nifgen-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nifgen-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nifgen-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nifgen-wheel_dep: build - - nifgen-system_tests: pytest < 9.2.0 - nifgen-system_tests: coverage - nifgen-system_tests: numpy - nifgen-system_tests: hightime - nifgen-system_tests: fasteners - nifgen-system_tests: pytest-json - nifgen-system_tests: .[grpc] - - nifgen-coverage: coverage - -depends = - nifgen-coverage: py{310,311,312,313,314}-nifgen-system_tests - nifgen-system_tests: py{310,311,312,313,314}-nifgen-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nimodinst/README.rst b/generated/nimodinst/README.rst deleted file mode 100644 index 6d67a21fd0..0000000000 --- a/generated/nimodinst/README.rst +++ /dev/null @@ -1,171 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nimodinst** module provides a Python API for NI-ModInst. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nimodinst** supports all the Operating Systems supported by NI-ModInst. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nimodinst**. - - -NI-ModInst Python API Status ----------------------------- - -+-------------------------------+--------------------------+ -| NI-ModInst (nimodinst) | | -+===============================+==========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+--------------------------+ -| PyPI Version | |nimodinstLatestVersion| | -+-------------------------------+--------------------------+ -| Supported Python Version | |nimodinstPythonVersion| | -+-------------------------------+--------------------------+ -| Documentation | |nimodinstDocs| | -+-------------------------------+--------------------------+ -| Open Issues | |nimodinstOpenIssues| | -+-------------------------------+--------------------------+ -| Open Pull Requests | |nimodinstOpenPRs| | -+-------------------------------+--------------------------+ - - -.. |nimodinstLatestVersion| image:: http://img.shields.io/pypi/v/nimodinst.svg - :alt: Latest NI-ModInst Version - :target: http://pypi.python.org/pypi/nimodinst - - -.. |nimodinstPythonVersion| image:: http://img.shields.io/pypi/pyversions/nimodinst.svg - :alt: NI-ModInst supported Python versions - :target: http://pypi.python.org/pypi/nimodinst - - -.. |nimodinstDocs| image:: https://readthedocs.org/projects/nimodinst/badge/?version=latest - :alt: NI-ModInst Python API Documentation Status - :target: https://nimodinst.readthedocs.io/en/latest - - -.. |nimodinstOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nimodinst.svg - :alt: Open Issues + Pull Requests for NI-ModInst - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Animodinst - - -.. |nimodinstOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nimodinst.svg - :alt: Pull Requests for NI-ModInst - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Animodinst - - - -.. _nimodinst_installation-section: - -Installation ------------- - -As a prerequisite to using the **nimodinst** module, you must install the NI-ModInst runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-ModInst**) can be installed with `pip `_:: - - $ python -m pip install nimodinst - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nimodinst** module to retrieve information on all High Speed Digitizers currently in the system. - -.. code-block:: python - - import nimodinst - with nimodinst.Session("niscope") as session: - for device in session: - print("{: >20} {: >15} {: >10}".format(device.device_name, device.device_model, device.serial_number)) - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nimodinst/nimodinst/VERSION b/generated/nimodinst/nimodinst/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nimodinst/nimodinst/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nimodinst/nimodinst/__init__.py b/generated/nimodinst/nimodinst/__init__.py deleted file mode 100644 index 6a7dd86e37..0000000000 --- a/generated/nimodinst/nimodinst/__init__.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nimodinst.errors import DriverWarning # noqa: F401 -from nimodinst.errors import Error # noqa: F401 -from nimodinst.session import Session # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-ModInst\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-ModInst" - info['driver']['version'] = driver_version - info['module']['name'] = 'nimodinst' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nimodinst/nimodinst/_converters.py b/generated/nimodinst/nimodinst/_converters.py deleted file mode 100644 index 666c3c925e..0000000000 --- a/generated/nimodinst/nimodinst/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nimodinst._visatype as _visatype -import nimodinst.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nimodinst/nimodinst/_library.py b/generated/nimodinst/nimodinst/_library.py deleted file mode 100644 index 7f1f8f140c..0000000000 --- a/generated/nimodinst/nimodinst/_library.py +++ /dev/null @@ -1,73 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nimodinst.errors as errors -import threading - -from nimodinst._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niModInst_CloseInstalledDevicesSession_cfunc = None - self.niModInst_GetExtendedErrorInfo_cfunc = None - self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc = None - self.niModInst_GetInstalledDeviceAttributeViString_cfunc = None - self.niModInst_OpenInstalledDevicesSession_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niModInst_CloseInstalledDevicesSession(self, handle): # noqa: N802 - with self._func_lock: - if self.niModInst_CloseInstalledDevicesSession_cfunc is None: - self.niModInst_CloseInstalledDevicesSession_cfunc = self._get_library_function('niModInst_CloseInstalledDevicesSession') - self.niModInst_CloseInstalledDevicesSession_cfunc.argtypes = [ViSession] # noqa: F405 - self.niModInst_CloseInstalledDevicesSession_cfunc.restype = ViStatus # noqa: F405 - return self.niModInst_CloseInstalledDevicesSession_cfunc(handle) - - def niModInst_GetExtendedErrorInfo(self, error_info_buffer_size, error_info): # noqa: N802 - with self._func_lock: - if self.niModInst_GetExtendedErrorInfo_cfunc is None: - self.niModInst_GetExtendedErrorInfo_cfunc = self._get_library_function('niModInst_GetExtendedErrorInfo') - self.niModInst_GetExtendedErrorInfo_cfunc.argtypes = [ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niModInst_GetExtendedErrorInfo_cfunc.restype = ViStatus # noqa: F405 - return self.niModInst_GetExtendedErrorInfo_cfunc(error_info_buffer_size, error_info) - - def niModInst_GetInstalledDeviceAttributeViInt32(self, handle, index, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc is None: - self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc = self._get_library_function('niModInst_GetInstalledDeviceAttributeViInt32') - self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc(handle, index, attribute_id, attribute_value) - - def niModInst_GetInstalledDeviceAttributeViString(self, handle, index, attribute_id, attribute_value_buffer_size, attribute_value): # noqa: N802 - with self._func_lock: - if self.niModInst_GetInstalledDeviceAttributeViString_cfunc is None: - self.niModInst_GetInstalledDeviceAttributeViString_cfunc = self._get_library_function('niModInst_GetInstalledDeviceAttributeViString') - self.niModInst_GetInstalledDeviceAttributeViString_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niModInst_GetInstalledDeviceAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niModInst_GetInstalledDeviceAttributeViString_cfunc(handle, index, attribute_id, attribute_value_buffer_size, attribute_value) - - def niModInst_OpenInstalledDevicesSession(self, driver, handle, device_count): # noqa: N802 - with self._func_lock: - if self.niModInst_OpenInstalledDevicesSession_cfunc is None: - self.niModInst_OpenInstalledDevicesSession_cfunc = self._get_library_function('niModInst_OpenInstalledDevicesSession') - self.niModInst_OpenInstalledDevicesSession_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViSession), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niModInst_OpenInstalledDevicesSession_cfunc.restype = ViStatus # noqa: F405 - return self.niModInst_OpenInstalledDevicesSession_cfunc(driver, handle, device_count) diff --git a/generated/nimodinst/nimodinst/_library_interpreter.py b/generated/nimodinst/nimodinst/_library_interpreter.py deleted file mode 100644 index b51ce157e1..0000000000 --- a/generated/nimodinst/nimodinst/_library_interpreter.py +++ /dev/null @@ -1,135 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import nimodinst._library_singleton as _library_singleton -import nimodinst._visatype as _visatype -import nimodinst.errors as errors - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - # Initialize _handle to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._handle = value - - def get_session_handle(self): - return self._handle - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - # We hand-maintain the code that calls into the cfunc rather than leverage code-generation - # because niModInst_GetExtendedErrorInfo() does not properly do the IVI-dance. - # See https://github.com/ni/nimi-python/issues/166 - error_info_buffer_size_ctype = _visatype.ViInt32() # case S170 - error_info_ctype = None # case C050 - error_code = self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) - if error_code <= 0: - return 'Failed to retrieve error description.' - error_info_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - error_info_ctype = (_visatype.ViChar * error_info_buffer_size_ctype.value)() # case C060 - # Note we don't look at the return value. This is intentional as niModInst returns the - # original error code rather than 0 (VI_SUCCESS). - self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) - return error_info_ctype.value.decode("ascii") - - def close_installed_devices_session(self): # noqa: N802 - handle_ctype = _visatype.ViSession(self._handle) # case S110 - error_code = self._library.niModInst_CloseInstalledDevicesSession(handle_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def get_extended_error_info(self): # noqa: N802 - error_info_buffer_size_ctype = _visatype.ViInt32() # case S170 - error_info_ctype = None # case C050 - error_code = self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - error_info_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - error_info_ctype = (_visatype.ViChar * error_info_buffer_size_ctype.value)() # case C060 - error_code = self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_info_ctype.value.decode(self._encoding) - - def get_installed_device_attribute_vi_int32(self, index, attribute_id): # noqa: N802 - handle_ctype = _visatype.ViSession(self._handle) # case S110 - index_ctype = _visatype.ViInt32(index) # case S150 - attribute_id_ctype = _visatype.ViInt32(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niModInst_GetInstalledDeviceAttributeViInt32(handle_ctype, index_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_installed_device_attribute_vi_string(self, index, attribute_id): # noqa: N802 - handle_ctype = _visatype.ViSession(self._handle) # case S110 - index_ctype = _visatype.ViInt32(index) # case S150 - attribute_id_ctype = _visatype.ViInt32(attribute_id) # case S150 - attribute_value_buffer_size_ctype = _visatype.ViInt32() # case S170 - attribute_value_ctype = None # case C050 - error_code = self._library.niModInst_GetInstalledDeviceAttributeViString(handle_ctype, index_ctype, attribute_id_ctype, attribute_value_buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - attribute_value_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - attribute_value_ctype = (_visatype.ViChar * attribute_value_buffer_size_ctype.value)() # case C060 - error_code = self._library.niModInst_GetInstalledDeviceAttributeViString(handle_ctype, index_ctype, attribute_id_ctype, attribute_value_buffer_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return attribute_value_ctype.value.decode(self._encoding) - - def open_installed_devices_session(self, driver): # noqa: N802 - driver_ctype = ctypes.create_string_buffer(driver.encode(self._encoding)) # case C020 - handle_ctype = _visatype.ViSession() # case S220 - device_count_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niModInst_OpenInstalledDevicesSession(driver_ctype, None if handle_ctype is None else (ctypes.pointer(handle_ctype)), None if device_count_ctype is None else (ctypes.pointer(device_count_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(handle_ctype.value), int(device_count_ctype.value) diff --git a/generated/nimodinst/nimodinst/_library_singleton.py b/generated/nimodinst/nimodinst/_library_singleton.py deleted file mode 100644 index 4d97481692..0000000000 --- a/generated/nimodinst/nimodinst/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nimodinst._library as _library -import nimodinst.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nimodinst', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niModInst.dll', 'type': 'windll'}, - '64bit': {'name': 'niModInst_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nimodinst. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nimodinst/nimodinst/_visatype.py b/generated/nimodinst/nimodinst/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nimodinst/nimodinst/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nimodinst/nimodinst/errors.py b/generated/nimodinst/nimodinst/errors.py deleted file mode 100644 index de0698a79b..0000000000 --- a/generated/nimodinst/nimodinst/errors.py +++ /dev/null @@ -1,96 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-ModInst''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-ModInst driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-ModInst driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-ModInst runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-ModInst driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-ModInst runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-ModInst driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-ModInst runtime returned an unexpected value. This can occur if it is too new for the nimodinst Python module. Upgrade the nimodinst Python module.') - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nimodinst.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nimodinst/nimodinst/session.py b/generated/nimodinst/nimodinst/session.py deleted file mode 100644 index f657fc03d5..0000000000 --- a/generated/nimodinst/nimodinst/session.py +++ /dev/null @@ -1,321 +0,0 @@ -# This file was generated - -import nimodinst._library_interpreter as _library_interpreter -import nimodinst.errors as errors - -# Used for __repr__ and __str__ -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -class AttributeViInt32(object): - - def __init__(self, owner, attribute_id, index): - self._owner = owner - self._index = index - self._attribute_id = attribute_id - - def __getitem__(self, index): - return self._owner._get_installed_device_attribute_vi_int32(self._index, self._attribute_id) - - -class AttributeViString(object): - - def __init__(self, owner, attribute_id, index): - self._owner = owner - self._index = index - self._attribute_id = attribute_id - - def __getitem__(self, index): - return self._owner._get_installed_device_attribute_vi_string(self._index, self._attribute_id) - - -class _Device(object): - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - def __init__(self, owner, index): - self._index = index - self.bus_number = AttributeViInt32(owner, 12, index=index) - ''' - The bus on which the device has been enumerated. - ''' - self.chassis_number = AttributeViInt32(owner, 11, index=index) - ''' - The number of the chassis in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. - ''' - self.device_model = AttributeViString(owner, 1, index=index) - ''' - The model of the device (for example, NI PXI-5122) - ''' - self.device_name = AttributeViString(owner, 0, index=index) - ''' - The name of the device, which can be used to open an instrument driver session for that device - ''' - self.max_pciexpress_link_width = AttributeViInt32(owner, 18, index=index) - ''' - **MAX_PCIEXPRESS_LINK_WIDTH** - ''' - self.pciexpress_link_width = AttributeViInt32(owner, 17, index=index) - ''' - **PCIEXPRESS_LINK_WIDTH** - ''' - self.serial_number = AttributeViString(owner, 2, index=index) - ''' - The serial number of the device - ''' - self.slot_number = AttributeViInt32(owner, 10, index=index) - ''' - The slot (for example, in a PXI chassis) in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. - ''' - self.socket_number = AttributeViInt32(owner, 13, index=index) - ''' - The socket number on which the device has been enumerated - ''' - self._param_list = 'owner=' + pp.pformat(owner) + ', index=' + pp.pformat(index) - self._is_frozen = True - - def __repr__(self): - return '{0}.{1}({2})'.format('nimodinst', self.__class__.__name__, self._param_list) - - def __str__(self): - ret_str = self.__repr__() + ':\n' - ret_str += ' bus_number = ' + pp.pformat(self.bus_number) + '\n' - ret_str += ' chassis_number = ' + pp.pformat(self.chassis_number) + '\n' - ret_str += ' device_model = ' + pp.pformat(self.device_model) + '\n' - ret_str += ' device_name = ' + pp.pformat(self.device_name) + '\n' - ret_str += ' max_pciexpress_link_width = ' + pp.pformat(self.max_pciexpress_link_width) + '\n' - ret_str += ' pciexpress_link_width = ' + pp.pformat(self.pciexpress_link_width) + '\n' - ret_str += ' serial_number = ' + pp.pformat(self.serial_number) + '\n' - ret_str += ' slot_number = ' + pp.pformat(self.slot_number) + '\n' - ret_str += ' socket_number = ' + pp.pformat(self.socket_number) + '\n' - return ret_str - - def __getattribute__(self, name): - if name in ['_is_frozen', 'index', '_param_list', '__class__', '__name__', '__repr__', '__str__', '__setattr__', ]: - return object.__getattribute__(self, name) - else: - return object.__getattribute__(self, name).__getitem__(None) - - def __setattr__(self, name, value): - if self._is_frozen: - raise AttributeError("__setattr__ not supported.") - object.__setattr__(self, name, value) - - -class _DeviceIterable(object): - def __init__(self, owner, count): - self._current_index = 0 - self._owner = owner - self._count = count - self._param_list = 'owner=' + pp.pformat(owner) + ', count=' + pp.pformat(count) - self._is_frozen = True - - def _get_next(self): - if self._current_index + 1 > self._count: - raise StopIteration - else: - dev = _Device(self._owner, self._current_index) - self._current_index += 1 - return dev - - def next(self): - return self._get_next() - - def __next__(self): - return self._get_next() - - def __repr__(self): - return '{0}.{1}({2})'.format('nimodinst', self.__class__.__name__, self._param_list) - - def __str__(self): - ret_str = self.__repr__() + ':\n' - ret_str += ' current index = {0}'.format(self._current_index) - return ret_str - - -class Session(object): - '''A NI-ModInst session to get device information''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - def __init__(self, driver): - self._item_count = 0 - self._current_item = 0 - self._interpreter = _library_interpreter.LibraryInterpreter('windows-1251') - # Note that _library_interpreter clears the session handle in its constructor, so that if - # _open_installed_devices_session fails, the error handler can reference it. - # And then once _open_installed_devices_session succeeds, we can call this again with the - # actual session handle. - handle, self._item_count = self._open_installed_devices_session(driver) - self._interpreter.set_session_handle(handle) - self._param_list = "driver=" + pp.pformat(driver) - - self.devices = [] - for i in range(self._item_count): - self.devices.append(_Device(self, i)) - - self._is_frozen = True - - def __repr__(self): - return '{0}.{1}({2})'.format('nimodinst', self.__class__.__name__, self._param_list) - - def __str__(self): - ret_str = self.__repr__() + ':\n' - for i in range(self._item_count): - ret_str += str(_Device(self, i)) + '\n' - return ret_str - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("__setattr__ not supported.") - object.__setattr__(self, key, value) - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self.close() - - # Iterator functions - def __len__(self): - return self._item_count - - def __iter__(self): - return _DeviceIterable(self, self._item_count) - - def close(self): - try: - self._close_installed_devices_session() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - def _close_installed_devices_session(self): - r'''_close_installed_devices_session - - Cleans up the NI-ModInst session created by a call to - _open_installed_devices_session. Call this method when you are - finished using the session handle and do not use this handle again. - ''' - self._interpreter.close_installed_devices_session() - - def _get_installed_device_attribute_vi_int32(self, index, attribute_id): - r'''_get_installed_device_attribute_vi_int32 - - Returns an integer property specified by the attributeID parameter for - a device specified by the handle and index parameters. The handle - parameter is expected to be a valid handle returned by - _open_installed_devices_session. It therefore acts as a handle to - a list of installed devices. The index parameter specifies the device in - the list for which you want the property. - - Args: - index (int): A zero-based index that specifies the device for which you want the - property. This index parameter should be between 0 and (deviceCount - - 1), inclusive, where deviceCount is the number of installed devices - returned by _open_installed_devices_session. - - attribute_id (int): The ID of the integer property you want to query. Valid Values Slot - Number--the slot (for example, in a PXI chassis) in which the device is - installed. This property can only be queried for PXI devices installed - in a chassis that has been properly identified in MAX. Chassis - Number--the number of the chassis in which the device is installed. This - property can only be queried for PXI devices installed in a chassis - that has been properly identified in MAX. Bus Number--the bus on which - the device has been enumerated. Socket Number--the socket number on - which the device has been enumerated. Notes The bus number and socket - number can be used to form a VISA resource string for this device, of - the form "PXI::::INSTR". Traditional NI-DAQ devices do not support the - chassis number, bus number, and socket number properties. - - - Returns: - attribute_value (int): A pointer to a signed 32-bit integer variable that receives the value of - the requested property. - - ''' - attribute_value = self._interpreter.get_installed_device_attribute_vi_int32(index, attribute_id) - return attribute_value - - def _get_installed_device_attribute_vi_string(self, index, attribute_id): - r'''_get_installed_device_attribute_vi_string - - Returns a string property specified by the attributeID parameter for a - device specified by the handle and index parameters. The handle - parameter is expected to be a valid handle returned by - _open_installed_devices_session. Therefore, it acts as a handle - to a list of installed devices. The index parameter specifies for which - device in the list you want the property. To find out the length of the - device name string before you allocate a buffer for it, simply call this - method and pass 0 as the attributeValueBufferSize parameter or NULL as - the attributeValue parameter. When you do this, the method returns the - size of the buffer required to hold the property value string as its - return value. You can then allocate an appropriately sized character - buffer and call this method again. - - Args: - index (int): A zero-based index that specifies the device for which you want the - property. This index parameter should be between 0 and (deviceCount - - 1), inclusive, where deviceCount is the number of installed devices - returned by _open_installed_devices_session. - - attribute_id (int): The ID of the string property you want to query. Valid Values - device_name--the name of the device, which can be used - to open an instrument driver session for that device - device_model--the model of the device (for example, NI - PXI-5122) serial_number--the serial number of the - device - - - Returns: - attribute_value (str): The character buffer into which the property value string is copied. - - ''' - attribute_value = self._interpreter.get_installed_device_attribute_vi_string(index, attribute_id) - return attribute_value - - def _open_installed_devices_session(self, driver): - r'''_open_installed_devices_session - - Creates a handle to a list of installed devices supported by the - specified driver. Call this method and pass in the name of an NI - instrument driver, such as "NI-SCOPE". This method - searches the system and constructs a list of all the installed devices - that are supported by that driver, and then returns both a handle to - this list and the number of devices found. The handle is used with other - methods to query for properties such as device name and model, and to - safely discard the list when finished. Note This handle reflects the - system state when the handle is created (that is, when you call this - method. If you remove devices from the system or rename them in - Measurement & Automation Explorer (MAX), this handle may not refer to an - accurate list of devices. You should destroy the handle using - _close_installed_devices_session and create a new handle using - this method. - - Args: - driver (str): A string specifying the driver whose supported devices you want to find. - This string is not case-sensitive. Some examples are: NI-SCOPE niScope - NI-FGEN niFgen NI-HSDIO niHSDIO NI-DMM niDMM NI-SWITCH niSwitch Note If - you use the empty string for this parameter, NI-ModInst creates a list - of all Modular Instruments devices installed in the system. - - - Returns: - handle (int): A pointer to a ViSession variable that receives the value of the - NI-ModInst session handle. This value acts as a handle to the list of - installed devices and is used in other NI-ModInst methods. - - device_count (int): A pointer to an integer variable that receives the number of devices - found in the system that are supported by the driver specified in the - driver parameter. - - ''' - handle, device_count = self._interpreter.open_installed_devices_session(driver) - return handle, device_count diff --git a/generated/nimodinst/nimodinst/unit_tests/_matchers.py b/generated/nimodinst/nimodinst/unit_tests/_matchers.py deleted file mode 100644 index 4e0efc7343..0000000000 --- a/generated/nimodinst/nimodinst/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nimodinst._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nimodinst/nimodinst/unit_tests/_mock_helper.py b/generated/nimodinst/nimodinst/unit_tests/_mock_helper.py deleted file mode 100644 index 42dc2f8a57..0000000000 --- a/generated/nimodinst/nimodinst/unit_tests/_mock_helper.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['CloseInstalledDevicesSession'] = {} - self._defaults['CloseInstalledDevicesSession']['return'] = 0 - self._defaults['GetExtendedErrorInfo'] = {} - self._defaults['GetExtendedErrorInfo']['return'] = 0 - self._defaults['GetExtendedErrorInfo']['errorInfo'] = None - self._defaults['GetInstalledDeviceAttributeViInt32'] = {} - self._defaults['GetInstalledDeviceAttributeViInt32']['return'] = 0 - self._defaults['GetInstalledDeviceAttributeViInt32']['attributeValue'] = None - self._defaults['GetInstalledDeviceAttributeViString'] = {} - self._defaults['GetInstalledDeviceAttributeViString']['return'] = 0 - self._defaults['GetInstalledDeviceAttributeViString']['attributeValue'] = None - self._defaults['OpenInstalledDevicesSession'] = {} - self._defaults['OpenInstalledDevicesSession']['return'] = 0 - self._defaults['OpenInstalledDevicesSession']['handle'] = None - self._defaults['OpenInstalledDevicesSession']['deviceCount'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niModInst_CloseInstalledDevicesSession(self, handle): # noqa: N802 - if self._defaults['CloseInstalledDevicesSession']['return'] != 0: - return self._defaults['CloseInstalledDevicesSession']['return'] - return self._defaults['CloseInstalledDevicesSession']['return'] - - def niModInst_GetExtendedErrorInfo(self, error_info_buffer_size, error_info): # noqa: N802 - if self._defaults['GetExtendedErrorInfo']['return'] != 0: - return self._defaults['GetExtendedErrorInfo']['return'] - # error_info - if self._defaults['GetExtendedErrorInfo']['errorInfo'] is None: - raise MockFunctionCallError("niModInst_GetExtendedErrorInfo", param='errorInfo') - if error_info_buffer_size.value == 0: - return len(self._defaults['GetExtendedErrorInfo']['errorInfo']) - error_info.value = self._defaults['GetExtendedErrorInfo']['errorInfo'].encode('ascii') - return self._defaults['GetExtendedErrorInfo']['return'] - - def niModInst_GetInstalledDeviceAttributeViInt32(self, handle, index, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetInstalledDeviceAttributeViInt32']['return'] != 0: - return self._defaults['GetInstalledDeviceAttributeViInt32']['return'] - # attribute_value - if self._defaults['GetInstalledDeviceAttributeViInt32']['attributeValue'] is None: - raise MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViInt32", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetInstalledDeviceAttributeViInt32']['attributeValue'] - return self._defaults['GetInstalledDeviceAttributeViInt32']['return'] - - def niModInst_GetInstalledDeviceAttributeViString(self, handle, index, attribute_id, attribute_value_buffer_size, attribute_value): # noqa: N802 - if self._defaults['GetInstalledDeviceAttributeViString']['return'] != 0: - return self._defaults['GetInstalledDeviceAttributeViString']['return'] - # attribute_value - if self._defaults['GetInstalledDeviceAttributeViString']['attributeValue'] is None: - raise MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViString", param='attributeValue') - if attribute_value_buffer_size.value == 0: - return len(self._defaults['GetInstalledDeviceAttributeViString']['attributeValue']) - attribute_value.value = self._defaults['GetInstalledDeviceAttributeViString']['attributeValue'].encode('ascii') - return self._defaults['GetInstalledDeviceAttributeViString']['return'] - - def niModInst_OpenInstalledDevicesSession(self, driver, handle, device_count): # noqa: N802 - if self._defaults['OpenInstalledDevicesSession']['return'] != 0: - return self._defaults['OpenInstalledDevicesSession']['return'] - # handle - if self._defaults['OpenInstalledDevicesSession']['handle'] is None: - raise MockFunctionCallError("niModInst_OpenInstalledDevicesSession", param='handle') - if handle is not None: - handle.contents.value = self._defaults['OpenInstalledDevicesSession']['handle'] - # device_count - if self._defaults['OpenInstalledDevicesSession']['deviceCount'] is None: - raise MockFunctionCallError("niModInst_OpenInstalledDevicesSession", param='deviceCount') - if device_count is not None: - device_count.contents.value = self._defaults['OpenInstalledDevicesSession']['deviceCount'] - return self._defaults['OpenInstalledDevicesSession']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niModInst_CloseInstalledDevicesSession.side_effect = MockFunctionCallError("niModInst_CloseInstalledDevicesSession") - mock_library.niModInst_CloseInstalledDevicesSession.return_value = 0 - mock_library.niModInst_GetExtendedErrorInfo.side_effect = MockFunctionCallError("niModInst_GetExtendedErrorInfo") - mock_library.niModInst_GetExtendedErrorInfo.return_value = 0 - mock_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViInt32") - mock_library.niModInst_GetInstalledDeviceAttributeViInt32.return_value = 0 - mock_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViString") - mock_library.niModInst_GetInstalledDeviceAttributeViString.return_value = 0 - mock_library.niModInst_OpenInstalledDevicesSession.side_effect = MockFunctionCallError("niModInst_OpenInstalledDevicesSession") - mock_library.niModInst_OpenInstalledDevicesSession.return_value = 0 diff --git a/generated/nimodinst/nimodinst/unit_tests/test_modinst.py b/generated/nimodinst/nimodinst/unit_tests/test_modinst.py deleted file mode 100644 index f7b8075c05..0000000000 --- a/generated/nimodinst/nimodinst/unit_tests/test_modinst.py +++ /dev/null @@ -1,275 +0,0 @@ -import _matchers -import _mock_helper - -import nimodinst -import warnings - -from unittest.mock import MagicMock -from unittest.mock import patch - -SESSION_NUM_FOR_TEST = 42 - - -class TestSession: - class PatchedLibrary(nimodinst._library.Library): - def __init__(self, ctypes_library): - super().__init__(ctypes_library) - - for f in dir(self): - if f.startswith("niModInst_") and not f.endswith("_cfunc"): - setattr(self, f, MagicMock()) - - def setup_method(self, method): - self.patched_library = self.PatchedLibrary(None) - self.patched_library_singleton_get = patch('nimodinst._library_interpreter._library_singleton.get', return_value=self.patched_library) - self.patched_library_singleton_get.start() - - self.side_effects_helper = _mock_helper.SideEffectsHelper() - self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) - self.patched_library.niModInst_OpenInstalledDevicesSession.side_effect = self.side_effects_helper.niModInst_OpenInstalledDevicesSession - self.disallow_close = self.patched_library.niModInst_CloseInstalledDevicesSession.side_effect - self.patched_library.niModInst_CloseInstalledDevicesSession.side_effect = self.side_effects_helper.niModInst_CloseInstalledDevicesSession - - self.side_effects_helper['OpenInstalledDevicesSession']['handle'] = SESSION_NUM_FOR_TEST - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 - - self.iteration_device_looping = 0 - self.num_int_devices_looping = 3 - self.int_vals_device_looping = [123, 456, 789] - self.num_string_devices_looping = 4 - self.string_vals_device_looping = ["Life", "liberty", "and", "happiness"] - - def teardown_method(self, method): - self.patched_library_singleton_get.stop() - - # Helper function for mocking multiple devices - def niModInst_GetInstalledDeviceAttributeViString_looping(self, handle, index, attribute_id, attribute_value_buffer_size, attribute_value): # noqa: N802 - if attribute_value_buffer_size.value == 0: - # TODO(marcoskirsch): What about the byte for the NULL character? Issue #526 - return (len(self.string_vals_device_looping[self.iteration_device_looping])) - bytes_to_copy = self.string_vals_device_looping[self.iteration_device_looping].encode('ascii') - for i in range(0, len(bytes_to_copy)): - attribute_value[i] = bytes_to_copy[i] - self.iteration_device_looping += 1 - return 0 - - # Helper function for mocking multiple devices - def niModInst_GetInstalledDeviceAttributeViInt32_looping(self, handle, index, attribute_id, attribute_value): # noqa: N802 - attribute_value.contents.value = self.int_vals_device_looping[self.iteration_device_looping] - self.iteration_device_looping += 1 - return 0 - - # API Tests - - def test_open_and_close(self): - session = nimodinst.Session('') - self.patched_library.niModInst_OpenInstalledDevicesSession.assert_called_once_with(_matchers.ViStringMatcher(''), _matchers.ViSessionPointerMatcher(), _matchers.ViInt32PointerMatcher()) - session.close() - self.patched_library.niModInst_CloseInstalledDevicesSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) - - def test_close(self): - session = nimodinst.Session('') - session.close() - self.patched_library.niModInst_CloseInstalledDevicesSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) - - def test_context_manager(self): - with nimodinst.Session('') as session: - assert isinstance(session, nimodinst.Session) - self.patched_library.niModInst_OpenInstalledDevicesSession.assert_called_once_with(_matchers.ViStringMatcher(''), _matchers.ViSessionPointerMatcher(), _matchers.ViInt32PointerMatcher()) - self.patched_library.niModInst_CloseInstalledDevicesSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) - - def test_iterating_for(self): - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 2 - with nimodinst.Session('') as session: - assert len(session) == 2 - count = 0 - for d in session: - count += 1 - assert count == len(session) - - def test_iterating_for_empty(self): - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 0 - with nimodinst.Session('') as session: - assert len(session) == 0 - count = 0 - for d in session: - count += 1 - assert count == len(session) - - def test_get_extended_error_info(self): - error_string = 'Error' - self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['errorInfo'] = error_string - with nimodinst.Session('') as session: - # Calling the internal function directly, as get_extended_error_info() functions differently than other IVI Dance functions. - # As a result, it cannot be used directly during error handling. - result = session._interpreter.get_extended_error_info() - assert result == error_string - - def test_get_error_description_fails(self): - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['return'] = -1 - self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['return'] = -2 - with nimodinst.Session('') as session: - try: - session.devices[0].chassis_number - except nimodinst.Error as e: - assert e.code == -1 # we want the original error code from getting the attribute. - assert e.description == "Failed to retrieve error description." - - def test_get_attribute_session(self): - val = 123 - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = val - with nimodinst.Session('') as session: - attr_int = session.devices[0].chassis_number - assert attr_int == val - - def test_get_attribute_vi_int32_for_loop_index(self): - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.niModInst_GetInstalledDeviceAttributeViInt32_looping - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_int_devices_looping - index = 0 - with nimodinst.Session('') as session: - attr_int = session.devices[index].chassis_number - index += 1 - assert attr_int == self.int_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function - - def test_get_attribute_vi_string_for_loop_index(self): - self.patched_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = self.niModInst_GetInstalledDeviceAttributeViString_looping - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_string_devices_looping - index = 0 - with nimodinst.Session('') as session: - attr_int = session.devices[index].device_name - index += 1 - assert attr_int == self.string_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function - - def test_get_attribute_session_no_index(self): - val = 123 - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = val - with nimodinst.Session('') as session: - try: - session.chassis_number - assert False - except AttributeError as e: - assert str(e) == "'Session' object has no attribute 'chassis_number'" - - def test_get_attribute_vi_int32_for_loop_multiple_devices(self): - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.niModInst_GetInstalledDeviceAttributeViInt32_looping - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_int_devices_looping - with nimodinst.Session('') as session: - for d in session: - attr_int = d.chassis_number - assert attr_int == self.int_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function - - def test_get_attribute_vi_string_for_loop_multiple_devices(self): - self.patched_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = self.niModInst_GetInstalledDeviceAttributeViString_looping - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_string_devices_looping - with nimodinst.Session('') as session: - for d in session: - attr_int = d.device_name - assert attr_int == self.string_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function - - # Error Tests - def test_cannot_add_properties_to_session_set(self): - with nimodinst.Session('') as session: - try: - session.non_existent_property = 5 - assert False - except AttributeError as e: - assert str(e) == "__setattr__ not supported." - - def test_cannot_add_properties_to_session_get(self): - with nimodinst.Session('') as session: - try: - session.non_existent_property - assert False - except AttributeError as e: - assert str(e) == "'Session' object has no attribute 'non_existent_property'" - - def test_cannot_add_properties_to_device_set(self): - with nimodinst.Session('') as session: - try: - session.devices[0].non_existent_property = 5 - assert False - except AttributeError as e: - assert str(e) == "__setattr__ not supported." - - def test_cannot_add_properties_to_device_get(self): - with nimodinst.Session('') as session: - try: - session.devices[0].non_existent_property - assert False - except AttributeError as e: - assert str(e) == "'_Device' object has no attribute 'non_existent_property'" - - def test_vi_int32_attribute_read_only(self): - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 - with nimodinst.Session('') as session: - try: - session.devices[0].chassis_number = 5 - assert False - except AttributeError as e: - assert str(e) == "__setattr__ not supported." - - def test_vi_string_attribute_read_only(self): - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 - with nimodinst.Session('') as session: - try: - session.devices[0].device_name = "Not Possible" - assert False - except AttributeError as e: - assert str(e) == "__setattr__ not supported." - - def test_int_attribute_error(self): - error_code = -1234 - error_string = 'Error' - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = -1 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['return'] = error_code - self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['errorInfo'] = error_string - with nimodinst.Session('') as session: - try: - session.devices[0].chassis_number - assert False - except nimodinst.Error as e: - assert e.code == error_code - assert e.description == error_string - - def test_int_attribute_warning(self): - warning_code = 1234 - error_string = 'Error' - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = -1 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['return'] = warning_code - self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['errorInfo'] = error_string - with nimodinst.Session('') as session: - with warnings.catch_warnings(record=True) as w: - session.devices[0].chassis_number - assert len(w) == 1 - assert issubclass(w[0].category, nimodinst.DriverWarning) - assert error_string in str(w[0].message) - - def test_repr_and_str(self): - self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 - self.patched_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViString - self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 2 - self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = 42 - self.side_effects_helper['GetInstalledDeviceAttributeViString']['attributeValue'] = 'fourty two' - with nimodinst.Session('') as session: - session - print(session) - for d in session: - d - print(d) - - -# not a session test per se -def test_diagnostic_information(): - info = nimodinst.print_diagnostic_information() - assert isinstance(info, dict) diff --git a/generated/nimodinst/setup.py b/generated/nimodinst/setup.py deleted file mode 100644 index 706d39ddb2..0000000000 --- a/generated/nimodinst/setup.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nimodinst' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-ModInst Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nimodinst'], - license='MIT', - include_package_data=True, - packages=['nimodinst'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - ], - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nimodinst/tox-system_tests.ini b/generated/nimodinst/tox-system_tests.ini deleted file mode 100644 index aa76201adc..0000000000 --- a/generated/nimodinst/tox-system_tests.ini +++ /dev/null @@ -1,64 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nimodinst) -[tox] -envlist = py{310,311,312,313,314}-nimodinst-system_tests, py314-nimodinst-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nimodinst-system_tests: Run nimodinst system tests (requires NI-ModInst runtime to be installed) - nimodinst-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nimodinst-system_tests: . - nimodinst-coverage: . - -commands = - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nimodinst-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nimodinst-system_tests: python -c "import nimodinst; nimodinst.print_diagnostic_information()" - nimodinst-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nimodinst --parallel-mode -m pytest ../../src/nimodinst/examples --junitxml=../junit/junit-nimodinst-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nimodinst-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nimodinst --parallel-mode -m pytest ../../src/nimodinst/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nimodinst-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nimodinst-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nimodinst-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nimodinst-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nimodinst-system_tests: pytest < 9.2.0 - nimodinst-system_tests: coverage - nimodinst-system_tests: numpy - nimodinst-system_tests: hightime - nimodinst-system_tests: fasteners - nimodinst-system_tests: pytest-json - - nimodinst-coverage: coverage - -depends = - nimodinst-coverage: py{310,311,312,313,314}-nimodinst-system_tests - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nirfsa/README.rst b/generated/nirfsa/README.rst deleted file mode 100644 index e0fa57b21a..0000000000 --- a/generated/nirfsa/README.rst +++ /dev/null @@ -1,179 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nirfsa** module provides a Python API for NI-RFSA. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nirfsa** supports all the Operating Systems supported by NI-RFSA. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nirfsa**. - - -NI-RFSA Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-RFSA (nirfsa) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nirfsaLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nirfsaPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nirfsaDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nirfsaOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nirfsaOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nirfsaLatestVersion| image:: http://img.shields.io/pypi/v/nirfsa.svg - :alt: Latest NI-RFSA Version - :target: http://pypi.python.org/pypi/nirfsa - - -.. |nirfsaPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsa.svg - :alt: NI-RFSA supported Python versions - :target: http://pypi.python.org/pypi/nirfsa - - -.. |nirfsaDocs| image:: https://readthedocs.org/projects/nirfsa/badge/?version=latest - :alt: NI-RFSA Python API Documentation Status - :target: https://nirfsa.readthedocs.io/en/latest - - -.. |nirfsaOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsa.svg - :alt: Open Issues + Pull Requests for NI-RFSA - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsa - - -.. |nirfsaOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsa.svg - :alt: Pull Requests for NI-RFSA - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsa - - - -.. _nirfsa_installation-section: - -Installation ------------- - -As a prerequisite to using the **nirfsa** module, you must install the NI-RFSA runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-RFSA**) can be installed with `pip `_:: - - $ python -m pip install nirfsa - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nirfsa** module to open a session to an RF Signal Analyzer and perform a spectrum acquisition. - -.. code-block:: python - - import nirfsa - - # Configure the session - with nirfsa.Session(resource_name='5841', id_query=False, reset_device=False, options='Simulate=1, DriverSetup=Model:5841') as rfsa_session: - rfsa_session.acquisition_type = nirfsa.AcquisitionType.IQ - - rfsa_session.reference_level = -10 - rfsa_session.iq_carrier_frequency = 1e9 - - iq_data_array = np.zeros(1024, dtype=np.complex128) - - wfm_info = rfsa_session.read_iq_single_record_into(iq_data_array) - # Perform measurements... - -`Other usage examples can be found on GitHub. `_ -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nirfsa/nirfsa/VERSION b/generated/nirfsa/nirfsa/VERSION deleted file mode 100644 index 53a5e898dc..0000000000 --- a/generated/nirfsa/nirfsa/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.0.1.dev0 - diff --git a/generated/nirfsa/nirfsa/__init__.py b/generated/nirfsa/nirfsa/__init__.py deleted file mode 100644 index 9ce8a0c70a..0000000000 --- a/generated/nirfsa/nirfsa/__init__.py +++ /dev/null @@ -1,115 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.0.1.dev0' - -from nirfsa.enums import * # noqa: F403,F401,H303 -from nirfsa.errors import DriverWarning # noqa: F401 -from nirfsa.errors import Error # noqa: F401 -from nirfsa.grpc_session_options import * # noqa: F403,F401,H303 -from nirfsa.session import Session # noqa: F401 - -from nirfsa.coefficient_info_type import CoefficientInfo # noqa: F401 - -from nirfsa.coefficient_info_type import struct_niRFSA_coefficientInfo # noqa: F401 - -from nirfsa.waveform_info import WaveformInfo # noqa: F401 - -from nirfsa.waveform_info import struct_niRFSA_wfmInfo # noqa: F401 - -from nirfsa.spectrum_info_type import SpectrumInfo # noqa: F401 - -from nirfsa.spectrum_info_type import struct_niRFSA_spectrumInfo # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-RFSA\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-RFSA" - info['driver']['version'] = driver_version - info['module']['name'] = 'nirfsa' - info['module']['version'] = "1.0.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nirfsa/nirfsa/_attributes.py b/generated/nirfsa/nirfsa/_attributes.py deleted file mode 100644 index 198c45af1b..0000000000 --- a/generated/nirfsa/nirfsa/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nirfsa._converters as _converters -import nirfsa.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nirfsa Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nirfsa.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nirfsa/nirfsa/_complextype.py b/generated/nirfsa/nirfsa/_complextype.py deleted file mode 100644 index fbf3407307..0000000000 --- a/generated/nirfsa/nirfsa/_complextype.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import ctypes -import nirfsa._visatype as _visatype - - -class NIComplexNumber(ctypes.Structure): - _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] - - -class NIComplexNumberF32(ctypes.Structure): - _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] - - -class NIComplexI16(ctypes.Structure): - _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] diff --git a/generated/nirfsa/nirfsa/_converters.py b/generated/nirfsa/nirfsa/_converters.py deleted file mode 100644 index 03b820e260..0000000000 --- a/generated/nirfsa/nirfsa/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nirfsa._visatype as _visatype -import nirfsa.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nirfsa/nirfsa/_grpc_stub_interpreter.py b/generated/nirfsa/nirfsa/_grpc_stub_interpreter.py deleted file mode 100644 index e23c12a58a..0000000000 --- a/generated/nirfsa/nirfsa/_grpc_stub_interpreter.py +++ /dev/null @@ -1,598 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nidevice_pb2 as grpc_complex_types # noqa: F401 -from . import nirfsa_pb2 as grpc_types -from . import nirfsa_pb2_grpc as nirfsa_grpc - -from . import coefficient_info_type as coefficient_info_type # noqa: F401 - -from . import waveform_info as waveform_info # noqa: F401 - -from . import spectrum_info_type as spectrum_info_type # noqa: F401 - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nirfsa_grpc.NiRFSAStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.Abort, - grpc_types.AbortRequest(vi=self._vi), - ) - - def change_external_calibration_password(self, old_password, new_password): # noqa: N802 - self._invoke( - self._client.ChangeExternalCalibrationPassword, - grpc_types.ChangeExternalCalibrationPasswordRequest(vi=self._vi, old_password=old_password, new_password=new_password), - ) - - def check_acquisition_status(self): # noqa: N802 - response = self._invoke( - self._client.CheckAcquisitionStatus, - grpc_types.CheckAcquisitionStatusRequest(vi=self._vi), - ) - return response.is_done - - def clear_self_calibrate_range(self): # noqa: N802 - self._invoke( - self._client.ClearSelfCalibrateRange, - grpc_types.ClearSelfCalibrateRangeRequest(vi=self._vi), - ) - - def commit(self): # noqa: N802 - self._invoke( - self._client.Commit, - grpc_types.CommitRequest(vi=self._vi), - ) - - def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 - self._invoke( - self._client.ConfigureDeembeddingTableInterpolationLinear, - grpc_types.ConfigureDeembeddingTableInterpolationLinearRequest(vi=self._vi, port=port, table_name=table_name, format_raw=format.value), - ) - - def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 - self._invoke( - self._client.ConfigureDeembeddingTableInterpolationNearest, - grpc_types.ConfigureDeembeddingTableInterpolationNearestRequest(vi=self._vi, port=port, table_name=table_name), - ) - - def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 - self._invoke( - self._client.ConfigureDeembeddingTableInterpolationSpline, - grpc_types.ConfigureDeembeddingTableInterpolationSplineRequest(vi=self._vi, port=port, table_name=table_name), - ) - - def configure_digital_edge_advance_trigger(self, source, edge): # noqa: N802 - self._invoke( - self._client.ConfigureDigitalEdgeAdvanceTrigger, - grpc_types.ConfigureDigitalEdgeAdvanceTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value), - ) - - def configure_digital_edge_ref_trigger(self, source, edge, pretrigger_samples): # noqa: N802 - self._invoke( - self._client.ConfigureDigitalEdgeRefTrigger, - grpc_types.ConfigureDigitalEdgeRefTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value, pretrigger_samples=pretrigger_samples), - ) - - def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 - self._invoke( - self._client.ConfigureDigitalEdgeStartTrigger, - grpc_types.ConfigureDigitalEdgeStartTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value), - ) - - def configure_iq_power_edge_ref_trigger(self, source, level, slope, pretrigger_samples): # noqa: N802 - self._invoke( - self._client.ConfigureIQPowerEdgeRefTrigger, - grpc_types.ConfigureIQPowerEdgeRefTriggerRequest(vi=self._vi, level=level, slope_raw=slope.value, pretrigger_samples=pretrigger_samples), - ) - - def configure_ref_clock(self, clock_source, ref_clock_rate): # noqa: N802 - self._invoke( - self._client.ConfigureRefClock, - grpc_types.ConfigureRefClockRequest(vi=self._vi, clock_source_raw=clock_source.value, ref_clock_rate=ref_clock_rate), - ) - - def configure_software_edge_advance_trigger(self): # noqa: N802 - self._invoke( - self._client.ConfigureSoftwareEdgeAdvanceTrigger, - grpc_types.ConfigureSoftwareEdgeAdvanceTriggerRequest(vi=self._vi), - ) - - def configure_software_edge_ref_trigger(self, pretrigger_samples): # noqa: N802 - self._invoke( - self._client.ConfigureSoftwareEdgeRefTrigger, - grpc_types.ConfigureSoftwareEdgeRefTriggerRequest(vi=self._vi, pretrigger_samples=pretrigger_samples), - ) - - def configure_software_edge_start_trigger(self): # noqa: N802 - self._invoke( - self._client.ConfigureSoftwareEdgeStartTrigger, - grpc_types.ConfigureSoftwareEdgeStartTriggerRequest(vi=self._vi), - ) - - def configure_spectrum_frequency_center_span(self, channel_list, center_frequency, span): # noqa: N802 - self._invoke( - self._client.ConfigureSpectrumFrequencyCenterSpan, - grpc_types.ConfigureSpectrumFrequencyCenterSpanRequest(vi=self._vi, channel_list=channel_list, center_frequency=center_frequency, span=span), - ) - - def configure_spectrum_frequency_start_stop(self, channel_list, start_frequency, stop_frequency): # noqa: N802 - self._invoke( - self._client.ConfigureSpectrumFrequencyStartStop, - grpc_types.ConfigureSpectrumFrequencyStartStopRequest(vi=self._vi, channel_list=channel_list, start_frequency=start_frequency, stop_frequency=stop_frequency), - ) - - def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - sparameter_table_list = [ - grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) - for val in sparameter_table.ravel() - ] - self._invoke( - self._client.CreateDeembeddingSparameterTableArray, - grpc_types.CreateDeembeddingSparameterTableArrayRequest(vi=self._vi, port=port, table_name=table_name, frequencies=frequencies, sparameter_table=sparameter_table_list, number_of_ports=number_of_ports, sparameter_orientation_raw=sparameter_orientation.value), - ) - - def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - self._invoke( - self._client.CreateDeembeddingSparameterTableS2PFile, - grpc_types.CreateDeembeddingSparameterTableS2PFileRequest(vi=self._vi, port=port, table_name=table_name, s2p_file_path=s2p_file_path, sparameter_orientation_raw=sparameter_orientation.value), - ) - - def delete_all_deembedding_tables(self): # noqa: N802 - self._invoke( - self._client.DeleteAllDeembeddingTables, - grpc_types.DeleteAllDeembeddingTablesRequest(vi=self._vi), - ) - - def delete_deembedding_table(self, port, table_name): # noqa: N802 - self._invoke( - self._client.DeleteDeembeddingTable, - grpc_types.DeleteDeembeddingTableRequest(vi=self._vi, port=port, table_name=table_name), - ) - - def disable_advance_trigger(self): # noqa: N802 - self._invoke( - self._client.DisableAdvanceTrigger, - grpc_types.DisableAdvanceTriggerRequest(vi=self._vi), - ) - - def disable_ref_trigger(self): # noqa: N802 - self._invoke( - self._client.DisableRefTrigger, - grpc_types.DisableRefTriggerRequest(vi=self._vi), - ) - - def disable_start_trigger(self): # noqa: N802 - self._invoke( - self._client.DisableStartTrigger, - grpc_types.DisableStartTriggerRequest(vi=self._vi), - ) - - def enable_session_access(self, enable): # noqa: N802 - self._invoke( - self._client.EnableSessionAccess, - grpc_types.EnableSessionAccessRequest(vi=self._vi, enable=enable), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, status_code=error_code), - ) - return response.error_message - - def fetch_iq_multi_record_complex_f32(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 - import numpy - samples_per_record = (iq_data_arrays.shape[1]) if iq_data_arrays is not None and iq_data_arrays.ndim > 1 else 0 - response = self._invoke( - self._client.FetchIQMultiRecordComplexF32, - grpc_types.FetchIQMultiRecordComplexF32Request(vi=self._vi, channel_list=channel_list, starting_record=starting_record, number_of_records=number_of_records, number_of_samples=samples_per_record, timeout=timeout), - ) - data_flat = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex64) - for rec in range(number_of_records): - iq_data_arrays[rec] = data_flat[rec * samples_per_record:(rec + 1) * samples_per_record] - return [waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) for r in response.wfm_info] - - def fetch_iq_multi_record_complex_f64(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 - import numpy - samples_per_record = (iq_data_arrays.shape[1]) if iq_data_arrays is not None and iq_data_arrays.ndim > 1 else 0 - response = self._invoke( - self._client.FetchIQMultiRecordComplexF64, - grpc_types.FetchIQMultiRecordComplexF64Request(vi=self._vi, channel_list=channel_list, starting_record=starting_record, number_of_records=number_of_records, number_of_samples=samples_per_record, timeout=timeout), - ) - data_flat = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex128) - for rec in range(number_of_records): - iq_data_arrays[rec] = data_flat[rec * samples_per_record:(rec + 1) * samples_per_record] - return [waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) for r in response.wfm_info] - - def fetch_iq_multi_record_complex_i16(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 - samples_per_record = (iq_data_arrays.shape[1] // 2) if iq_data_arrays is not None and iq_data_arrays.ndim > 1 else 0 - response = self._invoke( - self._client.FetchIQMultiRecordComplexI16, - grpc_types.FetchIQMultiRecordComplexI16Request(vi=self._vi, channel_list=channel_list, starting_record=starting_record, number_of_records=number_of_records, number_of_samples=samples_per_record, timeout=timeout), - ) - for rec in range(number_of_records): - for i, x in enumerate(response.data[rec * samples_per_record:(rec + 1) * samples_per_record]): - iq_data_arrays[rec, 2 * i] = x.real - iq_data_arrays[rec, 2 * i + 1] = x.imaginary - return [waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) for r in response.wfm_info] - - def fetch_iq_single_record_complex_f32(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 - import numpy - response = self._invoke( - self._client.FetchIQSingleRecordComplexF32, - grpc_types.FetchIQSingleRecordComplexF32Request(vi=self._vi, channel_list=channel_list, record_number=record_number, number_of_samples=len(iq_data_array), timeout=timeout), - ) - iq_data_array[:] = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex64) - r = response.wfm_info - return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) - - def fetch_iq_single_record_complex_f64(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 - import numpy - response = self._invoke( - self._client.FetchIQSingleRecordComplexF64, - grpc_types.FetchIQSingleRecordComplexF64Request(vi=self._vi, channel_list=channel_list, record_number=record_number, number_of_samples=len(iq_data_array), timeout=timeout), - ) - iq_data_array[:] = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex128) - r = response.wfm_info - return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) - - def fetch_iq_single_record_complex_i16(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 - response = self._invoke( - self._client.FetchIQSingleRecordComplexI16, - grpc_types.FetchIQSingleRecordComplexI16Request(vi=self._vi, channel_list=channel_list, record_number=record_number, number_of_samples=len(iq_data_array) // 2, timeout=timeout), - ) - for i, x in enumerate(response.data): - iq_data_array[2 * i] = x.real - iq_data_array[2 * i + 1] = x.imaginary - r = response.wfm_info - return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt64, - grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViSession, - grpc_types.GetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.value - - def get_deembedding_sparameters(self): - import numpy as np - response = self._invoke( - self._client.GetDeembeddingSparameters, - grpc_types.GetDeembeddingSparametersRequest(vi=self._vi), - ) - number_of_ports = response.number_of_ports - sparameters = np.array([c.real + 1j * c.imaginary for c in response.sparameters], dtype=np.complex128) - sparameters = sparameters.reshape((number_of_ports, number_of_ports)) - return sparameters - - def get_deembedding_table_number_of_ports(self): # noqa: N802 - response = self._invoke( - self._client.GetDeembeddingTableNumberOfPorts, - grpc_types.GetDeembeddingTableNumberOfPortsRequest(vi=self._vi), - ) - return response.number_of_ports - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.error_description - - def get_ext_cal_last_date_and_time(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalLastDateAndTime, - grpc_types.GetExtCalLastDateAndTimeRequest(vi=self._vi), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_ext_cal_recommended_interval(self): # noqa: N802 - response = self._invoke( - self._client.GetExtCalRecommendedInterval, - grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), - ) - return response.months - - def get_fetch_backlog(self, channel_list, record_number): # noqa: N802 - response = self._invoke( - self._client.GetFetchBacklog, - grpc_types.GetFetchBacklogRequest(vi=self._vi, channel_list=channel_list, record_number=record_number), - ) - return response.backlog - - def get_frequency_response(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.GetFrequencyResponse, - grpc_types.GetFrequencyResponseRequest(vi=self._vi, channel_list=channel_list), - ) - return response.frequencies, response.magnitude_response, response.phase_response - - def get_scaling_coefficients(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.GetScalingCoefficients, - grpc_types.GetScalingCoefficientsRequest(vi=self._vi, channel_list=channel_list), - ) - return [coefficient_info_type.CoefficientInfo(x) for x in response.coefficient_info] - - def get_self_cal_last_date_and_time(self, self_calibration_step): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalLastDateAndTime, - grpc_types.GetSelfCalLastDateAndTimeRequest(vi=self._vi, self_calibration_step=self_calibration_step.value), - ) - return response.year, response.month, response.day, response.hour, response.minute - - def get_self_calibration_temperature(self, self_calibration_step): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalLastTemp, - grpc_types.GetSelfCalLastTempRequest(vi=self._vi, self_calibration_step=self_calibration_step.value), - ) - return response.temp - - def get_terminal_name(self, signal, signal_identifier): # noqa: N802 - response = self._invoke( - self._client.GetTerminalName, - grpc_types.GetTerminalNameRequest(vi=self._vi, signal_raw=signal.value, signal_identifier=signal_identifier, buffer_size=2048), - ) - return response.terminal_name - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithOptions, - grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate(self): # noqa: N802 - self._invoke( - self._client.Initiate, - grpc_types.InitiateRequest(vi=self._vi), - ) - - def is_self_cal_valid(self): # noqa: N802 - response = self._invoke( - self._client.IsSelfCalValid, - grpc_types.IsSelfCalValidRequest(vi=self._vi), - ) - return response.self_cal_valid, enums.SelfCalSteps(response.valid_steps_raw) - - def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 - self._invoke( - self._client.LoadConfigurationsFromFile, - grpc_types.LoadConfigurationsFromFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def perform_thermal_correction(self): # noqa: N802 - self._invoke( - self._client.PerformThermalCorrection, - grpc_types.PerformThermalCorrectionRequest(vi=self._vi), - ) - - def read_iq_single_record_complex_f64(self, channel_list, iq_data_array, timeout): # noqa: N802 - import numpy - response = self._invoke( - self._client.ReadIQSingleRecordComplexF64, - grpc_types.ReadIQSingleRecordComplexF64Request(vi=self._vi, channel_list=channel_list, timeout=timeout, data_array_size=len(iq_data_array)), - ) - iq_data_array[:] = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex128) - r = response.wfm_info - return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) - - def read_power_spectrum_f32(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 - response = self._invoke( - self._client.ReadPowerSpectrumF32, - grpc_types.ReadPowerSpectrumF32Request(vi=self._vi, channel_list=channel_list, timeout=timeout, data_array_size=len(power_spectrum_data_array)), - ) - power_spectrum_data_array[:] = response.power_spectrum_data - s = response.spectrum_info - return spectrum_info_type.SpectrumInfo(initial_frequency=s.initial_frequency, frequency_increment=s.frequency_increment, number_of_spectral_lines=s.number_of_spectral_lines) - - def read_power_spectrum_f64(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 - response = self._invoke( - self._client.ReadPowerSpectrumF64, - grpc_types.ReadPowerSpectrumF64Request(vi=self._vi, channel_list=channel_list, timeout=timeout, data_array_size=len(power_spectrum_data_array)), - ) - power_spectrum_data_array[:] = response.power_spectrum_data - s = response.spectrum_info - return spectrum_info_type.SpectrumInfo(initial_frequency=s.initial_frequency, frequency_increment=s.frequency_increment, number_of_spectral_lines=s.number_of_spectral_lines) - - def reset_device(self): # noqa: N802 - self._invoke( - self._client.ResetDevice, - grpc_types.ResetDeviceRequest(vi=self._vi), - ) - - def reset_with_options(self, steps_to_omit): # noqa: N802 - self._invoke( - self._client.ResetWithOptions, - grpc_types.ResetWithOptionsRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value), - ) - - def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 - self._invoke( - self._client.SaveConfigurationsToFile, - grpc_types.SaveConfigurationsToFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), - ) - - def self_calibrate_range(self, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 - self._invoke( - self._client.SelfCalibrateRange, - grpc_types.SelfCalibrateRangeRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value, min_frequency=minimum_frequency, max_frequency=maximum_frequency, min_reference_level=minimum_reference_level, max_reference_level=maximum_reference_level), - ) - - def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 - self._invoke( - self._client.SendSoftwareEdgeTrigger, - grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_identifier=trigger_identifier), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value=value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), - ) - - def set_attribute_vi_int64(self, channel_name, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt64, - grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), - ) - - def set_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 - self._invoke( - self._client.SetAttributeViSession, - grpc_types.SetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value=self._vi), - ) - - def set_attribute_vi_string(self, channel_name, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), - ) - - def unlock(self): # noqa: N802 - self._lock.release() - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.test_result, response.test_message diff --git a/generated/nirfsa/nirfsa/_library.py b/generated/nirfsa/nirfsa/_library.py deleted file mode 100644 index c5a2bebf1e..0000000000 --- a/generated/nirfsa/nirfsa/_library.py +++ /dev/null @@ -1,701 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nirfsa.errors as errors -import threading - -from nirfsa._complextype import * # noqa: F403 -from nirfsa._visatype import * # noqa: F403,H303 - -import nirfsa.coefficient_info_type as coefficient_info_type # noqa: F401 - -import nirfsa.waveform_info as waveform_info # noqa: F401 - -import nirfsa.spectrum_info_type as spectrum_info_type # noqa: F401 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niRFSA_Abort_cfunc = None - self.niRFSA_ChangeExternalCalibrationPassword_cfunc = None - self.niRFSA_CheckAcquisitionStatus_cfunc = None - self.niRFSA_ClearSelfCalibrateRange_cfunc = None - self.niRFSA_Commit_cfunc = None - self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc = None - self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc = None - self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc = None - self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc = None - self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc = None - self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc = None - self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc = None - self.niRFSA_ConfigureRefClock_cfunc = None - self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc = None - self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc = None - self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc = None - self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc = None - self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc = None - self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc = None - self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc = None - self.niRFSA_DeleteAllDeembeddingTables_cfunc = None - self.niRFSA_DeleteDeembeddingTable_cfunc = None - self.niRFSA_DisableAdvanceTrigger_cfunc = None - self.niRFSA_DisableRefTrigger_cfunc = None - self.niRFSA_DisableStartTrigger_cfunc = None - self.niRFSA_EnableSessionAccess_cfunc = None - self.niRFSA_ErrorMessage_cfunc = None - self.niRFSA_FetchIQMultiRecordComplexF32_cfunc = None - self.niRFSA_FetchIQMultiRecordComplexF64_cfunc = None - self.niRFSA_FetchIQMultiRecordComplexI16_cfunc = None - self.niRFSA_FetchIQSingleRecordComplexF32_cfunc = None - self.niRFSA_FetchIQSingleRecordComplexF64_cfunc = None - self.niRFSA_FetchIQSingleRecordComplexI16_cfunc = None - self.niRFSA_GetAttributeViBoolean_cfunc = None - self.niRFSA_GetAttributeViInt32_cfunc = None - self.niRFSA_GetAttributeViInt64_cfunc = None - self.niRFSA_GetAttributeViReal64_cfunc = None - self.niRFSA_GetAttributeViSession_cfunc = None - self.niRFSA_GetAttributeViString_cfunc = None - self.niRFSA_GetDeembeddingSparameters_cfunc = None - self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc = None - self.niRFSA_GetError_cfunc = None - self.niRFSA_GetExtCalLastDateAndTime_cfunc = None - self.niRFSA_GetExtCalRecommendedInterval_cfunc = None - self.niRFSA_GetFetchBacklog_cfunc = None - self.niRFSA_GetFrequencyResponse_cfunc = None - self.niRFSA_GetScalingCoefficients_cfunc = None - self.niRFSA_GetSelfCalLastDateAndTime_cfunc = None - self.niRFSA_GetSelfCalLastTemp_cfunc = None - self.niRFSA_GetTerminalName_cfunc = None - self.niRFSA_InitWithOptions_cfunc = None - self.niRFSA_Initiate_cfunc = None - self.niRFSA_IsSelfCalValid_cfunc = None - self.niRFSA_LoadConfigurationsFromFile_cfunc = None - self.niRFSA_LockSession_cfunc = None - self.niRFSA_PerformThermalCorrection_cfunc = None - self.niRFSA_ReadIQSingleRecordComplexF64_cfunc = None - self.niRFSA_ReadPowerSpectrumF32_cfunc = None - self.niRFSA_ReadPowerSpectrumF64_cfunc = None - self.niRFSA_ResetDevice_cfunc = None - self.niRFSA_ResetWithOptions_cfunc = None - self.niRFSA_SaveConfigurationsToFile_cfunc = None - self.niRFSA_SelfCalibrateRange_cfunc = None - self.niRFSA_SendSoftwareEdgeTrigger_cfunc = None - self.niRFSA_SetAttributeViBoolean_cfunc = None - self.niRFSA_SetAttributeViInt32_cfunc = None - self.niRFSA_SetAttributeViInt64_cfunc = None - self.niRFSA_SetAttributeViReal64_cfunc = None - self.niRFSA_SetAttributeViSession_cfunc = None - self.niRFSA_SetAttributeViString_cfunc = None - self.niRFSA_UnlockSession_cfunc = None - self.niRFSA_close_cfunc = None - self.niRFSA_reset_cfunc = None - self.niRFSA_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niRFSA_Abort(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_Abort_cfunc is None: - self.niRFSA_Abort_cfunc = self._get_library_function('niRFSA_Abort') - self.niRFSA_Abort_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_Abort_cfunc(vi) - - def niRFSA_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 - with self._func_lock: - if self.niRFSA_ChangeExternalCalibrationPassword_cfunc is None: - self.niRFSA_ChangeExternalCalibrationPassword_cfunc = self._get_library_function('niRFSA_ChangeExternalCalibrationPassword') - self.niRFSA_ChangeExternalCalibrationPassword_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_ChangeExternalCalibrationPassword_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ChangeExternalCalibrationPassword_cfunc(vi, old_password, new_password) - - def niRFSA_CheckAcquisitionStatus(self, vi, is_done): # noqa: N802 - with self._func_lock: - if self.niRFSA_CheckAcquisitionStatus_cfunc is None: - self.niRFSA_CheckAcquisitionStatus_cfunc = self._get_library_function('niRFSA_CheckAcquisitionStatus') - self.niRFSA_CheckAcquisitionStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSA_CheckAcquisitionStatus_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_CheckAcquisitionStatus_cfunc(vi, is_done) - - def niRFSA_ClearSelfCalibrateRange(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_ClearSelfCalibrateRange_cfunc is None: - self.niRFSA_ClearSelfCalibrateRange_cfunc = self._get_library_function('niRFSA_ClearSelfCalibrateRange') - self.niRFSA_ClearSelfCalibrateRange_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_ClearSelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ClearSelfCalibrateRange_cfunc(vi) - - def niRFSA_Commit(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_Commit_cfunc is None: - self.niRFSA_Commit_cfunc = self._get_library_function('niRFSA_Commit') - self.niRFSA_Commit_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_Commit_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_Commit_cfunc(vi) - - def niRFSA_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc is None: - self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc = self._get_library_function('niRFSA_ConfigureDeembeddingTableInterpolationLinear') - self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc(vi, port, table_name, format) - - def niRFSA_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc is None: - self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc = self._get_library_function('niRFSA_ConfigureDeembeddingTableInterpolationNearest') - self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc(vi, port, table_name) - - def niRFSA_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc is None: - self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc = self._get_library_function('niRFSA_ConfigureDeembeddingTableInterpolationSpline') - self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc(vi, port, table_name) - - def niRFSA_ConfigureDigitalEdgeAdvanceTrigger(self, vi, source, edge): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc is None: - self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc = self._get_library_function('niRFSA_ConfigureDigitalEdgeAdvanceTrigger') - self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc(vi, source, edge) - - def niRFSA_ConfigureDigitalEdgeRefTrigger(self, vi, source, edge, pretrigger_samples): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc is None: - self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc = self._get_library_function('niRFSA_ConfigureDigitalEdgeRefTrigger') - self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt64] # noqa: F405 - self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc(vi, source, edge, pretrigger_samples) - - def niRFSA_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc is None: - self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc = self._get_library_function('niRFSA_ConfigureDigitalEdgeStartTrigger') - self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc(vi, source, edge) - - def niRFSA_ConfigureIQPowerEdgeRefTrigger(self, vi, source, level, slope, pretrigger_samples): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc is None: - self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc = self._get_library_function('niRFSA_ConfigureIQPowerEdgeRefTrigger') - self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ViInt64] # noqa: F405 - self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc(vi, source, level, slope, pretrigger_samples) - - def niRFSA_ConfigureRefClock(self, vi, clock_source, ref_clock_rate): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureRefClock_cfunc is None: - self.niRFSA_ConfigureRefClock_cfunc = self._get_library_function('niRFSA_ConfigureRefClock') - self.niRFSA_ConfigureRefClock_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64] # noqa: F405 - self.niRFSA_ConfigureRefClock_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureRefClock_cfunc(vi, clock_source, ref_clock_rate) - - def niRFSA_ConfigureSoftwareEdgeAdvanceTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc is None: - self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc = self._get_library_function('niRFSA_ConfigureSoftwareEdgeAdvanceTrigger') - self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc(vi) - - def niRFSA_ConfigureSoftwareEdgeRefTrigger(self, vi, pretrigger_samples): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc is None: - self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc = self._get_library_function('niRFSA_ConfigureSoftwareEdgeRefTrigger') - self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc.argtypes = [ViSession, ViInt64] # noqa: F405 - self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc(vi, pretrigger_samples) - - def niRFSA_ConfigureSoftwareEdgeStartTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc is None: - self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc = self._get_library_function('niRFSA_ConfigureSoftwareEdgeStartTrigger') - self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc(vi) - - def niRFSA_ConfigureSpectrumFrequencyCenterSpan(self, vi, channel_list, center_frequency, span): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc is None: - self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc = self._get_library_function('niRFSA_ConfigureSpectrumFrequencyCenterSpan') - self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 - self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc(vi, channel_list, center_frequency, span) - - def niRFSA_ConfigureSpectrumFrequencyStartStop(self, vi, channel_list, start_frequency, stop_frequency): # noqa: N802 - with self._func_lock: - if self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc is None: - self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc = self._get_library_function('niRFSA_ConfigureSpectrumFrequencyStartStop') - self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 - self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc(vi, channel_list, start_frequency, stop_frequency) - - def niRFSA_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 - with self._func_lock: - if self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc is None: - self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc = self._get_library_function('niRFSA_CreateDeembeddingSparameterTableArray') - self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(NIComplexNumber), ViInt32, ViInt32, ViInt32] # noqa: F405 - self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc(vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation) - - def niRFSA_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - with self._func_lock: - if self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc is None: - self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc = self._get_library_function('niRFSA_CreateDeembeddingSparameterTableS2PFile') - self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc(vi, port, table_name, s2p_file_path, sparameter_orientation) - - def niRFSA_DeleteAllDeembeddingTables(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_DeleteAllDeembeddingTables_cfunc is None: - self.niRFSA_DeleteAllDeembeddingTables_cfunc = self._get_library_function('niRFSA_DeleteAllDeembeddingTables') - self.niRFSA_DeleteAllDeembeddingTables_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_DeleteAllDeembeddingTables_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_DeleteAllDeembeddingTables_cfunc(vi) - - def niRFSA_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 - with self._func_lock: - if self.niRFSA_DeleteDeembeddingTable_cfunc is None: - self.niRFSA_DeleteDeembeddingTable_cfunc = self._get_library_function('niRFSA_DeleteDeembeddingTable') - self.niRFSA_DeleteDeembeddingTable_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_DeleteDeembeddingTable_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_DeleteDeembeddingTable_cfunc(vi, port, table_name) - - def niRFSA_DisableAdvanceTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_DisableAdvanceTrigger_cfunc is None: - self.niRFSA_DisableAdvanceTrigger_cfunc = self._get_library_function('niRFSA_DisableAdvanceTrigger') - self.niRFSA_DisableAdvanceTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_DisableAdvanceTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_DisableAdvanceTrigger_cfunc(vi) - - def niRFSA_DisableRefTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_DisableRefTrigger_cfunc is None: - self.niRFSA_DisableRefTrigger_cfunc = self._get_library_function('niRFSA_DisableRefTrigger') - self.niRFSA_DisableRefTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_DisableRefTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_DisableRefTrigger_cfunc(vi) - - def niRFSA_DisableStartTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_DisableStartTrigger_cfunc is None: - self.niRFSA_DisableStartTrigger_cfunc = self._get_library_function('niRFSA_DisableStartTrigger') - self.niRFSA_DisableStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_DisableStartTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_DisableStartTrigger_cfunc(vi) - - def niRFSA_EnableSessionAccess(self, vi, enable): # noqa: N802 - with self._func_lock: - if self.niRFSA_EnableSessionAccess_cfunc is None: - self.niRFSA_EnableSessionAccess_cfunc = self._get_library_function('niRFSA_EnableSessionAccess') - self.niRFSA_EnableSessionAccess_cfunc.argtypes = [ViSession, ViBoolean] # noqa: F405 - self.niRFSA_EnableSessionAccess_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_EnableSessionAccess_cfunc(vi, enable) - - def niRFSA_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niRFSA_ErrorMessage_cfunc is None: - self.niRFSA_ErrorMessage_cfunc = self._get_library_function('niRFSA_ErrorMessage') - self.niRFSA_ErrorMessage_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_ErrorMessage_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ErrorMessage_cfunc(vi, error_code, error_message) - - def niRFSA_FetchIQMultiRecordComplexF32(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_FetchIQMultiRecordComplexF32_cfunc is None: - self.niRFSA_FetchIQMultiRecordComplexF32_cfunc = self._get_library_function('niRFSA_FetchIQMultiRecordComplexF32') - self.niRFSA_FetchIQMultiRecordComplexF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumberF32), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_FetchIQMultiRecordComplexF32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_FetchIQMultiRecordComplexF32_cfunc(vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info) - - def niRFSA_FetchIQMultiRecordComplexF64(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_FetchIQMultiRecordComplexF64_cfunc is None: - self.niRFSA_FetchIQMultiRecordComplexF64_cfunc = self._get_library_function('niRFSA_FetchIQMultiRecordComplexF64') - self.niRFSA_FetchIQMultiRecordComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumber), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_FetchIQMultiRecordComplexF64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_FetchIQMultiRecordComplexF64_cfunc(vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info) - - def niRFSA_FetchIQMultiRecordComplexI16(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_FetchIQMultiRecordComplexI16_cfunc is None: - self.niRFSA_FetchIQMultiRecordComplexI16_cfunc = self._get_library_function('niRFSA_FetchIQMultiRecordComplexI16') - self.niRFSA_FetchIQMultiRecordComplexI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexI16), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_FetchIQMultiRecordComplexI16_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_FetchIQMultiRecordComplexI16_cfunc(vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info) - - def niRFSA_FetchIQSingleRecordComplexF32(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_FetchIQSingleRecordComplexF32_cfunc is None: - self.niRFSA_FetchIQSingleRecordComplexF32_cfunc = self._get_library_function('niRFSA_FetchIQSingleRecordComplexF32') - self.niRFSA_FetchIQSingleRecordComplexF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumberF32), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_FetchIQSingleRecordComplexF32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_FetchIQSingleRecordComplexF32_cfunc(vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info) - - def niRFSA_FetchIQSingleRecordComplexF64(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_FetchIQSingleRecordComplexF64_cfunc is None: - self.niRFSA_FetchIQSingleRecordComplexF64_cfunc = self._get_library_function('niRFSA_FetchIQSingleRecordComplexF64') - self.niRFSA_FetchIQSingleRecordComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumber), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_FetchIQSingleRecordComplexF64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_FetchIQSingleRecordComplexF64_cfunc(vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info) - - def niRFSA_FetchIQSingleRecordComplexI16(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_FetchIQSingleRecordComplexI16_cfunc is None: - self.niRFSA_FetchIQSingleRecordComplexI16_cfunc = self._get_library_function('niRFSA_FetchIQSingleRecordComplexI16') - self.niRFSA_FetchIQSingleRecordComplexI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexI16), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_FetchIQSingleRecordComplexI16_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_FetchIQSingleRecordComplexI16_cfunc(vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info) - - def niRFSA_GetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetAttributeViBoolean_cfunc is None: - self.niRFSA_GetAttributeViBoolean_cfunc = self._get_library_function('niRFSA_GetAttributeViBoolean') - self.niRFSA_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSA_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_GetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetAttributeViInt32_cfunc is None: - self.niRFSA_GetAttributeViInt32_cfunc = self._get_library_function('niRFSA_GetAttributeViInt32') - self.niRFSA_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_GetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetAttributeViInt64_cfunc is None: - self.niRFSA_GetAttributeViInt64_cfunc = self._get_library_function('niRFSA_GetAttributeViInt64') - self.niRFSA_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niRFSA_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetAttributeViInt64_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_GetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetAttributeViReal64_cfunc is None: - self.niRFSA_GetAttributeViReal64_cfunc = self._get_library_function('niRFSA_GetAttributeViReal64') - self.niRFSA_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSA_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_GetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetAttributeViSession_cfunc is None: - self.niRFSA_GetAttributeViSession_cfunc = self._get_library_function('niRFSA_GetAttributeViSession') - self.niRFSA_GetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViSession)] # noqa: F405 - self.niRFSA_GetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetAttributeViSession_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_GetAttributeViString(self, vi, channel_name, attribute_id, buf_size, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetAttributeViString_cfunc is None: - self.niRFSA_GetAttributeViString_cfunc = self._get_library_function('niRFSA_GetAttributeViString') - self.niRFSA_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buf_size, value) - - def niRFSA_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetDeembeddingSparameters_cfunc is None: - self.niRFSA_GetDeembeddingSparameters_cfunc = self._get_library_function('niRFSA_GetDeembeddingSparameters') - self.niRFSA_GetDeembeddingSparameters_cfunc.argtypes = [ViSession, ctypes.POINTER(NIComplexNumber), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetDeembeddingSparameters_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetDeembeddingSparameters_cfunc(vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports) - - def niRFSA_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc is None: - self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc = self._get_library_function('niRFSA_GetDeembeddingTableNumberOfPorts') - self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc(vi, number_of_ports) - - def niRFSA_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetError_cfunc is None: - self.niRFSA_GetError_cfunc = self._get_library_function('niRFSA_GetError') - self.niRFSA_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) - - def niRFSA_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetExtCalLastDateAndTime_cfunc is None: - self.niRFSA_GetExtCalLastDateAndTime_cfunc = self._get_library_function('niRFSA_GetExtCalLastDateAndTime') - self.niRFSA_GetExtCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetExtCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetExtCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) - - def niRFSA_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetExtCalRecommendedInterval_cfunc is None: - self.niRFSA_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niRFSA_GetExtCalRecommendedInterval') - self.niRFSA_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetExtCalRecommendedInterval_cfunc(vi, months) - - def niRFSA_GetFetchBacklog(self, vi, channel_list, record_number, backlog): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetFetchBacklog_cfunc is None: - self.niRFSA_GetFetchBacklog_cfunc = self._get_library_function('niRFSA_GetFetchBacklog') - self.niRFSA_GetFetchBacklog_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niRFSA_GetFetchBacklog_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetFetchBacklog_cfunc(vi, channel_list, record_number, backlog) - - def niRFSA_GetFrequencyResponse(self, vi, channel_list, buffer_size, frequencies, magnitude_response, phase_response, number_of_frequencies): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetFrequencyResponse_cfunc is None: - self.niRFSA_GetFrequencyResponse_cfunc = self._get_library_function('niRFSA_GetFrequencyResponse') - self.niRFSA_GetFrequencyResponse_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetFrequencyResponse_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetFrequencyResponse_cfunc(vi, channel_list, buffer_size, frequencies, magnitude_response, phase_response, number_of_frequencies) - - def niRFSA_GetScalingCoefficients(self, vi, channel_list, array_size, coefficient_info, number_of_coefficient_sets): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetScalingCoefficients_cfunc is None: - self.niRFSA_GetScalingCoefficients_cfunc = self._get_library_function('niRFSA_GetScalingCoefficients') - self.niRFSA_GetScalingCoefficients_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(coefficient_info_type.struct_niRFSA_coefficientInfo), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetScalingCoefficients_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetScalingCoefficients_cfunc(vi, channel_list, array_size, coefficient_info, number_of_coefficient_sets) - - def niRFSA_GetSelfCalLastDateAndTime(self, vi, self_calibration_step, year, month, day, hour, minute): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetSelfCalLastDateAndTime_cfunc is None: - self.niRFSA_GetSelfCalLastDateAndTime_cfunc = self._get_library_function('niRFSA_GetSelfCalLastDateAndTime') - self.niRFSA_GetSelfCalLastDateAndTime_cfunc.argtypes = [ViSession, ViInt64, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSA_GetSelfCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetSelfCalLastDateAndTime_cfunc(vi, self_calibration_step, year, month, day, hour, minute) - - def niRFSA_GetSelfCalLastTemp(self, vi, self_calibration_step, temperature): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetSelfCalLastTemp_cfunc is None: - self.niRFSA_GetSelfCalLastTemp_cfunc = self._get_library_function('niRFSA_GetSelfCalLastTemp') - self.niRFSA_GetSelfCalLastTemp_cfunc.argtypes = [ViSession, ViInt64, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSA_GetSelfCalLastTemp_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetSelfCalLastTemp_cfunc(vi, self_calibration_step, temperature) - - def niRFSA_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 - with self._func_lock: - if self.niRFSA_GetTerminalName_cfunc is None: - self.niRFSA_GetTerminalName_cfunc = self._get_library_function('niRFSA_GetTerminalName') - self.niRFSA_GetTerminalName_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_GetTerminalName_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_GetTerminalName_cfunc(vi, signal, signal_identifier, buffer_size, terminal_name) - - def niRFSA_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_InitWithOptions_cfunc is None: - self.niRFSA_InitWithOptions_cfunc = self._get_library_function('niRFSA_InitWithOptions') - self.niRFSA_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niRFSA_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, new_vi) - - def niRFSA_Initiate(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_Initiate_cfunc is None: - self.niRFSA_Initiate_cfunc = self._get_library_function('niRFSA_Initiate') - self.niRFSA_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_Initiate_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_Initiate_cfunc(vi) - - def niRFSA_IsSelfCalValid(self, vi, self_cal_valid, valid_steps): # noqa: N802 - with self._func_lock: - if self.niRFSA_IsSelfCalValid_cfunc is None: - self.niRFSA_IsSelfCalValid_cfunc = self._get_library_function('niRFSA_IsSelfCalValid') - self.niRFSA_IsSelfCalValid_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt64)] # noqa: F405 - self.niRFSA_IsSelfCalValid_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_IsSelfCalValid_cfunc(vi, self_cal_valid, valid_steps) - - def niRFSA_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 - with self._func_lock: - if self.niRFSA_LoadConfigurationsFromFile_cfunc is None: - self.niRFSA_LoadConfigurationsFromFile_cfunc = self._get_library_function('niRFSA_LoadConfigurationsFromFile') - self.niRFSA_LoadConfigurationsFromFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_LoadConfigurationsFromFile_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_LoadConfigurationsFromFile_cfunc(vi, channel_name, file_path) - - def niRFSA_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niRFSA_LockSession_cfunc is None: - self.niRFSA_LockSession_cfunc = self._get_library_function('niRFSA_LockSession') - self.niRFSA_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSA_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_LockSession_cfunc(vi, caller_has_lock) - - def niRFSA_PerformThermalCorrection(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_PerformThermalCorrection_cfunc is None: - self.niRFSA_PerformThermalCorrection_cfunc = self._get_library_function('niRFSA_PerformThermalCorrection') - self.niRFSA_PerformThermalCorrection_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_PerformThermalCorrection_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_PerformThermalCorrection_cfunc(vi) - - def niRFSA_ReadIQSingleRecordComplexF64(self, vi, channel_list, timeout, iq_data_array, data_array_size, wfm_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_ReadIQSingleRecordComplexF64_cfunc is None: - self.niRFSA_ReadIQSingleRecordComplexF64_cfunc = self._get_library_function('niRFSA_ReadIQSingleRecordComplexF64') - self.niRFSA_ReadIQSingleRecordComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(NIComplexNumber), ViInt64, ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 - self.niRFSA_ReadIQSingleRecordComplexF64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ReadIQSingleRecordComplexF64_cfunc(vi, channel_list, timeout, iq_data_array, data_array_size, wfm_info) - - def niRFSA_ReadPowerSpectrumF32(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_ReadPowerSpectrumF32_cfunc is None: - self.niRFSA_ReadPowerSpectrumF32_cfunc = self._get_library_function('niRFSA_ReadPowerSpectrumF32') - self.niRFSA_ReadPowerSpectrumF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal32), ViInt32, ctypes.POINTER(spectrum_info_type.struct_niRFSA_spectrumInfo)] # noqa: F405 - self.niRFSA_ReadPowerSpectrumF32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ReadPowerSpectrumF32_cfunc(vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info) - - def niRFSA_ReadPowerSpectrumF64(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 - with self._func_lock: - if self.niRFSA_ReadPowerSpectrumF64_cfunc is None: - self.niRFSA_ReadPowerSpectrumF64_cfunc = self._get_library_function('niRFSA_ReadPowerSpectrumF64') - self.niRFSA_ReadPowerSpectrumF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(spectrum_info_type.struct_niRFSA_spectrumInfo)] # noqa: F405 - self.niRFSA_ReadPowerSpectrumF64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ReadPowerSpectrumF64_cfunc(vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info) - - def niRFSA_ResetDevice(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_ResetDevice_cfunc is None: - self.niRFSA_ResetDevice_cfunc = self._get_library_function('niRFSA_ResetDevice') - self.niRFSA_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_ResetDevice_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ResetDevice_cfunc(vi) - - def niRFSA_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 - with self._func_lock: - if self.niRFSA_ResetWithOptions_cfunc is None: - self.niRFSA_ResetWithOptions_cfunc = self._get_library_function('niRFSA_ResetWithOptions') - self.niRFSA_ResetWithOptions_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405 - self.niRFSA_ResetWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_ResetWithOptions_cfunc(vi, steps_to_omit) - - def niRFSA_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 - with self._func_lock: - if self.niRFSA_SaveConfigurationsToFile_cfunc is None: - self.niRFSA_SaveConfigurationsToFile_cfunc = self._get_library_function('niRFSA_SaveConfigurationsToFile') - self.niRFSA_SaveConfigurationsToFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_SaveConfigurationsToFile_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SaveConfigurationsToFile_cfunc(vi, channel_name, file_path) - - def niRFSA_SelfCalibrateRange(self, vi, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 - with self._func_lock: - if self.niRFSA_SelfCalibrateRange_cfunc is None: - self.niRFSA_SelfCalibrateRange_cfunc = self._get_library_function('niRFSA_SelfCalibrateRange') - self.niRFSA_SelfCalibrateRange_cfunc.argtypes = [ViSession, ViInt64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niRFSA_SelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SelfCalibrateRange_cfunc(vi, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level) - - def niRFSA_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 - with self._func_lock: - if self.niRFSA_SendSoftwareEdgeTrigger_cfunc is None: - self.niRFSA_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niRFSA_SendSoftwareEdgeTrigger') - self.niRFSA_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_identifier) - - def niRFSA_SetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_SetAttributeViBoolean_cfunc is None: - self.niRFSA_SetAttributeViBoolean_cfunc = self._get_library_function('niRFSA_SetAttributeViBoolean') - self.niRFSA_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niRFSA_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_SetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_SetAttributeViInt32_cfunc is None: - self.niRFSA_SetAttributeViInt32_cfunc = self._get_library_function('niRFSA_SetAttributeViInt32') - self.niRFSA_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niRFSA_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_SetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_SetAttributeViInt64_cfunc is None: - self.niRFSA_SetAttributeViInt64_cfunc = self._get_library_function('niRFSA_SetAttributeViInt64') - self.niRFSA_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 - self.niRFSA_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SetAttributeViInt64_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_SetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_SetAttributeViReal64_cfunc is None: - self.niRFSA_SetAttributeViReal64_cfunc = self._get_library_function('niRFSA_SetAttributeViReal64') - self.niRFSA_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niRFSA_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_SetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_SetAttributeViSession_cfunc is None: - self.niRFSA_SetAttributeViSession_cfunc = self._get_library_function('niRFSA_SetAttributeViSession') - self.niRFSA_SetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViSession] # noqa: F405 - self.niRFSA_SetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SetAttributeViSession_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_SetAttributeViString(self, vi, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niRFSA_SetAttributeViString_cfunc is None: - self.niRFSA_SetAttributeViString_cfunc = self._get_library_function('niRFSA_SetAttributeViString') - self.niRFSA_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_SetAttributeViString_cfunc(vi, channel_name, attribute_id, value) - - def niRFSA_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niRFSA_UnlockSession_cfunc is None: - self.niRFSA_UnlockSession_cfunc = self._get_library_function('niRFSA_UnlockSession') - self.niRFSA_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSA_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_UnlockSession_cfunc(vi, caller_has_lock) - - def niRFSA_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_close_cfunc is None: - self.niRFSA_close_cfunc = self._get_library_function('niRFSA_close') - self.niRFSA_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_close_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_close_cfunc(vi) - - def niRFSA_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSA_reset_cfunc is None: - self.niRFSA_reset_cfunc = self._get_library_function('niRFSA_reset') - self.niRFSA_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSA_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_reset_cfunc(vi) - - def niRFSA_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niRFSA_self_test_cfunc is None: - self.niRFSA_self_test_cfunc = self._get_library_function('niRFSA_self_test') - self.niRFSA_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSA_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSA_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nirfsa/nirfsa/_library_interpreter.py b/generated/nirfsa/nirfsa/_library_interpreter.py deleted file mode 100644 index 6918f15335..0000000000 --- a/generated/nirfsa/nirfsa/_library_interpreter.py +++ /dev/null @@ -1,773 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import nirfsa._complextype as _complextype -import nirfsa._library_singleton as _library_singleton -import nirfsa._visatype as _visatype -import nirfsa.enums as enums # noqa: F401 -import nirfsa.errors as errors - -import nirfsa.coefficient_info_type as coefficient_info_type # noqa: F401 - -import nirfsa.waveform_info as waveform_info # noqa: F401 - -import nirfsa.spectrum_info_type as spectrum_info_type # noqa: F401 - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - if library_type in (_complextype.NIComplexI16, _complextype.NIComplexNumberF32, _complextype.NIComplexNumber): - complex_dtype = numpy.dtype(library_type) - if value.ndim > 1: - # we create a flattened view of the multi-dimensional numpy array - restructured_array_view = value.ravel().view(complex_dtype) - else: - restructured_array_view = value.view(complex_dtype) - return restructured_array_view.ctypes.data_as(ctypes.POINTER(library_type)) - else: - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_Abort(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def change_external_calibration_password(self, old_password, new_password): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - old_password_ctype = ctypes.create_string_buffer(old_password.encode(self._encoding)) # case C020 - new_password_ctype = ctypes.create_string_buffer(new_password.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_ChangeExternalCalibrationPassword(vi_ctype, old_password_ctype, new_password_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def check_acquisition_status(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - is_done_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niRFSA_CheckAcquisitionStatus(vi_ctype, None if is_done_ctype is None else (ctypes.pointer(is_done_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(is_done_ctype.value) - - def clear_self_calibrate_range(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_ClearSelfCalibrateRange(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def commit(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_Commit(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - format_ctype = _visatype.ViInt32(format.value) # case S130 - error_code = self._library.niRFSA_ConfigureDeembeddingTableInterpolationLinear(vi_ctype, port_ctype, table_name_ctype, format_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_ConfigureDeembeddingTableInterpolationNearest(vi_ctype, port_ctype, table_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_ConfigureDeembeddingTableInterpolationSpline(vi_ctype, port_ctype, table_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_digital_edge_advance_trigger(self, source, edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - error_code = self._library.niRFSA_ConfigureDigitalEdgeAdvanceTrigger(vi_ctype, source_ctype, edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_digital_edge_ref_trigger(self, source, edge, pretrigger_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - pretrigger_samples_ctype = _visatype.ViInt64(pretrigger_samples) # case S150 - error_code = self._library.niRFSA_ConfigureDigitalEdgeRefTrigger(vi_ctype, source_ctype, edge_ctype, pretrigger_samples_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - error_code = self._library.niRFSA_ConfigureDigitalEdgeStartTrigger(vi_ctype, source_ctype, edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_iq_power_edge_ref_trigger(self, source, level, slope, pretrigger_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - level_ctype = _visatype.ViReal64(level) # case S150 - slope_ctype = _visatype.ViInt32(slope.value) # case S130 - pretrigger_samples_ctype = _visatype.ViInt64(pretrigger_samples) # case S150 - error_code = self._library.niRFSA_ConfigureIQPowerEdgeRefTrigger(vi_ctype, source_ctype, level_ctype, slope_ctype, pretrigger_samples_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_ref_clock(self, clock_source, ref_clock_rate): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - clock_source_ctype = ctypes.create_string_buffer(clock_source.value.encode(self._encoding)) # case C030 - ref_clock_rate_ctype = _visatype.ViReal64(ref_clock_rate) # case S150 - error_code = self._library.niRFSA_ConfigureRefClock(vi_ctype, clock_source_ctype, ref_clock_rate_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_software_edge_advance_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_software_edge_ref_trigger(self, pretrigger_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - pretrigger_samples_ctype = _visatype.ViInt64(pretrigger_samples) # case S150 - error_code = self._library.niRFSA_ConfigureSoftwareEdgeRefTrigger(vi_ctype, pretrigger_samples_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_software_edge_start_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_ConfigureSoftwareEdgeStartTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_spectrum_frequency_center_span(self, channel_list, center_frequency, span): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - center_frequency_ctype = _visatype.ViReal64(center_frequency) # case S150 - span_ctype = _visatype.ViReal64(span) # case S150 - error_code = self._library.niRFSA_ConfigureSpectrumFrequencyCenterSpan(vi_ctype, channel_list_ctype, center_frequency_ctype, span_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_spectrum_frequency_start_stop(self, channel_list, start_frequency, stop_frequency): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - start_frequency_ctype = _visatype.ViReal64(start_frequency) # case S150 - stop_frequency_ctype = _visatype.ViReal64(stop_frequency) # case S150 - error_code = self._library.niRFSA_ConfigureSpectrumFrequencyStartStop(vi_ctype, channel_list_ctype, start_frequency_ctype, stop_frequency_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - frequencies_ctype = _get_ctypes_pointer_for_buffer(value=frequencies) # case B510 - frequencies_size_ctype = _visatype.ViInt32(0 if frequencies is None else len(frequencies)) # case S160 - sparameter_table_ctype = _get_ctypes_pointer_for_buffer(value=sparameter_table, library_type=_complextype.NIComplexNumber) # case B510 - sparameter_table_size_ctype = _visatype.ViInt32(0 if sparameter_table is None else sparameter_table.size) # case S161 - number_of_ports_ctype = _visatype.ViInt32(number_of_ports) # case S150 - sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 - error_code = self._library.niRFSA_CreateDeembeddingSparameterTableArray(vi_ctype, port_ctype, table_name_ctype, frequencies_ctype, frequencies_size_ctype, sparameter_table_ctype, sparameter_table_size_ctype, number_of_ports_ctype, sparameter_orientation_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - s2p_file_path_ctype = ctypes.create_string_buffer(s2p_file_path.encode(self._encoding)) # case C020 - sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 - error_code = self._library.niRFSA_CreateDeembeddingSparameterTableS2PFile(vi_ctype, port_ctype, table_name_ctype, s2p_file_path_ctype, sparameter_orientation_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_all_deembedding_tables(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_DeleteAllDeembeddingTables(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_deembedding_table(self, port, table_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_DeleteDeembeddingTable(vi_ctype, port_ctype, table_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable_advance_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_DisableAdvanceTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable_ref_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_DisableRefTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable_start_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_DisableStartTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def enable_session_access(self, enable): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - enable_ctype = _visatype.ViBoolean(enable) # case S150 - error_code = self._library.niRFSA_EnableSessionAccess(vi_ctype, enable_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niRFSA_ErrorMessage(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def fetch_iq_multi_record_complex_f32(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 - samples_per_record = 0 if iq_data_arrays is None else (iq_data_arrays.shape[1] if hasattr(iq_data_arrays, 'shape') and len(iq_data_arrays.shape) > 1 else len(iq_data_arrays)) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - starting_record_ctype = _visatype.ViInt64(starting_record) # case S150 - number_of_records_ctype = _visatype.ViInt64(number_of_records) # case S150 - number_of_samples_ctype = _visatype.ViInt64(samples_per_record) # case S160 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_arrays_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_arrays, library_type=_complextype.NIComplexNumberF32) # case B510 - wfm_info_ctype = (waveform_info.struct_niRFSA_wfmInfo * number_of_records)() # case S220 - error_code = self._library.niRFSA_FetchIQMultiRecordComplexF32(vi_ctype, channel_list_ctype, starting_record_ctype, number_of_records_ctype, number_of_samples_ctype, timeout_ctype, iq_data_arrays_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(number_of_records)] - - def fetch_iq_multi_record_complex_f64(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 - samples_per_record = 0 if iq_data_arrays is None else (iq_data_arrays.shape[1] if hasattr(iq_data_arrays, 'shape') and len(iq_data_arrays.shape) > 1 else len(iq_data_arrays)) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - starting_record_ctype = _visatype.ViInt64(starting_record) # case S150 - number_of_records_ctype = _visatype.ViInt64(number_of_records) # case S150 - number_of_samples_ctype = _visatype.ViInt64(samples_per_record) # case S160 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_arrays_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_arrays, library_type=_complextype.NIComplexNumber) # case B510 - wfm_info_ctype = (waveform_info.struct_niRFSA_wfmInfo * number_of_records)() # case S220 - error_code = self._library.niRFSA_FetchIQMultiRecordComplexF64(vi_ctype, channel_list_ctype, starting_record_ctype, number_of_records_ctype, number_of_samples_ctype, timeout_ctype, iq_data_arrays_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(number_of_records)] - - def fetch_iq_multi_record_complex_i16(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 - samples_per_record = 0 if iq_data_arrays is None else (iq_data_arrays.shape[1] if hasattr(iq_data_arrays, 'shape') and len(iq_data_arrays.shape) > 1 else len(iq_data_arrays)) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - starting_record_ctype = _visatype.ViInt64(starting_record) # case S150 - number_of_records_ctype = _visatype.ViInt64(number_of_records) # case S150 - number_of_samples_ctype = _visatype.ViInt64(samples_per_record // 2) # case S160 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_arrays_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_arrays, library_type=_complextype.NIComplexI16) # case B510 - wfm_info_ctype = (waveform_info.struct_niRFSA_wfmInfo * number_of_records)() # case S220 - error_code = self._library.niRFSA_FetchIQMultiRecordComplexI16(vi_ctype, channel_list_ctype, starting_record_ctype, number_of_records_ctype, number_of_samples_ctype, timeout_ctype, iq_data_arrays_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(number_of_records)] - - def fetch_iq_single_record_complex_f32(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - record_number_ctype = _visatype.ViInt64(record_number) # case S150 - number_of_samples_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array)) # case S160 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexNumberF32) # case B510 - wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 - error_code = self._library.niRFSA_FetchIQSingleRecordComplexF32(vi_ctype, channel_list_ctype, record_number_ctype, number_of_samples_ctype, timeout_ctype, iq_data_array_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_info.WaveformInfo(wfm_info_ctype) - - def fetch_iq_single_record_complex_f64(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - record_number_ctype = _visatype.ViInt64(record_number) # case S150 - number_of_samples_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array)) # case S160 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexNumber) # case B510 - wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 - error_code = self._library.niRFSA_FetchIQSingleRecordComplexF64(vi_ctype, channel_list_ctype, record_number_ctype, number_of_samples_ctype, timeout_ctype, iq_data_array_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_info.WaveformInfo(wfm_info_ctype) - - def fetch_iq_single_record_complex_i16(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - record_number_ctype = _visatype.ViInt64(record_number) # case S150 - number_of_samples_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array) // 2) # case S160 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexI16) # case B510 - wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 - error_code = self._library.niRFSA_FetchIQSingleRecordComplexI16(vi_ctype, channel_list_ctype, record_number_ctype, number_of_samples_ctype, timeout_ctype, iq_data_array_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_info.WaveformInfo(wfm_info_ctype) - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niRFSA_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niRFSA_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niRFSA_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(value_ctype.value) - - def get_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niRFSA_GetAttributeViSession(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - buf_size_ctype = _visatype.ViInt32() # case S170 - value_ctype = None # case C050 - error_code = self._library.niRFSA_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buf_size_ctype = _visatype.ViInt32(error_code) # case S180 - value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 - error_code = self._library.niRFSA_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return value_ctype.value.decode(self._encoding) - - def get_deembedding_sparameters(self): - import numpy as np - number_of_ports = self.get_deembedding_table_number_of_ports() - sparameters_array_size = number_of_ports ** 2 - sparameters = np.full((number_of_ports, number_of_ports), 0 + 0j, dtype=np.complex128) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - sparameters_ctype = _get_ctypes_pointer_for_buffer(value=sparameters, library_type=_complextype.NIComplexNumber) # case B510 - sparameters_array_size_ctype = _visatype.ViInt32(sparameters_array_size) # case S150 - number_of_sparameters_ctype = _visatype.ViInt32() # case S220 - number_of_ports_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetDeembeddingSparameters(vi_ctype, sparameters_ctype, sparameters_array_size_ctype, None if number_of_sparameters_ctype is None else (ctypes.pointer(number_of_sparameters_ctype)), None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - sparameters = sparameters.reshape((int(number_of_ports_ctype.value), int(number_of_ports_ctype.value))) - return sparameters - - def get_deembedding_table_number_of_ports(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_ports_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetDeembeddingTableNumberOfPorts(vi_ctype, None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(number_of_ports_ctype.value) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 - error_description_ctype = None # case C050 - error_code = self._library.niRFSA_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 - error_code = self._library.niRFSA_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) - - def get_ext_cal_last_date_and_time(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetExtCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_ext_cal_recommended_interval(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - months_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(months_ctype.value) - - def get_fetch_backlog(self, channel_list, record_number): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - record_number_ctype = _visatype.ViInt64(record_number) # case S150 - backlog_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niRFSA_GetFetchBacklog(vi_ctype, channel_list_ctype, record_number_ctype, None if backlog_ctype is None else (ctypes.pointer(backlog_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(backlog_ctype.value) - - def get_frequency_response(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - frequencies_ctype = None # case B610 - magnitude_response_ctype = None # case B610 - phase_response_ctype = None # case B610 - number_of_frequencies_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetFrequencyResponse(vi_ctype, channel_list_ctype, buffer_size_ctype, frequencies_ctype, magnitude_response_ctype, phase_response_ctype, None if number_of_frequencies_ctype is None else (ctypes.pointer(number_of_frequencies_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(number_of_frequencies_ctype.value) # case S200 - frequencies_size = number_of_frequencies_ctype.value # case B620 - frequencies_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=frequencies_size) # case B620 - magnitude_response_size = number_of_frequencies_ctype.value # case B620 - magnitude_response_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=magnitude_response_size) # case B620 - phase_response_size = number_of_frequencies_ctype.value # case B620 - phase_response_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=phase_response_size) # case B620 - error_code = self._library.niRFSA_GetFrequencyResponse(vi_ctype, channel_list_ctype, buffer_size_ctype, frequencies_ctype, magnitude_response_ctype, phase_response_ctype, None if number_of_frequencies_ctype is None else (ctypes.pointer(number_of_frequencies_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(frequencies_ctype[i]) for i in range(buffer_size_ctype.value)], [float(magnitude_response_ctype[i]) for i in range(buffer_size_ctype.value)], [float(phase_response_ctype[i]) for i in range(buffer_size_ctype.value)] - - def get_scaling_coefficients(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - array_size_ctype = _visatype.ViInt32(0) # case S190 - coefficient_info_ctype = None # case B610 - number_of_coefficient_sets_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetScalingCoefficients(vi_ctype, channel_list_ctype, array_size_ctype, coefficient_info_ctype, None if number_of_coefficient_sets_ctype is None else (ctypes.pointer(number_of_coefficient_sets_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - array_size_ctype = _visatype.ViInt32(number_of_coefficient_sets_ctype.value) # case S200 - coefficient_info_size = number_of_coefficient_sets_ctype.value # case B620 - coefficient_info_ctype = _get_ctypes_pointer_for_buffer(library_type=coefficient_info_type.struct_niRFSA_coefficientInfo, size=coefficient_info_size) # case B620 - error_code = self._library.niRFSA_GetScalingCoefficients(vi_ctype, channel_list_ctype, array_size_ctype, coefficient_info_ctype, None if number_of_coefficient_sets_ctype is None else (ctypes.pointer(number_of_coefficient_sets_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [coefficient_info_type.CoefficientInfo(coefficient_info_ctype[i]) for i in range(array_size_ctype.value)] - - def get_self_cal_last_date_and_time(self, self_calibration_step): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_calibration_step_ctype = _visatype.ViInt64(self_calibration_step.value) # case S130 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSA_GetSelfCalLastDateAndTime(vi_ctype, self_calibration_step_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) - - def get_self_calibration_temperature(self, self_calibration_step): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_calibration_step_ctype = _visatype.ViInt64(self_calibration_step.value) # case S130 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niRFSA_GetSelfCalLastTemp(vi_ctype, self_calibration_step_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_terminal_name(self, signal, signal_identifier): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - signal_ctype = _visatype.ViInt32(signal.value) # case S130 - signal_identifier_ctype = ctypes.create_string_buffer(signal_identifier.encode(self._encoding)) # case C020 - buffer_size_ctype = _visatype.ViInt32() # case S170 - terminal_name_ctype = None # case C050 - error_code = self._library.niRFSA_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - terminal_name_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niRFSA_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return terminal_name_ctype.value.decode(self._encoding) - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - id_query_ctype = _visatype.ViBoolean(id_query) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - new_vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niRFSA_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if new_vi_ctype is None else (ctypes.pointer(new_vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(new_vi_ctype.value) - - def initiate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_Initiate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def is_self_cal_valid(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_cal_valid_ctype = _visatype.ViBoolean() # case S220 - valid_steps_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niRFSA_IsSelfCalValid(vi_ctype, None if self_cal_valid_ctype is None else (ctypes.pointer(self_cal_valid_ctype)), None if valid_steps_ctype is None else (ctypes.pointer(valid_steps_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(self_cal_valid_ctype.value), enums.SelfCalSteps(valid_steps_ctype.value) - - def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_LoadConfigurationsFromFile(vi_ctype, channel_name_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_thermal_correction(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_PerformThermalCorrection(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def read_iq_single_record_complex_f64(self, channel_list, iq_data_array, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexNumber) # case B510 - data_array_size_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array)) # case S120 - wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 - error_code = self._library.niRFSA_ReadIQSingleRecordComplexF64(vi_ctype, channel_list_ctype, timeout_ctype, iq_data_array_ctype, data_array_size_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_info.WaveformInfo(wfm_info_ctype) - - def read_power_spectrum_f32(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - power_spectrum_data_array_ctype = _get_ctypes_pointer_for_buffer(value=power_spectrum_data_array, library_type=_visatype.ViReal32) # case B550 - data_array_size_ctype = _visatype.ViInt32(len(power_spectrum_data_array)) # case S120 - spectrum_info_ctype = spectrum_info_type.struct_niRFSA_spectrumInfo() # case S220 - error_code = self._library.niRFSA_ReadPowerSpectrumF32(vi_ctype, channel_list_ctype, timeout_ctype, power_spectrum_data_array_ctype, data_array_size_ctype, None if spectrum_info_ctype is None else (ctypes.pointer(spectrum_info_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return spectrum_info_type.SpectrumInfo(spectrum_info_ctype) - - def read_power_spectrum_f64(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - power_spectrum_data_array_ctype = _get_ctypes_pointer_for_buffer(value=power_spectrum_data_array, library_type=_visatype.ViReal64) # case B550 - data_array_size_ctype = _visatype.ViInt32(len(power_spectrum_data_array)) # case S120 - spectrum_info_ctype = spectrum_info_type.struct_niRFSA_spectrumInfo() # case S220 - error_code = self._library.niRFSA_ReadPowerSpectrumF64(vi_ctype, channel_list_ctype, timeout_ctype, power_spectrum_data_array_ctype, data_array_size_ctype, None if spectrum_info_ctype is None else (ctypes.pointer(spectrum_info_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return spectrum_info_type.SpectrumInfo(spectrum_info_ctype) - - def reset_device(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_ResetDevice(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_options(self, steps_to_omit): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - steps_to_omit_ctype = _visatype.ViUInt64(steps_to_omit.value) # case S130 - error_code = self._library.niRFSA_ResetWithOptions(vi_ctype, steps_to_omit_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_SaveConfigurationsToFile(vi_ctype, channel_name_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_calibrate_range(self, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - steps_to_omit_ctype = _visatype.ViInt64(steps_to_omit.value) # case S130 - minimum_frequency_ctype = _visatype.ViReal64(minimum_frequency) # case S150 - maximum_frequency_ctype = _visatype.ViReal64(maximum_frequency) # case S150 - minimum_reference_level_ctype = _visatype.ViReal64(minimum_reference_level) # case S150 - maximum_reference_level_ctype = _visatype.ViReal64(maximum_reference_level) # case S150 - error_code = self._library.niRFSA_SelfCalibrateRange(vi_ctype, steps_to_omit_ctype, minimum_frequency_ctype, maximum_frequency_ctype, minimum_reference_level_ctype, maximum_reference_level_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 - trigger_identifier_ctype = ctypes.create_string_buffer(trigger_identifier.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_identifier_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViBoolean(value) # case S150 - error_code = self._library.niRFSA_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt32(value) # case S150 - error_code = self._library.niRFSA_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int64(self, channel_name, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt64(value) # case S150 - error_code = self._library.niRFSA_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViReal64(value) # case S150 - error_code = self._library.niRFSA_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_SetAttributeViSession(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 - error_code = self._library.niRFSA_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSA_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niRFSA_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nirfsa/nirfsa/_library_singleton.py b/generated/nirfsa/nirfsa/_library_singleton.py deleted file mode 100644 index e34ceeeff3..0000000000 --- a/generated/nirfsa/nirfsa/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nirfsa._library as _library -import nirfsa.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nirfsa', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niRFSA.dll', 'type': 'windll'}, - '64bit': {'name': 'niRFSA_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nirfsa. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nirfsa/nirfsa/_visatype.py b/generated/nirfsa/nirfsa/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nirfsa/nirfsa/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nirfsa/nirfsa/coefficient_info_type.py b/generated/nirfsa/nirfsa/coefficient_info_type.py deleted file mode 100644 index 2f4111c304..0000000000 --- a/generated/nirfsa/nirfsa/coefficient_info_type.py +++ /dev/null @@ -1,60 +0,0 @@ -import ctypes -import nirfsa._visatype - - -# This class is an internal ctypes implementation detail that corresponds to -# niRFSA_coefficientInfo in the C API -class struct_niRFSA_coefficientInfo(ctypes.Structure): # noqa N801 - _pack_ = 8 - _fields_ = [ - ('offset', nirfsa._visatype.ViReal64), - ('gain', nirfsa._visatype.ViReal64), - ('reserved1', nirfsa._visatype.ViReal64), - ('reserved2', nirfsa._visatype.ViReal64), - ] - - def __init__(self, data=None, offset=0.0, gain=0.0, - reserved1=0.0, reserved2=0.0): - super(ctypes.Structure, self).__init__() - if data is not None: - self.offset = data.offset - self.gain = data.gain - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - else: - self.offset = offset - self.gain = gain - self.reserved1 = reserved1 - self.reserved2 = reserved2 - - -class CoefficientInfo: - """Python-friendly wrapper for niRFSA coefficient info.""" - - def __init__(self, data=None, offset=0.0, gain=0.0): - if data is not None: - self.offset = data.offset - self.gain = data.gain - else: - self.offset = offset - self.gain = gain - - def _create_copy(self, target_class): - try: - return target_class( - offset=self.offset, - gain=self.gain, - ) - except TypeError: - return target_class(data=self) - - def __repr__(self): - return "{}.{}(offset={}, gain={})".format( - self.__class__.__module__, - self.__class__.__qualname__, - self.offset, - self.gain, - ) - - def __str__(self): - return self.__repr__() diff --git a/generated/nirfsa/nirfsa/enums.py b/generated/nirfsa/nirfsa/enums.py deleted file mode 100644 index d16310aa5c..0000000000 --- a/generated/nirfsa/nirfsa/enums.py +++ /dev/null @@ -1,1479 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum -from enum import IntFlag - - -class AcquisitionType(Enum): - IQ = 100 - r''' - Configures NI-RFSA for I/Q acquisitions. - ''' - SPECTRUM = 101 - r''' - Configures NI-RFSA for spectrum acquisitions. - ''' - - -class Action(Enum): - COMMIT = 1501 - r''' - The new calibration constants are stored in the EEPROM. - ''' - ABORT = 1500 - r''' - The old calibration constants are kept, and the new ones are discarded. - ''' - - -class AdvanceTriggerDigitalEdgeEdge(Enum): - RISING = 900 - r''' - The trigger asserts on the rising edge of the signal. - ''' - FALLING = 901 - r''' - The trigger asserts on the falling edge of the signal. - ''' - - -class AdvanceTriggerType(Enum): - NONE = 600 - r''' - No Advance Trigger is configured. - ''' - DIGITAL_EDGE = 601 - r''' - The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_advance_trigger_source property. - ''' - SOFTWARE_EDGE = 604 - r''' - The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_ADVANCE_TRIGGER as the **trigger** parameter. - ''' - - -class AllowOutOfSpecificationUserSettings(Enum): - DISABLED = 1900 - r''' - Disables out-of-specification user settings. - ''' - ENABLED = 1901 - r''' - Enables out-of-specification user settings. - ''' - - -class ArmReferenceTriggerType(Enum): - NONE = 600 - r''' - No Arm Reference Trigger is configured. - ''' - DIGITAL_EDGE = 601 - r''' - The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_arm_ref_trigger_source property. - ''' - SOFTWARE_EDGE = 604 - r''' - The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting SoftwareTriggerType.ARM_REF as the **trigger** parameter. - ''' - - -class CalToneMode(Enum): - DISABLED = 1900 - r''' - Disables the calibration tone for the associated signal path. - ''' - CAL_TONE_LOWBAND_RF = 2701 - r''' - Injects the calibration tone into the low band RF signal path. - ''' - CAL_TONE_HIGHBAND_RF = 2702 - r''' - Injects the calibration tone into the high band RF signal path. - ''' - CAL_TONE_HIGHBAND_IF = 2703 - r''' - Injects the calibration tone into the high band IF signal path. - ''' - CAL_TONE_LOWBAND_RF_WITHOUT_ALC = 2704 - r''' - Injects the calibration tone into the low band RF signal path, bypassing the ALC. - ''' - CAL_TONE_COMB_GENERATOR = 2705 - r''' - Injects the calibration tone into the high band RF signal path through the Comb Generator. - ''' - - -class CalibrateStep(Enum): - IF_ATTENUATION = 1600 - r''' - Initializes the IF Attenuation Calibration step. This step is not supported for the PXIe-5693. - ''' - IF_RESPONSE = 1601 - r''' - Initializes the IF Response Calibration step. This step is not supported for the PXIe-5603/5605 or PXIe-5693/5698. - ''' - IF_REF_LEVEL = 1602 - r''' - Initializes the Ref Level Calibration step. This step is not supported on the PXIe-5694. - ''' - LO_EXPORT = 1603 - r''' - Initializes the LO Export Calibration step. This step calibrates the output power of each LO to be within specification. This step is not supported on the PXIe-5601 or the PXIe-5693/5694/5698. - ''' - GAIN_REFERENCE = 1604 - r''' - Initializes the Gain Reference Calibration step. This step calibrates the calibration tone amplitude across supported calibration tone frequencies. This step is not supported on the PXIe-5601/5603/5605 or PXIe-5694. - ''' - - -class ChannelCoupling(Enum): - AC = 3001 - r''' - Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. - ''' - DC = 3002 - r''' - Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. - ''' - - -class ConditioningCalToneMode(Enum): - DISABLED = 1900 - r''' - Disables the calibration tone for the associated signal path. - ''' - CAL_TONE_LOWBAND_RF = 2701 - r''' - Injects the calibration tone into the low band RF signal path. - ''' - CAL_TONE_HIGHBAND_RF = 2702 - r''' - Injects the calibration tone into the high band RF signal path. - ''' - - -class DeembeddingType(Enum): - NONE = 3900 - r''' - De-embedding is not applied to the measurement. - ''' - SCALAR = 3901 - r''' - De-embeds the measurement using only the gain term. - ''' - VECTOR = 3902 - r''' - De-embeds the measurement using the gain term and the reflection term. - ''' - AMPLITUDE_FLATNESS = 3903 - r''' - De-embeds the measurement using wideband amplitude flatness correction. - ''' - - -class DeviceResponseType(Enum): - DOWNCONVERTER_IF = 2800 - r''' - Returns the IF response of the downconverter. - ''' - DOWNCONVERTER_RF = 2801 - r''' - Returns the RF response of the downconverter. This value is supported only for the PXIe-5603/5605/5665/5667/5693.. - ''' - DOWNCONVERTER_COMBINED = 2802 - r''' - Returns the combined RF and IF response of the downconverter. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5603/5605/5665/5667. - ''' - VSA_IF = 2803 - r''' - Returns the IF response of the entire NI-RFSA device. This value is supported only for the PXIe-5665/5667. - ''' - VSA_COMBINED = 2804 - r''' - Returns the combined IF and RF response of the entire NI-RFSA device. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5665/5667. - ''' - - -class DigitizerDitherEnabled(Enum): - DISABLED = 1900 - r''' - Disables dither on the digitizer. - ''' - ENABLED = 1901 - r''' - Enables dither on the digitizer. - ''' - - -class DigitizerSampleClockExportedTerminal(Enum): - NONE = 'None' - r''' - The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. - ''' - CLK_OUT = 'ClkOut' - r''' - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - ''' - - -class DigitizerSampleClockTimebaseSource(Enum): - ONBOARD_CLOCK = 'OnboardClock' - r''' - The digitizer uses its onboard clock as the Sample Clock timebase. - ''' - CLK_IN = 'ClkIn' - r''' - The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. - ''' - LO_REF_CLK = 'LORefClk' - r''' - The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. - ''' - PXI_STAR = 'PXI_STAR' - r''' - The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. - ''' - DOWNCONVERTER_LO2_OUT = 'DownconverterLO2Out' - r''' - The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. - ''' - - -class DownconverterFrequencyOffsetMode(Enum): - AUTOMATIC = 1903 - r''' - NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. - ''' - ENABLED = 1901 - r''' - NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSA returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. - ''' - USER_DEFINED = 1904 - r''' - NI-RFSA uses the offset that you specified with the downconverter_frequency_offset or downconverter_center_frequency properties. - ''' - - -class DownconverterLoopBandwidth(Enum): - NARROW = 800 - r''' - Specifies that the downconverter module uses a narrow loop bandwidth. - ''' - MEDIUM = 801 - r''' - Specifies that the downconverter module uses a medium loop bandwidth. - ''' - WIDE = 802 - r''' - Specifies that the downconverter module uses a wide loop bandwidth. - ''' - - -class EnableAttrVals(Enum): - DISABLED = 1900 - r''' - The property is disabled. - ''' - ENABLED = 1901 - r''' - The property is enabled. - ''' - - -class DownconverterPreselectorEnabled(Enum): - DISABLED = 2600 - r''' - Disables the preselector. - ''' - ENABLED_WHEN_IN_SIGNAL_PATH = 2601 - r''' - The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the preselector_present property to determine if the downconverter has an preselector. - ''' - ENABLED = 2602 - r''' - Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH whenever possible avoid an error. - ''' - - -class EnableRfPreamp(Enum): - DISABLED = 2500 - r''' - Disables the RF preamplifier. - ''' - ENABLED_WHEN_IN_SIGNAL_PATH = 2501 - r''' - Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the rf_preamp_present property to determine whether the downconverter has a preamplifier. - ''' - ENABLED = 2502 - r''' - Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH value whenever possible to avoid an error. - ''' - AUTOMATIC = 2503 - r''' - Automatically enables the RF preamplifier based on the value of the reference_level property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. - ''' - - -class ExportOutputTerminal(Enum): - DO_NOT_EXPORT = '' - r''' - The signal is not exported. - ''' - CLK_OUT = 'ClkOut' - r''' - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - ''' - REF_OUT = 'RefOut' - r''' - Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. - ''' - REF_OUT2 = 'RefOut2' - r''' - Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. - ''' - PFI0 = 'PFI0' - r''' - The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. - ''' - PFI1 = 'PFI1' - r''' - The trigger is received on PFI 1. - ''' - PXI_TRIG0 = 'PXI_Trig0' - r''' - The trigger is received on PXI trigger line 0. - ''' - PXI_TRIG1 = 'PXI_Trig1' - r''' - The trigger is received on PXI trigger line 1. - ''' - PXI_TRIG2 = 'PXI_Trig2' - r''' - The trigger is received on PXI trigger line 2. - ''' - PXI_TRIG3 = 'PXI_Trig3' - r''' - The trigger is received on PXI trigger line 3. - ''' - PXI_TRIG4 = 'PXI_Trig4' - r''' - The trigger is received on PXI trigger line 4. - ''' - PXI_TRIG5 = 'PXI_Trig5' - r''' - The trigger is received on PXI trigger line 5. - ''' - PXI_TRIG6 = 'PXI_Trig6' - r''' - The trigger is received on PXI trigger line 6. - ''' - PXI_TRIG7 = 'PXI_Trig7' - r''' - The trigger is received on PXI trigger line 7. - ''' - PXI_STAR = 'PXI_STAR' - r''' - The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. - ''' - PXIE_DSTARC = 'PXIe_DStarC' - r''' - The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. - ''' - DIO_PFI0 = 'DIO/PFI0' - r''' - The trigger is received on PFI0 from the front panel DIO terminal. - ''' - DIO_PFI1 = 'DIO/PFI1' - r''' - The trigger is received on PFI1 from the front panel DIO terminal. - ''' - DIO_PFI2 = 'DIO/PFI2' - r''' - The trigger is received on PFI2 from the front panel DIO terminal. - ''' - DIO_PFI3 = 'DIO/PFI3' - r''' - The trigger is received on PFI3 from the front panel DIO terminal. - ''' - DIO_PFI4 = 'DIO/PFI4' - r''' - The trigger is received on PFI4 from the front panel DIO terminal. - ''' - DIO_PFI5 = 'DIO/PFI5' - r''' - The trigger is received on PFI5 from the front panel DIO terminal. - ''' - DIO_PFI6 = 'DIO/PFI6' - r''' - The trigger is received on PFI6 from the front panel DIO terminal. - ''' - DIO_PFI7 = 'DIO/PFI7' - r''' - The trigger is received on PFI7 from the front panel DIO terminal. - ''' - - -class FetchRelativeTo(Enum): - MOST_RECENT_SAMPLE = 700 - r''' - Fetching occurs relative to the most recently acquired data. The value of the fetch_offset property must be negative. - ''' - FIRST_SAMPLE = 701 - r''' - Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. - ''' - REFERENCE_TRIGGER = 702 - r''' - Fetching occurs relative to the Reference Trigger. This value behaves like FetchRelativeTo.FIRST_SAMPLE if no Reference Trigger is configured. - ''' - FIRST_PRETRIGGER_SAMPLE = 703 - r''' - Fetching occurs relative to the first pretrigger sample acquired. - ''' - CURRENT_READ_POSITION = 704 - r''' - Fetching occurs after the last fetched sample. - ''' - - -class FrequencySettlingUnits(Enum): - PPM = 2000 - r''' - Specifies the frequency settling time in parts per million (PPM). - ''' - SECONDS_AFTER_LOCK = 2001 - r''' - Specifies the frequency settling in time after lock (seconds). - ''' - SECONDS_AFTER_IO = 2002 - r''' - Specifies the frequency settling time after I/O (seconds). - ''' - - -class IFattenTableSel(Enum): - STANDARD = 2900 - r''' - Specifies that the standard IF attenuation table is used for the external calibration. - ''' - ACPR = 2901 - r''' - Specifies that the adjacent channel power ratio (ACPR) IF attenuation table is used for the external calibration. You can only select this value if you set the CAL_IF_FILTER_SELECTION property to IFfilterSelection.EXT_CAL_IF_FILTER_PATH_1 or IFfilterSelection.EXT_CAL_IF_FILTER_PATH_2. - ''' - - -class IFfilter(Enum): - _187_5_MHZ_WIDE = 1400 - r''' - The device uses the 187.5 MHz wide bandwidth filter. - ''' - _187_5_MHZ_NARROW = 1401 - r''' - The device uses the 187.5 MHz narrow bandwidth filter. - ''' - _53_MHZ = 1402 - r''' - The device uses the 53 MHz filter. - ''' - BYPASS = 1403 - r''' - The device bypasses the IF filter. - ''' - - -class IFfilterSelection(Enum): - EXT_CAL_IF_FILTER_PATH_1 = 2100 - r''' - Specifies that the 5 MHz filter path is used during calibration. - ''' - EXT_CAL_IF_FILTER_PATH_2 = 2101 - r''' - Specifies that the 300 kHz filter path is used during calibration. Not supported for the PXIe-5694. - ''' - EXT_CAL_IF_FILTER_PATH_3 = 2102 - r''' - None of the IF filter paths are used during calibration. - ''' - EXT_CAL_IF_FILTER_PATH_4 = 2103 - r''' - Specifies that the 20 MHz filter path is used during calibration. - ''' - EXT_CAL_IF_FILTER_PATH_5 = 2104 - r''' - Specifies that the 1.4 MHz filter path is used during calibration. - ''' - EXT_CAL_IF_FILTER_PATH_6 = 2105 - r''' - Specifies that the 400 kHz filter path is used during calibration. - ''' - EXT_CAL_IF_FILTER_PATH_7 = 2106 - r''' - Specifies that the 110 kHz filter path is used during calibration. - ''' - EXT_CAL_IF_FILTER_PATH_8 = 2107 - r''' - Specifies that the 30 kHz filter path is used during calibration. - ''' - - -class IqInPortTerminalConfiguration(Enum): - DIFFERENTIAL = 2100 - r''' - Sets the terminal configuration to differential. - ''' - SINGLE_ENDED = 2101 - r''' - Sets the terminal configuration to single-ended. - ''' - - -class IfConditioningDownConversionEnabled(Enum): - DISABLED = 1900 - r''' - Disables IF conditioning downconversion. - ''' - ENABLED = 1901 - r''' - Enables IF conditioning downconversion. - ''' - - -class InputIsolationEnabled(Enum): - DISABLED = 1900 - r''' - Disables input isolation. - ''' - ENABLED = 1901 - r''' - Enables input isolation. - ''' - - -class InputPort(Enum): - RF_IN = 2000 - r''' - Enables the RF IN port. - ''' - IQ_IN = 2001 - r''' - Enables the I/Q IN port. - ''' - CAL_IN = 2002 - r''' - Enables the CAL IN port. - ''' - I_ONLY = 2003 - r''' - Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. - ''' - - -class LinearInterpolationFormat(Enum): - MAGNITUDE_AND_PHASE = 4001 - r''' - Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. - ''' - MAGNITUDE_DB_AND_PHASE = 4002 - r''' - Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. - ''' - REAL_AND_IMAGINARY = 4000 - r''' - Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. - ''' - - -class Lo2ExportEnabled(Enum): - DISABLED = 1900 - r''' - Disables LO2 export. - ''' - ENABLED = 1901 - r''' - Enables LO2 export. - ''' - - -class LoInjection(Enum): - HIGH = 1300 - r''' - Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. - ''' - LOW = 1301 - r''' - Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. - ''' - - -class LoNumber(Enum): - LO2 = 2201 - r''' - Selects LO2, which is the 4 GHz signal path. - ''' - LO3 = 2202 - r''' - Selects LO3, which is the 800 MHz signal path. - ''' - LO1 = 2200 - r''' - Selects LO1, which is the 3.2 GHz to 8.3 GHz variable signal path. - ''' - - -class LoOutExportConfigureFromRfsg(Enum): - DISABLED = 1900 - r''' - Do not allow NI-RFSG to control the NI-RFSA local oscillator export. - ''' - ENABLED = 1901 - r''' - Allow NI-RFSG to control the NI-RFSA local oscillator export. - ''' - - -class LoPathSel(Enum): - EXT_CAL_LO_PATH_1 = 2300 - r''' - Specifies that the LO path 1 is used. - ''' - EXT_CAL_LO_PATH_2 = 2301 - r''' - Specifies that the LO path 2 is used. - ''' - EXT_CAL_LO_PATH_3 = 2302 - r''' - Specifies that the LO path 3 is used. - ''' - EXT_CAL_LO_PATH_4 = 2303 - r''' - Specifies that the LO path 4 is used. - ''' - EXT_CAL_LO_PATH_5 = 2304 - r''' - Specifies that the LO path 5 is used. - ''' - - -class LoPllFractionalModeEnabled(Enum): - DISABLED = 1900 - r''' - Disables fractional mode for the LO PLL. - ''' - ENABLED = 1901 - r''' - Enables fractional mode for the LO PLL. - ''' - - -class LoSource(Enum): - ONBOARD = 'Onboard' - r''' - Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. - ''' - LO_IN = 'LO_In' - r''' - Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. - ''' - LO_SOURCE_SECONDARY = 'Secondary' - r''' - Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). - ''' - LO_SOURCE_SG_SA_SHARED = 'SG_SA_Shared' - r''' - Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. - ''' - - -class LoYigMainCoilDrive(Enum): - NORMAL = 2400 - r''' - Adjusts the YIG main coil on the LO for an underdamped response. - ''' - FAST = 2401 - r''' - Adjusts the YIG main coil on the LO for an overdamped response. - ''' - - -class LoadConfigurationResetOptions(Enum): - NONE = 0 - r''' - NI-RFSA resets all configurations. - ''' - DEEMBEDDING_TABLES = 2 - r''' - NI-RFSA skips resetting the de-embedding tables. - ''' - - -class NoiseSourcePowerEnabled(Enum): - DISABLED = 1900 - r''' - Disables the noise source power. - ''' - ENABLED = 1901 - r''' - Enables the noise source power. - ''' - - -class NotchFilterEnabled(Enum): - DISABLED = 3400 - r''' - Disables the notch filter. - ''' - ENABLED_WHEN_IN_SIGNAL_PATH = 3401 - r''' - The notch filter is automatically enabled when it is in the signal path and automatically disabled when it is not in the signal path. - ''' - ENABLED = 3402 - r''' - Enables the notch filter. If the notch filter is not in the signal path or if the notch filter is not supported on the device, NI-RFSA returns an error. Select NotchFilterEnabled.ENABLED_WHEN_IN_SIGNAL_PATH whenever possible to avoid an error. - ''' - - -class OutputTerm(Enum): - DO_NOT_EXPORT = '' - r''' - The signal is not exported. - ''' - CLK_OUT = 'ClkOut' - r''' - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - ''' - REF_OUT = 'RefOut' - r''' - Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. - ''' - REF_OUT2 = 'RefOut2' - r''' - Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. - ''' - PFI0 = 'PFI0' - r''' - The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. - ''' - PFI1 = 'PFI1' - r''' - The trigger is received on PFI 1. - ''' - PXI_TRIG0 = 'PXI_Trig0' - r''' - The trigger is received on PXI trigger line 0. - ''' - PXI_TRIG1 = 'PXI_Trig1' - r''' - The trigger is received on PXI trigger line 1. - ''' - PXI_TRIG2 = 'PXI_Trig2' - r''' - The trigger is received on PXI trigger line 2. - ''' - PXI_TRIG3 = 'PXI_Trig3' - r''' - The trigger is received on PXI trigger line 3. - ''' - PXI_TRIG4 = 'PXI_Trig4' - r''' - The trigger is received on PXI trigger line 4. - ''' - PXI_TRIG5 = 'PXI_Trig5' - r''' - The trigger is received on PXI trigger line 5. - ''' - PXI_TRIG6 = 'PXI_Trig6' - r''' - The trigger is received on PXI trigger line 6. - ''' - PXI_TRIG7 = 'PXI_Trig7' - r''' - The trigger is received on PXI trigger line 7. - ''' - PXI_STAR = 'PXI_STAR' - r''' - The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. - ''' - PXIE_DSTARB = 'PXIe_DStarB' - r''' - The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. - ''' - DIO_PFI0 = 'DIO/PFI0' - r''' - The trigger is received on PFI0 from the front panel DIO terminal. - ''' - DIO_PFI1 = 'DIO/PFI1' - r''' - The trigger is received on PFI1 from the front panel DIO terminal. - ''' - DIO_PFI2 = 'DIO/PFI2' - r''' - The trigger is received on PFI2 from the front panel DIO terminal. - ''' - DIO_PFI3 = 'DIO/PFI3' - r''' - The trigger is received on PFI3 from the front panel DIO terminal. - ''' - DIO_PFI4 = 'DIO/PFI4' - r''' - The trigger is received on PFI4 from the front panel DIO terminal. - ''' - DIO_PFI5 = 'DIO/PFI5' - r''' - The trigger is received on PFI5 from the front panel DIO terminal. - ''' - DIO_PFI6 = 'DIO/PFI6' - r''' - The trigger is received on PFI6 from the front panel DIO terminal. - ''' - DIO_PFI7 = 'DIO/PFI7' - r''' - The trigger is received on PFI7 from the front panel DIO terminal. - ''' - TIMER_EVENT = 'TimerEvent' - r''' - The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. - ''' - - -class OverflowErrorReporting(Enum): - WARNING = 1301 - r''' - Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. - ''' - DISABLED = 1302 - r''' - Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. - ''' - - -class PowerSpectrumUnits(Enum): - DBM = 200 - r''' - Units are dB with reference to 1 milliwatt. - ''' - VOLTS_SQUARED = 201 - r''' - Units are in volts squared. - ''' - DBMV = 202 - r''' - Units are dB with reference to 1 millivolt. - ''' - DBUV = 203 - r''' - Units are dB with reference to 1 microvolt. - ''' - VOLTS = 204 - r''' - Units are in volts. - ''' - WATTS = 205 - r''' - Units are in watts. - ''' - - -class PxiChassisClk10Source(Enum): - NONE = 'None' - r''' - The device does not drive the PXI 10 MHz backplane Reference Clock. - ''' - ONBOARD_CLOCK = 'OnboardClock' - r''' - The device drives the PXI 10 MHz backplane Reference Clock with the PXI-5600 onboard clock. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. - ''' - REF_IN = 'RefIn' - r''' - The device drives the PXI 10 MHz backplane Reference Clock with the reference source attached to the PXI-5600 FREQ REF IN connector. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. - ''' - - -class ReferenceClockExportedRate(Enum): - _10MHZ = 10000000 - r''' - Exports a 10 MHz Reference Clock. - ''' - _100MHZ = 100000000 - r''' - Exports a 100 MHz Reference Clock. - ''' - _1GHZ = 1000000000.0 - r''' - Exports a 1 GHz Reference Clock. - ''' - - -class ReferenceClockExportedTerminal(Enum): - NONE = 'None' - r''' - The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. - ''' - REF_OUT = 'RefOut' - r''' - Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. - ''' - REF_OUT2 = 'RefOut2' - r''' - Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. - ''' - CLK_OUT = 'ClkOut' - r''' - Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. - ''' - IF_COND_REF_OUT = 'IFCondRefOut' - r''' - Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. - ''' - - -class ReferenceClockSource(Enum): - NONE = 'None' - r''' - No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. - ''' - ONBOARD_CLOCK = 'OnboardClock' - r''' - **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. - ''' - REF_IN = 'RefIn' - r''' - **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. - ''' - PXI_CLK = 'PXI_Clk' - r''' - **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. - ''' - CLK_IN = 'ClkIn' - r''' - **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the ref_clock_rate property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the ref_clock_rate property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. - ''' - PXI_CLK_MASTER = 'PXI_ClkMaster' - r''' - **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. - ''' - REF_IN_2 = 'RefIn2' - r''' - **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. - ''' - - -class ReferenceLevelDataType(Enum): - MECHANICAL_ATTENUATOR_DISABLED = 1801 - r''' - The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. - ''' - DEFAULT = 1800 - r''' - The data is the default configuration data. - ''' - - -class ReferenceTriggerDigitalEdgeEdge(Enum): - RISING = 900 - r''' - The trigger asserts on the rising edge of the signal. - ''' - FALLING = 901 - r''' - The trigger asserts on the falling edge of the signal - ''' - - -class ReferenceTriggerIqPowerEdgeSlope(Enum): - RISING = 1000 - r''' - The trigger asserts when the signal power is rising. - ''' - FALLING = 1001 - r''' - The trigger asserts when the signal power is falling. - ''' - - -class ReferenceTriggerOspDelayEnabled(Enum): - DISABLED = 1900 - r''' - Disables OSP delay for the Reference Trigger. - ''' - ENABLED = 1901 - r''' - Enables OSP delay for the Reference Trigger. - ''' - - -class ReferenceTriggerType(Enum): - NONE = 600 - r''' - No Reference Trigger is configured. - ''' - DIGITAL_EDGE = 601 - r''' - The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_ref_trigger_source property. - ''' - IQ_POWER_EDGE = 603 - r''' - The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the iq_power_edge_ref_trigger_slope property. - ''' - SOFTWARE_EDGE = 604 - r''' - The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_REF_TRIGGER as the **trigger** parameter. - ''' - IQ_ANALOG_EDGE = 605 - r''' - The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE property. This value is valid only for PXIe-5644/5645 devices. - ''' - - -class ResetWithOptionsStepsToOmit(IntFlag): - DEEMBEDDING_TABLES = 2 - r''' - Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. - ''' - NONE = 0 - r''' - No step is omitted during reset. - ''' - ROUTES = 1 - r''' - Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. - ''' - - -class RfLbSigCondPathSel(Enum): - EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_1 = 3700 - r''' - yet to be defined - ''' - EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_2 = 3701 - r''' - yet to be defined - ''' - - -class RfOutLoExport(Enum): - DISABLED = 1900 - r''' - The LO signal is not exported from the RF OUT LO OUT terminal. - ''' - ENABLED = 1901 - r''' - The LO signal is exported from the RF OUT LO OUT terminal. - ''' - UNSPECIFIED = 1902 - r''' - The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. - ''' - - -class RfPathSelection(Enum): - EXT_CAL_RF_BAND_1 = 1700 - r''' - The data is the default configuration data. - ''' - EXT_CAL_RF_BAND_2 = 1701 - r''' - The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. - ''' - EXT_CAL_RF_BAND_3 = 1702 - r''' - The data is the default configuration data. - ''' - EXT_CAL_RF_BAND_4 = 1703 - r''' - The data is the default configuration data. - ''' - - -class SelfCalSteps(IntFlag): - DIGITIZER_SELF_CAL = 8 - r''' - Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. - ''' - PRESELECTOR_ALIGNMENT = 1 - r''' - Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. - ''' - OMIT_NONE = 0 - r''' - No calibration steps are omitted. - ''' - GAIN_REFERENCE = 2 - r''' - Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. - ''' - IF_FLATNESS = 4 - r''' - Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. - ''' - LO_SELF_CAL = 16 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - AMPLITUDE_ACCURACY = 32 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - RESIDUAL_LO_POWER = 64 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - IMAGE_SUPPRESSION = 128 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - SYNTHESIZER_ALIGNMENT = 256 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - DC_OFFSET = 512 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - - -class SelfCalibrateRangeStepsToOmit(IntFlag): - DIGITIZER_SELF_CAL = 8 - r''' - Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. - ''' - PRESELECTOR_ALIGNMENT = 1 - r''' - Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. - ''' - OMIT_NONE = 0 - r''' - No calibration steps are omitted. - ''' - GAIN_REFERENCE = 2 - r''' - Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. - ''' - IF_FLATNESS = 4 - r''' - Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. - ''' - LO_SELF_CAL = 16 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - AMPLITUDE_ACCURACY = 32 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - RESIDUAL_LO_POWER = 64 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - IMAGE_SUPPRESSION = 128 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - SYNTHESIZER_ALIGNMENT = 256 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - DC_OFFSET = 512 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - - -class SelfCalibrationStep(Enum): - PRESELECTOR_ALIGNMENT = 1 - r''' - Calls for preselector alignment. - ''' - GAIN_REFERENCE = 2 - r''' - Measures the changes in gain since the last external calibration was run. - ''' - IF_FLATNESS = 4 - r''' - Measures the IF response of the entire system for each of the supported IF filters - ''' - DIGITIZER_SELF_CAL = 8 - r''' - Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. - ''' - LO_SELF_CAL = 16 - r''' - Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. - ''' - AMPLITUDE_ACCURACY = 32 - r''' - Selects the Amplitude Accuracy self-calibration step. - ''' - RESIDUAL_LO_POWER = 64 - r''' - Selects the Residual LO Power self-calibration step. - ''' - IMAGE_SUPPRESSION = 128 - r''' - Selects the Image Suppression self-calibration step. - ''' - SYNTHESIZER_ALIGNMENT = 256 - r''' - Selects the Synthesizer Alignment self-calibration step. - ''' - DC_OFFSET = 512 - r''' - Selects the DC Offset self-calibration step. - ''' - - -class Signal(Enum): - START_TRIGGER = 1100 - r''' - NI-RFSA routes a Start Trigger. - ''' - REF_TRIGGER = 702 - r''' - NI-RFSA routes a Reference - ''' - ADVANCE_TRIGGER = 1102 - r''' - NI-RFSA routes an Advance - ''' - READY_FOR_START_EVENT = 1200 - r''' - NI-RFSA routes a Ready for Start Event. - ''' - READY_FOR_REF_EVENT = 1201 - r''' - NI-RFSA routes a Ready for Reference Event.. - ''' - END_OF_RECORD_EVENT = 1203 - r''' - NI-RFSA routes a End of Record Event. - ''' - DONE_EVENT = 1204 - r''' - NI-RFSA routes a Done Event. - ''' - REF_CLOCK = 1205 - r''' - NI-RFSA routes a Reference Clock. - ''' - USER = 1206 - r''' - NI-RFSA routes a User Defined Signal. - ''' - - -class SignalConditioningEnabled(Enum): - ENABLED = 3600 - r''' - Enables signal conditioning. - ''' - BYPASSED = 3601 - r''' - Bypasses all signal conditioning. - ''' - - -class SmoothSpectrumEnabled(Enum): - DISABLED = 1900 - r''' - Disables spectrum smoothing. - ''' - ENABLED = 1901 - r''' - Enables spectrum smoothing. - ''' - - -class SoftwareTriggerType(Enum): - START = 1100 - r''' - NI-RFSA sends a Start software trigger. - ''' - REF = 702 - r''' - NI-RFSA sends a Reference software trigger. - ''' - ADVANCE = 1102 - r''' - NI-RFSA sends an Advance software trigger. - ''' - ARM_REF = 1103 - r''' - NI-RFSA sends an Arm Reference software trigger. This trigger is not valid for the PXIe-5668. - ''' - - -class SparameterOrientation(Enum): - PORT1_TOWARDS_DUT = 3800 - r''' - Port 1 of the S2P is oriented towards the DUT port. - ''' - PORT2_TOWARDS_DUT = 3801 - r''' - Port 2 of the S2P is oriented towards the DUT port. - ''' - - -class SpectrumAveragingMode(Enum): - NO = 400 - r''' - Configures NI-RFSA to perform no averaging on acquisitions. - ''' - RMS = 401 - r''' - Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. - ''' - VECTOR = 402 - r''' - Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. - ''' - PEAK_HOLD = 403 - r''' - Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. - ''' - MIN_HOLD = 404 - r''' - Configures NI-RFSA to perform no averaging on acquisitions. - ''' - SCALAR = 405 - r''' - Configures NI-RFSA to perform no averaging on acquisitions. - ''' - LOG = 406 - r''' - Configures NI-RFSA to perform no averaging on acquisitions. - ''' - - -class SpectrumFftWindowType(Enum): - UNIFORM = 500 - r''' - No window is applied. - ''' - HANNING = 501 - r''' - The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. - ''' - HAMMING = 502 - r''' - A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. - ''' - BLACKMAN_HARRIS = 503 - r''' - A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) - ''' - EXACT_BLACKMAN = 504 - r''' - An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) - ''' - BLACKMAN = 505 - r''' - A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) - ''' - FLAT_TOP = 506 - r''' - The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) - ''' - _4_TERM_BLACKMAN_HARRIS = 507 - r''' - A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) - ''' - _7_TERM_BLACKMAN_HARRIS = 508 - r''' - A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) - ''' - LOW_SIDE_LOBE = 509 - r''' - The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window - ''' - GAUSSIAN = 510 - r''' - A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window - ''' - KAISER_BESSEL = 511 - r''' - A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind - ''' - - -class SpectrumResolutionBandwidthType(Enum): - THREE_DECIBELS = 300 - r''' - Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the fft_window_type property. - ''' - SIX_DECIBELS = 301 - r''' - Defines the RBW in terms of the 6 dB bandwidth of the window specified by the fft_window_type property. - ''' - BIN_WIDTH = 302 - r''' - Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. - ''' - EQUIVALENT_NOISE_BANDWIDTH = 303 - r''' - Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the fft_window_type property. - ''' - - -class StartTriggerDigitalEdgeEdge(Enum): - RISING = 900 - r''' - The trigger asserts on the rising edge of the signal.PXI-5661, PXIe-5663/5663E/5665/5668 - ''' - FALLING = 901 - r''' - The trigger asserts on the falling edge of the signal | PXIe-5668 - ''' - - -class StartTriggerType(Enum): - NONE = 600 - r''' - No Start Trigger is configured. - ''' - DIGITAL_EDGE = 601 - r''' - The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property. - ''' - SOFTWARE_EDGE = 604 - r''' - The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_START_TRIGGER as the value of the **trigger** parameter. - ''' - - -class StepsToOmit(Enum): - DEEMBEDDING_TABLES = 2 - r''' - Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. - ''' - NONE = 0 - r''' - No step is omitted during reset. - ''' - ROUTES = 1 - r''' - Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. - ''' - - -class SyncRefTriggerDelayEnabled(Enum): - DISABLED = 1900 - r''' - Disables synchronization reference trigger delay. - ''' - ENABLED = 1901 - r''' - Enables synchronization reference trigger delay. - ''' - - -class UserSourcePulseWidthUnits(Enum): - SECONDS = 6200 - r''' - Units are seconds. - ''' - CLOCK_PERIODS = 6201 - r''' - Units are clock periods. - ''' diff --git a/generated/nirfsa/nirfsa/errors.py b/generated/nirfsa/nirfsa/errors.py deleted file mode 100644 index a559fa37f3..0000000000 --- a/generated/nirfsa/nirfsa/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-RFSA''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-RFSA driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-RFSA driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-RFSA runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-RFSA driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-RFSA runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-RFSA driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-RFSA runtime returned an unexpected value. This can occur if it is too new for the nirfsa Python module. Upgrade the nirfsa Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nirfsa.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nirfsa/nirfsa/grpc_session_options.py b/generated/nirfsa/nirfsa/grpc_session_options.py deleted file mode 100644 index eba784c914..0000000000 --- a/generated/nirfsa/nirfsa/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nirfsa_grpc.NiRFSA' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nirfsa/nirfsa/nidevice_pb2.py b/generated/nirfsa/nirfsa/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nirfsa/nirfsa/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsa/nirfsa/nidevice_pb2_grpc.py b/generated/nirfsa/nirfsa/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nirfsa/nirfsa/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nirfsa/nirfsa/nirfsa_pb2.py b/generated/nirfsa/nirfsa/nirfsa_pb2.py deleted file mode 100644 index ace5489550..0000000000 --- a/generated/nirfsa/nirfsa/nirfsa_pb2.py +++ /dev/null @@ -1,492 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nirfsa.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import nidevice_pb2 as nidevice__pb2 -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnirfsa.proto\x12\x0bnirfsa_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\x91\x01\n\x0cWaveformInfo\x12\x1a\n\x12\x61\x62solute_initial_x\x18\x01 \x01(\x01\x12\x1a\n\x12relative_initial_x\x18\x02 \x01(\x01\x12\x13\n\x0bx_increment\x18\x03 \x01(\x01\x12\x16\n\x0e\x61\x63tual_samples\x18\x04 \x01(\x03\x12\x0e\n\x06offset\x18\x05 \x01(\x01\x12\x0c\n\x04gain\x18\x06 \x01(\x01\"/\n\x0f\x43oefficientInfo\x12\x0e\n\x06offset\x18\x01 \x01(\x01\x12\x0c\n\x04gain\x18\x02 \x01(\x01\"h\n\x0cSpectrumInfo\x12\x19\n\x11initial_frequency\x18\x01 \x01(\x01\x12\x1b\n\x13\x66requency_increment\x18\x02 \x01(\x01\x12 \n\x18number_of_spectral_lines\x18\x03 \x01(\x11\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"C\n\x1d\x43heckAcquisitionStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x1e\x43heckAcquisitionStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07is_done\x18\x02 \x01(\x08\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1e\x43learSelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43learSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb8\x01\n\x1f\x43onfigureAcquisitionTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x38\n\x10\x61\x63quisition_type\x18\x02 \x01(\x0e\x32\x1c.nirfsa_grpc.AcquisitionTypeH\x00\x12\x1e\n\x14\x61\x63quisition_type_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15\x61\x63quisition_type_enum\"2\n ConfigureAcquisitionTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xda\x01\n3ConfigureDeembeddingTableInterpolationLinearRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x38\n\x06\x66ormat\x18\x04 \x01(\x0e\x32&.nirfsa_grpc.LinearInterpolationFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x42\r\n\x0b\x66ormat_enum\"F\n4ConfigureDeembeddingTableInterpolationLinearResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"|\n4ConfigureDeembeddingTableInterpolationNearestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"G\n5ConfigureDeembeddingTableInterpolationNearestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"{\n3ConfigureDeembeddingTableInterpolationSplineRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"F\n4ConfigureDeembeddingTableInterpolationSplineResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xff\x01\n)ConfigureDigitalEdgeAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\rsource_mapped\x18\x02 \x01(\x0e\x32%.nirfsa_grpc.DigitalEdgeTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12(\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x18.nirfsa_grpc.DigitalEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\"<\n*ConfigureDigitalEdgeAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x02\n%ConfigureDigitalEdgeRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\rsource_mapped\x18\x02 \x01(\x0e\x32%.nirfsa_grpc.DigitalEdgeTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12(\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x18.nirfsa_grpc.DigitalEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x12\x1a\n\x12pretrigger_samples\x18\x06 \x01(\x03\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\"8\n&ConfigureDigitalEdgeRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfd\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\rsource_mapped\x18\x02 \x01(\x0e\x32%.nirfsa_grpc.DigitalEdgeTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12(\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x18.nirfsa_grpc.DigitalEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"y\n\"ConfigureIQCarrierFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x19\n\x11\x63\x61rrier_frequency\x18\x03 \x01(\x01\"5\n#ConfigureIQCarrierFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc4\x01\n%ConfigureIQPowerEdgeRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05level\x18\x02 \x01(\x01\x12)\n\x05slope\x18\x03 \x01(\x0e\x32\x18.nirfsa_grpc.AnalogSlopeH\x00\x12\x13\n\tslope_raw\x18\x04 \x01(\x11H\x00\x12\x1a\n\x12pretrigger_samples\x18\x05 \x01(\x03\x42\x0c\n\nslope_enum\"8\n&ConfigureIQPowerEdgeRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\x16\x43onfigureIQRateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07iq_rate\x18\x03 \x01(\x01\")\n\x17\x43onfigureIQRateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9b\x01\n\x1f\x43onfigureNumberOfRecordsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12#\n\x1bnumber_of_records_is_finite\x18\x03 \x01(\x08\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\"2\n ConfigureNumberOfRecordsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9c\x01\n\x1f\x43onfigureNumberOfSamplesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12#\n\x1bnumber_of_samples_is_finite\x18\x03 \x01(\x08\x12\x1a\n\x12samples_per_record\x18\x04 \x01(\x03\"2\n ConfigureNumberOfSamplesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc5\x01\n\x1f\x43onfigurePXIChassisClk10Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x45\n\x17pxi_clk10_source_mapped\x18\x02 \x01(\x0e\x32\".nirfsa_grpc.PxiChassisClk10SourceH\x00\x12\x1e\n\x14pxi_clk10_source_raw\x18\x03 \x01(\tH\x00\x42\x17\n\x15pxi_clk10_source_enum\"2\n ConfigurePXIChassisClk10Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\x18\x43onfigureRefClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12:\n\x13\x63lock_source_mapped\x18\x02 \x01(\x0e\x32\x1b.nirfsa_grpc.RefClockSourceH\x00\x12\x1a\n\x10\x63lock_source_raw\x18\x03 \x01(\tH\x00\x12\x16\n\x0eref_clock_rate\x18\x04 \x01(\x01\x42\x13\n\x11\x63lock_source_enum\"+\n\x19\x43onfigureRefClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n\x1e\x43onfigureReferenceLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0freference_level\x18\x03 \x01(\x01\"1\n\x1f\x43onfigureReferenceLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"}\n#ConfigureResolutionBandwidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x1c\n\x14resolution_bandwidth\x18\x03 \x01(\x01\"6\n$ConfigureResolutionBandwidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*ConfigureSoftwareEdgeAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n+ConfigureSoftwareEdgeAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n&ConfigureSoftwareEdgeRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12pretrigger_samples\x18\x02 \x01(\x03\"9\n\'ConfigureSoftwareEdgeRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8f\x01\n+ConfigureSpectrumFrequencyCenterSpanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x18\n\x10\x63\x65nter_frequency\x18\x03 \x01(\x01\x12\x0c\n\x04span\x18\x04 \x01(\x01\">\n,ConfigureSpectrumFrequencyCenterSpanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x01\n*ConfigureSpectrumFrequencyStartStopRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstart_frequency\x18\x03 \x01(\x01\x12\x16\n\x0estop_frequency\x18\x04 \x01(\x01\"=\n+ConfigureSpectrumFrequencyStartStopResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xad\x01\n\x1e\x43reateConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\x12\x38\n\x12list_attribute_ids\x18\x03 \x03(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x1a\n\x12set_as_active_list\x18\x04 \x01(\x08\"1\n\x1f\x43reateConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n\"CreateConfigurationListStepRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12set_as_active_step\x18\x02 \x01(\x08\"5\n#CreateConfigurationListStepResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x02\n,CreateDeembeddingSparameterTableArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x13\n\x0b\x66requencies\x18\x04 \x03(\x01\x12\x38\n\x10sparameter_table\x18\x05 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x17\n\x0fnumber_of_ports\x18\x06 \x01(\x11\x12\x44\n\x16sparameter_orientation\x18\x07 \x01(\x0e\x32\".nirfsa_grpc.SparameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x08 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"?\n-CreateDeembeddingSparameterTableArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x98\x02\n.CreateDeembeddingSparameterTableS2PFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x15\n\rs2p_file_path\x18\x04 \x01(\t\x12\x44\n\x16sparameter_orientation\x18\x05 \x01(\x0e\x32\".nirfsa_grpc.SparameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x06 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"A\n/CreateDeembeddingSparameterTableS2PFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"G\n!DeleteAllDeembeddingTablesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"4\n\"DeleteAllDeembeddingTablesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1e\x44\x65leteConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\"1\n\x1f\x44\x65leteConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x1d\x44\x65leteDeembeddingTableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"0\n\x1e\x44\x65leteDeembeddingTableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1c\x44isableAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1d\x44isableAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18\x44isableRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19\x44isableRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x1a\x45nableSessionAccessRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06\x65nable\x18\x02 \x01(\x08\"-\n\x1b\x45nableSessionAccessResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"\x96\x02\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06signal\x18\x02 \x01(\x0e\x32\x13.nirfsa_grpc.SignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12=\n\x16output_terminal_mapped\x18\x05 \x01(\x0e\x32\x1b.nirfsa_grpc.ExportTerminalH\x01\x12\x1d\n\x13output_terminal_raw\x18\x06 \x01(\tH\x01\x42\r\n\x0bsignal_enumB\x16\n\x14output_terminal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbf\x01\n#FetchIQMultiRecordComplexF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstarting_record\x18\x03 \x01(\x03\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x05 \x01(\x03\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"\x94\x01\n$FetchIQMultiRecordComplexF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.nidevice_grpc.NIComplexNumberF32\x12+\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xbf\x01\n#FetchIQMultiRecordComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstarting_record\x18\x03 \x01(\x03\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x05 \x01(\x03\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"\x91\x01\n$FetchIQMultiRecordComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12,\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12+\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xbf\x01\n#FetchIQMultiRecordComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstarting_record\x18\x03 \x01(\x03\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x05 \x01(\x03\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"\x8e\x01\n$FetchIQMultiRecordComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\x12+\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xa3\x01\n$FetchIQSingleRecordComplexF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x04 \x01(\x03\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x95\x01\n%FetchIQSingleRecordComplexF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.nidevice_grpc.NIComplexNumberF32\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xa3\x01\n$FetchIQSingleRecordComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x04 \x01(\x03\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x92\x01\n%FetchIQSingleRecordComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12,\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xa3\x01\n$FetchIQSingleRecordComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x04 \x01(\x03\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x8f\x01\n%FetchIQSingleRecordComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"B\n\x1cGetCalUserDefinedInfoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n\x1dGetCalUserDefinedInfoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04info\x18\x02 \x01(\t\"I\n#GetCalUserDefinedInfoMaxSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"I\n$GetCalUserDefinedInfoMaxSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tinfo_size\x18\x02 \x01(\x11\"F\n GetDeembeddingSparametersRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa0\x01\n!GetDeembeddingSparametersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x33\n\x0bsparameters\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x1d\n\x15number_of_sparameters\x18\x03 \x01(\x11\x12\x17\n\x0fnumber_of_ports\x18\x04 \x01(\x11\"\xbd\x01\n\x18GetDeviceResponseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\rresponse_type\x18\x03 \x01(\x0e\x32\x1b.nirfsa_grpc.DeviceResponseH\x00\x12\x1b\n\x11response_type_raw\x18\x04 \x01(\x11H\x00\x42\x14\n\x12response_type_enum\"\x93\x01\n\x19GetDeviceResponseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x1a\n\x12magnitude_response\x18\x03 \x03(\x01\x12\x16\n\x0ephase_response\x18\x04 \x03(\x01\x12\x1d\n\x15number_of_frequencies\x18\x05 \x01(\x11\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"E\n\x1fGetExtCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"z\n GetExtCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\">\n\x18GetExtCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x19GetExtCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"i\n\x16GetFetchBacklogRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\":\n\x17GetFetchBacklogResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07\x62\x61\x63klog\x18\x02 \x01(\x03\"W\n\x1bGetFrequencyResponseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x96\x01\n\x1cGetFrequencyResponseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x1a\n\x12magnitude_response\x18\x03 \x03(\x01\x12\x16\n\x0ephase_response\x18\x04 \x03(\x01\x12\x1d\n\x15number_of_frequencies\x18\x05 \x01(\x11\"_\n#GetNormalizationCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x92\x01\n$GetNormalizationCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1c.nirfsa_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"[\n\x1fGetNumberOfSpectralLinesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"T\n GetNumberOfSpectralLinesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12 \n\x18number_of_spectral_lines\x18\x02 \x01(\x11\"^\n\x13GetRelayNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05index\x18\x03 \x01(\x11\"I\n\x14GetRelayNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"Z\n\x1eGetRelayOperationsCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"`\n\x1fGetRelayOperationsCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10operations_count\x18\x02 \x03(\x11\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"Y\n\x1dGetScalingCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x8c\x01\n\x1eGetScalingCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1c.nirfsa_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"e\n GetSelfCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15self_calibration_step\x18\x02 \x01(\x03\"{\n!GetSelfCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"^\n\x19GetSelfCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15self_calibration_step\x18\x02 \x01(\x03\":\n\x1aGetSelfCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04temp\x18\x02 \x01(\x01\"B\n\x1cGetSpectralInfoForSMTRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x1dGetSpectralInfoForSMTResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x35\n\rspectrum_info\x18\x02 \x01(\x0b\x32\x1e.nidevice_grpc.SmtSpectrumInfo\"]\n\x1eGetStreamEndpointHandleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fstream_endpoint\x18\x02 \x01(\t\"H\n\x1fGetStreamEndpointHandleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwriter_handle\x18\x02 \x01(\r\"\xb8\x01\n\x16GetTerminalNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06signal\x18\x02 \x01(\x0e\x32\x13.nirfsa_grpc.SignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x05 \x01(\x11\x42\r\n\x0bsignal_enum\"@\n\x17GetTerminalNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rterminal_name\x18\x02 \x01(\t\"L\n\x12GetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\"M\n\x13GetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x18\n\x10\x61\x63tual_data_size\x18\x03 \x01(\x11\"\xaa\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\r\n\x05reset\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xcc\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\r\n\x05reset\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\";\n\x15IsSelfCalValidRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x95\x01\n\x16IsSelfCalValidResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0eself_cal_valid\x18\x02 \x01(\x08\x12:\n\x11valid_steps_array\x18\x03 \x03(\x0e\x32\x1f.nirfsa_grpc.SelfCalibrateSteps\x12\x17\n\x0fvalid_steps_raw\x18\x04 \x01(\x03\"p\n!LoadConfigurationsFromFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"4\n\"LoadConfigurationsFromFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1fPerformThermalCorrectionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n PerformThermalCorrectionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x01\n#ReadIQSingleRecordComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x17\n\x0f\x64\x61ta_array_size\x18\x04 \x01(\x03\"\x91\x01\n$ReadIQSingleRecordComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12,\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\x81\x01\n\x1bReadPowerSpectrumF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x17\n\x0f\x64\x61ta_array_size\x18\x04 \x01(\x11\"}\n\x1cReadPowerSpectrumF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13power_spectrum_data\x18\x02 \x03(\x02\x12\x30\n\rspectrum_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.SpectrumInfo\"\x81\x01\n\x1bReadPowerSpectrumF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x17\n\x0f\x64\x61ta_array_size\x18\x04 \x01(\x11\"}\n\x1cReadPowerSpectrumF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13power_spectrum_data\x18\x02 \x03(\x01\x12\x30\n\rspectrum_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.SpectrumInfo\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x17ResetWithOptionsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x41\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32(.nirfsa_grpc.ResetWithOptionsStepsToOmitH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x04H\x00\x42\x14\n\x12steps_to_omit_enum\"*\n\x18ResetWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"N\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\ndriver_rev\x18\x02 \x01(\t\x12\x11\n\tinstr_rev\x18\x03 \x01(\t\"n\n\x1fSaveConfigurationsToFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"2\n SaveConfigurationsToFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x14SelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x38\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32\x1f.nirfsa_grpc.SelfCalibrateStepsH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x03H\x00\x42\x14\n\x12steps_to_omit_enum\"\'\n\x15SelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x94\x02\n\x19SelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x38\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32\x1f.nirfsa_grpc.SelfCalibrateStepsH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x03H\x00\x12\x15\n\rmin_frequency\x18\x04 \x01(\x01\x12\x15\n\rmax_frequency\x18\x05 \x01(\x01\x12\x1b\n\x13min_reference_level\x18\x06 \x01(\x01\x12\x1b\n\x13max_reference_level\x18\x07 \x01(\x01\x42\x14\n\x12steps_to_omit_enum\",\n\x1aSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"M\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btest_result\x18\x02 \x01(\x11\x12\x14\n\x0ctest_message\x18\x03 \x01(\t\"\xaf\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12&\n\x07trigger\x18\x02 \x01(\x0e\x32\x13.nirfsa_grpc.SignalH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x1a\n\x12trigger_identifier\x18\x04 \x01(\tB\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9b\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x38\n\x05value\x18\x04 \x01(\x0e\x32\'.nirfsa_grpc.NiRFSAInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9e\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x01\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x46\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32..nirfsa_grpc.NiRFSAStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x1cSetCalUserDefinedInfoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04info\x18\x02 \x01(\t\"/\n\x1dSetCalUserDefinedInfoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n\x12SetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"3\n\x13SetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c*\xfe\x63\n\x0fNiRFSAAttribute\x12 \n\x1cNIRFSA_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\"\n\x1cNIRFSA_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12.\n(NIRFSA_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1c\n\x16NIRFSA_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\x1f\n\x19NIRFSA_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12\'\n!NIRFSA_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12#\n\x1dNIRFSA_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12(\n\"NIRFSA_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12$\n\x1eNIRFSA_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12-\n\'NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12-\n\'NIRFSA_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12#\n\x1dNIRFSA_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12\x32\n,NIRFSA_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12)\n#NIRFSA_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x33\n-NIRFSA_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12.\n(NIRFSA_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\'\n!NIRFSA_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12-\n\'NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x32\n,NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12?\n9NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12?\n9NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12/\n)NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12\'\n!NIRFSA_ATTRIBUTE_ACQUISITION_TYPE\x10\xb1\x98\x46\x12\'\n!NIRFSA_ATTRIBUTE_CENTER_FREQUENCY\x10\xb2\x98\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_SPECTRUM_SPAN\x10\xb3\x98\x46\x12&\n NIRFSA_ATTRIBUTE_REFERENCE_LEVEL\x10\xb4\x98\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_ATTENUATION\x10\xb5\x98\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_MIXER_LEVEL\x10\xb6\x98\x46\x12\x1e\n\x18NIRFSA_ATTRIBUTE_IQ_RATE\x10\xb7\x98\x46\x12\x32\n,NIRFSA_ATTRIBUTE_NUMBER_OF_SAMPLES_IS_FINITE\x10\xb8\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_NUMBER_OF_SAMPLES\x10\xb9\x98\x46\x12\x32\n,NIRFSA_ATTRIBUTE_NUMBER_OF_RECORDS_IS_FINITE\x10\xba\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_NUMBER_OF_RECORDS\x10\xbb\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_POWER_SPECTRUM_UNITS\x10\xbc\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_RESOLUTION_BANDWIDTH\x10\xbd\x98\x46\x12\x30\n*NIRFSA_ATTRIBUTE_RESOLUTION_BANDWIDTH_TYPE\x10\xbe\x98\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SPECTRUM_NUMBER_OF_AVERAGES\x10\xbf\x98\x46\x12.\n(NIRFSA_ATTRIBUTE_SPECTRUM_AVERAGING_MODE\x10\xc0\x98\x46\x12&\n NIRFSA_ATTRIBUTE_FFT_WINDOW_TYPE\x10\xc1\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_NUMBER_OF_SPECTRAL_LINES\x10\xc2\x98\x46\x12\'\n!NIRFSA_ATTRIBUTE_REF_CLOCK_SOURCE\x10\xc3\x98\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_REF_CLOCK_RATE\x10\xc4\x98\x46\x12=\n7NIRFSA_ATTRIBUTE_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE\x10\xc5\x98\x46\x12;\n5NIRFSA_ATTRIBUTE_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_RATE\x10\xc6\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_PXI_CHASSIS_CLK10_SOURCE\x10\xc7\x98\x46\x12)\n#NIRFSA_ATTRIBUTE_START_TRIGGER_TYPE\x10\xc8\x98\x46\x12\x38\n2NIRFSA_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_SOURCE\x10\xc9\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_EDGE\x10\xca\x98\x46\x12=\n7NIRFSA_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xcb\x98\x46\x12\'\n!NIRFSA_ATTRIBUTE_REF_TRIGGER_TYPE\x10\xcc\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DIGITAL_EDGE_REF_TRIGGER_SOURCE\x10\xcd\x98\x46\x12\x34\n.NIRFSA_ATTRIBUTE_DIGITAL_EDGE_REF_TRIGGER_EDGE\x10\xce\x98\x46\x12;\n5NIRFSA_ATTRIBUTE_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL\x10\xd0\x98\x46\x12\x33\n-NIRFSA_ATTRIBUTE_START_TO_REF_TRIGGER_HOLDOFF\x10\xd1\x98\x46\x12\x31\n+NIRFSA_ATTRIBUTE_REF_TO_REF_TRIGGER_HOLDOFF\x10\xd2\x98\x46\x12\x35\n/NIRFSA_ATTRIBUTE_REF_TRIGGER_PRETRIGGER_SAMPLES\x10\xd3\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_ADVANCE_TRIGGER_TYPE\x10\xd4\x98\x46\x12:\n4NIRFSA_ATTRIBUTE_DIGITAL_EDGE_ADVANCE_TRIGGER_SOURCE\x10\xd5\x98\x46\x12?\n9NIRFSA_ATTRIBUTE_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL\x10\xd6\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_ARM_REF_TRIGGER_TYPE\x10\xd7\x98\x46\x12:\n4NIRFSA_ATTRIBUTE_DIGITAL_EDGE_ARM_REF_TRIGGER_SOURCE\x10\xd8\x98\x46\x12\x45\n?NIRFSA_ATTRIBUTE_EXPORTED_READY_FOR_START_EVENT_OUTPUT_TERMINAL\x10\xd9\x98\x46\x12G\nANIRFSA_ATTRIBUTE_EXPORTED_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL\x10\xda\x98\x46\x12\x43\n=NIRFSA_ATTRIBUTE_EXPORTED_READY_FOR_REF_EVENT_OUTPUT_TERMINAL\x10\xdb\x98\x46\x12\x43\n=NIRFSA_ATTRIBUTE_EXPORTED_END_OF_RECORD_EVENT_OUTPUT_TERMINAL\x10\xdc\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_FETCH_RELATIVE_TO\x10\xdd\x98\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_FETCH_OFFSET\x10\xde\x98\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_RECORDS_DONE\x10\xdf\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DIGITAL_IF_EQUALIZATION_ENABLED\x10\xe0\x98\x46\x12&\n NIRFSA_ATTRIBUTE_FFT_WINDOW_SIZE\x10\xe1\x98\x46\x12\x1f\n\x19NIRFSA_ATTRIBUTE_FFT_SIZE\x10\xe2\x98\x46\x12)\n#NIRFSA_ATTRIBUTE_DEVICE_TEMPERATURE\x10\xe3\x98\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_SERIAL_NUMBER\x10\xe5\x98\x46\x12:\n4NIRFSA_ATTRIBUTE_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL\x10\xe6\x98\x46\x12\x37\n1NIRFSA_ATTRIBUTE_IQ_POWER_EDGE_REF_TRIGGER_SOURCE\x10\xe7\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_IQ_POWER_EDGE_REF_TRIGGER_LEVEL\x10\xe8\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_IQ_POWER_EDGE_REF_TRIGGER_SLOPE\x10\xe9\x98\x46\x12\x35\n/NIRFSA_ATTRIBUTE_REF_TRIGGER_MINIMUM_QUIET_TIME\x10\xea\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_IQ_CARRIER_FREQUENCY\x10\xeb\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_REF_TRIGGER_DELAY\x10\xec\x98\x46\x12\x30\n*NIRFSA_ATTRIBUTE_TEMPERATURE_READ_INTERVAL\x10\xed\x98\x46\x12)\n#NIRFSA_ATTRIBUTE_DOWNCONVERTER_GAIN\x10\xf1\x98\x46\x12\x33\n-NIRFSA_ATTRIBUTE_DOWNCONVERTER_LOOP_BANDWIDTH\x10\xf3\x98\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_LO_FREQUENCY\x10\xf4\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_LO_INJECTION_SIDE\x10\xf5\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_DIGITIZER_VERTICAL_RANGE\x10\xf6\x98\x46\x12\x33\n-NIRFSA_ATTRIBUTE_ENABLE_FRACTIONAL_RESAMPLING\x10\xf7\x98\x46\x12\x39\n3NIRFSA_ATTRIBUTE_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL\x10\xf8\x98\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_IF_ATTENUATION\x10\xfa\x98\x46\x12 \n\x1aNIRFSA_ATTRIBUTE_IF_FILTER\x10\xfb\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_RF_ATTENUATION_INDEX\x10\xfc\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_RF_ATTENUATION_TABLE\x10\xfd\x98\x46\x12&\n NIRFSA_ATTRIBUTE_IF1_ATTEN_VALUE\x10\xfe\x98\x46\x12&\n NIRFSA_ATTRIBUTE_IF2_ATTEN_VALUE\x10\xff\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_DIGITIZER_DITHER_ENABLED\x10\x80\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_MECHANICAL_ATTENUATOR_ENABLED\x10\x81\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_DOWNCONVERTER_CENTER_FREQUENCY\x10\x82\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_CAL_RF_PATH_SELECTION\x10\x83\x99\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_MEMORY_SIZE\x10\x85\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_IF_OUTPUT_FREQUENCY\x10\x86\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_FREQUENCY_SETTLING_UNITS\x10\x87\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_FREQUENCY_SETTLING\x10\x88\x99\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_LO_TEMPERATURE\x10\x89\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_DIGITIZER_TEMPERATURE\x10\x8a\x99\x46\x12&\n NIRFSA_ATTRIBUTE_MODULE_REVISION\x10\x8b\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST\x10\x8c\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST_STEP\x10\x8d\x99\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_EXTERNAL_GAIN\x10\x8e\x99\x46\x12=\n7NIRFSA_ATTRIBUTE_CONFIGURATION_LIST_STEP_TRIGGER_SOURCE\x10\x8f\x99\x46\x12+\n%NIRFSA_ATTRIBUTE_TIMER_EVENT_INTERVAL\x10\x90\x99\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_P2P_ENABLED\x10\x91\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_P2P_FIFO_ENDPOINT_COUNT\x10\x92\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_P2P_SAMPLES_TRANSFERRED\x10\x93\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_P2P_SAMPLES_AVAILABLE_IN_ENDPOINT\x10\x94\x99\x46\x12=\n7NIRFSA_ATTRIBUTE_P2P_MOST_SAMPLES_AVAILABLE_IN_ENDPOINT\x10\x95\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\x96\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_P2P_ENDPOINT_OVERFLOW\x10\x97\x99\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\x98\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\x99\x99\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_PHASE_OFFSET\x10\x9a\x99\x46\x12\x31\n+NIRFSA_ATTRIBUTE_P2P_ONBOARD_MEMORY_ENABLED\x10\x9b\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_CAL_IF_ATTENUATION_INDEX\x10\x9d\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CAL_RF_ELECTRONIC_ATTENUATION_INDEX\x10\x9e\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CAL_RF_MECHANICAL_ATTENUATION_INDEX\x10\x9f\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_CAL_IF_FILTER_SELECTION\x10\xa0\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_CAL_LO_PATH_SELECTION\x10\xa1\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_CAL_LO1_ATTENUATION\x10\xa2\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_CAL_LO2_ATTENUATION\x10\xa3\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_CAL_LO3_ATTENUATION\x10\xa4\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_READY_FOR_START_EVENT_TERMINAL_NAME\x10\xa5\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME\x10\xa6\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_READY_FOR_REF_EVENT_TERMINAL_NAME\x10\xa7\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_END_OF_RECORD_EVENT_TERMINAL_NAME\x10\xa8\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_DONE_EVENT_TERMINAL_NAME\x10\xa9\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_START_TRIGGER_TERMINAL_NAME\x10\xaa\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_REF_TRIGGER_TERMINAL_NAME\x10\xab\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_ADVANCE_TRIGGER_TERMINAL_NAME\x10\xac\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_DEVICE_INSTANTANEOUS_BANDWIDTH\x10\xad\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CONFIGURATION_LIST_STEP_IN_PROGRESS\x10\xae\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_MIXER_LEVEL_OFFSET\x10\xaf\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_MECHANICAL_ATTENUATION\x10\xb0\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_RF_PREAMP_ENABLED\x10\xb1\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_IF_OUTPUT_POWER_LEVEL\x10\xb2\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_IF_OUTPUT_POWER_LEVEL_OFFSET\x10\xb3\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_DOWNCONVERTER_PRESELECTOR_ENABLED\x10\xb4\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_LO_EXPORT_ENABLED\x10\xb6\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_LO_YIG_MAIN_COIL_DRIVE\x10\xb7\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_PRESELECTOR_PRESENT\x10\xb8\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_RF_PREAMP_PRESENT\x10\xb9\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_DOWNCONVERTER_CAL_TONE_MODE\x10\xbb\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_DOWNCONVERTER_CAL_TONE_FREQUENCY\x10\xbc\x99\x46\x12\x39\n3NIRFSA_ATTRIBUTE_CAL_IF_ATTENUATION_TABLE_SELECTION\x10\xbd\x99\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_MINIMUM_ACPR\x10\xbe\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SPECTRUM_OSP_SAMPLING_RATIO\x10\xc0\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_THROUGH_FILTER\x10\xc2\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_300_KHZ_FILTER\x10\xc3\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_5_MHZ_FILTER\x10\xc4\x99\x46\x12\'\n!NIRFSA_ATTRIBUTE_CHANNEL_COUPLING\x10\xc5\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_OSP_DATA_SCALING_FACTOR\x10\xc7\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_ALLOW_MORE_RECORDS_THAN_MEMORY\x10\xca\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_RF_ATTENUATION_STEP_SIZE\x10\xcb\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_STEP_GAIN_ENABLED\x10\xcd\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_5665_PRESELECTOR_TUNING_DAC_VALUE\x10\xce\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_DEVICE_CONFIGURATION_TEMPERATURE\x10\xcf\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SIGNAL_CONDITIONING_ENABLED\x10\xd0\x99\x46\x12>\n8NIRFSA_ATTRIBUTE_IF_CONDITIONING_DOWN_CONVERSION_ENABLED\x10\xd1\x99\x46\x12 \n\x1aNIRFSA_ATTRIBUTE_LO_SOURCE\x10\xd2\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_AMPLITUDE_SETTLING\x10\xd3\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_DDC_REF_TRIGGER_OVERRIDE\x10\xd4\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_MINIMUM_RECONFIG_TIME\x10\xd5\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_RF_PRESELECTOR_FILTER\x10\xd6\x99\x46\x12+\n%NIRFSA_ATTRIBUTE_NOTCH_FILTER_ENABLED\x10\xd7\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_CAL_TONE_STEP_ATTENUATION\x10\xd8\x99\x46\x12 \n\x1aNIRFSA_ATTRIBUTE_FFT_WIDTH\x10\xd9\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_INPUT_ISOLATION_ENABLED\x10\xda\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_CONTIGUOUS_MULTIRECORD\x10\xdc\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_TIMER_START_SOURCE\x10\xdd\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_CAL_TONE_POWER_REFERRED_TO_RF_IN\x10\xde\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_START_TRIGGER_DELAY\x10\xdf\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_SYNC_START_TRIGGER_MASTER\x10\xe0\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_SYNC_START_TRIGGER_DIST_LINE\x10\xe1\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_SYNC_REF_TRIGGER_MASTER\x10\xe2\x99\x46\x12\x31\n+NIRFSA_ATTRIBUTE_SYNC_REF_TRIGGER_DIST_LINE\x10\xe3\x99\x46\x12!\n\x1bNIRFSA_ATTRIBUTE_INPUT_PORT\x10\xe4\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_IQ_IN_PORT_CARRIER_FREQUENCY\x10\xe5\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_IQ_IN_PORT_TERMINAL_CONFIGURATION\x10\xe6\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_IQ_IN_PORT_VERTICAL_RANGE\x10\xe7\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SYNC_ADVANCE_TRIGGER_MASTER\x10\xe8\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_SYNC_ADVANCE_TRIGGER_DIST_LINE\x10\xe9\x99\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_LO_IN_POWER\x10\xea\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_LO_PLL_FRACTIONAL_MODE_ENABLED\x10\xeb\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_LO_FREQUENCY_STEP_SIZE\x10\xec\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_SYNC_REF_TRIGGER_DELAY_ENABLED\x10\xed\x99\x46\x12\'\n!NIRFSA_ATTRIBUTE_DECIMATION_DELAY\x10\xef\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_SOURCE\x10\xf0\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE\x10\xf1\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_LEVEL\x10\xf2\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_HYSTERESIS\x10\xf3\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_REF_TRIGGER_OSP_DELAY_ENABLED\x10\xf4\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_DOWNCONVERTER_FREQUENCY_OFFSET\x10\xfb\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_IQ_IN_PORT_TEMPERATURE\x10\xfc\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_IF_FILTER_BANDWIDTH\x10\xfd\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_FFT_WINDOW_SHAPE_FACTOR\x10\xfe\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_LOW_FREQUENCY_BYPASS_ENABLED\x10\xff\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_RF_CONDITIONING_CAL_TONE_MODE\x10\x80\x9a\x46\x12\x39\n3NIRFSA_ATTRIBUTE_RF_CONDITIONING_CAL_TONE_FREQUENCY\x10\x81\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_IF_CONDITIONING_TEMPERATURE\x10\x82\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_RF_CONDITIONING_TEMPERATURE\x10\x83\x9a\x46\x12H\nBNIRFSA_ATTRIBUTE_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_SELECTION\x10\x87\x9a\x46\x12\x34\n.NIRFSA_ATTRIBUTE_CAL_IF_ATTENUATION_TABLE_SIZE\x10\x88\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_SYNC_SAMPLE_CLOCK_MASTER\x10\x89\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SYNC_SAMPLE_CLOCK_DIST_LINE\x10\x8a\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_SMOOTH_SPECTRUM_ENABLED\x10\x8b\x9a\x46\x12-\n\'NIRFSA_ATTRIBUTE_RF_HIGH_PASS_FILTERING\x10\x8c\x9a\x46\x12(\n\"NIRFSA_ATTRIBUTE_FPGA_BITFILE_PATH\x10\x8d\x9a\x46\x12\x31\n+NIRFSA_ATTRIBUTE_NOISE_SOURCE_POWER_ENABLED\x10\x8e\x9a\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_100_MHZ_FILTER\x10\x8f\x9a\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_320_MHZ_FILTER\x10\x90\x9a\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_765_MHZ_FILTER\x10\x91\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_CAL_DIGITIZER_ID\x10\x92\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_DIGITIZER_SAMPLE_CLOCK_RATE\x10\x94\x9a\x46\x12\x46\n@NIRFSA_ATTRIBUTE_EXPORTED_DIGITIZER_SAMPLE_CLOCK_OUTPUT_TERMINAL\x10\x95\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_FPGA_TARGET_NAME\x10\x99\x9a\x46\x12&\n NIRFSA_ATTRIBUTE_SUBSPAN_OVERLAP\x10\x9a\x9a\x46\x12)\n#NIRFSA_ATTRIBUTE_LO2_EXPORT_ENABLED\x10\x9b\x9a\x46\x12\x39\n3NIRFSA_ATTRIBUTE_MAX_DEVICE_INSTANTANEOUS_BANDWIDTH\x10\x9c\x9a\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_MAX_IQ_RATE\x10\x9d\x9a\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_LO_OUT_POWER\x10\xa6\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_FPGA_TEMPERATURE\x10\xae\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_MODULE_POWER_CONSUMPTION\x10\xaf\x9a\x46\x12?\n9NIRFSA_ATTRIBUTE_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS\x10\xb0\x9a\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_ABSOLUTE_DELAY\x10\xba\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_SIGNAL_BANDWIDTH\x10\xbb\x9a\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_COMMON_MODE\x10\xbd\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_OVERFLOW_ERROR_REPORTING\x10\xbf\x9a\x46\x12+\n%NIRFSA_ATTRIBUTE_HOST_DMA_BUFFER_SIZE\x10\xcd\x9a\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_SELECTED_PORTS\x10\xd9\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_RF_OUT_LO_EXPORT_ENABLED\x10\xda\x9a\x46\x12\x38\n2NIRFSA_ATTRIBUTE_LO_OUT_EXPORT_CONFIGURE_FROM_RFSG\x10\xdb\x9a\x46\x12@\n:NIRFSA_ATTRIBUTE_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION\x10\xdc\x9a\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_DIGITAL_GAIN\x10\xdd\x9a\x46\x12:\n4NIRFSA_ATTRIBUTE_DOWNCONVERTER_FREQUENCY_OFFSET_MODE\x10\xe1\x9a\x46\x12&\n NIRFSA_ATTRIBUTE_AVAILABLE_PORTS\x10\xe2\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_DEEMBEDDING_TYPE\x10\xe3\x9a\x46\x12\x31\n+NIRFSA_ATTRIBUTE_DEEMBEDDING_SELECTED_TABLE\x10\xe4\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_REFERENCE_LEVEL_HEADROOM\x10\xe5\x9a\x46\x12\x31\n+NIRFSA_ATTRIBUTE_LO_VCO_FREQUENCY_STEP_SIZE\x10\xe8\x9a\x46\x12\x38\n2NIRFSA_ATTRIBUTE_THERMAL_CORRECTION_HEADROOM_RANGE\x10\xec\x9a\x46\x12\x34\n.NIRFSA_ATTRIBUTE_USER_SOURCE_PULSE_WIDTH_UNITS\x10\xf1\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_USER_SOURCE_PULSE_WIDTH\x10\xf2\x9a\x46\x12\x35\n/NIRFSA_ATTRIBUTE_FIXED_GROUP_DELAY_ACROSS_PORTS\x10\xf4\x9a\x46\x12\x34\n.NIRFSA_ATTRIBUTE_DEEMBEDDING_COMPENSATION_GAIN\x10\xf5\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_EXPORTED_REF_CLOCK_RATE\x10\xf6\x9a\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_SELECTED_PATH\x10\xfb\x9a\x46\x12&\n NIRFSA_ATTRIBUTE_AVAILABLE_PATHS\x10\xfc\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_CREATED_SESSION_CHANNEL\x10\xfd\x9a\x46\x12\x35\n/NIRFSA_ATTRIBUTE_MIN_FUNDAMENTAL_SILO_FREQUENCY\x10\xfe\x9a\x46\x12\x35\n/NIRFSA_ATTRIBUTE_MAX_FUNDAMENTAL_SILO_FREQUENCY\x10\xff\x9a\x46\x12\x42\nNIRFSA_INT32_CAL_IF_FILTER_SELECTION_EXT_CAL_IF_FILTER_PATH_10\x10\xbd\x10\x12\x43\n>NIRFSA_INT32_CAL_IF_FILTER_SELECTION_EXT_CAL_IF_FILTER_PATH_11\x10\xbe\x10\x12(\n#NIRFSA_INT32_CAL_TONE_MODE_DISABLED\x10\x8c\x15\x12*\n%NIRFSA_INT32_CAL_TONE_MODE_LOWBAND_RF\x10\x8d\x15\x12+\n&NIRFSA_INT32_CAL_TONE_MODE_HIGHBAND_RF\x10\x8e\x15\x12+\n&NIRFSA_INT32_CAL_TONE_MODE_HIGHBAND_IF\x10\x8f\x15\x12\x36\n1NIRFSA_INT32_CAL_TONE_MODE_LOWBAND_RF_WITHOUT_ALC\x10\x90\x15\x12.\n)NIRFSA_INT32_CAL_TONE_MODE_COMB_GENERATOR\x10\x91\x15\x12%\n NIRFSA_INT32_CHANNEL_COUPLING_AC\x10\xb9\x17\x12%\n NIRFSA_INT32_CHANNEL_COUPLING_DC\x10\xba\x17\x12\x35\n0NIRFSA_INT32_CONDITIONING_CAL_TONE_MODE_DISABLED\x10\x8c\x15\x12\x37\n2NIRFSA_INT32_CONDITIONING_CAL_TONE_MODE_LOWBAND_RF\x10\x8d\x15\x12\x38\n3NIRFSA_INT32_CONDITIONING_CAL_TONE_MODE_HIGHBAND_RF\x10\x8e\x15\x12\'\n\"NIRFSA_INT32_DEEMBEDDING_TYPE_NONE\x10\xbc\x1e\x12)\n$NIRFSA_INT32_DEEMBEDDING_TYPE_SCALAR\x10\xbd\x1e\x12)\n$NIRFSA_INT32_DEEMBEDDING_TYPE_VECTOR\x10\xbe\x1e\x12*\n%NIRFSA_INT32_DIGITAL_EDGE_RISING_EDGE\x10\x84\x07\x12+\n&NIRFSA_INT32_DIGITAL_EDGE_FALLING_EDGE\x10\x85\x07\x12?\n:NIRFSA_INT32_DOWNCONVERTER_FREQUENCY_OFFSET_MODE_AUTOMATIC\x10\xef\x0e\x12=\n8NIRFSA_INT32_DOWNCONVERTER_FREQUENCY_OFFSET_MODE_ENABLED\x10\xed\x0e\x12\x42\n=NIRFSA_INT32_DOWNCONVERTER_FREQUENCY_OFFSET_MODE_USER_DEFINED\x10\xf0\x0e\x12\x41\nNIRFSA_INT32_RF_PRESELECTOR_FILTER_FILTER_PATH_EXTERNAL_FILTER\x10\xf5\x19\x12\x35\n0NIRFSA_INT32_SIGNAL_CONDITIONING_ENABLED_ENABLED\x10\x90\x1c\x12\x36\n1NIRFSA_INT32_SIGNAL_CONDITIONING_ENABLED_BYPASSED\x10\x91\x1c\x12,\n\'NIRFSA_INT32_STEP_GAIN_ENABLED_DISABLED\x10\x80\x19\x12+\n&NIRFSA_INT32_STEP_GAIN_ENABLED_ENABLED\x10\x81\x19\x12+\n&NIRFSA_INT32_UNSPECIFIED_ATTR_DISABLED\x10\xec\x0e\x12*\n%NIRFSA_INT32_UNSPECIFIED_ATTR_ENABLED\x10\xed\x0e\x12.\n)NIRFSA_INT32_UNSPECIFIED_ATTR_UNSPECIFIED\x10\xee\x0e\x1a\x02\x10\x01*\xb9\x17\n!NiRFSAStringAttributeValuesMapped\x12$\n NIRFSA_STRING_MAPPED_UNSPECIFIED\x10\x00\x12:\n6NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_OUT_TERMINAL_NONE\x10\x01\x12=\n9NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_OUT_TERMINAL_CLK_OUT\x10\x02\x12\x46\nBNIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_ONBOARD_CLOCK\x10\x03\x12?\n;NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_CLK_IN\x10\x04\x12\x43\n?NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_LO_REF_CLK\x10\x05\x12\x41\n=NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_PXI_STAR\x10\x06\x12/\n+NIRFSA_STRING_EXPORT_TERMINAL_DO_NOT_EXPORT\x10\x07\x12&\n\"NIRFSA_STRING_EXPORT_TERMINAL_PFI0\x10\x08\x12&\n\"NIRFSA_STRING_EXPORT_TERMINAL_PFI1\x10\t\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG0\x10\n\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG1\x10\x0b\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG2\x10\x0c\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG3\x10\r\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG4\x10\x0e\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG5\x10\x0f\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG6\x10\x10\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG7\x10\x11\x12*\n&NIRFSA_STRING_EXPORT_TERMINAL_PXI_STAR\x10\x12\x12-\n)NIRFSA_STRING_EXPORT_TERMINAL_PXIE_DSTARC\x10\x13\x12)\n%NIRFSA_STRING_EXPORT_TERMINAL_REF_OUT\x10\x14\x12*\n&NIRFSA_STRING_EXPORT_TERMINAL_REF_OUT2\x10\x15\x12)\n%NIRFSA_STRING_EXPORT_TERMINAL_CLK_OUT\x10\x16\x12-\n)NIRFSA_STRING_LO_SOURCE_SELECTION_ONBOARD\x10\x17\x12+\n\'NIRFSA_STRING_LO_SOURCE_SELECTION_LO_IN\x10\x18\x12\x39\n5NIRFSA_STRING_LO_SOURCE_SELECTION_LO_SOURCE_SECONDARY\x10\x19\x12<\n8NIRFSA_STRING_LO_SOURCE_SELECTION_LO_SOURCE_SG_SA_SHARED\x10\x1a\x12/\n+NIRFSA_STRING_PXI_CHASSIS_CLK10_SOURCE_NONE\x10\x1b\x12\x38\n4NIRFSA_STRING_PXI_CHASSIS_CLK10_SOURCE_ONBOARD_CLOCK\x10\x1c\x12\x31\n-NIRFSA_STRING_PXI_CHASSIS_CLK10_SOURCE_REF_IN\x10\x1d\x12-\n)NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_NONE\x10\x1e\x12\x30\n,NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_REF_OUT\x10\x1f\x12\x31\n-NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_REF_OUT2\x10 \x12\x30\n,NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_CLK_OUT\x10!\x12\x38\n4NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_IF_COND_REF_OUT\x10\"\x12\'\n#NIRFSA_STRING_REF_CLOCK_SOURCE_NONE\x10#\x12\x30\n,NIRFSA_STRING_REF_CLOCK_SOURCE_ONBOARD_CLOCK\x10$\x12)\n%NIRFSA_STRING_REF_CLOCK_SOURCE_REF_IN\x10%\x12*\n&NIRFSA_STRING_REF_CLOCK_SOURCE_PXI_CLK\x10&\x12)\n%NIRFSA_STRING_REF_CLOCK_SOURCE_CLK_IN\x10\'\x12+\n\'NIRFSA_STRING_REF_CLOCK_SOURCE_REF_IN_2\x10(\x12\x31\n-NIRFSA_STRING_REF_CLOCK_SOURCE_PXI_CLK_MASTER\x10)\x12%\n!NIRFSA_STRING_TRIGGER_SOURCE_PFI0\x10*\x12%\n!NIRFSA_STRING_TRIGGER_SOURCE_PFI1\x10+\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG0\x10,\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG1\x10-\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG2\x10.\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG3\x10/\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG4\x10\x30\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG5\x10\x31\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG6\x10\x32\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG7\x10\x33\x12)\n%NIRFSA_STRING_TRIGGER_SOURCE_PXI_STAR\x10\x34\x12,\n(NIRFSA_STRING_TRIGGER_SOURCE_PXIE_DSTARB\x10\x35\x12,\n(NIRFSA_STRING_TRIGGER_SOURCE_TIMER_EVENT\x10\x36\x12\x34\n0NIRFSA_STRING_TRIGGER_SOURCE_END_OF_RECORD_EVENT\x10\x37\x12.\n*NIRFSA_STRING_TRIGGER_SOURCE_START_TRIGGER\x10\x38\x12\x32\n.NIRFSA_STRING_TRIGGER_SOURCE_REFERENCE_TRIGGER\x10\x39\x12\x33\n/NIRFSA_STRING_TRIGGER_SOURCE_SYNC_START_TRIGGER\x10:\x12\x31\n-NIRFSA_STRING_TRIGGER_SOURCE_SYNC_REF_TRIGGER\x10;\x12\x35\n1NIRFSA_STRING_TRIGGER_SOURCE_SYNC_ADVANCE_TRIGGER\x10<2\xf9\\\n\x06NiRFSA\x12>\n\x05\x41\x62ort\x12\x19.nirfsa_grpc.AbortRequest\x1a\x1a.nirfsa_grpc.AbortResponse\x12q\n\x16\x43heckAcquisitionStatus\x12*.nirfsa_grpc.CheckAcquisitionStatusRequest\x1a+.nirfsa_grpc.CheckAcquisitionStatusResponse\x12M\n\nClearError\x12\x1e.nirfsa_grpc.ClearErrorRequest\x1a\x1f.nirfsa_grpc.ClearErrorResponse\x12t\n\x17\x43learSelfCalibrateRange\x12+.nirfsa_grpc.ClearSelfCalibrateRangeRequest\x1a,.nirfsa_grpc.ClearSelfCalibrateRangeResponse\x12>\n\x05\x43lose\x12\x19.nirfsa_grpc.CloseRequest\x1a\x1a.nirfsa_grpc.CloseResponse\x12\x41\n\x06\x43ommit\x12\x1a.nirfsa_grpc.CommitRequest\x1a\x1b.nirfsa_grpc.CommitResponse\x12w\n\x18\x43onfigureAcquisitionType\x12,.nirfsa_grpc.ConfigureAcquisitionTypeRequest\x1a-.nirfsa_grpc.ConfigureAcquisitionTypeResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationLinear\x12@.nirfsa_grpc.ConfigureDeembeddingTableInterpolationLinearRequest\x1a\x41.nirfsa_grpc.ConfigureDeembeddingTableInterpolationLinearResponse\x12\xb6\x01\n-ConfigureDeembeddingTableInterpolationNearest\x12\x41.nirfsa_grpc.ConfigureDeembeddingTableInterpolationNearestRequest\x1a\x42.nirfsa_grpc.ConfigureDeembeddingTableInterpolationNearestResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationSpline\x12@.nirfsa_grpc.ConfigureDeembeddingTableInterpolationSplineRequest\x1a\x41.nirfsa_grpc.ConfigureDeembeddingTableInterpolationSplineResponse\x12\x95\x01\n\"ConfigureDigitalEdgeAdvanceTrigger\x12\x36.nirfsa_grpc.ConfigureDigitalEdgeAdvanceTriggerRequest\x1a\x37.nirfsa_grpc.ConfigureDigitalEdgeAdvanceTriggerResponse\x12\x89\x01\n\x1e\x43onfigureDigitalEdgeRefTrigger\x12\x32.nirfsa_grpc.ConfigureDigitalEdgeRefTriggerRequest\x1a\x33.nirfsa_grpc.ConfigureDigitalEdgeRefTriggerResponse\x12\x8f\x01\n ConfigureDigitalEdgeStartTrigger\x12\x34.nirfsa_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x35.nirfsa_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x80\x01\n\x1b\x43onfigureIQCarrierFrequency\x12/.nirfsa_grpc.ConfigureIQCarrierFrequencyRequest\x1a\x30.nirfsa_grpc.ConfigureIQCarrierFrequencyResponse\x12\x89\x01\n\x1e\x43onfigureIQPowerEdgeRefTrigger\x12\x32.nirfsa_grpc.ConfigureIQPowerEdgeRefTriggerRequest\x1a\x33.nirfsa_grpc.ConfigureIQPowerEdgeRefTriggerResponse\x12\\\n\x0f\x43onfigureIQRate\x12#.nirfsa_grpc.ConfigureIQRateRequest\x1a$.nirfsa_grpc.ConfigureIQRateResponse\x12w\n\x18\x43onfigureNumberOfRecords\x12,.nirfsa_grpc.ConfigureNumberOfRecordsRequest\x1a-.nirfsa_grpc.ConfigureNumberOfRecordsResponse\x12w\n\x18\x43onfigureNumberOfSamples\x12,.nirfsa_grpc.ConfigureNumberOfSamplesRequest\x1a-.nirfsa_grpc.ConfigureNumberOfSamplesResponse\x12w\n\x18\x43onfigurePXIChassisClk10\x12,.nirfsa_grpc.ConfigurePXIChassisClk10Request\x1a-.nirfsa_grpc.ConfigurePXIChassisClk10Response\x12\x62\n\x11\x43onfigureRefClock\x12%.nirfsa_grpc.ConfigureRefClockRequest\x1a&.nirfsa_grpc.ConfigureRefClockResponse\x12t\n\x17\x43onfigureReferenceLevel\x12+.nirfsa_grpc.ConfigureReferenceLevelRequest\x1a,.nirfsa_grpc.ConfigureReferenceLevelResponse\x12\x83\x01\n\x1c\x43onfigureResolutionBandwidth\x12\x30.nirfsa_grpc.ConfigureResolutionBandwidthRequest\x1a\x31.nirfsa_grpc.ConfigureResolutionBandwidthResponse\x12\x98\x01\n#ConfigureSoftwareEdgeAdvanceTrigger\x12\x37.nirfsa_grpc.ConfigureSoftwareEdgeAdvanceTriggerRequest\x1a\x38.nirfsa_grpc.ConfigureSoftwareEdgeAdvanceTriggerResponse\x12\x8c\x01\n\x1f\x43onfigureSoftwareEdgeRefTrigger\x12\x33.nirfsa_grpc.ConfigureSoftwareEdgeRefTriggerRequest\x1a\x34.nirfsa_grpc.ConfigureSoftwareEdgeRefTriggerResponse\x12\x92\x01\n!ConfigureSoftwareEdgeStartTrigger\x12\x35.nirfsa_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a\x36.nirfsa_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12\x9b\x01\n$ConfigureSpectrumFrequencyCenterSpan\x12\x38.nirfsa_grpc.ConfigureSpectrumFrequencyCenterSpanRequest\x1a\x39.nirfsa_grpc.ConfigureSpectrumFrequencyCenterSpanResponse\x12\x98\x01\n#ConfigureSpectrumFrequencyStartStop\x12\x37.nirfsa_grpc.ConfigureSpectrumFrequencyStartStopRequest\x1a\x38.nirfsa_grpc.ConfigureSpectrumFrequencyStartStopResponse\x12t\n\x17\x43reateConfigurationList\x12+.nirfsa_grpc.CreateConfigurationListRequest\x1a,.nirfsa_grpc.CreateConfigurationListResponse\x12\x80\x01\n\x1b\x43reateConfigurationListStep\x12/.nirfsa_grpc.CreateConfigurationListStepRequest\x1a\x30.nirfsa_grpc.CreateConfigurationListStepResponse\x12\x9e\x01\n%CreateDeembeddingSparameterTableArray\x12\x39.nirfsa_grpc.CreateDeembeddingSparameterTableArrayRequest\x1a:.nirfsa_grpc.CreateDeembeddingSparameterTableArrayResponse\x12\xa4\x01\n\'CreateDeembeddingSparameterTableS2PFile\x12;.nirfsa_grpc.CreateDeembeddingSparameterTableS2PFileRequest\x1a<.nirfsa_grpc.CreateDeembeddingSparameterTableS2PFileResponse\x12}\n\x1a\x44\x65leteAllDeembeddingTables\x12..nirfsa_grpc.DeleteAllDeembeddingTablesRequest\x1a/.nirfsa_grpc.DeleteAllDeembeddingTablesResponse\x12t\n\x17\x44\x65leteConfigurationList\x12+.nirfsa_grpc.DeleteConfigurationListRequest\x1a,.nirfsa_grpc.DeleteConfigurationListResponse\x12q\n\x16\x44\x65leteDeembeddingTable\x12*.nirfsa_grpc.DeleteDeembeddingTableRequest\x1a+.nirfsa_grpc.DeleteDeembeddingTableResponse\x12\x44\n\x07\x44isable\x12\x1b.nirfsa_grpc.DisableRequest\x1a\x1c.nirfsa_grpc.DisableResponse\x12n\n\x15\x44isableAdvanceTrigger\x12).nirfsa_grpc.DisableAdvanceTriggerRequest\x1a*.nirfsa_grpc.DisableAdvanceTriggerResponse\x12\x62\n\x11\x44isableRefTrigger\x12%.nirfsa_grpc.DisableRefTriggerRequest\x1a&.nirfsa_grpc.DisableRefTriggerResponse\x12h\n\x13\x44isableStartTrigger\x12\'.nirfsa_grpc.DisableStartTriggerRequest\x1a(.nirfsa_grpc.DisableStartTriggerResponse\x12h\n\x13\x45nableSessionAccess\x12\'.nirfsa_grpc.EnableSessionAccessRequest\x1a(.nirfsa_grpc.EnableSessionAccessResponse\x12S\n\x0c\x45rrorMessage\x12 .nirfsa_grpc.ErrorMessageRequest\x1a!.nirfsa_grpc.ErrorMessageResponse\x12M\n\nErrorQuery\x12\x1e.nirfsa_grpc.ErrorQueryRequest\x1a\x1f.nirfsa_grpc.ErrorQueryResponse\x12S\n\x0c\x45xportSignal\x12 .nirfsa_grpc.ExportSignalRequest\x1a!.nirfsa_grpc.ExportSignalResponse\x12\x83\x01\n\x1c\x46\x65tchIQMultiRecordComplexF32\x12\x30.nirfsa_grpc.FetchIQMultiRecordComplexF32Request\x1a\x31.nirfsa_grpc.FetchIQMultiRecordComplexF32Response\x12\x83\x01\n\x1c\x46\x65tchIQMultiRecordComplexF64\x12\x30.nirfsa_grpc.FetchIQMultiRecordComplexF64Request\x1a\x31.nirfsa_grpc.FetchIQMultiRecordComplexF64Response\x12\x83\x01\n\x1c\x46\x65tchIQMultiRecordComplexI16\x12\x30.nirfsa_grpc.FetchIQMultiRecordComplexI16Request\x1a\x31.nirfsa_grpc.FetchIQMultiRecordComplexI16Response\x12\x86\x01\n\x1d\x46\x65tchIQSingleRecordComplexF32\x12\x31.nirfsa_grpc.FetchIQSingleRecordComplexF32Request\x1a\x32.nirfsa_grpc.FetchIQSingleRecordComplexF32Response\x12\x86\x01\n\x1d\x46\x65tchIQSingleRecordComplexF64\x12\x31.nirfsa_grpc.FetchIQSingleRecordComplexF64Request\x1a\x32.nirfsa_grpc.FetchIQSingleRecordComplexF64Response\x12\x86\x01\n\x1d\x46\x65tchIQSingleRecordComplexI16\x12\x31.nirfsa_grpc.FetchIQSingleRecordComplexI16Request\x1a\x32.nirfsa_grpc.FetchIQSingleRecordComplexI16Response\x12n\n\x15GetAttributeViBoolean\x12).nirfsa_grpc.GetAttributeViBooleanRequest\x1a*.nirfsa_grpc.GetAttributeViBooleanResponse\x12h\n\x13GetAttributeViInt32\x12\'.nirfsa_grpc.GetAttributeViInt32Request\x1a(.nirfsa_grpc.GetAttributeViInt32Response\x12h\n\x13GetAttributeViInt64\x12\'.nirfsa_grpc.GetAttributeViInt64Request\x1a(.nirfsa_grpc.GetAttributeViInt64Response\x12k\n\x14GetAttributeViReal64\x12(.nirfsa_grpc.GetAttributeViReal64Request\x1a).nirfsa_grpc.GetAttributeViReal64Response\x12n\n\x15GetAttributeViSession\x12).nirfsa_grpc.GetAttributeViSessionRequest\x1a*.nirfsa_grpc.GetAttributeViSessionResponse\x12k\n\x14GetAttributeViString\x12(.nirfsa_grpc.GetAttributeViStringRequest\x1a).nirfsa_grpc.GetAttributeViStringResponse\x12n\n\x15GetCalUserDefinedInfo\x12).nirfsa_grpc.GetCalUserDefinedInfoRequest\x1a*.nirfsa_grpc.GetCalUserDefinedInfoResponse\x12\x83\x01\n\x1cGetCalUserDefinedInfoMaxSize\x12\x30.nirfsa_grpc.GetCalUserDefinedInfoMaxSizeRequest\x1a\x31.nirfsa_grpc.GetCalUserDefinedInfoMaxSizeResponse\x12z\n\x19GetDeembeddingSparameters\x12-.nirfsa_grpc.GetDeembeddingSparametersRequest\x1a..nirfsa_grpc.GetDeembeddingSparametersResponse\x12\x62\n\x11GetDeviceResponse\x12%.nirfsa_grpc.GetDeviceResponseRequest\x1a&.nirfsa_grpc.GetDeviceResponseResponse\x12G\n\x08GetError\x12\x1c.nirfsa_grpc.GetErrorRequest\x1a\x1d.nirfsa_grpc.GetErrorResponse\x12w\n\x18GetExtCalLastDateAndTime\x12,.nirfsa_grpc.GetExtCalLastDateAndTimeRequest\x1a-.nirfsa_grpc.GetExtCalLastDateAndTimeResponse\x12\x62\n\x11GetExtCalLastTemp\x12%.nirfsa_grpc.GetExtCalLastTempRequest\x1a&.nirfsa_grpc.GetExtCalLastTempResponse\x12\x83\x01\n\x1cGetExtCalRecommendedInterval\x12\x30.nirfsa_grpc.GetExtCalRecommendedIntervalRequest\x1a\x31.nirfsa_grpc.GetExtCalRecommendedIntervalResponse\x12\\\n\x0fGetFetchBacklog\x12#.nirfsa_grpc.GetFetchBacklogRequest\x1a$.nirfsa_grpc.GetFetchBacklogResponse\x12k\n\x14GetFrequencyResponse\x12(.nirfsa_grpc.GetFrequencyResponseRequest\x1a).nirfsa_grpc.GetFrequencyResponseResponse\x12\x83\x01\n\x1cGetNormalizationCoefficients\x12\x30.nirfsa_grpc.GetNormalizationCoefficientsRequest\x1a\x31.nirfsa_grpc.GetNormalizationCoefficientsResponse\x12w\n\x18GetNumberOfSpectralLines\x12,.nirfsa_grpc.GetNumberOfSpectralLinesRequest\x1a-.nirfsa_grpc.GetNumberOfSpectralLinesResponse\x12S\n\x0cGetRelayName\x12 .nirfsa_grpc.GetRelayNameRequest\x1a!.nirfsa_grpc.GetRelayNameResponse\x12t\n\x17GetRelayOperationsCount\x12+.nirfsa_grpc.GetRelayOperationsCountRequest\x1a,.nirfsa_grpc.GetRelayOperationsCountResponse\x12q\n\x16GetScalingCoefficients\x12*.nirfsa_grpc.GetScalingCoefficientsRequest\x1a+.nirfsa_grpc.GetScalingCoefficientsResponse\x12z\n\x19GetSelfCalLastDateAndTime\x12-.nirfsa_grpc.GetSelfCalLastDateAndTimeRequest\x1a..nirfsa_grpc.GetSelfCalLastDateAndTimeResponse\x12\x65\n\x12GetSelfCalLastTemp\x12&.nirfsa_grpc.GetSelfCalLastTempRequest\x1a\'.nirfsa_grpc.GetSelfCalLastTempResponse\x12n\n\x15GetSpectralInfoForSMT\x12).nirfsa_grpc.GetSpectralInfoForSMTRequest\x1a*.nirfsa_grpc.GetSpectralInfoForSMTResponse\x12t\n\x17GetStreamEndpointHandle\x12+.nirfsa_grpc.GetStreamEndpointHandleRequest\x1a,.nirfsa_grpc.GetStreamEndpointHandleResponse\x12\\\n\x0fGetTerminalName\x12#.nirfsa_grpc.GetTerminalNameRequest\x1a$.nirfsa_grpc.GetTerminalNameResponse\x12P\n\x0bGetUserData\x12\x1f.nirfsa_grpc.GetUserDataRequest\x1a .nirfsa_grpc.GetUserDataResponse\x12;\n\x04Init\x12\x18.nirfsa_grpc.InitRequest\x1a\x19.nirfsa_grpc.InitResponse\x12\\\n\x0fInitWithOptions\x12#.nirfsa_grpc.InitWithOptionsRequest\x1a$.nirfsa_grpc.InitWithOptionsResponse\x12G\n\x08Initiate\x12\x1c.nirfsa_grpc.InitiateRequest\x1a\x1d.nirfsa_grpc.InitiateResponse\x12t\n\x17InvalidateAllAttributes\x12+.nirfsa_grpc.InvalidateAllAttributesRequest\x1a,.nirfsa_grpc.InvalidateAllAttributesResponse\x12Y\n\x0eIsSelfCalValid\x12\".nirfsa_grpc.IsSelfCalValidRequest\x1a#.nirfsa_grpc.IsSelfCalValidResponse\x12}\n\x1aLoadConfigurationsFromFile\x12..nirfsa_grpc.LoadConfigurationsFromFileRequest\x1a/.nirfsa_grpc.LoadConfigurationsFromFileResponse\x12w\n\x18PerformThermalCorrection\x12,.nirfsa_grpc.PerformThermalCorrectionRequest\x1a-.nirfsa_grpc.PerformThermalCorrectionResponse\x12\x83\x01\n\x1cReadIQSingleRecordComplexF64\x12\x30.nirfsa_grpc.ReadIQSingleRecordComplexF64Request\x1a\x31.nirfsa_grpc.ReadIQSingleRecordComplexF64Response\x12k\n\x14ReadPowerSpectrumF32\x12(.nirfsa_grpc.ReadPowerSpectrumF32Request\x1a).nirfsa_grpc.ReadPowerSpectrumF32Response\x12k\n\x14ReadPowerSpectrumF64\x12(.nirfsa_grpc.ReadPowerSpectrumF64Request\x1a).nirfsa_grpc.ReadPowerSpectrumF64Response\x12>\n\x05Reset\x12\x19.nirfsa_grpc.ResetRequest\x1a\x1a.nirfsa_grpc.ResetResponse\x12Y\n\x0eResetAttribute\x12\".nirfsa_grpc.ResetAttributeRequest\x1a#.nirfsa_grpc.ResetAttributeResponse\x12P\n\x0bResetDevice\x12\x1f.nirfsa_grpc.ResetDeviceRequest\x1a .nirfsa_grpc.ResetDeviceResponse\x12\x62\n\x11ResetWithDefaults\x12%.nirfsa_grpc.ResetWithDefaultsRequest\x1a&.nirfsa_grpc.ResetWithDefaultsResponse\x12_\n\x10ResetWithOptions\x12$.nirfsa_grpc.ResetWithOptionsRequest\x1a%.nirfsa_grpc.ResetWithOptionsResponse\x12V\n\rRevisionQuery\x12!.nirfsa_grpc.RevisionQueryRequest\x1a\".nirfsa_grpc.RevisionQueryResponse\x12w\n\x18SaveConfigurationsToFile\x12,.nirfsa_grpc.SaveConfigurationsToFileRequest\x1a-.nirfsa_grpc.SaveConfigurationsToFileResponse\x12\x44\n\x07SelfCal\x12\x1b.nirfsa_grpc.SelfCalRequest\x1a\x1c.nirfsa_grpc.SelfCalResponse\x12V\n\rSelfCalibrate\x12!.nirfsa_grpc.SelfCalibrateRequest\x1a\".nirfsa_grpc.SelfCalibrateResponse\x12\x65\n\x12SelfCalibrateRange\x12&.nirfsa_grpc.SelfCalibrateRangeRequest\x1a\'.nirfsa_grpc.SelfCalibrateRangeResponse\x12G\n\x08SelfTest\x12\x1c.nirfsa_grpc.SelfTestRequest\x1a\x1d.nirfsa_grpc.SelfTestResponse\x12t\n\x17SendSoftwareEdgeTrigger\x12+.nirfsa_grpc.SendSoftwareEdgeTriggerRequest\x1a,.nirfsa_grpc.SendSoftwareEdgeTriggerResponse\x12n\n\x15SetAttributeViBoolean\x12).nirfsa_grpc.SetAttributeViBooleanRequest\x1a*.nirfsa_grpc.SetAttributeViBooleanResponse\x12h\n\x13SetAttributeViInt32\x12\'.nirfsa_grpc.SetAttributeViInt32Request\x1a(.nirfsa_grpc.SetAttributeViInt32Response\x12h\n\x13SetAttributeViInt64\x12\'.nirfsa_grpc.SetAttributeViInt64Request\x1a(.nirfsa_grpc.SetAttributeViInt64Response\x12k\n\x14SetAttributeViReal64\x12(.nirfsa_grpc.SetAttributeViReal64Request\x1a).nirfsa_grpc.SetAttributeViReal64Response\x12n\n\x15SetAttributeViSession\x12).nirfsa_grpc.SetAttributeViSessionRequest\x1a*.nirfsa_grpc.SetAttributeViSessionResponse\x12k\n\x14SetAttributeViString\x12(.nirfsa_grpc.SetAttributeViStringRequest\x1a).nirfsa_grpc.SetAttributeViStringResponse\x12n\n\x15SetCalUserDefinedInfo\x12).nirfsa_grpc.SetCalUserDefinedInfoRequest\x1a*.nirfsa_grpc.SetCalUserDefinedInfoResponse\x12P\n\x0bSetUserData\x12\x1f.nirfsa_grpc.SetUserDataRequest\x1a .nirfsa_grpc.SetUserDataResponseB>\n\x10\x63om.ni.grpc.rfsaB\x06NiRFSAP\x01\xaa\x02\x1fNationalInstruments.Grpc.NiRFSAb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nirfsa_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\020com.ni.grpc.rfsaB\006NiRFSAP\001\252\002\037NationalInstruments.Grpc.NiRFSA' - _NIRFSAINT32ATTRIBUTEVALUES._options = None - _NIRFSAINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NIRFSAATTRIBUTE']._serialized_start=21470 - _globals['_NIRFSAATTRIBUTE']._serialized_end=34268 - _globals['_ACQUISITIONTYPE']._serialized_start=34270 - _globals['_ACQUISITIONTYPE']._serialized_end=34377 - _globals['_ANALOGSLOPE']._serialized_start=34379 - _globals['_ANALOGSLOPE']._serialized_end=34487 - _globals['_DEVICERESPONSE']._serialized_start=34490 - _globals['_DEVICERESPONSE']._serialized_end=34771 - _globals['_DIGITALEDGE']._serialized_start=34773 - _globals['_DIGITALEDGE']._serialized_end=34879 - _globals['_DIGITALEDGETRIGGERSOURCE']._serialized_start=34882 - _globals['_DIGITALEDGETRIGGERSOURCE']._serialized_end=35772 - _globals['_EXPORTTERMINAL']._serialized_start=35775 - _globals['_EXPORTTERMINAL']._serialized_end=36310 - _globals['_LINEARINTERPOLATIONFORMAT']._serialized_start=36313 - _globals['_LINEARINTERPOLATIONFORMAT']._serialized_end=36549 - _globals['_PXICHASSISCLK10SOURCE']._serialized_start=36552 - _globals['_PXICHASSISCLK10SOURCE']._serialized_end=36733 - _globals['_REFCLOCKSOURCE']._serialized_start=36736 - _globals['_REFCLOCKSOURCE']._serialized_end=37005 - _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_start=37008 - _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_end=37182 - _globals['_SELFCALIBRATESTEPS']._serialized_start=37185 - _globals['_SELFCALIBRATESTEPS']._serialized_end=37654 - _globals['_SIGNAL']._serialized_start=37657 - _globals['_SIGNAL']._serialized_end=38002 - _globals['_SPARAMETERORIENTATION']._serialized_start=38005 - _globals['_SPARAMETERORIENTATION']._serialized_end=38162 - _globals['_NIRFSAINT32ATTRIBUTEVALUES']._serialized_start=38165 - _globals['_NIRFSAINT32ATTRIBUTEVALUES']._serialized_end=46395 - _globals['_NIRFSASTRINGATTRIBUTEVALUESMAPPED']._serialized_start=46398 - _globals['_NIRFSASTRINGATTRIBUTEVALUESMAPPED']._serialized_end=49399 - _globals['_WAVEFORMINFO']._serialized_start=61 - _globals['_WAVEFORMINFO']._serialized_end=206 - _globals['_COEFFICIENTINFO']._serialized_start=208 - _globals['_COEFFICIENTINFO']._serialized_end=255 - _globals['_SPECTRUMINFO']._serialized_start=257 - _globals['_SPECTRUMINFO']._serialized_end=361 - _globals['_ABORTREQUEST']._serialized_start=363 - _globals['_ABORTREQUEST']._serialized_end=413 - _globals['_ABORTRESPONSE']._serialized_start=415 - _globals['_ABORTRESPONSE']._serialized_end=446 - _globals['_CHECKACQUISITIONSTATUSREQUEST']._serialized_start=448 - _globals['_CHECKACQUISITIONSTATUSREQUEST']._serialized_end=515 - _globals['_CHECKACQUISITIONSTATUSRESPONSE']._serialized_start=517 - _globals['_CHECKACQUISITIONSTATUSRESPONSE']._serialized_end=582 - _globals['_CLEARERRORREQUEST']._serialized_start=584 - _globals['_CLEARERRORREQUEST']._serialized_end=639 - _globals['_CLEARERRORRESPONSE']._serialized_start=641 - _globals['_CLEARERRORRESPONSE']._serialized_end=677 - _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_start=679 - _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_end=747 - _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_start=749 - _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_end=798 - _globals['_CLOSEREQUEST']._serialized_start=800 - _globals['_CLOSEREQUEST']._serialized_end=850 - _globals['_CLOSERESPONSE']._serialized_start=852 - _globals['_CLOSERESPONSE']._serialized_end=883 - _globals['_COMMITREQUEST']._serialized_start=885 - _globals['_COMMITREQUEST']._serialized_end=936 - _globals['_COMMITRESPONSE']._serialized_start=938 - _globals['_COMMITRESPONSE']._serialized_end=970 - _globals['_CONFIGUREACQUISITIONTYPEREQUEST']._serialized_start=973 - _globals['_CONFIGUREACQUISITIONTYPEREQUEST']._serialized_end=1157 - _globals['_CONFIGUREACQUISITIONTYPERESPONSE']._serialized_start=1159 - _globals['_CONFIGUREACQUISITIONTYPERESPONSE']._serialized_end=1209 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_start=1212 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_end=1430 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_start=1432 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_end=1502 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_start=1504 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_end=1628 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_start=1630 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_end=1701 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_start=1703 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_end=1826 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_start=1828 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_end=1898 - _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERREQUEST']._serialized_start=1901 - _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERREQUEST']._serialized_end=2156 - _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERRESPONSE']._serialized_start=2158 - _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERRESPONSE']._serialized_end=2218 - _globals['_CONFIGUREDIGITALEDGEREFTRIGGERREQUEST']._serialized_start=2221 - _globals['_CONFIGUREDIGITALEDGEREFTRIGGERREQUEST']._serialized_end=2500 - _globals['_CONFIGUREDIGITALEDGEREFTRIGGERRESPONSE']._serialized_start=2502 - _globals['_CONFIGUREDIGITALEDGEREFTRIGGERRESPONSE']._serialized_end=2558 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=2561 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=2814 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=2816 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=2874 - _globals['_CONFIGUREIQCARRIERFREQUENCYREQUEST']._serialized_start=2876 - _globals['_CONFIGUREIQCARRIERFREQUENCYREQUEST']._serialized_end=2997 - _globals['_CONFIGUREIQCARRIERFREQUENCYRESPONSE']._serialized_start=2999 - _globals['_CONFIGUREIQCARRIERFREQUENCYRESPONSE']._serialized_end=3052 - _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERREQUEST']._serialized_start=3055 - _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERREQUEST']._serialized_end=3251 - _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERRESPONSE']._serialized_start=3253 - _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERRESPONSE']._serialized_end=3309 - _globals['_CONFIGUREIQRATEREQUEST']._serialized_start=3311 - _globals['_CONFIGUREIQRATEREQUEST']._serialized_end=3410 - _globals['_CONFIGUREIQRATERESPONSE']._serialized_start=3412 - _globals['_CONFIGUREIQRATERESPONSE']._serialized_end=3453 - _globals['_CONFIGURENUMBEROFRECORDSREQUEST']._serialized_start=3456 - _globals['_CONFIGURENUMBEROFRECORDSREQUEST']._serialized_end=3611 - _globals['_CONFIGURENUMBEROFRECORDSRESPONSE']._serialized_start=3613 - _globals['_CONFIGURENUMBEROFRECORDSRESPONSE']._serialized_end=3663 - _globals['_CONFIGURENUMBEROFSAMPLESREQUEST']._serialized_start=3666 - _globals['_CONFIGURENUMBEROFSAMPLESREQUEST']._serialized_end=3822 - _globals['_CONFIGURENUMBEROFSAMPLESRESPONSE']._serialized_start=3824 - _globals['_CONFIGURENUMBEROFSAMPLESRESPONSE']._serialized_end=3874 - _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_start=3877 - _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_end=4074 - _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_start=4076 - _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_end=4126 - _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_start=4129 - _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_end=4324 - _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_start=4326 - _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_end=4369 - _globals['_CONFIGUREREFERENCELEVELREQUEST']._serialized_start=4371 - _globals['_CONFIGUREREFERENCELEVELREQUEST']._serialized_end=4486 - _globals['_CONFIGUREREFERENCELEVELRESPONSE']._serialized_start=4488 - _globals['_CONFIGUREREFERENCELEVELRESPONSE']._serialized_end=4537 - _globals['_CONFIGURERESOLUTIONBANDWIDTHREQUEST']._serialized_start=4539 - _globals['_CONFIGURERESOLUTIONBANDWIDTHREQUEST']._serialized_end=4664 - _globals['_CONFIGURERESOLUTIONBANDWIDTHRESPONSE']._serialized_start=4666 - _globals['_CONFIGURERESOLUTIONBANDWIDTHRESPONSE']._serialized_end=4720 - _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERREQUEST']._serialized_start=4722 - _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERREQUEST']._serialized_end=4802 - _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERRESPONSE']._serialized_start=4804 - _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERRESPONSE']._serialized_end=4865 - _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERREQUEST']._serialized_start=4867 - _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERREQUEST']._serialized_end=4971 - _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERRESPONSE']._serialized_start=4973 - _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERRESPONSE']._serialized_end=5030 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=5032 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=5110 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=5112 - _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=5171 - _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANREQUEST']._serialized_start=5174 - _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANREQUEST']._serialized_end=5317 - _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANRESPONSE']._serialized_start=5319 - _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANRESPONSE']._serialized_end=5381 - _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPREQUEST']._serialized_start=5384 - _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPREQUEST']._serialized_end=5535 - _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPRESPONSE']._serialized_start=5537 - _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPRESPONSE']._serialized_end=5598 - _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_start=5601 - _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_end=5774 - _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_start=5776 - _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_end=5825 - _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_start=5827 - _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_end=5927 - _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_start=5929 - _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_end=5982 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_start=5985 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_end=6344 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_start=6346 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_end=6409 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_start=6412 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_end=6692 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_start=6694 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_end=6759 - _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_start=6761 - _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_end=6832 - _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_start=6834 - _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_end=6886 - _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_start=6888 - _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_end=6975 - _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_start=6977 - _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_end=7026 - _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_start=7028 - _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_end=7129 - _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_start=7131 - _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_end=7179 - _globals['_DISABLEREQUEST']._serialized_start=7181 - _globals['_DISABLEREQUEST']._serialized_end=7233 - _globals['_DISABLERESPONSE']._serialized_start=7235 - _globals['_DISABLERESPONSE']._serialized_end=7268 - _globals['_DISABLEADVANCETRIGGERREQUEST']._serialized_start=7270 - _globals['_DISABLEADVANCETRIGGERREQUEST']._serialized_end=7336 - _globals['_DISABLEADVANCETRIGGERRESPONSE']._serialized_start=7338 - _globals['_DISABLEADVANCETRIGGERRESPONSE']._serialized_end=7385 - _globals['_DISABLEREFTRIGGERREQUEST']._serialized_start=7387 - _globals['_DISABLEREFTRIGGERREQUEST']._serialized_end=7449 - _globals['_DISABLEREFTRIGGERRESPONSE']._serialized_start=7451 - _globals['_DISABLEREFTRIGGERRESPONSE']._serialized_end=7494 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=7496 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=7560 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=7562 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=7607 - _globals['_ENABLESESSIONACCESSREQUEST']._serialized_start=7609 - _globals['_ENABLESESSIONACCESSREQUEST']._serialized_end=7689 - _globals['_ENABLESESSIONACCESSRESPONSE']._serialized_start=7691 - _globals['_ENABLESESSIONACCESSRESPONSE']._serialized_end=7736 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=7738 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=7816 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=7818 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=7879 - _globals['_ERRORQUERYREQUEST']._serialized_start=7881 - _globals['_ERRORQUERYREQUEST']._serialized_end=7936 - _globals['_ERRORQUERYRESPONSE']._serialized_start=7938 - _globals['_ERRORQUERYRESPONSE']._serialized_end=8017 - _globals['_EXPORTSIGNALREQUEST']._serialized_start=8020 - _globals['_EXPORTSIGNALREQUEST']._serialized_end=8298 - _globals['_EXPORTSIGNALRESPONSE']._serialized_start=8300 - _globals['_EXPORTSIGNALRESPONSE']._serialized_end=8338 - _globals['_FETCHIQMULTIRECORDCOMPLEXF32REQUEST']._serialized_start=8341 - _globals['_FETCHIQMULTIRECORDCOMPLEXF32REQUEST']._serialized_end=8532 - _globals['_FETCHIQMULTIRECORDCOMPLEXF32RESPONSE']._serialized_start=8535 - _globals['_FETCHIQMULTIRECORDCOMPLEXF32RESPONSE']._serialized_end=8683 - _globals['_FETCHIQMULTIRECORDCOMPLEXF64REQUEST']._serialized_start=8686 - _globals['_FETCHIQMULTIRECORDCOMPLEXF64REQUEST']._serialized_end=8877 - _globals['_FETCHIQMULTIRECORDCOMPLEXF64RESPONSE']._serialized_start=8880 - _globals['_FETCHIQMULTIRECORDCOMPLEXF64RESPONSE']._serialized_end=9025 - _globals['_FETCHIQMULTIRECORDCOMPLEXI16REQUEST']._serialized_start=9028 - _globals['_FETCHIQMULTIRECORDCOMPLEXI16REQUEST']._serialized_end=9219 - _globals['_FETCHIQMULTIRECORDCOMPLEXI16RESPONSE']._serialized_start=9222 - _globals['_FETCHIQMULTIRECORDCOMPLEXI16RESPONSE']._serialized_end=9364 - _globals['_FETCHIQSINGLERECORDCOMPLEXF32REQUEST']._serialized_start=9367 - _globals['_FETCHIQSINGLERECORDCOMPLEXF32REQUEST']._serialized_end=9530 - _globals['_FETCHIQSINGLERECORDCOMPLEXF32RESPONSE']._serialized_start=9533 - _globals['_FETCHIQSINGLERECORDCOMPLEXF32RESPONSE']._serialized_end=9682 - _globals['_FETCHIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_start=9685 - _globals['_FETCHIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_end=9848 - _globals['_FETCHIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_start=9851 - _globals['_FETCHIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_end=9997 - _globals['_FETCHIQSINGLERECORDCOMPLEXI16REQUEST']._serialized_start=10000 - _globals['_FETCHIQSINGLERECORDCOMPLEXI16REQUEST']._serialized_end=10163 - _globals['_FETCHIQSINGLERECORDCOMPLEXI16RESPONSE']._serialized_start=10166 - _globals['_FETCHIQSINGLERECORDCOMPLEXI16RESPONSE']._serialized_end=10309 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=10312 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=10452 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=10454 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=10516 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=10519 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=10657 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=10659 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=10719 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=10722 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=10860 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=10862 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=10922 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=10925 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=11064 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=11066 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=11127 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=11130 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=11270 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=11272 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=11358 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=11361 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=11500 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=11502 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=11563 - _globals['_GETCALUSERDEFINEDINFOREQUEST']._serialized_start=11565 - _globals['_GETCALUSERDEFINEDINFOREQUEST']._serialized_end=11631 - _globals['_GETCALUSERDEFINEDINFORESPONSE']._serialized_start=11633 - _globals['_GETCALUSERDEFINEDINFORESPONSE']._serialized_end=11694 - _globals['_GETCALUSERDEFINEDINFOMAXSIZEREQUEST']._serialized_start=11696 - _globals['_GETCALUSERDEFINEDINFOMAXSIZEREQUEST']._serialized_end=11769 - _globals['_GETCALUSERDEFINEDINFOMAXSIZERESPONSE']._serialized_start=11771 - _globals['_GETCALUSERDEFINEDINFOMAXSIZERESPONSE']._serialized_end=11844 - _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_start=11846 - _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_end=11916 - _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_start=11919 - _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_end=12079 - _globals['_GETDEVICERESPONSEREQUEST']._serialized_start=12082 - _globals['_GETDEVICERESPONSEREQUEST']._serialized_end=12271 - _globals['_GETDEVICERESPONSERESPONSE']._serialized_start=12274 - _globals['_GETDEVICERESPONSERESPONSE']._serialized_end=12421 - _globals['_GETERRORREQUEST']._serialized_start=12423 - _globals['_GETERRORREQUEST']._serialized_end=12476 - _globals['_GETERRORRESPONSE']._serialized_start=12478 - _globals['_GETERRORRESPONSE']._serialized_end=12559 - _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_start=12561 - _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_end=12630 - _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_start=12632 - _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_end=12754 - _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_start=12756 - _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_end=12818 - _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_start=12820 - _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_end=12884 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=12886 - _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=12959 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=12961 - _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=13031 - _globals['_GETFETCHBACKLOGREQUEST']._serialized_start=13033 - _globals['_GETFETCHBACKLOGREQUEST']._serialized_end=13138 - _globals['_GETFETCHBACKLOGRESPONSE']._serialized_start=13140 - _globals['_GETFETCHBACKLOGRESPONSE']._serialized_end=13198 - _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_start=13200 - _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_end=13287 - _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_start=13290 - _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_end=13440 - _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_start=13442 - _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_end=13537 - _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_start=13540 - _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_end=13686 - _globals['_GETNUMBEROFSPECTRALLINESREQUEST']._serialized_start=13688 - _globals['_GETNUMBEROFSPECTRALLINESREQUEST']._serialized_end=13779 - _globals['_GETNUMBEROFSPECTRALLINESRESPONSE']._serialized_start=13781 - _globals['_GETNUMBEROFSPECTRALLINESRESPONSE']._serialized_end=13865 - _globals['_GETRELAYNAMEREQUEST']._serialized_start=13867 - _globals['_GETRELAYNAMEREQUEST']._serialized_end=13961 - _globals['_GETRELAYNAMERESPONSE']._serialized_start=13963 - _globals['_GETRELAYNAMERESPONSE']._serialized_end=14036 - _globals['_GETRELAYOPERATIONSCOUNTREQUEST']._serialized_start=14038 - _globals['_GETRELAYOPERATIONSCOUNTREQUEST']._serialized_end=14128 - _globals['_GETRELAYOPERATIONSCOUNTRESPONSE']._serialized_start=14130 - _globals['_GETRELAYOPERATIONSCOUNTRESPONSE']._serialized_end=14226 - _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_start=14228 - _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_end=14317 - _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_start=14320 - _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_end=14460 - _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_start=14462 - _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_end=14563 - _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_start=14565 - _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_end=14688 - _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_start=14690 - _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_end=14784 - _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_start=14786 - _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_end=14844 - _globals['_GETSPECTRALINFOFORSMTREQUEST']._serialized_start=14846 - _globals['_GETSPECTRALINFOFORSMTREQUEST']._serialized_end=14912 - _globals['_GETSPECTRALINFOFORSMTRESPONSE']._serialized_start=14914 - _globals['_GETSPECTRALINFOFORSMTRESPONSE']._serialized_end=15016 - _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_start=15018 - _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_end=15111 - _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_start=15113 - _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_end=15185 - _globals['_GETTERMINALNAMEREQUEST']._serialized_start=15188 - _globals['_GETTERMINALNAMEREQUEST']._serialized_end=15372 - _globals['_GETTERMINALNAMERESPONSE']._serialized_start=15374 - _globals['_GETTERMINALNAMERESPONSE']._serialized_end=15438 - _globals['_GETUSERDATAREQUEST']._serialized_start=15440 - _globals['_GETUSERDATAREQUEST']._serialized_end=15516 - _globals['_GETUSERDATARESPONSE']._serialized_start=15518 - _globals['_GETUSERDATARESPONSE']._serialized_end=15595 - _globals['_INITREQUEST']._serialized_start=15598 - _globals['_INITREQUEST']._serialized_end=15768 - _globals['_INITRESPONSE']._serialized_start=15770 - _globals['_INITRESPONSE']._serialized_end=15896 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=15899 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=16103 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=16106 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=16243 - _globals['_INITIATEREQUEST']._serialized_start=16245 - _globals['_INITIATEREQUEST']._serialized_end=16298 - _globals['_INITIATERESPONSE']._serialized_start=16300 - _globals['_INITIATERESPONSE']._serialized_end=16334 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=16336 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=16404 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=16406 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=16455 - _globals['_ISSELFCALVALIDREQUEST']._serialized_start=16457 - _globals['_ISSELFCALVALIDREQUEST']._serialized_end=16516 - _globals['_ISSELFCALVALIDRESPONSE']._serialized_start=16519 - _globals['_ISSELFCALVALIDRESPONSE']._serialized_end=16668 - _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_start=16670 - _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_end=16782 - _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_start=16784 - _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_end=16836 - _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_start=16838 - _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_end=16907 - _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_start=16909 - _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_end=16959 - _globals['_READIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_start=16962 - _globals['_READIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_end=17099 - _globals['_READIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_start=17102 - _globals['_READIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_end=17247 - _globals['_READPOWERSPECTRUMF32REQUEST']._serialized_start=17250 - _globals['_READPOWERSPECTRUMF32REQUEST']._serialized_end=17379 - _globals['_READPOWERSPECTRUMF32RESPONSE']._serialized_start=17381 - _globals['_READPOWERSPECTRUMF32RESPONSE']._serialized_end=17506 - _globals['_READPOWERSPECTRUMF64REQUEST']._serialized_start=17509 - _globals['_READPOWERSPECTRUMF64REQUEST']._serialized_end=17638 - _globals['_READPOWERSPECTRUMF64RESPONSE']._serialized_start=17640 - _globals['_READPOWERSPECTRUMF64RESPONSE']._serialized_end=17765 - _globals['_RESETREQUEST']._serialized_start=17767 - _globals['_RESETREQUEST']._serialized_end=17817 - _globals['_RESETRESPONSE']._serialized_start=17819 - _globals['_RESETRESPONSE']._serialized_end=17850 - _globals['_RESETATTRIBUTEREQUEST']._serialized_start=17853 - _globals['_RESETATTRIBUTEREQUEST']._serialized_end=17986 - _globals['_RESETATTRIBUTERESPONSE']._serialized_start=17988 - _globals['_RESETATTRIBUTERESPONSE']._serialized_end=18028 - _globals['_RESETDEVICEREQUEST']._serialized_start=18030 - _globals['_RESETDEVICEREQUEST']._serialized_end=18086 - _globals['_RESETDEVICERESPONSE']._serialized_start=18088 - _globals['_RESETDEVICERESPONSE']._serialized_end=18125 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=18127 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=18189 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=18191 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=18234 - _globals['_RESETWITHOPTIONSREQUEST']._serialized_start=18237 - _globals['_RESETWITHOPTIONSREQUEST']._serialized_end=18416 - _globals['_RESETWITHOPTIONSRESPONSE']._serialized_start=18418 - _globals['_RESETWITHOPTIONSRESPONSE']._serialized_end=18460 - _globals['_REVISIONQUERYREQUEST']._serialized_start=18462 - _globals['_REVISIONQUERYREQUEST']._serialized_end=18520 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=18522 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=18600 - _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_start=18602 - _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_end=18712 - _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_start=18714 - _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_end=18764 - _globals['_SELFCALREQUEST']._serialized_start=18766 - _globals['_SELFCALREQUEST']._serialized_end=18818 - _globals['_SELFCALRESPONSE']._serialized_start=18820 - _globals['_SELFCALRESPONSE']._serialized_end=18853 - _globals['_SELFCALIBRATEREQUEST']._serialized_start=18856 - _globals['_SELFCALIBRATEREQUEST']._serialized_end=19023 - _globals['_SELFCALIBRATERESPONSE']._serialized_start=19025 - _globals['_SELFCALIBRATERESPONSE']._serialized_end=19064 - _globals['_SELFCALIBRATERANGEREQUEST']._serialized_start=19067 - _globals['_SELFCALIBRATERANGEREQUEST']._serialized_end=19343 - _globals['_SELFCALIBRATERANGERESPONSE']._serialized_start=19345 - _globals['_SELFCALIBRATERANGERESPONSE']._serialized_end=19389 - _globals['_SELFTESTREQUEST']._serialized_start=19391 - _globals['_SELFTESTREQUEST']._serialized_end=19444 - _globals['_SELFTESTRESPONSE']._serialized_start=19446 - _globals['_SELFTESTRESPONSE']._serialized_end=19523 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=19526 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=19701 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=19703 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=19752 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19755 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19910 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19912 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19959 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=19962 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=20193 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=20195 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=20240 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=20243 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=20400 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=20402 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=20447 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=20450 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=20608 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=20610 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=20656 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=20659 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=20838 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=20840 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=20887 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=20890 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=21136 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=21138 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=21184 - _globals['_SETCALUSERDEFINEDINFOREQUEST']._serialized_start=21186 - _globals['_SETCALUSERDEFINEDINFOREQUEST']._serialized_end=21266 - _globals['_SETCALUSERDEFINEDINFORESPONSE']._serialized_start=21268 - _globals['_SETCALUSERDEFINEDINFORESPONSE']._serialized_end=21315 - _globals['_SETUSERDATAREQUEST']._serialized_start=21317 - _globals['_SETUSERDATAREQUEST']._serialized_end=21414 - _globals['_SETUSERDATARESPONSE']._serialized_start=21416 - _globals['_SETUSERDATARESPONSE']._serialized_end=21467 - _globals['_NIRFSA']._serialized_start=49402 - _globals['_NIRFSA']._serialized_end=61299 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py b/generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py deleted file mode 100644 index fc0d9292f5..0000000000 --- a/generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py +++ /dev/null @@ -1,3498 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nirfsa_pb2 as nirfsa__pb2 - - -class NiRFSAStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Abort = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Abort', - request_serializer=nirfsa__pb2.AbortRequest.SerializeToString, - response_deserializer=nirfsa__pb2.AbortResponse.FromString, - ) - self.CheckAcquisitionStatus = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/CheckAcquisitionStatus', - request_serializer=nirfsa__pb2.CheckAcquisitionStatusRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CheckAcquisitionStatusResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ClearError', - request_serializer=nirfsa__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ClearErrorResponse.FromString, - ) - self.ClearSelfCalibrateRange = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ClearSelfCalibrateRange', - request_serializer=nirfsa__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ClearSelfCalibrateRangeResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Close', - request_serializer=nirfsa__pb2.CloseRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CloseResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Commit', - request_serializer=nirfsa__pb2.CommitRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CommitResponse.FromString, - ) - self.ConfigureAcquisitionType = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureAcquisitionType', - request_serializer=nirfsa__pb2.ConfigureAcquisitionTypeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureAcquisitionTypeResponse.FromString, - ) - self.ConfigureDeembeddingTableInterpolationLinear = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationLinear', - request_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, - ) - self.ConfigureDeembeddingTableInterpolationNearest = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationNearest', - request_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, - ) - self.ConfigureDeembeddingTableInterpolationSpline = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationSpline', - request_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, - ) - self.ConfigureDigitalEdgeAdvanceTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeAdvanceTrigger', - request_serializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeRefTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeRefTrigger', - request_serializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeStartTrigger', - request_serializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - ) - self.ConfigureIQCarrierFrequency = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureIQCarrierFrequency', - request_serializer=nirfsa__pb2.ConfigureIQCarrierFrequencyRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureIQCarrierFrequencyResponse.FromString, - ) - self.ConfigureIQPowerEdgeRefTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureIQPowerEdgeRefTrigger', - request_serializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerResponse.FromString, - ) - self.ConfigureIQRate = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureIQRate', - request_serializer=nirfsa__pb2.ConfigureIQRateRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureIQRateResponse.FromString, - ) - self.ConfigureNumberOfRecords = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureNumberOfRecords', - request_serializer=nirfsa__pb2.ConfigureNumberOfRecordsRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureNumberOfRecordsResponse.FromString, - ) - self.ConfigureNumberOfSamples = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureNumberOfSamples', - request_serializer=nirfsa__pb2.ConfigureNumberOfSamplesRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureNumberOfSamplesResponse.FromString, - ) - self.ConfigurePXIChassisClk10 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigurePXIChassisClk10', - request_serializer=nirfsa__pb2.ConfigurePXIChassisClk10Request.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigurePXIChassisClk10Response.FromString, - ) - self.ConfigureRefClock = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureRefClock', - request_serializer=nirfsa__pb2.ConfigureRefClockRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureRefClockResponse.FromString, - ) - self.ConfigureReferenceLevel = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureReferenceLevel', - request_serializer=nirfsa__pb2.ConfigureReferenceLevelRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureReferenceLevelResponse.FromString, - ) - self.ConfigureResolutionBandwidth = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureResolutionBandwidth', - request_serializer=nirfsa__pb2.ConfigureResolutionBandwidthRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureResolutionBandwidthResponse.FromString, - ) - self.ConfigureSoftwareEdgeAdvanceTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeAdvanceTrigger', - request_serializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeRefTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeRefTrigger', - request_serializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerResponse.FromString, - ) - self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeStartTrigger', - request_serializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - ) - self.ConfigureSpectrumFrequencyCenterSpan = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyCenterSpan', - request_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanResponse.FromString, - ) - self.ConfigureSpectrumFrequencyStartStop = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyStartStop', - request_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopResponse.FromString, - ) - self.CreateConfigurationList = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/CreateConfigurationList', - request_serializer=nirfsa__pb2.CreateConfigurationListRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CreateConfigurationListResponse.FromString, - ) - self.CreateConfigurationListStep = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/CreateConfigurationListStep', - request_serializer=nirfsa__pb2.CreateConfigurationListStepRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CreateConfigurationListStepResponse.FromString, - ) - self.CreateDeembeddingSparameterTableArray = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableArray', - request_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, - ) - self.CreateDeembeddingSparameterTableS2PFile = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableS2PFile', - request_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, - response_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, - ) - self.DeleteAllDeembeddingTables = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/DeleteAllDeembeddingTables', - request_serializer=nirfsa__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DeleteAllDeembeddingTablesResponse.FromString, - ) - self.DeleteConfigurationList = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/DeleteConfigurationList', - request_serializer=nirfsa__pb2.DeleteConfigurationListRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DeleteConfigurationListResponse.FromString, - ) - self.DeleteDeembeddingTable = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/DeleteDeembeddingTable', - request_serializer=nirfsa__pb2.DeleteDeembeddingTableRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DeleteDeembeddingTableResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Disable', - request_serializer=nirfsa__pb2.DisableRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DisableResponse.FromString, - ) - self.DisableAdvanceTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/DisableAdvanceTrigger', - request_serializer=nirfsa__pb2.DisableAdvanceTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DisableAdvanceTriggerResponse.FromString, - ) - self.DisableRefTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/DisableRefTrigger', - request_serializer=nirfsa__pb2.DisableRefTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DisableRefTriggerResponse.FromString, - ) - self.DisableStartTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/DisableStartTrigger', - request_serializer=nirfsa__pb2.DisableStartTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.DisableStartTriggerResponse.FromString, - ) - self.EnableSessionAccess = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/EnableSessionAccess', - request_serializer=nirfsa__pb2.EnableSessionAccessRequest.SerializeToString, - response_deserializer=nirfsa__pb2.EnableSessionAccessResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ErrorMessage', - request_serializer=nirfsa__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ErrorMessageResponse.FromString, - ) - self.ErrorQuery = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ErrorQuery', - request_serializer=nirfsa__pb2.ErrorQueryRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ErrorQueryResponse.FromString, - ) - self.ExportSignal = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ExportSignal', - request_serializer=nirfsa__pb2.ExportSignalRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ExportSignalResponse.FromString, - ) - self.FetchIQMultiRecordComplexF32 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF32', - request_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Request.SerializeToString, - response_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Response.FromString, - ) - self.FetchIQMultiRecordComplexF64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF64', - request_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Request.SerializeToString, - response_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Response.FromString, - ) - self.FetchIQMultiRecordComplexI16 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexI16', - request_serializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Request.SerializeToString, - response_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Response.FromString, - ) - self.FetchIQSingleRecordComplexF32 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF32', - request_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Request.SerializeToString, - response_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Response.FromString, - ) - self.FetchIQSingleRecordComplexF64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF64', - request_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Request.SerializeToString, - response_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Response.FromString, - ) - self.FetchIQSingleRecordComplexI16 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexI16', - request_serializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Request.SerializeToString, - response_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Response.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetAttributeViBoolean', - request_serializer=nirfsa__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetAttributeViInt32', - request_serializer=nirfsa__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nirfsa__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetAttributeViInt64', - request_serializer=nirfsa__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=nirfsa__pb2.GetAttributeViInt64Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetAttributeViReal64', - request_serializer=nirfsa__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nirfsa__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetAttributeViSession', - request_serializer=nirfsa__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetAttributeViSessionResponse.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetAttributeViString', - request_serializer=nirfsa__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetCalUserDefinedInfo = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfo', - request_serializer=nirfsa__pb2.GetCalUserDefinedInfoRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetCalUserDefinedInfoResponse.FromString, - ) - self.GetCalUserDefinedInfoMaxSize = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfoMaxSize', - request_serializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeResponse.FromString, - ) - self.GetDeembeddingSparameters = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetDeembeddingSparameters', - request_serializer=nirfsa__pb2.GetDeembeddingSparametersRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetDeembeddingSparametersResponse.FromString, - ) - self.GetDeviceResponse = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetDeviceResponse', - request_serializer=nirfsa__pb2.GetDeviceResponseRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetDeviceResponseResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetError', - request_serializer=nirfsa__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetErrorResponse.FromString, - ) - self.GetExtCalLastDateAndTime = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetExtCalLastDateAndTime', - request_serializer=nirfsa__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetExtCalLastDateAndTimeResponse.FromString, - ) - self.GetExtCalLastTemp = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetExtCalLastTemp', - request_serializer=nirfsa__pb2.GetExtCalLastTempRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetExtCalLastTempResponse.FromString, - ) - self.GetExtCalRecommendedInterval = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetExtCalRecommendedInterval', - request_serializer=nirfsa__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetExtCalRecommendedIntervalResponse.FromString, - ) - self.GetFetchBacklog = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetFetchBacklog', - request_serializer=nirfsa__pb2.GetFetchBacklogRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetFetchBacklogResponse.FromString, - ) - self.GetFrequencyResponse = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetFrequencyResponse', - request_serializer=nirfsa__pb2.GetFrequencyResponseRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetFrequencyResponseResponse.FromString, - ) - self.GetNormalizationCoefficients = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetNormalizationCoefficients', - request_serializer=nirfsa__pb2.GetNormalizationCoefficientsRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetNormalizationCoefficientsResponse.FromString, - ) - self.GetNumberOfSpectralLines = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetNumberOfSpectralLines', - request_serializer=nirfsa__pb2.GetNumberOfSpectralLinesRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetNumberOfSpectralLinesResponse.FromString, - ) - self.GetRelayName = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetRelayName', - request_serializer=nirfsa__pb2.GetRelayNameRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetRelayNameResponse.FromString, - ) - self.GetRelayOperationsCount = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetRelayOperationsCount', - request_serializer=nirfsa__pb2.GetRelayOperationsCountRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetRelayOperationsCountResponse.FromString, - ) - self.GetScalingCoefficients = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetScalingCoefficients', - request_serializer=nirfsa__pb2.GetScalingCoefficientsRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetScalingCoefficientsResponse.FromString, - ) - self.GetSelfCalLastDateAndTime = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetSelfCalLastDateAndTime', - request_serializer=nirfsa__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetSelfCalLastDateAndTimeResponse.FromString, - ) - self.GetSelfCalLastTemp = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetSelfCalLastTemp', - request_serializer=nirfsa__pb2.GetSelfCalLastTempRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetSelfCalLastTempResponse.FromString, - ) - self.GetSpectralInfoForSMT = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetSpectralInfoForSMT', - request_serializer=nirfsa__pb2.GetSpectralInfoForSMTRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetSpectralInfoForSMTResponse.FromString, - ) - self.GetStreamEndpointHandle = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetStreamEndpointHandle', - request_serializer=nirfsa__pb2.GetStreamEndpointHandleRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetStreamEndpointHandleResponse.FromString, - ) - self.GetTerminalName = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetTerminalName', - request_serializer=nirfsa__pb2.GetTerminalNameRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetTerminalNameResponse.FromString, - ) - self.GetUserData = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/GetUserData', - request_serializer=nirfsa__pb2.GetUserDataRequest.SerializeToString, - response_deserializer=nirfsa__pb2.GetUserDataResponse.FromString, - ) - self.Init = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Init', - request_serializer=nirfsa__pb2.InitRequest.SerializeToString, - response_deserializer=nirfsa__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/InitWithOptions', - request_serializer=nirfsa__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=nirfsa__pb2.InitWithOptionsResponse.FromString, - ) - self.Initiate = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Initiate', - request_serializer=nirfsa__pb2.InitiateRequest.SerializeToString, - response_deserializer=nirfsa__pb2.InitiateResponse.FromString, - ) - self.InvalidateAllAttributes = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/InvalidateAllAttributes', - request_serializer=nirfsa__pb2.InvalidateAllAttributesRequest.SerializeToString, - response_deserializer=nirfsa__pb2.InvalidateAllAttributesResponse.FromString, - ) - self.IsSelfCalValid = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/IsSelfCalValid', - request_serializer=nirfsa__pb2.IsSelfCalValidRequest.SerializeToString, - response_deserializer=nirfsa__pb2.IsSelfCalValidResponse.FromString, - ) - self.LoadConfigurationsFromFile = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/LoadConfigurationsFromFile', - request_serializer=nirfsa__pb2.LoadConfigurationsFromFileRequest.SerializeToString, - response_deserializer=nirfsa__pb2.LoadConfigurationsFromFileResponse.FromString, - ) - self.PerformThermalCorrection = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/PerformThermalCorrection', - request_serializer=nirfsa__pb2.PerformThermalCorrectionRequest.SerializeToString, - response_deserializer=nirfsa__pb2.PerformThermalCorrectionResponse.FromString, - ) - self.ReadIQSingleRecordComplexF64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ReadIQSingleRecordComplexF64', - request_serializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Request.SerializeToString, - response_deserializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Response.FromString, - ) - self.ReadPowerSpectrumF32 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF32', - request_serializer=nirfsa__pb2.ReadPowerSpectrumF32Request.SerializeToString, - response_deserializer=nirfsa__pb2.ReadPowerSpectrumF32Response.FromString, - ) - self.ReadPowerSpectrumF64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF64', - request_serializer=nirfsa__pb2.ReadPowerSpectrumF64Request.SerializeToString, - response_deserializer=nirfsa__pb2.ReadPowerSpectrumF64Response.FromString, - ) - self.Reset = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/Reset', - request_serializer=nirfsa__pb2.ResetRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ResetResponse.FromString, - ) - self.ResetAttribute = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ResetAttribute', - request_serializer=nirfsa__pb2.ResetAttributeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ResetAttributeResponse.FromString, - ) - self.ResetDevice = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ResetDevice', - request_serializer=nirfsa__pb2.ResetDeviceRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ResetDeviceResponse.FromString, - ) - self.ResetWithDefaults = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ResetWithDefaults', - request_serializer=nirfsa__pb2.ResetWithDefaultsRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ResetWithDefaultsResponse.FromString, - ) - self.ResetWithOptions = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/ResetWithOptions', - request_serializer=nirfsa__pb2.ResetWithOptionsRequest.SerializeToString, - response_deserializer=nirfsa__pb2.ResetWithOptionsResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/RevisionQuery', - request_serializer=nirfsa__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=nirfsa__pb2.RevisionQueryResponse.FromString, - ) - self.SaveConfigurationsToFile = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SaveConfigurationsToFile', - request_serializer=nirfsa__pb2.SaveConfigurationsToFileRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SaveConfigurationsToFileResponse.FromString, - ) - self.SelfCal = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SelfCal', - request_serializer=nirfsa__pb2.SelfCalRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SelfCalResponse.FromString, - ) - self.SelfCalibrate = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SelfCalibrate', - request_serializer=nirfsa__pb2.SelfCalibrateRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SelfCalibrateResponse.FromString, - ) - self.SelfCalibrateRange = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SelfCalibrateRange', - request_serializer=nirfsa__pb2.SelfCalibrateRangeRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SelfCalibrateRangeResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SelfTest', - request_serializer=nirfsa__pb2.SelfTestRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SelfTestResponse.FromString, - ) - self.SendSoftwareEdgeTrigger = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SendSoftwareEdgeTrigger', - request_serializer=nirfsa__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SendSoftwareEdgeTriggerResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetAttributeViBoolean', - request_serializer=nirfsa__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetAttributeViInt32', - request_serializer=nirfsa__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nirfsa__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetAttributeViInt64', - request_serializer=nirfsa__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=nirfsa__pb2.SetAttributeViInt64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetAttributeViReal64', - request_serializer=nirfsa__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nirfsa__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetAttributeViSession', - request_serializer=nirfsa__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetAttributeViString', - request_serializer=nirfsa__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SetAttributeViStringResponse.FromString, - ) - self.SetCalUserDefinedInfo = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetCalUserDefinedInfo', - request_serializer=nirfsa__pb2.SetCalUserDefinedInfoRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SetCalUserDefinedInfoResponse.FromString, - ) - self.SetUserData = channel.unary_unary( - '/nirfsa_grpc.NiRFSA/SetUserData', - request_serializer=nirfsa__pb2.SetUserDataRequest.SerializeToString, - response_deserializer=nirfsa__pb2.SetUserDataResponse.FromString, - ) - - -class NiRFSAServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAcquisitionStatus(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearSelfCalibrateRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureAcquisitionType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDeembeddingTableInterpolationLinear(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDeembeddingTableInterpolationNearest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDeembeddingTableInterpolationSpline(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeAdvanceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeRefTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureIQCarrierFrequency(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureIQPowerEdgeRefTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureIQRate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureNumberOfRecords(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureNumberOfSamples(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePXIChassisClk10(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureRefClock(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureReferenceLevel(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureResolutionBandwidth(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeAdvanceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeRefTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSpectrumFrequencyCenterSpan(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSpectrumFrequencyStartStop(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateConfigurationList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateConfigurationListStep(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDeembeddingSparameterTableArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDeembeddingSparameterTableS2PFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAllDeembeddingTables(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteConfigurationList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteDeembeddingTable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableAdvanceTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableRefTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnableSessionAccess(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchIQMultiRecordComplexF32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchIQMultiRecordComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchIQMultiRecordComplexI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchIQSingleRecordComplexF32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchIQSingleRecordComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchIQSingleRecordComplexI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCalUserDefinedInfo(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetCalUserDefinedInfoMaxSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDeembeddingSparameters(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDeviceResponse(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalLastTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExtCalRecommendedInterval(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetFetchBacklog(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetFrequencyResponse(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNormalizationCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNumberOfSpectralLines(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRelayName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRelayOperationsCount(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetScalingCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalLastTemp(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSpectralInfoForSMT(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetStreamEndpointHandle(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTerminalName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetUserData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Initiate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InvalidateAllAttributes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsSelfCalValid(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadConfigurationsFromFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformThermalCorrection(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadIQSingleRecordComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadPowerSpectrumF32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadPowerSpectrumF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetAttribute(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SaveConfigurationsToFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCalibrate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCalibrateRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareEdgeTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetCalUserDefinedInfo(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetUserData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiRFSAServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=nirfsa__pb2.AbortRequest.FromString, - response_serializer=nirfsa__pb2.AbortResponse.SerializeToString, - ), - 'CheckAcquisitionStatus': grpc.unary_unary_rpc_method_handler( - servicer.CheckAcquisitionStatus, - request_deserializer=nirfsa__pb2.CheckAcquisitionStatusRequest.FromString, - response_serializer=nirfsa__pb2.CheckAcquisitionStatusResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=nirfsa__pb2.ClearErrorRequest.FromString, - response_serializer=nirfsa__pb2.ClearErrorResponse.SerializeToString, - ), - 'ClearSelfCalibrateRange': grpc.unary_unary_rpc_method_handler( - servicer.ClearSelfCalibrateRange, - request_deserializer=nirfsa__pb2.ClearSelfCalibrateRangeRequest.FromString, - response_serializer=nirfsa__pb2.ClearSelfCalibrateRangeResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nirfsa__pb2.CloseRequest.FromString, - response_serializer=nirfsa__pb2.CloseResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=nirfsa__pb2.CommitRequest.FromString, - response_serializer=nirfsa__pb2.CommitResponse.SerializeToString, - ), - 'ConfigureAcquisitionType': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureAcquisitionType, - request_deserializer=nirfsa__pb2.ConfigureAcquisitionTypeRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureAcquisitionTypeResponse.SerializeToString, - ), - 'ConfigureDeembeddingTableInterpolationLinear': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDeembeddingTableInterpolationLinear, - request_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.SerializeToString, - ), - 'ConfigureDeembeddingTableInterpolationNearest': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDeembeddingTableInterpolationNearest, - request_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.SerializeToString, - ), - 'ConfigureDeembeddingTableInterpolationSpline': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDeembeddingTableInterpolationSpline, - request_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeAdvanceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeAdvanceTrigger, - request_deserializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeRefTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeRefTrigger, - request_deserializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeStartTrigger, - request_deserializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, - ), - 'ConfigureIQCarrierFrequency': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureIQCarrierFrequency, - request_deserializer=nirfsa__pb2.ConfigureIQCarrierFrequencyRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureIQCarrierFrequencyResponse.SerializeToString, - ), - 'ConfigureIQPowerEdgeRefTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureIQPowerEdgeRefTrigger, - request_deserializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerResponse.SerializeToString, - ), - 'ConfigureIQRate': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureIQRate, - request_deserializer=nirfsa__pb2.ConfigureIQRateRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureIQRateResponse.SerializeToString, - ), - 'ConfigureNumberOfRecords': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureNumberOfRecords, - request_deserializer=nirfsa__pb2.ConfigureNumberOfRecordsRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureNumberOfRecordsResponse.SerializeToString, - ), - 'ConfigureNumberOfSamples': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureNumberOfSamples, - request_deserializer=nirfsa__pb2.ConfigureNumberOfSamplesRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureNumberOfSamplesResponse.SerializeToString, - ), - 'ConfigurePXIChassisClk10': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePXIChassisClk10, - request_deserializer=nirfsa__pb2.ConfigurePXIChassisClk10Request.FromString, - response_serializer=nirfsa__pb2.ConfigurePXIChassisClk10Response.SerializeToString, - ), - 'ConfigureRefClock': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureRefClock, - request_deserializer=nirfsa__pb2.ConfigureRefClockRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureRefClockResponse.SerializeToString, - ), - 'ConfigureReferenceLevel': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureReferenceLevel, - request_deserializer=nirfsa__pb2.ConfigureReferenceLevelRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureReferenceLevelResponse.SerializeToString, - ), - 'ConfigureResolutionBandwidth': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureResolutionBandwidth, - request_deserializer=nirfsa__pb2.ConfigureResolutionBandwidthRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureResolutionBandwidthResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeAdvanceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeAdvanceTrigger, - request_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeRefTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeRefTrigger, - request_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareEdgeStartTrigger, - request_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, - ), - 'ConfigureSpectrumFrequencyCenterSpan': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSpectrumFrequencyCenterSpan, - request_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanResponse.SerializeToString, - ), - 'ConfigureSpectrumFrequencyStartStop': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSpectrumFrequencyStartStop, - request_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopRequest.FromString, - response_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopResponse.SerializeToString, - ), - 'CreateConfigurationList': grpc.unary_unary_rpc_method_handler( - servicer.CreateConfigurationList, - request_deserializer=nirfsa__pb2.CreateConfigurationListRequest.FromString, - response_serializer=nirfsa__pb2.CreateConfigurationListResponse.SerializeToString, - ), - 'CreateConfigurationListStep': grpc.unary_unary_rpc_method_handler( - servicer.CreateConfigurationListStep, - request_deserializer=nirfsa__pb2.CreateConfigurationListStepRequest.FromString, - response_serializer=nirfsa__pb2.CreateConfigurationListStepResponse.SerializeToString, - ), - 'CreateDeembeddingSparameterTableArray': grpc.unary_unary_rpc_method_handler( - servicer.CreateDeembeddingSparameterTableArray, - request_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayRequest.FromString, - response_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayResponse.SerializeToString, - ), - 'CreateDeembeddingSparameterTableS2PFile': grpc.unary_unary_rpc_method_handler( - servicer.CreateDeembeddingSparameterTableS2PFile, - request_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileRequest.FromString, - response_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileResponse.SerializeToString, - ), - 'DeleteAllDeembeddingTables': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAllDeembeddingTables, - request_deserializer=nirfsa__pb2.DeleteAllDeembeddingTablesRequest.FromString, - response_serializer=nirfsa__pb2.DeleteAllDeembeddingTablesResponse.SerializeToString, - ), - 'DeleteConfigurationList': grpc.unary_unary_rpc_method_handler( - servicer.DeleteConfigurationList, - request_deserializer=nirfsa__pb2.DeleteConfigurationListRequest.FromString, - response_serializer=nirfsa__pb2.DeleteConfigurationListResponse.SerializeToString, - ), - 'DeleteDeembeddingTable': grpc.unary_unary_rpc_method_handler( - servicer.DeleteDeembeddingTable, - request_deserializer=nirfsa__pb2.DeleteDeembeddingTableRequest.FromString, - response_serializer=nirfsa__pb2.DeleteDeembeddingTableResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=nirfsa__pb2.DisableRequest.FromString, - response_serializer=nirfsa__pb2.DisableResponse.SerializeToString, - ), - 'DisableAdvanceTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableAdvanceTrigger, - request_deserializer=nirfsa__pb2.DisableAdvanceTriggerRequest.FromString, - response_serializer=nirfsa__pb2.DisableAdvanceTriggerResponse.SerializeToString, - ), - 'DisableRefTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableRefTrigger, - request_deserializer=nirfsa__pb2.DisableRefTriggerRequest.FromString, - response_serializer=nirfsa__pb2.DisableRefTriggerResponse.SerializeToString, - ), - 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableStartTrigger, - request_deserializer=nirfsa__pb2.DisableStartTriggerRequest.FromString, - response_serializer=nirfsa__pb2.DisableStartTriggerResponse.SerializeToString, - ), - 'EnableSessionAccess': grpc.unary_unary_rpc_method_handler( - servicer.EnableSessionAccess, - request_deserializer=nirfsa__pb2.EnableSessionAccessRequest.FromString, - response_serializer=nirfsa__pb2.EnableSessionAccessResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=nirfsa__pb2.ErrorMessageRequest.FromString, - response_serializer=nirfsa__pb2.ErrorMessageResponse.SerializeToString, - ), - 'ErrorQuery': grpc.unary_unary_rpc_method_handler( - servicer.ErrorQuery, - request_deserializer=nirfsa__pb2.ErrorQueryRequest.FromString, - response_serializer=nirfsa__pb2.ErrorQueryResponse.SerializeToString, - ), - 'ExportSignal': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignal, - request_deserializer=nirfsa__pb2.ExportSignalRequest.FromString, - response_serializer=nirfsa__pb2.ExportSignalResponse.SerializeToString, - ), - 'FetchIQMultiRecordComplexF32': grpc.unary_unary_rpc_method_handler( - servicer.FetchIQMultiRecordComplexF32, - request_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Request.FromString, - response_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Response.SerializeToString, - ), - 'FetchIQMultiRecordComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.FetchIQMultiRecordComplexF64, - request_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Request.FromString, - response_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Response.SerializeToString, - ), - 'FetchIQMultiRecordComplexI16': grpc.unary_unary_rpc_method_handler( - servicer.FetchIQMultiRecordComplexI16, - request_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Request.FromString, - response_serializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Response.SerializeToString, - ), - 'FetchIQSingleRecordComplexF32': grpc.unary_unary_rpc_method_handler( - servicer.FetchIQSingleRecordComplexF32, - request_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Request.FromString, - response_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Response.SerializeToString, - ), - 'FetchIQSingleRecordComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.FetchIQSingleRecordComplexF64, - request_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Request.FromString, - response_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Response.SerializeToString, - ), - 'FetchIQSingleRecordComplexI16': grpc.unary_unary_rpc_method_handler( - servicer.FetchIQSingleRecordComplexI16, - request_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Request.FromString, - response_serializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Response.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nirfsa__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nirfsa__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nirfsa__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nirfsa__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=nirfsa__pb2.GetAttributeViInt64Request.FromString, - response_serializer=nirfsa__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nirfsa__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nirfsa__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nirfsa__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nirfsa__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nirfsa__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nirfsa__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetCalUserDefinedInfo': grpc.unary_unary_rpc_method_handler( - servicer.GetCalUserDefinedInfo, - request_deserializer=nirfsa__pb2.GetCalUserDefinedInfoRequest.FromString, - response_serializer=nirfsa__pb2.GetCalUserDefinedInfoResponse.SerializeToString, - ), - 'GetCalUserDefinedInfoMaxSize': grpc.unary_unary_rpc_method_handler( - servicer.GetCalUserDefinedInfoMaxSize, - request_deserializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeRequest.FromString, - response_serializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeResponse.SerializeToString, - ), - 'GetDeembeddingSparameters': grpc.unary_unary_rpc_method_handler( - servicer.GetDeembeddingSparameters, - request_deserializer=nirfsa__pb2.GetDeembeddingSparametersRequest.FromString, - response_serializer=nirfsa__pb2.GetDeembeddingSparametersResponse.SerializeToString, - ), - 'GetDeviceResponse': grpc.unary_unary_rpc_method_handler( - servicer.GetDeviceResponse, - request_deserializer=nirfsa__pb2.GetDeviceResponseRequest.FromString, - response_serializer=nirfsa__pb2.GetDeviceResponseResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nirfsa__pb2.GetErrorRequest.FromString, - response_serializer=nirfsa__pb2.GetErrorResponse.SerializeToString, - ), - 'GetExtCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalLastDateAndTime, - request_deserializer=nirfsa__pb2.GetExtCalLastDateAndTimeRequest.FromString, - response_serializer=nirfsa__pb2.GetExtCalLastDateAndTimeResponse.SerializeToString, - ), - 'GetExtCalLastTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalLastTemp, - request_deserializer=nirfsa__pb2.GetExtCalLastTempRequest.FromString, - response_serializer=nirfsa__pb2.GetExtCalLastTempResponse.SerializeToString, - ), - 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( - servicer.GetExtCalRecommendedInterval, - request_deserializer=nirfsa__pb2.GetExtCalRecommendedIntervalRequest.FromString, - response_serializer=nirfsa__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, - ), - 'GetFetchBacklog': grpc.unary_unary_rpc_method_handler( - servicer.GetFetchBacklog, - request_deserializer=nirfsa__pb2.GetFetchBacklogRequest.FromString, - response_serializer=nirfsa__pb2.GetFetchBacklogResponse.SerializeToString, - ), - 'GetFrequencyResponse': grpc.unary_unary_rpc_method_handler( - servicer.GetFrequencyResponse, - request_deserializer=nirfsa__pb2.GetFrequencyResponseRequest.FromString, - response_serializer=nirfsa__pb2.GetFrequencyResponseResponse.SerializeToString, - ), - 'GetNormalizationCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.GetNormalizationCoefficients, - request_deserializer=nirfsa__pb2.GetNormalizationCoefficientsRequest.FromString, - response_serializer=nirfsa__pb2.GetNormalizationCoefficientsResponse.SerializeToString, - ), - 'GetNumberOfSpectralLines': grpc.unary_unary_rpc_method_handler( - servicer.GetNumberOfSpectralLines, - request_deserializer=nirfsa__pb2.GetNumberOfSpectralLinesRequest.FromString, - response_serializer=nirfsa__pb2.GetNumberOfSpectralLinesResponse.SerializeToString, - ), - 'GetRelayName': grpc.unary_unary_rpc_method_handler( - servicer.GetRelayName, - request_deserializer=nirfsa__pb2.GetRelayNameRequest.FromString, - response_serializer=nirfsa__pb2.GetRelayNameResponse.SerializeToString, - ), - 'GetRelayOperationsCount': grpc.unary_unary_rpc_method_handler( - servicer.GetRelayOperationsCount, - request_deserializer=nirfsa__pb2.GetRelayOperationsCountRequest.FromString, - response_serializer=nirfsa__pb2.GetRelayOperationsCountResponse.SerializeToString, - ), - 'GetScalingCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.GetScalingCoefficients, - request_deserializer=nirfsa__pb2.GetScalingCoefficientsRequest.FromString, - response_serializer=nirfsa__pb2.GetScalingCoefficientsResponse.SerializeToString, - ), - 'GetSelfCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalLastDateAndTime, - request_deserializer=nirfsa__pb2.GetSelfCalLastDateAndTimeRequest.FromString, - response_serializer=nirfsa__pb2.GetSelfCalLastDateAndTimeResponse.SerializeToString, - ), - 'GetSelfCalLastTemp': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalLastTemp, - request_deserializer=nirfsa__pb2.GetSelfCalLastTempRequest.FromString, - response_serializer=nirfsa__pb2.GetSelfCalLastTempResponse.SerializeToString, - ), - 'GetSpectralInfoForSMT': grpc.unary_unary_rpc_method_handler( - servicer.GetSpectralInfoForSMT, - request_deserializer=nirfsa__pb2.GetSpectralInfoForSMTRequest.FromString, - response_serializer=nirfsa__pb2.GetSpectralInfoForSMTResponse.SerializeToString, - ), - 'GetStreamEndpointHandle': grpc.unary_unary_rpc_method_handler( - servicer.GetStreamEndpointHandle, - request_deserializer=nirfsa__pb2.GetStreamEndpointHandleRequest.FromString, - response_serializer=nirfsa__pb2.GetStreamEndpointHandleResponse.SerializeToString, - ), - 'GetTerminalName': grpc.unary_unary_rpc_method_handler( - servicer.GetTerminalName, - request_deserializer=nirfsa__pb2.GetTerminalNameRequest.FromString, - response_serializer=nirfsa__pb2.GetTerminalNameResponse.SerializeToString, - ), - 'GetUserData': grpc.unary_unary_rpc_method_handler( - servicer.GetUserData, - request_deserializer=nirfsa__pb2.GetUserDataRequest.FromString, - response_serializer=nirfsa__pb2.GetUserDataResponse.SerializeToString, - ), - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=nirfsa__pb2.InitRequest.FromString, - response_serializer=nirfsa__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=nirfsa__pb2.InitWithOptionsRequest.FromString, - response_serializer=nirfsa__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'Initiate': grpc.unary_unary_rpc_method_handler( - servicer.Initiate, - request_deserializer=nirfsa__pb2.InitiateRequest.FromString, - response_serializer=nirfsa__pb2.InitiateResponse.SerializeToString, - ), - 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( - servicer.InvalidateAllAttributes, - request_deserializer=nirfsa__pb2.InvalidateAllAttributesRequest.FromString, - response_serializer=nirfsa__pb2.InvalidateAllAttributesResponse.SerializeToString, - ), - 'IsSelfCalValid': grpc.unary_unary_rpc_method_handler( - servicer.IsSelfCalValid, - request_deserializer=nirfsa__pb2.IsSelfCalValidRequest.FromString, - response_serializer=nirfsa__pb2.IsSelfCalValidResponse.SerializeToString, - ), - 'LoadConfigurationsFromFile': grpc.unary_unary_rpc_method_handler( - servicer.LoadConfigurationsFromFile, - request_deserializer=nirfsa__pb2.LoadConfigurationsFromFileRequest.FromString, - response_serializer=nirfsa__pb2.LoadConfigurationsFromFileResponse.SerializeToString, - ), - 'PerformThermalCorrection': grpc.unary_unary_rpc_method_handler( - servicer.PerformThermalCorrection, - request_deserializer=nirfsa__pb2.PerformThermalCorrectionRequest.FromString, - response_serializer=nirfsa__pb2.PerformThermalCorrectionResponse.SerializeToString, - ), - 'ReadIQSingleRecordComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.ReadIQSingleRecordComplexF64, - request_deserializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Request.FromString, - response_serializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Response.SerializeToString, - ), - 'ReadPowerSpectrumF32': grpc.unary_unary_rpc_method_handler( - servicer.ReadPowerSpectrumF32, - request_deserializer=nirfsa__pb2.ReadPowerSpectrumF32Request.FromString, - response_serializer=nirfsa__pb2.ReadPowerSpectrumF32Response.SerializeToString, - ), - 'ReadPowerSpectrumF64': grpc.unary_unary_rpc_method_handler( - servicer.ReadPowerSpectrumF64, - request_deserializer=nirfsa__pb2.ReadPowerSpectrumF64Request.FromString, - response_serializer=nirfsa__pb2.ReadPowerSpectrumF64Response.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=nirfsa__pb2.ResetRequest.FromString, - response_serializer=nirfsa__pb2.ResetResponse.SerializeToString, - ), - 'ResetAttribute': grpc.unary_unary_rpc_method_handler( - servicer.ResetAttribute, - request_deserializer=nirfsa__pb2.ResetAttributeRequest.FromString, - response_serializer=nirfsa__pb2.ResetAttributeResponse.SerializeToString, - ), - 'ResetDevice': grpc.unary_unary_rpc_method_handler( - servicer.ResetDevice, - request_deserializer=nirfsa__pb2.ResetDeviceRequest.FromString, - response_serializer=nirfsa__pb2.ResetDeviceResponse.SerializeToString, - ), - 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithDefaults, - request_deserializer=nirfsa__pb2.ResetWithDefaultsRequest.FromString, - response_serializer=nirfsa__pb2.ResetWithDefaultsResponse.SerializeToString, - ), - 'ResetWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithOptions, - request_deserializer=nirfsa__pb2.ResetWithOptionsRequest.FromString, - response_serializer=nirfsa__pb2.ResetWithOptionsResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=nirfsa__pb2.RevisionQueryRequest.FromString, - response_serializer=nirfsa__pb2.RevisionQueryResponse.SerializeToString, - ), - 'SaveConfigurationsToFile': grpc.unary_unary_rpc_method_handler( - servicer.SaveConfigurationsToFile, - request_deserializer=nirfsa__pb2.SaveConfigurationsToFileRequest.FromString, - response_serializer=nirfsa__pb2.SaveConfigurationsToFileResponse.SerializeToString, - ), - 'SelfCal': grpc.unary_unary_rpc_method_handler( - servicer.SelfCal, - request_deserializer=nirfsa__pb2.SelfCalRequest.FromString, - response_serializer=nirfsa__pb2.SelfCalResponse.SerializeToString, - ), - 'SelfCalibrate': grpc.unary_unary_rpc_method_handler( - servicer.SelfCalibrate, - request_deserializer=nirfsa__pb2.SelfCalibrateRequest.FromString, - response_serializer=nirfsa__pb2.SelfCalibrateResponse.SerializeToString, - ), - 'SelfCalibrateRange': grpc.unary_unary_rpc_method_handler( - servicer.SelfCalibrateRange, - request_deserializer=nirfsa__pb2.SelfCalibrateRangeRequest.FromString, - response_serializer=nirfsa__pb2.SelfCalibrateRangeResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=nirfsa__pb2.SelfTestRequest.FromString, - response_serializer=nirfsa__pb2.SelfTestResponse.SerializeToString, - ), - 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareEdgeTrigger, - request_deserializer=nirfsa__pb2.SendSoftwareEdgeTriggerRequest.FromString, - response_serializer=nirfsa__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nirfsa__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nirfsa__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nirfsa__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nirfsa__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=nirfsa__pb2.SetAttributeViInt64Request.FromString, - response_serializer=nirfsa__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nirfsa__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nirfsa__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=nirfsa__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=nirfsa__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nirfsa__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nirfsa__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'SetCalUserDefinedInfo': grpc.unary_unary_rpc_method_handler( - servicer.SetCalUserDefinedInfo, - request_deserializer=nirfsa__pb2.SetCalUserDefinedInfoRequest.FromString, - response_serializer=nirfsa__pb2.SetCalUserDefinedInfoResponse.SerializeToString, - ), - 'SetUserData': grpc.unary_unary_rpc_method_handler( - servicer.SetUserData, - request_deserializer=nirfsa__pb2.SetUserDataRequest.FromString, - response_serializer=nirfsa__pb2.SetUserDataResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nirfsa_grpc.NiRFSA', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiRFSA(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Abort', - nirfsa__pb2.AbortRequest.SerializeToString, - nirfsa__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAcquisitionStatus(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CheckAcquisitionStatus', - nirfsa__pb2.CheckAcquisitionStatusRequest.SerializeToString, - nirfsa__pb2.CheckAcquisitionStatusResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ClearError', - nirfsa__pb2.ClearErrorRequest.SerializeToString, - nirfsa__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearSelfCalibrateRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ClearSelfCalibrateRange', - nirfsa__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, - nirfsa__pb2.ClearSelfCalibrateRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Close', - nirfsa__pb2.CloseRequest.SerializeToString, - nirfsa__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Commit', - nirfsa__pb2.CommitRequest.SerializeToString, - nirfsa__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureAcquisitionType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureAcquisitionType', - nirfsa__pb2.ConfigureAcquisitionTypeRequest.SerializeToString, - nirfsa__pb2.ConfigureAcquisitionTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDeembeddingTableInterpolationLinear(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationLinear', - nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, - nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDeembeddingTableInterpolationNearest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationNearest', - nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, - nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDeembeddingTableInterpolationSpline(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationSpline', - nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, - nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeAdvanceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeAdvanceTrigger', - nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeRefTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeRefTrigger', - nirfsa__pb2.ConfigureDigitalEdgeRefTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureDigitalEdgeRefTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeStartTrigger', - nirfsa__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureIQCarrierFrequency(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureIQCarrierFrequency', - nirfsa__pb2.ConfigureIQCarrierFrequencyRequest.SerializeToString, - nirfsa__pb2.ConfigureIQCarrierFrequencyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureIQPowerEdgeRefTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureIQPowerEdgeRefTrigger', - nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureIQRate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureIQRate', - nirfsa__pb2.ConfigureIQRateRequest.SerializeToString, - nirfsa__pb2.ConfigureIQRateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureNumberOfRecords(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureNumberOfRecords', - nirfsa__pb2.ConfigureNumberOfRecordsRequest.SerializeToString, - nirfsa__pb2.ConfigureNumberOfRecordsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureNumberOfSamples(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureNumberOfSamples', - nirfsa__pb2.ConfigureNumberOfSamplesRequest.SerializeToString, - nirfsa__pb2.ConfigureNumberOfSamplesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePXIChassisClk10(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigurePXIChassisClk10', - nirfsa__pb2.ConfigurePXIChassisClk10Request.SerializeToString, - nirfsa__pb2.ConfigurePXIChassisClk10Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureRefClock(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureRefClock', - nirfsa__pb2.ConfigureRefClockRequest.SerializeToString, - nirfsa__pb2.ConfigureRefClockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureReferenceLevel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureReferenceLevel', - nirfsa__pb2.ConfigureReferenceLevelRequest.SerializeToString, - nirfsa__pb2.ConfigureReferenceLevelResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureResolutionBandwidth(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureResolutionBandwidth', - nirfsa__pb2.ConfigureResolutionBandwidthRequest.SerializeToString, - nirfsa__pb2.ConfigureResolutionBandwidthResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeAdvanceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeAdvanceTrigger', - nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeRefTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeRefTrigger', - nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeStartTrigger', - nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, - nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSpectrumFrequencyCenterSpan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyCenterSpan', - nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanRequest.SerializeToString, - nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSpectrumFrequencyStartStop(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyStartStop', - nirfsa__pb2.ConfigureSpectrumFrequencyStartStopRequest.SerializeToString, - nirfsa__pb2.ConfigureSpectrumFrequencyStartStopResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateConfigurationList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateConfigurationList', - nirfsa__pb2.CreateConfigurationListRequest.SerializeToString, - nirfsa__pb2.CreateConfigurationListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateConfigurationListStep(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateConfigurationListStep', - nirfsa__pb2.CreateConfigurationListStepRequest.SerializeToString, - nirfsa__pb2.CreateConfigurationListStepResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDeembeddingSparameterTableArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableArray', - nirfsa__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, - nirfsa__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDeembeddingSparameterTableS2PFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableS2PFile', - nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, - nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAllDeembeddingTables(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DeleteAllDeembeddingTables', - nirfsa__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, - nirfsa__pb2.DeleteAllDeembeddingTablesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteConfigurationList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DeleteConfigurationList', - nirfsa__pb2.DeleteConfigurationListRequest.SerializeToString, - nirfsa__pb2.DeleteConfigurationListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteDeembeddingTable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DeleteDeembeddingTable', - nirfsa__pb2.DeleteDeembeddingTableRequest.SerializeToString, - nirfsa__pb2.DeleteDeembeddingTableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Disable', - nirfsa__pb2.DisableRequest.SerializeToString, - nirfsa__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableAdvanceTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DisableAdvanceTrigger', - nirfsa__pb2.DisableAdvanceTriggerRequest.SerializeToString, - nirfsa__pb2.DisableAdvanceTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableRefTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DisableRefTrigger', - nirfsa__pb2.DisableRefTriggerRequest.SerializeToString, - nirfsa__pb2.DisableRefTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DisableStartTrigger', - nirfsa__pb2.DisableStartTriggerRequest.SerializeToString, - nirfsa__pb2.DisableStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def EnableSessionAccess(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/EnableSessionAccess', - nirfsa__pb2.EnableSessionAccessRequest.SerializeToString, - nirfsa__pb2.EnableSessionAccessResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ErrorMessage', - nirfsa__pb2.ErrorMessageRequest.SerializeToString, - nirfsa__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ErrorQuery', - nirfsa__pb2.ErrorQueryRequest.SerializeToString, - nirfsa__pb2.ErrorQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ExportSignal', - nirfsa__pb2.ExportSignalRequest.SerializeToString, - nirfsa__pb2.ExportSignalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchIQMultiRecordComplexF32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF32', - nirfsa__pb2.FetchIQMultiRecordComplexF32Request.SerializeToString, - nirfsa__pb2.FetchIQMultiRecordComplexF32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchIQMultiRecordComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF64', - nirfsa__pb2.FetchIQMultiRecordComplexF64Request.SerializeToString, - nirfsa__pb2.FetchIQMultiRecordComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchIQMultiRecordComplexI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexI16', - nirfsa__pb2.FetchIQMultiRecordComplexI16Request.SerializeToString, - nirfsa__pb2.FetchIQMultiRecordComplexI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchIQSingleRecordComplexF32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF32', - nirfsa__pb2.FetchIQSingleRecordComplexF32Request.SerializeToString, - nirfsa__pb2.FetchIQSingleRecordComplexF32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchIQSingleRecordComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF64', - nirfsa__pb2.FetchIQSingleRecordComplexF64Request.SerializeToString, - nirfsa__pb2.FetchIQSingleRecordComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchIQSingleRecordComplexI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexI16', - nirfsa__pb2.FetchIQSingleRecordComplexI16Request.SerializeToString, - nirfsa__pb2.FetchIQSingleRecordComplexI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViBoolean', - nirfsa__pb2.GetAttributeViBooleanRequest.SerializeToString, - nirfsa__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViInt32', - nirfsa__pb2.GetAttributeViInt32Request.SerializeToString, - nirfsa__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViInt64', - nirfsa__pb2.GetAttributeViInt64Request.SerializeToString, - nirfsa__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViReal64', - nirfsa__pb2.GetAttributeViReal64Request.SerializeToString, - nirfsa__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViSession', - nirfsa__pb2.GetAttributeViSessionRequest.SerializeToString, - nirfsa__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViString', - nirfsa__pb2.GetAttributeViStringRequest.SerializeToString, - nirfsa__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCalUserDefinedInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfo', - nirfsa__pb2.GetCalUserDefinedInfoRequest.SerializeToString, - nirfsa__pb2.GetCalUserDefinedInfoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetCalUserDefinedInfoMaxSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfoMaxSize', - nirfsa__pb2.GetCalUserDefinedInfoMaxSizeRequest.SerializeToString, - nirfsa__pb2.GetCalUserDefinedInfoMaxSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDeembeddingSparameters(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetDeembeddingSparameters', - nirfsa__pb2.GetDeembeddingSparametersRequest.SerializeToString, - nirfsa__pb2.GetDeembeddingSparametersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDeviceResponse(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetDeviceResponse', - nirfsa__pb2.GetDeviceResponseRequest.SerializeToString, - nirfsa__pb2.GetDeviceResponseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetError', - nirfsa__pb2.GetErrorRequest.SerializeToString, - nirfsa__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetExtCalLastDateAndTime', - nirfsa__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, - nirfsa__pb2.GetExtCalLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalLastTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetExtCalLastTemp', - nirfsa__pb2.GetExtCalLastTempRequest.SerializeToString, - nirfsa__pb2.GetExtCalLastTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExtCalRecommendedInterval(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetExtCalRecommendedInterval', - nirfsa__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, - nirfsa__pb2.GetExtCalRecommendedIntervalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetFetchBacklog(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetFetchBacklog', - nirfsa__pb2.GetFetchBacklogRequest.SerializeToString, - nirfsa__pb2.GetFetchBacklogResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetFrequencyResponse(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetFrequencyResponse', - nirfsa__pb2.GetFrequencyResponseRequest.SerializeToString, - nirfsa__pb2.GetFrequencyResponseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNormalizationCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetNormalizationCoefficients', - nirfsa__pb2.GetNormalizationCoefficientsRequest.SerializeToString, - nirfsa__pb2.GetNormalizationCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNumberOfSpectralLines(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetNumberOfSpectralLines', - nirfsa__pb2.GetNumberOfSpectralLinesRequest.SerializeToString, - nirfsa__pb2.GetNumberOfSpectralLinesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRelayName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetRelayName', - nirfsa__pb2.GetRelayNameRequest.SerializeToString, - nirfsa__pb2.GetRelayNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRelayOperationsCount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetRelayOperationsCount', - nirfsa__pb2.GetRelayOperationsCountRequest.SerializeToString, - nirfsa__pb2.GetRelayOperationsCountResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetScalingCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetScalingCoefficients', - nirfsa__pb2.GetScalingCoefficientsRequest.SerializeToString, - nirfsa__pb2.GetScalingCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetSelfCalLastDateAndTime', - nirfsa__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, - nirfsa__pb2.GetSelfCalLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalLastTemp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetSelfCalLastTemp', - nirfsa__pb2.GetSelfCalLastTempRequest.SerializeToString, - nirfsa__pb2.GetSelfCalLastTempResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSpectralInfoForSMT(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetSpectralInfoForSMT', - nirfsa__pb2.GetSpectralInfoForSMTRequest.SerializeToString, - nirfsa__pb2.GetSpectralInfoForSMTResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetStreamEndpointHandle(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetStreamEndpointHandle', - nirfsa__pb2.GetStreamEndpointHandleRequest.SerializeToString, - nirfsa__pb2.GetStreamEndpointHandleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTerminalName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetTerminalName', - nirfsa__pb2.GetTerminalNameRequest.SerializeToString, - nirfsa__pb2.GetTerminalNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetUserData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetUserData', - nirfsa__pb2.GetUserDataRequest.SerializeToString, - nirfsa__pb2.GetUserDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Init', - nirfsa__pb2.InitRequest.SerializeToString, - nirfsa__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/InitWithOptions', - nirfsa__pb2.InitWithOptionsRequest.SerializeToString, - nirfsa__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Initiate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Initiate', - nirfsa__pb2.InitiateRequest.SerializeToString, - nirfsa__pb2.InitiateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InvalidateAllAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/InvalidateAllAttributes', - nirfsa__pb2.InvalidateAllAttributesRequest.SerializeToString, - nirfsa__pb2.InvalidateAllAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsSelfCalValid(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/IsSelfCalValid', - nirfsa__pb2.IsSelfCalValidRequest.SerializeToString, - nirfsa__pb2.IsSelfCalValidResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadConfigurationsFromFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/LoadConfigurationsFromFile', - nirfsa__pb2.LoadConfigurationsFromFileRequest.SerializeToString, - nirfsa__pb2.LoadConfigurationsFromFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformThermalCorrection(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/PerformThermalCorrection', - nirfsa__pb2.PerformThermalCorrectionRequest.SerializeToString, - nirfsa__pb2.PerformThermalCorrectionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadIQSingleRecordComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ReadIQSingleRecordComplexF64', - nirfsa__pb2.ReadIQSingleRecordComplexF64Request.SerializeToString, - nirfsa__pb2.ReadIQSingleRecordComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadPowerSpectrumF32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF32', - nirfsa__pb2.ReadPowerSpectrumF32Request.SerializeToString, - nirfsa__pb2.ReadPowerSpectrumF32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadPowerSpectrumF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF64', - nirfsa__pb2.ReadPowerSpectrumF64Request.SerializeToString, - nirfsa__pb2.ReadPowerSpectrumF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Reset', - nirfsa__pb2.ResetRequest.SerializeToString, - nirfsa__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetAttribute(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetAttribute', - nirfsa__pb2.ResetAttributeRequest.SerializeToString, - nirfsa__pb2.ResetAttributeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetDevice', - nirfsa__pb2.ResetDeviceRequest.SerializeToString, - nirfsa__pb2.ResetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetWithDefaults', - nirfsa__pb2.ResetWithDefaultsRequest.SerializeToString, - nirfsa__pb2.ResetWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetWithOptions', - nirfsa__pb2.ResetWithOptionsRequest.SerializeToString, - nirfsa__pb2.ResetWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/RevisionQuery', - nirfsa__pb2.RevisionQueryRequest.SerializeToString, - nirfsa__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SaveConfigurationsToFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SaveConfigurationsToFile', - nirfsa__pb2.SaveConfigurationsToFileRequest.SerializeToString, - nirfsa__pb2.SaveConfigurationsToFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfCal', - nirfsa__pb2.SelfCalRequest.SerializeToString, - nirfsa__pb2.SelfCalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCalibrate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfCalibrate', - nirfsa__pb2.SelfCalibrateRequest.SerializeToString, - nirfsa__pb2.SelfCalibrateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCalibrateRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfCalibrateRange', - nirfsa__pb2.SelfCalibrateRangeRequest.SerializeToString, - nirfsa__pb2.SelfCalibrateRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfTest', - nirfsa__pb2.SelfTestRequest.SerializeToString, - nirfsa__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareEdgeTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SendSoftwareEdgeTrigger', - nirfsa__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - nirfsa__pb2.SendSoftwareEdgeTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViBoolean', - nirfsa__pb2.SetAttributeViBooleanRequest.SerializeToString, - nirfsa__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViInt32', - nirfsa__pb2.SetAttributeViInt32Request.SerializeToString, - nirfsa__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViInt64', - nirfsa__pb2.SetAttributeViInt64Request.SerializeToString, - nirfsa__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViReal64', - nirfsa__pb2.SetAttributeViReal64Request.SerializeToString, - nirfsa__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViSession', - nirfsa__pb2.SetAttributeViSessionRequest.SerializeToString, - nirfsa__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViString', - nirfsa__pb2.SetAttributeViStringRequest.SerializeToString, - nirfsa__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetCalUserDefinedInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetCalUserDefinedInfo', - nirfsa__pb2.SetCalUserDefinedInfoRequest.SerializeToString, - nirfsa__pb2.SetCalUserDefinedInfoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetUserData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetUserData', - nirfsa__pb2.SetUserDataRequest.SerializeToString, - nirfsa__pb2.SetUserDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nirfsa/nirfsa/session.py b/generated/nirfsa/nirfsa/session.py deleted file mode 100644 index 4ca7138782..0000000000 --- a/generated/nirfsa/nirfsa/session.py +++ /dev/null @@ -1,8445 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nirfsa._attributes as _attributes -import nirfsa._converters as _converters -import nirfsa._library_interpreter as _library_interpreter -import nirfsa.enums as enums -import nirfsa.errors as errors - -import nirfsa.coefficient_info_type as coefficient_info_type # noqa: F401 - -import nirfsa.waveform_info as waveform_info # noqa: F401 - -import nirfsa.spectrum_info_type as spectrum_info_type # noqa: F401 - -import hightime -import nitclk - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Acquisition(object): - def __init__(self, session): - self._session = session - self._session._initiate() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-RFSA sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - absolute_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150266) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the sub-sample clock delay, in seconds, to apply to the acquired signal. - - Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. - This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. - - To set this property, the NI-RFSA device must be in the Configuration state. - - ---- - **Note** - If this property is set, NI-TClk cannot do any sub-sample clock adjustment. - - ---- - - **Units:** Seconds - - **Valid Values:** Plus or minus half of one sample clock period - - **Default Value**: 0 - - **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - acquisition_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AcquisitionType, 1150001) - '''Type: enums.AcquisitionType - - Configures the session to either acquire I/Q data or to compute a power spectrum over the specified frequency range. - - **Default Value**: AcquisitionType.IQ - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureAcquisitionType - - **Defined Values**: - - +--------------------------+-----------------------------------------------+ - | Name | Description | - +==========================+===============================================+ - | AcquisitionType.IQ | Configures NI-RFSA for I/Q acquisitions. | - +--------------------------+-----------------------------------------------+ - | AcquisitionType.SPECTRUM | Configures NI-RFSA for spectrum acquisitions. | - +--------------------------+-----------------------------------------------+ - ''' - advance_trigger_terminal_name = _attributes.AttributeViString(1150124) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/AdvanceTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleNameai/0/AdvanceTrigger, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/AdvanceTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/AdvanceTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - advance_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AdvanceTriggerType, 1150036) - '''Type: enums.AdvanceTriggerType - - Specifies whether you want the Advance Trigger to be a digital edge or software trigger. - - ---- - **Note** - Set this property to AdvanceTriggerType.NONE if you set the acquisition_type property to AcquisitionType.SPECTRUM or if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method. - - ---- - - **Default Value**: AdvanceTriggerType.NONE - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==================================+==================================================================================================================================================================================================================================+ - | AdvanceTriggerType.NONE | No Advance Trigger is configured. | - +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | AdvanceTriggerType.DIGITAL_EDGE | The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_advance_trigger_source property. | - +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | AdvanceTriggerType.SOFTWARE_EDGE | The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_ADVANCE_TRIGGER as the **trigger** parameter. | - +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - allow_more_records_than_memory = _attributes.AttributeViBoolean(1150154) - '''Type: bool - - Specifies whether to allow the device to acquire more records than can fit in the device memory of the PXIe-5622/5624. - - ---- - **Note** - If you set the property to FALSE and attempt to acquire more records than can fit into the PXIe-5622/5624 device memory, NI-RFSA returns an error. If this property is set to TRUE, NI-RFSA returns an error only in the event of an acquisition buffer overflow. - - ---- - - ---- - **Note** - This property is always set to True for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841. - - ---- - - **Default Value**: False - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------+------------------------------------------------------------------------+ - | Name | Description | - +=======+========================================================================+ - | True | Allows acquisition of more records than fit in device memory. | - +-------+------------------------------------------------------------------------+ - | False | Does not allow acquisitions of more records than fit in device memory. | - +-------+------------------------------------------------------------------------+ - ''' - allow_out_of_specification_user_settings = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AllowOutOfSpecificationUserSettings, 1150256) - '''Type: enums.AllowOutOfSpecificationUserSettings - - Enables or disables warnings and errors when you set frequency, power, or bandwidth values beyond the limits of the NI-RFSA device specifications. - - When you set this property to AllowOutOfSpecificationUserSettings.ENABLED, the driver does not report out-of-specification warnings and errors. - - **Default Value**: AllowOutOfSpecificationUserSettings.DISABLED - - **Supported Devices:** PXIe-5820/5830/5831/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------+----------------------------------------------+ - | Name | Description | - +==============================================+==============================================+ - | AllowOutOfSpecificationUserSettings.DISABLED | Disables out-of-specification user settings. | - +----------------------------------------------+----------------------------------------------+ - | AllowOutOfSpecificationUserSettings.ENABLED | Enables out-of-specification user settings. | - +----------------------------------------------+----------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - amplitude_settling = _attributes.AttributeViReal64(1150163) - '''Type: float - - Configures the amplitude settling accuracy in decibels. - - NI-RFSA waits until the RF power settles within the specified accuracy level after calling the _initiate method. - - Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. - - **Units**: dB - - **Default Value:** 0.5 - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - arm_ref_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ArmReferenceTriggerType, 1150039) - '''Type: enums.ArmReferenceTriggerType - - Specifies whether you want the Arm Reference Trigger to be a digital edge or software trigger. - - ---- - **Note** - The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 only support ArmReferenceTriggerType.NONE. - - ---- - - ---- - **Note** - Set this property to ArmReferenceTriggerType.NONE if you set the acquisition_type property to AcquisitionType.SPECTRUM or if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method. - - ---- - - **Default Value**: ArmReferenceTriggerType.NONE - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=======================================+=========================================================================================================================================================================================================================================+ - | ArmReferenceTriggerType.NONE | No Arm Reference Trigger is configured. | - +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ArmReferenceTriggerType.DIGITAL_EDGE | The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_arm_ref_trigger_source property. | - +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ArmReferenceTriggerType.SOFTWARE_EDGE | The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting SoftwareTriggerType.ARM_REF as the **trigger** parameter. | - +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - attenuation = _attributes.AttributeViReal64(1150005) - '''Type: float - - Specifies the nominal attenuation setting, in dB, for all attenuators before the first mixer in the RF signal chain. - - If you do not set this property, NI-RFSA automatically chooses an attenuation setting based on the reference level you configure. The valid values for this property depend on the device configuration. - - **PXI-5600/5661**: You can change the attenuation value to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. - - **PXIe-5601/5663/5663E**: You can change the attenuation value and the value of the if_attenuation property to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. - - **PXIe-5603/5605/5606/5665/5668**: You can set multiple properties to modify the attenuation values for the device. Refer to `PXIe-5665 RF Attenuation and Signal Levels `_ for more information about configuring attenuation. - - **PXIe-5667**: This property specifies the nominal attenuation setting for all attenuators before the first RF mixer in the input signal path. This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. - - **PXIe-5693**: This property is read-only and returns the nominal RF attenuation of the PXIe-5693. - - **Units**: dB - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - available_paths = _attributes.AttributeViStringCommaSeparated(1150332) - '''Type: list of str - - Returns a comma separated list of the configurable paths available for use based on your instrument configuration. - ''' - available_ports = _attributes.AttributeViStringCommaSeparated(1150306) - '''Type: list of str - - Returns a comma-separated list of the available ports for use based on your instrument configuration. - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - center_frequency = _attributes.AttributeViReal64(1150002) - '''Type: float - - Specifies the center frequency in a spectrum acquisition. - - The value is expressed in hertz (Hz). An acquisition consists of a span of data surrounding the center frequency. - - ---- - **Note** - Use this property to tune the downconverter when using external digitizer mode. - - ---- - - **Units**: hertz (Hz) - - **Default Values**: - - **PXIe-5694**: 193.6 MHz - - **PXIe-5820**: 0 Hz - - **PXIe-5830/5831/5832**: 6.5 GHz - - **All other devices**: 1 GHz - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - channel_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ChannelCoupling, 1150149) - '''Type: enums.ChannelCoupling - - Specifies whether the RF IN connector is AC- or DC-coupled on the downconverter. - - ---- - **Note** - For the PXIe-5605/5606/5665/5667/5668, this property must be set to ChannelCoupling.AC when the DC block is present and set to ChannelCoupling.DC when the DC block is not present to ensure device specifications are met and proper calibration data is used. For more information about removing or attaching the DC block, refer to the `PXIe-5665 Block Diagram `_, the `PXIe-5605 Front Panel and LEDs `_, the `PXIe-5667 Block Diagram `_, or the `PXIe-5668 Block Diagram `_ topics in this help file. - - ---- - - **Valid Values**: - - **PXIe-5603/5665 (3.6 GHz)**: ChannelCoupling.AC, ChannelCoupling.DC - - **PXIe-5605/5665 (14 GHz)**: ChannelCoupling.AC, ChannelCoupling.DC - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low-frequency bypass path**: ChannelCoupling.AC, ChannelCoupling.DC - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: ChannelCoupling.AC - - **PXIe-5667 (7 GHz)**: ChannelCoupling.AC - - **PXIe-5606/5668**: ChannelCoupling.AC, ChannelCoupling.DC - - **Default Value**: ChannelCoupling.AC - - **Supported Devices**: PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 - - **Defined Values**: - - +--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================+============================================================================================================================================================+ - | ChannelCoupling.AC | Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. | - +--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ChannelCoupling.DC | Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. | - +--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - common_mode_level = _attributes.AttributeViReal64(1150269) - '''Type: float - - Specifies the common-mode level presented at each differential input terminal. - - Common-mode level shifts both positive and negative terminals in the same direction. This must match the common-mode level of the device under test (DUT). - - **Units**: volts - - **Default Value**: 0 V - - **Supported Devices**: PXIe-5820 - ''' - deembedding_compensation_gain = _attributes.AttributeViReal64(1150325) - '''Type: float - - Returns the de-embedding gain applied to compensate for the mismatch on the specified port. Use the Active Channel property to specify the name of the port to configure for de-embedding. - - If de-embedding is enabled, NI-RFSA uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. - - **Supported Devices**: PXIe-5830/5831/5840/5841/5842/5860 - ''' - deembedding_selected_table = _attributes.AttributeViString(1150308) - '''Type: str - - Selects the de-embedding table to apply to the measurements on the specified port. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the port to configure for de-embedding. - - If de-embedding is enabled, NI-RFSA uses the specified table to remove the effects of the external network between the instrument and the DUT. - - Use the _create_deembedding_sparameter_table_array method to create tables. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Tip: - This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.deembedding_selected_table` - ''' - deembedding_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DeembeddingType, 1150307) - '''Type: enums.DeembeddingType - - Specifies the type of de-embedding to apply to measurements on the specified port. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the port to configure for de-embedding. - - If you set this property to any value besides DeembeddingType.NONE, NI-RFSA adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. - - **Default Value**: DeembeddingType.SCALAR - - **Valid Values for PXIe-5830/5832/5840/5841** : DeembeddingType.NONE or DeembeddingType.SCALAR - - **Valid Values for PXIe-5842/5860** : DeembeddingType.NONE or DeembeddingType.SCALAR or DeembeddingType.AMPLITUDE_FLATNESS - - **Valid Values for PXIe-5831:** DeembeddingType.NONE, DeembeddingType.SCALAR, or DeembeddingType.VECTOR. DeembeddingType.VECTOR is only supported for TRX Ports in a Semiconductor Test System (STS). - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------+-------------------------------------------------------------------------+ - | Name | Description | - +====================================+=========================================================================+ - | DeembeddingType.NONE | De-embedding is not applied to the measurement. | - +------------------------------------+-------------------------------------------------------------------------+ - | DeembeddingType.SCALAR | De-embeds the measurement using only the gain term. | - +------------------------------------+-------------------------------------------------------------------------+ - | DeembeddingType.VECTOR | De-embeds the measurement using the gain term and the reflection term. | - +------------------------------------+-------------------------------------------------------------------------+ - | DeembeddingType.AMPLITUDE_FLATNESS | De-embeds the measurement using wideband amplitude flatness correction. | - +------------------------------------+-------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_type` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.deembedding_type` - ''' - device_configuration_temperature = _attributes.AttributeViReal64(1150159) - '''Type: float - - Specifies the temperature, in degrees Celsius, that NI-RFSA uses to calculate the device configuration settings. - - ---- - **Note** - For most applications, you can choose not to set this property, so NI-RFSA uses the device temperature to calculate best attenuation settings. Set this property only if you want NI-RFSA to maintain the same device configuration settings from acquisition to acquisition, independent of device temperature changes. - - ---- - - **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: This property is read-only. - - **Units**: degrees Celsius - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - device_instantaneous_bandwidth = _attributes.AttributeViReal64(1150125) - '''Type: float - - Specifies the instantaneous bandwidth of the device in hertz (Hz). - - The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. - - Specify the maximum instantaneous bandwidth needed for your measurement. NI-RFSA coerces the actual IF filter to use based on other measurement constraints such as the if_filter_bandwidth property and the digital_if_equalization_enabled property. - - To change the value that NI-RFSA uses for the maximum size of multispan acquisition subspans, use the fft_width property. - - ---- - **Note** - If your application uses the PXIe-5622 IF digitizer, your maximum device instantaneous bandwidth is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. If your application uses the PXIe-5624 digitizer, your maximum device instantaneous bandwidth is constrained by the hardware option you purchased and your FPGA image. - - ---- - - **PXI-5661**: The PXI-5600 RF downconverter instantaneous bandwidth is 20 MHz. - - **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the `PXIe-5601 RF Signal Downconverter Overview `_ for more information about instantaneous bandwidth. - - ---- - **Note** - For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than the instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. - - ---- - - **PXIe-5665**: Your maximum allowed instantaneous bandwidth is independent of the downconverter center frequency. Refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth. - - **PXIe-5665 (14 GHz), PXIe-5668**: If you have enabled the preselector for the PXIe-5605/5606, the device instantaneous bandwidth value is only a typical specification. For multispan acquisitions, NI-RFSA uses this typical specification as the maximum size for the acquisition subspans. - - ---- - **Note** - When used with an external digitizer, the PXIe-5603 and the low band signal path of the PXIe-5605 provide a nominal 80 MHz bandwidth at dB. At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector (YIG-tuned filter) enabled. - - ---- - - ---- - **Note** - For PXIe-5606 devices, the 765 MHz IF filter is available only at center frequencies above 3.6 GHz. - - ---- - - **PXIe-5693**: This property is read-only for the PXIe-5693. The value for the device instantaneous bandwidth depends on the value for the RF preselector filter. - - **PXIe-5694/PXIe-5667**: If your application uses the PXIe-5694 as part of an PXIe-5667 spectrum monitoring receiver or the PXIe-5694 as a stand-alone device, NI-RFSA determines the appropriate IF filter to use based on the value that you set for this property. - - ---- - **Note** - - ---- - - **PXIe-5644/5645/5646**: This property is read-only for the PXIe-5644/5645/5646. Refer to the specifications document for your device for more information about instantaneous bandwidth. - - **PXIe-5840/5841/5860**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the *PXIe-5840/5841/5860 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. - - **PXIe-5842**: Your maximum allowed instantaneous bandwidth depends on the device's hardware options, configured device personality, and the downconverter center frequency you use. Refer to the *PXIe-5842 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - ''' - device_temperature = _attributes.AttributeViReal64(1150051) - '''Type: float - - Returns the current temperature, in degrees Celsius, of the module. - - **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **PXIe-5830/5831/5832**: To use this property, you must first set the channelName parameter of the _set_attribute_vi_real64 method to using the appropriate string for your instrument configuration. Setting the _set_attribute_vi_real64 property is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. - - **Units**: degrees Celcius - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - +--------------------------------+---------------------------+---------------------------+ - | Hardware Module | TRX Port Type | Active Channel String | - +================================+===========================+===========================+ - | PXIe-3621/3622/5842 | - | if or "" (empty string) | - +--------------------------------+---------------------------+---------------------------+ - | PXIe-5820 | - | fpga | - +--------------------------------+---------------------------+---------------------------+ - | PXIe-5860 | - | 5860 or "" (empty string) | - +--------------------------------+---------------------------+---------------------------+ - | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | - +--------------------------------+---------------------------+---------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | - +--------------------------------+---------------------------+---------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf0switch1 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf1switch1 | - +--------------------------------+---------------------------+---------------------------+ - | First connected RMM-5544/5546 | - | rmm0 | - +--------------------------------+---------------------------+---------------------------+ - | Second connected RMM-5544/5546 | - | rmm1 | - +--------------------------------+---------------------------+---------------------------+ - - Tip: - This property can be set/get on specific device_temperatures within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. - - Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` - - To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.device_temperature` - ''' - digital_edge_advance_trigger_source = _attributes.AttributeViString(1150037) - '''Type: str - - Specifies the source terminal for the Advance Trigger. - - This property is used only when the advance_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - configure_digital_edge_ref_trigger - - **Defined Values**: - - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==========================+=================================================================================================================================================================================================================+ - | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI1 | The trigger is received on the PFI 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on the PXI trigger line 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on the PXI trigger line 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on the PXI trigger line 2. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on the PXI trigger line 3. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on the PXI trigger line 4. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on the PXI trigger line 5. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on the PXI trigger line 6. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on the PXI trigger line 7. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_edge_arm_ref_trigger_source = _attributes.AttributeViString(1150040) - '''Type: str - - Specifies the source terminal for the digital edge Arm Reference Trigger. - - This property is used only when the arm_ref_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. - - **Default Value**: "" (empty string) - - ---- - **Note** - The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 devices only support "" (empty string). - - The trigger is received on PFI0 from the front panel DIO terminal. - - The trigger is received on PFI1 from the front panel DIO terminal. - - The trigger is received on PFI2 from the front panel DIO terminal. - - The trigger is received on PFI3 from the front panel DIO terminal. - - The trigger is received on PFI4 from the front panel DIO terminal. - - The trigger is received on PFI5 from the front panel DIO terminal. - - The trigger is received on PFI6 from the front panel DIO terminal. - - The trigger is received on PFI7 from the front panel DIO terminal. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==========================+=================================================================================================================================================================================================================+ - | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI1 | The trigger is received on PFI 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_edge_ref_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerDigitalEdgeEdge, 1150030) - '''Type: enums.ReferenceTriggerDigitalEdgeEdge - - Specifies the active edge for the Reference Trigger. - - This property is used only when the ref_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. - - **Default Value**: ReferenceTriggerDigitalEdgeEdge.RISING - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - configure_digital_edge_ref_trigger - - **Defined Values**: - - +-----------------------------------------+-------------------------------------------------------+ - | Name | Description | - +=========================================+=======================================================+ - | ReferenceTriggerDigitalEdgeEdge.RISING | The trigger asserts on the rising edge of the signal. | - +-----------------------------------------+-------------------------------------------------------+ - | ReferenceTriggerDigitalEdgeEdge.FALLING | The trigger asserts on the falling edge of the signal | - +-----------------------------------------+-------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_edge_ref_trigger_source = _attributes.AttributeViString(1150029) - '''Type: str - - Specifies the source terminal for the digital edge Reference Trigger. - - This property is used only when the ref_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==========================+=================================================================================================================================================================================================================+ - | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI1 | The trigger is received on PFI 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerDigitalEdgeEdge, 1150026) - '''Type: enums.StartTriggerDigitalEdgeEdge - - Specifies the active edge for the Start Trigger. - - This property is used only when the start_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. - - **Default Value**: StartTriggerDigitalEdgeEdge.RISING - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - configure_digital_edge_start_trigger - - **Defined and Valid Values:** - - +-------------------------------------+-------------------------------------------------------+-------------------------------------+ - | Name | Description | Valid For | - +=====================================+=======================================================+=====================================+ - | StartTriggerDigitalEdgeEdge.RISING | The trigger asserts on the rising edge of the signal. | PXI-5661, PXIe-5663/5663E/5665/5668 | - +-------------------------------------+-------------------------------------------------------+-------------------------------------+ - | StartTriggerDigitalEdgeEdge.FALLING | The trigger asserts on the falling edge of the signal | PXIe-5668 | - +-------------------------------------+-------------------------------------------------------+-------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_edge_start_trigger_source = _attributes.AttributeViString(1150025) - '''Type: str - - Specifies the source terminal for the Start Trigger. - - This property is used only when the start_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - configure_digital_edge_start_trigger - - **Defined Values**: - - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==========================+=================================================================================================================================================================================================================+ - | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PFI1 | The trigger is received on PFI 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | - +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_gain = _attributes.AttributeViReal64(1150301) - '''Type: float - - Specifies the scaling factor applied to the time-domain voltage data in the digitizer. - - NI-RFSA does not compensate for the specified digital gain. - - You can use this property to account for external gain changes without changing the analog signal path. - - ---- - **Note** - The PXIe-5644/5645/5646 applies this gain when the data is scaled. The raw data does not include this scaling on these devices. - - ---- - - **Units:** dB - - **Default Value:** 0 dB - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - digital_if_equalization_enabled = _attributes.AttributeViBoolean(1150048) - '''Type: bool - - Enables use of the digital equalization filter for the RF downconverter. - - **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. - - ---- - **Note** - For PXIe-5665/5667 devices, digital IF equalization is supported only with a 150 MHz clock. You cannot set this property to True if the digitizer_sample_clock_timebase_source property is set to DigitizerSampleClockTimebaseSource.LO_REF_CLK. - - ---- - - ---- - **Note** - For the PXIe-5665 (14 GHz)/5667 (7 GHz)/5668, the preselector is not part of the IF filter path, so NI-RFSA does not equalize the preselector distortions. - - ---- - - **Default Value**: True, if the device configuration is supported. - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 - - **Defined Values**: - - +-------+-----------------------------------------------------------+ - | Name | Description | - +=======+===========================================================+ - | True | Enables digital IF equalization on the RF downconverter. | - +-------+-----------------------------------------------------------+ - | False | Disables digital IF equalization on the RF downconverter. | - +-------+-----------------------------------------------------------+ - ''' - digitizer_dither_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitizerDitherEnabled, 1150080) - '''Type: enums.DigitizerDitherEnabled - - Specifies whether dithering is enabled on the digitizer. - - Dithering adds band-limited noise in the analog signal path to help reduce the quantization effects of the A/D converter and improve spectral performance. On the PXIe-5622, this out-of-band noise is added at low frequencies up to approximately 12 MHz. On the PXIe-5624, this out-of-band noise is added at low frequencies up to approximately 50 MHz. - - **PXIe-5663/5663E/5665/5667**: When you enable dithering, the maximum signal level is reduced by up to 3 dB. This signal level reduction is accounted for in the nominal input ranges of the PXIe-5622. Therefore, you can overrange the input by up to 3 dB with dither disabled. For example, the +4 dBm input range can handle signal levels up to +7 dBm with dither disabled. For wider bandwidth acquisitions, such as 40 MHz, disable dithering to eliminate residual leakage of the dither signal into the lower frequencies of the IF passband, which starts at 12.5 MHz and ends at 62.5 MHz. This leakage can slightly raise the noise floor in the lower frequencies, thus degrading the performance in high-sensitivity applications. When taking spectral measurements, this leakage can also appear as a wide, low-amplitude signal near 12.5 MHz and 62.5 MHz. The width and amplitude of the signal depends on your resolution bandwidth and the type of time-domain window you apply to your FFT. - - **PXIe-5668**: When you enable dithering, the maximum signal level is reduced by up to 2 dB. For the PXIe-5624, the maximum input power with dither off is 8 dBm and the maximum input power with dither on is 6 dBm. When acquiring an 800 MHz bandwidth signal, the I/Q data contains the dither even if the dither signal is not in the displayed spectrum. The dither can affect actions like power level triggering. - - ---- - **Note** - For the PXIe-5668, disabling dithering can negatively affect absolute amplitude accuracy. - - ---- - - ---- - **Note** - For the PXIe-5820/5830/5831/5832/5840/5841/5842, only DigitizerDitherEnabled.ENABLED is supported. - - ---- - - **Default Value**: DigitizerDitherEnabled.ENABLED - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +---------------------------------+-----------------------------------+ - | Name | Description | - +=================================+===================================+ - | DigitizerDitherEnabled.DISABLED | Disables dither on the digitizer. | - +---------------------------------+-----------------------------------+ - | DigitizerDitherEnabled.ENABLED | Enables dither on the digitizer. | - +---------------------------------+-----------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digitizer_sample_clock_rate = _attributes.AttributeViReal64(1150228) - '''Type: float - - Returns the actual frequency, in hertz (Hz), of the digitizer Sample Clock. - - **Units**: hertz (Hz) - - **Supported Devices**: PXIe-5668 - ''' - digitizer_sample_clock_timebase_rate = _attributes.AttributeViReal64(1150022) - '''Type: float - - Specifies the frequency, in hertz (Hz), of the external clock used as the timebase source if you set the digitizer_sample_clock_timebase_source property to an external source, such as NIRFSA_VAL_CLK_IN, DigitizerSampleClockTimebaseSource.LO_REF_CLK, or DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT - - **PXI-5661**If this property is set to a value less than 60 MHz, signals at frequencies just above the 20 MHz passband of the downconverter may be aliased back into the passband. This aliasing occurs because the IF frequency of the downconverter is 15 MHz, and the upper end of the passband is 25 MHz. At sampling rates below 60 MHz, the Nyquist frequency is close to the end of the passband and creates aliases that are not filtered effectively by the downconverter. - - **Units**: hertz (Hz) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - **Valid and Default Values**: - - +---------------------------+----------------------------+---------------+ - | Device | Valid Values | Default Value | - +===========================+============================+===============+ - | PXI-5661 | Any frequency 226552.5 MHz | 100 MHz | - +---------------------------+----------------------------+---------------+ - | PXIe-5663/5663E/5665/5667 | 150 MHz | 150 MHz | - +---------------------------+----------------------------+---------------+ - | PXIe-5668 | 2 GHz | 2 GHz | - +---------------------------+----------------------------+---------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digitizer_sample_clock_timebase_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.DigitizerSampleClockTimebaseSource, 1150021) - '''Type: enums.DigitizerSampleClockTimebaseSource - - Specifies the source of the Sample Clock timebase, which is the timebase used to control waveform sampling. - - **Default Value**: DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - **Defined Values**: - - +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==========================================================+========================================================================================================================================================================+ - | DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK | The digitizer uses its onboard clock as the Sample Clock timebase. | - +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DigitizerSampleClockTimebaseSource.CLK_IN | The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. | - +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DigitizerSampleClockTimebaseSource.LO_REF_CLK | The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. | - +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DigitizerSampleClockTimebaseSource.PXI_STAR | The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. | - +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT | The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. | - +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digitizer_temperature = _attributes.AttributeViReal64(1150090) - '''Type: float - - Returns the current temperature, in degrees Celsius, of the digitizer module. - - **PXIe-5820/5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Default Value**: N/A - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 - ''' - digitizer_vertical_range = _attributes.AttributeViReal64(1150070) - '''Type: float - - Specifies the vertical range of the digitizer. - - The vertical range is defined as the absolute value of the input range for a channel. The default vertical range works for all device configurations, but you can use this property to optimize performance if you know that the signal level at the digitizer input terminal is low. - - ---- - **Note** - For most applications, NI-RFSA selects an appropriate value for this property. - - ---- - - This value is expressed in volts. For example, to acquire a sine wave that spans between 20130.5 V and +0.5 V, set this property to 1.0. - - **PXIe-5840/5841/5842/5860**: This property is read-only. - - **Default Value**: 1.0 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5840/5841/5842/5860 - ''' - done_event_terminal_name = _attributes.AttributeViString(1150121) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/DoneEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/DoneEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - get_terminal_name - ''' - downconverter_center_frequency = _attributes.AttributeViReal64(1150082) - '''Type: float - - Enables in-band retuning and specifies the current frequency, in hertz (Hz), of the RF downconverter. - - If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. To disable in-band retuning, reset the property or call the reset_device method. - - After you set this property, the downconverter is locked to that frequency until the value is changed or the property is reset. Locking the downconverter to a fixed value allows frequencies within the instantaneous bandwidth of the downconverter to be measured with minimal overhead, decreasing tuning time. - - **Valid Values**: Any supported tuning frequency of the device - - **PXIe-5820**: The only valid value for this property is 0 Hz. - - **Default Value**: - - **PXIe-5694**: The default value for the PXIe-5694 is 193.6 MHz unless you set the signal_conditioning_enabled property to SignalConditioningEnabled.BYPASSED, in which case the default value is 187.5 MHz. - - **All other devices**: The carrier frequency or spectrum center frequency. NI-RFSA sets this property to the default value based on the value of the acquisition_type property. - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842 - ''' - downconverter_frequency_offset = _attributes.AttributeViReal64(1150203) - '''Type: float - - Specifies an offset from the I/Q carrier frequency for the downconverter. - - If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. After you set this property, the RF downconverter is locked to that frequency offset until the value is changed or the property is reset. - - **Valid Values:** - - **PXIe-5646:**: -100 MHz to +100 MHz - - **PXIe-5830/5831/5832/5840/5841:**: -500 MHz to +500 MHz - - **All other devices:**: -42 MHz to +42 MHz - - **Default Values:**: For spectrum acquisition types the driver automatically calculates the default to avoid residual LO power. For I/Q acquisition types the default is 0 Hz. If the center frequency is set to a non-multiple of the lo_frequency_step_size property, the downconverter_frequency_offset property is set to compensate for the difference. - - **Supported Devices:**: PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - ''' - downconverter_frequency_offset_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DownconverterFrequencyOffsetMode, 1150305) - '''Type: enums.DownconverterFrequencyOffsetMode - - Specifies whether to allow NI-RFSA to select the downconveter frequency offset. - - You can either set an offset yourself or let NI-RFSA select one for you. - - Placing the downconverter center frequency outside the bandwidth of your input signal can help avoid issues such as LO leakage. - - To set an offset yourself, set this property to DownconverterFrequencyOffsetMode.AUTOMATIC or DownconverterFrequencyOffsetMode.USER_DEFINED, and set either the downconverter_center_frequency or the downconverter_frequency_offset properties. - - To allow NI-RFSA to automatically select the downconverter frequency offset, set this property to DownconverterFrequencyOffsetMode.AUTOMATIC or DownconverterFrequencyOffsetMode.ENABLED and configure the signal_bandwidth property to describe your expected input signal. The signal bandwidth must be no greater than half the specified value of the device_instantaneous_bandwidth property, minus a device-specific guard band. Do not set the downconverter_center_frequency or downconverter_frequency_offset properties. If all conditions are met, NI-RFSA places the downconverter center frequency outside the signal bandwidth. Set this property to DownconverterFrequencyOffsetMode.ENABLED if you want to receive an error any time NI-RFSA is unable to apply automatic offset. - - When you set an offset yourself or do not use an offset, the reference frequency for gain is near the downconverter center frequency, and downconverter_frequency_offset_mode returns DownconverterFrequencyOffsetMode.USER_DEFINED. When NI-RFSA automatically sets an offset, the reference frequency for gain is the iq_carrier_frequency, and downconverter_frequency_offset_mode returns DownconverterFrequencyOffsetMode.ENABLED. Refer to the specifications document for your device for more information about gain, flatness, and reference frequencies. - - ---- - **Note** - Below 120 MHz, the PXIe-5841 does not use an LO and DownconverterFrequencyOffsetMode.ENABLED is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. - - ---- - - **Default Value:** DownconverterFrequencyOffsetMode.AUTOMATIC - - **Supported Devices**: PXIe-5830/5831/5832/5841/5842 - - **Related Topics** - - `PXIe-5830 Automatic Frequency Offset `_ - - `PXIe-5831/5832 Automatic Frequency Offset `_ - - `PXIe-5841 Automatic Frequency Offset `_ - - **Defined Values**: - - +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===============================================+==========================================================================================================================================================================================================================================================================+ - | DownconverterFrequencyOffsetMode.AUTOMATIC | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. | - +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DownconverterFrequencyOffsetMode.ENABLED | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSA returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. | - +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DownconverterFrequencyOffsetMode.USER_DEFINED | NI-RFSA uses the offset that you specified with the downconverter_frequency_offset or downconverter_center_frequency properties. | - +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - downconverter_gain = _attributes.AttributeViReal64(1150065) - '''Type: float - - Returns the net signal gain for the NI-RFSA device at the current NI-RFSA settings and temperature. - - NI-RFSA scales the acquired I/Q and spectrum data from the digitizer using the value of this property. - - For a vector signal analyzer (VSA), the system is defined as the RF downconverter and all interfaces between the RF IN connector on the RF downconverter front panel and the IF IN connector on the digitizer front panel. For a spectrum monitoring receiver, the system is defined as the RF preselector, RF downconverter, and IF conditioning modules including all interfaces between the RF IN connector on the RF preselector module front panel and the IF IN connector on the digitizer front panel. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5830/5831/5832/5840/5841/5842/5860 - ''' - downconverter_loop_bandwidth = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DownconverterLoopBandwidth, 1150067) - '''Type: enums.DownconverterLoopBandwidth - - Configures the loop bandwidth of the RF downconverter tuning PLLs. - - To set this property, the NI-RFSA device must be in the Configuration state. - - **PXI-5600/5661** : For signal bandwidths greater than 10 MHz, DownconverterLoopBandwidth.WIDE is the only value supported for this property. - - **PXIe-5601/5663/5663E** : The PXIe-5601 does not support the DownconverterLoopBandwidth.MEDIUM value. This property is not supported if you are using an external LO. - - **PXIe-5830/5831/5832/5840/5841/5842** : The PXIe-5840/5841/5842 supports only DownconverterLoopBandwidth.MEDIUM for this property. This property is not supported if you are using an external LO. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Values**: - - **PXI-5600** : DownconverterLoopBandwidth.WIDE - - **PXIe-5601** : DownconverterLoopBandwidth.NARROW - - **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842** : DownconverterLoopBandwidth.MEDIUM - - **Supported Devices**: PXI-5600, PXIe-5601 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-----------------------------------+-----------------------------------------------------------------------+ - | Name | Description | - +===================================+=======================================================================+ - | DownconverterLoopBandwidth.NARROW | Specifies that the downconverter module uses a narrow loop bandwidth. | - +-----------------------------------+-----------------------------------------------------------------------+ - | DownconverterLoopBandwidth.MEDIUM | Specifies that the downconverter module uses a medium loop bandwidth. | - +-----------------------------------+-----------------------------------------------------------------------+ - | DownconverterLoopBandwidth.WIDE | Specifies that the downconverter module uses a wide loop bandwidth. | - +-----------------------------------+-----------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].downconverter_loop_bandwidth` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.downconverter_loop_bandwidth` - ''' - downconverter_preselector_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DownconverterPreselectorEnabled, 1150132) - '''Type: enums.DownconverterPreselectorEnabled - - Specifies whether the tunable preselector is enabled on the downconverter. - - ---- - **Note** - All devices support setting this property to DownconverterPreselectorEnabled.DISABLED or DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH. Only devices with a preselector support setting this property to DownconverterPreselectorEnabled.ENABLED. - - ---- - - **Default Value**: DownconverterPreselectorEnabled.DISABLED if the device has no preselector. DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH if the device has a preselector. - - **Supported Devices:** PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=============================================================+================================================================================================================================================================================================================================================================+ - | DownconverterPreselectorEnabled.DISABLED | Disables the preselector. | - +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH | The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the preselector_present property to determine if the downconverter has an preselector. | - +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DownconverterPreselectorEnabled.ENABLED | Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH whenever possible avoid an error. | - +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - driver_setup = _attributes.AttributeViString(1050007) - '''Type: str - - The Driver Setup string returns the initial values for properties that are specific to NI-RFSA. - - The Driver Setup string uses the following format: - - DriverSetup= Tag:Value - - *Tag* is the name of the Driver Setup string property. *Value* is the value set to the property. If multiple properties are set, their assignments are separated with a semicolon. - - This property only returns the Driver Setup string that has already been defined. Refer to `Driver Setup Options `_ for more information about configuring the Driver Setup string. Refer to the __init__ method for additional information about using the **option string** parameter. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - enable_fractional_resampling = _attributes.AttributeViBoolean(1150071) - '''Type: bool - - Specifies whether fractional resampling is enabled on the digitizer. - - Fractional resampling allows the digitizer to achieve very fine resolution on the I/Q rate value. Setting this property to False improves spectral performance. - - **PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. - - **PXIe-5668**: When using a 400 MHz FPGA image, the only valid value for this property is True. When using a 800 MHz FPGA image, the only valid value for this property is False. Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about FPGA images. - - **Default Value**: True - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------+---------------------------------+ - | Value | Description | - +=======+=================================+ - | True | Enables fractional resampling. | - +-------+---------------------------------+ - | False | Disables fractional resampling. | - +-------+---------------------------------+ - ''' - end_of_record_event_terminal_name = _attributes.AttributeViString(1150120) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/EndOfRecordEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/EndOfRecordEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - exported_advance_trigger_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150038) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the exported Advance Trigger. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_digitizer_sample_clock_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.DigitizerSampleClockExportedTerminal, 1150229) - '''Type: enums.DigitizerSampleClockExportedTerminal - - Specifies the terminal at which to export the Digitizer Sample Clock. - - **Valid Values**: - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5668 - - **Defined Values**: - - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==============================================+==========================================================================================================================================================+ - | DigitizerSampleClockExportedTerminal.NONE | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - | DigitizerSampleClockExportedTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_done_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150054) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the Done Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_end_of_record_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150044) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the End of Record Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `Signal Routing `_ - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_ready_for_advance_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150042) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the Ready for Advance Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on the PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on the PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on the PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on the PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on the PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on the PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on the PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on the PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_ready_for_ref_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150043) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the Ready for Reference Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_ready_for_start_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150041) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the Ready for Start Event. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_ref_clock_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockExportedTerminal, 1150072) - '''Type: enums.ReferenceClockExportedTerminal - - Specifies a comma-separated list of the terminals at which to export the Reference Clock. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +================================================+=================================================================================================================================================================================================================+ - | ReferenceClockExportedTerminal.NONE | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockExportedTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockExportedTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockExportedTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockExportedTerminal.IF_COND_REF_OUT | Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. | - +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_ref_clock_rate = _attributes.AttributeEnum(_attributes.AttributeViReal64, enums.ReferenceClockExportedRate, 1150326) - '''Type: enums.ReferenceClockExportedRate - - Specifies the Reference Clock Rate, in Hz, of the signal sent to the Ref Clock Exported Terminal. - - **Default Value**: 10 MHz - - **Valid Values**: - - PXIe-5820/5830/5831/5832/5840/5841: 10 MHz - - PXIe-5842: 10 MHz, 100 MHz, 1 GHz - - PXIe-5860: 10 MHz, 100 MHz - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - exported_ref_trigger_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150032) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the exported Reference Trigger. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - exported_start_trigger_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150027) - '''Type: enums.ExportOutputTerminal - - Specifies the destination terminal for the exported Start Trigger. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ExportSignal - - **Defined Values**: - - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=================================================================================================================================================================================================================+ - | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | - +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - external_gain = _attributes.AttributeViReal64(1150094) - '''Type: float - - Specifies the gain, in dB, of a switch (or cable) connected before the RF IN connector of an NI-RFSA system. - - When you set this property, NI-RFSA calculates appropriate attenuator settings based on the value of this property and the value of the reference_level property. In this case, NI-RFSA interprets the reference level as the maximum expected power level of the signal at the input of the external gain device. For more information about attenuation, refer to the *Attenuation and Signal Levels* topic for your device in the *NI RF Vector Signal Analyzers Help*. - - ---- - **Note** - For the PXIe-5820, this property specifies the gain, in dB, of a switch (or cable) connected before the IQ IN connector. - - ---- - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - ---- - - With this property set, NI-RFSA reads the iq_power_edge_ref_trigger_level property value as the power level at the input of the external gain device at which the NI-RFSA device should trigger. - - Negative values indicate attenuation. - - **Valid Values**: INF to +INF - - **Units**: dB - - **Default Value**: 0 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fetch_offset = _attributes.AttributeViInt64(1150046) - '''Type: int - - Specifies the offset relative to the position specified by the fetch_relative_to property from which to start fetching data. - - Offset can be a positive or negative value. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fetch_relative_to = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FetchRelativeTo, 1150045) - '''Type: enums.FetchRelativeTo - - Specifies the reference location within the acquired record from which to begin fetching. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=========================================+=============================================================================================================================================================================================================================+ - | FetchRelativeTo.MOST_RECENT_SAMPLE | Fetching occurs relative to the most recently acquired data. The value of the fetch_offset property must be negative. | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | FetchRelativeTo.FIRST_SAMPLE | Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | FetchRelativeTo.REFERENCE_TRIGGER | Fetching occurs relative to the Reference Trigger. This value behaves like FetchRelativeTo.FIRST_SAMPLE if no Reference Trigger is configured. | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | FetchRelativeTo.FIRST_PRETRIGGER_SAMPLE | Fetching occurs relative to the first pretrigger sample acquired. | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | FetchRelativeTo.CURRENT_READ_POSITION | Fetching occurs after the last fetched sample. | - +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - fft_size = _attributes.AttributeViInt32(1150050) - '''Type: int - - Returns the size of the fast Fourier transform (FFT). - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fft_width = _attributes.AttributeViReal64(1150169) - '''Type: float - - Specifies the FFT width of the device. - - The FFT width is the effective bandwidth of the signal path during each signal acquisition. - - ---- - **Note** - The maximum FFT width when using the PXIe-5622 is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. The maximum FFT width when using thing PXIe-5624 is constrained to 400 MHz or 765 MHz, depending on the digitizer configuration. - - ---- - - ---- - **Note** - You can use the fft_width property with in-band retuning. For more information about in-band retuning, refer to the downconverter_center_frequency property. - - ---- - - NI-RFSA treats the *device instantaneous bandwidth* as the effective real-time bandwidth of the signal path. The *span* specifies the frequency range of the computed spectrum. An RF vector signal analyzer can acquire a bandwidth only within the device instantaneous bandwidth frequency. If the span you choose is greater than the device instantaneous bandwidth, NI-RFSA obtains multiple acquisitions and combines them into a single spectrum. By specifying the FFT width, you can control the specific bandwidth obtained in each signal acquisition. If you read the fft_width property without setting it, NI-RFSA returns the value of the device_instantaneous_bandwidth property. - - **Valid Values**: - - The lower limit for all FFT width supported devices using the PXIe-5622 IF digitizer is 7.325 kHz. The lower limit for all FFT width supported devices using the PXIe-5624 IF digitizer is 400 MHz or 800 MHz, depending on the FPGA image that is downloaded upon opening the session to the PXIe-5624 IF digitizer. - - **PXIe-5663/5663E**: The FFT width upper limit for the PXIe-5663/5663E depends on the downconverter center frequency and on the module revision of the PXIe-5601 as illustrated in the following table. Refer to the `Identifying Module Revision `_ topic for more information about determining which revision of the PXIe-5601 RF downconverter you have installed. - - **PXIe-5665/5667/5668**: The upper limit of the FFT width is the maximum device instantaneous bandwidth. - - ---- - **Note** - - ---- - - ---- - **Note** - At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector enabled. The fft_width property can override the typical bandwidth of the PXIe-5605 up to 57 MHz using an external digitizer and up to 50 MHz or 25 MHz depending on the PXIe-5622 digitizer option you purchased. The increase in bandwidth results in faster signal acquisitions, but amplitude accuracy is decreased for spectrum acquisitions, and magnitude and phase accuracy is decreased for I/Q acquisitions. National Instruments does not guarantee device specifications if you set the fft_width property greater than the warranted instantaneous bandwidth specification. - - ---- - - ---- - **Note** - When using the PXIe-5606, the 765 MHz IF filter is only available at center frequencies of 3.6 GHz and above. - - ---- - - **Default Value**: N/A - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668 - - +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | Downconverter Center Frequency | PXIe-5601 Instantaneous Bandwidth | FFT Width Upper Limit | - +=====================================================================================================================================================================================+===================================+====================================================================+ - | 10 MHz to <120 MHz | 10 MHz | 10 MHz (Revision E), 20 MHz< sup >* < /sup> (Revision G or later) | - +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | 120 MHz to <330 MHz | 20 MHz | 20 MHz (Revision E), 30 MHz< sup > * < /sup> (Revision G or later) | - +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | 330 MHz to <6.6 GHz | 50 MHz | 50 MHz | - +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - | * < / sup >National Instruments does not guarantee device specifications if you set the fft_width property greater than the warranted instantaneous bandwidth specification. | | | - +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ - ''' - fft_window_shape_factor = _attributes.AttributeViReal64(1150206) - '''Type: float - - Returns the shape factor of the window used in the fast Fourier transform (FFT). - - The window shape factor is defined as the ratio of the 60 dB to 6 dB bandwidths. - - The following table shows the shape factor for each NI-RFSA FFT window type. - - | Window Type | Shape Factor | - |:-----------------------|:-------------| - | Uniform | 1.57:1 | - | Hanning | 1.94:1 | - | Hamming | 2.13:1 | - | Exact Blackman | 2.52:1 | - | Flat Top | 2.0:1 | - | 4-term Blackman-Harris | 2.5:1 | - | 7-term Blackman-Harris | 4.1:1 | - | Low Side Lobe | 2.78:1 | - | Gaussian | 2.3:1 | - | Kaiser Bessel | 2.55:1 | - - **Default Value**: N/A - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - ''' - fft_window_size = _attributes.AttributeViInt32(1150049) - '''Type: int - - Returns the size of the window used in the fast Fourier transform (FFT), in terms of the number of samples in the window. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fft_window_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SpectrumFftWindowType, 1150017) - '''Type: enums.SpectrumFftWindowType - - Specifies the time-domain window type. - - **Default Values**: - - **PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS - - **PXIe-5667**: SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Resolution Bandwidth `_ - - **Defined Values**: - - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===============================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | SpectrumFftWindowType.UNIFORM | No window is applied. | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.HANNING | The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.HAMMING | A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.BLACKMAN_HARRIS | A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.EXACT_BLACKMAN | An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.BLACKMAN | A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.FLAT_TOP | The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS | A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS | A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.LOW_SIDE_LOBE | The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.GAUSSIAN | A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumFftWindowType.KAISER_BESSEL | A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind | - +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - fixed_group_delay_across_ports = _attributes.AttributeViStringCommaSeparated(1150324) - '''Type: list of str - - Specifies a comma-separated list of ports for which to fix the group delay. - - **Valid Values**: - - PXIe-5831/5832: rf<0-1>/port, where 0-1 indicates one (0) or two (1) mmRH-5582 connections and x is the port number on the mmRH-5582 front panel. - - **Default Value**: - - PXIe-5831/5832: (empty string), which specifies that the group delay will not be fixed for any port. - - **Supported Devices**: PXIe-5831/5832 - ''' - fpga_bitfile_path = _attributes.AttributeViString(1150221) - '''Type: str - - Returns a string containing the path to the location of the current NI-RFSA instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. - - You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the __init__ method. - - NI-RFSA instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the device FPGA while maintaining the functionality of the NI-RFSA instrument driver. - - Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about using NI-RFSA instrument driver FPGA extensions for NI devices. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fpga_target_name = _attributes.AttributeViString(1150233) - '''Type: str - - Returns a string containing the name of the FPGA target being used. - - This name can be used with the RIO open session to open a reference to the FPGA. - - This property is channel dependent if multiple targets are supported. - - **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fpga_temperature = _attributes.AttributeViReal64(1150254) - '''Type: float - - Returns the current temperature, in degrees Celsius, of the FPGA. - - ---- - **Note** - If you query this property during RF list mode, list steps may take longer to complete during list execution. - - ---- - - **Units**: degrees Celcius - - **Default Value**: N/A - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - frequency_settling = _attributes.AttributeViReal64(1150088) - '''Type: float - - Specifies the value used for local oscillator (LO) frequency settling. - - The units and interpretation for this scalar value are specified using the frequency_settling_units property. This property is not supported if you are using an external LO. - - The valid values for this property depend on the frequency_settling_units property. - - **Notes:** - 1. If the frequency settling units property is set to FrequencySettlingUnits.SECONDS_AFTER_LOCK and the downconverter loop bandwidth property is set to narrow, NI recommends a minimum settling time of 128 microseconds to ensure that the phase-locked loop (PLL) lock stabilizes. If the downconverter loop bandwidth is set to wide, NI recommends a minimum settling time of 16 microseconds. - 2. When in RF list mode, the valid values for FrequencySettlingUnits.SECONDS_AFTER_IO are 0 microseconds to 50 milliseconds. - 3. The valid values for this configuration depend on the module used as the LO source. Refer to the lo source property for more information. - - **Default Value**: 0.1 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 - - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | Device | FrequencySettlingUnits.SECONDS_AFTER_LOCK | FrequencySettlingUnits.SECONDS_AFTER_IO | %enum_value{frequency settling units.fsu ppm} | - +================================================================+===========================================================================================+============================================================================+===============================================+ - | PXIe-5663/5663E | 2 microseconds1 to 80 milliseconds, resolution of approximately 2 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5665/5667/5668 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01, 0.001 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5644/5645/5646 | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1.0, 0.1, 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5830/5831/5832/5840/5841/5842 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5831/5832 with PXIe-5653 (using PXIe-3622 LO)3 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - | PXIe-5831/5832 with PXIe-5653 (using PXIe-5653 LO)3 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds, resolution of 1 microsecond | 1.0 to 0.01 | - +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ - ''' - frequency_settling_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FrequencySettlingUnits, 1150087) - '''Type: enums.FrequencySettlingUnits - - Specifies the delay duration units and interpretation for LO settling. - - Specify the actual settling value using the frequency_settling property. This property is not supported if you are using an external LO. - - **Default Value**: FrequencySettlingUnits.PPM - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------------------------------------------+-------------------------------------------------------------------+ - | Name | Description | - +===========================================+===================================================================+ - | FrequencySettlingUnits.PPM | Specifies the frequency settling time in parts per million (PPM). | - +-------------------------------------------+-------------------------------------------------------------------+ - | FrequencySettlingUnits.SECONDS_AFTER_LOCK | Specifies the frequency settling in time after lock (seconds). | - +-------------------------------------------+-------------------------------------------------------------------+ - | FrequencySettlingUnits.SECONDS_AFTER_IO | Specifies the frequency settling time after I/O (seconds). | - +-------------------------------------------+-------------------------------------------------------------------+ - ''' - group_capabilities = _attributes.AttributeViStringCommaSeparated(1050401) - '''Type: list of str - - Returns a list of class-extension groups that NI-RFSA implements. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - host_dma_buffer_size = _attributes.AttributeViInt64(1150285) - '''Type: int - - Specifies the size of the DMA buffer in computer memory, in bytes. - - To set this property, the NI-RFSA device must be in the Configuration state. - - A sufficiently large host DMA buffer improves performance by allowing large fetches to be transferred more efficiently. - - **Default Value:** 8 MB - - **Supported Devices**: PXI-5820/5830/5831/5840/5841/5842/5860 - ''' - if_attenuation = _attributes.AttributeViReal64(1150074) - '''Type: float - - Configures the device attenuation to a value that has the actual calibrated IF attenuation closest to the desired value. - - **Valid Values**: 0 to 30 - - **Default Value**: N/A - - **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5663/5663E/5665/5667, PXIe-5693 - ''' - if_filter_bandwidth = _attributes.AttributeViReal64(1150205) - '''Type: float - - Specifies the IF filter path bandwidth for your device configuration. - - ---- - **Note** - For composite devices, such as the PXIe-5665/5667/5668, the IF filter path bandwidth includes all IF filters across the component modules of a composite device. - - ---- - - NI-RFSA uses this property in conjunction with the device_instantaneous_bandwidth property and the digital_if_equalization_enabled property to determine the settings for your measurement. NI-RFSA selects the next highest available filter based on the value you specify. The following table lists the IF filters available for NI devices. You may specify a higher value than your device instantaneous bandwidth if your measurement requires it, but specifying a lower value returns an error. - - **Valid Values**: - - **PXIe-5603/5605**: 0 to 80 MHz - - **PXIe-5665/5667**: 0 to 50 MHz - - **PXIe-5668**: 0 to 765 MHz - - **PXIe-5694**: 0 to 50 MHz - - ---- - **Note** - To set this property to values greater than 20 MHz, you must set the signal_conditioning_enabled property to SignalConditioningEnabled.BYPASSED - - ---- - - **Default Values:** For spectrum acquisition types the default is greater than or equal to the spectrum_span property. NI-RFSA chooses the default value of the if_filter_bandwidth property to correspond to the appropriate IF filter. For I/Q acquisition types NI-RFSA chooses the default value corresponding to the widest IF filter possible for your equipment setup. - - **Supported Devices**: PXIe-5603/5605/5606, PXIe-5665/5667/5668, PXIe-5694 - - +--------------------------+---------------------------+-------------------+ - | Device | IF Filter Bandwidth Range | IF Filter | - +==========================+===========================+===================+ - | PXIe-5603/5665 (3.6 GHz) | 2264300 kHz | 300 kHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (3.6 GHz) | >300 kHz and 22645 MHz | Through IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (3.6 GHz) | >5 MHz | Through IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5605/5665 (14 GHz) | 2264300 kHz | 300 kHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (14 GHz) | >300 kHz and 22645 MHz | 5 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5603/5665 (14 GHz) | >5 MHz | Through IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | 2264300 kHz | 300 kHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >300 kHz and 22645 MHz | 5 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >5 MHz and 2264100 MHz | 100 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >100 MHz and 2264320 MHz | 320 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - | PXIe-5668 | >320 MHz | 765 MHz IF filter | - +--------------------------+---------------------------+-------------------+ - ''' - if_output_frequency = _attributes.AttributeViReal64(1150086) - '''Type: float - - Returns the center frequency of the IF output signal that corresponds to the configured RF center frequency. - - The downconverter translates the RF input frequency to the IF output frequency by mixing it with the LO signal. The nominal values for the IF output frequency are shown in the following table. - - The coarse nature of the LO settings can cause the downconverter to be unable to tune to the exact LO frequency that would produce the nominal IF output frequency. Any coercion in the actual LO frequency results in the IF output frequency being slightly off from the nominal value. - - Additionally, if you use the downconverter_center_frequency and lo_frequency properties to program the downconverter, the IF output frequency could vary from the nominal value. NI-RFSA adjusts the acquired spectrum or I/Q data for the difference between nominal and actual IF output frequency. If you use an external digitizer with a RF downconverter, use this property to specify the actual IF output frequency. - - **Default Value**: N/A - - **Supported Devices**:PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694 - - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Downconverter | Nominal IF Output Frequency | - +===============+============================================================================================================================================================================================================================================================================================================+ - | PXI-5600 | 15 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5601 | 53 MHz or 187.5 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5603 | 187.5 MHz or 199 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5605 | 187.5 MHz, 190 MHz, or 199 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5606 | 187.5 MHz, 190 MHz, 199 MHz, 507.5 MHz, or 730 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5694 | - signal_conditioning_enabled set to SIGNAL_CONDITIONING_ENABLED and if_conditioning_down_conversion_enabled set to disabled: 193.6 MHz
- if_conditioning_down_conversion_enabled set to enabled: 21.4 MHz
- signal_conditioning_enabled set to SIGNAL_CONDITIONING_BYPASSED: 162.5 MHz to 212.5 MHz | - +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - if_output_power_level = _attributes.AttributeViReal64(1150130) - '''Type: float - - Specifies the level of the IF signal leaving the system, in dBm. - - Use this property to increase or decrease the nominal IF signal output level to achieve better measurement results. - - If you set the if_output_power_level and if_output_power_level_offset properties at the same time, NI-RFSA returns an error. - - ---- - **Note** - If you set the if_output_power_level property to a value less than 201310 dBm, the IF output power level may be higher than the value you request. Read the value of this property to determine the configured IF output power level. - - ---- - - ---- - **Note** - The value of this property is limited by the amount of IF attenuation that the downconverter can apply, the reference_level property, the downconverter_center_frequency property, and the center_frequency property or iq_carrier_frequency property, depending on your acquisition type. - - ---- - - **Units**: dBm - - **Default Value**: - - **PXIe-5667**: -2 dBm - - **PXIe-5668**: -1 dBm - - **All other devices**: dBm - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694 - ''' - if_output_power_level_offset = _attributes.AttributeViReal64(1150131) - '''Type: float - - Specifies the number of dB by which to adjust the default IF output power level. - - This property does not depend on absolute IF output power levels, so you can use it to adjust the IF output power level on all NI-RFSA devices without knowing the exact default value. Use this property to increase or decrease the nominal output level to achieve better measurement results. The default value for the offset is 0 dB. - - If you set the if_output_power_level and if_output_power_level_offset properties at the same time, NI-RFSA returns an error. - - **Units**: dB - - **Default Value**: 0 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 - ''' - input_isolation_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InputIsolationEnabled, 1150170) - '''Type: enums.InputIsolationEnabled - - Specifies whether input isolation is enabled. - - Enabling this property isolates the input signal at the RF IN connector on the RF downconverter from the rest of the RF downconverter signal path. Disabling this property reintegrates the input signal into the RF downconverter signal path. - - ---- - **Note** - If you enable input isolation for your device, the device impedance is changed from the characteristic 50 impedance. A change in the device impedance may also cause a VSWR value higher than the device specifications. - - ---- - - For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. - - **Default Value**: InputIsolationEnabled.DISABLED, if the device configuration is supported. - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 - - **Defined Values**: - - +--------------------------------+---------------------------+ - | Name | Description | - +================================+===========================+ - | InputIsolationEnabled.DISABLED | Disables input isolation. | - +--------------------------------+---------------------------+ - | InputIsolationEnabled.ENABLED | Enables input isolation. | - +--------------------------------+---------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - input_port = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InputPort, 1150180) - '''Type: enums.InputPort - - Specifies the connector(s) to use to acquire the signal. - - To set this property, the NI-RFSA device must be in the Configuration state. - - **Default Values**: - - **PXIe-5820**: InputPort.IQ_IN - - **All other devices**: InputPort.RF_IN - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------+---------------------------------------------------------------------------------+ - | Name | Description | - +==================+=================================================================================+ - | InputPort.RF_IN | Enables the RF IN port. | - +------------------+---------------------------------------------------------------------------------+ - | InputPort.IQ_IN | Enables the I/Q IN port. | - +------------------+---------------------------------------------------------------------------------+ - | InputPort.CAL_IN | Enables the CAL IN port. | - +------------------+---------------------------------------------------------------------------------+ - | InputPort.I_ONLY | Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. | - +------------------+---------------------------------------------------------------------------------+ - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - Returns a string that contains the firmware revision information for the NI-RFSA downconverter for the composite device you are currently using. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - ---- - **Note** - PXIe-5820/5830/5831/5832/5840/5841/5842/5860 devices will return "No revision information available." To retrieve the firmware revision, use MAX, Hardware Configuration Utility, or NI System Configuration API. - - ---- - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - Returns a string that contains the name of the manufacturer for the NI-RFSA device you are currently using. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - Returns a string that contains the model number or name of the NI-RFSA device that you are currently using. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Indicates the resource name NI-RFSA uses to identify the physical device. - - If you initialize NI-RFSA with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. - - If you initialize NI-RFSA with the resource name, this property contains that value. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - iq_carrier_frequency = _attributes.AttributeViReal64(1150059) - '''Type: float - - Specifies the expected carrier frequency of the incoming signal for demodulation. - - The NI-RFSA device tunes to this frequency. NI-RFSA may coerce this value based on hardware settings and the RF downconverter specifications. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - ---- - - **Units**: hertz (Hz) - - **Default Values**: - - **PXIe-5644/5645/5646, PXIe-5840/5841/5860, PXIe-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options)**: 1 GHz - - **PXIe-5842 (4 GHz bandwidth option) using the Standard personality**: 1 GHz - - **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 6.5 GHz - - **PXIe-5820**: 0 Hz - - **PXIe-5830/5831/5832**: 6.5 GHz - - **All other devices**: 100 MHz - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Carrier Wave `_ - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureIqCarrierFrequency - ''' - iq_in_port_carrier_frequency = _attributes.AttributeViReal64(1150181) - '''Type: float - - Configures the frequency of the signal. - - The onboard signal processing (OSP) frequency shifts the signal at this frequency to baseband prior to acquiring it. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the RF ports. - - ---- - - **Valid Values**: - - **PXIe-5645**: -60 MHz to +60 MHz - - **PXIe-5820**: -500 MHz to +500 MHz - - **Default Value**: 0 - - **Supported Devices**: PXIe-5645, PXIe-5820 - ''' - iq_in_port_temperature = _attributes.AttributeViReal64(1150204) - '''Type: float - - Returns the temperature of the I/Q IN circuitry on the device. - - **Units:** degrees C - - **Supported Devices:** PXIe-5645, PXIe-5820 - ''' - iq_in_port_terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IqInPortTerminalConfiguration, 1150182) - '''Type: enums.IqInPortTerminalConfiguration - - Configures the terminal configuration of the I/Q port. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the RF ports. - - ---- - - **PXIe-5820**: The only valid value for this property is IqInPortTerminalConfiguration.DIFFERENTIAL. - - **Default Value**: IqInPortTerminalConfiguration.DIFFERENTIAL - - **Supported Devices:** PXIe-5645, PXIe-5820 - - **Defined Values**: - - +--------------------------------------------+--------------------------------------------------+ - | Name | Description | - +============================================+==================================================+ - | IqInPortTerminalConfiguration.DIFFERENTIAL | Sets the terminal configuration to differential. | - +--------------------------------------------+--------------------------------------------------+ - | IqInPortTerminalConfiguration.SINGLE_ENDED | Sets the terminal configuration to single-ended. | - +--------------------------------------------+--------------------------------------------------+ - ''' - iq_in_port_vertical_range = _attributes.AttributeViReal64(1150183) - '''Type: float - - Specifies the voltage range for the I/Q terminals. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - The voltage range in differential terminal configuration is configurable from 2 Vpk-pk to 0.032 Vpk-pk in 1 dB steps. In single-ended terminal configuration, valid ranges are half those for differential. Values are always coerced up to the next valid range. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the RF ports. - - ---- - - **Valid Values:** - - **PXIe-5645**: 0 Vpk-pk to 2 Vpk-pk for differential terminal configuration, 0 Vpk-pk to 1 Vpk-pk for single-ended terminal configuration. - - **PXIe-5820**: 0 Vpk-pk to 4 Vpk-pk for differential terminal configuration. - - **Default Value**: 2 Vpk-pk - - **Supported Devices:** PXIe-5645, PXIe-5820 - ''' - iq_power_edge_ref_trigger_level = _attributes.AttributeViReal64(1150056) - '''Type: float - - Specifies the power level, in dBm, at which the device triggers. - - The device asserts the trigger when the signal crosses the level specified by the value of this property, taking into consideration the specified slope. If you are using external gain, refer to the external_gain property for more information about how this property affects the I/Q power edge trigger level. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - ConfigureIqPowerEdgeRefTrigger - ''' - iq_power_edge_ref_trigger_slope = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerIqPowerEdgeSlope, 1150057) - '''Type: enums.ReferenceTriggerIqPowerEdgeSlope - - Specifies whether the device asserts the trigger when the signal power is rising or falling. - - When you set the ref_trigger_type property to ReferenceTriggerType.IQ_POWER_EDGE, the device asserts the trigger when the signal power exceeds the specified level with the slope you specify. - - **Default Value**: ReferenceTriggerIqPowerEdgeSlope.RISING - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - ConfigureIqPowerEdgeRefTrigger - - **Defined Values**: - - +------------------------------------------+-------------------------------------------------------+ - | Name | Description | - +==========================================+=======================================================+ - | ReferenceTriggerIqPowerEdgeSlope.RISING | The trigger asserts when the signal power is rising. | - +------------------------------------------+-------------------------------------------------------+ - | ReferenceTriggerIqPowerEdgeSlope.FALLING | The trigger asserts when the signal power is falling. | - +------------------------------------------+-------------------------------------------------------+ - ''' - iq_power_edge_ref_trigger_source = _attributes.AttributeViString(1150055) - '''Type: str - - Specifies the channel from which the device monitors the trigger. - - NI-RFSA currently supports only 0 as the value of this property. - - **Default Value**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - ConfigureIqPowerEdgeRefTrigger - ''' - iq_rate = _attributes.AttributeViReal64(1150007) - '''Type: float - - Specifies the I/Q rate for the acquisition. - - The value is expressed in samples per second (S/s). - - Refer to the device_instantaneous_bandwidth property for more information about device specific instantaneous bandwidth limits. You can also refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth device specifications. - - ---- - **Note** - For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. At I/Q rates above 50 MS/s, the dither noise can affect phase coherency performance and leak into the lower frequencies and the upper frequencies of the IF passband. Refer to the digitizer_dither_enabled property for more information about dithering. - - For the PXIe-5663/5663E/5665/5667, when you set the digitizer_sample_clock_timebase_source property to NIRFSA_VAL_ONBOARD_CLOCK, the downconverter instantaneous bandwidth is greater than or equal to the coerced I/Q rate times 0.8. For the PXIe-5665, the actual signal bandwidth is further limited by the combination of the chosen IF filter and anti-aliasing filter. - - ---- - - **PXI-5661**: You should not need to configure an I/Q rate higher than 25 megasamples per second (MS/s) because the PXI-5600 RF downconverter bandwidth is 20 MHz. If you configure a higher I/Q rate, you may see aliasing effects at negative frequencies because the IF frequency of the PXI-5600 is 15 MHz. - - **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the I/Q carrier frequency you use. Refer to the `PXIe-5601 RF downconverter overview `_ for more information about instantaneous bandwidth. - - **PXIe-5665**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency if you have enabled the preselector (YIG-tuned filter). - - **PXIe-5667**: Your maximum allowed instantaneous bandwidth depends on the selected [RF preselector filter](RF_PRESELECTOR_FILTER.html) and whether the preselector on the [RF downconverter](PRESELECTOR_ENABLED.html) is enabled. - - **PXIe-5668**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use and whether or not you enable the highpass filter or preselector (YIG-tuned filter). - - **Units**: S/s - - **Default Values:** - - **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 5 GS/s only. - - **All Other Devices**: 1 MS/s - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureIqRate - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - lo2_export_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Lo2ExportEnabled, 1150235) - '''Type: enums.Lo2ExportEnabled - - Specifies whether to enable the LO2 OUT terminal on the installed devices. - - Set this property to TRUE to export the 4 GHz LO signal from the device LO2 IN terminal to the LO2 OUT terminal. - - You can also export the LO2 signal by setting the lo_export_enabled property and the digitizer_sample_clock_timebase_source property. - - | Value | Description | - |:------|:-------------------------------| - | True | Enables the LO2 OUT terminal. | - | False | Disables the LO2 OUT terminal. | - - **Default Value:** False - - **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5668 - - **Defined Values**: - - +---------------------------+----------------------+ - | Name | Description | - +===========================+======================+ - | Lo2ExportEnabled.DISABLED | Disables LO2 export. | - +---------------------------+----------------------+ - | Lo2ExportEnabled.ENABLED | Enables LO2 export. | - +---------------------------+----------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - load_configurations_from_file_reset_options = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoadConfigurationResetOptions, 1150337) - '''Type: enums.LoadConfigurationResetOptions - - Specifies the configurations to skip to reset while loading configurations from a file. - - **Default Value:** NIRFSA_VAL_SKIP_NONE - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------------------------------------------+--------------------------------------------------+ - | Name | Description | - +==================================================+==================================================+ - | LoadConfigurationResetOptions.NONE | NI-RFSA resets all configurations. | - +--------------------------------------------------+--------------------------------------------------+ - | LoadConfigurationResetOptions.DEEMBEDDING_TABLES | NI-RFSA skips resetting the de-embedding tables. | - +--------------------------------------------------+--------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - Contains the logical name you specified when opening the current IVI session. - - You may pass a logical name to the Init method or the __init__ method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - lo_export_enabled = _attributes.AttributeViBoolean(1150134) - '''Type: bool - - Specifies whether to enable the LO OUT terminals on the installed devices. - - **PXIe-5601**: The only valid value for this property is True. - - **PXIe-5603/5605/5606**: If you want to daisy-chain multiple devices together using the same LO source, set this property to TRUE to export the LO input signals on the LO1 IN, LO2 IN, and LO3 IN terminals to LO1 OUT, LO2 OUT, and LO3 OUT, respectively. - - **PXIe-5694**: You can enable this property only if you set the lo_source property to LoSource.LO_IN, or if you set the lo_source property to LoSource.ONBOARD and the IF_CONDITIONING_DOWN_CONVERSION_ENABLED property to NIRFSA_VAL_ENABLED. - - **PXIe-5830/5831**: To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_boolean method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). - - ---- - **Note** - If you are sharing an LO for the PXIe-5830/5831/5832 between an NI-RFSA and NI-RFSG session, ensure both sessions use the same shared setting. - - ---- - - **Defined Values:** - - | Value | Description | - |:---------|:-------------------------------| - | True | Enables the LO OUT terminals. | - | False | Disables the LO OUT terminals. | - - **Default Values**: - - **PXIe-5601, PXIe-5663/5663E**: True - - **PXIe-5603/5605/5606, PXIe-5644/5645/5646, PXIe-5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842**: False - - **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_export_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_export_enabled` - ''' - lo_frequency = _attributes.AttributeViReal64(1150068) - '''Type: float - - Specifies the LO signal frequency for the configured center frequency. - - If you are using the NI RF vector signal analyzer with an external LO, use this property to specify the LO frequency that the external LO source passes into the LO IN or LO1 IN connector on the RF downconverter front panel. If you are using an external LO, reading the value of this property after configuring the rest of the parameters returns the LO frequency needed by the device. - - Set this property to the actual LO frequency because NI-RFSA corrects for any difference between expected and actual LO frequencies. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Values**: - - **PXIe-5694**: 215 MHz - - **All other devices**: 0 - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Configuration `_ - - `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ - - `PXIe-5841 Frequency and Bandwidth Configuration `_ - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_frequency` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_frequency` - ''' - lo_frequency_step_size = _attributes.AttributeViReal64(1150188) - '''Type: float - - Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). - - You can only tune the LO frequency by multiples of the lo_frequency_step_size property. For the PXIe-5644/5645/5646 and PXIe-5840/5841, the LO frequency can therefore be offset from the requested center frequency by as much as half of the lo_frequency_step_size property. This offset is corrected by digitally frequency shifting the lo_frequency property to the value requested in either the iq_carrier_frequency property or the center_frequency property. - - ---- - **Note** - For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. - - ---- - - The valid values for this property depend on the lo_pll_fractional_mode_enabled property. - - **PXIe-5644/5645/5646**: If the lo_pll_fractional_mode_enabled property is set to NIRFSA_VAL_DISABLED, the specified value is coerced to the closest valid value. - - **PXIe-5840/5841/5842**: If the lo_pll_fractional_mode_enabled property is set to NIRFSA_VAL_DISABLED, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. - - * Values up to 100 MHz are coerced to 50 MHz. - - ---- - **Note** - The default value for the PXIe-5831 depends on the frequency range of the selected port for your instrument configuration. Refer to the `Instrument Configurations `_ topic for more information about available ports for your hardware configuration. - - ---- - - **Default Values:** - - **PXIe-5644/5645/5646:** 200 kHz - - **PXIe-5830:** 2 MHz - - **PXIe-5831/5832 (RF port):** 8 MHz - - **PXIe-5831/5832 (IF port):** 2 MHz, 4 MHz - - **PXIe-5840/5841:** - - - Fractional mode: 500 kHz - - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. - - **PXIe-5841 with PXIe-5655:** 500 kHz - - **PXIe-5842:** 1 Hz - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - +--------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ - | lo_pll_fractional_mode_enabled | PXIe-5644/5645 | PXIe-5646 | PXIe-5840/5841 | PXIe-5830/5831/5832 | PXIe-5841 w/PXIe-5655 | - +================================+=====================================+==============================+===============================================+============================================+=======================+ - | NIRFSA_VAL_ENABLED | 50 kHz to 24 MHz | 50 kHz to 25 MHz | 50 kHz to 100 MHz | LO1: 8 Hz to 400 MHz - LO2: 4 kHz to 400 MHz | 1 nHz to 50 MHz | - +--------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ - | NIRFSA_VAL_DISABLED | 4 MHz, 5 MHz, 6 MHz, 12 MHz, 24 MHz | 2 MHz, 5 MHz, 10 MHz, 25 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, 100 MHz | LO1: -- - LO2: -- | 1 nHz to 50 MHz | - +--------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - lo_injection_side = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoInjection, 1150069) - '''Type: enums.LoInjection - - Specifies the LO injection side. - - **PXIe-5601/5663/5663E**: For frequencies below 517.5 MHz or above 6.4125 GHz, the LO injection side is fixed and NI-RFSA returns an error if you specify the incorrect value. If you do not configure this property, NI-RFSA selects the default LO injection side based on the downconverter center frequency. Reset this property to return to automatic behavior. - - **PXIe-5603/5605/5665 (3.6 GHz)/5667 (3.6 GHz)**: Setting this property to LoInjection.LOW is not supported for this device. - - **PXIe-5605/5665 (14 GHz)/5667 (7 GHz)**: Setting this property to LoInjection.LOW is supported for this device for frequencies greater than 4 GHz, but this configuration is not calibrated, and device specifications are not guaranteed. - - **PXIe-5606/5668**: Setting this property to LoInjection.LOW is supported for certain frequencies in high band, varying by final IF frequency. This configuration is not calibrated and device specifications are not guaranteed. - - **Default Values**: - - **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies < 3.0 GHz)**: LoInjection.HIGH - - **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies 3.0 GHz)**: LoInjection.LOW - - **PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668**: LoInjection.HIGH - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 - - **Defined Values**: - - +------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==================+=====================================================================================================================================================================================================+ - | LoInjection.HIGH | Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. | - +------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | LoInjection.LOW | Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. | - +------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - lo_in_power = _attributes.AttributeViReal64(1150186) - '''Type: float - - Returns the power level, in dBm, expected at the LO IN terminal when the lo_source property is set to LoSource.LO_IN. - - ---- - **Note** - For the PXIe-5644/5645/5646, this property is always read-only. - - ---- - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - ''' - lo_out_export_configure_from_rfsg = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoOutExportConfigureFromRfsg, 1150299) - '''Type: enums.LoOutExportConfigureFromRfsg - - Specifies whether to allow NI-RFSG to control the NI-RFSA LO out export. - - Set this property to LoOutExportConfigureFromRfsg.ENABLED to allow NI-RFSG to control the LO out export. Use the NIRFSG ATTR RF IN LO EXPORT ENABLED property to control the NI-RFSA LO out export from NI-RFSG. - - **Default Value:** LoOutExportConfigureFromRfsg.DISABLED - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +---------------------------------------+----------------------------------------------------------------------+ - | Name | Description | - +=======================================+======================================================================+ - | LoOutExportConfigureFromRfsg.DISABLED | Do not allow NI-RFSG to control the NI-RFSA local oscillator export. | - +---------------------------------------+----------------------------------------------------------------------+ - | LoOutExportConfigureFromRfsg.ENABLED | Allow NI-RFSG to control the NI-RFSA local oscillator export. | - +---------------------------------------+----------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - lo_out_power = _attributes.AttributeViReal64(1150246) - '''Type: float - - Specifies the power level, in dBm, of the signal at the LO OUT terminal when the lo_export_enabled property is set to True. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Units:** dBm - - **Supported Devices:** PXIe-5830/5831/5832/5840/5841/5842 - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_out_power` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_out_power` - ''' - lo_pll_fractional_mode_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoPllFractionalModeEnabled, 1150187) - '''Type: enums.LoPllFractionalModeEnabled - - Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). - - Fractional mode gives a finer frequency step resolution, but it may result in non harmonic spurs. Refer to the device specifications for your device for more information about fractional mode and non harmonic spurs. - - ---- - **Note** - The lo_pll_fractional_mode_enabled property is applicable only when using the internal LO. - - ---- - - ---- - **Note** - For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. - - ---- - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value**: LoPllFractionalModeEnabled.ENABLED - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------------------------------------+------------------------------------------+ - | Name | Description | - +=====================================+==========================================+ - | LoPllFractionalModeEnabled.DISABLED | Disables fractional mode for the LO PLL. | - +-------------------------------------+------------------------------------------+ - | LoPllFractionalModeEnabled.ENABLED | Enables fractional mode for the LO PLL. | - +-------------------------------------+------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` - ''' - lo_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.LoSource, 1150162) - '''Type: enums.LoSource - - Specifies the LO signal source used to downconvert the RF input signal. - - If no signal downconversion is required, this property is ignored. If this property is set to "" (empty string), NI-RFSA uses the internal LO source. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). - - ---- - **Note** - For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to LoSource.LO_SOURCE_SG_SA_SHARED. - - ---- - - - - - **Default Value**: LoSource.ONBOARD ("Onboard") - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ - `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ - - **Defined Values**: - - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=================================+===================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | LoSource.ONBOARD | Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | LoSource.LO_IN | Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | LoSource.LO_SOURCE_SECONDARY | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | LoSource.LO_SOURCE_SG_SA_SHARED | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_source` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. - - Example: :py:attr:`my_session.lo_source` - ''' - lo_temperature = _attributes.AttributeViReal64(1150089) - '''Type: float - - Returns the current temperature, in degrees Celsius, of the LO module. - - **PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668** This property is not supported if you are using an external LO. - - **PXIe-5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5840/5841/5842 - ''' - lo_vco_frequency_step_size = _attributes.AttributeViReal64(1150312) - '''Type: float - - Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. - - ---- - **Note** - Do not set this property with the lo_frequency_step_size property. - - ---- - - **Valid Values**: - - LO1: 1 Hz to 50 MHz - - LO2: 1 Hz to 100 MHz - - **Default Values**: 1 MHz - - **Supported Devices**: PXIe-5830/5831/5832 - ''' - lo_yig_main_coil_drive = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoYigMainCoilDrive, 1150135) - '''Type: enums.LoYigMainCoilDrive - - Adjusts the dynamics of the current driving the YIG main coil. - - ---- - **Note** - Setting this property to LoYigMainCoilDrive.FAST allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. This property is not supported if you are using an external LO. - - ---- - - **Default Value**: LoYigMainCoilDrive.NORMAL - - **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 - - **Defined Values**: - - +---------------------------+------------------------------------------------------------------+ - | Name | Description | - +===========================+==================================================================+ - | LoYigMainCoilDrive.NORMAL | Adjusts the YIG main coil on the LO for an underdamped response. | - +---------------------------+------------------------------------------------------------------+ - | LoYigMainCoilDrive.FAST | Adjusts the YIG main coil on the LO for an overdamped response. | - +---------------------------+------------------------------------------------------------------+ - ''' - max_device_instantaneous_bandwidth = _attributes.AttributeViReal64(1150236) - '''Type: float - - Returns the maximum instantaneous bandwidth of the device. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - max_iq_rate = _attributes.AttributeViReal64(1150237) - '''Type: float - - Returns the maximum I/Q rate. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - mechanical_attenuation = _attributes.AttributeViReal64(1150128) - '''Type: float - - Specifies the level of mechanical attenuation for the RF path, in dB. - - **PXIe-5667**: This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. - - **PXIe-5668with PXIe-5698**: This property is read-only when the rf_preamp_enabled property is set to EnableRfPreamp.ENABLED. - - **Units**: dB - - **Valid Values:** - - **PXIe-5601/5663/5663E**: 0, 16 - - **PXIe-5603/5665 (3.6 GHz)**: 0, 10, 20, 30 - - **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 10, 20, 30 - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 0 - - **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 - - **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 0 - - **PXIe-5668 with PXIe-5698 with the** rf_preamp_enabled property set to EnableRfPreamp.ENABLED: 5 - - **Default Value**: N/A - - **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - memory_size = _attributes.AttributeViInt64(1150085) - '''Type: int - - Returns the digitizer onboard memory size, in bytes. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - minimum_acpr = _attributes.AttributeViReal64(1150142) - '''Type: float - - Specifies the minimum adjacent channel power ratio (ACPR), in dB, relative to the main channel reference level. - - This property configures NI-RFSA to optimize downconverter gain to measure a lower-power adjacent channel, adding gain only after filtering the main channel. The gain NI-RFSA applies is always less than or equal to the ACPR value you specify. - - ---- - **Note** - For the PXIe-5665 (3.6 GHz), this property is supported only if you set the device_instantaneous_bandwidth, spectrum_span, or if_filter_bandwidth property to a value less than 300 kHz. For the PXIe-5665 (14 GHz), this property is supported for device_instantaneous_bandwidth, spectrum_span, or if_filter_bandwidth property values less than 300 kHz by using the 300 kHz IF filter, and it is supported for values between 300 kHz and 5 MHz by using the 5 MHz IF filter. - - ---- - - ---- - **Note** - NI-RFSA coerces this property to zero for the PXI-5600, PXIe-5601 and the PXIe-5667. For all other devices, read the coerced value of this property to determine the actual amount of gain applied. - - ---- - - ---- - **Note** - For the PXIe-5668, this property alters the if_output_power_level property. This property will not affect the reference_level property. - - ---- - - **Default Value**: 0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - ''' - mixer_level = _attributes.AttributeViReal64(1150006) - '''Type: float - - Specifies the mixer level, in dBm. - - The mixer level represents the attenuation value to apply to the input RF signal as it reaches the first mixer in the signal chain. If you do not set this property, NI-RFSA automatically selects an optimal mixer level value based on the reference level. The valid values for this property depend on your device configuration. - - If you set the mixer_level and mixer_level_offset properties at the same time, NI-RFSA returns an error. - - **PXIe-5601/5663/5663E**: This property is read-only. - - **PXIe-5667**: This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. - - **Units**: dBm - - **Default Values**: - - **PXI-5600/5661**: -30 - - **PXIe-5603/5605/5665/5667/5668**: -10 - - **All other devices**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - mixer_level_offset = _attributes.AttributeViReal64(1150127) - '''Type: float - - Specifies the number of dB by which to adjust the device mixer level. - - The default value is 0, which specifies device settings that are the best compromise between distortion and noise. Specifying a positive value for this property configures the device for moderate distortion and low noise, and specifying a negative value results in low distortion and higher noise. - - You cannot set the mixer_level and mixer_level_offset properties at the same time. - - **PXIe-5667**: This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. - - **Units**: dB - - **Default Value**: 0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - module_power_consumption = _attributes.AttributeViReal64(1150255) - '''Type: float - - Returns the module power consumption. - - ---- - **Note** - If you query this property during RF list mode, list steps may take longer to complete during list execution. - - ---- - - **Units**: watts - - **Default Value**: N/A - - **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - module_revision = _attributes.AttributeViString(1150091) - '''Type: str - - Returns the revision of the RF downconverter module. - - ---- - **Note** - For the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5840/5841, this property returns the revision of the VST module. For the PXIe-5830/5831/5832, this property returns the revision of the PXIe-3621/3622 - - ---- - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - noise_source_power_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.NoiseSourcePowerEnabled, 1150222) - '''Type: enums.NoiseSourcePowerEnabled - - Enables the 28 V DC source on the device front panel. - - **PXIe-5668 with PXIe-5698**: When this property is set to NoiseSourcePowerEnabled.ENABLED, the PXIe-5698 noise source is used instead of the PXIe-5668 noise source. - - **Units**: dB - - **Default Value**: NoiseSourcePowerEnabled.DISABLED - - **Supported Devices**: PXIe-5606, PXIe-5668, PXIe-5698 - - **Defined Values**: - - +----------------------------------+----------------------------------+ - | Name | Description | - +==================================+==================================+ - | NoiseSourcePowerEnabled.DISABLED | Disables the noise source power. | - +----------------------------------+----------------------------------+ - | NoiseSourcePowerEnabled.ENABLED | Enables the noise source power. | - +----------------------------------+----------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - number_of_records = _attributes.AttributeViInt64(1150011) - '''Type: int - - Specifies the number of records to acquire if the number_of_records_is_finite property is set to True. - - **Default Value**: 1 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureNumberOfRecords - ''' - number_of_records_is_finite = _attributes.AttributeViBoolean(1150010) - '''Type: bool - - Specifies whether the device stops after acquiring the specified number of records or acquires records continuously. - - **Defined Values**: - - | Value | Description | - |:---------|:--------------------------------------------------------------| - | True | Acquire a finite number of records. | - | False | Acquire records continuously until you abort the acquisition. | - - **Default Value**: True - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureNumberOfRecords - ''' - number_of_samples = _attributes.AttributeViInt64(1150009) - '''Type: int - - Specifies the number of samples to acquire. - - This property is valid only if the number_of_samples_is_finite property is set to True. - - **Default Value**: 1,000 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureNumberOfSamples - ''' - number_of_samples_is_finite = _attributes.AttributeViBoolean(1150008) - '''Type: bool - - Specifies whether the device acquires a finite number of samples or acquires continuously. - - **Defined Values**: - - | Value | Description | - |:---------|:------------------------------------------------------| - | True | Acquire a finite number of samples. | - | False | Acquire continuously until you abort the acquisition. | - - **Default Value**: True - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `I/Q Modulation `_ - - **High-Level Methods**: - - - ConfigureNumberOfSamples - ''' - number_of_spectral_lines = _attributes.AttributeViInt32(1150018) - '''Type: int - - Specifies the number of spectral lines expected with the current power spectrum configuration. - - If you do not configure this property, NI-RFSA selects an appropriate value based on the resolution_bandwidth property. If you configure this property, NI-RFSA coerces the resolution_bandwidth value based on the number of spectral lines requested and the value of the spectrum_span property. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - osp_data_scaling_factor = _attributes.AttributeViReal64(1150151) - '''Type: float - - Specifies the scaling factor applied to the time-domain voltage data in the IF digitizer. - - Use this property to maximize the dynamic range of the digitizer by increasing the maximum IF power the digitizer can measure without creating OSP overflows. - - Because of the device amplitude response, some wide-band signals normally attenuated by the downconverter go through the IF digitizer without causing an ADC overflow. During IF equalization, these wide-band digitizer input signals may become amplified. These amplified input signal values overflow the available numeric range used in the signal processing algorithm. - - You can use this property when OSP calculations would generate an overflow while applying digital filters to the data. The OSP module in the digitizer multiplies the time-domain signal amplitude, in volts, by the specified property value before further onboard processing. Set this property to a value less than 1 to avoid OSP overflow for near full-scale IF signals and to use the maximum dynamic range of the digitizer. NI-RFSA compensates for the specified OSP data scaling factor to ensure that the correct scaled data, in absolute levels, is always returned regardless of the value of this property. - - **Valid Values:**: 0.25 to 1.0 - - **Default Values:** - - **PXI-5661, PXIe-5663/5663E/5665 (3.6 GHz)/5667 (3.6 GHz)/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: 1.0 - - **PXIe-5665 (14 GHz)/5667 (7 GHz)**: 0.8 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - overflow_error_reporting = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OverflowErrorReporting, 1150271) - '''Type: enums.OverflowErrorReporting - - Configures error reporting for ADC and onboard signal processing overflows. - - Overflows lead to clipping of the waveform. - - **Default Value**: OverflowErrorReporting.WARNING - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------+--------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=================================+========================================================================================================+ - | OverflowErrorReporting.WARNING | Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. | - +---------------------------------+--------------------------------------------------------------------------------------------------------+ - | OverflowErrorReporting.DISABLED | Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. | - +---------------------------------+--------------------------------------------------------------------------------------------------------+ - ''' - phase_offset = _attributes.AttributeViReal64(1150106) - '''Type: float - - Specifies the offset to apply to the initial I and Q phases. - - **Valid Values**: 0 to 180 - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 - ''' - power_spectrum_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerSpectrumUnits, 1150012) - '''Type: enums.PowerSpectrumUnits - - Specifies the units of the power spectrum. - - **Default Value**: PowerSpectrumUnits.DBM - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------+---------------------------------------------+ - | Name | Description | - +==================================+=============================================+ - | PowerSpectrumUnits.DBM | Units are dB with reference to 1 milliwatt. | - +----------------------------------+---------------------------------------------+ - | PowerSpectrumUnits.VOLTS_SQUARED | Units are in volts squared. | - +----------------------------------+---------------------------------------------+ - | PowerSpectrumUnits.DBMV | Units are dB with reference to 1 millivolt. | - +----------------------------------+---------------------------------------------+ - | PowerSpectrumUnits.DBUV | Units are dB with reference to 1 microvolt. | - +----------------------------------+---------------------------------------------+ - | PowerSpectrumUnits.VOLTS | Units are in volts. | - +----------------------------------+---------------------------------------------+ - | PowerSpectrumUnits.WATTS | Units are in watts. | - +----------------------------------+---------------------------------------------+ - ''' - preselector_present = _attributes.AttributeViBoolean(1150136) - '''Type: bool - - Returns whether a preselector is available on the RF downconverter module. - - **Defined Values**: - - | Value | Description | - |:---------|:--------------------------------------------------| - | True | A preselector is available on the downconverter. | - | False | No preselector is available on the downconverter. | - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 - ''' - ready_for_advance_event_terminal_name = _attributes.AttributeViString(1150118) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForAdvanceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerNameReadyForAdvanceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - ready_for_ref_event_terminal_name = _attributes.AttributeViString(1150119) - '''Type: str - - Returns the fully qualified signal name as a string. - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForReferenceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/ReadyForReferenceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - ready_for_start_event_terminal_name = _attributes.AttributeViString(1150117) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForStartEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/ReadyForStartEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - records_done = _attributes.AttributeViInt64(1150047) - '''Type: int - - Returns the number of records the RF vector signal analyzer has acquired. - - **Default Value**: N/A - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - reference_level = _attributes.AttributeViReal64(1150004) - '''Type: float - - Specifies the reference level, in dBm. - - The reference level represents the maximum expected power of an RF input signal. - - ---- - **Note** - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - ---- - - Refer to the external_gain property for more information about how configuring an external gain and a reference level affect attenuation. - - **Default Value**: 0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Improving Your Measurements `_ - - `Programming Attenuation-Related Properties and Properties Using NI-RFSA `_ - - **High-Level Methods**: - - - ConfigureReferenceLevel - ''' - reference_level_headroom = _attributes.AttributeViReal64(1150309) - '''Type: float - - Specifies the margin NI-RFSA adds to the reference_level property. - - The margin helps to avoid clipping and overflow warnings if the input signal exceeds the configured reference level. - - NI-RFSA configures the input gain to avoid clipping and associated overflow warnings as long as the instantaneous power of the input signal remains within the reference level plus the reference level headroom. If you know the input power of the signal precisely or have already included margin in the reference level, you may be able to improve the signal-to-noise ratio by reducing the reference level headroom. - - **Units**: dB - - **Default Value**: - - **PXIe-5830/5831/5832/5841/5842/5860**: 1 dB - - **PXIe-5840**: 0 dB - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - ''' - ref_clock_rate = _attributes.AttributeViReal64(1150020) - '''Type: float - - Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. - - This property is only valid when the ref_clock_source property is set to NIRFSA_VAL_CLK_IN, NIRFSA_VAL_REF_IN, or ReferenceClockSource.REF_IN_2. - - **Valid Values**: - - **PXIe-5644/5645/5646, PXIe-5601/5663/5663E, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841**: 10 MHz - - **PXIe-5603/5605/5665/5667/5668**: 5 MHz to 100 MHz, in increments of 1 MHz - - **PXIe-5841 with PXIe-5655, PXIe-5842**: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz *y*, where *y* is 4, 8, 16, 24, 25, or 32. - - **PXIe-5860**: 10 MHz, 100 MHz - - **Default Value**: 10 MHz - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - configure_ref_clock - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - ref_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockSource, 1150019) - '''Type: enums.ReferenceClockSource - - Specifies the Reference Clock source. - - ---- - **Note** - For the PXIe-5694, if your application requires an external LO source, set this property to ReferenceClockSource.NONE. - - ---- - - **Default Values**: - - **PXIe-5694**: ReferenceClockSource.REF_IN - - **All other devices**: ReferenceClockSource.ONBOARD_CLOCK - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - configure_ref_clock - - **Defined Values**: - - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=====================================+===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | ReferenceClockSource.NONE | No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockSource.ONBOARD_CLOCK | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockSource.REF_IN | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockSource.PXI_CLK | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockSource.CLK_IN | **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the ref_clock_rate property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the ref_clock_rate property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockSource.PXI_CLK_MASTER | **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceClockSource.REF_IN_2 | **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. | - +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - ref_to_ref_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150034) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the minimum time, in seconds, that must elapse between Reference Triggers of two records. - - The device does not recognize the Reference Trigger of the next record before this minimum time elapses. - - **Units:**: seconds - - **Default Value**: 0 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - ref_trigger_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150060) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the trigger delay time, in seconds. - - The trigger delay time is the length of time the IF digitizer waits after it receives the trigger before it asserts the Reference Event. - - **Units:**: seconds - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - ref_trigger_minimum_quiet_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150058) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies a time duration, in seconds, for which the signal must be quiet before the device arms the trigger. - - The signal is quiet when it is below the trigger level if the trigger slope, specified by the iq_power_edge_ref_trigger_slope property, is set to ReferenceTriggerIqPowerEdgeSlope.RISING or when it is above the trigger level if the trigger slope is set to ReferenceTriggerIqPowerEdgeSlope.FALLING. - - By default, this value is set to 0, which means the device does not wait for a quiet time before arming the trigger. This property is useful to trigger the acquisition on signals containing repeated bursts, but for which each burst may have large changes in signal power within itself. By configuring the minimum quiet time to the time between bursts, you can ensure that the trigger occurs at the beginning of a burst rather than at the signal power change within a burst. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - ref_trigger_osp_delay_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerOspDelayEnabled, 1150196) - '''Type: enums.ReferenceTriggerOspDelayEnabled - - Specifies whether the digitizer OSP block delays Reference Triggers, along with the data samples, moving through the OSP block or if the Reference Triggers bypass the OSP block and are processed immediately. - - Enabling this property requires the following equipment configurations: - - - All digitizers being used must be the same model and hardware revision. - - All digitizers must use the same firmware. - - All digitizers must be configured with the same I/Q rate. - - All devices must use the same signal path. - - **PXIe-5663/5663E**: Read the value of the IF_FILTER property to determine the IF filters used by the PXIe-5663/5663E. - - **PXIe-5665/5667/5668**:Refer to the device-specific information in the device_instantaneous_bandwidth property to determine the IF filters used by the PXIe-5665/5667/5668. If you set the fft_width property, refer to the device-specific information for this property and the device_instantaneous_bandwidth property to determine the IF filters used. For frequencies less than 3.6 GHz, set the rf_preamp_enabled to the same value for all devices. - - **PXIe-5665 14 GHz**: Set the downconverter_preselector_enabled to the same value for all devices. - - If the I/Q rate is set programmatically for I/Q acquisitions, the following properties should be identical for the best device synchronization: - - - digital_if_equalization_enabled - - spectrum_osp_sampling_ratio - - For spectrum acquisitions, the following properties should be identical for the best device synchronization: - - - spectrum_span - - resolution_bandwidth_type - - digital_if_equalization_enabled - - spectrum_osp_sampling_ratio - - For more information about the digitizer OSP block and Reference Triggers, refer to the following topics in the *NI High-Speed Digitizers Help*: - - - NI 5622 Onboard Signal Processing (OSP) - - NI 5142 Onboard Signal Processing (OSP) - - NI PXIe-5622 Trigger Sources - - NI PXI-5142 Trigger Sources - - NI PXIe-5622 Block Diagram - - NI PXI-5142 Trigger Sources - - **Default Value**: ReferenceTriggerOspDelayEnabled.ENABLED - - **Supported Devices**:PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 - - **Defined Values**: - - +------------------------------------------+-----------------------------------------------+ - | Name | Description | - +==========================================+===============================================+ - | ReferenceTriggerOspDelayEnabled.DISABLED | Disables OSP delay for the Reference Trigger. | - +------------------------------------------+-----------------------------------------------+ - | ReferenceTriggerOspDelayEnabled.ENABLED | Enables OSP delay for the Reference Trigger. | - +------------------------------------------+-----------------------------------------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - ref_trigger_pretrigger_samples = _attributes.AttributeViInt64(1150035) - '''Type: int - - Specifies the number of pretrigger samples the samples acquired before the Reference Trigger is received to be acquired per record. - - **Default Value**: 0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **High-Level Methods**: - - - configure_digital_edge_ref_trigger - - configure_software_edge_ref_trigger - - ConfigureIqPowerEdgeRefTrigger - ''' - ref_trigger_terminal_name = _attributes.AttributeViString(1150123) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/RefTrigger, where *BasebandModule* is the name of your baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/RefTrigger, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/RefTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/RefTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - get_terminal_name - ''' - ref_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerType, 1150028) - '''Type: enums.ReferenceTriggerType - - Specifies whether you want the Reference Trigger to be a digital edge, I/Q power edge, or software trigger. - - **Default Value**: ReferenceTriggerType.NONE - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=====================================+=================================================================================================================================================================================================================================+ - | ReferenceTriggerType.NONE | No Reference Trigger is configured. | - +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceTriggerType.DIGITAL_EDGE | The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_ref_trigger_source property. | - +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceTriggerType.IQ_POWER_EDGE | The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the iq_power_edge_ref_trigger_slope property. | - +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceTriggerType.SOFTWARE_EDGE | The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_REF_TRIGGER as the **trigger** parameter. | - +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ReferenceTriggerType.IQ_ANALOG_EDGE | The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE property. This value is valid only for PXIe-5644/5645 devices. | - +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - resolution_bandwidth = _attributes.AttributeViReal64(1150013) - '''Type: float - - Specifies the resolution along the x-axis of the spectrum. - - NI-RFSA uses the resolution bandwidth value to determine the acquisition size. If specified, the number_of_spectral_lines property value overrides this value. - - **Units**: hertz (Hz) - - **Default Value**: 100 kHz - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - ConfigureResolutionBandwidth - ''' - resolution_bandwidth_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SpectrumResolutionBandwidthType, 1150014) - '''Type: enums.SpectrumResolutionBandwidthType - - Specifies how the resolution_bandwidth property is expressed. - - **Default Value**: SpectrumResolutionBandwidthType.THREE_DECIBELS - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +============================================================+=============================================================================================================================================+ - | SpectrumResolutionBandwidthType.THREE_DECIBELS | Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the fft_window_type property. | - +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumResolutionBandwidthType.SIX_DECIBELS | Defines the RBW in terms of the 6 dB bandwidth of the window specified by the fft_window_type property. | - +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumResolutionBandwidthType.BIN_WIDTH | Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. | - +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumResolutionBandwidthType.EQUIVALENT_NOISE_BANDWIDTH | Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the fft_window_type property. | - +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - rf_attenuation_step_size = _attributes.AttributeViReal64(1150155) - '''Type: float - - Specifies the step size for the RF attenuation level. - - The actual RF attenuation is coerced up to the next highest multiple of this step size. You can also set this value to change the step size for the device within the supported device precision and configuration. - - **PXI-5600**: The device configuration supports only the following attenuation step size values: 10, 20, 30, 40, and 50. - - **PXIe-5601**: The attenuation is calculated based on the actual calibrated value closest to the desired value, so the step size varies as the actual gain values vary between consecutive attenuation settings. - - **PXIe-5603**: The device configuration supports attenuation changes in 1 dB steps. - - **PXIe-5605**: The available attenuation step size depends on the specified center frequency. In the high band signal path (input frequencies greater than 3.6 GHz), the only available attenuation is the step attenuator that you can change in 5 dB steps. In the low band signal path (input frequencies less than or equal to 3.6 GHz), an additional 31 dB of solid-state attenuation is available in 1 dB steps. The 5 dB default value indicates that, even when in the low band signal path, NI-RFSA changes the attenuation in 5 dB steps using only the mechanical attenuator. You can use this property to affect when the device changes the attenuation settings. To use the solid-state attenuation in the low band signal path, change the step size to a value other than a multiple of 5 (for example, a step size of 1 dB). If you use a value other than a multiple of 5 while in the high band of the PXIe-5605, NI-RFSA returns an error. - - **Units**: dB - - **Valid Values:** - - **PXI-5600/5661**: 10, 20, 30, 40, and 50 - - **PXIe-5601/5663/5663E**: 0.0 to 93.0, continuous - - **PXIe-5603/5665 (3.6 GHz)**: 1.0 to 74.0, in 1 dB steps - - **PXIe-5605/5665 (14 GHz) (low band), PXIe-5606/5668 (low band)**: 1.0 to 106.0, in 1 dB steps - - **PXIe-5605/5665 (14 GHz) (high band), PXIe-5606/5668 (high band)**: 5.0 to 75.0, in 5 dB steps - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 1.0 to 74.0, in 1 dB steps - - **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 - - **PXIe-5667 (7 GHz) using the PXIe-5693 preselector low frequency bypass path**: 1.0 to 106.0 in 1 dB steps - - **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 - - **Default Value:** - - **PXI-5600/5661**: 10.0 - - **PXIe-5601/5663/5663E**: 0.0 - - **PXIe-5603/5665 (3.6 GHz)**: 1.0 - - **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 5.0 - - **PXIe-5667**: 1.0 - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 - ''' - rf_high_pass_filtering = _attributes.AttributeViReal64(1150220) - '''Type: float - - Specifies the maximum corner frequency of the highpass filter in the RF signal path. - - The device uses the highest frequency highpass filter option below or equal to the value you specify and returns a coerced value. Specifying a value of 0 disables highpass filtering. - - For multispan acquisitions, the device uses the appropriate filter for each subspan during acquisition, depending on the details of your application and the value you specify. In multispan acquisition spectrum applications, this property returns the value you specified rather than a coerced value if multiple highpass filters are used during the acquisition. - - The PXIe-5606 features highpass filters at 1.35 GHz and 2.2 GHz. - - **Valid Values**: 0 to 26.5 - - **Default Value**: 0 - - **Supported Devices**: PXIe-5606, PXIe-5668 - ''' - rf_out_lo_export_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RfOutLoExport, 1150298) - '''Type: enums.RfOutLoExport - - Specifies whether to enable the RF OUT LO OUT terminal on the PXIe-5840/5841. - - When this property is enabled, if the lo_source property is set to LoSource.LO_IN and you do not set the lo_frequency or downconverter_center_frequency properties, NI-RFSA rounds the LO frequency to approximately an LO step size as if the source was LoSource.ONBOARD. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. - - **Default Value:**: RfOutLoExport.UNSPECIFIED - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +---------------------------+----------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +===========================+================================================================================================================+ - | RfOutLoExport.DISABLED | The LO signal is not exported from the RF OUT LO OUT terminal. | - +---------------------------+----------------------------------------------------------------------------------------------------------------+ - | RfOutLoExport.ENABLED | The LO signal is exported from the RF OUT LO OUT terminal. | - +---------------------------+----------------------------------------------------------------------------------------------------------------+ - | RfOutLoExport.UNSPECIFIED | The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. | - +---------------------------+----------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - rf_preamp_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EnableRfPreamp, 1150129) - '''Type: enums.EnableRfPreamp - - Specifies whether the RF preamplifier is enabled in the system. - - **PXIe-5667, PXIe-5644/5645/5646, PXIe-5830/5831/5840/5841/5842**: The EnableRfPreamp.AUTOMATIC value enables the RF preamplifier based on the value of the reference_level property and the center frequency. Except on the PXIe-5830/5831/5832, NI-RFSA coerces this property from EnableRfPreamp.AUTOMATIC to the selected value. - - ---- - **Note** - For the PXIe-5840/5841, the automatically selected value may not be optimal for all measurements. At some reference levels, EnableRfPreamp.ENABLED may improve the noise floor while EnableRfPreamp.DISABLED may improve distortion. - - ---- - - **PXIe-5667**: The EnableRfPreamp.AUTOMATIC value is supported only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to EnableRfPreamp.DISABLED. If the reference level is greater than -25 dBm, NI-RFSA disables the preamplifier. If the reference level is less than or equal to -25 dBm, NI-RFSA sets the rf_preamp_enabled property to EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH. - - **PXIe-5668 with PXIe-5698**: If you set this property to rf_preamp_enabled, only the preamplifier on the PXIe-5698 is used, and the preamplifier on the PXIe-5668 remains disabled. - - **Default Value**: - - **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842**: EnableRfPreamp.AUTOMATIC - - **All other devices**: EnableRfPreamp.DISABLED - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5698, PXIe-5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +============================================+========================================================================================================================================================================================================================================================================================================================================================+ - | EnableRfPreamp.DISABLED | Disables the RF preamplifier. | - +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH | Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the rf_preamp_present property to determine whether the downconverter has a preamplifier. | - +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | EnableRfPreamp.ENABLED | Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH value whenever possible to avoid an error. | - +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | EnableRfPreamp.AUTOMATIC | Automatically enables the RF preamplifier based on the value of the reference_level property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. | - +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - ''' - rf_preamp_present = _attributes.AttributeViBoolean(1150137) - '''Type: bool - - Returns whether an RF preamplifier is available on the RF downconverter module. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------+------------------------------------------------------+ - | Name | Description | - +=======+======================================================+ - | True | The device has an enabled RF preamplifier available. | - +-------+------------------------------------------------------+ - | False | The device has no RF preamplifier available. | - +-------+------------------------------------------------------+ - ''' - selected_path = _attributes.AttributeViString(1150331) - '''Type: str - - Specifies which path to configure to acquire a signal. - - **Default Value**: "" (empty string) - ''' - selected_ports = _attributes.AttributeViString(1150297) - '''Type: str - - Specifies the port to configure. - - ---- - **Note** - When using RF list mode, ports cannot be shared with NI-RFSA. - - ---- - - **Valid Values**: - - **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) - - **PXIe-5830**: if0, if1 - - **PXIe-5831/5832**: if0, if1, rf <0-1> port , where - - *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and - - *x* is the port number on the mmRH-5582 front panel. - - **Default Value:** - - **PXIe-5830/5831/5832:**: if1 - - **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - available_ports - ''' - serial_number = _attributes.AttributeViString(1150053) - '''Type: str - - Returns the serial number of the RF downconverter module. - - ---- - **Note** - For the PXIe-5644/5645/5646 and PXIe-5820/5840/5841, this property returns the serial number of the VST module. For the PXIe-5830/5831/5832, this property returns the serial number of the PXIe-3621/3622. - - ---- - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - signal_bandwidth = _attributes.AttributeViReal64(1150267) - '''Type: float - - Specifies the bandwidth of the input signal around the iq_carrier_frequency. - - This value must be less than or equal to (0.8 7 [I/Q rate](iq_rate.html)). - - NI-RFSA defines *signal bandwidth* as twice the maximum I/Q signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* < sub>max - *f*< sub>min. - - If you do not set this property, NI-RFSA uses the maximum available signal bandwidth. Depending on your device settings, setting this property enables certain optimizations. Based on the specified signal bandwidth, NI-RFSA decides the minimum equalized bandwidth and equalizer gain. - - ---- - **Note** - You must set this property to enable the downconverter_frequency_offset_mode property. - - ---- - - Ensure you set the signal bandwidth wide enough to encompass all significant anticipated input power. In cases where NI-RFSA optimizes the input gain based on the signal bandwidth, significant input power outside the signal bandwidth can lead to clipping and associated overflow warnings if you do not have enough margin in your [reference level.](reference_level.html) - - **Units**: Hz - - **Default Value**: 0 Hz - - **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - ''' - signal_conditioning_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SignalConditioningEnabled, 1150160) - '''Type: enums.SignalConditioningEnabled - - Specifies whether all signal conditioning is enabled on the PXIe-5694. - - ---- - **Note** - If you set this property to SignalConditioningEnabled.BYPASSED, NI-RFSA bypasses all signal conditioning, prevents any signal downconversion, and fixes the values for downconverter_gain property, the device_instantaneous_bandwidth property, and the if_filter_bandwidth property. - - ---- - - **Default Value**: SignalConditioningEnabled.ENABLED - - **Supported Devices**: PXIe-5694 - - **Defined Values**: - - +------------------------------------+-----------------------------------+ - | Name | Description | - +====================================+===================================+ - | SignalConditioningEnabled.ENABLED | Enables signal conditioning. | - +------------------------------------+-----------------------------------+ - | SignalConditioningEnabled.BYPASSED | Bypasses all signal conditioning. | - +------------------------------------+-----------------------------------+ - ''' - smooth_spectrum_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SmoothSpectrumEnabled, 1150219) - '''Type: enums.SmoothSpectrumEnabled - - Specifies that an optimized IF filtering selection is made at different spectrum frequency ranges during spectrum acquisition. - - The IF filter used depends on the configured RF center frequency, as shown in the following table. - - | Center Frequency | IF Filter | - |:--------------------|:----------| - | 0 Hz and <80 MHz | 300 kHz | - | 0 MHz | 50 MHz | - - ---- - **Note** - Setting this property to **Enabled** prevents you from setting if_filter_bandwidth or device_instantaneous_bandwidth. - - ---- - - **Default Value**: SmoothSpectrumEnabled.DISABLED - - **Supported Devices**: PXIe-5665/5668 - - **Defined Values**: - - +--------------------------------+------------------------------+ - | Name | Description | - +================================+==============================+ - | SmoothSpectrumEnabled.DISABLED | Disables spectrum smoothing. | - +--------------------------------+------------------------------+ - | SmoothSpectrumEnabled.ENABLED | Enables spectrum smoothing. | - +--------------------------------+------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - spectrum_averaging_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SpectrumAveragingMode, 1150016) - '''Type: enums.SpectrumAveragingMode - - Specifies the averaging mode for the spectrum acquisition. - - **Default Value**: SpectrumAveragingMode.NO - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +=================================+=======================================================================================================================================================================================================================================================================================================================================================================================================+ - | SpectrumAveragingMode.NO | Configures NI-RFSA to perform no averaging on acquisitions. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumAveragingMode.RMS | Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumAveragingMode.VECTOR | Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumAveragingMode.PEAK_HOLD | Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumAveragingMode.MIN_HOLD | Configures NI-RFSA to perform no averaging on acquisitions. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumAveragingMode.SCALAR | Configures NI-RFSA to perform no averaging on acquisitions. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | SpectrumAveragingMode.LOG | Configures NI-RFSA to perform no averaging on acquisitions. | - +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - spectrum_number_of_averages = _attributes.AttributeViInt32(1150015) - '''Type: int - - Specifies the number of acquisitions to average. - - The averaging process returns the final result after the number of averages is complete. - - **Default Value**: 10 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - spectrum_osp_sampling_ratio = _attributes.AttributeViReal64(1150144) - '''Type: float - - Specifies the oversampling ratio used by the digitizer onboard signal processing (OSP) when you are in spectrum acquisition mode. This property allows you to acquire a larger bandwidth in hardware and reduce that bandwidth in software, decreasing the possibility of hardware data path overflows. - - **PXIe-5644/5645/5646**: The only valid value for this property is 1. - - **Default Value**: 1.0 - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - spectrum_span = _attributes.AttributeViReal64(1150003) - '''Type: float - - Specifies the frequency range of the computed spectrum in hertz (Hz). - - For example, if you specify a center frequency of 1 GHz and a span of 100 MHz, the spectrum ranges from 950 MHz to 1,050 MHz after zoom processing. This value may be coerced based on hardware settings and RF downconverter specifications. - - NI-RFSA performs multispan acquisitions by dividing the total requested span into equally sized subspans based on the device instantaneous bandwidth at the range of frequencies you specify. NI-RFSA combines these subspans to yield a multispan acquisition. You can use the fft_width property to improve amplitude accuracy and avoid unwanted effects such as filter roll-off and spurs across the span you select. - - ---- - **Note** - If you configure the spectrum span to a value larger than the hardware instantaneous bandwidth, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. - - ---- - - ---- - **Note** - For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. The dither noise can appear in your passband and affect measurements. Refer to the digitizer_dither_enabled property for more information about dithering. - - ---- - - **PXIe-5663/5663E**: NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. - - **PXIe-5665 (14 GHz)/5667 (7 GHz)**: If you enable the downconverter preselector filter, the device instantaneous bandwidth is only a typical specification. - - **Default Value**: 10 MHz - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 - - **High-Level Methods**: - - - configure_spectrum_frequency - ''' - start_to_ref_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150033) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the minimum time, in seconds, that must elapse after the Start Trigger is received before the device recognizes a Reference Trigger. - - **Units:** seconds - - **Default Value**: 0 - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - start_trigger_terminal_name = _attributes.AttributeViString(1150122) - '''Type: str - - Returns the fully qualified signal name as a string. - - **Default Values**: - - **PXIe-5830/5831/5832**: /BasebandModule/ai/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. - - **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/StartTrigger, where *ModuleName* is the name of your device in MAX. - - **PXIe-5860**: /ModuleName/ai/ChannelNumber/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **All other devices**: /DigitizerName/StartTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerType, 1150024) - '''Type: enums.StartTriggerType - - Specifies whether you want the Start Trigger to be a digital edge or software trigger. - - ---- - **Note** - Set this property to StartTriggerType.NONE if you set the acquisition_type property to AcquisitionType.SPECTRUM or if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the [cviConfigureAcquisitionType](cviConfigureAcquisitionType.html) method. - - ---- - - **Default Value**: StartTriggerType.NONE - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - **Defined Values**: - - +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +================================+===========================================================================================================================================================================================================================================+ - | StartTriggerType.NONE | No Start Trigger is configured. | - +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | StartTriggerType.DIGITAL_EDGE | The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property. | - +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | StartTriggerType.SOFTWARE_EDGE | The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_START_TRIGGER as the value of the **trigger** parameter. | - +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - subspan_overlap = _attributes.AttributeViReal64(1150234) - '''Type: float - - Use subspan overlap process to eliminate or reduce analyzer spurs. - - To enable this feature, specify a non-zero percentage overlap between consecutive subspans in a spectrum acquisition. - - If a value greater than 0 is specified, then for each spectral line in the resulting spectrum, the driver acquires data twice with slightly different hardware settings, so that the analyzer spurs, if any, are present at different frequencies in the two acquisitions. Typically, LO frequency is shifted between the acquisitions causing analyzer spurs that are relative to the LO frequency, to move from one frequency to another. Those spurs, which are present in only one of the acquisitions for each spectral line, get removed. - - The subspan overlap feature will not remove any spurs from the Device Under Test or modify the signal being measured; unlike the analyzer spurs, the spurs in the signal being measured stay at a constant frequency in the two acquisitions. - - ---- - **Note** - Subspan overlap process effectively is performing minimum averaging, which might reduce the measured noise floor level. NI-RFSA Spectrum Averaging can be enabled to minimize the effect of subspan overlap on the noise floor. - - ---- - - ---- - **Note** - NI-RFSA may apply further shifts to the specified value to accommodate fixed-frequency edges of components such as preselectors. - - ---- - - **Valid Values**: - - **PXIe-5665/5668**: 0 to < 100 - - **PXIe-5820/5830/5831/5832/5840/5841/5860**: 0 - - **PXIe-5842**: 0, 50 - - **Default Value**: 0 - - **Supported Devices**: PXIe-5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - ---- - **Note** - Subspan overlap will not be supported by PXIe-5842, if RMM-5585 (54GHz Frequency Extension) is connected. - - ---- - ''' - supported_instrument_models = _attributes.AttributeViStringCommaSeparated(1050327) - '''Type: list of str - - Returns a comma-separated list of supported devices. - - **Default Value**: N/A - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - temperature_read_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1150061) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Indicates the minimum time between temperature sensor readings in seconds. - - When you call the read_power_spectrum method, the ReadIqSingleRecordComplexF64 method, or the _initiate method, NI-RFSA checks whether at least the amount of time specified by this property has elapsed before reading the hardware temperature. - - ---- - **Note** - NI-RFSA ignores this property if you call the perform_thermal_correction method or read the downconverter_gain property. - - ---- - - **Default Value**: 30 seconds - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - thermal_correction_headroom_range = _attributes.AttributeViReal64(1150316) - '''Type: float - - Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the device_temperature property. - - For example, if this property is set to 5.0, and the device is self-calibrated at 35 C, then you can expect to run the device from 30 C to 40 C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance and ADC or DSP overflows. - - **Units:** degrees Celsius (C) - - **Default Value**: - - **PXIe-5830/5831/5832/5842/5860**: 5 - - **PXIe-5840/5841**: 10 - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - ''' - thermal_correction_temperature_resolution = _attributes.AttributeViReal64(1150300) - '''Type: float - - Specifies the temperature change required before NI-RFSA recalculates the thermal correction settings when entering the Running state. - - **Units:** degrees Celsius (C) - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Default Values**: - - **PXIe-5830/5831/5832/5842/5860**: 0.2 - - **PXIe-5840/5841**: 1.0 - ''' - user_source_pulse_width = _attributes.AttributeViReal64(1150322) - '''Type: float - - Specifies the pulse width for the User Source. - - Use the user_source_pulse_width_units property to set the units for the pulse width. - - **Default Value**: 200E(-9) - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - user_source_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.UserSourcePulseWidthUnits, 1150321) - '''Type: enums.UserSourcePulseWidthUnits - - Specifies the pulse width units for the User Source. - - When the value is UserSourcePulseWidthUnits.SECONDS, it is assumed that the clock rate of the signal is the data clock. Use UserSourcePulseWidthUnits.CLOCK_PERIODS if the user source clock rate is anything else. - - **Default Value**: UserSourcePulseWidthUnits.SECONDS - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-----------------------------------------+--------------------------+ - | Name | Description | - +=========================================+==========================+ - | UserSourcePulseWidthUnits.SECONDS | Units are seconds. | - +-----------------------------------------+--------------------------+ - | UserSourcePulseWidthUnits.CLOCK_PERIODS | Units are clock periods. | - +-----------------------------------------+--------------------------+ - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.ports = _RepeatedCapabilities(self, '', repeated_capability_list) - self.los = _RepeatedCapabilities(self, 'LO', repeated_capability_list) - self.device_temperatures = _RepeatedCapabilities(self, '', repeated_capability_list) - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nirfsa', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def _configure_spectrum_frequency_center_span(self, center_frequency, span): - r'''_configure_spectrum_frequency_center_span - - Configures the span and center frequency of the spectrum read by NI-RFSA. - - A spectrum acquisition consists of data surrounding the center frequency. - - ---- - **Note** - If you configure the spectrum span to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. - - ---- - - ---- - **Note** - For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the bandwidths that correspond to each span are different (10 MHz and 20 MHz, respectively). - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._configure_spectrum_frequency_center_span` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._configure_spectrum_frequency_center_span` - - Args: - center_frequency (float): Specifies the center frequency in a spectrum acquisition. The value is expressed in hertz (Hz). The NI-RFSA device you use determines the valid range. Refer to your device specifications document for more information about frequency range. - - span (float): Specifies the span of a spectrum acquisition. The value is expressed in hertz (Hz). - - ---- - - *Note* For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. The dither noise can appear in your passband and affect your measurements. Refer to the digitizer_dither_enabled property for more information about dithering. - - ---- - - ''' - self._interpreter.configure_spectrum_frequency_center_span(self._repeated_capability, center_frequency, span) - - def configure_spectrum_frequency(self, center_frequency=None, span=None, start_frequency=None, stop_frequency=None): - '''configure_spectrum_frequency - - Configures the frequency range of a spectrum acquisition. - - You can specify the frequency range using either center frequency and span, or start and stop frequencies. - - ---- - **Note** - If you configure the spectrum span to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_spectrum_frequency` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.configure_spectrum_frequency` - - Args: - center_frequency (float): Specifies the center frequency in a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **span**. - - span (float): Specifies the span of a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **center_frequency**. - - start_frequency (float): Specifies the lower limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **stop_frequency**. - - stop_frequency (float): Specifies the upper limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **start_frequency**. - - ''' - if center_frequency is not None and span is not None: - self._configure_spectrum_frequency_center_span(center_frequency, span) - elif start_frequency is not None and stop_frequency is not None: - self._configure_spectrum_frequency_start_stop(start_frequency, stop_frequency) - else: - raise ValueError( - "Provide either (center_frequency & span) " - "or (start_frequency & stop_frequency)" - ) - - @ivi_synchronized - def _configure_spectrum_frequency_start_stop(self, start_frequency, stop_frequency): - r'''_configure_spectrum_frequency_start_stop - - Configures the start and stop frequencies of a spectrum read by NI-RFSA. - - ---- - **Note** - If you configure the spectrum span (**STOP_FREQUENCY** **START_FREQUENCY**) to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you request. - - ---- - - ---- - **Note** - For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the bandwidths that correspond to each span are different (10 MHz and 20 MHz, respectively). - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._configure_spectrum_frequency_start_stop` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._configure_spectrum_frequency_start_stop` - - Args: - start_frequency (float): Specifies the lower limit of a span of frequencies. This value is expressed in hertz (Hz). - - stop_frequency (float): Specifies the upper limit of a span of frequencies. This value is expressed in hertz (Hz). - - ''' - self._interpreter.configure_spectrum_frequency_start_stop(self._repeated_capability, start_frequency, stop_frequency) - - def error_message(self, error_code): - r'''error_message - - Converts an error code returned by an NI-RFSA method into a user-readable string. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5840 - - Args: - error_code (int): Passes the **errorCode** parameter that is returned from any NI-RFSA method. - - - Returns: - error_message (str): Returns the user-readable message string that corresponds to the error code you specify. - - You must pass a ViChar array with 1024 bytes or more to this parameter. Only the first 1024 bytes of the array are used. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - @ivi_synchronized - def _fetch_iq_multi_record_complex_f32(self, starting_record, number_of_records, iq_data_arrays, timeout=hightime.timedelta(seconds=10.0)): - r'''_fetch_iq_multi_record_complex_f32 - - Fetches I/Q data from multiple records in an acquisition. - - A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_multi_record_complex_f32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._fetch_iq_multi_record_complex_f32` - - Args: - starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. - - number_of_records (int): Specifies the number of records to fetch. - - iq_data_arrays (numpy.array(dtype=numpy.complex64)): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q waveforms. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. Each element of this array corresponds to a record. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform.The actual number of samples for each record can vary if the NIRFSA ATTR NUMBER OF SAMPLES property changes per step during RF list mode. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_arrays) is not numpy.ndarray: - raise TypeError('iq_data_arrays must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_arrays))) - if numpy.isfortran(iq_data_arrays) is True: - raise TypeError('iq_data_arrays must be in C-order') - if iq_data_arrays.dtype is not numpy.dtype('complex64'): - raise TypeError('iq_data_arrays must be numpy.ndarray of dtype=complex64, is ' + str(iq_data_arrays.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_iq_multi_record_complex_f32(self._repeated_capability, starting_record, number_of_records, iq_data_arrays, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_iq_multi_record_complex_f64(self, starting_record, number_of_records, iq_data_arrays, timeout=hightime.timedelta(seconds=10.0)): - r'''_fetch_iq_multi_record_complex_f64 - - Fetches I/Q data from multiple records in an acquisition. - - A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_multi_record_complex_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._fetch_iq_multi_record_complex_f64` - - Args: - starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. - - number_of_records (int): Specifies the number of records to fetch. - - iq_data_arrays (numpy.array(dtype=numpy.complex128)): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q waveforms. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. Each element of this array corresponds to a record. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform.The actual number of samples for each record can vary if the NIRFSA ATTR NUMBER OF SAMPLES property changes per step during RF list mode. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_arrays) is not numpy.ndarray: - raise TypeError('iq_data_arrays must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_arrays))) - if numpy.isfortran(iq_data_arrays) is True: - raise TypeError('iq_data_arrays must be in C-order') - if iq_data_arrays.dtype is not numpy.dtype('complex128'): - raise TypeError('iq_data_arrays must be numpy.ndarray of dtype=complex128, is ' + str(iq_data_arrays.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_iq_multi_record_complex_f64(self._repeated_capability, starting_record, number_of_records, iq_data_arrays, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_iq_multi_record_complex_i16(self, starting_record, number_of_records, iq_data_arrays, timeout=hightime.timedelta(seconds=10.0)): - r'''_fetch_iq_multi_record_complex_i16 - - Fetches binary I/Q data from multiple records in an acquisition. - - Fetching transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_multi_record_complex_i16` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._fetch_iq_multi_record_complex_i16` - - Args: - starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. - - number_of_records (int): Specifies the number of records to fetch. - - iq_data_arrays (numpy.array(dtype=numpy.int16)): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q waveforms. Each row corresponds to one record. The real and imaginary parts of this interleaved data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. Each element of this array corresponds to a record. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform.The actual number of samples for each record can vary if the NIRFSA ATTR NUMBER OF SAMPLES property changes per step during RF list mode. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_arrays) is not numpy.ndarray: - raise TypeError('iq_data_arrays must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_arrays))) - if numpy.isfortran(iq_data_arrays) is True: - raise TypeError('iq_data_arrays must be in C-order') - if iq_data_arrays.dtype is not numpy.dtype('int16'): - raise TypeError('iq_data_arrays must be numpy.ndarray of dtype=int16, is ' + str(iq_data_arrays.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_iq_multi_record_complex_i16(self._repeated_capability, starting_record, number_of_records, iq_data_arrays, timeout) - return wfm_info - - def fetch_iq_multi_record_into(self, iq_data_arrays, starting_record=0, number_of_records=None, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)): - '''fetch_iq_multi_record - - Fetches I/Q data from multiple records in an acquisition. - - A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_iq_multi_record` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.fetch_iq_multi_record` - - Args: - iq_data_arrays (2D numpy.array of numpy.complex64, 2D numpy.array of numpy.complex128 or interleaved complex data in the form of 2D numpy.array of numpy.int16): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q data. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. - - number_of_records (int): Specifies the number of records to fetch. - - number_of_samples (int): Specifies the number of samples per record. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - ''' - import numpy - if str(type(iq_data_arrays)).find("'numpy.ndarray'") != -1: - if number_of_records is None: - number_of_records = self.number_of_records - - if number_of_samples is None: - number_of_samples = self.number_of_samples - - if iq_data_arrays.ndim != 2: - raise ValueError("iq_data_arrays must be a 2D numpy array (number_of_records x number_of_samples), but got {}D array".format(iq_data_arrays.ndim)) - if iq_data_arrays.shape[0] < number_of_records: - raise ValueError("iq_data_arrays must have at least {} rows (number_of_records), but has {}".format(number_of_records, iq_data_arrays.shape[0])) - if iq_data_arrays.dtype == numpy.int16: - expected_buffer_size = 2 * number_of_samples - else: - expected_buffer_size = number_of_samples - - if iq_data_arrays.shape[1] < expected_buffer_size: - try: - iq_data_arrays.resize((iq_data_arrays.shape[0], expected_buffer_size), refcheck=False) - except (MemoryError, ValueError) as e: - raise type(e)( - "Failed to resize iq_data_arrays from {} to {}: {}".format( - iq_data_arrays.shape, (iq_data_arrays.shape[0], expected_buffer_size), e - ) - ) from e - assert iq_data_arrays.shape[1] == expected_buffer_size, "iq_data_arrays width must match requested number_of_samples after resize" - - if iq_data_arrays.dtype == numpy.complex128: - wfm_info = self._fetch_iq_multi_record_complex_f64(starting_record, number_of_records, iq_data_arrays, timeout) - elif iq_data_arrays.dtype == numpy.complex64: - wfm_info = self._fetch_iq_multi_record_complex_f32(starting_record, number_of_records, iq_data_arrays, timeout) - elif iq_data_arrays.dtype == numpy.int16: - wfm_info = self._fetch_iq_multi_record_complex_i16(starting_record, number_of_records, iq_data_arrays, timeout) - else: - raise TypeError("Unsupported datatype. Is {}, expected {} or {} or {}".format(iq_data_arrays.dtype, numpy.complex128, numpy.complex64, numpy.int16)) - else: - raise TypeError("Unsupported datatype. Expected numpy array of {} or {} or {}".format(numpy.complex128, numpy.complex64, numpy.int16)) - - waveform_info._populate_samples_info(wfm_info, iq_data_arrays) - - return wfm_info - - @ivi_synchronized - def _fetch_iq_single_record_complex_f32(self, record_number, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): - r'''_fetch_iq_single_record_complex_f32 - - Fetches I/Q data from a single record in an acquisition. - - The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_single_record_complex_f32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._fetch_iq_single_record_complex_f32` - - Args: - record_number (int): Specifies the record to retrieve. Record numbers are zero-based. - - iq_data_array (numpy.array(dtype=numpy.complex64)): Returns the acquired waveform. Allocate an NIComplexNumberF32 array at least as large as **number_of_samples**. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_array) is not numpy.ndarray: - raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) - if numpy.isfortran(iq_data_array) is True: - raise TypeError('iq_data_array must be in C-order') - if iq_data_array.dtype is not numpy.dtype('complex64'): - raise TypeError('iq_data_array must be numpy.ndarray of dtype=complex64, is ' + str(iq_data_array.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_iq_single_record_complex_f32(self._repeated_capability, record_number, iq_data_array, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_iq_single_record_complex_f64(self, record_number, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): - r'''_fetch_iq_single_record_complex_f64 - - Fetches I/Q data from a single record in an acquisition. - - The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_single_record_complex_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._fetch_iq_single_record_complex_f64` - - Args: - record_number (int): Specifies the record to retrieve. Record numbers are zero-based. - - iq_data_array (numpy.array(dtype=numpy.complex128)): Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as **number_of_samples**. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_array) is not numpy.ndarray: - raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) - if numpy.isfortran(iq_data_array) is True: - raise TypeError('iq_data_array must be in C-order') - if iq_data_array.dtype is not numpy.dtype('complex128'): - raise TypeError('iq_data_array must be numpy.ndarray of dtype=complex128, is ' + str(iq_data_array.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_iq_single_record_complex_f64(self._repeated_capability, record_number, iq_data_array, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_iq_single_record_complex_i16(self, record_number, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): - r'''_fetch_iq_single_record_complex_i16 - - Fetches binary I/Q data from a single record in an acquisition. - - The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_single_record_complex_i16` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._fetch_iq_single_record_complex_i16` - - Args: - record_number (int): Specifies the record to retrieve. Record numbers are zero-based. - - iq_data_array (numpy.array(dtype=numpy.int16)): Returns the acquired waveform. Allocate an NIComplexI16 array at least as large as **number_of_samples**. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_array) is not numpy.ndarray: - raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) - if numpy.isfortran(iq_data_array) is True: - raise TypeError('iq_data_array must be in C-order') - if iq_data_array.dtype is not numpy.dtype('int16'): - raise TypeError('iq_data_array must be numpy.ndarray of dtype=int16, is ' + str(iq_data_array.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_iq_single_record_complex_i16(self._repeated_capability, record_number, iq_data_array, timeout) - return wfm_info - - def fetch_iq_single_record_into(self, iq_data_array, record_number=0, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)): - '''fetch_iq_single_record - - Fetches I/Q data from a single record in an acquisition. - - The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. - - This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_iq_single_record` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.fetch_iq_single_record` - - Args: - iq_data_array (numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16): Specifies the pre-allocated numpy array to be filled with the acquired I/Q data. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. - - record_number (int): Specifies the record to retrieve. Record numbers are zero-based. - - number_of_samples (int): Specifies the number of samples to fetch. The value must specify the array size of the DATA parameter. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. - - **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. - - ---- - - For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. - - ---- - - ''' - import numpy - if str(type(iq_data_array)).find("'numpy.ndarray'") != -1: - if number_of_samples is None: - number_of_samples = self.number_of_samples - - if iq_data_array.dtype == numpy.int16: - expected_buffer_size = 2 * number_of_samples - else: - expected_buffer_size = number_of_samples - - if len(iq_data_array) < expected_buffer_size: - try: - iq_data_array.resize(expected_buffer_size, refcheck=False) - except (MemoryError, ValueError) as e: - raise type(e)( - "Failed to resize iq_data_array from {} to {}: {}".format( - len(iq_data_array), expected_buffer_size, e - ) - ) from e - assert len(iq_data_array) == expected_buffer_size, "iq_data_array length must match requested number_of_samples after resize" - - if iq_data_array.dtype == numpy.complex128: - wfm_info = self._fetch_iq_single_record_complex_f64(record_number, iq_data_array, timeout) - elif iq_data_array.dtype == numpy.complex64: - wfm_info = self._fetch_iq_single_record_complex_f32(record_number, iq_data_array, timeout) - elif iq_data_array.dtype == numpy.int16: - wfm_info = self._fetch_iq_single_record_complex_i16(record_number, iq_data_array, timeout) - else: - raise TypeError("Unsupported datatype. Is {}, expected {} or {} or {}".format(iq_data_array.dtype, numpy.complex128, numpy.complex64, numpy.int16)) - else: - raise TypeError("Unsupported datatype. Expected numpy array of {} or {} or {}".format(numpy.complex128, numpy.complex64, numpy.int16)) - - mv = memoryview(iq_data_array) - - wfm_info.samples = mv[0:wfm_info.actual_samples] - - return wfm_info - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. - - You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - value (bool): Returns the current value of the property. Pass the address of a ViBoolean variable. - - ''' - value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. - - You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - value (int): Returns the current value of the property. Pass the address of a ViInt32 variable. - - ''' - value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_int64(self, attribute_id): - r'''_get_attribute_vi_int64 - - Queries the value of a ViInt64 property. - - You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int64` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - value (int): Returns the current value of the property. Pass the address of a ViInt64 variable. - - ''' - value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - Queries the value of a ViReal64 property. - - You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - value (float): Returns the current value of the property. Pass the address of a ViReal64 variable. - - ''' - value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_session(self, attribute_id): - r'''_get_attribute_vi_session - - Queries the value of a ViSession property. - - You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_session` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_session` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - value (int): Returns the current value of the property. Pass the address of a ViSession variable. - - ''' - value = self._interpreter.get_attribute_vi_session(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - Queries the value of a ViString property. - - You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. - - You must provide a ViChar array to serve as a buffer for the value. You pass the number of bytes in the buffer as the **BUF_SIZE** parameter. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the **BUF_SIZE** parameter, the method copies buffer size 1 bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is "123456" and the buffer size is 4, the method places "123" into the buffer and returns 7. - - If you want to call this method just to get the required buffer size, you can pass 0 for **BUF_SIZE** and VI_NULL for the **attributeValue** buffer. - - **Supported Devices:** PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. - - - Returns: - value (str): The buffer in which the method returns the current value of the property. The buffer must be of type ViChar and have at least as many bytes as indicated in **BUF_SIZE**. - - If you specify 0 for the **BUF_SIZE** parameter, you can pass VI_NULL for this parameter. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def get_fetch_backlog(self, record_number): - r'''get_fetch_backlog - - Returns the number of points acquired that have not yet been fetched. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_fetch_backlog` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.get_fetch_backlog` - - Args: - record_number (int): Specifies the record from which to read the backlog. Record numbers are zero-based. - - - Returns: - backlog (int): Returns the number of samples available to read for the requested record. - - ''' - backlog = self._interpreter.get_fetch_backlog(self._repeated_capability, record_number) - return backlog - - @ivi_synchronized - def get_frequency_response(self): - r'''get_frequency_response - - Returns the requested device response type, based on current NI-RFSA settings. The PXI-5661 and PXIe-5663/5663E/5665/5667/5668 automatically corrects the IF and RF response when you set the Digital IF Equalization Enabled property to TRUE. If you are using external digitizer mode, you can use information returned from this VI to correct your measurement. - - Refer to the *Factory Calibration* topic for your device for more information about frequency-response calibration. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_frequency_response` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.get_frequency_response` - - Returns: - frequencies (list of float): Returns an array containing the frequencies, in hertz (Hz), that correspond to the response data. - - Pass VI_NULL if you do not want to use this parameter. - - magnitude_response (list of float): Returns an array containing the magnitude of the requested response, in decibels (dB). The magnitude response is normalized to the center frequency at each frequency in the FREQUENCIES array. - - Pass VI_NULL if you do not want to use this parameter. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - phase_response (list of float): Returns an array containing the phase of the requested response, in radians. The phase response is normalized to the center frequency at each frequency entry in the FREQUENCIES array. - - Pass VI_NULL if you do not want to use this parameter. This array may contain zeros if the device does not contain a stored phase response in its calibration data. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - frequencies, magnitude_response, phase_response = self._interpreter.get_frequency_response(self._repeated_capability) - return frequencies, magnitude_response, phase_response - - @ivi_synchronized - def get_scaling_coefficients(self): - r'''get_scaling_coefficients - - Returns coefficients you can use to convert unscaled data to scaled I/Q data. - - Acquired data may be unscaled when sent by a peer-to-peer stream or fetched as unscaled data. Use this method to obtain get_scaling_coefficients structures in the **COEFFICIENT_INFO** array that provide gain and offset values you can use to scale this data into the actual I/Q values. The **COEFFICIENT_INFO** array returns one element for each channel specified in the **CHANNEL_LIST** parameter. The element order matches the order specified by the **CHANNEL_LIST** parameter. To get the actual I/Q values, scale the unscaled data from an acquisition by multiplying it by the gain value of the appropriate **COEFFICIENT_INFO** element then adding the offset from the same element. - - ---- - **Note** - The coefficients are calculated by NI-RFSA for the current configuration of the device, so they are only valid for acquisitions obtained with the same device configuration. - - ---- - - To get the required size of the array, call this method with **ARRAY_SIZE** set to 0 and NULL for the **COEFFICIENT_INFO** array. This method returns the required size in the **NUMBER_OF_COEFFICIENT_SETS** parameter. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_scaling_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.get_scaling_coefficients` - - Returns: - coefficient_info (list of CoefficientInfo): Specifies the array for storing the coefficient info. - - - **offset** is the number that should be added to the data from a peer-to-peer stream after the gain has been applied if you want to scale unscaled data. - - **gain** returns the multiplier that you should use to scale data obtained from a peer-to-peer stream. - - ''' - coefficient_info = self._interpreter.get_scaling_coefficients(self._repeated_capability) - return coefficient_info - - @ivi_synchronized - def load_configurations_from_file(self, file_path): - r'''load_configurations_from_file - - Loads the configurations from the specified file to the NI-RFSA driver session. - - The VI does an implicit reset before loading the configurations from the file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.load_configurations_from_file` - - Args: - file_path (str): Specifies the absolute path of the file from which the NI-RFSA loads the configurations. - - ''' - self._interpreter.load_configurations_from_file(self._repeated_capability, file_path) - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-RFSA locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nirfsa.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def _read_iq_single_record_complex_f64(self, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): - r'''_read_iq_single_record_complex_f64 - - Initiates an acquisition and fetches a single I/Q data record. - - Do not use this method if you have configured the device to continuously acquire data samples or to acquire multiple records. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._read_iq_single_record_complex_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._read_iq_single_record_complex_f64` - - Args: - iq_data_array (numpy.array(dtype=numpy.complex128)): Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as the number of samples configured in the ConfigureNumberOfSamples method. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies in seconds the time allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - - if type(iq_data_array) is not numpy.ndarray: - raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) - if numpy.isfortran(iq_data_array) is True: - raise TypeError('iq_data_array must be in C-order') - if iq_data_array.dtype is not numpy.dtype('complex128'): - raise TypeError('iq_data_array must be numpy.ndarray of dtype=complex128, is ' + str(iq_data_array.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.read_iq_single_record_complex_f64(self._repeated_capability, iq_data_array, timeout) - return wfm_info - - def read_iq_single_record_into(self, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): - '''read_iq_single_record - - Initiates an acquisition and fetches a single I/Q data record. - - Do not use this method if you have configured the device to continuously acquire data samples or to acquire multiple records. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_iq_single_record` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.read_iq_single_record` - - Args: - iq_data_array (numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16): Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as the number of samples configured in the ConfigureNumberOfSamples method. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies in seconds the time allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - - Returns: - wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. - - The following list provides more information about each of these properties: - - - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. - - ---- - - The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - - ---- - - - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. - - ---- - - - The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. - - ---- - - - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. - - **actual samples read** Returns an integer representing the number of samples in the waveform. - - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. - - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. - - ''' - import numpy - if str(type(iq_data_array)).find("'numpy.ndarray'") != -1: - if iq_data_array.dtype != numpy.complex128: - raise TypeError("Unsupported dtype. Is {}, expected {}".format(iq_data_array.dtype, numpy.complex128)) - - expected_buffer_size = self.number_of_samples - if len(iq_data_array) < expected_buffer_size: - try: - iq_data_array.resize(expected_buffer_size, refcheck=False) - except (MemoryError, ValueError) as e: - raise type(e)( - "Failed to resize iq_data_array from {} to {}: {}".format( - len(iq_data_array), expected_buffer_size, e - ) - ) from e - assert len(iq_data_array) == expected_buffer_size, "iq_data_array length must match requested number_of_samples after resize" - - wfm_info = self._read_iq_single_record_complex_f64(iq_data_array, timeout) - else: - raise TypeError("Unsupported datatype. Expected numpy array of {}".format(numpy.complex128)) - - mv = memoryview(iq_data_array) - - wfm_info.samples = mv[0:self.number_of_samples] - - return wfm_info - - def read_power_spectrum_into(self, power_spectrum_data_array, data_array_size=None, timeout=hightime.timedelta(seconds=10.0)): - '''read_power_spectrum - - Initiates a spectrum acquisition and returns power spectrum data. - - ---- - **Note** - Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read_power_spectrum` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.read_power_spectrum` - - Args: - power_spectrum_data_array (numpy.array of numpy.float64 or numpy.array of numpy.float32): Specifies a pre-allocated numpy array to be filled with power spectrum data. The dtype of this array determines the data format: numpy.float64 or numpy.float32. Allocate an array at least as large as the number of spectral lines returned by the get_number_of_spectral_lines method. - - data_array_size (int): Specifies the expected number of spectral lines. If None, falls back to self.number_of_spectral_lines. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - ''' - import numpy - if str(type(power_spectrum_data_array)).find("'numpy.ndarray'") != -1: - expected_buffer_size = self.number_of_spectral_lines - - if len(power_spectrum_data_array) < expected_buffer_size: - try: - power_spectrum_data_array.resize(expected_buffer_size, refcheck=False) - except (MemoryError, ValueError) as e: - raise type(e)( - "Failed to resize power_spectrum_data_array from {} to {}: {}".format( - len(power_spectrum_data_array), expected_buffer_size, e - ) - ) from e - assert len(power_spectrum_data_array) == expected_buffer_size, "power_spectrum_data_array length must match number_of_spectral_lines after resize" - - if power_spectrum_data_array.dtype == numpy.float64: - spectrum_info = self._read_power_spectrum_f64(power_spectrum_data_array, timeout) - elif power_spectrum_data_array.dtype == numpy.float32: - spectrum_info = self._read_power_spectrum_f32(power_spectrum_data_array, timeout) - else: - raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(power_spectrum_data_array.dtype, numpy.float64, numpy.float32)) - else: - raise TypeError("Unsupported datatype. Expected numpy array of {} or {}".format(numpy.float64, numpy.float32)) - - mv = memoryview(power_spectrum_data_array) - - spectrum_info_type._populate_samples_info(spectrum_info, mv) - - return spectrum_info - - @ivi_synchronized - def _read_power_spectrum_f32(self, power_spectrum_data_array, timeout=hightime.timedelta(seconds=10.0)): - r'''_read_power_spectrum_f32 - - Initiates a spectrum acquisition and returns power spectrum data. - - ---- - **Note** - Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. - - ---- - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._read_power_spectrum_f32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._read_power_spectrum_f32` - - Args: - power_spectrum_data_array (list of float): Returns power spectrum data. Allocate an array as large as **DATA_ARRAY_SIZE**. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - - Returns: - spectrum_info (SpectrumInfo): Returns additional information about the **POWER_SPECTRUM_DATA** array. This information includes the frequency, in hertz (Hz), corresponding to the first element in the array, the frequency increment, in Hz, between adjacent array elements, and the number of spectral lines the method returned. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - spectrum_info = self._interpreter.read_power_spectrum_f32(self._repeated_capability, timeout, power_spectrum_data_array) - return spectrum_info - - @ivi_synchronized - def _read_power_spectrum_f64(self, power_spectrum_data_array, timeout=hightime.timedelta(seconds=10.0)): - r'''_read_power_spectrum_f64 - - Initiates a spectrum acquisition and returns power spectrum data. - - ---- - **Note** - Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._read_power_spectrum_f64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._read_power_spectrum_f64` - - Args: - power_spectrum_data_array (list of float): Specifies a pre-allocated numpy array to be filled with power spectrum data. Allocate an array at least as large as the number of spectral lines returned by the get_number_of_spectral_lines method. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. - - - Returns: - spectrum_info (SpectrumInfo): Returns additional information about the **POWER_SPECTRUM_DATA** array. This information includes the frequency, in hertz (Hz), corresponding to the first element in the array, the frequency increment, in Hz, between adjacent array elements, and the number of spectral lines the method returned. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - spectrum_info = self._interpreter.read_power_spectrum_f64(self._repeated_capability, timeout, power_spectrum_data_array) - return spectrum_info - - @ivi_synchronized - def save_configurations_to_file(self, file_path): - r'''save_configurations_to_file - - Saves the configurations of the session to the specified file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session.save_configurations_to_file` - - Args: - file_path (str): Specifies the absolute path of the file to which the NI-RFSA saves the configurations. - - ''' - self._interpreter.save_configurations_to_file(self._repeated_capability, file_path) - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, value): - r'''_set_attribute_vi_boolean - - Sets the value of a ViBoolean property. - - Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. - - NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. - - value (bool): Pass the value to which you want to set the property. - - ---- - - Some of the values might not be valid depending on the current state of the instrument session. - - ---- - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, value): - r'''_set_attribute_vi_int32 - - Sets the value of a ViInt32 property. - - Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. - - NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. - - value (int): Pass the value to which you want to set the property. - - ---- - - Some of the values might not be valid depending on the current state of the instrument session. - - ---- - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_int64(self, attribute_id, value): - r'''_set_attribute_vi_int64 - - Sets the value of a ViInt64 property. - - Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. - - NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int64` - - Args: - attribute_id (int): Pass the ID of a property. - - value (int): Pass the value to which you want to set the property. - - ---- - - Some of the values might not be valid depending on the current state of the instrument session. - - ---- - - ''' - self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, value): - r'''_set_attribute_vi_real64 - - Sets the value of a ViReal64 property. - - Use this low-level method to set the values of inherent IVI properties, and instrument-specific properties. - - NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread-locking for you. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. - - value (float): Pass the value to which you want to set the property. - - ---- - - Some of the values might not be valid depending on the current state of the instrument session. - - ---- - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_session(self, attribute_id): - r'''_set_attribute_vi_session - - Sets the value of a ViSession property. - - Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. - - NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_session` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_session` - - Args: - attribute_id (int): Pass the ID of a property. - - ''' - self._interpreter.set_attribute_vi_session(self._repeated_capability, attribute_id) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, value): - r'''_set_attribute_vi_string - - Sets the value of a ViString property. - - Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. - - NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. - - value (str): Pass the value to which you want to set the property. - - ---- - - Some of the values might not be valid depending on the current state of the instrument session. - - ---- - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, value) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - -class Session(_SessionBase): - '''An NI-RFSA session to the NI-RFSA driver''' - - def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): - r'''An NI-RFSA session to the NI-RFSA driver - - Creates a new session for the device. - - This method sets the initial value of certain properties and sends initialization commands to reset all hardware modules to a known state necessary for NI-RFSA operation. - - To create a new session, pass the downconverter resource name for the RF vector signal analyzer to the **resource name** parameter. - - You can access the device session this VI creates using the NI-RFSA Soft Front Panel (SFP). Accessing the device session with the SFP can help you debug your code. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about accessing your session with the SFP. - - ---- - **Note** - Before initializing your device, you must first associate the modules that comprise your device in MAX. After associating the modules, pass the resource name of the device to this method to initialize all the modules. Refer to `Associating NI-RFSA Modules `_ for information about MAX association. - - ---- - - ---- - **Note** - For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending *ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Driver Setup Options `_ - - Args: - resource_name (str): Specifies the resource name of the device to initialize. - - For NI-RFSA devices, the syntax is the device name specified in MAX. The typical default name for your device in MAX is PXI1Slot2. You can rename your device by right-clicking the name in MAX, selecting **Rename** from the drop-down menu, and entering a new name. You can also pass in the name of an IVI logical name configured with the IVI Configuration utility. For additional information, refer to the **Installed Devices IVI** topic of the *Measurement & Automation Explorer Help*. - - Device names are not case-sensitive. However, IVI logical names are case-sensitive. If you use an IVI logical name, verify the name is identical to the name shown in the IVI Configuration Utility. - - id_query (bool): Specifies whether you want NI-RFSA to perform an ID query. - - **Defined Values** : - - +--------------------------+ - | Description | - +==========================+ - | Perform ID query. | - +--------------------------+ - | Do not perform ID query. | - +--------------------------+ - - reset_device (bool): Specifies whether the NI-RFSA device is reset during the initialization procedure. - - **Defined Values** : - - +----------------------+ - | Description | - +======================+ - | Reset the device. | - +----------------------+ - | Do not reset device. | - +----------------------+ - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - grpc_options (nirfsa.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - new_vi (int): Identifies your instrument session. - - ''' - if grpc_options: - import nirfsa._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_options fails, the error handler can reference it. - # And then here, once _init_with_options succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-RFSA', grpc_options.grpc_channel, connected) - - # NI-TClk does not work over NI gRPC Device Server - if not grpc_options: - self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("id_query=" + pp.pformat(id_query)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Commits settings to hardware, waits for hardware settling, and starts an acquisition. - - You can use this method in conjunction with one of the niRFSA fetch I/Q methods to retrieve acquired I/Q data, or you can use the read IQ single record complex F64 method to both initiate the acquisition and retrieve I/Q data at one time. - - ---- - **Note** - If you are using external digitizer mode, this method commits settings and waits for settling, but it does not start an acquisition. Notice that using the commit method on its own commits settings to hardware, but the device does not wait for hardware settling. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - `RF List Mode `_ - - `NI RF Vector Signal Analyzer State Diagram `_ - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Acquisition(self) - - def close(self): - '''close - - Closes the session to the device. - - If you close a session that has Soft Front Panel (SFP) session access enabled, any application connected to the shared device session is no longer usable. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about using SFP session access. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Stops an acquisition previously started with the _initiate method or the read_power_spectrum method. - - You can also use the abort method to stop a self-calibration. Calling this method is optional, unless you want to stop an acquisition before it is complete or you are continuously acquiring data. - - You can stop the following kinds of acquisitions: - - - Triggered spectrum acquisitions that have not yet been triggered - - Multispan acquisitions in progress - - Average spectrum acquisitions in progress - - Single-record spectrum acquisitions in progress - - Streaming in progress - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - self._interpreter.abort() - - @ivi_synchronized - def change_external_calibration_password(self, old_password, new_password): - r'''change_external_calibration_password - - Changes the password that is required to initialize an external calibration session. - - **Supported Devices**: PXIe-5601/5603/5605/5606, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - old_password (str): Specifies the old (current) external calibration password. - - The maximum length of the password varies by device. - - new_password (str): Specifies the new (desired) external calibration password. - - The maximum length of the password varies by device. - - ''' - self._interpreter.change_external_calibration_password(old_password, new_password) - - @ivi_synchronized - def check_acquisition_status(self): - r'''check_acquisition_status - - Checks the status of the acquisition. - - Use this method to check for any errors that may occur during signal acquisition or to check whether the device has completed the acquisition operation. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI RF Vector Signal Analyzer State Diagram `_ - - Returns: - is_done (bool): Returns signal acquisition status. - - |Value |Description | - |:---------|:------------------------------------| - | True | Signal acquisition is complete. | - | False | Signal acquisition is not complete. | - - ''' - is_done = self._interpreter.check_acquisition_status() - return is_done - - @ivi_synchronized - def clear_self_calibrate_range(self): - r'''clear_self_calibrate_range - - Clears the data obtained from the self_calibrate_range method. - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - ''' - self._interpreter.clear_self_calibrate_range() - - @ivi_synchronized - def commit(self): - r'''commit - - Commits settings to hardware. - - Calling this method is optional. Settings are automatically committed to hardware when you call the _initiate method, the read IQ single record complex F64 method, or the read_power_spectrum method. - - ---- - **Note** - This method does not wait for settling time, unlike the _initiate method. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI RF Vector Signal Analyzer State Diagram `_ - ''' - self._interpreter.commit() - - @ivi_synchronized - def configure_deembedding_table_interpolation_linear(self, port, table_name, format): - r'''configure_deembedding_table_interpolation_linear - - Selects the linear interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - format (enums.LinearInterpolationFormat): Specifies the format of parameters to interpolate. **Defined Values** : - - +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +==================================================+=========================================================================================================================================+ - | LinearInterpolationFormat.REAL_AND_IMAGINARY | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | - +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | LinearInterpolationFormat.MAGNITUDE_AND_PHASE | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | - +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | LinearInterpolationFormat.MAGNITUDE_DB_AND_PHASE | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | - +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - if type(format) is not enums.LinearInterpolationFormat: - raise TypeError('Parameter format must be of type ' + str(enums.LinearInterpolationFormat)) - self._interpreter.configure_deembedding_table_interpolation_linear(port, table_name, format) - - @ivi_synchronized - def configure_deembedding_table_interpolation_nearest(self, port, table_name): - r'''configure_deembedding_table_interpolation_nearest - - Selects the nearest interpolation method. - - NI-RFSA uses the parameters of the table nearest to the carrier frequency for de-embedding. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - ''' - self._interpreter.configure_deembedding_table_interpolation_nearest(port, table_name) - - @ivi_synchronized - def configure_deembedding_table_interpolation_spline(self, port, table_name): - r'''configure_deembedding_table_interpolation_spline - - Selects the spline interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - ''' - self._interpreter.configure_deembedding_table_interpolation_spline(port, table_name) - - @ivi_synchronized - def configure_digital_edge_advance_trigger(self, source, edge): - r'''configure_digital_edge_advance_trigger - - Configures the device to wait for a digital edge Advance Trigger. - - The Advance Trigger indicates where a new record begins. - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - Args: - source (str): Specifies the source of the digital edge for the Advance Trigger. - - | Value | Description | - |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | NIRFSA_VAL_PFI0 ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - | NIRFSA_VAL_PFI1 ('PFI1') | The trigger is received on PFI 1. | - | NIRFSA_VAL_PXI_TRIG0 ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | - | NIRFSA_VAL_PXI_TRIG1 ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | - | NIRFSA_VAL_PXI_TRIG2 ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | - | NIRFSA_VAL_PXI_TRIG3 ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | - | NIRFSA_VAL_PXI_TRIG4 ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | - | NIRFSA_VAL_PXI_TRIG5 ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | - | NIRFSA_VAL_PXI_TRIG6 ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | - | NIRFSA_VAL_PXI_TRIG7 ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | - | NIRFSA_VAL_PXI_STAR ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | - | OutputTerm.PXIE_DSTARB ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - | OutputTerm.TIMER_EVENT ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | - | NIRFSA_VAL_DIO_PFI0 ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI1('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI2 ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI3 ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI4 ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI5 ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI6 ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI7 ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - edge (enums.AdvanceTriggerDigitalEdgeEdge): Specifies the trigger edge to detect. The default value is AdvanceTriggerDigitalEdgeEdge.RISING. - - | Value | Description | - |:------------------------------|:--------------------------------| - | AdvanceTriggerDigitalEdgeEdge.RISING (900) | NI-RFSA detects a rising edge. | - | AdvanceTriggerDigitalEdgeEdge.FALLING (901) | NI-RFSA detects a falling edge. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(edge) is not enums.AdvanceTriggerDigitalEdgeEdge: - raise TypeError('Parameter edge must be of type ' + str(enums.AdvanceTriggerDigitalEdgeEdge)) - self._interpreter.configure_digital_edge_advance_trigger(source, edge) - - @ivi_synchronized - def configure_digital_edge_ref_trigger(self, source, edge, pretrigger_samples=0): - r'''configure_digital_edge_ref_trigger - - Configures the device to wait for a digital edge Reference Trigger to mark a reference point within the record. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - Args: - source (str): Specifies the source of the digital edge for the Reference trigger. - - |Value |Description | - |:-------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | NIRFSA_VAL_PFI0 ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - | NIRFSA_VAL_PFI1 ('PFI1') | The trigger is received on PFI 1. | - | NIRFSA_VAL_PXI_TRIG0 ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | - | NIRFSA_VAL_PXI_TRIG1 ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | - | NIRFSA_VAL_PXI_TRIG2 ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | - | NIRFSA_VAL_PXI_TRIG3 ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | - | NIRFSA_VAL_PXI_TRIG4 ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | - | NIRFSA_VAL_PXI_TRIG5 ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | - | NIRFSA_VAL_PXI_TRIG6 ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | - | NIRFSA_VAL_PXI_TRIG7 ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | - | NIRFSA_VAL_PXI_STAR ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | - | OutputTerm.PXIE_DSTARB ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - | OutputTerm.TIMER_EVENT ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | - | NIRFSA_VAL_DIO_PFI0 ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI1('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI2 ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI3 ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI4 ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI5 ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI6 ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI7 ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - edge (enums.ReferenceTriggerDigitalEdgeEdge): Specifies the trigger edge to detect. The default value is ReferenceTriggerDigitalEdgeEdge.RISING. - - |Value |Description | - |:------------------------------|:--------------------------------| - | ReferenceTriggerDigitalEdgeEdge.RISING (900) | NI-RFSA detects a rising edge. | - | ReferenceTriggerDigitalEdgeEdge.FALLING (901) | NI-RFSA detects a falling edge. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - pretrigger_samples (int): Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. - - ''' - if type(edge) is not enums.ReferenceTriggerDigitalEdgeEdge: - raise TypeError('Parameter edge must be of type ' + str(enums.ReferenceTriggerDigitalEdgeEdge)) - self._interpreter.configure_digital_edge_ref_trigger(source, edge, pretrigger_samples) - - @ivi_synchronized - def configure_digital_edge_start_trigger(self, source, edge): - r'''configure_digital_edge_start_trigger - - Configures the device to wait for a digital edge Start Trigger at the beginning of the acquisition. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - Args: - source (str): Specifies the source of the digital edge for the Start Trigger. - - | Value | Description | - |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | NIRFSA_VAL_PFI0 ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | - | NIRFSA_VAL_PFI1 ('PFI1') | The trigger is received on PFI 1. | - | NIRFSA_VAL_PXI_TRIG0 ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | - | NIRFSA_VAL_PXI_TRIG1 ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | - | NIRFSA_VAL_PXI_TRIG2 ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | - | NIRFSA_VAL_PXI_TRIG3 ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | - | NIRFSA_VAL_PXI_TRIG4 ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | - | NIRFSA_VAL_PXI_TRIG5 ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | - | NIRFSA_VAL_PXI_TRIG6 ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | - | NIRFSA_VAL_PXI_TRIG7 ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | - | NIRFSA_VAL_PXI_STAR ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | - | OutputTerm.PXIE_DSTARB ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - | OutputTerm.TIMER_EVENT ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | - | NIRFSA_VAL_DIO_PFI0 ('PFI1') | The trigger is received on PFI 0 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI1('PFI2') | The trigger is received on PFI 1 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI2 ('PFI3') | The trigger is received on PFI 2 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI3 ('PFI4') | The trigger is received on PFI 3 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI4 ('PFI5') | The trigger is received on PFI 4 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI5 ('PFI6') | The trigger is received on PFI 5 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI6 ('PFI7') | The trigger is received on PFI 6 of the DIO Terminal. | - | NIRFSA_VAL_DIO_PFI7 ('PFI8') | The trigger is received on PFI 7 of the DIO Terminal. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - edge (enums.StartTriggerDigitalEdgeEdge): Specifies the trigger edge to detect. The default value is StartTriggerDigitalEdgeEdge.RISING. - - | Value | Description | - |:------------------------------|:--------------------------------| - | StartTriggerDigitalEdgeEdge.RISING (900) | NI-RFSA detects a rising edge. | - | StartTriggerDigitalEdgeEdge.FALLING (901) | NI-RFSA detects a falling edge. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(edge) is not enums.StartTriggerDigitalEdgeEdge: - raise TypeError('Parameter edge must be of type ' + str(enums.StartTriggerDigitalEdgeEdge)) - self._interpreter.configure_digital_edge_start_trigger(source, edge) - - @ivi_synchronized - def configure_iq_power_edge_ref_trigger(self, source, level, slope, pretrigger_samples=0): - r'''configure_iq_power_edge_ref_trigger - - Configures the device to wait for the complex power of the I/Q data to cross the specified threshold to mark a reference point within the record. - - To trigger on burst signals, add a minimum quiet time, configured with the ref_trigger_minimum_quiet_time property, to ensure the trigger does not occur in the middle of a burst if the acquisition starts while a burst is being generated. The quiet time should be set to a value smaller than the time between bursts, but large enough to ignore power changes within a burst. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - Args: - source (str): Specifies the source of the RF signal for the power edge Reference trigger. The only supported value is "0". - - level (float): Specifies the threshold, in dBm, above or below which the device triggers. - - slope (enums.ReferenceTriggerIqPowerEdgeSlope): Specifies whether the device detects a positive or negative slope on the trigger signal. The default value is ReferenceTriggerIqPowerEdgeSlope.RISING. - - | Value | Description | - |:--------------------------------|:-------------------------------------------------| - | ReferenceTriggerIqPowerEdgeSlope.RISING (1000) | NI-RFSA detects a rising edge (positive slope). | - | ReferenceTriggerIqPowerEdgeSlope.FALLING (1001) | NI-RFSA detects a falling edge (negative slope). | - - pretrigger_samples (int): Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. - - ''' - if type(slope) is not enums.ReferenceTriggerIqPowerEdgeSlope: - raise TypeError('Parameter slope must be of type ' + str(enums.ReferenceTriggerIqPowerEdgeSlope)) - self._interpreter.configure_iq_power_edge_ref_trigger(source, level, slope, pretrigger_samples) - - @ivi_synchronized - def configure_ref_clock(self, clock_source, ref_clock_rate): - r'''configure_ref_clock - - Configures the NI-RFSA device Reference Clock. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXI-5661 Reference Clock `_ - - `PXIe-5663 Timing Configurations `_ - - `PXIe-5665 Timing Configurations `_ - - `PXIe-5667 Timing Configurations `_ - - `PXIe-5668 Timing Configurations `_ - - `PXIe-5830 Timing Configurations `_ - - `PXIe-5831 Timing Configurations `_ - - Args: - clock_source (enums.ReferenceClockSource): specifies the source of the Reference Clock signal. - | Clock Source | Description | - |-----------------------|-------------| - | **Onboard Clock (default)** | Uses the onboard Reference Clock as the clock source.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to PXIe-5655 onboard clock. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to PXIe-5655 onboard clock. Use cables as shown in the Getting Started Guide. | - | **RefIn** | Uses the signal at the front panel REF IN connector.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT; lock external signal to PXIe-3621 REF IN.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT; lock external signal to PXIe-3622 REF IN.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT; lock external signal to PXIe-3623 REF IN.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to signal at REF IN on PXIe-5655. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to signal at REF IN on PXIe-5655. Use cables as shown in the Getting Started Guide. | - | **PXI Clock** | Uses the PXI_CLK signal present on the PXI backplane. | - | **PXI_ClkMaster** | Valid only for PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653.
**PXIe-5831 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3622 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN.
**PXIe-5832 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3623 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN. | - - ref_clock_rate (float): specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. This parameter is only valid when the **ref clock source** parameter is set to **RefIn**. The default value is Auto (-1.0), which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. Refer to the Reference Clock Rate property for possible values. - - ''' - if type(clock_source) is not enums.ReferenceClockSource: - raise TypeError('Parameter clock_source must be of type ' + str(enums.ReferenceClockSource)) - self._interpreter.configure_ref_clock(clock_source, ref_clock_rate) - - @ivi_synchronized - def configure_software_edge_advance_trigger(self): - r'''configure_software_edge_advance_trigger - - Configures the device to wait for a software Advance Trigger. - - The Advance Trigger indicates where a new record begins. The device waits until you call the send_software_edge_trigger method to assert the trigger. - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - ''' - self._interpreter.configure_software_edge_advance_trigger() - - @ivi_synchronized - def configure_software_edge_ref_trigger(self, pretrigger_samples=0): - r'''configure_software_edge_ref_trigger - - Configures the device to wait for a software Reference Trigger to mark a reference point within the record. - - The device waits until you call the send_software_edge_trigger method to assert the trigger. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - Args: - pretrigger_samples (int): Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. - - ''' - self._interpreter.configure_software_edge_ref_trigger(pretrigger_samples) - - @ivi_synchronized - def configure_software_edge_start_trigger(self): - r'''configure_software_edge_start_trigger - - Configures the device to wait for a software Start Trigger at the beginning of the acquisition. - - The device waits until you call the send_software_edge_trigger method to assert the trigger. - - You can use this trigger with the `NI-TClk API `_. - - ---- - **Note** - The PXIe-5644/5645/5646 does not support the NI-TClk API. - - ---- - - ---- - **Note** - This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - ''' - self._interpreter.configure_software_edge_start_trigger() - - @ivi_synchronized - def _create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): - r'''_create_deembedding_sparameter_table_array - - Creates an s-parameter de-embedding table for the port from the input data. - - If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview `_ - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. - - sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. - - **Defined Values** : - - +-----------------------------------------+-----------------------------------------------------+ - | Name | Description | - +=========================================+=====================================================+ - | SparameterOrientation.PORT1_TOWARDS_DUT | Port 1 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+-----------------------------------------------------+ - | SparameterOrientation.PORT2_TOWARDS_DUT | Port 2 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+-----------------------------------------------------+ - - ''' - import numpy - - if type(sparameter_orientation) is not enums.SparameterOrientation: - raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) - if type(frequencies) is not numpy.ndarray: - raise TypeError('frequencies must be {0}, is {1}'.format(numpy.ndarray, type(frequencies))) - if numpy.isfortran(frequencies) is True: - raise TypeError('frequencies must be in C-order') - if frequencies.dtype is not numpy.dtype('float64'): - raise TypeError('frequencies must be numpy.ndarray of dtype=float64, is ' + str(frequencies.dtype)) - if frequencies.ndim != 1: - raise TypeError('frequencies must be numpy.ndarray of dimension=1, is ' + str(frequencies.ndim)) - if type(sparameter_table) is not numpy.ndarray: - raise TypeError('sparameter_table must be {0}, is {1}'.format(numpy.ndarray, type(sparameter_table))) - if numpy.isfortran(sparameter_table) is True: - raise TypeError('sparameter_table must be in C-order') - if sparameter_table.dtype is not numpy.dtype('complex128'): - raise TypeError('sparameter_table must be numpy.ndarray of dtype=complex128, is ' + str(sparameter_table.dtype)) - if sparameter_table.ndim != 3: - raise TypeError('sparameter_table must be numpy.ndarray of dimension=3, is ' + str(sparameter_table.ndim)) - self._interpreter.create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) - - @ivi_synchronized - def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): - r'''create_deembedding_sparameter_table_s2p_file - - Creates an S-parameter de-embedding table for the port based on the specified S2P file. - - If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview `_ - - `S-parameters `_ - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - s2p_file_path (str): Specifies the path to the S2P file that contains de-embedding information for the specified port. - - sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : - - +-----------------------------------------+-----------------------------------------------------+ - | Name | Description | - +=========================================+=====================================================+ - | SparameterOrientation.PORT1_TOWARDS_DUT | Port 1 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+-----------------------------------------------------+ - | SparameterOrientation.PORT2_TOWARDS_DUT | Port 2 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+-----------------------------------------------------+ - - ''' - if type(sparameter_orientation) is not enums.SparameterOrientation: - raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) - self._interpreter.create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) - - @ivi_synchronized - def delete_all_deembedding_tables(self): - r'''delete_all_deembedding_tables - - Deletes all configured de-embedding tables for the session. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - ''' - self._interpreter.delete_all_deembedding_tables() - - @ivi_synchronized - def delete_deembedding_table(self, port, table_name): - r'''delete_deembedding_table - - Deletes the selected de-embedding table for a given port. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - ''' - self._interpreter.delete_deembedding_table(port, table_name) - - @ivi_synchronized - def disable_advance_trigger(self): - r'''disable_advance_trigger - - Configures the device to not use an Advance Trigger. - - This method is necessary only if you configured an Advance Trigger in the past and now want to disable it. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - ''' - self._interpreter.disable_advance_trigger() - - @ivi_synchronized - def disable_ref_trigger(self): - r'''disable_ref_trigger - - Configures the device to not wait for a Reference Trigger to mark a reference point within a record. - - This method is necessary only if you previously configured a Reference trigger in the past and now want to disable it. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - ''' - self._interpreter.disable_ref_trigger() - - @ivi_synchronized - def disable_start_trigger(self): - r'''disable_start_trigger - - Configures the device to not wait for a Start Trigger at the beginning of the acquisition. - - This method is necessary only if you previously configured a Start Trigger in the past and now want to disable it. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - ''' - self._interpreter.disable_start_trigger() - - @ivi_synchronized - def enable_session_access(self, enable): - r'''enable_session_access - - Enables or disables SFP session access for the specified instrument. - - SFP session access allows the NI-RFSA Soft Front Panel (SFP) to access a device with an existing open session and can help you debug your code. To enable session access, pass True to the **enabled** parameter. To disable session access, pass False to the **enabled** parameter. - - Refer to `Configuring SFP Session Access using LabWindows/CVI or C `_ for more information about SFP session access. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 - - ---- - **Note** - NI-RFSA does not support NI-TClk when driver session debugging is enabled. - - ---- - - Args: - enable (bool): Enables or disables SFP session access for the specified device. - - | Value | Description | - |:---------|:-------------------------| - | True | Enables session access. | - | False | Disables session access. | - - ''' - self._interpreter.enable_session_access(enable) - - def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, sparameter_orientation): - '''create_deembedding_sparameter_table_array - - Creates an s-parameter de-embedding table for the port from the input data. - - If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview`_ - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. - - sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. - - **Defined Values** : - - +-----------------------------------------+-----------------------------------------------------+ - | Name | Description | - +=========================================+=====================================================+ - | SparameterOrientation.PORT1_TOWARDS_DUT | Port 1 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+-----------------------------------------------------+ - | SparameterOrientation.PORT2_TOWARDS_DUT | Port 2 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+-----------------------------------------------------+ - - ''' - if (str(type(sparameter_table)).find("'numpy.ndarray'") != -1) or (str(type(frequencies)).find("'numpy.ndarray'") != -1): - if sparameter_table.ndim == 3: - if frequencies.size == sparameter_table.shape[0]: - if sparameter_table.shape[1] == sparameter_table.shape[2]: - number_of_ports = sparameter_table.shape[1] - return self._create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) - else: - raise ValueError("Row and column count of sparameter table should be equal. Table row count is {} and column count is {}.".format(sparameter_table.shape[1], sparameter_table.shape[2])) - else: - raise ValueError("Frequencies count does not match the sparameter table count. Frequencies count is {} and sparameter table count is {}.".format(frequencies.size, sparameter_table.shape[0])) - else: - raise ValueError("Unsupported array dimension. Is {}, expected 3".format(sparameter_table.ndim)) - else: - raise TypeError("Unsupported datatype. Expected numpy array.") - - def get_deembedding_sparameters(self): - r'''get_deembedding_sparameters - - Returns the S-parameters used for de-embedding a measurement on the selected port. - - This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. - - If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Note: The port orientation for the returned S-parameters is normalized to SparameterOrientation.PORT1_TOWARDS_DUT. - - Returns: - sparameters (numpy.array(dtype=numpy.complex128)): Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. - - ''' - sparameters = self._interpreter.get_deembedding_sparameters() - return sparameters - - @ivi_synchronized - def _get_ext_cal_last_date_and_time(self): - r'''_get_ext_cal_last_date_and_time - - Returns the date and time of the last successful external calibration. - - The time returned is 24-hour local time, and the date is returned as integer values. For example, if the device was calibrated at 2:30 PM on December 31, 2010, this method returns 14 for the HOUR parameter, 30 for the MINUTE parameter, 12 for the MONTH parameter, 31 for the DAY parameter, and 2010 for the YEAR parameter. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Returns: - year (int): Returns the year of the last external calibration. - - month (int): Returns the month of the last external calibration. - - day (int): Returns the day of the last external calibration. - - hour (int): Returns the hour of the last external calibration. - - minute (int): Returns the minute of the last external calibration. - - ''' - year, month, day, hour, minute = self._interpreter.get_ext_cal_last_date_and_time() - return year, month, day, hour, minute - - @ivi_synchronized - def get_ext_cal_recommended_interval(self): - r'''get_ext_cal_recommended_interval - - Returns the recommended interval between external calibrations, in months. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Returns: - months (hightime.timedelta, datetime.timedelta, or int in months): Returns the recommended maximum interval between external calibrations, in months. - - ''' - months = self._interpreter.get_ext_cal_recommended_interval() - return _converters.convert_month_to_timedelta(months) - - @ivi_synchronized - def get_ext_cal_last_date_and_time(self): - '''get_ext_cal_last_date_and_time - - Returns the date and time of the last successful external calibration. - - The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Returns: - last_cal_datetime (hightime.datetime): - - ''' - year, month, day, hour, minute = self._get_ext_cal_last_date_and_time() - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def get_self_cal_last_date_and_time(self, self_calibration_step): - '''get_self_cal_last_date_and_time - - Returns the date and time of the last successful self-calibration. - - The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - self_calibration_step (enums.SelfCalibrationStep): Specifies the self-calibration step to query for the last successful self-calibration date and time data. - - - Returns: - last_cal_datetime (hightime.datetime): - - ''' - year, month, day, hour, minute = self._get_self_cal_last_date_and_time(self_calibration_step) - return hightime.datetime(year, month, day, hour, minute) - - @ivi_synchronized - def _get_self_cal_last_date_and_time(self, self_calibration_step): - r'''_get_self_cal_last_date_and_time - - Returns the date and time of the last successful self-calibration. - - The time returned is 24-hour local time, and the date is returned as integer values. For example, if the device was calibrated at 2:30 PM on December 31, 2010, this method returns 14 for the HOUR parameter, 30 for the MINUTE parameter, 12 for the MONTH parameter, 31 for the DAY parameter, and 2010 for the YEAR parameter. - - ---- - **Note** - For the PXIe-5644/5645/5646, you must select NIRFSA_VAL_SELF_CAL_IMAGE_SUPPRESSION for the **SELF_CALIBRATION_STEP** parameter. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Args: - self_calibration_step (Bitwise combination of enums.SelfCalibrationStep flags): Specifies the self-calibration step to query for the last successful self-calibration date and time data. - - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | Name | Description | - +===========================================+=================================================================================================+ - | SelfCalibrationStep.PRESELECTOR_ALIGNMENT | Calls for preselector alignment. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.GAIN_REFERENCE | Measures the changes in gain since the last external calibration was run. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.IF_FLATNESS | Measures the IF response of the entire system for each of the supported IF filters | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.DIGITIZER_SELF_CAL | Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.LO_SELF_CAL | Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.AMPLITUDE_ACCURACY | Selects the Amplitude Accuracy self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.RESIDUAL_LO_POWER | Selects the Residual LO Power self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.IMAGE_SUPPRESSION | Selects the Image Suppression self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.SYNTHESIZER_ALIGNMENT | Selects the Synthesizer Alignment self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.DC_OFFSET | Selects the DC Offset self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - - - Returns: - year (int): Returns the year of the last external calibration. - - month (int): Returns the month of the last external calibration. - - day (int): Returns the day of the last external calibration. - - hour (int): Returns the year of the last external calibration. It is expressed as an integer. - - minute (int): Returns the minute of the last external calibration. - - ''' - if type(self_calibration_step) is not enums.SelfCalibrationStep: - raise TypeError('Parameter self_calibration_step must be of type ' + str(enums.SelfCalibrationStep)) - year, month, day, hour, minute = self._interpreter.get_self_cal_last_date_and_time(self_calibration_step) - return year, month, day, hour, minute - - @ivi_synchronized - def get_self_calibration_temperature(self, self_calibration_step): - r'''get_self_calibration_temperature - - Returns the temperature, in degrees Celsius, at the last successful self-calibration. - - ---- - **Note** - For the PXIe-5644/5645/5646, you must select NIRFSA_VAL_SELF_CAL_IMAGE_SUPPRESSION for the **selfCalibrationStep** parameter. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Args: - self_calibration_step (Bitwise combination of enums.SelfCalibrationStep flags): Specifies the self-calibration step to query for the last successful self-calibration date and time data. - - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | Name | Description | - +===========================================+=================================================================================================+ - | SelfCalibrationStep.PRESELECTOR_ALIGNMENT | Calls for preselector alignment. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.GAIN_REFERENCE | Measures the changes in gain since the last external calibration was run. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.IF_FLATNESS | Measures the IF response of the entire system for each of the supported IF filters | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.DIGITIZER_SELF_CAL | Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.LO_SELF_CAL | Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.AMPLITUDE_ACCURACY | Selects the Amplitude Accuracy self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.RESIDUAL_LO_POWER | Selects the Residual LO Power self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.IMAGE_SUPPRESSION | Selects the Image Suppression self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.SYNTHESIZER_ALIGNMENT | Selects the Synthesizer Alignment self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - | SelfCalibrationStep.DC_OFFSET | Selects the DC Offset self-calibration step. | - +-------------------------------------------+-------------------------------------------------------------------------------------------------+ - - - Returns: - temperature (float): Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. - - ''' - if type(self_calibration_step) is not enums.SelfCalibrationStep: - raise TypeError('Parameter self_calibration_step must be of type ' + str(enums.SelfCalibrationStep)) - temperature = self._interpreter.get_self_calibration_temperature(self_calibration_step) - return temperature - - @ivi_synchronized - def get_terminal_name(self, signal, signal_identifier=""): - r'''get_terminal_name - - Returns the fully qualified name of the signal being queried. - - Signals can be triggers, clocks, or events. - - You can pass the **TERMINAL_NAME** parameter that is returned to the **source** parameter of a configure trigger method. - - **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - signal (enums.Signal): Specifies the signal for which you want to query the terminal. - - +------------------------------+----------------------------------------------+ - | Name | Description | - +==============================+==============================================+ - | Signal.START_TRIGGER | NI-RFSA routes a Start Trigger. | - +------------------------------+----------------------------------------------+ - | Signal.REF_TRIGGER | NI-RFSA routes a Reference | - +------------------------------+----------------------------------------------+ - | Signal.ADVANCE_TRIGGER | NI-RFSA routes an Advance | - +------------------------------+----------------------------------------------+ - | Signal.READY_FOR_START_EVENT | NI-RFSA routes a Ready for Start Event. | - +------------------------------+----------------------------------------------+ - | Signal.READY_FOR_REF_EVENT | NI-RFSA routes a Ready for Reference Event.. | - +------------------------------+----------------------------------------------+ - | Signal.END_OF_RECORD_EVENT | NI-RFSA routes a End of Record Event. | - +------------------------------+----------------------------------------------+ - | Signal.DONE_EVENT | NI-RFSA routes a Done Event. | - +------------------------------+----------------------------------------------+ - | Signal.REF_CLOCK | NI-RFSA routes a Reference Clock. | - +------------------------------+----------------------------------------------+ - | Signal.USER | NI-RFSA routes a User Defined Signal. | - +------------------------------+----------------------------------------------+ - - signal_identifier (str): Specifies a particular instance of a trigger. NI-RFSA does not support this parameter. - - - Returns: - terminal_name (str): Returns the fully qualified name of the signal being queried. - - ''' - if type(signal) is not enums.Signal: - raise TypeError('Parameter signal must be of type ' + str(enums.Signal)) - terminal_name = self._interpreter.get_terminal_name(signal, signal_identifier) - return terminal_name - - def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): - r'''_init_with_options - - Creates a new session for the device. - - This method sets the initial value of certain properties and sends initialization commands to reset all hardware modules to a known state necessary for NI-RFSA operation. - - To create a new session, pass the downconverter resource name for the RF vector signal analyzer to the **resource name** parameter. - - You can access the device session this VI creates using the NI-RFSA Soft Front Panel (SFP). Accessing the device session with the SFP can help you debug your code. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about accessing your session with the SFP. - - ---- - **Note** - Before initializing your device, you must first associate the modules that comprise your device in MAX. After associating the modules, pass the resource name of the device to this method to initialize all the modules. Refer to `Associating NI-RFSA Modules `_ for information about MAX association. - - ---- - - ---- - **Note** - For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending *ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Driver Setup Options `_ - - Args: - resource_name (str): Specifies the resource name of the device to initialize. - - For NI-RFSA devices, the syntax is the device name specified in MAX. The typical default name for your device in MAX is PXI1Slot2. You can rename your device by right-clicking the name in MAX, selecting **Rename** from the drop-down menu, and entering a new name. You can also pass in the name of an IVI logical name configured with the IVI Configuration utility. For additional information, refer to the **Installed Devices IVI** topic of the *Measurement & Automation Explorer Help*. - - Device names are not case-sensitive. However, IVI logical names are case-sensitive. If you use an IVI logical name, verify the name is identical to the name shown in the IVI Configuration Utility. - - id_query (bool): Specifies whether you want NI-RFSA to perform an ID query. - - **Defined Values** : - - +--------------------------+ - | Description | - +==========================+ - | Perform ID query. | - +--------------------------+ - | Do not perform ID query. | - +--------------------------+ - - reset_device (bool): Specifies whether the NI-RFSA device is reset during the initialization procedure. - - **Defined Values** : - - +----------------------+ - | Description | - +======================+ - | Reset the device. | - +----------------------+ - | Do not reset device. | - +----------------------+ - - option_string (dict): Sets the initial value of certain properties for the session. The properties shown in the following table are used in this parameter. - - | Name | Property | - |:-----------------|:-------------------------------------------------------------------------------------------------------------------------------------------| - | RangeCheck | RANGE_CHECK | - | QueryInstrStatus | QUERY_INSTRUMENT_STATUS | - | Cache | CACHE | - | RecordCoercions | RECORD_COERCIONS | - | DriverSetup | driver_setup | - | Simulate | SIMULATE | - - The format of this string is *AttributeName=Value*, where *AttributeName* is the name of the property and *Value* is the value to which the property will be set. For example, you can simulate the PXIe-5663 using the following strings: - - *Simulate=1, DriverSetup=Model:5663\E*. - - *Simulate=1, DriverSetup=Model:5601*; *Digitizer:5622; LO:5652; LOBoardType:PXIe*. - - To set multiple properties, separate their assignments with a comma. - - Refer to `Driver Setup Options `_ for more information about the driver setup string. - - Note: To simulate a device using the PXIe-5622 25 MHz digitizer, set the *Digitizer* field to 5622_25MHz_DDC and the *Simulate* field to 1. You can set the *Digitizer* field to 5622_25MHz_DDC only when using the PXIe-5665. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - - Returns: - new_vi (int): Identifies your instrument session. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - new_vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) - return new_vi - - @ivi_synchronized - def _initiate(self): - r'''_initiate - - Commits settings to hardware, waits for hardware settling, and starts an acquisition. - - You can use this method in conjunction with one of the niRFSA fetch I/Q methods to retrieve acquired I/Q data, or you can use the read IQ single record complex F64 method to both initiate the acquisition and retrieve I/Q data at one time. - - ---- - **Note** - If you are using external digitizer mode, this method commits settings and waits for settling, but it does not start an acquisition. Notice that using the commit method on its own commits settings to hardware, but the device does not wait for hardware settling. - - ---- - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `None (Trigger Type) `_ - - `RF List Mode `_ - - `NI RF Vector Signal Analyzer State Diagram `_ - ''' - self._interpreter.initiate() - - @ivi_synchronized - def is_self_cal_valid(self): - r'''is_self_cal_valid - - Indicates which calibration steps contain valid calibration data. - - To omit steps with valid calibration data from self-calibration, you can pass the **VALID_STEPS** parameter to the **stepsToOmit** parameter of the SelfCalibrate method. - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Returns: - self_cal_valid (bool): Returns True if all the calibration data is valid and False if any of the calibration data is invalid. - - valid_steps (Bitwise combination of enums.SelfCalSteps flags): Returns valid steps. - - ---- - If two or more calibration steps are valid, this parameter returns a bitwise-OR combination of the calibration steps. For example, if both SelfCalSteps.IF_FLATNESS and SelfCalSteps.LO_SELF_CAL steps are valid, NI-RFSA returns the following string: - - SelfCalSteps.IF_FLATNESS | - - SelfCalSteps.LO_SELF_CAL - - ---- - - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +====================================+=====================================================================================================================+ - | SelfCalSteps.DIGITIZER_SELF_CAL | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.PRESELECTOR_ALIGNMENT | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.OMIT_NONE | No calibration steps are omitted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.GAIN_REFERENCE | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.IF_FLATNESS | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.LO_SELF_CAL | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.AMPLITUDE_ACCURACY | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.RESIDUAL_LO_POWER | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.IMAGE_SUPPRESSION | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.SYNTHESIZER_ALIGNMENT | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalSteps.DC_OFFSET | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - self_cal_valid, valid_steps = self._interpreter.is_self_cal_valid() - return self_cal_valid, valid_steps - - @ivi_synchronized - def perform_thermal_correction(self): - r'''perform_thermal_correction - - Corrects for temperature variations while acquiring the same signal for an extended period of time in a continuous acquisition. - - NI-RFSA internally acquires the temperature every time you initiate an acquisition. If you are performing a continuous acquisition, National Instruments recommends calling this method once every 10 minutes in a stable temperature environment to periodically update temperature calibration. If the ambient temperature varies, call this method more frequently. - - ---- - **Note** - You cannot call this method if your device is operating in `RF list mode `_. - - ---- - - Refer to the *Thermal Management* section for your device for more information about typical operating temperatures. - - **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842 - ''' - self._interpreter.perform_thermal_correction() - - @ivi_synchronized - def reset_device(self): - r'''reset_device - - Performs a hard reset on the device. - - A hard reset consists of the following actions: - - - Signal acquisition is stopped. - - All routes are released. - - External bidirectional terminals are tristated. - - FPGAs are reset. - - Hardware is configured to its default state. - - All session properties are reset to their default states. - - During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. For example, a trigger signal exported to a PXI trigger line that is used by another device is no longer exported. - - On the PXI-5600, if you are driving the PXI_CLK10 line, you continue to drive the clock even after a device reset. To stop driving the PXI_CLK10 line, use the ConfigurePxiChassisClk10 method and set the **pxiClk10Source** parameter to NIRFSA_VAL_NONE or set the PXI_CHASSIS_CLK10_SOURCE property to NIRFSA_VAL_NONE. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - self._interpreter.reset_device() - - @ivi_synchronized - def reset_with_options(self, steps_to_omit): - r'''reset_with_options - - Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. - - For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Star Trigger Controller Slot, also known as the System Timing Slot. - - By default, this method resets all properties to their default values, deletes all de-embedding tables, aborts generation, clears all routes, and resets session properties to initial values. You can specify steps to omit using the steps to omit parameter. For example, if you specify NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES for the **STEPS_TO_OMIT** parameter, this method does not release signal routes during the reset process. - - When routes of signals between two devices are released, they are released regardless of which device created the route. - - To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSG sessions, NI recommends using this method instead of Reset, with **STEPS_TO_OMIT** set to NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Args: - steps_to_omit (Bitwise combination of enums.ResetWithOptionsStepsToOmit flags): Specifies a list of steps to skip during the reset process. The default value is ResetWithOptionsStepsToOmit.NONE, which specifies that no step is omitted during reset. - - Note:ResetWithOptionsStepsToOmit.ROUTES is not supported in external calibration or alignment sessions. - - Note:ResetWithOptionsStepsToOmit.ROUTES is not supported for the PXI-5600/5661. - - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +================================================+============================================================================================================================================================================================================+ - | ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.NONE | No step is omitted during reset. | - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.ROUTES | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | - +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(steps_to_omit) is not enums.ResetWithOptionsStepsToOmit: - raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.ResetWithOptionsStepsToOmit)) - self._interpreter.reset_with_options(steps_to_omit) - - @ivi_synchronized - def self_calibrate_range(self, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): - r'''self_calibrate_range - - Self-calibrates all configurations within the specified frequency and reference level limits. - - Self-calibration range data is valid until you restart the system or call the clear_self_calibrate_range method. - - NI recommends that no external signals are present on the RF In port while the calibration is taking place. - - ---- - **Note** - This method does not update self-calibration date and temperature. - - ---- - - For best results, NI recommends that you perform a complete self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit that step for faster execution. - - ---- - **Note** - If there is an existing NI-RFSG session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate. - - ---- - - ---- - **Note** - If there is an existing NI-RFSG session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. - - ---- - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - Args: - steps_to_omit (Bitwise combination of enums.SelfCalibrateRangeStepsToOmit flags): Specifies which calibration steps to skip as part of the self-calibration process. A value of 0 specifies all supported calibration steps are performed. - - ---- - - To omit two or more calibration steps, specify a bitwise-OR combination of the following constants. For example, if you wanted to omit SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY and SelfCalibrateRangeStepsToOmit.LO_SELF_CAL, you would pass the following string to the SelfCalibrate method: SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY | SelfCalibrateRangeStepsToOmit.LO_SELF_CAL - - ---- - - | Value | Description | - |:------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| - | NIRFSA_VAL_RESET_WITH_OPTIONS_NONE | No step is omitted during self-calibration. | - | SelfCalibrateRangeStepsToOmit.PRESELECTOR_ALIGNMENT | Not used by this method. | - | SelfCalibrateRangeStepsToOmit.GAIN_REFERENCE | Not used by this method. | - | SelfCalibrateRangeStepsToOmit.IF_FLATNESS | Not used by this method. | - | SelfCalibrateRangeStepsToOmit.DIGITIZER_SELF_CAL | Not used by this method. | - | SelfCalibrateRangeStepsToOmit.LO_SELF_CAL | Omits the Local Oscillator (LO) Self Cal step. If you omit this step and the is_self_cal_valid method indicates the calibration data for this step is invalid, the LO phase-locked loop (PLL) may fail to lock. | - | SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY | Omits the Amplitude Accuracy step. If you omit this step, the absolute accuracy of the device is not adjusted. | - | SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | - |SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image Performance is not adjusted. | - | SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT | Omits the Synthesizer Alignment step. If you omit this step, the LO PLL is not adjusted. This step is not valid for the PXIe-5820. | - | SelfCalibrateRangeStepsToOmit.DC_OFFSET | Omits the DC Offset step. This step applies only to the PXIe-5820. | - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - minimum_frequency (float): Specifies the minimum RF frequency in Hz. - - maximum_frequency (float): Specifies the maximum RF frequency in Hz. - - minimum_reference_level (float): Specifies the minimum reference level in dBm. - - maximum_reference_level (float): Specifies the maximum reference level in dBm. - - ''' - if type(steps_to_omit) is not enums.SelfCalibrateRangeStepsToOmit: - raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.SelfCalibrateRangeStepsToOmit)) - self._interpreter.self_calibrate_range(steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level) - - @ivi_synchronized - def send_software_edge_trigger(self, trigger, trigger_identifier=""): - r'''send_software_edge_trigger - - Sends a trigger to the device when you use a software version of a supported trigger and the device is waiting for the trigger to be sent. - - You can also use this method to override a hardware trigger. - - This method returns an error in the following situations: - - - You configure an invalid trigger. - - You set the **acquisitionType** to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method. - - You have not previously called the _initiate method. - - **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Software Trigger `_ - - `Triggers `_ - - Args: - trigger (enums.SoftwareTriggerType): Specifies the trigger to send. - - **Default Value:** SoftwareTriggerType.START - - **Defined Values:** - - +---------------------------+-------------------------------+ - | Name | Description | - +===========================+===============================+ - | SoftwareTriggerType.START | Specifies the Start Trigger. | - +---------------------------+-------------------------------+ - | NIRFSA_VAL_SCRIPT_TRIGGER | Specifies the Script Trigger. | - +---------------------------+-------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - trigger_identifier (str): Specifies a particular instance of a trigger. NI-RFSA does not currently support this parameter. - - ''' - if type(trigger) is not enums.SoftwareTriggerType: - raise TypeError('Parameter trigger must be of type ' + str(enums.SoftwareTriggerType)) - self._interpreter.send_software_edge_trigger(trigger, trigger_identifier) - - def _close(self): - r'''_close - - Closes the session to the device. - - If you close a session that has Soft Front Panel (SFP) session access enabled, any application connected to the shared device session is no longer usable. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about using SFP session access. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Performs a self-test on the NI-RFSA device and returns the test results. - - This method performs a simple series of tests to ensure that the NI-RFSA device is powered up and responding. - - This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSA device must be in the Configuration state before you call this method. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Device Warm-Up `_ - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def reset(self): - r'''reset - - Resets all properties to default values, deletes all de-embedding tables, and stops the export of all external signals and events. - - For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Trigger Controller Slot, also known as the System Timing Slot. - - This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. To avoid resetting routes on the device that are in use by NI-RFSG sessions, NI recommends using the reset_with_options method, with **stepsToOmit** set to NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES. - - **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Performs a self-test on the NI-RFSA device and returns the test results. - - This method performs a simple series of tests to ensure that the NI-RFSA device is powered up and responding. - - This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSA device must be in the Configuration state before you call this method. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Device Warm-Up `_ - - Returns: - self_test_result (int): This parameter contains the value returned from the NI-RFSA device self test. - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Self test passed | - +----------------+------------------+ - | 1 | Self test failed | - +----------------+------------------+ - - self_test_message (str): Returns the self-test response string from the NI-RFSA device. For an explanation of the string contents, refer to the **status** parameter of this method. - - You must pass a ViChar array with at least 256 bytes. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/nirfsa/nirfsa/spectrum_info_type.py b/generated/nirfsa/nirfsa/spectrum_info_type.py deleted file mode 100644 index 33c736abff..0000000000 --- a/generated/nirfsa/nirfsa/spectrum_info_type.py +++ /dev/null @@ -1,112 +0,0 @@ -import ctypes -import nirfsa._visatype - - -# This class is an internal ctypes implementation detail that corresponds to -# niRFSA_spectrumInfo in the C API -class struct_niRFSA_spectrumInfo(ctypes.Structure): # noqa N801 - _pack_ = 8 - _fields_ = [ - ('initial_frequency', nirfsa._visatype.ViReal64), - ('frequency_increment', nirfsa._visatype.ViReal64), - ('number_of_spectral_lines', nirfsa._visatype.ViInt32), - ('reserved1', nirfsa._visatype.ViReal64), - ('reserved2', nirfsa._visatype.ViReal64), - ('reserved3', nirfsa._visatype.ViReal64), - ('reserved4', nirfsa._visatype.ViReal64), - ('reserved5', nirfsa._visatype.ViReal64), - ] - - def __init__(self, data=None, initial_frequency=0.0, frequency_increment=0.0, - number_of_spectral_lines=0, reserved1=0.0, reserved2=0.0, - reserved3=0.0, reserved4=0.0, reserved5=0.0): - super(ctypes.Structure, self).__init__() - if data is not None: - self.initial_frequency = data.initial_frequency - self.frequency_increment = data.frequency_increment - self.number_of_spectral_lines = data.number_of_spectral_lines - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - self.reserved3 = data.reserved3 - self.reserved4 = data.reserved4 - self.reserved5 = data.reserved5 - else: - self.initial_frequency = initial_frequency - self.frequency_increment = frequency_increment - self.number_of_spectral_lines = number_of_spectral_lines - self.reserved1 = reserved1 - self.reserved2 = reserved2 - self.reserved3 = reserved3 - self.reserved4 = reserved4 - self.reserved5 = reserved5 - - -class SpectrumInfo: - """Python-friendly wrapper for niRFSA spectrum info.""" - - def __init__(self, data=None, initial_frequency=0.0, frequency_increment=0.0, - number_of_spectral_lines=0, reserved1=0.0, reserved2=0.0, - reserved3=0.0, reserved4=0.0, reserved5=0.0): - if data is not None: - self.initial_frequency = data.initial_frequency - self.frequency_increment = data.frequency_increment - self.number_of_spectral_lines = data.number_of_spectral_lines - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - self.reserved3 = data.reserved3 - self.reserved4 = data.reserved4 - self.reserved5 = data.reserved5 - else: - self.initial_frequency = initial_frequency - self.frequency_increment = frequency_increment - self.number_of_spectral_lines = number_of_spectral_lines - self.reserved1 = reserved1 - self.reserved2 = reserved2 - self.reserved3 = reserved3 - self.reserved4 = reserved4 - self.reserved5 = reserved5 - - def _create_copy(self, target_class): - try: - return target_class( - initial_frequency=self.initial_frequency, - frequency_increment=self.frequency_increment, - number_of_spectral_lines=self.number_of_spectral_lines, - reserved1=self.reserved1, - reserved2=self.reserved2, - reserved3=self.reserved3, - reserved4=self.reserved4, - reserved5=self.reserved5, - ) - except TypeError: - return target_class(data=self) - - def __repr__(self): - return "{}.{}(initial_frequency={}, frequency_increment={}, number_of_spectral_lines={}, reserved1={}, reserved2={}, reserved3={}, reserved4={}, reserved5={})".format( - self.__class__.__module__, - self.__class__.__qualname__, - self.initial_frequency, - self.frequency_increment, - self.number_of_spectral_lines, - self.reserved1, - self.reserved2, - self.reserved3, - self.reserved4, - self.reserved5, - ) - - def __str__(self): - return self.__repr__() - - -def _populate_samples_info(spectrum_info, sample_data): - '''Chunk up flat array of sample_data and copy each chunk into individual SpectrumInfo instance - - Args: - spectrum_info (SpectrumInfo): SpectrumInfo class instance - - sample_data (Iterable of float): Spectrum sample data - ''' - start = 0 - end = start + spectrum_info.number_of_spectral_lines - spectrum_info.samples = sample_data[start:end] diff --git a/generated/nirfsa/nirfsa/unit_tests/_matchers.py b/generated/nirfsa/nirfsa/unit_tests/_matchers.py deleted file mode 100644 index 6236713ee1..0000000000 --- a/generated/nirfsa/nirfsa/unit_tests/_matchers.py +++ /dev/null @@ -1,369 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nirfsa._complextype as _complextype -import nirfsa._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -def _compare_complex_number_arrays(expected, actual): - for i in range(expected.expected_size): - expected_value = expected.expected_data[i] - actual_value = actual[i] - if expected_value.real != actual_value.real or expected_value.imag != actual_value.imag: - return False - return True - - -class NIComplexNumberPointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexNumber) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexNumberPointerMatcher({self.expected_data})" - - -class NIComplexNumberF32PointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexNumberF32) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexNumberF32PointerMatcher({self.expected_data})" - - -class NIComplexI16PointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexI16) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexI16PointerMatcher({self.expected_data})" - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nirfsa/nirfsa/unit_tests/_mock_helper.py b/generated/nirfsa/nirfsa/unit_tests/_mock_helper.py deleted file mode 100644 index 579b09b471..0000000000 --- a/generated/nirfsa/nirfsa/unit_tests/_mock_helper.py +++ /dev/null @@ -1,1043 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['Abort'] = {} - self._defaults['Abort']['return'] = 0 - self._defaults['ChangeExternalCalibrationPassword'] = {} - self._defaults['ChangeExternalCalibrationPassword']['return'] = 0 - self._defaults['CheckAcquisitionStatus'] = {} - self._defaults['CheckAcquisitionStatus']['return'] = 0 - self._defaults['CheckAcquisitionStatus']['isDone'] = None - self._defaults['ClearSelfCalibrateRange'] = {} - self._defaults['ClearSelfCalibrateRange']['return'] = 0 - self._defaults['Commit'] = {} - self._defaults['Commit']['return'] = 0 - self._defaults['ConfigureDeembeddingTableInterpolationLinear'] = {} - self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] = 0 - self._defaults['ConfigureDeembeddingTableInterpolationNearest'] = {} - self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] = 0 - self._defaults['ConfigureDeembeddingTableInterpolationSpline'] = {} - self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] = 0 - self._defaults['ConfigureDigitalEdgeAdvanceTrigger'] = {} - self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] = 0 - self._defaults['ConfigureDigitalEdgeRefTrigger'] = {} - self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] = 0 - self._defaults['ConfigureDigitalEdgeStartTrigger'] = {} - self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] = 0 - self._defaults['ConfigureIQPowerEdgeRefTrigger'] = {} - self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] = 0 - self._defaults['ConfigureRefClock'] = {} - self._defaults['ConfigureRefClock']['return'] = 0 - self._defaults['ConfigureSoftwareEdgeAdvanceTrigger'] = {} - self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] = 0 - self._defaults['ConfigureSoftwareEdgeRefTrigger'] = {} - self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] = 0 - self._defaults['ConfigureSoftwareEdgeStartTrigger'] = {} - self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] = 0 - self._defaults['ConfigureSpectrumFrequencyCenterSpan'] = {} - self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] = 0 - self._defaults['ConfigureSpectrumFrequencyStartStop'] = {} - self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] = 0 - self._defaults['CreateDeembeddingSparameterTableArray'] = {} - self._defaults['CreateDeembeddingSparameterTableArray']['return'] = 0 - self._defaults['CreateDeembeddingSparameterTableS2PFile'] = {} - self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] = 0 - self._defaults['DeleteAllDeembeddingTables'] = {} - self._defaults['DeleteAllDeembeddingTables']['return'] = 0 - self._defaults['DeleteDeembeddingTable'] = {} - self._defaults['DeleteDeembeddingTable']['return'] = 0 - self._defaults['DisableAdvanceTrigger'] = {} - self._defaults['DisableAdvanceTrigger']['return'] = 0 - self._defaults['DisableRefTrigger'] = {} - self._defaults['DisableRefTrigger']['return'] = 0 - self._defaults['DisableStartTrigger'] = {} - self._defaults['DisableStartTrigger']['return'] = 0 - self._defaults['EnableSessionAccess'] = {} - self._defaults['EnableSessionAccess']['return'] = 0 - self._defaults['ErrorMessage'] = {} - self._defaults['ErrorMessage']['return'] = 0 - self._defaults['ErrorMessage']['errorMessage'] = None - self._defaults['FetchIQMultiRecordComplexF32'] = {} - self._defaults['FetchIQMultiRecordComplexF32']['return'] = 0 - self._defaults['FetchIQMultiRecordComplexF32']['wfmInfo'] = None - self._defaults['FetchIQMultiRecordComplexF64'] = {} - self._defaults['FetchIQMultiRecordComplexF64']['return'] = 0 - self._defaults['FetchIQMultiRecordComplexF64']['wfmInfo'] = None - self._defaults['FetchIQMultiRecordComplexI16'] = {} - self._defaults['FetchIQMultiRecordComplexI16']['return'] = 0 - self._defaults['FetchIQMultiRecordComplexI16']['wfmInfo'] = None - self._defaults['FetchIQSingleRecordComplexF32'] = {} - self._defaults['FetchIQSingleRecordComplexF32']['return'] = 0 - self._defaults['FetchIQSingleRecordComplexF32']['wfmInfo'] = None - self._defaults['FetchIQSingleRecordComplexF64'] = {} - self._defaults['FetchIQSingleRecordComplexF64']['return'] = 0 - self._defaults['FetchIQSingleRecordComplexF64']['wfmInfo'] = None - self._defaults['FetchIQSingleRecordComplexI16'] = {} - self._defaults['FetchIQSingleRecordComplexI16']['return'] = 0 - self._defaults['FetchIQSingleRecordComplexI16']['wfmInfo'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['value'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['value'] = None - self._defaults['GetAttributeViInt64'] = {} - self._defaults['GetAttributeViInt64']['return'] = 0 - self._defaults['GetAttributeViInt64']['value'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['value'] = None - self._defaults['GetAttributeViSession'] = {} - self._defaults['GetAttributeViSession']['return'] = 0 - self._defaults['GetAttributeViSession']['value'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['value'] = None - self._defaults['GetDeembeddingSparameters'] = {} - self._defaults['GetDeembeddingSparameters']['return'] = 0 - self._defaults['GetDeembeddingSparameters']['sparameters'] = None - self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] = None - self._defaults['GetDeembeddingSparameters']['numberOfPorts'] = None - self._defaults['GetDeembeddingTableNumberOfPorts'] = {} - self._defaults['GetDeembeddingTableNumberOfPorts']['return'] = 0 - self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['errorDescription'] = None - self._defaults['GetExtCalLastDateAndTime'] = {} - self._defaults['GetExtCalLastDateAndTime']['return'] = 0 - self._defaults['GetExtCalLastDateAndTime']['year'] = None - self._defaults['GetExtCalLastDateAndTime']['month'] = None - self._defaults['GetExtCalLastDateAndTime']['day'] = None - self._defaults['GetExtCalLastDateAndTime']['hour'] = None - self._defaults['GetExtCalLastDateAndTime']['minute'] = None - self._defaults['GetExtCalRecommendedInterval'] = {} - self._defaults['GetExtCalRecommendedInterval']['return'] = 0 - self._defaults['GetExtCalRecommendedInterval']['months'] = None - self._defaults['GetFetchBacklog'] = {} - self._defaults['GetFetchBacklog']['return'] = 0 - self._defaults['GetFetchBacklog']['backlog'] = None - self._defaults['GetFrequencyResponse'] = {} - self._defaults['GetFrequencyResponse']['return'] = 0 - self._defaults['GetFrequencyResponse']['numberOfFrequencies'] = None - self._defaults['GetFrequencyResponse']['frequencies'] = None - self._defaults['GetFrequencyResponse']['magnitudeResponse'] = None - self._defaults['GetFrequencyResponse']['phaseResponse'] = None - self._defaults['GetScalingCoefficients'] = {} - self._defaults['GetScalingCoefficients']['return'] = 0 - self._defaults['GetScalingCoefficients']['numberOfCoefficientSets'] = None - self._defaults['GetScalingCoefficients']['coefficientInfo'] = None - self._defaults['GetSelfCalLastDateAndTime'] = {} - self._defaults['GetSelfCalLastDateAndTime']['return'] = 0 - self._defaults['GetSelfCalLastDateAndTime']['year'] = None - self._defaults['GetSelfCalLastDateAndTime']['month'] = None - self._defaults['GetSelfCalLastDateAndTime']['day'] = None - self._defaults['GetSelfCalLastDateAndTime']['hour'] = None - self._defaults['GetSelfCalLastDateAndTime']['minute'] = None - self._defaults['GetSelfCalLastTemp'] = {} - self._defaults['GetSelfCalLastTemp']['return'] = 0 - self._defaults['GetSelfCalLastTemp']['temperature'] = None - self._defaults['GetTerminalName'] = {} - self._defaults['GetTerminalName']['return'] = 0 - self._defaults['GetTerminalName']['terminalName'] = None - self._defaults['InitWithOptions'] = {} - self._defaults['InitWithOptions']['return'] = 0 - self._defaults['InitWithOptions']['newVi'] = None - self._defaults['Initiate'] = {} - self._defaults['Initiate']['return'] = 0 - self._defaults['IsSelfCalValid'] = {} - self._defaults['IsSelfCalValid']['return'] = 0 - self._defaults['IsSelfCalValid']['selfCalValid'] = None - self._defaults['IsSelfCalValid']['validSteps'] = None - self._defaults['LoadConfigurationsFromFile'] = {} - self._defaults['LoadConfigurationsFromFile']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['PerformThermalCorrection'] = {} - self._defaults['PerformThermalCorrection']['return'] = 0 - self._defaults['ReadIQSingleRecordComplexF64'] = {} - self._defaults['ReadIQSingleRecordComplexF64']['return'] = 0 - self._defaults['ReadIQSingleRecordComplexF64']['wfmInfo'] = None - self._defaults['ReadPowerSpectrumF32'] = {} - self._defaults['ReadPowerSpectrumF32']['return'] = 0 - self._defaults['ReadPowerSpectrumF32']['spectrumInfo'] = None - self._defaults['ReadPowerSpectrumF64'] = {} - self._defaults['ReadPowerSpectrumF64']['return'] = 0 - self._defaults['ReadPowerSpectrumF64']['spectrumInfo'] = None - self._defaults['ResetDevice'] = {} - self._defaults['ResetDevice']['return'] = 0 - self._defaults['ResetWithOptions'] = {} - self._defaults['ResetWithOptions']['return'] = 0 - self._defaults['SaveConfigurationsToFile'] = {} - self._defaults['SaveConfigurationsToFile']['return'] = 0 - self._defaults['SelfCalibrateRange'] = {} - self._defaults['SelfCalibrateRange']['return'] = 0 - self._defaults['SendSoftwareEdgeTrigger'] = {} - self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViInt64'] = {} - self._defaults['SetAttributeViInt64']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViSession'] = {} - self._defaults['SetAttributeViSession']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niRFSA_Abort(self, vi): # noqa: N802 - if self._defaults['Abort']['return'] != 0: - return self._defaults['Abort']['return'] - return self._defaults['Abort']['return'] - - def niRFSA_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 - if self._defaults['ChangeExternalCalibrationPassword']['return'] != 0: - return self._defaults['ChangeExternalCalibrationPassword']['return'] - return self._defaults['ChangeExternalCalibrationPassword']['return'] - - def niRFSA_CheckAcquisitionStatus(self, vi, is_done): # noqa: N802 - if self._defaults['CheckAcquisitionStatus']['return'] != 0: - return self._defaults['CheckAcquisitionStatus']['return'] - # is_done - if self._defaults['CheckAcquisitionStatus']['isDone'] is None: - raise MockFunctionCallError("niRFSA_CheckAcquisitionStatus", param='isDone') - if is_done is not None: - is_done.contents.value = self._defaults['CheckAcquisitionStatus']['isDone'] - return self._defaults['CheckAcquisitionStatus']['return'] - - def niRFSA_ClearSelfCalibrateRange(self, vi): # noqa: N802 - if self._defaults['ClearSelfCalibrateRange']['return'] != 0: - return self._defaults['ClearSelfCalibrateRange']['return'] - return self._defaults['ClearSelfCalibrateRange']['return'] - - def niRFSA_Commit(self, vi): # noqa: N802 - if self._defaults['Commit']['return'] != 0: - return self._defaults['Commit']['return'] - return self._defaults['Commit']['return'] - - def niRFSA_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 - if self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] != 0: - return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] - return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] - - def niRFSA_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 - if self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] != 0: - return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] - return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] - - def niRFSA_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 - if self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] != 0: - return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] - return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] - - def niRFSA_ConfigureDigitalEdgeAdvanceTrigger(self, vi, source, edge): # noqa: N802 - if self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] != 0: - return self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] - return self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] - - def niRFSA_ConfigureDigitalEdgeRefTrigger(self, vi, source, edge, pretrigger_samples): # noqa: N802 - if self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] != 0: - return self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] - return self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] - - def niRFSA_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 - if self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] != 0: - return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] - return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] - - def niRFSA_ConfigureIQPowerEdgeRefTrigger(self, vi, source, level, slope, pretrigger_samples): # noqa: N802 - if self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] != 0: - return self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] - return self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] - - def niRFSA_ConfigureRefClock(self, vi, clock_source, ref_clock_rate): # noqa: N802 - if self._defaults['ConfigureRefClock']['return'] != 0: - return self._defaults['ConfigureRefClock']['return'] - return self._defaults['ConfigureRefClock']['return'] - - def niRFSA_ConfigureSoftwareEdgeAdvanceTrigger(self, vi): # noqa: N802 - if self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] != 0: - return self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] - return self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] - - def niRFSA_ConfigureSoftwareEdgeRefTrigger(self, vi, pretrigger_samples): # noqa: N802 - if self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] != 0: - return self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] - return self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] - - def niRFSA_ConfigureSoftwareEdgeStartTrigger(self, vi): # noqa: N802 - if self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] != 0: - return self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] - return self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] - - def niRFSA_ConfigureSpectrumFrequencyCenterSpan(self, vi, channel_list, center_frequency, span): # noqa: N802 - if self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] != 0: - return self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] - return self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] - - def niRFSA_ConfigureSpectrumFrequencyStartStop(self, vi, channel_list, start_frequency, stop_frequency): # noqa: N802 - if self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] != 0: - return self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] - return self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] - - def niRFSA_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 - if self._defaults['CreateDeembeddingSparameterTableArray']['return'] != 0: - return self._defaults['CreateDeembeddingSparameterTableArray']['return'] - return self._defaults['CreateDeembeddingSparameterTableArray']['return'] - - def niRFSA_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - if self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] != 0: - return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] - return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] - - def niRFSA_DeleteAllDeembeddingTables(self, vi): # noqa: N802 - if self._defaults['DeleteAllDeembeddingTables']['return'] != 0: - return self._defaults['DeleteAllDeembeddingTables']['return'] - return self._defaults['DeleteAllDeembeddingTables']['return'] - - def niRFSA_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 - if self._defaults['DeleteDeembeddingTable']['return'] != 0: - return self._defaults['DeleteDeembeddingTable']['return'] - return self._defaults['DeleteDeembeddingTable']['return'] - - def niRFSA_DisableAdvanceTrigger(self, vi): # noqa: N802 - if self._defaults['DisableAdvanceTrigger']['return'] != 0: - return self._defaults['DisableAdvanceTrigger']['return'] - return self._defaults['DisableAdvanceTrigger']['return'] - - def niRFSA_DisableRefTrigger(self, vi): # noqa: N802 - if self._defaults['DisableRefTrigger']['return'] != 0: - return self._defaults['DisableRefTrigger']['return'] - return self._defaults['DisableRefTrigger']['return'] - - def niRFSA_DisableStartTrigger(self, vi): # noqa: N802 - if self._defaults['DisableStartTrigger']['return'] != 0: - return self._defaults['DisableStartTrigger']['return'] - return self._defaults['DisableStartTrigger']['return'] - - def niRFSA_EnableSessionAccess(self, vi, enable): # noqa: N802 - if self._defaults['EnableSessionAccess']['return'] != 0: - return self._defaults['EnableSessionAccess']['return'] - return self._defaults['EnableSessionAccess']['return'] - - def niRFSA_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['ErrorMessage']['return'] != 0: - return self._defaults['ErrorMessage']['return'] - # error_message - if self._defaults['ErrorMessage']['errorMessage'] is None: - raise MockFunctionCallError("niRFSA_ErrorMessage", param='errorMessage') - test_value = self._defaults['ErrorMessage']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['ErrorMessage']['return'] - - def niRFSA_FetchIQMultiRecordComplexF32(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 - if self._defaults['FetchIQMultiRecordComplexF32']['return'] != 0: - return self._defaults['FetchIQMultiRecordComplexF32']['return'] - # wfm_info - if self._defaults['FetchIQMultiRecordComplexF32']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF32", param='wfmInfo') - for field in self._defaults['FetchIQMultiRecordComplexF32']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQMultiRecordComplexF32']['wfm_info'], field_name)) - return self._defaults['FetchIQMultiRecordComplexF32']['return'] - - def niRFSA_FetchIQMultiRecordComplexF64(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 - if self._defaults['FetchIQMultiRecordComplexF64']['return'] != 0: - return self._defaults['FetchIQMultiRecordComplexF64']['return'] - # wfm_info - if self._defaults['FetchIQMultiRecordComplexF64']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF64", param='wfmInfo') - for field in self._defaults['FetchIQMultiRecordComplexF64']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQMultiRecordComplexF64']['wfm_info'], field_name)) - return self._defaults['FetchIQMultiRecordComplexF64']['return'] - - def niRFSA_FetchIQMultiRecordComplexI16(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 - if self._defaults['FetchIQMultiRecordComplexI16']['return'] != 0: - return self._defaults['FetchIQMultiRecordComplexI16']['return'] - # wfm_info - if self._defaults['FetchIQMultiRecordComplexI16']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexI16", param='wfmInfo') - for field in self._defaults['FetchIQMultiRecordComplexI16']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQMultiRecordComplexI16']['wfm_info'], field_name)) - return self._defaults['FetchIQMultiRecordComplexI16']['return'] - - def niRFSA_FetchIQSingleRecordComplexF32(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 - if self._defaults['FetchIQSingleRecordComplexF32']['return'] != 0: - return self._defaults['FetchIQSingleRecordComplexF32']['return'] - # wfm_info - if self._defaults['FetchIQSingleRecordComplexF32']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF32", param='wfmInfo') - for field in self._defaults['FetchIQSingleRecordComplexF32']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQSingleRecordComplexF32']['wfm_info'], field_name)) - return self._defaults['FetchIQSingleRecordComplexF32']['return'] - - def niRFSA_FetchIQSingleRecordComplexF64(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 - if self._defaults['FetchIQSingleRecordComplexF64']['return'] != 0: - return self._defaults['FetchIQSingleRecordComplexF64']['return'] - # wfm_info - if self._defaults['FetchIQSingleRecordComplexF64']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF64", param='wfmInfo') - for field in self._defaults['FetchIQSingleRecordComplexF64']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQSingleRecordComplexF64']['wfm_info'], field_name)) - return self._defaults['FetchIQSingleRecordComplexF64']['return'] - - def niRFSA_FetchIQSingleRecordComplexI16(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 - if self._defaults['FetchIQSingleRecordComplexI16']['return'] != 0: - return self._defaults['FetchIQSingleRecordComplexI16']['return'] - # wfm_info - if self._defaults['FetchIQSingleRecordComplexI16']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexI16", param='wfmInfo') - for field in self._defaults['FetchIQSingleRecordComplexI16']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQSingleRecordComplexI16']['wfm_info'], field_name)) - return self._defaults['FetchIQSingleRecordComplexI16']['return'] - - def niRFSA_GetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # value - if self._defaults['GetAttributeViBoolean']['value'] is None: - raise MockFunctionCallError("niRFSA_GetAttributeViBoolean", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViBoolean']['value'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niRFSA_GetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # value - if self._defaults['GetAttributeViInt32']['value'] is None: - raise MockFunctionCallError("niRFSA_GetAttributeViInt32", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt32']['value'] - return self._defaults['GetAttributeViInt32']['return'] - - def niRFSA_GetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViInt64']['return'] != 0: - return self._defaults['GetAttributeViInt64']['return'] - # value - if self._defaults['GetAttributeViInt64']['value'] is None: - raise MockFunctionCallError("niRFSA_GetAttributeViInt64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt64']['value'] - return self._defaults['GetAttributeViInt64']['return'] - - def niRFSA_GetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # value - if self._defaults['GetAttributeViReal64']['value'] is None: - raise MockFunctionCallError("niRFSA_GetAttributeViReal64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViReal64']['value'] - return self._defaults['GetAttributeViReal64']['return'] - - def niRFSA_GetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViSession']['return'] != 0: - return self._defaults['GetAttributeViSession']['return'] - # value - if self._defaults['GetAttributeViSession']['value'] is None: - raise MockFunctionCallError("niRFSA_GetAttributeViSession", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViSession']['value'] - return self._defaults['GetAttributeViSession']['return'] - - def niRFSA_GetAttributeViString(self, vi, channel_name, attribute_id, buf_size, value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # value - if self._defaults['GetAttributeViString']['value'] is None: - raise MockFunctionCallError("niRFSA_GetAttributeViString", param='value') - if buf_size.value == 0: - return len(self._defaults['GetAttributeViString']['value']) - value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niRFSA_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 - if self._defaults['GetDeembeddingSparameters']['return'] != 0: - return self._defaults['GetDeembeddingSparameters']['return'] - # sparameters - if self._defaults['GetDeembeddingSparameters']['sparameters'] is None: - raise MockFunctionCallError("niRFSA_GetDeembeddingSparameters", param='sparameters') - test_value = self._defaults['GetDeembeddingSparameters']['sparameters'] - try: - sparameters_ref = sparameters.contents - except AttributeError: - sparameters_ref = sparameters - assert len(sparameters_ref) >= len(test_value) - for i in range(len(test_value)): - sparameters_ref[i] = test_value[i] - # number_of_sparameters - if self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] is None: - raise MockFunctionCallError("niRFSA_GetDeembeddingSparameters", param='numberOfSparameters') - if number_of_sparameters is not None: - number_of_sparameters.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] - # number_of_ports - if self._defaults['GetDeembeddingSparameters']['numberOfPorts'] is None: - raise MockFunctionCallError("niRFSA_GetDeembeddingSparameters", param='numberOfPorts') - if number_of_ports is not None: - number_of_ports.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfPorts'] - return self._defaults['GetDeembeddingSparameters']['return'] - - def niRFSA_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 - if self._defaults['GetDeembeddingTableNumberOfPorts']['return'] != 0: - return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] - # number_of_ports - if self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] is None: - raise MockFunctionCallError("niRFSA_GetDeembeddingTableNumberOfPorts", param='numberOfPorts') - if number_of_ports is not None: - number_of_ports.contents.value = self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] - return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] - - def niRFSA_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niRFSA_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # error_description - if self._defaults['GetError']['errorDescription'] is None: - raise MockFunctionCallError("niRFSA_GetError", param='errorDescription') - if error_description_buffer_size.value == 0: - return len(self._defaults['GetError']['errorDescription']) - error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') - return self._defaults['GetError']['return'] - - def niRFSA_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetExtCalLastDateAndTime']['return'] != 0: - return self._defaults['GetExtCalLastDateAndTime']['return'] - # year - if self._defaults['GetExtCalLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetExtCalLastDateAndTime']['year'] - # month - if self._defaults['GetExtCalLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetExtCalLastDateAndTime']['month'] - # day - if self._defaults['GetExtCalLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetExtCalLastDateAndTime']['day'] - # hour - if self._defaults['GetExtCalLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetExtCalLastDateAndTime']['hour'] - # minute - if self._defaults['GetExtCalLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetExtCalLastDateAndTime']['minute'] - return self._defaults['GetExtCalLastDateAndTime']['return'] - - def niRFSA_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 - if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: - return self._defaults['GetExtCalRecommendedInterval']['return'] - # months - if self._defaults['GetExtCalRecommendedInterval']['months'] is None: - raise MockFunctionCallError("niRFSA_GetExtCalRecommendedInterval", param='months') - if months is not None: - months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] - return self._defaults['GetExtCalRecommendedInterval']['return'] - - def niRFSA_GetFetchBacklog(self, vi, channel_list, record_number, backlog): # noqa: N802 - if self._defaults['GetFetchBacklog']['return'] != 0: - return self._defaults['GetFetchBacklog']['return'] - # backlog - if self._defaults['GetFetchBacklog']['backlog'] is None: - raise MockFunctionCallError("niRFSA_GetFetchBacklog", param='backlog') - if backlog is not None: - backlog.contents.value = self._defaults['GetFetchBacklog']['backlog'] - return self._defaults['GetFetchBacklog']['return'] - - def niRFSA_GetFrequencyResponse(self, vi, channel_list, buffer_size, frequencies, magnitude_response, phase_response, number_of_frequencies): # noqa: N802 - if self._defaults['GetFrequencyResponse']['return'] != 0: - return self._defaults['GetFrequencyResponse']['return'] - # number_of_frequencies - if self._defaults['GetFrequencyResponse']['numberOfFrequencies'] is None: - raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='numberOfFrequencies') - if number_of_frequencies is not None: - number_of_frequencies.contents.value = self._defaults['GetFrequencyResponse']['numberOfFrequencies'] - # frequencies - if self._defaults['GetFrequencyResponse']['frequencies'] is None: - raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='frequencies') - if buffer_size.value == 0: - return len(self._defaults['GetFrequencyResponse']['frequencies']) - try: - frequencies_ref = frequencies.contents - except AttributeError: - frequencies_ref = frequencies - for i in range(len(self._defaults['GetFrequencyResponse']['frequencies'])): - frequencies_ref[i] = self._defaults['GetFrequencyResponse']['frequencies'][i] - # magnitude_response - if self._defaults['GetFrequencyResponse']['magnitudeResponse'] is None: - raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='magnitudeResponse') - if buffer_size.value == 0: - return len(self._defaults['GetFrequencyResponse']['magnitudeResponse']) - try: - magnitude_response_ref = magnitude_response.contents - except AttributeError: - magnitude_response_ref = magnitude_response - for i in range(len(self._defaults['GetFrequencyResponse']['magnitudeResponse'])): - magnitude_response_ref[i] = self._defaults['GetFrequencyResponse']['magnitudeResponse'][i] - # phase_response - if self._defaults['GetFrequencyResponse']['phaseResponse'] is None: - raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='phaseResponse') - if buffer_size.value == 0: - return len(self._defaults['GetFrequencyResponse']['phaseResponse']) - try: - phase_response_ref = phase_response.contents - except AttributeError: - phase_response_ref = phase_response - for i in range(len(self._defaults['GetFrequencyResponse']['phaseResponse'])): - phase_response_ref[i] = self._defaults['GetFrequencyResponse']['phaseResponse'][i] - return self._defaults['GetFrequencyResponse']['return'] - - def niRFSA_GetScalingCoefficients(self, vi, channel_list, array_size, coefficient_info, number_of_coefficient_sets): # noqa: N802 - if self._defaults['GetScalingCoefficients']['return'] != 0: - return self._defaults['GetScalingCoefficients']['return'] - # number_of_coefficient_sets - if self._defaults['GetScalingCoefficients']['numberOfCoefficientSets'] is None: - raise MockFunctionCallError("niRFSA_GetScalingCoefficients", param='numberOfCoefficientSets') - if number_of_coefficient_sets is not None: - number_of_coefficient_sets.contents.value = self._defaults['GetScalingCoefficients']['numberOfCoefficientSets'] - # coefficient_info - if self._defaults['GetScalingCoefficients']['coefficientInfo'] is None: - raise MockFunctionCallError("niRFSA_GetScalingCoefficients", param='coefficientInfo') - if array_size.value == 0: - return len(self._defaults['GetScalingCoefficients']['coefficientInfo']) - try: - coefficient_info_ref = coefficient_info.contents - except AttributeError: - coefficient_info_ref = coefficient_info - for i in range(len(self._defaults['GetScalingCoefficients']['coefficientInfo'])): - coefficient_info_ref[i] = self._defaults['GetScalingCoefficients']['coefficientInfo'][i] - return self._defaults['GetScalingCoefficients']['return'] - - def niRFSA_GetSelfCalLastDateAndTime(self, vi, self_calibration_step, year, month, day, hour, minute): # noqa: N802 - if self._defaults['GetSelfCalLastDateAndTime']['return'] != 0: - return self._defaults['GetSelfCalLastDateAndTime']['return'] - # year - if self._defaults['GetSelfCalLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetSelfCalLastDateAndTime']['year'] - # month - if self._defaults['GetSelfCalLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetSelfCalLastDateAndTime']['month'] - # day - if self._defaults['GetSelfCalLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetSelfCalLastDateAndTime']['day'] - # hour - if self._defaults['GetSelfCalLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetSelfCalLastDateAndTime']['hour'] - # minute - if self._defaults['GetSelfCalLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetSelfCalLastDateAndTime']['minute'] - return self._defaults['GetSelfCalLastDateAndTime']['return'] - - def niRFSA_GetSelfCalLastTemp(self, vi, self_calibration_step, temperature): # noqa: N802 - if self._defaults['GetSelfCalLastTemp']['return'] != 0: - return self._defaults['GetSelfCalLastTemp']['return'] - # temperature - if self._defaults['GetSelfCalLastTemp']['temperature'] is None: - raise MockFunctionCallError("niRFSA_GetSelfCalLastTemp", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetSelfCalLastTemp']['temperature'] - return self._defaults['GetSelfCalLastTemp']['return'] - - def niRFSA_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 - if self._defaults['GetTerminalName']['return'] != 0: - return self._defaults['GetTerminalName']['return'] - # terminal_name - if self._defaults['GetTerminalName']['terminalName'] is None: - raise MockFunctionCallError("niRFSA_GetTerminalName", param='terminalName') - if buffer_size.value == 0: - return len(self._defaults['GetTerminalName']['terminalName']) - terminal_name.value = self._defaults['GetTerminalName']['terminalName'].encode('ascii') - return self._defaults['GetTerminalName']['return'] - - def niRFSA_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 - if self._defaults['InitWithOptions']['return'] != 0: - return self._defaults['InitWithOptions']['return'] - # new_vi - if self._defaults['InitWithOptions']['newVi'] is None: - raise MockFunctionCallError("niRFSA_InitWithOptions", param='newVi') - if new_vi is not None: - new_vi.contents.value = self._defaults['InitWithOptions']['newVi'] - return self._defaults['InitWithOptions']['return'] - - def niRFSA_Initiate(self, vi): # noqa: N802 - if self._defaults['Initiate']['return'] != 0: - return self._defaults['Initiate']['return'] - return self._defaults['Initiate']['return'] - - def niRFSA_IsSelfCalValid(self, vi, self_cal_valid, valid_steps): # noqa: N802 - if self._defaults['IsSelfCalValid']['return'] != 0: - return self._defaults['IsSelfCalValid']['return'] - # self_cal_valid - if self._defaults['IsSelfCalValid']['selfCalValid'] is None: - raise MockFunctionCallError("niRFSA_IsSelfCalValid", param='selfCalValid') - if self_cal_valid is not None: - self_cal_valid.contents.value = self._defaults['IsSelfCalValid']['selfCalValid'] - # valid_steps - if self._defaults['IsSelfCalValid']['validSteps'] is None: - raise MockFunctionCallError("niRFSA_IsSelfCalValid", param='validSteps') - if valid_steps is not None: - valid_steps.contents.value = self._defaults['IsSelfCalValid']['validSteps'] - return self._defaults['IsSelfCalValid']['return'] - - def niRFSA_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 - if self._defaults['LoadConfigurationsFromFile']['return'] != 0: - return self._defaults['LoadConfigurationsFromFile']['return'] - return self._defaults['LoadConfigurationsFromFile']['return'] - - def niRFSA_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niRFSA_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niRFSA_PerformThermalCorrection(self, vi): # noqa: N802 - if self._defaults['PerformThermalCorrection']['return'] != 0: - return self._defaults['PerformThermalCorrection']['return'] - return self._defaults['PerformThermalCorrection']['return'] - - def niRFSA_ReadIQSingleRecordComplexF64(self, vi, channel_list, timeout, iq_data_array, data_array_size, wfm_info): # noqa: N802 - if self._defaults['ReadIQSingleRecordComplexF64']['return'] != 0: - return self._defaults['ReadIQSingleRecordComplexF64']['return'] - # wfm_info - if self._defaults['ReadIQSingleRecordComplexF64']['wfmInfo'] is None: - raise MockFunctionCallError("niRFSA_ReadIQSingleRecordComplexF64", param='wfmInfo') - for field in self._defaults['ReadIQSingleRecordComplexF64']['wfm_info']._fields_: - field_name = field[0] - setattr(wfm_info.contents, field_name, getattr(self._defaults['ReadIQSingleRecordComplexF64']['wfm_info'], field_name)) - return self._defaults['ReadIQSingleRecordComplexF64']['return'] - - def niRFSA_ReadPowerSpectrumF32(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 - if self._defaults['ReadPowerSpectrumF32']['return'] != 0: - return self._defaults['ReadPowerSpectrumF32']['return'] - # spectrum_info - if self._defaults['ReadPowerSpectrumF32']['spectrumInfo'] is None: - raise MockFunctionCallError("niRFSA_ReadPowerSpectrumF32", param='spectrumInfo') - for field in self._defaults['ReadPowerSpectrumF32']['spectrum_info']._fields_: - field_name = field[0] - setattr(spectrum_info.contents, field_name, getattr(self._defaults['ReadPowerSpectrumF32']['spectrum_info'], field_name)) - return self._defaults['ReadPowerSpectrumF32']['return'] - - def niRFSA_ReadPowerSpectrumF64(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 - if self._defaults['ReadPowerSpectrumF64']['return'] != 0: - return self._defaults['ReadPowerSpectrumF64']['return'] - # spectrum_info - if self._defaults['ReadPowerSpectrumF64']['spectrumInfo'] is None: - raise MockFunctionCallError("niRFSA_ReadPowerSpectrumF64", param='spectrumInfo') - for field in self._defaults['ReadPowerSpectrumF64']['spectrum_info']._fields_: - field_name = field[0] - setattr(spectrum_info.contents, field_name, getattr(self._defaults['ReadPowerSpectrumF64']['spectrum_info'], field_name)) - return self._defaults['ReadPowerSpectrumF64']['return'] - - def niRFSA_ResetDevice(self, vi): # noqa: N802 - if self._defaults['ResetDevice']['return'] != 0: - return self._defaults['ResetDevice']['return'] - return self._defaults['ResetDevice']['return'] - - def niRFSA_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 - if self._defaults['ResetWithOptions']['return'] != 0: - return self._defaults['ResetWithOptions']['return'] - return self._defaults['ResetWithOptions']['return'] - - def niRFSA_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 - if self._defaults['SaveConfigurationsToFile']['return'] != 0: - return self._defaults['SaveConfigurationsToFile']['return'] - return self._defaults['SaveConfigurationsToFile']['return'] - - def niRFSA_SelfCalibrateRange(self, vi, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 - if self._defaults['SelfCalibrateRange']['return'] != 0: - return self._defaults['SelfCalibrateRange']['return'] - return self._defaults['SelfCalibrateRange']['return'] - - def niRFSA_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 - if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: - return self._defaults['SendSoftwareEdgeTrigger']['return'] - return self._defaults['SendSoftwareEdgeTrigger']['return'] - - def niRFSA_SetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niRFSA_SetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niRFSA_SetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViInt64']['return'] != 0: - return self._defaults['SetAttributeViInt64']['return'] - return self._defaults['SetAttributeViInt64']['return'] - - def niRFSA_SetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niRFSA_SetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViSession']['return'] != 0: - return self._defaults['SetAttributeViSession']['return'] - return self._defaults['SetAttributeViSession']['return'] - - def niRFSA_SetAttributeViString(self, vi, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niRFSA_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niRFSA_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niRFSA_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niRFSA_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niRFSA_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niRFSA_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niRFSA_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niRFSA_Abort.side_effect = MockFunctionCallError("niRFSA_Abort") - mock_library.niRFSA_Abort.return_value = 0 - mock_library.niRFSA_ChangeExternalCalibrationPassword.side_effect = MockFunctionCallError("niRFSA_ChangeExternalCalibrationPassword") - mock_library.niRFSA_ChangeExternalCalibrationPassword.return_value = 0 - mock_library.niRFSA_CheckAcquisitionStatus.side_effect = MockFunctionCallError("niRFSA_CheckAcquisitionStatus") - mock_library.niRFSA_CheckAcquisitionStatus.return_value = 0 - mock_library.niRFSA_ClearSelfCalibrateRange.side_effect = MockFunctionCallError("niRFSA_ClearSelfCalibrateRange") - mock_library.niRFSA_ClearSelfCalibrateRange.return_value = 0 - mock_library.niRFSA_Commit.side_effect = MockFunctionCallError("niRFSA_Commit") - mock_library.niRFSA_Commit.return_value = 0 - mock_library.niRFSA_ConfigureDeembeddingTableInterpolationLinear.side_effect = MockFunctionCallError("niRFSA_ConfigureDeembeddingTableInterpolationLinear") - mock_library.niRFSA_ConfigureDeembeddingTableInterpolationLinear.return_value = 0 - mock_library.niRFSA_ConfigureDeembeddingTableInterpolationNearest.side_effect = MockFunctionCallError("niRFSA_ConfigureDeembeddingTableInterpolationNearest") - mock_library.niRFSA_ConfigureDeembeddingTableInterpolationNearest.return_value = 0 - mock_library.niRFSA_ConfigureDeembeddingTableInterpolationSpline.side_effect = MockFunctionCallError("niRFSA_ConfigureDeembeddingTableInterpolationSpline") - mock_library.niRFSA_ConfigureDeembeddingTableInterpolationSpline.return_value = 0 - mock_library.niRFSA_ConfigureDigitalEdgeAdvanceTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureDigitalEdgeAdvanceTrigger") - mock_library.niRFSA_ConfigureDigitalEdgeAdvanceTrigger.return_value = 0 - mock_library.niRFSA_ConfigureDigitalEdgeRefTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureDigitalEdgeRefTrigger") - mock_library.niRFSA_ConfigureDigitalEdgeRefTrigger.return_value = 0 - mock_library.niRFSA_ConfigureDigitalEdgeStartTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureDigitalEdgeStartTrigger") - mock_library.niRFSA_ConfigureDigitalEdgeStartTrigger.return_value = 0 - mock_library.niRFSA_ConfigureIQPowerEdgeRefTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureIQPowerEdgeRefTrigger") - mock_library.niRFSA_ConfigureIQPowerEdgeRefTrigger.return_value = 0 - mock_library.niRFSA_ConfigureRefClock.side_effect = MockFunctionCallError("niRFSA_ConfigureRefClock") - mock_library.niRFSA_ConfigureRefClock.return_value = 0 - mock_library.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureSoftwareEdgeAdvanceTrigger") - mock_library.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger.return_value = 0 - mock_library.niRFSA_ConfigureSoftwareEdgeRefTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureSoftwareEdgeRefTrigger") - mock_library.niRFSA_ConfigureSoftwareEdgeRefTrigger.return_value = 0 - mock_library.niRFSA_ConfigureSoftwareEdgeStartTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureSoftwareEdgeStartTrigger") - mock_library.niRFSA_ConfigureSoftwareEdgeStartTrigger.return_value = 0 - mock_library.niRFSA_ConfigureSpectrumFrequencyCenterSpan.side_effect = MockFunctionCallError("niRFSA_ConfigureSpectrumFrequencyCenterSpan") - mock_library.niRFSA_ConfigureSpectrumFrequencyCenterSpan.return_value = 0 - mock_library.niRFSA_ConfigureSpectrumFrequencyStartStop.side_effect = MockFunctionCallError("niRFSA_ConfigureSpectrumFrequencyStartStop") - mock_library.niRFSA_ConfigureSpectrumFrequencyStartStop.return_value = 0 - mock_library.niRFSA_CreateDeembeddingSparameterTableArray.side_effect = MockFunctionCallError("niRFSA_CreateDeembeddingSparameterTableArray") - mock_library.niRFSA_CreateDeembeddingSparameterTableArray.return_value = 0 - mock_library.niRFSA_CreateDeembeddingSparameterTableS2PFile.side_effect = MockFunctionCallError("niRFSA_CreateDeembeddingSparameterTableS2PFile") - mock_library.niRFSA_CreateDeembeddingSparameterTableS2PFile.return_value = 0 - mock_library.niRFSA_DeleteAllDeembeddingTables.side_effect = MockFunctionCallError("niRFSA_DeleteAllDeembeddingTables") - mock_library.niRFSA_DeleteAllDeembeddingTables.return_value = 0 - mock_library.niRFSA_DeleteDeembeddingTable.side_effect = MockFunctionCallError("niRFSA_DeleteDeembeddingTable") - mock_library.niRFSA_DeleteDeembeddingTable.return_value = 0 - mock_library.niRFSA_DisableAdvanceTrigger.side_effect = MockFunctionCallError("niRFSA_DisableAdvanceTrigger") - mock_library.niRFSA_DisableAdvanceTrigger.return_value = 0 - mock_library.niRFSA_DisableRefTrigger.side_effect = MockFunctionCallError("niRFSA_DisableRefTrigger") - mock_library.niRFSA_DisableRefTrigger.return_value = 0 - mock_library.niRFSA_DisableStartTrigger.side_effect = MockFunctionCallError("niRFSA_DisableStartTrigger") - mock_library.niRFSA_DisableStartTrigger.return_value = 0 - mock_library.niRFSA_EnableSessionAccess.side_effect = MockFunctionCallError("niRFSA_EnableSessionAccess") - mock_library.niRFSA_EnableSessionAccess.return_value = 0 - mock_library.niRFSA_ErrorMessage.side_effect = MockFunctionCallError("niRFSA_ErrorMessage") - mock_library.niRFSA_ErrorMessage.return_value = 0 - mock_library.niRFSA_FetchIQMultiRecordComplexF32.side_effect = MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF32") - mock_library.niRFSA_FetchIQMultiRecordComplexF32.return_value = 0 - mock_library.niRFSA_FetchIQMultiRecordComplexF64.side_effect = MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF64") - mock_library.niRFSA_FetchIQMultiRecordComplexF64.return_value = 0 - mock_library.niRFSA_FetchIQMultiRecordComplexI16.side_effect = MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexI16") - mock_library.niRFSA_FetchIQMultiRecordComplexI16.return_value = 0 - mock_library.niRFSA_FetchIQSingleRecordComplexF32.side_effect = MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF32") - mock_library.niRFSA_FetchIQSingleRecordComplexF32.return_value = 0 - mock_library.niRFSA_FetchIQSingleRecordComplexF64.side_effect = MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF64") - mock_library.niRFSA_FetchIQSingleRecordComplexF64.return_value = 0 - mock_library.niRFSA_FetchIQSingleRecordComplexI16.side_effect = MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexI16") - mock_library.niRFSA_FetchIQSingleRecordComplexI16.return_value = 0 - mock_library.niRFSA_GetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSA_GetAttributeViBoolean") - mock_library.niRFSA_GetAttributeViBoolean.return_value = 0 - mock_library.niRFSA_GetAttributeViInt32.side_effect = MockFunctionCallError("niRFSA_GetAttributeViInt32") - mock_library.niRFSA_GetAttributeViInt32.return_value = 0 - mock_library.niRFSA_GetAttributeViInt64.side_effect = MockFunctionCallError("niRFSA_GetAttributeViInt64") - mock_library.niRFSA_GetAttributeViInt64.return_value = 0 - mock_library.niRFSA_GetAttributeViReal64.side_effect = MockFunctionCallError("niRFSA_GetAttributeViReal64") - mock_library.niRFSA_GetAttributeViReal64.return_value = 0 - mock_library.niRFSA_GetAttributeViSession.side_effect = MockFunctionCallError("niRFSA_GetAttributeViSession") - mock_library.niRFSA_GetAttributeViSession.return_value = 0 - mock_library.niRFSA_GetAttributeViString.side_effect = MockFunctionCallError("niRFSA_GetAttributeViString") - mock_library.niRFSA_GetAttributeViString.return_value = 0 - mock_library.niRFSA_GetDeembeddingSparameters.side_effect = MockFunctionCallError("niRFSA_GetDeembeddingSparameters") - mock_library.niRFSA_GetDeembeddingSparameters.return_value = 0 - mock_library.niRFSA_GetDeembeddingTableNumberOfPorts.side_effect = MockFunctionCallError("niRFSA_GetDeembeddingTableNumberOfPorts") - mock_library.niRFSA_GetDeembeddingTableNumberOfPorts.return_value = 0 - mock_library.niRFSA_GetError.side_effect = MockFunctionCallError("niRFSA_GetError") - mock_library.niRFSA_GetError.return_value = 0 - mock_library.niRFSA_GetExtCalLastDateAndTime.side_effect = MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime") - mock_library.niRFSA_GetExtCalLastDateAndTime.return_value = 0 - mock_library.niRFSA_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niRFSA_GetExtCalRecommendedInterval") - mock_library.niRFSA_GetExtCalRecommendedInterval.return_value = 0 - mock_library.niRFSA_GetFetchBacklog.side_effect = MockFunctionCallError("niRFSA_GetFetchBacklog") - mock_library.niRFSA_GetFetchBacklog.return_value = 0 - mock_library.niRFSA_GetFrequencyResponse.side_effect = MockFunctionCallError("niRFSA_GetFrequencyResponse") - mock_library.niRFSA_GetFrequencyResponse.return_value = 0 - mock_library.niRFSA_GetScalingCoefficients.side_effect = MockFunctionCallError("niRFSA_GetScalingCoefficients") - mock_library.niRFSA_GetScalingCoefficients.return_value = 0 - mock_library.niRFSA_GetSelfCalLastDateAndTime.side_effect = MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime") - mock_library.niRFSA_GetSelfCalLastDateAndTime.return_value = 0 - mock_library.niRFSA_GetSelfCalLastTemp.side_effect = MockFunctionCallError("niRFSA_GetSelfCalLastTemp") - mock_library.niRFSA_GetSelfCalLastTemp.return_value = 0 - mock_library.niRFSA_GetTerminalName.side_effect = MockFunctionCallError("niRFSA_GetTerminalName") - mock_library.niRFSA_GetTerminalName.return_value = 0 - mock_library.niRFSA_InitWithOptions.side_effect = MockFunctionCallError("niRFSA_InitWithOptions") - mock_library.niRFSA_InitWithOptions.return_value = 0 - mock_library.niRFSA_Initiate.side_effect = MockFunctionCallError("niRFSA_Initiate") - mock_library.niRFSA_Initiate.return_value = 0 - mock_library.niRFSA_IsSelfCalValid.side_effect = MockFunctionCallError("niRFSA_IsSelfCalValid") - mock_library.niRFSA_IsSelfCalValid.return_value = 0 - mock_library.niRFSA_LoadConfigurationsFromFile.side_effect = MockFunctionCallError("niRFSA_LoadConfigurationsFromFile") - mock_library.niRFSA_LoadConfigurationsFromFile.return_value = 0 - mock_library.niRFSA_LockSession.side_effect = MockFunctionCallError("niRFSA_LockSession") - mock_library.niRFSA_LockSession.return_value = 0 - mock_library.niRFSA_PerformThermalCorrection.side_effect = MockFunctionCallError("niRFSA_PerformThermalCorrection") - mock_library.niRFSA_PerformThermalCorrection.return_value = 0 - mock_library.niRFSA_ReadIQSingleRecordComplexF64.side_effect = MockFunctionCallError("niRFSA_ReadIQSingleRecordComplexF64") - mock_library.niRFSA_ReadIQSingleRecordComplexF64.return_value = 0 - mock_library.niRFSA_ReadPowerSpectrumF32.side_effect = MockFunctionCallError("niRFSA_ReadPowerSpectrumF32") - mock_library.niRFSA_ReadPowerSpectrumF32.return_value = 0 - mock_library.niRFSA_ReadPowerSpectrumF64.side_effect = MockFunctionCallError("niRFSA_ReadPowerSpectrumF64") - mock_library.niRFSA_ReadPowerSpectrumF64.return_value = 0 - mock_library.niRFSA_ResetDevice.side_effect = MockFunctionCallError("niRFSA_ResetDevice") - mock_library.niRFSA_ResetDevice.return_value = 0 - mock_library.niRFSA_ResetWithOptions.side_effect = MockFunctionCallError("niRFSA_ResetWithOptions") - mock_library.niRFSA_ResetWithOptions.return_value = 0 - mock_library.niRFSA_SaveConfigurationsToFile.side_effect = MockFunctionCallError("niRFSA_SaveConfigurationsToFile") - mock_library.niRFSA_SaveConfigurationsToFile.return_value = 0 - mock_library.niRFSA_SelfCalibrateRange.side_effect = MockFunctionCallError("niRFSA_SelfCalibrateRange") - mock_library.niRFSA_SelfCalibrateRange.return_value = 0 - mock_library.niRFSA_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niRFSA_SendSoftwareEdgeTrigger") - mock_library.niRFSA_SendSoftwareEdgeTrigger.return_value = 0 - mock_library.niRFSA_SetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSA_SetAttributeViBoolean") - mock_library.niRFSA_SetAttributeViBoolean.return_value = 0 - mock_library.niRFSA_SetAttributeViInt32.side_effect = MockFunctionCallError("niRFSA_SetAttributeViInt32") - mock_library.niRFSA_SetAttributeViInt32.return_value = 0 - mock_library.niRFSA_SetAttributeViInt64.side_effect = MockFunctionCallError("niRFSA_SetAttributeViInt64") - mock_library.niRFSA_SetAttributeViInt64.return_value = 0 - mock_library.niRFSA_SetAttributeViReal64.side_effect = MockFunctionCallError("niRFSA_SetAttributeViReal64") - mock_library.niRFSA_SetAttributeViReal64.return_value = 0 - mock_library.niRFSA_SetAttributeViSession.side_effect = MockFunctionCallError("niRFSA_SetAttributeViSession") - mock_library.niRFSA_SetAttributeViSession.return_value = 0 - mock_library.niRFSA_SetAttributeViString.side_effect = MockFunctionCallError("niRFSA_SetAttributeViString") - mock_library.niRFSA_SetAttributeViString.return_value = 0 - mock_library.niRFSA_UnlockSession.side_effect = MockFunctionCallError("niRFSA_UnlockSession") - mock_library.niRFSA_UnlockSession.return_value = 0 - mock_library.niRFSA_close.side_effect = MockFunctionCallError("niRFSA_close") - mock_library.niRFSA_close.return_value = 0 - mock_library.niRFSA_reset.side_effect = MockFunctionCallError("niRFSA_reset") - mock_library.niRFSA_reset.return_value = 0 - mock_library.niRFSA_self_test.side_effect = MockFunctionCallError("niRFSA_self_test") - mock_library.niRFSA_self_test.return_value = 0 diff --git a/generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py b/generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py deleted file mode 100644 index 192af084ab..0000000000 --- a/generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py +++ /dev/null @@ -1,25 +0,0 @@ -import nirfsa.waveform_info -import numpy - - -def test_populate_samples_info(): - waveform_infos = [] - for i in range(1, 4): - waveform_infos.append(nirfsa.waveform_info.WaveformInfo()) - waveform_infos[-1].actual_samples = i - - # 2D case (multi-record fetch): each row may be wider than actual_samples. - sample_data = numpy.array([ - [0, 0, 0], - [3, 4, 0], - [6, 7, 8], - ], dtype=numpy.float64) - nirfsa.waveform_info._populate_samples_info(waveform_infos, sample_data) - - expected = [ - [0], - [3, 4], - [6, 7, 8], - ] - for i in range(len(waveform_infos)): - assert list(waveform_infos[i].samples) == expected[i] diff --git a/generated/nirfsa/nirfsa/waveform_info.py b/generated/nirfsa/nirfsa/waveform_info.py deleted file mode 100644 index b30a5bc8f7..0000000000 --- a/generated/nirfsa/nirfsa/waveform_info.py +++ /dev/null @@ -1,116 +0,0 @@ -import ctypes -import nirfsa._visatype - - -# This class is an internal ctypes implementation detail that corresponds to -# niRFSA_wfmInfo in the C API -class struct_niRFSA_wfmInfo(ctypes.Structure): # noqa N801 - _pack_ = 8 - _fields_ = [ - ('absolute_initial_x', nirfsa._visatype.ViReal64), - ('relative_initial_x', nirfsa._visatype.ViReal64), - ('x_increment', nirfsa._visatype.ViReal64), - ('actual_samples', nirfsa._visatype.ViInt64), - ('offset', nirfsa._visatype.ViReal64), - ('gain', nirfsa._visatype.ViReal64), - ('reserved1', nirfsa._visatype.ViReal64), - ('reserved2', nirfsa._visatype.ViReal64), - ] - - def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, - x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0, - reserved1=0.0, reserved2=0.0): - super(ctypes.Structure, self).__init__() - if data is not None: - self.absolute_initial_x = data.absolute_initial_x - self.relative_initial_x = data.relative_initial_x - self.x_increment = data.x_increment - self.actual_samples = data.actual_samples - self.offset = data.offset - self.gain = data.gain - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - else: - self.absolute_initial_x = absolute_initial_x - self.relative_initial_x = relative_initial_x - self.x_increment = x_increment - self.actual_samples = actual_samples - self.offset = offset - self.gain = gain - self.reserved1 = reserved1 - self.reserved2 = reserved2 - - -class WaveformInfo: - """Python-friendly wrapper for niRFSA waveform info.""" - - def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, - x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0, - reserved1=0.0, reserved2=0.0): - if data is not None: - self.absolute_initial_x = data.absolute_initial_x - self.relative_initial_x = data.relative_initial_x - self.x_increment = data.x_increment - self.actual_samples = data.actual_samples - self.offset = data.offset - self.gain = data.gain - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - else: - self.absolute_initial_x = absolute_initial_x - self.relative_initial_x = relative_initial_x - self.x_increment = x_increment - self.actual_samples = actual_samples - self.offset = offset - self.gain = gain - self.reserved1 = reserved1 - self.reserved2 = reserved2 - - def _create_copy(self, target_class): - try: - return target_class( - absolute_initial_x=self.absolute_initial_x, - relative_initial_x=self.relative_initial_x, - x_increment=self.x_increment, - actual_samples=self.actual_samples, - offset=self.offset, - gain=self.gain, - reserved1=self.reserved1, - reserved2=self.reserved2, - ) - except TypeError: - return target_class(data=self) - - def __repr__(self): - return "{}.{}(absolute_initial_x={}, relative_initial_x={}, x_increment={}, actual_samples={}, offset={}, gain={}, reserved1={}, reserved2={})".format( - self.__class__.__module__, - self.__class__.__qualname__, - self.absolute_initial_x, - self.relative_initial_x, - self.x_increment, - self.actual_samples, - self.offset, - self.gain, - self.reserved1, - self.reserved2, - ) - - def __str__(self): - return self.__repr__() - - -def _populate_samples_info(waveform_infos, sample_data): - '''Chunk up flat array of sample_data and copy each chunk into individual WaveformInfo instance - - Args: - waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances - - sample_data (Iterable of float): Waveform sample data - ''' - if hasattr(sample_data, 'ndim') and sample_data.ndim == 2: - # 2D case (multi-record fetch): sample_data[i] is a 1D view of row i. - # Slice to exact actual_samples to handle rows wider than actual_samples (e.g. int16). - for i in range(len(waveform_infos)): - actual_samples = waveform_infos[i].actual_samples - waveform_infos[i].samples = sample_data[i, :actual_samples] - diff --git a/generated/nirfsa/setup.py b/generated/nirfsa/setup.py deleted file mode 100644 index 6252a35e79..0000000000 --- a/generated/nirfsa/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nirfsa' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.0.1.dev0', - description='NI-RFSA Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nirfsa'], - license='MIT', - include_package_data=True, - packages=['nirfsa'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - 'nitclk', - 'numpy', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nirfsa/tox-system_tests.ini b/generated/nirfsa/tox-system_tests.ini deleted file mode 100644 index 2a0026216f..0000000000 --- a/generated/nirfsa/tox-system_tests.ini +++ /dev/null @@ -1,73 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nirfsa) -[tox] -envlist = py{310,311,312,313,314}-nirfsa-wheel_dep,py{310,311,312,313,314}-nirfsa-system_tests, py314-nirfsa-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nirfsa-wheel_dep: Build the nitclk wheel because we use it in nirfsa tests - nirfsa-system_tests: Run nirfsa system tests (requires NI-RFSA runtime to be installed) - nirfsa-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nirfsa-wheel_dep: ../nitclk - nirfsa-system_tests: . - nirfsa-coverage: . - -commands = - nirfsa-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nirfsa-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nirfsa-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. - nirfsa-system_tests: python -c "import nirfsa; nirfsa.print_diagnostic_information()" - nirfsa-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsa --parallel-mode -m pytest ../../src/nirfsa/examples --junitxml=../junit/junit-nirfsa-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nirfsa-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsa --parallel-mode -m pytest ../../src/nirfsa/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nirfsa-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nirfsa-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nirfsa-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nirfsa-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nirfsa-wheel_dep: build - - nirfsa-system_tests: pytest < 9.2.0 - nirfsa-system_tests: coverage - nirfsa-system_tests: numpy - nirfsa-system_tests: hightime - nirfsa-system_tests: fasteners - nirfsa-system_tests: pytest-json - nirfsa-system_tests: .[grpc] - - nirfsa-coverage: coverage - -depends = - nirfsa-coverage: py{310,311,312,313,314}-nirfsa-system_tests - nirfsa-system_tests: py{310,311,312,313,314}-nirfsa-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nirfsg/README.rst b/generated/nirfsg/README.rst deleted file mode 100644 index efd2068e22..0000000000 --- a/generated/nirfsg/README.rst +++ /dev/null @@ -1,179 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nirfsg** module provides a Python API for NI-RFSG. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nirfsg** supports all the Operating Systems supported by NI-RFSG. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nirfsg**. - - -NI-RFSG Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-RFSG (nirfsg) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nirfsgLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nirfsgPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nirfsgDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nirfsgOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nirfsgOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nirfsgLatestVersion| image:: http://img.shields.io/pypi/v/nirfsg.svg - :alt: Latest NI-RFSG Version - :target: http://pypi.python.org/pypi/nirfsg - - -.. |nirfsgPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsg.svg - :alt: NI-RFSG supported Python versions - :target: http://pypi.python.org/pypi/nirfsg - - -.. |nirfsgDocs| image:: https://readthedocs.org/projects/nirfsg/badge/?version=latest - :alt: NI-RFSG Python API Documentation Status - :target: https://nirfsg.readthedocs.io/en/latest - - -.. |nirfsgOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsg.svg - :alt: Open Issues + Pull Requests for NI-RFSG - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsg - - -.. |nirfsgOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsg.svg - :alt: Pull Requests for NI-RFSG - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsg - - - -.. _nirfsg_installation-section: - -Installation ------------- - -As a prerequisite to using the **nirfsg** module, you must install the NI-RFSG runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-RFSG**) can be installed with `pip `_:: - - $ python -m pip install nirfsg - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nirfsg** module to open a session to an RF Signal Generator and generate a continuous wave (CW) signal. - -.. code-block:: python - - import nirfsg - - # Configure the session - with nirfsg.Session(resource_name='5841', id_query=False, reset_device=False, options='Simulate=1, DriverSetup=Model:5841') as session: - # Configure RF settings - session.configure_rf( - frequency=1e9, # Frequency in Hz - power_level=-10.0 # Power level in dBm - ) - session.generation_mode = nirfsg.GenerationMode.CW - - # Start signal generation - with session.initiate(): - input("Press Enter to stop generation") - -`Other usage examples can be found on GitHub. `_.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nirfsg/nirfsg/VERSION b/generated/nirfsg/nirfsg/VERSION deleted file mode 100644 index 9230f8b42b..0000000000 --- a/generated/nirfsg/nirfsg/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.2.1.dev0 - diff --git a/generated/nirfsg/nirfsg/__init__.py b/generated/nirfsg/nirfsg/__init__.py deleted file mode 100644 index baf745cd83..0000000000 --- a/generated/nirfsg/nirfsg/__init__.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.2.1.dev0' - -from nirfsg.enums import * # noqa: F403,F401,H303 -from nirfsg.errors import DriverWarning # noqa: F401 -from nirfsg.errors import Error # noqa: F401 -from nirfsg.grpc_session_options import * # noqa: F403,F401,H303 -from nirfsg.session import Session # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-RFSG\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-RFSG" - info['driver']['version'] = driver_version - info['module']['name'] = 'nirfsg' - info['module']['version'] = "1.2.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nirfsg/nirfsg/_attributes.py b/generated/nirfsg/nirfsg/_attributes.py deleted file mode 100644 index e8e974c325..0000000000 --- a/generated/nirfsg/nirfsg/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nirfsg._converters as _converters -import nirfsg.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nirfsg Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nirfsg.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nirfsg/nirfsg/_complextype.py b/generated/nirfsg/nirfsg/_complextype.py deleted file mode 100644 index 45020aa991..0000000000 --- a/generated/nirfsg/nirfsg/_complextype.py +++ /dev/null @@ -1,16 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import ctypes -import nirfsg._visatype as _visatype - - -class NIComplexNumber(ctypes.Structure): - _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] - - -class NIComplexNumberF32(ctypes.Structure): - _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] - - -class NIComplexI16(ctypes.Structure): - _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] diff --git a/generated/nirfsg/nirfsg/_converters.py b/generated/nirfsg/nirfsg/_converters.py deleted file mode 100644 index e5c50c04d3..0000000000 --- a/generated/nirfsg/nirfsg/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nirfsg._visatype as _visatype -import nirfsg.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nirfsg/nirfsg/_grpc_stub_interpreter.py b/generated/nirfsg/nirfsg/_grpc_stub_interpreter.py deleted file mode 100644 index a2e2ff3a3c..0000000000 --- a/generated/nirfsg/nirfsg/_grpc_stub_interpreter.py +++ /dev/null @@ -1,629 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import nidevice_pb2 as grpc_complex_types # noqa: F401 -from . import nirfsg_pb2 as grpc_types -from . import nirfsg_pb2_grpc as nirfsg_grpc - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = nirfsg_grpc.NiRFSGStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.Abort, - grpc_types.AbortRequest(vi=self._vi), - ) - - def allocate_arb_waveform(self, waveform_name, size_in_samples): # noqa: N802 - self._invoke( - self._client.AllocateArbWaveform, - grpc_types.AllocateArbWaveformRequest(vi=self._vi, waveform_name=waveform_name, size_in_samples=size_in_samples), - ) - - def change_external_calibration_password(self, old_password, new_password): # noqa: N802 - self._invoke( - self._client.ChangeExternalCalibrationPassword, - grpc_types.ChangeExternalCalibrationPasswordRequest(vi=self._vi, old_password=old_password, new_password=new_password), - ) - - def check_generation_status(self): # noqa: N802 - response = self._invoke( - self._client.CheckGenerationStatus, - grpc_types.CheckGenerationStatusRequest(vi=self._vi), - ) - return response.is_done - - def check_if_script_exists(self, script_name): # noqa: N802 - response = self._invoke( - self._client.CheckIfScriptExists, - grpc_types.CheckIfScriptExistsRequest(vi=self._vi, script_name=script_name), - ) - return response.script_exists - - def check_if_waveform_exists(self, waveform_name): # noqa: N802 - response = self._invoke( - self._client.CheckIfWaveformExists, - grpc_types.CheckIfWaveformExistsRequest(vi=self._vi, waveform_name=waveform_name), - ) - return response.waveform_exists - - def clear_all_arb_waveforms(self): # noqa: N802 - self._invoke( - self._client.ClearAllArbWaveforms, - grpc_types.ClearAllArbWaveformsRequest(vi=self._vi), - ) - - def clear_arb_waveform(self, waveform_name): # noqa: N802 - self._invoke( - self._client.ClearArbWaveform, - grpc_types.ClearArbWaveformRequest(vi=self._vi, name=waveform_name), - ) - - def clear_self_calibrate_range(self): # noqa: N802 - self._invoke( - self._client.ClearSelfCalibrateRange, - grpc_types.ClearSelfCalibrateRangeRequest(vi=self._vi), - ) - - def commit(self): # noqa: N802 - self._invoke( - self._client.Commit, - grpc_types.CommitRequest(vi=self._vi), - ) - - def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 - self._invoke( - self._client.ConfigureDeembeddingTableInterpolationLinear, - grpc_types.ConfigureDeembeddingTableInterpolationLinearRequest(vi=self._vi, port=port, table_name=table_name, format_raw=format.value), - ) - - def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 - self._invoke( - self._client.ConfigureDeembeddingTableInterpolationNearest, - grpc_types.ConfigureDeembeddingTableInterpolationNearestRequest(vi=self._vi, port=port, table_name=table_name), - ) - - def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 - self._invoke( - self._client.ConfigureDeembeddingTableInterpolationSpline, - grpc_types.ConfigureDeembeddingTableInterpolationSplineRequest(vi=self._vi, port=port, table_name=table_name), - ) - - def configure_digital_edge_script_trigger(self, trigger_id, source, edge): # noqa: N802 - self._invoke( - self._client.ConfigureDigitalEdgeScriptTrigger, - grpc_types.ConfigureDigitalEdgeScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id, source_raw=source, edge_raw=edge.value), - ) - - def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 - self._invoke( - self._client.ConfigureDigitalEdgeStartTrigger, - grpc_types.ConfigureDigitalEdgeStartTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value), - ) - - def configure_digital_level_script_trigger(self, trigger_id, source, level): # noqa: N802 - self._invoke( - self._client.ConfigureDigitalLevelScriptTrigger, - grpc_types.ConfigureDigitalLevelScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id, source=source, level=level), - ) - - def configure_rf(self, frequency, power_level): # noqa: N802 - self._invoke( - self._client.ConfigureRF, - grpc_types.ConfigureRFRequest(vi=self._vi, frequency=frequency, power_level=power_level), - ) - - def configure_ref_clock(self, ref_clock_source, ref_clock_rate): # noqa: N802 - self._invoke( - self._client.ConfigureRefClock, - grpc_types.ConfigureRefClockRequest(vi=self._vi, ref_clock_source=ref_clock_source, ref_clock_rate=ref_clock_rate), - ) - - def configure_software_script_trigger(self, trigger_id): # noqa: N802 - self._invoke( - self._client.ConfigureSoftwareScriptTrigger, - grpc_types.ConfigureSoftwareScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id), - ) - - def configure_software_start_trigger(self): # noqa: N802 - self._invoke( - self._client.ConfigureSoftwareStartTrigger, - grpc_types.ConfigureSoftwareStartTriggerRequest(vi=self._vi), - ) - - def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - sparameter_table_list = [ - grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) - for val in sparameter_table.ravel() - ] - self._invoke( - self._client.CreateDeembeddingSparameterTableArray, - grpc_types.CreateDeembeddingSparameterTableArrayRequest(vi=self._vi, port=port, table_name=table_name, frequencies=frequencies, sparameter_table=sparameter_table_list, number_of_ports=number_of_ports, sparameter_orientation_raw=sparameter_orientation.value), - ) - - def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - self._invoke( - self._client.CreateDeembeddingSparameterTableS2PFile, - grpc_types.CreateDeembeddingSparameterTableS2PFileRequest(vi=self._vi, port=port, table_name=table_name, s2p_file_path=s2p_file_path, sparameter_orientation_raw=sparameter_orientation.value), - ) - - def delete_all_deembedding_tables(self): # noqa: N802 - self._invoke( - self._client.DeleteAllDeembeddingTables, - grpc_types.DeleteAllDeembeddingTablesRequest(vi=self._vi), - ) - - def delete_deembedding_table(self, port, table_name): # noqa: N802 - self._invoke( - self._client.DeleteDeembeddingTable, - grpc_types.DeleteDeembeddingTableRequest(vi=self._vi, port=port, table_name=table_name), - ) - - def delete_script(self, script_name): # noqa: N802 - self._invoke( - self._client.DeleteScript, - grpc_types.DeleteScriptRequest(vi=self._vi, script_name=script_name), - ) - - def disable_script_trigger(self, trigger_id): # noqa: N802 - self._invoke( - self._client.DisableScriptTrigger, - grpc_types.DisableScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id), - ) - - def disable_start_trigger(self): # noqa: N802 - self._invoke( - self._client.DisableStartTrigger, - grpc_types.DisableStartTriggerRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def get_all_named_waveform_names(self): # noqa: N802 - response = self._invoke( - self._client.GetAllNamedWaveformNames, - grpc_types.GetAllNamedWaveformNamesRequest(vi=self._vi), - ) - return response.waveform_names - - def get_all_script_names(self): # noqa: N802 - response = self._invoke( - self._client.GetAllScriptNames, - grpc_types.GetAllScriptNamesRequest(vi=self._vi), - ) - return response.script_names - - def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute), - ) - return response.value - - def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute), - ) - return response.value - - def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt64, - grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute), - ) - return response.value - - def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute), - ) - return response.value - - def get_attribute_vi_session(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViSession, - grpc_types.GetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute), - ) - return response.value - - def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute), - ) - return response.value - - def get_deembedding_sparameters(self): - import numpy as np - response = self._invoke( - self._client.GetDeembeddingSparameters, - grpc_types.GetDeembeddingSparametersRequest(vi=self._vi), - ) - number_of_ports = response.number_of_ports - sparameters = np.array([c.real + 1j * c.imaginary for c in response.sparameters], dtype=np.complex128) - sparameters = sparameters.reshape((number_of_ports, number_of_ports)) - return sparameters - - def get_deembedding_table_number_of_ports(self): # noqa: N802 - response = self._invoke( - self._client.GetDeembeddingTableNumberOfPorts, - grpc_types.GetDeembeddingTableNumberOfPortsRequest(vi=self._vi), - ) - return response.number_of_ports - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.error_description - - def get_external_calibration_last_date_and_time(self): # noqa: N802 - response = self._invoke( - self._client.GetExternalCalibrationLastDateAndTime, - grpc_types.GetExternalCalibrationLastDateAndTimeRequest(vi=self._vi), - ) - return response.year, response.month, response.day, response.hour, response.minute, response.second - - def get_max_settable_power(self): # noqa: N802 - response = self._invoke( - self._client.GetMaxSettablePower, - grpc_types.GetMaxSettablePowerRequest(vi=self._vi), - ) - return response.value - - def get_script(self, script_name): # noqa: N802 - response = self._invoke( - self._client.GetScript, - grpc_types.GetScriptRequest(vi=self._vi, script_name=script_name), - ) - return response.script - - def get_self_calibration_date_and_time(self, module): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalibrationDateAndTime, - grpc_types.GetSelfCalibrationDateAndTimeRequest(vi=self._vi, module=module.value), - ) - return response.year, response.month, response.day, response.hour, response.minute, response.second - - def get_self_calibration_temperature(self, module): # noqa: N802 - response = self._invoke( - self._client.GetSelfCalibrationTemperature, - grpc_types.GetSelfCalibrationTemperatureRequest(vi=self._vi, module_raw=module.value), - ) - return response.temperature - - def get_terminal_name(self, signal, signal_identifier): # noqa: N802 - response = self._invoke( - self._client.GetTerminalName, - grpc_types.GetTerminalNameRequest(vi=self._vi, signal_raw=signal.value, signal_identifier_raw=signal_identifier), - ) - return response.terminal_name - - def get_waveform_burst_start_locations(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.GetWaveformBurstStartLocations, - grpc_types.GetWaveformBurstStartLocationsRequest(vi=self._vi, channel_name=channel_name), - ) - return response.locations - - def get_waveform_burst_stop_locations(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.GetWaveformBurstStopLocations, - grpc_types.GetWaveformBurstStopLocationsRequest(vi=self._vi, channel_name=channel_name), - ) - return response.locations - - def get_waveform_marker_event_locations(self, channel_name): # noqa: N802 - response = self._invoke( - self._client.GetWaveformMarkerEventLocations, - grpc_types.GetWaveformMarkerEventLocationsRequest(vi=self._vi, channel_name=channel_name), - ) - return response.locations - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithOptions, - grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate(self): # noqa: N802 - self._invoke( - self._client.Initiate, - grpc_types.InitiateRequest(vi=self._vi), - ) - - def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 - self._invoke( - self._client.LoadConfigurationsFromFile, - grpc_types.LoadConfigurationsFromFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def perform_power_search(self): # noqa: N802 - self._invoke( - self._client.PerformPowerSearch, - grpc_types.PerformPowerSearchRequest(vi=self._vi), - ) - - def perform_thermal_correction(self): # noqa: N802 - self._invoke( - self._client.PerformThermalCorrection, - grpc_types.PerformThermalCorrectionRequest(vi=self._vi), - ) - - def query_arb_waveform_capabilities(self): # noqa: N802 - response = self._invoke( - self._client.QueryArbWaveformCapabilities, - grpc_types.QueryArbWaveformCapabilitiesRequest(vi=self._vi), - ) - return response.max_number_waveforms, response.waveform_quantum, response.min_waveform_size, response.max_waveform_size - - def read_and_download_waveform_from_file_tdms(self, waveform_name, file_path, waveform_index): # noqa: N802 - self._invoke( - self._client.ReadAndDownloadWaveformFromFileTDMS, - grpc_types.ReadAndDownloadWaveformFromFileTDMSRequest(vi=self._vi, waveform_name=waveform_name, file_path=file_path, waveform_index=waveform_index), - ) - - def reset_device(self): # noqa: N802 - self._invoke( - self._client.ResetDevice, - grpc_types.ResetDeviceRequest(vi=self._vi), - ) - - def reset_with_defaults(self): # noqa: N802 - self._invoke( - self._client.ResetWithDefaults, - grpc_types.ResetWithDefaultsRequest(vi=self._vi), - ) - - def reset_with_options(self, steps_to_omit): # noqa: N802 - self._invoke( - self._client.ResetWithOptions, - grpc_types.ResetWithOptionsRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value), - ) - - def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 - self._invoke( - self._client.SaveConfigurationsToFile, - grpc_types.SaveConfigurationsToFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), - ) - - def select_arb_waveform(self, waveform_name): # noqa: N802 - self._invoke( - self._client.SelectArbWaveform, - grpc_types.SelectArbWaveformRequest(vi=self._vi, name=waveform_name), - ) - - def self_cal(self): # noqa: N802 - self._invoke( - self._client.SelfCal, - grpc_types.SelfCalRequest(vi=self._vi), - ) - - def self_calibrate_range(self, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 - self._invoke( - self._client.SelfCalibrateRange, - grpc_types.SelfCalibrateRangeRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value, min_frequency=min_frequency, max_frequency=max_frequency, min_power_level=min_power_level, max_power_level=max_power_level), - ) - - def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 - self._invoke( - self._client.SendSoftwareEdgeTrigger, - grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_identifier_raw=trigger_identifier.value), - ) - - def set_arb_waveform_next_write_position(self, waveform_name, relative_to, offset): # noqa: N802 - self._invoke( - self._client.SetArbWaveformNextWritePosition, - grpc_types.SetArbWaveformNextWritePositionRequest(vi=self._vi, waveform_name=waveform_name, relative_to_raw=relative_to.value, offset=offset), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value=value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), - ) - - def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt64, - grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), - ) - - def set_attribute_vi_session(self, channel_name, attribute): # noqa: N802 - self._invoke( - self._client.SetAttributeViSession, - grpc_types.SetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value=self._vi), - ) - - def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), - ) - - def set_waveform_burst_start_locations(self, channel_name, locations): # noqa: N802 - self._invoke( - self._client.SetWaveformBurstStartLocations, - grpc_types.SetWaveformBurstStartLocationsRequest(vi=self._vi, channel_name=channel_name, locations=locations), - ) - - def set_waveform_burst_stop_locations(self, channel_name, locations): # noqa: N802 - self._invoke( - self._client.SetWaveformBurstStopLocations, - grpc_types.SetWaveformBurstStopLocationsRequest(vi=self._vi, channel_name=channel_name, locations=locations), - ) - - def set_waveform_marker_event_locations(self, channel_name, locations): # noqa: N802 - self._invoke( - self._client.SetWaveformMarkerEventLocations, - grpc_types.SetWaveformMarkerEventLocationsRequest(vi=self._vi, channel_name=channel_name, locations=locations), - ) - - def unlock(self): # noqa: N802 - self._lock.release() - - def wait_until_settled(self, max_time_milliseconds): # noqa: N802 - self._invoke( - self._client.WaitUntilSettled, - grpc_types.WaitUntilSettledRequest(vi=self._vi, max_time_milliseconds=max_time_milliseconds), - ) - - def write_arb_waveform_complex_f32(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - waveform_data_array_list = [ - grpc_complex_types.NIComplexNumberF32(real=val.real, imaginary=val.imag) - for val in waveform_data_array.ravel() - ] - self._invoke( - self._client.WriteArbWaveformComplexF32, - grpc_types.WriteArbWaveformComplexF32Request(vi=self._vi, waveform_name=waveform_name, wfm_data=waveform_data_array_list, more_data_pending=more_data_pending), - ) - - def write_arb_waveform_complex_f64(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - waveform_data_array_list = [ - grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) - for val in waveform_data_array.ravel() - ] - self._invoke( - self._client.WriteArbWaveformComplexF64, - grpc_types.WriteArbWaveformComplexF64Request(vi=self._vi, waveform_name=waveform_name, wfm_data=waveform_data_array_list, more_data_pending=more_data_pending), - ) - - def write_arb_waveform_complex_i16(self, waveform_name, waveform_data_array): # noqa: N802 - # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. - arr = waveform_data_array.ravel() - if arr.size % 2 != 0: - raise ValueError("Interleaved int16 array must have even length (real/imag pairs)") - arr_pairs = arr.reshape(-1, 2) - waveform_data_array_list = [ - grpc_complex_types.NIComplexI16(real=int(pair[0]), imaginary=int(pair[1])) - for pair in arr_pairs - ] - self._invoke( - self._client.WriteArbWaveformComplexI16, - grpc_types.WriteArbWaveformComplexI16Request(vi=self._vi, waveform_name=waveform_name, wfm_data=waveform_data_array_list), - ) - - def write_script(self, script): # noqa: N802 - self._invoke( - self._client.WriteScript, - grpc_types.WriteScriptRequest(vi=self._vi, script=script), - ) - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.self_test_result, response.self_test_message diff --git a/generated/nirfsg/nirfsg/_library.py b/generated/nirfsg/nirfsg/_library.py deleted file mode 100644 index fba0e06d98..0000000000 --- a/generated/nirfsg/nirfsg/_library.py +++ /dev/null @@ -1,776 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nirfsg.errors as errors -import threading - -from nirfsg._complextype import * # noqa: F403 -from nirfsg._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niRFSG_Abort_cfunc = None - self.niRFSG_AllocateArbWaveform_cfunc = None - self.niRFSG_ChangeExternalCalibrationPassword_cfunc = None - self.niRFSG_CheckGenerationStatus_cfunc = None - self.niRFSG_CheckIfScriptExists_cfunc = None - self.niRFSG_CheckIfWaveformExists_cfunc = None - self.niRFSG_ClearAllArbWaveforms_cfunc = None - self.niRFSG_ClearArbWaveform_cfunc = None - self.niRFSG_ClearSelfCalibrateRange_cfunc = None - self.niRFSG_Commit_cfunc = None - self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc = None - self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc = None - self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc = None - self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc = None - self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc = None - self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc = None - self.niRFSG_ConfigureRF_cfunc = None - self.niRFSG_ConfigureRefClock_cfunc = None - self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc = None - self.niRFSG_ConfigureSoftwareStartTrigger_cfunc = None - self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc = None - self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc = None - self.niRFSG_DeleteAllDeembeddingTables_cfunc = None - self.niRFSG_DeleteDeembeddingTable_cfunc = None - self.niRFSG_DeleteScript_cfunc = None - self.niRFSG_DisableScriptTrigger_cfunc = None - self.niRFSG_DisableStartTrigger_cfunc = None - self.niRFSG_ErrorMessage_cfunc = None - self.niRFSG_GetAllNamedWaveformNames_cfunc = None - self.niRFSG_GetAllScriptNames_cfunc = None - self.niRFSG_GetAttributeViBoolean_cfunc = None - self.niRFSG_GetAttributeViInt32_cfunc = None - self.niRFSG_GetAttributeViInt64_cfunc = None - self.niRFSG_GetAttributeViReal64_cfunc = None - self.niRFSG_GetAttributeViSession_cfunc = None - self.niRFSG_GetAttributeViString_cfunc = None - self.niRFSG_GetDeembeddingSparameters_cfunc = None - self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc = None - self.niRFSG_GetError_cfunc = None - self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc = None - self.niRFSG_GetMaxSettablePower_cfunc = None - self.niRFSG_GetScript_cfunc = None - self.niRFSG_GetSelfCalibrationDateAndTime_cfunc = None - self.niRFSG_GetSelfCalibrationTemperature_cfunc = None - self.niRFSG_GetTerminalName_cfunc = None - self.niRFSG_GetWaveformBurstStartLocations_cfunc = None - self.niRFSG_GetWaveformBurstStopLocations_cfunc = None - self.niRFSG_GetWaveformMarkerEventLocations_cfunc = None - self.niRFSG_InitWithOptions_cfunc = None - self.niRFSG_Initiate_cfunc = None - self.niRFSG_LoadConfigurationsFromFile_cfunc = None - self.niRFSG_LockSession_cfunc = None - self.niRFSG_PerformPowerSearch_cfunc = None - self.niRFSG_PerformThermalCorrection_cfunc = None - self.niRFSG_QueryArbWaveformCapabilities_cfunc = None - self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc = None - self.niRFSG_ResetDevice_cfunc = None - self.niRFSG_ResetWithDefaults_cfunc = None - self.niRFSG_ResetWithOptions_cfunc = None - self.niRFSG_SaveConfigurationsToFile_cfunc = None - self.niRFSG_SelectArbWaveform_cfunc = None - self.niRFSG_SelfCal_cfunc = None - self.niRFSG_SelfCalibrateRange_cfunc = None - self.niRFSG_SendSoftwareEdgeTrigger_cfunc = None - self.niRFSG_SetArbWaveformNextWritePosition_cfunc = None - self.niRFSG_SetAttributeViBoolean_cfunc = None - self.niRFSG_SetAttributeViInt32_cfunc = None - self.niRFSG_SetAttributeViInt64_cfunc = None - self.niRFSG_SetAttributeViReal64_cfunc = None - self.niRFSG_SetAttributeViSession_cfunc = None - self.niRFSG_SetAttributeViString_cfunc = None - self.niRFSG_SetWaveformBurstStartLocations_cfunc = None - self.niRFSG_SetWaveformBurstStopLocations_cfunc = None - self.niRFSG_SetWaveformMarkerEventLocations_cfunc = None - self.niRFSG_UnlockSession_cfunc = None - self.niRFSG_WaitUntilSettled_cfunc = None - self.niRFSG_WriteArbWaveformComplexF32_cfunc = None - self.niRFSG_WriteArbWaveformComplexF64_cfunc = None - self.niRFSG_WriteArbWaveformComplexI16_cfunc = None - self.niRFSG_WriteScript_cfunc = None - self.niRFSG_close_cfunc = None - self.niRFSG_reset_cfunc = None - self.niRFSG_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niRFSG_Abort(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_Abort_cfunc is None: - self.niRFSG_Abort_cfunc = self._get_library_function('niRFSG_Abort') - self.niRFSG_Abort_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_Abort_cfunc(vi) - - def niRFSG_AllocateArbWaveform(self, vi, waveform_name, size_in_samples): # noqa: N802 - with self._func_lock: - if self.niRFSG_AllocateArbWaveform_cfunc is None: - self.niRFSG_AllocateArbWaveform_cfunc = self._get_library_function('niRFSG_AllocateArbWaveform') - self.niRFSG_AllocateArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSG_AllocateArbWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_AllocateArbWaveform_cfunc(vi, waveform_name, size_in_samples) - - def niRFSG_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 - with self._func_lock: - if self.niRFSG_ChangeExternalCalibrationPassword_cfunc is None: - self.niRFSG_ChangeExternalCalibrationPassword_cfunc = self._get_library_function('niRFSG_ChangeExternalCalibrationPassword') - self.niRFSG_ChangeExternalCalibrationPassword_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_ChangeExternalCalibrationPassword_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ChangeExternalCalibrationPassword_cfunc(vi, old_password, new_password) - - def niRFSG_CheckGenerationStatus(self, vi, is_done): # noqa: N802 - with self._func_lock: - if self.niRFSG_CheckGenerationStatus_cfunc is None: - self.niRFSG_CheckGenerationStatus_cfunc = self._get_library_function('niRFSG_CheckGenerationStatus') - self.niRFSG_CheckGenerationStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSG_CheckGenerationStatus_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_CheckGenerationStatus_cfunc(vi, is_done) - - def niRFSG_CheckIfScriptExists(self, vi, script_name, script_exists): # noqa: N802 - with self._func_lock: - if self.niRFSG_CheckIfScriptExists_cfunc is None: - self.niRFSG_CheckIfScriptExists_cfunc = self._get_library_function('niRFSG_CheckIfScriptExists') - self.niRFSG_CheckIfScriptExists_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSG_CheckIfScriptExists_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_CheckIfScriptExists_cfunc(vi, script_name, script_exists) - - def niRFSG_CheckIfWaveformExists(self, vi, waveform_name, waveform_exists): # noqa: N802 - with self._func_lock: - if self.niRFSG_CheckIfWaveformExists_cfunc is None: - self.niRFSG_CheckIfWaveformExists_cfunc = self._get_library_function('niRFSG_CheckIfWaveformExists') - self.niRFSG_CheckIfWaveformExists_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSG_CheckIfWaveformExists_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_CheckIfWaveformExists_cfunc(vi, waveform_name, waveform_exists) - - def niRFSG_ClearAllArbWaveforms(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_ClearAllArbWaveforms_cfunc is None: - self.niRFSG_ClearAllArbWaveforms_cfunc = self._get_library_function('niRFSG_ClearAllArbWaveforms') - self.niRFSG_ClearAllArbWaveforms_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_ClearAllArbWaveforms_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ClearAllArbWaveforms_cfunc(vi) - - def niRFSG_ClearArbWaveform(self, vi, waveform_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_ClearArbWaveform_cfunc is None: - self.niRFSG_ClearArbWaveform_cfunc = self._get_library_function('niRFSG_ClearArbWaveform') - self.niRFSG_ClearArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_ClearArbWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ClearArbWaveform_cfunc(vi, waveform_name) - - def niRFSG_ClearSelfCalibrateRange(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_ClearSelfCalibrateRange_cfunc is None: - self.niRFSG_ClearSelfCalibrateRange_cfunc = self._get_library_function('niRFSG_ClearSelfCalibrateRange') - self.niRFSG_ClearSelfCalibrateRange_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_ClearSelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ClearSelfCalibrateRange_cfunc(vi) - - def niRFSG_Commit(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_Commit_cfunc is None: - self.niRFSG_Commit_cfunc = self._get_library_function('niRFSG_Commit') - self.niRFSG_Commit_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_Commit_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_Commit_cfunc(vi) - - def niRFSG_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc is None: - self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc = self._get_library_function('niRFSG_ConfigureDeembeddingTableInterpolationLinear') - self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc(vi, port, table_name, format) - - def niRFSG_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc is None: - self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc = self._get_library_function('niRFSG_ConfigureDeembeddingTableInterpolationNearest') - self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc(vi, port, table_name) - - def niRFSG_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc is None: - self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc = self._get_library_function('niRFSG_ConfigureDeembeddingTableInterpolationSpline') - self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc(vi, port, table_name) - - def niRFSG_ConfigureDigitalEdgeScriptTrigger(self, vi, trigger_id, source, edge): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc is None: - self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc = self._get_library_function('niRFSG_ConfigureDigitalEdgeScriptTrigger') - self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc(vi, trigger_id, source, edge) - - def niRFSG_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc is None: - self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc = self._get_library_function('niRFSG_ConfigureDigitalEdgeStartTrigger') - self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc(vi, source, edge) - - def niRFSG_ConfigureDigitalLevelScriptTrigger(self, vi, trigger_id, source, level): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc is None: - self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc = self._get_library_function('niRFSG_ConfigureDigitalLevelScriptTrigger') - self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc(vi, trigger_id, source, level) - - def niRFSG_ConfigureRF(self, vi, frequency, power_level): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureRF_cfunc is None: - self.niRFSG_ConfigureRF_cfunc = self._get_library_function('niRFSG_ConfigureRF') - self.niRFSG_ConfigureRF_cfunc.argtypes = [ViSession, ViReal64, ViReal64] # noqa: F405 - self.niRFSG_ConfigureRF_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureRF_cfunc(vi, frequency, power_level) - - def niRFSG_ConfigureRefClock(self, vi, ref_clock_source, ref_clock_rate): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureRefClock_cfunc is None: - self.niRFSG_ConfigureRefClock_cfunc = self._get_library_function('niRFSG_ConfigureRefClock') - self.niRFSG_ConfigureRefClock_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64] # noqa: F405 - self.niRFSG_ConfigureRefClock_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureRefClock_cfunc(vi, ref_clock_source, ref_clock_rate) - - def niRFSG_ConfigureSoftwareScriptTrigger(self, vi, trigger_id): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc is None: - self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc = self._get_library_function('niRFSG_ConfigureSoftwareScriptTrigger') - self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc(vi, trigger_id) - - def niRFSG_ConfigureSoftwareStartTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_ConfigureSoftwareStartTrigger_cfunc is None: - self.niRFSG_ConfigureSoftwareStartTrigger_cfunc = self._get_library_function('niRFSG_ConfigureSoftwareStartTrigger') - self.niRFSG_ConfigureSoftwareStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_ConfigureSoftwareStartTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ConfigureSoftwareStartTrigger_cfunc(vi) - - def niRFSG_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 - with self._func_lock: - if self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc is None: - self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc = self._get_library_function('niRFSG_CreateDeembeddingSparameterTableArray') - self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(NIComplexNumber), ViInt32, ViInt32, ViInt32] # noqa: F405 - self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc(vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation) - - def niRFSG_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - with self._func_lock: - if self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc is None: - self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc = self._get_library_function('niRFSG_CreateDeembeddingSparameterTableS2PFile') - self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc(vi, port, table_name, s2p_file_path, sparameter_orientation) - - def niRFSG_DeleteAllDeembeddingTables(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_DeleteAllDeembeddingTables_cfunc is None: - self.niRFSG_DeleteAllDeembeddingTables_cfunc = self._get_library_function('niRFSG_DeleteAllDeembeddingTables') - self.niRFSG_DeleteAllDeembeddingTables_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_DeleteAllDeembeddingTables_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_DeleteAllDeembeddingTables_cfunc(vi) - - def niRFSG_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_DeleteDeembeddingTable_cfunc is None: - self.niRFSG_DeleteDeembeddingTable_cfunc = self._get_library_function('niRFSG_DeleteDeembeddingTable') - self.niRFSG_DeleteDeembeddingTable_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_DeleteDeembeddingTable_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_DeleteDeembeddingTable_cfunc(vi, port, table_name) - - def niRFSG_DeleteScript(self, vi, script_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_DeleteScript_cfunc is None: - self.niRFSG_DeleteScript_cfunc = self._get_library_function('niRFSG_DeleteScript') - self.niRFSG_DeleteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_DeleteScript_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_DeleteScript_cfunc(vi, script_name) - - def niRFSG_DisableScriptTrigger(self, vi, trigger_id): # noqa: N802 - with self._func_lock: - if self.niRFSG_DisableScriptTrigger_cfunc is None: - self.niRFSG_DisableScriptTrigger_cfunc = self._get_library_function('niRFSG_DisableScriptTrigger') - self.niRFSG_DisableScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_DisableScriptTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_DisableScriptTrigger_cfunc(vi, trigger_id) - - def niRFSG_DisableStartTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_DisableStartTrigger_cfunc is None: - self.niRFSG_DisableStartTrigger_cfunc = self._get_library_function('niRFSG_DisableStartTrigger') - self.niRFSG_DisableStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_DisableStartTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_DisableStartTrigger_cfunc(vi) - - def niRFSG_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niRFSG_ErrorMessage_cfunc is None: - self.niRFSG_ErrorMessage_cfunc = self._get_library_function('niRFSG_ErrorMessage') - self.niRFSG_ErrorMessage_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_ErrorMessage_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ErrorMessage_cfunc(vi, error_code, error_message) - - def niRFSG_GetAllNamedWaveformNames(self, vi, waveform_names, buffer_size, actual_buffer_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAllNamedWaveformNames_cfunc is None: - self.niRFSG_GetAllNamedWaveformNames_cfunc = self._get_library_function('niRFSG_GetAllNamedWaveformNames') - self.niRFSG_GetAllNamedWaveformNames_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetAllNamedWaveformNames_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAllNamedWaveformNames_cfunc(vi, waveform_names, buffer_size, actual_buffer_size) - - def niRFSG_GetAllScriptNames(self, vi, script_names, buffer_size, actual_buffer_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAllScriptNames_cfunc is None: - self.niRFSG_GetAllScriptNames_cfunc = self._get_library_function('niRFSG_GetAllScriptNames') - self.niRFSG_GetAllScriptNames_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetAllScriptNames_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAllScriptNames_cfunc(vi, script_names, buffer_size, actual_buffer_size) - - def niRFSG_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAttributeViBoolean_cfunc is None: - self.niRFSG_GetAttributeViBoolean_cfunc = self._get_library_function('niRFSG_GetAttributeViBoolean') - self.niRFSG_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSG_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) - - def niRFSG_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAttributeViInt32_cfunc is None: - self.niRFSG_GetAttributeViInt32_cfunc = self._get_library_function('niRFSG_GetAttributeViInt32') - self.niRFSG_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAttributeViInt32_cfunc(vi, channel_name, attribute, value) - - def niRFSG_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAttributeViInt64_cfunc is None: - self.niRFSG_GetAttributeViInt64_cfunc = self._get_library_function('niRFSG_GetAttributeViInt64') - self.niRFSG_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niRFSG_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAttributeViInt64_cfunc(vi, channel_name, attribute, value) - - def niRFSG_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAttributeViReal64_cfunc is None: - self.niRFSG_GetAttributeViReal64_cfunc = self._get_library_function('niRFSG_GetAttributeViReal64') - self.niRFSG_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSG_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAttributeViReal64_cfunc(vi, channel_name, attribute, value) - - def niRFSG_GetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAttributeViSession_cfunc is None: - self.niRFSG_GetAttributeViSession_cfunc = self._get_library_function('niRFSG_GetAttributeViSession') - self.niRFSG_GetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViSession)] # noqa: F405 - self.niRFSG_GetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAttributeViSession_cfunc(vi, channel_name, attribute, value) - - def niRFSG_GetAttributeViString(self, vi, channel_name, attribute, buf_size, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetAttributeViString_cfunc is None: - self.niRFSG_GetAttributeViString_cfunc = self._get_library_function('niRFSG_GetAttributeViString') - self.niRFSG_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetAttributeViString_cfunc(vi, channel_name, attribute, buf_size, value) - - def niRFSG_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetDeembeddingSparameters_cfunc is None: - self.niRFSG_GetDeembeddingSparameters_cfunc = self._get_library_function('niRFSG_GetDeembeddingSparameters') - self.niRFSG_GetDeembeddingSparameters_cfunc.argtypes = [ViSession, ctypes.POINTER(NIComplexNumber), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetDeembeddingSparameters_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetDeembeddingSparameters_cfunc(vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports) - - def niRFSG_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc is None: - self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc = self._get_library_function('niRFSG_GetDeembeddingTableNumberOfPorts') - self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc(vi, number_of_ports) - - def niRFSG_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetError_cfunc is None: - self.niRFSG_GetError_cfunc = self._get_library_function('niRFSG_GetError') - self.niRFSG_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) - - def niRFSG_GetExternalCalibrationLastDateAndTime(self, vi, year, month, day, hour, minute, second): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc is None: - self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc = self._get_library_function('niRFSG_GetExternalCalibrationLastDateAndTime') - self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc(vi, year, month, day, hour, minute, second) - - def niRFSG_GetMaxSettablePower(self, vi, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetMaxSettablePower_cfunc is None: - self.niRFSG_GetMaxSettablePower_cfunc = self._get_library_function('niRFSG_GetMaxSettablePower') - self.niRFSG_GetMaxSettablePower_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSG_GetMaxSettablePower_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetMaxSettablePower_cfunc(vi, value) - - def niRFSG_GetScript(self, vi, script_name, script, buffer_size, actual_buffer_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetScript_cfunc is None: - self.niRFSG_GetScript_cfunc = self._get_library_function('niRFSG_GetScript') - self.niRFSG_GetScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetScript_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetScript_cfunc(vi, script_name, script, buffer_size, actual_buffer_size) - - def niRFSG_GetSelfCalibrationDateAndTime(self, vi, module, year, month, day, hour, minute, second): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetSelfCalibrationDateAndTime_cfunc is None: - self.niRFSG_GetSelfCalibrationDateAndTime_cfunc = self._get_library_function('niRFSG_GetSelfCalibrationDateAndTime') - self.niRFSG_GetSelfCalibrationDateAndTime_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetSelfCalibrationDateAndTime_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetSelfCalibrationDateAndTime_cfunc(vi, module, year, month, day, hour, minute, second) - - def niRFSG_GetSelfCalibrationTemperature(self, vi, module, temperature): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetSelfCalibrationTemperature_cfunc is None: - self.niRFSG_GetSelfCalibrationTemperature_cfunc = self._get_library_function('niRFSG_GetSelfCalibrationTemperature') - self.niRFSG_GetSelfCalibrationTemperature_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSG_GetSelfCalibrationTemperature_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetSelfCalibrationTemperature_cfunc(vi, module, temperature) - - def niRFSG_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetTerminalName_cfunc is None: - self.niRFSG_GetTerminalName_cfunc = self._get_library_function('niRFSG_GetTerminalName') - self.niRFSG_GetTerminalName_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_GetTerminalName_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetTerminalName_cfunc(vi, signal, signal_identifier, buffer_size, terminal_name) - - def niRFSG_GetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetWaveformBurstStartLocations_cfunc is None: - self.niRFSG_GetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStartLocations') - self.niRFSG_GetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size) - - def niRFSG_GetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetWaveformBurstStopLocations_cfunc is None: - self.niRFSG_GetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStopLocations') - self.niRFSG_GetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size) - - def niRFSG_GetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_GetWaveformMarkerEventLocations_cfunc is None: - self.niRFSG_GetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_GetWaveformMarkerEventLocations') - self.niRFSG_GetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_GetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_GetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size) - - def niRFSG_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_InitWithOptions_cfunc is None: - self.niRFSG_InitWithOptions_cfunc = self._get_library_function('niRFSG_InitWithOptions') - self.niRFSG_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niRFSG_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, new_vi) - - def niRFSG_Initiate(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_Initiate_cfunc is None: - self.niRFSG_Initiate_cfunc = self._get_library_function('niRFSG_Initiate') - self.niRFSG_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_Initiate_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_Initiate_cfunc(vi) - - def niRFSG_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 - with self._func_lock: - if self.niRFSG_LoadConfigurationsFromFile_cfunc is None: - self.niRFSG_LoadConfigurationsFromFile_cfunc = self._get_library_function('niRFSG_LoadConfigurationsFromFile') - self.niRFSG_LoadConfigurationsFromFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_LoadConfigurationsFromFile_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_LoadConfigurationsFromFile_cfunc(vi, channel_name, file_path) - - def niRFSG_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niRFSG_LockSession_cfunc is None: - self.niRFSG_LockSession_cfunc = self._get_library_function('niRFSG_LockSession') - self.niRFSG_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSG_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_LockSession_cfunc(vi, caller_has_lock) - - def niRFSG_PerformPowerSearch(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_PerformPowerSearch_cfunc is None: - self.niRFSG_PerformPowerSearch_cfunc = self._get_library_function('niRFSG_PerformPowerSearch') - self.niRFSG_PerformPowerSearch_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_PerformPowerSearch_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_PerformPowerSearch_cfunc(vi) - - def niRFSG_PerformThermalCorrection(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_PerformThermalCorrection_cfunc is None: - self.niRFSG_PerformThermalCorrection_cfunc = self._get_library_function('niRFSG_PerformThermalCorrection') - self.niRFSG_PerformThermalCorrection_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_PerformThermalCorrection_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_PerformThermalCorrection_cfunc(vi) - - def niRFSG_QueryArbWaveformCapabilities(self, vi, max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size): # noqa: N802 - with self._func_lock: - if self.niRFSG_QueryArbWaveformCapabilities_cfunc is None: - self.niRFSG_QueryArbWaveformCapabilities_cfunc = self._get_library_function('niRFSG_QueryArbWaveformCapabilities') - self.niRFSG_QueryArbWaveformCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niRFSG_QueryArbWaveformCapabilities_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_QueryArbWaveformCapabilities_cfunc(vi, max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size) - - def niRFSG_ReadAndDownloadWaveformFromFileTDMS(self, vi, waveform_name, file_path, waveform_index): # noqa: N802 - with self._func_lock: - if self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc is None: - self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc = self._get_library_function('niRFSG_ReadAndDownloadWaveformFromFileTDMS') - self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViUInt32] # noqa: F405 - self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc(vi, waveform_name, file_path, waveform_index) - - def niRFSG_ResetDevice(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_ResetDevice_cfunc is None: - self.niRFSG_ResetDevice_cfunc = self._get_library_function('niRFSG_ResetDevice') - self.niRFSG_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_ResetDevice_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ResetDevice_cfunc(vi) - - def niRFSG_ResetWithDefaults(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_ResetWithDefaults_cfunc is None: - self.niRFSG_ResetWithDefaults_cfunc = self._get_library_function('niRFSG_ResetWithDefaults') - self.niRFSG_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ResetWithDefaults_cfunc(vi) - - def niRFSG_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 - with self._func_lock: - if self.niRFSG_ResetWithOptions_cfunc is None: - self.niRFSG_ResetWithOptions_cfunc = self._get_library_function('niRFSG_ResetWithOptions') - self.niRFSG_ResetWithOptions_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405 - self.niRFSG_ResetWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_ResetWithOptions_cfunc(vi, steps_to_omit) - - def niRFSG_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 - with self._func_lock: - if self.niRFSG_SaveConfigurationsToFile_cfunc is None: - self.niRFSG_SaveConfigurationsToFile_cfunc = self._get_library_function('niRFSG_SaveConfigurationsToFile') - self.niRFSG_SaveConfigurationsToFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_SaveConfigurationsToFile_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SaveConfigurationsToFile_cfunc(vi, channel_name, file_path) - - def niRFSG_SelectArbWaveform(self, vi, waveform_name): # noqa: N802 - with self._func_lock: - if self.niRFSG_SelectArbWaveform_cfunc is None: - self.niRFSG_SelectArbWaveform_cfunc = self._get_library_function('niRFSG_SelectArbWaveform') - self.niRFSG_SelectArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_SelectArbWaveform_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SelectArbWaveform_cfunc(vi, waveform_name) - - def niRFSG_SelfCal(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_SelfCal_cfunc is None: - self.niRFSG_SelfCal_cfunc = self._get_library_function('niRFSG_SelfCal') - self.niRFSG_SelfCal_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_SelfCal_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SelfCal_cfunc(vi) - - def niRFSG_SelfCalibrateRange(self, vi, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 - with self._func_lock: - if self.niRFSG_SelfCalibrateRange_cfunc is None: - self.niRFSG_SelfCalibrateRange_cfunc = self._get_library_function('niRFSG_SelfCalibrateRange') - self.niRFSG_SelfCalibrateRange_cfunc.argtypes = [ViSession, ViInt64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niRFSG_SelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SelfCalibrateRange_cfunc(vi, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level) - - def niRFSG_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 - with self._func_lock: - if self.niRFSG_SendSoftwareEdgeTrigger_cfunc is None: - self.niRFSG_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niRFSG_SendSoftwareEdgeTrigger') - self.niRFSG_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_identifier) - - def niRFSG_SetArbWaveformNextWritePosition(self, vi, waveform_name, relative_to, offset): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetArbWaveformNextWritePosition_cfunc is None: - self.niRFSG_SetArbWaveformNextWritePosition_cfunc = self._get_library_function('niRFSG_SetArbWaveformNextWritePosition') - self.niRFSG_SetArbWaveformNextWritePosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32] # noqa: F405 - self.niRFSG_SetArbWaveformNextWritePosition_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetArbWaveformNextWritePosition_cfunc(vi, waveform_name, relative_to, offset) - - def niRFSG_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetAttributeViBoolean_cfunc is None: - self.niRFSG_SetAttributeViBoolean_cfunc = self._get_library_function('niRFSG_SetAttributeViBoolean') - self.niRFSG_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niRFSG_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) - - def niRFSG_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetAttributeViInt32_cfunc is None: - self.niRFSG_SetAttributeViInt32_cfunc = self._get_library_function('niRFSG_SetAttributeViInt32') - self.niRFSG_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niRFSG_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetAttributeViInt32_cfunc(vi, channel_name, attribute, value) - - def niRFSG_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetAttributeViInt64_cfunc is None: - self.niRFSG_SetAttributeViInt64_cfunc = self._get_library_function('niRFSG_SetAttributeViInt64') - self.niRFSG_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 - self.niRFSG_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetAttributeViInt64_cfunc(vi, channel_name, attribute, value) - - def niRFSG_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetAttributeViReal64_cfunc is None: - self.niRFSG_SetAttributeViReal64_cfunc = self._get_library_function('niRFSG_SetAttributeViReal64') - self.niRFSG_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niRFSG_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetAttributeViReal64_cfunc(vi, channel_name, attribute, value) - - def niRFSG_SetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetAttributeViSession_cfunc is None: - self.niRFSG_SetAttributeViSession_cfunc = self._get_library_function('niRFSG_SetAttributeViSession') - self.niRFSG_SetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViSession] # noqa: F405 - self.niRFSG_SetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetAttributeViSession_cfunc(vi, channel_name, attribute, value) - - def niRFSG_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetAttributeViString_cfunc is None: - self.niRFSG_SetAttributeViString_cfunc = self._get_library_function('niRFSG_SetAttributeViString') - self.niRFSG_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetAttributeViString_cfunc(vi, channel_name, attribute, value) - - def niRFSG_SetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetWaveformBurstStartLocations_cfunc is None: - self.niRFSG_SetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStartLocations') - self.niRFSG_SetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSG_SetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations) - - def niRFSG_SetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetWaveformBurstStopLocations_cfunc is None: - self.niRFSG_SetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStopLocations') - self.niRFSG_SetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSG_SetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations) - - def niRFSG_SetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 - with self._func_lock: - if self.niRFSG_SetWaveformMarkerEventLocations_cfunc is None: - self.niRFSG_SetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_SetWaveformMarkerEventLocations') - self.niRFSG_SetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niRFSG_SetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_SetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations) - - def niRFSG_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niRFSG_UnlockSession_cfunc is None: - self.niRFSG_UnlockSession_cfunc = self._get_library_function('niRFSG_UnlockSession') - self.niRFSG_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niRFSG_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_UnlockSession_cfunc(vi, caller_has_lock) - - def niRFSG_WaitUntilSettled(self, vi, max_time_milliseconds): # noqa: N802 - with self._func_lock: - if self.niRFSG_WaitUntilSettled_cfunc is None: - self.niRFSG_WaitUntilSettled_cfunc = self._get_library_function('niRFSG_WaitUntilSettled') - self.niRFSG_WaitUntilSettled_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niRFSG_WaitUntilSettled_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_WaitUntilSettled_cfunc(vi, max_time_milliseconds) - - def niRFSG_WriteArbWaveformComplexF32(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 - with self._func_lock: - if self.niRFSG_WriteArbWaveformComplexF32_cfunc is None: - self.niRFSG_WriteArbWaveformComplexF32_cfunc = self._get_library_function('niRFSG_WriteArbWaveformComplexF32') - self.niRFSG_WriteArbWaveformComplexF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(NIComplexNumberF32), ViBoolean] # noqa: F405 - self.niRFSG_WriteArbWaveformComplexF32_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_WriteArbWaveformComplexF32_cfunc(vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending) - - def niRFSG_WriteArbWaveformComplexF64(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 - with self._func_lock: - if self.niRFSG_WriteArbWaveformComplexF64_cfunc is None: - self.niRFSG_WriteArbWaveformComplexF64_cfunc = self._get_library_function('niRFSG_WriteArbWaveformComplexF64') - self.niRFSG_WriteArbWaveformComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(NIComplexNumber), ViBoolean] # noqa: F405 - self.niRFSG_WriteArbWaveformComplexF64_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_WriteArbWaveformComplexF64_cfunc(vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending) - - def niRFSG_WriteArbWaveformComplexI16(self, vi, waveform_name, number_of_samples, waveform_data_array): # noqa: N802 - with self._func_lock: - if self.niRFSG_WriteArbWaveformComplexI16_cfunc is None: - self.niRFSG_WriteArbWaveformComplexI16_cfunc = self._get_library_function('niRFSG_WriteArbWaveformComplexI16') - self.niRFSG_WriteArbWaveformComplexI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(NIComplexI16)] # noqa: F405 - self.niRFSG_WriteArbWaveformComplexI16_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_WriteArbWaveformComplexI16_cfunc(vi, waveform_name, number_of_samples, waveform_data_array) - - def niRFSG_WriteScript(self, vi, script): # noqa: N802 - with self._func_lock: - if self.niRFSG_WriteScript_cfunc is None: - self.niRFSG_WriteScript_cfunc = self._get_library_function('niRFSG_WriteScript') - self.niRFSG_WriteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_WriteScript_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_WriteScript_cfunc(vi, script) - - def niRFSG_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_close_cfunc is None: - self.niRFSG_close_cfunc = self._get_library_function('niRFSG_close') - self.niRFSG_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_close_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_close_cfunc(vi) - - def niRFSG_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niRFSG_reset_cfunc is None: - self.niRFSG_reset_cfunc = self._get_library_function('niRFSG_reset') - self.niRFSG_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niRFSG_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_reset_cfunc(vi) - - def niRFSG_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niRFSG_self_test_cfunc is None: - self.niRFSG_self_test_cfunc = self._get_library_function('niRFSG_self_test') - self.niRFSG_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niRFSG_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niRFSG_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nirfsg/nirfsg/_library_interpreter.py b/generated/nirfsg/nirfsg/_library_interpreter.py deleted file mode 100644 index 354881d32e..0000000000 --- a/generated/nirfsg/nirfsg/_library_interpreter.py +++ /dev/null @@ -1,820 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import nirfsg._complextype as _complextype -import nirfsg._library_singleton as _library_singleton -import nirfsg._visatype as _visatype -import nirfsg.enums as enums # noqa: F401 -import nirfsg.errors as errors - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - if library_type in (_complextype.NIComplexI16, _complextype.NIComplexNumberF32, _complextype.NIComplexNumber): - complex_dtype = numpy.dtype(library_type) - if value.ndim > 1: - # we create a flattened view of the multi-dimensional numpy array - restructured_array_view = value.ravel().view(complex_dtype) - else: - restructured_array_view = value.view(complex_dtype) - return restructured_array_view.ctypes.data_as(ctypes.POINTER(library_type)) - else: - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_Abort(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def allocate_arb_waveform(self, waveform_name, size_in_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - size_in_samples_ctype = _visatype.ViInt32(size_in_samples) # case S150 - error_code = self._library.niRFSG_AllocateArbWaveform(vi_ctype, waveform_name_ctype, size_in_samples_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def change_external_calibration_password(self, old_password, new_password): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - old_password_ctype = ctypes.create_string_buffer(old_password.encode(self._encoding)) # case C020 - new_password_ctype = ctypes.create_string_buffer(new_password.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_ChangeExternalCalibrationPassword(vi_ctype, old_password_ctype, new_password_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def check_generation_status(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - is_done_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niRFSG_CheckGenerationStatus(vi_ctype, None if is_done_ctype is None else (ctypes.pointer(is_done_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(is_done_ctype.value) - - def check_if_script_exists(self, script_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 - script_exists_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niRFSG_CheckIfScriptExists(vi_ctype, script_name_ctype, None if script_exists_ctype is None else (ctypes.pointer(script_exists_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(script_exists_ctype.value) - - def check_if_waveform_exists(self, waveform_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - waveform_exists_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niRFSG_CheckIfWaveformExists(vi_ctype, waveform_name_ctype, None if waveform_exists_ctype is None else (ctypes.pointer(waveform_exists_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(waveform_exists_ctype.value) - - def clear_all_arb_waveforms(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_ClearAllArbWaveforms(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_arb_waveform(self, waveform_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_ClearArbWaveform(vi_ctype, waveform_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_self_calibrate_range(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_ClearSelfCalibrateRange(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def commit(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_Commit(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - format_ctype = _visatype.ViInt32(format.value) # case S130 - error_code = self._library.niRFSG_ConfigureDeembeddingTableInterpolationLinear(vi_ctype, port_ctype, table_name_ctype, format_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_ConfigureDeembeddingTableInterpolationNearest(vi_ctype, port_ctype, table_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_ConfigureDeembeddingTableInterpolationSpline(vi_ctype, port_ctype, table_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_digital_edge_script_trigger(self, trigger_id, source, edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - error_code = self._library.niRFSG_ConfigureDigitalEdgeScriptTrigger(vi_ctype, trigger_id_ctype, source_ctype, edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - edge_ctype = _visatype.ViInt32(edge.value) # case S130 - error_code = self._library.niRFSG_ConfigureDigitalEdgeStartTrigger(vi_ctype, source_ctype, edge_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_digital_level_script_trigger(self, trigger_id, source, level): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 - source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 - level_ctype = _visatype.ViInt32(level) # case S150 - error_code = self._library.niRFSG_ConfigureDigitalLevelScriptTrigger(vi_ctype, trigger_id_ctype, source_ctype, level_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_rf(self, frequency, power_level): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - frequency_ctype = _visatype.ViReal64(frequency) # case S150 - power_level_ctype = _visatype.ViReal64(power_level) # case S150 - error_code = self._library.niRFSG_ConfigureRF(vi_ctype, frequency_ctype, power_level_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_ref_clock(self, ref_clock_source, ref_clock_rate): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - ref_clock_source_ctype = ctypes.create_string_buffer(ref_clock_source.encode(self._encoding)) # case C020 - ref_clock_rate_ctype = _visatype.ViReal64(ref_clock_rate) # case S150 - error_code = self._library.niRFSG_ConfigureRefClock(vi_ctype, ref_clock_source_ctype, ref_clock_rate_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_software_script_trigger(self, trigger_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 - error_code = self._library.niRFSG_ConfigureSoftwareScriptTrigger(vi_ctype, trigger_id_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_software_start_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_ConfigureSoftwareStartTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - frequencies_ctype = _get_ctypes_pointer_for_buffer(value=frequencies) # case B510 - frequencies_size_ctype = _visatype.ViInt32(0 if frequencies is None else len(frequencies)) # case S160 - sparameter_table_ctype = _get_ctypes_pointer_for_buffer(value=sparameter_table, library_type=_complextype.NIComplexNumber) # case B510 - sparameter_table_size_ctype = _visatype.ViInt32(0 if sparameter_table is None else sparameter_table.size) # case S161 - number_of_ports_ctype = _visatype.ViInt32(number_of_ports) # case S150 - sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 - error_code = self._library.niRFSG_CreateDeembeddingSparameterTableArray(vi_ctype, port_ctype, table_name_ctype, frequencies_ctype, frequencies_size_ctype, sparameter_table_ctype, sparameter_table_size_ctype, number_of_ports_ctype, sparameter_orientation_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - s2p_file_path_ctype = ctypes.create_string_buffer(s2p_file_path.encode(self._encoding)) # case C020 - sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 - error_code = self._library.niRFSG_CreateDeembeddingSparameterTableS2PFile(vi_ctype, port_ctype, table_name_ctype, s2p_file_path_ctype, sparameter_orientation_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_all_deembedding_tables(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_DeleteAllDeembeddingTables(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_deembedding_table(self, port, table_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 - table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_DeleteDeembeddingTable(vi_ctype, port_ctype, table_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def delete_script(self, script_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_DeleteScript(vi_ctype, script_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable_script_trigger(self, trigger_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 - error_code = self._library.niRFSG_DisableScriptTrigger(vi_ctype, trigger_id_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable_start_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_DisableStartTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niRFSG_ErrorMessage(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def get_all_named_waveform_names(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_names_ctype = None # case C090 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - actual_buffer_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetAllNamedWaveformNames(vi_ctype, waveform_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_buffer_size_ctype.value) # case S200 - waveform_names_ctype = (_visatype.ViChar * actual_buffer_size_ctype.value)() # case C100 - error_code = self._library.niRFSG_GetAllNamedWaveformNames(vi_ctype, waveform_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_names_ctype.value.decode(self._encoding) - - def get_all_script_names(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - script_names_ctype = None # case C090 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - actual_buffer_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetAllScriptNames(vi_ctype, script_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_buffer_size_ctype.value) # case S200 - script_names_ctype = (_visatype.ViChar * actual_buffer_size_ctype.value)() # case C100 - error_code = self._library.niRFSG_GetAllScriptNames(vi_ctype, script_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return script_names_ctype.value.decode(self._encoding) - - def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niRFSG_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niRFSG_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niRFSG_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(value_ctype.value) - - def get_attribute_vi_session(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niRFSG_GetAttributeViSession(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - buf_size_ctype = _visatype.ViInt32() # case S170 - value_ctype = None # case C050 - error_code = self._library.niRFSG_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buf_size_ctype = _visatype.ViInt32(error_code) # case S180 - value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 - error_code = self._library.niRFSG_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return value_ctype.value.decode(self._encoding) - - def get_deembedding_sparameters(self): - import numpy as np - number_of_ports = self.get_deembedding_table_number_of_ports() - sparameters_array_size = number_of_ports ** 2 - sparameters = np.full((number_of_ports, number_of_ports), 0 + 0j, dtype=np.complex128) - vi_ctype = _visatype.ViSession(self._vi) # case S110 - sparameters_ctype = _get_ctypes_pointer_for_buffer(value=sparameters, library_type=_complextype.NIComplexNumber) # case B510 - sparameters_array_size_ctype = _visatype.ViInt32(sparameters_array_size) # case S150 - number_of_sparameters_ctype = _visatype.ViInt32() # case S220 - number_of_ports_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetDeembeddingSparameters(vi_ctype, sparameters_ctype, sparameters_array_size_ctype, None if number_of_sparameters_ctype is None else (ctypes.pointer(number_of_sparameters_ctype)), None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - sparameters = sparameters.reshape((int(number_of_ports_ctype.value), int(number_of_ports_ctype.value))) - return sparameters - - def get_deembedding_table_number_of_ports(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - number_of_ports_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetDeembeddingTableNumberOfPorts(vi_ctype, None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(number_of_ports_ctype.value) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 - error_description_ctype = None # case C050 - error_code = self._library.niRFSG_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 - error_code = self._library.niRFSG_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) - - def get_external_calibration_last_date_and_time(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - second_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetExternalCalibrationLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype)), None if second_ctype is None else (ctypes.pointer(second_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value), int(second_ctype.value) - - def get_max_settable_power(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niRFSG_GetMaxSettablePower(vi_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(value_ctype.value) - - def get_script(self, script_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 - script_ctype = None # case C090 - buffer_size_ctype = _visatype.ViInt32(0) # case S190 - actual_buffer_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetScript(vi_ctype, script_name_ctype, script_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(actual_buffer_size_ctype.value) # case S200 - script_ctype = (_visatype.ViChar * actual_buffer_size_ctype.value)() # case C100 - error_code = self._library.niRFSG_GetScript(vi_ctype, script_name_ctype, script_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return script_ctype.value.decode(self._encoding) - - def get_self_calibration_date_and_time(self, module): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - module_ctype = _visatype.ViInt32(module.value) # case S130 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - hour_ctype = _visatype.ViInt32() # case S220 - minute_ctype = _visatype.ViInt32() # case S220 - second_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetSelfCalibrationDateAndTime(vi_ctype, module_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype)), None if second_ctype is None else (ctypes.pointer(second_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value), int(second_ctype.value) - - def get_self_calibration_temperature(self, module): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - module_ctype = _visatype.ViInt32(module.value) # case S130 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niRFSG_GetSelfCalibrationTemperature(vi_ctype, module_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def get_terminal_name(self, signal, signal_identifier): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - signal_ctype = _visatype.ViInt32(signal.value) # case S130 - signal_identifier_ctype = ctypes.create_string_buffer(signal_identifier.encode(self._encoding)) # case C020 - buffer_size_ctype = _visatype.ViInt32() # case S170 - terminal_name_ctype = None # case C050 - error_code = self._library.niRFSG_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - terminal_name_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niRFSG_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return terminal_name_ctype.value.decode(self._encoding) - - def get_waveform_burst_start_locations(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - number_of_locations_ctype = _visatype.ViInt32(0) # case S190 - locations_ctype = None # case B610 - required_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - number_of_locations_ctype = _visatype.ViInt32(required_size_ctype.value) # case S200 - locations_size = required_size_ctype.value # case B620 - locations_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=locations_size) # case B620 - error_code = self._library.niRFSG_GetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(locations_ctype[i]) for i in range(number_of_locations_ctype.value)] - - def get_waveform_burst_stop_locations(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - number_of_locations_ctype = _visatype.ViInt32(0) # case S190 - locations_ctype = None # case B610 - required_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - number_of_locations_ctype = _visatype.ViInt32(required_size_ctype.value) # case S200 - locations_size = required_size_ctype.value # case B620 - locations_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=locations_size) # case B620 - error_code = self._library.niRFSG_GetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(locations_ctype[i]) for i in range(number_of_locations_ctype.value)] - - def get_waveform_marker_event_locations(self, channel_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - number_of_locations_ctype = _visatype.ViInt32(0) # case S190 - locations_ctype = None # case B610 - required_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_GetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - number_of_locations_ctype = _visatype.ViInt32(required_size_ctype.value) # case S200 - locations_size = required_size_ctype.value # case B620 - locations_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=locations_size) # case B620 - error_code = self._library.niRFSG_GetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(locations_ctype[i]) for i in range(number_of_locations_ctype.value)] - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - id_query_ctype = _visatype.ViBoolean(id_query) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - new_vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niRFSG_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if new_vi_ctype is None else (ctypes.pointer(new_vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(new_vi_ctype.value) - - def initiate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_Initiate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_LoadConfigurationsFromFile(vi_ctype, channel_name_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_power_search(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_PerformPowerSearch(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def perform_thermal_correction(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_PerformThermalCorrection(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def query_arb_waveform_capabilities(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - max_number_waveforms_ctype = _visatype.ViInt32() # case S220 - waveform_quantum_ctype = _visatype.ViInt32() # case S220 - min_waveform_size_ctype = _visatype.ViInt32() # case S220 - max_waveform_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niRFSG_QueryArbWaveformCapabilities(vi_ctype, None if max_number_waveforms_ctype is None else (ctypes.pointer(max_number_waveforms_ctype)), None if waveform_quantum_ctype is None else (ctypes.pointer(waveform_quantum_ctype)), None if min_waveform_size_ctype is None else (ctypes.pointer(min_waveform_size_ctype)), None if max_waveform_size_ctype is None else (ctypes.pointer(max_waveform_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(max_number_waveforms_ctype.value), int(waveform_quantum_ctype.value), int(min_waveform_size_ctype.value), int(max_waveform_size_ctype.value) - - def read_and_download_waveform_from_file_tdms(self, waveform_name, file_path, waveform_index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - waveform_index_ctype = _visatype.ViUInt32(waveform_index) # case S150 - error_code = self._library.niRFSG_ReadAndDownloadWaveformFromFileTDMS(vi_ctype, waveform_name_ctype, file_path_ctype, waveform_index_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_device(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_ResetDevice(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_defaults(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_ResetWithDefaults(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_options(self, steps_to_omit): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - steps_to_omit_ctype = _visatype.ViUInt64(steps_to_omit.value) # case S130 - error_code = self._library.niRFSG_ResetWithOptions(vi_ctype, steps_to_omit_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_SaveConfigurationsToFile(vi_ctype, channel_name_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def select_arb_waveform(self, waveform_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_SelectArbWaveform(vi_ctype, waveform_name_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_cal(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_SelfCal(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_calibrate_range(self, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - steps_to_omit_ctype = _visatype.ViInt64(steps_to_omit.value) # case S130 - min_frequency_ctype = _visatype.ViReal64(min_frequency) # case S150 - max_frequency_ctype = _visatype.ViReal64(max_frequency) # case S150 - min_power_level_ctype = _visatype.ViReal64(min_power_level) # case S150 - max_power_level_ctype = _visatype.ViReal64(max_power_level) # case S150 - error_code = self._library.niRFSG_SelfCalibrateRange(vi_ctype, steps_to_omit_ctype, min_frequency_ctype, max_frequency_ctype, min_power_level_ctype, max_power_level_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 - trigger_identifier_ctype = ctypes.create_string_buffer(trigger_identifier.value.encode(self._encoding)) # case C030 - error_code = self._library.niRFSG_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_identifier_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_arb_waveform_next_write_position(self, waveform_name, relative_to, offset): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - relative_to_ctype = _visatype.ViInt32(relative_to.value) # case S130 - offset_ctype = _visatype.ViInt32(offset) # case S150 - error_code = self._library.niRFSG_SetArbWaveformNextWritePosition(vi_ctype, waveform_name_ctype, relative_to_ctype, offset_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViBoolean(value) # case S150 - error_code = self._library.niRFSG_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt32(value) # case S150 - error_code = self._library.niRFSG_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViInt64(value) # case S150 - error_code = self._library.niRFSG_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViReal64(value) # case S150 - error_code = self._library.niRFSG_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_session(self, channel_name, attribute): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_SetAttributeViSession(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_ctype = _visatype.ViAttr(attribute) # case S150 - value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_waveform_burst_start_locations(self, channel_name, locations): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - number_of_locations_ctype = _visatype.ViInt32(0 if locations is None else len(locations)) # case S160 - locations_ctype = _get_ctypes_pointer_for_buffer(value=locations, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niRFSG_SetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_waveform_burst_stop_locations(self, channel_name, locations): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - number_of_locations_ctype = _visatype.ViInt32(0 if locations is None else len(locations)) # case S160 - locations_ctype = _get_ctypes_pointer_for_buffer(value=locations, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niRFSG_SetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_waveform_marker_event_locations(self, channel_name, locations): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - number_of_locations_ctype = _visatype.ViInt32(0 if locations is None else len(locations)) # case S160 - locations_ctype = _get_ctypes_pointer_for_buffer(value=locations, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niRFSG_SetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_until_settled(self, max_time_milliseconds): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - max_time_milliseconds_ctype = _visatype.ViInt32(max_time_milliseconds) # case S150 - error_code = self._library.niRFSG_WaitUntilSettled(vi_ctype, max_time_milliseconds_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_arb_waveform_complex_f32(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumberF32) # case B510 - more_data_pending_ctype = _visatype.ViBoolean(more_data_pending) # case S150 - error_code = self._library.niRFSG_WriteArbWaveformComplexF32(vi_ctype, waveform_name_ctype, number_of_samples_ctype, waveform_data_array_ctype, more_data_pending_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_arb_waveform_complex_f64(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumber) # case B510 - more_data_pending_ctype = _visatype.ViBoolean(more_data_pending) # case S150 - error_code = self._library.niRFSG_WriteArbWaveformComplexF64(vi_ctype, waveform_name_ctype, number_of_samples_ctype, waveform_data_array_ctype, more_data_pending_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_arb_waveform_complex_i16(self, waveform_name, waveform_data_array): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 - number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array) // 2) # case S160 - waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexI16) # case B510 - error_code = self._library.niRFSG_WriteArbWaveformComplexI16(vi_ctype, waveform_name_ctype, number_of_samples_ctype, waveform_data_array_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def write_script(self, script): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - script_ctype = ctypes.create_string_buffer(script.encode(self._encoding)) # case C020 - error_code = self._library.niRFSG_WriteScript(vi_ctype, script_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niRFSG_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niRFSG_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nirfsg/nirfsg/_library_singleton.py b/generated/nirfsg/nirfsg/_library_singleton.py deleted file mode 100644 index 7159dee677..0000000000 --- a/generated/nirfsg/nirfsg/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nirfsg._library as _library -import nirfsg.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nirfsg', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niRFSG.dll', 'type': 'windll'}, - '64bit': {'name': 'niRFSG_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nirfsg. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nirfsg/nirfsg/_visatype.py b/generated/nirfsg/nirfsg/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nirfsg/nirfsg/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nirfsg/nirfsg/enums.py b/generated/nirfsg/nirfsg/enums.py deleted file mode 100644 index 0b4b514e13..0000000000 --- a/generated/nirfsg/nirfsg/enums.py +++ /dev/null @@ -1,855 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum -from enum import IntFlag - - -class AllowOutOfSpecificationUserSettings(Enum): - DISABLE = 0 - r''' - Disables out-of-specification user settings. - ''' - ENABLE = 1 - r''' - Enables out-of-specification user settings. - ''' - - -class AmpPath(Enum): - HIGH_POWER = 16000 - r''' - Sets the amplification path to use the high power path. - ''' - LOW_HARMONIC = 16001 - r''' - Sets the amplification path to use the low harmonic path. - ''' - - -class AnalogModulationFmBand(Enum): - NARROWBAND = 17000 - r''' - Specifies narrowband frequency modulation. - ''' - WIDEBAND = 17001 - r''' - Specifies wideband frequency modulation. - ''' - - -class AnalogModulationFmNarrowbandIntegrator(Enum): - RANGE_100_HERTZ_TO_1_KILOHERTZ = 18000 - r''' - Specifies a range from 100Hz to 1kHz. - ''' - RANGE_1_KILOHERTZ_TO_10_KILOHERTZ = 18001 - r''' - Specifies a range from 1kHz to 10kHz. - ''' - RANGE_10_KILOHERTZ_TO_100_KILOHERTZ = 18002 - r''' - Specifies a range from 10kHz to 100kHz. - ''' - - -class AnalogModulationPmMode(Enum): - HIGH_DEVIATION = 19000 - r''' - Specifies high deviation. High deviation comes at the expense of a higher phase noise. - ''' - LOW_PHASE_NOISE = 19001 - r''' - Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. - ''' - - -class AnalogModulationType(Enum): - NONE = 0 - r''' - Disables analog modulation. - ''' - FM = 2000 - r''' - Specifies that the analog modulation type is FM. - ''' - PM = 2001 - r''' - Specifies that the analog modulation type is PM. - ''' - AM = 2002 - r''' - Specifies that the analog modulation type is AM. - ''' - - -class ArbOnboardSampleClockMode(Enum): - HIGH_RESOLUTION = 6000 - r''' - Sample rates are generated by a high-resolution clock. - ''' - DIVIDE_DOWN = 6001 - r''' - Sample rates are generated by dividing the source frequency. - ''' - - -class ArbSampleClockSource(Enum): - ONBOARD_CLOCK = 'OnboardClock' - r''' - Uses the AWG module onboard clock as the Sample Clock source. - ''' - CLK_IN = 'ClkIn' - r''' - Uses the external clock as the Sample Clock source. - ''' - - -class AutomaticLevelControl(Enum): - DISABLE = 0 - r''' - Disables ALC. - ''' - ENABLE = 1 - r''' - Enables the ALC. - ''' - - -class AutomaticPowerSearch(Enum): - DISABLE = 0 - r''' - Disables automatic power search. - ''' - ENABLE = 1 - r''' - Enables automatic power search. - ''' - - -class AutomaticThermalCorrection(Enum): - DISABLE = 0 - r''' - Automatic thermal correction is disabled. - ''' - ENABLE = 1 - r''' - Automatic thermal correction is enabled. - ''' - - -class DeembeddingType(Enum): - NONE = 25000 - r''' - De-embedding is not applied to the measurement. - ''' - SCALAR = 25001 - r''' - De-embeds the measurement using only the gain term. - ''' - VECTOR = 25002 - r''' - De-embeds the measurement using the gain term and the reflection term. - ''' - AMPLITUDE_FLATNESS = 25003 - r''' - De-embeds the measurement using wideband amplitude flatness correction. - ''' - AMPLITUDE_AND_PHASE_FLATNESS = 25004 - r''' - De-embeds the measurement using wideband amplitude and phase flatness correction. - ''' - - -class DigitalEqualizationEnabled(Enum): - DISABLE = 0 - r''' - Filter is not applied - ''' - ENABLE = 1 - r''' - Filter is applied. - ''' - - -class DirectDownload(Enum): - DISABLE = 0 - r''' - The RF In local oscillator signal is not present at the front panel LO OUT connector. - ''' - ENABLE = 1 - r''' - The RF In local oscillator signal is present at the front panel LO OUT connector. - ''' - UNSPECIFIED = -2 - r''' - The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. - ''' - - -class Format(Enum): - MAGNITUDE_AND_PHASE = 26001 - r''' - Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. - ''' - MAGNITUDE_DB_AND_PHASE = 26002 - r''' - Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. - ''' - REAL_AND_IMAGINARY = 26000 - r''' - Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. - ''' - - -class FrequencySettlingUnits(Enum): - TIME_AFTER_LOCK = 12000 - r''' - Specifies the time to wait after the frequency PLL locks. - ''' - TIME_AFTER_IO = 12001 - r''' - Specifies the time to wait after all writes occur to change the frequency - ''' - PPM = 12002 - r''' - Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). - ''' - - -class GenerationMode(Enum): - CW = 1000 - r''' - Configures the RF signal generator to generate a CW signal. - ''' - ARB_WAVEFORM = 1001 - r''' - Configures the RF signal generator to generate the arbitrary waveform specified by the arb_selected_waveform property. - ''' - SCRIPT = 1002 - r''' - Configures the RF signal generator to generate arbitrary waveforms as directed by the selected_script property. - ''' - - -class IQOutPortTerminalConfiguration(Enum): - DIFFERENTIAL = 15000 - r''' - Sets the terminal configuration to differential. - ''' - SINGLE_ENDED = 15001 - r''' - Sets the terminal configuration to single-ended. - ''' - - -class LoOutExportConfigureFromRfsaEnable(Enum): - DISABLE = 0 - r''' - Do not allow NI-RFSA to control the NI-RFSG local oscillator export. - ''' - ENABLE = 1 - r''' - Allow NI-RFSA to control the NI-RFSG local oscillator export. - ''' - - -class LoPllFractionalModeEnabled(Enum): - DISABLE = 0 - r''' - Disables fractional mode for the LO PLL. - ''' - ENABLE = 1 - r''' - Enables fractional mode for the LO PLL. - ''' - - -class LoSource(Enum): - ONBOARD = 'Onboard' - r''' - Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. - ''' - LO_IN = 'LO_In' - r''' - Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the UPCONVERTER_CENTER_FREQUENCY property to specify the LO frequency. - ''' - SECONDARY = 'Secondary' - r''' - Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. - ''' - SG_SA_SHARED = 'SG_SA_Shared' - r''' - Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. - ''' - AUTOMATIC_SG_SA_SHARED = 'Automatic_SG_SA_Shared' - r''' - NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. - ''' - - -class LoadConfigurationResetOptions(Enum): - WAVEFORMS = 1 - r''' - NI-RFSG skips resetting the waveform configurations. - ''' - DEEMBEDDING_TABLES = 8 - r''' - NI-RFSG skips resetting the de-embedding tables. - ''' - SCRIPTS = 2 - r''' - NI-RFSG skips resetting the scripts. - ''' - NONE = 0 - r''' - NI-RFSG resets all configurations. - ''' - - -class LoadOptions(Enum): - NONE = 0 - r''' - NI-RFSG loads all the configurations to the session. - ''' - WAVEFORMS = 1 - r''' - NI-RFSG skips loading the waveform configurations to the session. - ''' - SCRIPTS = 2 - r''' - NI-RFSG skips loading the scripts to the session. - ''' - - -class LoopBandwidth(Enum): - NARROW = 0 - r''' - Uses the narrowest loop bandwidth setting for the PLL. - ''' - MEDIUM = 1 - r''' - Uses the medium loop bandwidth setting for the PLL. - ''' - WIDE = 2 - r''' - Uses the widest loop bandwidth setting for the PLL. - ''' - - -class MarkerEventOutputBehavior(Enum): - PULSE = 23000 - r''' - Specifies the Marker Event output behavior as pulse. - ''' - TOGGLE = 23001 - r''' - Specifies the Marker Event output behavior as toggle. - ''' - - -class MarkerEventPulseWidthUnits(Enum): - SECONDS = 22000 - r''' - Specifies the Marker Event pulse width units as seconds. - ''' - SAMPLE_CLOCK_PERIODS = 22001 - r''' - Specifies the Marker Event pulse width units as Sample Clock periods. - ''' - - -class MarkerEventToggleInitialState(Enum): - LOW = 21000 - r''' - Specifies the initial state of the Marker Event toggle behavior as digital low. - ''' - HIGH = 21001 - r''' - Specifies the initial state of the Marker Event toggle behavior as digital high. - ''' - - -class Module(Enum): - AWG = 13001 - r''' - The AWG associated with the primary module. - ''' - LO = 13002 - r''' - The LO associated with the primary module. - ''' - PRIMARY_MODULE = 13000 - r''' - The stand-alone device or the main module in a multi-module device. - ''' - - -class OffsetUnits(Enum): - PERCENT = 11000 - r''' - Specifies the unit in percentage. - ''' - VOLTS = 11001 - r''' - Specifies the unit in volts. - ''' - - -class OutputPort(Enum): - RF_OUT = 14000 - r''' - Enables the RF OUT port. This value is not valid for the PXIe-5820. - ''' - IQ_OUT = 14001 - r''' - Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. - ''' - CAL_OUT = 14002 - r''' - Enables the CAL OUT port. - ''' - I_ONLY = 14003 - r''' - Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. - ''' - - -class OverflowErrorReporting(Enum): - WARNING = 1301 - r''' - NI-RFSG returns a warning when an OSP overflow occurs. - ''' - DISABLED = 1302 - r''' - NI-RFSG does not return an error or a warning when an OSP overflow occurs. - ''' - - -class PhaseContinuityEnabled(Enum): - AUTO = -1 - r''' - The arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. - ''' - DISABLE = 0 - r''' - The arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. - ''' - ENABLE = 1 - r''' - The arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. - ''' - - -class PowerLevelType(Enum): - AVERAGE = 7000 - r''' - Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. - ''' - PEAK = 7001 - r''' - Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the arb_waveform_software_scaling_factor property. You can use the peak_power_adjustment property in conjunction with the power_level property when the power_level_type property is set to PowerLevelType.PEAK. - ''' - - -class PulseModulationMode(Enum): - OPTIMAL_MATCH = 20000 - r''' - Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842 - ''' - HIGH_ISOLATION = 20001 - r''' - Allows for the best on/off power ratio of the pulsed signal. - ''' - ANALOG = 20002 - r''' - Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. - ''' - DIGITAL = 20003 - r''' - Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. - ''' - - -class PulseModulationOutputTerminal(Enum): - DO_NOT_EXPORT = '' - r''' - Pulse modulation video signal is not exported. - ''' - PULSE_OUT = 'PulseOut' - r''' - Export the pulse modulation video signal on the pulse out terminal. - ''' - - -class PulseModulationSource(Enum): - PULSE_IN = 'PulseIn' - r''' - The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. - ''' - MARKER0 = 'Marker0' - r''' - The trigger is received from the Marker 0. - ''' - MARKER1 = 'Marker1' - r''' - The trigger is received from the Marker 1. - ''' - MARKER2 = 'Marker2' - r''' - The trigger is received from the Marker 2. - ''' - MARKER3 = 'Marker3' - r''' - The trigger is received from the Marker 3. - ''' - DO_NOT_DRIVE_SIGNAL = '' - r''' - Do not drive pulse modulation. - ''' - - -class RFBlanking(Enum): - DISABLE = 0 - r''' - RF blanking is disabled. - ''' - ENABLE = 1 - r''' - RF blanking is enabled. - ''' - - -class RFInLoExportEnabled(Enum): - UNSPECIFIED = -2 - r''' - The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may - ''' - DISABLE = 0 - r''' - The RF In local oscillator signal is not present at the front panel LO OUT connector. - ''' - ENABLE = 1 - r''' - The RF In local oscillator signal is present at the front panel LO OUT connector. - ''' - - -class ReferenceClockExportOutputTerminal(Enum): - DO_NOT_EXPORT = '' - r''' - The Reference Clock signal is not exported. - ''' - REF_OUT = 'RefOut' - r''' - Exports the Reference Clock signal to the REF OUT connector of the device. - ''' - REF_OUT2 = 'RefOut2' - r''' - Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. - ''' - CLK_OUT = 'ClkOut' - r''' - Exports the Reference Clock signal to the CLK OUT connector of the device. - ''' - - -class ReferenceClockSource(Enum): - ONBOARD_CLOCK = 'OnboardClock' - r''' - Uses the onboard Reference Clock as the clock source. - ''' - REF_IN = 'RefIn' - r''' - Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. - ''' - PXI_CLK = 'PXI_CLK' - r''' - Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. - ''' - CLK_IN = 'ClkIn' - r''' - Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. - ''' - REF_IN_2 = 'RefIn2' - r''' - This value is not valid on any supported devices. - ''' - PXI_CLK_MASTER = 'PXI_ClkMaster' - r''' - This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653 -** NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use ReferenceClockSource.PXI_CLK as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. - ''' - - -class ReferencePllBandwidth(Enum): - NARROW = 0 - r''' - Uses the narrowest loop bandwidth setting for the PLL. Setting this property to NIRFSG_VAL_NARROW allows the PXIe-5653 to lock to a reference with worse phase noise than the PXIe-5653 and utilize the better phase noise of the PXIe-5653. - ''' - MEDIUM = 1 - r''' - Uses the medium loop bandwidth setting for the PLL. - ''' - WIDE = 2 - r''' - Uses the widest loop bandwidth setting for the PLL. Setting this property to NIRFSG_VAL_WIDE on the PXIe-5653 allows the reference PLL to lock to a better reference with better phase noise than the PXIe-5653 and utilize the better phase noise of the reference. - ''' - - -class RelativeTo(Enum): - CURRENT_POSITION = 8001 - r''' - The reference position is relative to the current position. - ''' - START_OF_WAVEFORM = 8000 - r''' - The reference position is relative to the start of the waveform. - ''' - - -class ResetWithOptionsStepsToOmit(IntFlag): - DEEMBEDDING_TABLES = 8 - r''' - Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. - ''' - NONE = 0 - r''' - No step is omitted during reset. - ''' - ROUTES = 4 - r''' - Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. - ''' - SCRIPTS = 2 - r''' - Omits clearing scripts. - ''' - WAVEFORMS = 1 - r''' - Omits clearing waveforms. - ''' - - -class ScriptTriggerDigitalEdgeEdge(Enum): - RISING = 0 - r''' - Asserts the trigger when the signal transitions from low level to high level. - ''' - FALLING = 1 - r''' - Asserts the trigger when the signal transitions from high level to low level. - ''' - - -class ScriptTriggerDigitalLevelActiveLevel(Enum): - HIGH = 9000 - r''' - Trigger when the digital trigger signal is high. - ''' - LOW = 9001 - r''' - Trigger when the digital trigger signal is low. - ''' - - -class ScriptTriggerType(Enum): - NONE = 0 - r''' - No trigger is configured. Signal generation starts immediately. - ''' - DIGITAL_EDGE = 1 - r''' - The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified with the digital_edge_start_trigger_edge property. - ''' - DIGITAL_LEVEL = 8000 - r''' - The data operation does not start until the digital level is detected. The source of the digital level is specified in the digital_level_script_trigger_source property, and the active level is specified in the digital_level_script_trigger_active_level property. - ''' - SOFTWARE = 2 - r''' - The data operation does not start until a software trigger occurs. You can create a software event by calling the send_software_edge_trigger method. - ''' - - -class SelfCalibrateRangeStepsToOmit(IntFlag): - IMAGE_SUPPRESSION = 8 - r''' - Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. - ''' - LO_SELF_CAL = 1 - r''' - Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. - ''' - OMIT_NONE = 0 - r''' - No calibration steps are omitted. - ''' - POWER_LEVEL_ACCURACY = 2 - r''' - Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. - ''' - RESIDUAL_LO_POWER = 4 - r''' - Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. - ''' - SYNTHESIZER_ALIGNMENT = 16 - r''' - Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. - ''' - - -class Signal(Enum): - START_TRIGGER = 0 - r''' - Exports a Start Trigger. - ''' - SCRIPT_TRIGGER = 1 - r''' - Exports a Script Trigger. - ''' - MARKER_EVENT = 2 - r''' - Exports a Marker Event. - ''' - REF_CLOCK = 3 - r''' - Exports the Reference Clock. - ''' - STARTED_EVENT = 4 - r''' - Exports a Started Event. - ''' - DONE_EVENT = 5 - r''' - Exports a Done Event. - ''' - - -class SoftwareTriggerType(Enum): - SCRIPT = 1 - r''' - Specifies the Script Trigger. - ''' - START = 0 - r''' - Specifies the Start Trigger. - ''' - - -class SparameterOrientation(Enum): - PORT1_TOWARDS_DUT = 24000 - r''' - Port 1 of the S2P is oriented towards the DUT port. - ''' - PORT2_TOWARDS_DUT = 24001 - r''' - Port 2 of the S2P is oriented towards the DUT port. - ''' - - -class StartTriggerDigitalEdgeEdge(Enum): - RISING = 0 - r''' - Occurs when the signal transitions from low level to high level. - ''' - FALLING = 1 - r''' - Occurs when the signal transitions from high level to low level. - ''' - - -class StartTriggerType(Enum): - NONE = 0 - r''' - No trigger is configured. - ''' - DIGITAL_EDGE = 1 - r''' - The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified in the digital_edge_start_trigger_edge property. - ''' - SOFTWARE = 2 - r''' - The data operation does not start until a software event occurs. You may create a software trigger by calling the send_software_edge_trigger method. - ''' - - -class TriggerIdentifier(Enum): - SCRIPT_TRIGGER0 = 'scriptTrigger0' - r''' - Specifies Script Trigger 0. - ''' - SCRIPT_TRIGGER1 = 'scriptTrigger1' - r''' - Specifies Script Trigger 1. - ''' - SCRIPT_TRIGGER2 = 'scriptTrigger2' - r''' - Specifies Script Trigger 2. - ''' - SCRIPT_TRIGGER3 = 'scriptTrigger3' - r''' - Specifies Script Trigger 3. - ''' - NONE = '' - r''' - None (no signal to export) - ''' - - -class UpconverterFrequencyOffsetMode(Enum): - AUTO = -1 - r''' - NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. - ''' - ENABLE = 1 - r''' - NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSG returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. - ''' - USER_DEFINED = 5001 - r''' - NI-RFSG uses the offset that you specified with the upconverter_frequency_offset or upconverter_center_frequency properties. - ''' - - -class WriteWaveformBurstDetection(Enum): - DISABLE = 0 - r''' - Burst detection is disabled. - ''' - ENABLE = 1 - r''' - Burst detection is enabled. - ''' - - -class WriteWaveformBurstDetectionMode(Enum): - AUTO = -1 - r''' - NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. - ''' - MANUAL = 0 - r''' - User sets the burst detection parameters. - ''' - - -class WriteWaveformNormalization(Enum): - DISABLE = 0 - r''' - Disables normalization on the waveform. - ''' - ENABLE = 1 - r''' - Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 - ''' - - -class YigMainCoilDrive(Enum): - MANUAL = 0 - r''' - Adjusts the YIG main coil for an underdamped response. - ''' - FAST = 1 - r''' - Adjusts the YIG main coil for an overdamped response. - ''' diff --git a/generated/nirfsg/nirfsg/errors.py b/generated/nirfsg/nirfsg/errors.py deleted file mode 100644 index d4ec849c58..0000000000 --- a/generated/nirfsg/nirfsg/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-RFSG''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-RFSG driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-RFSG driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-RFSG runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-RFSG driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-RFSG runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-RFSG driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-RFSG runtime returned an unexpected value. This can occur if it is too new for the nirfsg Python module. Upgrade the nirfsg Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nirfsg.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nirfsg/nirfsg/grpc_session_options.py b/generated/nirfsg/nirfsg/grpc_session_options.py deleted file mode 100644 index 0af1fad055..0000000000 --- a/generated/nirfsg/nirfsg/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'nirfsg_grpc.NiRFSG' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/nirfsg/nirfsg/nidevice_pb2.py b/generated/nirfsg/nirfsg/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/nirfsg/nirfsg/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsg/nirfsg/nidevice_pb2_grpc.py b/generated/nirfsg/nirfsg/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/nirfsg/nirfsg/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/nirfsg/nirfsg/nirfsg_pb2.py b/generated/nirfsg/nirfsg/nirfsg_pb2.py deleted file mode 100644 index cc1e2b0a72..0000000000 --- a/generated/nirfsg/nirfsg/nirfsg_pb2.py +++ /dev/null @@ -1,530 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nirfsg.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import nidevice_pb2 as nidevice__pb2 -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnirfsg.proto\x12\x0bnirfsg_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n\x1a\x41llocateArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x17\n\x0fsize_in_samples\x18\x03 \x01(\x11\"-\n\x1b\x41llocateArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe9\x01\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x38\n\x05value\x18\x04 \x01(\x0e\x32\'.nirfsg_grpc.NiRFSGInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9f\x01\n\x1c\x43heckAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"/\n\x1d\x43heckAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xeb\x01\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x39\n\x05value\x18\x04 \x01(\x0e\x32(.nirfsg_grpc.NiRFSGReal64AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x01H\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb5\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf8\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x46\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32..nirfsg_grpc.NiRFSGStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1c\x43heckGenerationStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x1d\x43heckGenerationStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07is_done\x18\x02 \x01(\x08\"^\n%CheckIfConfigurationListExistsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\"M\n&CheckIfConfigurationListExistsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0blist_exists\x18\x02 \x01(\x08\"U\n\x1a\x43heckIfScriptExistsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bscript_name\x18\x02 \x01(\t\"D\n\x1b\x43heckIfScriptExistsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rscript_exists\x18\x02 \x01(\x08\"Y\n\x1c\x43heckIfWaveformExistsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\"H\n\x1d\x43heckIfWaveformExistsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_exists\x18\x02 \x01(\x08\"A\n\x1b\x43learAllArbWaveformsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x43learAllArbWaveformsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"K\n\x17\x43learArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04name\x18\x02 \x01(\t\"*\n\x18\x43learArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1e\x43learSelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43learSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xda\x01\n3ConfigureDeembeddingTableInterpolationLinearRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x38\n\x06\x66ormat\x18\x04 \x01(\x0e\x32&.nirfsg_grpc.LinearInterpolationFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x42\r\n\x0b\x66ormat_enum\"F\n4ConfigureDeembeddingTableInterpolationLinearResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"|\n4ConfigureDeembeddingTableInterpolationNearestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"G\n5ConfigureDeembeddingTableInterpolationNearestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"{\n3ConfigureDeembeddingTableInterpolationSplineRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"F\n4ConfigureDeembeddingTableInterpolationSplineResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa6\x02\n7ConfigureDigitalEdgeConfigurationListStepTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12S\n\rsource_mapped\x18\x02 \x01(\x0e\x32:.nirfsg_grpc.DigitalEdgeConfigurationListStepTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12,\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1c.nirfsg_grpc.DigitalEdgeEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\"J\n8ConfigureDigitalEdgeConfigurationListStepTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf2\x02\n(ConfigureDigitalEdgeScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x12\x33\n\rsource_mapped\x18\x04 \x01(\x0e\x32\x1a.nirfsg_grpc.TriggerSourceH\x01\x12\x14\n\nsource_raw\x18\x05 \x01(\tH\x01\x12,\n\x04\x65\x64ge\x18\x06 \x01(\x0e\x32\x1c.nirfsg_grpc.DigitalEdgeEdgeH\x02\x12\x12\n\x08\x65\x64ge_raw\x18\x07 \x01(\x11H\x02\x42\x11\n\x0ftrigger_id_enumB\r\n\x0bsource_enumB\x0b\n\tedge_enum\";\n)ConfigureDigitalEdgeScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\rsource_mapped\x18\x02 \x01(\x0e\x32\x1a.nirfsg_grpc.TriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12,\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1c.nirfsg_grpc.DigitalEdgeEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfe\x02\n)ConfigureDigitalLevelScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x12\x33\n\rsource_mapped\x18\x04 \x01(\x0e\x32\x1a.nirfsg_grpc.TriggerSourceH\x01\x12\x14\n\nsource_raw\x18\x05 \x01(\tH\x01\x12\x35\n\x05level\x18\x06 \x01(\x0e\x32$.nirfsg_grpc.DigitalLevelActiveLevelH\x02\x12\x13\n\tlevel_raw\x18\x07 \x01(\x11H\x02\x42\x11\n\x0ftrigger_id_enumB\r\n\x0bsource_enumB\x0c\n\nlevel_enum\"<\n*ConfigureDigitalLevelScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"y\n4ConfigureDigitalModulationUserDefinedWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15user_defined_waveform\x18\x02 \x01(\x0c\"G\n5ConfigureDigitalModulationUserDefinedWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x1e\x43onfigureGenerationModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x36\n\x0fgeneration_mode\x18\x02 \x01(\x0e\x32\x1b.nirfsg_grpc.GenerationModeH\x00\x12\x1d\n\x13generation_mode_raw\x18\x03 \x01(\x11H\x00\x42\x16\n\x14generation_mode_enum\"1\n\x1f\x43onfigureGenerationModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1d\x43onfigureOutputEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0eoutput_enabled\x18\x02 \x01(\x08\"0\n\x1e\x43onfigureOutputEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n/ConfigureP2PEndpointFullnessStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12#\n\x1bp2p_endpoint_fullness_level\x18\x02 \x01(\x03\"B\n0ConfigureP2PEndpointFullnessStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbf\x01\n\x1f\x43onfigurePXIChassisClk10Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12?\n\x17pxi_clk10_source_mapped\x18\x02 \x01(\x0e\x32\x1c.nirfsg_grpc.PXIChassisClk10H\x00\x12\x1e\n\x14pxi_clk10_source_raw\x18\x03 \x01(\tH\x00\x42\x17\n\x15pxi_clk10_source_enum\"2\n ConfigurePXIChassisClk10Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb6\x01\n\x1e\x43onfigurePowerLevelTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x37\n\x10power_level_type\x18\x02 \x01(\x0e\x32\x1b.nirfsg_grpc.PowerLevelTypeH\x00\x12\x1e\n\x14power_level_type_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15power_level_type_enum\"1\n\x1f\x43onfigurePowerLevelTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\x12\x43onfigureRFRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfrequency\x18\x02 \x01(\x01\x12\x13\n\x0bpower_level\x18\x03 \x01(\x01\"%\n\x13\x43onfigureRFResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcf\x01\n\x18\x43onfigureRefClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\x17ref_clock_source_mapped\x18\x02 \x01(\x0e\x32\x1b.nirfsg_grpc.RefClockSourceH\x00\x12\x1e\n\x14ref_clock_source_raw\x18\x03 \x01(\tH\x00\x12\x16\n\x0eref_clock_rate\x18\x04 \x01(\x01\x42\x17\n\x15ref_clock_source_enum\"+\n\x19\x43onfigureRefClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"_\n\x1f\x43onfigureSignalBandwidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x18\n\x10signal_bandwidth\x18\x02 \x01(\x01\"2\n ConfigureSignalBandwidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc6\x01\n%ConfigureSoftwareScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x42\x11\n\x0ftrigger_id_enum\"8\n&ConfigureSoftwareScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n$ConfigureSoftwareStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"7\n%ConfigureSoftwareStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x86\x01\n*ConfigureUpconverterPLLSettlingTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11pll_settling_time\x18\x02 \x01(\x01\x12\x19\n\x11\x65nsure_pll_locked\x18\x03 \x01(\x08\"=\n+ConfigureUpconverterPLLSettlingTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb8\x01\n\x1e\x43reateConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\x12\x43\n\x1d\x63onfiguration_list_attributes\x18\x03 \x03(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x1a\n\x12set_as_active_list\x18\x04 \x01(\x08\"1\n\x1f\x43reateConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n\"CreateConfigurationListStepRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12set_as_active_step\x18\x02 \x01(\x08\"5\n#CreateConfigurationListStepResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x02\n,CreateDeembeddingSparameterTableArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x13\n\x0b\x66requencies\x18\x04 \x03(\x01\x12\x38\n\x10sparameter_table\x18\x05 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x17\n\x0fnumber_of_ports\x18\x06 \x01(\x11\x12\x44\n\x16sparameter_orientation\x18\x07 \x01(\x0e\x32\".nirfsg_grpc.SParameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x08 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"?\n-CreateDeembeddingSparameterTableArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x98\x02\n.CreateDeembeddingSparameterTableS2PFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x15\n\rs2p_file_path\x18\x04 \x01(\t\x12\x44\n\x16sparameter_orientation\x18\x05 \x01(\x0e\x32\".nirfsg_grpc.SParameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x06 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"A\n/CreateDeembeddingSparameterTableS2PFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"G\n!DeleteAllDeembeddingTablesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"4\n\"DeleteAllDeembeddingTablesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1e\x44\x65leteConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\"1\n\x1f\x44\x65leteConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x1d\x44\x65leteDeembeddingTableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"0\n\x1e\x44\x65leteDeembeddingTableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n\x13\x44\x65leteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bscript_name\x18\x02 \x01(\t\"&\n\x14\x44\x65leteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1b\x44isableAllModulationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x44isableAllModulationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*DisableConfigurationListStepTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n+DisableConfigurationListStepTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbc\x01\n\x1b\x44isableScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x42\x11\n\x0ftrigger_id_enum\".\n\x1c\x44isableScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"\xfd\x02\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12+\n\x06signal\x18\x02 \x01(\x0e\x32\x19.nirfsg_grpc.RoutedSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x41\n\x18signal_identifier_mapped\x18\x04 \x01(\x0e\x32\x1d.nirfsg_grpc.SignalIdentifierH\x01\x12\x1f\n\x15signal_identifier_raw\x18\x05 \x01(\tH\x01\x12;\n\x16output_terminal_mapped\x18\x06 \x01(\x0e\x32\x19.nirfsg_grpc.OutputSignalH\x02\x12\x1d\n\x13output_terminal_raw\x18\x07 \x01(\tH\x02\x42\r\n\x0bsignal_enumB\x18\n\x16signal_identifier_enumB\x16\n\x14output_terminal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1fGetAllNamedWaveformNamesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n GetAllNamedWaveformNamesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0ewaveform_names\x18\x02 \x01(\t\x12\x1a\n\x12\x61\x63tual_buffer_size\x18\x03 \x01(\x11\">\n\x18GetAllScriptNamesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"]\n\x19GetAllScriptNamesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0cscript_names\x18\x02 \x01(\t\x12\x1a\n\x12\x61\x63tual_buffer_size\x18\x03 \x01(\x11\"K\n\x10GetScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bscript_name\x18\x02 \x01(\t\"O\n\x11GetScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06script\x18\x02 \x01(\t\x12\x1a\n\x12\x61\x63tual_buffer_size\x18\x03 \x01(\x11\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"6\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"F\n GetDeembeddingSparametersRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa0\x01\n!GetDeembeddingSparametersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x33\n\x0bsparameters\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x1d\n\x15number_of_sparameters\x18\x03 \x01(\x11\x12\x17\n\x0fnumber_of_ports\x18\x04 \x01(\x11\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"R\n,GetExternalCalibrationLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x97\x01\n-GetExternalCalibrationLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\x12\x0e\n\x06second\x18\x07 \x01(\x11\"@\n\x1aGetMaxSettablePowerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"<\n\x1bGetMaxSettablePowerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x96\x01\n$GetSelfCalibrationDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06module\x18\x02 \x01(\x0e\x32\x13.nirfsg_grpc.ModuleH\x00\x12\x14\n\nmodule_raw\x18\x03 \x01(\x11H\x00\x42\r\n\x0bmodule_enum\"\x8f\x01\n%GetSelfCalibrationDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\x12\x0e\n\x06second\x18\x07 \x01(\x11\"\x96\x01\n$GetSelfCalibrationTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06module\x18\x02 \x01(\x0e\x32\x13.nirfsg_grpc.ModuleH\x00\x12\x14\n\nmodule_raw\x18\x03 \x01(\x11H\x00\x42\r\n\x0bmodule_enum\"L\n%GetSelfCalibrationTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"\x8c\x02\n\x16GetTerminalNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12+\n\x06signal\x18\x02 \x01(\x0e\x32\x19.nirfsg_grpc.RoutedSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x41\n\x18signal_identifier_mapped\x18\x04 \x01(\x0e\x32\x1d.nirfsg_grpc.SignalIdentifierH\x01\x12\x1f\n\x15signal_identifier_raw\x18\x05 \x01(\tH\x01\x42\r\n\x0bsignal_enumB\x18\n\x16signal_identifier_enum\"@\n\x17GetTerminalNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rterminal_name\x18\x02 \x01(\t\"L\n\x12GetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\"M\n\x13GetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x18\n\x10\x61\x63tual_data_size\x18\x03 \x01(\x11\"a\n%GetWaveformBurstStartLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"b\n&GetWaveformBurstStartLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tlocations\x18\x02 \x03(\x01\x12\x15\n\rrequired_size\x18\x03 \x01(\x11\"`\n$GetWaveformBurstStopLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"a\n%GetWaveformBurstStopLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tlocations\x18\x02 \x03(\x01\x12\x15\n\rrequired_size\x18\x03 \x01(\x11\"b\n&GetWaveformMarkerEventLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"c\n\'GetWaveformMarkerEventLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tlocations\x18\x02 \x03(\x01\x12\x15\n\rrequired_size\x18\x03 \x01(\x11\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x82\x01\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12&\n\x06new_vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n!LoadConfigurationsFromFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"4\n\"LoadConfigurationsFromFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"?\n\x19PerformPowerSearchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\",\n\x1aPerformPowerSearchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1fPerformThermalCorrectionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n PerformThermalCorrectionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"I\n#QueryArbWaveformCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa4\x01\n$QueryArbWaveformCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14max_number_waveforms\x18\x02 \x01(\x11\x12\x18\n\x10waveform_quantum\x18\x03 \x01(\x11\x12\x19\n\x11min_waveform_size\x18\x04 \x01(\x11\x12\x19\n\x11max_waveform_size\x18\x05 \x01(\x11\"\x92\x01\n*ReadAndDownloadWaveformFromFileTDMSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12\x16\n\x0ewaveform_index\x18\x04 \x01(\r\"=\n+ReadAndDownloadWaveformFromFileTDMSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x17ResetWithOptionsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x41\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32(.nirfsg_grpc.ResetWithOptionsStepsToOmitH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x04H\x00\x42\x14\n\x12steps_to_omit_enum\"*\n\x18ResetWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"n\n\x1fSaveConfigurationsToFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"2\n SaveConfigurationsToFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"L\n\x18SelectArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04name\x18\x02 \x01(\t\"+\n\x19SelectArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x02\n\x19SelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32*.nirfsg_grpc.SelfCalibrateRangeStepsToOmitH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x03H\x00\x12\x15\n\rmin_frequency\x18\x04 \x01(\x01\x12\x15\n\rmax_frequency\x18\x05 \x01(\x01\x12\x17\n\x0fmin_power_level\x18\x06 \x01(\x01\x12\x17\n\x0fmax_power_level\x18\x07 \x01(\x01\x42\x14\n\x12steps_to_omit_enum\",\n\x1aSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"\x9a\x02\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12,\n\x07trigger\x18\x02 \x01(\x0e\x32\x19.nirfsg_grpc.RoutedSignalH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x42\n\x19trigger_identifier_mapped\x18\x04 \x01(\x0e\x32\x1d.nirfsg_grpc.SignalIdentifierH\x01\x12 \n\x16trigger_identifier_raw\x18\x05 \x01(\tH\x01\x42\x0e\n\x0ctrigger_enumB\x19\n\x17trigger_identifier_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd2\x01\n&SetArbWaveformNextWritePositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12.\n\x0brelative_to\x18\x03 \x01(\x0e\x32\x17.nirfsg_grpc.RelativeToH\x00\x12\x19\n\x0frelative_to_raw\x18\x04 \x01(\x11H\x00\x12\x0e\n\x06offset\x18\x05 \x01(\x11\x42\x12\n\x10relative_to_enum\"9\n\'SetArbWaveformNextWritePositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9b\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x38\n\x05value\x18\x04 \x01(\x0e\x32\'.nirfsg_grpc.NiRFSGInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe9\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x39\n\x05value\x18\x04 \x01(\x0e\x32(.nirfsg_grpc.NiRFSGReal64AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x01H\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x46\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32..nirfsg_grpc.NiRFSGStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x12SetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"%\n\x13SetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"t\n%SetWaveformBurstStartLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\x01\"8\n&SetWaveformBurstStartLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n$SetWaveformBurstStopLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\x01\"7\n%SetWaveformBurstStopLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"u\n&SetWaveformMarkerEventLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\x01\"9\n\'SetWaveformMarkerEventLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n\x17WaitUntilSettledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15max_time_milliseconds\x18\x02 \x01(\x11\"*\n\x18WaitUntilSettledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8f\x01\n\x17WriteArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x0e\n\x06i_data\x18\x03 \x03(\x01\x12\x0e\n\x06q_data\x18\x04 \x03(\x01\x12\x19\n\x11more_data_pending\x18\x05 \x01(\x08\"*\n\x18WriteArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n!WriteArbWaveformComplexF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x33\n\x08wfm_data\x18\x03 \x03(\x0b\x32!.nidevice_grpc.NIComplexNumberF32\x12\x19\n\x11more_data_pending\x18\x04 \x01(\x08\"4\n\"WriteArbWaveformComplexF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n!WriteArbWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x30\n\x08wfm_data\x18\x03 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x19\n\x11more_data_pending\x18\x04 \x01(\x08\"4\n\"WriteArbWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n!WriteArbWaveformComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12-\n\x08wfm_data\x18\x03 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\"4\n\"WriteArbWaveformComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x92\x01\n\x1aWriteArbWaveformF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x0e\n\x06i_data\x18\x03 \x03(\x02\x12\x0e\n\x06q_data\x18\x04 \x03(\x02\x12\x19\n\x11more_data_pending\x18\x05 \x01(\x08\"-\n\x1bWriteArbWaveformF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x12WriteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06script\x18\x02 \x01(\t\"%\n\x13WriteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\xdd\x61\n\x0fNiRFSGAttribute\x12 \n\x1cNIRFSG_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\"\n\x1cNIRFSG_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12.\n(NIRFSG_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1c\n\x16NIRFSG_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\x1f\n\x19NIRFSG_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12\'\n!NIRFSG_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12#\n\x1dNIRFSG_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12(\n\"NIRFSG_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\x1a\n\x14NIRFSG_ATTRIBUTE_SPY\x10\xa6\x8b@\x12.\n(NIRFSG_ATTRIBUTE_USE_SPECIFIC_SIMULATION\x10\xa7\x8b@\x12$\n\x1eNIRFSG_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12-\n\'NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12-\n\'NIRFSG_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12#\n\x1dNIRFSG_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12\x32\n,NIRFSG_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12)\n#NIRFSG_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12,\n&NIRFSG_ATTRIBUTE_FUNCTION_CAPABILITIES\x10\xa2\x8e@\x12\x33\n-NIRFSG_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12.\n(NIRFSG_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\'\n!NIRFSG_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12-\n\'NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x32\n,NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12?\n9NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12?\n9NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12/\n)NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12\'\n!NIRFSG_ATTRIBUTE_REF_CLOCK_SOURCE\x10\xb1\x98\x46\x12\x38\n2NIRFSG_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_SOURCE\x10\xb2\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xb3\x98\x46\x12/\n)NIRFSG_ATTRIBUTE_PXI_CHASSIS_CLK10_SOURCE\x10\xb4\x98\x46\x12/\n)NIRFSG_ATTRIBUTE_PHASE_CONTINUITY_ENABLED\x10\xb5\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_FREQUENCY_TOLERANCE\x10\xb6\x98\x46\x12\'\n!NIRFSG_ATTRIBUTE_SIGNAL_BANDWIDTH\x10\xb7\x98\x46\x12\x33\n-NIRFSG_ATTRIBUTE_AUTOMATIC_THERMAL_CORRECTION\x10\xb8\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_ATTENUATOR_HOLD_ENABLED\x10\xb9\x98\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ATTENUATOR_HOLD_MAX_POWER\x10\xba\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_PEAK_ENVELOPE_POWER\x10\xbb\x98\x46\x12\x33\n-NIRFSG_ATTRIBUTE_DIGITAL_EQUALIZATION_ENABLED\x10\xbc\x98\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_LO_OUT_ENABLED\x10\xbd\x98\x46\x12?\n9NIRFSG_ATTRIBUTE_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS\x10\xbe\x98\x46\x12,\n&NIRFSG_ATTRIBUTE_ARB_CARRIER_FREQUENCY\x10\xbf\x98\x46\x12 \n\x1aNIRFSG_ATTRIBUTE_ARB_POWER\x10\xc0\x98\x46\x12)\n#NIRFSG_ATTRIBUTE_DEVICE_TEMPERATURE\x10\xc1\x98\x46\x12&\n NIRFSG_ATTRIBUTE_GENERATION_MODE\x10\xc2\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_SCRIPT_TRIGGER_TYPE\x10\xc3\x98\x46\x12\x39\n3NIRFSG_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE\x10\xc4\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE\x10\xc5\x98\x46\x12>\n8NIRFSG_ATTRIBUTE_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL\x10\xc6\x98\x46\x12&\n NIRFSG_ATTRIBUTE_SELECTED_SCRIPT\x10\xc7\x98\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_PHASE_OFFSET\x10\xc8\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_ARB_PRE_FILTER_GAIN\x10\xc9\x98\x46\x12$\n\x1eNIRFSG_ATTRIBUTE_SERIAL_NUMBER\x10\xca\x98\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_LOOP_BANDWIDTH\x10\xcb\x98\x46\x12\x34\n.NIRFSG_ATTRIBUTE_ARB_ONBOARD_SAMPLE_CLOCK_MODE\x10\xcd\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_ARB_SAMPLE_CLOCK_SOURCE\x10\xce\x98\x46\x12,\n&NIRFSG_ATTRIBUTE_ARB_SAMPLE_CLOCK_RATE\x10\xcf\x98\x46\x12-\n\'NIRFSG_ATTRIBUTE_ANALOG_MODULATION_TYPE\x10\xd0\x98\x46\x12\x36\n0NIRFSG_ATTRIBUTE_ANALOG_MODULATION_WAVEFORM_TYPE\x10\xd1\x98\x46\x12;\n5NIRFSG_ATTRIBUTE_ANALOG_MODULATION_WAVEFORM_FREQUENCY\x10\xd2\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_DEVIATION\x10\xd3\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_TYPE\x10\xd4\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_SYMBOL_RATE\x10\xd5\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_WAVEFORM_TYPE\x10\xd6\x98\x46\x12\x34\n.NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_PRBS_ORDER\x10\xd7\x98\x46\x12\x33\n-NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_PRBS_SEED\x10\xd8\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_FSK_DEVIATION\x10\xd9\x98\x46\x12&\n NIRFSG_ATTRIBUTE_DIRECT_DOWNLOAD\x10\xda\x98\x46\x12\'\n!NIRFSG_ATTRIBUTE_POWER_LEVEL_TYPE\x10\xdb\x98\x46\x12&\n NIRFSG_ATTRIBUTE_DIGITAL_PATTERN\x10\xdc\x98\x46\x12(\n\"NIRFSG_ATTRIBUTE_STREAMING_ENABLED\x10\xdd\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_STREAMING_WAVEFORM_NAME\x10\xde\x98\x46\x12<\n6NIRFSG_ATTRIBUTE_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM\x10\xdf\x98\x46\x12/\n)NIRFSG_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\xe0\x98\x46\x12;\n5NIRFSG_ATTRIBUTE_ARB_WAVEFORM_SOFTWARE_SCALING_FACTOR\x10\xe4\x98\x46\x12\x39\n3NIRFSG_ATTRIBUTE_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL\x10\xe5\x98\x46\x12:\n4NIRFSG_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE\x10\xe6\x98\x46\x12@\n:NIRFSG_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL\x10\xe7\x98\x46\x12&\n NIRFSG_ATTRIBUTE_ARB_FILTER_TYPE\x10\xe8\x98\x46\x12:\n4NIRFSG_ATTRIBUTE_ARB_FILTER_ROOT_RAISED_COSINE_ALPHA\x10\xe9\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_UPCONVERTER_CENTER_FREQUENCY_INCREMENT\x10\xea\x98\x46\x12\x44\n>NIRFSG_ATTRIBUTE_UPCONVERTER_CENTER_FREQUENCY_INCREMENT_ANCHOR\x10\xeb\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ARB_FILTER_RAISED_COSINE_ALPHA\x10\xec\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_MEMORY_SIZE\x10\xed\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ANALOG_MODULATION_PM_DEVIATION\x10\xee\x98\x46\x12:\n4NIRFSG_ATTRIBUTE_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL\x10\xef\x98\x46\x12<\n6NIRFSG_ATTRIBUTE_EXPORTED_MARKER_EVENT_OUTPUT_TERMINAL\x10\xf0\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_EXPORTED_STARTED_EVENT_OUTPUT_TERMINAL\x10\xf1\x98\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_LO_OUT_POWER\x10\xf2\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_LO_IN_POWER\x10\xf3\x98\x46\x12&\n NIRFSG_ATTRIBUTE_ARB_TEMPERATURE\x10\xf4\x98\x46\x12,\n&NIRFSG_ATTRIBUTE_IQ_IMPAIRMENT_ENABLED\x10\xf5\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_IQ_I_OFFSET\x10\xf6\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_IQ_Q_OFFSET\x10\xf7\x98\x46\x12(\n\"NIRFSG_ATTRIBUTE_IQ_GAIN_IMBALANCE\x10\xf8\x98\x46\x12\x1e\n\x18NIRFSG_ATTRIBUTE_IQ_SKEW\x10\xf9\x98\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_LO_TEMPERATURE\x10\xfb\x98\x46\x12@\n:NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_RECOMMENDED_INTERVAL\x10\xfc\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_TEMPERATURE\x10\xfd\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_USER_DEFINED_INFO\x10\xfe\x98\x46\x12\x46\n@NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_USER_DEFINED_INFO_MAX_SIZE\x10\xff\x98\x46\x12&\n NIRFSG_ATTRIBUTE_IQ_OFFSET_UNITS\x10\x81\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_FREQUENCY_SETTLING_UNITS\x10\x82\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_FREQUENCY_SETTLING\x10\x83\x99\x46\x12&\n NIRFSG_ATTRIBUTE_MODULE_REVISION\x10\x84\x99\x46\x12$\n\x1eNIRFSG_ATTRIBUTE_EXTERNAL_GAIN\x10\x85\x99\x46\x12\x36\n0NIRFSG_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\x86\x99\x46\x12:\n4NIRFSG_ATTRIBUTE_DATA_TRANSFER_PREFERRED_PACKET_SIZE\x10\x87\x99\x46\x12<\n6NIRFSG_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_IN_FLIGHT_READS\x10\x88\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ARB_OSCILLATOR_PHASE_DAC_VALUE\x10\x89\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST\x10\x90\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST_STEP\x10\x91\x99\x46\x12;\n5NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_STEP_TRIGGER_TYPE\x10\x92\x99\x46\x12J\nDNIRFSG_ATTRIBUTE_DIGITAL_EDGE_CONFIGURATION_LIST_STEP_TRIGGER_SOURCE\x10\x93\x99\x46\x12+\n%NIRFSG_ATTRIBUTE_TIMER_EVENT_INTERVAL\x10\x94\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_REPEAT\x10\x96\x99\x46\x12H\nBNIRFSG_ATTRIBUTE_DIGITAL_EDGE_CONFIGURATION_LIST_STEP_TRIGGER_EDGE\x10\x97\x99\x46\x12-\n\'NIRFSG_ATTRIBUTE_CORRECTION_TEMPERATURE\x10\x98\x99\x46\x12O\nINIRFSG_ATTRIBUTE_EXPORTED_CONFIGURATION_LIST_STEP_TRIGGER_OUTPUT_TERMINAL\x10\x99\x99\x46\x12\x32\n,NIRFSG_ATTRIBUTE_STARTED_EVENT_TERMINAL_NAME\x10\xa0\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_DONE_EVENT_TERMINAL_NAME\x10\xa1\x99\x46\x12\x32\n,NIRFSG_ATTRIBUTE_START_TRIGGER_TERMINAL_NAME\x10\xa2\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_MARKER_EVENT_TERMINAL_NAME\x10\xa3\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_SCRIPT_TRIGGER_TERMINAL_NAME\x10\xa4\x99\x46\x12\x44\n>NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_STEP_TRIGGER_TERMINAL_NAME\x10\xa5\x99\x46\x12*\n$NIRFSG_ATTRIBUTE_YIG_MAIN_COIL_DRIVE\x10\xa6\x99\x46\x12:\n4NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_STEP_IN_PROGRESS\x10\xaa\x99\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_P2P_ENABLED\x10\xab\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\xac\x99\x46\x12\x36\n0NIRFSG_ATTRIBUTE_P2P_SPACE_AVAILABLE_IN_ENDPOINT\x10\xad\x99\x46\x12;\n5NIRFSG_ATTRIBUTE_P2P_MOST_SPACE_AVAILABLE_IN_ENDPOINT\x10\xae\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_P2P_ENDPOINT_COUNT\x10\xaf\x99\x46\x12@\n:NIRFSG_ATTRIBUTE_P2P_ENDPOINT_FULLNESS_START_TRIGGER_LEVEL\x10\xb0\x99\x46\x12K\nENIRFSG_ATTRIBUTE_EXPORTED_CONFIGURATION_SETTLED_EVENT_OUTPUT_TERMINAL\x10\xb1\x99\x46\x12,\n&NIRFSG_ATTRIBUTE_PEAK_POWER_ADJUSTMENT\x10\xb4\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_REF_PLL_BANDWIDTH\x10\xb5\x99\x46\x12<\n6NIRFSG_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INTERVAL\x10\xb6\x99\x46\x12\x43\n=NIRFSG_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INITIAL_CREDITS\x10\xb7\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_SELF_CALIBRATION_TEMPERATURE\x10\xb8\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_AMPLITUDE_SETTLING\x10\xb9\x99\x46\x12.\n(NIRFSG_ATTRIBUTE_STREAMING_WRITE_TIMEOUT\x10\xbc\x99\x46\x12\x38\n2NIRFSG_ATTRIBUTE_PEAK_POWER_ADJUSTMENT_INHERITANCE\x10\xbd\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_SYNC_SCRIPT_TRIGGER_MASTER\x10\xbe\x99\x46\x12\x34\n.NIRFSG_ATTRIBUTE_SYNC_SCRIPT_TRIGGER_DIST_LINE\x10\xbf\x99\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_OUTPUT_PORT\x10\xc0\x99\x46\x12\x34\n.NIRFSG_ATTRIBUTE_IQ_OUT_PORT_CARRIER_FREQUENCY\x10\xc1\x99\x46\x12\x39\n3NIRFSG_ATTRIBUTE_IQ_OUT_PORT_TERMINAL_CONFIGURATION\x10\xc2\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_IQ_OUT_PORT_LEVEL\x10\xc3\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_IQ_OUT_PORT_COMMON_MODE_OFFSET\x10\xc4\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_IQ_OUT_PORT_OFFSET\x10\xc5\x99\x46\x12 \n\x1aNIRFSG_ATTRIBUTE_LO_SOURCE\x10\xc6\x99\x46\x12-\n\'NIRFSG_ATTRIBUTE_LO_FREQUENCY_STEP_SIZE\x10\xc7\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_LO_PLL_FRACTIONAL_MODE_ENABLED\x10\xc8\x99\x46\x12*\n$NIRFSG_ATTRIBUTE_INTERPOLATION_DELAY\x10\xc9\x99\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_EVENTS_DELAY\x10\xca\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_SYNC_START_TRIGGER_MASTER\x10\xcb\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_SYNC_START_TRIGGER_DIST_LINE\x10\xcc\x99\x46\x12:\n4NIRFSG_ATTRIBUTE_ARB_WAVEFORM_REPEAT_COUNT_IS_FINITE\x10\xcd\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ARB_WAVEFORM_REPEAT_COUNT\x10\xce\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_UPCONVERTER_FREQUENCY_OFFSET\x10\xd0\x99\x46\x12.\n(NIRFSG_ATTRIBUTE_IQ_OUT_PORT_TEMPERATURE\x10\xd1\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_RF_BLANKING_SOURCE\x10\xd2\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_IQ_OUT_PORT_LOAD_IMPEDANCE\x10\xd3\x99\x46\x12\x41\n;NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR\x10\xd5\x99\x46\x12\x37\n1NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_SENSITIVITY\x10\xd6\x99\x46\x12\x37\n1NIRFSG_ATTRIBUTE_ANALOG_MODULATION_AM_SENSITIVITY\x10\xd7\x99\x46\x12\x37\n1NIRFSG_ATTRIBUTE_ANALOG_MODULATION_PM_SENSITIVITY\x10\xd8\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_ATTENUATOR_SETTING\x10\xdd\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_IS_DONE\x10\xdf\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_SYNC_SAMPLE_CLOCK_MASTER\x10\xe4\x99\x46\x12\x32\n,NIRFSG_ATTRIBUTE_SYNC_SAMPLE_CLOCK_DIST_LINE\x10\xe5\x99\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_AE_TEMPERATURE\x10\xe6\x99\x46\x12\x1f\n\x19NIRFSG_ATTRIBUTE_AMP_PATH\x10\xe9\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_FPGA_BITFILE_PATH\x10\xea\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_FAST_TUNING_OPTION\x10\xec\x99\x46\x12,\n&NIRFSG_ATTRIBUTE_PULSE_MODULATION_MODE\x10\xee\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_BAND\x10\xef\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ANALOG_MODULATION_PM_MODE\x10\xf0\x99\x46\x12@\n:NIRFSG_ATTRIBUTE_CONFIGURATION_SETTLED_EVENT_TERMINAL_NAME\x10\xf2\x99\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_ALC_CONTROL\x10\xf3\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_AUTO_POWER_SEARCH\x10\xf4\x99\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_LO_FREQUENCY\x10\xf7\x99\x46\x12\'\n!NIRFSG_ATTRIBUTE_ARB_DIGITAL_GAIN\x10\xfc\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_MARKER_EVENT_OUTPUT_BEHAVIOR\x10\xfe\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH\x10\xff\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH_UNITS\x10\x80\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_MARKER_EVENT_TOGGLE_INITIAL_STATE\x10\x81\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_MODULE_POWER_CONSUMPTION\x10\x82\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_FPGA_TEMPERATURE\x10\x83\x9a\x46\x12\x30\n*NIRFSG_ATTRIBUTE_TEMPERATURE_READ_INTERVAL\x10\x84\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_P2P_IS_FINITE_GENERATION\x10\x89\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_P2P_NUMBER_OF_SAMPLES_TO_GENERATE\x10\x8a\x9a\x46\x12\x39\n3NIRFSG_ATTRIBUTE_P2P_GENERATION_FIFO_SAMPLE_QUANTUM\x10\x8b\x9a\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_RELATIVE_DELAY\x10\x8c\x9a\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_ABSOLUTE_DELAY\x10\x91\x9a\x46\x12\x35\n/NIRFSG_ATTRIBUTE_DEVICE_INSTANTANEOUS_BANDWIDTH\x10\x92\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_OVERFLOW_ERROR_REPORTING\x10\x94\x9a\x46\x12+\n%NIRFSG_ATTRIBUTE_HOST_DMA_BUFFER_SIZE\x10\x9f\x9a\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_SELECTED_PORTS\x10\xa1\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_LO_OUT_EXPORT_CONFIGURE_FROM_RFSA\x10\xa2\x9a\x46\x12.\n(NIRFSG_ATTRIBUTE_RF_IN_LO_EXPORT_ENABLED\x10\xa3\x9a\x46\x12@\n:NIRFSG_ATTRIBUTE_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION\x10\xa4\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_UPCONVERTER_FREQUENCY_OFFSET_MODE\x10\xa8\x9a\x46\x12&\n NIRFSG_ATTRIBUTE_AVAILABLE_PORTS\x10\xa9\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_FPGA_TARGET_NAME\x10\xab\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_DEEMBEDDING_TYPE\x10\xac\x9a\x46\x12\x31\n+NIRFSG_ATTRIBUTE_DEEMBEDDING_SELECTED_TABLE\x10\xad\x9a\x46\x12\x31\n+NIRFSG_ATTRIBUTE_LO_VCO_FREQUENCY_STEP_SIZE\x10\xb1\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_THERMAL_CORRECTION_HEADROOM_RANGE\x10\xb2\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_WAVEFORM_IQ_RATE\x10\xb7\x9a\x46\x12\x30\n*NIRFSG_ATTRIBUTE_WAVEFORM_SIGNAL_BANDWIDTH\x10\xb8\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_WAVEFORM_RUNTIME_SCALING\x10\xb9\x9a\x46\x12$\n\x1eNIRFSG_ATTRIBUTE_WAVEFORM_PAPR\x10\xba\x9a\x46\x12\x35\n/NIRFSG_ATTRIBUTE_FIXED_GROUP_DELAY_ACROSS_PORTS\x10\xbf\x9a\x46\x12(\n\"NIRFSG_ATTRIBUTE_WAVEFORM_FILEPATH\x10\xc0\x9a\x46\x12\x35\n/NIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION\x10\xc1\x9a\x46\x12:\n4NIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_MODE\x10\xc2\x9a\x46\x12H\nBNIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_MINIMUM_QUIET_TIME\x10\xc3\x9a\x46\x12\x45\n?NIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_POWER_THRESHOLD\x10\xc4\x9a\x46\x12H\nBNIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_MINIMUM_BURST_TIME\x10\xc5\x9a\x46\x12+\n%NIRFSG_ATTRIBUTE_WAVEFORM_RF_BLANKING\x10\xc6\x9a\x46\x12\x34\n.NIRFSG_ATTRIBUTE_DEEMBEDDING_COMPENSATION_GAIN\x10\xd1\x9a\x46\x12\x41\n;NIRFSG_ATTRIBUTE_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS\x10\xd2\x9a\x46\x12\x42\n\x12!\n\x1cRELATIVE_TO_CURRENT_POSITION\x10\xc1>*\x8c\x02\n\x1bResetWithOptionsStepsToOmit\x12)\n%RESET_WITH_OPTIONS_STEPS_TO_OMIT_NONE\x10\x00\x12.\n*RESET_WITH_OPTIONS_STEPS_TO_OMIT_WAVEFORMS\x10\x01\x12,\n(RESET_WITH_OPTIONS_STEPS_TO_OMIT_SCRIPTS\x10\x02\x12+\n\'RESET_WITH_OPTIONS_STEPS_TO_OMIT_ROUTES\x10\x04\x12\x37\n3RESET_WITH_OPTIONS_STEPS_TO_OMIT_DEEMBEDDING_TABLES\x10\x08*\xaf\x02\n\x0cRoutedSignal\x12\x1f\n\x1bROUTED_SIGNAL_START_TRIGGER\x10\x00\x12\x31\n-ROUTED_SIGNAL_CONFIGURATION_LIST_STEP_TRIGGER\x10\x06\x12-\n)ROUTED_SIGNAL_CONFIGURATION_SETTLED_EVENT\x10\x07\x12\x1c\n\x18ROUTED_SIGNAL_DONE_EVENT\x10\x05\x12\x1e\n\x1aROUTED_SIGNAL_MARKER_EVENT\x10\x02\x12\x1b\n\x17ROUTED_SIGNAL_REF_CLOCK\x10\x03\x12 \n\x1cROUTED_SIGNAL_SCRIPT_TRIGGER\x10\x01\x12\x1f\n\x1bROUTED_SIGNAL_STARTED_EVENT\x10\x04*\xa2\x01\n\x15SParameterOrientation\x12\'\n#S_PARAMETER_ORIENTATION_UNSPECIFIED\x10\x00\x12/\n)S_PARAMETER_ORIENTATION_PORT1_TOWARDS_DUT\x10\xc0\xbb\x01\x12/\n)S_PARAMETER_ORIENTATION_PORT2_TOWARDS_DUT\x10\xc1\xbb\x01*\xf4\x02\n\x1dSelfCalibrateRangeStepsToOmit\x12\x30\n,SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_OMIT_NONE\x10\x00\x12\x32\n.SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_LO_SELF_CAL\x10\x01\x12;\n7SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_POWER_LEVEL_ACCURACY\x10\x02\x12\x38\n4SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_RESIDUAL_LO_POWER\x10\x04\x12\x38\n4SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_IMAGE_SUPPRESSION\x10\x08\x12<\n8SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_SYNTHESIZER_ALIGNMENT\x10\x10*\xe9\x02\n\x10SignalIdentifier\x12!\n\x1dSIGNAL_IDENTIFIER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SIGNAL_IDENTIFIER_NONE\x10\x01\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER0\x10\x02\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER1\x10\x03\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER2\x10\x04\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER3\x10\x05\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER0\x10\x06\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER1\x10\x07\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER2\x10\x08\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER3\x10\t*\x90\x06\n\rTriggerSource\x12\x1e\n\x1aTRIGGER_SOURCE_UNSPECIFIED\x10\x00\x12\x17\n\x13TRIGGER_SOURCE_PFI0\x10\x01\x12\x17\n\x13TRIGGER_SOURCE_PFI1\x10\x02\x12\x17\n\x13TRIGGER_SOURCE_PFI2\x10\x03\x12\x17\n\x13TRIGGER_SOURCE_PFI3\x10\x04\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG0\x10\x05\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG1\x10\x06\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG2\x10\x07\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG3\x10\x08\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG4\x10\t\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG5\x10\n\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG6\x10\x0b\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG7\x10\x0c\x12\x1b\n\x17TRIGGER_SOURCE_PXI_STAR\x10\r\x12\x1e\n\x1aTRIGGER_SOURCE_PXIE_DSTARB\x10\x0e\x12%\n!TRIGGER_SOURCE_SYNC_START_TRIGGER\x10\x0f\x12&\n\"TRIGGER_SOURCE_SYNC_SCRIPT_TRIGGER\x10\x10\x12\x1a\n\x16TRIGGER_SOURCE_TRIG_IN\x10\x11\x12\x1b\n\x17TRIGGER_SOURCE_PULSE_IN\x10\x12\x12\x17\n\x13TRIGGER_SOURCE_DIO0\x10\x13\x12\x17\n\x13TRIGGER_SOURCE_DIO1\x10\x14\x12\x17\n\x13TRIGGER_SOURCE_DIO2\x10\x15\x12\x17\n\x13TRIGGER_SOURCE_DIO3\x10\x16\x12\x17\n\x13TRIGGER_SOURCE_DIO4\x10\x17\x12\x17\n\x13TRIGGER_SOURCE_DIO5\x10\x18\x12\x17\n\x13TRIGGER_SOURCE_DIO6\x10\x19\x12\x17\n\x13TRIGGER_SOURCE_DIO7\x10\x1a*\x85)\n\x1aNiRFSGInt32AttributeValues\x12\x1c\n\x18NIRFSG_INT32_UNSPECIFIED\x10\x00\x12%\n NIRFSG_INT32_AMP_PATH_HIGH_POWER\x10\x80}\x12\'\n\"NIRFSG_INT32_AMP_PATH_LOW_HARMONIC\x10\x81}\x12\x37\n1NIRFSG_INT32_ANALOG_MODULATION_FM_BAND_NARROWBAND\x10\xe8\x84\x01\x12\x35\n/NIRFSG_INT32_ANALOG_MODULATION_FM_BAND_WIDEBAND\x10\xe9\x84\x01\x12M\nGNIRFSG_INT32_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR_100_HZ_TO_1_KHZ\x10\xd0\x8c\x01\x12M\nGNIRFSG_INT32_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR_1_KHZ_TO_10_KHZ\x10\xd1\x8c\x01\x12O\nINIRFSG_INT32_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR_10_KHZ_TO_100_KHZ\x10\xd2\x8c\x01\x12;\n5NIRFSG_INT32_ANALOG_MODULATION_PM_MODE_HIGH_DEVIATION\x10\xb8\x94\x01\x12<\n6NIRFSG_INT32_ANALOG_MODULATION_PM_MODE_LOW_PHASE_NOISE\x10\xb9\x94\x01\x12,\n(NIRFSG_INT32_ANALOG_MODULATION_TYPE_NONE\x10\x00\x12+\n&NIRFSG_INT32_ANALOG_MODULATION_TYPE_FM\x10\xd0\x0f\x12+\n&NIRFSG_INT32_ANALOG_MODULATION_TYPE_PM\x10\xd1\x0f\x12+\n&NIRFSG_INT32_ANALOG_MODULATION_TYPE_AM\x10\xd2\x0f\x12\x36\n1NIRFSG_INT32_ANALOG_MODULATION_WAVEFORM_TYPE_SINE\x10\xb8\x17\x12\x38\n3NIRFSG_INT32_ANALOG_MODULATION_WAVEFORM_TYPE_SQUARE\x10\xb9\x17\x12:\n5NIRFSG_INT32_ANALOG_MODULATION_WAVEFORM_TYPE_TRIANGLE\x10\xba\x17\x12&\n!NIRFSG_INT32_ARB_FILTER_TYPE_NONE\x10\x90N\x12\x34\n/NIRFSG_INT32_ARB_FILTER_TYPE_ROOT_RAISED_COSINE\x10\x91N\x12/\n*NIRFSG_INT32_ARB_FILTER_TYPE_RAISED_COSINE\x10\x92N\x12?\n:NIRFSG_INT32_ARB_ONBOARD_SAMPLE_CLOCK_MODE_HIGH_RESOLUTION\x10\xf0.\x12;\n6NIRFSG_INT32_ARB_ONBOARD_SAMPLE_CLOCK_MODE_DIVIDE_DOWN\x10\xf1.\x12>\n:NIRFSG_INT32_CONFIG_LIST_TRIGGER_DIG_EDGE_EDGE_RISING_EDGE\x10\x00\x12O\nKNIRFSG_INT32_CONFIGURATION_LIST_REPEAT_CONFIGURATION_LIST_REPEAT_CONTINUOUS\x10\x00\x12K\nGNIRFSG_INT32_CONFIGURATION_LIST_REPEAT_CONFIGURATION_LIST_REPEAT_SINGLE\x10\x01\x12(\n\"NIRFSG_INT32_DEEMBEDDING_TYPE_NONE\x10\xa8\xc3\x01\x12*\n$NIRFSG_INT32_DEEMBEDDING_TYPE_SCALAR\x10\xa9\xc3\x01\x12*\n$NIRFSG_INT32_DEEMBEDDING_TYPE_VECTOR\x10\xaa\xc3\x01\x12.\n*NIRFSG_INT32_DIGITAL_EDGE_EDGE_RISING_EDGE\x10\x00\x12/\n+NIRFSG_INT32_DIGITAL_EDGE_EDGE_FALLING_EDGE\x10\x01\x12\x38\n3NIRFSG_INT32_DIGITAL_LEVEL_ACTIVE_LEVEL_ACTIVE_HIGH\x10\xa8\x46\x12\x37\n2NIRFSG_INT32_DIGITAL_LEVEL_ACTIVE_LEVEL_ACTIVE_LOW\x10\xa9\x46\x12-\n)NIRFSG_INT32_DIGITAL_MODULATION_TYPE_NONE\x10\x00\x12-\n(NIRFSG_INT32_DIGITAL_MODULATION_TYPE_FSK\x10\xa0\x1f\x12-\n(NIRFSG_INT32_DIGITAL_MODULATION_TYPE_OOK\x10\xa1\x1f\x12-\n(NIRFSG_INT32_DIGITAL_MODULATION_TYPE_PSK\x10\xa2\x1f\x12\x37\n2NIRFSG_INT32_DIGITAL_MODULATION_WAVEFORM_TYPE_PRBS\x10\x88\'\x12?\n:NIRFSG_INT32_DIGITAL_MODULATION_WAVEFORM_TYPE_USER_DEFINED\x10\x89\'\x12&\n\"NIRFSG_INT32_ENABLE_VALUES_DISABLE\x10\x00\x12%\n!NIRFSG_INT32_ENABLE_VALUES_ENABLE\x10\x01\x12:\n5NIRFSG_INT32_FREQUENCY_SETTLING_UNITS_TIME_AFTER_LOCK\x10\xe0]\x12\x38\n3NIRFSG_INT32_FREQUENCY_SETTLING_UNITS_TIME_AFTER_IO\x10\xe1]\x12.\n)NIRFSG_INT32_FREQUENCY_SETTLING_UNITS_PPM\x10\xe2]\x12$\n\x1fNIRFSG_INT32_GENERATION_MODE_CW\x10\xe8\x07\x12.\n)NIRFSG_INT32_GENERATION_MODE_ARB_WAVEFORM\x10\xe9\x07\x12(\n#NIRFSG_INT32_GENERATION_MODE_SCRIPT\x10\xea\x07\x12)\n$NIRFSG_INT32_IQ_OFFSET_UNITS_PERCENT\x10\xf8U\x12\'\n\"NIRFSG_INT32_IQ_OFFSET_UNITS_VOLTS\x10\xf9U\x12\x36\n1NIRFSG_INT32_IQ_OUT_PORT_TERM_CONFIG_DIFFERENTIAL\x10\x98u\x12\x36\n1NIRFSG_INT32_IQ_OUT_PORT_TERM_CONFIG_SINGLE_ENDED\x10\x99u\x12,\n(NIRFSG_INT32_LIST_STEP_TRIGGER_TYPE_NONE\x10\x00\x12\x34\n0NIRFSG_INT32_LIST_STEP_TRIGGER_TYPE_DIGITAL_EDGE\x10\x01\x12\'\n#NIRFSG_INT32_LOAD_OPTIONS_SKIP_NONE\x10\x00\x12,\n(NIRFSG_INT32_LOAD_OPTIONS_SKIP_WAVEFORMS\x10\x01\x12&\n\"NIRFSG_INT32_LOOP_BANDWIDTH_NARROW\x10\x00\x12&\n\"NIRFSG_INT32_LOOP_BANDWIDTH_MEDIUM\x10\x01\x12$\n NIRFSG_INT32_LOOP_BANDWIDTH_WIDE\x10\x02\x12\x35\n/NIRFSG_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_PULSE\x10\xd8\xb3\x01\x12\x36\n0NIRFSG_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_TOGGLE\x10\xd9\xb3\x01\x12\x39\n3NIRFSG_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_SECONDS\x10\xf0\xab\x01\x12\x46\n@NIRFSG_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_SAMPLE_CLOCK_PERIODS\x10\xf1\xab\x01\x12@\n:NIRFSG_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_DIGITAL_LOW\x10\x88\xa4\x01\x12\x41\n;NIRFSG_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_DIGITAL_HIGH\x10\x89\xa4\x01\x12$\n\x1fNIRFSG_INT32_OUTPUT_PORT_RF_OUT\x10\xb0m\x12$\n\x1fNIRFSG_INT32_OUTPUT_PORT_IQ_OUT\x10\xb1m\x12%\n NIRFSG_INT32_OUTPUT_PORT_CAL_OUT\x10\xb2m\x12$\n\x1fNIRFSG_INT32_OUTPUT_PORT_I_ONLY\x10\xb3m\x12\x32\n-NIRFSG_INT32_OVERFLOW_ERROR_REPORTING_WARNING\x10\x95\n\x12\x33\n.NIRFSG_INT32_OVERFLOW_ERROR_REPORTING_DISABLED\x10\x96\n\x12\x33\n/NIRFSG_INT32_PPA_SCRIPT_INHERITANCE_EXACT_MATCH\x10\x00\x12/\n+NIRFSG_INT32_PPA_SCRIPT_INHERITANCE_MINIMUM\x10\x01\x12/\n+NIRFSG_INT32_PPA_SCRIPT_INHERITANCE_MAXIMUM\x10\x02\x12)\n%NIRFSG_INT32_PHASE_CONTINUITY_DISABLE\x10\x00\x12/\n\"NIRFSG_INT32_PHASE_CONTINUITY_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12(\n$NIRFSG_INT32_PHASE_CONTINUITY_ENABLE\x10\x01\x12\x30\n+NIRFSG_INT32_POWER_LEVEL_TYPE_AVERAGE_POWER\x10\xd8\x36\x12-\n(NIRFSG_INT32_POWER_LEVEL_TYPE_PEAK_POWER\x10\xd9\x36\x12\x36\n0NIRFSG_INT32_PULSE_MODULATION_MODE_OPTIMAL_MATCH\x10\xa0\x9c\x01\x12\x37\n1NIRFSG_INT32_PULSE_MODULATION_MODE_HIGH_ISOLATION\x10\xa1\x9c\x01\x12(\n$NIRFSG_INT32_RESET_OPTIONS_SKIP_NONE\x10\x00\x12-\n)NIRFSG_INT32_RESET_OPTIONS_SKIP_WAVEFORMS\x10\x01\x12+\n\'NIRFSG_INT32_RESET_OPTIONS_SKIP_SCRIPTS\x10\x02\x12\x35\n1NIRFSG_INT32_RESET_OPTIONS_SKIP_DEEMBEDING_TABLES\x10\x08\x12\x30\n,NIRFSG_INT32_RF_IN_LO_EXPORT_ENABLED_DISABLE\x10\x00\x12=\n0NIRFSG_INT32_RF_IN_LO_EXPORT_ENABLED_UNSPECIFIED\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12/\n+NIRFSG_INT32_RF_IN_LO_EXPORT_ENABLED_ENABLE\x10\x01\x12)\n%NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_NONE\x10\x00\x12\x31\n-NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_DIGITAL_EDGE\x10\x01\x12\x33\n.NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_DIGITAL_LEVEL\x10\xc0>\x12-\n)NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_SOFTWARE\x10\x02\x12(\n$NIRFSG_INT32_START_TRIGGER_TYPE_NONE\x10\x00\x12\x30\n,NIRFSG_INT32_START_TRIGGER_TYPE_DIGITAL_EDGE\x10\x01\x12,\n(NIRFSG_INT32_START_TRIGGER_TYPE_SOFTWARE\x10\x02\x12:\n6NIRFSG_INT32_START_TRIGGER_TYPE_P2_P_ENDPOINT_FULLNESS\x10\x03\x12@\n3NIRFSG_INT32_UPCONVERTER_FREQUENCY_OFFSET_MODE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x39\n5NIRFSG_INT32_UPCONVERTER_FREQUENCY_OFFSET_MODE_ENABLE\x10\x01\x12@\n;NIRFSG_INT32_UPCONVERTER_FREQUENCY_OFFSET_MODE_USER_DEFINED\x10\x89\'\x12;\n7NIRFSG_INT32_WRITE_WAVEFORM_BURST_DETECTION_MODE_MANUAL\x10\x00\x12\x42\n5NIRFSG_INT32_WRITE_WAVEFORM_BURST_DETECTION_MODE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12#\n\x1fNIRFSG_INT32_YIG_MAIN_COIL_SLOW\x10\x00\x12#\n\x1fNIRFSG_INT32_YIG_MAIN_COIL_FAST\x10\x01\x1a\x02\x10\x01*\x98\x01\n\x1bNiRFSGReal64AttributeValues\x12\x1d\n\x19NIRFSG_REAL64_UNSPECIFIED\x10\x00\x12*\n#NIRFSG_REAL64_REF_CLOCK_RATE_10_MHZ\x10\x80\xad\xe2\x04\x12.\n!NIRFSG_REAL64_REF_CLOCK_RATE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xd0\x30\n!NiRFSGStringAttributeValuesMapped\x12$\n NIRFSG_STRING_MAPPED_UNSPECIFIED\x10\x00\x12\x36\n2NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DO_NOT_EXPORT\x10\x01\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI0\x10\x02\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI1\x10\x03\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI4\x10\x04\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI5\x10\x05\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG0\x10\x06\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG1\x10\x07\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG2\x10\x08\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG3\x10\t\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG4\x10\n\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG5\x10\x0b\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG6\x10\x0c\x12\x34\n0NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXIE_DSTARC\x10\r\x12\x31\n-NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_TRIG_OUT\x10\x0e\x12\x37\n3NIRFSG_STRING_ARB_SAMPLE_CLOCK_SOURCE_ONBOARD_CLOCK\x10\x0f\x12\x30\n,NIRFSG_STRING_ARB_SAMPLE_CLOCK_SOURCE_CLK_IN\x10\x10\x12<\n8NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DO_NOT_EXPORT\x10\x11\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PFI0\x10\x12\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PFI1\x10\x13\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG0\x10\x14\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG1\x10\x15\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG2\x10\x16\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG3\x10\x17\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG4\x10\x18\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG5\x10\x19\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG6\x10\x1a\x12:\n6NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXIE_DSTARC\x10\x1b\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_TRIG_OUT\x10\x1c\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PFI0\x10\x1d\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PFI1\x10\x1e\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG0\x10\x1f\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG1\x10 \x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG2\x10!\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG3\x10\"\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG4\x10#\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG5\x10$\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG6\x10%\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG7\x10&\x12\x35\n1NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXIE_DSTARB\x10\'\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER0_EVENT\x10(\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER1_EVENT\x10)\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER2_EVENT\x10*\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER3_EVENT\x10+\x12\x35\n1NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_TIMER_EVENT\x10,\x12\x31\n-NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_TRIG_IN\x10-\x12@\n\n:NIRFSG_STRING_CONFIG_SETTLED_EVENT_OUTPUT_TERM_PXIE_DSTARC\x10\x36\x12;\n7NIRFSG_STRING_CONFIG_SETTLED_EVENT_OUTPUT_TERM_TRIG_OUT\x10\x37\x12#\n\x1fNIRFSG_STRING_LO_SOURCE_ONBOARD\x10\x38\x12!\n\x1dNIRFSG_STRING_LO_SOURCE_LO_IN\x10\x39\x12%\n!NIRFSG_STRING_LO_SOURCE_SECONDARY\x10:\x12(\n$NIRFSG_STRING_LO_SOURCE_SG_SA_SHARED\x10;\x12\x32\n.NIRFSG_STRING_LO_SOURCE_AUTOMATIC_SG_SA_SHARED\x10<\x12(\n$NIRFSG_STRING_PXI_CHASSIS_CLK10_NONE\x10=\x12\x31\n-NIRFSG_STRING_PXI_CHASSIS_CLK10_ONBOARD_CLOCK\x10>\x12*\n&NIRFSG_STRING_PXI_CHASSIS_CLK10_REF_IN\x10?\x12\x35\n1NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_DO_NOT_EXPORT\x10@\x12/\n+NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_REF_OUT\x10\x41\x12\x30\n,NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_REF_OUT2\x10\x42\x12/\n+NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_CLK_OUT\x10\x43\x12\x30\n,NIRFSG_STRING_REF_CLOCK_SOURCE_ONBOARD_CLOCK\x10\x44\x12)\n%NIRFSG_STRING_REF_CLOCK_SOURCE_REF_IN\x10\x45\x12*\n&NIRFSG_STRING_REF_CLOCK_SOURCE_PXI_CLK\x10\x46\x12)\n%NIRFSG_STRING_REF_CLOCK_SOURCE_CLK_IN\x10G\x12+\n\'NIRFSG_STRING_REF_CLOCK_SOURCE_REF_IN_2\x10H\x12\x31\n-NIRFSG_STRING_REF_CLOCK_SOURCE_PXI_CLK_MASTER\x10I\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI0\x10J\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI1\x10K\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI2\x10L\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI3\x10M\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG0\x10N\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG1\x10O\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG2\x10P\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG3\x10Q\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG4\x10R\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG5\x10S\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG6\x10T\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG7\x10U\x12)\n%NIRFSG_STRING_TRIGGER_SOURCE_PXI_STAR\x10V\x12,\n(NIRFSG_STRING_TRIGGER_SOURCE_PXIE_DSTARB\x10W\x12\x33\n/NIRFSG_STRING_TRIGGER_SOURCE_SYNC_START_TRIGGER\x10X\x12\x34\n0NIRFSG_STRING_TRIGGER_SOURCE_SYNC_SCRIPT_TRIGGER\x10Y\x12(\n$NIRFSG_STRING_TRIGGER_SOURCE_TRIG_IN\x10Z\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO0\x10[\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO1\x10\\\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO2\x10]\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO3\x10^\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO4\x10_\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO5\x10`\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO6\x10\x61\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO7\x10\x62\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO0\x10\x63\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO1\x10\x64\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO2\x10\x65\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO3\x10\x66\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO4\x10g\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO5\x10h\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO6\x10i\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO7\x10j\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO0\x10k\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO1\x10l\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO2\x10m\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO3\x10n\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO4\x10o\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO5\x10p\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO6\x10q\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO7\x10r\x12)\n%NIRFSG_STRING_TRIGGER_SOURCE_PULSE_IN\x10s\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO0\x10t\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO1\x10u\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO2\x10v\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO3\x10w\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO4\x10x\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO5\x10y\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO6\x10z\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO7\x10{2\xaf\x65\n\x06NiRFSG\x12>\n\x05\x41\x62ort\x12\x19.nirfsg_grpc.AbortRequest\x1a\x1a.nirfsg_grpc.AbortResponse\x12h\n\x13\x41llocateArbWaveform\x12\'.nirfsg_grpc.AllocateArbWaveformRequest\x1a(.nirfsg_grpc.AllocateArbWaveformResponse\x12t\n\x17\x43heckAttributeViBoolean\x12+.nirfsg_grpc.CheckAttributeViBooleanRequest\x1a,.nirfsg_grpc.CheckAttributeViBooleanResponse\x12n\n\x15\x43heckAttributeViInt32\x12).nirfsg_grpc.CheckAttributeViInt32Request\x1a*.nirfsg_grpc.CheckAttributeViInt32Response\x12n\n\x15\x43heckAttributeViInt64\x12).nirfsg_grpc.CheckAttributeViInt64Request\x1a*.nirfsg_grpc.CheckAttributeViInt64Response\x12q\n\x16\x43heckAttributeViReal64\x12*.nirfsg_grpc.CheckAttributeViReal64Request\x1a+.nirfsg_grpc.CheckAttributeViReal64Response\x12t\n\x17\x43heckAttributeViSession\x12+.nirfsg_grpc.CheckAttributeViSessionRequest\x1a,.nirfsg_grpc.CheckAttributeViSessionResponse\x12q\n\x16\x43heckAttributeViString\x12*.nirfsg_grpc.CheckAttributeViStringRequest\x1a+.nirfsg_grpc.CheckAttributeViStringResponse\x12n\n\x15\x43heckGenerationStatus\x12).nirfsg_grpc.CheckGenerationStatusRequest\x1a*.nirfsg_grpc.CheckGenerationStatusResponse\x12\x89\x01\n\x1e\x43heckIfConfigurationListExists\x12\x32.nirfsg_grpc.CheckIfConfigurationListExistsRequest\x1a\x33.nirfsg_grpc.CheckIfConfigurationListExistsResponse\x12h\n\x13\x43heckIfScriptExists\x12\'.nirfsg_grpc.CheckIfScriptExistsRequest\x1a(.nirfsg_grpc.CheckIfScriptExistsResponse\x12n\n\x15\x43heckIfWaveformExists\x12).nirfsg_grpc.CheckIfWaveformExistsRequest\x1a*.nirfsg_grpc.CheckIfWaveformExistsResponse\x12k\n\x14\x43learAllArbWaveforms\x12(.nirfsg_grpc.ClearAllArbWaveformsRequest\x1a).nirfsg_grpc.ClearAllArbWaveformsResponse\x12_\n\x10\x43learArbWaveform\x12$.nirfsg_grpc.ClearArbWaveformRequest\x1a%.nirfsg_grpc.ClearArbWaveformResponse\x12M\n\nClearError\x12\x1e.nirfsg_grpc.ClearErrorRequest\x1a\x1f.nirfsg_grpc.ClearErrorResponse\x12t\n\x17\x43learSelfCalibrateRange\x12+.nirfsg_grpc.ClearSelfCalibrateRangeRequest\x1a,.nirfsg_grpc.ClearSelfCalibrateRangeResponse\x12>\n\x05\x43lose\x12\x19.nirfsg_grpc.CloseRequest\x1a\x1a.nirfsg_grpc.CloseResponse\x12\x41\n\x06\x43ommit\x12\x1a.nirfsg_grpc.CommitRequest\x1a\x1b.nirfsg_grpc.CommitResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationLinear\x12@.nirfsg_grpc.ConfigureDeembeddingTableInterpolationLinearRequest\x1a\x41.nirfsg_grpc.ConfigureDeembeddingTableInterpolationLinearResponse\x12\xb6\x01\n-ConfigureDeembeddingTableInterpolationNearest\x12\x41.nirfsg_grpc.ConfigureDeembeddingTableInterpolationNearestRequest\x1a\x42.nirfsg_grpc.ConfigureDeembeddingTableInterpolationNearestResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationSpline\x12@.nirfsg_grpc.ConfigureDeembeddingTableInterpolationSplineRequest\x1a\x41.nirfsg_grpc.ConfigureDeembeddingTableInterpolationSplineResponse\x12\xbf\x01\n0ConfigureDigitalEdgeConfigurationListStepTrigger\x12\x44.nirfsg_grpc.ConfigureDigitalEdgeConfigurationListStepTriggerRequest\x1a\x45.nirfsg_grpc.ConfigureDigitalEdgeConfigurationListStepTriggerResponse\x12\x92\x01\n!ConfigureDigitalEdgeScriptTrigger\x12\x35.nirfsg_grpc.ConfigureDigitalEdgeScriptTriggerRequest\x1a\x36.nirfsg_grpc.ConfigureDigitalEdgeScriptTriggerResponse\x12\x8f\x01\n ConfigureDigitalEdgeStartTrigger\x12\x34.nirfsg_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x35.nirfsg_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x95\x01\n\"ConfigureDigitalLevelScriptTrigger\x12\x36.nirfsg_grpc.ConfigureDigitalLevelScriptTriggerRequest\x1a\x37.nirfsg_grpc.ConfigureDigitalLevelScriptTriggerResponse\x12\xb6\x01\n-ConfigureDigitalModulationUserDefinedWaveform\x12\x41.nirfsg_grpc.ConfigureDigitalModulationUserDefinedWaveformRequest\x1a\x42.nirfsg_grpc.ConfigureDigitalModulationUserDefinedWaveformResponse\x12t\n\x17\x43onfigureGenerationMode\x12+.nirfsg_grpc.ConfigureGenerationModeRequest\x1a,.nirfsg_grpc.ConfigureGenerationModeResponse\x12q\n\x16\x43onfigureOutputEnabled\x12*.nirfsg_grpc.ConfigureOutputEnabledRequest\x1a+.nirfsg_grpc.ConfigureOutputEnabledResponse\x12\xa7\x01\n(ConfigureP2PEndpointFullnessStartTrigger\x12<.nirfsg_grpc.ConfigureP2PEndpointFullnessStartTriggerRequest\x1a=.nirfsg_grpc.ConfigureP2PEndpointFullnessStartTriggerResponse\x12w\n\x18\x43onfigurePXIChassisClk10\x12,.nirfsg_grpc.ConfigurePXIChassisClk10Request\x1a-.nirfsg_grpc.ConfigurePXIChassisClk10Response\x12t\n\x17\x43onfigurePowerLevelType\x12+.nirfsg_grpc.ConfigurePowerLevelTypeRequest\x1a,.nirfsg_grpc.ConfigurePowerLevelTypeResponse\x12P\n\x0b\x43onfigureRF\x12\x1f.nirfsg_grpc.ConfigureRFRequest\x1a .nirfsg_grpc.ConfigureRFResponse\x12\x62\n\x11\x43onfigureRefClock\x12%.nirfsg_grpc.ConfigureRefClockRequest\x1a&.nirfsg_grpc.ConfigureRefClockResponse\x12w\n\x18\x43onfigureSignalBandwidth\x12,.nirfsg_grpc.ConfigureSignalBandwidthRequest\x1a-.nirfsg_grpc.ConfigureSignalBandwidthResponse\x12\x89\x01\n\x1e\x43onfigureSoftwareScriptTrigger\x12\x32.nirfsg_grpc.ConfigureSoftwareScriptTriggerRequest\x1a\x33.nirfsg_grpc.ConfigureSoftwareScriptTriggerResponse\x12\x86\x01\n\x1d\x43onfigureSoftwareStartTrigger\x12\x31.nirfsg_grpc.ConfigureSoftwareStartTriggerRequest\x1a\x32.nirfsg_grpc.ConfigureSoftwareStartTriggerResponse\x12\x98\x01\n#ConfigureUpconverterPLLSettlingTime\x12\x37.nirfsg_grpc.ConfigureUpconverterPLLSettlingTimeRequest\x1a\x38.nirfsg_grpc.ConfigureUpconverterPLLSettlingTimeResponse\x12t\n\x17\x43reateConfigurationList\x12+.nirfsg_grpc.CreateConfigurationListRequest\x1a,.nirfsg_grpc.CreateConfigurationListResponse\x12\x80\x01\n\x1b\x43reateConfigurationListStep\x12/.nirfsg_grpc.CreateConfigurationListStepRequest\x1a\x30.nirfsg_grpc.CreateConfigurationListStepResponse\x12\x9e\x01\n%CreateDeembeddingSparameterTableArray\x12\x39.nirfsg_grpc.CreateDeembeddingSparameterTableArrayRequest\x1a:.nirfsg_grpc.CreateDeembeddingSparameterTableArrayResponse\x12\xa4\x01\n\'CreateDeembeddingSparameterTableS2PFile\x12;.nirfsg_grpc.CreateDeembeddingSparameterTableS2PFileRequest\x1a<.nirfsg_grpc.CreateDeembeddingSparameterTableS2PFileResponse\x12}\n\x1a\x44\x65leteAllDeembeddingTables\x12..nirfsg_grpc.DeleteAllDeembeddingTablesRequest\x1a/.nirfsg_grpc.DeleteAllDeembeddingTablesResponse\x12t\n\x17\x44\x65leteConfigurationList\x12+.nirfsg_grpc.DeleteConfigurationListRequest\x1a,.nirfsg_grpc.DeleteConfigurationListResponse\x12q\n\x16\x44\x65leteDeembeddingTable\x12*.nirfsg_grpc.DeleteDeembeddingTableRequest\x1a+.nirfsg_grpc.DeleteDeembeddingTableResponse\x12S\n\x0c\x44\x65leteScript\x12 .nirfsg_grpc.DeleteScriptRequest\x1a!.nirfsg_grpc.DeleteScriptResponse\x12\x44\n\x07\x44isable\x12\x1b.nirfsg_grpc.DisableRequest\x1a\x1c.nirfsg_grpc.DisableResponse\x12k\n\x14\x44isableAllModulation\x12(.nirfsg_grpc.DisableAllModulationRequest\x1a).nirfsg_grpc.DisableAllModulationResponse\x12\x98\x01\n#DisableConfigurationListStepTrigger\x12\x37.nirfsg_grpc.DisableConfigurationListStepTriggerRequest\x1a\x38.nirfsg_grpc.DisableConfigurationListStepTriggerResponse\x12k\n\x14\x44isableScriptTrigger\x12(.nirfsg_grpc.DisableScriptTriggerRequest\x1a).nirfsg_grpc.DisableScriptTriggerResponse\x12h\n\x13\x44isableStartTrigger\x12\'.nirfsg_grpc.DisableStartTriggerRequest\x1a(.nirfsg_grpc.DisableStartTriggerResponse\x12S\n\x0c\x45rrorMessage\x12 .nirfsg_grpc.ErrorMessageRequest\x1a!.nirfsg_grpc.ErrorMessageResponse\x12M\n\nErrorQuery\x12\x1e.nirfsg_grpc.ErrorQueryRequest\x1a\x1f.nirfsg_grpc.ErrorQueryResponse\x12S\n\x0c\x45xportSignal\x12 .nirfsg_grpc.ExportSignalRequest\x1a!.nirfsg_grpc.ExportSignalResponse\x12w\n\x18GetAllNamedWaveformNames\x12,.nirfsg_grpc.GetAllNamedWaveformNamesRequest\x1a-.nirfsg_grpc.GetAllNamedWaveformNamesResponse\x12\x62\n\x11GetAllScriptNames\x12%.nirfsg_grpc.GetAllScriptNamesRequest\x1a&.nirfsg_grpc.GetAllScriptNamesResponse\x12J\n\tGetScript\x12\x1d.nirfsg_grpc.GetScriptRequest\x1a\x1e.nirfsg_grpc.GetScriptResponse\x12n\n\x15GetAttributeViBoolean\x12).nirfsg_grpc.GetAttributeViBooleanRequest\x1a*.nirfsg_grpc.GetAttributeViBooleanResponse\x12h\n\x13GetAttributeViInt32\x12\'.nirfsg_grpc.GetAttributeViInt32Request\x1a(.nirfsg_grpc.GetAttributeViInt32Response\x12h\n\x13GetAttributeViInt64\x12\'.nirfsg_grpc.GetAttributeViInt64Request\x1a(.nirfsg_grpc.GetAttributeViInt64Response\x12k\n\x14GetAttributeViReal64\x12(.nirfsg_grpc.GetAttributeViReal64Request\x1a).nirfsg_grpc.GetAttributeViReal64Response\x12n\n\x15GetAttributeViSession\x12).nirfsg_grpc.GetAttributeViSessionRequest\x1a*.nirfsg_grpc.GetAttributeViSessionResponse\x12k\n\x14GetAttributeViString\x12(.nirfsg_grpc.GetAttributeViStringRequest\x1a).nirfsg_grpc.GetAttributeViStringResponse\x12Y\n\x0eGetChannelName\x12\".nirfsg_grpc.GetChannelNameRequest\x1a#.nirfsg_grpc.GetChannelNameResponse\x12z\n\x19GetDeembeddingSparameters\x12-.nirfsg_grpc.GetDeembeddingSparametersRequest\x1a..nirfsg_grpc.GetDeembeddingSparametersResponse\x12G\n\x08GetError\x12\x1c.nirfsg_grpc.GetErrorRequest\x1a\x1d.nirfsg_grpc.GetErrorResponse\x12\x9e\x01\n%GetExternalCalibrationLastDateAndTime\x12\x39.nirfsg_grpc.GetExternalCalibrationLastDateAndTimeRequest\x1a:.nirfsg_grpc.GetExternalCalibrationLastDateAndTimeResponse\x12h\n\x13GetMaxSettablePower\x12\'.nirfsg_grpc.GetMaxSettablePowerRequest\x1a(.nirfsg_grpc.GetMaxSettablePowerResponse\x12\x86\x01\n\x1dGetSelfCalibrationDateAndTime\x12\x31.nirfsg_grpc.GetSelfCalibrationDateAndTimeRequest\x1a\x32.nirfsg_grpc.GetSelfCalibrationDateAndTimeResponse\x12\x86\x01\n\x1dGetSelfCalibrationTemperature\x12\x31.nirfsg_grpc.GetSelfCalibrationTemperatureRequest\x1a\x32.nirfsg_grpc.GetSelfCalibrationTemperatureResponse\x12\\\n\x0fGetTerminalName\x12#.nirfsg_grpc.GetTerminalNameRequest\x1a$.nirfsg_grpc.GetTerminalNameResponse\x12P\n\x0bGetUserData\x12\x1f.nirfsg_grpc.GetUserDataRequest\x1a .nirfsg_grpc.GetUserDataResponse\x12\x89\x01\n\x1eGetWaveformBurstStartLocations\x12\x32.nirfsg_grpc.GetWaveformBurstStartLocationsRequest\x1a\x33.nirfsg_grpc.GetWaveformBurstStartLocationsResponse\x12\x86\x01\n\x1dGetWaveformBurstStopLocations\x12\x31.nirfsg_grpc.GetWaveformBurstStopLocationsRequest\x1a\x32.nirfsg_grpc.GetWaveformBurstStopLocationsResponse\x12\x8c\x01\n\x1fGetWaveformMarkerEventLocations\x12\x33.nirfsg_grpc.GetWaveformMarkerEventLocationsRequest\x1a\x34.nirfsg_grpc.GetWaveformMarkerEventLocationsResponse\x12;\n\x04Init\x12\x18.nirfsg_grpc.InitRequest\x1a\x19.nirfsg_grpc.InitResponse\x12\\\n\x0fInitWithOptions\x12#.nirfsg_grpc.InitWithOptionsRequest\x1a$.nirfsg_grpc.InitWithOptionsResponse\x12G\n\x08Initiate\x12\x1c.nirfsg_grpc.InitiateRequest\x1a\x1d.nirfsg_grpc.InitiateResponse\x12t\n\x17InvalidateAllAttributes\x12+.nirfsg_grpc.InvalidateAllAttributesRequest\x1a,.nirfsg_grpc.InvalidateAllAttributesResponse\x12}\n\x1aLoadConfigurationsFromFile\x12..nirfsg_grpc.LoadConfigurationsFromFileRequest\x1a/.nirfsg_grpc.LoadConfigurationsFromFileResponse\x12\x65\n\x12PerformPowerSearch\x12&.nirfsg_grpc.PerformPowerSearchRequest\x1a\'.nirfsg_grpc.PerformPowerSearchResponse\x12w\n\x18PerformThermalCorrection\x12,.nirfsg_grpc.PerformThermalCorrectionRequest\x1a-.nirfsg_grpc.PerformThermalCorrectionResponse\x12\x83\x01\n\x1cQueryArbWaveformCapabilities\x12\x30.nirfsg_grpc.QueryArbWaveformCapabilitiesRequest\x1a\x31.nirfsg_grpc.QueryArbWaveformCapabilitiesResponse\x12\x98\x01\n#ReadAndDownloadWaveformFromFileTDMS\x12\x37.nirfsg_grpc.ReadAndDownloadWaveformFromFileTDMSRequest\x1a\x38.nirfsg_grpc.ReadAndDownloadWaveformFromFileTDMSResponse\x12>\n\x05Reset\x12\x19.nirfsg_grpc.ResetRequest\x1a\x1a.nirfsg_grpc.ResetResponse\x12Y\n\x0eResetAttribute\x12\".nirfsg_grpc.ResetAttributeRequest\x1a#.nirfsg_grpc.ResetAttributeResponse\x12P\n\x0bResetDevice\x12\x1f.nirfsg_grpc.ResetDeviceRequest\x1a .nirfsg_grpc.ResetDeviceResponse\x12\x62\n\x11ResetWithDefaults\x12%.nirfsg_grpc.ResetWithDefaultsRequest\x1a&.nirfsg_grpc.ResetWithDefaultsResponse\x12_\n\x10ResetWithOptions\x12$.nirfsg_grpc.ResetWithOptionsRequest\x1a%.nirfsg_grpc.ResetWithOptionsResponse\x12V\n\rRevisionQuery\x12!.nirfsg_grpc.RevisionQueryRequest\x1a\".nirfsg_grpc.RevisionQueryResponse\x12w\n\x18SaveConfigurationsToFile\x12,.nirfsg_grpc.SaveConfigurationsToFileRequest\x1a-.nirfsg_grpc.SaveConfigurationsToFileResponse\x12\x62\n\x11SelectArbWaveform\x12%.nirfsg_grpc.SelectArbWaveformRequest\x1a&.nirfsg_grpc.SelectArbWaveformResponse\x12\x44\n\x07SelfCal\x12\x1b.nirfsg_grpc.SelfCalRequest\x1a\x1c.nirfsg_grpc.SelfCalResponse\x12\x65\n\x12SelfCalibrateRange\x12&.nirfsg_grpc.SelfCalibrateRangeRequest\x1a\'.nirfsg_grpc.SelfCalibrateRangeResponse\x12G\n\x08SelfTest\x12\x1c.nirfsg_grpc.SelfTestRequest\x1a\x1d.nirfsg_grpc.SelfTestResponse\x12t\n\x17SendSoftwareEdgeTrigger\x12+.nirfsg_grpc.SendSoftwareEdgeTriggerRequest\x1a,.nirfsg_grpc.SendSoftwareEdgeTriggerResponse\x12\x8c\x01\n\x1fSetArbWaveformNextWritePosition\x12\x33.nirfsg_grpc.SetArbWaveformNextWritePositionRequest\x1a\x34.nirfsg_grpc.SetArbWaveformNextWritePositionResponse\x12n\n\x15SetAttributeViBoolean\x12).nirfsg_grpc.SetAttributeViBooleanRequest\x1a*.nirfsg_grpc.SetAttributeViBooleanResponse\x12h\n\x13SetAttributeViInt32\x12\'.nirfsg_grpc.SetAttributeViInt32Request\x1a(.nirfsg_grpc.SetAttributeViInt32Response\x12h\n\x13SetAttributeViInt64\x12\'.nirfsg_grpc.SetAttributeViInt64Request\x1a(.nirfsg_grpc.SetAttributeViInt64Response\x12k\n\x14SetAttributeViReal64\x12(.nirfsg_grpc.SetAttributeViReal64Request\x1a).nirfsg_grpc.SetAttributeViReal64Response\x12n\n\x15SetAttributeViSession\x12).nirfsg_grpc.SetAttributeViSessionRequest\x1a*.nirfsg_grpc.SetAttributeViSessionResponse\x12k\n\x14SetAttributeViString\x12(.nirfsg_grpc.SetAttributeViStringRequest\x1a).nirfsg_grpc.SetAttributeViStringResponse\x12P\n\x0bSetUserData\x12\x1f.nirfsg_grpc.SetUserDataRequest\x1a .nirfsg_grpc.SetUserDataResponse\x12\x89\x01\n\x1eSetWaveformBurstStartLocations\x12\x32.nirfsg_grpc.SetWaveformBurstStartLocationsRequest\x1a\x33.nirfsg_grpc.SetWaveformBurstStartLocationsResponse\x12\x86\x01\n\x1dSetWaveformBurstStopLocations\x12\x31.nirfsg_grpc.SetWaveformBurstStopLocationsRequest\x1a\x32.nirfsg_grpc.SetWaveformBurstStopLocationsResponse\x12\x8c\x01\n\x1fSetWaveformMarkerEventLocations\x12\x33.nirfsg_grpc.SetWaveformMarkerEventLocationsRequest\x1a\x34.nirfsg_grpc.SetWaveformMarkerEventLocationsResponse\x12_\n\x10WaitUntilSettled\x12$.nirfsg_grpc.WaitUntilSettledRequest\x1a%.nirfsg_grpc.WaitUntilSettledResponse\x12_\n\x10WriteArbWaveform\x12$.nirfsg_grpc.WriteArbWaveformRequest\x1a%.nirfsg_grpc.WriteArbWaveformResponse\x12}\n\x1aWriteArbWaveformComplexF32\x12..nirfsg_grpc.WriteArbWaveformComplexF32Request\x1a/.nirfsg_grpc.WriteArbWaveformComplexF32Response\x12}\n\x1aWriteArbWaveformComplexF64\x12..nirfsg_grpc.WriteArbWaveformComplexF64Request\x1a/.nirfsg_grpc.WriteArbWaveformComplexF64Response\x12}\n\x1aWriteArbWaveformComplexI16\x12..nirfsg_grpc.WriteArbWaveformComplexI16Request\x1a/.nirfsg_grpc.WriteArbWaveformComplexI16Response\x12h\n\x13WriteArbWaveformF32\x12\'.nirfsg_grpc.WriteArbWaveformF32Request\x1a(.nirfsg_grpc.WriteArbWaveformF32Response\x12P\n\x0bWriteScript\x12\x1f.nirfsg_grpc.WriteScriptRequest\x1a .nirfsg_grpc.WriteScriptResponseB@\n\x12\x63om.ni.grpc.nirfsgB\x06NiRFSGP\x01\xaa\x02\x1fNationalInstruments.Grpc.NiRFSGb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nirfsg_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.nirfsgB\006NiRFSGP\001\252\002\037NationalInstruments.Grpc.NiRFSG' - _NIRFSGINT32ATTRIBUTEVALUES._options = None - _NIRFSGINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NIRFSGATTRIBUTE']._serialized_start=22589 - _globals['_NIRFSGATTRIBUTE']._serialized_end=35098 - _globals['_DIGITALEDGECONFIGURATIONLISTSTEPTRIGGERSOURCE']._serialized_start=35101 - _globals['_DIGITALEDGECONFIGURATIONLISTSTEPTRIGGERSOURCE']._serialized_end=36485 - _globals['_DIGITALEDGEEDGE']._serialized_start=36487 - _globals['_DIGITALEDGEEDGE']._serialized_end=36575 - _globals['_DIGITALEDGESCRIPTTRIGGERIDENTIFIER']._serialized_start=36578 - _globals['_DIGITALEDGESCRIPTTRIGGERIDENTIFIER']._serialized_end=36910 - _globals['_DIGITALLEVELACTIVELEVEL']._serialized_start=36913 - _globals['_DIGITALLEVELACTIVELEVEL']._serialized_end=37071 - _globals['_GENERATIONMODE']._serialized_start=37074 - _globals['_GENERATIONMODE']._serialized_end=37212 - _globals['_LINEARINTERPOLATIONFORMAT']._serialized_start=37215 - _globals['_LINEARINTERPOLATIONFORMAT']._serialized_end=37454 - _globals['_MODULE']._serialized_start=37456 - _globals['_MODULE']._serialized_end=37549 - _globals['_OUTPUTSIGNAL']._serialized_start=37552 - _globals['_OUTPUTSIGNAL']._serialized_end=38040 - _globals['_PXICHASSISCLK10']._serialized_start=38043 - _globals['_PXICHASSISCLK10']._serialized_end=38190 - _globals['_POWERLEVELTYPE']._serialized_start=38192 - _globals['_POWERLEVELTYPE']._serialized_end=38313 - _globals['_REFCLOCKSOURCE']._serialized_start=38316 - _globals['_REFCLOCKSOURCE']._serialized_end=38558 - _globals['_RELATIVETO']._serialized_start=38560 - _globals['_RELATIVETO']._serialized_end=38672 - _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_start=38675 - _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_end=38943 - _globals['_ROUTEDSIGNAL']._serialized_start=38946 - _globals['_ROUTEDSIGNAL']._serialized_end=39249 - _globals['_SPARAMETERORIENTATION']._serialized_start=39252 - _globals['_SPARAMETERORIENTATION']._serialized_end=39414 - _globals['_SELFCALIBRATERANGESTEPSTOOMIT']._serialized_start=39417 - _globals['_SELFCALIBRATERANGESTEPSTOOMIT']._serialized_end=39789 - _globals['_SIGNALIDENTIFIER']._serialized_start=39792 - _globals['_SIGNALIDENTIFIER']._serialized_end=40153 - _globals['_TRIGGERSOURCE']._serialized_start=40156 - _globals['_TRIGGERSOURCE']._serialized_end=40940 - _globals['_NIRFSGINT32ATTRIBUTEVALUES']._serialized_start=40943 - _globals['_NIRFSGINT32ATTRIBUTEVALUES']._serialized_end=46196 - _globals['_NIRFSGREAL64ATTRIBUTEVALUES']._serialized_start=46199 - _globals['_NIRFSGREAL64ATTRIBUTEVALUES']._serialized_end=46351 - _globals['_NIRFSGSTRINGATTRIBUTEVALUESMAPPED']._serialized_start=46354 - _globals['_NIRFSGSTRINGATTRIBUTEVALUESMAPPED']._serialized_end=52578 - _globals['_ABORTREQUEST']._serialized_start=60 - _globals['_ABORTREQUEST']._serialized_end=110 - _globals['_ABORTRESPONSE']._serialized_start=112 - _globals['_ABORTRESPONSE']._serialized_end=143 - _globals['_ALLOCATEARBWAVEFORMREQUEST']._serialized_start=145 - _globals['_ALLOCATEARBWAVEFORMREQUEST']._serialized_end=257 - _globals['_ALLOCATEARBWAVEFORMRESPONSE']._serialized_start=259 - _globals['_ALLOCATEARBWAVEFORMRESPONSE']._serialized_end=304 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=307 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=464 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=466 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=515 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=518 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=751 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=753 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=800 - _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_start=803 - _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_end=962 - _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_start=964 - _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_end=1011 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=1014 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=1249 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=1251 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=1299 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=1302 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=1483 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=1485 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=1534 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=1537 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=1785 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=1787 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=1835 - _globals['_CHECKGENERATIONSTATUSREQUEST']._serialized_start=1837 - _globals['_CHECKGENERATIONSTATUSREQUEST']._serialized_end=1903 - _globals['_CHECKGENERATIONSTATUSRESPONSE']._serialized_start=1905 - _globals['_CHECKGENERATIONSTATUSRESPONSE']._serialized_end=1969 - _globals['_CHECKIFCONFIGURATIONLISTEXISTSREQUEST']._serialized_start=1971 - _globals['_CHECKIFCONFIGURATIONLISTEXISTSREQUEST']._serialized_end=2065 - _globals['_CHECKIFCONFIGURATIONLISTEXISTSRESPONSE']._serialized_start=2067 - _globals['_CHECKIFCONFIGURATIONLISTEXISTSRESPONSE']._serialized_end=2144 - _globals['_CHECKIFSCRIPTEXISTSREQUEST']._serialized_start=2146 - _globals['_CHECKIFSCRIPTEXISTSREQUEST']._serialized_end=2231 - _globals['_CHECKIFSCRIPTEXISTSRESPONSE']._serialized_start=2233 - _globals['_CHECKIFSCRIPTEXISTSRESPONSE']._serialized_end=2301 - _globals['_CHECKIFWAVEFORMEXISTSREQUEST']._serialized_start=2303 - _globals['_CHECKIFWAVEFORMEXISTSREQUEST']._serialized_end=2392 - _globals['_CHECKIFWAVEFORMEXISTSRESPONSE']._serialized_start=2394 - _globals['_CHECKIFWAVEFORMEXISTSRESPONSE']._serialized_end=2466 - _globals['_CLEARALLARBWAVEFORMSREQUEST']._serialized_start=2468 - _globals['_CLEARALLARBWAVEFORMSREQUEST']._serialized_end=2533 - _globals['_CLEARALLARBWAVEFORMSRESPONSE']._serialized_start=2535 - _globals['_CLEARALLARBWAVEFORMSRESPONSE']._serialized_end=2581 - _globals['_CLEARARBWAVEFORMREQUEST']._serialized_start=2583 - _globals['_CLEARARBWAVEFORMREQUEST']._serialized_end=2658 - _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_start=2660 - _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_end=2702 - _globals['_CLEARERRORREQUEST']._serialized_start=2704 - _globals['_CLEARERRORREQUEST']._serialized_end=2759 - _globals['_CLEARERRORRESPONSE']._serialized_start=2761 - _globals['_CLEARERRORRESPONSE']._serialized_end=2797 - _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_start=2799 - _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_end=2867 - _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_start=2869 - _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_end=2918 - _globals['_CLOSEREQUEST']._serialized_start=2920 - _globals['_CLOSEREQUEST']._serialized_end=2970 - _globals['_CLOSERESPONSE']._serialized_start=2972 - _globals['_CLOSERESPONSE']._serialized_end=3003 - _globals['_COMMITREQUEST']._serialized_start=3005 - _globals['_COMMITREQUEST']._serialized_end=3056 - _globals['_COMMITRESPONSE']._serialized_start=3058 - _globals['_COMMITRESPONSE']._serialized_end=3090 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_start=3093 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_end=3311 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_start=3313 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_end=3383 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_start=3385 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_end=3509 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_start=3511 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_end=3582 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_start=3584 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_end=3707 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_start=3709 - _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_end=3779 - _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_start=3782 - _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_end=4076 - _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_start=4078 - _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_end=4152 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_start=4155 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_end=4525 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_start=4527 - _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_end=4586 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=4589 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=4835 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=4837 - _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=4895 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_start=4898 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_end=5280 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_start=5282 - _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_end=5342 - _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMREQUEST']._serialized_start=5344 - _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMREQUEST']._serialized_end=5465 - _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMRESPONSE']._serialized_start=5467 - _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMRESPONSE']._serialized_end=5538 - _globals['_CONFIGUREGENERATIONMODEREQUEST']._serialized_start=5541 - _globals['_CONFIGUREGENERATIONMODEREQUEST']._serialized_end=5720 - _globals['_CONFIGUREGENERATIONMODERESPONSE']._serialized_start=5722 - _globals['_CONFIGUREGENERATIONMODERESPONSE']._serialized_end=5771 - _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_start=5773 - _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_end=5864 - _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_start=5866 - _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_end=5914 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_start=5916 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_end=6038 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_start=6040 - _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_end=6106 - _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_start=6109 - _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_end=6300 - _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_start=6302 - _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_end=6352 - _globals['_CONFIGUREPOWERLEVELTYPEREQUEST']._serialized_start=6355 - _globals['_CONFIGUREPOWERLEVELTYPEREQUEST']._serialized_end=6537 - _globals['_CONFIGUREPOWERLEVELTYPERESPONSE']._serialized_start=6539 - _globals['_CONFIGUREPOWERLEVELTYPERESPONSE']._serialized_end=6588 - _globals['_CONFIGURERFREQUEST']._serialized_start=6590 - _globals['_CONFIGURERFREQUEST']._serialized_end=6686 - _globals['_CONFIGURERFRESPONSE']._serialized_start=6688 - _globals['_CONFIGURERFRESPONSE']._serialized_end=6725 - _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_start=6728 - _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_end=6935 - _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_start=6937 - _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_end=6980 - _globals['_CONFIGURESIGNALBANDWIDTHREQUEST']._serialized_start=6982 - _globals['_CONFIGURESIGNALBANDWIDTHREQUEST']._serialized_end=7077 - _globals['_CONFIGURESIGNALBANDWIDTHRESPONSE']._serialized_start=7079 - _globals['_CONFIGURESIGNALBANDWIDTHRESPONSE']._serialized_end=7129 - _globals['_CONFIGURESOFTWARESCRIPTTRIGGERREQUEST']._serialized_start=7132 - _globals['_CONFIGURESOFTWARESCRIPTTRIGGERREQUEST']._serialized_end=7330 - _globals['_CONFIGURESOFTWARESCRIPTTRIGGERRESPONSE']._serialized_start=7332 - _globals['_CONFIGURESOFTWARESCRIPTTRIGGERRESPONSE']._serialized_end=7388 - _globals['_CONFIGURESOFTWARESTARTTRIGGERREQUEST']._serialized_start=7390 - _globals['_CONFIGURESOFTWARESTARTTRIGGERREQUEST']._serialized_end=7464 - _globals['_CONFIGURESOFTWARESTARTTRIGGERRESPONSE']._serialized_start=7466 - _globals['_CONFIGURESOFTWARESTARTTRIGGERRESPONSE']._serialized_end=7521 - _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMEREQUEST']._serialized_start=7524 - _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMEREQUEST']._serialized_end=7658 - _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMERESPONSE']._serialized_start=7660 - _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMERESPONSE']._serialized_end=7721 - _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_start=7724 - _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_end=7908 - _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_start=7910 - _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_end=7959 - _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_start=7961 - _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_end=8061 - _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_start=8063 - _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_end=8116 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_start=8119 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_end=8478 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_start=8480 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_end=8543 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_start=8546 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_end=8826 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_start=8828 - _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_end=8893 - _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_start=8895 - _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_end=8966 - _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_start=8968 - _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_end=9020 - _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_start=9022 - _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_end=9109 - _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_start=9111 - _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_end=9160 - _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_start=9162 - _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_end=9263 - _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_start=9265 - _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_end=9313 - _globals['_DELETESCRIPTREQUEST']._serialized_start=9315 - _globals['_DELETESCRIPTREQUEST']._serialized_end=9393 - _globals['_DELETESCRIPTRESPONSE']._serialized_start=9395 - _globals['_DELETESCRIPTRESPONSE']._serialized_end=9433 - _globals['_DISABLEREQUEST']._serialized_start=9435 - _globals['_DISABLEREQUEST']._serialized_end=9487 - _globals['_DISABLERESPONSE']._serialized_start=9489 - _globals['_DISABLERESPONSE']._serialized_end=9522 - _globals['_DISABLEALLMODULATIONREQUEST']._serialized_start=9524 - _globals['_DISABLEALLMODULATIONREQUEST']._serialized_end=9589 - _globals['_DISABLEALLMODULATIONRESPONSE']._serialized_start=9591 - _globals['_DISABLEALLMODULATIONRESPONSE']._serialized_end=9637 - _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_start=9639 - _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_end=9719 - _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_start=9721 - _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_end=9782 - _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_start=9785 - _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_end=9973 - _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_start=9975 - _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_end=10021 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=10023 - _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=10087 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=10089 - _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=10134 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=10136 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=10213 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=10215 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=10276 - _globals['_ERRORQUERYREQUEST']._serialized_start=10278 - _globals['_ERRORQUERYREQUEST']._serialized_end=10333 - _globals['_ERRORQUERYRESPONSE']._serialized_start=10335 - _globals['_ERRORQUERYRESPONSE']._serialized_end=10414 - _globals['_EXPORTSIGNALREQUEST']._serialized_start=10417 - _globals['_EXPORTSIGNALREQUEST']._serialized_end=10798 - _globals['_EXPORTSIGNALRESPONSE']._serialized_start=10800 - _globals['_EXPORTSIGNALRESPONSE']._serialized_end=10838 - _globals['_GETALLNAMEDWAVEFORMNAMESREQUEST']._serialized_start=10840 - _globals['_GETALLNAMEDWAVEFORMNAMESREQUEST']._serialized_end=10909 - _globals['_GETALLNAMEDWAVEFORMNAMESRESPONSE']._serialized_start=10911 - _globals['_GETALLNAMEDWAVEFORMNAMESRESPONSE']._serialized_end=11013 - _globals['_GETALLSCRIPTNAMESREQUEST']._serialized_start=11015 - _globals['_GETALLSCRIPTNAMESREQUEST']._serialized_end=11077 - _globals['_GETALLSCRIPTNAMESRESPONSE']._serialized_start=11079 - _globals['_GETALLSCRIPTNAMESRESPONSE']._serialized_end=11172 - _globals['_GETSCRIPTREQUEST']._serialized_start=11174 - _globals['_GETSCRIPTREQUEST']._serialized_end=11249 - _globals['_GETSCRIPTRESPONSE']._serialized_start=11251 - _globals['_GETSCRIPTRESPONSE']._serialized_end=11330 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=11333 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=11473 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=11475 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=11537 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=11540 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=11678 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=11680 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=11740 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=11743 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=11881 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=11883 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=11943 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=11946 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=12085 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=12087 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=12148 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=12151 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=12291 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=12293 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=12379 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=12382 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=12521 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=12523 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=12584 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=12586 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=12660 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=12662 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=12716 - _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_start=12718 - _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_end=12788 - _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_start=12791 - _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_end=12951 - _globals['_GETERRORREQUEST']._serialized_start=12953 - _globals['_GETERRORREQUEST']._serialized_end=13006 - _globals['_GETERRORRESPONSE']._serialized_start=13008 - _globals['_GETERRORRESPONSE']._serialized_end=13089 - _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMEREQUEST']._serialized_start=13091 - _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMEREQUEST']._serialized_end=13173 - _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMERESPONSE']._serialized_start=13176 - _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMERESPONSE']._serialized_end=13327 - _globals['_GETMAXSETTABLEPOWERREQUEST']._serialized_start=13329 - _globals['_GETMAXSETTABLEPOWERREQUEST']._serialized_end=13393 - _globals['_GETMAXSETTABLEPOWERRESPONSE']._serialized_start=13395 - _globals['_GETMAXSETTABLEPOWERRESPONSE']._serialized_end=13455 - _globals['_GETSELFCALIBRATIONDATEANDTIMEREQUEST']._serialized_start=13458 - _globals['_GETSELFCALIBRATIONDATEANDTIMEREQUEST']._serialized_end=13608 - _globals['_GETSELFCALIBRATIONDATEANDTIMERESPONSE']._serialized_start=13611 - _globals['_GETSELFCALIBRATIONDATEANDTIMERESPONSE']._serialized_end=13754 - _globals['_GETSELFCALIBRATIONTEMPERATUREREQUEST']._serialized_start=13757 - _globals['_GETSELFCALIBRATIONTEMPERATUREREQUEST']._serialized_end=13907 - _globals['_GETSELFCALIBRATIONTEMPERATURERESPONSE']._serialized_start=13909 - _globals['_GETSELFCALIBRATIONTEMPERATURERESPONSE']._serialized_end=13985 - _globals['_GETTERMINALNAMEREQUEST']._serialized_start=13988 - _globals['_GETTERMINALNAMEREQUEST']._serialized_end=14256 - _globals['_GETTERMINALNAMERESPONSE']._serialized_start=14258 - _globals['_GETTERMINALNAMERESPONSE']._serialized_end=14322 - _globals['_GETUSERDATAREQUEST']._serialized_start=14324 - _globals['_GETUSERDATAREQUEST']._serialized_end=14400 - _globals['_GETUSERDATARESPONSE']._serialized_start=14402 - _globals['_GETUSERDATARESPONSE']._serialized_end=14479 - _globals['_GETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_start=14481 - _globals['_GETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_end=14578 - _globals['_GETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_start=14580 - _globals['_GETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_end=14678 - _globals['_GETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_start=14680 - _globals['_GETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_end=14776 - _globals['_GETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_start=14778 - _globals['_GETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_end=14875 - _globals['_GETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_start=14877 - _globals['_GETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_end=14975 - _globals['_GETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_start=14977 - _globals['_GETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_end=15076 - _globals['_INITREQUEST']._serialized_start=15079 - _globals['_INITREQUEST']._serialized_end=15256 - _globals['_INITRESPONSE']._serialized_start=15259 - _globals['_INITRESPONSE']._serialized_end=15389 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=15392 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=15603 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=15606 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=15743 - _globals['_INITIATEREQUEST']._serialized_start=15745 - _globals['_INITIATEREQUEST']._serialized_end=15798 - _globals['_INITIATERESPONSE']._serialized_start=15800 - _globals['_INITIATERESPONSE']._serialized_end=15834 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=15836 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=15904 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=15906 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=15955 - _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_start=15957 - _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_end=16069 - _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_start=16071 - _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_end=16123 - _globals['_PERFORMPOWERSEARCHREQUEST']._serialized_start=16125 - _globals['_PERFORMPOWERSEARCHREQUEST']._serialized_end=16188 - _globals['_PERFORMPOWERSEARCHRESPONSE']._serialized_start=16190 - _globals['_PERFORMPOWERSEARCHRESPONSE']._serialized_end=16234 - _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_start=16236 - _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_end=16305 - _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_start=16307 - _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_end=16357 - _globals['_QUERYARBWAVEFORMCAPABILITIESREQUEST']._serialized_start=16359 - _globals['_QUERYARBWAVEFORMCAPABILITIESREQUEST']._serialized_end=16432 - _globals['_QUERYARBWAVEFORMCAPABILITIESRESPONSE']._serialized_start=16435 - _globals['_QUERYARBWAVEFORMCAPABILITIESRESPONSE']._serialized_end=16599 - _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSREQUEST']._serialized_start=16602 - _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSREQUEST']._serialized_end=16748 - _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSRESPONSE']._serialized_start=16750 - _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSRESPONSE']._serialized_end=16811 - _globals['_RESETREQUEST']._serialized_start=16813 - _globals['_RESETREQUEST']._serialized_end=16863 - _globals['_RESETRESPONSE']._serialized_start=16865 - _globals['_RESETRESPONSE']._serialized_end=16896 - _globals['_RESETATTRIBUTEREQUEST']._serialized_start=16899 - _globals['_RESETATTRIBUTEREQUEST']._serialized_end=17032 - _globals['_RESETATTRIBUTERESPONSE']._serialized_start=17034 - _globals['_RESETATTRIBUTERESPONSE']._serialized_end=17074 - _globals['_RESETDEVICEREQUEST']._serialized_start=17076 - _globals['_RESETDEVICEREQUEST']._serialized_end=17132 - _globals['_RESETDEVICERESPONSE']._serialized_start=17134 - _globals['_RESETDEVICERESPONSE']._serialized_end=17171 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=17173 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=17235 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=17237 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=17280 - _globals['_RESETWITHOPTIONSREQUEST']._serialized_start=17283 - _globals['_RESETWITHOPTIONSREQUEST']._serialized_end=17462 - _globals['_RESETWITHOPTIONSRESPONSE']._serialized_start=17464 - _globals['_RESETWITHOPTIONSRESPONSE']._serialized_end=17506 - _globals['_REVISIONQUERYREQUEST']._serialized_start=17508 - _globals['_REVISIONQUERYREQUEST']._serialized_end=17566 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=17568 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=17670 - _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_start=17672 - _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_end=17782 - _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_start=17784 - _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_end=17834 - _globals['_SELECTARBWAVEFORMREQUEST']._serialized_start=17836 - _globals['_SELECTARBWAVEFORMREQUEST']._serialized_end=17912 - _globals['_SELECTARBWAVEFORMRESPONSE']._serialized_start=17914 - _globals['_SELECTARBWAVEFORMRESPONSE']._serialized_end=17957 - _globals['_SELFCALREQUEST']._serialized_start=17959 - _globals['_SELFCALREQUEST']._serialized_end=18011 - _globals['_SELFCALRESPONSE']._serialized_start=18013 - _globals['_SELFCALRESPONSE']._serialized_end=18046 - _globals['_SELFCALIBRATERANGEREQUEST']._serialized_start=18049 - _globals['_SELFCALIBRATERANGEREQUEST']._serialized_end=18328 - _globals['_SELFCALIBRATERANGERESPONSE']._serialized_start=18330 - _globals['_SELFCALIBRATERANGERESPONSE']._serialized_end=18374 - _globals['_SELFTESTREQUEST']._serialized_start=18376 - _globals['_SELFTESTREQUEST']._serialized_end=18429 - _globals['_SELFTESTRESPONSE']._serialized_start=18431 - _globals['_SELFTESTRESPONSE']._serialized_end=18518 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=18521 - _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=18803 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=18805 - _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=18854 - _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_start=18857 - _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_end=19067 - _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_start=19069 - _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_end=19126 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19129 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19284 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19286 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19333 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=19336 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=19567 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=19569 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=19614 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=19617 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=19774 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=19776 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=19821 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=19824 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=20057 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=20059 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=20105 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=20108 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=20287 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=20289 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=20336 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=20339 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=20585 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=20587 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=20633 - _globals['_SETUSERDATAREQUEST']._serialized_start=20635 - _globals['_SETUSERDATAREQUEST']._serialized_end=20725 - _globals['_SETUSERDATARESPONSE']._serialized_start=20727 - _globals['_SETUSERDATARESPONSE']._serialized_end=20764 - _globals['_SETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_start=20766 - _globals['_SETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_end=20882 - _globals['_SETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_start=20884 - _globals['_SETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_end=20940 - _globals['_SETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_start=20942 - _globals['_SETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_end=21057 - _globals['_SETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_start=21059 - _globals['_SETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_end=21114 - _globals['_SETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_start=21116 - _globals['_SETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_end=21233 - _globals['_SETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_start=21235 - _globals['_SETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_end=21292 - _globals['_WAITUNTILSETTLEDREQUEST']._serialized_start=21294 - _globals['_WAITUNTILSETTLEDREQUEST']._serialized_end=21386 - _globals['_WAITUNTILSETTLEDRESPONSE']._serialized_start=21388 - _globals['_WAITUNTILSETTLEDRESPONSE']._serialized_end=21430 - _globals['_WRITEARBWAVEFORMREQUEST']._serialized_start=21433 - _globals['_WRITEARBWAVEFORMREQUEST']._serialized_end=21576 - _globals['_WRITEARBWAVEFORMRESPONSE']._serialized_start=21578 - _globals['_WRITEARBWAVEFORMRESPONSE']._serialized_end=21620 - _globals['_WRITEARBWAVEFORMCOMPLEXF32REQUEST']._serialized_start=21623 - _globals['_WRITEARBWAVEFORMCOMPLEXF32REQUEST']._serialized_end=21797 - _globals['_WRITEARBWAVEFORMCOMPLEXF32RESPONSE']._serialized_start=21799 - _globals['_WRITEARBWAVEFORMCOMPLEXF32RESPONSE']._serialized_end=21851 - _globals['_WRITEARBWAVEFORMCOMPLEXF64REQUEST']._serialized_start=21854 - _globals['_WRITEARBWAVEFORMCOMPLEXF64REQUEST']._serialized_end=22025 - _globals['_WRITEARBWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=22027 - _globals['_WRITEARBWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=22079 - _globals['_WRITEARBWAVEFORMCOMPLEXI16REQUEST']._serialized_start=22082 - _globals['_WRITEARBWAVEFORMCOMPLEXI16REQUEST']._serialized_end=22223 - _globals['_WRITEARBWAVEFORMCOMPLEXI16RESPONSE']._serialized_start=22225 - _globals['_WRITEARBWAVEFORMCOMPLEXI16RESPONSE']._serialized_end=22277 - _globals['_WRITEARBWAVEFORMF32REQUEST']._serialized_start=22280 - _globals['_WRITEARBWAVEFORMF32REQUEST']._serialized_end=22426 - _globals['_WRITEARBWAVEFORMF32RESPONSE']._serialized_start=22428 - _globals['_WRITEARBWAVEFORMF32RESPONSE']._serialized_end=22473 - _globals['_WRITESCRIPTREQUEST']._serialized_start=22475 - _globals['_WRITESCRIPTREQUEST']._serialized_end=22547 - _globals['_WRITESCRIPTRESPONSE']._serialized_start=22549 - _globals['_WRITESCRIPTRESPONSE']._serialized_end=22586 - _globals['_NIRFSG']._serialized_start=52581 - _globals['_NIRFSG']._serialized_end=65556 -# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py b/generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py deleted file mode 100644 index 0fa255c612..0000000000 --- a/generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py +++ /dev/null @@ -1,3762 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import nirfsg_pb2 as nirfsg__pb2 - - -class NiRFSGStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Abort = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Abort', - request_serializer=nirfsg__pb2.AbortRequest.SerializeToString, - response_deserializer=nirfsg__pb2.AbortResponse.FromString, - ) - self.AllocateArbWaveform = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/AllocateArbWaveform', - request_serializer=nirfsg__pb2.AllocateArbWaveformRequest.SerializeToString, - response_deserializer=nirfsg__pb2.AllocateArbWaveformResponse.FromString, - ) - self.CheckAttributeViBoolean = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckAttributeViBoolean', - request_serializer=nirfsg__pb2.CheckAttributeViBooleanRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckAttributeViBooleanResponse.FromString, - ) - self.CheckAttributeViInt32 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckAttributeViInt32', - request_serializer=nirfsg__pb2.CheckAttributeViInt32Request.SerializeToString, - response_deserializer=nirfsg__pb2.CheckAttributeViInt32Response.FromString, - ) - self.CheckAttributeViInt64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckAttributeViInt64', - request_serializer=nirfsg__pb2.CheckAttributeViInt64Request.SerializeToString, - response_deserializer=nirfsg__pb2.CheckAttributeViInt64Response.FromString, - ) - self.CheckAttributeViReal64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckAttributeViReal64', - request_serializer=nirfsg__pb2.CheckAttributeViReal64Request.SerializeToString, - response_deserializer=nirfsg__pb2.CheckAttributeViReal64Response.FromString, - ) - self.CheckAttributeViSession = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckAttributeViSession', - request_serializer=nirfsg__pb2.CheckAttributeViSessionRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckAttributeViSessionResponse.FromString, - ) - self.CheckAttributeViString = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckAttributeViString', - request_serializer=nirfsg__pb2.CheckAttributeViStringRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckAttributeViStringResponse.FromString, - ) - self.CheckGenerationStatus = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckGenerationStatus', - request_serializer=nirfsg__pb2.CheckGenerationStatusRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckGenerationStatusResponse.FromString, - ) - self.CheckIfConfigurationListExists = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckIfConfigurationListExists', - request_serializer=nirfsg__pb2.CheckIfConfigurationListExistsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckIfConfigurationListExistsResponse.FromString, - ) - self.CheckIfScriptExists = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckIfScriptExists', - request_serializer=nirfsg__pb2.CheckIfScriptExistsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckIfScriptExistsResponse.FromString, - ) - self.CheckIfWaveformExists = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CheckIfWaveformExists', - request_serializer=nirfsg__pb2.CheckIfWaveformExistsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CheckIfWaveformExistsResponse.FromString, - ) - self.ClearAllArbWaveforms = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ClearAllArbWaveforms', - request_serializer=nirfsg__pb2.ClearAllArbWaveformsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ClearAllArbWaveformsResponse.FromString, - ) - self.ClearArbWaveform = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ClearArbWaveform', - request_serializer=nirfsg__pb2.ClearArbWaveformRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ClearArbWaveformResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ClearError', - request_serializer=nirfsg__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ClearErrorResponse.FromString, - ) - self.ClearSelfCalibrateRange = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ClearSelfCalibrateRange', - request_serializer=nirfsg__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ClearSelfCalibrateRangeResponse.FromString, - ) - self.Close = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Close', - request_serializer=nirfsg__pb2.CloseRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CloseResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Commit', - request_serializer=nirfsg__pb2.CommitRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CommitResponse.FromString, - ) - self.ConfigureDeembeddingTableInterpolationLinear = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationLinear', - request_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, - ) - self.ConfigureDeembeddingTableInterpolationNearest = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationNearest', - request_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, - ) - self.ConfigureDeembeddingTableInterpolationSpline = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationSpline', - request_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, - ) - self.ConfigureDigitalEdgeConfigurationListStepTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeConfigurationListStepTrigger', - request_serializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeScriptTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeScriptTrigger', - request_serializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, - ) - self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeStartTrigger', - request_serializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - ) - self.ConfigureDigitalLevelScriptTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDigitalLevelScriptTrigger', - request_serializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, - ) - self.ConfigureDigitalModulationUserDefinedWaveform = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureDigitalModulationUserDefinedWaveform', - request_serializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformResponse.FromString, - ) - self.ConfigureGenerationMode = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureGenerationMode', - request_serializer=nirfsg__pb2.ConfigureGenerationModeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureGenerationModeResponse.FromString, - ) - self.ConfigureOutputEnabled = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureOutputEnabled', - request_serializer=nirfsg__pb2.ConfigureOutputEnabledRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureOutputEnabledResponse.FromString, - ) - self.ConfigureP2PEndpointFullnessStartTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureP2PEndpointFullnessStartTrigger', - request_serializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, - ) - self.ConfigurePXIChassisClk10 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigurePXIChassisClk10', - request_serializer=nirfsg__pb2.ConfigurePXIChassisClk10Request.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigurePXIChassisClk10Response.FromString, - ) - self.ConfigurePowerLevelType = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigurePowerLevelType', - request_serializer=nirfsg__pb2.ConfigurePowerLevelTypeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigurePowerLevelTypeResponse.FromString, - ) - self.ConfigureRF = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureRF', - request_serializer=nirfsg__pb2.ConfigureRFRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureRFResponse.FromString, - ) - self.ConfigureRefClock = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureRefClock', - request_serializer=nirfsg__pb2.ConfigureRefClockRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureRefClockResponse.FromString, - ) - self.ConfigureSignalBandwidth = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureSignalBandwidth', - request_serializer=nirfsg__pb2.ConfigureSignalBandwidthRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureSignalBandwidthResponse.FromString, - ) - self.ConfigureSoftwareScriptTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureSoftwareScriptTrigger', - request_serializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerResponse.FromString, - ) - self.ConfigureSoftwareStartTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureSoftwareStartTrigger', - request_serializer=nirfsg__pb2.ConfigureSoftwareStartTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureSoftwareStartTriggerResponse.FromString, - ) - self.ConfigureUpconverterPLLSettlingTime = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ConfigureUpconverterPLLSettlingTime', - request_serializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeResponse.FromString, - ) - self.CreateConfigurationList = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CreateConfigurationList', - request_serializer=nirfsg__pb2.CreateConfigurationListRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CreateConfigurationListResponse.FromString, - ) - self.CreateConfigurationListStep = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CreateConfigurationListStep', - request_serializer=nirfsg__pb2.CreateConfigurationListStepRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CreateConfigurationListStepResponse.FromString, - ) - self.CreateDeembeddingSparameterTableArray = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableArray', - request_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, - ) - self.CreateDeembeddingSparameterTableS2PFile = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableS2PFile', - request_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, - response_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, - ) - self.DeleteAllDeembeddingTables = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DeleteAllDeembeddingTables', - request_serializer=nirfsg__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DeleteAllDeembeddingTablesResponse.FromString, - ) - self.DeleteConfigurationList = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DeleteConfigurationList', - request_serializer=nirfsg__pb2.DeleteConfigurationListRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DeleteConfigurationListResponse.FromString, - ) - self.DeleteDeembeddingTable = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DeleteDeembeddingTable', - request_serializer=nirfsg__pb2.DeleteDeembeddingTableRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DeleteDeembeddingTableResponse.FromString, - ) - self.DeleteScript = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DeleteScript', - request_serializer=nirfsg__pb2.DeleteScriptRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DeleteScriptResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Disable', - request_serializer=nirfsg__pb2.DisableRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DisableResponse.FromString, - ) - self.DisableAllModulation = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DisableAllModulation', - request_serializer=nirfsg__pb2.DisableAllModulationRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DisableAllModulationResponse.FromString, - ) - self.DisableConfigurationListStepTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DisableConfigurationListStepTrigger', - request_serializer=nirfsg__pb2.DisableConfigurationListStepTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DisableConfigurationListStepTriggerResponse.FromString, - ) - self.DisableScriptTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DisableScriptTrigger', - request_serializer=nirfsg__pb2.DisableScriptTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DisableScriptTriggerResponse.FromString, - ) - self.DisableStartTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/DisableStartTrigger', - request_serializer=nirfsg__pb2.DisableStartTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.DisableStartTriggerResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ErrorMessage', - request_serializer=nirfsg__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ErrorMessageResponse.FromString, - ) - self.ErrorQuery = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ErrorQuery', - request_serializer=nirfsg__pb2.ErrorQueryRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ErrorQueryResponse.FromString, - ) - self.ExportSignal = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ExportSignal', - request_serializer=nirfsg__pb2.ExportSignalRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ExportSignalResponse.FromString, - ) - self.GetAllNamedWaveformNames = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAllNamedWaveformNames', - request_serializer=nirfsg__pb2.GetAllNamedWaveformNamesRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetAllNamedWaveformNamesResponse.FromString, - ) - self.GetAllScriptNames = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAllScriptNames', - request_serializer=nirfsg__pb2.GetAllScriptNamesRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetAllScriptNamesResponse.FromString, - ) - self.GetScript = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetScript', - request_serializer=nirfsg__pb2.GetScriptRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetScriptResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAttributeViBoolean', - request_serializer=nirfsg__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAttributeViInt32', - request_serializer=nirfsg__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=nirfsg__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAttributeViInt64', - request_serializer=nirfsg__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=nirfsg__pb2.GetAttributeViInt64Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAttributeViReal64', - request_serializer=nirfsg__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=nirfsg__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAttributeViSession', - request_serializer=nirfsg__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetAttributeViSessionResponse.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetAttributeViString', - request_serializer=nirfsg__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetChannelName', - request_serializer=nirfsg__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetChannelNameResponse.FromString, - ) - self.GetDeembeddingSparameters = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetDeembeddingSparameters', - request_serializer=nirfsg__pb2.GetDeembeddingSparametersRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetDeembeddingSparametersResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetError', - request_serializer=nirfsg__pb2.GetErrorRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetErrorResponse.FromString, - ) - self.GetExternalCalibrationLastDateAndTime = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetExternalCalibrationLastDateAndTime', - request_serializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeResponse.FromString, - ) - self.GetMaxSettablePower = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetMaxSettablePower', - request_serializer=nirfsg__pb2.GetMaxSettablePowerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetMaxSettablePowerResponse.FromString, - ) - self.GetSelfCalibrationDateAndTime = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetSelfCalibrationDateAndTime', - request_serializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeResponse.FromString, - ) - self.GetSelfCalibrationTemperature = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetSelfCalibrationTemperature', - request_serializer=nirfsg__pb2.GetSelfCalibrationTemperatureRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetSelfCalibrationTemperatureResponse.FromString, - ) - self.GetTerminalName = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetTerminalName', - request_serializer=nirfsg__pb2.GetTerminalNameRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetTerminalNameResponse.FromString, - ) - self.GetUserData = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetUserData', - request_serializer=nirfsg__pb2.GetUserDataRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetUserDataResponse.FromString, - ) - self.GetWaveformBurstStartLocations = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetWaveformBurstStartLocations', - request_serializer=nirfsg__pb2.GetWaveformBurstStartLocationsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetWaveformBurstStartLocationsResponse.FromString, - ) - self.GetWaveformBurstStopLocations = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetWaveformBurstStopLocations', - request_serializer=nirfsg__pb2.GetWaveformBurstStopLocationsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetWaveformBurstStopLocationsResponse.FromString, - ) - self.GetWaveformMarkerEventLocations = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/GetWaveformMarkerEventLocations', - request_serializer=nirfsg__pb2.GetWaveformMarkerEventLocationsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.GetWaveformMarkerEventLocationsResponse.FromString, - ) - self.Init = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Init', - request_serializer=nirfsg__pb2.InitRequest.SerializeToString, - response_deserializer=nirfsg__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/InitWithOptions', - request_serializer=nirfsg__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.InitWithOptionsResponse.FromString, - ) - self.Initiate = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Initiate', - request_serializer=nirfsg__pb2.InitiateRequest.SerializeToString, - response_deserializer=nirfsg__pb2.InitiateResponse.FromString, - ) - self.InvalidateAllAttributes = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/InvalidateAllAttributes', - request_serializer=nirfsg__pb2.InvalidateAllAttributesRequest.SerializeToString, - response_deserializer=nirfsg__pb2.InvalidateAllAttributesResponse.FromString, - ) - self.LoadConfigurationsFromFile = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/LoadConfigurationsFromFile', - request_serializer=nirfsg__pb2.LoadConfigurationsFromFileRequest.SerializeToString, - response_deserializer=nirfsg__pb2.LoadConfigurationsFromFileResponse.FromString, - ) - self.PerformPowerSearch = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/PerformPowerSearch', - request_serializer=nirfsg__pb2.PerformPowerSearchRequest.SerializeToString, - response_deserializer=nirfsg__pb2.PerformPowerSearchResponse.FromString, - ) - self.PerformThermalCorrection = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/PerformThermalCorrection', - request_serializer=nirfsg__pb2.PerformThermalCorrectionRequest.SerializeToString, - response_deserializer=nirfsg__pb2.PerformThermalCorrectionResponse.FromString, - ) - self.QueryArbWaveformCapabilities = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/QueryArbWaveformCapabilities', - request_serializer=nirfsg__pb2.QueryArbWaveformCapabilitiesRequest.SerializeToString, - response_deserializer=nirfsg__pb2.QueryArbWaveformCapabilitiesResponse.FromString, - ) - self.ReadAndDownloadWaveformFromFileTDMS = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ReadAndDownloadWaveformFromFileTDMS', - request_serializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/Reset', - request_serializer=nirfsg__pb2.ResetRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ResetResponse.FromString, - ) - self.ResetAttribute = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ResetAttribute', - request_serializer=nirfsg__pb2.ResetAttributeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ResetAttributeResponse.FromString, - ) - self.ResetDevice = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ResetDevice', - request_serializer=nirfsg__pb2.ResetDeviceRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ResetDeviceResponse.FromString, - ) - self.ResetWithDefaults = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ResetWithDefaults', - request_serializer=nirfsg__pb2.ResetWithDefaultsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ResetWithDefaultsResponse.FromString, - ) - self.ResetWithOptions = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/ResetWithOptions', - request_serializer=nirfsg__pb2.ResetWithOptionsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.ResetWithOptionsResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/RevisionQuery', - request_serializer=nirfsg__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=nirfsg__pb2.RevisionQueryResponse.FromString, - ) - self.SaveConfigurationsToFile = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SaveConfigurationsToFile', - request_serializer=nirfsg__pb2.SaveConfigurationsToFileRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SaveConfigurationsToFileResponse.FromString, - ) - self.SelectArbWaveform = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SelectArbWaveform', - request_serializer=nirfsg__pb2.SelectArbWaveformRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SelectArbWaveformResponse.FromString, - ) - self.SelfCal = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SelfCal', - request_serializer=nirfsg__pb2.SelfCalRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SelfCalResponse.FromString, - ) - self.SelfCalibrateRange = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SelfCalibrateRange', - request_serializer=nirfsg__pb2.SelfCalibrateRangeRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SelfCalibrateRangeResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SelfTest', - request_serializer=nirfsg__pb2.SelfTestRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SelfTestResponse.FromString, - ) - self.SendSoftwareEdgeTrigger = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SendSoftwareEdgeTrigger', - request_serializer=nirfsg__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SendSoftwareEdgeTriggerResponse.FromString, - ) - self.SetArbWaveformNextWritePosition = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetArbWaveformNextWritePosition', - request_serializer=nirfsg__pb2.SetArbWaveformNextWritePositionRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetArbWaveformNextWritePositionResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetAttributeViBoolean', - request_serializer=nirfsg__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetAttributeViInt32', - request_serializer=nirfsg__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=nirfsg__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetAttributeViInt64', - request_serializer=nirfsg__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=nirfsg__pb2.SetAttributeViInt64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetAttributeViReal64', - request_serializer=nirfsg__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=nirfsg__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetAttributeViSession', - request_serializer=nirfsg__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetAttributeViString', - request_serializer=nirfsg__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetAttributeViStringResponse.FromString, - ) - self.SetUserData = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetUserData', - request_serializer=nirfsg__pb2.SetUserDataRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetUserDataResponse.FromString, - ) - self.SetWaveformBurstStartLocations = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetWaveformBurstStartLocations', - request_serializer=nirfsg__pb2.SetWaveformBurstStartLocationsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetWaveformBurstStartLocationsResponse.FromString, - ) - self.SetWaveformBurstStopLocations = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetWaveformBurstStopLocations', - request_serializer=nirfsg__pb2.SetWaveformBurstStopLocationsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetWaveformBurstStopLocationsResponse.FromString, - ) - self.SetWaveformMarkerEventLocations = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/SetWaveformMarkerEventLocations', - request_serializer=nirfsg__pb2.SetWaveformMarkerEventLocationsRequest.SerializeToString, - response_deserializer=nirfsg__pb2.SetWaveformMarkerEventLocationsResponse.FromString, - ) - self.WaitUntilSettled = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WaitUntilSettled', - request_serializer=nirfsg__pb2.WaitUntilSettledRequest.SerializeToString, - response_deserializer=nirfsg__pb2.WaitUntilSettledResponse.FromString, - ) - self.WriteArbWaveform = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WriteArbWaveform', - request_serializer=nirfsg__pb2.WriteArbWaveformRequest.SerializeToString, - response_deserializer=nirfsg__pb2.WriteArbWaveformResponse.FromString, - ) - self.WriteArbWaveformComplexF32 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF32', - request_serializer=nirfsg__pb2.WriteArbWaveformComplexF32Request.SerializeToString, - response_deserializer=nirfsg__pb2.WriteArbWaveformComplexF32Response.FromString, - ) - self.WriteArbWaveformComplexF64 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF64', - request_serializer=nirfsg__pb2.WriteArbWaveformComplexF64Request.SerializeToString, - response_deserializer=nirfsg__pb2.WriteArbWaveformComplexF64Response.FromString, - ) - self.WriteArbWaveformComplexI16 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexI16', - request_serializer=nirfsg__pb2.WriteArbWaveformComplexI16Request.SerializeToString, - response_deserializer=nirfsg__pb2.WriteArbWaveformComplexI16Response.FromString, - ) - self.WriteArbWaveformF32 = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WriteArbWaveformF32', - request_serializer=nirfsg__pb2.WriteArbWaveformF32Request.SerializeToString, - response_deserializer=nirfsg__pb2.WriteArbWaveformF32Response.FromString, - ) - self.WriteScript = channel.unary_unary( - '/nirfsg_grpc.NiRFSG/WriteScript', - request_serializer=nirfsg__pb2.WriteScriptRequest.SerializeToString, - response_deserializer=nirfsg__pb2.WriteScriptResponse.FromString, - ) - - -class NiRFSGServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AllocateArbWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckGenerationStatus(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckIfConfigurationListExists(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckIfScriptExists(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckIfWaveformExists(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearAllArbWaveforms(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearArbWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearSelfCalibrateRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDeembeddingTableInterpolationLinear(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDeembeddingTableInterpolationNearest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDeembeddingTableInterpolationSpline(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeConfigurationListStepTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalEdgeStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalLevelScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureDigitalModulationUserDefinedWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureGenerationMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureOutputEnabled(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureP2PEndpointFullnessStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePXIChassisClk10(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigurePowerLevelType(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureRF(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureRefClock(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSignalBandwidth(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureSoftwareStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureUpconverterPLLSettlingTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateConfigurationList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateConfigurationListStep(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDeembeddingSparameterTableArray(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDeembeddingSparameterTableS2PFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteAllDeembeddingTables(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteConfigurationList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteDeembeddingTable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteScript(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableAllModulation(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableConfigurationListStepTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableScriptTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisableStartTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAllNamedWaveformNames(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAllScriptNames(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetScript(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDeembeddingSparameters(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExternalCalibrationLastDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMaxSettablePower(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalibrationDateAndTime(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetSelfCalibrationTemperature(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTerminalName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetUserData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetWaveformBurstStartLocations(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetWaveformBurstStopLocations(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetWaveformMarkerEventLocations(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Initiate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InvalidateAllAttributes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LoadConfigurationsFromFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformPowerSearch(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PerformThermalCorrection(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QueryArbWaveformCapabilities(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadAndDownloadWaveformFromFileTDMS(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetAttribute(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SaveConfigurationsToFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelectArbWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfCalibrateRange(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareEdgeTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetArbWaveformNextWritePosition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetUserData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetWaveformBurstStartLocations(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetWaveformBurstStopLocations(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetWaveformMarkerEventLocations(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitUntilSettled(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteArbWaveform(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteArbWaveformComplexF32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteArbWaveformComplexF64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteArbWaveformComplexI16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteArbWaveformF32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WriteScript(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiRFSGServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=nirfsg__pb2.AbortRequest.FromString, - response_serializer=nirfsg__pb2.AbortResponse.SerializeToString, - ), - 'AllocateArbWaveform': grpc.unary_unary_rpc_method_handler( - servicer.AllocateArbWaveform, - request_deserializer=nirfsg__pb2.AllocateArbWaveformRequest.FromString, - response_serializer=nirfsg__pb2.AllocateArbWaveformResponse.SerializeToString, - ), - 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViBoolean, - request_deserializer=nirfsg__pb2.CheckAttributeViBooleanRequest.FromString, - response_serializer=nirfsg__pb2.CheckAttributeViBooleanResponse.SerializeToString, - ), - 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt32, - request_deserializer=nirfsg__pb2.CheckAttributeViInt32Request.FromString, - response_serializer=nirfsg__pb2.CheckAttributeViInt32Response.SerializeToString, - ), - 'CheckAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt64, - request_deserializer=nirfsg__pb2.CheckAttributeViInt64Request.FromString, - response_serializer=nirfsg__pb2.CheckAttributeViInt64Response.SerializeToString, - ), - 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViReal64, - request_deserializer=nirfsg__pb2.CheckAttributeViReal64Request.FromString, - response_serializer=nirfsg__pb2.CheckAttributeViReal64Response.SerializeToString, - ), - 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViSession, - request_deserializer=nirfsg__pb2.CheckAttributeViSessionRequest.FromString, - response_serializer=nirfsg__pb2.CheckAttributeViSessionResponse.SerializeToString, - ), - 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViString, - request_deserializer=nirfsg__pb2.CheckAttributeViStringRequest.FromString, - response_serializer=nirfsg__pb2.CheckAttributeViStringResponse.SerializeToString, - ), - 'CheckGenerationStatus': grpc.unary_unary_rpc_method_handler( - servicer.CheckGenerationStatus, - request_deserializer=nirfsg__pb2.CheckGenerationStatusRequest.FromString, - response_serializer=nirfsg__pb2.CheckGenerationStatusResponse.SerializeToString, - ), - 'CheckIfConfigurationListExists': grpc.unary_unary_rpc_method_handler( - servicer.CheckIfConfigurationListExists, - request_deserializer=nirfsg__pb2.CheckIfConfigurationListExistsRequest.FromString, - response_serializer=nirfsg__pb2.CheckIfConfigurationListExistsResponse.SerializeToString, - ), - 'CheckIfScriptExists': grpc.unary_unary_rpc_method_handler( - servicer.CheckIfScriptExists, - request_deserializer=nirfsg__pb2.CheckIfScriptExistsRequest.FromString, - response_serializer=nirfsg__pb2.CheckIfScriptExistsResponse.SerializeToString, - ), - 'CheckIfWaveformExists': grpc.unary_unary_rpc_method_handler( - servicer.CheckIfWaveformExists, - request_deserializer=nirfsg__pb2.CheckIfWaveformExistsRequest.FromString, - response_serializer=nirfsg__pb2.CheckIfWaveformExistsResponse.SerializeToString, - ), - 'ClearAllArbWaveforms': grpc.unary_unary_rpc_method_handler( - servicer.ClearAllArbWaveforms, - request_deserializer=nirfsg__pb2.ClearAllArbWaveformsRequest.FromString, - response_serializer=nirfsg__pb2.ClearAllArbWaveformsResponse.SerializeToString, - ), - 'ClearArbWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ClearArbWaveform, - request_deserializer=nirfsg__pb2.ClearArbWaveformRequest.FromString, - response_serializer=nirfsg__pb2.ClearArbWaveformResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=nirfsg__pb2.ClearErrorRequest.FromString, - response_serializer=nirfsg__pb2.ClearErrorResponse.SerializeToString, - ), - 'ClearSelfCalibrateRange': grpc.unary_unary_rpc_method_handler( - servicer.ClearSelfCalibrateRange, - request_deserializer=nirfsg__pb2.ClearSelfCalibrateRangeRequest.FromString, - response_serializer=nirfsg__pb2.ClearSelfCalibrateRangeResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=nirfsg__pb2.CloseRequest.FromString, - response_serializer=nirfsg__pb2.CloseResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=nirfsg__pb2.CommitRequest.FromString, - response_serializer=nirfsg__pb2.CommitResponse.SerializeToString, - ), - 'ConfigureDeembeddingTableInterpolationLinear': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDeembeddingTableInterpolationLinear, - request_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.SerializeToString, - ), - 'ConfigureDeembeddingTableInterpolationNearest': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDeembeddingTableInterpolationNearest, - request_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.SerializeToString, - ), - 'ConfigureDeembeddingTableInterpolationSpline': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDeembeddingTableInterpolationSpline, - request_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeConfigurationListStepTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeConfigurationListStepTrigger, - request_deserializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeScriptTrigger, - request_deserializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalEdgeStartTrigger, - request_deserializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalLevelScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalLevelScriptTrigger, - request_deserializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerResponse.SerializeToString, - ), - 'ConfigureDigitalModulationUserDefinedWaveform': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureDigitalModulationUserDefinedWaveform, - request_deserializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformResponse.SerializeToString, - ), - 'ConfigureGenerationMode': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureGenerationMode, - request_deserializer=nirfsg__pb2.ConfigureGenerationModeRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureGenerationModeResponse.SerializeToString, - ), - 'ConfigureOutputEnabled': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureOutputEnabled, - request_deserializer=nirfsg__pb2.ConfigureOutputEnabledRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureOutputEnabledResponse.SerializeToString, - ), - 'ConfigureP2PEndpointFullnessStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureP2PEndpointFullnessStartTrigger, - request_deserializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.SerializeToString, - ), - 'ConfigurePXIChassisClk10': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePXIChassisClk10, - request_deserializer=nirfsg__pb2.ConfigurePXIChassisClk10Request.FromString, - response_serializer=nirfsg__pb2.ConfigurePXIChassisClk10Response.SerializeToString, - ), - 'ConfigurePowerLevelType': grpc.unary_unary_rpc_method_handler( - servicer.ConfigurePowerLevelType, - request_deserializer=nirfsg__pb2.ConfigurePowerLevelTypeRequest.FromString, - response_serializer=nirfsg__pb2.ConfigurePowerLevelTypeResponse.SerializeToString, - ), - 'ConfigureRF': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureRF, - request_deserializer=nirfsg__pb2.ConfigureRFRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureRFResponse.SerializeToString, - ), - 'ConfigureRefClock': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureRefClock, - request_deserializer=nirfsg__pb2.ConfigureRefClockRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureRefClockResponse.SerializeToString, - ), - 'ConfigureSignalBandwidth': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSignalBandwidth, - request_deserializer=nirfsg__pb2.ConfigureSignalBandwidthRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureSignalBandwidthResponse.SerializeToString, - ), - 'ConfigureSoftwareScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareScriptTrigger, - request_deserializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerResponse.SerializeToString, - ), - 'ConfigureSoftwareStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureSoftwareStartTrigger, - request_deserializer=nirfsg__pb2.ConfigureSoftwareStartTriggerRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureSoftwareStartTriggerResponse.SerializeToString, - ), - 'ConfigureUpconverterPLLSettlingTime': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureUpconverterPLLSettlingTime, - request_deserializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeRequest.FromString, - response_serializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeResponse.SerializeToString, - ), - 'CreateConfigurationList': grpc.unary_unary_rpc_method_handler( - servicer.CreateConfigurationList, - request_deserializer=nirfsg__pb2.CreateConfigurationListRequest.FromString, - response_serializer=nirfsg__pb2.CreateConfigurationListResponse.SerializeToString, - ), - 'CreateConfigurationListStep': grpc.unary_unary_rpc_method_handler( - servicer.CreateConfigurationListStep, - request_deserializer=nirfsg__pb2.CreateConfigurationListStepRequest.FromString, - response_serializer=nirfsg__pb2.CreateConfigurationListStepResponse.SerializeToString, - ), - 'CreateDeembeddingSparameterTableArray': grpc.unary_unary_rpc_method_handler( - servicer.CreateDeembeddingSparameterTableArray, - request_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayRequest.FromString, - response_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayResponse.SerializeToString, - ), - 'CreateDeembeddingSparameterTableS2PFile': grpc.unary_unary_rpc_method_handler( - servicer.CreateDeembeddingSparameterTableS2PFile, - request_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileRequest.FromString, - response_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileResponse.SerializeToString, - ), - 'DeleteAllDeembeddingTables': grpc.unary_unary_rpc_method_handler( - servicer.DeleteAllDeembeddingTables, - request_deserializer=nirfsg__pb2.DeleteAllDeembeddingTablesRequest.FromString, - response_serializer=nirfsg__pb2.DeleteAllDeembeddingTablesResponse.SerializeToString, - ), - 'DeleteConfigurationList': grpc.unary_unary_rpc_method_handler( - servicer.DeleteConfigurationList, - request_deserializer=nirfsg__pb2.DeleteConfigurationListRequest.FromString, - response_serializer=nirfsg__pb2.DeleteConfigurationListResponse.SerializeToString, - ), - 'DeleteDeembeddingTable': grpc.unary_unary_rpc_method_handler( - servicer.DeleteDeembeddingTable, - request_deserializer=nirfsg__pb2.DeleteDeembeddingTableRequest.FromString, - response_serializer=nirfsg__pb2.DeleteDeembeddingTableResponse.SerializeToString, - ), - 'DeleteScript': grpc.unary_unary_rpc_method_handler( - servicer.DeleteScript, - request_deserializer=nirfsg__pb2.DeleteScriptRequest.FromString, - response_serializer=nirfsg__pb2.DeleteScriptResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=nirfsg__pb2.DisableRequest.FromString, - response_serializer=nirfsg__pb2.DisableResponse.SerializeToString, - ), - 'DisableAllModulation': grpc.unary_unary_rpc_method_handler( - servicer.DisableAllModulation, - request_deserializer=nirfsg__pb2.DisableAllModulationRequest.FromString, - response_serializer=nirfsg__pb2.DisableAllModulationResponse.SerializeToString, - ), - 'DisableConfigurationListStepTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableConfigurationListStepTrigger, - request_deserializer=nirfsg__pb2.DisableConfigurationListStepTriggerRequest.FromString, - response_serializer=nirfsg__pb2.DisableConfigurationListStepTriggerResponse.SerializeToString, - ), - 'DisableScriptTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableScriptTrigger, - request_deserializer=nirfsg__pb2.DisableScriptTriggerRequest.FromString, - response_serializer=nirfsg__pb2.DisableScriptTriggerResponse.SerializeToString, - ), - 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DisableStartTrigger, - request_deserializer=nirfsg__pb2.DisableStartTriggerRequest.FromString, - response_serializer=nirfsg__pb2.DisableStartTriggerResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=nirfsg__pb2.ErrorMessageRequest.FromString, - response_serializer=nirfsg__pb2.ErrorMessageResponse.SerializeToString, - ), - 'ErrorQuery': grpc.unary_unary_rpc_method_handler( - servicer.ErrorQuery, - request_deserializer=nirfsg__pb2.ErrorQueryRequest.FromString, - response_serializer=nirfsg__pb2.ErrorQueryResponse.SerializeToString, - ), - 'ExportSignal': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignal, - request_deserializer=nirfsg__pb2.ExportSignalRequest.FromString, - response_serializer=nirfsg__pb2.ExportSignalResponse.SerializeToString, - ), - 'GetAllNamedWaveformNames': grpc.unary_unary_rpc_method_handler( - servicer.GetAllNamedWaveformNames, - request_deserializer=nirfsg__pb2.GetAllNamedWaveformNamesRequest.FromString, - response_serializer=nirfsg__pb2.GetAllNamedWaveformNamesResponse.SerializeToString, - ), - 'GetAllScriptNames': grpc.unary_unary_rpc_method_handler( - servicer.GetAllScriptNames, - request_deserializer=nirfsg__pb2.GetAllScriptNamesRequest.FromString, - response_serializer=nirfsg__pb2.GetAllScriptNamesResponse.SerializeToString, - ), - 'GetScript': grpc.unary_unary_rpc_method_handler( - servicer.GetScript, - request_deserializer=nirfsg__pb2.GetScriptRequest.FromString, - response_serializer=nirfsg__pb2.GetScriptResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=nirfsg__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=nirfsg__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=nirfsg__pb2.GetAttributeViInt32Request.FromString, - response_serializer=nirfsg__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=nirfsg__pb2.GetAttributeViInt64Request.FromString, - response_serializer=nirfsg__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=nirfsg__pb2.GetAttributeViReal64Request.FromString, - response_serializer=nirfsg__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=nirfsg__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=nirfsg__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=nirfsg__pb2.GetAttributeViStringRequest.FromString, - response_serializer=nirfsg__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=nirfsg__pb2.GetChannelNameRequest.FromString, - response_serializer=nirfsg__pb2.GetChannelNameResponse.SerializeToString, - ), - 'GetDeembeddingSparameters': grpc.unary_unary_rpc_method_handler( - servicer.GetDeembeddingSparameters, - request_deserializer=nirfsg__pb2.GetDeembeddingSparametersRequest.FromString, - response_serializer=nirfsg__pb2.GetDeembeddingSparametersResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=nirfsg__pb2.GetErrorRequest.FromString, - response_serializer=nirfsg__pb2.GetErrorResponse.SerializeToString, - ), - 'GetExternalCalibrationLastDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetExternalCalibrationLastDateAndTime, - request_deserializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeRequest.FromString, - response_serializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeResponse.SerializeToString, - ), - 'GetMaxSettablePower': grpc.unary_unary_rpc_method_handler( - servicer.GetMaxSettablePower, - request_deserializer=nirfsg__pb2.GetMaxSettablePowerRequest.FromString, - response_serializer=nirfsg__pb2.GetMaxSettablePowerResponse.SerializeToString, - ), - 'GetSelfCalibrationDateAndTime': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalibrationDateAndTime, - request_deserializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeRequest.FromString, - response_serializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeResponse.SerializeToString, - ), - 'GetSelfCalibrationTemperature': grpc.unary_unary_rpc_method_handler( - servicer.GetSelfCalibrationTemperature, - request_deserializer=nirfsg__pb2.GetSelfCalibrationTemperatureRequest.FromString, - response_serializer=nirfsg__pb2.GetSelfCalibrationTemperatureResponse.SerializeToString, - ), - 'GetTerminalName': grpc.unary_unary_rpc_method_handler( - servicer.GetTerminalName, - request_deserializer=nirfsg__pb2.GetTerminalNameRequest.FromString, - response_serializer=nirfsg__pb2.GetTerminalNameResponse.SerializeToString, - ), - 'GetUserData': grpc.unary_unary_rpc_method_handler( - servicer.GetUserData, - request_deserializer=nirfsg__pb2.GetUserDataRequest.FromString, - response_serializer=nirfsg__pb2.GetUserDataResponse.SerializeToString, - ), - 'GetWaveformBurstStartLocations': grpc.unary_unary_rpc_method_handler( - servicer.GetWaveformBurstStartLocations, - request_deserializer=nirfsg__pb2.GetWaveformBurstStartLocationsRequest.FromString, - response_serializer=nirfsg__pb2.GetWaveformBurstStartLocationsResponse.SerializeToString, - ), - 'GetWaveformBurstStopLocations': grpc.unary_unary_rpc_method_handler( - servicer.GetWaveformBurstStopLocations, - request_deserializer=nirfsg__pb2.GetWaveformBurstStopLocationsRequest.FromString, - response_serializer=nirfsg__pb2.GetWaveformBurstStopLocationsResponse.SerializeToString, - ), - 'GetWaveformMarkerEventLocations': grpc.unary_unary_rpc_method_handler( - servicer.GetWaveformMarkerEventLocations, - request_deserializer=nirfsg__pb2.GetWaveformMarkerEventLocationsRequest.FromString, - response_serializer=nirfsg__pb2.GetWaveformMarkerEventLocationsResponse.SerializeToString, - ), - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=nirfsg__pb2.InitRequest.FromString, - response_serializer=nirfsg__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=nirfsg__pb2.InitWithOptionsRequest.FromString, - response_serializer=nirfsg__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'Initiate': grpc.unary_unary_rpc_method_handler( - servicer.Initiate, - request_deserializer=nirfsg__pb2.InitiateRequest.FromString, - response_serializer=nirfsg__pb2.InitiateResponse.SerializeToString, - ), - 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( - servicer.InvalidateAllAttributes, - request_deserializer=nirfsg__pb2.InvalidateAllAttributesRequest.FromString, - response_serializer=nirfsg__pb2.InvalidateAllAttributesResponse.SerializeToString, - ), - 'LoadConfigurationsFromFile': grpc.unary_unary_rpc_method_handler( - servicer.LoadConfigurationsFromFile, - request_deserializer=nirfsg__pb2.LoadConfigurationsFromFileRequest.FromString, - response_serializer=nirfsg__pb2.LoadConfigurationsFromFileResponse.SerializeToString, - ), - 'PerformPowerSearch': grpc.unary_unary_rpc_method_handler( - servicer.PerformPowerSearch, - request_deserializer=nirfsg__pb2.PerformPowerSearchRequest.FromString, - response_serializer=nirfsg__pb2.PerformPowerSearchResponse.SerializeToString, - ), - 'PerformThermalCorrection': grpc.unary_unary_rpc_method_handler( - servicer.PerformThermalCorrection, - request_deserializer=nirfsg__pb2.PerformThermalCorrectionRequest.FromString, - response_serializer=nirfsg__pb2.PerformThermalCorrectionResponse.SerializeToString, - ), - 'QueryArbWaveformCapabilities': grpc.unary_unary_rpc_method_handler( - servicer.QueryArbWaveformCapabilities, - request_deserializer=nirfsg__pb2.QueryArbWaveformCapabilitiesRequest.FromString, - response_serializer=nirfsg__pb2.QueryArbWaveformCapabilitiesResponse.SerializeToString, - ), - 'ReadAndDownloadWaveformFromFileTDMS': grpc.unary_unary_rpc_method_handler( - servicer.ReadAndDownloadWaveformFromFileTDMS, - request_deserializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSRequest.FromString, - response_serializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=nirfsg__pb2.ResetRequest.FromString, - response_serializer=nirfsg__pb2.ResetResponse.SerializeToString, - ), - 'ResetAttribute': grpc.unary_unary_rpc_method_handler( - servicer.ResetAttribute, - request_deserializer=nirfsg__pb2.ResetAttributeRequest.FromString, - response_serializer=nirfsg__pb2.ResetAttributeResponse.SerializeToString, - ), - 'ResetDevice': grpc.unary_unary_rpc_method_handler( - servicer.ResetDevice, - request_deserializer=nirfsg__pb2.ResetDeviceRequest.FromString, - response_serializer=nirfsg__pb2.ResetDeviceResponse.SerializeToString, - ), - 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithDefaults, - request_deserializer=nirfsg__pb2.ResetWithDefaultsRequest.FromString, - response_serializer=nirfsg__pb2.ResetWithDefaultsResponse.SerializeToString, - ), - 'ResetWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithOptions, - request_deserializer=nirfsg__pb2.ResetWithOptionsRequest.FromString, - response_serializer=nirfsg__pb2.ResetWithOptionsResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=nirfsg__pb2.RevisionQueryRequest.FromString, - response_serializer=nirfsg__pb2.RevisionQueryResponse.SerializeToString, - ), - 'SaveConfigurationsToFile': grpc.unary_unary_rpc_method_handler( - servicer.SaveConfigurationsToFile, - request_deserializer=nirfsg__pb2.SaveConfigurationsToFileRequest.FromString, - response_serializer=nirfsg__pb2.SaveConfigurationsToFileResponse.SerializeToString, - ), - 'SelectArbWaveform': grpc.unary_unary_rpc_method_handler( - servicer.SelectArbWaveform, - request_deserializer=nirfsg__pb2.SelectArbWaveformRequest.FromString, - response_serializer=nirfsg__pb2.SelectArbWaveformResponse.SerializeToString, - ), - 'SelfCal': grpc.unary_unary_rpc_method_handler( - servicer.SelfCal, - request_deserializer=nirfsg__pb2.SelfCalRequest.FromString, - response_serializer=nirfsg__pb2.SelfCalResponse.SerializeToString, - ), - 'SelfCalibrateRange': grpc.unary_unary_rpc_method_handler( - servicer.SelfCalibrateRange, - request_deserializer=nirfsg__pb2.SelfCalibrateRangeRequest.FromString, - response_serializer=nirfsg__pb2.SelfCalibrateRangeResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=nirfsg__pb2.SelfTestRequest.FromString, - response_serializer=nirfsg__pb2.SelfTestResponse.SerializeToString, - ), - 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareEdgeTrigger, - request_deserializer=nirfsg__pb2.SendSoftwareEdgeTriggerRequest.FromString, - response_serializer=nirfsg__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, - ), - 'SetArbWaveformNextWritePosition': grpc.unary_unary_rpc_method_handler( - servicer.SetArbWaveformNextWritePosition, - request_deserializer=nirfsg__pb2.SetArbWaveformNextWritePositionRequest.FromString, - response_serializer=nirfsg__pb2.SetArbWaveformNextWritePositionResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=nirfsg__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=nirfsg__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=nirfsg__pb2.SetAttributeViInt32Request.FromString, - response_serializer=nirfsg__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=nirfsg__pb2.SetAttributeViInt64Request.FromString, - response_serializer=nirfsg__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=nirfsg__pb2.SetAttributeViReal64Request.FromString, - response_serializer=nirfsg__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=nirfsg__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=nirfsg__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=nirfsg__pb2.SetAttributeViStringRequest.FromString, - response_serializer=nirfsg__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'SetUserData': grpc.unary_unary_rpc_method_handler( - servicer.SetUserData, - request_deserializer=nirfsg__pb2.SetUserDataRequest.FromString, - response_serializer=nirfsg__pb2.SetUserDataResponse.SerializeToString, - ), - 'SetWaveformBurstStartLocations': grpc.unary_unary_rpc_method_handler( - servicer.SetWaveformBurstStartLocations, - request_deserializer=nirfsg__pb2.SetWaveformBurstStartLocationsRequest.FromString, - response_serializer=nirfsg__pb2.SetWaveformBurstStartLocationsResponse.SerializeToString, - ), - 'SetWaveformBurstStopLocations': grpc.unary_unary_rpc_method_handler( - servicer.SetWaveformBurstStopLocations, - request_deserializer=nirfsg__pb2.SetWaveformBurstStopLocationsRequest.FromString, - response_serializer=nirfsg__pb2.SetWaveformBurstStopLocationsResponse.SerializeToString, - ), - 'SetWaveformMarkerEventLocations': grpc.unary_unary_rpc_method_handler( - servicer.SetWaveformMarkerEventLocations, - request_deserializer=nirfsg__pb2.SetWaveformMarkerEventLocationsRequest.FromString, - response_serializer=nirfsg__pb2.SetWaveformMarkerEventLocationsResponse.SerializeToString, - ), - 'WaitUntilSettled': grpc.unary_unary_rpc_method_handler( - servicer.WaitUntilSettled, - request_deserializer=nirfsg__pb2.WaitUntilSettledRequest.FromString, - response_serializer=nirfsg__pb2.WaitUntilSettledResponse.SerializeToString, - ), - 'WriteArbWaveform': grpc.unary_unary_rpc_method_handler( - servicer.WriteArbWaveform, - request_deserializer=nirfsg__pb2.WriteArbWaveformRequest.FromString, - response_serializer=nirfsg__pb2.WriteArbWaveformResponse.SerializeToString, - ), - 'WriteArbWaveformComplexF32': grpc.unary_unary_rpc_method_handler( - servicer.WriteArbWaveformComplexF32, - request_deserializer=nirfsg__pb2.WriteArbWaveformComplexF32Request.FromString, - response_serializer=nirfsg__pb2.WriteArbWaveformComplexF32Response.SerializeToString, - ), - 'WriteArbWaveformComplexF64': grpc.unary_unary_rpc_method_handler( - servicer.WriteArbWaveformComplexF64, - request_deserializer=nirfsg__pb2.WriteArbWaveformComplexF64Request.FromString, - response_serializer=nirfsg__pb2.WriteArbWaveformComplexF64Response.SerializeToString, - ), - 'WriteArbWaveformComplexI16': grpc.unary_unary_rpc_method_handler( - servicer.WriteArbWaveformComplexI16, - request_deserializer=nirfsg__pb2.WriteArbWaveformComplexI16Request.FromString, - response_serializer=nirfsg__pb2.WriteArbWaveformComplexI16Response.SerializeToString, - ), - 'WriteArbWaveformF32': grpc.unary_unary_rpc_method_handler( - servicer.WriteArbWaveformF32, - request_deserializer=nirfsg__pb2.WriteArbWaveformF32Request.FromString, - response_serializer=nirfsg__pb2.WriteArbWaveformF32Response.SerializeToString, - ), - 'WriteScript': grpc.unary_unary_rpc_method_handler( - servicer.WriteScript, - request_deserializer=nirfsg__pb2.WriteScriptRequest.FromString, - response_serializer=nirfsg__pb2.WriteScriptResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'nirfsg_grpc.NiRFSG', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiRFSG(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Abort', - nirfsg__pb2.AbortRequest.SerializeToString, - nirfsg__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AllocateArbWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/AllocateArbWaveform', - nirfsg__pb2.AllocateArbWaveformRequest.SerializeToString, - nirfsg__pb2.AllocateArbWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViBoolean', - nirfsg__pb2.CheckAttributeViBooleanRequest.SerializeToString, - nirfsg__pb2.CheckAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViInt32', - nirfsg__pb2.CheckAttributeViInt32Request.SerializeToString, - nirfsg__pb2.CheckAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViInt64', - nirfsg__pb2.CheckAttributeViInt64Request.SerializeToString, - nirfsg__pb2.CheckAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViReal64', - nirfsg__pb2.CheckAttributeViReal64Request.SerializeToString, - nirfsg__pb2.CheckAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViSession', - nirfsg__pb2.CheckAttributeViSessionRequest.SerializeToString, - nirfsg__pb2.CheckAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViString', - nirfsg__pb2.CheckAttributeViStringRequest.SerializeToString, - nirfsg__pb2.CheckAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckGenerationStatus(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckGenerationStatus', - nirfsg__pb2.CheckGenerationStatusRequest.SerializeToString, - nirfsg__pb2.CheckGenerationStatusResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckIfConfigurationListExists(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckIfConfigurationListExists', - nirfsg__pb2.CheckIfConfigurationListExistsRequest.SerializeToString, - nirfsg__pb2.CheckIfConfigurationListExistsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckIfScriptExists(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckIfScriptExists', - nirfsg__pb2.CheckIfScriptExistsRequest.SerializeToString, - nirfsg__pb2.CheckIfScriptExistsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckIfWaveformExists(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckIfWaveformExists', - nirfsg__pb2.CheckIfWaveformExistsRequest.SerializeToString, - nirfsg__pb2.CheckIfWaveformExistsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearAllArbWaveforms(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearAllArbWaveforms', - nirfsg__pb2.ClearAllArbWaveformsRequest.SerializeToString, - nirfsg__pb2.ClearAllArbWaveformsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearArbWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearArbWaveform', - nirfsg__pb2.ClearArbWaveformRequest.SerializeToString, - nirfsg__pb2.ClearArbWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearError', - nirfsg__pb2.ClearErrorRequest.SerializeToString, - nirfsg__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearSelfCalibrateRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearSelfCalibrateRange', - nirfsg__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, - nirfsg__pb2.ClearSelfCalibrateRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Close', - nirfsg__pb2.CloseRequest.SerializeToString, - nirfsg__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Commit', - nirfsg__pb2.CommitRequest.SerializeToString, - nirfsg__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDeembeddingTableInterpolationLinear(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationLinear', - nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, - nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDeembeddingTableInterpolationNearest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationNearest', - nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, - nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDeembeddingTableInterpolationSpline(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationSpline', - nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, - nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeConfigurationListStepTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeConfigurationListStepTrigger', - nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeScriptTrigger', - nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalEdgeStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeStartTrigger', - nirfsg__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalLevelScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalLevelScriptTrigger', - nirfsg__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureDigitalModulationUserDefinedWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalModulationUserDefinedWaveform', - nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformRequest.SerializeToString, - nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureGenerationMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureGenerationMode', - nirfsg__pb2.ConfigureGenerationModeRequest.SerializeToString, - nirfsg__pb2.ConfigureGenerationModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureOutputEnabled(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureOutputEnabled', - nirfsg__pb2.ConfigureOutputEnabledRequest.SerializeToString, - nirfsg__pb2.ConfigureOutputEnabledResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureP2PEndpointFullnessStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureP2PEndpointFullnessStartTrigger', - nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePXIChassisClk10(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigurePXIChassisClk10', - nirfsg__pb2.ConfigurePXIChassisClk10Request.SerializeToString, - nirfsg__pb2.ConfigurePXIChassisClk10Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigurePowerLevelType(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigurePowerLevelType', - nirfsg__pb2.ConfigurePowerLevelTypeRequest.SerializeToString, - nirfsg__pb2.ConfigurePowerLevelTypeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureRF(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureRF', - nirfsg__pb2.ConfigureRFRequest.SerializeToString, - nirfsg__pb2.ConfigureRFResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureRefClock(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureRefClock', - nirfsg__pb2.ConfigureRefClockRequest.SerializeToString, - nirfsg__pb2.ConfigureRefClockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSignalBandwidth(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureSignalBandwidth', - nirfsg__pb2.ConfigureSignalBandwidthRequest.SerializeToString, - nirfsg__pb2.ConfigureSignalBandwidthResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureSoftwareScriptTrigger', - nirfsg__pb2.ConfigureSoftwareScriptTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureSoftwareScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureSoftwareStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureSoftwareStartTrigger', - nirfsg__pb2.ConfigureSoftwareStartTriggerRequest.SerializeToString, - nirfsg__pb2.ConfigureSoftwareStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureUpconverterPLLSettlingTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureUpconverterPLLSettlingTime', - nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeRequest.SerializeToString, - nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateConfigurationList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateConfigurationList', - nirfsg__pb2.CreateConfigurationListRequest.SerializeToString, - nirfsg__pb2.CreateConfigurationListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateConfigurationListStep(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateConfigurationListStep', - nirfsg__pb2.CreateConfigurationListStepRequest.SerializeToString, - nirfsg__pb2.CreateConfigurationListStepResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDeembeddingSparameterTableArray(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableArray', - nirfsg__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, - nirfsg__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDeembeddingSparameterTableS2PFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableS2PFile', - nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, - nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteAllDeembeddingTables(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteAllDeembeddingTables', - nirfsg__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, - nirfsg__pb2.DeleteAllDeembeddingTablesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteConfigurationList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteConfigurationList', - nirfsg__pb2.DeleteConfigurationListRequest.SerializeToString, - nirfsg__pb2.DeleteConfigurationListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteDeembeddingTable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteDeembeddingTable', - nirfsg__pb2.DeleteDeembeddingTableRequest.SerializeToString, - nirfsg__pb2.DeleteDeembeddingTableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteScript(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteScript', - nirfsg__pb2.DeleteScriptRequest.SerializeToString, - nirfsg__pb2.DeleteScriptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Disable', - nirfsg__pb2.DisableRequest.SerializeToString, - nirfsg__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableAllModulation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableAllModulation', - nirfsg__pb2.DisableAllModulationRequest.SerializeToString, - nirfsg__pb2.DisableAllModulationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableConfigurationListStepTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableConfigurationListStepTrigger', - nirfsg__pb2.DisableConfigurationListStepTriggerRequest.SerializeToString, - nirfsg__pb2.DisableConfigurationListStepTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableScriptTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableScriptTrigger', - nirfsg__pb2.DisableScriptTriggerRequest.SerializeToString, - nirfsg__pb2.DisableScriptTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisableStartTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableStartTrigger', - nirfsg__pb2.DisableStartTriggerRequest.SerializeToString, - nirfsg__pb2.DisableStartTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ErrorMessage', - nirfsg__pb2.ErrorMessageRequest.SerializeToString, - nirfsg__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ErrorQuery', - nirfsg__pb2.ErrorQueryRequest.SerializeToString, - nirfsg__pb2.ErrorQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ExportSignal', - nirfsg__pb2.ExportSignalRequest.SerializeToString, - nirfsg__pb2.ExportSignalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAllNamedWaveformNames(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAllNamedWaveformNames', - nirfsg__pb2.GetAllNamedWaveformNamesRequest.SerializeToString, - nirfsg__pb2.GetAllNamedWaveformNamesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAllScriptNames(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAllScriptNames', - nirfsg__pb2.GetAllScriptNamesRequest.SerializeToString, - nirfsg__pb2.GetAllScriptNamesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetScript(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetScript', - nirfsg__pb2.GetScriptRequest.SerializeToString, - nirfsg__pb2.GetScriptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViBoolean', - nirfsg__pb2.GetAttributeViBooleanRequest.SerializeToString, - nirfsg__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViInt32', - nirfsg__pb2.GetAttributeViInt32Request.SerializeToString, - nirfsg__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViInt64', - nirfsg__pb2.GetAttributeViInt64Request.SerializeToString, - nirfsg__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViReal64', - nirfsg__pb2.GetAttributeViReal64Request.SerializeToString, - nirfsg__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViSession', - nirfsg__pb2.GetAttributeViSessionRequest.SerializeToString, - nirfsg__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViString', - nirfsg__pb2.GetAttributeViStringRequest.SerializeToString, - nirfsg__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetChannelName', - nirfsg__pb2.GetChannelNameRequest.SerializeToString, - nirfsg__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDeembeddingSparameters(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetDeembeddingSparameters', - nirfsg__pb2.GetDeembeddingSparametersRequest.SerializeToString, - nirfsg__pb2.GetDeembeddingSparametersResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetError', - nirfsg__pb2.GetErrorRequest.SerializeToString, - nirfsg__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExternalCalibrationLastDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetExternalCalibrationLastDateAndTime', - nirfsg__pb2.GetExternalCalibrationLastDateAndTimeRequest.SerializeToString, - nirfsg__pb2.GetExternalCalibrationLastDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetMaxSettablePower(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetMaxSettablePower', - nirfsg__pb2.GetMaxSettablePowerRequest.SerializeToString, - nirfsg__pb2.GetMaxSettablePowerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalibrationDateAndTime(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetSelfCalibrationDateAndTime', - nirfsg__pb2.GetSelfCalibrationDateAndTimeRequest.SerializeToString, - nirfsg__pb2.GetSelfCalibrationDateAndTimeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetSelfCalibrationTemperature(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetSelfCalibrationTemperature', - nirfsg__pb2.GetSelfCalibrationTemperatureRequest.SerializeToString, - nirfsg__pb2.GetSelfCalibrationTemperatureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTerminalName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetTerminalName', - nirfsg__pb2.GetTerminalNameRequest.SerializeToString, - nirfsg__pb2.GetTerminalNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetUserData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetUserData', - nirfsg__pb2.GetUserDataRequest.SerializeToString, - nirfsg__pb2.GetUserDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetWaveformBurstStartLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetWaveformBurstStartLocations', - nirfsg__pb2.GetWaveformBurstStartLocationsRequest.SerializeToString, - nirfsg__pb2.GetWaveformBurstStartLocationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetWaveformBurstStopLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetWaveformBurstStopLocations', - nirfsg__pb2.GetWaveformBurstStopLocationsRequest.SerializeToString, - nirfsg__pb2.GetWaveformBurstStopLocationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetWaveformMarkerEventLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetWaveformMarkerEventLocations', - nirfsg__pb2.GetWaveformMarkerEventLocationsRequest.SerializeToString, - nirfsg__pb2.GetWaveformMarkerEventLocationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Init', - nirfsg__pb2.InitRequest.SerializeToString, - nirfsg__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/InitWithOptions', - nirfsg__pb2.InitWithOptionsRequest.SerializeToString, - nirfsg__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Initiate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Initiate', - nirfsg__pb2.InitiateRequest.SerializeToString, - nirfsg__pb2.InitiateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InvalidateAllAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/InvalidateAllAttributes', - nirfsg__pb2.InvalidateAllAttributesRequest.SerializeToString, - nirfsg__pb2.InvalidateAllAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def LoadConfigurationsFromFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/LoadConfigurationsFromFile', - nirfsg__pb2.LoadConfigurationsFromFileRequest.SerializeToString, - nirfsg__pb2.LoadConfigurationsFromFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformPowerSearch(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/PerformPowerSearch', - nirfsg__pb2.PerformPowerSearchRequest.SerializeToString, - nirfsg__pb2.PerformPowerSearchResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def PerformThermalCorrection(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/PerformThermalCorrection', - nirfsg__pb2.PerformThermalCorrectionRequest.SerializeToString, - nirfsg__pb2.PerformThermalCorrectionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def QueryArbWaveformCapabilities(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/QueryArbWaveformCapabilities', - nirfsg__pb2.QueryArbWaveformCapabilitiesRequest.SerializeToString, - nirfsg__pb2.QueryArbWaveformCapabilitiesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadAndDownloadWaveformFromFileTDMS(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ReadAndDownloadWaveformFromFileTDMS', - nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSRequest.SerializeToString, - nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Reset', - nirfsg__pb2.ResetRequest.SerializeToString, - nirfsg__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetAttribute(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetAttribute', - nirfsg__pb2.ResetAttributeRequest.SerializeToString, - nirfsg__pb2.ResetAttributeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetDevice', - nirfsg__pb2.ResetDeviceRequest.SerializeToString, - nirfsg__pb2.ResetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetWithDefaults', - nirfsg__pb2.ResetWithDefaultsRequest.SerializeToString, - nirfsg__pb2.ResetWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetWithOptions', - nirfsg__pb2.ResetWithOptionsRequest.SerializeToString, - nirfsg__pb2.ResetWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/RevisionQuery', - nirfsg__pb2.RevisionQueryRequest.SerializeToString, - nirfsg__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SaveConfigurationsToFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SaveConfigurationsToFile', - nirfsg__pb2.SaveConfigurationsToFileRequest.SerializeToString, - nirfsg__pb2.SaveConfigurationsToFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelectArbWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelectArbWaveform', - nirfsg__pb2.SelectArbWaveformRequest.SerializeToString, - nirfsg__pb2.SelectArbWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelfCal', - nirfsg__pb2.SelfCalRequest.SerializeToString, - nirfsg__pb2.SelfCalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfCalibrateRange(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelfCalibrateRange', - nirfsg__pb2.SelfCalibrateRangeRequest.SerializeToString, - nirfsg__pb2.SelfCalibrateRangeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelfTest', - nirfsg__pb2.SelfTestRequest.SerializeToString, - nirfsg__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareEdgeTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SendSoftwareEdgeTrigger', - nirfsg__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, - nirfsg__pb2.SendSoftwareEdgeTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetArbWaveformNextWritePosition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetArbWaveformNextWritePosition', - nirfsg__pb2.SetArbWaveformNextWritePositionRequest.SerializeToString, - nirfsg__pb2.SetArbWaveformNextWritePositionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViBoolean', - nirfsg__pb2.SetAttributeViBooleanRequest.SerializeToString, - nirfsg__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViInt32', - nirfsg__pb2.SetAttributeViInt32Request.SerializeToString, - nirfsg__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViInt64', - nirfsg__pb2.SetAttributeViInt64Request.SerializeToString, - nirfsg__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViReal64', - nirfsg__pb2.SetAttributeViReal64Request.SerializeToString, - nirfsg__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViSession', - nirfsg__pb2.SetAttributeViSessionRequest.SerializeToString, - nirfsg__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViString', - nirfsg__pb2.SetAttributeViStringRequest.SerializeToString, - nirfsg__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetUserData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetUserData', - nirfsg__pb2.SetUserDataRequest.SerializeToString, - nirfsg__pb2.SetUserDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetWaveformBurstStartLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetWaveformBurstStartLocations', - nirfsg__pb2.SetWaveformBurstStartLocationsRequest.SerializeToString, - nirfsg__pb2.SetWaveformBurstStartLocationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetWaveformBurstStopLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetWaveformBurstStopLocations', - nirfsg__pb2.SetWaveformBurstStopLocationsRequest.SerializeToString, - nirfsg__pb2.SetWaveformBurstStopLocationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetWaveformMarkerEventLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetWaveformMarkerEventLocations', - nirfsg__pb2.SetWaveformMarkerEventLocationsRequest.SerializeToString, - nirfsg__pb2.SetWaveformMarkerEventLocationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitUntilSettled(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WaitUntilSettled', - nirfsg__pb2.WaitUntilSettledRequest.SerializeToString, - nirfsg__pb2.WaitUntilSettledResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteArbWaveform(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveform', - nirfsg__pb2.WriteArbWaveformRequest.SerializeToString, - nirfsg__pb2.WriteArbWaveformResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteArbWaveformComplexF32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF32', - nirfsg__pb2.WriteArbWaveformComplexF32Request.SerializeToString, - nirfsg__pb2.WriteArbWaveformComplexF32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteArbWaveformComplexF64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF64', - nirfsg__pb2.WriteArbWaveformComplexF64Request.SerializeToString, - nirfsg__pb2.WriteArbWaveformComplexF64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteArbWaveformComplexI16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexI16', - nirfsg__pb2.WriteArbWaveformComplexI16Request.SerializeToString, - nirfsg__pb2.WriteArbWaveformComplexI16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteArbWaveformF32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformF32', - nirfsg__pb2.WriteArbWaveformF32Request.SerializeToString, - nirfsg__pb2.WriteArbWaveformF32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WriteScript(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteScript', - nirfsg__pb2.WriteScriptRequest.SerializeToString, - nirfsg__pb2.WriteScriptResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nirfsg/nirfsg/session.py b/generated/nirfsg/nirfsg/session.py deleted file mode 100644 index 210f8fbc18..0000000000 --- a/generated/nirfsg/nirfsg/session.py +++ /dev/null @@ -1,7416 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import nirfsg._attributes as _attributes -import nirfsg._converters as _converters -import nirfsg._library_interpreter as _library_interpreter -import nirfsg.enums as enums -import nirfsg.errors as errors - -import hightime -import nitclk - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Generation(object): - def __init__(self, session): - self._session = session - self._session._initiate() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-RFSG sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - absolute_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150225) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the sub-Sample Clock delay, in seconds, to apply to the I/Q waveform. Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** Seconds - - **Valid Values:** Plus or minus half of one Sample Clock period - - **Supported Devices:** PXIe-5820/5840/5841/5842 - - Note: - The resolution of this property is a method of the I/Q sample period at 15E(-6) times that sample period. - - - If this property is set, NI-TClk cannot perform any sub-Sample Clock adjustment. - ''' - ae_temperature = _attributes.AttributeViReal64(1150182) - '''Type: float - - Returns the amplitude extender module temperature in degrees Celsius. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXIe-5654 with PXIe-5696 - ''' - alc_control = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutomaticLevelControl, 1150195) - '''Type: enums.AutomaticLevelControl - - Enables or disables the automatic leveling control (ALC). - - PXIe-5654 with PXIe-5696: If this property is enabled, the ALC is closed (closed-loop mode) and allows for better amplitude accuracy and wider amplitude dynamic range. If this property is disabled, the ALC is open (open-loop mode), which is ideal when using modulation. Disabling the alc_control property also allows for NI-RFSG to perform an automatic power search. - - PXIe-5654: AutomaticLevelControl.DISABLE is the only supported value for this device. The PXIe-5654 does not support the ALC when used as a stand-alone device. - - **Default Value:** - - PXIe-5654: AutomaticLevelControl.DISABLE - - PXIe-5654 with PXIe-5696: AutomaticLevelControl.ENABLE - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Power Level Adjustment `_ - - `ALC Closed Loop Versus Open Loop `_ - - `Power Search `_ - - **Defined Values**: - - +-------------------------------+---------+------------------+ - | Name | Value | Description | - +===============================+=========+==================+ - | AutomaticLevelControl.DISABLE | 0 (0x0) | Disables ALC. | - +-------------------------------+---------+------------------+ - | AutomaticLevelControl.ENABLE | 1 (0x1) | Enables the ALC. | - +-------------------------------+---------+------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - allow_out_of_specification_user_settings = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AllowOutOfSpecificationUserSettings, 1150014) - '''Type: enums.AllowOutOfSpecificationUserSettings - - Enables or disables warnings or errors when you set the frequency, power, and bandwidth values beyond the limits of the NI-RFSG device specifications. When you enable the allow_out_of_specification_user_settings property, the driver does not report out-of-specification warnings or errors. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** AllowOutOfSpecificationUserSettings.DISABLE - - **Supported Devices:** PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------------------+---------+----------------------------------------------+ - | Name | Value | Description | - +=============================================+=========+==============================================+ - | AllowOutOfSpecificationUserSettings.DISABLE | 0 (0x0) | Disables out-of-specification user settings. | - +---------------------------------------------+---------+----------------------------------------------+ - | AllowOutOfSpecificationUserSettings.ENABLE | 1 (0x1) | Enables out-of-specification user settings. | - +---------------------------------------------+---------+----------------------------------------------+ - - Note: Accuracy cannot be guaranteed outside of device specifications, and results may vary by module. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - amplitude_settling = _attributes.AttributeViReal64(1150137) - '''Type: float - - Configures the amplitude settling accuracy in decibels. NI-RFSG waits until the RF power settles within the specified accuracy level after calling the _initiate method or wait_until_settled method or prior to advancing to next step if using RF list mode. - - Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. - - PXI/PXIe-5650/5651/5652: This property is for NI internal use only. - - **Units**: dB - - **Default Value:** - - PXIe-5654: 4 - - PXIe-5654 with PXIe-5696 (ALC disabled): 4 - - PXIe-5654 with PXIe-5696 (ALC enabled): 0.2 - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.5 - - **Valid Values:** - - PXIe-5654: 1.5, 2, 4 - - PXIe-5654 with PXIe-5696 (ALC disabled): 1.5, 2, 4 - - PXIe-5654 with PXIe-5696 (ALC enabled): 0.2, 0.5 - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.01 to 1 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Amplitude Settling Times `_ - ''' - amp_path = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AmpPath, 1150185) - '''Type: enums.AmpPath - - Specifies the amplification path to use. The low harmonic path provides greater second and third harmonic spurious response, and the high power path provides higher output power. - - NI-RFSG automatically sets the value of this property based on power and frequency settings. Setting this property overrides the value chosen by NI-RFSG. - - **Default Value:** AmpPath.LOW_HARMONIC - - **Supported Devices:** PXIe-5654 with PXIe-5696 - - **Related Topics** - - `Low Harmonic Path Versus High Power Path `_ - - **Defined Values**: - - +----------------------+----------------+-----------------------------------------------------------+ - | Name | Value | Description | - +======================+================+===========================================================+ - | AmpPath.HIGH_POWER | 16000 (0x3e80) | Sets the amplification path to use the high power path. | - +----------------------+----------------+-----------------------------------------------------------+ - | AmpPath.LOW_HARMONIC | 16001 (0x3e81) | Sets the amplification path to use the low harmonic path. | - +----------------------+----------------+-----------------------------------------------------------+ - - Note: Resetting this property reverts back to the default unset behavior. - ''' - analog_modulation_am_sensitivity = _attributes.AttributeViReal64(1150167) - '''Type: float - - Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. - - When using the PXIe-5654 with PXIe-5696, NI-RFSG may coerce AM sensitivity. Coercing the AM sensitivity prevents overpower conditions at the PXIe-5696 input. Read this property to determine the coerced value. - - **Default Value:** 100 - - **Valid Values:** 0 to 100 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Amplitude Modulation `_ - ''' - analog_modulation_fm_band = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationFmBand, 1150191) - '''Type: enums.AnalogModulationFmBand - - Specifies the analog modulation frequency modulation (FM) band to use. Wideband FM allows for modulating signals higher than 100kHz. Narrowband FM allows for modulating lower frequency signals. - - **Default Value:** AnalogModulationFmBand.WIDEBAND - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Modulation `_ - - **Defined Values**: - - +-----------------------------------+----------------+--------------------------------------------+ - | Name | Value | Description | - +===================================+================+============================================+ - | AnalogModulationFmBand.NARROWBAND | 17000 (0x4268) | Specifies narrowband frequency modulation. | - +-----------------------------------+----------------+--------------------------------------------+ - | AnalogModulationFmBand.WIDEBAND | 17001 (0x4269) | Specifies wideband frequency modulation. | - +-----------------------------------+----------------+--------------------------------------------+ - ''' - analog_modulation_fm_narrowband_integrator = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationFmNarrowbandIntegrator, 1150165) - '''Type: enums.AnalogModulationFmNarrowbandIntegrator - - Specifies the narrowband frequency modulation (FM) range to apply by sending the signal through an integrator. - - This property is valid only when you set the analog_modulation_type property to AnalogModulationType.FM and the analog_modulation_fm_band property to AnalogModulationFmBand.NARROWBAND. - - **Default Value:** AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Modulation `_ - - **Defined Values**: - - +----------------------------------------------------------------------------+----------------+---------------------------------------------+ - | Name | Value | Description | - +============================================================================+================+=============================================+ - | AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ | 18000 (0x4650) | Specifies a range from 100Â Hz to 1Â kHz. | - +----------------------------------------------------------------------------+----------------+---------------------------------------------+ - | AnalogModulationFmNarrowbandIntegrator.RANGE_10_KILOHERTZ_TO_100_KILOHERTZ | 18002 (0x4652) | Specifies a range from 10Â kHz to 100Â kHz. | - +----------------------------------------------------------------------------+----------------+---------------------------------------------+ - | AnalogModulationFmNarrowbandIntegrator.RANGE_1_KILOHERTZ_TO_10_KILOHERTZ | 18001 (0x4651) | Specifies a range from 1Â kHz to 10Â kHz. | - +----------------------------------------------------------------------------+----------------+---------------------------------------------+ - ''' - analog_modulation_fm_sensitivity = _attributes.AttributeViReal64(1150166) - '''Type: float - - Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. - - **Default Value:** 100 - - **Valid Values:** 0 to 100 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Modulation `_ - ''' - analog_modulation_pm_deviation = _attributes.AttributeViReal64(1150062) - '''Type: float - - Specifies the `deviation `_ to use in phase modulation, in degrees. - - **Units**: degrees (°) - - **Default Value:** 90° - - **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5653 - - **Related Topics** - - `Modulation Schemes `_ - ''' - analog_modulation_pm_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationPmMode, 1150192) - '''Type: enums.AnalogModulationPmMode - - Specifies the phase modulation (PM) mode to use. - - **Default Value:** AnalogModulationPmMode.LOW_PHASE_NOISE - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Phase Modulation `_ - - **Defined Values**: - - +----------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +========================================+================+===============================================================================================+ - | AnalogModulationPmMode.HIGH_DEVIATION | 19000 (0x4a38) | Specifies high deviation. High deviation comes at the expense of a higher phase noise. | - +----------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ - | AnalogModulationPmMode.LOW_PHASE_NOISE | 19001 (0x4a39) | Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. | - +----------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ - ''' - analog_modulation_pm_sensitivity = _attributes.AttributeViReal64(1150168) - '''Type: float - - Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. - - **Default Value:** 100 - - **Valid Values:** 0 to 100 - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Phase Modulation `_ - ''' - analog_modulation_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationType, 1150032) - '''Type: enums.AnalogModulationType - - Specifies the analog modulation format to use. - - **Default Value:** AnalogModulationType.NONE - - **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Modulation `_ - - `PXI/PXIe-5650/5651/5652 Modulation Schemes `_ - - `PXIe-5654/5654 with PXIe-5696 Modulation Schemes `_ - - **Defined Values**: - - +---------------------------+--------------+--------------------------------------------------+ - | Name | Value | Description | - +===========================+==============+==================================================+ - | AnalogModulationType.AM | 2002 (0x7d2) | Specifies that the analog modulation type is AM. | - +---------------------------+--------------+--------------------------------------------------+ - | AnalogModulationType.FM | 2000 (0x7d0) | Specifies that the analog modulation type is FM. | - +---------------------------+--------------+--------------------------------------------------+ - | AnalogModulationType.NONE | 0 (0x0) | Disables analog modulation. | - +---------------------------+--------------+--------------------------------------------------+ - | AnalogModulationType.PM | 2001 (0x7d1) | Specifies that the analog modulation type is PM. | - +---------------------------+--------------+--------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - arb_carrier_frequency = _attributes.AttributeViReal64(1150015) - '''Type: float - - **Units**: hertz (Hz) - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a carrier frequency with a waveform. - Indicates the carrier frequency generated by the arbitrary waveform generator (AWG) module. The specified carrier frequency is related to the RF output as shown in the following equations: - - +-------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Device | Equations | - +===============================================================================+===============================================================================================================================================================================================================================================================================================================+ - | PXI-5610, PXI-5670/5671, PXIe-5672 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency* – 25 MHz | - +-------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency*.Note that - the upconverter_center_frequency property and the arb_carrier_frequency property cannot be set at the same time. The only time the carrier frequency is nonzero on these devices is when in-band retuning is used. | - +-------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - Use this property to associate a carrier frequency with a waveform. - - - This property is read-only on the PXI-5670/5671 and PXIe-5672. - ''' - arb_digital_gain = _attributes.AttributeViReal64(1150204) - '''Type: float - - Specifies the digital gain, in decibels. The digital gain is applied to the waveform data after filtering. Use this property to adjust the output power of the device while keeping the analog path fixed. This may cause clipping, overflows, or quantization noise if used improperly. - - To set this property, the NI-RFSG device must be in the Configuration or Generation state. - - **Default Value:** 0 dB - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - arb_max_number_waveforms = _attributes.AttributeViInt32(1250454) - '''Type: int - - Returns the maximum number of waveforms the device can hold in memory. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - query_arb_waveform_capabilities - ''' - arb_onboard_sample_clock_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ArbOnboardSampleClockMode, 1150029) - '''Type: enums.ArbOnboardSampleClockMode - - Specifies the Sample Clock mode on the device. To set this property, the device must be in the Configuration state. - - PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: ArbOnboardSampleClockMode.DIVIDE_DOWN is the only supported value for this device. - - **Default Values:** - - PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: ArbOnboardSampleClockMode.DIVIDE_DOWN - - PXIe-5673/5673E: ArbOnboardSampleClockMode.HIGH_RESOLUTION - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Clocking Modes `_ - - **Valid Values**: - - +-------------------------------------------+--------------------------------------------------------------+ - | Name | Description | - +===========================================+==============================================================+ - | ArbOnboardSampleClockMode.HIGH_RESOLUTION | Sample rates are generated by a high-resolution clock. | - +-------------------------------------------+--------------------------------------------------------------+ - | ArbOnboardSampleClockMode.DIVIDE_DOWN | Sample rates are generated by dividing the source frequency. | - +-------------------------------------------+--------------------------------------------------------------+ - - Note: Using the high resolution clock may result in increased phase noise. - ''' - arb_pre_filter_gain = _attributes.AttributeViReal64(1150025) - '''Type: float - - Specifies the AWG prefilter gain. The prefilter gain is applied to the waveform data before any other signal processing. Reduce this value to prevent overflow in the AWG interpolation filters. Other gains on the NI-RFSG device are automatically adjusted to compensate for nonunity AWG prefilter gain. The PXI-5671, PXIe-5672 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXIe-5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842 can be in either the Configuration or the Generation state to use this property. PXIe-5860 can only be in the Configuration state to use this property. - - On the PXI-5671, this property applies only when the iq_rate property is set to a value less than or equal to 8.33MS/s. On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, this property is always applicable. - - **Units**: dB - - **Default Value:** 0dB - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - arb_sample_clock_rate = _attributes.AttributeViReal64(1150031) - '''Type: float - - Returns the rate of the Sample Clock on the device. - - **Units**: hertz (Hz) - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - arb_sample_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ArbSampleClockSource, 1150030) - '''Type: enums.ArbSampleClockSource - - Specifies the Sample Clock source for the device. To set this property, the NI-RFSG device must be in the Configuration state. - - PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: OnboardClock is the only supported value for this device. - - **Default Value:** OnboardClock - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Timing Configurations `_ - - **Possible Values**: - - +----------------+---------------------------------------------------------------+ - | Possible Value | Description | - +================+===============================================================+ - | "ClkIn" | Uses the external clock as the Sample Clock source. | - +----------------+---------------------------------------------------------------+ - | "OnboardClock" | Uses the AWG module onboard clock as the Sample Clock source. | - +----------------+---------------------------------------------------------------+ - ''' - arb_selected_waveform = _attributes.AttributeViString(1250451) - '''Type: str - - Specifies the waveform in onboard memory to generate upon calling the Init method when the generation_mode property is set to GenerationMode.ARB_WAVEFORM. The arb_selected_waveform property is ignored when the generation_mode property is set to GenerationMode.SCRIPT or GenerationMode.CW. To set the arb_selected_waveform property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - **High-Level Methods**: - - - select_arb_waveform - ''' - arb_temperature = _attributes.AttributeViReal64(1150068) - '''Type: float - - Returns the AWG module temperature in degrees Celsius. - - PXIe-5820/5840/5841/5842: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 - ''' - arb_waveform_quantum = _attributes.AttributeViInt32(1250455) - '''Type: int - - Returns the waveform quantum for the device. The number of samples in a waveform must be an integer multiple of the waveform quantum. The other restrictions on the length of the waveform are the arb_waveform_size_min and arb_waveform_size_max arbitrary waveform sizes. - - PXI-5671, PXIe-5672: The value of this property depends on the I/Q rate. Set the iq_rate property before reading this property. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - query_arb_waveform_capabilities - ''' - arb_waveform_repeat_count = _attributes.AttributeViInt32(1150158) - '''Type: int - - Specifies the repeat count of a waveform when you set the arb_waveform_repeat_count_is_finite property to True. This property is valid only when you set the generation_mode property to GenerationMode.ARB_WAVEFORM. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** 1 - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - arb_waveform_repeat_count_is_finite = _attributes.AttributeViBoolean(1150157) - '''Type: bool - - Specifies the repetition mode of a waveform when you set the generation_mode property to GenerationMode.ARB_WAVEFORM. If you set this property to True, the number of repetitions is determined by the arb_waveform_repeat_count property. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------+-------------------------------------------------------------------+ - | Value | Description | - +=======+===================================================================+ - | True | Repeats the waveform a finite number of times. | - +-------+-------------------------------------------------------------------+ - | False | Repeats the waveform continuously until you abort the generation. | - +-------+-------------------------------------------------------------------+ - ''' - arb_waveform_size_max = _attributes.AttributeViInt32(1250457) - '''Type: int - - Returns the size of the largest waveform that is allowed. - - To read this property, the NI-RFSG device must be in the Configuration state. - - For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the iq_rate before reading this property. For the PXIe-5673/5673E, the maximum waveform size is reduced to account for the amount of device memory currently used. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - query_arb_waveform_capabilities - - Note: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. - ''' - arb_waveform_size_min = _attributes.AttributeViInt32(1250456) - '''Type: int - - Returns the smallest allowable waveform size. For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the iq_rate property before reading this property. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **High-Level Methods**: - - - query_arb_waveform_capabilities - ''' - arb_waveform_software_scaling_factor = _attributes.AttributeViReal64(1150052) - '''Type: float - - Specifies how much to scale the data before writing it with the WriteArbWaveform method. The resulting waveform must be smaller than 1.0 in complex magnitude. This property is supported only if you set the power_level_type property to PowerLevelType.PEAK. - - **Default Value:** 1.0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Spurious Performance `_ - ''' - attenuator_setting = _attributes.AttributeViReal64(1150173) - '''Type: float - - Specifies the level of attenuation in the attenuator path. Setting this property overrides the value chosen by NI-RFSG. Not all power levels are achievable if you set this property. - - **Units**: dB - - **Valid Values**: 0dB to 110dB in steps of 10 - - **Supported Devices:** PXIe-5654 with PXIe-5696 - - Note: Resetting this property reverts back to the default unset behavior. - ''' - automatic_thermal_correction = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutomaticThermalCorrection, 1150008) - '''Type: enums.AutomaticThermalCorrection - - Enables or disables automatic thermal correction. When this property is enabled, changes to settings cause NI-RFSG to check whether the device temperature has changed and adjusts the settings as needed. When this property is disabled, you must explicitly call the perform_thermal_correction method to adjust the device for temperature changes. - - **Default Value:** AutomaticThermalCorrection.ENABLE - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Temperature Monitoring `_ - - `Settling Times `_ - - **Defined Values**: - - +------------------------------------+---------+-------------------------------------------+ - | Name | Value | Description | - +====================================+=========+===========================================+ - | AutomaticThermalCorrection.DISABLE | 0 (0x0) | Automatic thermal correction is disabled. | - +------------------------------------+---------+-------------------------------------------+ - | AutomaticThermalCorrection.ENABLE | 1 (0x1) | Automatic thermal correction is enabled. | - +------------------------------------+---------+-------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - auto_power_search = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutomaticPowerSearch, 1150196) - '''Type: enums.AutomaticPowerSearch - - Enables or disables automatic power search. When this property is enabled, a power search performs after the device is initiated, after output power is enabled, or when the frequency or power level changes while the device is generating. When this property is disabled, NI-RFSG does not perform a power search unless you call the perform_power_search method. - - This property is ignored when the alc_control property is enabled. - - PXIe-5654: AutomaticPowerSearch.DISABLE is the only supported value for this device. - - **Default Value:** - - PXIe-5654: AutomaticPowerSearch.DISABLE - - PXIe-5654 with PXIe-5696: AutomaticPowerSearch.ENABLE - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Power Search `_ - - **Defined Values**: - - +------------------------------+---------+----------------------------------+ - | Name | Value | Description | - +==============================+=========+==================================+ - | AutomaticPowerSearch.DISABLE | 0 (0x0) | Disables automatic power search. | - +------------------------------+---------+----------------------------------+ - | AutomaticPowerSearch.ENABLE | 1 (0x1) | Enables automatic power search. | - +------------------------------+---------+----------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - available_paths = _attributes.AttributeViStringCommaSeparated(1150312) - '''Type: list of str - - Returns a list of the configurable paths available for use based on your instrument configuration. - ''' - available_ports = _attributes.AttributeViStringCommaSeparated(1150249) - '''Type: list of str - - Returns a list of the ports available for use based on your instrument configuration. - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - configuration_settled_event_terminal_name = _attributes.AttributeViString(1150194) - '''Type: str - - Returns the name of the fully qualified signal name as a string. - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Default Values**: - - PXIe-5654/5654 with PXIe-5696: /*ModuleName*/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ConfigurationSettledEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - ''' - correction_temperature = _attributes.AttributeViReal64(1150104) - '''Type: float - - Specifies the temperature, in degrees Celsius, to use for adjusting the device settings to correct for temperature changes. If you set this property, NI-RFSG uses the value you specify and therefore no longer uses the actual device temperature as the correction temperature. If you do not set this property, NI-RFSG checks the current device temperature in the Committed state and automatically sets the value of this property. - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: This property is read only. - - **Units**: Degrees Celsius - - **Supported Devices**: PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - Resetting this property reverts back to the default unset behavior. - - - Use this property only when your application requires the same settings to be used every time, regardless of the temperature variation. In these cases, it is best to ensure that the temperature does not vary too much. - ''' - deembedding_compensation_gain = _attributes.AttributeViReal64(1150289) - '''Type: float - - Returns the de-embedding gain applied to compensate for the mismatch on the specified port. If de-embedding is enabled, NI-RFSG uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Tip: - This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_compensation_gain` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.deembedding_compensation_gain` - ''' - deembedding_selected_table = _attributes.AttributeViString(1150253) - '''Type: str - - Selects the de-embedding table to apply to the measurements on the specified port. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the port to configure for de-embedding. - - If de-embedding is enabled, NI-RFSG uses the specified table to remove the effects of the external network between the instrument and the DUT. - - Use the create deembedding sparameter table array method to create tables. - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - Tip: - This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.deembedding_selected_table` - ''' - deembedding_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DeembeddingType, 1150252) - '''Type: enums.DeembeddingType - - Specifies the type of de-embedding to apply to measurements on the specified port. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the port to configure for de-embedding. - - If you set this property to any value besides DeembeddingType.NONE, NI-RFSG adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. - - **Default Value**: DeembeddingType.SCALAR - - **Valid Values for PXIe-5830/5832/5840/5841** : DeembeddingType.NONE or DeembeddingType.SCALAR - - **Valid Values for PXIe-5842/5860** : DeembeddingType.NONE or DeembeddingType.SCALAR or DeembeddingType.AMPLITUDE_FLATNESS or DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS - - **Valid Values for PXIe-5831** DeembeddingType.NONE, DeembeddingType.SCALAR, or DeembeddingType.VECTOR. DeembeddingType.VECTOR is only supported for TRX Ports in a Semiconductor Test System (STS). - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | Name | Value | Description | - +==============================================+================+===================================================================================+ - | DeembeddingType.NONE | 25000 (0x61a8) | De-embedding is not applied to the measurement. | - +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | DeembeddingType.SCALAR | 25001 (0x61a9) | De-embeds the measurement using only the gain term. | - +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | DeembeddingType.VECTOR | 25002 (0x61aa) | De-embeds the measurement using the gain term and the reflection term. | - +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | DeembeddingType.AMPLITUDE_FLATNESS | 25003 (0x61ab) | De-embeds the measurement using wideband amplitude flatness correction. | - +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - | DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS | 25004 (0x61ac) | De-embeds the measurement using wideband amplitude and phase flatness correction. | - +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container ports to specify a subset. - - Example: :py:attr:`my_session.ports[ ... ].deembedding_type` - - To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.deembedding_type` - ''' - device_instantaneous_bandwidth = _attributes.AttributeViReal64(1150226) - '''Type: float - - Specifies the bandwidth of the device. The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. - - The signal_bandwidth centered at the frequency must fit within the device instantaneous bandwidth, which is centered at the upconverter_center_frequency. - - **Units**: Hz - - **Default Value**: N/A - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - ''' - device_temperature = _attributes.AttributeViReal64(1150017) - '''Type: float - - Returns the device temperature. If the NI-RFSG session is controlling multiple devices, this property returns the temperature of the primary NI RF device. The NI-RFSG session is opened using the primary RF device name. - - Serial signals between the sensor and the system control unit could modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. - - PXIe-5644/5645/5646, PXIe-5820/5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - PXIe-5830/5831/5832: To use this property, you must first set the channelName parameter of the _set_attribute_vi_real64 method to using the appropriate string for your instrument configuration. Setting the _set_attribute_vi_real64 method is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Temperature Monitoring `_ - - `Thermal Shutdown `_ - - +----------------------------+--------------------------+-------------------------+ - | Hardware Module | TRX Port Type | Active Channel String | - +============================+==========================+=========================+ - | PXIe-3621/3622 | — | if or "" (empty string) | - +----------------------------+--------------------------+-------------------------+ - | PXIe-5820 | — | fpga | - +----------------------------+--------------------------+-------------------------+ - | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | - +----------------------------+--------------------------+-------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | - +----------------------------+--------------------------+-------------------------+ - | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch1 | - +----------------------------+--------------------------+-------------------------+ - | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | - +----------------------------+--------------------------+-------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | - +----------------------------+--------------------------+-------------------------+ - | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch1 | - +----------------------------+--------------------------+-------------------------+ - - Tip: - This property can be set/get on specific device_temperatures within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. - - Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` - - To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.device_temperature` - ''' - digital_edge_script_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalEdgeEdge, 1150021) - '''Type: enums.ScriptTriggerDigitalEdgeEdge - - Specifies the active edge for the Script Trigger. This property is used when the script_trigger_type property is set to digital edge. To set the digital_edge_script_trigger_edge property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** ScriptTriggerDigitalEdgeEdge.RISING - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Edge Trigger `_ - - **High-Level Methods**: - - - configure_digital_edge_script_trigger - - **Defined Values**: - - +--------------------------------------+---------+-------------------------------------------------------------------------------+ - | Name | Value | Description | - +======================================+=========+===============================================================================+ - | ScriptTriggerDigitalEdgeEdge.FALLING | 1 (0x1) | Asserts the trigger when the signal transitions from high level to low level. | - +--------------------------------------+---------+-------------------------------------------------------------------------------+ - | ScriptTriggerDigitalEdgeEdge.RISING | 0 (0x0) | Asserts the trigger when the signal transitions from low level to high level. | - +--------------------------------------+---------+-------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_edge` - ''' - digital_edge_script_trigger_source = _attributes.AttributeViString(1150020) - '''Type: str - - Specifies the source terminal for the Script Trigger. This property is used when the script_trigger_type property is set to digital edge. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **High-Level Methods**: - - - configure_digital_edge_script_trigger - - **Possible Values**: - - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=========================================================================================================================================+ - | "PFI0" | The trigger is received on PFI 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The trigger is received on PFI 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI2" | The trigger is received on PFI 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI3" | The trigger is received on PFI 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_edge_script_trigger_source` - ''' - digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerDigitalEdgeEdge, 1250459) - '''Type: enums.StartTriggerDigitalEdgeEdge - - Specifies the active edge for the Start Trigger. This property is used when the start_trigger_type property is set to digital edge. To set the digital_edge_start_trigger_edge property, the NI-RFSG device must be in the Configuration state. - - PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - **Default Value:** StartTriggerDigitalEdgeEdge.RISING - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Digital Edge Trigger `_ - - **High-Level Methods**: - - - configure_digital_edge_start_trigger - - **Defined Values**: - - +-------------------------------------+---------+------------------------------------------------------------------+ - | Name | Value | Description | - +=====================================+=========+==================================================================+ - | StartTriggerDigitalEdgeEdge.FALLING | 1 (0x1) | Occurs when the signal transitions from high level to low level. | - +-------------------------------------+---------+------------------------------------------------------------------+ - | StartTriggerDigitalEdgeEdge.RISING | 0 (0x0) | Occurs when the signal transitions from low level to high level. | - +-------------------------------------+---------+------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_edge_start_trigger_source = _attributes.AttributeViString(1150002) - '''Type: str - - Specifies the source terminal for the Start Trigger. This property is used when the start_trigger_type property is set to digital edge. The digital_edge_start_trigger_source property is not case-sensitive. To set the digital_edge_start_trigger_source property, the NI-RFSG device must be in the Configuration state. - - PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **High-Level Methods**: - - - configure_digital_edge_start_trigger - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+========================================================================================================================================+ - | "PFI0" | The trigger is received on PFI 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The trigger is received on PFI 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI2" | The trigger is received on PFI 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI3" | The trigger is received on PFI 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarB" | The trigger is received on the PXI DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "TrigIn" | The trigger is received on the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - ''' - digital_equalization_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEqualizationEnabled, 1150012) - '''Type: enums.DigitalEqualizationEnabled - - When this property is enabled, NI-RFSG equalizes the waveform data to correct for variations in the response of the NI-RFSG device. Enabling digital equalization improves the modulation error rates (MER) and error vector magnitude (EVM) for signals with large bandwidths (>500 kHz), but it increases tuning times. - - On the PXI-5670/5671, equalization is performed in the software, so tuning time is increased. On the PXIe-5672, equalization is performed in the hardware so that there is no compromise in performance. - - This property applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT. To set this property, the NI-RFSG device must be in the Configuration state. - - PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: DigitalEqualizationEnabled.ENABLE is the only supported value for this device. - - **Default Value:** - - PXI-5670/5671: DigitalEqualizationEnabled.DISABLE - - PXIe-5644/5645/5646, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: DigitalEqualizationEnabled.ENABLE - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Response and Software Equalization `_—Refer to this topic for more information about equalization performed in software. - - `Frequency Tuning Times `_ - - **Defined Values**: - - +------------------------------------+---------+-----------------------+ - | Name | Value | Description | - +====================================+=========+=======================+ - | DigitalEqualizationEnabled.DISABLE | 0 (0x0) | Filter is not applied | - +------------------------------------+---------+-----------------------+ - | DigitalEqualizationEnabled.ENABLE | 1 (0x1) | Filter is applied. | - +------------------------------------+---------+-----------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - digital_level_script_trigger_active_level = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalLevelActiveLevel, 1150055) - '''Type: enums.ScriptTriggerDigitalLevelActiveLevel - - Specifies the active level for the Script Trigger. This property is used when the script_trigger_type property is set to ScriptTriggerType.DIGITAL_LEVEL. - - **Default Value:** ScriptTriggerDigitalLevelActiveLevel.HIGH - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Level Trigger `_ - - **Defined Values**: - - +-------------------------------------------+---------------+--------------------------------------------------+ - | Name | Value | Description | - +===========================================+===============+==================================================+ - | ScriptTriggerDigitalLevelActiveLevel.HIGH | 9000 (0x2328) | Trigger when the digital trigger signal is high. | - +-------------------------------------------+---------------+--------------------------------------------------+ - | ScriptTriggerDigitalLevelActiveLevel.LOW | 9001 (0x2329) | Trigger when the digital trigger signal is low. | - +-------------------------------------------+---------------+--------------------------------------------------+ - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_active_level` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_level_script_trigger_active_level` - ''' - digital_level_script_trigger_source = _attributes.AttributeViString(1150054) - '''Type: str - - Specifies the source terminal for the Script Trigger. This property is used when the script_trigger_type property is set to ScriptTriggerType.DIGITAL_LEVEL. The digital_level_script_trigger_source property is not case-sensitive. - - To set the digital_level_script_trigger_source property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=========================================================================================================================================+ - | "PFI0" | The trigger is received on PFI 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The trigger is received on PFI 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI2" | The trigger is received on PFI 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI3" | The trigger is received on PFI 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_source` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.digital_level_script_trigger_source` - ''' - direct_download = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DirectDownload, 1150042) - '''Type: enums.DirectDownload - - Specifies whether the WriteArbWaveform method immediately writes waveforms to the device or copies the waveform to host memory for later download. NI-RFSG reads and validates this property when an arbitrary waveform is first allocated. - - For the PXI-5670, direct download is always disabled. For all other devices, direct download is always enabled. - - PXI-5671: To increase performance when using large waveforms, enable direct download. To maximize reconfigurability, disable direct download. - - Perform the following steps to enable direct download: - - 1. Set the I/Q rate to less than or equal to 8.33MS/s with the iq_rate property. - - 2. Set the power_level_type property to PowerLevelType.PEAK. - - 3. Disable the iq_swap_enabled property. - - 4. Disable the digital_equalization_enabled property. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +============================+===========+=========================================================================================================================================+ - | DirectDownload.DISABLE | 0 (0x0) | The RF In local oscillator signal is not present at the front panel LO OUT connector. | - +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | DirectDownload.ENABLE | 1 (0x1) | The RF In local oscillator signal is present at the front panel LO OUT connector. | - +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | DirectDownload.UNSPECIFIED | -2 (-0x2) | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | - +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - done_event_terminal_name = _attributes.AttributeViString(1150113) - '''Type: str - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/DoneEvent, where *AWGName* is the name of your associated AWG module in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841: /*ModuleName*/ao/0/DoneEvent, where *ModuleName* is the name of your device in MAX. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - events_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150154) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the delay, in seconds, applied to the Started Event, Done Event, and all Marker Events with respect to the analog output of the RF signal generator. To set this property, the NI-RFSG device must be in the Configuration or Generation state. - - By default, markers and events are delayed to align with the waveform data generated from the device. This property adds an additional delay to markers and events. Use this property to adjust the time delay between events and the corresponding data. - - **Units:** Seconds - - **Valid Values:** - - PXIe-5644/5645: -1.217 μs to 67.050 μs - - PXIe-5646: -0.896 μs to 64.640 μs - - PXIe-5820/5830/5831/5832/5840/5841/5842: 0 μs to 3.276 μs - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Events `_ - - Note: If you decrease the event delay during generation, some markers may be dropped. - ''' - exported_configuration_settled_event_output_terminal = _attributes.AttributeViString(1150129) - '''Type: str - - Specifies the destination terminal for exporting the Configuration Settled event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+====================================================================================================================+ - | "" | The signal is not exported. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5840/5841/5842. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - | "TrigOut" | TRIG IN/OUT terminal. | - +----------------+--------------------------------------------------------------------------------------------------------------------+ - ''' - exported_done_event_output_terminal = _attributes.AttributeViString(1150063) - '''Type: str - - Specifies the destination terminal for exporting the Done event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Posible Value | Description | - +===============+=================================================================================================================================+ - | "" | The signal is not exported. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +---------------+---------------------------------------------------------------------------------------------------------------------------------+ - ''' - exported_marker_event_output_terminal = _attributes.AttributeViString(1150064) - '''Type: str - - Specifies the destination terminal for exporting the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Marker Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].exported_marker_event_output_terminal` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.exported_marker_event_output_terminal` - ''' - exported_pulse_modulation_event_active_level = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalLevelActiveLevel, 1150310) - '''Type: enums.ScriptTriggerDigitalLevelActiveLevel - - Specifies the active level of the exported Pulse Modulation Event. When `property pulse modulation enabled` is Enabled, `pulse modulation active level` is `active high`, `exported pulse modulation event output terminal` is `PulseOut`, and this property is `active high`, then the Pulse Modulation Event will transition from Low to High after the the Pulse In signal is set to logic high, and the RF Output has settled. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** ScriptTriggerDigitalLevelActiveLevel.HIGH - - **Supported Devices:** PXIe-5842 - - **Defined Values**: - - +-------------------------------------------+---------------+--------------------------------------------------+ - | Name | Value | Description | - +===========================================+===============+==================================================+ - | ScriptTriggerDigitalLevelActiveLevel.HIGH | 9000 (0x2328) | Trigger when the digital trigger signal is high. | - +-------------------------------------------+---------------+--------------------------------------------------+ - | ScriptTriggerDigitalLevelActiveLevel.LOW | 9001 (0x2329) | Trigger when the digital trigger signal is low. | - +-------------------------------------------+---------------+--------------------------------------------------+ - ''' - exported_pulse_modulation_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.PulseModulationOutputTerminal, 1150309) - '''Type: enums.PulseModulationOutputTerminal - - Specifies the destination terminal for exporting the Pulse Modulation Event. The Pulse Modulation Event tracks the RF Envelope when Pulse Modulation is Enabled. If this property is set to a value other than `do not export str`, calling NI-RFSG Commit will cause the output terminal to be pulled to the logic level that is the inverse of `exported pulse modulation event active level`. You can tri-state this terminal by setting this property to `do not export str` or by calling `niRFSG Reset`. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** PulseOut - - **Supported Devices:** PXIe-5842 - - **Possible Values**: - - +----------------+---------------------------------------------------------------------+ - | Possible Value | Description | - +================+=====================================================================+ - | "" | Pulse modulation video signal is not exported. | - +----------------+---------------------------------------------------------------------+ - | "PulseOut" | Export the pulse modulation video signal on the pulse out terminal. | - +----------------+---------------------------------------------------------------------+ - ''' - exported_ref_clock_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockExportOutputTerminal, 1150053) - '''Type: enums.ReferenceClockExportOutputTerminal - - Specifies the destination terminal for exporting the Reference Clock on the RF signal generators. To set this property, the NI-RFSG device must be in the Configuration state. - - **Possible Values**: - - Possible Value: Description - - "" :The Reference Clock signal is not exported. - - "RefOut" :Exports the Reference Clock signal to the REF OUT connector of the device. - - "RefOut2" :Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. - - "ClkOut" :Exports the Reference Clock signal to the CLK OUT connector of the device. - - **Default Value:** '""' - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Interconnecting Multiple NI 5673E Modules `_ - - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | Supported devices | - +================+============================================================================================+=======================================================================================================================================================================+ - | "ClkOut" | Exports the Reference Clock signal to the CLK OUT connector of the device. | Supported on PXIe-5673, 5673E | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "" | The Reference Clock signal is not exported. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5652, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5652 (See Note) | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefOut" | Exports the Reference Clock signal to the REF OUT connector of the device. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5653, 5653, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5653, | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefOut2" | Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. | Supported on PXIe-5650/5651/5652, 5654, 5673E, PXIe-5654 with PXIe-5696 | - +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: The RefOut2 output terminal value is valid for only the PXIe-5650/5651/5652, not the PXI-5650/5651/5652. - ''' - exported_ref_clock_rate = _attributes.AttributeViReal64(1150292) - '''Type: float - - Specifies the Reference Clock Rate, in Hz, of the signal sent to the Reference Clock Export Output Terminal. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** 10MHz - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------+-------------------------------------+ - | Value | Description | - +==============+=====================================+ - | 10000000.0 | Uses a 10MHz Reference Clock rate. | - +--------------+-------------------------------------+ - | 100000000.0 | Uses a 100MHz Reference Clock rate. | - +--------------+-------------------------------------+ - | 1000000000.0 | Uses a 1GHz Reference Clock rate. | - +--------------+-------------------------------------+ - ''' - exported_script_trigger_output_terminal = _attributes.AttributeViString(1150022) - '''Type: str - - Specifies the destination terminal for exporting the Script Trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ —Refer to this topic for information about trigger delay. - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+=================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+---------------------------------------------------------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.exported_script_trigger_output_terminal` - ''' - exported_started_event_output_terminal = _attributes.AttributeViString(1150065) - '''Type: str - - Specifies the destination terminal for exporting the Started event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+========================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - ''' - exported_start_trigger_output_terminal = _attributes.AttributeViString(1150003) - '''Type: str - - Specifies the destination terminal for exporting the Start Trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `PFI Lines `_ - - `PXI Trigger Lines `_ - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+========================================================================================================================================+ - | "" | The signal is not exported. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI1" | The signal is exported to the PFI 1 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI4" | The signal is exported to the PFI 4 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PFI5" | The signal is exported to the PFI 5 connector. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "TrigOut" | The signal is exported to the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | - +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ - ''' - external_calibration_recommended_interval = _attributes.AttributeViInt32TimeDeltaMonths(1150076) - '''Type: hightime.timedelta - - Returns the recommended interval between each external calibration of the device. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - external_calibration_temperature = _attributes.AttributeViReal64(1150077) - '''Type: float - - Returns the temperature of the device at the time of the last external calibration. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E - ''' - external_gain = _attributes.AttributeViReal64(1150085) - '''Type: float - - Specifies the external amplification or attenuation, if any, between the RF signal generator and the device under test. - - Positive values for this property represent amplification, and negative values for this property represent attenuation. - - **Valid Values:** -INF dB to +INF dB - - **Default Value:** 0dB - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - Setting this property adjusts the actual device output power to compensate for any amplification or attenuation between the RF signal generator and the device under test. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - ''' - fast_tuning_option = _attributes.AttributeViBoolean(1150188) - '''Type: bool - - Returns whether the NI RF signal generator has the fast tuning option available. - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696 - - **Related Topics** - - `Frequency Tuning Times for 5654 `_ - - **Defined Values**: - - +-------+------------------------------------------------------------+ - | Value | Description | - +=======+============================================================+ - | True | The RF signal generator has the fast 100 µs tuning option. | - +-------+------------------------------------------------------------+ - | False | The RF signal generator has the 1 ms tuning option. | - +-------+------------------------------------------------------------+ - ''' - fixed_group_delay_across_ports = _attributes.AttributeViStringCommaSeparated(1150271) - '''Type: list of str - - Specifies a list of ports for which to fix the group delay. - - - **Supported Devices:** PXIe-5831/5832 - ''' - fpga_bitfile_path = _attributes.AttributeViString(1150186) - '''Type: str - - Returns a string containing the path to the location of the current NI-RFSG instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the __init__ method. - - NI-RFSG instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the vector signal transceiver FPGA while maintaining the functionality of the NI-RFSG instrument driver. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver FPGA Extensions `_ - ''' - fpga_target_name = _attributes.AttributeViString(1150251) - '''Type: str - - Returns a string that contains the name of the FPGA target being used. This name can be used with the RIO open session to open a reference to the FPGA. - - This property is channel dependent if multiple FPGA targets are supported. - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - fpga_temperature = _attributes.AttributeViReal64(1150211) - '''Type: float - - Returns the FPGA temperature in degrees Celsius. - - Serial signals between the sensor and the system control unit can potentially modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: If you query this property during RF list mode, list steps may take longer to complete during list execution. - ''' - frequency = _attributes.AttributeViReal64(1250001) - '''Type: float - - Specifies the frequency of the generated RF signal. For arbitrary waveform generation, this property specifies the center frequency of the signal. - - The PXI-5670/5671, PXIe-5672, PXIe-5820, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. - - **Units**: hertz (Hz) - - **Defined Values**: - Refer to the specifications document for your device allowable frequency settings. - - **Default Value:** - - PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E: 100MHz - - PXIe-5653: 4GHz - - PXIe-5820: 0Hz - - PXIe-5830/5831/5832: 6.5 GHz - - PXIe-5840/5841/5860, PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options): 1GHz - - PXIe-5842 (4 GHz bandwidth option) using the Standard personality: 1GHz - - PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: 6.5GHz - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - **High-Level Methods**: - - - ConfigureRf - - Note: For the PXIe-5645, this property is ignored if you are using the I/Q ports. - ''' - frequency_settling = _attributes.AttributeViReal64(1150083) - '''Type: float - - Specifies the frequency settling time. Interpretation of this value depends on the frequency_settling_units property. - - **Valid Values:** - - The valid values for this property depend on the frequency_settling_units property. - - - - **Default Value**: 1.0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Settling Times `_ - - `Events `_ - ''' - frequency_settling_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FrequencySettlingUnits, 1150082) - '''Type: enums.FrequencySettlingUnits - - Specifies the interpretation of the value passed to the frequency_settling property. - - PXIe-5650/5651/5652/5653, PXIe-5673E: When the ACTIVE_CONFIGURATION_LIST property is set to a valid list name, the frequency_settling_units property supports only FrequencySettlingUnits.TIME_AFTER_IO as a valid value. - - PXIe-5654/5654 with PXIe-5696: The frequency_settling_units property supports only FrequencySettlingUnits.TIME_AFTER_IO and FrequencySettlingUnits.PPM as valid values. - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Default Value**: FrequencySettlingUnits.PPM - - **Related Topics** - - `Events `_ - - **Defined Values**: - - +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | Name | Description | - +========================================+=================================================================================================================+ - | FrequencySettlingUnits.TIME_AFTER_LOCK | Specifies the time to wait after the frequency PLL locks. | - +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | FrequencySettlingUnits.TIME_AFTER_IO | Specifies the time to wait after all writes occur to change the frequency. | - +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - | FrequencySettlingUnits.PPM | Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). | - +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ - - Note: If you set this property to FrequencySettlingUnits.TIME_AFTER_IO, the definition of settled for the Configuration Settled event changes. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - ''' - generation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.GenerationMode, 1150018) - '''Type: enums.GenerationMode - - Specifies whether to generate a continuous wave (CW) signal, the arbitrary waveform specified by the arb_selected_waveform property, or the script specified by the selected_script property, upon calling the _initiate method. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** GenerationMode.CW - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696 (CW support only), PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - `Scripting Instructions `_—Refer to this topic for more information about scripting. - - **Defined Values**: - - +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +=============================+==============+========================================================================================================================+ - | GenerationMode.ARB_WAVEFORM | 1001 (0x3e9) | Configures the RF signal generator to generate the arbitrary waveform specified by the arb_selected_waveform property. | - +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ - | GenerationMode.CW | 1000 (0x3e8) | Configures the RF signal generator to generate a CW signal. | - +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ - | GenerationMode.SCRIPT | 1002 (0x3ea) | Configures the RF signal generator to generate arbitrary waveforms as directed by the selected_script property.. | - +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ - ''' - group_capabilities = _attributes.AttributeViStringCommaSeparated(1050401) - '''Type: list of str - - Returns a list of class-extension groups that NI-RFSG implements. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - host_dma_buffer_size = _attributes.AttributeViInt64(1150239) - '''Type: int - - Specifies the size of the DMA buffer in computer memory, in bytes. To set this property, the NI-RFSG device must be in the Configuration state. - - A sufficiently large host DMA buffer improves performance by allowing large writes to be transferred more efficiently. - - **Units:** bytes - - **Default Value:** 8MB - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - Returns a string that contains the firmware revision information for the NI-RFSG device you are currently using. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - Returns a string that contains the name of the manufacturer of the NI-RFSG device you are currently using. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - Returns a string that contains the model number or name of the NI-RFSG device that you are currently using. For drivers that support more than one device, this property returns a comma-separated list of supported devices. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - interpolation_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150153) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the delay, in seconds, to apply to the I/Q waveform. To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** Seconds - - **Valid Values:** Plus or minus half of one I/Q sample period - - **Supported Devices:** PXIe-5644/5645/5646 - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Returns a string that contains the resource name NI-RFSG uses to identify the physical device. If you initialize NI-RFSG with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. If you initialize NI-RFSG with the resource name, this property contains that value. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - iq_gain_imbalance = _attributes.AttributeViReal64(1150072) - '''Type: float - - Specifies the gain imbalance of the I/Q modulator (I versus Q). - - Gain imbalance is calculated with the following equation: - - **Units**: dB - - **Valid Values:**-6dB to 6dB - - **Default Value:** 0dB - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Impairment Calibration `_ - - `Spurious Performance `_ - ''' - iq_impairment_enabled = _attributes.AttributeViBoolean(1150069) - '''Type: bool - - Enables or disables I/Q impairment. The iq_i_offset, iq_q_offset, iq_gain_imbalance, and iq_skew properties are ignored when the iq_impairment_enabled property is disabled. - - **Default Value:** True - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------+-----------------------------+ - | Value | Description | - +=======+=============================+ - | True | I/Q impairment is enabled. | - +-------+-----------------------------+ - | False | I/Q impairment is disabled. | - +-------+-----------------------------+ - ''' - iq_i_offset = _attributes.AttributeViReal64(1150070) - '''Type: float - - When using a National Instruments AWG module or vector signal transceiver (VST), this property specifies the I-signal DC offset. Units are either percent (%) or volts (V), depending on the iq_offset_units property setting. - - PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), this property is read-only and indicates the I/Q modulator I-offset. Units are volts, as specified by the iq_offset_units property. - - **Valid Values:**-100 to 100% or -0.2V to 0.2V - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Impairment Calibration `_ - ''' - iq_offset_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OffsetUnits, 1150081) - '''Type: enums.OffsetUnits - - Specifies the units of the iq_i_offset property and iq_q_offset property. Offset units are either percent or volts. - - The AWG or VST offset is the specified percentage of the AWG or VST peak power level when the iq_offset_units property is set to OffsetUnits.PERCENT. Given perfect carrier leakage suppression, the following equation is satisfied - - - or equivalently - - If the iq_i_offset property is set to 100%, iq_q_offset property is set to 0%, and power_level property set to 0 dBm, the desired RF signal is at 0 dBm and the carrier leakage is also at 0 dBm. - - The AWG or VST peak power level changes when settings change in other properties such as the power_level, frequency, iq_skew, iq_gain_imbalance and arb_pre_filter_gain properties. When the iq_offset_units property is set to OffsetUnits.PERCENT, the actual AWG or VST offset changes as the AWG or VST peak power level changes to satisfy the preceding equations. These changes are useful if you are intentionally adding carrier leakage to test the tolerance of a receiver. When the iq_offset_units property is set to OffsetUnits.PERCENT, the carrier leakage, in dBc, remains at a consistent level. - - If you are trying to eliminate residual carrier leakage due to calibration inaccuracies or drift, set the iq_offset_units property to OffsetUnits.VOLTS. Offset correction voltage is applied to the I/Q modulator or VST, regardless of changes to the AWG or VST peak power level. - - **Default Value**: OffsetUnits.PERCENT - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +---------------------+----------------------------------------------------------------------+ - | Name | Description | - +=====================+======================================================================+ - | OffsetUnits.PERCENT | Specifies the iq_i_offset and iq_q_offset property units as percent. | - +---------------------+----------------------------------------------------------------------+ - | OffsetUnits.VOLTS | Specifies the iq_i_offset and iq_q_offset property units as volts. | - +---------------------+----------------------------------------------------------------------+ - - Note: For any devices except PXIe-5820, if the iq_offset_units property is set to OffsetUnits.VOLTS, a 0.1 I offset results in a 0.1 V offset in the output. For PXIe-5820 devices, 0.1 I offset results in a 10% offset in the output. - ''' - iq_out_port_carrier_frequency = _attributes.AttributeViReal64(1150145) - '''Type: float - - Specifies the frequency of the I/Q OUT port signal. The onboard signal processing (OSP) applies the specified frequency shift to the I/Q data before the data is sent to the digital-to-analog converter (DAC). To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** hertz (Hz) - - **Valid Values:** - - PXIe-5645: -60MHz to 60MHz - - PXIe-5820: -500MHz to 500MHz - - **Supported Devices:** PXIe-5645, PXIe-5820 - - Note: - For the PXIe-5820, NI recommends using the frequency property. - - - For the PXIe-5645, this property is ignored if you are using the RF ports. - ''' - iq_out_port_common_mode_offset = _attributes.AttributeViReal64(1150148) - '''Type: float - - Specifies the common-mode offset applied to the signals generated at each differential output terminal. This property applies only when you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.DIFFERENTIAL. Common-mode offset shifts both positive and negative terminals in the same direction. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Units:** Volts - - **Valid Values:** - - PXIe-5645: -0.8V to 0.8V if you set the iq_out_port_load_impedance property to 50 Ω. The valid values are -1.2V to 1.2V if you set the iq_out_port_load_impedance property to 100 Ω. - - PXIe-5820: -0.25V to 1.5V - - **Supported Devices:** PXIe-5645, PXIe-5820 - - Note: - For the PXIe-5645, this property is ignored if you are using the RF ports. - - - The valid range is dependent on the load impedance. - - Tip: - This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_common_mode_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_common_mode_offset` - ''' - iq_out_port_level = _attributes.AttributeViReal64(1150147) - '''Type: float - - Specifies the amplitude of the generated signal in volts, peak-to-peak (V). For example, if you set this property to 1.0, the output signal ranges from -0.5 volts to 0.5 volts. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - To set this property, the NI-RFSG device must be in the Configuration state. - - Refer to the specifications document for your device for allowable output levels. - - **Units:** Volts, peak-to-peak (V :sub:`pk-pk` ) - - **Valid Values:** - - PXIe-5645: 1V :sub:`pk-pk` maximum if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.DIFFERENTIAL, and 0.5V :sub:`pk-pk` - - maximum if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.SINGLE_ENDED. - - PXIe-5820: 3.4V :sub:`pk-pk` maximum for signal bandwidth less than 160MHz, and 2V :sub:`pk-pk` - - maximum for signal bandwidth greater than 160MHz. - - **Default Value:** 0.5volts - - **Supported Devices:** PXIe-5645, PXIe-5820 - - Note: - For the PXIe-5645, this property is ignored if you are using the RF ports. - - - The valid values are only applicable when you set the iq_out_port_load_impedance property to 50 Ω and when you set the iq_out_port_offset property to 0. - - Tip: - This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_level` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_level` - ''' - iq_out_port_load_impedance = _attributes.AttributeViReal64(1150163) - '''Type: float - - Specifies the load impedance connected to the I/Q OUT port. To set this property, the NI-RFSG device must be in the Configuration state. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - **Units:** Ohms - - **Valid Values:** Any value greater than 0. Values greater than or equal to 1 megaohms (MΩ) are interpreted as high impedance. - - **Default Value:** 50 Ω if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.SINGLE_ENDED, and 100 Ω if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.DIFFERENTIAL. - - **Supported Devices:** PXIe-5645, PXIe-5820 - - Note: For the PXIe-5645, this property is ignored if you are using the RF ports. - - Tip: - This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_load_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_load_impedance` - ''' - iq_out_port_offset = _attributes.AttributeViReal64(1150149) - '''Type: float - - Specifies the value, in volts, that the signal generator adds to the arbitrary waveform data. To set this property, the NI-RFSG device must be in the Configuration state. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - PXIe-5645: The waveform may be scaled in DSP prior to adding offset and the device state may be changed in order to accommodate the requested offset. - - PXIe-5820: The waveform is not automatically scaled in DSP. To prevent DSP overflows, use the arb_pre_filter_gain property to scale the waveform to provide additional headroom for offsets. - - **Units:** Volts - - **Supported Devices:** PXIe-5645, PXIe-5820 - - Note: For the PXIe-5645, this property is ignored if you are using the RF ports. - - Tip: - This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_offset` - ''' - iq_out_port_temperature = _attributes.AttributeViReal64(1150161) - '''Type: float - - Returns the temperature, in degrees Celsius, of the I/Q Out circuitry on the device. - - **Units:** Degrees Celsius - - **Supported Devices:** PXIe-5645, PXIe-5820 - - Note: If you query this property during RF list mode, list steps may take longer to complete during list execution. - ''' - iq_out_port_terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IQOutPortTerminalConfiguration, 1150146) - '''Type: enums.IQOutPortTerminalConfiguration - - Specifies whether to use the I/Q OUT port for differential configuration or single-ended configuration. If you set this property to IQOutPortTerminalConfiguration.SINGLE_ENDED, you must terminate the negative I and Q output connectors with a 50 Ohm termination. - - If you set this property to IQOutPortTerminalConfiguration.SINGLE_ENDED, the positive I and Q connectors generate the resulting waveform. If you set this property to IQOutPortTerminalConfiguration.DIFFERENTIAL, both the positive and negative I and Q connectors generate the resulting waveform. - - To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** IQOutPortTerminalConfiguration.DIFFERENTIAL - - PXIe-5820: The only valid value for this property is IQOutPortTerminalConfiguration.DIFFERENTIAL. - - **Supported Devices:** PXIe-5645, PXIe-5820 - - **Related Topics** - - `Differential and Single-Ended Operation (I/O Interface) `_ - - **Defined Values**: - - +---------------------------------------------+----------------+--------------------------------------------------+ - | Name | Value | Description | - +=============================================+================+==================================================+ - | IQOutPortTerminalConfiguration.DIFFERENTIAL | 15000 (0x3a98) | Sets the terminal configuration to differential. | - +---------------------------------------------+----------------+--------------------------------------------------+ - | IQOutPortTerminalConfiguration.SINGLE_ENDED | 15001 (0x3a99) | Sets the terminal configuration to single-ended. | - +---------------------------------------------+----------------+--------------------------------------------------+ - - Note: For the PXIe-5645, this property is ignored if you are using the RF ports. - - Tip: - This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].iq_out_port_terminal_configuration` - - To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.iq_out_port_terminal_configuration` - ''' - iq_q_offset = _attributes.AttributeViReal64(1150071) - '''Type: float - - When using a National Instruments AWG module or VST device, this property specifies the Q-signal DC offset. Units are either percent (%) or volts (V), depending on the iq_offset_units property setting. - PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), the iq_q_offset property is read-only and indicates the I/Q modulator Q-offset. Units are volts, as indicated by the iq_offset_units property. - **Valid Values**: -100% to 100% or -0.2V to 0.2V - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - **Related Topics** - `Impairment Calibration `_ - ''' - iq_rate = _attributes.AttributeViReal64(1250452) - '''Type: float - - This property specifies the I/Q rate of the arbitrary waveform. The I/Q rate is coerced to a value the hardware can achieve. Read this value back after setting it to see the actual I/Q rate. NI-RFSG internally uses an FIR filter with flat response up to (0.4 × IQ rate). Given a desired signal with the maximum frequency content *f*, sample the signal at an I/Q rate greater than or equal to ( *f*/0.4). - - This property applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT. - - To set this property, the NI-RFSG device must be in the Configuration state. - - Setting this property to 50 MS/s on the PXI-5670/5671 and PXIe-5672 has the following implications: - - NI-RFSG is forced to place the carrier frequency at 18 MHz ± 1 MHz to avoid aliasing. This means that NI-RFSG cannot select a carrier frequency that could optimize waveform size if phase continuity is enabled. - - Output signal bandwidth must be <5 MHz to avoid aliasing. - - Close-in phase noise is higher. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. - - `Digital Upconverter `_ - - **Valid Values**: - - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Device | I/Q Rates | - +==========================================================================+====================================================================================================================================================================================================================================================+ - | PXIe-5644/5645 | Up to 120 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5646 | Up to 250 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXI-5670 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | | 100 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXI-5671 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | | 100 MS/s | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5672 | Up to 100 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5673/5673E | Up to 200 MS/s. Note that - If an PXIe-5450 with module revisions A or B is used as part of your PXIe-5673/5673E, the NI-FGEN NIFGEN_ATTR_COMPENSATE_FOR_FILTER_GROUP_DELAY property is disabled if the requested I/Q rate is less than 1.5 MS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5820/5830/5831/5832/5840/5841/5860 | Up to 1.25 GS/s. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options) | Up to 2.5 GS/s | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5842 (4 GHz bandwidth option) using the Standard personality | Up to 2.5 GS/s | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality | 5 GS/s only. | - +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: Use this property to associate an I/Q rate with a waveform. - ''' - iq_skew = _attributes.AttributeViReal64(1150073) - '''Type: float - - Specifies the adjustment of the phase angle between the I and Q vectors. If the skew is zero, the phase angle is 90 degrees. - - This property is ignored when the iq_impairment_enabled property is disabled. - - **Units**: degrees (°) - - **Valid Values:**-30° to 30° - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Impairment Calibration `_ - ''' - iq_swap_enabled = _attributes.AttributeViBoolean(1250404) - '''Type: bool - - Enables or disables the inverse phase rotation of the I/Q signal by swapping the I and Q inputs. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Defined Values**: - - +-------+---------------------------------------------------------------------+ - | Value | Description | - +=======+=====================================================================+ - | True | NI-RFSG device applies noninverse phase rotation of the I/Q signal. | - +-------+---------------------------------------------------------------------+ - | False | NI-RFSG device applies inverse phase rotation of the I/Q signal. | - +-------+---------------------------------------------------------------------+ - ''' - load_configurations_from_file_load_options = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoadOptions, 1150290) - '''Type: enums.LoadOptions - - Specifies the configurations to skip while loading from a file. - - **Default Value:** NIRFSG_VAL_SKIP_NONE - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------------------------------------------------------------+-------------------------------------------------------------------+ - | Value | Description | - +====================================================================+===================================================================+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_NONE | NI-RFSG loads all the configurations to the session. | - +--------------------------------------------------------------------+-------------------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips loading the waveform configurations to the session. | - +--------------------------------------------------------------------+-------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - load_configurations_from_file_reset_options = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoadConfigurationResetOptions, 1150291) - '''Type: enums.LoadConfigurationResetOptions - - Specifies the configurations to skip to reset while loading configurations from a file. - - **Default Value:** NIRFSG_VAL_SKIP_NONE - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------------------------------------------------+------------------------------------------------------+ - | Value | Description | - +==============================================================================+======================================================+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_NONE | NI-RFSG resets all configurations. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips resetting the waveform configurations. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_SCRIPTS | NI-RFSG skips resetting the scripts. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_DEEMBEDDING_TABLES | NI-RFSG skips resetting the de-embedding tables. | - +------------------------------------------------------------------------------+------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - Returns a string that contains the logical name you specified when opening the current IVI session. You can pass a logical name to the Init method or the __init__ method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - loop_bandwidth = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoopBandwidth, 1150027) - '''Type: enums.LoopBandwidth - - Configures the loop bandwidth of the tuning PLLs. This property is ignored on the PXI-5610, PXI-5670/5671, and PXIe-5672 for signal bandwidths greater than or equal to 10MHz. This property is ignored on the PXI/PXIe-5650/5651/5652 for RF frequencies less than 50MHz. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value:** - - PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842: LoopBandwidth.MEDIUM - - PXI/PXIe-5650/5651/5652, PXIe-5673/5673E: LoopBandwidth.NARROW - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Phase-Locked Loop Bandwidth `_ - - `Modulation Implementation `_ - - `Sinusoidal Tone Versus Modulation Operation `_ - - **Defined Values**: - - +----------------------+---------+--------------------------------------------------------+ - | Name | Value | Description | - +======================+=========+========================================================+ - | LoopBandwidth.MEDIUM | 1 (0x1) | Uses the medium loop bandwidth setting for the PLL. | - +----------------------+---------+--------------------------------------------------------+ - | LoopBandwidth.NARROW | 0 (0x0) | Uses the narrowest loop bandwidth setting for the PLL. | - +----------------------+---------+--------------------------------------------------------+ - | LoopBandwidth.WIDE | 2 (0x2) | Uses the widest loop bandwidth setting for the PLL. | - +----------------------+---------+--------------------------------------------------------+ - - Note: Setting this property to LoopBandwidth.WIDE on the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, or the PXIe-5673/5673E allows the frequency to settle significantly faster at the expense of increased phase noise. Setting this property to LoopBandwidth.MEDIUM is not a valid option on the PXI/PXIe-5650/5651/5652 or PXIe-5673/5673E. LoopBandwidth.MEDIUM is the only supported value for the PXIe-5840/5841/5842. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].loop_bandwidth` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.loop_bandwidth` - ''' - lo_frequency = _attributes.AttributeViReal64(1150199) - '''Type: float - - Specifies the frequency of the LO source. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Configuration `_ - - `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ - - Note: This property is read/write if you are using an external LO. Otherwise, this property is read-only. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_frequency` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_frequency` - ''' - lo_frequency_step_size = _attributes.AttributeViReal64(1150151) - '''Type: float - - Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). - - When the lo_pll_fractional_mode_enabled property is enabled, the specified step size affects the fractional spur performance of the device. When the lo_pll_fractional_mode_enabled property is disabled, the specified step size affects the phase noise performance of the device. - - The valid values for this property depend on the lo_pll_fractional_mode_enabled property. - - **PXIe-5644/5645/5646**—If you disable the lo_pll_fractional_mode_enabled property, the specified value is coerced to the nearest valid value. - - **PXIe-5840/5841**—If you disable the lo_pll_fractional_mode_enabled property, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. - - **Units:** hertz (Hz) - - **Default Values:** - - PXIe-5644/5645/5646: 200kHz - - PXIe-5830: 2MHz - - PXIe-5831/5832 (RF port): 8MHz - - PXIe-5831/5832 (IF port): 2MHz, 4MHz - - PXIe-5840/5841: - - - Fractional mode: 500 kHz - - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. - - PXIe-5841 with PXIe-5655: 500kHz - - PXIe-5842: 1Hz - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - | lo_pll_fractional_mode_enabled Property Setting | NIRFSG_VAL_ENABLE | NIRFSG_VAL_DISABLE | - +==================================================================================================+===================+==================================================+ - | lo_frequency_step_size Property Valid Values on PXIe-5644/5645 | 50 kHz to 24 MHz | 4 MHz, 5 MHz, 6 MHz, 12 MHz, or 24 MHz | - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - | lo_frequency_step_size Property Valid Values on PXIe-5646 | 50 kHz to 25 MHz | 2 MHz, 5 MHz, 10 MHz, or 25 MHz | - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - | lo_frequency_step_size Property Valid Values on PXIe-5840/5841 | 50 kHz to 100 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, or 100 MHz | - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - | lo_frequency_step_size Property Valid Values on PXIe-5830/5831/ 5832 LO1 | 8 Hz to 400 MHz | — | - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - | lo_frequency_step_size Property Valid Values on PXIe-5830/5831/ 5832 LO2 | 4 Hz to 400 MHz | — | - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - | lo_frequency_step_size Property Valid Values on PXIe-5841 with PXIe-5655/NI PXIe-5842 (See note) | 1 nHz to 100 MHz | 1 nHz to 50 MHz | - +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ - - Note: Values up to 100 MHz are coerced to 50 MHz. - ''' - lo_in_power = _attributes.AttributeViReal64(1150067) - '''Type: float - - Specifies the power level of the signal at the LO IN front panel connector. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Units**: dBm - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `LO OUT `_ - - Note: - This property is read/write if you are using an external LO. Otherwise, this property is read-only. - - - For the PXIe-5644/5645/5646, this property is always read-only. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_in_power` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_in_power` - ''' - lo_out_enabled = _attributes.AttributeViBoolean(1150013) - '''Type: bool - - Specifies whether the local oscillator signal is present at the LO OUT front panel connector. The local oscillator signal remains at the LO OUT front panel connector until this property is set to False, even if the output_enabled property is set to False, the abort method is called, or the NI-RFSG session is closed. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_boolean method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value:** NIRFSG_VAL_DISABLE - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `LO OUT `_ - - **Defined Values**: - - +--------------------+---------------------------------------------------------------------------------+ - | Name | Description | - +====================+=================================================================================+ - | NIRFSG_VAL_ENABLE | The local oscillator signal is present at the LO OUT front panel connector. | - +--------------------+---------------------------------------------------------------------------------+ - | NIRFSG_VAL_DISABLE | The local oscillator signal is not present at the LO OUT front panel connector. | - +--------------------+---------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_out_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_out_enabled` - ''' - lo_out_export_configure_from_rfsa = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoOutExportConfigureFromRfsaEnable, 1150242) - '''Type: enums.LoOutExportConfigureFromRfsaEnable - - Specifies whether to allow NI-RFSA to control the NI-RFSG LO out export. - - Set this property to LoOutExportConfigureFromRfsaEnable.ENABLE to allow NI-RFSA to control the LO out export. Use the RF OUT LO EXPORT ENABLED property to control the LO out export from NI-RFSA. - - **Default Value:** LoOutExportConfigureFromRfsaEnable.DISABLE - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +--------------------------------------------+---------+----------------------------------------------------------------------+ - | Name | Value | Description | - +============================================+=========+======================================================================+ - | LoOutExportConfigureFromRfsaEnable.ENABLE | 0 (0x0) | Do not allow NI-RFSA to control the NI-RFSG local oscillator export. | - +--------------------------------------------+---------+----------------------------------------------------------------------+ - | LoOutExportConfigureFromRfsaEnable.DISABLE | 1 (0x1) | Allow NI-RFSA to control the NI-RFSG local oscillator export. | - +--------------------------------------------+---------+----------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - lo_out_power = _attributes.AttributeViReal64(1150066) - '''Type: float - - Specifies the power level of the signal at the LO OUT front panel connector. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Units**: dBm - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `LO OUT `_ - - Note: For the PXIe-5644/5645/5646 and PXIe-5673/5673E, this property is always read-only. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_out_power` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_out_power` - ''' - lo_pll_fractional_mode_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoPllFractionalModeEnabled, 1150152) - '''Type: enums.LoPllFractionalModeEnabled - - Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). This property enables or disables fractional frequency tuning in the LO. Fractional mode provides a finer frequency step resolution and allows smaller values for the lo_frequency_step_size property. However, fractional mode may introduce non-harmonic spurs. - - This property applies only if you set the lo_source property to Onboard. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" . - - **Default Value:** LoPllFractionalModeEnabled.ENABLE - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - Refer to the local oscillators topic appropriate to your device for more information about using fractional mode. - - **Defined Values**: - - +------------------------------------+---------+------------------------------------------+ - | Name | Value | Description | - +====================================+=========+==========================================+ - | LoPllFractionalModeEnabled.ENABLE | 0 (0x0) | Disables fractional mode for the LO PLL. | - +------------------------------------+---------+------------------------------------------+ - | LoPllFractionalModeEnabled.DISABLE | 1 (0x1) | Enables fractional mode for the LO PLL. | - +------------------------------------+---------+------------------------------------------+ - - Note: For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` - ''' - lo_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.LoSource, 1150150) - '''Type: enums.LoSource - - Specifies whether to use the internal or external local oscillator (LO) source. If the lo_source property is set to "" (empty string), NI-RFSG uses the internal LO source. To set this property, the NI-RFSG device must be in the Configuration state. - - To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). - - **Default Value:** Onboard - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ - - `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ - - **Possible Values**: - - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +==========================+==================================================================================================================================================================================================================================================================+ - | "Automatic_SG_SA_Shared" | NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "LO_In" | Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the upconverter_center_frequency property to specify the LO frequency. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "Onboard" | Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "SG_SA_Shared" | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "Secondary" | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. | - +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to SG_SA_Shared. - - Tip: - This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container los to specify a subset. - - Example: :py:attr:`my_session.los[ ... ].lo_source` - - To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.lo_source` - ''' - lo_temperature = _attributes.AttributeViReal64(1150075) - '''Type: float - - Returns the LO module temperature in degrees Celsius. - - PXIe-5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. - - **Units**: degrees Celsius (°C) - - **Supported Devices:** PXIe-5673/5673E, PXIe-5840/5841/5842 - ''' - lo_vco_frequency_step_size = _attributes.AttributeViReal64(1150257) - '''Type: float - - Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. - - **Valid Values**: - - LO1: 1 Hz to 50 MHz - - LO2: 1 Hz to 100 MHz - - **Default Value**: 1 MHz - - **Supported Devices**: PXIe-5830/5831/5832 - ''' - marker_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MarkerEventOutputBehavior, 1150206) - '''Type: enums.MarkerEventOutputBehavior - - Specifies the output behavior for the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** MarkerEventOutputBehavior.PULSE - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Defined Values**: - - +----------------------------------+----------------+-------------------------------------------------------+ - | Name | Value | Description | - +==================================+================+=======================================================+ - | MarkerEventOutputBehavior.PULSE | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | - +----------------------------------+----------------+-------------------------------------------------------+ - | MarkerEventOutputBehavior.TOGGLE | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | - +----------------------------------+----------------+-------------------------------------------------------+ - - Tip: - This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_output_behavior` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_output_behavior` - ''' - marker_event_pulse_width = _attributes.AttributeViReal64(1150207) - '''Type: float - - Specifies the pulse width value for the Marker Event. Use the marker_event_pulse_width_units property to set the units for the pulse width value. This property is valid only when the marker_event_output_behavior property is set to MarkerEventOutputBehavior.PULSE. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** 200 ns - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - Tip: - This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width` - ''' - marker_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MarkerEventPulseWidthUnits, 1150208) - '''Type: enums.MarkerEventPulseWidthUnits - - Specifies the pulse width units for the Marker Event. This property is valid only when the marker_event_output_behavior property is set to MarkerEventOutputBehavior.PULSE. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** MarkerEventPulseWidthUnits.SECONDS - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Defined Values**: - - +----------------------------------+----------------+-------------------------------------------------------+ - | Name | Value | Description | - +==================================+================+=======================================================+ - | MarkerEventOutputBehavior.PULSE | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | - +----------------------------------+----------------+-------------------------------------------------------+ - | MarkerEventOutputBehavior.TOGGLE | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | - +----------------------------------+----------------+-------------------------------------------------------+ - - Tip: - This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_pulse_width_units` - ''' - marker_event_terminal_name = _attributes.AttributeViString(1150115) - '''Type: str - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/Marker *X* Event, where *AWGName* is the name of your associated AWG module in MAX and *X* is Marker Event 0 through 3. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/Marker *X* Event, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Marker Event 0 through 3. - - PXIe-5820/5840/5841: /*ModuleName*/ao/0/Marker *X* Event, where *ModuleName* is the name of your device in MAX and *X* is Marker Event 0 through 3. - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - get_terminal_name - - Tip: - This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_terminal_name` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_terminal_name` - ''' - marker_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MarkerEventToggleInitialState, 1150209) - '''Type: enums.MarkerEventToggleInitialState - - Specifies the initial state for the Marker Event when the marker_event_output_behavior property is set to MarkerEventOutputBehavior.TOGGLE. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** MarkerEventToggleInitialState.LOW - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Defined Values**: - - +------------------------------------+----------------+----------------------------------------------------------------------------------+ - | Name | Value | Description | - +====================================+================+==================================================================================+ - | MarkerEventToggleInitialState.HIGH | 21001 (0x5209) | Specifies the initial state of the Marker Event toggle behavior as digital high. | - +------------------------------------+----------------+----------------------------------------------------------------------------------+ - | MarkerEventToggleInitialState.LOW | 21000 (0x5208) | Specifies the initial state of the Marker Event toggle behavior as digital low. | - +------------------------------------+----------------+----------------------------------------------------------------------------------+ - - Tip: - This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset. - - Example: :py:attr:`my_session.markers[ ... ].marker_event_toggle_initial_state` - - To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.marker_event_toggle_initial_state` - ''' - memory_size = _attributes.AttributeViInt64(1150061) - '''Type: int - - The total amount of memory on the signal generator in bytes. - - **Units:** bytes - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Memory Options `_ - - `Phase Continuity `_ - - Note: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. - ''' - module_power_consumption = _attributes.AttributeViReal64(1150210) - '''Type: float - - Returns the total power consumption of the device. - - **Units:** watts - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: If you query this property during RF list mode, list steps may take longer to complete during list execution. - ''' - module_revision = _attributes.AttributeViString(1150084) - '''Type: str - - Returns the module revision letter. If the NI-RFSG session is controlling multiple modules, this property returns the revision letter of the primary RF module. The NI-RFSG session is opened using the primary RF device name. - - **Supported Devices:** PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Identifying Module Revision `_ - ''' - output_enabled = _attributes.AttributeViBoolean(1250004) - '''Type: bool - - Specifies whether signal output is enabled. Setting the output_enabled property to False while in the Generation state stops signal output, although generation continues internally. For the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXI-5670/5671, and PXIe-5672/5673/5673E, setting the output_enabled property while in the Committed state does not transition the device to the Configuration state, but output changes immediately. - - **Default Value:** True - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Output Enabled `_ - - `NI-RFSG Instrument Driver Programming Flow `_ - - **Defined Values**: - - +-------+-------------------------+ - | Value | Description | - +=======+=========================+ - | True | Enables signal output. | - +-------+-------------------------+ - | False | Disables signal output. | - +-------+-------------------------+ - - Note: - For the PXIe-5653, this property controls only the LO1 terminal. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - - - When the ACTIVE_CONFIGURATION_LIST property is set to a valid list name, setting the output_enabled property transitions the device to the Configuration state. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - ''' - output_port = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputPort, 1150144) - '''Type: enums.OutputPort - - Specifies the connector(s) to use to generate the signal. To set this property, the NI-RFSG device must be in the Configuration state. - - You must write complex I and Q data for all options. The Q data has no effect if you set this property to I Only and set the iq_out_port_carrier_frequency property to 0. If you set the iq_out_port_carrier_frequency property to a value other than 0, the onboard signal processing (OSP) frequency shifts I and Q as a complex value and outputs the real portion of the result on the I connector(s) of the device. - - If you set the output_port property to OutputPort.I_ONLY or OutputPort.IQ_OUT, the iq_out_port_terminal_configuration property applies. - - **Default Value:** - - PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842/5860: OutputPort.RF_OUT - - PXIe-5820: OutputPort.IQ_OUT - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +--------------------+----------------+------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +====================+================+==========================================================================================+ - | OutputPort.CAL_OUT | 14002 (0x36b2) | Enables the CAL OUT port. | - +--------------------+----------------+------------------------------------------------------------------------------------------+ - | OutputPort.I_ONLY | 14003 (0x36b3) | Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. | - +--------------------+----------------+------------------------------------------------------------------------------------------+ - | OutputPort.IQ_OUT | 14001 (0x36b1) | Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. | - +--------------------+----------------+------------------------------------------------------------------------------------------+ - | OutputPort.RF_OUT | 14000 (0x36b0) | Enables the RF OUT port. This value is not valid for the PXIe-5820. | - +--------------------+----------------+------------------------------------------------------------------------------------------+ - ''' - overflow_error_reporting = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OverflowErrorReporting, 1150228) - '''Type: enums.OverflowErrorReporting - - Configures error reporting for onboard signal processing (OSP) overflows. Overflows lead to clipping of the waveform. - - **Default Value:** OverflowErrorReporting.WARNING - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +---------------------------------+--------------+----------------------------------------------------------------------------+ - | Name | Value | Description | - +=================================+==============+============================================================================+ - | OverflowErrorReporting.DISABLED | 1302 (0x516) | NI-RFSG does not return an error or a warning when an OSP overflow occurs. | - +---------------------------------+--------------+----------------------------------------------------------------------------+ - | OverflowErrorReporting.WARNING | 1301 (0x515) | NI-RFSG returns a warning when an OSP overflow occurs. | - +---------------------------------+--------------+----------------------------------------------------------------------------+ - ''' - peak_envelope_power = _attributes.AttributeViReal64(1150011) - '''Type: float - - Returns the maximum instantaneous power of the RF output signal. - - **Units**: dBm - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - This property is valid only when the power_level_type property is set to PowerLevelType.AVERAGE. - - - The arb_digital_gain property is not included in the calculation of the peak_envelope_power property. - ''' - peak_power_adjustment = _attributes.AttributeViReal64(1150132) - '''Type: float - - Specifies the adjustment for the power_level property. This property is valid only when you set the power_level_type property to PowerLevelType.PEAK. The value of the peak_power_adjustment property adds to the power_level property. The peak_power_adjustment property typically specifies the peak-to-average power ratio (PAPR) of a waveform. If the PAPR is specified, the specified power level becomes the average power level of the waveform, even if the power_level_type property is set to PowerLevelType.PEAK. - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a peak power adjustment with a waveform. - - Note: - For the PXIe-5673/5673E only, use this property to associate a peak power adjustment with a waveform. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - ''' - phase_continuity_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PhaseContinuityEnabled, 1150005) - '''Type: enums.PhaseContinuityEnabled - - Specifies whether the driver maintains phase continuity in the arbitrary waveforms. When this property is set to PhaseContinuityEnabled.ENABLE, NI-RFSG may increase the waveform size. To set the phase_continuity_enabled property, the NI-RFSG device must be in the Configuration state. phase_continuity_enabled applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT. - - PXI-5671: When using the PXI-5671 with I/Q rates less than or equal to 8.33MS/s, an input phase-continuous signal is always phase-continuous upon output, and this property has no effect. - - PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Phase continuity is *always* enabled on this device. - - **Default Value:** PhaseContinuityEnabled.AUTO - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Phase Continuity `_ - - `Arb Waveform Mode Tuning Speed Factors `_ - - **Defined Values**: - - +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | phase_continuity_enabled Property Setting | Value | With I/Q Rates > 8.33 MS/s. | - +===========================================+===========+==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | PhaseContinuityEnabled.AUTO | -1 (-0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. When the Generation Mode property is set to Script, the Phase Continuity Enabled property indicates a warning condition. NI-RFSG cannot guarantee a phase-continuous output signal in Script mode. Phase continuity is automatically disabled in script mode, and the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. | - +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PhaseContinuityEnabled.DISABLE | 0 (0x0) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform is played back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | - +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PhaseContinuityEnabled.ENABLE | 1 (0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | - +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - phase_offset = _attributes.AttributeViReal64(1150024) - '''Type: float - - Specifies the phase of the RF output signal. Use this property to align the phase of the RF output with the phase of the RF output of another device, as long as the two devices are phase-coherent. - - **Units**: degrees (°) - - **Default Value:** 0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Phase Synchronization and Phase Coherency `_ - ''' - power_level = _attributes.AttributeViReal64(1250002) - '''Type: float - - Specifies either the average power level or peak power level of the generated RF signal, depending on the power_level_type property setting. - - The PXI-5670/5671, PXIe-5672, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. - - Refer to the specifications document for your device for allowable power level settings. - - **Units**: dBm - - **Default Values:** - - PXIe-5644/5645/5646, PXIe-5673/5673E: -100 - - PXI/PXIe-5650/5651/5652: -90 - - PXIe-5654: -7 - - PXIe-5654 with PXIe-5696: -110 - - PXI-5670/5671, PXIe-5672: -145 - - PXIe-5830/5831/5832/5840/5841/5842/5860: -174 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - **High-Level Methods**: - - - ConfigureRf - - Note: - For the PXIe-5653, this property is read-only. - - - For the PXIe-5645, this property is ignored if you are using the I/Q ports. - ''' - power_level_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerLevelType, 1150043) - '''Type: enums.PowerLevelType - - Specifies how NI-RFSG interprets the value of the power_level property. The power_level_type property also affects how waveforms are scaled. - - PXI-5670/5671: While in Script generation mode, if this property is set to PowerLevelType.AVERAGE, NI-RFSG scales each waveform so that all waveforms have the same average power. The average power level of each waveform matches the value set with the power_level property. You can disable this scaling operation by setting the power_level_type property to PowerLevelType.PEAK. - - PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: While in Script generation mode, this property must be set to PowerLevelType.PEAK. - - Converting from Average Power to Peak Power - - Typically, this property is set to PowerLevelType.AVERAGE. However, some instrument modes require this property to be set to PowerLevelType.PEAK. Use the following equations to calculate the equivalent peak power given the desired average power for your waveform: - - Where 1 is the highest possible magnitude in the waveform. - - **Default Value:** - - PXIe-5820: PowerLevelType.PEAK - - All other devices: PowerLevelType.AVERAGE - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Spurious Performance `_ - - `Optimizing for Low Power Generation `_ - - **Defined Values**: - - +------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +========================+====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | PowerLevelType.AVERAGE | Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. | - +------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PowerLevelType.PEAK | Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the arb_waveform_software_scaling_factor property. You can use the peak_power_adjustment property in conjunction with the power_level property when the power_level_type property is set to PowerLevelType.PEAK. | - +------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - pulse_modulation_active_level = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalLevelActiveLevel, 1150307) - '''Type: enums.ScriptTriggerDigitalLevelActiveLevel - - Specifies the active level of the pulse modulation signal when pulse modulation is enabled. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** ScriptTriggerDigitalLevelActiveLevel.HIGH - - **Supported Devices:** PXIe-5842 - - **Defined Values**: - - +-------------------------------------------+---------------+--------------------------------------------------+ - | Name | Value | Description | - +===========================================+===============+==================================================+ - | ScriptTriggerDigitalLevelActiveLevel.HIGH | 9000 (0x2328) | Trigger when the digital trigger signal is high. | - +-------------------------------------------+---------------+--------------------------------------------------+ - | ScriptTriggerDigitalLevelActiveLevel.LOW | 9001 (0x2329) | Trigger when the digital trigger signal is low. | - +-------------------------------------------+---------------+--------------------------------------------------+ - ''' - pulse_modulation_enabled = _attributes.AttributeViBoolean(1250051) - '''Type: bool - - Enables or disables pulse modulation. - - PXIe-5654/5654 with PXIe-5696: If this property is enabled and the signal at the PULSEIN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. - - PXIe-5673/5673E: If this property is enabled and the signal at the PLSMOD front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. - - PXIe-5842: If this property is enabled and the signal at the PULSE IN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. This behavior can be modified by setting pulse modulation active level. - - **Default Value:** False - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E - - **Related Topics** - - `Pulse Modulation `_ - - **Defined Values**: - - +-------+----------------------------+ - | Value | Description | - +=======+============================+ - | True | Enables pulse modulation. | - +-------+----------------------------+ - | False | Disables pulse modulation. | - +-------+----------------------------+ - ''' - pulse_modulation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PulseModulationMode, 1150190) - '''Type: enums.PulseModulationMode - - PXIe-5654/5654 with PXIe-5696: Specifies the pulse modulation mode to use. - - PXIe-5842: This property allows you to choose a tradeoff between switching speed and On/Off Ratio when using pulse modulation. Refer to the product specifications document for the switching characteristics of each mode. This property is settable while the device is generating, but some output pulses may be dropped. - - **Default Value:** PulseModulationMode.ANALOG - - **Supported Devices:** PXIe-5842/5654/5654 with PXIe-5696 - - **Defined Values**: - - +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +===================================================+=============================================================================================================================================+ - | PulseModulationMode.OPTIMAL_MATCH | Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842. | - +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSG_VAL_PULSE_MODULATION_ANALOG_HIGH_ISOLATION | Allows for the best on/off power ratio of the pulsed signal. | - +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSG_VAL_PULSE_MODULATION_ANALOG | Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. | - +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - | NIRFSG_VAL_PULSE_MODULATION_DIGITAL | Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. | - +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - pulse_modulation_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.PulseModulationSource, 1150308) - '''Type: enums.PulseModulationSource - - Specifies the source of the pulse modulation signal. When Pulse In in used, the pulse modulation is applied with the lowest latency and jitter, but is not aligned to any particular waveform sample. When a marker is used, the RF pulse is aligned to a specific sample in the arbitrary waveform. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** PulseIn - - **Supported Devices:** PXIe-5842 - - **Possible Values**: - - +----------------+----------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +================+==============================================================================================+ - | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker0" | The trigger is received from the Marker 0. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker1" | The trigger is received from the Marker 1. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker2" | The trigger is received from the Marker 2. | - +----------------+----------------------------------------------------------------------------------------------+ - | "Marker3" | The trigger is received from the Marker 3. | - +----------------+----------------------------------------------------------------------------------------------+ - ''' - ref_clock_rate = _attributes.AttributeViReal64(1250322) - '''Type: float - - Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. This property is only valid when the ref_clock_source property is set to ClkIn, RefIn, or RefIn2 - - To set this property, the NI-RFSG device must be in the Configuration state. If you are using the PXIe-5654/5654 with PXIe-5696, the NI-RFSG device must be in the Committed state to read this property. When you read this property, it returns the frequency the device is locked to during the Committed state. - - If you set this property to Auto, NI-RFSG uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if automatic detection is supported by the device. - - **Valid Values:** - - PXIe-5654/5654 with PXIe-5696: Values between 1MHz to 20MHz in 1MHz steps are supported in addition to the Auto and 10MHz values. - - PXIe-5841 with PXIe-5655, PXIe-5842: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz - - y, where - - y is 4, 8, 16, 24, 25, or 32. - - PXIe-5860: 10 MHz, 100 MHz - - **Units**: hertz (Hz) - - **Default Value:** Auto - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Timing Configurations `_ - - **High-Level Methods**: - - - configure_ref_clock - - **Defined Values**: - - +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +=======+============+===================================================================================================================================+ - | Auto | -1.0 | Uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if the device supports it. | - +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ - | 10MHz | 10000000.0 | Uses a 10 MHz Reference Clock rate. | - +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ - - Note: Automatic detection of the Reference Clock rate is supported on only the PXIe-5654/5654 with PXIe-5696. For all other supported devices, NI-RFSG uses the default Reference Clock rate of 10MHz. - ''' - ref_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockSource, 1150001) - '''Type: enums.ReferenceClockSource - - Specifies the Reference Clock source. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** OnboardClock - - **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Timing Configurations `_ - - **High-Level Methods**: - - - configure_ref_clock - - **Possible Values**: - - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Value | Description | - +=================+=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. ** PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector. **PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn2" | This value is not valid on any supported devices. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_ClkMaster" | This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653** —NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_CLK as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | - +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - ''' - ref_pll_bandwidth = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferencePllBandwidth, 1150133) - '''Type: enums.ReferencePllBandwidth - - Configures the loop bandwidth of the reference PLL. - - **Default Value:** ReferencePllBandwidth.NARROW - - **Supported Devices:** PXIe-5653 - - **Related Topics** - - `Phase-Locked Loop Bandwidth `_ - - **Defined Values**: - - +------------------------------+--------------------------------------------------------+ - | Value | Description | - +==============================+========================================================+ - | ReferencePllBandwidth.NARROW | Uses the narrowest loop bandwidth setting for the PLL. | - +------------------------------+--------------------------------------------------------+ - | ReferencePllBandwidth.MEDIUM | Uses the medium loop bandwidth setting for the PLL. | - +------------------------------+--------------------------------------------------------+ - | ReferencePllBandwidth.WIDE | Uses the widest loop bandwidth setting for the PLL. | - +------------------------------+--------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - relative_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150220) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the delay, in seconds, to apply to the I/Q waveform. - - Relative delay allows for delaying the generated signal from one device relative to the generated signal of another device after those devices have been synchronized. You can achieve a negative relative delay by delaying both synchronized devices by the same value (1 μs) before generation begins and then changing the relative delay to a smaller amount than the initial value on only one of the devices. - - To set this property, the NI-RFSG device must be in the Configuration or Generation state. - - **Units:** Seconds - - **Valid Values:** - - PXIe-PXIe-5820/5830/5831/5832/5840/5841: 0 μs to 3.2 μs - - PXIe-5842: 0 μs to 6.5 μs - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `NI-TClk Overview `_ - - Note: - To obtain a negative relative delay when synchronizing the PXIe-5840/5841 with a module that does not support this property, use the NITCLK_ATTR_SAMPLE_CLOCK_DELAY property. - - - The resolution of this property is a method of the I/Q sample period at 15E(-6) of the sample period but not worse than one Sample Clock period. - ''' - rf_blanking_source = _attributes.AttributeViString(1150162) - '''Type: str - - Specifies the Marker Event at which RF blanking occurs. RF blanking quickly attenuates the RF OUT signal. Use Marker Events to toggle the state of RF blanking. The RF Output always starts in the unblanked state. - - To set this property, the NI-RFSG device must be in the Configuration state. - - You can specify Marker Events by using scripts to trigger blanking at a certain point in a waveform. For example, if you set this property to marker0 str}, and marker0 occurs on samples 1,000 and 2,000 of a script, then the RF Output will be blanked (attenuated) between samples 1,000 and 2,000. - - PXIe-5645: This property is ignored if you are using the I/Q ports. - - PXIe-5840/5841: RF blanking does not occur for frequencies below 120MHz. - - For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any Reset or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call reset_with_options or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - **Valid Values**: - - +-----------+---------------------------------+ - | Value | Description | - +===========+=================================+ - | "" | RF blanking is disabled. | - +-----------+---------------------------------+ - | "Marker0" | RF blanking is tied to marker0. | - +-----------+---------------------------------+ - | "Marker1" | RF blanking is tied to marker1. | - +-----------+---------------------------------+ - | "Marker2" | RF blanking is tied to marker2. | - +-----------+---------------------------------+ - | "Marker3" | RF blanking is tied to marker3. | - +-----------+---------------------------------+ - - Note: The shortest supported blanking interval is eight microseconds. - ''' - rf_in_lo_export_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RFInLoExportEnabled, 1150243) - '''Type: enums.RFInLoExportEnabled - - Specifies whether to enable the RF IN LO OUT terminal on the PXIe-5840/5841. - - Set this property to RFInLoExportEnabled.ENABLE to export the LO signal from the RF IN LO OUT terminal. - - When this property is enabled, if the lo_source property is set to LO_In and you do not set the lo_frequency or upconverter_center_frequency properties, NI-RFSG rounds the LO frequency to approximately an LO step size as if the source was OnboardClock. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. - - **Default Value:** RFInLoExportEnabled.UNSPECIFIED - - **Supported Devices**: PXIe-5840/5841/5842 - - **Defined Values**: - - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +=================================+=========================================================================================================================================+ - | RFInLoExportEnabled.DISABLE | The RF In local oscillator signal is not present at the front panel LO OUT connector. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | RFInLoExportEnabled.ENABLE | The RF In local oscillator signal is present at the front panel LO OUT connector. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | RFInLoExportEnabled.UNSPECIFIED | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - script_trigger_terminal_name = _attributes.AttributeViString(1150116) - '''Type: str - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/ScriptTrigger *X*, where *AWGName* is the name of your associated AWG module in MAX and *X* is Script Trigger 0 through 3. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ScriptTrigger *X*, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Script Trigger 0 through 3. - - PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX and *X* is Script Trigger 0 through 3. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX, *ChannelNumber* is the channel number (0 or 1), and *X* is Script Trigger 0 through 3. - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - get_terminal_name - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_terminal_name` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.script_trigger_terminal_name` - ''' - script_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerType, 1150019) - '''Type: enums.ScriptTriggerType - - Specifies the Script Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** ScriptTriggerType.NONE - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Trigger Types `_ - - **High-Level Methods**: - - - configure_digital_edge_script_trigger - - **Defined Values**: - - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +=================================+=======================================================================================================================================================================================================================================================================+ - | ScriptTriggerType.NONE | No trigger is configured. Signal generation starts immediately. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ScriptTriggerType.DIGITAL_EDGE | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified with the digital_edge_start_trigger_edge property. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ScriptTriggerType.DIGITAL_LEVEL | The data operation does not start until the digital level is detected. The source of the digital level is specified in the digital_level_script_trigger_source property, and the active level is specified in the digital_level_script_trigger_active_level property. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ScriptTriggerType.SOFTWARE | The data operation does not start until a software trigger occurs. You can create a software event by calling the send_software_edge_trigger method. | - +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset. - - Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` - - To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.script_trigger_type` - ''' - selected_path = _attributes.AttributeViString(1150311) - '''Type: str - - Specifies which path to configure to generate a signal. - ''' - selected_ports = _attributes.AttributeViString(1150241) - '''Type: str - - Specifies the port to configure. - - **Valid Values**: - - PXIe-5644/5645/5646, PXIe-5820/5840/5841: "" (empty string) - - PXIe-5830: if0, if1 - - PXIe-5831/5832: if0, if1, rf*0-1*/port*x*, where *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and *x* is the port number on the mmRH-5582 front panel. - - **Default Value:** - - PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860: "" (empty string) - - PXIe-5830/5831/5832: if0 - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - available_ports - - Note: When using RF list mode, ports cannot be shared with NI-RFSA. - ''' - selected_script = _attributes.AttributeViString(1150023) - '''Type: str - - Specifies the script in onboard memory to generate upon calling the _initiate method when the generation_mode property is set to GenerationMode.SCRIPT. - - The selected_script property is ignored when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.CW. To set the selected_script property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - `Scripting Instructions `_ - ''' - self_calibration_temperature = _attributes.AttributeViReal64(1150136) - '''Type: float - - Indicates, in degrees Celsius, the temperature of the device at the time of the last self calibration. - - **Supported Devices:** PXIe-5644/5645/5646 - ''' - serial_number = _attributes.AttributeViString(1150026) - '''Type: str - - Returns the serial number of the RF module. If the NI-RFSG session is controlling multiple modules, this property returns the serial number of the primary RF module. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - signal_bandwidth = _attributes.AttributeViReal64(1150007) - '''Type: float - - Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× iq_rate). - - NI-RFSG defines *signal bandwidth* as twice the maximum baseband signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* :sub:`max` - *f* :sub:`min` . - - This property applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT, except for when using the PXIe-5830/5831/5832/5840/5841, which supports setting this property in all supported generation modes. To set the signal_bandwidth property, the NI-RFSG device must be in the Configuration state. - - PXI-5670/5671, PXIe-5672: Based on your signal bandwidth, NI-RFSG determines whether to configure the upconverter center frequency in increments of 1MHz or 5MHz. Failure to configure this property may result in the signal being placed outside the upconverter passband. - - PXIe-5644/5645/5646, PXIe-5673/5673E: This property is used only for error-checking purposes. Otherwise, this property is ignored. - - PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Based on your signal bandwidth, NI-RFSG decides the equalized bandwidth. If this property is not set, NI-RFSG uses the maximum available signal bandwidth. For the PXIe-5840/5841, the maximum allowed signal bandwidth depends on the upconverter center frequency. Refer to the specifications document for your device for more information about signal bandwidth. The device specifications depend on the signal bandwidth. - - **Units**: hertz (Hz) - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Phase-Locked Loop Bandwidth `_ - - `Frequency Tuning Times `_ - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - ''' - specific_driver_class_spec_major_version = _attributes.AttributeViInt32(1050515) - '''Type: int - - Returns the major version number of the class specification with which NI-RFSG is compliant. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - specific_driver_class_spec_minor_version = _attributes.AttributeViInt32(1050516) - '''Type: int - - Returns the minor version number of the class specification with which NI-RFSG is compliant. - - **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - Returns a string that contains a brief description of NI-RFSG. This property returns - - National Instruments RF Signal Generator Instrument Driver. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - specific_driver_prefix = _attributes.AttributeViString(1050302) - '''Type: str - - Returns a string that contains the prefix for NI-RFSG. The name of each user-callable method in NI-RFSG starts with this prefix. This property returns - - niRFSG. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - Returns a string that contains additional version information about NI-RFSG. For example, NI-RFSG can return - - Driver: NI-RFSG14.5.0, Compiler: MSVC9.00, Components: IVI Engine4.00, VISA-Spec4.00 as the value of this property. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - Returns a string that contains the name of the vendor that supplies NI-RFSG. This property returns - - National Instruments. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - started_event_terminal_name = _attributes.AttributeViString(1150112) - '''Type: str - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartedEvent, where *AWGName* is the name of your associated AWG module in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartedEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841: /*ModuleName*/ao/0/StartedEvent, where *ModuleName* is the name of your device in MAX. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartedEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - start_trigger_terminal_name = _attributes.AttributeViString(1150114) - '''Type: str - - Returns the name of the fully qualified signal name as a string. - - **Default Values**: - - PXIe-5654/5654 with PXIe-5696: /*ModuleName*/StartTrigger, where *ModuleName* is the name of your device in MAX. - - PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartTrigger, where *ModuleName* is the name of your associated AWG module in MAX. - - PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. - - PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/StartTrigger, where *ModuleName* is the name of your device in MAX. - - PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). - - **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Syntax for Terminal Names `_ - - **High-Level Methods**: - - - get_terminal_name - ''' - start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerType, 1250458) - '''Type: enums.StartTriggerType - - Specifies the Start Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** StartTriggerType.NONE - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Trigger Types `_ - - **High-Level Methods**: - - - configure_digital_edge_start_trigger - - configure_software_start_trigger - - disable_start_trigger - - **Defined Values**: - - +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +===============================+========================================================================================================================================================================================================================================================+ - | StartTriggerType.NONE | No trigger is configured. | - +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | StartTriggerType.DIGITAL_EDGE | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified in the digital_edge_start_trigger_edge property. | - +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | StartTriggerType.SOFTWARE | The data operation does not start until a software event occurs. You may create a software trigger by calling the send_software_edge_trigger method. | - +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - streaming_enabled = _attributes.AttributeViBoolean(1150045) - '''Type: bool - - Enables and disables continuous streaming of waveform data. - - **Default Value:** False - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - **Defined Values**: - - +-------+------------------------+ - | Value | Description | - +=======+========================+ - | True | Streaming is enabled. | - +-------+------------------------+ - | False | Streaming is disabled. | - +-------+------------------------+ - ''' - streaming_space_available_in_waveform = _attributes.AttributeViInt64(1150047) - '''Type: int - - Indicates the space available, in samples, in the streaming waveform for writing new data. For optimal performance, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. This waveform size ensures that writes do not have to wrap around from the end to the beginning of the waveform buffer. - - To read this property, the NI-RFSG device must be in the Committed state. - - **Units**: samples - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - ''' - streaming_waveform_name = _attributes.AttributeViString(1150046) - '''Type: str - - Specifies the name of the waveform used to continually stream data during generation. - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Streaming Waveform Data `_ - ''' - streaming_write_timeout = _attributes.AttributeViReal64TimeDeltaSeconds(1150140) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Indicates the maximum amount of time allowed to complete a streaming write operation. - - **Default Value:** 10.0seconds - - **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Streaming Waveform Data `_ - ''' - supported_instrument_models = _attributes.AttributeViStringCommaSeparated(1050327) - '''Type: list of str - - Returns a list of supported devices. - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - sync_sample_clock_dist_line = _attributes.AttributeViString(1150181) - '''Type: str - - Specifies which external trigger line distributes the Sample Clock sync signal. When synchronizing the Sample Clock between multiple devices, configure all devices to use the same Sample Clock sync distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5646 - - **Related Topics** - - `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. - ''' - sync_sample_clock_master = _attributes.AttributeViBoolean(1150180) - '''Type: bool - - Specifies whether the device is the master device when synchronizing the Sample Clock between multiple devices. The master device distributes the Sample Clock sync signal to all devices in the system through the Sample Clock sync distribution line. - - When synchronizing the Sample Clock, one device must always be designated as the master. The master device actively drives the Sample Clock sync distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5646 - - **Related Topics** - - `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. - - **Defined Values**: - - +-------+---------------------------------------------------------------------+ - | Value | Description | - +=======+=====================================================================+ - | True | The device is the master device for synchronizing the Sample Clock. | - +-------+---------------------------------------------------------------------+ - | False | The device is not the master for synchronizing the Sample Clock. | - +-------+---------------------------------------------------------------------+ - ''' - sync_script_trigger_dist_line = _attributes.AttributeViString(1150143) - '''Type: str - - Specifies which external trigger line distributes the synchronized Script Trigger signal. When synchronizing the Script Trigger, configure all devices to use the same Script Trigger distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Script Trigger `_ - - `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - ''' - sync_script_trigger_master = _attributes.AttributeViBoolean(1150142) - '''Type: bool - - Specifies whether the device is the master device when synchronizing the Script Trigger. - - The master device distributes the synchronized Script Trigger to all devices in the system through the Script Trigger distribution line. - - When synchronizing the Script trigger, one device must always be designated as the master. The master device actively drives the Script Trigger distribution line. For slave devices, set the script_trigger_type property to digital edge, and set the digital_edge_script_trigger_source property to sync_script. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Script Trigger `_ - - `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - - **Defined Values**: - - +-------+-----------------------------------------------------------------------+ - | Value | Description | - +=======+=======================================================================+ - | True | The device is the master device for synchronizing the Script Trigger. | - +-------+-----------------------------------------------------------------------+ - | False | The device is not the master for synchronizing the Script Trigger. | - +-------+-----------------------------------------------------------------------+ - ''' - sync_start_trigger_dist_line = _attributes.AttributeViString(1150156) - '''Type: str - - Specifies which external trigger line distributes the synchronized Start Trigger signal. When synchronizing the Start Trigger, configure all devices to use the same Start Trigger distribution line. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 - - **Default Value:** "" (empty string) - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Start Trigger `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - ''' - sync_start_trigger_master = _attributes.AttributeViBoolean(1150155) - '''Type: bool - - Specifies whether the device is the master device when synchronizing the Start Trigger. The master device distributes the synchronized Start Trigger to all devices in the system through the Start Trigger distribution line. - - When synchronizing the Start Trigger, one device must always be designated as the master. The master device actively drives the Start Trigger distribution line. For slave devices, set the start_trigger_type property to digital edge, and set the digital_edge_start_trigger_source property to sync_script. - - To set this property, the NI-RFSG device must be in the Configuration state. - - **Default Value:** False - - **Supported Devices:** PXIe-5644/5645/5646 - - **Related Topics** - - `Start Trigger `_ - - Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. - - **Defined Values**: - - +-------+----------------------------------------------------------------------+ - | Value | Description | - +=======+======================================================================+ - | True | The device is the master device for synchronizing the Start Trigger. | - +-------+----------------------------------------------------------------------+ - | False | The device is not the master for synchronizing the Start Trigger. | - +-------+----------------------------------------------------------------------+ - ''' - temperature_read_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1150212) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the minimum time between temperature sensor readings. - - **Units:** Seconds - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - thermal_correction_headroom_range = _attributes.AttributeViReal64(1150258) - '''Type: float - - Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the device_temperature property. - - For example, if this property is set to 5.0, and the device is self-calibrated at 35°C, then you can expect to run the device from 30°C to 40°C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance or DSP overflows. - - **Units:** degrees Celsius (°C) - - **Default Value**: - - **PXIe-5830/5831/5832/5842/5860**: 5 - - **PXIe-5840/5841**: 10 - - **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 - ''' - thermal_correction_temperature_resolution = _attributes.AttributeViReal64(1150244) - '''Type: float - - Specifies the temperature change, in degrees Celsius, that is required before NI-RFSG recalculates the thermal correction settings when entering the Generation state. - - **Units:** degrees Celsius (°C) - - **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Default Values:** - - PXIe-5830/5831/5832/5842/5860: 0.2 - - PXIe-5840/5841: 1.0 - ''' - timer_event_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1150100) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the time before the timer emits an event after the task is started and specifies the time interval between Timer events after the first event. - - **Units**: seconds (s) - - **Default Value:** 0 - - **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Events `_ - - Note: For the PXIe-5820/5840/5841/5842/5860, this property must be set for the timer to start. If you do not set this property, the timer is disabled. - ''' - upconverter_center_frequency = _attributes.AttributeViReal64(1154098) - '''Type: float - - Indicates the center frequency of the passband containing the upconverted RF signal. Writing a value to this property while using the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, or PXIe-5820/5840/5841 device enables in-band retuning. In-band retuning increases the speed of frequency sweeps by reducing the amount of upconverter retunes. - - **Units**: hertz (Hz) - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - Note: - This property is read/write on the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842, and is read-only on the PXI-5670/5671. - - - Resetting this property disables in-band retuning, however, for the PXIe-5820, in-band retuning is always enabled. - - - For the PXIe-5820, the only valid value for this property is 0. - - - Setting this property while the PXIe-5644/5645/5646, PXIe-5673/5673E, or PXIe-5820/5830/5831/5832/5840/5841/5842 device is generating has no effect until a dynamic property is set. - ''' - upconverter_frequency_offset = _attributes.AttributeViReal64(1150160) - '''Type: float - - This property offsets the upconverter_center_frequency from the RF frequency. Use this property to keep the local oscillator (LO) leakage at a determined offset from the RF signal. - - **Valid Values:** - - PXIe-5644/5645: -42MHz to +42MHz - - PXIe-5646: -100MHz to +100MHz - - PXIe-5830/5831/5832/5840/5841: -500MHz to +500MHz - - PXI-5842 (500 MHz bandwidth option): -250MHz to +250MHz - - PXI-5842 (1 GHz bandwidth option): -500MHz to +500MHz - - PXI-5842 (2 GHz bandwidth option): -1GHz to +1GHz - - PXIe-5842 (4 GHz bandwidth option) using the Standard personality: -1GHz to +1GHz - - PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: -2GHz to +2GHz - - **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `PXIe-5830 Frequency and Bandwidth Selection `_ - - `PXIe-5831/5832 Frequency and Bandwidth Selection `_ - - `PXIe-5841 Frequency and Bandwidth Selection `_ - - Note: - You cannot set the upconverter_center_frequency property or the arb_carrier_frequency property at the same time as the upconverter_frequency_offset property. - - - Resetting this property disables the upconverter frequency offset. - ''' - upconverter_frequency_offset_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.UpconverterFrequencyOffsetMode, 1150248) - '''Type: enums.UpconverterFrequencyOffsetMode - - Specifies whether to allow NI-RFSG to select the upconverter frequency offset. You can either set an offset yourself or let NI-RFSG select one for you. - - Placing the upconverter center frequency outside the bandwidth of your waveform can help avoid issues such as LO leakage. - - To set an offset yourself, set this property to UpconverterFrequencyOffsetMode.AUTO or UpconverterFrequencyOffsetMode.USER_DEFINED, and set either the upconverter_center_frequency or the upconverter_frequency_offset property. - - To allow NI-RFSG to automatically select the upconverter frequency offset, set this property to UpconverterFrequencyOffsetMode.AUTO or UpconverterFrequencyOffsetMode.ENABLE and set the signal_bandwidth to describe the bandwidth of your waveform. The signal bandwidth must be no greater than half the value of the device_instantaneous_bandwidth property, minus a device-specific guard band. Do not set the upconverter_center_frequency or upconverter_frequency_offset properties. If all conditions are met, NI-RFSG places the upconverter center frequency outside the signal bandwidth. Set this property to UpconverterFrequencyOffsetMode.ENABLE if you want to receive an error any time NI-RFSG is unable to apply automatic offset. - - When you set an offset yourself or do not use an offset, the reference frequency for gain is near the upconverter center frequency, and upconverter_frequency_offset_mode returns UpconverterFrequencyOffsetMode.USER_DEFINED. When NI-RFSG automatically sets an offset, the reference frequency for gain is near the frequency and upconverter_frequency_offset_mode returns UpconverterFrequencyOffsetMode.ENABLE. - - **Default Value:** UpconverterFrequencyOffsetMode.AUTO - - **Supported Devices**: PXIe-5830/5831/5832/5841/5842 - - **Related Topics** - - `PXIe-5830 Automatic Frequency Offset `_ - - `PXIe-5831/5832 Automatic Frequency Offset `_ - - `PXIe-5841 Automatic Frequency Offset `_ - - **Defined Values**: - - +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +=============================================+========================================================================================================================================================================================================================================================================+ - | UpconverterFrequencyOffsetMode.ENABLE | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSG returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. | - +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | UpconverterFrequencyOffsetMode.AUTO | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. | - +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | UpconverterFrequencyOffsetMode.USER_DEFINED | NI-RFSG uses the offset that you specified with the upconverter_frequency_offset or upconverter_center_frequency properties. | - +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: Below 120 MHz, the PXIe-5841 does not use an LO and UpconverterFrequencyOffsetMode.ENABLE is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - upconverter_gain = _attributes.AttributeViReal64(1154097) - '''Type: float - - Specifies the gain the upconverter applies to the signal. - - **Units**: dB - - **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: This property is read/write on the PXI-5610 and PXIe-5611 and is read-only on the PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. - ''' - waveform_iq_rate = _attributes.AttributeViReal64(1150263) - '''Type: float - - Specifies the I/Q rate of the waveform. To set this property, the NI-RFSG device must be in the Configuration state. - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. - - `Digital Upconverter `_ - - Tip: - This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_iq_rate` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_iq_rate` - ''' - waveform_papr = _attributes.AttributeViReal64(1150266) - '''Type: float - - Specifies the peak-to-average power ratio (PAPR). - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_papr` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_papr` - ''' - waveform_rf_blanking = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RFBlanking, 1150278) - '''Type: enums.RFBlanking - - **Defined Values**: - - Name (Value): Description - - RFBlanking.DISABLE (0): RF blanking is disabled. - - RFBlanking.ENABLE (1): RF blanking is enabled. - - **Default Value:** RFBlanking.DISABLE - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Marker Events `_ - - Enables or disables RF blanking. - - +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ - | rf_blanking_source | waveform_rf_blanking | Behaviour | - +===================================================================================+======================+===========================================================================================================+ - | "" (empty string) | RFBlanking.DISABLE | No blanking performed. | - +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ - | "" (empty string) | RFBlanking.ENABLE | Blanking performed based on burst start and stop values and blanking source set to private marker. | - +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ - | NIRFSG_VAL_MARKER0, NIRFSG_VAL_MARKER1, NIRFSG_VAL_MARKER2, or NIRFSG_VAL_MARKER3 | RFBlanking.DISABLE | Blanking performed based on the marker locations for the marker that the user set in the blanking source. | - +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ - | NIRFSG_VAL_MARKER0, NIRFSG_VAL_MARKER1, NIRFSG_VAL_MARKER2, or NIRFSG_VAL_MARKER3 | RFBlanking.ENABLE | Error is shown. | - +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ - - Note: For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any Reset or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call reset_with_options or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_rf_blanking` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_rf_blanking` - ''' - waveform_runtime_scaling = _attributes.AttributeViReal64(1150265) - '''Type: float - - Specifies the waveform runtime scaling. The waveform runtime scaling is applied to the waveform data before any other signal processing. - - **Units**: dB - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860, PXIe-5841 with PXIe-5655 - - Tip: - This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_runtime_scaling` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_runtime_scaling` - ''' - waveform_signal_bandwidth = _attributes.AttributeViReal64(1150264) - '''Type: float - - Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× iq_rate). - - **Units**: hertz (Hz) - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_signal_bandwidth` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_signal_bandwidth` - ''' - waveform_waveform_size = _attributes.AttributeViInt32(1150297) - '''Type: int - - Specifies the size of the waveform specified by an active channel. - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5841 with PXIe-5655/5842/5860 - - Tip: - This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset. - - Example: :py:attr:`my_session.waveforms[ ... ].waveform_waveform_size` - - To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. - - Example: :py:attr:`my_session.waveform_waveform_size` - ''' - write_waveform_burst_detection = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WriteWaveformBurstDetection, 1150273) - '''Type: enums.WriteWaveformBurstDetection - - Enables the detection of burst start and burst stop locations in the waveform. You can read the detected burst start and burst stop locations using get_waveform_burst_start_locations and get_waveform_burst_stop_locations methods respectively. - - **Default Value:** WriteWaveformBurstDetection.DISABLE - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +-------------------------------------+------------------------------+ - | Value | Description | - +=====================================+==============================+ - | WriteWaveformBurstDetection.ENABLE | Burst detection is enabled. | - +-------------------------------------+------------------------------+ - | WriteWaveformBurstDetection.DISABLE | Burst detection is disabled. | - +-------------------------------------+------------------------------+ - - Note: - When you download a waveform using ReadAndDownloadWaveformFromFileTdms method and if waveform_rf_blanking property is enabled, you must set the write_waveform_burst_detection property to WriteWaveformBurstDetection.DISABLE. - - - For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any Reset or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call reset_with_options or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - write_waveform_burst_detection_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WriteWaveformBurstDetectionMode, 1150274) - '''Type: enums.WriteWaveformBurstDetectionMode - - Specifies the algorithm that NI-RFSG uses to detect the burst start and burst stop locations in the waveform when burst detection is enabled using the write_waveform_burst_detection property. When you set write_waveform_burst_detection_mode to WriteWaveformBurstDetectionMode.AUTO, NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. To fine-tune the burst detection process parameters yourself, you can set this property to WriteWaveformBurstDetectionMode.MANUAL and specify the burst detection parameters using the write waveform burst detection minimum quiet time, write_waveform_burst_detection_power_threshold, write waveform burst detection minimum burst time properties. - - **Default Value:** WriteWaveformBurstDetectionMode.AUTO - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +----------------------------------------+---------------------------------------------------------------------------------------------------+ - | Value | Description | - +========================================+===================================================================================================+ - | WriteWaveformBurstDetectionMode.AUTO | NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. | - +----------------------------------------+---------------------------------------------------------------------------------------------------+ - | WriteWaveformBurstDetectionMode.MANUAL | User sets the burst detection parameters. | - +----------------------------------------+---------------------------------------------------------------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - write_waveform_burst_detection_power_threshold = _attributes.AttributeViReal64(1150276) - '''Type: float - - Specifies the relative power level at which burst start or stop locations are detected. The threshold is relative to the peak power in the waveform. NI-RFSG detects burst start (or burst stop) locations when the signal exceeds (or falls below) the level specified by this property. This property is ignored when you disable the write_waveform_burst_detection property or when you set the write_waveform_burst_detection_mode property to NIRFSG_VAL_AUTO. - - **Units:** dB - - **Default Value:** 0 - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - write_waveform_normalization = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WriteWaveformNormalization, 1150293) - '''Type: enums.WriteWaveformNormalization - - Specifies whether to perform the normalization on a waveform. - - **Default Value:** WriteWaveformNormalization.DISABLE - - **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Defined Values**: - - +------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ - | Value | Description | - +====================================+=========================================================================================================================+ - | WriteWaveformNormalization.ENABLE | Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 | - +------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ - | WriteWaveformNormalization.DISABLE | Disables normalization on the waveform. | - +------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ - - Note: You can not set write_waveform_normalization and power_level_type properties at the same time. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - yig_main_coil_drive = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.YigMainCoilDrive, 1150118) - '''Type: enums.YigMainCoilDrive - - Adjusts the dynamics of the current driving the YIG main coil. - - **Default Value:** YigMainCoilDrive.MANUAL - - **Supported Devices:** PXIe-5653 - - **Defined Values**: - - +-----------------------+--------------------------------------------------------+ - | Value | Description | - +=======================+========================================================+ - | NIRFSG_VAL_SLOW | Adjusts the YIG main coil for an underdamped response. | - +-----------------------+--------------------------------------------------------+ - | YigMainCoilDrive.FAST | Adjusts the YIG main coil for an overdamped response. | - +-----------------------+--------------------------------------------------------+ - - Note: Setting this property to YigMainCoilDrive.FAST on the PXIe-5653 allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.markers = _RepeatedCapabilities(self, 'marker', repeated_capability_list) - self.script_triggers = _RepeatedCapabilities(self, 'scripttrigger', repeated_capability_list) - self.waveforms = _RepeatedCapabilities(self, 'waveform::', repeated_capability_list) - self.ports = _RepeatedCapabilities(self, '', repeated_capability_list) - self.los = _RepeatedCapabilities(self, 'LO', repeated_capability_list) - self.device_temperatures = _RepeatedCapabilities(self, '', repeated_capability_list) - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nirfsg', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def configure_digital_edge_script_trigger(self, source, edge): - r'''configure_digital_edge_script_trigger - - Configures the specified Script Trigger for digital edge triggering. - - The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Edge Trigger `_ - - Tip: - This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_edge_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.configure_digital_edge_script_trigger` - - Args: - source (str): Specifies the source terminal for the digital edge Script Trigger. NI-RFSG sets the digital_edge_script_trigger_source property to this value. - - edge (enums.ScriptTriggerDigitalEdgeEdge): Specifies the active edge for the digital edge Script Trigger. NI-RFSG sets the digital_edge_script_trigger_edge property to this value. - - ''' - if type(edge) is not enums.ScriptTriggerDigitalEdgeEdge: - raise TypeError('Parameter edge must be of type ' + str(enums.ScriptTriggerDigitalEdgeEdge)) - self._interpreter.configure_digital_edge_script_trigger(self._repeated_capability, source, edge) - - @ivi_synchronized - def configure_digital_level_script_trigger(self, source, level): - r'''configure_digital_level_script_trigger - - Configures a specified Script Trigger for digital level triggering. - - The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Digital Level Trigger `_ - - Tip: - This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_level_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.configure_digital_level_script_trigger` - - Args: - source (str): Specifies the trigger source terminal for the digital level Script Trigger. NI-RFSG sets the digital_level_script_trigger_source property to this value. - - level (int): Specifies the active level for the digital level Script Trigger. NI-RFSG sets the digital_level_script_trigger_active_level property to this value. - - ''' - self._interpreter.configure_digital_level_script_trigger(self._repeated_capability, source, level) - - @ivi_synchronized - def configure_software_script_trigger(self): - r'''configure_software_script_trigger - - Configures the Script Trigger for software triggering. - - Refer to the send_software_edge_trigger method for more information about using the software Script Trigger. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - `Trigger Types `_ - - Tip: - This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].configure_software_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.configure_software_script_trigger` - ''' - self._interpreter.configure_software_script_trigger(self._repeated_capability) - - @ivi_synchronized - def disable_script_trigger(self): - r'''disable_script_trigger - - Configures the device not to wait for the specified Script Trigger. - - Call this method only if you previously configured a Script Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Script Trigger `_ - - Tip: - This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container script_triggers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.script_triggers[ ... ].disable_script_trigger` - - To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.disable_script_trigger` - ''' - self._interpreter.disable_script_trigger(self._repeated_capability) - - def error_message(self, error_code): - r'''error_message - - Converts an error code returned by an NI-RFSG method into a user-readable string. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - error_code (int): Pass the status parameter that is returned from any NI-RFSG method. - - **Default Value** : 0 (VI_SUCCESS) - - - Returns: - error_message (str): Returns the user-readable message string that corresponds to the status code you specify. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. - - Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute (int): Pass the ID of a property. - - - Returns: - value (bool): Returns the current value of the property. Pass the address of a ViBoolean variable. - - ''' - value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. - - Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute (int): Pass the ID of a property. - - - Returns: - value (int): Returns the current value of the property. Pass the address of a ViInt32 variable. - - ''' - value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_int64(self, attribute): - r'''_get_attribute_vi_int64 - - Queries the value of a ViInt64 property. - - You can use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int64` - - Args: - attribute (int): Pass the ID of a property. - - - Returns: - value (int): Returns the current value of the property. Pass the address of a ViInt64 variable. - - ''' - value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute): - r'''_get_attribute_vi_real64 - - Queries the value of a ViReal64 property. - - Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute (int): Pass the ID of a property. - - - Returns: - value (float): Returns the current value of the property. Pass the address of a ViReal64 variable. - - ''' - value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_session(self, attribute): - r'''_get_attribute_vi_session - - Queries the value of a ViSession property. - - Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_session` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_session` - - Args: - attribute (int): Pass the ID of a property. - - - Returns: - value (int): Returns the current value of the property. Pass the address of a ViSession variable. - - ''' - value = self._interpreter.get_attribute_vi_session(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute): - r'''_get_attribute_vi_string - - Queries the value of a ViString property. - - Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid. - - You must provide a ViString (ViChar array) to serve as a buffer for the value. Pass the number of bytes in the buffer as the Buffer Size parameter. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the buffer size parameter, the method copies buffer size-1 bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is "123456" and the buffer size is 4, the method places "123" into the buffer and returns 7. - - To call this method to get only the required buffer size, pass 0 for the buffer size and VI_NULL for the property value buffer. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute (int): Pass the ID of a property. - - - Returns: - value (str): The buffer in which the method returns the current value of the property. The buffer must be of type ViChar and have at least as many bytes as indicated in the **bufferSize** parameter. - - If you specify 0 for the **bufferSize** parameter, you can pass VI_NULL for this parameter. - - ''' - value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute) - return value - - @ivi_synchronized - def get_waveform_burst_start_locations(self): - r'''get_waveform_burst_start_locations - - Returns the burst start locations of the waveform stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Tip: - This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_start_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.get_waveform_burst_start_locations` - - Returns: - locations (list of float): Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the CHANNEL_NAME parameter. This value is expressed in samples. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - locations = self._interpreter.get_waveform_burst_start_locations(self._repeated_capability) - return locations - - @ivi_synchronized - def get_waveform_burst_stop_locations(self): - r'''get_waveform_burst_stop_locations - - Returns the burst stop locations of the waveform stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Tip: - This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_stop_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.get_waveform_burst_stop_locations` - - Returns: - locations (list of float): Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the CHANNEL_NAME parameter. This value is expressed in samples. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - locations = self._interpreter.get_waveform_burst_stop_locations(self._repeated_capability) - return locations - - @ivi_synchronized - def get_waveform_marker_event_locations(self): - r'''get_waveform_marker_event_locations - - Returns the marker locations associated with the waveform and the marker stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Tip: - This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.markers[ ... ].get_waveform_marker_event_locations` - - To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.get_waveform_marker_event_locations` - - Returns: - locations (list of float): Returns the marker locations stored in the NI-RFSG database for the channel you specified in the CHANNEL_NAME parameter. This value is expressed in samples. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - locations = self._interpreter.get_waveform_marker_event_locations(self._repeated_capability) - return locations - - @ivi_synchronized - def load_configurations_from_file(self, file_path): - r'''load_configurations_from_file - - Loads the configurations from the specified file to the NI-RFSG driver session. - - The VI does an implicit reset before loading the configurations from the file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.load_configurations_from_file` - - Args: - file_path (str): Specifies the absolute path of the file from which the NI-RFSG loads the configurations. - - ''' - self._interpreter.load_configurations_from_file(self._repeated_capability, file_path) - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-RFSG locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, nirfsg.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def save_configurations_to_file(self, file_path): - r'''save_configurations_to_file - - Saves the configurations of the session to the specified file. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.save_configurations_to_file` - - Args: - file_path (str): Specifies the absolute path of the file to which the NI-RFSG saves the configurations. - - ''' - self._interpreter.save_configurations_to_file(self._repeated_capability, file_path) - - @ivi_synchronized - def send_software_edge_trigger(self, trigger, trigger_identifier): - r'''send_software_edge_trigger - - Forces a trigger to occur. - - The specified trigger generates regardless of whether the trigger has been configured as a software trigger. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - Args: - trigger (enums.SoftwareTriggerType): Specifies the trigger to send. - - **Default Value:** SoftwareTriggerType.START - - **Defined Values:** - - +----------------------------+---------+-------------------------------+ - | Name | Value | Description | - +============================+=========+===============================+ - | SoftwareTriggerType.START | 0 (0x0) | Specifies the Start Trigger. | - +----------------------------+---------+-------------------------------+ - | SoftwareTriggerType.SCRIPT | 1 (0x1) | Specifies the Script Trigger. | - +----------------------------+---------+-------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - trigger_identifier (enums.TriggerIdentifier): Specifies the Script Trigger to configure. This parameter is valid only when you set the TRIGGER parameter to NIRFSG_VAL_START_TRIGGER. Otherwise, set the TRIGGER_IDENTIFIER parameter to "" (empty string). - - **Default Value:** "" (empty string) - - **Possible Values:** - - +----------------+-----------------------------+ - | Possible Value | Description | - +================+=============================+ - | scriptTrigger0 | Specifies Script Trigger 0. | - +----------------+-----------------------------+ - | scriptTrigger1 | Specifies Script Trigger 1. | - +----------------+-----------------------------+ - | scriptTrigger2 | Specifies Script Trigger 2. | - +----------------+-----------------------------+ - | scriptTrigger3 | Specifies Script Trigger 3. | - +----------------+-----------------------------+ - | | None (no signal to export) | - +----------------+-----------------------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(trigger) is not enums.SoftwareTriggerType: - raise TypeError('Parameter trigger must be of type ' + str(enums.SoftwareTriggerType)) - if type(trigger_identifier) is not enums.TriggerIdentifier: - raise TypeError('Parameter trigger_identifier must be of type ' + str(enums.TriggerIdentifier)) - self._interpreter.send_software_edge_trigger(trigger, trigger_identifier) - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute, value): - r'''_set_attribute_vi_boolean - - Sets the value of a ViBoolean property. - - Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. - - NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. - - Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute (int): Pass the ID of a property. - - value (bool): Pass the value to which you want to set the property. - - Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute, value): - r'''_set_attribute_vi_int32 - - Sets the value of a ViInt32 property. - - Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. - - NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. - - Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute (int): Pass the ID of a property. - - value (int): Specifies the value to which you want to set the property. - - Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_int64(self, attribute, value): - r'''_set_attribute_vi_int64 - - Sets the value of a ViInt64 property. - - Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. - - NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. - - Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int64` - - Args: - attribute (int): Pass the ID of a property. - - value (int): Pass the value to which you want to set the property. - -
- Some values may not be valid. The allowed values depend on the current settings of the instrument session. -
- - ''' - self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute, value): - r'''_set_attribute_vi_real64 - - Sets the value of a ViReal64 property. - - Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. - - NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. - - Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute (int): Pass the ID of a property. - - value (float): Pass the value to which you want to set the property. - - Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute, value) - - @ivi_synchronized - def _set_attribute_vi_session(self, attribute): - r'''_set_attribute_vi_session - - Sets the value of a ViSession property. - - Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. - - NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. - - Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_session` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_session` - - Args: - attribute (int): Pass the ID of a property. - - ''' - self._interpreter.set_attribute_vi_session(self._repeated_capability, attribute) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute, value): - r'''_set_attribute_vi_string - - Sets the value of a ViString property. - - Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the particular property. - - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. - - NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. - - Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute (int): Pass the ID of a property. - - value (str): Pass the value to which you want to set the property. - - Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute, value) - - @ivi_synchronized - def set_waveform_burst_start_locations(self, locations): - r'''set_waveform_burst_start_locations - - Configures the start location of the burst in samples where the burst refers to the active portion of a waveform. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Tip: - This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_start_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.set_waveform_burst_start_locations` - - Args: - locations (list of float): Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the CHANNEL_NAME parameter. This value is expressed in samples. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - self._interpreter.set_waveform_burst_start_locations(self._repeated_capability, locations) - - @ivi_synchronized - def set_waveform_burst_stop_locations(self, locations): - r'''set_waveform_burst_stop_locations - - Configures the stop location of the burst in samples where the burst refers to the active portion of a waveform. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Tip: - This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container waveforms to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_stop_locations` - - To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.set_waveform_burst_stop_locations` - - Args: - locations (list of float): Specifies the burst stop locations, in samples, to store in the NI-RFSG session. - - ''' - self._interpreter.set_waveform_burst_stop_locations(self._repeated_capability, locations) - - @ivi_synchronized - def set_waveform_marker_event_locations(self, locations): - r'''set_waveform_marker_event_locations - - Configures the marker locations associated with waveform and marker in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Tip: - This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. - Use Python index notation on the repeated capabilities container markers to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.markers[ ... ].set_waveform_marker_event_locations` - - To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. - - Example: :py:meth:`my_session.set_waveform_marker_event_locations` - - Args: - locations (list of float): Specifies the marker location, in samples, to store in the NI-RFSG database. - - ''' - self._interpreter.set_waveform_marker_event_locations(self._repeated_capability, locations) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - -class Session(_SessionBase): - '''An NI-RFSG session to the NI-RFSG driver''' - - def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): - r'''An NI-RFSG session to the NI-RFSG driver - - Opens a session to the device you specify as the RESOURCE_NAME and returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. - - This method also configures the device through the OPTION_STRING input. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Simulating an NI RF Signal Generator `_ - - Note: For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending /*ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - resource_name (str): Specifies the resource name of the device to initialize. - - For NI-DAQmx devices, the syntax is the device name specified in MAX. Typical default names for NI-DAQmx devices in MAX are Dev2 or PXISlot2. You can rename an NI-DAQmx device in MAX. - - You can also specify the name of an IVI logical name configured with the IVI Configuration utility. Refer to the *IVI* topic of the *Measurement & Automation Explorer Help* for more information. - - Note: NI-RFSG device names are not case-sensitive. However, all IVI names, such as logical names, are case-sensitive. If you use an IVI logical name, make sure the name is identical to the name shown in the IVI Configuration Utility. - - id_query (bool): Specifies whether you want NI-RFSG to perform an ID query. - - **Defined Values** : - - +-----------+--------------------------+ - | Value | Description | - +===========+==========================+ - | True (1) | Perform ID query. | - +-----------+--------------------------+ - | False (0) | Do not perform ID query. | - +-----------+--------------------------+ - - reset_device (bool): Specifies whether you want to reset the NI-RFSG device during the initialization procedure. - - **Defined Values** : - - +-----------+----------------------+ - | Value | Description | - +===========+======================+ - | True (1) | Reset device. | - +-----------+----------------------+ - | False (0) | Do not reset device. | - +-----------+----------------------+ - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - grpc_options (nirfsg.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - new_vi (int): Returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. - - ''' - if grpc_options: - import nirfsg._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_options fails, the error handler can reference it. - # And then here, once _init_with_options succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-RFSG', grpc_options.grpc_channel, connected) - - # NI-TClk does not work over NI gRPC Device Server - if not grpc_options: - self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("id_query=" + pp.pformat(id_query)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Initiates signal generation, causing the NI-RFSG device to leave the Configuration state and enter the Generation state. - - If the settings have not been committed to the device before you call this method, they are committed by this method. The operation returns when the RF output signal settles. To return to the Configuration state, call the abort method. - - **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Generation(self) - - def close(self): - '''close - - Aborts any signal generation in progress and destroys the instrument driver session. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - `NI-RFSG Programming State Model `_ - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Stops signal generation. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Programming State Model `_ - ''' - self._interpreter.abort() - - @ivi_synchronized - def allocate_arb_waveform(self, waveform_name, size_in_samples): - r'''allocate_arb_waveform - - Allocates onboard memory space for the arbitrary waveform. - - Use this method to specify the total size of a waveform before writing the data. Use this method only if you are calling the WriteArbWaveform method multiple times to write a large waveform in smaller blocks. - - The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming Waveform Data `_ - - Args: - waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - size_in_samples (int): Specifies the number of samples to reserve in the onboard memory for the specified waveform. Each I/Q pair is considered one sample. - - ''' - self._interpreter.allocate_arb_waveform(waveform_name, size_in_samples) - - @ivi_synchronized - def change_external_calibration_password(self, old_password, new_password): - r'''change_external_calibration_password - - Changes the external calibration password of the device. - - **Supported Devices:** PXIe-5611, PXIe-5653/5654, PXIe-5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - old_password (str): Specifies the old (current) external calibration password. This password is case sensitive. - - new_password (str): Specifies the new (desired) external calibration password. - - ''' - self._interpreter.change_external_calibration_password(old_password, new_password) - - @ivi_synchronized - def check_generation_status(self): - r'''check_generation_status - - Checks the status of the generation. - - Call this method to check for any errors that might occur during the signal generation or to check whether the device has finished generating. - - **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow ` - - Returns: - is_done (bool): Returns information about the completion of signal generation. - - **Defined Values** : - - +-------+---------------------------------+ - | Value | Description | - +=======+=================================+ - | True | Signal generation is complete. | - +-------+---------------------------------+ - | False | Signal generation is occurring. | - +-------+---------------------------------+ - - ''' - is_done = self._interpreter.check_generation_status() - return is_done - - @ivi_synchronized - def check_if_script_exists(self, script_name): - r'''check_if_script_exists - - Returns whether the script that you specify as SCRIPT_NAME exists. - - **Supported Devices** : PXIe-5673/5673E. PXIe-5830/5831/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - script_name (str): Specifies the name of the script. This string is case-insensitive. - - - Returns: - script_exists (bool): Returns True if the script exists. - - **Defined Values** : - - +-------+----------------------------+ - | Value | Description | - +=======+============================+ - | True | The script exists. | - +-------+----------------------------+ - | False | The script does not exist. | - +-------+----------------------------+ - - ''' - script_exists = self._interpreter.check_if_script_exists(script_name) - return script_exists - - @ivi_synchronized - def check_if_waveform_exists(self, waveform_name): - r'''check_if_waveform_exists - - Returns whether the waveform that you specify as WAVEFORM_NAME exists. - - **Supported Devices** : PXIe-5673/5673E, PXIe-5830/5831/5840/5841/5842/5860 - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - waveform_name (str): Specifies the name used to store the waveform. This string is case-insensitive. - - - Returns: - waveform_exists (bool): Returns True if the waveform exists. - - **Defined Values** : - - +-------+------------------------------+ - | Value | Description | - +=======+==============================+ - | True | The waveform exists. | - +-------+------------------------------+ - | False | The waveform does not exist. | - +-------+------------------------------+ - - ''' - waveform_exists = self._interpreter.check_if_waveform_exists(waveform_name) - return waveform_exists - - @ivi_synchronized - def clear_all_arb_waveforms(self): - r'''clear_all_arb_waveforms - - Deletes all currently defined waveforms and scripts. - - The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - ''' - self._interpreter.clear_all_arb_waveforms() - - @ivi_synchronized - def clear_arb_waveform(self, waveform_name): - r'''clear_arb_waveform - - Deletes a specified waveform from the pool of currently defined waveforms. - - The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - waveform_name (str): Name of the stored waveform to delete. - - ''' - self._interpreter.clear_arb_waveform(waveform_name) - - @ivi_synchronized - def clear_self_calibrate_range(self): - r'''clear_self_calibrate_range - - Clears the data obtained from the self_calibrate_range method. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - ''' - self._interpreter.clear_self_calibrate_range() - - @ivi_synchronized - def commit(self): - r'''commit - - Programs the device with the correct settings. - - Calling this method moves the NI-RFSG device from the Configuration state to the Committed state. After this method executes, a change to any property reverts the NI-RFSG device to the Configuration state. - - **Supported devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Programming State Model `_ - ''' - self._interpreter.commit() - - @ivi_synchronized - def configure_deembedding_table_interpolation_linear(self, port, table_name, format): - r'''configure_deembedding_table_interpolation_linear - - Selects the linear interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - format (enums.Format): Specifies the format of parameters to interpolate. **Defined Values** : - - +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +===============================+================+=========================================================================================================================================+ - | Format.REAL_AND_IMAGINARY | 26000 (0x6590) | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | - +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Format.MAGNITUDE_AND_PHASE | 26001 (0x6591) | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | - +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - | Format.MAGNITUDE_DB_AND_PHASE | 26002 (0x6592) | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | - +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ - - ''' - if type(format) is not enums.Format: - raise TypeError('Parameter format must be of type ' + str(enums.Format)) - self._interpreter.configure_deembedding_table_interpolation_linear(port, table_name, format) - - @ivi_synchronized - def configure_deembedding_table_interpolation_nearest(self, port, table_name): - r'''configure_deembedding_table_interpolation_nearest - - Selects the nearest interpolation method. - - NI-RFSG uses the parameters of the table nearest to the carrier frequency for de-embedding. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - ''' - self._interpreter.configure_deembedding_table_interpolation_nearest(port, table_name) - - @ivi_synchronized - def configure_deembedding_table_interpolation_spline(self, port, table_name): - r'''configure_deembedding_table_interpolation_spline - - Selects the spline interpolation method. - - If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - ''' - self._interpreter.configure_deembedding_table_interpolation_spline(port, table_name) - - @ivi_synchronized - def configure_digital_edge_start_trigger(self, source, edge): - r'''configure_digital_edge_start_trigger - - Configures the Start Trigger for digital edge triggering. - - The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Digital Edge Trigger `_ - - Note: For the PXIe-5654/5654 with PXIe-5696, the Start Trigger is valid only with a timer-based list when RF list mode is enabled. - - Args: - source (str): Specifies the source terminal for the digital edge trigger. NI-RFSG sets the digital_edge_start_trigger_source property to this value. - - edge (enums.StartTriggerDigitalEdgeEdge): Specifies the active edge for the Start Trigger. NI-RFSG sets the digital_edge_start_trigger_edge property to this value. - - ''' - if type(edge) is not enums.StartTriggerDigitalEdgeEdge: - raise TypeError('Parameter edge must be of type ' + str(enums.StartTriggerDigitalEdgeEdge)) - self._interpreter.configure_digital_edge_start_trigger(source, edge) - - @ivi_synchronized - def configure_rf(self, frequency, power_level): - r'''configure_rf - - Configures the frequency and power level of the RF output signal. - - The PXI-5670/5671, PXIe-5672, and PXIe-5860 device must be in the Configuration state before calling this method. The PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 device can be in the Configuration or Generation state when you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - Args: - frequency (float): Specifies the frequency of the generated RF signal, in hertz. For arbitrary waveform generation, this parameter specifies the center frequency of the signal. - - **Units** : hertz (Hz) - - power_level (float): Specifies either the average power level or peak power level of the generated RF signal, depending on the power_level_type property. - - **Units** : dBm - - ''' - self._interpreter.configure_rf(frequency, power_level) - - @ivi_synchronized - def configure_ref_clock(self, ref_clock_source, ref_clock_rate): - r'''configure_ref_clock - - Configures the NI-RFSG device Reference Clock. - - The Reference Clock ensures that the NI-RFSG devices are operating from a common timebase. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `PXIe-5672 Timing Configurations `_ - - `PXIe-5673 Timing Configurations `_ - - `PXIe-5673E Timing Configurations `_ - - `PXIe-5830 Timing Configurations `_ - - `PXIe-5831 Timing Configurations `_ - - Args: - ref_clock_source (str): Specifies the source of Reference Clock signal. - - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Possible Values | Description | - +=================+=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ - | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the Getting Started Guide for the instrument. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831, lock the external signal to the PXIe-3622 REF IN connector. For the PXIe-5832, lock the external signal to the PXIe-3623 REF IN connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the Getting Started Guide for the instrument. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the clock source. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655/5842. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "RefIn2" | \- | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | "PXI_ClkMaster" | This value is valid on only the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. **PXIe-5831 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. **PXIe-5832 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3623 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | - +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - ref_clock_rate (float): Specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. The default value is NIRFSG_VAL_AUTO, which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. This parameter is only valid when the ref_clock_source parameter is set to ClkIn, RefIn or RefIn2. Refer to the ref_clock_rate property for possible values. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - self._interpreter.configure_ref_clock(ref_clock_source, ref_clock_rate) - - @ivi_synchronized - def configure_software_start_trigger(self): - r'''configure_software_start_trigger - - Configures the Start Trigger for software triggering. - - Refer to the send_software_edge_trigger method for more information about using a software trigger. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - - `Trigger Types `_ - ''' - self._interpreter.configure_software_start_trigger() - - @ivi_synchronized - def _create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): - r'''_create_deembedding_sparameter_table_array - - Creates an s-parameter de-embedding table for the port from the input data. - - If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview `_ - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. - - sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. - - **Defined Values** : - - +-----------------------------------------+----------------+-----------------------------------------------------+ - | Name | Value | Description | - +=========================================+================+=====================================================+ - | SparameterOrientation.PORT1_TOWARDS_DUT | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+----------------+-----------------------------------------------------+ - | SparameterOrientation.PORT2_TOWARDS_DUT | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+----------------+-----------------------------------------------------+ - - ''' - import numpy - - if type(sparameter_orientation) is not enums.SparameterOrientation: - raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) - if type(frequencies) is not numpy.ndarray: - raise TypeError('frequencies must be {0}, is {1}'.format(numpy.ndarray, type(frequencies))) - if numpy.isfortran(frequencies) is True: - raise TypeError('frequencies must be in C-order') - if frequencies.dtype is not numpy.dtype('float64'): - raise TypeError('frequencies must be numpy.ndarray of dtype=float64, is ' + str(frequencies.dtype)) - if frequencies.ndim != 1: - raise TypeError('frequencies must be numpy.ndarray of dimension=1, is ' + str(frequencies.ndim)) - if type(sparameter_table) is not numpy.ndarray: - raise TypeError('sparameter_table must be {0}, is {1}'.format(numpy.ndarray, type(sparameter_table))) - if numpy.isfortran(sparameter_table) is True: - raise TypeError('sparameter_table must be in C-order') - if sparameter_table.dtype is not numpy.dtype('complex128'): - raise TypeError('sparameter_table must be numpy.ndarray of dtype=complex128, is ' + str(sparameter_table.dtype)) - if sparameter_table.ndim != 3: - raise TypeError('sparameter_table must be numpy.ndarray of dimension=3, is ' + str(sparameter_table.ndim)) - self._interpreter.create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) - - @ivi_synchronized - def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): - r'''create_deembedding_sparameter_table_s2p_file - - Creates an S-parameter de-embedding table for the port based on the specified S2P file. - - If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview `_ - - `S-parameters `_ - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842 is empty string. - - table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - s2p_file_path (str): Specifies the path to the S2P file that contains de-embedding information for the specified port. - - sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : - - +-----------------------------------------+----------------+-----------------------------------------------------+ - | Name | Value | Description | - +=========================================+================+=====================================================+ - | SparameterOrientation.PORT1_TOWARDS_DUT | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+----------------+-----------------------------------------------------+ - | SparameterOrientation.PORT2_TOWARDS_DUT | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+----------------+-----------------------------------------------------+ - - ''' - if type(sparameter_orientation) is not enums.SparameterOrientation: - raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) - self._interpreter.create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) - - @ivi_synchronized - def delete_all_deembedding_tables(self): - r'''delete_all_deembedding_tables - - Deletes all configured de-embedding tables for the session. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - ''' - self._interpreter.delete_all_deembedding_tables() - - @ivi_synchronized - def delete_deembedding_table(self, port, table_name): - r'''delete_deembedding_table - - Deletes the selected de-embedding table for a given port. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. - - ''' - self._interpreter.delete_deembedding_table(port, table_name) - - @ivi_synchronized - def delete_script(self, script_name): - r'''delete_script - - Deletes a specified script from the pool of currently defined scripts. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - script_name (str): Specifies the name of the script to delete. This string is case-insensitive. - - ''' - self._interpreter.delete_script(script_name) - - @ivi_synchronized - def disable_start_trigger(self): - r'''disable_start_trigger - - Configures the device not to wait for a Start Trigger. - - This method is necessary only if you previously configured a Start Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Start Trigger `_ - ''' - self._interpreter.disable_start_trigger() - - def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, sparameter_orientation): - '''create_deembedding_sparameter_table_array - - Creates an s-parameter de-embedding table for the port from the input data. - - If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `De-embedding Overview`_ - - Args: - port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). - - table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. - - frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. - - sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. - - **Defined Values** : - - +-----------------------------------------+----------------+-----------------------------------------------------+ - | Name | Value | Description | - +=========================================+================+=====================================================+ - | SparameterOrientation.PORT1_TOWARDS_DUT | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+----------------+-----------------------------------------------------+ - | SparameterOrientation.PORT2_TOWARDS_DUT | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | - +-----------------------------------------+----------------+-----------------------------------------------------+ - - ''' - if (str(type(sparameter_table)).find("'numpy.ndarray'") != -1) or (str(type(frequencies)).find("'numpy.ndarray'") != -1): - if sparameter_table.ndim == 3: - if frequencies.size == sparameter_table.shape[0]: - if sparameter_table.shape[1] == sparameter_table.shape[2]: - number_of_ports = sparameter_table.shape[1] - return self._create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) - else: - raise ValueError("Row and column count of sparameter table should be equal. Table row count is {} and column count is {}.".format(sparameter_table.shape[1], sparameter_table.shape[2])) - else: - raise ValueError("Frequencies count does not match the sparameter table count. Frequencies count is {} and sparameter table count is {}.".format(frequencies.size, sparameter_table.shape[0])) - else: - raise ValueError("Unsupported array dimension. Is {}, expected 3".format(sparameter_table.ndim)) - else: - raise TypeError("Unsupported datatype. Expected numpy array.") - - def get_deembedding_sparameters(self): - r'''get_deembedding_sparameters - - Returns the S-parameters used for de-embedding a measurement on the selected port. - - This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. - - If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Note: The port orientation for the returned S-parameters is normalized to SparameterOrientation.PORT1_TOWARDS_DUT. - - Returns: - sparameters (numpy.array(dtype=numpy.complex128)): Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. - - ''' - sparameters = self._interpreter.get_deembedding_sparameters() - return sparameters - - @ivi_synchronized - def get_all_named_waveform_names(self): - r'''get_all_named_waveform_names - - Return names of the waveforms present in the memory. - - **Supported Devices** :PXIe-5830/5831/5840/5841/5842E - - Returns: - waveform_names (list of str): Returns a list of string having waveform names. - - ''' - waveform_names = self._interpreter.get_all_named_waveform_names() - return _converters.convert_comma_separated_string_to_list(waveform_names) - - @ivi_synchronized - def get_all_script_names(self): - r'''get_all_script_names - - Return names of the scripts present in the memory. - - **Supported Devices** :PXIe-5830/5831/5840/5841/5842E - - Returns: - script_names (list of str): Returns a list of string having script names. - - ''' - script_names = self._interpreter.get_all_script_names() - return _converters.convert_comma_separated_string_to_list(script_names) - - @ivi_synchronized - def _get_external_calibration_last_date_and_time(self): - r'''_get_external_calibration_last_date_and_time - - Returns the date and time of the last successful external calibration. - - The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Returns: - year (int): Returns the year of the last successful calibration. - - month (int): Returns the month of the last successful calibration. - - day (int): Returns the day of the last successful calibration. - - hour (int): Returns the hour of the last successful calibration. - - minute (int): Returns the minute of the last successful calibration. - - second (int): Returns the second of the last successful calibration. - - ''' - year, month, day, hour, minute, second = self._interpreter.get_external_calibration_last_date_and_time() - return year, month, day, hour, minute, second - - @ivi_synchronized - def get_ext_cal_last_date_and_time(self): - '''get_ext_cal_last_date_and_time - - Returns the date and time of the last successful external calibration. - - The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Returns: - last_cal_datetime (hightime.datetime): - - ''' - year, month, day, hour, minute, second = self._get_external_calibration_last_date_and_time() - return hightime.datetime(year, month, day, hour, minute, second) - - @ivi_synchronized - def get_self_cal_last_date_and_time(self, module=enums.Module.PRIMARY_MODULE): - '''get_self_cal_last_date_and_time - - Returns the date and time of the last successful self-calibration. - - The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - module (enums.Module): Specifies from which stand-alone module to retrieve the last successful self-calibration date and time. - - - Returns: - last_cal_datetime (hightime.datetime): - - ''' - year, month, day, hour, minute, second = self._get_self_calibration_date_and_time(module) - return hightime.datetime(year, month, day, hour, minute, second) - - @ivi_synchronized - def get_max_settable_power(self): - r'''get_max_settable_power - - Returns the maximum settable output power level for the current configuration. - - **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 - - Returns: - value (float): Returns maximum settable power level in dBm. - - ''' - value = self._interpreter.get_max_settable_power() - return value - - @ivi_synchronized - def get_script(self, script_name): - r'''get_script - - Returns the content of specified script. - - **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - script_name (str): Specifies the name of the script. This string is case-insensitive. - - - Returns: - script (str): Returns the script. - - ''' - script = self._interpreter.get_script(script_name) - return script - - @ivi_synchronized - def _get_self_calibration_date_and_time(self, module): - r'''_get_self_calibration_date_and_time - - Returns the date and time of the last successful self-calibration. - - The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns - - 14 for the hours parameter and - - 30 for the minutes parameter. - - **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - module (enums.Module): Specifies from which stand-alone module to retrieve the last successful self-calibration date and time. - - - Returns: - year (int): Returns the year of the last successful calibration. - - month (int): Returns the month of the last successful calibration. - - day (int): Returns the day of the last successful calibration. - - hour (int): Returns the hour of the last successful calibration. - - minute (int): Returns the minute of the last successful calibration. - - second (int): Returns the second of the last successful calibration. - - ''' - if type(module) is not enums.Module: - raise TypeError('Parameter module must be of type ' + str(enums.Module)) - year, month, day, hour, minute, second = self._interpreter.get_self_calibration_date_and_time(module) - return year, month, day, hour, minute, second - - @ivi_synchronized - def get_self_calibration_temperature(self, module=enums.Module.PRIMARY_MODULE): - r'''get_self_calibration_temperature - - Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. - - **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 - - Args: - module (enums.Module): Specifies from which stand-alone module to retrieve the last successful self-calibration temperature. - **Default Value** : Module.PRIMARY_MODULE - **Defined Values** : - - +-----------------------+----------------+---------------------------------------------------------------------+ - | Name | Value | Description | - +=======================+================+=====================================================================+ - | Module.PRIMARY_MODULE | 13000 (0x32c8) | The stand-alone device or the main module in a multi-module device. | - +-----------------------+----------------+---------------------------------------------------------------------+ - | Module.AWG | 13001 (0x32c9) | The AWG associated with the primary module. | - +-----------------------+----------------+---------------------------------------------------------------------+ - | Module.LO | 13002 (0x32ca) | The LO associated with the primary module. | - +-----------------------+----------------+---------------------------------------------------------------------+ - - - Returns: - temperature (float): Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. - - ''' - if type(module) is not enums.Module: - raise TypeError('Parameter module must be of type ' + str(enums.Module)) - temperature = self._interpreter.get_self_calibration_temperature(module) - return temperature - - @ivi_synchronized - def get_terminal_name(self, signal, signal_identifier): - r'''get_terminal_name - - Returns the fully-qualified name of the specified signal. - - The fully-qualified name is helpful to automatically route signals in a multisegment chassis. - - **Supported Devices** : PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - `Syntax for Terminal Names `_ - - Args: - signal (enums.Signal): Specifies the signal to query. **Defined Values** : - - +--------------------------------------------+---------+--------------------------------------------+ - | Name | Value | Description | - +============================================+=========+============================================+ - | Signal.START_TRIGGER | 0 (0x0) | Exports a Start Trigger. | - +--------------------------------------------+---------+--------------------------------------------+ - | Signal.SCRIPT_TRIGGER | 1 (0x1) | Exports a Script Trigger. | - +--------------------------------------------+---------+--------------------------------------------+ - | Signal.MARKER_EVENT | 2 (0x2) | Exports a Marker Event. | - +--------------------------------------------+---------+--------------------------------------------+ - | Signal.REF_CLOCK | 3 (0x3) | Exports the Reference Clock. | - +--------------------------------------------+---------+--------------------------------------------+ - | Signal.STARTED_EVENT | 4 (0x4) | Exports a Started Event. | - +--------------------------------------------+---------+--------------------------------------------+ - | Signal.DONE_EVENT | 5 (0x5) | Exports a Done Event. | - +--------------------------------------------+---------+--------------------------------------------+ - | NIRFSG_VAL_CONFIGURATION_LIST_STEP_TRIGGER | 6 (0x6) | Exports a Configuration List Step Trigger. | - +--------------------------------------------+---------+--------------------------------------------+ - | NIRFSG_VAL_CONFIGURATION_SETTLED_EVENT | 7 (0x7) | Exports a Configuration Settled Event. | - +--------------------------------------------+---------+--------------------------------------------+ - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - signal_identifier (str): Specifies which instance of the selected signal to query. This parameter is necessary when you set the SIGNAL parameter to NIRFSG_VAL_SCRIPT_TRIGGER or Signal.MARKER_EVENT . Otherwise, set the SIGNAL_IDENTIFIER parameter to "" (empty string). **Possible Values** : - - +------------------+-----------------------------+ - | Possible Value | Description | - +==================+=============================+ - | "marker0" | Specifies Marker 0. | - +------------------+-----------------------------+ - | "marker1" | Specifies Marker 1. | - +------------------+-----------------------------+ - | "marker2" | Specifies Marker 2. | - +------------------+-----------------------------+ - | "marker3" | Specifies Marker 3. | - +------------------+-----------------------------+ - | "scriptTrigger0" | Specifies Script Trigger 0. | - +------------------+-----------------------------+ - | "scriptTrigger1" | Specifies Script Trigger 1. | - +------------------+-----------------------------+ - | "scriptTrigger2" | Specifies Script Trigger 2. | - +------------------+-----------------------------+ - | "scriptTrigger3" | Specifies Script Trigger 3. | - +------------------+-----------------------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - - Returns: - terminal_name (str): Returns the string to use as the source for other devices. - - ''' - if type(signal) is not enums.Signal: - raise TypeError('Parameter signal must be of type ' + str(enums.Signal)) - terminal_name = self._interpreter.get_terminal_name(signal, signal_identifier) - return terminal_name - - def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): - r'''_init_with_options - - Opens a session to the device you specify as the RESOURCE_NAME and returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. - - This method also configures the device through the OPTION_STRING input. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Simulating an NI RF Signal Generator `_ - - Note: For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending /*ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - resource_name (str): Specifies the resource name of the device to initialize. - - For NI-DAQmx devices, the syntax is the device name specified in MAX. Typical default names for NI-DAQmx devices in MAX are Dev2 or PXISlot2. You can rename an NI-DAQmx device in MAX. - - You can also specify the name of an IVI logical name configured with the IVI Configuration utility. Refer to the *IVI* topic of the *Measurement & Automation Explorer Help* for more information. - - Note: NI-RFSG device names are not case-sensitive. However, all IVI names, such as logical names, are case-sensitive. If you use an IVI logical name, make sure the name is identical to the name shown in the IVI Configuration Utility. - - id_query (bool): Specifies whether you want NI-RFSG to perform an ID query. - - **Defined Values** : - - +-----------+--------------------------+ - | Value | Description | - +===========+==========================+ - | True (1) | Perform ID query. | - +-----------+--------------------------+ - | False (0) | Do not perform ID query. | - +-----------+--------------------------+ - - reset_device (bool): Specifies whether you want to reset the NI-RFSG device during the initialization procedure. - - **Defined Values** : - - +-----------+----------------------+ - | Value | Description | - +===========+======================+ - | True (1) | Reset device. | - +-----------+----------------------+ - | False (0) | Do not reset device. | - +-----------+----------------------+ - - option_string (dict): Specifies the initial value of certain properties for the session. The following table lists the properties and the name you pass in this parameter to identify the property. - - The format of this string consists of the following relations: - "AttributeName=Value" - - where - *AttributeName* is the name of the property and *Value* is the value to which the property is set. To set multiple properties, separate their assignments with a comma, as shown in the following option string: - - "RangeCheck=1,QueryInstrStatus=0,Cache=1,DriverSetup=AWG:pxi1slot4" - - The `DriverSetup string `_ is required in order to simulate a specific device. - - - Returns: - new_vi (int): Returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - new_vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) - return new_vi - - @ivi_synchronized - def _initiate(self): - r'''_initiate - - Initiates signal generation, causing the NI-RFSG device to leave the Configuration state and enter the Generation state. - - If the settings have not been committed to the device before you call this method, they are committed by this method. The operation returns when the RF output signal settles. To return to the Configuration state, call the abort method. - - **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - ''' - self._interpreter.initiate() - - @ivi_synchronized - def perform_power_search(self): - r'''perform_power_search - - Performs a power search if the alc_control property is disabled. - - Calling this method disables modulation for a short time while the device levels the output signal. - - **Supported Devices** : PXIe-5654 with PXIe-5696 - - **Related Topics** - - `Power Search `_ - - Note: Power search temporarily enables the ALC, so ensure the appropriate included cable is connected between the PXIe-5654 ALCIN connector and the PXIe-5696 ALCOUT connector to successfully perform a power search. - ''' - self._interpreter.perform_power_search() - - @ivi_synchronized - def perform_thermal_correction(self): - r'''perform_thermal_correction - - Corrects for any signal drift due to environmental temperature variation when generating the same signal for extended periods of time without a parameter change. - - Under normal circumstances of short-term signal generation, NI-RFSG performs thermal correction automatically by ensuring stable power levels, and you do not need to call this method. - - Use this method when generating the same signal for an extended period of time in a temperature-fluctuating environment. The NI-RFSG device must be in the Generation state before calling this method. - - **Supported Devices** : PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Thermal Management `_ - - `Impairment Calibration `_ - ''' - self._interpreter.perform_thermal_correction() - - @ivi_synchronized - def query_arb_waveform_capabilities(self): - r'''query_arb_waveform_capabilities - - Queries and returns the waveform capabilities of the NI-RFSG device. - - These capabilities are related to the current device configuration. The NI-RFSG device must be in the Configuration or the Generation state before calling this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Returns: - max_number_waveforms (int): Returns the value of the arb_max_number_waveforms property. This value is the maximum number of waveforms you can write. - - waveform_quantum (int): Returns the value of the arb_waveform_quantum property. If the waveform quantum is *q*, then the size of the waveform that you write should be a multiple of *q*. The units are expressed in samples. - - min_waveform_size (int): Returns the value of the arb_waveform_size_min property. The number of samples of the waveform that you write must be greater than or equal to this value. - - max_waveform_size (int): Returns the value of the arb_waveform_size_max property. The number of samples of the waveform that you write must be less than or equal to this value. - - ''' - max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size = self._interpreter.query_arb_waveform_capabilities() - return max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size - - @ivi_synchronized - def read_and_download_waveform_from_file_tdms(self, waveform_name, file_path, waveform_index): - r'''read_and_download_waveform_from_file_tdms - - Reads the waveforms from a TDMS file and downloads one waveform into each of the NI RF vector signal generators. - - This method reads the following information from the TDMS file and writes it into the NI-RFSG session: - - - Sample Rate - - PAPR - - Runtime Scaling - - RF Blanking Marker Locations - - RF Blanking Enabled - - Burst Start Locations - - Burst Stop Locations - - RF Blanking Marker Source - - Signal Bandwidth - - Waveform Size - - If RF blanking marker locations are present in the file but burst locations are not present, burst locations are calculated from RF blanking marker locations and stored in the NI-RFSG session. - - **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 - - Args: - waveform_name (str): Specifies the name used to store the waveform. This string is case-insensitive. - - Example: - - "waveform::waveform0" - - file_path (str): Specifies the absolute path to the TDMS file from which the NI-RFSG reads the waveforms. - - waveform_index (int): Specifies the index of the waveform to be read from the TDMS file. - - ''' - self._interpreter.read_and_download_waveform_from_file_tdms(waveform_name, file_path, waveform_index) - - @ivi_synchronized - def reset_device(self): - r'''reset_device - - Performs a hard reset on the device which consists of the following actions: - - - Signal generation is stopped. - - All routes are released. - - External bidirectional terminals are tristated. - - FPGAs are reset. - - Hardware is configured to its default state. - - All session properties are reset to their default states. - - During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. - - - PXI-5610, PXI-5670/5671, PXIe-5672-- After calling this method, the device requires 25 seconds before returning to full functionality. NI-RFSG enforces this condition by adding a wait, if needed, the next time you try to access the device. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E - - **Related Topics** - - `Thermal Shutdown `_ - - Note: You must call the reset_device method if the NI-RFSG device has shut down because of a high-temperature condition. - ''' - self._interpreter.reset_device() - - @ivi_synchronized - def reset_with_defaults(self): - r'''reset_with_defaults - - Performs a software reset of the device, returning it to the default state and applying any initial default settings from the IVI Configuration Store. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696,PXI-5670/5671, PXIe-5672/5673/5673E - ''' - self._interpreter.reset_with_defaults() - - @ivi_synchronized - def reset_with_options(self, steps_to_omit): - r'''reset_with_options - - Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. - - By default, this method exhibits the same behavior as Reset. You can specify steps to omit using the steps to omit parameter. For example, if you specify ResetWithOptionsStepsToOmit.ROUTES for the STEPS_TO_OMIT parameter, this method does not release signal routes during the reset process. - - When routes of signals between two devices are released, they are released regardless of which device created the route. - - To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using this method instead of Reset, with STEPS_TO_OMIT set to ResetWithOptionsStepsToOmit.ROUTES. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Triggers `_ - - `Events `_ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - steps_to_omit (Bitwise combination of enums.ResetWithOptionsStepsToOmit flags): Specifies a list of steps to skip during the reset process. The default value is ResetWithOptionsStepsToOmit.NONE, which specifies that no step is omitted during reset. **Defined Values** : - - +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +================================================+=========+============================================================================================================================================================================================================+ - | ResetWithOptionsStepsToOmit.NONE | 0 (0x0) | No step is omitted during reset. | - +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.WAVEFORMS | 1 (0x1) | Omits clearing waveforms. | - +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.SCRIPTS | 2 (0x2) | Omits clearing scripts. | - +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.ROUTES | 4 (0x4) | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | - +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES | 8 (0x8) | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | - +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - - Note: ResetWithOptionsStepsToOmit.ROUTES is not supported in external calibration or alignment sessions. - You can combine multiple enums.ResetWithOptionsStepsToOmit flags using the bitwise OR (|) operator. - - ''' - if type(steps_to_omit) is not enums.ResetWithOptionsStepsToOmit: - raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.ResetWithOptionsStepsToOmit)) - self._interpreter.reset_with_options(steps_to_omit) - - @ivi_synchronized - def select_arb_waveform(self, waveform_name): - r'''select_arb_waveform - - Specifies the waveform that is generated upon a call to the _initiate method when the generation_mode property is set to GenerationMode.ARB_WAVEFORM. - - You must specify a waveform using the NAME parameter if you have written multiple waveforms. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Assigning Properties or Properties to a Waveform `_ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - Args: - waveform_name (str): Specifies the name of the stored waveform to generate. This is a case-insensitive alphanumeric string that does not use reserved words. NI-RFSG sets the arb_selected_waveform property to this value. - - ''' - self._interpreter.select_arb_waveform(waveform_name) - - @ivi_synchronized - def self_cal(self): - r'''self_cal - - Performs an internal self-calibration on the device and associated modules that support self-calibration. - - If the calibration is successful, new calibration data and constants are stored in the onboard nonvolatile memory of the module. - - The PXIe-5841 maintains separate self-calibration data for both the PXIe-5841 standalone and when associated with the PXIe-5655. Use this method once for each intended configuration. - - **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. - - **PXIe-5860** - - While this VI is running on one channel, if there are any existing NI-RFSG or NI-RFSA sessions open on the other channel, they may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate or niRFSA Commit or niRFSA Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. - ''' - self._interpreter.self_cal() - - @ivi_synchronized - def self_calibrate_range(self, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): - r'''self_calibrate_range - - Self-calibrates all configurations within the specified frequency and peak power level limits. - - Self-calibration range data is valid until you restart the system or call the clear_self_calibrate_range method. - - NI recommends that no external signals are present on the RF In or IQ In ports during the calibration. - - For best results, NI recommends that you perform self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit certain steps for faster calibration. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 - - Note: - This method does not update self-calibration date and temperature. - - - If there is an existing NI-RFSA session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. - - - If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. - - Args: - steps_to_omit (Bitwise combination of enums.SelfCalibrateRangeStepsToOmit flags): Specifies which calibration steps to skip during the self-calibration process. The default value is an empty array, which indicates that no calibration steps are omitted. - - **Default Value** : SelfCalibrateRangeStepsToOmit.OMIT_NONE - - **Defined Values:** - - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | Name | Value | Description | - +=====================================================+===========+=====================================================================================================================+ - | SelfCalibrateRangeStepsToOmit.OMIT_NONE | 0 (0x0) | No calibration steps are omitted. | - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalibrateRangeStepsToOmit.LO_SELF_CAL | 1 (0x1) | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalibrateRangeStepsToOmit.POWER_LEVEL_ACCURACY | 2 (0x2) | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER | 4 (0x4) | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION | 8 (0x8) | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - | SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT | 16 (0x10) | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | - +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ - - Note: You can combine multiple enums.SelfCalibrateRangeStepsToOmit flags using the bitwise OR (|) operator. - - min_frequency (float): Specifies the minimum frequency to calibrate. - - max_frequency (float): Specifies the maximum frequency to calibrate. - - min_power_level (float): Specifies the minimum power level to calibrate. - - max_power_level (float): Specifies the maximum power level to calibrate. - - ''' - if type(steps_to_omit) is not enums.SelfCalibrateRangeStepsToOmit: - raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.SelfCalibrateRangeStepsToOmit)) - self._interpreter.self_calibrate_range(steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level) - - @ivi_synchronized - def set_arb_waveform_next_write_position(self, waveform_name, relative_to, offset): - r'''set_arb_waveform_next_write_position - - Configures the start position to use for writing a waveform before calling the WriteArbWaveform method. - - This method allows you to write to arbitrary locations within the waveform. These settings apply only to the next write to the waveform specified by the **name** input of the allocate_arb_waveform method or the WriteArbWaveform method. Subsequent writes to that waveform begin where the last write ended, unless this method is called again. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: If you use this method to write the waveform that is currently generating, an undefined output may result. - - Args: - waveform_name (str): Specifies the name of the waveform. This string is case-insensitive and alphanumeric, and it cannot use `reserved words `_. - - relative_to (enums.RelativeTo): Specifies the reference position in the waveform. The position and OFFSET together determine where to start loading data into the waveform. - - **Defined Values:** - - +------------------------------+---------------+------------------------------------------------------------------+ - | Name | Value | Description | - +==============================+===============+==================================================================+ - | RelativeTo.START_OF_WAVEFORM | 8000 (0x1f40) | The reference position is relative to the start of the waveform. | - +------------------------------+---------------+------------------------------------------------------------------+ - | RelativeTo.CURRENT_POSITION | 8001 (0x1f41) | The reference position is relative to the current position. | - +------------------------------+---------------+------------------------------------------------------------------+ - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - offset (int): Specifies the offset from the **relative to** parameter at which to start loading the data into the waveform. - - ''' - if type(relative_to) is not enums.RelativeTo: - raise TypeError('Parameter relative_to must be of type ' + str(enums.RelativeTo)) - self._interpreter.set_arb_waveform_next_write_position(waveform_name, relative_to, offset) - - @ivi_synchronized - def wait_until_settled(self, max_time_milliseconds=hightime.timedelta(seconds=10.0)): - r'''wait_until_settled - - Waits until the RF output signal has settled. This method is useful for devices that support changes while in the Generation state. - - Call this method after making a dynamic change to wait for the output signal to settle. - - You can also call this method after calling the commit method to wait for changes to settle. The wait_until_settled method is not required after calling the _initiate method because the _initiate automatically waits for the output to settle. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Args: - max_time_milliseconds (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the maximum time the method waits for the output to settle. If the maximum time is exceeded, this method returns an error. The units are expressed in milliseconds. - - **Default Value** : 10000 - - ''' - max_time_milliseconds = _converters.convert_timedelta_to_milliseconds_int32(max_time_milliseconds) - self._interpreter.wait_until_settled(max_time_milliseconds) - - @ivi_synchronized - def _write_arb_waveform_complex_f32(self, waveform_name, waveform_data_array, more_data_pending): - r'''_write_arb_waveform_complex_f32 - - Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. - - This method accepts the complex baseband data in the form of complex singles. If the waveform to write is already allocated using the allocate_arb_waveform method, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_ - - Note: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. - - Args: - waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - waveform_data_array (numpy.array(dtype=numpy.complex64)): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. - - more_data_pending (bool): Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the WAVEFORM_NAME parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. - - Note: - One or more of the referenced properties are not in the Python API for this driver. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('complex64'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex64, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - self._interpreter.write_arb_waveform_complex_f32(waveform_name, waveform_data_array, more_data_pending) - - @ivi_synchronized - def _write_arb_waveform_complex_f64(self, waveform_name, waveform_data_array, more_data_pending): - r'''_write_arb_waveform_complex_f64 - - Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. - - This method accepts the complex baseband data in the form of complex doubles. If the waveform to write is already allocated using the allocate_arb_waveform, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842 is in the Generation state. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_ - - Note: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. - - Args: - waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - waveform_data_array (numpy.array(dtype=numpy.complex128)): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. - - more_data_pending (bool): Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the **name** parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('complex128'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex128, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - self._interpreter.write_arb_waveform_complex_f64(waveform_name, waveform_data_array, more_data_pending) - - @ivi_synchronized - def _write_arb_waveform_complex_i16(self, waveform_name, waveform_data_array): - r'''_write_arb_waveform_complex_i16 - - Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. - - This method accepts the interleaved I/Q data of a complex baseband signal. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, this method can be called when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. - - **Supported Devices** : PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_ - - Note: This method only supports PowerLevelType.PEAK mode as specified in the power_level_type property. If you download a waveform when using this method, you cannot set the power_level_type to PowerLevelType.AVERAGE without causing error in the output. - - Args: - waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - waveform_data_array (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. - - ''' - import numpy - - if type(waveform_data_array) is not numpy.ndarray: - raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) - if numpy.isfortran(waveform_data_array) is True: - raise TypeError('waveform_data_array must be in C-order') - if waveform_data_array.dtype is not numpy.dtype('int16'): - raise TypeError('waveform_data_array must be numpy.ndarray of dtype=int16, is ' + str(waveform_data_array.dtype)) - if waveform_data_array.ndim != 1: - raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) - self._interpreter.write_arb_waveform_complex_i16(waveform_name, waveform_data_array) - - def write_arb_waveform(self, waveform_name, waveform_data_array, more_data_pending=False): - '''write_arb_waveform - - Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. - - This method accepts the complex baseband data in the form of numpy array of numpy.complex64 or numpy.complex128 or interleaved numpy array of numpy.int16. If the waveform to write is already allocated using the allocate_arb_waveform, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Streaming `_ - - `Assigning Properties or Properties to a Waveform `_ - - Note: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. - If you are writing interleaved numpy array of numpy.int16, then this method only supports PowerLevelType.PEAK mode as specified in the power_level_type property. If you download a waveform as interleaved numpy array of numpy.int16 when using this method, you cannot set the power_level_type to PowerLevelType.AVERAGE without causing error in the output. - - Args: - waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. - - waveform_data_array (numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. - - more_data_pending (bool): Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the **name** parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. - - ''' - import numpy - if str(type(waveform_data_array)).find("'numpy.ndarray'") != -1: - if waveform_data_array.dtype == numpy.complex128: - return self._write_arb_waveform_complex_f64(waveform_name, waveform_data_array, more_data_pending) - elif waveform_data_array.dtype == numpy.complex64: - return self._write_arb_waveform_complex_f32(waveform_name, waveform_data_array, more_data_pending) - elif waveform_data_array.dtype == numpy.int16: - return self._write_arb_waveform_complex_i16(waveform_name, waveform_data_array) - else: - raise TypeError("Unsupported datatype. Is {}, expected {} or {} or {}".format(waveform_data_array.dtype, numpy.complex128, numpy.complex64, numpy.int16)) - else: - raise TypeError("Unsupported datatype. Expected numpy array of {} or {} or {}".format(numpy.complex128, numpy.complex64, numpy.int16)) - - @ivi_synchronized - def write_script(self, script): - r'''write_script - - Writes a script to the device to control waveform generation in Script mode. - - First, configure your device for Script mode by setting the generation_mode property. The NI-RFSG device must be in the Configuration state before calling the write_script method. - - **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Scripting Instructions `_--Refer to this topic for more information about VST restrictions on scripts. - - `Common Scripting Use Cases `_ - - Note: If you are using an RF vector signal transceiver (VST) device, some script instructions may not be supported. - - Args: - script (str): Specifies a string containing a syntactically correct script. NI-RFSG supports multiple scripts that are selected with the selected_script property. Refer to `Scripting Instructions `_ for more information about using scripts. - - ''' - self._interpreter.write_script(script) - - def _close(self): - r'''_close - - Aborts any signal generation in progress and destroys the instrument driver session. - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `NI-RFSG Instrument Driver Programming Flow `_ - - `NI-RFSG Programming State Model `_ - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Performs a self-test on the NI-RFSG device and returns the test results. - - This method performs a simple series of tests to ensure that the NI-RFSG device is powered up and responding. - - This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Device Warm-Up `_ - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def reset(self): - r'''reset - - Resets all properties to their default values and moves the NI-RFSG device to the Configuration state. - - This method aborts the generation, deletes all de-embedding tables, clears all routes, and resets session properties to their initial values. During a reset, routes of signals between this and other devices are released, regardless of which device created the route. - - Generally, calling this method instead of the reset_device method is acceptable. The Reset method executes faster than the reset_device method. - - To avoid resetting routes on the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using the reset_with_options method, with **stepsToOmit** set to ResetWithOptionsStepsToOmit.ROUTES . - - **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - Note: This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Performs a self-test on the NI-RFSG device and returns the test results. - - This method performs a simple series of tests to ensure that the NI-RFSG device is powered up and responding. - - This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSG device must be in the Configuration state before you call this method. - - **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 - - **Related Topics** - - `Device Warm-Up `_ - - Returns: - self_test_result (int): This parameter contains the value returned from the NI-RFSG device self test. - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Self test passed | - +----------------+------------------+ - | 1 | Self test failed | - +----------------+------------------+ - - self_test_message (str): Returns the self-test response string from the NI-RFSG device. For an explanation of the string contents, refer to the **status** parameter of this method. - - You must pass a ViChar array with at least 256 bytes. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/nirfsg/nirfsg/unit_tests/_matchers.py b/generated/nirfsg/nirfsg/unit_tests/_matchers.py deleted file mode 100644 index d3f1819f4b..0000000000 --- a/generated/nirfsg/nirfsg/unit_tests/_matchers.py +++ /dev/null @@ -1,369 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nirfsg._complextype as _complextype -import nirfsg._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -def _compare_complex_number_arrays(expected, actual): - for i in range(expected.expected_size): - expected_value = expected.expected_data[i] - actual_value = actual[i] - if expected_value.real != actual_value.real or expected_value.imag != actual_value.imag: - return False - return True - - -class NIComplexNumberPointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexNumber) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexNumberPointerMatcher({self.expected_data})" - - -class NIComplexNumberF32PointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexNumberF32) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexNumberF32PointerMatcher({self.expected_data})" - - -class NIComplexI16PointerMatcher(_PointerMatcher): - def __init__(self, expected_data, expected_size): - _PointerMatcher.__init__(self, _complextype.NIComplexI16) - self.expected_data = expected_data - self.expected_size = expected_size - - def __eq__(self, other): - _PointerMatcher.__eq__(self, other) - return _compare_complex_number_arrays(self, other) - - def __repr__(self): - return f"NIComplexI16PointerMatcher({self.expected_data})" - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nirfsg/nirfsg/unit_tests/_mock_helper.py b/generated/nirfsg/nirfsg/unit_tests/_mock_helper.py deleted file mode 100644 index 33ff5a46b9..0000000000 --- a/generated/nirfsg/nirfsg/unit_tests/_mock_helper.py +++ /dev/null @@ -1,1124 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['Abort'] = {} - self._defaults['Abort']['return'] = 0 - self._defaults['AllocateArbWaveform'] = {} - self._defaults['AllocateArbWaveform']['return'] = 0 - self._defaults['ChangeExternalCalibrationPassword'] = {} - self._defaults['ChangeExternalCalibrationPassword']['return'] = 0 - self._defaults['CheckGenerationStatus'] = {} - self._defaults['CheckGenerationStatus']['return'] = 0 - self._defaults['CheckGenerationStatus']['isDone'] = None - self._defaults['CheckIfScriptExists'] = {} - self._defaults['CheckIfScriptExists']['return'] = 0 - self._defaults['CheckIfScriptExists']['scriptExists'] = None - self._defaults['CheckIfWaveformExists'] = {} - self._defaults['CheckIfWaveformExists']['return'] = 0 - self._defaults['CheckIfWaveformExists']['waveformExists'] = None - self._defaults['ClearAllArbWaveforms'] = {} - self._defaults['ClearAllArbWaveforms']['return'] = 0 - self._defaults['ClearArbWaveform'] = {} - self._defaults['ClearArbWaveform']['return'] = 0 - self._defaults['ClearSelfCalibrateRange'] = {} - self._defaults['ClearSelfCalibrateRange']['return'] = 0 - self._defaults['Commit'] = {} - self._defaults['Commit']['return'] = 0 - self._defaults['ConfigureDeembeddingTableInterpolationLinear'] = {} - self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] = 0 - self._defaults['ConfigureDeembeddingTableInterpolationNearest'] = {} - self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] = 0 - self._defaults['ConfigureDeembeddingTableInterpolationSpline'] = {} - self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] = 0 - self._defaults['ConfigureDigitalEdgeScriptTrigger'] = {} - self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] = 0 - self._defaults['ConfigureDigitalEdgeStartTrigger'] = {} - self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] = 0 - self._defaults['ConfigureDigitalLevelScriptTrigger'] = {} - self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] = 0 - self._defaults['ConfigureRF'] = {} - self._defaults['ConfigureRF']['return'] = 0 - self._defaults['ConfigureRefClock'] = {} - self._defaults['ConfigureRefClock']['return'] = 0 - self._defaults['ConfigureSoftwareScriptTrigger'] = {} - self._defaults['ConfigureSoftwareScriptTrigger']['return'] = 0 - self._defaults['ConfigureSoftwareStartTrigger'] = {} - self._defaults['ConfigureSoftwareStartTrigger']['return'] = 0 - self._defaults['CreateDeembeddingSparameterTableArray'] = {} - self._defaults['CreateDeembeddingSparameterTableArray']['return'] = 0 - self._defaults['CreateDeembeddingSparameterTableS2PFile'] = {} - self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] = 0 - self._defaults['DeleteAllDeembeddingTables'] = {} - self._defaults['DeleteAllDeembeddingTables']['return'] = 0 - self._defaults['DeleteDeembeddingTable'] = {} - self._defaults['DeleteDeembeddingTable']['return'] = 0 - self._defaults['DeleteScript'] = {} - self._defaults['DeleteScript']['return'] = 0 - self._defaults['DisableScriptTrigger'] = {} - self._defaults['DisableScriptTrigger']['return'] = 0 - self._defaults['DisableStartTrigger'] = {} - self._defaults['DisableStartTrigger']['return'] = 0 - self._defaults['ErrorMessage'] = {} - self._defaults['ErrorMessage']['return'] = 0 - self._defaults['ErrorMessage']['errorMessage'] = None - self._defaults['GetAllNamedWaveformNames'] = {} - self._defaults['GetAllNamedWaveformNames']['return'] = 0 - self._defaults['GetAllNamedWaveformNames']['actualBufferSize'] = None - self._defaults['GetAllNamedWaveformNames']['waveformNames'] = None - self._defaults['GetAllScriptNames'] = {} - self._defaults['GetAllScriptNames']['return'] = 0 - self._defaults['GetAllScriptNames']['actualBufferSize'] = None - self._defaults['GetAllScriptNames']['scriptNames'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['value'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['value'] = None - self._defaults['GetAttributeViInt64'] = {} - self._defaults['GetAttributeViInt64']['return'] = 0 - self._defaults['GetAttributeViInt64']['value'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['value'] = None - self._defaults['GetAttributeViSession'] = {} - self._defaults['GetAttributeViSession']['return'] = 0 - self._defaults['GetAttributeViSession']['value'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['value'] = None - self._defaults['GetDeembeddingSparameters'] = {} - self._defaults['GetDeembeddingSparameters']['return'] = 0 - self._defaults['GetDeembeddingSparameters']['sparameters'] = None - self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] = None - self._defaults['GetDeembeddingSparameters']['numberOfPorts'] = None - self._defaults['GetDeembeddingTableNumberOfPorts'] = {} - self._defaults['GetDeembeddingTableNumberOfPorts']['return'] = 0 - self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['errorDescription'] = None - self._defaults['GetExternalCalibrationLastDateAndTime'] = {} - self._defaults['GetExternalCalibrationLastDateAndTime']['return'] = 0 - self._defaults['GetExternalCalibrationLastDateAndTime']['year'] = None - self._defaults['GetExternalCalibrationLastDateAndTime']['month'] = None - self._defaults['GetExternalCalibrationLastDateAndTime']['day'] = None - self._defaults['GetExternalCalibrationLastDateAndTime']['hour'] = None - self._defaults['GetExternalCalibrationLastDateAndTime']['minute'] = None - self._defaults['GetExternalCalibrationLastDateAndTime']['second'] = None - self._defaults['GetMaxSettablePower'] = {} - self._defaults['GetMaxSettablePower']['return'] = 0 - self._defaults['GetMaxSettablePower']['value'] = None - self._defaults['GetScript'] = {} - self._defaults['GetScript']['return'] = 0 - self._defaults['GetScript']['actualBufferSize'] = None - self._defaults['GetScript']['script'] = None - self._defaults['GetSelfCalibrationDateAndTime'] = {} - self._defaults['GetSelfCalibrationDateAndTime']['return'] = 0 - self._defaults['GetSelfCalibrationDateAndTime']['year'] = None - self._defaults['GetSelfCalibrationDateAndTime']['month'] = None - self._defaults['GetSelfCalibrationDateAndTime']['day'] = None - self._defaults['GetSelfCalibrationDateAndTime']['hour'] = None - self._defaults['GetSelfCalibrationDateAndTime']['minute'] = None - self._defaults['GetSelfCalibrationDateAndTime']['second'] = None - self._defaults['GetSelfCalibrationTemperature'] = {} - self._defaults['GetSelfCalibrationTemperature']['return'] = 0 - self._defaults['GetSelfCalibrationTemperature']['temperature'] = None - self._defaults['GetTerminalName'] = {} - self._defaults['GetTerminalName']['return'] = 0 - self._defaults['GetTerminalName']['terminalName'] = None - self._defaults['GetWaveformBurstStartLocations'] = {} - self._defaults['GetWaveformBurstStartLocations']['return'] = 0 - self._defaults['GetWaveformBurstStartLocations']['requiredSize'] = None - self._defaults['GetWaveformBurstStartLocations']['locations'] = None - self._defaults['GetWaveformBurstStopLocations'] = {} - self._defaults['GetWaveformBurstStopLocations']['return'] = 0 - self._defaults['GetWaveformBurstStopLocations']['requiredSize'] = None - self._defaults['GetWaveformBurstStopLocations']['locations'] = None - self._defaults['GetWaveformMarkerEventLocations'] = {} - self._defaults['GetWaveformMarkerEventLocations']['return'] = 0 - self._defaults['GetWaveformMarkerEventLocations']['requiredSize'] = None - self._defaults['GetWaveformMarkerEventLocations']['locations'] = None - self._defaults['InitWithOptions'] = {} - self._defaults['InitWithOptions']['return'] = 0 - self._defaults['InitWithOptions']['newVi'] = None - self._defaults['Initiate'] = {} - self._defaults['Initiate']['return'] = 0 - self._defaults['LoadConfigurationsFromFile'] = {} - self._defaults['LoadConfigurationsFromFile']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['PerformPowerSearch'] = {} - self._defaults['PerformPowerSearch']['return'] = 0 - self._defaults['PerformThermalCorrection'] = {} - self._defaults['PerformThermalCorrection']['return'] = 0 - self._defaults['QueryArbWaveformCapabilities'] = {} - self._defaults['QueryArbWaveformCapabilities']['return'] = 0 - self._defaults['QueryArbWaveformCapabilities']['maxNumberWaveforms'] = None - self._defaults['QueryArbWaveformCapabilities']['waveformQuantum'] = None - self._defaults['QueryArbWaveformCapabilities']['minWaveformSize'] = None - self._defaults['QueryArbWaveformCapabilities']['maxWaveformSize'] = None - self._defaults['ReadAndDownloadWaveformFromFileTDMS'] = {} - self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] = 0 - self._defaults['ResetDevice'] = {} - self._defaults['ResetDevice']['return'] = 0 - self._defaults['ResetWithDefaults'] = {} - self._defaults['ResetWithDefaults']['return'] = 0 - self._defaults['ResetWithOptions'] = {} - self._defaults['ResetWithOptions']['return'] = 0 - self._defaults['SaveConfigurationsToFile'] = {} - self._defaults['SaveConfigurationsToFile']['return'] = 0 - self._defaults['SelectArbWaveform'] = {} - self._defaults['SelectArbWaveform']['return'] = 0 - self._defaults['SelfCal'] = {} - self._defaults['SelfCal']['return'] = 0 - self._defaults['SelfCalibrateRange'] = {} - self._defaults['SelfCalibrateRange']['return'] = 0 - self._defaults['SendSoftwareEdgeTrigger'] = {} - self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 - self._defaults['SetArbWaveformNextWritePosition'] = {} - self._defaults['SetArbWaveformNextWritePosition']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViInt64'] = {} - self._defaults['SetAttributeViInt64']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViSession'] = {} - self._defaults['SetAttributeViSession']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetWaveformBurstStartLocations'] = {} - self._defaults['SetWaveformBurstStartLocations']['return'] = 0 - self._defaults['SetWaveformBurstStopLocations'] = {} - self._defaults['SetWaveformBurstStopLocations']['return'] = 0 - self._defaults['SetWaveformMarkerEventLocations'] = {} - self._defaults['SetWaveformMarkerEventLocations']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['WaitUntilSettled'] = {} - self._defaults['WaitUntilSettled']['return'] = 0 - self._defaults['WriteArbWaveformComplexF32'] = {} - self._defaults['WriteArbWaveformComplexF32']['return'] = 0 - self._defaults['WriteArbWaveformComplexF64'] = {} - self._defaults['WriteArbWaveformComplexF64']['return'] = 0 - self._defaults['WriteArbWaveformComplexI16'] = {} - self._defaults['WriteArbWaveformComplexI16']['return'] = 0 - self._defaults['WriteScript'] = {} - self._defaults['WriteScript']['return'] = 0 - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niRFSG_Abort(self, vi): # noqa: N802 - if self._defaults['Abort']['return'] != 0: - return self._defaults['Abort']['return'] - return self._defaults['Abort']['return'] - - def niRFSG_AllocateArbWaveform(self, vi, waveform_name, size_in_samples): # noqa: N802 - if self._defaults['AllocateArbWaveform']['return'] != 0: - return self._defaults['AllocateArbWaveform']['return'] - return self._defaults['AllocateArbWaveform']['return'] - - def niRFSG_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 - if self._defaults['ChangeExternalCalibrationPassword']['return'] != 0: - return self._defaults['ChangeExternalCalibrationPassword']['return'] - return self._defaults['ChangeExternalCalibrationPassword']['return'] - - def niRFSG_CheckGenerationStatus(self, vi, is_done): # noqa: N802 - if self._defaults['CheckGenerationStatus']['return'] != 0: - return self._defaults['CheckGenerationStatus']['return'] - # is_done - if self._defaults['CheckGenerationStatus']['isDone'] is None: - raise MockFunctionCallError("niRFSG_CheckGenerationStatus", param='isDone') - if is_done is not None: - is_done.contents.value = self._defaults['CheckGenerationStatus']['isDone'] - return self._defaults['CheckGenerationStatus']['return'] - - def niRFSG_CheckIfScriptExists(self, vi, script_name, script_exists): # noqa: N802 - if self._defaults['CheckIfScriptExists']['return'] != 0: - return self._defaults['CheckIfScriptExists']['return'] - # script_exists - if self._defaults['CheckIfScriptExists']['scriptExists'] is None: - raise MockFunctionCallError("niRFSG_CheckIfScriptExists", param='scriptExists') - if script_exists is not None: - script_exists.contents.value = self._defaults['CheckIfScriptExists']['scriptExists'] - return self._defaults['CheckIfScriptExists']['return'] - - def niRFSG_CheckIfWaveformExists(self, vi, waveform_name, waveform_exists): # noqa: N802 - if self._defaults['CheckIfWaveformExists']['return'] != 0: - return self._defaults['CheckIfWaveformExists']['return'] - # waveform_exists - if self._defaults['CheckIfWaveformExists']['waveformExists'] is None: - raise MockFunctionCallError("niRFSG_CheckIfWaveformExists", param='waveformExists') - if waveform_exists is not None: - waveform_exists.contents.value = self._defaults['CheckIfWaveformExists']['waveformExists'] - return self._defaults['CheckIfWaveformExists']['return'] - - def niRFSG_ClearAllArbWaveforms(self, vi): # noqa: N802 - if self._defaults['ClearAllArbWaveforms']['return'] != 0: - return self._defaults['ClearAllArbWaveforms']['return'] - return self._defaults['ClearAllArbWaveforms']['return'] - - def niRFSG_ClearArbWaveform(self, vi, waveform_name): # noqa: N802 - if self._defaults['ClearArbWaveform']['return'] != 0: - return self._defaults['ClearArbWaveform']['return'] - return self._defaults['ClearArbWaveform']['return'] - - def niRFSG_ClearSelfCalibrateRange(self, vi): # noqa: N802 - if self._defaults['ClearSelfCalibrateRange']['return'] != 0: - return self._defaults['ClearSelfCalibrateRange']['return'] - return self._defaults['ClearSelfCalibrateRange']['return'] - - def niRFSG_Commit(self, vi): # noqa: N802 - if self._defaults['Commit']['return'] != 0: - return self._defaults['Commit']['return'] - return self._defaults['Commit']['return'] - - def niRFSG_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 - if self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] != 0: - return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] - return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] - - def niRFSG_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 - if self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] != 0: - return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] - return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] - - def niRFSG_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 - if self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] != 0: - return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] - return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] - - def niRFSG_ConfigureDigitalEdgeScriptTrigger(self, vi, trigger_id, source, edge): # noqa: N802 - if self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] != 0: - return self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] - return self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] - - def niRFSG_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 - if self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] != 0: - return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] - return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] - - def niRFSG_ConfigureDigitalLevelScriptTrigger(self, vi, trigger_id, source, level): # noqa: N802 - if self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] != 0: - return self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] - return self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] - - def niRFSG_ConfigureRF(self, vi, frequency, power_level): # noqa: N802 - if self._defaults['ConfigureRF']['return'] != 0: - return self._defaults['ConfigureRF']['return'] - return self._defaults['ConfigureRF']['return'] - - def niRFSG_ConfigureRefClock(self, vi, ref_clock_source, ref_clock_rate): # noqa: N802 - if self._defaults['ConfigureRefClock']['return'] != 0: - return self._defaults['ConfigureRefClock']['return'] - return self._defaults['ConfigureRefClock']['return'] - - def niRFSG_ConfigureSoftwareScriptTrigger(self, vi, trigger_id): # noqa: N802 - if self._defaults['ConfigureSoftwareScriptTrigger']['return'] != 0: - return self._defaults['ConfigureSoftwareScriptTrigger']['return'] - return self._defaults['ConfigureSoftwareScriptTrigger']['return'] - - def niRFSG_ConfigureSoftwareStartTrigger(self, vi): # noqa: N802 - if self._defaults['ConfigureSoftwareStartTrigger']['return'] != 0: - return self._defaults['ConfigureSoftwareStartTrigger']['return'] - return self._defaults['ConfigureSoftwareStartTrigger']['return'] - - def niRFSG_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 - if self._defaults['CreateDeembeddingSparameterTableArray']['return'] != 0: - return self._defaults['CreateDeembeddingSparameterTableArray']['return'] - return self._defaults['CreateDeembeddingSparameterTableArray']['return'] - - def niRFSG_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 - if self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] != 0: - return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] - return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] - - def niRFSG_DeleteAllDeembeddingTables(self, vi): # noqa: N802 - if self._defaults['DeleteAllDeembeddingTables']['return'] != 0: - return self._defaults['DeleteAllDeembeddingTables']['return'] - return self._defaults['DeleteAllDeembeddingTables']['return'] - - def niRFSG_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 - if self._defaults['DeleteDeembeddingTable']['return'] != 0: - return self._defaults['DeleteDeembeddingTable']['return'] - return self._defaults['DeleteDeembeddingTable']['return'] - - def niRFSG_DeleteScript(self, vi, script_name): # noqa: N802 - if self._defaults['DeleteScript']['return'] != 0: - return self._defaults['DeleteScript']['return'] - return self._defaults['DeleteScript']['return'] - - def niRFSG_DisableScriptTrigger(self, vi, trigger_id): # noqa: N802 - if self._defaults['DisableScriptTrigger']['return'] != 0: - return self._defaults['DisableScriptTrigger']['return'] - return self._defaults['DisableScriptTrigger']['return'] - - def niRFSG_DisableStartTrigger(self, vi): # noqa: N802 - if self._defaults['DisableStartTrigger']['return'] != 0: - return self._defaults['DisableStartTrigger']['return'] - return self._defaults['DisableStartTrigger']['return'] - - def niRFSG_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['ErrorMessage']['return'] != 0: - return self._defaults['ErrorMessage']['return'] - # error_message - if self._defaults['ErrorMessage']['errorMessage'] is None: - raise MockFunctionCallError("niRFSG_ErrorMessage", param='errorMessage') - test_value = self._defaults['ErrorMessage']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['ErrorMessage']['return'] - - def niRFSG_GetAllNamedWaveformNames(self, vi, waveform_names, buffer_size, actual_buffer_size): # noqa: N802 - if self._defaults['GetAllNamedWaveformNames']['return'] != 0: - return self._defaults['GetAllNamedWaveformNames']['return'] - # actual_buffer_size - if self._defaults['GetAllNamedWaveformNames']['actualBufferSize'] is None: - raise MockFunctionCallError("niRFSG_GetAllNamedWaveformNames", param='actualBufferSize') - if actual_buffer_size is not None: - actual_buffer_size.contents.value = self._defaults['GetAllNamedWaveformNames']['actualBufferSize'] - # waveform_names - if self._defaults['GetAllNamedWaveformNames']['waveformNames'] is None: - raise MockFunctionCallError("niRFSG_GetAllNamedWaveformNames", param='waveformNames') - if buffer_size.value == 0: - return len(self._defaults['GetAllNamedWaveformNames']['waveformNames']) - waveform_names.value = self._defaults['GetAllNamedWaveformNames']['waveformNames'].encode('ascii') - return self._defaults['GetAllNamedWaveformNames']['return'] - - def niRFSG_GetAllScriptNames(self, vi, script_names, buffer_size, actual_buffer_size): # noqa: N802 - if self._defaults['GetAllScriptNames']['return'] != 0: - return self._defaults['GetAllScriptNames']['return'] - # actual_buffer_size - if self._defaults['GetAllScriptNames']['actualBufferSize'] is None: - raise MockFunctionCallError("niRFSG_GetAllScriptNames", param='actualBufferSize') - if actual_buffer_size is not None: - actual_buffer_size.contents.value = self._defaults['GetAllScriptNames']['actualBufferSize'] - # script_names - if self._defaults['GetAllScriptNames']['scriptNames'] is None: - raise MockFunctionCallError("niRFSG_GetAllScriptNames", param='scriptNames') - if buffer_size.value == 0: - return len(self._defaults['GetAllScriptNames']['scriptNames']) - script_names.value = self._defaults['GetAllScriptNames']['scriptNames'].encode('ascii') - return self._defaults['GetAllScriptNames']['return'] - - def niRFSG_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # value - if self._defaults['GetAttributeViBoolean']['value'] is None: - raise MockFunctionCallError("niRFSG_GetAttributeViBoolean", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViBoolean']['value'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niRFSG_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # value - if self._defaults['GetAttributeViInt32']['value'] is None: - raise MockFunctionCallError("niRFSG_GetAttributeViInt32", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt32']['value'] - return self._defaults['GetAttributeViInt32']['return'] - - def niRFSG_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViInt64']['return'] != 0: - return self._defaults['GetAttributeViInt64']['return'] - # value - if self._defaults['GetAttributeViInt64']['value'] is None: - raise MockFunctionCallError("niRFSG_GetAttributeViInt64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt64']['value'] - return self._defaults['GetAttributeViInt64']['return'] - - def niRFSG_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # value - if self._defaults['GetAttributeViReal64']['value'] is None: - raise MockFunctionCallError("niRFSG_GetAttributeViReal64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViReal64']['value'] - return self._defaults['GetAttributeViReal64']['return'] - - def niRFSG_GetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['GetAttributeViSession']['return'] != 0: - return self._defaults['GetAttributeViSession']['return'] - # value - if self._defaults['GetAttributeViSession']['value'] is None: - raise MockFunctionCallError("niRFSG_GetAttributeViSession", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViSession']['value'] - return self._defaults['GetAttributeViSession']['return'] - - def niRFSG_GetAttributeViString(self, vi, channel_name, attribute, buf_size, value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # value - if self._defaults['GetAttributeViString']['value'] is None: - raise MockFunctionCallError("niRFSG_GetAttributeViString", param='value') - if buf_size.value == 0: - return len(self._defaults['GetAttributeViString']['value']) - value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niRFSG_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 - if self._defaults['GetDeembeddingSparameters']['return'] != 0: - return self._defaults['GetDeembeddingSparameters']['return'] - # sparameters - if self._defaults['GetDeembeddingSparameters']['sparameters'] is None: - raise MockFunctionCallError("niRFSG_GetDeembeddingSparameters", param='sparameters') - test_value = self._defaults['GetDeembeddingSparameters']['sparameters'] - try: - sparameters_ref = sparameters.contents - except AttributeError: - sparameters_ref = sparameters - assert len(sparameters_ref) >= len(test_value) - for i in range(len(test_value)): - sparameters_ref[i] = test_value[i] - # number_of_sparameters - if self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] is None: - raise MockFunctionCallError("niRFSG_GetDeembeddingSparameters", param='numberOfSparameters') - if number_of_sparameters is not None: - number_of_sparameters.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] - # number_of_ports - if self._defaults['GetDeembeddingSparameters']['numberOfPorts'] is None: - raise MockFunctionCallError("niRFSG_GetDeembeddingSparameters", param='numberOfPorts') - if number_of_ports is not None: - number_of_ports.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfPorts'] - return self._defaults['GetDeembeddingSparameters']['return'] - - def niRFSG_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 - if self._defaults['GetDeembeddingTableNumberOfPorts']['return'] != 0: - return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] - # number_of_ports - if self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] is None: - raise MockFunctionCallError("niRFSG_GetDeembeddingTableNumberOfPorts", param='numberOfPorts') - if number_of_ports is not None: - number_of_ports.contents.value = self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] - return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] - - def niRFSG_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niRFSG_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # error_description - if self._defaults['GetError']['errorDescription'] is None: - raise MockFunctionCallError("niRFSG_GetError", param='errorDescription') - if error_description_buffer_size.value == 0: - return len(self._defaults['GetError']['errorDescription']) - error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') - return self._defaults['GetError']['return'] - - def niRFSG_GetExternalCalibrationLastDateAndTime(self, vi, year, month, day, hour, minute, second): # noqa: N802 - if self._defaults['GetExternalCalibrationLastDateAndTime']['return'] != 0: - return self._defaults['GetExternalCalibrationLastDateAndTime']['return'] - # year - if self._defaults['GetExternalCalibrationLastDateAndTime']['year'] is None: - raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['year'] - # month - if self._defaults['GetExternalCalibrationLastDateAndTime']['month'] is None: - raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['month'] - # day - if self._defaults['GetExternalCalibrationLastDateAndTime']['day'] is None: - raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['day'] - # hour - if self._defaults['GetExternalCalibrationLastDateAndTime']['hour'] is None: - raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['hour'] - # minute - if self._defaults['GetExternalCalibrationLastDateAndTime']['minute'] is None: - raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['minute'] - # second - if self._defaults['GetExternalCalibrationLastDateAndTime']['second'] is None: - raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='second') - if second is not None: - second.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['second'] - return self._defaults['GetExternalCalibrationLastDateAndTime']['return'] - - def niRFSG_GetMaxSettablePower(self, vi, value): # noqa: N802 - if self._defaults['GetMaxSettablePower']['return'] != 0: - return self._defaults['GetMaxSettablePower']['return'] - # value - if self._defaults['GetMaxSettablePower']['value'] is None: - raise MockFunctionCallError("niRFSG_GetMaxSettablePower", param='value') - if value is not None: - value.contents.value = self._defaults['GetMaxSettablePower']['value'] - return self._defaults['GetMaxSettablePower']['return'] - - def niRFSG_GetScript(self, vi, script_name, script, buffer_size, actual_buffer_size): # noqa: N802 - if self._defaults['GetScript']['return'] != 0: - return self._defaults['GetScript']['return'] - # actual_buffer_size - if self._defaults['GetScript']['actualBufferSize'] is None: - raise MockFunctionCallError("niRFSG_GetScript", param='actualBufferSize') - if actual_buffer_size is not None: - actual_buffer_size.contents.value = self._defaults['GetScript']['actualBufferSize'] - # script - if self._defaults['GetScript']['script'] is None: - raise MockFunctionCallError("niRFSG_GetScript", param='script') - if buffer_size.value == 0: - return len(self._defaults['GetScript']['script']) - script.value = self._defaults['GetScript']['script'].encode('ascii') - return self._defaults['GetScript']['return'] - - def niRFSG_GetSelfCalibrationDateAndTime(self, vi, module, year, month, day, hour, minute, second): # noqa: N802 - if self._defaults['GetSelfCalibrationDateAndTime']['return'] != 0: - return self._defaults['GetSelfCalibrationDateAndTime']['return'] - # year - if self._defaults['GetSelfCalibrationDateAndTime']['year'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='year') - if year is not None: - year.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['year'] - # month - if self._defaults['GetSelfCalibrationDateAndTime']['month'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='month') - if month is not None: - month.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['month'] - # day - if self._defaults['GetSelfCalibrationDateAndTime']['day'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='day') - if day is not None: - day.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['day'] - # hour - if self._defaults['GetSelfCalibrationDateAndTime']['hour'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='hour') - if hour is not None: - hour.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['hour'] - # minute - if self._defaults['GetSelfCalibrationDateAndTime']['minute'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='minute') - if minute is not None: - minute.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['minute'] - # second - if self._defaults['GetSelfCalibrationDateAndTime']['second'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='second') - if second is not None: - second.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['second'] - return self._defaults['GetSelfCalibrationDateAndTime']['return'] - - def niRFSG_GetSelfCalibrationTemperature(self, vi, module, temperature): # noqa: N802 - if self._defaults['GetSelfCalibrationTemperature']['return'] != 0: - return self._defaults['GetSelfCalibrationTemperature']['return'] - # temperature - if self._defaults['GetSelfCalibrationTemperature']['temperature'] is None: - raise MockFunctionCallError("niRFSG_GetSelfCalibrationTemperature", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['GetSelfCalibrationTemperature']['temperature'] - return self._defaults['GetSelfCalibrationTemperature']['return'] - - def niRFSG_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 - if self._defaults['GetTerminalName']['return'] != 0: - return self._defaults['GetTerminalName']['return'] - # terminal_name - if self._defaults['GetTerminalName']['terminalName'] is None: - raise MockFunctionCallError("niRFSG_GetTerminalName", param='terminalName') - if buffer_size.value == 0: - return len(self._defaults['GetTerminalName']['terminalName']) - terminal_name.value = self._defaults['GetTerminalName']['terminalName'].encode('ascii') - return self._defaults['GetTerminalName']['return'] - - def niRFSG_GetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 - if self._defaults['GetWaveformBurstStartLocations']['return'] != 0: - return self._defaults['GetWaveformBurstStartLocations']['return'] - # required_size - if self._defaults['GetWaveformBurstStartLocations']['requiredSize'] is None: - raise MockFunctionCallError("niRFSG_GetWaveformBurstStartLocations", param='requiredSize') - if required_size is not None: - required_size.contents.value = self._defaults['GetWaveformBurstStartLocations']['requiredSize'] - # locations - if self._defaults['GetWaveformBurstStartLocations']['locations'] is None: - raise MockFunctionCallError("niRFSG_GetWaveformBurstStartLocations", param='locations') - if number_of_locations.value == 0: - return len(self._defaults['GetWaveformBurstStartLocations']['locations']) - try: - locations_ref = locations.contents - except AttributeError: - locations_ref = locations - for i in range(len(self._defaults['GetWaveformBurstStartLocations']['locations'])): - locations_ref[i] = self._defaults['GetWaveformBurstStartLocations']['locations'][i] - return self._defaults['GetWaveformBurstStartLocations']['return'] - - def niRFSG_GetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 - if self._defaults['GetWaveformBurstStopLocations']['return'] != 0: - return self._defaults['GetWaveformBurstStopLocations']['return'] - # required_size - if self._defaults['GetWaveformBurstStopLocations']['requiredSize'] is None: - raise MockFunctionCallError("niRFSG_GetWaveformBurstStopLocations", param='requiredSize') - if required_size is not None: - required_size.contents.value = self._defaults['GetWaveformBurstStopLocations']['requiredSize'] - # locations - if self._defaults['GetWaveformBurstStopLocations']['locations'] is None: - raise MockFunctionCallError("niRFSG_GetWaveformBurstStopLocations", param='locations') - if number_of_locations.value == 0: - return len(self._defaults['GetWaveformBurstStopLocations']['locations']) - try: - locations_ref = locations.contents - except AttributeError: - locations_ref = locations - for i in range(len(self._defaults['GetWaveformBurstStopLocations']['locations'])): - locations_ref[i] = self._defaults['GetWaveformBurstStopLocations']['locations'][i] - return self._defaults['GetWaveformBurstStopLocations']['return'] - - def niRFSG_GetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 - if self._defaults['GetWaveformMarkerEventLocations']['return'] != 0: - return self._defaults['GetWaveformMarkerEventLocations']['return'] - # required_size - if self._defaults['GetWaveformMarkerEventLocations']['requiredSize'] is None: - raise MockFunctionCallError("niRFSG_GetWaveformMarkerEventLocations", param='requiredSize') - if required_size is not None: - required_size.contents.value = self._defaults['GetWaveformMarkerEventLocations']['requiredSize'] - # locations - if self._defaults['GetWaveformMarkerEventLocations']['locations'] is None: - raise MockFunctionCallError("niRFSG_GetWaveformMarkerEventLocations", param='locations') - if number_of_locations.value == 0: - return len(self._defaults['GetWaveformMarkerEventLocations']['locations']) - try: - locations_ref = locations.contents - except AttributeError: - locations_ref = locations - for i in range(len(self._defaults['GetWaveformMarkerEventLocations']['locations'])): - locations_ref[i] = self._defaults['GetWaveformMarkerEventLocations']['locations'][i] - return self._defaults['GetWaveformMarkerEventLocations']['return'] - - def niRFSG_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 - if self._defaults['InitWithOptions']['return'] != 0: - return self._defaults['InitWithOptions']['return'] - # new_vi - if self._defaults['InitWithOptions']['newVi'] is None: - raise MockFunctionCallError("niRFSG_InitWithOptions", param='newVi') - if new_vi is not None: - new_vi.contents.value = self._defaults['InitWithOptions']['newVi'] - return self._defaults['InitWithOptions']['return'] - - def niRFSG_Initiate(self, vi): # noqa: N802 - if self._defaults['Initiate']['return'] != 0: - return self._defaults['Initiate']['return'] - return self._defaults['Initiate']['return'] - - def niRFSG_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 - if self._defaults['LoadConfigurationsFromFile']['return'] != 0: - return self._defaults['LoadConfigurationsFromFile']['return'] - return self._defaults['LoadConfigurationsFromFile']['return'] - - def niRFSG_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niRFSG_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niRFSG_PerformPowerSearch(self, vi): # noqa: N802 - if self._defaults['PerformPowerSearch']['return'] != 0: - return self._defaults['PerformPowerSearch']['return'] - return self._defaults['PerformPowerSearch']['return'] - - def niRFSG_PerformThermalCorrection(self, vi): # noqa: N802 - if self._defaults['PerformThermalCorrection']['return'] != 0: - return self._defaults['PerformThermalCorrection']['return'] - return self._defaults['PerformThermalCorrection']['return'] - - def niRFSG_QueryArbWaveformCapabilities(self, vi, max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size): # noqa: N802 - if self._defaults['QueryArbWaveformCapabilities']['return'] != 0: - return self._defaults['QueryArbWaveformCapabilities']['return'] - # max_number_waveforms - if self._defaults['QueryArbWaveformCapabilities']['maxNumberWaveforms'] is None: - raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='maxNumberWaveforms') - if max_number_waveforms is not None: - max_number_waveforms.contents.value = self._defaults['QueryArbWaveformCapabilities']['maxNumberWaveforms'] - # waveform_quantum - if self._defaults['QueryArbWaveformCapabilities']['waveformQuantum'] is None: - raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='waveformQuantum') - if waveform_quantum is not None: - waveform_quantum.contents.value = self._defaults['QueryArbWaveformCapabilities']['waveformQuantum'] - # min_waveform_size - if self._defaults['QueryArbWaveformCapabilities']['minWaveformSize'] is None: - raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='minWaveformSize') - if min_waveform_size is not None: - min_waveform_size.contents.value = self._defaults['QueryArbWaveformCapabilities']['minWaveformSize'] - # max_waveform_size - if self._defaults['QueryArbWaveformCapabilities']['maxWaveformSize'] is None: - raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='maxWaveformSize') - if max_waveform_size is not None: - max_waveform_size.contents.value = self._defaults['QueryArbWaveformCapabilities']['maxWaveformSize'] - return self._defaults['QueryArbWaveformCapabilities']['return'] - - def niRFSG_ReadAndDownloadWaveformFromFileTDMS(self, vi, waveform_name, file_path, waveform_index): # noqa: N802 - if self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] != 0: - return self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] - return self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] - - def niRFSG_ResetDevice(self, vi): # noqa: N802 - if self._defaults['ResetDevice']['return'] != 0: - return self._defaults['ResetDevice']['return'] - return self._defaults['ResetDevice']['return'] - - def niRFSG_ResetWithDefaults(self, vi): # noqa: N802 - if self._defaults['ResetWithDefaults']['return'] != 0: - return self._defaults['ResetWithDefaults']['return'] - return self._defaults['ResetWithDefaults']['return'] - - def niRFSG_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 - if self._defaults['ResetWithOptions']['return'] != 0: - return self._defaults['ResetWithOptions']['return'] - return self._defaults['ResetWithOptions']['return'] - - def niRFSG_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 - if self._defaults['SaveConfigurationsToFile']['return'] != 0: - return self._defaults['SaveConfigurationsToFile']['return'] - return self._defaults['SaveConfigurationsToFile']['return'] - - def niRFSG_SelectArbWaveform(self, vi, waveform_name): # noqa: N802 - if self._defaults['SelectArbWaveform']['return'] != 0: - return self._defaults['SelectArbWaveform']['return'] - return self._defaults['SelectArbWaveform']['return'] - - def niRFSG_SelfCal(self, vi): # noqa: N802 - if self._defaults['SelfCal']['return'] != 0: - return self._defaults['SelfCal']['return'] - return self._defaults['SelfCal']['return'] - - def niRFSG_SelfCalibrateRange(self, vi, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 - if self._defaults['SelfCalibrateRange']['return'] != 0: - return self._defaults['SelfCalibrateRange']['return'] - return self._defaults['SelfCalibrateRange']['return'] - - def niRFSG_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 - if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: - return self._defaults['SendSoftwareEdgeTrigger']['return'] - return self._defaults['SendSoftwareEdgeTrigger']['return'] - - def niRFSG_SetArbWaveformNextWritePosition(self, vi, waveform_name, relative_to, offset): # noqa: N802 - if self._defaults['SetArbWaveformNextWritePosition']['return'] != 0: - return self._defaults['SetArbWaveformNextWritePosition']['return'] - return self._defaults['SetArbWaveformNextWritePosition']['return'] - - def niRFSG_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niRFSG_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niRFSG_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViInt64']['return'] != 0: - return self._defaults['SetAttributeViInt64']['return'] - return self._defaults['SetAttributeViInt64']['return'] - - def niRFSG_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niRFSG_SetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViSession']['return'] != 0: - return self._defaults['SetAttributeViSession']['return'] - return self._defaults['SetAttributeViSession']['return'] - - def niRFSG_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niRFSG_SetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 - if self._defaults['SetWaveformBurstStartLocations']['return'] != 0: - return self._defaults['SetWaveformBurstStartLocations']['return'] - return self._defaults['SetWaveformBurstStartLocations']['return'] - - def niRFSG_SetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 - if self._defaults['SetWaveformBurstStopLocations']['return'] != 0: - return self._defaults['SetWaveformBurstStopLocations']['return'] - return self._defaults['SetWaveformBurstStopLocations']['return'] - - def niRFSG_SetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 - if self._defaults['SetWaveformMarkerEventLocations']['return'] != 0: - return self._defaults['SetWaveformMarkerEventLocations']['return'] - return self._defaults['SetWaveformMarkerEventLocations']['return'] - - def niRFSG_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niRFSG_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niRFSG_WaitUntilSettled(self, vi, max_time_milliseconds): # noqa: N802 - if self._defaults['WaitUntilSettled']['return'] != 0: - return self._defaults['WaitUntilSettled']['return'] - return self._defaults['WaitUntilSettled']['return'] - - def niRFSG_WriteArbWaveformComplexF32(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 - if self._defaults['WriteArbWaveformComplexF32']['return'] != 0: - return self._defaults['WriteArbWaveformComplexF32']['return'] - return self._defaults['WriteArbWaveformComplexF32']['return'] - - def niRFSG_WriteArbWaveformComplexF64(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 - if self._defaults['WriteArbWaveformComplexF64']['return'] != 0: - return self._defaults['WriteArbWaveformComplexF64']['return'] - return self._defaults['WriteArbWaveformComplexF64']['return'] - - def niRFSG_WriteArbWaveformComplexI16(self, vi, waveform_name, number_of_samples, waveform_data_array): # noqa: N802 - if self._defaults['WriteArbWaveformComplexI16']['return'] != 0: - return self._defaults['WriteArbWaveformComplexI16']['return'] - return self._defaults['WriteArbWaveformComplexI16']['return'] - - def niRFSG_WriteScript(self, vi, script): # noqa: N802 - if self._defaults['WriteScript']['return'] != 0: - return self._defaults['WriteScript']['return'] - return self._defaults['WriteScript']['return'] - - def niRFSG_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niRFSG_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niRFSG_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niRFSG_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niRFSG_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niRFSG_Abort.side_effect = MockFunctionCallError("niRFSG_Abort") - mock_library.niRFSG_Abort.return_value = 0 - mock_library.niRFSG_AllocateArbWaveform.side_effect = MockFunctionCallError("niRFSG_AllocateArbWaveform") - mock_library.niRFSG_AllocateArbWaveform.return_value = 0 - mock_library.niRFSG_ChangeExternalCalibrationPassword.side_effect = MockFunctionCallError("niRFSG_ChangeExternalCalibrationPassword") - mock_library.niRFSG_ChangeExternalCalibrationPassword.return_value = 0 - mock_library.niRFSG_CheckGenerationStatus.side_effect = MockFunctionCallError("niRFSG_CheckGenerationStatus") - mock_library.niRFSG_CheckGenerationStatus.return_value = 0 - mock_library.niRFSG_CheckIfScriptExists.side_effect = MockFunctionCallError("niRFSG_CheckIfScriptExists") - mock_library.niRFSG_CheckIfScriptExists.return_value = 0 - mock_library.niRFSG_CheckIfWaveformExists.side_effect = MockFunctionCallError("niRFSG_CheckIfWaveformExists") - mock_library.niRFSG_CheckIfWaveformExists.return_value = 0 - mock_library.niRFSG_ClearAllArbWaveforms.side_effect = MockFunctionCallError("niRFSG_ClearAllArbWaveforms") - mock_library.niRFSG_ClearAllArbWaveforms.return_value = 0 - mock_library.niRFSG_ClearArbWaveform.side_effect = MockFunctionCallError("niRFSG_ClearArbWaveform") - mock_library.niRFSG_ClearArbWaveform.return_value = 0 - mock_library.niRFSG_ClearSelfCalibrateRange.side_effect = MockFunctionCallError("niRFSG_ClearSelfCalibrateRange") - mock_library.niRFSG_ClearSelfCalibrateRange.return_value = 0 - mock_library.niRFSG_Commit.side_effect = MockFunctionCallError("niRFSG_Commit") - mock_library.niRFSG_Commit.return_value = 0 - mock_library.niRFSG_ConfigureDeembeddingTableInterpolationLinear.side_effect = MockFunctionCallError("niRFSG_ConfigureDeembeddingTableInterpolationLinear") - mock_library.niRFSG_ConfigureDeembeddingTableInterpolationLinear.return_value = 0 - mock_library.niRFSG_ConfigureDeembeddingTableInterpolationNearest.side_effect = MockFunctionCallError("niRFSG_ConfigureDeembeddingTableInterpolationNearest") - mock_library.niRFSG_ConfigureDeembeddingTableInterpolationNearest.return_value = 0 - mock_library.niRFSG_ConfigureDeembeddingTableInterpolationSpline.side_effect = MockFunctionCallError("niRFSG_ConfigureDeembeddingTableInterpolationSpline") - mock_library.niRFSG_ConfigureDeembeddingTableInterpolationSpline.return_value = 0 - mock_library.niRFSG_ConfigureDigitalEdgeScriptTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureDigitalEdgeScriptTrigger") - mock_library.niRFSG_ConfigureDigitalEdgeScriptTrigger.return_value = 0 - mock_library.niRFSG_ConfigureDigitalEdgeStartTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureDigitalEdgeStartTrigger") - mock_library.niRFSG_ConfigureDigitalEdgeStartTrigger.return_value = 0 - mock_library.niRFSG_ConfigureDigitalLevelScriptTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureDigitalLevelScriptTrigger") - mock_library.niRFSG_ConfigureDigitalLevelScriptTrigger.return_value = 0 - mock_library.niRFSG_ConfigureRF.side_effect = MockFunctionCallError("niRFSG_ConfigureRF") - mock_library.niRFSG_ConfigureRF.return_value = 0 - mock_library.niRFSG_ConfigureRefClock.side_effect = MockFunctionCallError("niRFSG_ConfigureRefClock") - mock_library.niRFSG_ConfigureRefClock.return_value = 0 - mock_library.niRFSG_ConfigureSoftwareScriptTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureSoftwareScriptTrigger") - mock_library.niRFSG_ConfigureSoftwareScriptTrigger.return_value = 0 - mock_library.niRFSG_ConfigureSoftwareStartTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureSoftwareStartTrigger") - mock_library.niRFSG_ConfigureSoftwareStartTrigger.return_value = 0 - mock_library.niRFSG_CreateDeembeddingSparameterTableArray.side_effect = MockFunctionCallError("niRFSG_CreateDeembeddingSparameterTableArray") - mock_library.niRFSG_CreateDeembeddingSparameterTableArray.return_value = 0 - mock_library.niRFSG_CreateDeembeddingSparameterTableS2PFile.side_effect = MockFunctionCallError("niRFSG_CreateDeembeddingSparameterTableS2PFile") - mock_library.niRFSG_CreateDeembeddingSparameterTableS2PFile.return_value = 0 - mock_library.niRFSG_DeleteAllDeembeddingTables.side_effect = MockFunctionCallError("niRFSG_DeleteAllDeembeddingTables") - mock_library.niRFSG_DeleteAllDeembeddingTables.return_value = 0 - mock_library.niRFSG_DeleteDeembeddingTable.side_effect = MockFunctionCallError("niRFSG_DeleteDeembeddingTable") - mock_library.niRFSG_DeleteDeembeddingTable.return_value = 0 - mock_library.niRFSG_DeleteScript.side_effect = MockFunctionCallError("niRFSG_DeleteScript") - mock_library.niRFSG_DeleteScript.return_value = 0 - mock_library.niRFSG_DisableScriptTrigger.side_effect = MockFunctionCallError("niRFSG_DisableScriptTrigger") - mock_library.niRFSG_DisableScriptTrigger.return_value = 0 - mock_library.niRFSG_DisableStartTrigger.side_effect = MockFunctionCallError("niRFSG_DisableStartTrigger") - mock_library.niRFSG_DisableStartTrigger.return_value = 0 - mock_library.niRFSG_ErrorMessage.side_effect = MockFunctionCallError("niRFSG_ErrorMessage") - mock_library.niRFSG_ErrorMessage.return_value = 0 - mock_library.niRFSG_GetAllNamedWaveformNames.side_effect = MockFunctionCallError("niRFSG_GetAllNamedWaveformNames") - mock_library.niRFSG_GetAllNamedWaveformNames.return_value = 0 - mock_library.niRFSG_GetAllScriptNames.side_effect = MockFunctionCallError("niRFSG_GetAllScriptNames") - mock_library.niRFSG_GetAllScriptNames.return_value = 0 - mock_library.niRFSG_GetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSG_GetAttributeViBoolean") - mock_library.niRFSG_GetAttributeViBoolean.return_value = 0 - mock_library.niRFSG_GetAttributeViInt32.side_effect = MockFunctionCallError("niRFSG_GetAttributeViInt32") - mock_library.niRFSG_GetAttributeViInt32.return_value = 0 - mock_library.niRFSG_GetAttributeViInt64.side_effect = MockFunctionCallError("niRFSG_GetAttributeViInt64") - mock_library.niRFSG_GetAttributeViInt64.return_value = 0 - mock_library.niRFSG_GetAttributeViReal64.side_effect = MockFunctionCallError("niRFSG_GetAttributeViReal64") - mock_library.niRFSG_GetAttributeViReal64.return_value = 0 - mock_library.niRFSG_GetAttributeViSession.side_effect = MockFunctionCallError("niRFSG_GetAttributeViSession") - mock_library.niRFSG_GetAttributeViSession.return_value = 0 - mock_library.niRFSG_GetAttributeViString.side_effect = MockFunctionCallError("niRFSG_GetAttributeViString") - mock_library.niRFSG_GetAttributeViString.return_value = 0 - mock_library.niRFSG_GetDeembeddingSparameters.side_effect = MockFunctionCallError("niRFSG_GetDeembeddingSparameters") - mock_library.niRFSG_GetDeembeddingSparameters.return_value = 0 - mock_library.niRFSG_GetDeembeddingTableNumberOfPorts.side_effect = MockFunctionCallError("niRFSG_GetDeembeddingTableNumberOfPorts") - mock_library.niRFSG_GetDeembeddingTableNumberOfPorts.return_value = 0 - mock_library.niRFSG_GetError.side_effect = MockFunctionCallError("niRFSG_GetError") - mock_library.niRFSG_GetError.return_value = 0 - mock_library.niRFSG_GetExternalCalibrationLastDateAndTime.side_effect = MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime") - mock_library.niRFSG_GetExternalCalibrationLastDateAndTime.return_value = 0 - mock_library.niRFSG_GetMaxSettablePower.side_effect = MockFunctionCallError("niRFSG_GetMaxSettablePower") - mock_library.niRFSG_GetMaxSettablePower.return_value = 0 - mock_library.niRFSG_GetScript.side_effect = MockFunctionCallError("niRFSG_GetScript") - mock_library.niRFSG_GetScript.return_value = 0 - mock_library.niRFSG_GetSelfCalibrationDateAndTime.side_effect = MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime") - mock_library.niRFSG_GetSelfCalibrationDateAndTime.return_value = 0 - mock_library.niRFSG_GetSelfCalibrationTemperature.side_effect = MockFunctionCallError("niRFSG_GetSelfCalibrationTemperature") - mock_library.niRFSG_GetSelfCalibrationTemperature.return_value = 0 - mock_library.niRFSG_GetTerminalName.side_effect = MockFunctionCallError("niRFSG_GetTerminalName") - mock_library.niRFSG_GetTerminalName.return_value = 0 - mock_library.niRFSG_GetWaveformBurstStartLocations.side_effect = MockFunctionCallError("niRFSG_GetWaveformBurstStartLocations") - mock_library.niRFSG_GetWaveformBurstStartLocations.return_value = 0 - mock_library.niRFSG_GetWaveformBurstStopLocations.side_effect = MockFunctionCallError("niRFSG_GetWaveformBurstStopLocations") - mock_library.niRFSG_GetWaveformBurstStopLocations.return_value = 0 - mock_library.niRFSG_GetWaveformMarkerEventLocations.side_effect = MockFunctionCallError("niRFSG_GetWaveformMarkerEventLocations") - mock_library.niRFSG_GetWaveformMarkerEventLocations.return_value = 0 - mock_library.niRFSG_InitWithOptions.side_effect = MockFunctionCallError("niRFSG_InitWithOptions") - mock_library.niRFSG_InitWithOptions.return_value = 0 - mock_library.niRFSG_Initiate.side_effect = MockFunctionCallError("niRFSG_Initiate") - mock_library.niRFSG_Initiate.return_value = 0 - mock_library.niRFSG_LoadConfigurationsFromFile.side_effect = MockFunctionCallError("niRFSG_LoadConfigurationsFromFile") - mock_library.niRFSG_LoadConfigurationsFromFile.return_value = 0 - mock_library.niRFSG_LockSession.side_effect = MockFunctionCallError("niRFSG_LockSession") - mock_library.niRFSG_LockSession.return_value = 0 - mock_library.niRFSG_PerformPowerSearch.side_effect = MockFunctionCallError("niRFSG_PerformPowerSearch") - mock_library.niRFSG_PerformPowerSearch.return_value = 0 - mock_library.niRFSG_PerformThermalCorrection.side_effect = MockFunctionCallError("niRFSG_PerformThermalCorrection") - mock_library.niRFSG_PerformThermalCorrection.return_value = 0 - mock_library.niRFSG_QueryArbWaveformCapabilities.side_effect = MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities") - mock_library.niRFSG_QueryArbWaveformCapabilities.return_value = 0 - mock_library.niRFSG_ReadAndDownloadWaveformFromFileTDMS.side_effect = MockFunctionCallError("niRFSG_ReadAndDownloadWaveformFromFileTDMS") - mock_library.niRFSG_ReadAndDownloadWaveformFromFileTDMS.return_value = 0 - mock_library.niRFSG_ResetDevice.side_effect = MockFunctionCallError("niRFSG_ResetDevice") - mock_library.niRFSG_ResetDevice.return_value = 0 - mock_library.niRFSG_ResetWithDefaults.side_effect = MockFunctionCallError("niRFSG_ResetWithDefaults") - mock_library.niRFSG_ResetWithDefaults.return_value = 0 - mock_library.niRFSG_ResetWithOptions.side_effect = MockFunctionCallError("niRFSG_ResetWithOptions") - mock_library.niRFSG_ResetWithOptions.return_value = 0 - mock_library.niRFSG_SaveConfigurationsToFile.side_effect = MockFunctionCallError("niRFSG_SaveConfigurationsToFile") - mock_library.niRFSG_SaveConfigurationsToFile.return_value = 0 - mock_library.niRFSG_SelectArbWaveform.side_effect = MockFunctionCallError("niRFSG_SelectArbWaveform") - mock_library.niRFSG_SelectArbWaveform.return_value = 0 - mock_library.niRFSG_SelfCal.side_effect = MockFunctionCallError("niRFSG_SelfCal") - mock_library.niRFSG_SelfCal.return_value = 0 - mock_library.niRFSG_SelfCalibrateRange.side_effect = MockFunctionCallError("niRFSG_SelfCalibrateRange") - mock_library.niRFSG_SelfCalibrateRange.return_value = 0 - mock_library.niRFSG_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niRFSG_SendSoftwareEdgeTrigger") - mock_library.niRFSG_SendSoftwareEdgeTrigger.return_value = 0 - mock_library.niRFSG_SetArbWaveformNextWritePosition.side_effect = MockFunctionCallError("niRFSG_SetArbWaveformNextWritePosition") - mock_library.niRFSG_SetArbWaveformNextWritePosition.return_value = 0 - mock_library.niRFSG_SetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSG_SetAttributeViBoolean") - mock_library.niRFSG_SetAttributeViBoolean.return_value = 0 - mock_library.niRFSG_SetAttributeViInt32.side_effect = MockFunctionCallError("niRFSG_SetAttributeViInt32") - mock_library.niRFSG_SetAttributeViInt32.return_value = 0 - mock_library.niRFSG_SetAttributeViInt64.side_effect = MockFunctionCallError("niRFSG_SetAttributeViInt64") - mock_library.niRFSG_SetAttributeViInt64.return_value = 0 - mock_library.niRFSG_SetAttributeViReal64.side_effect = MockFunctionCallError("niRFSG_SetAttributeViReal64") - mock_library.niRFSG_SetAttributeViReal64.return_value = 0 - mock_library.niRFSG_SetAttributeViSession.side_effect = MockFunctionCallError("niRFSG_SetAttributeViSession") - mock_library.niRFSG_SetAttributeViSession.return_value = 0 - mock_library.niRFSG_SetAttributeViString.side_effect = MockFunctionCallError("niRFSG_SetAttributeViString") - mock_library.niRFSG_SetAttributeViString.return_value = 0 - mock_library.niRFSG_SetWaveformBurstStartLocations.side_effect = MockFunctionCallError("niRFSG_SetWaveformBurstStartLocations") - mock_library.niRFSG_SetWaveformBurstStartLocations.return_value = 0 - mock_library.niRFSG_SetWaveformBurstStopLocations.side_effect = MockFunctionCallError("niRFSG_SetWaveformBurstStopLocations") - mock_library.niRFSG_SetWaveformBurstStopLocations.return_value = 0 - mock_library.niRFSG_SetWaveformMarkerEventLocations.side_effect = MockFunctionCallError("niRFSG_SetWaveformMarkerEventLocations") - mock_library.niRFSG_SetWaveformMarkerEventLocations.return_value = 0 - mock_library.niRFSG_UnlockSession.side_effect = MockFunctionCallError("niRFSG_UnlockSession") - mock_library.niRFSG_UnlockSession.return_value = 0 - mock_library.niRFSG_WaitUntilSettled.side_effect = MockFunctionCallError("niRFSG_WaitUntilSettled") - mock_library.niRFSG_WaitUntilSettled.return_value = 0 - mock_library.niRFSG_WriteArbWaveformComplexF32.side_effect = MockFunctionCallError("niRFSG_WriteArbWaveformComplexF32") - mock_library.niRFSG_WriteArbWaveformComplexF32.return_value = 0 - mock_library.niRFSG_WriteArbWaveformComplexF64.side_effect = MockFunctionCallError("niRFSG_WriteArbWaveformComplexF64") - mock_library.niRFSG_WriteArbWaveformComplexF64.return_value = 0 - mock_library.niRFSG_WriteArbWaveformComplexI16.side_effect = MockFunctionCallError("niRFSG_WriteArbWaveformComplexI16") - mock_library.niRFSG_WriteArbWaveformComplexI16.return_value = 0 - mock_library.niRFSG_WriteScript.side_effect = MockFunctionCallError("niRFSG_WriteScript") - mock_library.niRFSG_WriteScript.return_value = 0 - mock_library.niRFSG_close.side_effect = MockFunctionCallError("niRFSG_close") - mock_library.niRFSG_close.return_value = 0 - mock_library.niRFSG_reset.side_effect = MockFunctionCallError("niRFSG_reset") - mock_library.niRFSG_reset.return_value = 0 - mock_library.niRFSG_self_test.side_effect = MockFunctionCallError("niRFSG_self_test") - mock_library.niRFSG_self_test.return_value = 0 diff --git a/generated/nirfsg/setup.py b/generated/nirfsg/setup.py deleted file mode 100644 index baa52e289d..0000000000 --- a/generated/nirfsg/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nirfsg' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.2.1.dev0', - description='NI-RFSG Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nirfsg'], - license='MIT', - include_package_data=True, - packages=['nirfsg'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - 'nitclk', - 'numpy', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nirfsg/tox-system_tests.ini b/generated/nirfsg/tox-system_tests.ini deleted file mode 100644 index da07dae76d..0000000000 --- a/generated/nirfsg/tox-system_tests.ini +++ /dev/null @@ -1,73 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nirfsg) -[tox] -envlist = py{310,311,312,313,314}-nirfsg-wheel_dep,py{310,311,312,313,314}-nirfsg-system_tests, py314-nirfsg-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nirfsg-wheel_dep: Build the nitclk wheel because we use it in nirfsg tests - nirfsg-system_tests: Run nirfsg system tests (requires NI-RFSG runtime to be installed) - nirfsg-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nirfsg-wheel_dep: ../nitclk - nirfsg-system_tests: . - nirfsg-coverage: . - -commands = - nirfsg-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nirfsg-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nirfsg-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. - nirfsg-system_tests: python -c "import nirfsg; nirfsg.print_diagnostic_information()" - nirfsg-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsg --parallel-mode -m pytest ../../src/nirfsg/examples --junitxml=../junit/junit-nirfsg-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nirfsg-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsg --parallel-mode -m pytest ../../src/nirfsg/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nirfsg-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nirfsg-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nirfsg-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nirfsg-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nirfsg-wheel_dep: build - - nirfsg-system_tests: pytest < 9.2.0 - nirfsg-system_tests: coverage - nirfsg-system_tests: numpy - nirfsg-system_tests: hightime - nirfsg-system_tests: fasteners - nirfsg-system_tests: pytest-json - nirfsg-system_tests: .[grpc] - - nirfsg-coverage: coverage - -depends = - nirfsg-coverage: py{310,311,312,313,314}-nirfsg-system_tests - nirfsg-system_tests: py{310,311,312,313,314}-nirfsg-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/niscope/README.rst b/generated/niscope/README.rst deleted file mode 100644 index 468f54d9cd..0000000000 --- a/generated/niscope/README.rst +++ /dev/null @@ -1,186 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **niscope** module provides a Python API for NI-SCOPE. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**niscope** supports all the Operating Systems supported by NI-SCOPE. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **niscope**. - - -NI-SCOPE Python API Status --------------------------- - -+-------------------------------+------------------------+ -| NI-SCOPE (niscope) | | -+===============================+========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+------------------------+ -| PyPI Version | |niscopeLatestVersion| | -+-------------------------------+------------------------+ -| Supported Python Version | |niscopePythonVersion| | -+-------------------------------+------------------------+ -| Documentation | |niscopeDocs| | -+-------------------------------+------------------------+ -| Open Issues | |niscopeOpenIssues| | -+-------------------------------+------------------------+ -| Open Pull Requests | |niscopeOpenPRs| | -+-------------------------------+------------------------+ - - -.. |niscopeLatestVersion| image:: http://img.shields.io/pypi/v/niscope.svg - :alt: Latest NI-SCOPE Version - :target: http://pypi.python.org/pypi/niscope - - -.. |niscopePythonVersion| image:: http://img.shields.io/pypi/pyversions/niscope.svg - :alt: NI-SCOPE supported Python versions - :target: http://pypi.python.org/pypi/niscope - - -.. |niscopeDocs| image:: https://readthedocs.org/projects/niscope/badge/?version=latest - :alt: NI-SCOPE Python API Documentation Status - :target: https://niscope.readthedocs.io/en/latest - - -.. |niscopeOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niscope.svg - :alt: Open Issues + Pull Requests for NI-SCOPE - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniscope - - -.. |niscopeOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niscope.svg - :alt: Pull Requests for NI-SCOPE - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniscope - - - -.. _niscope_installation-section: - -Installation ------------- - -As a prerequisite to using the **niscope** module, you must install the NI-SCOPE runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-SCOPE**) can be installed with `pip `_:: - - $ python -m pip install niscope - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **niscope** module to open a session to a High Speed Digitizer and capture a single record of 1000 points. - -.. code-block:: python - - import niscope - with niscope.Session("Dev1") as session: - session.channels[0].configure_vertical(range=1.0, coupling=niscope.VerticalCoupling.AC) - session.channels[1].configure_vertical(range=10.0, coupling=niscope.VerticalCoupling.DC) - session.configure_horizontal_timing(min_sample_rate=50000000, min_num_pts=1000, ref_position=50.0, num_records=5, enforce_realtime=True) - with session.initiate(): - waveforms = session.channels[0,1].fetch(num_records=5) - for wfm in waveforms: - print('Channel {}, record {} samples acquired: {:,}\n'.format(wfm.channel, wfm.record, len(wfm.samples))) - - # Find all channel 1 records (Note channel name is always a string even if integers used in channel[]) - chan1 = [wfm for wfm in waveforms if wfm.channel == '0'] - - # Find all record number 3 - rec3 = [wfm for wfm in waveforms if wfm.record == 3] - -If you need faster fetch performance, or to directly interface with `SciPy `_, you can use the **fetch_into()** method instead of **fetch()**. See the fetch_into example. - - -`Other usage examples can be found on GitHub. `_ - - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/niscope/niscope/VERSION b/generated/niscope/niscope/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/niscope/niscope/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/niscope/niscope/__init__.py b/generated/niscope/niscope/__init__.py deleted file mode 100644 index 7a33a7224e..0000000000 --- a/generated/niscope/niscope/__init__.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from niscope.enums import * # noqa: F403,F401,H303 -from niscope.errors import DriverWarning # noqa: F401 -from niscope.errors import Error # noqa: F401 -from niscope.grpc_session_options import * # noqa: F403,F401,H303 -from niscope.session import Session # noqa: F401 - -from niscope.waveform_info import WaveformInfo # noqa: F401 - -from niscope.waveform_info import struct_niScope_wfmInfo # noqa: F401 - -from niscope.measurement_stats import MeasurementStats # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-SCOPE\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-SCOPE" - info['driver']['version'] = driver_version - info['module']['name'] = 'niscope' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/niscope/niscope/_attributes.py b/generated/niscope/niscope/_attributes.py deleted file mode 100644 index 5faf08e15b..0000000000 --- a/generated/niscope/niscope/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import niscope._converters as _converters -import niscope.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the niscope Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from niscope.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/niscope/niscope/_converters.py b/generated/niscope/niscope/_converters.py deleted file mode 100644 index 78518a9132..0000000000 --- a/generated/niscope/niscope/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import niscope._visatype as _visatype -import niscope.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/niscope/niscope/_grpc_stub_interpreter.py b/generated/niscope/niscope/_grpc_stub_interpreter.py deleted file mode 100644 index 93d12cedba..0000000000 --- a/generated/niscope/niscope/_grpc_stub_interpreter.py +++ /dev/null @@ -1,463 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import niscope_pb2 as grpc_types -from . import niscope_pb2_grpc as niscope_grpc - -from . import waveform_info as waveform_info # noqa: F401 - -from . import measurement_stats as measurement_stats # noqa: F401 - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = niscope_grpc.NiScopeStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.Abort, - grpc_types.AbortRequest(vi=self._vi), - ) - - def acquisition_status(self): # noqa: N802 - response = self._invoke( - self._client.AcquisitionStatus, - grpc_types.AcquisitionStatusRequest(vi=self._vi), - ) - return enums.AcquisitionStatus(response.acquisition_status_raw) - - def actual_meas_wfm_size(self, array_meas_function): # noqa: N802 - response = self._invoke( - self._client.ActualMeasWfmSize, - grpc_types.ActualMeasWfmSizeRequest(vi=self._vi, array_meas_function_raw=array_meas_function.value), - ) - return response.meas_waveform_size - - def actual_num_wfms(self, channel_list): # noqa: N802 - response = self._invoke( - self._client.ActualNumWfms, - grpc_types.ActualNumWfmsRequest(vi=self._vi, channel_list=channel_list), - ) - return response.num_wfms - - def add_waveform_processing(self, channel_list, meas_function): # noqa: N802 - self._invoke( - self._client.AddWaveformProcessing, - grpc_types.AddWaveformProcessingRequest(vi=self._vi, channel_list=channel_list, meas_function_raw=meas_function.value), - ) - - def auto_setup(self): # noqa: N802 - self._invoke( - self._client.AutoSetup, - grpc_types.AutoSetupRequest(vi=self._vi), - ) - - def cal_fetch_date(self, which_one): # noqa: N802 - response = self._invoke( - self._client.CalFetchDate, - grpc_types.CalFetchDateRequest(vi=self._vi, which_one_raw=which_one.value), - ) - return response.year, response.month, response.day - - def cal_fetch_temperature(self, which_one): # noqa: N802 - response = self._invoke( - self._client.CalFetchTemperature, - grpc_types.CalFetchTemperatureRequest(vi=self._vi, which_one_raw=which_one), - ) - return response.temperature - - def self_cal(self, channel_list, option): # noqa: N802 - self._invoke( - self._client.CalSelfCalibrate, - grpc_types.CalSelfCalibrateRequest(vi=self._vi, channel_list=channel_list, option_raw=option.value), - ) - - def clear_waveform_measurement_stats(self, channel_list, clearable_measurement_function): # noqa: N802 - self._invoke( - self._client.ClearWaveformMeasurementStats, - grpc_types.ClearWaveformMeasurementStatsRequest(vi=self._vi, channel_list=channel_list, clearable_measurement_function_raw=clearable_measurement_function.value), - ) - - def clear_waveform_processing(self, channel_list): # noqa: N802 - self._invoke( - self._client.ClearWaveformProcessing, - grpc_types.ClearWaveformProcessingRequest(vi=self._vi, channel_list=channel_list), - ) - - def commit(self): # noqa: N802 - self._invoke( - self._client.Commit, - grpc_types.CommitRequest(vi=self._vi), - ) - - def configure_chan_characteristics(self, channel_list, input_impedance, max_input_frequency): # noqa: N802 - self._invoke( - self._client.ConfigureChanCharacteristics, - grpc_types.ConfigureChanCharacteristicsRequest(vi=self._vi, channel_list=channel_list, input_impedance=input_impedance, max_input_frequency=max_input_frequency), - ) - - def configure_equalization_filter_coefficients(self, channel_list, coefficients): # noqa: N802 - self._invoke( - self._client.ConfigureEqualizationFilterCoefficients, - grpc_types.ConfigureEqualizationFilterCoefficientsRequest(vi=self._vi, channel_list=channel_list, coefficients=coefficients), - ) - - def configure_horizontal_timing(self, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 - self._invoke( - self._client.ConfigureHorizontalTiming, - grpc_types.ConfigureHorizontalTimingRequest(vi=self._vi, min_sample_rate=min_sample_rate, min_num_pts=min_num_pts, ref_position=ref_position, num_records=num_records, enforce_realtime=enforce_realtime), - ) - - def configure_ref_levels(self, low, mid, high): # noqa: N802 - raise NotImplementedError('configure_ref_levels is not supported over gRPC') - - def configure_trigger_digital(self, trigger_source, slope, holdoff, delay): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerDigital, - grpc_types.ConfigureTriggerDigitalRequest(vi=self._vi, trigger_source=trigger_source, slope_raw=slope.value, holdoff=holdoff, delay=delay), - ) - - def configure_trigger_edge(self, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerEdge, - grpc_types.ConfigureTriggerEdgeRequest(vi=self._vi, trigger_source=trigger_source, level=level, slope_raw=slope.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), - ) - - def configure_trigger_hysteresis(self, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerHysteresis, - grpc_types.ConfigureTriggerHysteresisRequest(vi=self._vi, trigger_source=trigger_source, level=level, hysteresis=hysteresis, slope_raw=slope.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), - ) - - def configure_trigger_immediate(self): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerImmediate, - grpc_types.ConfigureTriggerImmediateRequest(vi=self._vi), - ) - - def configure_trigger_software(self, holdoff, delay): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerSoftware, - grpc_types.ConfigureTriggerSoftwareRequest(vi=self._vi, holdoff=holdoff, delay=delay), - ) - - def configure_trigger_video(self, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerVideo, - grpc_types.ConfigureTriggerVideoRequest(vi=self._vi, trigger_source=trigger_source, enable_dc_restore=enable_dc_restore, signal_format_raw=signal_format.value, event_raw=event.value, line_number=line_number, polarity_raw=polarity.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), - ) - - def configure_trigger_window(self, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 - self._invoke( - self._client.ConfigureTriggerWindow, - grpc_types.ConfigureTriggerWindowRequest(vi=self._vi, trigger_source=trigger_source, low_level=low_level, high_level=high_level, window_mode_raw=window_mode.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), - ) - - def configure_vertical(self, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 - self._invoke( - self._client.ConfigureVertical, - grpc_types.ConfigureVerticalRequest(vi=self._vi, channel_list=channel_list, range=range, offset=offset, coupling_raw=coupling.value, probe_attenuation=probe_attenuation, enabled=enabled), - ) - - def disable(self): # noqa: N802 - self._invoke( - self._client.Disable, - grpc_types.DisableRequest(vi=self._vi), - ) - - def export_attribute_configuration_buffer(self): # noqa: N802 - response = self._invoke( - self._client.ExportAttributeConfigurationBuffer, - grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), - ) - return response.configuration - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ExportAttributeConfigurationFile, - grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def fetch(self, channel_list, timeout, num_samples): # noqa: N802 - response = self._invoke( - self._client.Fetch, - grpc_types.FetchRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, num_samples=num_samples), - ) - return response.waveform, [waveform_info.WaveformInfo(x) for x in response.wfm_info] - - def fetch_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def fetch_array_measurement(self, channel_list, timeout, array_meas_function, measurement_waveform_size): # noqa: N802 - response = self._invoke( - self._client.FetchArrayMeasurement, - grpc_types.FetchArrayMeasurementRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, array_meas_function_raw=array_meas_function.value, meas_wfm_size=measurement_waveform_size), - ) - return response.meas_wfm, [waveform_info.WaveformInfo(x) for x in response.wfm_info] - - def fetch_binary16_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def fetch_binary32_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def fetch_binary8_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 - raise NotImplementedError('numpy-specific methods are not supported over gRPC') - - def fetch_measurement_stats(self, channel_list, timeout, scalar_meas_function): # noqa: N802 - response = self._invoke( - self._client.FetchMeasurementStats, - grpc_types.FetchMeasurementStatsRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, scalar_meas_function_raw=scalar_meas_function.value), - ) - return response.result, response.mean, response.stdev, response.min, response.max, response.num_in_stats - - def get_attribute_vi_boolean(self, channel_list, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_int32(self, channel_list, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_int64(self, channel_list, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt64, - grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_real64(self, channel_list, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), - ) - return response.value - - def get_attribute_vi_string(self, channel_list, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), - ) - return response.value - - def get_channel_names(self, indices): # noqa: N802 - response = self._invoke( - self._client.GetChannelNameFromString, - grpc_types.GetChannelNameFromStringRequest(vi=self._vi, index=indices), - ) - return response.name - - def get_equalization_filter_coefficients(self, channel, number_of_coefficients): # noqa: N802 - response = self._invoke( - self._client.GetEqualizationFilterCoefficients, - grpc_types.GetEqualizationFilterCoefficientsRequest(vi=self._vi, channel=channel, number_of_coefficients=number_of_coefficients), - ) - return response.coefficients - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.error_code, response.description - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationBuffer, - grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), - ) - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - self._invoke( - self._client.ImportAttributeConfigurationFile, - grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), - ) - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithOptions, - grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate_acquisition(self): # noqa: N802 - self._invoke( - self._client.InitiateAcquisition, - grpc_types.InitiateAcquisitionRequest(vi=self._vi), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def probe_compensation_signal_start(self): # noqa: N802 - self._invoke( - self._client.ProbeCompensationSignalStart, - grpc_types.ProbeCompensationSignalStartRequest(vi=self._vi), - ) - - def probe_compensation_signal_stop(self): # noqa: N802 - self._invoke( - self._client.ProbeCompensationSignalStop, - grpc_types.ProbeCompensationSignalStopRequest(vi=self._vi), - ) - - def read(self, channel_list, timeout, num_samples): # noqa: N802 - response = self._invoke( - self._client.Read, - grpc_types.ReadRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, num_samples=num_samples), - ) - return response.waveform, [waveform_info.WaveformInfo(x) for x in response.wfm_info] - - def reset_device(self): # noqa: N802 - self._invoke( - self._client.ResetDevice, - grpc_types.ResetDeviceRequest(vi=self._vi), - ) - - def reset_with_defaults(self): # noqa: N802 - raise NotImplementedError('reset_with_defaults is not supported over gRPC') - - def send_software_trigger_edge(self, which_trigger): # noqa: N802 - self._invoke( - self._client.SendSoftwareTriggerEdge, - grpc_types.SendSoftwareTriggerEdgeRequest(vi=self._vi, which_trigger_raw=which_trigger.value), - ) - - def set_attribute_vi_boolean(self, channel_list, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value=value), - ) - - def set_attribute_vi_int32(self, channel_list, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), - ) - - def set_attribute_vi_int64(self, channel_list, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt64, - grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), - ) - - def set_attribute_vi_real64(self, channel_list, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), - ) - - def set_attribute_vi_string(self, channel_list, attribute_id, value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def unlock(self): # noqa: N802 - self._lock.release() - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.GetErrorMessage, - grpc_types.GetErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.self_test_result, response.self_test_message diff --git a/generated/niscope/niscope/_library.py b/generated/niscope/niscope/_library.py deleted file mode 100644 index da85e7765a..0000000000 --- a/generated/niscope/niscope/_library.py +++ /dev/null @@ -1,599 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import niscope.errors as errors -import threading - -from niscope._visatype import * # noqa: F403,H303 - -import niscope.waveform_info as waveform_info # noqa: F401 - -import niscope.measurement_stats as measurement_stats # noqa: F401 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niScope_Abort_cfunc = None - self.niScope_AcquisitionStatus_cfunc = None - self.niScope_ActualMeasWfmSize_cfunc = None - self.niScope_ActualNumWfms_cfunc = None - self.niScope_AddWaveformProcessing_cfunc = None - self.niScope_AutoSetup_cfunc = None - self.niScope_CalFetchDate_cfunc = None - self.niScope_CalFetchTemperature_cfunc = None - self.niScope_CalSelfCalibrate_cfunc = None - self.niScope_ClearWaveformMeasurementStats_cfunc = None - self.niScope_ClearWaveformProcessing_cfunc = None - self.niScope_Commit_cfunc = None - self.niScope_ConfigureChanCharacteristics_cfunc = None - self.niScope_ConfigureEqualizationFilterCoefficients_cfunc = None - self.niScope_ConfigureHorizontalTiming_cfunc = None - self.niScope_ConfigureRefLevels_cfunc = None - self.niScope_ConfigureTriggerDigital_cfunc = None - self.niScope_ConfigureTriggerEdge_cfunc = None - self.niScope_ConfigureTriggerHysteresis_cfunc = None - self.niScope_ConfigureTriggerImmediate_cfunc = None - self.niScope_ConfigureTriggerSoftware_cfunc = None - self.niScope_ConfigureTriggerVideo_cfunc = None - self.niScope_ConfigureTriggerWindow_cfunc = None - self.niScope_ConfigureVertical_cfunc = None - self.niScope_Disable_cfunc = None - self.niScope_ExportAttributeConfigurationBuffer_cfunc = None - self.niScope_ExportAttributeConfigurationFile_cfunc = None - self.niScope_Fetch_cfunc = None - self.niScope_FetchArrayMeasurement_cfunc = None - self.niScope_FetchBinary16_cfunc = None - self.niScope_FetchBinary32_cfunc = None - self.niScope_FetchBinary8_cfunc = None - self.niScope_FetchMeasurementStats_cfunc = None - self.niScope_GetAttributeViBoolean_cfunc = None - self.niScope_GetAttributeViInt32_cfunc = None - self.niScope_GetAttributeViInt64_cfunc = None - self.niScope_GetAttributeViReal64_cfunc = None - self.niScope_GetAttributeViString_cfunc = None - self.niScope_GetChannelNameFromString_cfunc = None - self.niScope_GetEqualizationFilterCoefficients_cfunc = None - self.niScope_GetError_cfunc = None - self.niScope_ImportAttributeConfigurationBuffer_cfunc = None - self.niScope_ImportAttributeConfigurationFile_cfunc = None - self.niScope_InitWithOptions_cfunc = None - self.niScope_InitiateAcquisition_cfunc = None - self.niScope_LockSession_cfunc = None - self.niScope_ProbeCompensationSignalStart_cfunc = None - self.niScope_ProbeCompensationSignalStop_cfunc = None - self.niScope_Read_cfunc = None - self.niScope_ResetDevice_cfunc = None - self.niScope_ResetWithDefaults_cfunc = None - self.niScope_SendSoftwareTriggerEdge_cfunc = None - self.niScope_SetAttributeViBoolean_cfunc = None - self.niScope_SetAttributeViInt32_cfunc = None - self.niScope_SetAttributeViInt64_cfunc = None - self.niScope_SetAttributeViReal64_cfunc = None - self.niScope_SetAttributeViString_cfunc = None - self.niScope_SetRuntimeEnvironment_cfunc = None - self.niScope_UnlockSession_cfunc = None - self.niScope_close_cfunc = None - self.niScope_error_message_cfunc = None - self.niScope_reset_cfunc = None - self.niScope_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niScope_Abort(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_Abort_cfunc is None: - self.niScope_Abort_cfunc = self._get_library_function('niScope_Abort') - self.niScope_Abort_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_Abort_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_Abort_cfunc(vi) - - def niScope_AcquisitionStatus(self, vi, acquisition_status): # noqa: N802 - with self._func_lock: - if self.niScope_AcquisitionStatus_cfunc is None: - self.niScope_AcquisitionStatus_cfunc = self._get_library_function('niScope_AcquisitionStatus') - self.niScope_AcquisitionStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niScope_AcquisitionStatus_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_AcquisitionStatus_cfunc(vi, acquisition_status) - - def niScope_ActualMeasWfmSize(self, vi, array_meas_function, meas_waveform_size): # noqa: N802 - with self._func_lock: - if self.niScope_ActualMeasWfmSize_cfunc is None: - self.niScope_ActualMeasWfmSize_cfunc = self._get_library_function('niScope_ActualMeasWfmSize') - self.niScope_ActualMeasWfmSize_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niScope_ActualMeasWfmSize_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ActualMeasWfmSize_cfunc(vi, array_meas_function, meas_waveform_size) - - def niScope_ActualNumWfms(self, vi, channel_list, num_wfms): # noqa: N802 - with self._func_lock: - if self.niScope_ActualNumWfms_cfunc is None: - self.niScope_ActualNumWfms_cfunc = self._get_library_function('niScope_ActualNumWfms') - self.niScope_ActualNumWfms_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niScope_ActualNumWfms_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ActualNumWfms_cfunc(vi, channel_list, num_wfms) - - def niScope_AddWaveformProcessing(self, vi, channel_list, meas_function): # noqa: N802 - with self._func_lock: - if self.niScope_AddWaveformProcessing_cfunc is None: - self.niScope_AddWaveformProcessing_cfunc = self._get_library_function('niScope_AddWaveformProcessing') - self.niScope_AddWaveformProcessing_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niScope_AddWaveformProcessing_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_AddWaveformProcessing_cfunc(vi, channel_list, meas_function) - - def niScope_AutoSetup(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_AutoSetup_cfunc is None: - self.niScope_AutoSetup_cfunc = self._get_library_function('niScope_AutoSetup') - self.niScope_AutoSetup_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_AutoSetup_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_AutoSetup_cfunc(vi) - - def niScope_CalFetchDate(self, vi, which_one, year, month, day): # noqa: N802 - with self._func_lock: - if self.niScope_CalFetchDate_cfunc is None: - self.niScope_CalFetchDate_cfunc = self._get_library_function('niScope_CalFetchDate') - self.niScope_CalFetchDate_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niScope_CalFetchDate_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_CalFetchDate_cfunc(vi, which_one, year, month, day) - - def niScope_CalFetchTemperature(self, vi, which_one, temperature): # noqa: N802 - with self._func_lock: - if self.niScope_CalFetchTemperature_cfunc is None: - self.niScope_CalFetchTemperature_cfunc = self._get_library_function('niScope_CalFetchTemperature') - self.niScope_CalFetchTemperature_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niScope_CalFetchTemperature_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_CalFetchTemperature_cfunc(vi, which_one, temperature) - - def niScope_CalSelfCalibrate(self, vi, channel_list, option): # noqa: N802 - with self._func_lock: - if self.niScope_CalSelfCalibrate_cfunc is None: - self.niScope_CalSelfCalibrate_cfunc = self._get_library_function('niScope_CalSelfCalibrate') - self.niScope_CalSelfCalibrate_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niScope_CalSelfCalibrate_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_CalSelfCalibrate_cfunc(vi, channel_list, option) - - def niScope_ClearWaveformMeasurementStats(self, vi, channel_list, clearable_measurement_function): # noqa: N802 - with self._func_lock: - if self.niScope_ClearWaveformMeasurementStats_cfunc is None: - self.niScope_ClearWaveformMeasurementStats_cfunc = self._get_library_function('niScope_ClearWaveformMeasurementStats') - self.niScope_ClearWaveformMeasurementStats_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niScope_ClearWaveformMeasurementStats_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ClearWaveformMeasurementStats_cfunc(vi, channel_list, clearable_measurement_function) - - def niScope_ClearWaveformProcessing(self, vi, channel_list): # noqa: N802 - with self._func_lock: - if self.niScope_ClearWaveformProcessing_cfunc is None: - self.niScope_ClearWaveformProcessing_cfunc = self._get_library_function('niScope_ClearWaveformProcessing') - self.niScope_ClearWaveformProcessing_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_ClearWaveformProcessing_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ClearWaveformProcessing_cfunc(vi, channel_list) - - def niScope_Commit(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_Commit_cfunc is None: - self.niScope_Commit_cfunc = self._get_library_function('niScope_Commit') - self.niScope_Commit_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_Commit_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_Commit_cfunc(vi) - - def niScope_ConfigureChanCharacteristics(self, vi, channel_list, input_impedance, max_input_frequency): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureChanCharacteristics_cfunc is None: - self.niScope_ConfigureChanCharacteristics_cfunc = self._get_library_function('niScope_ConfigureChanCharacteristics') - self.niScope_ConfigureChanCharacteristics_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureChanCharacteristics_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureChanCharacteristics_cfunc(vi, channel_list, input_impedance, max_input_frequency) - - def niScope_ConfigureEqualizationFilterCoefficients(self, vi, channel_list, number_of_coefficients, coefficients): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureEqualizationFilterCoefficients_cfunc is None: - self.niScope_ConfigureEqualizationFilterCoefficients_cfunc = self._get_library_function('niScope_ConfigureEqualizationFilterCoefficients') - self.niScope_ConfigureEqualizationFilterCoefficients_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niScope_ConfigureEqualizationFilterCoefficients_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureEqualizationFilterCoefficients_cfunc(vi, channel_list, number_of_coefficients, coefficients) - - def niScope_ConfigureHorizontalTiming(self, vi, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureHorizontalTiming_cfunc is None: - self.niScope_ConfigureHorizontalTiming_cfunc = self._get_library_function('niScope_ConfigureHorizontalTiming') - self.niScope_ConfigureHorizontalTiming_cfunc.argtypes = [ViSession, ViReal64, ViInt32, ViReal64, ViInt32, ViBoolean] # noqa: F405 - self.niScope_ConfigureHorizontalTiming_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureHorizontalTiming_cfunc(vi, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime) - - def niScope_ConfigureRefLevels(self, vi, low, mid, high): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureRefLevels_cfunc is None: - self.niScope_ConfigureRefLevels_cfunc = self._get_library_function('niScope_ConfigureRefLevels') - self.niScope_ConfigureRefLevels_cfunc.argtypes = [ViSession, ViReal64, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureRefLevels_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureRefLevels_cfunc(vi, low, mid, high) - - def niScope_ConfigureTriggerDigital(self, vi, trigger_source, slope, holdoff, delay): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerDigital_cfunc is None: - self.niScope_ConfigureTriggerDigital_cfunc = self._get_library_function('niScope_ConfigureTriggerDigital') - self.niScope_ConfigureTriggerDigital_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureTriggerDigital_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerDigital_cfunc(vi, trigger_source, slope, holdoff, delay) - - def niScope_ConfigureTriggerEdge(self, vi, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerEdge_cfunc is None: - self.niScope_ConfigureTriggerEdge_cfunc = self._get_library_function('niScope_ConfigureTriggerEdge') - self.niScope_ConfigureTriggerEdge_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureTriggerEdge_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerEdge_cfunc(vi, trigger_source, level, slope, trigger_coupling, holdoff, delay) - - def niScope_ConfigureTriggerHysteresis(self, vi, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerHysteresis_cfunc is None: - self.niScope_ConfigureTriggerHysteresis_cfunc = self._get_library_function('niScope_ConfigureTriggerHysteresis') - self.niScope_ConfigureTriggerHysteresis_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureTriggerHysteresis_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerHysteresis_cfunc(vi, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay) - - def niScope_ConfigureTriggerImmediate(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerImmediate_cfunc is None: - self.niScope_ConfigureTriggerImmediate_cfunc = self._get_library_function('niScope_ConfigureTriggerImmediate') - self.niScope_ConfigureTriggerImmediate_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_ConfigureTriggerImmediate_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerImmediate_cfunc(vi) - - def niScope_ConfigureTriggerSoftware(self, vi, holdoff, delay): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerSoftware_cfunc is None: - self.niScope_ConfigureTriggerSoftware_cfunc = self._get_library_function('niScope_ConfigureTriggerSoftware') - self.niScope_ConfigureTriggerSoftware_cfunc.argtypes = [ViSession, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureTriggerSoftware_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerSoftware_cfunc(vi, holdoff, delay) - - def niScope_ConfigureTriggerVideo(self, vi, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerVideo_cfunc is None: - self.niScope_ConfigureTriggerVideo_cfunc = self._get_library_function('niScope_ConfigureTriggerVideo') - self.niScope_ConfigureTriggerVideo_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean, ViInt32, ViInt32, ViInt32, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureTriggerVideo_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerVideo_cfunc(vi, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay) - - def niScope_ConfigureTriggerWindow(self, vi, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureTriggerWindow_cfunc is None: - self.niScope_ConfigureTriggerWindow_cfunc = self._get_library_function('niScope_ConfigureTriggerWindow') - self.niScope_ConfigureTriggerWindow_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 - self.niScope_ConfigureTriggerWindow_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureTriggerWindow_cfunc(vi, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay) - - def niScope_ConfigureVertical(self, vi, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 - with self._func_lock: - if self.niScope_ConfigureVertical_cfunc is None: - self.niScope_ConfigureVertical_cfunc = self._get_library_function('niScope_ConfigureVertical') - self.niScope_ConfigureVertical_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViInt32, ViReal64, ViBoolean] # noqa: F405 - self.niScope_ConfigureVertical_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ConfigureVertical_cfunc(vi, channel_list, range, offset, coupling, probe_attenuation, enabled) - - def niScope_Disable(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_Disable_cfunc is None: - self.niScope_Disable_cfunc = self._get_library_function('niScope_Disable') - self.niScope_Disable_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_Disable_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_Disable_cfunc(vi) - - def niScope_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - with self._func_lock: - if self.niScope_ExportAttributeConfigurationBuffer_cfunc is None: - self.niScope_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niScope_ExportAttributeConfigurationBuffer') - self.niScope_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niScope_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ExportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) - - def niScope_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niScope_ExportAttributeConfigurationFile_cfunc is None: - self.niScope_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niScope_ExportAttributeConfigurationFile') - self.niScope_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ExportAttributeConfigurationFile_cfunc(vi, file_path) - - def niScope_Fetch(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - with self._func_lock: - if self.niScope_Fetch_cfunc is None: - self.niScope_Fetch_cfunc = self._get_library_function('niScope_Fetch') - self.niScope_Fetch_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 - self.niScope_Fetch_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_Fetch_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) - - def niScope_FetchArrayMeasurement(self, vi, channel_list, timeout, array_meas_function, measurement_waveform_size, meas_wfm, wfm_info): # noqa: N802 - with self._func_lock: - if self.niScope_FetchArrayMeasurement_cfunc is None: - self.niScope_FetchArrayMeasurement_cfunc = self._get_library_function('niScope_FetchArrayMeasurement') - self.niScope_FetchArrayMeasurement_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 - self.niScope_FetchArrayMeasurement_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_FetchArrayMeasurement_cfunc(vi, channel_list, timeout, array_meas_function, measurement_waveform_size, meas_wfm, wfm_info) - - def niScope_FetchBinary16(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - with self._func_lock: - if self.niScope_FetchBinary16_cfunc is None: - self.niScope_FetchBinary16_cfunc = self._get_library_function('niScope_FetchBinary16') - self.niScope_FetchBinary16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViInt16), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 - self.niScope_FetchBinary16_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_FetchBinary16_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) - - def niScope_FetchBinary32(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - with self._func_lock: - if self.niScope_FetchBinary32_cfunc is None: - self.niScope_FetchBinary32_cfunc = self._get_library_function('niScope_FetchBinary32') - self.niScope_FetchBinary32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 - self.niScope_FetchBinary32_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_FetchBinary32_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) - - def niScope_FetchBinary8(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - with self._func_lock: - if self.niScope_FetchBinary8_cfunc is None: - self.niScope_FetchBinary8_cfunc = self._get_library_function('niScope_FetchBinary8') - self.niScope_FetchBinary8_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViInt8), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 - self.niScope_FetchBinary8_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_FetchBinary8_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) - - def niScope_FetchMeasurementStats(self, vi, channel_list, timeout, scalar_meas_function, result, mean, stdev, min, max, num_in_stats): # noqa: N802 - with self._func_lock: - if self.niScope_FetchMeasurementStats_cfunc is None: - self.niScope_FetchMeasurementStats_cfunc = self._get_library_function('niScope_FetchMeasurementStats') - self.niScope_FetchMeasurementStats_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niScope_FetchMeasurementStats_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_FetchMeasurementStats_cfunc(vi, channel_list, timeout, scalar_meas_function, result, mean, stdev, min, max, num_in_stats) - - def niScope_GetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_GetAttributeViBoolean_cfunc is None: - self.niScope_GetAttributeViBoolean_cfunc = self._get_library_function('niScope_GetAttributeViBoolean') - self.niScope_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niScope_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetAttributeViBoolean_cfunc(vi, channel_list, attribute_id, value) - - def niScope_GetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_GetAttributeViInt32_cfunc is None: - self.niScope_GetAttributeViInt32_cfunc = self._get_library_function('niScope_GetAttributeViInt32') - self.niScope_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niScope_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetAttributeViInt32_cfunc(vi, channel_list, attribute_id, value) - - def niScope_GetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_GetAttributeViInt64_cfunc is None: - self.niScope_GetAttributeViInt64_cfunc = self._get_library_function('niScope_GetAttributeViInt64') - self.niScope_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 - self.niScope_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetAttributeViInt64_cfunc(vi, channel_list, attribute_id, value) - - def niScope_GetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_GetAttributeViReal64_cfunc is None: - self.niScope_GetAttributeViReal64_cfunc = self._get_library_function('niScope_GetAttributeViReal64') - self.niScope_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niScope_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetAttributeViReal64_cfunc(vi, channel_list, attribute_id, value) - - def niScope_GetAttributeViString(self, vi, channel_list, attribute_id, buf_size, value): # noqa: N802 - with self._func_lock: - if self.niScope_GetAttributeViString_cfunc is None: - self.niScope_GetAttributeViString_cfunc = self._get_library_function('niScope_GetAttributeViString') - self.niScope_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetAttributeViString_cfunc(vi, channel_list, attribute_id, buf_size, value) - - def niScope_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 - with self._func_lock: - if self.niScope_GetChannelNameFromString_cfunc is None: - self.niScope_GetChannelNameFromString_cfunc = self._get_library_function('niScope_GetChannelNameFromString') - self.niScope_GetChannelNameFromString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_GetChannelNameFromString_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetChannelNameFromString_cfunc(vi, indices, buffer_size, names) - - def niScope_GetEqualizationFilterCoefficients(self, vi, channel, number_of_coefficients, coefficients): # noqa: N802 - with self._func_lock: - if self.niScope_GetEqualizationFilterCoefficients_cfunc is None: - self.niScope_GetEqualizationFilterCoefficients_cfunc = self._get_library_function('niScope_GetEqualizationFilterCoefficients') - self.niScope_GetEqualizationFilterCoefficients_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niScope_GetEqualizationFilterCoefficients_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetEqualizationFilterCoefficients_cfunc(vi, channel, number_of_coefficients, coefficients) - - def niScope_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - with self._func_lock: - if self.niScope_GetError_cfunc is None: - self.niScope_GetError_cfunc = self._get_library_function('niScope_GetError') - self.niScope_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_GetError_cfunc(vi, error_code, buffer_size, description) - - def niScope_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - with self._func_lock: - if self.niScope_ImportAttributeConfigurationBuffer_cfunc is None: - self.niScope_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niScope_ImportAttributeConfigurationBuffer') - self.niScope_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 - self.niScope_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ImportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) - - def niScope_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - with self._func_lock: - if self.niScope_ImportAttributeConfigurationFile_cfunc is None: - self.niScope_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niScope_ImportAttributeConfigurationFile') - self.niScope_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ImportAttributeConfigurationFile_cfunc(vi, file_path) - - def niScope_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niScope_InitWithOptions_cfunc is None: - self.niScope_InitWithOptions_cfunc = self._get_library_function('niScope_InitWithOptions') - self.niScope_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niScope_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, vi) - - def niScope_InitiateAcquisition(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_InitiateAcquisition_cfunc is None: - self.niScope_InitiateAcquisition_cfunc = self._get_library_function('niScope_InitiateAcquisition') - self.niScope_InitiateAcquisition_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_InitiateAcquisition_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_InitiateAcquisition_cfunc(vi) - - def niScope_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niScope_LockSession_cfunc is None: - self.niScope_LockSession_cfunc = self._get_library_function('niScope_LockSession') - self.niScope_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niScope_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_LockSession_cfunc(vi, caller_has_lock) - - def niScope_ProbeCompensationSignalStart(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_ProbeCompensationSignalStart_cfunc is None: - self.niScope_ProbeCompensationSignalStart_cfunc = self._get_library_function('niScope_ProbeCompensationSignalStart') - self.niScope_ProbeCompensationSignalStart_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_ProbeCompensationSignalStart_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ProbeCompensationSignalStart_cfunc(vi) - - def niScope_ProbeCompensationSignalStop(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_ProbeCompensationSignalStop_cfunc is None: - self.niScope_ProbeCompensationSignalStop_cfunc = self._get_library_function('niScope_ProbeCompensationSignalStop') - self.niScope_ProbeCompensationSignalStop_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_ProbeCompensationSignalStop_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ProbeCompensationSignalStop_cfunc(vi) - - def niScope_Read(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - with self._func_lock: - if self.niScope_Read_cfunc is None: - self.niScope_Read_cfunc = self._get_library_function('niScope_Read') - self.niScope_Read_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 - self.niScope_Read_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_Read_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) - - def niScope_ResetDevice(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_ResetDevice_cfunc is None: - self.niScope_ResetDevice_cfunc = self._get_library_function('niScope_ResetDevice') - self.niScope_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_ResetDevice_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ResetDevice_cfunc(vi) - - def niScope_ResetWithDefaults(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_ResetWithDefaults_cfunc is None: - self.niScope_ResetWithDefaults_cfunc = self._get_library_function('niScope_ResetWithDefaults') - self.niScope_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_ResetWithDefaults_cfunc(vi) - - def niScope_SendSoftwareTriggerEdge(self, vi, which_trigger): # noqa: N802 - with self._func_lock: - if self.niScope_SendSoftwareTriggerEdge_cfunc is None: - self.niScope_SendSoftwareTriggerEdge_cfunc = self._get_library_function('niScope_SendSoftwareTriggerEdge') - self.niScope_SendSoftwareTriggerEdge_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niScope_SendSoftwareTriggerEdge_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SendSoftwareTriggerEdge_cfunc(vi, which_trigger) - - def niScope_SetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_SetAttributeViBoolean_cfunc is None: - self.niScope_SetAttributeViBoolean_cfunc = self._get_library_function('niScope_SetAttributeViBoolean') - self.niScope_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niScope_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SetAttributeViBoolean_cfunc(vi, channel_list, attribute_id, value) - - def niScope_SetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_SetAttributeViInt32_cfunc is None: - self.niScope_SetAttributeViInt32_cfunc = self._get_library_function('niScope_SetAttributeViInt32') - self.niScope_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niScope_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SetAttributeViInt32_cfunc(vi, channel_list, attribute_id, value) - - def niScope_SetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_SetAttributeViInt64_cfunc is None: - self.niScope_SetAttributeViInt64_cfunc = self._get_library_function('niScope_SetAttributeViInt64') - self.niScope_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 - self.niScope_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SetAttributeViInt64_cfunc(vi, channel_list, attribute_id, value) - - def niScope_SetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_SetAttributeViReal64_cfunc is None: - self.niScope_SetAttributeViReal64_cfunc = self._get_library_function('niScope_SetAttributeViReal64') - self.niScope_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niScope_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SetAttributeViReal64_cfunc(vi, channel_list, attribute_id, value) - - def niScope_SetAttributeViString(self, vi, channel_list, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niScope_SetAttributeViString_cfunc is None: - self.niScope_SetAttributeViString_cfunc = self._get_library_function('niScope_SetAttributeViString') - self.niScope_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SetAttributeViString_cfunc(vi, channel_list, attribute_id, value) - - def niScope_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niScope_SetRuntimeEnvironment_cfunc is None: - self.niScope_SetRuntimeEnvironment_cfunc = self._get_library_function('niScope_SetRuntimeEnvironment') - self.niScope_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niScope_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niScope_UnlockSession_cfunc is None: - self.niScope_UnlockSession_cfunc = self._get_library_function('niScope_UnlockSession') - self.niScope_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niScope_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_UnlockSession_cfunc(vi, caller_has_lock) - - def niScope_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_close_cfunc is None: - self.niScope_close_cfunc = self._get_library_function('niScope_close') - self.niScope_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_close_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_close_cfunc(vi) - - def niScope_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niScope_error_message_cfunc is None: - self.niScope_error_message_cfunc = self._get_library_function('niScope_error_message') - self.niScope_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_error_message_cfunc(vi, error_code, error_message) - - def niScope_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niScope_reset_cfunc is None: - self.niScope_reset_cfunc = self._get_library_function('niScope_reset') - self.niScope_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niScope_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_reset_cfunc(vi) - - def niScope_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niScope_self_test_cfunc is None: - self.niScope_self_test_cfunc = self._get_library_function('niScope_self_test') - self.niScope_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niScope_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niScope_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/niscope/niscope/_library_interpreter.py b/generated/niscope/niscope/_library_interpreter.py deleted file mode 100644 index 2c6097bbf7..0000000000 --- a/generated/niscope/niscope/_library_interpreter.py +++ /dev/null @@ -1,729 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import niscope._library_singleton as _library_singleton -import niscope._visatype as _visatype -import niscope.enums as enums # noqa: F401 -import niscope.errors as errors - -import niscope.waveform_info as waveform_info # noqa: F401 - -import niscope.measurement_stats as measurement_stats # noqa: F401 - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_Abort(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def acquisition_status(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - acquisition_status_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niScope_AcquisitionStatus(vi_ctype, None if acquisition_status_ctype is None else (ctypes.pointer(acquisition_status_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return enums.AcquisitionStatus(acquisition_status_ctype.value) - - def actual_meas_wfm_size(self, array_meas_function): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - array_meas_function_ctype = _visatype.ViInt32(array_meas_function.value) # case S130 - meas_waveform_size_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niScope_ActualMeasWfmSize(vi_ctype, array_meas_function_ctype, None if meas_waveform_size_ctype is None else (ctypes.pointer(meas_waveform_size_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(meas_waveform_size_ctype.value) - - def actual_num_wfms(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - num_wfms_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niScope_ActualNumWfms(vi_ctype, channel_list_ctype, None if num_wfms_ctype is None else (ctypes.pointer(num_wfms_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(num_wfms_ctype.value) - - def add_waveform_processing(self, channel_list, meas_function): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - meas_function_ctype = _visatype.ViInt32(meas_function.value) # case S130 - error_code = self._library.niScope_AddWaveformProcessing(vi_ctype, channel_list_ctype, meas_function_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def auto_setup(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_AutoSetup(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def cal_fetch_date(self, which_one): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - which_one_ctype = _visatype.ViInt32(which_one.value) # case S130 - year_ctype = _visatype.ViInt32() # case S220 - month_ctype = _visatype.ViInt32() # case S220 - day_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niScope_CalFetchDate(vi_ctype, which_one_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value) - - def cal_fetch_temperature(self, which_one): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - which_one_ctype = _visatype.ViInt32(which_one) # case S150 - temperature_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niScope_CalFetchTemperature(vi_ctype, which_one_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(temperature_ctype.value) - - def self_cal(self, channel_list, option): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - option_ctype = _visatype.ViInt32(option.value) # case S130 - error_code = self._library.niScope_CalSelfCalibrate(vi_ctype, channel_list_ctype, option_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_waveform_measurement_stats(self, channel_list, clearable_measurement_function): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - clearable_measurement_function_ctype = _visatype.ViInt32(clearable_measurement_function.value) # case S130 - error_code = self._library.niScope_ClearWaveformMeasurementStats(vi_ctype, channel_list_ctype, clearable_measurement_function_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def clear_waveform_processing(self, channel_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - error_code = self._library.niScope_ClearWaveformProcessing(vi_ctype, channel_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def commit(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_Commit(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_chan_characteristics(self, channel_list, input_impedance, max_input_frequency): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - input_impedance_ctype = _visatype.ViReal64(input_impedance) # case S150 - max_input_frequency_ctype = _visatype.ViReal64(max_input_frequency) # case S150 - error_code = self._library.niScope_ConfigureChanCharacteristics(vi_ctype, channel_list_ctype, input_impedance_ctype, max_input_frequency_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_equalization_filter_coefficients(self, channel_list, coefficients): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - number_of_coefficients_ctype = _visatype.ViInt32(0 if coefficients is None else len(coefficients)) # case S160 - coefficients_ctype = _get_ctypes_pointer_for_buffer(value=coefficients, library_type=_visatype.ViReal64) # case B550 - error_code = self._library.niScope_ConfigureEqualizationFilterCoefficients(vi_ctype, channel_list_ctype, number_of_coefficients_ctype, coefficients_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_horizontal_timing(self, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - min_sample_rate_ctype = _visatype.ViReal64(min_sample_rate) # case S150 - min_num_pts_ctype = _visatype.ViInt32(min_num_pts) # case S150 - ref_position_ctype = _visatype.ViReal64(ref_position) # case S150 - num_records_ctype = _visatype.ViInt32(num_records) # case S150 - enforce_realtime_ctype = _visatype.ViBoolean(enforce_realtime) # case S150 - error_code = self._library.niScope_ConfigureHorizontalTiming(vi_ctype, min_sample_rate_ctype, min_num_pts_ctype, ref_position_ctype, num_records_ctype, enforce_realtime_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_ref_levels(self, low, mid, high): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - low_ctype = _visatype.ViReal64(low) # case S150 - mid_ctype = _visatype.ViReal64(mid) # case S150 - high_ctype = _visatype.ViReal64(high) # case S150 - error_code = self._library.niScope_ConfigureRefLevels(vi_ctype, low_ctype, mid_ctype, high_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_digital(self, trigger_source, slope, holdoff, delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 - slope_ctype = _visatype.ViInt32(slope.value) # case S130 - holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 - delay_ctype = _visatype.ViReal64(delay) # case S150 - error_code = self._library.niScope_ConfigureTriggerDigital(vi_ctype, trigger_source_ctype, slope_ctype, holdoff_ctype, delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_edge(self, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 - level_ctype = _visatype.ViReal64(level) # case S150 - slope_ctype = _visatype.ViInt32(slope.value) # case S130 - trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 - holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 - delay_ctype = _visatype.ViReal64(delay) # case S150 - error_code = self._library.niScope_ConfigureTriggerEdge(vi_ctype, trigger_source_ctype, level_ctype, slope_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_hysteresis(self, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 - level_ctype = _visatype.ViReal64(level) # case S150 - hysteresis_ctype = _visatype.ViReal64(hysteresis) # case S150 - slope_ctype = _visatype.ViInt32(slope.value) # case S130 - trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 - holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 - delay_ctype = _visatype.ViReal64(delay) # case S150 - error_code = self._library.niScope_ConfigureTriggerHysteresis(vi_ctype, trigger_source_ctype, level_ctype, hysteresis_ctype, slope_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_immediate(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_ConfigureTriggerImmediate(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_software(self, holdoff, delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 - delay_ctype = _visatype.ViReal64(delay) # case S150 - error_code = self._library.niScope_ConfigureTriggerSoftware(vi_ctype, holdoff_ctype, delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_video(self, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 - enable_dc_restore_ctype = _visatype.ViBoolean(enable_dc_restore) # case S150 - signal_format_ctype = _visatype.ViInt32(signal_format.value) # case S130 - event_ctype = _visatype.ViInt32(event.value) # case S130 - line_number_ctype = _visatype.ViInt32(line_number) # case S150 - polarity_ctype = _visatype.ViInt32(polarity.value) # case S130 - trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 - holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 - delay_ctype = _visatype.ViReal64(delay) # case S150 - error_code = self._library.niScope_ConfigureTriggerVideo(vi_ctype, trigger_source_ctype, enable_dc_restore_ctype, signal_format_ctype, event_ctype, line_number_ctype, polarity_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_trigger_window(self, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 - low_level_ctype = _visatype.ViReal64(low_level) # case S150 - high_level_ctype = _visatype.ViReal64(high_level) # case S150 - window_mode_ctype = _visatype.ViInt32(window_mode.value) # case S130 - trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 - holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 - delay_ctype = _visatype.ViReal64(delay) # case S150 - error_code = self._library.niScope_ConfigureTriggerWindow(vi_ctype, trigger_source_ctype, low_level_ctype, high_level_ctype, window_mode_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def configure_vertical(self, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - range_ctype = _visatype.ViReal64(range) # case S150 - offset_ctype = _visatype.ViReal64(offset) # case S150 - coupling_ctype = _visatype.ViInt32(coupling.value) # case S130 - probe_attenuation_ctype = _visatype.ViReal64(probe_attenuation) # case S150 - enabled_ctype = _visatype.ViBoolean(enabled) # case S150 - error_code = self._library.niScope_ConfigureVertical(vi_ctype, channel_list_ctype, range_ctype, offset_ctype, coupling_ctype, probe_attenuation_ctype, enabled_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_Disable(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def export_attribute_configuration_buffer(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_in_bytes_ctype = _visatype.ViInt32() # case S170 - configuration_ctype = None # case B580 - error_code = self._library.niScope_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - size_in_bytes_ctype = _visatype.ViInt32(error_code) # case S180 - configuration_size = size_in_bytes_ctype.value # case B590 - configuration_array = array.array("b", [0]) * configuration_size # case B590 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 - error_code = self._library.niScope_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return configuration_array - - def export_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niScope_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def fetch(self, channel_list, timeout, num_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 - waveform_size = (num_samples * self.actual_num_wfms(channel_list)) # case B560 - waveform_array = array.array("d", [0]) * waveform_size # case B560 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array, library_type=_visatype.ViReal64) # case B560 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_Fetch(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_array, [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def fetch_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_Fetch(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def fetch_array_measurement(self, channel_list, timeout, array_meas_function, measurement_waveform_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - array_meas_function_ctype = _visatype.ViInt32(array_meas_function.value) # case S130 - measurement_waveform_size_ctype = _visatype.ViInt32(measurement_waveform_size) # case S150 - meas_wfm_size = (measurement_waveform_size * self.actual_num_wfms(channel_list)) # case B560 - meas_wfm_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=meas_wfm_size) # case B560 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_FetchArrayMeasurement(vi_ctype, channel_list_ctype, timeout_ctype, array_meas_function_ctype, measurement_waveform_size_ctype, meas_wfm_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(meas_wfm_ctype[i]) for i in range((measurement_waveform_size * self.actual_num_wfms(channel_list)))], [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def fetch_binary16_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_FetchBinary16(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def fetch_binary32_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_FetchBinary32(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def fetch_binary8_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_FetchBinary8(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def fetch_measurement_stats(self, channel_list, timeout, scalar_meas_function): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - scalar_meas_function_ctype = _visatype.ViInt32(scalar_meas_function.value) # case S130 - result_size = self.actual_num_wfms(channel_list) # case B560 - result_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=result_size) # case B560 - mean_size = self.actual_num_wfms(channel_list) # case B560 - mean_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=mean_size) # case B560 - stdev_size = self.actual_num_wfms(channel_list) # case B560 - stdev_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=stdev_size) # case B560 - min_size = self.actual_num_wfms(channel_list) # case B560 - min_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=min_size) # case B560 - max_size = self.actual_num_wfms(channel_list) # case B560 - max_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=max_size) # case B560 - num_in_stats_size = self.actual_num_wfms(channel_list) # case B560 - num_in_stats_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=num_in_stats_size) # case B560 - error_code = self._library.niScope_FetchMeasurementStats(vi_ctype, channel_list_ctype, timeout_ctype, scalar_meas_function_ctype, result_ctype, mean_ctype, stdev_ctype, min_ctype, max_ctype, num_in_stats_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(result_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(mean_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(stdev_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(min_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(max_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [int(num_in_stats_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def get_attribute_vi_boolean(self, channel_list, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niScope_GetAttributeViBoolean(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(value_ctype.value) - - def get_attribute_vi_int32(self, channel_list, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niScope_GetAttributeViInt32(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_int64(self, channel_list, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt64() # case S220 - error_code = self._library.niScope_GetAttributeViInt64(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_real64(self, channel_list, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niScope_GetAttributeViReal64(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(value_ctype.value) - - def get_attribute_vi_string(self, channel_list, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - buf_size_ctype = _visatype.ViInt32() # case S170 - value_ctype = None # case C050 - error_code = self._library.niScope_GetAttributeViString(vi_ctype, channel_list_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buf_size_ctype = _visatype.ViInt32(error_code) # case S180 - value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 - error_code = self._library.niScope_GetAttributeViString(vi_ctype, channel_list_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return value_ctype.value.decode(self._encoding) - - def get_channel_names(self, indices): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 - buffer_size_ctype = _visatype.ViInt32() # case S170 - names_ctype = None # case C050 - error_code = self._library.niScope_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - names_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niScope_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return names_ctype.value.decode(self._encoding) - - def get_equalization_filter_coefficients(self, channel, number_of_coefficients): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_ctype = ctypes.create_string_buffer(channel.encode(self._encoding)) # case C010 - number_of_coefficients_ctype = _visatype.ViInt32(number_of_coefficients) # case S210 - coefficients_size = number_of_coefficients # case B600 - coefficients_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=coefficients_size) # case B600 - error_code = self._library.niScope_GetEqualizationFilterCoefficients(vi_ctype, channel_ctype, number_of_coefficients_ctype, coefficients_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return [float(coefficients_ctype[i]) for i in range(number_of_coefficients_ctype.value)] - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - buffer_size_ctype = _visatype.ViInt32() # case S170 - description_ctype = None # case C050 - error_code = self._library.niScope_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niScope_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) - - def import_attribute_configuration_buffer(self, configuration): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - size_in_bytes_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 - configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 - error_code = self._library.niScope_ImportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def import_attribute_configuration_file(self, file_path): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 - error_code = self._library.niScope_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - id_query_ctype = _visatype.ViBoolean(id_query) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niScope_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initiate_acquisition(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_InitiateAcquisition(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def probe_compensation_signal_start(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_ProbeCompensationSignalStart(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def probe_compensation_signal_stop(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_ProbeCompensationSignalStop(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def read(self, channel_list, timeout, num_samples): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 - waveform_size = (num_samples * self.actual_num_wfms(channel_list)) # case B560 - waveform_array = array.array("d", [0]) * waveform_size # case B560 - waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array, library_type=_visatype.ViReal64) # case B560 - wfm_info_size = self.actual_num_wfms(channel_list) # case B560 - wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 - error_code = self._library.niScope_Read(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return waveform_array, [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] - - def reset_device(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_ResetDevice(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_defaults(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_ResetWithDefaults(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_trigger_edge(self, which_trigger): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - which_trigger_ctype = _visatype.ViInt32(which_trigger.value) # case S130 - error_code = self._library.niScope_SendSoftwareTriggerEdge(vi_ctype, which_trigger_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_list, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViBoolean(value) # case S150 - error_code = self._library.niScope_SetAttributeViBoolean(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_list, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt32(value) # case S150 - error_code = self._library.niScope_SetAttributeViInt32(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int64(self, channel_list, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViInt64(value) # case S150 - error_code = self._library.niScope_SetAttributeViInt64(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_list, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViReal64(value) # case S150 - error_code = self._library.niScope_SetAttributeViReal64(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_list, attribute_id, value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 - error_code = self._library.niScope_SetAttributeViString(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niScope_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niScope_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niScope_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niScope_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/niscope/niscope/_library_singleton.py b/generated/niscope/niscope/_library_singleton.py deleted file mode 100644 index ee5088c054..0000000000 --- a/generated/niscope/niscope/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import niscope._library as _library -import niscope.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'niscope', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niScope_32.dll', 'type': 'windll'}, - '64bit': {'name': 'niScope_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for niscope. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/niscope/niscope/_visatype.py b/generated/niscope/niscope/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/niscope/niscope/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/niscope/niscope/enums.py b/generated/niscope/niscope/enums.py deleted file mode 100644 index 5b4391e735..0000000000 --- a/generated/niscope/niscope/enums.py +++ /dev/null @@ -1,748 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class AcquisitionStatus(Enum): - COMPLETE = 1 - IN_PROGRESS = 0 - STATUS_UNKNOWN = -1 - - -class AcquisitionType(Enum): - NORMAL = 0 - r''' - Sets the digitizer to normal resolution mode. The digitizer can use real-time sampling or equivalent-time sampling. - ''' - FLEXRES = 1001 - r''' - Sets the digitizer to flexible resolution mode if supported. The digitizer uses different hardware configurations to change the resolution depending on the sampling rate used. - ''' - DDC = 1002 - r''' - Sets the digitizer to DDC mode on the NI 5620/5621. - ''' - - -class ArrayMeasurement(Enum): - NO_MEASUREMENT = 4000 - r''' - None - ''' - LAST_ACQ_HISTOGRAM = 4001 - r''' - Last Acquisition Histogram - ''' - FFT_PHASE_SPECTRUM = 4002 - r''' - FFT Phase Spectrum - ''' - FFT_AMP_SPECTRUM_VOLTS_RMS = 4003 - r''' - FFT Amp. Spectrum (Volts RMS) - ''' - MULTI_ACQ_VOLTAGE_HISTOGRAM = 4004 - r''' - Multi Acquisition Voltage Histogram - ''' - MULTI_ACQ_TIME_HISTOGRAM = 4005 - r''' - Multi Acquisition Time Histogram - ''' - ARRAY_INTEGRAL = 4006 - r''' - Array Integral - ''' - DERIVATIVE = 4007 - r''' - Derivative - ''' - INVERSE = 4008 - r''' - Inverse - ''' - HANNING_WINDOW = 4009 - r''' - Hanning Window - ''' - FLAT_TOP_WINDOW = 4010 - r''' - Flat Top Window - ''' - POLYNOMIAL_INTERPOLATION = 4011 - r''' - Polynomial Interpolation - ''' - MULTIPLY_CHANNELS = 4012 - r''' - Multiply Channels - ''' - ADD_CHANNELS = 4013 - r''' - Add Channels - ''' - SUBTRACT_CHANNELS = 4014 - r''' - Subtract Channels - ''' - DIVIDE_CHANNELS = 4015 - r''' - Divide Channels - ''' - MULTI_ACQ_AVERAGE = 4016 - r''' - Multi Acquisition Average - ''' - BUTTERWORTH_FILTER = 4017 - r''' - Butterworth IIR Filter - ''' - CHEBYSHEV_FILTER = 4018 - r''' - Chebyshev IIR Filter - ''' - FFT_AMP_SPECTRUM_DB = 4019 - r''' - FFT Amp. Spectrum (dB) - ''' - HAMMING_WINDOW = 4020 - r''' - Hamming Window - ''' - WINDOWED_FIR_FILTER = 4021 - r''' - FIR Windowed Filter - ''' - BESSEL_FILTER = 4022 - r''' - Bessel IIR Filter - ''' - TRIANGLE_WINDOW = 4023 - r''' - Triangle Window - ''' - BLACKMAN_WINDOW = 4024 - r''' - Blackman Window - ''' - ARRAY_OFFSET = 4025 - r''' - Array Offset - ''' - ARRAY_GAIN = 4026 - r''' - Array Gain - ''' - - -class CableSenseMode(Enum): - DISABLED = 0 - r''' - The oscilloscope is not configured to emit a CableSense signal. - ''' - ON_DEMAND = 1 - r''' - The oscilloscope is configured to emit a single CableSense pulse. - ''' - - -class _CalibrationTypes(Enum): - SELF = 1 - EXTERNAL = 0 - MANUFACTURE = 2 - - -class ClearableMeasurement(Enum): - ALL_MEASUREMENTS = 10000 - MULTI_ACQ_VOLTAGE_HISTOGRAM = 4004 - MULTI_ACQ_TIME_HISTOGRAM = 4005 - MULTI_ACQ_AVERAGE = 4016 - FREQUENCY = 2 - AVERAGE_FREQUENCY = 1016 - FFT_FREQUENCY = 1008 - PERIOD = 3 - AVERAGE_PERIOD = 1015 - RISE_TIME = 0 - FALL_TIME = 1 - RISE_SLEW_RATE = 1010 - FALL_SLEW_RATE = 1011 - OVERSHOOT = 18 - PRESHOOT = 19 - VOLTAGE_RMS = 4 - VOLTAGE_CYCLE_RMS = 16 - AC_ESTIMATE = 1012 - FFT_AMPLITUDE = 1009 - VOLTAGE_AVERAGE = 10 - VOLTAGE_CYCLE_AVERAGE = 17 - DC_ESTIMATE = 1013 - VOLTAGE_MAX = 6 - VOLTAGE_MIN = 7 - VOLTAGE_PEAK_TO_PEAK = 5 - VOLTAGE_HIGH = 8 - VOLTAGE_LOW = 9 - AMPLITUDE = 15 - VOLTAGE_TOP = 1007 - VOLTAGE_BASE = 1006 - VOLTAGE_BASE_TO_TOP = 1017 - WIDTH_NEG = 11 - WIDTH_POS = 12 - DUTY_CYCLE_NEG = 13 - DUTY_CYCLE_POS = 14 - INTEGRAL = 1005 - AREA = 1003 - CYCLE_AREA = 1004 - TIME_DELAY = 1014 - PHASE_DELAY = 1018 - LOW_REF_VOLTS = 1000 - MID_REF_VOLTS = 1001 - HIGH_REF_VOLTS = 1002 - VOLTAGE_HISTOGRAM_MEAN = 2000 - VOLTAGE_HISTOGRAM_STDEV = 2001 - VOLTAGE_HISTOGRAM_MEDIAN = 2003 - VOLTAGE_HISTOGRAM_MODE = 2010 - VOLTAGE_HISTOGRAM_MAX = 2005 - VOLTAGE_HISTOGRAM_MIN = 2006 - VOLTAGE_HISTOGRAM_PEAK_TO_PEAK = 2002 - VOLTAGE_HISTOGRAM_MEAN_PLUS_STDEV = 2007 - VOLTAGE_HISTOGRAM_MEAN_PLUS_2_STDEV = 2008 - VOLTAGE_HISTOGRAM_MEAN_PLUS_3_STDEV = 2009 - VOLTAGE_HISTOGRAM_HITS = 2004 - VOLTAGE_HISTOGRAM_NEW_HITS = 2011 - TIME_HISTOGRAM_MEAN = 3000 - TIME_HISTOGRAM_STDEV = 3001 - TIME_HISTOGRAM_MEDIAN = 3003 - TIME_HISTOGRAM_MODE = 3010 - TIME_HISTOGRAM_MAX = 3005 - TIME_HISTOGRAM_MIN = 3006 - TIME_HISTOGRAM_PEAK_TO_PEAK = 3002 - TIME_HISTOGRAM_MEAN_PLUS_STDEV = 3007 - TIME_HISTOGRAM_MEAN_PLUS_2_STDEV = 3008 - TIME_HISTOGRAM_MEAN_PLUS_3_STDEV = 3009 - TIME_HISTOGRAM_HITS = 3004 - TIME_HISTOGRAM_NEW_HITS = 3011 - - -class FIRFilterWindow(Enum): - NONE = 0 - r''' - No window. - ''' - HANNING = 409 - r''' - Specifies a Hanning window. - ''' - FLAT_TOP = 410 - r''' - Specifies a Flat Top window. - ''' - HAMMING = 420 - r''' - Specifies a Hamming window. - ''' - TRIANGLE = 423 - r''' - Specifies a Triangle window. - ''' - BLACKMAN = 424 - r''' - Specifies a Blackman window. - ''' - - -class FetchRelativeTo(Enum): - READ_POINTER = 388 - r''' - The read pointer is set to zero when a new acquisition is initiated. After every fetch the read pointer is incremeted to be the sample after the last sample retrieved. Therefore, you can repeatedly fetch relative to the read pointer for a continuous acquisition program. - ''' - PRETRIGGER = 477 - r''' - Fetches relative to the first pretrigger point requested with configure_horizontal_timing. - ''' - NOW = 481 - r''' - Fetch data at the last sample acquired. - ''' - START = 482 - r''' - Fetch data starting at the first point sampled by the digitizer. - ''' - TRIGGER = 483 - r''' - Fetch at the first posttrigger sample. - ''' - - -class FilterType(Enum): - LOWPASS = 0 - r''' - Specifies lowpass as the filter type. - ''' - HIGHPASS = 1 - r''' - Specifies highpass as the filter type. - ''' - BANDPASS = 2 - r''' - Specifies bandpass as the filter type. - ''' - BANDSTOP = 3 - r''' - Specifies bandstop as the filter type. - ''' - - -class FlexFIRAntialiasFilterType(Enum): - FOURTYEIGHT_TAP_STANDARD = 0 - r''' - This filter is optimized for alias protection and frequency-domain flatness - ''' - FOURTYEIGHT_TAP_HANNING = 1 - r''' - This filter is optimized for the lowest possible bandwidth for a 48 tap filter and maximizes the SNR - ''' - SIXTEEN_TAP_HANNING = 2 - r''' - This filter is optimized for the lowest possible bandwidth for a 16 tap filter and maximizes the SNR - ''' - EIGHT_TAP_HANNING = 3 - r''' - This filter is optimized for the lowest possible bandwidth for a 8 tap filter and maximizes the SNR - ''' - - -class GlitchCondition(Enum): - GREATER = 2 - r''' - Trigger on pulses with a duration greater than the specified glitch width. - ''' - LESS = 1 - r''' - Trigger on pulses with a duration shorter than the specified glitch width. - ''' - - -class GlitchPolarity(Enum): - POSITIVE = 1 - r''' - Trigger on pulses of positive polarity relative to the trigger threshold. - ''' - NEGATIVE = 2 - r''' - Trigger on pulses of negative polarity relative to the trigger threshold. - ''' - EITHER = 3 - r''' - Trigger on pulses of either positive or negative polarity. - ''' - - -class Option(Enum): - SELF_CALIBRATE_ALL_CHANNELS = 0 - r''' - Self Calibrating all Channels - ''' - RESTORE_EXTERNAL_CALIBRATION = 1 - r''' - Restore External Calibration. - ''' - - -class PercentageMethod(Enum): - LOWHIGH = 0 - r''' - Specifies that the reference level percentages should be computed using - the low/high method, - ''' - MINMAX = 1 - r''' - Reference level percentages are computed using the min/max method. - ''' - BASETOP = 2 - r''' - Reference level percentages are computed using the base/top method. - ''' - - -class RISMethod(Enum): - EXACT_NUM_AVERAGES = 1 - r''' - Acquires exactly the specified number of records for each bin in the RIS acquisition. An error is returned from the fetch method if the RIS acquisition does not successfully acquire the specified number of waveforms within the timeout period. You may call the fetch method again to allow more time for the acquisition to finish. - ''' - MIN_NUM_AVERAGES = 2 - r''' - Each RIS sample is the average of a least a minimum number of randomly - distributed points. - ''' - INCOMPLETE = 3 - r''' - Returns the RIS waveform after the specified timeout even if it is incomplete. If no waveforms have been acquired in certain bins, these bins will have a NaN (when fetching scaled data) or a zero (when fetching binary data). A warning (positive error code) is returned from the fetch method if the RIS acquisition did not finish. The acquisition aborts when data is returned. - ''' - LIMITED_BIN_WIDTH = 5 - r''' - Limits the waveforms in the various bins to be within 200 ps of the center of the bin. - ''' - - -class RefLevelUnits(Enum): - VOLTS = 0 - r''' - Specifies that the reference levels are given in units of volts. - ''' - PERCENTAGE = 1 - r''' - (Default) Specifies that the reference levels are given in percentage - units. - ''' - - -class RefTriggerDetectorLocation(Enum): - ANALOG_DETECTION_CIRCUIT = 0 - r''' - use the hardware analog circuitry to implement the reference trigger. This option will trigger before any onboard signal processing. - ''' - DDC_OUTPUT = 1 - r''' - use the onboard signal processing logic to implement the reference trigger. This option will trigger based on the onboard signal processed data. - ''' - - -class RuntPolarity(Enum): - POSITIVE = 1 - r''' - Trigger on pulses of positive polarity relative to runt_low_threshold that do not cross runt_high_threshold. - ''' - NEGATIVE = 2 - r''' - Trigger on pulses of negative polarity relative to runt_high_threshold that do not cross runt_low_threshold. - ''' - EITHER = 3 - r''' - Trigger on pulses of either positive or negative polarity. - ''' - - -class RuntTimeCondition(Enum): - NONE = 0 - r''' - Time qualification is disabled. Trigger on runt pulses based solely on the voltage level of the pulses. - ''' - WITHIN = 1 - r''' - Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration within the range bounded by runt_time_low_limit and runt_time_high_limit. - ''' - OUTSIDE = 2 - r''' - Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration not within the range bounded by runt_time_low_limit and runt_time_high_limit. - ''' - - -class ScalarMeasurement(Enum): - NO_MEASUREMENT = 4000 - r''' - None - ''' - RISE_TIME = 0 - FALL_TIME = 1 - FREQUENCY = 2 - PERIOD = 3 - VOLTAGE_RMS = 4 - VOLTAGE_PEAK_TO_PEAK = 5 - VOLTAGE_MAX = 6 - VOLTAGE_MIN = 7 - VOLTAGE_HIGH = 8 - VOLTAGE_LOW = 9 - VOLTAGE_AVERAGE = 10 - WIDTH_NEG = 11 - WIDTH_POS = 12 - DUTY_CYCLE_NEG = 13 - DUTY_CYCLE_POS = 14 - AMPLITUDE = 15 - VOLTAGE_CYCLE_RMS = 16 - VOLTAGE_CYCLE_AVERAGE = 17 - OVERSHOOT = 18 - PRESHOOT = 19 - LOW_REF_VOLTS = 1000 - MID_REF_VOLTS = 1001 - HIGH_REF_VOLTS = 1002 - AREA = 1003 - CYCLE_AREA = 1004 - INTEGRAL = 1005 - VOLTAGE_BASE = 1006 - VOLTAGE_TOP = 1007 - FFT_FREQUENCY = 1008 - FFT_AMPLITUDE = 1009 - RISE_SLEW_RATE = 1010 - FALL_SLEW_RATE = 1011 - AC_ESTIMATE = 1012 - DC_ESTIMATE = 1013 - TIME_DELAY = 1014 - AVERAGE_PERIOD = 1015 - AVERAGE_FREQUENCY = 1016 - VOLTAGE_BASE_TO_TOP = 1017 - PHASE_DELAY = 1018 - - -class TerminalConfiguration(Enum): - SINGLE_ENDED = 0 - r''' - Channel is single ended - ''' - UNBALANCED_DIFFERENTIAL = 1 - r''' - Channel is unbalanced differential - ''' - DIFFERENTIAL = 2 - r''' - Channel is differential - ''' - - -class TriggerCoupling(Enum): - AC = 0 - r''' - AC coupling - ''' - DC = 1 - r''' - DC coupling - ''' - HF_REJECT = 3 - r''' - Highpass filter coupling - ''' - LF_REJECT = 4 - r''' - Lowpass filter coupling - ''' - AC_PLUS_HF_REJECT = 1001 - r''' - Highpass and lowpass filter coupling - ''' - - -class TriggerModifier(Enum): - NO_TRIGGER_MOD = 1 - r''' - Normal triggering. - ''' - AUTO = 2 - r''' - Software will trigger an acquisition automatically if no trigger arrives - after a certain amount of time. - ''' - AUTO_LEVEL = 3 - - -class TriggerSlope(Enum): - NEGATIVE = 0 - r''' - Falling edge - ''' - POSITIVE = 1 - r''' - Rising edge - ''' - SLOPE_EITHER = 3 - r''' - Either edge - ''' - - -class TriggerType(Enum): - EDGE = 1 - r''' - Configures the digitizer for edge triggering. An edge trigger occurs when the trigger signal crosses the trigger level specified with the set trigger slope. You configure the trigger level and slope with configure_trigger_edge. - ''' - HYSTERESIS = 1001 - r''' - Configures the digitizer for hysteresis triggering. A hysteresis trigger occurs when the trigger signal crosses the trigger level with the specified slope and passes through the hysteresis window you specify. You configure the trigger level, slope, and hysteresis with configure_trigger_hysteresis. - ''' - DIGITAL = 1002 - r''' - Configures the digitizer for digital triggering. A digital trigger occurs when the trigger signal has the specified slope. You configure the trigger slope with configure_trigger_digital. - ''' - WINDOW = 1003 - r''' - Configures the digitizer for window triggering. A window trigger occurs when the trigger signal enters or leaves the window defined by the values you specify with the Low Window Level, High Window Level, and Window Mode Parameters. You configure the low window level high window level, and window mode with configure_trigger_window. - ''' - SOFTWARE = 1004 - r''' - Configures the digitizer for software triggering. A software trigger occurs when SendSoftwareTrigger is called. - ''' - TV = 5 - r''' - Configures the digitizer for video/TV triggering. You configure the video trigger parameters like signal Format, Line to trigger off of, Polarity, and Enable DC Restore with configure_trigger_video. - ''' - GLITCH = 4 - WIDTH = 2 - RUNT = 3 - IMMEDIATE = 6 - r''' - Configures the digitizer for immediate triggering. An immediate trigger occurs as soon as the pretrigger samples are acquired. - ''' - - -class TriggerWindowMode(Enum): - ENTERING = 0 - r''' - Trigger upon entering the window - ''' - LEAVING = 1 - r''' - Trigger upon leaving the window - ''' - ENTERING_OR_LEAVING = 2 - - -class VerticalCoupling(Enum): - AC = 0 - r''' - AC coupling - ''' - DC = 1 - r''' - DC coupling - ''' - GND = 2 - r''' - GND coupling - ''' - - -class VideoPolarity(Enum): - POSITIVE = 1 - r''' - Specifies that the video signal has positive polarity. - ''' - NEGATIVE = 2 - r''' - Specifies that the video signal has negative polarity. - ''' - - -class VideoSignalFormat(Enum): - NTSC = 1 - r''' - NTSC signal format supports line numbers from 1 to 525 - ''' - PAL = 2 - r''' - PAL signal format supports line numbers from 1 to 625 - ''' - SECAM = 3 - r''' - SECAM signal format supports line numbers from 1 to 625 - ''' - M_PAL = 1001 - r''' - M-PAL signal format supports line numbers from 1 to 525 - ''' - VIDEO_480I_59_94_FIELDS_PER_SECOND = 1010 - r''' - 480 lines, interlaced, 59.94 fields per second - ''' - VIDEO_480I_60_FIELDS_PER_SECOND = 1011 - r''' - 480 lines, interlaced, 60 fields per second - ''' - VIDEO_480P_59_94_FRAMES_PER_SECOND = 1015 - r''' - 480 lines, progressive, 59.94 frames per second - ''' - VIDEO_480P_60_FRAMES_PER_SECOND = 1016 - r''' - 480 lines, progressive,60 frames per second - ''' - VIDEO_576I_50_FIELDS_PER_SECOND = 1020 - r''' - 576 lines, interlaced, 50 fields per second - ''' - VIDEO_576P_50_FRAMES_PER_SECOND = 1025 - r''' - 576 lines, progressive, 50 frames per second - ''' - VIDEO_720P_50_FRAMES_PER_SECOND = 1031 - r''' - 720 lines, progressive, 50 frames per second - ''' - VIDEO_720P_59_94_FRAMES_PER_SECOND = 1032 - r''' - 720 lines, progressive, 59.94 frames per second - ''' - VIDEO_720P_60_FRAMES_PER_SECOND = 1033 - r''' - 720 lines, progressive, 60 frames per second - ''' - VIDEO_1080I_50_FIELDS_PER_SECOND = 1040 - r''' - 1,080 lines, interlaced, 50 fields per second - ''' - VIDEO_1080I_59_94_FIELDS_PER_SECOND = 1041 - r''' - 1,080 lines, interlaced, 59.94 fields per second - ''' - VIDEO_1080I_60_FIELDS_PER_SECOND = 1042 - r''' - 1,080 lines, interlaced, 60 fields per second - ''' - VIDEO_1080P_24_FRAMES_PER_SECOND = 1045 - r''' - 1,080 lines, progressive, 24 frames per second - ''' - - -class VideoTriggerEvent(Enum): - FIELD1 = 1 - r''' - Trigger on field 1 of the signal - ''' - FIELD2 = 2 - r''' - Trigger on field 2 of the signal - ''' - ANY_FIELD = 3 - r''' - Trigger on the first field acquired - ''' - ANY_LINE = 4 - r''' - Trigger on the first line acquired - ''' - LINE_NUMBER = 5 - r''' - Trigger on a specific line of a video signal. Valid values vary depending on the signal format configured. - ''' - - -class WhichTrigger(Enum): - START = 0 - ARM_REFERENCE = 1 - REFERENCE = 2 - ADVANCE = 3 - - -class WidthCondition(Enum): - WITHIN = 1 - r''' - Trigger on pulses with a duration within the range bounded by width_low_threshold and width_high_threshold. - ''' - OUTSIDE = 2 - r''' - Trigger on pulses with a duration not within the range bounded by width_low_threshold and width_high_threshold. - ''' - - -class WidthPolarity(Enum): - POSITIVE = 1 - r''' - Trigger on pulses of positive polarity relative to the trigger threshold. - ''' - NEGATIVE = 2 - r''' - Trigger on pulses of negative polarity relative to the trigger threshold. - ''' - EITHER = 3 - r''' - Trigger on pulses of either positive or negative polarity. - ''' diff --git a/generated/niscope/niscope/errors.py b/generated/niscope/niscope/errors.py deleted file mode 100644 index 6390cd1e31..0000000000 --- a/generated/niscope/niscope/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-SCOPE''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-SCOPE driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-SCOPE driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-SCOPE runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-SCOPE driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-SCOPE runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-SCOPE driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-SCOPE runtime returned an unexpected value. This can occur if it is too new for the niscope Python module. Upgrade the niscope Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by niscope.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/niscope/niscope/grpc_session_options.py b/generated/niscope/niscope/grpc_session_options.py deleted file mode 100644 index 74119cf752..0000000000 --- a/generated/niscope/niscope/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'niscope_grpc.NiScope' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/niscope/niscope/measurement_stats.py b/generated/niscope/niscope/measurement_stats.py deleted file mode 100644 index 6b17a710d6..0000000000 --- a/generated/niscope/niscope/measurement_stats.py +++ /dev/null @@ -1,43 +0,0 @@ -class MeasurementStats: - def __init__(self, result=0.0, mean=0.0, stdev=0.0, min_val=0.0, max_val=0.0, num_in_stats=0): - self.result = result - self.mean = mean - self.stdev = stdev - self.min_val = min_val - self.max_val = max_val - self.num_in_stats = num_in_stats - - self.channel = None - self.record = None - - def __repr__(self): - parameter_list = [ - f'result={self.result}', - f'mean={self.mean}', - f'stdev={self.stdev}', - f'min_val={self.min_val}', - f'max_val={self.max_val}', - f'num_in_stats={self.num_in_stats}' - ] - - return '{}({})'.format(self.__class__.__name__, ', '.join(parameter_list)) - - def __str__(self): - row_format_g = '{:<20}: {:,.6g}\n' - row_format_d = '{:<20}: {:,}\n' - row_format_s = '{:<20}: {:}\n' - - string_representation = '' - if self.channel is not None: - string_representation += row_format_s.format('Channel', self.channel) - if self.record is not None: - string_representation += row_format_d.format('Record', self.record) - - string_representation += row_format_g.format('Result', self.result) - string_representation += row_format_g.format('Mean', self.mean) - string_representation += row_format_g.format('Standard Deviation', self.stdev) - string_representation += row_format_g.format('Minimum Value', self.min_val) - string_representation += row_format_g.format('Maximum Value', self.max_val) - string_representation += row_format_d.format('Number in Stats', self.num_in_stats) - - return string_representation diff --git a/generated/niscope/niscope/nidevice_pb2.py b/generated/niscope/niscope/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/niscope/niscope/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/niscope/niscope/nidevice_pb2_grpc.py b/generated/niscope/niscope/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/niscope/niscope/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/niscope/niscope/niscope_pb2.py b/generated/niscope/niscope/niscope_pb2.py deleted file mode 100644 index f44be2344a..0000000000 --- a/generated/niscope/niscope/niscope_pb2.py +++ /dev/null @@ -1,452 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: niscope.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import nidevice_pb2 as nidevice__pb2 -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rniscope.proto\x12\x0cniscope_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\xb7\x01\n\x0cWaveformInfo\x12\x1a\n\x12\x61\x62solute_initial_x\x18\x01 \x01(\x01\x12\x1a\n\x12relative_initial_x\x18\x02 \x01(\x01\x12\x13\n\x0bx_increment\x18\x03 \x01(\x01\x12\x16\n\x0e\x61\x63tual_samples\x18\x04 \x01(\x11\x12\x0e\n\x06offset\x18\x05 \x01(\x01\x12\x0c\n\x04gain\x18\x06 \x01(\x01\x12\x11\n\treserved1\x18\x07 \x01(\x01\x12\x11\n\treserved2\x18\x08 \x01(\x01\"U\n\x0f\x43oefficientInfo\x12\x0e\n\x06offset\x18\x01 \x01(\x01\x12\x0c\n\x04gain\x18\x02 \x01(\x01\x12\x11\n\treserved1\x18\x03 \x01(\x01\x12\x11\n\treserved2\x18\x04 \x01(\x01\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"6\n\x10\x41utoSetupRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"#\n\x11\x41utoSetupResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfc\x01\n\x18\x43onfigureVerticalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\x12\x0e\n\x06offset\x18\x04 \x01(\x01\x12\x32\n\x08\x63oupling\x18\x05 \x01(\x0e\x32\x1e.niscope_grpc.VerticalCouplingH\x00\x12\x16\n\x0c\x63oupling_raw\x18\x06 \x01(\x11H\x00\x12\x19\n\x11probe_attenuation\x18\x07 \x01(\x01\x12\x0f\n\x07\x65nabled\x18\x08 \x01(\x08\x42\x0f\n\rcoupling_enum\"+\n\x19\x43onfigureVerticalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x95\x01\n#ConfigureChanCharacteristicsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0finput_impedance\x18\x03 \x01(\x01\x12\x1b\n\x13max_input_frequency\x18\x04 \x01(\x01\"6\n$ConfigureChanCharacteristicsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb9\x01\n ConfigureHorizontalTimingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fmin_sample_rate\x18\x02 \x01(\x01\x12\x13\n\x0bmin_num_pts\x18\x03 \x01(\x11\x12\x14\n\x0cref_position\x18\x04 \x01(\x01\x12\x13\n\x0bnum_records\x18\x05 \x01(\x11\x12\x18\n\x10\x65nforce_realtime\x18\x06 \x01(\x08\"3\n!ConfigureHorizontalTimingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfd\x03\n\x15\x43onfigureClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12 \n\x16input_clock_source_raw\x18\x02 \x01(\tH\x00\x12I\n\x19input_clock_source_mapped\x18\x06 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x00\x12!\n\x17output_clock_source_raw\x18\x03 \x01(\tH\x01\x12J\n\x1aoutput_clock_source_mapped\x18\x07 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x01\x12%\n\x1b\x63lock_sync_pulse_source_raw\x18\x04 \x01(\tH\x02\x12N\n\x1e\x63lock_sync_pulse_source_mapped\x18\x08 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x02\x12\x16\n\x0emaster_enabled\x18\x05 \x01(\x08\x42\x19\n\x17input_clock_source_enumB\x1a\n\x18output_clock_source_enumB\x1e\n\x1c\x63lock_sync_pulse_source_enum\"(\n\x16\x43onfigureClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x02\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\x06signal\x18\x02 \x01(\x0e\x32\x1f.niscope_grpc.ExportableSignalsH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x46\n\x16output_terminal_mapped\x18\x05 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x01\x12\x1d\n\x13output_terminal_raw\x18\x06 \x01(\tH\x01\x42\r\n\x0bsignal_enumB\x16\n\x14output_terminal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n%AdjustSampleClockRelativeDelayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05\x64\x65lay\x18\x02 \x01(\x01\"8\n&AdjustSampleClockRelativeDelayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcc\x02\n\x1b\x43onfigureTriggerEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12+\n\x05slope\x18\x04 \x01(\x0e\x32\x1a.niscope_grpc.TriggerSlopeH\x00\x12\x13\n\tslope_raw\x18\x05 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x06 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x07 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\x08 \x01(\x01\x12\r\n\x05\x64\x65lay\x18\t \x01(\x01\x42\x0c\n\nslope_enumB\x17\n\x15trigger_coupling_enum\".\n\x1c\x43onfigureTriggerEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdc\x03\n\x1d\x43onfigureTriggerGlitchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12\r\n\x05width\x18\x04 \x01(\x01\x12\x30\n\x08polarity\x18\x05 \x01(\x0e\x32\x1c.niscope_grpc.GlitchPolarityH\x00\x12\x16\n\x0cpolarity_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10glitch_condition\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.GlitchConditionH\x01\x12\x1e\n\x14glitch_condition_raw\x18\x08 \x01(\x11H\x01\x12\x39\n\x10trigger_coupling\x18\t \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x02\x12\x1e\n\x14trigger_coupling_raw\x18\n \x01(\x11H\x02\x12\x0f\n\x07holdoff\x18\x0b \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\x01\x42\x0f\n\rpolarity_enumB\x17\n\x15glitch_condition_enumB\x17\n\x15trigger_coupling_enum\"0\n\x1e\x43onfigureTriggerGlitchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe6\x02\n!ConfigureTriggerHysteresisRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12\x12\n\nhysteresis\x18\x04 \x01(\x01\x12+\n\x05slope\x18\x05 \x01(\x0e\x32\x1a.niscope_grpc.TriggerSlopeH\x00\x12\x13\n\tslope_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x08 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\t \x01(\x01\x12\r\n\x05\x64\x65lay\x18\n \x01(\x01\x42\x0c\n\nslope_enumB\x17\n\x15trigger_coupling_enum\"4\n\"ConfigureTriggerHysteresisResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfd\x02\n\x1d\x43onfigureTriggerWindowRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\x11\n\tlow_level\x18\x03 \x01(\x01\x12\x12\n\nhigh_level\x18\x04 \x01(\x01\x12\x36\n\x0bwindow_mode\x18\x05 \x01(\x0e\x32\x1f.niscope_grpc.TriggerWindowModeH\x00\x12\x19\n\x0fwindow_mode_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x08 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\t \x01(\x01\x12\r\n\x05\x64\x65lay\x18\n \x01(\x01\x42\x12\n\x10window_mode_enumB\x17\n\x15trigger_coupling_enum\"0\n\x1e\x43onfigureTriggerWindowResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x1f\x43onfigureTriggerSoftwareRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07holdoff\x18\x02 \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\x01\"2\n ConfigureTriggerSoftwareResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x1eSendSoftwareTriggerEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\rwhich_trigger\x18\x02 \x01(\x0e\x32\x1a.niscope_grpc.WhichTriggerH\x00\x12\x1b\n\x11which_trigger_raw\x18\x03 \x01(\x11H\x00\x42\x14\n\x12which_trigger_enum\"1\n\x1fSendSoftwareTriggerEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n ConfigureTriggerImmediateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"3\n!ConfigureTriggerImmediateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf5\x02\n\x1b\x43onfigureTriggerRuntRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\x15\n\rlow_threshold\x18\x03 \x01(\x01\x12\x16\n\x0ehigh_threshold\x18\x04 \x01(\x01\x12.\n\x08polarity\x18\x05 \x01(\x0e\x32\x1a.niscope_grpc.RuntPolarityH\x00\x12\x16\n\x0cpolarity_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x08 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\t \x01(\x01\x12\r\n\x05\x64\x65lay\x18\n \x01(\x01\x42\x0f\n\rpolarity_enumB\x17\n\x15trigger_coupling_enum\".\n\x1c\x43onfigureTriggerRuntResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcc\x01\n\x1e\x43onfigureTriggerDigitalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12+\n\x05slope\x18\x03 \x01(\x0e\x32\x1a.niscope_grpc.TriggerSlopeH\x00\x12\x13\n\tslope_raw\x18\x04 \x01(\x11H\x00\x12\x0f\n\x07holdoff\x18\x05 \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x06 \x01(\x01\x42\x0c\n\nslope_enum\"1\n\x1f\x43onfigureTriggerDigitalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x04\n\x1c\x43onfigureTriggerVideoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\x19\n\x11\x65nable_dc_restore\x18\x03 \x01(\x08\x12\x38\n\rsignal_format\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.VideoSignalFormatH\x00\x12\x1b\n\x11signal_format_raw\x18\x05 \x01(\x11H\x00\x12\x30\n\x05\x65vent\x18\x06 \x01(\x0e\x32\x1f.niscope_grpc.VideoTriggerEventH\x01\x12\x13\n\tevent_raw\x18\x07 \x01(\x11H\x01\x12\x13\n\x0bline_number\x18\x08 \x01(\x11\x12/\n\x08polarity\x18\t \x01(\x0e\x32\x1b.niscope_grpc.VideoPolarityH\x02\x12\x16\n\x0cpolarity_raw\x18\n \x01(\x11H\x02\x12\x39\n\x10trigger_coupling\x18\x0b \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x03\x12\x1e\n\x14trigger_coupling_raw\x18\x0c \x01(\x11H\x03\x12\x0f\n\x07holdoff\x18\r \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x0e \x01(\x01\x42\x14\n\x12signal_format_enumB\x0c\n\nevent_enumB\x0f\n\rpolarity_enumB\x17\n\x15trigger_coupling_enum\"/\n\x1d\x43onfigureTriggerVideoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe4\x03\n\x1c\x43onfigureTriggerWidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12\x15\n\rlow_threshold\x18\x04 \x01(\x01\x12\x16\n\x0ehigh_threshold\x18\x05 \x01(\x01\x12/\n\x08polarity\x18\x06 \x01(\x0e\x32\x1b.niscope_grpc.WidthPolarityH\x00\x12\x16\n\x0cpolarity_raw\x18\x07 \x01(\x11H\x00\x12\x31\n\tcondition\x18\x08 \x01(\x0e\x32\x1c.niscope_grpc.WidthConditionH\x01\x12\x17\n\rcondition_raw\x18\t \x01(\x11H\x01\x12\x39\n\x10trigger_coupling\x18\n \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x02\x12\x1e\n\x14trigger_coupling_raw\x18\x0b \x01(\x11H\x02\x12\x0f\n\x07holdoff\x18\x0c \x01(\x01\x12\r\n\x05\x64\x65lay\x18\r \x01(\x01\x42\x0f\n\rpolarity_enumB\x10\n\x0e\x63ondition_enumB\x17\n\x15trigger_coupling_enum\"/\n\x1d\x43onfigureTriggerWidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x80\x01\n.ConfigureEqualizationFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x14\n\x0c\x63oefficients\x18\x03 \x03(\x01\"A\n/ConfigureEqualizationFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x7f\n(GetEqualizationFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x1e\n\x16number_of_coefficients\x18\x03 \x01(\x11\"Q\n)GetEqualizationFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x63oefficients\x18\x02 \x03(\x01\"g\n\x1bGetFrequencyResponseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"\x86\x01\n\x1cGetFrequencyResponseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x12\n\namplitudes\x18\x03 \x03(\x01\x12\x0e\n\x06phases\x18\x04 \x03(\x01\x12\x1d\n\x15number_of_frequencies\x18\x05 \x01(\x11\"[\n\x1b\x43onfigureAcquisitionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x18\n\x10\x61\x63quisition_type\x18\x02 \x01(\x11\".\n\x1c\x43onfigureAcquisitionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aInitiateAcquisitionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1bInitiateAcquisitionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"m\n\x0bReadRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"^\n\x0cReadResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x01\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"n\n\x0c\x46\x65tchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"_\n\rFetchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x01\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"u\n\x13\x46\x65tchBinary8Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"f\n\x14\x46\x65tchBinary8Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x01(\x0c\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"v\n\x14\x46\x65tchBinary16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"g\n\x15\x46\x65tchBinary16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x11\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"v\n\x14\x46\x65tchBinary32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"g\n\x15\x46\x65tchBinary32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x11\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"u\n\x13\x46\x65tchComplexRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"\x81\x01\n\x14\x46\x65tchComplexResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12+\n\x03wfm\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"}\n\x1b\x46\x65tchComplexBinary16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"\x86\x01\n\x1c\x46\x65tchComplexBinary16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12(\n\x03wfm\x18\x02 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\">\n\x18\x41\x63quisitionStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x88\x01\n\x19\x41\x63quisitionStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12;\n\x12\x61\x63quisition_status\x18\x02 \x01(\x0e\x32\x1f.niscope_grpc.AcquisitionStatus\x12\x1e\n\x16\x61\x63quisition_status_raw\x18\x03 \x01(\x11\"P\n\x14\x41\x63tualNumWfmsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"9\n\x15\x41\x63tualNumWfmsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08num_wfms\x18\x02 \x01(\x11\"\xbc\x01\n\x18\x41\x63tualMeasWfmSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12=\n\x13\x61rray_meas_function\x18\x02 \x01(\x0e\x32\x1e.niscope_grpc.ArrayMeasurementH\x00\x12!\n\x17\x61rray_meas_function_raw\x18\x03 \x01(\x11H\x00\x42\x1a\n\x18\x61rray_meas_function_enum\"G\n\x19\x41\x63tualMeasWfmSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12meas_waveform_size\x18\x02 \x01(\x11\"?\n\x19\x41\x63tualRecordLengthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"C\n\x1a\x41\x63tualRecordLengthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rrecord_length\x18\x02 \x01(\x11\"7\n\x11SampleRateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"9\n\x12SampleRateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bsample_rate\x18\x02 \x01(\x01\"7\n\x11SampleModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"9\n\x12SampleModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bsample_mode\x18\x02 \x01(\x11\"\xc4\x01\n\x1c\x41\x64\x64WaveformProcessingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x37\n\rmeas_function\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.ArrayMeasurementH\x00\x12\x1b\n\x11meas_function_raw\x18\x04 \x01(\x11H\x00\x42\x14\n\x12meas_function_enum\"/\n\x1d\x41\x64\x64WaveformProcessingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1e\x43learWaveformProcessingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"1\n\x1f\x43learWaveformProcessingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x83\x02\n$ClearWaveformMeasurementStatsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12L\n\x1e\x63learable_measurement_function\x18\x03 \x01(\x0e\x32\".niscope_grpc.ClearableMeasurementH\x00\x12,\n\"clearable_measurement_function_raw\x18\x04 \x01(\x11H\x00\x42%\n#clearable_measurement_function_enum\"7\n%ClearWaveformMeasurementStatsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe5\x01\n\x16ReadMeasurementRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12?\n\x14scalar_meas_function\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.ScalarMeasurementH\x00\x12\"\n\x18scalar_meas_function_raw\x18\x05 \x01(\x11H\x00\x42\x1b\n\x19scalar_meas_function_enum\"9\n\x17ReadMeasurementResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x03(\x01\"\xe6\x01\n\x17\x46\x65tchMeasurementRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12?\n\x14scalar_meas_function\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.ScalarMeasurementH\x00\x12\"\n\x18scalar_meas_function_raw\x18\x05 \x01(\x11H\x00\x42\x1b\n\x19scalar_meas_function_enum\":\n\x18\x46\x65tchMeasurementResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x03(\x01\"\xeb\x01\n\x1c\x46\x65tchMeasurementStatsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12?\n\x14scalar_meas_function\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.ScalarMeasurementH\x00\x12\"\n\x18scalar_meas_function_raw\x18\x05 \x01(\x11H\x00\x42\x1b\n\x19scalar_meas_function_enum\"\x8c\x01\n\x1d\x46\x65tchMeasurementStatsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x03(\x01\x12\x0c\n\x04mean\x18\x03 \x03(\x01\x12\r\n\x05stdev\x18\x04 \x03(\x01\x12\x0b\n\x03min\x18\x05 \x03(\x01\x12\x0b\n\x03max\x18\x06 \x03(\x01\x12\x14\n\x0cnum_in_stats\x18\x07 \x03(\x11\"\x95\x02\n\x1c\x46\x65tchArrayMeasurementRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12=\n\x13\x61rray_meas_function\x18\x04 \x01(\x0e\x32\x1e.niscope_grpc.ArrayMeasurementH\x00\x12!\n\x17\x61rray_meas_function_raw\x18\x05 \x01(\x11H\x00\x12\x1a\n\rmeas_wfm_size\x18\x06 \x01(\x11H\x01\x88\x01\x01\x42\x1a\n\x18\x61rray_meas_function_enumB\x10\n\x0e_meas_wfm_size\"o\n\x1d\x46\x65tchArrayMeasurementResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08meas_wfm\x18\x02 \x03(\x01\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa0\x01\n\x17\x43\x61lSelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12&\n\x06option\x18\x03 \x01(\x0e\x32\x14.niscope_grpc.OptionH\x00\x12\x14\n\noption_raw\x18\x04 \x01(\x11H\x00\x42\r\n\x0boption_enum\"*\n\x18\x43\x61lSelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"[\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x64river_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"I\n#ProbeCompensationSignalStartRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"6\n$ProbeCompensationSignalStartResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\"ProbeCompensationSignalStopRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"5\n#ProbeCompensationSignalStopResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1c\x43\x61\x62leSenseSignalStartRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1d\x43\x61\x62leSenseSignalStartResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1b\x43\x61\x62leSenseSignalStopRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x43\x61\x62leSenseSignalStopResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"@\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x63hannel_string\x18\x02 \x01(\t\"T\n\x1fGetChannelNameFromStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\t\"@\n GetChannelNameFromStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"c\n\x13\x45rrorHandlerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x14\n\x0c\x65rror_source\x18\x03 \x01(\t\"A\n\x14\x45rrorHandlerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11\x65rror_description\x18\x02 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"K\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"P\n\x16GetErrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"@\n\x17GetErrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"\x8c\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\xeb\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x11H\x00\x12:\n\x05value\x18\x05 \x01(\x0e\x32).niscope_grpc.NiScopeInt32AttributeValuesH\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xed\x01\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x11H\x00\x12:\n\x05value\x18\x05 \x01(\x0e\x32).niscope_grpc.NiScopeInt32AttributeValuesH\x00\x42\x0c\n\nvalue_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8c\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x9f\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa1\x01\n\x1c\x43heckAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"/\n\x1d\x43heckAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\xb7\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x01H\x00\x12;\n\x05value\x18\x05 \x01(\x0e\x32*.niscope_grpc.NiScopeReal64AttributeValuesH\x00\x12H\n\x0cvalue_mapped\x18\x06 \x01(\x0e\x32\x30.niscope_grpc.NiScopeReal64AttributeValuesMappedH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb9\x02\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x01H\x00\x12;\n\x05value\x18\x05 \x01(\x0e\x32*.niscope_grpc.NiScopeReal64AttributeValuesH\x00\x12H\n\x0cvalue_mapped\x18\x06 \x01(\x0e\x32\x30.niscope_grpc.NiScopeReal64AttributeValuesMappedH\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"\xfa\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12H\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32\x30.niscope_grpc.NiScopeStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfc\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12H\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32\x30.niscope_grpc.NiScopeStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8e\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xb5\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb7\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8e\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\x9d\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9f\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1dGetScalingCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x8d\x01\n\x1eGetScalingCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x37\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1d.niscope_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"_\n#GetNormalizationCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x93\x01\n$GetNormalizationCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x37\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1d.niscope_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"Y\n\x1eGetStreamEndpointHandleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstream_name\x18\x02 \x01(\t\"H\n\x1fGetStreamEndpointHandleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwriter_handle\x18\x02 \x01(\r\"\x99\x01\n\x13\x43\x61lFetchDateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\twhich_one\x18\x02 \x01(\x0e\x32\x1e.niscope_grpc.CalibrationTypesH\x00\x12\x17\n\rwhich_one_raw\x18\x03 \x01(\x11H\x00\x42\x10\n\x0ewhich_one_enum\"P\n\x14\x43\x61lFetchDateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\"\xa0\x01\n\x1a\x43\x61lFetchTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\twhich_one\x18\x02 \x01(\x0e\x32\x1e.niscope_grpc.CalibrationTypesH\x00\x12\x17\n\rwhich_one_raw\x18\x03 \x01(\x11H\x00\x42\x10\n\x0ewhich_one_enum\"B\n\x1b\x43\x61lFetchTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01*\xe0Q\n\x10NiScopeAttribute\x12!\n\x1dNISCOPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12%\n\x1fNISCOPE_ATTRIBUTE_MEAS_HIGH_REF\x10\xaf\xaaL\x12$\n\x1eNISCOPE_ATTRIBUTE_MEAS_LOW_REF\x10\xb0\xaaL\x12\x1d\n\x17NISCOPE_ATTRIBUTE_CACHE\x10\x94\x8b@\x12$\n\x1eNISCOPE_ATTRIBUTE_MEAS_MID_REF\x10\xb1\xaaL\x12#\n\x1dNISCOPE_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12/\n)NISCOPE_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12(\n\"NISCOPE_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12 \n\x1aNISCOPE_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12)\n#NISCOPE_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12%\n\x1fNISCOPE_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x33\n-NISCOPE_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12*\n$NISCOPE_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x33\n-NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12.\n(NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12.\n(NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12@\n:NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12@\n:NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x30\n*NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12/\n)NISCOPE_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12(\n\"NISCOPE_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x34\n.NISCOPE_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12.\n(NISCOPE_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12$\n\x1eNISCOPE_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12$\n\x1eNISCOPE_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12(\n\"NISCOPE_ATTRIBUTE_ACQUISITION_TYPE\x10\xb5\xa6L\x12#\n\x1dNISCOPE_ATTRIBUTE_SAMPLE_MODE\x10\xba\xa6L\x12\'\n!NISCOPE_ATTRIBUTE_CHANNEL_ENABLED\x10\xd5\xa5L\x12)\n#NISCOPE_ATTRIBUTE_PROBE_ATTENUATION\x10\xd4\xa5L\x12&\n NISCOPE_ATTRIBUTE_VERTICAL_RANGE\x10\xd1\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_VERTICAL_OFFSET\x10\xd2\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_WIDTH_CONDITION\x10\xc8\xa9L\x12+\n%NISCOPE_ATTRIBUTE_WIDTH_LOW_THRESHOLD\x10\xc5\xa9L\x12,\n&NISCOPE_ATTRIBUTE_WIDTH_HIGH_THRESHOLD\x10\xc6\xa9L\x12&\n NISCOPE_ATTRIBUTE_WIDTH_POLARITY\x10\xc7\xa9L\x12)\n#NISCOPE_ATTRIBUTE_VERTICAL_COUPLING\x10\xd3\xa5L\x12+\n%NISCOPE_ATTRIBUTE_MAX_INPUT_FREQUENCY\x10\xd6\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_INPUT_IMPEDANCE\x10\xb7\xa6L\x12,\n&NISCOPE_ATTRIBUTE_HORZ_TIME_PER_RECORD\x10\xd7\xa5L\x12.\n(NISCOPE_ATTRIBUTE_ACQUISITION_START_TIME\x10\xbd\xa6L\x12(\n\"NISCOPE_ATTRIBUTE_HORZ_MIN_NUM_PTS\x10\xd9\xa5L\x12*\n$NISCOPE_ATTRIBUTE_HORZ_RECORD_LENGTH\x10\xd8\xa5L\x12\x30\n*NISCOPE_ATTRIBUTE_HORZ_RECORD_REF_POSITION\x10\xdb\xa5L\x12(\n\"NISCOPE_ATTRIBUTE_HORZ_SAMPLE_RATE\x10\xda\xa5L\x12$\n\x1eNISCOPE_ATTRIBUTE_TRIGGER_TYPE\x10\xdc\xa5L\x12&\n NISCOPE_ATTRIBUTE_TRIGGER_SOURCE\x10\xdd\xa5L\x12%\n\x1fNISCOPE_ATTRIBUTE_TRIGGER_LEVEL\x10\xe1\xa5L\x12*\n$NISCOPE_ATTRIBUTE_TRIGGER_DELAY_TIME\x10\xdf\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_TRIGGER_HOLDOFF\x10\xe0\xa5L\x12(\n\"NISCOPE_ATTRIBUTE_TRIGGER_COUPLING\x10\xde\xa5L\x12%\n\x1fNISCOPE_ATTRIBUTE_TRIGGER_SLOPE\x10\xe2\xa5L\x12(\n\"NISCOPE_ATTRIBUTE_TV_TRIGGER_EVENT\x10\x9d\xa7L\x12.\n(NISCOPE_ATTRIBUTE_TV_TRIGGER_LINE_NUMBER\x10\x9e\xa7L\x12\x30\n*NISCOPE_ATTRIBUTE_TV_TRIGGER_SIGNAL_FORMAT\x10\x99\xa7L\x12+\n%NISCOPE_ATTRIBUTE_TV_TRIGGER_POLARITY\x10\x9c\xa7L\x12(\n\"NISCOPE_ATTRIBUTE_HORZ_NUM_RECORDS\x10\xb1\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_INPUT_CLOCK_SOURCE\x10\xb2\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_OUTPUT_CLOCK_SOURCE\x10\xb3\x98\x46\x12-\n\'NISCOPE_ATTRIBUTE_HORZ_ENFORCE_REALTIME\x10\xb4\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_BINARY_SAMPLE_WIDTH\x10\xb5\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_CABLE_SENSE_VOLTAGE\x10\xb9\x99\x46\x12(\n\"NISCOPE_ATTRIBUTE_CABLE_SENSE_MODE\x10\xba\x99\x46\x12\x31\n+NISCOPE_ATTRIBUTE_CABLE_SENSE_SIGNAL_ENABLE\x10\xbb\x99\x46\x12*\n$NISCOPE_ATTRIBUTE_TRIGGER_HYSTERESIS\x10\xb6\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_CLOCK_SYNC_PULSE_SOURCE\x10\xb7\x98\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_MASTER_ENABLE\x10\xb8\x98\x46\x12\'\n!NISCOPE_ATTRIBUTE_MIN_SAMPLE_RATE\x10\xb9\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_TRIGGER_WINDOW_MODE\x10\xbc\x98\x46\x12\x30\n*NISCOPE_ATTRIBUTE_TRIGGER_WINDOW_LOW_LEVEL\x10\xbd\x98\x46\x12\x31\n+NISCOPE_ATTRIBUTE_TRIGGER_WINDOW_HIGH_LEVEL\x10\xbe\x98\x46\x12,\n&NISCOPE_ATTRIBUTE_MEAS_REF_LEVEL_UNITS\x10\xc0\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_MEAS_OTHER_CHANNEL\x10\xc2\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_HYSTERESIS_PERCENT\x10\xc3\x98\x46\x12\x34\n.NISCOPE_ATTRIBUTE_MEAS_LAST_ACQ_HISTOGRAM_SIZE\x10\xc4\x98\x46\x12\x33\n-NISCOPE_ATTRIBUTE_MEAS_VOLTAGE_HISTOGRAM_SIZE\x10\xc5\x98\x46\x12\x38\n2NISCOPE_ATTRIBUTE_MEAS_VOLTAGE_HISTOGRAM_LOW_VOLTS\x10\xc6\x98\x46\x12\x39\n3NISCOPE_ATTRIBUTE_MEAS_VOLTAGE_HISTOGRAM_HIGH_VOLTS\x10\xc7\x98\x46\x12\x30\n*NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_SIZE\x10\xc8\x98\x46\x12\x35\n/NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_LOW_VOLTS\x10\xc9\x98\x46\x12\x36\n0NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_HIGH_VOLTS\x10\xca\x98\x46\x12\x34\n.NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_LOW_TIME\x10\xcb\x98\x46\x12\x35\n/NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_HIGH_TIME\x10\xcc\x98\x46\x12;\n5NISCOPE_ATTRIBUTE_MEAS_POLYNOMIAL_INTERPOLATION_ORDER\x10\xcd\x98\x46\x12:\n4NISCOPE_ATTRIBUTE_MEAS_INTERPOLATION_SAMPLING_FACTOR\x10\xce\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_FILTER_CUTOFF_FREQ\x10\xcf\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_FILTER_CENTER_FREQ\x10\xd0\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_MEAS_FILTER_RIPPLE\x10\xd1\x98\x46\x12>\n8NISCOPE_ATTRIBUTE_MEAS_FILTER_TRANSIENT_WAVEFORM_PERCENT\x10\xd2\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_MEAS_FILTER_TYPE\x10\xd3\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_MEAS_FILTER_ORDER\x10\xd4\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_MEAS_FILTER_TAPS\x10\xd5\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_CHAN_LOW_REF_LEVEL\x10\xd6\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_CHAN_MID_REF_LEVEL\x10\xd7\x98\x46\x12\x30\n*NISCOPE_ATTRIBUTE_MEAS_CHAN_HIGH_REF_LEVEL\x10\xd8\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_MEAS_FILTER_WIDTH\x10\xd9\x98\x46\x12.\n(NISCOPE_ATTRIBUTE_MEAS_FIR_FILTER_WINDOW\x10\xda\x98\x46\x12\'\n!NISCOPE_ATTRIBUTE_MEAS_ARRAY_GAIN\x10\xdb\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_MEAS_ARRAY_OFFSET\x10\xdc\x98\x46\x12.\n(NISCOPE_ATTRIBUTE_MEAS_PERCENTAGE_METHOD\x10\xdd\x98\x46\x12&\n NISCOPE_ATTRIBUTE_ACQ_ARM_SOURCE\x10\xe5\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_IS_PROBE_COMP_ON\x10\xf2\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_USE_SPEC_INITIAL_X\x10\xf3\x98\x46\x12\x36\n0NISCOPE_ATTRIBUTE_ALLOW_MORE_RECORDS_THAN_MEMORY\x10\xf4\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_ONBOARD_MEMORY_SIZE\x10\xf5\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_RIS_NUM_AVERAGES\x10\xf6\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_RUNT_TIME_CONDITION\x10\xb4\x99\x46\x12+\n%NISCOPE_ATTRIBUTE_RUNT_TIME_LOW_LIMIT\x10\xb5\x99\x46\x12,\n&NISCOPE_ATTRIBUTE_RUNT_TIME_HIGH_LIMIT\x10\xb6\x99\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_RUNT_POLARITY\x10\xff\xa7L\x12*\n$NISCOPE_ATTRIBUTE_RUNT_LOW_THRESHOLD\x10\xfe\xa7L\x12+\n%NISCOPE_ATTRIBUTE_RUNT_HIGH_THRESHOLD\x10\xfd\xa7L\x12\"\n\x1cNISCOPE_ATTRIBUTE_RIS_METHOD\x10\xf7\x98\x46\x12.\n(NISCOPE_ATTRIBUTE_FETCH_INTERLEAVED_DATA\x10\xf8\x98\x46\x12\x33\n-NISCOPE_ATTRIBUTE_MAX_REAL_TIME_SAMPLING_RATE\x10\xf9\x98\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_MAX_RIS_RATE\x10\xfa\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_TRIGGER_IMPEDANCE\x10\xfb\x98\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_DEVICE_NUMBER\x10\xfc\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_FETCH_RELATIVE_TO\x10\xfd\x98\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_FETCH_OFFSET\x10\xfe\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_FETCH_RECORD_NUMBER\x10\xff\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_FETCH_NUM_RECORDS\x10\x80\x99\x46\x12.\n(NISCOPE_ATTRIBUTE_FETCH_MEAS_NUM_SAMPLES\x10\x81\x99\x46\x12#\n\x1dNISCOPE_ATTRIBUTE_POINTS_DONE\x10\x82\x99\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_RECORDS_DONE\x10\x83\x99\x46\x12\x1f\n\x19NISCOPE_ATTRIBUTE_BACKLOG\x10\x84\x99\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_POLL_INTERVAL\x10\x94\x99\x46\x12\'\n!NISCOPE_ATTRIBUTE_PLL_LOCK_STATUS\x10\xc7\xa2\x46\x12*\n$NISCOPE_ATTRIBUTE_DEVICE_TEMPERATURE\x10\x86\x99\x46\x12-\n\'NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_SRC\x10\x87\x99\x46\x12.\n(NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_RATE\x10\x88\x99\x46\x12-\n\'NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_DIV\x10\x89\x99\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_REF_CLK_RATE\x10\x8a\x99\x46\x12=\n7NISCOPE_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL\x10\x8b\x99\x46\x12)\n#NISCOPE_ATTRIBUTE_ENABLE_DC_RESTORE\x10\x8d\x99\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_ADV_TRIG_SRC\x10\x8e\x99\x46\x12(\n\"NISCOPE_ATTRIBUTE_ARM_REF_TRIG_SRC\x10\x8f\x99\x46\x12+\n%NISCOPE_ATTRIBUTE_REF_TRIG_TDC_ENABLE\x10\x90\x99\x46\x12\"\n\x1cNISCOPE_ATTRIBUTE_RESOLUTION\x10\x96\x99\x46\x12\x34\n.NISCOPE_ATTRIBUTE_START_TO_REF_TRIGGER_HOLDOFF\x10\x97\x99\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_SERIAL_NUMBER\x10\x98\x99\x46\x12\x32\n,NISCOPE_ATTRIBUTE_OSCILLATOR_PHASE_DAC_VALUE\x10\x99\x99\x46\x12\x30\n*NISCOPE_ATTRIBUTE_RIS_IN_AUTO_SETUP_ENABLE\x10\x9a\x99\x46\x12\x36\n0NISCOPE_ATTRIBUTE_CHANNEL_TERMINAL_CONFIGURATION\x10\x9b\x99\x46\x12@\n:NISCOPE_ATTRIBUTE_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL\x10\x9d\x99\x46\x12=\n7NISCOPE_ATTRIBUTE_READY_FOR_START_EVENT_OUTPUT_TERMINAL\x10\x9e\x99\x46\x12;\n5NISCOPE_ATTRIBUTE_READY_FOR_REF_EVENT_OUTPUT_TERMINAL\x10\x9f\x99\x46\x12?\n9NISCOPE_ATTRIBUTE_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL\x10\xa0\x99\x46\x12\x36\n0NISCOPE_ATTRIBUTE_FLEX_FIR_ANTIALIAS_FILTER_TYPE\x10\xbf\x9a\x46\x12#\n\x1dNISCOPE_ATTRIBUTE_DDC_ENABLED\x10\xdc\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_DDC_FREQUENCY_TRANSLATION_ENABLED\x10\xde\x9a\x46\x12,\n&NISCOPE_ATTRIBUTE_DDC_CENTER_FREQUENCY\x10\xdf\x9a\x46\x12\x30\n*NISCOPE_ATTRIBUTE_DDC_DATA_PROCESSING_MODE\x10\xe0\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_DDC_FREQUENCY_TRANSLATION_PHASE_I\x10\xe1\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_DDC_FREQUENCY_TRANSLATION_PHASE_Q\x10\xe2\x9a\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_DIGITAL_GAIN\x10\xe3\x9a\x46\x12&\n NISCOPE_ATTRIBUTE_DIGITAL_OFFSET\x10\xe4\x9a\x46\x12\x30\n*NISCOPE_ATTRIBUTE_OVERFLOW_ERROR_REPORTING\x10\xe5\x9a\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_DDC_Q_SOURCE\x10\xe6\x9a\x46\x12\x31\n+NISCOPE_ATTRIBUTE_FETCH_INTERLEAVED_IQ_DATA\x10\xe7\x9a\x46\x12\x35\n/NISCOPE_ATTRIBUTE_EQUALIZATION_NUM_COEFFICIENTS\x10\xe8\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_EQUALIZATION_FILTER_ENABLED\x10\xe9\x9a\x46\x12\x35\n/NISCOPE_ATTRIBUTE_REF_TRIGGER_DETECTOR_LOCATION\x10\xea\x9a\x46\x12\x36\n0NISCOPE_ATTRIBUTE_REF_TRIGGER_MINIMUM_QUIET_TIME\x10\xeb\x9a\x46\x12\x38\n2NISCOPE_ATTRIBUTE_ENABLE_TIME_INTERLEAVED_SAMPLING\x10\xb0\x99\x46\x12(\n\"NISCOPE_ATTRIBUTE_ENABLED_CHANNELS\x10\xbc\x99\x46\x12\x30\n*NISCOPE_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\xec\x9a\x46\x12(\n\"NISCOPE_ATTRIBUTE_TRIGGER_MODIFIER\x10\xb6\xa6L\x12.\n(NISCOPE_ATTRIBUTE_TRIGGER_AUTO_TRIGGERED\x10\xc6\x9a\x46\x12>\n8NISCOPE_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\x91\x99\x46\x12<\n6NISCOPE_ATTRIBUTE_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL\x10\x92\x99\x46\x12;\n5NISCOPE_ATTRIBUTE_END_OF_RECORD_EVENT_OUTPUT_TERMINAL\x10\x93\x99\x46\x12@\n:NISCOPE_ATTRIBUTE_END_OF_ACQUISITION_EVENT_OUTPUT_TERMINAL\x10\x95\x99\x46\x12.\n(NISCOPE_ATTRIBUTE_5V_OUT_OUTPUT_TERMINAL\x10\xb1\x99\x46\x12/\n)NISCOPE_ATTRIBUTE_BANDPASS_FILTER_ENABLED\x10\xee\x9a\x46\x12&\n NISCOPE_ATTRIBUTE_DITHER_ENABLED\x10\xef\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_FRACTIONAL_RESAMPLE_ENABLED\x10\xf0\x9a\x46\x12(\n\"NISCOPE_ATTRIBUTE_GLITCH_CONDITION\x10\xe3\xa8L\x12$\n\x1eNISCOPE_ATTRIBUTE_GLITCH_WIDTH\x10\xe1\xa8L\x12\'\n!NISCOPE_ATTRIBUTE_GLITCH_POLARITY\x10\xe2\xa8L\x12\x37\n1NISCOPE_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\xf1\x9a\x46\x12;\n5NISCOPE_ATTRIBUTE_DATA_TRANSFER_PREFERRED_PACKET_SIZE\x10\xf2\x9a\x46\x12(\n\"NISCOPE_ATTRIBUTE_SIGNAL_COND_GAIN\x10\xc7\x9a\x46\x12*\n$NISCOPE_ATTRIBUTE_SIGNAL_COND_OFFSET\x10\xc8\x9a\x46\x12#\n\x1dNISCOPE_ATTRIBUTE_P2P_ENABLED\x10\x82\x9b\x46\x12.\n(NISCOPE_ATTRIBUTE_P2P_CHANNELS_TO_STREAM\x10\x83\x9b\x46\x12)\n#NISCOPE_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\x86\x9b\x46\x12\x35\n/NISCOPE_ATTRIBUTE_P2P_SAMPLES_AVAIL_IN_ENDPOINT\x10\xf8\x9a\x46\x12:\n4NISCOPE_ATTRIBUTE_P2P_MOST_SAMPLES_AVAIL_IN_ENDPOINT\x10\x85\x9b\x46\x12/\n)NISCOPE_ATTRIBUTE_P2P_SAMPLES_TRANSFERRED\x10\x84\x9b\x46\x12-\n\'NISCOPE_ATTRIBUTE_P2P_ENDPOINT_OVERFLOW\x10\x88\x9b\x46\x12/\n)NISCOPE_ATTRIBUTE_P2P_FIFO_ENDPOINT_COUNT\x10\x89\x9b\x46\x12\x32\n,NISCOPE_ATTRIBUTE_P2P_ONBOARD_MEMORY_ENABLED\x10\x92\x9b\x46\x12\x38\n2NISCOPE_ATTRIBUTE_P2P_MANUAL_CONFIGURATION_ENABLED\x10\x87\x9b\x46\x12\x36\n0NISCOPE_ATTRIBUTE_P2P_DATA_TRANS_PERMISSION_ADDR\x10\xf9\x9a\x46\x12;\n5NISCOPE_ATTRIBUTE_P2P_DATA_TRANS_PERMISSION_ADDR_TYPE\x10\xfa\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_P2P_DESTINATION_WINDOW_ADDR\x10\xfb\x9a\x46\x12\x38\n2NISCOPE_ATTRIBUTE_P2P_DESTINATION_WINDOW_ADDR_TYPE\x10\xfc\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_P2P_DESTINATION_WINDOW_SIZE\x10\xfd\x9a\x46\x12\x32\n,NISCOPE_ATTRIBUTE_P2P_NOTIFY_PUSH_MESSAGE_ON\x10\xfe\x9a\x46\x12\x34\n.NISCOPE_ATTRIBUTE_P2P_NOTIFY_MESSAGE_PUSH_ADDR\x10\xff\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_P2P_NOTIFY_MESSAGE_PUSH_ADDR_TYPE\x10\x80\x9b\x46\x12\x35\n/NISCOPE_ATTRIBUTE_P2P_NOTIFY_MESSAGE_PUSH_VALUE\x10\x81\x9b\x46\x12.\n(NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_MULT\x10\x9f\x9b\x46\x12.\n(NISCOPE_ATTRIBUTE_P2P_STREAM_RELATIVE_TO\x10\xa5\x9b\x46\x12:\n4NISCOPE_ATTRIBUTE_P2P_SAMPLES_TRANSFERRED_PER_RECORD\x10\xac\x9b\x46\x12@\n:NISCOPE_ATTRIBUTE_END_OF_RECORD_TO_ADVANCE_TRIGGER_HOLDOFF\x10\x9e\x9b\x46\x12\x34\n.NISCOPE_ATTRIBUTE_ABSOLUTE_SAMPLE_CLOCK_OFFSET\x10\xa6\x9b\x46\x12)\n#NISCOPE_ATTRIBUTE_FPGA_BITFILE_PATH\x10\xa7\x9b\x46\x12>\n8NISCOPE_ATTRIBUTE_INTERLEAVING_OFFSET_CORRECTION_ENABLED\x10\xa8\x9b\x46\x12\x32\n,NISCOPE_ATTRIBUTE_HIGH_PASS_FILTER_FREQUENCY\x10\xa9\x9b\x46\x12>\n8NISCOPE_ATTRIBUTE_END_OF_ACQUISITION_EVENT_TERMINAL_NAME\x10\xbd\x99\x46\x12\x39\n3NISCOPE_ATTRIBUTE_END_OF_RECORD_EVENT_TERMINAL_NAME\x10\xbe\x99\x46\x12\x35\n/NISCOPE_ATTRIBUTE_ADVANCE_TRIGGER_TERMINAL_NAME\x10\xbf\x99\x46\x12\x31\n+NISCOPE_ATTRIBUTE_REF_TRIGGER_TERMINAL_NAME\x10\xc0\x99\x46\x12\x33\n-NISCOPE_ATTRIBUTE_START_TRIGGER_TERMINAL_NAME\x10\xc1\x99\x46\x12=\n7NISCOPE_ATTRIBUTE_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME\x10\xc2\x99\x46\x12\x39\n3NISCOPE_ATTRIBUTE_READY_FOR_REF_EVENT_TERMINAL_NAME\x10\xc3\x99\x46\x12;\n5NISCOPE_ATTRIBUTE_READY_FOR_START_EVENT_TERMINAL_NAME\x10\xc4\x99\x46*\xf4\x01\n\x0cWhichTrigger\x12\x34\n0WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_START\x10\x00\x12<\n8WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_ARM_REFERENCE\x10\x01\x12\x38\n4WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_REFERENCE\x10\x02\x12\x36\n2WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_ADVANCE\x10\x03*\x85\x01\n\x10VerticalCoupling\x12$\n VERTICAL_COUPLING_NISCOPE_VAL_AC\x10\x00\x12$\n VERTICAL_COUPLING_NISCOPE_VAL_DC\x10\x01\x12%\n!VERTICAL_COUPLING_NISCOPE_VAL_GND\x10\x02*\xe8\x01\n\x0fTriggerCoupling\x12#\n\x1fTRIGGER_COUPLING_NISCOPE_VAL_AC\x10\x00\x12#\n\x1fTRIGGER_COUPLING_NISCOPE_VAL_DC\x10\x01\x12*\n&TRIGGER_COUPLING_NISCOPE_VAL_HF_REJECT\x10\x03\x12*\n&TRIGGER_COUPLING_NISCOPE_VAL_LF_REJECT\x10\x04\x12\x33\n.TRIGGER_COUPLING_NISCOPE_VAL_AC_PLUS_HF_REJECT\x10\xe9\x07*\x8a\x01\n\x0cTriggerSlope\x12&\n\"TRIGGER_SLOPE_NISCOPE_VAL_NEGATIVE\x10\x00\x12&\n\"TRIGGER_SLOPE_NISCOPE_VAL_POSITIVE\x10\x01\x12*\n&TRIGGER_SLOPE_NISCOPE_VAL_SLOPE_EITHER\x10\x03*\x87\x01\n\rVideoPolarity\x12\x1e\n\x1aVIDEO_POLARITY_UNSPECIFIED\x10\x00\x12*\n&VIDEO_POLARITY_NISCOPE_VAL_TV_POSITIVE\x10\x01\x12*\n&VIDEO_POLARITY_NISCOPE_VAL_TV_NEGATIVE\x10\x02*\xcb\x02\n\x11VideoTriggerEvent\x12#\n\x1fVIDEO_TRIGGER_EVENT_UNSPECIFIED\x10\x00\x12\x33\n/VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_FIELD1\x10\x01\x12\x33\n/VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_FIELD2\x10\x02\x12\x36\n2VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_ANY_FIELD\x10\x03\x12\x35\n1VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_ANY_LINE\x10\x04\x12\x38\n4VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_LINE_NUMBER\x10\x05*\x9c\x01\n\x0fGlitchCondition\x12 \n\x1cGLITCH_CONDITION_UNSPECIFIED\x10\x00\x12\x34\n0GLITCH_CONDITION_NISCOPE_VAL_GLITCH_GREATER_THAN\x10\x02\x12\x31\n-GLITCH_CONDITION_NISCOPE_VAL_GLITCH_LESS_THAN\x10\x01*\xc2\x01\n\x0eGlitchPolarity\x12\x1f\n\x1bGLITCH_POLARITY_UNSPECIFIED\x10\x00\x12/\n+GLITCH_POLARITY_NISCOPE_VAL_GLITCH_POSITIVE\x10\x01\x12/\n+GLITCH_POLARITY_NISCOPE_VAL_GLITCH_NEGATIVE\x10\x02\x12-\n)GLITCH_POLARITY_NISCOPE_VAL_GLITCH_EITHER\x10\x03*\x8e\x01\n\x0eWidthCondition\x12\x1f\n\x1bWIDTH_CONDITION_UNSPECIFIED\x10\x00\x12,\n(WIDTH_CONDITION_NISCOPE_VAL_WIDTH_WITHIN\x10\x01\x12-\n)WIDTH_CONDITION_NISCOPE_VAL_WIDTH_OUTSIDE\x10\x02*\xba\x01\n\rWidthPolarity\x12\x1e\n\x1aWIDTH_POLARITY_UNSPECIFIED\x10\x00\x12-\n)WIDTH_POLARITY_NISCOPE_VAL_WIDTH_POSITIVE\x10\x01\x12-\n)WIDTH_POLARITY_NISCOPE_VAL_WIDTH_NEGATIVE\x10\x02\x12+\n\'WIDTH_POLARITY_NISCOPE_VAL_WIDTH_EITHER\x10\x03*\xb2\x01\n\x0cRuntPolarity\x12\x1d\n\x19RUNT_POLARITY_UNSPECIFIED\x10\x00\x12+\n\'RUNT_POLARITY_NISCOPE_VAL_RUNT_POSITIVE\x10\x01\x12+\n\'RUNT_POLARITY_NISCOPE_VAL_RUNT_NEGATIVE\x10\x02\x12)\n%RUNT_POLARITY_NISCOPE_VAL_RUNT_EITHER\x10\x03*\x96\x07\n\x16\x43lockingTerminalValues\x12(\n$CLOCKING_TERMINAL_VALUES_UNSPECIFIED\x10\x00\x12\x32\n.CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_NO_SOURCE\x10\x01\x12\x33\n/CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_RTSI_CLOCK\x10\x02\x12\x31\n-CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_EXTERNAL\x10\x03\x12.\n*CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PFI_0\x10\x04\x12.\n*CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PFI_1\x10\x05\x12.\n*CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PFI_2\x10\x06\x12/\n+CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_CLK_IN\x10\x07\x12\x30\n,CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_CLK_OUT\x10\x08\x12:\n6CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_INTERNAL10MHZ_OSC\x10\t\x12\x30\n,CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXI_CLK\x10\n\x12\x32\n.CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXI_CLK10\x10\x0b\x12\x33\n/CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXI_CLK100\x10\x0c\x12\x35\n1CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXIE_DSTAR_A\x10\r\x12\x35\n1CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_AUX_0_CLK_IN\x10\x0e\x12\x36\n2CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_AUX_0_CLK_OUT\x10\x0f\x12\x46\nBCLOCKING_TERMINAL_VALUES_NISCOPE_VAL_ONBOARD_CONFIGURABLE_RATE_CLK\x10\x10*\xfa\x04\n\x11\x45xportableSignals\x12\"\n\x1e\x45XPORTABLE_SIGNALS_UNSPECIFIED\x10\x00\x12.\n*EXPORTABLE_SIGNALS_NISCOPE_VAL_REF_TRIGGER\x10\x01\x12\x30\n,EXPORTABLE_SIGNALS_NISCOPE_VAL_START_TRIGGER\x10\x02\x12;\n7EXPORTABLE_SIGNALS_NISCOPE_VAL_END_OF_ACQUISITION_EVENT\x10\x03\x12\x36\n2EXPORTABLE_SIGNALS_NISCOPE_VAL_END_OF_RECORD_EVENT\x10\x04\x12\x32\n.EXPORTABLE_SIGNALS_NISCOPE_VAL_ADVANCE_TRIGGER\x10\x05\x12:\n6EXPORTABLE_SIGNALS_NISCOPE_VAL_READY_FOR_ADVANCE_EVENT\x10\x06\x12\x38\n4EXPORTABLE_SIGNALS_NISCOPE_VAL_READY_FOR_START_EVENT\x10\x07\x12\x36\n2EXPORTABLE_SIGNALS_NISCOPE_VAL_READY_FOR_REF_EVENT\x10\n\x12)\n%EXPORTABLE_SIGNALS_NISCOPE_VAL_5V_OUT\x10\r\x12,\n(EXPORTABLE_SIGNALS_NISCOPE_VAL_REF_CLOCK\x10\x64\x12/\n+EXPORTABLE_SIGNALS_NISCOPE_VAL_SAMPLE_CLOCK\x10\x65*\xbc\x01\n\x11TriggerWindowMode\x12\x33\n/TRIGGER_WINDOW_MODE_NISCOPE_VAL_ENTERING_WINDOW\x10\x00\x12\x32\n.TRIGGER_WINDOW_MODE_NISCOPE_VAL_LEAVING_WINDOW\x10\x01\x12>\n:TRIGGER_WINDOW_MODE_NISCOPE_VAL_ENTERING_OR_LEAVING_WINDOW\x10\x02*\xb8\x01\n\x11\x41\x63quisitionStatus\x12\x32\n.ACQUISITION_STATUS_NISCOPE_VAL_ACQ_IN_PROGRESS\x10\x00\x12/\n+ACQUISITION_STATUS_NISCOPE_VAL_ACQ_COMPLETE\x10\x01\x12>\n1ACQUISITION_STATUS_NISCOPE_VAL_ACQ_STATUS_UNKNOWN\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xcf\x0f\n\x11ScalarMeasurement\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_RISE_TIME\x10\x00\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_NO_MEASUREMENT\x10\xa0\x1f\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_FALL_TIME\x10\x01\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_FREQUENCY\x10\x02\x12)\n%SCALAR_MEASUREMENT_NISCOPE_VAL_PERIOD\x10\x03\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_RMS\x10\x04\x12\x37\n3SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK\x10\x05\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MAX\x10\x06\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MIN\x10\x07\x12/\n+SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HIGH\x10\x08\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_LOW\x10\t\x12\x32\n.SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_AVERAGE\x10\n\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_WIDTH_NEG\x10\x0b\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_WIDTH_POS\x10\x0c\x12\x31\n-SCALAR_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_NEG\x10\r\x12\x31\n-SCALAR_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_POS\x10\x0e\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_AMPLITUDE\x10\x0f\x12\x34\n0SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_RMS\x10\x10\x12\x38\n4SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE\x10\x11\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_OVERSHOOT\x10\x12\x12+\n\'SCALAR_MEASUREMENT_NISCOPE_VAL_PRESHOOT\x10\x13\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_LOW_REF_VOLTS\x10\xe8\x07\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_MID_REF_VOLTS\x10\xe9\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_HIGH_REF_VOLTS\x10\xea\x07\x12(\n#SCALAR_MEASUREMENT_NISCOPE_VAL_AREA\x10\xeb\x07\x12.\n)SCALAR_MEASUREMENT_NISCOPE_VAL_CYCLE_AREA\x10\xec\x07\x12,\n\'SCALAR_MEASUREMENT_NISCOPE_VAL_INTEGRAL\x10\xed\x07\x12\x30\n+SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE\x10\xee\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_TOP\x10\xef\x07\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_FFT_FREQUENCY\x10\xf0\x07\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_FFT_AMPLITUDE\x10\xf1\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_RISE_SLEW_RATE\x10\xf2\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_FALL_SLEW_RATE\x10\xf3\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_AC_ESTIMATE\x10\xf4\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_DC_ESTIMATE\x10\xf5\x07\x12.\n)SCALAR_MEASUREMENT_NISCOPE_VAL_TIME_DELAY\x10\xf6\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_AVERAGE_PERIOD\x10\xf7\x07\x12\x35\n0SCALAR_MEASUREMENT_NISCOPE_VAL_AVERAGE_FREQUENCY\x10\xf8\x07\x12\x37\n2SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE_TO_TOP\x10\xf9\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_PHASE_DELAY\x10\xfa\x07*\xd4\x0b\n\x10\x41rrayMeasurement\x12!\n\x1d\x41RRAY_MEASUREMENT_UNSPECIFIED\x10\x00\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_NO_MEASUREMENT\x10\xa0\x1f\x12\x35\n0ARRAY_MEASUREMENT_NISCOPE_VAL_LAST_ACQ_HISTOGRAM\x10\xa1\x1f\x12\x35\n0ARRAY_MEASUREMENT_NISCOPE_VAL_FFT_PHASE_SPECTRUM\x10\xa2\x1f\x12=\n8ARRAY_MEASUREMENT_NISCOPE_VAL_FFT_AMP_SPECTRUM_VOLTS_RMS\x10\xa3\x1f\x12>\n9ARRAY_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_VOLTAGE_HISTOGRAM\x10\xa4\x1f\x12;\n6ARRAY_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_TIME_HISTOGRAM\x10\xa5\x1f\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_ARRAY_INTEGRAL\x10\xa6\x1f\x12-\n(ARRAY_MEASUREMENT_NISCOPE_VAL_DERIVATIVE\x10\xa7\x1f\x12*\n%ARRAY_MEASUREMENT_NISCOPE_VAL_INVERSE\x10\xa8\x1f\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_HANNING_WINDOW\x10\xa9\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_FLAT_TOP_WINDOW\x10\xaa\x1f\x12;\n6ARRAY_MEASUREMENT_NISCOPE_VAL_POLYNOMIAL_INTERPOLATION\x10\xab\x1f\x12\x34\n/ARRAY_MEASUREMENT_NISCOPE_VAL_MULTIPLY_CHANNELS\x10\xac\x1f\x12/\n*ARRAY_MEASUREMENT_NISCOPE_VAL_ADD_CHANNELS\x10\xad\x1f\x12\x34\n/ARRAY_MEASUREMENT_NISCOPE_VAL_SUBTRACT_CHANNELS\x10\xae\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_DIVIDE_CHANNELS\x10\xaf\x1f\x12\x34\n/ARRAY_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_AVERAGE\x10\xb0\x1f\x12\x35\n0ARRAY_MEASUREMENT_NISCOPE_VAL_BUTTERWORTH_FILTER\x10\xb1\x1f\x12\x33\n.ARRAY_MEASUREMENT_NISCOPE_VAL_CHEBYSHEV_FILTER\x10\xb2\x1f\x12\x36\n1ARRAY_MEASUREMENT_NISCOPE_VAL_FFT_AMP_SPECTRUM_DB\x10\xb3\x1f\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_HAMMING_WINDOW\x10\xb4\x1f\x12\x36\n1ARRAY_MEASUREMENT_NISCOPE_VAL_WINDOWED_FIR_FILTER\x10\xb5\x1f\x12\x30\n+ARRAY_MEASUREMENT_NISCOPE_VAL_BESSEL_FILTER\x10\xb6\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_TRIANGLE_WINDOW\x10\xb7\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_BLACKMAN_WINDOW\x10\xb8\x1f\x12/\n*ARRAY_MEASUREMENT_NISCOPE_VAL_ARRAY_OFFSET\x10\xb9\x1f\x12-\n(ARRAY_MEASUREMENT_NISCOPE_VAL_ARRAY_GAIN\x10\xba\x1f*\xa1\x01\n\x10\x43\x61librationTypes\x12.\n*CALIBRATION_TYPES_NISCOPE_VAL_CAL_EXTERNAL\x10\x00\x12*\n&CALIBRATION_TYPES_NISCOPE_VAL_CAL_SELF\x10\x01\x12\x31\n-CALIBRATION_TYPES_NISCOPE_VAL_CAL_MANUFACTURE\x10\x02*\xb3\x1e\n\x14\x43learableMeasurement\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_RISE_TIME\x10\x00\x12\x37\n2CLEARABLE_MEASUREMENT_NISCOPE_VAL_ALL_MEASUREMENTS\x10\x90N\x12\x42\n=CLEARABLE_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_VOLTAGE_HISTOGRAM\x10\xa4\x1f\x12?\n:CLEARABLE_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_TIME_HISTOGRAM\x10\xa5\x1f\x12\x38\n3CLEARABLE_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_AVERAGE\x10\xb0\x1f\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_FREQUENCY\x10\x02\x12\x38\n3CLEARABLE_MEASUREMENT_NISCOPE_VAL_AVERAGE_FREQUENCY\x10\xf8\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_FFT_FREQUENCY\x10\xf0\x07\x12,\n(CLEARABLE_MEASUREMENT_NISCOPE_VAL_PERIOD\x10\x03\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_AVERAGE_PERIOD\x10\xf7\x07\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_FALL_TIME\x10\x01\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_RISE_SLEW_RATE\x10\xf2\x07\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_FALL_SLEW_RATE\x10\xf3\x07\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_OVERSHOOT\x10\x12\x12.\n*CLEARABLE_MEASUREMENT_NISCOPE_VAL_PRESHOOT\x10\x13\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_RMS\x10\x04\x12\x37\n3CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_RMS\x10\x10\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_AC_ESTIMATE\x10\xf4\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_FFT_AMPLITUDE\x10\xf1\x07\x12\x35\n1CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_AVERAGE\x10\n\x12;\n7CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE\x10\x11\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_DC_ESTIMATE\x10\xf5\x07\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MAX\x10\x06\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MIN\x10\x07\x12:\n6CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK\x10\x05\x12\x32\n.CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HIGH\x10\x08\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_LOW\x10\t\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_AMPLITUDE\x10\x0f\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_TOP\x10\xef\x07\x12\x33\n.CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE\x10\xee\x07\x12:\n5CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE_TO_TOP\x10\xf9\x07\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_WIDTH_NEG\x10\x0b\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_WIDTH_POS\x10\x0c\x12\x34\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_NEG\x10\r\x12\x34\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_POS\x10\x0e\x12/\n*CLEARABLE_MEASUREMENT_NISCOPE_VAL_INTEGRAL\x10\xed\x07\x12+\n&CLEARABLE_MEASUREMENT_NISCOPE_VAL_AREA\x10\xeb\x07\x12\x31\n,CLEARABLE_MEASUREMENT_NISCOPE_VAL_CYCLE_AREA\x10\xec\x07\x12\x31\n,CLEARABLE_MEASUREMENT_NISCOPE_VAL_TIME_DELAY\x10\xf6\x07\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_PHASE_DELAY\x10\xfa\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_LOW_REF_VOLTS\x10\xe8\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_MID_REF_VOLTS\x10\xe9\x07\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_HIGH_REF_VOLTS\x10\xea\x07\x12=\n8CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN\x10\xd0\x0f\x12>\n9CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_STDEV\x10\xd1\x0f\x12?\n:CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEDIAN\x10\xd3\x0f\x12=\n8CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MODE\x10\xda\x0f\x12<\n7CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MAX\x10\xd5\x0f\x12<\n7CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MIN\x10\xd6\x0f\x12\x45\n@CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_PEAK_TO_PEAK\x10\xd2\x0f\x12H\nCCLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN_PLUS_STDEV\x10\xd7\x0f\x12J\nECLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN_PLUS_2_STDEV\x10\xd8\x0f\x12J\nECLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN_PLUS_3_STDEV\x10\xd9\x0f\x12=\n8CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_HITS\x10\xd4\x0f\x12\x41\n\n9CLEARABLE_MEASUREMENT_NISCOPE_VAL_TIME_HISTOGRAM_NEW_HITS\x10\xc3\x17*q\n\x06Option\x12\x32\n.OPTION_NISCOPE_VAL_SELF_CALIBRATE_ALL_CHANNELS\x10\x00\x12\x33\n/OPTION_NISCOPE_VAL_RESTORE_EXTERNAL_CALIBRATION\x10\x01*\x80\t\n\x11VideoSignalFormat\x12#\n\x1fVIDEO_SIGNAL_FORMAT_UNSPECIFIED\x10\x00\x12(\n$VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_NTSC\x10\x01\x12\'\n#VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_PAL\x10\x02\x12)\n%VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_SECAM\x10\x03\x12*\n%VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_M_PAL\x10\xe9\x07\x12G\nBVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480I_59_94_FIELDS_PER_SECOND\x10\xf2\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480I_60_FIELDS_PER_SECOND\x10\xf3\x07\x12G\nBVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480P_59_94_FRAMES_PER_SECOND\x10\xf7\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480P_60_FRAMES_PER_SECOND\x10\xf8\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_576I_50_FIELDS_PER_SECOND\x10\xfc\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_576P_50_FRAMES_PER_SECOND\x10\x81\x08\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_720P_50_FRAMES_PER_SECOND\x10\x87\x08\x12G\nBVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_720P_59_94_FRAMES_PER_SECOND\x10\x88\x08\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_720P_60_FRAMES_PER_SECOND\x10\x89\x08\x12\x45\n@VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080I_50_FIELDS_PER_SECOND\x10\x90\x08\x12H\nCVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080I_59_94_FIELDS_PER_SECOND\x10\x91\x08\x12\x45\n@VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080I_60_FIELDS_PER_SECOND\x10\x92\x08\x12\x45\n@VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080P_24_FRAMES_PER_SECOND\x10\x95\x08*\xad\x35\n\x1bNiScopeInt32AttributeValues\x12\x1d\n\x19NISCOPE_INT32_UNSPECIFIED\x10\x00\x12-\n)NISCOPE_INT32_ACQUISITION_TYPE_VAL_NORMAL\x10\x00\x12/\n*NISCOPE_INT32_ACQUISITION_TYPE_VAL_FLEXRES\x10\xe9\x07\x12+\n&NISCOPE_INT32_ACQUISITION_TYPE_VAL_DDC\x10\xea\x07\x12\x30\n,NISCOPE_INT32_ADDRESS_TYPE_VAL_ADDR_PHYSICAL\x10\x00\x12/\n+NISCOPE_INT32_ADDRESS_TYPE_VAL_ADDR_VIRTUAL\x10\x01\x12/\n+NISCOPE_INT32_DATA_PROCESSING_MODE_VAL_REAL\x10\x00\x12\x32\n.NISCOPE_INT32_DATA_PROCESSING_MODE_VAL_COMPLEX\x10\x01\x12,\n(NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_NONE\x10\x00\x12\x30\n+NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_HANNING\x10\x99\x03\x12\x31\n,NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_FLAT_TOP\x10\x9a\x03\x12\x30\n+NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_HAMMING\x10\xa4\x03\x12\x31\n,NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_TRIANGLE\x10\xa7\x03\x12\x31\n,NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_BLACKMAN\x10\xa8\x03\x12\x35\n0NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_READ_POINTER\x10\x84\x03\x12\x33\n.NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_PRETRIGGER\x10\xdd\x03\x12,\n\'NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_NOW\x10\xe1\x03\x12.\n)NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_START\x10\xe2\x03\x12\x30\n+NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_TRIGGER\x10\xe3\x03\x12\x44\n@NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_48_TAP_STANDARD\x10\x00\x12\x43\n?NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_48_TAP_HANNING\x10\x01\x12\x43\n?NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_16_TAP_HANNING\x10\x02\x12\x42\n>NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_8_TAP_HANNING\x10\x03\x12:\n6NISCOPE_INT32_GLITCH_CONDITION_VAL_GLITCH_GREATER_THAN\x10\x02\x12\x37\n3NISCOPE_INT32_GLITCH_CONDITION_VAL_GLITCH_LESS_THAN\x10\x01\x12\x35\n1NISCOPE_INT32_GLITCH_POLARITY_VAL_GLITCH_POSITIVE\x10\x01\x12\x35\n1NISCOPE_INT32_GLITCH_POLARITY_VAL_GLITCH_NEGATIVE\x10\x02\x12\x33\n/NISCOPE_INT32_GLITCH_POLARITY_VAL_GLITCH_EITHER\x10\x03\x12\x33\n/NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_LOWPASS\x10\x00\x12\x34\n0NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_HIGHPASS\x10\x01\x12\x34\n0NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_BANDPASS\x10\x02\x12\x34\n0NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_BANDSTOP\x10\x03\x12:\n6NISCOPE_INT32_MEAS_PERCENTAGE_METHOD_VAL_MEAS_LOW_HIGH\x10\x00\x12\x39\n5NISCOPE_INT32_MEAS_PERCENTAGE_METHOD_VAL_MEAS_MIN_MAX\x10\x01\x12:\n6NISCOPE_INT32_MEAS_PERCENTAGE_METHOD_VAL_MEAS_BASE_TOP\x10\x02\x12\x37\n3NISCOPE_INT32_MEAS_REF_LEVEL_UNITS_VAL_MEAS_VOLTAGE\x10\x00\x12:\n6NISCOPE_INT32_MEAS_REF_LEVEL_UNITS_VAL_MEAS_PERCENTAGE\x10\x01\x12\x34\n0NISCOPE_INT32_NOTIFICATION_TYPE_VAL_NOTIFY_NEVER\x10\x00\x12\x33\n/NISCOPE_INT32_NOTIFICATION_TYPE_VAL_NOTIFY_DONE\x10\x01\x12\x44\n@NISCOPE_INT32_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_ERROR\x10\x00\x12\x46\nBNISCOPE_INT32_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_WARNING\x10\x01\x12G\nCNISCOPE_INT32_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_DISABLED\x10\x02\x12N\nJNISCOPE_INT32_P2_P_STREAM_RELATIVE_TO_VAL_STREAM_RELATIVE_TO_START_TRIGGER\x10\x00\x12R\nNNISCOPE_INT32_P2_P_STREAM_RELATIVE_TO_VAL_STREAM_RELATIVE_TO_REFERENCE_TRIGGER\x10\x01\x12M\nINISCOPE_INT32_P2_P_STREAM_RELATIVE_TO_VAL_STREAM_RELATIVE_TO_SYNC_TRIGGER\x10\x02\x12\x37\n3NISCOPE_INT32_RIS_METHOD_VAL_RIS_EXACT_NUM_AVERAGES\x10\x01\x12\x35\n1NISCOPE_INT32_RIS_METHOD_VAL_RIS_MIN_NUM_AVERAGES\x10\x02\x12/\n+NISCOPE_INT32_RIS_METHOD_VAL_RIS_INCOMPLETE\x10\x03\x12\x36\n2NISCOPE_INT32_RIS_METHOD_VAL_RIS_LIMITED_BIN_WIDTH\x10\x05\x12L\nHNISCOPE_INT32_REF_TRIGGER_DETECTOR_LOCATION_VAL_ANALOG_DETECTION_CIRCUIT\x10\x00\x12>\n:NISCOPE_INT32_REF_TRIGGER_DETECTOR_LOCATION_VAL_DDC_OUTPUT\x10\x01\x12\x31\n-NISCOPE_INT32_RUNT_POLARITY_VAL_RUNT_POSITIVE\x10\x01\x12\x31\n-NISCOPE_INT32_RUNT_POLARITY_VAL_RUNT_NEGATIVE\x10\x02\x12/\n+NISCOPE_INT32_RUNT_POLARITY_VAL_RUNT_EITHER\x10\x03\x12\x42\n>NISCOPE_INT32_RUNT_TIME_CONDITION_VAL_RUNT_TIME_CONDITION_NONE\x10\x00\x12\x44\n@NISCOPE_INT32_RUNT_TIME_CONDITION_VAL_RUNT_TIME_CONDITION_WITHIN\x10\x01\x12\x45\nANISCOPE_INT32_RUNT_TIME_CONDITION_VAL_RUNT_TIME_CONDITION_OUTSIDE\x10\x02\x12+\n\'NISCOPE_INT32_SAMPLE_MODE_VAL_REAL_TIME\x10\x00\x12\x31\n-NISCOPE_INT32_SAMPLE_MODE_VAL_EQUIVALENT_TIME\x10\x01\x12\x39\n5NISCOPE_INT32_TERMINAL_CONFIGURATION_VAL_SINGLE_ENDED\x10\x00\x12\x44\n@NISCOPE_INT32_TERMINAL_CONFIGURATION_VAL_UNBALANCED_DIFFERENTIAL\x10\x01\x12\x39\n5NISCOPE_INT32_TERMINAL_CONFIGURATION_VAL_DIFFERENTIAL\x10\x02\x12)\n%NISCOPE_INT32_TRIGGER_COUPLING_VAL_AC\x10\x00\x12)\n%NISCOPE_INT32_TRIGGER_COUPLING_VAL_DC\x10\x01\x12\x30\n,NISCOPE_INT32_TRIGGER_COUPLING_VAL_HF_REJECT\x10\x03\x12\x30\n,NISCOPE_INT32_TRIGGER_COUPLING_VAL_LF_REJECT\x10\x04\x12\x39\n4NISCOPE_INT32_TRIGGER_COUPLING_VAL_AC_PLUS_HF_REJECT\x10\xe9\x07\x12\x35\n1NISCOPE_INT32_TRIGGER_MODIFIER_VAL_NO_TRIGGER_MOD\x10\x01\x12+\n\'NISCOPE_INT32_TRIGGER_MODIFIER_VAL_AUTO\x10\x02\x12\x31\n-NISCOPE_INT32_TRIGGER_MODIFIER_VAL_AUTO_LEVEL\x10\x03\x12,\n(NISCOPE_INT32_TRIGGER_SLOPE_VAL_NEGATIVE\x10\x00\x12,\n(NISCOPE_INT32_TRIGGER_SLOPE_VAL_POSITIVE\x10\x01\x12\x30\n,NISCOPE_INT32_TRIGGER_SLOPE_VAL_SLOPE_EITHER\x10\x03\x12/\n+NISCOPE_INT32_TRIGGER_TYPE_VAL_EDGE_TRIGGER\x10\x01\x12\x36\n1NISCOPE_INT32_TRIGGER_TYPE_VAL_HYSTERESIS_TRIGGER\x10\xe9\x07\x12\x33\n.NISCOPE_INT32_TRIGGER_TYPE_VAL_DIGITAL_TRIGGER\x10\xea\x07\x12\x32\n-NISCOPE_INT32_TRIGGER_TYPE_VAL_WINDOW_TRIGGER\x10\xeb\x07\x12\x34\n/NISCOPE_INT32_TRIGGER_TYPE_VAL_SOFTWARE_TRIGGER\x10\xec\x07\x12-\n)NISCOPE_INT32_TRIGGER_TYPE_VAL_TV_TRIGGER\x10\x05\x12\x31\n-NISCOPE_INT32_TRIGGER_TYPE_VAL_GLITCH_TRIGGER\x10\x04\x12\x30\n,NISCOPE_INT32_TRIGGER_TYPE_VAL_WIDTH_TRIGGER\x10\x02\x12/\n+NISCOPE_INT32_TRIGGER_TYPE_VAL_RUNT_TRIGGER\x10\x03\x12\x34\n0NISCOPE_INT32_TRIGGER_TYPE_VAL_IMMEDIATE_TRIGGER\x10\x06\x12\x39\n5NISCOPE_INT32_TRIGGER_WINDOW_MODE_VAL_ENTERING_WINDOW\x10\x00\x12\x38\n4NISCOPE_INT32_TRIGGER_WINDOW_MODE_VAL_LEAVING_WINDOW\x10\x01\x12\x44\n@NISCOPE_INT32_TRIGGER_WINDOW_MODE_VAL_ENTERING_OR_LEAVING_WINDOW\x10\x02\x12*\n&NISCOPE_INT32_VERTICAL_COUPLING_VAL_AC\x10\x00\x12*\n&NISCOPE_INT32_VERTICAL_COUPLING_VAL_DC\x10\x01\x12+\n\'NISCOPE_INT32_VERTICAL_COUPLING_VAL_GND\x10\x02\x12\x30\n,NISCOPE_INT32_VIDEO_POLARITY_VAL_TV_POSITIVE\x10\x01\x12\x30\n,NISCOPE_INT32_VIDEO_POLARITY_VAL_TV_NEGATIVE\x10\x02\x12.\n*NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_NTSC\x10\x01\x12-\n)NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_PAL\x10\x02\x12/\n+NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_SECAM\x10\x03\x12\x30\n+NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_M_PAL\x10\xe9\x07\x12M\nHNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480I_59_94_FIELDS_PER_SECOND\x10\xf2\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480I_60_FIELDS_PER_SECOND\x10\xf3\x07\x12M\nHNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480P_59_94_FRAMES_PER_SECOND\x10\xf7\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480P_60_FRAMES_PER_SECOND\x10\xf8\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_576I_50_FIELDS_PER_SECOND\x10\xfc\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_576P_50_FRAMES_PER_SECOND\x10\x81\x08\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_720P_50_FRAMES_PER_SECOND\x10\x87\x08\x12M\nHNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_720P_59_94_FRAMES_PER_SECOND\x10\x88\x08\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_720P_60_FRAMES_PER_SECOND\x10\x89\x08\x12K\nFNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080I_50_FIELDS_PER_SECOND\x10\x90\x08\x12N\nINISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080I_59_94_FIELDS_PER_SECOND\x10\x91\x08\x12K\nFNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080I_60_FIELDS_PER_SECOND\x10\x92\x08\x12K\nFNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080P_24_FRAMES_PER_SECOND\x10\x95\x08\x12\x39\n5NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_FIELD1\x10\x01\x12\x39\n5NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_FIELD2\x10\x02\x12<\n8NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_ANY_FIELD\x10\x03\x12;\n7NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_ANY_LINE\x10\x04\x12>\n:NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_LINE_NUMBER\x10\x05\x12\x32\n.NISCOPE_INT32_WIDTH_CONDITION_VAL_WIDTH_WITHIN\x10\x01\x12\x33\n/NISCOPE_INT32_WIDTH_CONDITION_VAL_WIDTH_OUTSIDE\x10\x02\x12\x33\n/NISCOPE_INT32_WIDTH_POLARITY_VAL_WIDTH_POSITIVE\x10\x01\x12\x33\n/NISCOPE_INT32_WIDTH_POLARITY_VAL_WIDTH_NEGATIVE\x10\x02\x12\x31\n-NISCOPE_INT32_WIDTH_POLARITY_VAL_WIDTH_EITHER\x10\x03\x1a\x02\x10\x01*\xc9\x01\n\x1cNiScopeReal64AttributeValues\x12\x1e\n\x1aNISCOPE_REAL64_UNSPECIFIED\x10\x00\x12\x41\n=NISCOPE_REAL64_CABLE_SENSE_MODE_VAL_CABLE_SENSE_MODE_DISABLED\x10\x00\x12\x42\n>NISCOPE_REAL64_CABLE_SENSE_MODE_VAL_CABLE_SENSE_MODE_ON_DEMAND\x10\x01\x1a\x02\x10\x01*\xe3\x04\n\"NiScopeReal64AttributeValuesMapped\x12%\n!NISCOPE_REAL64_MAPPED_UNSPECIFIED\x10\x00\x12.\n*NISCOPE_REAL64_INPUT_IMPEDANCE_VAL_50_OHMS\x10\x01\x12.\n*NISCOPE_REAL64_INPUT_IMPEDANCE_VAL_75_OHMS\x10\x02\x12\x30\n,NISCOPE_REAL64_INPUT_IMPEDANCE_VAL_1_MEG_OHM\x10\x03\x12\x43\n?NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_BANDWIDTH_DEVICE_DEFAULT\x10\x04\x12\x39\n5NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_BANDWIDTH_FULL\x10\x05\x12:\n6NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_20MHZ_BANDWIDTH\x10\x06\x12;\n7NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_100MHZ_BANDWIDTH\x10\x07\x12\x44\n@NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_20MHZ_MAX_INPUT_FREQUENCY\x10\x08\x12\x45\nANISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_100MHZ_MAX_INPUT_FREQUENCY\x10\t*\x9e\x11\n\"NiScopeStringAttributeValuesMapped\x12%\n!NISCOPE_STRING_MAPPED_UNSPECIFIED\x10\x00\x12\x33\n/NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_CLK_IN\x10\x01\x12\x36\n2NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_NO_SOURCE\x10\x02\x12\x35\n1NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_PXI_STAR\x10\x03\x12\x39\n5NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_PXIE_DSTAR_A\x10\x04\x12\x39\n5NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_AUX_0_CLK_IN\x10\x05\x12J\nFNISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_ONBOARD_CONFIGURABLE_RATE_CLK\x10\x06\x12/\n+NISCOPE_STRING_TRIGGER_SOURCE_VAL_IMMEDIATE\x10\x07\x12.\n*NISCOPE_STRING_TRIGGER_SOURCE_VAL_EXTERNAL\x10\x08\x12\x32\n.NISCOPE_STRING_TRIGGER_SOURCE_VAL_SW_TRIG_FUNC\x10\t\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL0\x10\n\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL1\x10\x0b\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL2\x10\x0c\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL3\x10\r\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL4\x10\x0e\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL5\x10\x0f\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL6\x10\x10\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL7\x10\x11\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_ECL0\x10\x12\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_ECL1\x10\x13\x12.\n*NISCOPE_STRING_TRIGGER_SOURCE_VAL_PXI_STAR\x10\x14\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_0\x10\x15\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_1\x10\x16\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_2\x10\x17\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_3\x10\x18\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_4\x10\x19\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_5\x10\x1a\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_6\x10\x1b\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_7\x10\x1c\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_0\x10\x1d\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_1\x10\x1e\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_2\x10\x1f\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_3\x10 \x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_4\x10!\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_5\x10\"\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_6\x10#\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_7\x10$\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_0\x10%\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_1\x10&\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_3\x10\'\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_4\x10(\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_5\x10)\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_6\x10*\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_7\x10+\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_2\x10,2\xe0K\n\x07NiScope\x12=\n\x04Init\x12\x19.niscope_grpc.InitRequest\x1a\x1a.niscope_grpc.InitResponse\x12^\n\x0fInitWithOptions\x12$.niscope_grpc.InitWithOptionsRequest\x1a%.niscope_grpc.InitWithOptionsResponse\x12@\n\x05\x43lose\x12\x1a.niscope_grpc.CloseRequest\x1a\x1b.niscope_grpc.CloseResponse\x12L\n\tAutoSetup\x12\x1e.niscope_grpc.AutoSetupRequest\x1a\x1f.niscope_grpc.AutoSetupResponse\x12\x64\n\x11\x43onfigureVertical\x12&.niscope_grpc.ConfigureVerticalRequest\x1a\'.niscope_grpc.ConfigureVerticalResponse\x12\x85\x01\n\x1c\x43onfigureChanCharacteristics\x12\x31.niscope_grpc.ConfigureChanCharacteristicsRequest\x1a\x32.niscope_grpc.ConfigureChanCharacteristicsResponse\x12|\n\x19\x43onfigureHorizontalTiming\x12..niscope_grpc.ConfigureHorizontalTimingRequest\x1a/.niscope_grpc.ConfigureHorizontalTimingResponse\x12[\n\x0e\x43onfigureClock\x12#.niscope_grpc.ConfigureClockRequest\x1a$.niscope_grpc.ConfigureClockResponse\x12U\n\x0c\x45xportSignal\x12!.niscope_grpc.ExportSignalRequest\x1a\".niscope_grpc.ExportSignalResponse\x12\x8b\x01\n\x1e\x41\x64justSampleClockRelativeDelay\x12\x33.niscope_grpc.AdjustSampleClockRelativeDelayRequest\x1a\x34.niscope_grpc.AdjustSampleClockRelativeDelayResponse\x12m\n\x14\x43onfigureTriggerEdge\x12).niscope_grpc.ConfigureTriggerEdgeRequest\x1a*.niscope_grpc.ConfigureTriggerEdgeResponse\x12s\n\x16\x43onfigureTriggerGlitch\x12+.niscope_grpc.ConfigureTriggerGlitchRequest\x1a,.niscope_grpc.ConfigureTriggerGlitchResponse\x12\x7f\n\x1a\x43onfigureTriggerHysteresis\x12/.niscope_grpc.ConfigureTriggerHysteresisRequest\x1a\x30.niscope_grpc.ConfigureTriggerHysteresisResponse\x12s\n\x16\x43onfigureTriggerWindow\x12+.niscope_grpc.ConfigureTriggerWindowRequest\x1a,.niscope_grpc.ConfigureTriggerWindowResponse\x12y\n\x18\x43onfigureTriggerSoftware\x12-.niscope_grpc.ConfigureTriggerSoftwareRequest\x1a..niscope_grpc.ConfigureTriggerSoftwareResponse\x12v\n\x17SendSoftwareTriggerEdge\x12,.niscope_grpc.SendSoftwareTriggerEdgeRequest\x1a-.niscope_grpc.SendSoftwareTriggerEdgeResponse\x12|\n\x19\x43onfigureTriggerImmediate\x12..niscope_grpc.ConfigureTriggerImmediateRequest\x1a/.niscope_grpc.ConfigureTriggerImmediateResponse\x12m\n\x14\x43onfigureTriggerRunt\x12).niscope_grpc.ConfigureTriggerRuntRequest\x1a*.niscope_grpc.ConfigureTriggerRuntResponse\x12v\n\x17\x43onfigureTriggerDigital\x12,.niscope_grpc.ConfigureTriggerDigitalRequest\x1a-.niscope_grpc.ConfigureTriggerDigitalResponse\x12p\n\x15\x43onfigureTriggerVideo\x12*.niscope_grpc.ConfigureTriggerVideoRequest\x1a+.niscope_grpc.ConfigureTriggerVideoResponse\x12p\n\x15\x43onfigureTriggerWidth\x12*.niscope_grpc.ConfigureTriggerWidthRequest\x1a+.niscope_grpc.ConfigureTriggerWidthResponse\x12\xa6\x01\n\'ConfigureEqualizationFilterCoefficients\x12<.niscope_grpc.ConfigureEqualizationFilterCoefficientsRequest\x1a=.niscope_grpc.ConfigureEqualizationFilterCoefficientsResponse\x12\x94\x01\n!GetEqualizationFilterCoefficients\x12\x36.niscope_grpc.GetEqualizationFilterCoefficientsRequest\x1a\x37.niscope_grpc.GetEqualizationFilterCoefficientsResponse\x12m\n\x14GetFrequencyResponse\x12).niscope_grpc.GetFrequencyResponseRequest\x1a*.niscope_grpc.GetFrequencyResponseResponse\x12m\n\x14\x43onfigureAcquisition\x12).niscope_grpc.ConfigureAcquisitionRequest\x1a*.niscope_grpc.ConfigureAcquisitionResponse\x12j\n\x13InitiateAcquisition\x12(.niscope_grpc.InitiateAcquisitionRequest\x1a).niscope_grpc.InitiateAcquisitionResponse\x12@\n\x05\x41\x62ort\x12\x1a.niscope_grpc.AbortRequest\x1a\x1b.niscope_grpc.AbortResponse\x12\x43\n\x06\x43ommit\x12\x1b.niscope_grpc.CommitRequest\x1a\x1c.niscope_grpc.CommitResponse\x12=\n\x04Read\x12\x19.niscope_grpc.ReadRequest\x1a\x1a.niscope_grpc.ReadResponse\x12@\n\x05\x46\x65tch\x12\x1a.niscope_grpc.FetchRequest\x1a\x1b.niscope_grpc.FetchResponse\x12U\n\x0c\x46\x65tchBinary8\x12!.niscope_grpc.FetchBinary8Request\x1a\".niscope_grpc.FetchBinary8Response\x12X\n\rFetchBinary16\x12\".niscope_grpc.FetchBinary16Request\x1a#.niscope_grpc.FetchBinary16Response\x12X\n\rFetchBinary32\x12\".niscope_grpc.FetchBinary32Request\x1a#.niscope_grpc.FetchBinary32Response\x12U\n\x0c\x46\x65tchComplex\x12!.niscope_grpc.FetchComplexRequest\x1a\".niscope_grpc.FetchComplexResponse\x12m\n\x14\x46\x65tchComplexBinary16\x12).niscope_grpc.FetchComplexBinary16Request\x1a*.niscope_grpc.FetchComplexBinary16Response\x12\x64\n\x11\x41\x63quisitionStatus\x12&.niscope_grpc.AcquisitionStatusRequest\x1a\'.niscope_grpc.AcquisitionStatusResponse\x12X\n\rActualNumWfms\x12\".niscope_grpc.ActualNumWfmsRequest\x1a#.niscope_grpc.ActualNumWfmsResponse\x12\x64\n\x11\x41\x63tualMeasWfmSize\x12&.niscope_grpc.ActualMeasWfmSizeRequest\x1a\'.niscope_grpc.ActualMeasWfmSizeResponse\x12g\n\x12\x41\x63tualRecordLength\x12\'.niscope_grpc.ActualRecordLengthRequest\x1a(.niscope_grpc.ActualRecordLengthResponse\x12O\n\nSampleRate\x12\x1f.niscope_grpc.SampleRateRequest\x1a .niscope_grpc.SampleRateResponse\x12O\n\nSampleMode\x12\x1f.niscope_grpc.SampleModeRequest\x1a .niscope_grpc.SampleModeResponse\x12p\n\x15\x41\x64\x64WaveformProcessing\x12*.niscope_grpc.AddWaveformProcessingRequest\x1a+.niscope_grpc.AddWaveformProcessingResponse\x12v\n\x17\x43learWaveformProcessing\x12,.niscope_grpc.ClearWaveformProcessingRequest\x1a-.niscope_grpc.ClearWaveformProcessingResponse\x12\x88\x01\n\x1d\x43learWaveformMeasurementStats\x12\x32.niscope_grpc.ClearWaveformMeasurementStatsRequest\x1a\x33.niscope_grpc.ClearWaveformMeasurementStatsResponse\x12^\n\x0fReadMeasurement\x12$.niscope_grpc.ReadMeasurementRequest\x1a%.niscope_grpc.ReadMeasurementResponse\x12\x61\n\x10\x46\x65tchMeasurement\x12%.niscope_grpc.FetchMeasurementRequest\x1a&.niscope_grpc.FetchMeasurementResponse\x12p\n\x15\x46\x65tchMeasurementStats\x12*.niscope_grpc.FetchMeasurementStatsRequest\x1a+.niscope_grpc.FetchMeasurementStatsResponse\x12p\n\x15\x46\x65tchArrayMeasurement\x12*.niscope_grpc.FetchArrayMeasurementRequest\x1a+.niscope_grpc.FetchArrayMeasurementResponse\x12@\n\x05Reset\x12\x1a.niscope_grpc.ResetRequest\x1a\x1b.niscope_grpc.ResetResponse\x12I\n\x08SelfTest\x12\x1d.niscope_grpc.SelfTestRequest\x1a\x1e.niscope_grpc.SelfTestResponse\x12\x46\n\x07\x44isable\x12\x1c.niscope_grpc.DisableRequest\x1a\x1d.niscope_grpc.DisableResponse\x12R\n\x0bResetDevice\x12 .niscope_grpc.ResetDeviceRequest\x1a!.niscope_grpc.ResetDeviceResponse\x12\x61\n\x10\x43\x61lSelfCalibrate\x12%.niscope_grpc.CalSelfCalibrateRequest\x1a&.niscope_grpc.CalSelfCalibrateResponse\x12X\n\rRevisionQuery\x12\".niscope_grpc.RevisionQueryRequest\x1a#.niscope_grpc.RevisionQueryResponse\x12\x85\x01\n\x1cProbeCompensationSignalStart\x12\x31.niscope_grpc.ProbeCompensationSignalStartRequest\x1a\x32.niscope_grpc.ProbeCompensationSignalStartResponse\x12\x82\x01\n\x1bProbeCompensationSignalStop\x12\x30.niscope_grpc.ProbeCompensationSignalStopRequest\x1a\x31.niscope_grpc.ProbeCompensationSignalStopResponse\x12p\n\x15\x43\x61\x62leSenseSignalStart\x12*.niscope_grpc.CableSenseSignalStartRequest\x1a+.niscope_grpc.CableSenseSignalStartResponse\x12m\n\x14\x43\x61\x62leSenseSignalStop\x12).niscope_grpc.CableSenseSignalStopRequest\x1a*.niscope_grpc.CableSenseSignalStopResponse\x12[\n\x0eGetChannelName\x12#.niscope_grpc.GetChannelNameRequest\x1a$.niscope_grpc.GetChannelNameResponse\x12y\n\x18GetChannelNameFromString\x12-.niscope_grpc.GetChannelNameFromStringRequest\x1a..niscope_grpc.GetChannelNameFromStringResponse\x12U\n\x0c\x45rrorHandler\x12!.niscope_grpc.ErrorHandlerRequest\x1a\".niscope_grpc.ErrorHandlerResponse\x12I\n\x08GetError\x12\x1d.niscope_grpc.GetErrorRequest\x1a\x1e.niscope_grpc.GetErrorResponse\x12^\n\x0fGetErrorMessage\x12$.niscope_grpc.GetErrorMessageRequest\x1a%.niscope_grpc.GetErrorMessageResponse\x12j\n\x13GetAttributeViInt32\x12(.niscope_grpc.GetAttributeViInt32Request\x1a).niscope_grpc.GetAttributeViInt32Response\x12j\n\x13SetAttributeViInt32\x12(.niscope_grpc.SetAttributeViInt32Request\x1a).niscope_grpc.SetAttributeViInt32Response\x12p\n\x15\x43heckAttributeViInt32\x12*.niscope_grpc.CheckAttributeViInt32Request\x1a+.niscope_grpc.CheckAttributeViInt32Response\x12j\n\x13GetAttributeViInt64\x12(.niscope_grpc.GetAttributeViInt64Request\x1a).niscope_grpc.GetAttributeViInt64Response\x12j\n\x13SetAttributeViInt64\x12(.niscope_grpc.SetAttributeViInt64Request\x1a).niscope_grpc.SetAttributeViInt64Response\x12p\n\x15\x43heckAttributeViInt64\x12*.niscope_grpc.CheckAttributeViInt64Request\x1a+.niscope_grpc.CheckAttributeViInt64Response\x12m\n\x14GetAttributeViReal64\x12).niscope_grpc.GetAttributeViReal64Request\x1a*.niscope_grpc.GetAttributeViReal64Response\x12m\n\x14SetAttributeViReal64\x12).niscope_grpc.SetAttributeViReal64Request\x1a*.niscope_grpc.SetAttributeViReal64Response\x12s\n\x16\x43heckAttributeViReal64\x12+.niscope_grpc.CheckAttributeViReal64Request\x1a,.niscope_grpc.CheckAttributeViReal64Response\x12m\n\x14GetAttributeViString\x12).niscope_grpc.GetAttributeViStringRequest\x1a*.niscope_grpc.GetAttributeViStringResponse\x12m\n\x14SetAttributeViString\x12).niscope_grpc.SetAttributeViStringRequest\x1a*.niscope_grpc.SetAttributeViStringResponse\x12s\n\x16\x43heckAttributeViString\x12+.niscope_grpc.CheckAttributeViStringRequest\x1a,.niscope_grpc.CheckAttributeViStringResponse\x12p\n\x15GetAttributeViSession\x12*.niscope_grpc.GetAttributeViSessionRequest\x1a+.niscope_grpc.GetAttributeViSessionResponse\x12p\n\x15SetAttributeViSession\x12*.niscope_grpc.SetAttributeViSessionRequest\x1a+.niscope_grpc.SetAttributeViSessionResponse\x12v\n\x17\x43heckAttributeViSession\x12,.niscope_grpc.CheckAttributeViSessionRequest\x1a-.niscope_grpc.CheckAttributeViSessionResponse\x12p\n\x15GetAttributeViBoolean\x12*.niscope_grpc.GetAttributeViBooleanRequest\x1a+.niscope_grpc.GetAttributeViBooleanResponse\x12p\n\x15SetAttributeViBoolean\x12*.niscope_grpc.SetAttributeViBooleanRequest\x1a+.niscope_grpc.SetAttributeViBooleanResponse\x12v\n\x17\x43heckAttributeViBoolean\x12,.niscope_grpc.CheckAttributeViBooleanRequest\x1a-.niscope_grpc.CheckAttributeViBooleanResponse\x12\x97\x01\n\"ImportAttributeConfigurationBuffer\x12\x37.niscope_grpc.ImportAttributeConfigurationBufferRequest\x1a\x38.niscope_grpc.ImportAttributeConfigurationBufferResponse\x12\x97\x01\n\"ExportAttributeConfigurationBuffer\x12\x37.niscope_grpc.ExportAttributeConfigurationBufferRequest\x1a\x38.niscope_grpc.ExportAttributeConfigurationBufferResponse\x12\x91\x01\n ImportAttributeConfigurationFile\x12\x35.niscope_grpc.ImportAttributeConfigurationFileRequest\x1a\x36.niscope_grpc.ImportAttributeConfigurationFileResponse\x12\x91\x01\n ExportAttributeConfigurationFile\x12\x35.niscope_grpc.ExportAttributeConfigurationFileRequest\x1a\x36.niscope_grpc.ExportAttributeConfigurationFileResponse\x12s\n\x16GetScalingCoefficients\x12+.niscope_grpc.GetScalingCoefficientsRequest\x1a,.niscope_grpc.GetScalingCoefficientsResponse\x12\x85\x01\n\x1cGetNormalizationCoefficients\x12\x31.niscope_grpc.GetNormalizationCoefficientsRequest\x1a\x32.niscope_grpc.GetNormalizationCoefficientsResponse\x12v\n\x17GetStreamEndpointHandle\x12,.niscope_grpc.GetStreamEndpointHandleRequest\x1a-.niscope_grpc.GetStreamEndpointHandleResponse\x12U\n\x0c\x43\x61lFetchDate\x12!.niscope_grpc.CalFetchDateRequest\x1a\".niscope_grpc.CalFetchDateResponse\x12j\n\x13\x43\x61lFetchTemperature\x12(.niscope_grpc.CalFetchTemperatureRequest\x1a).niscope_grpc.CalFetchTemperatureResponseB?\n\x11\x63om.ni.grpc.scopeB\x07NiScopeP\x01\xaa\x02\x1eNationalInstruments.Grpc.Scopeb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'niscope_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.ni.grpc.scopeB\007NiScopeP\001\252\002\036NationalInstruments.Grpc.Scope' - _NISCOPEINT32ATTRIBUTEVALUES._options = None - _NISCOPEINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _NISCOPEREAL64ATTRIBUTEVALUES._options = None - _NISCOPEREAL64ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NISCOPEATTRIBUTE']._serialized_start=21063 - _globals['_NISCOPEATTRIBUTE']._serialized_end=31527 - _globals['_WHICHTRIGGER']._serialized_start=31530 - _globals['_WHICHTRIGGER']._serialized_end=31774 - _globals['_VERTICALCOUPLING']._serialized_start=31777 - _globals['_VERTICALCOUPLING']._serialized_end=31910 - _globals['_TRIGGERCOUPLING']._serialized_start=31913 - _globals['_TRIGGERCOUPLING']._serialized_end=32145 - _globals['_TRIGGERSLOPE']._serialized_start=32148 - _globals['_TRIGGERSLOPE']._serialized_end=32286 - _globals['_VIDEOPOLARITY']._serialized_start=32289 - _globals['_VIDEOPOLARITY']._serialized_end=32424 - _globals['_VIDEOTRIGGEREVENT']._serialized_start=32427 - _globals['_VIDEOTRIGGEREVENT']._serialized_end=32758 - _globals['_GLITCHCONDITION']._serialized_start=32761 - _globals['_GLITCHCONDITION']._serialized_end=32917 - _globals['_GLITCHPOLARITY']._serialized_start=32920 - _globals['_GLITCHPOLARITY']._serialized_end=33114 - _globals['_WIDTHCONDITION']._serialized_start=33117 - _globals['_WIDTHCONDITION']._serialized_end=33259 - _globals['_WIDTHPOLARITY']._serialized_start=33262 - _globals['_WIDTHPOLARITY']._serialized_end=33448 - _globals['_RUNTPOLARITY']._serialized_start=33451 - _globals['_RUNTPOLARITY']._serialized_end=33629 - _globals['_CLOCKINGTERMINALVALUES']._serialized_start=33632 - _globals['_CLOCKINGTERMINALVALUES']._serialized_end=34550 - _globals['_EXPORTABLESIGNALS']._serialized_start=34553 - _globals['_EXPORTABLESIGNALS']._serialized_end=35187 - _globals['_TRIGGERWINDOWMODE']._serialized_start=35190 - _globals['_TRIGGERWINDOWMODE']._serialized_end=35378 - _globals['_ACQUISITIONSTATUS']._serialized_start=35381 - _globals['_ACQUISITIONSTATUS']._serialized_end=35565 - _globals['_SCALARMEASUREMENT']._serialized_start=35568 - _globals['_SCALARMEASUREMENT']._serialized_end=37567 - _globals['_ARRAYMEASUREMENT']._serialized_start=37570 - _globals['_ARRAYMEASUREMENT']._serialized_end=39062 - _globals['_CALIBRATIONTYPES']._serialized_start=39065 - _globals['_CALIBRATIONTYPES']._serialized_end=39226 - _globals['_CLEARABLEMEASUREMENT']._serialized_start=39229 - _globals['_CLEARABLEMEASUREMENT']._serialized_end=43120 - _globals['_OPTION']._serialized_start=43122 - _globals['_OPTION']._serialized_end=43235 - _globals['_VIDEOSIGNALFORMAT']._serialized_start=43238 - _globals['_VIDEOSIGNALFORMAT']._serialized_end=44390 - _globals['_NISCOPEINT32ATTRIBUTEVALUES']._serialized_start=44393 - _globals['_NISCOPEINT32ATTRIBUTEVALUES']._serialized_end=51222 - _globals['_NISCOPEREAL64ATTRIBUTEVALUES']._serialized_start=51225 - _globals['_NISCOPEREAL64ATTRIBUTEVALUES']._serialized_end=51426 - _globals['_NISCOPEREAL64ATTRIBUTEVALUESMAPPED']._serialized_start=51429 - _globals['_NISCOPEREAL64ATTRIBUTEVALUESMAPPED']._serialized_end=52040 - _globals['_NISCOPESTRINGATTRIBUTEVALUESMAPPED']._serialized_start=52043 - _globals['_NISCOPESTRINGATTRIBUTEVALUESMAPPED']._serialized_end=54249 - _globals['_WAVEFORMINFO']._serialized_start=63 - _globals['_WAVEFORMINFO']._serialized_end=246 - _globals['_COEFFICIENTINFO']._serialized_start=248 - _globals['_COEFFICIENTINFO']._serialized_end=333 - _globals['_INITREQUEST']._serialized_start=336 - _globals['_INITREQUEST']._serialized_end=513 - _globals['_INITRESPONSE']._serialized_start=515 - _globals['_INITRESPONSE']._serialized_end=641 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=644 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=855 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=858 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=995 - _globals['_CLOSEREQUEST']._serialized_start=997 - _globals['_CLOSEREQUEST']._serialized_end=1047 - _globals['_CLOSERESPONSE']._serialized_start=1049 - _globals['_CLOSERESPONSE']._serialized_end=1080 - _globals['_AUTOSETUPREQUEST']._serialized_start=1082 - _globals['_AUTOSETUPREQUEST']._serialized_end=1136 - _globals['_AUTOSETUPRESPONSE']._serialized_start=1138 - _globals['_AUTOSETUPRESPONSE']._serialized_end=1173 - _globals['_CONFIGUREVERTICALREQUEST']._serialized_start=1176 - _globals['_CONFIGUREVERTICALREQUEST']._serialized_end=1428 - _globals['_CONFIGUREVERTICALRESPONSE']._serialized_start=1430 - _globals['_CONFIGUREVERTICALRESPONSE']._serialized_end=1473 - _globals['_CONFIGURECHANCHARACTERISTICSREQUEST']._serialized_start=1476 - _globals['_CONFIGURECHANCHARACTERISTICSREQUEST']._serialized_end=1625 - _globals['_CONFIGURECHANCHARACTERISTICSRESPONSE']._serialized_start=1627 - _globals['_CONFIGURECHANCHARACTERISTICSRESPONSE']._serialized_end=1681 - _globals['_CONFIGUREHORIZONTALTIMINGREQUEST']._serialized_start=1684 - _globals['_CONFIGUREHORIZONTALTIMINGREQUEST']._serialized_end=1869 - _globals['_CONFIGUREHORIZONTALTIMINGRESPONSE']._serialized_start=1871 - _globals['_CONFIGUREHORIZONTALTIMINGRESPONSE']._serialized_end=1922 - _globals['_CONFIGURECLOCKREQUEST']._serialized_start=1925 - _globals['_CONFIGURECLOCKREQUEST']._serialized_end=2434 - _globals['_CONFIGURECLOCKRESPONSE']._serialized_start=2436 - _globals['_CONFIGURECLOCKRESPONSE']._serialized_end=2476 - _globals['_EXPORTSIGNALREQUEST']._serialized_start=2479 - _globals['_EXPORTSIGNALREQUEST']._serialized_end=2778 - _globals['_EXPORTSIGNALRESPONSE']._serialized_start=2780 - _globals['_EXPORTSIGNALRESPONSE']._serialized_end=2818 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_start=2820 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_end=2910 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_start=2912 - _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_end=2968 - _globals['_CONFIGURETRIGGEREDGEREQUEST']._serialized_start=2971 - _globals['_CONFIGURETRIGGEREDGEREQUEST']._serialized_end=3303 - _globals['_CONFIGURETRIGGEREDGERESPONSE']._serialized_start=3305 - _globals['_CONFIGURETRIGGEREDGERESPONSE']._serialized_end=3351 - _globals['_CONFIGURETRIGGERGLITCHREQUEST']._serialized_start=3354 - _globals['_CONFIGURETRIGGERGLITCHREQUEST']._serialized_end=3830 - _globals['_CONFIGURETRIGGERGLITCHRESPONSE']._serialized_start=3832 - _globals['_CONFIGURETRIGGERGLITCHRESPONSE']._serialized_end=3880 - _globals['_CONFIGURETRIGGERHYSTERESISREQUEST']._serialized_start=3883 - _globals['_CONFIGURETRIGGERHYSTERESISREQUEST']._serialized_end=4241 - _globals['_CONFIGURETRIGGERHYSTERESISRESPONSE']._serialized_start=4243 - _globals['_CONFIGURETRIGGERHYSTERESISRESPONSE']._serialized_end=4295 - _globals['_CONFIGURETRIGGERWINDOWREQUEST']._serialized_start=4298 - _globals['_CONFIGURETRIGGERWINDOWREQUEST']._serialized_end=4679 - _globals['_CONFIGURETRIGGERWINDOWRESPONSE']._serialized_start=4681 - _globals['_CONFIGURETRIGGERWINDOWRESPONSE']._serialized_end=4729 - _globals['_CONFIGURETRIGGERSOFTWAREREQUEST']._serialized_start=4731 - _globals['_CONFIGURETRIGGERSOFTWAREREQUEST']._serialized_end=4832 - _globals['_CONFIGURETRIGGERSOFTWARERESPONSE']._serialized_start=4834 - _globals['_CONFIGURETRIGGERSOFTWARERESPONSE']._serialized_end=4884 - _globals['_SENDSOFTWARETRIGGEREDGEREQUEST']._serialized_start=4887 - _globals['_SENDSOFTWARETRIGGEREDGEREQUEST']._serialized_end=5059 - _globals['_SENDSOFTWARETRIGGEREDGERESPONSE']._serialized_start=5061 - _globals['_SENDSOFTWARETRIGGEREDGERESPONSE']._serialized_end=5110 - _globals['_CONFIGURETRIGGERIMMEDIATEREQUEST']._serialized_start=5112 - _globals['_CONFIGURETRIGGERIMMEDIATEREQUEST']._serialized_end=5182 - _globals['_CONFIGURETRIGGERIMMEDIATERESPONSE']._serialized_start=5184 - _globals['_CONFIGURETRIGGERIMMEDIATERESPONSE']._serialized_end=5235 - _globals['_CONFIGURETRIGGERRUNTREQUEST']._serialized_start=5238 - _globals['_CONFIGURETRIGGERRUNTREQUEST']._serialized_end=5611 - _globals['_CONFIGURETRIGGERRUNTRESPONSE']._serialized_start=5613 - _globals['_CONFIGURETRIGGERRUNTRESPONSE']._serialized_end=5659 - _globals['_CONFIGURETRIGGERDIGITALREQUEST']._serialized_start=5662 - _globals['_CONFIGURETRIGGERDIGITALREQUEST']._serialized_end=5866 - _globals['_CONFIGURETRIGGERDIGITALRESPONSE']._serialized_start=5868 - _globals['_CONFIGURETRIGGERDIGITALRESPONSE']._serialized_end=5917 - _globals['_CONFIGURETRIGGERVIDEOREQUEST']._serialized_start=5920 - _globals['_CONFIGURETRIGGERVIDEOREQUEST']._serialized_end=6490 - _globals['_CONFIGURETRIGGERVIDEORESPONSE']._serialized_start=6492 - _globals['_CONFIGURETRIGGERVIDEORESPONSE']._serialized_end=6539 - _globals['_CONFIGURETRIGGERWIDTHREQUEST']._serialized_start=6542 - _globals['_CONFIGURETRIGGERWIDTHREQUEST']._serialized_end=7026 - _globals['_CONFIGURETRIGGERWIDTHRESPONSE']._serialized_start=7028 - _globals['_CONFIGURETRIGGERWIDTHRESPONSE']._serialized_end=7075 - _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_start=7078 - _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_end=7206 - _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_start=7208 - _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_end=7273 - _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_start=7275 - _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_end=7402 - _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_start=7404 - _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_end=7485 - _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_start=7487 - _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_end=7590 - _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_start=7593 - _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_end=7727 - _globals['_CONFIGUREACQUISITIONREQUEST']._serialized_start=7729 - _globals['_CONFIGUREACQUISITIONREQUEST']._serialized_end=7820 - _globals['_CONFIGUREACQUISITIONRESPONSE']._serialized_start=7822 - _globals['_CONFIGUREACQUISITIONRESPONSE']._serialized_end=7868 - _globals['_INITIATEACQUISITIONREQUEST']._serialized_start=7870 - _globals['_INITIATEACQUISITIONREQUEST']._serialized_end=7934 - _globals['_INITIATEACQUISITIONRESPONSE']._serialized_start=7936 - _globals['_INITIATEACQUISITIONRESPONSE']._serialized_end=7981 - _globals['_ABORTREQUEST']._serialized_start=7983 - _globals['_ABORTREQUEST']._serialized_end=8033 - _globals['_ABORTRESPONSE']._serialized_start=8035 - _globals['_ABORTRESPONSE']._serialized_end=8066 - _globals['_COMMITREQUEST']._serialized_start=8068 - _globals['_COMMITREQUEST']._serialized_end=8119 - _globals['_COMMITRESPONSE']._serialized_start=8121 - _globals['_COMMITRESPONSE']._serialized_end=8153 - _globals['_READREQUEST']._serialized_start=8155 - _globals['_READREQUEST']._serialized_end=8264 - _globals['_READRESPONSE']._serialized_start=8266 - _globals['_READRESPONSE']._serialized_end=8360 - _globals['_FETCHREQUEST']._serialized_start=8362 - _globals['_FETCHREQUEST']._serialized_end=8472 - _globals['_FETCHRESPONSE']._serialized_start=8474 - _globals['_FETCHRESPONSE']._serialized_end=8569 - _globals['_FETCHBINARY8REQUEST']._serialized_start=8571 - _globals['_FETCHBINARY8REQUEST']._serialized_end=8688 - _globals['_FETCHBINARY8RESPONSE']._serialized_start=8690 - _globals['_FETCHBINARY8RESPONSE']._serialized_end=8792 - _globals['_FETCHBINARY16REQUEST']._serialized_start=8794 - _globals['_FETCHBINARY16REQUEST']._serialized_end=8912 - _globals['_FETCHBINARY16RESPONSE']._serialized_start=8914 - _globals['_FETCHBINARY16RESPONSE']._serialized_end=9017 - _globals['_FETCHBINARY32REQUEST']._serialized_start=9019 - _globals['_FETCHBINARY32REQUEST']._serialized_end=9137 - _globals['_FETCHBINARY32RESPONSE']._serialized_start=9139 - _globals['_FETCHBINARY32RESPONSE']._serialized_end=9242 - _globals['_FETCHCOMPLEXREQUEST']._serialized_start=9244 - _globals['_FETCHCOMPLEXREQUEST']._serialized_end=9361 - _globals['_FETCHCOMPLEXRESPONSE']._serialized_start=9364 - _globals['_FETCHCOMPLEXRESPONSE']._serialized_end=9493 - _globals['_FETCHCOMPLEXBINARY16REQUEST']._serialized_start=9495 - _globals['_FETCHCOMPLEXBINARY16REQUEST']._serialized_end=9620 - _globals['_FETCHCOMPLEXBINARY16RESPONSE']._serialized_start=9623 - _globals['_FETCHCOMPLEXBINARY16RESPONSE']._serialized_end=9757 - _globals['_ACQUISITIONSTATUSREQUEST']._serialized_start=9759 - _globals['_ACQUISITIONSTATUSREQUEST']._serialized_end=9821 - _globals['_ACQUISITIONSTATUSRESPONSE']._serialized_start=9824 - _globals['_ACQUISITIONSTATUSRESPONSE']._serialized_end=9960 - _globals['_ACTUALNUMWFMSREQUEST']._serialized_start=9962 - _globals['_ACTUALNUMWFMSREQUEST']._serialized_end=10042 - _globals['_ACTUALNUMWFMSRESPONSE']._serialized_start=10044 - _globals['_ACTUALNUMWFMSRESPONSE']._serialized_end=10101 - _globals['_ACTUALMEASWFMSIZEREQUEST']._serialized_start=10104 - _globals['_ACTUALMEASWFMSIZEREQUEST']._serialized_end=10292 - _globals['_ACTUALMEASWFMSIZERESPONSE']._serialized_start=10294 - _globals['_ACTUALMEASWFMSIZERESPONSE']._serialized_end=10365 - _globals['_ACTUALRECORDLENGTHREQUEST']._serialized_start=10367 - _globals['_ACTUALRECORDLENGTHREQUEST']._serialized_end=10430 - _globals['_ACTUALRECORDLENGTHRESPONSE']._serialized_start=10432 - _globals['_ACTUALRECORDLENGTHRESPONSE']._serialized_end=10499 - _globals['_SAMPLERATEREQUEST']._serialized_start=10501 - _globals['_SAMPLERATEREQUEST']._serialized_end=10556 - _globals['_SAMPLERATERESPONSE']._serialized_start=10558 - _globals['_SAMPLERATERESPONSE']._serialized_end=10615 - _globals['_SAMPLEMODEREQUEST']._serialized_start=10617 - _globals['_SAMPLEMODEREQUEST']._serialized_end=10672 - _globals['_SAMPLEMODERESPONSE']._serialized_start=10674 - _globals['_SAMPLEMODERESPONSE']._serialized_end=10731 - _globals['_ADDWAVEFORMPROCESSINGREQUEST']._serialized_start=10734 - _globals['_ADDWAVEFORMPROCESSINGREQUEST']._serialized_end=10930 - _globals['_ADDWAVEFORMPROCESSINGRESPONSE']._serialized_start=10932 - _globals['_ADDWAVEFORMPROCESSINGRESPONSE']._serialized_end=10979 - _globals['_CLEARWAVEFORMPROCESSINGREQUEST']._serialized_start=10981 - _globals['_CLEARWAVEFORMPROCESSINGREQUEST']._serialized_end=11071 - _globals['_CLEARWAVEFORMPROCESSINGRESPONSE']._serialized_start=11073 - _globals['_CLEARWAVEFORMPROCESSINGRESPONSE']._serialized_end=11122 - _globals['_CLEARWAVEFORMMEASUREMENTSTATSREQUEST']._serialized_start=11125 - _globals['_CLEARWAVEFORMMEASUREMENTSTATSREQUEST']._serialized_end=11384 - _globals['_CLEARWAVEFORMMEASUREMENTSTATSRESPONSE']._serialized_start=11386 - _globals['_CLEARWAVEFORMMEASUREMENTSTATSRESPONSE']._serialized_end=11441 - _globals['_READMEASUREMENTREQUEST']._serialized_start=11444 - _globals['_READMEASUREMENTREQUEST']._serialized_end=11673 - _globals['_READMEASUREMENTRESPONSE']._serialized_start=11675 - _globals['_READMEASUREMENTRESPONSE']._serialized_end=11732 - _globals['_FETCHMEASUREMENTREQUEST']._serialized_start=11735 - _globals['_FETCHMEASUREMENTREQUEST']._serialized_end=11965 - _globals['_FETCHMEASUREMENTRESPONSE']._serialized_start=11967 - _globals['_FETCHMEASUREMENTRESPONSE']._serialized_end=12025 - _globals['_FETCHMEASUREMENTSTATSREQUEST']._serialized_start=12028 - _globals['_FETCHMEASUREMENTSTATSREQUEST']._serialized_end=12263 - _globals['_FETCHMEASUREMENTSTATSRESPONSE']._serialized_start=12266 - _globals['_FETCHMEASUREMENTSTATSRESPONSE']._serialized_end=12406 - _globals['_FETCHARRAYMEASUREMENTREQUEST']._serialized_start=12409 - _globals['_FETCHARRAYMEASUREMENTREQUEST']._serialized_end=12686 - _globals['_FETCHARRAYMEASUREMENTRESPONSE']._serialized_start=12688 - _globals['_FETCHARRAYMEASUREMENTRESPONSE']._serialized_end=12799 - _globals['_RESETREQUEST']._serialized_start=12801 - _globals['_RESETREQUEST']._serialized_end=12851 - _globals['_RESETRESPONSE']._serialized_start=12853 - _globals['_RESETRESPONSE']._serialized_end=12884 - _globals['_SELFTESTREQUEST']._serialized_start=12886 - _globals['_SELFTESTREQUEST']._serialized_end=12939 - _globals['_SELFTESTRESPONSE']._serialized_start=12941 - _globals['_SELFTESTRESPONSE']._serialized_end=13028 - _globals['_DISABLEREQUEST']._serialized_start=13030 - _globals['_DISABLEREQUEST']._serialized_end=13082 - _globals['_DISABLERESPONSE']._serialized_start=13084 - _globals['_DISABLERESPONSE']._serialized_end=13117 - _globals['_RESETDEVICEREQUEST']._serialized_start=13119 - _globals['_RESETDEVICEREQUEST']._serialized_end=13175 - _globals['_RESETDEVICERESPONSE']._serialized_start=13177 - _globals['_RESETDEVICERESPONSE']._serialized_end=13214 - _globals['_CALSELFCALIBRATEREQUEST']._serialized_start=13217 - _globals['_CALSELFCALIBRATEREQUEST']._serialized_end=13377 - _globals['_CALSELFCALIBRATERESPONSE']._serialized_start=13379 - _globals['_CALSELFCALIBRATERESPONSE']._serialized_end=13421 - _globals['_REVISIONQUERYREQUEST']._serialized_start=13423 - _globals['_REVISIONQUERYREQUEST']._serialized_end=13481 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=13483 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=13574 - _globals['_PROBECOMPENSATIONSIGNALSTARTREQUEST']._serialized_start=13576 - _globals['_PROBECOMPENSATIONSIGNALSTARTREQUEST']._serialized_end=13649 - _globals['_PROBECOMPENSATIONSIGNALSTARTRESPONSE']._serialized_start=13651 - _globals['_PROBECOMPENSATIONSIGNALSTARTRESPONSE']._serialized_end=13705 - _globals['_PROBECOMPENSATIONSIGNALSTOPREQUEST']._serialized_start=13707 - _globals['_PROBECOMPENSATIONSIGNALSTOPREQUEST']._serialized_end=13779 - _globals['_PROBECOMPENSATIONSIGNALSTOPRESPONSE']._serialized_start=13781 - _globals['_PROBECOMPENSATIONSIGNALSTOPRESPONSE']._serialized_end=13834 - _globals['_CABLESENSESIGNALSTARTREQUEST']._serialized_start=13836 - _globals['_CABLESENSESIGNALSTARTREQUEST']._serialized_end=13902 - _globals['_CABLESENSESIGNALSTARTRESPONSE']._serialized_start=13904 - _globals['_CABLESENSESIGNALSTARTRESPONSE']._serialized_end=13951 - _globals['_CABLESENSESIGNALSTOPREQUEST']._serialized_start=13953 - _globals['_CABLESENSESIGNALSTOPREQUEST']._serialized_end=14018 - _globals['_CABLESENSESIGNALSTOPRESPONSE']._serialized_start=14020 - _globals['_CABLESENSESIGNALSTOPRESPONSE']._serialized_end=14066 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=14068 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=14142 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=14144 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=14208 - _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_start=14210 - _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_end=14294 - _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_start=14296 - _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_end=14360 - _globals['_ERRORHANDLERREQUEST']._serialized_start=14362 - _globals['_ERRORHANDLERREQUEST']._serialized_end=14461 - _globals['_ERRORHANDLERRESPONSE']._serialized_start=14463 - _globals['_ERRORHANDLERRESPONSE']._serialized_end=14528 - _globals['_GETERRORREQUEST']._serialized_start=14530 - _globals['_GETERRORREQUEST']._serialized_end=14583 - _globals['_GETERRORRESPONSE']._serialized_start=14585 - _globals['_GETERRORRESPONSE']._serialized_end=14660 - _globals['_GETERRORMESSAGEREQUEST']._serialized_start=14662 - _globals['_GETERRORMESSAGEREQUEST']._serialized_end=14742 - _globals['_GETERRORMESSAGERESPONSE']._serialized_start=14744 - _globals['_GETERRORMESSAGERESPONSE']._serialized_end=14808 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=14811 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=14951 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=14953 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=15013 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=15016 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=15251 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=15253 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=15298 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=15301 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=15538 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=15540 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=15587 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=15590 - _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=15730 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=15732 - _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=15792 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=15795 - _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=15954 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=15956 - _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=16001 - _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_start=16004 - _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_end=16165 - _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_start=16167 - _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_end=16214 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=16217 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=16358 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=16360 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=16421 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=16424 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=16735 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=16737 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=16783 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=16786 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=17099 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=17101 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=17149 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=17152 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=17293 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=17295 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=17356 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=17359 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=17609 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=17611 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=17657 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=17660 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=17912 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=17914 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=17962 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=17965 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=18107 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=18109 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=18195 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=18198 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=18379 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=18381 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=18428 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=18431 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=18614 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=18616 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=18665 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=18668 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=18810 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=18812 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=18874 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=18877 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19034 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19036 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19083 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19086 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19245 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19247 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19296 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19298 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19400 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19402 - _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19462 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19464 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19543 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19545 - _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19628 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19630 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19726 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19728 - _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19786 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19788 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19884 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19886 - _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19944 - _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_start=19946 - _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_end=20035 - _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_start=20038 - _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_end=20179 - _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_start=20181 - _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_end=20276 - _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_start=20279 - _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_end=20426 - _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_start=20428 - _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_end=20517 - _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_start=20519 - _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_end=20591 - _globals['_CALFETCHDATEREQUEST']._serialized_start=20594 - _globals['_CALFETCHDATEREQUEST']._serialized_end=20747 - _globals['_CALFETCHDATERESPONSE']._serialized_start=20749 - _globals['_CALFETCHDATERESPONSE']._serialized_end=20829 - _globals['_CALFETCHTEMPERATUREREQUEST']._serialized_start=20832 - _globals['_CALFETCHTEMPERATUREREQUEST']._serialized_end=20992 - _globals['_CALFETCHTEMPERATURERESPONSE']._serialized_start=20994 - _globals['_CALFETCHTEMPERATURERESPONSE']._serialized_end=21060 - _globals['_NISCOPE']._serialized_start=54252 - _globals['_NISCOPE']._serialized_end=63948 -# @@protoc_insertion_point(module_scope) diff --git a/generated/niscope/niscope/niscope_pb2_grpc.py b/generated/niscope/niscope/niscope_pb2_grpc.py deleted file mode 100644 index 0e201501be..0000000000 --- a/generated/niscope/niscope/niscope_pb2_grpc.py +++ /dev/null @@ -1,3003 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import niscope_pb2 as niscope__pb2 - - -class NiScopeStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Init = channel.unary_unary( - '/niscope_grpc.NiScope/Init', - request_serializer=niscope__pb2.InitRequest.SerializeToString, - response_deserializer=niscope__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/niscope_grpc.NiScope/InitWithOptions', - request_serializer=niscope__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=niscope__pb2.InitWithOptionsResponse.FromString, - ) - self.Close = channel.unary_unary( - '/niscope_grpc.NiScope/Close', - request_serializer=niscope__pb2.CloseRequest.SerializeToString, - response_deserializer=niscope__pb2.CloseResponse.FromString, - ) - self.AutoSetup = channel.unary_unary( - '/niscope_grpc.NiScope/AutoSetup', - request_serializer=niscope__pb2.AutoSetupRequest.SerializeToString, - response_deserializer=niscope__pb2.AutoSetupResponse.FromString, - ) - self.ConfigureVertical = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureVertical', - request_serializer=niscope__pb2.ConfigureVerticalRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureVerticalResponse.FromString, - ) - self.ConfigureChanCharacteristics = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureChanCharacteristics', - request_serializer=niscope__pb2.ConfigureChanCharacteristicsRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureChanCharacteristicsResponse.FromString, - ) - self.ConfigureHorizontalTiming = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureHorizontalTiming', - request_serializer=niscope__pb2.ConfigureHorizontalTimingRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureHorizontalTimingResponse.FromString, - ) - self.ConfigureClock = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureClock', - request_serializer=niscope__pb2.ConfigureClockRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureClockResponse.FromString, - ) - self.ExportSignal = channel.unary_unary( - '/niscope_grpc.NiScope/ExportSignal', - request_serializer=niscope__pb2.ExportSignalRequest.SerializeToString, - response_deserializer=niscope__pb2.ExportSignalResponse.FromString, - ) - self.AdjustSampleClockRelativeDelay = channel.unary_unary( - '/niscope_grpc.NiScope/AdjustSampleClockRelativeDelay', - request_serializer=niscope__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, - response_deserializer=niscope__pb2.AdjustSampleClockRelativeDelayResponse.FromString, - ) - self.ConfigureTriggerEdge = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerEdge', - request_serializer=niscope__pb2.ConfigureTriggerEdgeRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerEdgeResponse.FromString, - ) - self.ConfigureTriggerGlitch = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerGlitch', - request_serializer=niscope__pb2.ConfigureTriggerGlitchRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerGlitchResponse.FromString, - ) - self.ConfigureTriggerHysteresis = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerHysteresis', - request_serializer=niscope__pb2.ConfigureTriggerHysteresisRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerHysteresisResponse.FromString, - ) - self.ConfigureTriggerWindow = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerWindow', - request_serializer=niscope__pb2.ConfigureTriggerWindowRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerWindowResponse.FromString, - ) - self.ConfigureTriggerSoftware = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerSoftware', - request_serializer=niscope__pb2.ConfigureTriggerSoftwareRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerSoftwareResponse.FromString, - ) - self.SendSoftwareTriggerEdge = channel.unary_unary( - '/niscope_grpc.NiScope/SendSoftwareTriggerEdge', - request_serializer=niscope__pb2.SendSoftwareTriggerEdgeRequest.SerializeToString, - response_deserializer=niscope__pb2.SendSoftwareTriggerEdgeResponse.FromString, - ) - self.ConfigureTriggerImmediate = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerImmediate', - request_serializer=niscope__pb2.ConfigureTriggerImmediateRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerImmediateResponse.FromString, - ) - self.ConfigureTriggerRunt = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerRunt', - request_serializer=niscope__pb2.ConfigureTriggerRuntRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerRuntResponse.FromString, - ) - self.ConfigureTriggerDigital = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerDigital', - request_serializer=niscope__pb2.ConfigureTriggerDigitalRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerDigitalResponse.FromString, - ) - self.ConfigureTriggerVideo = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerVideo', - request_serializer=niscope__pb2.ConfigureTriggerVideoRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerVideoResponse.FromString, - ) - self.ConfigureTriggerWidth = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureTriggerWidth', - request_serializer=niscope__pb2.ConfigureTriggerWidthRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureTriggerWidthResponse.FromString, - ) - self.ConfigureEqualizationFilterCoefficients = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureEqualizationFilterCoefficients', - request_serializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsResponse.FromString, - ) - self.GetEqualizationFilterCoefficients = channel.unary_unary( - '/niscope_grpc.NiScope/GetEqualizationFilterCoefficients', - request_serializer=niscope__pb2.GetEqualizationFilterCoefficientsRequest.SerializeToString, - response_deserializer=niscope__pb2.GetEqualizationFilterCoefficientsResponse.FromString, - ) - self.GetFrequencyResponse = channel.unary_unary( - '/niscope_grpc.NiScope/GetFrequencyResponse', - request_serializer=niscope__pb2.GetFrequencyResponseRequest.SerializeToString, - response_deserializer=niscope__pb2.GetFrequencyResponseResponse.FromString, - ) - self.ConfigureAcquisition = channel.unary_unary( - '/niscope_grpc.NiScope/ConfigureAcquisition', - request_serializer=niscope__pb2.ConfigureAcquisitionRequest.SerializeToString, - response_deserializer=niscope__pb2.ConfigureAcquisitionResponse.FromString, - ) - self.InitiateAcquisition = channel.unary_unary( - '/niscope_grpc.NiScope/InitiateAcquisition', - request_serializer=niscope__pb2.InitiateAcquisitionRequest.SerializeToString, - response_deserializer=niscope__pb2.InitiateAcquisitionResponse.FromString, - ) - self.Abort = channel.unary_unary( - '/niscope_grpc.NiScope/Abort', - request_serializer=niscope__pb2.AbortRequest.SerializeToString, - response_deserializer=niscope__pb2.AbortResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/niscope_grpc.NiScope/Commit', - request_serializer=niscope__pb2.CommitRequest.SerializeToString, - response_deserializer=niscope__pb2.CommitResponse.FromString, - ) - self.Read = channel.unary_unary( - '/niscope_grpc.NiScope/Read', - request_serializer=niscope__pb2.ReadRequest.SerializeToString, - response_deserializer=niscope__pb2.ReadResponse.FromString, - ) - self.Fetch = channel.unary_unary( - '/niscope_grpc.NiScope/Fetch', - request_serializer=niscope__pb2.FetchRequest.SerializeToString, - response_deserializer=niscope__pb2.FetchResponse.FromString, - ) - self.FetchBinary8 = channel.unary_unary( - '/niscope_grpc.NiScope/FetchBinary8', - request_serializer=niscope__pb2.FetchBinary8Request.SerializeToString, - response_deserializer=niscope__pb2.FetchBinary8Response.FromString, - ) - self.FetchBinary16 = channel.unary_unary( - '/niscope_grpc.NiScope/FetchBinary16', - request_serializer=niscope__pb2.FetchBinary16Request.SerializeToString, - response_deserializer=niscope__pb2.FetchBinary16Response.FromString, - ) - self.FetchBinary32 = channel.unary_unary( - '/niscope_grpc.NiScope/FetchBinary32', - request_serializer=niscope__pb2.FetchBinary32Request.SerializeToString, - response_deserializer=niscope__pb2.FetchBinary32Response.FromString, - ) - self.FetchComplex = channel.unary_unary( - '/niscope_grpc.NiScope/FetchComplex', - request_serializer=niscope__pb2.FetchComplexRequest.SerializeToString, - response_deserializer=niscope__pb2.FetchComplexResponse.FromString, - ) - self.FetchComplexBinary16 = channel.unary_unary( - '/niscope_grpc.NiScope/FetchComplexBinary16', - request_serializer=niscope__pb2.FetchComplexBinary16Request.SerializeToString, - response_deserializer=niscope__pb2.FetchComplexBinary16Response.FromString, - ) - self.AcquisitionStatus = channel.unary_unary( - '/niscope_grpc.NiScope/AcquisitionStatus', - request_serializer=niscope__pb2.AcquisitionStatusRequest.SerializeToString, - response_deserializer=niscope__pb2.AcquisitionStatusResponse.FromString, - ) - self.ActualNumWfms = channel.unary_unary( - '/niscope_grpc.NiScope/ActualNumWfms', - request_serializer=niscope__pb2.ActualNumWfmsRequest.SerializeToString, - response_deserializer=niscope__pb2.ActualNumWfmsResponse.FromString, - ) - self.ActualMeasWfmSize = channel.unary_unary( - '/niscope_grpc.NiScope/ActualMeasWfmSize', - request_serializer=niscope__pb2.ActualMeasWfmSizeRequest.SerializeToString, - response_deserializer=niscope__pb2.ActualMeasWfmSizeResponse.FromString, - ) - self.ActualRecordLength = channel.unary_unary( - '/niscope_grpc.NiScope/ActualRecordLength', - request_serializer=niscope__pb2.ActualRecordLengthRequest.SerializeToString, - response_deserializer=niscope__pb2.ActualRecordLengthResponse.FromString, - ) - self.SampleRate = channel.unary_unary( - '/niscope_grpc.NiScope/SampleRate', - request_serializer=niscope__pb2.SampleRateRequest.SerializeToString, - response_deserializer=niscope__pb2.SampleRateResponse.FromString, - ) - self.SampleMode = channel.unary_unary( - '/niscope_grpc.NiScope/SampleMode', - request_serializer=niscope__pb2.SampleModeRequest.SerializeToString, - response_deserializer=niscope__pb2.SampleModeResponse.FromString, - ) - self.AddWaveformProcessing = channel.unary_unary( - '/niscope_grpc.NiScope/AddWaveformProcessing', - request_serializer=niscope__pb2.AddWaveformProcessingRequest.SerializeToString, - response_deserializer=niscope__pb2.AddWaveformProcessingResponse.FromString, - ) - self.ClearWaveformProcessing = channel.unary_unary( - '/niscope_grpc.NiScope/ClearWaveformProcessing', - request_serializer=niscope__pb2.ClearWaveformProcessingRequest.SerializeToString, - response_deserializer=niscope__pb2.ClearWaveformProcessingResponse.FromString, - ) - self.ClearWaveformMeasurementStats = channel.unary_unary( - '/niscope_grpc.NiScope/ClearWaveformMeasurementStats', - request_serializer=niscope__pb2.ClearWaveformMeasurementStatsRequest.SerializeToString, - response_deserializer=niscope__pb2.ClearWaveformMeasurementStatsResponse.FromString, - ) - self.ReadMeasurement = channel.unary_unary( - '/niscope_grpc.NiScope/ReadMeasurement', - request_serializer=niscope__pb2.ReadMeasurementRequest.SerializeToString, - response_deserializer=niscope__pb2.ReadMeasurementResponse.FromString, - ) - self.FetchMeasurement = channel.unary_unary( - '/niscope_grpc.NiScope/FetchMeasurement', - request_serializer=niscope__pb2.FetchMeasurementRequest.SerializeToString, - response_deserializer=niscope__pb2.FetchMeasurementResponse.FromString, - ) - self.FetchMeasurementStats = channel.unary_unary( - '/niscope_grpc.NiScope/FetchMeasurementStats', - request_serializer=niscope__pb2.FetchMeasurementStatsRequest.SerializeToString, - response_deserializer=niscope__pb2.FetchMeasurementStatsResponse.FromString, - ) - self.FetchArrayMeasurement = channel.unary_unary( - '/niscope_grpc.NiScope/FetchArrayMeasurement', - request_serializer=niscope__pb2.FetchArrayMeasurementRequest.SerializeToString, - response_deserializer=niscope__pb2.FetchArrayMeasurementResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/niscope_grpc.NiScope/Reset', - request_serializer=niscope__pb2.ResetRequest.SerializeToString, - response_deserializer=niscope__pb2.ResetResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/niscope_grpc.NiScope/SelfTest', - request_serializer=niscope__pb2.SelfTestRequest.SerializeToString, - response_deserializer=niscope__pb2.SelfTestResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/niscope_grpc.NiScope/Disable', - request_serializer=niscope__pb2.DisableRequest.SerializeToString, - response_deserializer=niscope__pb2.DisableResponse.FromString, - ) - self.ResetDevice = channel.unary_unary( - '/niscope_grpc.NiScope/ResetDevice', - request_serializer=niscope__pb2.ResetDeviceRequest.SerializeToString, - response_deserializer=niscope__pb2.ResetDeviceResponse.FromString, - ) - self.CalSelfCalibrate = channel.unary_unary( - '/niscope_grpc.NiScope/CalSelfCalibrate', - request_serializer=niscope__pb2.CalSelfCalibrateRequest.SerializeToString, - response_deserializer=niscope__pb2.CalSelfCalibrateResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/niscope_grpc.NiScope/RevisionQuery', - request_serializer=niscope__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=niscope__pb2.RevisionQueryResponse.FromString, - ) - self.ProbeCompensationSignalStart = channel.unary_unary( - '/niscope_grpc.NiScope/ProbeCompensationSignalStart', - request_serializer=niscope__pb2.ProbeCompensationSignalStartRequest.SerializeToString, - response_deserializer=niscope__pb2.ProbeCompensationSignalStartResponse.FromString, - ) - self.ProbeCompensationSignalStop = channel.unary_unary( - '/niscope_grpc.NiScope/ProbeCompensationSignalStop', - request_serializer=niscope__pb2.ProbeCompensationSignalStopRequest.SerializeToString, - response_deserializer=niscope__pb2.ProbeCompensationSignalStopResponse.FromString, - ) - self.CableSenseSignalStart = channel.unary_unary( - '/niscope_grpc.NiScope/CableSenseSignalStart', - request_serializer=niscope__pb2.CableSenseSignalStartRequest.SerializeToString, - response_deserializer=niscope__pb2.CableSenseSignalStartResponse.FromString, - ) - self.CableSenseSignalStop = channel.unary_unary( - '/niscope_grpc.NiScope/CableSenseSignalStop', - request_serializer=niscope__pb2.CableSenseSignalStopRequest.SerializeToString, - response_deserializer=niscope__pb2.CableSenseSignalStopResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/niscope_grpc.NiScope/GetChannelName', - request_serializer=niscope__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=niscope__pb2.GetChannelNameResponse.FromString, - ) - self.GetChannelNameFromString = channel.unary_unary( - '/niscope_grpc.NiScope/GetChannelNameFromString', - request_serializer=niscope__pb2.GetChannelNameFromStringRequest.SerializeToString, - response_deserializer=niscope__pb2.GetChannelNameFromStringResponse.FromString, - ) - self.ErrorHandler = channel.unary_unary( - '/niscope_grpc.NiScope/ErrorHandler', - request_serializer=niscope__pb2.ErrorHandlerRequest.SerializeToString, - response_deserializer=niscope__pb2.ErrorHandlerResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/niscope_grpc.NiScope/GetError', - request_serializer=niscope__pb2.GetErrorRequest.SerializeToString, - response_deserializer=niscope__pb2.GetErrorResponse.FromString, - ) - self.GetErrorMessage = channel.unary_unary( - '/niscope_grpc.NiScope/GetErrorMessage', - request_serializer=niscope__pb2.GetErrorMessageRequest.SerializeToString, - response_deserializer=niscope__pb2.GetErrorMessageResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/niscope_grpc.NiScope/GetAttributeViInt32', - request_serializer=niscope__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=niscope__pb2.GetAttributeViInt32Response.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/niscope_grpc.NiScope/SetAttributeViInt32', - request_serializer=niscope__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=niscope__pb2.SetAttributeViInt32Response.FromString, - ) - self.CheckAttributeViInt32 = channel.unary_unary( - '/niscope_grpc.NiScope/CheckAttributeViInt32', - request_serializer=niscope__pb2.CheckAttributeViInt32Request.SerializeToString, - response_deserializer=niscope__pb2.CheckAttributeViInt32Response.FromString, - ) - self.GetAttributeViInt64 = channel.unary_unary( - '/niscope_grpc.NiScope/GetAttributeViInt64', - request_serializer=niscope__pb2.GetAttributeViInt64Request.SerializeToString, - response_deserializer=niscope__pb2.GetAttributeViInt64Response.FromString, - ) - self.SetAttributeViInt64 = channel.unary_unary( - '/niscope_grpc.NiScope/SetAttributeViInt64', - request_serializer=niscope__pb2.SetAttributeViInt64Request.SerializeToString, - response_deserializer=niscope__pb2.SetAttributeViInt64Response.FromString, - ) - self.CheckAttributeViInt64 = channel.unary_unary( - '/niscope_grpc.NiScope/CheckAttributeViInt64', - request_serializer=niscope__pb2.CheckAttributeViInt64Request.SerializeToString, - response_deserializer=niscope__pb2.CheckAttributeViInt64Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/niscope_grpc.NiScope/GetAttributeViReal64', - request_serializer=niscope__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=niscope__pb2.GetAttributeViReal64Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/niscope_grpc.NiScope/SetAttributeViReal64', - request_serializer=niscope__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=niscope__pb2.SetAttributeViReal64Response.FromString, - ) - self.CheckAttributeViReal64 = channel.unary_unary( - '/niscope_grpc.NiScope/CheckAttributeViReal64', - request_serializer=niscope__pb2.CheckAttributeViReal64Request.SerializeToString, - response_deserializer=niscope__pb2.CheckAttributeViReal64Response.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/niscope_grpc.NiScope/GetAttributeViString', - request_serializer=niscope__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=niscope__pb2.GetAttributeViStringResponse.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/niscope_grpc.NiScope/SetAttributeViString', - request_serializer=niscope__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=niscope__pb2.SetAttributeViStringResponse.FromString, - ) - self.CheckAttributeViString = channel.unary_unary( - '/niscope_grpc.NiScope/CheckAttributeViString', - request_serializer=niscope__pb2.CheckAttributeViStringRequest.SerializeToString, - response_deserializer=niscope__pb2.CheckAttributeViStringResponse.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/niscope_grpc.NiScope/GetAttributeViSession', - request_serializer=niscope__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=niscope__pb2.GetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/niscope_grpc.NiScope/SetAttributeViSession', - request_serializer=niscope__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=niscope__pb2.SetAttributeViSessionResponse.FromString, - ) - self.CheckAttributeViSession = channel.unary_unary( - '/niscope_grpc.NiScope/CheckAttributeViSession', - request_serializer=niscope__pb2.CheckAttributeViSessionRequest.SerializeToString, - response_deserializer=niscope__pb2.CheckAttributeViSessionResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/niscope_grpc.NiScope/GetAttributeViBoolean', - request_serializer=niscope__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=niscope__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/niscope_grpc.NiScope/SetAttributeViBoolean', - request_serializer=niscope__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=niscope__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.CheckAttributeViBoolean = channel.unary_unary( - '/niscope_grpc.NiScope/CheckAttributeViBoolean', - request_serializer=niscope__pb2.CheckAttributeViBooleanRequest.SerializeToString, - response_deserializer=niscope__pb2.CheckAttributeViBooleanResponse.FromString, - ) - self.ImportAttributeConfigurationBuffer = channel.unary_unary( - '/niscope_grpc.NiScope/ImportAttributeConfigurationBuffer', - request_serializer=niscope__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=niscope__pb2.ImportAttributeConfigurationBufferResponse.FromString, - ) - self.ExportAttributeConfigurationBuffer = channel.unary_unary( - '/niscope_grpc.NiScope/ExportAttributeConfigurationBuffer', - request_serializer=niscope__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - response_deserializer=niscope__pb2.ExportAttributeConfigurationBufferResponse.FromString, - ) - self.ImportAttributeConfigurationFile = channel.unary_unary( - '/niscope_grpc.NiScope/ImportAttributeConfigurationFile', - request_serializer=niscope__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=niscope__pb2.ImportAttributeConfigurationFileResponse.FromString, - ) - self.ExportAttributeConfigurationFile = channel.unary_unary( - '/niscope_grpc.NiScope/ExportAttributeConfigurationFile', - request_serializer=niscope__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - response_deserializer=niscope__pb2.ExportAttributeConfigurationFileResponse.FromString, - ) - self.GetScalingCoefficients = channel.unary_unary( - '/niscope_grpc.NiScope/GetScalingCoefficients', - request_serializer=niscope__pb2.GetScalingCoefficientsRequest.SerializeToString, - response_deserializer=niscope__pb2.GetScalingCoefficientsResponse.FromString, - ) - self.GetNormalizationCoefficients = channel.unary_unary( - '/niscope_grpc.NiScope/GetNormalizationCoefficients', - request_serializer=niscope__pb2.GetNormalizationCoefficientsRequest.SerializeToString, - response_deserializer=niscope__pb2.GetNormalizationCoefficientsResponse.FromString, - ) - self.GetStreamEndpointHandle = channel.unary_unary( - '/niscope_grpc.NiScope/GetStreamEndpointHandle', - request_serializer=niscope__pb2.GetStreamEndpointHandleRequest.SerializeToString, - response_deserializer=niscope__pb2.GetStreamEndpointHandleResponse.FromString, - ) - self.CalFetchDate = channel.unary_unary( - '/niscope_grpc.NiScope/CalFetchDate', - request_serializer=niscope__pb2.CalFetchDateRequest.SerializeToString, - response_deserializer=niscope__pb2.CalFetchDateResponse.FromString, - ) - self.CalFetchTemperature = channel.unary_unary( - '/niscope_grpc.NiScope/CalFetchTemperature', - request_serializer=niscope__pb2.CalFetchTemperatureRequest.SerializeToString, - response_deserializer=niscope__pb2.CalFetchTemperatureResponse.FromString, - ) - - -class NiScopeServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AutoSetup(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureVertical(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureChanCharacteristics(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureHorizontalTiming(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureClock(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportSignal(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AdjustSampleClockRelativeDelay(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerEdge(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerGlitch(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerHysteresis(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerWindow(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerSoftware(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareTriggerEdge(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerImmediate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerRunt(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerDigital(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerVideo(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureTriggerWidth(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureEqualizationFilterCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetEqualizationFilterCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetFrequencyResponse(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureAcquisition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitiateAcquisition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Abort(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Read(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Fetch(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchBinary8(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchBinary16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchBinary32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchComplex(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchComplexBinary16(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AcquisitionStatus(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ActualNumWfms(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ActualMeasWfmSize(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ActualRecordLength(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SampleRate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SampleMode(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddWaveformProcessing(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearWaveformProcessing(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearWaveformMeasurementStats(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReadMeasurement(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchMeasurement(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchMeasurementStats(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FetchArrayMeasurement(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetDevice(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CalSelfCalibrate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ProbeCompensationSignalStart(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ProbeCompensationSignalStop(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CableSenseSignalStart(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CableSenseSignalStop(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelNameFromString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorHandler(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationBuffer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ImportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ExportAttributeConfigurationFile(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetScalingCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNormalizationCoefficients(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetStreamEndpointHandle(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CalFetchDate(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CalFetchTemperature(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiScopeServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=niscope__pb2.InitRequest.FromString, - response_serializer=niscope__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=niscope__pb2.InitWithOptionsRequest.FromString, - response_serializer=niscope__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=niscope__pb2.CloseRequest.FromString, - response_serializer=niscope__pb2.CloseResponse.SerializeToString, - ), - 'AutoSetup': grpc.unary_unary_rpc_method_handler( - servicer.AutoSetup, - request_deserializer=niscope__pb2.AutoSetupRequest.FromString, - response_serializer=niscope__pb2.AutoSetupResponse.SerializeToString, - ), - 'ConfigureVertical': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureVertical, - request_deserializer=niscope__pb2.ConfigureVerticalRequest.FromString, - response_serializer=niscope__pb2.ConfigureVerticalResponse.SerializeToString, - ), - 'ConfigureChanCharacteristics': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureChanCharacteristics, - request_deserializer=niscope__pb2.ConfigureChanCharacteristicsRequest.FromString, - response_serializer=niscope__pb2.ConfigureChanCharacteristicsResponse.SerializeToString, - ), - 'ConfigureHorizontalTiming': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureHorizontalTiming, - request_deserializer=niscope__pb2.ConfigureHorizontalTimingRequest.FromString, - response_serializer=niscope__pb2.ConfigureHorizontalTimingResponse.SerializeToString, - ), - 'ConfigureClock': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureClock, - request_deserializer=niscope__pb2.ConfigureClockRequest.FromString, - response_serializer=niscope__pb2.ConfigureClockResponse.SerializeToString, - ), - 'ExportSignal': grpc.unary_unary_rpc_method_handler( - servicer.ExportSignal, - request_deserializer=niscope__pb2.ExportSignalRequest.FromString, - response_serializer=niscope__pb2.ExportSignalResponse.SerializeToString, - ), - 'AdjustSampleClockRelativeDelay': grpc.unary_unary_rpc_method_handler( - servicer.AdjustSampleClockRelativeDelay, - request_deserializer=niscope__pb2.AdjustSampleClockRelativeDelayRequest.FromString, - response_serializer=niscope__pb2.AdjustSampleClockRelativeDelayResponse.SerializeToString, - ), - 'ConfigureTriggerEdge': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerEdge, - request_deserializer=niscope__pb2.ConfigureTriggerEdgeRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerEdgeResponse.SerializeToString, - ), - 'ConfigureTriggerGlitch': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerGlitch, - request_deserializer=niscope__pb2.ConfigureTriggerGlitchRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerGlitchResponse.SerializeToString, - ), - 'ConfigureTriggerHysteresis': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerHysteresis, - request_deserializer=niscope__pb2.ConfigureTriggerHysteresisRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerHysteresisResponse.SerializeToString, - ), - 'ConfigureTriggerWindow': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerWindow, - request_deserializer=niscope__pb2.ConfigureTriggerWindowRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerWindowResponse.SerializeToString, - ), - 'ConfigureTriggerSoftware': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerSoftware, - request_deserializer=niscope__pb2.ConfigureTriggerSoftwareRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerSoftwareResponse.SerializeToString, - ), - 'SendSoftwareTriggerEdge': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareTriggerEdge, - request_deserializer=niscope__pb2.SendSoftwareTriggerEdgeRequest.FromString, - response_serializer=niscope__pb2.SendSoftwareTriggerEdgeResponse.SerializeToString, - ), - 'ConfigureTriggerImmediate': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerImmediate, - request_deserializer=niscope__pb2.ConfigureTriggerImmediateRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerImmediateResponse.SerializeToString, - ), - 'ConfigureTriggerRunt': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerRunt, - request_deserializer=niscope__pb2.ConfigureTriggerRuntRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerRuntResponse.SerializeToString, - ), - 'ConfigureTriggerDigital': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerDigital, - request_deserializer=niscope__pb2.ConfigureTriggerDigitalRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerDigitalResponse.SerializeToString, - ), - 'ConfigureTriggerVideo': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerVideo, - request_deserializer=niscope__pb2.ConfigureTriggerVideoRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerVideoResponse.SerializeToString, - ), - 'ConfigureTriggerWidth': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureTriggerWidth, - request_deserializer=niscope__pb2.ConfigureTriggerWidthRequest.FromString, - response_serializer=niscope__pb2.ConfigureTriggerWidthResponse.SerializeToString, - ), - 'ConfigureEqualizationFilterCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureEqualizationFilterCoefficients, - request_deserializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsRequest.FromString, - response_serializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsResponse.SerializeToString, - ), - 'GetEqualizationFilterCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.GetEqualizationFilterCoefficients, - request_deserializer=niscope__pb2.GetEqualizationFilterCoefficientsRequest.FromString, - response_serializer=niscope__pb2.GetEqualizationFilterCoefficientsResponse.SerializeToString, - ), - 'GetFrequencyResponse': grpc.unary_unary_rpc_method_handler( - servicer.GetFrequencyResponse, - request_deserializer=niscope__pb2.GetFrequencyResponseRequest.FromString, - response_serializer=niscope__pb2.GetFrequencyResponseResponse.SerializeToString, - ), - 'ConfigureAcquisition': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureAcquisition, - request_deserializer=niscope__pb2.ConfigureAcquisitionRequest.FromString, - response_serializer=niscope__pb2.ConfigureAcquisitionResponse.SerializeToString, - ), - 'InitiateAcquisition': grpc.unary_unary_rpc_method_handler( - servicer.InitiateAcquisition, - request_deserializer=niscope__pb2.InitiateAcquisitionRequest.FromString, - response_serializer=niscope__pb2.InitiateAcquisitionResponse.SerializeToString, - ), - 'Abort': grpc.unary_unary_rpc_method_handler( - servicer.Abort, - request_deserializer=niscope__pb2.AbortRequest.FromString, - response_serializer=niscope__pb2.AbortResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=niscope__pb2.CommitRequest.FromString, - response_serializer=niscope__pb2.CommitResponse.SerializeToString, - ), - 'Read': grpc.unary_unary_rpc_method_handler( - servicer.Read, - request_deserializer=niscope__pb2.ReadRequest.FromString, - response_serializer=niscope__pb2.ReadResponse.SerializeToString, - ), - 'Fetch': grpc.unary_unary_rpc_method_handler( - servicer.Fetch, - request_deserializer=niscope__pb2.FetchRequest.FromString, - response_serializer=niscope__pb2.FetchResponse.SerializeToString, - ), - 'FetchBinary8': grpc.unary_unary_rpc_method_handler( - servicer.FetchBinary8, - request_deserializer=niscope__pb2.FetchBinary8Request.FromString, - response_serializer=niscope__pb2.FetchBinary8Response.SerializeToString, - ), - 'FetchBinary16': grpc.unary_unary_rpc_method_handler( - servicer.FetchBinary16, - request_deserializer=niscope__pb2.FetchBinary16Request.FromString, - response_serializer=niscope__pb2.FetchBinary16Response.SerializeToString, - ), - 'FetchBinary32': grpc.unary_unary_rpc_method_handler( - servicer.FetchBinary32, - request_deserializer=niscope__pb2.FetchBinary32Request.FromString, - response_serializer=niscope__pb2.FetchBinary32Response.SerializeToString, - ), - 'FetchComplex': grpc.unary_unary_rpc_method_handler( - servicer.FetchComplex, - request_deserializer=niscope__pb2.FetchComplexRequest.FromString, - response_serializer=niscope__pb2.FetchComplexResponse.SerializeToString, - ), - 'FetchComplexBinary16': grpc.unary_unary_rpc_method_handler( - servicer.FetchComplexBinary16, - request_deserializer=niscope__pb2.FetchComplexBinary16Request.FromString, - response_serializer=niscope__pb2.FetchComplexBinary16Response.SerializeToString, - ), - 'AcquisitionStatus': grpc.unary_unary_rpc_method_handler( - servicer.AcquisitionStatus, - request_deserializer=niscope__pb2.AcquisitionStatusRequest.FromString, - response_serializer=niscope__pb2.AcquisitionStatusResponse.SerializeToString, - ), - 'ActualNumWfms': grpc.unary_unary_rpc_method_handler( - servicer.ActualNumWfms, - request_deserializer=niscope__pb2.ActualNumWfmsRequest.FromString, - response_serializer=niscope__pb2.ActualNumWfmsResponse.SerializeToString, - ), - 'ActualMeasWfmSize': grpc.unary_unary_rpc_method_handler( - servicer.ActualMeasWfmSize, - request_deserializer=niscope__pb2.ActualMeasWfmSizeRequest.FromString, - response_serializer=niscope__pb2.ActualMeasWfmSizeResponse.SerializeToString, - ), - 'ActualRecordLength': grpc.unary_unary_rpc_method_handler( - servicer.ActualRecordLength, - request_deserializer=niscope__pb2.ActualRecordLengthRequest.FromString, - response_serializer=niscope__pb2.ActualRecordLengthResponse.SerializeToString, - ), - 'SampleRate': grpc.unary_unary_rpc_method_handler( - servicer.SampleRate, - request_deserializer=niscope__pb2.SampleRateRequest.FromString, - response_serializer=niscope__pb2.SampleRateResponse.SerializeToString, - ), - 'SampleMode': grpc.unary_unary_rpc_method_handler( - servicer.SampleMode, - request_deserializer=niscope__pb2.SampleModeRequest.FromString, - response_serializer=niscope__pb2.SampleModeResponse.SerializeToString, - ), - 'AddWaveformProcessing': grpc.unary_unary_rpc_method_handler( - servicer.AddWaveformProcessing, - request_deserializer=niscope__pb2.AddWaveformProcessingRequest.FromString, - response_serializer=niscope__pb2.AddWaveformProcessingResponse.SerializeToString, - ), - 'ClearWaveformProcessing': grpc.unary_unary_rpc_method_handler( - servicer.ClearWaveformProcessing, - request_deserializer=niscope__pb2.ClearWaveformProcessingRequest.FromString, - response_serializer=niscope__pb2.ClearWaveformProcessingResponse.SerializeToString, - ), - 'ClearWaveformMeasurementStats': grpc.unary_unary_rpc_method_handler( - servicer.ClearWaveformMeasurementStats, - request_deserializer=niscope__pb2.ClearWaveformMeasurementStatsRequest.FromString, - response_serializer=niscope__pb2.ClearWaveformMeasurementStatsResponse.SerializeToString, - ), - 'ReadMeasurement': grpc.unary_unary_rpc_method_handler( - servicer.ReadMeasurement, - request_deserializer=niscope__pb2.ReadMeasurementRequest.FromString, - response_serializer=niscope__pb2.ReadMeasurementResponse.SerializeToString, - ), - 'FetchMeasurement': grpc.unary_unary_rpc_method_handler( - servicer.FetchMeasurement, - request_deserializer=niscope__pb2.FetchMeasurementRequest.FromString, - response_serializer=niscope__pb2.FetchMeasurementResponse.SerializeToString, - ), - 'FetchMeasurementStats': grpc.unary_unary_rpc_method_handler( - servicer.FetchMeasurementStats, - request_deserializer=niscope__pb2.FetchMeasurementStatsRequest.FromString, - response_serializer=niscope__pb2.FetchMeasurementStatsResponse.SerializeToString, - ), - 'FetchArrayMeasurement': grpc.unary_unary_rpc_method_handler( - servicer.FetchArrayMeasurement, - request_deserializer=niscope__pb2.FetchArrayMeasurementRequest.FromString, - response_serializer=niscope__pb2.FetchArrayMeasurementResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=niscope__pb2.ResetRequest.FromString, - response_serializer=niscope__pb2.ResetResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=niscope__pb2.SelfTestRequest.FromString, - response_serializer=niscope__pb2.SelfTestResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=niscope__pb2.DisableRequest.FromString, - response_serializer=niscope__pb2.DisableResponse.SerializeToString, - ), - 'ResetDevice': grpc.unary_unary_rpc_method_handler( - servicer.ResetDevice, - request_deserializer=niscope__pb2.ResetDeviceRequest.FromString, - response_serializer=niscope__pb2.ResetDeviceResponse.SerializeToString, - ), - 'CalSelfCalibrate': grpc.unary_unary_rpc_method_handler( - servicer.CalSelfCalibrate, - request_deserializer=niscope__pb2.CalSelfCalibrateRequest.FromString, - response_serializer=niscope__pb2.CalSelfCalibrateResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=niscope__pb2.RevisionQueryRequest.FromString, - response_serializer=niscope__pb2.RevisionQueryResponse.SerializeToString, - ), - 'ProbeCompensationSignalStart': grpc.unary_unary_rpc_method_handler( - servicer.ProbeCompensationSignalStart, - request_deserializer=niscope__pb2.ProbeCompensationSignalStartRequest.FromString, - response_serializer=niscope__pb2.ProbeCompensationSignalStartResponse.SerializeToString, - ), - 'ProbeCompensationSignalStop': grpc.unary_unary_rpc_method_handler( - servicer.ProbeCompensationSignalStop, - request_deserializer=niscope__pb2.ProbeCompensationSignalStopRequest.FromString, - response_serializer=niscope__pb2.ProbeCompensationSignalStopResponse.SerializeToString, - ), - 'CableSenseSignalStart': grpc.unary_unary_rpc_method_handler( - servicer.CableSenseSignalStart, - request_deserializer=niscope__pb2.CableSenseSignalStartRequest.FromString, - response_serializer=niscope__pb2.CableSenseSignalStartResponse.SerializeToString, - ), - 'CableSenseSignalStop': grpc.unary_unary_rpc_method_handler( - servicer.CableSenseSignalStop, - request_deserializer=niscope__pb2.CableSenseSignalStopRequest.FromString, - response_serializer=niscope__pb2.CableSenseSignalStopResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=niscope__pb2.GetChannelNameRequest.FromString, - response_serializer=niscope__pb2.GetChannelNameResponse.SerializeToString, - ), - 'GetChannelNameFromString': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelNameFromString, - request_deserializer=niscope__pb2.GetChannelNameFromStringRequest.FromString, - response_serializer=niscope__pb2.GetChannelNameFromStringResponse.SerializeToString, - ), - 'ErrorHandler': grpc.unary_unary_rpc_method_handler( - servicer.ErrorHandler, - request_deserializer=niscope__pb2.ErrorHandlerRequest.FromString, - response_serializer=niscope__pb2.ErrorHandlerResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=niscope__pb2.GetErrorRequest.FromString, - response_serializer=niscope__pb2.GetErrorResponse.SerializeToString, - ), - 'GetErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.GetErrorMessage, - request_deserializer=niscope__pb2.GetErrorMessageRequest.FromString, - response_serializer=niscope__pb2.GetErrorMessageResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=niscope__pb2.GetAttributeViInt32Request.FromString, - response_serializer=niscope__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=niscope__pb2.SetAttributeViInt32Request.FromString, - response_serializer=niscope__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt32, - request_deserializer=niscope__pb2.CheckAttributeViInt32Request.FromString, - response_serializer=niscope__pb2.CheckAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt64, - request_deserializer=niscope__pb2.GetAttributeViInt64Request.FromString, - response_serializer=niscope__pb2.GetAttributeViInt64Response.SerializeToString, - ), - 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt64, - request_deserializer=niscope__pb2.SetAttributeViInt64Request.FromString, - response_serializer=niscope__pb2.SetAttributeViInt64Response.SerializeToString, - ), - 'CheckAttributeViInt64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt64, - request_deserializer=niscope__pb2.CheckAttributeViInt64Request.FromString, - response_serializer=niscope__pb2.CheckAttributeViInt64Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=niscope__pb2.GetAttributeViReal64Request.FromString, - response_serializer=niscope__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=niscope__pb2.SetAttributeViReal64Request.FromString, - response_serializer=niscope__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViReal64, - request_deserializer=niscope__pb2.CheckAttributeViReal64Request.FromString, - response_serializer=niscope__pb2.CheckAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=niscope__pb2.GetAttributeViStringRequest.FromString, - response_serializer=niscope__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=niscope__pb2.SetAttributeViStringRequest.FromString, - response_serializer=niscope__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViString, - request_deserializer=niscope__pb2.CheckAttributeViStringRequest.FromString, - response_serializer=niscope__pb2.CheckAttributeViStringResponse.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=niscope__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=niscope__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=niscope__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=niscope__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViSession, - request_deserializer=niscope__pb2.CheckAttributeViSessionRequest.FromString, - response_serializer=niscope__pb2.CheckAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=niscope__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=niscope__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=niscope__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=niscope__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViBoolean, - request_deserializer=niscope__pb2.CheckAttributeViBooleanRequest.FromString, - response_serializer=niscope__pb2.CheckAttributeViBooleanResponse.SerializeToString, - ), - 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationBuffer, - request_deserializer=niscope__pb2.ImportAttributeConfigurationBufferRequest.FromString, - response_serializer=niscope__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationBuffer, - request_deserializer=niscope__pb2.ExportAttributeConfigurationBufferRequest.FromString, - response_serializer=niscope__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, - ), - 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ImportAttributeConfigurationFile, - request_deserializer=niscope__pb2.ImportAttributeConfigurationFileRequest.FromString, - response_serializer=niscope__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, - ), - 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( - servicer.ExportAttributeConfigurationFile, - request_deserializer=niscope__pb2.ExportAttributeConfigurationFileRequest.FromString, - response_serializer=niscope__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, - ), - 'GetScalingCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.GetScalingCoefficients, - request_deserializer=niscope__pb2.GetScalingCoefficientsRequest.FromString, - response_serializer=niscope__pb2.GetScalingCoefficientsResponse.SerializeToString, - ), - 'GetNormalizationCoefficients': grpc.unary_unary_rpc_method_handler( - servicer.GetNormalizationCoefficients, - request_deserializer=niscope__pb2.GetNormalizationCoefficientsRequest.FromString, - response_serializer=niscope__pb2.GetNormalizationCoefficientsResponse.SerializeToString, - ), - 'GetStreamEndpointHandle': grpc.unary_unary_rpc_method_handler( - servicer.GetStreamEndpointHandle, - request_deserializer=niscope__pb2.GetStreamEndpointHandleRequest.FromString, - response_serializer=niscope__pb2.GetStreamEndpointHandleResponse.SerializeToString, - ), - 'CalFetchDate': grpc.unary_unary_rpc_method_handler( - servicer.CalFetchDate, - request_deserializer=niscope__pb2.CalFetchDateRequest.FromString, - response_serializer=niscope__pb2.CalFetchDateResponse.SerializeToString, - ), - 'CalFetchTemperature': grpc.unary_unary_rpc_method_handler( - servicer.CalFetchTemperature, - request_deserializer=niscope__pb2.CalFetchTemperatureRequest.FromString, - response_serializer=niscope__pb2.CalFetchTemperatureResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'niscope_grpc.NiScope', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiScope(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Init', - niscope__pb2.InitRequest.SerializeToString, - niscope__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/InitWithOptions', - niscope__pb2.InitWithOptionsRequest.SerializeToString, - niscope__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Close', - niscope__pb2.CloseRequest.SerializeToString, - niscope__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AutoSetup(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AutoSetup', - niscope__pb2.AutoSetupRequest.SerializeToString, - niscope__pb2.AutoSetupResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureVertical(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureVertical', - niscope__pb2.ConfigureVerticalRequest.SerializeToString, - niscope__pb2.ConfigureVerticalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureChanCharacteristics(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureChanCharacteristics', - niscope__pb2.ConfigureChanCharacteristicsRequest.SerializeToString, - niscope__pb2.ConfigureChanCharacteristicsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureHorizontalTiming(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureHorizontalTiming', - niscope__pb2.ConfigureHorizontalTimingRequest.SerializeToString, - niscope__pb2.ConfigureHorizontalTimingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureClock(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureClock', - niscope__pb2.ConfigureClockRequest.SerializeToString, - niscope__pb2.ConfigureClockResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ExportSignal', - niscope__pb2.ExportSignalRequest.SerializeToString, - niscope__pb2.ExportSignalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AdjustSampleClockRelativeDelay(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AdjustSampleClockRelativeDelay', - niscope__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, - niscope__pb2.AdjustSampleClockRelativeDelayResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerEdge(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerEdge', - niscope__pb2.ConfigureTriggerEdgeRequest.SerializeToString, - niscope__pb2.ConfigureTriggerEdgeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerGlitch(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerGlitch', - niscope__pb2.ConfigureTriggerGlitchRequest.SerializeToString, - niscope__pb2.ConfigureTriggerGlitchResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerHysteresis(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerHysteresis', - niscope__pb2.ConfigureTriggerHysteresisRequest.SerializeToString, - niscope__pb2.ConfigureTriggerHysteresisResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerWindow(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerWindow', - niscope__pb2.ConfigureTriggerWindowRequest.SerializeToString, - niscope__pb2.ConfigureTriggerWindowResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerSoftware(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerSoftware', - niscope__pb2.ConfigureTriggerSoftwareRequest.SerializeToString, - niscope__pb2.ConfigureTriggerSoftwareResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareTriggerEdge(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SendSoftwareTriggerEdge', - niscope__pb2.SendSoftwareTriggerEdgeRequest.SerializeToString, - niscope__pb2.SendSoftwareTriggerEdgeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerImmediate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerImmediate', - niscope__pb2.ConfigureTriggerImmediateRequest.SerializeToString, - niscope__pb2.ConfigureTriggerImmediateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerRunt(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerRunt', - niscope__pb2.ConfigureTriggerRuntRequest.SerializeToString, - niscope__pb2.ConfigureTriggerRuntResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerDigital(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerDigital', - niscope__pb2.ConfigureTriggerDigitalRequest.SerializeToString, - niscope__pb2.ConfigureTriggerDigitalResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerVideo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerVideo', - niscope__pb2.ConfigureTriggerVideoRequest.SerializeToString, - niscope__pb2.ConfigureTriggerVideoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureTriggerWidth(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerWidth', - niscope__pb2.ConfigureTriggerWidthRequest.SerializeToString, - niscope__pb2.ConfigureTriggerWidthResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureEqualizationFilterCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureEqualizationFilterCoefficients', - niscope__pb2.ConfigureEqualizationFilterCoefficientsRequest.SerializeToString, - niscope__pb2.ConfigureEqualizationFilterCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetEqualizationFilterCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetEqualizationFilterCoefficients', - niscope__pb2.GetEqualizationFilterCoefficientsRequest.SerializeToString, - niscope__pb2.GetEqualizationFilterCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetFrequencyResponse(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetFrequencyResponse', - niscope__pb2.GetFrequencyResponseRequest.SerializeToString, - niscope__pb2.GetFrequencyResponseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureAcquisition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureAcquisition', - niscope__pb2.ConfigureAcquisitionRequest.SerializeToString, - niscope__pb2.ConfigureAcquisitionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitiateAcquisition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/InitiateAcquisition', - niscope__pb2.InitiateAcquisitionRequest.SerializeToString, - niscope__pb2.InitiateAcquisitionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Abort(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Abort', - niscope__pb2.AbortRequest.SerializeToString, - niscope__pb2.AbortResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Commit', - niscope__pb2.CommitRequest.SerializeToString, - niscope__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Read(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Read', - niscope__pb2.ReadRequest.SerializeToString, - niscope__pb2.ReadResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Fetch(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Fetch', - niscope__pb2.FetchRequest.SerializeToString, - niscope__pb2.FetchResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchBinary8(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchBinary8', - niscope__pb2.FetchBinary8Request.SerializeToString, - niscope__pb2.FetchBinary8Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchBinary16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchBinary16', - niscope__pb2.FetchBinary16Request.SerializeToString, - niscope__pb2.FetchBinary16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchBinary32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchBinary32', - niscope__pb2.FetchBinary32Request.SerializeToString, - niscope__pb2.FetchBinary32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchComplex(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchComplex', - niscope__pb2.FetchComplexRequest.SerializeToString, - niscope__pb2.FetchComplexResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchComplexBinary16(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchComplexBinary16', - niscope__pb2.FetchComplexBinary16Request.SerializeToString, - niscope__pb2.FetchComplexBinary16Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AcquisitionStatus(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AcquisitionStatus', - niscope__pb2.AcquisitionStatusRequest.SerializeToString, - niscope__pb2.AcquisitionStatusResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ActualNumWfms(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ActualNumWfms', - niscope__pb2.ActualNumWfmsRequest.SerializeToString, - niscope__pb2.ActualNumWfmsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ActualMeasWfmSize(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ActualMeasWfmSize', - niscope__pb2.ActualMeasWfmSizeRequest.SerializeToString, - niscope__pb2.ActualMeasWfmSizeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ActualRecordLength(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ActualRecordLength', - niscope__pb2.ActualRecordLengthRequest.SerializeToString, - niscope__pb2.ActualRecordLengthResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SampleRate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SampleRate', - niscope__pb2.SampleRateRequest.SerializeToString, - niscope__pb2.SampleRateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SampleMode(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SampleMode', - niscope__pb2.SampleModeRequest.SerializeToString, - niscope__pb2.SampleModeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddWaveformProcessing(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AddWaveformProcessing', - niscope__pb2.AddWaveformProcessingRequest.SerializeToString, - niscope__pb2.AddWaveformProcessingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearWaveformProcessing(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ClearWaveformProcessing', - niscope__pb2.ClearWaveformProcessingRequest.SerializeToString, - niscope__pb2.ClearWaveformProcessingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearWaveformMeasurementStats(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ClearWaveformMeasurementStats', - niscope__pb2.ClearWaveformMeasurementStatsRequest.SerializeToString, - niscope__pb2.ClearWaveformMeasurementStatsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReadMeasurement(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ReadMeasurement', - niscope__pb2.ReadMeasurementRequest.SerializeToString, - niscope__pb2.ReadMeasurementResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchMeasurement(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchMeasurement', - niscope__pb2.FetchMeasurementRequest.SerializeToString, - niscope__pb2.FetchMeasurementResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchMeasurementStats(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchMeasurementStats', - niscope__pb2.FetchMeasurementStatsRequest.SerializeToString, - niscope__pb2.FetchMeasurementStatsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FetchArrayMeasurement(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchArrayMeasurement', - niscope__pb2.FetchArrayMeasurementRequest.SerializeToString, - niscope__pb2.FetchArrayMeasurementResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Reset', - niscope__pb2.ResetRequest.SerializeToString, - niscope__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SelfTest', - niscope__pb2.SelfTestRequest.SerializeToString, - niscope__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Disable', - niscope__pb2.DisableRequest.SerializeToString, - niscope__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetDevice(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ResetDevice', - niscope__pb2.ResetDeviceRequest.SerializeToString, - niscope__pb2.ResetDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CalSelfCalibrate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CalSelfCalibrate', - niscope__pb2.CalSelfCalibrateRequest.SerializeToString, - niscope__pb2.CalSelfCalibrateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/RevisionQuery', - niscope__pb2.RevisionQueryRequest.SerializeToString, - niscope__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ProbeCompensationSignalStart(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ProbeCompensationSignalStart', - niscope__pb2.ProbeCompensationSignalStartRequest.SerializeToString, - niscope__pb2.ProbeCompensationSignalStartResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ProbeCompensationSignalStop(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ProbeCompensationSignalStop', - niscope__pb2.ProbeCompensationSignalStopRequest.SerializeToString, - niscope__pb2.ProbeCompensationSignalStopResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CableSenseSignalStart(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CableSenseSignalStart', - niscope__pb2.CableSenseSignalStartRequest.SerializeToString, - niscope__pb2.CableSenseSignalStartResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CableSenseSignalStop(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CableSenseSignalStop', - niscope__pb2.CableSenseSignalStopRequest.SerializeToString, - niscope__pb2.CableSenseSignalStopResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetChannelName', - niscope__pb2.GetChannelNameRequest.SerializeToString, - niscope__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelNameFromString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetChannelNameFromString', - niscope__pb2.GetChannelNameFromStringRequest.SerializeToString, - niscope__pb2.GetChannelNameFromStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorHandler(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ErrorHandler', - niscope__pb2.ErrorHandlerRequest.SerializeToString, - niscope__pb2.ErrorHandlerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetError', - niscope__pb2.GetErrorRequest.SerializeToString, - niscope__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetErrorMessage', - niscope__pb2.GetErrorMessageRequest.SerializeToString, - niscope__pb2.GetErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViInt32', - niscope__pb2.GetAttributeViInt32Request.SerializeToString, - niscope__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViInt32', - niscope__pb2.SetAttributeViInt32Request.SerializeToString, - niscope__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViInt32', - niscope__pb2.CheckAttributeViInt32Request.SerializeToString, - niscope__pb2.CheckAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViInt64', - niscope__pb2.GetAttributeViInt64Request.SerializeToString, - niscope__pb2.GetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViInt64', - niscope__pb2.SetAttributeViInt64Request.SerializeToString, - niscope__pb2.SetAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViInt64', - niscope__pb2.CheckAttributeViInt64Request.SerializeToString, - niscope__pb2.CheckAttributeViInt64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViReal64', - niscope__pb2.GetAttributeViReal64Request.SerializeToString, - niscope__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViReal64', - niscope__pb2.SetAttributeViReal64Request.SerializeToString, - niscope__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViReal64', - niscope__pb2.CheckAttributeViReal64Request.SerializeToString, - niscope__pb2.CheckAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViString', - niscope__pb2.GetAttributeViStringRequest.SerializeToString, - niscope__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViString', - niscope__pb2.SetAttributeViStringRequest.SerializeToString, - niscope__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViString', - niscope__pb2.CheckAttributeViStringRequest.SerializeToString, - niscope__pb2.CheckAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViSession', - niscope__pb2.GetAttributeViSessionRequest.SerializeToString, - niscope__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViSession', - niscope__pb2.SetAttributeViSessionRequest.SerializeToString, - niscope__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViSession', - niscope__pb2.CheckAttributeViSessionRequest.SerializeToString, - niscope__pb2.CheckAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViBoolean', - niscope__pb2.GetAttributeViBooleanRequest.SerializeToString, - niscope__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViBoolean', - niscope__pb2.SetAttributeViBooleanRequest.SerializeToString, - niscope__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViBoolean', - niscope__pb2.CheckAttributeViBooleanRequest.SerializeToString, - niscope__pb2.CheckAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ImportAttributeConfigurationBuffer', - niscope__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, - niscope__pb2.ImportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationBuffer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ExportAttributeConfigurationBuffer', - niscope__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, - niscope__pb2.ExportAttributeConfigurationBufferResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ImportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ImportAttributeConfigurationFile', - niscope__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, - niscope__pb2.ImportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ExportAttributeConfigurationFile(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ExportAttributeConfigurationFile', - niscope__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, - niscope__pb2.ExportAttributeConfigurationFileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetScalingCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetScalingCoefficients', - niscope__pb2.GetScalingCoefficientsRequest.SerializeToString, - niscope__pb2.GetScalingCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNormalizationCoefficients(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetNormalizationCoefficients', - niscope__pb2.GetNormalizationCoefficientsRequest.SerializeToString, - niscope__pb2.GetNormalizationCoefficientsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetStreamEndpointHandle(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetStreamEndpointHandle', - niscope__pb2.GetStreamEndpointHandleRequest.SerializeToString, - niscope__pb2.GetStreamEndpointHandleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CalFetchDate(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CalFetchDate', - niscope__pb2.CalFetchDateRequest.SerializeToString, - niscope__pb2.CalFetchDateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CalFetchTemperature(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CalFetchTemperature', - niscope__pb2.CalFetchTemperatureRequest.SerializeToString, - niscope__pb2.CalFetchTemperatureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/niscope/niscope/session.py b/generated/niscope/niscope/session.py deleted file mode 100644 index 641be56f29..0000000000 --- a/generated/niscope/niscope/session.py +++ /dev/null @@ -1,5224 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import niscope._attributes as _attributes -import niscope._converters as _converters -import niscope._library_interpreter as _library_interpreter -import niscope.enums as enums -import niscope.errors as errors - -import niscope.waveform_info as waveform_info # noqa: F401 - -import niscope.measurement_stats as measurement_stats # noqa: F401 - -import hightime -import nitclk - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Acquisition(object): - def __init__(self, session): - self._session = session - self._session._initiate_acquisition() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-SCOPE sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - absolute_sample_clock_offset = _attributes.AttributeViReal64TimeDeltaSeconds(1150374) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Gets or sets the absolute time offset of the sample clock relative to - the reference clock in terms of seconds. - - Note: - Configures the sample clock relationship with respect to the reference - clock. This parameter is factored into NI-TClk adjustments and is - typically used to improve the repeatability of NI-TClk Synchronization. - When this parameter is read, the currently programmed value is returned. - The range of the absolute sample clock offset is [-.5 sample clock - periods, .5 sample clock periods]. The default absolute sample clock - offset is 0s. - ''' - acquisition_start_time = _attributes.AttributeViReal64TimeDeltaSeconds(1250109) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the length of time from the trigger event to the first point in the waveform record in seconds. If the value is positive, the first point in the waveform record occurs after the trigger event (same as specifying trigger_delay_time). If the value is negative, the first point in the waveform record occurs before the trigger event (same as specifying horz_record_ref_position). - ''' - acquisition_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AcquisitionType, 1250101) - '''Type: enums.AcquisitionType - - Specifies how the digitizer acquires data and fills the waveform record. - ''' - acq_arm_source = _attributes.AttributeViString(1150053) - '''Type: str - - Specifies the source the digitizer monitors for a start (acquisition arm) trigger. When the start trigger is received, the digitizer begins acquiring pretrigger samples. - Valid Values: - NISCOPE_VAL_IMMEDIATE ('VAL_IMMEDIATE') - Triggers immediately - NISCOPE_VAL_RTSI_0 ('VAL_RTSI_0') - RTSI 0 - NISCOPE_VAL_RTSI_1 ('VAL_RTSI_1') - RTSI 1 - NISCOPE_VAL_RTSI_2 ('VAL_RTSI_2') - RTSI 2 - NISCOPE_VAL_RTSI_3 ('VAL_RTSI_3') - RTSI 3 - NISCOPE_VAL_RTSI_4 ('VAL_RTSI_4') - RTSI 4 - NISCOPE_VAL_RTSI_5 ('VAL_RTSI_5') - RTSI 5 - NISCOPE_VAL_RTSI_6 ('VAL_RTSI_6') - RTSI 6 - NISCOPE_VAL_PFI_0 ('VAL_PFI_0') - PFI 0 - NISCOPE_VAL_PFI_1 ('VAL_PFI_1') - PFI 1 - NISCOPE_VAL_PFI_2 ('VAL_PFI_2') - PFI 2 - NISCOPE_VAL_PXI_STAR ('VAL_PXI_STAR') - PXI Star Trigger - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - advance_trigger_terminal_name = _attributes.AttributeViString(1150143) - '''Type: str - - Returns the fully qualified name for the Advance Trigger terminal. You can use this terminal as the source for another trigger. - ''' - adv_trig_src = _attributes.AttributeViString(1150094) - '''Type: str - - Specifies the source the digitizer monitors for an advance trigger. When the advance trigger is received, the digitizer begins acquiring pretrigger samples. - ''' - allow_more_records_than_memory = _attributes.AttributeViBoolean(1150068) - '''Type: bool - - Indicates whether more records can be configured with configure_horizontal_timing than fit in the onboard memory. If this property is set to True, it is necessary to fetch records while the acquisition is in progress. Eventually, some of the records will be overwritten. An error is returned from the fetch method if you attempt to fetch a record that has been overwritten. - ''' - arm_ref_trig_src = _attributes.AttributeViString(1150095) - '''Type: str - - Specifies the source the digitizer monitors for an arm reference trigger. When the arm reference trigger is received, the digitizer begins looking for a reference (stop) trigger from the user-configured trigger source. - ''' - backlog = _attributes.AttributeViReal64(1150084) - '''Type: float - - Returns the number of samples (points_done) that have been acquired but not fetched for the record specified by fetch_record_number. - ''' - bandpass_filter_enabled = _attributes.AttributeViBoolean(1150318) - '''Type: bool - - Enables the bandpass filter on the specificed channel. The default value is FALSE. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].bandpass_filter_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.bandpass_filter_enabled` - ''' - binary_sample_width = _attributes.AttributeViInt32(1150005) - '''Type: int - - Indicates the bit width of the binary data in the acquired waveform. Useful for determining which Binary Fetch method to use. Compare to resolution. - To configure the device to store samples with a lower resolution that the native, set this property to the desired binary width. - This can be useful for streaming at faster speeds at the cost of resolution. The least significant bits will be lost with this configuration. - Valid Values: 8, 16, 32 - ''' - cable_sense_mode = _attributes.AttributeEnum(_attributes.AttributeViReal64, enums.CableSenseMode, 1150138) - '''Type: enums.CableSenseMode - - Specifies whether and how the oscilloscope is configured to generate a CableSense signal on the specified channels when the CableSenseSignalStart method is called. - - Device-Specific Behavior: - PXIe-5160/5162 - - The value of this property must be identical across all channels whose input impedance is set to 50 ohms. - - If this property is set to a value other than CableSenseMode.DISABLED for any channel(s), the input impedance of all channels for which this property is set to CableSenseMode.DISABLED must be set to 1 M Ohm. - - +-----------------------+ - | **Supported Devices** | - +-----------------------+ - | PXIe-5110 | - +-----------------------+ - | PXIe-5111 | - +-----------------------+ - | PXIe-5113 | - +-----------------------+ - | PXIe-5160 | - +-----------------------+ - | PXIe-5162 | - +-----------------------+ - - Note: the input impedance of the channel(s) to convey the CableSense signal must be set to 50 ohms. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - cable_sense_signal_enable = _attributes.AttributeViBoolean(1150139) - '''Type: bool - - TBD - ''' - cable_sense_voltage = _attributes.AttributeViReal64(1150137) - '''Type: float - - Returns the voltage of the CableSense signal that is written to the EEPROM of the oscilloscope during factory calibration. - - +-----------------------+ - | **Supported Devices** | - +-----------------------+ - | PXIe-5110 | - +-----------------------+ - | PXIe-5111 | - +-----------------------+ - | PXIe-5113 | - +-----------------------+ - | PXIe-5160 | - +-----------------------+ - | PXIe-5162 | - +-----------------------+ - ''' - channel_count = _attributes.AttributeViInt32(1050203) - '''Type: int - - Indicates the number of channels that the specific instrument driver supports. - For channel-based properties, the IVI engine maintains a separate cache value for each channel. - ''' - channel_enabled = _attributes.AttributeViBoolean(1250005) - '''Type: bool - - Specifies whether the digitizer acquires a waveform for the channel. - Valid Values: - True (1) - Acquire data on this channel - False (0) - Don't acquire data on this channel - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].channel_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.channel_enabled` - ''' - channel_terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TerminalConfiguration, 1150107) - '''Type: enums.TerminalConfiguration - - Specifies the terminal configuration for the channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].channel_terminal_configuration` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.channel_terminal_configuration` - ''' - data_transfer_block_size = _attributes.AttributeViInt32(1150316) - '''Type: int - - Specifies the maximum number of samples to transfer at one time from the device to host memory. Increasing this number should result in better fetching performance because the driver does not need to restart the transfers as often. However, increasing this number may also increase the amount of page-locked memory required from the system. - ''' - data_transfer_maximum_bandwidth = _attributes.AttributeViReal64(1150321) - '''Type: float - - This property specifies the maximum bandwidth that the device is allowed to consume. - ''' - data_transfer_preferred_packet_size = _attributes.AttributeViInt32(1150322) - '''Type: int - - This property specifies the size of (read request|memory write) data payload. Due to alignment of the data buffers, the hardware may not always generate a packet of this size. - ''' - device_temperature = _attributes.AttributeViReal64(1150086) - '''Type: float - - Returns the temperature of the device in degrees Celsius from the onboard sensor. - - Tip: - This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].device_temperature` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.device_temperature` - ''' - enabled_channels = _attributes.AttributeViString(1150140) - '''Type: str - - Returns a comma-separated list of the channels enabled for the session in ascending order. - - If no channels are enabled, this property returns an empty string, "". - If all channels are enabled, this property enumerates all of the channels. - - Because this property returns channels in ascending order, but the order in which you specify channels for the input is important, the value of this property may not necessarily reflect the order in which NI-SCOPE performs certain actions. - - Refer to Channel String Syntax in the NI High-Speed Digitizers Help for more information on the effects of channel order in NI-SCOPE. - ''' - enable_dc_restore = _attributes.AttributeViBoolean(1150093) - '''Type: bool - - Restores the video-triggered data retrieved by the digitizer to the video signal's zero reference point. - Valid Values: - True - Enable DC restore - False - Disable DC restore - ''' - enable_time_interleaved_sampling = _attributes.AttributeViBoolean(1150128) - '''Type: bool - - Specifies whether the digitizer acquires the waveform using multiple ADCs for the channel enabling a higher maximum real-time sampling rate. - Valid Values: - True (1) - Use multiple interleaved ADCs on this channel - False (0) - Use only this channel's ADC to acquire data for this channel - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].enable_time_interleaved_sampling` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.enable_time_interleaved_sampling` - ''' - end_of_acquisition_event_output_terminal = _attributes.AttributeViString(1150101) - '''Type: str - - Specifies the destination for the End of Acquisition Event. When this event is asserted, the digitizer has completed sampling for all records. - Consult your device documentation for a specific list of valid destinations. - ''' - end_of_acquisition_event_terminal_name = _attributes.AttributeViString(1150141) - '''Type: str - - Returns the fully qualified name for the End of Acquisition Event terminal. You can use this terminal as the source for a trigger. - ''' - end_of_record_event_output_terminal = _attributes.AttributeViString(1150099) - '''Type: str - - Specifies the destination for the End of Record Event. When this event is asserted, the digitizer has completed sampling for the current record. - Consult your device documentation for a specific list of valid destinations. - ''' - end_of_record_event_terminal_name = _attributes.AttributeViString(1150142) - '''Type: str - - Returns the fully qualified name for the End of Record Event terminal. You can use this terminal as the source for a trigger. - ''' - end_of_record_to_advance_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150366) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - End of Record to Advance Trigger Holdoff is the length of time (in - seconds) that a device waits between the completion of one record and - the acquisition of pre-trigger samples for the next record. During this - time, the acquisition engine state delays the transition to the Wait for - Advance Trigger state, and will not store samples in onboard memory, - accept an Advance Trigger, or trigger on the input signal.. - **Supported Devices**: NI 5185/5186 - ''' - equalization_filter_enabled = _attributes.AttributeViBoolean(1150313) - '''Type: bool - - Enables the onboard signal processing FIR block. This block is connected directly to the input signal. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].equalization_filter_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.equalization_filter_enabled` - ''' - equalization_num_coefficients = _attributes.AttributeViInt32(1150312) - '''Type: int - - Returns the number of coefficients that the FIR filter can accept. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].equalization_num_coefficients` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.equalization_num_coefficients` - ''' - exported_advance_trigger_output_terminal = _attributes.AttributeViString(1150109) - '''Type: str - - Specifies the destination to export the advance trigger. When the advance trigger is received, the digitizer begins acquiring samples for the Nth record. - Consult your device documentation for a specific list of valid destinations. - ''' - exported_ref_trigger_output_terminal = _attributes.AttributeViString(1150098) - '''Type: str - - Specifies the destination export for the reference (stop) trigger. - Consult your device documentation for a specific list of valid destinations. - ''' - exported_start_trigger_output_terminal = _attributes.AttributeViString(1150097) - '''Type: str - - Specifies the destination to export the Start trigger. When the start trigger is received, the digitizer begins acquiring samples. - Consult your device documentation for a specific list of valid destinations. - ''' - _fetch_meas_num_samples = _attributes.AttributeViInt32(1150081) - '''Type: int - - Number of samples to fetch when performing a measurement. Use -1 to fetch the actual record length. - Default Value: -1 - ''' - _fetch_num_records = _attributes.AttributeViInt32(1150080) - '''Type: int - - Number of records to fetch. Use -1 to fetch all configured records. - Default Value: -1 - ''' - _fetch_offset = _attributes.AttributeViInt32(1150078) - '''Type: int - - Offset in samples to start fetching data within each record. The offset is applied relative to fetch_relative_to.The offset can be positive or negative. - Default Value: 0 - ''' - _fetch_record_number = _attributes.AttributeViInt32(1150079) - '''Type: int - - Zero-based index of the first record to fetch. Use NISCOPE_FETCH_NUM_RECORDS to set the number of records to fetch. - Default Value: 0. - ''' - _fetch_relative_to = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FetchRelativeTo, 1150077) - '''Type: enums.FetchRelativeTo - - Position to start fetching within one record. - Default Value: FetchRelativeTo.PRETRIGGER - ''' - flex_fir_antialias_filter_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FlexFIRAntialiasFilterType, 1150271) - '''Type: enums.FlexFIRAntialiasFilterType - - The NI 5922 flexible-resolution digitizer uses an onboard FIR lowpass antialias filter. - Use this property to select from several types of filters to achieve desired filtering characteristics. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].flex_fir_antialias_filter_type` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.flex_fir_antialias_filter_type` - ''' - fpga_bitfile_path = _attributes.AttributeViString(1150375) - '''Type: str - - Gets the absolute file path to the bitfile loaded on the FPGA. - - Note: Gets the absolute file path to the bitfile loaded on the FPGA. - ''' - glitch_condition = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.GlitchCondition, 1250403) - '''Type: enums.GlitchCondition - - Specifies whether the oscilloscope triggers on pulses of duration less than or greater than the value specified by the glitch_width property. - ''' - glitch_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.GlitchPolarity, 1250402) - '''Type: enums.GlitchPolarity - - Specifies the polarity of pulses that trigger the oscilloscope for glitch triggering. - ''' - glitch_width = _attributes.AttributeViReal64(1250401) - '''Type: float - - Specifies the glitch duration, in seconds. - - The oscilloscope triggers when it detects of pulse of duration either less than or greater than this value depending on the value of the glitch_condition property. - ''' - high_pass_filter_frequency = _attributes.AttributeViReal64(1150377) - '''Type: float - - Specifies the frequency for the highpass filter in Hz. The device uses - one of the valid values listed below. If an invalid value is specified, - no coercion occurs. The default value is 0. - **(PXIe-5164) Valid Values:** - 0 90 450 - **Related topics:** - `Digital Filtering `__ - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].high_pass_filter_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.high_pass_filter_frequency` - ''' - horz_enforce_realtime = _attributes.AttributeViBoolean(1150004) - '''Type: bool - - Indicates whether the digitizer enforces real-time measurements or allows equivalent-time measurements. - ''' - horz_min_num_pts = _attributes.AttributeViInt32(1250009) - '''Type: int - - Specifies the minimum number of points you require in the waveform record for each channel. NI-SCOPE uses the value you specify to configure the record length that the digitizer uses for waveform acquisition. horz_record_length returns the actual record length. - Valid Values: 1 - available onboard memory - ''' - horz_num_records = _attributes.AttributeViInt32(1150001) - '''Type: int - - Specifies the number of records to acquire. Can be used for multi-record acquisition and single-record acquisitions. Setting this to 1 indicates a single-record acquisition. - ''' - horz_record_length = _attributes.AttributeViInt32(1250008) - '''Type: int - - Returns the actual number of points the digitizer acquires for each channel. The value is equal to or greater than the minimum number of points you specify with horz_min_num_pts. - Allocate a ViReal64 array of this size or greater to pass as the WaveformArray parameter of the Read and Fetch methods. This property is only valid after a call to the one of the Configure Horizontal methods. - ''' - horz_record_ref_position = _attributes.AttributeViReal64(1250011) - '''Type: float - - Specifies the position of the Reference Event in the waveform record. When the digitizer detects a trigger, it waits the length of time the trigger_delay_time property specifies. The event that occurs when the delay time elapses is the Reference Event. The Reference Event is relative to the start of the record and is a percentage of the record length. For example, the value 50.0 corresponds to the center of the waveform record and 0.0 corresponds to the first element in the waveform record. - Valid Values: 0.0 - 100.0 - ''' - horz_sample_rate = _attributes.AttributeViReal64(1250010) - '''Type: float - - Returns the effective sample rate using the current configuration. The units are samples per second. This property is only valid after a call to the one of the Configure Horizontal methods. - Units: Hertz (Samples / Second) - ''' - horz_time_per_record = _attributes.AttributeViReal64TimeDeltaSeconds(1250007) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the length of time that corresponds to the record length. - Units: Seconds - ''' - input_clock_source = _attributes.AttributeViString(1150002) - '''Type: str - - Specifies the input source for the PLL reference clock (the 1 MHz to 20 MHz clock on the NI 5122, the 10 MHz clock for the NI 5112/5620/5621/5911) to which the digitizer will be phase-locked; for the NI 5102, this is the source of the board clock. - ''' - input_impedance = _attributes.AttributeViReal64(1250103) - '''Type: float - - Specifies the input impedance for the channel in Ohms. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].input_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.input_impedance` - ''' - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - A string that contains the firmware revision information for the instrument you are currently using. - - Tip: - This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.instrument_firmware_revision` - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - A string that contains the name of the instrument manufacturer. - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - A string that contains the model number of the current instrument. - ''' - interleaving_offset_correction_enabled = _attributes.AttributeViBoolean(1150376) - '''Type: bool - - Enables the interleaving offset correction on the specified channel. The - default value is TRUE. - **Related topics:** - `Timed Interleaved - Sampling `__ - - Note: If disabled, warranted specifications are not guaranteed. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].interleaving_offset_correction_enabled` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.interleaving_offset_correction_enabled` - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Indicates the resource descriptor the driver uses to identify the physical device. If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. - If you initialize the instrument driver with the resource descriptor, this property contains that value.You can pass a logical name to Init or __init__. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - is_probe_comp_on = _attributes.AttributeViBoolean(1150066) - '''Type: bool - - Tip: - This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].is_probe_comp_on` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.is_probe_comp_on` - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - A string containing the logical name you specified when opening the current IVI session. You can pass a logical name to Init or __init__. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - master_enable = _attributes.AttributeViBoolean(1150008) - '''Type: bool - - Specifies whether you want the device to be a master or a slave. The master typically originates the trigger signal and clock sync pulse. For a standalone device, set this property to False. - ''' - max_input_frequency = _attributes.AttributeViReal64(1250006) - '''Type: float - - Specifies the bandwidth of the channel. Express this value as the frequency at which the input circuitry attenuates the input signal by 3 dB. The units are hertz. - Defined Values: - NISCOPE_VAL_BANDWIDTH_FULL (-1.0) - NISCOPE_VAL_BANDWIDTH_DEVICE_DEFAULT (0.0) - NISCOPE_VAL_20MHZ_BANDWIDTH (20000000.0) - NISCOPE_VAL_100MHZ_BANDWIDTH (100000000.0) - NISCOPE_VAL_20MHZ_MAX_INPUT_FREQUENCY (20000000.0) - NISCOPE_VAL_100MHZ_MAX_INPUT_FREQUENCY (100000000.0) - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_input_frequency` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.max_input_frequency` - ''' - max_real_time_sampling_rate = _attributes.AttributeViReal64(1150073) - '''Type: float - - Returns the maximum real time sample rate in Hz. - ''' - max_ris_rate = _attributes.AttributeViReal64(1150074) - '''Type: float - - Returns the maximum sample rate in RIS mode in Hz. - ''' - meas_array_gain = _attributes.AttributeViReal64(1150043) - '''Type: float - - Every element of an array is multiplied by this scalar value during the Array Gain measurement. Refer to ArrayMeasurement.ARRAY_GAIN for more information. - Default: 1.0 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_array_gain` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_array_gain` - ''' - meas_array_offset = _attributes.AttributeViReal64(1150044) - '''Type: float - - Every element of an array is added to this scalar value during the Array Offset measurement. Refer to ArrayMeasurement.ARRAY_OFFSET for more information. - Default: 0.0 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_array_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_array_offset` - ''' - meas_chan_high_ref_level = _attributes.AttributeViReal64(1150040) - '''Type: float - - Stores the high reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as meas_high_ref if you use this property to set various channels to different values. - Default: 90% - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_chan_high_ref_level` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_chan_high_ref_level` - ''' - meas_chan_low_ref_level = _attributes.AttributeViReal64(1150038) - '''Type: float - - Stores the low reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as meas_low_ref if you use this property to set various channels to different values. - Default: 10% - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_chan_low_ref_level` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_chan_low_ref_level` - ''' - meas_chan_mid_ref_level = _attributes.AttributeViReal64(1150039) - '''Type: float - - Stores the mid reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as meas_mid_ref if you use this property to set various channels to different values. - Default: 50% - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_chan_mid_ref_level` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_chan_mid_ref_level` - ''' - meas_filter_center_freq = _attributes.AttributeViReal64(1150032) - '''Type: float - - The center frequency in hertz for filters of type bandpass and bandstop. The width of the filter is specified by meas_filter_width, where the cutoff frequencies are the center ± width. - Default: 1.0e6 Hz - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_center_freq` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_center_freq` - ''' - meas_filter_cutoff_freq = _attributes.AttributeViReal64(1150031) - '''Type: float - - Specifies the cutoff frequency in hertz for filters of type lowpass and highpass. The cutoff frequency definition varies depending on the filter. - Default: 1.0e6 Hz - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_cutoff_freq` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_cutoff_freq` - ''' - meas_filter_order = _attributes.AttributeViInt32(1150036) - '''Type: int - - Specifies the order of an IIR filter. All positive integers are valid. - Default: 2 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_order` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_order` - ''' - meas_filter_ripple = _attributes.AttributeViReal64(1150033) - '''Type: float - - Specifies the amount of ripple in the passband in units of decibels (positive values). Used only for Chebyshev filters. The more ripple allowed gives a sharper cutoff for a given filter order. - Default: 0.1 dB - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_ripple` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_ripple` - ''' - meas_filter_taps = _attributes.AttributeViInt32(1150037) - '''Type: int - - Defines the number of taps (coefficients) for an FIR filter. - Default: 25 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_taps` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_taps` - ''' - meas_filter_transient_waveform_percent = _attributes.AttributeViReal64(1150034) - '''Type: float - - The percentage (0 - 100%) of the IIR filtered waveform to eliminate from the beginning of the waveform. This allows eliminating the transient portion of the waveform that is undefined due to the assumptions necessary at the boundary condition. - Default: 20.0% - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_transient_waveform_percent` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_transient_waveform_percent` - ''' - meas_filter_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FilterType, 1150035) - '''Type: enums.FilterType - - Specifies the type of filter, for both IIR and FIR filters. The allowed values are the following: - · NISCOPE_VAL_MEAS_LOWPASS - · NISCOPE_VAL_MEAS_HIGHPASS - · NISCOPE_VAL_MEAS_BANDPASS - · NISCOPE_VAL_MEAS_BANDSTOP - Default: NISCOPE_VAL_MEAS_LOWPASS - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_type` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_type` - ''' - meas_filter_width = _attributes.AttributeViReal64(1150041) - '''Type: float - - Specifies the width of bandpass and bandstop type filters in hertz. The cutoff frequencies occur at meas_filter_center_freq ± one-half width. - Default: 1.0e3 Hz - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_filter_width` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_filter_width` - ''' - meas_fir_filter_window = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FIRFilterWindow, 1150042) - '''Type: enums.FIRFilterWindow - - Specifies the FIR window type. The possible choices are: - FIRFilterWindow.NONE - ArrayMeasurement.HANNING_WINDOW - ArrayMeasurement.HAMMING_WINDOW - ArrayMeasurement.TRIANGLE_WINDOW - ArrayMeasurement.FLAT_TOP_WINDOW - ArrayMeasurement.BLACKMAN_WINDOW - The symmetric windows are applied to the FIR filter coefficients to limit passband ripple in FIR filters. - Default: FIRFilterWindow.NONE - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_fir_filter_window` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_fir_filter_window` - ''' - meas_high_ref = _attributes.AttributeViReal64(1250607) - meas_hysteresis_percent = _attributes.AttributeViReal64(1150019) - '''Type: float - - Digital hysteresis that is used in several of the scalar waveform measurements. This property specifies the percentage of the full-scale vertical range for the hysteresis window size. - Default: 2% - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_hysteresis_percent` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_hysteresis_percent` - ''' - meas_interpolation_sampling_factor = _attributes.AttributeViReal64(1150030) - '''Type: float - - The new number of points for polynomial interpolation is the sampling factor times the input number of points. For example, if you acquire 1,000 points with the digitizer and set this property to 2.5, calling FetchWaveformMeasurementArray with the ArrayMeasurement.POLYNOMIAL_INTERPOLATION measurement resamples the waveform to 2,500 points. - Default: 2.0 - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_interpolation_sampling_factor` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_interpolation_sampling_factor` - ''' - meas_last_acq_histogram_size = _attributes.AttributeViInt32(1150020) - '''Type: int - - Specifies the size (that is, the number of bins) in the last acquisition histogram. This histogram is used to determine several scalar measurements, most importantly voltage low and voltage high. - Default: 256 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_last_acq_histogram_size` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_last_acq_histogram_size` - ''' - meas_low_ref = _attributes.AttributeViReal64(1250608) - meas_mid_ref = _attributes.AttributeViReal64(1250609) - meas_other_channel = _attributes.AttributeViStringRepeatedCapability(1150018) - '''Type: str or int - - Specifies the second channel for two-channel measurements, such as ArrayMeasurement.ADD_CHANNELS. If processing steps are registered with this channel, the processing is done before the waveform is used in a two-channel measurement. - Default: '0' - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_other_channel` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_other_channel` - ''' - meas_percentage_method = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PercentageMethod, 1150045) - '''Type: enums.PercentageMethod - - Specifies the method used to map percentage reference units to voltages for the reference. Possible values are: - NISCOPE_VAL_MEAS_LOW_HIGH - NISCOPE_VAL_MEAS_MIN_MAX - NISCOPE_VAL_MEAS_BASE_TOP - Default: NISCOPE_VAL_MEAS_BASE_TOP - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_percentage_method` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_percentage_method` - ''' - meas_polynomial_interpolation_order = _attributes.AttributeViInt32(1150029) - '''Type: int - - Specifies the polynomial order used for the polynomial interpolation measurement. For example, an order of 1 is linear interpolation whereas an order of 2 specifies parabolic interpolation. Any positive integer is valid. - Default: 1 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_polynomial_interpolation_order` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_polynomial_interpolation_order` - ''' - meas_ref_level_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RefLevelUnits, 1150016) - '''Type: enums.RefLevelUnits - - Specifies the units of the reference levels. - NISCOPE_VAL_MEAS_VOLTAGE--Specifies that the reference levels are given in units of volts - NISCOPE_VAL_MEAS_PERCENTAGE--Percentage units, where the measurements voltage low and voltage high represent 0% and 100%, respectively. - Default: NISCOPE_VAL_MEAS_PERCENTAGE - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_ref_level_units` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_ref_level_units` - ''' - meas_time_histogram_high_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150028) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the highest time value included in the multiple acquisition time histogram. The units are always seconds. - Default: 5.0e-4 seconds - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_time` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_high_time` - ''' - meas_time_histogram_high_volts = _attributes.AttributeViReal64(1150026) - '''Type: float - - Specifies the highest voltage value included in the multiple-acquisition time histogram. The units are always volts. - Default: 10.0 V - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_high_volts` - ''' - meas_time_histogram_low_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150027) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the lowest time value included in the multiple-acquisition time histogram. The units are always seconds. - Default: -5.0e-4 seconds - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_time` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_low_time` - ''' - meas_time_histogram_low_volts = _attributes.AttributeViReal64(1150025) - '''Type: float - - Specifies the lowest voltage value included in the multiple acquisition time histogram. The units are always volts. - Default: -10.0 V - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_low_volts` - ''' - meas_time_histogram_size = _attributes.AttributeViInt32(1150024) - '''Type: int - - Determines the multiple acquisition voltage histogram size. The size is set during the first call to a time histogram measurement after clearing the measurement history with clear_waveform_measurement_stats. - Default: 256 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_size` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_time_histogram_size` - ''' - meas_voltage_histogram_high_volts = _attributes.AttributeViReal64(1150023) - '''Type: float - - Specifies the highest voltage value included in the multiple acquisition voltage histogram. The units are always volts. - Default: 10.0 V - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_high_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_voltage_histogram_high_volts` - ''' - meas_voltage_histogram_low_volts = _attributes.AttributeViReal64(1150022) - '''Type: float - - Specifies the lowest voltage value included in the multiple-acquisition voltage histogram. The units are always volts. - Default: -10.0 V - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_low_volts` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_voltage_histogram_low_volts` - ''' - meas_voltage_histogram_size = _attributes.AttributeViInt32(1150021) - '''Type: int - - Determines the multiple acquisition voltage histogram size. The size is set the first time a voltage histogram measurement is called after clearing the measurement history with the method clear_waveform_measurement_stats. - Default: 256 - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_size` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.meas_voltage_histogram_size` - ''' - min_sample_rate = _attributes.AttributeViReal64(1150009) - '''Type: float - - Specify the sampling rate for the acquisition in Samples per second. - Valid Values: - The combination of sampling rate and min record length must allow the digitizer to sample at a valid sampling rate for the acquisition type specified in ConfigureAcquisition and not require more memory than the onboard memory module allows. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - onboard_memory_size = _attributes.AttributeViInt32(1150069) - '''Type: int - - Returns the total combined amount of onboard memory for all channels in bytes. - - Tip: - This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].onboard_memory_size` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.onboard_memory_size` - ''' - output_clock_source = _attributes.AttributeViString(1150003) - '''Type: str - - Specifies the output source for the 10 MHz clock to which another digitizer's sample clock can be phased-locked. - ''' - pll_lock_status = _attributes.AttributeViBoolean(1151303) - '''Type: bool - - If TRUE, the PLL has remained locked to the external reference clock since it was last checked. If FALSE, the PLL has become unlocked from the external reference clock since it was last checked. - - Tip: - This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].pll_lock_status` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.pll_lock_status` - ''' - points_done = _attributes.AttributeViReal64(1150082) - '''Type: float - - Actual number of samples acquired in the record specified by fetch_record_number from the fetch_relative_to and fetch_offset properties. - ''' - poll_interval = _attributes.AttributeViInt32(1150100) - '''Type: int - - Specifies the poll interval in milliseconds to use during RIS acquisitions to check whether the acquisition is complete. - ''' - probe_attenuation = _attributes.AttributeViReal64(1250004) - '''Type: float - - Specifies the probe attenuation for the input channel. For example, for a 10:1 probe, set this property to 10.0. - Valid Values: - Any positive real number. Typical values are 1, 10, and 100. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].probe_attenuation` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.probe_attenuation` - ''' - ready_for_advance_event_output_terminal = _attributes.AttributeViString(1150112) - '''Type: str - - Specifies the destination for the Ready for Advance Event. When this event is asserted, the digitizer is ready to receive an advance trigger. - Consult your device documentation for a specific list of valid destinations. - ''' - ready_for_advance_event_terminal_name = _attributes.AttributeViString(1150146) - '''Type: str - - Returns the fully qualified name for the Ready for Advance Event terminal. You can use this terminal as the source for a trigger. - ''' - ready_for_ref_event_output_terminal = _attributes.AttributeViString(1150111) - '''Type: str - - Specifies the destination for the Ready for Reference Event. When this event is asserted, the digitizer is ready to receive a reference trigger. - Consult your device documentation for a specific list of valid destinations. - ''' - ready_for_ref_event_terminal_name = _attributes.AttributeViString(1150147) - '''Type: str - - Returns the fully qualified name for the Ready for Reference Event terminal. You can use this terminal as the source for a trigger. - ''' - ready_for_start_event_output_terminal = _attributes.AttributeViString(1150110) - '''Type: str - - Specifies the destination for the Ready for Start Event. When this event is asserted, the digitizer is ready to receive a start trigger. - Consult your device documentation for a specific list of valid destinations. - ''' - ready_for_start_event_terminal_name = _attributes.AttributeViString(1150148) - '''Type: str - - Returns the fully qualified name for the Ready for Start Event terminal. You can use this terminal as the source for a trigger. - ''' - records_done = _attributes.AttributeViInt32(1150083) - '''Type: int - - Specifies the number of records that have been completely acquired. - ''' - record_arm_source = _attributes.AttributeViString(1150065) - '''Type: str - - Specifies the record arm source. - ''' - ref_clk_rate = _attributes.AttributeViReal64(1150090) - '''Type: float - - If input_clock_source is an external source, this property specifies the frequency of the input, or reference clock, to which the internal sample clock timebase is synchronized. The frequency is in hertz. - ''' - ref_trigger_detector_location = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RefTriggerDetectorLocation, 1150314) - '''Type: enums.RefTriggerDetectorLocation - - Indicates which analog compare circuitry to use on the device. - ''' - ref_trigger_minimum_quiet_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150315) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - The amount of time the trigger circuit must not detect a signal above the trigger level before the trigger is armed. This property is useful for triggering at the beginning and not in the middle of signal bursts. - ''' - ref_trigger_terminal_name = _attributes.AttributeViString(1150144) - '''Type: str - - Returns the fully qualified name for the Reference Trigger terminal. You can use this terminal as the source for another trigger. - ''' - ref_trig_tdc_enable = _attributes.AttributeViBoolean(1150096) - '''Type: bool - - This property controls whether the TDC is used to compute an accurate trigger. - ''' - resolution = _attributes.AttributeViInt32(1150102) - '''Type: int - - Indicates the bit width of valid data (as opposed to padding bits) in the acquired waveform. Compare to binary_sample_width. - ''' - ris_in_auto_setup_enable = _attributes.AttributeViBoolean(1150106) - '''Type: bool - - Indicates whether the digitizer should use RIS sample rates when searching for a frequency in autosetup. - Valid Values: - True (1) - Use RIS sample rates in autosetup - False (0) - Do not use RIS sample rates in autosetup - ''' - ris_method = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RISMethod, 1150071) - '''Type: enums.RISMethod - - Specifies the algorithm for random-interleaved sampling, which is used if the sample rate exceeds the value of max_real_time_sampling_rate. - ''' - ris_num_averages = _attributes.AttributeViInt32(1150070) - '''Type: int - - The number of averages for each bin in an RIS acquisition. The number of averages times the oversampling factor is the minimum number of real-time acquisitions necessary to reconstruct the RIS waveform. Averaging is useful in RIS because the trigger times are not evenly spaced, so adjacent points in the reconstructed waveform not be accurately spaced. By averaging, the errors in both time and voltage are smoothed. - ''' - runt_high_threshold = _attributes.AttributeViReal64(1250301) - '''Type: float - - Specifies the higher of two thresholds, in volts, that bound the vertical range to examine for runt pulses. - - The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the runt_polarity property for more information. - ''' - runt_low_threshold = _attributes.AttributeViReal64(1250302) - '''Type: float - - Specifies the lower of two thresholds, in volts, that bound the vertical range to examine for runt pulses. - - The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the runt_polarity property for more information. - ''' - runt_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RuntPolarity, 1250303) - '''Type: enums.RuntPolarity - - Specifies the polarity of pulses that trigger the oscilloscope for runt triggering. - - When set to RuntPolarity.POSITIVE, the oscilloscope triggers when the following conditions are met: - * The leading edge of a pulse crosses the runt_low_threshold in a positive direction; - * The trailing edge of the pulse crosses the runt_low_threshold in a negative direction; and - * No portion of the pulse crosses the runt_high_threshold. - - When set to RuntPolarity.NEGATIVE, the oscilloscope triggers when the following conditions are met: - * The leading edge of a pulse crosses the runt_high_threshold in a negative direction; - * The trailing edge of the pulse crosses the runt_high_threshold in a positive direction; and - * No portion of the pulse crosses the runt_low_threshold. - - When set to RuntPolarity.EITHER, the oscilloscope triggers in either case. - ''' - runt_time_condition = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RuntTimeCondition, 1150132) - '''Type: enums.RuntTimeCondition - - Specifies whether runt triggers are time qualified, and if so, how the oscilloscope triggers in relation to the duration range bounded by the runt_time_low_limit and runt_time_high_limit properties. - ''' - runt_time_high_limit = _attributes.AttributeViReal64(1150134) - '''Type: float - - Specifies, in seconds, the high runt threshold time. - - This property sets the upper bound on the duration of runt pulses that may trigger the oscilloscope. The runt_time_condition property determines how the oscilloscope triggers in relation to the runt time limits. - ''' - runt_time_low_limit = _attributes.AttributeViReal64(1150133) - '''Type: float - - Specifies, in seconds, the low runt threshold time. - - This property sets the lower bound on the duration of runt pulses that may trigger the oscilloscope. The runt_time_condition property determines how the oscilloscope triggers in relation to the runt time limits. - ''' - sample_mode = _attributes.AttributeViInt32(1250106) - '''Type: int - - Indicates the sample mode the digitizer is currently using. - ''' - samp_clk_timebase_div = _attributes.AttributeViInt32(1150089) - '''Type: int - - If samp_clk_timebase_src is an external source, specifies the ratio between the sample clock timebase rate and the actual sample rate, which can be slower. - ''' - sample_clock_timebase_multiplier = _attributes.AttributeViInt32(1150367) - '''Type: int - - If samp_clk_timebase_src is an external source, this property specifies the ratio between the samp_clk_timebase_rate and the actual sample rate, which can be higher. This property can be used in conjunction with samp_clk_timebase_div. - Some devices use multiple ADCs to sample the same channel at an effective sample rate that is greater than the specified clock rate. When providing an external sample clock use this property to indicate when you want a higher sample rate. Valid values for this property vary by device and current configuration. - - **Related topics:** - `Sample Clock `__ - ''' - samp_clk_timebase_rate = _attributes.AttributeViReal64(1150088) - '''Type: float - - If samp_clk_timebase_src is an external source, specifies the frequency in hertz of the external clock used as the timebase source. - ''' - samp_clk_timebase_src = _attributes.AttributeViString(1150087) - '''Type: str - - Specifies the source of the sample clock timebase, which is the timebase used to control waveform sampling. The actual sample rate may be the timebase itself or a divided version of the timebase, depending on the min_sample_rate (for internal sources) or the samp_clk_timebase_div (for external sources). - ''' - serial_number = _attributes.AttributeViString(1150104) - '''Type: str - - Returns the serial number of the device. - - Tip: - This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container instruments to specify a subset. - - Example: :py:attr:`my_session.instruments[ ... ].serial_number` - - To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.serial_number` - ''' - accessory_gain = _attributes.AttributeViReal64(1150279) - '''Type: float - - Returns the calibration gain for the current device configuration. - - **Related topics:** - `NI 5122/5124/5142 Calibration `__ - - Note: - This property is supported only by the NI PXI-5900 differential amplifier. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].accessory_gain` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.accessory_gain` - ''' - accessory_offset = _attributes.AttributeViReal64(1150280) - '''Type: float - - Returns the calibration offset for the current device configuration. - - **Related topics:** - `NI 5122/5124/5142 Calibration `__ - - Note: - This property is supported only by the NI PXI-5900 differential amplifier. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].accessory_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.accessory_offset` - ''' - simulate = _attributes.AttributeViBoolean(1050005) - '''Type: bool - - Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. - The default value is False. Use the __init__ method to override this value. - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - A string that contains a brief description of the specific driver - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - A string that contains additional version information about this instrument driver. - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - A string that contains the name of the vendor that supplies this driver. - ''' - start_to_ref_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150103) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Pass the length of time you want the digitizer to wait after it starts acquiring data until the digitizer enables the trigger system to detect a reference (stop) trigger. - Units: Seconds - Valid Values: 0.0 - 171.8 - ''' - start_trigger_terminal_name = _attributes.AttributeViString(1150145) - '''Type: str - - Returns the fully qualified name for the Start Trigger terminal. You can use this terminal as the source for another trigger. - ''' - supported_instrument_models = _attributes.AttributeViString(1050327) - '''Type: str - - A string that contains a comma-separated list of the instrument model numbers supported by this driver. - ''' - trigger_auto_triggered = _attributes.AttributeViBoolean(1150278) - '''Type: bool - - Specifies if the last acquisition was auto triggered. You can use the Auto Triggered property to find out if the last acquisition was triggered. - ''' - trigger_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerCoupling, 1250014) - '''Type: enums.TriggerCoupling - - Specifies how the digitizer couples the trigger source. This property affects instrument operation only when trigger_type is set to TriggerType.EDGE, TriggerType.HYSTERESIS, or TriggerType.WINDOW. - ''' - trigger_delay_time = _attributes.AttributeViReal64TimeDeltaSeconds(1250015) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the trigger delay time in seconds. The trigger delay time is the length of time the digitizer waits after it receives the trigger. The event that occurs when the trigger delay elapses is the Reference Event. - Valid Values: 0.0 - 171.8 - ''' - trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1250016) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the length of time (in seconds) the digitizer waits after detecting a trigger before enabling the trigger subsystem to detect another trigger. This property affects instrument operation only when the digitizer requires multiple acquisitions to build a complete waveform. The digitizer requires multiple waveform acquisitions when it uses equivalent-time sampling or when the digitizer is configured for a multi-record acquisition through a call to configure_horizontal_timing. - Valid Values: 0.0 - 171.8 - ''' - trigger_hysteresis = _attributes.AttributeViReal64(1150006) - '''Type: float - - Specifies the size of the hysteresis window on either side of the trigger level. The digitizer triggers when the trigger signal passes through the threshold you specify with the Trigger Level parameter, has the slope you specify with the Trigger Slope parameter, and passes through the hysteresis window that you specify with this parameter. - ''' - trigger_impedance = _attributes.AttributeViReal64(1150075) - '''Type: float - - Specifies the input impedance for the external analog trigger channel in Ohms. - Valid Values: - 50 - 50 ohms - 1000000 - 1 mega ohm - ''' - trigger_level = _attributes.AttributeViReal64(1250017) - '''Type: float - - Specifies the voltage threshold for the trigger subsystem. The units are volts. This property affects instrument behavior only when the trigger_type is set to TriggerType.EDGE, TriggerType.HYSTERESIS, or TriggerType.WINDOW. - Valid Values: - The values of the range and offset parameters in configure_vertical determine the valid range for the trigger level on the channel you use as the Trigger Source. The value you pass for this parameter must meet the following conditions: - ''' - trigger_modifier = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerModifier, 1250102) - '''Type: enums.TriggerModifier - - Configures the device to automatically complete an acquisition if a trigger has not been received. - Valid Values: - None (1) - Normal triggering - Auto Trigger (2) - Auto trigger acquisition if no trigger arrives - ''' - trigger_slope = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerSlope, 1250018) - '''Type: enums.TriggerSlope - - Specifies if a rising or a falling edge triggers the digitizer. This property affects instrument operation only when trigger_type is set to TriggerType.EDGE, TriggerType.HYSTERESIS, or TriggerType.WINDOW. - ''' - trigger_source = _attributes.AttributeViString(1250013) - '''Type: str - - Specifies the source the digitizer monitors for the trigger event. - ''' - trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1250012) - '''Type: enums.TriggerType - - Specifies the type of trigger to use. - ''' - trigger_window_high_level = _attributes.AttributeViReal64(1150014) - '''Type: float - - Pass the upper voltage threshold you want the digitizer to use for window triggering. - The digitizer triggers when the trigger signal enters or leaves the window you specify with trigger_window_low_level and trigger_window_high_level - Valid Values: - The values of the Vertical Range and Vertical Offset parameters in configure_vertical determine the valid range for the High Window Level on the channel you use as the Trigger Source parameter in ConfigureTriggerSource. The value you pass for this parameter must meet the following conditions. - High Trigger Level <= Vertical Range/2 + Vertical Offset - High Trigger Level >= (-Vertical Range/2) + Vertical Offset - High Trigger Level > Low Trigger Level - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - trigger_window_low_level = _attributes.AttributeViReal64(1150013) - '''Type: float - - Pass the lower voltage threshold you want the digitizer to use for window triggering. - The digitizer triggers when the trigger signal enters or leaves the window you specify with trigger_window_low_level and trigger_window_high_level. - Units: Volts - Valid Values: - The values of the Vertical Range and Vertical Offset parameters in configure_vertical determine the valid range for the Low Window Level on the channel you use as the Trigger Source parameter in ConfigureTriggerSource. The value you pass for this parameter must meet the following conditions. - Low Trigger Level <= Vertical Range/2 + Vertical Offset - Low Trigger Level >= (-Vertical Range/2) + Vertical Offset - Low Trigger Level < High Trigger Level - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - trigger_window_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerWindowMode, 1150012) - '''Type: enums.TriggerWindowMode - - Specifies whether you want a trigger to occur when the signal enters or leaves the window specified by trigger_window_low_level, or trigger_window_high_level. - ''' - tv_trigger_event = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VideoTriggerEvent, 1250205) - '''Type: enums.VideoTriggerEvent - - Specifies the condition in the video signal that causes the digitizer to trigger. - ''' - tv_trigger_line_number = _attributes.AttributeViInt32(1250206) - '''Type: int - - Specifies the line on which to trigger, if tv_trigger_event is set to line number. The valid ranges of the property depend on the signal format selected. M-NTSC has a valid range of 1 to 525. B/G-PAL, SECAM, 576i, and 576p have a valid range of 1 to 625. 720p has a valid range of 1 to 750. 1080i and 1080p have a valid range of 1125. - ''' - tv_trigger_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VideoPolarity, 1250204) - '''Type: enums.VideoPolarity - - Specifies whether the video signal sync is positive or negative. - ''' - tv_trigger_signal_format = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VideoSignalFormat, 1250201) - '''Type: enums.VideoSignalFormat - - Specifies the type of video signal, such as NTSC, PAL, or SECAM. - ''' - use_spec_initial_x = _attributes.AttributeViBoolean(1150067) - vertical_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VerticalCoupling, 1250003) - '''Type: enums.VerticalCoupling - - Specifies how the digitizer couples the input signal for the channel. When input coupling changes, the input stage takes a finite amount of time to settle. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vertical_coupling` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.vertical_coupling` - ''' - vertical_offset = _attributes.AttributeViReal64(1250002) - '''Type: float - - Specifies the location of the center of the range. The value is with respect to ground and is in volts. For example, to acquire a sine wave that spans between 0.0 and 10.0 V, set this property to 5.0 V. - - Note: This property is not supported by all digitizers.Refer to the NI High-Speed Digitizers Help for a list of vertical offsets supported for each device. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vertical_offset` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.vertical_offset` - ''' - vertical_range = _attributes.AttributeViReal64(1250001) - '''Type: float - - Specifies the absolute value of the input range for a channel in volts. For example, to acquire a sine wave that spans between -5 and +5 V, set this property to 10.0 V. - Refer to the NI High-Speed Digitizers Help for a list of supported vertical ranges for each device. If the specified range is not supported by a device, the value is coerced up to the next valid range. - - Tip: - This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].vertical_range` - - To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. - - Example: :py:attr:`my_session.vertical_range` - ''' - width_condition = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WidthCondition, 1250504) - '''Type: enums.WidthCondition - - Specifies whether the oscilloscope triggers on pulses within or outside the duration range bounded by the width_low_threshold and width_high_threshold properties. - ''' - width_high_threshold = _attributes.AttributeViReal64(1250502) - '''Type: float - - Specifies the high width threshold, in seconds. - - This properties sets the upper bound on the duration range that triggers the oscilloscope. The width_condition property determines how the oscilloscope triggers in relation to the width thresholds. - ''' - width_low_threshold = _attributes.AttributeViReal64(1250501) - '''Type: float - - Specifies the low width threshold, in seconds. - - This property sets the lower bound on the duration range that triggers the oscilloscope. The width_condition property determines how the oscilloscope triggers in relation to the width thresholds. - ''' - width_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WidthPolarity, 1250503) - '''Type: enums.WidthPolarity - - Specifies the polarity of pulses that trigger the oscilloscope for width triggering. - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('niscope', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def _actual_meas_wfm_size(self, array_meas_function): - r'''_actual_meas_wfm_size - - Returns the total available size of an array measurement acquisition. - - Args: - array_meas_function (enums.ArrayMeasurement): The `array - measurement `__ - to perform. - - - Returns: - meas_waveform_size (int): Returns the size (in number of samples) of the resulting analysis - waveform. - - ''' - if type(array_meas_function) is not enums.ArrayMeasurement: - raise TypeError('Parameter array_meas_function must be of type ' + str(enums.ArrayMeasurement)) - meas_waveform_size = self._interpreter.actual_meas_wfm_size(array_meas_function) - return meas_waveform_size - - @ivi_synchronized - def _actual_num_wfms(self): - r'''_actual_num_wfms - - Helps you to declare appropriately sized waveforms. NI-SCOPE handles the - channel list parsing for you. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._actual_num_wfms` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._actual_num_wfms` - - Returns: - num_wfms (int): Returns the number of records times the number of channels; if you are - operating in DDC mode (NI 5620/5621 only), this value is multiplied by - two. - - ''' - num_wfms = self._interpreter.actual_num_wfms(self._repeated_capability) - return num_wfms - - @ivi_synchronized - def add_waveform_processing(self, meas_function): - r'''add_waveform_processing - - Adds one measurement to the list of processing steps that are completed - before the measurement. The processing is added on a per channel basis, - and the processing measurements are completed in the same order they are - registered. All measurement library parameters—the properties starting - with "meas_"—are cached at the time of registering the - processing, and this set of parameters is used during the processing - step. The processing measurements are streamed, so the result of the - first processing step is used as the input for the next step. The - processing is done before any other measurements. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].add_waveform_processing` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.add_waveform_processing` - - Args: - meas_function (enums.ArrayMeasurement): The `array - measurement `__ - to add. - - ''' - if type(meas_function) is not enums.ArrayMeasurement: - raise TypeError('Parameter meas_function must be of type ' + str(enums.ArrayMeasurement)) - self._interpreter.add_waveform_processing(self._repeated_capability, meas_function) - - @ivi_synchronized - def self_cal(self, option=enums.Option.SELF_CALIBRATE_ALL_CHANNELS): - r'''self_cal - - Self-calibrates most NI digitizers, including all SMC-based devices and - most Traditional NI-DAQ (Legacy) devices. To verify that your digitizer - supports self-calibration, refer to `Features Supported by - Device `__. - - For SMC-based digitizers, if the self-calibration is performed - successfully in a regular session, the calibration constants are - immediately stored in the self-calibration area of the EEPROM. If the - self-calibration is performed in an external calibration session, the - calibration constants take effect immediately for the duration of the - session. However, they are not stored in the EEPROM until - CalEnd is called with **action** set to - NISCOPE_VAL_ACTION_STORE and no errors occur. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].self_cal` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.self_cal` - - Args: - option (enums.Option): The calibration option. Use VI_NULL for a normal self-calibration - operation or NISCOPE_VAL_CAL_RESTORE_EXTERNAL_CALIBRATION to - restore the previous calibration. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - ''' - if type(option) is not enums.Option: - raise TypeError('Parameter option must be of type ' + str(enums.Option)) - self._interpreter.self_cal(self._repeated_capability, option) - - @ivi_synchronized - def clear_waveform_measurement_stats(self, clearable_measurement_function=enums.ClearableMeasurement.ALL_MEASUREMENTS): - r'''clear_waveform_measurement_stats - - Clears the waveform stats on the channel and measurement you specify. If - you want to clear all of the measurements, use - ClearableMeasurement.ALL_MEASUREMENTS in the **clearableMeasurementFunction** - parameter. - - Every time a measurement is called, the statistics information is - updated, including the min, max, mean, standard deviation, and number of - updates. This information is fetched with - _fetch_measurement_stats. The multi-acquisition array measurements - are also cleared with this method. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_waveform_measurement_stats` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.clear_waveform_measurement_stats` - - Args: - clearable_measurement_function (enums.ClearableMeasurement): The `scalar - measurement `__ - or `array - measurement `__ - to clear the stats for. - - ''' - if type(clearable_measurement_function) is not enums.ClearableMeasurement: - raise TypeError('Parameter clearable_measurement_function must be of type ' + str(enums.ClearableMeasurement)) - self._interpreter.clear_waveform_measurement_stats(self._repeated_capability, clearable_measurement_function) - - @ivi_synchronized - def clear_waveform_processing(self): - r'''clear_waveform_processing - - Clears the list of processing steps assigned to the given channel. The - processing is added using the add_waveform_processing method, - where the processing steps are completed in the same order in which they - are registered. The processing measurements are streamed, so the result - of the first processing step is used as the input for the next step. The - processing is also done before any other measurements. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].clear_waveform_processing` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.clear_waveform_processing` - ''' - self._interpreter.clear_waveform_processing(self._repeated_capability) - - @ivi_synchronized - def configure_chan_characteristics(self, input_impedance, max_input_frequency): - r'''configure_chan_characteristics - - Configures the properties that control the electrical characteristics of - the channel—the input impedance and the bandwidth. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_chan_characteristics` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.configure_chan_characteristics` - - Args: - input_impedance (float): The input impedance for the channel; NI-SCOPE sets - input_impedance to this value. - - max_input_frequency (float): The bandwidth for the channel; NI-SCOPE sets - max_input_frequency to this value. Pass 0 for this - value to use the hardware default bandwidth. Pass –1 for this value to - achieve full bandwidth. - - ''' - self._interpreter.configure_chan_characteristics(self._repeated_capability, input_impedance, max_input_frequency) - - @ivi_synchronized - def configure_equalization_filter_coefficients(self, coefficients): - r'''configure_equalization_filter_coefficients - - Configures the custom coefficients for the equalization FIR filter on - the device. This filter is designed to compensate the input signal for - artifacts introduced to the signal outside of the digitizer. Because - this filter is a generic FIR filter, any coefficients are valid. - Coefficient values should be between +1 and –1. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_equalization_filter_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.configure_equalization_filter_coefficients` - - Args: - coefficients (list of float): The custom coefficients for the equalization FIR filter on the device. - These coefficients should be between +1 and –1. You can obtain the - number of coefficients from the - `equalization_num_coefficients `__ - property. The - `equalization_filter_enabled `__ - property must be set to TRUE to enable the filter. - - ''' - self._interpreter.configure_equalization_filter_coefficients(self._repeated_capability, coefficients) - - @ivi_synchronized - def configure_vertical(self, range, coupling, offset=0.0, probe_attenuation=1.0, enabled=True): - r'''configure_vertical - - Configures the most commonly configured properties of the digitizer - vertical subsystem, such as the range, offset, coupling, probe - attenuation, and the channel. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].configure_vertical` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.configure_vertical` - - Args: - range (float): Specifies the vertical range Refer to vertical_range for - more information. - - coupling (enums.VerticalCoupling): Specifies how to couple the input signal. Refer to - vertical_coupling for more information. - - offset (float): Specifies the vertical offset. Refer to vertical_offset - for more information. - - probe_attenuation (float): Specifies the probe attenuation. Refer to - probe_attenuation for valid values. - - enabled (bool): Specifies whether the channel is enabled for acquisition. Refer to - channel_enabled for more information. - - ''' - if type(coupling) is not enums.VerticalCoupling: - raise TypeError('Parameter coupling must be of type ' + str(enums.VerticalCoupling)) - self._interpreter.configure_vertical(self._repeated_capability, range, offset, coupling, probe_attenuation, enabled) - - @ivi_synchronized - def fetch(self, num_samples=None, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): - '''fetch - - Returns the waveform from a previously initiated acquisition that the - digitizer acquires for the specified channel. This method returns - scaled voltage waveforms. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - Note: Some functionality, such as time stamping, is not supported in all digitizers. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. - - relative_to (enums.FetchRelativeTo): Position to start fetching within one record. - - offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. - - record_number (int): Zero-based index of the first record to fetch. - - num_records (int): Number of records to fetch. Use -1 to fetch all configured records. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. - - - Returns: - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling information about each waveform: - - - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform - - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. - - **x_increment** (float) the time between points in the acquired waveform in seconds - - **channel** (str) channel name this waveform was acquired from - - **record** (int) record number of this waveform - - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired - - ''' - # Set the fetch attributes - with _NoChannel(session=self): - self._fetch_relative_to = relative_to - self._fetch_offset = offset - self._fetch_record_number = record_number - self._fetch_num_records = -1 if num_records is None else num_records - if num_samples is None: - num_samples = self.horz_record_length - - wfm, wfm_info = self._fetch(num_samples, timeout) - - if isinstance(wfm, array.ArrayType): - mv = memoryview(wfm) - else: - mv = wfm - - waveform_info._populate_samples_info(wfm_info, mv, num_samples) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - - wfm_info_count = len(wfm_info) - channel_count = len(channel_names) - # Should this raise instead? If this asserts, is it the users fault? - assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) - actual_num_records = int(wfm_info_count / channel_count) - waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) - - return wfm_info - - @ivi_synchronized - def fetch_array_measurement(self, array_meas_function, meas_wfm_size=None, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, meas_num_samples=None, timeout=hightime.timedelta(seconds=5.0)): - r'''fetch_array_measurement - - Obtains a waveform from the digitizer and returns the specified - measurement array. This method may return multiple waveforms depending - on the number of channels, the acquisition type, and the number of - records you specify. - - Note: - Some functionality, such as time stamping, is not supported in all - digitizers. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_array_measurement` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch_array_measurement` - - Args: - array_meas_function (enums.ArrayMeasurement): The array measurement to perform. - - meas_wfm_size (int): The maximum number of samples returned in the measurement waveform array - for each waveform measurement. Default Value: None (returns all available samples). - - relative_to (enums.FetchRelativeTo): Position to start fetching within one record. - - offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. - - record_number (int): Zero-based index of the first record to fetch. - - num_records (int): Number of records to fetch. Use `None` to fetch all configured records. - - meas_num_samples (int): Number of samples to fetch when performing a measurement. Use `None` to fetch the actual record length. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **channel**-channel name this waveform was acquired from - - **record**-record number of this waveform - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **samples**-floating point array of samples. Length will be of actual samples acquired. - - ''' - # Set the fetch attributes - with _NoChannel(session=self): - self._fetch_relative_to = relative_to - self._fetch_offset = offset - self._fetch_record_number = record_number - self._fetch_num_records = -1 if num_records is None else num_records - self._fetch_meas_num_samples = -1 if meas_num_samples is None else meas_num_samples - - # For GrpcStubInterpreter, the server will automatically get _actual_meas_wfm_size, if needed. - if isinstance(self._interpreter, _library_interpreter.LibraryInterpreter): - if meas_wfm_size is None: - meas_wfm_size = self._actual_meas_wfm_size(array_meas_function) - - meas_wfm, wfm_info = self._fetch_array_measurement(array_meas_function, meas_wfm_size, timeout) - - record_length = int(len(meas_wfm) / len(wfm_info)) - waveform_info._populate_samples_info(wfm_info, meas_wfm, record_length) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - - wfm_info_count = len(wfm_info) - channel_count = len(channel_names) - # Should this raise instead? If this asserts, is it the users fault? - assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) - actual_num_records = int(wfm_info_count / channel_count) - waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) - - return wfm_info - - @ivi_synchronized - def fetch_measurement_stats(self, scalar_meas_function, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): - r'''fetch_measurement_stats - - Obtains a waveform measurement and returns the measurement value. This - method may return multiple statistical results depending on the number - of channels, the acquisition type, and the number of records you - specify. - - You specify a particular measurement type, such as rise time, frequency, - or voltage peak-to-peak. The waveform on which the digitizer calculates - the waveform measurement is from an acquisition that you previously - initiated. The statistics for the specified measurement method are - returned, where the statistics are updated once every acquisition when - the specified measurement is fetched by any of the Fetch Measurement - methods. If a Fetch Measurement method has not been called, this - method fetches the data on which to perform the measurement. The - statistics are cleared by calling - clear_waveform_measurement_stats. - - Many of the measurements use the low, mid, and high reference levels. - You configure the low, mid, and high references with - meas_chan_low_ref_level, - meas_chan_mid_ref_level, and - meas_chan_high_ref_level to set each channel - differently. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch_measurement_stats` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch_measurement_stats` - - Args: - scalar_meas_function (enums.ScalarMeasurement): The scalar measurement to be performed on each fetched waveform. - - relative_to (enums.FetchRelativeTo): Position to start fetching within one record. - - offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. - - record_number (int): Zero-based index of the first record to fetch. - - num_records (int): Number of records to fetch. Use `None` to fetch all configured records. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - measurement_stats (list of MeasurementStats): Returns a list of class instances with the following measurement statistics - about the specified measurement: - - - **result** (float): the resulting measurement - - **mean** (float): the mean scalar value, which is obtained by - averaging each fetch_measurement_stats call - - **stdev** (float): the standard deviations of the most recent - **numInStats** measurements - - **min_val** (float): the smallest scalar value acquired (the minimum - of the **numInStats** measurements) - - **max_val** (float): the largest scalar value acquired (the maximum - of the **numInStats** measurements) - - **num_in_stats** (int): the number of times fetch_measurement_stats has been called - - **channel** (str): channel name this result was acquired from - - **record** (int): record number of this result - - ''' - # Set the fetch attributes - with _NoChannel(session=self): - self._fetch_relative_to = relative_to - self._fetch_offset = offset - self._fetch_record_number = record_number - self._fetch_num_records = -1 if num_records is None else num_records - - results, means, stdevs, min_vals, max_vals, nums_in_stats = self._fetch_measurement_stats(scalar_meas_function, timeout) - - output = [] - for result, mean, stdev, min_val, max_val, num_in_stats in zip(results, means, stdevs, min_vals, max_vals, nums_in_stats): - measurement_stat = measurement_stats.MeasurementStats(result, mean, stdev, min_val, max_val, num_in_stats) - output.append(measurement_stat) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - - results_count = len(results) - channel_count = len(channel_names) - # Should this raise instead? If this asserts, is it the users fault? - assert results_count % channel_count == 0, 'Number of results should be evenly divisible by the number of channels: len(results) == {0}, len(channel_names) == {1}'.format(results_count, channel_count) - actual_num_records = int(results_count / channel_count) - waveform_info._populate_channel_and_record_info(output, channel_names, range(record_number, record_number + actual_num_records)) - - return output - - @ivi_synchronized - def get_equalization_filter_coefficients(self): - '''get_equalization_filter_coefficients - - Retrieves the custom coefficients for the equalization FIR filter on the device. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. Because this filter is a generic FIR filter, any coefficients are valid. Coefficient values should be between +1 and –1. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].get_equalization_filter_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.get_equalization_filter_coefficients` - ''' - return self._get_equalization_filter_coefficients(self.equalization_num_coefficients) - - @ivi_synchronized - def read(self, num_samples=None, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): - '''read - - Initiates an acquisition, waits for it to complete, and retrieves the - data. The process is similar to calling _initiate_acquisition, - acquisition_status, and fetch. The only difference is - that with read, you enable all channels specified with - **channelList** before the acquisition; in the other method, you enable - the channels with configure_vertical. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - Note: Some functionality, such as time stamping, is not supported in all digitizers. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].read` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.read` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. - - relative_to (enums.FetchRelativeTo): Position to start fetching within one record. - - offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. - - record_number (int): Zero-based index of the first record to fetch. - - num_records (int): Number of records to fetch. Use -1 to fetch all configured records. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. - - - Returns: - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling information about each waveform: - - - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform - - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. - - **x_increment** (float) the time between points in the acquired waveform in seconds - - **channel** (str) channel name this waveform was acquired from - - **record** (int) record number of this waveform - - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired - - ''' - # Set the fetch attributes - with _NoChannel(session=self): - self._fetch_relative_to = relative_to - self._fetch_offset = offset - self._fetch_record_number = record_number - self._fetch_num_records = -1 if num_records is None else num_records - if num_samples is None: - num_samples = self.horz_record_length - - wfm, wfm_info = self._read(num_samples, timeout) - - if isinstance(wfm, array.ArrayType): - mv = memoryview(wfm) - else: - mv = wfm - - waveform_info._populate_samples_info(wfm_info, mv, num_samples) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - - wfm_info_count = len(wfm_info) - channel_count = len(channel_names) - # Should this raise instead? If this asserts, is it the users fault? - assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) - actual_num_records = int(wfm_info_count / channel_count) - waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) - - return wfm_info - - @ivi_synchronized - def _fetch(self, num_samples, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch - - Returns the waveform from a previously initiated acquisition that the - digitizer acquires for the specified channel. This method returns - scaled voltage waveforms. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - Note: - You can use read instead of this method. read - starts an acquisition on all enabled channels, waits for the acquisition - to complete, and returns the waveform for the specified channel. - - Some functionality, such as time stamping, is not supported in all - digitizers. Refer to `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the - acquisition finishes with fewer points than requested, some devices - return partial data if the acquisition finished, was aborted, or a - timeout of 0 was used. If it fails to complete within the timeout - period, the method returns an error. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - waveform (array.array("d")): Returns an array whose length is the **numSamples** times number of - waveforms. Call ActualNumwfms to determine the number of - waveforms. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with a channel list of 0,1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - waveform, wfm_info = self._interpreter.fetch(self._repeated_capability, timeout, num_samples) - return waveform, wfm_info - - @ivi_synchronized - def _fetch_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch_into_numpy - - Returns the waveform from a previously initiated acquisition that the - digitizer acquires for the specified channel. This method returns - scaled voltage waveforms. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - Note: - You can use read instead of this method. read - starts an acquisition on all enabled channels, waits for the acquisition - to complete, and returns the waveform for the specified channel. - - Some functionality, such as time stamping, is not supported in all - digitizers. Refer to `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the - acquisition finishes with fewer points than requested, some devices - return partial data if the acquisition finished, was aborted, or a - timeout of 0 was used. If it fails to complete within the timeout - period, the method returns an error. - - waveform (numpy.array(dtype=numpy.float64)): Returns an array whose length is the **numSamples** times number of - waveforms. Call ActualNumwfms to determine the number of - waveforms. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with a channel list of 0,1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - import numpy - - if type(waveform) is not numpy.ndarray: - raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) - if numpy.isfortran(waveform) is True: - raise TypeError('waveform must be in C-order') - if waveform.dtype is not numpy.dtype('float64'): - raise TypeError('waveform must be numpy.ndarray of dtype=float64, is ' + str(waveform.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_into_numpy(self._repeated_capability, num_samples, waveform, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_array_measurement(self, array_meas_function, measurement_waveform_size, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch_array_measurement - - Obtains a waveform from the digitizer and returns the specified - measurement array. This method may return multiple waveforms depending - on the number of channels, the acquisition type, and the number of - records you specify. - - Note: - Some functionality, such as time stamping, is not supported in all - digitizers. Refer to `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_array_measurement` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch_array_measurement` - - Args: - array_meas_function (enums.ArrayMeasurement): The `array - measurement `__ - to perform. - - measurement_waveform_size (int): The maximum number of samples returned in the measurement waveform array - for each waveform measurement. Default Value: None (returns all available samples). - - Note: - Use the property fetch_meas_num_samples to set the - number of samples to fetch when performing a measurement. For more - information about when to use this property, refer to the `NI - KnowledgeBase `__. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - meas_wfm (list of float): Returns an array whose length is the number of waveforms times - **measurementWaveformSize**; call _actual_num_wfms to determine the number of - waveforms; call _actual_meas_wfm_size to determine the size of each - waveform. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with channel list of 0, 1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - if type(array_meas_function) is not enums.ArrayMeasurement: - raise TypeError('Parameter array_meas_function must be of type ' + str(enums.ArrayMeasurement)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - meas_wfm, wfm_info = self._interpreter.fetch_array_measurement(self._repeated_capability, timeout, array_meas_function, measurement_waveform_size) - return meas_wfm, wfm_info - - @ivi_synchronized - def _fetch_binary16_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch_binary16_into_numpy - - Retrieves data from a previously initiated acquisition and returns - binary 16-bit waveforms. This method may return multiple waveforms - depending on the number of channels, the acquisition type, and the - number of records you specify. - - Refer to `Using Fetch - Methods `__ for - more information on using this method. - - Note: - Some functionality, such as time stamping, is not supported in all - digitizers. Refer to `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_binary16` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch_binary16` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the - acquisition finishes with fewer points than requested, some devices - return partial data if the acquisition finished, was aborted, or a - timeout of 0 was used. If it fails to complete within the timeout - period, the method returns an error. - - waveform (numpy.array(dtype=numpy.int16)): Returns an array whose length is the **numSamples** times number of - waveforms. Call ActualNumwfms to determine the number of - waveforms. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with a channel list of 0,1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - import numpy - - if type(waveform) is not numpy.ndarray: - raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) - if numpy.isfortran(waveform) is True: - raise TypeError('waveform must be in C-order') - if waveform.dtype is not numpy.dtype('int16'): - raise TypeError('waveform must be numpy.ndarray of dtype=int16, is ' + str(waveform.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_binary16_into_numpy(self._repeated_capability, num_samples, waveform, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_binary32_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch_binary32_into_numpy - - Retrieves data from a previously initiated acquisition and returns - binary 32-bit waveforms. This method may return multiple waveforms - depending on the number of channels, the acquisition type, and the - number of records you specify. - - Refer to `Using Fetch - Methods `__ for - more information on using this method. - - Note: - Some functionality, such as time stamping, is not supported in all - digitizers. Refer to `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_binary32` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch_binary32` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the - acquisition finishes with fewer points than requested, some devices - return partial data if the acquisition finished, was aborted, or a - timeout of 0 was used. If it fails to complete within the timeout - period, the method returns an error. - - waveform (numpy.array(dtype=numpy.int32)): Returns an array whose length is the **numSamples** times number of - waveforms. Call ActualNumwfms to determine the number of - waveforms. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with a channel list of 0,1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - import numpy - - if type(waveform) is not numpy.ndarray: - raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) - if numpy.isfortran(waveform) is True: - raise TypeError('waveform must be in C-order') - if waveform.dtype is not numpy.dtype('int32'): - raise TypeError('waveform must be numpy.ndarray of dtype=int32, is ' + str(waveform.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_binary32_into_numpy(self._repeated_capability, num_samples, waveform, timeout) - return wfm_info - - @ivi_synchronized - def _fetch_binary8_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch_binary8_into_numpy - - Retrieves data from a previously initiated acquisition and returns - binary 8-bit waveforms. This method may return multiple waveforms - depending on the number of channels, the acquisition type, and the - number of records you specify. - - Refer to `Using Fetch - Methods `__ for - more information on using this method. - - Note: - Some functionality, such as time stamping, is not supported in all - digitizers. Refer to `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_binary8` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch_binary8` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the - acquisition finishes with fewer points than requested, some devices - return partial data if the acquisition finished, was aborted, or a - timeout of 0 was used. If it fails to complete within the timeout - period, the method returns an error. - - waveform (numpy.array(dtype=numpy.int8)): Returns an array whose length is the **numSamples** times number of - waveforms. Call ActualNumwfms to determine the number of - waveforms. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with a channel list of 0,1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - import numpy - - if type(waveform) is not numpy.ndarray: - raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) - if numpy.isfortran(waveform) is True: - raise TypeError('waveform must be in C-order') - if waveform.dtype is not numpy.dtype('int8'): - raise TypeError('waveform must be numpy.ndarray of dtype=int8, is ' + str(waveform.dtype)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - wfm_info = self._interpreter.fetch_binary8_into_numpy(self._repeated_capability, num_samples, waveform, timeout) - return wfm_info - - @ivi_synchronized - def fetch_into(self, waveform, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): - '''fetch - - Returns the waveform from a previously initiated acquisition that the - digitizer acquires for the specified channel. This method returns - scaled voltage waveforms. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - Note: Some functionality, such as time stamping, is not supported in all digitizers. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ].fetch` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session.fetch` - - Args: - waveform (array.array("d")): numpy array of the appropriate type and size that should be acquired as a 1D array. Size should be **num_samples** times number of waveforms. Call _actual_num_wfms to determine the number of waveforms. - - Types supported are - - - `numpy.float64` - - `numpy.int8` - - `numpy.in16` - - `numpy.int32` - - Example: - - .. code-block:: python - - waveform = numpy.ndarray(num_samples * session.actual_num_wfms(), dtype=numpy.float64) - wfm_info = session['0,1'].fetch_into(waveform, timeout=5.0) - - relative_to (enums.FetchRelativeTo): Position to start fetching within one record. - - offset (int): Offset in samples to start fetching data within each record.The offset can be positive or negative. - - record_number (int): Zero-based index of the first record to fetch. - - num_records (int): Number of records to fetch. Use -1 to fetch all configured records. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 for this parameter implies infinite timeout. - - - Returns: - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling information about each waveform: - - - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform - - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. - - **x_increment** (float) the time between points in the acquired waveform in seconds - - **channel** (str) channel name this waveform was acquired from - - **record** (int) record number of this waveform - - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: - - .. math:: - - voltage = binary data * gain factor + offset - - - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired - - ''' - import numpy - - # Set the fetch attributes - with _NoChannel(session=self): - self._fetch_relative_to = relative_to - self._fetch_offset = offset - self._fetch_record_number = record_number - self._fetch_num_records = -1 if num_records is None else num_records - - num_samples = int(len(waveform) / self._actual_num_wfms()) - - if waveform.dtype == numpy.float64: - wfm_info = self._fetch_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) - elif waveform.dtype == numpy.int8: - wfm_info = self._fetch_binary8_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) - elif waveform.dtype == numpy.int16: - wfm_info = self._fetch_binary16_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) - elif waveform.dtype == numpy.int32: - wfm_info = self._fetch_binary32_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) - else: - raise TypeError("Unsupported dtype. Is {}, expected {}, {}, {}, or {}".format(waveform.dtype, numpy.float64, numpy.int8, numpy.int16, numpy.int32)) - - mv = memoryview(waveform) - - waveform_info._populate_samples_info(wfm_info, mv, num_samples) - - channel_names = _converters.expand_channel_string( - self._repeated_capability, - self._all_channels_in_session - ) - - wfm_info_count = len(wfm_info) - channel_count = len(channel_names) - # Should this raise instead? If this asserts, is it the users fault? - assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) - actual_num_records = int(wfm_info_count / channel_count) - waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) - - return wfm_info - - @ivi_synchronized - def _fetch_measurement_stats(self, scalar_meas_function, timeout=hightime.timedelta(seconds=5.0)): - r'''_fetch_measurement_stats - - Obtains a waveform measurement and returns the measurement value. This - method may return multiple statistical results depending on the number - of channels, the acquisition type, and the number of records you - specify. - - You specify a particular measurement type, such as rise time, frequency, - or voltage peak-to-peak. The waveform on which the digitizer calculates - the waveform measurement is from an acquisition that you previously - initiated. The statistics for the specified measurement method are - returned, where the statistics are updated once every acquisition when - the specified measurement is fetched by any of the Fetch Measurement - methods. If a Fetch Measurement method has not been called, this - method fetches the data on which to perform the measurement. The - statistics are cleared by calling - clear_waveform_measurement_stats. Refer to `Using Fetch - Methods `__ for - more information on incorporating fetch methods in your application. - - Many of the measurements use the low, mid, and high reference levels. - You configure the low, mid, and high references with - meas_chan_low_ref_level, - meas_chan_mid_ref_level, and - meas_chan_high_ref_level to set each channel - differently. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._fetch_measurement_stats` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._fetch_measurement_stats` - - Args: - scalar_meas_function (enums.ScalarMeasurement): The `scalar - measurement `__ - to be performed on each fetched waveform. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - result (list of float): Returns the resulting measurement - - mean (list of float): Returns the mean scalar value, which is obtained by averaging each - _fetch_measurement_stats call. - - stdev (list of float): Returns the standard deviation of the most recent **numInStats** - measurements. - - min (list of float): Returns the smallest scalar value acquired (the minimum of the - **numInStats** measurements). - - max (list of float): Returns the largest scalar value acquired (the maximum of the - **numInStats** measurements). - - num_in_stats (list of int): Returns the number of times _fetch_measurement_stats has been - called. - - ''' - if type(scalar_meas_function) is not enums.ScalarMeasurement: - raise TypeError('Parameter scalar_meas_function must be of type ' + str(enums.ScalarMeasurement)) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - result, mean, stdev, min, max, num_in_stats = self._interpreter.fetch_measurement_stats(self._repeated_capability, timeout, scalar_meas_function) - return result, mean, stdev, min, max, num_in_stats - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - Queries the value of a ViBoolean property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. If the property represents an instrument state, this - method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): The ID of a property. - - - Returns: - value (bool): Returns the current value of the property; pass the address of a - ViBoolean variable. - - ''' - value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - Queries the value of a ViInt32 property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. If the property represents an instrument state, this - method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): The ID of a property. - - - Returns: - value (int): Returns the current value of the property. - - ''' - value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_int64(self, attribute_id): - r'''_get_attribute_vi_int64 - - Queries the value of a ViInt64 property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. If the property represents an instrument state, this - method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int64` - - Args: - attribute_id (int): The ID of a property. - - - Returns: - value (int): Returns the current value of the property. - - ''' - value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - Queries the value of a ViReal64 property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. If the property represents an instrument state, this - method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): The ID of a property. - - - Returns: - value (float): Returns the current value of the property; pass the address of a - ViReal64 variable. - - ''' - value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - Queries the value of a ViString property. You can use this method to - get the values of instrument-specific properties and inherent IVI - properties. If the property represents an instrument state, this - method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid. - - You must provide a ViChar array to serve as a buffer for the value. You - pass the number of bytes in the buffer as the **bufSize**. If the - current value of the property, including the terminating NUL byte, is - larger than the size you indicate in the **bufSize**, the method - copies (**bufSize** – 1) bytes into the buffer, places an ASCII NUL byte - at the end of the buffer, and returns the **bufSize** you must pass to - get the entire value. For example, if the value is 123456 and the - **bufSize** is 4, the method places 123 into the buffer and returns 7. - If you want to call this method just to get the required buffer size, - you can pass 0 for the **bufSize** and VI_NULL for the **value**. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): The ID of a property. - - - Returns: - value (str): The buffer in which the method returns the current value of the - property; the buffer must be of type ViChar and have at least as many - bytes as indicated in the **bufSize**. - - ''' - value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return value - - @ivi_synchronized - def _get_equalization_filter_coefficients(self, number_of_coefficients): - r'''_get_equalization_filter_coefficients - - Retrieves the custom coefficients for the equalization FIR filter on the - device. This filter is designed to compensate the input signal for - artifacts introduced to the signal outside of the digitizer. Because - this filter is a generic FIR filter, any coefficients are valid. - Coefficient values should be between +1 and –1. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_equalization_filter_coefficients` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._get_equalization_filter_coefficients` - - Args: - number_of_coefficients (int): The number of coefficients being passed in the **coefficients** array. - - - Returns: - coefficients (list of float): The custom coefficients for the equalization FIR filter on the device. - These coefficients should be between +1 and –1. You can obtain the - number of coefficients from the - `equalization_num_coefficients `__ - property. - - ''' - coefficients = self._interpreter.get_equalization_filter_coefficients(self._repeated_capability, number_of_coefficients) - return coefficients - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-SCOPE locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, niscope.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def _read(self, num_samples, timeout=hightime.timedelta(seconds=5.0)): - r'''_read - - Initiates an acquisition, waits for it to complete, and retrieves the - data. The process is similar to calling _initiate_acquisition, - acquisition_status, and fetch. The only difference is - that with read, you enable all channels specified with - **channelList** before the acquisition; in the other method, you enable - the channels with configure_vertical. - - This method may return multiple waveforms depending on the number of - channels, the acquisition type, and the number of records you specify. - - Note: - Some functionality is not supported in all digitizers. Refer to - `Features Supported by - Device `__ for - more information. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._read` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._read` - - Args: - num_samples (int): The maximum number of samples to fetch for each waveform. If the - acquisition finishes with fewer points than requested, some devices - return partial data if the acquisition finished, was aborted, or a - timeout of 0 was used. If it fails to complete within the timeout - period, the method returns an error. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this - parameter tells NI-SCOPE to fetch whatever is currently available. Using - -1 for this parameter implies infinite timeout. - - - Returns: - waveform (array.array("d")): Returns an array whose length is the **numSamples** times number of - waveforms. Call ActualNumwfms to determine the number of - waveforms. - - NI-SCOPE returns this data sequentially, so all record 0 waveforms are - first. For example, with a channel list of 0,1, you would have the - following index values: - - index 0 = record 0, channel 0 - - index *x* = record 0, channel 1 - - index 2\ *x* = record 1, channel 0 - - index 3\ *x* = record 1, channel 1 - - Where *x* = the record length - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling - information about each waveform: - - - **relativeInitialX**—the time (in seconds) from the trigger to the - first sample in the fetched waveform - - **absoluteInitialX**—timestamp (in seconds) of the first fetched - sample. This timestamp is comparable between records and - acquisitions; devices that do not support this parameter use 0 for - this output. - - **xIncrement**—the time between points in the acquired waveform in - seconds - - **actualSamples**—the actual number of samples fetched and placed in - the waveform array - - **gain**—the gain factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - - **offset**—the offset factor of the given channel; useful for scaling - binary data with the following formula: - - voltage = binary data × gain factor + offset - - Call _actual_num_wfms to determine the size of this array. - - ''' - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - waveform, wfm_info = self._interpreter.read(self._repeated_capability, timeout, num_samples) - return waveform, wfm_info - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, value): - r'''_set_attribute_vi_boolean - - Sets the value of a ViBoolean property. This is a low-level method - that you can use to set the values of instrument-specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - Note: - NI-SCOPE contains high-level methods that set most of the instrument - properties. Use the high-level driver methods as much as possible - because they handle order dependencies and multithread locking for you. - In addition, the high-level methods perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the SetAttribute methods, the methods check the - instrument status after each call. Also, when state caching is enabled, - the high-level methods that configure multiple properties perform - instrument I/O only for the properties whose value you change. Thus, you - can safely call the high-level methods without the penalty of - redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): The ID of a property. - - value (bool): The value that you want to set the property to. Some values might not - be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, value): - r'''_set_attribute_vi_int32 - - Sets the value of a ViInt32 property. This is a low-level method that - you can use to set the values of instrument-specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - Note: - NI-SCOPE contains high-level methods that set most of the instrument - properties. Use the high-level methods as much as possible because - they handle order dependencies and multithread locking for you. In - addition, high-level methods perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. Also, when state caching is enabled, - the high-level methods that configure multiple properties perform - instrument I/O only for the properties whose value you change. Thus, you - can safely call the high-level methods without the penalty of - redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): The ID of a property. - - value (int): The value that you want to set the property. Some values might not be - valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_int64(self, attribute_id, value): - r'''_set_attribute_vi_int64 - - Sets the value of a ViInt64 property. This is a low-level method that - you can use to set the values of instrument-specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - Note: - NI-SCOPE contains high-level methods that set most of the instrument - properties. Use the high-level methods as much as possible because - they handle order dependencies and multithread locking for you. In - addition, high-level methods perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. Also, when state caching is enabled, - the high-level methods that configure multiple properties perform - instrument I/O only for the properties whose value you change. Thus, you - can safely call the high-level methods without the penalty of - redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int64` - - Args: - attribute_id (int): The ID of a property. - - value (int): The value that you want to set the property. Some values might not be - valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, value): - r'''_set_attribute_vi_real64 - - Sets the value of a ViReal64 property. This is a low-level method - that you can use to set the values of instrument-specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - Note: - NI-SCOPE contains high-level methods that set most of the instrument - properties. Use the high-level driver methods as much as possible - because they handle order dependencies and multithread locking for you. - In addition, the high-level methods perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the Set Property methods, the methods check the - instrument status after each call. Also, when state caching is enabled, - the high-level methods that configure multiple properties perform - instrument I/O only for the properties whose value you change. Thus, you - can safely call the high-level methods without the penalty of - redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): The ID of a property. - - value (float): The value that you want to set the property to. Some values might not - be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, value): - r'''_set_attribute_vi_string - - Sets the value of a ViString property. - - This is a low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - - - State caching is disabled for the entire session or for the - particular property. - - State caching is enabled and the currently cached value is invalid or - is different than the value you specify. - - Note: - NI-SCOPE contains high-level methods that set most of the instrument - properties. Use the high-level driver methods as much as possible - because they handle order dependencies and multithread locking for you. - In addition, the high-level methods perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the SetAttribute methods, the methods check the - instrument status after each call. Also, when state caching is enabled, - the high-level methods that configure multiple properties perform - instrument I/O only for the properties whose value you change. Thus, you - can safely call the high-level methods without the penalty of - redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niscope.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): The ID of a property. - - value (str): The value that you want to set the property to. Some values might not - be valid depending on the current settings of the instrument session. - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, value) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - def _error_message(self, error_code): - r'''_error_message - - Takes the **Error_Code** returned by the instrument driver methods, interprets it, and returns it as a user-readable string. - - Note: - When using grpc-device, this method will call GetErrorMessage server-side while providing the same interface. - - Args: - error_code (int): The **error_code** returned from the instrument. The default is 0, indicating VI_SUCCESS. - - - Returns: - error_message (str): The error information formatted into a string. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-SCOPE session to an NI digitizer.''' - - def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): - r'''An NI-SCOPE session to an NI digitizer. - - Performs the following initialization actions: - - - Creates a new IVI instrument driver and optionally sets the initial - state of the following session properties: Range Check, Cache, - Simulate, Record Value Coercions - - Opens a session to the specified device using the interface and - address you specify for the **resourceName** - - Resets the digitizer to a known state if **resetDevice** is set to - True - - Queries the instrument ID and verifies that it is valid for this - instrument driver if the **IDQuery** is set to True - - Returns an instrument handle that you use to identify the instrument - in all subsequent instrument driver method calls - - Args: - resource_name (str): Caution: - Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. - However, all IVI names, such as logical names, are case-sensitive. If - you use logical names, driver session names, or virtual names in your - program, you must make sure that the name you use matches the name in - the IVI Configuration Store file exactly, without any variations in the - case of the characters. - - | Specifies the resource name of the device to initialize - - For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is - the device number assigned by MAX, as shown in Example 1. - - For NI-DAQmx devices, the syntax is just the device name specified in - MAX, as shown in Example 2. Typical default names for NI-DAQmx devices - in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by - right-clicking on the name in MAX and entering a new name. - - An alternate syntax for NI-DAQmx devices consists of DAQ::NI-DAQmx - device name, as shown in Example 3. This naming convention allows for - the use of an NI-DAQmx device in an application that was originally - designed for a Traditional NI-DAQ device. For example, if the - application expects DAQ::1, you can rename the NI-DAQmx device to 1 in - MAX and pass in DAQ::1 for the resource name, as shown in Example 4. - - If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already - exists with that same name, the NI-DAQmx device is matched first. - - You can also pass in the name of an IVI logical name or an IVI virtual - name configured with the IVI Configuration utility, as shown in Example - 5. A logical name identifies a particular virtual instrument. A virtual - name identifies a specific device and specifies the initial settings for - the session. - - +---------+--------------------------------------+--------------------------------------------------+ - | Example | Device Type | Syntax | - +=========+======================================+==================================================+ - | 1 | Traditional NI-DAQ device | DAQ::1 (1 = device number) | - +---------+--------------------------------------+--------------------------------------------------+ - | 2 | NI-DAQmx device | myDAQmxDevice (myDAQmxDevice = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 3 | NI-DAQmx device | DAQ::myDAQmxDevice (myDAQmxDevice = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 4 | NI-DAQmx device | DAQ::2 (2 = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 5 | IVI logical name or IVI virtual name | myLogicalName (myLogicalName = name) | - +---------+--------------------------------------+--------------------------------------------------+ - - id_query (bool): Specify whether to perform an ID query. - - When you set this parameter to True, NI-SCOPE verifies that the - device you initialize is a type that it supports. - - When you set this parameter to False, the method initializes the - device without performing an ID query. - - **Defined Values** - - | True—Perform ID query - | False—Skip ID query - - **Default Value**: True - - reset_device (bool): Specify whether to reset the device during the initialization process. - - Default Value: True - - **Defined Values** - - True (1)—Reset device - - False (0)—Do not reset device - - Note: - For the NI 5112, repeatedly resetting the device may cause excessive - wear on the electromechanical relays. Refer to `NI 5112 - Electromechanical Relays `__ - for recommended programming practices. - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - grpc_options (niscope.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - session (niscope.Session): A session object representing the device. - - ''' - if grpc_options: - import niscope._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_options fails, the error handler can reference it. - # And then here, once _init_with_options succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-SCOPE', grpc_options.grpc_channel, connected) - - # NI-TClk does not work over NI gRPC Device Server - if not grpc_options: - self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("id_query=" + pp.pformat(id_query)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Initiates a waveform acquisition. - - After calling this method, the digitizer leaves the Idle state and - waits for a trigger. The digitizer acquires a waveform for each channel - you enable with configure_vertical. - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Acquisition(self) - - def close(self): - '''close - - When you are finished using an instrument driver session, you must call - this method to perform the following actions: - - - Closes the instrument I/O session. - - Destroys the IVI session and all of its properties. - - Deallocates any memory resources used by the IVI session. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Aborts an acquisition and returns the digitizer to the Idle state. Call - this method if the digitizer times out waiting for a trigger. - ''' - self._interpreter.abort() - - @ivi_synchronized - def acquisition_status(self): - r'''acquisition_status - - Returns status information about the acquisition to the **status** - output parameter. - - Returns: - acquisition_status (enums.AcquisitionStatus): Returns whether the acquisition is complete, in progress, or unknown. - - **Defined Values** - - AcquisitionStatus.COMPLETE - - AcquisitionStatus.IN_PROGRESS - - AcquisitionStatus.STATUS_UNKNOWN - - ''' - acquisition_status = self._interpreter.acquisition_status() - return acquisition_status - - @ivi_synchronized - def auto_setup(self): - r'''auto_setup - - Automatically configures the instrument. When you call this method, - the digitizer senses the input signal and automatically configures many - of the instrument settings. If a signal is detected on a channel, the - driver chooses the smallest available vertical range that is larger than - the signal range. For example, if the signal is a 1.2 V\ :sub:`pk-pk` - sine wave, and the device supports 1 V and 2 V vertical ranges, the - driver will choose the 2 V vertical range for that channel. - - If no signal is found on any analog input channel, a warning is - returned, and all channels are enabled. A channel is considered to have - a signal present if the signal is at least 10% of the smallest vertical - range available for that channel. - - The following settings are changed: - - +--------------------+-----------------------------------------------+ - | **General** | | - +--------------------+-----------------------------------------------+ - | Acquisition mode | Normal | - +--------------------+-----------------------------------------------+ - | Reference clock | Internal | - +--------------------+-----------------------------------------------+ - | **Vertical** | | - +--------------------+-----------------------------------------------+ - | Vertical coupling | AC (DC for NI 5621) | - +--------------------+-----------------------------------------------+ - | Vertical bandwidth | Full | - +--------------------+-----------------------------------------------+ - | Vertical range | Changed by auto setup | - +--------------------+-----------------------------------------------+ - | Vertical offset | 0 V | - +--------------------+-----------------------------------------------+ - | Probe attenuation | Unchanged by auto setup | - +--------------------+-----------------------------------------------+ - | Input impedance | Unchanged by auto setup | - +--------------------+-----------------------------------------------+ - | **Horizontal** | | - +--------------------+-----------------------------------------------+ - | Sample rate | Changed by auto setup | - +--------------------+-----------------------------------------------+ - | Min record length | Changed by auto setup | - +--------------------+-----------------------------------------------+ - | Enforce realtime | True | - +--------------------+-----------------------------------------------+ - | Number of Records | Changed to 1 | - +--------------------+-----------------------------------------------+ - | **Triggering** | | - +--------------------+-----------------------------------------------+ - | Trigger type | Edge if signal present, otherwise immediate | - +--------------------+-----------------------------------------------+ - | Trigger channel | Lowest numbered channel with a signal present | - +--------------------+-----------------------------------------------+ - | Trigger slope | Positive | - +--------------------+-----------------------------------------------+ - | Trigger coupling | DC | - +--------------------+-----------------------------------------------+ - | Reference position | 50% | - +--------------------+-----------------------------------------------+ - | Trigger level | 50% of signal on trigger channel | - +--------------------+-----------------------------------------------+ - | Trigger delay | 0 | - +--------------------+-----------------------------------------------+ - | Trigger holdoff | 0 | - +--------------------+-----------------------------------------------+ - | Trigger output | None | - +--------------------+-----------------------------------------------+ - ''' - self._interpreter.auto_setup() - - @ivi_synchronized - def _cal_fetch_date(self, which_one): - r'''_cal_fetch_date - - TBD - - Args: - which_one (enums._CalibrationTypes): - - - Returns: - year (int): - - month (int): - - day (int): - - ''' - if type(which_one) is not enums._CalibrationTypes: - raise TypeError('Parameter which_one must be of type ' + str(enums._CalibrationTypes)) - year, month, day = self._interpreter.cal_fetch_date(which_one) - return year, month, day - - @ivi_synchronized - def _cal_fetch_temperature(self, which_one): - r'''_cal_fetch_temperature - - TBD - - Args: - which_one (int): - - - Returns: - temperature (float): - - ''' - temperature = self._interpreter.cal_fetch_temperature(which_one) - return temperature - - @ivi_synchronized - def commit(self): - r'''commit - - Commits to hardware all the parameter settings associated with the task. - Use this method if you want a parameter change to be immediately - reflected in the hardware. This method is not supported for - Traditional NI-DAQ (Legacy) devices. - ''' - self._interpreter.commit() - - @ivi_synchronized - def configure_horizontal_timing(self, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): - r'''configure_horizontal_timing - - Configures the common properties of the horizontal subsystem for a - multirecord acquisition in terms of minimum sample rate. - - Args: - min_sample_rate (float): The sampling rate for the acquisition. Refer to - min_sample_rate for more information. - - min_num_pts (int): The minimum number of points you need in the record for each channel; - call ActualRecordLength to obtain the actual record length - used. - - Valid Values: Greater than 1; limited by available memory - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - ref_position (float): The position of the Reference Event in the waveform record specified as - a percentage. - - num_records (int): The number of records to acquire - - enforce_realtime (bool): Indicates whether the digitizer enforces real-time measurements or - allows equivalent-time (RIS) measurements; not all digitizers support - RIS—refer to `Features Supported by - Device `__ for - more information. - - Default value: True - - **Defined Values** - - True—Allow real-time acquisitions only - - False—Allow real-time and equivalent-time acquisitions - - ''' - self._interpreter.configure_horizontal_timing(min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime) - - @ivi_synchronized - def _configure_ref_levels(self, low=10.0, mid=50.0, high=90.0): - r'''_configure_ref_levels - - This method is included for compliance with the IviScope Class - Specification. - - Configures the reference levels for all channels of the digitizer. The - levels may be set on a per channel basis by setting - meas_chan_high_ref_level, - meas_chan_low_ref_level, and - meas_chan_mid_ref_level - - This method configures the reference levels for waveform measurements. - Call this method before calling FetchMeasurement to take a - rise time, fall time, width negative, width positive, duty cycle - negative, or duty cycle positive measurement. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Args: - low (float): Pass the low reference you want the digitizer to use for waveform - measurements. - - Units: Either a percentage or voltage based on - meas_ref_level_units. A percentage is calculated with - the voltage low and voltage high measurements representing 0% and 100%, - respectively. - - Default Value: 10.0 - - mid (float): Pass the mid reference you want the digitizer to use for waveform - measurements. - - Units: Either a percentage or voltage based on - meas_ref_level_units. A percentage is calculated with - the voltage low and voltage high measurements representing 0% and 100%, - respectively. - - Default Value: 50.0 - - high (float): Pass the high reference you want the digitizer to use for waveform - measurements. - - Units: Either a percentage or voltage based on - meas_ref_level_units. A percentage is calculated with - the voltage low and voltage high measurements representing 0% and 100%, - respectively. - - Default Value: 90.0 - - ''' - self._interpreter.configure_ref_levels(low, mid, high) - - @ivi_synchronized - def configure_trigger_digital(self, trigger_source, slope=enums.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): - r'''configure_trigger_digital - - Configures the common properties of a digital trigger. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the acq_arm_source - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - Note: - For multirecord acquisitions, all records after the first record are - started by using the Advance Trigger Source. The default is immediate. - - You can adjust the amount of pre-trigger and post-trigger samples using - the reference position parameter on the - configure_horizontal_timing method. The default is half of the - record length. - - Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - Digital triggering is not supported in RIS mode. - - Args: - trigger_source (str): Specifies the trigger source. Refer to trigger_source - for defined values. - - slope (enums.TriggerSlope): Specifies whether you want a rising edge or a falling edge to trigger - the digitizer. Refer to trigger_slope for more - information. - - holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - trigger_holdoff for more information. - - delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to trigger_delay_time for more - information. - - ''' - if type(slope) is not enums.TriggerSlope: - raise TypeError('Parameter slope must be of type ' + str(enums.TriggerSlope)) - holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) - delay = _converters.convert_timedelta_to_seconds_real64(delay) - self._interpreter.configure_trigger_digital(trigger_source, slope, holdoff, delay) - - @ivi_synchronized - def configure_trigger_edge(self, trigger_source, level, trigger_coupling, slope=enums.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): - r'''configure_trigger_edge - - Configures common properties for analog edge triggering. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the acq_arm_source - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - Note: - Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - Args: - trigger_source (str): Specifies the trigger source. Refer to trigger_source - for defined values. - - level (float): The voltage threshold for the trigger. Refer to - trigger_level for more information. - - trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to - trigger_coupling for more information. - - slope (enums.TriggerSlope): Specifies whether you want a rising edge or a falling edge to trigger - the digitizer. Refer to trigger_slope for more - information. - - holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - trigger_holdoff for more information. - - delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to trigger_delay_time for more - information. - - ''' - if type(slope) is not enums.TriggerSlope: - raise TypeError('Parameter slope must be of type ' + str(enums.TriggerSlope)) - if type(trigger_coupling) is not enums.TriggerCoupling: - raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) - holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) - delay = _converters.convert_timedelta_to_seconds_real64(delay) - self._interpreter.configure_trigger_edge(trigger_source, level, slope, trigger_coupling, holdoff, delay) - - @ivi_synchronized - def configure_trigger_hysteresis(self, trigger_source, level, hysteresis, trigger_coupling, slope=enums.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): - r'''configure_trigger_hysteresis - - Configures common properties for analog hysteresis triggering. This kind - of trigger specifies an additional value, specified in the - **hysteresis** parameter, that a signal must pass through before a - trigger can occur. This additional value acts as a kind of buffer zone - that keeps noise from triggering an acquisition. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the - acq_arm_source. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - Note: - Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - Args: - trigger_source (str): Specifies the trigger source. Refer to trigger_source - for defined values. - - level (float): The voltage threshold for the trigger. Refer to - trigger_level for more information. - - hysteresis (float): The size of the hysteresis window on either side of the **level** in - volts; the digitizer triggers when the trigger signal passes through the - hysteresis value you specify with this parameter, has the slope you - specify with **slope**, and passes through the **level**. Refer to - trigger_hysteresis for defined values. - - trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to - trigger_coupling for more information. - - slope (enums.TriggerSlope): Specifies whether you want a rising edge or a falling edge to trigger - the digitizer. Refer to trigger_slope for more - information. - - holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - trigger_holdoff for more information. - - delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to trigger_delay_time for more - information. - - ''' - if type(slope) is not enums.TriggerSlope: - raise TypeError('Parameter slope must be of type ' + str(enums.TriggerSlope)) - if type(trigger_coupling) is not enums.TriggerCoupling: - raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) - holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) - delay = _converters.convert_timedelta_to_seconds_real64(delay) - self._interpreter.configure_trigger_hysteresis(trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay) - - @ivi_synchronized - def configure_trigger_immediate(self): - r'''configure_trigger_immediate - - Configures common properties for immediate triggering. Immediate - triggering means the digitizer triggers itself. - - When you initiate an acquisition, the digitizer waits for a trigger. You - specify the type of trigger that the digitizer waits for with a - Configure Trigger method, such as configure_trigger_immediate. - ''' - self._interpreter.configure_trigger_immediate() - - @ivi_synchronized - def configure_trigger_software(self, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): - r'''configure_trigger_software - - Configures common properties for software triggering. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the acq_arm_source - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - To trigger the acquisition, use send_software_trigger_edge. - - Note: - Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - Args: - holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - trigger_holdoff for more information. - - delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to trigger_delay_time for more - information. - - ''' - holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) - delay = _converters.convert_timedelta_to_seconds_real64(delay) - self._interpreter.configure_trigger_software(holdoff, delay) - - @ivi_synchronized - def configure_trigger_video(self, trigger_source, signal_format, event, polarity, trigger_coupling, enable_dc_restore=False, line_number=1, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): - r'''configure_trigger_video - - Configures the common properties for video triggering, including the - signal format, TV event, line number, polarity, and enable DC restore. A - video trigger occurs when the digitizer finds a valid video signal sync. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the acq_arm_source - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - Note: - Some features are not supported by all digitizers. Refer to `Features - Supported by - Device `__ for - more information. - - Args: - trigger_source (str): Specifies the trigger source. Refer to trigger_source - for defined values. - - signal_format (enums.VideoSignalFormat): Specifies the type of video signal sync the digitizer should look for. - Refer to tv_trigger_signal_format for more - information. - - event (enums.VideoTriggerEvent): Specifies the TV event you want to trigger on. You can trigger on a - specific or on the next coming line or field of the signal. - - polarity (enums.VideoPolarity): Specifies the polarity of the video signal sync. - - trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to - trigger_coupling for more information. - - enable_dc_restore (bool): Offsets each video line so the clamping level (the portion of the video - line between the end of the color burst and the beginning of the active - image) is moved to zero volt. Refer to - enable_dc_restore for defined values. - - line_number (int): Selects the line number to trigger on. The line number range covers an - entire frame and is referenced as shown on `Vertical Blanking and - Synchronization - Signal `__. Refer to - tv_trigger_line_number for more information. - - Default value: 1 - - holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - trigger_holdoff for more information. - - delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to trigger_delay_time for more - information. - - ''' - if type(signal_format) is not enums.VideoSignalFormat: - raise TypeError('Parameter signal_format must be of type ' + str(enums.VideoSignalFormat)) - if type(event) is not enums.VideoTriggerEvent: - raise TypeError('Parameter event must be of type ' + str(enums.VideoTriggerEvent)) - if type(polarity) is not enums.VideoPolarity: - raise TypeError('Parameter polarity must be of type ' + str(enums.VideoPolarity)) - if type(trigger_coupling) is not enums.TriggerCoupling: - raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) - holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) - delay = _converters.convert_timedelta_to_seconds_real64(delay) - self._interpreter.configure_trigger_video(trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay) - - @ivi_synchronized - def configure_trigger_window(self, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): - r'''configure_trigger_window - - Configures common properties for analog window triggering. A window - trigger occurs when a signal enters or leaves a window you specify with - the **high level** or **low level** parameters. - - When you initiate an acquisition, the digitizer waits for the start - trigger, which is configured through the acq_arm_source - (Start Trigger Source) property. The default is immediate. Upon - receiving the start trigger the digitizer begins sampling pretrigger - points. After the digitizer finishes sampling pretrigger points, the - digitizer waits for a reference (stop) trigger that you specify with a - method such as this one. Upon receiving the reference trigger the - digitizer finishes the acquisition after completing posttrigger - sampling. With each Configure Trigger method, you specify - configuration parameters such as the trigger source and the amount of - trigger delay. - - To trigger the acquisition, use send_software_trigger_edge. - - Note: Some features are not supported by all digitizers. - - Args: - trigger_source (str): Specifies the trigger source. Refer to trigger_source - for defined values. - - low_level (float): Passes the voltage threshold you want the digitizer to use for low - triggering. - - high_level (float): Passes the voltage threshold you want the digitizer to use for high - triggering. - - window_mode (enums.TriggerWindowMode): Specifies whether you want the trigger to occur when the signal enters - or leaves a window. - - trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to - trigger_coupling for more information. - - holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before - enabling NI-SCOPE to detect another trigger. Refer to - trigger_holdoff for more information. - - delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start - acquiring data. Refer to trigger_delay_time for more - information. - - ''' - if type(window_mode) is not enums.TriggerWindowMode: - raise TypeError('Parameter window_mode must be of type ' + str(enums.TriggerWindowMode)) - if type(trigger_coupling) is not enums.TriggerCoupling: - raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) - holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) - delay = _converters.convert_timedelta_to_seconds_real64(delay) - self._interpreter.configure_trigger_window(trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay) - - @ivi_synchronized - def disable(self): - r'''disable - - Aborts any current operation, opens data channel relays, and releases - RTSI and PFI lines. - ''' - self._interpreter.disable() - - @ivi_synchronized - def export_attribute_configuration_buffer(self): - r'''export_attribute_configuration_buffer - - Exports the property configuration of the session to a configuration - buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑SCOPE returns an - error. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - Returns: - configuration (bytes): Specifies the byte array buffer to be populated with the exported - property configuration. - - ''' - configuration = self._interpreter.export_attribute_configuration_buffer() - return _converters.convert_to_bytes(configuration) - - @ivi_synchronized - def export_attribute_configuration_file(self, file_path): - r'''export_attribute_configuration_file - - Exports the property configuration of the session to the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - This method verifies that the properties you have configured for the - session are valid. If the configuration is invalid, NI‑SCOPE returns an - error. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - Args: - file_path (str): Specifies the absolute path to the file to contain the exported - property configuration. If you specify an empty or relative path, this - method returns an error. - **Default file extension:** .niscopeconfig - - ''' - self._interpreter.export_attribute_configuration_file(file_path) - - @ivi_synchronized - def get_ext_cal_last_date_and_time(self): - '''get_ext_cal_last_date_and_time - - Returns the date and time of the last external calibration performed. - - Returns: - last_cal_datetime (hightime.timedelta, datetime.timedelta, or float in seconds): Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. - - ''' - - year, month, day = self._cal_fetch_date(enums._CalibrationTypes.EXTERNAL) - return hightime.datetime(year, month, day) - - @ivi_synchronized - def get_ext_cal_last_temp(self): - '''get_ext_cal_last_temp - - Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful external calibration. - The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. - Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. - - Returns: - temperature (float): Returns the **temperature** in degrees Celsius during the last calibration. - - ''' - - return self._cal_fetch_temperature(enums._CalibrationTypes.EXTERNAL.value) - - @ivi_synchronized - def get_self_cal_last_date_and_time(self): - '''get_self_cal_last_date_and_time - - Returns the date and time of the last self calibration performed. - - Returns: - last_cal_datetime (hightime.timedelta, datetime.timedelta, or float in seconds): Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. - - ''' - - year, month, day = self._cal_fetch_date(enums._CalibrationTypes.SELF) - return hightime.datetime(year, month, day) - - @ivi_synchronized - def get_self_cal_last_temp(self): - '''get_self_cal_last_temp - - Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful self calibration. - The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. - Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. - - Returns: - temperature (float): Returns the **temperature** in degrees Celsius during the last calibration. - - ''' - - return self._cal_fetch_temperature(enums._CalibrationTypes.SELF.value) - - @ivi_synchronized - def get_channel_names(self, indices): - r'''get_channel_names - - Returns a list of channel names for given channel indices. - - Args: - indices (basic sequence types, str, or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: - - - A comma-separated list—for example, "0,2,3,1" - - A range using a hyphen—for example, "0-3" - - A range using a colon—for example, "0:3 " - - You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. - - - Returns: - names (list of str): The channel name(s) at the specified indices. - - ''' - indices = _converters.convert_repeated_capabilities_without_prefix(indices) - names = self._interpreter.get_channel_names(indices) - return _converters.convert_comma_separated_string_to_list(names) - - @ivi_synchronized - def import_attribute_configuration_buffer(self, configuration): - r'''import_attribute_configuration_buffer - - Imports a property configuration to the session from the specified - configuration buffer. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - Note: - You cannot call this method while the session is in a running state, - such as while acquiring a signal. - - Args: - configuration (bytes): Specifies the byte array buffer that contains the property - configuration to import. - - ''' - configuration = _converters.convert_to_bytes(configuration) - self._interpreter.import_attribute_configuration_buffer(configuration) - - @ivi_synchronized - def import_attribute_configuration_file(self, file_path): - r'''import_attribute_configuration_file - - Imports a property configuration to the session from the specified - file. - - You can export and import session property configurations only between - devices with identical model numbers, channel counts, and onboard memory - sizes. - - **Related Topics:** - - `Properties and Property - Methods `__ - - `Setting Properties Before Reading - Properties `__ - - Note: - You cannot call this method while the session is in a running state, - such as while acquiring a signal. - - Args: - file_path (str): Specifies the absolute path to the file containing the property - configuration to import. If you specify an empty or relative path, this - method returns an error. - **Default File Extension:** .niscopeconfig - - ''' - self._interpreter.import_attribute_configuration_file(file_path) - - def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): - r'''_init_with_options - - Performs the following initialization actions: - - - Creates a new IVI instrument driver and optionally sets the initial - state of the following session properties: Range Check, Cache, - Simulate, Record Value Coercions - - Opens a session to the specified device using the interface and - address you specify for the **resourceName** - - Resets the digitizer to a known state if **resetDevice** is set to - True - - Queries the instrument ID and verifies that it is valid for this - instrument driver if the **IDQuery** is set to True - - Returns an instrument handle that you use to identify the instrument - in all subsequent instrument driver method calls - - Args: - resource_name (str): Caution: - Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. - However, all IVI names, such as logical names, are case-sensitive. If - you use logical names, driver session names, or virtual names in your - program, you must make sure that the name you use matches the name in - the IVI Configuration Store file exactly, without any variations in the - case of the characters. - - | Specifies the resource name of the device to initialize - - For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is - the device number assigned by MAX, as shown in Example 1. - - For NI-DAQmx devices, the syntax is just the device name specified in - MAX, as shown in Example 2. Typical default names for NI-DAQmx devices - in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by - right-clicking on the name in MAX and entering a new name. - - An alternate syntax for NI-DAQmx devices consists of DAQ::NI-DAQmx - device name, as shown in Example 3. This naming convention allows for - the use of an NI-DAQmx device in an application that was originally - designed for a Traditional NI-DAQ device. For example, if the - application expects DAQ::1, you can rename the NI-DAQmx device to 1 in - MAX and pass in DAQ::1 for the resource name, as shown in Example 4. - - If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already - exists with that same name, the NI-DAQmx device is matched first. - - You can also pass in the name of an IVI logical name or an IVI virtual - name configured with the IVI Configuration utility, as shown in Example - 5. A logical name identifies a particular virtual instrument. A virtual - name identifies a specific device and specifies the initial settings for - the session. - - +---------+--------------------------------------+--------------------------------------------------+ - | Example | Device Type | Syntax | - +=========+======================================+==================================================+ - | 1 | Traditional NI-DAQ device | DAQ::1 (1 = device number) | - +---------+--------------------------------------+--------------------------------------------------+ - | 2 | NI-DAQmx device | myDAQmxDevice (myDAQmxDevice = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 3 | NI-DAQmx device | DAQ::myDAQmxDevice (myDAQmxDevice = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 4 | NI-DAQmx device | DAQ::2 (2 = device name) | - +---------+--------------------------------------+--------------------------------------------------+ - | 5 | IVI logical name or IVI virtual name | myLogicalName (myLogicalName = name) | - +---------+--------------------------------------+--------------------------------------------------+ - - id_query (bool): Specify whether to perform an ID query. - - When you set this parameter to True, NI-SCOPE verifies that the - device you initialize is a type that it supports. - - When you set this parameter to False, the method initializes the - device without performing an ID query. - - **Defined Values** - - | True—Perform ID query - | False—Skip ID query - - **Default Value**: True - - reset_device (bool): Specify whether to reset the device during the initialization process. - - Default Value: True - - **Defined Values** - - True (1)—Reset device - - False (0)—Do not reset device - - Note: - For the NI 5112, repeatedly resetting the device may cause excessive - wear on the electromechanical relays. Refer to `NI 5112 - Electromechanical Relays `__ - for recommended programming practices. - - option_string (dict): | Specifies initialization commands. The following table lists the - properties and the name you use in the **optionString** to identify - the property. - - Default Values: "Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1" - - You can use the option string to simulate a device. The DriverSetup flag - specifies the model that is to be simulated and the type of the model. - One example to simulate an NI PXI-5102 would be as follows: - - Option String: Simulate = 1, DriverSetup = Model:5102; BoardType:PXI - - Refer to the example niScope EX Simulated Acquisition for more - information on simulation. - - You can also use the option string to attach an accessory such as the - NI 5900 to your digitizer session to allow the seamless use of the - accessory: - - Option String: DriverSetup = Accessory:Dev1 - - Refer to the example niScope EX External Amplifier for more information. - - - Returns: - vi (int): Returns a session handle that you can use to identify the device in all - subsequent NI-SCOPE method calls. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) - return vi - - @ivi_synchronized - def _initiate_acquisition(self): - r'''_initiate_acquisition - - Initiates a waveform acquisition. - - After calling this method, the digitizer leaves the Idle state and - waits for a trigger. The digitizer acquires a waveform for each channel - you enable with configure_vertical. - ''' - self._interpreter.initiate_acquisition() - - @ivi_synchronized - def probe_compensation_signal_start(self): - r'''probe_compensation_signal_start - - Starts the 1 kHz square wave output on PFI 1 for probe compensation. - ''' - self._interpreter.probe_compensation_signal_start() - - @ivi_synchronized - def probe_compensation_signal_stop(self): - r'''probe_compensation_signal_stop - - Stops the 1 kHz square wave output on PFI 1 for probe compensation. - ''' - self._interpreter.probe_compensation_signal_stop() - - @ivi_synchronized - def reset_device(self): - r'''reset_device - - Performs a hard reset of the device. Acquisition stops, all routes are - released, RTSI and PFI lines are tristated, hardware is configured to - its default state, and all session properties are reset to their default - state. - - - `Thermal Shutdown `__ - ''' - self._interpreter.reset_device() - - @ivi_synchronized - def reset_with_defaults(self): - r'''reset_with_defaults - - Performs a software reset of the device, returning it to the default - state and applying any initial default settings from the IVI - Configuration Store. - ''' - self._interpreter.reset_with_defaults() - - @ivi_synchronized - def send_software_trigger_edge(self, which_trigger): - r'''send_software_trigger_edge - - Sends the selected trigger to the digitizer. Call this method if you - called configure_trigger_software when you want the Reference - trigger to occur. You can also call this method to override a misused - edge, digital, or hysteresis trigger. If you have configured - acq_arm_source, arm_ref_trig_src, or - adv_trig_src, call this method when you want to send - the corresponding trigger to the digitizer. - - Args: - which_trigger (enums.WhichTrigger): Specifies the type of trigger to send to the digitizer. - - **Defined Values** - - | WhichTrigger.START (0L) - | WhichTrigger.ARM_REFERENCE (1L) - | WhichTrigger.REFERENCE (2L) - | WhichTrigger.ADVANCE (3L) - - ''' - if type(which_trigger) is not enums.WhichTrigger: - raise TypeError('Parameter which_trigger must be of type ' + str(enums.WhichTrigger)) - self._interpreter.send_software_trigger_edge(which_trigger) - - def _close(self): - r'''_close - - When you are finished using an instrument driver session, you must call - this method to perform the following actions: - - - Closes the instrument I/O session. - - Destroys the IVI session and all of its properties. - - Deallocates any memory resources used by the IVI session. - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Runs the instrument self-test routine and returns the test result(s). Refer to the - device-specific help topics for an explanation of the message contents. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def reset(self): - r'''reset - - Stops the acquisition, releases routes, and all session properties are - reset to their `default - states `__. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Runs the instrument self-test routine and returns the test result(s). - - Returns: - self_test_result (int): This control contains the value returned from the instrument self-test. - - **Self-Test Code Description** - - 0—Self-test passed - - 1—Self-test failed - - self_test_message (str): Returns the self-test response string from the instrument. Refer to the - device-specific help topics for an explanation of the string contents; - you must pass a ViChar array at least IVI_MAX_MESSAGE_BUF_SIZE bytes - in length. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/niscope/niscope/unit_tests/_matchers.py b/generated/niscope/niscope/unit_tests/_matchers.py deleted file mode 100644 index 9f46f7d6a4..0000000000 --- a/generated/niscope/niscope/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import niscope._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/niscope/niscope/unit_tests/_mock_helper.py b/generated/niscope/niscope/unit_tests/_mock_helper.py deleted file mode 100644 index b99a2778f4..0000000000 --- a/generated/niscope/niscope/unit_tests/_mock_helper.py +++ /dev/null @@ -1,971 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['Abort'] = {} - self._defaults['Abort']['return'] = 0 - self._defaults['AcquisitionStatus'] = {} - self._defaults['AcquisitionStatus']['return'] = 0 - self._defaults['AcquisitionStatus']['acquisitionStatus'] = None - self._defaults['ActualMeasWfmSize'] = {} - self._defaults['ActualMeasWfmSize']['return'] = 0 - self._defaults['ActualMeasWfmSize']['measWaveformSize'] = None - self._defaults['ActualNumWfms'] = {} - self._defaults['ActualNumWfms']['return'] = 0 - self._defaults['ActualNumWfms']['numWfms'] = None - self._defaults['AddWaveformProcessing'] = {} - self._defaults['AddWaveformProcessing']['return'] = 0 - self._defaults['AutoSetup'] = {} - self._defaults['AutoSetup']['return'] = 0 - self._defaults['CalFetchDate'] = {} - self._defaults['CalFetchDate']['return'] = 0 - self._defaults['CalFetchDate']['year'] = None - self._defaults['CalFetchDate']['month'] = None - self._defaults['CalFetchDate']['day'] = None - self._defaults['CalFetchTemperature'] = {} - self._defaults['CalFetchTemperature']['return'] = 0 - self._defaults['CalFetchTemperature']['temperature'] = None - self._defaults['CalSelfCalibrate'] = {} - self._defaults['CalSelfCalibrate']['return'] = 0 - self._defaults['ClearWaveformMeasurementStats'] = {} - self._defaults['ClearWaveformMeasurementStats']['return'] = 0 - self._defaults['ClearWaveformProcessing'] = {} - self._defaults['ClearWaveformProcessing']['return'] = 0 - self._defaults['Commit'] = {} - self._defaults['Commit']['return'] = 0 - self._defaults['ConfigureChanCharacteristics'] = {} - self._defaults['ConfigureChanCharacteristics']['return'] = 0 - self._defaults['ConfigureEqualizationFilterCoefficients'] = {} - self._defaults['ConfigureEqualizationFilterCoefficients']['return'] = 0 - self._defaults['ConfigureHorizontalTiming'] = {} - self._defaults['ConfigureHorizontalTiming']['return'] = 0 - self._defaults['ConfigureRefLevels'] = {} - self._defaults['ConfigureRefLevels']['return'] = 0 - self._defaults['ConfigureTriggerDigital'] = {} - self._defaults['ConfigureTriggerDigital']['return'] = 0 - self._defaults['ConfigureTriggerEdge'] = {} - self._defaults['ConfigureTriggerEdge']['return'] = 0 - self._defaults['ConfigureTriggerHysteresis'] = {} - self._defaults['ConfigureTriggerHysteresis']['return'] = 0 - self._defaults['ConfigureTriggerImmediate'] = {} - self._defaults['ConfigureTriggerImmediate']['return'] = 0 - self._defaults['ConfigureTriggerSoftware'] = {} - self._defaults['ConfigureTriggerSoftware']['return'] = 0 - self._defaults['ConfigureTriggerVideo'] = {} - self._defaults['ConfigureTriggerVideo']['return'] = 0 - self._defaults['ConfigureTriggerWindow'] = {} - self._defaults['ConfigureTriggerWindow']['return'] = 0 - self._defaults['ConfigureVertical'] = {} - self._defaults['ConfigureVertical']['return'] = 0 - self._defaults['Disable'] = {} - self._defaults['Disable']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer'] = {} - self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None - self._defaults['ExportAttributeConfigurationFile'] = {} - self._defaults['ExportAttributeConfigurationFile']['return'] = 0 - self._defaults['Fetch'] = {} - self._defaults['Fetch']['return'] = 0 - self._defaults['Fetch']['waveform'] = None - self._defaults['Fetch']['wfmInfo'] = None - self._defaults['FetchArrayMeasurement'] = {} - self._defaults['FetchArrayMeasurement']['return'] = 0 - self._defaults['FetchArrayMeasurement']['measWfm'] = None - self._defaults['FetchArrayMeasurement']['wfmInfo'] = None - self._defaults['FetchBinary16'] = {} - self._defaults['FetchBinary16']['return'] = 0 - self._defaults['FetchBinary16']['waveform'] = None - self._defaults['FetchBinary16']['wfmInfo'] = None - self._defaults['FetchBinary32'] = {} - self._defaults['FetchBinary32']['return'] = 0 - self._defaults['FetchBinary32']['waveform'] = None - self._defaults['FetchBinary32']['wfmInfo'] = None - self._defaults['FetchBinary8'] = {} - self._defaults['FetchBinary8']['return'] = 0 - self._defaults['FetchBinary8']['waveform'] = None - self._defaults['FetchBinary8']['wfmInfo'] = None - self._defaults['FetchMeasurementStats'] = {} - self._defaults['FetchMeasurementStats']['return'] = 0 - self._defaults['FetchMeasurementStats']['result'] = None - self._defaults['FetchMeasurementStats']['mean'] = None - self._defaults['FetchMeasurementStats']['stdev'] = None - self._defaults['FetchMeasurementStats']['min'] = None - self._defaults['FetchMeasurementStats']['max'] = None - self._defaults['FetchMeasurementStats']['numInStats'] = None - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['value'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['value'] = None - self._defaults['GetAttributeViInt64'] = {} - self._defaults['GetAttributeViInt64']['return'] = 0 - self._defaults['GetAttributeViInt64']['value'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['value'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['value'] = None - self._defaults['GetChannelNameFromString'] = {} - self._defaults['GetChannelNameFromString']['return'] = 0 - self._defaults['GetChannelNameFromString']['name'] = None - self._defaults['GetEqualizationFilterCoefficients'] = {} - self._defaults['GetEqualizationFilterCoefficients']['return'] = 0 - self._defaults['GetEqualizationFilterCoefficients']['coefficients'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['description'] = None - self._defaults['ImportAttributeConfigurationBuffer'] = {} - self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 - self._defaults['ImportAttributeConfigurationFile'] = {} - self._defaults['ImportAttributeConfigurationFile']['return'] = 0 - self._defaults['InitWithOptions'] = {} - self._defaults['InitWithOptions']['return'] = 0 - self._defaults['InitWithOptions']['vi'] = None - self._defaults['InitiateAcquisition'] = {} - self._defaults['InitiateAcquisition']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['ProbeCompensationSignalStart'] = {} - self._defaults['ProbeCompensationSignalStart']['return'] = 0 - self._defaults['ProbeCompensationSignalStop'] = {} - self._defaults['ProbeCompensationSignalStop']['return'] = 0 - self._defaults['Read'] = {} - self._defaults['Read']['return'] = 0 - self._defaults['Read']['waveform'] = None - self._defaults['Read']['wfmInfo'] = None - self._defaults['ResetDevice'] = {} - self._defaults['ResetDevice']['return'] = 0 - self._defaults['ResetWithDefaults'] = {} - self._defaults['ResetWithDefaults']['return'] = 0 - self._defaults['SendSoftwareTriggerEdge'] = {} - self._defaults['SendSoftwareTriggerEdge']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViInt64'] = {} - self._defaults['SetAttributeViInt64']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niScope_Abort(self, vi): # noqa: N802 - if self._defaults['Abort']['return'] != 0: - return self._defaults['Abort']['return'] - return self._defaults['Abort']['return'] - - def niScope_AcquisitionStatus(self, vi, acquisition_status): # noqa: N802 - if self._defaults['AcquisitionStatus']['return'] != 0: - return self._defaults['AcquisitionStatus']['return'] - # acquisition_status - if self._defaults['AcquisitionStatus']['acquisitionStatus'] is None: - raise MockFunctionCallError("niScope_AcquisitionStatus", param='acquisitionStatus') - if acquisition_status is not None: - acquisition_status.contents.value = self._defaults['AcquisitionStatus']['acquisitionStatus'] - return self._defaults['AcquisitionStatus']['return'] - - def niScope_ActualMeasWfmSize(self, vi, array_meas_function, meas_waveform_size): # noqa: N802 - if self._defaults['ActualMeasWfmSize']['return'] != 0: - return self._defaults['ActualMeasWfmSize']['return'] - # meas_waveform_size - if self._defaults['ActualMeasWfmSize']['measWaveformSize'] is None: - raise MockFunctionCallError("niScope_ActualMeasWfmSize", param='measWaveformSize') - if meas_waveform_size is not None: - meas_waveform_size.contents.value = self._defaults['ActualMeasWfmSize']['measWaveformSize'] - return self._defaults['ActualMeasWfmSize']['return'] - - def niScope_ActualNumWfms(self, vi, channel_list, num_wfms): # noqa: N802 - if self._defaults['ActualNumWfms']['return'] != 0: - return self._defaults['ActualNumWfms']['return'] - # num_wfms - if self._defaults['ActualNumWfms']['numWfms'] is None: - raise MockFunctionCallError("niScope_ActualNumWfms", param='numWfms') - if num_wfms is not None: - num_wfms.contents.value = self._defaults['ActualNumWfms']['numWfms'] - return self._defaults['ActualNumWfms']['return'] - - def niScope_AddWaveformProcessing(self, vi, channel_list, meas_function): # noqa: N802 - if self._defaults['AddWaveformProcessing']['return'] != 0: - return self._defaults['AddWaveformProcessing']['return'] - return self._defaults['AddWaveformProcessing']['return'] - - def niScope_AutoSetup(self, vi): # noqa: N802 - if self._defaults['AutoSetup']['return'] != 0: - return self._defaults['AutoSetup']['return'] - return self._defaults['AutoSetup']['return'] - - def niScope_CalFetchDate(self, vi, which_one, year, month, day): # noqa: N802 - if self._defaults['CalFetchDate']['return'] != 0: - return self._defaults['CalFetchDate']['return'] - # year - if self._defaults['CalFetchDate']['year'] is None: - raise MockFunctionCallError("niScope_CalFetchDate", param='year') - if year is not None: - year.contents.value = self._defaults['CalFetchDate']['year'] - # month - if self._defaults['CalFetchDate']['month'] is None: - raise MockFunctionCallError("niScope_CalFetchDate", param='month') - if month is not None: - month.contents.value = self._defaults['CalFetchDate']['month'] - # day - if self._defaults['CalFetchDate']['day'] is None: - raise MockFunctionCallError("niScope_CalFetchDate", param='day') - if day is not None: - day.contents.value = self._defaults['CalFetchDate']['day'] - return self._defaults['CalFetchDate']['return'] - - def niScope_CalFetchTemperature(self, vi, which_one, temperature): # noqa: N802 - if self._defaults['CalFetchTemperature']['return'] != 0: - return self._defaults['CalFetchTemperature']['return'] - # temperature - if self._defaults['CalFetchTemperature']['temperature'] is None: - raise MockFunctionCallError("niScope_CalFetchTemperature", param='temperature') - if temperature is not None: - temperature.contents.value = self._defaults['CalFetchTemperature']['temperature'] - return self._defaults['CalFetchTemperature']['return'] - - def niScope_CalSelfCalibrate(self, vi, channel_list, option): # noqa: N802 - if self._defaults['CalSelfCalibrate']['return'] != 0: - return self._defaults['CalSelfCalibrate']['return'] - return self._defaults['CalSelfCalibrate']['return'] - - def niScope_ClearWaveformMeasurementStats(self, vi, channel_list, clearable_measurement_function): # noqa: N802 - if self._defaults['ClearWaveformMeasurementStats']['return'] != 0: - return self._defaults['ClearWaveformMeasurementStats']['return'] - return self._defaults['ClearWaveformMeasurementStats']['return'] - - def niScope_ClearWaveformProcessing(self, vi, channel_list): # noqa: N802 - if self._defaults['ClearWaveformProcessing']['return'] != 0: - return self._defaults['ClearWaveformProcessing']['return'] - return self._defaults['ClearWaveformProcessing']['return'] - - def niScope_Commit(self, vi): # noqa: N802 - if self._defaults['Commit']['return'] != 0: - return self._defaults['Commit']['return'] - return self._defaults['Commit']['return'] - - def niScope_ConfigureChanCharacteristics(self, vi, channel_list, input_impedance, max_input_frequency): # noqa: N802 - if self._defaults['ConfigureChanCharacteristics']['return'] != 0: - return self._defaults['ConfigureChanCharacteristics']['return'] - return self._defaults['ConfigureChanCharacteristics']['return'] - - def niScope_ConfigureEqualizationFilterCoefficients(self, vi, channel_list, number_of_coefficients, coefficients): # noqa: N802 - if self._defaults['ConfigureEqualizationFilterCoefficients']['return'] != 0: - return self._defaults['ConfigureEqualizationFilterCoefficients']['return'] - return self._defaults['ConfigureEqualizationFilterCoefficients']['return'] - - def niScope_ConfigureHorizontalTiming(self, vi, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 - if self._defaults['ConfigureHorizontalTiming']['return'] != 0: - return self._defaults['ConfigureHorizontalTiming']['return'] - return self._defaults['ConfigureHorizontalTiming']['return'] - - def niScope_ConfigureRefLevels(self, vi, low, mid, high): # noqa: N802 - if self._defaults['ConfigureRefLevels']['return'] != 0: - return self._defaults['ConfigureRefLevels']['return'] - return self._defaults['ConfigureRefLevels']['return'] - - def niScope_ConfigureTriggerDigital(self, vi, trigger_source, slope, holdoff, delay): # noqa: N802 - if self._defaults['ConfigureTriggerDigital']['return'] != 0: - return self._defaults['ConfigureTriggerDigital']['return'] - return self._defaults['ConfigureTriggerDigital']['return'] - - def niScope_ConfigureTriggerEdge(self, vi, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 - if self._defaults['ConfigureTriggerEdge']['return'] != 0: - return self._defaults['ConfigureTriggerEdge']['return'] - return self._defaults['ConfigureTriggerEdge']['return'] - - def niScope_ConfigureTriggerHysteresis(self, vi, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 - if self._defaults['ConfigureTriggerHysteresis']['return'] != 0: - return self._defaults['ConfigureTriggerHysteresis']['return'] - return self._defaults['ConfigureTriggerHysteresis']['return'] - - def niScope_ConfigureTriggerImmediate(self, vi): # noqa: N802 - if self._defaults['ConfigureTriggerImmediate']['return'] != 0: - return self._defaults['ConfigureTriggerImmediate']['return'] - return self._defaults['ConfigureTriggerImmediate']['return'] - - def niScope_ConfigureTriggerSoftware(self, vi, holdoff, delay): # noqa: N802 - if self._defaults['ConfigureTriggerSoftware']['return'] != 0: - return self._defaults['ConfigureTriggerSoftware']['return'] - return self._defaults['ConfigureTriggerSoftware']['return'] - - def niScope_ConfigureTriggerVideo(self, vi, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 - if self._defaults['ConfigureTriggerVideo']['return'] != 0: - return self._defaults['ConfigureTriggerVideo']['return'] - return self._defaults['ConfigureTriggerVideo']['return'] - - def niScope_ConfigureTriggerWindow(self, vi, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 - if self._defaults['ConfigureTriggerWindow']['return'] != 0: - return self._defaults['ConfigureTriggerWindow']['return'] - return self._defaults['ConfigureTriggerWindow']['return'] - - def niScope_ConfigureVertical(self, vi, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 - if self._defaults['ConfigureVertical']['return'] != 0: - return self._defaults['ConfigureVertical']['return'] - return self._defaults['ConfigureVertical']['return'] - - def niScope_Disable(self, vi): # noqa: N802 - if self._defaults['Disable']['return'] != 0: - return self._defaults['Disable']['return'] - return self._defaults['Disable']['return'] - - def niScope_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - # configuration - if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: - raise MockFunctionCallError("niScope_ExportAttributeConfigurationBuffer", param='configuration') - if size_in_bytes.value == 0: - return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) - try: - configuration_ref = configuration.contents - except AttributeError: - configuration_ref = configuration - for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): - configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] - return self._defaults['ExportAttributeConfigurationBuffer']['return'] - - def niScope_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ExportAttributeConfigurationFile']['return'] - return self._defaults['ExportAttributeConfigurationFile']['return'] - - def niScope_Fetch(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - if self._defaults['Fetch']['return'] != 0: - return self._defaults['Fetch']['return'] - # waveform - if self._defaults['Fetch']['waveform'] is None: - raise MockFunctionCallError("niScope_Fetch", param='waveform') - test_value = self._defaults['Fetch']['waveform'] - try: - waveform_ref = waveform.contents - except AttributeError: - waveform_ref = waveform - assert len(waveform_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_ref[i] = test_value[i] - # wfm_info - if self._defaults['Fetch']['wfmInfo'] is None: - raise MockFunctionCallError("niScope_Fetch", param='wfmInfo') - test_value = self._defaults['Fetch']['wfmInfo'] - try: - wfm_info_ref = wfm_info.contents - except AttributeError: - wfm_info_ref = wfm_info - assert len(wfm_info_ref) >= len(test_value) - for i in range(len(test_value)): - wfm_info_ref[i] = test_value[i] - return self._defaults['Fetch']['return'] - - def niScope_FetchArrayMeasurement(self, vi, channel_list, timeout, array_meas_function, measurement_waveform_size, meas_wfm, wfm_info): # noqa: N802 - if self._defaults['FetchArrayMeasurement']['return'] != 0: - return self._defaults['FetchArrayMeasurement']['return'] - # meas_wfm - if self._defaults['FetchArrayMeasurement']['measWfm'] is None: - raise MockFunctionCallError("niScope_FetchArrayMeasurement", param='measWfm') - test_value = self._defaults['FetchArrayMeasurement']['measWfm'] - try: - meas_wfm_ref = meas_wfm.contents - except AttributeError: - meas_wfm_ref = meas_wfm - assert len(meas_wfm_ref) >= len(test_value) - for i in range(len(test_value)): - meas_wfm_ref[i] = test_value[i] - # wfm_info - if self._defaults['FetchArrayMeasurement']['wfmInfo'] is None: - raise MockFunctionCallError("niScope_FetchArrayMeasurement", param='wfmInfo') - test_value = self._defaults['FetchArrayMeasurement']['wfmInfo'] - try: - wfm_info_ref = wfm_info.contents - except AttributeError: - wfm_info_ref = wfm_info - assert len(wfm_info_ref) >= len(test_value) - for i in range(len(test_value)): - wfm_info_ref[i] = test_value[i] - return self._defaults['FetchArrayMeasurement']['return'] - - def niScope_FetchBinary16(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - if self._defaults['FetchBinary16']['return'] != 0: - return self._defaults['FetchBinary16']['return'] - # waveform - if self._defaults['FetchBinary16']['waveform'] is None: - raise MockFunctionCallError("niScope_FetchBinary16", param='waveform') - test_value = self._defaults['FetchBinary16']['waveform'] - try: - waveform_ref = waveform.contents - except AttributeError: - waveform_ref = waveform - assert len(waveform_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_ref[i] = test_value[i] - # wfm_info - if self._defaults['FetchBinary16']['wfmInfo'] is None: - raise MockFunctionCallError("niScope_FetchBinary16", param='wfmInfo') - test_value = self._defaults['FetchBinary16']['wfmInfo'] - try: - wfm_info_ref = wfm_info.contents - except AttributeError: - wfm_info_ref = wfm_info - assert len(wfm_info_ref) >= len(test_value) - for i in range(len(test_value)): - wfm_info_ref[i] = test_value[i] - return self._defaults['FetchBinary16']['return'] - - def niScope_FetchBinary32(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - if self._defaults['FetchBinary32']['return'] != 0: - return self._defaults['FetchBinary32']['return'] - # waveform - if self._defaults['FetchBinary32']['waveform'] is None: - raise MockFunctionCallError("niScope_FetchBinary32", param='waveform') - test_value = self._defaults['FetchBinary32']['waveform'] - try: - waveform_ref = waveform.contents - except AttributeError: - waveform_ref = waveform - assert len(waveform_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_ref[i] = test_value[i] - # wfm_info - if self._defaults['FetchBinary32']['wfmInfo'] is None: - raise MockFunctionCallError("niScope_FetchBinary32", param='wfmInfo') - test_value = self._defaults['FetchBinary32']['wfmInfo'] - try: - wfm_info_ref = wfm_info.contents - except AttributeError: - wfm_info_ref = wfm_info - assert len(wfm_info_ref) >= len(test_value) - for i in range(len(test_value)): - wfm_info_ref[i] = test_value[i] - return self._defaults['FetchBinary32']['return'] - - def niScope_FetchBinary8(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - if self._defaults['FetchBinary8']['return'] != 0: - return self._defaults['FetchBinary8']['return'] - # waveform - if self._defaults['FetchBinary8']['waveform'] is None: - raise MockFunctionCallError("niScope_FetchBinary8", param='waveform') - test_value = self._defaults['FetchBinary8']['waveform'] - try: - waveform_ref = waveform.contents - except AttributeError: - waveform_ref = waveform - assert len(waveform_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_ref[i] = test_value[i] - # wfm_info - if self._defaults['FetchBinary8']['wfmInfo'] is None: - raise MockFunctionCallError("niScope_FetchBinary8", param='wfmInfo') - test_value = self._defaults['FetchBinary8']['wfmInfo'] - try: - wfm_info_ref = wfm_info.contents - except AttributeError: - wfm_info_ref = wfm_info - assert len(wfm_info_ref) >= len(test_value) - for i in range(len(test_value)): - wfm_info_ref[i] = test_value[i] - return self._defaults['FetchBinary8']['return'] - - def niScope_FetchMeasurementStats(self, vi, channel_list, timeout, scalar_meas_function, result, mean, stdev, min, max, num_in_stats): # noqa: N802 - if self._defaults['FetchMeasurementStats']['return'] != 0: - return self._defaults['FetchMeasurementStats']['return'] - # result - if self._defaults['FetchMeasurementStats']['result'] is None: - raise MockFunctionCallError("niScope_FetchMeasurementStats", param='result') - test_value = self._defaults['FetchMeasurementStats']['result'] - try: - result_ref = result.contents - except AttributeError: - result_ref = result - assert len(result_ref) >= len(test_value) - for i in range(len(test_value)): - result_ref[i] = test_value[i] - # mean - if self._defaults['FetchMeasurementStats']['mean'] is None: - raise MockFunctionCallError("niScope_FetchMeasurementStats", param='mean') - test_value = self._defaults['FetchMeasurementStats']['mean'] - try: - mean_ref = mean.contents - except AttributeError: - mean_ref = mean - assert len(mean_ref) >= len(test_value) - for i in range(len(test_value)): - mean_ref[i] = test_value[i] - # stdev - if self._defaults['FetchMeasurementStats']['stdev'] is None: - raise MockFunctionCallError("niScope_FetchMeasurementStats", param='stdev') - test_value = self._defaults['FetchMeasurementStats']['stdev'] - try: - stdev_ref = stdev.contents - except AttributeError: - stdev_ref = stdev - assert len(stdev_ref) >= len(test_value) - for i in range(len(test_value)): - stdev_ref[i] = test_value[i] - # min - if self._defaults['FetchMeasurementStats']['min'] is None: - raise MockFunctionCallError("niScope_FetchMeasurementStats", param='min') - test_value = self._defaults['FetchMeasurementStats']['min'] - try: - min_ref = min.contents - except AttributeError: - min_ref = min - assert len(min_ref) >= len(test_value) - for i in range(len(test_value)): - min_ref[i] = test_value[i] - # max - if self._defaults['FetchMeasurementStats']['max'] is None: - raise MockFunctionCallError("niScope_FetchMeasurementStats", param='max') - test_value = self._defaults['FetchMeasurementStats']['max'] - try: - max_ref = max.contents - except AttributeError: - max_ref = max - assert len(max_ref) >= len(test_value) - for i in range(len(test_value)): - max_ref[i] = test_value[i] - # num_in_stats - if self._defaults['FetchMeasurementStats']['numInStats'] is None: - raise MockFunctionCallError("niScope_FetchMeasurementStats", param='numInStats') - test_value = self._defaults['FetchMeasurementStats']['numInStats'] - try: - num_in_stats_ref = num_in_stats.contents - except AttributeError: - num_in_stats_ref = num_in_stats - assert len(num_in_stats_ref) >= len(test_value) - for i in range(len(test_value)): - num_in_stats_ref[i] = test_value[i] - return self._defaults['FetchMeasurementStats']['return'] - - def niScope_GetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # value - if self._defaults['GetAttributeViBoolean']['value'] is None: - raise MockFunctionCallError("niScope_GetAttributeViBoolean", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViBoolean']['value'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niScope_GetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # value - if self._defaults['GetAttributeViInt32']['value'] is None: - raise MockFunctionCallError("niScope_GetAttributeViInt32", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt32']['value'] - return self._defaults['GetAttributeViInt32']['return'] - - def niScope_GetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViInt64']['return'] != 0: - return self._defaults['GetAttributeViInt64']['return'] - # value - if self._defaults['GetAttributeViInt64']['value'] is None: - raise MockFunctionCallError("niScope_GetAttributeViInt64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViInt64']['value'] - return self._defaults['GetAttributeViInt64']['return'] - - def niScope_GetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # value - if self._defaults['GetAttributeViReal64']['value'] is None: - raise MockFunctionCallError("niScope_GetAttributeViReal64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViReal64']['value'] - return self._defaults['GetAttributeViReal64']['return'] - - def niScope_GetAttributeViString(self, vi, channel_list, attribute_id, buf_size, value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # value - if self._defaults['GetAttributeViString']['value'] is None: - raise MockFunctionCallError("niScope_GetAttributeViString", param='value') - if buf_size.value == 0: - return len(self._defaults['GetAttributeViString']['value']) - value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niScope_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 - if self._defaults['GetChannelNameFromString']['return'] != 0: - return self._defaults['GetChannelNameFromString']['return'] - # names - if self._defaults['GetChannelNameFromString']['name'] is None: - raise MockFunctionCallError("niScope_GetChannelNameFromString", param='name') - if buffer_size.value == 0: - return len(self._defaults['GetChannelNameFromString']['name']) - names.value = self._defaults['GetChannelNameFromString']['name'].encode('ascii') - return self._defaults['GetChannelNameFromString']['return'] - - def niScope_GetEqualizationFilterCoefficients(self, vi, channel, number_of_coefficients, coefficients): # noqa: N802 - if self._defaults['GetEqualizationFilterCoefficients']['return'] != 0: - return self._defaults['GetEqualizationFilterCoefficients']['return'] - # coefficients - if self._defaults['GetEqualizationFilterCoefficients']['coefficients'] is None: - raise MockFunctionCallError("niScope_GetEqualizationFilterCoefficients", param='coefficients') - test_value = self._defaults['GetEqualizationFilterCoefficients']['coefficients'] - try: - coefficients_ref = coefficients.contents - except AttributeError: - coefficients_ref = coefficients - assert len(coefficients_ref) >= len(test_value) - for i in range(len(test_value)): - coefficients_ref[i] = test_value[i] - return self._defaults['GetEqualizationFilterCoefficients']['return'] - - def niScope_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niScope_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # description - if self._defaults['GetError']['description'] is None: - raise MockFunctionCallError("niScope_GetError", param='description') - if buffer_size.value == 0: - return len(self._defaults['GetError']['description']) - description.value = self._defaults['GetError']['description'].encode('ascii') - return self._defaults['GetError']['return'] - - def niScope_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 - if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - return self._defaults['ImportAttributeConfigurationBuffer']['return'] - - def niScope_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 - if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: - return self._defaults['ImportAttributeConfigurationFile']['return'] - return self._defaults['ImportAttributeConfigurationFile']['return'] - - def niScope_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 - if self._defaults['InitWithOptions']['return'] != 0: - return self._defaults['InitWithOptions']['return'] - # vi - if self._defaults['InitWithOptions']['vi'] is None: - raise MockFunctionCallError("niScope_InitWithOptions", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitWithOptions']['vi'] - return self._defaults['InitWithOptions']['return'] - - def niScope_InitiateAcquisition(self, vi): # noqa: N802 - if self._defaults['InitiateAcquisition']['return'] != 0: - return self._defaults['InitiateAcquisition']['return'] - return self._defaults['InitiateAcquisition']['return'] - - def niScope_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niScope_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niScope_ProbeCompensationSignalStart(self, vi): # noqa: N802 - if self._defaults['ProbeCompensationSignalStart']['return'] != 0: - return self._defaults['ProbeCompensationSignalStart']['return'] - return self._defaults['ProbeCompensationSignalStart']['return'] - - def niScope_ProbeCompensationSignalStop(self, vi): # noqa: N802 - if self._defaults['ProbeCompensationSignalStop']['return'] != 0: - return self._defaults['ProbeCompensationSignalStop']['return'] - return self._defaults['ProbeCompensationSignalStop']['return'] - - def niScope_Read(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 - if self._defaults['Read']['return'] != 0: - return self._defaults['Read']['return'] - # waveform - if self._defaults['Read']['waveform'] is None: - raise MockFunctionCallError("niScope_Read", param='waveform') - test_value = self._defaults['Read']['waveform'] - try: - waveform_ref = waveform.contents - except AttributeError: - waveform_ref = waveform - assert len(waveform_ref) >= len(test_value) - for i in range(len(test_value)): - waveform_ref[i] = test_value[i] - # wfm_info - if self._defaults['Read']['wfmInfo'] is None: - raise MockFunctionCallError("niScope_Read", param='wfmInfo') - test_value = self._defaults['Read']['wfmInfo'] - try: - wfm_info_ref = wfm_info.contents - except AttributeError: - wfm_info_ref = wfm_info - assert len(wfm_info_ref) >= len(test_value) - for i in range(len(test_value)): - wfm_info_ref[i] = test_value[i] - return self._defaults['Read']['return'] - - def niScope_ResetDevice(self, vi): # noqa: N802 - if self._defaults['ResetDevice']['return'] != 0: - return self._defaults['ResetDevice']['return'] - return self._defaults['ResetDevice']['return'] - - def niScope_ResetWithDefaults(self, vi): # noqa: N802 - if self._defaults['ResetWithDefaults']['return'] != 0: - return self._defaults['ResetWithDefaults']['return'] - return self._defaults['ResetWithDefaults']['return'] - - def niScope_SendSoftwareTriggerEdge(self, vi, which_trigger): # noqa: N802 - if self._defaults['SendSoftwareTriggerEdge']['return'] != 0: - return self._defaults['SendSoftwareTriggerEdge']['return'] - return self._defaults['SendSoftwareTriggerEdge']['return'] - - def niScope_SetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niScope_SetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niScope_SetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViInt64']['return'] != 0: - return self._defaults['SetAttributeViInt64']['return'] - return self._defaults['SetAttributeViInt64']['return'] - - def niScope_SetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niScope_SetAttributeViString(self, vi, channel_list, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niScope_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niScope_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niScope_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niScope_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niScope_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niScope_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niScope_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niScope_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niScope_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niScope_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niScope_Abort.side_effect = MockFunctionCallError("niScope_Abort") - mock_library.niScope_Abort.return_value = 0 - mock_library.niScope_AcquisitionStatus.side_effect = MockFunctionCallError("niScope_AcquisitionStatus") - mock_library.niScope_AcquisitionStatus.return_value = 0 - mock_library.niScope_ActualMeasWfmSize.side_effect = MockFunctionCallError("niScope_ActualMeasWfmSize") - mock_library.niScope_ActualMeasWfmSize.return_value = 0 - mock_library.niScope_ActualNumWfms.side_effect = MockFunctionCallError("niScope_ActualNumWfms") - mock_library.niScope_ActualNumWfms.return_value = 0 - mock_library.niScope_AddWaveformProcessing.side_effect = MockFunctionCallError("niScope_AddWaveformProcessing") - mock_library.niScope_AddWaveformProcessing.return_value = 0 - mock_library.niScope_AutoSetup.side_effect = MockFunctionCallError("niScope_AutoSetup") - mock_library.niScope_AutoSetup.return_value = 0 - mock_library.niScope_CalFetchDate.side_effect = MockFunctionCallError("niScope_CalFetchDate") - mock_library.niScope_CalFetchDate.return_value = 0 - mock_library.niScope_CalFetchTemperature.side_effect = MockFunctionCallError("niScope_CalFetchTemperature") - mock_library.niScope_CalFetchTemperature.return_value = 0 - mock_library.niScope_CalSelfCalibrate.side_effect = MockFunctionCallError("niScope_CalSelfCalibrate") - mock_library.niScope_CalSelfCalibrate.return_value = 0 - mock_library.niScope_ClearWaveformMeasurementStats.side_effect = MockFunctionCallError("niScope_ClearWaveformMeasurementStats") - mock_library.niScope_ClearWaveformMeasurementStats.return_value = 0 - mock_library.niScope_ClearWaveformProcessing.side_effect = MockFunctionCallError("niScope_ClearWaveformProcessing") - mock_library.niScope_ClearWaveformProcessing.return_value = 0 - mock_library.niScope_Commit.side_effect = MockFunctionCallError("niScope_Commit") - mock_library.niScope_Commit.return_value = 0 - mock_library.niScope_ConfigureChanCharacteristics.side_effect = MockFunctionCallError("niScope_ConfigureChanCharacteristics") - mock_library.niScope_ConfigureChanCharacteristics.return_value = 0 - mock_library.niScope_ConfigureEqualizationFilterCoefficients.side_effect = MockFunctionCallError("niScope_ConfigureEqualizationFilterCoefficients") - mock_library.niScope_ConfigureEqualizationFilterCoefficients.return_value = 0 - mock_library.niScope_ConfigureHorizontalTiming.side_effect = MockFunctionCallError("niScope_ConfigureHorizontalTiming") - mock_library.niScope_ConfigureHorizontalTiming.return_value = 0 - mock_library.niScope_ConfigureRefLevels.side_effect = MockFunctionCallError("niScope_ConfigureRefLevels") - mock_library.niScope_ConfigureRefLevels.return_value = 0 - mock_library.niScope_ConfigureTriggerDigital.side_effect = MockFunctionCallError("niScope_ConfigureTriggerDigital") - mock_library.niScope_ConfigureTriggerDigital.return_value = 0 - mock_library.niScope_ConfigureTriggerEdge.side_effect = MockFunctionCallError("niScope_ConfigureTriggerEdge") - mock_library.niScope_ConfigureTriggerEdge.return_value = 0 - mock_library.niScope_ConfigureTriggerHysteresis.side_effect = MockFunctionCallError("niScope_ConfigureTriggerHysteresis") - mock_library.niScope_ConfigureTriggerHysteresis.return_value = 0 - mock_library.niScope_ConfigureTriggerImmediate.side_effect = MockFunctionCallError("niScope_ConfigureTriggerImmediate") - mock_library.niScope_ConfigureTriggerImmediate.return_value = 0 - mock_library.niScope_ConfigureTriggerSoftware.side_effect = MockFunctionCallError("niScope_ConfigureTriggerSoftware") - mock_library.niScope_ConfigureTriggerSoftware.return_value = 0 - mock_library.niScope_ConfigureTriggerVideo.side_effect = MockFunctionCallError("niScope_ConfigureTriggerVideo") - mock_library.niScope_ConfigureTriggerVideo.return_value = 0 - mock_library.niScope_ConfigureTriggerWindow.side_effect = MockFunctionCallError("niScope_ConfigureTriggerWindow") - mock_library.niScope_ConfigureTriggerWindow.return_value = 0 - mock_library.niScope_ConfigureVertical.side_effect = MockFunctionCallError("niScope_ConfigureVertical") - mock_library.niScope_ConfigureVertical.return_value = 0 - mock_library.niScope_Disable.side_effect = MockFunctionCallError("niScope_Disable") - mock_library.niScope_Disable.return_value = 0 - mock_library.niScope_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niScope_ExportAttributeConfigurationBuffer") - mock_library.niScope_ExportAttributeConfigurationBuffer.return_value = 0 - mock_library.niScope_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niScope_ExportAttributeConfigurationFile") - mock_library.niScope_ExportAttributeConfigurationFile.return_value = 0 - mock_library.niScope_Fetch.side_effect = MockFunctionCallError("niScope_Fetch") - mock_library.niScope_Fetch.return_value = 0 - mock_library.niScope_FetchArrayMeasurement.side_effect = MockFunctionCallError("niScope_FetchArrayMeasurement") - mock_library.niScope_FetchArrayMeasurement.return_value = 0 - mock_library.niScope_FetchBinary16.side_effect = MockFunctionCallError("niScope_FetchBinary16") - mock_library.niScope_FetchBinary16.return_value = 0 - mock_library.niScope_FetchBinary32.side_effect = MockFunctionCallError("niScope_FetchBinary32") - mock_library.niScope_FetchBinary32.return_value = 0 - mock_library.niScope_FetchBinary8.side_effect = MockFunctionCallError("niScope_FetchBinary8") - mock_library.niScope_FetchBinary8.return_value = 0 - mock_library.niScope_FetchMeasurementStats.side_effect = MockFunctionCallError("niScope_FetchMeasurementStats") - mock_library.niScope_FetchMeasurementStats.return_value = 0 - mock_library.niScope_GetAttributeViBoolean.side_effect = MockFunctionCallError("niScope_GetAttributeViBoolean") - mock_library.niScope_GetAttributeViBoolean.return_value = 0 - mock_library.niScope_GetAttributeViInt32.side_effect = MockFunctionCallError("niScope_GetAttributeViInt32") - mock_library.niScope_GetAttributeViInt32.return_value = 0 - mock_library.niScope_GetAttributeViInt64.side_effect = MockFunctionCallError("niScope_GetAttributeViInt64") - mock_library.niScope_GetAttributeViInt64.return_value = 0 - mock_library.niScope_GetAttributeViReal64.side_effect = MockFunctionCallError("niScope_GetAttributeViReal64") - mock_library.niScope_GetAttributeViReal64.return_value = 0 - mock_library.niScope_GetAttributeViString.side_effect = MockFunctionCallError("niScope_GetAttributeViString") - mock_library.niScope_GetAttributeViString.return_value = 0 - mock_library.niScope_GetChannelNameFromString.side_effect = MockFunctionCallError("niScope_GetChannelNameFromString") - mock_library.niScope_GetChannelNameFromString.return_value = 0 - mock_library.niScope_GetEqualizationFilterCoefficients.side_effect = MockFunctionCallError("niScope_GetEqualizationFilterCoefficients") - mock_library.niScope_GetEqualizationFilterCoefficients.return_value = 0 - mock_library.niScope_GetError.side_effect = MockFunctionCallError("niScope_GetError") - mock_library.niScope_GetError.return_value = 0 - mock_library.niScope_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niScope_ImportAttributeConfigurationBuffer") - mock_library.niScope_ImportAttributeConfigurationBuffer.return_value = 0 - mock_library.niScope_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niScope_ImportAttributeConfigurationFile") - mock_library.niScope_ImportAttributeConfigurationFile.return_value = 0 - mock_library.niScope_InitWithOptions.side_effect = MockFunctionCallError("niScope_InitWithOptions") - mock_library.niScope_InitWithOptions.return_value = 0 - mock_library.niScope_InitiateAcquisition.side_effect = MockFunctionCallError("niScope_InitiateAcquisition") - mock_library.niScope_InitiateAcquisition.return_value = 0 - mock_library.niScope_LockSession.side_effect = MockFunctionCallError("niScope_LockSession") - mock_library.niScope_LockSession.return_value = 0 - mock_library.niScope_ProbeCompensationSignalStart.side_effect = MockFunctionCallError("niScope_ProbeCompensationSignalStart") - mock_library.niScope_ProbeCompensationSignalStart.return_value = 0 - mock_library.niScope_ProbeCompensationSignalStop.side_effect = MockFunctionCallError("niScope_ProbeCompensationSignalStop") - mock_library.niScope_ProbeCompensationSignalStop.return_value = 0 - mock_library.niScope_Read.side_effect = MockFunctionCallError("niScope_Read") - mock_library.niScope_Read.return_value = 0 - mock_library.niScope_ResetDevice.side_effect = MockFunctionCallError("niScope_ResetDevice") - mock_library.niScope_ResetDevice.return_value = 0 - mock_library.niScope_ResetWithDefaults.side_effect = MockFunctionCallError("niScope_ResetWithDefaults") - mock_library.niScope_ResetWithDefaults.return_value = 0 - mock_library.niScope_SendSoftwareTriggerEdge.side_effect = MockFunctionCallError("niScope_SendSoftwareTriggerEdge") - mock_library.niScope_SendSoftwareTriggerEdge.return_value = 0 - mock_library.niScope_SetAttributeViBoolean.side_effect = MockFunctionCallError("niScope_SetAttributeViBoolean") - mock_library.niScope_SetAttributeViBoolean.return_value = 0 - mock_library.niScope_SetAttributeViInt32.side_effect = MockFunctionCallError("niScope_SetAttributeViInt32") - mock_library.niScope_SetAttributeViInt32.return_value = 0 - mock_library.niScope_SetAttributeViInt64.side_effect = MockFunctionCallError("niScope_SetAttributeViInt64") - mock_library.niScope_SetAttributeViInt64.return_value = 0 - mock_library.niScope_SetAttributeViReal64.side_effect = MockFunctionCallError("niScope_SetAttributeViReal64") - mock_library.niScope_SetAttributeViReal64.return_value = 0 - mock_library.niScope_SetAttributeViString.side_effect = MockFunctionCallError("niScope_SetAttributeViString") - mock_library.niScope_SetAttributeViString.return_value = 0 - mock_library.niScope_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niScope_SetRuntimeEnvironment") - mock_library.niScope_SetRuntimeEnvironment.return_value = 0 - mock_library.niScope_UnlockSession.side_effect = MockFunctionCallError("niScope_UnlockSession") - mock_library.niScope_UnlockSession.return_value = 0 - mock_library.niScope_close.side_effect = MockFunctionCallError("niScope_close") - mock_library.niScope_close.return_value = 0 - mock_library.niScope_error_message.side_effect = MockFunctionCallError("niScope_error_message") - mock_library.niScope_error_message.return_value = 0 - mock_library.niScope_reset.side_effect = MockFunctionCallError("niScope_reset") - mock_library.niScope_reset.return_value = 0 - mock_library.niScope_self_test.side_effect = MockFunctionCallError("niScope_self_test") - mock_library.niScope_self_test.return_value = 0 diff --git a/generated/niscope/niscope/unit_tests/test_niscope.py b/generated/niscope/niscope/unit_tests/test_niscope.py deleted file mode 100644 index a9c5902b80..0000000000 --- a/generated/niscope/niscope/unit_tests/test_niscope.py +++ /dev/null @@ -1,38 +0,0 @@ -import array -import niscope.waveform_info - - -def test_populate_samples_info(): - waveform_infos = [] - for i in range(1, 4): - waveform_infos.append(niscope.waveform_info.WaveformInfo()) - waveform_infos[-1]._actual_samples = i - - sample_data = array.array('d', [0, 1, 2, 3, 4, 5, 6, 7, 8]) - niscope.waveform_info._populate_samples_info(waveform_infos, sample_data, 3) - - expected = [ - array.array('d', [0]), - array.array('d', [3, 4]), - array.array('d', [6, 7, 8]) - ] - for i in range(len(waveform_infos)): - assert waveform_infos[i]._actual_samples is None - assert waveform_infos[i].samples == expected[i] - - -def test_populate_channel_and_record_info(): - waveform_infos = [] - for i in range(6): - waveform_infos.append(niscope.waveform_info.WaveformInfo()) - - channels = ["Dev1/4", "Dev2/2"] - records = [0, 1, 2] - niscope.waveform_info._populate_channel_and_record_info(waveform_infos, channels, records) - - expected_channels = ["Dev1/4", "Dev2/2"] * len(records) - expected_records = [0, 0, 1, 1, 2, 2] - - for i in range(len(waveform_infos)): - assert waveform_infos[i].channel == expected_channels[i] - assert waveform_infos[i].record == expected_records[i] diff --git a/generated/niscope/niscope/waveform_info.py b/generated/niscope/niscope/waveform_info.py deleted file mode 100644 index 9268003f81..0000000000 --- a/generated/niscope/niscope/waveform_info.py +++ /dev/null @@ -1,148 +0,0 @@ -import ctypes - -import niscope._visatype - - -# This class is an internal implementation detail -# ctypes definition -# Name must match exactly what the name of the structure type is named in the C API. -class struct_niScope_wfmInfo(ctypes.Structure): # noqa N801 - _pack_ = 8 - _fields_ = [ - ('absolute_initial_x', niscope._visatype.ViReal64), - ('relative_initial_x', niscope._visatype.ViReal64), - ('x_increment', niscope._visatype.ViReal64), - ('actual_samples', niscope._visatype.ViInt32), - ('offset', niscope._visatype.ViReal64), - ('gain', niscope._visatype.ViReal64), - ('reserved1', niscope._visatype.ViReal64), - ('reserved2', niscope._visatype.ViReal64), - ] - - def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, - x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0, - reserved1=0.0, reserved2=0.0): - super(ctypes.Structure, self).__init__() - if data is not None: - self.absolute_initial_x = data.absolute_initial_x - self.relative_initial_x = data.relative_initial_x - self.x_increment = data.x_increment - self.actual_samples = data.actual_samples - self.offset = data.offset - self.gain = data.gain - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - else: - self.absolute_initial_x = absolute_initial_x - self.relative_initial_x = relative_initial_x - self.x_increment = x_increment - self.actual_samples = actual_samples - self.offset = offset - self.gain = gain - self.reserved1 = reserved1 - self.reserved2 = reserved2 - - -class WaveformInfo: - def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, - x_increment=0.0, offset=0.0, gain=0.0, - reserved1=0.0, reserved2=0.0): - if data is not None: - self.absolute_initial_x = data.absolute_initial_x - self.relative_initial_x = data.relative_initial_x - self.x_increment = data.x_increment - self.offset = data.offset - self.gain = data.gain - self.reserved1 = data.reserved1 - self.reserved2 = data.reserved2 - self._actual_samples = data.actual_samples - else: - self.absolute_initial_x = absolute_initial_x - self.relative_initial_x = relative_initial_x - self.x_increment = x_increment - self.offset = offset - self.gain = gain - self.reserved1 = reserved1 - self.reserved2 = reserved2 - # _actual_samples is only used to calculate the end of the waveform we extract from the - # entire 1D array of samples. It is only filled in when calling into the niscope driver. - self._actual_samples = None - - # Additional fields filled in during fetch or fetch_into - self.channel = None - self.record = None - self.samples = None - - def __repr__(self): - parameter_list = [ - f'absolute_initial_x={self.absolute_initial_x}', - f'relative_initial_x={self.relative_initial_x}', - f'x_increment={self.x_increment}', - f'offset={self.offset}', - f'gain={self.gain}' - ] - - return '{}({})'.format(self.__class__.__name__, ', '.join(parameter_list)) - - def __str__(self): - # different format lines - row_format_g = '{:<20}: {:,.6g}\n' - row_format_d = '{:<20}: {:,}\n' - row_format_s = '{:<20}: {:}\n' - - string_representation = '' - if self.channel is not None: # We explicitly look for not None to differentiate from empty string - string_representation += row_format_s.format('Channel', self.channel) - if self.record is not None: # We explicitly look for not None to differentiate from 0 - string_representation += row_format_d.format('Record', self.record) - - string_representation += row_format_g.format('Absolute X0', self.absolute_initial_x) - string_representation += row_format_g.format('Relative X0', self.relative_initial_x) - string_representation += row_format_g.format('dt', self.x_increment) - string_representation += row_format_g.format('Offset', self.offset) - string_representation += row_format_g.format('Gain', self.gain) - if self.samples is not None: # We explicitly look for not None to differentiate from empty array - string_representation += row_format_g.format('Waveform Length', len(self.samples)) - - # Put possible private variable last - if self._actual_samples is not None: # We explicitly look for not None to differentiate from 0 - string_representation += row_format_d.format('_actual samples', self._actual_samples) - - return string_representation - - -def _populate_samples_info(waveform_infos, sample_data, num_samples_per_waveform): - '''Chunk up flat array of sample_data and copy each chunk into individual WaveformInfo instance - - Args: - waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances - - sample_data (Iterable of float): Waveform sample data - - num_samples_per_waveform (int): Number of samples belonging to each waveform - ''' - for i in range(len(waveform_infos)): - start = i * num_samples_per_waveform - end = start + waveform_infos[i]._actual_samples - # We use the actual number of samples returned from the device to determine the end of the waveform. - # We then remove it from waveform_info since the length of the waveform will tell us that information. - waveform_infos[i]._actual_samples = None - waveform_infos[i].samples = sample_data[start:end] - - -def _populate_channel_and_record_info(waveform_infos, channels, records): - '''Populate the channel and record attributes of WaveformInfo instances - - Args: - waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances - - channels (Iterable of str): Channel names - - records (Iterable of int): Record numbers - ''' - i = 0 - for record in records: - for channel in channels: - waveform_infos[i].channel = channel - waveform_infos[i].record = record - i += 1 diff --git a/generated/niscope/setup.py b/generated/niscope/setup.py deleted file mode 100644 index dc67785cc0..0000000000 --- a/generated/niscope/setup.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'niscope' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-SCOPE Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['niscope'], - license='MIT', - include_package_data=True, - packages=['niscope'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - 'nitclk', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/niscope/tox-system_tests.ini b/generated/niscope/tox-system_tests.ini deleted file mode 100644 index f8f941d994..0000000000 --- a/generated/niscope/tox-system_tests.ini +++ /dev/null @@ -1,73 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/niscope) -[tox] -envlist = py{310,311,312,313,314}-niscope-wheel_dep,py{310,311,312,313,314}-niscope-system_tests, py314-niscope-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - niscope-wheel_dep: Build the nitclk wheel because we use it in niscope tests - niscope-system_tests: Run niscope system tests (requires NI-SCOPE runtime to be installed) - niscope-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - niscope-wheel_dep: ../nitclk - niscope-system_tests: . - niscope-coverage: . - -commands = - niscope-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - niscope-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - niscope-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. - niscope-system_tests: python -c "import niscope; niscope.print_diagnostic_information()" - niscope-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niscope --parallel-mode -m pytest ../../src/niscope/examples --junitxml=../junit/junit-niscope-{envname}-examples-{env:BITNESS:64}.xml {posargs} - niscope-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niscope --parallel-mode -m pytest ../../src/niscope/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-niscope-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - niscope-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - niscope-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - niscope-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - niscope-wheel_dep: build - - niscope-system_tests: pytest < 9.2.0 - niscope-system_tests: coverage - niscope-system_tests: numpy - niscope-system_tests: hightime - niscope-system_tests: fasteners - niscope-system_tests: pytest-json - niscope-system_tests: .[grpc] - - niscope-coverage: coverage - -depends = - niscope-coverage: py{310,311,312,313,314}-niscope-system_tests - niscope-system_tests: py{310,311,312,313,314}-niscope-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nise/README.rst b/generated/nise/README.rst deleted file mode 100644 index 29b1cd226e..0000000000 --- a/generated/nise/README.rst +++ /dev/null @@ -1,170 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nise** module provides a Python API for NI Switch Executive. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nise** supports all the Operating Systems supported by NI Switch Executive. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nise**. - - -NI Switch Executive Python API Status -------------------------------------- - -+-------------------------------+---------------------+ -| NI Switch Executive (nise) | | -+===============================+=====================+ -| Driver Version Tested Against | 2023 Q1 | -+-------------------------------+---------------------+ -| PyPI Version | |niseLatestVersion| | -+-------------------------------+---------------------+ -| Supported Python Version | |nisePythonVersion| | -+-------------------------------+---------------------+ -| Documentation | |niseDocs| | -+-------------------------------+---------------------+ -| Open Issues | |niseOpenIssues| | -+-------------------------------+---------------------+ -| Open Pull Requests | |niseOpenPRs| | -+-------------------------------+---------------------+ - - -.. |niseLatestVersion| image:: http://img.shields.io/pypi/v/nise.svg - :alt: Latest NI Switch Executive Version - :target: http://pypi.python.org/pypi/nise - - -.. |nisePythonVersion| image:: http://img.shields.io/pypi/pyversions/nise.svg - :alt: NI Switch Executive supported Python versions - :target: http://pypi.python.org/pypi/nise - - -.. |niseDocs| image:: https://readthedocs.org/projects/nise/badge/?version=latest - :alt: NI Switch Executive Python API Documentation Status - :target: https://nise.readthedocs.io/en/latest - - -.. |niseOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nise.svg - :alt: Open Issues + Pull Requests for NI Switch Executive - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anise - - -.. |niseOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nise.svg - :alt: Pull Requests for NI Switch Executive - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anise - - - -.. _nise_installation-section: - -Installation ------------- - -As a prerequisite to using the **nise** module, you must install the NI Switch Executive runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI Switch Executive**) can be installed with `pip `_:: - - $ python -m pip install nise - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nise** module to open a session to a Switch Executive Virtual Device and connect a routegroup. - -.. code-block:: python - - import nise - with nise.Session('SwitchExecutiveExample') as session: - session.connect('DIOToUUT') - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nise/nise/VERSION b/generated/nise/nise/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nise/nise/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nise/nise/__init__.py b/generated/nise/nise/__init__.py deleted file mode 100644 index b59e1efc03..0000000000 --- a/generated/nise/nise/__init__.py +++ /dev/null @@ -1,102 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nise.enums import * # noqa: F403,F401,H303 -from nise.errors import DriverWarning # noqa: F401 -from nise.errors import Error # noqa: F401 -from nise.session import Session # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\Switch Executive\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI Switch Executive" - info['driver']['version'] = driver_version - info['module']['name'] = 'nise' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nise/nise/_converters.py b/generated/nise/nise/_converters.py deleted file mode 100644 index 98fd3af425..0000000000 --- a/generated/nise/nise/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nise._visatype as _visatype -import nise.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/nise/nise/_library.py b/generated/nise/nise/_library.py deleted file mode 100644 index 05af687c9c..0000000000 --- a/generated/nise/nise/_library.py +++ /dev/null @@ -1,145 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nise.errors as errors -import threading - -from nise._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niSE_CloseSession_cfunc = None - self.niSE_Connect_cfunc = None - self.niSE_ConnectAndDisconnect_cfunc = None - self.niSE_Disconnect_cfunc = None - self.niSE_DisconnectAll_cfunc = None - self.niSE_ExpandRouteSpec_cfunc = None - self.niSE_FindRoute_cfunc = None - self.niSE_GetAllConnections_cfunc = None - self.niSE_GetError_cfunc = None - self.niSE_IsConnected_cfunc = None - self.niSE_IsDebounced_cfunc = None - self.niSE_OpenSession_cfunc = None - self.niSE_WaitForDebounce_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niSE_CloseSession(self, vi): # noqa: N802 - with self._func_lock: - if self.niSE_CloseSession_cfunc is None: - self.niSE_CloseSession_cfunc = self._get_library_function('niSE_CloseSession') - self.niSE_CloseSession_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSE_CloseSession_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_CloseSession_cfunc(vi) - - def niSE_Connect(self, vi, connect_spec, multiconnect_mode, wait_for_debounce): # noqa: N802 - with self._func_lock: - if self.niSE_Connect_cfunc is None: - self.niSE_Connect_cfunc = self._get_library_function('niSE_Connect') - self.niSE_Connect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViBoolean] # noqa: F405 - self.niSE_Connect_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_Connect_cfunc(vi, connect_spec, multiconnect_mode, wait_for_debounce) - - def niSE_ConnectAndDisconnect(self, vi, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce): # noqa: N802 - with self._func_lock: - if self.niSE_ConnectAndDisconnect_cfunc is None: - self.niSE_ConnectAndDisconnect_cfunc = self._get_library_function('niSE_ConnectAndDisconnect') - self.niSE_ConnectAndDisconnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViInt32, ViBoolean] # noqa: F405 - self.niSE_ConnectAndDisconnect_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_ConnectAndDisconnect_cfunc(vi, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce) - - def niSE_Disconnect(self, vi, disconnect_spec): # noqa: N802 - with self._func_lock: - if self.niSE_Disconnect_cfunc is None: - self.niSE_Disconnect_cfunc = self._get_library_function('niSE_Disconnect') - self.niSE_Disconnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSE_Disconnect_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_Disconnect_cfunc(vi, disconnect_spec) - - def niSE_DisconnectAll(self, vi): # noqa: N802 - with self._func_lock: - if self.niSE_DisconnectAll_cfunc is None: - self.niSE_DisconnectAll_cfunc = self._get_library_function('niSE_DisconnectAll') - self.niSE_DisconnectAll_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSE_DisconnectAll_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_DisconnectAll_cfunc(vi) - - def niSE_ExpandRouteSpec(self, vi, route_spec, expand_action, expanded_route_spec, expanded_route_spec_size): # noqa: N802 - with self._func_lock: - if self.niSE_ExpandRouteSpec_cfunc is None: - self.niSE_ExpandRouteSpec_cfunc = self._get_library_function('niSE_ExpandRouteSpec') - self.niSE_ExpandRouteSpec_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSE_ExpandRouteSpec_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_ExpandRouteSpec_cfunc(vi, route_spec, expand_action, expanded_route_spec, expanded_route_spec_size) - - def niSE_FindRoute(self, vi, channel1, channel2, route_spec, route_spec_size, path_capability): # noqa: N802 - with self._func_lock: - if self.niSE_FindRoute_cfunc is None: - self.niSE_FindRoute_cfunc = self._get_library_function('niSE_FindRoute') - self.niSE_FindRoute_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSE_FindRoute_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_FindRoute_cfunc(vi, channel1, channel2, route_spec, route_spec_size, path_capability) - - def niSE_GetAllConnections(self, vi, route_spec, route_spec_size): # noqa: N802 - with self._func_lock: - if self.niSE_GetAllConnections_cfunc is None: - self.niSE_GetAllConnections_cfunc = self._get_library_function('niSE_GetAllConnections') - self.niSE_GetAllConnections_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSE_GetAllConnections_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_GetAllConnections_cfunc(vi, route_spec, route_spec_size) - - def niSE_GetError(self, vi, error_number, error_description, error_description_size): # noqa: N802 - with self._func_lock: - if self.niSE_GetError_cfunc is None: - self.niSE_GetError_cfunc = self._get_library_function('niSE_GetError') - self.niSE_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSE_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_GetError_cfunc(vi, error_number, error_description, error_description_size) - - def niSE_IsConnected(self, vi, route_spec, is_connected): # noqa: N802 - with self._func_lock: - if self.niSE_IsConnected_cfunc is None: - self.niSE_IsConnected_cfunc = self._get_library_function('niSE_IsConnected') - self.niSE_IsConnected_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niSE_IsConnected_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_IsConnected_cfunc(vi, route_spec, is_connected) - - def niSE_IsDebounced(self, vi, is_debounced): # noqa: N802 - with self._func_lock: - if self.niSE_IsDebounced_cfunc is None: - self.niSE_IsDebounced_cfunc = self._get_library_function('niSE_IsDebounced') - self.niSE_IsDebounced_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niSE_IsDebounced_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_IsDebounced_cfunc(vi, is_debounced) - - def niSE_OpenSession(self, virtual_device_name, option_string, vi): # noqa: N802 - with self._func_lock: - if self.niSE_OpenSession_cfunc is None: - self.niSE_OpenSession_cfunc = self._get_library_function('niSE_OpenSession') - self.niSE_OpenSession_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 - self.niSE_OpenSession_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_OpenSession_cfunc(virtual_device_name, option_string, vi) - - def niSE_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 - with self._func_lock: - if self.niSE_WaitForDebounce_cfunc is None: - self.niSE_WaitForDebounce_cfunc = self._get_library_function('niSE_WaitForDebounce') - self.niSE_WaitForDebounce_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niSE_WaitForDebounce_cfunc.restype = ViStatus # noqa: F405 - return self.niSE_WaitForDebounce_cfunc(vi, maximum_time_ms) diff --git a/generated/nise/nise/_library_interpreter.py b/generated/nise/nise/_library_interpreter.py deleted file mode 100644 index ad3f07dd8d..0000000000 --- a/generated/nise/nise/_library_interpreter.py +++ /dev/null @@ -1,188 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import nise._library_singleton as _library_singleton -import nise._visatype as _visatype -import nise.enums as enums # noqa: F401 -import nise.errors as errors - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error([1024]) - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - return "Failed to retrieve error description." - - def close_session(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSE_CloseSession(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def connect(self, connect_spec, multiconnect_mode, wait_for_debounce): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - connect_spec_ctype = ctypes.create_string_buffer(connect_spec.encode(self._encoding)) # case C020 - multiconnect_mode_ctype = _visatype.ViInt32(multiconnect_mode.value) # case S130 - wait_for_debounce_ctype = _visatype.ViBoolean(wait_for_debounce) # case S150 - error_code = self._library.niSE_Connect(vi_ctype, connect_spec_ctype, multiconnect_mode_ctype, wait_for_debounce_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def connect_and_disconnect(self, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - connect_spec_ctype = ctypes.create_string_buffer(connect_spec.encode(self._encoding)) # case C020 - disconnect_spec_ctype = ctypes.create_string_buffer(disconnect_spec.encode(self._encoding)) # case C020 - multiconnect_mode_ctype = _visatype.ViInt32(multiconnect_mode.value) # case S130 - operation_order_ctype = _visatype.ViInt32(operation_order.value) # case S130 - wait_for_debounce_ctype = _visatype.ViBoolean(wait_for_debounce) # case S150 - error_code = self._library.niSE_ConnectAndDisconnect(vi_ctype, connect_spec_ctype, disconnect_spec_ctype, multiconnect_mode_ctype, operation_order_ctype, wait_for_debounce_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disconnect(self, disconnect_spec): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - disconnect_spec_ctype = ctypes.create_string_buffer(disconnect_spec.encode(self._encoding)) # case C020 - error_code = self._library.niSE_Disconnect(vi_ctype, disconnect_spec_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disconnect_all(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSE_DisconnectAll(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def expand_route_spec(self, route_spec, expand_action, expanded_route_spec_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - route_spec_ctype = ctypes.create_string_buffer(route_spec.encode(self._encoding)) # case C020 - expand_action_ctype = _visatype.ViInt32(expand_action.value) # case S130 - expanded_route_spec_ctype = (_visatype.ViChar * expanded_route_spec_size[0])() # case C080 - expanded_route_spec_size_ctype = _get_ctypes_pointer_for_buffer(value=expanded_route_spec_size, library_type=_visatype.ViInt32) # case B550 - error_code = self._library.niSE_ExpandRouteSpec(vi_ctype, route_spec_ctype, expand_action_ctype, expanded_route_spec_ctype, expanded_route_spec_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return expanded_route_spec_ctype.value.decode(self._encoding) - - def find_route(self, channel1, channel2, route_spec_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 - channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 - route_spec_ctype = (_visatype.ViChar * route_spec_size[0])() # case C080 - route_spec_size_ctype = _get_ctypes_pointer_for_buffer(value=route_spec_size, library_type=_visatype.ViInt32) # case B550 - path_capability_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niSE_FindRoute(vi_ctype, channel1_ctype, channel2_ctype, route_spec_ctype, route_spec_size_ctype, None if path_capability_ctype is None else (ctypes.pointer(path_capability_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return route_spec_ctype.value.decode(self._encoding), enums.PathCapability(path_capability_ctype.value) - - def get_all_connections(self, route_spec_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - route_spec_ctype = (_visatype.ViChar * route_spec_size[0])() # case C080 - route_spec_size_ctype = _get_ctypes_pointer_for_buffer(value=route_spec_size, library_type=_visatype.ViInt32) # case B550 - error_code = self._library.niSE_GetAllConnections(vi_ctype, route_spec_ctype, route_spec_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return route_spec_ctype.value.decode(self._encoding) - - def get_error(self, error_description_size): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_number_ctype = _visatype.ViInt32() # case S220 - error_description_ctype = (_visatype.ViChar * error_description_size[0])() # case C080 - error_description_size_ctype = _get_ctypes_pointer_for_buffer(value=error_description_size, library_type=_visatype.ViInt32) # case B550 - error_code = self._library.niSE_GetError(vi_ctype, None if error_number_ctype is None else (ctypes.pointer(error_number_ctype)), error_description_ctype, error_description_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_number_ctype.value), error_description_ctype.value.decode(self._encoding) - - def is_connected(self, route_spec): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - route_spec_ctype = ctypes.create_string_buffer(route_spec.encode(self._encoding)) # case C020 - is_connected_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niSE_IsConnected(vi_ctype, route_spec_ctype, None if is_connected_ctype is None else (ctypes.pointer(is_connected_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(is_connected_ctype.value) - - def is_debounced(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - is_debounced_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niSE_IsDebounced(vi_ctype, None if is_debounced_ctype is None else (ctypes.pointer(is_debounced_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(is_debounced_ctype.value) - - def open_session(self, virtual_device_name, option_string): # noqa: N802 - virtual_device_name_ctype = ctypes.create_string_buffer(virtual_device_name.encode(self._encoding)) # case C020 - option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niSE_OpenSession(virtual_device_name_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(vi_ctype.value) - - def wait_for_debounce(self, maximum_time_ms): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ms_ctype = _visatype.ViInt32(maximum_time_ms) # case S150 - error_code = self._library.niSE_WaitForDebounce(vi_ctype, maximum_time_ms_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return diff --git a/generated/nise/nise/_library_singleton.py b/generated/nise/nise/_library_singleton.py deleted file mode 100644 index c0b3d31a81..0000000000 --- a/generated/nise/nise/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nise._library as _library -import nise.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nise', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'nise.dll', 'type': 'windll'}, - '64bit': {'name': 'nise.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nise. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nise/nise/_visatype.py b/generated/nise/nise/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nise/nise/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nise/nise/enums.py b/generated/nise/nise/enums.py deleted file mode 100644 index 7a377b806c..0000000000 --- a/generated/nise/nise/enums.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class ExpandAction(Enum): - ROUTES = 0 - r''' - Expand to routes - ''' - PATHS = 1 - r''' - Expand to paths - ''' - - -class MulticonnectMode(Enum): - DEFAULT = -1 - r''' - Default - ''' - NO_MULTICONNECT = 0 - r''' - No multiconnect - ''' - MULTICONNECT = 1 - r''' - Multiconnect - ''' - - -class OperationOrder(Enum): - BEFORE = 1 - r''' - Break before make - ''' - AFTER = 2 - r''' - Break after make - ''' - - -class PathCapability(Enum): - PATH_NEEDS_HARDWIRE = -2 - r''' - Path needs hardwire - ''' - PATH_NEEDS_CONFIG_CHANNEL = -1 - r''' - Path needs config channel - ''' - PATH_AVAILABLE = 1 - r''' - Path available - ''' - PATH_EXISTS = 2 - r''' - Path exists - ''' - PATH_UNSUPPORTED = 3 - r''' - Path Unsupported - ''' - RESOURCE_IN_USE = 4 - r''' - Resource in use - ''' - EXCLUSION_CONFLICT = 5 - r''' - Exclusion conflict - ''' - CHANNEL_NOT_AVAILABLE = 6 - r''' - Channel not available - ''' - CHANNELS_HARDWIRED = 7 - r''' - Channels hardwired - ''' diff --git a/generated/nise/nise/errors.py b/generated/nise/nise/errors.py deleted file mode 100644 index 4a084bfcf7..0000000000 --- a/generated/nise/nise/errors.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI Switch Executive''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI Switch Executive driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI Switch Executive driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI Switch Executive runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI Switch Executive driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI Switch Executive runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI Switch Executive driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI Switch Executive runtime returned an unexpected value. This can occur if it is too new for the nise Python module. Upgrade the nise Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nise.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nise/nise/session.py b/generated/nise/nise/session.py deleted file mode 100644 index 095ecf57fa..0000000000 --- a/generated/nise/nise/session.py +++ /dev/null @@ -1,632 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 - -import nise._converters as _converters -import nise._library_interpreter as _library_interpreter -import nise.enums as enums -import nise.errors as errors - -import hightime - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _SessionBase(object): - '''Base class for all NI Switch Executive sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('nise', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - -class Session(_SessionBase): - '''An NI Switch Executive session''' - - def __init__(self, virtual_device_name, options={}): - r'''An NI Switch Executive session - - Opens a session to a specified NI Switch Executive virtual device. Opens - communications with all of the IVI switches associated with the - specified NI Switch Executive virtual device. Returns a session handle - that you use to identify the virtual device in all subsequent NI Switch - Executive method calls. NI Switch Executive uses a reference counting - scheme to manage open session handles to an NI Switch Executive virtual - device. Each call to __init__ must be matched with a subsequent - call to close. Successive calls to __init__ with - the same virtual device name always returns the same session handle. NI - Switch Executive disconnects its communication with the IVI switches - after all session handles are closed to a given virtual device. The - session handles may be used safely in multiple threads of an - application. Sessions may only be opened to a given NI Switch Executive - virtual device from a single process at a time. - - Args: - virtual_device_name (str): The name of the NI Switch Executive virtual device. - - options (dict): Specifies the initial value of certain properties for the session. The - syntax for **options** is a dictionary of properties with an assigned - value. For example: - - { 'simulate': False } - - You do not have to specify a value for all the properties. If you do not - specify a value for a property, the default value is used. - - Advanced Example: - { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } - - +-------------------------+---------+ - | Property | Default | - +=========================+=========+ - | range_check | True | - +-------------------------+---------+ - | query_instrument_status | False | - +-------------------------+---------+ - | cache | True | - +-------------------------+---------+ - | simulate | False | - +-------------------------+---------+ - | record_value_coersions | False | - +-------------------------+---------+ - | driver_setup | {} | - +-------------------------+---------+ - - - Returns: - session (nise.Session): A session object representing the device. - - ''' - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - options = _converters.convert_init_with_options_dictionary(options) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _open_session fails, the error handler can reference it. - # And then here, once _open_session succeeds, we call set_session_handle - # with the actual session handle. - self._interpreter.set_session_handle(self._open_session(virtual_device_name, options)) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("virtual_device_name=" + pp.pformat(virtual_device_name)) - param_list.append("options=" + pp.pformat(options)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self.close() - - def close(self): - '''close - - Reduces the reference count of open sessions by one. If the reference - count goes to 0, the method deallocates any memory resources the - driver uses and closes any open IVI switch sessions. After calling the - close method, you should not use the NI Switch Executive - virtual device again until you call __init__. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close_session() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - def _close_session(self): - r'''_close_session - - Reduces the reference count of open sessions by one. If the reference - count goes to 0, the method deallocates any memory resources the - driver uses and closes any open IVI switch sessions. After calling the - close method, you should not use the NI Switch Executive - virtual device again until you call __init__. - ''' - self._interpreter.close_session() - - def connect(self, connect_spec, multiconnect_mode=enums.MulticonnectMode.DEFAULT, wait_for_debounce=True): - r'''connect - - Connects the routes specified by the connection specification. When - connecting, it may allow for multiconnection based on the - multiconnection mode. In the event of an error, the call to - connect will attempt to undo any connections made so that the - system will be left in the same state that it was in before the call was - made. Some errors can be caught before manipulating hardware, although - it is feasible that a hardware call could fail causing some connections - to be momentarily closed and then reopened. If the wait for debounce - parameter is set, the method will not return until the switch system - has debounced. - - Args: - connect_spec (str): String describing the connections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - multiconnect_mode (enums.MulticonnectMode): This value sets the connection mode for the method. The mode might be - one of the following: NISE_VAL_USE_DEFAULT_MODE (-1) - uses the mode - selected as the default for the route in the NI Switch Executive virtual - device configuration. If a mode has not been selected for the route in - the NI Switch Executive virtual device, this parameter defaults to - NISE_VAL_MULTICONNECT_ROUTES. MulticonnectMode.NO_MULTICONNECT (0) - - routes specified in the connection specification must be disconnected - before they can be reconnected. Calling Connect on a route that was - connected using No Multiconnect mode results in an error condition. - NISE_VAL_MULTICONNECT_ROUTES (1)- routes specified in the connection - specification can be connected multiple times. The first call to Connect - performs the physical hardware connection. Successive calls to Connect - increase a connection reference count. Similarly, calls to Disconnect - decrease the reference count. Once it reaches 0, the hardware is - physically disconnected. Multiconnecting routes applies to entire routes - and not to route segments. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - wait_for_debounce (bool): Waits (if true) for switches to debounce between its connect and - disconnect operations. If false, it immediately begins the second - operation after completing the first. The order of connect and - disconnect operation is set by the Operation Order input. - - ''' - if type(multiconnect_mode) is not enums.MulticonnectMode: - raise TypeError('Parameter multiconnect_mode must be of type ' + str(enums.MulticonnectMode)) - self._interpreter.connect(connect_spec, multiconnect_mode, wait_for_debounce) - - def connect_and_disconnect(self, connect_spec, disconnect_spec, multiconnect_mode=enums.MulticonnectMode.DEFAULT, operation_order=enums.OperationOrder.AFTER, wait_for_debounce=True): - r'''connect_and_disconnect - - Connects routes and disconnects routes in a similar fashion to - connect and disconnect except that the operations happen in - the context of a single method call. This method is useful for - switching from one state to another state. connect_and_disconnect - manipulates the hardware connections and disconnections only when the - routes are different between the connection and disconnection - specifications. If any routes are common between the connection and - disconnection specifications, NI Switch Executive determines whether or - not the relays need to be switched. This functionality has the distinct - advantage of increased throughput for shared connections, because - hardware does not have to be involved and potentially increases relay - lifetime by decreasing the number of times that the relay has to be - switched. In the event of an error, the call to - connect_and_disconnect attempts to undo any connections made, but - does not attempt to reconnect disconnections. Some errors can be caught - before manipulating hardware, although it is feasible that a hardware - call could fail causing some connections to be momentarily closed and - then reopened. - - Args: - connect_spec (str): String describing the connections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - disconnect_spec (str): String describing the disconnections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - multiconnect_mode (enums.MulticonnectMode): This value sets the connection mode for the method. The mode might be - one of the following: NISE_VAL_USE_DEFAULT_MODE (-1) - uses the mode - selected as the default for the route in the NI Switch Executive virtual - device configuration. If a mode has not been selected for the route in - the NI Switch Executive virtual device, this parameter defaults to - NISE_VAL_MULTICONNECT_ROUTES. MulticonnectMode.NO_MULTICONNECT (0) - - routes specified in the connection specification must be disconnected - before they can be reconnected. Calling Connect on a route that was - connected using No Multiconnect mode results in an error condition. - NISE_VAL_MULTICONNECT_ROUTES (1) - routes specified in the connection - specification can be connected multiple times. The first call to Connect - performs the physical hardware connection. Successive calls to Connect - increase a connection reference count. Similarly, calls to Disconnect - decrease the reference count. Once it reaches 0, the hardware is - physically disconnected. This behavior is slightly different with SPDT - relays. For more information, refer to the Exclusions and SPDT Relays - topic in the NI Switch Executive Help. Multiconnecting routes applies to - entire routes and not to route segments. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - operation_order (enums.OperationOrder): Sets the order of the operation for the method. Defined values are - Break Before Make and Break After Make. OperationOrder.BEFORE - (1) - The method disconnects the routes specified in the disconnect - specification before connecting the routes specified in the connect - specification. This is the typical mode of operation. - OperationOrder.AFTER (2) - The method connects the routes - specified in the connection specification before connecting the routes - specified in the disconnection specification. This mode of operation is - normally used when you are switching current and want to ensure that a - load is always connected to your source. The order of operation is to - connect first or disconnect first. - - wait_for_debounce (bool): Waits (if true) for switches to debounce between its connect and - disconnect operations. If false, it immediately begins the second - operation after completing the first. The order of connect and - disconnect operation is set by the Operation Order input. - - ''' - if type(multiconnect_mode) is not enums.MulticonnectMode: - raise TypeError('Parameter multiconnect_mode must be of type ' + str(enums.MulticonnectMode)) - if type(operation_order) is not enums.OperationOrder: - raise TypeError('Parameter operation_order must be of type ' + str(enums.OperationOrder)) - self._interpreter.connect_and_disconnect(connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce) - - def disconnect(self, disconnect_spec): - r'''disconnect - - Disconnects the routes specified in the Disconnection Specification. If - any of the specified routes were originally connected in a - multiconnected mode, the call to disconnect reduces the reference - count on the route by 1. If the reference count reaches 0, it is - disconnected. If a specified route does not exist, it is an error - condition. In the event of an error, the call to disconnect - continues to try to disconnect everything specified by the route - specification string but reports the error on completion. - - Args: - disconnect_spec (str): String describing the disconnections to be made. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - ''' - self._interpreter.disconnect(disconnect_spec) - - def disconnect_all(self): - r'''disconnect_all - - Disconnects all connections on every IVI switch device managed by the - NISE session reference passed to this method. disconnect_all - ignores all multiconnect modes. Calling disconnect_all resets all - of the switch states for the system. - ''' - self._interpreter.disconnect_all() - - def expand_route_spec(self, route_spec, expand_action=enums.ExpandAction.ROUTES, expanded_route_spec_size=[1024]): - r'''expand_route_spec - - Expands a route spec string to yield more information about the routes - and route groups within the spec. The route specification string - returned from expand_route_spec can be passed to other Switch - Executive API methods (such as connect, disconnect, and - connect_and_disconnect) that use route specification strings. - - Args: - route_spec (str): String describing the routes and route groups to expand. The route - specification strings are best summarized as a series of routes - delimited by ampersands. The specified routes may be route names, route - group names, or fully specified route paths delimited by square - brackets. Some examples of route specification strings are: MyRoute - MyRouteGroup MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & - MyRouteGroup & [A->Switch1/r0->B] Refer to Route Specification Strings - in the NI Switch Executive Help for more information. - - expand_action (enums.ExpandAction): This value sets the expand action for the method. The action might be - one of the following: ExpandAction.ROUTES (0) - expands the - route spec to routes. Converts route groups to their constituent routes. - ExpandAction.PATHS (1) - expands the route spec to paths. - Converts routes and route groups to their constituent square bracket - route spec strings. Example: [Dev1/c0->Dev1/r0->Dev1/c1] - - expanded_route_spec_size (list of int): The routeSpecSize is an ViInt32 that is passed by reference into the - method. As an input, it is the size of the route spec string buffer - being passed. If the route spec string is larger than the string buffer - being passed, only the portion of the route spec string that can fit in - the string buffer is copied into it. On return from the method, - routeSpecSize holds the size required to hold the entire route spec - string. Note that this size may be larger than the buffer size as the - method always returns the size needed to hold the entire buffer. You - may pass NULL for this parameter if you are not interested in the return - value for routeSpecSize and routeSpec. - - - Returns: - expanded_route_spec (str): The expanded route spec. Route specification strings can be directly - passed to connect, disconnect, or connect_and_disconnect - Refer to Route Specification Strings in the NI Switch Executive Help for - more information. You may pass NULL for this parameter if you are not - interested in the return value. To obtain the route specification - string, you should pass a buffer to this parameter. The size of the - buffer required may be obtained by calling the method with NULL for - this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize - will contain the size needed to hold the entire route specification - (including the NULL termination character). Common operation is to call - the method twice. The first time you call the method you can - determine the size needed to hold the route specification string. - Allocate a buffer of the appropriate size and then re-call the method - to obtain the entire buffer. - - ''' - if type(expand_action) is not enums.ExpandAction: - raise TypeError('Parameter expand_action must be of type ' + str(enums.ExpandAction)) - expanded_route_spec = self._interpreter.expand_route_spec(route_spec, expand_action, expanded_route_spec_size) - return expanded_route_spec - - def find_route(self, channel1, channel2, route_spec_size=[1024]): - r'''find_route - - Finds an existing or potential route between channel 1 and channel 2. - The returned route specification contains the route specification and - the route capability determines whether or not the route existed, is - possible, or is not possible for various reasons. The route - specification string returned from find_route can be passed to - other Switch Executive API methods (such as connect, - disconnect, and connect_and_disconnect) that use route - specification strings. - - Args: - channel1 (str): Channel name of one of the endpoints of the route to find. The channel - name must either be a channel alias name or a name in the - device/ivichannel syntax. Examples: MyChannel Switch1/R0 - - channel2 (str): Channel name of one of the endpoints of the route to find. The channel - name must either be a channel alias name or a name in the - device/ivichannel syntax. Examples: MyChannel Switch1/R0 - - route_spec_size (list of int): The routeSpecSize is an ViInt32 that is passed by reference into the - method. As an input, it is the size of the route string buffer being - passed. If the route string is larger than the string buffer being - passed, only the portion of the route string that can fit in the string - buffer is copied into it. On return from the method, routeSpecSize - holds the size required to hold the entire route string. Note that this - size may be larger than the buffer size as the method always returns - the size needed to hold the entire buffer. You may pass NULL for this - parameter if you are not interested in the return value for - routeSpecSize and routeSpec. - - - Returns: - route_spec (str): The fully specified route path complete with delimiting square - brackets if the route exists or is possible. An example of a fully - specified route string is: [A->Switch1/r0->B] Route specification - strings can be directly passed to connect, disconnect, or - connect_and_disconnect Refer to Route Specification Strings in the - NI Switch Executive Help for more information. You may pass NULL for - this parameter if you are not interested in the return value. To obtain - the route specification string, you should pass a buffer to this - parameter. The size of the buffer required may be obtained by calling - the method with NULL for this parameter and a valid ViInt32 to - routeSpecSize. The routeSpecSize will contain the size needed to hold - the entire route specification (including the NULL termination - character). Common operation is to call the method twice. The first - time you call the method you can determine the size needed to hold the - route specification string. Allocate a buffer of the appropriate size - and then re-call the method to obtain the entire buffer. - - path_capability (enums.PathCapability): The return value which expresses the capability of finding a valid route - between Channel 1 and Channel 2. Refer to the table below for value - descriptions. You may pass NULL for this parameter if you are not - interested in the return value. Route capability might be one of the - following: Path Available (1) A path between channel 1 and channel 2 is - available. The route specification parameter returns a string describing - the available path. Path Exists (2) A path between channel 1 and channel - 2 already exists. The route specification parameter returns a string - describing the existing path. Path Unsupported (3) There is no potential - path between channel 1 and channel 2 given the current configuration. - Resource In Use (4) There is a potential path between channel 1 and - channel 2, although a resource needed to complete the path is already in - use. Source Conflict (5) Channel 1 and channel 2 cannot be connected - because their connection would result in an exclusion violation. Channel - Not Available (6) One of the channels is not useable as an endpoint - channel. Make sure that it is not marked as a reserved for routing. - Channels Hardwired (7) The two channels reside on the same hardwire. An - implicit path already exists. - - ''' - route_spec, path_capability = self._interpreter.find_route(channel1, channel2, route_spec_size) - return route_spec, path_capability - - def get_all_connections(self, route_spec_size=[1024]): - r'''get_all_connections - - Returns the top-level connected routes and route groups. The route - specification string returned from get_all_connections can be passed - to other Switch Executive API methods (such as connect, - disconnect, connect_and_disconnect, and expand_route_spec) - that use route specification strings. - - Args: - route_spec_size (list of int): The routeSpecSize is an ViInt32 that is passed by reference into the - method. As an input, it is the size of the route spec string buffer - being passed. If the route spec string is larger than the string buffer - being passed, only the portion of the route spec string that can fit in - the string buffer is copied into it. On return from the method, - routeSpecSize holds the size required to hold the entire route spec - string. Note that this size may be larger than the buffer size as the - method always returns the size needed to hold the entire buffer. You - may pass NULL for this parameter if you are not interested in the return - value for routeSpecSize and routeSpec. - - - Returns: - route_spec (str): The route spec of all currently connected routes and route groups. Route - specification strings can be directly passed to connect, - disconnect, connect_and_disconnect, or expand_route_spec - Refer to Route Specification Strings in the NI Switch Executive Help for - more information. You may pass NULL for this parameter if you are not - interested in the return value. To obtain the route specification - string, you should pass a buffer to this parameter. The size of the - buffer required may be obtained by calling the method with NULL for - this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize - will contain the size needed to hold the entire route specification - (including the NULL termination character). Common operation is to call - the method twice. The first time you call the method you can - determine the size needed to hold the route specification string. - Allocate a buffer of the appropriate size and then re-call the method - to obtain the entire buffer. - - ''' - route_spec = self._interpreter.get_all_connections(route_spec_size) - return route_spec - - def is_connected(self, route_spec): - r'''is_connected - - Checks whether the specified routes and routes groups are connected. It - returns true if connected. - - Args: - route_spec (str): String describing the connections to check. The route specification - strings are best summarized as a series of routes delimited by - ampersands. The specified routes may be route names, route group names, - or fully specified route paths delimited by square brackets. Some - examples of route specification strings are: MyRoute MyRouteGroup - MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & - [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch - Executive Help for more information. - - - Returns: - is_connected (bool): Returns TRUE if the routes and routes groups are connected or FALSE if - they are not. - - ''' - is_connected = self._interpreter.is_connected(route_spec) - return is_connected - - def is_debounced(self): - r'''is_debounced - - Checks to see if the switching system is debounced or not. This method - does not wait for debouncing to occur. It returns true if the system is - fully debounced. This method is similar to the IviSwtch specific - method. - - Returns: - is_debounced (bool): Returns TRUE if the system is fully debounced or FALSE if it is still - settling. - - ''' - is_debounced = self._interpreter.is_debounced() - return is_debounced - - def _open_session(self, virtual_device_name, option_string=""): - r'''_open_session - - Opens a session to a specified NI Switch Executive virtual device. Opens - communications with all of the IVI switches associated with the - specified NI Switch Executive virtual device. Returns a session handle - that you use to identify the virtual device in all subsequent NI Switch - Executive method calls. NI Switch Executive uses a reference counting - scheme to manage open session handles to an NI Switch Executive virtual - device. Each call to __init__ must be matched with a subsequent - call to close. Successive calls to __init__ with - the same virtual device name always returns the same session handle. NI - Switch Executive disconnects its communication with the IVI switches - after all session handles are closed to a given virtual device. The - session handles may be used safely in multiple threads of an - application. Sessions may only be opened to a given NI Switch Executive - virtual device from a single process at a time. - - Args: - virtual_device_name (str): The name of the NI Switch Executive virtual device. - - option_string (dict): The option string can be used to pass information to each of the IVI - devices on startup. It can be used to set things such as simulation, - range checking, etc. Consult your driver documentation for more - information about valid entries for the option string. - - - Returns: - vi (int): The session referencing this NI Switch Executive virtual device session. - - ''' - option_string = _converters.convert_init_with_options_dictionary(option_string) - vi = self._interpreter.open_session(virtual_device_name, option_string) - return vi - - def wait_for_debounce(self, maximum_time_ms=hightime.timedelta(milliseconds=-1)): - r'''wait_for_debounce - - Waits for all of the switches in the NI Switch Executive virtual device - to debounce. This method does not return until either the switching - system is completely debounced and settled or the maximum time has - elapsed and the system is not yet debounced. In the event that the - maximum time elapses, the method returns an error indicating that a - timeout has occurred. To ensure that all of the switches have settled, - NI recommends calling wait_for_debounce after a series of connection - or disconnection operations and before taking any measurements of the - signals connected to the switching system. - - Args: - maximum_time_ms (hightime.timedelta, datetime.timedelta, or int in milliseconds): The amount of time to wait (in milliseconds) for the debounce to - complete. A value of 0 checks for debouncing once and returns an error - if the system is not debounced at that time. A value of -1 means to - block for an infinite period of time until the system is debounced. - - ''' - maximum_time_ms = _converters.convert_timedelta_to_milliseconds_int32(maximum_time_ms) - self._interpreter.wait_for_debounce(maximum_time_ms) diff --git a/generated/nise/nise/unit_tests/_matchers.py b/generated/nise/nise/unit_tests/_matchers.py deleted file mode 100644 index 696c4cb342..0000000000 --- a/generated/nise/nise/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nise._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nise/nise/unit_tests/_mock_helper.py b/generated/nise/nise/unit_tests/_mock_helper.py deleted file mode 100644 index 79e48528ee..0000000000 --- a/generated/nise/nise/unit_tests/_mock_helper.py +++ /dev/null @@ -1,214 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['CloseSession'] = {} - self._defaults['CloseSession']['return'] = 0 - self._defaults['Connect'] = {} - self._defaults['Connect']['return'] = 0 - self._defaults['ConnectAndDisconnect'] = {} - self._defaults['ConnectAndDisconnect']['return'] = 0 - self._defaults['Disconnect'] = {} - self._defaults['Disconnect']['return'] = 0 - self._defaults['DisconnectAll'] = {} - self._defaults['DisconnectAll']['return'] = 0 - self._defaults['ExpandRouteSpec'] = {} - self._defaults['ExpandRouteSpec']['return'] = 0 - self._defaults['ExpandRouteSpec']['expandedRouteSpec'] = None - self._defaults['FindRoute'] = {} - self._defaults['FindRoute']['return'] = 0 - self._defaults['FindRoute']['routeSpec'] = None - self._defaults['FindRoute']['pathCapability'] = None - self._defaults['GetAllConnections'] = {} - self._defaults['GetAllConnections']['return'] = 0 - self._defaults['GetAllConnections']['routeSpec'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorNumber'] = None - self._defaults['GetError']['errorDescription'] = None - self._defaults['IsConnected'] = {} - self._defaults['IsConnected']['return'] = 0 - self._defaults['IsConnected']['isConnected'] = None - self._defaults['IsDebounced'] = {} - self._defaults['IsDebounced']['return'] = 0 - self._defaults['IsDebounced']['isDebounced'] = None - self._defaults['OpenSession'] = {} - self._defaults['OpenSession']['return'] = 0 - self._defaults['OpenSession']['vi'] = None - self._defaults['WaitForDebounce'] = {} - self._defaults['WaitForDebounce']['return'] = 0 - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niSE_CloseSession(self, vi): # noqa: N802 - if self._defaults['CloseSession']['return'] != 0: - return self._defaults['CloseSession']['return'] - return self._defaults['CloseSession']['return'] - - def niSE_Connect(self, vi, connect_spec, multiconnect_mode, wait_for_debounce): # noqa: N802 - if self._defaults['Connect']['return'] != 0: - return self._defaults['Connect']['return'] - return self._defaults['Connect']['return'] - - def niSE_ConnectAndDisconnect(self, vi, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce): # noqa: N802 - if self._defaults['ConnectAndDisconnect']['return'] != 0: - return self._defaults['ConnectAndDisconnect']['return'] - return self._defaults['ConnectAndDisconnect']['return'] - - def niSE_Disconnect(self, vi, disconnect_spec): # noqa: N802 - if self._defaults['Disconnect']['return'] != 0: - return self._defaults['Disconnect']['return'] - return self._defaults['Disconnect']['return'] - - def niSE_DisconnectAll(self, vi): # noqa: N802 - if self._defaults['DisconnectAll']['return'] != 0: - return self._defaults['DisconnectAll']['return'] - return self._defaults['DisconnectAll']['return'] - - def niSE_ExpandRouteSpec(self, vi, route_spec, expand_action, expanded_route_spec, expanded_route_spec_size): # noqa: N802 - if self._defaults['ExpandRouteSpec']['return'] != 0: - return self._defaults['ExpandRouteSpec']['return'] - # expanded_route_spec - if self._defaults['ExpandRouteSpec']['expandedRouteSpec'] is None: - raise MockFunctionCallError("niSE_ExpandRouteSpec", param='expandedRouteSpec') - test_value = self._defaults['ExpandRouteSpec']['expandedRouteSpec'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(expanded_route_spec) >= len(test_value) - for i in range(len(test_value)): - expanded_route_spec[i] = test_value[i] - return self._defaults['ExpandRouteSpec']['return'] - - def niSE_FindRoute(self, vi, channel1, channel2, route_spec, route_spec_size, path_capability): # noqa: N802 - if self._defaults['FindRoute']['return'] != 0: - return self._defaults['FindRoute']['return'] - # route_spec - if self._defaults['FindRoute']['routeSpec'] is None: - raise MockFunctionCallError("niSE_FindRoute", param='routeSpec') - test_value = self._defaults['FindRoute']['routeSpec'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(route_spec) >= len(test_value) - for i in range(len(test_value)): - route_spec[i] = test_value[i] - # path_capability - if self._defaults['FindRoute']['pathCapability'] is None: - raise MockFunctionCallError("niSE_FindRoute", param='pathCapability') - if path_capability is not None: - path_capability.contents.value = self._defaults['FindRoute']['pathCapability'] - return self._defaults['FindRoute']['return'] - - def niSE_GetAllConnections(self, vi, route_spec, route_spec_size): # noqa: N802 - if self._defaults['GetAllConnections']['return'] != 0: - return self._defaults['GetAllConnections']['return'] - # route_spec - if self._defaults['GetAllConnections']['routeSpec'] is None: - raise MockFunctionCallError("niSE_GetAllConnections", param='routeSpec') - test_value = self._defaults['GetAllConnections']['routeSpec'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(route_spec) >= len(test_value) - for i in range(len(test_value)): - route_spec[i] = test_value[i] - return self._defaults['GetAllConnections']['return'] - - def niSE_GetError(self, vi, error_number, error_description, error_description_size): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_number - if self._defaults['GetError']['errorNumber'] is None: - raise MockFunctionCallError("niSE_GetError", param='errorNumber') - if error_number is not None: - error_number.contents.value = self._defaults['GetError']['errorNumber'] - # error_description - if self._defaults['GetError']['errorDescription'] is None: - raise MockFunctionCallError("niSE_GetError", param='errorDescription') - test_value = self._defaults['GetError']['errorDescription'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_description) >= len(test_value) - for i in range(len(test_value)): - error_description[i] = test_value[i] - return self._defaults['GetError']['return'] - - def niSE_IsConnected(self, vi, route_spec, is_connected): # noqa: N802 - if self._defaults['IsConnected']['return'] != 0: - return self._defaults['IsConnected']['return'] - # is_connected - if self._defaults['IsConnected']['isConnected'] is None: - raise MockFunctionCallError("niSE_IsConnected", param='isConnected') - if is_connected is not None: - is_connected.contents.value = self._defaults['IsConnected']['isConnected'] - return self._defaults['IsConnected']['return'] - - def niSE_IsDebounced(self, vi, is_debounced): # noqa: N802 - if self._defaults['IsDebounced']['return'] != 0: - return self._defaults['IsDebounced']['return'] - # is_debounced - if self._defaults['IsDebounced']['isDebounced'] is None: - raise MockFunctionCallError("niSE_IsDebounced", param='isDebounced') - if is_debounced is not None: - is_debounced.contents.value = self._defaults['IsDebounced']['isDebounced'] - return self._defaults['IsDebounced']['return'] - - def niSE_OpenSession(self, virtual_device_name, option_string, vi): # noqa: N802 - if self._defaults['OpenSession']['return'] != 0: - return self._defaults['OpenSession']['return'] - # vi - if self._defaults['OpenSession']['vi'] is None: - raise MockFunctionCallError("niSE_OpenSession", param='vi') - if vi is not None: - vi.contents.value = self._defaults['OpenSession']['vi'] - return self._defaults['OpenSession']['return'] - - def niSE_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 - if self._defaults['WaitForDebounce']['return'] != 0: - return self._defaults['WaitForDebounce']['return'] - return self._defaults['WaitForDebounce']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niSE_CloseSession.side_effect = MockFunctionCallError("niSE_CloseSession") - mock_library.niSE_CloseSession.return_value = 0 - mock_library.niSE_Connect.side_effect = MockFunctionCallError("niSE_Connect") - mock_library.niSE_Connect.return_value = 0 - mock_library.niSE_ConnectAndDisconnect.side_effect = MockFunctionCallError("niSE_ConnectAndDisconnect") - mock_library.niSE_ConnectAndDisconnect.return_value = 0 - mock_library.niSE_Disconnect.side_effect = MockFunctionCallError("niSE_Disconnect") - mock_library.niSE_Disconnect.return_value = 0 - mock_library.niSE_DisconnectAll.side_effect = MockFunctionCallError("niSE_DisconnectAll") - mock_library.niSE_DisconnectAll.return_value = 0 - mock_library.niSE_ExpandRouteSpec.side_effect = MockFunctionCallError("niSE_ExpandRouteSpec") - mock_library.niSE_ExpandRouteSpec.return_value = 0 - mock_library.niSE_FindRoute.side_effect = MockFunctionCallError("niSE_FindRoute") - mock_library.niSE_FindRoute.return_value = 0 - mock_library.niSE_GetAllConnections.side_effect = MockFunctionCallError("niSE_GetAllConnections") - mock_library.niSE_GetAllConnections.return_value = 0 - mock_library.niSE_GetError.side_effect = MockFunctionCallError("niSE_GetError") - mock_library.niSE_GetError.return_value = 0 - mock_library.niSE_IsConnected.side_effect = MockFunctionCallError("niSE_IsConnected") - mock_library.niSE_IsConnected.return_value = 0 - mock_library.niSE_IsDebounced.side_effect = MockFunctionCallError("niSE_IsDebounced") - mock_library.niSE_IsDebounced.return_value = 0 - mock_library.niSE_OpenSession.side_effect = MockFunctionCallError("niSE_OpenSession") - mock_library.niSE_OpenSession.return_value = 0 - mock_library.niSE_WaitForDebounce.side_effect = MockFunctionCallError("niSE_WaitForDebounce") - mock_library.niSE_WaitForDebounce.return_value = 0 diff --git a/generated/nise/setup.py b/generated/nise/setup.py deleted file mode 100644 index 73e48d54ee..0000000000 --- a/generated/nise/setup.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nise' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI Switch Executive Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nise'], - license='MIT', - include_package_data=True, - packages=['nise'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - ], - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nise/tox-system_tests.ini b/generated/nise/tox-system_tests.ini deleted file mode 100644 index e09cc508d1..0000000000 --- a/generated/nise/tox-system_tests.ini +++ /dev/null @@ -1,64 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nise) -[tox] -envlist = py{310,311,312,313,314}-nise-system_tests, py314-nise-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nise-system_tests: Run nise system tests (requires NI Switch Executive runtime to be installed) - nise-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nise-system_tests: . - nise-coverage: . - -commands = - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nise-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nise-system_tests: python -c "import nise; nise.print_diagnostic_information()" - nise-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nise --parallel-mode -m pytest ../../src/nise/examples --junitxml=../junit/junit-nise-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nise-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nise --parallel-mode -m pytest ../../src/nise/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nise-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nise-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nise-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nise-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nise-system_tests: pytest < 9.2.0 - nise-system_tests: coverage - nise-system_tests: numpy - nise-system_tests: hightime - nise-system_tests: fasteners - nise-system_tests: pytest-json - - nise-coverage: coverage - -depends = - nise-coverage: py{310,311,312,313,314}-nise-system_tests - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/niswitch/README.rst b/generated/niswitch/README.rst deleted file mode 100644 index 782b599e9c..0000000000 --- a/generated/niswitch/README.rst +++ /dev/null @@ -1,170 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **niswitch** module provides a Python API for NI-SWITCH. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**niswitch** supports all the Operating Systems supported by NI-SWITCH. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **niswitch**. - - -NI-SWITCH Python API Status ---------------------------- - -+-------------------------------+-------------------------+ -| NI-SWITCH (niswitch) | | -+===============================+=========================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-------------------------+ -| PyPI Version | |niswitchLatestVersion| | -+-------------------------------+-------------------------+ -| Supported Python Version | |niswitchPythonVersion| | -+-------------------------------+-------------------------+ -| Documentation | |niswitchDocs| | -+-------------------------------+-------------------------+ -| Open Issues | |niswitchOpenIssues| | -+-------------------------------+-------------------------+ -| Open Pull Requests | |niswitchOpenPRs| | -+-------------------------------+-------------------------+ - - -.. |niswitchLatestVersion| image:: http://img.shields.io/pypi/v/niswitch.svg - :alt: Latest NI-SWITCH Version - :target: http://pypi.python.org/pypi/niswitch - - -.. |niswitchPythonVersion| image:: http://img.shields.io/pypi/pyversions/niswitch.svg - :alt: NI-SWITCH supported Python versions - :target: http://pypi.python.org/pypi/niswitch - - -.. |niswitchDocs| image:: https://readthedocs.org/projects/niswitch/badge/?version=latest - :alt: NI-SWITCH Python API Documentation Status - :target: https://niswitch.readthedocs.io/en/latest - - -.. |niswitchOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niswitch.svg - :alt: Open Issues + Pull Requests for NI-SWITCH - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniswitch - - -.. |niswitchOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niswitch.svg - :alt: Pull Requests for NI-SWITCH - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniswitch - - - -.. _niswitch_installation-section: - -Installation ------------- - -As a prerequisite to using the **niswitch** module, you must install the NI-SWITCH runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-SWITCH**) can be installed with `pip `_:: - - $ python -m pip install niswitch - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **niswitch** module to open a session to a Switch and connect channels. - -.. code-block:: python - - import niswitch - with niswitch.Session("Dev1") as session: - session.connect(channel1='r0', channel2='c0') - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/niswitch/niswitch/VERSION b/generated/niswitch/niswitch/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/niswitch/niswitch/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/niswitch/niswitch/__init__.py b/generated/niswitch/niswitch/__init__.py deleted file mode 100644 index 31560247a6..0000000000 --- a/generated/niswitch/niswitch/__init__.py +++ /dev/null @@ -1,103 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from niswitch.enums import * # noqa: F403,F401,H303 -from niswitch.errors import DriverWarning # noqa: F401 -from niswitch.errors import Error # noqa: F401 -from niswitch.grpc_session_options import * # noqa: F403,F401,H303 -from niswitch.session import Session # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-SWITCH\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-SWITCH" - info['driver']['version'] = driver_version - info['module']['name'] = 'niswitch' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/niswitch/niswitch/_attributes.py b/generated/niswitch/niswitch/_attributes.py deleted file mode 100644 index 017f27dbc1..0000000000 --- a/generated/niswitch/niswitch/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import niswitch._converters as _converters -import niswitch.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the niswitch Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from niswitch.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/niswitch/niswitch/_converters.py b/generated/niswitch/niswitch/_converters.py deleted file mode 100644 index e72487bda4..0000000000 --- a/generated/niswitch/niswitch/_converters.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import niswitch._visatype as _visatype -import niswitch.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - diff --git a/generated/niswitch/niswitch/_grpc_stub_interpreter.py b/generated/niswitch/niswitch/_grpc_stub_interpreter.py deleted file mode 100644 index 26d382e948..0000000000 --- a/generated/niswitch/niswitch/_grpc_stub_interpreter.py +++ /dev/null @@ -1,326 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import grpc -import hightime # noqa: F401 -import nitlsconfig -import session_pb2 as session_grpc_types -import threading -import warnings - -from . import enums as enums # noqa: F401 -from . import errors as errors -from . import niswitch_pb2 as grpc_types -from . import niswitch_pb2_grpc as niswitch_grpc - - -class GrpcStubInterpreter(object): - '''Interpreter for interacting with a gRPC Stub class''' - - def __init__(self, grpc_options): - self._grpc_options = grpc_options - self._lock = threading.RLock() - self._client = niswitch_grpc.NiSwitchStub(grpc_options.grpc_channel) - self.set_session_handle() - - def set_session_handle(self, value=session_grpc_types.Session()): - self._vi = value - - def get_session_handle(self): - return self._vi - - def _invoke(self, func, request, metadata=None): - try: - response = func(request, metadata=metadata) - error_code = response.status - error_message = '' - except grpc.RpcError as rpc_error: - error_code = None - error_message = rpc_error.details() - for entry in rpc_error.trailing_metadata() or []: - if entry.key == 'ni-error': - value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') - try: - error_code = int(value) - except ValueError: - error_message += f'\nError status: {value}' - - grpc_error = rpc_error.code() - if grpc_error == grpc.StatusCode.NOT_FOUND: - raise errors.DriverTooOldError() from None - elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: - raise ValueError(error_message) from None - elif grpc_error == grpc.StatusCode.UNAVAILABLE: - # gRPC reports a rejected TLS handshake and an unreachable server with the - # same code, so ask NI-TLS whether it built this channel and can say more. - error_message = nitlsconfig.get_tls_connection_error_elaboration( - self._grpc_options.grpc_channel - ) or 'Failed to connect to server' - elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: - error_message = ( - 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' - ) - - if error_code is None: - raise errors.RpcError(grpc_error, error_message) from None - - if error_code < 0: - raise errors.DriverError(error_code, error_message) - elif error_code > 0: - if not error_message: - try: - error_message = self.error_message(error_code) - except errors.Error: - error_message = 'Failed to retrieve error description.' - warnings.warn(errors.DriverWarning(error_code, error_message)) - return response - - def abort(self): # noqa: N802 - self._invoke( - self._client.AbortScan, - grpc_types.AbortScanRequest(vi=self._vi), - ) - - def can_connect(self, channel1, channel2): # noqa: N802 - response = self._invoke( - self._client.CanConnect, - grpc_types.CanConnectRequest(vi=self._vi, channel1=channel1, channel2=channel2), - ) - return enums.PathCapability(response.path_capability_raw) - - def commit(self): # noqa: N802 - self._invoke( - self._client.Commit, - grpc_types.CommitRequest(vi=self._vi), - ) - - def connect(self, channel1, channel2): # noqa: N802 - self._invoke( - self._client.Connect, - grpc_types.ConnectRequest(vi=self._vi, channel1=channel1, channel2=channel2), - ) - - def connect_multiple(self, connection_list): # noqa: N802 - self._invoke( - self._client.ConnectMultiple, - grpc_types.ConnectMultipleRequest(vi=self._vi, connection_list=connection_list), - ) - - def disable(self): # noqa: N802 - self._invoke( - self._client.Disable, - grpc_types.DisableRequest(vi=self._vi), - ) - - def disconnect(self, channel1, channel2): # noqa: N802 - self._invoke( - self._client.Disconnect, - grpc_types.DisconnectRequest(vi=self._vi, channel1=channel1, channel2=channel2), - ) - - def disconnect_all(self): # noqa: N802 - self._invoke( - self._client.DisconnectAll, - grpc_types.DisconnectAllRequest(vi=self._vi), - ) - - def disconnect_multiple(self, disconnection_list): # noqa: N802 - self._invoke( - self._client.DisconnectMultiple, - grpc_types.DisconnectMultipleRequest(vi=self._vi, disconnection_list=disconnection_list), - ) - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViBoolean, - grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViInt32, - grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViReal64, - grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - response = self._invoke( - self._client.GetAttributeViString, - grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), - ) - return response.attribute_value - - def get_channel_name(self, index): # noqa: N802 - response = self._invoke( - self._client.GetChannelName, - grpc_types.GetChannelNameRequest(vi=self._vi, index=index), - ) - return response.channel_name_buffer - - def get_error(self): # noqa: N802 - response = self._invoke( - self._client.GetError, - grpc_types.GetErrorRequest(vi=self._vi), - ) - return response.code, response.description - - def get_path(self, channel1, channel2): # noqa: N802 - response = self._invoke( - self._client.GetPath, - grpc_types.GetPathRequest(vi=self._vi, channel1=channel1, channel2=channel2), - ) - return response.path - - def get_relay_count(self, relay_name): # noqa: N802 - response = self._invoke( - self._client.GetRelayCount, - grpc_types.GetRelayCountRequest(vi=self._vi, relay_name=relay_name), - ) - return response.relay_count - - def get_relay_name(self, index): # noqa: N802 - response = self._invoke( - self._client.GetRelayName, - grpc_types.GetRelayNameRequest(vi=self._vi, index=index), - ) - return response.relay_name_buffer - - def get_relay_position(self, relay_name): # noqa: N802 - response = self._invoke( - self._client.GetRelayPosition, - grpc_types.GetRelayPositionRequest(vi=self._vi, relay_name=relay_name), - ) - return enums.RelayPosition(response.relay_position_raw) - - def init_with_topology(self, resource_name, topology, simulate, reset_device): # noqa: N802 - metadata = ( - ('ni-api-key', self._grpc_options.api_key), - ) - response = self._invoke( - self._client.InitWithTopology, - grpc_types.InitWithTopologyRequest(resource_name=resource_name, topology=topology, simulate=simulate, reset_device=reset_device, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), - metadata=metadata, - ) - self._close_on_exit = response.new_session_initialized - return response.vi - - def initiate_scan(self): # noqa: N802 - self._invoke( - self._client.InitiateScan, - grpc_types.InitiateScanRequest(vi=self._vi), - ) - - def lock(self): # noqa: N802 - self._lock.acquire() - - def relay_control(self, relay_name, relay_action): # noqa: N802 - self._invoke( - self._client.RelayControl, - grpc_types.RelayControlRequest(vi=self._vi, relay_name=relay_name, relay_action_raw=relay_action.value), - ) - - def reset_with_defaults(self): # noqa: N802 - self._invoke( - self._client.ResetWithDefaults, - grpc_types.ResetWithDefaultsRequest(vi=self._vi), - ) - - def route_scan_advanced_output(self, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 - self._invoke( - self._client.RouteScanAdvancedOutput, - grpc_types.RouteScanAdvancedOutputRequest(vi=self._vi, scan_advanced_output_connector_raw=scan_advanced_output_connector.value, scan_advanced_output_bus_line_raw=scan_advanced_output_bus_line.value, invert=invert), - ) - - def route_trigger_input(self, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 - self._invoke( - self._client.RouteTriggerInput, - grpc_types.RouteTriggerInputRequest(vi=self._vi, trigger_input_connector_raw=trigger_input_connector.value, trigger_input_bus_line_raw=trigger_input_bus_line.value, invert=invert), - ) - - def send_software_trigger(self): # noqa: N802 - self._invoke( - self._client.SendSoftwareTrigger, - grpc_types.SendSoftwareTriggerRequest(vi=self._vi), - ) - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViBoolean, - grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), - ) - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViInt32, - grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViReal64, - grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - self._invoke( - self._client.SetAttributeViString, - grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), - ) - - def set_path(self, path_list): # noqa: N802 - self._invoke( - self._client.SetPath, - grpc_types.SetPathRequest(vi=self._vi, path_list=path_list), - ) - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - raise NotImplementedError('set_runtime_environment is not supported over gRPC') - - def unlock(self): # noqa: N802 - self._lock.release() - - def wait_for_debounce(self, maximum_time_ms): # noqa: N802 - self._invoke( - self._client.WaitForDebounce, - grpc_types.WaitForDebounceRequest(vi=self._vi, maximum_time_ms=maximum_time_ms), - ) - - def wait_for_scan_complete(self, maximum_time_ms): # noqa: N802 - self._invoke( - self._client.WaitForScanComplete, - grpc_types.WaitForScanCompleteRequest(vi=self._vi, maximum_time_ms=maximum_time_ms), - ) - - def close(self): # noqa: N802 - self._invoke( - self._client.Close, - grpc_types.CloseRequest(vi=self._vi), - ) - - def error_message(self, error_code): # noqa: N802 - response = self._invoke( - self._client.ErrorMessage, - grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), - ) - return response.error_message - - def reset(self): # noqa: N802 - self._invoke( - self._client.Reset, - grpc_types.ResetRequest(vi=self._vi), - ) - - def self_test(self): # noqa: N802 - response = self._invoke( - self._client.SelfTest, - grpc_types.SelfTestRequest(vi=self._vi), - ) - return response.self_test_result, response.self_test_message diff --git a/generated/niswitch/niswitch/_library.py b/generated/niswitch/niswitch/_library.py deleted file mode 100644 index a91d25167b..0000000000 --- a/generated/niswitch/niswitch/_library.py +++ /dev/null @@ -1,388 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import niswitch.errors as errors -import threading - -from niswitch._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niSwitch_AbortScan_cfunc = None - self.niSwitch_CanConnect_cfunc = None - self.niSwitch_Commit_cfunc = None - self.niSwitch_Connect_cfunc = None - self.niSwitch_ConnectMultiple_cfunc = None - self.niSwitch_Disable_cfunc = None - self.niSwitch_Disconnect_cfunc = None - self.niSwitch_DisconnectAll_cfunc = None - self.niSwitch_DisconnectMultiple_cfunc = None - self.niSwitch_GetAttributeViBoolean_cfunc = None - self.niSwitch_GetAttributeViInt32_cfunc = None - self.niSwitch_GetAttributeViReal64_cfunc = None - self.niSwitch_GetAttributeViString_cfunc = None - self.niSwitch_GetChannelName_cfunc = None - self.niSwitch_GetError_cfunc = None - self.niSwitch_GetPath_cfunc = None - self.niSwitch_GetRelayCount_cfunc = None - self.niSwitch_GetRelayName_cfunc = None - self.niSwitch_GetRelayPosition_cfunc = None - self.niSwitch_InitWithTopology_cfunc = None - self.niSwitch_InitiateScan_cfunc = None - self.niSwitch_LockSession_cfunc = None - self.niSwitch_RelayControl_cfunc = None - self.niSwitch_ResetWithDefaults_cfunc = None - self.niSwitch_RouteScanAdvancedOutput_cfunc = None - self.niSwitch_RouteTriggerInput_cfunc = None - self.niSwitch_SendSoftwareTrigger_cfunc = None - self.niSwitch_SetAttributeViBoolean_cfunc = None - self.niSwitch_SetAttributeViInt32_cfunc = None - self.niSwitch_SetAttributeViReal64_cfunc = None - self.niSwitch_SetAttributeViString_cfunc = None - self.niSwitch_SetPath_cfunc = None - self.niSwitch_SetRuntimeEnvironment_cfunc = None - self.niSwitch_UnlockSession_cfunc = None - self.niSwitch_WaitForDebounce_cfunc = None - self.niSwitch_WaitForScanComplete_cfunc = None - self.niSwitch_close_cfunc = None - self.niSwitch_error_message_cfunc = None - self.niSwitch_reset_cfunc = None - self.niSwitch_self_test_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niSwitch_AbortScan(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_AbortScan_cfunc is None: - self.niSwitch_AbortScan_cfunc = self._get_library_function('niSwitch_AbortScan') - self.niSwitch_AbortScan_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_AbortScan_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_AbortScan_cfunc(vi) - - def niSwitch_CanConnect(self, vi, channel1, channel2, path_capability): # noqa: N802 - with self._func_lock: - if self.niSwitch_CanConnect_cfunc is None: - self.niSwitch_CanConnect_cfunc = self._get_library_function('niSwitch_CanConnect') - self.niSwitch_CanConnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSwitch_CanConnect_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_CanConnect_cfunc(vi, channel1, channel2, path_capability) - - def niSwitch_Commit(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_Commit_cfunc is None: - self.niSwitch_Commit_cfunc = self._get_library_function('niSwitch_Commit') - self.niSwitch_Commit_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_Commit_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_Commit_cfunc(vi) - - def niSwitch_Connect(self, vi, channel1, channel2): # noqa: N802 - with self._func_lock: - if self.niSwitch_Connect_cfunc is None: - self.niSwitch_Connect_cfunc = self._get_library_function('niSwitch_Connect') - self.niSwitch_Connect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_Connect_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_Connect_cfunc(vi, channel1, channel2) - - def niSwitch_ConnectMultiple(self, vi, connection_list): # noqa: N802 - with self._func_lock: - if self.niSwitch_ConnectMultiple_cfunc is None: - self.niSwitch_ConnectMultiple_cfunc = self._get_library_function('niSwitch_ConnectMultiple') - self.niSwitch_ConnectMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_ConnectMultiple_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_ConnectMultiple_cfunc(vi, connection_list) - - def niSwitch_Disable(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_Disable_cfunc is None: - self.niSwitch_Disable_cfunc = self._get_library_function('niSwitch_Disable') - self.niSwitch_Disable_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_Disable_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_Disable_cfunc(vi) - - def niSwitch_Disconnect(self, vi, channel1, channel2): # noqa: N802 - with self._func_lock: - if self.niSwitch_Disconnect_cfunc is None: - self.niSwitch_Disconnect_cfunc = self._get_library_function('niSwitch_Disconnect') - self.niSwitch_Disconnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_Disconnect_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_Disconnect_cfunc(vi, channel1, channel2) - - def niSwitch_DisconnectAll(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_DisconnectAll_cfunc is None: - self.niSwitch_DisconnectAll_cfunc = self._get_library_function('niSwitch_DisconnectAll') - self.niSwitch_DisconnectAll_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_DisconnectAll_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_DisconnectAll_cfunc(vi) - - def niSwitch_DisconnectMultiple(self, vi, disconnection_list): # noqa: N802 - with self._func_lock: - if self.niSwitch_DisconnectMultiple_cfunc is None: - self.niSwitch_DisconnectMultiple_cfunc = self._get_library_function('niSwitch_DisconnectMultiple') - self.niSwitch_DisconnectMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_DisconnectMultiple_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_DisconnectMultiple_cfunc(vi, disconnection_list) - - def niSwitch_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetAttributeViBoolean_cfunc is None: - self.niSwitch_GetAttributeViBoolean_cfunc = self._get_library_function('niSwitch_GetAttributeViBoolean') - self.niSwitch_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niSwitch_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetAttributeViInt32_cfunc is None: - self.niSwitch_GetAttributeViInt32_cfunc = self._get_library_function('niSwitch_GetAttributeViInt32') - self.niSwitch_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSwitch_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetAttributeViReal64_cfunc is None: - self.niSwitch_GetAttributeViReal64_cfunc = self._get_library_function('niSwitch_GetAttributeViReal64') - self.niSwitch_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niSwitch_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetAttributeViString_cfunc is None: - self.niSwitch_GetAttributeViString_cfunc = self._get_library_function('niSwitch_GetAttributeViString') - self.niSwitch_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetAttributeViString_cfunc(vi, channel_name, attribute_id, array_size, attribute_value) - - def niSwitch_GetChannelName(self, vi, index, buffer_size, channel_name_buffer): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetChannelName_cfunc is None: - self.niSwitch_GetChannelName_cfunc = self._get_library_function('niSwitch_GetChannelName') - self.niSwitch_GetChannelName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_GetChannelName_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetChannelName_cfunc(vi, index, buffer_size, channel_name_buffer) - - def niSwitch_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetError_cfunc is None: - self.niSwitch_GetError_cfunc = self._get_library_function('niSwitch_GetError') - self.niSwitch_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_GetError_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetError_cfunc(vi, error_code, buffer_size, description) - - def niSwitch_GetPath(self, vi, channel1, channel2, buffer_size, path): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetPath_cfunc is None: - self.niSwitch_GetPath_cfunc = self._get_library_function('niSwitch_GetPath') - self.niSwitch_GetPath_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_GetPath_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetPath_cfunc(vi, channel1, channel2, buffer_size, path) - - def niSwitch_GetRelayCount(self, vi, relay_name, relay_count): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetRelayCount_cfunc is None: - self.niSwitch_GetRelayCount_cfunc = self._get_library_function('niSwitch_GetRelayCount') - self.niSwitch_GetRelayCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSwitch_GetRelayCount_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetRelayCount_cfunc(vi, relay_name, relay_count) - - def niSwitch_GetRelayName(self, vi, index, relay_name_buffer_size, relay_name_buffer): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetRelayName_cfunc is None: - self.niSwitch_GetRelayName_cfunc = self._get_library_function('niSwitch_GetRelayName') - self.niSwitch_GetRelayName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_GetRelayName_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetRelayName_cfunc(vi, index, relay_name_buffer_size, relay_name_buffer) - - def niSwitch_GetRelayPosition(self, vi, relay_name, relay_position): # noqa: N802 - with self._func_lock: - if self.niSwitch_GetRelayPosition_cfunc is None: - self.niSwitch_GetRelayPosition_cfunc = self._get_library_function('niSwitch_GetRelayPosition') - self.niSwitch_GetRelayPosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 - self.niSwitch_GetRelayPosition_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_GetRelayPosition_cfunc(vi, relay_name, relay_position) - - def niSwitch_InitWithTopology(self, resource_name, topology, simulate, reset_device, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_InitWithTopology_cfunc is None: - self.niSwitch_InitWithTopology_cfunc = self._get_library_function('niSwitch_InitWithTopology') - self.niSwitch_InitWithTopology_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViSession)] # noqa: F405 - self.niSwitch_InitWithTopology_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_InitWithTopology_cfunc(resource_name, topology, simulate, reset_device, vi) - - def niSwitch_InitiateScan(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_InitiateScan_cfunc is None: - self.niSwitch_InitiateScan_cfunc = self._get_library_function('niSwitch_InitiateScan') - self.niSwitch_InitiateScan_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_InitiateScan_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_InitiateScan_cfunc(vi) - - def niSwitch_LockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niSwitch_LockSession_cfunc is None: - self.niSwitch_LockSession_cfunc = self._get_library_function('niSwitch_LockSession') - self.niSwitch_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niSwitch_LockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_LockSession_cfunc(vi, caller_has_lock) - - def niSwitch_RelayControl(self, vi, relay_name, relay_action): # noqa: N802 - with self._func_lock: - if self.niSwitch_RelayControl_cfunc is None: - self.niSwitch_RelayControl_cfunc = self._get_library_function('niSwitch_RelayControl') - self.niSwitch_RelayControl_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 - self.niSwitch_RelayControl_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_RelayControl_cfunc(vi, relay_name, relay_action) - - def niSwitch_ResetWithDefaults(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_ResetWithDefaults_cfunc is None: - self.niSwitch_ResetWithDefaults_cfunc = self._get_library_function('niSwitch_ResetWithDefaults') - self.niSwitch_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_ResetWithDefaults_cfunc(vi) - - def niSwitch_RouteScanAdvancedOutput(self, vi, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 - with self._func_lock: - if self.niSwitch_RouteScanAdvancedOutput_cfunc is None: - self.niSwitch_RouteScanAdvancedOutput_cfunc = self._get_library_function('niSwitch_RouteScanAdvancedOutput') - self.niSwitch_RouteScanAdvancedOutput_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViBoolean] # noqa: F405 - self.niSwitch_RouteScanAdvancedOutput_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_RouteScanAdvancedOutput_cfunc(vi, scan_advanced_output_connector, scan_advanced_output_bus_line, invert) - - def niSwitch_RouteTriggerInput(self, vi, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 - with self._func_lock: - if self.niSwitch_RouteTriggerInput_cfunc is None: - self.niSwitch_RouteTriggerInput_cfunc = self._get_library_function('niSwitch_RouteTriggerInput') - self.niSwitch_RouteTriggerInput_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViBoolean] # noqa: F405 - self.niSwitch_RouteTriggerInput_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_RouteTriggerInput_cfunc(vi, trigger_input_connector, trigger_input_bus_line, invert) - - def niSwitch_SendSoftwareTrigger(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_SendSoftwareTrigger_cfunc is None: - self.niSwitch_SendSoftwareTrigger_cfunc = self._get_library_function('niSwitch_SendSoftwareTrigger') - self.niSwitch_SendSoftwareTrigger_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_SendSoftwareTrigger_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SendSoftwareTrigger_cfunc(vi) - - def niSwitch_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_SetAttributeViBoolean_cfunc is None: - self.niSwitch_SetAttributeViBoolean_cfunc = self._get_library_function('niSwitch_SetAttributeViBoolean') - self.niSwitch_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 - self.niSwitch_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_SetAttributeViInt32_cfunc is None: - self.niSwitch_SetAttributeViInt32_cfunc = self._get_library_function('niSwitch_SetAttributeViInt32') - self.niSwitch_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 - self.niSwitch_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_SetAttributeViReal64_cfunc is None: - self.niSwitch_SetAttributeViReal64_cfunc = self._get_library_function('niSwitch_SetAttributeViReal64') - self.niSwitch_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niSwitch_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - with self._func_lock: - if self.niSwitch_SetAttributeViString_cfunc is None: - self.niSwitch_SetAttributeViString_cfunc = self._get_library_function('niSwitch_SetAttributeViString') - self.niSwitch_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) - - def niSwitch_SetPath(self, vi, path_list): # noqa: N802 - with self._func_lock: - if self.niSwitch_SetPath_cfunc is None: - self.niSwitch_SetPath_cfunc = self._get_library_function('niSwitch_SetPath') - self.niSwitch_SetPath_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_SetPath_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SetPath_cfunc(vi, path_list) - - def niSwitch_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - with self._func_lock: - if self.niSwitch_SetRuntimeEnvironment_cfunc is None: - self.niSwitch_SetRuntimeEnvironment_cfunc = self._get_library_function('niSwitch_SetRuntimeEnvironment') - self.niSwitch_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) - - def niSwitch_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - with self._func_lock: - if self.niSwitch_UnlockSession_cfunc is None: - self.niSwitch_UnlockSession_cfunc = self._get_library_function('niSwitch_UnlockSession') - self.niSwitch_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niSwitch_UnlockSession_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_UnlockSession_cfunc(vi, caller_has_lock) - - def niSwitch_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 - with self._func_lock: - if self.niSwitch_WaitForDebounce_cfunc is None: - self.niSwitch_WaitForDebounce_cfunc = self._get_library_function('niSwitch_WaitForDebounce') - self.niSwitch_WaitForDebounce_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niSwitch_WaitForDebounce_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_WaitForDebounce_cfunc(vi, maximum_time_ms) - - def niSwitch_WaitForScanComplete(self, vi, maximum_time_ms): # noqa: N802 - with self._func_lock: - if self.niSwitch_WaitForScanComplete_cfunc is None: - self.niSwitch_WaitForScanComplete_cfunc = self._get_library_function('niSwitch_WaitForScanComplete') - self.niSwitch_WaitForScanComplete_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 - self.niSwitch_WaitForScanComplete_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_WaitForScanComplete_cfunc(vi, maximum_time_ms) - - def niSwitch_close(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_close_cfunc is None: - self.niSwitch_close_cfunc = self._get_library_function('niSwitch_close') - self.niSwitch_close_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_close_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_close_cfunc(vi) - - def niSwitch_error_message(self, vi, error_code, error_message): # noqa: N802 - with self._func_lock: - if self.niSwitch_error_message_cfunc is None: - self.niSwitch_error_message_cfunc = self._get_library_function('niSwitch_error_message') - self.niSwitch_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_error_message_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_error_message_cfunc(vi, error_code, error_message) - - def niSwitch_reset(self, vi): # noqa: N802 - with self._func_lock: - if self.niSwitch_reset_cfunc is None: - self.niSwitch_reset_cfunc = self._get_library_function('niSwitch_reset') - self.niSwitch_reset_cfunc.argtypes = [ViSession] # noqa: F405 - self.niSwitch_reset_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_reset_cfunc(vi) - - def niSwitch_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - with self._func_lock: - if self.niSwitch_self_test_cfunc is None: - self.niSwitch_self_test_cfunc = self._get_library_function('niSwitch_self_test') - self.niSwitch_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 - self.niSwitch_self_test_cfunc.restype = ViStatus # noqa: F405 - return self.niSwitch_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/niswitch/niswitch/_library_interpreter.py b/generated/niswitch/niswitch/_library_interpreter.py deleted file mode 100644 index 06f44037b6..0000000000 --- a/generated/niswitch/niswitch/_library_interpreter.py +++ /dev/null @@ -1,461 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import platform - -import niswitch._library_singleton as _library_singleton -import niswitch._visatype as _visatype -import niswitch.enums as enums # noqa: F401 -import niswitch.errors as errors - - -_was_runtime_environment_set = None - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - global _was_runtime_environment_set - if _was_runtime_environment_set is None: - try: - runtime_env = platform.python_implementation() - version = platform.python_version() - self.set_runtime_environment( - runtime_env, - version, - '', - '' - ) - except errors.DriverTooOldError: - pass - finally: - _was_runtime_environment_set = True - # Initialize _vi to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._vi = value - - def get_session_handle(self): - return self._vi - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - returned_error_code, error_string = self.get_error() - if returned_error_code == error_code: - return error_string - except errors.Error: - pass - - try: - # get_error reads the session's error queue, which may have been overwritten, - # causing it to return a mismatched error code. error_message takes the error - # code directly as a parameter and looks up its description without reading the - # queue, it will return the description for the specific error code. - # Use error_message in current session before the handle reset in the next block. - - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - - save_vi = self.get_session_handle() - try: - # It is expected for get_error to raise when the session is invalid - # (IVI spec requires GetError to fail). - # Use error_message instead. It doesn't require a session. - - self.set_session_handle() - error_string = self.error_message(error_code) - return error_string - except errors.Error: - pass - finally: - self.set_session_handle(save_vi) - return "Failed to retrieve error description." - - def abort(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_AbortScan(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def can_connect(self, channel1, channel2): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 - channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 - path_capability_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niSwitch_CanConnect(vi_ctype, channel1_ctype, channel2_ctype, None if path_capability_ctype is None else (ctypes.pointer(path_capability_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return enums.PathCapability(path_capability_ctype.value) - - def commit(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_Commit(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def connect(self, channel1, channel2): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 - channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_Connect(vi_ctype, channel1_ctype, channel2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def connect_multiple(self, connection_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - connection_list_ctype = ctypes.create_string_buffer(connection_list.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_ConnectMultiple(vi_ctype, connection_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disable(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_Disable(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disconnect(self, channel1, channel2): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 - channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_Disconnect(vi_ctype, channel1_ctype, channel2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disconnect_all(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_DisconnectAll(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def disconnect_multiple(self, disconnection_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - disconnection_list_ctype = ctypes.create_string_buffer(disconnection_list.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_DisconnectMultiple(vi_ctype, disconnection_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niSwitch_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(attribute_value_ctype.value) - - def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niSwitch_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(attribute_value_ctype.value) - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niSwitch_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(attribute_value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - array_size_ctype = _visatype.ViInt32() # case S170 - attribute_value_ctype = None # case C050 - error_code = self._library.niSwitch_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - array_size_ctype = _visatype.ViInt32(error_code) # case S180 - attribute_value_ctype = (_visatype.ViChar * array_size_ctype.value)() # case C060 - error_code = self._library.niSwitch_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return attribute_value_ctype.value.decode(self._encoding) - - def get_channel_name(self, index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - index_ctype = _visatype.ViInt32(index) # case S150 - buffer_size_ctype = _visatype.ViInt32() # case S170 - channel_name_buffer_ctype = None # case C050 - error_code = self._library.niSwitch_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_buffer_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - channel_name_buffer_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niSwitch_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_buffer_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return channel_name_buffer_ctype.value.decode(self._encoding) - - def get_error(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus() # case S220 - buffer_size_ctype = _visatype.ViInt32() # case S170 - description_ctype = None # case C050 - error_code = self._library.niSwitch_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niSwitch_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) - - def get_path(self, channel1, channel2): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 - channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 - buffer_size_ctype = _visatype.ViInt32() # case S170 - path_ctype = None # case C050 - error_code = self._library.niSwitch_GetPath(vi_ctype, channel1_ctype, channel2_ctype, buffer_size_ctype, path_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - path_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 - error_code = self._library.niSwitch_GetPath(vi_ctype, channel1_ctype, channel2_ctype, buffer_size_ctype, path_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return path_ctype.value.decode(self._encoding) - - def get_relay_count(self, relay_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - relay_name_ctype = ctypes.create_string_buffer(relay_name.encode(self._encoding)) # case C020 - relay_count_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niSwitch_GetRelayCount(vi_ctype, relay_name_ctype, None if relay_count_ctype is None else (ctypes.pointer(relay_count_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(relay_count_ctype.value) - - def get_relay_name(self, index): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - index_ctype = _visatype.ViInt32(index) # case S150 - relay_name_buffer_size_ctype = _visatype.ViInt32() # case S170 - relay_name_buffer_ctype = None # case C050 - error_code = self._library.niSwitch_GetRelayName(vi_ctype, index_ctype, relay_name_buffer_size_ctype, relay_name_buffer_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - relay_name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 - relay_name_buffer_ctype = (_visatype.ViChar * relay_name_buffer_size_ctype.value)() # case C060 - error_code = self._library.niSwitch_GetRelayName(vi_ctype, index_ctype, relay_name_buffer_size_ctype, relay_name_buffer_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return relay_name_buffer_ctype.value.decode(self._encoding) - - def get_relay_position(self, relay_name): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - relay_name_ctype = ctypes.create_string_buffer(relay_name.encode(self._encoding)) # case C020 - relay_position_ctype = _visatype.ViInt32() # case S220 - error_code = self._library.niSwitch_GetRelayPosition(vi_ctype, relay_name_ctype, None if relay_position_ctype is None else (ctypes.pointer(relay_position_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return enums.RelayPosition(relay_position_ctype.value) - - def init_with_topology(self, resource_name, topology, simulate, reset_device): # noqa: N802 - resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 - topology_ctype = ctypes.create_string_buffer(topology.encode(self._encoding)) # case C020 - simulate_ctype = _visatype.ViBoolean(simulate) # case S150 - reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 - vi_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niSwitch_InitWithTopology(resource_name_ctype, topology_ctype, simulate_ctype, reset_device_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - self._close_on_exit = True - return int(vi_ctype.value) - - def initiate_scan(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_InitiateScan(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def lock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_LockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def relay_control(self, relay_name, relay_action): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - relay_name_ctype = ctypes.create_string_buffer(relay_name.encode(self._encoding)) # case C020 - relay_action_ctype = _visatype.ViInt32(relay_action.value) # case S130 - error_code = self._library.niSwitch_RelayControl(vi_ctype, relay_name_ctype, relay_action_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def reset_with_defaults(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_ResetWithDefaults(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def route_scan_advanced_output(self, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - scan_advanced_output_connector_ctype = _visatype.ViInt32(scan_advanced_output_connector.value) # case S130 - scan_advanced_output_bus_line_ctype = _visatype.ViInt32(scan_advanced_output_bus_line.value) # case S130 - invert_ctype = _visatype.ViBoolean(invert) # case S150 - error_code = self._library.niSwitch_RouteScanAdvancedOutput(vi_ctype, scan_advanced_output_connector_ctype, scan_advanced_output_bus_line_ctype, invert_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def route_trigger_input(self, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - trigger_input_connector_ctype = _visatype.ViInt32(trigger_input_connector.value) # case S130 - trigger_input_bus_line_ctype = _visatype.ViInt32(trigger_input_bus_line.value) # case S130 - invert_ctype = _visatype.ViBoolean(invert) # case S150 - error_code = self._library.niSwitch_RouteTriggerInput(vi_ctype, trigger_input_connector_ctype, trigger_input_bus_line_ctype, invert_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def send_software_trigger(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_SendSoftwareTrigger(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 - error_code = self._library.niSwitch_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 - error_code = self._library.niSwitch_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 - error_code = self._library.niSwitch_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_path(self, path_list): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - path_list_ctype = ctypes.create_string_buffer(path_list.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_SetPath(vi_ctype, path_list_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 - environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 - reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 - reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 - error_code = self._library.niSwitch_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def unlock(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_UnlockSession(vi_ctype, None) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_for_debounce(self, maximum_time_ms): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ms_ctype = _visatype.ViInt32(maximum_time_ms) # case S150 - error_code = self._library.niSwitch_WaitForDebounce(vi_ctype, maximum_time_ms_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_for_scan_complete(self, maximum_time_ms): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - maximum_time_ms_ctype = _visatype.ViInt32(maximum_time_ms) # case S150 - error_code = self._library.niSwitch_WaitForScanComplete(vi_ctype, maximum_time_ms_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def close(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_close(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def error_message(self, error_code): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code_ctype = _visatype.ViStatus(error_code) # case S150 - error_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niSwitch_error_message(vi_ctype, error_code_ctype, error_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_message_ctype.value.decode(self._encoding) - - def reset(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - error_code = self._library.niSwitch_reset(vi_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def self_test(self): # noqa: N802 - vi_ctype = _visatype.ViSession(self._vi) # case S110 - self_test_result_ctype = _visatype.ViInt16() # case S220 - self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 - error_code = self._library.niSwitch_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/niswitch/niswitch/_library_singleton.py b/generated/niswitch/niswitch/_library_singleton.py deleted file mode 100644 index de057e341a..0000000000 --- a/generated/niswitch/niswitch/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import niswitch._library as _library -import niswitch.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'niswitch', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niswitch_32.dll', 'type': 'windll'}, - '64bit': {'name': 'niswitch_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for niswitch. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/niswitch/niswitch/_visatype.py b/generated/niswitch/niswitch/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/niswitch/niswitch/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/niswitch/niswitch/enums.py b/generated/niswitch/niswitch/enums.py deleted file mode 100644 index a5ade1e6de..0000000000 --- a/generated/niswitch/niswitch/enums.py +++ /dev/null @@ -1,472 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import Enum - - -class HandshakingInitiation(Enum): - MEASUREMENT_DEVICE = 0 - r''' - The `niSwitch Initiate - Scan `__ VI does not - return until the switch hardware is waiting for a trigger input. This - ensures that if you initiate the measurement device after calling the - `niSwitch Initiate - Scan `__ VI , the switch - is sure to receive the first measurement complete (MC) signal sent by - the measurement device. The measurement device should be configured to - first take a measurement, send MC, then wait for scanner advanced output - signal. Thus, the first MC of the measurement device initiates - handshaking. - ''' - SWITCH = 1 - r''' - The `niSwitch Initiate - Scan `__ VI returns - immediately after beginning scan list execution. It is assumed that the - measurement device has already been configured and is waiting for the - scanner advanced signal. The measurement should be configured to first - wait for a trigger, then take a measurement. Thus, the first scanner - advanced output signal of the switch module initiates handshaking. - ''' - - -class PathCapability(Enum): - PATH_AVAILABLE = 1 - r''' - Path Available - ''' - PATH_EXISTS = 2 - r''' - Path Exists - ''' - PATH_UNSUPPORTED = 3 - r''' - Path Unsupported - ''' - RESOURCE_IN_USE = 4 - r''' - Resource in use - ''' - SOURCE_CONFLICT = 5 - r''' - Source conflict - ''' - CHANNEL_NOT_AVAILABLE = 6 - r''' - Channel not available - ''' - - -class RelayAction(Enum): - OPEN = 20 - r''' - Open Relay - ''' - CLOSE = 21 - r''' - Close Relay - ''' - - -class RelayPosition(Enum): - OPEN = 10 - r''' - Open - ''' - CLOSED = 11 - r''' - Closed - ''' - - -class ScanAdvancedOutput(Enum): - NONE = 0 - r''' - The switch device does not produce a Scan Advanced Output trigger. - ''' - EXTERNAL = 2 - r''' - External Trigger. The switch device produces the Scan Advanced Output trigger on the external trigger output. - ''' - TTL0 = 111 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG0 line. - ''' - TTL1 = 112 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG1 line. - ''' - TTL2 = 113 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG2 line. - ''' - TTL3 = 114 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG3 line. - ''' - TTL4 = 115 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG4 line. - ''' - TTL5 = 116 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG5 line. - ''' - TTL6 = 117 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG6 line. - ''' - TTL7 = 118 - r''' - The switch device produces the Scan Advanced Output on the PXI TRIG7 line. - ''' - PXI_STAR = 125 - r''' - The switch module produces the Scan Advanced Output Trigger on the PXI - Star trigger bus before processing the next entry in the scan list. - ''' - REARCONNECTOR = 1000 - r''' - The switch device produces the Scan Advanced Output trigger on the rear connector. - ''' - FRONTCONNECTOR = 1001 - r''' - The switch device produces the Scan Advanced Output trigger on the front connector. - ''' - REARCONNECTOR_MODULE1 = 1021 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 1. - ''' - REARCONNECTOR_MODULE2 = 1022 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 2. - ''' - REARCONNECTOR_MODULE3 = 1023 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 3. - ''' - REARCONNECTOR_MODULE4 = 1024 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 4. - ''' - REARCONNECTOR_MODULE5 = 1025 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 5. - ''' - REARCONNECTOR_MODULE6 = 1026 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 6. - ''' - REARCONNECTOR_MODULE7 = 1027 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 7. - ''' - REARCONNECTOR_MODULE8 = 1028 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 8. - ''' - REARCONNECTOR_MODULE9 = 1029 - r''' - The switch module produces the Scan Advanced Ouptut Trigger on the rear - connector module 9. - ''' - REARCONNECTOR_MODULE10 = 1030 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 10. - ''' - REARCONNECTOR_MODULE11 = 1031 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 11. - ''' - REARCONNECTOR_MODULE12 = 1032 - r''' - The switch module produces the Scan Advanced Output Trigger on the rear - connector module 12. - ''' - FRONTCONNECTOR_MODULE1 = 1041 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 1. - ''' - FRONTCONNECTOR_MODULE2 = 1042 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 2. - ''' - FRONTCONNECTOR_MODULE3 = 1043 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 3. - ''' - FRONTCONNECTOR_MODULE4 = 1044 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 4. - ''' - FRONTCONNECTOR_MODULE5 = 1045 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 5. - ''' - FRONTCONNECTOR_MODULE6 = 1046 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 6. - ''' - FRONTCONNECTOR_MODULE7 = 1047 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 7. - ''' - FRONTCONNECTOR_MODULE8 = 1048 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 8. - ''' - FRONTCONNECTOR_MODULE9 = 1049 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 9. - ''' - FRONTCONNECTOR_MODULE10 = 1050 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 10. - ''' - FRONTCONNECTOR_MODULE11 = 1051 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 11. - ''' - FRONTCONNECTOR_MODULE12 = 1052 - r''' - The switch module produces the Scan Advanced Output Trigger on the front - connector module 12. - ''' - - -class ScanAdvancedPolarity(Enum): - RISING = 0 - r''' - The trigger occurs on the rising edge of the signal. - ''' - FALLING = 1 - r''' - The trigger occurs on the falling edge of the signal. - ''' - - -class ScanMode(Enum): - NONE = 0 - r''' - No implicit action on connections when scanning. - ''' - BREAK_BEFORE_MAKE = 1 - r''' - When scanning, the switch device breaks existing connections before making new connections. - ''' - BREAK_AFTER_MAKE = 2 - r''' - When scanning, the switch device breaks existing connections after making new connections. - ''' - - -class TriggerInput(Enum): - IMMEDIATE = 1 - r''' - Immediate Trigger. The switch device does not wait for a trigger before processing the next entry in the scan list. - ''' - EXTERNAL = 2 - r''' - External Trigger. The switch device waits until it receives a trigger from an external source through the external trigger input before processing the next entry in the scan list. - ''' - SOFTWARE_TRIG = 3 - r''' - The switch device waits until you call the send_software_trigger method before processing the next entry in the scan list. - ''' - TTL0 = 111 - r''' - The switch device waits until it receives a trigger on the PXI TRIG0 line before processing the next entry in the scan list. - ''' - TTL1 = 112 - r''' - The switch device waits until it receives a trigger on the PXI TRIG1 line before processing the next entry in the scan list. - ''' - TTL2 = 113 - r''' - The switch device waits until it receives a trigger on the PXI TRIG2 line before processing the next entry in the scan list. - ''' - TTL3 = 114 - r''' - The switch device waits until it receives a trigger on the PXI TRIG3 line before processing the next entry in the scan list. - ''' - TTL4 = 115 - r''' - The switch device waits until it receives a trigger on the PXI TRIG4 line before processing the next entry in the scan list. - ''' - TTL5 = 116 - r''' - The switch device waits until it receives a trigger on the PXI TRIG5 line before processing the next entry in the scan list. - ''' - TTL6 = 117 - r''' - The switch device waits until it receives a trigger on the PXI TRIG6 line before processing the next entry in the scan list. - ''' - TTL7 = 118 - r''' - The switch device waits until it receives a trigger on the PXI TRIG7 line before processing the next entry in the scan list. - ''' - PXI_STAR = 125 - r''' - The switch device waits until it receives a trigger on the PXI STAR trigger bus before processing the next entry in the scan list. - ''' - REARCONNECTOR = 1000 - r''' - The switch device waits until it receives a trigger on the rear connector. - ''' - FRONTCONNECTOR = 1001 - r''' - The switch device waits until it receives a trigger on the front connector. - ''' - REARCONNECTOR_MODULE1 = 1021 - r''' - The switch module waits until it receives a trigger on the rear - connector module 1. - ''' - REARCONNECTOR_MODULE2 = 1022 - r''' - The switch module waits until it receives a trigger on the rear - connector module 2. - ''' - REARCONNECTOR_MODULE3 = 1023 - r''' - The switch module waits until it receives a trigger on the rear - connector module 3. - ''' - REARCONNECTOR_MODULE4 = 1024 - r''' - The switch module waits until it receives a trigger on the rear - connector module 4. - ''' - REARCONNECTOR_MODULE5 = 1025 - r''' - The switch module waits until it receives a trigger on the rear - connector module 5. - ''' - REARCONNECTOR_MODULE6 = 1026 - r''' - The switch module waits until it receives a trigger on the rear - connector module 6. - ''' - REARCONNECTOR_MODULE7 = 1027 - r''' - The switch module waits until it receives a trigger on the rear - connector module 7. - ''' - REARCONNECTOR_MODULE8 = 1028 - r''' - The switch module waits until it receives a trigger on the rear - connector module 8. - ''' - REARCONNECTOR_MODULE9 = 1029 - r''' - The switch module waits until it receives a trigger on the rear - connector module 9. - ''' - REARCONNECTOR_MODULE10 = 1030 - r''' - The switch module waits until it receives a trigger on the rear - connector module 10. - ''' - REARCONNECTOR_MODULE11 = 1031 - r''' - The switch module waits until it receives a trigger on the rear - connector module 11. - ''' - REARCONNECTOR_MODULE12 = 1032 - r''' - The switch module waits until it receives a trigger on the rear - connector module 12. - ''' - FRONTCONNECTOR_MODULE1 = 1041 - r''' - The switch module waits until it receives a trigger on the front - connector module 1. - ''' - FRONTCONNECTOR_MODULE2 = 1042 - r''' - The switch module waits until it receives a trigger on the front - connector module 2. - ''' - FRONTCONNECTOR_MODULE3 = 1043 - r''' - The switch module waits until it receives a trigger on the front - connector module 3. - ''' - FRONTCONNECTOR_MODULE4 = 1044 - r''' - The switch module waits until it receives a trigger on the front - connector module 4. - ''' - FRONTCONNECTOR_MODULE5 = 1045 - r''' - The switch module waits until it receives a trigger on the front - connector module 5. - ''' - FRONTCONNECTOR_MODULE6 = 1046 - r''' - The switch module waits until it receives a trigger on the front - connector module 6. - ''' - FRONTCONNECTOR_MODULE7 = 1047 - r''' - The switch module waits until it receives a trigger on the front - connector module 7. - ''' - FRONTCONNECTOR_MODULE8 = 1048 - r''' - The switch module waits until it receives a trigger on the front - connector module 8. - ''' - FRONTCONNECTOR_MODULE9 = 1049 - r''' - The switch module waits until it receives a trigger on the front - connector module 9. - ''' - FRONTCONNECTOR_MODULE10 = 1050 - r''' - The switch module waits until it receives a trigger on the front - connector module 10. - ''' - FRONTCONNECTOR_MODULE11 = 1051 - r''' - The switch module waits until it receives a trigger on the front - connector module 11. - ''' - FRONTCONNECTOR_MODULE12 = 1052 - r''' - The switch module waits until it receives a trigger on the front - connector module 12. - ''' - - -class TriggerInputPolarity(Enum): - RISING = 0 - r''' - The trigger occurs on the rising edge of the signal. - ''' - FALLING = 1 - r''' - The trigger occurs on the falling edge of the signal. - ''' diff --git a/generated/niswitch/niswitch/errors.py b/generated/niswitch/niswitch/errors.py deleted file mode 100644 index d67194e48d..0000000000 --- a/generated/niswitch/niswitch/errors.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-SWITCH''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-SWITCH driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-SWITCH driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class RpcError(Error): - '''An error specific to sessions to the NI gRPC Device Server''' - - def __init__(self, rpc_code, description): - self.rpc_code = rpc_code - self.description = description - try: - import grpc - rpc_error = str(grpc.StatusCode(self.rpc_code)) - except Exception: - rpc_error = str(self.rpc_code) - super(RpcError, self).__init__(rpc_error + ": " + self.description) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-SWITCH runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-SWITCH driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-SWITCH runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-SWITCH driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-SWITCH runtime returned an unexpected value. This can occur if it is too new for the niswitch Python module. Upgrade the niswitch Python module.') - - -class InvalidRepeatedCapabilityError(Error): - '''An error due to an invalid character in a repeated capability''' - - def __init__(self, invalid_character, invalid_string): - super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) - - -class SelfTestError(Error): - '''An error due to a failed self-test''' - - def __init__(self, code, msg): - self.code = code - self.message = msg - super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by niswitch.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/niswitch/niswitch/grpc_session_options.py b/generated/niswitch/niswitch/grpc_session_options.py deleted file mode 100644 index 2dc1779d13..0000000000 --- a/generated/niswitch/niswitch/grpc_session_options.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -from enum import IntEnum - - -# This constant specifies the gRPC package and service used by this API. -# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. -GRPC_SERVICE_INTERFACE_NAME = 'niswitch_grpc.NiSwitch' - -# This constant specifies the API license key required by the NI gRPC Device Server that comes with -# MeasurementLink 2023 Q1. -MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' - - -class SessionInitializationBehavior(IntEnum): - AUTO = 0 - r''' - The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server - will initialize a new session. - - Note: - When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor - was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the - server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. - ''' - INITIALIZE_SERVER_SESSION = 1 - r''' - Require the NI gRPC Device Server to initialize a new session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will automatically close the - server session. - ''' - ATTACH_TO_SERVER_SESSION = 2 - r''' - Require the NI gRPC Device Server to attach to an existing session with the specified name. - - Note: - When using the Session as a context manager and the context exits, it will detach from the server session - and leave it open. - ''' - - -class GrpcSessionOptions(object): - '''Collection of options that specifies session behaviors related to gRPC.''' - - def __init__( - self, - grpc_channel, - session_name, - *, - api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, - initialization_behavior=SessionInitializationBehavior.AUTO - ): - r'''Collection of options that specifies session behaviors related to gRPC. - - Creates and returns an object you can pass to a Session constructor. - - Args: - grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. - - session_name (str): User-specified name that identifies the driver session on the NI gRPC Device - Server. This is different from the resource name parameter many APIs take as a separate - parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. - You can use an empty string if you want to always initialize a new session on the server. - To attach to an existing session, you must specify the session name it was initialized with. - - api_key (str): Specifies the API license key required by the NI gRPC Device Server. - - initialization_behavior (enum): Specifies whether it is acceptable to initialize a new - session or attach to an existing one, or if only one of the behaviors is desired. - The driver session exists on the NI gRPC Device Server. - ''' - self.grpc_channel = grpc_channel - self.session_name = session_name - self.api_key = api_key - self.initialization_behavior = initialization_behavior diff --git a/generated/niswitch/niswitch/nidevice_pb2.py b/generated/niswitch/niswitch/nidevice_pb2.py deleted file mode 100644 index d7fff4491d..0000000000 --- a/generated/niswitch/niswitch/nidevice_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: nidevice.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' - _globals['_NICOMPLEXNUMBER']._serialized_start=33 - _globals['_NICOMPLEXNUMBER']._serialized_end=83 - _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 - _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 - _globals['_NICOMPLEXI16']._serialized_start=140 - _globals['_NICOMPLEXI16']._serialized_end=187 - _globals['_SMTSPECTRUMINFO']._serialized_start=189 - _globals['_SMTSPECTRUMINFO']._serialized_end=303 -# @@protoc_insertion_point(module_scope) diff --git a/generated/niswitch/niswitch/nidevice_pb2_grpc.py b/generated/niswitch/niswitch/nidevice_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/generated/niswitch/niswitch/nidevice_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/generated/niswitch/niswitch/niswitch_pb2.py b/generated/niswitch/niswitch/niswitch_pb2.py deleted file mode 100644 index 0c3b53c870..0000000000 --- a/generated/niswitch/niswitch/niswitch_pb2.py +++ /dev/null @@ -1,285 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: niswitch.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -import session_pb2 as session__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eniswitch.proto\x12\rniswitch_grpc\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xcf\x01\n\x17InitWithTopologyRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08topology\x18\x03 \x01(\t\x12\x10\n\x08simulate\x18\x04 \x01(\x08\x12\x14\n\x0creset_device\x18\x05 \x01(\x08\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x8a\x01\n\x18InitWithTopologyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"X\n\x0e\x43onnectRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"!\n\x0f\x43onnectResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"U\n\x16\x43onnectMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x63onnection_list\x18\x02 \x01(\t\")\n\x17\x43onnectMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x11\x44isconnectRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"$\n\x12\x44isconnectResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x19\x44isconnectMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12\x64isconnection_list\x18\x02 \x01(\t\",\n\x1a\x44isconnectMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14\x44isconnectAllRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\'\n\x15\x44isconnectAllResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"X\n\x0eGetPathRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"/\n\x0fGetPathResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04path\x18\x02 \x01(\t\"G\n\x0eSetPathRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tpath_list\x18\x02 \x01(\t\"!\n\x0fSetPathResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x11\x43\x61nConnectRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"y\n\x12\x43\x61nConnectResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x0fpath_capability\x18\x02 \x01(\x0e\x32\x1d.niswitch_grpc.PathCapability\x12\x1b\n\x13path_capability_raw\x18\x03 \x01(\x11\"8\n\x12IsDebouncedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n\x13IsDebouncedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0cis_debounced\x18\x02 \x01(\x08\"U\n\x16WaitForDebounceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fmaximum_time_ms\x18\x02 \x01(\x11\")\n\x17WaitForDebounceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xad\x01\n\x0bScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tscan_list\x18\x02 \x01(\t\x12:\n\ninitiation\x18\x03 \x01(\x0e\x32$.niswitch_grpc.HandshakingInitiationH\x00\x12\x18\n\x0einitiation_raw\x18\x04 \x01(\x11H\x00\x42\x11\n\x0finitiation_enum\"\x1e\n\x0cScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"9\n\x13InitiateScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"&\n\x14InitiateScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"6\n\x10\x41\x62ortScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"#\n\x11\x41\x62ortScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11IsScanningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"9\n\x12IsScanningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bis_scanning\x18\x02 \x01(\x08\"Y\n\x1aWaitForScanCompleteRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fmaximum_time_ms\x18\x02 \x01(\x11\"-\n\x1bWaitForScanCompleteResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aSendSoftwareTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1bSendSoftwareTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xaa\x01\n\x18\x43onfigureScanListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tscan_list\x18\x02 \x01(\t\x12,\n\tscan_mode\x18\x03 \x01(\x0e\x32\x17.niswitch_grpc.ScanModeH\x00\x12\x17\n\rscan_mode_raw\x18\x04 \x01(\x11H\x00\x42\x10\n\x0escan_mode_enum\"+\n\x19\x43onfigureScanListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc2\x02\n\x1b\x43onfigureScanTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nscan_delay\x18\x02 \x01(\x01\x12\x34\n\rtrigger_input\x18\x03 \x01(\x0e\x32\x1b.niswitch_grpc.TriggerInputH\x00\x12\x1b\n\x11trigger_input_raw\x18\x04 \x01(\x11H\x00\x12\x41\n\x14scan_advanced_output\x18\x05 \x01(\x0e\x32!.niswitch_grpc.ScanAdvancedOutputH\x01\x12\"\n\x18scan_advanced_output_raw\x18\x06 \x01(\x11H\x01\x42\x14\n\x12trigger_input_enumB\x1b\n\x19scan_advanced_output_enum\".\n\x1c\x43onfigureScanTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x18SetContinuousScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x63ontinuous_scan\x18\x02 \x01(\x08\"+\n\x19SetContinuousScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x02\n\x18RouteTriggerInputRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\x17trigger_input_connector\x18\x02 \x01(\x0e\x32\x1b.niswitch_grpc.TriggerInputH\x00\x12%\n\x1btrigger_input_connector_raw\x18\x03 \x01(\x11H\x00\x12=\n\x16trigger_input_bus_line\x18\x04 \x01(\x0e\x32\x1b.niswitch_grpc.TriggerInputH\x01\x12$\n\x1atrigger_input_bus_line_raw\x18\x05 \x01(\x11H\x01\x12\x0e\n\x06invert\x18\x06 \x01(\x08\x42\x1e\n\x1ctrigger_input_connector_enumB\x1d\n\x1btrigger_input_bus_line_enum\"+\n\x19RouteTriggerInputResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x95\x03\n\x1eRouteScanAdvancedOutputRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12K\n\x1escan_advanced_output_connector\x18\x02 \x01(\x0e\x32!.niswitch_grpc.ScanAdvancedOutputH\x00\x12,\n\"scan_advanced_output_connector_raw\x18\x03 \x01(\x11H\x00\x12J\n\x1dscan_advanced_output_bus_line\x18\x04 \x01(\x0e\x32!.niswitch_grpc.ScanAdvancedOutputH\x01\x12+\n!scan_advanced_output_bus_line_raw\x18\x05 \x01(\x11H\x01\x12\x0e\n\x06invert\x18\x06 \x01(\x08\x42%\n#scan_advanced_output_connector_enumB$\n\"scan_advanced_output_bus_line_enum\"1\n\x1fRouteScanAdvancedOutputResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"E\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13\x63hannel_name_buffer\x18\x02 \x01(\t\"H\n\x13GetRelayNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"A\n\x14GetRelayNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11relay_name_buffer\x18\x02 \x01(\t\"N\n\x14GetRelayCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nrelay_name\x18\x02 \x01(\t\"<\n\x15GetRelayCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0brelay_count\x18\x02 \x01(\x11\"Q\n\x17GetRelayPositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nrelay_name\x18\x02 \x01(\t\"|\n\x18GetRelayPositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x34\n\x0erelay_position\x18\x02 \x01(\x0e\x32\x1c.niswitch_grpc.RelayPosition\x12\x1a\n\x12relay_position_raw\x18\x03 \x01(\x11\"\xb2\x01\n\x13RelayControlRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nrelay_name\x18\x02 \x01(\t\x12\x32\n\x0crelay_action\x18\x03 \x01(\x0e\x32\x1a.niswitch_grpc.RelayActionH\x00\x12\x1a\n\x10relay_action_raw\x18\x04 \x01(\x11H\x00\x42\x13\n\x11relay_action_enum\"&\n\x14RelayControlResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"\x8e\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x8f\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x8f\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\x90\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x90\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\x8d\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x11H\x00\x12\x46\n\x0f\x61ttribute_value\x18\x05 \x01(\x0e\x32+.niswitch_grpc.NiSwitchInt32AttributeValuesH\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x01\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc1\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa9\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8f\x02\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x11H\x00\x12\x46\n\x0f\x61ttribute_value\x18\x05 \x01(\x0e\x32+.niswitch_grpc.NiSwitchInt32AttributeValuesH\x00\x42\x16\n\x14\x61ttribute_value_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x01\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\xb0\x17\n\x11NiSwitchAttribute\x12\"\n\x1eNISWITCH_ATTRIBUTE_UNSPECIFIED\x10\x00\x12$\n\x1eNISWITCH_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12\x30\n*NISWITCH_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1e\n\x18NISWITCH_ATTRIBUTE_CACHE\x10\x94\x8b@\x12!\n\x1bNISWITCH_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12)\n#NISWITCH_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12*\n$NISWITCH_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12&\n NISWITCH_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12+\n%NISWITCH_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12/\n)NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12\x34\n.NISWITCH_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12\x30\n*NISWITCH_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12)\n#NISWITCH_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x35\n/NISWITCH_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\x31\n+NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12/\n)NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x41\n;NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12\x41\n;NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x34\n.NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12%\n\x1fNISWITCH_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12%\n\x1fNISWITCH_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12/\n)NISWITCH_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12*\n$NISWITCH_ATTRIBUTE_IS_SOURCE_CHANNEL\x10\xd1\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_IS_CONFIGURATION_CHANNEL\x10\xd3\xa5L\x12%\n\x1fNISWITCH_ATTRIBUTE_IS_DEBOUNCED\x10\xd2\xa5L\x12&\n NISWITCH_ATTRIBUTE_SETTLING_TIME\x10\xd4\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_BANDWIDTH\x10\xd5\xa5L\x12\'\n!NISWITCH_ATTRIBUTE_MAX_DC_VOLTAGE\x10\xd6\xa5L\x12\'\n!NISWITCH_ATTRIBUTE_MAX_AC_VOLTAGE\x10\xd7\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_MAX_SWITCHING_AC_CURRENT\x10\xd9\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_MAX_SWITCHING_DC_CURRENT\x10\xd8\xa5L\x12-\n\'NISWITCH_ATTRIBUTE_MAX_CARRY_AC_CURRENT\x10\xdb\xa5L\x12-\n\'NISWITCH_ATTRIBUTE_MAX_CARRY_DC_CURRENT\x10\xda\xa5L\x12/\n)NISWITCH_ATTRIBUTE_MAX_SWITCHING_AC_POWER\x10\xdd\xa5L\x12/\n)NISWITCH_ATTRIBUTE_MAX_SWITCHING_DC_POWER\x10\xdc\xa5L\x12+\n%NISWITCH_ATTRIBUTE_MAX_CARRY_AC_POWER\x10\xdf\xa5L\x12+\n%NISWITCH_ATTRIBUTE_MAX_CARRY_DC_POWER\x10\xde\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_CHARACTERISTIC_IMPEDANCE\x10\xe0\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_WIRE_MODE\x10\xe1\xa5L\x12$\n\x1eNISWITCH_ATTRIBUTE_NUM_OF_ROWS\x10\xe2\xa5L\x12\'\n!NISWITCH_ATTRIBUTE_NUM_OF_COLUMNS\x10\xe3\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_SCAN_LIST\x10\xe4\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_SCAN_MODE\x10\xe5\xa5L\x12&\n NISWITCH_ATTRIBUTE_TRIGGER_INPUT\x10\xe6\xa5L\x12-\n\'NISWITCH_ATTRIBUTE_SCAN_ADVANCED_OUTPUT\x10\xe7\xa5L\x12#\n\x1dNISWITCH_ATTRIBUTE_SCAN_DELAY\x10\xe9\xa5L\x12(\n\"NISWITCH_ATTRIBUTE_CONTINUOUS_SCAN\x10\xea\xa5L\x12$\n\x1eNISWITCH_ATTRIBUTE_IS_SCANNING\x10\xe8\xa5L\x12,\n&NISWITCH_ATTRIBUTE_IS_WAITING_FOR_TRIG\x10\xb4\x98\x46\x12%\n\x1fNISWITCH_ATTRIBUTE_TRIGGER_MODE\x10\xb5\x98\x46\x12\x31\n+NISWITCH_ATTRIBUTE_MASTER_SLAVE_TRIGGER_BUS\x10\xb6\x98\x46\x12\x37\n1NISWITCH_ATTRIBUTE_MASTER_SLAVE_SCAN_ADVANCED_BUS\x10\xb7\x98\x46\x12\x32\n,NISWITCH_ATTRIBUTE_CABLED_MODULE_TRIGGER_BUS\x10\xb8\x98\x46\x12\x38\n2NISWITCH_ATTRIBUTE_CABLED_MODULE_SCAN_ADVANCED_BUS\x10\xb9\x98\x46\x12/\n)NISWITCH_ATTRIBUTE_TRIGGER_INPUT_POLARITY\x10\xba\x98\x46\x12/\n)NISWITCH_ATTRIBUTE_SCAN_ADVANCED_POLARITY\x10\xbb\x98\x46\x12)\n#NISWITCH_ATTRIBUTE_PARSED_SCAN_LIST\x10\xbc\x98\x46\x12/\n)NISWITCH_ATTRIBUTE_HANDSHAKING_INITIATION\x10\xbd\x98\x46\x12)\n#NISWITCH_ATTRIBUTE_NUMBER_OF_RELAYS\x10\xbe\x98\x46\x12&\n NISWITCH_ATTRIBUTE_SERIAL_NUMBER\x10\xbf\x98\x46\x12.\n(NISWITCH_ATTRIBUTE_DIGITAL_FILTER_ENABLE\x10\xc0\x98\x46\x12\x42\n\n9SCAN_ADVANCED_OUTPUT_NISWITCH_VAL_FRONTCONNECTOR_MODULE10\x10\x9a\x08\x12>\n9SCAN_ADVANCED_OUTPUT_NISWITCH_VAL_FRONTCONNECTOR_MODULE11\x10\x9b\x08\x12>\n9SCAN_ADVANCED_OUTPUT_NISWITCH_VAL_FRONTCONNECTOR_MODULE12\x10\x9c\x08*\xad(\n\x1cNiSwitchInt32AttributeValues\x12\x1e\n\x1aNISWITCH_INT32_UNSPECIFIED\x10\x00\x12J\nFNISWITCH_INT32_HANDSHAKING_INITIATION_VAL_MEASUREMENT_DEVICE_INITIATED\x10\x00\x12>\n:NISWITCH_INT32_HANDSHAKING_INITIATION_VAL_SWITCH_INITIATED\x10\x01\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_NONE\x10\x00\x12\x34\n0NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_EXTERNAL\x10\x02\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL0\x10o\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL1\x10p\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL2\x10q\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL3\x10r\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL4\x10s\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL5\x10t\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL6\x10u\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL7\x10v\x12\x34\n0NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_PXI_STAR\x10}\x12:\n5NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR\x10\xe8\x07\x12;\n6NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR\x10\xe9\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE1\x10\xfd\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE2\x10\xfe\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE3\x10\xff\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE4\x10\x80\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE5\x10\x81\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE6\x10\x82\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE7\x10\x83\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE8\x10\x84\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE9\x10\x85\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE10\x10\x86\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE11\x10\x87\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE12\x10\x88\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE1\x10\x91\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE2\x10\x92\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE3\x10\x93\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE4\x10\x94\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE5\x10\x95\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE6\x10\x96\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE7\x10\x97\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE8\x10\x98\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE9\x10\x99\x08\x12\x44\n?NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE10\x10\x9a\x08\x12\x44\n?NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE11\x10\x9b\x08\x12\x44\n?NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE12\x10\x9c\x08\x12\x39\n5NISWITCH_INT32_SCAN_ADVANCED_POLARITY_VAL_RISING_EDGE\x10\x00\x12:\n6NISWITCH_INT32_SCAN_ADVANCED_POLARITY_VAL_FALLING_EDGE\x10\x01\x12%\n!NISWITCH_INT32_SCAN_MODE_VAL_NONE\x10\x00\x12\x32\n.NISWITCH_INT32_SCAN_MODE_VAL_BREAK_BEFORE_MAKE\x10\x01\x12\x31\n-NISWITCH_INT32_SCAN_MODE_VAL_BREAK_AFTER_MAKE\x10\x02\x12.\n*NISWITCH_INT32_TRIGGER_INPUT_VAL_IMMEDIATE\x10\x01\x12-\n)NISWITCH_INT32_TRIGGER_INPUT_VAL_EXTERNAL\x10\x02\x12\x32\n.NISWITCH_INT32_TRIGGER_INPUT_VAL_SOFTWARE_TRIG\x10\x03\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL0\x10o\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL1\x10p\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL2\x10q\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL3\x10r\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL4\x10s\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL5\x10t\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL6\x10u\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL7\x10v\x12-\n)NISWITCH_INT32_TRIGGER_INPUT_VAL_PXI_STAR\x10}\x12\x33\n.NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR\x10\xe8\x07\x12\x34\n/NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR\x10\xe9\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE1\x10\xfd\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE2\x10\xfe\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE3\x10\xff\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE4\x10\x80\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE5\x10\x81\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE6\x10\x82\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE7\x10\x83\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE8\x10\x84\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE9\x10\x85\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE10\x10\x86\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE11\x10\x87\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE12\x10\x88\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE1\x10\x91\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE2\x10\x92\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE3\x10\x93\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE4\x10\x94\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE5\x10\x95\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE6\x10\x96\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE7\x10\x97\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE8\x10\x98\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE9\x10\x99\x08\x12=\n8NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE10\x10\x9a\x08\x12=\n8NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE11\x10\x9b\x08\x12=\n8NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE12\x10\x9c\x08\x12\x39\n5NISWITCH_INT32_TRIGGER_INPUT_POLARITY_VAL_RISING_EDGE\x10\x00\x12:\n6NISWITCH_INT32_TRIGGER_INPUT_POLARITY_VAL_FALLING_EDGE\x10\x01\x12\'\n#NISWITCH_INT32_WIRE_MODE_VAL_1_WIRE\x10\x01\x12\'\n#NISWITCH_INT32_WIRE_MODE_VAL_2_WIRE\x10\x02\x12\'\n#NISWITCH_INT32_WIRE_MODE_VAL_4_WIRE\x10\x04\x1a\x02\x10\x01\x32\xac,\n\x08NiSwitch\x12?\n\x04Init\x12\x1a.niswitch_grpc.InitRequest\x1a\x1b.niswitch_grpc.InitResponse\x12`\n\x0fInitWithOptions\x12%.niswitch_grpc.InitWithOptionsRequest\x1a&.niswitch_grpc.InitWithOptionsResponse\x12\x63\n\x10InitWithTopology\x12&.niswitch_grpc.InitWithTopologyRequest\x1a\'.niswitch_grpc.InitWithTopologyResponse\x12\x42\n\x05\x43lose\x12\x1b.niswitch_grpc.CloseRequest\x1a\x1c.niswitch_grpc.CloseResponse\x12H\n\x07\x43onnect\x12\x1d.niswitch_grpc.ConnectRequest\x1a\x1e.niswitch_grpc.ConnectResponse\x12`\n\x0f\x43onnectMultiple\x12%.niswitch_grpc.ConnectMultipleRequest\x1a&.niswitch_grpc.ConnectMultipleResponse\x12Q\n\nDisconnect\x12 .niswitch_grpc.DisconnectRequest\x1a!.niswitch_grpc.DisconnectResponse\x12i\n\x12\x44isconnectMultiple\x12(.niswitch_grpc.DisconnectMultipleRequest\x1a).niswitch_grpc.DisconnectMultipleResponse\x12Z\n\rDisconnectAll\x12#.niswitch_grpc.DisconnectAllRequest\x1a$.niswitch_grpc.DisconnectAllResponse\x12H\n\x07GetPath\x12\x1d.niswitch_grpc.GetPathRequest\x1a\x1e.niswitch_grpc.GetPathResponse\x12H\n\x07SetPath\x12\x1d.niswitch_grpc.SetPathRequest\x1a\x1e.niswitch_grpc.SetPathResponse\x12Q\n\nCanConnect\x12 .niswitch_grpc.CanConnectRequest\x1a!.niswitch_grpc.CanConnectResponse\x12T\n\x0bIsDebounced\x12!.niswitch_grpc.IsDebouncedRequest\x1a\".niswitch_grpc.IsDebouncedResponse\x12`\n\x0fWaitForDebounce\x12%.niswitch_grpc.WaitForDebounceRequest\x1a&.niswitch_grpc.WaitForDebounceResponse\x12?\n\x04Scan\x12\x1a.niswitch_grpc.ScanRequest\x1a\x1b.niswitch_grpc.ScanResponse\x12W\n\x0cInitiateScan\x12\".niswitch_grpc.InitiateScanRequest\x1a#.niswitch_grpc.InitiateScanResponse\x12N\n\tAbortScan\x12\x1f.niswitch_grpc.AbortScanRequest\x1a .niswitch_grpc.AbortScanResponse\x12Q\n\nIsScanning\x12 .niswitch_grpc.IsScanningRequest\x1a!.niswitch_grpc.IsScanningResponse\x12l\n\x13WaitForScanComplete\x12).niswitch_grpc.WaitForScanCompleteRequest\x1a*.niswitch_grpc.WaitForScanCompleteResponse\x12l\n\x13SendSoftwareTrigger\x12).niswitch_grpc.SendSoftwareTriggerRequest\x1a*.niswitch_grpc.SendSoftwareTriggerResponse\x12\x66\n\x11\x43onfigureScanList\x12\'.niswitch_grpc.ConfigureScanListRequest\x1a(.niswitch_grpc.ConfigureScanListResponse\x12o\n\x14\x43onfigureScanTrigger\x12*.niswitch_grpc.ConfigureScanTriggerRequest\x1a+.niswitch_grpc.ConfigureScanTriggerResponse\x12\x66\n\x11SetContinuousScan\x12\'.niswitch_grpc.SetContinuousScanRequest\x1a(.niswitch_grpc.SetContinuousScanResponse\x12\x66\n\x11RouteTriggerInput\x12\'.niswitch_grpc.RouteTriggerInputRequest\x1a(.niswitch_grpc.RouteTriggerInputResponse\x12x\n\x17RouteScanAdvancedOutput\x12-.niswitch_grpc.RouteScanAdvancedOutputRequest\x1a..niswitch_grpc.RouteScanAdvancedOutputResponse\x12Q\n\nErrorQuery\x12 .niswitch_grpc.ErrorQueryRequest\x1a!.niswitch_grpc.ErrorQueryResponse\x12K\n\x08GetError\x12\x1e.niswitch_grpc.GetErrorRequest\x1a\x1f.niswitch_grpc.GetErrorResponse\x12Q\n\nClearError\x12 .niswitch_grpc.ClearErrorRequest\x1a!.niswitch_grpc.ClearErrorResponse\x12W\n\x0c\x45rrorMessage\x12\".niswitch_grpc.ErrorMessageRequest\x1a#.niswitch_grpc.ErrorMessageResponse\x12]\n\x0eGetChannelName\x12$.niswitch_grpc.GetChannelNameRequest\x1a%.niswitch_grpc.GetChannelNameResponse\x12W\n\x0cGetRelayName\x12\".niswitch_grpc.GetRelayNameRequest\x1a#.niswitch_grpc.GetRelayNameResponse\x12Z\n\rGetRelayCount\x12#.niswitch_grpc.GetRelayCountRequest\x1a$.niswitch_grpc.GetRelayCountResponse\x12\x63\n\x10GetRelayPosition\x12&.niswitch_grpc.GetRelayPositionRequest\x1a\'.niswitch_grpc.GetRelayPositionResponse\x12W\n\x0cRelayControl\x12\".niswitch_grpc.RelayControlRequest\x1a#.niswitch_grpc.RelayControlResponse\x12r\n\x15ResetInterchangeCheck\x12+.niswitch_grpc.ResetInterchangeCheckRequest\x1a,.niswitch_grpc.ResetInterchangeCheckResponse\x12{\n\x18\x43learInterchangeWarnings\x12..niswitch_grpc.ClearInterchangeWarningsRequest\x1a/.niswitch_grpc.ClearInterchangeWarningsResponse\x12\x45\n\x06\x43ommit\x12\x1c.niswitch_grpc.CommitRequest\x1a\x1d.niswitch_grpc.CommitResponse\x12\x66\n\x11ResetWithDefaults\x12\'.niswitch_grpc.ResetWithDefaultsRequest\x1a(.niswitch_grpc.ResetWithDefaultsResponse\x12H\n\x07\x44isable\x12\x1d.niswitch_grpc.DisableRequest\x1a\x1e.niswitch_grpc.DisableResponse\x12\x42\n\x05Reset\x12\x1b.niswitch_grpc.ResetRequest\x1a\x1c.niswitch_grpc.ResetResponse\x12K\n\x08SelfTest\x12\x1e.niswitch_grpc.SelfTestRequest\x1a\x1f.niswitch_grpc.SelfTestResponse\x12Z\n\rRevisionQuery\x12#.niswitch_grpc.RevisionQueryRequest\x1a$.niswitch_grpc.RevisionQueryResponse\x12l\n\x13GetAttributeViInt32\x12).niswitch_grpc.GetAttributeViInt32Request\x1a*.niswitch_grpc.GetAttributeViInt32Response\x12o\n\x14GetAttributeViReal64\x12*.niswitch_grpc.GetAttributeViReal64Request\x1a+.niswitch_grpc.GetAttributeViReal64Response\x12o\n\x14GetAttributeViString\x12*.niswitch_grpc.GetAttributeViStringRequest\x1a+.niswitch_grpc.GetAttributeViStringResponse\x12r\n\x15GetAttributeViSession\x12+.niswitch_grpc.GetAttributeViSessionRequest\x1a,.niswitch_grpc.GetAttributeViSessionResponse\x12r\n\x15GetAttributeViBoolean\x12+.niswitch_grpc.GetAttributeViBooleanRequest\x1a,.niswitch_grpc.GetAttributeViBooleanResponse\x12l\n\x13SetAttributeViInt32\x12).niswitch_grpc.SetAttributeViInt32Request\x1a*.niswitch_grpc.SetAttributeViInt32Response\x12o\n\x14SetAttributeViReal64\x12*.niswitch_grpc.SetAttributeViReal64Request\x1a+.niswitch_grpc.SetAttributeViReal64Response\x12o\n\x14SetAttributeViString\x12*.niswitch_grpc.SetAttributeViStringRequest\x1a+.niswitch_grpc.SetAttributeViStringResponse\x12r\n\x15SetAttributeViSession\x12+.niswitch_grpc.SetAttributeViSessionRequest\x1a,.niswitch_grpc.SetAttributeViSessionResponse\x12r\n\x15SetAttributeViBoolean\x12+.niswitch_grpc.SetAttributeViBooleanRequest\x1a,.niswitch_grpc.SetAttributeViBooleanResponse\x12r\n\x15\x43heckAttributeViInt32\x12+.niswitch_grpc.CheckAttributeViInt32Request\x1a,.niswitch_grpc.CheckAttributeViInt32Response\x12u\n\x16\x43heckAttributeViReal64\x12,.niswitch_grpc.CheckAttributeViReal64Request\x1a-.niswitch_grpc.CheckAttributeViReal64Response\x12u\n\x16\x43heckAttributeViString\x12,.niswitch_grpc.CheckAttributeViStringRequest\x1a-.niswitch_grpc.CheckAttributeViStringResponse\x12x\n\x17\x43heckAttributeViSession\x12-.niswitch_grpc.CheckAttributeViSessionRequest\x1a..niswitch_grpc.CheckAttributeViSessionResponse\x12x\n\x17\x43heckAttributeViBoolean\x12-.niswitch_grpc.CheckAttributeViBooleanRequest\x1a..niswitch_grpc.CheckAttributeViBooleanResponse\x12x\n\x17InvalidateAllAttributes\x12-.niswitch_grpc.InvalidateAllAttributesRequest\x1a..niswitch_grpc.InvalidateAllAttributesResponseBD\n\x14\x63om.ni.grpc.niswitchB\x08NiSwitchP\x01\xaa\x02\x1fNationalInstruments.Grpc.Switchb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'niswitch_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.ni.grpc.niswitchB\010NiSwitchP\001\252\002\037NationalInstruments.Grpc.Switch' - _NISWITCHINT32ATTRIBUTEVALUES._options = None - _NISWITCHINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' - _INITRESPONSE.fields_by_name['error_message']._options = None - _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None - _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _INITWITHTOPOLOGYRESPONSE.fields_by_name['error_message']._options = None - _INITWITHTOPOLOGYRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' - _globals['_NISWITCHATTRIBUTE']._serialized_start=10832 - _globals['_NISWITCHATTRIBUTE']._serialized_end=13824 - _globals['_SCANMODE']._serialized_start=13827 - _globals['_SCANMODE']._serialized_end=13961 - _globals['_TRIGGERINPUT']._serialized_start=13964 - _globals['_TRIGGERINPUT']._serialized_end=15908 - _globals['_PATHCAPABILITY']._serialized_start=15911 - _globals['_PATHCAPABILITY']._serialized_end=16258 - _globals['_HANDSHAKINGINITIATION']._serialized_start=16261 - _globals['_HANDSHAKINGINITIATION']._serialized_end=16412 - _globals['_RELAYPOSITION']._serialized_start=16414 - _globals['_RELAYPOSITION']._serialized_end=16539 - _globals['_RELAYACTION']._serialized_start=16542 - _globals['_RELAYACTION']._serialized_end=16670 - _globals['_SCANADVANCEDOUTPUT']._serialized_start=16673 - _globals['_SCANADVANCEDOUTPUT']._serialized_end=18800 - _globals['_NISWITCHINT32ATTRIBUTEVALUES']._serialized_start=18803 - _globals['_NISWITCHINT32ATTRIBUTEVALUES']._serialized_end=23968 - _globals['_INITREQUEST']._serialized_start=49 - _globals['_INITREQUEST']._serialized_end=226 - _globals['_INITRESPONSE']._serialized_start=228 - _globals['_INITRESPONSE']._serialized_end=354 - _globals['_INITWITHOPTIONSREQUEST']._serialized_start=357 - _globals['_INITWITHOPTIONSREQUEST']._serialized_end=568 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=571 - _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=708 - _globals['_INITWITHTOPOLOGYREQUEST']._serialized_start=711 - _globals['_INITWITHTOPOLOGYREQUEST']._serialized_end=918 - _globals['_INITWITHTOPOLOGYRESPONSE']._serialized_start=921 - _globals['_INITWITHTOPOLOGYRESPONSE']._serialized_end=1059 - _globals['_CLOSEREQUEST']._serialized_start=1061 - _globals['_CLOSEREQUEST']._serialized_end=1111 - _globals['_CLOSERESPONSE']._serialized_start=1113 - _globals['_CLOSERESPONSE']._serialized_end=1144 - _globals['_CONNECTREQUEST']._serialized_start=1146 - _globals['_CONNECTREQUEST']._serialized_end=1234 - _globals['_CONNECTRESPONSE']._serialized_start=1236 - _globals['_CONNECTRESPONSE']._serialized_end=1269 - _globals['_CONNECTMULTIPLEREQUEST']._serialized_start=1271 - _globals['_CONNECTMULTIPLEREQUEST']._serialized_end=1356 - _globals['_CONNECTMULTIPLERESPONSE']._serialized_start=1358 - _globals['_CONNECTMULTIPLERESPONSE']._serialized_end=1399 - _globals['_DISCONNECTREQUEST']._serialized_start=1401 - _globals['_DISCONNECTREQUEST']._serialized_end=1492 - _globals['_DISCONNECTRESPONSE']._serialized_start=1494 - _globals['_DISCONNECTRESPONSE']._serialized_end=1530 - _globals['_DISCONNECTMULTIPLEREQUEST']._serialized_start=1532 - _globals['_DISCONNECTMULTIPLEREQUEST']._serialized_end=1623 - _globals['_DISCONNECTMULTIPLERESPONSE']._serialized_start=1625 - _globals['_DISCONNECTMULTIPLERESPONSE']._serialized_end=1669 - _globals['_DISCONNECTALLREQUEST']._serialized_start=1671 - _globals['_DISCONNECTALLREQUEST']._serialized_end=1729 - _globals['_DISCONNECTALLRESPONSE']._serialized_start=1731 - _globals['_DISCONNECTALLRESPONSE']._serialized_end=1770 - _globals['_GETPATHREQUEST']._serialized_start=1772 - _globals['_GETPATHREQUEST']._serialized_end=1860 - _globals['_GETPATHRESPONSE']._serialized_start=1862 - _globals['_GETPATHRESPONSE']._serialized_end=1909 - _globals['_SETPATHREQUEST']._serialized_start=1911 - _globals['_SETPATHREQUEST']._serialized_end=1982 - _globals['_SETPATHRESPONSE']._serialized_start=1984 - _globals['_SETPATHRESPONSE']._serialized_end=2017 - _globals['_CANCONNECTREQUEST']._serialized_start=2019 - _globals['_CANCONNECTREQUEST']._serialized_end=2110 - _globals['_CANCONNECTRESPONSE']._serialized_start=2112 - _globals['_CANCONNECTRESPONSE']._serialized_end=2233 - _globals['_ISDEBOUNCEDREQUEST']._serialized_start=2235 - _globals['_ISDEBOUNCEDREQUEST']._serialized_end=2291 - _globals['_ISDEBOUNCEDRESPONSE']._serialized_start=2293 - _globals['_ISDEBOUNCEDRESPONSE']._serialized_end=2352 - _globals['_WAITFORDEBOUNCEREQUEST']._serialized_start=2354 - _globals['_WAITFORDEBOUNCEREQUEST']._serialized_end=2439 - _globals['_WAITFORDEBOUNCERESPONSE']._serialized_start=2441 - _globals['_WAITFORDEBOUNCERESPONSE']._serialized_end=2482 - _globals['_SCANREQUEST']._serialized_start=2485 - _globals['_SCANREQUEST']._serialized_end=2658 - _globals['_SCANRESPONSE']._serialized_start=2660 - _globals['_SCANRESPONSE']._serialized_end=2690 - _globals['_INITIATESCANREQUEST']._serialized_start=2692 - _globals['_INITIATESCANREQUEST']._serialized_end=2749 - _globals['_INITIATESCANRESPONSE']._serialized_start=2751 - _globals['_INITIATESCANRESPONSE']._serialized_end=2789 - _globals['_ABORTSCANREQUEST']._serialized_start=2791 - _globals['_ABORTSCANREQUEST']._serialized_end=2845 - _globals['_ABORTSCANRESPONSE']._serialized_start=2847 - _globals['_ABORTSCANRESPONSE']._serialized_end=2882 - _globals['_ISSCANNINGREQUEST']._serialized_start=2884 - _globals['_ISSCANNINGREQUEST']._serialized_end=2939 - _globals['_ISSCANNINGRESPONSE']._serialized_start=2941 - _globals['_ISSCANNINGRESPONSE']._serialized_end=2998 - _globals['_WAITFORSCANCOMPLETEREQUEST']._serialized_start=3000 - _globals['_WAITFORSCANCOMPLETEREQUEST']._serialized_end=3089 - _globals['_WAITFORSCANCOMPLETERESPONSE']._serialized_start=3091 - _globals['_WAITFORSCANCOMPLETERESPONSE']._serialized_end=3136 - _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_start=3138 - _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_end=3202 - _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_start=3204 - _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_end=3249 - _globals['_CONFIGURESCANLISTREQUEST']._serialized_start=3252 - _globals['_CONFIGURESCANLISTREQUEST']._serialized_end=3422 - _globals['_CONFIGURESCANLISTRESPONSE']._serialized_start=3424 - _globals['_CONFIGURESCANLISTRESPONSE']._serialized_end=3467 - _globals['_CONFIGURESCANTRIGGERREQUEST']._serialized_start=3470 - _globals['_CONFIGURESCANTRIGGERREQUEST']._serialized_end=3792 - _globals['_CONFIGURESCANTRIGGERRESPONSE']._serialized_start=3794 - _globals['_CONFIGURESCANTRIGGERRESPONSE']._serialized_end=3840 - _globals['_SETCONTINUOUSSCANREQUEST']._serialized_start=3842 - _globals['_SETCONTINUOUSSCANREQUEST']._serialized_end=3929 - _globals['_SETCONTINUOUSSCANRESPONSE']._serialized_start=3931 - _globals['_SETCONTINUOUSSCANRESPONSE']._serialized_end=3974 - _globals['_ROUTETRIGGERINPUTREQUEST']._serialized_start=3977 - _globals['_ROUTETRIGGERINPUTREQUEST']._serialized_end=4322 - _globals['_ROUTETRIGGERINPUTRESPONSE']._serialized_start=4324 - _globals['_ROUTETRIGGERINPUTRESPONSE']._serialized_end=4367 - _globals['_ROUTESCANADVANCEDOUTPUTREQUEST']._serialized_start=4370 - _globals['_ROUTESCANADVANCEDOUTPUTREQUEST']._serialized_end=4775 - _globals['_ROUTESCANADVANCEDOUTPUTRESPONSE']._serialized_start=4777 - _globals['_ROUTESCANADVANCEDOUTPUTRESPONSE']._serialized_end=4826 - _globals['_ERRORQUERYREQUEST']._serialized_start=4828 - _globals['_ERRORQUERYREQUEST']._serialized_end=4883 - _globals['_ERRORQUERYRESPONSE']._serialized_start=4885 - _globals['_ERRORQUERYRESPONSE']._serialized_end=4964 - _globals['_GETERRORREQUEST']._serialized_start=4966 - _globals['_GETERRORREQUEST']._serialized_end=5019 - _globals['_GETERRORRESPONSE']._serialized_start=5021 - _globals['_GETERRORRESPONSE']._serialized_end=5090 - _globals['_CLEARERRORREQUEST']._serialized_start=5092 - _globals['_CLEARERRORREQUEST']._serialized_end=5147 - _globals['_CLEARERRORRESPONSE']._serialized_start=5149 - _globals['_CLEARERRORRESPONSE']._serialized_end=5185 - _globals['_ERRORMESSAGEREQUEST']._serialized_start=5187 - _globals['_ERRORMESSAGEREQUEST']._serialized_end=5264 - _globals['_ERRORMESSAGERESPONSE']._serialized_start=5266 - _globals['_ERRORMESSAGERESPONSE']._serialized_end=5327 - _globals['_GETCHANNELNAMEREQUEST']._serialized_start=5329 - _globals['_GETCHANNELNAMEREQUEST']._serialized_end=5403 - _globals['_GETCHANNELNAMERESPONSE']._serialized_start=5405 - _globals['_GETCHANNELNAMERESPONSE']._serialized_end=5474 - _globals['_GETRELAYNAMEREQUEST']._serialized_start=5476 - _globals['_GETRELAYNAMEREQUEST']._serialized_end=5548 - _globals['_GETRELAYNAMERESPONSE']._serialized_start=5550 - _globals['_GETRELAYNAMERESPONSE']._serialized_end=5615 - _globals['_GETRELAYCOUNTREQUEST']._serialized_start=5617 - _globals['_GETRELAYCOUNTREQUEST']._serialized_end=5695 - _globals['_GETRELAYCOUNTRESPONSE']._serialized_start=5697 - _globals['_GETRELAYCOUNTRESPONSE']._serialized_end=5757 - _globals['_GETRELAYPOSITIONREQUEST']._serialized_start=5759 - _globals['_GETRELAYPOSITIONREQUEST']._serialized_end=5840 - _globals['_GETRELAYPOSITIONRESPONSE']._serialized_start=5842 - _globals['_GETRELAYPOSITIONRESPONSE']._serialized_end=5966 - _globals['_RELAYCONTROLREQUEST']._serialized_start=5969 - _globals['_RELAYCONTROLREQUEST']._serialized_end=6147 - _globals['_RELAYCONTROLRESPONSE']._serialized_start=6149 - _globals['_RELAYCONTROLRESPONSE']._serialized_end=6187 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=6189 - _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=6255 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=6257 - _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=6304 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=6306 - _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=6375 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=6377 - _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=6427 - _globals['_COMMITREQUEST']._serialized_start=6429 - _globals['_COMMITREQUEST']._serialized_end=6480 - _globals['_COMMITRESPONSE']._serialized_start=6482 - _globals['_COMMITRESPONSE']._serialized_end=6514 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=6516 - _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=6578 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=6580 - _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=6623 - _globals['_DISABLEREQUEST']._serialized_start=6625 - _globals['_DISABLEREQUEST']._serialized_end=6677 - _globals['_DISABLERESPONSE']._serialized_start=6679 - _globals['_DISABLERESPONSE']._serialized_end=6712 - _globals['_RESETREQUEST']._serialized_start=6714 - _globals['_RESETREQUEST']._serialized_end=6764 - _globals['_RESETRESPONSE']._serialized_start=6766 - _globals['_RESETRESPONSE']._serialized_end=6797 - _globals['_SELFTESTREQUEST']._serialized_start=6799 - _globals['_SELFTESTREQUEST']._serialized_end=6852 - _globals['_SELFTESTRESPONSE']._serialized_start=6854 - _globals['_SELFTESTRESPONSE']._serialized_end=6941 - _globals['_REVISIONQUERYREQUEST']._serialized_start=6943 - _globals['_REVISIONQUERYREQUEST']._serialized_end=7001 - _globals['_REVISIONQUERYRESPONSE']._serialized_start=7003 - _globals['_REVISIONQUERYRESPONSE']._serialized_end=7105 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=7108 - _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=7250 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=7252 - _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=7322 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=7325 - _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=7468 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=7470 - _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=7541 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=7544 - _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=7687 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=7689 - _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=7760 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=7763 - _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=7907 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=7909 - _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=8005 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=8008 - _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=8152 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=8154 - _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=8226 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=8229 - _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=8498 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=8500 - _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=8545 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=8548 - _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=8720 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=8722 - _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=8768 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=8771 - _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=8943 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=8945 - _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=8991 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=8994 - _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=9187 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=9189 - _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=9236 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=9239 - _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=9408 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=9410 - _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=9457 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=9460 - _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=9731 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=9733 - _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=9780 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=9783 - _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=9957 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=9959 - _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=10007 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=10010 - _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=10184 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=10186 - _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=10234 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=10237 - _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=10432 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=10434 - _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=10483 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=10486 - _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=10657 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=10659 - _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=10708 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=10710 - _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=10778 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=10780 - _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=10829 - _globals['_NISWITCH']._serialized_start=23971 - _globals['_NISWITCH']._serialized_end=29647 -# @@protoc_insertion_point(module_scope) diff --git a/generated/niswitch/niswitch/niswitch_pb2_grpc.py b/generated/niswitch/niswitch/niswitch_pb2_grpc.py deleted file mode 100644 index 8f1df1f5cb..0000000000 --- a/generated/niswitch/niswitch/niswitch_pb2_grpc.py +++ /dev/null @@ -1,1947 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from . import niswitch_pb2 as niswitch__pb2 - - -class NiSwitchStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Init = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Init', - request_serializer=niswitch__pb2.InitRequest.SerializeToString, - response_deserializer=niswitch__pb2.InitResponse.FromString, - ) - self.InitWithOptions = channel.unary_unary( - '/niswitch_grpc.NiSwitch/InitWithOptions', - request_serializer=niswitch__pb2.InitWithOptionsRequest.SerializeToString, - response_deserializer=niswitch__pb2.InitWithOptionsResponse.FromString, - ) - self.InitWithTopology = channel.unary_unary( - '/niswitch_grpc.NiSwitch/InitWithTopology', - request_serializer=niswitch__pb2.InitWithTopologyRequest.SerializeToString, - response_deserializer=niswitch__pb2.InitWithTopologyResponse.FromString, - ) - self.Close = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Close', - request_serializer=niswitch__pb2.CloseRequest.SerializeToString, - response_deserializer=niswitch__pb2.CloseResponse.FromString, - ) - self.Connect = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Connect', - request_serializer=niswitch__pb2.ConnectRequest.SerializeToString, - response_deserializer=niswitch__pb2.ConnectResponse.FromString, - ) - self.ConnectMultiple = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ConnectMultiple', - request_serializer=niswitch__pb2.ConnectMultipleRequest.SerializeToString, - response_deserializer=niswitch__pb2.ConnectMultipleResponse.FromString, - ) - self.Disconnect = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Disconnect', - request_serializer=niswitch__pb2.DisconnectRequest.SerializeToString, - response_deserializer=niswitch__pb2.DisconnectResponse.FromString, - ) - self.DisconnectMultiple = channel.unary_unary( - '/niswitch_grpc.NiSwitch/DisconnectMultiple', - request_serializer=niswitch__pb2.DisconnectMultipleRequest.SerializeToString, - response_deserializer=niswitch__pb2.DisconnectMultipleResponse.FromString, - ) - self.DisconnectAll = channel.unary_unary( - '/niswitch_grpc.NiSwitch/DisconnectAll', - request_serializer=niswitch__pb2.DisconnectAllRequest.SerializeToString, - response_deserializer=niswitch__pb2.DisconnectAllResponse.FromString, - ) - self.GetPath = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetPath', - request_serializer=niswitch__pb2.GetPathRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetPathResponse.FromString, - ) - self.SetPath = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetPath', - request_serializer=niswitch__pb2.SetPathRequest.SerializeToString, - response_deserializer=niswitch__pb2.SetPathResponse.FromString, - ) - self.CanConnect = channel.unary_unary( - '/niswitch_grpc.NiSwitch/CanConnect', - request_serializer=niswitch__pb2.CanConnectRequest.SerializeToString, - response_deserializer=niswitch__pb2.CanConnectResponse.FromString, - ) - self.IsDebounced = channel.unary_unary( - '/niswitch_grpc.NiSwitch/IsDebounced', - request_serializer=niswitch__pb2.IsDebouncedRequest.SerializeToString, - response_deserializer=niswitch__pb2.IsDebouncedResponse.FromString, - ) - self.WaitForDebounce = channel.unary_unary( - '/niswitch_grpc.NiSwitch/WaitForDebounce', - request_serializer=niswitch__pb2.WaitForDebounceRequest.SerializeToString, - response_deserializer=niswitch__pb2.WaitForDebounceResponse.FromString, - ) - self.Scan = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Scan', - request_serializer=niswitch__pb2.ScanRequest.SerializeToString, - response_deserializer=niswitch__pb2.ScanResponse.FromString, - ) - self.InitiateScan = channel.unary_unary( - '/niswitch_grpc.NiSwitch/InitiateScan', - request_serializer=niswitch__pb2.InitiateScanRequest.SerializeToString, - response_deserializer=niswitch__pb2.InitiateScanResponse.FromString, - ) - self.AbortScan = channel.unary_unary( - '/niswitch_grpc.NiSwitch/AbortScan', - request_serializer=niswitch__pb2.AbortScanRequest.SerializeToString, - response_deserializer=niswitch__pb2.AbortScanResponse.FromString, - ) - self.IsScanning = channel.unary_unary( - '/niswitch_grpc.NiSwitch/IsScanning', - request_serializer=niswitch__pb2.IsScanningRequest.SerializeToString, - response_deserializer=niswitch__pb2.IsScanningResponse.FromString, - ) - self.WaitForScanComplete = channel.unary_unary( - '/niswitch_grpc.NiSwitch/WaitForScanComplete', - request_serializer=niswitch__pb2.WaitForScanCompleteRequest.SerializeToString, - response_deserializer=niswitch__pb2.WaitForScanCompleteResponse.FromString, - ) - self.SendSoftwareTrigger = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SendSoftwareTrigger', - request_serializer=niswitch__pb2.SendSoftwareTriggerRequest.SerializeToString, - response_deserializer=niswitch__pb2.SendSoftwareTriggerResponse.FromString, - ) - self.ConfigureScanList = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ConfigureScanList', - request_serializer=niswitch__pb2.ConfigureScanListRequest.SerializeToString, - response_deserializer=niswitch__pb2.ConfigureScanListResponse.FromString, - ) - self.ConfigureScanTrigger = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ConfigureScanTrigger', - request_serializer=niswitch__pb2.ConfigureScanTriggerRequest.SerializeToString, - response_deserializer=niswitch__pb2.ConfigureScanTriggerResponse.FromString, - ) - self.SetContinuousScan = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetContinuousScan', - request_serializer=niswitch__pb2.SetContinuousScanRequest.SerializeToString, - response_deserializer=niswitch__pb2.SetContinuousScanResponse.FromString, - ) - self.RouteTriggerInput = channel.unary_unary( - '/niswitch_grpc.NiSwitch/RouteTriggerInput', - request_serializer=niswitch__pb2.RouteTriggerInputRequest.SerializeToString, - response_deserializer=niswitch__pb2.RouteTriggerInputResponse.FromString, - ) - self.RouteScanAdvancedOutput = channel.unary_unary( - '/niswitch_grpc.NiSwitch/RouteScanAdvancedOutput', - request_serializer=niswitch__pb2.RouteScanAdvancedOutputRequest.SerializeToString, - response_deserializer=niswitch__pb2.RouteScanAdvancedOutputResponse.FromString, - ) - self.ErrorQuery = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ErrorQuery', - request_serializer=niswitch__pb2.ErrorQueryRequest.SerializeToString, - response_deserializer=niswitch__pb2.ErrorQueryResponse.FromString, - ) - self.GetError = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetError', - request_serializer=niswitch__pb2.GetErrorRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetErrorResponse.FromString, - ) - self.ClearError = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ClearError', - request_serializer=niswitch__pb2.ClearErrorRequest.SerializeToString, - response_deserializer=niswitch__pb2.ClearErrorResponse.FromString, - ) - self.ErrorMessage = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ErrorMessage', - request_serializer=niswitch__pb2.ErrorMessageRequest.SerializeToString, - response_deserializer=niswitch__pb2.ErrorMessageResponse.FromString, - ) - self.GetChannelName = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetChannelName', - request_serializer=niswitch__pb2.GetChannelNameRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetChannelNameResponse.FromString, - ) - self.GetRelayName = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetRelayName', - request_serializer=niswitch__pb2.GetRelayNameRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetRelayNameResponse.FromString, - ) - self.GetRelayCount = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetRelayCount', - request_serializer=niswitch__pb2.GetRelayCountRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetRelayCountResponse.FromString, - ) - self.GetRelayPosition = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetRelayPosition', - request_serializer=niswitch__pb2.GetRelayPositionRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetRelayPositionResponse.FromString, - ) - self.RelayControl = channel.unary_unary( - '/niswitch_grpc.NiSwitch/RelayControl', - request_serializer=niswitch__pb2.RelayControlRequest.SerializeToString, - response_deserializer=niswitch__pb2.RelayControlResponse.FromString, - ) - self.ResetInterchangeCheck = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ResetInterchangeCheck', - request_serializer=niswitch__pb2.ResetInterchangeCheckRequest.SerializeToString, - response_deserializer=niswitch__pb2.ResetInterchangeCheckResponse.FromString, - ) - self.ClearInterchangeWarnings = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ClearInterchangeWarnings', - request_serializer=niswitch__pb2.ClearInterchangeWarningsRequest.SerializeToString, - response_deserializer=niswitch__pb2.ClearInterchangeWarningsResponse.FromString, - ) - self.Commit = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Commit', - request_serializer=niswitch__pb2.CommitRequest.SerializeToString, - response_deserializer=niswitch__pb2.CommitResponse.FromString, - ) - self.ResetWithDefaults = channel.unary_unary( - '/niswitch_grpc.NiSwitch/ResetWithDefaults', - request_serializer=niswitch__pb2.ResetWithDefaultsRequest.SerializeToString, - response_deserializer=niswitch__pb2.ResetWithDefaultsResponse.FromString, - ) - self.Disable = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Disable', - request_serializer=niswitch__pb2.DisableRequest.SerializeToString, - response_deserializer=niswitch__pb2.DisableResponse.FromString, - ) - self.Reset = channel.unary_unary( - '/niswitch_grpc.NiSwitch/Reset', - request_serializer=niswitch__pb2.ResetRequest.SerializeToString, - response_deserializer=niswitch__pb2.ResetResponse.FromString, - ) - self.SelfTest = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SelfTest', - request_serializer=niswitch__pb2.SelfTestRequest.SerializeToString, - response_deserializer=niswitch__pb2.SelfTestResponse.FromString, - ) - self.RevisionQuery = channel.unary_unary( - '/niswitch_grpc.NiSwitch/RevisionQuery', - request_serializer=niswitch__pb2.RevisionQueryRequest.SerializeToString, - response_deserializer=niswitch__pb2.RevisionQueryResponse.FromString, - ) - self.GetAttributeViInt32 = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetAttributeViInt32', - request_serializer=niswitch__pb2.GetAttributeViInt32Request.SerializeToString, - response_deserializer=niswitch__pb2.GetAttributeViInt32Response.FromString, - ) - self.GetAttributeViReal64 = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetAttributeViReal64', - request_serializer=niswitch__pb2.GetAttributeViReal64Request.SerializeToString, - response_deserializer=niswitch__pb2.GetAttributeViReal64Response.FromString, - ) - self.GetAttributeViString = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetAttributeViString', - request_serializer=niswitch__pb2.GetAttributeViStringRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetAttributeViStringResponse.FromString, - ) - self.GetAttributeViSession = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetAttributeViSession', - request_serializer=niswitch__pb2.GetAttributeViSessionRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetAttributeViSessionResponse.FromString, - ) - self.GetAttributeViBoolean = channel.unary_unary( - '/niswitch_grpc.NiSwitch/GetAttributeViBoolean', - request_serializer=niswitch__pb2.GetAttributeViBooleanRequest.SerializeToString, - response_deserializer=niswitch__pb2.GetAttributeViBooleanResponse.FromString, - ) - self.SetAttributeViInt32 = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetAttributeViInt32', - request_serializer=niswitch__pb2.SetAttributeViInt32Request.SerializeToString, - response_deserializer=niswitch__pb2.SetAttributeViInt32Response.FromString, - ) - self.SetAttributeViReal64 = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetAttributeViReal64', - request_serializer=niswitch__pb2.SetAttributeViReal64Request.SerializeToString, - response_deserializer=niswitch__pb2.SetAttributeViReal64Response.FromString, - ) - self.SetAttributeViString = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetAttributeViString', - request_serializer=niswitch__pb2.SetAttributeViStringRequest.SerializeToString, - response_deserializer=niswitch__pb2.SetAttributeViStringResponse.FromString, - ) - self.SetAttributeViSession = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetAttributeViSession', - request_serializer=niswitch__pb2.SetAttributeViSessionRequest.SerializeToString, - response_deserializer=niswitch__pb2.SetAttributeViSessionResponse.FromString, - ) - self.SetAttributeViBoolean = channel.unary_unary( - '/niswitch_grpc.NiSwitch/SetAttributeViBoolean', - request_serializer=niswitch__pb2.SetAttributeViBooleanRequest.SerializeToString, - response_deserializer=niswitch__pb2.SetAttributeViBooleanResponse.FromString, - ) - self.CheckAttributeViInt32 = channel.unary_unary( - '/niswitch_grpc.NiSwitch/CheckAttributeViInt32', - request_serializer=niswitch__pb2.CheckAttributeViInt32Request.SerializeToString, - response_deserializer=niswitch__pb2.CheckAttributeViInt32Response.FromString, - ) - self.CheckAttributeViReal64 = channel.unary_unary( - '/niswitch_grpc.NiSwitch/CheckAttributeViReal64', - request_serializer=niswitch__pb2.CheckAttributeViReal64Request.SerializeToString, - response_deserializer=niswitch__pb2.CheckAttributeViReal64Response.FromString, - ) - self.CheckAttributeViString = channel.unary_unary( - '/niswitch_grpc.NiSwitch/CheckAttributeViString', - request_serializer=niswitch__pb2.CheckAttributeViStringRequest.SerializeToString, - response_deserializer=niswitch__pb2.CheckAttributeViStringResponse.FromString, - ) - self.CheckAttributeViSession = channel.unary_unary( - '/niswitch_grpc.NiSwitch/CheckAttributeViSession', - request_serializer=niswitch__pb2.CheckAttributeViSessionRequest.SerializeToString, - response_deserializer=niswitch__pb2.CheckAttributeViSessionResponse.FromString, - ) - self.CheckAttributeViBoolean = channel.unary_unary( - '/niswitch_grpc.NiSwitch/CheckAttributeViBoolean', - request_serializer=niswitch__pb2.CheckAttributeViBooleanRequest.SerializeToString, - response_deserializer=niswitch__pb2.CheckAttributeViBooleanResponse.FromString, - ) - self.InvalidateAllAttributes = channel.unary_unary( - '/niswitch_grpc.NiSwitch/InvalidateAllAttributes', - request_serializer=niswitch__pb2.InvalidateAllAttributesRequest.SerializeToString, - response_deserializer=niswitch__pb2.InvalidateAllAttributesResponse.FromString, - ) - - -class NiSwitchServicer(object): - """Missing associated documentation comment in .proto file.""" - - def Init(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithOptions(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitWithTopology(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Close(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Connect(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConnectMultiple(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disconnect(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisconnectMultiple(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DisconnectAll(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPath(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetPath(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CanConnect(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsDebounced(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitForDebounce(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Scan(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InitiateScan(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AbortScan(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsScanning(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def WaitForScanComplete(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SendSoftwareTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureScanList(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ConfigureScanTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetContinuousScan(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RouteTriggerInput(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RouteScanAdvancedOutput(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearError(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ErrorMessage(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetChannelName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRelayName(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRelayCount(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetRelayPosition(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RelayControl(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetInterchangeCheck(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ClearInterchangeWarnings(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Commit(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ResetWithDefaults(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Disable(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Reset(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SelfTest(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RevisionQuery(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViInt32(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViReal64(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViString(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViSession(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CheckAttributeViBoolean(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def InvalidateAllAttributes(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_NiSwitchServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Init': grpc.unary_unary_rpc_method_handler( - servicer.Init, - request_deserializer=niswitch__pb2.InitRequest.FromString, - response_serializer=niswitch__pb2.InitResponse.SerializeToString, - ), - 'InitWithOptions': grpc.unary_unary_rpc_method_handler( - servicer.InitWithOptions, - request_deserializer=niswitch__pb2.InitWithOptionsRequest.FromString, - response_serializer=niswitch__pb2.InitWithOptionsResponse.SerializeToString, - ), - 'InitWithTopology': grpc.unary_unary_rpc_method_handler( - servicer.InitWithTopology, - request_deserializer=niswitch__pb2.InitWithTopologyRequest.FromString, - response_serializer=niswitch__pb2.InitWithTopologyResponse.SerializeToString, - ), - 'Close': grpc.unary_unary_rpc_method_handler( - servicer.Close, - request_deserializer=niswitch__pb2.CloseRequest.FromString, - response_serializer=niswitch__pb2.CloseResponse.SerializeToString, - ), - 'Connect': grpc.unary_unary_rpc_method_handler( - servicer.Connect, - request_deserializer=niswitch__pb2.ConnectRequest.FromString, - response_serializer=niswitch__pb2.ConnectResponse.SerializeToString, - ), - 'ConnectMultiple': grpc.unary_unary_rpc_method_handler( - servicer.ConnectMultiple, - request_deserializer=niswitch__pb2.ConnectMultipleRequest.FromString, - response_serializer=niswitch__pb2.ConnectMultipleResponse.SerializeToString, - ), - 'Disconnect': grpc.unary_unary_rpc_method_handler( - servicer.Disconnect, - request_deserializer=niswitch__pb2.DisconnectRequest.FromString, - response_serializer=niswitch__pb2.DisconnectResponse.SerializeToString, - ), - 'DisconnectMultiple': grpc.unary_unary_rpc_method_handler( - servicer.DisconnectMultiple, - request_deserializer=niswitch__pb2.DisconnectMultipleRequest.FromString, - response_serializer=niswitch__pb2.DisconnectMultipleResponse.SerializeToString, - ), - 'DisconnectAll': grpc.unary_unary_rpc_method_handler( - servicer.DisconnectAll, - request_deserializer=niswitch__pb2.DisconnectAllRequest.FromString, - response_serializer=niswitch__pb2.DisconnectAllResponse.SerializeToString, - ), - 'GetPath': grpc.unary_unary_rpc_method_handler( - servicer.GetPath, - request_deserializer=niswitch__pb2.GetPathRequest.FromString, - response_serializer=niswitch__pb2.GetPathResponse.SerializeToString, - ), - 'SetPath': grpc.unary_unary_rpc_method_handler( - servicer.SetPath, - request_deserializer=niswitch__pb2.SetPathRequest.FromString, - response_serializer=niswitch__pb2.SetPathResponse.SerializeToString, - ), - 'CanConnect': grpc.unary_unary_rpc_method_handler( - servicer.CanConnect, - request_deserializer=niswitch__pb2.CanConnectRequest.FromString, - response_serializer=niswitch__pb2.CanConnectResponse.SerializeToString, - ), - 'IsDebounced': grpc.unary_unary_rpc_method_handler( - servicer.IsDebounced, - request_deserializer=niswitch__pb2.IsDebouncedRequest.FromString, - response_serializer=niswitch__pb2.IsDebouncedResponse.SerializeToString, - ), - 'WaitForDebounce': grpc.unary_unary_rpc_method_handler( - servicer.WaitForDebounce, - request_deserializer=niswitch__pb2.WaitForDebounceRequest.FromString, - response_serializer=niswitch__pb2.WaitForDebounceResponse.SerializeToString, - ), - 'Scan': grpc.unary_unary_rpc_method_handler( - servicer.Scan, - request_deserializer=niswitch__pb2.ScanRequest.FromString, - response_serializer=niswitch__pb2.ScanResponse.SerializeToString, - ), - 'InitiateScan': grpc.unary_unary_rpc_method_handler( - servicer.InitiateScan, - request_deserializer=niswitch__pb2.InitiateScanRequest.FromString, - response_serializer=niswitch__pb2.InitiateScanResponse.SerializeToString, - ), - 'AbortScan': grpc.unary_unary_rpc_method_handler( - servicer.AbortScan, - request_deserializer=niswitch__pb2.AbortScanRequest.FromString, - response_serializer=niswitch__pb2.AbortScanResponse.SerializeToString, - ), - 'IsScanning': grpc.unary_unary_rpc_method_handler( - servicer.IsScanning, - request_deserializer=niswitch__pb2.IsScanningRequest.FromString, - response_serializer=niswitch__pb2.IsScanningResponse.SerializeToString, - ), - 'WaitForScanComplete': grpc.unary_unary_rpc_method_handler( - servicer.WaitForScanComplete, - request_deserializer=niswitch__pb2.WaitForScanCompleteRequest.FromString, - response_serializer=niswitch__pb2.WaitForScanCompleteResponse.SerializeToString, - ), - 'SendSoftwareTrigger': grpc.unary_unary_rpc_method_handler( - servicer.SendSoftwareTrigger, - request_deserializer=niswitch__pb2.SendSoftwareTriggerRequest.FromString, - response_serializer=niswitch__pb2.SendSoftwareTriggerResponse.SerializeToString, - ), - 'ConfigureScanList': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureScanList, - request_deserializer=niswitch__pb2.ConfigureScanListRequest.FromString, - response_serializer=niswitch__pb2.ConfigureScanListResponse.SerializeToString, - ), - 'ConfigureScanTrigger': grpc.unary_unary_rpc_method_handler( - servicer.ConfigureScanTrigger, - request_deserializer=niswitch__pb2.ConfigureScanTriggerRequest.FromString, - response_serializer=niswitch__pb2.ConfigureScanTriggerResponse.SerializeToString, - ), - 'SetContinuousScan': grpc.unary_unary_rpc_method_handler( - servicer.SetContinuousScan, - request_deserializer=niswitch__pb2.SetContinuousScanRequest.FromString, - response_serializer=niswitch__pb2.SetContinuousScanResponse.SerializeToString, - ), - 'RouteTriggerInput': grpc.unary_unary_rpc_method_handler( - servicer.RouteTriggerInput, - request_deserializer=niswitch__pb2.RouteTriggerInputRequest.FromString, - response_serializer=niswitch__pb2.RouteTriggerInputResponse.SerializeToString, - ), - 'RouteScanAdvancedOutput': grpc.unary_unary_rpc_method_handler( - servicer.RouteScanAdvancedOutput, - request_deserializer=niswitch__pb2.RouteScanAdvancedOutputRequest.FromString, - response_serializer=niswitch__pb2.RouteScanAdvancedOutputResponse.SerializeToString, - ), - 'ErrorQuery': grpc.unary_unary_rpc_method_handler( - servicer.ErrorQuery, - request_deserializer=niswitch__pb2.ErrorQueryRequest.FromString, - response_serializer=niswitch__pb2.ErrorQueryResponse.SerializeToString, - ), - 'GetError': grpc.unary_unary_rpc_method_handler( - servicer.GetError, - request_deserializer=niswitch__pb2.GetErrorRequest.FromString, - response_serializer=niswitch__pb2.GetErrorResponse.SerializeToString, - ), - 'ClearError': grpc.unary_unary_rpc_method_handler( - servicer.ClearError, - request_deserializer=niswitch__pb2.ClearErrorRequest.FromString, - response_serializer=niswitch__pb2.ClearErrorResponse.SerializeToString, - ), - 'ErrorMessage': grpc.unary_unary_rpc_method_handler( - servicer.ErrorMessage, - request_deserializer=niswitch__pb2.ErrorMessageRequest.FromString, - response_serializer=niswitch__pb2.ErrorMessageResponse.SerializeToString, - ), - 'GetChannelName': grpc.unary_unary_rpc_method_handler( - servicer.GetChannelName, - request_deserializer=niswitch__pb2.GetChannelNameRequest.FromString, - response_serializer=niswitch__pb2.GetChannelNameResponse.SerializeToString, - ), - 'GetRelayName': grpc.unary_unary_rpc_method_handler( - servicer.GetRelayName, - request_deserializer=niswitch__pb2.GetRelayNameRequest.FromString, - response_serializer=niswitch__pb2.GetRelayNameResponse.SerializeToString, - ), - 'GetRelayCount': grpc.unary_unary_rpc_method_handler( - servicer.GetRelayCount, - request_deserializer=niswitch__pb2.GetRelayCountRequest.FromString, - response_serializer=niswitch__pb2.GetRelayCountResponse.SerializeToString, - ), - 'GetRelayPosition': grpc.unary_unary_rpc_method_handler( - servicer.GetRelayPosition, - request_deserializer=niswitch__pb2.GetRelayPositionRequest.FromString, - response_serializer=niswitch__pb2.GetRelayPositionResponse.SerializeToString, - ), - 'RelayControl': grpc.unary_unary_rpc_method_handler( - servicer.RelayControl, - request_deserializer=niswitch__pb2.RelayControlRequest.FromString, - response_serializer=niswitch__pb2.RelayControlResponse.SerializeToString, - ), - 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( - servicer.ResetInterchangeCheck, - request_deserializer=niswitch__pb2.ResetInterchangeCheckRequest.FromString, - response_serializer=niswitch__pb2.ResetInterchangeCheckResponse.SerializeToString, - ), - 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( - servicer.ClearInterchangeWarnings, - request_deserializer=niswitch__pb2.ClearInterchangeWarningsRequest.FromString, - response_serializer=niswitch__pb2.ClearInterchangeWarningsResponse.SerializeToString, - ), - 'Commit': grpc.unary_unary_rpc_method_handler( - servicer.Commit, - request_deserializer=niswitch__pb2.CommitRequest.FromString, - response_serializer=niswitch__pb2.CommitResponse.SerializeToString, - ), - 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( - servicer.ResetWithDefaults, - request_deserializer=niswitch__pb2.ResetWithDefaultsRequest.FromString, - response_serializer=niswitch__pb2.ResetWithDefaultsResponse.SerializeToString, - ), - 'Disable': grpc.unary_unary_rpc_method_handler( - servicer.Disable, - request_deserializer=niswitch__pb2.DisableRequest.FromString, - response_serializer=niswitch__pb2.DisableResponse.SerializeToString, - ), - 'Reset': grpc.unary_unary_rpc_method_handler( - servicer.Reset, - request_deserializer=niswitch__pb2.ResetRequest.FromString, - response_serializer=niswitch__pb2.ResetResponse.SerializeToString, - ), - 'SelfTest': grpc.unary_unary_rpc_method_handler( - servicer.SelfTest, - request_deserializer=niswitch__pb2.SelfTestRequest.FromString, - response_serializer=niswitch__pb2.SelfTestResponse.SerializeToString, - ), - 'RevisionQuery': grpc.unary_unary_rpc_method_handler( - servicer.RevisionQuery, - request_deserializer=niswitch__pb2.RevisionQueryRequest.FromString, - response_serializer=niswitch__pb2.RevisionQueryResponse.SerializeToString, - ), - 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViInt32, - request_deserializer=niswitch__pb2.GetAttributeViInt32Request.FromString, - response_serializer=niswitch__pb2.GetAttributeViInt32Response.SerializeToString, - ), - 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViReal64, - request_deserializer=niswitch__pb2.GetAttributeViReal64Request.FromString, - response_serializer=niswitch__pb2.GetAttributeViReal64Response.SerializeToString, - ), - 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViString, - request_deserializer=niswitch__pb2.GetAttributeViStringRequest.FromString, - response_serializer=niswitch__pb2.GetAttributeViStringResponse.SerializeToString, - ), - 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViSession, - request_deserializer=niswitch__pb2.GetAttributeViSessionRequest.FromString, - response_serializer=niswitch__pb2.GetAttributeViSessionResponse.SerializeToString, - ), - 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.GetAttributeViBoolean, - request_deserializer=niswitch__pb2.GetAttributeViBooleanRequest.FromString, - response_serializer=niswitch__pb2.GetAttributeViBooleanResponse.SerializeToString, - ), - 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViInt32, - request_deserializer=niswitch__pb2.SetAttributeViInt32Request.FromString, - response_serializer=niswitch__pb2.SetAttributeViInt32Response.SerializeToString, - ), - 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViReal64, - request_deserializer=niswitch__pb2.SetAttributeViReal64Request.FromString, - response_serializer=niswitch__pb2.SetAttributeViReal64Response.SerializeToString, - ), - 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViString, - request_deserializer=niswitch__pb2.SetAttributeViStringRequest.FromString, - response_serializer=niswitch__pb2.SetAttributeViStringResponse.SerializeToString, - ), - 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViSession, - request_deserializer=niswitch__pb2.SetAttributeViSessionRequest.FromString, - response_serializer=niswitch__pb2.SetAttributeViSessionResponse.SerializeToString, - ), - 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.SetAttributeViBoolean, - request_deserializer=niswitch__pb2.SetAttributeViBooleanRequest.FromString, - response_serializer=niswitch__pb2.SetAttributeViBooleanResponse.SerializeToString, - ), - 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViInt32, - request_deserializer=niswitch__pb2.CheckAttributeViInt32Request.FromString, - response_serializer=niswitch__pb2.CheckAttributeViInt32Response.SerializeToString, - ), - 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViReal64, - request_deserializer=niswitch__pb2.CheckAttributeViReal64Request.FromString, - response_serializer=niswitch__pb2.CheckAttributeViReal64Response.SerializeToString, - ), - 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViString, - request_deserializer=niswitch__pb2.CheckAttributeViStringRequest.FromString, - response_serializer=niswitch__pb2.CheckAttributeViStringResponse.SerializeToString, - ), - 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViSession, - request_deserializer=niswitch__pb2.CheckAttributeViSessionRequest.FromString, - response_serializer=niswitch__pb2.CheckAttributeViSessionResponse.SerializeToString, - ), - 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( - servicer.CheckAttributeViBoolean, - request_deserializer=niswitch__pb2.CheckAttributeViBooleanRequest.FromString, - response_serializer=niswitch__pb2.CheckAttributeViBooleanResponse.SerializeToString, - ), - 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( - servicer.InvalidateAllAttributes, - request_deserializer=niswitch__pb2.InvalidateAllAttributesRequest.FromString, - response_serializer=niswitch__pb2.InvalidateAllAttributesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'niswitch_grpc.NiSwitch', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class NiSwitch(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def Init(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Init', - niswitch__pb2.InitRequest.SerializeToString, - niswitch__pb2.InitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithOptions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InitWithOptions', - niswitch__pb2.InitWithOptionsRequest.SerializeToString, - niswitch__pb2.InitWithOptionsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitWithTopology(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InitWithTopology', - niswitch__pb2.InitWithTopologyRequest.SerializeToString, - niswitch__pb2.InitWithTopologyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Close(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Close', - niswitch__pb2.CloseRequest.SerializeToString, - niswitch__pb2.CloseResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Connect(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Connect', - niswitch__pb2.ConnectRequest.SerializeToString, - niswitch__pb2.ConnectResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConnectMultiple(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ConnectMultiple', - niswitch__pb2.ConnectMultipleRequest.SerializeToString, - niswitch__pb2.ConnectMultipleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disconnect(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Disconnect', - niswitch__pb2.DisconnectRequest.SerializeToString, - niswitch__pb2.DisconnectResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisconnectMultiple(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/DisconnectMultiple', - niswitch__pb2.DisconnectMultipleRequest.SerializeToString, - niswitch__pb2.DisconnectMultipleResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DisconnectAll(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/DisconnectAll', - niswitch__pb2.DisconnectAllRequest.SerializeToString, - niswitch__pb2.DisconnectAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPath(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetPath', - niswitch__pb2.GetPathRequest.SerializeToString, - niswitch__pb2.GetPathResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetPath(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetPath', - niswitch__pb2.SetPathRequest.SerializeToString, - niswitch__pb2.SetPathResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CanConnect(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CanConnect', - niswitch__pb2.CanConnectRequest.SerializeToString, - niswitch__pb2.CanConnectResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsDebounced(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/IsDebounced', - niswitch__pb2.IsDebouncedRequest.SerializeToString, - niswitch__pb2.IsDebouncedResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitForDebounce(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/WaitForDebounce', - niswitch__pb2.WaitForDebounceRequest.SerializeToString, - niswitch__pb2.WaitForDebounceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Scan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Scan', - niswitch__pb2.ScanRequest.SerializeToString, - niswitch__pb2.ScanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InitiateScan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InitiateScan', - niswitch__pb2.InitiateScanRequest.SerializeToString, - niswitch__pb2.InitiateScanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AbortScan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/AbortScan', - niswitch__pb2.AbortScanRequest.SerializeToString, - niswitch__pb2.AbortScanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def IsScanning(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/IsScanning', - niswitch__pb2.IsScanningRequest.SerializeToString, - niswitch__pb2.IsScanningResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def WaitForScanComplete(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/WaitForScanComplete', - niswitch__pb2.WaitForScanCompleteRequest.SerializeToString, - niswitch__pb2.WaitForScanCompleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SendSoftwareTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SendSoftwareTrigger', - niswitch__pb2.SendSoftwareTriggerRequest.SerializeToString, - niswitch__pb2.SendSoftwareTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureScanList(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ConfigureScanList', - niswitch__pb2.ConfigureScanListRequest.SerializeToString, - niswitch__pb2.ConfigureScanListResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ConfigureScanTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ConfigureScanTrigger', - niswitch__pb2.ConfigureScanTriggerRequest.SerializeToString, - niswitch__pb2.ConfigureScanTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetContinuousScan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetContinuousScan', - niswitch__pb2.SetContinuousScanRequest.SerializeToString, - niswitch__pb2.SetContinuousScanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RouteTriggerInput(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RouteTriggerInput', - niswitch__pb2.RouteTriggerInputRequest.SerializeToString, - niswitch__pb2.RouteTriggerInputResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RouteScanAdvancedOutput(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RouteScanAdvancedOutput', - niswitch__pb2.RouteScanAdvancedOutputRequest.SerializeToString, - niswitch__pb2.RouteScanAdvancedOutputResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ErrorQuery', - niswitch__pb2.ErrorQueryRequest.SerializeToString, - niswitch__pb2.ErrorQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetError', - niswitch__pb2.GetErrorRequest.SerializeToString, - niswitch__pb2.GetErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearError(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ClearError', - niswitch__pb2.ClearErrorRequest.SerializeToString, - niswitch__pb2.ClearErrorResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ErrorMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ErrorMessage', - niswitch__pb2.ErrorMessageRequest.SerializeToString, - niswitch__pb2.ErrorMessageResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetChannelName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetChannelName', - niswitch__pb2.GetChannelNameRequest.SerializeToString, - niswitch__pb2.GetChannelNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRelayName(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetRelayName', - niswitch__pb2.GetRelayNameRequest.SerializeToString, - niswitch__pb2.GetRelayNameResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRelayCount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetRelayCount', - niswitch__pb2.GetRelayCountRequest.SerializeToString, - niswitch__pb2.GetRelayCountResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetRelayPosition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetRelayPosition', - niswitch__pb2.GetRelayPositionRequest.SerializeToString, - niswitch__pb2.GetRelayPositionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RelayControl(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RelayControl', - niswitch__pb2.RelayControlRequest.SerializeToString, - niswitch__pb2.RelayControlResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetInterchangeCheck(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ResetInterchangeCheck', - niswitch__pb2.ResetInterchangeCheckRequest.SerializeToString, - niswitch__pb2.ResetInterchangeCheckResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ClearInterchangeWarnings(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ClearInterchangeWarnings', - niswitch__pb2.ClearInterchangeWarningsRequest.SerializeToString, - niswitch__pb2.ClearInterchangeWarningsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Commit(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Commit', - niswitch__pb2.CommitRequest.SerializeToString, - niswitch__pb2.CommitResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ResetWithDefaults(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ResetWithDefaults', - niswitch__pb2.ResetWithDefaultsRequest.SerializeToString, - niswitch__pb2.ResetWithDefaultsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Disable(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Disable', - niswitch__pb2.DisableRequest.SerializeToString, - niswitch__pb2.DisableResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def Reset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Reset', - niswitch__pb2.ResetRequest.SerializeToString, - niswitch__pb2.ResetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SelfTest(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SelfTest', - niswitch__pb2.SelfTestRequest.SerializeToString, - niswitch__pb2.SelfTestResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RevisionQuery(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RevisionQuery', - niswitch__pb2.RevisionQueryRequest.SerializeToString, - niswitch__pb2.RevisionQueryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViInt32', - niswitch__pb2.GetAttributeViInt32Request.SerializeToString, - niswitch__pb2.GetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViReal64', - niswitch__pb2.GetAttributeViReal64Request.SerializeToString, - niswitch__pb2.GetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViString', - niswitch__pb2.GetAttributeViStringRequest.SerializeToString, - niswitch__pb2.GetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViSession', - niswitch__pb2.GetAttributeViSessionRequest.SerializeToString, - niswitch__pb2.GetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViBoolean', - niswitch__pb2.GetAttributeViBooleanRequest.SerializeToString, - niswitch__pb2.GetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViInt32', - niswitch__pb2.SetAttributeViInt32Request.SerializeToString, - niswitch__pb2.SetAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViReal64', - niswitch__pb2.SetAttributeViReal64Request.SerializeToString, - niswitch__pb2.SetAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViString', - niswitch__pb2.SetAttributeViStringRequest.SerializeToString, - niswitch__pb2.SetAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViSession', - niswitch__pb2.SetAttributeViSessionRequest.SerializeToString, - niswitch__pb2.SetAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViBoolean', - niswitch__pb2.SetAttributeViBooleanRequest.SerializeToString, - niswitch__pb2.SetAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViInt32(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViInt32', - niswitch__pb2.CheckAttributeViInt32Request.SerializeToString, - niswitch__pb2.CheckAttributeViInt32Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViReal64(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViReal64', - niswitch__pb2.CheckAttributeViReal64Request.SerializeToString, - niswitch__pb2.CheckAttributeViReal64Response.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViString(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViString', - niswitch__pb2.CheckAttributeViStringRequest.SerializeToString, - niswitch__pb2.CheckAttributeViStringResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViSession', - niswitch__pb2.CheckAttributeViSessionRequest.SerializeToString, - niswitch__pb2.CheckAttributeViSessionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CheckAttributeViBoolean(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViBoolean', - niswitch__pb2.CheckAttributeViBooleanRequest.SerializeToString, - niswitch__pb2.CheckAttributeViBooleanResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def InvalidateAllAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InvalidateAllAttributes', - niswitch__pb2.InvalidateAllAttributesRequest.SerializeToString, - niswitch__pb2.InvalidateAllAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/niswitch/niswitch/session.py b/generated/niswitch/niswitch/session.py deleted file mode 100644 index c7ab4eb439..0000000000 --- a/generated/niswitch/niswitch/session.py +++ /dev/null @@ -1,2262 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import array # noqa: F401 -# Used by @ivi_synchronized -from functools import wraps - -import niswitch._attributes as _attributes -import niswitch._converters as _converters -import niswitch._library_interpreter as _library_interpreter -import niswitch.enums as enums -import niswitch.errors as errors - -import hightime - -# Used for __repr__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class _Scan(object): - def __init__(self, session): - self._session = session - self._session._initiate_scan() - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.abort() - - -# From https://stackoverflow.com/questions/5929107/decorators-with-parameters -def ivi_synchronized(f): - @wraps(f) - def aux(*xs, **kws): - session = xs[0] # parameter 0 is 'self' which is the session object - with session.lock(): - return f(*xs, **kws) - return aux - - -class _Lock(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - # _lock_session is called from the lock() function, not here - return self - - def __exit__(self, exc_type, exc_value, traceback): - self._session.unlock() - - -class _RepeatedCapabilities(object): - def __init__(self, session, prefix, current_repeated_capability_list): - self._session = session - self._prefix = prefix - # We need at least one element. If we get an empty list, make the one element an empty string - self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] - # Now we know there is at lease one entry, so we look if it is an empty string or not - self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' - - def __getitem__(self, repeated_capability): - '''Set/get properties or call methods with a repeated capability (i.e. channels)''' - rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) - complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] - - return _SessionBase( - repeated_capability_list=complete_rep_cap_list, - all_channels_in_session=self._session._all_channels_in_session, - interpreter=self._session._interpreter, - freeze_it=True - ) - - -# This is a very simple context manager we can use when we need to set/get attributes -# or call functions from _SessionBase that require no channels. It is tied to the specific -# implementation of _SessionBase and how repeated capabilities are handled. -class _NoChannel(object): - def __init__(self, session): - self._session = session - - def __enter__(self): - self._repeated_capability_cache = self._session._repeated_capability - self._session._repeated_capability = '' - - def __exit__(self, exc_type, exc_value, traceback): - self._session._repeated_capability = self._repeated_capability_cache - - -class _SessionBase(object): - '''Base class for all NI-SWITCH sessions.''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - analog_bus_sharing_enable = _attributes.AttributeViBoolean(1150018) - '''Type: bool - - Enables or disables sharing of an analog bus line so that multiple NI SwitchBlock devices may connect to it simultaneously. To enable multiple NI SwitchBlock devices to share an analog bus line, set this property to True for each device on the channel that corresponds with the shared analog bus line. The default value for all devices is False, which disables sharing of the analog bus. - Refer to the Using the Analog Bus on an NI SwitchBlock Carrier topic in the NI Switches Help for more information about sharing the analog bus. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].analog_bus_sharing_enable` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.analog_bus_sharing_enable` - ''' - bandwidth = _attributes.AttributeViReal64(1250005) - '''Type: float - - This channel-based property returns the bandwidth for the channel. - The units are hertz. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].bandwidth` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.bandwidth` - ''' - channel_count = _attributes.AttributeViInt32(1050203) - '''Type: int - - Indicates the number of channels that the specific instrument driver supports. - ''' - characteristic_impedance = _attributes.AttributeViReal64(1250016) - '''Type: float - - This channel-based property returns the characteristic impedance for the channel. - The units are ohms. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].characteristic_impedance` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.characteristic_impedance` - ''' - continuous_scan = _attributes.AttributeViBoolean(1250026) - '''Type: bool - - When a switch device is scanning, the swich can either stop scanning when the end of the scan (False) or continue scanning from the top of the scan list again (True). - Notice that if you set the scan to continuous (True), the Wait For Scan Complete operation will always time out and you must call Abort to stop the scan. - ''' - digital_filter_enable = _attributes.AttributeViBoolean(1150016) - '''Type: bool - - This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (True) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7. - When Digital Filter is disabled (False), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter. - ''' - driver_setup = _attributes.AttributeViString(1050007) - '''Type: str - - This property indicates the Driver Setup string that the user specified when initializing the driver. - Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the InitWithOptions method, or through the IVI Configuration Utility. - If the user does not specify a Driver Setup string, this property returns an empty string. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - handshaking_initiation = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.HandshakingInitiation, 1150013) - instrument_firmware_revision = _attributes.AttributeViString(1050510) - '''Type: str - - A string that contains the firmware revision information for the instrument you are currently using. - ''' - instrument_manufacturer = _attributes.AttributeViString(1050511) - '''Type: str - - A string that contains the name of the instrument manufacturer you are currently using. - ''' - instrument_model = _attributes.AttributeViString(1050512) - '''Type: str - - A string that contains the model number or name of the instrument that you are currently using. - ''' - io_resource_descriptor = _attributes.AttributeViString(1050304) - '''Type: str - - Indicates the resource descriptor the driver uses to identify the physical device. - If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. - If you initialize the instrument driver with the resource descriptor, this property contains that value. - ''' - is_configuration_channel = _attributes.AttributeViBoolean(1250003) - '''Type: bool - - This channel-based property specifies whether to reserve the channel for internal path creation. A channel that is available for internal path creation is called a configuration channel. The driver may use configuration channels to create paths between two channels you specify in the connect method. Configuration channels are not available for external connections. - Set this property to True to mark the channel as a configuration channel. Set this property to False to mark the channel as available for external connections. - After you identify a channel as a configuration channel, you cannot use that channel for external connections. The connect method returns the NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL error when you attempt to establish a connection between a configuration channel and any other channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].is_configuration_channel` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.is_configuration_channel` - ''' - is_debounced = _attributes.AttributeViBoolean(1250002) - '''Type: bool - - This property indicates whether the entire switch device has settled since the last switching command. A value of True indicates that all signals going through the switch device are valid. - ''' - is_scanning = _attributes.AttributeViBoolean(1250024) - '''Type: bool - - If True, the switch module is currently scanning through the scan list (i.e. it is not in the Idle state). If False, the switch module is not currently scanning through the scan list (i.e. it is in the Idle state). - ''' - is_source_channel = _attributes.AttributeViBoolean(1250001) - '''Type: bool - - This channel-based property specifies whether you want to identify the channel as a source channel. Typically, you set this property to True when you attach the channel to a power supply, a method generator, or an active measurement point on the unit under test, and you do not want to connect the channel to another source. The driver prevents source channels from connecting to each other. The connect method returns the NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES when you attempt to connect two channels that you identify as source channels. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].is_source_channel` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.is_source_channel` - ''' - is_waiting_for_trig = _attributes.AttributeViBoolean(1150004) - '''Type: bool - - In a scan list, a semi-colon (;) is used to indicate that at that point in the scan list, the scan engine should pause until a trigger is received from the trigger input. If that trigger is user generated through either a hardware pulse or the Send SW Trigger operation, it is necessary for the user to know when the scan engine has reached such a state. - ''' - logical_name = _attributes.AttributeViString(1050305) - '''Type: str - - A string containing the logical name you specified when opening the current IVI session. - You may pass a logical name to the init or InitWithOptions methods. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - max_ac_voltage = _attributes.AttributeViReal64(1250007) - '''Type: float - - This channel-based property returns the maximum AC voltage the channel can switch. - The units are volts RMS. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_ac_voltage` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_ac_voltage` - ''' - max_carry_ac_current = _attributes.AttributeViReal64(1250011) - '''Type: float - - This channel-based property returns the maximum AC current the channel can carry. - The units are amperes RMS. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_ac_current` - ''' - max_carry_ac_power = _attributes.AttributeViReal64(1250015) - '''Type: float - - This channel-based property returns the maximum AC power the channel can carry. - The units are volt-amperes. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_ac_power` - ''' - max_carry_dc_current = _attributes.AttributeViReal64(1250010) - '''Type: float - - This channel-based property returns the maximum DC current the channel can carry. - The units are amperes. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_dc_current` - ''' - max_carry_dc_power = _attributes.AttributeViReal64(1250014) - '''Type: float - - This channel-based property returns the maximum DC power the channel can carry. - The units are watts. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_carry_dc_power` - ''' - max_dc_voltage = _attributes.AttributeViReal64(1250006) - '''Type: float - - This channel-based property returns the maximum DC voltage the channel can switch. - The units are volts. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_dc_voltage` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_dc_voltage` - ''' - max_switching_ac_current = _attributes.AttributeViReal64(1250009) - '''Type: float - - This channel-based property returns the maximum AC current the channel can switch. - The units are amperes RMS. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_ac_current` - ''' - max_switching_ac_power = _attributes.AttributeViReal64(1250013) - '''Type: float - - This channel-based property returns the maximum AC power the channel can switch. - The units are volt-amperes. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_ac_power` - ''' - max_switching_dc_current = _attributes.AttributeViReal64(1250008) - '''Type: float - - This channel-based property returns the maximum DC current the channel can switch. - The units are amperes. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_current` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_dc_current` - ''' - max_switching_dc_power = _attributes.AttributeViReal64(1250012) - '''Type: float - - This channel-based property returns the maximum DC power the channel can switch. - The units are watts. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_power` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.max_switching_dc_power` - ''' - number_of_relays = _attributes.AttributeViInt32(1150014) - '''Type: int - - This property returns the number of relays. - ''' - num_of_columns = _attributes.AttributeViInt32(1250019) - '''Type: int - - This property returns the number of channels on the column of a matrix or scanner. If the switch device is a scanner, this value is the number of input channels. - The wire_mode property affects the number of available columns. For example, if your device has 8 input lines and you use the four-wire mode, then the number of columns you have available is 2. - ''' - num_of_rows = _attributes.AttributeViInt32(1250018) - '''Type: int - - This property returns the number of channels on the row of a matrix or scanner. If the switch device is a scanner, this value is the number of output channels. - The wire_mode property affects the number of available rows. For example, if your device has 8 input lines and you use the two-wire mode, then the number of columns you have available is 4. - ''' - power_down_latching_relays_after_debounce = _attributes.AttributeViBoolean(1150017) - '''Type: bool - - This property specifies whether to power down latching relays after calling Wait For Debounce. - When Power Down Latching Relays After Debounce is enabled (True), a call to Wait For Debounce ensures that the relays are settled and the latching relays are powered down. - ''' - scan_advanced_output = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScanAdvancedOutput, 1250023) - '''Type: enums.ScanAdvancedOutput - - This property specifies the method you want to use to notify another instrument that all signals going through the switch device have settled following the processing of one entry in the scan list. - ''' - scan_advanced_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScanAdvancedPolarity, 1150011) - scan_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1250025) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - This property specifies the minimum amount of time the switch device waits before it asserts the scan advanced output trigger after opening or closing the switch. The switch device always waits for debounce before asserting the trigger. The units are seconds. - the greater value of the settling time and the value you specify as the scan delay. - - Note: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be - ''' - scan_list = _attributes.AttributeViString(1250020) - '''Type: str - - This property contains a scan list, which is a string that specifies channel connections and trigger conditions. The initiate method makes or breaks connections and waits for triggers according to the instructions in the scan list. - The scan list is comprised of channel names that you separate with special characters. These special characters determine the operations the scanner performs on the channels when it executes this scan list. - To create a path between two channels, use the following character between the two channel names: - -> (a dash followed by a '>' sign) - Example: 'CH1->CH2' tells the switch to make a path from channel CH1 to channel CH2. - To break or clear a path, use the following character as a prefix before the path: - ~ (tilde) - Example: '~CH1->CH2' tells the switch to break the path from channel CH1 to channel CH2. - To tell the switch device to wait for a trigger event, use the following character as a separator between paths: - ; (semi-colon) - Example: 'CH1->CH2;CH3->CH4' tells the switch to make the path from channel CH1 to channel CH2, wait for a trigger, and then make the path from CH3 to CH4. - ''' - scan_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScanMode, 1250021) - '''Type: enums.ScanMode - - This property specifies what happens to existing connections that conflict with the connections you make in a scan list. For example, if CH1 is already connected to CH2 and the scan list instructs the switch device to connect CH1 to CH3, this property specifies what happens to the connection between CH1 and CH2. - If the value of this property is ScanMode.NONE, the switch device takes no action on existing paths. If the value is ScanMode.BREAK_BEFORE_MAKE, the switch device breaks conflicting paths before making new ones. If the value is ScanMode.BREAK_AFTER_MAKE, the switch device breaks conflicting paths after making new ones. - Most switch devices support only one of the possible values. In such cases, this property serves as an indicator of the device's behavior. - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - ''' - serial_number = _attributes.AttributeViString(1150015) - '''Type: str - - This read-only property returns the serial number for the switch device controlled by this instrument driver. If the device does not return a serial number, the driver returns the IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED error. - ''' - settling_time = _attributes.AttributeViReal64TimeDeltaSeconds(1250004) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - This channel-based property returns the maximum length of time from after you make a connection until the signal flowing through the channel settles. The units are seconds. - the greater value of the settling time and the value you specify as the scan delay. - - Note: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].settling_time` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.settling_time` - ''' - simulate = _attributes.AttributeViBoolean(1050005) - '''Type: bool - - Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. - The default value is False. Use the InitWithOptions method to override this value. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - specific_driver_description = _attributes.AttributeViString(1050514) - '''Type: str - - A string that contains a brief description of the specific driver. - ''' - specific_driver_revision = _attributes.AttributeViString(1050551) - '''Type: str - - A string that contains additional version information about this instrument driver. - ''' - specific_driver_vendor = _attributes.AttributeViString(1050513) - '''Type: str - - A string that contains the name of the vendor that supplies this driver. - ''' - supported_instrument_models = _attributes.AttributeViString(1050327) - '''Type: str - - Contains a comma-separated list of supported instrument models. - ''' - temperature = _attributes.AttributeViReal64(1150019) - '''Type: float - - This property returns the temperature as read by the Switch module. The units are degrees Celsius. - ''' - trigger_input = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerInput, 1250022) - '''Type: enums.TriggerInput - - This property specifies the source of the trigger for which the switch device can wait when processing a scan list. The switch device waits for a trigger when it encounters a semi-colon in a scan list. When the trigger occurs, the switch device advances to the next entry in the scan list. - ''' - trigger_input_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerInputPolarity, 1150010) - '''Type: enums.TriggerInputPolarity - - Determines the behavior of the trigger Input. - ''' - wire_mode = _attributes.AttributeViInt32(1250017) - '''Type: int - - This property returns the wire mode of the switch device. - This property affects the values of the num_of_rows and num_of_columns properties. The actual number of input and output lines on the switch device is fixed, but the number of channels depends on how many lines constitute each channel. - - Tip: - This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset. - - Example: :py:attr:`my_session.channels[ ... ].wire_mode` - - To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. - - Example: :py:attr:`my_session.wire_mode` - ''' - - def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): - self._repeated_capability_list = repeated_capability_list - self._repeated_capability = ','.join(repeated_capability_list) - self._all_channels_in_session = all_channels_in_session - self._interpreter = interpreter - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) - param_list.append("interpreter=" + pp.pformat(interpreter)) - self._param_list = ', '.join(param_list) - - # Instantiate any repeated capability objects - self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = freeze_it - - def __repr__(self): - return '{0}.{1}({2})'.format('niswitch', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - ''' These are code-generated ''' - - @ivi_synchronized - def _get_attribute_vi_boolean(self, attribute_id): - r'''_get_attribute_vi_boolean - - This method queries the value of a ViBoolean property. You can use - this method to get the values of instrument specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - State caching is disabled for the entire session or for the particular - property. - State caching is enabled and the currently cached value is - invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . A ring control at the top of the - dialog box allows you to see all IVI properties or only the properties - of the ViInt32 type. If you choose to see all IVI properties, the data - types appear to the right of the property names in the list box. The - data types that are not consistent with this method are dim. If you - select a property data type that is dim, LabWindows/CVI transfers you - to the method panel for the corresponding method that is consistent - with the data type. - If you want to enter a variable name, press to - change this ring control to a manual input box. - If the property in - this ring control has constants as valid values, you can view the - constants by moving to the Property Value control and pressing . - - - Returns: - attribute_value (bool): Returns the current value of the property. Pass the address of a - ViBoolean variable. From the method panel window, you can use this - control as follows. - If the property currently showing in the - Property ID ring control has constants as valid values, you can view a - list of the constants by pressing on this control. Select a value by - double-clicking on it or by selecting it and then pressing . - - ''' - attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_int32(self, attribute_id): - r'''_get_attribute_vi_int32 - - This method queries the value of a ViInt32 property. You can use this - method to get the values of instrument specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - State caching is disabled for the entire session or for the particular - property. - State caching is enabled and the currently cached value is - invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . A ring control at the top of the - dialog box allows you to see all IVI properties or only the properties - of the ViInt32 type. If you choose to see all IVI properties, the data - types appear to the right of the property names in the list box. The - data types that are not consistent with this method are dim. If you - select a property data type that is dim, LabWindows/CVI transfers you - to the method panel for the corresponding method that is consistent - with the data type. - If you want to enter a variable name, press to - change this ring control to a manual input box. - If the property in - this ring control has constants as valid values, you can view the - constants by moving to the Property Value control and pressing . - - - Returns: - attribute_value (int): Returns the current value of the property. Pass the address of a - ViInt32 variable. From the method panel window, you can use this - control as follows. - If the property currently showing in the - Property ID ring control has constants as valid values, you can view a - list of the constants by pressing on this control. Select a value by - double-clicking on it or by selecting it and then pressing . - - ''' - attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - This method queries the value of a ViReal64 property. You can use - this method to get the values of instrument specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - State caching is disabled for the entire session or for the particular - property. - State caching is enabled and the currently cached value is - invalid. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . A ring control at the top of the - dialog box allows you to see all IVI properties or only the properties - of the ViInt32 type. If you choose to see all IVI properties, the data - types appear to the right of the property names in the list box. The - data types that are not consistent with this method are dim. If you - select a property data type that is dim, LabWindows/CVI transfers you - to the method panel for the corresponding method that is consistent - with the data type. - If you want to enter a variable name, press to - change this ring control to a manual input box. - If the property in - this ring control has constants as valid values, you can view the - constants by moving to the Property Value control and pressing . - - - Returns: - attribute_value (float): Returns the current value of the property. Pass the address of a - ViReal64 variable. From the method panel window, you can use this - control as follows. - If the property currently showing in the - Property ID ring control has constants as valid values, you can view a - list of the constants by pressing on this control. Select a value by - double-clicking on it or by selecting it and then pressing . - - ''' - attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return attribute_value - - @ivi_synchronized - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - This method queries the value of a ViString property. You can use - this method to get the values of instrument specific properties and - inherent IVI properties. If the property represents an instrument - state, this method performs instrument I/O in the following cases: - - State caching is disabled for the entire session or for the particular - property. - State caching is enabled and the currently cached value is - invalid. You must provide a ViChar array to serve as a buffer for the - value. You pass the number of bytes in the buffer as the Array Size - parameter. If the current value of the property, including the - terminating NULL byte, is larger than the size you indicate in the Array - Size parameter, the method copies Array Size-1 bytes into the buffer, - places an ASCII NULL byte at the end of the buffer, and returns the - array size you must pass to get the entire value. For example, if the - value is "123456" and the Array Size is 4, the method places "123" - into the buffer and returns 7. If you want to call this method just to - get the required array size, you can pass 0 for the Array Size and - VI_NULL for the Property Value buffer. If you want the method to - fill in the buffer regardless of the number of bytes in the value, pass - a negative number for the Array Size parameter. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . A ring control at the top of the - dialog box allows you to see all IVI properties or only the properties - of the ViInt32 type. If you choose to see all IVI properties, the data - types appear to the right of the property names in the list box. The - data types that are not consistent with this method are dim. If you - select a property data type that is dim, LabWindows/CVI transfers you - to the method panel for the corresponding method that is consistent - with the data type. - If you want to enter a variable name, press to - change this ring control to a manual input box. - If the property in - this ring control has constants as valid values, you can view the - constants by moving to the Property Value control and pressing . - - - Returns: - attribute_value (str): The buffer in which the method returns the current value of the - property. The buffer must be of type ViChar and have at least as many - bytes as indicated in the Array Size parameter. If the current value of - the property, including the terminating NUL byte, contains more bytes - that you indicate in this parameter, the method copies Array Size-1 - bytes into the buffer, places an ASCII NUL byte at the end of the - buffer, and returns the array size you must pass to get the entire - value. For example, if the value is "123456" and the Array Size is 4, - the method places "123" into the buffer and returns 7. If you specify - 0 for the Array Size parameter, you can pass VI_NULL for this - parameter. From the method panel window, you can use this control as - follows. - If the property currently showing in the Property ID ring - control has constants as valid values, you can view a list of the - constants by pressing on this control. Select a value by double-clicking - on it or by selecting it and then pressing . - - ''' - attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return attribute_value - - def lock(self): - '''lock - - Obtains a multithread lock on the device session. Before doing so, the - software waits until all other execution threads release their locks - on the device session. - - Other threads may have obtained a lock on this session for the - following reasons: - - - The application called the lock method. - - A call to NI-SWITCH locked the session. - - After a call to the lock method returns - successfully, no other threads can access the device session until - you call the unlock method or exit out of the with block when using - lock context manager. - - Use the lock method and the - unlock method around a sequence of calls to - instrument driver methods if you require that the device retain its - settings through the end of the sequence. - - You can safely make nested calls to the lock method - within the same thread. To completely unlock the session, you must - balance each call to the lock method with a call to - the unlock method. - - Returns: - lock (context manager): When used in a with statement, niswitch.Session.lock acts as - a context manager and unlock will be called when the with block is exited - ''' - self._interpreter.lock() # We do not call this in the context manager so that this function can - # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, - # that will handle the unlock for them - return _Lock(self) - - @ivi_synchronized - def _set_attribute_vi_boolean(self, attribute_id, attribute_value): - r'''_set_attribute_vi_boolean - - This method sets the value of a ViBoolean property. This is a - low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - State caching is disabled for - the entire session or for the particular property. - State caching is - enabled and the currently cached value is invalid or is different than - the value you specify. This instrument driver contains high-level - methods that set most of the instrument properties. It is best to use - the high-level driver methods as much as possible. They handle order - dependencies and multithread locking for you. In addition, they perform - status checking only after setting all of the properties. In contrast, - when you set multiple properties using the SetAttribute methods, the - methods check the instrument status after each call. Also, when state - caching is enabled, the high-level methods that configure multiple - properties perform instrument I/O only for the properties whose value - you change. Thus, you can safely call the high-level methods without - the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_boolean` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . Read-only properties appear dim - in the list box. If you select a read-only property, an error message - appears. A ring control at the top of the dialog box allows you to see - all IVI properties or only the properties of the ViInt32 type. If you - choose to see all IVI properties, the data types appear to the right of - the property names in the list box. The data types that are not - consistent with this method are dim. If you select a property data - type that is dim, LabWindows/CVI transfers you to the method panel for - the corresponding method that is consistent with the data type. - If - you want to enter a variable name, press to change this ring control to - a manual input box. - If the property in this ring control has - constants as valid values, you can view the constants by moving to the - Property Value control and pressing . - - attribute_value (bool): Pass the value to which you want to set the property. From the method - panel window, you can use this control as follows. - If the property - currently showing in the Property ID ring control has constants as - valid values, you can view a list of the constants by pressing on this - control. Select a value by double-clicking on it or by selecting it and - then pressing . Note: Some of the values might not be valid depending on - the current settings of the instrument session. Default Value: none - - ''' - self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_int32(self, attribute_id, attribute_value): - r'''_set_attribute_vi_int32 - - This method sets the value of a ViInt32 property. This is a low-level - method that you can use to set the values of instrument-specific - properties and inherent IVI properties. If the property represents an - instrument state, this method performs instrument I/O in the following - cases: - State caching is disabled for the entire session or for the - particular property. - State caching is enabled and the currently - cached value is invalid or is different than the value you specify. This - instrument driver contains high-level methods that set most of the - instrument properties. It is best to use the high-level driver methods - as much as possible. They handle order dependencies and multithread - locking for you. In addition, they perform status checking only after - setting all of the properties. In contrast, when you set multiple - properties using the SetAttribute methods, the methods check the - instrument status after each call. Also, when state caching is enabled, - the high-level methods that configure multiple properties perform - instrument I/O only for the properties whose value you change. Thus, you - can safely call the high-level methods without the penalty of - redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_int32` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . Read-only properties appear dim - in the list box. If you select a read-only property, an error message - appears. A ring control at the top of the dialog box allows you to see - all IVI properties or only the properties of the ViInt32 type. If you - choose to see all IVI properties, the data types appear to the right of - the property names in the list box. The data types that are not - consistent with this method are dim. If you select a property data - type that is dim, LabWindows/CVI transfers you to the method panel for - the corresponding method that is consistent with the data type. - If - you want to enter a variable name, press to change this ring control to - a manual input box. - If the property in this ring control has - constants as valid values, you can view the constants by moving to the - Property Value control and pressing . - - attribute_value (int): Pass the value to which you want to set the property. From the method - panel window, you can use this control as follows. - If the property - currently showing in the Property ID ring control has constants as - valid values, you can view a list of the constants by pressing on this - control. Select a value by double-clicking on it or by selecting it and - then pressing . Note: Some of the values might not be valid depending on - the current settings of the instrument session. Default Value: none - - ''' - self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_real64(self, attribute_id, attribute_value): - r'''_set_attribute_vi_real64 - - This method sets the value of a ViReal64 property. This is a - low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - State caching is disabled for - the entire session or for the particular property. - State caching is - enabled and the currently cached value is invalid or is different than - the value you specify. This instrument driver contains high-level - methods that set most of the instrument properties. It is best to use - the high-level driver methods as much as possible. They handle order - dependencies and multithread locking for you. In addition, they perform - status checking only after setting all of the properties. In contrast, - when you set multiple properties using the SetAttribute methods, the - methods check the instrument status after each call. Also, when state - caching is enabled, the high-level methods that configure multiple - properties perform instrument I/O only for the properties whose value - you change. Thus, you can safely call the high-level methods without - the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . Read-only properties appear dim - in the list box. If you select a read-only property, an error message - appears. A ring control at the top of the dialog box allows you to see - all IVI properties or only the properties of the ViInt32 type. If you - choose to see all IVI properties, the data types appear to the right of - the property names in the list box. The data types that are not - consistent with this method are dim. If you select a property data - type that is dim, LabWindows/CVI transfers you to the method panel for - the corresponding method that is consistent with the data type. - If - you want to enter a variable name, press to change this ring control to - a manual input box. - If the property in this ring control has - constants as valid values, you can view the constants by moving to the - Property Value control and pressing . - - attribute_value (float): Pass the value to which you want to set the property. From the method - panel window, you can use this control as follows. - If the property - currently showing in the Property ID ring control has constants as - valid values, you can view a list of the constants by pressing on this - control. Select a value by double-clicking on it or by selecting it and - then pressing . Note: Some of the values might not be valid depending on - the current settings of the instrument session. Default Value: none - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) - - @ivi_synchronized - def _set_attribute_vi_string(self, attribute_id, attribute_value): - r'''_set_attribute_vi_string - - This method sets the value of a ViString property. This is a - low-level method that you can use to set the values of - instrument-specific properties and inherent IVI properties. If the - property represents an instrument state, this method performs - instrument I/O in the following cases: - State caching is disabled for - the entire session or for the particular property. - State caching is - enabled and the currently cached value is invalid or is different than - the value you specify. This instrument driver contains high-level - methods that set most of the instrument properties. It is best to use - the high-level driver methods as much as possible. They handle order - dependencies and multithread locking for you. In addition, they perform - status checking only after setting all of the properties. In contrast, - when you set multiple properties using the SetAttribute methods, the - methods check the instrument status after each call. Also, when state - caching is enabled, the high-level methods that configure multiple - properties perform instrument I/O only for the properties whose value - you change. Thus, you can safely call the high-level methods without - the penalty of redundant instrument I/O. - - Tip: - This method can be called on specific channels within your :py:class:`niswitch.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of a property. From the method panel window, you can use - this control as follows. - Click on the control or press , , or , to - display a dialog box containing a hierarchical list of the available - properties. Properties whose value cannot be set are dim. Help text is - shown for each property. Select a property by double-clicking on it - or by selecting it and then pressing . Read-only properties appear dim - in the list box. If you select a read-only property, an error message - appears. A ring control at the top of the dialog box allows you to see - all IVI properties or only the properties of the ViInt32 type. If you - choose to see all IVI properties, the data types appear to the right of - the property names in the list box. The data types that are not - consistent with this method are dim. If you select a property data - type that is dim, LabWindows/CVI transfers you to the method panel for - the corresponding method that is consistent with the data type. - If - you want to enter a variable name, press to change this ring control to - a manual input box. - If the property in this ring control has - constants as valid values, you can view the constants by moving to the - Property Value control and pressing . - - attribute_value (str): Pass the value to which you want to set the property. From the method - panel window, you can use this control as follows. - If the property - currently showing in the Property ID ring control has constants as - valid values, you can view a list of the constants by pressing on this - control. Select a value by double-clicking on it or by selecting it and - then pressing . Note: Some of the values might not be valid depending on - the current settings of the instrument session. Default Value: none - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) - - def unlock(self): - '''unlock - - Releases a lock that you acquired on an device session using - lock. Refer to lock for additional - information on session locks. - ''' - self._interpreter.unlock() - - def _error_message(self, error_code): - r'''_error_message - - Converts an error code returned by NI-SWITCH into a user-readable - string. Generally this information is supplied in error out of any - NI-SWITCH VI. Use _error_message for a static lookup of an - error code description. - - Args: - error_code (int): Status code returned by any NI-SWITCH method. Default Value: 0 - (VI_SUCCESS) - - - Returns: - error_message (str): The error information formatted into a string. You must pass a ViChar - array with at least 256 bytes. - - ''' - error_message = self._interpreter.error_message(error_code) - return error_message - - -class Session(_SessionBase): - '''An NI-SWITCH session to an NI switch module.''' - - def __init__(self, resource_name, topology="Configured Topology", simulate=False, reset_device=False, *, grpc_options=None): - r'''An NI-SWITCH session to an NI switch module. - - Returns a session handle used to identify the switch in all subsequent - instrument driver calls and sets the topology of the switch. - __init__ creates a new IVI instrument driver session - for the switch specified in the resourceName parameter. The driver uses - the topology specified in the topology parameter and overrides the - topology specified in MAX. Note: When initializing an NI SwitchBlock - device with topology, you must specify the topology created when you - configured the device in MAX, using either - "Configured Topology" or the topology string of the - device. Refer to the Initializing with Topology for NI SwitchBlock - Devices topic in the NI Switches Help for information about determining - the topology string of an NI SwitchBlock device. By default, the switch - is reset to a known state. Enable simulation by specifying the topology - and setting the simulate parameter to True. - - Args: - resource_name (str): Resource name of the switch module to initialize. Default value: None - Syntax: Optional fields are shown in square brackets ([]). Configured in - MAX Under Valid Syntax Devices and Interfaces DeviceName Traditional - NI-DAQ Devices SCXI[chassis ID]::slot number PXI System PXI[bus - number]::device number TIP: IVI logical names are also valid for the - resource name. Default values for optional fields: chassis ID = 1 bus - number = 0 Example resource names: Resource Name Description SC1Mod3 - NI-DAQmx module in chassis "SC1" slot 3 MySwitch NI-DAQmx module renamed - to "MySwitch" SCXI1::3 Traditional NI-DAQ module in chassis 1, slot 3 - SCXI::3 Traditional NI-DAQ module in chassis 1, slot 3 PXI0::16 PXI bus - 0, device number 16 PXI::16 PXI bus 0, device number 16 - - topology (str): Pass the topology name you want to use for the switch you specify with - Resource Name parameter. You can also pass - "Configured Topology" to use the last topology that - was configured for the device in MAX. - Default Value: - "Configured Topology" - Valid Values: - "Configured Topology" - "2501/1-Wire 48x1 Mux" - "2501/1-Wire 48x1 Amplified Mux" - "2501/2-Wire 24x1 Mux" - "2501/2-Wire 24x1 Amplified Mux" - "2501/2-Wire Dual 12x1 Mux" - "2501/2-Wire Quad 6x1 Mux" - "2501/2-Wire 4x6 Matrix" - "2501/4-Wire 12x1 Mux" - "2503/1-Wire 48x1 Mux" - "2503/2-Wire 24x1 Mux" - "2503/2-Wire Dual 12x1 Mux" - "2503/2-Wire Quad 6x1 Mux" - "2503/2-Wire 4x6 Matrix" - "2503/4-Wire 12x1 Mux" - "2510/Independent" - "2512/Independent" - "2514/Independent" - "2515/Independent" - "2520/80-SPST" - "2521/40-DPST" - "2522/53-SPDT" - "2523/26-DPDT" - "2524/1-Wire 128x1 Mux" - "2524/1-Wire Dual 64x1 Mux" - "2524/1-Wire Quad 32x1 Mux" - "2524/1-Wire Octal 16x1 Mux" - "2524/1-Wire Sixteen 8x1 Mux" - "2525/2-Wire 64x1 Mux" - "2525/2-Wire Dual 32x1 Mux" - "2525/2-Wire Quad 16x1 Mux" - "2525/2-Wire Octal 8x1 Mux" - "2525/2-Wire Sixteen 4x1 Mux" - "2526/1-Wire 158x1 Mux" - "2526/2-Wire 79x1 Mux" - "2527/1-Wire 64x1 Mux" - "2527/1-Wire Dual 32x1 Mux" - "2527/2-Wire 32x1 Mux" - "2527/2-Wire Dual 16x1 Mux" - "2527/4-Wire 16x1 Mux" - "2527/Independent" - "2529/2-Wire Dual 4x16 Matrix" - "2529/2-Wire 8x16 Matrix" - "2529/2-Wire 4x32 Matrix" - "2530/1-Wire 128x1 Mux" - "2530/1-Wire Dual 64x1 Mux" - "2530/1-Wire 4x32 Matrix" - "2530/1-Wire 8x16 Matrix" - "2530/1-Wire Octal 16x1 Mux" - "2530/1-Wire Quad 32x1 Mux" - "2530/2-Wire 4x16 Matrix" - "2530/2-Wire 64x1 Mux" - "2530/2-Wire Dual 32x1 Mux" - "2530/2-Wire Quad 16x1 Mux" - "2530/4-Wire 32x1 Mux" - "2530/4-Wire Dual 16x1 Mux" - "2530/Independent" - "2531/1-Wire 4x128 Matrix" - "2531/1-Wire 8x64 Matrix" - "2531/1-Wire Dual 4x64 Matrix" - "2531/1-Wire Dual 8x32 Matrix" - "2531/2-Wire 4x64 Matrix" - "2531/2-Wire 8x32 Matrix" - "2532/1-Wire 16x32 Matrix" - "2532/1-Wire 4x128 Matrix" - "2532/1-Wire 8x64 Matrix" - "2532/1-Wire Dual 16x16 Matrix" - "2532/1-Wire Dual 4x64 Matrix" - "2532/1-Wire Dual 8x32 Matrix" - "2532/1-Wire Quad 4x32 Matrix" - "2532/1-Wire Sixteen 2x16 Matrix" - "2532/2-Wire 16x16 Matrix" - "2532/2-Wire 4x64 Matrix" - "2532/2-Wire 8x32 Matrix" - "2532/2-Wire Dual 4x32 Matrix" - "2533/1-Wire 4x64 Matrix" - "2534/1-Wire 8x32 Matrix" - "2535/1-Wire 4x136 Matrix" - "2536/1-Wire 8x68 Matrix" - "2540/1-Wire 8x9 Matrix" - "2541/1-Wire 8x12 Matrix" - "2542/Quad 2x1 Terminated Mux" - "2543/Dual 4x1 Terminated Mux" - "2544/8x1 Terminated Mux" - "2545/4x1 Terminated Mux" - "2546/Dual 4x1 Mux" - "2547/8x1 Mux" - "2548/4-SPDT" - "2549/Terminated 2-SPDT" - "2554/4x1 Mux" - "2555/4x1 Terminated Mux" - "2556/Dual 4x1 Mux" - "2557/8x1 Mux" - "2558/4-SPDT" - "2559/Terminated 2-SPDT" - "2564/16-SPST" - "2564/8-DPST" - "2565/16-SPST" - "2566/16-SPDT" - "2566/8-DPDT" - "2567/Independent" - "2568/15-DPST" - "2568/31-SPST" - "2569/100-SPST" - "2569/50-DPST" - "2570/20-DPDT" - "2570/40-SPDT" - "2571/66-SPDT" - "2575/1-Wire 196x1 Mux" - "2575/2-Wire 98x1 Mux" - "2575/2-Wire 95x1 Mux" - "2576/2-Wire 64x1 Mux" - "2576/2-Wire Dual 32x1 Mux" - "2576/2-Wire Octal 8x1 Mux" - "2576/2-Wire Quad 16x1 Mux" - "2576/2-Wire Sixteen 4x1 Mux" - "2576/Independent" - "2584/1-Wire 12x1 Mux" - "2584/1-Wire Dual 6x1 Mux" - "2584/2-Wire 6x1 Mux" - "2584/Independent" - "2585/1-Wire 10x1 Mux" - "2586/10-SPST" - "2586/5-DPST" - "2590/4x1 Mux" - "2591/4x1 Mux" - "2593/16x1 Mux" - "2593/8x1 Terminated Mux" - "2593/Dual 8x1 Mux" - "2593/Dual 4x1 Terminated Mux" - "2593/Independent" - "2594/4x1 Mux" - "2595/4x1 Mux" - "2596/Dual 6x1 Mux" - "2597/6x1 Terminated Mux" - "2598/Dual Transfer" - "2599/2-SPDT" - "2720/Independent" - "2722/Independent" - "2725/Independent" - "2727/Independent" - "2737/2-Wire 4x64 Matrix" - "2738/2-Wire 8x32 Matrix" - "2739/2-Wire 16x16 Matrix" - "2746/Quad 4x1 Mux" - "2747/Dual 8x1 Mux" - "2748/16x1 Mux" - "2790/Independent" - "2796/Dual 6x1 Mux" - "2797/6x1 Terminated Mux" - "2798/Dual Transfer" - "2799/2-SPDT" - - simulate (bool): Enables simulation of the switch module specified in the resource name - parameter. Valid Values: True - simulate False - Don't simulate - (Default Value) - - reset_device (bool): Specifies whether to reset the switch module during the initialization - process. Valid Values: True - Reset Device (Default Value) False - - Currently unsupported. The device will not reset. - - grpc_options (niswitch.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options - - - Returns: - session (niswitch.Session): A session object representing the device. - - ''' - if grpc_options: - import niswitch._grpc_stub_interpreter as _grpc_stub_interpreter - interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) - else: - interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') - - # Initialize the superclass with default values first, populate them later - super(Session, self).__init__( - repeated_capability_list=[], - interpreter=interpreter, - freeze_it=False, - all_channels_in_session=None - ) - - # Call specified init function - # Note that _interpreter default-initializes the session handle in its constructor, so that - # if _init_with_topology fails, the error handler can reference it. - # And then here, once _init_with_topology succeeds, we call set_session_handle - # with the actual session handle. - connected = False - try: - self._interpreter.set_session_handle(self._init_with_topology(resource_name, topology, simulate, reset_device)) - connected = True - finally: - if grpc_options: - import nitlsconfig - nitlsconfig.audit_session_connect('NI-SWITCH', grpc_options.grpc_channel, connected) - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("resource_name=" + pp.pformat(resource_name)) - param_list.append("topology=" + pp.pformat(topology)) - param_list.append("simulate=" + pp.pformat(simulate)) - param_list.append("reset_device=" + pp.pformat(reset_device)) - self._param_list = ', '.join(param_list) - - # Store the list of channels in the Session which is needed by some nimi-python modules. - # Use try/except because not all the modules support channels. - # self.get_channel_names() and self.channel_count can only be called after the session - # handle is set - try: - self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) - except AttributeError: - self._all_channels_in_session = None - - # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding - # members when trying to set a property with a typo. - self._is_frozen = True - - def __enter__(self): - return self - - def __exit__(self, exc_type, exc_value, traceback): - if self._interpreter._close_on_exit: - self.close() - - def initiate(self): - '''initiate - - Commits the configured scan list and trigger settings to hardware and - initiates the scan. If niSwitch Commit was called earlier, niSwitch - Initiate Scan only initiates the scan and returns immediately. Once the - scanning operation begins, you cannot perform any other operation other - than GetAttribute, AbortScan, or SendSoftwareTrigger. All other - methods return NISWITCH_ERROR_SCAN_IN_PROGRESS. To stop the - scanning operation, To stop the scanning operation, call - abort. - - Note: - This method will return a Python context manager that will initiate on entering and abort on exit. - ''' - return _Scan(self) - - def close(self): - '''close - - Terminates the NI-SWITCH session and all of its properties and - deallocates any memory resources the driver uses. Notes: (1) You must - unlock the session before calling _close. (2) After calling - _close, you cannot use the instrument driver again until you - call init or InitWithOptions. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - Note: - This method is not needed when using the session context manager - ''' - try: - self._close() - except errors.DriverError: - self._interpreter.set_session_handle() - raise - self._interpreter.set_session_handle() - - ''' These are code-generated ''' - - @ivi_synchronized - def abort(self): - r'''abort - - Aborts the scan in progress. Initiate a scan with - initiate. If the switch module is not scanning, - NISWITCH_ERROR_NO_SCAN_IN_PROGRESS error is returned. - ''' - self._interpreter.abort() - - @ivi_synchronized - def can_connect(self, channel1, channel2): - r'''can_connect - - Verifies that a path between channel 1 and channel 2 can be created. If - a path is possible in the switch module, the availability of that path - is returned given the existing connections. If the path is possible but - in use, a NISWITCH_WARN_IMPLICIT_CONNECTION_EXISTS warning is - returned. - - Args: - channel1 (str): Input one of the channel names of the desired path. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - channel2 (str): Input one of the channel names of the desired path. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - - Returns: - path_capability (enums.PathCapability): Indicates whether a path is valid. Possible values include: - - - PathCapability.PATH_AVAILABLE 1 - - PathCapability.PATH_EXISTS 2 - - PathCapability.PATH_UNSUPPORTED 3 - - PathCapability.RESOURCE_IN_USE 4 - - PathCapability.SOURCE_CONFLICT 5 - - PathCapability.CHANNEL_NOT_AVAILABLE 6 - - Notes: (1) - PathCapability.PATH_AVAILABLE indicates that the driver can create the - path at this time. (2) PathCapability.PATH_EXISTS indicates that the - path already exists. (3) PathCapability.PATH_UNSUPPORTED indicates that - the instrument is not capable of creating a path between the channels - you specify. (4) PathCapability.RESOURCE_IN_USE indicates that although - the path is valid, the driver cannot create the path at this moment - because the switch device is currently using one or more of the required - channels to create another path. You must destroy the other path before - creating this one. (5) PathCapability.SOURCE_CONFLICT indicates that - the instrument cannot create a path because both channels are connected - to a different source channel. (6) - PathCapability.CHANNEL_NOT_AVAILABLE indicates that the driver cannot - create a path between the two channels because one of the channels is a - configuration channel and thus unavailable for external connections. - - ''' - path_capability = self._interpreter.can_connect(channel1, channel2) - return path_capability - - @ivi_synchronized - def commit(self): - r'''commit - - Downloads the configured scan list and trigger settings to hardware. - Calling commit optional as it is implicitly called during - initiate. Use commit to arm triggers in a given - order or to control when expensive hardware operations are performed. - ''' - self._interpreter.commit() - - @ivi_synchronized - def connect(self, channel1, channel2): - r'''connect - - Creates a path between channel 1 and channel 2. The driver calculates - and uses the shortest path between the two channels. Refer to Immediate - Operations for information about Channel Usage types. If a path is not - available, the method returns one of the following errors: - - NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are - already explicitly connected by calling either the connect or - set_path method. - - NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a - configuration channel. Error elaboration contains information about - which of the two channels is a configuration channel. - - NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are - connected to a different source. Error elaboration contains information - about sources channel 1 and 2 connect to. - - NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are - one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the - driver cannot find a path between the two channels. Note: Paths are - bidirectional. For example, if a path exists between channels CH1 and - CH2, then the path also exists between channels CH2 and CH1. - - Args: - channel1 (str): Input one of the channel names of the desired path. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - channel2 (str): Input one of the channel names of the desired path. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - ''' - self._interpreter.connect(channel1, channel2) - - @ivi_synchronized - def connect_multiple(self, connection_list): - r'''connect_multiple - - Creates the connections between channels specified in Connection List. - Specify connections with two endpoints only or the explicit path between - two endpoints. NI-SWITCH calculates and uses the shortest path between - the channels. Refer to Setting Source and Configuration Channels for - information about channel usage types. In the event of an error, - connecting stops at the point in the list where the error occurred. If a - path is not available, the method returns one of the following errors: - - NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are - already explicitly connected. - - NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a - configuration channel. Error elaboration contains information about - which of the two channels is a configuration channel. - - NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are - connected to a different source. Error elaboration contains information - about sources channel 1 and 2 to connect. - - NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are - one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the - driver cannot find a path between the two channels. Note: Paths are - bidirectional. For example, if a path exists between channels ch1 and - ch2, then the path also exists between channels ch1 and ch2. - - Args: - connection_list (str): Connection List specifies a list of connections between channels to - make. NI-SWITCH validates the connection list, and aborts execution of - the list if errors are returned. Refer to Connection and Disconnection - List Syntax for valid connection list syntax and examples. Refer to - Devices Overview for valid channel names for the switch module. Example - of a valid connection list: c0 -> r1, [c2 -> r2 -> c3] In this example, - r2 is a configuration channel. Default value: None - - ''' - self._interpreter.connect_multiple(connection_list) - - @ivi_synchronized - def disable(self): - r'''disable - - Places the switch module in a quiescent state where it has minimal or no - impact on the system to which it is connected. All channels are - disconnected and any scan in progress is aborted. - ''' - self._interpreter.disable() - - @ivi_synchronized - def disconnect(self, channel1, channel2): - r'''disconnect - - This method destroys the path between two channels that you create - with the connect or set_path method. If a path is - not connected or not available, the method returns the - IVISWTCH_ERROR_NO_SUCH_PATH error. - - Args: - channel1 (str): Input one of the channel names of the path to break. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - channel2 (str): Input one of the channel names of the path to break. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: None - - ''' - self._interpreter.disconnect(channel1, channel2) - - @ivi_synchronized - def disconnect_all(self): - r'''disconnect_all - - Breaks all existing paths. If the switch module cannot break all paths, - NISWITCH_WARN_PATH_REMAINS warning is returned. - ''' - self._interpreter.disconnect_all() - - @ivi_synchronized - def disconnect_multiple(self, disconnection_list): - r'''disconnect_multiple - - Breaks the connections between channels specified in Disconnection List. - If no connections exist between channels, NI-SWITCH returns an error. In - the event of an error, the VI stops at the point in the list where the - error occurred. - - Args: - disconnection_list (str): Disconnection List specifies a list of connections between channels to - break. NI-SWITCH validates the disconnection list, and aborts execution - of the list if errors are returned. Refer to Connection and - Disconnection List Syntax for valid disconnection list syntax and - examples. Refer to Devices Overview for valid channel names for the - switch module. Example of a valid disconnection list: c0 -> r1, [c2 -> - r2 -> c3] In this example, r2 is a configuration channel. Default value: - None - - ''' - self._interpreter.disconnect_multiple(disconnection_list) - - @ivi_synchronized - def get_channel_name(self, index): - r'''get_channel_name - - Returns the channel string that is in the channel table at the specified - index. Use get_channel_name in a For Loop to get a complete list - of valid channel names for the switch module. Use the Channel Count - property to determine the number of channels. - - Args: - index (int): A 1-based index into the channel table. Default value: 1 Maximum value: - Value of Channel Count property. - - - Returns: - channel_name_buffer (str): Returns the channel name that is in the channel table at the index you - specify. - - ''' - channel_name_buffer = self._interpreter.get_channel_name(index) - return channel_name_buffer - - @ivi_synchronized - def get_path(self, channel1, channel2): - r'''get_path - - Returns a string that identifies the explicit path created with - connect. Pass this string to set_path to establish - the exact same path in future connections. In some cases, multiple paths - are available between two channels. When you call connect, the - driver selects an available path. With connect, there is no - guarantee that the driver selected path will always be the same path - through the switch module. get_path only returns those paths - explicitly created by niSwitch Connect Channels or set_path. - For example, if you connect channels CH1 and CH3,and then channels CH2 - and CH3, an explicit path between channels CH1 and CH2 does not exist an - error is returned - - Args: - channel1 (str): Input one of the channel names of the desired path. Pass the other - channel name as the channel 2 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - channel2 (str): Input one of the channel names of the desired path. Pass the other - channel name as the channel 1 parameter. Refer to Devices Overview for - valid channel names for the switch module. Examples of valid channel - names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" - - - Returns: - path (str): A string composed of comma-separated paths between channel 1 and channel - 2. The first and last names in the path are the endpoints of the path. - All other channels in the path are configuration channels. Examples of - returned paths: ch0->com0, com0->ab0 - - ''' - path = self._interpreter.get_path(channel1, channel2) - return path - - @ivi_synchronized - def get_relay_count(self, relay_name): - r'''get_relay_count - - Returns the number of times the relay has changed from Closed to Open. - Relay count is useful for tracking relay lifetime and usage. Call - wait_for_debounce before get_relay_count to ensure an - accurate count. Refer to the Relay Count topic in the NI Switches Help - to determine if the switch module supports relay counting. - - Args: - relay_name (str): Name of the relay. Default value: None Examples of valid relay names: - ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid - relay names for the switch module. - - - Returns: - relay_count (int): The number of relay cycles. - - ''' - relay_count = self._interpreter.get_relay_count(relay_name) - return relay_count - - @ivi_synchronized - def get_relay_name(self, index): - r'''get_relay_name - - Returns the relay name string that is in the relay list at the specified - index. Use get_relay_name in a For Loop to get a complete list - of valid relay names for the switch module. Use the Number of Relays - property to determine the number of relays. - - Args: - index (int): A 1-based index into the channel table. Default value: 1 Maximum value: - Value of Channel Count property. - - - Returns: - relay_name_buffer (str): Returns the relay name for the index you specify. - - ''' - relay_name_buffer = self._interpreter.get_relay_name(index) - return relay_name_buffer - - @ivi_synchronized - def get_relay_position(self, relay_name): - r'''get_relay_position - - Returns the relay position for the relay specified in the Relay Name - parameter. - - Args: - relay_name (str): Name of the relay. Default value: None Examples of valid relay names: - ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid - relay names for the switch module. - - - Returns: - relay_position (enums.RelayPosition): Indicates whether the relay is open or closed. RelayPosition.OPEN 10 - RelayPosition.CLOSED 11 - - ''' - relay_position = self._interpreter.get_relay_position(relay_name) - return relay_position - - def _init_with_topology(self, resource_name, topology="Configured Topology", simulate=False, reset_device=False): - r'''_init_with_topology - - Returns a session handle used to identify the switch in all subsequent - instrument driver calls and sets the topology of the switch. - __init__ creates a new IVI instrument driver session - for the switch specified in the resourceName parameter. The driver uses - the topology specified in the topology parameter and overrides the - topology specified in MAX. Note: When initializing an NI SwitchBlock - device with topology, you must specify the topology created when you - configured the device in MAX, using either - "Configured Topology" or the topology string of the - device. Refer to the Initializing with Topology for NI SwitchBlock - Devices topic in the NI Switches Help for information about determining - the topology string of an NI SwitchBlock device. By default, the switch - is reset to a known state. Enable simulation by specifying the topology - and setting the simulate parameter to True. - - Args: - resource_name (str): Resource name of the switch module to initialize. Default value: None - Syntax: Optional fields are shown in square brackets ([]). Configured in - MAX Under Valid Syntax Devices and Interfaces DeviceName Traditional - NI-DAQ Devices SCXI[chassis ID]::slot number PXI System PXI[bus - number]::device number TIP: IVI logical names are also valid for the - resource name. Default values for optional fields: chassis ID = 1 bus - number = 0 Example resource names: Resource Name Description SC1Mod3 - NI-DAQmx module in chassis "SC1" slot 3 MySwitch NI-DAQmx module renamed - to "MySwitch" SCXI1::3 Traditional NI-DAQ module in chassis 1, slot 3 - SCXI::3 Traditional NI-DAQ module in chassis 1, slot 3 PXI0::16 PXI bus - 0, device number 16 PXI::16 PXI bus 0, device number 16 - - topology (str): Pass the topology name you want to use for the switch you specify with - Resource Name parameter. You can also pass - "Configured Topology" to use the last topology that - was configured for the device in MAX. - Default Value: - "Configured Topology" - Valid Values: - "Configured Topology" - "2501/1-Wire 48x1 Mux" - "2501/1-Wire 48x1 Amplified Mux" - "2501/2-Wire 24x1 Mux" - "2501/2-Wire 24x1 Amplified Mux" - "2501/2-Wire Dual 12x1 Mux" - "2501/2-Wire Quad 6x1 Mux" - "2501/2-Wire 4x6 Matrix" - "2501/4-Wire 12x1 Mux" - "2503/1-Wire 48x1 Mux" - "2503/2-Wire 24x1 Mux" - "2503/2-Wire Dual 12x1 Mux" - "2503/2-Wire Quad 6x1 Mux" - "2503/2-Wire 4x6 Matrix" - "2503/4-Wire 12x1 Mux" - "2510/Independent" - "2512/Independent" - "2514/Independent" - "2515/Independent" - "2520/80-SPST" - "2521/40-DPST" - "2522/53-SPDT" - "2523/26-DPDT" - "2524/1-Wire 128x1 Mux" - "2524/1-Wire Dual 64x1 Mux" - "2524/1-Wire Quad 32x1 Mux" - "2524/1-Wire Octal 16x1 Mux" - "2524/1-Wire Sixteen 8x1 Mux" - "2525/2-Wire 64x1 Mux" - "2525/2-Wire Dual 32x1 Mux" - "2525/2-Wire Quad 16x1 Mux" - "2525/2-Wire Octal 8x1 Mux" - "2525/2-Wire Sixteen 4x1 Mux" - "2526/1-Wire 158x1 Mux" - "2526/2-Wire 79x1 Mux" - "2527/1-Wire 64x1 Mux" - "2527/1-Wire Dual 32x1 Mux" - "2527/2-Wire 32x1 Mux" - "2527/2-Wire Dual 16x1 Mux" - "2527/4-Wire 16x1 Mux" - "2527/Independent" - "2529/2-Wire Dual 4x16 Matrix" - "2529/2-Wire 8x16 Matrix" - "2529/2-Wire 4x32 Matrix" - "2530/1-Wire 128x1 Mux" - "2530/1-Wire Dual 64x1 Mux" - "2530/1-Wire 4x32 Matrix" - "2530/1-Wire 8x16 Matrix" - "2530/1-Wire Octal 16x1 Mux" - "2530/1-Wire Quad 32x1 Mux" - "2530/2-Wire 4x16 Matrix" - "2530/2-Wire 64x1 Mux" - "2530/2-Wire Dual 32x1 Mux" - "2530/2-Wire Quad 16x1 Mux" - "2530/4-Wire 32x1 Mux" - "2530/4-Wire Dual 16x1 Mux" - "2530/Independent" - "2531/1-Wire 4x128 Matrix" - "2531/1-Wire 8x64 Matrix" - "2531/1-Wire Dual 4x64 Matrix" - "2531/1-Wire Dual 8x32 Matrix" - "2531/2-Wire 4x64 Matrix" - "2531/2-Wire 8x32 Matrix" - "2532/1-Wire 16x32 Matrix" - "2532/1-Wire 4x128 Matrix" - "2532/1-Wire 8x64 Matrix" - "2532/1-Wire Dual 16x16 Matrix" - "2532/1-Wire Dual 4x64 Matrix" - "2532/1-Wire Dual 8x32 Matrix" - "2532/1-Wire Quad 4x32 Matrix" - "2532/1-Wire Sixteen 2x16 Matrix" - "2532/2-Wire 16x16 Matrix" - "2532/2-Wire 4x64 Matrix" - "2532/2-Wire 8x32 Matrix" - "2532/2-Wire Dual 4x32 Matrix" - "2533/1-Wire 4x64 Matrix" - "2534/1-Wire 8x32 Matrix" - "2535/1-Wire 4x136 Matrix" - "2536/1-Wire 8x68 Matrix" - "2540/1-Wire 8x9 Matrix" - "2541/1-Wire 8x12 Matrix" - "2542/Quad 2x1 Terminated Mux" - "2543/Dual 4x1 Terminated Mux" - "2544/8x1 Terminated Mux" - "2545/4x1 Terminated Mux" - "2546/Dual 4x1 Mux" - "2547/8x1 Mux" - "2548/4-SPDT" - "2549/Terminated 2-SPDT" - "2554/4x1 Mux" - "2555/4x1 Terminated Mux" - "2556/Dual 4x1 Mux" - "2557/8x1 Mux" - "2558/4-SPDT" - "2559/Terminated 2-SPDT" - "2564/16-SPST" - "2564/8-DPST" - "2565/16-SPST" - "2566/16-SPDT" - "2566/8-DPDT" - "2567/Independent" - "2568/15-DPST" - "2568/31-SPST" - "2569/100-SPST" - "2569/50-DPST" - "2570/20-DPDT" - "2570/40-SPDT" - "2571/66-SPDT" - "2575/1-Wire 196x1 Mux" - "2575/2-Wire 98x1 Mux" - "2575/2-Wire 95x1 Mux" - "2576/2-Wire 64x1 Mux" - "2576/2-Wire Dual 32x1 Mux" - "2576/2-Wire Octal 8x1 Mux" - "2576/2-Wire Quad 16x1 Mux" - "2576/2-Wire Sixteen 4x1 Mux" - "2576/Independent" - "2584/1-Wire 12x1 Mux" - "2584/1-Wire Dual 6x1 Mux" - "2584/2-Wire 6x1 Mux" - "2584/Independent" - "2585/1-Wire 10x1 Mux" - "2586/10-SPST" - "2586/5-DPST" - "2590/4x1 Mux" - "2591/4x1 Mux" - "2593/16x1 Mux" - "2593/8x1 Terminated Mux" - "2593/Dual 8x1 Mux" - "2593/Dual 4x1 Terminated Mux" - "2593/Independent" - "2594/4x1 Mux" - "2595/4x1 Mux" - "2596/Dual 6x1 Mux" - "2597/6x1 Terminated Mux" - "2598/Dual Transfer" - "2599/2-SPDT" - "2720/Independent" - "2722/Independent" - "2725/Independent" - "2727/Independent" - "2737/2-Wire 4x64 Matrix" - "2738/2-Wire 8x32 Matrix" - "2739/2-Wire 16x16 Matrix" - "2746/Quad 4x1 Mux" - "2747/Dual 8x1 Mux" - "2748/16x1 Mux" - "2790/Independent" - "2796/Dual 6x1 Mux" - "2797/6x1 Terminated Mux" - "2798/Dual Transfer" - "2799/2-SPDT" - - simulate (bool): Enables simulation of the switch module specified in the resource name - parameter. Valid Values: True - simulate False - Don't simulate - (Default Value) - - reset_device (bool): Specifies whether to reset the switch module during the initialization - process. Valid Values: True - Reset Device (Default Value) False - - Currently unsupported. The device will not reset. - - - Returns: - vi (int): A particular NI-SWITCH session established with - __init__, InitWithOptions, or init - and used for all subsequent NI-SWITCH calls. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - - ''' - vi = self._interpreter.init_with_topology(resource_name, topology, simulate, reset_device) - return vi - - @ivi_synchronized - def _initiate_scan(self): - r'''_initiate_scan - - Commits the configured scan list and trigger settings to hardware and - initiates the scan. If niSwitch Commit was called earlier, niSwitch - Initiate Scan only initiates the scan and returns immediately. Once the - scanning operation begins, you cannot perform any other operation other - than GetAttribute, AbortScan, or SendSoftwareTrigger. All other - methods return NISWITCH_ERROR_SCAN_IN_PROGRESS. To stop the - scanning operation, To stop the scanning operation, call - abort. - ''' - self._interpreter.initiate_scan() - - @ivi_synchronized - def relay_control(self, relay_name, relay_action): - r'''relay_control - - Controls individual relays of the switch. When controlling individual - relays, the protection offered by setting the usage of source channels - and configuration channels, and by enabling or disabling analog bus - sharing on the NI SwitchBlock, does not apply. Refer to the device book - for your switch in the NI Switches Help to determine if the switch - supports individual relay control. - - Args: - relay_name (str): Name of the relay. Default value: None Examples of valid relay names: - ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid - relay names for the switch module. - - relay_action (enums.RelayAction): Specifies whether to open or close a given relay. Default value: Relay - Close Defined values: RelayAction.OPEN - RelayAction.CLOSE (Default Value) - - ''' - if type(relay_action) is not enums.RelayAction: - raise TypeError('Parameter relay_action must be of type ' + str(enums.RelayAction)) - self._interpreter.relay_control(relay_name, relay_action) - - @ivi_synchronized - def reset_with_defaults(self): - r'''reset_with_defaults - - Resets the switch module and applies initial user specified settings - from the logical name used to initialize the session. If the session was - created without a logical name, this method is equivalent to - reset. - ''' - self._interpreter.reset_with_defaults() - - @ivi_synchronized - def route_scan_advanced_output(self, scan_advanced_output_connector, scan_advanced_output_bus_line, invert=False): - r'''route_scan_advanced_output - - Routes the scan advanced output trigger from a trigger bus line (TTLx) - to the front or rear connector. - - Args: - scan_advanced_output_connector (enums.ScanAdvancedOutput): The scan advanced trigger destination. Valid locations are the - ScanAdvancedOutput.FRONTCONNECTOR and ScanAdvancedOutput.REARCONNECTOR. Default - value: ScanAdvancedOutput.FRONTCONNECTOR - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - scan_advanced_output_bus_line (enums.ScanAdvancedOutput): The trigger line to route the scan advanced output trigger from the - front or rear connector. Select ScanAdvancedOutput.NONE to break an existing - route. Default value: None Valid Values: ScanAdvancedOutput.NONE - ScanAdvancedOutput.TTL0 ScanAdvancedOutput.TTL1 ScanAdvancedOutput.TTL2 - ScanAdvancedOutput.TTL3 ScanAdvancedOutput.TTL4 ScanAdvancedOutput.TTL5 - ScanAdvancedOutput.TTL6 ScanAdvancedOutput.TTL7 - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - invert (bool): If True, inverts the input trigger signal from falling to rising or - vice versa. Default value: False - - ''' - if type(scan_advanced_output_connector) is not enums.ScanAdvancedOutput: - raise TypeError('Parameter scan_advanced_output_connector must be of type ' + str(enums.ScanAdvancedOutput)) - if type(scan_advanced_output_bus_line) is not enums.ScanAdvancedOutput: - raise TypeError('Parameter scan_advanced_output_bus_line must be of type ' + str(enums.ScanAdvancedOutput)) - self._interpreter.route_scan_advanced_output(scan_advanced_output_connector, scan_advanced_output_bus_line, invert) - - @ivi_synchronized - def route_trigger_input(self, trigger_input_connector, trigger_input_bus_line, invert=False): - r'''route_trigger_input - - Routes the input trigger from the front or rear connector to a trigger - bus line (TTLx). To disconnect the route, call this method again and - specify None for trigger bus line parameter. - - Args: - trigger_input_connector (enums.TriggerInput): The location of the input trigger source on the switch module. Valid - locations are the TriggerInput.FRONTCONNECTOR and - TriggerInput.REARCONNECTOR. Default value: - TriggerInput.FRONTCONNECTOR - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - trigger_input_bus_line (enums.TriggerInput): The trigger line to route the input trigger. Select NISWITCH_VAL_NONE - to break an existing route. Default value: None Valid Values: - NISWITCH_VAL_NONE TriggerInput.TTL0 TriggerInput.TTL1 - TriggerInput.TTL2 TriggerInput.TTL3 TriggerInput.TTL4 - TriggerInput.TTL5 TriggerInput.TTL6 TriggerInput.TTL7 - - Note: - One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. - - invert (bool): If True, inverts the input trigger signal from falling to rising or - vice versa. Default value: False - - ''' - if type(trigger_input_connector) is not enums.TriggerInput: - raise TypeError('Parameter trigger_input_connector must be of type ' + str(enums.TriggerInput)) - if type(trigger_input_bus_line) is not enums.TriggerInput: - raise TypeError('Parameter trigger_input_bus_line must be of type ' + str(enums.TriggerInput)) - self._interpreter.route_trigger_input(trigger_input_connector, trigger_input_bus_line, invert) - - @ivi_synchronized - def send_software_trigger(self): - r'''send_software_trigger - - Sends a software trigger to the switch module specified in the NI-SWITCH - session. When the trigger input is set to TriggerInput.SOFTWARE_TRIG - through either the ConfigureScanTrigger or the - trigger_input property, the scan does not proceed from - a semi-colon (wait for trigger) until send_software_trigger is - called. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - self._interpreter.send_software_trigger() - - @ivi_synchronized - def set_path(self, path_list): - r'''set_path - - Connects two channels by specifying an explicit path in the path list - parameter. set_path is particularly useful where path - repeatability is important, such as in calibrated signal paths. If this - is not necessary, use connect. - - Args: - path_list (str): A string composed of comma-separated paths between channel 1 and channel - 2. The first and last names in the path are the endpoints of the path. - Every other channel in the path are configuration channels. Example of a - valid path list string: ch0->com0, com0->ab0. In this example, com0 is a - configuration channel. Default value: None Obtain the path list for a - previously created path with get_path. - - ''' - self._interpreter.set_path(path_list) - - @ivi_synchronized - def wait_for_debounce(self, maximum_time_ms=hightime.timedelta(milliseconds=5000)): - r'''wait_for_debounce - - Pauses until all created paths have settled. If the time you specify - with the Maximum Time (ms) parameter elapsed before the switch paths - have settled, this method returns the - NISWITCH_ERROR_MAX_TIME_EXCEEDED error. - - Args: - maximum_time_ms (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the maximum length of time to wait for all relays in the - switch module to activate or deactivate. If the specified time elapses - before all relays active or deactivate, a timeout error is returned. - Default Value:5000 ms - - ''' - maximum_time_ms = _converters.convert_timedelta_to_milliseconds_int32(maximum_time_ms) - self._interpreter.wait_for_debounce(maximum_time_ms) - - @ivi_synchronized - def wait_for_scan_complete(self, maximum_time_ms=hightime.timedelta(milliseconds=5000)): - r'''wait_for_scan_complete - - Pauses until the switch module stops scanning or the maximum time has - elapsed and returns a timeout error. If the time you specify with the - Maximum Time (ms) parameter elapsed before the scanning operation has - finished, this method returns the NISWITCH_ERROR_MAX_TIME_EXCEEDED - error. - - Args: - maximum_time_ms (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the maximum length of time to wait for the switch module to - stop scanning. If the specified time elapses before the scan ends, - NISWITCH_ERROR_MAX_TIME_EXCEEDED error is returned. Default - Value:5000 ms - - ''' - maximum_time_ms = _converters.convert_timedelta_to_milliseconds_int32(maximum_time_ms) - self._interpreter.wait_for_scan_complete(maximum_time_ms) - - def _close(self): - r'''_close - - Terminates the NI-SWITCH session and all of its properties and - deallocates any memory resources the driver uses. Notes: (1) You must - unlock the session before calling _close. (2) After calling - _close, you cannot use the instrument driver again until you - call init or InitWithOptions. - - Note: - One or more of the referenced methods are not in the Python API for this driver. - ''' - self._interpreter.close() - - @ivi_synchronized - def self_test(self): - '''self_test - - Verifies that the driver can communicate with the switch module. - - Raises `SelfTestError` on self test failure. Properties on exception object: - - - code - failure code from driver - - message - status message from driver - - +----------------+------------------+ - | Self-Test Code | Description | - +================+==================+ - | 0 | Passed self-test | - +----------------+------------------+ - | 1 | Self-test failed | - +----------------+------------------+ - ''' - code, msg = self._self_test() - if code: - raise errors.SelfTestError(code, msg) - return None - - @ivi_synchronized - def reset(self): - r'''reset - - Disconnects all created paths and returns the switch module to the state - at initialization. Configuration channel and source channel settings - remain unchanged. - ''' - self._interpreter.reset() - - @ivi_synchronized - def _self_test(self): - r'''_self_test - - Verifies that the driver can communicate with the switch module. - - Returns: - self_test_result (int): Value returned from the switch device self-test. Passed 0 Failed 1 - - self_test_message (str): Self-test response string from the switch device. You must pass a ViChar - array with at least 256 bytes. - - ''' - self_test_result, self_test_message = self._interpreter.self_test() - return self_test_result, self_test_message diff --git a/generated/niswitch/niswitch/unit_tests/_matchers.py b/generated/niswitch/niswitch/unit_tests/_matchers.py deleted file mode 100644 index 87ccdfae68..0000000000 --- a/generated/niswitch/niswitch/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import niswitch._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/niswitch/niswitch/unit_tests/_mock_helper.py b/generated/niswitch/niswitch/unit_tests/_mock_helper.py deleted file mode 100644 index 7962abc9a4..0000000000 --- a/generated/niswitch/niswitch/unit_tests/_mock_helper.py +++ /dev/null @@ -1,508 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['AbortScan'] = {} - self._defaults['AbortScan']['return'] = 0 - self._defaults['CanConnect'] = {} - self._defaults['CanConnect']['return'] = 0 - self._defaults['CanConnect']['pathCapability'] = None - self._defaults['Commit'] = {} - self._defaults['Commit']['return'] = 0 - self._defaults['Connect'] = {} - self._defaults['Connect']['return'] = 0 - self._defaults['ConnectMultiple'] = {} - self._defaults['ConnectMultiple']['return'] = 0 - self._defaults['Disable'] = {} - self._defaults['Disable']['return'] = 0 - self._defaults['Disconnect'] = {} - self._defaults['Disconnect']['return'] = 0 - self._defaults['DisconnectAll'] = {} - self._defaults['DisconnectAll']['return'] = 0 - self._defaults['DisconnectMultiple'] = {} - self._defaults['DisconnectMultiple']['return'] = 0 - self._defaults['GetAttributeViBoolean'] = {} - self._defaults['GetAttributeViBoolean']['return'] = 0 - self._defaults['GetAttributeViBoolean']['attributeValue'] = None - self._defaults['GetAttributeViInt32'] = {} - self._defaults['GetAttributeViInt32']['return'] = 0 - self._defaults['GetAttributeViInt32']['attributeValue'] = None - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['attributeValue'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['attributeValue'] = None - self._defaults['GetChannelName'] = {} - self._defaults['GetChannelName']['return'] = 0 - self._defaults['GetChannelName']['channelNameBuffer'] = None - self._defaults['GetError'] = {} - self._defaults['GetError']['return'] = 0 - self._defaults['GetError']['errorCode'] = None - self._defaults['GetError']['description'] = None - self._defaults['GetPath'] = {} - self._defaults['GetPath']['return'] = 0 - self._defaults['GetPath']['path'] = None - self._defaults['GetRelayCount'] = {} - self._defaults['GetRelayCount']['return'] = 0 - self._defaults['GetRelayCount']['relayCount'] = None - self._defaults['GetRelayName'] = {} - self._defaults['GetRelayName']['return'] = 0 - self._defaults['GetRelayName']['relayNameBuffer'] = None - self._defaults['GetRelayPosition'] = {} - self._defaults['GetRelayPosition']['return'] = 0 - self._defaults['GetRelayPosition']['relayPosition'] = None - self._defaults['InitWithTopology'] = {} - self._defaults['InitWithTopology']['return'] = 0 - self._defaults['InitWithTopology']['vi'] = None - self._defaults['InitiateScan'] = {} - self._defaults['InitiateScan']['return'] = 0 - self._defaults['LockSession'] = {} - self._defaults['LockSession']['return'] = 0 - self._defaults['LockSession']['callerHasLock'] = None - self._defaults['RelayControl'] = {} - self._defaults['RelayControl']['return'] = 0 - self._defaults['ResetWithDefaults'] = {} - self._defaults['ResetWithDefaults']['return'] = 0 - self._defaults['RouteScanAdvancedOutput'] = {} - self._defaults['RouteScanAdvancedOutput']['return'] = 0 - self._defaults['RouteTriggerInput'] = {} - self._defaults['RouteTriggerInput']['return'] = 0 - self._defaults['SendSoftwareTrigger'] = {} - self._defaults['SendSoftwareTrigger']['return'] = 0 - self._defaults['SetAttributeViBoolean'] = {} - self._defaults['SetAttributeViBoolean']['return'] = 0 - self._defaults['SetAttributeViInt32'] = {} - self._defaults['SetAttributeViInt32']['return'] = 0 - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetPath'] = {} - self._defaults['SetPath']['return'] = 0 - self._defaults['SetRuntimeEnvironment'] = {} - self._defaults['SetRuntimeEnvironment']['return'] = 0 - self._defaults['UnlockSession'] = {} - self._defaults['UnlockSession']['return'] = 0 - self._defaults['UnlockSession']['callerHasLock'] = None - self._defaults['WaitForDebounce'] = {} - self._defaults['WaitForDebounce']['return'] = 0 - self._defaults['WaitForScanComplete'] = {} - self._defaults['WaitForScanComplete']['return'] = 0 - self._defaults['close'] = {} - self._defaults['close']['return'] = 0 - self._defaults['error_message'] = {} - self._defaults['error_message']['return'] = 0 - self._defaults['error_message']['errorMessage'] = None - self._defaults['reset'] = {} - self._defaults['reset']['return'] = 0 - self._defaults['self_test'] = {} - self._defaults['self_test']['return'] = 0 - self._defaults['self_test']['selfTestResult'] = None - self._defaults['self_test']['selfTestMessage'] = None - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niSwitch_AbortScan(self, vi): # noqa: N802 - if self._defaults['AbortScan']['return'] != 0: - return self._defaults['AbortScan']['return'] - return self._defaults['AbortScan']['return'] - - def niSwitch_CanConnect(self, vi, channel1, channel2, path_capability): # noqa: N802 - if self._defaults['CanConnect']['return'] != 0: - return self._defaults['CanConnect']['return'] - # path_capability - if self._defaults['CanConnect']['pathCapability'] is None: - raise MockFunctionCallError("niSwitch_CanConnect", param='pathCapability') - if path_capability is not None: - path_capability.contents.value = self._defaults['CanConnect']['pathCapability'] - return self._defaults['CanConnect']['return'] - - def niSwitch_Commit(self, vi): # noqa: N802 - if self._defaults['Commit']['return'] != 0: - return self._defaults['Commit']['return'] - return self._defaults['Commit']['return'] - - def niSwitch_Connect(self, vi, channel1, channel2): # noqa: N802 - if self._defaults['Connect']['return'] != 0: - return self._defaults['Connect']['return'] - return self._defaults['Connect']['return'] - - def niSwitch_ConnectMultiple(self, vi, connection_list): # noqa: N802 - if self._defaults['ConnectMultiple']['return'] != 0: - return self._defaults['ConnectMultiple']['return'] - return self._defaults['ConnectMultiple']['return'] - - def niSwitch_Disable(self, vi): # noqa: N802 - if self._defaults['Disable']['return'] != 0: - return self._defaults['Disable']['return'] - return self._defaults['Disable']['return'] - - def niSwitch_Disconnect(self, vi, channel1, channel2): # noqa: N802 - if self._defaults['Disconnect']['return'] != 0: - return self._defaults['Disconnect']['return'] - return self._defaults['Disconnect']['return'] - - def niSwitch_DisconnectAll(self, vi): # noqa: N802 - if self._defaults['DisconnectAll']['return'] != 0: - return self._defaults['DisconnectAll']['return'] - return self._defaults['DisconnectAll']['return'] - - def niSwitch_DisconnectMultiple(self, vi, disconnection_list): # noqa: N802 - if self._defaults['DisconnectMultiple']['return'] != 0: - return self._defaults['DisconnectMultiple']['return'] - return self._defaults['DisconnectMultiple']['return'] - - def niSwitch_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViBoolean']['return'] != 0: - return self._defaults['GetAttributeViBoolean']['return'] - # attribute_value - if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: - raise MockFunctionCallError("niSwitch_GetAttributeViBoolean", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] - return self._defaults['GetAttributeViBoolean']['return'] - - def niSwitch_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViInt32']['return'] != 0: - return self._defaults['GetAttributeViInt32']['return'] - # attribute_value - if self._defaults['GetAttributeViInt32']['attributeValue'] is None: - raise MockFunctionCallError("niSwitch_GetAttributeViInt32", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] - return self._defaults['GetAttributeViInt32']['return'] - - def niSwitch_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # attribute_value - if self._defaults['GetAttributeViReal64']['attributeValue'] is None: - raise MockFunctionCallError("niSwitch_GetAttributeViReal64", param='attributeValue') - if attribute_value is not None: - attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] - return self._defaults['GetAttributeViReal64']['return'] - - def niSwitch_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # attribute_value - if self._defaults['GetAttributeViString']['attributeValue'] is None: - raise MockFunctionCallError("niSwitch_GetAttributeViString", param='attributeValue') - if array_size.value == 0: - return len(self._defaults['GetAttributeViString']['attributeValue']) - attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niSwitch_GetChannelName(self, vi, index, buffer_size, channel_name_buffer): # noqa: N802 - if self._defaults['GetChannelName']['return'] != 0: - return self._defaults['GetChannelName']['return'] - # channel_name_buffer - if self._defaults['GetChannelName']['channelNameBuffer'] is None: - raise MockFunctionCallError("niSwitch_GetChannelName", param='channelNameBuffer') - if buffer_size.value == 0: - return len(self._defaults['GetChannelName']['channelNameBuffer']) - channel_name_buffer.value = self._defaults['GetChannelName']['channelNameBuffer'].encode('ascii') - return self._defaults['GetChannelName']['return'] - - def niSwitch_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 - if self._defaults['GetError']['return'] != 0: - return self._defaults['GetError']['return'] - # error_code - if self._defaults['GetError']['errorCode'] is None: - raise MockFunctionCallError("niSwitch_GetError", param='errorCode') - if error_code is not None: - error_code.contents.value = self._defaults['GetError']['errorCode'] - # description - if self._defaults['GetError']['description'] is None: - raise MockFunctionCallError("niSwitch_GetError", param='description') - if buffer_size.value == 0: - return len(self._defaults['GetError']['description']) - description.value = self._defaults['GetError']['description'].encode('ascii') - return self._defaults['GetError']['return'] - - def niSwitch_GetPath(self, vi, channel1, channel2, buffer_size, path): # noqa: N802 - if self._defaults['GetPath']['return'] != 0: - return self._defaults['GetPath']['return'] - # path - if self._defaults['GetPath']['path'] is None: - raise MockFunctionCallError("niSwitch_GetPath", param='path') - if buffer_size.value == 0: - return len(self._defaults['GetPath']['path']) - path.value = self._defaults['GetPath']['path'].encode('ascii') - return self._defaults['GetPath']['return'] - - def niSwitch_GetRelayCount(self, vi, relay_name, relay_count): # noqa: N802 - if self._defaults['GetRelayCount']['return'] != 0: - return self._defaults['GetRelayCount']['return'] - # relay_count - if self._defaults['GetRelayCount']['relayCount'] is None: - raise MockFunctionCallError("niSwitch_GetRelayCount", param='relayCount') - if relay_count is not None: - relay_count.contents.value = self._defaults['GetRelayCount']['relayCount'] - return self._defaults['GetRelayCount']['return'] - - def niSwitch_GetRelayName(self, vi, index, relay_name_buffer_size, relay_name_buffer): # noqa: N802 - if self._defaults['GetRelayName']['return'] != 0: - return self._defaults['GetRelayName']['return'] - # relay_name_buffer - if self._defaults['GetRelayName']['relayNameBuffer'] is None: - raise MockFunctionCallError("niSwitch_GetRelayName", param='relayNameBuffer') - if relay_name_buffer_size.value == 0: - return len(self._defaults['GetRelayName']['relayNameBuffer']) - relay_name_buffer.value = self._defaults['GetRelayName']['relayNameBuffer'].encode('ascii') - return self._defaults['GetRelayName']['return'] - - def niSwitch_GetRelayPosition(self, vi, relay_name, relay_position): # noqa: N802 - if self._defaults['GetRelayPosition']['return'] != 0: - return self._defaults['GetRelayPosition']['return'] - # relay_position - if self._defaults['GetRelayPosition']['relayPosition'] is None: - raise MockFunctionCallError("niSwitch_GetRelayPosition", param='relayPosition') - if relay_position is not None: - relay_position.contents.value = self._defaults['GetRelayPosition']['relayPosition'] - return self._defaults['GetRelayPosition']['return'] - - def niSwitch_InitWithTopology(self, resource_name, topology, simulate, reset_device, vi): # noqa: N802 - if self._defaults['InitWithTopology']['return'] != 0: - return self._defaults['InitWithTopology']['return'] - # vi - if self._defaults['InitWithTopology']['vi'] is None: - raise MockFunctionCallError("niSwitch_InitWithTopology", param='vi') - if vi is not None: - vi.contents.value = self._defaults['InitWithTopology']['vi'] - return self._defaults['InitWithTopology']['return'] - - def niSwitch_InitiateScan(self, vi): # noqa: N802 - if self._defaults['InitiateScan']['return'] != 0: - return self._defaults['InitiateScan']['return'] - return self._defaults['InitiateScan']['return'] - - def niSwitch_LockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['LockSession']['return'] != 0: - return self._defaults['LockSession']['return'] - # caller_has_lock - if self._defaults['LockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niSwitch_LockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] - return self._defaults['LockSession']['return'] - - def niSwitch_RelayControl(self, vi, relay_name, relay_action): # noqa: N802 - if self._defaults['RelayControl']['return'] != 0: - return self._defaults['RelayControl']['return'] - return self._defaults['RelayControl']['return'] - - def niSwitch_ResetWithDefaults(self, vi): # noqa: N802 - if self._defaults['ResetWithDefaults']['return'] != 0: - return self._defaults['ResetWithDefaults']['return'] - return self._defaults['ResetWithDefaults']['return'] - - def niSwitch_RouteScanAdvancedOutput(self, vi, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 - if self._defaults['RouteScanAdvancedOutput']['return'] != 0: - return self._defaults['RouteScanAdvancedOutput']['return'] - return self._defaults['RouteScanAdvancedOutput']['return'] - - def niSwitch_RouteTriggerInput(self, vi, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 - if self._defaults['RouteTriggerInput']['return'] != 0: - return self._defaults['RouteTriggerInput']['return'] - return self._defaults['RouteTriggerInput']['return'] - - def niSwitch_SendSoftwareTrigger(self, vi): # noqa: N802 - if self._defaults['SendSoftwareTrigger']['return'] != 0: - return self._defaults['SendSoftwareTrigger']['return'] - return self._defaults['SendSoftwareTrigger']['return'] - - def niSwitch_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViBoolean']['return'] != 0: - return self._defaults['SetAttributeViBoolean']['return'] - return self._defaults['SetAttributeViBoolean']['return'] - - def niSwitch_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViInt32']['return'] != 0: - return self._defaults['SetAttributeViInt32']['return'] - return self._defaults['SetAttributeViInt32']['return'] - - def niSwitch_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niSwitch_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niSwitch_SetPath(self, vi, path_list): # noqa: N802 - if self._defaults['SetPath']['return'] != 0: - return self._defaults['SetPath']['return'] - return self._defaults['SetPath']['return'] - - def niSwitch_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 - if self._defaults['SetRuntimeEnvironment']['return'] != 0: - return self._defaults['SetRuntimeEnvironment']['return'] - return self._defaults['SetRuntimeEnvironment']['return'] - - def niSwitch_UnlockSession(self, vi, caller_has_lock): # noqa: N802 - if self._defaults['UnlockSession']['return'] != 0: - return self._defaults['UnlockSession']['return'] - # caller_has_lock - if self._defaults['UnlockSession']['callerHasLock'] is None: - raise MockFunctionCallError("niSwitch_UnlockSession", param='callerHasLock') - if caller_has_lock is not None: - caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] - return self._defaults['UnlockSession']['return'] - - def niSwitch_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 - if self._defaults['WaitForDebounce']['return'] != 0: - return self._defaults['WaitForDebounce']['return'] - return self._defaults['WaitForDebounce']['return'] - - def niSwitch_WaitForScanComplete(self, vi, maximum_time_ms): # noqa: N802 - if self._defaults['WaitForScanComplete']['return'] != 0: - return self._defaults['WaitForScanComplete']['return'] - return self._defaults['WaitForScanComplete']['return'] - - def niSwitch_close(self, vi): # noqa: N802 - if self._defaults['close']['return'] != 0: - return self._defaults['close']['return'] - return self._defaults['close']['return'] - - def niSwitch_error_message(self, vi, error_code, error_message): # noqa: N802 - if self._defaults['error_message']['return'] != 0: - return self._defaults['error_message']['return'] - # error_message - if self._defaults['error_message']['errorMessage'] is None: - raise MockFunctionCallError("niSwitch_error_message", param='errorMessage') - test_value = self._defaults['error_message']['errorMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(error_message) >= len(test_value) - for i in range(len(test_value)): - error_message[i] = test_value[i] - return self._defaults['error_message']['return'] - - def niSwitch_reset(self, vi): # noqa: N802 - if self._defaults['reset']['return'] != 0: - return self._defaults['reset']['return'] - return self._defaults['reset']['return'] - - def niSwitch_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 - if self._defaults['self_test']['return'] != 0: - return self._defaults['self_test']['return'] - # self_test_result - if self._defaults['self_test']['selfTestResult'] is None: - raise MockFunctionCallError("niSwitch_self_test", param='selfTestResult') - if self_test_result is not None: - self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] - # self_test_message - if self._defaults['self_test']['selfTestMessage'] is None: - raise MockFunctionCallError("niSwitch_self_test", param='selfTestMessage') - test_value = self._defaults['self_test']['selfTestMessage'] - if type(test_value) is str: - test_value = test_value.encode('ascii') - assert len(self_test_message) >= len(test_value) - for i in range(len(test_value)): - self_test_message[i] = test_value[i] - return self._defaults['self_test']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niSwitch_AbortScan.side_effect = MockFunctionCallError("niSwitch_AbortScan") - mock_library.niSwitch_AbortScan.return_value = 0 - mock_library.niSwitch_CanConnect.side_effect = MockFunctionCallError("niSwitch_CanConnect") - mock_library.niSwitch_CanConnect.return_value = 0 - mock_library.niSwitch_Commit.side_effect = MockFunctionCallError("niSwitch_Commit") - mock_library.niSwitch_Commit.return_value = 0 - mock_library.niSwitch_Connect.side_effect = MockFunctionCallError("niSwitch_Connect") - mock_library.niSwitch_Connect.return_value = 0 - mock_library.niSwitch_ConnectMultiple.side_effect = MockFunctionCallError("niSwitch_ConnectMultiple") - mock_library.niSwitch_ConnectMultiple.return_value = 0 - mock_library.niSwitch_Disable.side_effect = MockFunctionCallError("niSwitch_Disable") - mock_library.niSwitch_Disable.return_value = 0 - mock_library.niSwitch_Disconnect.side_effect = MockFunctionCallError("niSwitch_Disconnect") - mock_library.niSwitch_Disconnect.return_value = 0 - mock_library.niSwitch_DisconnectAll.side_effect = MockFunctionCallError("niSwitch_DisconnectAll") - mock_library.niSwitch_DisconnectAll.return_value = 0 - mock_library.niSwitch_DisconnectMultiple.side_effect = MockFunctionCallError("niSwitch_DisconnectMultiple") - mock_library.niSwitch_DisconnectMultiple.return_value = 0 - mock_library.niSwitch_GetAttributeViBoolean.side_effect = MockFunctionCallError("niSwitch_GetAttributeViBoolean") - mock_library.niSwitch_GetAttributeViBoolean.return_value = 0 - mock_library.niSwitch_GetAttributeViInt32.side_effect = MockFunctionCallError("niSwitch_GetAttributeViInt32") - mock_library.niSwitch_GetAttributeViInt32.return_value = 0 - mock_library.niSwitch_GetAttributeViReal64.side_effect = MockFunctionCallError("niSwitch_GetAttributeViReal64") - mock_library.niSwitch_GetAttributeViReal64.return_value = 0 - mock_library.niSwitch_GetAttributeViString.side_effect = MockFunctionCallError("niSwitch_GetAttributeViString") - mock_library.niSwitch_GetAttributeViString.return_value = 0 - mock_library.niSwitch_GetChannelName.side_effect = MockFunctionCallError("niSwitch_GetChannelName") - mock_library.niSwitch_GetChannelName.return_value = 0 - mock_library.niSwitch_GetError.side_effect = MockFunctionCallError("niSwitch_GetError") - mock_library.niSwitch_GetError.return_value = 0 - mock_library.niSwitch_GetPath.side_effect = MockFunctionCallError("niSwitch_GetPath") - mock_library.niSwitch_GetPath.return_value = 0 - mock_library.niSwitch_GetRelayCount.side_effect = MockFunctionCallError("niSwitch_GetRelayCount") - mock_library.niSwitch_GetRelayCount.return_value = 0 - mock_library.niSwitch_GetRelayName.side_effect = MockFunctionCallError("niSwitch_GetRelayName") - mock_library.niSwitch_GetRelayName.return_value = 0 - mock_library.niSwitch_GetRelayPosition.side_effect = MockFunctionCallError("niSwitch_GetRelayPosition") - mock_library.niSwitch_GetRelayPosition.return_value = 0 - mock_library.niSwitch_InitWithTopology.side_effect = MockFunctionCallError("niSwitch_InitWithTopology") - mock_library.niSwitch_InitWithTopology.return_value = 0 - mock_library.niSwitch_InitiateScan.side_effect = MockFunctionCallError("niSwitch_InitiateScan") - mock_library.niSwitch_InitiateScan.return_value = 0 - mock_library.niSwitch_LockSession.side_effect = MockFunctionCallError("niSwitch_LockSession") - mock_library.niSwitch_LockSession.return_value = 0 - mock_library.niSwitch_RelayControl.side_effect = MockFunctionCallError("niSwitch_RelayControl") - mock_library.niSwitch_RelayControl.return_value = 0 - mock_library.niSwitch_ResetWithDefaults.side_effect = MockFunctionCallError("niSwitch_ResetWithDefaults") - mock_library.niSwitch_ResetWithDefaults.return_value = 0 - mock_library.niSwitch_RouteScanAdvancedOutput.side_effect = MockFunctionCallError("niSwitch_RouteScanAdvancedOutput") - mock_library.niSwitch_RouteScanAdvancedOutput.return_value = 0 - mock_library.niSwitch_RouteTriggerInput.side_effect = MockFunctionCallError("niSwitch_RouteTriggerInput") - mock_library.niSwitch_RouteTriggerInput.return_value = 0 - mock_library.niSwitch_SendSoftwareTrigger.side_effect = MockFunctionCallError("niSwitch_SendSoftwareTrigger") - mock_library.niSwitch_SendSoftwareTrigger.return_value = 0 - mock_library.niSwitch_SetAttributeViBoolean.side_effect = MockFunctionCallError("niSwitch_SetAttributeViBoolean") - mock_library.niSwitch_SetAttributeViBoolean.return_value = 0 - mock_library.niSwitch_SetAttributeViInt32.side_effect = MockFunctionCallError("niSwitch_SetAttributeViInt32") - mock_library.niSwitch_SetAttributeViInt32.return_value = 0 - mock_library.niSwitch_SetAttributeViReal64.side_effect = MockFunctionCallError("niSwitch_SetAttributeViReal64") - mock_library.niSwitch_SetAttributeViReal64.return_value = 0 - mock_library.niSwitch_SetAttributeViString.side_effect = MockFunctionCallError("niSwitch_SetAttributeViString") - mock_library.niSwitch_SetAttributeViString.return_value = 0 - mock_library.niSwitch_SetPath.side_effect = MockFunctionCallError("niSwitch_SetPath") - mock_library.niSwitch_SetPath.return_value = 0 - mock_library.niSwitch_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niSwitch_SetRuntimeEnvironment") - mock_library.niSwitch_SetRuntimeEnvironment.return_value = 0 - mock_library.niSwitch_UnlockSession.side_effect = MockFunctionCallError("niSwitch_UnlockSession") - mock_library.niSwitch_UnlockSession.return_value = 0 - mock_library.niSwitch_WaitForDebounce.side_effect = MockFunctionCallError("niSwitch_WaitForDebounce") - mock_library.niSwitch_WaitForDebounce.return_value = 0 - mock_library.niSwitch_WaitForScanComplete.side_effect = MockFunctionCallError("niSwitch_WaitForScanComplete") - mock_library.niSwitch_WaitForScanComplete.return_value = 0 - mock_library.niSwitch_close.side_effect = MockFunctionCallError("niSwitch_close") - mock_library.niSwitch_close.return_value = 0 - mock_library.niSwitch_error_message.side_effect = MockFunctionCallError("niSwitch_error_message") - mock_library.niSwitch_error_message.return_value = 0 - mock_library.niSwitch_reset.side_effect = MockFunctionCallError("niSwitch_reset") - mock_library.niSwitch_reset.return_value = 0 - mock_library.niSwitch_self_test.side_effect = MockFunctionCallError("niSwitch_self_test") - mock_library.niSwitch_self_test.return_value = 0 diff --git a/generated/niswitch/setup.py b/generated/niswitch/setup.py deleted file mode 100644 index 8a81e95772..0000000000 --- a/generated/niswitch/setup.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'niswitch' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-SWITCH Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['niswitch'], - license='MIT', - include_package_data=True, - packages=['niswitch'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - ], - extras_require={ - 'grpc': [ - 'grpcio>=1.59.0,<2.0', - 'protobuf>=4.21.6', - 'ni.grpcdevice.v1.proto>=1.0.0', - 'nitlsconfig[grpc]>=1.0.0a2', - ], - }, - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/niswitch/tox-system_tests.ini b/generated/niswitch/tox-system_tests.ini deleted file mode 100644 index 5c90eabb5e..0000000000 --- a/generated/niswitch/tox-system_tests.ini +++ /dev/null @@ -1,65 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/niswitch) -[tox] -envlist = py{310,311,312,313,314}-niswitch-system_tests, py314-niswitch-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - niswitch-system_tests: Run niswitch system tests (requires NI-SWITCH runtime to be installed) - niswitch-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - niswitch-system_tests: . - niswitch-coverage: . - -commands = - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - niswitch-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - niswitch-system_tests: python -c "import niswitch; niswitch.print_diagnostic_information()" - niswitch-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niswitch --parallel-mode -m pytest ../../src/niswitch/examples --junitxml=../junit/junit-niswitch-{envname}-examples-{env:BITNESS:64}.xml {posargs} - niswitch-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niswitch --parallel-mode -m pytest ../../src/niswitch/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-niswitch-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - niswitch-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - niswitch-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - niswitch-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - niswitch-system_tests: pytest < 9.2.0 - niswitch-system_tests: coverage - niswitch-system_tests: numpy - niswitch-system_tests: hightime - niswitch-system_tests: fasteners - niswitch-system_tests: pytest-json - niswitch-system_tests: .[grpc] - - niswitch-coverage: coverage - -depends = - niswitch-coverage: py{310,311,312,313,314}-niswitch-system_tests - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/generated/nitclk/README.rst b/generated/nitclk/README.rst deleted file mode 100644 index ac26ea4ec6..0000000000 --- a/generated/nitclk/README.rst +++ /dev/null @@ -1,168 +0,0 @@ -Overall Status --------------- - -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ -| GitHub status | |OpenIssues| |OpenPullRequests| | -+----------------------+------------------------------------------------------------------------------------------------------------------------------------+ - -=========== ============================================================================================================================ -Info NI Modular Instrument driver APIs for Python. -Author NI -=========== ============================================================================================================================ - -.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master - :alt: Build Status - master branch - :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml - -.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg - :alt: MIT License - :target: https://opensource.org/licenses/MIT - -.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg - :alt: Test Coverage - master branch - :target: https://codecov.io/github/ni/nimi-python - -.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg - :alt: Open Issues + Pull Requests - :target: https://github.com/ni/nimi-python/issues - -.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg - :alt: Open Pull Requests - :target: https://github.com/ni/nimi-python/pulls - - -.. _about-section: - -About -===== - -The **nitclk** module provides a Python API for NI-TClk. The code is maintained in the Open Source repository for `nimi-python `_. - -Support Policy --------------- -**nitclk** supports all the Operating Systems supported by NI-TClk. - -It follows `Python Software Foundation `_ support policy for different versions of CPython. - -NI created and supports **nitclk**. - - -NI-TClk Python API Status -------------------------- - -+-------------------------------+-----------------------+ -| NI-TClk (nitclk) | | -+===============================+=======================+ -| Driver Version Tested Against | 2026 Q4 | -+-------------------------------+-----------------------+ -| PyPI Version | |nitclkLatestVersion| | -+-------------------------------+-----------------------+ -| Supported Python Version | |nitclkPythonVersion| | -+-------------------------------+-----------------------+ -| Documentation | |nitclkDocs| | -+-------------------------------+-----------------------+ -| Open Issues | |nitclkOpenIssues| | -+-------------------------------+-----------------------+ -| Open Pull Requests | |nitclkOpenPRs| | -+-------------------------------+-----------------------+ - - -.. |nitclkLatestVersion| image:: http://img.shields.io/pypi/v/nitclk.svg - :alt: Latest NI-TClk Version - :target: http://pypi.python.org/pypi/nitclk - - -.. |nitclkPythonVersion| image:: http://img.shields.io/pypi/pyversions/nitclk.svg - :alt: NI-TClk supported Python versions - :target: http://pypi.python.org/pypi/nitclk - - -.. |nitclkDocs| image:: https://readthedocs.org/projects/nitclk/badge/?version=latest - :alt: NI-TClk Python API Documentation Status - :target: https://nitclk.readthedocs.io/en/latest - - -.. |nitclkOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nitclk.svg - :alt: Open Issues + Pull Requests for NI-TClk - :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anitclk - - -.. |nitclkOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nitclk.svg - :alt: Pull Requests for NI-TClk - :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anitclk - - - -.. _nitclk_installation-section: - -Installation ------------- - -As a prerequisite to using the **nitclk** module, you must install the NI-TClk runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. - -The nimi-python modules (i.e. for **NI-TClk**) can be installed with `pip `_:: - - $ python -m pip install nitclk - - -Contributing -============ - -We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. - -Usage ------- - -The following is a basic example of using the **nitclk** module - -.. code-block:: python - - import nitclk - -`Other usage examples can be found on GitHub. `_ - -.. _support-section: - -Support / Feedback -================== - -For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. -For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. - -.. _bugs-section: - -Bugs / Feature Requests -======================= - -To report a bug or submit a feature request specific to Python API, please use the -`GitHub issues page `_. - -Fill in the issue template as completely as possible and we will respond as soon -as we can. - - -.. _documentation-section: - -Documentation -============= - -Documentation is available `here `_. - - -.. _license-section: - -License -======= - -**nimi-python** is licensed under an MIT-style license (`see -LICENSE `_). -Other incorporated projects may be licensed under different licenses. All -licenses allow for non-commercial and commercial use. - - -**gRPC Features** - -For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is -subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nitclk/nitclk/VERSION b/generated/nitclk/nitclk/VERSION deleted file mode 100644 index d3f543b938..0000000000 --- a/generated/nitclk/nitclk/VERSION +++ /dev/null @@ -1,2 +0,0 @@ -1.5.1.dev0 - diff --git a/generated/nitclk/nitclk/__init__.py b/generated/nitclk/nitclk/__init__.py deleted file mode 100644 index 60e817d304..0000000000 --- a/generated/nitclk/nitclk/__init__.py +++ /dev/null @@ -1,111 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -__version__ = '1.5.1.dev0' - -from nitclk.errors import DriverWarning # noqa: F401 -from nitclk.errors import Error # noqa: F401 -from nitclk.session import SessionReference # noqa: F401 - -# Function imports -from nitclk.session import configure_for_homogeneous_triggers # noqa: F401 -from nitclk.session import finish_sync_pulse_sender_synchronize # noqa: F401 -from nitclk.session import initiate # noqa: F401 -from nitclk.session import is_done # noqa: F401 -from nitclk.session import setup_for_sync_pulse_sender_synchronize # noqa: F401 -from nitclk.session import synchronize # noqa: F401 -from nitclk.session import synchronize_to_sync_pulse_sender # noqa: F401 -from nitclk.session import wait_until_done # noqa: F401 - - -def get_diagnostic_information(): - '''Get diagnostic information about the system state that is suitable for printing or logging - - returns: dict - - note: Python bitness may be incorrect when running in a virtual environment - ''' - import importlib.metadata - import os - import platform - import struct - import sys - - def is_python_64bit(): - return (struct.calcsize("P") == 8) - - def is_os_64bit(): - return platform.machine().endswith('64') - - def is_venv(): - return 'VIRTUAL_ENV' in os.environ - - info = {} - info['os'] = {} - info['python'] = {} - info['driver'] = {} - info['module'] = {} - if platform.system() == 'Windows': - try: - import winreg as winreg - except ImportError: - import _winreg as winreg - - os_name = 'Windows' - try: - driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-TClk\CurrentVersion") - driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] - except WindowsError: - driver_version = 'Unknown' - elif platform.system() == 'Linux': - os_name = 'Linux' - driver_version = 'Unknown' - else: - raise SystemError('Unsupported platform: {}'.format(platform.system())) - - installed_packages_names = [ - name - for name_list in importlib.metadata.packages_distributions().values() - for name in name_list - ] - installed_packages_names = set(installed_packages_names) - installed_packages_list = [ - {'name': name, 'version': importlib.metadata.distribution(name).version} - for name in sorted(installed_packages_names) - ] - - info['os']['name'] = os_name - info['os']['version'] = platform.version() - info['os']['bits'] = '64' if is_os_64bit() else '32' - info['driver']['name'] = "NI-TClk" - info['driver']['version'] = driver_version - info['module']['name'] = 'nitclk' - info['module']['version'] = "1.5.1.dev0" - info['python']['version'] = sys.version - info['python']['bits'] = '64' if is_python_64bit() else '32' - info['python']['is_venv'] = is_venv() - info['python']['packages'] = installed_packages_list - - return info - - -def print_diagnostic_information(): - '''Print diagnostic information in a format suitable for issue report - - note: Python bitness may be incorrect when running in a virtual environment - ''' - info = get_diagnostic_information() - - row_format = ' {:<10} {}' - for type in ['OS', 'Driver', 'Module', 'Python']: - typename = type.lower() - print(type + ':') - for item in info[typename]: - if item != 'packages': - print(row_format.format(item.title() + ':', info[typename][item])) - print(' Installed Packages:') - for p in info['python']['packages']: - print((' ' * 8) + p['name'] + '==' + p['version']) - - return info diff --git a/generated/nitclk/nitclk/_attributes.py b/generated/nitclk/nitclk/_attributes.py deleted file mode 100644 index 6086fd9e4d..0000000000 --- a/generated/nitclk/nitclk/_attributes.py +++ /dev/null @@ -1,167 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nitclk._converters as _converters -import nitclk.errors as errors - -import hightime - - -class Attribute(object): - '''Base class for all typed attributes.''' - - def __init__(self, attribute_id): - self._attribute_id = attribute_id - - -class AttributeViInt32(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int32(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, value) - - -class AttributeViInt32TimeDeltaMilliseconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) - - -class AttributeViInt32TimeDeltaMonths(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) - - -class AttributeViInt64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_int64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_int64(self._attribute_id, value) - - -class AttributeViReal64(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_real64(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, value) - - -class AttributeViReal64TimeDeltaSeconds(Attribute): - - def __get__(self, session, session_type): - return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) - - -class AttributeViString(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, value) - - -class AttributeViStringRepeatedCapability(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_string(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) - - -class AttributeViStringCommaSeparated(Attribute): - - def __get__(self, session, session_type): - return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) - - -class AttributeViBoolean(Attribute): - - def __get__(self, session, session_type): - return session._get_attribute_vi_boolean(self._attribute_id) - - def __set__(self, session, value): - session._set_attribute_vi_boolean(self._attribute_id, value) - - -class AttributeEnum(Attribute): - - def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): - super(AttributeEnum, self).__init__(attribute_id) - self._underlying_attribute = underlying_attribute_meta_class(attribute_id) - self._attribute_type = enum_meta_class - - def __get__(self, session, session_type): - return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) - - def __set__(self, session, value): - if type(value) is not self._attribute_type: - raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) - return self._underlying_attribute.__set__(session, value.value) - - -class AttributeEnumWithConverter(Attribute): - '''Class for attributes that use enums internally but are exposed in the nitclk Python module as something else, thus need conversion.''' - - def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): - '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. - - Args: - underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying - enum - - getter_converter (function): The function that converts the enum value to its converted - value - - setter_converter (function): The function that converts the converted value back to the - enum value - ''' - super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) - self._underlying_attribute_enum = underlying_attribute_enum - self._getter_converter = getter_converter - self._setter_converter = setter_converter - - def __get__(self, session, session_type): - try: - return self._getter_converter( - self._underlying_attribute_enum.__get__(session, session_type) - ) - except (KeyError, ValueError): - raise errors.DriverTooNewError() - - def __set__(self, session, value): - try: - return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) - except KeyError: - raise ValueError(f'Invalid value: {value}') - - -# nitclk specific attribute type -class AttributeSessionReference(Attribute): - - def __get__(self, session, session_type): - # Import here to avoid a circular dependency when initial import happens - from nitclk.session import SessionReference - return SessionReference(session._get_attribute_vi_session(self._attribute_id)) - - def __set__(self, session, value): - session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nitclk/nitclk/_converters.py b/generated/nitclk/nitclk/_converters.py deleted file mode 100644 index 8c1395257e..0000000000 --- a/generated/nitclk/nitclk/_converters.py +++ /dev/null @@ -1,391 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import nitclk._visatype as _visatype -import nitclk.errors as errors - -import array -import collections -import hightime -import numbers - -from functools import singledispatch - - -@singledispatch -def _convert_repeated_capabilities(arg, prefix): # noqa: F811 - '''Base version that should not be called - - Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form - - Supported types: - - str - List (comma delimited) - - str - Range (using '-' or ':') - - str - single item - - int - - tuple - - range - - slice - - Each instance should return a list of strings, without prefix - - '0' --> ['0'] - - 0 --> ['0'] - - '0, 1' --> ['0', '1'] - - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] - - '0-1' --> ['0', '1'] - - '0:1' --> ['0', '1'] - - '0-1,4' --> ['0', '1', '4'] - - range(0, 2) --> ['0', '1'] - - slice(0, 2) --> ['0', '1'] - - (0, 1, 4) --> ['0', '1', '4'] - - ('0-1', 4) --> ['0', '1', '4'] - - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> - ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] - ''' - raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) - - -@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 -def _(repeated_capability, prefix): - '''Integer version''' - return [str(repeated_capability)] - - -# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. -@_convert_repeated_capabilities.register(str) # noqa: F811 -def _(repeated_capability, prefix): - '''String version (this is the most complex) - - We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item - ''' - # First we deal with a list - rep_cap_list = repeated_capability.split(',') - if len(rep_cap_list) > 1: - # We have a list so call ourselves again to let the iterable instance handle it - return _convert_repeated_capabilities(rep_cap_list, prefix) - - # Now we deal with ranges - # We remove any prefix and change ':' to '-' - r = repeated_capability.strip().replace(prefix, '').replace(':', '-') - rc = r.split('-') - if len(rc) > 1: - if len(rc) > 2: - raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) - try: - start = int(rc[0]) - end = int(rc[1]) - except ValueError: - # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. - # Just return the repeated_capability string as-is in that case. - pass - else: - if end < start: - rng = range(start, end - 1, -1) - else: - rng = range(start, end + 1) - return _convert_repeated_capabilities(rng, prefix) - - # If we made it here, it must be a simple item so we remove any prefix and return - return [repeated_capability.replace(prefix, '').strip()] - - -# We cannot use collections.abc.Iterable here because strings are also iterable and then this -# instance is what gets called instead of the string one. -@_convert_repeated_capabilities.register(list) # noqa: F811 -@_convert_repeated_capabilities.register(range) # noqa: F811 -@_convert_repeated_capabilities.register(tuple) # noqa: F811 -def _(repeated_capability, prefix): - '''Iterable version - can handle lists, ranges, and tuples''' - rep_cap_list = [] - for r in repeated_capability: - rep_cap_list += _convert_repeated_capabilities(r, prefix) - return rep_cap_list - - -@_convert_repeated_capabilities.register(slice) # noqa: F811 -def _(repeated_capability, prefix): - '''slice version''' - def ifnone(a, b): - return b if a is None else a - # Turn the slice into a list and call ourselves again to let the iterable instance handle it - rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) - return _convert_repeated_capabilities(rng, prefix) - - -def convert_repeated_capabilities(repeated_capability, prefix=''): - '''Convert a repeated capabilities object to a comma delimited list - - Args: - repeated_capability (str, list, tuple, slice, None) - - prefix (str) - common prefix for all strings - - Returns: - rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added - ''' - # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions - if repeated_capability is None: - return [] - return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] - - -def convert_repeated_capabilities_without_prefix(repeated_capability): - '''Convert a repeated capabilities object, without any prefix, to a comma delimited list - - Args: - repeated_capability - Supported types: - - str - list (comma-delimited) - - str - range (using '-' or ':') - - str - single item - - int - - list of str - - tuple of str - - range of str - - slice of str - - None - - Returns: - rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded - ''' - return ','.join(convert_repeated_capabilities(repeated_capability, '')) - - -def expand_channel_string(channel_string, all_channels_in_session): - '''Expands a channel_string to a list of individual channel names. - - The individual channel names may or may not be fully qualified channel names as applicable for - the session. In other words, the individual channel names will be a subset of - all_channels_in_session. - - Examples: - - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] - - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] - - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] - - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) - --> ['Dev1/1'] - - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] - - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) - --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] - - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) - --> ['Dev1/1', 'Dev2/2'] - - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) - --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] - - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) - --> ['dev1/0', 'dev1/1', 'dev1/3'] - - Args: - channel_string (str) - refer to _convert_repeated_capabilities() for the - supported formats (this string is expected to be used as the index of session.channels) - - all_channels_in_session (list of str) - names of all the channels in the session as returned - by get_channel_names() - - Returns: - channel_names (list of str) - A list in which each element is the name of a single channel, - with the exact capitalization used by the driver runtime. - ''' - if channel_string.strip() == '': - return all_channels_in_session - - # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be - # fully-qualified, otherwise returned channel names should not be fully-qualified. - # Rule 2: If any channel in the input is not fully-qualified, but we need to return - # fully-qualified channels because of Rule 1, then use the channel qualifier obtained - # from all_channels_in_session. This can only happen on a single-instrument session, - # so all the channel qualifiers are the same and we pick the first one. - - instrument, separator, channel = all_channels_in_session[0].rpartition('/') - default_channel_qualifier = instrument + separator - - expanded_channel_list = [] - for token in channel_string.split(','): - instrument, separator, channel = token.rpartition('/') - instrument = instrument.strip() - channel_qualifier = instrument + separator if instrument else default_channel_qualifier - expanded_channel_list.extend( - convert_repeated_capabilities(channel.strip(), channel_qualifier) - ) - - # Convert the expanded channel names to their canonical form based on all_channels_in_session - lowercase_channel_name_to_session_channel_name_dict = { - channel_name.lower(): channel_name for channel_name in all_channels_in_session - } - return [ - lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] - for channel_name in expanded_channel_list - ] - - -def _convert_timedelta(value, library_type, scaling): - try: - # We first assume it is a timedelta object - scaled_value = value.total_seconds() * scaling - except AttributeError: - # If that doesn't work, assume it is a value in seconds - # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected - scaled_value = float(value) * scaling - - # ctype integer types don't convert to int from float so we need to - if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: - scaled_value = int(scaled_value) - - return scaled_value - - -def convert_timedelta_to_seconds_real64(value): - return _convert_timedelta(value, _visatype.ViReal64, 1) - - -def convert_timedelta_to_milliseconds_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1000) - - -def convert_timedeltas_to_seconds_real64(values): - return [convert_timedelta_to_seconds_real64(i) for i in values] - - -def convert_seconds_real64_to_timedelta(value): - return hightime.timedelta(seconds=value) - - -def convert_seconds_real64_to_timedeltas(values): - return [convert_seconds_real64_to_timedelta(i) for i in values] - - -def convert_month_to_timedelta(months): - return hightime.timedelta(days=(30.4167 * months)) - - -# Scaling factor to apply on seconds to get months -# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) -def convert_timedelta_to_months_int32(value): - return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) - - -# This converter is not called from the normal codegen path for function. Instead it is -# call from init and is a special case. -def convert_init_with_options_dictionary(values): - if type(values) is str: - init_with_options_string = values - else: - good_keys = { - 'rangecheck': 'RangeCheck', - 'queryinstrstatus': 'QueryInstrStatus', - 'cache': 'Cache', - 'simulate': 'Simulate', - 'recordcoercions': 'RecordCoercions', - 'interchangecheck': 'InterchangeCheck', - 'driversetup': 'DriverSetup', - 'range_check': 'RangeCheck', - 'query_instr_status': 'QueryInstrStatus', - 'record_coercions': 'RecordCoercions', - 'interchange_check': 'InterchangeCheck', - 'driver_setup': 'DriverSetup', - } - init_with_options = [] - for k in sorted(values.keys()): - value = None - if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': - value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') - elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': - if not isinstance(values[k], dict): - raise TypeError('DriverSetup must be a dictionary') - value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) - else: - value = k + ('=1' if values[k] is True else '=0') - - init_with_options.append(value) - - init_with_options_string = ','.join(init_with_options) - - return init_with_options_string - - -# convert value to bytes -@singledispatch -def _convert_to_bytes(value): # noqa: F811 - pass - - -@_convert_to_bytes.register(list) # noqa: F811 -@_convert_to_bytes.register(bytes) # noqa: F811 -@_convert_to_bytes.register(bytearray) # noqa: F811 -@_convert_to_bytes.register(array.array) # noqa: F811 -def _(value): - return value - - -@_convert_to_bytes.register(str) # noqa: F811 -def _(value): - return value.encode() - - -def convert_to_bytes(value): # noqa: F811 - return bytes(_convert_to_bytes(value)) - - -def convert_comma_separated_string_to_list(comma_separated_string): - return [x.strip() for x in comma_separated_string.split(',')] - - -def convert_list_to_comma_separated_string(list_of_strings): - '''Convert a list or tuple of strings into a comma-separated string. - - Args: - list_of_strings (list or tuple of str): List or tuple of strings. - - Returns: - str: Comma-separated string. - ''' - if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): - raise TypeError('Input must be a list or tuple of str') - return ','.join(list_of_strings) - - -def convert_chained_repeated_capability_to_parts(chained_repeated_capability): - '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. - - Converter assumes that the input contains the full cartesian product of its parts. - e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', - ['site0,site1', 'PinA,PinB'] is returned. - - Args: - chained_repeated_capability (str) - comma-delimited repeated capabilities string where each - item is a chain of slash-delimited repeated capabilities - - Returns: - rep_cap_list (list of str) - list of comma-delimited repeated capabilities string - ''' - chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) - repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] - for item in chained_repeated_capability_items: - repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] - return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] - - -# nitclk specific converters -def convert_to_nitclk_session_number(item): - '''Convert from supported objects to NI-TClk Session Num - - Supported objects are: - - class with .tclk object of type nitclk.SessionReference - - nitclk.SessionReference - ''' - try: - return item.tclk._get_tclk_session_reference() - except AttributeError: - pass - - try: - return item._get_tclk_session_reference() - except AttributeError: - pass - - raise TypeError('Unsupported type for nitclk session: {}'.format(type(item))) - - -def convert_to_nitclk_session_number_list(item_list): - '''Converts a list of items to nitclk session nums''' - return [convert_to_nitclk_session_number(i) for i in item_list] - - diff --git a/generated/nitclk/nitclk/_library.py b/generated/nitclk/nitclk/_library.py deleted file mode 100644 index f8e44eae65..0000000000 --- a/generated/nitclk/nitclk/_library.py +++ /dev/null @@ -1,163 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import ctypes -import nitclk.errors as errors -import threading - -from nitclk._visatype import * # noqa: F403,H303 - - -class Library(object): - '''Library - - Wrapper around driver library. - Class will setup the correct ctypes information for every function on first call. - ''' - - def __init__(self, ctypes_library): - self._func_lock = threading.Lock() - self._library = ctypes_library - # We cache the cfunc object from the ctypes.CDLL object - self.niTClk_ConfigureForHomogeneousTriggers_cfunc = None - self.niTClk_FinishSyncPulseSenderSynchronize_cfunc = None - self.niTClk_GetAttributeViReal64_cfunc = None - self.niTClk_GetAttributeViSession_cfunc = None - self.niTClk_GetAttributeViString_cfunc = None - self.niTClk_GetExtendedErrorInfo_cfunc = None - self.niTClk_Initiate_cfunc = None - self.niTClk_IsDone_cfunc = None - self.niTClk_SetAttributeViReal64_cfunc = None - self.niTClk_SetAttributeViSession_cfunc = None - self.niTClk_SetAttributeViString_cfunc = None - self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc = None - self.niTClk_Synchronize_cfunc = None - self.niTClk_SynchronizeToSyncPulseSender_cfunc = None - self.niTClk_WaitUntilDone_cfunc = None - - def _get_library_function(self, name): - try: - function = getattr(self._library, name) - except AttributeError as e: - raise errors.DriverTooOldError() from e - return function - - def niTClk_ConfigureForHomogeneousTriggers(self, session_count, sessions): # noqa: N802 - with self._func_lock: - if self.niTClk_ConfigureForHomogeneousTriggers_cfunc is None: - self.niTClk_ConfigureForHomogeneousTriggers_cfunc = self._get_library_function('niTClk_ConfigureForHomogeneousTriggers') - self.niTClk_ConfigureForHomogeneousTriggers_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession)] # noqa: F405 - self.niTClk_ConfigureForHomogeneousTriggers_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_ConfigureForHomogeneousTriggers_cfunc(session_count, sessions) - - def niTClk_FinishSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 - with self._func_lock: - if self.niTClk_FinishSyncPulseSenderSynchronize_cfunc is None: - self.niTClk_FinishSyncPulseSenderSynchronize_cfunc = self._get_library_function('niTClk_FinishSyncPulseSenderSynchronize') - self.niTClk_FinishSyncPulseSenderSynchronize_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 - self.niTClk_FinishSyncPulseSenderSynchronize_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_FinishSyncPulseSenderSynchronize_cfunc(session_count, sessions, min_time) - - def niTClk_GetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niTClk_GetAttributeViReal64_cfunc is None: - self.niTClk_GetAttributeViReal64_cfunc = self._get_library_function('niTClk_GetAttributeViReal64') - self.niTClk_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 - self.niTClk_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_GetAttributeViReal64_cfunc(session, channel_name, attribute_id, value) - - def niTClk_GetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niTClk_GetAttributeViSession_cfunc is None: - self.niTClk_GetAttributeViSession_cfunc = self._get_library_function('niTClk_GetAttributeViSession') - self.niTClk_GetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViSession)] # noqa: F405 - self.niTClk_GetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_GetAttributeViSession_cfunc(session, channel_name, attribute_id, value) - - def niTClk_GetAttributeViString(self, session, channel_name, attribute_id, buf_size, value): # noqa: N802 - with self._func_lock: - if self.niTClk_GetAttributeViString_cfunc is None: - self.niTClk_GetAttributeViString_cfunc = self._get_library_function('niTClk_GetAttributeViString') - self.niTClk_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 - self.niTClk_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_GetAttributeViString_cfunc(session, channel_name, attribute_id, buf_size, value) - - def niTClk_GetExtendedErrorInfo(self, error_string, error_string_size): # noqa: N802 - with self._func_lock: - if self.niTClk_GetExtendedErrorInfo_cfunc is None: - self.niTClk_GetExtendedErrorInfo_cfunc = self._get_library_function('niTClk_GetExtendedErrorInfo') - self.niTClk_GetExtendedErrorInfo_cfunc.argtypes = [ctypes.POINTER(ViChar), ViUInt32] # noqa: F405 - self.niTClk_GetExtendedErrorInfo_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_GetExtendedErrorInfo_cfunc(error_string, error_string_size) - - def niTClk_Initiate(self, session_count, sessions): # noqa: N802 - with self._func_lock: - if self.niTClk_Initiate_cfunc is None: - self.niTClk_Initiate_cfunc = self._get_library_function('niTClk_Initiate') - self.niTClk_Initiate_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession)] # noqa: F405 - self.niTClk_Initiate_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_Initiate_cfunc(session_count, sessions) - - def niTClk_IsDone(self, session_count, sessions, done): # noqa: N802 - with self._func_lock: - if self.niTClk_IsDone_cfunc is None: - self.niTClk_IsDone_cfunc = self._get_library_function('niTClk_IsDone') - self.niTClk_IsDone_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ctypes.POINTER(ViBoolean)] # noqa: F405 - self.niTClk_IsDone_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_IsDone_cfunc(session_count, sessions, done) - - def niTClk_SetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niTClk_SetAttributeViReal64_cfunc is None: - self.niTClk_SetAttributeViReal64_cfunc = self._get_library_function('niTClk_SetAttributeViReal64') - self.niTClk_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 - self.niTClk_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_SetAttributeViReal64_cfunc(session, channel_name, attribute_id, value) - - def niTClk_SetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niTClk_SetAttributeViSession_cfunc is None: - self.niTClk_SetAttributeViSession_cfunc = self._get_library_function('niTClk_SetAttributeViSession') - self.niTClk_SetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViSession] # noqa: F405 - self.niTClk_SetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_SetAttributeViSession_cfunc(session, channel_name, attribute_id, value) - - def niTClk_SetAttributeViString(self, session, channel_name, attribute_id, value): # noqa: N802 - with self._func_lock: - if self.niTClk_SetAttributeViString_cfunc is None: - self.niTClk_SetAttributeViString_cfunc = self._get_library_function('niTClk_SetAttributeViString') - self.niTClk_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 - self.niTClk_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_SetAttributeViString_cfunc(session, channel_name, attribute_id, value) - - def niTClk_SetupForSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 - with self._func_lock: - if self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc is None: - self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc = self._get_library_function('niTClk_SetupForSyncPulseSenderSynchronize') - self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 - self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc(session_count, sessions, min_time) - - def niTClk_Synchronize(self, session_count, sessions, min_tclk_period): # noqa: N802 - with self._func_lock: - if self.niTClk_Synchronize_cfunc is None: - self.niTClk_Synchronize_cfunc = self._get_library_function('niTClk_Synchronize') - self.niTClk_Synchronize_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 - self.niTClk_Synchronize_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_Synchronize_cfunc(session_count, sessions, min_tclk_period) - - def niTClk_SynchronizeToSyncPulseSender(self, session_count, sessions, min_time): # noqa: N802 - with self._func_lock: - if self.niTClk_SynchronizeToSyncPulseSender_cfunc is None: - self.niTClk_SynchronizeToSyncPulseSender_cfunc = self._get_library_function('niTClk_SynchronizeToSyncPulseSender') - self.niTClk_SynchronizeToSyncPulseSender_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 - self.niTClk_SynchronizeToSyncPulseSender_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_SynchronizeToSyncPulseSender_cfunc(session_count, sessions, min_time) - - def niTClk_WaitUntilDone(self, session_count, sessions, timeout): # noqa: N802 - with self._func_lock: - if self.niTClk_WaitUntilDone_cfunc is None: - self.niTClk_WaitUntilDone_cfunc = self._get_library_function('niTClk_WaitUntilDone') - self.niTClk_WaitUntilDone_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 - self.niTClk_WaitUntilDone_cfunc.restype = ViStatus # noqa: F405 - return self.niTClk_WaitUntilDone_cfunc(session_count, sessions, timeout) diff --git a/generated/nitclk/nitclk/_library_interpreter.py b/generated/nitclk/nitclk/_library_interpreter.py deleted file mode 100644 index 8a23273dd6..0000000000 --- a/generated/nitclk/nitclk/_library_interpreter.py +++ /dev/null @@ -1,210 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import array -import ctypes -import hightime # noqa: F401 -import nitclk._library_singleton as _library_singleton -import nitclk._visatype as _visatype -import nitclk.errors as errors - - -# Helper functions for creating ctypes needed for calling into the driver DLL -def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): - if isinstance(value, array.array): - assert library_type is not None, 'library_type is required for array.array' - addr, _ = value.buffer_info() - return ctypes.cast(addr, ctypes.POINTER(library_type)) - elif str(type(value)).find("'numpy.ndarray'") != -1: - import numpy - return numpy.ctypeslib.as_ctypes(value) - elif isinstance(value, bytes): - return ctypes.cast(value, ctypes.POINTER(library_type)) - elif isinstance(value, list): - assert library_type is not None, 'library_type is required for list' - return (library_type * len(value))(*value) - else: - if library_type is not None and size is not None: - return (library_type * size)() - else: - return None - - -def _convert_to_array(value, array_type): - if value is not None: - if isinstance(value, array.array): - value_array = value - else: - value_array = array.array(array_type, value) - else: - value_array = None - - return value_array - - -class LibraryInterpreter(object): - '''Library C<->Python interpreter. - - This class is responsible for interpreting the Library's C API. It is responsible for: - * Converting ctypes to native Python types. - * Dealing with string encoding. - * Allocating memory. - * Converting errors returned by Library into Python exceptions. - ''' - - def __init__(self, encoding): - self._encoding = encoding - self._library = _library_singleton.get() - # Initialize _session_number to 0 for now. - # Session will directly update it once the driver runtime init function has been called and - # we have a valid session handle. - self.set_session_handle() - - def set_session_handle(self, value=0): - self._session_number = value - - def get_session_handle(self): - return self._session_number - - def get_error_description(self, error_code): - '''get_error_description - - Returns the error description. - ''' - try: - error_string = self.get_extended_error_info() - return error_string - except errors.Error: - return "Failed to retrieve error description." - - def configure_for_homogeneous_triggers(self, sessions): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - error_code = self._library.niTClk_ConfigureForHomogeneousTriggers(session_count_ctype, sessions_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def finish_sync_pulse_sender_synchronize(self, sessions, min_time): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - min_time_ctype = _visatype.ViReal64(min_time) # case S150 - error_code = self._library.niTClk_FinishSyncPulseSenderSynchronize(session_count_ctype, sessions_ctype, min_time_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 - session_ctype = _visatype.ViSession(self._session_number) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViReal64() # case S220 - error_code = self._library.niTClk_GetAttributeViReal64(session_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return float(value_ctype.value) - - def get_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 - session_ctype = _visatype.ViSession(self._session_number) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViSession() # case S220 - error_code = self._library.niTClk_GetAttributeViSession(session_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return int(value_ctype.value) - - def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 - session_ctype = _visatype.ViSession(self._session_number) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - buf_size_ctype = _visatype.ViInt32() # case S170 - value_ctype = None # case C050 - error_code = self._library.niTClk_GetAttributeViString(session_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) - buf_size_ctype = _visatype.ViInt32(error_code) # case S180 - value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 - error_code = self._library.niTClk_GetAttributeViString(session_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return value_ctype.value.decode(self._encoding) - - def get_extended_error_info(self): # noqa: N802 - error_string_ctype = None # case C050 - error_string_size_ctype = _visatype.ViUInt32() # case S170 - error_code = self._library.niTClk_GetExtendedErrorInfo(error_string_ctype, error_string_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) - error_string_size_ctype = _visatype.ViUInt32(error_code) # case S180 - error_string_ctype = (_visatype.ViChar * error_string_size_ctype.value)() # case C060 - error_code = self._library.niTClk_GetExtendedErrorInfo(error_string_ctype, error_string_size_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) - return error_string_ctype.value.decode(self._encoding) - - def initiate(self, sessions): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - error_code = self._library.niTClk_Initiate(session_count_ctype, sessions_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def is_done(self, sessions): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - done_ctype = _visatype.ViBoolean() # case S220 - error_code = self._library.niTClk_IsDone(session_count_ctype, sessions_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype))) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return bool(done_ctype.value) - - def set_attribute_vi_real64(self, channel_name, attribute_id, value): # noqa: N802 - session_ctype = _visatype.ViSession(self._session_number) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViReal64(value) # case S150 - error_code = self._library.niTClk_SetAttributeViReal64(session_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_session(self, channel_name, attribute_id, value): # noqa: N802 - session_ctype = _visatype.ViSession(self._session_number) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = _visatype.ViSession(value) # case S150 - error_code = self._library.niTClk_SetAttributeViSession(session_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def set_attribute_vi_string(self, channel_name, attribute_id, value): # noqa: N802 - session_ctype = _visatype.ViSession(self._session_number) # case S110 - channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 - attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 - value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 - error_code = self._library.niTClk_SetAttributeViString(session_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def setup_for_sync_pulse_sender_synchronize(self, sessions, min_time): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - min_time_ctype = _visatype.ViReal64(min_time) # case S150 - error_code = self._library.niTClk_SetupForSyncPulseSenderSynchronize(session_count_ctype, sessions_ctype, min_time_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def synchronize(self, sessions, min_tclk_period): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - min_tclk_period_ctype = _visatype.ViReal64(min_tclk_period) # case S150 - error_code = self._library.niTClk_Synchronize(session_count_ctype, sessions_ctype, min_tclk_period_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def synchronize_to_sync_pulse_sender(self, sessions, min_time): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - min_time_ctype = _visatype.ViReal64(min_time) # case S150 - error_code = self._library.niTClk_SynchronizeToSyncPulseSender(session_count_ctype, sessions_ctype, min_time_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return - - def wait_until_done(self, sessions, timeout): # noqa: N802 - session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 - sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 - timeout_ctype = _visatype.ViReal64(timeout) # case S150 - error_code = self._library.niTClk_WaitUntilDone(session_count_ctype, sessions_ctype, timeout_ctype) - errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) - return diff --git a/generated/nitclk/nitclk/_library_singleton.py b/generated/nitclk/nitclk/_library_singleton.py deleted file mode 100644 index 38ca52d316..0000000000 --- a/generated/nitclk/nitclk/_library_singleton.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - -import platform - -import ctypes -import ctypes.util -import nitclk._library as _library -import nitclk.errors as errors -import threading - - -_instance = None -_instance_lock = threading.Lock() -_library_info = {'Linux': {'64bit': {'name': 'nitclk', 'type': 'cdll'}}, - 'Windows': {'32bit': {'name': 'niTClk.dll', 'type': 'windll'}, - '64bit': {'name': 'niTClk_64.dll', 'type': 'cdll'}}} - - -def _get_library_name(): - try: - lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL - if lib_name is None: - raise errors.DriverNotInstalledError() - return lib_name - except KeyError: - raise errors.UnsupportedConfigurationError - - -def _get_library_type(): - try: - return _library_info[platform.system()][platform.architecture()[0]]['type'] - except KeyError: - raise errors.UnsupportedConfigurationError - - -def get(): - '''get - - Returns the library.Library singleton for nitclk. - ''' - global _instance - - with _instance_lock: - if _instance is None: - try: - library_type = _get_library_type() - if library_type == 'windll': - ctypes_library = ctypes.WinDLL(_get_library_name()) - else: - assert library_type == 'cdll' - ctypes_library = ctypes.CDLL(_get_library_name()) - except OSError: - raise errors.DriverNotInstalledError() - _instance = _library.Library(ctypes_library) - return _instance - diff --git a/generated/nitclk/nitclk/_visatype.py b/generated/nitclk/nitclk/_visatype.py deleted file mode 100644 index f4da87aa79..0000000000 --- a/generated/nitclk/nitclk/_visatype.py +++ /dev/null @@ -1,29 +0,0 @@ -import ctypes - - -'''Definitions of the VISA types used by the C API of the driver runtime. -These are aliased directly to ctypes types so can be used directly to call into the library. -''' - - -ViChar = ctypes.c_char -ViInt8 = ctypes.c_int8 -ViUInt8 = ctypes.c_uint8 -ViInt16 = ctypes.c_int16 -ViUInt16 = ctypes.c_uint16 -ViInt32 = ctypes.c_int32 -ViUInt32 = ctypes.c_uint32 -ViInt64 = ctypes.c_int64 -ViUInt64 = ctypes.c_uint64 -ViString = ctypes.c_char_p -ViReal32 = ctypes.c_float -ViReal64 = ctypes.c_double - -# Types that are based on other visatypes -ViBoolean = ViUInt16 -ViStatus = ViInt32 -ViSession = ViUInt32 -ViAttr = ViUInt32 -ViConstString = ViString -ViRsrc = ViString - diff --git a/generated/nitclk/nitclk/errors.py b/generated/nitclk/nitclk/errors.py deleted file mode 100644 index f371d699fd..0000000000 --- a/generated/nitclk/nitclk/errors.py +++ /dev/null @@ -1,96 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated - - -import platform -import warnings - - -def _is_success(code): - return (code == 0) - - -def _is_error(code): - return (code < 0) - - -def _is_warning(code): - return (code > 0) - - -class Error(Exception): - '''Base error class for NI-TClk''' - - def __init__(self, message): - super(Error, self).__init__(message) - - -class DriverError(Error): - '''An error originating from the NI-TClk driver''' - - def __init__(self, code, description): - assert _is_error(code), "Should not raise Error if code is not fatal." - self.code = code - self.description = description - super(DriverError, self).__init__(str(self.code) + ": " + self.description) - - -class DriverWarning(Warning): - '''A warning originating from the NI-TClk driver''' - - def __init__(self, code, description): - assert _is_warning(code), "Should not create Warning if code is not positive." - super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) - - -class UnsupportedConfigurationError(Error): - '''An error due to using this module in an usupported platform.''' - - def __init__(self): - super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) - - -class DriverNotInstalledError(Error): - '''An error due to using this module without the driver runtime installed.''' - - def __init__(self): - super(DriverNotInstalledError, self).__init__('The NI-TClk runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') - - -class DriverTooOldError(Error): - '''An error due to using this module with an older version of the NI-TClk driver runtime.''' - - def __init__(self): - super(DriverTooOldError, self).__init__('A function was not found in the NI-TClk runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') - - -class DriverTooNewError(Error): - '''An error due to the NI-TClk driver runtime being too new for this module.''' - - def __init__(self): - super(DriverTooNewError, self).__init__('The NI-TClk runtime returned an unexpected value. This can occur if it is too new for the nitclk Python module. Upgrade the nitclk Python module.') - - -def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): - '''handle_error - - Helper function for handling errors returned by nitclk.Library. - It calls back into the LibraryInterpreter to get the corresponding error - description and raises if necessary. - ''' - - if _is_success(code) or (_is_warning(code) and ignore_warnings): - return - - if is_error_handling: - # The caller is in the midst of error handling and an error occurred. - # Don't try to get the description or we'll start recursing until the stack overflows. - description = '' - else: - description = library_interpreter.get_error_description(code) - - if _is_error(code): - raise DriverError(code, description) - - assert _is_warning(code) - warnings.warn(DriverWarning(code, description)) diff --git a/generated/nitclk/nitclk/session.py b/generated/nitclk/nitclk/session.py deleted file mode 100644 index ed859bdd1e..0000000000 --- a/generated/nitclk/nitclk/session.py +++ /dev/null @@ -1,876 +0,0 @@ -# This file was generated - -import hightime - -import nitclk._attributes as _attributes -import nitclk._converters as _converters -import nitclk._library_interpreter as _library_interpreter - -# Used for __repr__ and __str__ -import pprint -pp = pprint.PrettyPrinter(indent=4) - - -class SessionReference(object): - '''Properties container for NI-TClk attributes. - - Note: Constructing this class is an advanced use case and should not be needed in most circumstances. - ''' - - # This is needed during __init__. Without it, __setattr__ raises an exception - _is_frozen = False - - exported_sync_pulse_output_terminal = _attributes.AttributeViString(2) - '''Type: str - - Specifies the destination of the Sync Pulse. This property is most often used when synchronizing a multichassis system. - Values - Empty string. Empty string is a valid value, indicating that the signal is not exported. - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value is empty string - ''' - exported_tclk_output_terminal = _attributes.AttributeViString(9) - '''Type: str - - Specifies the destination of the device's TClk signal. - Values - Empty string. Empty string is a valid value, indicating that the signal is not exported. - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value is empty string - ''' - pause_trigger_master_session = _attributes.AttributeSessionReference(6) - '''Type: instrument-specific session or an instance of nitclk.SessionReference - - Specifies the pause trigger master session. - For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. - ''' - ref_trigger_master_session = _attributes.AttributeSessionReference(4) - '''Type: instrument-specific session or an instance of nitclk.SessionReference - - Specifies the reference trigger master session. - For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. - ''' - sample_clock_delay = _attributes.AttributeViReal64TimeDeltaSeconds(11) - '''Type: hightime.timedelta, datetime.timedelta, or float in seconds - - Specifies the sample clock delay. - Specifies the delay, in seconds, to apply to the session sample clock relative to the other synchronized sessions. During synchronization, NI-TClk aligns the sample clocks on the synchronized devices. If you want to delay the sample clocks, set this property before calling synchronize. - not supported for acquisition sessions. - Values - Between minus one and plus one period of the sample clock. - One sample clock period is equal to (1/sample clock rate). For example, for a session with sample rate of 100 MS/s, you can specify sample clock delays between -10.0 ns and +10.0 ns. - Default Value is 0 - - Note: Sample clock delay is supported for generation sessions only; it is - ''' - sequencer_flag_master_session = _attributes.AttributeSessionReference(16) - '''Type: instrument-specific session or an instance of nitclk.SessionReference - - Specifies the sequencer flag master session. - For external triggers, the session that originally receives the trigger. - For None (no trigger configured) or software triggers, the session that - originally generates the trigger. - ''' - start_trigger_master_session = _attributes.AttributeSessionReference(3) - '''Type: instrument-specific session or an instance of nitclk.SessionReference - - Specifies the start trigger master session. - For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. - ''' - sync_pulse_clock_source = _attributes.AttributeViString(10) - '''Type: str - - Specifies the Sync Pulse Clock source. This property is typically used to synchronize PCI devices when you want to control RTSI 7 yourself. Make sure that a 10 MHz clock is driven onto RTSI 7. - Values - PCI Devices - 'RTSI_7' and 'None' - PXI Devices - 'PXI_CLK10' and 'None' - Default Value - 'None' directs synchronize to create the necessary routes. For PCI, one of the synchronized devices drives a 10 MHz clock on RTSI 7 unless that line is already being driven. - ''' - sync_pulse_sender_sync_pulse_source = _attributes.AttributeViString(13) - '''Type: str - - Specifies the external sync pulse source for the Sync Pulse Sender. You can use this source to synchronize the Sync Pulse Sender with an external non-TClk source. - Values - Empty string. Empty string is a valid value, indicating that the signal is not exported. - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value is empty string - ''' - sync_pulse_source = _attributes.AttributeViString(1) - '''Type: str - - Specifies the Sync Pulse source. This property is most often used when synchronizing a multichassis system. - Values - Empty string - PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings - PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings - Examples of Device-Specific Settings - - NI PXI-5122 supports 'PFI0' and 'PFI1' - - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' - Default Value - Empty string. This default value directs synchronize to set this property when all the synchronized devices are in one PXI chassis. To synchronize a multichassis system, you must set this property before calling synchronize. - ''' - tclk_actual_period = _attributes.AttributeViReal64(8) - '''Type: float - - Indicates the computed TClk period that will be used during the acquisition. - ''' - - def __init__(self, session_number, encoding='windows-1251'): - self._interpreter = _library_interpreter.LibraryInterpreter(encoding) - self._interpreter.set_session_handle(session_number) - # We need a self._repeated_capability string for passing down to function calls on the LibraryInterpreter class. We just need to set it to empty string. - self._repeated_capability = '' - - # Store the parameter list for later printing in __repr__ - param_list = [] - param_list.append("session_number=" + pp.pformat(session_number)) - param_list.append("encoding=" + pp.pformat(encoding)) - self._param_list = ', '.join(param_list) - - self._is_frozen = True - - def __repr__(self): - return '{0}.{1}({2})'.format('nitclk', self.__class__.__name__, self._param_list) - - def __setattr__(self, key, value): - if self._is_frozen and key not in dir(self): - raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) - object.__setattr__(self, key, value) - - def _get_tclk_session_reference(self): - return self._interpreter.get_session_handle() - - def _get_attribute_vi_real64(self, attribute_id): - r'''_get_attribute_vi_real64 - - Gets the value of an NI-TClk ViReal64 property. - - Tip: - This method can be called on specific channels within your :py:class:`nitclk.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_real64` - - Args: - attribute_id (int): The ID of the property that you want to get Supported Property - sample_clock_delay - - - Returns: - value (float): The value that you are getting - - ''' - value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) - return value - - def _get_attribute_vi_session(self, attribute_id): - r'''_get_attribute_vi_session - - Gets the value of an NI-TClk ViSession property. - - Tip: - This method can be called on specific channels within your :py:class:`nitclk.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_session` - - To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_session` - - Args: - attribute_id (int): The ID of the property that you want to set Supported Properties - start_trigger_master_session - ref_trigger_master_session - pause_trigger_master_session - - - Returns: - value (int): The value that you are getting - - ''' - value = self._interpreter.get_attribute_vi_session(self._repeated_capability, attribute_id) - return value - - def _get_attribute_vi_string(self, attribute_id): - r'''_get_attribute_vi_string - - This method queries the value of an NI-TClk ViString property. You - must provide a ViChar array to serve as a buffer for the value. You pass - the number of bytes in the buffer as bufSize. If the current value of - the property, including the terminating NULL byte, is larger than the - size you indicate in bufSize, the method copies bufSize minus 1 bytes - into the buffer, places an ASCII NULL byte at the end of the buffer, and - returns the array size that you must pass to get the entire value. For - example, if the value is "123456" and bufSize is 4, the method places - "123" into the buffer and returns 7. If you want to call - _get_attribute_vi_string just to get the required array size, pass 0 - for bufSize and VI_NULL for the value. - - Tip: - This method can be called on specific channels within your :py:class:`nitclk.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. - - Example: :py:meth:`my_session._get_attribute_vi_string` - - Args: - attribute_id (int): The ID of the property that you want to get Supported Properties - sync_pulse_source - sync_pulse_clock_source - exported_sync_pulse_output_terminal - - - Returns: - value (str): The value that you are getting - - ''' - value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) - return value - - def _set_attribute_vi_real64(self, attribute_id, value): - r'''_set_attribute_vi_real64 - - Sets the value of an NI-TClk VIReal64 property. - _set_attribute_vi_real64 is a low-level method that you can use to - set the values NI-TClk properties. NI-TClk contains high-level methods - that set most of the properties. It is best to use the high-level - methods as much as possible. - - Tip: - This method can be called on specific channels within your :py:class:`nitclk.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` - - To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_real64` - - Args: - attribute_id (int): The ID of the property that you want to set Supported Property - sample_clock_delay - - value (float): The value for the property - - ''' - self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, value) - - def _set_attribute_vi_session(self, attribute_id, value): - r'''_set_attribute_vi_session - - Sets the value of an NI-TClk ViSession property. - _set_attribute_vi_session is a low-level method that you can use - to set the values NI-TClk properties. NI-TClk contains high-level - methods that set most of the properties. It is best to use the - high-level methods as much as possible. - - Tip: - This method can be called on specific channels within your :py:class:`nitclk.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_session` - - To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_session` - - Args: - attribute_id (int): The ID of the property that you want to set Supported Properties - start_trigger_master_session - ref_trigger_master_session - pause_trigger_master_session - - value (int): The value for the property - - ''' - self._interpreter.set_attribute_vi_session(self._repeated_capability, attribute_id, value) - - def _set_attribute_vi_string(self, attribute_id, value): - r'''_set_attribute_vi_string - - Sets the value of an NI-TClk VIString property. - _set_attribute_vi_string is a low-level method that you can use to - set the values of NI-TClk properties. NI-TClk contain high-level - methods that set most of the properties. It is best to use the - high-level methods as much as possible. - - Tip: - This method can be called on specific channels within your :py:class:`nitclk.Session` instance. - Use Python index notation on the repeated capabilities container channels to specify a subset, - and then call this method on the result. - - Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` - - To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. - - Example: :py:meth:`my_session._set_attribute_vi_string` - - Args: - attribute_id (int): Pass the ID of the property that you want to set Supported Properties - sync_pulse_source - sync_pulse_clock_source - exported_sync_pulse_output_terminal - - value (str): Pass the value for the property - - ''' - self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, value) - - -class _Session(object): - '''Private class - - This class allows reusing function templates that are used in all other drivers. If - we don't do this, we would need new template(s) that the only difference is in the - indentation. - ''' - - def __init__(self): - self._interpreter = _library_interpreter.LibraryInterpreter('windows-1251') - - # Instantiate any repeated capability objects - - # Store the parameter list for later printing in __repr__ - param_list = [] - self._param_list = ', '.join(param_list) - - self._is_frozen = True - - ''' These are code-generated ''' - - def configure_for_homogeneous_triggers(self, sessions): - r'''configure_for_homogeneous_triggers - - Configures the properties commonly required for the TClk synchronization - of device sessions with homogeneous triggers in a single PXI chassis or - a single PC. Use configure_for_homogeneous_triggers to configure - the properties for the reference clocks, start triggers, reference - triggers, script triggers, and pause triggers. If - configure_for_homogeneous_triggers cannot perform all the steps - appropriate for the given sessions, it returns an error. If an error is - returned, use the instrument driver methods and properties for signal - routing, along with the following NI-TClk properties: - start_trigger_master_session - ref_trigger_master_session - pause_trigger_master_session - configure_for_homogeneous_triggers affects the following clocks and - triggers: - Reference clocks - Start triggers - Reference triggers - - Script triggers - Pause triggers Reference Clocks - configure_for_homogeneous_triggers configures the reference clocks - if they are needed. Specifically, if the internal sample clocks or - internal sample clock timebases are used, and the reference clock source - is not configured--or is set to None (no trigger - configured)--configure_for_homogeneous_triggers configures the - following: PXI--The reference clock source on all devices is set to be - the 10 MHz PXI backplane clock (PXI_CLK10). PCI--One of the devices - exports its 10 MHz onboard reference clock to RTSI 7. The reference - clock source on all devices is set to be RTSI 7. Note: If the reference - clock source is set to a value other than None, - configure_for_homogeneous_triggers cannot configure the reference - clock source. Start Triggers If the start trigger is set to None (no - trigger configured) for all sessions, the sessions are configured to - share the start trigger. The start trigger is shared by: - Implicitly - exporting the start trigger from one session - Configuring the other - sessions for digital edge start triggers with sources corresponding to - the exported start trigger - Setting - start_trigger_master_session to the session that is - exporting the trigger for all sessions If the start triggers are None - for all except one session, configure_for_homogeneous_triggers - configures the sessions to share the start trigger from the one excepted - session. The start trigger is shared by: - Implicitly exporting start - trigger from the session with the start trigger that is not None - - Configuring the other sessions for digital-edge start triggers with - sources corresponding to the exported start trigger - Setting - start_trigger_master_session to the session that is - exporting the trigger for all sessions If start triggers are configured - for all sessions, configure_for_homogeneous_triggers does not - affect the start triggers. Start triggers are considered to be - configured for all sessions if either of the following conditions is - true: - No session has a start trigger that is None - One session has a - start trigger that is None, and all other sessions have start triggers - other than None. The one session with the None trigger must have - start_trigger_master_session set to itself, indicating - that the session itself is the start trigger master Reference Triggers - configure_for_homogeneous_triggers configures sessions that support - reference triggers to share the reference triggers if the reference - triggers are None (no trigger configured) for all except one session. - The reference triggers are shared by: - Implicitly exporting the - reference trigger from the session whose reference trigger is not None - - Configuring the other sessions that support the reference trigger for - digital-edge reference triggers with sources corresponding to the - exported reference trigger - Setting - ref_trigger_master_session to the session that is - exporting the trigger for all sessions that support reference trigger If - the reference triggers are configured for all sessions that support - reference triggers, configure_for_homogeneous_triggers does not - affect the reference triggers. Reference triggers are considered to be - configured for all sessions if either one or the other of the following - conditions is true: - No session has a reference trigger that is None - - One session has a reference trigger that is None, and all other sessions - have reference triggers other than None. The one session with the None - trigger must have ref_trigger_master_session set to - itself, indicating that the session itself is the reference trigger - master Reference Trigger Holdoffs Acquisition sessions may be configured - with the reference trigger. For acquisition sessions, when the reference - trigger is shared, configure_for_homogeneous_triggers configures - the holdoff properties (which are instrument driver specific) on the - reference trigger master session so that the session does not recognize - the reference trigger before the other sessions are ready. This - condition is only relevant when the sample clock rates, sample clock - timebase rates, sample counts, holdoffs, and/or any delays for the - acquisitions are different. When the sample clock rates, sample clock - timebase rates, and/or the sample counts are different in acquisition - sessions sharing the reference trigger, you should also set the holdoff - properties for the reference trigger master using the instrument driver. - Pause Triggers - configure_for_homogeneous_triggers configures generation sessions - that support pause triggers to share them, if the pause triggers are - None (no trigger configured) for all except one session. The pause - triggers are shared by: - Implicitly exporting the pause trigger from - the session whose script trigger is not None - Configuring the other - sessions that support the pause trigger for digital-edge pause triggers - with sources corresponding to the exported pause trigger - Setting - pause_trigger_master_session to the session that is - exporting the trigger for all sessions that support script triggers If - the pause triggers are configured for all generation sessions that - support pause triggers, configure_for_homogeneous_triggers does not - affect pause triggers. Pause triggers are considered to be configured - for all sessions if either one or the other of the following conditions - is true: - No session has a pause trigger that is None - One session has - a pause trigger that is None and all other sessions have pause triggers - other than None. The one session with the None trigger must have - pause_trigger_master_session set to itself, indicating - that the session itself is the pause trigger master Note: TClk - synchronization is not supported for pause triggers on acquisition - sessions. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - self._interpreter.configure_for_homogeneous_triggers(sessions) - - def finish_sync_pulse_sender_synchronize(self, sessions, min_time=hightime.timedelta(seconds=0.0)): - r'''finish_sync_pulse_sender_synchronize - - Finishes synchronizing the Sync Pulse Sender. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - min_time = _converters.convert_timedelta_to_seconds_real64(min_time) - self._interpreter.finish_sync_pulse_sender_synchronize(sessions, min_time) - - def initiate(self, sessions): - r'''initiate - - Initiates the acquisition or generation sessions specified, taking into - consideration any special requirements needed for synchronization. For - example, the session exporting the TClk-synchronized start trigger is - not initiated until after initiate initiates all the sessions - that import the TClk-synchronized start trigger. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - self._interpreter.initiate(sessions) - - def is_done(self, sessions): - r'''is_done - - Monitors the progress of the acquisitions and/or generations - corresponding to sessions. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - - Returns: - done (bool): Indicates that the operation is done. The operation is done when each - session has completed without any errors or when any one of the sessions - reports an error. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - done = self._interpreter.is_done(sessions) - return done - - def setup_for_sync_pulse_sender_synchronize(self, sessions, min_time=hightime.timedelta(seconds=0.0)): - r'''setup_for_sync_pulse_sender_synchronize - - Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - min_time = _converters.convert_timedelta_to_seconds_real64(min_time) - self._interpreter.setup_for_sync_pulse_sender_synchronize(sessions, min_time) - - def synchronize(self, sessions, min_tclk_period=hightime.timedelta(seconds=0.0)): - r'''synchronize - - Synchronizes the TClk signals on the given sessions. After - synchronize executes, TClk signals from all sessions are - synchronized. Note: Before using this NI-TClk method, verify that your - system is configured as specified in the PXI Trigger Lines and RTSI - Lines topic of the NI-TClk Synchronization Help. You can locate this - help file at Start>>Programs>>National Instruments>>NI-TClk. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_tclk_period (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - min_tclk_period = _converters.convert_timedelta_to_seconds_real64(min_tclk_period) - self._interpreter.synchronize(sessions, min_tclk_period) - - def synchronize_to_sync_pulse_sender(self, sessions, min_time=hightime.timedelta(seconds=0.0)): - r'''synchronize_to_sync_pulse_sender - - Synchronizes the other devices to the Sync Pulse Sender. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - min_time = _converters.convert_timedelta_to_seconds_real64(min_time) - self._interpreter.synchronize_to_sync_pulse_sender(sessions, min_time) - - def wait_until_done(self, sessions, timeout=hightime.timedelta(seconds=0.0)): - r'''wait_until_done - - Call this method to pause execution of your program until the - acquisitions and/or generations corresponding to sessions are done or - until the method returns a timeout error. wait_until_done is a - blocking method that periodically checks the operation status. It - returns control to the calling program if the operation completes - successfully or an error occurs (including a timeout error). This - method is most useful for finite data operations that you expect to - complete within a certain time. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The amount of time in seconds that wait_until_done waits for the - sessions to complete. If timeout is exceeded, wait_until_done - returns an error. - - ''' - sessions = _converters.convert_to_nitclk_session_number_list(sessions) - timeout = _converters.convert_timedelta_to_seconds_real64(timeout) - self._interpreter.wait_until_done(sessions, timeout) - - -def configure_for_homogeneous_triggers(sessions): - '''configure_for_homogeneous_triggers - - Configures the properties commonly required for the TClk synchronization - of device sessions with homogeneous triggers in a single PXI chassis or - a single PC. Use configure_for_homogeneous_triggers to configure - the properties for the reference clocks, start triggers, reference - triggers, script triggers, and pause triggers. If - configure_for_homogeneous_triggers cannot perform all the steps - appropriate for the given sessions, it returns an error. If an error is - returned, use the instrument driver methods and properties for signal - routing, along with the following NI-TClk properties: - start_trigger_master_session - ref_trigger_master_session - pause_trigger_master_session - configure_for_homogeneous_triggers affects the following clocks and - triggers: - Reference clocks - Start triggers - Reference triggers - - Script triggers - Pause triggers Reference Clocks - configure_for_homogeneous_triggers configures the reference clocks - if they are needed. Specifically, if the internal sample clocks or - internal sample clock timebases are used, and the reference clock source - is not configured--or is set to None (no trigger - configured)--configure_for_homogeneous_triggers configures the - following: PXI--The reference clock source on all devices is set to be - the 10 MHz PXI backplane clock (PXI_CLK10). PCI--One of the devices - exports its 10 MHz onboard reference clock to RTSI 7. The reference - clock source on all devices is set to be RTSI 7. Note: If the reference - clock source is set to a value other than None, - configure_for_homogeneous_triggers cannot configure the reference - clock source. Start Triggers If the start trigger is set to None (no - trigger configured) for all sessions, the sessions are configured to - share the start trigger. The start trigger is shared by: - Implicitly - exporting the start trigger from one session - Configuring the other - sessions for digital edge start triggers with sources corresponding to - the exported start trigger - Setting - start_trigger_master_session to the session that is - exporting the trigger for all sessions If the start triggers are None - for all except one session, configure_for_homogeneous_triggers - configures the sessions to share the start trigger from the one excepted - session. The start trigger is shared by: - Implicitly exporting start - trigger from the session with the start trigger that is not None - - Configuring the other sessions for digital-edge start triggers with - sources corresponding to the exported start trigger - Setting - start_trigger_master_session to the session that is - exporting the trigger for all sessions If start triggers are configured - for all sessions, configure_for_homogeneous_triggers does not - affect the start triggers. Start triggers are considered to be - configured for all sessions if either of the following conditions is - true: - No session has a start trigger that is None - One session has a - start trigger that is None, and all other sessions have start triggers - other than None. The one session with the None trigger must have - start_trigger_master_session set to itself, indicating - that the session itself is the start trigger master Reference Triggers - configure_for_homogeneous_triggers configures sessions that support - reference triggers to share the reference triggers if the reference - triggers are None (no trigger configured) for all except one session. - The reference triggers are shared by: - Implicitly exporting the - reference trigger from the session whose reference trigger is not None - - Configuring the other sessions that support the reference trigger for - digital-edge reference triggers with sources corresponding to the - exported reference trigger - Setting - ref_trigger_master_session to the session that is - exporting the trigger for all sessions that support reference trigger If - the reference triggers are configured for all sessions that support - reference triggers, configure_for_homogeneous_triggers does not - affect the reference triggers. Reference triggers are considered to be - configured for all sessions if either one or the other of the following - conditions is true: - No session has a reference trigger that is None - - One session has a reference trigger that is None, and all other sessions - have reference triggers other than None. The one session with the None - trigger must have ref_trigger_master_session set to - itself, indicating that the session itself is the reference trigger - master Reference Trigger Holdoffs Acquisition sessions may be configured - with the reference trigger. For acquisition sessions, when the reference - trigger is shared, configure_for_homogeneous_triggers configures - the holdoff properties (which are instrument driver specific) on the - reference trigger master session so that the session does not recognize - the reference trigger before the other sessions are ready. This - condition is only relevant when the sample clock rates, sample clock - timebase rates, sample counts, holdoffs, and/or any delays for the - acquisitions are different. When the sample clock rates, sample clock - timebase rates, and/or the sample counts are different in acquisition - sessions sharing the reference trigger, you should also set the holdoff - properties for the reference trigger master using the instrument driver. - Pause Triggers - configure_for_homogeneous_triggers configures generation sessions - that support pause triggers to share them, if the pause triggers are - None (no trigger configured) for all except one session. The pause - triggers are shared by: - Implicitly exporting the pause trigger from - the session whose script trigger is not None - Configuring the other - sessions that support the pause trigger for digital-edge pause triggers - with sources corresponding to the exported pause trigger - Setting - pause_trigger_master_session to the session that is - exporting the trigger for all sessions that support script triggers If - the pause triggers are configured for all generation sessions that - support pause triggers, configure_for_homogeneous_triggers does not - affect pause triggers. Pause triggers are considered to be configured - for all sessions if either one or the other of the following conditions - is true: - No session has a pause trigger that is None - One session has - a pause trigger that is None and all other sessions have pause triggers - other than None. The one session with the None trigger must have - pause_trigger_master_session set to itself, indicating - that the session itself is the pause trigger master Note: TClk - synchronization is not supported for pause triggers on acquisition - sessions. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - ''' - return _Session().configure_for_homogeneous_triggers(sessions) - - -def finish_sync_pulse_sender_synchronize(sessions, min_time): - '''finish_sync_pulse_sender_synchronize - - Finishes synchronizing the Sync Pulse Sender. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - return _Session().finish_sync_pulse_sender_synchronize(sessions, min_time) - - -def initiate(sessions): - '''initiate - - Initiates the acquisition or generation sessions specified, taking into - consideration any special requirements needed for synchronization. For - example, the session exporting the TClk-synchronized start trigger is - not initiated until after initiate initiates all the sessions - that import the TClk-synchronized start trigger. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - ''' - return _Session().initiate(sessions) - - -def is_done(sessions): - '''is_done - - Monitors the progress of the acquisitions and/or generations - corresponding to sessions. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - - Returns: - done (bool): Indicates that the operation is done. The operation is done when each - session has completed without any errors or when any one of the sessions - reports an error. - - ''' - return _Session().is_done(sessions) - - -def setup_for_sync_pulse_sender_synchronize(sessions, min_time): - '''setup_for_sync_pulse_sender_synchronize - - Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - return _Session().setup_for_sync_pulse_sender_synchronize(sessions, min_time) - - -def synchronize(sessions, min_tclk_period): - '''synchronize - - Synchronizes the TClk signals on the given sessions. After - synchronize executes, TClk signals from all sessions are - synchronized. Note: Before using this NI-TClk method, verify that your - system is configured as specified in the PXI Trigger Lines and RTSI - Lines topic of the NI-TClk Synchronization Help. You can locate this - help file at Start>>Programs>>National Instruments>>NI-TClk. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_tclk_period (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - return _Session().synchronize(sessions, min_tclk_period) - - -def synchronize_to_sync_pulse_sender(sessions, min_time): - '''synchronize_to_sync_pulse_sender - - Synchronizes the other devices to the Sync Pulse Sender. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are - between 0.0 s and 0.050 s (50 ms). Minimal period for a single - chassis/PC is 200 ns. If the specified value is less than 200 ns, - NI-TClk automatically coerces minTime to 200 ns. For multichassis - synchronization, adjust this value to account for propagation delays - through the various devices and cables. - - ''' - return _Session().synchronize_to_sync_pulse_sender(sessions, min_time) - - -def wait_until_done(sessions, timeout): - '''wait_until_done - - Call this method to pause execution of your program until the - acquisitions and/or generations corresponding to sessions are done or - until the method returns a timeout error. wait_until_done is a - blocking method that periodically checks the operation status. It - returns control to the calling program if the operation completes - successfully or an error occurs (including a timeout error). This - method is most useful for finite data operations that you expect to - complete within a certain time. - - Args: - sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. - - timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The amount of time in seconds that wait_until_done waits for the - sessions to complete. If timeout is exceeded, wait_until_done - returns an error. - - ''' - return _Session().wait_until_done(sessions, timeout) diff --git a/generated/nitclk/nitclk/unit_tests/_matchers.py b/generated/nitclk/nitclk/unit_tests/_matchers.py deleted file mode 100644 index a8740388d6..0000000000 --- a/generated/nitclk/nitclk/unit_tests/_matchers.py +++ /dev/null @@ -1,317 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -'''Matcher classes used by unit tests in order to set mock expectations. -These work well with our visatype definitions. -''' - -import ctypes -import nitclk._visatype as _visatype -import pprint - -pp = pprint.PrettyPrinter(indent=4) - - -# Base classes - - -class _ScalarMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) - return False - if other.value != self.expected_value: - print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class _PointerMatcher(object): - def __init__(self, expected_type): - self.expected_type = expected_type - - def __eq__(self, other): - if not isinstance(other, ctypes.POINTER(self.expected_type)): - print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) - - -class _BufferMatcher(object): - def __init__(self, expected_element_type, expected_size_or_value): - if isinstance(expected_size_or_value, int): - # Were given the size of the buffer - self.expected_value = None - self.expected_size = expected_size_or_value - else: - # Were given a list or something that behaves like a list - self.expected_value = expected_size_or_value - self.expected_size = len(expected_size_or_value) - self.expected_type = expected_element_type * self.expected_size - # Store params for __repr__ - self._expected_element_type = expected_element_type - self._expected_size_or_value = expected_size_or_value - - def __eq__(self, other): - if not isinstance(other, self.expected_type): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array - if not isinstance(other, self.expected_type) and not isinstance(other, list): - print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) - return False - if self.expected_size != len(other): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for i in range(0, len(self.expected_value)): - if self.expected_value[i] != other[i]: - print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) - return False - return True - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_value = ' + str(self.expected_value) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Strings - - -class ViStringMatcher(object): - def __init__(self, expected_string_value): - self.expected_string_value = expected_string_value - - def __eq__(self, other): - if not isinstance(other, ctypes.Array): - # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match - try: - other = other.contents - except AttributeError: - pass - - if not isinstance(other, ctypes.Array): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) - return False - if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character - print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) - return False - if not isinstance(other[0], bytes): - print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) - return False - if other.value.decode("ascii") != self.expected_string_value: - print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) - return False - return True - - def __repr__(self): - return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) - - -# Custom Type - - -def _compare_ctype_structs(expected, actual): - # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection - for field in expected._fields_: - field_name = field[0] - expected_val = getattr(expected, field_name) - actual_val = getattr(actual, field_name) - if expected_val != actual_val: - print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) - return False - return True - - -class CustomTypeMatcher(object): - def __init__(self, expected_type, expected_value): - self.expected_type = expected_type - self.expected_value = expected_value - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - return _compare_ctype_structs(self.expected_value, actual) - - def __repr__(self): - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) - - -class CustomTypeBufferMatcher(object): - def __init__(self, expected_element_type, expected_value): - self.expected_value = expected_value - self.expected_size = len(expected_value) - self.expected_type = expected_element_type * self.expected_size - self.expected_element_type = expected_element_type - - def __eq__(self, actual): - if not isinstance(actual, self.expected_type): - print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) - return False - if self.expected_size != len(actual): - print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) - return False - if self.expected_value is not None: - # Can't compare the objects directly because they're different types (one is list, another is ctypes array). - # Go element by element, which allows for reporting the first index where different values were found. - for a, e in zip(actual, self.expected_value): - if not isinstance(a, self.expected_element_type): - print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) - return False - if not _compare_ctype_structs(e, a): - return False - return True - - def __repr__(self): - expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' - return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) - - def __str__(self): - ret_str = self.__repr__() + '\n' - ret_str += ' expected_type = ' + str(self.expected_type) + '\n' - ret_str += ' expected_size = ' + str(self.expected_size) + '\n' - return ret_str - - -# Scalars - - -class ViBooleanMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) - - -class ViSessionMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) - - -class ViInt16Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) - - -class ViInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) - - -class ViUInt32Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) - - -class ViAttrMatcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) - - -class ViInt64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) - - -class ViReal64Matcher(_ScalarMatcher): - def __init__(self, expected_value): - _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) - - -# Pointers - - -class ViBooleanPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViBoolean) - - -class ViSessionPointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViSession) - - -class ViInt16PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt16) - - -class ViInt32PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt32) - - -class ViInt64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViInt64) - - -class ViReal64PointerMatcher(_PointerMatcher): - def __init__(self): - _PointerMatcher.__init__(self, _visatype.ViReal64) - - -# Buffers - - -class ViBooleanBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) - - -class ViCharBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) - - -class ViInt8BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) - - -class ViInt16BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) - - -class ViInt32BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) - - -class ViInt64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) - - -class ViReal64BufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) - - -class ViSessionBufferMatcher(_BufferMatcher): - def __init__(self, expected_size_or_value): - _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) - - - diff --git a/generated/nitclk/nitclk/unit_tests/_mock_helper.py b/generated/nitclk/nitclk/unit_tests/_mock_helper.py deleted file mode 100644 index 0ac4e30103..0000000000 --- a/generated/nitclk/nitclk/unit_tests/_mock_helper.py +++ /dev/null @@ -1,194 +0,0 @@ -# -*- coding: utf-8 -*- -# This file was generated -import sys # noqa: F401 - Not all mock_helpers will need this - - -class MockFunctionCallError(Exception): - def __init__(self, function, param=None): - self.function = function - self.param = param - msg = "{0} called without setting side_effect".format(self.function) - if param is not None: - msg += " or setting the {0} parameter return value".format(self.param) - super(Exception, self).__init__(msg) - - -class SideEffectsHelper(object): - def __init__(self): - self._defaults = {} - self._defaults['ConfigureForHomogeneousTriggers'] = {} - self._defaults['ConfigureForHomogeneousTriggers']['return'] = 0 - self._defaults['FinishSyncPulseSenderSynchronize'] = {} - self._defaults['FinishSyncPulseSenderSynchronize']['return'] = 0 - self._defaults['GetAttributeViReal64'] = {} - self._defaults['GetAttributeViReal64']['return'] = 0 - self._defaults['GetAttributeViReal64']['value'] = None - self._defaults['GetAttributeViSession'] = {} - self._defaults['GetAttributeViSession']['return'] = 0 - self._defaults['GetAttributeViSession']['value'] = None - self._defaults['GetAttributeViString'] = {} - self._defaults['GetAttributeViString']['return'] = 0 - self._defaults['GetAttributeViString']['value'] = None - self._defaults['GetExtendedErrorInfo'] = {} - self._defaults['GetExtendedErrorInfo']['return'] = 0 - self._defaults['GetExtendedErrorInfo']['errorString'] = None - self._defaults['Initiate'] = {} - self._defaults['Initiate']['return'] = 0 - self._defaults['IsDone'] = {} - self._defaults['IsDone']['return'] = 0 - self._defaults['IsDone']['done'] = None - self._defaults['SetAttributeViReal64'] = {} - self._defaults['SetAttributeViReal64']['return'] = 0 - self._defaults['SetAttributeViSession'] = {} - self._defaults['SetAttributeViSession']['return'] = 0 - self._defaults['SetAttributeViString'] = {} - self._defaults['SetAttributeViString']['return'] = 0 - self._defaults['SetupForSyncPulseSenderSynchronize'] = {} - self._defaults['SetupForSyncPulseSenderSynchronize']['return'] = 0 - self._defaults['Synchronize'] = {} - self._defaults['Synchronize']['return'] = 0 - self._defaults['SynchronizeToSyncPulseSender'] = {} - self._defaults['SynchronizeToSyncPulseSender']['return'] = 0 - self._defaults['WaitUntilDone'] = {} - self._defaults['WaitUntilDone']['return'] = 0 - - def __getitem__(self, func): - return self._defaults[func] - - def __setitem__(self, func, val): - self._defaults[func] = val - - def niTClk_ConfigureForHomogeneousTriggers(self, session_count, sessions): # noqa: N802 - if self._defaults['ConfigureForHomogeneousTriggers']['return'] != 0: - return self._defaults['ConfigureForHomogeneousTriggers']['return'] - return self._defaults['ConfigureForHomogeneousTriggers']['return'] - - def niTClk_FinishSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 - if self._defaults['FinishSyncPulseSenderSynchronize']['return'] != 0: - return self._defaults['FinishSyncPulseSenderSynchronize']['return'] - return self._defaults['FinishSyncPulseSenderSynchronize']['return'] - - def niTClk_GetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViReal64']['return'] != 0: - return self._defaults['GetAttributeViReal64']['return'] - # value - if self._defaults['GetAttributeViReal64']['value'] is None: - raise MockFunctionCallError("niTClk_GetAttributeViReal64", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViReal64']['value'] - return self._defaults['GetAttributeViReal64']['return'] - - def niTClk_GetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['GetAttributeViSession']['return'] != 0: - return self._defaults['GetAttributeViSession']['return'] - # value - if self._defaults['GetAttributeViSession']['value'] is None: - raise MockFunctionCallError("niTClk_GetAttributeViSession", param='value') - if value is not None: - value.contents.value = self._defaults['GetAttributeViSession']['value'] - return self._defaults['GetAttributeViSession']['return'] - - def niTClk_GetAttributeViString(self, session, channel_name, attribute_id, buf_size, value): # noqa: N802 - if self._defaults['GetAttributeViString']['return'] != 0: - return self._defaults['GetAttributeViString']['return'] - # value - if self._defaults['GetAttributeViString']['value'] is None: - raise MockFunctionCallError("niTClk_GetAttributeViString", param='value') - if buf_size.value == 0: - return len(self._defaults['GetAttributeViString']['value']) - value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') - return self._defaults['GetAttributeViString']['return'] - - def niTClk_GetExtendedErrorInfo(self, error_string, error_string_size): # noqa: N802 - if self._defaults['GetExtendedErrorInfo']['return'] != 0: - return self._defaults['GetExtendedErrorInfo']['return'] - # error_string - if self._defaults['GetExtendedErrorInfo']['errorString'] is None: - raise MockFunctionCallError("niTClk_GetExtendedErrorInfo", param='errorString') - if error_string_size.value == 0: - return len(self._defaults['GetExtendedErrorInfo']['errorString']) - error_string.value = self._defaults['GetExtendedErrorInfo']['errorString'].encode('ascii') - return self._defaults['GetExtendedErrorInfo']['return'] - - def niTClk_Initiate(self, session_count, sessions): # noqa: N802 - if self._defaults['Initiate']['return'] != 0: - return self._defaults['Initiate']['return'] - return self._defaults['Initiate']['return'] - - def niTClk_IsDone(self, session_count, sessions, done): # noqa: N802 - if self._defaults['IsDone']['return'] != 0: - return self._defaults['IsDone']['return'] - # done - if self._defaults['IsDone']['done'] is None: - raise MockFunctionCallError("niTClk_IsDone", param='done') - if done is not None: - done.contents.value = self._defaults['IsDone']['done'] - return self._defaults['IsDone']['return'] - - def niTClk_SetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViReal64']['return'] != 0: - return self._defaults['SetAttributeViReal64']['return'] - return self._defaults['SetAttributeViReal64']['return'] - - def niTClk_SetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViSession']['return'] != 0: - return self._defaults['SetAttributeViSession']['return'] - return self._defaults['SetAttributeViSession']['return'] - - def niTClk_SetAttributeViString(self, session, channel_name, attribute_id, value): # noqa: N802 - if self._defaults['SetAttributeViString']['return'] != 0: - return self._defaults['SetAttributeViString']['return'] - return self._defaults['SetAttributeViString']['return'] - - def niTClk_SetupForSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 - if self._defaults['SetupForSyncPulseSenderSynchronize']['return'] != 0: - return self._defaults['SetupForSyncPulseSenderSynchronize']['return'] - return self._defaults['SetupForSyncPulseSenderSynchronize']['return'] - - def niTClk_Synchronize(self, session_count, sessions, min_tclk_period): # noqa: N802 - if self._defaults['Synchronize']['return'] != 0: - return self._defaults['Synchronize']['return'] - return self._defaults['Synchronize']['return'] - - def niTClk_SynchronizeToSyncPulseSender(self, session_count, sessions, min_time): # noqa: N802 - if self._defaults['SynchronizeToSyncPulseSender']['return'] != 0: - return self._defaults['SynchronizeToSyncPulseSender']['return'] - return self._defaults['SynchronizeToSyncPulseSender']['return'] - - def niTClk_WaitUntilDone(self, session_count, sessions, timeout): # noqa: N802 - if self._defaults['WaitUntilDone']['return'] != 0: - return self._defaults['WaitUntilDone']['return'] - return self._defaults['WaitUntilDone']['return'] - - # Helper function to setup Mock object with default side effects and return values - def set_side_effects_and_return_values(self, mock_library): - mock_library.niTClk_ConfigureForHomogeneousTriggers.side_effect = MockFunctionCallError("niTClk_ConfigureForHomogeneousTriggers") - mock_library.niTClk_ConfigureForHomogeneousTriggers.return_value = 0 - mock_library.niTClk_FinishSyncPulseSenderSynchronize.side_effect = MockFunctionCallError("niTClk_FinishSyncPulseSenderSynchronize") - mock_library.niTClk_FinishSyncPulseSenderSynchronize.return_value = 0 - mock_library.niTClk_GetAttributeViReal64.side_effect = MockFunctionCallError("niTClk_GetAttributeViReal64") - mock_library.niTClk_GetAttributeViReal64.return_value = 0 - mock_library.niTClk_GetAttributeViSession.side_effect = MockFunctionCallError("niTClk_GetAttributeViSession") - mock_library.niTClk_GetAttributeViSession.return_value = 0 - mock_library.niTClk_GetAttributeViString.side_effect = MockFunctionCallError("niTClk_GetAttributeViString") - mock_library.niTClk_GetAttributeViString.return_value = 0 - mock_library.niTClk_GetExtendedErrorInfo.side_effect = MockFunctionCallError("niTClk_GetExtendedErrorInfo") - mock_library.niTClk_GetExtendedErrorInfo.return_value = 0 - mock_library.niTClk_Initiate.side_effect = MockFunctionCallError("niTClk_Initiate") - mock_library.niTClk_Initiate.return_value = 0 - mock_library.niTClk_IsDone.side_effect = MockFunctionCallError("niTClk_IsDone") - mock_library.niTClk_IsDone.return_value = 0 - mock_library.niTClk_SetAttributeViReal64.side_effect = MockFunctionCallError("niTClk_SetAttributeViReal64") - mock_library.niTClk_SetAttributeViReal64.return_value = 0 - mock_library.niTClk_SetAttributeViSession.side_effect = MockFunctionCallError("niTClk_SetAttributeViSession") - mock_library.niTClk_SetAttributeViSession.return_value = 0 - mock_library.niTClk_SetAttributeViString.side_effect = MockFunctionCallError("niTClk_SetAttributeViString") - mock_library.niTClk_SetAttributeViString.return_value = 0 - mock_library.niTClk_SetupForSyncPulseSenderSynchronize.side_effect = MockFunctionCallError("niTClk_SetupForSyncPulseSenderSynchronize") - mock_library.niTClk_SetupForSyncPulseSenderSynchronize.return_value = 0 - mock_library.niTClk_Synchronize.side_effect = MockFunctionCallError("niTClk_Synchronize") - mock_library.niTClk_Synchronize.return_value = 0 - mock_library.niTClk_SynchronizeToSyncPulseSender.side_effect = MockFunctionCallError("niTClk_SynchronizeToSyncPulseSender") - mock_library.niTClk_SynchronizeToSyncPulseSender.return_value = 0 - mock_library.niTClk_WaitUntilDone.side_effect = MockFunctionCallError("niTClk_WaitUntilDone") - mock_library.niTClk_WaitUntilDone.return_value = 0 diff --git a/generated/nitclk/nitclk/unit_tests/test_nitclk.py b/generated/nitclk/nitclk/unit_tests/test_nitclk.py deleted file mode 100644 index a82db0cf7d..0000000000 --- a/generated/nitclk/nitclk/unit_tests/test_nitclk.py +++ /dev/null @@ -1,286 +0,0 @@ -import _matchers -import _mock_helper - -import hightime -import nitclk - -from unittest.mock import MagicMock -from unittest.mock import patch - -SESSION_NUM_FOR_TEST = 42 -single_session = [SESSION_NUM_FOR_TEST] -multiple_sessions = [SESSION_NUM_FOR_TEST, SESSION_NUM_FOR_TEST * 10, SESSION_NUM_FOR_TEST * 100, SESSION_NUM_FOR_TEST + 1] - - -class NitclkSupportingDriverSession: - '''Session objects for drivers that support NI-TClk are expected to have a property of type nitclk.SessionReference called tclk - - This is why we're creating this fake driver class and adding the tclk property. - ''' - def __init__(self, session_number): - self.tclk = nitclk.SessionReference(session_number) - - -class TestNitclkApi: - class PatchedLibrary(nitclk._library.Library): - def __init__(self, ctypes_library): - super().__init__(ctypes_library) - - for f in dir(self): - if f.startswith("niTClk_") and not f.endswith("_cfunc"): - setattr(self, f, MagicMock()) - - def setup_method(self, method): - self.patched_library = self.PatchedLibrary(None) - self.patched_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=self.patched_library) - self.patched_library_singleton_get.start() - - self.side_effects_helper = _mock_helper.SideEffectsHelper() - self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) - - self._single_session_reference = [nitclk.SessionReference(x) for x in single_session] - self._multiple_session_references = [nitclk.SessionReference(x) for x in multiple_sessions] - - def teardown_method(self, method): - self.patched_library_singleton_get.stop() - - # API Tests - - def test_initialize_one_session(self): - self.patched_library.niTClk_Initiate.side_effect = self.side_effects_helper.niTClk_Initiate - nitclk.initiate(self._single_session_reference) - self.patched_library.niTClk_Initiate.assert_called_once_with(_matchers.ViUInt32Matcher(len(single_session)), _matchers.ViSessionBufferMatcher(single_session)) - return - - def test_initialize_multiple_sessions(self): - self.patched_library.niTClk_Initiate.side_effect = self.side_effects_helper.niTClk_Initiate - nitclk.initiate(self._multiple_session_references) - self.patched_library.niTClk_Initiate.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions)) - return - - def test_configure_for_homogeneous_triggers(self): - self.patched_library.niTClk_ConfigureForHomogeneousTriggers.side_effect = self.side_effects_helper.niTClk_ConfigureForHomogeneousTriggers - nitclk.configure_for_homogeneous_triggers(self._multiple_session_references) - self.patched_library.niTClk_ConfigureForHomogeneousTriggers.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions)) - return - - def test_finish_sync_pulse_sender_synchronize(self): - min_time = 0.042 - self.patched_library.niTClk_FinishSyncPulseSenderSynchronize.side_effect = self.side_effects_helper.niTClk_FinishSyncPulseSenderSynchronize - nitclk.finish_sync_pulse_sender_synchronize(self._multiple_session_references, min_time) - self.patched_library.niTClk_FinishSyncPulseSenderSynchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) - return - - def test_is_done(self): - expected_result = True - self.side_effects_helper['IsDone']['done'] = expected_result - - self.patched_library.niTClk_IsDone.side_effect = self.side_effects_helper.niTClk_IsDone - actual_result = nitclk.is_done(self._multiple_session_references) - assert actual_result == expected_result - self.patched_library.niTClk_IsDone.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViBooleanPointerMatcher()) - return - - def test_setup_for_sync_pulse_sender_synchronize(self): - min_time = 0.042 - self.patched_library.niTClk_SetupForSyncPulseSenderSynchronize.side_effect = self.side_effects_helper.niTClk_SetupForSyncPulseSenderSynchronize - nitclk.setup_for_sync_pulse_sender_synchronize(self._multiple_session_references, min_time) - self.patched_library.niTClk_SetupForSyncPulseSenderSynchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) - return - - def test_synchronize(self): - min_time = 0.042 - self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize - nitclk.synchronize(self._multiple_session_references, min_time) - self.patched_library.niTClk_Synchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) - return - - def test_synchronize_timedelta(self): - min_time = hightime.timedelta(seconds=0.042) - self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize - nitclk.synchronize(self._multiple_session_references, min_time) - self.patched_library.niTClk_Synchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time.total_seconds())) - return - - def test_synchronize_to_sync_pulse_sender(self): - min_time = 0.042 - self.patched_library.niTClk_SynchronizeToSyncPulseSender.side_effect = self.side_effects_helper.niTClk_SynchronizeToSyncPulseSender - nitclk.synchronize_to_sync_pulse_sender(self._multiple_session_references, min_time) - self.patched_library.niTClk_SynchronizeToSyncPulseSender.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) - return - - def test_wait_until_done(self): - min_time = 4.2 - self.patched_library.niTClk_WaitUntilDone.side_effect = self.side_effects_helper.niTClk_WaitUntilDone - nitclk.wait_until_done(self._multiple_session_references, min_time) - self.patched_library.niTClk_WaitUntilDone.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) - return - - # API error handling - - def test_api_error(self): - error_string = 'Error' - self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize - self.side_effects_helper['Synchronize']['return'] = -1 - self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['errorString'] = error_string - try: - nitclk.synchronize(self._multiple_session_references, 0.42) - except nitclk.Error as e: - assert e.code == -1 - assert e.description == error_string - - def test_api_get_error_description_fails(self): - self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize - self.side_effects_helper['Synchronize']['return'] = -1 - self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['return'] = -2 - try: - nitclk.synchronize(self._multiple_session_references, 0.42) - except nitclk.Error as e: - assert e.code == -1 # we want the original error code from getting the attribute. - assert e.description == "Failed to retrieve error description." - - # SessionReference error handling - - def test_session_reference_error(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - error_string = 'Error' - self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 - self.side_effects_helper['GetAttributeViReal64']['return'] = -1 - self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['errorString'] = error_string - try: - test = session.sample_clock_delay - print(test) # Get rid of flake8 F841 - assert False - except nitclk.Error as e: - assert e.code == -1 - assert e.description == error_string - - def test_session_reference_get_error_description_fails(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 - self.side_effects_helper['GetAttributeViReal64']['return'] = -1 - self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo - self.side_effects_helper['GetExtendedErrorInfo']['return'] = -2 - try: - test = session.sample_clock_delay - print(test) # Get rid of flake8 F841 - assert False - except nitclk.Error as e: - assert e.code == -1 # we want the original error code from getting the attribute. - assert e.description == "Failed to retrieve error description." - - # Session Reference - - def test_set_vi_real64(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_SetAttributeViReal64 - attribute_id = 8 - test_number = 4.2 - session.tclk_actual_period = test_number - self.patched_library.niTClk_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) - - def test_get_vi_real64(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 - attribute_id = 8 - test_number = 4.2 - self.side_effects_helper['GetAttributeViReal64']['value'] = test_number - attr_val = session.tclk_actual_period - assert attr_val == test_number - self.patched_library.niTClk_GetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64PointerMatcher()) - - def test_set_timedelta_as_vi_real64(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_SetAttributeViReal64 - attribute_id = 11 - test_number = 4.2 - session.sample_clock_delay = test_number - self.patched_library.niTClk_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) - - def test_set_timedelta_as_timedelta(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_SetAttributeViReal64 - attribute_id = 11 - test_number = 4.2 - session.sample_clock_delay = hightime.timedelta(seconds=test_number) - self.patched_library.niTClk_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) - - def test_get_timedelta(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 - attribute_id = 11 - test_number = 4.2 - self.side_effects_helper['GetAttributeViReal64']['value'] = test_number - attr_timedelta = session.sample_clock_delay - assert attr_timedelta.total_seconds() == test_number - self.patched_library.niTClk_GetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64PointerMatcher()) - - def test_set_vi_string(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViString.side_effect = self.side_effects_helper.niTClk_SetAttributeViString - attribute_id = 13 - test_string = "The answer to the ultimate question is 42" - session.sync_pulse_sender_sync_pulse_source = test_string - self.patched_library.niTClk_SetAttributeViString.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViStringMatcher(test_string)) - - def test_get_vi_string(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_GetAttributeViString.side_effect = self.side_effects_helper.niTClk_GetAttributeViString - attribute_id = 13 - test_string = "The answer to the ultimate question is 42" - self.side_effects_helper['GetAttributeViString']['value'] = test_string - attr_string = session.sync_pulse_sender_sync_pulse_source - assert attr_string == test_string - - from unittest.mock import call - calls = [call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(0), None), call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(len(test_string)), _matchers.ViCharBufferMatcher(len(test_string)))] - self.patched_library.niTClk_GetAttributeViString.assert_has_calls(calls) - assert self.patched_library.niTClk_GetAttributeViString.call_count == 2 - - # All ViInt32 attributes are really sessions references - def test_set_vi_session_with_int(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViSession.side_effect = self.side_effects_helper.niTClk_SetAttributeViSession - other_session_number = 43 - # We do not support using just the number - try: - session.start_trigger_master_session = other_session_number - assert False - except TypeError: - pass - - def test_set_vi_session_with_session_reference(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViSession.side_effect = self.side_effects_helper.niTClk_SetAttributeViSession - attribute_id = 3 - other_session_number = 43 - other_session_reference = nitclk.SessionReference(other_session_number) - session.start_trigger_master_session = other_session_reference - self.patched_library.niTClk_SetAttributeViSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViSessionMatcher(other_session_number)) - - def test_set_vi_session_with_session(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_SetAttributeViSession.side_effect = self.side_effects_helper.niTClk_SetAttributeViSession - attribute_id = 3 - other_session_number = 43 - other_session = NitclkSupportingDriverSession(other_session_number) - session.start_trigger_master_session = other_session - self.patched_library.niTClk_SetAttributeViSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViSessionMatcher(other_session_number)) - - def test_get_tclk_session_reference(self): - session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) - self.patched_library.niTClk_GetAttributeViSession.side_effect = self.side_effects_helper.niTClk_GetAttributeViSession - attribute_id = 3 - other_session_number = 43 - self.side_effects_helper['GetAttributeViSession']['value'] = other_session_number - attr_session_reference = session.start_trigger_master_session - assert type(attr_session_reference) is nitclk.SessionReference - assert attr_session_reference._get_tclk_session_reference() == other_session_number - self.patched_library.niTClk_GetAttributeViSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViSessionPointerMatcher()) - - - - diff --git a/generated/nitclk/setup.py b/generated/nitclk/setup.py deleted file mode 100644 index a18498adbc..0000000000 --- a/generated/nitclk/setup.py +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/python -# This file was generated - - -from setuptools import setup - - -pypi_name = 'nitclk' - - -def read_contents(file_to_read): - with open(file_to_read, 'r') as f: - return f.read() - - -setup( - name=pypi_name, - zip_safe=True, - version='1.5.1.dev0', - description='NI-TClk Python API', - long_description=read_contents('README.rst'), - long_description_content_type='text/x-rst', - author='NI', - author_email="opensource@ni.com", - url="https://github.com/ni/nimi-python", - maintainer="NI", - maintainer_email="opensource@ni.com", - keywords=['nitclk'], - license='MIT', - include_package_data=True, - packages=['nitclk'], - python_requires='>=3.10', - install_requires=[ - 'hightime>=0.2.0', - ], - classifiers=[ - "Development Status :: 3 - Alpha", - "Intended Audience :: Developers", - "Intended Audience :: Manufacturing", - "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", - "Programming Language :: Python :: 3.14", - "Programming Language :: Python :: Implementation :: CPython", - "Topic :: Scientific/Engineering :: Instrument Drivers", - "Topic :: System :: Hardware :: Hardware Drivers" - ], - package_data={pypi_name: ['VERSION']}, -) diff --git a/generated/nitclk/tox-system_tests.ini b/generated/nitclk/tox-system_tests.ini deleted file mode 100644 index 821b25e8dd..0000000000 --- a/generated/nitclk/tox-system_tests.ini +++ /dev/null @@ -1,72 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nitclk) -[tox] -envlist = py{310,311,312,313,314}-nitclk-wheel_dep,py{310,311,312,313,314}-nitclk-system_tests, py314-nitclk-coverage -skip_missing_interpreters=True -ignore_basepython_conflict=True -# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo -toxworkdir = ../../../.tox - -[testenv] -description = - nitclk-wheel_dep: Build the niscope wheel because we use it in nitclk tests - nitclk-system_tests: Run nitclk system tests (requires NI-TClk runtime to be installed) - nitclk-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions - -changedir = - nitclk-wheel_dep: ../niscope - nitclk-system_tests: . - nitclk-coverage: . - -commands = - nitclk-wheel_dep: python -m build --wheel - - # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now - nitclk-system_tests: python -m pip install --disable-pip-version-check --upgrade pip - nitclk-system_tests: python ../../tools/install_local_wheel.py --driver niscope --start-path ../.. - nitclk-system_tests: python -c "import nitclk; nitclk.print_diagnostic_information()" - nitclk-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nitclk --parallel-mode -m pytest ../../src/nitclk/examples --junitxml=../junit/junit-nitclk-{envname}-examples-{env:BITNESS:64}.xml {posargs} - nitclk-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nitclk --parallel-mode -m pytest ../../src/nitclk/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nitclk-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} - - nitclk-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ - # Create the report to upload - nitclk-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc - # Display the coverage results - nitclk-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc - -deps = - nitclk-wheel_dep: build - - nitclk-system_tests: pytest < 9.2.0 - nitclk-system_tests: coverage - nitclk-system_tests: numpy - nitclk-system_tests: hightime - nitclk-system_tests: fasteners - nitclk-system_tests: pytest-json - - nitclk-coverage: coverage - -depends = - nitclk-coverage: py{310,311,312,313,314}-nitclk-system_tests - nitclk-system_tests: py{310,311,312,313,314}-nitclk-wheel_dep, - -passenv = - GIT_BRANCH - GIT_COMMIT - BUILD_URL - BRANCH_NAME - JENKINS_URL - BUILD_NUMBER - -setenv = - PYTHONPATH = ../../src/shared - -[pytest] -addopts = --verbose -filterwarnings = - error::pytest.PytestUnhandledThreadExceptionWarning -norecursedirs = .* build dist CVS _darcs {arch} *.egg venv -junit_suite_name = nimi-python -junit_family = xunit1 diff --git a/src/nidigital/examples/burst_with_conditional_trigger/Pattern.digipat b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/Pattern.digipat similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/Pattern.digipat rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/Pattern.digipat diff --git a/src/nidigital/examples/burst_with_conditional_trigger/PinLevels.digilevels b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/PinLevels.digilevels similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/PinLevels.digilevels rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/PinLevels.digilevels diff --git a/src/nidigital/examples/burst_with_conditional_trigger/PinMap.pinmap b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/PinMap.pinmap similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/PinMap.pinmap rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/PinMap.pinmap diff --git a/src/nidigital/examples/burst_with_conditional_trigger/Specifications.specs b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/Specifications.specs similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/Specifications.specs rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/Specifications.specs diff --git a/src/nidigital/examples/burst_with_conditional_trigger/Timing.digitiming b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/Timing.digitiming similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/Timing.digitiming rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/Timing.digitiming diff --git a/src/nidigital/examples/burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/burst_with_conditional_trigger.digiproj diff --git a/src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py b/src/nidigital/examples/nidigital_burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py similarity index 100% rename from src/nidigital/examples/burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py rename to src/nidigital/examples/nidigital_burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py From 08e1cfad763afaf3ec2274e067031c2f706f9620 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Mon, 16 Nov 2026 09:31:33 +0000 Subject: [PATCH 10/10] Running code gen --- README.rst | 665 + docs/nidcpower/.readthedocs.yaml | 51 + docs/nidcpower/about_nidcpower.inc | 15 + docs/nidcpower/class.rst | 12281 ++++++++++++++++ docs/nidcpower/conf.py | 200 + docs/nidcpower/enums.rst | 1560 ++ docs/nidcpower/errors.rst | 100 + docs/nidcpower/examples.rst | 68 + docs/nidcpower/grpc_session_options.rst | 139 + docs/nidcpower/index.rst | 31 + docs/nidcpower/installation.inc | 13 + docs/nidcpower/nidcpower.rst | 9 + docs/nidcpower/rep_caps.rst | 50 + docs/nidcpower/status.inc | 46 + docs/nidcpower/toc.inc | 12 + docs/nidigital/.readthedocs.yaml | 51 + docs/nidigital/about_nidigital.inc | 15 + docs/nidigital/class.rst | 5724 +++++++ docs/nidigital/conf.py | 200 + docs/nidigital/enums.rst | 799 + docs/nidigital/errors.rst | 100 + docs/nidigital/examples.rst | 50 + docs/nidigital/grpc_session_options.rst | 139 + docs/nidigital/index.rst | 31 + docs/nidigital/installation.inc | 13 + docs/nidigital/nidigital.rst | 9 + docs/nidigital/rep_caps.rst | 192 + docs/nidigital/status.inc | 46 + docs/nidigital/toc.inc | 12 + docs/nidmm/.readthedocs.yaml | 51 + docs/nidmm/about_nidmm.inc | 15 + docs/nidmm/class.rst | 3552 +++++ docs/nidmm/conf.py | 200 + docs/nidmm/enums.rst | 1182 ++ docs/nidmm/errors.rst | 100 + docs/nidmm/examples.rst | 131 + docs/nidmm/grpc_session_options.rst | 139 + docs/nidmm/index.rst | 31 + docs/nidmm/installation.inc | 13 + docs/nidmm/nidmm.rst | 9 + docs/nidmm/status.inc | 46 + docs/nidmm/toc.inc | 11 + docs/nifgen/.readthedocs.yaml | 51 + docs/nifgen/about_nifgen.inc | 15 + docs/nifgen/class.rst | 6185 ++++++++ docs/nifgen/conf.py | 200 + docs/nifgen/enums.rst | 905 ++ docs/nifgen/errors.rst | 100 + docs/nifgen/examples.rst | 41 + docs/nifgen/grpc_session_options.rst | 139 + docs/nifgen/index.rst | 31 + docs/nifgen/installation.inc | 13 + docs/nifgen/nifgen.rst | 9 + docs/nifgen/rep_caps.rst | 116 + docs/nifgen/status.inc | 46 + docs/nifgen/toc.inc | 12 + docs/nimodinst/.readthedocs.yaml | 51 + docs/nimodinst/about_nimodinst.inc | 15 + docs/nimodinst/class.rst | 267 + docs/nimodinst/conf.py | 200 + docs/nimodinst/errors.rst | 70 + docs/nimodinst/examples.rst | 14 + docs/nimodinst/index.rst | 31 + docs/nimodinst/installation.inc | 13 + docs/nimodinst/nimodinst.rst | 9 + docs/nimodinst/status.inc | 46 + docs/nimodinst/toc.inc | 9 + docs/nirfsa/.readthedocs.yaml | 51 + docs/nirfsa/about_nirfsa.inc | 15 + docs/nirfsa/class.rst | 10726 ++++++++++++++ docs/nirfsa/conf.py | 200 + docs/nirfsa/enums.rst | 3510 +++++ docs/nirfsa/errors.rst | 100 + docs/nirfsa/examples.rst | 23 + docs/nirfsa/grpc_session_options.rst | 139 + docs/nirfsa/index.rst | 30 + docs/nirfsa/installation.inc | 13 + docs/nirfsa/nirfsa.rst | 9 + docs/nirfsa/rep_caps.rst | 88 + docs/nirfsa/status.inc | 46 + docs/nirfsa/toc.inc | 12 + docs/nirfsg/.readthedocs.yaml | 51 + docs/nirfsg/about_nirfsg.inc | 15 + docs/nirfsg/class.rst | 10984 ++++++++++++++ docs/nirfsg/conf.py | 200 + docs/nirfsg/enums.rst | 1990 +++ docs/nirfsg/errors.rst | 100 + docs/nirfsg/examples.rst | 32 + docs/nirfsg/grpc_session_options.rst | 139 + docs/nirfsg/index.rst | 30 + docs/nirfsg/installation.inc | 13 + docs/nirfsg/nirfsg.rst | 9 + docs/nirfsg/rep_caps.rst | 166 + docs/nirfsg/status.inc | 46 + docs/nirfsg/toc.inc | 12 + docs/niscope/.readthedocs.yaml | 51 + docs/niscope/about_niscope.inc | 15 + docs/niscope/class.rst | 7483 ++++++++++ docs/niscope/conf.py | 200 + docs/niscope/enums.rst | 1946 +++ docs/niscope/errors.rst | 100 + docs/niscope/examples.rst | 50 + docs/niscope/grpc_session_options.rst | 139 + docs/niscope/index.rst | 31 + docs/niscope/installation.inc | 13 + docs/niscope/niscope.rst | 9 + docs/niscope/rep_caps.rst | 50 + docs/niscope/status.inc | 46 + docs/niscope/toc.inc | 12 + docs/nise/.readthedocs.yaml | 51 + docs/nise/about_nise.inc | 15 + docs/nise/class.rst | 716 + docs/nise/conf.py | 200 + docs/nise/enums.rst | 190 + docs/nise/errors.rst | 80 + docs/nise/examples.rst | 14 + docs/nise/index.rst | 31 + docs/nise/installation.inc | 13 + docs/nise/nise.rst | 9 + docs/nise/status.inc | 46 + docs/nise/toc.inc | 10 + docs/niswitch/.readthedocs.yaml | 51 + docs/niswitch/about_niswitch.inc | 15 + docs/niswitch/class.rst | 2668 ++++ docs/niswitch/conf.py | 200 + docs/niswitch/enums.rst | 1060 ++ docs/niswitch/errors.rst | 100 + docs/niswitch/examples.rst | 32 + docs/niswitch/grpc_session_options.rst | 139 + docs/niswitch/index.rst | 31 + docs/niswitch/installation.inc | 13 + docs/niswitch/niswitch.rst | 9 + docs/niswitch/rep_caps.rst | 38 + docs/niswitch/status.inc | 46 + docs/niswitch/toc.inc | 12 + docs/nitclk/.readthedocs.yaml | 51 + docs/nitclk/about_nitclk.inc | 15 + docs/nitclk/class.rst | 756 + docs/nitclk/conf.py | 200 + docs/nitclk/errors.rst | 70 + docs/nitclk/examples.rst | 14 + docs/nitclk/index.rst | 31 + docs/nitclk/installation.inc | 13 + docs/nitclk/nitclk.rst | 9 + docs/nitclk/status.inc | 46 + docs/nitclk/toc.inc | 9 + generated/nidcpower/README.rst | 192 + generated/nidcpower/nidcpower/VERSION | 2 + generated/nidcpower/nidcpower/__init__.py | 111 + generated/nidcpower/nidcpower/_attributes.py | 167 + generated/nidcpower/nidcpower/_converters.py | 394 + .../nidcpower/_grpc_stub_interpreter.py | 531 + generated/nidcpower/nidcpower/_library.py | 671 + .../nidcpower/_library_interpreter.py | 782 + .../nidcpower/nidcpower/_library_singleton.py | 57 + generated/nidcpower/nidcpower/_visatype.py | 29 + generated/nidcpower/nidcpower/enums.py | 680 + generated/nidcpower/nidcpower/errors.py | 126 + .../nidcpower/grpc_session_options.py | 78 + .../nidcpower/lcr_load_compensation_spot.py | 106 + .../nidcpower/nidcpower/lcr_measurement.py | 201 + .../nidcpower/nidcpower/nidcpower_pb2.py | 662 + .../nidcpower/nidcpower/nidcpower_pb2_grpc.py | 4884 ++++++ generated/nidcpower/nidcpower/nidevice_pb2.py | 32 + .../nidcpower/nidcpower/nidevice_pb2_grpc.py | 4 + generated/nidcpower/nidcpower/session.py | 8589 +++++++++++ .../nidcpower/unit_tests/_matchers.py | 317 + .../nidcpower/unit_tests/_mock_helper.py | 1074 ++ .../nidcpower/unit_tests/test_nidcpower.py | 352 + generated/nidcpower/setup.py | 63 + generated/nidcpower/tox-system_tests.ini | 73 + generated/nidigital/README.rst | 202 + generated/nidigital/nidigital/VERSION | 2 + generated/nidigital/nidigital/__init__.py | 105 + generated/nidigital/nidigital/_attributes.py | 167 + generated/nidigital/nidigital/_converters.py | 365 + .../nidigital/_grpc_stub_interpreter.py | 667 + generated/nidigital/nidigital/_library.py | 876 ++ .../nidigital/_library_interpreter.py | 1047 ++ .../nidigital/nidigital/_library_singleton.py | 57 + generated/nidigital/nidigital/_visatype.py | 29 + generated/nidigital/nidigital/enums.py | 356 + generated/nidigital/nidigital/errors.py | 126 + .../nidigital/grpc_session_options.py | 78 + .../history_ram_cycle_information.py | 52 + generated/nidigital/nidigital/nidevice_pb2.py | 32 + .../nidigital/nidigital/nidevice_pb2_grpc.py | 4 + .../nidigital/nidigitalpattern_pb2.py | 591 + .../nidigital/nidigitalpattern_pb2_grpc.py | 4323 ++++++ generated/nidigital/nidigital/session.py | 3991 +++++ .../nidigital/unit_tests/_matchers.py | 317 + .../nidigital/unit_tests/_mock_helper.py | 1320 ++ .../nidigital/unit_tests/test_nidigital.py | 371 + generated/nidigital/setup.py | 64 + generated/nidigital/tox-system_tests.ini | 74 + generated/nidmm/README.rst | 171 + generated/nidmm/nidmm/VERSION | 2 + generated/nidmm/nidmm/__init__.py | 103 + generated/nidmm/nidmm/_attributes.py | 167 + generated/nidmm/nidmm/_converters.py | 365 + .../nidmm/nidmm/_grpc_stub_interpreter.py | 398 + generated/nidmm/nidmm/_library.py | 478 + generated/nidmm/nidmm/_library_interpreter.py | 570 + generated/nidmm/nidmm/_library_singleton.py | 57 + generated/nidmm/nidmm/_visatype.py | 29 + generated/nidmm/nidmm/enums.py | 492 + generated/nidmm/nidmm/errors.py | 126 + generated/nidmm/nidmm/grpc_session_options.py | 78 + generated/nidmm/nidmm/nidevice_pb2.py | 32 + generated/nidmm/nidmm/nidevice_pb2_grpc.py | 4 + generated/nidmm/nidmm/nidmm_pb2.py | 425 + generated/nidmm/nidmm/nidmm_pb2_grpc.py | 2838 ++++ generated/nidmm/nidmm/session.py | 2499 ++++ generated/nidmm/nidmm/unit_tests/_matchers.py | 317 + .../nidmm/nidmm/unit_tests/_mock_helper.py | 745 + generated/nidmm/setup.py | 63 + generated/nidmm/tox-system_tests.ini | 65 + generated/nifake/README.rst | 21 + generated/nifake/nifake/VERSION | 2 + generated/nifake/nifake/__init__.py | 115 + generated/nifake/nifake/_attributes.py | 167 + generated/nifake/nifake/_complextype.py | 16 + generated/nifake/nifake/_converters.py | 389 + .../nifake/nifake/_grpc_stub_interpreter.py | 579 + generated/nifake/nifake/_library.py | 728 + .../nifake/nifake/_library_interpreter.py | 843 ++ generated/nifake/nifake/_library_singleton.py | 57 + generated/nifake/nifake/_visatype.py | 29 + generated/nifake/nifake/custom_struct.py | 47 + .../nifake/custom_struct_nested_typedef.py | 60 + .../nifake/nifake/custom_struct_typedef.py | 42 + generated/nifake/nifake/enums.py | 103 + generated/nifake/nifake/errors.py | 126 + .../nifake/nifake/grpc_session_options.py | 78 + generated/nifake/nifake/nidevice_pb2.py | 32 + generated/nifake/nifake/nidevice_pb2_grpc.py | 4 + generated/nifake/nifake/nifake_pb2.py | 489 + generated/nifake/nifake/nifake_pb2_grpc.py | 3432 +++++ generated/nifake/nifake/session.py | 1855 +++ .../nifake/nifake/unit_tests/_matchers.py | 369 + .../nifake/nifake/unit_tests/_mock_helper.py | 1212 ++ .../nifake/nifake/unit_tests/conftest.py | 19 + .../nifake/unit_tests/test_converters.py | 421 + .../nifake/nifake/unit_tests/test_grpc.py | 1111 ++ .../unit_tests/test_library_interpreter.py | 1023 ++ .../unit_tests/test_library_singleton.py | 7 + .../nifake/nifake/unit_tests/test_session.py | 1057 ++ generated/nifake/setup.py | 65 + generated/nifake/tox-system_tests.ini | 73 + generated/nifgen/README.rst | 174 + generated/nifgen/nifgen/VERSION | 2 + generated/nifgen/nifgen/__init__.py | 103 + generated/nifgen/nifgen/_attributes.py | 167 + generated/nifgen/nifgen/_converters.py | 365 + .../nifgen/nifgen/_grpc_stub_interpreter.py | 527 + generated/nifgen/nifgen/_library.py | 667 + .../nifgen/nifgen/_library_interpreter.py | 782 + generated/nifgen/nifgen/_library_singleton.py | 57 + generated/nifgen/nifgen/_visatype.py | 29 + generated/nifgen/nifgen/enums.py | 390 + generated/nifgen/nifgen/errors.py | 126 + .../nifgen/nifgen/grpc_session_options.py | 78 + generated/nifgen/nifgen/nidevice_pb2.py | 32 + generated/nifgen/nifgen/nidevice_pb2_grpc.py | 4 + generated/nifgen/nifgen/nifgen_pb2.py | 592 + generated/nifgen/nifgen/nifgen_pb2_grpc.py | 4290 ++++++ generated/nifgen/nifgen/session.py | 4413 ++++++ .../nifgen/nifgen/unit_tests/_matchers.py | 317 + .../nifgen/nifgen/unit_tests/_mock_helper.py | 1013 ++ generated/nifgen/setup.py | 64 + generated/nifgen/tox-system_tests.ini | 73 + generated/nimodinst/README.rst | 171 + generated/nimodinst/nimodinst/VERSION | 2 + generated/nimodinst/nimodinst/__init__.py | 101 + generated/nimodinst/nimodinst/_converters.py | 365 + generated/nimodinst/nimodinst/_library.py | 73 + .../nimodinst/_library_interpreter.py | 135 + .../nimodinst/nimodinst/_library_singleton.py | 57 + generated/nimodinst/nimodinst/_visatype.py | 29 + generated/nimodinst/nimodinst/errors.py | 96 + generated/nimodinst/nimodinst/session.py | 321 + .../nimodinst/unit_tests/_matchers.py | 317 + .../nimodinst/unit_tests/_mock_helper.py | 104 + .../nimodinst/unit_tests/test_modinst.py | 275 + generated/nimodinst/setup.py | 55 + generated/nimodinst/tox-system_tests.ini | 64 + generated/nirfsa/README.rst | 179 + generated/nirfsa/nirfsa/VERSION | 2 + generated/nirfsa/nirfsa/__init__.py | 115 + generated/nirfsa/nirfsa/_attributes.py | 167 + generated/nirfsa/nirfsa/_complextype.py | 16 + generated/nirfsa/nirfsa/_converters.py | 365 + .../nirfsa/nirfsa/_grpc_stub_interpreter.py | 598 + generated/nirfsa/nirfsa/_library.py | 701 + .../nirfsa/nirfsa/_library_interpreter.py | 773 + generated/nirfsa/nirfsa/_library_singleton.py | 57 + generated/nirfsa/nirfsa/_visatype.py | 29 + .../nirfsa/nirfsa/coefficient_info_type.py | 60 + generated/nirfsa/nirfsa/enums.py | 1479 ++ generated/nirfsa/nirfsa/errors.py | 126 + .../nirfsa/nirfsa/grpc_session_options.py | 78 + generated/nirfsa/nirfsa/nidevice_pb2.py | 32 + generated/nirfsa/nirfsa/nidevice_pb2_grpc.py | 4 + generated/nirfsa/nirfsa/nirfsa_pb2.py | 492 + generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py | 3498 +++++ generated/nirfsa/nirfsa/session.py | 8445 +++++++++++ generated/nirfsa/nirfsa/spectrum_info_type.py | 112 + .../nirfsa/nirfsa/unit_tests/_matchers.py | 369 + .../nirfsa/nirfsa/unit_tests/_mock_helper.py | 1043 ++ .../nirfsa/nirfsa/unit_tests/test_nirfsa.py | 25 + generated/nirfsa/nirfsa/waveform_info.py | 116 + generated/nirfsa/setup.py | 65 + generated/nirfsa/tox-system_tests.ini | 73 + generated/nirfsg/README.rst | 179 + generated/nirfsg/nirfsg/VERSION | 2 + generated/nirfsg/nirfsg/__init__.py | 103 + generated/nirfsg/nirfsg/_attributes.py | 167 + generated/nirfsg/nirfsg/_complextype.py | 16 + generated/nirfsg/nirfsg/_converters.py | 365 + .../nirfsg/nirfsg/_grpc_stub_interpreter.py | 629 + generated/nirfsg/nirfsg/_library.py | 776 + .../nirfsg/nirfsg/_library_interpreter.py | 820 ++ generated/nirfsg/nirfsg/_library_singleton.py | 57 + generated/nirfsg/nirfsg/_visatype.py | 29 + generated/nirfsg/nirfsg/enums.py | 855 ++ generated/nirfsg/nirfsg/errors.py | 126 + .../nirfsg/nirfsg/grpc_session_options.py | 78 + generated/nirfsg/nirfsg/nidevice_pb2.py | 32 + generated/nirfsg/nirfsg/nidevice_pb2_grpc.py | 4 + generated/nirfsg/nirfsg/nirfsg_pb2.py | 530 + generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py | 3762 +++++ generated/nirfsg/nirfsg/session.py | 7416 ++++++++++ .../nirfsg/nirfsg/unit_tests/_matchers.py | 369 + .../nirfsg/nirfsg/unit_tests/_mock_helper.py | 1124 ++ generated/nirfsg/setup.py | 65 + generated/nirfsg/tox-system_tests.ini | 73 + generated/niscope/README.rst | 186 + generated/niscope/niscope/VERSION | 2 + generated/niscope/niscope/__init__.py | 109 + generated/niscope/niscope/_attributes.py | 167 + generated/niscope/niscope/_converters.py | 365 + .../niscope/niscope/_grpc_stub_interpreter.py | 463 + generated/niscope/niscope/_library.py | 599 + .../niscope/niscope/_library_interpreter.py | 729 + .../niscope/niscope/_library_singleton.py | 57 + generated/niscope/niscope/_visatype.py | 29 + generated/niscope/niscope/enums.py | 748 + generated/niscope/niscope/errors.py | 126 + .../niscope/niscope/grpc_session_options.py | 78 + .../niscope/niscope/measurement_stats.py | 43 + generated/niscope/niscope/nidevice_pb2.py | 32 + .../niscope/niscope/nidevice_pb2_grpc.py | 4 + generated/niscope/niscope/niscope_pb2.py | 452 + generated/niscope/niscope/niscope_pb2_grpc.py | 3003 ++++ generated/niscope/niscope/session.py | 5224 +++++++ .../niscope/niscope/unit_tests/_matchers.py | 317 + .../niscope/unit_tests/_mock_helper.py | 971 ++ .../niscope/unit_tests/test_niscope.py | 38 + generated/niscope/niscope/waveform_info.py | 148 + generated/niscope/setup.py | 64 + generated/niscope/tox-system_tests.ini | 73 + generated/nise/README.rst | 170 + generated/nise/nise/VERSION | 2 + generated/nise/nise/__init__.py | 102 + generated/nise/nise/_converters.py | 365 + generated/nise/nise/_library.py | 145 + generated/nise/nise/_library_interpreter.py | 188 + generated/nise/nise/_library_singleton.py | 57 + generated/nise/nise/_visatype.py | 29 + generated/nise/nise/enums.py | 80 + generated/nise/nise/errors.py | 103 + generated/nise/nise/session.py | 632 + generated/nise/nise/unit_tests/_matchers.py | 317 + .../nise/nise/unit_tests/_mock_helper.py | 214 + generated/nise/setup.py | 55 + generated/nise/tox-system_tests.ini | 64 + generated/niswitch/README.rst | 170 + generated/niswitch/niswitch/VERSION | 2 + generated/niswitch/niswitch/__init__.py | 103 + generated/niswitch/niswitch/_attributes.py | 167 + generated/niswitch/niswitch/_converters.py | 365 + .../niswitch/_grpc_stub_interpreter.py | 326 + generated/niswitch/niswitch/_library.py | 388 + .../niswitch/niswitch/_library_interpreter.py | 461 + .../niswitch/niswitch/_library_singleton.py | 57 + generated/niswitch/niswitch/_visatype.py | 29 + generated/niswitch/niswitch/enums.py | 472 + generated/niswitch/niswitch/errors.py | 126 + .../niswitch/niswitch/grpc_session_options.py | 78 + generated/niswitch/niswitch/nidevice_pb2.py | 32 + .../niswitch/niswitch/nidevice_pb2_grpc.py | 4 + generated/niswitch/niswitch/niswitch_pb2.py | 285 + .../niswitch/niswitch/niswitch_pb2_grpc.py | 1947 +++ generated/niswitch/niswitch/session.py | 2262 +++ .../niswitch/niswitch/unit_tests/_matchers.py | 317 + .../niswitch/unit_tests/_mock_helper.py | 508 + generated/niswitch/setup.py | 63 + generated/niswitch/tox-system_tests.ini | 65 + generated/nitclk/README.rst | 168 + generated/nitclk/nitclk/VERSION | 2 + generated/nitclk/nitclk/__init__.py | 111 + generated/nitclk/nitclk/_attributes.py | 167 + generated/nitclk/nitclk/_converters.py | 391 + generated/nitclk/nitclk/_library.py | 163 + .../nitclk/nitclk/_library_interpreter.py | 210 + generated/nitclk/nitclk/_library_singleton.py | 57 + generated/nitclk/nitclk/_visatype.py | 29 + generated/nitclk/nitclk/errors.py | 96 + generated/nitclk/nitclk/session.py | 876 ++ .../nitclk/nitclk/unit_tests/_matchers.py | 317 + .../nitclk/nitclk/unit_tests/_mock_helper.py | 194 + .../nitclk/nitclk/unit_tests/test_nitclk.py | 286 + generated/nitclk/setup.py | 55 + generated/nitclk/tox-system_tests.ini | 72 + 414 files changed, 223571 insertions(+) create mode 100644 README.rst create mode 100644 docs/nidcpower/.readthedocs.yaml create mode 100644 docs/nidcpower/about_nidcpower.inc create mode 100644 docs/nidcpower/class.rst create mode 100644 docs/nidcpower/conf.py create mode 100644 docs/nidcpower/enums.rst create mode 100644 docs/nidcpower/errors.rst create mode 100644 docs/nidcpower/examples.rst create mode 100644 docs/nidcpower/grpc_session_options.rst create mode 100644 docs/nidcpower/index.rst create mode 100644 docs/nidcpower/installation.inc create mode 100644 docs/nidcpower/nidcpower.rst create mode 100644 docs/nidcpower/rep_caps.rst create mode 100644 docs/nidcpower/status.inc create mode 100644 docs/nidcpower/toc.inc create mode 100644 docs/nidigital/.readthedocs.yaml create mode 100644 docs/nidigital/about_nidigital.inc create mode 100644 docs/nidigital/class.rst create mode 100644 docs/nidigital/conf.py create mode 100644 docs/nidigital/enums.rst create mode 100644 docs/nidigital/errors.rst create mode 100644 docs/nidigital/examples.rst create mode 100644 docs/nidigital/grpc_session_options.rst create mode 100644 docs/nidigital/index.rst create mode 100644 docs/nidigital/installation.inc create mode 100644 docs/nidigital/nidigital.rst create mode 100644 docs/nidigital/rep_caps.rst create mode 100644 docs/nidigital/status.inc create mode 100644 docs/nidigital/toc.inc create mode 100644 docs/nidmm/.readthedocs.yaml create mode 100644 docs/nidmm/about_nidmm.inc create mode 100644 docs/nidmm/class.rst create mode 100644 docs/nidmm/conf.py create mode 100644 docs/nidmm/enums.rst create mode 100644 docs/nidmm/errors.rst create mode 100644 docs/nidmm/examples.rst create mode 100644 docs/nidmm/grpc_session_options.rst create mode 100644 docs/nidmm/index.rst create mode 100644 docs/nidmm/installation.inc create mode 100644 docs/nidmm/nidmm.rst create mode 100644 docs/nidmm/status.inc create mode 100644 docs/nidmm/toc.inc create mode 100644 docs/nifgen/.readthedocs.yaml create mode 100644 docs/nifgen/about_nifgen.inc create mode 100644 docs/nifgen/class.rst create mode 100644 docs/nifgen/conf.py create mode 100644 docs/nifgen/enums.rst create mode 100644 docs/nifgen/errors.rst create mode 100644 docs/nifgen/examples.rst create mode 100644 docs/nifgen/grpc_session_options.rst create mode 100644 docs/nifgen/index.rst create mode 100644 docs/nifgen/installation.inc create mode 100644 docs/nifgen/nifgen.rst create mode 100644 docs/nifgen/rep_caps.rst create mode 100644 docs/nifgen/status.inc create mode 100644 docs/nifgen/toc.inc create mode 100644 docs/nimodinst/.readthedocs.yaml create mode 100644 docs/nimodinst/about_nimodinst.inc create mode 100644 docs/nimodinst/class.rst create mode 100644 docs/nimodinst/conf.py create mode 100644 docs/nimodinst/errors.rst create mode 100644 docs/nimodinst/examples.rst create mode 100644 docs/nimodinst/index.rst create mode 100644 docs/nimodinst/installation.inc create mode 100644 docs/nimodinst/nimodinst.rst create mode 100644 docs/nimodinst/status.inc create mode 100644 docs/nimodinst/toc.inc create mode 100644 docs/nirfsa/.readthedocs.yaml create mode 100644 docs/nirfsa/about_nirfsa.inc create mode 100644 docs/nirfsa/class.rst create mode 100644 docs/nirfsa/conf.py create mode 100644 docs/nirfsa/enums.rst create mode 100644 docs/nirfsa/errors.rst create mode 100644 docs/nirfsa/examples.rst create mode 100644 docs/nirfsa/grpc_session_options.rst create mode 100644 docs/nirfsa/index.rst create mode 100644 docs/nirfsa/installation.inc create mode 100644 docs/nirfsa/nirfsa.rst create mode 100644 docs/nirfsa/rep_caps.rst create mode 100644 docs/nirfsa/status.inc create mode 100644 docs/nirfsa/toc.inc create mode 100644 docs/nirfsg/.readthedocs.yaml create mode 100644 docs/nirfsg/about_nirfsg.inc create mode 100644 docs/nirfsg/class.rst create mode 100644 docs/nirfsg/conf.py create mode 100644 docs/nirfsg/enums.rst create mode 100644 docs/nirfsg/errors.rst create mode 100644 docs/nirfsg/examples.rst create mode 100644 docs/nirfsg/grpc_session_options.rst create mode 100644 docs/nirfsg/index.rst create mode 100644 docs/nirfsg/installation.inc create mode 100644 docs/nirfsg/nirfsg.rst create mode 100644 docs/nirfsg/rep_caps.rst create mode 100644 docs/nirfsg/status.inc create mode 100644 docs/nirfsg/toc.inc create mode 100644 docs/niscope/.readthedocs.yaml create mode 100644 docs/niscope/about_niscope.inc create mode 100644 docs/niscope/class.rst create mode 100644 docs/niscope/conf.py create mode 100644 docs/niscope/enums.rst create mode 100644 docs/niscope/errors.rst create mode 100644 docs/niscope/examples.rst create mode 100644 docs/niscope/grpc_session_options.rst create mode 100644 docs/niscope/index.rst create mode 100644 docs/niscope/installation.inc create mode 100644 docs/niscope/niscope.rst create mode 100644 docs/niscope/rep_caps.rst create mode 100644 docs/niscope/status.inc create mode 100644 docs/niscope/toc.inc create mode 100644 docs/nise/.readthedocs.yaml create mode 100644 docs/nise/about_nise.inc create mode 100644 docs/nise/class.rst create mode 100644 docs/nise/conf.py create mode 100644 docs/nise/enums.rst create mode 100644 docs/nise/errors.rst create mode 100644 docs/nise/examples.rst create mode 100644 docs/nise/index.rst create mode 100644 docs/nise/installation.inc create mode 100644 docs/nise/nise.rst create mode 100644 docs/nise/status.inc create mode 100644 docs/nise/toc.inc create mode 100644 docs/niswitch/.readthedocs.yaml create mode 100644 docs/niswitch/about_niswitch.inc create mode 100644 docs/niswitch/class.rst create mode 100644 docs/niswitch/conf.py create mode 100644 docs/niswitch/enums.rst create mode 100644 docs/niswitch/errors.rst create mode 100644 docs/niswitch/examples.rst create mode 100644 docs/niswitch/grpc_session_options.rst create mode 100644 docs/niswitch/index.rst create mode 100644 docs/niswitch/installation.inc create mode 100644 docs/niswitch/niswitch.rst create mode 100644 docs/niswitch/rep_caps.rst create mode 100644 docs/niswitch/status.inc create mode 100644 docs/niswitch/toc.inc create mode 100644 docs/nitclk/.readthedocs.yaml create mode 100644 docs/nitclk/about_nitclk.inc create mode 100644 docs/nitclk/class.rst create mode 100644 docs/nitclk/conf.py create mode 100644 docs/nitclk/errors.rst create mode 100644 docs/nitclk/examples.rst create mode 100644 docs/nitclk/index.rst create mode 100644 docs/nitclk/installation.inc create mode 100644 docs/nitclk/nitclk.rst create mode 100644 docs/nitclk/status.inc create mode 100644 docs/nitclk/toc.inc create mode 100644 generated/nidcpower/README.rst create mode 100644 generated/nidcpower/nidcpower/VERSION create mode 100644 generated/nidcpower/nidcpower/__init__.py create mode 100644 generated/nidcpower/nidcpower/_attributes.py create mode 100644 generated/nidcpower/nidcpower/_converters.py create mode 100644 generated/nidcpower/nidcpower/_grpc_stub_interpreter.py create mode 100644 generated/nidcpower/nidcpower/_library.py create mode 100644 generated/nidcpower/nidcpower/_library_interpreter.py create mode 100644 generated/nidcpower/nidcpower/_library_singleton.py create mode 100644 generated/nidcpower/nidcpower/_visatype.py create mode 100644 generated/nidcpower/nidcpower/enums.py create mode 100644 generated/nidcpower/nidcpower/errors.py create mode 100644 generated/nidcpower/nidcpower/grpc_session_options.py create mode 100644 generated/nidcpower/nidcpower/lcr_load_compensation_spot.py create mode 100644 generated/nidcpower/nidcpower/lcr_measurement.py create mode 100644 generated/nidcpower/nidcpower/nidcpower_pb2.py create mode 100644 generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py create mode 100644 generated/nidcpower/nidcpower/nidevice_pb2.py create mode 100644 generated/nidcpower/nidcpower/nidevice_pb2_grpc.py create mode 100644 generated/nidcpower/nidcpower/session.py create mode 100644 generated/nidcpower/nidcpower/unit_tests/_matchers.py create mode 100644 generated/nidcpower/nidcpower/unit_tests/_mock_helper.py create mode 100644 generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py create mode 100644 generated/nidcpower/setup.py create mode 100644 generated/nidcpower/tox-system_tests.ini create mode 100644 generated/nidigital/README.rst create mode 100644 generated/nidigital/nidigital/VERSION create mode 100644 generated/nidigital/nidigital/__init__.py create mode 100644 generated/nidigital/nidigital/_attributes.py create mode 100644 generated/nidigital/nidigital/_converters.py create mode 100644 generated/nidigital/nidigital/_grpc_stub_interpreter.py create mode 100644 generated/nidigital/nidigital/_library.py create mode 100644 generated/nidigital/nidigital/_library_interpreter.py create mode 100644 generated/nidigital/nidigital/_library_singleton.py create mode 100644 generated/nidigital/nidigital/_visatype.py create mode 100644 generated/nidigital/nidigital/enums.py create mode 100644 generated/nidigital/nidigital/errors.py create mode 100644 generated/nidigital/nidigital/grpc_session_options.py create mode 100644 generated/nidigital/nidigital/history_ram_cycle_information.py create mode 100644 generated/nidigital/nidigital/nidevice_pb2.py create mode 100644 generated/nidigital/nidigital/nidevice_pb2_grpc.py create mode 100644 generated/nidigital/nidigital/nidigitalpattern_pb2.py create mode 100644 generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py create mode 100644 generated/nidigital/nidigital/session.py create mode 100644 generated/nidigital/nidigital/unit_tests/_matchers.py create mode 100644 generated/nidigital/nidigital/unit_tests/_mock_helper.py create mode 100644 generated/nidigital/nidigital/unit_tests/test_nidigital.py create mode 100644 generated/nidigital/setup.py create mode 100644 generated/nidigital/tox-system_tests.ini create mode 100644 generated/nidmm/README.rst create mode 100644 generated/nidmm/nidmm/VERSION create mode 100644 generated/nidmm/nidmm/__init__.py create mode 100644 generated/nidmm/nidmm/_attributes.py create mode 100644 generated/nidmm/nidmm/_converters.py create mode 100644 generated/nidmm/nidmm/_grpc_stub_interpreter.py create mode 100644 generated/nidmm/nidmm/_library.py create mode 100644 generated/nidmm/nidmm/_library_interpreter.py create mode 100644 generated/nidmm/nidmm/_library_singleton.py create mode 100644 generated/nidmm/nidmm/_visatype.py create mode 100644 generated/nidmm/nidmm/enums.py create mode 100644 generated/nidmm/nidmm/errors.py create mode 100644 generated/nidmm/nidmm/grpc_session_options.py create mode 100644 generated/nidmm/nidmm/nidevice_pb2.py create mode 100644 generated/nidmm/nidmm/nidevice_pb2_grpc.py create mode 100644 generated/nidmm/nidmm/nidmm_pb2.py create mode 100644 generated/nidmm/nidmm/nidmm_pb2_grpc.py create mode 100644 generated/nidmm/nidmm/session.py create mode 100644 generated/nidmm/nidmm/unit_tests/_matchers.py create mode 100644 generated/nidmm/nidmm/unit_tests/_mock_helper.py create mode 100644 generated/nidmm/setup.py create mode 100644 generated/nidmm/tox-system_tests.ini create mode 100644 generated/nifake/README.rst create mode 100644 generated/nifake/nifake/VERSION create mode 100644 generated/nifake/nifake/__init__.py create mode 100644 generated/nifake/nifake/_attributes.py create mode 100644 generated/nifake/nifake/_complextype.py create mode 100644 generated/nifake/nifake/_converters.py create mode 100644 generated/nifake/nifake/_grpc_stub_interpreter.py create mode 100644 generated/nifake/nifake/_library.py create mode 100644 generated/nifake/nifake/_library_interpreter.py create mode 100644 generated/nifake/nifake/_library_singleton.py create mode 100644 generated/nifake/nifake/_visatype.py create mode 100644 generated/nifake/nifake/custom_struct.py create mode 100644 generated/nifake/nifake/custom_struct_nested_typedef.py create mode 100644 generated/nifake/nifake/custom_struct_typedef.py create mode 100644 generated/nifake/nifake/enums.py create mode 100644 generated/nifake/nifake/errors.py create mode 100644 generated/nifake/nifake/grpc_session_options.py create mode 100644 generated/nifake/nifake/nidevice_pb2.py create mode 100644 generated/nifake/nifake/nidevice_pb2_grpc.py create mode 100644 generated/nifake/nifake/nifake_pb2.py create mode 100644 generated/nifake/nifake/nifake_pb2_grpc.py create mode 100644 generated/nifake/nifake/session.py create mode 100644 generated/nifake/nifake/unit_tests/_matchers.py create mode 100644 generated/nifake/nifake/unit_tests/_mock_helper.py create mode 100644 generated/nifake/nifake/unit_tests/conftest.py create mode 100644 generated/nifake/nifake/unit_tests/test_converters.py create mode 100644 generated/nifake/nifake/unit_tests/test_grpc.py create mode 100644 generated/nifake/nifake/unit_tests/test_library_interpreter.py create mode 100644 generated/nifake/nifake/unit_tests/test_library_singleton.py create mode 100644 generated/nifake/nifake/unit_tests/test_session.py create mode 100644 generated/nifake/setup.py create mode 100644 generated/nifake/tox-system_tests.ini create mode 100644 generated/nifgen/README.rst create mode 100644 generated/nifgen/nifgen/VERSION create mode 100644 generated/nifgen/nifgen/__init__.py create mode 100644 generated/nifgen/nifgen/_attributes.py create mode 100644 generated/nifgen/nifgen/_converters.py create mode 100644 generated/nifgen/nifgen/_grpc_stub_interpreter.py create mode 100644 generated/nifgen/nifgen/_library.py create mode 100644 generated/nifgen/nifgen/_library_interpreter.py create mode 100644 generated/nifgen/nifgen/_library_singleton.py create mode 100644 generated/nifgen/nifgen/_visatype.py create mode 100644 generated/nifgen/nifgen/enums.py create mode 100644 generated/nifgen/nifgen/errors.py create mode 100644 generated/nifgen/nifgen/grpc_session_options.py create mode 100644 generated/nifgen/nifgen/nidevice_pb2.py create mode 100644 generated/nifgen/nifgen/nidevice_pb2_grpc.py create mode 100644 generated/nifgen/nifgen/nifgen_pb2.py create mode 100644 generated/nifgen/nifgen/nifgen_pb2_grpc.py create mode 100644 generated/nifgen/nifgen/session.py create mode 100644 generated/nifgen/nifgen/unit_tests/_matchers.py create mode 100644 generated/nifgen/nifgen/unit_tests/_mock_helper.py create mode 100644 generated/nifgen/setup.py create mode 100644 generated/nifgen/tox-system_tests.ini create mode 100644 generated/nimodinst/README.rst create mode 100644 generated/nimodinst/nimodinst/VERSION create mode 100644 generated/nimodinst/nimodinst/__init__.py create mode 100644 generated/nimodinst/nimodinst/_converters.py create mode 100644 generated/nimodinst/nimodinst/_library.py create mode 100644 generated/nimodinst/nimodinst/_library_interpreter.py create mode 100644 generated/nimodinst/nimodinst/_library_singleton.py create mode 100644 generated/nimodinst/nimodinst/_visatype.py create mode 100644 generated/nimodinst/nimodinst/errors.py create mode 100644 generated/nimodinst/nimodinst/session.py create mode 100644 generated/nimodinst/nimodinst/unit_tests/_matchers.py create mode 100644 generated/nimodinst/nimodinst/unit_tests/_mock_helper.py create mode 100644 generated/nimodinst/nimodinst/unit_tests/test_modinst.py create mode 100644 generated/nimodinst/setup.py create mode 100644 generated/nimodinst/tox-system_tests.ini create mode 100644 generated/nirfsa/README.rst create mode 100644 generated/nirfsa/nirfsa/VERSION create mode 100644 generated/nirfsa/nirfsa/__init__.py create mode 100644 generated/nirfsa/nirfsa/_attributes.py create mode 100644 generated/nirfsa/nirfsa/_complextype.py create mode 100644 generated/nirfsa/nirfsa/_converters.py create mode 100644 generated/nirfsa/nirfsa/_grpc_stub_interpreter.py create mode 100644 generated/nirfsa/nirfsa/_library.py create mode 100644 generated/nirfsa/nirfsa/_library_interpreter.py create mode 100644 generated/nirfsa/nirfsa/_library_singleton.py create mode 100644 generated/nirfsa/nirfsa/_visatype.py create mode 100644 generated/nirfsa/nirfsa/coefficient_info_type.py create mode 100644 generated/nirfsa/nirfsa/enums.py create mode 100644 generated/nirfsa/nirfsa/errors.py create mode 100644 generated/nirfsa/nirfsa/grpc_session_options.py create mode 100644 generated/nirfsa/nirfsa/nidevice_pb2.py create mode 100644 generated/nirfsa/nirfsa/nidevice_pb2_grpc.py create mode 100644 generated/nirfsa/nirfsa/nirfsa_pb2.py create mode 100644 generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py create mode 100644 generated/nirfsa/nirfsa/session.py create mode 100644 generated/nirfsa/nirfsa/spectrum_info_type.py create mode 100644 generated/nirfsa/nirfsa/unit_tests/_matchers.py create mode 100644 generated/nirfsa/nirfsa/unit_tests/_mock_helper.py create mode 100644 generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py create mode 100644 generated/nirfsa/nirfsa/waveform_info.py create mode 100644 generated/nirfsa/setup.py create mode 100644 generated/nirfsa/tox-system_tests.ini create mode 100644 generated/nirfsg/README.rst create mode 100644 generated/nirfsg/nirfsg/VERSION create mode 100644 generated/nirfsg/nirfsg/__init__.py create mode 100644 generated/nirfsg/nirfsg/_attributes.py create mode 100644 generated/nirfsg/nirfsg/_complextype.py create mode 100644 generated/nirfsg/nirfsg/_converters.py create mode 100644 generated/nirfsg/nirfsg/_grpc_stub_interpreter.py create mode 100644 generated/nirfsg/nirfsg/_library.py create mode 100644 generated/nirfsg/nirfsg/_library_interpreter.py create mode 100644 generated/nirfsg/nirfsg/_library_singleton.py create mode 100644 generated/nirfsg/nirfsg/_visatype.py create mode 100644 generated/nirfsg/nirfsg/enums.py create mode 100644 generated/nirfsg/nirfsg/errors.py create mode 100644 generated/nirfsg/nirfsg/grpc_session_options.py create mode 100644 generated/nirfsg/nirfsg/nidevice_pb2.py create mode 100644 generated/nirfsg/nirfsg/nidevice_pb2_grpc.py create mode 100644 generated/nirfsg/nirfsg/nirfsg_pb2.py create mode 100644 generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py create mode 100644 generated/nirfsg/nirfsg/session.py create mode 100644 generated/nirfsg/nirfsg/unit_tests/_matchers.py create mode 100644 generated/nirfsg/nirfsg/unit_tests/_mock_helper.py create mode 100644 generated/nirfsg/setup.py create mode 100644 generated/nirfsg/tox-system_tests.ini create mode 100644 generated/niscope/README.rst create mode 100644 generated/niscope/niscope/VERSION create mode 100644 generated/niscope/niscope/__init__.py create mode 100644 generated/niscope/niscope/_attributes.py create mode 100644 generated/niscope/niscope/_converters.py create mode 100644 generated/niscope/niscope/_grpc_stub_interpreter.py create mode 100644 generated/niscope/niscope/_library.py create mode 100644 generated/niscope/niscope/_library_interpreter.py create mode 100644 generated/niscope/niscope/_library_singleton.py create mode 100644 generated/niscope/niscope/_visatype.py create mode 100644 generated/niscope/niscope/enums.py create mode 100644 generated/niscope/niscope/errors.py create mode 100644 generated/niscope/niscope/grpc_session_options.py create mode 100644 generated/niscope/niscope/measurement_stats.py create mode 100644 generated/niscope/niscope/nidevice_pb2.py create mode 100644 generated/niscope/niscope/nidevice_pb2_grpc.py create mode 100644 generated/niscope/niscope/niscope_pb2.py create mode 100644 generated/niscope/niscope/niscope_pb2_grpc.py create mode 100644 generated/niscope/niscope/session.py create mode 100644 generated/niscope/niscope/unit_tests/_matchers.py create mode 100644 generated/niscope/niscope/unit_tests/_mock_helper.py create mode 100644 generated/niscope/niscope/unit_tests/test_niscope.py create mode 100644 generated/niscope/niscope/waveform_info.py create mode 100644 generated/niscope/setup.py create mode 100644 generated/niscope/tox-system_tests.ini create mode 100644 generated/nise/README.rst create mode 100644 generated/nise/nise/VERSION create mode 100644 generated/nise/nise/__init__.py create mode 100644 generated/nise/nise/_converters.py create mode 100644 generated/nise/nise/_library.py create mode 100644 generated/nise/nise/_library_interpreter.py create mode 100644 generated/nise/nise/_library_singleton.py create mode 100644 generated/nise/nise/_visatype.py create mode 100644 generated/nise/nise/enums.py create mode 100644 generated/nise/nise/errors.py create mode 100644 generated/nise/nise/session.py create mode 100644 generated/nise/nise/unit_tests/_matchers.py create mode 100644 generated/nise/nise/unit_tests/_mock_helper.py create mode 100644 generated/nise/setup.py create mode 100644 generated/nise/tox-system_tests.ini create mode 100644 generated/niswitch/README.rst create mode 100644 generated/niswitch/niswitch/VERSION create mode 100644 generated/niswitch/niswitch/__init__.py create mode 100644 generated/niswitch/niswitch/_attributes.py create mode 100644 generated/niswitch/niswitch/_converters.py create mode 100644 generated/niswitch/niswitch/_grpc_stub_interpreter.py create mode 100644 generated/niswitch/niswitch/_library.py create mode 100644 generated/niswitch/niswitch/_library_interpreter.py create mode 100644 generated/niswitch/niswitch/_library_singleton.py create mode 100644 generated/niswitch/niswitch/_visatype.py create mode 100644 generated/niswitch/niswitch/enums.py create mode 100644 generated/niswitch/niswitch/errors.py create mode 100644 generated/niswitch/niswitch/grpc_session_options.py create mode 100644 generated/niswitch/niswitch/nidevice_pb2.py create mode 100644 generated/niswitch/niswitch/nidevice_pb2_grpc.py create mode 100644 generated/niswitch/niswitch/niswitch_pb2.py create mode 100644 generated/niswitch/niswitch/niswitch_pb2_grpc.py create mode 100644 generated/niswitch/niswitch/session.py create mode 100644 generated/niswitch/niswitch/unit_tests/_matchers.py create mode 100644 generated/niswitch/niswitch/unit_tests/_mock_helper.py create mode 100644 generated/niswitch/setup.py create mode 100644 generated/niswitch/tox-system_tests.ini create mode 100644 generated/nitclk/README.rst create mode 100644 generated/nitclk/nitclk/VERSION create mode 100644 generated/nitclk/nitclk/__init__.py create mode 100644 generated/nitclk/nitclk/_attributes.py create mode 100644 generated/nitclk/nitclk/_converters.py create mode 100644 generated/nitclk/nitclk/_library.py create mode 100644 generated/nitclk/nitclk/_library_interpreter.py create mode 100644 generated/nitclk/nitclk/_library_singleton.py create mode 100644 generated/nitclk/nitclk/_visatype.py create mode 100644 generated/nitclk/nitclk/errors.py create mode 100644 generated/nitclk/nitclk/session.py create mode 100644 generated/nitclk/nitclk/unit_tests/_matchers.py create mode 100644 generated/nitclk/nitclk/unit_tests/_mock_helper.py create mode 100644 generated/nitclk/nitclk/unit_tests/test_nitclk.py create mode 100644 generated/nitclk/setup.py create mode 100644 generated/nitclk/tox-system_tests.ini diff --git a/README.rst b/README.rst new file mode 100644 index 0000000000..3d7df64f10 --- /dev/null +++ b/README.rst @@ -0,0 +1,665 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nimi-python** repository generates Python bindings (Application Programming Interface) for interacting with the Modular Instrument drivers. The +following drivers are supported: + +* NI-DCPower (Python module: nidcpower) +* NI-Digital Pattern Driver (Python module: nidigital) +* NI-DMM (Python module: nidmm) +* NI-FGEN (Python module: nifgen) +* NI-ModInst (Python module: nimodinst) +* NI-RFSA (Python module: nirfsa) +* NI-RFSG (Python module: nirfsg) +* NI-SCOPE (Python module: niscope) +* NI Switch Executive (Python module: nise) +* NI-SWITCH (Python module: niswitch) +* NI-TClk (Python module: nitclk) + +It is implemented as a set of `Mako templates `_ and per-driver metafiles that produce a Python module for each driver. The driver is +called through its public C API using the `ctypes `_ Python library. + +**nimi-python** supports all the Operating Systems supported by the underlying driver. + +**nimi-python** follows `Python Software Foundation `_ support policy for different versions. + +NI created and supports **nimi-python**. + + +NI-DCPower Python API Status +---------------------------- + ++-------------------------------+--------------------------+ +| NI-DCPower (nidcpower) | | ++===============================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+--------------------------+ +| PyPI Version | |nidcpowerLatestVersion| | ++-------------------------------+--------------------------+ +| Supported Python Version | |nidcpowerPythonVersion| | ++-------------------------------+--------------------------+ +| Documentation | |nidcpowerDocs| | ++-------------------------------+--------------------------+ +| Open Issues | |nidcpowerOpenIssues| | ++-------------------------------+--------------------------+ +| Open Pull Requests | |nidcpowerOpenPRs| | ++-------------------------------+--------------------------+ + + +.. |nidcpowerLatestVersion| image:: http://img.shields.io/pypi/v/nidcpower.svg + :alt: Latest NI-DCPower Version + :target: http://pypi.python.org/pypi/nidcpower + + +.. |nidcpowerPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidcpower.svg + :alt: NI-DCPower supported Python versions + :target: http://pypi.python.org/pypi/nidcpower + + +.. |nidcpowerDocs| image:: https://readthedocs.org/projects/nidcpower/badge/?version=latest + :alt: NI-DCPower Python API Documentation Status + :target: https://nidcpower.readthedocs.io/en/latest + + +.. |nidcpowerOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidcpower.svg + :alt: Open Issues + Pull Requests for NI-DCPower + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidcpower + + +.. |nidcpowerOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidcpower.svg + :alt: Pull Requests for NI-DCPower + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidcpower + + + +NI-Digital Pattern Driver Python API Status +------------------------------------------- + ++---------------------------------------+--------------------------+ +| NI-Digital Pattern Driver (nidigital) | | ++=======================================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++---------------------------------------+--------------------------+ +| PyPI Version | |nidigitalLatestVersion| | ++---------------------------------------+--------------------------+ +| Supported Python Version | |nidigitalPythonVersion| | ++---------------------------------------+--------------------------+ +| Documentation | |nidigitalDocs| | ++---------------------------------------+--------------------------+ +| Open Issues | |nidigitalOpenIssues| | ++---------------------------------------+--------------------------+ +| Open Pull Requests | |nidigitalOpenPRs| | ++---------------------------------------+--------------------------+ + + +.. |nidigitalLatestVersion| image:: http://img.shields.io/pypi/v/nidigital.svg + :alt: Latest NI-Digital Pattern Driver Version + :target: http://pypi.python.org/pypi/nidigital + + +.. |nidigitalPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidigital.svg + :alt: NI-Digital Pattern Driver supported Python versions + :target: http://pypi.python.org/pypi/nidigital + + +.. |nidigitalDocs| image:: https://readthedocs.org/projects/nidigital/badge/?version=latest + :alt: NI-Digital Pattern Driver Python API Documentation Status + :target: https://nidigital.readthedocs.io/en/latest + + +.. |nidigitalOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidigital.svg + :alt: Open Issues + Pull Requests for NI-Digital Pattern Driver + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidigital + + +.. |nidigitalOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidigital.svg + :alt: Pull Requests for NI-Digital Pattern Driver + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidigital + + + +NI-DMM Python API Status +------------------------ + ++-------------------------------+----------------------+ +| NI-DMM (nidmm) | | ++===============================+======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+----------------------+ +| PyPI Version | |nidmmLatestVersion| | ++-------------------------------+----------------------+ +| Supported Python Version | |nidmmPythonVersion| | ++-------------------------------+----------------------+ +| Documentation | |nidmmDocs| | ++-------------------------------+----------------------+ +| Open Issues | |nidmmOpenIssues| | ++-------------------------------+----------------------+ +| Open Pull Requests | |nidmmOpenPRs| | ++-------------------------------+----------------------+ + + +.. |nidmmLatestVersion| image:: http://img.shields.io/pypi/v/nidmm.svg + :alt: Latest NI-DMM Version + :target: http://pypi.python.org/pypi/nidmm + + +.. |nidmmPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidmm.svg + :alt: NI-DMM supported Python versions + :target: http://pypi.python.org/pypi/nidmm + + +.. |nidmmDocs| image:: https://readthedocs.org/projects/nidmm/badge/?version=latest + :alt: NI-DMM Python API Documentation Status + :target: https://nidmm.readthedocs.io/en/latest + + +.. |nidmmOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidmm.svg + :alt: Open Issues + Pull Requests for NI-DMM + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidmm + + +.. |nidmmOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidmm.svg + :alt: Pull Requests for NI-DMM + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidmm + + + +NI-FGEN Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-FGEN (nifgen) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nifgenLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nifgenPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nifgenDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nifgenOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nifgenOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nifgenLatestVersion| image:: http://img.shields.io/pypi/v/nifgen.svg + :alt: Latest NI-FGEN Version + :target: http://pypi.python.org/pypi/nifgen + + +.. |nifgenPythonVersion| image:: http://img.shields.io/pypi/pyversions/nifgen.svg + :alt: NI-FGEN supported Python versions + :target: http://pypi.python.org/pypi/nifgen + + +.. |nifgenDocs| image:: https://readthedocs.org/projects/nifgen/badge/?version=latest + :alt: NI-FGEN Python API Documentation Status + :target: https://nifgen.readthedocs.io/en/latest + + +.. |nifgenOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nifgen.svg + :alt: Open Issues + Pull Requests for NI-FGEN + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anifgen + + +.. |nifgenOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nifgen.svg + :alt: Pull Requests for NI-FGEN + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anifgen + + + +NI-ModInst Python API Status +---------------------------- + ++-------------------------------+--------------------------+ +| NI-ModInst (nimodinst) | | ++===============================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+--------------------------+ +| PyPI Version | |nimodinstLatestVersion| | ++-------------------------------+--------------------------+ +| Supported Python Version | |nimodinstPythonVersion| | ++-------------------------------+--------------------------+ +| Documentation | |nimodinstDocs| | ++-------------------------------+--------------------------+ +| Open Issues | |nimodinstOpenIssues| | ++-------------------------------+--------------------------+ +| Open Pull Requests | |nimodinstOpenPRs| | ++-------------------------------+--------------------------+ + + +.. |nimodinstLatestVersion| image:: http://img.shields.io/pypi/v/nimodinst.svg + :alt: Latest NI-ModInst Version + :target: http://pypi.python.org/pypi/nimodinst + + +.. |nimodinstPythonVersion| image:: http://img.shields.io/pypi/pyversions/nimodinst.svg + :alt: NI-ModInst supported Python versions + :target: http://pypi.python.org/pypi/nimodinst + + +.. |nimodinstDocs| image:: https://readthedocs.org/projects/nimodinst/badge/?version=latest + :alt: NI-ModInst Python API Documentation Status + :target: https://nimodinst.readthedocs.io/en/latest + + +.. |nimodinstOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nimodinst.svg + :alt: Open Issues + Pull Requests for NI-ModInst + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Animodinst + + +.. |nimodinstOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nimodinst.svg + :alt: Pull Requests for NI-ModInst + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Animodinst + + + +NI-RFSA Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-RFSA (nirfsa) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nirfsaLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nirfsaPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nirfsaDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nirfsaOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nirfsaOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nirfsaLatestVersion| image:: http://img.shields.io/pypi/v/nirfsa.svg + :alt: Latest NI-RFSA Version + :target: http://pypi.python.org/pypi/nirfsa + + +.. |nirfsaPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsa.svg + :alt: NI-RFSA supported Python versions + :target: http://pypi.python.org/pypi/nirfsa + + +.. |nirfsaDocs| image:: https://readthedocs.org/projects/nirfsa/badge/?version=latest + :alt: NI-RFSA Python API Documentation Status + :target: https://nirfsa.readthedocs.io/en/latest + + +.. |nirfsaOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsa.svg + :alt: Open Issues + Pull Requests for NI-RFSA + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsa + + +.. |nirfsaOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsa.svg + :alt: Pull Requests for NI-RFSA + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsa + + + +NI-RFSG Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-RFSG (nirfsg) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nirfsgLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nirfsgPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nirfsgDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nirfsgOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nirfsgOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nirfsgLatestVersion| image:: http://img.shields.io/pypi/v/nirfsg.svg + :alt: Latest NI-RFSG Version + :target: http://pypi.python.org/pypi/nirfsg + + +.. |nirfsgPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsg.svg + :alt: NI-RFSG supported Python versions + :target: http://pypi.python.org/pypi/nirfsg + + +.. |nirfsgDocs| image:: https://readthedocs.org/projects/nirfsg/badge/?version=latest + :alt: NI-RFSG Python API Documentation Status + :target: https://nirfsg.readthedocs.io/en/latest + + +.. |nirfsgOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsg.svg + :alt: Open Issues + Pull Requests for NI-RFSG + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsg + + +.. |nirfsgOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsg.svg + :alt: Pull Requests for NI-RFSG + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsg + + + +NI-SCOPE Python API Status +-------------------------- + ++-------------------------------+------------------------+ +| NI-SCOPE (niscope) | | ++===============================+========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+------------------------+ +| PyPI Version | |niscopeLatestVersion| | ++-------------------------------+------------------------+ +| Supported Python Version | |niscopePythonVersion| | ++-------------------------------+------------------------+ +| Documentation | |niscopeDocs| | ++-------------------------------+------------------------+ +| Open Issues | |niscopeOpenIssues| | ++-------------------------------+------------------------+ +| Open Pull Requests | |niscopeOpenPRs| | ++-------------------------------+------------------------+ + + +.. |niscopeLatestVersion| image:: http://img.shields.io/pypi/v/niscope.svg + :alt: Latest NI-SCOPE Version + :target: http://pypi.python.org/pypi/niscope + + +.. |niscopePythonVersion| image:: http://img.shields.io/pypi/pyversions/niscope.svg + :alt: NI-SCOPE supported Python versions + :target: http://pypi.python.org/pypi/niscope + + +.. |niscopeDocs| image:: https://readthedocs.org/projects/niscope/badge/?version=latest + :alt: NI-SCOPE Python API Documentation Status + :target: https://niscope.readthedocs.io/en/latest + + +.. |niscopeOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niscope.svg + :alt: Open Issues + Pull Requests for NI-SCOPE + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniscope + + +.. |niscopeOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niscope.svg + :alt: Pull Requests for NI-SCOPE + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniscope + + + +NI Switch Executive Python API Status +------------------------------------- + ++-------------------------------+---------------------+ +| NI Switch Executive (nise) | | ++===============================+=====================+ +| Driver Version Tested Against | 2023 Q1 | ++-------------------------------+---------------------+ +| PyPI Version | |niseLatestVersion| | ++-------------------------------+---------------------+ +| Supported Python Version | |nisePythonVersion| | ++-------------------------------+---------------------+ +| Documentation | |niseDocs| | ++-------------------------------+---------------------+ +| Open Issues | |niseOpenIssues| | ++-------------------------------+---------------------+ +| Open Pull Requests | |niseOpenPRs| | ++-------------------------------+---------------------+ + + +.. |niseLatestVersion| image:: http://img.shields.io/pypi/v/nise.svg + :alt: Latest NI Switch Executive Version + :target: http://pypi.python.org/pypi/nise + + +.. |nisePythonVersion| image:: http://img.shields.io/pypi/pyversions/nise.svg + :alt: NI Switch Executive supported Python versions + :target: http://pypi.python.org/pypi/nise + + +.. |niseDocs| image:: https://readthedocs.org/projects/nise/badge/?version=latest + :alt: NI Switch Executive Python API Documentation Status + :target: https://nise.readthedocs.io/en/latest + + +.. |niseOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nise.svg + :alt: Open Issues + Pull Requests for NI Switch Executive + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anise + + +.. |niseOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nise.svg + :alt: Pull Requests for NI Switch Executive + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anise + + + +NI-SWITCH Python API Status +--------------------------- + ++-------------------------------+-------------------------+ +| NI-SWITCH (niswitch) | | ++===============================+=========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-------------------------+ +| PyPI Version | |niswitchLatestVersion| | ++-------------------------------+-------------------------+ +| Supported Python Version | |niswitchPythonVersion| | ++-------------------------------+-------------------------+ +| Documentation | |niswitchDocs| | ++-------------------------------+-------------------------+ +| Open Issues | |niswitchOpenIssues| | ++-------------------------------+-------------------------+ +| Open Pull Requests | |niswitchOpenPRs| | ++-------------------------------+-------------------------+ + + +.. |niswitchLatestVersion| image:: http://img.shields.io/pypi/v/niswitch.svg + :alt: Latest NI-SWITCH Version + :target: http://pypi.python.org/pypi/niswitch + + +.. |niswitchPythonVersion| image:: http://img.shields.io/pypi/pyversions/niswitch.svg + :alt: NI-SWITCH supported Python versions + :target: http://pypi.python.org/pypi/niswitch + + +.. |niswitchDocs| image:: https://readthedocs.org/projects/niswitch/badge/?version=latest + :alt: NI-SWITCH Python API Documentation Status + :target: https://niswitch.readthedocs.io/en/latest + + +.. |niswitchOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niswitch.svg + :alt: Open Issues + Pull Requests for NI-SWITCH + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniswitch + + +.. |niswitchOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niswitch.svg + :alt: Pull Requests for NI-SWITCH + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniswitch + + + +NI-TClk Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-TClk (nitclk) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nitclkLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nitclkPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nitclkDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nitclkOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nitclkOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nitclkLatestVersion| image:: http://img.shields.io/pypi/v/nitclk.svg + :alt: Latest NI-TClk Version + :target: http://pypi.python.org/pypi/nitclk + + +.. |nitclkPythonVersion| image:: http://img.shields.io/pypi/pyversions/nitclk.svg + :alt: NI-TClk supported Python versions + :target: http://pypi.python.org/pypi/nitclk + + +.. |nitclkDocs| image:: https://readthedocs.org/projects/nitclk/badge/?version=latest + :alt: NI-TClk Python API Documentation Status + :target: https://nitclk.readthedocs.io/en/latest + + +.. |nitclkOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nitclk.svg + :alt: Open Issues + Pull Requests for NI-TClk + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anitclk + + +.. |nitclkOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nitclk.svg + :alt: Pull Requests for NI-TClk + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anitclk + + +.. _installation-section: + +Installation +============ + +Driver specific installation instructions can be found on **Read the Docs**: + +* `nidcpower `_ +* `nidigital `_ +* `nidmm `_ +* `nifgen `_ +* `nimodinst `_ +* `nirfsa `_ +* `nirfsg `_ +* `niscope `_ +* `nise `_ +* `niswitch `_ +* `nitclk `_ + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nidmm** module to open a session to a DMM and perform a 5.5 digits of resolution voltage measurement in the 10 V range. + +.. code-block:: python + + import nidmm + with nidmm.Session("Dev1") as session: + session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5) + print("Measurement: " + str(session.read())) + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available on **Read the Docs**: + +- https://nidcpower.readthedocs.io +- https://nidigital.readthedocs.io +- https://nidmm.readthedocs.io +- https://nifgen.readthedocs.io +- https://nimodinst.readthedocs.io +- https://nirfsa.readthedocs.io +- https://nirfsg.readthedocs.io +- https://niscope.readthedocs.io +- https://nise.readthedocs.io +- https://niswitch.readthedocs.io +- https://nitclk.readthedocs.io + + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/docs/nidcpower/.readthedocs.yaml b/docs/nidcpower/.readthedocs.yaml new file mode 100644 index 0000000000..dcd41d2979 --- /dev/null +++ b/docs/nidcpower/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nidcpower/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nidcpower/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nidcpower/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nidcpower/about_nidcpower.inc b/docs/nidcpower/about_nidcpower.inc new file mode 100644 index 0000000000..839ba52b1c --- /dev/null +++ b/docs/nidcpower/about_nidcpower.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nidcpower** module provides a Python API for NI-DCPower. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nidcpower** supports all the Operating Systems supported by NI-DCPower. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nidcpower**. + diff --git a/docs/nidcpower/class.rst b/docs/nidcpower/class.rst new file mode 100644 index 0000000000..12652e49cc --- /dev/null +++ b/docs/nidcpower/class.rst @@ -0,0 +1,12281 @@ +.. py:module:: nidcpower + +Session +======= + +.. py:class:: Session(self, resource_name, channels=None, reset=False, options={}, independent_channels=True, *, grpc_options=None) + + + + Creates and returns a new NI-DCPower session to the instrument(s) and channel(s) specified + in **resource name** to be used in all subsequent NI-DCPower method calls. With this method, + you can optionally set the initial state of the following session properties: + + - :py:attr:`nidcpower.Session.simulate` + - :py:attr:`nidcpower.Session.driver_setup` + + After calling this method, the specified channel or channels will be in the Uncommitted + state. + + To place channel(s) in a known start-up state when creating a new session, set **reset** to + True. This action is equivalent to using the :py:meth:`nidcpower.Session.reset` method immediately after initializing the + session. + + To open a session and leave the channel(s) in an existing configuration without passing + through a transitional output state, set **reset** to False. Next, configure the channel(s) + as in the previous session, change the desired settings, and then call the :py:meth:`nidcpower.Session.initiate` method + to write both settings. + + **Details of Independent Channel Operation** + + With this method and channel-based NI-DCPower methods and properties, you can use any + channels in the session independently. For example, you can initiate a subset of channels in + the session with :py:meth:`nidcpower.Session.initiate`, and the other channels in the session remain in the Uncommitted + state. + + When you initialize with independent channels, each channel steps through the NI-DCPower + programming state model independently of all other channels, and you can specify a subset of + channels for most operations. + + **Note** You can make concurrent calls to a session from multiple threads, but the session + executes the calls one at a time. If you specify multiple channels for a method or property, + the session may perform the operation on multiple channels in parallel, though this is not + guaranteed, and some operations may execute sequentially. + + + + + + :param resource_name: + + + Specifies the **resource name** as seen in Measurement + & Automation Explorer (MAX) or lsni, for example "PXI1Slot3" where "PXI1Slot3" is an + instrument's **resource name**. If independent_channels is False, **resource name** + can also be a logical IVI name. + + If independent_channels is True, **resource name** can be names of the instrument(s) + and the channel(s) to initialize. Specify the instrument(s) and channel(s) using the + form "PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or + PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3", where "PXI1Slot3" and "PXI1Slot4" are + instrument resource names followed by channels. If you exclude a channels string + after an instrument resource name, all channels of the instrument(s) are included in + the session. + + + + + :type resource_name: str, list, tuple + + :param channels: + + + For new applications, use the default value of None + and specify the channels in **resource name**. + + Specifies which channel(s) to include in a new session. Specify multiple + channels by using a channel list or a channel range. A channel list is a comma (,) + separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). + A channel range is a lower bound channel followed by a hyphen (-) or colon (:) + followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, + and 2). + + If independent_channels is False, this argument specifies which channels to include + in a legacy synchronized channels session. If you do not specify any channels, by + default all channels on the device are included in the session. + + If independent_channels is True, this argument combines with **resource name** to + specify which channels to include in an independent channels session. Initializing + an independent channels session with a channels argument is deprecated. + + + + + :type channels: str, list, range, tuple + + :param reset: + + + Specifies whether to reset channel(s) during the initialization procedure. + + + + + :type reset: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param independent_channels: + + + Specifies whether to initialize the session with + independent channels. Set this argument to False on legacy applications or if you + are unable to upgrade your NI-DCPower driver runtime to 20.6 or higher. + + + + + :type independent_channels: bool + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: nidcpower.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: abort() + + Transitions the specified channel(s) from the Running state to the + Uncommitted state. If a sequence is running, it is stopped. Any + configuration methods called after this method are not applied until + the :py:meth:`nidcpower.Session.initiate` method is called. If power output is enabled + when you call the :py:meth:`nidcpower.Session.abort` method, the channels remain + in their current state and continue providing power. + + Use the :py:meth:`nidcpower.Session.ConfigureOutputEnabled` method to disable power + output on a per channel basis. Use the :py:meth:`nidcpower.Session.reset` method to + disable output on all channels. + + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for information about the + specific NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].abort` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.abort` + + +clear_latched_output_cutoff_state +--------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: clear_latched_output_cutoff_state(output_cutoff_reason) + + Clears the state of an output cutoff that was engaged. + To clear the state for all output cutoff reasons, use :py:data:`~nidcpower.OutputCutoffReason.ALL`. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_latched_output_cutoff_state` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.clear_latched_output_cutoff_state` + + + :param output_cutoff_reason: + + + Specifies the reasons for which to clear the output cutoff state. + + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.ALL` | Clears all output cutoff conditions | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_HIGH` | Clears cutoffs caused when the output exceeded the high cutoff limit for voltage output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_LOW` | Clears cutoffs caused when the output fell below the low cutoff limit for voltage output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_HIGH` | Clears cutoffs caused when the measured voltage exceeded the high cutoff limit for voltage output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_LOW` | Clears cutoffs caused when the measured voltage fell below the low cutoff limit for voltage output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_HIGH` | Clears cutoffs caused when the measured current exceeded the high cutoff limit for current output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_LOW` | Clears cutoffs caused when the measured current fell below the low cutoff limit for current output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_HIGH` | Clears cutoffs caused when the voltage slew rate increased beyond the positive change cutoff for voltage output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_LOW` | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for voltage output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_HIGH` | Clears cutoffs caused when the current slew rate increased beyond the positive change cutoff for current output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_LOW` | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for current output | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_SATURATED` | Clears cutoffs caused when the measured current saturates the current range | + +---------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + + + :type output_cutoff_reason: :py:data:`nidcpower.OutputCutoffReason` + +close +----- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: close() + + Closes the session specified in **vi** and deallocates the resources + that NI-DCPower reserves. If power output is enabled when you call this + method, the channels remain in their existing state and + continue providing power. Use the :py:meth:`nidcpower.Session.ConfigureOutputEnabled` + method to disable power output on a per channel basis. Use the + :py:meth:`nidcpower.Session.reset` method to disable power output on all channel(s). + + **Related Topics:** + + `Programming + States `__ + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: commit() + + Applies previously configured settings to the specified channel(s). Calling this + method moves the NI-DCPower session from the Uncommitted state into + the Committed state. After calling this method, modifying any + property reverts the NI-DCPower session to the Uncommitted state. Use + the :py:meth:`nidcpower.Session.initiate` method to transition to the Running state. + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for details about the specific + NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].commit` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.commit` + + +configure_aperture_time +----------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: configure_aperture_time(aperture_time, units=nidcpower.ApertureTimeUnits.SECONDS) + + Configures the aperture time on the specified channel(s). + + The supported values depend on the **units**. Refer to the *Aperture + Time* topic for your device in the *NI DC Power Supplies and SMUs Help* + for more information. In general, devices support discrete + **apertureTime** values, and if you configure **apertureTime** to some + unsupported value, NI-DCPower coerces it up to the next supported value. + + Refer to the *Measurement Configuration and Timing* or *DC Noise + Rejection* topic for your device in the *NI DC Power Supplies and SMUs + Help* for more information about how to configure your measurements. + + **Related Topics:** + + `Aperture Time `__ + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_aperture_time` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.configure_aperture_time` + + + :param aperture_time: + + + Specifies the aperture time. Refer to the *Aperture Time* topic for your + device in the *NI DC Power Supplies and SMUs Help* for more information. + + + + + :type aperture_time: float + :param units: + + + Specifies the units for **apertureTime**. + **Defined Values**: + + +-----------------------------------------------------------+------------------------------+ + | :py:data:`~nidcpower.ApertureTimeUnits.SECONDS` | Specifies seconds. | + +-----------------------------------------------------------+------------------------------+ + | :py:data:`~nidcpower.ApertureTimeUnits.POWER_LINE_CYCLES` | Specifies Power Line Cycles. | + +-----------------------------------------------------------+------------------------------+ + + + :type units: :py:data:`nidcpower.ApertureTimeUnits` + +configure_lcr_compensation +-------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: configure_lcr_compensation(compensation_data) + + Applies previously generated open, short, load, as well as open and short custom cable compensation data to LCR measurements. + + This method applies open, short and load compensation data when you have set the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_CONFIGURED`, and it also applies custom cable compensation data when you have set the :py:attr:`nidcpower.Session.cable_length` property to :py:data:`~nidcpower.CableLength.CUSTOM_AS_CONFIGURED`. + + Call this method after you have obtained LCR compensation data. + + If the :py:attr:`nidcpower.Session.lcr_short_custom_cable_compensation_enabled` property is set to True, you must generate data with both :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation` and :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation`; if False, you must only use :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation`, and NI-DCPower uses default short data. + + Call :py:meth:`nidcpower.Session.get_lcr_compensation_data` and pass the **compensation data** to this method. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_lcr_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.configure_lcr_compensation` + + + :param compensation_data: + + + The open, short and load compensation data to apply. + + + + + :type compensation_data: bytes + +configure_lcr_custom_cable_compensation +--------------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: configure_lcr_custom_cable_compensation(custom_cable_compensation_data) + + This method is deprecated. Use :py:meth:`nidcpower.Session.configure_lcr_compensation` + instead. + + Applies previously generated open and short custom cable compensation data to LCR measurements. + + This method applies custom cable compensation data when you have set :py:attr:`nidcpower.Session.cable_length` property to :py:data:`~nidcpower.CableLength.CUSTOM_AS_CONFIGURED`. + + Call this method after you have obtained custom cable compensation data. + + If :py:attr:`nidcpower.Session.lcr_short_custom_cable_compensation_enabled` property is set to True, you must generate data with both :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation` and :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation`; + if False, you must only use :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation`, and NI-DCPower uses default short data. + + Call :py:meth:`nidcpower.Session.get_lcr_custom_cable_compensation_data` and pass the **custom cable compensation data** to this method. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_lcr_custom_cable_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.configure_lcr_custom_cable_compensation` + + + :param custom_cable_compensation_data: + + + The open and short custom cable compensation data to apply. + + + + + :type custom_cable_compensation_data: bytes + +create_advanced_sequence +------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: create_advanced_sequence(sequence_name, property_names, set_as_active_sequence=True) + + Creates an empty advanced sequence. Call the + :py:meth:`nidcpower.Session.create_advanced_sequence_step` method to add steps to the + active advanced sequence. + + You can create multiple advanced sequences in a session. + + **Support for this method** + + You must set the source mode to Sequence to use this method. + + Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence + methods is unsupported. + + Use this method in the Uncommitted or Committed programming states. + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for more information about + NI-DCPower programming states. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + :py:meth:`nidcpower.Session.create_advanced_sequence_step` + + + + .. note:: This method is not supported on all devices. Refer to `Supported + Methods by + Device `__ + for more information about supported devices. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.create_advanced_sequence` + + + :param sequence_name: + + + Specifies the name of the sequence to create. + + + + + :type sequence_name: str + :param property_names: + + + Specifies the names of the properties you reconfigure per step in the advanced sequence. For more information about properties that can be configured in an advanced sequence for each NI-DCPower device that supports advanced sequencing, search ni.com for Supported Properties by Device. + + + + + :type property_names: list of str + :param set_as_active_sequence: + + + Specifies that this current sequence is active. + + + + + :type set_as_active_sequence: bool + +create_advanced_sequence_commit_step +------------------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: create_advanced_sequence_commit_step(set_as_active_step=True) + + Creates a Commit step in the Active advanced sequence. A Commit step + configures channels to a user-defined known state before starting the advanced sequence. + When a Commit step exists in the Active advanced sequence, you cannot + set the output method to Pulse Voltage or Pulse Current in either + the Commit step (-1) or step 0. When you create an advanced sequence + step, each property you passed to the :py:meth:`nidcpower.Session.create_advanced_sequence` + method is reset to its default value for that step unless otherwise specified. + + **Support for this Method** + + You must set the source mode to Sequence to use this method. + + Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence + methods is unsupported. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + :py:meth:`nidcpower.Session.create_advanced_sequence` + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_commit_step` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.create_advanced_sequence_commit_step` + + + :param set_as_active_step: + + + Specifies whether the step created with this method is active in the Active advanced sequence. + + + + + :type set_as_active_step: bool + +create_advanced_sequence_step +----------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: create_advanced_sequence_step(set_as_active_step=True) + + Creates a new advanced sequence step in the advanced sequence specified + by the Active advanced sequence. When you create an advanced sequence + step, each property you passed to the :py:meth:`nidcpower.Session.create_advanced_sequence` + method is reset to its default value for that step unless otherwise + specified. + + **Support for this Method** + + You must set the source mode to Sequence to use this method. + + Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence + methods is unsupported. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + :py:meth:`nidcpower.Session.create_advanced_sequence` + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_step` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.create_advanced_sequence_step` + + + :param set_as_active_step: + + + Specifies whether the step created with this method is active in the Active advanced sequence. + + + + + :type set_as_active_step: bool + +delete_advanced_sequence +------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: delete_advanced_sequence(sequence_name) + + Deletes a previously created advanced sequence and all the advanced + sequence steps in the advanced sequence. + + **Support for this Method** + + You must set the source mode to Sequence to use this method. + + Using the :py:meth:`nidcpower.Session.set_sequence` method with Advanced Sequence + methods is unsupported. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].delete_advanced_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.delete_advanced_sequence` + + + :param sequence_name: + + + specifies the name of the sequence to delete. + + + + + :type sequence_name: str + +disable +------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: disable() + + This method performs the same actions as the :py:meth:`nidcpower.Session.reset` + method, except that this method also immediately sets the + :py:attr:`nidcpower.Session.output_enabled` property to False. + + This method opens the output relay on devices that have an output + relay. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + +export_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: export_attribute_configuration_buffer() + + Exports the property configuration of the session to the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DCPower returns + an error. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + :py:meth:`nidcpower.Session.__init__` method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + + + .. note:: This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + + + :rtype: bytes + :return: + + + Specifies the byte array buffer to be populated with the exported + property configuration. + + + + + +export_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: export_attribute_configuration_file(file_path) + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DCPower returns + an error. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + :py:meth:`nidcpower.Session.__init__` method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + + + .. note:: This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + + + :param file_path: + + + Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:** .nidcpowerconfig + + + + + :type file_path: str + +fetch_multiple +-------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: fetch_multiple(count, timeout=hightime.timedelta(seconds=1.0)) + + Returns a list of named tuples (Measurement) that were + previously taken and are stored in the NI-DCPower buffer. This method + should not be used when the :py:attr:`nidcpower.Session.measure_when` property is + set to :py:data:`~nidcpower.MeasureWhen.ON_DEMAND`. You must first call + :py:meth:`nidcpower.Session.initiate` before calling this method. + + Fields in Measurement: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) + - **channel** (str) + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_multiple` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.fetch_multiple` + + + :param count: + + + Specifies the number of measurements to fetch. + + + + + :type count: int + :param timeout: + + + Specifies the maximum time allowed for this method to complete. If the method does not complete within this time interval, NI-DCPower returns an error. + Default value: 1.0 second + + + + .. note:: When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of Measurement + :return: + + + List of named tuples with fields: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) + - **channel** (str) + + + + + +fetch_multiple_lcr +------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: fetch_multiple_lcr(count, timeout=hightime.timedelta(seconds=1.0)) + + Returns a list of previously measured LCRMeasurement instances on the specified channel that have been taken and stored in a buffer. + + To use this method: + + - Set :py:attr:`nidcpower.Session.measure_when` property to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE` or :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER` + - Put the channel in the Running state (call :py:meth:`nidcpower.Session.initiate`) + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_multiple_lcr` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.fetch_multiple_lcr` + + + :param count: + + + Specifies the number of measurements to fetch. + + + + + :type count: int + :param timeout: + + + Specifies the maximum time allowed for this method to complete, in seconds. + If the method does not complete within this time interval, NI-DCPower returns an error. + Default value: 1.0 second + + + + .. note:: When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of LCRMeasurement + :return: + + + A list of LCRMeasurement instances. + + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | channel | | The channel name associated with this LCR measurement. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | vdc | float | The measured DC voltage, in volts. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | idc | float | The measured DC current, in amps. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_voltage | complex | The measured AC voltage, in volts RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_current | complex | The measured AC current, in amps RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z | complex | The complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y | complex | The complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + +get_channel_name +---------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_channel_name(index) + + Retrieves the output **channelName** that corresponds to the requested + **index**. Use the :py:attr:`nidcpower.Session.channel_count` property to + determine the upper bound of valid values for **index**. + + + + + + :param index: + + + Specifies which channel name to return. The index values begin at + 1. + + + + + :type index: int + + :rtype: str + :return: + + + Returns the channel name that corresponds to **index**. + + + + + +get_channel_names +----------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_channel_names(indices) + + Returns a list of channel names for the given channel indices. + + + + + + :param indices: + + + Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + + + :type indices: basic sequence types or str or int + + :rtype: list of str + :return: + + + The channel name(s) at the specified indices. + + + + + +get_ext_cal_last_date_and_time +------------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_ext_cal_last_date_and_time() + + Returns the date and time of the last successful calibration. + + + + + + :rtype: hightime.datetime + :return: + + + Indicates date and time of the last calibration. + + + + + +get_ext_cal_last_temp +--------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_ext_cal_last_temp() + + Returns the onboard **temperature** of the device, in degrees Celsius, + during the last successful external calibration. + + + + + + :rtype: float + :return: + + + Returns the onboard **temperature** of the device, in degrees Celsius, + during the last successful external calibration. + + + + + +get_ext_cal_recommended_interval +-------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_ext_cal_recommended_interval() + + Returns the recommended maximum interval, in **months**, between + external calibrations. + + + + + + :rtype: hightime.timedelta + :return: + + + Specifies the recommended maximum interval, in **months**, between + external calibrations. + + + + + +get_lcr_compensation_data +------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_lcr_compensation_data() + + Collects previously generated open, short, load, and custom cable compensation data so you can then apply it to LCR measurements with :py:meth:`nidcpower.Session.configure_lcr_compensation`. + + Call this method after you have obtained the compensation data of all types (open, short, load, open custom cable compensation, and short custom cable compensation) you want to apply to your measurements. Pass the **compensation data** to :py:meth:`nidcpower.Session.configure_lcr_compensation` + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_data` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.get_lcr_compensation_data` + + + :rtype: bytes + :return: + + + The open, short, load, and custom cable compensation data to retrieve. + + + + + +get_lcr_compensation_last_date_and_time +--------------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_lcr_compensation_last_date_and_time(compensation_type) + + Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_last_date_and_time` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.get_lcr_compensation_last_date_and_time` + + + :param compensation_type: + + + Specifies the type of compensation for LCR measurements. + + + + + :type compensation_type: :py:data:`nidcpower.LCRCompensationType` + + :rtype: hightime.datetime + :return: + + + Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. + + + + + +get_lcr_custom_cable_compensation_data +-------------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_lcr_custom_cable_compensation_data() + + This method is deprecated. Use :py:meth:`nidcpower.Session.get_lcr_compensation_data` + instead. + + Collects previously generated open and short custom cable compensation data so you can then apply it to LCR measurements with :py:meth:`nidcpower.Session.configure_lcr_custom_cable_compensation`. + + Call this method after you have obtained open and short custom cable compensation data. Pass the **custom cable compensation data** to :py:meth:`nidcpower.Session.configure_lcr_custom_cable_compensation` + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_lcr_custom_cable_compensation_data` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.get_lcr_custom_cable_compensation_data` + + + :rtype: bytes + :return: + + + The open and short custom cable compensation data to retrieve. + + + + + +get_self_cal_last_date_and_time +------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_self_cal_last_date_and_time() + + Returns the date and time of the oldest successful self-calibration from among the channels in the session. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + + :rtype: hightime.datetime + :return: + + + Returns the date and time the device was last calibrated. + + + + + +get_self_cal_last_temp +---------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: get_self_cal_last_temp() + + Returns the onboard temperature of the device, in degrees Celsius, + during the oldest successful self-calibration from among the channels in + the session. + + For example, if you have a session using channels 1 and 2, and you + perform a self-calibration on channel 1 with a device temperature of 25 + degrees Celsius at 2:00, and a self-calibration was performed on channel + 2 at 27 degrees Celsius at 3:00 on the same day, this method returns + 25 for the **temperature** parameter. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + + :rtype: float + :return: + + + Returns the onboard **temperature** of the device, in degrees Celsius, + during the oldest successful calibration. + + + + + +import_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: import_attribute_configuration_buffer(configuration) + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + :py:meth:`nidcpower.Session.__init__` method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Programming + States `__ + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + + + .. note:: This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + + + :param configuration: + + + Specifies the byte array buffer that contains the property + configuration to import. + + + + + :type configuration: bytes + +import_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: import_attribute_configuration_file(file_path) + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + :py:meth:`nidcpower.Session.__init__` method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Programming + States `__ + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + + + .. note:: This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + + + :param file_path: + + + Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:** .nidcpowerconfig + + + + + :type file_path: str + +initiate +-------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: initiate() + + Starts generation or acquisition, causing the specified channel(s) to + leave the Uncommitted state or Committed state and enter the Running + state. To return to the Uncommitted state call the :py:meth:`nidcpower.Session.abort` + method. Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for information about the + specific NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].initiate` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.initiate` + + +lock +---- + + .. py:currentmodule:: nidcpower.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`nidcpower.Session.lock` method. + - A call to NI-DCPower locked the session. + - After a call to the :py:meth:`nidcpower.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`nidcpower.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`nidcpower.Session.lock` method and the + :py:meth:`nidcpower.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`nidcpower.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`nidcpower.Session.lock` method with a call to + the :py:meth:`nidcpower.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with nidcpower.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`nidcpower.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +measure +------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: measure(measurement_type) + + Returns the measured value of either the voltage or current on the + specified channel. Each call to this method blocks other + method calls until the hardware returns the **measurement**. To + measure multiple channels, use the :py:meth:`nidcpower.Session.measure_multiple` + method. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].measure` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.measure` + + + :param measurement_type: + + + Specifies whether a voltage or current value is measured. + **Defined Values**: + + +------------------------------------------------+------------------------------+ + | :py:data:`~nidcpower.MeasurementTypes.VOLTAGE` | The device measures voltage. | + +------------------------------------------------+------------------------------+ + | :py:data:`~nidcpower.MeasurementTypes.CURRENT` | The device measures current. | + +------------------------------------------------+------------------------------+ + + + :type measurement_type: :py:data:`nidcpower.MeasurementTypes` + + :rtype: float + :return: + + + Returns the value of the measurement, either in volts for voltage or + amps for current. + + + + + +measure_multiple +---------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: measure_multiple() + + Returns a list of named tuples (Measurement) containing the measured voltage + and current values on the specified channel(s). Each call to this method + blocks other method calls until the measurements are returned from the device. + The order of the measurements returned in the array corresponds to the order + on the specified channel(s). + + Fields in Measurement: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) - Always None + - **channel** (str) + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].measure_multiple` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.measure_multiple` + + + :rtype: list of Measurement + :return: + + + List of named tuples with fields: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) - Always None + - **channel** (str) + + + + + +measure_multiple_lcr +-------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: measure_multiple_lcr() + + Measures and returns a list of LCRMeasurement instances on the specified channel(s). + + To use this method: + + - Set :py:attr:`nidcpower.Session.instrument_mode` property to :py:data:`~nidcpower.InstrumentMode.LCR` + - Set :py:attr:`nidcpower.Session.measure_when` property to :py:data:`~nidcpower.MeasureWhen.ON_DEMAND` + - Put the channel(s) in the Running state (call :py:meth:`nidcpower.Session.initiate`) + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].measure_multiple_lcr` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.measure_multiple_lcr` + + + :rtype: list of LCRMeasurement + :return: + + + A list of LCRMeasurement instances. + + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | channel | | The channel name associated with this LCR measurement. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | vdc | float | The measured DC voltage, in volts. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | idc | float | The measured DC current, in amps. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_voltage | complex | The measured AC voltage, in volts RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_current | complex | The measured AC current, in amps RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z | complex | The complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y | complex | The complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + +perform_lcr_load_compensation +----------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: perform_lcr_load_compensation(compensation_spots) + + Generates load compensation data for LCR measurements for the test spots you specify. + + You must physically configure your LCR circuit with an appropriate reference load to use this method to generate valid load compensation data. + + When you call this method: + + - The load compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + To apply the load compensation data you generate with this method to your LCR measurements, set the :py:attr:`nidcpower.Session.lcr_load_compensation_enabled` property to True. + + Load compensation data are generated only for those specific frequencies you define with this method; load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_load_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_load_compensation` + + + :param compensation_spots: + + + Defines the frequencies and DUT specifications to use for LCR load compensation. + + You can specify <=1000 spot frequencies. + + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | frequency | The spot frequency, in Hz. | + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | reference_value_type | A known specification value of your DUT to use as the basis for load compensation. | + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | reference_value | A value that describes the **reference_value_type** specification. Use as indicated by the **reference_value_type** option you choose. | + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + + + :type compensation_spots: list of LCRLoadCompensationSpot + +perform_lcr_open_compensation +----------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: perform_lcr_open_compensation(additional_frequencies=None) + + Generates open compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. + + You must physically configure an open LCR circuit to use this method to generate valid open compensation data. + + When you call this method: + + - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + To apply the open compensation data you generate with this method to your LCR measurements, set the :py:attr:`nidcpower.Session.lcr_open_compensation_enabled` property to True. + + Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + .. note:: Default Open Compensation Frequencies: + By default, NI-DCPower uses the following frequencies for LCR open compensation: + + - 10 logarithmic steps at 1 kHz frequency decade + - 10 logarithmic steps at 10 kHz frequency decade + - 100 logarithmic steps at 100 kHz frequency decade + - 100 logarithmic steps at 1 MHz frequency decade + + The actual frequencies used depend on the bandwidth of your instrument. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_open_compensation` + + + :param additional_frequencies: + + + Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. + + + + + :type additional_frequencies: list of float + +perform_lcr_open_custom_cable_compensation +------------------------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: perform_lcr_open_custom_cable_compensation() + + Generates open custom cable compensation data for LCR measurements. + + To use this method, you must physically configure an open LCR circuit to generate valid open custom cable compensation data. + + When you call this method: + + - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_custom_cable_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_open_custom_cable_compensation` + + +perform_lcr_short_compensation +------------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: perform_lcr_short_compensation(additional_frequencies=None) + + Generates short compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. + + You must physically configure your LCR circuit with a short to use this method to generate valid short compensation data. + + When you call this method: + + - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + To apply the short compensation data you generate with this method to your LCR measurements, set the :py:attr:`nidcpower.Session.lcr_short_compensation_enabled` property to True. + + Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + .. note:: Default Short Compensation Frequencies: + By default, NI-DCPower uses the following frequencies for LCR short compensation: + + - 10 logarithmic steps at 1 kHz frequency decade + - 10 logarithmic steps at 10 kHz frequency decade + - 100 logarithmic steps at 100 kHz frequency decade + - 100 logarithmic steps at 1 MHz frequency decade + + The actual frequencies used depend on the bandwidth of your instrument. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_short_compensation` + + + :param additional_frequencies: + + + Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. + + + + + :type additional_frequencies: list of float + +perform_lcr_short_custom_cable_compensation +------------------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: perform_lcr_short_custom_cable_compensation() + + Generates short custom cable compensation data for LCR measurements. + + To use this method: + + - You must physically configure your LCR circuit with a short to generate valid short custom cable compensation data. + - Set :py:attr:`nidcpower.Session.lcr_short_custom_cable_compensation_enabled` property to True + + When you call this method: + + - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_custom_cable_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_short_custom_cable_compensation` + + +query_in_compliance +------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: query_in_compliance() + + Queries the specified channel to determine if it is operating at the compliance limit. + + The compliance limit is the current limit when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`, :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`, :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` or :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. If the output is operating at the compliance limit, the output reaches the current limit before the desired voltage, resistance or power level. + + The compliance limit is the voltage limit when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT` or :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. If the output is operating at the compliance limit, the output reaches the voltage limit before the desired current level. + + Refer to the :py:attr:`nidcpower.Session.output_function` property for more information about the applicable properties to configure for each output method. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_in_compliance` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_in_compliance` + + + :rtype: bool + :return: + + + Returns whether the device channel is in compliance. + + + + + +query_latched_output_cutoff_state +--------------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: query_latched_output_cutoff_state(output_cutoff_reason) + + Discovers if an output cutoff limit was exceeded for the specified reason. When an output cutoff is engaged, the output of the channel(s) is disconnected. + If a limit was exceeded, the state is latched until you clear it with the :py:meth:`nidcpower.Session.clear_latched_output_cutoff_state` method or the :py:meth:`nidcpower.Session.reset` method. + + outputCutoffReason specifies the conditions for which an output is disconnected. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_latched_output_cutoff_state` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_latched_output_cutoff_state` + + + :param output_cutoff_reason: + + + Specifies which output cutoff conditions to query. + + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.ALL` | Any output cutoff condition was met | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_HIGH` | The output exceeded the high cutoff limit for voltage output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_LOW` | The output fell below the low cutoff limit for voltage output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_HIGH` | The measured voltage exceeded the high cutoff limit for voltage output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_LOW` | The measured voltage fell below the low cutoff limit for voltage output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_HIGH` | The measured current exceeded the high cutoff limit for current output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_LOW` | The measured current fell below the low cutoff limit for current output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_HIGH` | The voltage slew rate increased beyond the positive change cutoff for voltage output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_LOW` | The voltage slew rate decreased beyond the negative change cutoff for voltage output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_HIGH` | The current slew rate increased beyond the positive change cutoff for current output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_LOW` | The current slew rate decreased beyond the negative change cutoff for current output | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputCutoffReason.CURRENT_SATURATED` | The measured current saturates the current range | + +---------------------------------------------------------------+--------------------------------------------------------------------------------------+ + + + :type output_cutoff_reason: :py:data:`nidcpower.OutputCutoffReason` + + :rtype: bool + :return: + + + Specifies whether an output cutoff has engaged. + + +-------+------------------------------------------------------------------------------+ + | True | An output cutoff has engaged for the conditions in **output cutoff reason**. | + +-------+------------------------------------------------------------------------------+ + | False | No output cutoff has engaged. | + +-------+------------------------------------------------------------------------------+ + + + +query_max_current_limit +----------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: query_max_current_limit(voltage_level) + + Queries the maximum current limit on a channel if the channel is set to the specified **voltageLevel**. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_max_current_limit` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_max_current_limit` + + + :param voltage_level: + + + Specifies the voltage level to use when calculating the + **maxCurrentLimit**. + + + + + :type voltage_level: float + + :rtype: float + :return: + + + Returns the maximum current limit that can be set with the specified + **voltageLevel**. + + + + + +query_max_voltage_level +----------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: query_max_voltage_level(current_limit) + + Queries the maximum voltage level on a channel if the channel is set to the specified **currentLimit**. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_max_voltage_level` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_max_voltage_level` + + + :param current_limit: + + + Specifies the current limit to use when calculating the + **maxVoltageLevel**. + + + + + :type current_limit: float + + :rtype: float + :return: + + + Returns the maximum voltage level that can be set on a channel + with the specified **currentLimit**. + + + + + +query_min_current_limit +----------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: query_min_current_limit(voltage_level) + + Queries the minimum current limit on a channel if the channel is set to the specified **voltageLevel**. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_min_current_limit` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_min_current_limit` + + + :param voltage_level: + + + Specifies the voltage level to use when calculating the + **minCurrentLimit**. + + + + + :type voltage_level: float + + :rtype: float + :return: + + + Returns the minimum current limit that can be set on a channel + with the specified **voltageLevel**. + + + + + +query_output_state +------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: query_output_state(output_state) + + Queries the specified channel to determine if the channel + is currently in the state specified by **outputState**. + + **Related Topics:** + + `Compliance `__ + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_output_state` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_output_state` + + + :param output_state: + + + Specifies the output state of the channel that is being queried. + **Defined Values**: + + +-----------------------------------------------------+--------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputStates.CONSTANT_VOLTAGE` | The channel maintains a constant voltage by adjusting the current. | + +-----------------------------------------------------+--------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputStates.CONSTANT_CURRENT` | The channel maintains a constant current by adjusting the voltage. | + +-----------------------------------------------------+--------------------------------------------------------------------+ + | :py:data:`~nidcpower.OutputStates.INHIBITED` | The channel is in the inhibited state. | + +-----------------------------------------------------+--------------------------------------------------------------------+ + + + :type output_state: :py:data:`nidcpower.OutputStates` + + :rtype: bool + :return: + + + Returns whether the device channel is in the specified output + state. + + + + + +read_current_temperature +------------------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: read_current_temperature() + + Returns the current onboard **temperature**, in degrees Celsius, of the + device. + + + + + + :rtype: float + :return: + + + Returns the onboard **temperature**, in degrees Celsius, of the device. + + + + + +reset +----- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: reset() + + Resets the specified channel(s) to a known state. This method disables power + generation, resets session properties to their default values, commits + the session properties, and leaves the session in the Uncommitted state. + Refer to the `Programming + States `__ topic for + more information about NI-DCPower software states. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].reset` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.reset` + + +reset_device +------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: reset_device() + + Resets the device to a known state. The method disables power + generation, resets session properties to their default values, clears + errors such as overtemperature and unexpected loss of auxiliary power, + commits the session properties, and leaves the session in the + Uncommitted state. This method also performs a hard reset on the + device and driver software. This method has the same functionality as + using reset in Measurement & Automation Explorer. Refer to the + `Programming + States `__ topic for + more information about NI-DCPower software states. + + This will also open the output relay on devices that have an output + relay. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + +reset_with_defaults +------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: reset_with_defaults() + + Resets the device to a known state. This method disables power + generation, resets session properties to their default values, commits + the session properties, and leaves the session in the + `Running `__ + state. In addition to exhibiting the behavior of the :py:meth:`nidcpower.Session.reset` + method, this method can assign user-defined default values for + configurable properties from the IVI configuration. + + + + + +self_cal +-------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: self_cal() + + Performs a self-calibration upon the specified channel(s). + + This method disables the output, performs several internal + calculations, and updates calibration values. The updated calibration + values are written to the device hardware if the + :py:attr:`nidcpower.Session.self_calibration_persistence` property is set to + :py:data:`~nidcpower.SelfCalibrationPersistence.WRITE_TO_EEPROM`. Refer to the + :py:attr:`nidcpower.Session.self_calibration_persistence` property topic for more + information about the settings for this property. + + When calling :py:meth:`nidcpower.Session.self_cal` with the PXIe-4162/4163, + specify all channels of your PXIe-4162/4163 with the channelName input. + You cannot self-calibrate a subset of PXIe-4162/4163 channels. + + Refer to the + `Self-Calibration `__ topic for + more information about this method. + + **Related Topics:** + + `Self-Calibration `__ + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].self_cal` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.self_cal` + + +self_test +--------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: self_test() + + Performs the device self-test routine and returns the test result(s). + Calling this method implicitly calls the :py:meth:`nidcpower.Session.reset` method. + + When calling :py:meth:`nidcpower.Session.self_test` with the PXIe-4162/4163, specify all + channels of your PXIe-4162/4163 with the channels input of + :py:meth:`nidcpower.Session.__init__`. You cannot self test a subset of + PXIe-4162/4163 channels. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+-------------------+ + | Self-Test Code | Description | + +================+===================+ + | 0 | Self test passed. | + +----------------+-------------------+ + | 1 | Self test failed. | + +----------------+-------------------+ + + + +send_software_edge_trigger +-------------------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: send_software_edge_trigger(trigger) + + Asserts the specified trigger. This method can override an external + edge trigger. + + **Related Topics:** + + `Triggers `__ + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].send_software_edge_trigger` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.send_software_edge_trigger` + + + :param trigger: + + + Specifies which trigger to assert. + **Defined Values:** + + +--------------------------------------------------------------------+---------------------------------------+ + | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.START` | Asserts the Start trigger. | + +--------------------------------------------------------------------+---------------------------------------+ + | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.SOURCE` | Asserts the Source trigger. | + +--------------------------------------------------------------------+---------------------------------------+ + | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.MEASURE` | Asserts the Measure trigger. | + +--------------------------------------------------------------------+---------------------------------------+ + | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.SEQUENCE_ADVANCE` | Asserts the Sequence Advance trigger. | + +--------------------------------------------------------------------+---------------------------------------+ + | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.PULSE` | Asserts the Pulse trigger. | + +--------------------------------------------------------------------+---------------------------------------+ + | :py:data:`~nidcpower.SendSoftwareEdgeTriggerType.SHUTDOWN` | Asserts the Shutdown trigger. | + +--------------------------------------------------------------------+---------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger: :py:data:`nidcpower.SendSoftwareEdgeTriggerType` + +set_sequence +------------ + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: set_sequence(values, source_delays) + + Configures a series of voltage, current, resistance or power outputs and corresponding source delays. The source mode must be set to :py:data:`~nidcpower.SourceMode.SEQUENCE` for this method to take effect. + + Refer to the Configuring the Source Unit topic in the *NI DC Power Supplies and SMUs Help* for more information about how to configure your device. + + Use this method in the Uncommitted or Committed programming states. + Refer to the Programming States topic in the *NI DC Power Supplies and SMUs Help* for more information about NI-DCPower programming states. + + Using this method with Advanced Sequence methods for the same channel in the same session is not supported. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].set_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.set_sequence` + + + :param values: + + + Specifies the series of voltage, current, resistance or power levels, depending on the configured :py:attr:`nidcpower.Session.output_function`. + **Valid values**: The valid values for this parameter are defined by the voltage level range, current level range, constant resistance level range or constant power level range. + + + + + :type values: list of float + :param source_delays: + + + Specifies the source delay that follows the configuration of each value + in the sequence. + **Valid Values**: + The valid values are between 0 and 167 seconds. + + + + + :type source_delays: list of float + +unlock +------ + + .. py:currentmodule:: nidcpower.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`nidcpower.Session.lock`. Refer to :py:meth:`nidcpower.Session.unlock` for additional + information on session locks. + +wait_for_event +-------------- + + .. py:currentmodule:: nidcpower.Session + + .. py:method:: wait_for_event(event_id, timeout=hightime.timedelta(seconds=10.0)) + + Waits until the specified channel(s) have generated the specified event. + + The session monitors whether each type of event has occurred at least + once since the last time this method or the :py:meth:`nidcpower.Session.initiate` + method were called. If an event has only been generated once and you + call this method successively, the method times out. Individual + events must be generated between separate calls of this method. + + + + .. note:: This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + + .. tip:: This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].wait_for_event` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.wait_for_event` + + + :param event_id: + + + Specifies which event to wait for. + **Defined Values:** + + +---------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nidcpower.Event.SOURCE_COMPLETE` | Waits for the Source Complete event. | + +---------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nidcpower.Event.MEASURE_COMPLETE` | Waits for the Measure Complete event. | + +---------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nidcpower.Event.SEQUENCE_ITERATION_COMPLETE` | Waits for the Sequence Iteration Complete event. | + +---------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nidcpower.Event.SEQUENCE_ENGINE_DONE` | Waits for the Sequence Engine Done event. | + +---------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nidcpower.Event.PULSE_COMPLETE` | Waits for the Pulse Complete event. | + +---------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nidcpower.Event.READY_FOR_PULSE_TRIGGER` | Waits for the Ready for Pulse Trigger event. | + +---------------------------------------------------------+--------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type event_id: :py:data:`nidcpower.Event` + :param timeout: + + + Specifies the maximum time allowed for this method to complete, in + seconds. If the method does not complete within this time interval, + NI-DCPower returns an error. + + + + .. note:: When setting the timeout interval, ensure you take into account any + triggers so that the timeout interval is long enough for your + application. + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + +Properties +========== + +active_advanced_sequence +------------------------ + + .. py:attribute:: active_advanced_sequence + + Specifies the advanced sequence to configure or generate. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.active_advanced_sequence` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Active Advanced Sequence** + - C Attribute: **NIDCPOWER_ATTR_ACTIVE_ADVANCED_SEQUENCE** + +active_advanced_sequence_step +----------------------------- + + .. py:attribute:: active_advanced_sequence_step + + Specifies the advanced sequence step to configure. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence_step` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.active_advanced_sequence_step` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Active Advanced Sequence Step** + - C Attribute: **NIDCPOWER_ATTR_ACTIVE_ADVANCED_SEQUENCE_STEP** + +actual_power_allocation +----------------------- + + .. py:attribute:: actual_power_allocation + + Returns the power, in watts, the device is sourcing on each active channel if the :py:attr:`nidcpower.Session.power_allocation_mode` property is set to :py:data:`~nidcpower.PowerAllocationMode.AUTOMATIC` or :py:data:`~nidcpower.PowerAllocationMode.MANUAL`. + + Valid Values: [0, device per-channel maximum power] + + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + This property returns -1 when the :py:attr:`nidcpower.Session.power_allocation_mode` property is set to :py:data:`~nidcpower.PowerAllocationMode.DISABLED`. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].actual_power_allocation` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.actual_power_allocation` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Actual Power Allocation** + - C Attribute: **NIDCPOWER_ATTR_ACTUAL_POWER_ALLOCATION** + +aperture_time +------------- + + .. py:attribute:: aperture_time + + Specifies the measurement aperture time for the channel configuration. Aperture time is specified in the units set by the :py:attr:`nidcpower.Session.aperture_time_units` property. + Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. + Default Value: 0.01666666 seconds + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].aperture_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.aperture_time` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Aperture Time** + - C Attribute: **NIDCPOWER_ATTR_APERTURE_TIME** + +aperture_time_auto_mode +----------------------- + + .. py:attribute:: aperture_time_auto_mode + + Automatically optimizes the measurement aperture time according to the actual current range when measurement autorange is enabled. + Optimization accounts for power line frequency when the :py:attr:`nidcpower.Session.aperture_time_units` property is set to :py:data:`~nidcpower.ApertureTimeUnits.POWER_LINE_CYCLES`. + + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` and the :py:attr:`nidcpower.Session.autorange` property is enabled. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].aperture_time_auto_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.aperture_time_auto_mode` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ApertureTimeAutoMode | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Aperture Time Auto Mode** + - C Attribute: **NIDCPOWER_ATTR_APERTURE_TIME_AUTO_MODE** + +aperture_time_units +------------------- + + .. py:attribute:: aperture_time_units + + Specifies the units of the :py:attr:`nidcpower.Session.aperture_time` property for the channel configuration. + Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. + Default Value: :py:data:`~nidcpower.ApertureTimeUnits.SECONDS` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].aperture_time_units` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.aperture_time_units` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.ApertureTimeUnits | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Aperture Time Units** + - C Attribute: **NIDCPOWER_ATTR_APERTURE_TIME_UNITS** + +autorange +--------- + + .. py:attribute:: autorange + + Specifies whether the hardware automatically selects the best range to measure the signal. Note the highest range the algorithm uses is dependent on the corresponding limit range property. The algorithm the hardware uses can be controlled using the :py:attr:`nidcpower.Session.autorange_aperture_time_mode` property. + + + + .. note:: Autoranging begins at module startup and remains active until the module is reconfigured or reset. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Autorange** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE** + +autorange_aperture_time_mode +---------------------------- + + .. py:attribute:: autorange_aperture_time_mode + + Specifies whether the aperture time used for the measurement autorange algorithm is determined automatically or customized using the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_aperture_time_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_aperture_time_mode` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.AutorangeApertureTimeMode | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Aperture Time Mode** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_APERTURE_TIME_MODE** + +autorange_behavior +------------------ + + .. py:attribute:: autorange_behavior + + Specifies the algorithm the hardware uses for measurement autoranging. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.AutorangeBehavior | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Behavior** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_BEHAVIOR** + +autorange_maximum_delay_after_range_change +------------------------------------------ + + .. py:attribute:: autorange_maximum_delay_after_range_change + + Balances between settling time and maximum measurement time by specifying the maximum time delay between when a range change occurs and when measurements resume. + **Valid Values:** The minimum and maximum values of this property are hardware-dependent. + PXIe-4135/4136/4137: 0 to 9 seconds + PXIe-4138/4139: 0 to 9 seconds + PXIe-4147: 0 to 9 seconds + PXIe-4162/4163: 0 to 0.1 seconds. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_maximum_delay_after_range_change` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_maximum_delay_after_range_change` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Maximum Delay After Range Change** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MAXIMUM_DELAY_AFTER_RANGE_CHANGE** + +autorange_minimum_aperture_time +------------------------------- + + .. py:attribute:: autorange_minimum_aperture_time + + Specifies the measurement autorange aperture time used for the measurement autorange algorithm. The aperture time is specified in the units set by the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time_units` property. This value will typically be smaller than the aperture time used for measurements. + + + + .. note:: For smaller ranges, the value is scaled up to account for noise. The factor used to scale the value is derived from the module capabilities. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_aperture_time` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Aperture Time** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_APERTURE_TIME** + +autorange_minimum_aperture_time_units +------------------------------------- + + .. py:attribute:: autorange_minimum_aperture_time_units + + Specifies the units of the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time_units` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_aperture_time_units` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.ApertureTimeUnits | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Aperture Time Units** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_APERTURE_TIME_UNITS** + +autorange_minimum_current_range +------------------------------- + + .. py:attribute:: autorange_minimum_current_range + + Specifies the lowest range used during measurement autoranging. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and minimize frequent and unpredictable range changes for noisy signals. + + + + .. note:: The maximum range used is the range that includes the value specified in the compliance limit property, :py:attr:`nidcpower.Session.voltage_limit_range` property or :py:attr:`nidcpower.Session.current_limit_range` property, depending on the selected :py:attr:`nidcpower.Session.output_function`. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_current_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_current_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Current Range** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_CURRENT_RANGE** + +autorange_minimum_voltage_range +------------------------------- + + .. py:attribute:: autorange_minimum_voltage_range + + Specifies the lowest range used during measurement autoranging. The maximum range used is range that includes the value specified in the compliance limit property. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and/or minimize thrashing between ranges for noisy signals. + + + + .. note:: The maximum range used is the range that includes the value specified in the compliance limit property, :py:attr:`nidcpower.Session.voltage_limit_range` property or :py:attr:`nidcpower.Session.current_limit_range` property, depending on the selected :py:attr:`nidcpower.Session.output_function`. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_voltage_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_voltage_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Minimum Voltage Range** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_MINIMUM_VOLTAGE_RANGE** + +autorange_threshold_mode +------------------------ + + .. py:attribute:: autorange_threshold_mode + + Specifies thresholds used during autoranging to determine when range changing occurs. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_threshold_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_threshold_mode` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.AutorangeThresholdMode | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Autorange Threshold Mode** + - C Attribute: **NIDCPOWER_ATTR_AUTORANGE_THRESHOLD_MODE** + +auto_zero +--------- + + .. py:attribute:: auto_zero + + Specifies the auto-zero method to use on the device. + Refer to the NI PXI-4132 Measurement Configuration and Timing and Auto Zero topics for more information about how to configure your measurements. + Default Value: The default value for the NI PXI-4132 is :py:data:`~nidcpower.AutoZero.ON`. The default value for all other devices is :py:data:`~nidcpower.AutoZero.OFF`, which is the only supported value for these devices. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].auto_zero` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.auto_zero` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.AutoZero | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Auto Zero** + - C Attribute: **NIDCPOWER_ATTR_AUTO_ZERO** + +auxiliary_power_source_available +-------------------------------- + + .. py:attribute:: auxiliary_power_source_available + + Indicates whether an auxiliary power source is connected to the device. + A value of False may indicate that the auxiliary input fuse has blown. Refer to the Detecting Internal/Auxiliary Power topic in the NI DC Power Supplies and SMUs Help for more information about internal and auxiliary power. + power source to generate power. Use the :py:attr:`nidcpower.Session.power_source_in_use` property to retrieve this information. + + + + .. note:: This property does not necessarily indicate if the device is using the auxiliary + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Advanced:Auxiliary Power Source Available** + - C Attribute: **NIDCPOWER_ATTR_AUXILIARY_POWER_SOURCE_AVAILABLE** + +cable_length +------------ + + .. py:attribute:: cable_length + + Specifies how to apply cable compensation data for instruments that support LCR functionality. + Supported instruments use cable compensation for the following operations: + + SMU mode: to stabilize DC current sourcing in the two smallest current ranges. + LCR mode: to compensate for the effects of cabling on LCR measurements. + + For NI standard options, select the length of your NI cable to apply compensation data for a typical cable of that type. + For custom options, choose the source of the custom cable compensation data. You must then generate the custom cable compensation data. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].cable_length` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.cable_length` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.CableLength | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:LCR:Cable Length** + - C Attribute: **NIDCPOWER_ATTR_CABLE_LENGTH** + +channel_count +------------- + + .. py:attribute:: channel_count + + Indicates the number of channels that NI-DCPower supports for the instrument that was chosen when the current session was opened. For channel-based properties, the IVI engine maintains a separate cache value for each channel. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Channel Count** + - C Attribute: **NIDCPOWER_ATTR_CHANNEL_COUNT** + +compliance_limit_symmetry +------------------------- + + .. py:attribute:: compliance_limit_symmetry + + Specifies whether compliance limits for current generation and voltage + generation for the device are applied symmetrically about 0 V and 0 A or + asymmetrically with respect to 0 V and 0 A. + When set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`, voltage limits and current limits are set + using a single property with a positive value. The resulting range is + bounded by this positive value and its opposite. + When set to :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC`, you must separately set a limit high and a + limit low using distinct properties. + For asymmetric limits, the range bounded by the limit high and limit low + must include zero. + **Default Value:** Symmetric + **Related Topics:** + Compliance; + Ranges; + Changing Ranges; + Overranging + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].compliance_limit_symmetry` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.compliance_limit_symmetry` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.ComplianceLimitSymmetry | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Compliance Limit Symmetry** + - C Attribute: **NIDCPOWER_ATTR_COMPLIANCE_LIMIT_SYMMETRY** + +conduction_voltage_mode +----------------------- + + .. py:attribute:: conduction_voltage_mode + + Specifies whether the conduction voltage feature is enabled on the specified channel(s). + + When the conduction voltage feature is enabled, + - The instrument will not begin sinking on the specified channel(s) until the voltage at the input of the specified channel(s) rises above :py:attr:`nidcpower.Session.conduction_voltage_on_threshold` + - The instrument will stop sinking if the voltage at the input of the specified channel(s) falls below :py:attr:`nidcpower.Session.conduction_voltage_off_threshold`. + + When the conduction voltage feature is disabled, + - The instrument will start sinking regardless of the voltage at the input of the specified channel(s). + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.conduction_voltage_mode` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.ConductionVoltageMode | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Conduction Voltage:Mode** + - C Attribute: **NIDCPOWER_ATTR_CONDUCTION_VOLTAGE_MODE** + +conduction_voltage_off_threshold +-------------------------------- + + .. py:attribute:: conduction_voltage_off_threshold + + Specifies the minimum voltage, in volts, at the input of the specified channel(s) below which the instrument stops sinking on the specified channel(s) when the conduction voltage feature is enabled. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_off_threshold` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.conduction_voltage_off_threshold` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Conduction Voltage:Off Threshold** + - C Attribute: **NIDCPOWER_ATTR_CONDUCTION_VOLTAGE_OFF_THRESHOLD** + +conduction_voltage_on_threshold +------------------------------- + + .. py:attribute:: conduction_voltage_on_threshold + + Specifies the required minimum voltage, in volts, at the input of the specified channel(s) before the instrument starts sinking on the specified channel(s) when the conduction voltage feature is enabled. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_on_threshold` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.conduction_voltage_on_threshold` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Conduction Voltage:On Threshold** + - C Attribute: **NIDCPOWER_ATTR_CONDUCTION_VOLTAGE_ON_THRESHOLD** + +constant_power_compensation_frequency +------------------------------------- + + .. py:attribute:: constant_power_compensation_frequency + + The frequency at which a pole-zero pair is added to the system when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the output current is below the current limit. + + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_compensation_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Constant Power:Compensation Frequency** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_COMPENSATION_FREQUENCY** + +constant_power_current_limit +---------------------------- + + .. py:attribute:: constant_power_current_limit + + Specifies the current limit, in amps, that the output cannot exceed when generating the desired power level on the specified channel(s). + The device will operate in Constant Current mode if the current exceeds the specified limit. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. + + Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_power_level_range`. + + + + .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_current_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Constant Power:Current Limit** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_CURRENT_LIMIT** + +constant_power_gain_bandwidth +----------------------------- + + .. py:attribute:: constant_power_gain_bandwidth + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the output current is below the current limit. + + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_gain_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Constant Power:Gain Bandwidth** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_GAIN_BANDWIDTH** + +constant_power_level +-------------------- + + .. py:attribute:: constant_power_level + + Specifies the power level, in watts, that the device attempts to generate on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. + + Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_power_level_range`. + + + + .. note:: The channel must be enabled for the specified power level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Constant Power:Level** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_LEVEL** + +constant_power_level_range +-------------------------- + + .. py:attribute:: constant_power_level_range + + Specifies the power level range, in watts, for the specified channel(s). + The range defines the valid values to which you can set the power level. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. + + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The voltage range and current range used by the instrument are automatically determined by the selected power level range. For more information, refer to the specifications for your instrument. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Constant Power:Level Range** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_LEVEL_RANGE** + +constant_power_pole_zero_ratio +------------------------------ + + .. py:attribute:: constant_power_pole_zero_ratio + + The ratio of the pole frequency to the zero frequency when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` and the output current is below the current limit. + + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_pole_zero_ratio` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Constant Power:Pole-Zero Ratio** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_POWER_POLE_ZERO_RATIO** + +constant_resistance_compensation_frequency +------------------------------------------ + + .. py:attribute:: constant_resistance_compensation_frequency + + The frequency at which a pole-zero pair is added to the system when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the output current is below the current limit. + + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_compensation_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Constant Resistance:Compensation Frequency** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_COMPENSATION_FREQUENCY** + +constant_resistance_current_limit +--------------------------------- + + .. py:attribute:: constant_resistance_current_limit + + Specifies the current limit, in amps, that the output cannot exceed when generating the desired resistance level on the specified channel(s). + The device will operate in Constant Current mode if the current exceeds the specified limit. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. + + Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_resistance_level_range`. + + + + .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_current_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Constant Resistance:Current Limit** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_CURRENT_LIMIT** + +constant_resistance_gain_bandwidth +---------------------------------- + + .. py:attribute:: constant_resistance_gain_bandwidth + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the output current is below the current limit. + + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_gain_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Constant Resistance:Gain Bandwidth** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_GAIN_BANDWIDTH** + +constant_resistance_level +------------------------- + + .. py:attribute:: constant_resistance_level + + Specifies the resistance level, in ohms, that the device attempts to generate on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE`. + + Valid Values: The valid values for this property are determined by the selected value for :py:attr:`nidcpower.Session.constant_resistance_level_range`. + + + + .. note:: The channel must be enabled for the specified resistance level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Constant Resistance:Level** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_LEVEL** + +constant_resistance_level_range +------------------------------- + + .. py:attribute:: constant_resistance_level_range + + Specifies the resistance level range, in ohms, for the specified channel(s). + The range defines the valid values to which you can set the resistance level. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE`. + + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The voltage range and current range used by the instrument are automatically determined by the selected resistance level range. For more information, refer to the specifications for your instrument. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Constant Resistance:Level Range** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_LEVEL_RANGE** + +constant_resistance_pole_zero_ratio +----------------------------------- + + .. py:attribute:: constant_resistance_pole_zero_ratio + + The ratio of the pole frequency to the zero frequency when the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` and the output current is below the current limit. + + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_pole_zero_ratio` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Constant Resistance:Pole-Zero Ratio** + - C Attribute: **NIDCPOWER_ATTR_CONSTANT_RESISTANCE_POLE_ZERO_RATIO** + +current_compensation_frequency +------------------------------ + + .. py:attribute:: current_compensation_frequency + + The frequency at which a pole-zero pair is added to the system when the channel is in Constant Current mode. + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_compensation_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Current:Compensation Frequency** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_COMPENSATION_FREQUENCY** + +current_gain_bandwidth +---------------------- + + .. py:attribute:: current_gain_bandwidth + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Current mode. + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_gain_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Current:Gain Bandwidth** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_GAIN_BANDWIDTH** + +current_level +------------- + + .. py:attribute:: current_level + + Specifies the current level, in amps, that the device attempts to generate on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + + Valid Values: The valid values for this property are defined by the values to which the :py:attr:`nidcpower.Session.current_level_range` property is set. + + + + .. note:: The channel must be enabled for the specified current level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Current Level** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL** + +current_level_autorange +----------------------- + + .. py:attribute:: current_level_autorange + + Specifies whether NI-DCPower automatically selects the current level range based on the desired current level for the specified channels. + If you set this property to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.current_level_range` property. If you change the :py:attr:`nidcpower.Session.current_level_autorange` property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.current_level_range` property was set to (or the default value if the property was never set) and uses that value as the current level range. + Query the :py:attr:`nidcpower.Session.current_level_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method for information about which range NI-DCPower automatically selects. + The :py:attr:`nidcpower.Session.current_level_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + Default Value: :py:data:`~nidcpower.AutoZero.OFF` + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_autorange` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Current Level Autorange** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_AUTORANGE** + +current_level_falling_slew_rate +------------------------------- + + .. py:attribute:: current_level_falling_slew_rate + + Specifies the rate of decrease, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). + This property is applicable only if you set the :py:attr:`nidcpower.Session.output_function` property to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_falling_slew_rate` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_falling_slew_rate` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Current Level Slew Rate:Falling** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_FALLING_SLEW_RATE** + +current_level_range +------------------- + + .. py:attribute:: current_level_range + + Specifies the current level range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the current level. Use the :py:attr:`nidcpower.Session.current_level_autorange` property to enable automatic selection of the current level range. + The :py:attr:`nidcpower.Session.current_level_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The channel must be enabled for the specified current level range to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Current Level Range** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_RANGE** + +current_level_rising_slew_rate +------------------------------ + + .. py:attribute:: current_level_rising_slew_rate + + Specifies the rate of increase, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). + This property is applicable only if you set the :py:attr:`nidcpower.Session.output_function` property to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_rising_slew_rate` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_rising_slew_rate` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Current Level Slew Rate:Rising** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LEVEL_RISING_SLEW_RATE** + +current_limit +------------- + + .. py:attribute:: current_limit + + Specifies the current limit, in amps, that the output cannot exceed when generating the desired voltage level on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. + + Valid Values: The valid values for this property are defined by the values to which :py:attr:`nidcpower.Session.current_limit_range` property is set. + + + + .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Current Limit** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT** + +current_limit_autorange +----------------------- + + .. py:attribute:: current_limit_autorange + + Specifies whether NI-DCPower automatically selects the current limit range based on the desired current limit for the specified channel(s). + If you set this property to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.current_limit_range` property. If you change this property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.current_limit_range` property was set to (or the default value if the property was never set) and uses that value as the current limit range. + Query the :py:attr:`nidcpower.Session.current_limit_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method for information about which range NI-DCPower automatically selects. + The :py:attr:`nidcpower.Session.current_limit_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + Default Value: :py:data:`~nidcpower.AutoZero.OFF` + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_autorange` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Current Limit Autorange** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_AUTORANGE** + +current_limit_behavior +---------------------- + + .. py:attribute:: current_limit_behavior + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.CurrentLimitBehavior | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_BEHAVIOR** + +current_limit_high +------------------ + + .. py:attribute:: current_limit_high + + Specifies the maximum current, in amps, that the output can produce when + generating the desired voltage on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + You must also specify a :py:attr:`nidcpower.Session.current_limit_low` to complete the asymmetric + range. + **Valid Values:** [1% of :py:attr:`nidcpower.Session.current_limit_range`, :py:attr:`nidcpower.Session.current_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Current Limit High** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_HIGH** + +current_limit_low +----------------- + + .. py:attribute:: current_limit_low + + Specifies the minimum current, in amps, that the output can produce when + generating the desired voltage on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + You must also specify a :py:attr:`nidcpower.Session.current_limit_high` to complete the asymmetric + range. + **Valid Values:** [-:py:attr:`nidcpower.Session.current_limit_range`, -1% of :py:attr:`nidcpower.Session.current_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Current Limit Low** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_LOW** + +current_limit_range +------------------- + + .. py:attribute:: current_limit_range + + Specifies the current limit range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the current limit. Use the :py:attr:`nidcpower.Session.current_limit_autorange` property to enable automatic selection of the current limit range. + The :py:attr:`nidcpower.Session.current_limit_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Current Limit Range** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_LIMIT_RANGE** + +current_pole_zero_ratio +----------------------- + + .. py:attribute:: current_pole_zero_ratio + + The ratio of the pole frequency to the zero frequency when the channel is in Constant Current mode. + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_pole_zero_ratio` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Current:Pole-Zero Ratio** + - C Attribute: **NIDCPOWER_ATTR_CURRENT_POLE_ZERO_RATIO** + +dc_noise_rejection +------------------ + + .. py:attribute:: dc_noise_rejection + + Determines the relative weighting of samples in a measurement. Refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic in the NI DC Power Supplies and SMUs Help for more information about noise rejection. + Default Value: :py:data:`~nidcpower.TransientResponse.NORMAL` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].dc_noise_rejection` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.dc_noise_rejection` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.DCNoiseRejection | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | channels | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:DC Noise Rejection** + - C Attribute: **NIDCPOWER_ATTR_DC_NOISE_REJECTION** + +digital_edge_measure_trigger_input_terminal +------------------------------------------- + + .. py:attribute:: digital_edge_measure_trigger_input_terminal + + Specifies the input terminal for the Measure trigger. This property is used only when the :py:attr:`nidcpower.Session.measure_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. + for this property. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_measure_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_measure_trigger_input_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Measure Trigger:Digital Edge:Input Terminal** + - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_MEASURE_TRIGGER_INPUT_TERMINAL** + +digital_edge_pulse_trigger_input_terminal +----------------------------------------- + + .. py:attribute:: digital_edge_pulse_trigger_input_terminal + + Specifies the input terminal for the Pulse trigger. This property is used only when the :py:attr:`nidcpower.Session.pulse_trigger_type` property is set to digital edge. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_pulse_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_pulse_trigger_input_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Pulse Trigger:Digital Edge:Input Terminal** + - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_PULSE_TRIGGER_INPUT_TERMINAL** + +digital_edge_sequence_advance_trigger_input_terminal +---------------------------------------------------- + + .. py:attribute:: digital_edge_sequence_advance_trigger_input_terminal + + Specifies the input terminal for the Sequence Advance trigger. Use this property only when the :py:attr:`nidcpower.Session.sequence_advance_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. + the NI DC Power Supplies and SMUs Help for information about supported devices. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_sequence_advance_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_sequence_advance_trigger_input_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Sequence Advance Trigger:Digital Edge:Input Terminal** + - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_SEQUENCE_ADVANCE_TRIGGER_INPUT_TERMINAL** + +digital_edge_shutdown_trigger_input_terminal +-------------------------------------------- + + .. py:attribute:: digital_edge_shutdown_trigger_input_terminal + + Specifies the input terminal for the Shutdown trigger. This property is used only when the :py:attr:`nidcpower.Session.shutdown_trigger_type` property is set to digital edge. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_shutdown_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_shutdown_trigger_input_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Shutdown Trigger:Digital Edge:Input Terminal** + - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_SHUTDOWN_TRIGGER_INPUT_TERMINAL** + +digital_edge_source_trigger_input_terminal +------------------------------------------ + + .. py:attribute:: digital_edge_source_trigger_input_terminal + + Specifies the input terminal for the Source trigger. Use this property only when the :py:attr:`nidcpower.Session.source_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_source_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_source_trigger_input_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Source Trigger:Digital Edge:Input Terminal** + - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_SOURCE_TRIGGER_INPUT_TERMINAL** + +digital_edge_start_trigger_input_terminal +----------------------------------------- + + .. py:attribute:: digital_edge_start_trigger_input_terminal + + Specifies the input terminal for the Start trigger. Use this property only when the :py:attr:`nidcpower.Session.start_trigger_type` property is set to :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE`. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_start_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_start_trigger_input_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start Trigger:Digital Edge:Input Terminal** + - C Attribute: **NIDCPOWER_ATTR_DIGITAL_EDGE_START_TRIGGER_INPUT_TERMINAL** + +driver_setup +------------ + + .. py:attribute:: driver_setup + + Indicates the Driver Setup string that you specified when initializing the driver. + Some cases exist where you must specify the instrument driver options at initialization time. An example of this case is specifying a particular device model from among a family of devices that the driver supports. This property is useful when simulating a device. You can specify the driver-specific options through the DriverSetup keyword in the optionsString parameter in the :py:meth:`nidcpower.Session.__init__` method or through the IVI Configuration Utility. + You can specify driver-specific options through the DriverSetup keyword in the optionsString parameter in the :py:meth:`nidcpower.Session.__init__` method. If you do not specify a Driver Setup string, this property returns an empty string. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Driver Setup** + - C Attribute: **NIDCPOWER_ATTR_DRIVER_SETUP** + +exported_measure_trigger_output_terminal +---------------------------------------- + + .. py:attribute:: exported_measure_trigger_output_terminal + + Specifies the output terminal for exporting the Measure trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_measure_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_measure_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Measure Trigger:Export Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_EXPORTED_MEASURE_TRIGGER_OUTPUT_TERMINAL** + +exported_pulse_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_pulse_trigger_output_terminal + + Specifies the output terminal for exporting the Pulse trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_pulse_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_pulse_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Pulse Trigger:Export Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_EXPORTED_PULSE_TRIGGER_OUTPUT_TERMINAL** + +exported_sequence_advance_trigger_output_terminal +------------------------------------------------- + + .. py:attribute:: exported_sequence_advance_trigger_output_terminal + + Specifies the output terminal for exporting the Sequence Advance trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_sequence_advance_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_sequence_advance_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Sequence Advance Trigger:Export Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_EXPORTED_SEQUENCE_ADVANCE_TRIGGER_OUTPUT_TERMINAL** + +exported_source_trigger_output_terminal +--------------------------------------- + + .. py:attribute:: exported_source_trigger_output_terminal + + Specifies the output terminal for exporting the Source trigger. + Refer to the Device Routes tab in MAX for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_source_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_source_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Source Trigger:Export Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_EXPORTED_SOURCE_TRIGGER_OUTPUT_TERMINAL** + +exported_start_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_start_trigger_output_terminal + + Specifies the output terminal for exporting the Start trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer (MAX) for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_start_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_start_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start Trigger:Export Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** + +fetch_backlog +------------- + + .. py:attribute:: fetch_backlog + + Returns the number of measurements acquired that have not been fetched yet. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].fetch_backlog` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.fetch_backlog` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Fetch Backlog** + - C Attribute: **NIDCPOWER_ATTR_FETCH_BACKLOG** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + Contains the firmware revision information for the device you are currently using. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_firmware_revision` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** + - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + Contains the name of the manufacturer for the device you are currently using. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_manufacturer` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_manufacturer` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** + - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_mode +--------------- + + .. py:attribute:: instrument_mode + + Specifies the mode of operation for an instrument channel for instruments that support multiple modes. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].instrument_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_mode` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.InstrumentMode | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Instrument Mode** + - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_MODE** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + Contains the model number or name of the device that you are currently using. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_model` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_model` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** + - C Attribute: **NIDCPOWER_ATTR_INSTRUMENT_MODEL** + +interlock_input_open +-------------------- + + .. py:attribute:: interlock_input_open + + Indicates whether the safety interlock circuit is open. + Refer to the Safety Interlock topic in the NI DC Power Supplies and SMUs Help for more information about the safety interlock circuit. + about supported devices. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].interlock_input_open` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.interlock_input_open` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | bool | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Advanced:Interlock Input Open** + - C Attribute: **NIDCPOWER_ATTR_INTERLOCK_INPUT_OPEN** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Indicates the resource descriptor NI-DCPower uses to identify the physical device. + If you initialize NI-DCPower with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. + If you initialize NI-DCPower with the resource descriptor, this property contains that value. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** + - C Attribute: **NIDCPOWER_ATTR_IO_RESOURCE_DESCRIPTOR** + +isolation_state +--------------- + + .. py:attribute:: isolation_state + + Defines whether the channel is isolated. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].isolation_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.isolation_state` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Advanced:Isolation State** + - C Attribute: **NIDCPOWER_ATTR_ISOLATION_STATE** + +lcr_actual_load_reactance +------------------------- + + .. py:attribute:: lcr_actual_load_reactance + + Specifies the actual reactance, in ohms, of the load used for load LCR compensation. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_reactance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_actual_load_reactance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:LCR Actual Load Reactance** + - C Attribute: **NIDCPOWER_ATTR_LCR_ACTUAL_LOAD_REACTANCE** + +lcr_actual_load_resistance +-------------------------- + + .. py:attribute:: lcr_actual_load_resistance + + Specifies the actual resistance, in ohms, of the load used for load LCR compensation. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_actual_load_resistance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:LCR Actual Load Resistance** + - C Attribute: **NIDCPOWER_ATTR_LCR_ACTUAL_LOAD_RESISTANCE** + +lcr_ac_dither_enabled +--------------------- + + .. py:attribute:: lcr_ac_dither_enabled + + Specifies whether dithering is enabled during LCR measurements. + Dithering adds out-of-band noise to improve measurements of small voltage and current signals. + + + + .. note:: Hardware is only warranted to meet its accuracy specs with dither enabled. You can disable dither if the added noise interferes with your device-under-test. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_ac_dither_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_ac_dither_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Advanced:Dither Enabled** + - C Attribute: **NIDCPOWER_ATTR_LCR_AC_DITHER_ENABLED** + +lcr_ac_electrical_cable_length_delay +------------------------------------ + + .. py:attribute:: lcr_ac_electrical_cable_length_delay + + Specifies the one-way electrical length delay of the cable, in seconds. + The default value depends on :py:attr:`nidcpower.Session.cable_length`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_ac_electrical_cable_length_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_ac_electrical_cable_length_delay` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:LCR AC Electrical Cable Length Delay** + - C Attribute: **NIDCPOWER_ATTR_LCR_AC_ELECTRICAL_CABLE_LENGTH_DELAY** + +lcr_automatic_level_control +--------------------------- + + .. py:attribute:: lcr_automatic_level_control + + Specifies whether the channel actively attempts to maintain a constant test voltage or current across the DUT for LCR measurements. + The use of voltage or current depends on the test signal you configure with the :py:attr:`nidcpower.Session.lcr_stimulus_function` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_automatic_level_control` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_automatic_level_control` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Automatic Level Control** + - C Attribute: **NIDCPOWER_ATTR_LCR_AUTOMATIC_LEVEL_CONTROL** + +lcr_current_amplitude +--------------------- + + .. py:attribute:: lcr_current_amplitude + + Specifies the amplitude, in amps RMS, of the AC current test signal applied to the DUT for LCR measurements. + This property applies when the :py:attr:`nidcpower.Session.lcr_stimulus_function` property is set to :py:data:`~nidcpower.LCRStimulusFunction.CURRENT`. + + Valid Values: 7.08e-9 A RMS to 0.707 A RMS + + Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_current_amplitude` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_current_amplitude` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Current Amplitude** + - C Attribute: **NIDCPOWER_ATTR_LCR_CURRENT_AMPLITUDE** + +lcr_current_range +----------------- + + .. py:attribute:: lcr_current_range + + Specifies the current range, in amps RMS, for the specified channel(s). + The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_current_amplitude`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_current_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_current_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Advanced:Current Range** + - C Attribute: **NIDCPOWER_ATTR_LCR_CURRENT_RANGE** + +lcr_custom_measurement_time +--------------------------- + + .. py:attribute:: lcr_custom_measurement_time + + Specifies the LCR measurement aperture time for a channel, in seconds, + when the :py:attr:`nidcpower.Session.lcr_measurement_time` property is set to :py:data:`~nidcpower.LCRMeasurementTime.CUSTOM`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_custom_measurement_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_custom_measurement_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Custom Measurement Time** + - C Attribute: **NIDCPOWER_ATTR_LCR_CUSTOM_MEASUREMENT_TIME** + +lcr_dc_bias_automatic_level_control +----------------------------------- + + .. py:attribute:: lcr_dc_bias_automatic_level_control + + Specifies whether the channel actively maintains a constant DC bias voltage or current across the DUT for LCR measurements. + To use this property, you must configure a DC bias by 1) selecting an :py:attr:`nidcpower.Session.lcr_dc_bias_source` and 2) depending on the DC bias source you choose, setting either the :py:attr:`nidcpower.Session.lcr_dc_bias_voltage_level` or :py:attr:`nidcpower.Session.lcr_dc_bias_current_level`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_automatic_level_control` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_automatic_level_control` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Automatic Level Control** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_AUTOMATIC_LEVEL_CONTROL** + +lcr_dc_bias_current_level +------------------------- + + .. py:attribute:: lcr_dc_bias_current_level + + Specifies the DC bias current level, in amps, when the :py:attr:`nidcpower.Session.lcr_dc_bias_source` property is set to :py:data:`~nidcpower.LCRDCBiasSource.CURRENT`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_current_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Current Level** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_CURRENT_LEVEL** + +lcr_dc_bias_current_range +------------------------- + + .. py:attribute:: lcr_dc_bias_current_range + + Specifies the DC Bias current range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_dc_bias_current_level`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_current_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Advanced:Current Range** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_CURRENT_RANGE** + +lcr_dc_bias_source +------------------ + + .. py:attribute:: lcr_dc_bias_source + + Specifies how to apply DC bias for LCR measurements. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_source` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_source` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.LCRDCBiasSource | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | channels | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Source** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_SOURCE** + +lcr_dc_bias_transient_response +------------------------------ + + .. py:attribute:: lcr_dc_bias_transient_response + + For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the transient response values for DC bias or applies the transient response you set manually. + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. + + Related Topics: Transient Response + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_transient_response` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_transient_response` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.LCRDCBiasTransientResponse | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Advanced:Transient Response** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_TRANSIENT_RESPONSE** + +lcr_dc_bias_voltage_level +------------------------- + + .. py:attribute:: lcr_dc_bias_voltage_level + + Specifies the DC bias voltage level, in volts, when the :py:attr:`nidcpower.Session.lcr_dc_bias_source` property is set to :py:data:`~nidcpower.LCRDCBiasSource.VOLTAGE`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_voltage_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Voltage Level** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_VOLTAGE_LEVEL** + +lcr_dc_bias_voltage_range +------------------------- + + .. py:attribute:: lcr_dc_bias_voltage_range + + Specifies the DC Bias voltage range, in volts, for the specified channel(s). + The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_dc_bias_voltage_level`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_voltage_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:DC Bias:Advanced:Voltage Range** + - C Attribute: **NIDCPOWER_ATTR_LCR_DC_BIAS_VOLTAGE_RANGE** + +lcr_frequency +------------- + + .. py:attribute:: lcr_frequency + + Specifies the frequency of the AC test signal applied to the DUT for LCR measurements. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Frequency** + - C Attribute: **NIDCPOWER_ATTR_LCR_FREQUENCY** + +lcr_impedance_auto_range +------------------------ + + .. py:attribute:: lcr_impedance_auto_range + + Defines whether an instrument in LCR mode automatically selects the best impedance range for each given LCR measurement. + + Impedance autoranging may be enabled only when both: + + - The :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SINGLE_POINT` + - :py:attr:`nidcpower.Session.measure_when` is set to a value other than :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER` + + You can read :py:attr:`nidcpower.Session.lcr_impedance_range` back after a measurement to determine the actual range used. + + When enabled, impedance autoranging overrides impedance range settings you configure manually with any other properties. + + When using a load with unknown impedance, you can set this property to :py:data:`~nidcpower._LCRImpedanceAutoRange.ON` to determine the correct impedance range for the load. When you know the load impedance, you can achieve faster performance by setting this property to :py:data:`~nidcpower._LCRImpedanceAutoRange.OFF` and setting :py:attr:`nidcpower.Session.lcr_impedance_range_source` to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_auto_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_impedance_auto_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Impedance Range:Impedance Autorange** + - C Attribute: **NIDCPOWER_ATTR_LCR_IMPEDANCE_AUTO_RANGE** + +lcr_impedance_range +------------------- + + .. py:attribute:: lcr_impedance_range + + Specifies the impedance range the channel uses for LCR measurements. + + Valid Values: 0 ohms to +inf ohms + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_impedance_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Impedance Range:Impedance Range** + - C Attribute: **NIDCPOWER_ATTR_LCR_IMPEDANCE_RANGE** + +lcr_impedance_range_source +-------------------------- + + .. py:attribute:: lcr_impedance_range_source + + Specifies how the impedance range for LCR measurements is determined. + + ":py:attr:`nidcpower.Session.LCR_IMPEDANCE_AUTORANGE` overrides any impedance range determined by this property. + + " + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range_source` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_impedance_range_source` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.LCRImpedanceRangeSource | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Impedance Range:Advanced:Impedance Range Source** + - C Attribute: **NIDCPOWER_ATTR_LCR_IMPEDANCE_RANGE_SOURCE** + +lcr_load_capacitance +-------------------- + + .. py:attribute:: lcr_load_capacitance + + Specifies the load capacitance, in farads and assuming a series model, of the DUT in order to compute the impedance range when the :py:attr:`nidcpower.Session.lcr_impedance_range_source` property is set to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. + + Valid values: (0 farads, +inf farads) + 0 is a special value that signifies +inf farads. + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_capacitance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_capacitance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Impedance Range:Advanced:Load Capacitance** + - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_CAPACITANCE** + +lcr_load_compensation_enabled +----------------------------- + + .. py:attribute:: lcr_load_compensation_enabled + + Specifies whether to apply load LCR compensation data to LCR measurements. + Both the :py:attr:`nidcpower.Session.lcr_open_compensation_enabled` and :py:attr:`nidcpower.Session.lcr_short_compensation_enabled` properties must be set to True in order to set this property to True. + + Use the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to define where the load compensation data that is applied to LCR measurements comes from. + + + + .. note:: Load compensation data are applied only for those specific frequencies you define with :py:meth:`nidcpower.Session.perform_lcr_load_compensation`; + load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_compensation_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Load:Enabled** + - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_COMPENSATION_ENABLED** + +lcr_load_inductance +------------------- + + .. py:attribute:: lcr_load_inductance + + Specifies the load inductance, in henrys and assuming a series model, of the DUT in order to compute the impedance range when the :py:attr:`nidcpower.Session.lcr_impedance_range_source` property is set to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. + + Valid values: [0 henrys, +inf henrys) + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_inductance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_inductance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Impedance Range:Advanced:Load Inductance** + - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_INDUCTANCE** + +lcr_load_resistance +------------------- + + .. py:attribute:: lcr_load_resistance + + Specifies the load resistance, in ohms and assuming a series model, of the DUT in order to compute the impedance range when the :py:attr:`nidcpower.Session.lcr_impedance_range_source` property is set to :py:data:`~nidcpower.LCRImpedanceRangeSource.LOAD_CONFIGURATION`. + + Valid values: [0 ohms, +inf ohms) + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_resistance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Impedance Range:Advanced:Load Resistance** + - C Attribute: **NIDCPOWER_ATTR_LCR_LOAD_RESISTANCE** + +lcr_measured_load_reactance +--------------------------- + + .. py:attribute:: lcr_measured_load_reactance + + Specifies the reactance, in ohms, of the load used for load LCR compensation as measured by the instrument. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_reactance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_measured_load_reactance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Load:Measured Reactance** + - C Attribute: **NIDCPOWER_ATTR_LCR_MEASURED_LOAD_REACTANCE** + +lcr_measured_load_resistance +---------------------------- + + .. py:attribute:: lcr_measured_load_resistance + + Specifies the resistance, in ohms, of the load used for load LCR compensation as measured by the instrument. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_measured_load_resistance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Load:Measured Resistance** + - C Attribute: **NIDCPOWER_ATTR_LCR_MEASURED_LOAD_RESISTANCE** + +lcr_measurement_time +-------------------- + + .. py:attribute:: lcr_measurement_time + + Selects a general aperture time profile for LCR measurements. The actual duration of each profile depends on the frequency of the LCR test signal. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_measurement_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_measurement_time` + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.LCRMeasurementTime | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | channels | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Measurement Time** + - C Attribute: **NIDCPOWER_ATTR_LCR_MEASUREMENT_TIME** + +lcr_open_compensation_enabled +----------------------------- + + .. py:attribute:: lcr_open_compensation_enabled + + Specifies whether to apply open LCR compensation data to LCR measurements. + Use the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to define where the open compensation data that is applied to LCR measurements comes from. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_compensation_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Open:Enabled** + - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_COMPENSATION_ENABLED** + +lcr_open_conductance +-------------------- + + .. py:attribute:: lcr_open_conductance + + Specifies the conductance, in siemens, of the circuit used for open LCR compensation. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_conductance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_conductance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Open:Conductance** + - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_CONDUCTANCE** + +lcr_open_short_load_compensation_data_source +-------------------------------------------- + + .. py:attribute:: lcr_open_short_load_compensation_data_source + + Specifies the source of the LCR compensation data NI-DCPower applies to LCR measurements. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_short_load_compensation_data_source` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_short_load_compensation_data_source` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------------------+ + | Characteristic | Value | + +=======================+==============================================+ + | Datatype | enums.LCROpenShortLoadCompensationDataSource | + +-----------------------+----------------------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:LCR Open/Short/Load Compensation Data Source** + - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE** + +lcr_open_susceptance +-------------------- + + .. py:attribute:: lcr_open_susceptance + + Specifies the susceptance, in siemens, of the circuit used for open LCR compensation. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_susceptance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_susceptance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Open:Susceptance** + - C Attribute: **NIDCPOWER_ATTR_LCR_OPEN_SUSCEPTANCE** + +lcr_short_compensation_enabled +------------------------------ + + .. py:attribute:: lcr_short_compensation_enabled + + Specifies whether to apply short LCR compensation data to LCR measurements. + Use the :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` property to define where the short compensation data that is applied to LCR measurements comes from. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_compensation_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Short:Enabled** + - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_COMPENSATION_ENABLED** + +lcr_short_custom_cable_compensation_enabled +------------------------------------------- + + .. py:attribute:: lcr_short_custom_cable_compensation_enabled + + Defines how to apply short custom cable compensation in LCR mode when :py:attr:`nidcpower.Session.cable_length` property is set to :py:data:`~nidcpower.CableLength.CUSTOM_ONBOARD_STORAGE` or :py:data:`~nidcpower.CableLength.CUSTOM_AS_CONFIGURED`. + + LCR custom cable compensation uses compensation data for both an open and short configuration. + For open custom cable compensation, you must supply your own data from a call to :py:meth:`nidcpower.Session.perform_lcr_open_custom_cable_compensation`. + For short custom cable compensation, you can supply your own data from a call to :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation` or NI-DCPower can apply a default set of short compensation data. + + +-------+----------------------------------------------------------------------------------------------------------------------------------+ + | False | Uses default short compensation data. | + +-------+----------------------------------------------------------------------------------------------------------------------------------+ + | True | Uses short custom cable compensation data generated by :py:meth:`nidcpower.Session.perform_lcr_short_custom_cable_compensation`. | + +-------+----------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_custom_cable_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_custom_cable_compensation_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:LCR Short Custom Cable Compensation Enabled** + - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_CUSTOM_CABLE_COMPENSATION_ENABLED** + +lcr_short_reactance +------------------- + + .. py:attribute:: lcr_short_reactance + + Specifies the reactance, in ohms, of the circuit used for short LCR compensation. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_reactance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_reactance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Short:Reactance** + - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_REACTANCE** + +lcr_short_resistance +-------------------- + + .. py:attribute:: lcr_short_resistance + + Specifies the resistance, in ohms, of the circuit used for short LCR compensation. + This property applies when :py:attr:`nidcpower.Session.lcr_open_short_load_compensation_data_source` is set to :py:data:`~nidcpower.LCROpenShortLoadCompensationDataSource.AS_DEFINED`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_resistance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Compensation:Short:Resistance** + - C Attribute: **NIDCPOWER_ATTR_LCR_SHORT_RESISTANCE** + +lcr_source_aperture_time +------------------------ + + .. py:attribute:: lcr_source_aperture_time + + Specifies the LCR source aperture time for a channel, in seconds. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_source_aperture_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_source_aperture_time` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Advanced:Source Aperture Time** + - C Attribute: **NIDCPOWER_ATTR_LCR_SOURCE_APERTURE_TIME** + +lcr_source_delay_mode +--------------------- + + .. py:attribute:: lcr_source_delay_mode + + For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the source delay or applies a source delay you set manually. + + You can return the source delay duration for either option by reading :py:attr:`nidcpower.Session.source_delay`. + + When you use this property to manually set the source delay, it is possible to set source delays short enough to unbalance the bridge and affect measurement accuracy. LCR measurement methods report whether the bridge is unbalanced. + + Default Value: :py:data:`~nidcpower.LCRSourceDelayMode.AUTOMATIC` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_source_delay_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_source_delay_mode` + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.LCRSourceDelayMode | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | channels | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:Source Delay Mode** + - C Attribute: **NIDCPOWER_ATTR_LCR_SOURCE_DELAY_MODE** + +lcr_stimulus_function +--------------------- + + .. py:attribute:: lcr_stimulus_function + + Specifies the type of test signal to apply to the DUT for LCR measurements. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_stimulus_function` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_stimulus_function` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.LCRStimulusFunction | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Function** + - C Attribute: **NIDCPOWER_ATTR_LCR_STIMULUS_FUNCTION** + +lcr_voltage_amplitude +--------------------- + + .. py:attribute:: lcr_voltage_amplitude + + Specifies the amplitude, in volts RMS, of the AC voltage test signal applied to the DUT for LCR measurements. + This property applies when the :py:attr:`nidcpower.Session.lcr_stimulus_function` property is set to :py:data:`~nidcpower.LCRStimulusFunction.VOLTAGE`. + + Valid Values: 7.08e-4 V RMS to 7.07 V RMS + + Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_amplitude` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_voltage_amplitude` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Voltage Amplitude** + - C Attribute: **NIDCPOWER_ATTR_LCR_VOLTAGE_AMPLITUDE** + +lcr_voltage_range +----------------- + + .. py:attribute:: lcr_voltage_range + + Specifies the voltage range, in volts RMS, for the specified channel(s). + The range defines the valid values to which you can set the :py:attr:`nidcpower.Session.lcr_voltage_amplitude`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_voltage_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **LCR:AC Stimulus:Advanced:Voltage Range** + - C Attribute: **NIDCPOWER_ATTR_LCR_VOLTAGE_RANGE** + +logical_name +------------ + + .. py:attribute:: logical_name + + Contains the logical name you specified when opening the current IVI session. + You can pass a logical name to the :py:meth:`nidcpower.Session.__init__` method. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a method section in the IVI Configuration file. The method section specifies a physical device and initial user options. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NIDCPOWER_ATTR_LOGICAL_NAME** + +measure_buffer_size +------------------- + + .. py:attribute:: measure_buffer_size + + Specifies the number of samples that the active channel measurement buffer can hold. + The default value is the maximum number of samples that a device is capable of recording in one second. + Valid Values: The PXIe-4051, PXIe-4147, and PXIe-4150/4151 support values from 170 to 18000110. + The PXIe-4162/4163 supports values from 256 to 1000192. + The PXIe-4190 supports values from 102 to 6000048. + The PXIe-4112, PXIe-4113, and PXIe-4154 support values from 1000 to 178956970. + All other supported instruments support values from 1000 to 268435455. + Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_buffer_size` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_buffer_size` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Measure Buffer Size** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_BUFFER_SIZE** + +measure_complete_event_delay +---------------------------- + + .. py:attribute:: measure_complete_event_delay + + Specifies the amount of time to delay the generation of the Measure Complete event, in seconds. + Valid Values: The PXIe-4051 supports values from 0 seconds to 39 seconds. + The PXIe-4147 supports values from 0 seconds to 26.5 seconds. + The PXIe-4150/4151 supports values from 0 seconds to 42 seconds. + The PXIe-4162/4163 and PXIe-4190 support values from 0 seconds to 23 seconds. + All other supported instruments support values from 0 to 167 seconds. + Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_delay` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Measure Complete Event:Event Delay** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_DELAY** + +measure_complete_event_output_behavior +-------------------------------------- + + .. py:attribute:: measure_complete_event_output_behavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Measure Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Measure Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. + + + + .. note:: This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_output_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.EventOutputBehavior | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Measure Complete Event:Output Behavior** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_OUTPUT_BEHAVIOR** + +measure_complete_event_output_terminal +-------------------------------------- + + .. py:attribute:: measure_complete_event_output_terminal + + Specifies the output terminal for exporting the Measure Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Measure Complete Event:Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_OUTPUT_TERMINAL** + +measure_complete_event_pulse_polarity +------------------------------------- + + .. py:attribute:: measure_complete_event_pulse_polarity + + Specifies the behavior of the Measure Complete event. + Default Value: :py:data:`~nidcpower.Polarity.HIGH` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_pulse_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Polarity | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Measure Complete Event:Pulse:Polarity** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_PULSE_POLARITY** + +measure_complete_event_pulse_width +---------------------------------- + + .. py:attribute:: measure_complete_event_pulse_width + + Specifies the width of the Measure Complete event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + Valid Values: 1.5e-7 to 1.6e-6 + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Measure Complete Event:Pulse:Width** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_PULSE_WIDTH** + +measure_complete_event_toggle_initial_state +------------------------------------------- + + .. py:attribute:: measure_complete_event_toggle_initial_state + + Specifies the initial state of the Measure Complete event when you set the :py:attr:`nidcpower.Session.measure_complete_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. + For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_toggle_initial_state` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.EventToggleInitialState | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Measure Complete Event:Toggle:Initial State** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_COMPLETE_EVENT_TOGGLE_INITIAL_STATE** + +measure_record_delta_time +------------------------- + + .. py:attribute:: measure_record_delta_time + + Queries the amount of time, in seconds, between between the start of two consecutive measurements in a measure record. Only query this property after the desired measurement settings are committed. + two measurements and the rest would differ. + + + + .. note:: This property is not available when Auto Zero is configured to Once because the amount of time between the first + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_record_delta_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_record_delta_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read only | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Measure Record Delta Time** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_RECORD_DELTA_TIME** + +measure_record_length +--------------------- + + .. py:attribute:: measure_record_length + + Specifies how many measurements compose a measure record. When this property is set to a value greater than 1, the :py:attr:`nidcpower.Session.measure_when` property must be set to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE` or :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`. + Valid Values: 1 to 16,777,216 + Default Value: 1 + + + + .. note:: This property is not available in a session involving multiple channels. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_record_length` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_record_length` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Measure Record Length** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_RECORD_LENGTH** + +measure_record_length_is_finite +------------------------------- + + .. py:attribute:: measure_record_length_is_finite + + Specifies whether to take continuous measurements. Call the :py:meth:`nidcpower.Session.abort` method to stop continuous measurements. When this property is set to False and the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SINGLE_POINT`, the :py:attr:`nidcpower.Session.measure_when` property must be set to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE` or :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`. When this property is set to False and the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SEQUENCE`, the :py:attr:`nidcpower.Session.measure_when` property must be set to :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`. + Default Value: True + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. This property is not available in a session involving multiple channels. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_record_length_is_finite` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_record_length_is_finite` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Measure Record Length Is Finite** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_RECORD_LENGTH_IS_FINITE** + +measure_trigger_type +-------------------- + + .. py:attribute:: measure_trigger_type + + Specifies the behavior of the Measure trigger. + Default Value: :py:data:`~nidcpower.TriggerType.DIGITAL_EDGE` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Measure Trigger:Trigger Type** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_TRIGGER_TYPE** + +measure_when +------------ + + .. py:attribute:: measure_when + + Specifies when the measure unit should acquire measurements. Unless this property is configured to :py:data:`~nidcpower.MeasureWhen.ON_MEASURE_TRIGGER`, the :py:attr:`nidcpower.Session.measure_trigger_type` property is ignored. + Refer to the Acquiring Measurements topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements. + Default Value: If the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SINGLE_POINT`, the default value is :py:data:`~nidcpower.MeasureWhen.ON_DEMAND`. This value supports only the :py:meth:`nidcpower.Session.measure` method and :py:meth:`nidcpower.Session.measure_multiple` method. If the :py:attr:`nidcpower.Session.source_mode` property is set to :py:data:`~nidcpower.SourceMode.SEQUENCE`, the default value is :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE`. This value supports only the :py:meth:`nidcpower.Session.fetch_multiple` method. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_when` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_when` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.MeasureWhen | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Measure When** + - C Attribute: **NIDCPOWER_ATTR_MEASURE_WHEN** + +merged_channels +--------------- + + .. py:attribute:: merged_channels + + Specifies the merge channel(s) to combine with a designated primary channel of an instrument in order to increase the maximum current you can source from the instrument. + Set this property on the primary channel only, and pass the merge channels as the value of this property. + Refer to the Merged Channels topic in your instrument user manual for more information about using merged channels. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if no channels were merged. + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].merged_channels` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.merged_channels` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Merged Channels** + - C Attribute: **NIDCPOWER_ATTR_MERGED_CHANNELS** + +output_capacitance +------------------ + + .. py:attribute:: output_capacitance + + Specifies whether to use a low or high capacitance on the output for the specified channel(s). + Refer to the NI PXI-4130 Output Capacitance Selection topic in the NI DC Power Supplies and SMUs Help for more information about capacitance. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_capacitance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_capacitance` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.OutputCapacitance | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Output Capacitance** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CAPACITANCE** + +output_connected +---------------- + + .. py:attribute:: output_connected + + Specifies whether the output relay is connected (closed) or disconnected (open). The :py:attr:`nidcpower.Session.output_enabled` property does not change based on this property; they are independent of each other. + + Set this property to False to disconnect the output terminal from the output. + + Default Value: True + + + + .. note:: Only disconnect the output when disconnecting is necessary for your application. For example, a battery connected to the output terminal might discharge unless the relay is disconnected. Excessive connecting and disconnecting of the output can cause premature wear on electromechanical relays, such as those used by the PXIe-4147, PXI-4132, or PXIe-4138/39. + + The PXIe-4051 does not have an output relay. For the PXIe-4051, this property specifies whether the input MOSFETs are connected (ON) or disconnected (OFF). + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_connected` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_connected` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Connected** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CONNECTED** + +output_cutoff_current_change_limit_high +--------------------------------------- + + .. py:attribute:: output_cutoff_current_change_limit_high + + Specifies a limit for positive current slew rate, in amps per microsecond, for output cutoff. + If the current increases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_HIGH` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_change_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Current Change Limit High** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_CHANGE_LIMIT_HIGH** + +output_cutoff_current_change_limit_low +-------------------------------------- + + .. py:attribute:: output_cutoff_current_change_limit_low + + Specifies a limit for negative current slew rate, in amps per microsecond, for output cutoff. + If the current decreases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_CHANGE_LOW` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_change_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Current Change Limit Low** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_CHANGE_LIMIT_LOW** + +output_cutoff_current_measure_limit_high +---------------------------------------- + + .. py:attribute:: output_cutoff_current_measure_limit_high + + Specifies a high limit current value, in amps, for output cutoff. + If the measured current exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_HIGH` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_measure_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Current Measure Limit High** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_MEASURE_LIMIT_HIGH** + +output_cutoff_current_measure_limit_low +--------------------------------------- + + .. py:attribute:: output_cutoff_current_measure_limit_low + + Specifies a low limit current value, in amps, for output cutoff. + If the measured current falls below this limit, the output is disconnected. + + To find out whether an output has fallen below this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_MEASURE_LOW` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_measure_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Current Measure Limit Low** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_MEASURE_LIMIT_LOW** + +output_cutoff_current_overrange_enabled +--------------------------------------- + + .. py:attribute:: output_cutoff_current_overrange_enabled + + Enables or disables current overrange functionality for output cutoff. If enabled, the output is disconnected when the measured current saturates the current range. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.CURRENT_SATURATED` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_overrange_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_overrange_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Current Overrange Enabled** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_CURRENT_OVERRANGE_ENABLED** + +output_cutoff_delay +------------------- + + .. py:attribute:: output_cutoff_delay + + Delays disconnecting the output by the time you specify, in seconds, when a limit is exceeded. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_delay` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Delay** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_DELAY** + +output_cutoff_enabled +--------------------- + + .. py:attribute:: output_cutoff_enabled + + Enables or disables output cutoff functionality. If enabled, you can define output cutoffs that, if exceeded, cause the output of the specified channel(s) to be disconnected. + When this property is disabled, all other output cutoff properties are ignored. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + Instruments that do not support this property behave as if this property were set to False. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Enabled** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_ENABLED** + +output_cutoff_voltage_change_limit_high +--------------------------------------- + + .. py:attribute:: output_cutoff_voltage_change_limit_high + + Specifies a limit for positive voltage slew rate, in volts per microsecond, for output cutoff. + If the voltage increases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_HIGH` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Voltage Change Limit High** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_CHANGE_LIMIT_HIGH** + +output_cutoff_voltage_change_limit_low +-------------------------------------- + + .. py:attribute:: output_cutoff_voltage_change_limit_low + + Specifies a limit for negative voltage slew rate, in volts per microsecond, for output cutoff. + If the voltage decreases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_CHANGE_LOW` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Voltage Change Limit Low** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_CHANGE_LIMIT_LOW** + +output_cutoff_voltage_measure_limit_high +---------------------------------------- + + .. py:attribute:: output_cutoff_voltage_measure_limit_high + + Specifies a high limit voltage value, in volts, for output cutoff. + If the measured voltage exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_HIGH` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Voltage Measure Limit High** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_MEASURE_LIMIT_HIGH** + +output_cutoff_voltage_measure_limit_low +--------------------------------------- + + .. py:attribute:: output_cutoff_voltage_measure_limit_low + + Specifies a low limit voltage value, in volts, for output cutoff. + If the measured voltage falls below this limit, the output is disconnected. + + To find out whether an output has fallen below this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_MEASURE_LOW` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Voltage Measure Limit Low** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_MEASURE_LIMIT_LOW** + +output_cutoff_voltage_output_limit_high +--------------------------------------- + + .. py:attribute:: output_cutoff_voltage_output_limit_high + + Specifies a high limit voltage value, in volts, for output cutoff. + If the voltage output exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_HIGH` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Voltage Output Limit High** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_OUTPUT_LIMIT_HIGH** + +output_cutoff_voltage_output_limit_low +-------------------------------------- + + .. py:attribute:: output_cutoff_voltage_output_limit_low + + Specifies a low limit voltage value, in volts, for output cutoff. + If the voltage output falls below this limit, the output is disconnected. + + To find out whether an output has fallen below this limit, call the :py:meth:`nidcpower.Session.query_latched_output_cutoff_state` method with :py:data:`~nidcpower.OutputCutoffReason.VOLTAGE_OUTPUT_LOW` as the output cutoff reason. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Cutoff:Voltage Output Limit Low** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_CUTOFF_VOLTAGE_OUTPUT_LIMIT_LOW** + +output_enabled +-------------- + + .. py:attribute:: output_enabled + + Specifies whether the output is enabled (True) or disabled (False). + + Depending on the value you specify for the :py:attr:`nidcpower.Session.output_function` property, you also must set the corresponding level properties or :py:attr:`nidcpower.Session.output_resistance` in addition to enabling the output to generate the desired level. + For more information about configuring the output level, refer to the :py:attr:`nidcpower.Session.output_function` property. + + Default Value: The default value is True if you use the :py:meth:`nidcpower.Session.__init__` method to open the session. Otherwise the default value is False, including when you use a calibration session or the deprecated programming model. + + + + .. note:: If the session is in the Committed or Uncommitted states, enabling the output does not take effect until you call the :py:meth:`nidcpower.Session.initiate` method. Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for more information about NI-DCPower programming states. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Enabled** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_ENABLED** + +output_function +--------------- + + .. py:attribute:: output_function + + Configures the method to generate on the specified channel(s). + + When :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` is selected, the device generates the desired voltage level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` is selected: + - :py:attr:`nidcpower.Session.voltage_level` + - :py:attr:`nidcpower.Session.current_limit` + - :py:attr:`nidcpower.Session.current_limit_high` + - :py:attr:`nidcpower.Session.current_limit_low` + - :py:attr:`nidcpower.Session.voltage_level_range` + - :py:attr:`nidcpower.Session.current_limit_range` + - :py:attr:`nidcpower.Session.compliance_limit_symmetry` + + When :py:data:`~nidcpower.OutputFunction.DC_CURRENT` is selected, the device generates the desired current level on the output as long as the output voltage is below the voltage limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.DC_CURRENT` is selected: + - :py:attr:`nidcpower.Session.current_level` + - :py:attr:`nidcpower.Session.voltage_limit` + - :py:attr:`nidcpower.Session.voltage_limit_high` + - :py:attr:`nidcpower.Session.voltage_limit_low` + - :py:attr:`nidcpower.Session.current_level_range` + - :py:attr:`nidcpower.Session.voltage_limit_range` + - :py:attr:`nidcpower.Session.compliance_limit_symmetry` + + When :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE` is selected, the device generates pulses at the desired pulse voltage levels on the output as long as the output current is below the pulse current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE` is selected: + - :py:attr:`nidcpower.Session.pulse_voltage_level` + - :py:attr:`nidcpower.Session.pulse_bias_voltage_level` + - :py:attr:`nidcpower.Session.pulse_current_limit` + - :py:attr:`nidcpower.Session.pulse_current_limit_high` + - :py:attr:`nidcpower.Session.pulse_current_limit_low` + - :py:attr:`nidcpower.Session.pulse_bias_current_limit` + - :py:attr:`nidcpower.Session.pulse_bias_current_limit_high` + - :py:attr:`nidcpower.Session.pulse_bias_current_limit_low` + - :py:attr:`nidcpower.Session.pulse_voltage_level_range` + - :py:attr:`nidcpower.Session.pulse_current_limit_range` + - :py:attr:`nidcpower.Session.compliance_limit_symmetry` + + When :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT` is selected, the device generates pulses at the desired pulse current levels on the output as long as the output voltage is below the pulse voltage limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT` is selected: + - :py:attr:`nidcpower.Session.pulse_current_level` + - :py:attr:`nidcpower.Session.pulse_bias_current_level` + - :py:attr:`nidcpower.Session.pulse_voltage_limit` + - :py:attr:`nidcpower.Session.pulse_voltage_limit_high` + - :py:attr:`nidcpower.Session.pulse_voltage_limit_low` + - :py:attr:`nidcpower.Session.pulse_bias_voltage_limit` + - :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_high` + - :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_low` + - :py:attr:`nidcpower.Session.pulse_current_level_range` + - :py:attr:`nidcpower.Session.pulse_voltage_limit_range` + - :py:attr:`nidcpower.Session.compliance_limit_symmetry` + + When :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` is selected, the device generates the desired resistance level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE` is selected: + - :py:attr:`nidcpower.Session.constant_resistance_level` + - :py:attr:`nidcpower.Session.constant_resistance_current_limit` + - :py:attr:`nidcpower.Session.constant_resistance_level_range` + + When :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` is selected, the device generates the desired power level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER` is selected: + - :py:attr:`nidcpower.Session.constant_power_level` + - :py:attr:`nidcpower.Session.constant_power_current_limit` + - :py:attr:`nidcpower.Session.constant_power_level_range` + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_function` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_function` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.OutputFunction | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Function** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_FUNCTION** + +output_resistance +----------------- + + .. py:attribute:: output_resistance + + Specifies the output resistance that the device attempts to generate for the specified channel(s). + + Depending on the instrument, output resistance is configurable only if you set the :py:attr:`nidcpower.Session.output_function` of the channel as follows: + - PXIe-4141, PXIe-4143, PXIe-4145: :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` + - PXIe-4135, PXIe-4137, PXIe-4139, PXIe-4147: :py:data:`~nidcpower.OutputFunction.DC_CURRENT` or :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE` + + **Valid Values**: Vary by device. Refer to the device specifications for your device for more information about supported values. + + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + + + + .. note:: The channel must be enabled for the specified output resistance to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + Using the :py:attr:`nidcpower.Session.merged_channels` property to merge instrument outputs affects the valid output resistance range you can program. Refer to the Merged Channels topic for your device for details. + + To specify the resistance level that the device attempts to generate when :py:attr:`nidcpower.Session.output_function` is set to :py:data:`~nidcpower.OutputFunction.CONSTANT_RESISTANCE`, use the :py:attr:`nidcpower.Session.constant_resistance_level` property. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_resistance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Output Resistance** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_RESISTANCE** + +output_shorted +-------------- + + .. py:attribute:: output_shorted + + Specifies whether the input of the instrument simulates a short circuit. + When this property is set to True, the electronic load will simulate a short circuit across the channel/input terminals. The electronic load uses the maximum rated current and range to simulate the short circuit. This property will only take effect when both :py:attr:`nidcpower.Session.output_enabled` and :py:attr:`nidcpower.Session.output_connected` are True. + + When this property is set to False, the instrument will resume normal operation based on its existing settings on the specified channel(s). + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_shorted` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_shorted` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Output Shorted** + - C Attribute: **NIDCPOWER_ATTR_OUTPUT_SHORTED** + +overranging_enabled +------------------- + + .. py:attribute:: overranging_enabled + + Specifies whether NI-DCPower allows setting the voltage level, current level, voltage limit and current limit outside the device specification limits. True means that overranging is enabled. + Refer to the Ranges topic in the NI DC Power Supplies and SMUs Help for more information about overranging. + Default Value: False + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].overranging_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.overranging_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Overranging Enabled** + - C Attribute: **NIDCPOWER_ATTR_OVERRANGING_ENABLED** + +ovp_enabled +----------- + + .. py:attribute:: ovp_enabled + + Enables (True) or disables (False) overvoltage protection (OVP). + Refer to the Output Overvoltage Protection topic in the NI DC Power Supplies and SMUs Help for more information about overvoltage protection. + Default Value: False + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ovp_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ovp_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:OVP Enabled** + - C Attribute: **NIDCPOWER_ATTR_OVP_ENABLED** + +ovp_limit +--------- + + .. py:attribute:: ovp_limit + + Determines the voltage limit, in volts, beyond which overvoltage protection (OVP) engages. + The limit is specified as a positive value, but symmetric positive and negative limits are enforced simultaneously. + For example, setting the OVP Limit to 65 will configure the OVP feature to trigger an OVP error if the output exceeds ±65 V. + + Valid Values: 2 V to 210 V + Default Value: 210 V + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ovp_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ovp_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:OVP Limit** + - C Attribute: **NIDCPOWER_ATTR_OVP_LIMIT** + +power_allocation_mode +--------------------- + + .. py:attribute:: power_allocation_mode + + Determines whether the device sources the power its source configuration requires or a specific wattage you request; determines whether NI-DCPower proactively checks that this sourcing power is within the maximum per-channel and overall sourcing power of the device. + + When this property configures NI-DCPower to perform a sourcing power check, a device is not permitted to source power in excess of its maximum per-channel or overall sourcing power. If the check determines a source configuration or power request would require the device to do so, NI-DCPower returns an error. + + When this property does not configure NI-DCPower to perform a sourcing power check, a device can attempt to fulfill source configurations that would require it to source power in excess of its maximum per-channel or overall sourcing power and may shut down to prevent damage. + + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if this property were set to :py:data:`~nidcpower.PowerAllocationMode.DISABLED`. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].power_allocation_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.power_allocation_mode` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.PowerAllocationMode | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Power Allocation Mode** + - C Attribute: **NIDCPOWER_ATTR_POWER_ALLOCATION_MODE** + +power_line_frequency +-------------------- + + .. py:attribute:: power_line_frequency + + Specifies the power line frequency for specified channel(s). NI-DCPower uses this value to select a timebase for setting the :py:attr:`nidcpower.Session.aperture_time` property in power line cycles (PLCs). + in the NI DC Power Supplies and SMUs Help for information about supported devices. + Default Value: :py:data:`~nidcpower.NIDCPOWER_VAL_60_HERTZ` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].power_line_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.power_line_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Power Line Frequency** + - C Attribute: **NIDCPOWER_ATTR_POWER_LINE_FREQUENCY** + +power_source +------------ + + .. py:attribute:: power_source + + Specifies the power source to use. NI-DCPower switches the power source used by the device to the specified value. + Default Value: :py:data:`~nidcpower.PowerSource.AUTOMATIC` + is set to :py:data:`~nidcpower.PowerSource.AUTOMATIC`. However, if the session is in the Committed or Uncommitted state when you set this property, the power source selection only occurs after you call the :py:meth:`nidcpower.Session.initiate` method. + + + + .. note:: Automatic selection is not persistent and occurs only at the time this property + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.PowerSource | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Advanced:Power Source** + - C Attribute: **NIDCPOWER_ATTR_POWER_SOURCE** + +power_source_in_use +------------------- + + .. py:attribute:: power_source_in_use + + Indicates whether the device is using the internal or auxiliary power source to generate power. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.PowerSourceInUse | + +-----------------------+------------------------+ + | Permissions | read only | + +-----------------------+------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Advanced:Power Source In Use** + - C Attribute: **NIDCPOWER_ATTR_POWER_SOURCE_IN_USE** + +pulse_bias_current_level +------------------------ + + .. py:attribute:: pulse_bias_current_level + + Specifies the pulse bias current level, in amps, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_level_range` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Bias Current Level** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LEVEL** + +pulse_bias_current_limit +------------------------ + + .. py:attribute:: pulse_bias_current_limit + + Specifies the pulse bias current limit, in amps, that the output cannot exceed when generating the desired pulse bias voltage on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_limit_range` property. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Current Limit** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LIMIT** + +pulse_bias_current_limit_high +----------------------------- + + .. py:attribute:: pulse_bias_current_limit_high + + Specifies the maximum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *off* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + You must also specify a :py:attr:`nidcpower.Session.pulse_bias_current_limit_low` to complete the + asymmetric range. + **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`, :py:attr:`nidcpower.Session.pulse_current_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Current Limit High** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LIMIT_HIGH** + +pulse_bias_current_limit_low +---------------------------- + + .. py:attribute:: pulse_bias_current_limit_low + + Specifies the minimum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *off* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + You must also specify a :py:attr:`nidcpower.Session.pulse_bias_current_limit_high` to complete the + asymmetric range. + **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_current_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Current Limit Low** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_CURRENT_LIMIT_LOW** + +pulse_bias_delay +---------------- + + .. py:attribute:: pulse_bias_delay + + Determines when, in seconds, the device generates the Pulse Complete event after generating the off level of a pulse. + Valid Values: 0 to 167 seconds + Default Value: 16.67 milliseconds + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_delay` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Pulse Bias Delay** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_DELAY** + +pulse_bias_voltage_level +------------------------ + + .. py:attribute:: pulse_bias_voltage_level + + Specifies the pulse bias voltage level, in volts, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_voltage_level_range` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Bias Voltage Level** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LEVEL** + +pulse_bias_voltage_limit +------------------------ + + .. py:attribute:: pulse_bias_voltage_limit + + Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired current on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_voltage_limit_range` property. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Bias Voltage Limit** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LIMIT** + +pulse_bias_voltage_limit_high +----------------------------- + + .. py:attribute:: pulse_bias_voltage_limit_high + + Specifies the maximum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *off* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + You must also specify a :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_low` to complete the + asymmetric range. + **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`, :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Bias Voltage Limit High** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LIMIT_HIGH** + +pulse_bias_voltage_limit_low +---------------------------- + + .. py:attribute:: pulse_bias_voltage_limit_low + + Specifies the minimum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *off* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + You must also specify a :py:attr:`nidcpower.Session.pulse_bias_voltage_limit_high` to complete the + asymmetric range. + **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_voltage_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Bias Voltage Limit Low** + - C Attribute: **NIDCPOWER_ATTR_PULSE_BIAS_VOLTAGE_LIMIT_LOW** + +pulse_complete_event_output_terminal +------------------------------------ + + .. py:attribute:: pulse_complete_event_output_terminal + + Specifies the output terminal for exporting the Pulse Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + Default Value:The default value for PXI Express devices is 250 ns. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_complete_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Pulse Complete Event:Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_PULSE_COMPLETE_EVENT_OUTPUT_TERMINAL** + +pulse_complete_event_pulse_polarity +----------------------------------- + + .. py:attribute:: pulse_complete_event_pulse_polarity + + Specifies the behavior of the Pulse Complete event. + Default Value: :py:data:`~nidcpower.Polarity.HIGH` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_complete_event_pulse_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Polarity | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Pulse Complete Event:Pulse:Polarity** + - C Attribute: **NIDCPOWER_ATTR_PULSE_COMPLETE_EVENT_PULSE_POLARITY** + +pulse_complete_event_pulse_width +-------------------------------- + + .. py:attribute:: pulse_complete_event_pulse_width + + Specifies the width of the Pulse Complete event, in seconds. + The minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for PXI Express devices is 1.6 microseconds. + Default Value: The default value for PXI Express devices is 250 ns. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_complete_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Pulse Complete Event:Pulse:Width** + - C Attribute: **NIDCPOWER_ATTR_PULSE_COMPLETE_EVENT_PULSE_WIDTH** + +pulse_current_level +------------------- + + .. py:attribute:: pulse_current_level + + Specifies the pulse current level, in amps, that the device attempts to generate on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_level_range` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Current Level** + - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LEVEL** + +pulse_current_level_range +------------------------- + + .. py:attribute:: pulse_current_level_range + + Specifies the pulse current level range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the pulse current level and pulse bias current level. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Current Level Range** + - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LEVEL_RANGE** + +pulse_current_limit +------------------- + + .. py:attribute:: pulse_current_limit + + Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_limit_range` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit** + - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT** + +pulse_current_limit_high +------------------------ + + .. py:attribute:: pulse_current_limit_high + + Specifies the maximum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *on* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + You must also specify a :py:attr:`nidcpower.Session.pulse_current_limit_low` to complete the asymmetric + range. + **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`, :py:attr:`nidcpower.Session.pulse_current_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit High** + - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT_HIGH** + +pulse_current_limit_low +----------------------- + + .. py:attribute:: pulse_current_limit_low + + Specifies the minimum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *on* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + You must also specify a :py:attr:`nidcpower.Session.pulse_current_limit_high` to complete the + asymmetric range. + **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_current_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_current_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit Low** + - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT_LOW** + +pulse_current_limit_range +------------------------- + + .. py:attribute:: pulse_current_limit_range + + Specifies the pulse current limit range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the pulse current limit and pulse bias current limit. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Current Limit Range** + - C Attribute: **NIDCPOWER_ATTR_PULSE_CURRENT_LIMIT_RANGE** + +pulse_off_time +-------------- + + .. py:attribute:: pulse_off_time + + Determines the length, in seconds, of the off phase of a pulse. + Valid Values: 10 microseconds to 167 seconds + Default Value: 34 milliseconds + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_off_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_off_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Pulse Off Time** + - C Attribute: **NIDCPOWER_ATTR_PULSE_OFF_TIME** + +pulse_on_time +------------- + + .. py:attribute:: pulse_on_time + + Determines the length, in seconds, of the on phase of a pulse. + Valid Values: 10 microseconds to 167 seconds + Default Value: 34 milliseconds + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_on_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_on_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Pulse On Time** + - C Attribute: **NIDCPOWER_ATTR_PULSE_ON_TIME** + +pulse_trigger_type +------------------ + + .. py:attribute:: pulse_trigger_type + + Specifies the behavior of the Pulse trigger. + Default Value: :py:data:`~nidcpower.TriggerType.NONE` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Pulse Trigger:Trigger Type** + - C Attribute: **NIDCPOWER_ATTR_PULSE_TRIGGER_TYPE** + +pulse_voltage_level +------------------- + + .. py:attribute:: pulse_voltage_level + + Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_current_limit_range` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Voltage Level** + - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LEVEL** + +pulse_voltage_level_range +------------------------- + + .. py:attribute:: pulse_voltage_level_range + + Specifies the pulse voltage level range, in volts, for the specified channel(s). + The range defines the valid values at which you can set the pulse voltage level and pulse bias voltage level. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_VOLTAGE`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Voltage:Pulse Voltage Level Range** + - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LEVEL_RANGE** + +pulse_voltage_limit +------------------- + + .. py:attribute:: pulse_voltage_limit + + Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired pulse current on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.pulse_voltage_limit_range` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit** + - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT** + +pulse_voltage_limit_high +------------------------ + + .. py:attribute:: pulse_voltage_limit_high + + Specifies the maximum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *on* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + You must also specify a :py:attr:`nidcpower.Session.pulse_voltage_limit_low` to complete the asymmetric + range. + **Valid Values:** [1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`, :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit High** + - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT_HIGH** + +pulse_voltage_limit_low +----------------------- + + .. py:attribute:: pulse_voltage_limit_low + + Specifies the minimum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *on* phase of a pulse. + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + You must also specify a :py:attr:`nidcpower.Session.pulse_voltage_limit_high` to complete the + asymmetric range. + **Valid Values:** [-:py:attr:`nidcpower.Session.pulse_voltage_limit_range`, -1% of :py:attr:`nidcpower.Session.pulse_voltage_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True or if the :py:attr:`nidcpower.Session.output_function` property is set to a + pulsing method. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit Low** + - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT_LOW** + +pulse_voltage_limit_range +------------------------- + + .. py:attribute:: pulse_voltage_limit_range + + Specifies the pulse voltage limit range, in volts, for the specified channel(s). + The range defines the valid values to which you can set the pulse voltage limit and pulse bias voltage limit. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.PULSE_CURRENT`. + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The channel must be enabled for the specified current limit to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Pulse Current:Pulse Voltage Limit Range** + - C Attribute: **NIDCPOWER_ATTR_PULSE_VOLTAGE_LIMIT_RANGE** + +query_instrument_status +----------------------- + + .. py:attribute:: query_instrument_status + + Specifies whether NI-DCPower queries the device status after each operation. + Querying the device status is useful for debugging. After you validate your program, you can set this property to False to disable status checking and maximize performance. + NI-DCPower ignores status checking for particular properties regardless of the setting of this property. + Use the :py:meth:`nidcpower.Session.__init__` method to override this value. + Default Value: True + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Query Instrument Status** + - C Attribute: **NIDCPOWER_ATTR_QUERY_INSTRUMENT_STATUS** + +ready_for_pulse_trigger_event_output_terminal +--------------------------------------------- + + .. py:attribute:: ready_for_pulse_trigger_event_output_terminal + + Specifies the output terminal for exporting the Ready For Pulse Trigger event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ready_for_pulse_trigger_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Pulse Trigger Event:Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_READY_FOR_PULSE_TRIGGER_EVENT_OUTPUT_TERMINAL** + +ready_for_pulse_trigger_event_pulse_polarity +-------------------------------------------- + + .. py:attribute:: ready_for_pulse_trigger_event_pulse_polarity + + Specifies the behavior of the Ready For Pulse Trigger event. + Default Value: :py:data:`~nidcpower.Polarity.HIGH` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Polarity | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Pulse Trigger Event:Pulse:Polarity** + - C Attribute: **NIDCPOWER_ATTR_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_POLARITY** + +ready_for_pulse_trigger_event_pulse_width +----------------------------------------- + + .. py:attribute:: ready_for_pulse_trigger_event_pulse_width + + Specifies the width of the Ready For Pulse Trigger event, in seconds. + The minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + Default Value: The default value for PXI Express devices is 250 ns + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Pulse Trigger Event:Pulse:Width** + - C Attribute: **NIDCPOWER_ATTR_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_WIDTH** + +requested_power_allocation +-------------------------- + + .. py:attribute:: requested_power_allocation + + Specifies the power, in watts, to request the device to source from each active channel. + This property defines the power to source from the device only if the :py:attr:`nidcpower.Session.power_allocation_mode` property is set to :py:data:`~nidcpower.PowerAllocationMode.MANUAL`. + + The power you request with this property may be incompatible with the power a given source configuration requires or the power the device can provide: + If the requested power is less than the power required for the source configuration, the device does not exceed the requested power, and NI-DCPower returns an error. + If the requested power is greater than the maximum per-channel or overall sourcing power, the device does not exceed the allowed power, and NI-DCPower returns an error. + + Valid Values: [0, device per-channel maximum power] + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].requested_power_allocation` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.requested_power_allocation` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Requested Power Allocation** + - C Attribute: **NIDCPOWER_ATTR_REQUESTED_POWER_ALLOCATION** + +reset_average_before_measurement +-------------------------------- + + .. py:attribute:: reset_average_before_measurement + + Specifies whether the measurement returned from any measurement call starts with a new measurement call (True) or returns a measurement that has already begun or completed(False). + When you set the :py:attr:`nidcpower.Session.samples_to_average` property in the Running state, the channel measurements might move out of synchronization. While NI-DCPower automatically synchronizes measurements upon the initialization of a session, you can force a synchronization in the running state before you run the :py:meth:`nidcpower.Session.measure_multiple` method. To force a synchronization in the running state, set this property to True, and then run the :py:meth:`nidcpower.Session.measure_multiple` method, specifying all channels in the channel name parameter. You can set the :py:attr:`nidcpower.Session.reset_average_before_measurement` property to False after the :py:meth:`nidcpower.Session.measure_multiple` method completes. + Default Value: True + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].reset_average_before_measurement` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.reset_average_before_measurement` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Advanced:Reset Average Before Measurement** + - C Attribute: **NIDCPOWER_ATTR_RESET_AVERAGE_BEFORE_MEASUREMENT** + +samples_to_average +------------------ + + .. py:attribute:: samples_to_average + + Specifies the number of samples to average when you take a measurement. + Increasing the number of samples to average decreases measurement noise but increases the time required to take a measurement. Refer to the NI PXI-4110, NI PXI-4130, NI PXI-4132, or NI PXIe-4154 Averaging topic for optional property settings to improve immunity to certain noise types, or refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic for information about improving noise immunity for those devices. + Default Value: + NI PXI-4110 or NI PXI-4130—10 + NI PXI-4132—1 + NI PXIe-4112—1 + NI PXIe-4113—1 + NI PXIe-4140/4141—1 + NI PXIe-4142/4143—1 + NI PXIe-4144/4145—1 + NI PXIe-4154—500 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].samples_to_average` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.samples_to_average` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Samples To Average** + - C Attribute: **NIDCPOWER_ATTR_SAMPLES_TO_AVERAGE** + +self_calibration_persistence +---------------------------- + + .. py:attribute:: self_calibration_persistence + + Specifies whether the values calculated during self-calibration should be written to hardware to be used until the next self-calibration or only used until the :py:meth:`nidcpower.Session.reset_device` method is called or the machine is powered down. + This property affects the behavior of the :py:meth:`nidcpower.Session.self_cal` method. When set to :py:data:`~nidcpower.SelfCalibrationPersistence.KEEP_IN_MEMORY`, the values calculated by the :py:meth:`nidcpower.Session.self_cal` method are used in the existing session, as well as in all further sessions until you call the :py:meth:`nidcpower.Session.reset_device` method or restart the machine. When you set this property to :py:data:`~nidcpower.SelfCalibrationPersistence.WRITE_TO_EEPROM`, the values calculated by the :py:meth:`nidcpower.Session.self_cal` method are written to hardware and used in the existing session and in all subsequent sessions until another call to the :py:meth:`nidcpower.Session.self_cal` method is made. + about supported devices. + Default Value: :py:data:`~nidcpower.SelfCalibrationPersistence.KEEP_IN_MEMORY` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].self_calibration_persistence` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.self_calibration_persistence` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.SelfCalibrationPersistence | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | instruments | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Advanced:Self-Calibration Persistence** + - C Attribute: **NIDCPOWER_ATTR_SELF_CALIBRATION_PERSISTENCE** + +sense +----- + + .. py:attribute:: sense + + Selects either local or remote sensing of the output voltage for the specified channel(s). + Refer to the Local and Remote Sense topic in the NI DC Power Supplies and SMUs Help for more information about sensing voltage on supported channels and about devices that support local and/or remote sensing. + Default Value: The default value is :py:data:`~nidcpower.Sense.LOCAL` if the device supports local sense. Otherwise, the default and only supported value is :py:data:`~nidcpower.Sense.REMOTE`. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sense` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sense` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | enums.Sense | + +-----------------------+-------------+ + | Permissions | read-write | + +-----------------------+-------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Measurement:Sense** + - C Attribute: **NIDCPOWER_ATTR_SENSE** + +sequence_advance_trigger_type +----------------------------- + + .. py:attribute:: sequence_advance_trigger_type + + Specifies the behavior of the Sequence Advance trigger. + Default Value: :py:data:`~nidcpower.TriggerType.NONE` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_advance_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_advance_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Sequence Advance Trigger:Trigger Type** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ADVANCE_TRIGGER_TYPE** + +sequence_engine_done_event_output_behavior +------------------------------------------ + + .. py:attribute:: sequence_engine_done_event_output_behavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Engine Done event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Sequence Engine Done event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. + + + + .. note:: This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_output_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.EventOutputBehavior | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Engine Done Event:Output Behavior** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_OUTPUT_BEHAVIOR** + +sequence_engine_done_event_output_terminal +------------------------------------------ + + .. py:attribute:: sequence_engine_done_event_output_terminal + + Specifies the output terminal for exporting the Sequence Engine Done Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Engine Done Event:Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_OUTPUT_TERMINAL** + +sequence_engine_done_event_pulse_polarity +----------------------------------------- + + .. py:attribute:: sequence_engine_done_event_pulse_polarity + + Specifies the behavior of the Sequence Engine Done event. + Default Value: :py:data:`~nidcpower.Polarity.HIGH` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_pulse_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Polarity | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Engine Done Event:Pulse:Polarity** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_PULSE_POLARITY** + +sequence_engine_done_event_pulse_width +-------------------------------------- + + .. py:attribute:: sequence_engine_done_event_pulse_width + + Specifies the width of the Sequence Engine Done event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + Valid Values: 1.5e-7 to 1.6e-6 seconds + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Engine Done Event:Pulse:Width** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_PULSE_WIDTH** + +sequence_engine_done_event_toggle_initial_state +----------------------------------------------- + + .. py:attribute:: sequence_engine_done_event_toggle_initial_state + + Specifies the initial state of the Sequence Engine Done event when you set the :py:attr:`nidcpower.Session.sequence_engine_done_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. + For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_toggle_initial_state` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.EventToggleInitialState | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Engine Done Event:Toggle:Initial State** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ENGINE_DONE_EVENT_TOGGLE_INITIAL_STATE** + +sequence_iteration_complete_event_output_behavior +------------------------------------------------- + + .. py:attribute:: sequence_iteration_complete_event_output_behavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Iteration Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Sequence Iteration Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. + + + + .. note:: This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_output_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.EventOutputBehavior | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Iteration Complete Event:Output Behavior** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_OUTPUT_BEHAVIOR** + +sequence_iteration_complete_event_output_terminal +------------------------------------------------- + + .. py:attribute:: sequence_iteration_complete_event_output_terminal + + Specifies the output terminal for exporting the Sequence Iteration Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Iteration Complete Event:Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_OUTPUT_TERMINAL** + +sequence_iteration_complete_event_pulse_polarity +------------------------------------------------ + + .. py:attribute:: sequence_iteration_complete_event_pulse_polarity + + Specifies the behavior of the Sequence Iteration Complete event. + Default Value: :py:data:`~nidcpower.Polarity.HIGH` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Polarity | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Iteration Complete Event:Pulse:Polarity** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_POLARITY** + +sequence_iteration_complete_event_pulse_width +--------------------------------------------- + + .. py:attribute:: sequence_iteration_complete_event_pulse_width + + Specifies the width of the Sequence Iteration Complete event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + the NI DC Power Supplies and SMUs Help for information about supported devices. + Valid Values: 1.5e-7 to 1.6e-6 seconds + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Iteration Complete Event:Pulse:Width** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_WIDTH** + +sequence_iteration_complete_event_toggle_initial_state +------------------------------------------------------ + + .. py:attribute:: sequence_iteration_complete_event_toggle_initial_state + + Specifies the initial state of the Sequence Iteration Complete event when you set the :py:attr:`nidcpower.Session.sequence_iteration_complete_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. + For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. + + + + .. note:: This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_toggle_initial_state` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.EventToggleInitialState | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Sequence Iteration Complete Event:Toggle:Initial State** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_ITERATION_COMPLETE_EVENT_TOGGLE_INITIAL_STATE** + +sequence_loop_count +------------------- + + .. py:attribute:: sequence_loop_count + + Specifies the number of times a sequence is run after initiation. + Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about the sequence loop count. + When the :py:attr:`nidcpower.Session.sequence_loop_count_is_finite` property is set to False, the :py:attr:`nidcpower.Session.sequence_loop_count` property is ignored. + Valid Range: 1 to 2147483647 + Default Value: 1 + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_loop_count` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Sequence Loop Count** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_LOOP_COUNT** + +sequence_loop_count_is_finite +----------------------------- + + .. py:attribute:: sequence_loop_count_is_finite + + Specifies whether a sequence should repeat indefinitely. + Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about infinite sequencing. + When the :py:attr:`nidcpower.Session.sequence_loop_count_is_finite` property is set to False, the :py:attr:`nidcpower.Session.sequence_loop_count` property is ignored. + Default Value: True + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count_is_finite` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_loop_count_is_finite` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Sequence Loop Count Is Finite** + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_LOOP_COUNT_IS_FINITE** + +sequence_step_delta_time +------------------------ + + .. py:attribute:: sequence_step_delta_time + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_step_delta_time` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_STEP_DELTA_TIME** + +sequence_step_delta_time_enabled +-------------------------------- + + .. py:attribute:: sequence_step_delta_time_enabled + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_step_delta_time_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDCPOWER_ATTR_SEQUENCE_STEP_DELTA_TIME_ENABLED** + +serial_number +------------- + + .. py:attribute:: serial_number + + Contains the serial number for the device you are currently using. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].serial_number` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.serial_number` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Serial Number** + - C Attribute: **NIDCPOWER_ATTR_SERIAL_NUMBER** + +shutdown_trigger_type +--------------------- + + .. py:attribute:: shutdown_trigger_type + + Specifies the behavior of the Shutdown trigger. + Default Value: :py:data:`~nidcpower.TriggerType.NONE` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].shutdown_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.shutdown_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Shutdown Trigger:Trigger Type** + - C Attribute: **NIDCPOWER_ATTR_SHUTDOWN_TRIGGER_TYPE** + +simulate +-------- + + .. py:attribute:: simulate + + Specifies whether to simulate NI-DCPower I/O operations. True specifies that operation is simulated. + Default Value: False + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** + - C Attribute: **NIDCPOWER_ATTR_SIMULATE** + +source_complete_event_output_behavior +------------------------------------- + + .. py:attribute:: source_complete_event_output_behavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Source Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.PULSE`, a single pulse is transmitted. If you set the Source Complete event output behavior to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`, the output level toggles between low and high. The default value is :py:data:`~nidcpower.EventOutputBehavior.PULSE`. + + + + .. note:: This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_output_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.EventOutputBehavior | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Source Complete Event:Output Behavior** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_OUTPUT_BEHAVIOR** + +source_complete_event_output_terminal +------------------------------------- + + .. py:attribute:: source_complete_event_output_terminal + + Specifies the output terminal for exporting the Source Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Source Complete Event:Output Terminal** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_OUTPUT_TERMINAL** + +source_complete_event_pulse_polarity +------------------------------------ + + .. py:attribute:: source_complete_event_pulse_polarity + + Specifies the behavior of the Source Complete event. + Default Value: :py:data:`~nidcpower.Polarity.HIGH` + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_pulse_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Polarity | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Source Complete Event:Pulse:Polarity** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_PULSE_POLARITY** + +source_complete_event_pulse_width +--------------------------------- + + .. py:attribute:: source_complete_event_pulse_width + + Specifies the width of the Source Complete event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds + Valid Values: 1.5e-7 to 1.6e-6 seconds + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Source Complete Event:Pulse:Width** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_PULSE_WIDTH** + +source_complete_event_toggle_initial_state +------------------------------------------ + + .. py:attribute:: source_complete_event_toggle_initial_state + + Specifies the initial state of the Source Complete event when you set the :py:attr:`nidcpower.Session.source_complete_event_output_behavior` property to :py:data:`~nidcpower.EventOutputBehavior.TOGGLE`. + For a Single Point mode acquisition, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to :py:data:`~nidcpower.NIDCPOWER_VAL_HIGH_STATE`, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is :py:data:`~nidcpower.NIDCPOWER_VAL_LOW_STATE`. + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_toggle_initial_state` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.EventToggleInitialState | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Source Complete Event:Toggle:Initial State** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_COMPLETE_EVENT_TOGGLE_INITIAL_STATE** + +source_delay +------------ + + .. py:attribute:: source_delay + + Determines when, in seconds, the device generates the Source Complete event, potentially starting a measurement if the :py:attr:`nidcpower.Session.measure_when` property is set to :py:data:`~nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE`. + Refer to the Single Point Source Mode and Sequence Source Mode topics for more information. + Valid Values: The PXIe-4051 supports values from 0 to 39 seconds. + The PXIe-4147 supports values from 0 to 26.5 seconds. + The PXIe-4150/4151 supports values from 0 to 42 seconds. + The PXIe-4162/4163 and PXIe-4190 support values from 0 to 23 seconds. + All other supported instruments support values from 0 to 167 seconds. + Default Value: 0.01667 seconds + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_delay` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Advanced:Source Delay** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_DELAY** + +source_mode +----------- + + .. py:attribute:: source_mode + + Specifies whether to run a single output point or a sequence. Refer to the Single Point Source Mode and Sequence Source Mode topics in the NI DC Power Supplies and SMUs Help for more information about source modes. + Default value: :py:data:`~nidcpower.SourceMode.SINGLE_POINT` + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_mode` + + The following table lists the characteristics of this property. + + +-----------------------+------------------+ + | Characteristic | Value | + +=======================+==================+ + | Datatype | enums.SourceMode | + +-----------------------+------------------+ + | Permissions | read-write | + +-----------------------+------------------+ + | Repeated Capabilities | channels | + +-----------------------+------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Source Mode** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_MODE** + +source_trigger_type +------------------- + + .. py:attribute:: source_trigger_type + + Specifies the behavior of the Source trigger. + Default Value: :py:data:`~nidcpower.TriggerType.NONE` + + + + .. note:: NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Source Trigger:Trigger Type** + - C Attribute: **NIDCPOWER_ATTR_SOURCE_TRIGGER_TYPE** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + Contains a brief description of the specific driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** + - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +specific_driver_prefix +---------------------- + + .. py:attribute:: specific_driver_prefix + + Contains the prefix for NI-DCPower. The name of each user-callable method in NI-DCPower begins with this prefix. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Prefix** + - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_PREFIX** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + Contains additional version information about NI-DCPower. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** + - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + Contains the name of the vendor that supplies NI-DCPower. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** + - C Attribute: **NIDCPOWER_ATTR_SPECIFIC_DRIVER_VENDOR** + +start_trigger_type +------------------ + + .. py:attribute:: start_trigger_type + + Specifies the behavior of the Start trigger. + Default Value: :py:data:`~nidcpower.TriggerType.NONE` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].start_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.start_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start Trigger:Trigger Type** + - C Attribute: **NIDCPOWER_ATTR_START_TRIGGER_TYPE** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + Contains a comma-separated (,) list of supported NI-DCPower device models. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** + - C Attribute: **NIDCPOWER_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +transient_response +------------------ + + .. py:attribute:: transient_response + + Specifies the transient response. Refer to the Transient Response topic in the NI DC Power Supplies and SMUs Help for more information about transient response. + Default Value: :py:data:`~nidcpower.TransientResponse.NORMAL` + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].transient_response` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.transient_response` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.TransientResponse | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Transient Response** + - C Attribute: **NIDCPOWER_ATTR_TRANSIENT_RESPONSE** + +voltage_compensation_frequency +------------------------------ + + .. py:attribute:: voltage_compensation_frequency + + The frequency at which a pole-zero pair is added to the system when the channel is in Constant Voltage mode. + Default value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_compensation_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Voltage:Compensation Frequency** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_COMPENSATION_FREQUENCY** + +voltage_gain_bandwidth +---------------------- + + .. py:attribute:: voltage_gain_bandwidth + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Voltage mode. + Default Value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_gain_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Voltage:Gain Bandwidth** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_GAIN_BANDWIDTH** + +voltage_level +------------- + + .. py:attribute:: voltage_level + + Specifies the voltage level, in volts, that the device attempts to generate on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + + Valid Values: The valid values for this property are defined by the values you specify for the :py:attr:`nidcpower.Session.voltage_level_range` property. + + + + .. note:: The channel must be enabled for the specified voltage level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Voltage Level** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LEVEL** + +voltage_level_autorange +----------------------- + + .. py:attribute:: voltage_level_autorange + + Specifies whether NI-DCPower automatically selects the voltage level range based on the desired voltage level for the specified channel(s). + If you set this property to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.voltage_level_range` property. If you change the :py:attr:`nidcpower.Session.voltage_level_autorange` property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.voltage_level_range` property was set to (or the default value if the property was never set) and uses that value as the voltage level range. + Query the :py:attr:`nidcpower.Session.voltage_level_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method for information about which range NI-DCPower automatically selects. + The :py:attr:`nidcpower.Session.voltage_level_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + Default Value: :py:data:`~nidcpower.AutoZero.OFF` + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_level_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_level_autorange` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Voltage Level Autorange** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LEVEL_AUTORANGE** + +voltage_level_range +------------------- + + .. py:attribute:: voltage_level_range + + Specifies the voltage level range, in volts, for the specified channel(s). + The range defines the valid values to which the voltage level can be set. Use the :py:attr:`nidcpower.Session.voltage_level_autorange` property to enable automatic selection of the voltage level range. + The :py:attr:`nidcpower.Session.voltage_level_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_VOLTAGE`. + + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The channel must be enabled for the specified voltage level range to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Voltage:Voltage Level Range** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LEVEL_RANGE** + +voltage_limit +------------- + + .. py:attribute:: voltage_limit + + Specifies the voltage limit, in volts, that the output cannot exceed when generating the desired current level on the specified channels. + This property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT` and the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to :py:data:`~nidcpower.ComplianceLimitSymmetry.SYMMETRIC`. + + Valid Values: The valid values for this property are defined by the values to which the :py:attr:`nidcpower.Session.voltage_limit_range` property is set. + + + + .. note:: The channel must be enabled for the specified current level to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Voltage Limit** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT** + +voltage_limit_autorange +----------------------- + + .. py:attribute:: voltage_limit_autorange + + Specifies whether NI-DCPower automatically selects the voltage limit range based on the desired voltage limit for the specified channel(s). + If this property is set to :py:data:`~nidcpower.AutoZero.ON`, NI-DCPower ignores any changes you make to the :py:attr:`nidcpower.Session.voltage_limit_range` property. If you change the :py:attr:`nidcpower.Session.voltage_limit_autorange` property from :py:data:`~nidcpower.AutoZero.ON` to :py:data:`~nidcpower.AutoZero.OFF`, NI-DCPower retains the last value the :py:attr:`nidcpower.Session.voltage_limit_range` property was set to (or the default value if the property was never set) and uses that value as the voltage limit range. + Query the :py:attr:`nidcpower.Session.voltage_limit_range` property by using the :py:meth:`nidcpower.Session._get_attribute_vi_int32` method to find out which range NI-DCPower automatically selects. + The :py:attr:`nidcpower.Session.voltage_limit_autorange` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + Default Value: :py:data:`~nidcpower.AutoZero.OFF` + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_autorange` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Voltage Limit Autorange** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_AUTORANGE** + +voltage_limit_high +------------------ + + .. py:attribute:: voltage_limit_high + + Specifies the maximum voltage, in volts, that the output can produce + when generating the desired current on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + You must also specify a :py:attr:`nidcpower.Session.voltage_limit_low` to complete the asymmetric + range. + **Valid Values:** [1% of :py:attr:`nidcpower.Session.voltage_limit_range`, :py:attr:`nidcpower.Session.voltage_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Voltage Limit High** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_HIGH** + +voltage_limit_low +----------------- + + .. py:attribute:: voltage_limit_low + + Specifies the minimum voltage, in volts, that the output can produce + when generating the desired current on the specified channel(s). + This property is applicable only if the :py:attr:`nidcpower.Session.compliance_limit_symmetry` property is set to + :py:data:`~nidcpower.ComplianceLimitSymmetry.ASYMMETRIC` and the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + You must also specify a :py:attr:`nidcpower.Session.voltage_limit_high` to complete the asymmetric + range. + **Valid Values:** [-:py:attr:`nidcpower.Session.voltage_limit_range`, -1% of :py:attr:`nidcpower.Session.voltage_limit_range`] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + + + .. note:: The limit may be extended beyond the selected limit range if the + :py:attr:`nidcpower.Session.overranging_enabled` property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Voltage Limit Low** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_LOW** + +voltage_limit_range +------------------- + + .. py:attribute:: voltage_limit_range + + Specifies the voltage limit range, in volts, for the specified channel(s). + The range defines the valid values to which the voltage limit can be set. Use the :py:attr:`nidcpower.Session.voltage_limit_autorange` property to enable automatic selection of the voltage limit range. + The :py:attr:`nidcpower.Session.voltage_limit_range` property is applicable only if the :py:attr:`nidcpower.Session.output_function` property is set to :py:data:`~nidcpower.OutputFunction.DC_CURRENT`. + + For valid ranges, refer to the specifications for your instrument. + + + + .. note:: The channel must be enabled for the specified voltage limit range to take effect. Refer to the :py:attr:`nidcpower.Session.output_enabled` property for more information about enabling the channel. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:DC Current:Voltage Limit Range** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_LIMIT_RANGE** + +voltage_pole_zero_ratio +----------------------- + + .. py:attribute:: voltage_pole_zero_ratio + + The ratio of the pole frequency to the zero frequency when the channel is in Constant Voltage mode. + Default value: Determined by the value of the :py:data:`~nidcpower.TransientResponse.NORMAL` setting of the :py:attr:`nidcpower.Session.transient_response` property. + + + + .. note:: This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_pole_zero_ratio` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Source:Custom Transient Response:Voltage:Pole-Zero Ratio** + - C Attribute: **NIDCPOWER_ATTR_VOLTAGE_POLE_ZERO_RATIO** + + +.. contents:: Session diff --git a/docs/nidcpower/conf.py b/docs/nidcpower/conf.py new file mode 100644 index 0000000000..e8eafe2da8 --- /dev/null +++ b/docs/nidcpower/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-DCPower Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-DCPower Python API' +copyright = '2017-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.6.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIDCPowerPythonAPI.tex', 'NI-DCPower Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nidcpowerpythonapi', 'NI-DCPower Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIDCPowerPythonAPI', 'NI-DCPower Python API Documentation', + author, 'NIDCPowerPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nidcpower/enums.rst b/docs/nidcpower/enums.rst new file mode 100644 index 0000000000..fab1748ed2 --- /dev/null +++ b/docs/nidcpower/enums.rst @@ -0,0 +1,1560 @@ +Enums +===== + +Enums used in NI-DCPower + +.. py:currentmodule:: nidcpower + + +ApertureTimeAutoMode +-------------------- + +.. py:class:: ApertureTimeAutoMode + + .. py:attribute:: ApertureTimeAutoMode.OFF + + + + Disables automatic aperture time scaling. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for all ranges. + + + + + + .. py:attribute:: ApertureTimeAutoMode.SHORT + + + + Prioritizes measurement speed over measurement accuracy by quickly scaling down aperture time in larger current ranges. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for the minimum range. + + + + + + .. py:attribute:: ApertureTimeAutoMode.NORMAL + + + + Balances measurement accuracy and speed by scaling down aperture time in larger current ranges. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for the minimum range. + + + + + + .. py:attribute:: ApertureTimeAutoMode.LONG + + + + Prioritizes accuracy while still decreasing measurement time by slowly scaling down aperture time in larger current ranges. The :py:attr:`nidcpower.Session.aperture_time` property specifies the aperture time for the minimum range. + + + + + +ApertureTimeUnits +----------------- + +.. py:class:: ApertureTimeUnits + + .. py:attribute:: ApertureTimeUnits.SECONDS + + + + Specifies aperture time in seconds. + + + + + + .. py:attribute:: ApertureTimeUnits.POWER_LINE_CYCLES + + + + Specifies aperture time in power line cycles (PLCs). + + + + + +AutoZero +-------- + +.. py:class:: AutoZero + + .. py:attribute:: AutoZero.OFF + + + + Disables auto zero. + + + + + + .. py:attribute:: AutoZero.ONCE + + + + Makes zero conversions following the first measurement after initiating the device. The device uses these zero conversions for the preceding measurement and future measurements until the device is reinitiated. + + + + + + .. py:attribute:: AutoZero.ON + + + + Makes zero conversions for every measurement. + + + + + +AutorangeApertureTimeMode +------------------------- + +.. py:class:: AutorangeApertureTimeMode + + .. py:attribute:: AutorangeApertureTimeMode.AUTO + + + + NI-DCPower optimizes the aperture time for the autorange algorithm based on the module range. + + + + + + .. py:attribute:: AutorangeApertureTimeMode.CUSTOM + + + + The user specifies a minimum aperture time for the algorithm using the :py:attr:`nidcpower.Session.autorange_minimum_aperture_time` property and the corresponding :py:attr:`nidcpower.Session.autorange_minimum_aperture_time_units` property. + + + + + +AutorangeBehavior +----------------- + +.. py:class:: AutorangeBehavior + + .. py:attribute:: AutorangeBehavior.UP_TO_LIMIT_THEN_DOWN + + + + Go to limit range then range down as needed until measured value is within thresholds. + + + + + + .. py:attribute:: AutorangeBehavior.UP + + + + go up one range when the upper threshold is reached. + + + + + + .. py:attribute:: AutorangeBehavior.UP_AND_DOWN + + + + go up or down one range when the upper/lower threshold is reached. + + + + + +AutorangeThresholdMode +---------------------- + +.. py:class:: AutorangeThresholdMode + + .. py:attribute:: AutorangeThresholdMode.NORMAL + + + + Thresholds are selected based on a balance between accuracy and hysteresis. + + + + + + .. py:attribute:: AutorangeThresholdMode.FAST_STEP + + + + Optimized for faster changes in the measured signal. Thresholds are configured to be a smaller percentage of the range. + + + + + + .. py:attribute:: AutorangeThresholdMode.HIGH_HYSTERESIS + + + + Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a larger percentage of the range. + + + + + + .. py:attribute:: AutorangeThresholdMode.MEDIUM_HYSTERESIS + + + + Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a medium percentage of the range. + + + + + + .. py:attribute:: AutorangeThresholdMode.HOLD + + + + Attempt to maintain the active range. Thresholds will favor the active range. + + + + + +CableLength +----------- + +.. py:class:: CableLength + + .. py:attribute:: CableLength.ZERO_M + + + + Uses predefined cable compensation data for a 0m cable (direct connection). + + + + + + .. py:attribute:: CableLength.NI_STANDARD_0_5M + + + + Uses predefined cable compensation data for an NI standard 0.5m coaxial cable. + + + + + + .. py:attribute:: CableLength.NI_STANDARD_1M + + + + Uses predefined cable compensation data for an NI standard 1m coaxial cable. + + + + + + .. py:attribute:: CableLength.NI_STANDARD_2M + + + + Uses predefined cable compensation data for an NI standard 2m coaxial cable. + + + + + + .. py:attribute:: CableLength.NI_STANDARD_4M + + + + Uses predefined cable compensation data for an NI standard 4m coaxial cable. + + + + + + .. py:attribute:: CableLength.NI_STANDARD_TRIAXIAL_1M + + + + Uses predefined cable compensation data for an NI standard 1m triaxial cable. + + + + + + .. py:attribute:: CableLength.NI_STANDARD_TRIAXIAL_2M + + + + Uses predefined cable compensation data for an NI standard 2m triaxial cable. + + + + + + .. py:attribute:: CableLength.NI_STANDARD_TRIAXIAL_4M + + + + Uses predefined cable compensation data for an NI standard 4m triaxial cable. + + + + + + .. py:attribute:: CableLength.CUSTOM_ONBOARD_STORAGE + + + + Uses previously generated custom cable compensation data from onboard storage. Only the most recently performed compensation data for each custom cable compensation type (open, short) is stored. + + + + + + .. py:attribute:: CableLength.CUSTOM_AS_CONFIGURED + + + + Uses the custom cable compensation data supplied to :py:meth:`nidcpower.Session.configure_lcr_custom_cable_compensation`. Use this option to manage multiple sets of custom cable compensation data. + + + + + +ComplianceLimitSymmetry +----------------------- + +.. py:class:: ComplianceLimitSymmetry + + .. py:attribute:: ComplianceLimitSymmetry.SYMMETRIC + + + + Compliance limits are specified symmetrically about 0. + + + + + + .. py:attribute:: ComplianceLimitSymmetry.ASYMMETRIC + + + + Compliance limits can be specified asymmetrically with respect to 0. + + + + + +ConductionVoltageMode +--------------------- + +.. py:class:: ConductionVoltageMode + + .. py:attribute:: ConductionVoltageMode.AUTOMATIC + + + + The conduction voltage feature is only enabled when you set the :py:attr:`nidcpower.Session.output_function` property to :py:data:`~nidcpower.OutputFunction.DC_CURRENT` or :py:data:`~nidcpower.OutputFunction.CONSTANT_POWER`. + + + + + + .. py:attribute:: ConductionVoltageMode.ENABLED + + + + The conduction voltage feature is enabled. + + + + + + .. py:attribute:: ConductionVoltageMode.DISABLED + + + + The conduction voltage feature is disabled. + + + + + +CurrentLimitBehavior +-------------------- + +.. py:class:: CurrentLimitBehavior + + .. py:attribute:: CurrentLimitBehavior.REGULATE + + + + The channel acts to restrict the output current to the value of the Current Limit property when the actual output on the channel reaches or exceeds that value. + + + + + + .. py:attribute:: CurrentLimitBehavior.TRIP + + + + The channel disables the output when the actual output current on the channel reaches or exceeds the value of the Current Limit property. + + + + + +DCNoiseRejection +---------------- + +.. py:class:: DCNoiseRejection + + .. py:attribute:: DCNoiseRejection.SECOND_ORDER + + + + Second-order rejection of DC noise. + + + + + + .. py:attribute:: DCNoiseRejection.NORMAL + + + + Normal rejection of DC noise. + + + + + +Event +----- + +.. py:class:: Event + + .. py:attribute:: Event.SOURCE_COMPLETE + + + + Specifies the Source Complete event. + + + + + + .. py:attribute:: Event.MEASURE_COMPLETE + + + + Specifies the Measure Complete event. + + + + + + .. py:attribute:: Event.SEQUENCE_ITERATION_COMPLETE + + + + Specifies the Sequence Iteration Complete event. + + + + + + .. py:attribute:: Event.SEQUENCE_ENGINE_DONE + + + + Specifies the Sequence Engine Done event. + + + + + + .. py:attribute:: Event.PULSE_COMPLETE + + + + Specifies the Pulse Complete event. + + + + + + .. py:attribute:: Event.READY_FOR_PULSE_TRIGGER + + + + Specifies the Ready for Pulse Trigger event. + + + + + +EventOutputBehavior +------------------- + +.. py:class:: EventOutputBehavior + + .. py:attribute:: EventOutputBehavior.PULSE + + + + Output generates a pulse when the event is triggered. + + + + + + .. py:attribute:: EventOutputBehavior.TOGGLE + + + + Output toggles state when the event is triggered. + + + + + +EventToggleInitialState +----------------------- + +.. py:class:: EventToggleInitialState + + .. py:attribute:: EventToggleInitialState.LOW + + + + The initial state is low. + + + + + + .. py:attribute:: EventToggleInitialState.HIGH + + + + The initial state is high. + + + + + +InstrumentMode +-------------- + +.. py:class:: InstrumentMode + + .. py:attribute:: InstrumentMode.SMU_PS + + + + The channel operates as an SMU/power supply. + + + + + + .. py:attribute:: InstrumentMode.LCR + + + + The channel operates as an LCR meter. + + + + + + .. py:attribute:: InstrumentMode.E_LOAD + + + + The channel operates as an electronic load (E-Load). + + + + + +LCRCompensationType +------------------- + +.. py:class:: LCRCompensationType + + .. py:attribute:: LCRCompensationType.OPEN + + + + Open LCR compensation. + + + + + + .. py:attribute:: LCRCompensationType.SHORT + + + + Short LCR compensation. + + + + + + .. py:attribute:: LCRCompensationType.LOAD + + + + Load LCR compensation. + + + + + + .. py:attribute:: LCRCompensationType.OPEN_CUSTOM_CABLE + + + + Open custom cable compensation. + + + + + + .. py:attribute:: LCRCompensationType.SHORT_CUSTOM_CABLE + + + + Short custom cable compensation. + + + + + +LCRDCBiasSource +--------------- + +.. py:class:: LCRDCBiasSource + + .. py:attribute:: LCRDCBiasSource.OFF + + + + Disables DC bias in LCR mode. + + + + + + .. py:attribute:: LCRDCBiasSource.VOLTAGE + + + + Applies a constant voltage bias, as defined by the :py:attr:`nidcpower.Session.lcr_dc_bias_voltage_level` property. + + + + + + .. py:attribute:: LCRDCBiasSource.CURRENT + + + + Applies a constant current bias, as defined by the :py:attr:`nidcpower.Session.lcr_dc_bias_current_level` property. + + + + + +LCRDCBiasTransientResponse +-------------------------- + +.. py:class:: LCRDCBiasTransientResponse + + .. py:attribute:: LCRDCBiasTransientResponse.NORMAL + + + + NI-DCPower automatically applies transient response values for DC bias. + + + + + + .. py:attribute:: LCRDCBiasTransientResponse.CUSTOM + + + + NI-DCPower applies the transient response that you set manually with :py:attr:`nidcpower.Session.transient_response` for DC bias. Search ni.com for information on configuring transient response. + + + + + +LCRImpedanceRangeSource +----------------------- + +.. py:class:: LCRImpedanceRangeSource + + .. py:attribute:: LCRImpedanceRangeSource.IMPEDANCE_RANGE + + + + Uses the impedance range you specify with the :py:attr:`nidcpower.Session.lcr_impedance_range` property. + + + + + + .. py:attribute:: LCRImpedanceRangeSource.LOAD_CONFIGURATION + + + + Computes the impedance range to select based on the values you supply to the :py:attr:`nidcpower.Session.lcr_load_resistance`, :py:attr:`nidcpower.Session.lcr_load_inductance`, and :py:attr:`nidcpower.Session.lcr_load_capacitance` properties. NI-DCPower uses a series model of load resistance, load inductance, and load capacitance to compute the impedance range. + + + + + +LCRMeasurementTime +------------------ + +.. py:class:: LCRMeasurementTime + + .. py:attribute:: LCRMeasurementTime.SHORT + + + + Uses a short aperture time for LCR measurements. + + + + + + .. py:attribute:: LCRMeasurementTime.MEDIUM + + + + Uses a medium aperture time for LCR measurements. + + + + + + .. py:attribute:: LCRMeasurementTime.LONG + + + + Uses a long aperture time for LCR measurements. + + + + + + .. py:attribute:: LCRMeasurementTime.CUSTOM + + + + Uses a custom aperture time for LCR measurements as specified by the :py:attr:`nidcpower.Session.lcr_custom_measurement_time` property. + + + + + +LCROpenShortLoadCompensationDataSource +-------------------------------------- + +.. py:class:: LCROpenShortLoadCompensationDataSource + + .. py:attribute:: LCROpenShortLoadCompensationDataSource.ONBOARD_STORAGE + + + + Uses previously generated LCR compensation data. Only the most recently performed compensation data for each LCR compensation type (open, short, and load) is stored. + + + + + + .. py:attribute:: LCROpenShortLoadCompensationDataSource.AS_DEFINED + + + + Uses the LCR compensation data represented by the relevant LCR compensation properties as generated by :py:meth:`nidcpower.Session.perform_lcr_open_compensation`, :py:meth:`nidcpower.Session.perform_lcr_short_compensation`, and :py:meth:`nidcpower.Session.perform_lcr_load_compensation`. Use this option to manage multiple sets of LCR compensation data. This option applies compensation data from the following properties: :py:attr:`nidcpower.Session.lcr_open_conductance`, :py:attr:`nidcpower.Session.lcr_open_susceptance`, :py:attr:`nidcpower.Session.lcr_short_resistance`, :py:attr:`nidcpower.Session.lcr_short_reactance`, :py:attr:`nidcpower.Session.lcr_measured_load_resistance`, :py:attr:`nidcpower.Session.lcr_measured_load_reactance`, :py:attr:`nidcpower.Session.lcr_actual_load_resistance`, :py:attr:`nidcpower.Session.lcr_actual_load_reactance`. + + + + + + .. py:attribute:: LCROpenShortLoadCompensationDataSource.AS_CONFIGURED + + + + Uses the LCR compensation data supplied to :py:meth:`nidcpower.Session.configure_lcr_compensation`. Use this option to manage multiple sets of LCR compensation data. + + + + + +LCRReferenceValueType +--------------------- + +.. py:class:: LCRReferenceValueType + + .. py:attribute:: LCRReferenceValueType.IMPEDANCE + + + + The actual impedance, comprising real resistance and imaginary reactance, of your DUT. Supply resistance, in ohms, to reference value A; supply reactance, in ohms, to reference value B. + + + + + + .. py:attribute:: LCRReferenceValueType.IDEAL_CAPACITANCE + + + + The ideal capacitance of your DUT. Supply capacitance, in farads, to reference value A. + + + + + + .. py:attribute:: LCRReferenceValueType.IDEAL_INDUCTANCE + + + + The ideal inductance of your DUT. Supply inductance, in henrys, to reference value A. + + + + + + .. py:attribute:: LCRReferenceValueType.IDEAL_RESISTANCE + + + + The ideal resistance of your DUT. Supply resistance, in ohms, to reference value A. + + + + + +LCRSourceDelayMode +------------------ + +.. py:class:: LCRSourceDelayMode + + .. py:attribute:: LCRSourceDelayMode.AUTOMATIC + + + + NI-DCPower automatically applies source delay of sufficient duration to account for settling time. + + + + + + .. py:attribute:: LCRSourceDelayMode.MANUAL + + + + NI-DCPower applies the source delay that you set manually with :py:attr:`nidcpower.Session.source_delay`. You can use this option to set a shorter delay to reduce measurement time at the possible expense of measurement accuracy. + + + + + +LCRStimulusFunction +------------------- + +.. py:class:: LCRStimulusFunction + + .. py:attribute:: LCRStimulusFunction.VOLTAGE + + + + Applies an AC voltage for LCR stimulus. + + + + + + .. py:attribute:: LCRStimulusFunction.CURRENT + + + + Applies an AC current for LCR stimulus. + + + + + +MeasureWhen +----------- + +.. py:class:: MeasureWhen + + .. py:attribute:: MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE + + + + Acquires a measurement after each Source Complete event completes. + + + + + + .. py:attribute:: MeasureWhen.ON_DEMAND + + + + Acquires a measurement when the :py:meth:`nidcpower.Session.measure` method or :py:meth:`nidcpower.Session.measure_multiple` method is called. + + + + + + .. py:attribute:: MeasureWhen.ON_MEASURE_TRIGGER + + + + Acquires a measurement when a Measure trigger is received. + + + + + +MeasurementTypes +---------------- + +.. py:class:: MeasurementTypes + + .. py:attribute:: MeasurementTypes.CURRENT + + + + The device measures current. + + + + + + .. py:attribute:: MeasurementTypes.VOLTAGE + + + + The device measures voltage. + + + + + +OutputCapacitance +----------------- + +.. py:class:: OutputCapacitance + + .. py:attribute:: OutputCapacitance.LOW + + + + Output Capacitance is low. + + + + + + .. py:attribute:: OutputCapacitance.HIGH + + + + Output Capacitance is high. + + + + + +OutputCutoffReason +------------------ + +.. py:class:: OutputCutoffReason + + .. py:attribute:: OutputCutoffReason.ALL + + + + Queries any output cutoff condition; clears all output cutoff conditions. + + + + + + .. py:attribute:: OutputCutoffReason.VOLTAGE_OUTPUT_HIGH + + + + Queries or clears cutoff conditions when the output exceeded the high cutoff limit for voltage output. + + + + + + .. py:attribute:: OutputCutoffReason.VOLTAGE_OUTPUT_LOW + + + + Queries or clears cutoff conditions when the output fell below the low cutoff limit for voltage output. + + + + + + .. py:attribute:: OutputCutoffReason.CURRENT_MEASURE_HIGH + + + + Queries or clears cutoff conditions when the measured current exceeded the high cutoff limit for current output. + + + + + + .. py:attribute:: OutputCutoffReason.CURRENT_MEASURE_LOW + + + + Queries or clears cutoff conditions when the measured current fell below the low cutoff limit for current output. + + + + + + .. py:attribute:: OutputCutoffReason.VOLTAGE_CHANGE_HIGH + + + + Queries or clears cutoff conditions when the voltage slew rate increased beyond the positive change cutoff for voltage output. + + + + + + .. py:attribute:: OutputCutoffReason.VOLTAGE_CHANGE_LOW + + + + Queries or clears cutoff conditions when the voltage slew rate decreased beyond the negative change cutoff for voltage output. + + + + + + .. py:attribute:: OutputCutoffReason.CURRENT_CHANGE_HIGH + + + + Queries or clears cutoff conditions when the current slew rate increased beyond the positive change cutoff for current output. + + + + + + .. py:attribute:: OutputCutoffReason.CURRENT_CHANGE_LOW + + + + Queries or clears cutoff conditions when the current slew rate decreased beyond the negative change cutoff for current output. + + + + + + .. py:attribute:: OutputCutoffReason.CURRENT_SATURATED + + + + Queries or clears cutoff conditions when the measured current saturates the current range. + + + + + + .. py:attribute:: OutputCutoffReason.VOLTAGE_MEASURE_HIGH + + + + Queries or clears cutoff conditions when the measured voltage exceeded the high cutoff limit for voltage output. + + + + + + .. py:attribute:: OutputCutoffReason.VOLTAGE_MEASURE_LOW + + + + Queries or clears cutoff conditions when the measured voltage fell below the low cutoff limit for voltage output. + + + + + +OutputFunction +-------------- + +.. py:class:: OutputFunction + + .. py:attribute:: OutputFunction.DC_VOLTAGE + + + + Sets the output method to DC voltage. + + + + + + .. py:attribute:: OutputFunction.DC_CURRENT + + + + Sets the output method to DC current. + + + + + + .. py:attribute:: OutputFunction.PULSE_VOLTAGE + + + + Sets the output method to pulse voltage. + + + + + + .. py:attribute:: OutputFunction.PULSE_CURRENT + + + + Sets the output method to pulse current. + + + + + + .. py:attribute:: OutputFunction.CONSTANT_RESISTANCE + + + + Sets the output method to constant resistance. + + + + + + .. py:attribute:: OutputFunction.CONSTANT_POWER + + + + Sets the output method to constant power. + + + + + +OutputStates +------------ + +.. py:class:: OutputStates + + .. py:attribute:: OutputStates.CONSTANT_VOLTAGE + + + + The channel maintains a constant voltage by adjusting the current. + + + + + + .. py:attribute:: OutputStates.CONSTANT_CURRENT + + + + The channel maintains a constant current by adjusting the voltage. + + + + + + .. py:attribute:: OutputStates.INHIBITED + + + + The channel is in the inhibited state. + + + + + +Polarity +-------- + +.. py:class:: Polarity + + .. py:attribute:: Polarity.HIGH + + + + A high pulse occurs when the event is generated. The exported signal is low level both before and after the event is generated. + + + + + + .. py:attribute:: Polarity.LOW + + + + A low pulse occurs when the event is generated. The exported signal is high level both before and after the event is generated. + + + + + +PowerAllocationMode +------------------- + +.. py:class:: PowerAllocationMode + + .. py:attribute:: PowerAllocationMode.DISABLED + + + + The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower does not perform a sourcing power check. If the required power is greater than the maximum sourcing power, the device attempts to source the required amount and may shut down to prevent damage. + + + + + + .. py:attribute:: PowerAllocationMode.AUTOMATIC + + + + The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower performs a sourcing power check. If the required power is greater than the maximum sourcing power, the device does not exceed the maximum power, and NI-DCPower returns an error. + + + + + + .. py:attribute:: PowerAllocationMode.MANUAL + + + + The device attempts to source, on each active channel, the power you request with the :py:attr:`nidcpower.Session.requested_power_allocation` property; NI-DCPower performs a sourcing power check. If the requested power is either less than the required power for the present source configuration or greater than the maximum sourcing power, the device does not exceed the requested or allowed power, respectively, and NI-DCPower returns an error. + + + + + +PowerSource +----------- + +.. py:class:: PowerSource + + .. py:attribute:: PowerSource.INTERNAL + + + + Uses the PXI chassis power source. + + + + + + .. py:attribute:: PowerSource.AUXILIARY + + + + Uses the auxiliary power source connected to the device. + + + + + + .. py:attribute:: PowerSource.AUTOMATIC + + + + Uses the auxiliary power source if it is available; otherwise uses the PXI chassis power source. + + + + + +PowerSourceInUse +---------------- + +.. py:class:: PowerSourceInUse + + .. py:attribute:: PowerSourceInUse.INTERNAL + + + + Uses the PXI chassis power source. + + + + + + .. py:attribute:: PowerSourceInUse.AUXILIARY + + + + Uses the auxiliary power source connected to the device. Only the NI PXI-4110, NI PXIe-4112, NI PXIe-4113, and NI PXI-4130 support this value. This is the only supported value for the NI PXIe-4112 and NI PXIe-4113. + + + + + +SelfCalibrationPersistence +-------------------------- + +.. py:class:: SelfCalibrationPersistence + + .. py:attribute:: SelfCalibrationPersistence.KEEP_IN_MEMORY + + + + Keep new self calibration values in memory only. + + + + + + .. py:attribute:: SelfCalibrationPersistence.WRITE_TO_EEPROM + + + + Write new self calibration values to hardware. + + + + + +SendSoftwareEdgeTriggerType +--------------------------- + +.. py:class:: SendSoftwareEdgeTriggerType + + .. py:attribute:: SendSoftwareEdgeTriggerType.START + + + + Asserts the Start trigger. + + + + + + .. py:attribute:: SendSoftwareEdgeTriggerType.SOURCE + + + + Asserts the Source trigger. + + + + + + .. py:attribute:: SendSoftwareEdgeTriggerType.MEASURE + + + + Asserts the Measure trigger. + + + + + + .. py:attribute:: SendSoftwareEdgeTriggerType.SEQUENCE_ADVANCE + + + + Asserts the Sequence Advance trigger. + + + + + + .. py:attribute:: SendSoftwareEdgeTriggerType.PULSE + + + + Asserts the Pulse trigger. + + + + + + .. py:attribute:: SendSoftwareEdgeTriggerType.SHUTDOWN + + + + Asserts the Shutdown trigger. + + + + + +Sense +----- + +.. py:class:: Sense + + .. py:attribute:: Sense.LOCAL + + + + Local sensing is selected. + + + + + + .. py:attribute:: Sense.REMOTE + + + + Remote sensing is selected. + + + + + +SourceMode +---------- + +.. py:class:: SourceMode + + .. py:attribute:: SourceMode.SINGLE_POINT + + + + The source unit applies a single source configuration. + + + + + + .. py:attribute:: SourceMode.SEQUENCE + + + + The source unit applies a list of voltage or current configurations sequentially. + + + + + +TransientResponse +----------------- + +.. py:class:: TransientResponse + + .. py:attribute:: TransientResponse.NORMAL + + + + The output responds to changes in load at a normal speed. + + + + + + .. py:attribute:: TransientResponse.FAST + + + + The output responds to changes in load quickly. + + + + + + .. py:attribute:: TransientResponse.SLOW + + + + The output responds to changes in load slowly. + + + + + + .. py:attribute:: TransientResponse.CUSTOM + + + + The output responds to changes in load based on specified values. + + + + + +TriggerType +----------- + +.. py:class:: TriggerType + + .. py:attribute:: TriggerType.NONE + + + + No trigger is configured. + + + + + + .. py:attribute:: TriggerType.DIGITAL_EDGE + + + + The data operation starts when a digital edge is detected. + + + + + + .. py:attribute:: TriggerType.SOFTWARE_EDGE + + + + The data operation starts when a software trigger occurs. + + + + + + + diff --git a/docs/nidcpower/errors.rst b/docs/nidcpower/errors.rst new file mode 100644 index 0000000000..5446f8504a --- /dev/null +++ b/docs/nidcpower/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: Error + + Base exception type that all NI-DCPower exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: DriverError + + An error originating from the NI-DCPower driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-DCPower driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: DriverTooNewError + + An error due to the NI-DCPower driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nidcpower.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: nidcpower.errors + + .. exception:: DriverWarning + + A warning originating from the NI-DCPower driver + + + diff --git a/docs/nidcpower/examples.rst b/docs/nidcpower/examples.rst new file mode 100644 index 0000000000..a9d5198b9b --- /dev/null +++ b/docs/nidcpower/examples.rst @@ -0,0 +1,68 @@ +Examples +======== + +`You can download all nidcpower examples for latest version here `_ + +nidcpower_advanced_sequence.py +------------------------------ + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_advanced_sequence.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_advanced_sequence.py) `_ + +nidcpower_constant_resistance_and_constant_power.py +--------------------------------------------------- + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_constant_resistance_and_constant_power.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_constant_resistance_and_constant_power.py) `_ + +nidcpower_lcr_source_ac_voltage.py +---------------------------------- + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_lcr_source_ac_voltage.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_lcr_source_ac_voltage.py) `_ + +nidcpower_measure_record.py +--------------------------- + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_measure_record.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_measure_record.py) `_ + +nidcpower_sink_dc_current_into_electronic_load.py +------------------------------------------------- + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_sink_dc_current_into_electronic_load.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_sink_dc_current_into_electronic_load.py) `_ + +nidcpower_sink_dc_voltage_with_output_resistance.py +--------------------------------------------------- + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_sink_dc_voltage_with_output_resistance.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_sink_dc_voltage_with_output_resistance.py) `_ + +nidcpower_source_delay_measure.py +--------------------------------- + +.. literalinclude:: ../../src/nidcpower/examples/nidcpower_source_delay_measure.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidcpower_source_delay_measure.py) `_ + diff --git a/docs/nidcpower/grpc_session_options.rst b/docs/nidcpower/grpc_session_options.rst new file mode 100644 index 0000000000..5c67fb9a55 --- /dev/null +++ b/docs/nidcpower/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-DCPower over gRPC + +.. py:currentmodule:: nidcpower + + + +Creating a gRPC channel +----------------------- + +Using NI-DCPower over gRPC requires the ``grpc`` extra:: + + $ python -m pip install nidcpower[grpc] + +Every NI-DCPower gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`nidcpower.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-DCPower runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import nidcpower + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = nidcpower.GrpcSessionOptions(channel, '') + with nidcpower.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`nidcpower.SessionInitializationBehavior` diff --git a/docs/nidcpower/index.rst b/docs/nidcpower/index.rst new file mode 100644 index 0000000000..2a68c96659 --- /dev/null +++ b/docs/nidcpower/index.rst @@ -0,0 +1,31 @@ + +NI-DCPower Python API Documentation +=================================== + +.. include:: about_nidcpower.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nidcpower + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nidcpower/installation.inc b/docs/nidcpower/installation.inc new file mode 100644 index 0000000000..632f6a018e --- /dev/null +++ b/docs/nidcpower/installation.inc @@ -0,0 +1,13 @@ + +.. _nidcpower_installation-section: + +Installation +------------ + +As a prerequisite to using the **nidcpower** module, you must install the NI-DCPower runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-DCPower**) can be installed with `pip `_:: + + $ python -m pip install nidcpower + + diff --git a/docs/nidcpower/nidcpower.rst b/docs/nidcpower/nidcpower.rst new file mode 100644 index 0000000000..b8438db6ac --- /dev/null +++ b/docs/nidcpower/nidcpower.rst @@ -0,0 +1,9 @@ +nidcpower module +================ + +.. include:: installation.inc + +.. include:: ../_static/nidcpower_usage.inc + +.. include:: toc.inc + diff --git a/docs/nidcpower/rep_caps.rst b/docs/nidcpower/rep_caps.rst new file mode 100644 index 0000000000..6078e4deab --- /dev/null +++ b/docs/nidcpower/rep_caps.rst @@ -0,0 +1,50 @@ +.. py:module:: nidcpower + :noindex: + +.. py:currentmodule:: nidcpower.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niDCPower_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +channels +-------- + + .. py:attribute:: nidcpower.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +instruments +----------- + + .. py:attribute:: nidcpower.Session.instruments[] + + .. code:: python + + session.instruments['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + + diff --git a/docs/nidcpower/status.inc b/docs/nidcpower/status.inc new file mode 100644 index 0000000000..0ff6e79fe5 --- /dev/null +++ b/docs/nidcpower/status.inc @@ -0,0 +1,46 @@ + +NI-DCPower Python API Status +---------------------------- + ++-------------------------------+--------------------------+ +| NI-DCPower (nidcpower) | | ++===============================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+--------------------------+ +| PyPI Version | |nidcpowerLatestVersion| | ++-------------------------------+--------------------------+ +| Supported Python Version | |nidcpowerPythonVersion| | ++-------------------------------+--------------------------+ +| Documentation | |nidcpowerDocs| | ++-------------------------------+--------------------------+ +| Open Issues | |nidcpowerOpenIssues| | ++-------------------------------+--------------------------+ +| Open Pull Requests | |nidcpowerOpenPRs| | ++-------------------------------+--------------------------+ + + +.. |nidcpowerLatestVersion| image:: http://img.shields.io/pypi/v/nidcpower.svg + :alt: Latest NI-DCPower Version + :target: http://pypi.python.org/pypi/nidcpower + + +.. |nidcpowerPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidcpower.svg + :alt: NI-DCPower supported Python versions + :target: http://pypi.python.org/pypi/nidcpower + + +.. |nidcpowerDocs| image:: https://readthedocs.org/projects/nidcpower/badge/?version=latest + :alt: NI-DCPower Python API Documentation Status + :target: https://nidcpower.readthedocs.io/en/latest + + +.. |nidcpowerOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidcpower.svg + :alt: Open Issues + Pull Requests for NI-DCPower + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidcpower + + +.. |nidcpowerOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidcpower.svg + :alt: Pull Requests for NI-DCPower + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidcpower + + diff --git a/docs/nidcpower/toc.inc b/docs/nidcpower/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/nidcpower/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/nidigital/.readthedocs.yaml b/docs/nidigital/.readthedocs.yaml new file mode 100644 index 0000000000..4aee39a79a --- /dev/null +++ b/docs/nidigital/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nidigital/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nidigital/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nidigital/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nidigital/about_nidigital.inc b/docs/nidigital/about_nidigital.inc new file mode 100644 index 0000000000..083f0a6518 --- /dev/null +++ b/docs/nidigital/about_nidigital.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nidigital** module provides a Python API for NI-Digital Pattern Driver. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nidigital** supports all the Operating Systems supported by NI-Digital Pattern Driver. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nidigital**. + diff --git a/docs/nidigital/class.rst b/docs/nidigital/class.rst new file mode 100644 index 0000000000..757baeb72f --- /dev/null +++ b/docs/nidigital/class.rst @@ -0,0 +1,5724 @@ +.. py:module:: nidigital + +Session +======= + +.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) + + + + Creates and returns a new session to the specified digital pattern instrument to use in all subsequent method calls. To place the instrument in a known startup state when creating a new session, set the reset parameter to True, which is equivalent to calling the :py:meth:`nidigital.Session.reset` method immediately after initializing the session. + + + + + + :param resource_name: + + + 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. **resourceName** can also be a logical IVI name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where ``PXI1Slot2`` is one instrument resource name and ``PXI1Slot3`` is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. + + +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | |Note| | Note   You only can specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and PXIe-6571. The instruments must be in the same chassis. | + +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. |Note| image:: note.gif + + + + .. note:: + + + :type resource_name: str + + :param id_query: + + + A Boolean that verifies that the digital pattern instrument you initialize is supported by NI-Digital. NI-Digital automatically performs this query, so setting this parameter is not necessary. + + + + + :type id_query: bool + + :param reset_device: + + + A Boolean that specifies whether to reset a digital pattern instrument to a known state when the session is initialized. Setting the **resetDevice** value to True is equivalent to calling the :py:meth:`nidigital.Session.reset` method immediately after initializing the session. + + + + + :type reset_device: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: nidigital.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: abort() + + Stops bursting the pattern. + + + + + +abort_keep_alive +---------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: abort_keep_alive() + + Stops the keep alive pattern if it is currently running. If a pattern burst is in progress, the method aborts the pattern burst. If you start a new pattern burst while a keep alive pattern is running, the keep alive pattern runs to the last keep alive vector, and the new pattern burst starts on the next cycle. + + + + + +apply_levels_and_timing +----------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: apply_levels_and_timing(levels_sheet, timing_sheet, initial_state_high_pins=None, initial_state_low_pins=None, initial_state_tristate_pins=None) + + Applies digital levels and timing values defined in previously loaded levels and timing sheets. When applying a levels sheet, only the levels specified in the sheet are affected. Any levels not specified in the sheet remain unchanged. When applying a timing sheet, all existing time sets are deleted before the new time sets are loaded. + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].apply_levels_and_timing` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.apply_levels_and_timing` + + + :param levels_sheet: + + + Name of the levels sheet to apply. Use the name of the sheet or pass the absolute file path you use in the :py:meth:`nidigital.Session.load_specifications_levels_and_timing` method. The name of the levels sheet is the file name without the directory and file extension. + + + + + :type levels_sheet: str + :param timing_sheet: + + + Name of the timing sheet to apply. Use the name of the sheet or pass the absolute file path that you use in the :py:meth:`nidigital.Session.load_specifications_levels_and_timing` method. The name of the timing sheet is the file name without the directory and file extension. + + + + + :type timing_sheet: str + :param initial_state_high_pins: + + + Comma-delimited list of pins, pin groups, or channels to initialize to a high state. + + + + + :type initial_state_high_pins: basic sequence types or str + :param initial_state_low_pins: + + + Comma-delimited list of pins, pin groups, or channels to initialize to a low state. + + + + + :type initial_state_low_pins: basic sequence types or str + :param initial_state_tristate_pins: + + + Comma-delimited list of pins, pin groups, or channels to initialize to a non-drive state (X) + + + + + :type initial_state_tristate_pins: basic sequence types or str + +apply_tdr_offsets +----------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: apply_tdr_offsets(offsets) + + Applies the correction for propagation delay offsets to a digital pattern instrument. Use this method to apply TDR offsets that are stored from a past measurement or are measured by means other than the :py:meth:`nidigital.Session.tdr` method. Also use this method to apply correction for offsets if the **applyOffsets** input of the :py:meth:`nidigital.Session.tdr` method was set to False at the time of measurement. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].apply_tdr_offsets` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.apply_tdr_offsets` + + + :param offsets: + + + TDR offsets to apply, in seconds. Specify an offset for each pin or channel in the repeated capabilities. If the repeated capabilities contain pin names, you must specify offsets for each site in the channel map per pin. + + + + + :type offsets: basic sequence of hightime.timedelta, datetime.timedelta, or float in seconds + +burst_pattern +------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: burst_pattern(start_label, select_digital_function=True, wait_until_done=True, timeout=hightime.timedelta(seconds=10.0)) + + Uses the start_label you specify to burst the pattern on the sites you specify. If you + specify wait_until_done as True, waits for the burst to complete, and returns comparison results for each site. + + Digital pins retain their state at the end of a pattern burst until the first vector of the pattern burst, a call to + :py:meth:`nidigital.Session.write_static`, or a call to :py:meth:`nidigital.Session.apply_levels_and_timing`. + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].burst_pattern` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.burst_pattern` + + + :param start_label: + + + Pattern name or exported pattern label from which to start bursting the pattern. + + + + + :type start_label: str + :param select_digital_function: + + + A Boolean that specifies whether to select the digital method for the pins in the pattern prior to bursting. + + + + + :type select_digital_function: bool + :param wait_until_done: + + + A Boolean that indicates whether to wait until the bursting is complete. + + + + + :type wait_until_done: bool + :param timeout: + + + Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: { int: bool, int: bool, ... } + :return: + + + Dictionary where each key is a site number and value is pass/fail, + if wait_until_done is specified as True. Else, None. + + + + + +clock_generator_abort +--------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: clock_generator_abort() + + Stops clock generation on the specified channel(s) or pin(s) and pin group(s). + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clock_generator_abort` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.clock_generator_abort` + + +clock_generator_generate_clock +------------------------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: clock_generator_generate_clock(frequency, select_digital_function=True) + + Configures clock generator frequency and initiates clock generation on the specified channel(s) or pin(s) and pin group(s). + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clock_generator_generate_clock` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.clock_generator_generate_clock` + + + :param frequency: + + + The frequency of the clock generation, in Hz. + + + + + :type frequency: float + :param select_digital_function: + + + A Boolean that specifies whether to select the digital method for the pins specified prior to starting clock generation. + + + + + :type select_digital_function: bool + +close +----- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: close() + + Closes the specified instrument session to a digital pattern instrument, aborts pattern execution, and unloads pattern memory. The channels on a digital pattern instrument remain in their current state. + + + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: commit() + + Applies all previously configured pin levels, termination modes, clocks, triggers, and pattern timing to a digital pattern instrument. If you do not call the :py:meth:`nidigital.Session.commit` method, then the initiate method or the :py:meth:`nidigital.Session.burst_pattern` method will implicitly call this method for you. Calling this method moves the session from the Uncommitted state to the Committed state. + + + + + +configure_active_load_levels +---------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_active_load_levels(iol, ioh, vcom) + + Configures I\ :sub:`OL`, I\ :sub:`OH`, and V\ :sub:`COM` levels for the active load on the pins you specify. The DUT sources or sinks current based on the level values. To enable active load, set the termination mode to :py:data:`~nidigital.TerminationMode.ACTIVE_LOAD`. To disable active load, set the termination mode of the instrument to :py:data:`~nidigital.TerminationMode.HIGH_Z` or :py:data:`~nidigital.TerminationMode.VTERM`. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_active_load_levels` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_active_load_levels` + + + :param iol: + + + Maximum current that the DUT sinks while outputting a voltage below V\ :sub:`COM`. + + + + + :type iol: float + :param ioh: + + + Maximum current that the DUT sources while outputting a voltage above V\ :sub:`COM`. + + + + + :type ioh: float + :param vcom: + + + Commutating voltage level at which the active load circuit switches between sourcing current and sinking current. + + + + + :type vcom: float + +configure_pattern_burst_sites +----------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_pattern_burst_sites() + + Configures which sites burst the pattern on the next call to the initiate method. The pattern burst sites can also be modified through the repeated capabilities for the :py:meth:`nidigital.Session.burst_pattern` method. If a site has been disabled through the :py:meth:`nidigital.Session.disable_sites` method, the site does not burst a pattern even if included in the pattern burst sites. + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].configure_pattern_burst_sites` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_pattern_burst_sites` + + +configure_time_set_compare_edges_strobe +--------------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_compare_edges_strobe(time_set_name, strobe_edge) + + Configures the strobe edge time for the specified pins. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param strobe_edge: + + + Time when the comparison happens within a vector period. + + + + + :type strobe_edge: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_time_set_compare_edges_strobe2x +----------------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_compare_edges_strobe2x(time_set_name, strobe_edge, strobe2_edge) + + Configures the compare strobes for the specified pins in the time set, including the 2x strobe. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe2x` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe2x` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param strobe_edge: + + + Time when the comparison happens within a vector period. + + + + + :type strobe_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param strobe2_edge: + + + Time when the comparison happens for the second DUT cycle within a vector period. + + + + + :type strobe2_edge: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_time_set_drive_edges +------------------------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_drive_edges(time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge) + + Configures the drive format and drive edge placement for the specified pins. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_drive_edges` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param format: + + + Drive format of the time set. + + - :py:data:`~nidigital.DriveFormat.NR`: Non-return. + - :py:data:`~nidigital.DriveFormat.RL`: Return to low. + - :py:data:`~nidigital.DriveFormat.RH`: Return to high. + - :py:data:`~nidigital.DriveFormat.SBC`: Surround by complement. + + + + + :type format: :py:data:`nidigital.DriveFormat` + :param drive_on_edge: + + + Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. + + + + + :type drive_on_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_data_edge: + + + Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. + + + + + :type drive_data_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_return_edge: + + + Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. + + + + + :type drive_return_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_off_edge: + + + Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). + + + + + :type drive_off_edge: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_time_set_drive_edges2x +-------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_drive_edges2x(time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge) + + Configures the drive edges of the pins in the time set, including 2x edges. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges2x` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_drive_edges2x` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param format: + + + Drive format of the time set. + + - :py:data:`~nidigital.DriveFormat.NR`: Non-return. + - :py:data:`~nidigital.DriveFormat.RL`: Return to low. + - :py:data:`~nidigital.DriveFormat.RH`: Return to high. + - :py:data:`~nidigital.DriveFormat.SBC`: Surround by complement. + + + + + :type format: :py:data:`nidigital.DriveFormat` + :param drive_on_edge: + + + Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. + + + + + :type drive_on_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_data_edge: + + + Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. + + + + + :type drive_data_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_return_edge: + + + Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. + + + + + :type drive_return_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_off_edge: + + + Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). + + + + + :type drive_off_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_data2_edge: + + + Delay, in seconds, from the beginning of the vector period until the pattern data in the second DUT cycle is driven to the pattern value. + + + + + :type drive_data2_edge: hightime.timedelta, datetime.timedelta, or float in seconds + :param drive_return2_edge: + + + Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data in the second DUT cycle to the return value, as specified in the format. + + + + + :type drive_return2_edge: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_time_set_drive_format +------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_drive_format(time_set_name, drive_format) + + Configures the drive format for the pins specified in the **pinList**. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_format` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_drive_format` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param drive_format: + + + Drive format of the time set. + + - :py:data:`~nidigital.DriveFormat.NR`: Non-return. + - :py:data:`~nidigital.DriveFormat.RL`: Return to low. + - :py:data:`~nidigital.DriveFormat.RH`: Return to high. + - :py:data:`~nidigital.DriveFormat.SBC`: Surround by complement. + + + + + :type drive_format: :py:data:`nidigital.DriveFormat` + +configure_time_set_edge +----------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_edge(time_set_name, edge, time) + + Configures the edge placement for the pins specified in the pin list. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_edge` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param edge: + + + Name of the edge. + + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_ON` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_OFF` + - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA2` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN2` + - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE2` + + + + + :type edge: :py:data:`nidigital.TimeSetEdgeType` + :param time: + + + The time from the beginning of the vector period in which to place the edge. + + + + + :type time: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_time_set_edge_multiplier +---------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_edge_multiplier(time_set_name, edge_multiplier) + + Configures the edge multiplier of the pins in the time set. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge_multiplier` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_edge_multiplier` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param edge_multiplier: + + + The specified edge multiplier for the pins in the pin list. + + + + + :type edge_multiplier: int + +configure_time_set_period +------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_time_set_period(time_set_name, period) + + Configures the period of a time set. Use this method to modify time set values after applying a timing sheet with the :py:meth:`nidigital.Session.apply_levels_and_timing` method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to :py:meth:`nidigital.Session.apply_levels_and_timing`; it only affects the values of the current timing context. + + + + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param period: + + + Period for this time set, in seconds. + + + + + :type period: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_voltage_levels +------------------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: configure_voltage_levels(vil, vih, vol, voh, vterm) + + Configures voltage levels for the pins you specify. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_voltage_levels` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_voltage_levels` + + + :param vil: + + + Voltage that the instrument will apply to the input of the DUT when the pin driver drives a logic low (0). + + + + + :type vil: float + :param vih: + + + Voltage that the instrument will apply to the input of the DUT when the test instrument drives a logic high (1). + + + + + :type vih: float + :param vol: + + + Output voltage below which the comparator on the pin driver interprets a logic low (L). + + + + + :type vol: float + :param voh: + + + Output voltage above which the comparator on the pin driver interprets a logic high (H). + + + + + :type voh: float + :param vterm: + + + Termination voltage the instrument applies during non-drive cycles when the termination mode is set to V\ :sub:`term`. The instrument applies the termination voltage through a 50 ohm parallel termination resistance. + + + + + :type vterm: float + +create_capture_waveform_from_file_digicapture +--------------------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_capture_waveform_from_file_digicapture(waveform_name, waveform_file_path) + + Creates a capture waveform with the configuration information from a Digicapture file generated by the Digital Pattern Editor. + + + + + + :param waveform_name: + + + Waveform name you want to use. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the capture_start opcode in your pattern. + + + + + :type waveform_name: str + :param waveform_file_path: + + + Absolute file path to the capture waveform file (.digicapture) you want to load. + + + + + :type waveform_file_path: str + +create_capture_waveform_parallel +-------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_capture_waveform_parallel(waveform_name) + + Sets the capture waveform settings for parallel acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_parallel` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_capture_waveform_parallel` + + + :param waveform_name: + + + Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. + + + + + :type waveform_name: str + +create_capture_waveform_serial +------------------------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_capture_waveform_serial(waveform_name, sample_width, bit_order) + + Sets the capture waveform settings for serial acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_serial` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_capture_waveform_serial` + + + :param waveform_name: + + + Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. + + + + + :type waveform_name: str + :param sample_width: + + + Width in bits of each serial sample. Valid values are between 1 and 32. + + + + + :type sample_width: int + :param bit_order: + + + Order in which to shift the bits. + + - :py:data:`~nidigital.BitOrder.MSB`: Specifies the bit order by most significant bit first. + - :py:data:`~nidigital.BitOrder.LSB`: Specifies the bit order by least significant bit first. + + + + + :type bit_order: :py:data:`nidigital.BitOrder` + +create_source_waveform_from_file_tdms +------------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_source_waveform_from_file_tdms(waveform_name, waveform_file_path, write_waveform_data=True) + + Creates a source waveform with configuration information from a TDMS file generated by the Digital Pattern Editor. It also optionally writes waveform data from the file. + + + + + + :param waveform_name: + + + The waveform name you want to use from the file. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the source_start opcode in your pattern. + + + + + :type waveform_name: str + :param waveform_file_path: + + + Absolute file path to the load source waveform file (.tdms). + + + + + :type waveform_file_path: str + :param write_waveform_data: + + + A Boolean that writes waveform data to source memory if True and the waveform data is in the file. + + + + + :type write_waveform_data: bool + +create_source_waveform_parallel +------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_source_waveform_parallel(waveform_name, data_mapping) + + Sets the source waveform settings required for parallel sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_parallel` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_source_waveform_parallel` + + + :param waveform_name: + + + The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + + + + :type waveform_name: str + :param data_mapping: + + + Parameter that specifies how to map data on multiple sites. + + - :py:data:`~nidigital.SourceDataMapping.BROADCAST`: Broadcasts the waveform you specify to all sites. + - :py:data:`~nidigital.SourceDataMapping.SITE_UNIQUE`: Sources unique waveform data to each site. + + + + + :type data_mapping: :py:data:`nidigital.SourceDataMapping` + +create_source_waveform_serial +----------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_source_waveform_serial(waveform_name, data_mapping, sample_width, bit_order) + + Sets the source waveform settings required for serial sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_serial` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_source_waveform_serial` + + + :param waveform_name: + + + The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + + + + :type waveform_name: str + :param data_mapping: + + + Parameter that specifies how to map data on multiple sites. + + - :py:data:`~nidigital.SourceDataMapping.BROADCAST`: Broadcasts the waveform you specify to all sites. + - :py:data:`~nidigital.SourceDataMapping.SITE_UNIQUE`: Sources unique waveform data to each site. + + + + + :type data_mapping: :py:data:`nidigital.SourceDataMapping` + :param sample_width: + + + Width in bits of each serial sample. Valid values are between 1 and 32. + + + + + :type sample_width: int + :param bit_order: + + + Order in which to shift the bits. + + - :py:data:`~nidigital.BitOrder.MSB`: Specifies the bit order by most significant bit first. + - :py:data:`~nidigital.BitOrder.LSB`: Specifies the bit order by least significant bit first. + + + + + :type bit_order: :py:data:`nidigital.BitOrder` + +create_time_set +--------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: create_time_set(name) + + Creates a time set with the name that you specify. Use this method when you want to create time sets programmatically rather than with a timing sheet. + + + + + + :param name: + + + The specified name of the new time set. + + + + + :type name: str + +delete_all_time_sets +-------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: delete_all_time_sets() + + Deletes all time sets from instrument memory. + + + + + +disable_sites +------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: disable_sites() + + Disables specified sites. Disabled sites are not included in pattern bursts initiated by the initiate method or the :py:meth:`nidigital.Session.burst_pattern` method, even if the site is specified in the list of pattern burst sites in :py:meth:`nidigital.Session.configure_pattern_burst_sites` method or in the repeated capabilities for the :py:meth:`nidigital.Session.burst_pattern` method. Additionally, if you specify a list of pin or pin group names in repeated capabilities in any NI-Digital method, digital pattern instrument channels mapped to disabled sites are not affected by the method. The methods that return per-pin data, such as the :py:meth:`nidigital.Session.ppmu_measure` method, do not return data for channels mapped to disabled sites. The digital pattern instrument channels mapped to the sites specified are left in their current state. NI TestStand Semiconductor Module requires all sites to always be enabled, and manages the set of active sites without disabling the sites in the digital instrument session. Do not use this method with the Semiconductor Module. + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].disable_sites` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.disable_sites` + + +enable_match_fail_combination +----------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: enable_match_fail_combination() + + Configures digital pattern instruments and the PXIe-6674T timing and synchronization instrument to combine pattern comparison results and control subsequent pattern execution across digital pattern instruments based on those results. You must initialize the PXIe-6674T using NI-Sync and call this method from a multi-instrument session. + + + + + +enable_sites +------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: enable_sites() + + Enables the sites you specify. All sites are enabled by default. + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].enable_sites` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.enable_sites` + + +fetch_capture_waveform +---------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: fetch_capture_waveform(waveform_name, samples_to_read, timeout=hightime.timedelta(seconds=10.0)) + + Returns dictionary where each key is a site number and value is a collection of digital states representing capture waveform data + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].fetch_capture_waveform` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.fetch_capture_waveform` + + + :param waveform_name: + + + Waveform name you create with the create capture waveform method. Use the waveform_name parameter with capture_start opcode in your pattern. + + + + + :type waveform_name: str + :param samples_to_read: + + + Number of samples to fetch. + + + + + :type samples_to_read: int + :param timeout: + + + Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: { int: memoryview of array.array of unsigned int, int: memoryview of array.array of unsigned int, ... } + :return: + + + Dictionary where each key is a site number and value is a collection of digital states representing capture waveform data + + + + + +fetch_history_ram_cycle_information +----------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: fetch_history_ram_cycle_information(position, samples_to_read) + + Returns the pattern information acquired for the specified cycles. + + If the pattern is using the edge multiplier feature, cycle numbers represent tester cycles, each of which may + consist of multiple DUT cycles. When using pins with mixed edge multipliers, pins may return + :py:data:`~nidigital.PinState.PIN_STATE_NOT_ACQUIRED` for DUT cycles where those pins do not have edges defined. + + Site number on which to retrieve pattern information must be specified via sites repeated capability. + The method returns an error if more than one site is specified. + + Pins for which to retrieve pattern information must be specified via pins repeated capability. + If pins are not specified, pin list from the pattern containing the start label is used. Call + :py:meth:`nidigital.Session.get_pattern_pin_names` with the start label to retrieve the pins associated with the pattern burst: + + .. code:: python + + session.sites[0].pins['PinA', 'PinB'].fetch_history_ram_cycle_information(0, -1) + + + + .. note:: Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. + + :py:attr:`nidigital.Session.history_ram_trigger_type` should be used to specify the trigger condition on which History RAM + starts acquiring pattern information. + + If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.CYCLE_NUMBER`, + :py:attr:`nidigital.Session.cycle_number_history_ram_trigger_cycle_number` should be used to specify the cycle number on which + History RAM starts acquiring pattern information. + + If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.PATTERN_LABEL`, + :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_label` should be used to specify the pattern label from which to + start acquiring pattern information. + :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_vector_offset` should be used to specify the number of vectors + following the specified pattern label from which to start acquiring pattern information. + :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_cycle_offset` should be used to specify the number of cycles + following the specified pattern label and vector offset from which to start acquiring pattern information. + + For all History RAM trigger conditions, :py:attr:`nidigital.Session.history_ram_pretrigger_samples` should be used to specify + the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only + acquire failed cycles, you must set :py:attr:`nidigital.Session.history_ram_pretrigger_samples` to 0. + + :py:attr:`nidigital.Session.history_ram_cycles_to_acquire` should be used to specify which cycles History RAM acquires after + the trigger conditions are met. + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].fetch_history_ram_cycle_information` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.fetch_history_ram_cycle_information` + + + :param position: + + + Sample index from which to start fetching pattern information. + + + + + :type position: int + :param samples_to_read: + + + Number of samples to fetch. A value of -1 specifies to fetch all available samples. + + + + + :type samples_to_read: int + + :rtype: list of HistoryRAMCycleInformation + :return: + + + Returns a list of class instances with + the following information about each pattern cycle: + + - **pattern_name** (str) Name of the pattern for the acquired cycle. + - **time_set_name** (str) Time set for the acquired cycle. + - **vector_number** (int) Vector number within the pattern for the acquired cycle. Vector numbers start + at 0 from the beginning of the pattern. + - **cycle_number** (int) Cycle number acquired by this History RAM sample. Cycle numbers start at 0 + from the beginning of the pattern burst. + - **scan_cycle_number** (int) Scan cycle number acquired by this History RAM sample. Scan cycle numbers + start at 0 from the first cycle of the scan vector. Scan cycle numbers are -1 for cycles that do not + have a scan opcode. + - **expected_pin_states** (list of list of enums.PinState) Pin states as expected by the loaded + pattern in the order specified in the pin list. Pins without defined edges in the specified DUT cycle + will have a value of :py:data:`~nidigital.PinState.PIN_STATE_NOT_ACQUIRED`. + Length of the outer list will be equal to the value of edge multiplier for the given vector. + Length of the inner list will be equal to the number of pins requested. + - **actual_pin_states** (list of list of enums.PinState) Pin states acquired by History RAM in the + order specified in the pin list. Pins without defined edges in the specified DUT cycle will have a + value of :py:data:`~nidigital.PinState.PIN_STATE_NOT_ACQUIRED`. + Length of the outer list will be equal to the value of edge multiplier for the given vector. + Length of the inner list will be equal to the number of pins requested. + - **per_pin_pass_fail** (list of list of bool) Pass fail information for pins in the order specified in + the pin list. Pins without defined edges in the specified DUT cycle will have a value of pass (True). + Length of the outer list will be equal to the value of edge multiplier for the given vector. + Length of the inner list will be equal to the number of pins requested. + + + + + +frequency_counter_measure_frequency +----------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: frequency_counter_measure_frequency() + + Measures the frequency on the specified channel(s) over the specified measurement time. All channels in the repeated capabilities should have the same measurement time. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].frequency_counter_measure_frequency` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.frequency_counter_measure_frequency` + + + :rtype: list of float + :return: + + + The returned frequency counter measurement, in Hz.This method returns -1 if the measurement is invalid for the channel. + + + + + +get_channel_names +----------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_channel_names(indices) + + Returns a list of channel names for given channel indices. + + + + + + :param indices: + + + Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + + + :type indices: basic sequence types, str, or int + + :rtype: list of str + :return: + + + The channel name(s) at the specified indices. + + + + + +get_fail_count +-------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_fail_count() + + Returns the comparison fail count for pins in the repeated capabilities. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_fail_count` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_fail_count` + + + :rtype: list of int + :return: + + + Number of failures in an array. If a site is disabled or not enabled for burst, the method does not return data for that site. You can also use the :py:meth:`nidigital.Session.get_pin_results_pin_information` method to obtain a sorted list of returned sites and channels. + + + + + +get_history_ram_sample_count +---------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_history_ram_sample_count() + + Returns the number of samples History RAM acquired on the last pattern burst. + + + + .. note:: Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. + + :py:attr:`nidigital.Session.history_ram_trigger_type` should be used to specify the trigger condition on which History RAM + starts acquiring pattern information. + + If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.CYCLE_NUMBER`, + :py:attr:`nidigital.Session.cycle_number_history_ram_trigger_cycle_number` should be used to specify the cycle number on which + History RAM starts acquiring pattern information. + + If History RAM trigger is configured as :py:data:`~nidigital.HistoryRAMTriggerType.PATTERN_LABEL`, + :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_label` should be used to specify the pattern label from which to + start acquiring pattern information. + :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_vector_offset` should be used to specify the number of vectors + following the specified pattern label from which to start acquiring pattern information. + :py:attr:`nidigital.Session.pattern_label_history_ram_trigger_cycle_offset` should be used to specify the number of cycles + following the specified pattern label and vector offset from which to start acquiring pattern information. + + For all History RAM trigger conditions, :py:attr:`nidigital.Session.history_ram_pretrigger_samples` should be used to specify + the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only + acquire failed cycles, you must set :py:attr:`nidigital.Session.history_ram_pretrigger_samples` to 0. + + :py:attr:`nidigital.Session.history_ram_cycles_to_acquire` should be used to specify which cycles History RAM acquires after + the trigger conditions are met. + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].get_history_ram_sample_count` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_history_ram_sample_count` + + + :rtype: int + :return: + + + The returned number of samples that History RAM acquired. + + + + + +get_pattern_pin_names +--------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_pattern_pin_names(start_label) + + Returns the pattern pin list. + + + + + + :param start_label: + + + Pattern name or exported pattern label from which to get the pin names that the pattern references. + + + + + :type start_label: str + + :rtype: list of str + :return: + + + List of pins referenced by the pattern with the **startLabel**. + + + + + +get_pin_results_pin_information +------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_pin_results_pin_information() + + Returns the pin names, site numbers, and channel names that correspond to per-pin data read from the digital pattern instrument. The method returns pin information in the same order as values read using the :py:meth:`nidigital.Session.read_static` method, :py:meth:`nidigital.Session.ppmu_measure` method, and :py:meth:`nidigital.Session.get_fail_count` method. Use this method to match values the previously listed methods return with pins, sites, and instrument channels. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_pin_results_pin_information` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_pin_results_pin_information` + + + :rtype: list of PinInfo + :return: + + + List of named tuples with fields: + + - **pin_name** (str) + - **site_number** (int) + - **channel_name** (str) + + + + + +get_site_pass_fail +------------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_site_pass_fail() + + Returns dictionary where each key is a site number and value is pass/fail + + + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].get_site_pass_fail` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_site_pass_fail` + + + :rtype: { int: bool, int: bool, ... } + :return: + + + Dictionary where each key is a site number and value is pass/fail + + + + + +get_time_set_drive_format +------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_time_set_drive_format(time_set_name) + + Returns the drive format of a pin in the specified time set. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].get_time_set_drive_format` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_time_set_drive_format` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + + :rtype: :py:data:`nidigital.DriveFormat` + :return: + + + Returned drive format of the time set for the specified pin. + + + + + +get_time_set_edge +----------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_time_set_edge(time_set_name, edge) + + Returns the edge time of a pin in the specified time set. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_time_set_edge` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + :param edge: + + + Name of the edge. + + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_ON` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_OFF` + - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_DATA2` + - :py:data:`~nidigital.TimeSetEdgeType.DRIVE_RETURN2` + - :py:data:`~nidigital.TimeSetEdgeType.COMPARE_STROBE2` + + + + + :type edge: :py:data:`nidigital.TimeSetEdgeType` + + :rtype: hightime.timedelta + :return: + + + Time from the beginning of the vector period in which to place the edge. + + + + + +get_time_set_edge_multiplier +---------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_time_set_edge_multiplier(time_set_name) + + Returns the edge multiplier of the specified time set. + + + + + .. tip:: This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge_multiplier` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_time_set_edge_multiplier` + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + + :rtype: int + :return: + + + Returned edge multiplier of the time set for the specified pin. + + + + + +get_time_set_period +------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: get_time_set_period(time_set_name) + + Returns the period of the specified time set. + + + + + + :param time_set_name: + + + The specified time set name. + + + + + :type time_set_name: str + + :rtype: hightime.timedelta + :return: + + + Returned period, in seconds, that the edge is configured to. + + + + + +initiate +-------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: initiate() + + Starts bursting the pattern configured by :py:attr:`nidigital.Session.start_label`, causing the NI-Digital session to be committed. To stop the pattern burst, call :py:meth:`nidigital.Session.abort`. If keep alive pattern is bursting when :py:meth:`nidigital.Session.abort` is called or upon exiting the context manager, keep alive pattern will not be stopped. To stop the keep alive pattern, call :py:meth:`nidigital.Session.abort_keep_alive`. + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +is_done +------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: is_done() + + Checks the hardware to determine if the pattern burst has completed or if any errors have occurred. + + + + + + :rtype: bool + :return: + + + A Boolean that indicates whether the pattern burst completed. + + + + + +is_site_enabled +--------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: is_site_enabled() + + Checks if a specified site is enabled. + + + + .. note:: The method returns an error if more than one site is specified. + + + .. tip:: This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].is_site_enabled` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.is_site_enabled` + + + :rtype: bool + :return: + + + Boolean value that returns whether the site is enabled or disabled. + + + + + +load_pattern +------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: load_pattern(file_path) + + Loads the specified pattern file. + + + + + + :param file_path: + + + Absolute file path of the binary .digipat pattern file to load. Specify the pattern to burst using :py:attr:`nidigital.Session.start_label` or the start_label parameter of the :py:meth:`nidigital.Session.burst_pattern` method. + + + + + :type file_path: str + +load_pin_map +------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: load_pin_map(file_path) + + Loads a pin map file. You can load only a single pin and channel map file during an NI-Digital Pattern Driver session. To switch pin maps, create a new session or call the :py:meth:`nidigital.Session.reset` method. + + + + + + :param file_path: + + + Absolute file path to a pin map file created with the Digital Pattern Editor or the NI TestStand Semiconductor Module. + + + + + :type file_path: str + +load_specifications_levels_and_timing +------------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: load_specifications_levels_and_timing(specifications_file_paths=None, levels_file_paths=None, timing_file_paths=None) + + Loads settings in specifications, levels, and timing sheets. These settings are not + applied to the digital pattern instrument until :py:meth:`nidigital.Session.apply_levels_and_timing` is called. + + If the levels and timing sheets contains formulas, they are evaluated at load time. + If the formulas refer to variables, the specifications sheets that define those + variables must be loaded either first, or at the same time as the levels and timing sheets. + + + + + + :param specifications_file_paths: + + + Absolute file path of one or more specifications files. + + + + + :type specifications_file_paths: str or basic sequence of str + :param levels_file_paths: + + + Absolute file path of one or more levels sheet files. + + + + + :type levels_file_paths: str or basic sequence of str + :param timing_file_paths: + + + Absolute file path of one or more timing sheet files. + + + + + :type timing_file_paths: str or basic sequence of str + +lock +---- + + .. py:currentmodule:: nidigital.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`nidigital.Session.lock` method. + - A call to NI-Digital Pattern Driver locked the session. + - After a call to the :py:meth:`nidigital.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`nidigital.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`nidigital.Session.lock` method and the + :py:meth:`nidigital.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`nidigital.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`nidigital.Session.lock` method with a call to + the :py:meth:`nidigital.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with nidigital.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`nidigital.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +ppmu_measure +------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: ppmu_measure(measurement_type) + + Instructs the PPMU to measure voltage or current. This method can be called to take a voltage measurement even if the pin method is not set to PPMU. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].ppmu_measure` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.ppmu_measure` + + + :param measurement_type: + + + Parameter that specifies whether the PPMU measures voltage or current from the DUT. + + - :py:data:`~nidigital.PPMUMeasurementType.CURRENT`: The PPMU measures current from the DUT. + - :py:data:`~nidigital.PPMUMeasurementType.VOLTAGE`: The PPMU measures voltage from the DUT. + + + + + :type measurement_type: :py:data:`nidigital.PPMUMeasurementType` + + :rtype: list of float + :return: + + + The returned array of measurements in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the :py:meth:`nidigital.Session.get_pin_results_pin_information` method to obtain a sorted list of returned sites and channels. + + + + + +ppmu_source +----------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: ppmu_source() + + Starts sourcing voltage or current from the PPMU. This method automatically selects the PPMU method. Changes to PPMU source settings do not take effect until you call this method. If you modify source settings after you call this method, you must call this method again for changes in the configuration to take effect. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].ppmu_source` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.ppmu_source` + + +read_sequencer_flag +------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: read_sequencer_flag(flag) + + Reads the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. + + + + + + :param flag: + + + The pattern sequencer flag you want to read. + + - :py:data:`~nidigital.SequencerFlag.FLAG0` ("seqflag0"): Reads pattern sequencer flag 0. + - :py:data:`~nidigital.SequencerFlag.FLAG1` ("seqflag1"): Reads pattern sequencer flag 1. + - :py:data:`~nidigital.SequencerFlag.FLAG2` ("seqflag2"): Reads pattern sequencer flag 2. + - :py:data:`~nidigital.SequencerFlag.FLAG3` ("seqflag3"): Reads pattern sequencer flag 3. + + + + + :type flag: :py:data:`nidigital.SequencerFlag` + + :rtype: bool + :return: + + + A Boolean that indicates the state of the pattern sequencer flag you specify. + + + + + +read_sequencer_register +----------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: read_sequencer_register(reg) + + Reads the value of a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. For example, you can use this method to read a register modified by the write_reg opcode during a pattern burst. + + + + + + :param reg: + + + The sequencer register to read from. + + - :py:data:`~nidigital.SequencerRegister.REGISTER0` ("reg0"): Reads sequencer register 0. + - :py:data:`~nidigital.SequencerRegister.REGISTER1` ("reg1"): Reads sequencer register 1. + - :py:data:`~nidigital.SequencerRegister.REGISTER2` ("reg2"): Reads sequencer register 2. + - :py:data:`~nidigital.SequencerRegister.REGISTER3` ("reg3"): Reads sequencer register 3. + - :py:data:`~nidigital.SequencerRegister.REGISTER4` ("reg4"): Reads sequencer register 4. + - :py:data:`~nidigital.SequencerRegister.REGISTER5` ("reg5"): Reads sequencer register 5. + - :py:data:`~nidigital.SequencerRegister.REGISTER6` ("reg6"): Reads sequencer register 6. + - :py:data:`~nidigital.SequencerRegister.REGISTER7` ("reg7"): Reads sequencer register 7. + - :py:data:`~nidigital.SequencerRegister.REGISTER8` ("reg8"): Reads sequencer register 8. + - :py:data:`~nidigital.SequencerRegister.REGISTER9` ("reg9"): Reads sequencer register 9. + - :py:data:`~nidigital.SequencerRegister.REGISTER10` ("reg10"): Reads sequencer register 10. + - :py:data:`~nidigital.SequencerRegister.REGISTER11` ("reg11"): Reads sequencer register 11. + - :py:data:`~nidigital.SequencerRegister.REGISTER12` ("reg12"): Reads sequencer register 12. + - :py:data:`~nidigital.SequencerRegister.REGISTER13` ("reg13"): Reads sequencer register 13. + - :py:data:`~nidigital.SequencerRegister.REGISTER14` ("reg14"): Reads sequencer register 14. + - :py:data:`~nidigital.SequencerRegister.REGISTER15` ("reg15"): Reads sequencer register 15. + + + + + :type reg: :py:data:`nidigital.SequencerRegister` + + :rtype: int + :return: + + + Value read from the sequencer register. + + + + + +read_static +----------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: read_static() + + Reads the current state of comparators for pins you specify in the repeated capabilities. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_static` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.read_static` + + + :rtype: list of :py:data:`nidigital.PinState` + :return: + + + The returned array of pin states read from the channels in the repeated capabilities. Data is returned in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the :py:meth:`nidigital.Session.get_pin_results_pin_information` method to obtain a sorted list of returned sites and channels. + + - :py:data:`~nidigital.PinState.L`: The comparators read a logic low pin state. + - :py:data:`~nidigital.PinState.H`: The comparators read a logic high pin state. + - :py:data:`~nidigital.PinState.M`: The comparators read a midband pin state. + - :py:data:`~nidigital.PinState.V`: The comparators read a value that is above VOH and below VOL, which can occur when you set VOL higher than VOH. + + + + + +reset +----- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: reset() + + Returns a digital pattern instrument to a known state. This method performs the following actions: + + - Aborts pattern execution. + - Clears pin maps, time sets, source and capture waveforms, and patterns. + - Resets all properties to default values, including the :py:attr:`nidigital.Session.selected_function` property that is set to :py:data:`~nidigital.SelectedFunction.DISCONNECT`, causing the I/O switches to open. + - Stops exporting all external signals and events. + + + + + +reset_device +------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: reset_device() + + Returns a digital pattern instrument to a known state. This method performs the following actions: + + - Aborts pattern execution. + - Clears pin maps, time sets, source and capture waveforms, and patterns. + - Resets all properties to default values, including the :py:attr:`nidigital.Session.selected_function` property that is set to :py:data:`~nidigital.SelectedFunction.DISCONNECT`, causing the I/O switches to open. + - Stops export of all external signals and events. + - Clears over-temperature and over-power conditions. + + + + + +self_calibrate +-------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: self_calibrate() + + Performs self-calibration on a digital pattern instrument. + + + + + +self_test +--------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: self_test() + + Returns self test results from a digital pattern instrument. This test requires several minutes to execute. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+-------------------+ + | Self-Test Code | Description | + +================+===================+ + | 0 | Self test passed. | + +----------------+-------------------+ + | 1 | Self test failed. | + +----------------+-------------------+ + + + +send_software_edge_trigger +-------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: send_software_edge_trigger(trigger, trigger_identifier) + + Forces a particular edge-based trigger to occur regardless of how the specified trigger is configured. You can use this method as a software override. + + + + + + :param trigger: + + + Trigger specifies the trigger you want to override. + + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values | | + +========================================================+=================================================================================================================================+ + | :py:data:`~nidigital.SoftwareTrigger.START` | Overrides the Start trigger. You must specify an empty string in the trigger_identifier parameter. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.SoftwareTrigger.CONDITIONAL_JUMP` | Specifies to route a conditional jump trigger. You must specify a conditional jump trigger in the trigger_identifier parameter. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger: :py:data:`nidigital.SoftwareTrigger` + :param trigger_identifier: + + + Trigger Identifier specifies the instance of the trigger you want to override. + If trigger is specified as :py:data:`~nidigital.NIDIGITAL_VAL_START_TRIGGER`, this parameter must be an empty string. If trigger is + specified as :py:data:`~nidigital.NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER`, allowed values are conditionalJumpTrigger0, + conditionalJumpTrigger1, conditionalJumpTrigger2, and conditionalJumpTrigger3. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger_identifier: str + +tdr +--- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: tdr(apply_offsets=True) + + Measures propagation delays through cables, connectors, and load boards using Time-Domain Reflectometry (TDR). Ensure that the channels and pins you select are connected to an open circuit. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].tdr` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.tdr` + + + :param apply_offsets: + + + A Boolean that specifies whether to apply the measured TDR offsets. If you need to adjust the measured offsets prior to applying, set this input to False, and call the :py:meth:`nidigital.Session.apply_tdr_offsets` method to specify the adjusted TDR offsets values. + + + + + :type apply_offsets: bool + + :rtype: list of hightime.timedelta + :return: + + + Measured TDR offsets specified in seconds. + + + + + +unload_all_patterns +------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: unload_all_patterns(unload_keep_alive_pattern=False) + + Unloads all patterns, source waveforms, and capture waveforms from a digital pattern instrument. + + + + + + :param unload_keep_alive_pattern: + + + A Boolean that specifies whether to keep or unload the keep alive pattern. + + + + + :type unload_keep_alive_pattern: bool + +unload_specifications +--------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: unload_specifications(file_paths) + + Unloads the given specifications sheets present in the previously loaded + specifications files that you select. + + You must call :py:meth:`nidigital.Session.load_specifications_levels_and_timing` to reload the files with updated + specifications values. You must then call :py:meth:`nidigital.Session.apply_levels_and_timing` in order to apply + the levels and timing values that reference the updated specifications values. + + + + + + :param file_paths: + + + Absolute file path of one or more loaded specifications files. + + + + + :type file_paths: str or basic sequence of str + +unlock +------ + + .. py:currentmodule:: nidigital.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`nidigital.Session.lock`. Refer to :py:meth:`nidigital.Session.unlock` for additional + information on session locks. + +wait_until_done +--------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: wait_until_done(timeout=hightime.timedelta(seconds=10.0)) + + Waits until the pattern burst has completed or the timeout has expired. + + + + + + :param timeout: + + + Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + +write_sequencer_flag +-------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: write_sequencer_flag(flag, value) + + Writes the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. + + + + + + :param flag: + + + The pattern sequencer flag to write. + + - :py:data:`~nidigital.SequencerFlag.FLAG0` ("seqflag0"): Writes pattern sequencer flag 0. + - :py:data:`~nidigital.SequencerFlag.FLAG1` ("seqflag1"): Writes pattern sequencer flag 1. + - :py:data:`~nidigital.SequencerFlag.FLAG2` ("seqflag2"): Writes pattern sequencer flag 2. + - :py:data:`~nidigital.SequencerFlag.FLAG3` ("seqflag3"): Writes pattern sequencer flag 3. + + + + + :type flag: :py:data:`nidigital.SequencerFlag` + :param value: + + + A Boolean that assigns a state to the pattern sequencer flag you specify. + + + + + :type value: bool + +write_sequencer_register +------------------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: write_sequencer_register(reg, value) + + Writes a value to a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. + + + + + + :param reg: + + + The sequencer register you want to write to. + + - :py:data:`~nidigital.SequencerRegister.REGISTER0` ("reg0"): Writes sequencer register 0. + - :py:data:`~nidigital.SequencerRegister.REGISTER1` ("reg1"): Writes sequencer register 1. + - :py:data:`~nidigital.SequencerRegister.REGISTER2` ("reg2"): Writes sequencer register 2. + - :py:data:`~nidigital.SequencerRegister.REGISTER3` ("reg3"): Writes sequencer register 3. + - :py:data:`~nidigital.SequencerRegister.REGISTER4` ("reg4"): Writes sequencer register 4. + - :py:data:`~nidigital.SequencerRegister.REGISTER5` ("reg5"): Writes sequencer register 5. + - :py:data:`~nidigital.SequencerRegister.REGISTER6` ("reg6"): Writes sequencer register 6. + - :py:data:`~nidigital.SequencerRegister.REGISTER7` ("reg7"): Writes sequencer register 7. + - :py:data:`~nidigital.SequencerRegister.REGISTER8` ("reg8"): Writes sequencer register 8. + - :py:data:`~nidigital.SequencerRegister.REGISTER9` ("reg9"): Writes sequencer register 9. + - :py:data:`~nidigital.SequencerRegister.REGISTER10` ("reg10"): Writes sequencer register 10. + - :py:data:`~nidigital.SequencerRegister.REGISTER11` ("reg11"): Writes sequencer register 11. + - :py:data:`~nidigital.SequencerRegister.REGISTER12` ("reg12"): Writes sequencer register 12. + - :py:data:`~nidigital.SequencerRegister.REGISTER13` ("reg13"): Writes sequencer register 13. + - :py:data:`~nidigital.SequencerRegister.REGISTER14` ("reg14"): Writes sequencer register 14. + - :py:data:`~nidigital.SequencerRegister.REGISTER15` ("reg15"): Writes sequencer register 15. + + + + + :type reg: :py:data:`nidigital.SequencerRegister` + :param value: + + + The value you want to write to the register. + + + + + :type value: int + +write_source_waveform_broadcast +------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: write_source_waveform_broadcast(waveform_name, waveform_data) + + Writes the same waveform data to all sites. Use this write method if you set the data_mapping parameter of the create source waveform method to :py:data:`~nidigital.SourceDataMapping.BROADCAST`. + + + + + + :param waveform_name: + + + The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + + + + :type waveform_name: str + :param waveform_data: + + + 1D array of samples to use as source data to apply to all sites. + + + + + :type waveform_data: list of int + +write_source_waveform_data_from_file_tdms +----------------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: write_source_waveform_data_from_file_tdms(waveform_name, waveform_file_path) + + Writes a source waveform based on the waveform data and configuration information the file contains. + + + + + + :param waveform_name: + + + The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + + + + :type waveform_name: str + :param waveform_file_path: + + + Absolute file path to the load source waveform file (.tdms). + + + + + :type waveform_file_path: str + +write_source_waveform_site_unique +--------------------------------- + + .. py:currentmodule:: nidigital.Session + + .. py:method:: write_source_waveform_site_unique(waveform_name, waveform_data) + + Writes one waveform per site. Use this write method if you set the parameter of the create source waveform method to Site Unique. + + + + + + :param waveform_name: + + + The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + + + + :type waveform_name: str + :param waveform_data: + + + Dictionary where each key is a site number and value is a collection of samples to use as source data + + + + + :type waveform_data: { int: basic sequence of unsigned int, int: basic sequence of unsigned int, ... } + +write_static +------------ + + .. py:currentmodule:: nidigital.Session + + .. py:method:: write_static(state) + + Writes a static state to the specified pins. The selected pins remain in the specified state until the next pattern burst or call to this method. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. This method does not change the selected pin method. If you write a static state to a pin that does not have the Digital method selected, the new static state is stored by the instrument, and affects the state of the pin the next time you change the selected method to Digital. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].write_static` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.write_static` + + + :param state: + + + Parameter that specifies one of the following digital states to assign to the pin. + + - :py:data:`~nidigital.WriteStaticPinState.ZERO`: Specifies to drive low. + - :py:data:`~nidigital.WriteStaticPinState.ONE`: Specifies to drive high. + - :py:data:`~nidigital.WriteStaticPinState.X`: Specifies to not drive. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type state: :py:data:`nidigital.WriteStaticPinState` + + +Properties +========== + +active_load_ioh +--------------- + + .. py:attribute:: active_load_ioh + + Specifies the current that the DUT sources to the active load while outputting a voltage above VCOM. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_load_ioh` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.active_load_ioh` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_ACTIVE_LOAD_IOH** + +active_load_iol +--------------- + + .. py:attribute:: active_load_iol + + Specifies the current that the DUT sinks from the active load while outputting a voltage below VCOM. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_load_iol` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.active_load_iol` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_ACTIVE_LOAD_IOL** + +active_load_vcom +---------------- + + .. py:attribute:: active_load_vcom + + Specifies the voltage level at which the active load circuit switches between sourcing current and sinking current. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_load_vcom` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.active_load_vcom` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_ACTIVE_LOAD_VCOM** + +cache +----- + + .. py:attribute:: cache + + Specifies whether to cache the value of properties. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument. This significantly increases execution speed. Caching is always enabled in the driver, regardless of the value of this property. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CACHE** + +channel_count +------------- + + .. py:attribute:: channel_count + + Returns the number of channels that the specific digital pattern instrument driver supports. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CHANNEL_COUNT** + +clock_generator_frequency +------------------------- + + .. py:attribute:: clock_generator_frequency + + Specifies the frequency for the clock generator. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].clock_generator_frequency` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.clock_generator_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CLOCK_GENERATOR_FREQUENCY** + +clock_generator_is_running +-------------------------- + + .. py:attribute:: clock_generator_is_running + + Indicates whether the clock generator is running. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].clock_generator_is_running` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.clock_generator_is_running` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | bool | + +-----------------------+----------------+ + | Permissions | read only | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CLOCK_GENERATOR_IS_RUNNING** + +conditional_jump_trigger_terminal_name +-------------------------------------- + + .. py:attribute:: conditional_jump_trigger_terminal_name + + Specifies the terminal name from which the exported conditional jump trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the conditional jump trigger instance asserts on the digital pattern instrument. + + + + + .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_terminal_name` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.conditional_jump_trigger_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | str | + +-----------------------+---------------------------+ + | Permissions | read only | + +-----------------------+---------------------------+ + | Repeated Capabilities | conditional_jump_triggers | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CONDITIONAL_JUMP_TRIGGER_TERMINAL_NAME** + +conditional_jump_trigger_type +----------------------------- + + .. py:attribute:: conditional_jump_trigger_type + + Disables the conditional jump trigger or configures it for either hardware triggering or software triggering. The default value is :py:data:`~nidigital.TriggerType.NONE`. + + +------------------------------------------------+------------------------------------------------------------------+ + | Valid Values: | | + +================================================+==================================================================+ + | :py:data:`~nidigital.TriggerType.NONE` | Disables the conditional jump trigger. | + +------------------------------------------------+------------------------------------------------------------------+ + | :py:data:`~nidigital.TriggerType.DIGITAL_EDGE` | Configures the conditional jump trigger for hardware triggering. | + +------------------------------------------------+------------------------------------------------------------------+ + | :py:data:`~nidigital.TriggerType.SOFTWARE` | Configures the conditional jump trigger for software triggering. | + +------------------------------------------------+------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_type` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.conditional_jump_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.TriggerType | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | conditional_jump_triggers | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CONDITIONAL_JUMP_TRIGGER_TYPE** + +cycle_number_history_ram_trigger_cycle_number +--------------------------------------------- + + .. py:attribute:: cycle_number_history_ram_trigger_cycle_number + + Specifies the cycle number on which History RAM starts acquiring pattern information when configured for a cycle number trigger. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_CYCLE_NUMBER_HISTORY_RAM_TRIGGER_CYCLE_NUMBER** + +digital_edge_conditional_jump_trigger_edge +------------------------------------------ + + .. py:attribute:: digital_edge_conditional_jump_trigger_edge + + Configures the active edge of the incoming trigger signal for the conditional jump trigger instance. The default value is :py:data:`~nidigital.DigitalEdge.RISING`. + + +-------------------------------------------+---------------------------------------------------------------+ + | Valid Values: | | + +===========================================+===============================================================+ + | :py:data:`~nidigital.DigitalEdge.RISING` | Specifies the signal transition from low level to high level. | + +-------------------------------------------+---------------------------------------------------------------+ + | :py:data:`~nidigital.DigitalEdge.FALLING` | Specifies the signal transition from high level to low level. | + +-------------------------------------------+---------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_edge` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_edge` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.DigitalEdge | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | conditional_jump_triggers | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_EDGE** + +digital_edge_conditional_jump_trigger_source +-------------------------------------------- + + .. py:attribute:: digital_edge_conditional_jump_trigger_source + + Configures the digital trigger source terminal for a conditional jump trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/ConditionalJumpTrigger0. The default value is VI_NULL. + + +----------------------------------------------+ + | Valid Values: | + +==============================================+ + | String identifier to any valid terminal name | + +----------------------------------------------+ + + + .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_source` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_source` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | str | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | conditional_jump_triggers | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_SOURCE** + +digital_edge_rio_trigger_edge +----------------------------- + + .. py:attribute:: digital_edge_rio_trigger_edge + + Configures the active edge of the incoming trigger signal for the RIO trigger instance. The default value is :py:data:`~nidigital.DigitalEdge.RISING`. + + +-------------------------------------------+---------------------------------------------------------------+ + | Valid Values: | | + +===========================================+===============================================================+ + | :py:data:`~nidigital.DigitalEdge.RISING` | Specifies the signal transition from low level to high level. | + +-------------------------------------------+---------------------------------------------------------------+ + | :py:data:`~nidigital.DigitalEdge.FALLING` | Specifies the signal transition from high level to low level. | + +-------------------------------------------+---------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_edge` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_rio_trigger_edge` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.DigitalEdge | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | rio_triggers | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_RIO_TRIGGER_EDGE** + +digital_edge_rio_trigger_source +------------------------------- + + .. py:attribute:: digital_edge_rio_trigger_source + + Configures the digital trigger source terminal for a RIO trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/RIOTrigger0. The default value is VI_NULL. + + +----------------------------------------------+ + | Valid Values: | + +==============================================+ + | String identifier to any valid terminal name | + +----------------------------------------------+ + + + .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_source` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_rio_trigger_source` + + The following table lists the characteristics of this property. + + +-----------------------+--------------+ + | Characteristic | Value | + +=======================+==============+ + | Datatype | str | + +-----------------------+--------------+ + | Permissions | read-write | + +-----------------------+--------------+ + | Repeated Capabilities | rio_triggers | + +-----------------------+--------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_RIO_TRIGGER_SOURCE** + +digital_edge_start_trigger_edge +------------------------------- + + .. py:attribute:: digital_edge_start_trigger_edge + + Specifies the active edge for the Start trigger. This property is used when the :py:attr:`nidigital.Session.start_trigger_type` property is set to Digital Edge. + + +-------------------------------------------+-------------------------------------------------------------------------------+ + | Defined Values: | | + +===========================================+===============================================================================+ + | :py:data:`~nidigital.DigitalEdge.RISING` | Asserts the trigger when the signal transitions from low level to high level. | + +-------------------------------------------+-------------------------------------------------------------------------------+ + | :py:data:`~nidigital.DigitalEdge.FALLING` | Asserts the trigger when the signal transitions from high level to low level. | + +-------------------------------------------+-------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.DigitalEdge | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** + +digital_edge_start_trigger_source +--------------------------------- + + .. py:attribute:: digital_edge_start_trigger_source + + Specifies the source terminal for the Start trigger. This property is used when the :py:attr:`nidigital.Session.start_trigger_type` property is set to Digital Edge. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/StartTrigger. + + +-----------------+--------------------+ + | Defined Values: | | + +=================+====================+ + | PXI_Trig0 | PXI trigger line 0 | + +-----------------+--------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +-----------------+--------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +-----------------+--------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +-----------------+--------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +-----------------+--------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +-----------------+--------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +-----------------+--------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +-----------------+--------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** + +driver_setup +------------ + + .. py:attribute:: driver_setup + + This property returns initial values for NI-Digital Pattern Driver properties as a string. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_DRIVER_SETUP** + +exported_conditional_jump_trigger_output_terminal +------------------------------------------------- + + .. py:attribute:: exported_conditional_jump_trigger_output_terminal + + Specifies the terminal to output the exported signal of the specified instance of the conditional jump trigger. The default value is VI_NULL. + + +---------------+-------------------------+ + | Valid Values: | | + +===============+=========================+ + | VI_NULL ("") | Returns an empty string | + +---------------+-------------------------+ + | PXI_Trig0 | PXI trigger line 0 | + +---------------+-------------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +---------------+-------------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +---------------+-------------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +---------------+-------------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +---------------+-------------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +---------------+-------------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +---------------+-------------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +---------------+-------------------------+ + + + .. tip:: This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].exported_conditional_jump_trigger_output_terminal` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.exported_conditional_jump_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | str | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | conditional_jump_triggers | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_EXPORTED_CONDITIONAL_JUMP_TRIGGER_OUTPUT_TERMINAL** + +exported_pattern_opcode_event_output_terminal +--------------------------------------------- + + .. py:attribute:: exported_pattern_opcode_event_output_terminal + + Specifies the destination terminal for exporting the Pattern Opcode Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + +-----------------+--------------------+ + | Defined Values: | | + +=================+====================+ + | PXI_Trig0 | PXI trigger line 0 | + +-----------------+--------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +-----------------+--------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +-----------------+--------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +-----------------+--------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +-----------------+--------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +-----------------+--------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +-----------------+--------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +-----------------+--------------------+ + + + .. tip:: This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. + + Example: :py:attr:`my_session.pattern_opcode_events[ ... ].exported_pattern_opcode_event_output_terminal` + + To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.exported_pattern_opcode_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | str | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | pattern_opcode_events | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_EXPORTED_PATTERN_OPCODE_EVENT_OUTPUT_TERMINAL** + +exported_rio_event_output_terminal +---------------------------------- + + .. py:attribute:: exported_rio_event_output_terminal + + Specifies the destination terminal for exporting the RIO Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + +-----------------+--------------------+ + | Defined Values: | | + +=================+====================+ + | PXI_Trig0 | PXI trigger line 0 | + +-----------------+--------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +-----------------+--------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +-----------------+--------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +-----------------+--------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +-----------------+--------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +-----------------+--------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +-----------------+--------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +-----------------+--------------------+ + + + .. tip:: This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_events to specify a subset. + + Example: :py:attr:`my_session.rio_events[ ... ].exported_rio_event_output_terminal` + + To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.exported_rio_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | rio_events | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_EXPORTED_RIO_EVENT_OUTPUT_TERMINAL** + +exported_start_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_start_trigger_output_terminal + + Specifies the destination terminal for exporting the Start trigger. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + +----------------------+-----------------------------+ + | Defined Values: | | + +======================+=============================+ + | Do not export signal | The signal is not exported. | + +----------------------+-----------------------------+ + | PXI_Trig0 | PXI trigger line 0 | + +----------------------+-----------------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +----------------------+-----------------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +----------------------+-----------------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +----------------------+-----------------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +----------------------+-----------------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +----------------------+-----------------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +----------------------+-----------------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +----------------------+-----------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** + +frequency_counter_hysteresis_enabled +------------------------------------ + + .. py:attribute:: frequency_counter_hysteresis_enabled + + Specifies whether hysteresis is enabled for the frequency counters of the digital pattern instrument. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_FREQUENCY_COUNTER_HYSTERESIS_ENABLED** + +frequency_counter_measurement_mode +---------------------------------- + + .. py:attribute:: frequency_counter_measurement_mode + + Determines how the frequency counters of the digital pattern instrument make measurements. + + +---------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Valid Values: | | + +=========================================================+==================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nidigital.FrequencyMeasurementMode.BANKED` | Each discrete frequency counter is mapped to specific channels and makes frequency measurements from only those channels. Use banked mode when you need access to the full measure frequency range of the instrument. **Note:** If you request frequency measurements from multiple channels within the same bank, the measurements are made in series for the channels in that bank. | + +---------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.FrequencyMeasurementMode.PARALLEL` | All discrete frequency counters make frequency measurements from all channels in parallel with one another. Use parallel mode to increase the speed of frequency measurements if you do not need access to the full measure frequency range of the instrument; in parallel mode, you can also add :py:attr:`nidigital.Session.frequency_counter_hysteresis_enabled` to reduce measurement noise. | + +---------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------+ + | Characteristic | Value | + +=======================+================================+ + | Datatype | enums.FrequencyMeasurementMode | + +-----------------------+--------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_FREQUENCY_COUNTER_MEASUREMENT_MODE** + +frequency_counter_measurement_time +---------------------------------- + + .. py:attribute:: frequency_counter_measurement_time + + Specifies the measurement time for the frequency counter. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].frequency_counter_measurement_time` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.frequency_counter_measurement_time` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------------+ + | Characteristic | Value | + +=======================+========================================+ + | Datatype | float in seconds or datetime.timedelta | + +-----------------------+----------------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_FREQUENCY_COUNTER_MEASUREMENT_TIME** + +group_capabilities +------------------ + + .. py:attribute:: group_capabilities + + Returns a string that contains a comma-separated list of class-extension groups that the driver implements. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_GROUP_CAPABILITIES** + +halt_on_keep_alive_opcode +------------------------- + + .. py:attribute:: halt_on_keep_alive_opcode + + Specifies whether keep_alive opcodes should behave like halt opcodes. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HALT_ON_KEEP_ALIVE_OPCODE** + +history_ram_buffer_size_per_site +-------------------------------- + + .. py:attribute:: history_ram_buffer_size_per_site + + Specifies the size, in samples, of the host memory buffer. The default value is 32000. + + +---------------+ + | Valid Values: | + +===============+ + | 0-INT64_MAX | + +---------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_BUFFER_SIZE_PER_SITE** + +history_ram_cycles_to_acquire +----------------------------- + + .. py:attribute:: history_ram_cycles_to_acquire + + Configures which cycles History RAM acquires after the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. + + +--------------------------------------------------------+-----------------------------------------------------------------------------------+ + | Defined Values: | | + +========================================================+===================================================================================+ + | :py:data:`~nidigital.HistoryRAMCyclesToAcquire.FAILED` | Only acquires cycles that fail a compare after the triggering conditions are met. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------+ + | :py:data:`~nidigital.HistoryRAMCyclesToAcquire.ALL` | Acquires all cycles after the triggering conditions are met. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.HistoryRAMCyclesToAcquire | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_CYCLES_TO_ACQUIRE** + +history_ram_max_samples_to_acquire_per_site +------------------------------------------- + + .. py:attribute:: history_ram_max_samples_to_acquire_per_site + + Specifies the maximum number of History RAM samples to acquire per site. If the property is set to -1, it will acquire until the History RAM buffer is full. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_MAX_SAMPLES_TO_ACQUIRE_PER_SITE** + +history_ram_number_of_samples_is_finite +--------------------------------------- + + .. py:attribute:: history_ram_number_of_samples_is_finite + + Specifies whether the instrument acquires a finite number of History Ram samples or acquires continuously. The maximum number of samples that will be acquired when this property is set to True is determined by the instrument History RAM depth specification and the History RAM Max Samples to Acquire Per Site property. The default value is True. + + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Valid Values: | | + +===============+======================================================================================================================================================+ + | True | Specifies that History RAM results will not stream into the host buffer until a History RAM fetch API is called. | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ + | False | Specifies that History RAM results will automatically start streaming into a host buffer after a pattern is burst and the History RAM has triggered. | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_NUMBER_OF_SAMPLES_IS_FINITE** + +history_ram_pretrigger_samples +------------------------------ + + .. py:attribute:: history_ram_pretrigger_samples + + Specifies the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_PRETRIGGER_SAMPLES** + +history_ram_trigger_type +------------------------ + + .. py:attribute:: history_ram_trigger_type + + Specifies the type of trigger condition on which History RAM starts acquiring pattern information. + + +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +===========================================================+=====================================================================================================================================+ + | :py:data:`~nidigital.HistoryRAMTriggerType.FIRST_FAILURE` | Starts acquiring pattern information in History RAM on the first failed cycle in a pattern burst. | + +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.HistoryRAMTriggerType.CYCLE_NUMBER` | Starts acquiring pattern information in History RAM starting from a specified cycle number. | + +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.HistoryRAMTriggerType.PATTERN_LABEL` | Starts acquiring pattern information in History RAM starting from a specified pattern label, augmented by vector and cycle offsets. | + +-----------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.HistoryRAMTriggerType | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_HISTORY_RAM_TRIGGER_TYPE** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + Returns a string that contains the firmware revision information for the digital pattern instrument. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.instrument_firmware_revision` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + Returns a string ("National Instruments") that contains the name of the manufacturer of the digital pattern instrument. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + Returns a string that contains the model number or name of the digital pattern instrument. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_INSTRUMENT_MODEL** + +interchange_check +----------------- + + .. py:attribute:: interchange_check + + This property is not supported. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_INTERCHANGE_CHECK** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Returns a string that contains the resource descriptor that the NI-Digital Pattern Driver uses to identify the digital pattern instrument. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_IO_RESOURCE_DESCRIPTOR** + +is_keep_alive_active +-------------------- + + .. py:attribute:: is_keep_alive_active + + Returns True if the digital pattern instrument is driving the keep alive pattern. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_IS_KEEP_ALIVE_ACTIVE** + +logical_name +------------ + + .. py:attribute:: logical_name + + Returns a string containing the logical name that you specified when opening the current IVI session. This property is not supported. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_LOGICAL_NAME** + +mask_compare +------------ + + .. py:attribute:: mask_compare + + Specifies whether the pattern comparisons are masked or not. When set to True for a specified pin, failures on that pin will be masked. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].mask_compare` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.mask_compare` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | bool | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_MASK_COMPARE** + +pattern_label_history_ram_trigger_cycle_offset +---------------------------------------------- + + .. py:attribute:: pattern_label_history_ram_trigger_cycle_offset + + Specifies the number of cycles that follow the specified pattern label and vector offset, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PATTERN_LABEL_HISTORY_RAM_TRIGGER_CYCLE_OFFSET** + +pattern_label_history_ram_trigger_label +--------------------------------------- + + .. py:attribute:: pattern_label_history_ram_trigger_label + + Specifies the pattern label, augmented by the vector and cycle offset, to determine the point where History RAM will start acquiring pattern information when configured for a pattern label trigger. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PATTERN_LABEL_HISTORY_RAM_TRIGGER_LABEL** + +pattern_label_history_ram_trigger_vector_offset +----------------------------------------------- + + .. py:attribute:: pattern_label_history_ram_trigger_vector_offset + + Specifies the number of vectors that follow the specified pattern label, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PATTERN_LABEL_HISTORY_RAM_TRIGGER_VECTOR_OFFSET** + +pattern_opcode_event_terminal_name +---------------------------------- + + .. py:attribute:: pattern_opcode_event_terminal_name + + Specifies the terminal name for the output trigger signal of the specified instance of a Pattern Opcode Event. You can use this terminal name as an input signal source for another trigger. + + + + + .. tip:: This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. + + Example: :py:attr:`my_session.pattern_opcode_events[ ... ].pattern_opcode_event_terminal_name` + + To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.pattern_opcode_event_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | str | + +-----------------------+-----------------------+ + | Permissions | read only | + +-----------------------+-----------------------+ + | Repeated Capabilities | pattern_opcode_events | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PATTERN_OPCODE_EVENT_TERMINAL_NAME** + +ppmu_allow_extended_voltage_range +--------------------------------- + + .. py:attribute:: ppmu_allow_extended_voltage_range + + Enables the instrument to operate in additional voltage ranges where instrument specifications may differ from standard ranges. When set to True, this property enables extended voltage range operation. Review specification deviations for application suitability before using this property. NI recommends setting this property to False when not using the extended voltage range to avoid unintentional use of this range. The extended voltage range is supported only for PPMU, with the output method set to DC Voltage. A voltage glitch may occur when you change the PPMU output voltage from a standard range to the extended voltage range, or vice-versa, while the PPMU is sourcing. NI recommends temporarily changing the :py:attr:`nidigital.Session.selected_function` property to Off before sourcing a voltage level that requires a range change. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_allow_extended_voltage_range` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_allow_extended_voltage_range` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | bool | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_ALLOW_EXTENDED_VOLTAGE_RANGE** + +ppmu_aperture_time +------------------ + + .. py:attribute:: ppmu_aperture_time + + Specifies the measurement aperture time for the PPMU. The :py:attr:`nidigital.Session.ppmu_aperture_time_units` property sets the units of the PPMU aperture time. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_aperture_time` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_APERTURE_TIME** + +ppmu_aperture_time_units +------------------------ + + .. py:attribute:: ppmu_aperture_time_units + + Specifies the units of the measurement aperture time for the PPMU. + + +-----------------------------------------------------+-----------------------------------------+ + | Defined Values: | | + +=====================================================+=========================================+ + | :py:data:`~nidigital.PPMUApertureTimeUnits.SECONDS` | Specifies the aperture time in seconds. | + +-----------------------------------------------------+-----------------------------------------+ + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time_units` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_aperture_time_units` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.PPMUApertureTimeUnits | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_APERTURE_TIME_UNITS** + +ppmu_current_level +------------------ + + .. py:attribute:: ppmu_current_level + + Specifies the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. Specify valid values for the current level using the :py:meth:`nidigital.Session.PPMU_ConfigureCurrentLevelRange` method. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_level` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LEVEL** + +ppmu_current_level_range +------------------------ + + .. py:attribute:: ppmu_current_level_range + + Specifies the range of valid values for the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level_range` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_level_range` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LEVEL_RANGE** + +ppmu_current_limit +------------------ + + .. py:attribute:: ppmu_current_limit + + Specifies the current limit, in amps, that the output cannot exceed while the PPMU forces voltage to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. The PXIe-6570/6571 does not support the :py:attr:`nidigital.Session.ppmu_current_limit` property and only allows configuration of the :py:attr:`nidigital.Session.ppmu_current_limit_range` property. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT** + +ppmu_current_limit_behavior +--------------------------- + + .. py:attribute:: ppmu_current_limit_behavior + + Specifies how the output should behave when the current limit is reached. + + +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +=========================================================+=========================================================================================================================================+ + | :py:data:`~nidigital.PPMUCurrentLimitBehavior.REGULATE` | Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. | + +---------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_behavior` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------+ + | Characteristic | Value | + +=======================+================================+ + | Datatype | enums.PPMUCurrentLimitBehavior | + +-----------------------+--------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+--------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT_BEHAVIOR** + +ppmu_current_limit_range +------------------------ + + .. py:attribute:: ppmu_current_limit_range + + Specifies the valid range, in amps, to which the current limit can be set while the PPMU forces voltage to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_range` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit_range` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT_RANGE** + +ppmu_current_limit_supported +---------------------------- + + .. py:attribute:: ppmu_current_limit_supported + + Returns whether the device supports configuration of a current limit when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_supported` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit_supported` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | bool | + +-----------------------+----------------+ + | Permissions | read only | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_CURRENT_LIMIT_SUPPORTED** + +ppmu_output_function +-------------------- + + .. py:attribute:: ppmu_output_function + + Specifies whether the PPMU forces voltage or current to the DUT. + + +--------------------------------------------------+--------------------------------------------+ + | Defined Values: | | + +==================================================+============================================+ + | :py:data:`~nidigital.PPMUOutputFunction.VOLTAGE` | Specifies the output method to DC Voltage. | + +--------------------------------------------------+--------------------------------------------+ + | :py:data:`~nidigital.PPMUOutputFunction.CURRENT` | Specifies the output method to DC Current. | + +--------------------------------------------------+--------------------------------------------+ + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_output_function` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_output_function` + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.PPMUOutputFunction | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_OUTPUT_FUNCTION** + +ppmu_voltage_level +------------------ + + .. py:attribute:: ppmu_voltage_level + + Specifies the voltage level, in volts, that the PPMU forces to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Voltage. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_level` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_voltage_level` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_VOLTAGE_LEVEL** + +ppmu_voltage_limit_high +----------------------- + + .. py:attribute:: ppmu_voltage_limit_high + + Specifies the maximum voltage limit, or high clamp voltage (V :sub:`CH` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_high` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_voltage_limit_high` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_VOLTAGE_LIMIT_HIGH** + +ppmu_voltage_limit_low +---------------------- + + .. py:attribute:: ppmu_voltage_limit_low + + Specifies the minimum voltage limit, or low clamp voltage (V :sub:`CL` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the :py:attr:`nidigital.Session.ppmu_output_function` property to DC Current. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_low` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_voltage_limit_low` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_PPMU_VOLTAGE_LIMIT_LOW** + +query_instrument_status +----------------------- + + .. py:attribute:: query_instrument_status + + Specifies whether the NI-Digital Pattern Driver queries the digital pattern instrument status after each operation. The instrument status is always queried, regardless of the property setting. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_QUERY_INSTRUMENT_STATUS** + +range_check +----------- + + .. py:attribute:: range_check + + Checks the range and validates parameter and property values you pass to NI-Digital Pattern Driver methods. Ranges are always checked, regardless of the property setting. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_RANGE_CHECK** + +record_coercions +---------------- + + .. py:attribute:: record_coercions + + Specifies whether the IVI engine keeps a list of the value coercions it makes for integer and real type properties. Enabling record value coercions is not supported. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_RECORD_COERCIONS** + +rio_event_terminal_name +----------------------- + + .. py:attribute:: rio_event_terminal_name + + Specifies the terminal name for the output signal of the specified instance of a RIO Event. You can use this terminal name as an input signal source for another trigger. + + + + + .. tip:: This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_events to specify a subset. + + Example: :py:attr:`my_session.rio_events[ ... ].rio_event_terminal_name` + + To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.rio_event_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read only | + +-----------------------+------------+ + | Repeated Capabilities | rio_events | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_RIO_EVENT_TERMINAL_NAME** + +rio_trigger_terminal_name +------------------------- + + .. py:attribute:: rio_trigger_terminal_name + + Specifies the terminal name from which the exported RIO trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the RIO trigger instance asserts on the digital pattern instrument. + + + + + .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_terminal_name` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.rio_trigger_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+--------------+ + | Characteristic | Value | + +=======================+==============+ + | Datatype | str | + +-----------------------+--------------+ + | Permissions | read only | + +-----------------------+--------------+ + | Repeated Capabilities | rio_triggers | + +-----------------------+--------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_RIO_TRIGGER_TERMINAL_NAME** + +rio_trigger_type +---------------- + + .. py:attribute:: rio_trigger_type + + Disables the rio trigger or configures it for hardware triggering. The default value is :py:data:`~nidigital.TriggerType.NONE`. + + +------------------------------------------------+------------------------------------------------------------------+ + | Valid Values: | | + +================================================+==================================================================+ + | :py:data:`~nidigital.TriggerType.NONE` | Disables the conditional jump trigger. | + +------------------------------------------------+------------------------------------------------------------------+ + | :py:data:`~nidigital.TriggerType.DIGITAL_EDGE` | Configures the conditional jump trigger for hardware triggering. | + +------------------------------------------------+------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_type` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.rio_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | rio_triggers | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_RIO_TRIGGER_TYPE** + +selected_function +----------------- + + .. py:attribute:: selected_function + + .. caution:: In the Disconnect state, some I/O protection and sensing circuitry remains exposed. Do not subject the instrument to voltage beyond its operating range. + + Specifies whether digital pattern instrument channels are controlled by the pattern sequencer or PPMU, disconnected, or off. + + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +===================================================+==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nidigital.SelectedFunction.DIGITAL` | The pin is connected to the driver, comparator, and active load methods. The PPMU is not sourcing, but can make voltage measurements. The state of the digital pin driver when you change the :py:attr:`nidigital.Session.selected_function` to Digital is determined by the most recent call to the :py:meth:`nidigital.Session.write_static` method or the last vector of the most recently executed pattern burst, whichever happened last. Use the :py:meth:`nidigital.Session.write_static` method to control the state of the digital pin driver through software. Use the :py:meth:`nidigital.Session.burst_pattern` method to control the state of the digital pin driver through a pattern. Set the **selectDigitalFunction** parameter of the :py:meth:`nidigital.Session.burst_pattern` method to True to automatically switch the :py:attr:`nidigital.Session.selected_function` of the pins in the pattern burst to :py:data:`~nidigital.SelectedFunction.DIGITAL`. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.SelectedFunction.PPMU` | The pin is connected to the PPMU. The driver, comparator, and active load are off while this method is selected. Call the :py:meth:`nidigital.Session.ppmu_source` method to source a voltage or current. The :py:meth:`nidigital.Session.ppmu_source` method automatically switches the :py:attr:`nidigital.Session.selected_function` to the PPMU state and starts sourcing from the PPMU. Changing the :py:attr:`nidigital.Session.selected_function` to :py:data:`~nidigital.SelectedFunction.DISCONNECT`, :py:data:`~nidigital.SelectedFunction.OFF`, or :py:data:`~nidigital.SelectedFunction.DIGITAL` causes the PPMU to stop sourcing. If you set the :py:attr:`nidigital.Session.selected_function` property to PPMU, the PPMU is initially not sourcing. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.SelectedFunction.OFF` | The pin is electrically connected, and the PPMU and digital pin driver are off while this method is selected. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.SelectedFunction.DISCONNECT` | The pin is electrically disconnected from instrument methods. Selecting this method causes the PPMU to stop sourcing prior to disconnecting the pin. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: You can make PPMU voltage measurements using the :py:meth:`nidigital.Session.ppmu_measure` method from within any :py:attr:`nidigital.Session.selected_function`. + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].selected_function` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.selected_function` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.SelectedFunction | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SELECTED_FUNCTION** + +sequencer_flag_terminal_name +---------------------------- + + .. py:attribute:: sequencer_flag_terminal_name + + Specifies the terminal name for the output trigger signal of the Sequencer Flags trigger. You can use this terminal name as an input signal source for another trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SEQUENCER_FLAG_TERMINAL_NAME** + +serial_number +------------- + + .. py:attribute:: serial_number + + Returns the serial number of the device. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].serial_number` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.serial_number` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SERIAL_NUMBER** + +simulate +-------- + + .. py:attribute:: simulate + + Simulates I/O operations. After you open a session, you cannot change the simulation state. Use the :py:meth:`nidigital.Session.__init__` method to enable simulation. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SIMULATE** + +specific_driver_class_spec_major_version +---------------------------------------- + + .. py:attribute:: specific_driver_class_spec_major_version + + Returns the major version number of the class specification with which NI-Digital is compliant. This property is not supported. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION** + +specific_driver_class_spec_minor_version +---------------------------------------- + + .. py:attribute:: specific_driver_class_spec_minor_version + + Returns the minor version number of the class specification with which NI-Digital is compliant. This property is not supported. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + Returns a string that contains a brief description of the NI-Digital Pattern driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +specific_driver_prefix +---------------------- + + .. py:attribute:: specific_driver_prefix + + Returns a string that contains the prefix for the NI-Digital Pattern driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_PREFIX** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + Returns a string that contains additional version information about the NI-Digital Pattern Driver. For example, the driver can return Driver: NI-Digital 16.0 as the value of this property. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + Returns a string ("National Instruments") that contains the name of the vendor that supplies the NI-Digital Pattern Driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SPECIFIC_DRIVER_VENDOR** + +start_label +----------- + + .. py:attribute:: start_label + + Specifies the pattern name or exported pattern label from which to start bursting the pattern. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_START_LABEL** + +start_trigger_terminal_name +--------------------------- + + .. py:attribute:: start_trigger_terminal_name + + Specifies the terminal name for the output trigger signal of the Start trigger. You can use this terminal name as an input signal source for another trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_START_TRIGGER_TERMINAL_NAME** + +start_trigger_type +------------------ + + .. py:attribute:: start_trigger_type + + Specifies the Start trigger type. The digital pattern instrument waits for this trigger after you call the :py:meth:`nidigital.Session.init` method or the :py:meth:`nidigital.Session.burst_pattern` method, and does not burst a pattern until this trigger is received. + + +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +================================================+=====================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nidigital.TriggerType.NONE` | Disables the Start trigger. Pattern bursting starts immediately after you call the :py:meth:`nidigital.Session.init` method or the :py:meth:`nidigital.Session.burst_pattern` method. | + +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.TriggerType.DIGITAL_EDGE` | Pattern bursting does not start until the digital pattern instrument detects a digital edge. | + +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.TriggerType.SOFTWARE` | Pattern bursting does not start until the digital pattern instrument receives a software Start trigger. Create a software Start trigger by calling the :py:meth:`nidigital.Session.send_software_edge_trigger` method and selecting start trigger in the **trigger** parameter.Related information: SendSoftwareEdgeTrigger method. | + +------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_START_TRIGGER_TYPE** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + Returns a comma delimited string that contains the supported digital pattern instrument models for the specific driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +tdr_endpoint_termination +------------------------ + + .. py:attribute:: tdr_endpoint_termination + + Specifies whether TDR Channels are connected to an open circuit or a short to ground. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.TDREndpointTermination | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_TDR_ENDPOINT_TERMINATION** + +tdr_offset +---------- + + .. py:attribute:: tdr_offset + + Specifies the TDR Offset. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].tdr_offset` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.tdr_offset` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_TDR_OFFSET** + +termination_mode +---------------- + + .. py:attribute:: termination_mode + + Specifies the behavior of the pin during non-drive cycles. + + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +===================================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nidigital.TerminationMode.ACTIVE_LOAD` | Specifies that, for non-drive pin states (L, H, X, V, M, E), the active load is connected and the instrument sources or sinks a defined amount of current to load the DUT. The amount of current sourced by the instrument and therefore sunk by the DUT is specified by IOL. The amount of current sunk by the instrument and therefore sourced by the DUT is specified by IOH. The voltage at which the instrument changes between sourcing and sinking is specified by VCOM. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.TerminationMode.VTERM` | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver terminates the pin to the configured VTERM voltage through a 50 Ω impedance. VTERM is adjustable to allow for the pin to terminate at a set level. This is useful for instruments that might operate incorrectly if an instrument pin is unterminated and is allowed to float to any voltage level within the instrument voltage range. To address this issue, enable VTERM by configuring the VTERM pin level to the desired voltage and selecting the VTERM termination mode. Setting VTERM to 0 V and selecting the VTERM termination mode has the effect of connecting a 50 Ω termination to ground, which provides an effective 50 Ω impedance for the pin. This can be useful for improving signal integrity of certain DUTs by reducing reflections while the DUT drives the pin. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidigital.TerminationMode.HIGH_Z` | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver is put in a high-impedance state and the active load is disabled. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].termination_mode` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.termination_mode` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.TerminationMode | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_TERMINATION_MODE** + +timing_absolute_delay +--------------------- + + .. py:attribute:: timing_absolute_delay + + Specifies a timing delay, measured in seconds, and applies the delay to the digital pattern instrument in addition to TDR and calibration adjustments. If the :py:attr:`nidigital.Session.timing_absolute_delay_enabled` property is set to True, this value is the intermodule skew measured by NI-TClk. You can modify this value to override the timing delay and align the I/O timing of this instrument with another instrument that shares the same reference clock. If the :py:attr:`nidigital.Session.timing_absolute_delay_enabled` property is False, this property will return 0.0. Changing the :py:attr:`nidigital.Session.timing_absolute_delay_enabled` property from False to True will set the :py:attr:`nidigital.Session.timing_absolute_delay` value back to your previously set value. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].timing_absolute_delay` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.timing_absolute_delay` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_TIMING_ABSOLUTE_DELAY** + +timing_absolute_delay_enabled +----------------------------- + + .. py:attribute:: timing_absolute_delay_enabled + + Specifies whether the :py:attr:`nidigital.Session.timing_absolute_delay` property should be applied to adjust the digital pattern instrument timing reference relative to other instruments in the system. Do not use this feature with digital pattern instruments in a Semiconductor Test System (STS). Timing absolute delay conflicts with the adjustment performed during STS timing calibration. When set to True, the digital pattern instrument automatically adjusts the timing absolute delay to correct the instrument timing reference relative to other instruments in the system for better timing alignment among synchronized instruments. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_TIMING_ABSOLUTE_DELAY_ENABLED** + +vih +--- + + .. py:attribute:: vih + + Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic high (1). + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vih` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vih` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_VIH** + +vil +--- + + .. py:attribute:: vil + + Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic low (0). + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vil` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vil` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_VIL** + +voh +--- + + .. py:attribute:: voh + + Specifies the output voltage from the DUT above which the comparator on the digital pattern test instrument interprets a logic high (H). + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voh` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.voh` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_VOH** + +vol +--- + + .. py:attribute:: vol + + Specifies the output voltage from the DUT below which the comparator on the digital pattern test instrument interprets a logic low (L). + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vol` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vol` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_VOL** + +vterm +----- + + .. py:attribute:: vterm + + Specifies the termination voltage the digital pattern instrument applies during non-drive cycles when the termination mode is set to V :sub:`term`. The instrument applies the termination voltage through a 50 Ω parallel termination resistance. + + + + + .. tip:: This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vterm` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vterm` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | float | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels, pins | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIDIGITAL_ATTR_VTERM** + + +NI-TClk Support +=============== + + .. py:attribute:: tclk + + This is used to get and set NI-TClk attributes on the session. + + .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. + + +.. contents:: Session diff --git a/docs/nidigital/conf.py b/docs/nidigital/conf.py new file mode 100644 index 0000000000..67fade2849 --- /dev/null +++ b/docs/nidigital/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-Digital Pattern Driver Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-Digital Pattern Driver Python API' +copyright = '2019-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIDigitalPatternDriverPythonAPI.tex', 'NI-Digital Pattern Driver Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nidigitalpatterndriverpythonapi', 'NI-Digital Pattern Driver Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIDigitalPatternDriverPythonAPI', 'NI-Digital Pattern Driver Python API Documentation', + author, 'NIDigitalPatternDriverPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nidigital/enums.rst b/docs/nidigital/enums.rst new file mode 100644 index 0000000000..ca48b9e5d9 --- /dev/null +++ b/docs/nidigital/enums.rst @@ -0,0 +1,799 @@ +Enums +===== + +Enums used in NI-Digital Pattern Driver + +.. py:currentmodule:: nidigital + + +BitOrder +-------- + +.. py:class:: BitOrder + + .. py:attribute:: BitOrder.MSB + + + + The most significant bit is first. The first bit is in the 2^n place, where n is the number of bits. + + + + + + .. py:attribute:: BitOrder.LSB + + + + The least significant bit is first. The first bit is in the 2^0 place. + + + + + +DigitalEdge +----------- + +.. py:class:: DigitalEdge + + .. py:attribute:: DigitalEdge.RISING + + + + Asserts the trigger when the signal transitions from low level to high level. + + + + + + .. py:attribute:: DigitalEdge.FALLING + + + + Asserts the trigger when the signal transitions from high level to low level. + + + + + +DriveFormat +----------- + +.. py:class:: DriveFormat + + .. py:attribute:: DriveFormat.NR + + + + Drive format remains at logic level after each bit. + + + + + + .. py:attribute:: DriveFormat.RL + + + + Drive format returns to a logic level low after each bit. + + + + + + .. py:attribute:: DriveFormat.RH + + + + Drive format returns to a logic level high after each bit. + + + + + + .. py:attribute:: DriveFormat.SBC + + + + Drive format returns to the complement logic level of the bit after each bit. + + + + + +FrequencyMeasurementMode +------------------------ + +.. py:class:: FrequencyMeasurementMode + + .. py:attribute:: FrequencyMeasurementMode.BANKED + + + + Frequency measurements are made serially for groups of channels associated with a single frequency counter for each group. + + Maximum frequency measured: 200 MHz. + + + + + + .. py:attribute:: FrequencyMeasurementMode.PARALLEL + + + + Frequency measurements are made by multiple frequency counters in parallel. + + Maximum frequency measured: 100 MHz. + + + + + +HistoryRAMCyclesToAcquire +------------------------- + +.. py:class:: HistoryRAMCyclesToAcquire + + .. py:attribute:: HistoryRAMCyclesToAcquire.FAILED + + + + Acquires failed cycles. + + + + + + .. py:attribute:: HistoryRAMCyclesToAcquire.ALL + + + + Acquires all cycles. + + + + + +HistoryRAMTriggerType +--------------------- + +.. py:class:: HistoryRAMTriggerType + + .. py:attribute:: HistoryRAMTriggerType.FIRST_FAILURE + + + + First Failure History RAM trigger + + + + + + .. py:attribute:: HistoryRAMTriggerType.CYCLE_NUMBER + + + + Cycle Number History RAM trigger. + + + + + + .. py:attribute:: HistoryRAMTriggerType.PATTERN_LABEL + + + + Pattern Label History RAM trigger + + + + + +PPMUApertureTimeUnits +--------------------- + +.. py:class:: PPMUApertureTimeUnits + + .. py:attribute:: PPMUApertureTimeUnits.SECONDS + + + + Unit in seconds. + + + + + +PPMUCurrentLimitBehavior +------------------------ + +.. py:class:: PPMUCurrentLimitBehavior + + .. py:attribute:: PPMUCurrentLimitBehavior.REGULATE + + + + Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. + + + + + +PPMUMeasurementType +------------------- + +.. py:class:: PPMUMeasurementType + + .. py:attribute:: PPMUMeasurementType.CURRENT + + + + The PPMU measures current. + + + + + + .. py:attribute:: PPMUMeasurementType.VOLTAGE + + + + The PPMU measures voltage. + + + + + +PPMUOutputFunction +------------------ + +.. py:class:: PPMUOutputFunction + + .. py:attribute:: PPMUOutputFunction.VOLTAGE + + + + The PPMU forces voltage to the DUT. + + + + + + .. py:attribute:: PPMUOutputFunction.CURRENT + + + + The PPMU forces current to the DUT. + + + + + +PinState +-------- + +.. py:class:: PinState + + .. py:attribute:: PinState.ZERO + + + + A digital state of 0. + + + + + + .. py:attribute:: PinState.ONE + + + + A digital state of 1. + + + + + + .. py:attribute:: PinState.L + + + + A digital state of L (low). + + + + + + .. py:attribute:: PinState.H + + + + A digital state of H (high). + + + + + + .. py:attribute:: PinState.X + + + + A digital state of X (non-drive state). + + + + + + .. py:attribute:: PinState.M + + + + A digital state of M (midband). + + + + + + .. py:attribute:: PinState.V + + + + A digital state of V (compare high or low, not midband; store results from capture functionality if configured). + + + + + + .. py:attribute:: PinState.D + + + + A digital state of D (drive data from source functionality if configured). + + + + + + .. py:attribute:: PinState.E + + + + A digital state of E (compare data from source functionality if configured). + + + + + + .. py:attribute:: PinState.NOT_A_PIN_STATE + + + + Not a pin state is used for non-existent DUT cycles. + + + + + + .. py:attribute:: PinState.PIN_STATE_NOT_ACQUIRED + + + + Pin state could not be acquired because none of the pins mapped to the instrument in a multi-instrument session had any failures. + + + + + +SelectedFunction +---------------- + +.. py:class:: SelectedFunction + + .. py:attribute:: SelectedFunction.DIGITAL + + + + The pattern sequencer controls the specified pin(s). If a pattern is currently bursting, the pin immediately switches to bursting the pattern. This option disconnects the PPMU. + + + + + + .. py:attribute:: SelectedFunction.PPMU + + + + The PPMU controls the specified pin(s) and connects the PPMU. The pin driver is in a non-drive state, and the active load is disabled. The PPMU does not start sourcing or measuring until Source or Measure(PpmuMeasurementType) is called. + + + + + + .. py:attribute:: SelectedFunction.OFF + + + + Puts the digital driver in a non-drive state, disables the active load, disconnects the PPMU, and closes the I/O switch connecting the instrument channel. + + + + + + .. py:attribute:: SelectedFunction.DISCONNECT + + + + The I/O switch connecting the instrument channel is open to the I/O connector. If the PPMU is sourcing, it is stopped prior to opening the I/O switch. + + + + + + .. py:attribute:: SelectedFunction.RIO + + + + Yields control of the specified pin(s) to LabVIEW FPGA. + + + + + +SequencerFlag +------------- + +.. py:class:: SequencerFlag + + .. py:attribute:: SequencerFlag.FLAG0 + + + + .. py:attribute:: SequencerFlag.FLAG1 + + + + .. py:attribute:: SequencerFlag.FLAG2 + + + + .. py:attribute:: SequencerFlag.FLAG3 + + + +SequencerRegister +----------------- + +.. py:class:: SequencerRegister + + .. py:attribute:: SequencerRegister.REGISTER0 + + + + .. py:attribute:: SequencerRegister.REGISTER1 + + + + .. py:attribute:: SequencerRegister.REGISTER2 + + + + .. py:attribute:: SequencerRegister.REGISTER3 + + + + .. py:attribute:: SequencerRegister.REGISTER4 + + + + .. py:attribute:: SequencerRegister.REGISTER5 + + + + .. py:attribute:: SequencerRegister.REGISTER6 + + + + .. py:attribute:: SequencerRegister.REGISTER7 + + + + .. py:attribute:: SequencerRegister.REGISTER8 + + + + .. py:attribute:: SequencerRegister.REGISTER9 + + + + .. py:attribute:: SequencerRegister.REGISTER10 + + + + .. py:attribute:: SequencerRegister.REGISTER11 + + + + .. py:attribute:: SequencerRegister.REGISTER12 + + + + .. py:attribute:: SequencerRegister.REGISTER13 + + + + .. py:attribute:: SequencerRegister.REGISTER14 + + + + .. py:attribute:: SequencerRegister.REGISTER15 + + + +SoftwareTrigger +--------------- + +.. py:class:: SoftwareTrigger + + .. py:attribute:: SoftwareTrigger.START + + + + Overrides the start trigger. + + + + + + .. py:attribute:: SoftwareTrigger.CONDITIONAL_JUMP + + + + Specifies to route a conditional jump trigger. + + + + + +SourceDataMapping +----------------- + +.. py:class:: SourceDataMapping + + .. py:attribute:: SourceDataMapping.BROADCAST + + + + Broadcasts the waveform you specify to all sites. + + + + + + .. py:attribute:: SourceDataMapping.SITE_UNIQUE + + + + Sources unique waveform data to each site. + + + + + +TDREndpointTermination +---------------------- + +.. py:class:: TDREndpointTermination + + .. py:attribute:: TDREndpointTermination.OPEN + + + + TDR channels are connected to an open circuit. + + + + + + .. py:attribute:: TDREndpointTermination.SHORT_TO_GROUND + + + + TDR channels are connected to a short to ground. + + + + + +TerminationMode +--------------- + +.. py:class:: TerminationMode + + .. py:attribute:: TerminationMode.ACTIVE_LOAD + + + + The active load provides a constant current to a commutating voltage (Vcom). + + + + + + .. py:attribute:: TerminationMode.VTERM + + + + The pin driver drives Vterm. + + + + + + .. py:attribute:: TerminationMode.HIGH_Z + + + + The pin driver is in a non-drive state (in a high-impedance state) and the active load is disabled. + + + + + +TimeSetEdgeType +--------------- + +.. py:class:: TimeSetEdgeType + + .. py:attribute:: TimeSetEdgeType.DRIVE_ON + + + + Specifies the drive on edge of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.DRIVE_DATA + + + + Specifies the drive data edge of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.DRIVE_RETURN + + + + Specifies the drive return edge of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.DRIVE_OFF + + + + Specifies the drive off edge of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.COMPARE_STROBE + + + + Specifies the compare strobe of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.DRIVE_DATA2 + + + + Specifies the drive data 2 edge of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.DRIVE_RETURN2 + + + + Specifies the drive return 2 edge of the time set. + + + + + + .. py:attribute:: TimeSetEdgeType.COMPARE_STROBE2 + + + + Specifies the compare strobe 2 of the time set. + + + + + +TriggerType +----------- + +.. py:class:: TriggerType + + .. py:attribute:: TriggerType.NONE + + + + Disables the start trigger. + + + + + + .. py:attribute:: TriggerType.DIGITAL_EDGE + + + + Digital edge trigger. + + + + + + .. py:attribute:: TriggerType.SOFTWARE + + + + Software start trigger. + + + + + +WriteStaticPinState +------------------- + +.. py:class:: WriteStaticPinState + + .. py:attribute:: WriteStaticPinState.ZERO + + + + Specifies to drive low. + + + + + + .. py:attribute:: WriteStaticPinState.ONE + + + + Specifies to drive high. + + + + + + .. py:attribute:: WriteStaticPinState.X + + + + Specifies to not drive. + + + + + + + diff --git a/docs/nidigital/errors.rst b/docs/nidigital/errors.rst new file mode 100644 index 0000000000..a22b697695 --- /dev/null +++ b/docs/nidigital/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nidigital.errors + + .. exception:: Error + + Base exception type that all NI-Digital Pattern Driver exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: DriverError + + An error originating from the NI-Digital Pattern Driver driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-Digital Pattern Driver driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: DriverTooNewError + + An error due to the NI-Digital Pattern Driver driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nidigital.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: nidigital.errors + + .. exception:: DriverWarning + + A warning originating from the NI-Digital Pattern Driver driver + + + diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst new file mode 100644 index 0000000000..047f4d33a0 --- /dev/null +++ b/docs/nidigital/examples.rst @@ -0,0 +1,50 @@ +Examples +======== + +`You can download all nidigital examples for latest version here `_ + +nidigital_burst_with_start_trigger.py +------------------------------------- + +.. literalinclude:: ../../src/nidigital/examples/burst_with_start_trigger/nidigital_burst_with_start_trigger.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_burst_with_start_trigger.py) `_ + +nidigital_configure_time_set_and_voltage_levels.py +-------------------------------------------------- + +.. literalinclude:: ../../src/nidigital/examples/configure_time_set_and_voltage_levels/nidigital_configure_time_set_and_voltage_levels.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_configure_time_set_and_voltage_levels.py) `_ + +nidigital_load_sheets_and_burst.py +---------------------------------- + +.. literalinclude:: ../../src/nidigital/examples/load_sheets_and_burst/nidigital_load_sheets_and_burst.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_load_sheets_and_burst.py) `_ + +nidigital_burst_with_conditional_trigger.py +------------------------------------------- + +.. literalinclude:: ../../src/nidigital/examples/nidigital_burst_with_conditional_trigger/nidigital_burst_with_conditional_trigger.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_burst_with_conditional_trigger.py) `_ + +nidigital_ppmu_source_and_measure.py +------------------------------------ + +.. literalinclude:: ../../src/nidigital/examples/ppmu_source_and_measure/nidigital_ppmu_source_and_measure.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_ppmu_source_and_measure.py) `_ + diff --git a/docs/nidigital/grpc_session_options.rst b/docs/nidigital/grpc_session_options.rst new file mode 100644 index 0000000000..41e1e3de53 --- /dev/null +++ b/docs/nidigital/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-Digital Pattern Driver over gRPC + +.. py:currentmodule:: nidigital + + + +Creating a gRPC channel +----------------------- + +Using NI-Digital Pattern Driver over gRPC requires the ``grpc`` extra:: + + $ python -m pip install nidigital[grpc] + +Every NI-Digital Pattern Driver gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`nidigital.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-Digital Pattern Driver runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import nidigital + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = nidigital.GrpcSessionOptions(channel, '') + with nidigital.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`nidigital.SessionInitializationBehavior` diff --git a/docs/nidigital/index.rst b/docs/nidigital/index.rst new file mode 100644 index 0000000000..e743cca9c5 --- /dev/null +++ b/docs/nidigital/index.rst @@ -0,0 +1,31 @@ + +NI-Digital Pattern Driver Python API Documentation +================================================== + +.. include:: about_nidigital.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nidigital + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nidigital/installation.inc b/docs/nidigital/installation.inc new file mode 100644 index 0000000000..5cd8bdcdff --- /dev/null +++ b/docs/nidigital/installation.inc @@ -0,0 +1,13 @@ + +.. _nidigital_installation-section: + +Installation +------------ + +As a prerequisite to using the **nidigital** module, you must install the NI-Digital Pattern Driver runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-Digital Pattern Driver**) can be installed with `pip `_:: + + $ python -m pip install nidigital + + diff --git a/docs/nidigital/nidigital.rst b/docs/nidigital/nidigital.rst new file mode 100644 index 0000000000..24055e8327 --- /dev/null +++ b/docs/nidigital/nidigital.rst @@ -0,0 +1,9 @@ +nidigital module +================ + +.. include:: installation.inc + +.. include:: ../_static/nidigital_usage.inc + +.. include:: toc.inc + diff --git a/docs/nidigital/rep_caps.rst b/docs/nidigital/rep_caps.rst new file mode 100644 index 0000000000..32550fc4f8 --- /dev/null +++ b/docs/nidigital/rep_caps.rst @@ -0,0 +1,192 @@ +.. py:module:: nidigital + :noindex: + +.. py:currentmodule:: nidigital.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niDigital_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +channels +-------- + + .. py:attribute:: nidigital.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +pins +---- + + .. py:attribute:: nidigital.Session.pins[] + + .. code:: python + + session.pins['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +instruments +----------- + + .. py:attribute:: nidigital.Session.instruments[] + + .. code:: python + + session.instruments['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +pattern_opcode_events +--------------------- + + .. py:attribute:: nidigital.Session.pattern_opcode_events[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.pattern_opcode_events['0-2'].channel_enabled = True + + passes a string of :python:`'patternOpcodeEvent0, patternOpcodeEvent1, patternOpcodeEvent2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.pattern_opcode_events['patternOpcodeEvent0-patternOpcodeEvent2'].channel_enabled = True + + passes a string of :python:`'patternOpcodeEvent0, patternOpcodeEvent1, patternOpcodeEvent2'` to the set attribute function. + + +conditional_jump_triggers +------------------------- + + .. py:attribute:: nidigital.Session.conditional_jump_triggers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.conditional_jump_triggers['0-2'].channel_enabled = True + + passes a string of :python:`'conditionalJumpTrigger0, conditionalJumpTrigger1, conditionalJumpTrigger2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.conditional_jump_triggers['conditionalJumpTrigger0-conditionalJumpTrigger2'].channel_enabled = True + + passes a string of :python:`'conditionalJumpTrigger0, conditionalJumpTrigger1, conditionalJumpTrigger2'` to the set attribute function. + + +sites +----- + + .. py:attribute:: nidigital.Session.sites[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.sites['0-2'].channel_enabled = True + + passes a string of :python:`'site0, site1, site2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.sites['site0-site2'].channel_enabled = True + + passes a string of :python:`'site0, site1, site2'` to the set attribute function. + + +rio_events +---------- + + .. py:attribute:: nidigital.Session.rio_events[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.rio_events['0-2'].channel_enabled = True + + passes a string of :python:`'RIOEvent0, RIOEvent1, RIOEvent2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.rio_events['RIOEvent0-RIOEvent2'].channel_enabled = True + + passes a string of :python:`'RIOEvent0, RIOEvent1, RIOEvent2'` to the set attribute function. + + +rio_triggers +------------ + + .. py:attribute:: nidigital.Session.rio_triggers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.rio_triggers['0-2'].channel_enabled = True + + passes a string of :python:`'RIOTrigger0, RIOTrigger1, RIOTrigger2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.rio_triggers['RIOTrigger0-RIOTrigger2'].channel_enabled = True + + passes a string of :python:`'RIOTrigger0, RIOTrigger1, RIOTrigger2'` to the set attribute function. + + + diff --git a/docs/nidigital/status.inc b/docs/nidigital/status.inc new file mode 100644 index 0000000000..12eab6b86a --- /dev/null +++ b/docs/nidigital/status.inc @@ -0,0 +1,46 @@ + +NI-Digital Pattern Driver Python API Status +------------------------------------------- + ++---------------------------------------+--------------------------+ +| NI-Digital Pattern Driver (nidigital) | | ++=======================================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++---------------------------------------+--------------------------+ +| PyPI Version | |nidigitalLatestVersion| | ++---------------------------------------+--------------------------+ +| Supported Python Version | |nidigitalPythonVersion| | ++---------------------------------------+--------------------------+ +| Documentation | |nidigitalDocs| | ++---------------------------------------+--------------------------+ +| Open Issues | |nidigitalOpenIssues| | ++---------------------------------------+--------------------------+ +| Open Pull Requests | |nidigitalOpenPRs| | ++---------------------------------------+--------------------------+ + + +.. |nidigitalLatestVersion| image:: http://img.shields.io/pypi/v/nidigital.svg + :alt: Latest NI-Digital Pattern Driver Version + :target: http://pypi.python.org/pypi/nidigital + + +.. |nidigitalPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidigital.svg + :alt: NI-Digital Pattern Driver supported Python versions + :target: http://pypi.python.org/pypi/nidigital + + +.. |nidigitalDocs| image:: https://readthedocs.org/projects/nidigital/badge/?version=latest + :alt: NI-Digital Pattern Driver Python API Documentation Status + :target: https://nidigital.readthedocs.io/en/latest + + +.. |nidigitalOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidigital.svg + :alt: Open Issues + Pull Requests for NI-Digital Pattern Driver + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidigital + + +.. |nidigitalOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidigital.svg + :alt: Pull Requests for NI-Digital Pattern Driver + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidigital + + diff --git a/docs/nidigital/toc.inc b/docs/nidigital/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/nidigital/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/nidmm/.readthedocs.yaml b/docs/nidmm/.readthedocs.yaml new file mode 100644 index 0000000000..083b682cb1 --- /dev/null +++ b/docs/nidmm/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nidmm/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nidmm/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nidmm/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nidmm/about_nidmm.inc b/docs/nidmm/about_nidmm.inc new file mode 100644 index 0000000000..55b56b4433 --- /dev/null +++ b/docs/nidmm/about_nidmm.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nidmm** module provides a Python API for NI-DMM. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nidmm** supports all the Operating Systems supported by NI-DMM. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nidmm**. + diff --git a/docs/nidmm/class.rst b/docs/nidmm/class.rst new file mode 100644 index 0000000000..00d9a3e39c --- /dev/null +++ b/docs/nidmm/class.rst @@ -0,0 +1,3552 @@ +.. py:module:: nidmm + +Session +======= + +.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) + + + + This method completes the following tasks: + + - Creates a new IVI instrument driver session and, optionally, sets the + initial state of the following session properties: + :py:attr:`nidmm.Session.RANGE_CHECK`, :py:attr:`nidmm.Session.QUERY_INSTR_STATUS`, + :py:attr:`nidmm.Session.CACHE`, :py:attr:`nidmm.Session.simulate`, + :py:attr:`nidmm.Session.RECORD_COERCIONS`. + - Opens a session to the device you specify for the **Resource_Name** + parameter. If the **ID_Query** parameter is set to True, this + method queries the instrument ID and checks that it is valid for + this instrument driver. + - If the **Reset_Device** parameter is set to True, this method + resets the instrument to a known state. Sends initialization commands + to set the instrument to the state necessary for the operation of the + instrument driver. + - Returns a ViSession handle that you use to identify the instrument in + all subsequent instrument driver method calls. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param resource_name: + + + .. caution:: All IVI names for the **Resource_Name**, such as logical names or + virtual names, are case-sensitive. If you use logical names, driver + session names, or virtual names in your program, you must make sure that + the name you use matches the name in the IVI Configuration Store file + exactly, without any variations in the case of the characters in the + name. + + | Contains the **resource_name** of the device to initialize. The + **resource_name** is assigned in Measurement & Automation Explorer + (MAX). Refer to `Related + Documentation `__ + for the *NI Digital Multimeters Getting Started Guide* for more + information about configuring and testing the DMM in MAX. + | Valid Syntax: + + - NI-DAQmx name + - DAQ::NI-DAQmx name[::INSTR] + - DAQ::Traditional NI-DAQ device number[::INSTR] + - IVI logical name + + + + + :type resource_name: str + + :param id_query: + + + Verifies that the device you initialize is one that the driver supports. + NI-DMM automatically performs this query, so setting this parameter is + not necessary. + Defined Values: + + +----------------+---+------------------+ + | True (default) | 1 | Perform ID Query | + +----------------+---+------------------+ + | False | 0 | Skip ID Query | + +----------------+---+------------------+ + + + :type id_query: bool + + :param reset_device: + + + Specifies whether to reset the instrument during the initialization + procedure. + Defined Values: + + +----------------+---+--------------+ + | True (default) | 1 | Reset Device | + +----------------+---+--------------+ + | False | 0 | Don't Reset | + +----------------+---+--------------+ + + + :type reset_device: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: nidmm.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: abort() + + Aborts a previously initiated measurement and returns the DMM to the + Idle state. + + + + + +close +----- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: close() + + Closes the specified session and deallocates resources that it reserved. + + + + .. note:: This method is not needed when using the session context manager + + + +configure_measurement_absolute +------------------------------ + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_measurement_absolute(measurement_function, range, resolution_absolute) + + Configures the common properties of the measurement. These properties + include :py:attr:`nidmm.Session.method`, :py:attr:`nidmm.Session.range`, and + :py:attr:`nidmm.Session.resolution_absolute`. + + + + + + :param measurement_function: + + + Specifies the **measurement_function** used to acquire the measurement. + The driver sets :py:attr:`nidmm.Session.method` to this value. + + + + + :type measurement_function: :py:data:`nidmm.Function` + :param range: + + + Specifies the **range** for the method specified in the + **Measurement_Function** parameter. When frequency is specified in the + **Measurement_Function** parameter, you must supply the minimum + frequency expected in the **range** parameter. For example, you must + type in 100 Hz if you are measuring 101 Hz or higher. + For all other methods, you must supply a **range** that exceeds the + value that you are measuring. For example, you must type in 10 V if you + are measuring 9 V. **range** values are coerced up to the closest input + **range**. Refer to the `Devices + Overview `__ for a list of valid + ranges. The driver sets :py:attr:`nidmm.Session.range` to this value. The default is + 0.02 V. + + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_OFF` | -2.0 | NI-DMM sets the Range to the current :py:attr:`nidmm.Session.auto_range_value` and uses this range for all subsequent measurements until the measurement configuration is changed. | + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The :py:attr:`nidmm.Session.auto_range_value` is stored and used for all subsequent measurements until the measurement configuration is changed. | + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: The NI 4050, NI 4060, and NI 4065 only support Auto Range when the + trigger and sample trigger are set to IMMEDIATE. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type range: float + :param resolution_absolute: + + + Specifies the absolute resolution for the measurement. NI-DMM sets + :py:attr:`nidmm.Session.resolution_absolute` to this value. The PXIe-4080/4081/4082 + uses the resolution you specify. The NI 4065 and NI 4070/4071/4072 + ignore this parameter when the **Range** parameter is set to + :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` (-1.0) or :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` + (-3.0). The default is 0.001 V. + + + + .. note:: NI-DMM ignores this parameter for capacitance and inductance + measurements on the NI 4072. To achieve better resolution for such + measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` + property. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type resolution_absolute: float + +configure_measurement_digits +---------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_measurement_digits(measurement_function, range, resolution_digits) + + Configures the common properties of the measurement. These properties + include :py:attr:`nidmm.Session.method`, :py:attr:`nidmm.Session.range`, and + :py:attr:`nidmm.Session.resolution_digits`. + + + + + + :param measurement_function: + + + Specifies the **measurement_function** used to acquire the measurement. + The driver sets :py:attr:`nidmm.Session.method` to this value. + + + + + :type measurement_function: :py:data:`nidmm.Function` + :param range: + + + Specifies the range for the method specified in the + **Measurement_Function** parameter. When frequency is specified in the + **Measurement_Function** parameter, you must supply the minimum + frequency expected in the **range** parameter. For example, you must + type in 100 Hz if you are measuring 101 Hz or higher. + For all other methods, you must supply a range that exceeds the value + that you are measuring. For example, you must type in 10 V if you are + measuring 9 V. range values are coerced up to the closest input range. + Refer to the `Devices + Overview `__ for a list of valid + ranges. The driver sets :py:attr:`nidmm.Session.range` to this value. The default is + 0.02 V. + + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_OFF` | -2.0 | NI-DMM sets the Range to the current :py:attr:`nidmm.Session.auto_range_value` and uses this range for all subsequent measurements until the measurement configuration is changed. | + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The :py:attr:`nidmm.Session.auto_range_value` is stored and used for all subsequent measurements until the measurement configuration is changed. | + +---------------------------------------------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: The NI 4050, NI 4060, and NI 4065 only support Auto Range when the + trigger and sample trigger are set to IMMEDIATE. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type range: float + :param resolution_digits: + + + Specifies the resolution of the measurement in digits. The driver sets + the `Devices Overview `__ for a + list of valid ranges. The driver sets :py:attr:`nidmm.Session.resolution_digits` + property to this value. The PXIe-4080/4081/4082 uses the resolution you + specify. The NI 4065 and NI 4070/4071/4072 ignore this parameter when + the **Range** parameter is set to :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` (-1.0) or + :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` (-3.0). The default is 5½. + + + + .. note:: NI-DMM ignores this parameter for capacitance and inductance + measurements on the NI 4072. To achieve better resolution for such + measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` + property. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type resolution_digits: float + +configure_multi_point +--------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_multi_point(trigger_count, sample_count, sample_trigger=nidmm.SampleTrigger.IMMEDIATE, sample_interval=hightime.timedelta(seconds=-1)) + + Configures the properties for multipoint measurements. These properties + include :py:attr:`nidmm.Session.trigger_count`, :py:attr:`nidmm.Session.sample_count`, + :py:attr:`nidmm.Session.sample_trigger`, and :py:attr:`nidmm.Session.sample_interval`. + + For continuous acquisitions, set :py:attr:`nidmm.Session.trigger_count` or + :py:attr:`nidmm.Session.sample_count` to zero. For more information, refer to + `Multiple Point + Acquisitions `__, + `Triggering `__, and `Using + Switches `__. + + + + + + :param trigger_count: + + + Sets the number of triggers you want the DMM to receive before returning + to the Idle state. The driver sets :py:attr:`nidmm.Session.trigger_count` to this + value. The default value is 1. + + + + + :type trigger_count: int + :param sample_count: + + + Sets the number of measurements the DMM makes in each measurement + sequence initiated by a trigger. The driver sets + :py:attr:`nidmm.Session.sample_count` to this value. The default value is 1. + + + + + :type sample_count: int + :param sample_trigger: + + + Specifies the **sample_trigger** source you want to use. The driver + sets :py:attr:`nidmm.Session.sample_trigger` to this value. The default is + Immediate. + + + + .. note:: To determine which values are supported by each device, refer to the + `LabWindows/CVI Trigger + Routing `__ section. + + + :type sample_trigger: :py:data:`nidmm.SampleTrigger` + :param sample_interval: + + + Sets the amount of time in seconds the DMM waits between measurement + cycles. The driver sets :py:attr:`nidmm.Session.sample_interval` to this value. + Specify a sample interval to add settling time between measurement + cycles or to decrease the measurement rate. **sample_interval** only + applies when the **Sample_Trigger** is set to INTERVAL. + + On the NI 4060, the **sample_interval** value is used as the settling + time. When sample interval is set to 0, the DMM does not settle between + measurement cycles. The NI 4065 and NI 4070/4071/4072 use the value + specified in **sample_interval** as additional delay. The default value + (-1) ensures that the DMM settles for a recommended time. This is the + same as using an Immediate trigger. + + + + .. note:: This property is not used on the NI 4080/4081/4082 and the NI 4050. + + + :type sample_interval: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_rtd_custom +-------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_rtd_custom(rtd_a, rtd_b, rtd_c) + + Configures the A, B, and C parameters for a custom RTD. + + + + + + :param rtd_a: + + + Specifies the Callendar-Van Dusen A coefficient for RTD scaling when RTD + Type parameter is set to Custom in the :py:meth:`nidmm.Session.configure_rtd_type` method. + The default is 3.9083e-3 (Pt3851) + + + + + :type rtd_a: float + :param rtd_b: + + + Specifies the Callendar-Van Dusen B coefficient for RTD scaling when RTD + Type parameter is set to Custom in the :py:meth:`nidmm.Session.configure_rtd_type` method. + The default is -5.775e-7 (Pt3851). + + + + + :type rtd_b: float + :param rtd_c: + + + Specifies the Callendar-Van Dusen C coefficient for RTD scaling when RTD + Type parameter is set to Custom in the :py:meth:`nidmm.Session.configure_rtd_type` method. + The default is -4.183e-12 (Pt3851). + + + + + :type rtd_c: float + +configure_rtd_type +------------------ + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_rtd_type(rtd_type, rtd_resistance) + + Configures the RTD Type and RTD Resistance parameters for an RTD. + + + + + + :param rtd_type: + + + Specifies the type of RTD used to measure the temperature resistance. + NI-DMM uses this value to set the RTD Type property. The default is + :py:data:`~nidmm.RTDType.PT3851`. + + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | Enum | Standards | Material | TCR (α) | Typical R\ :sub:`0` (Ω) | Notes | | + +==================================+===============================================+==========+=========+=========================+===============================================================================+===============================+ + | Callendar-Van Dusen Coefficient | | | | | | | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | :py:data:`~nidmm.RTDType.PT3851` | IEC-751 DIN 43760 BS 1904 ASTM-E1137 EN-60751 | Platinum | .003851 | 100 Ω 1000 Ω | A = 3.9083 × 10\ :sup:`–3` B = –5.775×10:sup:`–7` C = –4.183×10:sup:`–12` | Most common RTDs | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | :py:data:`~nidmm.RTDType.PT3750` | Low-cost vendor compliant RTD\* | Platinum | .003750 | 1000 Ω | A = 3.81 × 10\ :sup:`–3` B = –6.02×10:sup:`–7` C = –6.0×10:sup:`–12` | Low-cost RTD | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | :py:data:`~nidmm.RTDType.PT3916` | JISC 1604 | Platinum | .003916 | 100 Ω | A = 3.9739 × 10\ :sup:`–3` B = –5.870×10:sup:`–7` C = –4.4 ×10\ :sup:`–12` | Used in primarily in Japan | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | :py:data:`~nidmm.RTDType.PT3920` | US Industrial Standard D-100 American | Platinum | .003920 | 100 Ω | A = 3.9787 × 10\ :sup:`–3` B = –5.8686×10:sup:`–7` C = –4.167 ×10\ :sup:`–12` | Low-cost RTD | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | :py:data:`~nidmm.RTDType.PT3911` | US Industrial Standard American | Platinum | .003911 | 100 Ω | A = 3.9692 × 10\ :sup:`–3` B = –5.8495×10:sup:`–7` C = –4.233 ×10\ :sup:`–12` | Low-cost RTD | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | :py:data:`~nidmm.RTDType.PT3928` | ITS-90 | Platinum | .003928 | 100 Ω | A = 3.9888 × 10\ :sup:`–3` B = –5.915×10:sup:`–7` C = –3.85 ×10\ :sup:`–12` | The definition of temperature | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | \*No standard. Check the TCR. | | | | | | | + +----------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + + + :type rtd_type: :py:data:`nidmm.RTDType` + :param rtd_resistance: + + + Specifies the RTD resistance in ohms at 0 °C. NI-DMM uses this value to + set the RTD Resistance property. The default is 100 (Ω). + + + + + :type rtd_resistance: float + +configure_thermistor_custom +--------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_thermistor_custom(thermistor_a, thermistor_b, thermistor_c) + + Configures the A, B, and C parameters for a custom thermistor. + + + + + + :param thermistor_a: + + + Specifies the Steinhart-Hart A coefficient for thermistor scaling when + Thermistor Type is set to Custom in the :py:meth:`nidmm.Session.ConfigureThermistorType` + method. The default is 1.0295e-3 (44006). + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + :type thermistor_a: float + :param thermistor_b: + + + Specifies the Steinhart-Hart B coefficient for thermistor scaling when + Thermistor Type is set to Custom in the :py:meth:`nidmm.Session.ConfigureThermistorType` + method. The default is 2.391e-4 (44006). + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + :type thermistor_b: float + :param thermistor_c: + + + Specifies the Steinhart-Hart C coefficient for thermistor scaling when + Thermistor Type is set to Custom in the :py:meth:`nidmm.Session.ConfigureThermistorType` + method. The default is 1.568e-7 (44006). + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + :type thermistor_c: float + +configure_thermocouple +---------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_thermocouple(thermocouple_type, reference_junction_type=nidmm.ThermocoupleReferenceJunctionType.FIXED) + + Configures the thermocouple type and reference junction type for a + chosen thermocouple. + + + + + + :param thermocouple_type: + + + Specifies the type of thermocouple used to measure the temperature. + NI-DMM uses this value to set the Thermocouple Type property. The + default is :py:data:`~nidmm.ThermocoupleType.J`. + + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.B` | Thermocouple type B | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.E` | Thermocouple type E | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.J` | Thermocouple type J | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.K` | Thermocouple type K | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.N` | Thermocouple type N | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.R` | Thermocouple type R | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.S` | Thermocouple type S | + +--------------------------------------+---------------------+ + | :py:data:`~nidmm.ThermocoupleType.T` | Thermocouple type T | + +--------------------------------------+---------------------+ + + + :type thermocouple_type: :py:data:`nidmm.ThermocoupleType` + :param reference_junction_type: + + + Specifies the type of reference junction to be used in the reference + junction compensation of a thermocouple measurement. NI-DMM uses this + value to set the Reference Junction Type property. The only supported + value is :py:data:`~nidmm.ThermocoupleReferenceJunctionType.FIXED`. + + + + + :type reference_junction_type: :py:data:`nidmm.ThermocoupleReferenceJunctionType` + +configure_trigger +----------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_trigger(trigger_source, trigger_delay=hightime.timedelta(seconds=-1)) + + Configures the DMM **Trigger_Source** and **Trigger_Delay**. Refer to + `Triggering `__ and `Using + Switches `__ for more + information. + + + + + + :param trigger_source: + + + Specifies the **trigger_source** that initiates the acquisition. The + driver sets :py:attr:`nidmm.Session.trigger_source` to this value. Software + configures the DMM to wait until :py:meth:`nidmm.Session.send_software_trigger` is called + before triggering the DMM. + + + + .. note:: To determine which values are supported by each device, refer to the + `LabWindows/CVI Trigger + Routing `__ section. + + + :type trigger_source: :py:data:`nidmm.TriggerSource` + :param trigger_delay: + + + Specifies the time that the DMM waits after it has received a trigger + before taking a measurement. The driver sets the + :py:attr:`nidmm.Session.trigger_delay` property to this value. By default, + **trigger_delay** is :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` (-1), which means the DMM + waits an appropriate settling time before taking the measurement. On the + NI 4060, if you set **trigger_delay** to 0, the DMM does not settle + before taking the measurement. The NI 4065 and NI 4070/4071/4072 use the + value specified in **trigger_delay** as additional settling time. + + + + .. note:: When using the NI 4050, **Trigger_Delay** must be set to + :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` (-1). + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger_delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_waveform_acquisition +------------------------------ + + .. py:currentmodule:: nidmm.Session + + .. py:method:: configure_waveform_acquisition(measurement_function, range, rate, waveform_points) + + Configures the DMM for waveform acquisitions. This feature is supported + on the NI 4080/4081/4082 and the NI 4070/4071/4072. + + + + + + :param measurement_function: + + + Specifies the **measurement_function** used in a waveform acquisition. + The driver sets :py:attr:`nidmm.Session.method` to this value. + + +-----------------------------------------------------+------+------------------+ + | :py:data:`~nidmm.Method.WAVEFORM_VOLTAGE` (default) | 1003 | Voltage Waveform | + +-----------------------------------------------------+------+------------------+ + | :py:data:`~nidmm.Method.WAVEFORM_CURRENT` | 1004 | Current Waveform | + +-----------------------------------------------------+------+------------------+ + + + :type measurement_function: :py:data:`nidmm.Function` + :param range: + + + Specifies the expected maximum amplitude of the input signal and sets + the **range** for the **Measurement_Function**. NI-DMM sets + :py:attr:`nidmm.Session.range` to this value. **range** values are coerced up to the + closest input **range**. The default is 10.0. + + For valid ranges refer to the topics in + `Devices `__. + + Auto-ranging is not supported during waveform acquisitions. + + + + + :type range: float + :param rate: + + + Specifies the **rate** of the acquisition in samples per second. NI-DMM + sets :py:attr:`nidmm.Session.waveform_rate` to this value. + + The valid **Range** is 10.0–1,800,000 S/s. **rate** values are coerced + to the closest integer divisor of 1,800,000. The default value is + 1,800,000. + + + + + :type rate: float + :param waveform_points: + + + Specifies the number of points to acquire before the waveform + acquisition completes. NI-DMM sets :py:attr:`nidmm.Session.waveform_points` to this + value. + + To calculate the maximum and minimum number of waveform points that you + can acquire in one acquisition, refer to the `Waveform Acquisition + Measurement Cycle `__. + + The default value is 500. + + + + + :type waveform_points: int + +disable +------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: disable() + + Places the instrument in a quiescent state where it has minimal or no + impact on the system to which it is connected. If a measurement is in + progress when this method is called, the measurement is aborted. + + + + + +export_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: export_attribute_configuration_buffer() + + Exports the property configuration of the session to the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DMM returns an + error. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + + + .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + + + :rtype: bytes + :return: + + + Specifies the byte array buffer to be populated with the exported + property configuration. + + + + + +export_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: export_attribute_configuration_file(file_path) + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DMM returns an + error. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + + + .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + + + :param file_path: + + + Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:**\ .nidmmconfig + + + + + :type file_path: str + +fetch +----- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: fetch(maximum_time=hightime.timedelta(milliseconds=-1)) + + Returns the value from a previously initiated measurement. You must call + :py:meth:`nidmm.Session._initiate` before calling this method. Value is in base units. + + + + + + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + + :rtype: float + :return: + + + The measured value returned from the DMM. + + + + + +fetch_multi_point +----------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: fetch_multi_point(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) + + Returns an array of values from a previously initiated multipoint + measurement. The number of measurements the DMM makes is determined by + the values you specify for the **Trigger_Count** and **Sample_Count** + parameters of :py:meth:`nidmm.Session.configure_multi_point`. You must first call + :py:meth:`nidmm.Session._initiate` to initiate a measurement before calling this method. Values are in base units. + + + + + + :param array_size: + + + Specifies the number of measurements to acquire. The maximum number of + measurements for a finite acquisition is the (**Trigger Count** x + **Sample Count**) parameters in :py:meth:`nidmm.Session.configure_multi_point`. + + For continuous acquisitions, up to 100,000 points can be returned at + once. The number of measurements can be a subset. The valid range is any + positive ViInt32. The default value is 1. + + + + + :type array_size: int + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + + :rtype: array.array("d") + :return: + + + An array of measurement values. + + + + .. note:: The size of the **Reading_Array** must be at least the size that you + specify for the **Array_Size** parameter. + + + +fetch_waveform +-------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: fetch_waveform(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of + values from a previously initiated waveform acquisition. You must call + :py:meth:`nidmm.Session._initiate` before calling this method. + + + + + + :param array_size: + + + Specifies the number of waveform points to return. You specify the total + number of points that the DMM acquires in the **Waveform Points** + parameter of :py:meth:`nidmm.Session.configure_waveform_acquisition`. The default value is + 1. + + + + + :type array_size: int + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + + :rtype: array.array("d") + :return: + + + **Waveform Array** is an array of measurement values stored in waveform + data type. + + + + + +fetch_waveform_into +------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: fetch_waveform_into(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of + values from a previously initiated waveform acquisition. You must call + :py:meth:`nidmm.Session._initiate` before calling this method. + + + + + + :param waveform_array: + + + **Waveform Array** is an array of measurement values stored in waveform + data type. + + + + + :type waveform_array: numpy.array(dtype=numpy.float64) + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + +get_cal_date_and_time +--------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: get_cal_date_and_time(cal_type) + + Returns the date and time of the last calibration performed. + + + + .. note:: The NI 4050 and NI 4060 are not supported. + + + + :param cal_type: + + + Specifies the type of calibration performed (external or self-calibration). + + +-----------------------------------------------------+---+----------------------+ + | :py:data:`~nidmm.NIDMM_VAL_INTERNAL_AREA` (default) | 0 | Self-Calibration | + +-----------------------------------------------------+---+----------------------+ + | :py:data:`~nidmm.NIDMM_VAL_EXTERNAL_AREA` | 1 | External Calibration | + +-----------------------------------------------------+---+----------------------+ + + .. note:: The NI 4065 does not support self-calibration. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type cal_type: int + + :rtype: hightime.datetime + :return: + + + Indicates date and time of the last calibration. + + + + + +get_dev_temp +------------ + + .. py:currentmodule:: nidmm.Session + + .. py:method:: get_dev_temp(options="") + + Returns the current **Temperature** of the device. + + + + .. note:: The NI 4050 and NI 4060 are not supported. + + + + :param options: + + + Reserved. + + + + + :type options: str + + :rtype: float + :return: + + + Returns the current **temperature** of the device. + + + + + +get_ext_cal_recommended_interval +-------------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: get_ext_cal_recommended_interval() + + Returns the recommended interval between external recalibration in + **Months**. + + + + .. note:: The NI 4050 and NI 4060 are not supported. + + + + :rtype: hightime.timedelta + :return: + + + Returns the recommended number of **months** between external + calibrations. + + + + + +get_last_cal_temp +----------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: get_last_cal_temp(cal_type) + + Returns the **Temperature** during the last calibration procedure. + + + + .. note:: The NI 4050 and NI 4060 are not supported. + + + + :param cal_type: + + + Specifies the type of calibration performed (external or + self-calibration). + + +-----------------------------------------------------+---+----------------------+ + | :py:data:`~nidmm.NIDMM_VAL_INTERNAL_AREA` (default) | 0 | Self-Calibration | + +-----------------------------------------------------+---+----------------------+ + | :py:data:`~nidmm.NIDMM_VAL_EXTERNAL_AREA` | 1 | External Calibration | + +-----------------------------------------------------+---+----------------------+ + + .. note:: The NI 4065 does not support self-calibration. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type cal_type: int + + :rtype: float + :return: + + + Returns the **temperature** during the last calibration. + + + + + +get_self_cal_supported +---------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: get_self_cal_supported() + + Returns a Boolean value that expresses whether or not the DMM that you + are using can perform self-calibration. + + + + + + :rtype: bool + :return: + + + Returns whether Self Cal is supported for the device specified by the + given session. + + +-------+---+-------------------------------------------------------------+ + | True | 1 | The DMM that you are using can perform self-calibration. | + +-------+---+-------------------------------------------------------------+ + | False | 0 | The DMM that you are using cannot perform self-calibration. | + +-------+---+-------------------------------------------------------------+ + + + +import_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: import_attribute_configuration_buffer(configuration) + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + + + .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + + + :param configuration: + + + Specifies the byte array buffer that contains the property + configuration to import. + + + + + :type configuration: bytes + +import_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: import_attribute_configuration_file(file_path) + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + + + .. note:: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + + + :param file_path: + + + Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:**\ .nidmmconfig + + + + + :type file_path: str + +initiate +-------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: initiate() + + Initiates an acquisition. After you call this method, the DMM leaves + the Idle state and enters the Wait-for-Trigger state. If trigger is set + to Immediate mode, the DMM begins acquiring measurement data. Use + :py:meth:`nidmm.Session.fetch`, :py:meth:`nidmm.Session.fetch_multi_point`, or :py:meth:`nidmm.Session.fetch_waveform` to + retrieve the measurement data. + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +lock +---- + + .. py:currentmodule:: nidmm.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`nidmm.Session.lock` method. + - A call to NI-DMM locked the session. + - After a call to the :py:meth:`nidmm.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`nidmm.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`nidmm.Session.lock` method and the + :py:meth:`nidmm.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`nidmm.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`nidmm.Session.lock` method with a call to + the :py:meth:`nidmm.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with nidmm.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`nidmm.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +perform_open_cable_comp +----------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: perform_open_cable_comp() + + For the NI 4082 and NI 4072 only, performs the open cable compensation + measurements for the current capacitance/inductance range, and returns + open cable compensation **Conductance** and **Susceptance** values. You + can use the return values of this method as inputs to + :py:meth:`nidmm.Session.ConfigureOpenCableCompValues`. + + This method returns an error if the value of the :py:attr:`nidmm.Session.method` + property is not set to :py:data:`~nidmm.Method.CAPACITANCE` (1005) or + :py:data:`~nidmm.Method.INDUCTANCE` (1006). + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + + :rtype: tuple (conductance, susceptance) + + WHERE + + conductance (float): + + + **conductance** is the measured value of open cable compensation + **conductance**. + + + + + susceptance (float): + + + **susceptance** is the measured value of open cable compensation + **susceptance**. + + + + + +perform_short_cable_comp +------------------------ + + .. py:currentmodule:: nidmm.Session + + .. py:method:: perform_short_cable_comp() + + Performs the short cable compensation measurements for the current + capacitance/inductance range, and returns short cable compensation + **Resistance** and **Reactance** values. You can use the return values + of this method as inputs to :py:meth:`nidmm.Session.ConfigureShortCableCompValues`. + + This method returns an error if the value of the :py:attr:`nidmm.Session.method` + property is not set to :py:data:`~nidmm.Method.CAPACITANCE` (1005) or + :py:data:`~nidmm.Method.INDUCTANCE` (1006). + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + + :rtype: tuple (resistance, reactance) + + WHERE + + resistance (float): + + + **resistance** is the measured value of short cable compensation + **resistance**. + + + + + reactance (float): + + + **reactance** is the measured value of short cable compensation + **reactance**. + + + + + +read +---- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: read(maximum_time=hightime.timedelta(milliseconds=-1)) + + Acquires a single measurement and returns the measured value in base units. + + + + + + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + + :rtype: float + :return: + + + The measured value returned from the DMM. + + + + + +read_multi_point +---------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: read_multi_point(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) + + Acquires multiple measurements and returns an array of measured values. + The number of measurements the DMM makes is determined by the values you + specify for the **Trigger_Count** and **Sample_Count** parameters in + :py:meth:`nidmm.Session.configure_multi_point`. + + + + + + :param array_size: + + + Specifies the number of measurements to acquire. The maximum number of + measurements for a finite acquisition is the (**Trigger Count** x + **Sample Count**) parameters in :py:meth:`nidmm.Session.configure_multi_point`. + + For continuous acquisitions, up to 100,000 points can be returned at + once. The number of measurements can be a subset. The valid range is any + positive ViInt32. The default value is 1. + + + + + :type array_size: int + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + + :rtype: array.array("d") + :return: + + + An array of measurement values. + + + + .. note:: The size of the **Reading_Array** must be at least the size that you + specify for the **Array_Size** parameter. + + + +read_status +----------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: read_status() + + Returns measurement backlog and acquisition status. Use this method to + determine how many measurements are available before calling + :py:meth:`nidmm.Session.fetch`, :py:meth:`nidmm.Session.fetch_multi_point`, or :py:meth:`nidmm.Session.fetch_waveform`. + + + + .. note:: The NI 4050 is not supported. + + + + :rtype: tuple (acquisition_backlog, acquisition_status) + + WHERE + + acquisition_backlog (int): + + + The number of measurements available to be read. If the backlog + continues to increase, data is eventually overwritten, resulting in an + error. + + + + .. note:: On the NI 4060, the **Backlog** does not increase when autoranging. On + the NI 4065, the **Backlog** does not increase when Range is set to AUTO + RANGE ON (-1), or before the first point is fetched when Range is set to + AUTO RANGE ONCE (-3). These behaviors are due to the autorange model of + the devices. + + + acquisition_status (:py:data:`nidmm.AcquisitionStatus`): + + + Indicates status of the acquisition. The following table shows the + acquisition states: + + +---+----------------------------+ + | 0 | Running | + +---+----------------------------+ + | 1 | Finished with backlog | + +---+----------------------------+ + | 2 | Finished with no backlog | + +---+----------------------------+ + | 3 | Paused | + +---+----------------------------+ + | 4 | No acquisition in progress | + +---+----------------------------+ + + + +read_waveform +------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: read_waveform(array_size, maximum_time=hightime.timedelta(milliseconds=-1)) + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, acquires a waveform + and returns data as an array of values or as a waveform data type. The + number of elements in the **Waveform_Array** is determined by the + values you specify for the **Waveform_Points** parameter in + :py:meth:`nidmm.Session.configure_waveform_acquisition`. + + + + + + :param array_size: + + + Specifies the number of waveform points to return. You specify the total + number of points that the DMM acquires in the **Waveform Points** + parameter of :py:meth:`nidmm.Session.configure_waveform_acquisition`. The default value is + 1. + + + + + :type array_size: int + :param maximum_time: + + + Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + :py:data:`~nidmm.NIDMM_VAL_TIME_LIMIT_AUTO` (-1). The DMM calculates the timeout + automatically. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type maximum_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + + :rtype: array.array("d") + :return: + + + An array of measurement values. + + + + .. note:: The size of the **Waveform_Array** must be at least the size that you + specify for the **Array_Size** parameter. + + + +reset +----- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: reset() + + Resets the instrument to a known state and sends initialization commands + to the instrument. The initialization commands set instrument settings + to the state necessary for the operation of the instrument driver. + + + + + +reset_with_defaults +------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: reset_with_defaults() + + Resets the instrument to a known state and sends initialization commands + to the DMM. The initialization commands set the DMM settings to the + state necessary for the operation of NI-DMM. All user-defined default + values associated with a logical name are applied after setting the DMM. + + + + + +self_cal +-------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: self_cal() + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, executes the + self-calibration routine to maintain measurement accuracy. + + + + .. note:: This method calls :py:meth:`nidmm.Session.reset`, and any configurations previous to + the call will be lost. All properties will be set to their default + values after the call returns. + + + +self_test +--------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: self_test() + + Performs a self-test on the DMM to ensure that the DMM is functioning + properly. Self-test does not calibrate the DMM. Zero + indicates success. + + On the NI 4080/4082 and NI 4070/4072, the error code 1013 indicates that + you should check the fuse and replace it, if necessary. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + + + .. note:: Self-test does not check the fuse on the NI 4065, NI 4071, and NI 4081. Hence, even if the fuse is blown on the device, self-test does not return error code 1013. + + .. note:: This method calls :py:meth:`nidmm.Session.reset`, and any configurations previous to the call will be lost. All properties will be set to their default values after the call returns. + + + +send_software_trigger +--------------------- + + .. py:currentmodule:: nidmm.Session + + .. py:method:: send_software_trigger() + + Sends a command to trigger the DMM. Call this method if you have + configured either the :py:attr:`nidmm.Session.trigger_source` or + :py:attr:`nidmm.Session.sample_trigger` properties. If the + :py:attr:`nidmm.Session.trigger_source` and/or :py:attr:`nidmm.Session.sample_trigger` + properties are set to :py:data:`~nidmm.NIDMM_VAL_EXTERNAL` or :py:data:`~nidmm.NIDMM_VAL_TTL`\ *n*, you + can use this method to override the trigger source that you configured + and trigger the device. The NI 4050 and NI 4060 are not supported. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + +unlock +------ + + .. py:currentmodule:: nidmm.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`nidmm.Session.lock`. Refer to :py:meth:`nidmm.Session.unlock` for additional + information on session locks. + + +Properties +========== + +ac_max_freq +----------- + + .. py:attribute:: ac_max_freq + + Specifies the maximum frequency component of the input signal for AC measurements. This property is used only for error checking and verifies that the value of this parameter is less than the maximum frequency of the device. This property affects the DMM only when you set the :py:attr:`nidmm.Session.method` property to AC measurements. + The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Max Frequency** + - C Attribute: **NIDMM_ATTR_AC_MAX_FREQ** + +ac_min_freq +----------- + + .. py:attribute:: ac_min_freq + + Specifies the minimum frequency component of the input signal for AC measurements. This property affects the DMM only when you set the :py:attr:`nidmm.Session.method` property to AC measurements. + The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Min Frequency** + - C Attribute: **NIDMM_ATTR_AC_MIN_FREQ** + +adc_calibration +--------------- + + .. py:attribute:: adc_calibration + + For the NI 4070/4071/4072 only, specifies the ADC calibration mode. + + The following table lists the characteristics of this property. + + +----------------+----------------------+ + | Characteristic | Value | + +================+======================+ + | Datatype | enums.ADCCalibration | + +----------------+----------------------+ + | Permissions | read-write | + +----------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:ADC Calibration** + - C Attribute: **NIDMM_ATTR_ADC_CALIBRATION** + +aperture_time +------------- + + .. py:attribute:: aperture_time + + Specifies the measurement aperture time for the current configuration. Aperture time is specified in units set by :py:attr:`nidmm.Session.aperture_time_units`. To override the default aperture, set this property to the desired aperture time after calling :py:meth:`nidmm.Session.ConfigureMeasurement`. To return to the default, set this property to :py:data:`~nidmm.NIDMM_VAL_APERTURE_TIME_AUTO` (-1). + On the NI 4070/4071/4072, the minimum aperture time is 8.89 usec, and the maximum aperture time is 149 sec. Any number of powerline cycles (PLCs) within the minimum and maximum ranges is allowed on the NI 4070/4071/4072. + On the NI 4065 the minimum aperture time is 333 µs, and the maximum aperture time is 78.2 s. If setting the number of averages directly, the total measurement time is aperture time X the number of averages, which must be less than 72.8 s. The aperture times allowed are 333 µs, 667 µs, or multiples of 1.11 ms-for example 1.11 ms, 2.22 ms, 3.33 ms, and so on. If you set an aperture time other than 333 µs, 667 µs, or multiples of 1.11 ms, the value will be coerced up to the next supported aperture time. + On the NI 4060, when the powerline frequency is 60 Hz, the PLCs allowed are 1 PLC, 6 PLC, 12 PLC, and 120 PLC. When the powerline frequency is 50 Hz, the PLCs allowed are 1 PLC, 5 PLC, 10 PLC, and 100 PLC. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Advanced:Aperture Time** + - C Attribute: **NIDMM_ATTR_APERTURE_TIME** + +aperture_time_units +------------------- + + .. py:attribute:: aperture_time_units + + Specifies the units of aperture time for the current configuration. + The NI 4060 does not support an aperture time set in seconds. + + The following table lists the characteristics of this property. + + +----------------+-------------------------+ + | Characteristic | Value | + +================+=========================+ + | Datatype | enums.ApertureTimeUnits | + +----------------+-------------------------+ + | Permissions | read-write | + +----------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Advanced:Aperture Time Units** + - C Attribute: **NIDMM_ATTR_APERTURE_TIME_UNITS** + +auto_range_value +---------------- + + .. py:attribute:: auto_range_value + + Specifies the value of the range. If auto ranging, shows the actual value of the active range. The value of this property is set during a read operation. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | float | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Auto Range Value** + - C Attribute: **NIDMM_ATTR_AUTO_RANGE_VALUE** + +auto_zero +--------- + + .. py:attribute:: auto_zero + + Specifies the AutoZero mode. + The NI 4050 is not supported. + + The following table lists the characteristics of this property. + + +----------------+----------------+ + | Characteristic | Value | + +================+================+ + | Datatype | enums.AutoZero | + +----------------+----------------+ + | Permissions | read-write | + +----------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Auto Zero** + - C Attribute: **NIDMM_ATTR_AUTO_ZERO** + +buffer_size +----------- + + .. py:attribute:: buffer_size + + Size in samples of the internal data buffer. Maximum is 134,217,727 (OX7FFFFFF) samples. When set to :py:data:`~nidmm.NIDMM_VAL_BUFFER_SIZE_AUTO` (-1), NI-DMM chooses the buffer size. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Multi Point Acquisition:Advanced:Buffer Size** + - C Attribute: **NIDMM_ATTR_BUFFER_SIZE** + +cable_comp_type +--------------- + + .. py:attribute:: cable_comp_type + + For the NI 4072 only, the type of cable compensation that is applied to the current capacitance or inductance measurement for the current range. + Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. + + The following table lists the characteristics of this property. + + +----------------+-----------------------------+ + | Characteristic | Value | + +================+=============================+ + | Datatype | enums.CableCompensationType | + +----------------+-----------------------------+ + | Permissions | read-write | + +----------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Cable Compensation Type** + - C Attribute: **NIDMM_ATTR_CABLE_COMP_TYPE** + +channel_count +------------- + + .. py:attribute:: channel_count + + Indicates the number of channels that the specific instrument driver supports. For each property for which the IVI_VAL_MULTI_CHANNEL flag property is set, the IVI engine maintains a separate cache value for each channel. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Capabilities:Channel Count** + - C Attribute: **NIDMM_ATTR_CHANNEL_COUNT** + +current_source +-------------- + + .. py:attribute:: current_source + + Specifies the current source provided during diode measurements. + The NI 4050 and NI 4060 are not supported. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Current Source** + - C Attribute: **NIDMM_ATTR_CURRENT_SOURCE** + +dc_bias +------- + + .. py:attribute:: dc_bias + + For the NI 4072 only, controls the available DC bias for capacitance measurements. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Advanced:DC Bias** + - C Attribute: **NIDMM_ATTR_DC_BIAS** + +dc_noise_rejection +------------------ + + .. py:attribute:: dc_noise_rejection + + Specifies the DC noise rejection mode. + The NI 4050 and NI 4060 are not supported. + + The following table lists the characteristics of this property. + + +----------------+------------------------+ + | Characteristic | Value | + +================+========================+ + | Datatype | enums.DCNoiseRejection | + +----------------+------------------------+ + | Permissions | read-write | + +----------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:DC Noise Rejection** + - C Attribute: **NIDMM_ATTR_DC_NOISE_REJECTION** + +driver_setup +------------ + + .. py:attribute:: driver_setup + + This property indicates the Driver Setup string that the user specified when initializing the driver. + Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niDMM Init With Options.vi. + If the user does not specify a Driver Setup string, this property returns an empty string. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Driver Setup** + - C Attribute: **NIDMM_ATTR_DRIVER_SETUP** + +freq_voltage_auto_range +----------------------- + + .. py:attribute:: freq_voltage_auto_range + + For the NI 4070/4071/4072 only, specifies the value of the frequency voltage range. If Auto Ranging, shows the actual value of the active frequency voltage range. If not Auto Ranging, the value of this property is the same as that of :py:attr:`nidmm.Session.freq_voltage_range`. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | float | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Frequency Voltage Auto Range Value** + - C Attribute: **NIDMM_ATTR_FREQ_VOLTAGE_AUTO_RANGE** + +freq_voltage_range +------------------ + + .. py:attribute:: freq_voltage_range + + Specifies the maximum amplitude of the input signal for frequency measurements. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Frequency Voltage Range** + - C Attribute: **NIDMM_ATTR_FREQ_VOLTAGE_RANGE** + +function +-------- + + .. py:attribute:: function + + Specifies the measurement method. + Refer to the :py:attr:`nidmm.Session.method` topic in the NI Digital Multimeters Help for device-specific information. + If you are setting this property directly, you must also set the :py:attr:`nidmm.Session.operation_mode` property, which controls whether the DMM takes standard single or multipoint measurements, or acquires a waveform. If you are programming properties directly, you must set the :py:attr:`nidmm.Session.operation_mode` property before setting other configuration properties. If the :py:attr:`nidmm.Session.operation_mode` property is set to :py:data:`~nidmm.OperationMode.WAVEFORM`, the only valid method types are :py:data:`~nidmm.Method.WAVEFORM_VOLTAGE` and :py:data:`~nidmm.Method.WAVEFORM_CURRENT`. Set the :py:attr:`nidmm.Session.operation_mode` property to :py:data:`~nidmm.OperationMode.IVIDMM` to set all other method values. + + The following table lists the characteristics of this property. + + +----------------+----------------+ + | Characteristic | Value | + +================+================+ + | Datatype | enums.Function | + +----------------+----------------+ + | Permissions | read-write | + +----------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Function** + - C Attribute: **NIDMM_ATTR_FUNCTION** + +input_resistance +---------------- + + .. py:attribute:: input_resistance + + Specifies the input resistance of the instrument. + The NI 4050 and NI 4060 are not supported. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Input Resistance** + - C Attribute: **NIDMM_ATTR_INPUT_RESISTANCE** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + A string containing the instrument firmware revision number. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Firmware Revision** + - C Attribute: **NIDMM_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + A string containing the manufacturer of the instrument. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Manufacturer** + - C Attribute: **NIDMM_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + A string containing the instrument model. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Model** + - C Attribute: **NIDMM_ATTR_INSTRUMENT_MODEL** + +instrument_product_id +--------------------- + + .. py:attribute:: instrument_product_id + + The PCI product ID. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Product ID** + - C Attribute: **NIDMM_ATTR_INSTRUMENT_PRODUCT_ID** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + A string containing the resource descriptor of the instrument. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:I/O Resource Descriptor** + - C Attribute: **NIDMM_ATTR_IO_RESOURCE_DESCRIPTOR** + +lc_calculation_model +-------------------- + + .. py:attribute:: lc_calculation_model + + For the NI 4072 only, specifies the type of algorithm that the measurement processing uses for capacitance and inductance measurements. + + The following table lists the characteristics of this property. + + +----------------+--------------------------+ + | Characteristic | Value | + +================+==========================+ + | Datatype | enums.LCCalculationModel | + +----------------+--------------------------+ + | Permissions | read-write | + +----------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Advanced:Calculation Model** + - C Attribute: **NIDMM_ATTR_LC_CALCULATION_MODEL** + +lc_number_meas_to_average +------------------------- + + .. py:attribute:: lc_number_meas_to_average + + For the NI 4072 only, specifies the number of LC measurements that are averaged to produce one reading. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Number of LC Measurements To Average** + - C Attribute: **NIDMM_ATTR_LC_NUMBER_MEAS_TO_AVERAGE** + +logical_name +------------ + + .. py:attribute:: logical_name + + A string containing the logical name of the instrument. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NIDMM_ATTR_LOGICAL_NAME** + +meas_complete_dest +------------------ + + .. py:attribute:: meas_complete_dest + + Specifies the destination of the measurement complete (MC) signal. + The NI 4050 is not supported. + To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. + + The following table lists the characteristics of this property. + + +----------------+-------------------------------+ + | Characteristic | Value | + +================+===============================+ + | Datatype | enums.MeasurementCompleteDest | + +----------------+-------------------------------+ + | Permissions | read-write | + +----------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Trigger:Measurement Complete Dest** + - C Attribute: **NIDMM_ATTR_MEAS_COMPLETE_DEST** + +number_of_averages +------------------ + + .. py:attribute:: number_of_averages + + Specifies the number of averages to perform in a measurement. For the NI 4070/4071/4072, applies only when the aperture time is not set to AUTO and Auto Zero is ON. The default is 1. + The NI 4050 and NI 4060 are not supported. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Advanced:Number Of Averages** + - C Attribute: **NIDMM_ATTR_NUMBER_OF_AVERAGES** + +offset_comp_ohms +---------------- + + .. py:attribute:: offset_comp_ohms + + For the NI 4070/4071/4072 only, enables or disables offset compensated ohms. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Offset Compensated Ohms** + - C Attribute: **NIDMM_ATTR_OFFSET_COMP_OHMS** + +open_cable_comp_conductance +--------------------------- + + .. py:attribute:: open_cable_comp_conductance + + For the NI 4072 only, specifies the active part (conductance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. + Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Open Cable Compensation Values:Conductance** + - C Attribute: **NIDMM_ATTR_OPEN_CABLE_COMP_CONDUCTANCE** + +open_cable_comp_susceptance +--------------------------- + + .. py:attribute:: open_cable_comp_susceptance + + For the NI 4072 only, specifies the reactive part (susceptance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. + Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Open Cable Compensation Values:Susceptance** + - C Attribute: **NIDMM_ATTR_OPEN_CABLE_COMP_SUSCEPTANCE** + +operation_mode +-------------- + + .. py:attribute:: operation_mode + + Specifies how the NI 4065 and NI 4070/4071/4072 acquire data. When you call :py:meth:`nidmm.Session.configure_measurement_digits`, NI-DMM sets this property to :py:data:`~nidmm.OperationMode.IVIDMM`. When you call :py:meth:`nidmm.Session.configure_waveform_acquisition`, NI-DMM sets this property to :py:data:`~nidmm.OperationMode.WAVEFORM`. If you are programming properties directly, you must set this property before setting other configuration properties. + + The following table lists the characteristics of this property. + + +----------------+---------------------+ + | Characteristic | Value | + +================+=====================+ + | Datatype | enums.OperationMode | + +----------------+---------------------+ + | Permissions | read-write | + +----------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Advanced:Operation Mode** + - C Attribute: **NIDMM_ATTR_OPERATION_MODE** + +powerline_freq +-------------- + + .. py:attribute:: powerline_freq + + Specifies the powerline frequency. The NI 4050 and NI 4060 use this value to select an aperture time to reject powerline noise by selecting the appropriate internal sample clock and filter. The NI 4065 and NI 4070/4071/4072 use this value to select a timebase for setting the :py:attr:`nidmm.Session.aperture_time` property in powerline cycles (PLCs). + After configuring powerline frequency, set the :py:attr:`nidmm.Session.aperture_time_units` property to PLCs. When setting the :py:attr:`nidmm.Session.aperture_time` property, select the number of PLCs for the powerline frequency. For example, if powerline frequency = 50 Hz (or 20ms) and aperture time in PLCs = 5, then aperture time in Seconds = 20ms * 5 PLCs = 100 ms. Similarly, if powerline frequency = 60 Hz (or 16.667 ms) and aperture time in PLCs = 6, then aperture time in Seconds = 16.667 ms * 6 PLCs = 100 ms. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Powerline Frequency** + - C Attribute: **NIDMM_ATTR_POWERLINE_FREQ** + +range +----- + + .. py:attribute:: range + + Specifies the measurement range. Use positive values to represent the absolute value of the maximum expected measurement. The value is in units appropriate for the current value of the :py:attr:`nidmm.Session.method` property. For example, if :py:attr:`nidmm.Session.method` is set to :py:data:`~nidmm.NIDMM_VAL_VOLTS`, the units are volts. + The NI 4050 and NI 4060 only support Auto Range when the trigger and sample trigger is set to IMMEDIATE. + :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ON` -1.0 + NI-DMM performs an Auto Range before acquiring the measurement. + :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_OFF` -2.0 + NI-DMM sets the Range to the current :py:attr:`nidmm.Session.auto_range_value` and uses this range for all subsequent measurements until the measurement configuration is changed. + :py:data:`~nidmm.NIDMM_VAL_AUTO_RANGE_ONCE` -3.0 + NI-DMM performs an Auto Range before acquiring the next measurement. The :py:attr:`nidmm.Session.auto_range_value` is stored and used for all subsequent measurements until the measurement configuration is changed. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Range** + - C Attribute: **NIDMM_ATTR_RANGE** + +resolution_absolute +------------------- + + .. py:attribute:: resolution_absolute + + Specifies the measurement resolution in absolute units. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. + NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` property. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Absolute Resolution** + - C Attribute: **NIDMM_ATTR_RESOLUTION_ABSOLUTE** + +resolution_digits +----------------- + + .. py:attribute:: resolution_digits + + Specifies the measurement resolution in digits. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. + NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the :py:attr:`nidmm.Session.lc_number_meas_to_average` property. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Digits Resolution** + - C Attribute: **NIDMM_ATTR_RESOLUTION_DIGITS** + +sample_count +------------ + + .. py:attribute:: sample_count + + Specifies the number of measurements the DMM takes each time it receives a trigger in a multiple point acquisition. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Multi Point Acquisition:Sample Count** + - C Attribute: **NIDMM_ATTR_SAMPLE_COUNT** + +sample_interval +--------------- + + .. py:attribute:: sample_interval + + Specifies the amount of time in seconds the DMM waits between measurement cycles. This property only applies when the :py:attr:`nidmm.Session.sample_trigger` property is set to INTERVAL. + On the NI 4060, the value for this property is used as the settling time. When this property is set to 0, the NI 4060 does not settle between measurement cycles. The onboard timing resolution is 1 µs on the NI 4060. + The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional delay. On the NI 4065 and NI 4070/4071/4072, the onboard timing resolution is 34.72 ns and the valid range is 0-149 s. + Only positive values are valid when setting the sample interval. + The NI 4050 is not supported. + + The following table lists the characteristics of this property. + + +----------------+-------------------------------------------------------------+ + | Characteristic | Value | + +================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +----------------+-------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Multi Point Acquisition:Sample Interval** + - C Attribute: **NIDMM_ATTR_SAMPLE_INTERVAL** + +sample_trigger +-------------- + + .. py:attribute:: sample_trigger + + Specifies the sample trigger source. + To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. + + The following table lists the characteristics of this property. + + +----------------+---------------------+ + | Characteristic | Value | + +================+=====================+ + | Datatype | enums.SampleTrigger | + +----------------+---------------------+ + | Permissions | read-write | + +----------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Multi Point Acquisition:Sample Trigger** + - C Attribute: **NIDMM_ATTR_SAMPLE_TRIGGER** + +serial_number +------------- + + .. py:attribute:: serial_number + + A string containing the serial number of the instrument. This property corresponds to the serial number label that is attached to most products. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Instrument Serial Number** + - C Attribute: **NIDMM_ATTR_SERIAL_NUMBER** + +settle_time +----------- + + .. py:attribute:: settle_time + + Specifies the settling time in seconds. To override the default settling time, set this property. To return to the default, set this property to :py:data:`~nidmm.NIDMM_VAL_SETTLE_TIME_AUTO` (-1). + The NI 4050 and NI 4060 are not supported. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +----------------+-------------------------------------------------------------+ + | Characteristic | Value | + +================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +----------------+-------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Advanced:Settle Time** + - C Attribute: **NIDMM_ATTR_SETTLE_TIME** + +short_cable_comp_reactance +-------------------------- + + .. py:attribute:: short_cable_comp_reactance + + For the NI 4072 only, represents the reactive part (reactance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. + Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Short Cable Compensation Values:Reactance** + - C Attribute: **NIDMM_ATTR_SHORT_CABLE_COMP_REACTANCE** + +short_cable_comp_resistance +--------------------------- + + .. py:attribute:: short_cable_comp_resistance + + For the NI 4072 only, represents the active part (resistance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. + Changing the method or the range through this property or through :py:meth:`nidmm.Session.configure_measurement_digits` resets the value of this property to the default value. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Capacitance and Inductance:Short Cable Compensation Values:Resistance** + - C Attribute: **NIDMM_ATTR_SHORT_CABLE_COMP_RESISTANCE** + +simulate +-------- + + .. py:attribute:: simulate + + Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call IVI Get and Set methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. + The default value is False (0). Use the :py:meth:`nidmm.Session.__init__` method to override this setting. + Simulate can only be set within the InitWithOptions method. The property value cannot be changed outside of the method. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | bool | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** + - C Attribute: **NIDMM_ATTR_SIMULATE** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + A string containing a description of the specific driver. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Specific Driver Identification:Specific Driver Description** + - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +specific_driver_major_version +----------------------------- + + .. py:attribute:: specific_driver_major_version + + Returns the major version number of this instrument driver. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Version Info:Specific Driver Major Version** + - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_MAJOR_VERSION** + +specific_driver_minor_version +----------------------------- + + .. py:attribute:: specific_driver_minor_version + + The minor version number of this instrument driver. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Version Info:Specific Driver Minor Version** + - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_MINOR_VERSION** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + A string that contains additional version information about this specific instrument driver. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Version Info:Specific Driver Revision** + - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + A string containing the vendor of the specific driver. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Specific Driver Identification:Specific Driver Vendor** + - C Attribute: **NIDMM_ATTR_SPECIFIC_DRIVER_VENDOR** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + A string containing the instrument models supported by the specific driver. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Specific Driver Capabilities:Supported Instrument Models** + - C Attribute: **NIDMM_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +temp_rtd_a +---------- + + .. py:attribute:: temp_rtd_a + + Specifies the Callendar-Van Dusen A coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is 3.9083e-3 (Pt3851). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD A** + - C Attribute: **NIDMM_ATTR_TEMP_RTD_A** + +temp_rtd_b +---------- + + .. py:attribute:: temp_rtd_b + + Specifies the Callendar-Van Dusen B coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -5.775e-7(Pt3851). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD B** + - C Attribute: **NIDMM_ATTR_TEMP_RTD_B** + +temp_rtd_c +---------- + + .. py:attribute:: temp_rtd_c + + Specifies the Callendar-Van Dusen C coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -4.183e-12(Pt3851). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD C** + - C Attribute: **NIDMM_ATTR_TEMP_RTD_C** + +temp_rtd_res +------------ + + .. py:attribute:: temp_rtd_res + + Specifies the RTD resistance at 0 degrees Celsius. This applies to all supported RTDs, including custom RTDs. The default value is 100 (?). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD Resistance** + - C Attribute: **NIDMM_ATTR_TEMP_RTD_RES** + +temp_rtd_type +------------- + + .. py:attribute:: temp_rtd_type + + Specifies the type of RTD used to measure temperature. The default value is :py:data:`~nidmm.RTDType.PT3851`. + Refer to the :py:attr:`nidmm.Session.temp_rtd_type` topic in the NI Digital Multimeters Help for additional information about defined values. + + The following table lists the characteristics of this property. + + +----------------+---------------+ + | Characteristic | Value | + +================+===============+ + | Datatype | enums.RTDType | + +----------------+---------------+ + | Permissions | read-write | + +----------------+---------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Resistance Temperature Detector:RTD Type** + - C Attribute: **NIDMM_ATTR_TEMP_RTD_TYPE** + +temp_tc_fixed_ref_junc +---------------------- + + .. py:attribute:: temp_tc_fixed_ref_junc + + Specifies the reference junction temperature when a fixed reference junction is used to take a thermocouple measurement. The default value is 25.0 (°C). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermocouple:Fixed Reference Junction** + - C Attribute: **NIDMM_ATTR_TEMP_TC_FIXED_REF_JUNC** + +temp_tc_ref_junc_type +--------------------- + + .. py:attribute:: temp_tc_ref_junc_type + + Specifies the type of reference junction to be used in the reference junction compensation of a thermocouple. The only supported value, :py:data:`~nidmm.ThermocoupleReferenceJunctionType.FIXED`, is fixed. + + The following table lists the characteristics of this property. + + +----------------+-----------------------------------------+ + | Characteristic | Value | + +================+=========================================+ + | Datatype | enums.ThermocoupleReferenceJunctionType | + +----------------+-----------------------------------------+ + | Permissions | read-write | + +----------------+-----------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermocouple:Reference Junction Type** + - C Attribute: **NIDMM_ATTR_TEMP_TC_REF_JUNC_TYPE** + +temp_tc_type +------------ + + .. py:attribute:: temp_tc_type + + Specifies the type of thermocouple used to measure the temperature. The default value is :py:data:`~nidmm.ThermocoupleType.J`. + + The following table lists the characteristics of this property. + + +----------------+------------------------+ + | Characteristic | Value | + +================+========================+ + | Datatype | enums.ThermocoupleType | + +----------------+------------------------+ + | Permissions | read-write | + +----------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermocouple:Thermocouple Type** + - C Attribute: **NIDMM_ATTR_TEMP_TC_TYPE** + +temp_thermistor_a +----------------- + + .. py:attribute:: temp_thermistor_a + + Specifies the Steinhart-Hart A coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 0.0010295 (44006). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor A** + - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_A** + +temp_thermistor_b +----------------- + + .. py:attribute:: temp_thermistor_b + + Specifies the Steinhart-Hart B coefficient for thermistor scaling when the Thermistor Type proerty is set to Custom. The default value is 0.0002391 (44006). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor B** + - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_B** + +temp_thermistor_c +----------------- + + .. py:attribute:: temp_thermistor_c + + Specifies the Steinhart-Hart C coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 1.568e-7 (44006). + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor C** + - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_C** + +temp_thermistor_type +-------------------- + + .. py:attribute:: temp_thermistor_type + + Specifies the type of thermistor used to measure the temperature. The default value is :py:data:`~nidmm.ThermistorType.THERMISTOR_44006`. + Refer to the :py:attr:`nidmm.Session.temp_thermistor_type` topic in the NI Digital Multimeters Help for additional information about defined values. + + The following table lists the characteristics of this property. + + +----------------+----------------------+ + | Characteristic | Value | + +================+======================+ + | Datatype | enums.ThermistorType | + +----------------+----------------------+ + | Permissions | read-write | + +----------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Thermistor:Thermistor Type** + - C Attribute: **NIDMM_ATTR_TEMP_THERMISTOR_TYPE** + +temp_transducer_type +-------------------- + + .. py:attribute:: temp_transducer_type + + Specifies the type of device used to measure the temperature. The default value is :py:data:`~nidmm.NIDMM_VAL_4_THERMOCOUPLE`. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +----------------+----------------------+ + | Characteristic | Value | + +================+======================+ + | Datatype | enums.TransducerType | + +----------------+----------------------+ + | Permissions | read-write | + +----------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Configuration:Measurement Options:Temperature:Transducer Type** + - C Attribute: **NIDMM_ATTR_TEMP_TRANSDUCER_TYPE** + +trigger_count +------------- + + .. py:attribute:: trigger_count + + Specifies the number of triggers the DMM receives before returning to the Idle state. + This property can be set to any positive ViInt32 value for the NI 4065 and NI 4070/4071/4072. + The NI 4050 and NI 4060 support this property being set to 1. + Refer to the Multiple Point Acquisitions section of the NI Digital Multimeters Help for more information. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Multi Point Acquisition:Trigger Count** + - C Attribute: **NIDMM_ATTR_TRIGGER_COUNT** + +trigger_delay +------------- + + .. py:attribute:: trigger_delay + + Specifies the time (in seconds) that the DMM waits after it has received a trigger before taking a measurement. The default value is AUTO DELAY (-1), which means that the DMM waits an appropriate settling time before taking the measurement. (-1) signifies that AUTO DELAY is on, and (-2) signifies that AUTO DELAY is off. + The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional settling time. For the The NI 4065 and NI 4070/4071/4072, the valid range for Trigger Delay is AUTO DELAY (-1) or 0.0-149.0 seconds and the onboard timing resolution is 34.72 ns. + On the NI 4060, if this property is set to 0, the DMM does not settle before taking the measurement. On the NI 4060, the valid range for AUTO DELAY (-1) is 0.0-12.0 seconds and the onboard timing resolution is 100 ms. + When using the NI 4050, this property must be set to AUTO DELAY (-1). + Use positive values to set the trigger delay in seconds. + Valid Range: :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` (-1.0), 0.0-12.0 seconds (NI 4060 only) + Default Value: :py:data:`~nidmm.NIDMM_VAL_AUTO_DELAY` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +----------------+-------------------------------------------------------------+ + | Characteristic | Value | + +================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +----------------+-------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Trigger:Trigger Delay** + - C Attribute: **NIDMM_ATTR_TRIGGER_DELAY** + +trigger_source +-------------- + + .. py:attribute:: trigger_source + + Specifies the trigger source. When :py:meth:`nidmm.Session._initiate` is called, the DMM waits for the trigger specified with this property. After it receives the trigger, the DMM waits the length of time specified with the :py:attr:`nidmm.Session.trigger_delay` property. The DMM then takes a measurement. + This property is not supported on the NI 4050. + To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. + + The following table lists the characteristics of this property. + + +----------------+---------------------+ + | Characteristic | Value | + +================+=====================+ + | Datatype | enums.TriggerSource | + +----------------+---------------------+ + | Permissions | read-write | + +----------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Trigger:Trigger Source** + - C Attribute: **NIDMM_ATTR_TRIGGER_SOURCE** + +waveform_coupling +----------------- + + .. py:attribute:: waveform_coupling + + For the NI 4070/4071/4072 only, specifies the coupling during a waveform acquisition. + + The following table lists the characteristics of this property. + + +----------------+------------------------+ + | Characteristic | Value | + +================+========================+ + | Datatype | enums.WaveformCoupling | + +----------------+------------------------+ + | Permissions | read-write | + +----------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Acquisition:Waveform Coupling** + - C Attribute: **NIDMM_ATTR_WAVEFORM_COUPLING** + +waveform_points +--------------- + + .. py:attribute:: waveform_points + + For the NI 4070/4071/4072 only, specifies the number of points to acquire in a waveform acquisition. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | int | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Acquisition:Waveform Points** + - C Attribute: **NIDMM_ATTR_WAVEFORM_POINTS** + +waveform_rate +------------- + + .. py:attribute:: waveform_rate + + For the NI 4070/4071/4072 only, specifies the rate of the waveform acquisition in Samples per second (S/s). The valid Range is 10.0-1,800,000 S/s. Values are coerced to the closest integer divisor of 1,800,000. The default value is 1,800,000. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | float | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Acquisition:Waveform Rate** + - C Attribute: **NIDMM_ATTR_WAVEFORM_RATE** + + +.. contents:: Session diff --git a/docs/nidmm/conf.py b/docs/nidmm/conf.py new file mode 100644 index 0000000000..28f34b549d --- /dev/null +++ b/docs/nidmm/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-DMM Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-DMM Python API' +copyright = '2017-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIDMMPythonAPI.tex', 'NI-DMM Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nidmmpythonapi', 'NI-DMM Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIDMMPythonAPI', 'NI-DMM Python API Documentation', + author, 'NIDMMPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nidmm/enums.rst b/docs/nidmm/enums.rst new file mode 100644 index 0000000000..3241e06231 --- /dev/null +++ b/docs/nidmm/enums.rst @@ -0,0 +1,1182 @@ +Enums +===== + +Enums used in NI-DMM + +.. py:currentmodule:: nidmm + + +ADCCalibration +-------------- + +.. py:class:: ADCCalibration + + .. py:attribute:: ADCCalibration.AUTO + + + + The DMM enables or disables ADC calibration for you. + + + + + + .. py:attribute:: ADCCalibration.OFF + + + + The DMM does not compensate for changes to the gain. + + + + + + .. py:attribute:: ADCCalibration.ON + + + + The DMM measures an internal reference to calculate the correct gain for the measurement. + + + + + +AcquisitionStatus +----------------- + +.. py:class:: AcquisitionStatus + + .. py:attribute:: AcquisitionStatus.RUNNING + + + + Running + + + + + + .. py:attribute:: AcquisitionStatus.FINISHED_WITH_BACKLOG + + + + Finished with **Backlog** + + + + + + .. py:attribute:: AcquisitionStatus.FINISHED_WITH_NO_BACKLOG + + + + Finished with no **Backlog** + + + + + + .. py:attribute:: AcquisitionStatus.PAUSED + + + + Paused + + + + + + .. py:attribute:: AcquisitionStatus.NO_ACQUISITION_IN_PROGRESS + + + + No acquisition in progress + + + + + +ApertureTimeUnits +----------------- + +.. py:class:: ApertureTimeUnits + + .. py:attribute:: ApertureTimeUnits.SECONDS + + + + Seconds + + + + + + .. py:attribute:: ApertureTimeUnits.POWER_LINE_CYCLES + + + + Powerline Cycles + + + + + +AutoZero +-------- + +.. py:class:: AutoZero + + .. py:attribute:: AutoZero.AUTO + + + + The drivers chooses the AutoZero setting based on the configured method and resolution. + + + + + + .. py:attribute:: AutoZero.OFF + + + + Disables AutoZero. + + + + + + .. py:attribute:: AutoZero.ON + + + + The DMM internally disconnects the input signal following each measurement and takes a zero reading. It then subtracts the zero reading from the preceding reading. + + + + + + .. py:attribute:: AutoZero.ONCE + + + + The DMM internally disconnects the input signal for the first measurement and takes a zero reading. It then subtracts the zero reading from the first reading and the following readings. + + + + + +CableCompensationType +--------------------- + +.. py:class:: CableCompensationType + + .. py:attribute:: CableCompensationType.NONE + + + + No Cable Compensation + + + + + + .. py:attribute:: CableCompensationType.OPEN + + + + Open Cable Compensation + + + + + + .. py:attribute:: CableCompensationType.SHORT + + + + Short Cable Compensation + + + + + + .. py:attribute:: CableCompensationType.OPEN_AND_SHORT + + + + Open and Short Cable Compensation + + + + + +DCNoiseRejection +---------------- + +.. py:class:: DCNoiseRejection + + .. py:attribute:: DCNoiseRejection.AUTO + + + + The driver chooses the DC noise rejection setting based on the configured method and resolution. + + + + + + .. py:attribute:: DCNoiseRejection.NORMAL + + + + NI-DMM weighs all samples equally. + + + + + + .. py:attribute:: DCNoiseRejection.SECOND_ORDER + + + + NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a triangular weighing method. + + + + + + .. py:attribute:: DCNoiseRejection.HIGH_ORDER + + + + NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a bell-curve weighing method. + + + + + +Function +-------- + +.. py:class:: Function + + .. py:attribute:: Function.DC_VOLTS + + + + DC Voltage + + + + + + .. py:attribute:: Function.AC_VOLTS + + + + AC Voltage + + + + + + .. py:attribute:: Function.DC_CURRENT + + + + DC Current + + + + + + .. py:attribute:: Function.AC_CURRENT + + + + AC Current + + + + + + .. py:attribute:: Function.TWO_WIRE_RES + + + + 2-Wire Resistance + + + + + + .. py:attribute:: Function.FOUR_WIRE_RES + + + + 4-Wire Resistance + + + + + + .. py:attribute:: Function.FREQ + + + + Frequency + + + + + + .. py:attribute:: Function.PERIOD + + + + Period + + + + + + .. py:attribute:: Function.TEMPERATURE + + + + NI 4065, NI 4070/4071/4072, and NI 4080/4081/4182 supported. + + + + + + .. py:attribute:: Function.AC_VOLTS_DC_COUPLED + + + + AC Voltage with DC Coupling + + + + + + .. py:attribute:: Function.DIODE + + + + Diode + + + + + + .. py:attribute:: Function.WAVEFORM_VOLTAGE + + + + Waveform voltage + + + + + + .. py:attribute:: Function.WAVEFORM_CURRENT + + + + Waveform current + + + + + + .. py:attribute:: Function.CAPACITANCE + + + + Capacitance + + + + + + .. py:attribute:: Function.INDUCTANCE + + + + Inductance + + + + + +LCCalculationModel +------------------ + +.. py:class:: LCCalculationModel + + .. py:attribute:: LCCalculationModel.AUTO + + + + NI-DMM chooses the algorithm based on method and range + + + + + + .. py:attribute:: LCCalculationModel.SERIES + + + + NI-DMM uses the series impedance model to calculate capacitance and inductance + + + + + + .. py:attribute:: LCCalculationModel.PARALLEL + + + + NI-DMM uses the parallel admittance model to calculate capacitance and inductance + + + + + +MeasurementCompleteDest +----------------------- + +.. py:class:: MeasurementCompleteDest + + .. py:attribute:: MeasurementCompleteDest.NONE + + + + No Trigger + + + + + + .. py:attribute:: MeasurementCompleteDest.EXTERNAL + + + + AUX I/O Connector + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG0 + + + + PXI Trigger Line 0 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG1 + + + + PXI Trigger Line 1 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG2 + + + + PXI Trigger Line 2 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG3 + + + + PXI Trigger Line 3 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG4 + + + + PXI Trigger Line 4 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG5 + + + + PXI Trigger Line 5 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG6 + + + + PXI Trigger Line 6 + + + + + + .. py:attribute:: MeasurementCompleteDest.PXI_TRIG7 + + + + PXI Trigger Line 7 + + + + + + .. py:attribute:: MeasurementCompleteDest.LBR_TRIG0 + + + + Internal Trigger Line of a PXI/SCXI Combination Chassis + + + + + +OperationMode +------------- + +.. py:class:: OperationMode + + .. py:attribute:: OperationMode.IVIDMM + + + + IviDmm Mode + + + + + + .. py:attribute:: OperationMode.WAVEFORM + + + + Waveform acquisition mode + + + + + +RTDType +------- + +.. py:class:: RTDType + + .. py:attribute:: RTDType.CUSTOM + + + + Performs Callendar-Van Dusen RTD scaling with the user-specified A, B, + and C coefficients. + + + + + + .. py:attribute:: RTDType.PT3750 + + + + Performs scaling for a Pt 3750 RTD. + + + + + + .. py:attribute:: RTDType.PT3851 + + + + Performs scaling for a Pt 3851 RTD. + + + + + + .. py:attribute:: RTDType.PT3911 + + + + Performs scaling for a Pt 3911 RTD. + + + + + + .. py:attribute:: RTDType.PT3916 + + + + Performs scaling for a Pt 3916 RTD. + + + + + + .. py:attribute:: RTDType.PT3920 + + + + Performs scaling for a Pt 3920 RTD. + + + + + + .. py:attribute:: RTDType.PT3928 + + + + Performs scaling for a Pt 3928 RTD. + + + + + +SampleTrigger +------------- + +.. py:class:: SampleTrigger + + .. py:attribute:: SampleTrigger.IMMEDIATE + + + + No Trigger + + + + + + .. py:attribute:: SampleTrigger.EXTERNAL + + + + AUX I/O Connector Trigger Line 0 + + + + + + .. py:attribute:: SampleTrigger.SOFTWARE_TRIG + + + + Software Trigger + + + + + + .. py:attribute:: SampleTrigger.INTERVAL + + + + Interval Trigger + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG0 + + + + PXI Trigger Line 0 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG1 + + + + PXI Trigger Line 1 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG2 + + + + PXI Trigger Line 2 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG3 + + + + PXI Trigger Line 3 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG4 + + + + PXI Trigger Line 4 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG5 + + + + PXI Trigger Line 5 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG6 + + + + PXI Trigger Line 6 + + + + + + .. py:attribute:: SampleTrigger.PXI_TRIG7 + + + + PXI Trigger Line 7 + + + + + + .. py:attribute:: SampleTrigger.PXI_STAR + + + + PXI Star Trigger Line + + + + + + .. py:attribute:: SampleTrigger.AUX_TRIG1 + + + + AUX I/0 Connector Trigger Line 1 + + + + + + .. py:attribute:: SampleTrigger.LBR_TRIG1 + + + + Internal Trigger Line of a PXI/SCXI Combination Chassis + + + + + +ThermistorType +-------------- + +.. py:class:: ThermistorType + + .. py:attribute:: ThermistorType.CUSTOM + + + + Custom + + + + + + .. py:attribute:: ThermistorType.THERMISTOR_44004 + + + + 44004 + + + + + + .. py:attribute:: ThermistorType.THERMISTOR_44006 + + + + 44006 + + + + + + .. py:attribute:: ThermistorType.THERMISTOR_44007 + + + + 44007 + + + + + +ThermocoupleReferenceJunctionType +--------------------------------- + +.. py:class:: ThermocoupleReferenceJunctionType + + .. py:attribute:: ThermocoupleReferenceJunctionType.FIXED + + + + Thermocouple reference juction is fixed at the user-specified + temperature. + + + + + +ThermocoupleType +---------------- + +.. py:class:: ThermocoupleType + + .. py:attribute:: ThermocoupleType.B + + + + Thermocouple type B + + + + + + .. py:attribute:: ThermocoupleType.E + + + + Thermocouple type E + + + + + + .. py:attribute:: ThermocoupleType.J + + + + Thermocouple type J + + + + + + .. py:attribute:: ThermocoupleType.K + + + + Thermocouple type K + + + + + + .. py:attribute:: ThermocoupleType.N + + + + Thermocouple type N + + + + + + .. py:attribute:: ThermocoupleType.R + + + + Thermocouple type R + + + + + + .. py:attribute:: ThermocoupleType.S + + + + Thermocouple type S + + + + + + .. py:attribute:: ThermocoupleType.T + + + + Thermocouple type T + + + + + +TransducerType +-------------- + +.. py:class:: TransducerType + + .. py:attribute:: TransducerType.THERMOCOUPLE + + + + Thermocouple + + + + + + .. py:attribute:: TransducerType.THERMISTOR + + + + Thermistor + + + + + + .. py:attribute:: TransducerType.TWO_WIRE_RTD + + + + 2-wire RTD + + + + + + .. py:attribute:: TransducerType.FOUR_WIRE_RTD + + + + 4-wire RTD + + + + + +TriggerSource +------------- + +.. py:class:: TriggerSource + + .. py:attribute:: TriggerSource.IMMEDIATE + + + + No Trigger + + + + + + .. py:attribute:: TriggerSource.EXTERNAL + + + + AUX I/O Connector Trigger Line 0 + + + + + + .. py:attribute:: TriggerSource.SOFTWARE_TRIG + + + + Software Trigger + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG0 + + + + PXI Trigger Line 0 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG1 + + + + PXI Trigger Line 1 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG2 + + + + PXI Trigger Line 2 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG3 + + + + PXI Trigger Line 3 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG4 + + + + PXI Trigger Line 4 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG5 + + + + PXI Trigger Line 5 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG6 + + + + PXI Trigger Line 6 + + + + + + .. py:attribute:: TriggerSource.PXI_TRIG7 + + + + PXI Trigger Line 7 + + + + + + .. py:attribute:: TriggerSource.PXI_STAR + + + + PXI Star Trigger Line + + + + + + .. py:attribute:: TriggerSource.AUX_TRIG1 + + + + AUX I/O Connector Trigger Line 1 + + + + + + .. py:attribute:: TriggerSource.LBR_TRIG1 + + + + Internal Trigger Line of a PXI/SCXI Combination Chassis + + + + + +WaveformCoupling +---------------- + +.. py:class:: WaveformCoupling + + .. py:attribute:: WaveformCoupling.AC + + + + AC Coupled + + + + + + .. py:attribute:: WaveformCoupling.DC + + + + DC Coupled + + + + + + + diff --git a/docs/nidmm/errors.rst b/docs/nidmm/errors.rst new file mode 100644 index 0000000000..beb02a179c --- /dev/null +++ b/docs/nidmm/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nidmm.errors + + .. exception:: Error + + Base exception type that all NI-DMM exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: DriverError + + An error originating from the NI-DMM driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-DMM driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: DriverTooNewError + + An error due to the NI-DMM driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nidmm.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: nidmm.errors + + .. exception:: DriverWarning + + A warning originating from the NI-DMM driver + + + diff --git a/docs/nidmm/examples.rst b/docs/nidmm/examples.rst new file mode 100644 index 0000000000..8aeb38ce95 --- /dev/null +++ b/docs/nidmm/examples.rst @@ -0,0 +1,131 @@ +Examples +======== + +`You can download all nidmm examples for latest version here `_ + +nidmm_cont_acq_chart_multiple_samples.py +---------------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_cont_acq_chart_multiple_samples.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_cont_acq_chart_multiple_samples.py) `_ + +nidmm_cont_acq_multiple_samples_ext_trig.py +------------------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_cont_acq_multiple_samples_ext_trig.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_cont_acq_multiple_samples_ext_trig.py) `_ + +nidmm_diode_test.py +------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_diode_test.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_diode_test.py) `_ + +nidmm_fetch_waveform.py +----------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_fetch_waveform.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_fetch_waveform.py) `_ + +nidmm_improve_dc_noise_rejection.py +----------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_improve_dc_noise_rejection.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_improve_dc_noise_rejection.py) `_ + +nidmm_max_dc_reading_rate_at_7_5_digits.py +------------------------------------------ + +.. literalinclude:: ../../src/nidmm/examples/nidmm_max_dc_reading_rate_at_7_5_digits.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_max_dc_reading_rate_at_7_5_digits.py) `_ + +nidmm_measure_ac_volts.py +------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_ac_volts.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measure_ac_volts.py) `_ + +nidmm_measure_capacitance.py +---------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_capacitance.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measure_capacitance.py) `_ + +nidmm_measure_frequency.py +-------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_frequency.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measure_frequency.py) `_ + +nidmm_measure_temperature_rtd.py +-------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_temperature_rtd.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measure_temperature_rtd.py) `_ + +nidmm_measure_temperature_thermistor.py +--------------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_temperature_thermistor.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measure_temperature_thermistor.py) `_ + +nidmm_measure_temperature_thermocouple.py +----------------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measure_temperature_thermocouple.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measure_temperature_thermocouple.py) `_ + +nidmm_measurement.py +-------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_measurement.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_measurement.py) `_ + +nidmm_multi_point_measurement.py +-------------------------------- + +.. literalinclude:: ../../src/nidmm/examples/nidmm_multi_point_measurement.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidmm_multi_point_measurement.py) `_ + diff --git a/docs/nidmm/grpc_session_options.rst b/docs/nidmm/grpc_session_options.rst new file mode 100644 index 0000000000..97a6f481be --- /dev/null +++ b/docs/nidmm/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-DMM over gRPC + +.. py:currentmodule:: nidmm + + + +Creating a gRPC channel +----------------------- + +Using NI-DMM over gRPC requires the ``grpc`` extra:: + + $ python -m pip install nidmm[grpc] + +Every NI-DMM gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`nidmm.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-DMM runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import nidmm + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = nidmm.GrpcSessionOptions(channel, '') + with nidmm.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`nidmm.SessionInitializationBehavior` diff --git a/docs/nidmm/index.rst b/docs/nidmm/index.rst new file mode 100644 index 0000000000..05d0f629db --- /dev/null +++ b/docs/nidmm/index.rst @@ -0,0 +1,31 @@ + +NI-DMM Python API Documentation +=============================== + +.. include:: about_nidmm.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nidmm + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nidmm/installation.inc b/docs/nidmm/installation.inc new file mode 100644 index 0000000000..6f6988efe4 --- /dev/null +++ b/docs/nidmm/installation.inc @@ -0,0 +1,13 @@ + +.. _nidmm_installation-section: + +Installation +------------ + +As a prerequisite to using the **nidmm** module, you must install the NI-DMM runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-DMM**) can be installed with `pip `_:: + + $ python -m pip install nidmm + + diff --git a/docs/nidmm/nidmm.rst b/docs/nidmm/nidmm.rst new file mode 100644 index 0000000000..671834d1c3 --- /dev/null +++ b/docs/nidmm/nidmm.rst @@ -0,0 +1,9 @@ +nidmm module +============ + +.. include:: installation.inc + +.. include:: ../_static/nidmm_usage.inc + +.. include:: toc.inc + diff --git a/docs/nidmm/status.inc b/docs/nidmm/status.inc new file mode 100644 index 0000000000..0105fcaac5 --- /dev/null +++ b/docs/nidmm/status.inc @@ -0,0 +1,46 @@ + +NI-DMM Python API Status +------------------------ + ++-------------------------------+----------------------+ +| NI-DMM (nidmm) | | ++===============================+======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+----------------------+ +| PyPI Version | |nidmmLatestVersion| | ++-------------------------------+----------------------+ +| Supported Python Version | |nidmmPythonVersion| | ++-------------------------------+----------------------+ +| Documentation | |nidmmDocs| | ++-------------------------------+----------------------+ +| Open Issues | |nidmmOpenIssues| | ++-------------------------------+----------------------+ +| Open Pull Requests | |nidmmOpenPRs| | ++-------------------------------+----------------------+ + + +.. |nidmmLatestVersion| image:: http://img.shields.io/pypi/v/nidmm.svg + :alt: Latest NI-DMM Version + :target: http://pypi.python.org/pypi/nidmm + + +.. |nidmmPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidmm.svg + :alt: NI-DMM supported Python versions + :target: http://pypi.python.org/pypi/nidmm + + +.. |nidmmDocs| image:: https://readthedocs.org/projects/nidmm/badge/?version=latest + :alt: NI-DMM Python API Documentation Status + :target: https://nidmm.readthedocs.io/en/latest + + +.. |nidmmOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidmm.svg + :alt: Open Issues + Pull Requests for NI-DMM + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidmm + + +.. |nidmmOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidmm.svg + :alt: Pull Requests for NI-DMM + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidmm + + diff --git a/docs/nidmm/toc.inc b/docs/nidmm/toc.inc new file mode 100644 index 0000000000..df05959018 --- /dev/null +++ b/docs/nidmm/toc.inc @@ -0,0 +1,11 @@ +API Reference +-------------- + +.. toctree:: + + class + enums + errors + examples + grpc_session_options + diff --git a/docs/nifgen/.readthedocs.yaml b/docs/nifgen/.readthedocs.yaml new file mode 100644 index 0000000000..f0502718c0 --- /dev/null +++ b/docs/nifgen/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nifgen/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nifgen/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nifgen/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nifgen/about_nifgen.inc b/docs/nifgen/about_nifgen.inc new file mode 100644 index 0000000000..d2c4095c7d --- /dev/null +++ b/docs/nifgen/about_nifgen.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nifgen** module provides a Python API for NI-FGEN. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nifgen** supports all the Operating Systems supported by NI-FGEN. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nifgen**. + diff --git a/docs/nifgen/class.rst b/docs/nifgen/class.rst new file mode 100644 index 0000000000..bafcc8a63e --- /dev/null +++ b/docs/nifgen/class.rst @@ -0,0 +1,6185 @@ +.. py:module:: nifgen + +Session +======= + +.. py:class:: Session(self, resource_name, channel_name=None, reset_device=False, options={}, *, grpc_options=None) + + + + Creates and returns a new NI-FGEN session to the specified channel of a + waveform generator that is used in all subsequent NI-FGEN method + calls. + + + + + + :param resource_name: + + + .. caution:: Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. + However, all IVI names, such as logical names, are case-sensitive. If + you use logical names, driver session names, or virtual names in your + program, you must ensure that the name you use matches the name in the + IVI Configuration Store file exactly, without any variations in the case + of the characters. + + | Specifies the resource name of the device to initialize. + + For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is + the device number assigned by MAX, as shown in Example 1. + + For NI-DAQmx devices, the syntax is just the device name specified in + MAX, as shown in Example 2. Typical default names for NI-DAQmx devices + in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by + right-clicking on the name in MAX and entering a new name. + + An alternate syntax for NI-DAQmx devices consists of DAQ::\ *NI-DAQmx + device name*, as shown in Example 3. This naming convention allows for + the use of an NI-DAQmx device in an application that was originally + designed for a Traditional NI-DAQ device. For example, if the + application expects DAQ::1, you can rename the NI-DAQmx device to 1 in + MAX and pass in DAQ::1 for the resource name, as shown in Example 4. + + If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already + exists with that same name, the NI-DAQmx device is matched first. + + You can also pass in the name of an IVI logical name or an IVI virtual + name configured with the IVI Configuration utility, as shown in Example + 5. A logical name identifies a particular virtual instrument. A virtual + name identifies a specific device and specifies the initial settings for + the session. + + +-----------+--------------------------------------+------------------------+---------------------------------+ + | Example # | Device Type | Syntax | Variable | + +===========+======================================+========================+=================================+ + | 1 | Traditional NI-DAQ device | DAQ::\ *1* | (*1* = device number) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 2 | NI-DAQmx device | *myDAQmxDevice* | (*myDAQmxDevice* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 3 | NI-DAQmx device | DAQ::\ *myDAQmxDevice* | (*myDAQmxDevice* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 4 | NI-DAQmx device | DAQ::\ *2* | (*2* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 5 | IVI logical name or IVI virtual name | *myLogicalName* | (*myLogicalName* = name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + + + :type resource_name: str + + :param channel_name: + + + Specifies the channel that this VI uses. + + **Default Value**: "0" + + + + + :type channel_name: str, list, range, tuple + + :param reset_device: + + + Specifies whether you want to reset the device during the initialization + procedure. True specifies that the device is reset and performs the + same method as the :py:meth:`nifgen.Session.Reset` method. + + ****Defined Values**** + + **Default Value**: False + + +-------+---------------------+ + | True | Reset device | + +-------+---------------------+ + | False | Do not reset device | + +-------+---------------------+ + + + :type reset_device: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: nifgen.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: abort() + + Aborts any previously initiated signal generation. Call the + :py:meth:`nifgen.Session.initiate` method to cause the signal generator to + produce a signal again. + + + + + +allocate_named_waveform +----------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: allocate_named_waveform(waveform_name, waveform_size) + + Specifies the size of a named waveform up front so that it can be + allocated in onboard memory before loading the associated data. Data can + then be loaded in smaller blocks with the niFgen Write (Binary16) + Waveform methods. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].allocate_named_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.allocate_named_waveform` + + + :param waveform_name: + + + Specifies the name to associate with the allocated waveform. + + + + + :type waveform_name: str + :param waveform_size: + + + Specifies the size of the waveform to allocate in samples. + + **Default Value**: "4096" + + + + + :type waveform_size: int + +allocate_waveform +----------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: allocate_waveform(waveform_size) + + Specifies the size of a waveform so that it can be allocated in onboard + memory before loading the associated data. Data can then be loaded in + smaller blocks with the Write Binary 16 Waveform methods. + + + + .. note:: The signal generator must not be in the Generating state when you call + this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].allocate_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.allocate_waveform` + + + :param waveform_size: + + + Specifies, in samples, the size of the waveform to allocate. + + + + + :type waveform_size: int + + :rtype: int + :return: + + + The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + + + + +clear_arb_memory +---------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: clear_arb_memory() + + Removes all previously created arbitrary waveforms, sequences, and + scripts from the signal generator memory and invalidates all waveform + handles, sequence handles, and waveform names. + + + + .. note:: The signal generator must not be in the Generating state when you + call this method. + + + +clear_arb_sequence +------------------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: clear_arb_sequence(sequence_handle) + + Removes a previously created arbitrary sequence from the signal + generator memory and invalidates the sequence handle. + + + + .. note:: The signal generator must not be in the Generating state when you + call this method. + + + + :param sequence_handle: + + + Specifies the handle of the arbitrary sequence that you want the signal + generator to remove. You can create an arbitrary sequence using the + :py:meth:`nifgen.Session.create_arb_sequence` or :py:meth:`nifgen.Session.create_advanced_arb_sequence` method. + These methods return a handle that you use to identify the sequence. + + | **Defined Value**: + | :py:data:`~nifgen.NIFGEN_VAL_ALL_SEQUENCES`—Remove all sequences from the signal + generator + + **Default Value**: None + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type sequence_handle: int + +clear_freq_list +--------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: clear_freq_list(frequency_list_handle) + + Removes a previously created frequency list from the signal generator + memory and invalidates the frequency list handle. + + + + .. note:: The signal generator must not be in the Generating state when you + call this method. + + + + :param frequency_list_handle: + + + Specifies the handle of the frequency list you want the signal generator + to remove. You create multiple frequency lists using + :py:meth:`nifgen.Session.create_freq_list`. :py:meth:`nifgen.Session.create_freq_list` returns a handle that you + use to identify each list. Specify a value of -1 to clear all frequency + lists. + + **Defined Value** + + :py:data:`~nifgen.NIFGEN_VAL_ALL_FLISTS`—Remove all frequency lists from the signal + generator. + + **Default Value**: None + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type frequency_list_handle: int + +clear_user_standard_waveform +---------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: clear_user_standard_waveform() + + Clears the user-defined waveform created by the + :py:meth:`nifgen.Session.define_user_standard_waveform` method. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_user_standard_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.clear_user_standard_waveform` + + +close +----- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: close() + + Performs the following operations: + + - Closes the instrument I/O session. + - Destroys the NI-FGEN session and all of its properties. + - Deallocates any memory resources NI-FGEN uses. + + Not all signal routes established by calling the :py:meth:`nifgen.Session.ExportSignal` + and :py:meth:`nifgen.Session.RouteSignalOut` methods are released when the NI-FGEN + session is closed. The following table shows what happens to a signal + route on your device when you call the :py:meth:`nifgen.Session._close` method. + + +--------------------+-------------------+------------------+ + | Routes To | NI 5401/5411/5431 | Other Devices | + +====================+===================+==================+ + | Front Panel | Remain connected | Remain connected | + +--------------------+-------------------+------------------+ + | RTSI/PXI Backplane | Remain connected | Disconnected | + +--------------------+-------------------+------------------+ + + .. note:: After calling :py:meth:`nifgen.Session._close`, you cannot use NI-FGEN again until you + call the :py:meth:`nifgen.Session.init` or :py:meth:`nifgen.Session.InitWithOptions` methods. + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: commit() + + Causes a transition to the Committed state. This method verifies + property values, reserves the device, and commits the property values + to the device. If the property values are all valid, NI-FGEN sets the + device hardware configuration to match the session configuration. This + method does not support the NI 5401/5404/5411/5431 signal generators. + + In the Committed state, you can load waveforms, scripts, and sequences + into memory. If any properties are changed, NI-FGEN implicitly + transitions back to the Idle state, where you can program all session + properties before applying them to the device. This method has no + effect if the device is already in the Committed or Generating state and + returns a successful status value. + + Calling this VI before the niFgen Initiate Generation VI is optional but + has the following benefits: + + - Routes are committed, so signals are exported or imported. + - Any Reference Clock and external clock circuits are phase-locked. + - A subsequent :py:meth:`nifgen.Session.initiate` method can run faster + because the device is already configured. + + + + + +configure_arb_sequence +---------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: configure_arb_sequence(sequence_handle, gain, offset) + + Configures the signal generator properties that affect arbitrary + sequence generation. Sets the :py:attr:`nifgen.Session.arb_sequence_handle`, + :py:attr:`nifgen.Session.arb_gain`, and :py:attr:`nifgen.Session.arb_offset` properties. + + + + .. note:: The signal generator must not be in the Generating state when you call + this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_arb_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_arb_sequence` + + + :param sequence_handle: + + + Specifies the handle of the arbitrary sequence that you want the signal + generator to produce. NI-FGEN sets the + :py:attr:`nifgen.Session.arb_sequence_handle` property to this value. You can + create an arbitrary sequence using the :py:meth:`nifgen.Session.create_arb_sequence` or + :py:meth:`nifgen.Session.create_advanced_arb_sequence` method. These methods return a + handle that you use to identify the sequence. + + **Default Value**: None + + + + + :type sequence_handle: int + :param gain: + + + Specifies the factor by which the signal generator scales the arbitrary + waveforms in the sequence. When you create an arbitrary waveform, you + must first normalize the data points to a range of –1.00 to +1.00. You + can use this parameter to scale the waveform to other ranges. The gain + is applied before the offset is added. + + For example, to configure the output signal to range from –2.00 to + +2.00 V, set **gain** to 2.00. + + **Units**: unitless + + **Default Value**: None + + + + + :type gain: float + :param offset: + + + Specifies the value the signal generator adds to the arbitrary waveform + data. When you create arbitrary waveforms, you must first normalize the + data points to a range of –1.00 to +1.00 V. You can use this parameter + to shift the range of the arbitrary waveform. NI-FGEN sets the + :py:attr:`nifgen.Session.arb_offset` property to this value. + + For example, to configure the output signal to range from 0.00 to 2.00 V + instead of –1.00 to 1.00 V, set the offset to 1.00. + + **Units**: volts + + **Default Value**: None + + + + + :type offset: float + +configure_arb_waveform +---------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: configure_arb_waveform(waveform_handle, gain, offset) + + Configures the properties of the signal generator that affect arbitrary + waveform generation. Sets the :py:attr:`nifgen.Session.arb_waveform_handle`, + :py:attr:`nifgen.Session.arb_gain`, and :py:attr:`nifgen.Session.arb_offset` properties. + + + + .. note:: The signal generator must not be in the Generating state when you call + this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_arb_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_arb_waveform` + + + :param waveform_handle: + + + Specifies the handle of the arbitrary waveform you want the signal + generator to produce. NI-FGEN sets the + :py:attr:`nifgen.Session.arb_waveform_handle` property to this value. You can + create an arbitrary waveform using one of the following niFgen Create + Waveform methods: + + - :py:meth:`nifgen.Session.create_waveform` + - :py:meth:`nifgen.Session.create_waveform` + - :py:meth:`nifgen.Session.create_waveform_from_file_i16` + - :py:meth:`nifgen.Session.create_waveform_from_file_f64` + + These methods return a handle that you use to identify the waveform. + + **Default Value**: None + + + + + :type waveform_handle: int + :param gain: + + + Specifies the factor by which the signal generator scales the arbitrary + waveforms in the sequence. When you create an arbitrary waveform, you + must first normalize the data points to a range of –1.00 to +1.00. You + can use this parameter to scale the waveform to other ranges. The gain + is applied before the offset is added. + + For example, to configure the output signal to range from –2.00 to + +2.00 V, set **gain** to 2.00. + + **Units**: unitless + + **Default Value**: None + + + + + :type gain: float + :param offset: + + + Specifies the value the signal generator adds to the arbitrary waveform + data. When you create arbitrary waveforms, you must first normalize the + data points to a range of –1.00 to +1.00 V. You can use this parameter + to shift the range of the arbitrary waveform. NI-FGEN sets the + :py:attr:`nifgen.Session.arb_offset` property to this value. + + For example, to configure the output signal to range from 0.00 to 2.00 V + instead of –1.00 to 1.00 V, set the offset to 1.00. + + **Units**: volts + + **Default Value**: None + + + + + :type offset: float + +configure_freq_list +------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: configure_freq_list(frequency_list_handle, amplitude, dc_offset=0.0, start_phase=0.0) + + Configures the properties of the signal generator that affect frequency + list generation (the :py:attr:`nifgen.Session.freq_list_handle`, + :py:attr:`nifgen.Session.func_amplitude`, :py:attr:`nifgen.Session.func_dc_offset`, and + :py:attr:`nifgen.Session.func_start_phase` properties). + + + + .. note:: The signal generator must not be in the Generating state when you call + this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_freq_list` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_freq_list` + + + :param frequency_list_handle: + + + Specifies the handle of the frequency list that you want the signal + generator to produce. NI-FGEN sets the :py:attr:`nifgen.Session.freq_list_handle` + property to this value. You can create a frequency list using the + :py:meth:`nifgen.Session.create_freq_list` method, which returns a handle that you use to + identify the list. + **Default Value**: None + + + + + :type frequency_list_handle: int + :param amplitude: + + + Specifies the amplitude of the standard waveform that you want the + signal generator to produce. This value is the amplitude at the output + terminal. NI-FGEN sets the :py:attr:`nifgen.Session.func_amplitude` property to + this value. + + For example, to produce a waveform ranging from –5.00 V to +5.00 V, set + the amplitude to 10.00 V. + + **Units**: peak-to-peak voltage + + **Default Value**: None + + + + .. note:: This parameter does not affect signal generator behavior when you set + the **waveform** parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` + method to :py:data:`~nifgen.Waveform.DC`. + + + :type amplitude: float + :param dc_offset: + + + Specifies the DC offset of the standard waveform that you want the + signal generator to produce. The value is the offset from ground to the + center of the waveform you specify with the **waveform** parameter, + observed at the output terminal. For example, to configure a waveform + with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the + **dcOffset** to 5.00 V. NI-FGEN sets the :py:attr:`nifgen.Session.func_dc_offset` + property to this value. + + **Units**: volts + + **Default Value**: None + + + + + :type dc_offset: float + :param start_phase: + + + Specifies the horizontal offset of the standard waveform you want the + signal generator to produce. Specify this property in degrees of one + waveform cycle. NI-FGEN sets the :py:attr:`nifgen.Session.func_start_phase` + property to this value. A start phase of 180 degrees means output + generation begins halfway through the waveform. A start phase of 360 + degrees offsets the output by an entire waveform cycle, which is + identical to a start phase of 0 degrees. + + **Units**: degrees of one cycle + + **Default Value**: None degrees + + + + .. note:: This parameter does not affect signal generator behavior when you set + the **waveform** parameter to :py:data:`~nifgen.Waveform.DC`. + + + :type start_phase: float + +configure_standard_waveform +--------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: configure_standard_waveform(waveform, amplitude, frequency, dc_offset=0.0, start_phase=0.0) + + Configures the following properties of the signal generator that affect + standard waveform generation: + + - :py:attr:`nifgen.Session.func_waveform` + - :py:attr:`nifgen.Session.func_amplitude` + - :py:attr:`nifgen.Session.func_dc_offset` + - :py:attr:`nifgen.Session.func_frequency` + - :py:attr:`nifgen.Session.func_start_phase` + + + + .. note:: You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method with the + **outputMode** parameter set to :py:data:`~nifgen.OutputMode.FUNC` before calling + this method. + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_standard_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_standard_waveform` + + + :param waveform: + + + Specifies the standard waveform that you want the signal generator to + produce. NI-FGEN sets the :py:attr:`nifgen.Session.func_waveform` property to this + value. + + ****Defined Values**** + + **Default Value**: :py:data:`~nifgen.Waveform.SINE` + + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.SINE` | Specifies that the signal generator produces a sinusoid waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.SQUARE` | Specifies that the signal generator produces a square waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.TRIANGLE` | Specifies that the signal generator produces a triangle waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.RAMP_UP` | Specifies that the signal generator produces a positive ramp waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.RAMP_DOWN` | Specifies that the signal generator produces a negative ramp waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.DC` | Specifies that the signal generator produces a constant voltage. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.NOISE` | Specifies that the signal generator produces white noise. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.USER` | Specifies that the signal generator produces a user-defined waveform as defined with the :py:meth:`nifgen.Session.define_user_standard_waveform` method. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + :type waveform: :py:data:`nifgen.Waveform` + :param amplitude: + + + Specifies the amplitude of the standard waveform that you want the + signal generator to produce. This value is the amplitude at the output + terminal. NI-FGEN sets the :py:attr:`nifgen.Session.func_amplitude` property to + this value. + + For example, to produce a waveform ranging from –5.00 V to +5.00 V, set + the amplitude to 10.00 V. + + **Units**: peak-to-peak voltage + + **Default Value**: None + + + + .. note:: This parameter does not affect signal generator behavior when you set + the **waveform** parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` + method to :py:data:`~nifgen.Waveform.DC`. + + + :type amplitude: float + :param frequency: + + + | Specifies the frequency of the standard waveform that you want the + signal generator to produce. NI-FGEN sets the + :py:attr:`nifgen.Session.func_frequency` property to this value. + + **Units**: hertz + + **Default Value**: None + + + + .. note:: This parameter does not affect signal generator behavior when you set + the **waveform** parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` + method to :py:data:`~nifgen.Waveform.DC`. + + + :type frequency: float + :param dc_offset: + + + Specifies the DC offset of the standard waveform that you want the + signal generator to produce. The value is the offset from ground to the + center of the waveform you specify with the **waveform** parameter, + observed at the output terminal. For example, to configure a waveform + with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the + **dcOffset** to 5.00 V. NI-FGEN sets the :py:attr:`nifgen.Session.func_dc_offset` + property to this value. + + **Units**: volts + + **Default Value**: None + + + + + :type dc_offset: float + :param start_phase: + + + Specifies the horizontal offset of the standard waveform that you want + the signal generator to produce. Specify this parameter in degrees of + one waveform cycle. NI-FGEN sets the :py:attr:`nifgen.Session.func_start_phase` + property to this value. A start phase of 180 degrees means output + generation begins halfway through the waveform. A start phase of 360 + degrees offsets the output by an entire waveform cycle, which is + identical to a start phase of 0 degrees. + + **Units**: degrees of one cycle + + **Default Value**: 0.00 + + + + .. note:: This parameter does not affect signal generator behavior when you set + the **waveform** parameter to :py:data:`~nifgen.Waveform.DC`. + + + :type start_phase: float + +create_advanced_arb_sequence +---------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: create_advanced_arb_sequence(waveform_handles_array, loop_counts_array, sample_counts_array=None, marker_location_array=None) + + Creates an arbitrary sequence from an array of waveform handles and an + array of corresponding loop counts. This method returns a handle that + identifies the sequence. You pass this handle to the + :py:meth:`nifgen.Session.configure_arb_sequence` method to specify what arbitrary sequence + you want the signal generator to produce. + + The :py:meth:`nifgen.Session.create_advanced_arb_sequence` method extends on the + :py:meth:`nifgen.Session.create_arb_sequence` method by adding the ability to set the + number of samples in each sequence step and to set marker locations. + + An arbitrary sequence consists of multiple waveforms. For each waveform, + you specify the number of times the signal generator produces the + waveform before proceeding to the next waveform. The number of times to + repeat a specific waveform is called the loop count. + + + + .. note:: The signal generator must not be in the Generating state when you call + this method. + You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method to set the + **outputMode** parameter to :py:data:`~nifgen.OutputMode.SEQ` before calling this + method. + + + + :param waveform_handles_array: + + + Specifies the array of waveform handles from which you want to create a + new arbitrary sequence. The array must have at least as many elements as + the value that you specify in **sequenceLength**. Each + **waveformHandlesArray** element has a corresponding **loopCountsArray** + element that indicates how many times that waveform is repeated. You + obtain waveform handles when you create arbitrary waveforms with the + :py:meth:`nifgen.Session.allocate_waveform` method or one of the following niFgen + CreateWaveform methods: + + - :py:meth:`nifgen.Session.create_waveform` + - :py:meth:`nifgen.Session.create_waveform` + - :py:meth:`nifgen.Session.create_waveform_from_file_i16` + - :py:meth:`nifgen.Session.create_waveform_from_file_f64` + + **Default Value**: None + + + + + :type waveform_handles_array: list of int + :param loop_counts_array: + + + Specifies the array of loop counts you want to use to create a new + arbitrary sequence. The array must have at least as many elements as the + value that you specify in the **sequenceLength** parameter. Each + **loopCountsArray** element corresponds to a **waveformHandlesArray** + element and indicates how many times to repeat that waveform. Each + element of the **loopCountsArray** must be less than or equal to the + maximum number of loop counts that the signal generator allows. You can + obtain the maximum loop count from **maximumLoopCount** in the + :py:meth:`nifgen.Session.query_arb_seq_capabilities` method. + + **Default Value**: None + + + + + :type loop_counts_array: list of int + :param sample_counts_array: + + + Specifies the array of sample counts that you want to use to create a + new arbitrary sequence. The array must have at least as many elements as + the value you specify in the **sequenceLength** parameter. Each + **sampleCountsArray** element corresponds to a **waveformHandlesArray** + element and indicates the subset, in samples, of the given waveform to + generate. Each element of the **sampleCountsArray** must be larger than + the minimum waveform size, a multiple of the waveform quantum and no + larger than the number of samples in the corresponding waveform. You can + obtain these values by calling the :py:meth:`nifgen.Session.query_arb_wfm_capabilities` + method. + + **Default Value**: None + + + + + :type sample_counts_array: list of int + :param marker_location_array: + + + Specifies the array of marker locations to where you want a marker to be + generated in the sequence. The array must have at least as many elements + as the value you specify in the **sequenceLength** parameter. Each + **markerLocationArray** element corresponds to a + **waveformHandlesArray** element and indicates where in the waveform a + marker is to generate. The marker location must be less than the size of + the waveform the marker is in. The markers are coerced to the nearest + marker quantum and the coerced values are returned in the + **coercedMarkersArray** parameter. + + If you do not want a marker generated for a particular sequence stage, + set this parameter to :py:data:`~nifgen.NIFGEN_VAL_NO_MARKER`. + + **Defined Value**: :py:data:`~nifgen.NIFGEN_VAL_NO_MARKER` + + **Default Value**: None + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type marker_location_array: list of int + + :rtype: tuple (coerced_markers_array, sequence_handle) + + WHERE + + coerced_markers_array (list of int): + + + Returns an array of all given markers that are coerced (rounded) to the + nearest marker quantum. Not all devices coerce markers. + + **Default Value**: None + + + + + sequence_handle (int): + + + Returns the handle that identifies the new arbitrary sequence. You can + pass this handle to :py:meth:`nifgen.Session.configure_arb_sequence` to generate the + arbitrary sequence. + + + + + +create_arb_sequence +------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: create_arb_sequence(waveform_handles_array, loop_counts_array) + + Creates an arbitrary sequence from an array of waveform handles and an + array of corresponding loop counts. This method returns a handle that + identifies the sequence. You pass this handle to the + :py:meth:`nifgen.Session.configure_arb_sequence` method to specify what arbitrary sequence + you want the signal generator to produce. + + An arbitrary sequence consists of multiple waveforms. For each waveform, + you can specify the number of times that the signal generator produces + the waveform before proceeding to the next waveform. The number of times + to repeat a specific waveform is called the loop count. + + + + .. note:: You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method to set the + **outputMode** parameter to :py:data:`~nifgen.OutputMode.SEQ` before calling this + method. + + + + :param waveform_handles_array: + + + Specifies the array of waveform handles from which you want to create a + new arbitrary sequence. The array must have at least as many elements as + the value that you specify in **sequenceLength**. Each + **waveformHandlesArray** element has a corresponding **loopCountsArray** + element that indicates how many times that waveform is repeated. You + obtain waveform handles when you create arbitrary waveforms with the + :py:meth:`nifgen.Session.allocate_waveform` method or one of the following niFgen + CreateWaveform methods: + + - :py:meth:`nifgen.Session.create_waveform` + - :py:meth:`nifgen.Session.create_waveform` + - :py:meth:`nifgen.Session.create_waveform_from_file_i16` + - :py:meth:`nifgen.Session.create_waveform_from_file_f64` + + **Default Value**: None + + + + + :type waveform_handles_array: list of int + :param loop_counts_array: + + + Specifies the array of loop counts you want to use to create a new + arbitrary sequence. The array must have at least as many elements as the + value that you specify in the **sequenceLength** parameter. Each + **loopCountsArray** element corresponds to a **waveformHandlesArray** + element and indicates how many times to repeat that waveform. Each + element of the **loopCountsArray** must be less than or equal to the + maximum number of loop counts that the signal generator allows. You can + obtain the maximum loop count from **maximumLoopCount** in the + :py:meth:`nifgen.Session.query_arb_seq_capabilities` method. + + **Default Value**: None + + + + + :type loop_counts_array: list of int + + :rtype: int + :return: + + + Returns the handle that identifies the new arbitrary sequence. You can + pass this handle to :py:meth:`nifgen.Session.configure_arb_sequence` to generate the + arbitrary sequence. + + + + + +create_freq_list +---------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: create_freq_list(waveform, frequency_array, duration_array) + + Creates a frequency list from an array of frequencies + (**frequencyArray**) and an array of durations (**durationArray**). The + two arrays should have the same number of elements, and this value must + also be the size of the **frequencyListLength**. The method returns a + handle that identifies the frequency list (the **frequencyListHandle**). + You can pass this handle to :py:meth:`nifgen.Session.configure_freq_list` to specify what + frequency list you want the signal generator to produce. + + A frequency list consists of a list of frequencies and durations. The + signal generator generates each frequency for the given amount of time + and then proceeds to the next frequency. When the end of the list is + reached, the signal generator starts over at the beginning of the list. + + + + .. note:: The signal generator must not be in the Generating state when you call + this method. + + + + :param waveform: + + + Specifies the standard waveform that you want the signal generator to + produce. NI-FGEN sets the :py:attr:`nifgen.Session.func_waveform` property to this + value. + + ****Defined Values**** + + **Default Value**: :py:data:`~nifgen.Waveform.SINE` + + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.SINE` | Specifies that the signal generator produces a sinusoid waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.SQUARE` | Specifies that the signal generator produces a square waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.TRIANGLE` | Specifies that the signal generator produces a triangle waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.RAMP_UP` | Specifies that the signal generator produces a positive ramp waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.RAMP_DOWN` | Specifies that the signal generator produces a negative ramp waveform. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.DC` | Specifies that the signal generator produces a constant voltage. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.NOISE` | Specifies that the signal generator produces white noise. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.Waveform.USER` | Specifies that the signal generator produces a user-defined waveform as defined with the :py:meth:`nifgen.Session.define_user_standard_waveform` method. | + +---------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + :type waveform: :py:data:`nifgen.Waveform` + :param frequency_array: + + + Specifies the array of frequencies to form the frequency list. The array + must have at least as many elements as the value you specify in + **frequencyListLength**. Each **frequencyArray** element has a + corresponding **durationArray** element that indicates how long that + frequency is repeated. + + **Units**: hertz + + **Default Value**: None + + + + + :type frequency_array: list of float + :param duration_array: + + + Specifies the array of durations to form the frequency list. The array + must have at least as many elements as the value that you specify in + **frequencyListLength**. Each **durationArray** element has a + corresponding **frequencyArray** element and indicates how long in + seconds to generate the corresponding frequency. + + **Units**: seconds + + **Default Value**: None + + + + + :type duration_array: list of float + + :rtype: int + :return: + + + Returns the handle that identifies the new frequency list. You can pass + this handle to :py:meth:`nifgen.Session.configure_freq_list` to generate the arbitrary + sequence. + + + + + +create_waveform_from_file_f64 +----------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: create_waveform_from_file_f64(file_name, byte_order) + + This method takes the floating point double (F64) data from the + specified file and creates an onboard waveform for use in Arbitrary + Waveform or Arbitrary Sequence output mode. The **waveformHandle** + returned by this method can later be used for setting the active + waveform, changing the data in the waveform, building sequences of + waveforms, or deleting the waveform when it is no longer needed. + + + + .. note:: The F64 data must be between –1.0 and +1.0 V. Use the + :py:attr:`nifgen.Session.digital_gain` property to generate different voltage + outputs. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.create_waveform_from_file_f64` + + + :param file_name: + + + The full path and name of the file where the waveform data resides. + + + + + :type file_name: str + :param byte_order: + + + Specifies the byte order of the data in the file. + + ****Defined Values**** + + | + | ****Default Value**:** :py:data:`~nifgen.ByteOrder.LITTLE` + + +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.ByteOrder.LITTLE` | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | + +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.ByteOrder.BIG` | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | + +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: Data written by most applications in Windows (including + LabWindows™/CVI™) is in Little Endian format. Data written to a file + from LabVIEW is in Big Endian format by default on all platforms. Big + Endian and Little Endian refer to the way data is stored in memory, + which can differ on different processors. + + + :type byte_order: :py:data:`nifgen.ByteOrder` + + :rtype: int + :return: + + + The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + + + + +create_waveform_from_file_i16 +----------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: create_waveform_from_file_i16(file_name, byte_order) + + Takes the binary 16-bit signed integer (I16) data from the specified + file and creates an onboard waveform for use in Arbitrary Waveform or + Arbitrary Sequence output mode. The **waveformHandle** returned by this + method can later be used for setting the active waveform, changing the + data in the waveform, building sequences of waveforms, or deleting the + waveform when it is no longer needed. + + + + .. note:: The I16 data (values between –32768 and +32767) is assumed to + represent –1 to +1 V. Use the :py:attr:`nifgen.Session.digital_gain` property to + generate different voltage outputs. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_i16` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.create_waveform_from_file_i16` + + + :param file_name: + + + The full path and name of the file where the waveform data resides. + + + + + :type file_name: str + :param byte_order: + + + Specifies the byte order of the data in the file. + + ****Defined Values**** + + | + | ****Default Value**:** :py:data:`~nifgen.ByteOrder.LITTLE` + + +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.ByteOrder.LITTLE` | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | + +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nifgen.ByteOrder.BIG` | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | + +-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: Data written by most applications in Windows (including + LabWindows™/CVI™) is in Little Endian format. Data written to a file + from LabVIEW is in Big Endian format by default on all platforms. Big + Endian and Little Endian refer to the way data is stored in memory, + which can differ on different processors. + + + :type byte_order: :py:data:`nifgen.ByteOrder` + + :rtype: int + :return: + + + The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + + + + +create_waveform_numpy +--------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: create_waveform_numpy(waveform_data_array) + + Creates an onboard waveform for use in Arbitrary Waveform output mode or Arbitrary Sequence output mode. + + + + .. note:: You must set :py:attr:`nifgen.Session.output_mode` to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ` before calling this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.create_waveform` + + + :param waveform_data_array: + + + Array of data for the new arbitrary waveform. This may be an iterable of float or int16, or for best performance a numpy.ndarray of dtype int16 or float64. + + + + + :type waveform_data_array: iterable of float or int16 + + :rtype: int + :return: + + + The handle that identifies the new waveform. This handle is used in other methods when referring to this waveform. + + + + + +define_user_standard_waveform +----------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: define_user_standard_waveform(waveform_data_array) + + Defines a user waveform for use in either Standard Method or Frequency + List output mode. + + To select the waveform, set the **waveform** parameter to + :py:data:`~nifgen.Waveform.USER` with either the :py:meth:`nifgen.Session.configure_standard_waveform` + or the :py:meth:`nifgen.Session.create_freq_list` method. + + The waveform data must be scaled between –1.0 and 1.0. Use the + **amplitude** parameter in the :py:meth:`nifgen.Session.configure_standard_waveform` + method to generate different output voltages. + + + + .. note:: You must call the :py:meth:`nifgen.Session.ConfigureOutputMode` method to set the + **outputMode** parameter to :py:data:`~nifgen.OutputMode.FUNC` or + :py:data:`~nifgen.OutputMode.FREQ_LIST` before calling this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].define_user_standard_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.define_user_standard_waveform` + + + :param waveform_data_array: + + + Specifies the array of data you want to use for the new arbitrary + waveform. The array must have at least as many elements as the value + that you specify in **waveformSize**. + + You must normalize the data points in the array to be between –1.00 and + +1.00. + + **Default Value**: None + + + + + :type waveform_data_array: list of float + +delete_script +------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: delete_script(script_name) + + Deletes the specified script from onboard memory. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].delete_script` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.delete_script` + + + :param script_name: + + + Specifies the name of the script you want to delete. The script name + appears in the text of the script following the script keyword. + + + + + :type script_name: str + +delete_waveform +--------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: delete_waveform(waveform_name_or_handle) + + Removes a previously created arbitrary waveform from the signal generator memory. + + + + .. note:: The signal generator must not be in the Generating state when you call this method. + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].delete_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.delete_waveform` + + + :param waveform_name_or_handle: + + + The name (str) or handle (int) of an arbitrary waveform previously allocated with :py:meth:`nifgen.Session.allocate_named_waveform`, :py:meth:`nifgen.Session.allocate_waveform` or :py:meth:`nifgen.Session.create_waveform`. + + + + + :type waveform_name_or_handle: str or int + +disable +------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: disable() + + Places the instrument in a quiescent state where it has minimal or no + impact on the system to which it is connected. The analog output and all + exported signals are disabled. + + + + + +export_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: export_attribute_configuration_buffer() + + Exports the property configuration of the session to a configuration + buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑FGEN returns an + error. + + + + + + :rtype: bytes + :return: + + + Specifies the byte array buffer to be populated with the exported + property configuration. + + + + + +export_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: export_attribute_configuration_file(file_path) + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑FGEN returns an + error. + + + + + + :param file_path: + + + Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:** .nifgenconfig + + + + + :type file_path: str + +get_channel_name +---------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_channel_name(index) + + Returns the channel string that is in the channel table at an index you + specify. + + + + .. note:: This method is included for compliance with the IviFgen Class + Specification. + + + + :param index: + + + A 1-based index into the channel table. + + + + + :type index: int + + :rtype: str + :return: + + + Returns the channel string that is in the channel table at the index you + specify. Do not modify the contents of the channel string. + + + + + +get_ext_cal_last_date_and_time +------------------------------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_ext_cal_last_date_and_time() + + Returns the date and time of the last successful external calibration. The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30 PM, this method returns 14 for the **hour** parameter and 30 for the **minute** parameter. + + + + + + :rtype: hightime.datetime + :return: + + + Indicates date and time of the last calibration. + + + + + +get_ext_cal_last_temp +--------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_ext_cal_last_temp() + + Returns the temperature at the last successful external calibration. The + temperature is returned in degrees Celsius. + + + + + + :rtype: float + :return: + + + Specifies the temperature at the last successful calibration in degrees + Celsius. + + + + + +get_ext_cal_recommended_interval +-------------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_ext_cal_recommended_interval() + + Returns the recommended interval between external calibrations in + months. + + + + + + :rtype: hightime.timedelta + :return: + + + Specifies the recommended interval between external calibrations in + months. + + + + + +get_hardware_state +------------------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_hardware_state() + + Returns the current hardware state of the device and, if the device is + in the hardware error state, the current hardware error. + + + + .. note:: Hardware states do not necessarily correspond to NI-FGEN states. + + + + :rtype: :py:data:`nifgen.HardwareState` + :return: + + + Returns the hardware state of the signal generator. + + **Defined Values** + + +------------------------------------------------------------+--------------------------------------------+ + | :py:data:`~nifgen.HardwareState.IDLE` | The device is in the Idle state. | + +------------------------------------------------------------+--------------------------------------------+ + | :py:data:`~nifgen.HardwareState.WAITING_FOR_START_TRIGGER` | The device is waiting for Start Trigger. | + +------------------------------------------------------------+--------------------------------------------+ + | :py:data:`~nifgen.HardwareState.RUNNING` | The device is in the Running state. | + +------------------------------------------------------------+--------------------------------------------+ + | :py:data:`~nifgen.HardwareState.DONE` | The generation has completed successfully. | + +------------------------------------------------------------+--------------------------------------------+ + | :py:data:`~nifgen.HardwareState.HARDWARE_ERROR` | There is a hardware error. | + +------------------------------------------------------------+--------------------------------------------+ + + + +get_self_cal_last_date_and_time +------------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_self_cal_last_date_and_time() + + Returns the date and time of the last successful self-calibration. + + + + + + :rtype: hightime.datetime + :return: + + + Returns the date and time the device was last calibrated. + + + + + +get_self_cal_last_temp +---------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_self_cal_last_temp() + + Returns the temperature at the last successful self-calibration. The + temperature is returned in degrees Celsius. + + + + + + :rtype: float + :return: + + + Specifies the temperature at the last successful calibration in degrees + Celsius. + + + + + +get_self_cal_supported +---------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: get_self_cal_supported() + + Returns whether the device supports self–calibration. + + + + + + :rtype: bool + :return: + + + Returns whether the device supports self-calibration. + + ****Defined Values**** + + +-------+------------------------------------+ + | True | Self–calibration is supported. | + +-------+------------------------------------+ + | False | Self–calibration is not supported. | + +-------+------------------------------------+ + + + +import_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: import_attribute_configuration_buffer(configuration) + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + + + .. note:: You cannot call this method while the session is in a running state, + such as while generating a signal. + + + + :param configuration: + + + Specifies the byte array buffer that contains the property + configuration to import. + + + + + :type configuration: bytes + +import_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: import_attribute_configuration_file(file_path) + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + + + .. note:: You cannot call this method while the session is in a running state, + such as while generating a signal. + + + + :param file_path: + + + Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:** .nifgenconfig + + + + + :type file_path: str + +initiate +-------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: initiate() + + Initiates signal generation. If you want to abort signal generation, + call the :py:meth:`nifgen.Session.abort` method. After the signal generation + is aborted, you can call the :py:meth:`nifgen.Session.initiate` method to + cause the signal generator to produce a signal again. + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +is_done +------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: is_done() + + Determines whether the current generation is complete. This method + sets the **done** parameter to True if the session is in the Idle or + Committed states. + + + + .. note:: NI-FGEN only reports the **done** parameter as True after the + current generation is complete in Single trigger mode. + + + + :rtype: bool + :return: + + + Returns information about the completion of waveform generation. + + **Defined Values** + + +-------+-----------------------------+ + | True | Generation is complete. | + +-------+-----------------------------+ + | False | Generation is not complete. | + +-------+-----------------------------+ + + + +lock +---- + + .. py:currentmodule:: nifgen.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`nifgen.Session.lock` method. + - A call to NI-FGEN locked the session. + - After a call to the :py:meth:`nifgen.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`nifgen.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`nifgen.Session.lock` method and the + :py:meth:`nifgen.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`nifgen.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`nifgen.Session.lock` method with a call to + the :py:meth:`nifgen.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with nifgen.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`nifgen.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +query_arb_seq_capabilities +-------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: query_arb_seq_capabilities() + + Returns the properties of the signal generator that are related to + creating arbitrary sequences (the :py:attr:`nifgen.Session.max_num_sequences`, + :py:attr:`nifgen.Session.min_sequence_length`, + :py:attr:`nifgen.Session.max_sequence_length`, and :py:attr:`nifgen.Session.max_loop_count` + properties). + + + + + + :rtype: tuple (maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count) + + WHERE + + maximum_number_of_sequences (int): + + + Returns the maximum number of arbitrary waveform sequences that the + signal generator allows. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_num_sequences` property. + + + + + minimum_sequence_length (int): + + + Returns the minimum number of arbitrary waveforms the signal generator + allows in a sequence. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.min_sequence_length` property. + + + + + maximum_sequence_length (int): + + + Returns the maximum number of arbitrary waveforms the signal generator + allows in a sequence. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_sequence_length` property. + + + + + maximum_loop_count (int): + + + Returns the maximum number of times the signal generator can repeat an + arbitrary waveform in a sequence. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_loop_count` property. + + + + + +query_arb_wfm_capabilities +-------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: query_arb_wfm_capabilities() + + Returns the properties of the signal generator that are related to + creating arbitrary waveforms. These properties are the maximum number of + waveforms, waveform quantum, minimum waveform size, and maximum waveform + size. + + + + .. note:: If you do not want to obtain the waveform quantum, pass a value of + VI_NULL for this parameter. + + + + :rtype: tuple (maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size) + + WHERE + + maximum_number_of_waveforms (int): + + + Returns the maximum number of arbitrary waveforms that the signal + generator allows. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_num_waveforms` property. + + + + + waveform_quantum (int): + + + The size (number of points) of each waveform must be a multiple of a + constant quantum value. This parameter obtains the quantum value that + the signal generator uses. NI-FGEN returns this value from the + :py:attr:`nifgen.Session.waveform_quantum` property. + + For example, when this property returns a value of 8, all waveform + sizes must be a multiple of 8. + + + + + minimum_waveform_size (int): + + + Returns the minimum number of points that the signal generator allows in + a waveform. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.min_waveform_size` property. + + + + + maximum_waveform_size (int): + + + Returns the maximum number of points that the signal generator allows in + a waveform. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_waveform_size` property. + + + + + +query_freq_list_capabilities +---------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: query_freq_list_capabilities() + + Returns the properties of the signal generator that are related to + creating frequency lists. These properties are + :py:attr:`nifgen.Session.max_num_freq_lists`, + :py:attr:`nifgen.Session.min_freq_list_length`, + :py:attr:`nifgen.Session.max_freq_list_length`, + :py:attr:`nifgen.Session.min_freq_list_duration`, + :py:attr:`nifgen.Session.max_freq_list_duration`, and + :py:attr:`nifgen.Session.freq_list_duration_quantum`. + + + + + + :rtype: tuple (maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum) + + WHERE + + maximum_number_of_freq_lists (int): + + + Returns the maximum number of frequency lists that the signal generator + allows. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_num_freq_lists` property. + + + + + minimum_frequency_list_length (int): + + + Returns the minimum number of steps that the signal generator allows in + a frequency list. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.min_freq_list_length` property. + + + + + maximum_frequency_list_length (int): + + + Returns the maximum number of steps that the signal generator allows in + a frequency list. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_freq_list_length` property. + + + + + minimum_frequency_list_duration (float): + + + Returns the minimum duration that the signal generator allows in a step + of a frequency list. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.min_freq_list_duration` property. + + + + + maximum_frequency_list_duration (float): + + + Returns the maximum duration that the signal generator allows in a step + of a frequency list. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.max_freq_list_duration` property. + + + + + frequency_list_duration_quantum (float): + + + Returns the quantum of which all durations must be a multiple in a + frequency list. NI-FGEN obtains this value from the + :py:attr:`nifgen.Session.freq_list_duration_quantum` property. + + + + + +read_current_temperature +------------------------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: read_current_temperature() + + Reads the current onboard temperature of the device. The temperature is + returned in degrees Celsius. + + + + + + :rtype: float + :return: + + + Returns the current temperature read from onboard temperature sensors, + in degrees Celsius. + + + + + +reset +----- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: reset() + + Resets the instrument to a known state. This method aborts the + generation, clears all routes, and resets session properties to the + default values. This method does not, however, commit the session + properties or configure the device hardware to its default state. + + + + .. note:: For the NI 5401/5404/5411/5431, this method exhibits the same + behavior as the :py:meth:`nifgen.Session.reset_device` method. + + + +reset_device +------------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: reset_device() + + Performs a hard reset on the device. Generation is stopped, all routes + are released, external bidirectional terminals are tristated, FPGAs are + reset, hardware is configured to its default state, and all session + properties are reset to their default states. + + + + + +reset_with_defaults +------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: reset_with_defaults() + + Resets the instrument and reapplies initial user–specified settings from + the logical name that was used to initialize the session. If the session + was created without a logical name, this method is equivalent to the + :py:meth:`nifgen.Session.reset` method. + + + + + +self_cal +-------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: self_cal() + + Performs a full internal self-calibration on the device. If the + calibration is successful, new calibration data and constants are stored + in the onboard EEPROM. + + + + + +self_test +--------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: self_test() + + Runs the instrument self-test routine and returns the test result(s). + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + .. note:: When used on some signal generators, the device is reset after the + :py:meth:`nifgen.Session.self_test` method runs. If you use the :py:meth:`nifgen.Session.self_test` + method, your device may not be in its previously configured state + after the method runs. + + + +send_software_edge_trigger +-------------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: send_software_edge_trigger(trigger, trigger_id) + + Sends a command to trigger the signal generator. This VI can act as an + override for an external edge trigger. + + + + .. note:: This VI does not override external digital edge triggers of the + NI 5401/5411/5431. + + + + :param trigger: + + + Trigger specifies the type of software trigger to send + + +-----------------------------------+ + | Defined Values | + +===================================+ + | :py:data:`~nifgen.Trigger.START` | + +-----------------------------------+ + | :py:data:`~nifgen.Trigger.SCRIPT` | + +-----------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger: :py:data:`nifgen.Trigger` + :param trigger_id: + + + Trigger ID specifies the Script Trigger to use for triggering. + + + + + :type trigger_id: str + +set_next_write_position +----------------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: set_next_write_position(waveform_name_or_handle, relative_to, offset) + + Sets the position in the waveform at which the next waveform data is + written. This method allows you to write to arbitrary locations within + the waveform. These settings apply only to the next write to the + waveform specified by the waveformHandle parameter. Subsequent writes to + that waveform begin where the last write left off, unless this method + is called again. The waveformHandle passed in must have been created by + a call to the :py:meth:`nifgen.Session.allocate_waveform` method or one of the following + :py:meth:`nifgen.Session.create_waveform` method. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].set_next_write_position` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.set_next_write_position` + + + :param waveform_name_or_handle: + + + The name (str) or handle (int) of an arbitrary waveform previously allocated with :py:meth:`nifgen.Session.allocate_named_waveform`, :py:meth:`nifgen.Session.allocate_waveform` or :py:meth:`nifgen.Session.create_waveform`. + + + + + :type waveform_name_or_handle: str or int + :param relative_to: + + + Specifies the reference position in the waveform. This position and + **offset** together determine where to start loading data into the + waveform. + + ****Defined Values**** + + +-------------------------------------------+-------------------------------------------------------------------------+ + | :py:data:`~nifgen.RelativeTo.START` (0) | Use the start of the waveform as the reference position. | + +-------------------------------------------+-------------------------------------------------------------------------+ + | :py:data:`~nifgen.RelativeTo.CURRENT` (1) | Use the current position within the waveform as the reference position. | + +-------------------------------------------+-------------------------------------------------------------------------+ + + + :type relative_to: :py:data:`nifgen.RelativeTo` + :param offset: + + + Specifies the offset from **relativeTo** at which to start loading the + data into the waveform. + + + + + :type offset: int + +unlock +------ + + .. py:currentmodule:: nifgen.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`nifgen.Session.lock`. Refer to :py:meth:`nifgen.Session.unlock` for additional + information on session locks. + +wait_until_done +--------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: wait_until_done(max_time=hightime.timedelta(seconds=10.0)) + + Waits until the device is done generating or until the maximum time has + expired. + + + + + + :param max_time: + + + Specifies the timeout value in milliseconds. + + + + + :type max_time: hightime.timedelta, datetime.timedelta, or int in milliseconds + +write_script +------------ + + .. py:currentmodule:: nifgen.Session + + .. py:method:: write_script(script) + + Writes a string containing one or more scripts that govern the + generation of waveforms. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].write_script` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.write_script` + + + :param script: + + + Contains the text of the script you want to use for your generation + operation. Refer to `scripting + Instructions `__ + for more information about writing scripts. + + + + + :type script: str + +write_waveform +-------------- + + .. py:currentmodule:: nifgen.Session + + .. py:method:: write_waveform(waveform_name_or_handle, data) + + Writes data to the waveform in onboard memory. + + By default, subsequent calls to this method + continue writing data from the position of the last sample written. You + can set the write position and offset by calling the :py:meth:`nifgen.Session.set_next_write_position` + :py:meth:`nifgen.Session.set_next_write_position` method. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].write_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.write_waveform` + + + :param waveform_name_or_handle: + + + The name (str) or handle (int) of an arbitrary waveform previously allocated with :py:meth:`nifgen.Session.allocate_named_waveform`, :py:meth:`nifgen.Session.allocate_waveform` or :py:meth:`nifgen.Session.create_waveform`. + + + + + :type waveform_name_or_handle: str or int + :param data: + + + Array of data to load into the waveform. This may be an iterable of float, or for best performance a numpy.ndarray of dtype int16 or float64. + + + + + :type data: list of float + + +Properties +========== + +absolute_delay +-------------- + + .. py:attribute:: absolute_delay + + Specifies the sub-Sample Clock delay, in seconds, to apply to the + waveform. Use this property to reduce the trigger jitter when + synchronizing multiple devices with NI-TClk. This property can also help + maintain synchronization repeatability by writing the absolute delay + value of a previous measurement to the current session. + To set this property, the waveform generator must be in the Idle + (Configuration) state. + **Units**: seconds (s) + **Valid Values**: Plus or minus half of one Sample Clock period + **Default Value**: 0.0 + **Supported Waveform Generators**: PXIe-5413/5423/5433 + + + + .. note:: If this property is set, NI-TClk cannot perform any sub-Sample Clock + adjustment. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Absolute Delay** + - C Attribute: **NIFGEN_ATTR_ABSOLUTE_DELAY** + +all_marker_events_latched_status +-------------------------------- + + .. py:attribute:: all_marker_events_latched_status + + Returns a bit field of the latched status of all Marker Events. Write 0 to this property to clear the latched status of all Marker Events. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Advanced:All Marker Events Latched Status** + - C Attribute: **NIFGEN_ATTR_ALL_MARKER_EVENTS_LATCHED_STATUS** + +all_marker_events_live_status +----------------------------- + + .. py:attribute:: all_marker_events_live_status + + Returns a bit field of the live status of all Marker Events. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Advanced:All Marker Events Live Status** + - C Attribute: **NIFGEN_ATTR_ALL_MARKER_EVENTS_LIVE_STATUS** + +analog_data_mask +---------------- + + .. py:attribute:: analog_data_mask + + Specifies the mask to apply to the analog output. The masked data is replaced with the data in :py:attr:`nifgen.Session.analog_static_value`. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Data Mask:Analog Data Mask** + - C Attribute: **NIFGEN_ATTR_ANALOG_DATA_MASK** + +analog_filter_enabled +--------------------- + + .. py:attribute:: analog_filter_enabled + + Controls whether the signal generator applies to an analog filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Filters:Analog Filter Enabled** + - C Attribute: **NIFGEN_ATTR_ANALOG_FILTER_ENABLED** + +analog_path +----------- + + .. py:attribute:: analog_path + + Specifies the analog signal path that should be used. The main path allows you to configure gain, offset, analog filter status, output impedance, and output enable. The main path has two amplifier options, high- and low-gain. + The direct path presents a much smaller gain range, and you cannot adjust offset or the filter status. The direct path also provides a smaller output range but also lower distortion. NI-FGEN normally chooses the amplifier based on the user-specified gain. + + The following table lists the characteristics of this property. + + +-----------------------+------------------+ + | Characteristic | Value | + +=======================+==================+ + | Datatype | enums.AnalogPath | + +-----------------------+------------------+ + | Permissions | read-write | + +-----------------------+------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Analog Path** + - C Attribute: **NIFGEN_ATTR_ANALOG_PATH** + +analog_static_value +------------------- + + .. py:attribute:: analog_static_value + + Specifies the static value that replaces data masked by :py:attr:`nifgen.Session.analog_data_mask`. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Data Mask:Analog Static Value** + - C Attribute: **NIFGEN_ATTR_ANALOG_STATIC_VALUE** + +arb_gain +-------- + + .. py:attribute:: arb_gain + + Specifies the factor by which the signal generator scales the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to scale the arbitrary waveform to other ranges. + For example, when you set this property to 2.0, the output signal ranges from -2.0 V to +2.0 V. + Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ`. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_gain` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_gain` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Gain** + - C Attribute: **NIFGEN_ATTR_ARB_GAIN** + +arb_marker_position +------------------- + + .. py:attribute:: arb_marker_position + + Specifies the position for a marker to be asserted in the arbitrary waveform. This property defaults to -1 when no marker position is specified. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB`. + Use :py:meth:`nifgen.Session.ExportSignal` to export the marker signal. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Waveform Mode:Marker Position** + - C Attribute: **NIFGEN_ATTR_ARB_MARKER_POSITION** + +arb_offset +---------- + + .. py:attribute:: arb_offset + + Specifies the value that the signal generator adds to the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to shift the arbitrary waveform range. + For example, when you set this property to 1.0, the output signal ranges from 2.0 V to 0.0 V. + Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ`. + Units: Volts + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Offset** + - C Attribute: **NIFGEN_ATTR_ARB_OFFSET** + +arb_repeat_count +---------------- + + .. py:attribute:: arb_repeat_count + + Specifies number of times to repeat the arbitrary waveform when the triggerMode parameter of :py:meth:`nifgen.Session.ConfigureTriggerMode` is set to :py:data:`~nifgen.TriggerMode.SINGLE` or :py:data:`~nifgen.TriggerMode.STEPPED`. This property is ignored if the triggerMode parameter is set to :py:data:`~nifgen.TriggerMode.CONTINUOUS` or :py:data:`~nifgen.TriggerMode.BURST`. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB`. + When used during streaming, this property specifies the number of times to repeat the streaming waveform (the onboard memory allocated for streaming). For more information about streaming, refer to the Streaming topic. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Waveform Mode:Repeat Count** + - C Attribute: **NIFGEN_ATTR_ARB_REPEAT_COUNT** + +arb_sample_rate +--------------- + + .. py:attribute:: arb_sample_rate + + Specifies the rate at which the signal generator outputs the points in arbitrary waveforms. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB` or :py:data:`~nifgen.OutputMode.SEQ`. + Units: Samples/s + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock:Rate** + - C Attribute: **NIFGEN_ATTR_ARB_SAMPLE_RATE** + +arb_sequence_handle +------------------- + + .. py:attribute:: arb_sequence_handle + + This channel-based property identifies which sequence the signal generator produces. You can create multiple sequences using :py:meth:`nifgen.Session.create_arb_sequence`. :py:meth:`nifgen.Session.create_arb_sequence` returns a handle that you can use to identify the particular sequence. To configure the signal generator to produce a particular sequence, set this property to the sequence handle. + Use this property only when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SEQ`. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_sequence_handle` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_sequence_handle` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Arbitrary Sequence Handle** + - C Attribute: **NIFGEN_ATTR_ARB_SEQUENCE_HANDLE** + +arb_waveform_handle +------------------- + + .. py:attribute:: arb_waveform_handle + + Selects which arbitrary waveform the signal generator produces. You can create multiple arbitrary waveforms using one of the following niFgen Create Waveform methods: + :py:meth:`nifgen.Session.create_waveform` + :py:meth:`nifgen.Session.create_waveform` + :py:meth:`nifgen.Session.create_waveform_from_file_i16` + :py:meth:`nifgen.Session.create_waveform_from_file_f64` + These methods return a handle that you can use to identify the particular waveform. To configure the signal generator to produce a particular waveform, set this property to the waveform handle. + Use this property only when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.ARB`. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_waveform_handle` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_waveform_handle` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Waveform Mode:Arbitrary Waveform Handle** + - C Attribute: **NIFGEN_ATTR_ARB_WAVEFORM_HANDLE** + +aux_power_enabled +----------------- + + .. py:attribute:: aux_power_enabled + + Controls the specified auxiliary power pin. Setting this property to TRUE energizes the auxiliary power when the session is committed. When this property is FALSE, the power pin of the connector outputs no power. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Advanced:AUX Power Enabled** + - C Attribute: **NIFGEN_ATTR_AUX_POWER_ENABLED** + +bus_type +-------- + + .. py:attribute:: bus_type + + The bus type of the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+---------------+ + | Characteristic | Value | + +=======================+===============+ + | Datatype | enums.BusType | + +-----------------------+---------------+ + | Permissions | read only | + +-----------------------+---------------+ + | Repeated Capabilities | None | + +-----------------------+---------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Bus Type** + - C Attribute: **NIFGEN_ATTR_BUS_TYPE** + +channel_delay +------------- + + .. py:attribute:: channel_delay + + Specifies, in seconds, the delay to apply to the analog output of the channel specified by the channel string. You can use the channel delay to configure the timing relationship between channels on a multichannel device. Values for this property can be zero or positive. A value of zero indicates that the channels are aligned. A positive value delays the analog output by the specified number of seconds. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].channel_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.channel_delay` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Channel Delay** + - C Attribute: **NIFGEN_ATTR_CHANNEL_DELAY** + +clock_mode +---------- + + .. py:attribute:: clock_mode + + Controls which clock mode is used for the signal generator. + For signal generators that support it, this property allows switching the sample clock to High-Resolution mode. When in Divide-Down mode, the sample rate can only be set to certain frequences, based on dividing down the update clock. However, in High-Resolution mode, the sample rate may be set to any value. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | enums.ClockMode | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock:Mode** + - C Attribute: **NIFGEN_ATTR_CLOCK_MODE** + +common_mode_offset +------------------ + + .. py:attribute:: common_mode_offset + + Specifies, in volts, the value the signal generator adds to or subtracts from the arbitrary waveform data. This property applies only when you set the :py:attr:`nifgen.Session.terminal_configuration` property to :py:data:`~nifgen.TerminalConfiguration.DIFFERENTIAL`. Common mode offset is applied to the signals generated at each differential output terminal. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].common_mode_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.common_mode_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Common Mode Offset** + - C Attribute: **NIFGEN_ATTR_COMMON_MODE_OFFSET** + +data_marker_events_count +------------------------ + + .. py:attribute:: data_marker_events_count + + Returns the number of Data Marker Events supported by the device. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Data Marker Events Count** + - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENTS_COUNT** + +data_marker_event_data_bit_number +--------------------------------- + + .. py:attribute:: data_marker_event_data_bit_number + + Specifies the bit number to assign to the Data Marker Event. + + + + + .. tip:: This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container data_markers to specify a subset. + + Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_data_bit_number` + + To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.data_marker_event_data_bit_number` + + The following table lists the characteristics of this property. + + +-----------------------+--------------+ + | Characteristic | Value | + +=======================+==============+ + | Datatype | int | + +-----------------------+--------------+ + | Permissions | read-write | + +-----------------------+--------------+ + | Repeated Capabilities | data_markers | + +-----------------------+--------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Data Marker:Data Bit Number** + - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENT_DATA_BIT_NUMBER** + +data_marker_event_level_polarity +-------------------------------- + + .. py:attribute:: data_marker_event_level_polarity + + Specifies the output polarity of the Data marker event. + + + + + .. tip:: This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container data_markers to specify a subset. + + Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_level_polarity` + + To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.data_marker_event_level_polarity` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------+ + | Characteristic | Value | + +=======================+====================================+ + | Datatype | enums.DataMarkerEventLevelPolarity | + +-----------------------+------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------+ + | Repeated Capabilities | data_markers | + +-----------------------+------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Data Marker:Level:Active Level** + - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENT_LEVEL_POLARITY** + +data_marker_event_output_terminal +--------------------------------- + + .. py:attribute:: data_marker_event_output_terminal + + Specifies the destination terminal for the Data Marker Event. + + + + + .. tip:: This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container data_markers to specify a subset. + + Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_output_terminal` + + To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.data_marker_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+--------------+ + | Characteristic | Value | + +=======================+==============+ + | Datatype | str | + +-----------------------+--------------+ + | Permissions | read-write | + +-----------------------+--------------+ + | Repeated Capabilities | data_markers | + +-----------------------+--------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Data Marker:Output Terminal** + - C Attribute: **NIFGEN_ATTR_DATA_MARKER_EVENT_OUTPUT_TERMINAL** + +data_transfer_block_size +------------------------ + + .. py:attribute:: data_transfer_block_size + + The number of samples at a time to download to onboard memory. Useful when the total data to be transferred to onboard memory is large. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Data Transfer Block Size** + - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_BLOCK_SIZE** + +data_transfer_maximum_bandwidth +------------------------------- + + .. py:attribute:: data_transfer_maximum_bandwidth + + Specifies the maximum amount of bus bandwidth (in bytes per second) to use for data transfers. The signal generator limits data transfer speeds on the PCIe bus to the value you specify for this property. Set this property to optimize bus bandwidth usage for multi-device streaming applications by preventing the signal generator from consuming all of the available bandwidth on a PCI express link when waveforms are being written to the onboard memory of the device. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Maximum Bandwidth** + - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_MAXIMUM_BANDWIDTH** + +data_transfer_maximum_in_flight_reads +------------------------------------- + + .. py:attribute:: data_transfer_maximum_in_flight_reads + + Specifies the maximum number of concurrent PCI Express read requests the signal generator can issue. + When transferring data from computer memory to device onboard memory across the PCI Express bus, the signal generator can issue multiple memory reads at the same time. In general, the larger the number of read requests, the more efficiently the device uses the bus because the multiple read requests keep the data flowing, even in a PCI Express topology that has high latency due to PCI Express switches in the data path. Most NI devices can issue a large number of read requests (typically 8 or 16). By default, this property is set to the highest value the signal generator supports. + If other devices in your system cannot tolerate long data latencies, it may be helpful to decrease the number of in-flight read requests the NI signal generator issues. This helps to reduce the amount of data the signal generator reads at one time. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Advanced:Maximum In-Flight Read Requests** + - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_MAXIMUM_IN_FLIGHT_READS** + +data_transfer_preferred_packet_size +----------------------------------- + + .. py:attribute:: data_transfer_preferred_packet_size + + Specifies the preferred size of the data field in a PCI Express read request packet. In general, the larger the packet size, the more efficiently the device uses the bus. By default, NI signal generators use the largest packet size allowed by the system. However, due to different system implementations, some systems may perform better with smaller packet sizes. + Recommended values for this property are powers of two between 64 and 512. + In some cases, the signal generator generates packets smaller than the preferred size you set with this property. + You cannot change this property while the device is generating a waveform. If you want to change the device configuration, call the :py:meth:`nifgen.Session.abort` method or wait for the generation to complete. + + + + .. note:: : + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Advanced:Preferred Packet Size** + - C Attribute: **NIFGEN_ATTR_DATA_TRANSFER_PREFERRED_PACKET_SIZE** + +digital_data_mask +----------------- + + .. py:attribute:: digital_data_mask + + Specifies the mask to apply to the output on the digital connector. The masked data is replaced with the data in :py:attr:`nifgen.Session.digital_static_value`. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Data Mask:Digital Data Mask** + - C Attribute: **NIFGEN_ATTR_DIGITAL_DATA_MASK** + +digital_edge_script_trigger_edge +-------------------------------- + + .. py:attribute:: digital_edge_script_trigger_edge + + Specifies the active edge for the Script trigger. This property is used when :py:attr:`nifgen.Session.script_trigger_type` is set to Digital Edge. + + + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_edge` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------+ + | Characteristic | Value | + +=======================+====================================+ + | Datatype | enums.ScriptTriggerDigitalEdgeEdge | + +-----------------------+------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Digital Edge:Edge** + - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE** + +digital_edge_script_trigger_source +---------------------------------- + + .. py:attribute:: digital_edge_script_trigger_source + + Specifies the source terminal for the Script trigger. This property is used when :py:attr:`nifgen.Session.script_trigger_type` is set to Digital Edge. + + + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_source` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | str | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Digital Edge:Source** + - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE** + +digital_edge_start_trigger_edge +------------------------------- + + .. py:attribute:: digital_edge_start_trigger_edge + + Specifies the active edge for the Start trigger. This property is used only when :py:attr:`nifgen.Session.start_trigger_type` is set to Digital Edge. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------------+ + | Characteristic | Value | + +=======================+===================================+ + | Datatype | enums.StartTriggerDigitalEdgeEdge | + +-----------------------+-----------------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Digital Edge:Edge** + - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** + +digital_edge_start_trigger_source +--------------------------------- + + .. py:attribute:: digital_edge_start_trigger_source + + Specifies the source terminal for the Start trigger. This property is used only when :py:attr:`nifgen.Session.start_trigger_type` is set to Digital Edge. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Digital Edge:Source** + - C Attribute: **NIFGEN_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** + +digital_filter_enabled +---------------------- + + .. py:attribute:: digital_filter_enabled + + Controls whether the signal generator applies a digital filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Filters:Digital Filter Enabled** + - C Attribute: **NIFGEN_ATTR_DIGITAL_FILTER_ENABLED** + +digital_filter_interpolation_factor +----------------------------------- + + .. py:attribute:: digital_filter_interpolation_factor + + This property only affects the device when :py:attr:`nifgen.Session.digital_filter_enabled` is set to True. If you do not set this property directly, NI-FGEN automatically selects the maximum interpolation factor allowed for the current sample rate. Valid values are 2, 4, and 8. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Filters:Digital Filter Interpolation Factor** + - C Attribute: **NIFGEN_ATTR_DIGITAL_FILTER_INTERPOLATION_FACTOR** + +digital_gain +------------ + + .. py:attribute:: digital_gain + + Specifies a factor by which the signal generator digitally multiplies generated data before converting it to an analog signal in the DAC. For a digital gain greater than 1.0, the product of digital gain times the generated data must be inside the range plus or minus 1.0 (assuming floating point data). If the product exceeds these limits, the signal generator clips the output signal, and an error results. + Some signal generators support both digital gain and an analog gain (analog gain is specified with the :py:attr:`nifgen.Session.func_amplitude` property or the :py:attr:`nifgen.Session.arb_gain` property). Digital gain can be changed during generation without the glitches that may occur when changing analog gains, due to relay switching. However, the DAC output resolution is a method of analog gain, so only analog gain makes full use of the resolution of the DAC. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Digital Gain** + - C Attribute: **NIFGEN_ATTR_DIGITAL_GAIN** + +digital_pattern_enabled +----------------------- + + .. py:attribute:: digital_pattern_enabled + + Controls whether the signal generator generates a digital pattern of the output signal. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Advanced:Digital Pattern Enabled** + - C Attribute: **NIFGEN_ATTR_DIGITAL_PATTERN_ENABLED** + +digital_static_value +-------------------- + + .. py:attribute:: digital_static_value + + Specifies the static value that replaces data masked by :py:attr:`nifgen.Session.digital_data_mask`. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Data Mask:Digital Static Value** + - C Attribute: **NIFGEN_ATTR_DIGITAL_STATIC_VALUE** + +done_event_output_terminal +-------------------------- + + .. py:attribute:: done_event_output_terminal + + Specifies the destination terminal for the Done Event. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done:Output Terminal** + - C Attribute: **NIFGEN_ATTR_DONE_EVENT_OUTPUT_TERMINAL** + +done_event_pulse_width +---------------------- + + .. py:attribute:: done_event_pulse_width + + Specifies the pulse width for the Done Event. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done:Pulse:Width Value** + - C Attribute: **NIFGEN_ATTR_DONE_EVENT_PULSE_WIDTH** + +done_event_pulse_width_units +---------------------------- + + .. py:attribute:: done_event_pulse_width_units + + Specifies the pulse width units for the Done Event. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.EventPulseWidthUnits | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done:Pulse:Width Units** + - C Attribute: **NIFGEN_ATTR_DONE_EVENT_PULSE_WIDTH_UNITS** + +driver_setup +------------ + + .. py:attribute:: driver_setup + + Specifies the driver setup portion of the option string that was passed into the :py:meth:`nifgen.Session.InitWithOptions` method. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIFGEN_ATTR_DRIVER_SETUP** + +exported_onboard_reference_clock_output_terminal +------------------------------------------------ + + .. py:attribute:: exported_onboard_reference_clock_output_terminal + + Specifies the terminal to which to export the Onboard Reference Clock. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Reference Clock:Onboard Reference Clock:Export Output Terminal** + - C Attribute: **NIFGEN_ATTR_EXPORTED_ONBOARD_REFERENCE_CLOCK_OUTPUT_TERMINAL** + +exported_reference_clock_output_terminal +---------------------------------------- + + .. py:attribute:: exported_reference_clock_output_terminal + + Specifies the terminal to which to export the Reference Clock. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Reference Clock:Export Output Terminal** + - C Attribute: **NIFGEN_ATTR_EXPORTED_REFERENCE_CLOCK_OUTPUT_TERMINAL** + +exported_sample_clock_divisor +----------------------------- + + .. py:attribute:: exported_sample_clock_divisor + + Specifies the factor by which to divide the Sample clock, also known as the Update clock, before it is exported. To export the Sample clock, use the :py:meth:`nifgen.Session.ExportSignal` method or the :py:attr:`nifgen.Session.exported_sample_clock_output_terminal` property. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock:Exported Sample Clock Divisor** + - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_DIVISOR** + +exported_sample_clock_output_terminal +------------------------------------- + + .. py:attribute:: exported_sample_clock_output_terminal + + Specifies the terminal to which to export the Sample Clock. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock:Export Output Terminal** + - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL** + +exported_sample_clock_timebase_divisor +-------------------------------------- + + .. py:attribute:: exported_sample_clock_timebase_divisor + + Specifies the factor by which to divide the sample clock timebase (board clock) before it is exported. To export the Sample clock timebase, use the :py:meth:`nifgen.Session.ExportSignal` method or the :py:attr:`nifgen.Session.exported_sample_clock_timebase_output_terminal` property. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock Timebase:Exported Sample Clock Timebase Divisor** + - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_TIMEBASE_DIVISOR** + +exported_sample_clock_timebase_output_terminal +---------------------------------------------- + + .. py:attribute:: exported_sample_clock_timebase_output_terminal + + Specifies the terminal to which to export the Sample clock timebase. If you specify a divisor with the :py:attr:`nifgen.Session.exported_sample_clock_timebase_divisor` property, the Sample clock exported with the :py:attr:`nifgen.Session.exported_sample_clock_timebase_output_terminal` property is the value of the Sample clock timebase after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. + To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock Timebase:Export Output Terminal** + - C Attribute: **NIFGEN_ATTR_EXPORTED_SAMPLE_CLOCK_TIMEBASE_OUTPUT_TERMINAL** + +exported_script_trigger_output_terminal +--------------------------------------- + + .. py:attribute:: exported_script_trigger_output_terminal + + Specifies the output terminal for the exported Script trigger. + Setting this property to an empty string means that when you commit the session, the signal is removed from that terminal and, if possible, the terminal is tristated. + + + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.exported_script_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | str | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Output Terminal** + - C Attribute: **NIFGEN_ATTR_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL** + +exported_start_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_start_trigger_output_terminal + + Specifies the destination terminal for exporting the Start trigger. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Output Terminal** + - C Attribute: **NIFGEN_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** + +external_clock_delay_binary_value +--------------------------------- + + .. py:attribute:: external_clock_delay_binary_value + + Binary value of the external clock delay. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Advanced:External Clock Delay Binary Value** + - C Attribute: **NIFGEN_ATTR_EXTERNAL_CLOCK_DELAY_BINARY_VALUE** + +external_sample_clock_multiplier +-------------------------------- + + .. py:attribute:: external_sample_clock_multiplier + + Specifies a multiplication factor to use to obtain a desired sample rate from an external Sample clock. The resulting sample rate is equal to this factor multiplied by the external Sample clock rate. You can use this property to generate samples at a rate higher than your external clock rate. When using this property, you do not need to explicitly set the external clock rate. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Advanced:External Sample Clock Multiplier** + - C Attribute: **NIFGEN_ATTR_EXTERNAL_SAMPLE_CLOCK_MULTIPLIER** + +file_transfer_block_size +------------------------ + + .. py:attribute:: file_transfer_block_size + + The number of samples at a time to read from the file and download to onboard memory. Used in conjunction with the Create From File and Write From File methods. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:File Transfer Block Size** + - C Attribute: **NIFGEN_ATTR_FILE_TRANSFER_BLOCK_SIZE** + +filter_correction_frequency +--------------------------- + + .. py:attribute:: filter_correction_frequency + + Controls the filter correction frequency of the analog filter. This property corrects for the ripples in the analog filter frequency response at the frequency specified. For standard waveform output, the filter correction frequency should be set to be the same as the frequency of the standard waveform. To have no filter correction, set this property to 0 Hz. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:5401/5411/5431:Filter Correction Frequency** + - C Attribute: **NIFGEN_ATTR_FILTER_CORRECTION_FREQUENCY** + +flatness_correction_enabled +--------------------------- + + .. py:attribute:: flatness_correction_enabled + + When True, the signal generator applies a flatness correction factor to the generated sine wave in order to ensure the same output power level at all frequencies. + This property should be set to False when performing Flatness Calibration. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Filters:Flatness Correction Enabled** + - C Attribute: **NIFGEN_ATTR_FLATNESS_CORRECTION_ENABLED** + +fpga_bitfile_path +----------------- + + .. py:attribute:: fpga_bitfile_path + + Gets the absolute file path to the bitfile loaded on the FPGA. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:FPGA Bitfile Path** + - C Attribute: **NIFGEN_ATTR_FPGA_BITFILE_PATH** + +freq_list_duration_quantum +-------------------------- + + .. py:attribute:: freq_list_duration_quantum + + Returns the quantum of which all durations must be a multiple in a frequency list. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Frequency List Duration Quantum** + - C Attribute: **NIFGEN_ATTR_FREQ_LIST_DURATION_QUANTUM** + +freq_list_handle +---------------- + + .. py:attribute:: freq_list_handle + + Sets which frequency list the signal generator produces. Create a frequency list using :py:meth:`nifgen.Session.create_freq_list`. :py:meth:`nifgen.Session.create_freq_list` returns a handle that you can use to identify the list. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Frequency List Handle** + - C Attribute: **NIFGEN_ATTR_FREQ_LIST_HANDLE** + +func_amplitude +-------------- + + .. py:attribute:: func_amplitude + + Controls the amplitude of the standard waveform that the signal generator produces. This value is the amplitude at the output terminal. + For example, to produce a waveform ranging from -5.00 V to +5.00 V, set the amplitude to 10.00 V. + set the Waveform parameter to :py:data:`~nifgen.Waveform.DC`. + Units: Vpk-pk + + + + .. note:: This parameter does not affect signal generator behavior when you + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_amplitude` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_amplitude` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Amplitude** + - C Attribute: **NIFGEN_ATTR_FUNC_AMPLITUDE** + +func_buffer_size +---------------- + + .. py:attribute:: func_buffer_size + + This property contains the number of samples used in the standard method waveform buffer. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. + implementation of Standard Method Mode on your device. + + + + .. note:: Refer to the Standard Method Mode topic for more information on the + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Standard Function Mode:Buffer Size** + - C Attribute: **NIFGEN_ATTR_FUNC_BUFFER_SIZE** + +func_dc_offset +-------------- + + .. py:attribute:: func_dc_offset + + Controls the DC offset of the standard waveform that the signal generator produces. This value is the offset at the output terminal. The value is the offset from ground to the center of the waveform that you specify with the Waveform parameter. + For example, to configure a waveform with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set DC Offset to 5.00 V. + Units: volts + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_dc_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_dc_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:DC Offset** + - C Attribute: **NIFGEN_ATTR_FUNC_DC_OFFSET** + +func_duty_cycle_high +-------------------- + + .. py:attribute:: func_duty_cycle_high + + Controls the duty cycle of the square wave the signal generator produces. Specify this property as a percentage of the time the square wave is high in a cycle. + set the Waveform parameter to :py:data:`~nifgen.Waveform.SQUARE`. + Units: Percentage of time the waveform is high + + + + .. note:: This parameter only affects signal generator behavior when you + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_duty_cycle_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_duty_cycle_high` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Duty Cycle High** + - C Attribute: **NIFGEN_ATTR_FUNC_DUTY_CYCLE_HIGH** + +func_frequency +-------------- + + .. py:attribute:: func_frequency + + Controls the frequency of the standard waveform that the signal generator produces. + Units: hertz + (1) This parameter does not affect signal generator behavior when you set the Waveform parameter of the :py:meth:`nifgen.Session.configure_standard_waveform` method to :py:data:`~nifgen.Waveform.DC`. + (2) For :py:data:`~nifgen.Waveform.SINE`, the range is between 0 MHz and 16 MHz, but the range is between 0 MHz and 1 MHz for all other waveforms. + + + + .. note:: : + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Standard Function Mode:Frequency** + - C Attribute: **NIFGEN_ATTR_FUNC_FREQUENCY** + +func_max_buffer_size +-------------------- + + .. py:attribute:: func_max_buffer_size + + This property sets the maximum number of samples that can be used in the standard method waveform buffer. Increasing this value may increase the quality of the waveform. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. + implementation of Standard Method Mode on your device. + + + + .. note:: Refer to the Standard Method Mode topic for more information on the + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Standard Function Mode:Maximum Buffer Size** + - C Attribute: **NIFGEN_ATTR_FUNC_MAX_BUFFER_SIZE** + +func_start_phase +---------------- + + .. py:attribute:: func_start_phase + + Controls horizontal offset of the standard waveform the signal generator produces. Specify this property in degrees of one waveform cycle. + A start phase of 180 degrees means output generation begins halfway through the waveform. A start phase of 360 degrees offsets the output by an entire waveform cycle, which is identical to a start phase of 0 degrees. + set the Waveform parameter to :py:data:`~nifgen.Waveform.DC`. + Units: Degrees of one cycle + + + + .. note:: This parameter does not affect signal generator behavior when you + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_start_phase` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_start_phase` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Start Phase** + - C Attribute: **NIFGEN_ATTR_FUNC_START_PHASE** + +func_waveform +------------- + + .. py:attribute:: func_waveform + + This channel-based property specifies which standard waveform the signal generator produces. + Use this property only when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.FUNC`. + :py:data:`~nifgen.Waveform.SINE` - Sinusoid waveform + :py:data:`~nifgen.Waveform.SQUARE` - Square waveform + :py:data:`~nifgen.Waveform.TRIANGLE` - Triangle waveform + :py:data:`~nifgen.Waveform.RAMP_UP` - Positive ramp waveform + :py:data:`~nifgen.Waveform.RAMP_DOWN` - Negative ramp waveform + :py:data:`~nifgen.Waveform.DC` - Constant voltage + :py:data:`~nifgen.Waveform.NOISE` - White noise + :py:data:`~nifgen.Waveform.USER` - User-defined waveform as defined with + :py:meth:`nifgen.Session.define_user_standard_waveform` + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_waveform` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_waveform` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.Waveform | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Waveform** + - C Attribute: **NIFGEN_ATTR_FUNC_WAVEFORM** + +idle_behavior +------------- + + .. py:attribute:: idle_behavior + + Specifies the behavior of the output during the Idle state. The output can be configured to hold the last generated voltage before entering the Idle state or jump to the Idle Value. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------+ + | Characteristic | Value | + +=======================+====================+ + | Datatype | enums.IdleBehavior | + +-----------------------+--------------------+ + | Permissions | read-write | + +-----------------------+--------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Advanced:Idle Behavior** + - C Attribute: **NIFGEN_ATTR_IDLE_BEHAVIOR** + +idle_value +---------- + + .. py:attribute:: idle_value + + Specifies the value to generate in the Idle state. The Idle Behavior must be configured to jump to this value. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Advanced:Idle Value** + - C Attribute: **NIFGEN_ATTR_IDLE_VALUE** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + A string that contains the firmware revision information for the device that you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Firmware Revision** + - C Attribute: **NIFGEN_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + A string that contains the name of the device manufacturer you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Manufacturer** + - C Attribute: **NIFGEN_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + A string that contains the model number or name of the device that you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Model** + - C Attribute: **NIFGEN_ATTR_INSTRUMENT_MODEL** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Indicates the resource descriptor that NI-FGEN uses to identify the physical device. + If you initialize NI-FGEN with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration Utility. + If you initialize NI-FGEN with the resource descriptor, this property contains that value. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** + - C Attribute: **NIFGEN_ATTR_IO_RESOURCE_DESCRIPTOR** + +load_impedance +-------------- + + .. py:attribute:: load_impedance + + This channel-based property specifies the load impedance connected to the analog output of the channel. If you set this property to :py:data:`~nifgen.NIFGEN_VAL_MATCHED_LOAD_IMPEDANCE` (-1.0), NI-FGEN assumes that the load impedance matches the output impedance. NI-FGEN compensates to give the desired peak-to-peak voltage amplitude or arbitrary gain (relative to 1 V). + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Load Impedance** + - C Attribute: **NIFGEN_ATTR_LOAD_IMPEDANCE** + +logical_name +------------ + + .. py:attribute:: logical_name + + A string containing the logical name that you specified when opening the current IVI session. + You may pass a logical name to :py:meth:`nifgen.Session.init` or :py:meth:`nifgen.Session.InitWithOptions`. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NIFGEN_ATTR_LOGICAL_NAME** + +marker_events_count +------------------- + + .. py:attribute:: marker_events_count + + Returns the number of markers supported by the device. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SCRIPT`. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Marker Events Count** + - C Attribute: **NIFGEN_ATTR_MARKER_EVENTS_COUNT** + +marker_event_output_terminal +---------------------------- + + .. py:attribute:: marker_event_output_terminal + + Specifies the destination terminal for the Marker Event. + + + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_output_terminal` + + To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.marker_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | markers | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Output Terminal** + - C Attribute: **NIFGEN_ATTR_MARKER_EVENT_OUTPUT_TERMINAL** + +marker_event_pulse_width +------------------------ + + .. py:attribute:: marker_event_pulse_width + + Specifies the pulse width for the Marker Event. + + + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` + + To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | markers | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Pulse:Width Value** + - C Attribute: **NIFGEN_ATTR_MARKER_EVENT_PULSE_WIDTH** + +marker_event_pulse_width_units +------------------------------ + + .. py:attribute:: marker_event_pulse_width_units + + Specifies the pulse width units for the Marker Event. + + + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` + + To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width_units` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.EventPulseWidthUnits | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | markers | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Pulse:Width Units** + - C Attribute: **NIFGEN_ATTR_MARKER_EVENT_PULSE_WIDTH_UNITS** + +max_freq_list_duration +---------------------- + + .. py:attribute:: max_freq_list_duration + + Returns the maximum duration of any one step in the frequency list. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Maximum Frequency List Duration** + - C Attribute: **NIFGEN_ATTR_MAX_FREQ_LIST_DURATION** + +max_freq_list_length +-------------------- + + .. py:attribute:: max_freq_list_length + + Returns the maximum number of steps that can be in a frequency list. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Maximum Frequency List Length** + - C Attribute: **NIFGEN_ATTR_MAX_FREQ_LIST_LENGTH** + +max_loop_count +-------------- + + .. py:attribute:: max_loop_count + + Returns the maximum number of times that the signal generator can repeat a waveform in a sequence. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Max Loop Count** + - C Attribute: **NIFGEN_ATTR_MAX_LOOP_COUNT** + +max_num_freq_lists +------------------ + + .. py:attribute:: max_num_freq_lists + + Returns the maximum number of frequency lists the signal generator allows. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Maximum Number Of Frequency Lists** + - C Attribute: **NIFGEN_ATTR_MAX_NUM_FREQ_LISTS** + +max_num_sequences +----------------- + + .. py:attribute:: max_num_sequences + + Returns the maximum number of arbitrary sequences that the signal generator allows. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Max Number of Sequences** + - C Attribute: **NIFGEN_ATTR_MAX_NUM_SEQUENCES** + +max_num_waveforms +----------------- + + .. py:attribute:: max_num_waveforms + + Returns the maximum number of arbitrary waveforms that the signal generator allows. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Capabilities:Max Number of Waveforms** + - C Attribute: **NIFGEN_ATTR_MAX_NUM_WAVEFORMS** + +max_sequence_length +------------------- + + .. py:attribute:: max_sequence_length + + Returns the maximum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Max Sequence Length** + - C Attribute: **NIFGEN_ATTR_MAX_SEQUENCE_LENGTH** + +max_waveform_size +----------------- + + .. py:attribute:: max_waveform_size + + Returns the size, in samples, of the largest waveform that can be created. This property reflects the space currently available, taking into account previously allocated waveforms and instructions. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Capabilities:Max Waveform Size** + - C Attribute: **NIFGEN_ATTR_MAX_WAVEFORM_SIZE** + +memory_size +----------- + + .. py:attribute:: memory_size + + The total amount of memory, in bytes, on the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Memory Size** + - C Attribute: **NIFGEN_ATTR_MEMORY_SIZE** + +min_freq_list_duration +---------------------- + + .. py:attribute:: min_freq_list_duration + + Returns the minimum number of steps that can be in a frequency list. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Minimum Frequency List Duration** + - C Attribute: **NIFGEN_ATTR_MIN_FREQ_LIST_DURATION** + +min_freq_list_length +-------------------- + + .. py:attribute:: min_freq_list_length + + Returns the minimum number of frequency lists that the signal generator allows. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Standard Function:Frequency List Mode:Minimum Frequency List Length** + - C Attribute: **NIFGEN_ATTR_MIN_FREQ_LIST_LENGTH** + +min_sequence_length +------------------- + + .. py:attribute:: min_sequence_length + + Returns the minimum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Arbitrary Sequence Mode:Min Sequence Length** + - C Attribute: **NIFGEN_ATTR_MIN_SEQUENCE_LENGTH** + +min_waveform_size +----------------- + + .. py:attribute:: min_waveform_size + + Returns the minimum number of points that the signal generator allows in an arbitrary waveform. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Capabilities:Min Waveform Size** + - C Attribute: **NIFGEN_ATTR_MIN_WAVEFORM_SIZE** + +module_revision +--------------- + + .. py:attribute:: module_revision + + A string that contains the module revision for the device that you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Instrument Identification:Module Revision** + - C Attribute: **NIFGEN_ATTR_MODULE_REVISION** + +channel_count +------------- + + .. py:attribute:: channel_count + + Indicates the number of channels that the specific instrument driver supports. + For each property for which IVI_VAL_MULTI_CHANNEL is set, the IVI Engine maintains a separate cache value for each channel. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Capabilities:Channel Count** + - C Attribute: **NIFGEN_ATTR_NUM_CHANNELS** + +output_enabled +-------------- + + .. py:attribute:: output_enabled + + This channel-based property specifies whether the signal that the signal generator produces appears at the output connector. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.output_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Output Enabled** + - C Attribute: **NIFGEN_ATTR_OUTPUT_ENABLED** + +output_impedance +---------------- + + .. py:attribute:: output_impedance + + This channel-based property specifies the signal generator output impedance at the output connector. NI signal sources modules have an output impedance of 50 ohms and an optional 75 ohms on select modules. If the load impedance matches the output impedance, then the voltage at the signal output connector is at the needed level. The voltage at the signal output connector varies with load output impedance, up to doubling the voltage for a high-impedance load. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.output_impedance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Output Impedance** + - C Attribute: **NIFGEN_ATTR_OUTPUT_IMPEDANCE** + +output_mode +----------- + + .. py:attribute:: output_mode + + Sets which output mode the signal generator will use. The value you specify determines which methods and properties you use to configure the waveform the signal generator produces. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. + + The following table lists the characteristics of this property. + + +-----------------------+------------------+ + | Characteristic | Value | + +=======================+==================+ + | Datatype | enums.OutputMode | + +-----------------------+------------------+ + | Permissions | read-write | + +-----------------------+------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Output Mode** + - C Attribute: **NIFGEN_ATTR_OUTPUT_MODE** + +ready_for_start_event_output_terminal +------------------------------------- + + .. py:attribute:: ready_for_start_event_output_terminal + + Specifies the destination terminal for the Ready for Start Event. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Start:Output Terminal** + - C Attribute: **NIFGEN_ATTR_READY_FOR_START_EVENT_OUTPUT_TERMINAL** + +reference_clock_source +---------------------- + + .. py:attribute:: reference_clock_source + + Specifies the reference clock source used by the signal generator. + The signal generator derives the frequencies and sample rates that it uses to generate waveforms from the source you specify. For example, when you set this property to ClkIn, the signal generator uses the signal it receives at the CLK IN front panel connector as the Reference clock. + To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ReferenceClockSource | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Reference Clock:Source** + - C Attribute: **NIFGEN_ATTR_REFERENCE_CLOCK_SOURCE** + +ref_clock_frequency +------------------- + + .. py:attribute:: ref_clock_frequency + + Sets the frequency of the signal generator reference clock. The signal generator uses the reference clock to derive frequencies and sample rates when generating output. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Reference Clock:Frequency** + - C Attribute: **NIFGEN_ATTR_REF_CLOCK_FREQUENCY** + +sample_clock_source +------------------- + + .. py:attribute:: sample_clock_source + + Specifies the Sample clock source. If you specify a divisor with the :py:attr:`nifgen.Session.exported_sample_clock_divisor` property, the Sample clock exported with the :py:attr:`nifgen.Session.exported_sample_clock_output_terminal` property is the value of the Sample clock after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. + To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.SampleClockSource | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock:Source** + - C Attribute: **NIFGEN_ATTR_SAMPLE_CLOCK_SOURCE** + +sample_clock_timebase_rate +-------------------------- + + .. py:attribute:: sample_clock_timebase_rate + + Specifies the Sample clock timebase rate. This property applies only to external Sample clock timebases. + To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock Timebase:Rate** + - C Attribute: **NIFGEN_ATTR_SAMPLE_CLOCK_TIMEBASE_RATE** + +sample_clock_timebase_source +---------------------------- + + .. py:attribute:: sample_clock_timebase_source + + Specifies the Sample Clock Timebase source. + To change the device configuration, call the :py:meth:`nifgen.Session.abort` method or wait for the generation to complete. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.SampleClockTimebaseSource | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocks:Sample Clock Timebase:Source** + - C Attribute: **NIFGEN_ATTR_SAMPLE_CLOCK_TIMEBASE_SOURCE** + +script_to_generate +------------------ + + .. py:attribute:: script_to_generate + + Specifies which script the generator produces. To configure the generator to run a particular script, set this property to the name of the script. Use :py:meth:`nifgen.Session.write_script` to create multiple scripts. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SCRIPT`. + + + + .. note:: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call :py:meth:`nifgen.Session.abort` or wait for the generation to complete. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Script Mode:Script to Generate** + - C Attribute: **NIFGEN_ATTR_SCRIPT_TO_GENERATE** + +script_triggers_count +--------------------- + + .. py:attribute:: script_triggers_count + + Specifies the number of Script triggers supported by the device. Use this property when :py:attr:`nifgen.Session.output_mode` is set to :py:data:`~nifgen.OutputMode.SCRIPT`. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Script Triggers Count** + - C Attribute: **NIFGEN_ATTR_SCRIPT_TRIGGERS_COUNT** + +script_trigger_type +------------------- + + .. py:attribute:: script_trigger_type + + Specifies the Script trigger type. Depending upon the value of this property, additional properties may need to be configured to fully configure the trigger. + + + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.script_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.ScriptTriggerType | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Trigger Type** + - C Attribute: **NIFGEN_ATTR_SCRIPT_TRIGGER_TYPE** + +serial_number +------------- + + .. py:attribute:: serial_number + + The signal generator's serial number. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Serial Number** + - C Attribute: **NIFGEN_ATTR_SERIAL_NUMBER** + +simulate +-------- + + .. py:attribute:: simulate + + Specifies whether to simulate NI-FGEN I/O operations. If simulation is enabled, NI-FGEN methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute, but they do not perform device I/O. For output parameters that represent device data, NI-FGEN methods return calculated values. + Default Value: False + Use :py:meth:`nifgen.Session.InitWithOptions` to override default value. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:User Options:Simulate** + - C Attribute: **NIFGEN_ATTR_SIMULATE** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + Returns a brief description of NI-FGEN. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Identification:Description** + - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +major_version +------------- + + .. py:attribute:: major_version + + Returns the major version number of NI-FGEN. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Obsolete:Major Version** + - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_MAJOR_VERSION** + +minor_version +------------- + + .. py:attribute:: minor_version + + Returns the minor version number of NI-FGEN. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Obsolete:Minor Version** + - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_MINOR_VERSION** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + A string that contains additional version information about NI-FGEN. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Identification:Revision** + - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + A string that contains the name of the vendor that supplies NI-FGEN. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Identification:Driver Vendor** + - C Attribute: **NIFGEN_ATTR_SPECIFIC_DRIVER_VENDOR** + +started_event_output_terminal +----------------------------- + + .. py:attribute:: started_event_output_terminal + + Specifies the destination terminal for the Started Event. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Started:Output Terminal** + - C Attribute: **NIFGEN_ATTR_STARTED_EVENT_OUTPUT_TERMINAL** + +started_event_pulse_width +------------------------- + + .. py:attribute:: started_event_pulse_width + + Specifies the pulse width for the Started Event. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Started:Pulse:Width Value** + - C Attribute: **NIFGEN_ATTR_STARTED_EVENT_PULSE_WIDTH** + +started_event_pulse_width_units +------------------------------- + + .. py:attribute:: started_event_pulse_width_units + + Specifies the pulse width units for the Started Event. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.EventPulseWidthUnits | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Started:Pulse:Width Units** + - C Attribute: **NIFGEN_ATTR_STARTED_EVENT_PULSE_WIDTH_UNITS** + +start_trigger_type +------------------ + + .. py:attribute:: start_trigger_type + + Specifies whether you want the Start trigger to be a Digital Edge, or Software trigger. You can also choose None as the value for this property. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.StartTriggerType | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Trigger Type** + - C Attribute: **NIFGEN_ATTR_START_TRIGGER_TYPE** + +streaming_space_available_in_waveform +------------------------------------- + + .. py:attribute:: streaming_space_available_in_waveform + + Indicates the space available (in samples) in the streaming waveform for writing new data. During generation, this available space may be in multiple locations with, for example, part of the available space at the end of the streaming waveform and the rest at the beginning. In this situation, writing a block of waveform data the size of the total space available in the streaming waveform causes NI-FGEN to return an error, as NI-FGEN will not wrap the data from the end of the waveform to the beginning and cannot write data past the end of the waveform buffer. + To avoid writing data past the end of the waveform, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. + Used in conjunction with the :py:attr:`nifgen.Session.streaming_waveform_handle` or :py:attr:`nifgen.Session.streaming_waveform_name` properties. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Space Available in Streaming Waveform** + - C Attribute: **NIFGEN_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM** + +streaming_waveform_handle +------------------------- + + .. py:attribute:: streaming_waveform_handle + + Specifies the waveform handle of the waveform used to continuously stream data during generation. This property defaults to -1 when no streaming waveform is specified. + Used in conjunction with :py:attr:`nifgen.Session.streaming_space_available_in_waveform`. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Streaming Waveform Handle** + - C Attribute: **NIFGEN_ATTR_STREAMING_WAVEFORM_HANDLE** + +streaming_waveform_name +----------------------- + + .. py:attribute:: streaming_waveform_name + + Specifies the name of the waveform used to continuously stream data during generation. This property defaults to // when no streaming waveform is specified. + Use in conjunction with :py:attr:`nifgen.Session.streaming_space_available_in_waveform`. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Streaming Waveform Name** + - C Attribute: **NIFGEN_ATTR_STREAMING_WAVEFORM_NAME** + +streaming_write_timeout +----------------------- + + .. py:attribute:: streaming_write_timeout + + Specifies the maximum amount of time allowed to complete a streaming write operation. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Data Transfer:Streaming:Streaming Write Timeout** + - C Attribute: **NIFGEN_ATTR_STREAMING_WRITE_TIMEOUT** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + Returns a model code of the device. For NI-FGEN versions that support more than one device, this property contains a comma-separated list of supported device models. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Instrument:Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** + - C Attribute: **NIFGEN_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +terminal_configuration +---------------------- + + .. py:attribute:: terminal_configuration + + Specifies whether gain and offset values will be analyzed based on single-ended or differential operation. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].terminal_configuration` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.terminal_configuration` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.TerminalConfiguration | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Terminal Configuration** + - C Attribute: **NIFGEN_ATTR_TERMINAL_CONFIGURATION** + +trigger_mode +------------ + + .. py:attribute:: trigger_mode + + Controls the trigger mode. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].trigger_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.trigger_mode` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerMode | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Trigger Mode** + - C Attribute: **NIFGEN_ATTR_TRIGGER_MODE** + +wait_behavior +------------- + + .. py:attribute:: wait_behavior + + Specifies the behavior of the output while waiting for a script trigger or during a wait instruction. The output can be configured to hold the last generated voltage before waiting or jump to the Wait Value. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------+ + | Characteristic | Value | + +=======================+====================+ + | Datatype | enums.WaitBehavior | + +-----------------------+--------------------+ + | Permissions | read-write | + +-----------------------+--------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Advanced:Wait Behavior** + - C Attribute: **NIFGEN_ATTR_WAIT_BEHAVIOR** + +wait_value +---------- + + .. py:attribute:: wait_value + + Specifies the value to generate while waiting. The Wait Behavior must be configured to jump to this value. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output:Advanced:Wait Value** + - C Attribute: **NIFGEN_ATTR_WAIT_VALUE** + +waveform_quantum +---------------- + + .. py:attribute:: waveform_quantum + + The size of each arbitrary waveform must be a multiple of a quantum value. This property returns the quantum value that the signal generator allows. + For example, when this property returns a value of 8, all waveform sizes must be a multiple of 8. Typically, this value is constant for the signal generator. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arbitrary Waveform:Capabilities:Waveform Quantum** + - C Attribute: **NIFGEN_ATTR_WAVEFORM_QUANTUM** + + +NI-TClk Support +=============== + + .. py:attribute:: tclk + + This is used to get and set NI-TClk attributes on the session. + + .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. + + +.. contents:: Session diff --git a/docs/nifgen/conf.py b/docs/nifgen/conf.py new file mode 100644 index 0000000000..64f022df0e --- /dev/null +++ b/docs/nifgen/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-FGEN Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-FGEN Python API' +copyright = '2017-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIFGENPythonAPI.tex', 'NI-FGEN Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nifgenpythonapi', 'NI-FGEN Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIFGENPythonAPI', 'NI-FGEN Python API Documentation', + author, 'NIFGENPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nifgen/enums.rst b/docs/nifgen/enums.rst new file mode 100644 index 0000000000..0ee2dd01c0 --- /dev/null +++ b/docs/nifgen/enums.rst @@ -0,0 +1,905 @@ +Enums +===== + +Enums used in NI-FGEN + +.. py:currentmodule:: nifgen + + +AnalogPath +---------- + +.. py:class:: AnalogPath + + .. py:attribute:: AnalogPath.MAIN + + + + Specifies use of the main path. NI-FGEN chooses the amplifier based on the user-specified gain. + + + + + + .. py:attribute:: AnalogPath.DIRECT + + + + Specifies use of the direct path. + + + + + + .. py:attribute:: AnalogPath.FIXED_LOW_GAIN + + + + Specifies use of the low-gain amplifier in the main path, no matter what value the user specifies for gain. This setting limits the output range. + + + + + + .. py:attribute:: AnalogPath.FIXED_HIGH_GAIN + + + + Specifies use of the high-gain amplifier in the main path. + + + + + +BusType +------- + +.. py:class:: BusType + + .. py:attribute:: BusType.INVALID + + + + Indicates an invalid bus type. + + + + + + .. py:attribute:: BusType.AT + + + + Indicates the signal generator is the AT bus type. + + + + + + .. py:attribute:: BusType.PCI + + + + Indicates the signal generator is the PCI bus type. + + + + + + .. py:attribute:: BusType.PXI + + + + Indicates the signal generator is the PXI bus type. + + + + + + .. py:attribute:: BusType.VXI + + + + Indicates the signal generator is the VXI bus type. + + + + + + .. py:attribute:: BusType.PCMCIA + + + + Indicates the signal generator is the PCI-CMA bus type. + + + + + + .. py:attribute:: BusType.PXIE + + + + Indicates the signal generator is the PXI Express bus type. + + + + + +ByteOrder +--------- + +.. py:class:: ByteOrder + + .. py:attribute:: ByteOrder.LITTLE + + + + .. py:attribute:: ByteOrder.BIG + + + +ClockMode +--------- + +.. py:class:: ClockMode + + .. py:attribute:: ClockMode.HIGH_RESOLUTION + + + + High resolution sampling—Sample rate is generated by a high–resolution clock source. + + + + + + .. py:attribute:: ClockMode.DIVIDE_DOWN + + + + Divide down sampling—Sample rates are generated by dividing the source frequency. + + + + + + .. py:attribute:: ClockMode.AUTOMATIC + + + + Automatic Selection—NI-FGEN selects between the divide–down and high–resolution clocking modes. + + + + + +DataMarkerEventLevelPolarity +---------------------------- + +.. py:class:: DataMarkerEventLevelPolarity + + .. py:attribute:: DataMarkerEventLevelPolarity.HIGH + + + + When the operation is ready to start, the Ready for Start event level is high. + + + + + + .. py:attribute:: DataMarkerEventLevelPolarity.LOW + + + + When the operation is ready to start, the Ready for Start event level is low. + + + + + +EventPulseWidthUnits +-------------------- + +.. py:class:: EventPulseWidthUnits + + .. py:attribute:: EventPulseWidthUnits.SAMPLE_CLOCK_PERIODS + + + + Specifies the pulse width in Sample clock periods. + + + + + + .. py:attribute:: EventPulseWidthUnits.SECONDS + + + + Specifies the pulse width in seconds. + + + + + +HardwareState +------------- + +.. py:class:: HardwareState + + .. py:attribute:: HardwareState.IDLE + + + + .. py:attribute:: HardwareState.WAITING_FOR_START_TRIGGER + + + + .. py:attribute:: HardwareState.RUNNING + + + + .. py:attribute:: HardwareState.DONE + + + + .. py:attribute:: HardwareState.HARDWARE_ERROR + + + +IdleBehavior +------------ + +.. py:class:: IdleBehavior + + .. py:attribute:: IdleBehavior.HOLD_LAST + + + + While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. + + + + + + .. py:attribute:: IdleBehavior.JUMP_TO + + + + While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. + + + + + +OutputMode +---------- + +.. py:class:: OutputMode + + .. py:attribute:: OutputMode.FUNC + + + + Standard Method mode— Generates standard method waveforms such as sine, square, triangle, and so on. + + + + + + .. py:attribute:: OutputMode.ARB + + + + Arbitrary waveform mode—Generates waveforms from user-created/provided waveform arrays of numeric data. + + + + + + .. py:attribute:: OutputMode.SEQ + + + + Arbitrary sequence mode — Generates downloaded waveforms in an order your specify. + + + + + + .. py:attribute:: OutputMode.FREQ_LIST + + + + Frequency List mode—Generates a standard method using a list of frequencies you define. + + + + + + .. py:attribute:: OutputMode.SCRIPT + + + + **Script mode—**\ Allows you to use scripting to link and loop multiple + waveforms in complex combinations. + + + + + +ReferenceClockSource +-------------------- + +.. py:class:: ReferenceClockSource + + .. py:attribute:: ReferenceClockSource.CLOCK_IN + + + + Specifies that the CLK IN input signal from the front panel connector is + used as the Reference Clock source. + + + + + + .. py:attribute:: ReferenceClockSource.NONE + + + + Specifies that a Reference Clock is not used. + + + + + + .. py:attribute:: ReferenceClockSource.ONBOARD_REFERENCE_CLOCK + + + + Specifies that the onboard Reference Clock is used as the Reference + Clock source. + + + + + + .. py:attribute:: ReferenceClockSource.PXI_CLOCK + + + + Specifies that the PXI Clock is used as the Reference Clock source. + + + + + + .. py:attribute:: ReferenceClockSource.RTSI_7 + + + + Specifies that the RTSI line 7 is used as the Reference Clock source. + + + + + +RelativeTo +---------- + +.. py:class:: RelativeTo + + .. py:attribute:: RelativeTo.START + + + + .. py:attribute:: RelativeTo.CURRENT + + + +SampleClockSource +----------------- + +.. py:class:: SampleClockSource + + .. py:attribute:: SampleClockSource.CLOCK_IN + + + + Specifies that the signal at the CLK IN front panel connector is used as + the Sample Clock source. + + + + + + .. py:attribute:: SampleClockSource.DDC_CLOCK_IN + + + + Specifies that the Sample Clock from the DDC connector is used as the Sample + Clock source. + + + + + + .. py:attribute:: SampleClockSource.ONBOARD_CLOCK + + + + Specifies that the onboard clock is used as the Sample Clock source. + + + + + + .. py:attribute:: SampleClockSource.PXI_STAR_LINE + + + + Specifies that the PXI\_STAR trigger line is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_0_RTSI_0 + + + + Specifies that the PXI or RTSI line 0 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_1_RTSI_1 + + + + Specifies that the PXI or RTSI line 1 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_2_RTSI_2 + + + + Specifies that the PXI or RTSI line 2 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_3_RTSI_3 + + + + Specifies that the PXI or RTSI line 3 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_4_RTSI_4 + + + + Specifies that the PXI or RTSI line 4 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_5_RTSI_5 + + + + Specifies that the PXI or RTSI line 5 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_6_RTSI_6 + + + + Specifies that the PXI or RTSI line 6 is used as the Sample Clock + source. + + + + + + .. py:attribute:: SampleClockSource.PXI_TRIGGER_LINE_7_RTSI_7 + + + + Specifies that the PXI or RTSI line 7 is used as the Sample Clock + source. + + + + + +SampleClockTimebaseSource +------------------------- + +.. py:class:: SampleClockTimebaseSource + + .. py:attribute:: SampleClockTimebaseSource.CLOCK_IN + + + + Specifies that the external signal on the CLK IN front panel connector + is used as the source. + + + + + + .. py:attribute:: SampleClockTimebaseSource.ONBOARD_CLOCK + + + + Specifies that the onboard Sample Clock timebase is used as the source. + + + + + +ScriptTriggerDigitalEdgeEdge +---------------------------- + +.. py:class:: ScriptTriggerDigitalEdgeEdge + + .. py:attribute:: ScriptTriggerDigitalEdgeEdge.RISING + + + + Rising Edge + + + + + + .. py:attribute:: ScriptTriggerDigitalEdgeEdge.FALLING + + + + Falling Edge + + + + + +ScriptTriggerType +----------------- + +.. py:class:: ScriptTriggerType + + .. py:attribute:: ScriptTriggerType.TRIG_NONE + + + + No trigger is configured. Signal generation starts immediately. + + + + + + .. py:attribute:: ScriptTriggerType.DIGITAL_EDGE + + + + Trigger is asserted when a digital edge is detected. + + + + + + .. py:attribute:: ScriptTriggerType.DIGITAL_LEVEL + + + + Trigger is asserted when a digital level is detected. + + + + + + .. py:attribute:: ScriptTriggerType.SOFTWARE_EDGE + + + + Trigger is asserted when a software edge is detected. + + + + + +StartTriggerDigitalEdgeEdge +--------------------------- + +.. py:class:: StartTriggerDigitalEdgeEdge + + .. py:attribute:: StartTriggerDigitalEdgeEdge.RISING + + + + Rising Edge + + + + + + .. py:attribute:: StartTriggerDigitalEdgeEdge.FALLING + + + + Falling Edge + + + + + +StartTriggerType +---------------- + +.. py:class:: StartTriggerType + + .. py:attribute:: StartTriggerType.TRIG_NONE + + + + None + + + + + + .. py:attribute:: StartTriggerType.DIGITAL_EDGE + + + + Digital Edge + + + + + + .. py:attribute:: StartTriggerType.SOFTWARE_EDGE + + + + Software Edge + + + + + + .. py:attribute:: StartTriggerType.P2P_ENDPOINT_FULLNESS + + + + P2P Endpoint Fullness + + + + + +TerminalConfiguration +--------------------- + +.. py:class:: TerminalConfiguration + + .. py:attribute:: TerminalConfiguration.SINGLE_ENDED + + + + Single-ended operation + + + + + + .. py:attribute:: TerminalConfiguration.DIFFERENTIAL + + + + Differential operation + + + + + +Trigger +------- + +.. py:class:: Trigger + + .. py:attribute:: Trigger.START + + + + .. py:attribute:: Trigger.SCRIPT + + + +TriggerMode +----------- + +.. py:class:: TriggerMode + + .. py:attribute:: TriggerMode.SINGLE + + + + Single Trigger Mode - The waveform you describe in the sequence list is generated only once by going through the entire staging list. Only one trigger is required to start the waveform generation. You can use Single trigger mode with the output mode in any mode. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. Then, the last stage generates repeatedly until you stop the waveform generation. + + + + + + .. py:attribute:: TriggerMode.CONTINUOUS + + + + Continuous Trigger Mode - The waveform you describe in the staging list generates infinitely by repeatedly cycling through the staging list. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. After the last stage completes, the waveform generation loops back to the start of the first stage and continues until it is stopped. Only one trigger is required to start the waveform generation. + + + + + + .. py:attribute:: TriggerMode.STEPPED + + + + Stepped Trigger Mode - After a start trigger is received, the waveform described by the first stage generates. Then, the device waits for the next trigger signal. On the next trigger, the waveform described by the second stage generates, and so on. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. After any stage has generated completely, the first eight samples of the next stage are repeated continuously until the next trigger is received. + trigger mode. + + + + .. note:: In Frequency List mode, Stepped trigger mode is the same as Burst + + + + .. py:attribute:: TriggerMode.BURST + + + + Burst Trigger Mode - After a start trigger is received, the waveform described by the first stage generates until another trigger is received. At the next trigger, the buffer of the previous stage completes, and then the waveform described by the second stage generates. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. In Frequency List mode, the duration instruction is ignored, and the trigger switches the frequency to the next frequency in the list. + trigger mode. + + + + .. note:: In Frequency List mode, Stepped trigger mode is the same as Burst + + + +WaitBehavior +------------ + +.. py:class:: WaitBehavior + + .. py:attribute:: WaitBehavior.HOLD_LAST + + + + While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. + + + + + + .. py:attribute:: WaitBehavior.JUMP_TO + + + + While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. + + + + + +Waveform +-------- + +.. py:class:: Waveform + + .. py:attribute:: Waveform.SINE + + + + Sinusoid waveform + + + + + + .. py:attribute:: Waveform.SQUARE + + + + Square waveform + + + + + + .. py:attribute:: Waveform.TRIANGLE + + + + Triange waveform + + + + + + .. py:attribute:: Waveform.RAMP_UP + + + + Positive ramp waveform + + + + + + .. py:attribute:: Waveform.RAMP_DOWN + + + + Negative ramp waveform + + + + + + .. py:attribute:: Waveform.DC + + + + Constant voltage + + + + + + .. py:attribute:: Waveform.NOISE + + + + White noise + + + + + + .. py:attribute:: Waveform.USER + + + + User-defined waveform as defined by the :py:meth:`nifgen.Session.define_user_standard_waveform` method. + + + + + + + diff --git a/docs/nifgen/errors.rst b/docs/nifgen/errors.rst new file mode 100644 index 0000000000..335216fafc --- /dev/null +++ b/docs/nifgen/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nifgen.errors + + .. exception:: Error + + Base exception type that all NI-FGEN exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: DriverError + + An error originating from the NI-FGEN driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-FGEN driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: DriverTooNewError + + An error due to the NI-FGEN driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nifgen.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: nifgen.errors + + .. exception:: DriverWarning + + A warning originating from the NI-FGEN driver + + + diff --git a/docs/nifgen/examples.rst b/docs/nifgen/examples.rst new file mode 100644 index 0000000000..3731f4bea5 --- /dev/null +++ b/docs/nifgen/examples.rst @@ -0,0 +1,41 @@ +Examples +======== + +`You can download all nifgen examples for latest version here `_ + +nifgen_arb_waveform.py +---------------------- + +.. literalinclude:: ../../src/nifgen/examples/nifgen_arb_waveform.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nifgen_arb_waveform.py) `_ + +nifgen_script.py +---------------- + +.. literalinclude:: ../../src/nifgen/examples/nifgen_script.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nifgen_script.py) `_ + +nifgen_standard_function.py +--------------------------- + +.. literalinclude:: ../../src/nifgen/examples/nifgen_standard_function.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nifgen_standard_function.py) `_ + +nifgen_trigger.py +----------------- + +.. literalinclude:: ../../src/nifgen/examples/nifgen_trigger.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nifgen_trigger.py) `_ + diff --git a/docs/nifgen/grpc_session_options.rst b/docs/nifgen/grpc_session_options.rst new file mode 100644 index 0000000000..976e7dd485 --- /dev/null +++ b/docs/nifgen/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-FGEN over gRPC + +.. py:currentmodule:: nifgen + + + +Creating a gRPC channel +----------------------- + +Using NI-FGEN over gRPC requires the ``grpc`` extra:: + + $ python -m pip install nifgen[grpc] + +Every NI-FGEN gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`nifgen.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-FGEN runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import nifgen + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = nifgen.GrpcSessionOptions(channel, '') + with nifgen.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`nifgen.SessionInitializationBehavior` diff --git a/docs/nifgen/index.rst b/docs/nifgen/index.rst new file mode 100644 index 0000000000..2e348cf87a --- /dev/null +++ b/docs/nifgen/index.rst @@ -0,0 +1,31 @@ + +NI-FGEN Python API Documentation +================================ + +.. include:: about_nifgen.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nifgen + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nifgen/installation.inc b/docs/nifgen/installation.inc new file mode 100644 index 0000000000..6bd29bc04d --- /dev/null +++ b/docs/nifgen/installation.inc @@ -0,0 +1,13 @@ + +.. _nifgen_installation-section: + +Installation +------------ + +As a prerequisite to using the **nifgen** module, you must install the NI-FGEN runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-FGEN**) can be installed with `pip `_:: + + $ python -m pip install nifgen + + diff --git a/docs/nifgen/nifgen.rst b/docs/nifgen/nifgen.rst new file mode 100644 index 0000000000..a0df8b7a93 --- /dev/null +++ b/docs/nifgen/nifgen.rst @@ -0,0 +1,9 @@ +nifgen module +============= + +.. include:: installation.inc + +.. include:: ../_static/nifgen_usage.inc + +.. include:: toc.inc + diff --git a/docs/nifgen/rep_caps.rst b/docs/nifgen/rep_caps.rst new file mode 100644 index 0000000000..5890a432ea --- /dev/null +++ b/docs/nifgen/rep_caps.rst @@ -0,0 +1,116 @@ +.. py:module:: nifgen + :noindex: + +.. py:currentmodule:: nifgen.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niFgen_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +channels +-------- + + .. py:attribute:: nifgen.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +script_triggers +--------------- + + .. py:attribute:: nifgen.Session.script_triggers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.script_triggers['0-2'].channel_enabled = True + + passes a string of :python:`'ScriptTrigger0, ScriptTrigger1, ScriptTrigger2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.script_triggers['ScriptTrigger0-ScriptTrigger2'].channel_enabled = True + + passes a string of :python:`'ScriptTrigger0, ScriptTrigger1, ScriptTrigger2'` to the set attribute function. + + +markers +------- + + .. py:attribute:: nifgen.Session.markers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.markers['0-2'].channel_enabled = True + + passes a string of :python:`'Marker0, Marker1, Marker2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.markers['Marker0-Marker2'].channel_enabled = True + + passes a string of :python:`'Marker0, Marker1, Marker2'` to the set attribute function. + + +data_markers +------------ + + .. py:attribute:: nifgen.Session.data_markers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.data_markers['0-2'].channel_enabled = True + + passes a string of :python:`'DataMarker0, DataMarker1, DataMarker2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.data_markers['DataMarker0-DataMarker2'].channel_enabled = True + + passes a string of :python:`'DataMarker0, DataMarker1, DataMarker2'` to the set attribute function. + + + diff --git a/docs/nifgen/status.inc b/docs/nifgen/status.inc new file mode 100644 index 0000000000..a639f1cd32 --- /dev/null +++ b/docs/nifgen/status.inc @@ -0,0 +1,46 @@ + +NI-FGEN Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-FGEN (nifgen) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nifgenLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nifgenPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nifgenDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nifgenOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nifgenOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nifgenLatestVersion| image:: http://img.shields.io/pypi/v/nifgen.svg + :alt: Latest NI-FGEN Version + :target: http://pypi.python.org/pypi/nifgen + + +.. |nifgenPythonVersion| image:: http://img.shields.io/pypi/pyversions/nifgen.svg + :alt: NI-FGEN supported Python versions + :target: http://pypi.python.org/pypi/nifgen + + +.. |nifgenDocs| image:: https://readthedocs.org/projects/nifgen/badge/?version=latest + :alt: NI-FGEN Python API Documentation Status + :target: https://nifgen.readthedocs.io/en/latest + + +.. |nifgenOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nifgen.svg + :alt: Open Issues + Pull Requests for NI-FGEN + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anifgen + + +.. |nifgenOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nifgen.svg + :alt: Pull Requests for NI-FGEN + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anifgen + + diff --git a/docs/nifgen/toc.inc b/docs/nifgen/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/nifgen/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/nimodinst/.readthedocs.yaml b/docs/nimodinst/.readthedocs.yaml new file mode 100644 index 0000000000..8b753c8417 --- /dev/null +++ b/docs/nimodinst/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nimodinst/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nimodinst/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nimodinst/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nimodinst/about_nimodinst.inc b/docs/nimodinst/about_nimodinst.inc new file mode 100644 index 0000000000..dae2e74696 --- /dev/null +++ b/docs/nimodinst/about_nimodinst.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nimodinst** module provides a Python API for NI-ModInst. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nimodinst** supports all the Operating Systems supported by NI-ModInst. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nimodinst**. + diff --git a/docs/nimodinst/class.rst b/docs/nimodinst/class.rst new file mode 100644 index 0000000000..3a9dac527a --- /dev/null +++ b/docs/nimodinst/class.rst @@ -0,0 +1,267 @@ +.. py:module:: nimodinst + +Session +======= + +.. py:class:: Session(self, driver) + + + + Creates a handle to a list of installed devices supported by the + specified driver. Call this method and pass in the name of an NI + instrument driver, such as "NI-SCOPE". This method + searches the system and constructs a list of all the installed devices + that are supported by that driver, and then returns both a handle to + this list and the number of devices found. The handle is used with other + methods to query for properties such as device name and model, and to + safely discard the list when finished. Note This handle reflects the + system state when the handle is created (that is, when you call this + method. If you remove devices from the system or rename them in + Measurement & Automation Explorer (MAX), this handle may not refer to an + accurate list of devices. You should destroy the handle using + :py:meth:`nimodinst.Session._close_installed_devices_session` and create a new handle using + this method. + + + + + + :param driver: + + + A string specifying the driver whose supported devices you want to find. + This string is not case-sensitive. Some examples are: NI-SCOPE niScope + NI-FGEN niFgen NI-HSDIO niHSDIO NI-DMM niDMM NI-SWITCH niSwitch Note If + you use the empty string for this parameter, NI-ModInst creates a list + of all Modular Instruments devices installed in the system. + + + + + :type driver: str + + +Methods +======= + +close +----- + + .. py:currentmodule:: nimodinst.Session + + .. py:method:: close() + + Cleans up the NI-ModInst session created by a call to + :py:meth:`nimodinst.Session._open_installed_devices_session`. Call this method when you are + finished using the session handle and do not use this handle again. + + + + .. note:: This method is not needed when using the session context manager + + + + +Properties +========== + +bus_number +---------- + + .. py:attribute:: bus_number + + The bus on which the device has been enumerated. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_BUS_NUMBER** + +chassis_number +-------------- + + .. py:attribute:: chassis_number + + The number of the chassis in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_CHASSIS_NUMBER** + +device_model +------------ + + .. py:attribute:: device_model + + The model of the device (for example, NI PXI-5122) + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_DEVICE_MODEL** + +device_name +----------- + + .. py:attribute:: device_name + + The name of the device, which can be used to open an instrument driver session for that device + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_DEVICE_NAME** + +max_pciexpress_link_width +------------------------- + + .. py:attribute:: max_pciexpress_link_width + + **MAX_PCIEXPRESS_LINK_WIDTH** + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_MAX_PCIEXPRESS_LINK_WIDTH** + +pciexpress_link_width +--------------------- + + .. py:attribute:: pciexpress_link_width + + **PCIEXPRESS_LINK_WIDTH** + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_PCIEXPRESS_LINK_WIDTH** + +serial_number +------------- + + .. py:attribute:: serial_number + + The serial number of the device + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | str | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_SERIAL_NUMBER** + +slot_number +----------- + + .. py:attribute:: slot_number + + The slot (for example, in a PXI chassis) in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_SLOT_NUMBER** + +socket_number +------------- + + .. py:attribute:: socket_number + + The socket number on which the device has been enumerated + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | int | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIMODINST_ATTR_SOCKET_NUMBER** + + +.. contents:: Session diff --git a/docs/nimodinst/conf.py b/docs/nimodinst/conf.py new file mode 100644 index 0000000000..8fed7fdc77 --- /dev/null +++ b/docs/nimodinst/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-ModInst Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-ModInst Python API' +copyright = '2017-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIModInstPythonAPI.tex', 'NI-ModInst Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nimodinstpythonapi', 'NI-ModInst Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIModInstPythonAPI', 'NI-ModInst Python API Documentation', + author, 'NIModInstPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nimodinst/errors.rst b/docs/nimodinst/errors.rst new file mode 100644 index 0000000000..9cbc86b33b --- /dev/null +++ b/docs/nimodinst/errors.rst @@ -0,0 +1,70 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: Error + + Base exception type that all NI-ModInst exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: DriverError + + An error originating from the NI-ModInst driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-ModInst driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: DriverTooNewError + + An error due to the NI-ModInst driver runtime being too new for this module. + +DriverWarning +------------- + + .. py:currentmodule:: nimodinst.errors + + .. exception:: DriverWarning + + A warning originating from the NI-ModInst driver + + + diff --git a/docs/nimodinst/examples.rst b/docs/nimodinst/examples.rst new file mode 100644 index 0000000000..4bbca650e7 --- /dev/null +++ b/docs/nimodinst/examples.rst @@ -0,0 +1,14 @@ +Examples +======== + +`You can download all nimodinst examples for latest version here `_ + +nimodinst_all_devices.py +------------------------ + +.. literalinclude:: ../../src/nimodinst/examples/nimodinst_all_devices.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nimodinst_all_devices.py) `_ + diff --git a/docs/nimodinst/index.rst b/docs/nimodinst/index.rst new file mode 100644 index 0000000000..d797664e42 --- /dev/null +++ b/docs/nimodinst/index.rst @@ -0,0 +1,31 @@ + +NI-ModInst Python API Documentation +=================================== + +.. include:: about_nimodinst.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nimodinst + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nimodinst/installation.inc b/docs/nimodinst/installation.inc new file mode 100644 index 0000000000..900aa8f7d1 --- /dev/null +++ b/docs/nimodinst/installation.inc @@ -0,0 +1,13 @@ + +.. _nimodinst_installation-section: + +Installation +------------ + +As a prerequisite to using the **nimodinst** module, you must install the NI-ModInst runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-ModInst**) can be installed with `pip `_:: + + $ python -m pip install nimodinst + + diff --git a/docs/nimodinst/nimodinst.rst b/docs/nimodinst/nimodinst.rst new file mode 100644 index 0000000000..c2811b4f38 --- /dev/null +++ b/docs/nimodinst/nimodinst.rst @@ -0,0 +1,9 @@ +nimodinst module +================ + +.. include:: installation.inc + +.. include:: ../_static/nimodinst_usage.inc + +.. include:: toc.inc + diff --git a/docs/nimodinst/status.inc b/docs/nimodinst/status.inc new file mode 100644 index 0000000000..348cdb0ab1 --- /dev/null +++ b/docs/nimodinst/status.inc @@ -0,0 +1,46 @@ + +NI-ModInst Python API Status +---------------------------- + ++-------------------------------+--------------------------+ +| NI-ModInst (nimodinst) | | ++===============================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+--------------------------+ +| PyPI Version | |nimodinstLatestVersion| | ++-------------------------------+--------------------------+ +| Supported Python Version | |nimodinstPythonVersion| | ++-------------------------------+--------------------------+ +| Documentation | |nimodinstDocs| | ++-------------------------------+--------------------------+ +| Open Issues | |nimodinstOpenIssues| | ++-------------------------------+--------------------------+ +| Open Pull Requests | |nimodinstOpenPRs| | ++-------------------------------+--------------------------+ + + +.. |nimodinstLatestVersion| image:: http://img.shields.io/pypi/v/nimodinst.svg + :alt: Latest NI-ModInst Version + :target: http://pypi.python.org/pypi/nimodinst + + +.. |nimodinstPythonVersion| image:: http://img.shields.io/pypi/pyversions/nimodinst.svg + :alt: NI-ModInst supported Python versions + :target: http://pypi.python.org/pypi/nimodinst + + +.. |nimodinstDocs| image:: https://readthedocs.org/projects/nimodinst/badge/?version=latest + :alt: NI-ModInst Python API Documentation Status + :target: https://nimodinst.readthedocs.io/en/latest + + +.. |nimodinstOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nimodinst.svg + :alt: Open Issues + Pull Requests for NI-ModInst + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Animodinst + + +.. |nimodinstOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nimodinst.svg + :alt: Pull Requests for NI-ModInst + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Animodinst + + diff --git a/docs/nimodinst/toc.inc b/docs/nimodinst/toc.inc new file mode 100644 index 0000000000..f4c0c73875 --- /dev/null +++ b/docs/nimodinst/toc.inc @@ -0,0 +1,9 @@ +API Reference +-------------- + +.. toctree:: + + class + errors + examples + diff --git a/docs/nirfsa/.readthedocs.yaml b/docs/nirfsa/.readthedocs.yaml new file mode 100644 index 0000000000..7e6f4f5051 --- /dev/null +++ b/docs/nirfsa/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nirfsa/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nirfsa/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nirfsa/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nirfsa/about_nirfsa.inc b/docs/nirfsa/about_nirfsa.inc new file mode 100644 index 0000000000..0ae36fb265 --- /dev/null +++ b/docs/nirfsa/about_nirfsa.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nirfsa** module provides a Python API for NI-RFSA. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nirfsa** supports all the Operating Systems supported by NI-RFSA. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nirfsa**. + diff --git a/docs/nirfsa/class.rst b/docs/nirfsa/class.rst new file mode 100644 index 0000000000..f2b59ed344 --- /dev/null +++ b/docs/nirfsa/class.rst @@ -0,0 +1,10726 @@ +.. py:module:: nirfsa + +Session +======= + +.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) + + + + Creates a new session for the device. + + This method sets the initial value of certain properties and sends initialization commands to reset all hardware modules to a known state necessary for NI-RFSA operation. + + To create a new session, pass the downconverter resource name for the RF vector signal analyzer to the **resource name** parameter. + + You can access the device session this VI creates using the NI-RFSA Soft Front Panel (SFP). Accessing the device session with the SFP can help you debug your code. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about accessing your session with the SFP. + + ---- + **Note** + Before initializing your device, you must first associate the modules that comprise your device in MAX. After associating the modules, pass the resource name of the device to this method to initialize all the modules. Refer to `Associating NI-RFSA Modules `_ for information about MAX association. + + ---- + + ---- + **Note** + For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending *ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Driver Setup Options `_ + + + + + + :param resource_name: + + + Specifies the resource name of the device to initialize. + + For NI-RFSA devices, the syntax is the device name specified in MAX. The typical default name for your device in MAX is PXI1Slot2. You can rename your device by right-clicking the name in MAX, selecting **Rename** from the drop-down menu, and entering a new name. You can also pass in the name of an IVI logical name configured with the IVI Configuration utility. For additional information, refer to the **Installed Devices IVI** topic of the *Measurement & Automation Explorer Help*. + + Device names are not case-sensitive. However, IVI logical names are case-sensitive. If you use an IVI logical name, verify the name is identical to the name shown in the IVI Configuration Utility. + + + + + :type resource_name: str + + :param id_query: + + + Specifies whether you want NI-RFSA to perform an ID query. + + **Defined Values** : + + +--------------------------+ + | Description | + +==========================+ + | Perform ID query. | + +--------------------------+ + | Do not perform ID query. | + +--------------------------+ + + + :type id_query: bool + + :param reset_device: + + + Specifies whether the NI-RFSA device is reset during the initialization procedure. + + **Defined Values** : + + +----------------------+ + | Description | + +======================+ + | Reset the device. | + +----------------------+ + | Do not reset device. | + +----------------------+ + + + :type reset_device: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: nirfsa.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: abort() + + Stops an acquisition previously started with the :py:meth:`nirfsa.Session._initiate` method or the :py:meth:`nirfsa.Session.read_power_spectrum` method. + + You can also use the :py:meth:`nirfsa.Session.abort` method to stop a self-calibration. Calling this method is optional, unless you want to stop an acquisition before it is complete or you are continuously acquiring data. + + You can stop the following kinds of acquisitions: + + - Triggered spectrum acquisitions that have not yet been triggered + - Multispan acquisitions in progress + - Average spectrum acquisitions in progress + - Single-record spectrum acquisitions in progress + - Streaming in progress + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + +change_external_calibration_password +------------------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: change_external_calibration_password(old_password, new_password) + + Changes the password that is required to initialize an external calibration session. + + **Supported Devices**: PXIe-5601/5603/5605/5606, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param old_password: + + + Specifies the old (current) external calibration password. + + The maximum length of the password varies by device. + + + + + :type old_password: str + :param new_password: + + + Specifies the new (desired) external calibration password. + + The maximum length of the password varies by device. + + + + + :type new_password: str + +check_acquisition_status +------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: check_acquisition_status() + + Checks the status of the acquisition. + + Use this method to check for any errors that may occur during signal acquisition or to check whether the device has completed the acquisition operation. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI RF Vector Signal Analyzer State Diagram `_ + + + + + + :rtype: bool + :return: + + + Returns signal acquisition status. + + |Value |Description | + |:---------|:------------------------------------| + | True | Signal acquisition is complete. | + | False | Signal acquisition is not complete. | + + + + + +clear_self_calibrate_range +-------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: clear_self_calibrate_range() + + Clears the data obtained from the :py:meth:`nirfsa.Session.self_calibrate_range` method. + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + +close +----- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: close() + + Closes the session to the device. + + If you close a session that has Soft Front Panel (SFP) session access enabled, any application connected to the shared device session is no longer usable. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about using SFP session access. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: commit() + + Commits settings to hardware. + + Calling this method is optional. Settings are automatically committed to hardware when you call the :py:meth:`nirfsa.Session._initiate` method, the read IQ single record complex F64 method, or the :py:meth:`nirfsa.Session.read_power_spectrum` method. + + ---- + **Note** + This method does not wait for settling time, unlike the :py:meth:`nirfsa.Session._initiate` method. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI RF Vector Signal Analyzer State Diagram `_ + + + + + +configure_deembedding_table_interpolation_linear +------------------------------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_deembedding_table_interpolation_linear(port, table_name, format) + + Selects the linear interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + :param format: + + + Specifies the format of parameters to interpolate. **Defined Values** : + + +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=====================================================================+=========================================================================================================================================+ + | :py:data:`~nirfsa.LinearInterpolationFormat.REAL_AND_IMAGINARY` | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | + +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.LinearInterpolationFormat.MAGNITUDE_AND_PHASE` | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | + +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.LinearInterpolationFormat.MAGNITUDE_DB_AND_PHASE` | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | + +---------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + + :type format: :py:data:`nirfsa.LinearInterpolationFormat` + +configure_deembedding_table_interpolation_nearest +------------------------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_deembedding_table_interpolation_nearest(port, table_name) + + Selects the nearest interpolation method. + + NI-RFSA uses the parameters of the table nearest to the carrier frequency for de-embedding. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + +configure_deembedding_table_interpolation_spline +------------------------------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_deembedding_table_interpolation_spline(port, table_name) + + Selects the spline interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + +configure_digital_edge_advance_trigger +-------------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_digital_edge_advance_trigger(source, edge) + + Configures the device to wait for a digital edge Advance Trigger. + + The Advance Trigger indicates where a new record begins. + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + + :param source: + + + Specifies the source of the digital edge for the Advance Trigger. + + | Value | Description | + |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` ('PFI1') | The trigger is received on PFI 1. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1`('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type source: str + :param edge: + + + Specifies the trigger edge to detect. The default value is :py:data:`~nirfsa.AdvanceTriggerDigitalEdgeEdge.RISING`. + + | Value | Description | + |:------------------------------|:--------------------------------| + | :py:data:`~nirfsa.AdvanceTriggerDigitalEdgeEdge.RISING` (900) | NI-RFSA detects a rising edge. | + | :py:data:`~nirfsa.AdvanceTriggerDigitalEdgeEdge.FALLING` (901) | NI-RFSA detects a falling edge. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type edge: :py:data:`nirfsa.AdvanceTriggerDigitalEdgeEdge` + +configure_digital_edge_ref_trigger +---------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_digital_edge_ref_trigger(source, edge, pretrigger_samples=0) + + Configures the device to wait for a digital edge Reference Trigger to mark a reference point within the record. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + + :param source: + + + Specifies the source of the digital edge for the Reference trigger. + + |Value |Description | + |:-------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` ('PFI1') | The trigger is received on PFI 1. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1`('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type source: str + :param edge: + + + Specifies the trigger edge to detect. The default value is :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING`. + + |Value |Description | + |:------------------------------|:--------------------------------| + | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING` (900) | NI-RFSA detects a rising edge. | + | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.FALLING` (901) | NI-RFSA detects a falling edge. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type edge: :py:data:`nirfsa.ReferenceTriggerDigitalEdgeEdge` + :param pretrigger_samples: + + + Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. + + + + + :type pretrigger_samples: int + +configure_digital_edge_start_trigger +------------------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_digital_edge_start_trigger(source, edge) + + Configures the device to wait for a digital edge Start Trigger at the beginning of the acquisition. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + + :param source: + + + Specifies the source of the digital edge for the Start Trigger. + + | Value | Description | + |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` ('PFI1') | The trigger is received on PFI 1. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` ('PFI1') | The trigger is received on PFI 0 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1`('PFI2') | The trigger is received on PFI 1 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` ('PFI3') | The trigger is received on PFI 2 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` ('PFI4') | The trigger is received on PFI 3 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` ('PFI5') | The trigger is received on PFI 4 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` ('PFI6') | The trigger is received on PFI 5 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` ('PFI7') | The trigger is received on PFI 6 of the DIO Terminal. | + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` ('PFI8') | The trigger is received on PFI 7 of the DIO Terminal. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type source: str + :param edge: + + + Specifies the trigger edge to detect. The default value is :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING`. + + | Value | Description | + |:------------------------------|:--------------------------------| + | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING` (900) | NI-RFSA detects a rising edge. | + | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.FALLING` (901) | NI-RFSA detects a falling edge. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type edge: :py:data:`nirfsa.StartTriggerDigitalEdgeEdge` + +configure_iq_power_edge_ref_trigger +----------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_iq_power_edge_ref_trigger(source, level, slope, pretrigger_samples=0) + + Configures the device to wait for the complex power of the I/Q data to cross the specified threshold to mark a reference point within the record. + + To trigger on burst signals, add a minimum quiet time, configured with the :py:attr:`nirfsa.Session.ref_trigger_minimum_quiet_time` property, to ensure the trigger does not occur in the middle of a burst if the acquisition starts while a burst is being generated. The quiet time should be set to a value smaller than the time between bursts, but large enough to ignore power changes within a burst. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + + :param source: + + + Specifies the source of the RF signal for the power edge Reference trigger. The only supported value is "0". + + + + + :type source: str + :param level: + + + Specifies the threshold, in dBm, above or below which the device triggers. + + + + + :type level: float + :param slope: + + + Specifies whether the device detects a positive or negative slope on the trigger signal. The default value is :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING`. + + | Value | Description | + |:--------------------------------|:-------------------------------------------------| + | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` (1000) | NI-RFSA detects a rising edge (positive slope). | + | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.FALLING` (1001) | NI-RFSA detects a falling edge (negative slope). | + + + + + :type slope: :py:data:`nirfsa.ReferenceTriggerIqPowerEdgeSlope` + :param pretrigger_samples: + + + Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. + + + + + :type pretrigger_samples: int + +configure_ref_clock +------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_ref_clock(clock_source, ref_clock_rate) + + Configures the NI-RFSA device Reference Clock. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXI-5661 Reference Clock `_ + + `PXIe-5663 Timing Configurations `_ + + `PXIe-5665 Timing Configurations `_ + + `PXIe-5667 Timing Configurations `_ + + `PXIe-5668 Timing Configurations `_ + + `PXIe-5830 Timing Configurations `_ + + `PXIe-5831 Timing Configurations `_ + + + + + + :param clock_source: + + + specifies the source of the Reference Clock signal. + | Clock Source | Description | + |-----------------------|-------------| + | **Onboard Clock (default)** | Uses the onboard Reference Clock as the clock source.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to PXIe-5655 onboard clock. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to PXIe-5655 onboard clock. Use cables as shown in the Getting Started Guide. | + | **RefIn** | Uses the signal at the front panel REF IN connector.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT; lock external signal to PXIe-3621 REF IN.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT; lock external signal to PXIe-3622 REF IN.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT; lock external signal to PXIe-3623 REF IN.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to signal at REF IN on PXIe-5655. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to signal at REF IN on PXIe-5655. Use cables as shown in the Getting Started Guide. | + | **PXI Clock** | Uses the PXI_CLK signal present on the PXI backplane. | + | **PXI_ClkMaster** | Valid only for PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653.
**PXIe-5831 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3622 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN.
**PXIe-5832 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3623 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN. | + + + + + :type clock_source: :py:data:`nirfsa.ReferenceClockSource` + :param ref_clock_rate: + + + specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. This parameter is only valid when the **ref clock source** parameter is set to **RefIn**. The default value is Auto (-1.0), which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. Refer to the Reference Clock Rate property for possible values. + + + + + :type ref_clock_rate: float + +configure_software_edge_advance_trigger +--------------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_software_edge_advance_trigger() + + Configures the device to wait for a software Advance Trigger. + + The Advance Trigger indicates where a new record begins. The device waits until you call the :py:meth:`nirfsa.Session.send_software_edge_trigger` method to assert the trigger. + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + +configure_software_edge_ref_trigger +----------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_software_edge_ref_trigger(pretrigger_samples=0) + + Configures the device to wait for a software Reference Trigger to mark a reference point within the record. + + The device waits until you call the :py:meth:`nirfsa.Session.send_software_edge_trigger` method to assert the trigger. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + + :param pretrigger_samples: + + + Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. + + + + + :type pretrigger_samples: int + +configure_software_edge_start_trigger +------------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_software_edge_start_trigger() + + Configures the device to wait for a software Start Trigger at the beginning of the acquisition. + + The device waits until you call the :py:meth:`nirfsa.Session.send_software_edge_trigger` method to assert the trigger. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method or if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM`. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + +configure_spectrum_frequency +---------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: configure_spectrum_frequency(center_frequency=None, span=None, start_frequency=None, stop_frequency=None) + + Configures the frequency range of a spectrum acquisition. + + You can specify the frequency range using either center frequency and span, or start and stop frequencies. + + ---- + **Note** + If you configure the spectrum span to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_spectrum_frequency` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.configure_spectrum_frequency` + + + :param center_frequency: + + + Specifies the center frequency in a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **span**. + + + + + :type center_frequency: float + :param span: + + + Specifies the span of a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **center_frequency**. + + + + + :type span: float + :param start_frequency: + + + Specifies the lower limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **stop_frequency**. + + + + + :type start_frequency: float + :param stop_frequency: + + + Specifies the upper limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **start_frequency**. + + + + + :type stop_frequency: float + +create_deembedding_sparameter_table_array +----------------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, sparameter_orientation) + + Creates an s-parameter de-embedding table for the port from the input data. + + If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview`_ + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + + + + :type table_name: str + :param frequencies: + + + Specifies the frequencies for the :py:attr:`nirfsa.Session.SPARAMETER_TABLE` rows. Frequencies must be unique and in ascending order. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + :type frequencies: numpy.array(dtype=numpy.float64) + :param sparameter_table: + + + Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. + + + + + :type sparameter_table: numpy.array(dtype=numpy.complex128) + :param sparameter_orientation: + + + Specifies the orientation of the input data relative to the port on the DUT port. + + **Defined Values** : + + +------------------------------------------------------------+-----------------------------------------------------+ + | Name | Description | + +============================================================+=====================================================+ + | :py:data:`~nirfsa.SparameterOrientation.PORT1_TOWARDS_DUT` | Port 1 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+-----------------------------------------------------+ + | :py:data:`~nirfsa.SparameterOrientation.PORT2_TOWARDS_DUT` | Port 2 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+-----------------------------------------------------+ + + + :type sparameter_orientation: :py:data:`nirfsa.SparameterOrientation` + +create_deembedding_sparameter_table_s2p_file +-------------------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) + + Creates an S-parameter de-embedding table for the port based on the specified S2P file. + + If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview `_ + + `S-parameters `_ + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + + + + :type table_name: str + :param s2p_file_path: + + + Specifies the path to the S2P file that contains de-embedding information for the specified port. + + + + + :type s2p_file_path: str + :param sparameter_orientation: + + + Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : + + +------------------------------------------------------------+-----------------------------------------------------+ + | Name | Description | + +============================================================+=====================================================+ + | :py:data:`~nirfsa.SparameterOrientation.PORT1_TOWARDS_DUT` | Port 1 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+-----------------------------------------------------+ + | :py:data:`~nirfsa.SparameterOrientation.PORT2_TOWARDS_DUT` | Port 2 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+-----------------------------------------------------+ + + + :type sparameter_orientation: :py:data:`nirfsa.SparameterOrientation` + +delete_all_deembedding_tables +----------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: delete_all_deembedding_tables() + + Deletes all configured de-embedding tables for the session. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + +delete_deembedding_table +------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: delete_deembedding_table(port, table_name) + + Deletes the selected de-embedding table for a given port. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + +disable_advance_trigger +----------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: disable_advance_trigger() + + Configures the device to not use an Advance Trigger. + + This method is necessary only if you configured an Advance Trigger in the past and now want to disable it. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + +disable_ref_trigger +------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: disable_ref_trigger() + + Configures the device to not wait for a Reference Trigger to mark a reference point within a record. + + This method is necessary only if you previously configured a Reference trigger in the past and now want to disable it. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + +disable_start_trigger +--------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: disable_start_trigger() + + Configures the device to not wait for a Start Trigger at the beginning of the acquisition. + + This method is necessary only if you previously configured a Start Trigger in the past and now want to disable it. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + +enable_session_access +--------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: enable_session_access(enable) + + Enables or disables SFP session access for the specified instrument. + + SFP session access allows the NI-RFSA Soft Front Panel (SFP) to access a device with an existing open session and can help you debug your code. To enable session access, pass True to the **enabled** parameter. To disable session access, pass False to the **enabled** parameter. + + Refer to `Configuring SFP Session Access using LabWindows/CVI or C `_ for more information about SFP session access. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 + + ---- + **Note** + NI-RFSA does not support NI-TClk when driver session debugging is enabled. + + ---- + + + + + + :param enable: + + + Enables or disables SFP session access for the specified device. + + | Value | Description | + |:---------|:-------------------------| + | True | Enables session access. | + | False | Disables session access. | + + + + + :type enable: bool + +error_message +------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: error_message(error_code) + + Converts an error code returned by an NI-RFSA method into a user-readable string. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5840 + + + + + + :param error_code: + + + Passes the **errorCode** parameter that is returned from any NI-RFSA method. + + + + + :type error_code: int + + :rtype: str + :return: + + + Returns the user-readable message string that corresponds to the error code you specify. + + You must pass a ViChar array with 1024 bytes or more to this parameter. Only the first 1024 bytes of the array are used. + + + + + +fetch_iq_multi_record_into +-------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: fetch_iq_multi_record_into(iq_data_arrays, starting_record=0, number_of_records=None, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)) + + Fetches I/Q data from multiple records in an acquisition. + + A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_iq_multi_record` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.fetch_iq_multi_record` + + + :param iq_data_arrays: + + + Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q data. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + + + + :type iq_data_arrays: 2D numpy.array of numpy.complex64, 2D numpy.array of numpy.complex128 or interleaved complex data in the form of 2D numpy.array of numpy.int16 + :param starting_record: + + + Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. + + + + + :type starting_record: int + :param number_of_records: + + + Specifies the number of records to fetch. + + + + + :type number_of_records: int + :param number_of_samples: + + + Specifies the number of samples per record. + + + + + :type number_of_samples: int + :param timeout: + + + **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + +fetch_iq_single_record_into +--------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: fetch_iq_single_record_into(iq_data_array, record_number=0, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)) + + Fetches I/Q data from a single record in an acquisition. + + The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_iq_single_record` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.fetch_iq_single_record` + + + :param iq_data_array: + + + Specifies the pre-allocated numpy array to be filled with the acquired I/Q data. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + + + + :type iq_data_array: numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16 + :param record_number: + + + Specifies the record to retrieve. Record numbers are zero-based. + + + + + :type record_number: int + :param number_of_samples: + + + Specifies the number of samples to fetch. The value must specify the array size of the :py:attr:`nirfsa.Session.DATA` parameter. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + :type number_of_samples: int + :param timeout: + + + **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + +get_deembedding_sparameters +--------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_deembedding_sparameters() + + Returns the S-parameters used for de-embedding a measurement on the selected port. + + This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. + + If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: The port orientation for the returned S-parameters is normalized to :py:data:`~nirfsa.SparameterOrientation.PORT1_TOWARDS_DUT`. + + + + :rtype: numpy.array(dtype=numpy.complex128) + :return: + + + Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. + + + + + +get_ext_cal_last_date_and_time +------------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_ext_cal_last_date_and_time() + + Returns the date and time of the last successful external calibration. + + The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :rtype: hightime.datetime + :return: + + + + + + +get_ext_cal_recommended_interval +-------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_ext_cal_recommended_interval() + + Returns the recommended interval between external calibrations, in months. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :rtype: hightime.timedelta, datetime.timedelta, or int in months + :return: + + + Returns the recommended maximum interval between external calibrations, in months. + + + + + +get_fetch_backlog +----------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_fetch_backlog(record_number) + + Returns the number of points acquired that have not yet been fetched. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_fetch_backlog` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.get_fetch_backlog` + + + :param record_number: + + + Specifies the record from which to read the backlog. Record numbers are zero-based. + + + + + :type record_number: int + + :rtype: int + :return: + + + Returns the number of samples available to read for the requested record. + + + + + +get_frequency_response +---------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_frequency_response() + + Returns the requested device response type, based on current NI-RFSA settings. The PXI-5661 and PXIe-5663/5663E/5665/5667/5668 automatically corrects the IF and RF response when you set the Digital IF Equalization Enabled property to TRUE. If you are using external digitizer mode, you can use information returned from this VI to correct your measurement. + + Refer to the *Factory Calibration* topic for your device for more information about frequency-response calibration. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_frequency_response` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.get_frequency_response` + + + :rtype: tuple (frequencies, magnitude_response, phase_response) + + WHERE + + frequencies (list of float): + + + Returns an array containing the frequencies, in hertz (Hz), that correspond to the response data. + + Pass VI_NULL if you do not want to use this parameter. + + + + + magnitude_response (list of float): + + + Returns an array containing the magnitude of the requested response, in decibels (dB). The magnitude response is normalized to the center frequency at each frequency in the :py:attr:`nirfsa.Session.FREQUENCIES` array. + + Pass VI_NULL if you do not want to use this parameter. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + phase_response (list of float): + + + Returns an array containing the phase of the requested response, in radians. The phase response is normalized to the center frequency at each frequency entry in the :py:attr:`nirfsa.Session.FREQUENCIES` array. + + Pass VI_NULL if you do not want to use this parameter. This array may contain zeros if the device does not contain a stored phase response in its calibration data. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + +get_scaling_coefficients +------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_scaling_coefficients() + + Returns coefficients you can use to convert unscaled data to scaled I/Q data. + + Acquired data may be unscaled when sent by a peer-to-peer stream or fetched as unscaled data. Use this method to obtain :py:meth:`nirfsa.Session.get_scaling_coefficients` structures in the **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** array that provide gain and offset values you can use to scale this data into the actual I/Q values. The **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** array returns one element for each channel specified in the **:py:attr:`nirfsa.Session.CHANNEL_LIST`** parameter. The element order matches the order specified by the **:py:attr:`nirfsa.Session.CHANNEL_LIST`** parameter. To get the actual I/Q values, scale the unscaled data from an acquisition by multiplying it by the gain value of the appropriate **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** element then adding the offset from the same element. + + ---- + **Note** + The coefficients are calculated by NI-RFSA for the current configuration of the device, so they are only valid for acquisitions obtained with the same device configuration. + + ---- + + To get the required size of the array, call this method with **:py:attr:`nirfsa.Session.ARRAY_SIZE`** set to 0 and NULL for the **:py:attr:`nirfsa.Session.COEFFICIENT_INFO`** array. This method returns the required size in the **:py:attr:`nirfsa.Session.NUMBER_OF_COEFFICIENT_SETS`** parameter. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_scaling_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.get_scaling_coefficients` + + + :rtype: list of CoefficientInfo + :return: + + + Specifies the array for storing the coefficient info. + + - **offset** is the number that should be added to the data from a peer-to-peer stream after the gain has been applied if you want to scale unscaled data. + - **gain** returns the multiplier that you should use to scale data obtained from a peer-to-peer stream. + + + + + +get_self_cal_last_date_and_time +------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_self_cal_last_date_and_time(self_calibration_step) + + Returns the date and time of the last successful self-calibration. + + The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param self_calibration_step: + + + Specifies the self-calibration step to query for the last successful self-calibration date and time data. + + + + + :type self_calibration_step: :py:data:`nirfsa.SelfCalibrationStep` + + :rtype: hightime.datetime + :return: + + + + + + +get_self_calibration_temperature +-------------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_self_calibration_temperature(self_calibration_step) + + Returns the temperature, in degrees Celsius, at the last successful self-calibration. + + ---- + **Note** + For the PXIe-5644/5645/5646, you must select :py:data:`~nirfsa.NIRFSA_VAL_SELF_CAL_IMAGE_SUPPRESSION` for the **selfCalibrationStep** parameter. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + + :param self_calibration_step: + + + Specifies the self-calibration step to query for the last successful self-calibration date and time data. + + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | Name | Description | + +===========================================+=================================================================================================+ + | SelfCalibrationStep.PRESELECTOR_ALIGNMENT | Calls for preselector alignment. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.GAIN_REFERENCE | Measures the changes in gain since the last external calibration was run. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.IF_FLATNESS | Measures the IF response of the entire system for each of the supported IF filters | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.DIGITIZER_SELF_CAL | Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.LO_SELF_CAL | Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.AMPLITUDE_ACCURACY | Selects the Amplitude Accuracy self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.RESIDUAL_LO_POWER | Selects the Residual LO Power self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.IMAGE_SUPPRESSION | Selects the Image Suppression self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.SYNTHESIZER_ALIGNMENT | Selects the Synthesizer Alignment self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.DC_OFFSET | Selects the DC Offset self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + + + :type self_calibration_step: :py:data:`nirfsa.SelfCalibrationStep` + + :rtype: float + :return: + + + Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. + + + + + +get_terminal_name +----------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: get_terminal_name(signal, signal_identifier="") + + Returns the fully qualified name of the signal being queried. + + Signals can be triggers, clocks, or events. + + You can pass the **:py:attr:`nirfsa.Session.TERMINAL_NAME`** parameter that is returned to the **source** parameter of a configure trigger method. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param signal: + + + Specifies the signal for which you want to query the terminal. + + +------------------------------+----------------------------------------------+ + | Name | Description | + +==============================+==============================================+ + | Signal.START_TRIGGER | NI-RFSA routes a Start Trigger. | + +------------------------------+----------------------------------------------+ + | Signal.REF_TRIGGER | NI-RFSA routes a Reference | + +------------------------------+----------------------------------------------+ + | Signal.ADVANCE_TRIGGER | NI-RFSA routes an Advance | + +------------------------------+----------------------------------------------+ + | Signal.READY_FOR_START_EVENT | NI-RFSA routes a Ready for Start Event. | + +------------------------------+----------------------------------------------+ + | Signal.READY_FOR_REF_EVENT | NI-RFSA routes a Ready for Reference Event.. | + +------------------------------+----------------------------------------------+ + | Signal.END_OF_RECORD_EVENT | NI-RFSA routes a End of Record Event. | + +------------------------------+----------------------------------------------+ + | Signal.DONE_EVENT | NI-RFSA routes a Done Event. | + +------------------------------+----------------------------------------------+ + | Signal.REF_CLOCK | NI-RFSA routes a Reference Clock. | + +------------------------------+----------------------------------------------+ + | Signal.USER | NI-RFSA routes a User Defined Signal. | + +------------------------------+----------------------------------------------+ + + + :type signal: :py:data:`nirfsa.Signal` + :param signal_identifier: + + + Specifies a particular instance of a trigger. NI-RFSA does not support this parameter. + + + + + :type signal_identifier: str + + :rtype: str + :return: + + + Returns the fully qualified name of the signal being queried. + + + + + +initiate +-------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: initiate() + + Commits settings to hardware, waits for hardware settling, and starts an acquisition. + + You can use this method in conjunction with one of the niRFSA fetch I/Q methods to retrieve acquired I/Q data, or you can use the read IQ single record complex F64 method to both initiate the acquisition and retrieve I/Q data at one time. + + ---- + **Note** + If you are using external digitizer mode, this method commits settings and waits for settling, but it does not start an acquisition. Notice that using the :py:meth:`nirfsa.Session.commit` method on its own commits settings to hardware, but the device does not wait for hardware settling. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + `RF List Mode `_ + + `NI RF Vector Signal Analyzer State Diagram `_ + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +is_self_cal_valid +----------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: is_self_cal_valid() + + Indicates which calibration steps contain valid calibration data. + + To omit steps with valid calibration data from self-calibration, you can pass the **:py:attr:`nirfsa.Session.VALID_STEPS`** parameter to the **stepsToOmit** parameter of the :py:meth:`nirfsa.Session.SelfCalibrate` method. + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :rtype: tuple (self_cal_valid, valid_steps) + + WHERE + + self_cal_valid (bool): + + + Returns True if all the calibration data is valid and False if any of the calibration data is invalid. + + + + + valid_steps (:py:data:`nirfsa.SelfCalSteps`): + + + Returns valid steps. + + ---- + If two or more calibration steps are valid, this parameter returns a bitwise-OR combination of the calibration steps. For example, if both :py:data:`~nirfsa.SelfCalSteps.IF_FLATNESS` and :py:data:`~nirfsa.SelfCalSteps.LO_SELF_CAL` steps are valid, NI-RFSA returns the following string: + + :py:data:`~nirfsa.SelfCalSteps.IF_FLATNESS` | + + :py:data:`~nirfsa.SelfCalSteps.LO_SELF_CAL` + + ---- + + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=====================================================================================================================+ + | SelfCalSteps.DIGITIZER_SELF_CAL | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.PRESELECTOR_ALIGNMENT | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.OMIT_NONE | No calibration steps are omitted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.GAIN_REFERENCE | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.IF_FLATNESS | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.LO_SELF_CAL | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.AMPLITUDE_ACCURACY | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.RESIDUAL_LO_POWER | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.IMAGE_SUPPRESSION | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.SYNTHESIZER_ALIGNMENT | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.DC_OFFSET | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + +load_configurations_from_file +----------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: load_configurations_from_file(file_path) + + Loads the configurations from the specified file to the NI-RFSA driver session. + + The VI does an implicit reset before loading the configurations from the file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.load_configurations_from_file` + + + :param file_path: + + + Specifies the absolute path of the file from which the NI-RFSA loads the configurations. + + + + + :type file_path: str + +lock +---- + + .. py:currentmodule:: nirfsa.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`nirfsa.Session.lock` method. + - A call to NI-RFSA locked the session. + - After a call to the :py:meth:`nirfsa.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`nirfsa.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`nirfsa.Session.lock` method and the + :py:meth:`nirfsa.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`nirfsa.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`nirfsa.Session.lock` method with a call to + the :py:meth:`nirfsa.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with nirfsa.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`nirfsa.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +perform_thermal_correction +-------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: perform_thermal_correction() + + Corrects for temperature variations while acquiring the same signal for an extended period of time in a continuous acquisition. + + NI-RFSA internally acquires the temperature every time you initiate an acquisition. If you are performing a continuous acquisition, National Instruments recommends calling this method once every 10 minutes in a stable temperature environment to periodically update temperature calibration. If the ambient temperature varies, call this method more frequently. + + ---- + **Note** + You cannot call this method if your device is operating in `RF list mode `_. + + ---- + + Refer to the *Thermal Management* section for your device for more information about typical operating temperatures. + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842 + + + + + +read_iq_single_record_into +-------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: read_iq_single_record_into(iq_data_array, data_array_size, timeout=hightime.timedelta(seconds=10.0)) + + Initiates an acquisition and fetches a single I/Q data record. + + Do not use this method if you have configured the device to continuously acquire data samples or to acquire multiple records. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_iq_single_record` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.read_iq_single_record` + + + :param iq_data_array: + + + Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as the number of samples configured in the :py:meth:`nirfsa.Session.ConfigureNumberOfSamples` method. + + + + + :type iq_data_array: numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16 + :param timeout: + + + Specifies in seconds the time allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: WaveformInfo + :return: + + + Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + + + + +read_power_spectrum_into +------------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: read_power_spectrum_into(power_spectrum_data_array, data_array_size=None, timeout=hightime.timedelta(seconds=10.0)) + + Initiates a spectrum acquisition and returns power spectrum data. + + ---- + **Note** + Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_power_spectrum` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.read_power_spectrum` + + + :param power_spectrum_data_array: + + + Specifies a pre-allocated numpy array to be filled with power spectrum data. The dtype of this array determines the data format: numpy.float64 or numpy.float32. Allocate an array at least as large as the number of spectral lines returned by the get_number_of_spectral_lines method. + + + + + :type power_spectrum_data_array: numpy.array of numpy.float64 or numpy.array of numpy.float32 + :param data_array_size: + + + Specifies the expected number of spectral lines. If None, falls back to self.number_of_spectral_lines. + + + + + :type data_array_size: int + :param timeout: + + + Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + +reset +----- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: reset() + + Resets all properties to default values, deletes all de-embedding tables, and stops the export of all external signals and events. + + For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Trigger Controller Slot, also known as the System Timing Slot. + + This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. To avoid resetting routes on the device that are in use by NI-RFSG sessions, NI recommends using the :py:meth:`nirfsa.Session.reset_with_options` method, with **stepsToOmit** set to :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES`. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + +reset_device +------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: reset_device() + + Performs a hard reset on the device. + + A hard reset consists of the following actions: + + - Signal acquisition is stopped. + - All routes are released. + - External bidirectional terminals are tristated. + - FPGAs are reset. + - Hardware is configured to its default state. + - All session properties are reset to their default states. + + During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. For example, a trigger signal exported to a PXI trigger line that is used by another device is no longer exported. + + On the PXI-5600, if you are driving the PXI_CLK10 line, you continue to drive the clock even after a device reset. To stop driving the PXI_CLK10 line, use the :py:meth:`nirfsa.Session.ConfigurePxiChassisClk10` method and set the **pxiClk10Source** parameter to :py:data:`~nirfsa.NIRFSA_VAL_NONE` or set the :py:attr:`nirfsa.Session.PXI_CHASSIS_CLK10_SOURCE` property to :py:data:`~nirfsa.NIRFSA_VAL_NONE`. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + +reset_with_options +------------------ + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: reset_with_options(steps_to_omit) + + Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. + + For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Star Trigger Controller Slot, also known as the System Timing Slot. + + By default, this method resets all properties to their default values, deletes all de-embedding tables, aborts generation, clears all routes, and resets session properties to initial values. You can specify steps to omit using the steps to omit parameter. For example, if you specify :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES` for the **:py:attr:`nirfsa.Session.STEPS_TO_OMIT`** parameter, this method does not release signal routes during the reset process. + + When routes of signals between two devices are released, they are released regardless of which device created the route. + + To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSG sessions, NI recommends using this method instead of :py:meth:`nirfsa.Session.Reset`, with **:py:attr:`nirfsa.Session.STEPS_TO_OMIT`** set to :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES`. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + + :param steps_to_omit: + + + Specifies a list of steps to skip during the reset process. The default value is :py:data:`~nirfsa.ResetWithOptionsStepsToOmit.NONE`, which specifies that no step is omitted during reset. + + Note::py:data:`~nirfsa.ResetWithOptionsStepsToOmit.ROUTES` is not supported in external calibration or alignment sessions. + + Note::py:data:`~nirfsa.ResetWithOptionsStepsToOmit.ROUTES` is not supported for the PXI-5600/5661. + + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +================================================+============================================================================================================================================================================================================+ + | ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.NONE | No step is omitted during reset. | + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.ROUTES | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type steps_to_omit: :py:data:`nirfsa.ResetWithOptionsStepsToOmit` + +save_configurations_to_file +--------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: save_configurations_to_file(file_path) + + Saves the configurations of the session to the specified file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.save_configurations_to_file` + + + :param file_path: + + + Specifies the absolute path of the file to which the NI-RFSA saves the configurations. + + + + + :type file_path: str + +self_calibrate_range +-------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: self_calibrate_range(steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level) + + Self-calibrates all configurations within the specified frequency and reference level limits. + + Self-calibration range data is valid until you restart the system or call the :py:meth:`nirfsa.Session.clear_self_calibrate_range` method. + + NI recommends that no external signals are present on the RF In port while the calibration is taking place. + + ---- + **Note** + This method does not update self-calibration date and temperature. + + ---- + + For best results, NI recommends that you perform a complete self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit that step for faster execution. + + ---- + **Note** + If there is an existing NI-RFSG session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate. + + ---- + + ---- + **Note** + If there is an existing NI-RFSG session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + + :param steps_to_omit: + + + Specifies which calibration steps to skip as part of the self-calibration process. A value of 0 specifies all supported calibration steps are performed. + + ---- + + To omit two or more calibration steps, specify a bitwise-OR combination of the following constants. For example, if you wanted to omit :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY` and :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL`, you would pass the following string to the :py:meth:`nirfsa.Session.SelfCalibrate` method: :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY` | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL` + + ---- + + | Value | Description | + |:------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | :py:data:`~nirfsa.NIRFSA_VAL_RESET_WITH_OPTIONS_NONE` | No step is omitted during self-calibration. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.PRESELECTOR_ALIGNMENT` | Not used by this method. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.GAIN_REFERENCE` | Not used by this method. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.IF_FLATNESS` | Not used by this method. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.DIGITIZER_SELF_CAL` | Not used by this method. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL` | Omits the Local Oscillator (LO) Self Cal step. If you omit this step and the :py:meth:`nirfsa.Session.is_self_cal_valid` method indicates the calibration data for this step is invalid, the LO phase-locked loop (PLL) may fail to lock. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY` | Omits the Amplitude Accuracy step. If you omit this step, the absolute accuracy of the device is not adjusted. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER` | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | + |:py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION` | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image Performance is not adjusted. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT` | Omits the Synthesizer Alignment step. If you omit this step, the LO PLL is not adjusted. This step is not valid for the PXIe-5820. | + | :py:data:`~nirfsa.SelfCalibrateRangeStepsToOmit.DC_OFFSET` | Omits the DC Offset step. This step applies only to the PXIe-5820. | + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type steps_to_omit: :py:data:`nirfsa.SelfCalibrateRangeStepsToOmit` + :param minimum_frequency: + + + Specifies the minimum RF frequency in Hz. + + + + + :type minimum_frequency: float + :param maximum_frequency: + + + Specifies the maximum RF frequency in Hz. + + + + + :type maximum_frequency: float + :param minimum_reference_level: + + + Specifies the minimum reference level in dBm. + + + + + :type minimum_reference_level: float + :param maximum_reference_level: + + + Specifies the maximum reference level in dBm. + + + + + :type maximum_reference_level: float + +self_test +--------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: self_test() + + Performs a self-test on the NI-RFSA device and returns the test results. + + This method performs a simple series of tests to ensure that the NI-RFSA device is powered up and responding. + + This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSA device must be in the Configuration state before you call this method. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Device Warm-Up `_ + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + + +send_software_edge_trigger +-------------------------- + + .. py:currentmodule:: nirfsa.Session + + .. py:method:: send_software_edge_trigger(trigger, trigger_identifier="") + + Sends a trigger to the device when you use a software version of a supported trigger and the device is waiting for the trigger to be sent. + + You can also use this method to override a hardware trigger. + + This method returns an error in the following situations: + + - You configure an invalid trigger. + - You set the **acquisitionType** to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method. + - You have not previously called the :py:meth:`nirfsa.Session._initiate` method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Software Trigger `_ + + `Triggers `_ + + + + + + :param trigger: + + + Specifies the trigger to send. + + **Default Value:** :py:data:`~nirfsa.SoftwareTriggerType.START` + + **Defined Values:** + + +----------------------------------------------+-------------------------------+ + | Name | Description | + +==============================================+===============================+ + | :py:data:`~nirfsa.SoftwareTriggerType.START` | Specifies the Start Trigger. | + +----------------------------------------------+-------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_SCRIPT_TRIGGER` | Specifies the Script Trigger. | + +----------------------------------------------+-------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger: :py:data:`nirfsa.SoftwareTriggerType` + :param trigger_identifier: + + + Specifies a particular instance of a trigger. NI-RFSA does not currently support this parameter. + + + + + :type trigger_identifier: str + +unlock +------ + + .. py:currentmodule:: nirfsa.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`nirfsa.Session.lock`. Refer to :py:meth:`nirfsa.Session.unlock` for additional + information on session locks. + + +Properties +========== + +absolute_delay +-------------- + + .. py:attribute:: absolute_delay + + Specifies the sub-sample clock delay, in seconds, to apply to the acquired signal. + + Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. + This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. + + To set this property, the NI-RFSA device must be in the Configuration state. + + ---- + **Note** + If this property is set, NI-TClk cannot do any sub-sample clock adjustment. + + ---- + + **Units:** Seconds + + **Valid Values:** Plus or minus half of one sample clock period + + **Default Value**: 0 + + **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Absolute Delay** + - C Attribute: **NIRFSA_ATTR_ABSOLUTE_DELAY** + +acquisition_type +---------------- + + .. py:attribute:: acquisition_type + + Configures the session to either acquire I/Q data or to compute a power spectrum over the specified frequency range. + + **Default Value**: :py:data:`~nirfsa.AcquisitionType.IQ` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureAcquisitionType` + + **Defined Values**: + + +---------------------------------------------+-----------------------------------------------+ + | Name | Description | + +=============================================+===============================================+ + | :py:data:`~nirfsa.AcquisitionType.IQ` | Configures NI-RFSA for I/Q acquisitions. | + +---------------------------------------------+-----------------------------------------------+ + | :py:data:`~nirfsa.AcquisitionType.SPECTRUM` | Configures NI-RFSA for spectrum acquisitions. | + +---------------------------------------------+-----------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.AcquisitionType | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition Type** + - C Attribute: **NIRFSA_ATTR_ACQUISITION_TYPE** + +advance_trigger_terminal_name +----------------------------- + + .. py:attribute:: advance_trigger_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/AdvanceTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleNameai/0/AdvanceTrigger, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/AdvanceTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/AdvanceTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Advance:Terminal Name** + - C Attribute: **NIRFSA_ATTR_ADVANCE_TRIGGER_TERMINAL_NAME** + +advance_trigger_type +-------------------- + + .. py:attribute:: advance_trigger_type + + Specifies whether you want the Advance Trigger to be a digital edge or software trigger. + + ---- + **Note** + Set this property to :py:data:`~nirfsa.AdvanceTriggerType.NONE` if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` or if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method. + + ---- + + **Default Value**: :py:data:`~nirfsa.AdvanceTriggerType.NONE` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=====================================================+===============================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.AdvanceTriggerType.NONE` | No Advance Trigger is configured. | + +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.AdvanceTriggerType.DIGITAL_EDGE` | The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_advance_trigger_source` property. | + +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.AdvanceTriggerType.SOFTWARE_EDGE` | The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_ADVANCE_TRIGGER` as the **trigger** parameter. | + +-----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.AdvanceTriggerType | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Advance:Type** + - C Attribute: **NIRFSA_ATTR_ADVANCE_TRIGGER_TYPE** + +allow_more_records_than_memory +------------------------------ + + .. py:attribute:: allow_more_records_than_memory + + Specifies whether to allow the device to acquire more records than can fit in the device memory of the PXIe-5622/5624. + + ---- + **Note** + If you set the property to FALSE and attempt to acquire more records than can fit into the PXIe-5622/5624 device memory, NI-RFSA returns an error. If this property is set to TRUE, NI-RFSA returns an error only in the event of an acquisition buffer overflow. + + ---- + + ---- + **Note** + This property is always set to True for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841. + + ---- + + **Default Value**: False + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------+------------------------------------------------------------------------+ + | Name | Description | + +=======+========================================================================+ + | True | Allows acquisition of more records than fit in device memory. | + +-------+------------------------------------------------------------------------+ + | False | Does not allow acquisitions of more records than fit in device memory. | + +-------+------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Allow More Records Than Memory** + - C Attribute: **NIRFSA_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY** + +allow_out_of_specification_user_settings +---------------------------------------- + + .. py:attribute:: allow_out_of_specification_user_settings + + Enables or disables warnings and errors when you set frequency, power, or bandwidth values beyond the limits of the NI-RFSA device specifications. + + When you set this property to :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.ENABLED`, the driver does not report out-of-specification warnings and errors. + + **Default Value**: :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.DISABLED` + + **Supported Devices:** PXIe-5820/5830/5831/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------------------------------+----------------------------------------------+ + | Name | Description | + +=================================================================+==============================================+ + | :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.DISABLED` | Disables out-of-specification user settings. | + +-----------------------------------------------------------------+----------------------------------------------+ + | :py:data:`~nirfsa.AllowOutOfSpecificationUserSettings.ENABLED` | Enables out-of-specification user settings. | + +-----------------------------------------------------------------+----------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------+ + | Characteristic | Value | + +=======================+===========================================+ + | Datatype | enums.AllowOutOfSpecificationUserSettings | + +-----------------------+-------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Advanced:Allow Out Of Specification User Settings** + - C Attribute: **NIRFSA_ATTR_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS** + +amplitude_settling +------------------ + + .. py:attribute:: amplitude_settling + + Configures the amplitude settling accuracy in decibels. + + NI-RFSA waits until the RF power settles within the specified accuracy level after calling the :py:meth:`nirfsa.Session._initiate` method. + + Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. + + **Units**: dB + + **Default Value:** 0.5 + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Amplitude Settling** + - C Attribute: **NIRFSA_ATTR_AMPLITUDE_SETTLING** + +arm_ref_trigger_type +-------------------- + + .. py:attribute:: arm_ref_trigger_type + + Specifies whether you want the Arm Reference Trigger to be a digital edge or software trigger. + + ---- + **Note** + The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 only support :py:data:`~nirfsa.ArmReferenceTriggerType.NONE`. + + ---- + + ---- + **Note** + Set this property to :py:data:`~nirfsa.ArmReferenceTriggerType.NONE` if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` or if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the :py:meth:`nirfsa.Session.ConfigureAcquisitionType` method. + + ---- + + **Default Value**: :py:data:`~nirfsa.ArmReferenceTriggerType.NONE` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==========================================================+======================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ArmReferenceTriggerType.NONE` | No Arm Reference Trigger is configured. | + +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ArmReferenceTriggerType.DIGITAL_EDGE` | The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_arm_ref_trigger_source` property. | + +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ArmReferenceTriggerType.SOFTWARE_EDGE` | The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.SoftwareTriggerType.ARM_REF` as the **trigger** parameter. | + +----------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.ArmReferenceTriggerType | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Arm Ref:Type** + - C Attribute: **NIRFSA_ATTR_ARM_REF_TRIGGER_TYPE** + +attenuation +----------- + + .. py:attribute:: attenuation + + Specifies the nominal attenuation setting, in dB, for all attenuators before the first mixer in the RF signal chain. + + If you do not set this property, NI-RFSA automatically chooses an attenuation setting based on the reference level you configure. The valid values for this property depend on the device configuration. + + **PXI-5600/5661**: You can change the attenuation value to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. + + **PXIe-5601/5663/5663E**: You can change the attenuation value and the value of the :py:attr:`nirfsa.Session.if_attenuation` property to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. + + **PXIe-5603/5605/5606/5665/5668**: You can set multiple properties to modify the attenuation values for the device. Refer to `PXIe-5665 RF Attenuation and Signal Levels `_ for more information about configuring attenuation. + + **PXIe-5667**: This property specifies the nominal attenuation setting for all attenuators before the first RF mixer in the input signal path. This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. + + **PXIe-5693**: This property is read-only and returns the nominal RF attenuation of the PXIe-5693. + + **Units**: dB + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:RF Attenuation (dB)** + - C Attribute: **NIRFSA_ATTR_ATTENUATION** + +available_paths +--------------- + + .. py:attribute:: available_paths + + Returns a comma separated list of the configurable paths available for use based on your instrument configuration. + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Available Paths** + - C Attribute: **NIRFSA_ATTR_AVAILABLE_PATHS** + +available_ports +--------------- + + .. py:attribute:: available_ports + + Returns a comma-separated list of the available ports for use based on your instrument configuration. + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Available Ports** + - C Attribute: **NIRFSA_ATTR_AVAILABLE_PORTS** + +center_frequency +---------------- + + .. py:attribute:: center_frequency + + Specifies the center frequency in a spectrum acquisition. + + The value is expressed in hertz (Hz). An acquisition consists of a span of data surrounding the center frequency. + + ---- + **Note** + Use this property to tune the downconverter when using external digitizer mode. + + ---- + + **Units**: hertz (Hz) + + **Default Values**: + + **PXIe-5694**: 193.6 MHz + + **PXIe-5820**: 0 Hz + + **PXIe-5830/5831/5832**: 6.5 GHz + + **All other devices**: 1 GHz + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Center Frequency** + - C Attribute: **NIRFSA_ATTR_CENTER_FREQUENCY** + +channel_coupling +---------------- + + .. py:attribute:: channel_coupling + + Specifies whether the RF IN connector is AC- or DC-coupled on the downconverter. + + ---- + **Note** + For the PXIe-5605/5606/5665/5667/5668, this property must be set to :py:data:`~nirfsa.ChannelCoupling.AC` when the DC block is present and set to :py:data:`~nirfsa.ChannelCoupling.DC` when the DC block is not present to ensure device specifications are met and proper calibration data is used. For more information about removing or attaching the DC block, refer to the `PXIe-5665 Block Diagram `_, the `PXIe-5605 Front Panel and LEDs `_, the `PXIe-5667 Block Diagram `_, or the `PXIe-5668 Block Diagram `_ topics in this help file. + + ---- + + **Valid Values**: + + **PXIe-5603/5665 (3.6 GHz)**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` + + **PXIe-5605/5665 (14 GHz)**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low-frequency bypass path**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: :py:data:`~nirfsa.ChannelCoupling.AC` + + **PXIe-5667 (7 GHz)**: :py:data:`~nirfsa.ChannelCoupling.AC` + + **PXIe-5606/5668**: :py:data:`~nirfsa.ChannelCoupling.AC`, :py:data:`~nirfsa.ChannelCoupling.DC` + + **Default Value**: :py:data:`~nirfsa.ChannelCoupling.AC` + + **Supported Devices**: PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 + + **Defined Values**: + + +---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================+============================================================================================================================================================+ + | :py:data:`~nirfsa.ChannelCoupling.AC` | Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. | + +---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ChannelCoupling.DC` | Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. | + +---------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.ChannelCoupling | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:NI 5665/5667/5668R:Channel Coupling** + - C Attribute: **NIRFSA_ATTR_CHANNEL_COUPLING** + +common_mode_level +----------------- + + .. py:attribute:: common_mode_level + + Specifies the common-mode level presented at each differential input terminal. + + Common-mode level shifts both positive and negative terminals in the same direction. This must match the common-mode level of the device under test (DUT). + + **Units**: volts + + **Default Value**: 0 V + + **Supported Devices**: PXIe-5820 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Common Mode Level** + - C Attribute: **NIRFSA_ATTR_COMMON_MODE_LEVEL** + +deembedding_compensation_gain +----------------------------- + + .. py:attribute:: deembedding_compensation_gain + + Returns the de-embedding gain applied to compensate for the mismatch on the specified port. Use the Active Channel property to specify the name of the port to configure for de-embedding. + + If de-embedding is enabled, NI-RFSA uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. + + **Supported Devices**: PXIe-5830/5831/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **De-embedding:Compensation Gain** + - C Attribute: **NIRFSA_ATTR_DEEMBEDDING_COMPENSATION_GAIN** + +deembedding_selected_table +-------------------------- + + .. py:attribute:: deembedding_selected_table + + Selects the de-embedding table to apply to the measurements on the specified port. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_string` method to specify the name of the port to configure for de-embedding. + + If de-embedding is enabled, NI-RFSA uses the specified table to remove the effects of the external network between the instrument and the DUT. + + Use the :py:meth:`nirfsa.Session._create_deembedding_sparameter_table_array` method to create tables. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.deembedding_selected_table` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | ports | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **De-embedding:Selected Table** + - C Attribute: **NIRFSA_ATTR_DEEMBEDDING_SELECTED_TABLE** + +deembedding_type +---------------- + + .. py:attribute:: deembedding_type + + Specifies the type of de-embedding to apply to measurements on the specified port. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the port to configure for de-embedding. + + If you set this property to any value besides :py:data:`~nirfsa.DeembeddingType.NONE`, NI-RFSA adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. + + **Default Value**: :py:data:`~nirfsa.DeembeddingType.SCALAR` + + **Valid Values for PXIe-5830/5832/5840/5841** : :py:data:`~nirfsa.DeembeddingType.NONE` or :py:data:`~nirfsa.DeembeddingType.SCALAR` + + **Valid Values for PXIe-5842/5860** : :py:data:`~nirfsa.DeembeddingType.NONE` or :py:data:`~nirfsa.DeembeddingType.SCALAR` or :py:data:`~nirfsa.DeembeddingType.AMPLITUDE_FLATNESS` + + **Valid Values for PXIe-5831:** :py:data:`~nirfsa.DeembeddingType.NONE`, :py:data:`~nirfsa.DeembeddingType.SCALAR`, or :py:data:`~nirfsa.DeembeddingType.VECTOR`. :py:data:`~nirfsa.DeembeddingType.VECTOR` is only supported for TRX Ports in a Semiconductor Test System (STS). + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------------------------------------------------------+-------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=========================================================================+ + | :py:data:`~nirfsa.DeembeddingType.NONE` | De-embedding is not applied to the measurement. | + +-------------------------------------------------------+-------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DeembeddingType.SCALAR` | De-embeds the measurement using only the gain term. | + +-------------------------------------------------------+-------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DeembeddingType.VECTOR` | De-embeds the measurement using the gain term and the reflection term. | + +-------------------------------------------------------+-------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DeembeddingType.AMPLITUDE_FLATNESS` | De-embeds the measurement using wideband amplitude flatness correction. | + +-------------------------------------------------------+-------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_type` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.deembedding_type` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.DeembeddingType | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | ports | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **De-embedding:Type** + - C Attribute: **NIRFSA_ATTR_DEEMBEDDING_TYPE** + +device_configuration_temperature +-------------------------------- + + .. py:attribute:: device_configuration_temperature + + Specifies the temperature, in degrees Celsius, that NI-RFSA uses to calculate the device configuration settings. + + ---- + **Note** + For most applications, you can choose not to set this property, so NI-RFSA uses the device temperature to calculate best attenuation settings. Set this property only if you want NI-RFSA to maintain the same device configuration settings from acquisition to acquisition, independent of device temperature changes. + + ---- + + **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: This property is read-only. + + **Units**: degrees Celsius + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Device Configuration Temperature (Degrees C)** + - C Attribute: **NIRFSA_ATTR_DEVICE_CONFIGURATION_TEMPERATURE** + +device_instantaneous_bandwidth +------------------------------ + + .. py:attribute:: device_instantaneous_bandwidth + + Specifies the instantaneous bandwidth of the device in hertz (Hz). + + The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. + + Specify the maximum instantaneous bandwidth needed for your measurement. NI-RFSA coerces the actual IF filter to use based on other measurement constraints such as the :py:attr:`nirfsa.Session.if_filter_bandwidth` property and the :py:attr:`nirfsa.Session.digital_if_equalization_enabled` property. + + To change the value that NI-RFSA uses for the maximum size of multispan acquisition subspans, use the :py:attr:`nirfsa.Session.fft_width` property. + + ---- + **Note** + If your application uses the PXIe-5622 IF digitizer, your maximum device instantaneous bandwidth is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. If your application uses the PXIe-5624 digitizer, your maximum device instantaneous bandwidth is constrained by the hardware option you purchased and your FPGA image. + + ---- + + **PXI-5661**: The PXI-5600 RF downconverter instantaneous bandwidth is 20 MHz. + + **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the `PXIe-5601 RF Signal Downconverter Overview `_ for more information about instantaneous bandwidth. + + ---- + **Note** + For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than the instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. + + ---- + + **PXIe-5665**: Your maximum allowed instantaneous bandwidth is independent of the downconverter center frequency. Refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth. + + **PXIe-5665 (14 GHz), PXIe-5668**: If you have enabled the preselector for the PXIe-5605/5606, the device instantaneous bandwidth value is only a typical specification. For multispan acquisitions, NI-RFSA uses this typical specification as the maximum size for the acquisition subspans. + + ---- + **Note** + When used with an external digitizer, the PXIe-5603 and the low band signal path of the PXIe-5605 provide a nominal 80 MHz bandwidth at dB. At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector (YIG-tuned filter) enabled. + + ---- + + ---- + **Note** + For PXIe-5606 devices, the 765 MHz IF filter is available only at center frequencies above 3.6 GHz. + + ---- + + **PXIe-5693**: This property is read-only for the PXIe-5693. The value for the device instantaneous bandwidth depends on the value for the RF preselector filter. + + **PXIe-5694/PXIe-5667**: If your application uses the PXIe-5694 as part of an PXIe-5667 spectrum monitoring receiver or the PXIe-5694 as a stand-alone device, NI-RFSA determines the appropriate IF filter to use based on the value that you set for this property. + + ---- + **Note** + + ---- + + **PXIe-5644/5645/5646**: This property is read-only for the PXIe-5644/5645/5646. Refer to the specifications document for your device for more information about instantaneous bandwidth. + + **PXIe-5840/5841/5860**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the *PXIe-5840/5841/5860 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. + + **PXIe-5842**: Your maximum allowed instantaneous bandwidth depends on the device's hardware options, configured device personality, and the downconverter center frequency you use. Refer to the *PXIe-5842 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Device Instantaneous Bandwidth (Hz)** + - C Attribute: **NIRFSA_ATTR_DEVICE_INSTANTANEOUS_BANDWIDTH** + +device_temperature +------------------ + + .. py:attribute:: device_temperature + + Returns the current temperature, in degrees Celsius, of the module. + + **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **PXIe-5830/5831/5832**: To use this property, you must first set the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to using the appropriate string for your instrument configuration. Setting the :py:meth:`nirfsa.Session._set_attribute_vi_real64` property is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. + + **Units**: degrees Celcius + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + +--------------------------------+---------------------------+---------------------------+ + | Hardware Module | TRX Port Type | Active Channel String | + +================================+===========================+===========================+ + | PXIe-3621/3622/5842 | - | if or "" (empty string) | + +--------------------------------+---------------------------+---------------------------+ + | PXIe-5820 | - | fpga | + +--------------------------------+---------------------------+---------------------------+ + | PXIe-5860 | - | 5860 or "" (empty string) | + +--------------------------------+---------------------------+---------------------------+ + | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | + +--------------------------------+---------------------------+---------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | + +--------------------------------+---------------------------+---------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf0switch1 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf1switch1 | + +--------------------------------+---------------------------+---------------------------+ + | First connected RMM-5544/5546 | - | rmm0 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected RMM-5544/5546 | - | rmm1 | + +--------------------------------+---------------------------+---------------------------+ + + + .. tip:: This property can be set/get on specific device_temperatures within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. + + Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` + + To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.device_temperature` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | float | + +-----------------------+---------------------+ + | Permissions | read only | + +-----------------------+---------------------+ + | Repeated Capabilities | device_temperatures | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Device Temperature (Degrees C)** + - C Attribute: **NIRFSA_ATTR_DEVICE_TEMPERATURE** + +digital_edge_advance_trigger_source +----------------------------------- + + .. py:attribute:: digital_edge_advance_trigger_source + + Specifies the source terminal for the Advance Trigger. + + This property is used only when the :py:attr:`nirfsa.Session.advance_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_digital_edge_ref_trigger` + + **Defined Values**: + + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=============================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on the PFI 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on the PXI trigger line 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on the PXI trigger line 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on the PXI trigger line 2. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on the PXI trigger line 3. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on the PXI trigger line 4. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on the PXI trigger line 5. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on the PXI trigger line 6. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on the PXI trigger line 7. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Advance:Digital Edge:Source** + - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_ADVANCE_TRIGGER_SOURCE** + +digital_edge_arm_ref_trigger_source +----------------------------------- + + .. py:attribute:: digital_edge_arm_ref_trigger_source + + Specifies the source terminal for the digital edge Arm Reference Trigger. + + This property is used only when the :py:attr:`nirfsa.Session.arm_ref_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. + + **Default Value**: "" (empty string) + + ---- + **Note** + The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 devices only support "" (empty string). + + The trigger is received on PFI0 from the front panel DIO terminal. + + The trigger is received on PFI1 from the front panel DIO terminal. + + The trigger is received on PFI2 from the front panel DIO terminal. + + The trigger is received on PFI3 from the front panel DIO terminal. + + The trigger is received on PFI4 from the front panel DIO terminal. + + The trigger is received on PFI5 from the front panel DIO terminal. + + The trigger is received on PFI6 from the front panel DIO terminal. + + The trigger is received on PFI7 from the front panel DIO terminal. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=============================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on PFI 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Arm Ref:Digital Edge:Source** + - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_ARM_REF_TRIGGER_SOURCE** + +digital_edge_ref_trigger_edge +----------------------------- + + .. py:attribute:: digital_edge_ref_trigger_edge + + Specifies the active edge for the Reference Trigger. + + This property is used only when the :py:attr:`nirfsa.Session.ref_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. + + **Default Value**: :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_digital_edge_ref_trigger` + + **Defined Values**: + + +------------------------------------------------------------+-------------------------------------------------------+ + | Name | Description | + +============================================================+=======================================================+ + | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.RISING` | The trigger asserts on the rising edge of the signal. | + +------------------------------------------------------------+-------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerDigitalEdgeEdge.FALLING` | The trigger asserts on the falling edge of the signal | + +------------------------------------------------------------+-------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------------+ + | Characteristic | Value | + +=======================+=======================================+ + | Datatype | enums.ReferenceTriggerDigitalEdgeEdge | + +-----------------------+---------------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Digital Edge:Edge** + - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_REF_TRIGGER_EDGE** + +digital_edge_ref_trigger_source +------------------------------- + + .. py:attribute:: digital_edge_ref_trigger_source + + Specifies the source terminal for the digital edge Reference Trigger. + + This property is used only when the :py:attr:`nirfsa.Session.ref_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=============================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on PFI 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Digital Edge:Source** + - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_REF_TRIGGER_SOURCE** + +digital_edge_start_trigger_edge +------------------------------- + + .. py:attribute:: digital_edge_start_trigger_edge + + Specifies the active edge for the Start Trigger. + + This property is used only when the :py:attr:`nirfsa.Session.start_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. + + **Default Value**: :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_digital_edge_start_trigger` + + **Defined and Valid Values:** + + +--------------------------------------------------------+-------------------------------------------------------+-------------------------------------+ + | Name | Description | Valid For | + +========================================================+=======================================================+=====================================+ + | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.RISING` | The trigger asserts on the rising edge of the signal. | PXI-5661, PXIe-5663/5663E/5665/5668 | + +--------------------------------------------------------+-------------------------------------------------------+-------------------------------------+ + | :py:data:`~nirfsa.StartTriggerDigitalEdgeEdge.FALLING` | The trigger asserts on the falling edge of the signal | PXIe-5668 | + +--------------------------------------------------------+-------------------------------------------------------+-------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------------+ + | Characteristic | Value | + +=======================+===================================+ + | Datatype | enums.StartTriggerDigitalEdgeEdge | + +-----------------------+-----------------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Digital Edge:Edge** + - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** + +digital_edge_start_trigger_source +--------------------------------- + + .. py:attribute:: digital_edge_start_trigger_source + + Specifies the source terminal for the Start Trigger. + + This property is used only when the :py:attr:`nirfsa.Session.start_trigger_type` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DIGITAL_EDGE`. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_digital_edge_start_trigger` + + **Defined Values**: + + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=============================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.NIRFSA_VAL_DO_NOT_EXPORT` | The signal is not exported. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PFI1` | The trigger is received on PFI 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.PXIE_DSTARB` | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OutputTerm.TIMER_EVENT` | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Digital Edge:Source** + - C Attribute: **NIRFSA_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** + +digital_gain +------------ + + .. py:attribute:: digital_gain + + Specifies the scaling factor applied to the time-domain voltage data in the digitizer. + + NI-RFSA does not compensate for the specified digital gain. + + You can use this property to account for external gain changes without changing the analog signal path. + + ---- + **Note** + The PXIe-5644/5645/5646 applies this gain when the data is scaled. The raw data does not include this scaling on these devices. + + ---- + + **Units:** dB + + **Default Value:** 0 dB + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Digital Gain (dB)** + - C Attribute: **NIRFSA_ATTR_DIGITAL_GAIN** + +digital_if_equalization_enabled +------------------------------- + + .. py:attribute:: digital_if_equalization_enabled + + Enables use of the digital equalization filter for the RF downconverter. + + **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. + + ---- + **Note** + For PXIe-5665/5667 devices, digital IF equalization is supported only with a 150 MHz clock. You cannot set this property to True if the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property is set to :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.LO_REF_CLK`. + + ---- + + ---- + **Note** + For the PXIe-5665 (14 GHz)/5667 (7 GHz)/5668, the preselector is not part of the IF filter path, so NI-RFSA does not equalize the preselector distortions. + + ---- + + **Default Value**: True, if the device configuration is supported. + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 + + **Defined Values**: + + +-------+-----------------------------------------------------------+ + | Name | Description | + +=======+===========================================================+ + | True | Enables digital IF equalization on the RF downconverter. | + +-------+-----------------------------------------------------------+ + | False | Disables digital IF equalization on the RF downconverter. | + +-------+-----------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Digital IF Equalization Enabled** + - C Attribute: **NIRFSA_ATTR_DIGITAL_IF_EQUALIZATION_ENABLED** + +digitizer_dither_enabled +------------------------ + + .. py:attribute:: digitizer_dither_enabled + + Specifies whether dithering is enabled on the digitizer. + + Dithering adds band-limited noise in the analog signal path to help reduce the quantization effects of the A/D converter and improve spectral performance. On the PXIe-5622, this out-of-band noise is added at low frequencies up to approximately 12 MHz. On the PXIe-5624, this out-of-band noise is added at low frequencies up to approximately 50 MHz. + + **PXIe-5663/5663E/5665/5667**: When you enable dithering, the maximum signal level is reduced by up to 3 dB. This signal level reduction is accounted for in the nominal input ranges of the PXIe-5622. Therefore, you can overrange the input by up to 3 dB with dither disabled. For example, the +4 dBm input range can handle signal levels up to +7 dBm with dither disabled. For wider bandwidth acquisitions, such as 40 MHz, disable dithering to eliminate residual leakage of the dither signal into the lower frequencies of the IF passband, which starts at 12.5 MHz and ends at 62.5 MHz. This leakage can slightly raise the noise floor in the lower frequencies, thus degrading the performance in high-sensitivity applications. When taking spectral measurements, this leakage can also appear as a wide, low-amplitude signal near 12.5 MHz and 62.5 MHz. The width and amplitude of the signal depends on your resolution bandwidth and the type of time-domain window you apply to your FFT. + + **PXIe-5668**: When you enable dithering, the maximum signal level is reduced by up to 2 dB. For the PXIe-5624, the maximum input power with dither off is 8 dBm and the maximum input power with dither on is 6 dBm. When acquiring an 800 MHz bandwidth signal, the I/Q data contains the dither even if the dither signal is not in the displayed spectrum. The dither can affect actions like power level triggering. + + ---- + **Note** + For the PXIe-5668, disabling dithering can negatively affect absolute amplitude accuracy. + + ---- + + ---- + **Note** + For the PXIe-5820/5830/5831/5832/5840/5841/5842, only :py:data:`~nirfsa.DigitizerDitherEnabled.ENABLED` is supported. + + ---- + + **Default Value**: :py:data:`~nirfsa.DigitizerDitherEnabled.ENABLED` + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +----------------------------------------------------+-----------------------------------+ + | Name | Description | + +====================================================+===================================+ + | :py:data:`~nirfsa.DigitizerDitherEnabled.DISABLED` | Disables dither on the digitizer. | + +----------------------------------------------------+-----------------------------------+ + | :py:data:`~nirfsa.DigitizerDitherEnabled.ENABLED` | Enables dither on the digitizer. | + +----------------------------------------------------+-----------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.DigitizerDitherEnabled | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Digitizer Dither Enabled** + - C Attribute: **NIRFSA_ATTR_DIGITIZER_DITHER_ENABLED** + +digitizer_sample_clock_rate +--------------------------- + + .. py:attribute:: digitizer_sample_clock_rate + + Returns the actual frequency, in hertz (Hz), of the digitizer Sample Clock. + + **Units**: hertz (Hz) + + **Supported Devices**: PXIe-5668 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Digitizer Sample Clock Rate** + - C Attribute: **NIRFSA_ATTR_DIGITIZER_SAMPLE_CLOCK_RATE** + +digitizer_sample_clock_timebase_rate +------------------------------------ + + .. py:attribute:: digitizer_sample_clock_timebase_rate + + Specifies the frequency, in hertz (Hz), of the external clock used as the timebase source if you set the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property to an external source, such as :py:data:`~nirfsa.NIRFSA_VAL_CLK_IN`, :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.LO_REF_CLK`, or :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT` + + **PXI-5661**If this property is set to a value less than 60 MHz, signals at frequencies just above the 20 MHz passband of the downconverter may be aliased back into the passband. This aliasing occurs because the IF frequency of the downconverter is 15 MHz, and the upper end of the passband is 25 MHz. At sampling rates below 60 MHz, the Nyquist frequency is close to the end of the passband and creates aliases that are not filtered effectively by the downconverter. + + **Units**: hertz (Hz) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + **Valid and Default Values**: + + +---------------------------+----------------------------+---------------+ + | Device | Valid Values | Default Value | + +===========================+============================+===============+ + | PXI-5661 | Any frequency 226552.5 MHz | 100 MHz | + +---------------------------+----------------------------+---------------+ + | PXIe-5663/5663E/5665/5667 | 150 MHz | 150 MHz | + +---------------------------+----------------------------+---------------+ + | PXIe-5668 | 2 GHz | 2 GHz | + +---------------------------+----------------------------+---------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Digitizer Sample Clock Timebase Rate** + - C Attribute: **NIRFSA_ATTR_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_RATE** + +digitizer_sample_clock_timebase_source +-------------------------------------- + + .. py:attribute:: digitizer_sample_clock_timebase_source + + Specifies the source of the Sample Clock timebase, which is the timebase used to control waveform sampling. + + **Default Value**: :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK` + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + **Defined Values**: + + +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=============================================================================+========================================================================================================================================================================+ + | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK` | The digitizer uses its onboard clock as the Sample Clock timebase. | + +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.CLK_IN` | The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. | + +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.LO_REF_CLK` | The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. | + +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.PXI_STAR` | The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. | + +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT` | The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. | + +-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------------+ + | Characteristic | Value | + +=======================+==========================================+ + | Datatype | enums.DigitizerSampleClockTimebaseSource | + +-----------------------+------------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Digitizer Sample Clock Timebase Source** + - C Attribute: **NIRFSA_ATTR_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE** + +digitizer_temperature +--------------------- + + .. py:attribute:: digitizer_temperature + + Returns the current temperature, in degrees Celsius, of the digitizer module. + + **PXIe-5820/5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Default Value**: N/A + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Digitizer Temperature (Degrees C)** + - C Attribute: **NIRFSA_ATTR_DIGITIZER_TEMPERATURE** + +digitizer_vertical_range +------------------------ + + .. py:attribute:: digitizer_vertical_range + + Specifies the vertical range of the digitizer. + + The vertical range is defined as the absolute value of the input range for a channel. The default vertical range works for all device configurations, but you can use this property to optimize performance if you know that the signal level at the digitizer input terminal is low. + + ---- + **Note** + For most applications, NI-RFSA selects an appropriate value for this property. + + ---- + + This value is expressed in volts. For example, to acquire a sine wave that spans between 20130.5 V and +0.5 V, set this property to 1.0. + + **PXIe-5840/5841/5842/5860**: This property is read-only. + + **Default Value**: 1.0 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Digitizer Vertical Range** + - C Attribute: **NIRFSA_ATTR_DIGITIZER_VERTICAL_RANGE** + +done_event_terminal_name +------------------------ + + .. py:attribute:: done_event_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/DoneEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/DoneEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done:Terminal Name** + - C Attribute: **NIRFSA_ATTR_DONE_EVENT_TERMINAL_NAME** + +downconverter_center_frequency +------------------------------ + + .. py:attribute:: downconverter_center_frequency + + Enables in-band retuning and specifies the current frequency, in hertz (Hz), of the RF downconverter. + + If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. To disable in-band retuning, reset the property or call the :py:meth:`nirfsa.Session.reset_device` method. + + After you set this property, the downconverter is locked to that frequency until the value is changed or the property is reset. Locking the downconverter to a fixed value allows frequencies within the instantaneous bandwidth of the downconverter to be measured with minimal overhead, decreasing tuning time. + + **Valid Values**: Any supported tuning frequency of the device + + **PXIe-5820**: The only valid value for this property is 0 Hz. + + **Default Value**: + + **PXIe-5694**: The default value for the PXIe-5694 is 193.6 MHz unless you set the :py:attr:`nirfsa.Session.signal_conditioning_enabled` property to :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED`, in which case the default value is 187.5 MHz. + + **All other devices**: The carrier frequency or spectrum center frequency. NI-RFSA sets this property to the default value based on the value of the :py:attr:`nirfsa.Session.acquisition_type` property. + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Advanced:Downconverter Center Frequency** + - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_CENTER_FREQUENCY** + +downconverter_frequency_offset +------------------------------ + + .. py:attribute:: downconverter_frequency_offset + + Specifies an offset from the I/Q carrier frequency for the downconverter. + + If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. After you set this property, the RF downconverter is locked to that frequency offset until the value is changed or the property is reset. + + **Valid Values:** + + **PXIe-5646:**: -100 MHz to +100 MHz + + **PXIe-5830/5831/5832/5840/5841:**: -500 MHz to +500 MHz + + **All other devices:**: -42 MHz to +42 MHz + + **Default Values:**: For spectrum acquisition types the driver automatically calculates the default to avoid residual LO power. For I/Q acquisition types the default is 0 Hz. If the center frequency is set to a non-multiple of the :py:attr:`nirfsa.Session.lo_frequency_step_size` property, the :py:attr:`nirfsa.Session.downconverter_frequency_offset` property is set to compensate for the difference. + + **Supported Devices:**: PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Acquisition:Advanced:Downconverter Frequency Offset** + - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_FREQUENCY_OFFSET** + +downconverter_frequency_offset_mode +----------------------------------- + + .. py:attribute:: downconverter_frequency_offset_mode + + Specifies whether to allow NI-RFSA to select the downconveter frequency offset. + + You can either set an offset yourself or let NI-RFSA select one for you. + + Placing the downconverter center frequency outside the bandwidth of your input signal can help avoid issues such as LO leakage. + + To set an offset yourself, set this property to :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` or :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.USER_DEFINED`, and set either the :py:attr:`nirfsa.Session.downconverter_center_frequency` or the :py:attr:`nirfsa.Session.downconverter_frequency_offset` properties. + + To allow NI-RFSA to automatically select the downconverter frequency offset, set this property to :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` or :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` and configure the :py:attr:`nirfsa.Session.signal_bandwidth` property to describe your expected input signal. The signal bandwidth must be no greater than half the specified value of the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property, minus a device-specific guard band. Do not set the :py:attr:`nirfsa.Session.downconverter_center_frequency` or :py:attr:`nirfsa.Session.downconverter_frequency_offset` properties. If all conditions are met, NI-RFSA places the downconverter center frequency outside the signal bandwidth. Set this property to :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` if you want to receive an error any time NI-RFSA is unable to apply automatic offset. + + When you set an offset yourself or do not use an offset, the reference frequency for gain is near the downconverter center frequency, and :py:attr:`nirfsa.Session.downconverter_frequency_offset_mode` returns :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.USER_DEFINED`. When NI-RFSA automatically sets an offset, the reference frequency for gain is the :py:attr:`nirfsa.Session.iq_carrier_frequency`, and :py:attr:`nirfsa.Session.downconverter_frequency_offset_mode` returns :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED`. Refer to the specifications document for your device for more information about gain, flatness, and reference frequencies. + + ---- + **Note** + Below 120 MHz, the PXIe-5841 does not use an LO and :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. + + ---- + + **Default Value:** :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` + + **Supported Devices**: PXIe-5830/5831/5832/5841/5842 + + **Related Topics** + + `PXIe-5830 Automatic Frequency Offset `_ + + `PXIe-5831/5832 Automatic Frequency Offset `_ + + `PXIe-5841 Automatic Frequency Offset `_ + + **Defined Values**: + + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==================================================================+==============================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.AUTOMATIC` | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.ENABLED` | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSA returns an error if the :py:attr:`nirfsa.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DownconverterFrequencyOffsetMode.USER_DEFINED` | NI-RFSA uses the offset that you specified with the :py:attr:`nirfsa.Session.downconverter_frequency_offset` or :py:attr:`nirfsa.Session.downconverter_center_frequency` properties. | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------------+ + | Characteristic | Value | + +=======================+========================================+ + | Datatype | enums.DownconverterFrequencyOffsetMode | + +-----------------------+----------------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Advanced:Downconverter Frequency Offset Mode** + - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_FREQUENCY_OFFSET_MODE** + +downconverter_gain +------------------ + + .. py:attribute:: downconverter_gain + + Returns the net signal gain for the NI-RFSA device at the current NI-RFSA settings and temperature. + + NI-RFSA scales the acquired I/Q and spectrum data from the digitizer using the value of this property. + + For a vector signal analyzer (VSA), the system is defined as the RF downconverter and all interfaces between the RF IN connector on the RF downconverter front panel and the IF IN connector on the digitizer front panel. For a spectrum monitoring receiver, the system is defined as the RF preselector, RF downconverter, and IF conditioning modules including all interfaces between the RF IN connector on the RF preselector module front panel and the IF IN connector on the digitizer front panel. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Downconverter Gain (dB)** + - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_GAIN** + +downconverter_loop_bandwidth +---------------------------- + + .. py:attribute:: downconverter_loop_bandwidth + + Configures the loop bandwidth of the RF downconverter tuning PLLs. + + To set this property, the NI-RFSA device must be in the Configuration state. + + **PXI-5600/5661** : For signal bandwidths greater than 10 MHz, :py:data:`~nirfsa.DownconverterLoopBandwidth.WIDE` is the only value supported for this property. + + **PXIe-5601/5663/5663E** : The PXIe-5601 does not support the :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` value. This property is not supported if you are using an external LO. + + **PXIe-5830/5831/5832/5840/5841/5842** : The PXIe-5840/5841/5842 supports only :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` for this property. This property is not supported if you are using an external LO. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Values**: + + **PXI-5600** : :py:data:`~nirfsa.DownconverterLoopBandwidth.WIDE` + + **PXIe-5601** : :py:data:`~nirfsa.DownconverterLoopBandwidth.NARROW` + + **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842** : :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` + + **Supported Devices**: PXI-5600, PXIe-5601 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +------------------------------------------------------+-----------------------------------------------------------------------+ + | Name | Description | + +======================================================+=======================================================================+ + | :py:data:`~nirfsa.DownconverterLoopBandwidth.NARROW` | Specifies that the downconverter module uses a narrow loop bandwidth. | + +------------------------------------------------------+-----------------------------------------------------------------------+ + | :py:data:`~nirfsa.DownconverterLoopBandwidth.MEDIUM` | Specifies that the downconverter module uses a medium loop bandwidth. | + +------------------------------------------------------+-----------------------------------------------------------------------+ + | :py:data:`~nirfsa.DownconverterLoopBandwidth.WIDE` | Specifies that the downconverter module uses a wide loop bandwidth. | + +------------------------------------------------------+-----------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].downconverter_loop_bandwidth` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.downconverter_loop_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.DownconverterLoopBandwidth | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | los | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Downconverter Loop Bandwidth** + - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_LOOP_BANDWIDTH** + +downconverter_preselector_enabled +--------------------------------- + + .. py:attribute:: downconverter_preselector_enabled + + Specifies whether the tunable preselector is enabled on the downconverter. + + ---- + **Note** + All devices support setting this property to :py:data:`~nirfsa.DownconverterPreselectorEnabled.DISABLED` or :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH`. Only devices with a preselector support setting this property to :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED`. + + ---- + + **Default Value**: :py:data:`~nirfsa.DownconverterPreselectorEnabled.DISABLED` if the device has no preselector. :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` if the device has a preselector. + + **Supported Devices:** PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +================================================================================+===================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.DownconverterPreselectorEnabled.DISABLED` | Disables the preselector. | + +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` | The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the :py:attr:`nirfsa.Session.preselector_present` property to determine if the downconverter has an preselector. | + +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED` | Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` whenever possible avoid an error. | + +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------------+ + | Characteristic | Value | + +=======================+=======================================+ + | Datatype | enums.DownconverterPreselectorEnabled | + +-----------------------+---------------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Downconverter Preselector Enabled** + - C Attribute: **NIRFSA_ATTR_DOWNCONVERTER_PRESELECTOR_ENABLED** + +driver_setup +------------ + + .. py:attribute:: driver_setup + + The Driver Setup string returns the initial values for properties that are specific to NI-RFSA. + + The Driver Setup string uses the following format: + + DriverSetup= Tag:Value + + *Tag* is the name of the Driver Setup string property. *Value* is the value set to the property. If multiple properties are set, their assignments are separated with a semicolon. + + This property only returns the Driver Setup string that has already been defined. Refer to `Driver Setup Options `_ for more information about configuring the Driver Setup string. Refer to the :py:meth:`nirfsa.Session.__init__` method for additional information about using the **option string** parameter. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Driver Setup** + - C Attribute: **NIRFSA_ATTR_DRIVER_SETUP** + +enable_fractional_resampling +---------------------------- + + .. py:attribute:: enable_fractional_resampling + + Specifies whether fractional resampling is enabled on the digitizer. + + Fractional resampling allows the digitizer to achieve very fine resolution on the I/Q rate value. Setting this property to False improves spectral performance. + + **PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. + + **PXIe-5668**: When using a 400 MHz FPGA image, the only valid value for this property is True. When using a 800 MHz FPGA image, the only valid value for this property is False. Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about FPGA images. + + **Default Value**: True + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------+---------------------------------+ + | Value | Description | + +=======+=================================+ + | True | Enables fractional resampling. | + +-------+---------------------------------+ + | False | Disables fractional resampling. | + +-------+---------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Fractional Resample Enabled** + - C Attribute: **NIRFSA_ATTR_ENABLE_FRACTIONAL_RESAMPLING** + +end_of_record_event_terminal_name +--------------------------------- + + .. py:attribute:: end_of_record_event_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/EndOfRecordEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/EndOfRecordEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:End Of Record:Terminal Name** + - C Attribute: **NIRFSA_ATTR_END_OF_RECORD_EVENT_TERMINAL_NAME** + +exported_advance_trigger_output_terminal +---------------------------------------- + + .. py:attribute:: exported_advance_trigger_output_terminal + + Specifies the destination terminal for the exported Advance Trigger. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Advance:Export:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL** + +exported_digitizer_sample_clock_output_terminal +----------------------------------------------- + + .. py:attribute:: exported_digitizer_sample_clock_output_terminal + + Specifies the terminal at which to export the Digitizer Sample Clock. + + **Valid Values**: + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5668 + + **Defined Values**: + + +-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=================================================================+==========================================================================================================================================================+ + | :py:data:`~nirfsa.DigitizerSampleClockExportedTerminal.NONE` | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | + +-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.DigitizerSampleClockExportedTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------------+ + | Characteristic | Value | + +=======================+============================================+ + | Datatype | enums.DigitizerSampleClockExportedTerminal | + +-----------------------+--------------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Digitizer Sample Clock Exported Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_DIGITIZER_SAMPLE_CLOCK_OUTPUT_TERMINAL** + +exported_done_event_output_terminal +----------------------------------- + + .. py:attribute:: exported_done_event_output_terminal + + Specifies the destination terminal for the Done Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL** + +exported_end_of_record_event_output_terminal +-------------------------------------------- + + .. py:attribute:: exported_end_of_record_event_output_terminal + + Specifies the destination terminal for the End of Record Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `Signal Routing `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:End Of Record:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_END_OF_RECORD_EVENT_OUTPUT_TERMINAL** + +exported_ready_for_advance_event_output_terminal +------------------------------------------------ + + .. py:attribute:: exported_ready_for_advance_event_output_terminal + + Specifies the destination terminal for the Ready for Advance Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on the PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on the PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on the PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on the PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on the PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on the PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on the PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on the PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Advance:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL** + +exported_ready_for_ref_event_output_terminal +-------------------------------------------- + + .. py:attribute:: exported_ready_for_ref_event_output_terminal + + Specifies the destination terminal for the Ready for Reference Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Ref:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_READY_FOR_REF_EVENT_OUTPUT_TERMINAL** + +exported_ready_for_start_event_output_terminal +---------------------------------------------- + + .. py:attribute:: exported_ready_for_start_event_output_terminal + + Specifies the destination terminal for the Ready for Start Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Start:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_READY_FOR_START_EVENT_OUTPUT_TERMINAL** + +exported_ref_clock_output_terminal +---------------------------------- + + .. py:attribute:: exported_ref_clock_output_terminal + + Specifies a comma-separated list of the terminals at which to export the Reference Clock. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===================================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ReferenceClockExportedTerminal.NONE` | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockExportedTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockExportedTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockExportedTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockExportedTerminal.IF_COND_REF_OUT` | Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. | + +-------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------+ + | Characteristic | Value | + +=======================+======================================+ + | Datatype | enums.ReferenceClockExportedTerminal | + +-----------------------+--------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Ref Clock Exported Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL** + +exported_ref_clock_rate +----------------------- + + .. py:attribute:: exported_ref_clock_rate + + Specifies the Reference Clock Rate, in Hz, of the signal sent to the Ref Clock Exported Terminal. + + **Default Value**: 10 MHz + + **Valid Values**: + + PXIe-5820/5830/5831/5832/5840/5841: 10 MHz + + PXIe-5842: 10 MHz, 100 MHz, 1 GHz + + PXIe-5860: 10 MHz, 100 MHz + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.ReferenceClockExportedRate | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Ref Clock Exported Rate:Ref Clock Exported Rate** + - C Attribute: **NIRFSA_ATTR_EXPORTED_REF_CLOCK_RATE** + +exported_ref_trigger_output_terminal +------------------------------------ + + .. py:attribute:: exported_ref_trigger_output_terminal + + Specifies the destination terminal for the exported Reference Trigger. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Export:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL** + +exported_start_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_start_trigger_output_terminal + + Specifies the destination terminal for the exported Start Trigger. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ExportSignal` + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================================+=================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ExportOutputTerminal.DO_NOT_EXPORT` | The signal is not exported. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.CLK_OUT` | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT` | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.REF_OUT2` | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI0` | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PFI1` | The trigger is received on PFI 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG0` | The trigger is received on PXI trigger line 0. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG1` | The trigger is received on PXI trigger line 1. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG2` | The trigger is received on PXI trigger line 2. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG3` | The trigger is received on PXI trigger line 3. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG4` | The trigger is received on PXI trigger line 4. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG5` | The trigger is received on PXI trigger line 5. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG6` | The trigger is received on PXI trigger line 6. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_TRIG7` | The trigger is received on PXI trigger line 7. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXI_STAR` | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.PXIE_DSTARC` | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI0` | The trigger is received on PFI0 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI1` | The trigger is received on PFI1 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI2` | The trigger is received on PFI2 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI3` | The trigger is received on PFI3 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI4` | The trigger is received on PFI4 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI5` | The trigger is received on PFI5 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI6` | The trigger is received on PFI6 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ExportOutputTerminal.DIO_PFI7` | The trigger is received on PFI7 from the front panel DIO terminal. | + +-------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ExportOutputTerminal | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Export:Output Terminal** + - C Attribute: **NIRFSA_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** + +external_gain +------------- + + .. py:attribute:: external_gain + + Specifies the gain, in dB, of a switch (or cable) connected before the RF IN connector of an NI-RFSA system. + + When you set this property, NI-RFSA calculates appropriate attenuator settings based on the value of this property and the value of the :py:attr:`nirfsa.Session.reference_level` property. In this case, NI-RFSA interprets the reference level as the maximum expected power level of the signal at the input of the external gain device. For more information about attenuation, refer to the *Attenuation and Signal Levels* topic for your device in the *NI RF Vector Signal Analyzers Help*. + + ---- + **Note** + For the PXIe-5820, this property specifies the gain, in dB, of a switch (or cable) connected before the IQ IN connector. + + ---- + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + ---- + + With this property set, NI-RFSA reads the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_level` property value as the power level at the input of the external gain device at which the NI-RFSA device should trigger. + + Negative values indicate attenuation. + + **Valid Values**: INF to +INF + + **Units**: dB + + **Default Value**: 0 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:External Gain (dB)** + - C Attribute: **NIRFSA_ATTR_EXTERNAL_GAIN** + +fetch_offset +------------ + + .. py:attribute:: fetch_offset + + Specifies the offset relative to the position specified by the :py:attr:`nirfsa.Session.fetch_relative_to` property from which to start fetching data. + + Offset can be a positive or negative value. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Fetch:Fetch Offset** + - C Attribute: **NIRFSA_ATTR_FETCH_OFFSET** + +fetch_relative_to +----------------- + + .. py:attribute:: fetch_relative_to + + Specifies the reference location within the acquired record from which to begin fetching. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +============================================================+=============================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.FetchRelativeTo.MOST_RECENT_SAMPLE` | Fetching occurs relative to the most recently acquired data. The value of the :py:attr:`nirfsa.Session.fetch_offset` property must be negative. | + +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.FetchRelativeTo.FIRST_SAMPLE` | Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. | + +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.FetchRelativeTo.REFERENCE_TRIGGER` | Fetching occurs relative to the Reference Trigger. This value behaves like :py:data:`~nirfsa.FetchRelativeTo.FIRST_SAMPLE` if no Reference Trigger is configured. | + +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.FetchRelativeTo.FIRST_PRETRIGGER_SAMPLE` | Fetching occurs relative to the first pretrigger sample acquired. | + +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.FetchRelativeTo.CURRENT_READ_POSITION` | Fetching occurs after the last fetched sample. | + +------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.FetchRelativeTo | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Fetch:Fetch Relative To** + - C Attribute: **NIRFSA_ATTR_FETCH_RELATIVE_TO** + +fft_size +-------- + + .. py:attribute:: fft_size + + Returns the size of the fast Fourier transform (FFT). + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:FFT Size** + - C Attribute: **NIRFSA_ATTR_FFT_SIZE** + +fft_width +--------- + + .. py:attribute:: fft_width + + Specifies the FFT width of the device. + + The FFT width is the effective bandwidth of the signal path during each signal acquisition. + + ---- + **Note** + The maximum FFT width when using the PXIe-5622 is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. The maximum FFT width when using thing PXIe-5624 is constrained to 400 MHz or 765 MHz, depending on the digitizer configuration. + + ---- + + ---- + **Note** + You can use the :py:attr:`nirfsa.Session.fft_width` property with in-band retuning. For more information about in-band retuning, refer to the :py:attr:`nirfsa.Session.downconverter_center_frequency` property. + + ---- + + NI-RFSA treats the *device instantaneous bandwidth* as the effective real-time bandwidth of the signal path. The *span* specifies the frequency range of the computed spectrum. An RF vector signal analyzer can acquire a bandwidth only within the device instantaneous bandwidth frequency. If the span you choose is greater than the device instantaneous bandwidth, NI-RFSA obtains multiple acquisitions and combines them into a single spectrum. By specifying the FFT width, you can control the specific bandwidth obtained in each signal acquisition. If you read the :py:attr:`nirfsa.Session.fft_width` property without setting it, NI-RFSA returns the value of the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property. + + **Valid Values**: + + The lower limit for all FFT width supported devices using the PXIe-5622 IF digitizer is 7.325 kHz. The lower limit for all FFT width supported devices using the PXIe-5624 IF digitizer is 400 MHz or 800 MHz, depending on the FPGA image that is downloaded upon opening the session to the PXIe-5624 IF digitizer. + + **PXIe-5663/5663E**: The FFT width upper limit for the PXIe-5663/5663E depends on the downconverter center frequency and on the module revision of the PXIe-5601 as illustrated in the following table. Refer to the `Identifying Module Revision `_ topic for more information about determining which revision of the PXIe-5601 RF downconverter you have installed. + + **PXIe-5665/5667/5668**: The upper limit of the FFT width is the maximum device instantaneous bandwidth. + + ---- + **Note** + + ---- + + ---- + **Note** + At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector enabled. The :py:attr:`nirfsa.Session.fft_width` property can override the typical bandwidth of the PXIe-5605 up to 57 MHz using an external digitizer and up to 50 MHz or 25 MHz depending on the PXIe-5622 digitizer option you purchased. The increase in bandwidth results in faster signal acquisitions, but amplitude accuracy is decreased for spectrum acquisitions, and magnitude and phase accuracy is decreased for I/Q acquisitions. National Instruments does not guarantee device specifications if you set the :py:attr:`nirfsa.Session.fft_width` property greater than the warranted instantaneous bandwidth specification. + + ---- + + ---- + **Note** + When using the PXIe-5606, the 765 MHz IF filter is only available at center frequencies of 3.6 GHz and above. + + ---- + + **Default Value**: N/A + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668 + + +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | Downconverter Center Frequency | PXIe-5601 Instantaneous Bandwidth | FFT Width Upper Limit | + +===============================================================================================================================================================================================================+===================================+====================================================================+ + | 10 MHz to <120 MHz | 10 MHz | 10 MHz (Revision E), 20 MHz< sup >* < /sup> (Revision G or later) | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | 120 MHz to <330 MHz | 20 MHz | 20 MHz (Revision E), 30 MHz< sup > * < /sup> (Revision G or later) | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | 330 MHz to <6.6 GHz | 50 MHz | 50 MHz | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | * < / sup >National Instruments does not guarantee device specifications if you set the :py:attr:`nirfsa.Session.fft_width` property greater than the warranted instantaneous bandwidth specification. | | | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:FFT Width** + - C Attribute: **NIRFSA_ATTR_FFT_WIDTH** + +fft_window_shape_factor +----------------------- + + .. py:attribute:: fft_window_shape_factor + + Returns the shape factor of the window used in the fast Fourier transform (FFT). + + The window shape factor is defined as the ratio of the 60 dB to 6 dB bandwidths. + + The following table shows the shape factor for each NI-RFSA FFT window type. + + | Window Type | Shape Factor | + |:-----------------------|:-------------| + | Uniform | 1.57:1 | + | Hanning | 1.94:1 | + | Hamming | 2.13:1 | + | Exact Blackman | 2.52:1 | + | Flat Top | 2.0:1 | + | 4-term Blackman-Harris | 2.5:1 | + | 7-term Blackman-Harris | 4.1:1 | + | Low Side Lobe | 2.78:1 | + | Gaussian | 2.3:1 | + | Kaiser Bessel | 2.55:1 | + + **Default Value**: N/A + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:FFT Window Shape Factor** + - C Attribute: **NIRFSA_ATTR_FFT_WINDOW_SHAPE_FACTOR** + +fft_window_size +--------------- + + .. py:attribute:: fft_window_size + + Returns the size of the window used in the fast Fourier transform (FFT), in terms of the number of samples in the window. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:FFT Window Size** + - C Attribute: **NIRFSA_ATTR_FFT_WINDOW_SIZE** + +fft_window_type +--------------- + + .. py:attribute:: fft_window_type + + Specifies the time-domain window type. + + **Default Values**: + + **PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: :py:data:`~nirfsa.SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS` + + **PXIe-5667**: :py:data:`~nirfsa.SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Resolution Bandwidth `_ + + **Defined Values**: + + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==================================================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.SpectrumFftWindowType.UNIFORM` | No window is applied. | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.HANNING` | The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.HAMMING` | A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.BLACKMAN_HARRIS` | A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.EXACT_BLACKMAN` | An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.BLACKMAN` | A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.FLAT_TOP` | The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS` | A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS` | A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.LOW_SIDE_LOBE` | The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.GAUSSIAN` | A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumFftWindowType.KAISER_BESSEL` | A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind | + +------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.SpectrumFftWindowType | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:FFT Window Type** + - C Attribute: **NIRFSA_ATTR_FFT_WINDOW_TYPE** + +fixed_group_delay_across_ports +------------------------------ + + .. py:attribute:: fixed_group_delay_across_ports + + Specifies a comma-separated list of ports for which to fix the group delay. + + **Valid Values**: + + PXIe-5831/5832: rf<0-1>/port, where 0-1 indicates one (0) or two (1) mmRH-5582 connections and x is the port number on the mmRH-5582 front panel. + + **Default Value**: + + PXIe-5831/5832: (empty string), which specifies that the group delay will not be fixed for any port. + + **Supported Devices**: PXIe-5831/5832 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read-write | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Fixed Group Delay Across Ports** + - C Attribute: **NIRFSA_ATTR_FIXED_GROUP_DELAY_ACROSS_PORTS** + +fpga_bitfile_path +----------------- + + .. py:attribute:: fpga_bitfile_path + + Returns a string containing the path to the location of the current NI-RFSA instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. + + You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the :py:meth:`nirfsa.Session.__init__` method. + + NI-RFSA instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the device FPGA while maintaining the functionality of the NI-RFSA instrument driver. + + Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about using NI-RFSA instrument driver FPGA extensions for NI devices. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:FPGA Bitfile Path** + - C Attribute: **NIRFSA_ATTR_FPGA_BITFILE_PATH** + +fpga_target_name +---------------- + + .. py:attribute:: fpga_target_name + + Returns a string containing the name of the FPGA target being used. + + This name can be used with the RIO open session to open a reference to the FPGA. + + This property is channel dependent if multiple targets are supported. + + **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:FPGA Target Name** + - C Attribute: **NIRFSA_ATTR_FPGA_TARGET_NAME** + +fpga_temperature +---------------- + + .. py:attribute:: fpga_temperature + + Returns the current temperature, in degrees Celsius, of the FPGA. + + ---- + **Note** + If you query this property during RF list mode, list steps may take longer to complete during list execution. + + ---- + + **Units**: degrees Celcius + + **Default Value**: N/A + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:FPGA Temperature (Degrees C)** + - C Attribute: **NIRFSA_ATTR_FPGA_TEMPERATURE** + +frequency_settling +------------------ + + .. py:attribute:: frequency_settling + + Specifies the value used for local oscillator (LO) frequency settling. + + The units and interpretation for this scalar value are specified using the :py:attr:`nirfsa.Session.frequency_settling_units` property. This property is not supported if you are using an external LO. + + The valid values for this property depend on the :py:attr:`nirfsa.Session.frequency_settling_units` property. + + **Notes:** + 1. If the frequency settling units property is set to :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_LOCK` and the downconverter loop bandwidth property is set to narrow, NI recommends a minimum settling time of 128 microseconds to ensure that the phase-locked loop (PLL) lock stabilizes. If the downconverter loop bandwidth is set to wide, NI recommends a minimum settling time of 16 microseconds. + 2. When in RF list mode, the valid values for :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_IO` are 0 microseconds to 50 milliseconds. + 3. The valid values for this configuration depend on the module used as the LO source. Refer to the lo source property for more information. + + **Default Value**: 0.1 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 + + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | Device | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_LOCK` | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_IO` | %enum_value{frequency settling units.fsu ppm} | + +================================================================+===========================================================================================+============================================================================+===============================================+ + | PXIe-5663/5663E | 2 microseconds1 to 80 milliseconds, resolution of approximately 2 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5665/5667/5668 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01, 0.001 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5644/5645/5646 | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1.0, 0.1, 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5830/5831/5832/5840/5841/5842 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5831/5832 with PXIe-5653 (using PXIe-3622 LO)3 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5831/5832 with PXIe-5653 (using PXIe-5653 LO)3 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds, resolution of 1 microsecond | 1.0 to 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Frequency Settling** + - C Attribute: **NIRFSA_ATTR_FREQUENCY_SETTLING** + +frequency_settling_units +------------------------ + + .. py:attribute:: frequency_settling_units + + Specifies the delay duration units and interpretation for LO settling. + + Specify the actual settling value using the :py:attr:`nirfsa.Session.frequency_settling` property. This property is not supported if you are using an external LO. + + **Default Value**: :py:data:`~nirfsa.FrequencySettlingUnits.PPM` + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +--------------------------------------------------------------+-------------------------------------------------------------------+ + | Name | Description | + +==============================================================+===================================================================+ + | :py:data:`~nirfsa.FrequencySettlingUnits.PPM` | Specifies the frequency settling time in parts per million (PPM). | + +--------------------------------------------------------------+-------------------------------------------------------------------+ + | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_LOCK` | Specifies the frequency settling in time after lock (seconds). | + +--------------------------------------------------------------+-------------------------------------------------------------------+ + | :py:data:`~nirfsa.FrequencySettlingUnits.SECONDS_AFTER_IO` | Specifies the frequency settling time after I/O (seconds). | + +--------------------------------------------------------------+-------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.FrequencySettlingUnits | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Frequency Settling Units** + - C Attribute: **NIRFSA_ATTR_FREQUENCY_SETTLING_UNITS** + +group_capabilities +------------------ + + .. py:attribute:: group_capabilities + + Returns a list of class-extension groups that NI-RFSA implements. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Class Group Capabilities** + - C Attribute: **NIRFSA_ATTR_GROUP_CAPABILITIES** + +host_dma_buffer_size +-------------------- + + .. py:attribute:: host_dma_buffer_size + + Specifies the size of the DMA buffer in computer memory, in bytes. + + To set this property, the NI-RFSA device must be in the Configuration state. + + A sufficiently large host DMA buffer improves performance by allowing large fetches to be transferred more efficiently. + + **Default Value:** 8 MB + + **Supported Devices**: PXI-5820/5830/5831/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Fetch:Data Transfer:Host DMA Buffer Size** + - C Attribute: **NIRFSA_ATTR_HOST_DMA_BUFFER_SIZE** + +if_attenuation +-------------- + + .. py:attribute:: if_attenuation + + Configures the device attenuation to a value that has the actual calibrated IF attenuation closest to the desired value. + + **Valid Values**: 0 to 30 + + **Default Value**: N/A + + **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5663/5663E/5665/5667, PXIe-5693 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:NI 5663:IF Attenuation (dB)** + - C Attribute: **NIRFSA_ATTR_IF_ATTENUATION** + +if_filter_bandwidth +------------------- + + .. py:attribute:: if_filter_bandwidth + + Specifies the IF filter path bandwidth for your device configuration. + + ---- + **Note** + For composite devices, such as the PXIe-5665/5667/5668, the IF filter path bandwidth includes all IF filters across the component modules of a composite device. + + ---- + + NI-RFSA uses this property in conjunction with the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property and the :py:attr:`nirfsa.Session.digital_if_equalization_enabled` property to determine the settings for your measurement. NI-RFSA selects the next highest available filter based on the value you specify. The following table lists the IF filters available for NI devices. You may specify a higher value than your device instantaneous bandwidth if your measurement requires it, but specifying a lower value returns an error. + + **Valid Values**: + + **PXIe-5603/5605**: 0 to 80 MHz + + **PXIe-5665/5667**: 0 to 50 MHz + + **PXIe-5668**: 0 to 765 MHz + + **PXIe-5694**: 0 to 50 MHz + + ---- + **Note** + To set this property to values greater than 20 MHz, you must set the :py:attr:`nirfsa.Session.signal_conditioning_enabled` property to :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED` + + ---- + + **Default Values:** For spectrum acquisition types the default is greater than or equal to the :py:attr:`nirfsa.Session.spectrum_span` property. NI-RFSA chooses the default value of the :py:attr:`nirfsa.Session.if_filter_bandwidth` property to correspond to the appropriate IF filter. For I/Q acquisition types NI-RFSA chooses the default value corresponding to the widest IF filter possible for your equipment setup. + + **Supported Devices**: PXIe-5603/5605/5606, PXIe-5665/5667/5668, PXIe-5694 + + +--------------------------+---------------------------+-------------------+ + | Device | IF Filter Bandwidth Range | IF Filter | + +==========================+===========================+===================+ + | PXIe-5603/5665 (3.6 GHz) | 2264300 kHz | 300 kHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (3.6 GHz) | >300 kHz and 22645 MHz | Through IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (3.6 GHz) | >5 MHz | Through IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5605/5665 (14 GHz) | 2264300 kHz | 300 kHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (14 GHz) | >300 kHz and 22645 MHz | 5 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (14 GHz) | >5 MHz | Through IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | 2264300 kHz | 300 kHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >300 kHz and 22645 MHz | 5 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >5 MHz and 2264100 MHz | 100 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >100 MHz and 2264320 MHz | 320 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >320 MHz | 765 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:IF Filter Bandwidth** + - C Attribute: **NIRFSA_ATTR_IF_FILTER_BANDWIDTH** + +if_output_frequency +------------------- + + .. py:attribute:: if_output_frequency + + Returns the center frequency of the IF output signal that corresponds to the configured RF center frequency. + + The downconverter translates the RF input frequency to the IF output frequency by mixing it with the LO signal. The nominal values for the IF output frequency are shown in the following table. + + The coarse nature of the LO settings can cause the downconverter to be unable to tune to the exact LO frequency that would produce the nominal IF output frequency. Any coercion in the actual LO frequency results in the IF output frequency being slightly off from the nominal value. + + Additionally, if you use the :py:attr:`nirfsa.Session.downconverter_center_frequency` and :py:attr:`nirfsa.Session.lo_frequency` properties to program the downconverter, the IF output frequency could vary from the nominal value. NI-RFSA adjusts the acquired spectrum or I/Q data for the difference between nominal and actual IF output frequency. If you use an external digitizer with a RF downconverter, use this property to specify the actual IF output frequency. + + **Default Value**: N/A + + **Supported Devices**:PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694 + + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Downconverter | Nominal IF Output Frequency | + +===============+============================================================================================================================================================================================================================================================================================================+ + | PXI-5600 | 15 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5601 | 53 MHz or 187.5 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5603 | 187.5 MHz or 199 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5605 | 187.5 MHz, 190 MHz, or 199 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5606 | 187.5 MHz, 190 MHz, 199 MHz, 507.5 MHz, or 730 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5694 | - signal_conditioning_enabled set to SIGNAL_CONDITIONING_ENABLED and if_conditioning_down_conversion_enabled set to disabled: 193.6 MHz
- if_conditioning_down_conversion_enabled set to enabled: 21.4 MHz
- signal_conditioning_enabled set to SIGNAL_CONDITIONING_BYPASSED: 162.5 MHz to 212.5 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Advanced:IF Output Frequency** + - C Attribute: **NIRFSA_ATTR_IF_OUTPUT_FREQUENCY** + +if_output_power_level +--------------------- + + .. py:attribute:: if_output_power_level + + Specifies the level of the IF signal leaving the system, in dBm. + + Use this property to increase or decrease the nominal IF signal output level to achieve better measurement results. + + If you set the :py:attr:`nirfsa.Session.if_output_power_level` and :py:attr:`nirfsa.Session.if_output_power_level_offset` properties at the same time, NI-RFSA returns an error. + + ---- + **Note** + If you set the :py:attr:`nirfsa.Session.if_output_power_level` property to a value less than 201310 dBm, the IF output power level may be higher than the value you request. Read the value of this property to determine the configured IF output power level. + + ---- + + ---- + **Note** + The value of this property is limited by the amount of IF attenuation that the downconverter can apply, the :py:attr:`nirfsa.Session.reference_level` property, the :py:attr:`nirfsa.Session.downconverter_center_frequency` property, and the :py:attr:`nirfsa.Session.center_frequency` property or :py:attr:`nirfsa.Session.iq_carrier_frequency` property, depending on your acquisition type. + + ---- + + **Units**: dBm + + **Default Value**: + + **PXIe-5667**: -2 dBm + + **PXIe-5668**: -1 dBm + + **All other devices**: dBm + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:IF Output Power Level (dBm)** + - C Attribute: **NIRFSA_ATTR_IF_OUTPUT_POWER_LEVEL** + +if_output_power_level_offset +---------------------------- + + .. py:attribute:: if_output_power_level_offset + + Specifies the number of dB by which to adjust the default IF output power level. + + This property does not depend on absolute IF output power levels, so you can use it to adjust the IF output power level on all NI-RFSA devices without knowing the exact default value. Use this property to increase or decrease the nominal output level to achieve better measurement results. The default value for the offset is 0 dB. + + If you set the :py:attr:`nirfsa.Session.if_output_power_level` and :py:attr:`nirfsa.Session.if_output_power_level_offset` properties at the same time, NI-RFSA returns an error. + + **Units**: dB + + **Default Value**: 0 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:IF Output Power Level Offset (dB)** + - C Attribute: **NIRFSA_ATTR_IF_OUTPUT_POWER_LEVEL_OFFSET** + +input_isolation_enabled +----------------------- + + .. py:attribute:: input_isolation_enabled + + Specifies whether input isolation is enabled. + + Enabling this property isolates the input signal at the RF IN connector on the RF downconverter from the rest of the RF downconverter signal path. Disabling this property reintegrates the input signal into the RF downconverter signal path. + + ---- + **Note** + If you enable input isolation for your device, the device impedance is changed from the characteristic 50 impedance. A change in the device impedance may also cause a VSWR value higher than the device specifications. + + ---- + + For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. + + **Default Value**: :py:data:`~nirfsa.InputIsolationEnabled.DISABLED`, if the device configuration is supported. + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 + + **Defined Values**: + + +---------------------------------------------------+---------------------------+ + | Name | Description | + +===================================================+===========================+ + | :py:data:`~nirfsa.InputIsolationEnabled.DISABLED` | Disables input isolation. | + +---------------------------------------------------+---------------------------+ + | :py:data:`~nirfsa.InputIsolationEnabled.ENABLED` | Enables input isolation. | + +---------------------------------------------------+---------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.InputIsolationEnabled | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Input Isolation Enabled** + - C Attribute: **NIRFSA_ATTR_INPUT_ISOLATION_ENABLED** + +input_port +---------- + + .. py:attribute:: input_port + + Specifies the connector(s) to use to acquire the signal. + + To set this property, the NI-RFSA device must be in the Configuration state. + + **Default Values**: + + **PXIe-5820**: :py:data:`~nirfsa.InputPort.IQ_IN` + + **All other devices**: :py:data:`~nirfsa.InputPort.RF_IN` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------------------------------------+---------------------------------------------------------------------------------+ + | Name | Description | + +=====================================+=================================================================================+ + | :py:data:`~nirfsa.InputPort.RF_IN` | Enables the RF IN port. | + +-------------------------------------+---------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.InputPort.IQ_IN` | Enables the I/Q IN port. | + +-------------------------------------+---------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.InputPort.CAL_IN` | Enables the CAL IN port. | + +-------------------------------------+---------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.InputPort.I_ONLY` | Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. | + +-------------------------------------+---------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | enums.InputPort | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Input Port** + - C Attribute: **NIRFSA_ATTR_INPUT_PORT** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + Returns a string that contains the firmware revision information for the NI-RFSA downconverter for the composite device you are currently using. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + ---- + **Note** + PXIe-5820/5830/5831/5832/5840/5841/5842/5860 devices will return "No revision information available." To retrieve the firmware revision, use MAX, Hardware Configuration Utility, or NI System Configuration API. + + ---- + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** + - C Attribute: **NIRFSA_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + Returns a string that contains the name of the manufacturer for the NI-RFSA device you are currently using. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** + - C Attribute: **NIRFSA_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + Returns a string that contains the model number or name of the NI-RFSA device that you are currently using. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** + - C Attribute: **NIRFSA_ATTR_INSTRUMENT_MODEL** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Indicates the resource name NI-RFSA uses to identify the physical device. + + If you initialize NI-RFSA with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. + + If you initialize NI-RFSA with the resource name, this property contains that value. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** + - C Attribute: **NIRFSA_ATTR_IO_RESOURCE_DESCRIPTOR** + +iq_carrier_frequency +-------------------- + + .. py:attribute:: iq_carrier_frequency + + Specifies the expected carrier frequency of the incoming signal for demodulation. + + The NI-RFSA device tunes to this frequency. NI-RFSA may coerce this value based on hardware settings and the RF downconverter specifications. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + ---- + + **Units**: hertz (Hz) + + **Default Values**: + + **PXIe-5644/5645/5646, PXIe-5840/5841/5860, PXIe-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options)**: 1 GHz + + **PXIe-5842 (4 GHz bandwidth option) using the Standard personality**: 1 GHz + + **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 6.5 GHz + + **PXIe-5820**: 0 Hz + + **PXIe-5830/5831/5832**: 6.5 GHz + + **All other devices**: 100 MHz + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Carrier Wave `_ + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureIqCarrierFrequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:IQ Carrier Frequency** + - C Attribute: **NIRFSA_ATTR_IQ_CARRIER_FREQUENCY** + +iq_in_port_carrier_frequency +---------------------------- + + .. py:attribute:: iq_in_port_carrier_frequency + + Configures the frequency of the signal. + + The onboard signal processing (OSP) frequency shifts the signal at this frequency to baseband prior to acquiring it. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the RF ports. + + ---- + + **Valid Values**: + + **PXIe-5645**: -60 MHz to +60 MHz + + **PXIe-5820**: -500 MHz to +500 MHz + + **Default Value**: 0 + + **Supported Devices**: PXIe-5645, PXIe-5820 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Carrier Frequency** + - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_CARRIER_FREQUENCY** + +iq_in_port_temperature +---------------------- + + .. py:attribute:: iq_in_port_temperature + + Returns the temperature of the I/Q IN circuitry on the device. + + **Units:** degrees C + + **Supported Devices:** PXIe-5645, PXIe-5820 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Temperature (Degrees C)** + - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_TEMPERATURE** + +iq_in_port_terminal_configuration +--------------------------------- + + .. py:attribute:: iq_in_port_terminal_configuration + + Configures the terminal configuration of the I/Q port. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the RF ports. + + ---- + + **PXIe-5820**: The only valid value for this property is :py:data:`~nirfsa.IqInPortTerminalConfiguration.DIFFERENTIAL`. + + **Default Value**: :py:data:`~nirfsa.IqInPortTerminalConfiguration.DIFFERENTIAL` + + **Supported Devices:** PXIe-5645, PXIe-5820 + + **Defined Values**: + + +---------------------------------------------------------------+--------------------------------------------------+ + | Name | Description | + +===============================================================+==================================================+ + | :py:data:`~nirfsa.IqInPortTerminalConfiguration.DIFFERENTIAL` | Sets the terminal configuration to differential. | + +---------------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nirfsa.IqInPortTerminalConfiguration.SINGLE_ENDED` | Sets the terminal configuration to single-ended. | + +---------------------------------------------------------------+--------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------+ + | Characteristic | Value | + +=======================+=====================================+ + | Datatype | enums.IqInPortTerminalConfiguration | + +-----------------------+-------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Terminal Configuration** + - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_TERMINAL_CONFIGURATION** + +iq_in_port_vertical_range +------------------------- + + .. py:attribute:: iq_in_port_vertical_range + + Specifies the voltage range for the I/Q terminals. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + The voltage range in differential terminal configuration is configurable from 2 Vpk-pk to 0.032 Vpk-pk in 1 dB steps. In single-ended terminal configuration, valid ranges are half those for differential. Values are always coerced up to the next valid range. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the RF ports. + + ---- + + **Valid Values:** + + **PXIe-5645**: 0 Vpk-pk to 2 Vpk-pk for differential terminal configuration, 0 Vpk-pk to 1 Vpk-pk for single-ended terminal configuration. + + **PXIe-5820**: 0 Vpk-pk to 4 Vpk-pk for differential terminal configuration. + + **Default Value**: 2 Vpk-pk + + **Supported Devices:** PXIe-5645, PXIe-5820 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ In Port:Vertical Range** + - C Attribute: **NIRFSA_ATTR_IQ_IN_PORT_VERTICAL_RANGE** + +iq_power_edge_ref_trigger_level +------------------------------- + + .. py:attribute:: iq_power_edge_ref_trigger_level + + Specifies the power level, in dBm, at which the device triggers. + + The device asserts the trigger when the signal crosses the level specified by the value of this property, taking into consideration the specified slope. If you are using external gain, refer to the :py:attr:`nirfsa.Session.external_gain` property for more information about how this property affects the I/Q power edge trigger level. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:IQ Power Edge:Level** + - C Attribute: **NIRFSA_ATTR_IQ_POWER_EDGE_REF_TRIGGER_LEVEL** + +iq_power_edge_ref_trigger_slope +------------------------------- + + .. py:attribute:: iq_power_edge_ref_trigger_slope + + Specifies whether the device asserts the trigger when the signal power is rising or falling. + + When you set the :py:attr:`nirfsa.Session.ref_trigger_type` property to :py:data:`~nirfsa.ReferenceTriggerType.IQ_POWER_EDGE`, the device asserts the trigger when the signal power exceeds the specified level with the slope you specify. + + **Default Value**: :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` + + **Defined Values**: + + +-------------------------------------------------------------+-------------------------------------------------------+ + | Name | Description | + +=============================================================+=======================================================+ + | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` | The trigger asserts when the signal power is rising. | + +-------------------------------------------------------------+-------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.FALLING` | The trigger asserts when the signal power is falling. | + +-------------------------------------------------------------+-------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------------+ + | Characteristic | Value | + +=======================+========================================+ + | Datatype | enums.ReferenceTriggerIqPowerEdgeSlope | + +-----------------------+----------------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:IQ Power Edge:Slope** + - C Attribute: **NIRFSA_ATTR_IQ_POWER_EDGE_REF_TRIGGER_SLOPE** + +iq_power_edge_ref_trigger_source +-------------------------------- + + .. py:attribute:: iq_power_edge_ref_trigger_source + + Specifies the channel from which the device monitors the trigger. + + NI-RFSA currently supports only 0 as the value of this property. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:IQ Power Edge:Source** + - C Attribute: **NIRFSA_ATTR_IQ_POWER_EDGE_REF_TRIGGER_SOURCE** + +iq_rate +------- + + .. py:attribute:: iq_rate + + Specifies the I/Q rate for the acquisition. + + The value is expressed in samples per second (S/s). + + Refer to the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property for more information about device specific instantaneous bandwidth limits. You can also refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth device specifications. + + ---- + **Note** + For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. At I/Q rates above 50 MS/s, the dither noise can affect phase coherency performance and leak into the lower frequencies and the upper frequencies of the IF passband. Refer to the :py:attr:`nirfsa.Session.digitizer_dither_enabled` property for more information about dithering. + + For the PXIe-5663/5663E/5665/5667, when you set the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property to :py:data:`~nirfsa.NIRFSA_VAL_ONBOARD_CLOCK`, the downconverter instantaneous bandwidth is greater than or equal to the coerced I/Q rate times 0.8. For the PXIe-5665, the actual signal bandwidth is further limited by the combination of the chosen IF filter and anti-aliasing filter. + + ---- + + **PXI-5661**: You should not need to configure an I/Q rate higher than 25 megasamples per second (MS/s) because the PXI-5600 RF downconverter bandwidth is 20 MHz. If you configure a higher I/Q rate, you may see aliasing effects at negative frequencies because the IF frequency of the PXI-5600 is 15 MHz. + + **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the I/Q carrier frequency you use. Refer to the `PXIe-5601 RF downconverter overview `_ for more information about instantaneous bandwidth. + + **PXIe-5665**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency if you have enabled the preselector (YIG-tuned filter). + + **PXIe-5667**: Your maximum allowed instantaneous bandwidth depends on the selected [RF preselector filter](:py:attr:`nirfsa.Session.RF_PRESELECTOR_FILTER`.html) and whether the preselector on the [RF downconverter](:py:attr:`nirfsa.Session.PRESELECTOR_ENABLED`.html) is enabled. + + **PXIe-5668**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use and whether or not you enable the highpass filter or preselector (YIG-tuned filter). + + **Units**: S/s + + **Default Values:** + + **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 5 GS/s only. + + **All Other Devices**: 1 MS/s + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureIqRate` + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:IQ Rate (S/s)** + - C Attribute: **NIRFSA_ATTR_IQ_RATE** + +lo2_export_enabled +------------------ + + .. py:attribute:: lo2_export_enabled + + Specifies whether to enable the LO2 OUT terminal on the installed devices. + + Set this property to TRUE to export the 4 GHz LO signal from the device LO2 IN terminal to the LO2 OUT terminal. + + You can also export the LO2 signal by setting the :py:attr:`nirfsa.Session.lo_export_enabled` property and the :py:attr:`nirfsa.Session.digitizer_sample_clock_timebase_source` property. + + | Value | Description | + |:------|:-------------------------------| + | True | Enables the LO2 OUT terminal. | + | False | Disables the LO2 OUT terminal. | + + **Default Value:** False + + **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5668 + + **Defined Values**: + + +----------------------------------------------+----------------------+ + | Name | Description | + +==============================================+======================+ + | :py:data:`~nirfsa.Lo2ExportEnabled.DISABLED` | Disables LO2 export. | + +----------------------------------------------+----------------------+ + | :py:data:`~nirfsa.Lo2ExportEnabled.ENABLED` | Enables LO2 export. | + +----------------------------------------------+----------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.Lo2ExportEnabled | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:LO2 Export Enabled** + - C Attribute: **NIRFSA_ATTR_LO2_EXPORT_ENABLED** + +load_configurations_from_file_reset_options +------------------------------------------- + + .. py:attribute:: load_configurations_from_file_reset_options + + Specifies the configurations to skip to reset while loading configurations from a file. + + **Default Value:** :py:data:`~nirfsa.NIRFSA_VAL_SKIP_NONE` + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------------------------------------------+--------------------------------------------------+ + | Name | Description | + +=====================================================================+==================================================+ + | :py:data:`~nirfsa.LoadConfigurationResetOptions.NONE` | NI-RFSA resets all configurations. | + +---------------------------------------------------------------------+--------------------------------------------------+ + | :py:data:`~nirfsa.LoadConfigurationResetOptions.DEEMBEDDING_TABLES` | NI-RFSA skips resetting the de-embedding tables. | + +---------------------------------------------------------------------+--------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------+ + | Characteristic | Value | + +=======================+=====================================+ + | Datatype | enums.LoadConfigurationResetOptions | + +-----------------------+-------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Load Configurations:Reset Options** + - C Attribute: **NIRFSA_ATTR_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS** + +logical_name +------------ + + .. py:attribute:: logical_name + + Contains the logical name you specified when opening the current IVI session. + + You may pass a logical name to the :py:meth:`nirfsa.Session.Init` method or the :py:meth:`nirfsa.Session.__init__` method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NIRFSA_ATTR_LOGICAL_NAME** + +lo_export_enabled +----------------- + + .. py:attribute:: lo_export_enabled + + Specifies whether to enable the LO OUT terminals on the installed devices. + + **PXIe-5601**: The only valid value for this property is True. + + **PXIe-5603/5605/5606**: If you want to daisy-chain multiple devices together using the same LO source, set this property to TRUE to export the LO input signals on the LO1 IN, LO2 IN, and LO3 IN terminals to LO1 OUT, LO2 OUT, and LO3 OUT, respectively. + + **PXIe-5694**: You can enable this property only if you set the :py:attr:`nirfsa.Session.lo_source` property to :py:data:`~nirfsa.LoSource.LO_IN`, or if you set the :py:attr:`nirfsa.Session.lo_source` property to :py:data:`~nirfsa.LoSource.ONBOARD` and the :py:attr:`nirfsa.Session.IF_CONDITIONING_DOWN_CONVERSION_ENABLED` property to :py:data:`~nirfsa.NIRFSA_VAL_ENABLED`. + + **PXIe-5830/5831**: To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_boolean` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). + + ---- + **Note** + If you are sharing an LO for the PXIe-5830/5831/5832 between an NI-RFSA and NI-RFSG session, ensure both sessions use the same shared setting. + + ---- + + **Defined Values:** + + | Value | Description | + |:---------|:-------------------------------| + | True | Enables the LO OUT terminals. | + | False | Disables the LO OUT terminals. | + + **Default Values**: + + **PXIe-5601, PXIe-5663/5663E**: True + + **PXIe-5603/5605/5606, PXIe-5644/5645/5646, PXIe-5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842**: False + + **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_export_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_export_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:LO Export Enabled** + - C Attribute: **NIRFSA_ATTR_LO_EXPORT_ENABLED** + +lo_frequency +------------ + + .. py:attribute:: lo_frequency + + Specifies the LO signal frequency for the configured center frequency. + + If you are using the NI RF vector signal analyzer with an external LO, use this property to specify the LO frequency that the external LO source passes into the LO IN or LO1 IN connector on the RF downconverter front panel. If you are using an external LO, reading the value of this property after configuring the rest of the parameters returns the LO frequency needed by the device. + + Set this property to the actual LO frequency because NI-RFSA corrects for any difference between expected and actual LO frequencies. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Values**: + + **PXIe-5694**: 215 MHz + + **All other devices**: 0 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Configuration `_ + + `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ + + `PXIe-5841 Frequency and Bandwidth Configuration `_ + + + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_frequency` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:LO Frequency** + - C Attribute: **NIRFSA_ATTR_LO_FREQUENCY** + +lo_frequency_step_size +---------------------- + + .. py:attribute:: lo_frequency_step_size + + Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). + + You can only tune the LO frequency by multiples of the :py:attr:`nirfsa.Session.lo_frequency_step_size` property. For the PXIe-5644/5645/5646 and PXIe-5840/5841, the LO frequency can therefore be offset from the requested center frequency by as much as half of the :py:attr:`nirfsa.Session.lo_frequency_step_size` property. This offset is corrected by digitally frequency shifting the :py:attr:`nirfsa.Session.lo_frequency` property to the value requested in either the :py:attr:`nirfsa.Session.iq_carrier_frequency` property or the :py:attr:`nirfsa.Session.center_frequency` property. + + ---- + **Note** + For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. + + ---- + + The valid values for this property depend on the :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property. + + **PXIe-5644/5645/5646**: If the :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`, the specified value is coerced to the closest valid value. + + **PXIe-5840/5841/5842**: If the :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. + + * Values up to 100 MHz are coerced to 50 MHz. + + ---- + **Note** + The default value for the PXIe-5831 depends on the frequency range of the selected port for your instrument configuration. Refer to the `Instrument Configurations `_ topic for more information about available ports for your hardware configuration. + + ---- + + **Default Values:** + + **PXIe-5644/5645/5646:** 200 kHz + + **PXIe-5830:** 2 MHz + + **PXIe-5831/5832 (RF port):** 8 MHz + + **PXIe-5831/5832 (IF port):** 2 MHz, 4 MHz + + **PXIe-5840/5841:** + + - Fractional mode: 500 kHz + - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. + + **PXIe-5841 with PXIe-5655:** 500 kHz + + **PXIe-5842:** 1 Hz + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + +----------------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ + | lo_pll_fractional_mode_enabled | PXIe-5644/5645 | PXIe-5646 | PXIe-5840/5841 | PXIe-5830/5831/5832 | PXIe-5841 w/PXIe-5655 | + +========================================+=====================================+==============================+===============================================+============================================+=======================+ + | :py:data:`~nirfsa.NIRFSA_VAL_ENABLED` | 50 kHz to 24 MHz | 50 kHz to 25 MHz | 50 kHz to 100 MHz | LO1: 8 Hz to 400 MHz + LO2: 4 kHz to 400 MHz | 1 nHz to 50 MHz | + +----------------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ + | :py:data:`~nirfsa.NIRFSA_VAL_DISABLED` | 4 MHz, 5 MHz, 6 MHz, 12 MHz, 24 MHz | 2 MHz, 5 MHz, 10 MHz, 25 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, 100 MHz | LO1: -- + LO2: -- | 1 nHz to 50 MHz | + +----------------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Frequency Step Size (Hz)** + - C Attribute: **NIRFSA_ATTR_LO_FREQUENCY_STEP_SIZE** + +lo_injection_side +----------------- + + .. py:attribute:: lo_injection_side + + Specifies the LO injection side. + + **PXIe-5601/5663/5663E**: For frequencies below 517.5 MHz or above 6.4125 GHz, the LO injection side is fixed and NI-RFSA returns an error if you specify the incorrect value. If you do not configure this property, NI-RFSA selects the default LO injection side based on the downconverter center frequency. Reset this property to return to automatic behavior. + + **PXIe-5603/5605/5665 (3.6 GHz)/5667 (3.6 GHz)**: Setting this property to :py:data:`~nirfsa.LoInjection.LOW` is not supported for this device. + + **PXIe-5605/5665 (14 GHz)/5667 (7 GHz)**: Setting this property to :py:data:`~nirfsa.LoInjection.LOW` is supported for this device for frequencies greater than 4 GHz, but this configuration is not calibrated, and device specifications are not guaranteed. + + **PXIe-5606/5668**: Setting this property to :py:data:`~nirfsa.LoInjection.LOW` is supported for certain frequencies in high band, varying by final IF frequency. This configuration is not calibrated and device specifications are not guaranteed. + + **Default Values**: + + **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies < 3.0 GHz)**: :py:data:`~nirfsa.LoInjection.HIGH` + + **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies 3.0 GHz)**: :py:data:`~nirfsa.LoInjection.LOW` + + **PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668**: :py:data:`~nirfsa.LoInjection.HIGH` + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 + + **Defined Values**: + + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=====================================+=====================================================================================================================================================================================================+ + | :py:data:`~nirfsa.LoInjection.HIGH` | Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.LoInjection.LOW` | Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.LoInjection | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:LO Injection Side** + - C Attribute: **NIRFSA_ATTR_LO_INJECTION_SIDE** + +lo_in_power +----------- + + .. py:attribute:: lo_in_power + + Returns the power level, in dBm, expected at the LO IN terminal when the :py:attr:`nirfsa.Session.lo_source` property is set to :py:data:`~nirfsa.LoSource.LO_IN`. + + ---- + **Note** + For the PXIe-5644/5645/5646, this property is always read-only. + + ---- + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO In Power (dBm)** + - C Attribute: **NIRFSA_ATTR_LO_IN_POWER** + +lo_out_export_configure_from_rfsg +--------------------------------- + + .. py:attribute:: lo_out_export_configure_from_rfsg + + Specifies whether to allow NI-RFSG to control the NI-RFSA LO out export. + + Set this property to :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.ENABLED` to allow NI-RFSG to control the LO out export. Use the NIRFSG ATTR RF IN LO EXPORT ENABLED property to control the NI-RFSA LO out export from NI-RFSG. + + **Default Value:** :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.DISABLED` + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +----------------------------------------------------------+----------------------------------------------------------------------+ + | Name | Description | + +==========================================================+======================================================================+ + | :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.DISABLED` | Do not allow NI-RFSG to control the NI-RFSA local oscillator export. | + +----------------------------------------------------------+----------------------------------------------------------------------+ + | :py:data:`~nirfsa.LoOutExportConfigureFromRfsg.ENABLED` | Allow NI-RFSG to control the NI-RFSA local oscillator export. | + +----------------------------------------------------------+----------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------+ + | Characteristic | Value | + +=======================+====================================+ + | Datatype | enums.LoOutExportConfigureFromRfsg | + +-----------------------+------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:LO Out Export Configure From RFSG** + - C Attribute: **NIRFSA_ATTR_LO_OUT_EXPORT_CONFIGURE_FROM_RFSG** + +lo_out_power +------------ + + .. py:attribute:: lo_out_power + + Specifies the power level, in dBm, of the signal at the LO OUT terminal when the :py:attr:`nirfsa.Session.lo_export_enabled` property is set to True. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Units:** dBm + + **Supported Devices:** PXIe-5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_out_power` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_out_power` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Out Power (dBm)** + - C Attribute: **NIRFSA_ATTR_LO_OUT_POWER** + +lo_pll_fractional_mode_enabled +------------------------------ + + .. py:attribute:: lo_pll_fractional_mode_enabled + + Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). + + Fractional mode gives a finer frequency step resolution, but it may result in non harmonic spurs. Refer to the device specifications for your device for more information about fractional mode and non harmonic spurs. + + ---- + **Note** + The :py:attr:`nirfsa.Session.lo_pll_fractional_mode_enabled` property is applicable only when using the internal LO. + + ---- + + ---- + **Note** + For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. + + ---- + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value**: :py:data:`~nirfsa.LoPllFractionalModeEnabled.ENABLED` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +--------------------------------------------------------+------------------------------------------+ + | Name | Description | + +========================================================+==========================================+ + | :py:data:`~nirfsa.LoPllFractionalModeEnabled.DISABLED` | Disables fractional mode for the LO PLL. | + +--------------------------------------------------------+------------------------------------------+ + | :py:data:`~nirfsa.LoPllFractionalModeEnabled.ENABLED` | Enables fractional mode for the LO PLL. | + +--------------------------------------------------------+------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.LoPllFractionalModeEnabled | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | los | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO PLL Fractional Mode Enabled** + - C Attribute: **NIRFSA_ATTR_LO_PLL_FRACTIONAL_MODE_ENABLED** + +lo_source +--------- + + .. py:attribute:: lo_source + + Specifies the LO signal source used to downconvert the RF input signal. + + If no signal downconversion is required, this property is ignored. If this property is set to "" (empty string), NI-RFSA uses the internal LO source. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsa.Session._set_attribute_vi_string` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). + + ---- + **Note** + For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to :py:data:`~nirfsa.LoSource.LO_SOURCE_SG_SA_SHARED`. + + ---- + + + + + **Default Value**: :py:data:`~nirfsa.LoSource.ONBOARD` ("Onboard") + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ + `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ + + **Defined Values**: + + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================================+===================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.LoSource.ONBOARD` | Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.LoSource.LO_IN` | Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.LoSource.LO_SOURCE_SECONDARY` | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.LoSource.LO_SOURCE_SG_SA_SHARED` | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_source` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_source` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.LoSource | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | los | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:LO Source** + - C Attribute: **NIRFSA_ATTR_LO_SOURCE** + +lo_temperature +-------------- + + .. py:attribute:: lo_temperature + + Returns the current temperature, in degrees Celsius, of the LO module. + + **PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668** This property is not supported if you are using an external LO. + + **PXIe-5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:LO Temperature (Degrees C)** + - C Attribute: **NIRFSA_ATTR_LO_TEMPERATURE** + +lo_vco_frequency_step_size +-------------------------- + + .. py:attribute:: lo_vco_frequency_step_size + + Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. + + ---- + **Note** + Do not set this property with the :py:attr:`nirfsa.Session.lo_frequency_step_size` property. + + ---- + + **Valid Values**: + + LO1: 1 Hz to 50 MHz + + LO2: 1 Hz to 100 MHz + + **Default Values**: 1 MHz + + **Supported Devices**: PXIe-5830/5831/5832 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO VCO Frequency Step Size (Hz)** + - C Attribute: **NIRFSA_ATTR_LO_VCO_FREQUENCY_STEP_SIZE** + +lo_yig_main_coil_drive +---------------------- + + .. py:attribute:: lo_yig_main_coil_drive + + Adjusts the dynamics of the current driving the YIG main coil. + + ---- + **Note** + Setting this property to :py:data:`~nirfsa.LoYigMainCoilDrive.FAST` allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. This property is not supported if you are using an external LO. + + ---- + + **Default Value**: :py:data:`~nirfsa.LoYigMainCoilDrive.NORMAL` + + **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 + + **Defined Values**: + + +----------------------------------------------+------------------------------------------------------------------+ + | Name | Description | + +==============================================+==================================================================+ + | :py:data:`~nirfsa.LoYigMainCoilDrive.NORMAL` | Adjusts the YIG main coil on the LO for an underdamped response. | + +----------------------------------------------+------------------------------------------------------------------+ + | :py:data:`~nirfsa.LoYigMainCoilDrive.FAST` | Adjusts the YIG main coil on the LO for an overdamped response. | + +----------------------------------------------+------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.LoYigMainCoilDrive | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:LO YIG Main Coil Drive** + - C Attribute: **NIRFSA_ATTR_LO_YIG_MAIN_COIL_DRIVE** + +max_device_instantaneous_bandwidth +---------------------------------- + + .. py:attribute:: max_device_instantaneous_bandwidth + + Returns the maximum instantaneous bandwidth of the device. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Max Device Instantaneous Bandwidth** + - C Attribute: **NIRFSA_ATTR_MAX_DEVICE_INSTANTANEOUS_BANDWIDTH** + +max_iq_rate +----------- + + .. py:attribute:: max_iq_rate + + Returns the maximum I/Q rate. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Max IQ Rate** + - C Attribute: **NIRFSA_ATTR_MAX_IQ_RATE** + +mechanical_attenuation +---------------------- + + .. py:attribute:: mechanical_attenuation + + Specifies the level of mechanical attenuation for the RF path, in dB. + + **PXIe-5667**: This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. + + **PXIe-5668with PXIe-5698**: This property is read-only when the :py:attr:`nirfsa.Session.rf_preamp_enabled` property is set to :py:data:`~nirfsa.EnableRfPreamp.ENABLED`. + + **Units**: dB + + **Valid Values:** + + **PXIe-5601/5663/5663E**: 0, 16 + + **PXIe-5603/5665 (3.6 GHz)**: 0, 10, 20, 30 + + **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 10, 20, 30 + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 0 + + **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 + + **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 0 + + **PXIe-5668 with PXIe-5698 with the** :py:attr:`nirfsa.Session.rf_preamp_enabled` property set to :py:data:`~nirfsa.EnableRfPreamp.ENABLED`: 5 + + **Default Value**: N/A + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Mechanical Attenuation (dB)** + - C Attribute: **NIRFSA_ATTR_MECHANICAL_ATTENUATION** + +memory_size +----------- + + .. py:attribute:: memory_size + + Returns the digitizer onboard memory size, in bytes. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Memory Size** + - C Attribute: **NIRFSA_ATTR_MEMORY_SIZE** + +minimum_acpr +------------ + + .. py:attribute:: minimum_acpr + + Specifies the minimum adjacent channel power ratio (ACPR), in dB, relative to the main channel reference level. + + This property configures NI-RFSA to optimize downconverter gain to measure a lower-power adjacent channel, adding gain only after filtering the main channel. The gain NI-RFSA applies is always less than or equal to the ACPR value you specify. + + ---- + **Note** + For the PXIe-5665 (3.6 GHz), this property is supported only if you set the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth`, :py:attr:`nirfsa.Session.spectrum_span`, or :py:attr:`nirfsa.Session.if_filter_bandwidth` property to a value less than 300 kHz. For the PXIe-5665 (14 GHz), this property is supported for :py:attr:`nirfsa.Session.device_instantaneous_bandwidth`, :py:attr:`nirfsa.Session.spectrum_span`, or :py:attr:`nirfsa.Session.if_filter_bandwidth` property values less than 300 kHz by using the 300 kHz IF filter, and it is supported for values between 300 kHz and 5 MHz by using the 5 MHz IF filter. + + ---- + + ---- + **Note** + NI-RFSA coerces this property to zero for the PXI-5600, PXIe-5601 and the PXIe-5667. For all other devices, read the coerced value of this property to determine the actual amount of gain applied. + + ---- + + ---- + **Note** + For the PXIe-5668, this property alters the :py:attr:`nirfsa.Session.if_output_power_level` property. This property will not affect the :py:attr:`nirfsa.Session.reference_level` property. + + ---- + + **Default Value**: 0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Minimum Adjacent Channel Power Ratio (dB)** + - C Attribute: **NIRFSA_ATTR_MINIMUM_ACPR** + +mixer_level +----------- + + .. py:attribute:: mixer_level + + Specifies the mixer level, in dBm. + + The mixer level represents the attenuation value to apply to the input RF signal as it reaches the first mixer in the signal chain. If you do not set this property, NI-RFSA automatically selects an optimal mixer level value based on the reference level. The valid values for this property depend on your device configuration. + + If you set the :py:attr:`nirfsa.Session.mixer_level` and :py:attr:`nirfsa.Session.mixer_level_offset` properties at the same time, NI-RFSA returns an error. + + **PXIe-5601/5663/5663E**: This property is read-only. + + **PXIe-5667**: This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. + + **Units**: dBm + + **Default Values**: + + **PXI-5600/5661**: -30 + + **PXIe-5603/5605/5665/5667/5668**: -10 + + **All other devices**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Mixer Level (dBm)** + - C Attribute: **NIRFSA_ATTR_MIXER_LEVEL** + +mixer_level_offset +------------------ + + .. py:attribute:: mixer_level_offset + + Specifies the number of dB by which to adjust the device mixer level. + + The default value is 0, which specifies device settings that are the best compromise between distortion and noise. Specifying a positive value for this property configures the device for moderate distortion and low noise, and specifying a negative value results in low distortion and higher noise. + + You cannot set the :py:attr:`nirfsa.Session.mixer_level` and :py:attr:`nirfsa.Session.mixer_level_offset` properties at the same time. + + **PXIe-5667**: This property is read-only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.NIRFSA_VAL_DISABLED`. + + **Units**: dB + + **Default Value**: 0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Mixer Level Offset (dB)** + - C Attribute: **NIRFSA_ATTR_MIXER_LEVEL_OFFSET** + +module_power_consumption +------------------------ + + .. py:attribute:: module_power_consumption + + Returns the module power consumption. + + ---- + **Note** + If you query this property during RF list mode, list steps may take longer to complete during list execution. + + ---- + + **Units**: watts + + **Default Value**: N/A + + **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Module Power Consumption (W)** + - C Attribute: **NIRFSA_ATTR_MODULE_POWER_CONSUMPTION** + +module_revision +--------------- + + .. py:attribute:: module_revision + + Returns the revision of the RF downconverter module. + + ---- + **Note** + For the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5840/5841, this property returns the revision of the VST module. For the PXIe-5830/5831/5832, this property returns the revision of the PXIe-3621/3622 + + ---- + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Module Revision** + - C Attribute: **NIRFSA_ATTR_MODULE_REVISION** + +noise_source_power_enabled +-------------------------- + + .. py:attribute:: noise_source_power_enabled + + Enables the 28 V DC source on the device front panel. + + **PXIe-5668 with PXIe-5698**: When this property is set to :py:data:`~nirfsa.NoiseSourcePowerEnabled.ENABLED`, the PXIe-5698 noise source is used instead of the PXIe-5668 noise source. + + **Units**: dB + + **Default Value**: :py:data:`~nirfsa.NoiseSourcePowerEnabled.DISABLED` + + **Supported Devices**: PXIe-5606, PXIe-5668, PXIe-5698 + + **Defined Values**: + + +-----------------------------------------------------+----------------------------------+ + | Name | Description | + +=====================================================+==================================+ + | :py:data:`~nirfsa.NoiseSourcePowerEnabled.DISABLED` | Disables the noise source power. | + +-----------------------------------------------------+----------------------------------+ + | :py:data:`~nirfsa.NoiseSourcePowerEnabled.ENABLED` | Enables the noise source power. | + +-----------------------------------------------------+----------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------+ + | Characteristic | Value | + +=======================+===============================+ + | Datatype | enums.NoiseSourcePowerEnabled | + +-----------------------+-------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:5606:Noise Source Power Enabled** + - C Attribute: **NIRFSA_ATTR_NOISE_SOURCE_POWER_ENABLED** + +number_of_records +----------------- + + .. py:attribute:: number_of_records + + Specifies the number of records to acquire if the :py:attr:`nirfsa.Session.number_of_records_is_finite` property is set to True. + + **Default Value**: 1 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureNumberOfRecords` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Number Of Records** + - C Attribute: **NIRFSA_ATTR_NUMBER_OF_RECORDS** + +number_of_records_is_finite +--------------------------- + + .. py:attribute:: number_of_records_is_finite + + Specifies whether the device stops after acquiring the specified number of records or acquires records continuously. + + **Defined Values**: + + | Value | Description | + |:---------|:--------------------------------------------------------------| + | True | Acquire a finite number of records. | + | False | Acquire records continuously until you abort the acquisition. | + + **Default Value**: True + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureNumberOfRecords` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Number Of Records Is Finite** + - C Attribute: **NIRFSA_ATTR_NUMBER_OF_RECORDS_IS_FINITE** + +number_of_samples +----------------- + + .. py:attribute:: number_of_samples + + Specifies the number of samples to acquire. + + This property is valid only if the :py:attr:`nirfsa.Session.number_of_samples_is_finite` property is set to True. + + **Default Value**: 1,000 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureNumberOfSamples` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Number Of Samples** + - C Attribute: **NIRFSA_ATTR_NUMBER_OF_SAMPLES** + +number_of_samples_is_finite +--------------------------- + + .. py:attribute:: number_of_samples_is_finite + + Specifies whether the device acquires a finite number of samples or acquires continuously. + + **Defined Values**: + + | Value | Description | + |:---------|:------------------------------------------------------| + | True | Acquire a finite number of samples. | + | False | Acquire continuously until you abort the acquisition. | + + **Default Value**: True + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureNumberOfSamples` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Number Of Samples Is Finite** + - C Attribute: **NIRFSA_ATTR_NUMBER_OF_SAMPLES_IS_FINITE** + +number_of_spectral_lines +------------------------ + + .. py:attribute:: number_of_spectral_lines + + Specifies the number of spectral lines expected with the current power spectrum configuration. + + If you do not configure this property, NI-RFSA selects an appropriate value based on the :py:attr:`nirfsa.Session.resolution_bandwidth` property. If you configure this property, NI-RFSA coerces the :py:attr:`nirfsa.Session.resolution_bandwidth` value based on the number of spectral lines requested and the value of the :py:attr:`nirfsa.Session.spectrum_span` property. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Number Of Spectral Lines** + - C Attribute: **NIRFSA_ATTR_NUMBER_OF_SPECTRAL_LINES** + +osp_data_scaling_factor +----------------------- + + .. py:attribute:: osp_data_scaling_factor + + Specifies the scaling factor applied to the time-domain voltage data in the IF digitizer. + + Use this property to maximize the dynamic range of the digitizer by increasing the maximum IF power the digitizer can measure without creating OSP overflows. + + Because of the device amplitude response, some wide-band signals normally attenuated by the downconverter go through the IF digitizer without causing an ADC overflow. During IF equalization, these wide-band digitizer input signals may become amplified. These amplified input signal values overflow the available numeric range used in the signal processing algorithm. + + You can use this property when OSP calculations would generate an overflow while applying digital filters to the data. The OSP module in the digitizer multiplies the time-domain signal amplitude, in volts, by the specified property value before further onboard processing. Set this property to a value less than 1 to avoid OSP overflow for near full-scale IF signals and to use the maximum dynamic range of the digitizer. NI-RFSA compensates for the specified OSP data scaling factor to ensure that the correct scaled data, in absolute levels, is always returned regardless of the value of this property. + + **Valid Values:**: 0.25 to 1.0 + + **Default Values:** + + **PXI-5661, PXIe-5663/5663E/5665 (3.6 GHz)/5667 (3.6 GHz)/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: 1.0 + + **PXIe-5665 (14 GHz)/5667 (7 GHz)**: 0.8 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:OSP Data Scaling Factor** + - C Attribute: **NIRFSA_ATTR_OSP_DATA_SCALING_FACTOR** + +overflow_error_reporting +------------------------ + + .. py:attribute:: overflow_error_reporting + + Configures error reporting for ADC and onboard signal processing overflows. + + Overflows lead to clipping of the waveform. + + **Default Value**: :py:data:`~nirfsa.OverflowErrorReporting.WARNING` + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------------+--------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================================+========================================================================================================+ + | :py:data:`~nirfsa.OverflowErrorReporting.WARNING` | Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. | + +----------------------------------------------------+--------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.OverflowErrorReporting.DISABLED` | Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. | + +----------------------------------------------------+--------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.OverflowErrorReporting | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Overflow Error Reporting** + - C Attribute: **NIRFSA_ATTR_OVERFLOW_ERROR_REPORTING** + +phase_offset +------------ + + .. py:attribute:: phase_offset + + Specifies the offset to apply to the initial I and Q phases. + + **Valid Values**: 0 to 180 + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Phase Offset** + - C Attribute: **NIRFSA_ATTR_PHASE_OFFSET** + +power_spectrum_units +-------------------- + + .. py:attribute:: power_spectrum_units + + Specifies the units of the power spectrum. + + **Default Value**: :py:data:`~nirfsa.PowerSpectrumUnits.DBM` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------------------+---------------------------------------------+ + | Name | Description | + +=====================================================+=============================================+ + | :py:data:`~nirfsa.PowerSpectrumUnits.DBM` | Units are dB with reference to 1 milliwatt. | + +-----------------------------------------------------+---------------------------------------------+ + | :py:data:`~nirfsa.PowerSpectrumUnits.VOLTS_SQUARED` | Units are in volts squared. | + +-----------------------------------------------------+---------------------------------------------+ + | :py:data:`~nirfsa.PowerSpectrumUnits.DBMV` | Units are dB with reference to 1 millivolt. | + +-----------------------------------------------------+---------------------------------------------+ + | :py:data:`~nirfsa.PowerSpectrumUnits.DBUV` | Units are dB with reference to 1 microvolt. | + +-----------------------------------------------------+---------------------------------------------+ + | :py:data:`~nirfsa.PowerSpectrumUnits.VOLTS` | Units are in volts. | + +-----------------------------------------------------+---------------------------------------------+ + | :py:data:`~nirfsa.PowerSpectrumUnits.WATTS` | Units are in watts. | + +-----------------------------------------------------+---------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.PowerSpectrumUnits | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Power Spectrum Units** + - C Attribute: **NIRFSA_ATTR_POWER_SPECTRUM_UNITS** + +preselector_present +------------------- + + .. py:attribute:: preselector_present + + Returns whether a preselector is available on the RF downconverter module. + + **Defined Values**: + + | Value | Description | + |:---------|:--------------------------------------------------| + | True | A preselector is available on the downconverter. | + | False | No preselector is available on the downconverter. | + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Preselector Present** + - C Attribute: **NIRFSA_ATTR_PRESELECTOR_PRESENT** + +ready_for_advance_event_terminal_name +------------------------------------- + + .. py:attribute:: ready_for_advance_event_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForAdvanceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerNameReadyForAdvanceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Advance:Terminal Name** + - C Attribute: **NIRFSA_ATTR_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME** + +ready_for_ref_event_terminal_name +--------------------------------- + + .. py:attribute:: ready_for_ref_event_terminal_name + + Returns the fully qualified signal name as a string. + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForReferenceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/ReadyForReferenceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Ref:Terminal Name** + - C Attribute: **NIRFSA_ATTR_READY_FOR_REF_EVENT_TERMINAL_NAME** + +ready_for_start_event_terminal_name +----------------------------------- + + .. py:attribute:: ready_for_start_event_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForStartEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/ReadyForStartEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Ready For Start:Terminal Name** + - C Attribute: **NIRFSA_ATTR_READY_FOR_START_EVENT_TERMINAL_NAME** + +records_done +------------ + + .. py:attribute:: records_done + + Returns the number of records the RF vector signal analyzer has acquired. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Fetch:Records Done** + - C Attribute: **NIRFSA_ATTR_RECORDS_DONE** + +reference_level +--------------- + + .. py:attribute:: reference_level + + Specifies the reference level, in dBm. + + The reference level represents the maximum expected power of an RF input signal. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + ---- + + Refer to the :py:attr:`nirfsa.Session.external_gain` property for more information about how configuring an external gain and a reference level affect attenuation. + + **Default Value**: 0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Improving Your Measurements `_ + + `Programming Attenuation-Related Properties and Properties Using NI-RFSA `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureReferenceLevel` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Reference Level (dBm)** + - C Attribute: **NIRFSA_ATTR_REFERENCE_LEVEL** + +reference_level_headroom +------------------------ + + .. py:attribute:: reference_level_headroom + + Specifies the margin NI-RFSA adds to the :py:attr:`nirfsa.Session.reference_level` property. + + The margin helps to avoid clipping and overflow warnings if the input signal exceeds the configured reference level. + + NI-RFSA configures the input gain to avoid clipping and associated overflow warnings as long as the instantaneous power of the input signal remains within the reference level plus the reference level headroom. If you know the input power of the signal precisely or have already included margin in the reference level, you may be able to improve the signal-to-noise ratio by reducing the reference level headroom. + + **Units**: dB + + **Default Value**: + + **PXIe-5830/5831/5832/5841/5842/5860**: 1 dB + + **PXIe-5840**: 0 dB + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Reference Level Headroom (dB)** + - C Attribute: **NIRFSA_ATTR_REFERENCE_LEVEL_HEADROOM** + +ref_clock_rate +-------------- + + .. py:attribute:: ref_clock_rate + + Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. + + This property is only valid when the :py:attr:`nirfsa.Session.ref_clock_source` property is set to :py:data:`~nirfsa.NIRFSA_VAL_CLK_IN`, :py:data:`~nirfsa.NIRFSA_VAL_REF_IN`, or :py:data:`~nirfsa.ReferenceClockSource.REF_IN_2`. + + **Valid Values**: + + **PXIe-5644/5645/5646, PXIe-5601/5663/5663E, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841**: 10 MHz + + **PXIe-5603/5605/5665/5667/5668**: 5 MHz to 100 MHz, in increments of 1 MHz + + **PXIe-5841 with PXIe-5655, PXIe-5842**: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz *y*, where *y* is 4, 8, 16, 24, 25, or 32. + + **PXIe-5860**: 10 MHz, 100 MHz + + **Default Value**: 10 MHz + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_ref_clock` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Ref Clock Rate** + - C Attribute: **NIRFSA_ATTR_REF_CLOCK_RATE** + +ref_clock_source +---------------- + + .. py:attribute:: ref_clock_source + + Specifies the Reference Clock source. + + ---- + **Note** + For the PXIe-5694, if your application requires an external LO source, set this property to :py:data:`~nirfsa.ReferenceClockSource.NONE`. + + ---- + + **Default Values**: + + **PXIe-5694**: :py:data:`~nirfsa.ReferenceClockSource.REF_IN` + + **All other devices**: :py:data:`~nirfsa.ReferenceClockSource.ONBOARD_CLOCK` + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_ref_clock` + + **Defined Values**: + + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +========================================================+===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ReferenceClockSource.NONE` | No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockSource.ONBOARD_CLOCK` | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockSource.REF_IN` | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockSource.PXI_CLK` | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockSource.CLK_IN` | **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockSource.PXI_CLK_MASTER` | **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceClockSource.REF_IN_2` | **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. | + +--------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ReferenceClockSource | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Ref Clock Source** + - C Attribute: **NIRFSA_ATTR_REF_CLOCK_SOURCE** + +ref_to_ref_trigger_holdoff +-------------------------- + + .. py:attribute:: ref_to_ref_trigger_holdoff + + Specifies the minimum time, in seconds, that must elapse between Reference Triggers of two records. + + The device does not recognize the Reference Trigger of the next record before this minimum time elapses. + + **Units:**: seconds + + **Default Value**: 0 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Advanced:Ref To Ref Trigger Holdoff (s)** + - C Attribute: **NIRFSA_ATTR_REF_TO_REF_TRIGGER_HOLDOFF** + +ref_trigger_delay +----------------- + + .. py:attribute:: ref_trigger_delay + + Specifies the trigger delay time, in seconds. + + The trigger delay time is the length of time the IF digitizer waits after it receives the trigger before it asserts the Reference Event. + + **Units:**: seconds + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Advanced:Ref Trigger Delay (s)** + - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_DELAY** + +ref_trigger_minimum_quiet_time +------------------------------ + + .. py:attribute:: ref_trigger_minimum_quiet_time + + Specifies a time duration, in seconds, for which the signal must be quiet before the device arms the trigger. + + The signal is quiet when it is below the trigger level if the trigger slope, specified by the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_slope` property, is set to :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.RISING` or when it is above the trigger level if the trigger slope is set to :py:data:`~nirfsa.ReferenceTriggerIqPowerEdgeSlope.FALLING`. + + By default, this value is set to 0, which means the device does not wait for a quiet time before arming the trigger. This property is useful to trigger the acquisition on signals containing repeated bursts, but for which each burst may have large changes in signal power within itself. By configuring the minimum quiet time to the time between bursts, you can ensure that the trigger occurs at the beginning of a burst rather than at the signal power change within a burst. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Minimum Quiet Time** + - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_MINIMUM_QUIET_TIME** + +ref_trigger_osp_delay_enabled +----------------------------- + + .. py:attribute:: ref_trigger_osp_delay_enabled + + Specifies whether the digitizer OSP block delays Reference Triggers, along with the data samples, moving through the OSP block or if the Reference Triggers bypass the OSP block and are processed immediately. + + Enabling this property requires the following equipment configurations: + + - All digitizers being used must be the same model and hardware revision. + - All digitizers must use the same firmware. + - All digitizers must be configured with the same I/Q rate. + - All devices must use the same signal path. + + **PXIe-5663/5663E**: Read the value of the :py:attr:`nirfsa.Session.IF_FILTER` property to determine the IF filters used by the PXIe-5663/5663E. + + **PXIe-5665/5667/5668**:Refer to the device-specific information in the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property to determine the IF filters used by the PXIe-5665/5667/5668. If you set the :py:attr:`nirfsa.Session.fft_width` property, refer to the device-specific information for this property and the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property to determine the IF filters used. For frequencies less than 3.6 GHz, set the :py:attr:`nirfsa.Session.rf_preamp_enabled` to the same value for all devices. + + **PXIe-5665 14 GHz**: Set the :py:attr:`nirfsa.Session.downconverter_preselector_enabled` to the same value for all devices. + + If the I/Q rate is set programmatically for I/Q acquisitions, the following properties should be identical for the best device synchronization: + + - :py:attr:`nirfsa.Session.digital_if_equalization_enabled` + - :py:attr:`nirfsa.Session.spectrum_osp_sampling_ratio` + + For spectrum acquisitions, the following properties should be identical for the best device synchronization: + + - :py:attr:`nirfsa.Session.spectrum_span` + - :py:attr:`nirfsa.Session.resolution_bandwidth_type` + - :py:attr:`nirfsa.Session.digital_if_equalization_enabled` + - :py:attr:`nirfsa.Session.spectrum_osp_sampling_ratio` + + For more information about the digitizer OSP block and Reference Triggers, refer to the following topics in the *NI High-Speed Digitizers Help*: + + - NI 5622 Onboard Signal Processing (OSP) + - NI 5142 Onboard Signal Processing (OSP) + - NI PXIe-5622 Trigger Sources + - NI PXI-5142 Trigger Sources + - NI PXIe-5622 Block Diagram + - NI PXI-5142 Trigger Sources + + **Default Value**: :py:data:`~nirfsa.ReferenceTriggerOspDelayEnabled.ENABLED` + + **Supported Devices**:PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 + + **Defined Values**: + + +-------------------------------------------------------------+-----------------------------------------------+ + | Name | Description | + +=============================================================+===============================================+ + | :py:data:`~nirfsa.ReferenceTriggerOspDelayEnabled.DISABLED` | Disables OSP delay for the Reference Trigger. | + +-------------------------------------------------------------+-----------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerOspDelayEnabled.ENABLED` | Enables OSP delay for the Reference Trigger. | + +-------------------------------------------------------------+-----------------------------------------------+ + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------------+ + | Characteristic | Value | + +=======================+=======================================+ + | Datatype | enums.ReferenceTriggerOspDelayEnabled | + +-----------------------+---------------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Advanced:OSP Delay Enabled** + - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_OSP_DELAY_ENABLED** + +ref_trigger_pretrigger_samples +------------------------------ + + .. py:attribute:: ref_trigger_pretrigger_samples + + Specifies the number of pretrigger samples the samples acquired before the Reference Trigger is received to be acquired per record. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_digital_edge_ref_trigger` + - :py:meth:`nirfsa.Session.configure_software_edge_ref_trigger` + - :py:meth:`nirfsa.Session.ConfigureIqPowerEdgeRefTrigger` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Pretrigger Samples** + - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_PRETRIGGER_SAMPLES** + +ref_trigger_terminal_name +------------------------- + + .. py:attribute:: ref_trigger_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/RefTrigger, where *BasebandModule* is the name of your baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/RefTrigger, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/RefTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/RefTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Terminal Name** + - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_TERMINAL_NAME** + +ref_trigger_type +---------------- + + .. py:attribute:: ref_trigger_type + + Specifies whether you want the Reference Trigger to be a digital edge, I/Q power edge, or software trigger. + + **Default Value**: :py:data:`~nirfsa.ReferenceTriggerType.NONE` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +========================================================+=============================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.ReferenceTriggerType.NONE` | No Reference Trigger is configured. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerType.DIGITAL_EDGE` | The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_ref_trigger_source` property. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerType.IQ_POWER_EDGE` | The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_slope` property. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerType.SOFTWARE_EDGE` | The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_REF_TRIGGER` as the **trigger** parameter. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.ReferenceTriggerType.IQ_ANALOG_EDGE` | The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the :py:attr:`nirfsa.Session.IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE` property. This value is valid only for PXIe-5644/5645 devices. | + +--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ReferenceTriggerType | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Type** + - C Attribute: **NIRFSA_ATTR_REF_TRIGGER_TYPE** + +resolution_bandwidth +-------------------- + + .. py:attribute:: resolution_bandwidth + + Specifies the resolution along the x-axis of the spectrum. + + NI-RFSA uses the resolution bandwidth value to determine the acquisition size. If specified, the :py:attr:`nirfsa.Session.number_of_spectral_lines` property value overrides this value. + + **Units**: hertz (Hz) + + **Default Value**: 100 kHz + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.ConfigureResolutionBandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Resolution Bandwidth (Hz)** + - C Attribute: **NIRFSA_ATTR_RESOLUTION_BANDWIDTH** + +resolution_bandwidth_type +------------------------- + + .. py:attribute:: resolution_bandwidth_type + + Specifies how the :py:attr:`nirfsa.Session.resolution_bandwidth` property is expressed. + + **Default Value**: :py:data:`~nirfsa.SpectrumResolutionBandwidthType.THREE_DECIBELS` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===============================================================================+==========================================================================================================================================================+ + | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.THREE_DECIBELS` | Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. | + +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.SIX_DECIBELS` | Defines the RBW in terms of the 6 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. | + +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.BIN_WIDTH` | Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. | + +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumResolutionBandwidthType.EQUIVALENT_NOISE_BANDWIDTH` | Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. | + +-------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------------+ + | Characteristic | Value | + +=======================+=======================================+ + | Datatype | enums.SpectrumResolutionBandwidthType | + +-----------------------+---------------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Resolution Bandwidth Type** + - C Attribute: **NIRFSA_ATTR_RESOLUTION_BANDWIDTH_TYPE** + +rf_attenuation_step_size +------------------------ + + .. py:attribute:: rf_attenuation_step_size + + Specifies the step size for the RF attenuation level. + + The actual RF attenuation is coerced up to the next highest multiple of this step size. You can also set this value to change the step size for the device within the supported device precision and configuration. + + **PXI-5600**: The device configuration supports only the following attenuation step size values: 10, 20, 30, 40, and 50. + + **PXIe-5601**: The attenuation is calculated based on the actual calibrated value closest to the desired value, so the step size varies as the actual gain values vary between consecutive attenuation settings. + + **PXIe-5603**: The device configuration supports attenuation changes in 1 dB steps. + + **PXIe-5605**: The available attenuation step size depends on the specified center frequency. In the high band signal path (input frequencies greater than 3.6 GHz), the only available attenuation is the step attenuator that you can change in 5 dB steps. In the low band signal path (input frequencies less than or equal to 3.6 GHz), an additional 31 dB of solid-state attenuation is available in 1 dB steps. The 5 dB default value indicates that, even when in the low band signal path, NI-RFSA changes the attenuation in 5 dB steps using only the mechanical attenuator. You can use this property to affect when the device changes the attenuation settings. To use the solid-state attenuation in the low band signal path, change the step size to a value other than a multiple of 5 (for example, a step size of 1 dB). If you use a value other than a multiple of 5 while in the high band of the PXIe-5605, NI-RFSA returns an error. + + **Units**: dB + + **Valid Values:** + + **PXI-5600/5661**: 10, 20, 30, 40, and 50 + + **PXIe-5601/5663/5663E**: 0.0 to 93.0, continuous + + **PXIe-5603/5665 (3.6 GHz)**: 1.0 to 74.0, in 1 dB steps + + **PXIe-5605/5665 (14 GHz) (low band), PXIe-5606/5668 (low band)**: 1.0 to 106.0, in 1 dB steps + + **PXIe-5605/5665 (14 GHz) (high band), PXIe-5606/5668 (high band)**: 5.0 to 75.0, in 5 dB steps + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 1.0 to 74.0, in 1 dB steps + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 + + **PXIe-5667 (7 GHz) using the PXIe-5693 preselector low frequency bypass path**: 1.0 to 106.0 in 1 dB steps + + **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 + + **Default Value:** + + **PXI-5600/5661**: 10.0 + + **PXIe-5601/5663/5663E**: 0.0 + + **PXIe-5603/5665 (3.6 GHz)**: 1.0 + + **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 5.0 + + **PXIe-5667**: 1.0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:RF Attenuation Step Size (dB)** + - C Attribute: **NIRFSA_ATTR_RF_ATTENUATION_STEP_SIZE** + +rf_high_pass_filtering +---------------------- + + .. py:attribute:: rf_high_pass_filtering + + Specifies the maximum corner frequency of the highpass filter in the RF signal path. + + The device uses the highest frequency highpass filter option below or equal to the value you specify and returns a coerced value. Specifying a value of 0 disables highpass filtering. + + For multispan acquisitions, the device uses the appropriate filter for each subspan during acquisition, depending on the details of your application and the value you specify. In multispan acquisition spectrum applications, this property returns the value you specified rather than a coerced value if multiple highpass filters are used during the acquisition. + + The PXIe-5606 features highpass filters at 1.35 GHz and 2.2 GHz. + + **Valid Values**: 0 to 26.5 + + **Default Value**: 0 + + **Supported Devices**: PXIe-5606, PXIe-5668 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:RF Highpass Filtering** + - C Attribute: **NIRFSA_ATTR_RF_HIGH_PASS_FILTERING** + +rf_out_lo_export_enabled +------------------------ + + .. py:attribute:: rf_out_lo_export_enabled + + Specifies whether to enable the RF OUT LO OUT terminal on the PXIe-5840/5841. + + When this property is enabled, if the :py:attr:`nirfsa.Session.lo_source` property is set to :py:data:`~nirfsa.LoSource.LO_IN` and you do not set the :py:attr:`nirfsa.Session.lo_frequency` or :py:attr:`nirfsa.Session.downconverter_center_frequency` properties, NI-RFSA rounds the LO frequency to approximately an LO step size as if the source was :py:data:`~nirfsa.LoSource.ONBOARD`. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. + + **Default Value:**: :py:data:`~nirfsa.RfOutLoExport.UNSPECIFIED` + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==============================================+================================================================================================================+ + | :py:data:`~nirfsa.RfOutLoExport.DISABLED` | The LO signal is not exported from the RF OUT LO OUT terminal. | + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.RfOutLoExport.ENABLED` | The LO signal is exported from the RF OUT LO OUT terminal. | + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.RfOutLoExport.UNSPECIFIED` | The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. | + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | enums.RfOutLoExport | + +-----------------------+---------------------+ + | Permissions | read-write | + +-----------------------+---------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:RF Out LO Export Enabled** + - C Attribute: **NIRFSA_ATTR_RF_OUT_LO_EXPORT_ENABLED** + +rf_preamp_enabled +----------------- + + .. py:attribute:: rf_preamp_enabled + + Specifies whether the RF preamplifier is enabled in the system. + + **PXIe-5667, PXIe-5644/5645/5646, PXIe-5830/5831/5840/5841/5842**: The :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` value enables the RF preamplifier based on the value of the :py:attr:`nirfsa.Session.reference_level` property and the center frequency. Except on the PXIe-5830/5831/5832, NI-RFSA coerces this property from :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` to the selected value. + + ---- + **Note** + For the PXIe-5840/5841, the automatically selected value may not be optimal for all measurements. At some reference levels, :py:data:`~nirfsa.EnableRfPreamp.ENABLED` may improve the noise floor while :py:data:`~nirfsa.EnableRfPreamp.DISABLED` may improve distortion. + + ---- + + **PXIe-5667**: The :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` value is supported only when the :py:attr:`nirfsa.Session.LOW_FREQUENCY_BYPASS_ENABLED` property is set to :py:data:`~nirfsa.EnableRfPreamp.DISABLED`. If the reference level is greater than -25 dBm, NI-RFSA disables the preamplifier. If the reference level is less than or equal to -25 dBm, NI-RFSA sets the :py:attr:`nirfsa.Session.rf_preamp_enabled` property to :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH`. + + **PXIe-5668 with PXIe-5698**: If you set this property to :py:attr:`nirfsa.Session.rf_preamp_enabled`, only the preamplifier on the PXIe-5698 is used, and the preamplifier on the PXIe-5668 remains disabled. + + **Default Value**: + + **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842**: :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` + + **All other devices**: :py:data:`~nirfsa.EnableRfPreamp.DISABLED` + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5698, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===============================================================+==================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.EnableRfPreamp.DISABLED` | Disables the RF preamplifier. | + +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH` | Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the :py:attr:`nirfsa.Session.rf_preamp_present` property to determine whether the downconverter has a preamplifier. | + +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.EnableRfPreamp.ENABLED` | Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH` value whenever possible to avoid an error. | + +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.EnableRfPreamp.AUTOMATIC` | Automatically enables the RF preamplifier based on the value of the :py:attr:`nirfsa.Session.reference_level` property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. | + +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.EnableRfPreamp | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Preamp Enabled** + - C Attribute: **NIRFSA_ATTR_RF_PREAMP_ENABLED** + +rf_preamp_present +----------------- + + .. py:attribute:: rf_preamp_present + + Returns whether an RF preamplifier is available on the RF downconverter module. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------+------------------------------------------------------+ + | Name | Description | + +=======+======================================================+ + | True | The device has an enabled RF preamplifier available. | + +-------+------------------------------------------------------+ + | False | The device has no RF preamplifier available. | + +-------+------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:RF Preamp Present** + - C Attribute: **NIRFSA_ATTR_RF_PREAMP_PRESENT** + +selected_path +------------- + + .. py:attribute:: selected_path + + Specifies which path to configure to acquire a signal. + + **Default Value**: "" (empty string) + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Selected Path** + - C Attribute: **NIRFSA_ATTR_SELECTED_PATH** + +selected_ports +-------------- + + .. py:attribute:: selected_ports + + Specifies the port to configure. + + ---- + **Note** + When using RF list mode, ports cannot be shared with NI-RFSA. + + ---- + + **Valid Values**: + + **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) + + **PXIe-5830**: if0, if1 + + **PXIe-5831/5832**: if0, if1, rf <0-1> port , where + + *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and + + *x* is the port number on the mmRH-5582 front panel. + + **Default Value:** + + **PXIe-5830/5831/5832:**: if1 + + **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + :py:attr:`nirfsa.Session.available_ports` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Selected Ports** + - C Attribute: **NIRFSA_ATTR_SELECTED_PORTS** + +serial_number +------------- + + .. py:attribute:: serial_number + + Returns the serial number of the RF downconverter module. + + ---- + **Note** + For the PXIe-5644/5645/5646 and PXIe-5820/5840/5841, this property returns the serial number of the VST module. For the PXIe-5830/5831/5832, this property returns the serial number of the PXIe-3621/3622. + + ---- + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Serial Number** + - C Attribute: **NIRFSA_ATTR_SERIAL_NUMBER** + +signal_bandwidth +---------------- + + .. py:attribute:: signal_bandwidth + + Specifies the bandwidth of the input signal around the :py:attr:`nirfsa.Session.iq_carrier_frequency`. + + This value must be less than or equal to (0.8 7 [I/Q rate](:py:attr:`nirfsa.Session.iq_rate`.html)). + + NI-RFSA defines *signal bandwidth* as twice the maximum I/Q signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* < sub>max - *f*< sub>min. + + If you do not set this property, NI-RFSA uses the maximum available signal bandwidth. Depending on your device settings, setting this property enables certain optimizations. Based on the specified signal bandwidth, NI-RFSA decides the minimum equalized bandwidth and equalizer gain. + + ---- + **Note** + You must set this property to enable the :py:attr:`nirfsa.Session.downconverter_frequency_offset_mode` property. + + ---- + + Ensure you set the signal bandwidth wide enough to encompass all significant anticipated input power. In cases where NI-RFSA optimizes the input gain based on the signal bandwidth, significant input power outside the signal bandwidth can lead to clipping and associated overflow warnings if you do not have enough margin in your [reference level.](:py:attr:`nirfsa.Session.reference_level`.html) + + **Units**: Hz + + **Default Value**: 0 Hz + + **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ:Signal Bandwidth (Hz)** + - C Attribute: **NIRFSA_ATTR_SIGNAL_BANDWIDTH** + +signal_conditioning_enabled +--------------------------- + + .. py:attribute:: signal_conditioning_enabled + + Specifies whether all signal conditioning is enabled on the PXIe-5694. + + ---- + **Note** + If you set this property to :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED`, NI-RFSA bypasses all signal conditioning, prevents any signal downconversion, and fixes the values for :py:attr:`nirfsa.Session.downconverter_gain` property, the :py:attr:`nirfsa.Session.device_instantaneous_bandwidth` property, and the :py:attr:`nirfsa.Session.if_filter_bandwidth` property. + + ---- + + **Default Value**: :py:data:`~nirfsa.SignalConditioningEnabled.ENABLED` + + **Supported Devices**: PXIe-5694 + + **Defined Values**: + + +-------------------------------------------------------+-----------------------------------+ + | Name | Description | + +=======================================================+===================================+ + | :py:data:`~nirfsa.SignalConditioningEnabled.ENABLED` | Enables signal conditioning. | + +-------------------------------------------------------+-----------------------------------+ + | :py:data:`~nirfsa.SignalConditioningEnabled.BYPASSED` | Bypasses all signal conditioning. | + +-------------------------------------------------------+-----------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.SignalConditioningEnabled | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:NI 5694:Signal Conditioning Enabled** + - C Attribute: **NIRFSA_ATTR_SIGNAL_CONDITIONING_ENABLED** + +smooth_spectrum_enabled +----------------------- + + .. py:attribute:: smooth_spectrum_enabled + + Specifies that an optimized IF filtering selection is made at different spectrum frequency ranges during spectrum acquisition. + + The IF filter used depends on the configured RF center frequency, as shown in the following table. + + | Center Frequency | IF Filter | + |:--------------------|:----------| + | 0 Hz and <80 MHz | 300 kHz | + | 0 MHz | 50 MHz | + + ---- + **Note** + Setting this property to **Enabled** prevents you from setting :py:attr:`nirfsa.Session.if_filter_bandwidth` or :py:attr:`nirfsa.Session.device_instantaneous_bandwidth`. + + ---- + + **Default Value**: :py:data:`~nirfsa.SmoothSpectrumEnabled.DISABLED` + + **Supported Devices**: PXIe-5665/5668 + + **Defined Values**: + + +---------------------------------------------------+------------------------------+ + | Name | Description | + +===================================================+==============================+ + | :py:data:`~nirfsa.SmoothSpectrumEnabled.DISABLED` | Disables spectrum smoothing. | + +---------------------------------------------------+------------------------------+ + | :py:data:`~nirfsa.SmoothSpectrumEnabled.ENABLED` | Enables spectrum smoothing. | + +---------------------------------------------------+------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.SmoothSpectrumEnabled | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Smooth Spectrum Enabled** + - C Attribute: **NIRFSA_ATTR_SMOOTH_SPECTRUM_ENABLED** + +spectrum_averaging_mode +----------------------- + + .. py:attribute:: spectrum_averaging_mode + + Specifies the averaging mode for the spectrum acquisition. + + **Default Value**: :py:data:`~nirfsa.SpectrumAveragingMode.NO` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================================+=======================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.SpectrumAveragingMode.NO` | Configures NI-RFSA to perform no averaging on acquisitions. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumAveragingMode.RMS` | Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumAveragingMode.VECTOR` | Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumAveragingMode.PEAK_HOLD` | Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumAveragingMode.MIN_HOLD` | Configures NI-RFSA to perform no averaging on acquisitions. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumAveragingMode.SCALAR` | Configures NI-RFSA to perform no averaging on acquisitions. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.SpectrumAveragingMode.LOG` | Configures NI-RFSA to perform no averaging on acquisitions. | + +----------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.SpectrumAveragingMode | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Averaging Mode** + - C Attribute: **NIRFSA_ATTR_SPECTRUM_AVERAGING_MODE** + +spectrum_number_of_averages +--------------------------- + + .. py:attribute:: spectrum_number_of_averages + + Specifies the number of acquisitions to average. + + The averaging process returns the final result after the number of averages is complete. + + **Default Value**: 10 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Number Of Averages** + - C Attribute: **NIRFSA_ATTR_SPECTRUM_NUMBER_OF_AVERAGES** + +spectrum_osp_sampling_ratio +--------------------------- + + .. py:attribute:: spectrum_osp_sampling_ratio + + Specifies the oversampling ratio used by the digitizer onboard signal processing (OSP) when you are in spectrum acquisition mode. This property allows you to acquire a larger bandwidth in hardware and reduce that bandwidth in software, decreasing the possibility of hardware data path overflows. + + **PXIe-5644/5645/5646**: The only valid value for this property is 1. + + **Default Value**: 1.0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Spectrum OSP Sampling Ratio** + - C Attribute: **NIRFSA_ATTR_SPECTRUM_OSP_SAMPLING_RATIO** + +spectrum_span +------------- + + .. py:attribute:: spectrum_span + + Specifies the frequency range of the computed spectrum in hertz (Hz). + + For example, if you specify a center frequency of 1 GHz and a span of 100 MHz, the spectrum ranges from 950 MHz to 1,050 MHz after zoom processing. This value may be coerced based on hardware settings and RF downconverter specifications. + + NI-RFSA performs multispan acquisitions by dividing the total requested span into equally sized subspans based on the device instantaneous bandwidth at the range of frequencies you specify. NI-RFSA combines these subspans to yield a multispan acquisition. You can use the :py:attr:`nirfsa.Session.fft_width` property to improve amplitude accuracy and avoid unwanted effects such as filter roll-off and spurs across the span you select. + + ---- + **Note** + If you configure the spectrum span to a value larger than the hardware instantaneous bandwidth, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. + + ---- + + ---- + **Note** + For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. The dither noise can appear in your passband and affect measurements. Refer to the :py:attr:`nirfsa.Session.digitizer_dither_enabled` property for more information about dithering. + + ---- + + **PXIe-5663/5663E**: NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. + + **PXIe-5665 (14 GHz)/5667 (7 GHz)**: If you enable the downconverter preselector filter, the device instantaneous bandwidth is only a typical specification. + + **Default Value**: 10 MHz + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.configure_spectrum_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Span** + - C Attribute: **NIRFSA_ATTR_SPECTRUM_SPAN** + +start_to_ref_trigger_holdoff +---------------------------- + + .. py:attribute:: start_to_ref_trigger_holdoff + + Specifies the minimum time, in seconds, that must elapse after the Start Trigger is received before the device recognizes a Reference Trigger. + + **Units:** seconds + + **Default Value**: 0 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Ref:Advanced:Start To Ref Trigger Holdoff (s)** + - C Attribute: **NIRFSA_ATTR_START_TO_REF_TRIGGER_HOLDOFF** + +start_trigger_terminal_name +--------------------------- + + .. py:attribute:: start_trigger_terminal_name + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/StartTrigger, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/StartTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - :py:meth:`nirfsa.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Terminal Name** + - C Attribute: **NIRFSA_ATTR_START_TRIGGER_TERMINAL_NAME** + +start_trigger_type +------------------ + + .. py:attribute:: start_trigger_type + + Specifies whether you want the Start Trigger to be a digital edge or software trigger. + + ---- + **Note** + Set this property to :py:data:`~nirfsa.StartTriggerType.NONE` if you set the :py:attr:`nirfsa.Session.acquisition_type` property to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` or if you set the **acquisitionType** parameter to :py:data:`~nirfsa.AcquisitionType.SPECTRUM` using the [cvi:py:meth:`nirfsa.Session.ConfigureAcquisitionType`](cvi:py:meth:`nirfsa.Session.ConfigureAcquisitionType`.html) method. + + ---- + + **Default Value**: :py:data:`~nirfsa.StartTriggerType.NONE` + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===================================================+========================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsa.StartTriggerType.NONE` | No Start Trigger is configured. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.StartTriggerType.DIGITAL_EDGE` | The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_start_trigger_source` property. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsa.StartTriggerType.SOFTWARE_EDGE` | The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_START_TRIGGER` as the value of the **trigger** parameter. | + +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.StartTriggerType | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Type** + - C Attribute: **NIRFSA_ATTR_START_TRIGGER_TYPE** + +subspan_overlap +--------------- + + .. py:attribute:: subspan_overlap + + Use subspan overlap process to eliminate or reduce analyzer spurs. + + To enable this feature, specify a non-zero percentage overlap between consecutive subspans in a spectrum acquisition. + + If a value greater than 0 is specified, then for each spectral line in the resulting spectrum, the driver acquires data twice with slightly different hardware settings, so that the analyzer spurs, if any, are present at different frequencies in the two acquisitions. Typically, LO frequency is shifted between the acquisitions causing analyzer spurs that are relative to the LO frequency, to move from one frequency to another. Those spurs, which are present in only one of the acquisitions for each spectral line, get removed. + + The subspan overlap feature will not remove any spurs from the Device Under Test or modify the signal being measured; unlike the analyzer spurs, the spurs in the signal being measured stay at a constant frequency in the two acquisitions. + + ---- + **Note** + Subspan overlap process effectively is performing minimum averaging, which might reduce the measured noise floor level. NI-RFSA Spectrum Averaging can be enabled to minimize the effect of subspan overlap on the noise floor. + + ---- + + ---- + **Note** + NI-RFSA may apply further shifts to the specified value to accommodate fixed-frequency edges of components such as preselectors. + + ---- + + **Valid Values**: + + **PXIe-5665/5668**: 0 to < 100 + + **PXIe-5820/5830/5831/5832/5840/5841/5860**: 0 + + **PXIe-5842**: 0, 50 + + **Default Value**: 0 + + **Supported Devices**: PXIe-5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + ---- + **Note** + Subspan overlap will not be supported by PXIe-5842, if RMM-5585 (54GHz Frequency Extension) is connected. + + ---- + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Spectrum:Subspan Overlap** + - C Attribute: **NIRFSA_ATTR_SUBSPAN_OVERLAP** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + Returns a comma-separated list of supported devices. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** + - C Attribute: **NIRFSA_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +temperature_read_interval +------------------------- + + .. py:attribute:: temperature_read_interval + + Indicates the minimum time between temperature sensor readings in seconds. + + When you call the :py:meth:`nirfsa.Session.read_power_spectrum` method, the :py:meth:`nirfsa.Session.ReadIqSingleRecordComplexF64` method, or the :py:meth:`nirfsa.Session._initiate` method, NI-RFSA checks whether at least the amount of time specified by this property has elapsed before reading the hardware temperature. + + ---- + **Note** + NI-RFSA ignores this property if you call the :py:meth:`nirfsa.Session.perform_thermal_correction` method or read the :py:attr:`nirfsa.Session.downconverter_gain` property. + + ---- + + **Default Value**: 30 seconds + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Temperature Read Interval** + - C Attribute: **NIRFSA_ATTR_TEMPERATURE_READ_INTERVAL** + +thermal_correction_headroom_range +--------------------------------- + + .. py:attribute:: thermal_correction_headroom_range + + Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the :py:attr:`nirfsa.Session.device_temperature` property. + + For example, if this property is set to 5.0, and the device is self-calibrated at 35 C, then you can expect to run the device from 30 C to 40 C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance and ADC or DSP overflows. + + **Units:** degrees Celsius (C) + + **Default Value**: + + **PXIe-5830/5831/5832/5842/5860**: 5 + + **PXIe-5840/5841**: 10 + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Thermal Correction Headroom Range (Degrees C)** + - C Attribute: **NIRFSA_ATTR_THERMAL_CORRECTION_HEADROOM_RANGE** + +thermal_correction_temperature_resolution +----------------------------------------- + + .. py:attribute:: thermal_correction_temperature_resolution + + Specifies the temperature change required before NI-RFSA recalculates the thermal correction settings when entering the Running state. + + **Units:** degrees Celsius (C) + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Default Values**: + + **PXIe-5830/5831/5832/5842/5860**: 0.2 + + **PXIe-5840/5841**: 1.0 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Thermal Correction Temperature Resolution (Degrees C)** + - C Attribute: **NIRFSA_ATTR_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION** + +user_source_pulse_width +----------------------- + + .. py:attribute:: user_source_pulse_width + + Specifies the pulse width for the User Source. + + Use the :py:attr:`nirfsa.Session.user_source_pulse_width_units` property to set the units for the pulse width. + + **Default Value**: 200E(-9) + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:User Source:Pulse Width** + - C Attribute: **NIRFSA_ATTR_USER_SOURCE_PULSE_WIDTH** + +user_source_pulse_width_units +----------------------------- + + .. py:attribute:: user_source_pulse_width_units + + Specifies the pulse width units for the User Source. + + When the value is :py:data:`~nirfsa.UserSourcePulseWidthUnits.SECONDS`, it is assumed that the clock rate of the signal is the data clock. Use :py:data:`~nirfsa.UserSourcePulseWidthUnits.CLOCK_PERIODS` if the user source clock rate is anything else. + + **Default Value**: :py:data:`~nirfsa.UserSourcePulseWidthUnits.SECONDS` + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------------------------------+--------------------------+ + | Name | Description | + +============================================================+==========================+ + | :py:data:`~nirfsa.UserSourcePulseWidthUnits.SECONDS` | Units are seconds. | + +------------------------------------------------------------+--------------------------+ + | :py:data:`~nirfsa.UserSourcePulseWidthUnits.CLOCK_PERIODS` | Units are clock periods. | + +------------------------------------------------------------+--------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.UserSourcePulseWidthUnits | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:User Source:Pulse Width Units** + - C Attribute: **NIRFSA_ATTR_USER_SOURCE_PULSE_WIDTH_UNITS** + + +NI-TClk Support +=============== + + .. py:attribute:: tclk + + This is used to get and set NI-TClk attributes on the session. + + .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. + + +.. contents:: Session diff --git a/docs/nirfsa/conf.py b/docs/nirfsa/conf.py new file mode 100644 index 0000000000..c41e58f880 --- /dev/null +++ b/docs/nirfsa/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-RFSA Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-RFSA Python API' +copyright = '2026-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.0.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIRFSAPythonAPI.tex', 'NI-RFSA Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nirfsapythonapi', 'NI-RFSA Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIRFSAPythonAPI', 'NI-RFSA Python API Documentation', + author, 'NIRFSAPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nirfsa/enums.rst b/docs/nirfsa/enums.rst new file mode 100644 index 0000000000..830ea32c0f --- /dev/null +++ b/docs/nirfsa/enums.rst @@ -0,0 +1,3510 @@ +Enums +===== + +Enums used in NI-RFSA + +.. py:currentmodule:: nirfsa + + +AcquisitionType +--------------- + +.. py:class:: AcquisitionType + + .. py:attribute:: AcquisitionType.IQ + + + + Configures NI-RFSA for I/Q acquisitions. + + + + + + .. py:attribute:: AcquisitionType.SPECTRUM + + + + Configures NI-RFSA for spectrum acquisitions. + + + + + +Action +------ + +.. py:class:: Action + + .. py:attribute:: Action.COMMIT + + + + The new calibration constants are stored in the EEPROM. + + + + + + .. py:attribute:: Action.ABORT + + + + The old calibration constants are kept, and the new ones are discarded. + + + + + +AdvanceTriggerDigitalEdgeEdge +----------------------------- + +.. py:class:: AdvanceTriggerDigitalEdgeEdge + + .. py:attribute:: AdvanceTriggerDigitalEdgeEdge.RISING + + + + The trigger asserts on the rising edge of the signal. + + + + + + .. py:attribute:: AdvanceTriggerDigitalEdgeEdge.FALLING + + + + The trigger asserts on the falling edge of the signal. + + + + + +AdvanceTriggerType +------------------ + +.. py:class:: AdvanceTriggerType + + .. py:attribute:: AdvanceTriggerType.NONE + + + + No Advance Trigger is configured. + + + + + + .. py:attribute:: AdvanceTriggerType.DIGITAL_EDGE + + + + The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_advance_trigger_source` property. + + + + + + .. py:attribute:: AdvanceTriggerType.SOFTWARE_EDGE + + + + The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_ADVANCE_TRIGGER` as the **trigger** parameter. + + + + + +AllowOutOfSpecificationUserSettings +----------------------------------- + +.. py:class:: AllowOutOfSpecificationUserSettings + + .. py:attribute:: AllowOutOfSpecificationUserSettings.DISABLED + + + + Disables out-of-specification user settings. + + + + + + .. py:attribute:: AllowOutOfSpecificationUserSettings.ENABLED + + + + Enables out-of-specification user settings. + + + + + +ArmReferenceTriggerType +----------------------- + +.. py:class:: ArmReferenceTriggerType + + .. py:attribute:: ArmReferenceTriggerType.NONE + + + + No Arm Reference Trigger is configured. + + + + + + .. py:attribute:: ArmReferenceTriggerType.DIGITAL_EDGE + + + + The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_arm_ref_trigger_source` property. + + + + + + .. py:attribute:: ArmReferenceTriggerType.SOFTWARE_EDGE + + + + The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.SoftwareTriggerType.ARM_REF` as the **trigger** parameter. + + + + + +CalToneMode +----------- + +.. py:class:: CalToneMode + + .. py:attribute:: CalToneMode.DISABLED + + + + Disables the calibration tone for the associated signal path. + + + + + + .. py:attribute:: CalToneMode.CAL_TONE_LOWBAND_RF + + + + Injects the calibration tone into the low band RF signal path. + + + + + + .. py:attribute:: CalToneMode.CAL_TONE_HIGHBAND_RF + + + + Injects the calibration tone into the high band RF signal path. + + + + + + .. py:attribute:: CalToneMode.CAL_TONE_HIGHBAND_IF + + + + Injects the calibration tone into the high band IF signal path. + + + + + + .. py:attribute:: CalToneMode.CAL_TONE_LOWBAND_RF_WITHOUT_ALC + + + + Injects the calibration tone into the low band RF signal path, bypassing the ALC. + + + + + + .. py:attribute:: CalToneMode.CAL_TONE_COMB_GENERATOR + + + + Injects the calibration tone into the high band RF signal path through the Comb Generator. + + + + + +CalibrateStep +------------- + +.. py:class:: CalibrateStep + + .. py:attribute:: CalibrateStep.IF_ATTENUATION + + + + Initializes the IF Attenuation Calibration step. This step is not supported for the PXIe-5693. + + + + + + .. py:attribute:: CalibrateStep.IF_RESPONSE + + + + Initializes the IF Response Calibration step. This step is not supported for the PXIe-5603/5605 or PXIe-5693/5698. + + + + + + .. py:attribute:: CalibrateStep.IF_REF_LEVEL + + + + Initializes the Ref Level Calibration step. This step is not supported on the PXIe-5694. + + + + + + .. py:attribute:: CalibrateStep.LO_EXPORT + + + + Initializes the LO Export Calibration step. This step calibrates the output power of each LO to be within specification. This step is not supported on the PXIe-5601 or the PXIe-5693/5694/5698. + + + + + + .. py:attribute:: CalibrateStep.GAIN_REFERENCE + + + + Initializes the Gain Reference Calibration step. This step calibrates the calibration tone amplitude across supported calibration tone frequencies. This step is not supported on the PXIe-5601/5603/5605 or PXIe-5694. + + + + + +ChannelCoupling +--------------- + +.. py:class:: ChannelCoupling + + .. py:attribute:: ChannelCoupling.AC + + + + Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. + + + + + + .. py:attribute:: ChannelCoupling.DC + + + + Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. + + + + + +ConditioningCalToneMode +----------------------- + +.. py:class:: ConditioningCalToneMode + + .. py:attribute:: ConditioningCalToneMode.DISABLED + + + + Disables the calibration tone for the associated signal path. + + + + + + .. py:attribute:: ConditioningCalToneMode.CAL_TONE_LOWBAND_RF + + + + Injects the calibration tone into the low band RF signal path. + + + + + + .. py:attribute:: ConditioningCalToneMode.CAL_TONE_HIGHBAND_RF + + + + Injects the calibration tone into the high band RF signal path. + + + + + +DeembeddingType +--------------- + +.. py:class:: DeembeddingType + + .. py:attribute:: DeembeddingType.NONE + + + + De-embedding is not applied to the measurement. + + + + + + .. py:attribute:: DeembeddingType.SCALAR + + + + De-embeds the measurement using only the gain term. + + + + + + .. py:attribute:: DeembeddingType.VECTOR + + + + De-embeds the measurement using the gain term and the reflection term. + + + + + + .. py:attribute:: DeembeddingType.AMPLITUDE_FLATNESS + + + + De-embeds the measurement using wideband amplitude flatness correction. + + + + + +DeviceResponseType +------------------ + +.. py:class:: DeviceResponseType + + .. py:attribute:: DeviceResponseType.DOWNCONVERTER_IF + + + + Returns the IF response of the downconverter. + + + + + + .. py:attribute:: DeviceResponseType.DOWNCONVERTER_RF + + + + Returns the RF response of the downconverter. This value is supported only for the PXIe-5603/5605/5665/5667/5693.. + + + + + + .. py:attribute:: DeviceResponseType.DOWNCONVERTER_COMBINED + + + + Returns the combined RF and IF response of the downconverter. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5603/5605/5665/5667. + + + + + + .. py:attribute:: DeviceResponseType.VSA_IF + + + + Returns the IF response of the entire NI-RFSA device. This value is supported only for the PXIe-5665/5667. + + + + + + .. py:attribute:: DeviceResponseType.VSA_COMBINED + + + + Returns the combined IF and RF response of the entire NI-RFSA device. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5665/5667. + + + + + +DigitizerDitherEnabled +---------------------- + +.. py:class:: DigitizerDitherEnabled + + .. py:attribute:: DigitizerDitherEnabled.DISABLED + + + + Disables dither on the digitizer. + + + + + + .. py:attribute:: DigitizerDitherEnabled.ENABLED + + + + Enables dither on the digitizer. + + + + + +DigitizerSampleClockExportedTerminal +------------------------------------ + +.. py:class:: DigitizerSampleClockExportedTerminal + + .. py:attribute:: DigitizerSampleClockExportedTerminal.NONE + + + + The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. + + + + + + .. py:attribute:: DigitizerSampleClockExportedTerminal.CLK_OUT + + + + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + + + + + +DigitizerSampleClockTimebaseSource +---------------------------------- + +.. py:class:: DigitizerSampleClockTimebaseSource + + .. py:attribute:: DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK + + + + The digitizer uses its onboard clock as the Sample Clock timebase. + + + + + + .. py:attribute:: DigitizerSampleClockTimebaseSource.CLK_IN + + + + The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. + + + + + + .. py:attribute:: DigitizerSampleClockTimebaseSource.LO_REF_CLK + + + + The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. + + + + + + .. py:attribute:: DigitizerSampleClockTimebaseSource.PXI_STAR + + + + The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. + + + + + + .. py:attribute:: DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT + + + + The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. + + + + + +DownconverterFrequencyOffsetMode +-------------------------------- + +.. py:class:: DownconverterFrequencyOffsetMode + + .. py:attribute:: DownconverterFrequencyOffsetMode.AUTOMATIC + + + + NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. + + + + + + .. py:attribute:: DownconverterFrequencyOffsetMode.ENABLED + + + + NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsa.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSA returns an error if the :py:attr:`nirfsa.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. + + + + + + .. py:attribute:: DownconverterFrequencyOffsetMode.USER_DEFINED + + + + NI-RFSA uses the offset that you specified with the :py:attr:`nirfsa.Session.downconverter_frequency_offset` or :py:attr:`nirfsa.Session.downconverter_center_frequency` properties. + + + + + +DownconverterLoopBandwidth +-------------------------- + +.. py:class:: DownconverterLoopBandwidth + + .. py:attribute:: DownconverterLoopBandwidth.NARROW + + + + Specifies that the downconverter module uses a narrow loop bandwidth. + + + + + + .. py:attribute:: DownconverterLoopBandwidth.MEDIUM + + + + Specifies that the downconverter module uses a medium loop bandwidth. + + + + + + .. py:attribute:: DownconverterLoopBandwidth.WIDE + + + + Specifies that the downconverter module uses a wide loop bandwidth. + + + + + +EnableAttrVals +-------------- + +.. py:class:: EnableAttrVals + + .. py:attribute:: EnableAttrVals.DISABLED + + + + The property is disabled. + + + + + + .. py:attribute:: EnableAttrVals.ENABLED + + + + The property is enabled. + + + + + +DownconverterPreselectorEnabled +------------------------------- + +.. py:class:: DownconverterPreselectorEnabled + + .. py:attribute:: DownconverterPreselectorEnabled.DISABLED + + + + Disables the preselector. + + + + + + .. py:attribute:: DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH + + + + The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the :py:attr:`nirfsa.Session.preselector_present` property to determine if the downconverter has an preselector. + + + + + + .. py:attribute:: DownconverterPreselectorEnabled.ENABLED + + + + Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the :py:data:`~nirfsa.DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` whenever possible avoid an error. + + + + + +EnableRfPreamp +-------------- + +.. py:class:: EnableRfPreamp + + .. py:attribute:: EnableRfPreamp.DISABLED + + + + Disables the RF preamplifier. + + + + + + .. py:attribute:: EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH + + + + Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the :py:attr:`nirfsa.Session.rf_preamp_present` property to determine whether the downconverter has a preamplifier. + + + + + + .. py:attribute:: EnableRfPreamp.ENABLED + + + + Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the :py:data:`~nirfsa.EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH` value whenever possible to avoid an error. + + + + + + .. py:attribute:: EnableRfPreamp.AUTOMATIC + + + + Automatically enables the RF preamplifier based on the value of the :py:attr:`nirfsa.Session.reference_level` property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. + + + + + +ExportOutputTerminal +-------------------- + +.. py:class:: ExportOutputTerminal + + .. py:attribute:: ExportOutputTerminal.DO_NOT_EXPORT + + + + The signal is not exported. + + + + + + .. py:attribute:: ExportOutputTerminal.CLK_OUT + + + + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: ExportOutputTerminal.REF_OUT + + + + Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: ExportOutputTerminal.REF_OUT2 + + + + Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. + + + + + + .. py:attribute:: ExportOutputTerminal.PFI0 + + + + The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. + + + + + + .. py:attribute:: ExportOutputTerminal.PFI1 + + + + The trigger is received on PFI 1. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG0 + + + + The trigger is received on PXI trigger line 0. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG1 + + + + The trigger is received on PXI trigger line 1. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG2 + + + + The trigger is received on PXI trigger line 2. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG3 + + + + The trigger is received on PXI trigger line 3. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG4 + + + + The trigger is received on PXI trigger line 4. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG5 + + + + The trigger is received on PXI trigger line 5. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG6 + + + + The trigger is received on PXI trigger line 6. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_TRIG7 + + + + The trigger is received on PXI trigger line 7. + + + + + + .. py:attribute:: ExportOutputTerminal.PXI_STAR + + + + The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. + + + + + + .. py:attribute:: ExportOutputTerminal.PXIE_DSTARC + + + + The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI0 + + + + The trigger is received on PFI0 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI1 + + + + The trigger is received on PFI1 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI2 + + + + The trigger is received on PFI2 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI3 + + + + The trigger is received on PFI3 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI4 + + + + The trigger is received on PFI4 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI5 + + + + The trigger is received on PFI5 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI6 + + + + The trigger is received on PFI6 from the front panel DIO terminal. + + + + + + .. py:attribute:: ExportOutputTerminal.DIO_PFI7 + + + + The trigger is received on PFI7 from the front panel DIO terminal. + + + + + +FetchRelativeTo +--------------- + +.. py:class:: FetchRelativeTo + + .. py:attribute:: FetchRelativeTo.MOST_RECENT_SAMPLE + + + + Fetching occurs relative to the most recently acquired data. The value of the :py:attr:`nirfsa.Session.fetch_offset` property must be negative. + + + + + + .. py:attribute:: FetchRelativeTo.FIRST_SAMPLE + + + + Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. + + + + + + .. py:attribute:: FetchRelativeTo.REFERENCE_TRIGGER + + + + Fetching occurs relative to the Reference Trigger. This value behaves like :py:data:`~nirfsa.FetchRelativeTo.FIRST_SAMPLE` if no Reference Trigger is configured. + + + + + + .. py:attribute:: FetchRelativeTo.FIRST_PRETRIGGER_SAMPLE + + + + Fetching occurs relative to the first pretrigger sample acquired. + + + + + + .. py:attribute:: FetchRelativeTo.CURRENT_READ_POSITION + + + + Fetching occurs after the last fetched sample. + + + + + +FrequencySettlingUnits +---------------------- + +.. py:class:: FrequencySettlingUnits + + .. py:attribute:: FrequencySettlingUnits.PPM + + + + Specifies the frequency settling time in parts per million (PPM). + + + + + + .. py:attribute:: FrequencySettlingUnits.SECONDS_AFTER_LOCK + + + + Specifies the frequency settling in time after lock (seconds). + + + + + + .. py:attribute:: FrequencySettlingUnits.SECONDS_AFTER_IO + + + + Specifies the frequency settling time after I/O (seconds). + + + + + +IFattenTableSel +--------------- + +.. py:class:: IFattenTableSel + + .. py:attribute:: IFattenTableSel.STANDARD + + + + Specifies that the standard IF attenuation table is used for the external calibration. + + + + + + .. py:attribute:: IFattenTableSel.ACPR + + + + Specifies that the adjacent channel power ratio (ACPR) IF attenuation table is used for the external calibration. You can only select this value if you set the :py:attr:`nirfsa.Session.CAL_IF_FILTER_SELECTION` property to :py:data:`~nirfsa.IFfilterSelection.EXT_CAL_IF_FILTER_PATH_1` or :py:data:`~nirfsa.IFfilterSelection.EXT_CAL_IF_FILTER_PATH_2`. + + + + + +IFfilter +-------- + +.. py:class:: IFfilter + + .. py:attribute:: IFfilter._187_5_MHZ_WIDE + + + + The device uses the 187.5 MHz wide bandwidth filter. + + + + + + .. py:attribute:: IFfilter._187_5_MHZ_NARROW + + + + The device uses the 187.5 MHz narrow bandwidth filter. + + + + + + .. py:attribute:: IFfilter._53_MHZ + + + + The device uses the 53 MHz filter. + + + + + + .. py:attribute:: IFfilter.BYPASS + + + + The device bypasses the IF filter. + + + + + +IFfilterSelection +----------------- + +.. py:class:: IFfilterSelection + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_1 + + + + Specifies that the 5 MHz filter path is used during calibration. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_2 + + + + Specifies that the 300 kHz filter path is used during calibration. Not supported for the PXIe-5694. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_3 + + + + None of the IF filter paths are used during calibration. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_4 + + + + Specifies that the 20 MHz filter path is used during calibration. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_5 + + + + Specifies that the 1.4 MHz filter path is used during calibration. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_6 + + + + Specifies that the 400 kHz filter path is used during calibration. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_7 + + + + Specifies that the 110 kHz filter path is used during calibration. + + + + + + .. py:attribute:: IFfilterSelection.EXT_CAL_IF_FILTER_PATH_8 + + + + Specifies that the 30 kHz filter path is used during calibration. + + + + + +IqInPortTerminalConfiguration +----------------------------- + +.. py:class:: IqInPortTerminalConfiguration + + .. py:attribute:: IqInPortTerminalConfiguration.DIFFERENTIAL + + + + Sets the terminal configuration to differential. + + + + + + .. py:attribute:: IqInPortTerminalConfiguration.SINGLE_ENDED + + + + Sets the terminal configuration to single-ended. + + + + + +IfConditioningDownConversionEnabled +----------------------------------- + +.. py:class:: IfConditioningDownConversionEnabled + + .. py:attribute:: IfConditioningDownConversionEnabled.DISABLED + + + + Disables IF conditioning downconversion. + + + + + + .. py:attribute:: IfConditioningDownConversionEnabled.ENABLED + + + + Enables IF conditioning downconversion. + + + + + +InputIsolationEnabled +--------------------- + +.. py:class:: InputIsolationEnabled + + .. py:attribute:: InputIsolationEnabled.DISABLED + + + + Disables input isolation. + + + + + + .. py:attribute:: InputIsolationEnabled.ENABLED + + + + Enables input isolation. + + + + + +InputPort +--------- + +.. py:class:: InputPort + + .. py:attribute:: InputPort.RF_IN + + + + Enables the RF IN port. + + + + + + .. py:attribute:: InputPort.IQ_IN + + + + Enables the I/Q IN port. + + + + + + .. py:attribute:: InputPort.CAL_IN + + + + Enables the CAL IN port. + + + + + + .. py:attribute:: InputPort.I_ONLY + + + + Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. + + + + + +LinearInterpolationFormat +------------------------- + +.. py:class:: LinearInterpolationFormat + + .. py:attribute:: LinearInterpolationFormat.MAGNITUDE_AND_PHASE + + + + Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. + + + + + + .. py:attribute:: LinearInterpolationFormat.MAGNITUDE_DB_AND_PHASE + + + + Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. + + + + + + .. py:attribute:: LinearInterpolationFormat.REAL_AND_IMAGINARY + + + + Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. + + + + + +Lo2ExportEnabled +---------------- + +.. py:class:: Lo2ExportEnabled + + .. py:attribute:: Lo2ExportEnabled.DISABLED + + + + Disables LO2 export. + + + + + + .. py:attribute:: Lo2ExportEnabled.ENABLED + + + + Enables LO2 export. + + + + + +LoInjection +----------- + +.. py:class:: LoInjection + + .. py:attribute:: LoInjection.HIGH + + + + Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. + + + + + + .. py:attribute:: LoInjection.LOW + + + + Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. + + + + + +LoNumber +-------- + +.. py:class:: LoNumber + + .. py:attribute:: LoNumber.LO2 + + + + Selects LO2, which is the 4 GHz signal path. + + + + + + .. py:attribute:: LoNumber.LO3 + + + + Selects LO3, which is the 800 MHz signal path. + + + + + + .. py:attribute:: LoNumber.LO1 + + + + Selects LO1, which is the 3.2 GHz to 8.3 GHz variable signal path. + + + + + +LoOutExportConfigureFromRfsg +---------------------------- + +.. py:class:: LoOutExportConfigureFromRfsg + + .. py:attribute:: LoOutExportConfigureFromRfsg.DISABLED + + + + Do not allow NI-RFSG to control the NI-RFSA local oscillator export. + + + + + + .. py:attribute:: LoOutExportConfigureFromRfsg.ENABLED + + + + Allow NI-RFSG to control the NI-RFSA local oscillator export. + + + + + +LoPathSel +--------- + +.. py:class:: LoPathSel + + .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_1 + + + + Specifies that the LO path 1 is used. + + + + + + .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_2 + + + + Specifies that the LO path 2 is used. + + + + + + .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_3 + + + + Specifies that the LO path 3 is used. + + + + + + .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_4 + + + + Specifies that the LO path 4 is used. + + + + + + .. py:attribute:: LoPathSel.EXT_CAL_LO_PATH_5 + + + + Specifies that the LO path 5 is used. + + + + + +LoPllFractionalModeEnabled +-------------------------- + +.. py:class:: LoPllFractionalModeEnabled + + .. py:attribute:: LoPllFractionalModeEnabled.DISABLED + + + + Disables fractional mode for the LO PLL. + + + + + + .. py:attribute:: LoPllFractionalModeEnabled.ENABLED + + + + Enables fractional mode for the LO PLL. + + + + + +LoSource +-------- + +.. py:class:: LoSource + + .. py:attribute:: LoSource.ONBOARD + + + + Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. + + + + + + .. py:attribute:: LoSource.LO_IN + + + + Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. + + + + + + .. py:attribute:: LoSource.LO_SOURCE_SECONDARY + + + + Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). + + + + + + .. py:attribute:: LoSource.LO_SOURCE_SG_SA_SHARED + + + + Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. + + + + + +LoYigMainCoilDrive +------------------ + +.. py:class:: LoYigMainCoilDrive + + .. py:attribute:: LoYigMainCoilDrive.NORMAL + + + + Adjusts the YIG main coil on the LO for an underdamped response. + + + + + + .. py:attribute:: LoYigMainCoilDrive.FAST + + + + Adjusts the YIG main coil on the LO for an overdamped response. + + + + + +LoadConfigurationResetOptions +----------------------------- + +.. py:class:: LoadConfigurationResetOptions + + .. py:attribute:: LoadConfigurationResetOptions.NONE + + + + NI-RFSA resets all configurations. + + + + + + .. py:attribute:: LoadConfigurationResetOptions.DEEMBEDDING_TABLES + + + + NI-RFSA skips resetting the de-embedding tables. + + + + + +NoiseSourcePowerEnabled +----------------------- + +.. py:class:: NoiseSourcePowerEnabled + + .. py:attribute:: NoiseSourcePowerEnabled.DISABLED + + + + Disables the noise source power. + + + + + + .. py:attribute:: NoiseSourcePowerEnabled.ENABLED + + + + Enables the noise source power. + + + + + +NotchFilterEnabled +------------------ + +.. py:class:: NotchFilterEnabled + + .. py:attribute:: NotchFilterEnabled.DISABLED + + + + Disables the notch filter. + + + + + + .. py:attribute:: NotchFilterEnabled.ENABLED_WHEN_IN_SIGNAL_PATH + + + + The notch filter is automatically enabled when it is in the signal path and automatically disabled when it is not in the signal path. + + + + + + .. py:attribute:: NotchFilterEnabled.ENABLED + + + + Enables the notch filter. If the notch filter is not in the signal path or if the notch filter is not supported on the device, NI-RFSA returns an error. Select :py:data:`~nirfsa.NotchFilterEnabled.ENABLED_WHEN_IN_SIGNAL_PATH` whenever possible to avoid an error. + + + + + +OutputTerm +---------- + +.. py:class:: OutputTerm + + .. py:attribute:: OutputTerm.DO_NOT_EXPORT + + + + The signal is not exported. + + + + + + .. py:attribute:: OutputTerm.CLK_OUT + + + + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: OutputTerm.REF_OUT + + + + Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: OutputTerm.REF_OUT2 + + + + Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. + + + + + + .. py:attribute:: OutputTerm.PFI0 + + + + The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. + + + + + + .. py:attribute:: OutputTerm.PFI1 + + + + The trigger is received on PFI 1. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG0 + + + + The trigger is received on PXI trigger line 0. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG1 + + + + The trigger is received on PXI trigger line 1. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG2 + + + + The trigger is received on PXI trigger line 2. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG3 + + + + The trigger is received on PXI trigger line 3. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG4 + + + + The trigger is received on PXI trigger line 4. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG5 + + + + The trigger is received on PXI trigger line 5. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG6 + + + + The trigger is received on PXI trigger line 6. + + + + + + .. py:attribute:: OutputTerm.PXI_TRIG7 + + + + The trigger is received on PXI trigger line 7. + + + + + + .. py:attribute:: OutputTerm.PXI_STAR + + + + The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. + + + + + + .. py:attribute:: OutputTerm.PXIE_DSTARB + + + + The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI0 + + + + The trigger is received on PFI0 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI1 + + + + The trigger is received on PFI1 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI2 + + + + The trigger is received on PFI2 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI3 + + + + The trigger is received on PFI3 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI4 + + + + The trigger is received on PFI4 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI5 + + + + The trigger is received on PFI5 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI6 + + + + The trigger is received on PFI6 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.DIO_PFI7 + + + + The trigger is received on PFI7 from the front panel DIO terminal. + + + + + + .. py:attribute:: OutputTerm.TIMER_EVENT + + + + The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. + + + + + +OverflowErrorReporting +---------------------- + +.. py:class:: OverflowErrorReporting + + .. py:attribute:: OverflowErrorReporting.WARNING + + + + Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. + + + + + + .. py:attribute:: OverflowErrorReporting.DISABLED + + + + Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. + + + + + +PowerSpectrumUnits +------------------ + +.. py:class:: PowerSpectrumUnits + + .. py:attribute:: PowerSpectrumUnits.DBM + + + + Units are dB with reference to 1 milliwatt. + + + + + + .. py:attribute:: PowerSpectrumUnits.VOLTS_SQUARED + + + + Units are in volts squared. + + + + + + .. py:attribute:: PowerSpectrumUnits.DBMV + + + + Units are dB with reference to 1 millivolt. + + + + + + .. py:attribute:: PowerSpectrumUnits.DBUV + + + + Units are dB with reference to 1 microvolt. + + + + + + .. py:attribute:: PowerSpectrumUnits.VOLTS + + + + Units are in volts. + + + + + + .. py:attribute:: PowerSpectrumUnits.WATTS + + + + Units are in watts. + + + + + +PxiChassisClk10Source +--------------------- + +.. py:class:: PxiChassisClk10Source + + .. py:attribute:: PxiChassisClk10Source.NONE + + + + The device does not drive the PXI 10 MHz backplane Reference Clock. + + + + + + .. py:attribute:: PxiChassisClk10Source.ONBOARD_CLOCK + + + + The device drives the PXI 10 MHz backplane Reference Clock with the PXI-5600 onboard clock. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. + + + + + + .. py:attribute:: PxiChassisClk10Source.REF_IN + + + + The device drives the PXI 10 MHz backplane Reference Clock with the reference source attached to the PXI-5600 FREQ REF IN connector. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. + + + + + +ReferenceClockExportedRate +-------------------------- + +.. py:class:: ReferenceClockExportedRate + + .. py:attribute:: ReferenceClockExportedRate._10MHZ + + + + Exports a 10 MHz Reference Clock. + + + + + + .. py:attribute:: ReferenceClockExportedRate._100MHZ + + + + Exports a 100 MHz Reference Clock. + + + + + + .. py:attribute:: ReferenceClockExportedRate._1GHZ + + + + Exports a 1 GHz Reference Clock. + + + + + +ReferenceClockExportedTerminal +------------------------------ + +.. py:class:: ReferenceClockExportedTerminal + + .. py:attribute:: ReferenceClockExportedTerminal.NONE + + + + The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. + + + + + + .. py:attribute:: ReferenceClockExportedTerminal.REF_OUT + + + + Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: ReferenceClockExportedTerminal.REF_OUT2 + + + + Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. + + + + + + .. py:attribute:: ReferenceClockExportedTerminal.CLK_OUT + + + + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + + + + + + .. py:attribute:: ReferenceClockExportedTerminal.IF_COND_REF_OUT + + + + Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. + + + + + +ReferenceClockSource +-------------------- + +.. py:class:: ReferenceClockSource + + .. py:attribute:: ReferenceClockSource.NONE + + + + No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. + + + + + + .. py:attribute:: ReferenceClockSource.ONBOARD_CLOCK + + + + **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. + + + + + + .. py:attribute:: ReferenceClockSource.REF_IN + + + + **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the :py:attr:`nirfsa.Session.ref_clock_rate` property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. + + + + + + .. py:attribute:: ReferenceClockSource.PXI_CLK + + + + **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. + + + + + + .. py:attribute:: ReferenceClockSource.CLK_IN + + + + **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the :py:attr:`nirfsa.Session.ref_clock_rate` property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. + + + + + + .. py:attribute:: ReferenceClockSource.PXI_CLK_MASTER + + + + **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. + + + + + + .. py:attribute:: ReferenceClockSource.REF_IN_2 + + + + **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. + + + + + +ReferenceLevelDataType +---------------------- + +.. py:class:: ReferenceLevelDataType + + .. py:attribute:: ReferenceLevelDataType.MECHANICAL_ATTENUATOR_DISABLED + + + + The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. + + + + + + .. py:attribute:: ReferenceLevelDataType.DEFAULT + + + + The data is the default configuration data. + + + + + +ReferenceTriggerDigitalEdgeEdge +------------------------------- + +.. py:class:: ReferenceTriggerDigitalEdgeEdge + + .. py:attribute:: ReferenceTriggerDigitalEdgeEdge.RISING + + + + The trigger asserts on the rising edge of the signal. + + + + + + .. py:attribute:: ReferenceTriggerDigitalEdgeEdge.FALLING + + + + The trigger asserts on the falling edge of the signal + + + + + +ReferenceTriggerIqPowerEdgeSlope +-------------------------------- + +.. py:class:: ReferenceTriggerIqPowerEdgeSlope + + .. py:attribute:: ReferenceTriggerIqPowerEdgeSlope.RISING + + + + The trigger asserts when the signal power is rising. + + + + + + .. py:attribute:: ReferenceTriggerIqPowerEdgeSlope.FALLING + + + + The trigger asserts when the signal power is falling. + + + + + +ReferenceTriggerOspDelayEnabled +------------------------------- + +.. py:class:: ReferenceTriggerOspDelayEnabled + + .. py:attribute:: ReferenceTriggerOspDelayEnabled.DISABLED + + + + Disables OSP delay for the Reference Trigger. + + + + + + .. py:attribute:: ReferenceTriggerOspDelayEnabled.ENABLED + + + + Enables OSP delay for the Reference Trigger. + + + + + +ReferenceTriggerType +-------------------- + +.. py:class:: ReferenceTriggerType + + .. py:attribute:: ReferenceTriggerType.NONE + + + + No Reference Trigger is configured. + + + + + + .. py:attribute:: ReferenceTriggerType.DIGITAL_EDGE + + + + The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_ref_trigger_source` property. + + + + + + .. py:attribute:: ReferenceTriggerType.IQ_POWER_EDGE + + + + The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the :py:attr:`nirfsa.Session.iq_power_edge_ref_trigger_slope` property. + + + + + + .. py:attribute:: ReferenceTriggerType.SOFTWARE_EDGE + + + + The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_REF_TRIGGER` as the **trigger** parameter. + + + + + + .. py:attribute:: ReferenceTriggerType.IQ_ANALOG_EDGE + + + + The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the :py:attr:`nirfsa.Session.IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE` property. This value is valid only for PXIe-5644/5645 devices. + + + + + +ResetWithOptionsStepsToOmit +--------------------------- + +.. py:class:: ResetWithOptionsStepsToOmit + + .. py:attribute:: ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES + + + + Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. + + + + + + .. py:attribute:: ResetWithOptionsStepsToOmit.NONE + + + + No step is omitted during reset. + + + + + + .. py:attribute:: ResetWithOptionsStepsToOmit.ROUTES + + + + Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. + + + + + +RfLbSigCondPathSel +------------------ + +.. py:class:: RfLbSigCondPathSel + + .. py:attribute:: RfLbSigCondPathSel.EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_1 + + + + yet to be defined + + + + + + .. py:attribute:: RfLbSigCondPathSel.EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_2 + + + + yet to be defined + + + + + +RfOutLoExport +------------- + +.. py:class:: RfOutLoExport + + .. py:attribute:: RfOutLoExport.DISABLED + + + + The LO signal is not exported from the RF OUT LO OUT terminal. + + + + + + .. py:attribute:: RfOutLoExport.ENABLED + + + + The LO signal is exported from the RF OUT LO OUT terminal. + + + + + + .. py:attribute:: RfOutLoExport.UNSPECIFIED + + + + The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. + + + + + +RfPathSelection +--------------- + +.. py:class:: RfPathSelection + + .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_1 + + + + The data is the default configuration data. + + + + + + .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_2 + + + + The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. + + + + + + .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_3 + + + + The data is the default configuration data. + + + + + + .. py:attribute:: RfPathSelection.EXT_CAL_RF_BAND_4 + + + + The data is the default configuration data. + + + + + +SelfCalSteps +------------ + +.. py:class:: SelfCalSteps + + .. py:attribute:: SelfCalSteps.DIGITIZER_SELF_CAL + + + + Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.PRESELECTOR_ALIGNMENT + + + + Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.OMIT_NONE + + + + No calibration steps are omitted. + + + + + + .. py:attribute:: SelfCalSteps.GAIN_REFERENCE + + + + Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.IF_FLATNESS + + + + Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.LO_SELF_CAL + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.AMPLITUDE_ACCURACY + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.RESIDUAL_LO_POWER + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.IMAGE_SUPPRESSION + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.SYNTHESIZER_ALIGNMENT + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalSteps.DC_OFFSET + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + +SelfCalibrateRangeStepsToOmit +----------------------------- + +.. py:class:: SelfCalibrateRangeStepsToOmit + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.DIGITIZER_SELF_CAL + + + + Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.PRESELECTOR_ALIGNMENT + + + + Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.OMIT_NONE + + + + No calibration steps are omitted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.GAIN_REFERENCE + + + + Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.IF_FLATNESS + + + + Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.LO_SELF_CAL + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.DC_OFFSET + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + +SelfCalibrationStep +------------------- + +.. py:class:: SelfCalibrationStep + + .. py:attribute:: SelfCalibrationStep.PRESELECTOR_ALIGNMENT + + + + Calls for preselector alignment. + + + + + + .. py:attribute:: SelfCalibrationStep.GAIN_REFERENCE + + + + Measures the changes in gain since the last external calibration was run. + + + + + + .. py:attribute:: SelfCalibrationStep.IF_FLATNESS + + + + Measures the IF response of the entire system for each of the supported IF filters + + + + + + .. py:attribute:: SelfCalibrationStep.DIGITIZER_SELF_CAL + + + + Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. + + + + + + .. py:attribute:: SelfCalibrationStep.LO_SELF_CAL + + + + Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. + + + + + + .. py:attribute:: SelfCalibrationStep.AMPLITUDE_ACCURACY + + + + Selects the Amplitude Accuracy self-calibration step. + + + + + + .. py:attribute:: SelfCalibrationStep.RESIDUAL_LO_POWER + + + + Selects the Residual LO Power self-calibration step. + + + + + + .. py:attribute:: SelfCalibrationStep.IMAGE_SUPPRESSION + + + + Selects the Image Suppression self-calibration step. + + + + + + .. py:attribute:: SelfCalibrationStep.SYNTHESIZER_ALIGNMENT + + + + Selects the Synthesizer Alignment self-calibration step. + + + + + + .. py:attribute:: SelfCalibrationStep.DC_OFFSET + + + + Selects the DC Offset self-calibration step. + + + + + +Signal +------ + +.. py:class:: Signal + + .. py:attribute:: Signal.START_TRIGGER + + + + NI-RFSA routes a Start Trigger. + + + + + + .. py:attribute:: Signal.REF_TRIGGER + + + + NI-RFSA routes a Reference + + + + + + .. py:attribute:: Signal.ADVANCE_TRIGGER + + + + NI-RFSA routes an Advance + + + + + + .. py:attribute:: Signal.READY_FOR_START_EVENT + + + + NI-RFSA routes a Ready for Start Event. + + + + + + .. py:attribute:: Signal.READY_FOR_REF_EVENT + + + + NI-RFSA routes a Ready for Reference Event.. + + + + + + .. py:attribute:: Signal.END_OF_RECORD_EVENT + + + + NI-RFSA routes a End of Record Event. + + + + + + .. py:attribute:: Signal.DONE_EVENT + + + + NI-RFSA routes a Done Event. + + + + + + .. py:attribute:: Signal.REF_CLOCK + + + + NI-RFSA routes a Reference Clock. + + + + + + .. py:attribute:: Signal.USER + + + + NI-RFSA routes a User Defined Signal. + + + + + +SignalConditioningEnabled +------------------------- + +.. py:class:: SignalConditioningEnabled + + .. py:attribute:: SignalConditioningEnabled.ENABLED + + + + Enables signal conditioning. + + + + + + .. py:attribute:: SignalConditioningEnabled.BYPASSED + + + + Bypasses all signal conditioning. + + + + + +SmoothSpectrumEnabled +--------------------- + +.. py:class:: SmoothSpectrumEnabled + + .. py:attribute:: SmoothSpectrumEnabled.DISABLED + + + + Disables spectrum smoothing. + + + + + + .. py:attribute:: SmoothSpectrumEnabled.ENABLED + + + + Enables spectrum smoothing. + + + + + +SoftwareTriggerType +------------------- + +.. py:class:: SoftwareTriggerType + + .. py:attribute:: SoftwareTriggerType.START + + + + NI-RFSA sends a Start software trigger. + + + + + + .. py:attribute:: SoftwareTriggerType.REF + + + + NI-RFSA sends a Reference software trigger. + + + + + + .. py:attribute:: SoftwareTriggerType.ADVANCE + + + + NI-RFSA sends an Advance software trigger. + + + + + + .. py:attribute:: SoftwareTriggerType.ARM_REF + + + + NI-RFSA sends an Arm Reference software trigger. This trigger is not valid for the PXIe-5668. + + + + + +SparameterOrientation +--------------------- + +.. py:class:: SparameterOrientation + + .. py:attribute:: SparameterOrientation.PORT1_TOWARDS_DUT + + + + Port 1 of the S2P is oriented towards the DUT port. + + + + + + .. py:attribute:: SparameterOrientation.PORT2_TOWARDS_DUT + + + + Port 2 of the S2P is oriented towards the DUT port. + + + + + +SpectrumAveragingMode +--------------------- + +.. py:class:: SpectrumAveragingMode + + .. py:attribute:: SpectrumAveragingMode.NO + + + + Configures NI-RFSA to perform no averaging on acquisitions. + + + + + + .. py:attribute:: SpectrumAveragingMode.RMS + + + + Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. + + + + + + .. py:attribute:: SpectrumAveragingMode.VECTOR + + + + Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. + + + + + + .. py:attribute:: SpectrumAveragingMode.PEAK_HOLD + + + + Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. + + + + + + .. py:attribute:: SpectrumAveragingMode.MIN_HOLD + + + + Configures NI-RFSA to perform no averaging on acquisitions. + + + + + + .. py:attribute:: SpectrumAveragingMode.SCALAR + + + + Configures NI-RFSA to perform no averaging on acquisitions. + + + + + + .. py:attribute:: SpectrumAveragingMode.LOG + + + + Configures NI-RFSA to perform no averaging on acquisitions. + + + + + +SpectrumFftWindowType +--------------------- + +.. py:class:: SpectrumFftWindowType + + .. py:attribute:: SpectrumFftWindowType.UNIFORM + + + + No window is applied. + + + + + + .. py:attribute:: SpectrumFftWindowType.HANNING + + + + The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. + + + + + + .. py:attribute:: SpectrumFftWindowType.HAMMING + + + + A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. + + + + + + .. py:attribute:: SpectrumFftWindowType.BLACKMAN_HARRIS + + + + A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) + + + + + + .. py:attribute:: SpectrumFftWindowType.EXACT_BLACKMAN + + + + An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) + + + + + + .. py:attribute:: SpectrumFftWindowType.BLACKMAN + + + + A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) + + + + + + .. py:attribute:: SpectrumFftWindowType.FLAT_TOP + + + + The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) + + + + + + .. py:attribute:: SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS + + + + A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) + + + + + + .. py:attribute:: SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS + + + + A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) + + + + + + .. py:attribute:: SpectrumFftWindowType.LOW_SIDE_LOBE + + + + The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window + + + + + + .. py:attribute:: SpectrumFftWindowType.GAUSSIAN + + + + A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window + + + + + + .. py:attribute:: SpectrumFftWindowType.KAISER_BESSEL + + + + A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind + + + + + +SpectrumResolutionBandwidthType +------------------------------- + +.. py:class:: SpectrumResolutionBandwidthType + + .. py:attribute:: SpectrumResolutionBandwidthType.THREE_DECIBELS + + + + Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. + + + + + + .. py:attribute:: SpectrumResolutionBandwidthType.SIX_DECIBELS + + + + Defines the RBW in terms of the 6 dB bandwidth of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. + + + + + + .. py:attribute:: SpectrumResolutionBandwidthType.BIN_WIDTH + + + + Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. + + + + + + .. py:attribute:: SpectrumResolutionBandwidthType.EQUIVALENT_NOISE_BANDWIDTH + + + + Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the :py:attr:`nirfsa.Session.fft_window_type` property. + + + + + +StartTriggerDigitalEdgeEdge +--------------------------- + +.. py:class:: StartTriggerDigitalEdgeEdge + + .. py:attribute:: StartTriggerDigitalEdgeEdge.RISING + + + + The trigger asserts on the rising edge of the signal.PXI-5661, PXIe-5663/5663E/5665/5668 + + + + + + .. py:attribute:: StartTriggerDigitalEdgeEdge.FALLING + + + + The trigger asserts on the falling edge of the signal | PXIe-5668 + + + + + +StartTriggerType +---------------- + +.. py:class:: StartTriggerType + + .. py:attribute:: StartTriggerType.NONE + + + + No Start Trigger is configured. + + + + + + .. py:attribute:: StartTriggerType.DIGITAL_EDGE + + + + The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsa.Session.digital_edge_start_trigger_source` property. + + + + + + .. py:attribute:: StartTriggerType.SOFTWARE_EDGE + + + + The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the :py:meth:`nirfsa.Session.send_software_edge_trigger` method and selecting :py:data:`~nirfsa.NIRFSA_VAL_START_TRIGGER` as the value of the **trigger** parameter. + + + + + +StepsToOmit +----------- + +.. py:class:: StepsToOmit + + .. py:attribute:: StepsToOmit.DEEMBEDDING_TABLES + + + + Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. + + + + + + .. py:attribute:: StepsToOmit.NONE + + + + No step is omitted during reset. + + + + + + .. py:attribute:: StepsToOmit.ROUTES + + + + Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. + + + + + +SyncRefTriggerDelayEnabled +-------------------------- + +.. py:class:: SyncRefTriggerDelayEnabled + + .. py:attribute:: SyncRefTriggerDelayEnabled.DISABLED + + + + Disables synchronization reference trigger delay. + + + + + + .. py:attribute:: SyncRefTriggerDelayEnabled.ENABLED + + + + Enables synchronization reference trigger delay. + + + + + +UserSourcePulseWidthUnits +------------------------- + +.. py:class:: UserSourcePulseWidthUnits + + .. py:attribute:: UserSourcePulseWidthUnits.SECONDS + + + + Units are seconds. + + + + + + .. py:attribute:: UserSourcePulseWidthUnits.CLOCK_PERIODS + + + + Units are clock periods. + + + + + + + diff --git a/docs/nirfsa/errors.rst b/docs/nirfsa/errors.rst new file mode 100644 index 0000000000..f0071083f3 --- /dev/null +++ b/docs/nirfsa/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: Error + + Base exception type that all NI-RFSA exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: DriverError + + An error originating from the NI-RFSA driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-RFSA driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: DriverTooNewError + + An error due to the NI-RFSA driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nirfsa.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: nirfsa.errors + + .. exception:: DriverWarning + + A warning originating from the NI-RFSA driver + + + diff --git a/docs/nirfsa/examples.rst b/docs/nirfsa/examples.rst new file mode 100644 index 0000000000..f193159032 --- /dev/null +++ b/docs/nirfsa/examples.rst @@ -0,0 +1,23 @@ +Examples +======== + +`You can download all nirfsa examples for latest version here `_ + +nirfsa_getting_started_iq.py +---------------------------- + +.. literalinclude:: ../../src/nirfsa/examples/nirfsa_getting_started_iq.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nirfsa_getting_started_iq.py) `_ + +nirfsa_getting_started_spectrum.py +---------------------------------- + +.. literalinclude:: ../../src/nirfsa/examples/nirfsa_getting_started_spectrum.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nirfsa_getting_started_spectrum.py) `_ + diff --git a/docs/nirfsa/grpc_session_options.rst b/docs/nirfsa/grpc_session_options.rst new file mode 100644 index 0000000000..8176959ea0 --- /dev/null +++ b/docs/nirfsa/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-RFSA over gRPC + +.. py:currentmodule:: nirfsa + + + +Creating a gRPC channel +----------------------- + +Using NI-RFSA over gRPC requires the ``grpc`` extra:: + + $ python -m pip install nirfsa[grpc] + +Every NI-RFSA gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`nirfsa.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-RFSA runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import nirfsa + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = nirfsa.GrpcSessionOptions(channel, '') + with nirfsa.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`nirfsa.SessionInitializationBehavior` diff --git a/docs/nirfsa/index.rst b/docs/nirfsa/index.rst new file mode 100644 index 0000000000..031498c9c7 --- /dev/null +++ b/docs/nirfsa/index.rst @@ -0,0 +1,30 @@ + +NI-RFSA Python API Documentation +================================ + +.. include:: about_nirfsa.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nirfsa + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nirfsa/installation.inc b/docs/nirfsa/installation.inc new file mode 100644 index 0000000000..2bbf3c6472 --- /dev/null +++ b/docs/nirfsa/installation.inc @@ -0,0 +1,13 @@ + +.. _nirfsa_installation-section: + +Installation +------------ + +As a prerequisite to using the **nirfsa** module, you must install the NI-RFSA runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-RFSA**) can be installed with `pip `_:: + + $ python -m pip install nirfsa + + diff --git a/docs/nirfsa/nirfsa.rst b/docs/nirfsa/nirfsa.rst new file mode 100644 index 0000000000..99ce0c0cf4 --- /dev/null +++ b/docs/nirfsa/nirfsa.rst @@ -0,0 +1,9 @@ +nirfsa module +============= + +.. include:: installation.inc + +.. include:: ../_static/nirfsa_usage.inc + +.. include:: toc.inc + diff --git a/docs/nirfsa/rep_caps.rst b/docs/nirfsa/rep_caps.rst new file mode 100644 index 0000000000..70a6a514b8 --- /dev/null +++ b/docs/nirfsa/rep_caps.rst @@ -0,0 +1,88 @@ +.. py:module:: nirfsa + :noindex: + +.. py:currentmodule:: nirfsa.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niRFSA_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +ports +----- + + .. py:attribute:: nirfsa.Session.ports[] + + .. code:: python + + session.ports['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +los +--- + + .. py:attribute:: nirfsa.Session.los[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.los['0-2'].channel_enabled = True + + passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.los['LO0-LO2'].channel_enabled = True + + passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. + + +device_temperatures +------------------- + + .. py:attribute:: nirfsa.Session.device_temperatures[] + + .. code:: python + + session.device_temperatures['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +channels +-------- + + .. py:attribute:: nirfsa.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + + diff --git a/docs/nirfsa/status.inc b/docs/nirfsa/status.inc new file mode 100644 index 0000000000..2040a70284 --- /dev/null +++ b/docs/nirfsa/status.inc @@ -0,0 +1,46 @@ + +NI-RFSA Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-RFSA (nirfsa) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nirfsaLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nirfsaPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nirfsaDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nirfsaOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nirfsaOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nirfsaLatestVersion| image:: http://img.shields.io/pypi/v/nirfsa.svg + :alt: Latest NI-RFSA Version + :target: http://pypi.python.org/pypi/nirfsa + + +.. |nirfsaPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsa.svg + :alt: NI-RFSA supported Python versions + :target: http://pypi.python.org/pypi/nirfsa + + +.. |nirfsaDocs| image:: https://readthedocs.org/projects/nirfsa/badge/?version=latest + :alt: NI-RFSA Python API Documentation Status + :target: https://nirfsa.readthedocs.io/en/latest + + +.. |nirfsaOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsa.svg + :alt: Open Issues + Pull Requests for NI-RFSA + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsa + + +.. |nirfsaOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsa.svg + :alt: Pull Requests for NI-RFSA + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsa + + diff --git a/docs/nirfsa/toc.inc b/docs/nirfsa/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/nirfsa/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/nirfsg/.readthedocs.yaml b/docs/nirfsg/.readthedocs.yaml new file mode 100644 index 0000000000..037adad77d --- /dev/null +++ b/docs/nirfsg/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nirfsg/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nirfsg/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nirfsg/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nirfsg/about_nirfsg.inc b/docs/nirfsg/about_nirfsg.inc new file mode 100644 index 0000000000..f3d1bb4d3c --- /dev/null +++ b/docs/nirfsg/about_nirfsg.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nirfsg** module provides a Python API for NI-RFSG. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nirfsg** supports all the Operating Systems supported by NI-RFSG. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nirfsg**. + diff --git a/docs/nirfsg/class.rst b/docs/nirfsg/class.rst new file mode 100644 index 0000000000..7b8806965f --- /dev/null +++ b/docs/nirfsg/class.rst @@ -0,0 +1,10984 @@ +.. py:module:: nirfsg + +Session +======= + +.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) + + + + Opens a session to the device you specify as the :py:attr:`nirfsg.Session.RESOURCE_NAME` and returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. + + This method also configures the device through the :py:attr:`nirfsg.Session.OPTION_STRING` input. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Simulating an NI RF Signal Generator `_ + + + + .. note:: For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending /*ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param resource_name: + + + Specifies the resource name of the device to initialize. + + For NI-DAQmx devices, the syntax is the device name specified in MAX. Typical default names for NI-DAQmx devices in MAX are Dev2 or PXISlot2. You can rename an NI-DAQmx device in MAX. + + You can also specify the name of an IVI logical name configured with the IVI Configuration utility. Refer to the *IVI* topic of the *Measurement & Automation Explorer Help* for more information. + + + + .. note:: NI-RFSG device names are not case-sensitive. However, all IVI names, such as logical names, are case-sensitive. If you use an IVI logical name, make sure the name is identical to the name shown in the IVI Configuration Utility. + + + :type resource_name: str + + :param id_query: + + + Specifies whether you want NI-RFSG to perform an ID query. + + **Defined Values** : + + +-----------+--------------------------+ + | Value | Description | + +===========+==========================+ + | True (1) | Perform ID query. | + +-----------+--------------------------+ + | False (0) | Do not perform ID query. | + +-----------+--------------------------+ + + + :type id_query: bool + + :param reset_device: + + + Specifies whether you want to reset the NI-RFSG device during the initialization procedure. + + **Defined Values** : + + +-----------+----------------------+ + | Value | Description | + +===========+======================+ + | True (1) | Reset device. | + +-----------+----------------------+ + | False (0) | Do not reset device. | + +-----------+----------------------+ + + + :type reset_device: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: nirfsg.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: abort() + + Stops signal generation. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Programming State Model `_ + + + + + +allocate_arb_waveform +--------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: allocate_arb_waveform(waveform_name, size_in_samples) + + Allocates onboard memory space for the arbitrary waveform. + + Use this method to specify the total size of a waveform before writing the data. Use this method only if you are calling the :py:meth:`nirfsg.Session.WriteArbWaveform` method multiple times to write a large waveform in smaller blocks. + + The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming Waveform Data `_ + + + + + + :param waveform_name: + + + Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + + + + :type waveform_name: str + :param size_in_samples: + + + Specifies the number of samples to reserve in the onboard memory for the specified waveform. Each I/Q pair is considered one sample. + + + + + :type size_in_samples: int + +change_external_calibration_password +------------------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: change_external_calibration_password(old_password, new_password) + + Changes the external calibration password of the device. + + **Supported Devices:** PXIe-5611, PXIe-5653/5654, PXIe-5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param old_password: + + + Specifies the old (current) external calibration password. This password is case sensitive. + + + + + :type old_password: str + :param new_password: + + + Specifies the new (desired) external calibration password. + + + + + :type new_password: str + +check_generation_status +----------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: check_generation_status() + + Checks the status of the generation. + + Call this method to check for any errors that might occur during the signal generation or to check whether the device has finished generating. + + **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow ` + + + + + + :rtype: bool + :return: + + + Returns information about the completion of signal generation. + + **Defined Values** : + + +-------+---------------------------------+ + | Value | Description | + +=======+=================================+ + | True | Signal generation is complete. | + +-------+---------------------------------+ + | False | Signal generation is occurring. | + +-------+---------------------------------+ + + + +check_if_script_exists +---------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: check_if_script_exists(script_name) + + Returns whether the script that you specify as :py:attr:`nirfsg.Session.SCRIPT_NAME` exists. + + **Supported Devices** : PXIe-5673/5673E. PXIe-5830/5831/5840/5841/5842/5860 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param script_name: + + + Specifies the name of the script. This string is case-insensitive. + + + + + :type script_name: str + + :rtype: bool + :return: + + + Returns True if the script exists. + + **Defined Values** : + + +-------+----------------------------+ + | Value | Description | + +=======+============================+ + | True | The script exists. | + +-------+----------------------------+ + | False | The script does not exist. | + +-------+----------------------------+ + + + +check_if_waveform_exists +------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: check_if_waveform_exists(waveform_name) + + Returns whether the waveform that you specify as :py:attr:`nirfsg.Session.WAVEFORM_NAME` exists. + + **Supported Devices** : PXIe-5673/5673E, PXIe-5830/5831/5840/5841/5842/5860 + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param waveform_name: + + + Specifies the name used to store the waveform. This string is case-insensitive. + + + + + :type waveform_name: str + + :rtype: bool + :return: + + + Returns True if the waveform exists. + + **Defined Values** : + + +-------+------------------------------+ + | Value | Description | + +=======+==============================+ + | True | The waveform exists. | + +-------+------------------------------+ + | False | The waveform does not exist. | + +-------+------------------------------+ + + + +clear_all_arb_waveforms +----------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: clear_all_arb_waveforms() + + Deletes all currently defined waveforms and scripts. + + The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + +clear_arb_waveform +------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: clear_arb_waveform(waveform_name) + + Deletes a specified waveform from the pool of currently defined waveforms. + + The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param waveform_name: + + + Name of the stored waveform to delete. + + + + + :type waveform_name: str + +clear_self_calibrate_range +-------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: clear_self_calibrate_range() + + Clears the data obtained from the :py:meth:`nirfsg.Session.self_calibrate_range` method. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + +close +----- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: close() + + Aborts any signal generation in progress and destroys the instrument driver session. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + `NI-RFSG Programming State Model `_ + + + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: commit() + + Programs the device with the correct settings. + + Calling this method moves the NI-RFSG device from the Configuration state to the Committed state. After this method executes, a change to any property reverts the NI-RFSG device to the Configuration state. + + **Supported devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Programming State Model `_ + + + + + +configure_deembedding_table_interpolation_linear +------------------------------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_deembedding_table_interpolation_linear(port, table_name, format) + + Selects the linear interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + :param format: + + + Specifies the format of parameters to interpolate. **Defined Values** : + + +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +==================================================+================+=========================================================================================================================================+ + | :py:data:`~nirfsg.Format.REAL_AND_IMAGINARY` | 26000 (0x6590) | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | + +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.Format.MAGNITUDE_AND_PHASE` | 26001 (0x6591) | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | + +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.Format.MAGNITUDE_DB_AND_PHASE` | 26002 (0x6592) | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | + +--------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + + :type format: :py:data:`nirfsg.Format` + +configure_deembedding_table_interpolation_nearest +------------------------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_deembedding_table_interpolation_nearest(port, table_name) + + Selects the nearest interpolation method. + + NI-RFSG uses the parameters of the table nearest to the carrier frequency for de-embedding. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + +configure_deembedding_table_interpolation_spline +------------------------------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_deembedding_table_interpolation_spline(port, table_name) + + Selects the spline interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + +configure_digital_edge_script_trigger +------------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_digital_edge_script_trigger(source, edge) + + Configures the specified Script Trigger for digital edge triggering. + + The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Edge Trigger `_ + + + + + .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_edge_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.configure_digital_edge_script_trigger` + + + :param source: + + + Specifies the source terminal for the digital edge Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_script_trigger_source` property to this value. + + + + + :type source: str + :param edge: + + + Specifies the active edge for the digital edge Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_script_trigger_edge` property to this value. + + + + + :type edge: :py:data:`nirfsg.ScriptTriggerDigitalEdgeEdge` + +configure_digital_edge_start_trigger +------------------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_digital_edge_start_trigger(source, edge) + + Configures the Start Trigger for digital edge triggering. + + The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Digital Edge Trigger `_ + + + + .. note:: For the PXIe-5654/5654 with PXIe-5696, the Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + + + :param source: + + + Specifies the source terminal for the digital edge trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property to this value. + + + + + :type source: str + :param edge: + + + Specifies the active edge for the Start Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property to this value. + + + + + :type edge: :py:data:`nirfsg.StartTriggerDigitalEdgeEdge` + +configure_digital_level_script_trigger +-------------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_digital_level_script_trigger(source, level) + + Configures a specified Script Trigger for digital level triggering. + + The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Level Trigger `_ + + + + + .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_level_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.configure_digital_level_script_trigger` + + + :param source: + + + Specifies the trigger source terminal for the digital level Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property to this value. + + + + + :type source: str + :param level: + + + Specifies the active level for the digital level Script Trigger. NI-RFSG sets the :py:attr:`nirfsg.Session.digital_level_script_trigger_active_level` property to this value. + + + + + :type level: int + +configure_ref_clock +------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_ref_clock(ref_clock_source, ref_clock_rate) + + Configures the NI-RFSG device Reference Clock. + + The Reference Clock ensures that the NI-RFSG devices are operating from a common timebase. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5672 Timing Configurations `_ + + `PXIe-5673 Timing Configurations `_ + + `PXIe-5673E Timing Configurations `_ + + `PXIe-5830 Timing Configurations `_ + + `PXIe-5831 Timing Configurations `_ + + + + + + :param ref_clock_source: + + + Specifies the source of Reference Clock signal. + + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Values | Description | + +=================+=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the Getting Started Guide for the instrument. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831, lock the external signal to the PXIe-3622 REF IN connector. For the PXIe-5832, lock the external signal to the PXIe-3623 REF IN connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the Getting Started Guide for the instrument. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the clock source. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655/5842. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn2" | \- | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_ClkMaster" | This value is valid on only the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. **PXIe-5831 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. **PXIe-5832 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3623 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + + :type ref_clock_source: str + :param ref_clock_rate: + + + Specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. The default value is :py:data:`~nirfsg.NIRFSG_VAL_AUTO`, which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. This parameter is only valid when the :py:attr:`nirfsg.Session.ref_clock_source` parameter is set to ClkIn, RefIn or RefIn2. Refer to the :py:attr:`nirfsg.Session.ref_clock_rate` property for possible values. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type ref_clock_rate: float + +configure_rf +------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_rf(frequency, power_level) + + Configures the frequency and power level of the RF output signal. + + The PXI-5670/5671, PXIe-5672, and PXIe-5860 device must be in the Configuration state before calling this method. The PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 device can be in the Configuration or Generation state when you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + + + + + :param frequency: + + + Specifies the frequency of the generated RF signal, in hertz. For arbitrary waveform generation, this parameter specifies the center frequency of the signal. + + **Units** : hertz (Hz) + + + + + :type frequency: float + :param power_level: + + + Specifies either the average power level or peak power level of the generated RF signal, depending on the :py:attr:`nirfsg.Session.power_level_type` property. + + **Units** : dBm + + + + + :type power_level: float + +configure_software_script_trigger +--------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_software_script_trigger() + + Configures the Script Trigger for software triggering. + + Refer to the :py:meth:`nirfsg.Session.send_software_edge_trigger` method for more information about using the software Script Trigger. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Trigger Types `_ + + + + + .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].configure_software_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.configure_software_script_trigger` + + +configure_software_start_trigger +-------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: configure_software_start_trigger() + + Configures the Start Trigger for software triggering. + + Refer to the :py:meth:`nirfsg.Session.send_software_edge_trigger` method for more information about using a software trigger. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Trigger Types `_ + + + + + +create_deembedding_sparameter_table_array +----------------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, sparameter_orientation) + + Creates an s-parameter de-embedding table for the port from the input data. + + If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview`_ + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + + + + :type table_name: str + :param frequencies: + + + Specifies the frequencies for the :py:attr:`nirfsg.Session.SPARAMETER_TABLE` rows. Frequencies must be unique and in ascending order. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + :type frequencies: numpy.array(dtype=numpy.float64) + :param sparameter_table: + + + Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. + + + + + :type sparameter_table: numpy.array(dtype=numpy.complex128) + :param sparameter_orientation: + + + Specifies the orientation of the input data relative to the port on the DUT port. + + **Defined Values** : + + +------------------------------------------------------------+----------------+-----------------------------------------------------+ + | Name | Value | Description | + +============================================================+================+=====================================================+ + | :py:data:`~nirfsg.SparameterOrientation.PORT1_TOWARDS_DUT` | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+----------------+-----------------------------------------------------+ + | :py:data:`~nirfsg.SparameterOrientation.PORT2_TOWARDS_DUT` | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+----------------+-----------------------------------------------------+ + + + :type sparameter_orientation: :py:data:`nirfsg.SparameterOrientation` + +create_deembedding_sparameter_table_s2p_file +-------------------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) + + Creates an S-parameter de-embedding table for the port based on the specified S2P file. + + If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview `_ + + `S-parameters `_ + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842 is empty string. + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + + + + :type table_name: str + :param s2p_file_path: + + + Specifies the path to the S2P file that contains de-embedding information for the specified port. + + + + + :type s2p_file_path: str + :param sparameter_orientation: + + + Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : + + +------------------------------------------------------------+----------------+-----------------------------------------------------+ + | Name | Value | Description | + +============================================================+================+=====================================================+ + | :py:data:`~nirfsg.SparameterOrientation.PORT1_TOWARDS_DUT` | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+----------------+-----------------------------------------------------+ + | :py:data:`~nirfsg.SparameterOrientation.PORT2_TOWARDS_DUT` | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | + +------------------------------------------------------------+----------------+-----------------------------------------------------+ + + + :type sparameter_orientation: :py:data:`nirfsg.SparameterOrientation` + +delete_all_deembedding_tables +----------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: delete_all_deembedding_tables() + + Deletes all configured de-embedding tables for the session. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + +delete_deembedding_table +------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: delete_deembedding_table(port, table_name) + + Deletes the selected de-embedding table for a given port. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :param port: + + + Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + + + + :type port: str + :param table_name: + + + Specifies the name of the table. + + + + + :type table_name: str + +delete_script +------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: delete_script(script_name) + + Deletes a specified script from the pool of currently defined scripts. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param script_name: + + + Specifies the name of the script to delete. This string is case-insensitive. + + + + + :type script_name: str + +disable_script_trigger +---------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: disable_script_trigger() + + Configures the device not to wait for the specified Script Trigger. + + Call this method only if you previously configured a Script Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + + + + .. tip:: This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].disable_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.disable_script_trigger` + + +disable_start_trigger +--------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: disable_start_trigger() + + Configures the device not to wait for a Start Trigger. + + This method is necessary only if you previously configured a Start Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + + + + +error_message +------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: error_message(error_code) + + Converts an error code returned by an NI-RFSG method into a user-readable string. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param error_code: + + + Pass the status parameter that is returned from any NI-RFSG method. + + **Default Value** : 0 (VI_SUCCESS) + + + + + :type error_code: int + + :rtype: str + :return: + + + Returns the user-readable message string that corresponds to the status code you specify. + + + + + +get_all_named_waveform_names +---------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_all_named_waveform_names() + + Return names of the waveforms present in the memory. + + **Supported Devices** :PXIe-5830/5831/5840/5841/5842E + + + + + + :rtype: list of str + :return: + + + Returns a list of string having waveform names. + + + + + +get_all_script_names +-------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_all_script_names() + + Return names of the scripts present in the memory. + + **Supported Devices** :PXIe-5830/5831/5840/5841/5842E + + + + + + :rtype: list of str + :return: + + + Returns a list of string having script names. + + + + + +get_deembedding_sparameters +--------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_deembedding_sparameters() + + Returns the S-parameters used for de-embedding a measurement on the selected port. + + This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. + + If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: The port orientation for the returned S-parameters is normalized to :py:data:`~nirfsg.SparameterOrientation.PORT1_TOWARDS_DUT`. + + + + :rtype: numpy.array(dtype=numpy.complex128) + :return: + + + Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. + + + + + +get_error +--------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_error() + + Retrieves and then clears the IVI error information for the session or the current execution thread. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 + + + + .. note:: If the **bufferSize** parameter is 0, this method does not clear the error information. By passing 0 to the **bufferSize** parameter, you can determine the buffer size required to obtain the entire :py:attr:`nirfsg.Session.ERROR_DESCRIPTION` string. You can then call this method again with a sufficiently large buffer. If you specify a valid IVI session for the :py:attr:`nirfsg.Session.VI` parameter, this method retrieves and clears the error information for the session. If you pass VI_NULL for the :py:attr:`nirfsg.Session.VI` parameter, this method retrieves and clears the error information for the current execution thread. If the :py:attr:`nirfsg.Session.VI` parameter is an invalid session, this method does nothing and returns an error. Normally, the error information describes the first error that occurred since the user last called this method or the :py:meth:`nirfsg.Session.ClearError` method. + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :rtype: tuple (error_code, error_description) + + WHERE + + error_code (int): + + + Returns the error code for the session or execution thread. If you pass 0 for the **BufferSize** parameter, you can pass VI_NULL for this parameter. + + + + + error_description (str): + + + Returns the :py:attr:`nirfsg.Session.ERROR_DESCRIPTION` for the IVI session or execution thread. + + If there is no description, the method returns an empty string. The buffer must contain at least as many elements as the value you specify with the **bufferSize** parameter. If the :py:attr:`nirfsg.Session.ERROR_DESCRIPTION`, including the terminating NULL byte, contains more bytes than you indicate with the **bufferSize** parameter, the method copies **bufferSize** - 1 bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is 123456 and the buffer size is 4, the method places 123 into the buffer and returns 7. If you pass 0, you can pass VI_NULL for this parameter. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + +get_ext_cal_last_date_and_time +------------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_ext_cal_last_date_and_time() + + Returns the date and time of the last successful external calibration. + + The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :rtype: hightime.datetime + :return: + + + + + + +get_max_settable_power +---------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_max_settable_power() + + Returns the maximum settable output power level for the current configuration. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + + :rtype: float + :return: + + + Returns maximum settable power level in dBm. + + + + + +get_script +---------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_script(script_name) + + Returns the content of specified script. + + **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param script_name: + + + Specifies the name of the script. This string is case-insensitive. + + + + + :type script_name: str + + :rtype: str + :return: + + + Returns the script. + + + + + +get_self_cal_last_date_and_time +------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_self_cal_last_date_and_time(module=nirfsg.Module.PRIMARY_MODULE) + + Returns the date and time of the last successful self-calibration. + + The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param module: + + + Specifies from which stand-alone module to retrieve the last successful self-calibration date and time. + + + + + :type module: :py:data:`nirfsg.Module` + + :rtype: hightime.datetime + :return: + + + + + + +get_self_calibration_temperature +-------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_self_calibration_temperature(module=nirfsg.Module.PRIMARY_MODULE) + + Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. + + **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 + + + + + + :param module: + + + Specifies from which stand-alone module to retrieve the last successful self-calibration temperature. + **Default Value** : :py:data:`~nirfsg.Module.PRIMARY_MODULE` + **Defined Values** : + + +------------------------------------------+----------------+---------------------------------------------------------------------+ + | Name | Value | Description | + +==========================================+================+=====================================================================+ + | :py:data:`~nirfsg.Module.PRIMARY_MODULE` | 13000 (0x32c8) | The stand-alone device or the main module in a multi-module device. | + +------------------------------------------+----------------+---------------------------------------------------------------------+ + | :py:data:`~nirfsg.Module.AWG` | 13001 (0x32c9) | The AWG associated with the primary module. | + +------------------------------------------+----------------+---------------------------------------------------------------------+ + | :py:data:`~nirfsg.Module.LO` | 13002 (0x32ca) | The LO associated with the primary module. | + +------------------------------------------+----------------+---------------------------------------------------------------------+ + + + :type module: :py:data:`nirfsg.Module` + + :rtype: float + :return: + + + Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. + + + + + +get_terminal_name +----------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_terminal_name(signal, signal_identifier) + + Returns the fully-qualified name of the specified signal. + + The fully-qualified name is helpful to automatically route signals in a multisegment chassis. + + **Supported Devices** : PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `Syntax for Terminal Names `_ + + + + + + :param signal: + + + Specifies the signal to query. **Defined Values** : + + +---------------------------------------------------------------+---------+--------------------------------------------+ + | Name | Value | Description | + +===============================================================+=========+============================================+ + | :py:data:`~nirfsg.Signal.START_TRIGGER` | 0 (0x0) | Exports a Start Trigger. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.Signal.SCRIPT_TRIGGER` | 1 (0x1) | Exports a Script Trigger. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.Signal.MARKER_EVENT` | 2 (0x2) | Exports a Marker Event. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.Signal.REF_CLOCK` | 3 (0x3) | Exports the Reference Clock. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.Signal.STARTED_EVENT` | 4 (0x4) | Exports a Started Event. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.Signal.DONE_EVENT` | 5 (0x5) | Exports a Done Event. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_CONFIGURATION_LIST_STEP_TRIGGER` | 6 (0x6) | Exports a Configuration List Step Trigger. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_CONFIGURATION_SETTLED_EVENT` | 7 (0x7) | Exports a Configuration Settled Event. | + +---------------------------------------------------------------+---------+--------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type signal: :py:data:`nirfsg.Signal` + :param signal_identifier: + + + Specifies which instance of the selected signal to query. This parameter is necessary when you set the :py:attr:`nirfsg.Session.SIGNAL` parameter to :py:data:`~nirfsg.NIRFSG_VAL_SCRIPT_TRIGGER` or :py:data:`~nirfsg.Signal.MARKER_EVENT` . Otherwise, set the :py:attr:`nirfsg.Session.SIGNAL_IDENTIFIER` parameter to "" (empty string). **Possible Values** : + + +------------------+-----------------------------+ + | Possible Value | Description | + +==================+=============================+ + | "marker0" | Specifies Marker 0. | + +------------------+-----------------------------+ + | "marker1" | Specifies Marker 1. | + +------------------+-----------------------------+ + | "marker2" | Specifies Marker 2. | + +------------------+-----------------------------+ + | "marker3" | Specifies Marker 3. | + +------------------+-----------------------------+ + | "scriptTrigger0" | Specifies Script Trigger 0. | + +------------------+-----------------------------+ + | "scriptTrigger1" | Specifies Script Trigger 1. | + +------------------+-----------------------------+ + | "scriptTrigger2" | Specifies Script Trigger 2. | + +------------------+-----------------------------+ + | "scriptTrigger3" | Specifies Script Trigger 3. | + +------------------+-----------------------------+ + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type signal_identifier: str + + :rtype: str + :return: + + + Returns the string to use as the source for other devices. + + + + + +get_waveform_burst_start_locations +---------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_waveform_burst_start_locations() + + Returns the burst start locations of the waveform stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_start_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.get_waveform_burst_start_locations` + + + :rtype: list of float + :return: + + + Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + +get_waveform_burst_stop_locations +--------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_waveform_burst_stop_locations() + + Returns the burst stop locations of the waveform stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_stop_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.get_waveform_burst_stop_locations` + + + :rtype: list of float + :return: + + + Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + +get_waveform_marker_event_locations +----------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: get_waveform_marker_event_locations() + + Returns the marker locations associated with the waveform and the marker stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.markers[ ... ].get_waveform_marker_event_locations` + + To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.get_waveform_marker_event_locations` + + + :rtype: list of float + :return: + + + Returns the marker locations stored in the NI-RFSG database for the channel you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + +initiate +-------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: initiate() + + Initiates signal generation, causing the NI-RFSG device to leave the Configuration state and enter the Generation state. + + If the settings have not been committed to the device before you call this method, they are committed by this method. The operation returns when the RF output signal settles. To return to the Configuration state, call the :py:meth:`nirfsg.Session.abort` method. + + **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +load_configurations_from_file +----------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: load_configurations_from_file(file_path) + + Loads the configurations from the specified file to the NI-RFSG driver session. + + The VI does an implicit reset before loading the configurations from the file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.load_configurations_from_file` + + + :param file_path: + + + Specifies the absolute path of the file from which the NI-RFSG loads the configurations. + + + + + :type file_path: str + +lock +---- + + .. py:currentmodule:: nirfsg.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`nirfsg.Session.lock` method. + - A call to NI-RFSG locked the session. + - After a call to the :py:meth:`nirfsg.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`nirfsg.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`nirfsg.Session.lock` method and the + :py:meth:`nirfsg.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`nirfsg.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`nirfsg.Session.lock` method with a call to + the :py:meth:`nirfsg.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with nirfsg.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`nirfsg.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +perform_power_search +-------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: perform_power_search() + + Performs a power search if the :py:attr:`nirfsg.Session.alc_control` property is disabled. + + Calling this method disables modulation for a short time while the device levels the output signal. + + **Supported Devices** : PXIe-5654 with PXIe-5696 + + **Related Topics** + + `Power Search `_ + + + + .. note:: Power search temporarily enables the ALC, so ensure the appropriate included cable is connected between the PXIe-5654 ALCIN connector and the PXIe-5696 ALCOUT connector to successfully perform a power search. + + + +perform_thermal_correction +-------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: perform_thermal_correction() + + Corrects for any signal drift due to environmental temperature variation when generating the same signal for extended periods of time without a parameter change. + + Under normal circumstances of short-term signal generation, NI-RFSG performs thermal correction automatically by ensuring stable power levels, and you do not need to call this method. + + Use this method when generating the same signal for an extended period of time in a temperature-fluctuating environment. The NI-RFSG device must be in the Generation state before calling this method. + + **Supported Devices** : PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Thermal Management `_ + + `Impairment Calibration `_ + + + + + +query_arb_waveform_capabilities +------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: query_arb_waveform_capabilities() + + Queries and returns the waveform capabilities of the NI-RFSG device. + + These capabilities are related to the current device configuration. The NI-RFSG device must be in the Configuration or the Generation state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :rtype: tuple (max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size) + + WHERE + + max_number_waveforms (int): + + + Returns the value of the :py:attr:`nirfsg.Session.arb_max_number_waveforms` property. This value is the maximum number of waveforms you can write. + + + + + waveform_quantum (int): + + + Returns the value of the :py:attr:`nirfsg.Session.arb_waveform_quantum` property. If the waveform quantum is *q*, then the size of the waveform that you write should be a multiple of *q*. The units are expressed in samples. + + + + + min_waveform_size (int): + + + Returns the value of the :py:attr:`nirfsg.Session.arb_waveform_size_min` property. The number of samples of the waveform that you write must be greater than or equal to this value. + + + + + max_waveform_size (int): + + + Returns the value of the :py:attr:`nirfsg.Session.arb_waveform_size_max` property. The number of samples of the waveform that you write must be less than or equal to this value. + + + + + +read_and_download_waveform_from_file_tdms +----------------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: read_and_download_waveform_from_file_tdms(waveform_name, file_path, waveform_index) + + Reads the waveforms from a TDMS file and downloads one waveform into each of the NI RF vector signal generators. + + This method reads the following information from the TDMS file and writes it into the NI-RFSG session: + + - Sample Rate + - PAPR + - Runtime Scaling + - RF Blanking Marker Locations + - RF Blanking Enabled + - Burst Start Locations + - Burst Stop Locations + - RF Blanking Marker Source + - Signal Bandwidth + - Waveform Size + + If RF blanking marker locations are present in the file but burst locations are not present, burst locations are calculated from RF blanking marker locations and stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + + :param waveform_name: + + + Specifies the name used to store the waveform. This string is case-insensitive. + + Example: + + "waveform::waveform0" + + + + + :type waveform_name: str + :param file_path: + + + Specifies the absolute path to the TDMS file from which the NI-RFSG reads the waveforms. + + + + + :type file_path: str + :param waveform_index: + + + Specifies the index of the waveform to be read from the TDMS file. + + + + + :type waveform_index: int + +reset +----- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: reset() + + Resets all properties to their default values and moves the NI-RFSG device to the Configuration state. + + This method aborts the generation, deletes all de-embedding tables, clears all routes, and resets session properties to their initial values. During a reset, routes of signals between this and other devices are released, regardless of which device created the route. + + Generally, calling this method instead of the :py:meth:`nirfsg.Session.reset_device` method is acceptable. The :py:meth:`nirfsg.Session.Reset` method executes faster than the :py:meth:`nirfsg.Session.reset_device` method. + + To avoid resetting routes on the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using the :py:meth:`nirfsg.Session.reset_with_options` method, with **stepsToOmit** set to :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` . + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. + + + +reset_device +------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: reset_device() + + Performs a hard reset on the device which consists of the following actions: + + - Signal generation is stopped. + - All routes are released. + - External bidirectional terminals are tristated. + - FPGAs are reset. + - Hardware is configured to its default state. + - All session properties are reset to their default states. + + During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. + + - PXI-5610, PXI-5670/5671, PXIe-5672-- After calling this method, the device requires 25 seconds before returning to full functionality. NI-RFSG enforces this condition by adding a wait, if needed, the next time you try to access the device. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E + + **Related Topics** + + `Thermal Shutdown `_ + + + + .. note:: You must call the :py:meth:`nirfsg.Session.reset_device` method if the NI-RFSG device has shut down because of a high-temperature condition. + + + +reset_with_defaults +------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: reset_with_defaults() + + Performs a software reset of the device, returning it to the default state and applying any initial default settings from the IVI Configuration Store. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696,PXI-5670/5671, PXIe-5672/5673/5673E + + + + + +reset_with_options +------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: reset_with_options(steps_to_omit) + + Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. + + By default, this method exhibits the same behavior as :py:meth:`nirfsg.Session.Reset`. You can specify steps to omit using the steps to omit parameter. For example, if you specify :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` for the :py:attr:`nirfsg.Session.STEPS_TO_OMIT` parameter, this method does not release signal routes during the reset process. + + When routes of signals between two devices are released, they are released regardless of which device created the route. + + To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using this method instead of :py:meth:`nirfsg.Session.Reset`, with :py:attr:`nirfsg.Session.STEPS_TO_OMIT` set to :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES`. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param steps_to_omit: + + + Specifies a list of steps to skip during the reset process. The default value is :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.NONE`, which specifies that no step is omitted during reset. **Defined Values** : + + +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +===================================================================+=========+============================================================================================================================================================================================================+ + | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.NONE` | 0 (0x0) | No step is omitted during reset. | + +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.WAVEFORMS` | 1 (0x1) | Omits clearing waveforms. | + +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.SCRIPTS` | 2 (0x2) | Omits clearing scripts. | + +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` | 4 (0x4) | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | + +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES` | 8 (0x8) | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | + +-------------------------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: :py:data:`~nirfsg.ResetWithOptionsStepsToOmit.ROUTES` is not supported in external calibration or alignment sessions. + You can combine multiple enums.ResetWithOptionsStepsToOmit flags using the bitwise OR (|) operator. + + + :type steps_to_omit: :py:data:`nirfsg.ResetWithOptionsStepsToOmit` + +save_configurations_to_file +--------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: save_configurations_to_file(file_path) + + Saves the configurations of the session to the specified file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.save_configurations_to_file` + + + :param file_path: + + + Specifies the absolute path of the file to which the NI-RFSG saves the configurations. + + + + + :type file_path: str + +select_arb_waveform +------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: select_arb_waveform(waveform_name) + + Specifies the waveform that is generated upon a call to the :py:meth:`nirfsg.Session._initiate` method when the generation_mode property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. + + You must specify a waveform using the :py:attr:`nirfsg.Session.NAME` parameter if you have written multiple waveforms. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + + :param waveform_name: + + + Specifies the name of the stored waveform to generate. This is a case-insensitive alphanumeric string that does not use reserved words. NI-RFSG sets the :py:attr:`nirfsg.Session.arb_selected_waveform` property to this value. + + + + + :type waveform_name: str + +self_cal +-------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: self_cal() + + Performs an internal self-calibration on the device and associated modules that support self-calibration. + + If the calibration is successful, new calibration data and constants are stored in the onboard nonvolatile memory of the module. + + The PXIe-5841 maintains separate self-calibration data for both the PXIe-5841 standalone and when associated with the PXIe-5655. Use this method once for each intended configuration. + + **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. + + **PXIe-5860** + + While this VI is running on one channel, if there are any existing NI-RFSG or NI-RFSA sessions open on the other channel, they may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate or niRFSA Commit or niRFSA Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. + + + +self_calibrate_range +-------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: self_calibrate_range(steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level) + + Self-calibrates all configurations within the specified frequency and peak power level limits. + + Self-calibration range data is valid until you restart the system or call the :py:meth:`nirfsg.Session.clear_self_calibrate_range` method. + + NI recommends that no external signals are present on the RF In or IQ In ports during the calibration. + + For best results, NI recommends that you perform self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit certain steps for faster calibration. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + .. note:: - This method does not update self-calibration date and temperature. + + - If there is an existing NI-RFSA session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. + + - If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. + + + + :param steps_to_omit: + + + Specifies which calibration steps to skip during the self-calibration process. The default value is an empty array, which indicates that no calibration steps are omitted. + + **Default Value** : :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.OMIT_NONE` + + **Defined Values:** + + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +========================================================================+===========+=====================================================================================================================+ + | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.OMIT_NONE` | 0 (0x0) | No calibration steps are omitted. | + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.LO_SELF_CAL` | 1 (0x1) | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.POWER_LEVEL_ACCURACY` | 2 (0x2) | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER` | 4 (0x4) | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION` | 8 (0x8) | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT` | 16 (0x10) | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + + .. note:: You can combine multiple enums.SelfCalibrateRangeStepsToOmit flags using the bitwise OR (|) operator. + + + :type steps_to_omit: :py:data:`nirfsg.SelfCalibrateRangeStepsToOmit` + :param min_frequency: + + + Specifies the minimum frequency to calibrate. + + + + + :type min_frequency: float + :param max_frequency: + + + Specifies the maximum frequency to calibrate. + + + + + :type max_frequency: float + :param min_power_level: + + + Specifies the minimum power level to calibrate. + + + + + :type min_power_level: float + :param max_power_level: + + + Specifies the maximum power level to calibrate. + + + + + :type max_power_level: float + +self_test +--------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: self_test() + + Performs a self-test on the NI-RFSG device and returns the test results. + + This method performs a simple series of tests to ensure that the NI-RFSG device is powered up and responding. + + This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Device Warm-Up `_ + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + + +send_software_edge_trigger +-------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: send_software_edge_trigger(trigger, trigger_identifier) + + Forces a trigger to occur. + + The specified trigger generates regardless of whether the trigger has been configured as a software trigger. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + + + + + :param trigger: + + + Specifies the trigger to send. + + **Default Value:** :py:data:`~nirfsg.SoftwareTriggerType.START` + + **Defined Values:** + + +-----------------------------------------------+---------+-------------------------------+ + | Name | Value | Description | + +===============================================+=========+===============================+ + | :py:data:`~nirfsg.SoftwareTriggerType.START` | 0 (0x0) | Specifies the Start Trigger. | + +-----------------------------------------------+---------+-------------------------------+ + | :py:data:`~nirfsg.SoftwareTriggerType.SCRIPT` | 1 (0x1) | Specifies the Script Trigger. | + +-----------------------------------------------+---------+-------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger: :py:data:`nirfsg.SoftwareTriggerType` + :param trigger_identifier: + + + Specifies the Script Trigger to configure. This parameter is valid only when you set the :py:attr:`nirfsg.Session.TRIGGER` parameter to :py:data:`~nirfsg.NIRFSG_VAL_START_TRIGGER`. Otherwise, set the :py:attr:`nirfsg.Session.TRIGGER_IDENTIFIER` parameter to "" (empty string). + + **Default Value:** "" (empty string) + + **Possible Values:** + + +----------------+-----------------------------+ + | Possible Value | Description | + +================+=============================+ + | scriptTrigger0 | Specifies Script Trigger 0. | + +----------------+-----------------------------+ + | scriptTrigger1 | Specifies Script Trigger 1. | + +----------------+-----------------------------+ + | scriptTrigger2 | Specifies Script Trigger 2. | + +----------------+-----------------------------+ + | scriptTrigger3 | Specifies Script Trigger 3. | + +----------------+-----------------------------+ + | | None (no signal to export) | + +----------------+-----------------------------+ + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger_identifier: :py:data:`nirfsg.TriggerIdentifier` + +set_arb_waveform_next_write_position +------------------------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: set_arb_waveform_next_write_position(waveform_name, relative_to, offset) + + Configures the start position to use for writing a waveform before calling the :py:meth:`nirfsg.Session.WriteArbWaveform` method. + + This method allows you to write to arbitrary locations within the waveform. These settings apply only to the next write to the waveform specified by the **name** input of the :py:meth:`nirfsg.Session.allocate_arb_waveform` method or the :py:meth:`nirfsg.Session.WriteArbWaveform` method. Subsequent writes to that waveform begin where the last write ended, unless this method is called again. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: If you use this method to write the waveform that is currently generating, an undefined output may result. + + + + :param waveform_name: + + + Specifies the name of the waveform. This string is case-insensitive and alphanumeric, and it cannot use `reserved words `_. + + + + + :type waveform_name: str + :param relative_to: + + + Specifies the reference position in the waveform. The position and :py:attr:`nirfsg.Session.OFFSET` together determine where to start loading data into the waveform. + + **Defined Values:** + + +-------------------------------------------------+---------------+------------------------------------------------------------------+ + | Name | Value | Description | + +=================================================+===============+==================================================================+ + | :py:data:`~nirfsg.RelativeTo.START_OF_WAVEFORM` | 8000 (0x1f40) | The reference position is relative to the start of the waveform. | + +-------------------------------------------------+---------------+------------------------------------------------------------------+ + | :py:data:`~nirfsg.RelativeTo.CURRENT_POSITION` | 8001 (0x1f41) | The reference position is relative to the current position. | + +-------------------------------------------------+---------------+------------------------------------------------------------------+ + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + :type relative_to: :py:data:`nirfsg.RelativeTo` + :param offset: + + + Specifies the offset from the **relative to** parameter at which to start loading the data into the waveform. + + + + + :type offset: int + +set_waveform_burst_start_locations +---------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: set_waveform_burst_start_locations(locations) + + Configures the start location of the burst in samples where the burst refers to the active portion of a waveform. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_start_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.set_waveform_burst_start_locations` + + + :param locations: + + + Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the :py:attr:`nirfsg.Session.CHANNEL_NAME` parameter. This value is expressed in samples. + + + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + + :type locations: list of float + +set_waveform_burst_stop_locations +--------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: set_waveform_burst_stop_locations(locations) + + Configures the stop location of the burst in samples where the burst refers to the active portion of a waveform. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_stop_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.set_waveform_burst_stop_locations` + + + :param locations: + + + Specifies the burst stop locations, in samples, to store in the NI-RFSG session. + + + + + :type locations: list of float + +set_waveform_marker_event_locations +----------------------------------- + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: set_waveform_marker_event_locations(locations) + + Configures the marker locations associated with waveform and marker in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + + .. tip:: This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.markers[ ... ].set_waveform_marker_event_locations` + + To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.set_waveform_marker_event_locations` + + + :param locations: + + + Specifies the marker location, in samples, to store in the NI-RFSG database. + + + + + :type locations: list of float + +unlock +------ + + .. py:currentmodule:: nirfsg.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`nirfsg.Session.lock`. Refer to :py:meth:`nirfsg.Session.unlock` for additional + information on session locks. + +wait_until_settled +------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: wait_until_settled(max_time_milliseconds=hightime.timedelta(seconds=10.0)) + + Waits until the RF output signal has settled. This method is useful for devices that support changes while in the Generation state. + + Call this method after making a dynamic change to wait for the output signal to settle. + + You can also call this method after calling the :py:meth:`nirfsg.Session.commit` method to wait for changes to settle. The :py:meth:`nirfsg.Session.wait_until_settled` method is not required after calling the :py:meth:`nirfsg.Session._initiate` method because the :py:meth:`nirfsg.Session._initiate` automatically waits for the output to settle. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + + :param max_time_milliseconds: + + + Specifies the maximum time the method waits for the output to settle. If the maximum time is exceeded, this method returns an error. The units are expressed in milliseconds. + + **Default Value** : 10000 + + + + + :type max_time_milliseconds: hightime.timedelta, datetime.timedelta, or int in milliseconds + +write_arb_waveform +------------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: write_arb_waveform(waveform_name, waveform_data_array, more_data_pending=False) + + Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. + + This method accepts the complex baseband data in the form of numpy array of numpy.complex64 or numpy.complex128 or interleaved numpy array of numpy.int16. If the waveform to write is already allocated using the :py:meth:`nirfsg.Session.allocate_arb_waveform`, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_ + + + + .. note:: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. + If you are writing interleaved numpy array of numpy.int16, then this method only supports :py:data:`~nirfsg.PowerLevelType.PEAK` mode as specified in the :py:attr:`nirfsg.Session.power_level_type` property. If you download a waveform as interleaved numpy array of numpy.int16 when using this method, you cannot set the :py:attr:`nirfsg.Session.power_level_type` to :py:data:`~nirfsg.PowerLevelType.AVERAGE` without causing error in the output. + + + + :param waveform_name: + + + Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + + + + :type waveform_name: str + :param waveform_data_array: + + + Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the :py:meth:`nirfsg.Session.allocate_arb_waveform` method. + + + + + :type waveform_data_array: numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16 + :param more_data_pending: + + + Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the **name** parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. + + + + + :type more_data_pending: bool + +write_script +------------ + + .. py:currentmodule:: nirfsg.Session + + .. py:method:: write_script(script) + + Writes a script to the device to control waveform generation in Script mode. + + First, configure your device for Script mode by setting the generation_mode property. The NI-RFSG device must be in the Configuration state before calling the :py:meth:`nirfsg.Session.write_script` method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Scripting Instructions `_--Refer to this topic for more information about VST restrictions on scripts. + + `Common Scripting Use Cases `_ + + + + .. note:: If you are using an RF vector signal transceiver (VST) device, some script instructions may not be supported. + + + + :param script: + + + Specifies a string containing a syntactically correct script. NI-RFSG supports multiple scripts that are selected with the :py:attr:`nirfsg.Session.selected_script` property. Refer to `Scripting Instructions `_ for more information about using scripts. + + + + + :type script: str + + +Properties +========== + +absolute_delay +-------------- + + .. py:attribute:: absolute_delay + + Specifies the sub-Sample Clock delay, in seconds, to apply to the I/Q waveform. Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** Seconds + + **Valid Values:** Plus or minus half of one Sample Clock period + + **Supported Devices:** PXIe-5820/5840/5841/5842 + + + + .. note:: - The resolution of this property is a method of the I/Q sample period at 15E(-6) times that sample period. + + - If this property is set, NI-TClk cannot perform any sub-Sample Clock adjustment. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Absolute Delay** + - C Attribute: **NIRFSG_ATTR_ABSOLUTE_DELAY** + +ae_temperature +-------------- + + .. py:attribute:: ae_temperature + + Returns the amplitude extender module temperature in degrees Celsius. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXIe-5654 with PXIe-5696 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:AE Temperature (Degrees C)** + - C Attribute: **NIRFSG_ATTR_AE_TEMPERATURE** + +alc_control +----------- + + .. py:attribute:: alc_control + + Enables or disables the automatic leveling control (ALC). + + PXIe-5654 with PXIe-5696: If this property is enabled, the ALC is closed (closed-loop mode) and allows for better amplitude accuracy and wider amplitude dynamic range. If this property is disabled, the ALC is open (open-loop mode), which is ideal when using modulation. Disabling the :py:attr:`nirfsg.Session.alc_control` property also allows for NI-RFSG to perform an automatic power search. + + PXIe-5654: :py:data:`~nirfsg.AutomaticLevelControl.DISABLE` is the only supported value for this device. The PXIe-5654 does not support the ALC when used as a stand-alone device. + + **Default Value:** + + PXIe-5654: :py:data:`~nirfsg.AutomaticLevelControl.DISABLE` + + PXIe-5654 with PXIe-5696: :py:data:`~nirfsg.AutomaticLevelControl.ENABLE` + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Power Level Adjustment `_ + + `ALC Closed Loop Versus Open Loop `_ + + `Power Search `_ + + **Defined Values**: + + +--------------------------------------------------+---------+------------------+ + | Name | Value | Description | + +==================================================+=========+==================+ + | :py:data:`~nirfsg.AutomaticLevelControl.DISABLE` | 0 (0x0) | Disables ALC. | + +--------------------------------------------------+---------+------------------+ + | :py:data:`~nirfsg.AutomaticLevelControl.ENABLE` | 1 (0x1) | Enables the ALC. | + +--------------------------------------------------+---------+------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.AutomaticLevelControl | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:ALC Control** + - C Attribute: **NIRFSG_ATTR_ALC_CONTROL** + +allow_out_of_specification_user_settings +---------------------------------------- + + .. py:attribute:: allow_out_of_specification_user_settings + + Enables or disables warnings or errors when you set the frequency, power, and bandwidth values beyond the limits of the NI-RFSG device specifications. When you enable the :py:attr:`nirfsg.Session.allow_out_of_specification_user_settings` property, the driver does not report out-of-specification warnings or errors. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.AllowOutOfSpecificationUserSettings.DISABLE` + + **Supported Devices:** PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------------------------+---------+----------------------------------------------+ + | Name | Value | Description | + +================================================================+=========+==============================================+ + | :py:data:`~nirfsg.AllowOutOfSpecificationUserSettings.DISABLE` | 0 (0x0) | Disables out-of-specification user settings. | + +----------------------------------------------------------------+---------+----------------------------------------------+ + | :py:data:`~nirfsg.AllowOutOfSpecificationUserSettings.ENABLE` | 1 (0x1) | Enables out-of-specification user settings. | + +----------------------------------------------------------------+---------+----------------------------------------------+ + + .. note:: Accuracy cannot be guaranteed outside of device specifications, and results may vary by module. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------+ + | Characteristic | Value | + +=======================+===========================================+ + | Datatype | enums.AllowOutOfSpecificationUserSettings | + +-----------------------+-------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Allow Out Of Specification User Settings** + - C Attribute: **NIRFSG_ATTR_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS** + +amplitude_settling +------------------ + + .. py:attribute:: amplitude_settling + + Configures the amplitude settling accuracy in decibels. NI-RFSG waits until the RF power settles within the specified accuracy level after calling the :py:meth:`nirfsg.Session._initiate` method or :py:meth:`nirfsg.Session.wait_until_settled` method or prior to advancing to next step if using RF list mode. + + Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. + + PXI/PXIe-5650/5651/5652: This property is for NI internal use only. + + **Units**: dB + + **Default Value:** + + PXIe-5654: 4 + + PXIe-5654 with PXIe-5696 (ALC disabled): 4 + + PXIe-5654 with PXIe-5696 (ALC enabled): 0.2 + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.5 + + **Valid Values:** + + PXIe-5654: 1.5, 2, 4 + + PXIe-5654 with PXIe-5696 (ALC disabled): 1.5, 2, 4 + + PXIe-5654 with PXIe-5696 (ALC enabled): 0.2, 0.5 + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.01 to 1 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Amplitude Settling Times `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Amplitude Settling** + - C Attribute: **NIRFSG_ATTR_AMPLITUDE_SETTLING** + +amp_path +-------- + + .. py:attribute:: amp_path + + Specifies the amplification path to use. The low harmonic path provides greater second and third harmonic spurious response, and the high power path provides higher output power. + + NI-RFSG automatically sets the value of this property based on power and frequency settings. Setting this property overrides the value chosen by NI-RFSG. + + **Default Value:** :py:data:`~nirfsg.AmpPath.LOW_HARMONIC` + + **Supported Devices:** PXIe-5654 with PXIe-5696 + + **Related Topics** + + `Low Harmonic Path Versus High Power Path `_ + + **Defined Values**: + + +-----------------------------------------+----------------+-----------------------------------------------------------+ + | Name | Value | Description | + +=========================================+================+===========================================================+ + | :py:data:`~nirfsg.AmpPath.HIGH_POWER` | 16000 (0x3e80) | Sets the amplification path to use the high power path. | + +-----------------------------------------+----------------+-----------------------------------------------------------+ + | :py:data:`~nirfsg.AmpPath.LOW_HARMONIC` | 16001 (0x3e81) | Sets the amplification path to use the low harmonic path. | + +-----------------------------------------+----------------+-----------------------------------------------------------+ + + .. note:: Resetting this property reverts back to the default unset behavior. + + The following table lists the characteristics of this property. + + +-----------------------+---------------+ + | Characteristic | Value | + +=======================+===============+ + | Datatype | enums.AmpPath | + +-----------------------+---------------+ + | Permissions | read-write | + +-----------------------+---------------+ + | Repeated Capabilities | None | + +-----------------------+---------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Amp Path** + - C Attribute: **NIRFSG_ATTR_AMP_PATH** + +analog_modulation_am_sensitivity +-------------------------------- + + .. py:attribute:: analog_modulation_am_sensitivity + + Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. + + When using the PXIe-5654 with PXIe-5696, NI-RFSG may coerce AM sensitivity. Coercing the AM sensitivity prevents overpower conditions at the PXIe-5696 input. Read this property to determine the coerced value. + + **Default Value:** 100 + + **Valid Values:** 0 to 100 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Amplitude Modulation `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:AM Sensitivity** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_AM_SENSITIVITY** + +analog_modulation_fm_band +------------------------- + + .. py:attribute:: analog_modulation_fm_band + + Specifies the analog modulation frequency modulation (FM) band to use. Wideband FM allows for modulating signals higher than 100kHz. Narrowband FM allows for modulating lower frequency signals. + + **Default Value:** :py:data:`~nirfsg.AnalogModulationFmBand.WIDEBAND` + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Modulation `_ + + **Defined Values**: + + +------------------------------------------------------+----------------+--------------------------------------------+ + | Name | Value | Description | + +======================================================+================+============================================+ + | :py:data:`~nirfsg.AnalogModulationFmBand.NARROWBAND` | 17000 (0x4268) | Specifies narrowband frequency modulation. | + +------------------------------------------------------+----------------+--------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationFmBand.WIDEBAND` | 17001 (0x4269) | Specifies wideband frequency modulation. | + +------------------------------------------------------+----------------+--------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.AnalogModulationFmBand | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:FM Band** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_FM_BAND** + +analog_modulation_fm_narrowband_integrator +------------------------------------------ + + .. py:attribute:: analog_modulation_fm_narrowband_integrator + + Specifies the narrowband frequency modulation (FM) range to apply by sending the signal through an integrator. + + This property is valid only when you set the :py:attr:`nirfsg.Session.analog_modulation_type` property to :py:data:`~nirfsg.AnalogModulationType.FM` and the :py:attr:`nirfsg.Session.analog_modulation_fm_band` property to :py:data:`~nirfsg.AnalogModulationFmBand.NARROWBAND`. + + **Default Value:** :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ` + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Modulation `_ + + **Defined Values**: + + +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ + | Name | Value | Description | + +===============================================================================================+================+=============================================+ + | :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ` | 18000 (0x4650) | Specifies a range from 100Â Hz to 1Â kHz. | + +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_10_KILOHERTZ_TO_100_KILOHERTZ` | 18002 (0x4652) | Specifies a range from 10Â kHz to 100Â kHz. | + +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationFmNarrowbandIntegrator.RANGE_1_KILOHERTZ_TO_10_KILOHERTZ` | 18001 (0x4651) | Specifies a range from 1Â kHz to 10Â kHz. | + +-----------------------------------------------------------------------------------------------+----------------+---------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------------------+ + | Characteristic | Value | + +=======================+==============================================+ + | Datatype | enums.AnalogModulationFmNarrowbandIntegrator | + +-----------------------+----------------------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:FM Narrowband Integrator** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR** + +analog_modulation_fm_sensitivity +-------------------------------- + + .. py:attribute:: analog_modulation_fm_sensitivity + + Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. + + **Default Value:** 100 + + **Valid Values:** 0 to 100 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Modulation `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:FM Sensitivity** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_FM_SENSITIVITY** + +analog_modulation_pm_deviation +------------------------------ + + .. py:attribute:: analog_modulation_pm_deviation + + Specifies the `deviation `_ to use in phase modulation, in degrees. + + **Units**: degrees (°) + + **Default Value:** 90° + + **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5653 + + **Related Topics** + + `Modulation Schemes `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:PM Deviation (Degrees)** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_PM_DEVIATION** + +analog_modulation_pm_mode +------------------------- + + .. py:attribute:: analog_modulation_pm_mode + + Specifies the phase modulation (PM) mode to use. + + **Default Value:** :py:data:`~nirfsg.AnalogModulationPmMode.LOW_PHASE_NOISE` + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Phase Modulation `_ + + **Defined Values**: + + +-----------------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +===========================================================+================+===============================================================================================+ + | :py:data:`~nirfsg.AnalogModulationPmMode.HIGH_DEVIATION` | 19000 (0x4a38) | Specifies high deviation. High deviation comes at the expense of a higher phase noise. | + +-----------------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationPmMode.LOW_PHASE_NOISE` | 19001 (0x4a39) | Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. | + +-----------------------------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.AnalogModulationPmMode | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:PM Mode** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_PM_MODE** + +analog_modulation_pm_sensitivity +-------------------------------- + + .. py:attribute:: analog_modulation_pm_sensitivity + + Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. + + **Default Value:** 100 + + **Valid Values:** 0 to 100 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Phase Modulation `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:PM Sensitivity** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_PM_SENSITIVITY** + +analog_modulation_type +---------------------- + + .. py:attribute:: analog_modulation_type + + Specifies the analog modulation format to use. + + **Default Value:** :py:data:`~nirfsg.AnalogModulationType.NONE` + + **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Modulation `_ + + `PXI/PXIe-5650/5651/5652 Modulation Schemes `_ + + `PXIe-5654/5654 with PXIe-5696 Modulation Schemes `_ + + **Defined Values**: + + +----------------------------------------------+--------------+--------------------------------------------------+ + | Name | Value | Description | + +==============================================+==============+==================================================+ + | :py:data:`~nirfsg.AnalogModulationType.AM` | 2002 (0x7d2) | Specifies that the analog modulation type is AM. | + +----------------------------------------------+--------------+--------------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationType.FM` | 2000 (0x7d0) | Specifies that the analog modulation type is FM. | + +----------------------------------------------+--------------+--------------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationType.NONE` | 0 (0x0) | Disables analog modulation. | + +----------------------------------------------+--------------+--------------------------------------------------+ + | :py:data:`~nirfsg.AnalogModulationType.PM` | 2001 (0x7d1) | Specifies that the analog modulation type is PM. | + +----------------------------------------------+--------------+--------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.AnalogModulationType | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Analog:Modulation Type** + - C Attribute: **NIRFSG_ATTR_ANALOG_MODULATION_TYPE** + +arb_carrier_frequency +--------------------- + + .. py:attribute:: arb_carrier_frequency + + **Units**: hertz (Hz) + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a carrier frequency with a waveform. + Indicates the carrier frequency generated by the arbitrary waveform generator (AWG) module. The specified carrier frequency is related to the RF output as shown in the following equations: + + +-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Device | Equations | + +===============================================================================+===================================================================================================================================================================================================================================================================================================================================================================+ + | PXI-5610, PXI-5670/5671, PXIe-5672 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency* – 25 MHz | + +-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency*.Note that - the :py:attr:`nirfsg.Session.upconverter_center_frequency` property and the :py:attr:`nirfsg.Session.arb_carrier_frequency` property cannot be set at the same time. The only time the carrier frequency is nonzero on these devices is when in-band retuning is used. | + +-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: - Use this property to associate a carrier frequency with a waveform. + + - This property is read-only on the PXI-5670/5671 and PXIe-5672. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Arb Carrier Frequency (Hz)** + - C Attribute: **NIRFSG_ATTR_ARB_CARRIER_FREQUENCY** + +arb_digital_gain +---------------- + + .. py:attribute:: arb_digital_gain + + Specifies the digital gain, in decibels. The digital gain is applied to the waveform data after filtering. Use this property to adjust the output power of the device while keeping the analog path fixed. This may cause clipping, overflows, or quantization noise if used improperly. + + To set this property, the NI-RFSG device must be in the Configuration or Generation state. + + **Default Value:** 0 dB + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIRFSG_ATTR_ARB_DIGITAL_GAIN** + +arb_max_number_waveforms +------------------------ + + .. py:attribute:: arb_max_number_waveforms + + Returns the maximum number of waveforms the device can hold in memory. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Capabilities:Max Number Waveforms** + - C Attribute: **NIRFSG_ATTR_ARB_MAX_NUMBER_WAVEFORMS** + +arb_onboard_sample_clock_mode +----------------------------- + + .. py:attribute:: arb_onboard_sample_clock_mode + + Specifies the Sample Clock mode on the device. To set this property, the device must be in the Configuration state. + + PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.ArbOnboardSampleClockMode.DIVIDE_DOWN` is the only supported value for this device. + + **Default Values:** + + PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.ArbOnboardSampleClockMode.DIVIDE_DOWN` + + PXIe-5673/5673E: :py:data:`~nirfsg.ArbOnboardSampleClockMode.HIGH_RESOLUTION` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Clocking Modes `_ + + **Valid Values**: + + +--------------------------------------------------------------+--------------------------------------------------------------+ + | Name | Description | + +==============================================================+==============================================================+ + | :py:data:`~nirfsg.ArbOnboardSampleClockMode.HIGH_RESOLUTION` | Sample rates are generated by a high-resolution clock. | + +--------------------------------------------------------------+--------------------------------------------------------------+ + | :py:data:`~nirfsg.ArbOnboardSampleClockMode.DIVIDE_DOWN` | Sample rates are generated by dividing the source frequency. | + +--------------------------------------------------------------+--------------------------------------------------------------+ + + .. note:: Using the high resolution clock may result in increased phase noise. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.ArbOnboardSampleClockMode | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Arb Onboard Sample Clock Mode** + - C Attribute: **NIRFSG_ATTR_ARB_ONBOARD_SAMPLE_CLOCK_MODE** + +arb_pre_filter_gain +------------------- + + .. py:attribute:: arb_pre_filter_gain + + Specifies the AWG prefilter gain. The prefilter gain is applied to the waveform data before any other signal processing. Reduce this value to prevent overflow in the AWG interpolation filters. Other gains on the NI-RFSG device are automatically adjusted to compensate for nonunity AWG prefilter gain. The PXI-5671, PXIe-5672 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXIe-5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842 can be in either the Configuration or the Generation state to use this property. PXIe-5860 can only be in the Configuration state to use this property. + + On the PXI-5671, this property applies only when the :py:attr:`nirfsg.Session.iq_rate` property is set to a value less than or equal to 8.33MS/s. On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, this property is always applicable. + + **Units**: dB + + **Default Value:** 0dB + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Pre-filter Gain (dB)** + - C Attribute: **NIRFSG_ATTR_ARB_PRE_FILTER_GAIN** + +arb_sample_clock_rate +--------------------- + + .. py:attribute:: arb_sample_clock_rate + + Returns the rate of the Sample Clock on the device. + + **Units**: hertz (Hz) + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Arb Sample Clock Rate (Hz)** + - C Attribute: **NIRFSG_ATTR_ARB_SAMPLE_CLOCK_RATE** + +arb_sample_clock_source +----------------------- + + .. py:attribute:: arb_sample_clock_source + + Specifies the Sample Clock source for the device. To set this property, the NI-RFSG device must be in the Configuration state. + + PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: OnboardClock is the only supported value for this device. + + **Default Value:** OnboardClock + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Timing Configurations `_ + + **Possible Values**: + + +----------------+---------------------------------------------------------------+ + | Possible Value | Description | + +================+===============================================================+ + | "ClkIn" | Uses the external clock as the Sample Clock source. | + +----------------+---------------------------------------------------------------+ + | "OnboardClock" | Uses the AWG module onboard clock as the Sample Clock source. | + +----------------+---------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ArbSampleClockSource | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Arb Sample Clock Source** + - C Attribute: **NIRFSG_ATTR_ARB_SAMPLE_CLOCK_SOURCE** + +arb_selected_waveform +--------------------- + + .. py:attribute:: arb_selected_waveform + + Specifies the waveform in onboard memory to generate upon calling the :py:meth:`nirfsg.Session.Init` method when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. The :py:attr:`nirfsg.Session.arb_selected_waveform` property is ignored when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.SCRIPT` or :py:data:`~nirfsg.GenerationMode.CW`. To set the :py:attr:`nirfsg.Session.arb_selected_waveform` property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.select_arb_waveform` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Capabilities:Selected Waveform** + - C Attribute: **NIRFSG_ATTR_ARB_SELECTED_WAVEFORM** + +arb_temperature +--------------- + + .. py:attribute:: arb_temperature + + Returns the AWG module temperature in degrees Celsius. + + PXIe-5820/5840/5841/5842: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:AWG Temperature (Degrees C)** + - C Attribute: **NIRFSG_ATTR_ARB_TEMPERATURE** + +arb_waveform_quantum +-------------------- + + .. py:attribute:: arb_waveform_quantum + + Returns the waveform quantum for the device. The number of samples in a waveform must be an integer multiple of the waveform quantum. The other restrictions on the length of the waveform are the :py:attr:`nirfsg.Session.arb_waveform_size_min` and :py:attr:`nirfsg.Session.arb_waveform_size_max` arbitrary waveform sizes. + + PXI-5671, PXIe-5672: The value of this property depends on the I/Q rate. Set the :py:attr:`nirfsg.Session.iq_rate` property before reading this property. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Capabilities:Waveform Quantum** + - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_QUANTUM** + +arb_waveform_repeat_count +------------------------- + + .. py:attribute:: arb_waveform_repeat_count + + Specifies the repeat count of a waveform when you set the :py:attr:`nirfsg.Session.arb_waveform_repeat_count_is_finite` property to True. This property is valid only when you set the :py:attr:`nirfsg.Session.generation_mode` property to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** 1 + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Repeat Count** + - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_REPEAT_COUNT** + +arb_waveform_repeat_count_is_finite +----------------------------------- + + .. py:attribute:: arb_waveform_repeat_count_is_finite + + Specifies the repetition mode of a waveform when you set the :py:attr:`nirfsg.Session.generation_mode` property to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM`. If you set this property to True, the number of repetitions is determined by the :py:attr:`nirfsg.Session.arb_waveform_repeat_count` property. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------+-------------------------------------------------------------------+ + | Value | Description | + +=======+===================================================================+ + | True | Repeats the waveform a finite number of times. | + +-------+-------------------------------------------------------------------+ + | False | Repeats the waveform continuously until you abort the generation. | + +-------+-------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Repeat Count Is Finite** + - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_REPEAT_COUNT_IS_FINITE** + +arb_waveform_size_max +--------------------- + + .. py:attribute:: arb_waveform_size_max + + Returns the size of the largest waveform that is allowed. + + To read this property, the NI-RFSG device must be in the Configuration state. + + For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the :py:attr:`nirfsg.Session.iq_rate` before reading this property. For the PXIe-5673/5673E, the maximum waveform size is reduced to account for the amount of device memory currently used. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` + + + + .. note:: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Capabilities:Max Waveform Size** + - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_SIZE_MAX** + +arb_waveform_size_min +--------------------- + + .. py:attribute:: arb_waveform_size_min + + Returns the smallest allowable waveform size. For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the :py:attr:`nirfsg.Session.iq_rate` property before reading this property. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.query_arb_waveform_capabilities` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Capabilities:Min Waveform Size** + - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_SIZE_MIN** + +arb_waveform_software_scaling_factor +------------------------------------ + + .. py:attribute:: arb_waveform_software_scaling_factor + + Specifies how much to scale the data before writing it with the :py:meth:`nirfsg.Session.WriteArbWaveform` method. The resulting waveform must be smaller than 1.0 in complex magnitude. This property is supported only if you set the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. + + **Default Value:** 1.0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Spurious Performance `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Software Scaling Factor** + - C Attribute: **NIRFSG_ATTR_ARB_WAVEFORM_SOFTWARE_SCALING_FACTOR** + +attenuator_setting +------------------ + + .. py:attribute:: attenuator_setting + + Specifies the level of attenuation in the attenuator path. Setting this property overrides the value chosen by NI-RFSG. Not all power levels are achievable if you set this property. + + **Units**: dB + + **Valid Values**: 0dB to 110dB in steps of 10 + + **Supported Devices:** PXIe-5654 with PXIe-5696 + + + + .. note:: Resetting this property reverts back to the default unset behavior. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Attenuator Setting (dB)** + - C Attribute: **NIRFSG_ATTR_ATTENUATOR_SETTING** + +automatic_thermal_correction +---------------------------- + + .. py:attribute:: automatic_thermal_correction + + Enables or disables automatic thermal correction. When this property is enabled, changes to settings cause NI-RFSG to check whether the device temperature has changed and adjusts the settings as needed. When this property is disabled, you must explicitly call the :py:meth:`nirfsg.Session.perform_thermal_correction` method to adjust the device for temperature changes. + + **Default Value:** :py:data:`~nirfsg.AutomaticThermalCorrection.ENABLE` + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Temperature Monitoring `_ + + `Settling Times `_ + + **Defined Values**: + + +-------------------------------------------------------+---------+-------------------------------------------+ + | Name | Value | Description | + +=======================================================+=========+===========================================+ + | :py:data:`~nirfsg.AutomaticThermalCorrection.DISABLE` | 0 (0x0) | Automatic thermal correction is disabled. | + +-------------------------------------------------------+---------+-------------------------------------------+ + | :py:data:`~nirfsg.AutomaticThermalCorrection.ENABLE` | 1 (0x1) | Automatic thermal correction is enabled. | + +-------------------------------------------------------+---------+-------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.AutomaticThermalCorrection | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Automatic Thermal Correction** + - C Attribute: **NIRFSG_ATTR_AUTOMATIC_THERMAL_CORRECTION** + +auto_power_search +----------------- + + .. py:attribute:: auto_power_search + + Enables or disables automatic power search. When this property is enabled, a power search performs after the device is initiated, after output power is enabled, or when the frequency or power level changes while the device is generating. When this property is disabled, NI-RFSG does not perform a power search unless you call the :py:meth:`nirfsg.Session.perform_power_search` method. + + This property is ignored when the :py:attr:`nirfsg.Session.alc_control` property is enabled. + + PXIe-5654: :py:data:`~nirfsg.AutomaticPowerSearch.DISABLE` is the only supported value for this device. + + **Default Value:** + + PXIe-5654: :py:data:`~nirfsg.AutomaticPowerSearch.DISABLE` + + PXIe-5654 with PXIe-5696: :py:data:`~nirfsg.AutomaticPowerSearch.ENABLE` + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Power Search `_ + + **Defined Values**: + + +-------------------------------------------------+---------+----------------------------------+ + | Name | Value | Description | + +=================================================+=========+==================================+ + | :py:data:`~nirfsg.AutomaticPowerSearch.DISABLE` | 0 (0x0) | Disables automatic power search. | + +-------------------------------------------------+---------+----------------------------------+ + | :py:data:`~nirfsg.AutomaticPowerSearch.ENABLE` | 1 (0x1) | Enables automatic power search. | + +-------------------------------------------------+---------+----------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.AutomaticPowerSearch | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Automatic Power Search** + - C Attribute: **NIRFSG_ATTR_AUTO_POWER_SEARCH** + +available_paths +--------------- + + .. py:attribute:: available_paths + + Returns a list of the configurable paths available for use based on your instrument configuration. + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Available Paths** + - C Attribute: **NIRFSG_ATTR_AVAILABLE_PATHS** + +available_ports +--------------- + + .. py:attribute:: available_ports + + Returns a list of the ports available for use based on your instrument configuration. + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Available Ports** + - C Attribute: **NIRFSG_ATTR_AVAILABLE_PORTS** + +configuration_settled_event_terminal_name +----------------------------------------- + + .. py:attribute:: configuration_settled_event_terminal_name + + Returns the name of the fully qualified signal name as a string. + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Default Values**: + + PXIe-5654/5654 with PXIe-5696: /*ModuleName*/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ConfigurationSettledEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Configuration Settled Event Terminal Name** + - C Attribute: **NIRFSG_ATTR_CONFIGURATION_SETTLED_EVENT_TERMINAL_NAME** + +correction_temperature +---------------------- + + .. py:attribute:: correction_temperature + + Specifies the temperature, in degrees Celsius, to use for adjusting the device settings to correct for temperature changes. If you set this property, NI-RFSG uses the value you specify and therefore no longer uses the actual device temperature as the correction temperature. If you do not set this property, NI-RFSG checks the current device temperature in the Committed state and automatically sets the value of this property. + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: This property is read only. + + **Units**: Degrees Celsius + + **Supported Devices**: PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: - Resetting this property reverts back to the default unset behavior. + + - Use this property only when your application requires the same settings to be used every time, regardless of the temperature variation. In these cases, it is best to ensure that the temperature does not vary too much. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Correction Temperature** + - C Attribute: **NIRFSG_ATTR_CORRECTION_TEMPERATURE** + +deembedding_compensation_gain +----------------------------- + + .. py:attribute:: deembedding_compensation_gain + + Returns the de-embedding gain applied to compensate for the mismatch on the specified port. If de-embedding is enabled, NI-RFSG uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_compensation_gain` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.deembedding_compensation_gain` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | ports | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **De-embedding:Compensation Gain** + - C Attribute: **NIRFSG_ATTR_DEEMBEDDING_COMPENSATION_GAIN** + +deembedding_selected_table +-------------------------- + + .. py:attribute:: deembedding_selected_table + + Selects the de-embedding table to apply to the measurements on the specified port. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_string` method to specify the name of the port to configure for de-embedding. + + If de-embedding is enabled, NI-RFSG uses the specified table to remove the effects of the external network between the instrument and the DUT. + + Use the create deembedding sparameter table array method to create tables. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.deembedding_selected_table` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | ports | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **De-embedding:Selected Table** + - C Attribute: **NIRFSG_ATTR_DEEMBEDDING_SELECTED_TABLE** + +deembedding_type +---------------- + + .. py:attribute:: deembedding_type + + Specifies the type of de-embedding to apply to measurements on the specified port. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the port to configure for de-embedding. + + If you set this property to any value besides :py:data:`~nirfsg.DeembeddingType.NONE`, NI-RFSG adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. + + **Default Value**: :py:data:`~nirfsg.DeembeddingType.SCALAR` + + **Valid Values for PXIe-5830/5832/5840/5841** : :py:data:`~nirfsg.DeembeddingType.NONE` or :py:data:`~nirfsg.DeembeddingType.SCALAR` + + **Valid Values for PXIe-5842/5860** : :py:data:`~nirfsg.DeembeddingType.NONE` or :py:data:`~nirfsg.DeembeddingType.SCALAR` or :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_FLATNESS` or :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS` + + **Valid Values for PXIe-5831** :py:data:`~nirfsg.DeembeddingType.NONE`, :py:data:`~nirfsg.DeembeddingType.SCALAR`, or :py:data:`~nirfsg.DeembeddingType.VECTOR`. :py:data:`~nirfsg.DeembeddingType.VECTOR` is only supported for TRX Ports in a Semiconductor Test System (STS). + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | Name | Value | Description | + +=================================================================+================+===================================================================================+ + | :py:data:`~nirfsg.DeembeddingType.NONE` | 25000 (0x61a8) | De-embedding is not applied to the measurement. | + +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.DeembeddingType.SCALAR` | 25001 (0x61a9) | De-embeds the measurement using only the gain term. | + +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.DeembeddingType.VECTOR` | 25002 (0x61aa) | De-embeds the measurement using the gain term and the reflection term. | + +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_FLATNESS` | 25003 (0x61ab) | De-embeds the measurement using wideband amplitude flatness correction. | + +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS` | 25004 (0x61ac) | De-embeds the measurement using wideband amplitude and phase flatness correction. | + +-----------------------------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_type` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.deembedding_type` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.DeembeddingType | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | ports | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **De-embedding:Type** + - C Attribute: **NIRFSG_ATTR_DEEMBEDDING_TYPE** + +device_instantaneous_bandwidth +------------------------------ + + .. py:attribute:: device_instantaneous_bandwidth + + Specifies the bandwidth of the device. The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. + + The :py:attr:`nirfsg.Session.signal_bandwidth` centered at the :py:attr:`nirfsg.Session.frequency` must fit within the device instantaneous bandwidth, which is centered at the :py:attr:`nirfsg.Session.upconverter_center_frequency`. + + **Units**: Hz + + **Default Value**: N/A + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Device Instantaneous Bandwidth (Hz)** + - C Attribute: **NIRFSG_ATTR_DEVICE_INSTANTANEOUS_BANDWIDTH** + +device_temperature +------------------ + + .. py:attribute:: device_temperature + + Returns the device temperature. If the NI-RFSG session is controlling multiple devices, this property returns the temperature of the primary NI RF device. The NI-RFSG session is opened using the primary RF device name. + + Serial signals between the sensor and the system control unit could modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. + + PXIe-5644/5645/5646, PXIe-5820/5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + PXIe-5830/5831/5832: To use this property, you must first set the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to using the appropriate string for your instrument configuration. Setting the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Temperature Monitoring `_ + + `Thermal Shutdown `_ + + +----------------------------+--------------------------+-------------------------+ + | Hardware Module | TRX Port Type | Active Channel String | + +============================+==========================+=========================+ + | PXIe-3621/3622 | — | if or "" (empty string) | + +----------------------------+--------------------------+-------------------------+ + | PXIe-5820 | — | fpga | + +----------------------------+--------------------------+-------------------------+ + | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | + +----------------------------+--------------------------+-------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | + +----------------------------+--------------------------+-------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch1 | + +----------------------------+--------------------------+-------------------------+ + | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | + +----------------------------+--------------------------+-------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | + +----------------------------+--------------------------+-------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch1 | + +----------------------------+--------------------------+-------------------------+ + + + .. tip:: This property can be set/get on specific device_temperatures within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. + + Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` + + To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.device_temperature` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | float | + +-----------------------+---------------------+ + | Permissions | read only | + +-----------------------+---------------------+ + | Repeated Capabilities | device_temperatures | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Device Temperature (Degrees C)** + - C Attribute: **NIRFSG_ATTR_DEVICE_TEMPERATURE** + +digital_edge_script_trigger_edge +-------------------------------- + + .. py:attribute:: digital_edge_script_trigger_edge + + Specifies the active edge for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to digital edge. To set the :py:attr:`nirfsg.Session.digital_edge_script_trigger_edge` property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalEdgeEdge.RISING` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Edge Trigger `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_digital_edge_script_trigger` + + **Defined Values**: + + +---------------------------------------------------------+---------+-------------------------------------------------------------------------------+ + | Name | Value | Description | + +=========================================================+=========+===============================================================================+ + | :py:data:`~nirfsg.ScriptTriggerDigitalEdgeEdge.FALLING` | 1 (0x1) | Asserts the trigger when the signal transitions from high level to low level. | + +---------------------------------------------------------+---------+-------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerDigitalEdgeEdge.RISING` | 0 (0x0) | Asserts the trigger when the signal transitions from low level to high level. | + +---------------------------------------------------------+---------+-------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_edge` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------+ + | Characteristic | Value | + +=======================+====================================+ + | Datatype | enums.ScriptTriggerDigitalEdgeEdge | + +-----------------------+------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Digital Edge:Edge** + - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE** + +digital_edge_script_trigger_source +---------------------------------- + + .. py:attribute:: digital_edge_script_trigger_source + + Specifies the source terminal for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to digital edge. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_digital_edge_script_trigger` + + **Possible Values**: + + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=========================================================================================================================================+ + | "PFI0" | The trigger is received on PFI 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The trigger is received on PFI 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI2" | The trigger is received on PFI 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI3" | The trigger is received on PFI 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_source` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | str | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Digital Edge:Source** + - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE** + +digital_edge_start_trigger_edge +------------------------------- + + .. py:attribute:: digital_edge_start_trigger_edge + + Specifies the active edge for the Start Trigger. This property is used when the :py:attr:`nirfsg.Session.start_trigger_type` property is set to digital edge. To set the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property, the NI-RFSG device must be in the Configuration state. + + PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + **Default Value:** :py:data:`~nirfsg.StartTriggerDigitalEdgeEdge.RISING` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Digital Edge Trigger `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_digital_edge_start_trigger` + + **Defined Values**: + + +--------------------------------------------------------+---------+------------------------------------------------------------------+ + | Name | Value | Description | + +========================================================+=========+==================================================================+ + | :py:data:`~nirfsg.StartTriggerDigitalEdgeEdge.FALLING` | 1 (0x1) | Occurs when the signal transitions from high level to low level. | + +--------------------------------------------------------+---------+------------------------------------------------------------------+ + | :py:data:`~nirfsg.StartTriggerDigitalEdgeEdge.RISING` | 0 (0x0) | Occurs when the signal transitions from low level to high level. | + +--------------------------------------------------------+---------+------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------------+ + | Characteristic | Value | + +=======================+===================================+ + | Datatype | enums.StartTriggerDigitalEdgeEdge | + +-----------------------+-----------------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Digital Edge** + - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_EDGE** + +digital_edge_start_trigger_source +--------------------------------- + + .. py:attribute:: digital_edge_start_trigger_source + + Specifies the source terminal for the Start Trigger. This property is used when the :py:attr:`nirfsg.Session.start_trigger_type` property is set to digital edge. The :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property is not case-sensitive. To set the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, the NI-RFSG device must be in the Configuration state. + + PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_digital_edge_start_trigger` + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+========================================================================================================================================+ + | "PFI0" | The trigger is received on PFI 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The trigger is received on PFI 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI2" | The trigger is received on PFI 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI3" | The trigger is received on PFI 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarB" | The trigger is received on the PXI DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "TrigIn" | The trigger is received on the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Digital Edge:Source** + - C Attribute: **NIRFSG_ATTR_DIGITAL_EDGE_START_TRIGGER_SOURCE** + +digital_equalization_enabled +---------------------------- + + .. py:attribute:: digital_equalization_enabled + + When this property is enabled, NI-RFSG equalizes the waveform data to correct for variations in the response of the NI-RFSG device. Enabling digital equalization improves the modulation error rates (MER) and error vector magnitude (EVM) for signals with large bandwidths (>500 kHz), but it increases tuning times. + + On the PXI-5670/5671, equalization is performed in the software, so tuning time is increased. On the PXIe-5672, equalization is performed in the hardware so that there is no compromise in performance. + + This property applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`. To set this property, the NI-RFSG device must be in the Configuration state. + + PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.DigitalEqualizationEnabled.ENABLE` is the only supported value for this device. + + **Default Value:** + + PXI-5670/5671: :py:data:`~nirfsg.DigitalEqualizationEnabled.DISABLE` + + PXIe-5644/5645/5646, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.DigitalEqualizationEnabled.ENABLE` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Response and Software Equalization `_—Refer to this topic for more information about equalization performed in software. + + `Frequency Tuning Times `_ + + **Defined Values**: + + +-------------------------------------------------------+---------+-----------------------+ + | Name | Value | Description | + +=======================================================+=========+=======================+ + | :py:data:`~nirfsg.DigitalEqualizationEnabled.DISABLE` | 0 (0x0) | Filter is not applied | + +-------------------------------------------------------+---------+-----------------------+ + | :py:data:`~nirfsg.DigitalEqualizationEnabled.ENABLE` | 1 (0x1) | Filter is applied. | + +-------------------------------------------------------+---------+-----------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.DigitalEqualizationEnabled | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Digital Equalization Enabled** + - C Attribute: **NIRFSG_ATTR_DIGITAL_EQUALIZATION_ENABLED** + +digital_level_script_trigger_active_level +----------------------------------------- + + .. py:attribute:: digital_level_script_trigger_active_level + + Specifies the active level for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_LEVEL`. + + **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Level Trigger `_ + + **Defined Values**: + + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + | Name | Value | Description | + +==============================================================+===============+==================================================+ + | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` | 9000 (0x2328) | Trigger when the digital trigger signal is high. | + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.LOW` | 9001 (0x2329) | Trigger when the digital trigger signal is low. | + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_active_level` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_level_script_trigger_active_level` + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------------+ + | Characteristic | Value | + +=======================+============================================+ + | Datatype | enums.ScriptTriggerDigitalLevelActiveLevel | + +-----------------------+--------------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+--------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Digital Level:Active Level** + - C Attribute: **NIRFSG_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL** + +digital_level_script_trigger_source +----------------------------------- + + .. py:attribute:: digital_level_script_trigger_source + + Specifies the source terminal for the Script Trigger. This property is used when the :py:attr:`nirfsg.Session.script_trigger_type` property is set to :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_LEVEL`. The :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property is not case-sensitive. + + To set the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=========================================================================================================================================+ + | "PFI0" | The trigger is received on PFI 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The trigger is received on PFI 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI2" | The trigger is received on PFI 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI3" | The trigger is received on PFI 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_source` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_level_script_trigger_source` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | str | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Digital Level:Source** + - C Attribute: **NIRFSG_ATTR_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE** + +direct_download +--------------- + + .. py:attribute:: direct_download + + Specifies whether the :py:meth:`nirfsg.Session.WriteArbWaveform` method immediately writes waveforms to the device or copies the waveform to host memory for later download. NI-RFSG reads and validates this property when an arbitrary waveform is first allocated. + + For the PXI-5670, direct download is always disabled. For all other devices, direct download is always enabled. + + PXI-5671: To increase performance when using large waveforms, enable direct download. To maximize reconfigurability, disable direct download. + + Perform the following steps to enable direct download: + + 1. Set the I/Q rate to less than or equal to 8.33MS/s with the :py:attr:`nirfsg.Session.iq_rate` property. + + 2. Set the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. + + 3. Disable the :py:attr:`nirfsg.Session.iq_swap_enabled` property. + + 4. Disable the :py:attr:`nirfsg.Session.digital_equalization_enabled` property. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +===============================================+===========+=========================================================================================================================================+ + | :py:data:`~nirfsg.DirectDownload.DISABLE` | 0 (0x0) | The RF In local oscillator signal is not present at the front panel LO OUT connector. | + +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.DirectDownload.ENABLE` | 1 (0x1) | The RF In local oscillator signal is present at the front panel LO OUT connector. | + +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.DirectDownload.UNSPECIFIED` | -2 (-0x2) | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | + +-----------------------------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.DirectDownload | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Data Transfer:Direct Download** + - C Attribute: **NIRFSG_ATTR_DIRECT_DOWNLOAD** + +done_event_terminal_name +------------------------ + + .. py:attribute:: done_event_terminal_name + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/DoneEvent, where *AWGName* is the name of your associated AWG module in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841: /*ModuleName*/ao/0/DoneEvent, where *ModuleName* is the name of your device in MAX. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done Event Terminal Name** + - C Attribute: **NIRFSG_ATTR_DONE_EVENT_TERMINAL_NAME** + +events_delay +------------ + + .. py:attribute:: events_delay + + Specifies the delay, in seconds, applied to the Started Event, Done Event, and all Marker Events with respect to the analog output of the RF signal generator. To set this property, the NI-RFSG device must be in the Configuration or Generation state. + + By default, markers and events are delayed to align with the waveform data generated from the device. This property adds an additional delay to markers and events. Use this property to adjust the time delay between events and the corresponding data. + + **Units:** Seconds + + **Valid Values:** + + PXIe-5644/5645: -1.217 μs to 67.050 μs + + PXIe-5646: -0.896 μs to 64.640 μs + + PXIe-5820/5830/5831/5832/5840/5841/5842: 0 μs to 3.276 μs + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Events `_ + + + + .. note:: If you decrease the event delay during generation, some markers may be dropped. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Events:Events Delay** + - C Attribute: **NIRFSG_ATTR_EVENTS_DELAY** + +exported_configuration_settled_event_output_terminal +---------------------------------------------------- + + .. py:attribute:: exported_configuration_settled_event_output_terminal + + Specifies the destination terminal for exporting the Configuration Settled event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+====================================================================================================================+ + | "" | The signal is not exported. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5840/5841/5842. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "TrigOut" | TRIG IN/OUT terminal. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Configuration Settled Event Export Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_CONFIGURATION_SETTLED_EVENT_OUTPUT_TERMINAL** + +exported_done_event_output_terminal +----------------------------------- + + .. py:attribute:: exported_done_event_output_terminal + + Specifies the destination terminal for exporting the Done event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Posible Value | Description | + +===============+=================================================================================================================================+ + | "" | The signal is not exported. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Done Event Export Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL** + +exported_marker_event_output_terminal +------------------------------------- + + .. py:attribute:: exported_marker_event_output_terminal + + Specifies the destination terminal for exporting the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Marker Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].exported_marker_event_output_terminal` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.exported_marker_event_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | markers | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_MARKER_EVENT_OUTPUT_TERMINAL** + +exported_pulse_modulation_event_active_level +-------------------------------------------- + + .. py:attribute:: exported_pulse_modulation_event_active_level + + Specifies the active level of the exported Pulse Modulation Event. When `property pulse modulation enabled` is Enabled, `pulse modulation active level` is `active high`, `exported pulse modulation event output terminal` is `PulseOut`, and this property is `active high`, then the Pulse Modulation Event will transition from Low to High after the the Pulse In signal is set to logic high, and the RF Output has settled. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` + + **Supported Devices:** PXIe-5842 + + **Defined Values**: + + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + | Name | Value | Description | + +==============================================================+===============+==================================================+ + | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` | 9000 (0x2328) | Trigger when the digital trigger signal is high. | + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.LOW` | 9001 (0x2329) | Trigger when the digital trigger signal is low. | + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------------+ + | Characteristic | Value | + +=======================+============================================+ + | Datatype | enums.ScriptTriggerDigitalLevelActiveLevel | + +-----------------------+--------------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Pulse Modulation:Exported Pulse Modulation Event Active Level** + - C Attribute: **NIRFSG_ATTR_EXPORTED_PULSE_MODULATION_EVENT_ACTIVE_LEVEL** + +exported_pulse_modulation_event_output_terminal +----------------------------------------------- + + .. py:attribute:: exported_pulse_modulation_event_output_terminal + + Specifies the destination terminal for exporting the Pulse Modulation Event. The Pulse Modulation Event tracks the RF Envelope when Pulse Modulation is Enabled. If this property is set to a value other than `do not export str`, calling NI-RFSG Commit will cause the output terminal to be pulled to the logic level that is the inverse of `exported pulse modulation event active level`. You can tri-state this terminal by setting this property to `do not export str` or by calling `niRFSG Reset`. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** PulseOut + + **Supported Devices:** PXIe-5842 + + **Possible Values**: + + +----------------+---------------------------------------------------------------------+ + | Possible Value | Description | + +================+=====================================================================+ + | "" | Pulse modulation video signal is not exported. | + +----------------+---------------------------------------------------------------------+ + | "PulseOut" | Export the pulse modulation video signal on the pulse out terminal. | + +----------------+---------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------+ + | Characteristic | Value | + +=======================+=====================================+ + | Datatype | enums.PulseModulationOutputTerminal | + +-----------------------+-------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Pulse Modulation:Exported Pulse Modulation Event Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_PULSE_MODULATION_EVENT_OUTPUT_TERMINAL** + +exported_ref_clock_output_terminal +---------------------------------- + + .. py:attribute:: exported_ref_clock_output_terminal + + Specifies the destination terminal for exporting the Reference Clock on the RF signal generators. To set this property, the NI-RFSG device must be in the Configuration state. + + **Possible Values**: + + Possible Value: Description + + "" :The Reference Clock signal is not exported. + + "RefOut" :Exports the Reference Clock signal to the REF OUT connector of the device. + + "RefOut2" :Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. + + "ClkOut" :Exports the Reference Clock signal to the CLK OUT connector of the device. + + **Default Value:** '""' + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Interconnecting Multiple NI 5673E Modules `_ + + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | Supported devices | + +================+============================================================================================+=======================================================================================================================================================================+ + | "ClkOut" | Exports the Reference Clock signal to the CLK OUT connector of the device. | Supported on PXIe-5673, 5673E | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "" | The Reference Clock signal is not exported. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5652, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5652 (See Note) | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefOut" | Exports the Reference Clock signal to the REF OUT connector of the device. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5653, 5653, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5653, | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefOut2" | Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. | Supported on PXIe-5650/5651/5652, 5654, 5673E, PXIe-5654 with PXIe-5696 | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: The RefOut2 output terminal value is valid for only the PXIe-5650/5651/5652, not the PXI-5650/5651/5652. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------------+ + | Characteristic | Value | + +=======================+==========================================+ + | Datatype | enums.ReferenceClockExportOutputTerminal | + +-----------------------+------------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Reference Clock Export Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL** + +exported_ref_clock_rate +----------------------- + + .. py:attribute:: exported_ref_clock_rate + + Specifies the Reference Clock Rate, in Hz, of the signal sent to the Reference Clock Export Output Terminal. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** 10MHz + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------+-------------------------------------+ + | Value | Description | + +==============+=====================================+ + | 10000000.0 | Uses a 10MHz Reference Clock rate. | + +--------------+-------------------------------------+ + | 100000000.0 | Uses a 100MHz Reference Clock rate. | + +--------------+-------------------------------------+ + | 1000000000.0 | Uses a 1GHz Reference Clock rate. | + +--------------+-------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Reference Clock Exported Rate (Hz)** + - C Attribute: **NIRFSG_ATTR_EXPORTED_REF_CLOCK_RATE** + +exported_script_trigger_output_terminal +--------------------------------------- + + .. py:attribute:: exported_script_trigger_output_terminal + + Specifies the destination terminal for exporting the Script Trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ —Refer to this topic for information about trigger delay. + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.exported_script_trigger_output_terminal` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | str | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Export Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL** + +exported_started_event_output_terminal +-------------------------------------- + + .. py:attribute:: exported_started_event_output_terminal + + Specifies the destination terminal for exporting the Started event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+========================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Started Event Export Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_STARTED_EVENT_OUTPUT_TERMINAL** + +exported_start_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_start_trigger_output_terminal + + Specifies the destination terminal for exporting the Start Trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+========================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "TrigOut" | The signal is exported to the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Export Output Terminal** + - C Attribute: **NIRFSG_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** + +external_calibration_recommended_interval +----------------------------------------- + + .. py:attribute:: external_calibration_recommended_interval + + Returns the recommended interval between each external calibration of the device. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+--------------------+ + | Characteristic | Value | + +=======================+====================+ + | Datatype | hightime.timedelta | + +-----------------------+--------------------+ + | Permissions | read only | + +-----------------------+--------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **External Calibration:Recommended Interval** + - C Attribute: **NIRFSG_ATTR_EXTERNAL_CALIBRATION_RECOMMENDED_INTERVAL** + +external_calibration_temperature +-------------------------------- + + .. py:attribute:: external_calibration_temperature + + Returns the temperature of the device at the time of the last external calibration. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **External Calibration:Last External Calibration Temperature** + - C Attribute: **NIRFSG_ATTR_EXTERNAL_CALIBRATION_TEMPERATURE** + +external_gain +------------- + + .. py:attribute:: external_gain + + Specifies the external amplification or attenuation, if any, between the RF signal generator and the device under test. + + Positive values for this property represent amplification, and negative values for this property represent attenuation. + + **Valid Values:** -INF dB to +INF dB + + **Default Value:** 0dB + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: - Setting this property adjusts the actual device output power to compensate for any amplification or attenuation between the RF signal generator and the device under test. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:External Gain (dB)** + - C Attribute: **NIRFSG_ATTR_EXTERNAL_GAIN** + +fast_tuning_option +------------------ + + .. py:attribute:: fast_tuning_option + + Returns whether the NI RF signal generator has the fast tuning option available. + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Tuning Times for 5654 `_ + + **Defined Values**: + + +-------+------------------------------------------------------------+ + | Value | Description | + +=======+============================================================+ + | True | The RF signal generator has the fast 100 µs tuning option. | + +-------+------------------------------------------------------------+ + | False | The RF signal generator has the 1 ms tuning option. | + +-------+------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Options:Fast Tuning Option** + - C Attribute: **NIRFSG_ATTR_FAST_TUNING_OPTION** + +fixed_group_delay_across_ports +------------------------------ + + .. py:attribute:: fixed_group_delay_across_ports + + Specifies a list of ports for which to fix the group delay. + + + **Supported Devices:** PXIe-5831/5832 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read-write | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Fixed Group Delay Across Ports** + - C Attribute: **NIRFSG_ATTR_FIXED_GROUP_DELAY_ACROSS_PORTS** + +fpga_bitfile_path +----------------- + + .. py:attribute:: fpga_bitfile_path + + Returns a string containing the path to the location of the current NI-RFSG instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the :py:meth:`nirfsg.Session.__init__` method. + + NI-RFSG instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the vector signal transceiver FPGA while maintaining the functionality of the NI-RFSG instrument driver. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver FPGA Extensions `_ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Device Characteristics:FPGA Bitfile Path** + - C Attribute: **NIRFSG_ATTR_FPGA_BITFILE_PATH** + +fpga_target_name +---------------- + + .. py:attribute:: fpga_target_name + + Returns a string that contains the name of the FPGA target being used. This name can be used with the RIO open session to open a reference to the FPGA. + + This property is channel dependent if multiple FPGA targets are supported. + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:FPGA Target Name** + - C Attribute: **NIRFSG_ATTR_FPGA_TARGET_NAME** + +fpga_temperature +---------------- + + .. py:attribute:: fpga_temperature + + Returns the FPGA temperature in degrees Celsius. + + Serial signals between the sensor and the system control unit can potentially modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:FPGA Temperature (Degrees C)** + - C Attribute: **NIRFSG_ATTR_FPGA_TEMPERATURE** + +frequency +--------- + + .. py:attribute:: frequency + + Specifies the frequency of the generated RF signal. For arbitrary waveform generation, this property specifies the center frequency of the signal. + + The PXI-5670/5671, PXIe-5672, PXIe-5820, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. + + **Units**: hertz (Hz) + + **Defined Values**: + Refer to the specifications document for your device allowable frequency settings. + + **Default Value:** + + PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E: 100MHz + + PXIe-5653: 4GHz + + PXIe-5820: 0Hz + + PXIe-5830/5831/5832: 6.5 GHz + + PXIe-5840/5841/5860, PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options): 1GHz + + PXIe-5842 (4 GHz bandwidth option) using the Standard personality: 1GHz + + PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: 6.5GHz + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.ConfigureRf` + + + + .. note:: For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Frequency (Hz)** + - C Attribute: **NIRFSG_ATTR_FREQUENCY** + +frequency_settling +------------------ + + .. py:attribute:: frequency_settling + + Specifies the frequency settling time. Interpretation of this value depends on the :py:attr:`nirfsg.Session.frequency_settling_units` property. + + **Valid Values:** + + The valid values for this property depend on the :py:attr:`nirfsg.Session.frequency_settling_units` property. + + + + **Default Value**: 1.0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Settling Times `_ + + `Events `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Frequency Settling** + - C Attribute: **NIRFSG_ATTR_FREQUENCY_SETTLING** + +frequency_settling_units +------------------------ + + .. py:attribute:: frequency_settling_units + + Specifies the interpretation of the value passed to the :py:attr:`nirfsg.Session.frequency_settling` property. + + PXIe-5650/5651/5652/5653, PXIe-5673E: When the :py:attr:`nirfsg.Session.ACTIVE_CONFIGURATION_LIST` property is set to a valid list name, the :py:attr:`nirfsg.Session.frequency_settling_units` property supports only :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO` as a valid value. + + PXIe-5654/5654 with PXIe-5696: The :py:attr:`nirfsg.Session.frequency_settling_units` property supports only :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO` and :py:data:`~nirfsg.FrequencySettlingUnits.PPM` as valid values. + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Default Value**: :py:data:`~nirfsg.FrequencySettlingUnits.PPM` + + **Related Topics** + + `Events `_ + + **Defined Values**: + + +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===========================================================+=================================================================================================================+ + | :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_LOCK` | Specifies the time to wait after the frequency PLL locks. | + +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO` | Specifies the time to wait after all writes occur to change the frequency. | + +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.FrequencySettlingUnits.PPM` | Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). | + +-----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + + .. note:: If you set this property to :py:data:`~nirfsg.FrequencySettlingUnits.TIME_AFTER_IO`, the definition of settled for the Configuration Settled event changes. + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.FrequencySettlingUnits | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Frequency Settling Units** + - C Attribute: **NIRFSG_ATTR_FREQUENCY_SETTLING_UNITS** + +generation_mode +--------------- + + .. py:attribute:: generation_mode + + Specifies whether to generate a continuous wave (CW) signal, the arbitrary waveform specified by the :py:attr:`nirfsg.Session.arb_selected_waveform` property, or the script specified by the :py:attr:`nirfsg.Session.selected_script` property, upon calling the :py:meth:`nirfsg.Session._initiate` method. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.GenerationMode.CW` + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696 (CW support only), PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + `Scripting Instructions `_—Refer to this topic for more information about scripting. + + **Defined Values**: + + +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +================================================+==============+==================================================================================================================================================+ + | :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` | 1001 (0x3e9) | Configures the RF signal generator to generate the arbitrary waveform specified by the :py:attr:`nirfsg.Session.arb_selected_waveform` property. | + +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.GenerationMode.CW` | 1000 (0x3e8) | Configures the RF signal generator to generate a CW signal. | + +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.GenerationMode.SCRIPT` | 1002 (0x3ea) | Configures the RF signal generator to generate arbitrary waveforms as directed by the :py:attr:`nirfsg.Session.selected_script` property.. | + +------------------------------------------------+--------------+--------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.GenerationMode | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Generation Mode** + - C Attribute: **NIRFSG_ATTR_GENERATION_MODE** + +group_capabilities +------------------ + + .. py:attribute:: group_capabilities + + Returns a list of class-extension groups that NI-RFSG implements. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Class Group Capabilities** + - C Attribute: **NIRFSG_ATTR_GROUP_CAPABILITIES** + +host_dma_buffer_size +-------------------- + + .. py:attribute:: host_dma_buffer_size + + Specifies the size of the DMA buffer in computer memory, in bytes. To set this property, the NI-RFSG device must be in the Configuration state. + + A sufficiently large host DMA buffer improves performance by allowing large writes to be transferred more efficiently. + + **Units:** bytes + + **Default Value:** 8MB + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Data Transfer:Advanced:Host DMA Buffer Size** + - C Attribute: **NIRFSG_ATTR_HOST_DMA_BUFFER_SIZE** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + Returns a string that contains the firmware revision information for the NI-RFSG device you are currently using. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** + - C Attribute: **NIRFSG_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + Returns a string that contains the name of the manufacturer of the NI-RFSG device you are currently using. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** + - C Attribute: **NIRFSG_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + Returns a string that contains the model number or name of the NI-RFSG device that you are currently using. For drivers that support more than one device, this property returns a comma-separated list of supported devices. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** + - C Attribute: **NIRFSG_ATTR_INSTRUMENT_MODEL** + +interpolation_delay +------------------- + + .. py:attribute:: interpolation_delay + + Specifies the delay, in seconds, to apply to the I/Q waveform. To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** Seconds + + **Valid Values:** Plus or minus half of one I/Q sample period + + **Supported Devices:** PXIe-5644/5645/5646 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Interpolation Delay** + - C Attribute: **NIRFSG_ATTR_INTERPOLATION_DELAY** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Returns a string that contains the resource name NI-RFSG uses to identify the physical device. If you initialize NI-RFSG with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. If you initialize NI-RFSG with the resource name, this property contains that value. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** + - C Attribute: **NIRFSG_ATTR_IO_RESOURCE_DESCRIPTOR** + +iq_gain_imbalance +----------------- + + .. py:attribute:: iq_gain_imbalance + + Specifies the gain imbalance of the I/Q modulator (I versus Q). + + Gain imbalance is calculated with the following equation: + + **Units**: dB + + **Valid Values:**-6dB to 6dB + + **Default Value:** 0dB + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Impairment Calibration `_ + + `Spurious Performance `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **IQ Impairment:Gain Imbalance (dB)** + - C Attribute: **NIRFSG_ATTR_IQ_GAIN_IMBALANCE** + +iq_impairment_enabled +--------------------- + + .. py:attribute:: iq_impairment_enabled + + Enables or disables I/Q impairment. The :py:attr:`nirfsg.Session.iq_i_offset`, :py:attr:`nirfsg.Session.iq_q_offset`, :py:attr:`nirfsg.Session.iq_gain_imbalance`, and :py:attr:`nirfsg.Session.iq_skew` properties are ignored when the :py:attr:`nirfsg.Session.iq_impairment_enabled` property is disabled. + + **Default Value:** True + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------+-----------------------------+ + | Value | Description | + +=======+=============================+ + | True | I/Q impairment is enabled. | + +-------+-----------------------------+ + | False | I/Q impairment is disabled. | + +-------+-----------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **IQ Impairment:Enabled** + - C Attribute: **NIRFSG_ATTR_IQ_IMPAIRMENT_ENABLED** + +iq_i_offset +----------- + + .. py:attribute:: iq_i_offset + + When using a National Instruments AWG module or vector signal transceiver (VST), this property specifies the I-signal DC offset. Units are either percent (%) or volts (V), depending on the :py:attr:`nirfsg.Session.iq_offset_units` property setting. + + PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), this property is read-only and indicates the I/Q modulator I-offset. Units are volts, as specified by the :py:attr:`nirfsg.Session.iq_offset_units` property. + + **Valid Values:**-100 to 100% or -0.2V to 0.2V + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Impairment Calibration `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **IQ Impairment:I Offset** + - C Attribute: **NIRFSG_ATTR_IQ_I_OFFSET** + +iq_offset_units +--------------- + + .. py:attribute:: iq_offset_units + + Specifies the units of the :py:attr:`nirfsg.Session.iq_i_offset` property and :py:attr:`nirfsg.Session.iq_q_offset` property. Offset units are either percent or volts. + + The AWG or VST offset is the specified percentage of the AWG or VST peak power level when the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.PERCENT`. Given perfect carrier leakage suppression, the following equation is satisfied + + + or equivalently + + If the :py:attr:`nirfsg.Session.iq_i_offset` property is set to 100%, :py:attr:`nirfsg.Session.iq_q_offset` property is set to 0%, and :py:attr:`nirfsg.Session.power_level` property set to 0 dBm, the desired RF signal is at 0 dBm and the carrier leakage is also at 0 dBm. + + The AWG or VST peak power level changes when settings change in other properties such as the :py:attr:`nirfsg.Session.power_level`, :py:attr:`nirfsg.Session.frequency`, :py:attr:`nirfsg.Session.iq_skew`, :py:attr:`nirfsg.Session.iq_gain_imbalance` and :py:attr:`nirfsg.Session.arb_pre_filter_gain` properties. When the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.PERCENT`, the actual AWG or VST offset changes as the AWG or VST peak power level changes to satisfy the preceding equations. These changes are useful if you are intentionally adding carrier leakage to test the tolerance of a receiver. When the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.PERCENT`, the carrier leakage, in dBc, remains at a consistent level. + + If you are trying to eliminate residual carrier leakage due to calibration inaccuracies or drift, set the :py:attr:`nirfsg.Session.iq_offset_units` property to :py:data:`~nirfsg.OffsetUnits.VOLTS`. Offset correction voltage is applied to the I/Q modulator or VST, regardless of changes to the AWG or VST peak power level. + + **Default Value**: :py:data:`~nirfsg.OffsetUnits.PERCENT` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +========================================+==========================================================================================================================+ + | :py:data:`~nirfsg.OffsetUnits.PERCENT` | Specifies the :py:attr:`nirfsg.Session.iq_i_offset` and :py:attr:`nirfsg.Session.iq_q_offset` property units as percent. | + +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.OffsetUnits.VOLTS` | Specifies the :py:attr:`nirfsg.Session.iq_i_offset` and :py:attr:`nirfsg.Session.iq_q_offset` property units as volts. | + +----------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ + + .. note:: For any devices except PXIe-5820, if the :py:attr:`nirfsg.Session.iq_offset_units` property is set to :py:data:`~nirfsg.OffsetUnits.VOLTS`, a 0.1 I offset results in a 0.1 V offset in the output. For PXIe-5820 devices, 0.1 I offset results in a 10% offset in the output. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.OffsetUnits | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **IQ Impairment:Offset Units** + - C Attribute: **NIRFSG_ATTR_IQ_OFFSET_UNITS** + +iq_out_port_carrier_frequency +----------------------------- + + .. py:attribute:: iq_out_port_carrier_frequency + + Specifies the frequency of the I/Q OUT port signal. The onboard signal processing (OSP) applies the specified frequency shift to the I/Q data before the data is sent to the digital-to-analog converter (DAC). To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** hertz (Hz) + + **Valid Values:** + + PXIe-5645: -60MHz to 60MHz + + PXIe-5820: -500MHz to 500MHz + + **Supported Devices:** PXIe-5645, PXIe-5820 + + + + .. note:: - For the PXIe-5820, NI recommends using the :py:attr:`nirfsg.Session.frequency` property. + + - For the PXIe-5645, this property is ignored if you are using the RF ports. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Carrier Frequency** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_CARRIER_FREQUENCY** + +iq_out_port_common_mode_offset +------------------------------ + + .. py:attribute:: iq_out_port_common_mode_offset + + Specifies the common-mode offset applied to the signals generated at each differential output terminal. This property applies only when you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`. Common-mode offset shifts both positive and negative terminals in the same direction. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** Volts + + **Valid Values:** + + PXIe-5645: -0.8V to 0.8V if you set the :py:attr:`nirfsg.Session.iq_out_port_load_impedance` property to 50 Ω. The valid values are -1.2V to 1.2V if you set the :py:attr:`nirfsg.Session.iq_out_port_load_impedance` property to 100 Ω. + + PXIe-5820: -0.25V to 1.5V + + **Supported Devices:** PXIe-5645, PXIe-5820 + + + + .. note:: - For the PXIe-5645, this property is ignored if you are using the RF ports. + + - The valid range is dependent on the load impedance. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_common_mode_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_common_mode_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Common Mode Offset** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_COMMON_MODE_OFFSET** + +iq_out_port_level +----------------- + + .. py:attribute:: iq_out_port_level + + Specifies the amplitude of the generated signal in volts, peak-to-peak (V). For example, if you set this property to 1.0, the output signal ranges from -0.5 volts to 0.5 volts. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + To set this property, the NI-RFSG device must be in the Configuration state. + + Refer to the specifications document for your device for allowable output levels. + + **Units:** Volts, peak-to-peak (V :sub:`pk-pk` ) + + **Valid Values:** + + PXIe-5645: 1V :sub:`pk-pk` maximum if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`, and 0.5V :sub:`pk-pk` + + maximum if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`. + + PXIe-5820: 3.4V :sub:`pk-pk` maximum for signal bandwidth less than 160MHz, and 2V :sub:`pk-pk` + + maximum for signal bandwidth greater than 160MHz. + + **Default Value:** 0.5volts + + **Supported Devices:** PXIe-5645, PXIe-5820 + + + + .. note:: - For the PXIe-5645, this property is ignored if you are using the RF ports. + + - The valid values are only applicable when you set the :py:attr:`nirfsg.Session.iq_out_port_load_impedance` property to 50 Ω and when you set the :py:attr:`nirfsg.Session.iq_out_port_offset` property to 0. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Level** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_LEVEL** + +iq_out_port_load_impedance +-------------------------- + + .. py:attribute:: iq_out_port_load_impedance + + Specifies the load impedance connected to the I/Q OUT port. To set this property, the NI-RFSG device must be in the Configuration state. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + **Units:** Ohms + + **Valid Values:** Any value greater than 0. Values greater than or equal to 1 megaohms (MΩ) are interpreted as high impedance. + + **Default Value:** 50 Ω if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`, and 100 Ω if you set the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`. + + **Supported Devices:** PXIe-5645, PXIe-5820 + + + + .. note:: For the PXIe-5645, this property is ignored if you are using the RF ports. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_load_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_load_impedance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Load Impedance** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_LOAD_IMPEDANCE** + +iq_out_port_offset +------------------ + + .. py:attribute:: iq_out_port_offset + + Specifies the value, in volts, that the signal generator adds to the arbitrary waveform data. To set this property, the NI-RFSG device must be in the Configuration state. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + PXIe-5645: The waveform may be scaled in DSP prior to adding offset and the device state may be changed in order to accommodate the requested offset. + + PXIe-5820: The waveform is not automatically scaled in DSP. To prevent DSP overflows, use the :py:attr:`nirfsg.Session.arb_pre_filter_gain` property to scale the waveform to provide additional headroom for offsets. + + **Units:** Volts + + **Supported Devices:** PXIe-5645, PXIe-5820 + + + + .. note:: For the PXIe-5645, this property is ignored if you are using the RF ports. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Offset** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_OFFSET** + +iq_out_port_temperature +----------------------- + + .. py:attribute:: iq_out_port_temperature + + Returns the temperature, in degrees Celsius, of the I/Q Out circuitry on the device. + + **Units:** Degrees Celsius + + **Supported Devices:** PXIe-5645, PXIe-5820 + + + + .. note:: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Temperature (Degrees C)** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_TEMPERATURE** + +iq_out_port_terminal_configuration +---------------------------------- + + .. py:attribute:: iq_out_port_terminal_configuration + + Specifies whether to use the I/Q OUT port for differential configuration or single-ended configuration. If you set this property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`, you must terminate the negative I and Q output connectors with a 50 Ohm termination. + + If you set this property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED`, the positive I and Q connectors generate the resulting waveform. If you set this property to :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`, both the positive and negative I and Q connectors generate the resulting waveform. + + To use this property, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL` + + PXIe-5820: The only valid value for this property is :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL`. + + **Supported Devices:** PXIe-5645, PXIe-5820 + + **Related Topics** + + `Differential and Single-Ended Operation (I/O Interface) `_ + + **Defined Values**: + + +----------------------------------------------------------------+----------------+--------------------------------------------------+ + | Name | Value | Description | + +================================================================+================+==================================================+ + | :py:data:`~nirfsg.IQOutPortTerminalConfiguration.DIFFERENTIAL` | 15000 (0x3a98) | Sets the terminal configuration to differential. | + +----------------------------------------------------------------+----------------+--------------------------------------------------+ + | :py:data:`~nirfsg.IQOutPortTerminalConfiguration.SINGLE_ENDED` | 15001 (0x3a99) | Sets the terminal configuration to single-ended. | + +----------------------------------------------------------------+----------------+--------------------------------------------------+ + + .. note:: For the PXIe-5645, this property is ignored if you are using the RF ports. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_terminal_configuration` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_terminal_configuration` + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------+ + | Characteristic | Value | + +=======================+======================================+ + | Datatype | enums.IQOutPortTerminalConfiguration | + +-----------------------+--------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+--------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:IQ Out Port:Terminal Configuration** + - C Attribute: **NIRFSG_ATTR_IQ_OUT_PORT_TERMINAL_CONFIGURATION** + +iq_q_offset +----------- + + .. py:attribute:: iq_q_offset + + When using a National Instruments AWG module or VST device, this property specifies the Q-signal DC offset. Units are either percent (%) or volts (V), depending on the :py:attr:`nirfsg.Session.iq_offset_units` property setting. + PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), the :py:attr:`nirfsg.Session.iq_q_offset` property is read-only and indicates the I/Q modulator Q-offset. Units are volts, as indicated by the :py:attr:`nirfsg.Session.iq_offset_units` property. + **Valid Values**: -100% to 100% or -0.2V to 0.2V + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + **Related Topics** + `Impairment Calibration `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **IQ Impairment:Q Offset** + - C Attribute: **NIRFSG_ATTR_IQ_Q_OFFSET** + +iq_rate +------- + + .. py:attribute:: iq_rate + + This property specifies the I/Q rate of the arbitrary waveform. The I/Q rate is coerced to a value the hardware can achieve. Read this value back after setting it to see the actual I/Q rate. NI-RFSG internally uses an FIR filter with flat response up to (0.4 × IQ rate). Given a desired signal with the maximum frequency content *f*, sample the signal at an I/Q rate greater than or equal to ( *f*/0.4). + + This property applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`. + + To set this property, the NI-RFSG device must be in the Configuration state. + + Setting this property to 50 MS/s on the PXI-5670/5671 and PXIe-5672 has the following implications: + - NI-RFSG is forced to place the carrier frequency at 18 MHz ± 1 MHz to avoid aliasing. This means that NI-RFSG cannot select a carrier frequency that could optimize waveform size if phase continuity is enabled. + - Output signal bandwidth must be <5 MHz to avoid aliasing. + - Close-in phase noise is higher. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. + + `Digital Upconverter `_ + + **Valid Values**: + + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Device | I/Q Rates | + +==========================================================================+====================================================================================================================================================================================================================================================+ + | PXIe-5644/5645 | Up to 120 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5646 | Up to 250 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXI-5670 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | | 100 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXI-5671 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | | 100 MS/s | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5672 | Up to 100 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5673/5673E | Up to 200 MS/s. Note that - If an PXIe-5450 with module revisions A or B is used as part of your PXIe-5673/5673E, the NI-FGEN NIFGEN_ATTR_COMPENSATE_FOR_FILTER_GROUP_DELAY property is disabled if the requested I/Q rate is less than 1.5 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5820/5830/5831/5832/5840/5841/5860 | Up to 1.25 GS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options) | Up to 2.5 GS/s | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5842 (4 GHz bandwidth option) using the Standard personality | Up to 2.5 GS/s | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality | 5 GS/s only. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: Use this property to associate an I/Q rate with a waveform. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:IQ** + - C Attribute: **NIRFSG_ATTR_IQ_RATE** + +iq_skew +------- + + .. py:attribute:: iq_skew + + Specifies the adjustment of the phase angle between the I and Q vectors. If the skew is zero, the phase angle is 90 degrees. + + This property is ignored when the :py:attr:`nirfsg.Session.iq_impairment_enabled` property is disabled. + + **Units**: degrees (°) + + **Valid Values:**-30° to 30° + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Impairment Calibration `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **IQ Impairment:IQ Skew (Degrees)** + - C Attribute: **NIRFSG_ATTR_IQ_SKEW** + +iq_swap_enabled +--------------- + + .. py:attribute:: iq_swap_enabled + + Enables or disables the inverse phase rotation of the I/Q signal by swapping the I and Q inputs. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------+---------------------------------------------------------------------+ + | Value | Description | + +=======+=====================================================================+ + | True | NI-RFSG device applies noninverse phase rotation of the I/Q signal. | + +-------+---------------------------------------------------------------------+ + | False | NI-RFSG device applies inverse phase rotation of the I/Q signal. | + +-------+---------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NIRFSG_ATTR_IQ_SWAP_ENABLED** + +load_configurations_from_file_load_options +------------------------------------------ + + .. py:attribute:: load_configurations_from_file_load_options + + Specifies the configurations to skip while loading from a file. + + **Default Value:** :py:data:`~nirfsg.NIRFSG_VAL_SKIP_NONE` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------------------------------------------------------------+-------------------------------------------------------------------+ + | Value | Description | + +====================================================================+===================================================================+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_NONE | NI-RFSG loads all the configurations to the session. | + +--------------------------------------------------------------------+-------------------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips loading the waveform configurations to the session. | + +--------------------------------------------------------------------+-------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.LoadOptions | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Load Configurations:Load Options** + - C Attribute: **NIRFSG_ATTR_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS** + +load_configurations_from_file_reset_options +------------------------------------------- + + .. py:attribute:: load_configurations_from_file_reset_options + + Specifies the configurations to skip to reset while loading configurations from a file. + + **Default Value:** :py:data:`~nirfsg.NIRFSG_VAL_SKIP_NONE` + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------------------------------------------------+------------------------------------------------------+ + | Value | Description | + +==============================================================================+======================================================+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_NONE | NI-RFSG resets all configurations. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips resetting the waveform configurations. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_SCRIPTS | NI-RFSG skips resetting the scripts. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_DEEMBEDDING_TABLES | NI-RFSG skips resetting the de-embedding tables. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------+ + | Characteristic | Value | + +=======================+=====================================+ + | Datatype | enums.LoadConfigurationResetOptions | + +-----------------------+-------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Load Configurations:Reset Options** + - C Attribute: **NIRFSG_ATTR_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS** + +logical_name +------------ + + .. py:attribute:: logical_name + + Returns a string that contains the logical name you specified when opening the current IVI session. You can pass a logical name to the :py:meth:`nirfsg.Session.Init` method or the :py:meth:`nirfsg.Session.__init__` method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NIRFSG_ATTR_LOGICAL_NAME** + +loop_bandwidth +-------------- + + .. py:attribute:: loop_bandwidth + + Configures the loop bandwidth of the tuning PLLs. This property is ignored on the PXI-5610, PXI-5670/5671, and PXIe-5672 for signal bandwidths greater than or equal to 10MHz. This property is ignored on the PXI/PXIe-5650/5651/5652 for RF frequencies less than 50MHz. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value:** + + PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842: :py:data:`~nirfsg.LoopBandwidth.MEDIUM` + + PXI/PXIe-5650/5651/5652, PXIe-5673/5673E: :py:data:`~nirfsg.LoopBandwidth.NARROW` + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Phase-Locked Loop Bandwidth `_ + + `Modulation Implementation `_ + + `Sinusoidal Tone Versus Modulation Operation `_ + + **Defined Values**: + + +-----------------------------------------+---------+--------------------------------------------------------+ + | Name | Value | Description | + +=========================================+=========+========================================================+ + | :py:data:`~nirfsg.LoopBandwidth.MEDIUM` | 1 (0x1) | Uses the medium loop bandwidth setting for the PLL. | + +-----------------------------------------+---------+--------------------------------------------------------+ + | :py:data:`~nirfsg.LoopBandwidth.NARROW` | 0 (0x0) | Uses the narrowest loop bandwidth setting for the PLL. | + +-----------------------------------------+---------+--------------------------------------------------------+ + | :py:data:`~nirfsg.LoopBandwidth.WIDE` | 2 (0x2) | Uses the widest loop bandwidth setting for the PLL. | + +-----------------------------------------+---------+--------------------------------------------------------+ + + .. note:: Setting this property to :py:data:`~nirfsg.LoopBandwidth.WIDE` on the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, or the PXIe-5673/5673E allows the frequency to settle significantly faster at the expense of increased phase noise. Setting this property to :py:data:`~nirfsg.LoopBandwidth.MEDIUM` is not a valid option on the PXI/PXIe-5650/5651/5652 or PXIe-5673/5673E. :py:data:`~nirfsg.LoopBandwidth.MEDIUM` is the only supported value for the PXIe-5840/5841/5842. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].loop_bandwidth` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.loop_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | enums.LoopBandwidth | + +-----------------------+---------------------+ + | Permissions | read-write | + +-----------------------+---------------------+ + | Repeated Capabilities | los | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Loop Bandwidth** + - C Attribute: **NIRFSG_ATTR_LOOP_BANDWIDTH** + +lo_frequency +------------ + + .. py:attribute:: lo_frequency + + Specifies the frequency of the LO source. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Configuration `_ + + `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ + + + + .. note:: This property is read/write if you are using an external LO. Otherwise, this property is read-only. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_frequency` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:LO Frequency (Hz)** + - C Attribute: **NIRFSG_ATTR_LO_FREQUENCY** + +lo_frequency_step_size +---------------------- + + .. py:attribute:: lo_frequency_step_size + + Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). + + When the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property is enabled, the specified step size affects the fractional spur performance of the device. When the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property is disabled, the specified step size affects the phase noise performance of the device. + + The valid values for this property depend on the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property. + + **PXIe-5644/5645/5646**—If you disable the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property, the specified value is coerced to the nearest valid value. + + **PXIe-5840/5841**—If you disable the :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` property, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. + + **Units:** hertz (Hz) + + **Default Values:** + + PXIe-5644/5645/5646: 200kHz + + PXIe-5830: 2MHz + + PXIe-5831/5832 (RF port): 8MHz + + PXIe-5831/5832 (IF port): 2MHz, 4MHz + + PXIe-5840/5841: + + - Fractional mode: 500 kHz + - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. + + PXIe-5841 with PXIe-5655: 500kHz + + PXIe-5842: 1Hz + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + | :py:attr:`nirfsg.Session.lo_pll_fractional_mode_enabled` Property Setting | :py:data:`~nirfsg.NIRFSG_VAL_ENABLE` | :py:data:`~nirfsg.NIRFSG_VAL_DISABLE` | + +============================================================================================================================+======================================+==================================================+ + | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5644/5645 | 50 kHz to 24 MHz | 4 MHz, 5 MHz, 6 MHz, 12 MHz, or 24 MHz | + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5646 | 50 kHz to 25 MHz | 2 MHz, 5 MHz, 10 MHz, or 25 MHz | + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5840/5841 | 50 kHz to 100 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, or 100 MHz | + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5830/5831/ 5832 LO1 | 8 Hz to 400 MHz | — | + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5830/5831/ 5832 LO2 | 4 Hz to 400 MHz | — | + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + | :py:attr:`nirfsg.Session.lo_frequency_step_size` Property Valid Values on PXIe-5841 with PXIe-5655/NI PXIe-5842 (See note) | 1 nHz to 100 MHz | 1 nHz to 50 MHz | + +----------------------------------------------------------------------------------------------------------------------------+--------------------------------------+--------------------------------------------------+ + + .. note:: Values up to 100 MHz are coerced to 50 MHz. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Frequency Step Size (Hz)** + - C Attribute: **NIRFSG_ATTR_LO_FREQUENCY_STEP_SIZE** + +lo_in_power +----------- + + .. py:attribute:: lo_in_power + + Specifies the power level of the signal at the LO IN front panel connector. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Units**: dBm + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `LO OUT `_ + + + + .. note:: - This property is read/write if you are using an external LO. Otherwise, this property is read-only. + + - For the PXIe-5644/5645/5646, this property is always read-only. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_in_power` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_in_power` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:LO In Power (dBm)** + - C Attribute: **NIRFSG_ATTR_LO_IN_POWER** + +lo_out_enabled +-------------- + + .. py:attribute:: lo_out_enabled + + Specifies whether the local oscillator signal is present at the LO OUT front panel connector. The local oscillator signal remains at the LO OUT front panel connector until this property is set to False, even if the :py:attr:`nirfsg.Session.output_enabled` property is set to False, the :py:meth:`nirfsg.Session.abort` method is called, or the NI-RFSG session is closed. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_boolean` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value:** :py:data:`~nirfsg.NIRFSG_VAL_DISABLE` + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `LO OUT `_ + + **Defined Values**: + + +---------------------------------------+---------------------------------------------------------------------------------+ + | Name | Description | + +=======================================+=================================================================================+ + | :py:data:`~nirfsg.NIRFSG_VAL_ENABLE` | The local oscillator signal is present at the LO OUT front panel connector. | + +---------------------------------------+---------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_DISABLE` | The local oscillator signal is not present at the LO OUT front panel connector. | + +---------------------------------------+---------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_out_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_out_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:LO Out Enabled** + - C Attribute: **NIRFSG_ATTR_LO_OUT_ENABLED** + +lo_out_export_configure_from_rfsa +--------------------------------- + + .. py:attribute:: lo_out_export_configure_from_rfsa + + Specifies whether to allow NI-RFSA to control the NI-RFSG LO out export. + + Set this property to :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.ENABLE` to allow NI-RFSA to control the LO out export. Use the RF OUT LO EXPORT ENABLED property to control the LO out export from NI-RFSA. + + **Default Value:** :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.DISABLE` + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +---------------------------------------------------------------+---------+----------------------------------------------------------------------+ + | Name | Value | Description | + +===============================================================+=========+======================================================================+ + | :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.ENABLE` | 0 (0x0) | Do not allow NI-RFSA to control the NI-RFSG local oscillator export. | + +---------------------------------------------------------------+---------+----------------------------------------------------------------------+ + | :py:data:`~nirfsg.LoOutExportConfigureFromRfsaEnable.DISABLE` | 1 (0x1) | Allow NI-RFSA to control the NI-RFSG local oscillator export. | + +---------------------------------------------------------------+---------+----------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------------------+ + | Characteristic | Value | + +=======================+==========================================+ + | Datatype | enums.LoOutExportConfigureFromRfsaEnable | + +-----------------------+------------------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:LO Out Export Configure From RFSA** + - C Attribute: **NIRFSG_ATTR_LO_OUT_EXPORT_CONFIGURE_FROM_RFSA** + +lo_out_power +------------ + + .. py:attribute:: lo_out_power + + Specifies the power level of the signal at the LO OUT front panel connector. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_real64` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Units**: dBm + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `LO OUT `_ + + + + .. note:: For the PXIe-5644/5645/5646 and PXIe-5673/5673E, this property is always read-only. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_out_power` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_out_power` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | los | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:LO Out Power (dBm)** + - C Attribute: **NIRFSG_ATTR_LO_OUT_POWER** + +lo_pll_fractional_mode_enabled +------------------------------ + + .. py:attribute:: lo_pll_fractional_mode_enabled + + Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). This property enables or disables fractional frequency tuning in the LO. Fractional mode provides a finer frequency step resolution and allows smaller values for the :py:attr:`nirfsg.Session.lo_frequency_step_size` property. However, fractional mode may introduce non-harmonic spurs. + + This property applies only if you set the :py:attr:`nirfsg.Session.lo_source` property to Onboard. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_int32` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" . + + **Default Value:** :py:data:`~nirfsg.LoPllFractionalModeEnabled.ENABLE` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + Refer to the local oscillators topic appropriate to your device for more information about using fractional mode. + + **Defined Values**: + + +-------------------------------------------------------+---------+------------------------------------------+ + | Name | Value | Description | + +=======================================================+=========+==========================================+ + | :py:data:`~nirfsg.LoPllFractionalModeEnabled.ENABLE` | 0 (0x0) | Disables fractional mode for the LO PLL. | + +-------------------------------------------------------+---------+------------------------------------------+ + | :py:data:`~nirfsg.LoPllFractionalModeEnabled.DISABLE` | 1 (0x1) | Enables fractional mode for the LO PLL. | + +-------------------------------------------------------+---------+------------------------------------------+ + + .. note:: For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.LoPllFractionalModeEnabled | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | los | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO PLL Fractional Mode Enabled** + - C Attribute: **NIRFSG_ATTR_LO_PLL_FRACTIONAL_MODE_ENABLED** + +lo_source +--------- + + .. py:attribute:: lo_source + + Specifies whether to use the internal or external local oscillator (LO) source. If the :py:attr:`nirfsg.Session.lo_source` property is set to "" (empty string), NI-RFSG uses the internal LO source. To set this property, the NI-RFSG device must be in the Configuration state. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the :py:meth:`nirfsg.Session._set_attribute_vi_string` method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value:** Onboard + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ + + `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ + + **Possible Values**: + + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +==========================+==================================================================================================================================================================================================================================================================+ + | "Automatic_SG_SA_Shared" | NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "LO_In" | Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the :py:attr:`nirfsg.Session.upconverter_center_frequency` property to specify the LO frequency. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "Onboard" | Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "SG_SA_Shared" | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "Secondary" | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to SG_SA_Shared. + + + .. tip:: This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_source` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_source` + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.LoSource | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | los | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO Source** + - C Attribute: **NIRFSG_ATTR_LO_SOURCE** + +lo_temperature +-------------- + + .. py:attribute:: lo_temperature + + Returns the LO module temperature in degrees Celsius. + + PXIe-5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXIe-5673/5673E, PXIe-5840/5841/5842 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:LO Temperature (Degrees C)** + - C Attribute: **NIRFSG_ATTR_LO_TEMPERATURE** + +lo_vco_frequency_step_size +-------------------------- + + .. py:attribute:: lo_vco_frequency_step_size + + Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. + + **Valid Values**: + + LO1: 1 Hz to 50 MHz + + LO2: 1 Hz to 100 MHz + + **Default Value**: 1 MHz + + **Supported Devices**: PXIe-5830/5831/5832 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:LO VCO Frequency Step Size (Hz)** + - C Attribute: **NIRFSG_ATTR_LO_VCO_FREQUENCY_STEP_SIZE** + +marker_event_output_behavior +---------------------------- + + .. py:attribute:: marker_event_output_behavior + + Specifies the output behavior for the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Defined Values**: + + +-----------------------------------------------------+----------------+-------------------------------------------------------+ + | Name | Value | Description | + +=====================================================+================+=======================================================+ + | :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE` | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | + +-----------------------------------------------------+----------------+-------------------------------------------------------+ + | :py:data:`~nirfsg.MarkerEventOutputBehavior.TOGGLE` | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | + +-----------------------------------------------------+----------------+-------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_output_behavior` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_output_behavior` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------+ + | Characteristic | Value | + +=======================+=================================+ + | Datatype | enums.MarkerEventOutputBehavior | + +-----------------------+---------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------+ + | Repeated Capabilities | markers | + +-----------------------+---------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Output Behavior** + - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_OUTPUT_BEHAVIOR** + +marker_event_pulse_width +------------------------ + + .. py:attribute:: marker_event_pulse_width + + Specifies the pulse width value for the Marker Event. Use the :py:attr:`nirfsg.Session.marker_event_pulse_width_units` property to set the units for the pulse width value. This property is valid only when the :py:attr:`nirfsg.Session.marker_event_output_behavior` property is set to :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE`. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** 200 ns + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | markers | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Pulse:Width Value** + - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_PULSE_WIDTH** + +marker_event_pulse_width_units +------------------------------ + + .. py:attribute:: marker_event_pulse_width_units + + Specifies the pulse width units for the Marker Event. This property is valid only when the :py:attr:`nirfsg.Session.marker_event_output_behavior` property is set to :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE`. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.MarkerEventPulseWidthUnits.SECONDS` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Defined Values**: + + +-----------------------------------------------------+----------------+-------------------------------------------------------+ + | Name | Value | Description | + +=====================================================+================+=======================================================+ + | :py:data:`~nirfsg.MarkerEventOutputBehavior.PULSE` | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | + +-----------------------------------------------------+----------------+-------------------------------------------------------+ + | :py:data:`~nirfsg.MarkerEventOutputBehavior.TOGGLE` | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | + +-----------------------------------------------------+----------------+-------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width_units` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.MarkerEventPulseWidthUnits | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | markers | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Pulse:Width Units** + - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_PULSE_WIDTH_UNITS** + +marker_event_terminal_name +-------------------------- + + .. py:attribute:: marker_event_terminal_name + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/Marker *X* Event, where *AWGName* is the name of your associated AWG module in MAX and *X* is Marker Event 0 through 3. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/Marker *X* Event, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Marker Event 0 through 3. + + PXIe-5820/5840/5841: /*ModuleName*/ao/0/Marker *X* Event, where *ModuleName* is the name of your device in MAX and *X* is Marker Event 0 through 3. + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.get_terminal_name` + + + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_terminal_name` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | markers | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Terminal Name** + - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_TERMINAL_NAME** + +marker_event_toggle_initial_state +--------------------------------- + + .. py:attribute:: marker_event_toggle_initial_state + + Specifies the initial state for the Marker Event when the :py:attr:`nirfsg.Session.marker_event_output_behavior` property is set to :py:data:`~nirfsg.MarkerEventOutputBehavior.TOGGLE`. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.MarkerEventToggleInitialState.LOW` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Defined Values**: + + +-------------------------------------------------------+----------------+----------------------------------------------------------------------------------+ + | Name | Value | Description | + +=======================================================+================+==================================================================================+ + | :py:data:`~nirfsg.MarkerEventToggleInitialState.HIGH` | 21001 (0x5209) | Specifies the initial state of the Marker Event toggle behavior as digital high. | + +-------------------------------------------------------+----------------+----------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.MarkerEventToggleInitialState.LOW` | 21000 (0x5208) | Specifies the initial state of the Marker Event toggle behavior as digital low. | + +-------------------------------------------------------+----------------+----------------------------------------------------------------------------------+ + + + .. tip:: This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_toggle_initial_state` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_toggle_initial_state` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------+ + | Characteristic | Value | + +=======================+=====================================+ + | Datatype | enums.MarkerEventToggleInitialState | + +-----------------------+-------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------+ + | Repeated Capabilities | markers | + +-----------------------+-------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Marker:Toggle:Initial State** + - C Attribute: **NIRFSG_ATTR_MARKER_EVENT_TOGGLE_INITIAL_STATE** + +memory_size +----------- + + .. py:attribute:: memory_size + + The total amount of memory on the signal generator in bytes. + + **Units:** bytes + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Memory Options `_ + + `Phase Continuity `_ + + + + .. note:: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Memory Size** + - C Attribute: **NIRFSG_ATTR_MEMORY_SIZE** + +module_power_consumption +------------------------ + + .. py:attribute:: module_power_consumption + + Returns the total power consumption of the device. + + **Units:** watts + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Module Power Consumption (W)** + - C Attribute: **NIRFSG_ATTR_MODULE_POWER_CONSUMPTION** + +module_revision +--------------- + + .. py:attribute:: module_revision + + Returns the module revision letter. If the NI-RFSG session is controlling multiple modules, this property returns the revision letter of the primary RF module. The NI-RFSG session is opened using the primary RF device name. + + **Supported Devices:** PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Identifying Module Revision `_ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Module Revision** + - C Attribute: **NIRFSG_ATTR_MODULE_REVISION** + +output_enabled +-------------- + + .. py:attribute:: output_enabled + + Specifies whether signal output is enabled. Setting the :py:attr:`nirfsg.Session.output_enabled` property to False while in the Generation state stops signal output, although generation continues internally. For the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXI-5670/5671, and PXIe-5672/5673/5673E, setting the :py:attr:`nirfsg.Session.output_enabled` property while in the Committed state does not transition the device to the Configuration state, but output changes immediately. + + **Default Value:** True + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Output Enabled `_ + + `NI-RFSG Instrument Driver Programming Flow `_ + + **Defined Values**: + + +-------+-------------------------+ + | Value | Description | + +=======+=========================+ + | True | Enables signal output. | + +-------+-------------------------+ + | False | Disables signal output. | + +-------+-------------------------+ + + .. note:: - For the PXIe-5653, this property controls only the LO1 terminal. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + - When the :py:attr:`nirfsg.Session.ACTIVE_CONFIGURATION_LIST` property is set to a valid list name, setting the :py:attr:`nirfsg.Session.output_enabled` property transitions the device to the Configuration state. + + .. note:: One or more of the referenced properties are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Output Enabled** + - C Attribute: **NIRFSG_ATTR_OUTPUT_ENABLED** + +output_port +----------- + + .. py:attribute:: output_port + + Specifies the connector(s) to use to generate the signal. To set this property, the NI-RFSG device must be in the Configuration state. + + You must write complex I and Q data for all options. The Q data has no effect if you set this property to I Only and set the :py:attr:`nirfsg.Session.iq_out_port_carrier_frequency` property to 0. If you set the :py:attr:`nirfsg.Session.iq_out_port_carrier_frequency` property to a value other than 0, the onboard signal processing (OSP) frequency shifts I and Q as a complex value and outputs the real portion of the result on the I connector(s) of the device. + + If you set the :py:attr:`nirfsg.Session.output_port` property to :py:data:`~nirfsg.OutputPort.I_ONLY` or :py:data:`~nirfsg.OutputPort.IQ_OUT`, the :py:attr:`nirfsg.Session.iq_out_port_terminal_configuration` property applies. + + **Default Value:** + + PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842/5860: :py:data:`~nirfsg.OutputPort.RF_OUT` + + PXIe-5820: :py:data:`~nirfsg.OutputPort.IQ_OUT` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +=======================================+================+==========================================================================================+ + | :py:data:`~nirfsg.OutputPort.CAL_OUT` | 14002 (0x36b2) | Enables the CAL OUT port. | + +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.OutputPort.I_ONLY` | 14003 (0x36b3) | Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. | + +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.OutputPort.IQ_OUT` | 14001 (0x36b1) | Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. | + +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.OutputPort.RF_OUT` | 14000 (0x36b0) | Enables the RF OUT port. This value is not valid for the PXIe-5820. | + +---------------------------------------+----------------+------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------------+ + | Characteristic | Value | + +=======================+==================+ + | Datatype | enums.OutputPort | + +-----------------------+------------------+ + | Permissions | read-write | + +-----------------------+------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Output Port** + - C Attribute: **NIRFSG_ATTR_OUTPUT_PORT** + +overflow_error_reporting +------------------------ + + .. py:attribute:: overflow_error_reporting + + Configures error reporting for onboard signal processing (OSP) overflows. Overflows lead to clipping of the waveform. + + **Default Value:** :py:data:`~nirfsg.OverflowErrorReporting.WARNING` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------------+--------------+----------------------------------------------------------------------------+ + | Name | Value | Description | + +====================================================+==============+============================================================================+ + | :py:data:`~nirfsg.OverflowErrorReporting.DISABLED` | 1302 (0x516) | NI-RFSG does not return an error or a warning when an OSP overflow occurs. | + +----------------------------------------------------+--------------+----------------------------------------------------------------------------+ + | :py:data:`~nirfsg.OverflowErrorReporting.WARNING` | 1301 (0x515) | NI-RFSG returns a warning when an OSP overflow occurs. | + +----------------------------------------------------+--------------+----------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.OverflowErrorReporting | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Advanced:Overflow Error Reporting** + - C Attribute: **NIRFSG_ATTR_OVERFLOW_ERROR_REPORTING** + +peak_envelope_power +------------------- + + .. py:attribute:: peak_envelope_power + + Returns the maximum instantaneous power of the RF output signal. + + **Units**: dBm + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: - This property is valid only when the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.AVERAGE`. + + - The :py:attr:`nirfsg.Session.arb_digital_gain` property is not included in the calculation of the :py:attr:`nirfsg.Session.peak_envelope_power` property. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Peak Envelope Power (dBm)** + - C Attribute: **NIRFSG_ATTR_PEAK_ENVELOPE_POWER** + +peak_power_adjustment +--------------------- + + .. py:attribute:: peak_power_adjustment + + Specifies the adjustment for the :py:attr:`nirfsg.Session.power_level` property. This property is valid only when you set the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. The value of the :py:attr:`nirfsg.Session.peak_power_adjustment` property adds to the :py:attr:`nirfsg.Session.power_level` property. The :py:attr:`nirfsg.Session.peak_power_adjustment` property typically specifies the peak-to-average power ratio (PAPR) of a waveform. If the PAPR is specified, the specified power level becomes the average power level of the waveform, even if the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.PEAK`. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a peak power adjustment with a waveform. + + + + .. note:: - For the PXIe-5673/5673E only, use this property to associate a peak power adjustment with a waveform. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Peak Power Adjustment (dB)** + - C Attribute: **NIRFSG_ATTR_PEAK_POWER_ADJUSTMENT** + +phase_continuity_enabled +------------------------ + + .. py:attribute:: phase_continuity_enabled + + Specifies whether the driver maintains phase continuity in the arbitrary waveforms. When this property is set to :py:data:`~nirfsg.PhaseContinuityEnabled.ENABLE`, NI-RFSG may increase the waveform size. To set the :py:attr:`nirfsg.Session.phase_continuity_enabled` property, the NI-RFSG device must be in the Configuration state. :py:attr:`nirfsg.Session.phase_continuity_enabled` applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`. + + PXI-5671: When using the PXI-5671 with I/Q rates less than or equal to 8.33MS/s, an input phase-continuous signal is always phase-continuous upon output, and this property has no effect. + + PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Phase continuity is *always* enabled on this device. + + **Default Value:** :py:data:`~nirfsg.PhaseContinuityEnabled.AUTO` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Phase Continuity `_ + + `Arb Waveform Mode Tuning Speed Factors `_ + + **Defined Values**: + + +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:attr:`nirfsg.Session.phase_continuity_enabled` Property Setting | Value | With I/Q Rates > 8.33 MS/s. | + +=====================================================================+===========+==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsg.PhaseContinuityEnabled.AUTO` | -1 (-0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. When the Generation Mode property is set to Script, the Phase Continuity Enabled property indicates a warning condition. NI-RFSG cannot guarantee a phase-continuous output signal in Script mode. Phase continuity is automatically disabled in script mode, and the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. | + +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.PhaseContinuityEnabled.DISABLE` | 0 (0x0) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform is played back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | + +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.PhaseContinuityEnabled.ENABLE` | 1 (0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | + +---------------------------------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------------+ + | Characteristic | Value | + +=======================+==============================+ + | Datatype | enums.PhaseContinuityEnabled | + +-----------------------+------------------------------+ + | Permissions | read-write | + +-----------------------+------------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Phase Continuity Enabled** + - C Attribute: **NIRFSG_ATTR_PHASE_CONTINUITY_ENABLED** + +phase_offset +------------ + + .. py:attribute:: phase_offset + + Specifies the phase of the RF output signal. Use this property to align the phase of the RF output with the phase of the RF output of another device, as long as the two devices are phase-coherent. + + **Units**: degrees (°) + + **Default Value:** 0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Phase Synchronization and Phase Coherency `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Phase Offset (Degrees)** + - C Attribute: **NIRFSG_ATTR_PHASE_OFFSET** + +power_level +----------- + + .. py:attribute:: power_level + + Specifies either the average power level or peak power level of the generated RF signal, depending on the :py:attr:`nirfsg.Session.power_level_type` property setting. + + The PXI-5670/5671, PXIe-5672, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. + + Refer to the specifications document for your device for allowable power level settings. + + **Units**: dBm + + **Default Values:** + + PXIe-5644/5645/5646, PXIe-5673/5673E: -100 + + PXI/PXIe-5650/5651/5652: -90 + + PXIe-5654: -7 + + PXIe-5654 with PXIe-5696: -110 + + PXI-5670/5671, PXIe-5672: -145 + + PXIe-5830/5831/5832/5840/5841/5842/5860: -174 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.ConfigureRf` + + + + .. note:: - For the PXIe-5653, this property is read-only. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Power Level (dBm)** + - C Attribute: **NIRFSG_ATTR_POWER_LEVEL** + +power_level_type +---------------- + + .. py:attribute:: power_level_type + + Specifies how NI-RFSG interprets the value of the :py:attr:`nirfsg.Session.power_level` property. The :py:attr:`nirfsg.Session.power_level_type` property also affects how waveforms are scaled. + + PXI-5670/5671: While in Script generation mode, if this property is set to :py:data:`~nirfsg.PowerLevelType.AVERAGE`, NI-RFSG scales each waveform so that all waveforms have the same average power. The average power level of each waveform matches the value set with the :py:attr:`nirfsg.Session.power_level` property. You can disable this scaling operation by setting the :py:attr:`nirfsg.Session.power_level_type` property to :py:data:`~nirfsg.PowerLevelType.PEAK`. + + PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: While in Script generation mode, this property must be set to :py:data:`~nirfsg.PowerLevelType.PEAK`. + + Converting from Average Power to Peak Power + + Typically, this property is set to :py:data:`~nirfsg.PowerLevelType.AVERAGE`. However, some instrument modes require this property to be set to :py:data:`~nirfsg.PowerLevelType.PEAK`. Use the following equations to calculate the equivalent peak power given the desired average power for your waveform: + + Where 1 is the highest possible magnitude in the waveform. + + **Default Value:** + + PXIe-5820: :py:data:`~nirfsg.PowerLevelType.PEAK` + + All other devices: :py:data:`~nirfsg.PowerLevelType.AVERAGE` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Spurious Performance `_ + + `Optimizing for Low Power Generation `_ + + **Defined Values**: + + +-------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +===========================================+===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsg.PowerLevelType.AVERAGE` | Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. | + +-------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.PowerLevelType.PEAK` | Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the :py:attr:`nirfsg.Session.arb_waveform_software_scaling_factor` property. You can use the :py:attr:`nirfsg.Session.peak_power_adjustment` property in conjunction with the :py:attr:`nirfsg.Session.power_level` property when the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.PEAK`. | + +-------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.PowerLevelType | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Power Level Type** + - C Attribute: **NIRFSG_ATTR_POWER_LEVEL_TYPE** + +pulse_modulation_active_level +----------------------------- + + .. py:attribute:: pulse_modulation_active_level + + Specifies the active level of the pulse modulation signal when pulse modulation is enabled. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` + + **Supported Devices:** PXIe-5842 + + **Defined Values**: + + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + | Name | Value | Description | + +==============================================================+===============+==================================================+ + | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.HIGH` | 9000 (0x2328) | Trigger when the digital trigger signal is high. | + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerDigitalLevelActiveLevel.LOW` | 9001 (0x2329) | Trigger when the digital trigger signal is low. | + +--------------------------------------------------------------+---------------+--------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------------+ + | Characteristic | Value | + +=======================+============================================+ + | Datatype | enums.ScriptTriggerDigitalLevelActiveLevel | + +-----------------------+--------------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Pulse Modulation Active Level** + - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_ACTIVE_LEVEL** + +pulse_modulation_enabled +------------------------ + + .. py:attribute:: pulse_modulation_enabled + + Enables or disables pulse modulation. + + PXIe-5654/5654 with PXIe-5696: If this property is enabled and the signal at the PULSEIN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. + + PXIe-5673/5673E: If this property is enabled and the signal at the PLSMOD front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. + + PXIe-5842: If this property is enabled and the signal at the PULSE IN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. This behavior can be modified by setting pulse modulation active level. + + **Default Value:** False + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E + + **Related Topics** + + `Pulse Modulation `_ + + **Defined Values**: + + +-------+----------------------------+ + | Value | Description | + +=======+============================+ + | True | Enables pulse modulation. | + +-------+----------------------------+ + | False | Disables pulse modulation. | + +-------+----------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Pulse:Pulse Modulation Enabled** + - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_ENABLED** + +pulse_modulation_mode +--------------------- + + .. py:attribute:: pulse_modulation_mode + + PXIe-5654/5654 with PXIe-5696: Specifies the pulse modulation mode to use. + + PXIe-5842: This property allows you to choose a tradeoff between switching speed and On/Off Ratio when using pulse modulation. Refer to the product specifications document for the switching characteristics of each mode. This property is settable while the device is generating, but some output pulses may be dropped. + + **Default Value:** :py:data:`~nirfsg.PulseModulationMode.ANALOG` + + **Supported Devices:** PXIe-5842/5654/5654 with PXIe-5696 + + **Defined Values**: + + +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +======================================================================+=============================================================================================================================================+ + | :py:data:`~nirfsg.PulseModulationMode.OPTIMAL_MATCH` | Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842. | + +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_PULSE_MODULATION_ANALOG_HIGH_ISOLATION` | Allows for the best on/off power ratio of the pulsed signal. | + +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_PULSE_MODULATION_ANALOG` | Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. | + +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_PULSE_MODULATION_DIGITAL` | Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. | + +----------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.PulseModulationMode | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Pulse Modulation Mode** + - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_MODE** + +pulse_modulation_source +----------------------- + + .. py:attribute:: pulse_modulation_source + + Specifies the source of the pulse modulation signal. When Pulse In in used, the pulse modulation is applied with the lowest latency and jitter, but is not aligned to any particular waveform sample. When a marker is used, the RF pulse is aligned to a specific sample in the arbitrary waveform. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** PulseIn + + **Supported Devices:** PXIe-5842 + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+==============================================================================================+ + | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker0" | The trigger is received from the Marker 0. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker1" | The trigger is received from the Marker 1. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker2" | The trigger is received from the Marker 2. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker3" | The trigger is received from the Marker 3. | + +----------------+----------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.PulseModulationSource | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Modulation:Pulse:Pulse Modulation Source** + - C Attribute: **NIRFSG_ATTR_PULSE_MODULATION_SOURCE** + +ref_clock_rate +-------------- + + .. py:attribute:: ref_clock_rate + + Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. This property is only valid when the :py:attr:`nirfsg.Session.ref_clock_source` property is set to ClkIn, RefIn, or RefIn2 + + To set this property, the NI-RFSG device must be in the Configuration state. If you are using the PXIe-5654/5654 with PXIe-5696, the NI-RFSG device must be in the Committed state to read this property. When you read this property, it returns the frequency the device is locked to during the Committed state. + + If you set this property to Auto, NI-RFSG uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if automatic detection is supported by the device. + + **Valid Values:** + + PXIe-5654/5654 with PXIe-5696: Values between 1MHz to 20MHz in 1MHz steps are supported in addition to the Auto and 10MHz values. + + PXIe-5841 with PXIe-5655, PXIe-5842: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz + + y, where + + y is 4, 8, 16, 24, 25, or 32. + + PXIe-5860: 10 MHz, 100 MHz + + **Units**: hertz (Hz) + + **Default Value:** Auto + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Timing Configurations `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_ref_clock` + + **Defined Values**: + + +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +=======+============+===================================================================================================================================+ + | Auto | -1.0 | Uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if the device supports it. | + +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ + | 10MHz | 10000000.0 | Uses a 10 MHz Reference Clock rate. | + +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: Automatic detection of the Reference Clock rate is supported on only the PXIe-5654/5654 with PXIe-5696. For all other supported devices, NI-RFSG uses the default Reference Clock rate of 10MHz. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Reference Clock Rate (Hz)** + - C Attribute: **NIRFSG_ATTR_REF_CLOCK_RATE** + +ref_clock_source +---------------- + + .. py:attribute:: ref_clock_source + + Specifies the Reference Clock source. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** OnboardClock + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Timing Configurations `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_ref_clock` + + **Possible Values**: + + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +=================+=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. ** PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector. **PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn2" | This value is not valid on any supported devices. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_ClkMaster" | This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653** —NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_CLK as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ReferenceClockSource | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clock:Reference Clock Source** + - C Attribute: **NIRFSG_ATTR_REF_CLOCK_SOURCE** + +ref_pll_bandwidth +----------------- + + .. py:attribute:: ref_pll_bandwidth + + Configures the loop bandwidth of the reference PLL. + + **Default Value:** :py:data:`~nirfsg.ReferencePllBandwidth.NARROW` + + **Supported Devices:** PXIe-5653 + + **Related Topics** + + `Phase-Locked Loop Bandwidth `_ + + **Defined Values**: + + +-------------------------------------------------+--------------------------------------------------------+ + | Value | Description | + +=================================================+========================================================+ + | :py:data:`~nirfsg.ReferencePllBandwidth.NARROW` | Uses the narrowest loop bandwidth setting for the PLL. | + +-------------------------------------------------+--------------------------------------------------------+ + | :py:data:`~nirfsg.ReferencePllBandwidth.MEDIUM` | Uses the medium loop bandwidth setting for the PLL. | + +-------------------------------------------------+--------------------------------------------------------+ + | :py:data:`~nirfsg.ReferencePllBandwidth.WIDE` | Uses the widest loop bandwidth setting for the PLL. | + +-------------------------------------------------+--------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.ReferencePllBandwidth | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Ref PLL Bandwidth** + - C Attribute: **NIRFSG_ATTR_REF_PLL_BANDWIDTH** + +relative_delay +-------------- + + .. py:attribute:: relative_delay + + Specifies the delay, in seconds, to apply to the I/Q waveform. + + Relative delay allows for delaying the generated signal from one device relative to the generated signal of another device after those devices have been synchronized. You can achieve a negative relative delay by delaying both synchronized devices by the same value (1 μs) before generation begins and then changing the relative delay to a smaller amount than the initial value on only one of the devices. + + To set this property, the NI-RFSG device must be in the Configuration or Generation state. + + **Units:** Seconds + + **Valid Values:** + + PXIe-PXIe-5820/5830/5831/5832/5840/5841: 0 μs to 3.2 μs + + PXIe-5842: 0 μs to 6.5 μs + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `NI-TClk Overview `_ + + + + .. note:: - To obtain a negative relative delay when synchronizing the PXIe-5840/5841 with a module that does not support this property, use the NITCLK_ATTR_SAMPLE_CLOCK_DELAY property. + + - The resolution of this property is a method of the I/Q sample period at 15E(-6) of the sample period but not worse than one Sample Clock period. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Relative Delay** + - C Attribute: **NIRFSG_ATTR_RELATIVE_DELAY** + +rf_blanking_source +------------------ + + .. py:attribute:: rf_blanking_source + + Specifies the Marker Event at which RF blanking occurs. RF blanking quickly attenuates the RF OUT signal. Use Marker Events to toggle the state of RF blanking. The RF Output always starts in the unblanked state. + + To set this property, the NI-RFSG device must be in the Configuration state. + + You can specify Marker Events by using scripts to trigger blanking at a certain point in a waveform. For example, if you set this property to marker0 str}, and marker0 occurs on samples 1,000 and 2,000 of a script, then the RF Output will be blanked (attenuated) between samples 1,000 and 2,000. + + PXIe-5645: This property is ignored if you are using the I/Q ports. + + PXIe-5840/5841: RF blanking does not occur for frequencies below 120MHz. + + For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any :py:meth:`nirfsg.Session.Reset` or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call :py:meth:`nirfsg.Session.reset_with_options` or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Valid Values**: + + +-----------+---------------------------------+ + | Value | Description | + +===========+=================================+ + | "" | RF blanking is disabled. | + +-----------+---------------------------------+ + | "Marker0" | RF blanking is tied to marker0. | + +-----------+---------------------------------+ + | "Marker1" | RF blanking is tied to marker1. | + +-----------+---------------------------------+ + | "Marker2" | RF blanking is tied to marker2. | + +-----------+---------------------------------+ + | "Marker3" | RF blanking is tied to marker3. | + +-----------+---------------------------------+ + + .. note:: The shortest supported blanking interval is eight microseconds. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:RF Blanking Source** + - C Attribute: **NIRFSG_ATTR_RF_BLANKING_SOURCE** + +rf_in_lo_export_enabled +----------------------- + + .. py:attribute:: rf_in_lo_export_enabled + + Specifies whether to enable the RF IN LO OUT terminal on the PXIe-5840/5841. + + Set this property to :py:data:`~nirfsg.RFInLoExportEnabled.ENABLE` to export the LO signal from the RF IN LO OUT terminal. + + When this property is enabled, if the :py:attr:`nirfsg.Session.lo_source` property is set to LO_In and you do not set the :py:attr:`nirfsg.Session.lo_frequency` or :py:attr:`nirfsg.Session.upconverter_center_frequency` properties, NI-RFSG rounds the LO frequency to approximately an LO step size as if the source was OnboardClock. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. + + **Default Value:** :py:data:`~nirfsg.RFInLoExportEnabled.UNSPECIFIED` + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +====================================================+=========================================================================================================================================+ + | :py:data:`~nirfsg.RFInLoExportEnabled.DISABLE` | The RF In local oscillator signal is not present at the front panel LO OUT connector. | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.RFInLoExportEnabled.ENABLE` | The RF In local oscillator signal is present at the front panel LO OUT connector. | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.RFInLoExportEnabled.UNSPECIFIED` | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | + +----------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------+ + | Characteristic | Value | + +=======================+===========================+ + | Datatype | enums.RFInLoExportEnabled | + +-----------------------+---------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:RF In LO Export Enabled** + - C Attribute: **NIRFSG_ATTR_RF_IN_LO_EXPORT_ENABLED** + +script_trigger_terminal_name +---------------------------- + + .. py:attribute:: script_trigger_terminal_name + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/ScriptTrigger *X*, where *AWGName* is the name of your associated AWG module in MAX and *X* is Script Trigger 0 through 3. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ScriptTrigger *X*, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Script Trigger 0 through 3. + + PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX and *X* is Script Trigger 0 through 3. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX, *ChannelNumber* is the channel number (0 or 1), and *X* is Script Trigger 0 through 3. + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.get_terminal_name` + + + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_terminal_name` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.script_trigger_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | str | + +-----------------------+-----------------+ + | Permissions | read only | + +-----------------------+-----------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Terminal Name** + - C Attribute: **NIRFSG_ATTR_SCRIPT_TRIGGER_TERMINAL_NAME** + +script_trigger_type +------------------- + + .. py:attribute:: script_trigger_type + + Specifies the Script Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.ScriptTriggerType.NONE` + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Trigger Types `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_digital_edge_script_trigger` + + **Defined Values**: + + +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +====================================================+===========================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsg.ScriptTriggerType.NONE` | No trigger is configured. Signal generation starts immediately. | + +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_EDGE` | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. | + +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerType.DIGITAL_LEVEL` | The data operation does not start until the digital level is detected. The source of the digital level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property, and the active level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_active_level` property. | + +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.ScriptTriggerType.SOFTWARE` | The data operation does not start until a software trigger occurs. You can create a software event by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. | + +----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.script_trigger_type` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.ScriptTriggerType | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | script_triggers | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Script:Type** + - C Attribute: **NIRFSG_ATTR_SCRIPT_TRIGGER_TYPE** + +selected_path +------------- + + .. py:attribute:: selected_path + + Specifies which path to configure to generate a signal. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Signal Path:Advanced:Selected Path** + - C Attribute: **NIRFSG_ATTR_SELECTED_PATH** + +selected_ports +-------------- + + .. py:attribute:: selected_ports + + Specifies the port to configure. + + **Valid Values**: + + PXIe-5644/5645/5646, PXIe-5820/5840/5841: "" (empty string) + + PXIe-5830: if0, if1 + + PXIe-5831/5832: if0, if1, rf*0-1*/port*x*, where *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and *x* is the port number on the mmRH-5582 front panel. + + **Default Value:** + + PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860: "" (empty string) + + PXIe-5830/5831/5832: if0 + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + :py:attr:`nirfsg.Session.available_ports` + + + + .. note:: When using RF list mode, ports cannot be shared with NI-RFSA. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Signal Path:Selected Ports** + - C Attribute: **NIRFSG_ATTR_SELECTED_PORTS** + +selected_script +--------------- + + .. py:attribute:: selected_script + + Specifies the script in onboard memory to generate upon calling the :py:meth:`nirfsg.Session._initiate` method when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.SCRIPT`. + + The :py:attr:`nirfsg.Session.selected_script` property is ignored when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.CW`. To set the :py:attr:`nirfsg.Session.selected_script` property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + `Scripting Instructions `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Selected Script** + - C Attribute: **NIRFSG_ATTR_SELECTED_SCRIPT** + +self_calibration_temperature +---------------------------- + + .. py:attribute:: self_calibration_temperature + + Indicates, in degrees Celsius, the temperature of the device at the time of the last self calibration. + + **Supported Devices:** PXIe-5644/5645/5646 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Self Calibration:Last Self Calibration Temperature** + - C Attribute: **NIRFSG_ATTR_SELF_CALIBRATION_TEMPERATURE** + +serial_number +------------- + + .. py:attribute:: serial_number + + Returns the serial number of the RF module. If the NI-RFSG session is controlling multiple modules, this property returns the serial number of the primary RF module. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Serial Number** + - C Attribute: **NIRFSG_ATTR_SERIAL_NUMBER** + +signal_bandwidth +---------------- + + .. py:attribute:: signal_bandwidth + + Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× :py:attr:`nirfsg.Session.iq_rate`). + + NI-RFSG defines *signal bandwidth* as twice the maximum baseband signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* :sub:`max` - *f* :sub:`min` . + + This property applies only when the :py:attr:`nirfsg.Session.generation_mode` property is set to :py:data:`~nirfsg.GenerationMode.ARB_WAVEFORM` or :py:data:`~nirfsg.GenerationMode.SCRIPT`, except for when using the PXIe-5830/5831/5832/5840/5841, which supports setting this property in all supported generation modes. To set the :py:attr:`nirfsg.Session.signal_bandwidth` property, the NI-RFSG device must be in the Configuration state. + + PXI-5670/5671, PXIe-5672: Based on your signal bandwidth, NI-RFSG determines whether to configure the upconverter center frequency in increments of 1MHz or 5MHz. Failure to configure this property may result in the signal being placed outside the upconverter passband. + + PXIe-5644/5645/5646, PXIe-5673/5673E: This property is used only for error-checking purposes. Otherwise, this property is ignored. + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Based on your signal bandwidth, NI-RFSG decides the equalized bandwidth. If this property is not set, NI-RFSG uses the maximum available signal bandwidth. For the PXIe-5840/5841, the maximum allowed signal bandwidth depends on the upconverter center frequency. Refer to the specifications document for your device for more information about signal bandwidth. The device specifications depend on the signal bandwidth. + + **Units**: hertz (Hz) + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Phase-Locked Loop Bandwidth `_ + + `Frequency Tuning Times `_ + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Signal Bandwidth (Hz)** + - C Attribute: **NIRFSG_ATTR_SIGNAL_BANDWIDTH** + +specific_driver_class_spec_major_version +---------------------------------------- + + .. py:attribute:: specific_driver_class_spec_major_version + + Returns the major version number of the class specification with which NI-RFSG is compliant. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Class Specification Major Version** + - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION** + +specific_driver_class_spec_minor_version +---------------------------------------- + + .. py:attribute:: specific_driver_class_spec_minor_version + + Returns the minor version number of the class specification with which NI-RFSG is compliant. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Class Specification Minor Version** + - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + Returns a string that contains a brief description of NI-RFSG. This property returns + + National Instruments RF Signal Generator Instrument Driver. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** + - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +specific_driver_prefix +---------------------- + + .. py:attribute:: specific_driver_prefix + + Returns a string that contains the prefix for NI-RFSG. The name of each user-callable method in NI-RFSG starts with this prefix. This property returns + + niRFSG. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Prefix** + - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_PREFIX** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + Returns a string that contains additional version information about NI-RFSG. For example, NI-RFSG can return + + Driver: NI-RFSG14.5.0, Compiler: MSVC9.00, Components: IVI Engine4.00, VISA-Spec4.00 as the value of this property. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** + - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + Returns a string that contains the name of the vendor that supplies NI-RFSG. This property returns + + National Instruments. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** + - C Attribute: **NIRFSG_ATTR_SPECIFIC_DRIVER_VENDOR** + +started_event_terminal_name +--------------------------- + + .. py:attribute:: started_event_terminal_name + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartedEvent, where *AWGName* is the name of your associated AWG module in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartedEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841: /*ModuleName*/ao/0/StartedEvent, where *ModuleName* is the name of your device in MAX. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartedEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Started Event Terminal Name** + - C Attribute: **NIRFSG_ATTR_STARTED_EVENT_TERMINAL_NAME** + +start_trigger_terminal_name +--------------------------- + + .. py:attribute:: start_trigger_terminal_name + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXIe-5654/5654 with PXIe-5696: /*ModuleName*/StartTrigger, where *ModuleName* is the name of your device in MAX. + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartTrigger, where *ModuleName* is the name of your associated AWG module in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/StartTrigger, where *ModuleName* is the name of your device in MAX. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.get_terminal_name` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Terminal Name** + - C Attribute: **NIRFSG_ATTR_START_TRIGGER_TERMINAL_NAME** + +start_trigger_type +------------------ + + .. py:attribute:: start_trigger_type + + Specifies the Start Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** :py:data:`~nirfsg.StartTriggerType.NONE` + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Trigger Types `_ + + **High-Level Methods**: + + - :py:meth:`nirfsg.Session.configure_digital_edge_start_trigger` + - :py:meth:`nirfsg.Session.configure_software_start_trigger` + - :py:meth:`nirfsg.Session.disable_start_trigger` + + **Defined Values**: + + +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +==================================================+============================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsg.StartTriggerType.NONE` | No trigger is configured. | + +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.StartTriggerType.DIGITAL_EDGE` | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified in the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. | + +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.StartTriggerType.SOFTWARE` | The data operation does not start until a software event occurs. You may create a software trigger by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. | + +--------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.StartTriggerType | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggers:Start:Type** + - C Attribute: **NIRFSG_ATTR_START_TRIGGER_TYPE** + +streaming_enabled +----------------- + + .. py:attribute:: streaming_enabled + + Enables and disables continuous streaming of waveform data. + + **Default Value:** False + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + **Defined Values**: + + +-------+------------------------+ + | Value | Description | + +=======+========================+ + | True | Streaming is enabled. | + +-------+------------------------+ + | False | Streaming is disabled. | + +-------+------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Data Transfer:Streaming:Streaming Enabled** + - C Attribute: **NIRFSG_ATTR_STREAMING_ENABLED** + +streaming_space_available_in_waveform +------------------------------------- + + .. py:attribute:: streaming_space_available_in_waveform + + Indicates the space available, in samples, in the streaming waveform for writing new data. For optimal performance, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. This waveform size ensures that writes do not have to wrap around from the end to the beginning of the waveform buffer. + + To read this property, the NI-RFSG device must be in the Committed state. + + **Units**: samples + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Data Transfer:Streaming:Space Available In Streaming Waveform (Samples)** + - C Attribute: **NIRFSG_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM** + +streaming_waveform_name +----------------------- + + .. py:attribute:: streaming_waveform_name + + Specifies the name of the waveform used to continually stream data during generation. + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Streaming Waveform Data `_ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Data Transfer:Streaming:Streaming Waveform Name** + - C Attribute: **NIRFSG_ATTR_STREAMING_WAVEFORM_NAME** + +streaming_write_timeout +----------------------- + + .. py:attribute:: streaming_write_timeout + + Indicates the maximum amount of time allowed to complete a streaming write operation. + + **Default Value:** 10.0seconds + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Streaming Waveform Data `_ + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Data Transfer:Streaming:Streaming Write Timeout** + - C Attribute: **NIRFSG_ATTR_STREAMING_WRITE_TIMEOUT** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + Returns a list of supported devices. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | list of str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | None | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** + - C Attribute: **NIRFSG_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +sync_sample_clock_dist_line +--------------------------- + + .. py:attribute:: sync_sample_clock_dist_line + + Specifies which external trigger line distributes the Sample Clock sync signal. When synchronizing the Sample Clock between multiple devices, configure all devices to use the same Sample Clock sync distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5646 + + **Related Topics** + + `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Sample Clock Dist Line** + - C Attribute: **NIRFSG_ATTR_SYNC_SAMPLE_CLOCK_DIST_LINE** + +sync_sample_clock_master +------------------------ + + .. py:attribute:: sync_sample_clock_master + + Specifies whether the device is the master device when synchronizing the Sample Clock between multiple devices. The master device distributes the Sample Clock sync signal to all devices in the system through the Sample Clock sync distribution line. + + When synchronizing the Sample Clock, one device must always be designated as the master. The master device actively drives the Sample Clock sync distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5646 + + **Related Topics** + + `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. + + **Defined Values**: + + +-------+---------------------------------------------------------------------+ + | Value | Description | + +=======+=====================================================================+ + | True | The device is the master device for synchronizing the Sample Clock. | + +-------+---------------------------------------------------------------------+ + | False | The device is not the master for synchronizing the Sample Clock. | + +-------+---------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Sample Clock Master** + - C Attribute: **NIRFSG_ATTR_SYNC_SAMPLE_CLOCK_MASTER** + +sync_script_trigger_dist_line +----------------------------- + + .. py:attribute:: sync_script_trigger_dist_line + + Specifies which external trigger line distributes the synchronized Script Trigger signal. When synchronizing the Script Trigger, configure all devices to use the same Script Trigger distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Script Trigger `_ + + `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Script Trigger Dist Line** + - C Attribute: **NIRFSG_ATTR_SYNC_SCRIPT_TRIGGER_DIST_LINE** + +sync_script_trigger_master +-------------------------- + + .. py:attribute:: sync_script_trigger_master + + Specifies whether the device is the master device when synchronizing the Script Trigger. + + The master device distributes the synchronized Script Trigger to all devices in the system through the Script Trigger distribution line. + + When synchronizing the Script trigger, one device must always be designated as the master. The master device actively drives the Script Trigger distribution line. For slave devices, set the :py:attr:`nirfsg.Session.script_trigger_type` property to digital edge, and set the :py:attr:`nirfsg.Session.digital_edge_script_trigger_source` property to sync_script. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Script Trigger `_ + + `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + + **Defined Values**: + + +-------+-----------------------------------------------------------------------+ + | Value | Description | + +=======+=======================================================================+ + | True | The device is the master device for synchronizing the Script Trigger. | + +-------+-----------------------------------------------------------------------+ + | False | The device is not the master for synchronizing the Script Trigger. | + +-------+-----------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Script Trigger Master** + - C Attribute: **NIRFSG_ATTR_SYNC_SCRIPT_TRIGGER_MASTER** + +sync_start_trigger_dist_line +---------------------------- + + .. py:attribute:: sync_start_trigger_dist_line + + Specifies which external trigger line distributes the synchronized Start Trigger signal. When synchronizing the Start Trigger, configure all devices to use the same Start Trigger distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Start Trigger `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Start Trigger Dist Line** + - C Attribute: **NIRFSG_ATTR_SYNC_START_TRIGGER_DIST_LINE** + +sync_start_trigger_master +------------------------- + + .. py:attribute:: sync_start_trigger_master + + Specifies whether the device is the master device when synchronizing the Start Trigger. The master device distributes the synchronized Start Trigger to all devices in the system through the Start Trigger distribution line. + + When synchronizing the Start Trigger, one device must always be designated as the master. The master device actively drives the Start Trigger distribution line. For slave devices, set the :py:attr:`nirfsg.Session.start_trigger_type` property to digital edge, and set the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property to sync_script. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Start Trigger `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + + **Defined Values**: + + +-------+----------------------------------------------------------------------+ + | Value | Description | + +=======+======================================================================+ + | True | The device is the master device for synchronizing the Start Trigger. | + +-------+----------------------------------------------------------------------+ + | False | The device is not the master for synchronizing the Start Trigger. | + +-------+----------------------------------------------------------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Triggers:Sync Start Trigger Master** + - C Attribute: **NIRFSG_ATTR_SYNC_START_TRIGGER_MASTER** + +temperature_read_interval +------------------------- + + .. py:attribute:: temperature_read_interval + + Specifies the minimum time between temperature sensor readings. + + **Units:** Seconds + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Characteristics:Temperature Read Interval** + - C Attribute: **NIRFSG_ATTR_TEMPERATURE_READ_INTERVAL** + +thermal_correction_headroom_range +--------------------------------- + + .. py:attribute:: thermal_correction_headroom_range + + Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the :py:attr:`nirfsg.Session.device_temperature` property. + + For example, if this property is set to 5.0, and the device is self-calibrated at 35°C, then you can expect to run the device from 30°C to 40°C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance or DSP overflows. + + **Units:** degrees Celsius (°C) + + **Default Value**: + + **PXIe-5830/5831/5832/5842/5860**: 5 + + **PXIe-5840/5841**: 10 + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Thermal Correction Headroom Range (Degrees C)** + - C Attribute: **NIRFSG_ATTR_THERMAL_CORRECTION_HEADROOM_RANGE** + +thermal_correction_temperature_resolution +----------------------------------------- + + .. py:attribute:: thermal_correction_temperature_resolution + + Specifies the temperature change, in degrees Celsius, that is required before NI-RFSG recalculates the thermal correction settings when entering the Generation state. + + **Units:** degrees Celsius (°C) + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Default Values:** + + PXIe-5830/5831/5832/5842/5860: 0.2 + + PXIe-5840/5841: 1.0 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:Thermal Correction Temperature Resolution (Degrees C)** + - C Attribute: **NIRFSG_ATTR_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION** + +timer_event_interval +-------------------- + + .. py:attribute:: timer_event_interval + + Specifies the time before the timer emits an event after the task is started and specifies the time interval between Timer events after the first event. + + **Units**: seconds (s) + + **Default Value:** 0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + + + .. note:: For the PXIe-5820/5840/5841/5842/5860, this property must be set for the timer to start. If you do not set this property, the timer is disabled. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Events:Timer:Interval** + - C Attribute: **NIRFSG_ATTR_TIMER_EVENT_INTERVAL** + +upconverter_center_frequency +---------------------------- + + .. py:attribute:: upconverter_center_frequency + + Indicates the center frequency of the passband containing the upconverted RF signal. Writing a value to this property while using the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, or PXIe-5820/5840/5841 device enables in-band retuning. In-band retuning increases the speed of frequency sweeps by reducing the amount of upconverter retunes. + + **Units**: hertz (Hz) + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + + + .. note:: - This property is read/write on the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842, and is read-only on the PXI-5670/5671. + + - Resetting this property disables in-band retuning, however, for the PXIe-5820, in-band retuning is always enabled. + + - For the PXIe-5820, the only valid value for this property is 0. + + - Setting this property while the PXIe-5644/5645/5646, PXIe-5673/5673E, or PXIe-5820/5830/5831/5832/5840/5841/5842 device is generating has no effect until a dynamic property is set. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Upconverter:Center Frequency (Hz)** + - C Attribute: **NIRFSG_ATTR_UPCONVERTER_CENTER_FREQUENCY** + +upconverter_frequency_offset +---------------------------- + + .. py:attribute:: upconverter_frequency_offset + + This property offsets the :py:attr:`nirfsg.Session.upconverter_center_frequency` from the RF frequency. Use this property to keep the local oscillator (LO) leakage at a determined offset from the RF signal. + + **Valid Values:** + + PXIe-5644/5645: -42MHz to +42MHz + + PXIe-5646: -100MHz to +100MHz + + PXIe-5830/5831/5832/5840/5841: -500MHz to +500MHz + + PXI-5842 (500 MHz bandwidth option): -250MHz to +250MHz + + PXI-5842 (1 GHz bandwidth option): -500MHz to +500MHz + + PXI-5842 (2 GHz bandwidth option): -1GHz to +1GHz + + PXIe-5842 (4 GHz bandwidth option) using the Standard personality: -1GHz to +1GHz + + PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: -2GHz to +2GHz + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + + + .. note:: - You cannot set the :py:attr:`nirfsg.Session.upconverter_center_frequency` property or the :py:attr:`nirfsg.Session.arb_carrier_frequency` property at the same time as the :py:attr:`nirfsg.Session.upconverter_frequency_offset` property. + + - Resetting this property disables the upconverter frequency offset. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device Specific:Vector Signal Transceiver:Upconverter:Frequency Offset (Hz)** + - C Attribute: **NIRFSG_ATTR_UPCONVERTER_FREQUENCY_OFFSET** + +upconverter_frequency_offset_mode +--------------------------------- + + .. py:attribute:: upconverter_frequency_offset_mode + + Specifies whether to allow NI-RFSG to select the upconverter frequency offset. You can either set an offset yourself or let NI-RFSG select one for you. + + Placing the upconverter center frequency outside the bandwidth of your waveform can help avoid issues such as LO leakage. + + To set an offset yourself, set this property to :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` or :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.USER_DEFINED`, and set either the :py:attr:`nirfsg.Session.upconverter_center_frequency` or the :py:attr:`nirfsg.Session.upconverter_frequency_offset` property. + + To allow NI-RFSG to automatically select the upconverter frequency offset, set this property to :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` or :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` and set the :py:attr:`nirfsg.Session.signal_bandwidth` to describe the bandwidth of your waveform. The signal bandwidth must be no greater than half the value of the :py:attr:`nirfsg.Session.device_instantaneous_bandwidth` property, minus a device-specific guard band. Do not set the :py:attr:`nirfsg.Session.upconverter_center_frequency` or :py:attr:`nirfsg.Session.upconverter_frequency_offset` properties. If all conditions are met, NI-RFSG places the upconverter center frequency outside the signal bandwidth. Set this property to :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` if you want to receive an error any time NI-RFSG is unable to apply automatic offset. + + When you set an offset yourself or do not use an offset, the reference frequency for gain is near the upconverter center frequency, and :py:attr:`nirfsg.Session.upconverter_frequency_offset_mode` returns :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.USER_DEFINED`. When NI-RFSG automatically sets an offset, the reference frequency for gain is near the :py:attr:`nirfsg.Session.frequency` and :py:attr:`nirfsg.Session.upconverter_frequency_offset_mode` returns :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE`. + + **Default Value:** :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` + + **Supported Devices**: PXIe-5830/5831/5832/5841/5842 + + **Related Topics** + + `PXIe-5830 Automatic Frequency Offset `_ + + `PXIe-5831/5832 Automatic Frequency Offset `_ + + `PXIe-5841 Automatic Frequency Offset `_ + + **Defined Values**: + + +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +================================================================+============================================================================================================================================================================================================================================================================================================================+ + | :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSG returns an error if the :py:attr:`nirfsg.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. | + +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.AUTO` | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. | + +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.USER_DEFINED` | NI-RFSG uses the offset that you specified with the :py:attr:`nirfsg.Session.upconverter_frequency_offset` or :py:attr:`nirfsg.Session.upconverter_center_frequency` properties. | + +----------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. note:: Below 120 MHz, the PXIe-5841 does not use an LO and :py:data:`~nirfsg.UpconverterFrequencyOffsetMode.ENABLE` is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------------------+ + | Characteristic | Value | + +=======================+======================================+ + | Datatype | enums.UpconverterFrequencyOffsetMode | + +-----------------------+--------------------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Upconverter:Frequency Offset Mode** + - C Attribute: **NIRFSG_ATTR_UPCONVERTER_FREQUENCY_OFFSET_MODE** + +upconverter_gain +---------------- + + .. py:attribute:: upconverter_gain + + Specifies the gain the upconverter applies to the signal. + + **Units**: dB + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: This property is read/write on the PXI-5610 and PXIe-5611 and is read-only on the PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Upconverter:Gain (dB)** + - C Attribute: **NIRFSG_ATTR_UPCONVERTER_GAIN** + +waveform_iq_rate +---------------- + + .. py:attribute:: waveform_iq_rate + + Specifies the I/Q rate of the waveform. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. + + `Digital Upconverter `_ + + + + + .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_iq_rate` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_iq_rate` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | waveforms | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Attributes:Waveform IQ Rate (S/s)** + - C Attribute: **NIRFSG_ATTR_WAVEFORM_IQ_RATE** + +waveform_papr +------------- + + .. py:attribute:: waveform_papr + + Specifies the peak-to-average power ratio (PAPR). + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_papr` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_papr` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | waveforms | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Attributes:Waveform PAPR (dB)** + - C Attribute: **NIRFSG_ATTR_WAVEFORM_PAPR** + +waveform_rf_blanking +-------------------- + + .. py:attribute:: waveform_rf_blanking + + **Defined Values**: + + Name (Value): Description + + :py:data:`~nirfsg.RFBlanking.DISABLE` (0): RF blanking is disabled. + + :py:data:`~nirfsg.RFBlanking.ENABLE` (1): RF blanking is enabled. + + **Default Value:** :py:data:`~nirfsg.RFBlanking.DISABLE` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + Enables or disables RF blanking. + + +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ + | :py:attr:`nirfsg.Session.rf_blanking_source` | :py:attr:`nirfsg.Session.waveform_rf_blanking` | Behaviour | + +===============================================================================================================================================================+================================================+===========================================================================================================+ + | "" (empty string) | :py:data:`~nirfsg.RFBlanking.DISABLE` | No blanking performed. | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ + | "" (empty string) | :py:data:`~nirfsg.RFBlanking.ENABLE` | Blanking performed based on burst start and stop values and blanking source set to private marker. | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_MARKER0`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER1`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER2`, or :py:data:`~nirfsg.NIRFSG_VAL_MARKER3` | :py:data:`~nirfsg.RFBlanking.DISABLE` | Blanking performed based on the marker locations for the marker that the user set in the blanking source. | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.NIRFSG_VAL_MARKER0`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER1`, :py:data:`~nirfsg.NIRFSG_VAL_MARKER2`, or :py:data:`~nirfsg.NIRFSG_VAL_MARKER3` | :py:data:`~nirfsg.RFBlanking.ENABLE` | Error is shown. | + +---------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ + + .. note:: For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any :py:meth:`nirfsg.Session.Reset` or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call :py:meth:`nirfsg.Session.reset_with_options` or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_rf_blanking` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_rf_blanking` + + The following table lists the characteristics of this property. + + +-----------------------+------------------+ + | Characteristic | Value | + +=======================+==================+ + | Datatype | enums.RFBlanking | + +-----------------------+------------------+ + | Permissions | read-write | + +-----------------------+------------------+ + | Repeated Capabilities | waveforms | + +-----------------------+------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Attributes:Waveform RF Blanking** + - C Attribute: **NIRFSG_ATTR_WAVEFORM_RF_BLANKING** + +waveform_runtime_scaling +------------------------ + + .. py:attribute:: waveform_runtime_scaling + + Specifies the waveform runtime scaling. The waveform runtime scaling is applied to the waveform data before any other signal processing. + + **Units**: dB + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860, PXIe-5841 with PXIe-5655 + + + + + .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_runtime_scaling` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_runtime_scaling` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | waveforms | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Attributes:Waveform Runtime Scaling** + - C Attribute: **NIRFSG_ATTR_WAVEFORM_RUNTIME_SCALING** + +waveform_signal_bandwidth +------------------------- + + .. py:attribute:: waveform_signal_bandwidth + + Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× :py:attr:`nirfsg.Session.iq_rate`). + + **Units**: hertz (Hz) + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + + .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_signal_bandwidth` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_signal_bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | waveforms | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Attributes:Waveform Signal Bandwidth (Hz)** + - C Attribute: **NIRFSG_ATTR_WAVEFORM_SIGNAL_BANDWIDTH** + +waveform_waveform_size +---------------------- + + .. py:attribute:: waveform_waveform_size + + Specifies the size of the waveform specified by an active channel. + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5841 with PXIe-5655/5842/5860 + + + + + .. tip:: This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_waveform_size` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_waveform_size` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | waveforms | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Waveform Attributes:Waveform Size** + - C Attribute: **NIRFSG_ATTR_WAVEFORM_WAVEFORM_SIZE** + +write_waveform_burst_detection +------------------------------ + + .. py:attribute:: write_waveform_burst_detection + + Enables the detection of burst start and burst stop locations in the waveform. You can read the detected burst start and burst stop locations using :py:meth:`nirfsg.Session.get_waveform_burst_start_locations` and :py:meth:`nirfsg.Session.get_waveform_burst_stop_locations` methods respectively. + + **Default Value:** :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------------------------------------------------+------------------------------+ + | Value | Description | + +========================================================+==============================+ + | :py:data:`~nirfsg.WriteWaveformBurstDetection.ENABLE` | Burst detection is enabled. | + +--------------------------------------------------------+------------------------------+ + | :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE` | Burst detection is disabled. | + +--------------------------------------------------------+------------------------------+ + + .. note:: - When you download a waveform using :py:meth:`nirfsg.Session.ReadAndDownloadWaveformFromFileTdms` method and if :py:attr:`nirfsg.Session.waveform_rf_blanking` property is enabled, you must set the :py:attr:`nirfsg.Session.write_waveform_burst_detection` property to :py:data:`~nirfsg.WriteWaveformBurstDetection.DISABLE`. + + - For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any :py:meth:`nirfsg.Session.Reset` or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call :py:meth:`nirfsg.Session.reset_with_options` or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------------+ + | Characteristic | Value | + +=======================+===================================+ + | Datatype | enums.WriteWaveformBurstDetection | + +-----------------------+-----------------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Write Waveform Burst Detection:Enabled** + - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_BURST_DETECTION** + +write_waveform_burst_detection_mode +----------------------------------- + + .. py:attribute:: write_waveform_burst_detection_mode + + Specifies the algorithm that NI-RFSG uses to detect the burst start and burst stop locations in the waveform when burst detection is enabled using the :py:attr:`nirfsg.Session.write_waveform_burst_detection` property. When you set :py:attr:`nirfsg.Session.write_waveform_burst_detection_mode` to :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.AUTO`, NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. To fine-tune the burst detection process parameters yourself, you can set this property to :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.MANUAL` and specify the burst detection parameters using the write waveform burst detection minimum quiet time, :py:attr:`nirfsg.Session.write_waveform_burst_detection_power_threshold`, write waveform burst detection minimum burst time properties. + + **Default Value:** :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.AUTO` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------------------------+---------------------------------------------------------------------------------------------------+ + | Value | Description | + +===========================================================+===================================================================================================+ + | :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.AUTO` | NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. | + +-----------------------------------------------------------+---------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.WriteWaveformBurstDetectionMode.MANUAL` | User sets the burst detection parameters. | + +-----------------------------------------------------------+---------------------------------------------------------------------------------------------------+ + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------------------------+ + | Characteristic | Value | + +=======================+=======================================+ + | Datatype | enums.WriteWaveformBurstDetectionMode | + +-----------------------+---------------------------------------+ + | Permissions | read-write | + +-----------------------+---------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Write Waveform Burst Detection:Mode** + - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_BURST_DETECTION_MODE** + +write_waveform_burst_detection_power_threshold +---------------------------------------------- + + .. py:attribute:: write_waveform_burst_detection_power_threshold + + Specifies the relative power level at which burst start or stop locations are detected. The threshold is relative to the peak power in the waveform. NI-RFSG detects burst start (or burst stop) locations when the signal exceeds (or falls below) the level specified by this property. This property is ignored when you disable the :py:attr:`nirfsg.Session.write_waveform_burst_detection` property or when you set the :py:attr:`nirfsg.Session.write_waveform_burst_detection_mode` property to :py:data:`~nirfsg.NIRFSG_VAL_AUTO`. + + **Units:** dB + + **Default Value:** 0 + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Write Waveform Burst Detection:Power Threshold** + - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_BURST_DETECTION_POWER_THRESHOLD** + +write_waveform_normalization +---------------------------- + + .. py:attribute:: write_waveform_normalization + + Specifies whether to perform the normalization on a waveform. + + **Default Value:** :py:data:`~nirfsg.WriteWaveformNormalization.DISABLE` + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +=======================================================+=========================================================================================================================+ + | :py:data:`~nirfsg.WriteWaveformNormalization.ENABLE` | Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 | + +-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ + | :py:data:`~nirfsg.WriteWaveformNormalization.DISABLE` | Disables normalization on the waveform. | + +-------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ + + .. note:: You can not set :py:attr:`nirfsg.Session.write_waveform_normalization` and :py:attr:`nirfsg.Session.power_level_type` properties at the same time. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.WriteWaveformNormalization | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Arb:Write Waveform Normalization** + - C Attribute: **NIRFSG_ATTR_WRITE_WAVEFORM_NORMALIZATION** + +yig_main_coil_drive +------------------- + + .. py:attribute:: yig_main_coil_drive + + Adjusts the dynamics of the current driving the YIG main coil. + + **Default Value:** :py:data:`~nirfsg.YigMainCoilDrive.MANUAL` + + **Supported Devices:** PXIe-5653 + + **Defined Values**: + + +------------------------------------------+--------------------------------------------------------+ + | Value | Description | + +==========================================+========================================================+ + | :py:data:`~nirfsg.NIRFSG_VAL_SLOW` | Adjusts the YIG main coil for an underdamped response. | + +------------------------------------------+--------------------------------------------------------+ + | :py:data:`~nirfsg.YigMainCoilDrive.FAST` | Adjusts the YIG main coil for an overdamped response. | + +------------------------------------------+--------------------------------------------------------+ + + .. note:: Setting this property to :py:data:`~nirfsg.YigMainCoilDrive.FAST` on the PXIe-5653 allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.YigMainCoilDrive | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | None | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **RF:Advanced:YIG Main Coil Drive** + - C Attribute: **NIRFSG_ATTR_YIG_MAIN_COIL_DRIVE** + + +NI-TClk Support +=============== + + .. py:attribute:: tclk + + This is used to get and set NI-TClk attributes on the session. + + .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. + + +.. contents:: Session diff --git a/docs/nirfsg/conf.py b/docs/nirfsg/conf.py new file mode 100644 index 0000000000..110386ef86 --- /dev/null +++ b/docs/nirfsg/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-RFSG Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-RFSG Python API' +copyright = '2025-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.2.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NIRFSGPythonAPI.tex', 'NI-RFSG Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nirfsgpythonapi', 'NI-RFSG Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NIRFSGPythonAPI', 'NI-RFSG Python API Documentation', + author, 'NIRFSGPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nirfsg/enums.rst b/docs/nirfsg/enums.rst new file mode 100644 index 0000000000..44b022fdea --- /dev/null +++ b/docs/nirfsg/enums.rst @@ -0,0 +1,1990 @@ +Enums +===== + +Enums used in NI-RFSG + +.. py:currentmodule:: nirfsg + + +AllowOutOfSpecificationUserSettings +----------------------------------- + +.. py:class:: AllowOutOfSpecificationUserSettings + + .. py:attribute:: AllowOutOfSpecificationUserSettings.DISABLE + + + + Disables out-of-specification user settings. + + + + + + .. py:attribute:: AllowOutOfSpecificationUserSettings.ENABLE + + + + Enables out-of-specification user settings. + + + + + +AmpPath +------- + +.. py:class:: AmpPath + + .. py:attribute:: AmpPath.HIGH_POWER + + + + Sets the amplification path to use the high power path. + + + + + + .. py:attribute:: AmpPath.LOW_HARMONIC + + + + Sets the amplification path to use the low harmonic path. + + + + + +AnalogModulationFmBand +---------------------- + +.. py:class:: AnalogModulationFmBand + + .. py:attribute:: AnalogModulationFmBand.NARROWBAND + + + + Specifies narrowband frequency modulation. + + + + + + .. py:attribute:: AnalogModulationFmBand.WIDEBAND + + + + Specifies wideband frequency modulation. + + + + + +AnalogModulationFmNarrowbandIntegrator +-------------------------------------- + +.. py:class:: AnalogModulationFmNarrowbandIntegrator + + .. py:attribute:: AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ + + + + Specifies a range from 100Hz to 1kHz. + + + + + + .. py:attribute:: AnalogModulationFmNarrowbandIntegrator.RANGE_1_KILOHERTZ_TO_10_KILOHERTZ + + + + Specifies a range from 1kHz to 10kHz. + + + + + + .. py:attribute:: AnalogModulationFmNarrowbandIntegrator.RANGE_10_KILOHERTZ_TO_100_KILOHERTZ + + + + Specifies a range from 10kHz to 100kHz. + + + + + +AnalogModulationPmMode +---------------------- + +.. py:class:: AnalogModulationPmMode + + .. py:attribute:: AnalogModulationPmMode.HIGH_DEVIATION + + + + Specifies high deviation. High deviation comes at the expense of a higher phase noise. + + + + + + .. py:attribute:: AnalogModulationPmMode.LOW_PHASE_NOISE + + + + Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. + + + + + +AnalogModulationType +-------------------- + +.. py:class:: AnalogModulationType + + .. py:attribute:: AnalogModulationType.NONE + + + + Disables analog modulation. + + + + + + .. py:attribute:: AnalogModulationType.FM + + + + Specifies that the analog modulation type is FM. + + + + + + .. py:attribute:: AnalogModulationType.PM + + + + Specifies that the analog modulation type is PM. + + + + + + .. py:attribute:: AnalogModulationType.AM + + + + Specifies that the analog modulation type is AM. + + + + + +ArbOnboardSampleClockMode +------------------------- + +.. py:class:: ArbOnboardSampleClockMode + + .. py:attribute:: ArbOnboardSampleClockMode.HIGH_RESOLUTION + + + + Sample rates are generated by a high-resolution clock. + + + + + + .. py:attribute:: ArbOnboardSampleClockMode.DIVIDE_DOWN + + + + Sample rates are generated by dividing the source frequency. + + + + + +ArbSampleClockSource +-------------------- + +.. py:class:: ArbSampleClockSource + + .. py:attribute:: ArbSampleClockSource.ONBOARD_CLOCK + + + + Uses the AWG module onboard clock as the Sample Clock source. + + + + + + .. py:attribute:: ArbSampleClockSource.CLK_IN + + + + Uses the external clock as the Sample Clock source. + + + + + +AutomaticLevelControl +--------------------- + +.. py:class:: AutomaticLevelControl + + .. py:attribute:: AutomaticLevelControl.DISABLE + + + + Disables ALC. + + + + + + .. py:attribute:: AutomaticLevelControl.ENABLE + + + + Enables the ALC. + + + + + +AutomaticPowerSearch +-------------------- + +.. py:class:: AutomaticPowerSearch + + .. py:attribute:: AutomaticPowerSearch.DISABLE + + + + Disables automatic power search. + + + + + + .. py:attribute:: AutomaticPowerSearch.ENABLE + + + + Enables automatic power search. + + + + + +AutomaticThermalCorrection +-------------------------- + +.. py:class:: AutomaticThermalCorrection + + .. py:attribute:: AutomaticThermalCorrection.DISABLE + + + + Automatic thermal correction is disabled. + + + + + + .. py:attribute:: AutomaticThermalCorrection.ENABLE + + + + Automatic thermal correction is enabled. + + + + + +DeembeddingType +--------------- + +.. py:class:: DeembeddingType + + .. py:attribute:: DeembeddingType.NONE + + + + De-embedding is not applied to the measurement. + + + + + + .. py:attribute:: DeembeddingType.SCALAR + + + + De-embeds the measurement using only the gain term. + + + + + + .. py:attribute:: DeembeddingType.VECTOR + + + + De-embeds the measurement using the gain term and the reflection term. + + + + + + .. py:attribute:: DeembeddingType.AMPLITUDE_FLATNESS + + + + De-embeds the measurement using wideband amplitude flatness correction. + + + + + + .. py:attribute:: DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS + + + + De-embeds the measurement using wideband amplitude and phase flatness correction. + + + + + +DigitalEqualizationEnabled +-------------------------- + +.. py:class:: DigitalEqualizationEnabled + + .. py:attribute:: DigitalEqualizationEnabled.DISABLE + + + + Filter is not applied + + + + + + .. py:attribute:: DigitalEqualizationEnabled.ENABLE + + + + Filter is applied. + + + + + +DirectDownload +-------------- + +.. py:class:: DirectDownload + + .. py:attribute:: DirectDownload.DISABLE + + + + The RF In local oscillator signal is not present at the front panel LO OUT connector. + + + + + + .. py:attribute:: DirectDownload.ENABLE + + + + The RF In local oscillator signal is present at the front panel LO OUT connector. + + + + + + .. py:attribute:: DirectDownload.UNSPECIFIED + + + + The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. + + + + + +Format +------ + +.. py:class:: Format + + .. py:attribute:: Format.MAGNITUDE_AND_PHASE + + + + Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. + + + + + + .. py:attribute:: Format.MAGNITUDE_DB_AND_PHASE + + + + Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. + + + + + + .. py:attribute:: Format.REAL_AND_IMAGINARY + + + + Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. + + + + + +FrequencySettlingUnits +---------------------- + +.. py:class:: FrequencySettlingUnits + + .. py:attribute:: FrequencySettlingUnits.TIME_AFTER_LOCK + + + + Specifies the time to wait after the frequency PLL locks. + + + + + + .. py:attribute:: FrequencySettlingUnits.TIME_AFTER_IO + + + + Specifies the time to wait after all writes occur to change the frequency + + + + + + .. py:attribute:: FrequencySettlingUnits.PPM + + + + Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). + + + + + +GenerationMode +-------------- + +.. py:class:: GenerationMode + + .. py:attribute:: GenerationMode.CW + + + + Configures the RF signal generator to generate a CW signal. + + + + + + .. py:attribute:: GenerationMode.ARB_WAVEFORM + + + + Configures the RF signal generator to generate the arbitrary waveform specified by the :py:attr:`nirfsg.Session.arb_selected_waveform` property. + + + + + + .. py:attribute:: GenerationMode.SCRIPT + + + + Configures the RF signal generator to generate arbitrary waveforms as directed by the :py:attr:`nirfsg.Session.selected_script` property. + + + + + +IQOutPortTerminalConfiguration +------------------------------ + +.. py:class:: IQOutPortTerminalConfiguration + + .. py:attribute:: IQOutPortTerminalConfiguration.DIFFERENTIAL + + + + Sets the terminal configuration to differential. + + + + + + .. py:attribute:: IQOutPortTerminalConfiguration.SINGLE_ENDED + + + + Sets the terminal configuration to single-ended. + + + + + +LoOutExportConfigureFromRfsaEnable +---------------------------------- + +.. py:class:: LoOutExportConfigureFromRfsaEnable + + .. py:attribute:: LoOutExportConfigureFromRfsaEnable.DISABLE + + + + Do not allow NI-RFSA to control the NI-RFSG local oscillator export. + + + + + + .. py:attribute:: LoOutExportConfigureFromRfsaEnable.ENABLE + + + + Allow NI-RFSA to control the NI-RFSG local oscillator export. + + + + + +LoPllFractionalModeEnabled +-------------------------- + +.. py:class:: LoPllFractionalModeEnabled + + .. py:attribute:: LoPllFractionalModeEnabled.DISABLE + + + + Disables fractional mode for the LO PLL. + + + + + + .. py:attribute:: LoPllFractionalModeEnabled.ENABLE + + + + Enables fractional mode for the LO PLL. + + + + + +LoSource +-------- + +.. py:class:: LoSource + + .. py:attribute:: LoSource.ONBOARD + + + + Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. + + + + + + .. py:attribute:: LoSource.LO_IN + + + + Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the UPCONVERTER_CENTER_FREQUENCY property to specify the LO frequency. + + + + + + .. py:attribute:: LoSource.SECONDARY + + + + Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. + + + + + + .. py:attribute:: LoSource.SG_SA_SHARED + + + + Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. + + + + + + .. py:attribute:: LoSource.AUTOMATIC_SG_SA_SHARED + + + + NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. + + + + + +LoadConfigurationResetOptions +----------------------------- + +.. py:class:: LoadConfigurationResetOptions + + .. py:attribute:: LoadConfigurationResetOptions.WAVEFORMS + + + + NI-RFSG skips resetting the waveform configurations. + + + + + + .. py:attribute:: LoadConfigurationResetOptions.DEEMBEDDING_TABLES + + + + NI-RFSG skips resetting the de-embedding tables. + + + + + + .. py:attribute:: LoadConfigurationResetOptions.SCRIPTS + + + + NI-RFSG skips resetting the scripts. + + + + + + .. py:attribute:: LoadConfigurationResetOptions.NONE + + + + NI-RFSG resets all configurations. + + + + + +LoadOptions +----------- + +.. py:class:: LoadOptions + + .. py:attribute:: LoadOptions.NONE + + + + NI-RFSG loads all the configurations to the session. + + + + + + .. py:attribute:: LoadOptions.WAVEFORMS + + + + NI-RFSG skips loading the waveform configurations to the session. + + + + + + .. py:attribute:: LoadOptions.SCRIPTS + + + + NI-RFSG skips loading the scripts to the session. + + + + + +LoopBandwidth +------------- + +.. py:class:: LoopBandwidth + + .. py:attribute:: LoopBandwidth.NARROW + + + + Uses the narrowest loop bandwidth setting for the PLL. + + + + + + .. py:attribute:: LoopBandwidth.MEDIUM + + + + Uses the medium loop bandwidth setting for the PLL. + + + + + + .. py:attribute:: LoopBandwidth.WIDE + + + + Uses the widest loop bandwidth setting for the PLL. + + + + + +MarkerEventOutputBehavior +------------------------- + +.. py:class:: MarkerEventOutputBehavior + + .. py:attribute:: MarkerEventOutputBehavior.PULSE + + + + Specifies the Marker Event output behavior as pulse. + + + + + + .. py:attribute:: MarkerEventOutputBehavior.TOGGLE + + + + Specifies the Marker Event output behavior as toggle. + + + + + +MarkerEventPulseWidthUnits +-------------------------- + +.. py:class:: MarkerEventPulseWidthUnits + + .. py:attribute:: MarkerEventPulseWidthUnits.SECONDS + + + + Specifies the Marker Event pulse width units as seconds. + + + + + + .. py:attribute:: MarkerEventPulseWidthUnits.SAMPLE_CLOCK_PERIODS + + + + Specifies the Marker Event pulse width units as Sample Clock periods. + + + + + +MarkerEventToggleInitialState +----------------------------- + +.. py:class:: MarkerEventToggleInitialState + + .. py:attribute:: MarkerEventToggleInitialState.LOW + + + + Specifies the initial state of the Marker Event toggle behavior as digital low. + + + + + + .. py:attribute:: MarkerEventToggleInitialState.HIGH + + + + Specifies the initial state of the Marker Event toggle behavior as digital high. + + + + + +Module +------ + +.. py:class:: Module + + .. py:attribute:: Module.AWG + + + + The AWG associated with the primary module. + + + + + + .. py:attribute:: Module.LO + + + + The LO associated with the primary module. + + + + + + .. py:attribute:: Module.PRIMARY_MODULE + + + + The stand-alone device or the main module in a multi-module device. + + + + + +OffsetUnits +----------- + +.. py:class:: OffsetUnits + + .. py:attribute:: OffsetUnits.PERCENT + + + + Specifies the unit in percentage. + + + + + + .. py:attribute:: OffsetUnits.VOLTS + + + + Specifies the unit in volts. + + + + + +OutputPort +---------- + +.. py:class:: OutputPort + + .. py:attribute:: OutputPort.RF_OUT + + + + Enables the RF OUT port. This value is not valid for the PXIe-5820. + + + + + + .. py:attribute:: OutputPort.IQ_OUT + + + + Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. + + + + + + .. py:attribute:: OutputPort.CAL_OUT + + + + Enables the CAL OUT port. + + + + + + .. py:attribute:: OutputPort.I_ONLY + + + + Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. + + + + + +OverflowErrorReporting +---------------------- + +.. py:class:: OverflowErrorReporting + + .. py:attribute:: OverflowErrorReporting.WARNING + + + + NI-RFSG returns a warning when an OSP overflow occurs. + + + + + + .. py:attribute:: OverflowErrorReporting.DISABLED + + + + NI-RFSG does not return an error or a warning when an OSP overflow occurs. + + + + + +PhaseContinuityEnabled +---------------------- + +.. py:class:: PhaseContinuityEnabled + + .. py:attribute:: PhaseContinuityEnabled.AUTO + + + + The arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. + + + + + + .. py:attribute:: PhaseContinuityEnabled.DISABLE + + + + The arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. + + + + + + .. py:attribute:: PhaseContinuityEnabled.ENABLE + + + + The arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. + + + + + +PowerLevelType +-------------- + +.. py:class:: PowerLevelType + + .. py:attribute:: PowerLevelType.AVERAGE + + + + Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. + + + + + + .. py:attribute:: PowerLevelType.PEAK + + + + Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the :py:attr:`nirfsg.Session.arb_waveform_software_scaling_factor` property. You can use the :py:attr:`nirfsg.Session.peak_power_adjustment` property in conjunction with the :py:attr:`nirfsg.Session.power_level` property when the :py:attr:`nirfsg.Session.power_level_type` property is set to :py:data:`~nirfsg.PowerLevelType.PEAK`. + + + + + +PulseModulationMode +------------------- + +.. py:class:: PulseModulationMode + + .. py:attribute:: PulseModulationMode.OPTIMAL_MATCH + + + + Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842 + + + + + + .. py:attribute:: PulseModulationMode.HIGH_ISOLATION + + + + Allows for the best on/off power ratio of the pulsed signal. + + + + + + .. py:attribute:: PulseModulationMode.ANALOG + + + + Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. + + + + + + .. py:attribute:: PulseModulationMode.DIGITAL + + + + Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. + + + + + +PulseModulationOutputTerminal +----------------------------- + +.. py:class:: PulseModulationOutputTerminal + + .. py:attribute:: PulseModulationOutputTerminal.DO_NOT_EXPORT + + + + Pulse modulation video signal is not exported. + + + + + + .. py:attribute:: PulseModulationOutputTerminal.PULSE_OUT + + + + Export the pulse modulation video signal on the pulse out terminal. + + + + + +PulseModulationSource +--------------------- + +.. py:class:: PulseModulationSource + + .. py:attribute:: PulseModulationSource.PULSE_IN + + + + The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. + + + + + + .. py:attribute:: PulseModulationSource.MARKER0 + + + + The trigger is received from the Marker 0. + + + + + + .. py:attribute:: PulseModulationSource.MARKER1 + + + + The trigger is received from the Marker 1. + + + + + + .. py:attribute:: PulseModulationSource.MARKER2 + + + + The trigger is received from the Marker 2. + + + + + + .. py:attribute:: PulseModulationSource.MARKER3 + + + + The trigger is received from the Marker 3. + + + + + + .. py:attribute:: PulseModulationSource.DO_NOT_DRIVE_SIGNAL + + + + Do not drive pulse modulation. + + + + + +RFBlanking +---------- + +.. py:class:: RFBlanking + + .. py:attribute:: RFBlanking.DISABLE + + + + RF blanking is disabled. + + + + + + .. py:attribute:: RFBlanking.ENABLE + + + + RF blanking is enabled. + + + + + +RFInLoExportEnabled +------------------- + +.. py:class:: RFInLoExportEnabled + + .. py:attribute:: RFInLoExportEnabled.UNSPECIFIED + + + + The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may + + + + + + .. py:attribute:: RFInLoExportEnabled.DISABLE + + + + The RF In local oscillator signal is not present at the front panel LO OUT connector. + + + + + + .. py:attribute:: RFInLoExportEnabled.ENABLE + + + + The RF In local oscillator signal is present at the front panel LO OUT connector. + + + + + +ReferenceClockExportOutputTerminal +---------------------------------- + +.. py:class:: ReferenceClockExportOutputTerminal + + .. py:attribute:: ReferenceClockExportOutputTerminal.DO_NOT_EXPORT + + + + The Reference Clock signal is not exported. + + + + + + .. py:attribute:: ReferenceClockExportOutputTerminal.REF_OUT + + + + Exports the Reference Clock signal to the REF OUT connector of the device. + + + + + + .. py:attribute:: ReferenceClockExportOutputTerminal.REF_OUT2 + + + + Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. + + + + + + .. py:attribute:: ReferenceClockExportOutputTerminal.CLK_OUT + + + + Exports the Reference Clock signal to the CLK OUT connector of the device. + + + + + +ReferenceClockSource +-------------------- + +.. py:class:: ReferenceClockSource + + .. py:attribute:: ReferenceClockSource.ONBOARD_CLOCK + + + + Uses the onboard Reference Clock as the clock source. + + + + + + .. py:attribute:: ReferenceClockSource.REF_IN + + + + Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. + + + + + + .. py:attribute:: ReferenceClockSource.PXI_CLK + + + + Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. + + + + + + .. py:attribute:: ReferenceClockSource.CLK_IN + + + + Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. + + + + + + .. py:attribute:: ReferenceClockSource.REF_IN_2 + + + + This value is not valid on any supported devices. + + + + + + .. py:attribute:: ReferenceClockSource.PXI_CLK_MASTER + + + + This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653 -** NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use :py:data:`~nirfsg.ReferenceClockSource.PXI_CLK` as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. + + + + + +ReferencePllBandwidth +--------------------- + +.. py:class:: ReferencePllBandwidth + + .. py:attribute:: ReferencePllBandwidth.NARROW + + + + Uses the narrowest loop bandwidth setting for the PLL. Setting this property to :py:data:`~nirfsg.NIRFSG_VAL_NARROW` allows the PXIe-5653 to lock to a reference with worse phase noise than the PXIe-5653 and utilize the better phase noise of the PXIe-5653. + + + + + + .. py:attribute:: ReferencePllBandwidth.MEDIUM + + + + Uses the medium loop bandwidth setting for the PLL. + + + + + + .. py:attribute:: ReferencePllBandwidth.WIDE + + + + Uses the widest loop bandwidth setting for the PLL. Setting this property to :py:data:`~nirfsg.NIRFSG_VAL_WIDE` on the PXIe-5653 allows the reference PLL to lock to a better reference with better phase noise than the PXIe-5653 and utilize the better phase noise of the reference. + + + + + +RelativeTo +---------- + +.. py:class:: RelativeTo + + .. py:attribute:: RelativeTo.CURRENT_POSITION + + + + The reference position is relative to the current position. + + + + + + .. py:attribute:: RelativeTo.START_OF_WAVEFORM + + + + The reference position is relative to the start of the waveform. + + + + + +ResetWithOptionsStepsToOmit +--------------------------- + +.. py:class:: ResetWithOptionsStepsToOmit + + .. py:attribute:: ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES + + + + Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. + + + + + + .. py:attribute:: ResetWithOptionsStepsToOmit.NONE + + + + No step is omitted during reset. + + + + + + .. py:attribute:: ResetWithOptionsStepsToOmit.ROUTES + + + + Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. + + + + + + .. py:attribute:: ResetWithOptionsStepsToOmit.SCRIPTS + + + + Omits clearing scripts. + + + + + + .. py:attribute:: ResetWithOptionsStepsToOmit.WAVEFORMS + + + + Omits clearing waveforms. + + + + + +ScriptTriggerDigitalEdgeEdge +---------------------------- + +.. py:class:: ScriptTriggerDigitalEdgeEdge + + .. py:attribute:: ScriptTriggerDigitalEdgeEdge.RISING + + + + Asserts the trigger when the signal transitions from low level to high level. + + + + + + .. py:attribute:: ScriptTriggerDigitalEdgeEdge.FALLING + + + + Asserts the trigger when the signal transitions from high level to low level. + + + + + +ScriptTriggerDigitalLevelActiveLevel +------------------------------------ + +.. py:class:: ScriptTriggerDigitalLevelActiveLevel + + .. py:attribute:: ScriptTriggerDigitalLevelActiveLevel.HIGH + + + + Trigger when the digital trigger signal is high. + + + + + + .. py:attribute:: ScriptTriggerDigitalLevelActiveLevel.LOW + + + + Trigger when the digital trigger signal is low. + + + + + +ScriptTriggerType +----------------- + +.. py:class:: ScriptTriggerType + + .. py:attribute:: ScriptTriggerType.NONE + + + + No trigger is configured. Signal generation starts immediately. + + + + + + .. py:attribute:: ScriptTriggerType.DIGITAL_EDGE + + + + The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. + + + + + + .. py:attribute:: ScriptTriggerType.DIGITAL_LEVEL + + + + The data operation does not start until the digital level is detected. The source of the digital level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_source` property, and the active level is specified in the :py:attr:`nirfsg.Session.digital_level_script_trigger_active_level` property. + + + + + + .. py:attribute:: ScriptTriggerType.SOFTWARE + + + + The data operation does not start until a software trigger occurs. You can create a software event by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. + + + + + +SelfCalibrateRangeStepsToOmit +----------------------------- + +.. py:class:: SelfCalibrateRangeStepsToOmit + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION + + + + Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.LO_SELF_CAL + + + + Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.OMIT_NONE + + + + No calibration steps are omitted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.POWER_LEVEL_ACCURACY + + + + Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER + + + + Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. + + + + + + .. py:attribute:: SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT + + + + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + + + + + +Signal +------ + +.. py:class:: Signal + + .. py:attribute:: Signal.START_TRIGGER + + + + Exports a Start Trigger. + + + + + + .. py:attribute:: Signal.SCRIPT_TRIGGER + + + + Exports a Script Trigger. + + + + + + .. py:attribute:: Signal.MARKER_EVENT + + + + Exports a Marker Event. + + + + + + .. py:attribute:: Signal.REF_CLOCK + + + + Exports the Reference Clock. + + + + + + .. py:attribute:: Signal.STARTED_EVENT + + + + Exports a Started Event. + + + + + + .. py:attribute:: Signal.DONE_EVENT + + + + Exports a Done Event. + + + + + +SoftwareTriggerType +------------------- + +.. py:class:: SoftwareTriggerType + + .. py:attribute:: SoftwareTriggerType.SCRIPT + + + + Specifies the Script Trigger. + + + + + + .. py:attribute:: SoftwareTriggerType.START + + + + Specifies the Start Trigger. + + + + + +SparameterOrientation +--------------------- + +.. py:class:: SparameterOrientation + + .. py:attribute:: SparameterOrientation.PORT1_TOWARDS_DUT + + + + Port 1 of the S2P is oriented towards the DUT port. + + + + + + .. py:attribute:: SparameterOrientation.PORT2_TOWARDS_DUT + + + + Port 2 of the S2P is oriented towards the DUT port. + + + + + +StartTriggerDigitalEdgeEdge +--------------------------- + +.. py:class:: StartTriggerDigitalEdgeEdge + + .. py:attribute:: StartTriggerDigitalEdgeEdge.RISING + + + + Occurs when the signal transitions from low level to high level. + + + + + + .. py:attribute:: StartTriggerDigitalEdgeEdge.FALLING + + + + Occurs when the signal transitions from high level to low level. + + + + + +StartTriggerType +---------------- + +.. py:class:: StartTriggerType + + .. py:attribute:: StartTriggerType.NONE + + + + No trigger is configured. + + + + + + .. py:attribute:: StartTriggerType.DIGITAL_EDGE + + + + The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the :py:attr:`nirfsg.Session.digital_edge_start_trigger_source` property, and the active edge is specified in the :py:attr:`nirfsg.Session.digital_edge_start_trigger_edge` property. + + + + + + .. py:attribute:: StartTriggerType.SOFTWARE + + + + The data operation does not start until a software event occurs. You may create a software trigger by calling the :py:meth:`nirfsg.Session.send_software_edge_trigger` method. + + + + + +TriggerIdentifier +----------------- + +.. py:class:: TriggerIdentifier + + .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER0 + + + + Specifies Script Trigger 0. + + + + + + .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER1 + + + + Specifies Script Trigger 1. + + + + + + .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER2 + + + + Specifies Script Trigger 2. + + + + + + .. py:attribute:: TriggerIdentifier.SCRIPT_TRIGGER3 + + + + Specifies Script Trigger 3. + + + + + + .. py:attribute:: TriggerIdentifier.NONE + + + + None (no signal to export) + + + + + +UpconverterFrequencyOffsetMode +------------------------------ + +.. py:class:: UpconverterFrequencyOffsetMode + + .. py:attribute:: UpconverterFrequencyOffsetMode.AUTO + + + + NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. + + + + + + .. py:attribute:: UpconverterFrequencyOffsetMode.ENABLE + + + + NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the :py:attr:`nirfsg.Session.signal_bandwidth` property has been set and can be avoided. NI-RFSG returns an error if the :py:attr:`nirfsg.Session.signal_bandwidth` property has not been set, or if the signal bandwidth is too large. + + + + + + .. py:attribute:: UpconverterFrequencyOffsetMode.USER_DEFINED + + + + NI-RFSG uses the offset that you specified with the :py:attr:`nirfsg.Session.upconverter_frequency_offset` or :py:attr:`nirfsg.Session.upconverter_center_frequency` properties. + + + + + +WriteWaveformBurstDetection +--------------------------- + +.. py:class:: WriteWaveformBurstDetection + + .. py:attribute:: WriteWaveformBurstDetection.DISABLE + + + + Burst detection is disabled. + + + + + + .. py:attribute:: WriteWaveformBurstDetection.ENABLE + + + + Burst detection is enabled. + + + + + +WriteWaveformBurstDetectionMode +------------------------------- + +.. py:class:: WriteWaveformBurstDetectionMode + + .. py:attribute:: WriteWaveformBurstDetectionMode.AUTO + + + + NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. + + + + + + .. py:attribute:: WriteWaveformBurstDetectionMode.MANUAL + + + + User sets the burst detection parameters. + + + + + +WriteWaveformNormalization +-------------------------- + +.. py:class:: WriteWaveformNormalization + + .. py:attribute:: WriteWaveformNormalization.DISABLE + + + + Disables normalization on the waveform. + + + + + + .. py:attribute:: WriteWaveformNormalization.ENABLE + + + + Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 + + + + + +YigMainCoilDrive +---------------- + +.. py:class:: YigMainCoilDrive + + .. py:attribute:: YigMainCoilDrive.MANUAL + + + + Adjusts the YIG main coil for an underdamped response. + + + + + + .. py:attribute:: YigMainCoilDrive.FAST + + + + Adjusts the YIG main coil for an overdamped response. + + + + + + + diff --git a/docs/nirfsg/errors.rst b/docs/nirfsg/errors.rst new file mode 100644 index 0000000000..44bdd892f2 --- /dev/null +++ b/docs/nirfsg/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: Error + + Base exception type that all NI-RFSG exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: DriverError + + An error originating from the NI-RFSG driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-RFSG driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: DriverTooNewError + + An error due to the NI-RFSG driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nirfsg.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: nirfsg.errors + + .. exception:: DriverWarning + + A warning originating from the NI-RFSG driver + + + diff --git a/docs/nirfsg/examples.rst b/docs/nirfsg/examples.rst new file mode 100644 index 0000000000..99a9d9a65d --- /dev/null +++ b/docs/nirfsg/examples.rst @@ -0,0 +1,32 @@ +Examples +======== + +`You can download all nirfsg examples for latest version here `_ + +nirfsg_arb_waveform.py +---------------------- + +.. literalinclude:: ../../src/nirfsg/examples/nirfsg_arb_waveform.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nirfsg_arb_waveform.py) `_ + +nirfsg_cw.py +------------ + +.. literalinclude:: ../../src/nirfsg/examples/nirfsg_cw.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nirfsg_cw.py) `_ + +nirfsg_script.py +---------------- + +.. literalinclude:: ../../src/nirfsg/examples/nirfsg_script.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nirfsg_script.py) `_ + diff --git a/docs/nirfsg/grpc_session_options.rst b/docs/nirfsg/grpc_session_options.rst new file mode 100644 index 0000000000..87595dc7f7 --- /dev/null +++ b/docs/nirfsg/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-RFSG over gRPC + +.. py:currentmodule:: nirfsg + + + +Creating a gRPC channel +----------------------- + +Using NI-RFSG over gRPC requires the ``grpc`` extra:: + + $ python -m pip install nirfsg[grpc] + +Every NI-RFSG gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`nirfsg.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-RFSG runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import nirfsg + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = nirfsg.GrpcSessionOptions(channel, '') + with nirfsg.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`nirfsg.SessionInitializationBehavior` diff --git a/docs/nirfsg/index.rst b/docs/nirfsg/index.rst new file mode 100644 index 0000000000..773b055477 --- /dev/null +++ b/docs/nirfsg/index.rst @@ -0,0 +1,30 @@ + +NI-RFSG Python API Documentation +================================ + +.. include:: about_nirfsg.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nirfsg + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nirfsg/installation.inc b/docs/nirfsg/installation.inc new file mode 100644 index 0000000000..d0a7acbbf3 --- /dev/null +++ b/docs/nirfsg/installation.inc @@ -0,0 +1,13 @@ + +.. _nirfsg_installation-section: + +Installation +------------ + +As a prerequisite to using the **nirfsg** module, you must install the NI-RFSG runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-RFSG**) can be installed with `pip `_:: + + $ python -m pip install nirfsg + + diff --git a/docs/nirfsg/nirfsg.rst b/docs/nirfsg/nirfsg.rst new file mode 100644 index 0000000000..17ca31595a --- /dev/null +++ b/docs/nirfsg/nirfsg.rst @@ -0,0 +1,9 @@ +nirfsg module +============= + +.. include:: installation.inc + +.. include:: ../_static/nirfsg_usage.inc + +.. include:: toc.inc + diff --git a/docs/nirfsg/rep_caps.rst b/docs/nirfsg/rep_caps.rst new file mode 100644 index 0000000000..4b13100dfa --- /dev/null +++ b/docs/nirfsg/rep_caps.rst @@ -0,0 +1,166 @@ +.. py:module:: nirfsg + :noindex: + +.. py:currentmodule:: nirfsg.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niRFSG_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +markers +------- + + .. py:attribute:: nirfsg.Session.markers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.markers['0-2'].channel_enabled = True + + passes a string of :python:`'marker0, marker1, marker2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.markers['marker0-marker2'].channel_enabled = True + + passes a string of :python:`'marker0, marker1, marker2'` to the set attribute function. + + +script_triggers +--------------- + + .. py:attribute:: nirfsg.Session.script_triggers[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.script_triggers['0-2'].channel_enabled = True + + passes a string of :python:`'scripttrigger0, scripttrigger1, scripttrigger2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.script_triggers['scripttrigger0-scripttrigger2'].channel_enabled = True + + passes a string of :python:`'scripttrigger0, scripttrigger1, scripttrigger2'` to the set attribute function. + + +waveforms +--------- + + .. py:attribute:: nirfsg.Session.waveforms[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.waveforms['0-2'].channel_enabled = True + + passes a string of :python:`'waveform::0, waveform::1, waveform::2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.waveforms['waveform::0-waveform::2'].channel_enabled = True + + passes a string of :python:`'waveform::0, waveform::1, waveform::2'` to the set attribute function. + + +ports +----- + + .. py:attribute:: nirfsg.Session.ports[] + + .. code:: python + + session.ports['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +los +--- + + .. py:attribute:: nirfsg.Session.los[] + + If no prefix is added to the items in the parameter, the correct prefix will be added when + the driver function call is made. + + .. code:: python + + session.los['0-2'].channel_enabled = True + + passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. + + If an invalid repeated capability is passed to the driver, the driver will return an error. + + You can also explicitly use the prefix as part of the parameter, but it must be the correct prefix + for the specific repeated capability. + + .. code:: python + + session.los['LO0-LO2'].channel_enabled = True + + passes a string of :python:`'LO0, LO1, LO2'` to the set attribute function. + + +device_temperatures +------------------- + + .. py:attribute:: nirfsg.Session.device_temperatures[] + + .. code:: python + + session.device_temperatures['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +channels +-------- + + .. py:attribute:: nirfsg.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + + diff --git a/docs/nirfsg/status.inc b/docs/nirfsg/status.inc new file mode 100644 index 0000000000..33b1e4116b --- /dev/null +++ b/docs/nirfsg/status.inc @@ -0,0 +1,46 @@ + +NI-RFSG Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-RFSG (nirfsg) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nirfsgLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nirfsgPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nirfsgDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nirfsgOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nirfsgOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nirfsgLatestVersion| image:: http://img.shields.io/pypi/v/nirfsg.svg + :alt: Latest NI-RFSG Version + :target: http://pypi.python.org/pypi/nirfsg + + +.. |nirfsgPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsg.svg + :alt: NI-RFSG supported Python versions + :target: http://pypi.python.org/pypi/nirfsg + + +.. |nirfsgDocs| image:: https://readthedocs.org/projects/nirfsg/badge/?version=latest + :alt: NI-RFSG Python API Documentation Status + :target: https://nirfsg.readthedocs.io/en/latest + + +.. |nirfsgOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsg.svg + :alt: Open Issues + Pull Requests for NI-RFSG + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsg + + +.. |nirfsgOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsg.svg + :alt: Pull Requests for NI-RFSG + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsg + + diff --git a/docs/nirfsg/toc.inc b/docs/nirfsg/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/nirfsg/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/niscope/.readthedocs.yaml b/docs/niscope/.readthedocs.yaml new file mode 100644 index 0000000000..25f77890b1 --- /dev/null +++ b/docs/niscope/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/niscope/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/niscope/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/niscope/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/niscope/about_niscope.inc b/docs/niscope/about_niscope.inc new file mode 100644 index 0000000000..2054d33175 --- /dev/null +++ b/docs/niscope/about_niscope.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **niscope** module provides a Python API for NI-SCOPE. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**niscope** supports all the Operating Systems supported by NI-SCOPE. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **niscope**. + diff --git a/docs/niscope/class.rst b/docs/niscope/class.rst new file mode 100644 index 0000000000..bb512b4ea1 --- /dev/null +++ b/docs/niscope/class.rst @@ -0,0 +1,7483 @@ +.. py:module:: niscope + +Session +======= + +.. py:class:: Session(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None) + + + + Performs the following initialization actions: + + - Creates a new IVI instrument driver and optionally sets the initial + state of the following session properties: Range Check, Cache, + Simulate, Record Value Coercions + - Opens a session to the specified device using the interface and + address you specify for the **resourceName** + - Resets the digitizer to a known state if **resetDevice** is set to + True + - Queries the instrument ID and verifies that it is valid for this + instrument driver if the **IDQuery** is set to True + - Returns an instrument handle that you use to identify the instrument + in all subsequent instrument driver method calls + + + + + + :param resource_name: + + + .. caution:: Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. + However, all IVI names, such as logical names, are case-sensitive. If + you use logical names, driver session names, or virtual names in your + program, you must make sure that the name you use matches the name in + the IVI Configuration Store file exactly, without any variations in the + case of the characters. + + | Specifies the resource name of the device to initialize + + For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is + the device number assigned by MAX, as shown in Example 1. + + For NI-DAQmx devices, the syntax is just the device name specified in + MAX, as shown in Example 2. Typical default names for NI-DAQmx devices + in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by + right-clicking on the name in MAX and entering a new name. + + An alternate syntax for NI-DAQmx devices consists of DAQ::NI-DAQmx + device name, as shown in Example 3. This naming convention allows for + the use of an NI-DAQmx device in an application that was originally + designed for a Traditional NI-DAQ device. For example, if the + application expects DAQ::1, you can rename the NI-DAQmx device to 1 in + MAX and pass in DAQ::1 for the resource name, as shown in Example 4. + + If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already + exists with that same name, the NI-DAQmx device is matched first. + + You can also pass in the name of an IVI logical name or an IVI virtual + name configured with the IVI Configuration utility, as shown in Example + 5. A logical name identifies a particular virtual instrument. A virtual + name identifies a specific device and specifies the initial settings for + the session. + + +---------+--------------------------------------+--------------------------------------------------+ + | Example | Device Type | Syntax | + +=========+======================================+==================================================+ + | 1 | Traditional NI-DAQ device | DAQ::1 (1 = device number) | + +---------+--------------------------------------+--------------------------------------------------+ + | 2 | NI-DAQmx device | myDAQmxDevice (myDAQmxDevice = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 3 | NI-DAQmx device | DAQ::myDAQmxDevice (myDAQmxDevice = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 4 | NI-DAQmx device | DAQ::2 (2 = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 5 | IVI logical name or IVI virtual name | myLogicalName (myLogicalName = name) | + +---------+--------------------------------------+--------------------------------------------------+ + + + :type resource_name: str + + :param id_query: + + + Specify whether to perform an ID query. + + When you set this parameter to True, NI-SCOPE verifies that the + device you initialize is a type that it supports. + + When you set this parameter to False, the method initializes the + device without performing an ID query. + + **Defined Values** + + | True—Perform ID query + | False—Skip ID query + + **Default Value**: True + + + + + :type id_query: bool + + :param reset_device: + + + Specify whether to reset the device during the initialization process. + + Default Value: True + + **Defined Values** + + True (1)—Reset device + + False (0)—Do not reset device + + + + .. note:: For the NI 5112, repeatedly resetting the device may cause excessive + wear on the electromechanical relays. Refer to `NI 5112 + Electromechanical Relays `__ + for recommended programming practices. + + + :type reset_device: bool + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: niscope.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: niscope.Session + + .. py:method:: abort() + + Aborts an acquisition and returns the digitizer to the Idle state. Call + this method if the digitizer times out waiting for a trigger. + + + + + +acquisition_status +------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: acquisition_status() + + Returns status information about the acquisition to the **status** + output parameter. + + + + + + :rtype: :py:data:`niscope.AcquisitionStatus` + :return: + + + Returns whether the acquisition is complete, in progress, or unknown. + + **Defined Values** + + :py:data:`~niscope.AcquisitionStatus.COMPLETE` + + :py:data:`~niscope.AcquisitionStatus.IN_PROGRESS` + + :py:data:`~niscope.AcquisitionStatus.STATUS_UNKNOWN` + + + + + +add_waveform_processing +----------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: add_waveform_processing(meas_function) + + Adds one measurement to the list of processing steps that are completed + before the measurement. The processing is added on a per channel basis, + and the processing measurements are completed in the same order they are + registered. All measurement library parameters—the properties starting + with "meas_"—are cached at the time of registering the + processing, and this set of parameters is used during the processing + step. The processing measurements are streamed, so the result of the + first processing step is used as the input for the next step. The + processing is done before any other measurements. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].add_waveform_processing` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.add_waveform_processing` + + + :param meas_function: + + + The `array + measurement `__ + to add. + + + + + :type meas_function: :py:data:`niscope.ArrayMeasurement` + +auto_setup +---------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: auto_setup() + + Automatically configures the instrument. When you call this method, + the digitizer senses the input signal and automatically configures many + of the instrument settings. If a signal is detected on a channel, the + driver chooses the smallest available vertical range that is larger than + the signal range. For example, if the signal is a 1.2 V\ :sub:`pk-pk` + sine wave, and the device supports 1 V and 2 V vertical ranges, the + driver will choose the 2 V vertical range for that channel. + + If no signal is found on any analog input channel, a warning is + returned, and all channels are enabled. A channel is considered to have + a signal present if the signal is at least 10% of the smallest vertical + range available for that channel. + + The following settings are changed: + + +--------------------+-----------------------------------------------+ + | **General** | | + +--------------------+-----------------------------------------------+ + | Acquisition mode | Normal | + +--------------------+-----------------------------------------------+ + | Reference clock | Internal | + +--------------------+-----------------------------------------------+ + | **Vertical** | | + +--------------------+-----------------------------------------------+ + | Vertical coupling | AC (DC for NI 5621) | + +--------------------+-----------------------------------------------+ + | Vertical bandwidth | Full | + +--------------------+-----------------------------------------------+ + | Vertical range | Changed by auto setup | + +--------------------+-----------------------------------------------+ + | Vertical offset | 0 V | + +--------------------+-----------------------------------------------+ + | Probe attenuation | Unchanged by auto setup | + +--------------------+-----------------------------------------------+ + | Input impedance | Unchanged by auto setup | + +--------------------+-----------------------------------------------+ + | **Horizontal** | | + +--------------------+-----------------------------------------------+ + | Sample rate | Changed by auto setup | + +--------------------+-----------------------------------------------+ + | Min record length | Changed by auto setup | + +--------------------+-----------------------------------------------+ + | Enforce realtime | True | + +--------------------+-----------------------------------------------+ + | Number of Records | Changed to 1 | + +--------------------+-----------------------------------------------+ + | **Triggering** | | + +--------------------+-----------------------------------------------+ + | Trigger type | Edge if signal present, otherwise immediate | + +--------------------+-----------------------------------------------+ + | Trigger channel | Lowest numbered channel with a signal present | + +--------------------+-----------------------------------------------+ + | Trigger slope | Positive | + +--------------------+-----------------------------------------------+ + | Trigger coupling | DC | + +--------------------+-----------------------------------------------+ + | Reference position | 50% | + +--------------------+-----------------------------------------------+ + | Trigger level | 50% of signal on trigger channel | + +--------------------+-----------------------------------------------+ + | Trigger delay | 0 | + +--------------------+-----------------------------------------------+ + | Trigger holdoff | 0 | + +--------------------+-----------------------------------------------+ + | Trigger output | None | + +--------------------+-----------------------------------------------+ + + + +clear_waveform_measurement_stats +-------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: clear_waveform_measurement_stats(clearable_measurement_function=niscope.ClearableMeasurement.ALL_MEASUREMENTS) + + Clears the waveform stats on the channel and measurement you specify. If + you want to clear all of the measurements, use + :py:data:`~niscope.ClearableMeasurement.ALL_MEASUREMENTS` in the **clearableMeasurementFunction** + parameter. + + Every time a measurement is called, the statistics information is + updated, including the min, max, mean, standard deviation, and number of + updates. This information is fetched with + :py:meth:`niscope.Session._fetch_measurement_stats`. The multi-acquisition array measurements + are also cleared with this method. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_waveform_measurement_stats` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.clear_waveform_measurement_stats` + + + :param clearable_measurement_function: + + + The `scalar + measurement `__ + or `array + measurement `__ + to clear the stats for. + + + + + :type clearable_measurement_function: :py:data:`niscope.ClearableMeasurement` + +clear_waveform_processing +------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: clear_waveform_processing() + + Clears the list of processing steps assigned to the given channel. The + processing is added using the :py:meth:`niscope.Session.add_waveform_processing` method, + where the processing steps are completed in the same order in which they + are registered. The processing measurements are streamed, so the result + of the first processing step is used as the input for the next step. The + processing is also done before any other measurements. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_waveform_processing` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.clear_waveform_processing` + + +close +----- + + .. py:currentmodule:: niscope.Session + + .. py:method:: close() + + When you are finished using an instrument driver session, you must call + this method to perform the following actions: + + - Closes the instrument I/O session. + - Destroys the IVI session and all of its properties. + - Deallocates any memory resources used by the IVI session. + + + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: commit() + + Commits to hardware all the parameter settings associated with the task. + Use this method if you want a parameter change to be immediately + reflected in the hardware. This method is not supported for + Traditional NI-DAQ (Legacy) devices. + + + + + +configure_chan_characteristics +------------------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_chan_characteristics(input_impedance, max_input_frequency) + + Configures the properties that control the electrical characteristics of + the channel—the input impedance and the bandwidth. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_chan_characteristics` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.configure_chan_characteristics` + + + :param input_impedance: + + + The input impedance for the channel; NI-SCOPE sets + :py:attr:`niscope.Session.input_impedance` to this value. + + + + + :type input_impedance: float + :param max_input_frequency: + + + The bandwidth for the channel; NI-SCOPE sets + :py:attr:`niscope.Session.max_input_frequency` to this value. Pass 0 for this + value to use the hardware default bandwidth. Pass –1 for this value to + achieve full bandwidth. + + + + + :type max_input_frequency: float + +configure_equalization_filter_coefficients +------------------------------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_equalization_filter_coefficients(coefficients) + + Configures the custom coefficients for the equalization FIR filter on + the device. This filter is designed to compensate the input signal for + artifacts introduced to the signal outside of the digitizer. Because + this filter is a generic FIR filter, any coefficients are valid. + Coefficient values should be between +1 and –1. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_equalization_filter_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.configure_equalization_filter_coefficients` + + + :param coefficients: + + + The custom coefficients for the equalization FIR filter on the device. + These coefficients should be between +1 and –1. You can obtain the + number of coefficients from the + `:py:attr:`niscope.Session.equalization_num_coefficients` `__ + property. The + `:py:attr:`niscope.Session.equalization_filter_enabled` `__ + property must be set to TRUE to enable the filter. + + + + + :type coefficients: list of float + +configure_horizontal_timing +--------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_horizontal_timing(min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime) + + Configures the common properties of the horizontal subsystem for a + multirecord acquisition in terms of minimum sample rate. + + + + + + :param min_sample_rate: + + + The sampling rate for the acquisition. Refer to + :py:attr:`niscope.Session.min_sample_rate` for more information. + + + + + :type min_sample_rate: float + :param min_num_pts: + + + The minimum number of points you need in the record for each channel; + call :py:meth:`niscope.Session.ActualRecordLength` to obtain the actual record length + used. + + Valid Values: Greater than 1; limited by available memory + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + :type min_num_pts: int + :param ref_position: + + + The position of the Reference Event in the waveform record specified as + a percentage. + + + + + :type ref_position: float + :param num_records: + + + The number of records to acquire + + + + + :type num_records: int + :param enforce_realtime: + + + Indicates whether the digitizer enforces real-time measurements or + allows equivalent-time (RIS) measurements; not all digitizers support + RIS—refer to `Features Supported by + Device `__ for + more information. + + Default value: True + + **Defined Values** + + True—Allow real-time acquisitions only + + False—Allow real-time and equivalent-time acquisitions + + + + + :type enforce_realtime: bool + +configure_trigger_digital +------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_digital(trigger_source, slope=niscope.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) + + Configures the common properties of a digital trigger. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + + + .. note:: For multirecord acquisitions, all records after the first record are + started by using the Advance Trigger Source. The default is immediate. + + You can adjust the amount of pre-trigger and post-trigger samples using + the reference position parameter on the + :py:meth:`niscope.Session.configure_horizontal_timing` method. The default is half of the + record length. + + Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + Digital triggering is not supported in RIS mode. + + + + :param trigger_source: + + + Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` + for defined values. + + + + + :type trigger_source: str + :param slope: + + + Specifies whether you want a rising edge or a falling edge to trigger + the digitizer. Refer to :py:attr:`niscope.Session.trigger_slope` for more + information. + + + + + :type slope: :py:data:`niscope.TriggerSlope` + :param holdoff: + + + The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + :py:attr:`niscope.Session.trigger_holdoff` for more information. + + + + + :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds + :param delay: + + + How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more + information. + + + + + :type delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_trigger_edge +---------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_edge(trigger_source, level, trigger_coupling, slope=niscope.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) + + Configures common properties for analog edge triggering. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + + + .. note:: Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + + + :param trigger_source: + + + Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` + for defined values. + + + + + :type trigger_source: str + :param level: + + + The voltage threshold for the trigger. Refer to + :py:attr:`niscope.Session.trigger_level` for more information. + + + + + :type level: float + :param trigger_coupling: + + + Applies coupling and filtering options to the trigger signal. Refer to + :py:attr:`niscope.Session.trigger_coupling` for more information. + + + + + :type trigger_coupling: :py:data:`niscope.TriggerCoupling` + :param slope: + + + Specifies whether you want a rising edge or a falling edge to trigger + the digitizer. Refer to :py:attr:`niscope.Session.trigger_slope` for more + information. + + + + + :type slope: :py:data:`niscope.TriggerSlope` + :param holdoff: + + + The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + :py:attr:`niscope.Session.trigger_holdoff` for more information. + + + + + :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds + :param delay: + + + How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more + information. + + + + + :type delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_trigger_hysteresis +---------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_hysteresis(trigger_source, level, hysteresis, trigger_coupling, slope=niscope.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) + + Configures common properties for analog hysteresis triggering. This kind + of trigger specifies an additional value, specified in the + **hysteresis** parameter, that a signal must pass through before a + trigger can occur. This additional value acts as a kind of buffer zone + that keeps noise from triggering an acquisition. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the + :py:attr:`niscope.Session.acq_arm_source`. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + + + .. note:: Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + + + :param trigger_source: + + + Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` + for defined values. + + + + + :type trigger_source: str + :param level: + + + The voltage threshold for the trigger. Refer to + :py:attr:`niscope.Session.trigger_level` for more information. + + + + + :type level: float + :param hysteresis: + + + The size of the hysteresis window on either side of the **level** in + volts; the digitizer triggers when the trigger signal passes through the + hysteresis value you specify with this parameter, has the slope you + specify with **slope**, and passes through the **level**. Refer to + :py:attr:`niscope.Session.trigger_hysteresis` for defined values. + + + + + :type hysteresis: float + :param trigger_coupling: + + + Applies coupling and filtering options to the trigger signal. Refer to + :py:attr:`niscope.Session.trigger_coupling` for more information. + + + + + :type trigger_coupling: :py:data:`niscope.TriggerCoupling` + :param slope: + + + Specifies whether you want a rising edge or a falling edge to trigger + the digitizer. Refer to :py:attr:`niscope.Session.trigger_slope` for more + information. + + + + + :type slope: :py:data:`niscope.TriggerSlope` + :param holdoff: + + + The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + :py:attr:`niscope.Session.trigger_holdoff` for more information. + + + + + :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds + :param delay: + + + How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more + information. + + + + + :type delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_trigger_immediate +--------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_immediate() + + Configures common properties for immediate triggering. Immediate + triggering means the digitizer triggers itself. + + When you initiate an acquisition, the digitizer waits for a trigger. You + specify the type of trigger that the digitizer waits for with a + Configure Trigger method, such as :py:meth:`niscope.Session.configure_trigger_immediate`. + + + + + +configure_trigger_software +-------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_software(holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) + + Configures common properties for software triggering. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + To trigger the acquisition, use :py:meth:`niscope.Session.send_software_trigger_edge`. + + + + .. note:: Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + + + :param holdoff: + + + The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + :py:attr:`niscope.Session.trigger_holdoff` for more information. + + + + + :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds + :param delay: + + + How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more + information. + + + + + :type delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_trigger_video +----------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_video(trigger_source, signal_format, event, polarity, trigger_coupling, enable_dc_restore=False, line_number=1, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) + + Configures the common properties for video triggering, including the + signal format, TV event, line number, polarity, and enable DC restore. A + video trigger occurs when the digitizer finds a valid video signal sync. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + + + .. note:: Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + + + :param trigger_source: + + + Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` + for defined values. + + + + + :type trigger_source: str + :param signal_format: + + + Specifies the type of video signal sync the digitizer should look for. + Refer to :py:attr:`niscope.Session.tv_trigger_signal_format` for more + information. + + + + + :type signal_format: :py:data:`niscope.VideoSignalFormat` + :param event: + + + Specifies the TV event you want to trigger on. You can trigger on a + specific or on the next coming line or field of the signal. + + + + + :type event: :py:data:`niscope.VideoTriggerEvent` + :param polarity: + + + Specifies the polarity of the video signal sync. + + + + + :type polarity: :py:data:`niscope.VideoPolarity` + :param trigger_coupling: + + + Applies coupling and filtering options to the trigger signal. Refer to + :py:attr:`niscope.Session.trigger_coupling` for more information. + + + + + :type trigger_coupling: :py:data:`niscope.TriggerCoupling` + :param enable_dc_restore: + + + Offsets each video line so the clamping level (the portion of the video + line between the end of the color burst and the beginning of the active + image) is moved to zero volt. Refer to + :py:attr:`niscope.Session.enable_dc_restore` for defined values. + + + + + :type enable_dc_restore: bool + :param line_number: + + + Selects the line number to trigger on. The line number range covers an + entire frame and is referenced as shown on `Vertical Blanking and + Synchronization + Signal `__. Refer to + :py:attr:`niscope.Session.tv_trigger_line_number` for more information. + + Default value: 1 + + + + + :type line_number: int + :param holdoff: + + + The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + :py:attr:`niscope.Session.trigger_holdoff` for more information. + + + + + :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds + :param delay: + + + How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more + information. + + + + + :type delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_trigger_window +------------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_trigger_window(trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)) + + Configures common properties for analog window triggering. A window + trigger occurs when a signal enters or leaves a window you specify with + the **high level** or **low level** parameters. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the :py:attr:`niscope.Session.acq_arm_source` + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + To trigger the acquisition, use :py:meth:`niscope.Session.send_software_trigger_edge`. + + + + .. note:: Some features are not supported by all digitizers. + + + + :param trigger_source: + + + Specifies the trigger source. Refer to :py:attr:`niscope.Session.trigger_source` + for defined values. + + + + + :type trigger_source: str + :param low_level: + + + Passes the voltage threshold you want the digitizer to use for low + triggering. + + + + + :type low_level: float + :param high_level: + + + Passes the voltage threshold you want the digitizer to use for high + triggering. + + + + + :type high_level: float + :param window_mode: + + + Specifies whether you want the trigger to occur when the signal enters + or leaves a window. + + + + + :type window_mode: :py:data:`niscope.TriggerWindowMode` + :param trigger_coupling: + + + Applies coupling and filtering options to the trigger signal. Refer to + :py:attr:`niscope.Session.trigger_coupling` for more information. + + + + + :type trigger_coupling: :py:data:`niscope.TriggerCoupling` + :param holdoff: + + + The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + :py:attr:`niscope.Session.trigger_holdoff` for more information. + + + + + :type holdoff: hightime.timedelta, datetime.timedelta, or float in seconds + :param delay: + + + How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to :py:attr:`niscope.Session.trigger_delay_time` for more + information. + + + + + :type delay: hightime.timedelta, datetime.timedelta, or float in seconds + +configure_vertical +------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: configure_vertical(range, coupling, offset=0.0, probe_attenuation=1.0, enabled=True) + + Configures the most commonly configured properties of the digitizer + vertical subsystem, such as the range, offset, coupling, probe + attenuation, and the channel. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_vertical` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.configure_vertical` + + + :param range: + + + Specifies the vertical range Refer to :py:attr:`niscope.Session.vertical_range` for + more information. + + + + + :type range: float + :param coupling: + + + Specifies how to couple the input signal. Refer to + :py:attr:`niscope.Session.vertical_coupling` for more information. + + + + + :type coupling: :py:data:`niscope.VerticalCoupling` + :param offset: + + + Specifies the vertical offset. Refer to :py:attr:`niscope.Session.vertical_offset` + for more information. + + + + + :type offset: float + :param probe_attenuation: + + + Specifies the probe attenuation. Refer to + :py:attr:`niscope.Session.probe_attenuation` for valid values. + + + + + :type probe_attenuation: float + :param enabled: + + + Specifies whether the channel is enabled for acquisition. Refer to + :py:attr:`niscope.Session.channel_enabled` for more information. + + + + + :type enabled: bool + +disable +------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: disable() + + Aborts any current operation, opens data channel relays, and releases + RTSI and PFI lines. + + + + + +export_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: export_attribute_configuration_buffer() + + Exports the property configuration of the session to a configuration + buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑SCOPE returns an + error. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + + + + + :rtype: bytes + :return: + + + Specifies the byte array buffer to be populated with the exported + property configuration. + + + + + +export_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: export_attribute_configuration_file(file_path) + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑SCOPE returns an + error. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + + + + + :param file_path: + + + Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:** .niscopeconfig + + + + + :type file_path: str + +fetch +----- + + .. py:currentmodule:: niscope.Session + + .. py:method:: fetch(num_samples=None, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) + + Returns the waveform from a previously initiated acquisition that the + digitizer acquires for the specified channel. This method returns + scaled voltage waveforms. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + + + .. note:: Some functionality, such as time stamping, is not supported in all digitizers. + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch` + + + :param num_samples: + + + The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. + + + + + :type num_samples: int + :param relative_to: + + + Position to start fetching within one record. + + + + + :type relative_to: :py:data:`niscope.FetchRelativeTo` + :param offset: + + + Offset in samples to start fetching data within each record. The offset can be positive or negative. + + + + + :type offset: int + :param record_number: + + + Zero-based index of the first record to fetch. + + + + + :type record_number: int + :param num_records: + + + Number of records to fetch. Use -1 to fetch all configured records. + + + + + :type num_records: int + :param timeout: + + + The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of WaveformInfo + :return: + + + Returns a list of class instances with the following timing and scaling information about each waveform: + + - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform + - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. + - **x_increment** (float) the time between points in the acquired waveform in seconds + - **channel** (str) channel name this waveform was acquired from + - **record** (int) record number of this waveform + - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired + + + + + +fetch_array_measurement +----------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: fetch_array_measurement(array_meas_function, meas_wfm_size=None, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, meas_num_samples=None, timeout=hightime.timedelta(seconds=5.0)) + + Obtains a waveform from the digitizer and returns the specified + measurement array. This method may return multiple waveforms depending + on the number of channels, the acquisition type, and the number of + records you specify. + + + + .. note:: Some functionality, such as time stamping, is not supported in all + digitizers. + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_array_measurement` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch_array_measurement` + + + :param array_meas_function: + + + The array measurement to perform. + + + + + :type array_meas_function: :py:data:`niscope.ArrayMeasurement` + :param meas_wfm_size: + + + The maximum number of samples returned in the measurement waveform array + for each waveform measurement. Default Value: None (returns all available samples). + + + + + :type meas_wfm_size: int + :param relative_to: + + + Position to start fetching within one record. + + + + + :type relative_to: :py:data:`niscope.FetchRelativeTo` + :param offset: + + + Offset in samples to start fetching data within each record. The offset can be positive or negative. + + + + + :type offset: int + :param record_number: + + + Zero-based index of the first record to fetch. + + + + + :type record_number: int + :param num_records: + + + Number of records to fetch. Use `None` to fetch all configured records. + + + + + :type num_records: int + :param meas_num_samples: + + + Number of samples to fetch when performing a measurement. Use `None` to fetch the actual record length. + + + + + :type meas_num_samples: int + :param timeout: + + + The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of WaveformInfo + :return: + + + Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **channel**-channel name this waveform was acquired from + - **record**-record number of this waveform + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **samples**-floating point array of samples. Length will be of actual samples acquired. + + + + + +fetch_into +---------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: fetch_into(waveform, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) + + Returns the waveform from a previously initiated acquisition that the + digitizer acquires for the specified channel. This method returns + scaled voltage waveforms. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + + + .. note:: Some functionality, such as time stamping, is not supported in all digitizers. + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch` + + + :param waveform: + + + numpy array of the appropriate type and size that should be acquired as a 1D array. Size should be **num_samples** times number of waveforms. Call :py:meth:`niscope.Session._actual_num_wfms` to determine the number of waveforms. + + Types supported are + + - `numpy.float64` + - `numpy.int8` + - `numpy.in16` + - `numpy.int32` + + Example: + + .. code-block:: python + + waveform = numpy.ndarray(num_samples * session.actual_num_wfms(), dtype=numpy.float64) + wfm_info = session['0,1'].fetch_into(waveform, timeout=5.0) + + + + + :type waveform: array.array("d") + :param relative_to: + + + Position to start fetching within one record. + + + + + :type relative_to: :py:data:`niscope.FetchRelativeTo` + :param offset: + + + Offset in samples to start fetching data within each record.The offset can be positive or negative. + + + + + :type offset: int + :param record_number: + + + Zero-based index of the first record to fetch. + + + + + :type record_number: int + :param num_records: + + + Number of records to fetch. Use -1 to fetch all configured records. + + + + + :type num_records: int + :param timeout: + + + The time to wait in seconds for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 for this parameter implies infinite timeout. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of WaveformInfo + :return: + + + Returns a list of class instances with the following timing and scaling information about each waveform: + + - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform + - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. + - **x_increment** (float) the time between points in the acquired waveform in seconds + - **channel** (str) channel name this waveform was acquired from + - **record** (int) record number of this waveform + - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired + + + + + +fetch_measurement_stats +----------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: fetch_measurement_stats(scalar_meas_function, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) + + Obtains a waveform measurement and returns the measurement value. This + method may return multiple statistical results depending on the number + of channels, the acquisition type, and the number of records you + specify. + + You specify a particular measurement type, such as rise time, frequency, + or voltage peak-to-peak. The waveform on which the digitizer calculates + the waveform measurement is from an acquisition that you previously + initiated. The statistics for the specified measurement method are + returned, where the statistics are updated once every acquisition when + the specified measurement is fetched by any of the Fetch Measurement + methods. If a Fetch Measurement method has not been called, this + method fetches the data on which to perform the measurement. The + statistics are cleared by calling + :py:meth:`niscope.Session.clear_waveform_measurement_stats`. + + Many of the measurements use the low, mid, and high reference levels. + You configure the low, mid, and high references with + :py:attr:`niscope.Session.meas_chan_low_ref_level`, + :py:attr:`niscope.Session.meas_chan_mid_ref_level`, and + :py:attr:`niscope.Session.meas_chan_high_ref_level` to set each channel + differently. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_measurement_stats` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch_measurement_stats` + + + :param scalar_meas_function: + + + The scalar measurement to be performed on each fetched waveform. + + + + + :type scalar_meas_function: :py:data:`niscope.ScalarMeasurement` + :param relative_to: + + + Position to start fetching within one record. + + + + + :type relative_to: :py:data:`niscope.FetchRelativeTo` + :param offset: + + + Offset in samples to start fetching data within each record. The offset can be positive or negative. + + + + + :type offset: int + :param record_number: + + + Zero-based index of the first record to fetch. + + + + + :type record_number: int + :param num_records: + + + Number of records to fetch. Use `None` to fetch all configured records. + + + + + :type num_records: int + :param timeout: + + + The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of MeasurementStats + :return: + + + Returns a list of class instances with the following measurement statistics + about the specified measurement: + + - **result** (float): the resulting measurement + - **mean** (float): the mean scalar value, which is obtained by + averaging each fetch_measurement_stats call + - **stdev** (float): the standard deviations of the most recent + **numInStats** measurements + - **min_val** (float): the smallest scalar value acquired (the minimum + of the **numInStats** measurements) + - **max_val** (float): the largest scalar value acquired (the maximum + of the **numInStats** measurements) + - **num_in_stats** (int): the number of times fetch_measurement_stats has been called + - **channel** (str): channel name this result was acquired from + - **record** (int): record number of this result + + + + + +get_channel_names +----------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: get_channel_names(indices) + + Returns a list of channel names for given channel indices. + + + + + + :param indices: + + + Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + + + :type indices: basic sequence types, str, or int + + :rtype: list of str + :return: + + + The channel name(s) at the specified indices. + + + + + +get_equalization_filter_coefficients +------------------------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: get_equalization_filter_coefficients() + + Retrieves the custom coefficients for the equalization FIR filter on the device. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. Because this filter is a generic FIR filter, any coefficients are valid. Coefficient values should be between +1 and –1. + + + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_equalization_filter_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.get_equalization_filter_coefficients` + + +get_ext_cal_last_date_and_time +------------------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: get_ext_cal_last_date_and_time() + + Returns the date and time of the last external calibration performed. + + + + + + :rtype: hightime.timedelta, datetime.timedelta, or float in seconds + :return: + + + Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. + + + + + +get_ext_cal_last_temp +--------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: get_ext_cal_last_temp() + + Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful external calibration. + The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. + Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. + + + + + + :rtype: float + :return: + + + Returns the **temperature** in degrees Celsius during the last calibration. + + + + + +get_self_cal_last_date_and_time +------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: get_self_cal_last_date_and_time() + + Returns the date and time of the last self calibration performed. + + + + + + :rtype: hightime.timedelta, datetime.timedelta, or float in seconds + :return: + + + Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. + + + + + +get_self_cal_last_temp +---------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: get_self_cal_last_temp() + + Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful self calibration. + The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. + Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. + + + + + + :rtype: float + :return: + + + Returns the **temperature** in degrees Celsius during the last calibration. + + + + + +import_attribute_configuration_buffer +------------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: import_attribute_configuration_buffer(configuration) + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + + + .. note:: You cannot call this method while the session is in a running state, + such as while acquiring a signal. + + + + :param configuration: + + + Specifies the byte array buffer that contains the property + configuration to import. + + + + + :type configuration: bytes + +import_attribute_configuration_file +----------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: import_attribute_configuration_file(file_path) + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + + + .. note:: You cannot call this method while the session is in a running state, + such as while acquiring a signal. + + + + :param file_path: + + + Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:** .niscopeconfig + + + + + :type file_path: str + +initiate +-------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: initiate() + + Initiates a waveform acquisition. + + After calling this method, the digitizer leaves the Idle state and + waits for a trigger. The digitizer acquires a waveform for each channel + you enable with :py:meth:`niscope.Session.configure_vertical`. + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +lock +---- + + .. py:currentmodule:: niscope.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`niscope.Session.lock` method. + - A call to NI-SCOPE locked the session. + - After a call to the :py:meth:`niscope.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`niscope.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`niscope.Session.lock` method and the + :py:meth:`niscope.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`niscope.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`niscope.Session.lock` method with a call to + the :py:meth:`niscope.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with niscope.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`niscope.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +probe_compensation_signal_start +------------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: probe_compensation_signal_start() + + Starts the 1 kHz square wave output on PFI 1 for probe compensation. + + + + + +probe_compensation_signal_stop +------------------------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: probe_compensation_signal_stop() + + Stops the 1 kHz square wave output on PFI 1 for probe compensation. + + + + + +read +---- + + .. py:currentmodule:: niscope.Session + + .. py:method:: read(num_samples=None, relative_to=niscope.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)) + + Initiates an acquisition, waits for it to complete, and retrieves the + data. The process is similar to calling :py:meth:`niscope.Session._initiate_acquisition`, + :py:meth:`niscope.Session.acquisition_status`, and :py:meth:`niscope.Session.fetch`. The only difference is + that with :py:meth:`niscope.Session.read`, you enable all channels specified with + **channelList** before the acquisition; in the other method, you enable + the channels with :py:meth:`niscope.Session.configure_vertical`. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + + + .. note:: Some functionality, such as time stamping, is not supported in all digitizers. + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.read` + + + :param num_samples: + + + The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. + + + + + :type num_samples: int + :param relative_to: + + + Position to start fetching within one record. + + + + + :type relative_to: :py:data:`niscope.FetchRelativeTo` + :param offset: + + + Offset in samples to start fetching data within each record. The offset can be positive or negative. + + + + + :type offset: int + :param record_number: + + + Zero-based index of the first record to fetch. + + + + + :type record_number: int + :param num_records: + + + Number of records to fetch. Use -1 to fetch all configured records. + + + + + :type num_records: int + :param timeout: + + + The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + :rtype: list of WaveformInfo + :return: + + + Returns a list of class instances with the following timing and scaling information about each waveform: + + - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform + - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. + - **x_increment** (float) the time between points in the acquired waveform in seconds + - **channel** (str) channel name this waveform was acquired from + - **record** (int) record number of this waveform + - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired + + + + + +reset +----- + + .. py:currentmodule:: niscope.Session + + .. py:method:: reset() + + Stops the acquisition, releases routes, and all session properties are + reset to their `default + states `__. + + + + + +reset_device +------------ + + .. py:currentmodule:: niscope.Session + + .. py:method:: reset_device() + + Performs a hard reset of the device. Acquisition stops, all routes are + released, RTSI and PFI lines are tristated, hardware is configured to + its default state, and all session properties are reset to their default + state. + + - `Thermal Shutdown `__ + + + + + +reset_with_defaults +------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: reset_with_defaults() + + Performs a software reset of the device, returning it to the default + state and applying any initial default settings from the IVI + Configuration Store. + + + + + +self_cal +-------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: self_cal(option=niscope.Option.SELF_CALIBRATE_ALL_CHANNELS) + + Self-calibrates most NI digitizers, including all SMC-based devices and + most Traditional NI-DAQ (Legacy) devices. To verify that your digitizer + supports self-calibration, refer to `Features Supported by + Device `__. + + For SMC-based digitizers, if the self-calibration is performed + successfully in a regular session, the calibration constants are + immediately stored in the self-calibration area of the EEPROM. If the + self-calibration is performed in an external calibration session, the + calibration constants take effect immediately for the duration of the + session. However, they are not stored in the EEPROM until + :py:meth:`niscope.Session.CalEnd` is called with **action** set to + :py:data:`~niscope.NISCOPE_VAL_ACTION_STORE` and no errors occur. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].self_cal` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.self_cal` + + + :param option: + + + The calibration option. Use VI_NULL for a normal self-calibration + operation or :py:data:`~niscope.NISCOPE_VAL_CAL_RESTORE_EXTERNAL_CALIBRATION` to + restore the previous calibration. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type option: :py:data:`niscope.Option` + +self_test +--------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: self_test() + + Runs the instrument self-test routine and returns the test result(s). Refer to the + device-specific help topics for an explanation of the message contents. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + + +send_software_trigger_edge +-------------------------- + + .. py:currentmodule:: niscope.Session + + .. py:method:: send_software_trigger_edge(which_trigger) + + Sends the selected trigger to the digitizer. Call this method if you + called :py:meth:`niscope.Session.configure_trigger_software` when you want the Reference + trigger to occur. You can also call this method to override a misused + edge, digital, or hysteresis trigger. If you have configured + :py:attr:`niscope.Session.acq_arm_source`, :py:attr:`niscope.Session.arm_ref_trig_src`, or + :py:attr:`niscope.Session.adv_trig_src`, call this method when you want to send + the corresponding trigger to the digitizer. + + + + + + :param which_trigger: + + + Specifies the type of trigger to send to the digitizer. + + **Defined Values** + + | :py:data:`~niscope.WhichTrigger.START` (0L) + | :py:data:`~niscope.WhichTrigger.ARM_REFERENCE` (1L) + | :py:data:`~niscope.WhichTrigger.REFERENCE` (2L) + | :py:data:`~niscope.WhichTrigger.ADVANCE` (3L) + + + + + :type which_trigger: :py:data:`niscope.WhichTrigger` + +unlock +------ + + .. py:currentmodule:: niscope.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`niscope.Session.lock`. Refer to :py:meth:`niscope.Session.unlock` for additional + information on session locks. + + +Properties +========== + +absolute_sample_clock_offset +---------------------------- + + .. py:attribute:: absolute_sample_clock_offset + + Gets or sets the absolute time offset of the sample clock relative to + the reference clock in terms of seconds. + + + + .. note:: Configures the sample clock relationship with respect to the reference + clock. This parameter is factored into NI-TClk adjustments and is + typically used to improve the repeatability of NI-TClk Synchronization. + When this parameter is read, the currently programmed value is returned. + The range of the absolute sample clock offset is [-.5 sample clock + periods, .5 sample clock periods]. The default absolute sample clock + offset is 0s. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Advanced:Absolute Sample Clock Offset** + - C Attribute: **NISCOPE_ATTR_ABSOLUTE_SAMPLE_CLOCK_OFFSET** + +acquisition_start_time +---------------------- + + .. py:attribute:: acquisition_start_time + + Specifies the length of time from the trigger event to the first point in the waveform record in seconds. If the value is positive, the first point in the waveform record occurs after the trigger event (same as specifying :py:attr:`niscope.Session.trigger_delay_time`). If the value is negative, the first point in the waveform record occurs before the trigger event (same as specifying :py:attr:`niscope.Session.horz_record_ref_position`). + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Advanced:Acquisition Start Time** + - C Attribute: **NISCOPE_ATTR_ACQUISITION_START_TIME** + +acquisition_type +---------------- + + .. py:attribute:: acquisition_type + + Specifies how the digitizer acquires data and fills the waveform record. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.AcquisitionType | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Acquisition Type** + - C Attribute: **NISCOPE_ATTR_ACQUISITION_TYPE** + +acq_arm_source +-------------- + + .. py:attribute:: acq_arm_source + + Specifies the source the digitizer monitors for a start (acquisition arm) trigger. When the start trigger is received, the digitizer begins acquiring pretrigger samples. + Valid Values: + :py:data:`~niscope.NISCOPE_VAL_IMMEDIATE` ('VAL_IMMEDIATE') - Triggers immediately + :py:data:`~niscope.NISCOPE_VAL_RTSI_0` ('VAL_RTSI_0') - RTSI 0 + :py:data:`~niscope.NISCOPE_VAL_RTSI_1` ('VAL_RTSI_1') - RTSI 1 + :py:data:`~niscope.NISCOPE_VAL_RTSI_2` ('VAL_RTSI_2') - RTSI 2 + :py:data:`~niscope.NISCOPE_VAL_RTSI_3` ('VAL_RTSI_3') - RTSI 3 + :py:data:`~niscope.NISCOPE_VAL_RTSI_4` ('VAL_RTSI_4') - RTSI 4 + :py:data:`~niscope.NISCOPE_VAL_RTSI_5` ('VAL_RTSI_5') - RTSI 5 + :py:data:`~niscope.NISCOPE_VAL_RTSI_6` ('VAL_RTSI_6') - RTSI 6 + :py:data:`~niscope.NISCOPE_VAL_PFI_0` ('VAL_PFI_0') - PFI 0 + :py:data:`~niscope.NISCOPE_VAL_PFI_1` ('VAL_PFI_1') - PFI 1 + :py:data:`~niscope.NISCOPE_VAL_PFI_2` ('VAL_PFI_2') - PFI 2 + :py:data:`~niscope.NISCOPE_VAL_PXI_STAR` ('VAL_PXI_STAR') - PXI Star Trigger + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Start Trigger (Acq. Arm):Source** + - C Attribute: **NISCOPE_ATTR_ACQ_ARM_SOURCE** + +advance_trigger_terminal_name +----------------------------- + + .. py:attribute:: advance_trigger_terminal_name + + Returns the fully qualified name for the Advance Trigger terminal. You can use this terminal as the source for another trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Advance Trigger:Terminal Name** + - C Attribute: **NISCOPE_ATTR_ADVANCE_TRIGGER_TERMINAL_NAME** + +adv_trig_src +------------ + + .. py:attribute:: adv_trig_src + + Specifies the source the digitizer monitors for an advance trigger. When the advance trigger is received, the digitizer begins acquiring pretrigger samples. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Advance Trigger:Source** + - C Attribute: **NISCOPE_ATTR_ADV_TRIG_SRC** + +allow_more_records_than_memory +------------------------------ + + .. py:attribute:: allow_more_records_than_memory + + Indicates whether more records can be configured with :py:meth:`niscope.Session.configure_horizontal_timing` than fit in the onboard memory. If this property is set to True, it is necessary to fetch records while the acquisition is in progress. Eventually, some of the records will be overwritten. An error is returned from the fetch method if you attempt to fetch a record that has been overwritten. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Enable Records > Memory** + - C Attribute: **NISCOPE_ATTR_ALLOW_MORE_RECORDS_THAN_MEMORY** + +arm_ref_trig_src +---------------- + + .. py:attribute:: arm_ref_trig_src + + Specifies the source the digitizer monitors for an arm reference trigger. When the arm reference trigger is received, the digitizer begins looking for a reference (stop) trigger from the user-configured trigger source. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Arm Reference Trigger:Source** + - C Attribute: **NISCOPE_ATTR_ARM_REF_TRIG_SRC** + +backlog +------- + + .. py:attribute:: backlog + + Returns the number of samples (:py:attr:`niscope.Session.points_done`) that have been acquired but not fetched for the record specified by :py:attr:`niscope.Session.fetch_record_number`. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Fetch:Fetch Backlog** + - C Attribute: **NISCOPE_ATTR_BACKLOG** + +bandpass_filter_enabled +----------------------- + + .. py:attribute:: bandpass_filter_enabled + + Enables the bandpass filter on the specificed channel. The default value is FALSE. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].bandpass_filter_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.bandpass_filter_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Bandpass Filter Enabled** + - C Attribute: **NISCOPE_ATTR_BANDPASS_FILTER_ENABLED** + +binary_sample_width +------------------- + + .. py:attribute:: binary_sample_width + + Indicates the bit width of the binary data in the acquired waveform. Useful for determining which Binary Fetch method to use. Compare to :py:attr:`niscope.Session.resolution`. + To configure the device to store samples with a lower resolution that the native, set this property to the desired binary width. + This can be useful for streaming at faster speeds at the cost of resolution. The least significant bits will be lost with this configuration. + Valid Values: 8, 16, 32 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Binary Sample Width** + - C Attribute: **NISCOPE_ATTR_BINARY_SAMPLE_WIDTH** + +cable_sense_mode +---------------- + + .. py:attribute:: cable_sense_mode + + Specifies whether and how the oscilloscope is configured to generate a CableSense signal on the specified channels when the :py:meth:`niscope.Session.CableSenseSignalStart` method is called. + + Device-Specific Behavior: + PXIe-5160/5162 + - The value of this property must be identical across all channels whose input impedance is set to 50 ohms. + - If this property is set to a value other than :py:data:`~niscope.CableSenseMode.DISABLED` for any channel(s), the input impedance of all channels for which this property is set to :py:data:`~niscope.CableSenseMode.DISABLED` must be set to 1 M Ohm. + + +-----------------------+ + | **Supported Devices** | + +-----------------------+ + | PXIe-5110 | + +-----------------------+ + | PXIe-5111 | + +-----------------------+ + | PXIe-5113 | + +-----------------------+ + | PXIe-5160 | + +-----------------------+ + | PXIe-5162 | + +-----------------------+ + + .. note:: the input impedance of the channel(s) to convey the CableSense signal must be set to 50 ohms. + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.CableSenseMode | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_CABLE_SENSE_MODE** + +cable_sense_signal_enable +------------------------- + + .. py:attribute:: cable_sense_signal_enable + + TBD + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_CABLE_SENSE_SIGNAL_ENABLE** + +cable_sense_voltage +------------------- + + .. py:attribute:: cable_sense_voltage + + Returns the voltage of the CableSense signal that is written to the EEPROM of the oscilloscope during factory calibration. + + +-----------------------+ + | **Supported Devices** | + +-----------------------+ + | PXIe-5110 | + +-----------------------+ + | PXIe-5111 | + +-----------------------+ + | PXIe-5113 | + +-----------------------+ + | PXIe-5160 | + +-----------------------+ + | PXIe-5162 | + +-----------------------+ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_CABLE_SENSE_VOLTAGE** + +channel_count +------------- + + .. py:attribute:: channel_count + + Indicates the number of channels that the specific instrument driver supports. + For channel-based properties, the IVI engine maintains a separate cache value for each channel. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Channel Count** + - C Attribute: **NISCOPE_ATTR_CHANNEL_COUNT** + +channel_enabled +--------------- + + .. py:attribute:: channel_enabled + + Specifies whether the digitizer acquires a waveform for the channel. + Valid Values: + True (1) - Acquire data on this channel + False (0) - Don't acquire data on this channel + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].channel_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.channel_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Channel Enabled** + - C Attribute: **NISCOPE_ATTR_CHANNEL_ENABLED** + +channel_terminal_configuration +------------------------------ + + .. py:attribute:: channel_terminal_configuration + + Specifies the terminal configuration for the channel. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].channel_terminal_configuration` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.channel_terminal_configuration` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.TerminalConfiguration | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Channel Terminal Configuration** + - C Attribute: **NISCOPE_ATTR_CHANNEL_TERMINAL_CONFIGURATION** + +data_transfer_block_size +------------------------ + + .. py:attribute:: data_transfer_block_size + + Specifies the maximum number of samples to transfer at one time from the device to host memory. Increasing this number should result in better fetching performance because the driver does not need to restart the transfers as often. However, increasing this number may also increase the amount of page-locked memory required from the system. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Fetch:Data Transfer Block Size** + - C Attribute: **NISCOPE_ATTR_DATA_TRANSFER_BLOCK_SIZE** + +data_transfer_maximum_bandwidth +------------------------------- + + .. py:attribute:: data_transfer_maximum_bandwidth + + This property specifies the maximum bandwidth that the device is allowed to consume. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Fetch:Advanced:Maximum Bandwidth** + - C Attribute: **NISCOPE_ATTR_DATA_TRANSFER_MAXIMUM_BANDWIDTH** + +data_transfer_preferred_packet_size +----------------------------------- + + .. py:attribute:: data_transfer_preferred_packet_size + + This property specifies the size of (read request|memory write) data payload. Due to alignment of the data buffers, the hardware may not always generate a packet of this size. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Fetch:Advanced:Preferred Packet Size** + - C Attribute: **NISCOPE_ATTR_DATA_TRANSFER_PREFERRED_PACKET_SIZE** + +device_temperature +------------------ + + .. py:attribute:: device_temperature + + Returns the temperature of the device in degrees Celsius from the onboard sensor. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].device_temperature` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.device_temperature` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | float | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device:Temperature** + - C Attribute: **NISCOPE_ATTR_DEVICE_TEMPERATURE** + +enabled_channels +---------------- + + .. py:attribute:: enabled_channels + + Returns a comma-separated list of the channels enabled for the session in ascending order. + + If no channels are enabled, this property returns an empty string, "". + If all channels are enabled, this property enumerates all of the channels. + + Because this property returns channels in ascending order, but the order in which you specify channels for the input is important, the value of this property may not necessarily reflect the order in which NI-SCOPE performs certain actions. + + Refer to Channel String Syntax in the NI High-Speed Digitizers Help for more information on the effects of channel order in NI-SCOPE. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_ENABLED_CHANNELS** + +enable_dc_restore +----------------- + + .. py:attribute:: enable_dc_restore + + Restores the video-triggered data retrieved by the digitizer to the video signal's zero reference point. + Valid Values: + True - Enable DC restore + False - Disable DC restore + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Video:Enable DC Restore** + - C Attribute: **NISCOPE_ATTR_ENABLE_DC_RESTORE** + +enable_time_interleaved_sampling +-------------------------------- + + .. py:attribute:: enable_time_interleaved_sampling + + Specifies whether the digitizer acquires the waveform using multiple ADCs for the channel enabling a higher maximum real-time sampling rate. + Valid Values: + True (1) - Use multiple interleaved ADCs on this channel + False (0) - Use only this channel's ADC to acquire data for this channel + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].enable_time_interleaved_sampling` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.enable_time_interleaved_sampling` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Enable Time Interleaved Sampling** + - C Attribute: **NISCOPE_ATTR_ENABLE_TIME_INTERLEAVED_SAMPLING** + +end_of_acquisition_event_output_terminal +---------------------------------------- + + .. py:attribute:: end_of_acquisition_event_output_terminal + + Specifies the destination for the End of Acquisition Event. When this event is asserted, the digitizer has completed sampling for all records. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:End of Acquisition:Output Terminal** + - C Attribute: **NISCOPE_ATTR_END_OF_ACQUISITION_EVENT_OUTPUT_TERMINAL** + +end_of_acquisition_event_terminal_name +-------------------------------------- + + .. py:attribute:: end_of_acquisition_event_terminal_name + + Returns the fully qualified name for the End of Acquisition Event terminal. You can use this terminal as the source for a trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:End of Acquisition:Terminal Name** + - C Attribute: **NISCOPE_ATTR_END_OF_ACQUISITION_EVENT_TERMINAL_NAME** + +end_of_record_event_output_terminal +----------------------------------- + + .. py:attribute:: end_of_record_event_output_terminal + + Specifies the destination for the End of Record Event. When this event is asserted, the digitizer has completed sampling for the current record. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:End of Record:Output Terminal** + - C Attribute: **NISCOPE_ATTR_END_OF_RECORD_EVENT_OUTPUT_TERMINAL** + +end_of_record_event_terminal_name +--------------------------------- + + .. py:attribute:: end_of_record_event_terminal_name + + Returns the fully qualified name for the End of Record Event terminal. You can use this terminal as the source for a trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:End of Record:Terminal Name** + - C Attribute: **NISCOPE_ATTR_END_OF_RECORD_EVENT_TERMINAL_NAME** + +end_of_record_to_advance_trigger_holdoff +---------------------------------------- + + .. py:attribute:: end_of_record_to_advance_trigger_holdoff + + End of Record to Advance Trigger Holdoff is the length of time (in + seconds) that a device waits between the completion of one record and + the acquisition of pre-trigger samples for the next record. During this + time, the acquisition engine state delays the transition to the Wait for + Advance Trigger state, and will not store samples in onboard memory, + accept an Advance Trigger, or trigger on the input signal.. + **Supported Devices**: NI 5185/5186 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:End of Record to Advance Trigger Holdoff** + - C Attribute: **NISCOPE_ATTR_END_OF_RECORD_TO_ADVANCE_TRIGGER_HOLDOFF** + +equalization_filter_enabled +--------------------------- + + .. py:attribute:: equalization_filter_enabled + + Enables the onboard signal processing FIR block. This block is connected directly to the input signal. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].equalization_filter_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.equalization_filter_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Onboard Signal Processing:Equalization:Equalization Filter Enabled** + - C Attribute: **NISCOPE_ATTR_EQUALIZATION_FILTER_ENABLED** + +equalization_num_coefficients +----------------------------- + + .. py:attribute:: equalization_num_coefficients + + Returns the number of coefficients that the FIR filter can accept. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].equalization_num_coefficients` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.equalization_num_coefficients` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Onboard Signal Processing:Equalization:Equalization Num Coefficients** + - C Attribute: **NISCOPE_ATTR_EQUALIZATION_NUM_COEFFICIENTS** + +exported_advance_trigger_output_terminal +---------------------------------------- + + .. py:attribute:: exported_advance_trigger_output_terminal + + Specifies the destination to export the advance trigger. When the advance trigger is received, the digitizer begins acquiring samples for the Nth record. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Advance Trigger:Output Terminal** + - C Attribute: **NISCOPE_ATTR_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL** + +exported_ref_trigger_output_terminal +------------------------------------ + + .. py:attribute:: exported_ref_trigger_output_terminal + + Specifies the destination export for the reference (stop) trigger. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Output Terminal** + - C Attribute: **NISCOPE_ATTR_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL** + +exported_start_trigger_output_terminal +-------------------------------------- + + .. py:attribute:: exported_start_trigger_output_terminal + + Specifies the destination to export the Start trigger. When the start trigger is received, the digitizer begins acquiring samples. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Start Trigger (Acq. Arm):Output Terminal** + - C Attribute: **NISCOPE_ATTR_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL** + +flex_fir_antialias_filter_type +------------------------------ + + .. py:attribute:: flex_fir_antialias_filter_type + + The NI 5922 flexible-resolution digitizer uses an onboard FIR lowpass antialias filter. + Use this property to select from several types of filters to achieve desired filtering characteristics. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].flex_fir_antialias_filter_type` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.flex_fir_antialias_filter_type` + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.FlexFIRAntialiasFilterType | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Flex FIR Antialias Filter Type** + - C Attribute: **NISCOPE_ATTR_FLEX_FIR_ANTIALIAS_FILTER_TYPE** + +fpga_bitfile_path +----------------- + + .. py:attribute:: fpga_bitfile_path + + Gets the absolute file path to the bitfile loaded on the FPGA. + + + + .. note:: Gets the absolute file path to the bitfile loaded on the FPGA. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device:FPGA Bitfile Path** + - C Attribute: **NISCOPE_ATTR_FPGA_BITFILE_PATH** + +glitch_condition +---------------- + + .. py:attribute:: glitch_condition + + Specifies whether the oscilloscope triggers on pulses of duration less than or greater than the value specified by the :py:attr:`niscope.Session.glitch_width` property. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.GlitchCondition | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_GLITCH_CONDITION** + +glitch_polarity +--------------- + + .. py:attribute:: glitch_polarity + + Specifies the polarity of pulses that trigger the oscilloscope for glitch triggering. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.GlitchPolarity | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_GLITCH_POLARITY** + +glitch_width +------------ + + .. py:attribute:: glitch_width + + Specifies the glitch duration, in seconds. + + The oscilloscope triggers when it detects of pulse of duration either less than or greater than this value depending on the value of the :py:attr:`niscope.Session.glitch_condition` property. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_GLITCH_WIDTH** + +high_pass_filter_frequency +-------------------------- + + .. py:attribute:: high_pass_filter_frequency + + Specifies the frequency for the highpass filter in Hz. The device uses + one of the valid values listed below. If an invalid value is specified, + no coercion occurs. The default value is 0. + **(PXIe-5164) Valid Values:** + 0 90 450 + **Related topics:** + `Digital Filtering `__ + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].high_pass_filter_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.high_pass_filter_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:High Pass Filter Frequency** + - C Attribute: **NISCOPE_ATTR_HIGH_PASS_FILTER_FREQUENCY** + +horz_enforce_realtime +--------------------- + + .. py:attribute:: horz_enforce_realtime + + Indicates whether the digitizer enforces real-time measurements or allows equivalent-time measurements. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Enforce Realtime** + - C Attribute: **NISCOPE_ATTR_HORZ_ENFORCE_REALTIME** + +horz_min_num_pts +---------------- + + .. py:attribute:: horz_min_num_pts + + Specifies the minimum number of points you require in the waveform record for each channel. NI-SCOPE uses the value you specify to configure the record length that the digitizer uses for waveform acquisition. :py:attr:`niscope.Session.horz_record_length` returns the actual record length. + Valid Values: 1 - available onboard memory + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Min Number of Points** + - C Attribute: **NISCOPE_ATTR_HORZ_MIN_NUM_PTS** + +horz_num_records +---------------- + + .. py:attribute:: horz_num_records + + Specifies the number of records to acquire. Can be used for multi-record acquisition and single-record acquisitions. Setting this to 1 indicates a single-record acquisition. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Number of Records** + - C Attribute: **NISCOPE_ATTR_HORZ_NUM_RECORDS** + +horz_record_length +------------------ + + .. py:attribute:: horz_record_length + + Returns the actual number of points the digitizer acquires for each channel. The value is equal to or greater than the minimum number of points you specify with :py:attr:`niscope.Session.horz_min_num_pts`. + Allocate a ViReal64 array of this size or greater to pass as the WaveformArray parameter of the Read and Fetch methods. This property is only valid after a call to the one of the Configure Horizontal methods. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Actual Record Length** + - C Attribute: **NISCOPE_ATTR_HORZ_RECORD_LENGTH** + +horz_record_ref_position +------------------------ + + .. py:attribute:: horz_record_ref_position + + Specifies the position of the Reference Event in the waveform record. When the digitizer detects a trigger, it waits the length of time the :py:attr:`niscope.Session.trigger_delay_time` property specifies. The event that occurs when the delay time elapses is the Reference Event. The Reference Event is relative to the start of the record and is a percentage of the record length. For example, the value 50.0 corresponds to the center of the waveform record and 0.0 corresponds to the first element in the waveform record. + Valid Values: 0.0 - 100.0 + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Reference Position** + - C Attribute: **NISCOPE_ATTR_HORZ_RECORD_REF_POSITION** + +horz_sample_rate +---------------- + + .. py:attribute:: horz_sample_rate + + Returns the effective sample rate using the current configuration. The units are samples per second. This property is only valid after a call to the one of the Configure Horizontal methods. + Units: Hertz (Samples / Second) + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Actual Sample Rate** + - C Attribute: **NISCOPE_ATTR_HORZ_SAMPLE_RATE** + +horz_time_per_record +-------------------- + + .. py:attribute:: horz_time_per_record + + Specifies the length of time that corresponds to the record length. + Units: Seconds + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Advanced:Time Per Record** + - C Attribute: **NISCOPE_ATTR_HORZ_TIME_PER_RECORD** + +input_clock_source +------------------ + + .. py:attribute:: input_clock_source + + Specifies the input source for the PLL reference clock (the 1 MHz to 20 MHz clock on the NI 5122, the 10 MHz clock for the NI 5112/5620/5621/5911) to which the digitizer will be phase-locked; for the NI 5102, this is the source of the board clock. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Reference (Input) Clock Source** + - C Attribute: **NISCOPE_ATTR_INPUT_CLOCK_SOURCE** + +input_impedance +--------------- + + .. py:attribute:: input_impedance + + Specifies the input impedance for the channel in Ohms. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].input_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.input_impedance` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Input Impedance** + - C Attribute: **NISCOPE_ATTR_INPUT_IMPEDANCE** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + A string that contains the firmware revision information for the instrument you are currently using. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.instrument_firmware_revision` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** + - C Attribute: **NISCOPE_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + A string that contains the name of the instrument manufacturer. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** + - C Attribute: **NISCOPE_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + A string that contains the model number of the current instrument. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** + - C Attribute: **NISCOPE_ATTR_INSTRUMENT_MODEL** + +interleaving_offset_correction_enabled +-------------------------------------- + + .. py:attribute:: interleaving_offset_correction_enabled + + Enables the interleaving offset correction on the specified channel. The + default value is TRUE. + **Related topics:** + `Timed Interleaved + Sampling `__ + + + + .. note:: If disabled, warranted specifications are not guaranteed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].interleaving_offset_correction_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.interleaving_offset_correction_enabled` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Advanced:Interleaving Offset Correction Enabled** + - C Attribute: **NISCOPE_ATTR_INTERLEAVING_OFFSET_CORRECTION_ENABLED** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Indicates the resource descriptor the driver uses to identify the physical device. If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. + If you initialize the instrument driver with the resource descriptor, this property contains that value.You can pass a logical name to :py:meth:`niscope.Session.Init` or :py:meth:`niscope.Session.__init__`. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Resource Descriptor** + - C Attribute: **NISCOPE_ATTR_IO_RESOURCE_DESCRIPTOR** + +is_probe_comp_on +---------------- + + .. py:attribute:: is_probe_comp_on + + .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].is_probe_comp_on` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.is_probe_comp_on` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | bool | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_IS_PROBE_COMP_ON** + +logical_name +------------ + + .. py:attribute:: logical_name + + A string containing the logical name you specified when opening the current IVI session. You can pass a logical name to :py:meth:`niscope.Session.Init` or :py:meth:`niscope.Session.__init__`. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NISCOPE_ATTR_LOGICAL_NAME** + +master_enable +------------- + + .. py:attribute:: master_enable + + Specifies whether you want the device to be a master or a slave. The master typically originates the trigger signal and clock sync pulse. For a standalone device, set this property to False. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Master Enable** + - C Attribute: **NISCOPE_ATTR_MASTER_ENABLE** + +max_input_frequency +------------------- + + .. py:attribute:: max_input_frequency + + Specifies the bandwidth of the channel. Express this value as the frequency at which the input circuitry attenuates the input signal by 3 dB. The units are hertz. + Defined Values: + :py:data:`~niscope.NISCOPE_VAL_BANDWIDTH_FULL` (-1.0) + :py:data:`~niscope.NISCOPE_VAL_BANDWIDTH_DEVICE_DEFAULT` (0.0) + :py:data:`~niscope.NISCOPE_VAL_20MHZ_BANDWIDTH` (20000000.0) + :py:data:`~niscope.NISCOPE_VAL_100MHZ_BANDWIDTH` (100000000.0) + :py:data:`~niscope.NISCOPE_VAL_20MHZ_MAX_INPUT_FREQUENCY` (20000000.0) + :py:data:`~niscope.NISCOPE_VAL_100MHZ_MAX_INPUT_FREQUENCY` (100000000.0) + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_input_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.max_input_frequency` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Maximum Input Frequency** + - C Attribute: **NISCOPE_ATTR_MAX_INPUT_FREQUENCY** + +max_real_time_sampling_rate +--------------------------- + + .. py:attribute:: max_real_time_sampling_rate + + Returns the maximum real time sample rate in Hz. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Maximum Real Time Sample Rate** + - C Attribute: **NISCOPE_ATTR_MAX_REAL_TIME_SAMPLING_RATE** + +max_ris_rate +------------ + + .. py:attribute:: max_ris_rate + + Returns the maximum sample rate in RIS mode in Hz. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Maximum RIS Rate** + - C Attribute: **NISCOPE_ATTR_MAX_RIS_RATE** + +meas_array_gain +--------------- + + .. py:attribute:: meas_array_gain + + Every element of an array is multiplied by this scalar value during the Array Gain measurement. Refer to :py:data:`~niscope.ArrayMeasurement.ARRAY_GAIN` for more information. + Default: 1.0 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_array_gain` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_array_gain` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Array Gain** + - C Attribute: **NISCOPE_ATTR_MEAS_ARRAY_GAIN** + +meas_array_offset +----------------- + + .. py:attribute:: meas_array_offset + + Every element of an array is added to this scalar value during the Array Offset measurement. Refer to :py:data:`~niscope.ArrayMeasurement.ARRAY_OFFSET` for more information. + Default: 0.0 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_array_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_array_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Array Offset** + - C Attribute: **NISCOPE_ATTR_MEAS_ARRAY_OFFSET** + +meas_chan_high_ref_level +------------------------ + + .. py:attribute:: meas_chan_high_ref_level + + Stores the high reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as :py:attr:`niscope.Session.meas_high_ref` if you use this property to set various channels to different values. + Default: 90% + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_chan_high_ref_level` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_chan_high_ref_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Reference Levels:Channel Based High Ref Level** + - C Attribute: **NISCOPE_ATTR_MEAS_CHAN_HIGH_REF_LEVEL** + +meas_chan_low_ref_level +----------------------- + + .. py:attribute:: meas_chan_low_ref_level + + Stores the low reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as :py:attr:`niscope.Session.meas_low_ref` if you use this property to set various channels to different values. + Default: 10% + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_chan_low_ref_level` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_chan_low_ref_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Reference Levels:Channel Based Low Ref Level** + - C Attribute: **NISCOPE_ATTR_MEAS_CHAN_LOW_REF_LEVEL** + +meas_chan_mid_ref_level +----------------------- + + .. py:attribute:: meas_chan_mid_ref_level + + Stores the mid reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as :py:attr:`niscope.Session.meas_mid_ref` if you use this property to set various channels to different values. + Default: 50% + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_chan_mid_ref_level` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_chan_mid_ref_level` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Reference Levels:Channel Based Mid Ref Level** + - C Attribute: **NISCOPE_ATTR_MEAS_CHAN_MID_REF_LEVEL** + +meas_filter_center_freq +----------------------- + + .. py:attribute:: meas_filter_center_freq + + The center frequency in hertz for filters of type bandpass and bandstop. The width of the filter is specified by :py:attr:`niscope.Session.meas_filter_width`, where the cutoff frequencies are the center ± width. + Default: 1.0e6 Hz + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_center_freq` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_center_freq` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:Center Frequency** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_CENTER_FREQ** + +meas_filter_cutoff_freq +----------------------- + + .. py:attribute:: meas_filter_cutoff_freq + + Specifies the cutoff frequency in hertz for filters of type lowpass and highpass. The cutoff frequency definition varies depending on the filter. + Default: 1.0e6 Hz + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_cutoff_freq` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_cutoff_freq` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:Cutoff Frequency** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_CUTOFF_FREQ** + +meas_filter_order +----------------- + + .. py:attribute:: meas_filter_order + + Specifies the order of an IIR filter. All positive integers are valid. + Default: 2 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_order` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_order` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:IIR Order** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_ORDER** + +meas_filter_ripple +------------------ + + .. py:attribute:: meas_filter_ripple + + Specifies the amount of ripple in the passband in units of decibels (positive values). Used only for Chebyshev filters. The more ripple allowed gives a sharper cutoff for a given filter order. + Default: 0.1 dB + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_ripple` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_ripple` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:Ripple** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_RIPPLE** + +meas_filter_taps +---------------- + + .. py:attribute:: meas_filter_taps + + Defines the number of taps (coefficients) for an FIR filter. + Default: 25 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_taps` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_taps` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:FIR Taps** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_TAPS** + +meas_filter_transient_waveform_percent +-------------------------------------- + + .. py:attribute:: meas_filter_transient_waveform_percent + + The percentage (0 - 100%) of the IIR filtered waveform to eliminate from the beginning of the waveform. This allows eliminating the transient portion of the waveform that is undefined due to the assumptions necessary at the boundary condition. + Default: 20.0% + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_transient_waveform_percent` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_transient_waveform_percent` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:Percent Waveform Transient** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_TRANSIENT_WAVEFORM_PERCENT** + +meas_filter_type +---------------- + + .. py:attribute:: meas_filter_type + + Specifies the type of filter, for both IIR and FIR filters. The allowed values are the following: + · :py:data:`~niscope.NISCOPE_VAL_MEAS_LOWPASS` + · :py:data:`~niscope.NISCOPE_VAL_MEAS_HIGHPASS` + · :py:data:`~niscope.NISCOPE_VAL_MEAS_BANDPASS` + · :py:data:`~niscope.NISCOPE_VAL_MEAS_BANDSTOP` + Default: :py:data:`~niscope.NISCOPE_VAL_MEAS_LOWPASS` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_type` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_type` + + The following table lists the characteristics of this property. + + +-----------------------+------------------+ + | Characteristic | Value | + +=======================+==================+ + | Datatype | enums.FilterType | + +-----------------------+------------------+ + | Permissions | read-write | + +-----------------------+------------------+ + | Repeated Capabilities | channels | + +-----------------------+------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:Type** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_TYPE** + +meas_filter_width +----------------- + + .. py:attribute:: meas_filter_width + + Specifies the width of bandpass and bandstop type filters in hertz. The cutoff frequencies occur at :py:attr:`niscope.Session.meas_filter_center_freq` ± one-half width. + Default: 1.0e3 Hz + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_width` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_width` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:Width** + - C Attribute: **NISCOPE_ATTR_MEAS_FILTER_WIDTH** + +meas_fir_filter_window +---------------------- + + .. py:attribute:: meas_fir_filter_window + + Specifies the FIR window type. The possible choices are: + :py:data:`~niscope.FIRFilterWindow.NONE` + :py:data:`~niscope.ArrayMeasurement.HANNING_WINDOW` + :py:data:`~niscope.ArrayMeasurement.HAMMING_WINDOW` + :py:data:`~niscope.ArrayMeasurement.TRIANGLE_WINDOW` + :py:data:`~niscope.ArrayMeasurement.FLAT_TOP_WINDOW` + :py:data:`~niscope.ArrayMeasurement.BLACKMAN_WINDOW` + The symmetric windows are applied to the FIR filter coefficients to limit passband ripple in FIR filters. + Default: :py:data:`~niscope.FIRFilterWindow.NONE` + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_fir_filter_window` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_fir_filter_window` + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.FIRFilterWindow | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | channels | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Filter:FIR Window** + - C Attribute: **NISCOPE_ATTR_MEAS_FIR_FILTER_WINDOW** + +meas_high_ref +------------- + + .. py:attribute:: meas_high_ref + + + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_MEAS_HIGH_REF** + +meas_hysteresis_percent +----------------------- + + .. py:attribute:: meas_hysteresis_percent + + Digital hysteresis that is used in several of the scalar waveform measurements. This property specifies the percentage of the full-scale vertical range for the hysteresis window size. + Default: 2% + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_hysteresis_percent` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_hysteresis_percent` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Hysteresis Percent** + - C Attribute: **NISCOPE_ATTR_MEAS_HYSTERESIS_PERCENT** + +meas_interpolation_sampling_factor +---------------------------------- + + .. py:attribute:: meas_interpolation_sampling_factor + + The new number of points for polynomial interpolation is the sampling factor times the input number of points. For example, if you acquire 1,000 points with the digitizer and set this property to 2.5, calling :py:meth:`niscope.Session.FetchWaveformMeasurementArray` with the :py:data:`~niscope.ArrayMeasurement.POLYNOMIAL_INTERPOLATION` measurement resamples the waveform to 2,500 points. + Default: 2.0 + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_interpolation_sampling_factor` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_interpolation_sampling_factor` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Interpolation:Sampling Factor** + - C Attribute: **NISCOPE_ATTR_MEAS_INTERPOLATION_SAMPLING_FACTOR** + +meas_last_acq_histogram_size +---------------------------- + + .. py:attribute:: meas_last_acq_histogram_size + + Specifies the size (that is, the number of bins) in the last acquisition histogram. This histogram is used to determine several scalar measurements, most importantly voltage low and voltage high. + Default: 256 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_last_acq_histogram_size` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_last_acq_histogram_size` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Last Acq. Histogram Size** + - C Attribute: **NISCOPE_ATTR_MEAS_LAST_ACQ_HISTOGRAM_SIZE** + +meas_low_ref +------------ + + .. py:attribute:: meas_low_ref + + + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_MEAS_LOW_REF** + +meas_mid_ref +------------ + + .. py:attribute:: meas_mid_ref + + + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_MEAS_MID_REF** + +meas_other_channel +------------------ + + .. py:attribute:: meas_other_channel + + Specifies the second channel for two-channel measurements, such as :py:data:`~niscope.ArrayMeasurement.ADD_CHANNELS`. If processing steps are registered with this channel, the processing is done before the waveform is used in a two-channel measurement. + Default: '0' + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_other_channel` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_other_channel` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str or int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Other Channel** + - C Attribute: **NISCOPE_ATTR_MEAS_OTHER_CHANNEL** + +meas_percentage_method +---------------------- + + .. py:attribute:: meas_percentage_method + + Specifies the method used to map percentage reference units to voltages for the reference. Possible values are: + :py:data:`~niscope.NISCOPE_VAL_MEAS_LOW_HIGH` + :py:data:`~niscope.NISCOPE_VAL_MEAS_MIN_MAX` + :py:data:`~niscope.NISCOPE_VAL_MEAS_BASE_TOP` + Default: :py:data:`~niscope.NISCOPE_VAL_MEAS_BASE_TOP` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_percentage_method` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_percentage_method` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.PercentageMethod | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | channels | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Reference Levels:Percentage Units Method** + - C Attribute: **NISCOPE_ATTR_MEAS_PERCENTAGE_METHOD** + +meas_polynomial_interpolation_order +----------------------------------- + + .. py:attribute:: meas_polynomial_interpolation_order + + Specifies the polynomial order used for the polynomial interpolation measurement. For example, an order of 1 is linear interpolation whereas an order of 2 specifies parabolic interpolation. Any positive integer is valid. + Default: 1 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_polynomial_interpolation_order` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_polynomial_interpolation_order` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Interpolation:Polynomial Interpolation Order** + - C Attribute: **NISCOPE_ATTR_MEAS_POLYNOMIAL_INTERPOLATION_ORDER** + +meas_ref_level_units +-------------------- + + .. py:attribute:: meas_ref_level_units + + Specifies the units of the reference levels. + :py:data:`~niscope.NISCOPE_VAL_MEAS_VOLTAGE`--Specifies that the reference levels are given in units of volts + :py:data:`~niscope.NISCOPE_VAL_MEAS_PERCENTAGE`--Percentage units, where the measurements voltage low and voltage high represent 0% and 100%, respectively. + Default: :py:data:`~niscope.NISCOPE_VAL_MEAS_PERCENTAGE` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_ref_level_units` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_ref_level_units` + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | enums.RefLevelUnits | + +-----------------------+---------------------+ + | Permissions | read-write | + +-----------------------+---------------------+ + | Repeated Capabilities | channels | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Reference Levels:Units** + - C Attribute: **NISCOPE_ATTR_MEAS_REF_LEVEL_UNITS** + +meas_time_histogram_high_time +----------------------------- + + .. py:attribute:: meas_time_histogram_high_time + + Specifies the highest time value included in the multiple acquisition time histogram. The units are always seconds. + Default: 5.0e-4 seconds + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_time` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_high_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Time Histogram:High Time** + - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_HIGH_TIME** + +meas_time_histogram_high_volts +------------------------------ + + .. py:attribute:: meas_time_histogram_high_volts + + Specifies the highest voltage value included in the multiple-acquisition time histogram. The units are always volts. + Default: 10.0 V + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_high_volts` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Time Histogram:High Volts** + - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_HIGH_VOLTS** + +meas_time_histogram_low_time +---------------------------- + + .. py:attribute:: meas_time_histogram_low_time + + Specifies the lowest time value included in the multiple-acquisition time histogram. The units are always seconds. + Default: -5.0e-4 seconds + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_time` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_low_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Time Histogram:Low Time** + - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_LOW_TIME** + +meas_time_histogram_low_volts +----------------------------- + + .. py:attribute:: meas_time_histogram_low_volts + + Specifies the lowest voltage value included in the multiple acquisition time histogram. The units are always volts. + Default: -10.0 V + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_low_volts` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Time Histogram:Low Volts** + - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_LOW_VOLTS** + +meas_time_histogram_size +------------------------ + + .. py:attribute:: meas_time_histogram_size + + Determines the multiple acquisition voltage histogram size. The size is set during the first call to a time histogram measurement after clearing the measurement history with :py:meth:`niscope.Session.clear_waveform_measurement_stats`. + Default: 256 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_size` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_size` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Time Histogram:Size** + - C Attribute: **NISCOPE_ATTR_MEAS_TIME_HISTOGRAM_SIZE** + +meas_voltage_histogram_high_volts +--------------------------------- + + .. py:attribute:: meas_voltage_histogram_high_volts + + Specifies the highest voltage value included in the multiple acquisition voltage histogram. The units are always volts. + Default: 10.0 V + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_high_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_voltage_histogram_high_volts` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Voltage Histogram:High Volts** + - C Attribute: **NISCOPE_ATTR_MEAS_VOLTAGE_HISTOGRAM_HIGH_VOLTS** + +meas_voltage_histogram_low_volts +-------------------------------- + + .. py:attribute:: meas_voltage_histogram_low_volts + + Specifies the lowest voltage value included in the multiple-acquisition voltage histogram. The units are always volts. + Default: -10.0 V + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_low_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_voltage_histogram_low_volts` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Voltage Histogram:Low Volts** + - C Attribute: **NISCOPE_ATTR_MEAS_VOLTAGE_HISTOGRAM_LOW_VOLTS** + +meas_voltage_histogram_size +--------------------------- + + .. py:attribute:: meas_voltage_histogram_size + + Determines the multiple acquisition voltage histogram size. The size is set the first time a voltage histogram measurement is called after clearing the measurement history with the method :py:meth:`niscope.Session.clear_waveform_measurement_stats`. + Default: 256 + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_size` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_voltage_histogram_size` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Waveform Measurement:Voltage Histogram:Size** + - C Attribute: **NISCOPE_ATTR_MEAS_VOLTAGE_HISTOGRAM_SIZE** + +min_sample_rate +--------------- + + .. py:attribute:: min_sample_rate + + Specify the sampling rate for the acquisition in Samples per second. + Valid Values: + The combination of sampling rate and min record length must allow the digitizer to sample at a valid sampling rate for the acquisition type specified in :py:meth:`niscope.Session.ConfigureAcquisition` and not require more memory than the onboard memory module allows. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Min Sample Rate** + - C Attribute: **NISCOPE_ATTR_MIN_SAMPLE_RATE** + +onboard_memory_size +------------------- + + .. py:attribute:: onboard_memory_size + + Returns the total combined amount of onboard memory for all channels in bytes. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].onboard_memory_size` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.onboard_memory_size` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | int | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Memory Size** + - C Attribute: **NISCOPE_ATTR_ONBOARD_MEMORY_SIZE** + +output_clock_source +------------------- + + .. py:attribute:: output_clock_source + + Specifies the output source for the 10 MHz clock to which another digitizer's sample clock can be phased-locked. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Output Clock Source** + - C Attribute: **NISCOPE_ATTR_OUTPUT_CLOCK_SOURCE** + +pll_lock_status +--------------- + + .. py:attribute:: pll_lock_status + + If TRUE, the PLL has remained locked to the external reference clock since it was last checked. If FALSE, the PLL has become unlocked from the external reference clock since it was last checked. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].pll_lock_status` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.pll_lock_status` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | bool | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:PLL Lock Status** + - C Attribute: **NISCOPE_ATTR_PLL_LOCK_STATUS** + +points_done +----------- + + .. py:attribute:: points_done + + Actual number of samples acquired in the record specified by :py:attr:`niscope.Session.fetch_record_number` from the :py:attr:`niscope.Session.fetch_relative_to` and :py:attr:`niscope.Session.fetch_offset` properties. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Fetch:Points Done** + - C Attribute: **NISCOPE_ATTR_POINTS_DONE** + +poll_interval +------------- + + .. py:attribute:: poll_interval + + Specifies the poll interval in milliseconds to use during RIS acquisitions to check whether the acquisition is complete. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_POLL_INTERVAL** + +probe_attenuation +----------------- + + .. py:attribute:: probe_attenuation + + Specifies the probe attenuation for the input channel. For example, for a 10:1 probe, set this property to 10.0. + Valid Values: + Any positive real number. Typical values are 1, 10, and 100. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].probe_attenuation` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.probe_attenuation` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Probe Attenuation** + - C Attribute: **NISCOPE_ATTR_PROBE_ATTENUATION** + +ready_for_advance_event_output_terminal +--------------------------------------- + + .. py:attribute:: ready_for_advance_event_output_terminal + + Specifies the destination for the Ready for Advance Event. When this event is asserted, the digitizer is ready to receive an advance trigger. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Ready for Advance:Output Terminal** + - C Attribute: **NISCOPE_ATTR_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL** + +ready_for_advance_event_terminal_name +------------------------------------- + + .. py:attribute:: ready_for_advance_event_terminal_name + + Returns the fully qualified name for the Ready for Advance Event terminal. You can use this terminal as the source for a trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Ready for Advance:Terminal Name** + - C Attribute: **NISCOPE_ATTR_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME** + +ready_for_ref_event_output_terminal +----------------------------------- + + .. py:attribute:: ready_for_ref_event_output_terminal + + Specifies the destination for the Ready for Reference Event. When this event is asserted, the digitizer is ready to receive a reference trigger. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Ready for Reference:Output Terminal** + - C Attribute: **NISCOPE_ATTR_READY_FOR_REF_EVENT_OUTPUT_TERMINAL** + +ready_for_ref_event_terminal_name +--------------------------------- + + .. py:attribute:: ready_for_ref_event_terminal_name + + Returns the fully qualified name for the Ready for Reference Event terminal. You can use this terminal as the source for a trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Ready for Reference:Terminal Name** + - C Attribute: **NISCOPE_ATTR_READY_FOR_REF_EVENT_TERMINAL_NAME** + +ready_for_start_event_output_terminal +------------------------------------- + + .. py:attribute:: ready_for_start_event_output_terminal + + Specifies the destination for the Ready for Start Event. When this event is asserted, the digitizer is ready to receive a start trigger. + Consult your device documentation for a specific list of valid destinations. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Ready for Start:Output Terminal** + - C Attribute: **NISCOPE_ATTR_READY_FOR_START_EVENT_OUTPUT_TERMINAL** + +ready_for_start_event_terminal_name +----------------------------------- + + .. py:attribute:: ready_for_start_event_terminal_name + + Returns the fully qualified name for the Ready for Start Event terminal. You can use this terminal as the source for a trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Ready for Start:Terminal Name** + - C Attribute: **NISCOPE_ATTR_READY_FOR_START_EVENT_TERMINAL_NAME** + +records_done +------------ + + .. py:attribute:: records_done + + Specifies the number of records that have been completely acquired. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Fetch:Records Done** + - C Attribute: **NISCOPE_ATTR_RECORDS_DONE** + +record_arm_source +----------------- + + .. py:attribute:: record_arm_source + + Specifies the record arm source. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Record Arm Source** + - C Attribute: **NISCOPE_ATTR_RECORD_ARM_SOURCE** + +ref_clk_rate +------------ + + .. py:attribute:: ref_clk_rate + + If :py:attr:`niscope.Session.input_clock_source` is an external source, this property specifies the frequency of the input, or reference clock, to which the internal sample clock timebase is synchronized. The frequency is in hertz. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Reference Clock Rate** + - C Attribute: **NISCOPE_ATTR_REF_CLK_RATE** + +ref_trigger_detector_location +----------------------------- + + .. py:attribute:: ref_trigger_detector_location + + Indicates which analog compare circuitry to use on the device. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------------+ + | Characteristic | Value | + +=======================+==================================+ + | Datatype | enums.RefTriggerDetectorLocation | + +-----------------------+----------------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Onboard Signal Processing:Ref Trigger Detection Location** + - C Attribute: **NISCOPE_ATTR_REF_TRIGGER_DETECTOR_LOCATION** + +ref_trigger_minimum_quiet_time +------------------------------ + + .. py:attribute:: ref_trigger_minimum_quiet_time + + The amount of time the trigger circuit must not detect a signal above the trigger level before the trigger is armed. This property is useful for triggering at the beginning and not in the middle of signal bursts. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Onboard Signal Processing:Ref Trigger Min Quiet Time** + - C Attribute: **NISCOPE_ATTR_REF_TRIGGER_MINIMUM_QUIET_TIME** + +ref_trigger_terminal_name +------------------------- + + .. py:attribute:: ref_trigger_terminal_name + + Returns the fully qualified name for the Reference Trigger terminal. You can use this terminal as the source for another trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Terminal Name** + - C Attribute: **NISCOPE_ATTR_REF_TRIGGER_TERMINAL_NAME** + +ref_trig_tdc_enable +------------------- + + .. py:attribute:: ref_trig_tdc_enable + + This property controls whether the TDC is used to compute an accurate trigger. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:Advanced:Enable TDC** + - C Attribute: **NISCOPE_ATTR_REF_TRIG_TDC_ENABLE** + +resolution +---------- + + .. py:attribute:: resolution + + Indicates the bit width of valid data (as opposed to padding bits) in the acquired waveform. Compare to :py:attr:`niscope.Session.binary_sample_width`. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Resolution** + - C Attribute: **NISCOPE_ATTR_RESOLUTION** + +ris_in_auto_setup_enable +------------------------ + + .. py:attribute:: ris_in_auto_setup_enable + + Indicates whether the digitizer should use RIS sample rates when searching for a frequency in autosetup. + Valid Values: + True (1) - Use RIS sample rates in autosetup + False (0) - Do not use RIS sample rates in autosetup + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Advanced:Enable RIS in Auto Setup** + - C Attribute: **NISCOPE_ATTR_RIS_IN_AUTO_SETUP_ENABLE** + +ris_method +---------- + + .. py:attribute:: ris_method + + Specifies the algorithm for random-interleaved sampling, which is used if the sample rate exceeds the value of :py:attr:`niscope.Session.max_real_time_sampling_rate`. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------+ + | Characteristic | Value | + +=======================+=================+ + | Datatype | enums.RISMethod | + +-----------------------+-----------------+ + | Permissions | read-write | + +-----------------------+-----------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:RIS Method** + - C Attribute: **NISCOPE_ATTR_RIS_METHOD** + +ris_num_averages +---------------- + + .. py:attribute:: ris_num_averages + + The number of averages for each bin in an RIS acquisition. The number of averages times the oversampling factor is the minimum number of real-time acquisitions necessary to reconstruct the RIS waveform. Averaging is useful in RIS because the trigger times are not evenly spaced, so adjacent points in the reconstructed waveform not be accurately spaced. By averaging, the errors in both time and voltage are smoothed. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Horizontal:RIS Num Avg** + - C Attribute: **NISCOPE_ATTR_RIS_NUM_AVERAGES** + +runt_high_threshold +------------------- + + .. py:attribute:: runt_high_threshold + + Specifies the higher of two thresholds, in volts, that bound the vertical range to examine for runt pulses. + + The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the :py:attr:`niscope.Session.runt_polarity` property for more information. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_RUNT_HIGH_THRESHOLD** + +runt_low_threshold +------------------ + + .. py:attribute:: runt_low_threshold + + Specifies the lower of two thresholds, in volts, that bound the vertical range to examine for runt pulses. + + The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the :py:attr:`niscope.Session.runt_polarity` property for more information. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_RUNT_LOW_THRESHOLD** + +runt_polarity +------------- + + .. py:attribute:: runt_polarity + + Specifies the polarity of pulses that trigger the oscilloscope for runt triggering. + + When set to :py:data:`~niscope.RuntPolarity.POSITIVE`, the oscilloscope triggers when the following conditions are met: + * The leading edge of a pulse crosses the :py:attr:`niscope.Session.runt_low_threshold` in a positive direction; + * The trailing edge of the pulse crosses the :py:attr:`niscope.Session.runt_low_threshold` in a negative direction; and + * No portion of the pulse crosses the :py:attr:`niscope.Session.runt_high_threshold`. + + When set to :py:data:`~niscope.RuntPolarity.NEGATIVE`, the oscilloscope triggers when the following conditions are met: + * The leading edge of a pulse crosses the :py:attr:`niscope.Session.runt_high_threshold` in a negative direction; + * The trailing edge of the pulse crosses the :py:attr:`niscope.Session.runt_high_threshold` in a positive direction; and + * No portion of the pulse crosses the :py:attr:`niscope.Session.runt_low_threshold`. + + When set to :py:data:`~niscope.RuntPolarity.EITHER`, the oscilloscope triggers in either case. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------+ + | Characteristic | Value | + +=======================+====================+ + | Datatype | enums.RuntPolarity | + +-----------------------+--------------------+ + | Permissions | read-write | + +-----------------------+--------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_RUNT_POLARITY** + +runt_time_condition +------------------- + + .. py:attribute:: runt_time_condition + + Specifies whether runt triggers are time qualified, and if so, how the oscilloscope triggers in relation to the duration range bounded by the :py:attr:`niscope.Session.runt_time_low_limit` and :py:attr:`niscope.Session.runt_time_high_limit` properties. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.RuntTimeCondition | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_RUNT_TIME_CONDITION** + +runt_time_high_limit +-------------------- + + .. py:attribute:: runt_time_high_limit + + Specifies, in seconds, the high runt threshold time. + + This property sets the upper bound on the duration of runt pulses that may trigger the oscilloscope. The :py:attr:`niscope.Session.runt_time_condition` property determines how the oscilloscope triggers in relation to the runt time limits. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_RUNT_TIME_HIGH_LIMIT** + +runt_time_low_limit +------------------- + + .. py:attribute:: runt_time_low_limit + + Specifies, in seconds, the low runt threshold time. + + This property sets the lower bound on the duration of runt pulses that may trigger the oscilloscope. The :py:attr:`niscope.Session.runt_time_condition` property determines how the oscilloscope triggers in relation to the runt time limits. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_RUNT_TIME_LOW_LIMIT** + +sample_mode +----------- + + .. py:attribute:: sample_mode + + Indicates the sample mode the digitizer is currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Acquisition:Sample Mode** + - C Attribute: **NISCOPE_ATTR_SAMPLE_MODE** + +samp_clk_timebase_div +--------------------- + + .. py:attribute:: samp_clk_timebase_div + + If :py:attr:`niscope.Session.samp_clk_timebase_src` is an external source, specifies the ratio between the sample clock timebase rate and the actual sample rate, which can be slower. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Sample Clock Timebase Divisor** + - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_DIV** + +sample_clock_timebase_multiplier +-------------------------------- + + .. py:attribute:: sample_clock_timebase_multiplier + + If :py:attr:`niscope.Session.samp_clk_timebase_src` is an external source, this property specifies the ratio between the :py:attr:`niscope.Session.samp_clk_timebase_rate` and the actual sample rate, which can be higher. This property can be used in conjunction with :py:attr:`niscope.Session.samp_clk_timebase_div`. + Some devices use multiple ADCs to sample the same channel at an effective sample rate that is greater than the specified clock rate. When providing an external sample clock use this property to indicate when you want a higher sample rate. Valid values for this property vary by device and current configuration. + + **Related topics:** + `Sample Clock `__ + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_MULT** + +samp_clk_timebase_rate +---------------------- + + .. py:attribute:: samp_clk_timebase_rate + + If :py:attr:`niscope.Session.samp_clk_timebase_src` is an external source, specifies the frequency in hertz of the external clock used as the timebase source. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Sample Clock Timebase Rate** + - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_RATE** + +samp_clk_timebase_src +--------------------- + + .. py:attribute:: samp_clk_timebase_src + + Specifies the source of the sample clock timebase, which is the timebase used to control waveform sampling. The actual sample rate may be the timebase itself or a divided version of the timebase, depending on the :py:attr:`niscope.Session.min_sample_rate` (for internal sources) or the :py:attr:`niscope.Session.samp_clk_timebase_div` (for external sources). + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Clocking:Sample Clock Timebase Source** + - C Attribute: **NISCOPE_ATTR_SAMP_CLK_TIMEBASE_SRC** + +serial_number +------------- + + .. py:attribute:: serial_number + + Returns the serial number of the device. + + + + + .. tip:: This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].serial_number` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.serial_number` + + The following table lists the characteristics of this property. + + +-----------------------+-------------+ + | Characteristic | Value | + +=======================+=============+ + | Datatype | str | + +-----------------------+-------------+ + | Permissions | read only | + +-----------------------+-------------+ + | Repeated Capabilities | instruments | + +-----------------------+-------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Device:Serial Number** + - C Attribute: **NISCOPE_ATTR_SERIAL_NUMBER** + +accessory_gain +-------------- + + .. py:attribute:: accessory_gain + + Returns the calibration gain for the current device configuration. + + **Related topics:** + `NI 5122/5124/5142 Calibration `__ + + + + .. note:: This property is supported only by the NI PXI-5900 differential amplifier. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].accessory_gain` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.accessory_gain` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_SIGNAL_COND_GAIN** + +accessory_offset +---------------- + + .. py:attribute:: accessory_offset + + Returns the calibration offset for the current device configuration. + + **Related topics:** + `NI 5122/5124/5142 Calibration `__ + + + + .. note:: This property is supported only by the NI PXI-5900 differential amplifier. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].accessory_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.accessory_offset` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_SIGNAL_COND_OFFSET** + +simulate +-------- + + .. py:attribute:: simulate + + Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. + The default value is False. Use the :py:meth:`niscope.Session.__init__` method to override this value. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** + - C Attribute: **NISCOPE_ATTR_SIMULATE** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + A string that contains a brief description of the specific driver + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** + - C Attribute: **NISCOPE_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + A string that contains additional version information about this instrument driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** + - C Attribute: **NISCOPE_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + A string that contains the name of the vendor that supplies this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** + - C Attribute: **NISCOPE_ATTR_SPECIFIC_DRIVER_VENDOR** + +start_to_ref_trigger_holdoff +---------------------------- + + .. py:attribute:: start_to_ref_trigger_holdoff + + Pass the length of time you want the digitizer to wait after it starts acquiring data until the digitizer enables the trigger system to detect a reference (stop) trigger. + Units: Seconds + Valid Values: 0.0 - 171.8 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Start To Ref Trigger Holdoff** + - C Attribute: **NISCOPE_ATTR_START_TO_REF_TRIGGER_HOLDOFF** + +start_trigger_terminal_name +--------------------------- + + .. py:attribute:: start_trigger_terminal_name + + Returns the fully qualified name for the Start Trigger terminal. You can use this terminal as the source for another trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Synchronization:Start Trigger (Acq. Arm):Terminal Name** + - C Attribute: **NISCOPE_ATTR_START_TRIGGER_TERMINAL_NAME** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + A string that contains a comma-separated list of the instrument model numbers supported by this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** + - C Attribute: **NISCOPE_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +trigger_auto_triggered +---------------------- + + .. py:attribute:: trigger_auto_triggered + + Specifies if the last acquisition was auto triggered. You can use the Auto Triggered property to find out if the last acquisition was triggered. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Auto Triggered** + - C Attribute: **NISCOPE_ATTR_TRIGGER_AUTO_TRIGGERED** + +trigger_coupling +---------------- + + .. py:attribute:: trigger_coupling + + Specifies how the digitizer couples the trigger source. This property affects instrument operation only when :py:attr:`niscope.Session.trigger_type` is set to :py:data:`~niscope.TriggerType.EDGE`, :py:data:`~niscope.TriggerType.HYSTERESIS`, or :py:data:`~niscope.TriggerType.WINDOW`. + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.TriggerCoupling | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Coupling** + - C Attribute: **NISCOPE_ATTR_TRIGGER_COUPLING** + +trigger_delay_time +------------------ + + .. py:attribute:: trigger_delay_time + + Specifies the trigger delay time in seconds. The trigger delay time is the length of time the digitizer waits after it receives the trigger. The event that occurs when the trigger delay elapses is the Reference Event. + Valid Values: 0.0 - 171.8 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Delay** + - C Attribute: **NISCOPE_ATTR_TRIGGER_DELAY_TIME** + +trigger_holdoff +--------------- + + .. py:attribute:: trigger_holdoff + + Specifies the length of time (in seconds) the digitizer waits after detecting a trigger before enabling the trigger subsystem to detect another trigger. This property affects instrument operation only when the digitizer requires multiple acquisitions to build a complete waveform. The digitizer requires multiple waveform acquisitions when it uses equivalent-time sampling or when the digitizer is configured for a multi-record acquisition through a call to :py:meth:`niscope.Session.configure_horizontal_timing`. + Valid Values: 0.0 - 171.8 + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Holdoff** + - C Attribute: **NISCOPE_ATTR_TRIGGER_HOLDOFF** + +trigger_hysteresis +------------------ + + .. py:attribute:: trigger_hysteresis + + Specifies the size of the hysteresis window on either side of the trigger level. The digitizer triggers when the trigger signal passes through the threshold you specify with the Trigger Level parameter, has the slope you specify with the Trigger Slope parameter, and passes through the hysteresis window that you specify with this parameter. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Hysteresis** + - C Attribute: **NISCOPE_ATTR_TRIGGER_HYSTERESIS** + +trigger_impedance +----------------- + + .. py:attribute:: trigger_impedance + + Specifies the input impedance for the external analog trigger channel in Ohms. + Valid Values: + 50 - 50 ohms + 1000000 - 1 mega ohm + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Impedance** + - C Attribute: **NISCOPE_ATTR_TRIGGER_IMPEDANCE** + +trigger_level +------------- + + .. py:attribute:: trigger_level + + Specifies the voltage threshold for the trigger subsystem. The units are volts. This property affects instrument behavior only when the :py:attr:`niscope.Session.trigger_type` is set to :py:data:`~niscope.TriggerType.EDGE`, :py:data:`~niscope.TriggerType.HYSTERESIS`, or :py:data:`~niscope.TriggerType.WINDOW`. + Valid Values: + The values of the range and offset parameters in :py:meth:`niscope.Session.configure_vertical` determine the valid range for the trigger level on the channel you use as the Trigger Source. The value you pass for this parameter must meet the following conditions: + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Level** + - C Attribute: **NISCOPE_ATTR_TRIGGER_LEVEL** + +trigger_modifier +---------------- + + .. py:attribute:: trigger_modifier + + Configures the device to automatically complete an acquisition if a trigger has not been received. + Valid Values: + None (1) - Normal triggering + Auto Trigger (2) - Auto trigger acquisition if no trigger arrives + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------+ + | Characteristic | Value | + +=======================+=======================+ + | Datatype | enums.TriggerModifier | + +-----------------------+-----------------------+ + | Permissions | read-write | + +-----------------------+-----------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Modifier** + - C Attribute: **NISCOPE_ATTR_TRIGGER_MODIFIER** + +trigger_slope +------------- + + .. py:attribute:: trigger_slope + + Specifies if a rising or a falling edge triggers the digitizer. This property affects instrument operation only when :py:attr:`niscope.Session.trigger_type` is set to :py:data:`~niscope.TriggerType.EDGE`, :py:data:`~niscope.TriggerType.HYSTERESIS`, or :py:data:`~niscope.TriggerType.WINDOW`. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------+ + | Characteristic | Value | + +=======================+====================+ + | Datatype | enums.TriggerSlope | + +-----------------------+--------------------+ + | Permissions | read-write | + +-----------------------+--------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Slope** + - C Attribute: **NISCOPE_ATTR_TRIGGER_SLOPE** + +trigger_source +-------------- + + .. py:attribute:: trigger_source + + Specifies the source the digitizer monitors for the trigger event. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Source** + - C Attribute: **NISCOPE_ATTR_TRIGGER_SOURCE** + +trigger_type +------------ + + .. py:attribute:: trigger_type + + Specifies the type of trigger to use. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------+ + | Characteristic | Value | + +=======================+===================+ + | Datatype | enums.TriggerType | + +-----------------------+-------------------+ + | Permissions | read-write | + +-----------------------+-------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Type** + - C Attribute: **NISCOPE_ATTR_TRIGGER_TYPE** + +trigger_window_high_level +------------------------- + + .. py:attribute:: trigger_window_high_level + + Pass the upper voltage threshold you want the digitizer to use for window triggering. + The digitizer triggers when the trigger signal enters or leaves the window you specify with :py:attr:`niscope.Session.trigger_window_low_level` and :py:attr:`niscope.Session.trigger_window_high_level` + Valid Values: + The values of the Vertical Range and Vertical Offset parameters in :py:meth:`niscope.Session.configure_vertical` determine the valid range for the High Window Level on the channel you use as the Trigger Source parameter in :py:meth:`niscope.Session.ConfigureTriggerSource`. The value you pass for this parameter must meet the following conditions. + High Trigger Level <= Vertical Range/2 + Vertical Offset + High Trigger Level >= (-Vertical Range/2) + Vertical Offset + High Trigger Level > Low Trigger Level + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Window:High Level** + - C Attribute: **NISCOPE_ATTR_TRIGGER_WINDOW_HIGH_LEVEL** + +trigger_window_low_level +------------------------ + + .. py:attribute:: trigger_window_low_level + + Pass the lower voltage threshold you want the digitizer to use for window triggering. + The digitizer triggers when the trigger signal enters or leaves the window you specify with :py:attr:`niscope.Session.trigger_window_low_level` and :py:attr:`niscope.Session.trigger_window_high_level`. + Units: Volts + Valid Values: + The values of the Vertical Range and Vertical Offset parameters in :py:meth:`niscope.Session.configure_vertical` determine the valid range for the Low Window Level on the channel you use as the Trigger Source parameter in :py:meth:`niscope.Session.ConfigureTriggerSource`. The value you pass for this parameter must meet the following conditions. + Low Trigger Level <= Vertical Range/2 + Vertical Offset + Low Trigger Level >= (-Vertical Range/2) + Vertical Offset + Low Trigger Level < High Trigger Level + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Window:Low Level** + - C Attribute: **NISCOPE_ATTR_TRIGGER_WINDOW_LOW_LEVEL** + +trigger_window_mode +------------------- + + .. py:attribute:: trigger_window_mode + + Specifies whether you want a trigger to occur when the signal enters or leaves the window specified by :py:attr:`niscope.Session.trigger_window_low_level`, or :py:attr:`niscope.Session.trigger_window_high_level`. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.TriggerWindowMode | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Window:Window Mode** + - C Attribute: **NISCOPE_ATTR_TRIGGER_WINDOW_MODE** + +tv_trigger_event +---------------- + + .. py:attribute:: tv_trigger_event + + Specifies the condition in the video signal that causes the digitizer to trigger. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.VideoTriggerEvent | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Video:Event** + - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_EVENT** + +tv_trigger_line_number +---------------------- + + .. py:attribute:: tv_trigger_line_number + + Specifies the line on which to trigger, if :py:attr:`niscope.Session.tv_trigger_event` is set to line number. The valid ranges of the property depend on the signal format selected. M-NTSC has a valid range of 1 to 525. B/G-PAL, SECAM, 576i, and 576p have a valid range of 1 to 625. 720p has a valid range of 1 to 750. 1080i and 1080p have a valid range of 1125. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | int | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Video:Line Number** + - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_LINE_NUMBER** + +tv_trigger_polarity +------------------- + + .. py:attribute:: tv_trigger_polarity + + Specifies whether the video signal sync is positive or negative. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | enums.VideoPolarity | + +-----------------------+---------------------+ + | Permissions | read-write | + +-----------------------+---------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Video:Polarity** + - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_POLARITY** + +tv_trigger_signal_format +------------------------ + + .. py:attribute:: tv_trigger_signal_format + + Specifies the type of video signal, such as NTSC, PAL, or SECAM. + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------+ + | Characteristic | Value | + +=======================+=========================+ + | Datatype | enums.VideoSignalFormat | + +-----------------------+-------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Triggering:Trigger Video:Signal Format** + - C Attribute: **NISCOPE_ATTR_TV_TRIGGER_SIGNAL_FORMAT** + +use_spec_initial_x +------------------ + + .. py:attribute:: use_spec_initial_x + + + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_USE_SPEC_INITIAL_X** + +vertical_coupling +----------------- + + .. py:attribute:: vertical_coupling + + Specifies how the digitizer couples the input signal for the channel. When input coupling changes, the input stage takes a finite amount of time to settle. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vertical_coupling` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.vertical_coupling` + + The following table lists the characteristics of this property. + + +-----------------------+------------------------+ + | Characteristic | Value | + +=======================+========================+ + | Datatype | enums.VerticalCoupling | + +-----------------------+------------------------+ + | Permissions | read-write | + +-----------------------+------------------------+ + | Repeated Capabilities | channels | + +-----------------------+------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Vertical Coupling** + - C Attribute: **NISCOPE_ATTR_VERTICAL_COUPLING** + +vertical_offset +--------------- + + .. py:attribute:: vertical_offset + + Specifies the location of the center of the range. The value is with respect to ground and is in volts. For example, to acquire a sine wave that spans between 0.0 and 10.0 V, set this property to 5.0 V. + + + + .. note:: This property is not supported by all digitizers.Refer to the NI High-Speed Digitizers Help for a list of vertical offsets supported for each device. + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vertical_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.vertical_offset` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Vertical Offset** + - C Attribute: **NISCOPE_ATTR_VERTICAL_OFFSET** + +vertical_range +-------------- + + .. py:attribute:: vertical_range + + Specifies the absolute value of the input range for a channel in volts. For example, to acquire a sine wave that spans between -5 and +5 V, set this property to 10.0 V. + Refer to the NI High-Speed Digitizers Help for a list of supported vertical ranges for each device. If the specified range is not supported by a device, the value is coerced up to the next valid range. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vertical_range` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.vertical_range` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Vertical:Vertical Range** + - C Attribute: **NISCOPE_ATTR_VERTICAL_RANGE** + +width_condition +--------------- + + .. py:attribute:: width_condition + + Specifies whether the oscilloscope triggers on pulses within or outside the duration range bounded by the :py:attr:`niscope.Session.width_low_threshold` and :py:attr:`niscope.Session.width_high_threshold` properties. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------+ + | Characteristic | Value | + +=======================+======================+ + | Datatype | enums.WidthCondition | + +-----------------------+----------------------+ + | Permissions | read-write | + +-----------------------+----------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_WIDTH_CONDITION** + +width_high_threshold +-------------------- + + .. py:attribute:: width_high_threshold + + Specifies the high width threshold, in seconds. + + This properties sets the upper bound on the duration range that triggers the oscilloscope. The :py:attr:`niscope.Session.width_condition` property determines how the oscilloscope triggers in relation to the width thresholds. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_WIDTH_HIGH_THRESHOLD** + +width_low_threshold +------------------- + + .. py:attribute:: width_low_threshold + + Specifies the low width threshold, in seconds. + + This property sets the lower bound on the duration range that triggers the oscilloscope. The :py:attr:`niscope.Session.width_condition` property determines how the oscilloscope triggers in relation to the width thresholds. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | float | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_WIDTH_LOW_THRESHOLD** + +width_polarity +-------------- + + .. py:attribute:: width_polarity + + Specifies the polarity of pulses that trigger the oscilloscope for width triggering. + + The following table lists the characteristics of this property. + + +-----------------------+---------------------+ + | Characteristic | Value | + +=======================+=====================+ + | Datatype | enums.WidthPolarity | + +-----------------------+---------------------+ + | Permissions | read-write | + +-----------------------+---------------------+ + | Repeated Capabilities | None | + +-----------------------+---------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - C Attribute: **NISCOPE_ATTR_WIDTH_POLARITY** + + +NI-TClk Support +=============== + + .. py:attribute:: tclk + + This is used to get and set NI-TClk attributes on the session. + + .. seealso:: See :py:class:`nitclk.SessionReference` for a complete list of attributes. + + +.. contents:: Session diff --git a/docs/niscope/conf.py b/docs/niscope/conf.py new file mode 100644 index 0000000000..6d27c59cda --- /dev/null +++ b/docs/niscope/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-SCOPE Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-SCOPE Python API' +copyright = '2017-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NISCOPEPythonAPI.tex', 'NI-SCOPE Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'niscopepythonapi', 'NI-SCOPE Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NISCOPEPythonAPI', 'NI-SCOPE Python API Documentation', + author, 'NISCOPEPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/niscope/enums.rst b/docs/niscope/enums.rst new file mode 100644 index 0000000000..c0458089ac --- /dev/null +++ b/docs/niscope/enums.rst @@ -0,0 +1,1946 @@ +Enums +===== + +Enums used in NI-SCOPE + +.. py:currentmodule:: niscope + + +AcquisitionStatus +----------------- + +.. py:class:: AcquisitionStatus + + .. py:attribute:: AcquisitionStatus.COMPLETE + + + + .. py:attribute:: AcquisitionStatus.IN_PROGRESS + + + + .. py:attribute:: AcquisitionStatus.STATUS_UNKNOWN + + + +AcquisitionType +--------------- + +.. py:class:: AcquisitionType + + .. py:attribute:: AcquisitionType.NORMAL + + + + Sets the digitizer to normal resolution mode. The digitizer can use real-time sampling or equivalent-time sampling. + + + + + + .. py:attribute:: AcquisitionType.FLEXRES + + + + Sets the digitizer to flexible resolution mode if supported. The digitizer uses different hardware configurations to change the resolution depending on the sampling rate used. + + + + + + .. py:attribute:: AcquisitionType.DDC + + + + Sets the digitizer to DDC mode on the NI 5620/5621. + + + + + +ArrayMeasurement +---------------- + +.. py:class:: ArrayMeasurement + + .. py:attribute:: ArrayMeasurement.NO_MEASUREMENT + + + + None + + + + + + .. py:attribute:: ArrayMeasurement.LAST_ACQ_HISTOGRAM + + + + Last Acquisition Histogram + + + + + + .. py:attribute:: ArrayMeasurement.FFT_PHASE_SPECTRUM + + + + FFT Phase Spectrum + + + + + + .. py:attribute:: ArrayMeasurement.FFT_AMP_SPECTRUM_VOLTS_RMS + + + + FFT Amp. Spectrum (Volts RMS) + + + + + + .. py:attribute:: ArrayMeasurement.MULTI_ACQ_VOLTAGE_HISTOGRAM + + + + Multi Acquisition Voltage Histogram + + + + + + .. py:attribute:: ArrayMeasurement.MULTI_ACQ_TIME_HISTOGRAM + + + + Multi Acquisition Time Histogram + + + + + + .. py:attribute:: ArrayMeasurement.ARRAY_INTEGRAL + + + + Array Integral + + + + + + .. py:attribute:: ArrayMeasurement.DERIVATIVE + + + + Derivative + + + + + + .. py:attribute:: ArrayMeasurement.INVERSE + + + + Inverse + + + + + + .. py:attribute:: ArrayMeasurement.HANNING_WINDOW + + + + Hanning Window + + + + + + .. py:attribute:: ArrayMeasurement.FLAT_TOP_WINDOW + + + + Flat Top Window + + + + + + .. py:attribute:: ArrayMeasurement.POLYNOMIAL_INTERPOLATION + + + + Polynomial Interpolation + + + + + + .. py:attribute:: ArrayMeasurement.MULTIPLY_CHANNELS + + + + Multiply Channels + + + + + + .. py:attribute:: ArrayMeasurement.ADD_CHANNELS + + + + Add Channels + + + + + + .. py:attribute:: ArrayMeasurement.SUBTRACT_CHANNELS + + + + Subtract Channels + + + + + + .. py:attribute:: ArrayMeasurement.DIVIDE_CHANNELS + + + + Divide Channels + + + + + + .. py:attribute:: ArrayMeasurement.MULTI_ACQ_AVERAGE + + + + Multi Acquisition Average + + + + + + .. py:attribute:: ArrayMeasurement.BUTTERWORTH_FILTER + + + + Butterworth IIR Filter + + + + + + .. py:attribute:: ArrayMeasurement.CHEBYSHEV_FILTER + + + + Chebyshev IIR Filter + + + + + + .. py:attribute:: ArrayMeasurement.FFT_AMP_SPECTRUM_DB + + + + FFT Amp. Spectrum (dB) + + + + + + .. py:attribute:: ArrayMeasurement.HAMMING_WINDOW + + + + Hamming Window + + + + + + .. py:attribute:: ArrayMeasurement.WINDOWED_FIR_FILTER + + + + FIR Windowed Filter + + + + + + .. py:attribute:: ArrayMeasurement.BESSEL_FILTER + + + + Bessel IIR Filter + + + + + + .. py:attribute:: ArrayMeasurement.TRIANGLE_WINDOW + + + + Triangle Window + + + + + + .. py:attribute:: ArrayMeasurement.BLACKMAN_WINDOW + + + + Blackman Window + + + + + + .. py:attribute:: ArrayMeasurement.ARRAY_OFFSET + + + + Array Offset + + + + + + .. py:attribute:: ArrayMeasurement.ARRAY_GAIN + + + + Array Gain + + + + + +CableSenseMode +-------------- + +.. py:class:: CableSenseMode + + .. py:attribute:: CableSenseMode.DISABLED + + + + The oscilloscope is not configured to emit a CableSense signal. + + + + + + .. py:attribute:: CableSenseMode.ON_DEMAND + + + + The oscilloscope is configured to emit a single CableSense pulse. + + + + + +ClearableMeasurement +-------------------- + +.. py:class:: ClearableMeasurement + + .. py:attribute:: ClearableMeasurement.ALL_MEASUREMENTS + + + + .. py:attribute:: ClearableMeasurement.MULTI_ACQ_VOLTAGE_HISTOGRAM + + + + .. py:attribute:: ClearableMeasurement.MULTI_ACQ_TIME_HISTOGRAM + + + + .. py:attribute:: ClearableMeasurement.MULTI_ACQ_AVERAGE + + + + .. py:attribute:: ClearableMeasurement.FREQUENCY + + + + .. py:attribute:: ClearableMeasurement.AVERAGE_FREQUENCY + + + + .. py:attribute:: ClearableMeasurement.FFT_FREQUENCY + + + + .. py:attribute:: ClearableMeasurement.PERIOD + + + + .. py:attribute:: ClearableMeasurement.AVERAGE_PERIOD + + + + .. py:attribute:: ClearableMeasurement.RISE_TIME + + + + .. py:attribute:: ClearableMeasurement.FALL_TIME + + + + .. py:attribute:: ClearableMeasurement.RISE_SLEW_RATE + + + + .. py:attribute:: ClearableMeasurement.FALL_SLEW_RATE + + + + .. py:attribute:: ClearableMeasurement.OVERSHOOT + + + + .. py:attribute:: ClearableMeasurement.PRESHOOT + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_RMS + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_CYCLE_RMS + + + + .. py:attribute:: ClearableMeasurement.AC_ESTIMATE + + + + .. py:attribute:: ClearableMeasurement.FFT_AMPLITUDE + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_AVERAGE + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_CYCLE_AVERAGE + + + + .. py:attribute:: ClearableMeasurement.DC_ESTIMATE + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_MAX + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_MIN + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_PEAK_TO_PEAK + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HIGH + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_LOW + + + + .. py:attribute:: ClearableMeasurement.AMPLITUDE + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_TOP + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_BASE + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_BASE_TO_TOP + + + + .. py:attribute:: ClearableMeasurement.WIDTH_NEG + + + + .. py:attribute:: ClearableMeasurement.WIDTH_POS + + + + .. py:attribute:: ClearableMeasurement.DUTY_CYCLE_NEG + + + + .. py:attribute:: ClearableMeasurement.DUTY_CYCLE_POS + + + + .. py:attribute:: ClearableMeasurement.INTEGRAL + + + + .. py:attribute:: ClearableMeasurement.AREA + + + + .. py:attribute:: ClearableMeasurement.CYCLE_AREA + + + + .. py:attribute:: ClearableMeasurement.TIME_DELAY + + + + .. py:attribute:: ClearableMeasurement.PHASE_DELAY + + + + .. py:attribute:: ClearableMeasurement.LOW_REF_VOLTS + + + + .. py:attribute:: ClearableMeasurement.MID_REF_VOLTS + + + + .. py:attribute:: ClearableMeasurement.HIGH_REF_VOLTS + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_STDEV + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEDIAN + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MODE + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MAX + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MIN + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_PEAK_TO_PEAK + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN_PLUS_STDEV + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN_PLUS_2_STDEV + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_MEAN_PLUS_3_STDEV + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_HITS + + + + .. py:attribute:: ClearableMeasurement.VOLTAGE_HISTOGRAM_NEW_HITS + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_STDEV + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEDIAN + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MODE + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MAX + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MIN + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_PEAK_TO_PEAK + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN_PLUS_STDEV + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN_PLUS_2_STDEV + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_MEAN_PLUS_3_STDEV + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_HITS + + + + .. py:attribute:: ClearableMeasurement.TIME_HISTOGRAM_NEW_HITS + + + +FIRFilterWindow +--------------- + +.. py:class:: FIRFilterWindow + + .. py:attribute:: FIRFilterWindow.NONE + + + + No window. + + + + + + .. py:attribute:: FIRFilterWindow.HANNING + + + + Specifies a Hanning window. + + + + + + .. py:attribute:: FIRFilterWindow.FLAT_TOP + + + + Specifies a Flat Top window. + + + + + + .. py:attribute:: FIRFilterWindow.HAMMING + + + + Specifies a Hamming window. + + + + + + .. py:attribute:: FIRFilterWindow.TRIANGLE + + + + Specifies a Triangle window. + + + + + + .. py:attribute:: FIRFilterWindow.BLACKMAN + + + + Specifies a Blackman window. + + + + + +FetchRelativeTo +--------------- + +.. py:class:: FetchRelativeTo + + .. py:attribute:: FetchRelativeTo.READ_POINTER + + + + The read pointer is set to zero when a new acquisition is initiated. After every fetch the read pointer is incremeted to be the sample after the last sample retrieved. Therefore, you can repeatedly fetch relative to the read pointer for a continuous acquisition program. + + + + + + .. py:attribute:: FetchRelativeTo.PRETRIGGER + + + + Fetches relative to the first pretrigger point requested with :py:meth:`niscope.Session.configure_horizontal_timing`. + + + + + + .. py:attribute:: FetchRelativeTo.NOW + + + + Fetch data at the last sample acquired. + + + + + + .. py:attribute:: FetchRelativeTo.START + + + + Fetch data starting at the first point sampled by the digitizer. + + + + + + .. py:attribute:: FetchRelativeTo.TRIGGER + + + + Fetch at the first posttrigger sample. + + + + + +FilterType +---------- + +.. py:class:: FilterType + + .. py:attribute:: FilterType.LOWPASS + + + + Specifies lowpass as the filter type. + + + + + + .. py:attribute:: FilterType.HIGHPASS + + + + Specifies highpass as the filter type. + + + + + + .. py:attribute:: FilterType.BANDPASS + + + + Specifies bandpass as the filter type. + + + + + + .. py:attribute:: FilterType.BANDSTOP + + + + Specifies bandstop as the filter type. + + + + + +FlexFIRAntialiasFilterType +-------------------------- + +.. py:class:: FlexFIRAntialiasFilterType + + .. py:attribute:: FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_STANDARD + + + + This filter is optimized for alias protection and frequency-domain flatness + + + + + + .. py:attribute:: FlexFIRAntialiasFilterType.FOURTYEIGHT_TAP_HANNING + + + + This filter is optimized for the lowest possible bandwidth for a 48 tap filter and maximizes the SNR + + + + + + .. py:attribute:: FlexFIRAntialiasFilterType.SIXTEEN_TAP_HANNING + + + + This filter is optimized for the lowest possible bandwidth for a 16 tap filter and maximizes the SNR + + + + + + .. py:attribute:: FlexFIRAntialiasFilterType.EIGHT_TAP_HANNING + + + + This filter is optimized for the lowest possible bandwidth for a 8 tap filter and maximizes the SNR + + + + + +GlitchCondition +--------------- + +.. py:class:: GlitchCondition + + .. py:attribute:: GlitchCondition.GREATER + + + + Trigger on pulses with a duration greater than the specified glitch width. + + + + + + .. py:attribute:: GlitchCondition.LESS + + + + Trigger on pulses with a duration shorter than the specified glitch width. + + + + + +GlitchPolarity +-------------- + +.. py:class:: GlitchPolarity + + .. py:attribute:: GlitchPolarity.POSITIVE + + + + Trigger on pulses of positive polarity relative to the trigger threshold. + + + + + + .. py:attribute:: GlitchPolarity.NEGATIVE + + + + Trigger on pulses of negative polarity relative to the trigger threshold. + + + + + + .. py:attribute:: GlitchPolarity.EITHER + + + + Trigger on pulses of either positive or negative polarity. + + + + + +Option +------ + +.. py:class:: Option + + .. py:attribute:: Option.SELF_CALIBRATE_ALL_CHANNELS + + + + Self Calibrating all Channels + + + + + + .. py:attribute:: Option.RESTORE_EXTERNAL_CALIBRATION + + + + Restore External Calibration. + + + + + +PercentageMethod +---------------- + +.. py:class:: PercentageMethod + + .. py:attribute:: PercentageMethod.LOWHIGH + + + + Specifies that the reference level percentages should be computed using + the low/high method, + + + + + + .. py:attribute:: PercentageMethod.MINMAX + + + + Reference level percentages are computed using the min/max method. + + + + + + .. py:attribute:: PercentageMethod.BASETOP + + + + Reference level percentages are computed using the base/top method. + + + + + +RISMethod +--------- + +.. py:class:: RISMethod + + .. py:attribute:: RISMethod.EXACT_NUM_AVERAGES + + + + Acquires exactly the specified number of records for each bin in the RIS acquisition. An error is returned from the fetch method if the RIS acquisition does not successfully acquire the specified number of waveforms within the timeout period. You may call the fetch method again to allow more time for the acquisition to finish. + + + + + + .. py:attribute:: RISMethod.MIN_NUM_AVERAGES + + + + Each RIS sample is the average of a least a minimum number of randomly + distributed points. + + + + + + .. py:attribute:: RISMethod.INCOMPLETE + + + + Returns the RIS waveform after the specified timeout even if it is incomplete. If no waveforms have been acquired in certain bins, these bins will have a NaN (when fetching scaled data) or a zero (when fetching binary data). A warning (positive error code) is returned from the fetch method if the RIS acquisition did not finish. The acquisition aborts when data is returned. + + + + + + .. py:attribute:: RISMethod.LIMITED_BIN_WIDTH + + + + Limits the waveforms in the various bins to be within 200 ps of the center of the bin. + + + + + +RefLevelUnits +------------- + +.. py:class:: RefLevelUnits + + .. py:attribute:: RefLevelUnits.VOLTS + + + + Specifies that the reference levels are given in units of volts. + + + + + + .. py:attribute:: RefLevelUnits.PERCENTAGE + + + + (Default) Specifies that the reference levels are given in percentage + units. + + + + + +RefTriggerDetectorLocation +-------------------------- + +.. py:class:: RefTriggerDetectorLocation + + .. py:attribute:: RefTriggerDetectorLocation.ANALOG_DETECTION_CIRCUIT + + + + use the hardware analog circuitry to implement the reference trigger. This option will trigger before any onboard signal processing. + + + + + + .. py:attribute:: RefTriggerDetectorLocation.DDC_OUTPUT + + + + use the onboard signal processing logic to implement the reference trigger. This option will trigger based on the onboard signal processed data. + + + + + +RuntPolarity +------------ + +.. py:class:: RuntPolarity + + .. py:attribute:: RuntPolarity.POSITIVE + + + + Trigger on pulses of positive polarity relative to :py:attr:`niscope.Session.runt_low_threshold` that do not cross :py:attr:`niscope.Session.runt_high_threshold`. + + + + + + .. py:attribute:: RuntPolarity.NEGATIVE + + + + Trigger on pulses of negative polarity relative to :py:attr:`niscope.Session.runt_high_threshold` that do not cross :py:attr:`niscope.Session.runt_low_threshold`. + + + + + + .. py:attribute:: RuntPolarity.EITHER + + + + Trigger on pulses of either positive or negative polarity. + + + + + +RuntTimeCondition +----------------- + +.. py:class:: RuntTimeCondition + + .. py:attribute:: RuntTimeCondition.NONE + + + + Time qualification is disabled. Trigger on runt pulses based solely on the voltage level of the pulses. + + + + + + .. py:attribute:: RuntTimeCondition.WITHIN + + + + Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration within the range bounded by :py:attr:`niscope.Session.runt_time_low_limit` and :py:attr:`niscope.Session.runt_time_high_limit`. + + + + + + .. py:attribute:: RuntTimeCondition.OUTSIDE + + + + Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration not within the range bounded by :py:attr:`niscope.Session.runt_time_low_limit` and :py:attr:`niscope.Session.runt_time_high_limit`. + + + + + +ScalarMeasurement +----------------- + +.. py:class:: ScalarMeasurement + + .. py:attribute:: ScalarMeasurement.NO_MEASUREMENT + + + + None + + + + + + .. py:attribute:: ScalarMeasurement.RISE_TIME + + + + .. py:attribute:: ScalarMeasurement.FALL_TIME + + + + .. py:attribute:: ScalarMeasurement.FREQUENCY + + + + .. py:attribute:: ScalarMeasurement.PERIOD + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_RMS + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_PEAK_TO_PEAK + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_MAX + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_MIN + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_HIGH + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_LOW + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_AVERAGE + + + + .. py:attribute:: ScalarMeasurement.WIDTH_NEG + + + + .. py:attribute:: ScalarMeasurement.WIDTH_POS + + + + .. py:attribute:: ScalarMeasurement.DUTY_CYCLE_NEG + + + + .. py:attribute:: ScalarMeasurement.DUTY_CYCLE_POS + + + + .. py:attribute:: ScalarMeasurement.AMPLITUDE + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_CYCLE_RMS + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_CYCLE_AVERAGE + + + + .. py:attribute:: ScalarMeasurement.OVERSHOOT + + + + .. py:attribute:: ScalarMeasurement.PRESHOOT + + + + .. py:attribute:: ScalarMeasurement.LOW_REF_VOLTS + + + + .. py:attribute:: ScalarMeasurement.MID_REF_VOLTS + + + + .. py:attribute:: ScalarMeasurement.HIGH_REF_VOLTS + + + + .. py:attribute:: ScalarMeasurement.AREA + + + + .. py:attribute:: ScalarMeasurement.CYCLE_AREA + + + + .. py:attribute:: ScalarMeasurement.INTEGRAL + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_BASE + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_TOP + + + + .. py:attribute:: ScalarMeasurement.FFT_FREQUENCY + + + + .. py:attribute:: ScalarMeasurement.FFT_AMPLITUDE + + + + .. py:attribute:: ScalarMeasurement.RISE_SLEW_RATE + + + + .. py:attribute:: ScalarMeasurement.FALL_SLEW_RATE + + + + .. py:attribute:: ScalarMeasurement.AC_ESTIMATE + + + + .. py:attribute:: ScalarMeasurement.DC_ESTIMATE + + + + .. py:attribute:: ScalarMeasurement.TIME_DELAY + + + + .. py:attribute:: ScalarMeasurement.AVERAGE_PERIOD + + + + .. py:attribute:: ScalarMeasurement.AVERAGE_FREQUENCY + + + + .. py:attribute:: ScalarMeasurement.VOLTAGE_BASE_TO_TOP + + + + .. py:attribute:: ScalarMeasurement.PHASE_DELAY + + + +TerminalConfiguration +--------------------- + +.. py:class:: TerminalConfiguration + + .. py:attribute:: TerminalConfiguration.SINGLE_ENDED + + + + Channel is single ended + + + + + + .. py:attribute:: TerminalConfiguration.UNBALANCED_DIFFERENTIAL + + + + Channel is unbalanced differential + + + + + + .. py:attribute:: TerminalConfiguration.DIFFERENTIAL + + + + Channel is differential + + + + + +TriggerCoupling +--------------- + +.. py:class:: TriggerCoupling + + .. py:attribute:: TriggerCoupling.AC + + + + AC coupling + + + + + + .. py:attribute:: TriggerCoupling.DC + + + + DC coupling + + + + + + .. py:attribute:: TriggerCoupling.HF_REJECT + + + + Highpass filter coupling + + + + + + .. py:attribute:: TriggerCoupling.LF_REJECT + + + + Lowpass filter coupling + + + + + + .. py:attribute:: TriggerCoupling.AC_PLUS_HF_REJECT + + + + Highpass and lowpass filter coupling + + + + + +TriggerModifier +--------------- + +.. py:class:: TriggerModifier + + .. py:attribute:: TriggerModifier.NO_TRIGGER_MOD + + + + Normal triggering. + + + + + + .. py:attribute:: TriggerModifier.AUTO + + + + Software will trigger an acquisition automatically if no trigger arrives + after a certain amount of time. + + + + + + .. py:attribute:: TriggerModifier.AUTO_LEVEL + + + +TriggerSlope +------------ + +.. py:class:: TriggerSlope + + .. py:attribute:: TriggerSlope.NEGATIVE + + + + Falling edge + + + + + + .. py:attribute:: TriggerSlope.POSITIVE + + + + Rising edge + + + + + + .. py:attribute:: TriggerSlope.SLOPE_EITHER + + + + Either edge + + + + + +TriggerType +----------- + +.. py:class:: TriggerType + + .. py:attribute:: TriggerType.EDGE + + + + Configures the digitizer for edge triggering. An edge trigger occurs when the trigger signal crosses the trigger level specified with the set trigger slope. You configure the trigger level and slope with :py:meth:`niscope.Session.configure_trigger_edge`. + + + + + + .. py:attribute:: TriggerType.HYSTERESIS + + + + Configures the digitizer for hysteresis triggering. A hysteresis trigger occurs when the trigger signal crosses the trigger level with the specified slope and passes through the hysteresis window you specify. You configure the trigger level, slope, and hysteresis with :py:meth:`niscope.Session.configure_trigger_hysteresis`. + + + + + + .. py:attribute:: TriggerType.DIGITAL + + + + Configures the digitizer for digital triggering. A digital trigger occurs when the trigger signal has the specified slope. You configure the trigger slope with :py:meth:`niscope.Session.configure_trigger_digital`. + + + + + + .. py:attribute:: TriggerType.WINDOW + + + + Configures the digitizer for window triggering. A window trigger occurs when the trigger signal enters or leaves the window defined by the values you specify with the Low Window Level, High Window Level, and Window Mode Parameters. You configure the low window level high window level, and window mode with :py:meth:`niscope.Session.configure_trigger_window`. + + + + + + .. py:attribute:: TriggerType.SOFTWARE + + + + Configures the digitizer for software triggering. A software trigger occurs when :py:meth:`niscope.Session.SendSoftwareTrigger` is called. + + + + + + .. py:attribute:: TriggerType.TV + + + + Configures the digitizer for video/TV triggering. You configure the video trigger parameters like signal Format, Line to trigger off of, Polarity, and Enable DC Restore with :py:meth:`niscope.Session.configure_trigger_video`. + + + + + + .. py:attribute:: TriggerType.GLITCH + + + + .. py:attribute:: TriggerType.WIDTH + + + + .. py:attribute:: TriggerType.RUNT + + + + .. py:attribute:: TriggerType.IMMEDIATE + + + + Configures the digitizer for immediate triggering. An immediate trigger occurs as soon as the pretrigger samples are acquired. + + + + + +TriggerWindowMode +----------------- + +.. py:class:: TriggerWindowMode + + .. py:attribute:: TriggerWindowMode.ENTERING + + + + Trigger upon entering the window + + + + + + .. py:attribute:: TriggerWindowMode.LEAVING + + + + Trigger upon leaving the window + + + + + + .. py:attribute:: TriggerWindowMode.ENTERING_OR_LEAVING + + + +VerticalCoupling +---------------- + +.. py:class:: VerticalCoupling + + .. py:attribute:: VerticalCoupling.AC + + + + AC coupling + + + + + + .. py:attribute:: VerticalCoupling.DC + + + + DC coupling + + + + + + .. py:attribute:: VerticalCoupling.GND + + + + GND coupling + + + + + +VideoPolarity +------------- + +.. py:class:: VideoPolarity + + .. py:attribute:: VideoPolarity.POSITIVE + + + + Specifies that the video signal has positive polarity. + + + + + + .. py:attribute:: VideoPolarity.NEGATIVE + + + + Specifies that the video signal has negative polarity. + + + + + +VideoSignalFormat +----------------- + +.. py:class:: VideoSignalFormat + + .. py:attribute:: VideoSignalFormat.NTSC + + + + NTSC signal format supports line numbers from 1 to 525 + + + + + + .. py:attribute:: VideoSignalFormat.PAL + + + + PAL signal format supports line numbers from 1 to 625 + + + + + + .. py:attribute:: VideoSignalFormat.SECAM + + + + SECAM signal format supports line numbers from 1 to 625 + + + + + + .. py:attribute:: VideoSignalFormat.M_PAL + + + + M-PAL signal format supports line numbers from 1 to 525 + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_480I_59_94_FIELDS_PER_SECOND + + + + 480 lines, interlaced, 59.94 fields per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_480I_60_FIELDS_PER_SECOND + + + + 480 lines, interlaced, 60 fields per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_480P_59_94_FRAMES_PER_SECOND + + + + 480 lines, progressive, 59.94 frames per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_480P_60_FRAMES_PER_SECOND + + + + 480 lines, progressive,60 frames per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_576I_50_FIELDS_PER_SECOND + + + + 576 lines, interlaced, 50 fields per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_576P_50_FRAMES_PER_SECOND + + + + 576 lines, progressive, 50 frames per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_720P_50_FRAMES_PER_SECOND + + + + 720 lines, progressive, 50 frames per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_720P_59_94_FRAMES_PER_SECOND + + + + 720 lines, progressive, 59.94 frames per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_720P_60_FRAMES_PER_SECOND + + + + 720 lines, progressive, 60 frames per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_1080I_50_FIELDS_PER_SECOND + + + + 1,080 lines, interlaced, 50 fields per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_1080I_59_94_FIELDS_PER_SECOND + + + + 1,080 lines, interlaced, 59.94 fields per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_1080I_60_FIELDS_PER_SECOND + + + + 1,080 lines, interlaced, 60 fields per second + + + + + + .. py:attribute:: VideoSignalFormat.VIDEO_1080P_24_FRAMES_PER_SECOND + + + + 1,080 lines, progressive, 24 frames per second + + + + + +VideoTriggerEvent +----------------- + +.. py:class:: VideoTriggerEvent + + .. py:attribute:: VideoTriggerEvent.FIELD1 + + + + Trigger on field 1 of the signal + + + + + + .. py:attribute:: VideoTriggerEvent.FIELD2 + + + + Trigger on field 2 of the signal + + + + + + .. py:attribute:: VideoTriggerEvent.ANY_FIELD + + + + Trigger on the first field acquired + + + + + + .. py:attribute:: VideoTriggerEvent.ANY_LINE + + + + Trigger on the first line acquired + + + + + + .. py:attribute:: VideoTriggerEvent.LINE_NUMBER + + + + Trigger on a specific line of a video signal. Valid values vary depending on the signal format configured. + + + + + +WhichTrigger +------------ + +.. py:class:: WhichTrigger + + .. py:attribute:: WhichTrigger.START + + + + .. py:attribute:: WhichTrigger.ARM_REFERENCE + + + + .. py:attribute:: WhichTrigger.REFERENCE + + + + .. py:attribute:: WhichTrigger.ADVANCE + + + +WidthCondition +-------------- + +.. py:class:: WidthCondition + + .. py:attribute:: WidthCondition.WITHIN + + + + Trigger on pulses with a duration within the range bounded by :py:attr:`niscope.Session.width_low_threshold` and :py:attr:`niscope.Session.width_high_threshold`. + + + + + + .. py:attribute:: WidthCondition.OUTSIDE + + + + Trigger on pulses with a duration not within the range bounded by :py:attr:`niscope.Session.width_low_threshold` and :py:attr:`niscope.Session.width_high_threshold`. + + + + + +WidthPolarity +------------- + +.. py:class:: WidthPolarity + + .. py:attribute:: WidthPolarity.POSITIVE + + + + Trigger on pulses of positive polarity relative to the trigger threshold. + + + + + + .. py:attribute:: WidthPolarity.NEGATIVE + + + + Trigger on pulses of negative polarity relative to the trigger threshold. + + + + + + .. py:attribute:: WidthPolarity.EITHER + + + + Trigger on pulses of either positive or negative polarity. + + + + + + + diff --git a/docs/niscope/errors.rst b/docs/niscope/errors.rst new file mode 100644 index 0000000000..3c96a3d875 --- /dev/null +++ b/docs/niscope/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: niscope.errors + + .. exception:: Error + + Base exception type that all NI-SCOPE exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: niscope.errors + + .. exception:: DriverError + + An error originating from the NI-SCOPE driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: niscope.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: niscope.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: niscope.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-SCOPE driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: niscope.errors + + .. exception:: DriverTooNewError + + An error due to the NI-SCOPE driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: niscope.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: niscope.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: niscope.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: niscope.errors + + .. exception:: DriverWarning + + A warning originating from the NI-SCOPE driver + + + diff --git a/docs/niscope/examples.rst b/docs/niscope/examples.rst new file mode 100644 index 0000000000..f7308ebf4b --- /dev/null +++ b/docs/niscope/examples.rst @@ -0,0 +1,50 @@ +Examples +======== + +`You can download all niscope examples for latest version here `_ + +niscope_external_clocking.py +---------------------------- + +.. literalinclude:: ../../src/niscope/examples/niscope_external_clocking.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niscope_external_clocking.py) `_ + +niscope_fetch.py +---------------- + +.. literalinclude:: ../../src/niscope/examples/niscope_fetch.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niscope_fetch.py) `_ + +niscope_fetch_forever.py +------------------------ + +.. literalinclude:: ../../src/niscope/examples/niscope_fetch_forever.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niscope_fetch_forever.py) `_ + +niscope_fetch_into.py +--------------------- + +.. literalinclude:: ../../src/niscope/examples/niscope_fetch_into.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niscope_fetch_into.py) `_ + +niscope_read.py +--------------- + +.. literalinclude:: ../../src/niscope/examples/niscope_read.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niscope_read.py) `_ + diff --git a/docs/niscope/grpc_session_options.rst b/docs/niscope/grpc_session_options.rst new file mode 100644 index 0000000000..1d3ff64594 --- /dev/null +++ b/docs/niscope/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-SCOPE over gRPC + +.. py:currentmodule:: niscope + + + +Creating a gRPC channel +----------------------- + +Using NI-SCOPE over gRPC requires the ``grpc`` extra:: + + $ python -m pip install niscope[grpc] + +Every NI-SCOPE gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`niscope.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-SCOPE runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import niscope + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = niscope.GrpcSessionOptions(channel, '') + with niscope.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`niscope.SessionInitializationBehavior` diff --git a/docs/niscope/index.rst b/docs/niscope/index.rst new file mode 100644 index 0000000000..36274bcfee --- /dev/null +++ b/docs/niscope/index.rst @@ -0,0 +1,31 @@ + +NI-SCOPE Python API Documentation +================================= + +.. include:: about_niscope.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + niscope + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/niscope/installation.inc b/docs/niscope/installation.inc new file mode 100644 index 0000000000..ad9dcd9582 --- /dev/null +++ b/docs/niscope/installation.inc @@ -0,0 +1,13 @@ + +.. _niscope_installation-section: + +Installation +------------ + +As a prerequisite to using the **niscope** module, you must install the NI-SCOPE runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-SCOPE**) can be installed with `pip `_:: + + $ python -m pip install niscope + + diff --git a/docs/niscope/niscope.rst b/docs/niscope/niscope.rst new file mode 100644 index 0000000000..9d6ceba6b7 --- /dev/null +++ b/docs/niscope/niscope.rst @@ -0,0 +1,9 @@ +niscope module +============== + +.. include:: installation.inc + +.. include:: ../_static/niscope_usage.inc + +.. include:: toc.inc + diff --git a/docs/niscope/rep_caps.rst b/docs/niscope/rep_caps.rst new file mode 100644 index 0000000000..19169bc085 --- /dev/null +++ b/docs/niscope/rep_caps.rst @@ -0,0 +1,50 @@ +.. py:module:: niscope + :noindex: + +.. py:currentmodule:: niscope.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niScope_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +channels +-------- + + .. py:attribute:: niscope.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + +instruments +----------- + + .. py:attribute:: niscope.Session.instruments[] + + .. code:: python + + session.instruments['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + + diff --git a/docs/niscope/status.inc b/docs/niscope/status.inc new file mode 100644 index 0000000000..262ddeca2c --- /dev/null +++ b/docs/niscope/status.inc @@ -0,0 +1,46 @@ + +NI-SCOPE Python API Status +-------------------------- + ++-------------------------------+------------------------+ +| NI-SCOPE (niscope) | | ++===============================+========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+------------------------+ +| PyPI Version | |niscopeLatestVersion| | ++-------------------------------+------------------------+ +| Supported Python Version | |niscopePythonVersion| | ++-------------------------------+------------------------+ +| Documentation | |niscopeDocs| | ++-------------------------------+------------------------+ +| Open Issues | |niscopeOpenIssues| | ++-------------------------------+------------------------+ +| Open Pull Requests | |niscopeOpenPRs| | ++-------------------------------+------------------------+ + + +.. |niscopeLatestVersion| image:: http://img.shields.io/pypi/v/niscope.svg + :alt: Latest NI-SCOPE Version + :target: http://pypi.python.org/pypi/niscope + + +.. |niscopePythonVersion| image:: http://img.shields.io/pypi/pyversions/niscope.svg + :alt: NI-SCOPE supported Python versions + :target: http://pypi.python.org/pypi/niscope + + +.. |niscopeDocs| image:: https://readthedocs.org/projects/niscope/badge/?version=latest + :alt: NI-SCOPE Python API Documentation Status + :target: https://niscope.readthedocs.io/en/latest + + +.. |niscopeOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niscope.svg + :alt: Open Issues + Pull Requests for NI-SCOPE + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniscope + + +.. |niscopeOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niscope.svg + :alt: Pull Requests for NI-SCOPE + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniscope + + diff --git a/docs/niscope/toc.inc b/docs/niscope/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/niscope/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/nise/.readthedocs.yaml b/docs/nise/.readthedocs.yaml new file mode 100644 index 0000000000..0550569323 --- /dev/null +++ b/docs/nise/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nise/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nise/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nise/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nise/about_nise.inc b/docs/nise/about_nise.inc new file mode 100644 index 0000000000..069c1ec091 --- /dev/null +++ b/docs/nise/about_nise.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nise** module provides a Python API for NI Switch Executive. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nise** supports all the Operating Systems supported by NI Switch Executive. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nise**. + diff --git a/docs/nise/class.rst b/docs/nise/class.rst new file mode 100644 index 0000000000..d5468da0bc --- /dev/null +++ b/docs/nise/class.rst @@ -0,0 +1,716 @@ +.. py:module:: nise + +Session +======= + +.. py:class:: Session(self, virtual_device_name, options={}) + + + + Opens a session to a specified NI Switch Executive virtual device. Opens + communications with all of the IVI switches associated with the + specified NI Switch Executive virtual device. Returns a session handle + that you use to identify the virtual device in all subsequent NI Switch + Executive method calls. NI Switch Executive uses a reference counting + scheme to manage open session handles to an NI Switch Executive virtual + device. Each call to :py:meth:`nise.Session.__init__` must be matched with a subsequent + call to :py:meth:`nise.Session.close`. Successive calls to :py:meth:`nise.Session.__init__` with + the same virtual device name always returns the same session handle. NI + Switch Executive disconnects its communication with the IVI switches + after all session handles are closed to a given virtual device. The + session handles may be used safely in multiple threads of an + application. Sessions may only be opened to a given NI Switch Executive + virtual device from a single process at a time. + + + + + + :param virtual_device_name: + + + The name of the NI Switch Executive virtual device. + + + + + :type virtual_device_name: str + + :param options: + + + Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + :type options: dict + + +Methods +======= + +close +----- + + .. py:currentmodule:: nise.Session + + .. py:method:: close() + + Reduces the reference count of open sessions by one. If the reference + count goes to 0, the method deallocates any memory resources the + driver uses and closes any open IVI switch sessions. After calling the + :py:meth:`nise.Session.close` method, you should not use the NI Switch Executive + virtual device again until you call :py:meth:`nise.Session.__init__`. + + + + .. note:: This method is not needed when using the session context manager + + + +connect +------- + + .. py:currentmodule:: nise.Session + + .. py:method:: connect(connect_spec, multiconnect_mode=nise.MulticonnectMode.DEFAULT, wait_for_debounce=True) + + Connects the routes specified by the connection specification. When + connecting, it may allow for multiconnection based on the + multiconnection mode. In the event of an error, the call to + :py:meth:`nise.Session.connect` will attempt to undo any connections made so that the + system will be left in the same state that it was in before the call was + made. Some errors can be caught before manipulating hardware, although + it is feasible that a hardware call could fail causing some connections + to be momentarily closed and then reopened. If the wait for debounce + parameter is set, the method will not return until the switch system + has debounced. + + + + + + :param connect_spec: + + + String describing the connections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + + + + :type connect_spec: str + :param multiconnect_mode: + + + This value sets the connection mode for the method. The mode might be + one of the following: :py:data:`~nise.NISE_VAL_USE_DEFAULT_MODE` (-1) - uses the mode + selected as the default for the route in the NI Switch Executive virtual + device configuration. If a mode has not been selected for the route in + the NI Switch Executive virtual device, this parameter defaults to + :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES`. :py:data:`~nise.MulticonnectMode.NO_MULTICONNECT` (0) - + routes specified in the connection specification must be disconnected + before they can be reconnected. Calling Connect on a route that was + connected using No Multiconnect mode results in an error condition. + :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES` (1)- routes specified in the connection + specification can be connected multiple times. The first call to Connect + performs the physical hardware connection. Successive calls to Connect + increase a connection reference count. Similarly, calls to Disconnect + decrease the reference count. Once it reaches 0, the hardware is + physically disconnected. Multiconnecting routes applies to entire routes + and not to route segments. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type multiconnect_mode: :py:data:`nise.MulticonnectMode` + :param wait_for_debounce: + + + Waits (if true) for switches to debounce between its connect and + disconnect operations. If false, it immediately begins the second + operation after completing the first. The order of connect and + disconnect operation is set by the Operation Order input. + + + + + :type wait_for_debounce: bool + +connect_and_disconnect +---------------------- + + .. py:currentmodule:: nise.Session + + .. py:method:: connect_and_disconnect(connect_spec, disconnect_spec, multiconnect_mode=nise.MulticonnectMode.DEFAULT, operation_order=nise.OperationOrder.AFTER, wait_for_debounce=True) + + Connects routes and disconnects routes in a similar fashion to + :py:meth:`nise.Session.connect` and :py:meth:`nise.Session.disconnect` except that the operations happen in + the context of a single method call. This method is useful for + switching from one state to another state. :py:meth:`nise.Session.connect_and_disconnect` + manipulates the hardware connections and disconnections only when the + routes are different between the connection and disconnection + specifications. If any routes are common between the connection and + disconnection specifications, NI Switch Executive determines whether or + not the relays need to be switched. This functionality has the distinct + advantage of increased throughput for shared connections, because + hardware does not have to be involved and potentially increases relay + lifetime by decreasing the number of times that the relay has to be + switched. In the event of an error, the call to + :py:meth:`nise.Session.connect_and_disconnect` attempts to undo any connections made, but + does not attempt to reconnect disconnections. Some errors can be caught + before manipulating hardware, although it is feasible that a hardware + call could fail causing some connections to be momentarily closed and + then reopened. + + + + + + :param connect_spec: + + + String describing the connections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + + + + :type connect_spec: str + :param disconnect_spec: + + + String describing the disconnections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + + + + :type disconnect_spec: str + :param multiconnect_mode: + + + This value sets the connection mode for the method. The mode might be + one of the following: :py:data:`~nise.NISE_VAL_USE_DEFAULT_MODE` (-1) - uses the mode + selected as the default for the route in the NI Switch Executive virtual + device configuration. If a mode has not been selected for the route in + the NI Switch Executive virtual device, this parameter defaults to + :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES`. :py:data:`~nise.MulticonnectMode.NO_MULTICONNECT` (0) - + routes specified in the connection specification must be disconnected + before they can be reconnected. Calling Connect on a route that was + connected using No Multiconnect mode results in an error condition. + :py:data:`~nise.NISE_VAL_MULTICONNECT_ROUTES` (1) - routes specified in the connection + specification can be connected multiple times. The first call to Connect + performs the physical hardware connection. Successive calls to Connect + increase a connection reference count. Similarly, calls to Disconnect + decrease the reference count. Once it reaches 0, the hardware is + physically disconnected. This behavior is slightly different with SPDT + relays. For more information, refer to the Exclusions and SPDT Relays + topic in the NI Switch Executive Help. Multiconnecting routes applies to + entire routes and not to route segments. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type multiconnect_mode: :py:data:`nise.MulticonnectMode` + :param operation_order: + + + Sets the order of the operation for the method. Defined values are + Break Before Make and Break After Make. :py:data:`~nise.OperationOrder.BEFORE` + (1) - The method disconnects the routes specified in the disconnect + specification before connecting the routes specified in the connect + specification. This is the typical mode of operation. + :py:data:`~nise.OperationOrder.AFTER` (2) - The method connects the routes + specified in the connection specification before connecting the routes + specified in the disconnection specification. This mode of operation is + normally used when you are switching current and want to ensure that a + load is always connected to your source. The order of operation is to + connect first or disconnect first. + + + + + :type operation_order: :py:data:`nise.OperationOrder` + :param wait_for_debounce: + + + Waits (if true) for switches to debounce between its connect and + disconnect operations. If false, it immediately begins the second + operation after completing the first. The order of connect and + disconnect operation is set by the Operation Order input. + + + + + :type wait_for_debounce: bool + +disconnect +---------- + + .. py:currentmodule:: nise.Session + + .. py:method:: disconnect(disconnect_spec) + + Disconnects the routes specified in the Disconnection Specification. If + any of the specified routes were originally connected in a + multiconnected mode, the call to :py:meth:`nise.Session.disconnect` reduces the reference + count on the route by 1. If the reference count reaches 0, it is + disconnected. If a specified route does not exist, it is an error + condition. In the event of an error, the call to :py:meth:`nise.Session.disconnect` + continues to try to disconnect everything specified by the route + specification string but reports the error on completion. + + + + + + :param disconnect_spec: + + + String describing the disconnections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + + + + :type disconnect_spec: str + +disconnect_all +-------------- + + .. py:currentmodule:: nise.Session + + .. py:method:: disconnect_all() + + Disconnects all connections on every IVI switch device managed by the + NISE session reference passed to this method. :py:meth:`nise.Session.disconnect_all` + ignores all multiconnect modes. Calling :py:meth:`nise.Session.disconnect_all` resets all + of the switch states for the system. + + + + + +expand_route_spec +----------------- + + .. py:currentmodule:: nise.Session + + .. py:method:: expand_route_spec(route_spec, expand_action=nise.ExpandAction.ROUTES, expanded_route_spec_size=[1024]) + + Expands a route spec string to yield more information about the routes + and route groups within the spec. The route specification string + returned from :py:meth:`nise.Session.expand_route_spec` can be passed to other Switch + Executive API methods (such as :py:meth:`nise.Session.connect`, :py:meth:`nise.Session.disconnect`, and + :py:meth:`nise.Session.connect_and_disconnect`) that use route specification strings. + + + + + + :param route_spec: + + + String describing the routes and route groups to expand. The route + specification strings are best summarized as a series of routes + delimited by ampersands. The specified routes may be route names, route + group names, or fully specified route paths delimited by square + brackets. Some examples of route specification strings are: MyRoute + MyRouteGroup MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & + MyRouteGroup & [A->Switch1/r0->B] Refer to Route Specification Strings + in the NI Switch Executive Help for more information. + + + + + :type route_spec: str + :param expand_action: + + + This value sets the expand action for the method. The action might be + one of the following: :py:data:`~nise.ExpandAction.ROUTES` (0) - expands the + route spec to routes. Converts route groups to their constituent routes. + :py:data:`~nise.ExpandAction.PATHS` (1) - expands the route spec to paths. + Converts routes and route groups to their constituent square bracket + route spec strings. Example: [Dev1/c0->Dev1/r0->Dev1/c1] + + + + + :type expand_action: :py:data:`nise.ExpandAction` + :param expanded_route_spec_size: + + + The routeSpecSize is an ViInt32 that is passed by reference into the + method. As an input, it is the size of the route spec string buffer + being passed. If the route spec string is larger than the string buffer + being passed, only the portion of the route spec string that can fit in + the string buffer is copied into it. On return from the method, + routeSpecSize holds the size required to hold the entire route spec + string. Note that this size may be larger than the buffer size as the + method always returns the size needed to hold the entire buffer. You + may pass NULL for this parameter if you are not interested in the return + value for routeSpecSize and routeSpec. + + + + + :type expanded_route_spec_size: list of int + + :rtype: str + :return: + + + The expanded route spec. Route specification strings can be directly + passed to :py:meth:`nise.Session.connect`, :py:meth:`nise.Session.disconnect`, or :py:meth:`nise.Session.connect_and_disconnect` + Refer to Route Specification Strings in the NI Switch Executive Help for + more information. You may pass NULL for this parameter if you are not + interested in the return value. To obtain the route specification + string, you should pass a buffer to this parameter. The size of the + buffer required may be obtained by calling the method with NULL for + this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize + will contain the size needed to hold the entire route specification + (including the NULL termination character). Common operation is to call + the method twice. The first time you call the method you can + determine the size needed to hold the route specification string. + Allocate a buffer of the appropriate size and then re-call the method + to obtain the entire buffer. + + + + + +find_route +---------- + + .. py:currentmodule:: nise.Session + + .. py:method:: find_route(channel1, channel2, route_spec_size=[1024]) + + Finds an existing or potential route between channel 1 and channel 2. + The returned route specification contains the route specification and + the route capability determines whether or not the route existed, is + possible, or is not possible for various reasons. The route + specification string returned from :py:meth:`nise.Session.find_route` can be passed to + other Switch Executive API methods (such as :py:meth:`nise.Session.connect`, + :py:meth:`nise.Session.disconnect`, and :py:meth:`nise.Session.connect_and_disconnect`) that use route + specification strings. + + + + + + :param channel1: + + + Channel name of one of the endpoints of the route to find. The channel + name must either be a channel alias name or a name in the + device/ivichannel syntax. Examples: MyChannel Switch1/R0 + + + + + :type channel1: str + :param channel2: + + + Channel name of one of the endpoints of the route to find. The channel + name must either be a channel alias name or a name in the + device/ivichannel syntax. Examples: MyChannel Switch1/R0 + + + + + :type channel2: str + :param route_spec_size: + + + The routeSpecSize is an ViInt32 that is passed by reference into the + method. As an input, it is the size of the route string buffer being + passed. If the route string is larger than the string buffer being + passed, only the portion of the route string that can fit in the string + buffer is copied into it. On return from the method, routeSpecSize + holds the size required to hold the entire route string. Note that this + size may be larger than the buffer size as the method always returns + the size needed to hold the entire buffer. You may pass NULL for this + parameter if you are not interested in the return value for + routeSpecSize and routeSpec. + + + + + :type route_spec_size: list of int + + :rtype: tuple (route_spec, path_capability) + + WHERE + + route_spec (str): + + + The fully specified route path complete with delimiting square + brackets if the route exists or is possible. An example of a fully + specified route string is: [A->Switch1/r0->B] Route specification + strings can be directly passed to :py:meth:`nise.Session.connect`, :py:meth:`nise.Session.disconnect`, or + :py:meth:`nise.Session.connect_and_disconnect` Refer to Route Specification Strings in the + NI Switch Executive Help for more information. You may pass NULL for + this parameter if you are not interested in the return value. To obtain + the route specification string, you should pass a buffer to this + parameter. The size of the buffer required may be obtained by calling + the method with NULL for this parameter and a valid ViInt32 to + routeSpecSize. The routeSpecSize will contain the size needed to hold + the entire route specification (including the NULL termination + character). Common operation is to call the method twice. The first + time you call the method you can determine the size needed to hold the + route specification string. Allocate a buffer of the appropriate size + and then re-call the method to obtain the entire buffer. + + + + + path_capability (:py:data:`nise.PathCapability`): + + + The return value which expresses the capability of finding a valid route + between Channel 1 and Channel 2. Refer to the table below for value + descriptions. You may pass NULL for this parameter if you are not + interested in the return value. Route capability might be one of the + following: Path Available (1) A path between channel 1 and channel 2 is + available. The route specification parameter returns a string describing + the available path. Path Exists (2) A path between channel 1 and channel + 2 already exists. The route specification parameter returns a string + describing the existing path. Path Unsupported (3) There is no potential + path between channel 1 and channel 2 given the current configuration. + Resource In Use (4) There is a potential path between channel 1 and + channel 2, although a resource needed to complete the path is already in + use. Source Conflict (5) Channel 1 and channel 2 cannot be connected + because their connection would result in an exclusion violation. Channel + Not Available (6) One of the channels is not useable as an endpoint + channel. Make sure that it is not marked as a reserved for routing. + Channels Hardwired (7) The two channels reside on the same hardwire. An + implicit path already exists. + + + + + +get_all_connections +------------------- + + .. py:currentmodule:: nise.Session + + .. py:method:: get_all_connections(route_spec_size=[1024]) + + Returns the top-level connected routes and route groups. The route + specification string returned from :py:meth:`nise.Session.get_all_connections` can be passed + to other Switch Executive API methods (such as :py:meth:`nise.Session.connect`, + :py:meth:`nise.Session.disconnect`, :py:meth:`nise.Session.connect_and_disconnect`, and :py:meth:`nise.Session.expand_route_spec`) + that use route specification strings. + + + + + + :param route_spec_size: + + + The routeSpecSize is an ViInt32 that is passed by reference into the + method. As an input, it is the size of the route spec string buffer + being passed. If the route spec string is larger than the string buffer + being passed, only the portion of the route spec string that can fit in + the string buffer is copied into it. On return from the method, + routeSpecSize holds the size required to hold the entire route spec + string. Note that this size may be larger than the buffer size as the + method always returns the size needed to hold the entire buffer. You + may pass NULL for this parameter if you are not interested in the return + value for routeSpecSize and routeSpec. + + + + + :type route_spec_size: list of int + + :rtype: str + :return: + + + The route spec of all currently connected routes and route groups. Route + specification strings can be directly passed to :py:meth:`nise.Session.connect`, + :py:meth:`nise.Session.disconnect`, :py:meth:`nise.Session.connect_and_disconnect`, or :py:meth:`nise.Session.expand_route_spec` + Refer to Route Specification Strings in the NI Switch Executive Help for + more information. You may pass NULL for this parameter if you are not + interested in the return value. To obtain the route specification + string, you should pass a buffer to this parameter. The size of the + buffer required may be obtained by calling the method with NULL for + this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize + will contain the size needed to hold the entire route specification + (including the NULL termination character). Common operation is to call + the method twice. The first time you call the method you can + determine the size needed to hold the route specification string. + Allocate a buffer of the appropriate size and then re-call the method + to obtain the entire buffer. + + + + + +is_connected +------------ + + .. py:currentmodule:: nise.Session + + .. py:method:: is_connected(route_spec) + + Checks whether the specified routes and routes groups are connected. It + returns true if connected. + + + + + + :param route_spec: + + + String describing the connections to check. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + + + + :type route_spec: str + + :rtype: bool + :return: + + + Returns TRUE if the routes and routes groups are connected or FALSE if + they are not. + + + + + +is_debounced +------------ + + .. py:currentmodule:: nise.Session + + .. py:method:: is_debounced() + + Checks to see if the switching system is debounced or not. This method + does not wait for debouncing to occur. It returns true if the system is + fully debounced. This method is similar to the IviSwtch specific + method. + + + + + + :rtype: bool + :return: + + + Returns TRUE if the system is fully debounced or FALSE if it is still + settling. + + + + + +wait_for_debounce +----------------- + + .. py:currentmodule:: nise.Session + + .. py:method:: wait_for_debounce(maximum_time_ms=hightime.timedelta(milliseconds=-1)) + + Waits for all of the switches in the NI Switch Executive virtual device + to debounce. This method does not return until either the switching + system is completely debounced and settled or the maximum time has + elapsed and the system is not yet debounced. In the event that the + maximum time elapses, the method returns an error indicating that a + timeout has occurred. To ensure that all of the switches have settled, + NI recommends calling :py:meth:`nise.Session.wait_for_debounce` after a series of connection + or disconnection operations and before taking any measurements of the + signals connected to the switching system. + + + + + + :param maximum_time_ms: + + + The amount of time to wait (in milliseconds) for the debounce to + complete. A value of 0 checks for debouncing once and returns an error + if the system is not debounced at that time. A value of -1 means to + block for an infinite period of time until the system is debounced. + + + + + :type maximum_time_ms: hightime.timedelta, datetime.timedelta, or int in milliseconds + + + +.. contents:: Session diff --git a/docs/nise/conf.py b/docs/nise/conf.py new file mode 100644 index 0000000000..8421ee7508 --- /dev/null +++ b/docs/nise/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI Switch Executive Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI Switch Executive Python API' +copyright = '2018-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NISwitchExecutivePythonAPI.tex', 'NI Switch Executive Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'niswitchexecutivepythonapi', 'NI Switch Executive Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NISwitchExecutivePythonAPI', 'NI Switch Executive Python API Documentation', + author, 'NISwitchExecutivePythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nise/enums.rst b/docs/nise/enums.rst new file mode 100644 index 0000000000..404df5ad67 --- /dev/null +++ b/docs/nise/enums.rst @@ -0,0 +1,190 @@ +Enums +===== + +Enums used in NI Switch Executive + +.. py:currentmodule:: nise + + +ExpandAction +------------ + +.. py:class:: ExpandAction + + .. py:attribute:: ExpandAction.ROUTES + + + + Expand to routes + + + + + + .. py:attribute:: ExpandAction.PATHS + + + + Expand to paths + + + + + +MulticonnectMode +---------------- + +.. py:class:: MulticonnectMode + + .. py:attribute:: MulticonnectMode.DEFAULT + + + + Default + + + + + + .. py:attribute:: MulticonnectMode.NO_MULTICONNECT + + + + No multiconnect + + + + + + .. py:attribute:: MulticonnectMode.MULTICONNECT + + + + Multiconnect + + + + + +OperationOrder +-------------- + +.. py:class:: OperationOrder + + .. py:attribute:: OperationOrder.BEFORE + + + + Break before make + + + + + + .. py:attribute:: OperationOrder.AFTER + + + + Break after make + + + + + +PathCapability +-------------- + +.. py:class:: PathCapability + + .. py:attribute:: PathCapability.PATH_NEEDS_HARDWIRE + + + + Path needs hardwire + + + + + + .. py:attribute:: PathCapability.PATH_NEEDS_CONFIG_CHANNEL + + + + Path needs config channel + + + + + + .. py:attribute:: PathCapability.PATH_AVAILABLE + + + + Path available + + + + + + .. py:attribute:: PathCapability.PATH_EXISTS + + + + Path exists + + + + + + .. py:attribute:: PathCapability.PATH_UNSUPPORTED + + + + Path Unsupported + + + + + + .. py:attribute:: PathCapability.RESOURCE_IN_USE + + + + Resource in use + + + + + + .. py:attribute:: PathCapability.EXCLUSION_CONFLICT + + + + Exclusion conflict + + + + + + .. py:attribute:: PathCapability.CHANNEL_NOT_AVAILABLE + + + + Channel not available + + + + + + .. py:attribute:: PathCapability.CHANNELS_HARDWIRED + + + + Channels hardwired + + + + + + + diff --git a/docs/nise/errors.rst b/docs/nise/errors.rst new file mode 100644 index 0000000000..b20453f2e9 --- /dev/null +++ b/docs/nise/errors.rst @@ -0,0 +1,80 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nise.errors + + .. exception:: Error + + Base exception type that all NI Switch Executive exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nise.errors + + .. exception:: DriverError + + An error originating from the NI Switch Executive driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nise.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nise.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nise.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI Switch Executive driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nise.errors + + .. exception:: DriverTooNewError + + An error due to the NI Switch Executive driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: nise.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +DriverWarning +------------- + + .. py:currentmodule:: nise.errors + + .. exception:: DriverWarning + + A warning originating from the NI Switch Executive driver + + + diff --git a/docs/nise/examples.rst b/docs/nise/examples.rst new file mode 100644 index 0000000000..241a02704a --- /dev/null +++ b/docs/nise/examples.rst @@ -0,0 +1,14 @@ +Examples +======== + +`You can download all nise examples for latest version here `_ + +nise_basic_example.py +--------------------- + +.. literalinclude:: ../../src/nise/examples/nise_basic_example.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nise_basic_example.py) `_ + diff --git a/docs/nise/index.rst b/docs/nise/index.rst new file mode 100644 index 0000000000..5221cda293 --- /dev/null +++ b/docs/nise/index.rst @@ -0,0 +1,31 @@ + +NI Switch Executive Python API Documentation +============================================ + +.. include:: about_nise.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nise + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nise/installation.inc b/docs/nise/installation.inc new file mode 100644 index 0000000000..6f9ec7e9db --- /dev/null +++ b/docs/nise/installation.inc @@ -0,0 +1,13 @@ + +.. _nise_installation-section: + +Installation +------------ + +As a prerequisite to using the **nise** module, you must install the NI Switch Executive runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI Switch Executive**) can be installed with `pip `_:: + + $ python -m pip install nise + + diff --git a/docs/nise/nise.rst b/docs/nise/nise.rst new file mode 100644 index 0000000000..4db377e53e --- /dev/null +++ b/docs/nise/nise.rst @@ -0,0 +1,9 @@ +nise module +=========== + +.. include:: installation.inc + +.. include:: ../_static/nise_usage.inc + +.. include:: toc.inc + diff --git a/docs/nise/status.inc b/docs/nise/status.inc new file mode 100644 index 0000000000..365f879ed0 --- /dev/null +++ b/docs/nise/status.inc @@ -0,0 +1,46 @@ + +NI Switch Executive Python API Status +------------------------------------- + ++-------------------------------+---------------------+ +| NI Switch Executive (nise) | | ++===============================+=====================+ +| Driver Version Tested Against | 2023 Q1 | ++-------------------------------+---------------------+ +| PyPI Version | |niseLatestVersion| | ++-------------------------------+---------------------+ +| Supported Python Version | |nisePythonVersion| | ++-------------------------------+---------------------+ +| Documentation | |niseDocs| | ++-------------------------------+---------------------+ +| Open Issues | |niseOpenIssues| | ++-------------------------------+---------------------+ +| Open Pull Requests | |niseOpenPRs| | ++-------------------------------+---------------------+ + + +.. |niseLatestVersion| image:: http://img.shields.io/pypi/v/nise.svg + :alt: Latest NI Switch Executive Version + :target: http://pypi.python.org/pypi/nise + + +.. |nisePythonVersion| image:: http://img.shields.io/pypi/pyversions/nise.svg + :alt: NI Switch Executive supported Python versions + :target: http://pypi.python.org/pypi/nise + + +.. |niseDocs| image:: https://readthedocs.org/projects/nise/badge/?version=latest + :alt: NI Switch Executive Python API Documentation Status + :target: https://nise.readthedocs.io/en/latest + + +.. |niseOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nise.svg + :alt: Open Issues + Pull Requests for NI Switch Executive + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anise + + +.. |niseOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nise.svg + :alt: Pull Requests for NI Switch Executive + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anise + + diff --git a/docs/nise/toc.inc b/docs/nise/toc.inc new file mode 100644 index 0000000000..5f64afcd41 --- /dev/null +++ b/docs/nise/toc.inc @@ -0,0 +1,10 @@ +API Reference +-------------- + +.. toctree:: + + class + enums + errors + examples + diff --git a/docs/niswitch/.readthedocs.yaml b/docs/niswitch/.readthedocs.yaml new file mode 100644 index 0000000000..bc65e17ab4 --- /dev/null +++ b/docs/niswitch/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/niswitch/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/niswitch/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/niswitch/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/niswitch/about_niswitch.inc b/docs/niswitch/about_niswitch.inc new file mode 100644 index 0000000000..592be6924c --- /dev/null +++ b/docs/niswitch/about_niswitch.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **niswitch** module provides a Python API for NI-SWITCH. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**niswitch** supports all the Operating Systems supported by NI-SWITCH. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **niswitch**. + diff --git a/docs/niswitch/class.rst b/docs/niswitch/class.rst new file mode 100644 index 0000000000..a95dc4b475 --- /dev/null +++ b/docs/niswitch/class.rst @@ -0,0 +1,2668 @@ +.. py:module:: niswitch + +Session +======= + +.. py:class:: Session(self, resource_name, topology="Configured Topology", simulate=False, reset_device=False, *, grpc_options=None) + + + + Returns a session handle used to identify the switch in all subsequent + instrument driver calls and sets the topology of the switch. + :py:meth:`niswitch.Session.__init__` creates a new IVI instrument driver session + for the switch specified in the resourceName parameter. The driver uses + the topology specified in the topology parameter and overrides the + topology specified in MAX. Note: When initializing an NI SwitchBlock + device with topology, you must specify the topology created when you + configured the device in MAX, using either + "Configured Topology" or the topology string of the + device. Refer to the Initializing with Topology for NI SwitchBlock + Devices topic in the NI Switches Help for information about determining + the topology string of an NI SwitchBlock device. By default, the switch + is reset to a known state. Enable simulation by specifying the topology + and setting the simulate parameter to True. + + + + + + :param resource_name: + + + Resource name of the switch module to initialize. Default value: None + Syntax: Optional fields are shown in square brackets ([]). Configured in + MAX Under Valid Syntax Devices and Interfaces DeviceName Traditional + NI-DAQ Devices SCXI[chassis ID]::slot number PXI System PXI[bus + number]::device number TIP: IVI logical names are also valid for the + resource name. Default values for optional fields: chassis ID = 1 bus + number = 0 Example resource names: Resource Name Description SC1Mod3 + NI-DAQmx module in chassis "SC1" slot 3 MySwitch NI-DAQmx module renamed + to "MySwitch" SCXI1::3 Traditional NI-DAQ module in chassis 1, slot 3 + SCXI::3 Traditional NI-DAQ module in chassis 1, slot 3 PXI0::16 PXI bus + 0, device number 16 PXI::16 PXI bus 0, device number 16 + + + + + :type resource_name: str + + :param topology: + + + Pass the topology name you want to use for the switch you specify with + Resource Name parameter. You can also pass + "Configured Topology" to use the last topology that + was configured for the device in MAX. + Default Value: + "Configured Topology" + Valid Values: + "Configured Topology" + "2501/1-Wire 48x1 Mux" + "2501/1-Wire 48x1 Amplified Mux" + "2501/2-Wire 24x1 Mux" + "2501/2-Wire 24x1 Amplified Mux" + "2501/2-Wire Dual 12x1 Mux" + "2501/2-Wire Quad 6x1 Mux" + "2501/2-Wire 4x6 Matrix" + "2501/4-Wire 12x1 Mux" + "2503/1-Wire 48x1 Mux" + "2503/2-Wire 24x1 Mux" + "2503/2-Wire Dual 12x1 Mux" + "2503/2-Wire Quad 6x1 Mux" + "2503/2-Wire 4x6 Matrix" + "2503/4-Wire 12x1 Mux" + "2510/Independent" + "2512/Independent" + "2514/Independent" + "2515/Independent" + "2520/80-SPST" + "2521/40-DPST" + "2522/53-SPDT" + "2523/26-DPDT" + "2524/1-Wire 128x1 Mux" + "2524/1-Wire Dual 64x1 Mux" + "2524/1-Wire Quad 32x1 Mux" + "2524/1-Wire Octal 16x1 Mux" + "2524/1-Wire Sixteen 8x1 Mux" + "2525/2-Wire 64x1 Mux" + "2525/2-Wire Dual 32x1 Mux" + "2525/2-Wire Quad 16x1 Mux" + "2525/2-Wire Octal 8x1 Mux" + "2525/2-Wire Sixteen 4x1 Mux" + "2526/1-Wire 158x1 Mux" + "2526/2-Wire 79x1 Mux" + "2527/1-Wire 64x1 Mux" + "2527/1-Wire Dual 32x1 Mux" + "2527/2-Wire 32x1 Mux" + "2527/2-Wire Dual 16x1 Mux" + "2527/4-Wire 16x1 Mux" + "2527/Independent" + "2529/2-Wire Dual 4x16 Matrix" + "2529/2-Wire 8x16 Matrix" + "2529/2-Wire 4x32 Matrix" + "2530/1-Wire 128x1 Mux" + "2530/1-Wire Dual 64x1 Mux" + "2530/1-Wire 4x32 Matrix" + "2530/1-Wire 8x16 Matrix" + "2530/1-Wire Octal 16x1 Mux" + "2530/1-Wire Quad 32x1 Mux" + "2530/2-Wire 4x16 Matrix" + "2530/2-Wire 64x1 Mux" + "2530/2-Wire Dual 32x1 Mux" + "2530/2-Wire Quad 16x1 Mux" + "2530/4-Wire 32x1 Mux" + "2530/4-Wire Dual 16x1 Mux" + "2530/Independent" + "2531/1-Wire 4x128 Matrix" + "2531/1-Wire 8x64 Matrix" + "2531/1-Wire Dual 4x64 Matrix" + "2531/1-Wire Dual 8x32 Matrix" + "2531/2-Wire 4x64 Matrix" + "2531/2-Wire 8x32 Matrix" + "2532/1-Wire 16x32 Matrix" + "2532/1-Wire 4x128 Matrix" + "2532/1-Wire 8x64 Matrix" + "2532/1-Wire Dual 16x16 Matrix" + "2532/1-Wire Dual 4x64 Matrix" + "2532/1-Wire Dual 8x32 Matrix" + "2532/1-Wire Quad 4x32 Matrix" + "2532/1-Wire Sixteen 2x16 Matrix" + "2532/2-Wire 16x16 Matrix" + "2532/2-Wire 4x64 Matrix" + "2532/2-Wire 8x32 Matrix" + "2532/2-Wire Dual 4x32 Matrix" + "2533/1-Wire 4x64 Matrix" + "2534/1-Wire 8x32 Matrix" + "2535/1-Wire 4x136 Matrix" + "2536/1-Wire 8x68 Matrix" + "2540/1-Wire 8x9 Matrix" + "2541/1-Wire 8x12 Matrix" + "2542/Quad 2x1 Terminated Mux" + "2543/Dual 4x1 Terminated Mux" + "2544/8x1 Terminated Mux" + "2545/4x1 Terminated Mux" + "2546/Dual 4x1 Mux" + "2547/8x1 Mux" + "2548/4-SPDT" + "2549/Terminated 2-SPDT" + "2554/4x1 Mux" + "2555/4x1 Terminated Mux" + "2556/Dual 4x1 Mux" + "2557/8x1 Mux" + "2558/4-SPDT" + "2559/Terminated 2-SPDT" + "2564/16-SPST" + "2564/8-DPST" + "2565/16-SPST" + "2566/16-SPDT" + "2566/8-DPDT" + "2567/Independent" + "2568/15-DPST" + "2568/31-SPST" + "2569/100-SPST" + "2569/50-DPST" + "2570/20-DPDT" + "2570/40-SPDT" + "2571/66-SPDT" + "2575/1-Wire 196x1 Mux" + "2575/2-Wire 98x1 Mux" + "2575/2-Wire 95x1 Mux" + "2576/2-Wire 64x1 Mux" + "2576/2-Wire Dual 32x1 Mux" + "2576/2-Wire Octal 8x1 Mux" + "2576/2-Wire Quad 16x1 Mux" + "2576/2-Wire Sixteen 4x1 Mux" + "2576/Independent" + "2584/1-Wire 12x1 Mux" + "2584/1-Wire Dual 6x1 Mux" + "2584/2-Wire 6x1 Mux" + "2584/Independent" + "2585/1-Wire 10x1 Mux" + "2586/10-SPST" + "2586/5-DPST" + "2590/4x1 Mux" + "2591/4x1 Mux" + "2593/16x1 Mux" + "2593/8x1 Terminated Mux" + "2593/Dual 8x1 Mux" + "2593/Dual 4x1 Terminated Mux" + "2593/Independent" + "2594/4x1 Mux" + "2595/4x1 Mux" + "2596/Dual 6x1 Mux" + "2597/6x1 Terminated Mux" + "2598/Dual Transfer" + "2599/2-SPDT" + "2720/Independent" + "2722/Independent" + "2725/Independent" + "2727/Independent" + "2737/2-Wire 4x64 Matrix" + "2738/2-Wire 8x32 Matrix" + "2739/2-Wire 16x16 Matrix" + "2746/Quad 4x1 Mux" + "2747/Dual 8x1 Mux" + "2748/16x1 Mux" + "2790/Independent" + "2796/Dual 6x1 Mux" + "2797/6x1 Terminated Mux" + "2798/Dual Transfer" + "2799/2-SPDT" + + + + + :type topology: str + + :param simulate: + + + Enables simulation of the switch module specified in the resource name + parameter. Valid Values: True - simulate False - Don't simulate + (Default Value) + + + + + :type simulate: bool + + :param reset_device: + + + Specifies whether to reset the switch module during the initialization + process. Valid Values: True - Reset Device (Default Value) False + - Currently unsupported. The device will not reset. + + + + + :type reset_device: bool + + :param grpc_options: + + + MeasurementLink gRPC session options + + + + + :type grpc_options: niswitch.GrpcSessionOptions + + +Methods +======= + +abort +----- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: abort() + + Aborts the scan in progress. Initiate a scan with + :py:meth:`niswitch.Session.initiate`. If the switch module is not scanning, + NISWITCH_ERROR_NO_SCAN_IN_PROGRESS error is returned. + + + + + +can_connect +----------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: can_connect(channel1, channel2) + + Verifies that a path between channel 1 and channel 2 can be created. If + a path is possible in the switch module, the availability of that path + is returned given the existing connections. If the path is possible but + in use, a NISWITCH_WARN_IMPLICIT_CONNECTION_EXISTS warning is + returned. + + + + + + :param channel1: + + + Input one of the channel names of the desired path. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + + + + :type channel1: str + :param channel2: + + + Input one of the channel names of the desired path. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + + + + :type channel2: str + + :rtype: :py:data:`niswitch.PathCapability` + :return: + + + Indicates whether a path is valid. Possible values include: + + - :py:data:`~niswitch.PathCapability.PATH_AVAILABLE` 1 + - :py:data:`~niswitch.PathCapability.PATH_EXISTS` 2 + - :py:data:`~niswitch.PathCapability.PATH_UNSUPPORTED` 3 + - :py:data:`~niswitch.PathCapability.RESOURCE_IN_USE` 4 + - :py:data:`~niswitch.PathCapability.SOURCE_CONFLICT` 5 + - :py:data:`~niswitch.PathCapability.CHANNEL_NOT_AVAILABLE` 6 + + Notes: (1) + :py:data:`~niswitch.PathCapability.PATH_AVAILABLE` indicates that the driver can create the + path at this time. (2) :py:data:`~niswitch.PathCapability.PATH_EXISTS` indicates that the + path already exists. (3) :py:data:`~niswitch.PathCapability.PATH_UNSUPPORTED` indicates that + the instrument is not capable of creating a path between the channels + you specify. (4) :py:data:`~niswitch.PathCapability.RESOURCE_IN_USE` indicates that although + the path is valid, the driver cannot create the path at this moment + because the switch device is currently using one or more of the required + channels to create another path. You must destroy the other path before + creating this one. (5) :py:data:`~niswitch.PathCapability.SOURCE_CONFLICT` indicates that + the instrument cannot create a path because both channels are connected + to a different source channel. (6) + :py:data:`~niswitch.PathCapability.CHANNEL_NOT_AVAILABLE` indicates that the driver cannot + create a path between the two channels because one of the channels is a + configuration channel and thus unavailable for external connections. + + + + + +close +----- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: close() + + Terminates the NI-SWITCH session and all of its properties and + deallocates any memory resources the driver uses. Notes: (1) You must + unlock the session before calling :py:meth:`niswitch.Session._close`. (2) After calling + :py:meth:`niswitch.Session._close`, you cannot use the instrument driver again until you + call :py:meth:`niswitch.Session.init` or :py:meth:`niswitch.Session.InitWithOptions`. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + .. note:: This method is not needed when using the session context manager + + + +commit +------ + + .. py:currentmodule:: niswitch.Session + + .. py:method:: commit() + + Downloads the configured scan list and trigger settings to hardware. + Calling :py:meth:`niswitch.Session.commit` optional as it is implicitly called during + :py:meth:`niswitch.Session.initiate`. Use :py:meth:`niswitch.Session.commit` to arm triggers in a given + order or to control when expensive hardware operations are performed. + + + + + +connect +------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: connect(channel1, channel2) + + Creates a path between channel 1 and channel 2. The driver calculates + and uses the shortest path between the two channels. Refer to Immediate + Operations for information about Channel Usage types. If a path is not + available, the method returns one of the following errors: - + NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are + already explicitly connected by calling either the :py:meth:`niswitch.Session.connect` or + :py:meth:`niswitch.Session.set_path` method. - + NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a + configuration channel. Error elaboration contains information about + which of the two channels is a configuration channel. - + NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are + connected to a different source. Error elaboration contains information + about sources channel 1 and 2 connect to. - + NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are + one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the + driver cannot find a path between the two channels. Note: Paths are + bidirectional. For example, if a path exists between channels CH1 and + CH2, then the path also exists between channels CH2 and CH1. + + + + + + :param channel1: + + + Input one of the channel names of the desired path. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + + + + :type channel1: str + :param channel2: + + + Input one of the channel names of the desired path. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + + + + :type channel2: str + +connect_multiple +---------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: connect_multiple(connection_list) + + Creates the connections between channels specified in Connection List. + Specify connections with two endpoints only or the explicit path between + two endpoints. NI-SWITCH calculates and uses the shortest path between + the channels. Refer to Setting Source and Configuration Channels for + information about channel usage types. In the event of an error, + connecting stops at the point in the list where the error occurred. If a + path is not available, the method returns one of the following errors: + - NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are + already explicitly connected. - + NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a + configuration channel. Error elaboration contains information about + which of the two channels is a configuration channel. - + NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are + connected to a different source. Error elaboration contains information + about sources channel 1 and 2 to connect. - + NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are + one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the + driver cannot find a path between the two channels. Note: Paths are + bidirectional. For example, if a path exists between channels ch1 and + ch2, then the path also exists between channels ch1 and ch2. + + + + + + :param connection_list: + + + Connection List specifies a list of connections between channels to + make. NI-SWITCH validates the connection list, and aborts execution of + the list if errors are returned. Refer to Connection and Disconnection + List Syntax for valid connection list syntax and examples. Refer to + Devices Overview for valid channel names for the switch module. Example + of a valid connection list: c0 -> r1, [c2 -> r2 -> c3] In this example, + r2 is a configuration channel. Default value: None + + + + + :type connection_list: str + +disable +------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: disable() + + Places the switch module in a quiescent state where it has minimal or no + impact on the system to which it is connected. All channels are + disconnected and any scan in progress is aborted. + + + + + +disconnect +---------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: disconnect(channel1, channel2) + + This method destroys the path between two channels that you create + with the :py:meth:`niswitch.Session.connect` or :py:meth:`niswitch.Session.set_path` method. If a path is + not connected or not available, the method returns the + IVISWTCH_ERROR_NO_SUCH_PATH error. + + + + + + :param channel1: + + + Input one of the channel names of the path to break. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + + + + :type channel1: str + :param channel2: + + + Input one of the channel names of the path to break. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + + + + :type channel2: str + +disconnect_all +-------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: disconnect_all() + + Breaks all existing paths. If the switch module cannot break all paths, + NISWITCH_WARN_PATH_REMAINS warning is returned. + + + + + +disconnect_multiple +------------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: disconnect_multiple(disconnection_list) + + Breaks the connections between channels specified in Disconnection List. + If no connections exist between channels, NI-SWITCH returns an error. In + the event of an error, the VI stops at the point in the list where the + error occurred. + + + + + + :param disconnection_list: + + + Disconnection List specifies a list of connections between channels to + break. NI-SWITCH validates the disconnection list, and aborts execution + of the list if errors are returned. Refer to Connection and + Disconnection List Syntax for valid disconnection list syntax and + examples. Refer to Devices Overview for valid channel names for the + switch module. Example of a valid disconnection list: c0 -> r1, [c2 -> + r2 -> c3] In this example, r2 is a configuration channel. Default value: + None + + + + + :type disconnection_list: str + +get_channel_name +---------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: get_channel_name(index) + + Returns the channel string that is in the channel table at the specified + index. Use :py:meth:`niswitch.Session.get_channel_name` in a For Loop to get a complete list + of valid channel names for the switch module. Use the Channel Count + property to determine the number of channels. + + + + + + :param index: + + + A 1-based index into the channel table. Default value: 1 Maximum value: + Value of Channel Count property. + + + + + :type index: int + + :rtype: str + :return: + + + Returns the channel name that is in the channel table at the index you + specify. + + + + + +get_path +-------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: get_path(channel1, channel2) + + Returns a string that identifies the explicit path created with + :py:meth:`niswitch.Session.connect`. Pass this string to :py:meth:`niswitch.Session.set_path` to establish + the exact same path in future connections. In some cases, multiple paths + are available between two channels. When you call :py:meth:`niswitch.Session.connect`, the + driver selects an available path. With :py:meth:`niswitch.Session.connect`, there is no + guarantee that the driver selected path will always be the same path + through the switch module. :py:meth:`niswitch.Session.get_path` only returns those paths + explicitly created by niSwitch Connect Channels or :py:meth:`niswitch.Session.set_path`. + For example, if you connect channels CH1 and CH3,and then channels CH2 + and CH3, an explicit path between channels CH1 and CH2 does not exist an + error is returned + + + + + + :param channel1: + + + Input one of the channel names of the desired path. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + + + + :type channel1: str + :param channel2: + + + Input one of the channel names of the desired path. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + + + + :type channel2: str + + :rtype: str + :return: + + + A string composed of comma-separated paths between channel 1 and channel + 2. The first and last names in the path are the endpoints of the path. + All other channels in the path are configuration channels. Examples of + returned paths: ch0->com0, com0->ab0 + + + + + +get_relay_count +--------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: get_relay_count(relay_name) + + Returns the number of times the relay has changed from Closed to Open. + Relay count is useful for tracking relay lifetime and usage. Call + :py:meth:`niswitch.Session.wait_for_debounce` before :py:meth:`niswitch.Session.get_relay_count` to ensure an + accurate count. Refer to the Relay Count topic in the NI Switches Help + to determine if the switch module supports relay counting. + + + + + + :param relay_name: + + + Name of the relay. Default value: None Examples of valid relay names: + ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid + relay names for the switch module. + + + + + :type relay_name: str + + :rtype: int + :return: + + + The number of relay cycles. + + + + + +get_relay_name +-------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: get_relay_name(index) + + Returns the relay name string that is in the relay list at the specified + index. Use :py:meth:`niswitch.Session.get_relay_name` in a For Loop to get a complete list + of valid relay names for the switch module. Use the Number of Relays + property to determine the number of relays. + + + + + + :param index: + + + A 1-based index into the channel table. Default value: 1 Maximum value: + Value of Channel Count property. + + + + + :type index: int + + :rtype: str + :return: + + + Returns the relay name for the index you specify. + + + + + +get_relay_position +------------------ + + .. py:currentmodule:: niswitch.Session + + .. py:method:: get_relay_position(relay_name) + + Returns the relay position for the relay specified in the Relay Name + parameter. + + + + + + :param relay_name: + + + Name of the relay. Default value: None Examples of valid relay names: + ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid + relay names for the switch module. + + + + + :type relay_name: str + + :rtype: :py:data:`niswitch.RelayPosition` + :return: + + + Indicates whether the relay is open or closed. :py:data:`~niswitch.RelayPosition.OPEN` 10 + :py:data:`~niswitch.RelayPosition.CLOSED` 11 + + + + + +initiate +-------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: initiate() + + Commits the configured scan list and trigger settings to hardware and + initiates the scan. If niSwitch Commit was called earlier, niSwitch + Initiate Scan only initiates the scan and returns immediately. Once the + scanning operation begins, you cannot perform any other operation other + than GetAttribute, AbortScan, or SendSoftwareTrigger. All other + methods return NISWITCH_ERROR_SCAN_IN_PROGRESS. To stop the + scanning operation, To stop the scanning operation, call + :py:meth:`niswitch.Session.abort`. + + + + .. note:: This method will return a Python context manager that will initiate on entering and abort on exit. + + + +lock +---- + + .. py:currentmodule:: niswitch.Session + +.. py:method:: lock() + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the :py:meth:`niswitch.Session.lock` method. + - A call to NI-SWITCH locked the session. + - After a call to the :py:meth:`niswitch.Session.lock` method returns + successfully, no other threads can access the device session until + you call the :py:meth:`niswitch.Session.unlock` method or exit out of the with block when using + lock context manager. + - Use the :py:meth:`niswitch.Session.lock` method and the + :py:meth:`niswitch.Session.unlock` method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the :py:meth:`niswitch.Session.lock` method + within the same thread. To completely unlock the session, you must + balance each call to the :py:meth:`niswitch.Session.lock` method with a call to + the :py:meth:`niswitch.Session.unlock` method. + + One method for ensuring there are the same number of unlock method calls as there is lock calls + is to use lock as a context manager + + .. code:: python + + with niswitch.Session('dev1') as session: + with session.lock(): + # Calls to session within a single lock context + + The first `with` block ensures the session is closed regardless of any exceptions raised + + The second `with` block ensures that unlock is called regardless of any exceptions raised + + :rtype: context manager + :return: + When used in a `with` statement, :py:meth:`niswitch.Session.lock` acts as + a context manager and unlock will be called when the `with` block is exited + +relay_control +------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: relay_control(relay_name, relay_action) + + Controls individual relays of the switch. When controlling individual + relays, the protection offered by setting the usage of source channels + and configuration channels, and by enabling or disabling analog bus + sharing on the NI SwitchBlock, does not apply. Refer to the device book + for your switch in the NI Switches Help to determine if the switch + supports individual relay control. + + + + + + :param relay_name: + + + Name of the relay. Default value: None Examples of valid relay names: + ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid + relay names for the switch module. + + + + + :type relay_name: str + :param relay_action: + + + Specifies whether to open or close a given relay. Default value: Relay + Close Defined values: :py:data:`~niswitch.RelayAction.OPEN` + :py:data:`~niswitch.RelayAction.CLOSE` (Default Value) + + + + + :type relay_action: :py:data:`niswitch.RelayAction` + +reset +----- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: reset() + + Disconnects all created paths and returns the switch module to the state + at initialization. Configuration channel and source channel settings + remain unchanged. + + + + + +reset_with_defaults +------------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: reset_with_defaults() + + Resets the switch module and applies initial user specified settings + from the logical name used to initialize the session. If the session was + created without a logical name, this method is equivalent to + :py:meth:`niswitch.Session.reset`. + + + + + +route_scan_advanced_output +-------------------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: route_scan_advanced_output(scan_advanced_output_connector, scan_advanced_output_bus_line, invert=False) + + Routes the scan advanced output trigger from a trigger bus line (TTLx) + to the front or rear connector. + + + + + + :param scan_advanced_output_connector: + + + The scan advanced trigger destination. Valid locations are the + :py:data:`~niswitch.ScanAdvancedOutput.FRONTCONNECTOR` and :py:data:`~niswitch.ScanAdvancedOutput.REARCONNECTOR`. Default + value: :py:data:`~niswitch.ScanAdvancedOutput.FRONTCONNECTOR` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type scan_advanced_output_connector: :py:data:`niswitch.ScanAdvancedOutput` + :param scan_advanced_output_bus_line: + + + The trigger line to route the scan advanced output trigger from the + front or rear connector. Select :py:data:`~niswitch.ScanAdvancedOutput.NONE` to break an existing + route. Default value: None Valid Values: :py:data:`~niswitch.ScanAdvancedOutput.NONE` + :py:data:`~niswitch.ScanAdvancedOutput.TTL0` :py:data:`~niswitch.ScanAdvancedOutput.TTL1` :py:data:`~niswitch.ScanAdvancedOutput.TTL2` + :py:data:`~niswitch.ScanAdvancedOutput.TTL3` :py:data:`~niswitch.ScanAdvancedOutput.TTL4` :py:data:`~niswitch.ScanAdvancedOutput.TTL5` + :py:data:`~niswitch.ScanAdvancedOutput.TTL6` :py:data:`~niswitch.ScanAdvancedOutput.TTL7` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type scan_advanced_output_bus_line: :py:data:`niswitch.ScanAdvancedOutput` + :param invert: + + + If True, inverts the input trigger signal from falling to rising or + vice versa. Default value: False + + + + + :type invert: bool + +route_trigger_input +------------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: route_trigger_input(trigger_input_connector, trigger_input_bus_line, invert=False) + + Routes the input trigger from the front or rear connector to a trigger + bus line (TTLx). To disconnect the route, call this method again and + specify None for trigger bus line parameter. + + + + + + :param trigger_input_connector: + + + The location of the input trigger source on the switch module. Valid + locations are the :py:data:`~niswitch.TriggerInput.FRONTCONNECTOR` and + :py:data:`~niswitch.TriggerInput.REARCONNECTOR`. Default value: + :py:data:`~niswitch.TriggerInput.FRONTCONNECTOR` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger_input_connector: :py:data:`niswitch.TriggerInput` + :param trigger_input_bus_line: + + + The trigger line to route the input trigger. Select :py:data:`~niswitch.NISWITCH_VAL_NONE` + to break an existing route. Default value: None Valid Values: + :py:data:`~niswitch.NISWITCH_VAL_NONE` :py:data:`~niswitch.TriggerInput.TTL0` :py:data:`~niswitch.TriggerInput.TTL1` + :py:data:`~niswitch.TriggerInput.TTL2` :py:data:`~niswitch.TriggerInput.TTL3` :py:data:`~niswitch.TriggerInput.TTL4` + :py:data:`~niswitch.TriggerInput.TTL5` :py:data:`~niswitch.TriggerInput.TTL6` :py:data:`~niswitch.TriggerInput.TTL7` + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + :type trigger_input_bus_line: :py:data:`niswitch.TriggerInput` + :param invert: + + + If True, inverts the input trigger signal from falling to rising or + vice versa. Default value: False + + + + + :type invert: bool + +self_test +--------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: self_test() + + Verifies that the driver can communicate with the switch module. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + + +send_software_trigger +--------------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: send_software_trigger() + + Sends a software trigger to the switch module specified in the NI-SWITCH + session. When the trigger input is set to :py:data:`~niswitch.TriggerInput.SOFTWARE_TRIG` + through either the :py:meth:`niswitch.Session.ConfigureScanTrigger` or the + :py:attr:`niswitch.Session.trigger_input` property, the scan does not proceed from + a semi-colon (wait for trigger) until :py:meth:`niswitch.Session.send_software_trigger` is + called. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + + +set_path +-------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: set_path(path_list) + + Connects two channels by specifying an explicit path in the path list + parameter. :py:meth:`niswitch.Session.set_path` is particularly useful where path + repeatability is important, such as in calibrated signal paths. If this + is not necessary, use :py:meth:`niswitch.Session.connect`. + + + + + + :param path_list: + + + A string composed of comma-separated paths between channel 1 and channel + 2. The first and last names in the path are the endpoints of the path. + Every other channel in the path are configuration channels. Example of a + valid path list string: ch0->com0, com0->ab0. In this example, com0 is a + configuration channel. Default value: None Obtain the path list for a + previously created path with :py:meth:`niswitch.Session.get_path`. + + + + + :type path_list: str + +unlock +------ + + .. py:currentmodule:: niswitch.Session + +.. py:method:: unlock() + + Releases a lock that you acquired on an device session using + :py:meth:`niswitch.Session.lock`. Refer to :py:meth:`niswitch.Session.unlock` for additional + information on session locks. + +wait_for_debounce +----------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: wait_for_debounce(maximum_time_ms=hightime.timedelta(milliseconds=5000)) + + Pauses until all created paths have settled. If the time you specify + with the Maximum Time (ms) parameter elapsed before the switch paths + have settled, this method returns the + NISWITCH_ERROR_MAX_TIME_EXCEEDED error. + + + + + + :param maximum_time_ms: + + + Specifies the maximum length of time to wait for all relays in the + switch module to activate or deactivate. If the specified time elapses + before all relays active or deactivate, a timeout error is returned. + Default Value:5000 ms + + + + + :type maximum_time_ms: hightime.timedelta, datetime.timedelta, or int in milliseconds + +wait_for_scan_complete +---------------------- + + .. py:currentmodule:: niswitch.Session + + .. py:method:: wait_for_scan_complete(maximum_time_ms=hightime.timedelta(milliseconds=5000)) + + Pauses until the switch module stops scanning or the maximum time has + elapsed and returns a timeout error. If the time you specify with the + Maximum Time (ms) parameter elapsed before the scanning operation has + finished, this method returns the NISWITCH_ERROR_MAX_TIME_EXCEEDED + error. + + + + + + :param maximum_time_ms: + + + Specifies the maximum length of time to wait for the switch module to + stop scanning. If the specified time elapses before the scan ends, + NISWITCH_ERROR_MAX_TIME_EXCEEDED error is returned. Default + Value:5000 ms + + + + + :type maximum_time_ms: hightime.timedelta, datetime.timedelta, or int in milliseconds + + +Properties +========== + +analog_bus_sharing_enable +------------------------- + + .. py:attribute:: analog_bus_sharing_enable + + Enables or disables sharing of an analog bus line so that multiple NI SwitchBlock devices may connect to it simultaneously. To enable multiple NI SwitchBlock devices to share an analog bus line, set this property to True for each device on the channel that corresponds with the shared analog bus line. The default value for all devices is False, which disables sharing of the analog bus. + Refer to the Using the Analog Bus on an NI SwitchBlock Carrier topic in the NI Switches Help for more information about sharing the analog bus. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].analog_bus_sharing_enable` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.analog_bus_sharing_enable` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Channel Configuration:Analog Bus Sharing Enable** + - C Attribute: **NISWITCH_ATTR_ANALOG_BUS_SHARING_ENABLE** + +bandwidth +--------- + + .. py:attribute:: bandwidth + + This channel-based property returns the bandwidth for the channel. + The units are hertz. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.bandwidth` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Bandwidth** + - C Attribute: **NISWITCH_ATTR_BANDWIDTH** + +channel_count +------------- + + .. py:attribute:: channel_count + + Indicates the number of channels that the specific instrument driver supports. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Channel Count** + - C Attribute: **NISWITCH_ATTR_CHANNEL_COUNT** + +characteristic_impedance +------------------------ + + .. py:attribute:: characteristic_impedance + + This channel-based property returns the characteristic impedance for the channel. + The units are ohms. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].characteristic_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.characteristic_impedance` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Characteristic Impedance** + - C Attribute: **NISWITCH_ATTR_CHARACTERISTIC_IMPEDANCE** + +continuous_scan +--------------- + + .. py:attribute:: continuous_scan + + When a switch device is scanning, the swich can either stop scanning when the end of the scan (False) or continue scanning from the top of the scan list again (True). + Notice that if you set the scan to continuous (True), the Wait For Scan Complete operation will always time out and you must call Abort to stop the scan. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Continuous Scan** + - C Attribute: **NISWITCH_ATTR_CONTINUOUS_SCAN** + +digital_filter_enable +--------------------- + + .. py:attribute:: digital_filter_enable + + This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (True) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7. + When Digital Filter is disabled (False), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Digital Filter Enable** + - C Attribute: **NISWITCH_ATTR_DIGITAL_FILTER_ENABLE** + +driver_setup +------------ + + .. py:attribute:: driver_setup + + This property indicates the Driver Setup string that the user specified when initializing the driver. + Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the :py:meth:`niswitch.Session.InitWithOptions` method, or through the IVI Configuration Utility. + If the user does not specify a Driver Setup string, this property returns an empty string. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Driver Setup** + - C Attribute: **NISWITCH_ATTR_DRIVER_SETUP** + +handshaking_initiation +---------------------- + + .. py:attribute:: handshaking_initiation + + + + The following table lists the characteristics of this property. + + +-----------------------+-----------------------------+ + | Characteristic | Value | + +=======================+=============================+ + | Datatype | enums.HandshakingInitiation | + +-----------------------+-----------------------------+ + | Permissions | read-write | + +-----------------------+-----------------------------+ + | Repeated Capabilities | None | + +-----------------------+-----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Handshaking Initiation** + - C Attribute: **NISWITCH_ATTR_HANDSHAKING_INITIATION** + +instrument_firmware_revision +---------------------------- + + .. py:attribute:: instrument_firmware_revision + + A string that contains the firmware revision information for the instrument you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Firmware Revision** + - C Attribute: **NISWITCH_ATTR_INSTRUMENT_FIRMWARE_REVISION** + +instrument_manufacturer +----------------------- + + .. py:attribute:: instrument_manufacturer + + A string that contains the name of the instrument manufacturer you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Manufacturer** + - C Attribute: **NISWITCH_ATTR_INSTRUMENT_MANUFACTURER** + +instrument_model +---------------- + + .. py:attribute:: instrument_model + + A string that contains the model number or name of the instrument that you are currently using. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Instrument Identification:Model** + - C Attribute: **NISWITCH_ATTR_INSTRUMENT_MODEL** + +io_resource_descriptor +---------------------- + + .. py:attribute:: io_resource_descriptor + + Indicates the resource descriptor the driver uses to identify the physical device. + If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. + If you initialize the instrument driver with the resource descriptor, this property contains that value. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:IO Resource Descriptor** + - C Attribute: **NISWITCH_ATTR_IO_RESOURCE_DESCRIPTOR** + +is_configuration_channel +------------------------ + + .. py:attribute:: is_configuration_channel + + This channel-based property specifies whether to reserve the channel for internal path creation. A channel that is available for internal path creation is called a configuration channel. The driver may use configuration channels to create paths between two channels you specify in the :py:meth:`niswitch.Session.connect` method. Configuration channels are not available for external connections. + Set this property to True to mark the channel as a configuration channel. Set this property to False to mark the channel as available for external connections. + After you identify a channel as a configuration channel, you cannot use that channel for external connections. The :py:meth:`niswitch.Session.connect` method returns the NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL error when you attempt to establish a connection between a configuration channel and any other channel. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].is_configuration_channel` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.is_configuration_channel` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Channel Configuration:Is Configuration Channel** + - C Attribute: **NISWITCH_ATTR_IS_CONFIGURATION_CHANNEL** + +is_debounced +------------ + + .. py:attribute:: is_debounced + + This property indicates whether the entire switch device has settled since the last switching command. A value of True indicates that all signals going through the switch device are valid. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Is Debounced** + - C Attribute: **NISWITCH_ATTR_IS_DEBOUNCED** + +is_scanning +----------- + + .. py:attribute:: is_scanning + + If True, the switch module is currently scanning through the scan list (i.e. it is not in the Idle state). If False, the switch module is not currently scanning through the scan list (i.e. it is in the Idle state). + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Is Scanning** + - C Attribute: **NISWITCH_ATTR_IS_SCANNING** + +is_source_channel +----------------- + + .. py:attribute:: is_source_channel + + This channel-based property specifies whether you want to identify the channel as a source channel. Typically, you set this property to True when you attach the channel to a power supply, a method generator, or an active measurement point on the unit under test, and you do not want to connect the channel to another source. The driver prevents source channels from connecting to each other. The :py:meth:`niswitch.Session.connect` method returns the NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES when you attempt to connect two channels that you identify as source channels. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].is_source_channel` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.is_source_channel` + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | channels | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Channel Configuration:Is Source Channel** + - C Attribute: **NISWITCH_ATTR_IS_SOURCE_CHANNEL** + +is_waiting_for_trig +------------------- + + .. py:attribute:: is_waiting_for_trig + + In a scan list, a semi-colon (;) is used to indicate that at that point in the scan list, the scan engine should pause until a trigger is received from the trigger input. If that trigger is user generated through either a hardware pulse or the Send SW Trigger operation, it is necessary for the user to know when the scan engine has reached such a state. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | bool | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Is Waiting for Trigger?** + - C Attribute: **NISWITCH_ATTR_IS_WAITING_FOR_TRIG** + +logical_name +------------ + + .. py:attribute:: logical_name + + A string containing the logical name you specified when opening the current IVI session. + You may pass a logical name to the :py:meth:`niswitch.Session.init` or :py:meth:`niswitch.Session.InitWithOptions` methods. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Advanced Session Information:Logical Name** + - C Attribute: **NISWITCH_ATTR_LOGICAL_NAME** + +max_ac_voltage +-------------- + + .. py:attribute:: max_ac_voltage + + This channel-based property returns the maximum AC voltage the channel can switch. + The units are volts RMS. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_ac_voltage` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_ac_voltage` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum AC Voltage** + - C Attribute: **NISWITCH_ATTR_MAX_AC_VOLTAGE** + +max_carry_ac_current +-------------------- + + .. py:attribute:: max_carry_ac_current + + This channel-based property returns the maximum AC current the channel can carry. + The units are amperes RMS. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_ac_current` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Carry AC Current** + - C Attribute: **NISWITCH_ATTR_MAX_CARRY_AC_CURRENT** + +max_carry_ac_power +------------------ + + .. py:attribute:: max_carry_ac_power + + This channel-based property returns the maximum AC power the channel can carry. + The units are volt-amperes. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_ac_power` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Carry AC Power** + - C Attribute: **NISWITCH_ATTR_MAX_CARRY_AC_POWER** + +max_carry_dc_current +-------------------- + + .. py:attribute:: max_carry_dc_current + + This channel-based property returns the maximum DC current the channel can carry. + The units are amperes. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_dc_current` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Carry DC Current** + - C Attribute: **NISWITCH_ATTR_MAX_CARRY_DC_CURRENT** + +max_carry_dc_power +------------------ + + .. py:attribute:: max_carry_dc_power + + This channel-based property returns the maximum DC power the channel can carry. + The units are watts. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_dc_power` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Carry DC Power** + - C Attribute: **NISWITCH_ATTR_MAX_CARRY_DC_POWER** + +max_dc_voltage +-------------- + + .. py:attribute:: max_dc_voltage + + This channel-based property returns the maximum DC voltage the channel can switch. + The units are volts. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_dc_voltage` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_dc_voltage` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum DC Voltage** + - C Attribute: **NISWITCH_ATTR_MAX_DC_VOLTAGE** + +max_switching_ac_current +------------------------ + + .. py:attribute:: max_switching_ac_current + + This channel-based property returns the maximum AC current the channel can switch. + The units are amperes RMS. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_ac_current` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Switching AC Current** + - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_AC_CURRENT** + +max_switching_ac_power +---------------------- + + .. py:attribute:: max_switching_ac_power + + This channel-based property returns the maximum AC power the channel can switch. + The units are volt-amperes. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_ac_power` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Switching AC Power** + - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_AC_POWER** + +max_switching_dc_current +------------------------ + + .. py:attribute:: max_switching_dc_current + + This channel-based property returns the maximum DC current the channel can switch. + The units are amperes. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_dc_current` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Switching DC Current** + - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_DC_CURRENT** + +max_switching_dc_power +---------------------- + + .. py:attribute:: max_switching_dc_power + + This channel-based property returns the maximum DC power the channel can switch. + The units are watts. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_dc_power` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Maximum Switching DC Power** + - C Attribute: **NISWITCH_ATTR_MAX_SWITCHING_DC_POWER** + +number_of_relays +---------------- + + .. py:attribute:: number_of_relays + + This property returns the number of relays. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Number of Relays** + - C Attribute: **NISWITCH_ATTR_NUMBER_OF_RELAYS** + +num_of_columns +-------------- + + .. py:attribute:: num_of_columns + + This property returns the number of channels on the column of a matrix or scanner. If the switch device is a scanner, this value is the number of input channels. + The :py:attr:`niswitch.Session.wire_mode` property affects the number of available columns. For example, if your device has 8 input lines and you use the four-wire mode, then the number of columns you have available is 2. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Matrix Configuration:Number of Columns** + - C Attribute: **NISWITCH_ATTR_NUM_OF_COLUMNS** + +num_of_rows +----------- + + .. py:attribute:: num_of_rows + + This property returns the number of channels on the row of a matrix or scanner. If the switch device is a scanner, this value is the number of output channels. + The :py:attr:`niswitch.Session.wire_mode` property affects the number of available rows. For example, if your device has 8 input lines and you use the two-wire mode, then the number of columns you have available is 4. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Matrix Configuration:Number of Rows** + - C Attribute: **NISWITCH_ATTR_NUM_OF_ROWS** + +power_down_latching_relays_after_debounce +----------------------------------------- + + .. py:attribute:: power_down_latching_relays_after_debounce + + This property specifies whether to power down latching relays after calling Wait For Debounce. + When Power Down Latching Relays After Debounce is enabled (True), a call to Wait For Debounce ensures that the relays are settled and the latching relays are powered down. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Power Down Latching Relays After Debounce** + - C Attribute: **NISWITCH_ATTR_POWER_DOWN_LATCHING_RELAYS_AFTER_DEBOUNCE** + +scan_advanced_output +-------------------- + + .. py:attribute:: scan_advanced_output + + This property specifies the method you want to use to notify another instrument that all signals going through the switch device have settled following the processing of one entry in the scan list. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------------+ + | Characteristic | Value | + +=======================+==========================+ + | Datatype | enums.ScanAdvancedOutput | + +-----------------------+--------------------------+ + | Permissions | read-write | + +-----------------------+--------------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Scan Advanced Output** + - C Attribute: **NISWITCH_ATTR_SCAN_ADVANCED_OUTPUT** + +scan_advanced_polarity +---------------------- + + .. py:attribute:: scan_advanced_polarity + + + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.ScanAdvancedPolarity | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Scan Advanced Polarity** + - C Attribute: **NISWITCH_ATTR_SCAN_ADVANCED_POLARITY** + +scan_delay +---------- + + .. py:attribute:: scan_delay + + This property specifies the minimum amount of time the switch device waits before it asserts the scan advanced output trigger after opening or closing the switch. The switch device always waits for debounce before asserting the trigger. The units are seconds. + the greater value of the settling time and the value you specify as the scan delay. + + + + .. note:: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | None | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Scan Delay** + - C Attribute: **NISWITCH_ATTR_SCAN_DELAY** + +scan_list +--------- + + .. py:attribute:: scan_list + + This property contains a scan list, which is a string that specifies channel connections and trigger conditions. The :py:meth:`niswitch.Session.initiate` method makes or breaks connections and waits for triggers according to the instructions in the scan list. + The scan list is comprised of channel names that you separate with special characters. These special characters determine the operations the scanner performs on the channels when it executes this scan list. + To create a path between two channels, use the following character between the two channel names: + -> (a dash followed by a '>' sign) + Example: 'CH1->CH2' tells the switch to make a path from channel CH1 to channel CH2. + To break or clear a path, use the following character as a prefix before the path: + ~ (tilde) + Example: '~CH1->CH2' tells the switch to break the path from channel CH1 to channel CH2. + To tell the switch device to wait for a trigger event, use the following character as a separator between paths: + ; (semi-colon) + Example: 'CH1->CH2;CH3->CH4' tells the switch to make the path from channel CH1 to channel CH2, wait for a trigger, and then make the path from CH3 to CH4. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | str | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Scan List** + - C Attribute: **NISWITCH_ATTR_SCAN_LIST** + +scan_mode +--------- + + .. py:attribute:: scan_mode + + This property specifies what happens to existing connections that conflict with the connections you make in a scan list. For example, if CH1 is already connected to CH2 and the scan list instructs the switch device to connect CH1 to CH3, this property specifies what happens to the connection between CH1 and CH2. + If the value of this property is :py:data:`~niswitch.ScanMode.NONE`, the switch device takes no action on existing paths. If the value is :py:data:`~niswitch.ScanMode.BREAK_BEFORE_MAKE`, the switch device breaks conflicting paths before making new ones. If the value is :py:data:`~niswitch.ScanMode.BREAK_AFTER_MAKE`, the switch device breaks conflicting paths after making new ones. + Most switch devices support only one of the possible values. In such cases, this property serves as an indicator of the device's behavior. + + + + .. note:: One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + The following table lists the characteristics of this property. + + +-----------------------+----------------+ + | Characteristic | Value | + +=======================+================+ + | Datatype | enums.ScanMode | + +-----------------------+----------------+ + | Permissions | read-write | + +-----------------------+----------------+ + | Repeated Capabilities | None | + +-----------------------+----------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Scan Mode** + - C Attribute: **NISWITCH_ATTR_SCAN_MODE** + +serial_number +------------- + + .. py:attribute:: serial_number + + This read-only property returns the serial number for the switch device controlled by this instrument driver. If the device does not return a serial number, the driver returns the IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED error. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Serial Number** + - C Attribute: **NISWITCH_ATTR_SERIAL_NUMBER** + +settling_time +------------- + + .. py:attribute:: settling_time + + This channel-based property returns the maximum length of time from after you make a connection until the signal flowing through the channel settles. The units are seconds. + the greater value of the settling time and the value you specify as the scan delay. + + + + .. note:: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].settling_time` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.settling_time` + + The following table lists the characteristics of this property. + + +-----------------------+-------------------------------------------------------------+ + | Characteristic | Value | + +=======================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +-----------------------+-------------------------------------------------------------+ + | Permissions | read-write | + +-----------------------+-------------------------------------------------------------+ + | Repeated Capabilities | channels | + +-----------------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Settling Time** + - C Attribute: **NISWITCH_ATTR_SETTLING_TIME** + +simulate +-------- + + .. py:attribute:: simulate + + Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. + The default value is False. Use the :py:meth:`niswitch.Session.InitWithOptions` method to override this value. + + + + .. note:: One or more of the referenced methods are not in the Python API for this driver. + + The following table lists the characteristics of this property. + + +-----------------------+------------+ + | Characteristic | Value | + +=======================+============+ + | Datatype | bool | + +-----------------------+------------+ + | Permissions | read-write | + +-----------------------+------------+ + | Repeated Capabilities | None | + +-----------------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:User Options:Simulate** + - C Attribute: **NISWITCH_ATTR_SIMULATE** + +specific_driver_description +--------------------------- + + .. py:attribute:: specific_driver_description + + A string that contains a brief description of the specific driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Description** + - C Attribute: **NISWITCH_ATTR_SPECIFIC_DRIVER_DESCRIPTION** + +specific_driver_revision +------------------------ + + .. py:attribute:: specific_driver_revision + + A string that contains additional version information about this instrument driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Revision** + - C Attribute: **NISWITCH_ATTR_SPECIFIC_DRIVER_REVISION** + +specific_driver_vendor +---------------------- + + .. py:attribute:: specific_driver_vendor + + A string that contains the name of the vendor that supplies this driver. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Identification:Driver Vendor** + - C Attribute: **NISWITCH_ATTR_SPECIFIC_DRIVER_VENDOR** + +supported_instrument_models +--------------------------- + + .. py:attribute:: supported_instrument_models + + Contains a comma-separated list of supported instrument models. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | str | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Inherent IVI Attributes:Driver Capabilities:Supported Instrument Models** + - C Attribute: **NISWITCH_ATTR_SUPPORTED_INSTRUMENT_MODELS** + +temperature +----------- + + .. py:attribute:: temperature + + This property returns the temperature as read by the Switch module. The units are degrees Celsius. + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | float | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | None | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Temperature** + - C Attribute: **NISWITCH_ATTR_TEMPERATURE** + +trigger_input +------------- + + .. py:attribute:: trigger_input + + This property specifies the source of the trigger for which the switch device can wait when processing a scan list. The switch device waits for a trigger when it encounters a semi-colon in a scan list. When the trigger occurs, the switch device advances to the next entry in the scan list. + + The following table lists the characteristics of this property. + + +-----------------------+--------------------+ + | Characteristic | Value | + +=======================+====================+ + | Datatype | enums.TriggerInput | + +-----------------------+--------------------+ + | Permissions | read-write | + +-----------------------+--------------------+ + | Repeated Capabilities | None | + +-----------------------+--------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Trigger Input** + - C Attribute: **NISWITCH_ATTR_TRIGGER_INPUT** + +trigger_input_polarity +---------------------- + + .. py:attribute:: trigger_input_polarity + + Determines the behavior of the trigger Input. + + The following table lists the characteristics of this property. + + +-----------------------+----------------------------+ + | Characteristic | Value | + +=======================+============================+ + | Datatype | enums.TriggerInputPolarity | + +-----------------------+----------------------------+ + | Permissions | read-write | + +-----------------------+----------------------------+ + | Repeated Capabilities | None | + +-----------------------+----------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Scanning Configuration:Trigger Input Polarity** + - C Attribute: **NISWITCH_ATTR_TRIGGER_INPUT_POLARITY** + +wire_mode +--------- + + .. py:attribute:: wire_mode + + This property returns the wire mode of the switch device. + This property affects the values of the :py:attr:`niswitch.Session.num_of_rows` and :py:attr:`niswitch.Session.num_of_columns` properties. The actual number of input and output lines on the switch device is fixed, but the number of channels depends on how many lines constitute each channel. + + + + + .. tip:: This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].wire_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.wire_mode` + + The following table lists the characteristics of this property. + + +-----------------------+-----------+ + | Characteristic | Value | + +=======================+===========+ + | Datatype | int | + +-----------------------+-----------+ + | Permissions | read only | + +-----------------------+-----------+ + | Repeated Capabilities | channels | + +-----------------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Module Characteristics:Wire mode** + - C Attribute: **NISWITCH_ATTR_WIRE_MODE** + + +.. contents:: Session diff --git a/docs/niswitch/conf.py b/docs/niswitch/conf.py new file mode 100644 index 0000000000..af61a15ba6 --- /dev/null +++ b/docs/niswitch/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-SWITCH Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-SWITCH Python API' +copyright = '2017-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NISWITCHPythonAPI.tex', 'NI-SWITCH Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'niswitchpythonapi', 'NI-SWITCH Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NISWITCHPythonAPI', 'NI-SWITCH Python API Documentation', + author, 'NISWITCHPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'nitclk': ('https://nitclk.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/niswitch/enums.rst b/docs/niswitch/enums.rst new file mode 100644 index 0000000000..0595644944 --- /dev/null +++ b/docs/niswitch/enums.rst @@ -0,0 +1,1060 @@ +Enums +===== + +Enums used in NI-SWITCH + +.. py:currentmodule:: niswitch + + +HandshakingInitiation +--------------------- + +.. py:class:: HandshakingInitiation + + .. py:attribute:: HandshakingInitiation.MEASUREMENT_DEVICE + + + + The `niSwitch Initiate + Scan `__ VI does not + return until the switch hardware is waiting for a trigger input. This + ensures that if you initiate the measurement device after calling the + `niSwitch Initiate + Scan `__ VI , the switch + is sure to receive the first measurement complete (MC) signal sent by + the measurement device. The measurement device should be configured to + first take a measurement, send MC, then wait for scanner advanced output + signal. Thus, the first MC of the measurement device initiates + handshaking. + + + + + + .. py:attribute:: HandshakingInitiation.SWITCH + + + + The `niSwitch Initiate + Scan `__ VI returns + immediately after beginning scan list execution. It is assumed that the + measurement device has already been configured and is waiting for the + scanner advanced signal. The measurement should be configured to first + wait for a trigger, then take a measurement. Thus, the first scanner + advanced output signal of the switch module initiates handshaking. + + + + + +PathCapability +-------------- + +.. py:class:: PathCapability + + .. py:attribute:: PathCapability.PATH_AVAILABLE + + + + Path Available + + + + + + .. py:attribute:: PathCapability.PATH_EXISTS + + + + Path Exists + + + + + + .. py:attribute:: PathCapability.PATH_UNSUPPORTED + + + + Path Unsupported + + + + + + .. py:attribute:: PathCapability.RESOURCE_IN_USE + + + + Resource in use + + + + + + .. py:attribute:: PathCapability.SOURCE_CONFLICT + + + + Source conflict + + + + + + .. py:attribute:: PathCapability.CHANNEL_NOT_AVAILABLE + + + + Channel not available + + + + + +RelayAction +----------- + +.. py:class:: RelayAction + + .. py:attribute:: RelayAction.OPEN + + + + Open Relay + + + + + + .. py:attribute:: RelayAction.CLOSE + + + + Close Relay + + + + + +RelayPosition +------------- + +.. py:class:: RelayPosition + + .. py:attribute:: RelayPosition.OPEN + + + + Open + + + + + + .. py:attribute:: RelayPosition.CLOSED + + + + Closed + + + + + +ScanAdvancedOutput +------------------ + +.. py:class:: ScanAdvancedOutput + + .. py:attribute:: ScanAdvancedOutput.NONE + + + + The switch device does not produce a Scan Advanced Output trigger. + + + + + + .. py:attribute:: ScanAdvancedOutput.EXTERNAL + + + + External Trigger. The switch device produces the Scan Advanced Output trigger on the external trigger output. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL0 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG0 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL1 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG1 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL2 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG2 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL3 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG3 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL4 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG4 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL5 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG5 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL6 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG6 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.TTL7 + + + + The switch device produces the Scan Advanced Output on the PXI TRIG7 line. + + + + + + .. py:attribute:: ScanAdvancedOutput.PXI_STAR + + + + The switch module produces the Scan Advanced Output Trigger on the PXI + Star trigger bus before processing the next entry in the scan list. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR + + + + The switch device produces the Scan Advanced Output trigger on the rear connector. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR + + + + The switch device produces the Scan Advanced Output trigger on the front connector. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE1 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 1. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE2 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 2. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE3 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 3. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE4 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 4. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE5 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 5. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE6 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 6. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE7 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 7. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE8 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 8. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE9 + + + + The switch module produces the Scan Advanced Ouptut Trigger on the rear + connector module 9. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE10 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 10. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE11 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 11. + + + + + + .. py:attribute:: ScanAdvancedOutput.REARCONNECTOR_MODULE12 + + + + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 12. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE1 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 1. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE2 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 2. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE3 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 3. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE4 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 4. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE5 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 5. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE6 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 6. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE7 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 7. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE8 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 8. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE9 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 9. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE10 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 10. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE11 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 11. + + + + + + .. py:attribute:: ScanAdvancedOutput.FRONTCONNECTOR_MODULE12 + + + + The switch module produces the Scan Advanced Output Trigger on the front + connector module 12. + + + + + +ScanAdvancedPolarity +-------------------- + +.. py:class:: ScanAdvancedPolarity + + .. py:attribute:: ScanAdvancedPolarity.RISING + + + + The trigger occurs on the rising edge of the signal. + + + + + + .. py:attribute:: ScanAdvancedPolarity.FALLING + + + + The trigger occurs on the falling edge of the signal. + + + + + +ScanMode +-------- + +.. py:class:: ScanMode + + .. py:attribute:: ScanMode.NONE + + + + No implicit action on connections when scanning. + + + + + + .. py:attribute:: ScanMode.BREAK_BEFORE_MAKE + + + + When scanning, the switch device breaks existing connections before making new connections. + + + + + + .. py:attribute:: ScanMode.BREAK_AFTER_MAKE + + + + When scanning, the switch device breaks existing connections after making new connections. + + + + + +TriggerInput +------------ + +.. py:class:: TriggerInput + + .. py:attribute:: TriggerInput.IMMEDIATE + + + + Immediate Trigger. The switch device does not wait for a trigger before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.EXTERNAL + + + + External Trigger. The switch device waits until it receives a trigger from an external source through the external trigger input before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.SOFTWARE_TRIG + + + + The switch device waits until you call the :py:meth:`niswitch.Session.send_software_trigger` method before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL0 + + + + The switch device waits until it receives a trigger on the PXI TRIG0 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL1 + + + + The switch device waits until it receives a trigger on the PXI TRIG1 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL2 + + + + The switch device waits until it receives a trigger on the PXI TRIG2 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL3 + + + + The switch device waits until it receives a trigger on the PXI TRIG3 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL4 + + + + The switch device waits until it receives a trigger on the PXI TRIG4 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL5 + + + + The switch device waits until it receives a trigger on the PXI TRIG5 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL6 + + + + The switch device waits until it receives a trigger on the PXI TRIG6 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.TTL7 + + + + The switch device waits until it receives a trigger on the PXI TRIG7 line before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.PXI_STAR + + + + The switch device waits until it receives a trigger on the PXI STAR trigger bus before processing the next entry in the scan list. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR + + + + The switch device waits until it receives a trigger on the rear connector. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR + + + + The switch device waits until it receives a trigger on the front connector. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE1 + + + + The switch module waits until it receives a trigger on the rear + connector module 1. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE2 + + + + The switch module waits until it receives a trigger on the rear + connector module 2. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE3 + + + + The switch module waits until it receives a trigger on the rear + connector module 3. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE4 + + + + The switch module waits until it receives a trigger on the rear + connector module 4. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE5 + + + + The switch module waits until it receives a trigger on the rear + connector module 5. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE6 + + + + The switch module waits until it receives a trigger on the rear + connector module 6. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE7 + + + + The switch module waits until it receives a trigger on the rear + connector module 7. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE8 + + + + The switch module waits until it receives a trigger on the rear + connector module 8. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE9 + + + + The switch module waits until it receives a trigger on the rear + connector module 9. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE10 + + + + The switch module waits until it receives a trigger on the rear + connector module 10. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE11 + + + + The switch module waits until it receives a trigger on the rear + connector module 11. + + + + + + .. py:attribute:: TriggerInput.REARCONNECTOR_MODULE12 + + + + The switch module waits until it receives a trigger on the rear + connector module 12. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE1 + + + + The switch module waits until it receives a trigger on the front + connector module 1. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE2 + + + + The switch module waits until it receives a trigger on the front + connector module 2. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE3 + + + + The switch module waits until it receives a trigger on the front + connector module 3. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE4 + + + + The switch module waits until it receives a trigger on the front + connector module 4. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE5 + + + + The switch module waits until it receives a trigger on the front + connector module 5. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE6 + + + + The switch module waits until it receives a trigger on the front + connector module 6. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE7 + + + + The switch module waits until it receives a trigger on the front + connector module 7. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE8 + + + + The switch module waits until it receives a trigger on the front + connector module 8. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE9 + + + + The switch module waits until it receives a trigger on the front + connector module 9. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE10 + + + + The switch module waits until it receives a trigger on the front + connector module 10. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE11 + + + + The switch module waits until it receives a trigger on the front + connector module 11. + + + + + + .. py:attribute:: TriggerInput.FRONTCONNECTOR_MODULE12 + + + + The switch module waits until it receives a trigger on the front + connector module 12. + + + + + +TriggerInputPolarity +-------------------- + +.. py:class:: TriggerInputPolarity + + .. py:attribute:: TriggerInputPolarity.RISING + + + + The trigger occurs on the rising edge of the signal. + + + + + + .. py:attribute:: TriggerInputPolarity.FALLING + + + + The trigger occurs on the falling edge of the signal. + + + + + + + diff --git a/docs/niswitch/errors.rst b/docs/niswitch/errors.rst new file mode 100644 index 0000000000..6a01582c60 --- /dev/null +++ b/docs/niswitch/errors.rst @@ -0,0 +1,100 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: niswitch.errors + + .. exception:: Error + + Base exception type that all NI-SWITCH exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: DriverError + + An error originating from the NI-SWITCH driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-SWITCH driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: DriverTooNewError + + An error due to the NI-SWITCH driver runtime being too new for this module. + +InvalidRepeatedCapabilityError +------------------------------ + + .. py:currentmodule:: niswitch.errors + + .. exception:: InvalidRepeatedCapabilityError + + An error due to an invalid character in a repeated capability + + +SelfTestError +------------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: SelfTestError + + An error due to a failed self-test + + +RpcError +-------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: RpcError + + An error specific to sessions to the NI gRPC Device Server + + +DriverWarning +------------- + + .. py:currentmodule:: niswitch.errors + + .. exception:: DriverWarning + + A warning originating from the NI-SWITCH driver + + + diff --git a/docs/niswitch/examples.rst b/docs/niswitch/examples.rst new file mode 100644 index 0000000000..f2c8dfef12 --- /dev/null +++ b/docs/niswitch/examples.rst @@ -0,0 +1,32 @@ +Examples +======== + +`You can download all niswitch examples for latest version here `_ + +niswitch_connect_channels.py +---------------------------- + +.. literalinclude:: ../../src/niswitch/examples/niswitch_connect_channels.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niswitch_connect_channels.py) `_ + +niswitch_get_device_info.py +--------------------------- + +.. literalinclude:: ../../src/niswitch/examples/niswitch_get_device_info.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niswitch_get_device_info.py) `_ + +niswitch_relay_control.py +------------------------- + +.. literalinclude:: ../../src/niswitch/examples/niswitch_relay_control.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(niswitch_relay_control.py) `_ + diff --git a/docs/niswitch/grpc_session_options.rst b/docs/niswitch/grpc_session_options.rst new file mode 100644 index 0000000000..474d9705ac --- /dev/null +++ b/docs/niswitch/grpc_session_options.rst @@ -0,0 +1,139 @@ +gRPC Support +============ + +Support for using NI-SWITCH over gRPC + +.. py:currentmodule:: niswitch + + + +Creating a gRPC channel +----------------------- + +Using NI-SWITCH over gRPC requires the ``grpc`` extra:: + + $ python -m pip install niswitch[grpc] + +Every NI-SWITCH gRPC session is created from a ``grpc.Channel`` that you build and pass to +:py:class:`niswitch.GrpcSessionOptions`. You own the channel, not the session, so you must +close it after the last session using it is closed. + +The recommended way to create a gRPC channel to a remote system running NI gRPC Device Server is +:py:func:`nitlsconfig.create_grpc_device_channel() ` +from the `nitlsconfig `_ package, which the +``grpc`` extra installs for you. It reads the nitlsconfig client configuration installed with the +NI-SWITCH runtime and by default will attempt to build an encrypted gRPC channel using mTLS. + +Before ``create_grpc_device_channel`` can succeed, you must use NI Hardware Manager to perform a +certificate exchange with the remote system. +See `Managing mTLS `_ for +additional information. + +For example:: + + import niswitch + import nitlsconfig + + with nitlsconfig.create_grpc_device_channel('remote_grpc_device', 31763) as channel: + options = niswitch.GrpcSessionOptions(channel, '') + with niswitch.Session('dev1', grpc_options=options) as session: + # Calls to session over the encrypted channel + +.. note:: From NI Hardware Manager, you can disable TLS to make ``create_grpc_device_channel`` + produce an insecure channel. + +.. note:: ``create_grpc_device_channel`` also accepts an ``options`` parameter for gRPC channel + arguments such as ``grpc.ssl_target_name_override``, and a ``retry_policy`` parameter. Channel + arguments cannot be changed after the channel is built, so they must be supplied here. + +.. note:: NI gRPC Device Server must be configured to accept remote connections and to take its + TLS settings from nitlsconfig. See + `Bind Address Support `_ and + `NI TLS Config Integration `_ for details. + +You can also build the gRPC channel yourself with ``grpc.insecure_channel`` or ``grpc.secure_channel`` +if you need full control over how credentials are supplied. + + +SessionInitializationBehavior +----------------------------- + +.. py:class:: SessionInitializationBehavior + + .. py:attribute:: SessionInitializationBehavior.AUTO + + + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, + otherwise the server will initialize a new session. + + .. note:: When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + + + .. py:attribute:: SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + + + Require the NI gRPC Device Server to initialize a new session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will automatically close the + server session. + + + .. py:attribute:: SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + + + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + .. note:: When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + + + +GrpcSessionOptions +------------------ + + +.. py:class:: GrpcSessionOptions(self, grpc_channel, session_name, initialization_behavior=SessionInitializationBehavior.AUTO) + + + Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + + :param grpc_channel: + + + Specifies the channel to the NI gRPC Device Server. + + + + :type grpc_channel: grpc.Channel + + + :param session_name: + + + User-specified name that identifies the driver session on the NI gRPC Device Server. + + This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + + + :type session_name: str + + + :param initialization_behavior: + + + Specifies whether it is acceptable to initialize a new session or attach to an existing one, or if only one of the behaviors is desired. + + The driver session exists on the NI gRPC Device Server. + + + + :type initialization_behavior: :py:data:`niswitch.SessionInitializationBehavior` diff --git a/docs/niswitch/index.rst b/docs/niswitch/index.rst new file mode 100644 index 0000000000..ac28a61bd0 --- /dev/null +++ b/docs/niswitch/index.rst @@ -0,0 +1,31 @@ + +NI-SWITCH Python API Documentation +================================== + +.. include:: about_niswitch.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + niswitch + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/niswitch/installation.inc b/docs/niswitch/installation.inc new file mode 100644 index 0000000000..200e67ac47 --- /dev/null +++ b/docs/niswitch/installation.inc @@ -0,0 +1,13 @@ + +.. _niswitch_installation-section: + +Installation +------------ + +As a prerequisite to using the **niswitch** module, you must install the NI-SWITCH runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-SWITCH**) can be installed with `pip `_:: + + $ python -m pip install niswitch + + diff --git a/docs/niswitch/niswitch.rst b/docs/niswitch/niswitch.rst new file mode 100644 index 0000000000..b43ed42239 --- /dev/null +++ b/docs/niswitch/niswitch.rst @@ -0,0 +1,9 @@ +niswitch module +=============== + +.. include:: installation.inc + +.. include:: ../_static/niswitch_usage.inc + +.. include:: toc.inc + diff --git a/docs/niswitch/rep_caps.rst b/docs/niswitch/rep_caps.rst new file mode 100644 index 0000000000..7f141fa26b --- /dev/null +++ b/docs/niswitch/rep_caps.rst @@ -0,0 +1,38 @@ +.. py:module:: niswitch + :noindex: + +.. py:currentmodule:: niswitch.Session + +.. role:: c(code) + :language: c + +.. role:: python(code) + :language: python + +Repeated Capabilities +===================== + + Repeated capabilities attributes are used to set the `channel_string` parameter to the + underlying driver function call. This can be the actual function based on the :py:class:`Session` + method being called, or it can be the appropriate Get/Set Attribute function, such as :c:`niSwitch_SetAttributeViInt32()`. + + Repeated capabilities attributes use the indexing operator :python:`[]` to indicate the repeated capabilities. + The parameter can be a string, list, tuple, or slice (range). Each element of those can be a string or + an integer. If it is a string, you can indicate a range using the same format as the driver: :python:`'0-2'` or + :python:`'0:2'` + + Some repeated capabilities use a prefix before the number and this is optional + +channels +-------- + + .. py:attribute:: niswitch.Session.channels[] + + .. code:: python + + session.channels['0-2'].channel_enabled = True + + passes a string of :python:`'0, 1, 2'` to the set attribute function. + + + diff --git a/docs/niswitch/status.inc b/docs/niswitch/status.inc new file mode 100644 index 0000000000..669a365d71 --- /dev/null +++ b/docs/niswitch/status.inc @@ -0,0 +1,46 @@ + +NI-SWITCH Python API Status +--------------------------- + ++-------------------------------+-------------------------+ +| NI-SWITCH (niswitch) | | ++===============================+=========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-------------------------+ +| PyPI Version | |niswitchLatestVersion| | ++-------------------------------+-------------------------+ +| Supported Python Version | |niswitchPythonVersion| | ++-------------------------------+-------------------------+ +| Documentation | |niswitchDocs| | ++-------------------------------+-------------------------+ +| Open Issues | |niswitchOpenIssues| | ++-------------------------------+-------------------------+ +| Open Pull Requests | |niswitchOpenPRs| | ++-------------------------------+-------------------------+ + + +.. |niswitchLatestVersion| image:: http://img.shields.io/pypi/v/niswitch.svg + :alt: Latest NI-SWITCH Version + :target: http://pypi.python.org/pypi/niswitch + + +.. |niswitchPythonVersion| image:: http://img.shields.io/pypi/pyversions/niswitch.svg + :alt: NI-SWITCH supported Python versions + :target: http://pypi.python.org/pypi/niswitch + + +.. |niswitchDocs| image:: https://readthedocs.org/projects/niswitch/badge/?version=latest + :alt: NI-SWITCH Python API Documentation Status + :target: https://niswitch.readthedocs.io/en/latest + + +.. |niswitchOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niswitch.svg + :alt: Open Issues + Pull Requests for NI-SWITCH + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniswitch + + +.. |niswitchOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niswitch.svg + :alt: Pull Requests for NI-SWITCH + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniswitch + + diff --git a/docs/niswitch/toc.inc b/docs/niswitch/toc.inc new file mode 100644 index 0000000000..300092a6ce --- /dev/null +++ b/docs/niswitch/toc.inc @@ -0,0 +1,12 @@ +API Reference +-------------- + +.. toctree:: + + class + rep_caps + enums + errors + examples + grpc_session_options + diff --git a/docs/nitclk/.readthedocs.yaml b/docs/nitclk/.readthedocs.yaml new file mode 100644 index 0000000000..a0bb8bf609 --- /dev/null +++ b/docs/nitclk/.readthedocs.yaml @@ -0,0 +1,51 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Why Use A Configuration File? +# https://docs.readthedocs.io/en/stable/config-file/index.html +# The main advantages of using a configuration file over the web interface are: +# * Settings are per version rather than per project. +# * Settings live in your VCS. +# * They enable reproducible build environments over time. +# * Some settings are only available using a configuration file + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + jobs: + # pre_build: + # # Check for broken external links + # - python -m sphinx -b linkcheck -D linkcheck_timeout=1 docs/ _build/linkcheck + post_checkout: + # https://docs.readthedocs.io/en/stable/build-customization.html#cancel-build-based-on-a-condition + # Build-cancellation rules are recommended for monorepos. + # Cancel building pull requests when there aren't changes in any of these paths: docs/_static/ docs/nitclk/. + # + # If there are no changes (git diff exits with 0) we force the command to return with 183. + # This is a special exit code on Read the Docs that will cancel the build immediately. + - | + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/master -- docs/_static/ docs/nitclk/; + then + exit 183; + fi + +# Have Read the Docs build documentation with Sphinx +sphinx: + builder: html + configuration: docs/nitclk/conf.py + +# If using Sphinx, optionally build your docs in additional formats such as PDF +formats: + - epub + - pdf + +# Declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/nitclk/about_nitclk.inc b/docs/nitclk/about_nitclk.inc new file mode 100644 index 0000000000..76f4f2fd6f --- /dev/null +++ b/docs/nitclk/about_nitclk.inc @@ -0,0 +1,15 @@ +.. _about-section: + +About +===== + +The **nitclk** module provides a Python API for NI-TClk. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nitclk** supports all the Operating Systems supported by NI-TClk. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nitclk**. + diff --git a/docs/nitclk/class.rst b/docs/nitclk/class.rst new file mode 100644 index 0000000000..dbe8aa3ba1 --- /dev/null +++ b/docs/nitclk/class.rst @@ -0,0 +1,756 @@ + +.. py:module:: nitclk + +Public API +========== + +The `nitclk` module provides synchronization facilites to allow multiple instruments to simultaneously +respond to triggers, to align Sample Clocks on multiple instruments, and/or to simultaneously start multiple +instruments. + +It consists of a set of functions that act on a list of :py:class:`SessionReference` objects or instrument `Session` +objects for drivers that support NI-TClk. :py:class:`SessionReference` also has a set of properties for configuration. + +.. code:: python + + with niscope.Session('dev1') as scope1, niscope.Session('dev2') as scope2: + nitclk.configure_for_homogeneous_triggers([scope1, scope2]) + nitclk.initiate([scope1, scope2]) + wfm1 = scope1.fetch() + wfm2 = scope2.fetch() + +configure_for_homogeneous_triggers +---------------------------------- + + .. py:currentmodule:: nitclk + + .. py:function:: configure_for_homogeneous_triggers(sessions) + + Configures the properties commonly required for the TClk synchronization + of device sessions with homogeneous triggers in a single PXI chassis or + a single PC. Use :py:func:`nitclk.configure_for_homogeneous_triggers` to configure + the properties for the reference clocks, start triggers, reference + triggers, script triggers, and pause triggers. If + :py:func:`nitclk.configure_for_homogeneous_triggers` cannot perform all the steps + appropriate for the given sessions, it returns an error. If an error is + returned, use the instrument driver methods and properties for signal + routing, along with the following NI-TClk properties: + :py:attr:`nitclk.SessionReference.start_trigger_master_session` + :py:attr:`nitclk.SessionReference.ref_trigger_master_session` + :py:attr:`nitclk.SessionReference.pause_trigger_master_session` + :py:func:`nitclk.configure_for_homogeneous_triggers` affects the following clocks and + triggers: - Reference clocks - Start triggers - Reference triggers - + Script triggers - Pause triggers Reference Clocks + :py:func:`nitclk.configure_for_homogeneous_triggers` configures the reference clocks + if they are needed. Specifically, if the internal sample clocks or + internal sample clock timebases are used, and the reference clock source + is not configured--or is set to None (no trigger + configured)--:py:func:`nitclk.configure_for_homogeneous_triggers` configures the + following: PXI--The reference clock source on all devices is set to be + the 10 MHz PXI backplane clock (PXI_CLK10). PCI--One of the devices + exports its 10 MHz onboard reference clock to RTSI 7. The reference + clock source on all devices is set to be RTSI 7. Note: If the reference + clock source is set to a value other than None, + :py:func:`nitclk.configure_for_homogeneous_triggers` cannot configure the reference + clock source. Start Triggers If the start trigger is set to None (no + trigger configured) for all sessions, the sessions are configured to + share the start trigger. The start trigger is shared by: - Implicitly + exporting the start trigger from one session - Configuring the other + sessions for digital edge start triggers with sources corresponding to + the exported start trigger - Setting + :py:attr:`nitclk.SessionReference.start_trigger_master_session` to the session that is + exporting the trigger for all sessions If the start triggers are None + for all except one session, :py:func:`nitclk.configure_for_homogeneous_triggers` + configures the sessions to share the start trigger from the one excepted + session. The start trigger is shared by: - Implicitly exporting start + trigger from the session with the start trigger that is not None - + Configuring the other sessions for digital-edge start triggers with + sources corresponding to the exported start trigger - Setting + :py:attr:`nitclk.SessionReference.start_trigger_master_session` to the session that is + exporting the trigger for all sessions If start triggers are configured + for all sessions, :py:func:`nitclk.configure_for_homogeneous_triggers` does not + affect the start triggers. Start triggers are considered to be + configured for all sessions if either of the following conditions is + true: - No session has a start trigger that is None - One session has a + start trigger that is None, and all other sessions have start triggers + other than None. The one session with the None trigger must have + :py:attr:`nitclk.SessionReference.start_trigger_master_session` set to itself, indicating + that the session itself is the start trigger master Reference Triggers + :py:func:`nitclk.configure_for_homogeneous_triggers` configures sessions that support + reference triggers to share the reference triggers if the reference + triggers are None (no trigger configured) for all except one session. + The reference triggers are shared by: - Implicitly exporting the + reference trigger from the session whose reference trigger is not None - + Configuring the other sessions that support the reference trigger for + digital-edge reference triggers with sources corresponding to the + exported reference trigger - Setting + :py:attr:`nitclk.SessionReference.ref_trigger_master_session` to the session that is + exporting the trigger for all sessions that support reference trigger If + the reference triggers are configured for all sessions that support + reference triggers, :py:func:`nitclk.configure_for_homogeneous_triggers` does not + affect the reference triggers. Reference triggers are considered to be + configured for all sessions if either one or the other of the following + conditions is true: - No session has a reference trigger that is None - + One session has a reference trigger that is None, and all other sessions + have reference triggers other than None. The one session with the None + trigger must have :py:attr:`nitclk.SessionReference.ref_trigger_master_session` set to + itself, indicating that the session itself is the reference trigger + master Reference Trigger Holdoffs Acquisition sessions may be configured + with the reference trigger. For acquisition sessions, when the reference + trigger is shared, :py:func:`nitclk.configure_for_homogeneous_triggers` configures + the holdoff properties (which are instrument driver specific) on the + reference trigger master session so that the session does not recognize + the reference trigger before the other sessions are ready. This + condition is only relevant when the sample clock rates, sample clock + timebase rates, sample counts, holdoffs, and/or any delays for the + acquisitions are different. When the sample clock rates, sample clock + timebase rates, and/or the sample counts are different in acquisition + sessions sharing the reference trigger, you should also set the holdoff + properties for the reference trigger master using the instrument driver. + Pause Triggers + :py:func:`nitclk.configure_for_homogeneous_triggers` configures generation sessions + that support pause triggers to share them, if the pause triggers are + None (no trigger configured) for all except one session. The pause + triggers are shared by: - Implicitly exporting the pause trigger from + the session whose script trigger is not None - Configuring the other + sessions that support the pause trigger for digital-edge pause triggers + with sources corresponding to the exported pause trigger - Setting + :py:attr:`nitclk.SessionReference.pause_trigger_master_session` to the session that is + exporting the trigger for all sessions that support script triggers If + the pause triggers are configured for all generation sessions that + support pause triggers, :py:func:`nitclk.configure_for_homogeneous_triggers` does not + affect pause triggers. Pause triggers are considered to be configured + for all sessions if either one or the other of the following conditions + is true: - No session has a pause trigger that is None - One session has + a pause trigger that is None and all other sessions have pause triggers + other than None. The one session with the None trigger must have + :py:attr:`nitclk.SessionReference.pause_trigger_master_session` set to itself, indicating + that the session itself is the pause trigger master Note: TClk + synchronization is not supported for pause triggers on acquisition + sessions. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + +finish_sync_pulse_sender_synchronize +------------------------------------ + + .. py:currentmodule:: nitclk + + .. py:function:: finish_sync_pulse_sender_synchronize(sessions, min_time=hightime.timedelta(seconds=0.0)) + + Finishes synchronizing the Sync Pulse Sender. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + :param min_time: + + + Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + + + + :type min_time: hightime.timedelta, datetime.timedelta, or float in seconds + +initiate +-------- + + .. py:currentmodule:: nitclk + + .. py:function:: initiate(sessions) + + Initiates the acquisition or generation sessions specified, taking into + consideration any special requirements needed for synchronization. For + example, the session exporting the TClk-synchronized start trigger is + not initiated until after :py:func:`nitclk.initiate` initiates all the sessions + that import the TClk-synchronized start trigger. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + +is_done +------- + + .. py:currentmodule:: nitclk + + .. py:function:: is_done(sessions) + + Monitors the progress of the acquisitions and/or generations + corresponding to sessions. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + + :rtype: bool + :return: + + + Indicates that the operation is done. The operation is done when each + session has completed without any errors or when any one of the sessions + reports an error. + + + + + +setup_for_sync_pulse_sender_synchronize +--------------------------------------- + + .. py:currentmodule:: nitclk + + .. py:function:: setup_for_sync_pulse_sender_synchronize(sessions, min_time=hightime.timedelta(seconds=0.0)) + + Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + :param min_time: + + + Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + + + + :type min_time: hightime.timedelta, datetime.timedelta, or float in seconds + +synchronize +----------- + + .. py:currentmodule:: nitclk + + .. py:function:: synchronize(sessions, min_tclk_period=hightime.timedelta(seconds=0.0)) + + Synchronizes the TClk signals on the given sessions. After + :py:func:`nitclk.synchronize` executes, TClk signals from all sessions are + synchronized. Note: Before using this NI-TClk method, verify that your + system is configured as specified in the PXI Trigger Lines and RTSI + Lines topic of the NI-TClk Synchronization Help. You can locate this + help file at Start>>Programs>>National Instruments>>NI-TClk. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + :param min_tclk_period: + + + Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + + + + :type min_tclk_period: hightime.timedelta, datetime.timedelta, or float in seconds + +synchronize_to_sync_pulse_sender +-------------------------------- + + .. py:currentmodule:: nitclk + + .. py:function:: synchronize_to_sync_pulse_sender(sessions, min_time=hightime.timedelta(seconds=0.0)) + + Synchronizes the other devices to the Sync Pulse Sender. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + :param min_time: + + + Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + + + + :type min_time: hightime.timedelta, datetime.timedelta, or float in seconds + +wait_until_done +--------------- + + .. py:currentmodule:: nitclk + + .. py:function:: wait_until_done(sessions, timeout=hightime.timedelta(seconds=0.0)) + + Call this method to pause execution of your program until the + acquisitions and/or generations corresponding to sessions are done or + until the method returns a timeout error. :py:func:`nitclk.wait_until_done` is a + blocking method that periodically checks the operation status. It + returns control to the calling program if the operation completes + successfully or an error occurs (including a timeout error). This + method is most useful for finite data operations that you expect to + complete within a certain time. + + + + + + :param sessions: + + + sessions is an array of sessions that are being synchronized. + + + + + :type sessions: list of instrument-specific sessions or nitclk.SessionReference instances + :param timeout: + + + The amount of time in seconds that :py:func:`nitclk.wait_until_done` waits for the + sessions to complete. If timeout is exceeded, :py:func:`nitclk.wait_until_done` + returns an error. + + + + + :type timeout: hightime.timedelta, datetime.timedelta, or float in seconds + + +SessionReference +================ +.. py:currentmodule:: nitclk + +.. py:class:: SessionReference(session_number) + + Helper class that contains all NI-TClk properties. This class is what is returned by + any nimi-python Session class tclk attribute when the driver supports NI-TClk + + .. code:: python + + with niscope.Session('dev1') as session: + session.tclk.sample_clock_delay = .42 + + ..note:: Constructing this class is an advanced use case and should not be needed in most circumstances. + + :param session_number: + nitclk session + :type session_number: int, nimi-python Session class, SessionReference + + +exported_sync_pulse_output_terminal +----------------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: exported_sync_pulse_output_terminal + + Specifies the destination of the Sync Pulse. This property is most often used when synchronizing a multichassis system. + Values + Empty string. Empty string is a valid value, indicating that the signal is not exported. + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value is empty string + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | str | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Export Sync Pulse Output Terminal** + - C Attribute: **NITCLK_ATTR_EXPORTED_SYNC_PULSE_OUTPUT_TERMINAL** + +exported_tclk_output_terminal +----------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: exported_tclk_output_terminal + + Specifies the destination of the device's TClk signal. + Values + Empty string. Empty string is a valid value, indicating that the signal is not exported. + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value is empty string + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | str | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Output Terminal** + - C Attribute: **NITCLK_ATTR_EXPORTED_TCLK_OUTPUT_TERMINAL** + +pause_trigger_master_session +---------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: pause_trigger_master_session + + Specifies the pause trigger master session. + For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. + + The following table lists the characteristics of this property. + + +----------------+-----------------------------------------------------------------------+ + | Characteristic | Value | + +================+=======================================================================+ + | Datatype | instrument-specific session or an instance of nitclk.SessionReference | + +----------------+-----------------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-----------------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Pause Trigger Master Session** + - C Attribute: **NITCLK_ATTR_PAUSE_TRIGGER_MASTER_SESSION** + +ref_trigger_master_session +-------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: ref_trigger_master_session + + Specifies the reference trigger master session. + For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. + + The following table lists the characteristics of this property. + + +----------------+-----------------------------------------------------------------------+ + | Characteristic | Value | + +================+=======================================================================+ + | Datatype | instrument-specific session or an instance of nitclk.SessionReference | + +----------------+-----------------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-----------------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Reference Trigger Master Session** + - C Attribute: **NITCLK_ATTR_REF_TRIGGER_MASTER_SESSION** + +sample_clock_delay +------------------ + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: sample_clock_delay + + Specifies the sample clock delay. + Specifies the delay, in seconds, to apply to the session sample clock relative to the other synchronized sessions. During synchronization, NI-TClk aligns the sample clocks on the synchronized devices. If you want to delay the sample clocks, set this property before calling :py:func:`nitclk.synchronize`. + not supported for acquisition sessions. + Values - Between minus one and plus one period of the sample clock. + One sample clock period is equal to (1/sample clock rate). For example, for a session with sample rate of 100 MS/s, you can specify sample clock delays between -10.0 ns and +10.0 ns. + Default Value is 0 + + + + .. note:: Sample clock delay is supported for generation sessions only; it is + + The following table lists the characteristics of this property. + + +----------------+-------------------------------------------------------------+ + | Characteristic | Value | + +================+=============================================================+ + | Datatype | hightime.timedelta, datetime.timedelta, or float in seconds | + +----------------+-------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Sample Clock Delay** + - C Attribute: **NITCLK_ATTR_SAMPLE_CLOCK_DELAY** + +sequencer_flag_master_session +----------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: sequencer_flag_master_session + + Specifies the sequencer flag master session. + For external triggers, the session that originally receives the trigger. + For None (no trigger configured) or software triggers, the session that + originally generates the trigger. + + The following table lists the characteristics of this property. + + +----------------+-----------------------------------------------------------------------+ + | Characteristic | Value | + +================+=======================================================================+ + | Datatype | instrument-specific session or an instance of nitclk.SessionReference | + +----------------+-----------------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-----------------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Sequencer Flag Master Session** + - C Attribute: **NITCLK_ATTR_SEQUENCER_FLAG_MASTER_SESSION** + +start_trigger_master_session +---------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: start_trigger_master_session + + Specifies the start trigger master session. + For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. + + The following table lists the characteristics of this property. + + +----------------+-----------------------------------------------------------------------+ + | Characteristic | Value | + +================+=======================================================================+ + | Datatype | instrument-specific session or an instance of nitclk.SessionReference | + +----------------+-----------------------------------------------------------------------+ + | Permissions | read-write | + +----------------+-----------------------------------------------------------------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Start Trigger Master Session** + - C Attribute: **NITCLK_ATTR_START_TRIGGER_MASTER_SESSION** + +sync_pulse_clock_source +----------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: sync_pulse_clock_source + + Specifies the Sync Pulse Clock source. This property is typically used to synchronize PCI devices when you want to control RTSI 7 yourself. Make sure that a 10 MHz clock is driven onto RTSI 7. + Values + PCI Devices - 'RTSI_7' and 'None' + PXI Devices - 'PXI_CLK10' and 'None' + Default Value - 'None' directs :py:func:`nitclk.synchronize` to create the necessary routes. For PCI, one of the synchronized devices drives a 10 MHz clock on RTSI 7 unless that line is already being driven. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | str | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Sync Pulse Clock Source** + - C Attribute: **NITCLK_ATTR_SYNC_PULSE_CLOCK_SOURCE** + +sync_pulse_sender_sync_pulse_source +----------------------------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: sync_pulse_sender_sync_pulse_source + + Specifies the external sync pulse source for the Sync Pulse Sender. You can use this source to synchronize the Sync Pulse Sender with an external non-TClk source. + Values + Empty string. Empty string is a valid value, indicating that the signal is not exported. + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value is empty string + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | str | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **External Pulse Source** + - C Attribute: **NITCLK_ATTR_SYNC_PULSE_SENDER_SYNC_PULSE_SOURCE** + +sync_pulse_source +----------------- + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: sync_pulse_source + + Specifies the Sync Pulse source. This property is most often used when synchronizing a multichassis system. + Values + Empty string + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value - Empty string. This default value directs :py:func:`nitclk.synchronize` to set this property when all the synchronized devices are in one PXI chassis. To synchronize a multichassis system, you must set this property before calling :py:func:`nitclk.synchronize`. + + The following table lists the characteristics of this property. + + +----------------+------------+ + | Characteristic | Value | + +================+============+ + | Datatype | str | + +----------------+------------+ + | Permissions | read-write | + +----------------+------------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Sync Pulse Source** + - C Attribute: **NITCLK_ATTR_SYNC_PULSE_SOURCE** + +tclk_actual_period +------------------ + + .. py:currentmodule:: nitclk.SessionReference + + .. py:attribute:: tclk_actual_period + + Indicates the computed TClk period that will be used during the acquisition. + + The following table lists the characteristics of this property. + + +----------------+-----------+ + | Characteristic | Value | + +================+===========+ + | Datatype | float | + +----------------+-----------+ + | Permissions | read only | + +----------------+-----------+ + + .. tip:: + This property corresponds to the following LabVIEW Property or C Attribute: + + - LabVIEW Property: **Period** + - C Attribute: **NITCLK_ATTR_TCLK_ACTUAL_PERIOD** + + +.. contents:: nitclk diff --git a/docs/nitclk/conf.py b/docs/nitclk/conf.py new file mode 100644 index 0000000000..80ad918321 --- /dev/null +++ b/docs/nitclk/conf.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# +# NI-TClk Python API documentation build configuration file, created by +# sphinx-quickstart on Fri Jul 14 13:04:36 2017. +# +# This file is execfile()d with the current directory set to its +# containing dir. +# +# Note that not all possible configuration values are present in this +# autogenerated file. +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +sys.path.insert(0, os.path.abspath('../generated')) + + +# -- General configuration ------------------------------------------------ + +# If your documentation needs a minimal Sphinx version, state it here. +# +# needs_sphinx = '1.0' + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = ['sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', + 'sphinx.ext.todo', + 'sphinx.ext.coverage', + 'sphinx.ext.mathjax', + 'sphinx.ext.ifconfig', + 'sphinx.ext.viewcode', + 'sphinx.ext.githubpages'] + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# source_suffix = ['.rst', '.md'] +source_suffix = '.rst' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = 'NI-TClk Python API' +copyright = '2019-2026, National Instruments Corporation' +author = 'NI' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The full version, including alpha/beta/rc tags. +release = '1.5.1.dev0' +# The short X.Y version. +version = release[:3] + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = 'en' + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This patterns also effect to html_static_path and html_extra_path +exclude_patterns = [] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +# -- Options for HTML output ---------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = 'sphinx_rtd_theme' + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +html_theme_options = { + 'navigation_depth': -1, +} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['../_static'] + +# Fix wide tables of RTD per https://github.com/rtfd/sphinx_rtd_theme/issues/117#issuecomment-41571653 +def setup(app): + app.add_css_file('theme_overrides.css') + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# This is required for the alabaster theme +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars +html_sidebars = { + '**': [ + 'about.html', + 'navigation.html', + 'relations.html', # needs 'show_related': True theme option to display + 'searchbox.html', + 'donate.html', + ] +} + + +# -- Options for HTMLHelp output ------------------------------------------ + +# Output file base name for HTML help builder. +htmlhelp_basename = 'NIModularInstrumentsPythonAPIdoc' + + +# -- Options for LaTeX output --------------------------------------------- + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, 'NITClkPythonAPI.tex', 'NI-TClk Python API Documentation', + 'NI', 'manual'), +] + + +# -- Options for manual page output --------------------------------------- + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [ + (master_doc, 'nitclkpythonapi', 'NI-TClk Python API Documentation', + [author], 1) +] + + +# -- Options for Texinfo output ------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + (master_doc, 'NITClkPythonAPI', 'NI-TClk Python API Documentation', + author, 'NITClkPythonAPI', 'One line description of project.', + 'Miscellaneous'), +] + +# Example configuration for intersphinx: refer to the Python standard library. +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + 'nidcpower': ('https://nidcpower.readthedocs.io/en/latest/', None), + 'nidigital': ('https://nidigital.readthedocs.io/en/latest/', None), + 'nidmm': ('https://nidmm.readthedocs.io/en/latest/', None), + 'nifgen': ('https://nifgen.readthedocs.io/en/latest/', None), + 'nimodinst': ('https://nimodinst.readthedocs.io/en/latest/', None), + 'nirfsa': ('https://nirfsa.readthedocs.io/en/latest/', None), + 'nirfsg': ('https://nirfsg.readthedocs.io/en/latest/', None), + 'niscope': ('https://niscope.readthedocs.io/en/latest/', None), + 'nise': ('https://nise.readthedocs.io/en/latest/', None), + 'niswitch': ('https://niswitch.readthedocs.io/en/latest/', None), + # Read the Docs project slug differs from the module name. + 'nitlsconfig': ('https://nitlsconfig-python.readthedocs.io/en/latest/', None), +} diff --git a/docs/nitclk/errors.rst b/docs/nitclk/errors.rst new file mode 100644 index 0000000000..ded6c86912 --- /dev/null +++ b/docs/nitclk/errors.rst @@ -0,0 +1,70 @@ +Exceptions and Warnings +======================= + +Error +----- + + .. py:currentmodule:: nitclk.errors + + .. exception:: Error + + Base exception type that all NI-TClk exceptions derive from + + +DriverError +----------- + + .. py:currentmodule:: nitclk.errors + + .. exception:: DriverError + + An error originating from the NI-TClk driver + + +UnsupportedConfigurationError +----------------------------- + + .. py:currentmodule:: nitclk.errors + + .. exception:: UnsupportedConfigurationError + + An error due to using this module in an usupported platform. + +DriverNotInstalledError +----------------------- + + .. py:currentmodule:: nitclk.errors + + .. exception:: DriverNotInstalledError + + An error due to using this module without the driver runtime installed. + +DriverTooOldError +----------------- + + .. py:currentmodule:: nitclk.errors + + .. exception:: DriverTooOldError + + An error due to using this module with an older version of the NI-TClk driver runtime. + +DriverTooNewError +----------------- + + .. py:currentmodule:: nitclk.errors + + .. exception:: DriverTooNewError + + An error due to the NI-TClk driver runtime being too new for this module. + +DriverWarning +------------- + + .. py:currentmodule:: nitclk.errors + + .. exception:: DriverWarning + + A warning originating from the NI-TClk driver + + + diff --git a/docs/nitclk/examples.rst b/docs/nitclk/examples.rst new file mode 100644 index 0000000000..34e507997b --- /dev/null +++ b/docs/nitclk/examples.rst @@ -0,0 +1,14 @@ +Examples +======== + +`You can download all nitclk examples for latest version here `_ + +nitclk_niscope_synchronize_with_trigger.py +------------------------------------------ + +.. literalinclude:: ../../src/nitclk/examples/nitclk_niscope_synchronize_with_trigger.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nitclk_niscope_synchronize_with_trigger.py) `_ + diff --git a/docs/nitclk/index.rst b/docs/nitclk/index.rst new file mode 100644 index 0000000000..508cec06b4 --- /dev/null +++ b/docs/nitclk/index.rst @@ -0,0 +1,31 @@ + +NI-TClk Python API Documentation +================================ + +.. include:: about_nitclk.inc + +.. include:: ../_static/contributing.inc + +.. include:: ../_static/support.inc + +.. toctree:: + :maxdepth: 3 + :caption: Documentation + + nitclk + +Additional Documentation +------------------------ + +Refer to your driver documentation for device-specific information and detailed API documentation. + +Refer to the `nimi-python Read the Docs project `_ for documentation of versions 1.4.4 of the module or earlier. + +.. include:: ../_static/license.inc + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/nitclk/installation.inc b/docs/nitclk/installation.inc new file mode 100644 index 0000000000..c4b4404876 --- /dev/null +++ b/docs/nitclk/installation.inc @@ -0,0 +1,13 @@ + +.. _nitclk_installation-section: + +Installation +------------ + +As a prerequisite to using the **nitclk** module, you must install the NI-TClk runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-TClk**) can be installed with `pip `_:: + + $ python -m pip install nitclk + + diff --git a/docs/nitclk/nitclk.rst b/docs/nitclk/nitclk.rst new file mode 100644 index 0000000000..24aecf34cb --- /dev/null +++ b/docs/nitclk/nitclk.rst @@ -0,0 +1,9 @@ +nitclk module +============= + +.. include:: installation.inc + +.. include:: ../_static/nitclk_usage.inc + +.. include:: toc.inc + diff --git a/docs/nitclk/status.inc b/docs/nitclk/status.inc new file mode 100644 index 0000000000..ff56fc2c26 --- /dev/null +++ b/docs/nitclk/status.inc @@ -0,0 +1,46 @@ + +NI-TClk Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-TClk (nitclk) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nitclkLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nitclkPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nitclkDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nitclkOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nitclkOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nitclkLatestVersion| image:: http://img.shields.io/pypi/v/nitclk.svg + :alt: Latest NI-TClk Version + :target: http://pypi.python.org/pypi/nitclk + + +.. |nitclkPythonVersion| image:: http://img.shields.io/pypi/pyversions/nitclk.svg + :alt: NI-TClk supported Python versions + :target: http://pypi.python.org/pypi/nitclk + + +.. |nitclkDocs| image:: https://readthedocs.org/projects/nitclk/badge/?version=latest + :alt: NI-TClk Python API Documentation Status + :target: https://nitclk.readthedocs.io/en/latest + + +.. |nitclkOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nitclk.svg + :alt: Open Issues + Pull Requests for NI-TClk + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anitclk + + +.. |nitclkOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nitclk.svg + :alt: Pull Requests for NI-TClk + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anitclk + + diff --git a/docs/nitclk/toc.inc b/docs/nitclk/toc.inc new file mode 100644 index 0000000000..f4c0c73875 --- /dev/null +++ b/docs/nitclk/toc.inc @@ -0,0 +1,9 @@ +API Reference +-------------- + +.. toctree:: + + class + errors + examples + diff --git a/generated/nidcpower/README.rst b/generated/nidcpower/README.rst new file mode 100644 index 0000000000..fcc2373164 --- /dev/null +++ b/generated/nidcpower/README.rst @@ -0,0 +1,192 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nidcpower** module provides a Python API for NI-DCPower. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nidcpower** supports all the Operating Systems supported by NI-DCPower. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nidcpower**. + + +NI-DCPower Python API Status +---------------------------- + ++-------------------------------+--------------------------+ +| NI-DCPower (nidcpower) | | ++===============================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+--------------------------+ +| PyPI Version | |nidcpowerLatestVersion| | ++-------------------------------+--------------------------+ +| Supported Python Version | |nidcpowerPythonVersion| | ++-------------------------------+--------------------------+ +| Documentation | |nidcpowerDocs| | ++-------------------------------+--------------------------+ +| Open Issues | |nidcpowerOpenIssues| | ++-------------------------------+--------------------------+ +| Open Pull Requests | |nidcpowerOpenPRs| | ++-------------------------------+--------------------------+ + + +.. |nidcpowerLatestVersion| image:: http://img.shields.io/pypi/v/nidcpower.svg + :alt: Latest NI-DCPower Version + :target: http://pypi.python.org/pypi/nidcpower + + +.. |nidcpowerPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidcpower.svg + :alt: NI-DCPower supported Python versions + :target: http://pypi.python.org/pypi/nidcpower + + +.. |nidcpowerDocs| image:: https://readthedocs.org/projects/nidcpower/badge/?version=latest + :alt: NI-DCPower Python API Documentation Status + :target: https://nidcpower.readthedocs.io/en/latest + + +.. |nidcpowerOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidcpower.svg + :alt: Open Issues + Pull Requests for NI-DCPower + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidcpower + + +.. |nidcpowerOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidcpower.svg + :alt: Pull Requests for NI-DCPower + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidcpower + + + +.. _nidcpower_installation-section: + +Installation +------------ + +As a prerequisite to using the **nidcpower** module, you must install the NI-DCPower runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-DCPower**) can be installed with `pip `_:: + + $ python -m pip install nidcpower + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nidcpower** module to open a session to a Source Measure Unit and measure voltage and current. + +.. code-block:: python + + import nidcpower + # Configure the session. + + with nidcpower.Session(resource_name='PXI1Slot2/0') as session: + session.measure_record_length = 20 + session.measure_record_length_is_finite = True + session.measure_when = nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE + session.voltage_level = 5.0 + + session.commit() + print('Effective measurement rate: {} S/s'.format(session.measure_record_delta_time / 1)) + + samples_acquired = 0 + print('Channel Num Voltage Current In Compliance') + row_format = '{0:15} {1:3d} {2:8.6f} {3:8.6f} {4}' + with session.initiate(): + channel_indices = '0-{}'.format(session.channel_count - 1) + channels = session.get_channel_names(channel_indices) + for i, channel_name in enumerate(channels): + samples_acquired = 0 + while samples_acquired < 20: + measurements = session.channels[channel_name].fetch_multiple(count=session.fetch_backlog) + samples_acquired += len(measurements) + for i in range(len(measurements)): + print(row_format.format(channel_name, i, measurements[i].voltage, measurements[i].current, measurements[i].in_compliance)) + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nidcpower/nidcpower/VERSION b/generated/nidcpower/nidcpower/VERSION new file mode 100644 index 0000000000..f26f5a3d38 --- /dev/null +++ b/generated/nidcpower/nidcpower/VERSION @@ -0,0 +1,2 @@ +1.6.1.dev0 + diff --git a/generated/nidcpower/nidcpower/__init__.py b/generated/nidcpower/nidcpower/__init__.py new file mode 100644 index 0000000000..3236b9a78c --- /dev/null +++ b/generated/nidcpower/nidcpower/__init__.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.6.1.dev0' + +from nidcpower.enums import * # noqa: F403,F401,H303 +from nidcpower.errors import DriverWarning # noqa: F401 +from nidcpower.errors import Error # noqa: F401 +from nidcpower.grpc_session_options import * # noqa: F403,F401,H303 +from nidcpower.session import Session # noqa: F401 + +from nidcpower.lcr_measurement import LCRMeasurement # noqa: F401 + +from nidcpower.lcr_measurement import struct_NILCRMeasurement # noqa: F401 + +from nidcpower.lcr_load_compensation_spot import LCRLoadCompensationSpot # noqa: F401 + +from nidcpower.lcr_load_compensation_spot import struct_NILCRLoadCompensationSpot # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-DCPower\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-DCPower" + info['driver']['version'] = driver_version + info['module']['name'] = 'nidcpower' + info['module']['version'] = "1.6.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nidcpower/nidcpower/_attributes.py b/generated/nidcpower/nidcpower/_attributes.py new file mode 100644 index 0000000000..d65c183e7d --- /dev/null +++ b/generated/nidcpower/nidcpower/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nidcpower._converters as _converters +import nidcpower.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nidcpower Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nidcpower.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nidcpower/nidcpower/_converters.py b/generated/nidcpower/nidcpower/_converters.py new file mode 100644 index 0000000000..3c80fcb7cc --- /dev/null +++ b/generated/nidcpower/nidcpower/_converters.py @@ -0,0 +1,394 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nidcpower._visatype as _visatype +import nidcpower.enums as enums +import nidcpower.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + +def convert_from_isolation_state_enum(value): + return { + enums._IsolationState.ISOLATED: True, + enums._IsolationState.NON_ISOLATED: False, + }[value] + + +def convert_to_isolation_state_enum(value): + return { + True: enums._IsolationState.ISOLATED, + False: enums._IsolationState.NON_ISOLATED, + }[value] + + +def convert_from_lcr_impedance_auto_range_enum(value): + return { + enums._LCRImpedanceAutoRange.OFF: False, + enums._LCRImpedanceAutoRange.ON: True, + }[value] + + +def convert_to_lcr_impedance_auto_range_enum(value): + return { + False: enums._LCRImpedanceAutoRange.OFF, + True: enums._LCRImpedanceAutoRange.ON, + }[value] + + diff --git a/generated/nidcpower/nidcpower/_grpc_stub_interpreter.py b/generated/nidcpower/nidcpower/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..353b856a1d --- /dev/null +++ b/generated/nidcpower/nidcpower/_grpc_stub_interpreter.py @@ -0,0 +1,531 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nidcpower_pb2 as grpc_types +from . import nidcpower_pb2_grpc as nidcpower_grpc + +from . import lcr_measurement as lcr_measurement # noqa: F401 + +from . import lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nidcpower_grpc.NiDCPowerStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self, channel_name): # noqa: N802 + self._invoke( + self._client.AbortWithChannels, + grpc_types.AbortWithChannelsRequest(vi=self._vi, channel_name=channel_name), + ) + + def self_cal(self, channel_name): # noqa: N802 + self._invoke( + self._client.CalSelfCalibrate, + grpc_types.CalSelfCalibrateRequest(vi=self._vi, channel_name=channel_name), + ) + + def clear_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 + self._invoke( + self._client.ClearLatchedOutputCutoffState, + grpc_types.ClearLatchedOutputCutoffStateRequest(vi=self._vi, channel_name=channel_name, output_cutoff_reason_raw=output_cutoff_reason.value), + ) + + def commit(self, channel_name): # noqa: N802 + self._invoke( + self._client.CommitWithChannels, + grpc_types.CommitWithChannelsRequest(vi=self._vi, channel_name=channel_name), + ) + + def configure_aperture_time(self, channel_name, aperture_time, units): # noqa: N802 + self._invoke( + self._client.ConfigureApertureTime, + grpc_types.ConfigureApertureTimeRequest(vi=self._vi, channel_name=channel_name, aperture_time=aperture_time, units_raw=units.value), + ) + + def configure_lcr_compensation(self, channel_name, compensation_data): # noqa: N802 + raise NotImplementedError('configure_lcr_compensation is not supported over gRPC') + + def configure_lcr_custom_cable_compensation(self, channel_name, custom_cable_compensation_data): # noqa: N802 + self._invoke( + self._client.ConfigureLCRCustomCableCompensation, + grpc_types.ConfigureLCRCustomCableCompensationRequest(vi=self._vi, channel_name=channel_name, custom_cable_compensation_data=custom_cable_compensation_data), + ) + + def create_advanced_sequence_commit_step(self, channel_name, set_as_active_step): # noqa: N802 + self._invoke( + self._client.CreateAdvancedSequenceCommitStepWithChannels, + grpc_types.CreateAdvancedSequenceCommitStepWithChannelsRequest(vi=self._vi, channel_name=channel_name, set_as_active_step=set_as_active_step), + ) + + def create_advanced_sequence_step(self, channel_name, set_as_active_step): # noqa: N802 + self._invoke( + self._client.CreateAdvancedSequenceStepWithChannels, + grpc_types.CreateAdvancedSequenceStepWithChannelsRequest(vi=self._vi, channel_name=channel_name, set_as_active_step=set_as_active_step), + ) + + def create_advanced_sequence_with_channels(self, channel_name, sequence_name, attribute_ids, set_as_active_sequence): # noqa: N802 + self._invoke( + self._client.CreateAdvancedSequenceWithChannels, + grpc_types.CreateAdvancedSequenceWithChannelsRequest(vi=self._vi, channel_name=channel_name, sequence_name=sequence_name, attribute_ids=attribute_ids, set_as_active_sequence=set_as_active_sequence), + ) + + def delete_advanced_sequence(self, channel_name, sequence_name): # noqa: N802 + self._invoke( + self._client.DeleteAdvancedSequenceWithChannels, + grpc_types.DeleteAdvancedSequenceWithChannelsRequest(vi=self._vi, channel_name=channel_name, sequence_name=sequence_name), + ) + + def disable(self): # noqa: N802 + self._invoke( + self._client.Disable, + grpc_types.DisableRequest(vi=self._vi), + ) + + def export_attribute_configuration_buffer(self): # noqa: N802 + response = self._invoke( + self._client.ExportAttributeConfigurationBuffer, + grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), + ) + return response.configuration + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ExportAttributeConfigurationFile, + grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def fancy_initialize(self, resource_name, channels, reset, option_string, independent_channels): # noqa: N802 + response = self._invoke( + self._client.FancyInitialize, + grpc_types.FancyInitializeRequest(resource_name=resource_name, channels=channels, reset=reset, option_string=option_string, independent_channels=independent_channels), + ) + return response.vi + + def fetch_multiple(self, channel_name, timeout, count): # noqa: N802 + response = self._invoke( + self._client.FetchMultiple, + grpc_types.FetchMultipleRequest(vi=self._vi, channel_name=channel_name, timeout=timeout, count=count), + ) + return response.voltage_measurements, response.current_measurements, response.in_compliance + + def fetch_multiple_lcr(self, channel_name, timeout, count): # noqa: N802 + response = self._invoke( + self._client.FetchMultipleLCR, + grpc_types.FetchMultipleLCRRequest(vi=self._vi, channel_name=channel_name, timeout=timeout, count=count), + ) + return [lcr_measurement.LCRMeasurement(x) for x in response.measurements] + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt64, + grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_channel_name(self, index): # noqa: N802 + response = self._invoke( + self._client.GetChannelName, + grpc_types.GetChannelNameRequest(vi=self._vi, index=index), + ) + return response.channel_name + + def get_channel_names(self, indices): # noqa: N802 + response = self._invoke( + self._client.GetChannelNameFromString, + grpc_types.GetChannelNameFromStringRequest(vi=self._vi, index=indices), + ) + return response.channel_name + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.code, response.description + + def get_ext_cal_last_date_and_time(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalLastDateAndTime, + grpc_types.GetExtCalLastDateAndTimeRequest(vi=self._vi), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_ext_cal_last_temp(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalLastTemp, + grpc_types.GetExtCalLastTempRequest(vi=self._vi), + ) + return response.temperature + + def get_ext_cal_recommended_interval(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalRecommendedInterval, + grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), + ) + return response.months + + def get_lcr_compensation_data(self, channel_name): # noqa: N802 + raise NotImplementedError('get_lcr_compensation_data is not supported over gRPC') + + def get_lcr_compensation_last_date_and_time(self, channel_name, compensation_type): # noqa: N802 + response = self._invoke( + self._client.GetLCRCompensationLastDateAndTime, + grpc_types.GetLCRCompensationLastDateAndTimeRequest(vi=self._vi, channel_name=channel_name, compensation_type_raw=compensation_type.value), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_lcr_custom_cable_compensation_data(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.GetLCRCustomCableCompensationData, + grpc_types.GetLCRCustomCableCompensationDataRequest(vi=self._vi, channel_name=channel_name), + ) + return response.custom_cable_compensation_data + + def get_self_cal_last_date_and_time(self): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalLastDateAndTime, + grpc_types.GetSelfCalLastDateAndTimeRequest(vi=self._vi), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_self_cal_last_temp(self): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalLastTemp, + grpc_types.GetSelfCalLastTempRequest(vi=self._vi), + ) + return response.temperature + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationBuffer, + grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), + ) + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationFile, + grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def initialize_with_channels(self, resource_name, channels, reset, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitializeWithChannels, + grpc_types.InitializeWithChannelsRequest(resource_name=resource_name, channels=channels, reset=reset, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initialize_with_independent_channels(self, resource_name, reset, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitializeWithIndependentChannels, + grpc_types.InitializeWithIndependentChannelsRequest(resource_name=resource_name, reset=reset, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate_with_channels(self, channel_name): # noqa: N802 + self._invoke( + self._client.InitiateWithChannels, + grpc_types.InitiateWithChannelsRequest(vi=self._vi, channel_name=channel_name), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def measure(self, channel_name, measurement_type): # noqa: N802 + response = self._invoke( + self._client.Measure, + grpc_types.MeasureRequest(vi=self._vi, channel_name=channel_name, measurement_type_raw=measurement_type.value), + ) + return response.measurement + + def measure_multiple(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.MeasureMultiple, + grpc_types.MeasureMultipleRequest(vi=self._vi, channel_name=channel_name), + ) + return response.voltage_measurements, response.current_measurements + + def measure_multiple_lcr(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.MeasureMultipleLCR, + grpc_types.MeasureMultipleLCRRequest(vi=self._vi, channel_name=channel_name), + ) + return [lcr_measurement.LCRMeasurement(x) for x in response.measurements] + + def parse_channel_count(self, channels_string): # noqa: N802 + raise NotImplementedError('parse_channel_count is not supported over gRPC') + + def perform_lcr_load_compensation(self, channel_name, compensation_spots): # noqa: N802 + self._invoke( + self._client.PerformLCRLoadCompensation, + grpc_types.PerformLCRLoadCompensationRequest(vi=self._vi, channel_name=channel_name, compensation_spots=compensation_spots and [x._create_copy(grpc_types.NILCRLoadCompensationSpot) for x in compensation_spots]), + ) + + def perform_lcr_open_compensation(self, channel_name, additional_frequencies): # noqa: N802 + self._invoke( + self._client.PerformLCROpenCompensation, + grpc_types.PerformLCROpenCompensationRequest(vi=self._vi, channel_name=channel_name, additional_frequencies=additional_frequencies), + ) + + def perform_lcr_open_custom_cable_compensation(self, channel_name): # noqa: N802 + self._invoke( + self._client.PerformLCROpenCustomCableCompensation, + grpc_types.PerformLCROpenCustomCableCompensationRequest(vi=self._vi, channel_name=channel_name), + ) + + def perform_lcr_short_compensation(self, channel_name, additional_frequencies): # noqa: N802 + self._invoke( + self._client.PerformLCRShortCompensation, + grpc_types.PerformLCRShortCompensationRequest(vi=self._vi, channel_name=channel_name, additional_frequencies=additional_frequencies), + ) + + def perform_lcr_short_custom_cable_compensation(self, channel_name): # noqa: N802 + self._invoke( + self._client.PerformLCRShortCustomCableCompensation, + grpc_types.PerformLCRShortCustomCableCompensationRequest(vi=self._vi, channel_name=channel_name), + ) + + def query_in_compliance(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.QueryInCompliance, + grpc_types.QueryInComplianceRequest(vi=self._vi, channel_name=channel_name), + ) + return response.in_compliance + + def query_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 + response = self._invoke( + self._client.QueryLatchedOutputCutoffState, + grpc_types.QueryLatchedOutputCutoffStateRequest(vi=self._vi, channel_name=channel_name, output_cutoff_reason_raw=output_cutoff_reason.value), + ) + return response.output_cutoff_state + + def query_max_current_limit(self, channel_name, voltage_level): # noqa: N802 + response = self._invoke( + self._client.QueryMaxCurrentLimit, + grpc_types.QueryMaxCurrentLimitRequest(vi=self._vi, channel_name=channel_name, voltage_level=voltage_level), + ) + return response.max_current_limit + + def query_max_voltage_level(self, channel_name, current_limit): # noqa: N802 + response = self._invoke( + self._client.QueryMaxVoltageLevel, + grpc_types.QueryMaxVoltageLevelRequest(vi=self._vi, channel_name=channel_name, current_limit=current_limit), + ) + return response.max_voltage_level + + def query_min_current_limit(self, channel_name, voltage_level): # noqa: N802 + response = self._invoke( + self._client.QueryMinCurrentLimit, + grpc_types.QueryMinCurrentLimitRequest(vi=self._vi, channel_name=channel_name, voltage_level=voltage_level), + ) + return response.min_current_limit + + def query_output_state(self, channel_name, output_state): # noqa: N802 + response = self._invoke( + self._client.QueryOutputState, + grpc_types.QueryOutputStateRequest(vi=self._vi, channel_name=channel_name, output_state_raw=output_state.value), + ) + return response.in_state + + def read_current_temperature(self): # noqa: N802 + response = self._invoke( + self._client.ReadCurrentTemperature, + grpc_types.ReadCurrentTemperatureRequest(vi=self._vi), + ) + return response.temperature + + def reset_device(self): # noqa: N802 + self._invoke( + self._client.ResetDevice, + grpc_types.ResetDeviceRequest(vi=self._vi), + ) + + def reset(self, channel_name): # noqa: N802 + self._invoke( + self._client.ResetWithChannels, + grpc_types.ResetWithChannelsRequest(vi=self._vi, channel_name=channel_name), + ) + + def reset_with_defaults(self): # noqa: N802 + self._invoke( + self._client.ResetWithDefaults, + grpc_types.ResetWithDefaultsRequest(vi=self._vi), + ) + + def send_software_edge_trigger(self, channel_name, trigger): # noqa: N802 + self._invoke( + self._client.SendSoftwareEdgeTriggerWithChannels, + grpc_types.SendSoftwareEdgeTriggerWithChannelsRequest(vi=self._vi, channel_name=channel_name, trigger_raw=trigger.value), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt64, + grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def set_sequence(self, channel_name, values, source_delays): # noqa: N802 + self._invoke( + self._client.SetSequence, + grpc_types.SetSequenceRequest(vi=self._vi, channel_name=channel_name, values=values, source_delays=source_delays), + ) + + def unlock(self): # noqa: N802 + self._lock.release() + + def wait_for_event(self, channel_name, event_id, timeout): # noqa: N802 + self._invoke( + self._client.WaitForEventWithChannels, + grpc_types.WaitForEventWithChannelsRequest(vi=self._vi, channel_name=channel_name, event_id_raw=event_id.value, timeout=timeout), + ) + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.self_test_result, response.self_test_message diff --git a/generated/nidcpower/nidcpower/_library.py b/generated/nidcpower/nidcpower/_library.py new file mode 100644 index 0000000000..2db23ea441 --- /dev/null +++ b/generated/nidcpower/nidcpower/_library.py @@ -0,0 +1,671 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nidcpower.errors as errors +import threading + +from nidcpower._visatype import * # noqa: F403,H303 + +import nidcpower.lcr_measurement as lcr_measurement # noqa: F401 + +import nidcpower.lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niDCPower_AbortWithChannels_cfunc = None + self.niDCPower_CalSelfCalibrate_cfunc = None + self.niDCPower_ClearLatchedOutputCutoffState_cfunc = None + self.niDCPower_CommitWithChannels_cfunc = None + self.niDCPower_ConfigureApertureTime_cfunc = None + self.niDCPower_ConfigureLCRCompensation_cfunc = None + self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc = None + self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc = None + self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc = None + self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc = None + self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc = None + self.niDCPower_Disable_cfunc = None + self.niDCPower_ExportAttributeConfigurationBuffer_cfunc = None + self.niDCPower_ExportAttributeConfigurationFile_cfunc = None + self.niDCPower_FancyInitialize_cfunc = None + self.niDCPower_FetchMultiple_cfunc = None + self.niDCPower_FetchMultipleLCR_cfunc = None + self.niDCPower_GetAttributeViBoolean_cfunc = None + self.niDCPower_GetAttributeViInt32_cfunc = None + self.niDCPower_GetAttributeViInt64_cfunc = None + self.niDCPower_GetAttributeViReal64_cfunc = None + self.niDCPower_GetAttributeViString_cfunc = None + self.niDCPower_GetChannelName_cfunc = None + self.niDCPower_GetChannelNameFromString_cfunc = None + self.niDCPower_GetError_cfunc = None + self.niDCPower_GetExtCalLastDateAndTime_cfunc = None + self.niDCPower_GetExtCalLastTemp_cfunc = None + self.niDCPower_GetExtCalRecommendedInterval_cfunc = None + self.niDCPower_GetLCRCompensationData_cfunc = None + self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc = None + self.niDCPower_GetLCRCustomCableCompensationData_cfunc = None + self.niDCPower_GetSelfCalLastDateAndTime_cfunc = None + self.niDCPower_GetSelfCalLastTemp_cfunc = None + self.niDCPower_ImportAttributeConfigurationBuffer_cfunc = None + self.niDCPower_ImportAttributeConfigurationFile_cfunc = None + self.niDCPower_InitializeWithChannels_cfunc = None + self.niDCPower_InitializeWithIndependentChannels_cfunc = None + self.niDCPower_InitiateWithChannels_cfunc = None + self.niDCPower_LockSession_cfunc = None + self.niDCPower_Measure_cfunc = None + self.niDCPower_MeasureMultiple_cfunc = None + self.niDCPower_MeasureMultipleLCR_cfunc = None + self.niDCPower_ParseChannelCount_cfunc = None + self.niDCPower_PerformLCRLoadCompensation_cfunc = None + self.niDCPower_PerformLCROpenCompensation_cfunc = None + self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc = None + self.niDCPower_PerformLCRShortCompensation_cfunc = None + self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc = None + self.niDCPower_QueryInCompliance_cfunc = None + self.niDCPower_QueryLatchedOutputCutoffState_cfunc = None + self.niDCPower_QueryMaxCurrentLimit_cfunc = None + self.niDCPower_QueryMaxVoltageLevel_cfunc = None + self.niDCPower_QueryMinCurrentLimit_cfunc = None + self.niDCPower_QueryOutputState_cfunc = None + self.niDCPower_ReadCurrentTemperature_cfunc = None + self.niDCPower_ResetDevice_cfunc = None + self.niDCPower_ResetWithChannels_cfunc = None + self.niDCPower_ResetWithDefaults_cfunc = None + self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc = None + self.niDCPower_SetAttributeViBoolean_cfunc = None + self.niDCPower_SetAttributeViInt32_cfunc = None + self.niDCPower_SetAttributeViInt64_cfunc = None + self.niDCPower_SetAttributeViReal64_cfunc = None + self.niDCPower_SetAttributeViString_cfunc = None + self.niDCPower_SetRuntimeEnvironment_cfunc = None + self.niDCPower_SetSequence_cfunc = None + self.niDCPower_UnlockSession_cfunc = None + self.niDCPower_WaitForEventWithChannels_cfunc = None + self.niDCPower_close_cfunc = None + self.niDCPower_error_message_cfunc = None + self.niDCPower_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niDCPower_AbortWithChannels(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_AbortWithChannels_cfunc is None: + self.niDCPower_AbortWithChannels_cfunc = self._get_library_function('niDCPower_AbortWithChannels') + self.niDCPower_AbortWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_AbortWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_AbortWithChannels_cfunc(vi, channel_name) + + def niDCPower_CalSelfCalibrate(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_CalSelfCalibrate_cfunc is None: + self.niDCPower_CalSelfCalibrate_cfunc = self._get_library_function('niDCPower_CalSelfCalibrate') + self.niDCPower_CalSelfCalibrate_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_CalSelfCalibrate_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_CalSelfCalibrate_cfunc(vi, channel_name) + + def niDCPower_ClearLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason): # noqa: N802 + with self._func_lock: + if self.niDCPower_ClearLatchedOutputCutoffState_cfunc is None: + self.niDCPower_ClearLatchedOutputCutoffState_cfunc = self._get_library_function('niDCPower_ClearLatchedOutputCutoffState') + self.niDCPower_ClearLatchedOutputCutoffState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niDCPower_ClearLatchedOutputCutoffState_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ClearLatchedOutputCutoffState_cfunc(vi, channel_name, output_cutoff_reason) + + def niDCPower_CommitWithChannels(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_CommitWithChannels_cfunc is None: + self.niDCPower_CommitWithChannels_cfunc = self._get_library_function('niDCPower_CommitWithChannels') + self.niDCPower_CommitWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_CommitWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_CommitWithChannels_cfunc(vi, channel_name) + + def niDCPower_ConfigureApertureTime(self, vi, channel_name, aperture_time, units): # noqa: N802 + with self._func_lock: + if self.niDCPower_ConfigureApertureTime_cfunc is None: + self.niDCPower_ConfigureApertureTime_cfunc = self._get_library_function('niDCPower_ConfigureApertureTime') + self.niDCPower_ConfigureApertureTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32] # noqa: F405 + self.niDCPower_ConfigureApertureTime_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ConfigureApertureTime_cfunc(vi, channel_name, aperture_time, units) + + def niDCPower_ConfigureLCRCompensation(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 + with self._func_lock: + if self.niDCPower_ConfigureLCRCompensation_cfunc is None: + self.niDCPower_ConfigureLCRCompensation_cfunc = self._get_library_function('niDCPower_ConfigureLCRCompensation') + self.niDCPower_ConfigureLCRCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDCPower_ConfigureLCRCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ConfigureLCRCompensation_cfunc(vi, channel_name, compensation_data_size, compensation_data) + + def niDCPower_ConfigureLCRCustomCableCompensation(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 + with self._func_lock: + if self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc is None: + self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc = self._get_library_function('niDCPower_ConfigureLCRCustomCableCompensation') + self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ConfigureLCRCustomCableCompensation_cfunc(vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data) + + def niDCPower_CreateAdvancedSequenceCommitStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 + with self._func_lock: + if self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc is None: + self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc = self._get_library_function('niDCPower_CreateAdvancedSequenceCommitStepWithChannels') + self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 + self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_CreateAdvancedSequenceCommitStepWithChannels_cfunc(vi, channel_name, set_as_active_step) + + def niDCPower_CreateAdvancedSequenceStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 + with self._func_lock: + if self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc is None: + self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc = self._get_library_function('niDCPower_CreateAdvancedSequenceStepWithChannels') + self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 + self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_CreateAdvancedSequenceStepWithChannels_cfunc(vi, channel_name, set_as_active_step) + + def niDCPower_CreateAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name, attribute_id_count, attribute_ids, set_as_active_sequence): # noqa: N802 + with self._func_lock: + if self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc is None: + self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc = self._get_library_function('niDCPower_CreateAdvancedSequenceWithChannels') + self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32), ViBoolean] # noqa: F405 + self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_CreateAdvancedSequenceWithChannels_cfunc(vi, channel_name, sequence_name, attribute_id_count, attribute_ids, set_as_active_sequence) + + def niDCPower_DeleteAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc is None: + self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc = self._get_library_function('niDCPower_DeleteAdvancedSequenceWithChannels') + self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_DeleteAdvancedSequenceWithChannels_cfunc(vi, channel_name, sequence_name) + + def niDCPower_Disable(self, vi): # noqa: N802 + with self._func_lock: + if self.niDCPower_Disable_cfunc is None: + self.niDCPower_Disable_cfunc = self._get_library_function('niDCPower_Disable') + self.niDCPower_Disable_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDCPower_Disable_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_Disable_cfunc(vi) + + def niDCPower_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + with self._func_lock: + if self.niDCPower_ExportAttributeConfigurationBuffer_cfunc is None: + self.niDCPower_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDCPower_ExportAttributeConfigurationBuffer') + self.niDCPower_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDCPower_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ExportAttributeConfigurationBuffer_cfunc(vi, size, configuration) + + def niDCPower_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDCPower_ExportAttributeConfigurationFile_cfunc is None: + self.niDCPower_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niDCPower_ExportAttributeConfigurationFile') + self.niDCPower_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ExportAttributeConfigurationFile_cfunc(vi, file_path) + + def niDCPower_FancyInitialize(self, resource_name, channels, reset, option_string, vi, independent_channels): # noqa: N802 + with self._func_lock: + if self.niDCPower_FancyInitialize_cfunc is None: + self.niDCPower_FancyInitialize_cfunc = self._get_library_function('niDCPower_FancyInitialize') + self.niDCPower_FancyInitialize_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession), ViBoolean] # noqa: F405 + self.niDCPower_FancyInitialize_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_FancyInitialize_cfunc(resource_name, channels, reset, option_string, vi, independent_channels) + + def niDCPower_FetchMultiple(self, vi, channel_name, timeout, count, voltage_measurements, current_measurements, in_compliance, actual_count): # noqa: N802 + with self._func_lock: + if self.niDCPower_FetchMultiple_cfunc is None: + self.niDCPower_FetchMultiple_cfunc = self._get_library_function('niDCPower_FetchMultiple') + self.niDCPower_FetchMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_FetchMultiple_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_FetchMultiple_cfunc(vi, channel_name, timeout, count, voltage_measurements, current_measurements, in_compliance, actual_count) + + def niDCPower_FetchMultipleLCR(self, vi, channel_name, timeout, count, measurements, actual_count): # noqa: N802 + with self._func_lock: + if self.niDCPower_FetchMultipleLCR_cfunc is None: + self.niDCPower_FetchMultipleLCR_cfunc = self._get_library_function('niDCPower_FetchMultipleLCR') + self.niDCPower_FetchMultipleLCR_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(lcr_measurement.struct_NILCRMeasurement), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_FetchMultipleLCR_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_FetchMultipleLCR_cfunc(vi, channel_name, timeout, count, measurements, actual_count) + + def niDCPower_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetAttributeViBoolean_cfunc is None: + self.niDCPower_GetAttributeViBoolean_cfunc = self._get_library_function('niDCPower_GetAttributeViBoolean') + self.niDCPower_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDCPower_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetAttributeViInt32_cfunc is None: + self.niDCPower_GetAttributeViInt32_cfunc = self._get_library_function('niDCPower_GetAttributeViInt32') + self.niDCPower_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetAttributeViInt64_cfunc is None: + self.niDCPower_GetAttributeViInt64_cfunc = self._get_library_function('niDCPower_GetAttributeViInt64') + self.niDCPower_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niDCPower_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetAttributeViReal64_cfunc is None: + self.niDCPower_GetAttributeViReal64_cfunc = self._get_library_function('niDCPower_GetAttributeViReal64') + self.niDCPower_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetAttributeViString_cfunc is None: + self.niDCPower_GetAttributeViString_cfunc = self._get_library_function('niDCPower_GetAttributeViString') + self.niDCPower_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buffer_size, attribute_value) + + def niDCPower_GetChannelName(self, vi, index, buffer_size, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetChannelName_cfunc is None: + self.niDCPower_GetChannelName_cfunc = self._get_library_function('niDCPower_GetChannelName') + self.niDCPower_GetChannelName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_GetChannelName_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetChannelName_cfunc(vi, index, buffer_size, channel_name) + + def niDCPower_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetChannelNameFromString_cfunc is None: + self.niDCPower_GetChannelNameFromString_cfunc = self._get_library_function('niDCPower_GetChannelNameFromString') + self.niDCPower_GetChannelNameFromString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_GetChannelNameFromString_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetChannelNameFromString_cfunc(vi, indices, buffer_size, names) + + def niDCPower_GetError(self, vi, code, buffer_size, description): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetError_cfunc is None: + self.niDCPower_GetError_cfunc = self._get_library_function('niDCPower_GetError') + self.niDCPower_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetError_cfunc(vi, code, buffer_size, description) + + def niDCPower_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetExtCalLastDateAndTime_cfunc is None: + self.niDCPower_GetExtCalLastDateAndTime_cfunc = self._get_library_function('niDCPower_GetExtCalLastDateAndTime') + self.niDCPower_GetExtCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_GetExtCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetExtCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) + + def niDCPower_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetExtCalLastTemp_cfunc is None: + self.niDCPower_GetExtCalLastTemp_cfunc = self._get_library_function('niDCPower_GetExtCalLastTemp') + self.niDCPower_GetExtCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_GetExtCalLastTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetExtCalLastTemp_cfunc(vi, temperature) + + def niDCPower_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetExtCalRecommendedInterval_cfunc is None: + self.niDCPower_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niDCPower_GetExtCalRecommendedInterval') + self.niDCPower_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetExtCalRecommendedInterval_cfunc(vi, months) + + def niDCPower_GetLCRCompensationData(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetLCRCompensationData_cfunc is None: + self.niDCPower_GetLCRCompensationData_cfunc = self._get_library_function('niDCPower_GetLCRCompensationData') + self.niDCPower_GetLCRCompensationData_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDCPower_GetLCRCompensationData_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetLCRCompensationData_cfunc(vi, channel_name, compensation_data_size, compensation_data) + + def niDCPower_GetLCRCompensationLastDateAndTime(self, vi, channel_name, compensation_type, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc is None: + self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc = self._get_library_function('niDCPower_GetLCRCompensationLastDateAndTime') + self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetLCRCompensationLastDateAndTime_cfunc(vi, channel_name, compensation_type, year, month, day, hour, minute) + + def niDCPower_GetLCRCustomCableCompensationData(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetLCRCustomCableCompensationData_cfunc is None: + self.niDCPower_GetLCRCustomCableCompensationData_cfunc = self._get_library_function('niDCPower_GetLCRCustomCableCompensationData') + self.niDCPower_GetLCRCustomCableCompensationData_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDCPower_GetLCRCustomCableCompensationData_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetLCRCustomCableCompensationData_cfunc(vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data) + + def niDCPower_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetSelfCalLastDateAndTime_cfunc is None: + self.niDCPower_GetSelfCalLastDateAndTime_cfunc = self._get_library_function('niDCPower_GetSelfCalLastDateAndTime') + self.niDCPower_GetSelfCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDCPower_GetSelfCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetSelfCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) + + def niDCPower_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 + with self._func_lock: + if self.niDCPower_GetSelfCalLastTemp_cfunc is None: + self.niDCPower_GetSelfCalLastTemp_cfunc = self._get_library_function('niDCPower_GetSelfCalLastTemp') + self.niDCPower_GetSelfCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_GetSelfCalLastTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_GetSelfCalLastTemp_cfunc(vi, temperature) + + def niDCPower_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + with self._func_lock: + if self.niDCPower_ImportAttributeConfigurationBuffer_cfunc is None: + self.niDCPower_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDCPower_ImportAttributeConfigurationBuffer') + self.niDCPower_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDCPower_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ImportAttributeConfigurationBuffer_cfunc(vi, size, configuration) + + def niDCPower_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDCPower_ImportAttributeConfigurationFile_cfunc is None: + self.niDCPower_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niDCPower_ImportAttributeConfigurationFile') + self.niDCPower_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ImportAttributeConfigurationFile_cfunc(vi, file_path) + + def niDCPower_InitializeWithChannels(self, resource_name, channels, reset, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niDCPower_InitializeWithChannels_cfunc is None: + self.niDCPower_InitializeWithChannels_cfunc = self._get_library_function('niDCPower_InitializeWithChannels') + self.niDCPower_InitializeWithChannels_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niDCPower_InitializeWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_InitializeWithChannels_cfunc(resource_name, channels, reset, option_string, vi) + + def niDCPower_InitializeWithIndependentChannels(self, resource_name, reset, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niDCPower_InitializeWithIndependentChannels_cfunc is None: + self.niDCPower_InitializeWithIndependentChannels_cfunc = self._get_library_function('niDCPower_InitializeWithIndependentChannels') + self.niDCPower_InitializeWithIndependentChannels_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niDCPower_InitializeWithIndependentChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_InitializeWithIndependentChannels_cfunc(resource_name, reset, option_string, vi) + + def niDCPower_InitiateWithChannels(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_InitiateWithChannels_cfunc is None: + self.niDCPower_InitiateWithChannels_cfunc = self._get_library_function('niDCPower_InitiateWithChannels') + self.niDCPower_InitiateWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_InitiateWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_InitiateWithChannels_cfunc(vi, channel_name) + + def niDCPower_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niDCPower_LockSession_cfunc is None: + self.niDCPower_LockSession_cfunc = self._get_library_function('niDCPower_LockSession') + self.niDCPower_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDCPower_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_LockSession_cfunc(vi, caller_has_lock) + + def niDCPower_Measure(self, vi, channel_name, measurement_type, measurement): # noqa: N802 + with self._func_lock: + if self.niDCPower_Measure_cfunc is None: + self.niDCPower_Measure_cfunc = self._get_library_function('niDCPower_Measure') + self.niDCPower_Measure_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_Measure_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_Measure_cfunc(vi, channel_name, measurement_type, measurement) + + def niDCPower_MeasureMultiple(self, vi, channel_name, voltage_measurements, current_measurements): # noqa: N802 + with self._func_lock: + if self.niDCPower_MeasureMultiple_cfunc is None: + self.niDCPower_MeasureMultiple_cfunc = self._get_library_function('niDCPower_MeasureMultiple') + self.niDCPower_MeasureMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_MeasureMultiple_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_MeasureMultiple_cfunc(vi, channel_name, voltage_measurements, current_measurements) + + def niDCPower_MeasureMultipleLCR(self, vi, channel_name, measurements): # noqa: N802 + with self._func_lock: + if self.niDCPower_MeasureMultipleLCR_cfunc is None: + self.niDCPower_MeasureMultipleLCR_cfunc = self._get_library_function('niDCPower_MeasureMultipleLCR') + self.niDCPower_MeasureMultipleLCR_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(lcr_measurement.struct_NILCRMeasurement)] # noqa: F405 + self.niDCPower_MeasureMultipleLCR_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_MeasureMultipleLCR_cfunc(vi, channel_name, measurements) + + def niDCPower_ParseChannelCount(self, vi, channels_string, number_of_channels): # noqa: N802 + with self._func_lock: + if self.niDCPower_ParseChannelCount_cfunc is None: + self.niDCPower_ParseChannelCount_cfunc = self._get_library_function('niDCPower_ParseChannelCount') + self.niDCPower_ParseChannelCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViUInt32)] # noqa: F405 + self.niDCPower_ParseChannelCount_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ParseChannelCount_cfunc(vi, channels_string, number_of_channels) + + def niDCPower_PerformLCRLoadCompensation(self, vi, channel_name, num_compensation_spots, compensation_spots): # noqa: N802 + with self._func_lock: + if self.niDCPower_PerformLCRLoadCompensation_cfunc is None: + self.niDCPower_PerformLCRLoadCompensation_cfunc = self._get_library_function('niDCPower_PerformLCRLoadCompensation') + self.niDCPower_PerformLCRLoadCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(lcr_load_compensation_spot.struct_NILCRLoadCompensationSpot)] # noqa: F405 + self.niDCPower_PerformLCRLoadCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_PerformLCRLoadCompensation_cfunc(vi, channel_name, num_compensation_spots, compensation_spots) + + def niDCPower_PerformLCROpenCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 + with self._func_lock: + if self.niDCPower_PerformLCROpenCompensation_cfunc is None: + self.niDCPower_PerformLCROpenCompensation_cfunc = self._get_library_function('niDCPower_PerformLCROpenCompensation') + self.niDCPower_PerformLCROpenCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_PerformLCROpenCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_PerformLCROpenCompensation_cfunc(vi, channel_name, num_frequencies, additional_frequencies) + + def niDCPower_PerformLCROpenCustomCableCompensation(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc is None: + self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc = self._get_library_function('niDCPower_PerformLCROpenCustomCableCompensation') + self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_PerformLCROpenCustomCableCompensation_cfunc(vi, channel_name) + + def niDCPower_PerformLCRShortCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 + with self._func_lock: + if self.niDCPower_PerformLCRShortCompensation_cfunc is None: + self.niDCPower_PerformLCRShortCompensation_cfunc = self._get_library_function('niDCPower_PerformLCRShortCompensation') + self.niDCPower_PerformLCRShortCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_PerformLCRShortCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_PerformLCRShortCompensation_cfunc(vi, channel_name, num_frequencies, additional_frequencies) + + def niDCPower_PerformLCRShortCustomCableCompensation(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc is None: + self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc = self._get_library_function('niDCPower_PerformLCRShortCustomCableCompensation') + self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_PerformLCRShortCustomCableCompensation_cfunc(vi, channel_name) + + def niDCPower_QueryInCompliance(self, vi, channel_name, in_compliance): # noqa: N802 + with self._func_lock: + if self.niDCPower_QueryInCompliance_cfunc is None: + self.niDCPower_QueryInCompliance_cfunc = self._get_library_function('niDCPower_QueryInCompliance') + self.niDCPower_QueryInCompliance_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDCPower_QueryInCompliance_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_QueryInCompliance_cfunc(vi, channel_name, in_compliance) + + def niDCPower_QueryLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason, output_cutoff_state): # noqa: N802 + with self._func_lock: + if self.niDCPower_QueryLatchedOutputCutoffState_cfunc is None: + self.niDCPower_QueryLatchedOutputCutoffState_cfunc = self._get_library_function('niDCPower_QueryLatchedOutputCutoffState') + self.niDCPower_QueryLatchedOutputCutoffState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDCPower_QueryLatchedOutputCutoffState_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_QueryLatchedOutputCutoffState_cfunc(vi, channel_name, output_cutoff_reason, output_cutoff_state) + + def niDCPower_QueryMaxCurrentLimit(self, vi, channel_name, voltage_level, max_current_limit): # noqa: N802 + with self._func_lock: + if self.niDCPower_QueryMaxCurrentLimit_cfunc is None: + self.niDCPower_QueryMaxCurrentLimit_cfunc = self._get_library_function('niDCPower_QueryMaxCurrentLimit') + self.niDCPower_QueryMaxCurrentLimit_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_QueryMaxCurrentLimit_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_QueryMaxCurrentLimit_cfunc(vi, channel_name, voltage_level, max_current_limit) + + def niDCPower_QueryMaxVoltageLevel(self, vi, channel_name, current_limit, max_voltage_level): # noqa: N802 + with self._func_lock: + if self.niDCPower_QueryMaxVoltageLevel_cfunc is None: + self.niDCPower_QueryMaxVoltageLevel_cfunc = self._get_library_function('niDCPower_QueryMaxVoltageLevel') + self.niDCPower_QueryMaxVoltageLevel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_QueryMaxVoltageLevel_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_QueryMaxVoltageLevel_cfunc(vi, channel_name, current_limit, max_voltage_level) + + def niDCPower_QueryMinCurrentLimit(self, vi, channel_name, voltage_level, min_current_limit): # noqa: N802 + with self._func_lock: + if self.niDCPower_QueryMinCurrentLimit_cfunc is None: + self.niDCPower_QueryMinCurrentLimit_cfunc = self._get_library_function('niDCPower_QueryMinCurrentLimit') + self.niDCPower_QueryMinCurrentLimit_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_QueryMinCurrentLimit_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_QueryMinCurrentLimit_cfunc(vi, channel_name, voltage_level, min_current_limit) + + def niDCPower_QueryOutputState(self, vi, channel_name, output_state, in_state): # noqa: N802 + with self._func_lock: + if self.niDCPower_QueryOutputState_cfunc is None: + self.niDCPower_QueryOutputState_cfunc = self._get_library_function('niDCPower_QueryOutputState') + self.niDCPower_QueryOutputState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDCPower_QueryOutputState_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_QueryOutputState_cfunc(vi, channel_name, output_state, in_state) + + def niDCPower_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 + with self._func_lock: + if self.niDCPower_ReadCurrentTemperature_cfunc is None: + self.niDCPower_ReadCurrentTemperature_cfunc = self._get_library_function('niDCPower_ReadCurrentTemperature') + self.niDCPower_ReadCurrentTemperature_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDCPower_ReadCurrentTemperature_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ReadCurrentTemperature_cfunc(vi, temperature) + + def niDCPower_ResetDevice(self, vi): # noqa: N802 + with self._func_lock: + if self.niDCPower_ResetDevice_cfunc is None: + self.niDCPower_ResetDevice_cfunc = self._get_library_function('niDCPower_ResetDevice') + self.niDCPower_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDCPower_ResetDevice_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ResetDevice_cfunc(vi) + + def niDCPower_ResetWithChannels(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niDCPower_ResetWithChannels_cfunc is None: + self.niDCPower_ResetWithChannels_cfunc = self._get_library_function('niDCPower_ResetWithChannels') + self.niDCPower_ResetWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_ResetWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ResetWithChannels_cfunc(vi, channel_name) + + def niDCPower_ResetWithDefaults(self, vi): # noqa: N802 + with self._func_lock: + if self.niDCPower_ResetWithDefaults_cfunc is None: + self.niDCPower_ResetWithDefaults_cfunc = self._get_library_function('niDCPower_ResetWithDefaults') + self.niDCPower_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDCPower_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_ResetWithDefaults_cfunc(vi) + + def niDCPower_SendSoftwareEdgeTriggerWithChannels(self, vi, channel_name, trigger): # noqa: N802 + with self._func_lock: + if self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc is None: + self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc = self._get_library_function('niDCPower_SendSoftwareEdgeTriggerWithChannels') + self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SendSoftwareEdgeTriggerWithChannels_cfunc(vi, channel_name, trigger) + + def niDCPower_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetAttributeViBoolean_cfunc is None: + self.niDCPower_SetAttributeViBoolean_cfunc = self._get_library_function('niDCPower_SetAttributeViBoolean') + self.niDCPower_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niDCPower_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetAttributeViInt32_cfunc is None: + self.niDCPower_SetAttributeViInt32_cfunc = self._get_library_function('niDCPower_SetAttributeViInt32') + self.niDCPower_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niDCPower_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetAttributeViInt64_cfunc is None: + self.niDCPower_SetAttributeViInt64_cfunc = self._get_library_function('niDCPower_SetAttributeViInt64') + self.niDCPower_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 + self.niDCPower_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetAttributeViReal64_cfunc is None: + self.niDCPower_SetAttributeViReal64_cfunc = self._get_library_function('niDCPower_SetAttributeViReal64') + self.niDCPower_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niDCPower_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetAttributeViString_cfunc is None: + self.niDCPower_SetAttributeViString_cfunc = self._get_library_function('niDCPower_SetAttributeViString') + self.niDCPower_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDCPower_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetRuntimeEnvironment_cfunc is None: + self.niDCPower_SetRuntimeEnvironment_cfunc = self._get_library_function('niDCPower_SetRuntimeEnvironment') + self.niDCPower_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niDCPower_SetSequence(self, vi, channel_name, values, source_delays, size): # noqa: N802 + with self._func_lock: + if self.niDCPower_SetSequence_cfunc is None: + self.niDCPower_SetSequence_cfunc = self._get_library_function('niDCPower_SetSequence') + self.niDCPower_SetSequence_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViUInt32] # noqa: F405 + self.niDCPower_SetSequence_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_SetSequence_cfunc(vi, channel_name, values, source_delays, size) + + def niDCPower_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niDCPower_UnlockSession_cfunc is None: + self.niDCPower_UnlockSession_cfunc = self._get_library_function('niDCPower_UnlockSession') + self.niDCPower_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDCPower_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_UnlockSession_cfunc(vi, caller_has_lock) + + def niDCPower_WaitForEventWithChannels(self, vi, channel_name, event_id, timeout): # noqa: N802 + with self._func_lock: + if self.niDCPower_WaitForEventWithChannels_cfunc is None: + self.niDCPower_WaitForEventWithChannels_cfunc = self._get_library_function('niDCPower_WaitForEventWithChannels') + self.niDCPower_WaitForEventWithChannels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405 + self.niDCPower_WaitForEventWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_WaitForEventWithChannels_cfunc(vi, channel_name, event_id, timeout) + + def niDCPower_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niDCPower_close_cfunc is None: + self.niDCPower_close_cfunc = self._get_library_function('niDCPower_close') + self.niDCPower_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDCPower_close_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_close_cfunc(vi) + + def niDCPower_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niDCPower_error_message_cfunc is None: + self.niDCPower_error_message_cfunc = self._get_library_function('niDCPower_error_message') + self.niDCPower_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_error_message_cfunc(vi, error_code, error_message) + + def niDCPower_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niDCPower_self_test_cfunc is None: + self.niDCPower_self_test_cfunc = self._get_library_function('niDCPower_self_test') + self.niDCPower_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDCPower_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niDCPower_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nidcpower/nidcpower/_library_interpreter.py b/generated/nidcpower/nidcpower/_library_interpreter.py new file mode 100644 index 0000000000..09640eca56 --- /dev/null +++ b/generated/nidcpower/nidcpower/_library_interpreter.py @@ -0,0 +1,782 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import nidcpower._library_singleton as _library_singleton +import nidcpower._visatype as _visatype +import nidcpower.enums as enums # noqa: F401 +import nidcpower.errors as errors + +import nidcpower.lcr_measurement as lcr_measurement # noqa: F401 + +import nidcpower.lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_AbortWithChannels(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_cal(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_CalSelfCalibrate(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + output_cutoff_reason_ctype = _visatype.ViInt32(output_cutoff_reason.value) # case S130 + error_code = self._library.niDCPower_ClearLatchedOutputCutoffState(vi_ctype, channel_name_ctype, output_cutoff_reason_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def commit(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_CommitWithChannels(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_aperture_time(self, channel_name, aperture_time, units): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + aperture_time_ctype = _visatype.ViReal64(aperture_time) # case S150 + units_ctype = _visatype.ViInt32(units.value) # case S130 + error_code = self._library.niDCPower_ConfigureApertureTime(vi_ctype, channel_name_ctype, aperture_time_ctype, units_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_lcr_compensation(self, channel_name, compensation_data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + compensation_data_size_ctype = _visatype.ViInt32(0 if compensation_data is None else len(compensation_data)) # case S160 + compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=compensation_data, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niDCPower_ConfigureLCRCompensation(vi_ctype, channel_name_ctype, compensation_data_size_ctype, compensation_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_lcr_custom_cable_compensation(self, channel_name, custom_cable_compensation_data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + custom_cable_compensation_data_size_ctype = _visatype.ViInt32(0 if custom_cable_compensation_data is None else len(custom_cable_compensation_data)) # case S160 + custom_cable_compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=custom_cable_compensation_data, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niDCPower_ConfigureLCRCustomCableCompensation(vi_ctype, channel_name_ctype, custom_cable_compensation_data_size_ctype, custom_cable_compensation_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_advanced_sequence_commit_step(self, channel_name, set_as_active_step): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + set_as_active_step_ctype = _visatype.ViBoolean(set_as_active_step) # case S150 + error_code = self._library.niDCPower_CreateAdvancedSequenceCommitStepWithChannels(vi_ctype, channel_name_ctype, set_as_active_step_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_advanced_sequence_step(self, channel_name, set_as_active_step): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + set_as_active_step_ctype = _visatype.ViBoolean(set_as_active_step) # case S150 + error_code = self._library.niDCPower_CreateAdvancedSequenceStepWithChannels(vi_ctype, channel_name_ctype, set_as_active_step_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_advanced_sequence_with_channels(self, channel_name, sequence_name, attribute_ids, set_as_active_sequence): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + sequence_name_ctype = ctypes.create_string_buffer(sequence_name.encode(self._encoding)) # case C020 + attribute_id_count_ctype = _visatype.ViInt32(0 if attribute_ids is None else len(attribute_ids)) # case S160 + attribute_ids_ctype = _get_ctypes_pointer_for_buffer(value=attribute_ids, library_type=_visatype.ViInt32) # case B550 + set_as_active_sequence_ctype = _visatype.ViBoolean(set_as_active_sequence) # case S150 + error_code = self._library.niDCPower_CreateAdvancedSequenceWithChannels(vi_ctype, channel_name_ctype, sequence_name_ctype, attribute_id_count_ctype, attribute_ids_ctype, set_as_active_sequence_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_advanced_sequence(self, channel_name, sequence_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + sequence_name_ctype = ctypes.create_string_buffer(sequence_name.encode(self._encoding)) # case C020 + error_code = self._library.niDCPower_DeleteAdvancedSequenceWithChannels(vi_ctype, channel_name_ctype, sequence_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDCPower_Disable(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def export_attribute_configuration_buffer(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_ctype = _visatype.ViInt32() # case S170 + configuration_ctype = None # case B580 + error_code = self._library.niDCPower_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + size_ctype = _visatype.ViInt32(error_code) # case S180 + configuration_size = size_ctype.value # case B590 + configuration_array = array.array("b", [0]) * configuration_size # case B590 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niDCPower_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return configuration_array + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDCPower_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def fancy_initialize(self, resource_name, channels, reset, option_string, independent_channels): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + channels_ctype = ctypes.create_string_buffer(channels.encode(self._encoding)) # case C020 + reset_ctype = _visatype.ViBoolean(reset) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + independent_channels_ctype = _visatype.ViBoolean(independent_channels) # case S150 + error_code = self._library.niDCPower_FancyInitialize(resource_name_ctype, channels_ctype, reset_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype)), independent_channels_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(vi_ctype.value) + + def fetch_multiple(self, channel_name, timeout, count): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + count_ctype = _visatype.ViInt32(count) # case S210 + voltage_measurements_size = count # case B600 + voltage_measurements_array = array.array("d", [0]) * voltage_measurements_size # case B600 + voltage_measurements_ctype = _get_ctypes_pointer_for_buffer(value=voltage_measurements_array, library_type=_visatype.ViReal64) # case B600 + current_measurements_size = count # case B600 + current_measurements_array = array.array("d", [0]) * current_measurements_size # case B600 + current_measurements_ctype = _get_ctypes_pointer_for_buffer(value=current_measurements_array, library_type=_visatype.ViReal64) # case B600 + in_compliance_size = count # case B600 + in_compliance_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=in_compliance_size) # case B600 + actual_count_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_FetchMultiple(vi_ctype, channel_name_ctype, timeout_ctype, count_ctype, voltage_measurements_ctype, current_measurements_ctype, in_compliance_ctype, None if actual_count_ctype is None else (ctypes.pointer(actual_count_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return voltage_measurements_array, current_measurements_array, [bool(in_compliance_ctype[i]) for i in range(count_ctype.value)] + + def fetch_multiple_lcr(self, channel_name, timeout, count): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + count_ctype = _visatype.ViInt32(count) # case S210 + measurements_size = count # case B600 + measurements_ctype = _get_ctypes_pointer_for_buffer(library_type=lcr_measurement.struct_NILCRMeasurement, size=measurements_size) # case B600 + actual_count_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_FetchMultipleLCR(vi_ctype, channel_name_ctype, timeout_ctype, count_ctype, measurements_ctype, None if actual_count_ctype is None else (ctypes.pointer(actual_count_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [lcr_measurement.LCRMeasurement(measurements_ctype[i]) for i in range(count_ctype.value)] + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDCPower_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(attribute_value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niDCPower_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(attribute_value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + attribute_value_ctype = None # case C050 + error_code = self._library.niDCPower_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + attribute_value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDCPower_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return attribute_value_ctype.value.decode(self._encoding) + + def get_channel_name(self, index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + index_ctype = _visatype.ViInt32(index) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + channel_name_ctype = None # case C050 + error_code = self._library.niDCPower_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + channel_name_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDCPower_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return channel_name_ctype.value.decode(self._encoding) + + def get_channel_names(self, indices): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 + buffer_size_ctype = _visatype.ViInt32() # case S170 + names_ctype = None # case C050 + error_code = self._library.niDCPower_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + names_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDCPower_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return names_ctype.value.decode(self._encoding) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + code_ctype = _visatype.ViStatus() # case S220 + buffer_size_ctype = _visatype.ViInt32() # case S170 + description_ctype = None # case C050 + error_code = self._library.niDCPower_GetError(vi_ctype, None if code_ctype is None else (ctypes.pointer(code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDCPower_GetError(vi_ctype, None if code_ctype is None else (ctypes.pointer(code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(code_ctype.value), description_ctype.value.decode(self._encoding) + + def get_ext_cal_last_date_and_time(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_GetExtCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_ext_cal_last_temp(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_GetExtCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_ext_cal_recommended_interval(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + months_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(months_ctype.value) + + def get_lcr_compensation_data(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + compensation_data_size_ctype = _visatype.ViInt32() # case S170 + compensation_data_ctype = None # case B580 + error_code = self._library.niDCPower_GetLCRCompensationData(vi_ctype, channel_name_ctype, compensation_data_size_ctype, compensation_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + compensation_data_size_ctype = _visatype.ViInt32(error_code) # case S180 + compensation_data_size = compensation_data_size_ctype.value # case B590 + compensation_data_array = array.array("b", [0]) * compensation_data_size # case B590 + compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=compensation_data_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niDCPower_GetLCRCompensationData(vi_ctype, channel_name_ctype, compensation_data_size_ctype, compensation_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return compensation_data_array + + def get_lcr_compensation_last_date_and_time(self, channel_name, compensation_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + compensation_type_ctype = _visatype.ViInt32(compensation_type.value) # case S130 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_GetLCRCompensationLastDateAndTime(vi_ctype, channel_name_ctype, compensation_type_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_lcr_custom_cable_compensation_data(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + custom_cable_compensation_data_size_ctype = _visatype.ViInt32() # case S170 + custom_cable_compensation_data_ctype = None # case B580 + error_code = self._library.niDCPower_GetLCRCustomCableCompensationData(vi_ctype, channel_name_ctype, custom_cable_compensation_data_size_ctype, custom_cable_compensation_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + custom_cable_compensation_data_size_ctype = _visatype.ViInt32(error_code) # case S180 + custom_cable_compensation_data_size = custom_cable_compensation_data_size_ctype.value # case B590 + custom_cable_compensation_data_array = array.array("b", [0]) * custom_cable_compensation_data_size # case B590 + custom_cable_compensation_data_ctype = _get_ctypes_pointer_for_buffer(value=custom_cable_compensation_data_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niDCPower_GetLCRCustomCableCompensationData(vi_ctype, channel_name_ctype, custom_cable_compensation_data_size_ctype, custom_cable_compensation_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return custom_cable_compensation_data_array + + def get_self_cal_last_date_and_time(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDCPower_GetSelfCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_self_cal_last_temp(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_GetSelfCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niDCPower_ImportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDCPower_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def initialize_with_channels(self, resource_name, channels, reset, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + channels_ctype = ctypes.create_string_buffer(channels.encode(self._encoding)) # case C020 + reset_ctype = _visatype.ViBoolean(reset) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niDCPower_InitializeWithChannels(resource_name_ctype, channels_ctype, reset_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initialize_with_independent_channels(self, resource_name, reset, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + reset_ctype = _visatype.ViBoolean(reset) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niDCPower_InitializeWithIndependentChannels(resource_name_ctype, reset_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initiate_with_channels(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_InitiateWithChannels(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDCPower_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def measure(self, channel_name, measurement_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + measurement_type_ctype = _visatype.ViInt32(measurement_type.value) # case S130 + measurement_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_Measure(vi_ctype, channel_name_ctype, measurement_type_ctype, None if measurement_ctype is None else (ctypes.pointer(measurement_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(measurement_ctype.value) + + def measure_multiple(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + voltage_measurements_size = self.parse_channel_count(channel_name) # case B560 + voltage_measurements_array = array.array("d", [0]) * voltage_measurements_size # case B560 + voltage_measurements_ctype = _get_ctypes_pointer_for_buffer(value=voltage_measurements_array, library_type=_visatype.ViReal64) # case B560 + current_measurements_size = self.parse_channel_count(channel_name) # case B560 + current_measurements_array = array.array("d", [0]) * current_measurements_size # case B560 + current_measurements_ctype = _get_ctypes_pointer_for_buffer(value=current_measurements_array, library_type=_visatype.ViReal64) # case B560 + error_code = self._library.niDCPower_MeasureMultiple(vi_ctype, channel_name_ctype, voltage_measurements_ctype, current_measurements_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return voltage_measurements_array, current_measurements_array + + def measure_multiple_lcr(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + measurements_size = self.parse_channel_count(channel_name) # case B560 + measurements_ctype = _get_ctypes_pointer_for_buffer(library_type=lcr_measurement.struct_NILCRMeasurement, size=measurements_size) # case B560 + error_code = self._library.niDCPower_MeasureMultipleLCR(vi_ctype, channel_name_ctype, measurements_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [lcr_measurement.LCRMeasurement(measurements_ctype[i]) for i in range(self.parse_channel_count(channel_name))] + + def parse_channel_count(self, channels_string): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channels_string_ctype = ctypes.create_string_buffer(channels_string.encode(self._encoding)) # case C010 + number_of_channels_ctype = _visatype.ViUInt32() # case S220 + error_code = self._library.niDCPower_ParseChannelCount(vi_ctype, channels_string_ctype, None if number_of_channels_ctype is None else (ctypes.pointer(number_of_channels_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(number_of_channels_ctype.value) + + def perform_lcr_load_compensation(self, channel_name, compensation_spots): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + num_compensation_spots_ctype = _visatype.ViInt32(0 if compensation_spots is None else len(compensation_spots)) # case S160 + compensation_spots_ctype = _get_ctypes_pointer_for_buffer([lcr_load_compensation_spot.struct_NILCRLoadCompensationSpot(c) for c in compensation_spots], library_type=lcr_load_compensation_spot.struct_NILCRLoadCompensationSpot) # case B540 + error_code = self._library.niDCPower_PerformLCRLoadCompensation(vi_ctype, channel_name_ctype, num_compensation_spots_ctype, compensation_spots_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_lcr_open_compensation(self, channel_name, additional_frequencies): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + num_frequencies_ctype = _visatype.ViInt32(0 if additional_frequencies is None else len(additional_frequencies)) # case S160 + additional_frequencies_ctype = _get_ctypes_pointer_for_buffer(value=additional_frequencies, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niDCPower_PerformLCROpenCompensation(vi_ctype, channel_name_ctype, num_frequencies_ctype, additional_frequencies_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_lcr_open_custom_cable_compensation(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_PerformLCROpenCustomCableCompensation(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_lcr_short_compensation(self, channel_name, additional_frequencies): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + num_frequencies_ctype = _visatype.ViInt32(0 if additional_frequencies is None else len(additional_frequencies)) # case S160 + additional_frequencies_ctype = _get_ctypes_pointer_for_buffer(value=additional_frequencies, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niDCPower_PerformLCRShortCompensation(vi_ctype, channel_name_ctype, num_frequencies_ctype, additional_frequencies_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_lcr_short_custom_cable_compensation(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_PerformLCRShortCustomCableCompensation(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def query_in_compliance(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + in_compliance_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDCPower_QueryInCompliance(vi_ctype, channel_name_ctype, None if in_compliance_ctype is None else (ctypes.pointer(in_compliance_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(in_compliance_ctype.value) + + def query_latched_output_cutoff_state(self, channel_name, output_cutoff_reason): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + output_cutoff_reason_ctype = _visatype.ViInt32(output_cutoff_reason.value) # case S130 + output_cutoff_state_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDCPower_QueryLatchedOutputCutoffState(vi_ctype, channel_name_ctype, output_cutoff_reason_ctype, None if output_cutoff_state_ctype is None else (ctypes.pointer(output_cutoff_state_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(output_cutoff_state_ctype.value) + + def query_max_current_limit(self, channel_name, voltage_level): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + voltage_level_ctype = _visatype.ViReal64(voltage_level) # case S150 + max_current_limit_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_QueryMaxCurrentLimit(vi_ctype, channel_name_ctype, voltage_level_ctype, None if max_current_limit_ctype is None else (ctypes.pointer(max_current_limit_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(max_current_limit_ctype.value) + + def query_max_voltage_level(self, channel_name, current_limit): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + current_limit_ctype = _visatype.ViReal64(current_limit) # case S150 + max_voltage_level_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_QueryMaxVoltageLevel(vi_ctype, channel_name_ctype, current_limit_ctype, None if max_voltage_level_ctype is None else (ctypes.pointer(max_voltage_level_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(max_voltage_level_ctype.value) + + def query_min_current_limit(self, channel_name, voltage_level): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + voltage_level_ctype = _visatype.ViReal64(voltage_level) # case S150 + min_current_limit_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_QueryMinCurrentLimit(vi_ctype, channel_name_ctype, voltage_level_ctype, None if min_current_limit_ctype is None else (ctypes.pointer(min_current_limit_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(min_current_limit_ctype.value) + + def query_output_state(self, channel_name, output_state): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + output_state_ctype = _visatype.ViInt32(output_state.value) # case S130 + in_state_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDCPower_QueryOutputState(vi_ctype, channel_name_ctype, output_state_ctype, None if in_state_ctype is None else (ctypes.pointer(in_state_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(in_state_ctype.value) + + def read_current_temperature(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDCPower_ReadCurrentTemperature(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def reset_device(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDCPower_ResetDevice(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niDCPower_ResetWithChannels(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_defaults(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDCPower_ResetWithDefaults(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_edge_trigger(self, channel_name, trigger): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 + error_code = self._library.niDCPower_SendSoftwareEdgeTriggerWithChannels(vi_ctype, channel_name_ctype, trigger_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 + error_code = self._library.niDCPower_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 + error_code = self._library.niDCPower_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt64(attribute_value) # case S150 + error_code = self._library.niDCPower_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 + error_code = self._library.niDCPower_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 + error_code = self._library.niDCPower_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niDCPower_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_sequence(self, channel_name, values, source_delays): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + values_ctype = _get_ctypes_pointer_for_buffer(value=values, library_type=_visatype.ViReal64) # case B550 + source_delays_ctype = _get_ctypes_pointer_for_buffer(value=source_delays, library_type=_visatype.ViReal64) # case B550 + size_ctype = _visatype.ViUInt32(0 if values is None else len(values)) # case S160 + error_code = self._library.niDCPower_SetSequence(vi_ctype, channel_name_ctype, values_ctype, source_delays_ctype, size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDCPower_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_for_event(self, channel_name, event_id, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + event_id_ctype = _visatype.ViInt32(event_id.value) # case S130 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + error_code = self._library.niDCPower_WaitForEventWithChannels(vi_ctype, channel_name_ctype, event_id_ctype, timeout_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDCPower_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niDCPower_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niDCPower_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nidcpower/nidcpower/_library_singleton.py b/generated/nidcpower/nidcpower/_library_singleton.py new file mode 100644 index 0000000000..4fdb31ccdc --- /dev/null +++ b/generated/nidcpower/nidcpower/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nidcpower._library as _library +import nidcpower.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nidcpower', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'nidcpower_32.dll', 'type': 'windll'}, + '64bit': {'name': 'nidcpower_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nidcpower. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nidcpower/nidcpower/_visatype.py b/generated/nidcpower/nidcpower/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nidcpower/nidcpower/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nidcpower/nidcpower/enums.py b/generated/nidcpower/nidcpower/enums.py new file mode 100644 index 0000000000..069dff0a13 --- /dev/null +++ b/generated/nidcpower/nidcpower/enums.py @@ -0,0 +1,680 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class ApertureTimeAutoMode(Enum): + OFF = 1135 + r''' + Disables automatic aperture time scaling. The aperture_time property specifies the aperture time for all ranges. + ''' + SHORT = 1136 + r''' + Prioritizes measurement speed over measurement accuracy by quickly scaling down aperture time in larger current ranges. The aperture_time property specifies the aperture time for the minimum range. + ''' + NORMAL = 1137 + r''' + Balances measurement accuracy and speed by scaling down aperture time in larger current ranges. The aperture_time property specifies the aperture time for the minimum range. + ''' + LONG = 1138 + r''' + Prioritizes accuracy while still decreasing measurement time by slowly scaling down aperture time in larger current ranges. The aperture_time property specifies the aperture time for the minimum range. + ''' + + +class ApertureTimeUnits(Enum): + SECONDS = 1028 + r''' + Specifies aperture time in seconds. + ''' + POWER_LINE_CYCLES = 1029 + r''' + Specifies aperture time in power line cycles (PLCs). + ''' + + +class AutoZero(Enum): + OFF = 0 + r''' + Disables auto zero. + ''' + ONCE = 1024 + r''' + Makes zero conversions following the first measurement after initiating the device. The device uses these zero conversions for the preceding measurement and future measurements until the device is reinitiated. + ''' + ON = 1 + r''' + Makes zero conversions for every measurement. + ''' + + +class AutorangeApertureTimeMode(Enum): + AUTO = 1110 + r''' + NI-DCPower optimizes the aperture time for the autorange algorithm based on the module range. + ''' + CUSTOM = 1111 + r''' + The user specifies a minimum aperture time for the algorithm using the autorange_minimum_aperture_time property and the corresponding autorange_minimum_aperture_time_units property. + ''' + + +class AutorangeBehavior(Enum): + UP_TO_LIMIT_THEN_DOWN = 1107 + r''' + Go to limit range then range down as needed until measured value is within thresholds. + ''' + UP = 1108 + r''' + go up one range when the upper threshold is reached. + ''' + UP_AND_DOWN = 1109 + r''' + go up or down one range when the upper/lower threshold is reached. + ''' + + +class AutorangeThresholdMode(Enum): + NORMAL = 1112 + r''' + Thresholds are selected based on a balance between accuracy and hysteresis. + ''' + FAST_STEP = 1113 + r''' + Optimized for faster changes in the measured signal. Thresholds are configured to be a smaller percentage of the range. + ''' + HIGH_HYSTERESIS = 1114 + r''' + Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a larger percentage of the range. + ''' + MEDIUM_HYSTERESIS = 1115 + r''' + Optimized for noisy signals to minimize frequent and unpredictable range changes. Thresholds are configured to be a medium percentage of the range. + ''' + HOLD = 1116 + r''' + Attempt to maintain the active range. Thresholds will favor the active range. + ''' + + +class CableLength(Enum): + ZERO_M = 1121 + r''' + Uses predefined cable compensation data for a 0m cable (direct connection). + ''' + NI_STANDARD_0_5M = 1153 + r''' + Uses predefined cable compensation data for an NI standard 0.5m coaxial cable. + ''' + NI_STANDARD_1M = 1122 + r''' + Uses predefined cable compensation data for an NI standard 1m coaxial cable. + ''' + NI_STANDARD_2M = 1123 + r''' + Uses predefined cable compensation data for an NI standard 2m coaxial cable. + ''' + NI_STANDARD_4M = 1124 + r''' + Uses predefined cable compensation data for an NI standard 4m coaxial cable. + ''' + NI_STANDARD_TRIAXIAL_1M = 1139 + r''' + Uses predefined cable compensation data for an NI standard 1m triaxial cable. + ''' + NI_STANDARD_TRIAXIAL_2M = 1140 + r''' + Uses predefined cable compensation data for an NI standard 2m triaxial cable. + ''' + NI_STANDARD_TRIAXIAL_4M = 1141 + r''' + Uses predefined cable compensation data for an NI standard 4m triaxial cable. + ''' + CUSTOM_ONBOARD_STORAGE = 1125 + r''' + Uses previously generated custom cable compensation data from onboard storage. Only the most recently performed compensation data for each custom cable compensation type (open, short) is stored. + ''' + CUSTOM_AS_CONFIGURED = 1126 + r''' + Uses the custom cable compensation data supplied to configure_lcr_custom_cable_compensation. Use this option to manage multiple sets of custom cable compensation data. + ''' + + +class ComplianceLimitSymmetry(Enum): + SYMMETRIC = 0 + r''' + Compliance limits are specified symmetrically about 0. + ''' + ASYMMETRIC = 1 + r''' + Compliance limits can be specified asymmetrically with respect to 0. + ''' + + +class ConductionVoltageMode(Enum): + AUTOMATIC = 1155 + r''' + The conduction voltage feature is only enabled when you set the output_function property to OutputFunction.DC_CURRENT or OutputFunction.CONSTANT_POWER. + ''' + ENABLED = 1156 + r''' + The conduction voltage feature is enabled. + ''' + DISABLED = 1157 + r''' + The conduction voltage feature is disabled. + ''' + + +class CurrentLimitBehavior(Enum): + REGULATE = 0 + r''' + The channel acts to restrict the output current to the value of the Current Limit property when the actual output on the channel reaches or exceeds that value. + ''' + TRIP = 1 + r''' + The channel disables the output when the actual output current on the channel reaches or exceeds the value of the Current Limit property. + ''' + + +class DCNoiseRejection(Enum): + SECOND_ORDER = 1043 + r''' + Second-order rejection of DC noise. + ''' + NORMAL = 1044 + r''' + Normal rejection of DC noise. + ''' + + +class Event(Enum): + SOURCE_COMPLETE = 1030 + r''' + Specifies the Source Complete event. + ''' + MEASURE_COMPLETE = 1031 + r''' + Specifies the Measure Complete event. + ''' + SEQUENCE_ITERATION_COMPLETE = 1032 + r''' + Specifies the Sequence Iteration Complete event. + ''' + SEQUENCE_ENGINE_DONE = 1033 + r''' + Specifies the Sequence Engine Done event. + ''' + PULSE_COMPLETE = 1051 + r''' + Specifies the Pulse Complete event. + ''' + READY_FOR_PULSE_TRIGGER = 1052 + r''' + Specifies the Ready for Pulse Trigger event. + ''' + + +class EventOutputBehavior(Enum): + PULSE = 1147 + r''' + Output generates a pulse when the event is triggered. + ''' + TOGGLE = 1148 + r''' + Output toggles state when the event is triggered. + ''' + + +class EventToggleInitialState(Enum): + LOW = 1149 + r''' + The initial state is low. + ''' + HIGH = 1150 + r''' + The initial state is high. + ''' + + +class InstrumentMode(Enum): + SMU_PS = 1061 + r''' + The channel operates as an SMU/power supply. + ''' + LCR = 1062 + r''' + The channel operates as an LCR meter. + ''' + E_LOAD = 1154 + r''' + The channel operates as an electronic load (E-Load). + ''' + + +class _IsolationState(Enum): + ISOLATED = 1128 + r''' + The channel is disconnected from chassis ground. + ''' + NON_ISOLATED = 1129 + r''' + The channel is connected to chassis ground. + ''' + + +class LCRCompensationType(Enum): + OPEN = 1130 + r''' + Open LCR compensation. + ''' + SHORT = 1131 + r''' + Short LCR compensation. + ''' + LOAD = 1132 + r''' + Load LCR compensation. + ''' + OPEN_CUSTOM_CABLE = 1133 + r''' + Open custom cable compensation. + ''' + SHORT_CUSTOM_CABLE = 1134 + r''' + Short custom cable compensation. + ''' + + +class LCRDCBiasSource(Enum): + OFF = 1065 + r''' + Disables DC bias in LCR mode. + ''' + VOLTAGE = 1066 + r''' + Applies a constant voltage bias, as defined by the lcr_dc_bias_voltage_level property. + ''' + CURRENT = 1067 + r''' + Applies a constant current bias, as defined by the lcr_dc_bias_current_level property. + ''' + + +class LCRDCBiasTransientResponse(Enum): + NORMAL = 1151 + r''' + NI-DCPower automatically applies transient response values for DC bias. + ''' + CUSTOM = 1152 + r''' + NI-DCPower applies the transient response that you set manually with transient_response for DC bias. Search ni.com for information on configuring transient response. + ''' + + +class _LCRImpedanceAutoRange(Enum): + OFF = 1068 + ON = 1070 + + +class LCRImpedanceRangeSource(Enum): + IMPEDANCE_RANGE = 1142 + r''' + Uses the impedance range you specify with the lcr_impedance_range property. + ''' + LOAD_CONFIGURATION = 1143 + r''' + Computes the impedance range to select based on the values you supply to the lcr_load_resistance, lcr_load_inductance, and lcr_load_capacitance properties. NI-DCPower uses a series model of load resistance, load inductance, and load capacitance to compute the impedance range. + ''' + + +class LCRMeasurementTime(Enum): + SHORT = 1071 + r''' + Uses a short aperture time for LCR measurements. + ''' + MEDIUM = 1072 + r''' + Uses a medium aperture time for LCR measurements. + ''' + LONG = 1073 + r''' + Uses a long aperture time for LCR measurements. + ''' + CUSTOM = 1117 + r''' + Uses a custom aperture time for LCR measurements as specified by the lcr_custom_measurement_time property. + ''' + + +class LCROpenShortLoadCompensationDataSource(Enum): + ONBOARD_STORAGE = 1074 + r''' + Uses previously generated LCR compensation data. Only the most recently performed compensation data for each LCR compensation type (open, short, and load) is stored. + ''' + AS_DEFINED = 1075 + r''' + Uses the LCR compensation data represented by the relevant LCR compensation properties as generated by perform_lcr_open_compensation, perform_lcr_short_compensation, and perform_lcr_load_compensation. Use this option to manage multiple sets of LCR compensation data. This option applies compensation data from the following properties: lcr_open_conductance, lcr_open_susceptance, lcr_short_resistance, lcr_short_reactance, lcr_measured_load_resistance, lcr_measured_load_reactance, lcr_actual_load_resistance, lcr_actual_load_reactance. + ''' + AS_CONFIGURED = 1146 + r''' + Uses the LCR compensation data supplied to configure_lcr_compensation. Use this option to manage multiple sets of LCR compensation data. + ''' + + +class LCRReferenceValueType(Enum): + IMPEDANCE = 1076 + r''' + The actual impedance, comprising real resistance and imaginary reactance, of your DUT. Supply resistance, in ohms, to reference value A; supply reactance, in ohms, to reference value B. + ''' + IDEAL_CAPACITANCE = 1077 + r''' + The ideal capacitance of your DUT. Supply capacitance, in farads, to reference value A. + ''' + IDEAL_INDUCTANCE = 1078 + r''' + The ideal inductance of your DUT. Supply inductance, in henrys, to reference value A. + ''' + IDEAL_RESISTANCE = 1079 + r''' + The ideal resistance of your DUT. Supply resistance, in ohms, to reference value A. + ''' + + +class LCRSourceDelayMode(Enum): + AUTOMATIC = 1144 + r''' + NI-DCPower automatically applies source delay of sufficient duration to account for settling time. + ''' + MANUAL = 1145 + r''' + NI-DCPower applies the source delay that you set manually with source_delay. You can use this option to set a shorter delay to reduce measurement time at the possible expense of measurement accuracy. + ''' + + +class LCRStimulusFunction(Enum): + VOLTAGE = 1063 + r''' + Applies an AC voltage for LCR stimulus. + ''' + CURRENT = 1064 + r''' + Applies an AC current for LCR stimulus. + ''' + + +class MeasureWhen(Enum): + AUTOMATICALLY_AFTER_SOURCE_COMPLETE = 1025 + r''' + Acquires a measurement after each Source Complete event completes. + ''' + ON_DEMAND = 1026 + r''' + Acquires a measurement when the measure method or measure_multiple method is called. + ''' + ON_MEASURE_TRIGGER = 1027 + r''' + Acquires a measurement when a Measure trigger is received. + ''' + + +class MeasurementTypes(Enum): + CURRENT = 0 + r''' + The device measures current. + ''' + VOLTAGE = 1 + r''' + The device measures voltage. + ''' + + +class OutputCapacitance(Enum): + LOW = 1010 + r''' + Output Capacitance is low. + ''' + HIGH = 1011 + r''' + Output Capacitance is high. + ''' + + +class OutputCutoffReason(Enum): + ALL = -1 + r''' + Queries any output cutoff condition; clears all output cutoff conditions. + ''' + VOLTAGE_OUTPUT_HIGH = 1 + r''' + Queries or clears cutoff conditions when the output exceeded the high cutoff limit for voltage output. + ''' + VOLTAGE_OUTPUT_LOW = 2 + r''' + Queries or clears cutoff conditions when the output fell below the low cutoff limit for voltage output. + ''' + CURRENT_MEASURE_HIGH = 4 + r''' + Queries or clears cutoff conditions when the measured current exceeded the high cutoff limit for current output. + ''' + CURRENT_MEASURE_LOW = 8 + r''' + Queries or clears cutoff conditions when the measured current fell below the low cutoff limit for current output. + ''' + VOLTAGE_CHANGE_HIGH = 16 + r''' + Queries or clears cutoff conditions when the voltage slew rate increased beyond the positive change cutoff for voltage output. + ''' + VOLTAGE_CHANGE_LOW = 32 + r''' + Queries or clears cutoff conditions when the voltage slew rate decreased beyond the negative change cutoff for voltage output. + ''' + CURRENT_CHANGE_HIGH = 64 + r''' + Queries or clears cutoff conditions when the current slew rate increased beyond the positive change cutoff for current output. + ''' + CURRENT_CHANGE_LOW = 128 + r''' + Queries or clears cutoff conditions when the current slew rate decreased beyond the negative change cutoff for current output. + ''' + CURRENT_SATURATED = 512 + r''' + Queries or clears cutoff conditions when the measured current saturates the current range. + ''' + VOLTAGE_MEASURE_HIGH = 1024 + r''' + Queries or clears cutoff conditions when the measured voltage exceeded the high cutoff limit for voltage output. + ''' + VOLTAGE_MEASURE_LOW = 2048 + r''' + Queries or clears cutoff conditions when the measured voltage fell below the low cutoff limit for voltage output. + ''' + + +class OutputFunction(Enum): + DC_VOLTAGE = 1006 + r''' + Sets the output method to DC voltage. + ''' + DC_CURRENT = 1007 + r''' + Sets the output method to DC current. + ''' + PULSE_VOLTAGE = 1049 + r''' + Sets the output method to pulse voltage. + ''' + PULSE_CURRENT = 1050 + r''' + Sets the output method to pulse current. + ''' + CONSTANT_RESISTANCE = 1161 + r''' + Sets the output method to constant resistance. + ''' + CONSTANT_POWER = 1162 + r''' + Sets the output method to constant power. + ''' + + +class OutputStates(Enum): + CONSTANT_VOLTAGE = 0 + r''' + The channel maintains a constant voltage by adjusting the current. + ''' + CONSTANT_CURRENT = 1 + r''' + The channel maintains a constant current by adjusting the voltage. + ''' + INHIBITED = 1163 + r''' + The channel is in the inhibited state. + ''' + + +class Polarity(Enum): + HIGH = 1018 + r''' + A high pulse occurs when the event is generated. The exported signal is low level both before and after the event is generated. + ''' + LOW = 1019 + r''' + A low pulse occurs when the event is generated. The exported signal is high level both before and after the event is generated. + ''' + + +class PowerAllocationMode(Enum): + DISABLED = 1058 + r''' + The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower does not perform a sourcing power check. If the required power is greater than the maximum sourcing power, the device attempts to source the required amount and may shut down to prevent damage. + ''' + AUTOMATIC = 1059 + r''' + The device attempts to source, on each active channel, the power that the present source configuration requires; NI-DCPower performs a sourcing power check. If the required power is greater than the maximum sourcing power, the device does not exceed the maximum power, and NI-DCPower returns an error. + ''' + MANUAL = 1060 + r''' + The device attempts to source, on each active channel, the power you request with the requested_power_allocation property; NI-DCPower performs a sourcing power check. If the requested power is either less than the required power for the present source configuration or greater than the maximum sourcing power, the device does not exceed the requested or allowed power, respectively, and NI-DCPower returns an error. + ''' + + +class PowerSource(Enum): + INTERNAL = 1003 + r''' + Uses the PXI chassis power source. + ''' + AUXILIARY = 1004 + r''' + Uses the auxiliary power source connected to the device. + ''' + AUTOMATIC = 1005 + r''' + Uses the auxiliary power source if it is available; otherwise uses the PXI chassis power source. + ''' + + +class PowerSourceInUse(Enum): + INTERNAL = 1003 + r''' + Uses the PXI chassis power source. + ''' + AUXILIARY = 1004 + r''' + Uses the auxiliary power source connected to the device. Only the NI PXI-4110, NI PXIe-4112, NI PXIe-4113, and NI PXI-4130 support this value. This is the only supported value for the NI PXIe-4112 and NI PXIe-4113. + ''' + + +class SelfCalibrationPersistence(Enum): + KEEP_IN_MEMORY = 1045 + r''' + Keep new self calibration values in memory only. + ''' + WRITE_TO_EEPROM = 1046 + r''' + Write new self calibration values to hardware. + ''' + + +class SendSoftwareEdgeTriggerType(Enum): + START = 1034 + r''' + Asserts the Start trigger. + ''' + SOURCE = 1035 + r''' + Asserts the Source trigger. + ''' + MEASURE = 1036 + r''' + Asserts the Measure trigger. + ''' + SEQUENCE_ADVANCE = 1037 + r''' + Asserts the Sequence Advance trigger. + ''' + PULSE = 1053 + r''' + Asserts the Pulse trigger. + ''' + SHUTDOWN = 1118 + r''' + Asserts the Shutdown trigger. + ''' + + +class Sense(Enum): + LOCAL = 1008 + r''' + Local sensing is selected. + ''' + REMOTE = 1009 + r''' + Remote sensing is selected. + ''' + + +class SourceMode(Enum): + SINGLE_POINT = 1020 + r''' + The source unit applies a single source configuration. + ''' + SEQUENCE = 1021 + r''' + The source unit applies a list of voltage or current configurations sequentially. + ''' + + +class TransientResponse(Enum): + NORMAL = 1038 + r''' + The output responds to changes in load at a normal speed. + ''' + FAST = 1039 + r''' + The output responds to changes in load quickly. + ''' + SLOW = 1041 + r''' + The output responds to changes in load slowly. + ''' + CUSTOM = 1042 + r''' + The output responds to changes in load based on specified values. + ''' + + +class TriggerType(Enum): + NONE = 1012 + r''' + No trigger is configured. + ''' + DIGITAL_EDGE = 1014 + r''' + The data operation starts when a digital edge is detected. + ''' + SOFTWARE_EDGE = 1015 + r''' + The data operation starts when a software trigger occurs. + ''' diff --git a/generated/nidcpower/nidcpower/errors.py b/generated/nidcpower/nidcpower/errors.py new file mode 100644 index 0000000000..2f4a964e68 --- /dev/null +++ b/generated/nidcpower/nidcpower/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-DCPower''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-DCPower driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-DCPower driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-DCPower runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-DCPower driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-DCPower runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-DCPower driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-DCPower runtime returned an unexpected value. This can occur if it is too new for the nidcpower Python module. Upgrade the nidcpower Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nidcpower.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nidcpower/nidcpower/grpc_session_options.py b/generated/nidcpower/nidcpower/grpc_session_options.py new file mode 100644 index 0000000000..29283b36ca --- /dev/null +++ b/generated/nidcpower/nidcpower/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nidcpower_grpc.NiDCPower' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nidcpower/nidcpower/lcr_load_compensation_spot.py b/generated/nidcpower/nidcpower/lcr_load_compensation_spot.py new file mode 100644 index 0000000000..fcab86a544 --- /dev/null +++ b/generated/nidcpower/nidcpower/lcr_load_compensation_spot.py @@ -0,0 +1,106 @@ +import ctypes +import platform + +import nidcpower._visatype +import nidcpower.enums as enums + + +# This class is an internal ctypes implementation detail that corresponds to +# NILCRLoadCompensationSpot in the C API +class struct_NILCRLoadCompensationSpot(ctypes.Structure): # noqa N801 + if (platform.system() == "Windows" and platform.architecture()[0] == "64bit") or \ + platform.system() == "Linux" or platform.system() == "Darwin": + _pack_ = 8 + else: + _pack_ = 1 + _fields_ = [ + ("frequency", nidcpower._visatype.ViReal64), + ("reference_value_type", nidcpower._visatype.ViInt32), + ("reference_value_a", nidcpower._visatype.ViReal64), + ("reference_value_b", nidcpower._visatype.ViReal64), + ] + + def __init__(self, data): + super(ctypes.Structure, self).__init__() + self.frequency = data.frequency + self.reference_value_type = enums.LCRReferenceValueType(data.reference_value_type).value + if self.reference_value_type == enums.LCRReferenceValueType.IMPEDANCE.value: + self.reference_value_a = data.reference_value.real + self.reference_value_b = data.reference_value.imag + else: + self.reference_value_a = data.reference_value + self.reference_value_b = 0.0 + + +class LCRLoadCompensationSpot: + """Specifies a DUT specification for a given frequency to use in LCR load compensation.""" + + _lcr_reference_value_type_to_label_and_units = { + enums.LCRReferenceValueType.IMPEDANCE: { + "label": "Impedance ", + "unit": "Ω" + }, + enums.LCRReferenceValueType.IDEAL_CAPACITANCE: { + "label": "Ideal Capacitance", + "unit": "F" + }, + enums.LCRReferenceValueType.IDEAL_INDUCTANCE: { + "label": "Ideal Inductance ", + "unit": "H" + }, + enums.LCRReferenceValueType.IDEAL_RESISTANCE: { + "label": "Ideal Resistance ", + "unit": "Ω" + }, + } + + def __init__(self, frequency, reference_value_type, reference_value): + """LCRLoadCompensationSpot + + Creates and returns an instance of LCRLoadCompensationSpot. + + Args: + frequency (float): The spot frequency, in Hz. + + reference_value_type (enums.LCRReferenceValueType): A known specification value of your + DUT to use as the basis for load compensation. + + reference_value (complex or float): A value that describes the reference_value_type + specification. Use as indicated by the reference_value_type option you choose. + """ + self.frequency = frequency + self.reference_value_type = enums.LCRReferenceValueType(reference_value_type) + self.reference_value = reference_value + + def _create_copy(self, target_class): + try: + return target_class(frequency=self.frequency, reference_value_type=self.reference_value_type.value, reference_value=self.reference_value) + except ValueError: + return target_class(frequency=self.frequency, reference_value_type=self.reference_value_type.value, reference_value_a=self.reference_value.real, reference_value_b=self.reference_value.imag) + + def __repr__(self): + return "{}.{}(frequency={}, reference_value_type={}.{}.{}, reference_value={})".format( + self.__class__.__module__, + self.__class__.__qualname__, + self.frequency, + enums.LCRReferenceValueType.__module__, + enums.LCRReferenceValueType.__qualname__, + self.reference_value_type.name, + self.reference_value, + ) + + def __str__(self): + return "".join( + [ + "Frequency : {:,.6g} Hz\n{}: {:,.6g} {}\n".format( + self.frequency, + LCRLoadCompensationSpot._lcr_reference_value_type_to_label_and_units[ + self.reference_value_type + ]["label"], + self.reference_value, + LCRLoadCompensationSpot._lcr_reference_value_type_to_label_and_units[ + self.reference_value_type + ]["unit"], + ), + ] + ) diff --git a/generated/nidcpower/nidcpower/lcr_measurement.py b/generated/nidcpower/nidcpower/lcr_measurement.py new file mode 100644 index 0000000000..5930862787 --- /dev/null +++ b/generated/nidcpower/nidcpower/lcr_measurement.py @@ -0,0 +1,201 @@ +from collections import namedtuple +import ctypes + +import nidcpower._visatype +import nidcpower.enums as enums + + +# This class is an internal ctypes implementation detail that corresponds to +# NILCRMeasurement in the C API +class struct_NILCRMeasurement(ctypes.Structure): # noqa N801 + _pack_ = 8 + _fields_ = [ + # field_name field_ctype + ("vdc" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("idc" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("stimulus_frequency" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("ac_voltage_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("ac_voltage_imaginary", nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("ac_current_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("ac_current_imaginary", nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("z_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("z_imaginary" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("z_magnitude" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("z_phase" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("y_real" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("y_imaginary" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("y_magnitude" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("y_phase" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("ls" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("cs" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("rs" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("lp" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("cp" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("rp" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("d" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("q" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("measurement_mode" , nidcpower._visatype.ViUInt16 ), # noqa: E202,E203 + ("dc_in_compliance" , nidcpower._visatype.ViBoolean), # noqa: E202,E203 + ("ac_in_compliance" , nidcpower._visatype.ViBoolean), # noqa: E202,E203 + ("unbalanced" , nidcpower._visatype.ViBoolean), # noqa: E202,E203 + ("reserved1" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("reserved2" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("reserved3" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("reserved4" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("reserved5" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("reserved6" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ("reserved7" , nidcpower._visatype.ViReal64 ), # noqa: E202,E203 + ] + + +class LCRMeasurement: + """Specifies an LCR measurement. + + Data attributes: + channel (str): The channel name associated with this LCRMeasurement. + + vdc (float): The measured DC voltage, in volts. + + idc (float): The measured DC current, in amps. + + stimulus_frequency (float): The frequency of the LCR test signal, in Hz. + + ac_voltage (complex): The measured AC voltage, in volts RMS. + + ac_current (complex): The measured AC current, in amps RMS. + + z (complex): The complex impedance. + + z_magnitude_and_phase (tuple of float): The magnitude, in ohms, and phase angle, in degrees, + of the complex impedance. + + y (complex): The complex admittance. + + y_magnitude_and_phase (tuple of float): The magnitude, in siemens, and phase angle, in + degrees, of the complex admittance. + + series_lcr (LCR): The inductance, in henrys, the capacitance, in farads, and the resistance, + in ohms, as measured using a series circuit model. + + parallel_lcr (LCR): The inductance, in henrys, the capacitance, in farads, and the + resistance, in ohms, as measured using a parallel circuit model. + + d (float): The dissipation factor of the circuit. The dimensionless dissipation factor is + directly proportional to how quickly an oscillating system loses energy. D is the + reciprocal of Q, the quality factor. + + q (float): The quality factor of the circuit. The dimensionless quality factor is inversely + proportional to the degree of damping in a system. Q is the reciprocal of D, the + dissipation factor. + + measurement_mode (enums.InstrumentMode): The measurement mode. + **Defined Values**: + + +-----------------------+-----------------------------------------------------+ + | InstrumentMode.SMU_PS | The channel(s) are operating as a power supply/SMU. | + +-----------------------+-----------------------------------------------------+ + | InstrumentMode.LCR | The channel(s) are operating as an LCR meter. | + +-----------------------+-----------------------------------------------------+ + + dc_in_compliance (bool): Indicates whether the output was in DC compliance at the time the + measurement was taken. + + ac_in_compliance (bool): Indicates whether the output was in AC compliance at the time the + measurement was taken. + + unbalanced (bool): Indicates whether the bridge was unbalanced at the time the measurement + was taken. + """ + LCR = namedtuple(typename="LCR", field_names=("inductance", "capacitance", "resistance")) + + _lcr_measurement_field_metadata = [ + # field_name label(s) unit(s) + ("channel" , "Channel" , None ), # noqa: E202,E203 + ("vdc" , "DC voltage" , "V" ), # noqa: E202,E203 + ("idc" , "DC current" , "A" ), # noqa: E202,E203 + ("stimulus_frequency" , "Stimulus frequency" , "Hz" ), # noqa: E202,E203 + ("ac_voltage" , "AC voltage" , "V RMS" ), # noqa: E202,E203 + ("ac_current" , "AC current" , "A RMS" ), # noqa: E202,E203 + ("z" , "Impedance" , "Ω" ), # noqa: E202,E203 + ("z_magnitude_and_phase", ("Impedance magnitude", "Impedance phase") , ("Ω", "°") ), # noqa: E202,E203 + ("y" , "Admittance" , "S" ), # noqa: E202,E203 + ("y_magnitude_and_phase", ("Admittance magnitude", "Admittance phase") , ("S", "°") ), # noqa: E202,E203 + ("series_lcr" , ("Series inductance", "Series capacitance", "Series resistance") , ("H", "F", "Ω")), # noqa: E202,E203 + ("parallel_lcr" , ("Parallel inductance", "Parallel capacitance", "Parallel resistance"), ("H", "F", "Ω")), # noqa: E202,E203 + ("d" , "Dissipation factor" , None ), # noqa: E202,E203 + ("q" , "Quality factor" , None ), # noqa: E202,E203 + ("measurement_mode" , "Measurement mode" , None ), # noqa: E202,E203 + ("dc_in_compliance" , "DC in compliance" , None ), # noqa: E202,E203 + ("ac_in_compliance" , "AC in compliance" , None ), # noqa: E202,E203 + ("unbalanced" , "Unbalanced" , None ), # noqa: E202,E203 + ] + + def __init__(self, data): + """LCRMeasurement + + Creates and returns an instance of LCRMeasurement. + + Args: + data (struct_NILCRMeasurement): The LCR measurement ctypes instance returned by the driver. + """ + self.channel = "" + self.vdc = data.vdc + self.idc = data.idc + self.stimulus_frequency = data.stimulus_frequency + if hasattr(data, "ac_voltage_real"): + self.ac_voltage = complex(data.ac_voltage_real, data.ac_voltage_imaginary) + self.ac_current = complex(data.ac_current_real, data.ac_current_imaginary) + self.z = complex(data.z_real, data.z_imaginary) + self.y = complex(data.y_real, data.y_imaginary) + else: + self.ac_voltage = complex(data.ac_voltage.real, data.ac_voltage.imaginary) + self.ac_current = complex(data.ac_current.real, data.ac_current.imaginary) + self.z = complex(data.z.real, data.z.imaginary) + self.y = complex(data.y.real, data.y.imaginary) + self.z_magnitude_and_phase = (data.z_magnitude, data.z_phase) + self.y_magnitude_and_phase = (data.y_magnitude, data.y_phase) + self.series_lcr = LCRMeasurement.LCR( + inductance=data.ls, capacitance=data.cs, resistance=data.rs + ) + self.parallel_lcr = LCRMeasurement.LCR( + inductance=data.lp, capacitance=data.cp, resistance=data.rp + ) + self.d = data.d + self.q = data.q + self.measurement_mode = enums.InstrumentMode(data.measurement_mode) + self.dc_in_compliance = bool(data.dc_in_compliance) + self.ac_in_compliance = bool(data.ac_in_compliance) + self.unbalanced = bool(data.unbalanced) + + def __str__(self): + max_field_label_len = max( + len(max(field_label, key=len) if isinstance(field_label, tuple) else field_label) + for _, field_label, _ in LCRMeasurement._lcr_measurement_field_metadata + ) + field_value_strings = [] + for field_name, field_label, field_unit in LCRMeasurement._lcr_measurement_field_metadata: + # Determines row_format + if field_name in ( + "channel", + "measurement_mode", + "dc_in_compliance", + "ac_in_compliance", + "unbalanced" + ): + row_format = f"{{:<{max_field_label_len}}}: {{:}}{{}}\n" + else: + row_format = f"{{:<{max_field_label_len}}}: {{:,.6g}}{{}}\n" + # Process namedtuple fields + if isinstance(field_label, tuple) and isinstance(field_unit, tuple): + for label, unit, value in zip(field_label, field_unit, getattr(self, field_name)): + unit_string = f" {unit}" if unit is not None else "" + field_value_strings.append(row_format.format(label, value, unit_string)) + else: + field_value = getattr(self, field_name) + if field_name == "measurement_mode": + field_value = enums.InstrumentMode(field_value).name + elif field_name in ("dc_in_compliance", "ac_in_compliance", "unbalanced"): + field_value = bool(field_value) + unit_string = f" {field_unit}" if field_unit is not None else "" + field_value_strings.append(row_format.format(field_label, field_value, unit_string)) + return "".join(field_value_strings) diff --git a/generated/nidcpower/nidcpower/nidcpower_pb2.py b/generated/nidcpower/nidcpower/nidcpower_pb2.py new file mode 100644 index 0000000000..7211528ce4 --- /dev/null +++ b/generated/nidcpower/nidcpower/nidcpower_pb2.py @@ -0,0 +1,662 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidcpower.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import nidevice_pb2 as nidevice__pb2 +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fnidcpower.proto\x12\x0enidcpower_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\x92\x04\n\x10NILCRMeasurement\x12\x0b\n\x03vdc\x18\x01 \x01(\x01\x12\x0b\n\x03idc\x18\x02 \x01(\x01\x12\x1a\n\x12stimulus_frequency\x18\x03 \x01(\x01\x12\x32\n\nac_voltage\x18\x04 \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x32\n\nac_current\x18\x05 \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12)\n\x01z\x18\x06 \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x13\n\x0bz_magnitude\x18\x07 \x01(\x01\x12\x0f\n\x07z_phase\x18\x08 \x01(\x01\x12)\n\x01y\x18\t \x01(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x13\n\x0by_magnitude\x18\n \x01(\x01\x12\x0f\n\x07y_phase\x18\x0b \x01(\x01\x12\n\n\x02ls\x18\x0c \x01(\x01\x12\n\n\x02\x63s\x18\r \x01(\x01\x12\n\n\x02rs\x18\x0e \x01(\x01\x12\n\n\x02lp\x18\x0f \x01(\x01\x12\n\n\x02\x63p\x18\x10 \x01(\x01\x12\n\n\x02rp\x18\x11 \x01(\x01\x12\t\n\x01\x64\x18\x12 \x01(\x01\x12\t\n\x01q\x18\x13 \x01(\x01\x12\x18\n\x10measurement_mode\x18\x14 \x01(\r\x12\x18\n\x10\x64\x63_in_compliance\x18\x15 \x01(\x08\x12\x18\n\x10\x61\x63_in_compliance\x18\x16 \x01(\x08\x12\x12\n\nunbalanced\x18\x17 \x01(\x08\"\x82\x01\n\x19NILCRLoadCompensationSpot\x12\x11\n\tfrequency\x18\x01 \x01(\x01\x12\x1c\n\x14reference_value_type\x18\x02 \x01(\x11\x12\x19\n\x11reference_value_a\x18\x03 \x01(\x01\x12\x19\n\x11reference_value_b\x18\x04 \x01(\x01\"\xd3\x01\n\x1dInitializeWithChannelsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08\x63hannels\x18\x03 \x01(\t\x12\r\n\x05reset\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x90\x01\n\x1eInitializeWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa2\x01\n\x1a\x43onfigureSourceModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\x0bsource_mode\x18\x02 \x01(\x0e\x32\x1a.nidcpower_grpc.SourceModeH\x00\x12\x19\n\x0fsource_mode_raw\x18\x03 \x01(\x11H\x00\x42\x12\n\x10source_mode_enum\"-\n\x1b\x43onfigureSourceModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb7\x01\n\x1e\x43onfigureOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x08\x66unction\x18\x03 \x01(\x0e\x32\x1e.nidcpower_grpc.OutputFunctionH\x00\x12\x16\n\x0c\x66unction_raw\x18\x04 \x01(\x11H\x00\x42\x0f\n\rfunction_enum\"1\n\x1f\x43onfigureOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x1d\x43onfigureOutputEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\"0\n\x1e\x43onfigureOutputEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"u\n\x12SetSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0e\n\x06values\x18\x03 \x03(\x01\x12\x15\n\rsource_delays\x18\x04 \x03(\x01\"%\n\x13SetSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"g\n\x1c\x43onfigureVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"/\n\x1d\x43onfigureVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xca\x01\n\x1c\x43onfigureCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x08\x62\x65havior\x18\x03 \x01(\x0e\x32$.nidcpower_grpc.CurrentLimitBehaviorH\x00\x12\x16\n\x0c\x62\x65havior_raw\x18\x04 \x01(\x11H\x00\x12\r\n\x05limit\x18\x05 \x01(\x01\x42\x0f\n\rbehavior_enum\"/\n\x1d\x43onfigureCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureVoltageLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureVoltageLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureCurrentLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureCurrentLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n ConfigureOutputResistanceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x12\n\nresistance\x18\x03 \x01(\x01\"3\n!ConfigureOutputResistanceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"g\n\x1c\x43onfigureCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"/\n\x1d\x43onfigureCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureCurrentLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureCurrentLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"g\n\x1c\x43onfigureVoltageLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"/\n\x1d\x43onfigureVoltageLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigureVoltageLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"4\n\"ConfigureVoltageLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"4\n\"ConfigurePulseVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"4\n\"ConfigurePulseCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseVoltageLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseVoltageLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseCurrentLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseCurrentLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"4\n\"ConfigurePulseCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n!ConfigurePulseVoltageLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"4\n\"ConfigurePulseVoltageLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%ConfigurePulseBiasVoltageLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05limit\x18\x03 \x01(\x01\"8\n&ConfigurePulseBiasVoltageLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseCurrentLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseCurrentLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n&ConfigurePulseVoltageLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"9\n\'ConfigurePulseVoltageLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x91\x01\n\x1d\x43reateAdvancedSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rsequence_name\x18\x02 \x01(\t\x12\x15\n\rattribute_ids\x18\x03 \x03(\x11\x12\x1e\n\x16set_as_active_sequence\x18\x04 \x01(\x08\"0\n\x1e\x43reateAdvancedSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n!CreateAdvancedSequenceStepRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12set_as_active_step\x18\x02 \x01(\x08\"4\n\"CreateAdvancedSequenceStepResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1d\x44\x65leteAdvancedSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rsequence_name\x18\x02 \x01(\t\"0\n\x1e\x44\x65leteAdvancedSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc6\x01\n\x1c\x43onfigureApertureTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\raperture_time\x18\x03 \x01(\x01\x12\x32\n\x05units\x18\x04 \x01(\x0e\x32!.nidcpower_grpc.ApertureTimeUnitsH\x00\x12\x13\n\tunits_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nunits_enum\"/\n\x1d\x43onfigureApertureTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x18\x43onfigureAutoZeroRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12-\n\tauto_zero\x18\x03 \x01(\x0e\x32\x18.nidcpower_grpc.AutoZeroH\x00\x12\x17\n\rauto_zero_raw\x18\x04 \x01(\x11H\x00\x42\x10\n\x0e\x61uto_zero_enum\"+\n\x19\x43onfigureAutoZeroResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcc\x01\n\"ConfigurePowerLineFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x13powerline_frequency\x18\x02 \x01(\x0e\x32$.nidcpower_grpc.PowerLineFrequenciesH\x00\x12!\n\x17powerline_frequency_raw\x18\x03 \x01(\x01H\x00\x42\x1a\n\x18powerline_frequency_enum\"5\n#ConfigurePowerLineFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9c\x01\n\x15\x43onfigureSenseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12&\n\x05sense\x18\x03 \x01(\x0e\x32\x15.nidcpower_grpc.SenseH\x00\x12\x13\n\tsense_raw\x18\x04 \x01(\x11H\x00\x42\x0c\n\nsense_enum\"(\n\x16\x43onfigureSenseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc1\x01\n\x0eMeasureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\x10measurement_type\x18\x03 \x01(\x0e\x32 .nidcpower_grpc.MeasurementTypesH\x00\x12\x1e\n\x14measurement_type_raw\x18\x04 \x01(\x11H\x00\x42\x17\n\x15measurement_type_enum\"6\n\x0fMeasureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bmeasurement\x18\x02 \x01(\x01\"R\n\x16MeasureMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"e\n\x17MeasureMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14voltage_measurements\x18\x02 \x03(\x01\x12\x1c\n\x14\x63urrent_measurements\x18\x03 \x03(\x01\"p\n\x14\x46\x65tchMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\r\n\x05\x63ount\x18\x04 \x01(\x11\"\x90\x01\n\x15\x46\x65tchMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14voltage_measurements\x18\x02 \x03(\x01\x12\x1c\n\x14\x63urrent_measurements\x18\x03 \x03(\x01\x12\x15\n\rin_compliance\x18\x04 \x03(\x08\x12\x14\n\x0c\x61\x63tual_count\x18\x05 \x01(\x11\"U\n\x19MeasureMultipleLCRRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"d\n\x1aMeasureMultipleLCRResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x0cmeasurements\x18\x02 \x03(\x0b\x32 .nidcpower_grpc.NILCRMeasurement\"s\n\x17\x46\x65tchMultipleLCRRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\r\n\x05\x63ount\x18\x04 \x01(\x11\"x\n\x18\x46\x65tchMultipleLCRResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x0cmeasurements\x18\x02 \x03(\x0b\x32 .nidcpower_grpc.NILCRMeasurement\x12\x14\n\x0c\x61\x63tual_count\x18\x03 \x01(\x11\"T\n\x18QueryInComplianceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"B\n\x19QueryInComplianceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rin_compliance\x18\x02 \x01(\x08\"\xba\x01\n\x17QueryOutputStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x34\n\x0coutput_state\x18\x03 \x01(\x0e\x32\x1c.nidcpower_grpc.OutputStatesH\x00\x12\x1a\n\x10output_state_raw\x18\x04 \x01(\x11H\x00\x42\x13\n\x11output_state_enum\"<\n\x18QueryOutputStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08in_state\x18\x02 \x01(\x08\"\xe5\x01\n$QueryLatchedOutputCutoffStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x42\n\x14output_cutoff_reason\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.OutputCutoffReasonH\x00\x12\"\n\x18output_cutoff_reason_raw\x18\x04 \x01(\x11H\x00\x42\x1b\n\x19output_cutoff_reason_enum\"T\n%QueryLatchedOutputCutoffStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13output_cutoff_state\x18\x02 \x01(\x08\"\xe5\x01\n$ClearLatchedOutputCutoffStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x42\n\x14output_cutoff_reason\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.OutputCutoffReasonH\x00\x12\"\n\x18output_cutoff_reason_raw\x18\x04 \x01(\x11H\x00\x42\x1b\n\x19output_cutoff_reason_enum\"7\n%ClearLatchedOutputCutoffStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"n\n\x1bQueryMaxCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rvoltage_level\x18\x03 \x01(\x01\"I\n\x1cQueryMaxCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11max_current_limit\x18\x02 \x01(\x01\"n\n\x1bQueryMaxVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rcurrent_limit\x18\x03 \x01(\x01\"I\n\x1cQueryMaxVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11max_voltage_level\x18\x02 \x01(\x01\"n\n\x1bQueryMinCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rvoltage_level\x18\x03 \x01(\x01\"I\n\x1cQueryMinCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11min_current_limit\x18\x02 \x01(\x01\"S\n\x17\x43\x61lSelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"*\n\x18\x43\x61lSelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"E\n\x1fGetExtCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"z\n GetExtCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"C\n\x1dReadCurrentTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x1eReadCurrentTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\">\n\x18GetExtCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x19GetExtCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"F\n GetSelfCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"{\n!GetSelfCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"?\n\x19GetSelfCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x1aGetSelfCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"\xe1\x01\n(GetLCRCompensationLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12@\n\x11\x63ompensation_type\x18\x03 \x01(\x0e\x32#.nidcpower_grpc.LCRCompensationTypeH\x00\x12\x1f\n\x15\x63ompensation_type_raw\x18\x04 \x01(\x11H\x00\x42\x18\n\x16\x63ompensation_type_enum\"\x83\x01\n)GetLCRCompensationLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"\xb3\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n1ConfigureDigitalEdgeSequenceAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"D\n2ConfigureDigitalEdgeSequenceAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"X\n2ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n3ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n$DisableSequenceAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"7\n%DisableSequenceAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb4\x01\n(ConfigureDigitalEdgeSourceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\";\n)ConfigureDigitalEdgeSourceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ConfigureSoftwareEdgeSourceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"<\n*ConfigureSoftwareEdgeSourceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1b\x44isableSourceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x44isableSourceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb5\x01\n)ConfigureDigitalEdgeMeasureTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"<\n*ConfigureDigitalEdgeMeasureTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*ConfigureSoftwareEdgeMeasureTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n+ConfigureSoftwareEdgeMeasureTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\'ConfigureDigitalEdgePulseTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0einput_terminal\x18\x02 \x01(\t\x12+\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgePulseTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgePulseTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgePulseTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isablePulseTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isablePulseTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc2\x01\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12.\n\x06signal\x18\x02 \x01(\x0e\x32\x1c.nidcpower_grpc.ExportSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x05 \x01(\tB\r\n\x0bsignal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\x07trigger\x18\x02 \x01(\x0e\x32+.nidcpower_grpc.SendSoftwareEdgeTriggerTypeH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x42\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9e\x01\n\x13WaitForEventRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x08\x65vent_id\x18\x02 \x01(\x0e\x32\x15.nidcpower_grpc.EventH\x00\x12\x16\n\x0c\x65vent_id_raw\x18\x03 \x01(\x11H\x00\x12\x0f\n\x07timeout\x18\x04 \x01(\x01\x42\x0f\n\revent_id_enum\"&\n\x14WaitForEventResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\">\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"T\n\x1fGetChannelNameFromStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\t\"H\n GetChannelNameFromStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"B\n\x1cGetNextCoercionRecordRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"H\n\x1dGetNextCoercionRecordResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x63oercion_record\x18\x02 \x01(\t\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n GetNextInterchangeWarningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"P\n!GetNextInterchangeWarningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13interchange_warning\x18\x02 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"\x91\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12H\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32-.nidcpower_grpc.NiDCPowerInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xad\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x93\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12I\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32..nidcpower_grpc.NiDCPowerReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x90\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x90\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"F\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x03\"\x91\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x91\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\x92\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x92\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x38\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\".nidcpower_grpc.NiDCPowerAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"}\n!PerformLCROpenCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_frequencies\x18\x03 \x03(\x01\"4\n\"PerformLCROpenCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"~\n\"PerformLCRShortCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1e\n\x16\x61\x64\x64itional_frequencies\x18\x03 \x03(\x01\"5\n#PerformLCRShortCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa4\x01\n!PerformLCRLoadCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x45\n\x12\x63ompensation_spots\x18\x03 \x03(\x0b\x32).nidcpower_grpc.NILCRLoadCompensationSpot\"4\n\"PerformLCRLoadCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"v\n\x1f\x43onfigureLCRCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x19\n\x11\x63ompensation_data\x18\x03 \x01(\x0c\"2\n ConfigureLCRCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n,PerformLCROpenCustomCableCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"?\n-PerformLCROpenCustomCableCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"i\n-PerformLCRShortCustomCableCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"@\n.PerformLCRShortCustomCableCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1dGetLCRCompensationDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"K\n\x1eGetLCRCompensationDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11\x63ompensation_data\x18\x02 \x01(\x0c\"\xcc\x01\n(InitializeWithIndependentChannelsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\r\n\x05reset\x18\x03 \x01(\x08\x12\x15\n\roption_string\x18\x04 \x01(\t\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x9b\x01\n)InitializeWithIndependentChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xc4\x01\n&ConfigureSourceModeWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x31\n\x0bsource_mode\x18\x03 \x01(\x0e\x32\x1a.nidcpower_grpc.SourceModeH\x00\x12\x19\n\x0fsource_mode_raw\x18\x04 \x01(\x11H\x00\x42\x12\n\x10source_mode_enum\"9\n\'ConfigureSourceModeWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n)CreateAdvancedSequenceWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rsequence_name\x18\x03 \x01(\t\x12\x15\n\rattribute_ids\x18\x04 \x03(\x11\x12\x1e\n\x16set_as_active_sequence\x18\x05 \x01(\x08\"<\n*CreateAdvancedSequenceWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n-CreateAdvancedSequenceStepWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1a\n\x12set_as_active_step\x18\x03 \x01(\x08\"@\n.CreateAdvancedSequenceStepWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8b\x01\n3CreateAdvancedSequenceCommitStepWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1a\n\x12set_as_active_step\x18\x03 \x01(\x08\"F\n4CreateAdvancedSequenceCommitStepWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"|\n)DeleteAdvancedSequenceWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rsequence_name\x18\x03 \x01(\t\"<\n*DeleteAdvancedSequenceWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"U\n\x19\x43ommitWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\",\n\x1a\x43ommitWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1bInitiateWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\".\n\x1cInitiateWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x18\x41\x62ortWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"+\n\x19\x41\x62ortWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n3ConfigureDigitalEdgeStartTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"F\n4ConfigureDigitalEdgeStartTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n4ConfigureSoftwareEdgeStartTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"G\n5ConfigureSoftwareEdgeStartTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"b\n&DisableStartTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"9\n\'DisableStartTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdf\x01\n=ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"P\n>ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n>ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"Q\n?ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n0DisableSequenceAdvanceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"C\n1DisableSequenceAdvanceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd6\x01\n4ConfigureDigitalEdgeSourceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"G\n5ConfigureDigitalEdgeSourceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n5ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"H\n6ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\'DisableSourceTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\":\n(DisableSourceTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd7\x01\n5ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"H\n6ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"r\n6ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"I\n7ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n3ConfigureDigitalEdgePulseTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"F\n4ConfigureDigitalEdgePulseTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n4ConfigureSoftwareEdgePulseTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"G\n5ConfigureSoftwareEdgePulseTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"b\n&DisablePulseTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"9\n\'DisablePulseTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd8\x01\n6ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0einput_terminal\x18\x03 \x01(\t\x12+\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1b.nidcpower_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"I\n7ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n7ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"J\n8ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n)DisableShutdownTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"<\n*DisableShutdownTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe4\x01\n\x1f\x45xportSignalWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12.\n\x06signal\x18\x03 \x01(\x0e\x32\x1c.nidcpower_grpc.ExportSignalH\x00\x12\x14\n\nsignal_raw\x18\x04 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x05 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x06 \x01(\tB\r\n\x0bsignal_enum\"2\n ExportSignalWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcd\x01\n*SendSoftwareEdgeTriggerWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12>\n\x07trigger\x18\x03 \x01(\x0e\x32+.nidcpower_grpc.SendSoftwareEdgeTriggerTypeH\x00\x12\x15\n\x0btrigger_raw\x18\x04 \x01(\x11H\x00\x42\x0e\n\x0ctrigger_enum\"=\n+SendSoftwareEdgeTriggerWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc0\x01\n\x1fWaitForEventWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12)\n\x08\x65vent_id\x18\x03 \x01(\x0e\x32\x15.nidcpower_grpc.EventH\x00\x12\x16\n\x0c\x65vent_id_raw\x18\x04 \x01(\x11H\x00\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\x42\x0f\n\revent_id_enum\"2\n WaitForEventWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x18ResetWithChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"+\n\x19ResetWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"o\n\x13\x43onfigureOvpRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\x12\r\n\x05limit\x18\x04 \x01(\x01\"&\n\x14\x43onfigureOvpResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"d\n(GetLCRCustomCableCompensationDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"c\n)GetLCRCustomCableCompensationDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12&\n\x1e\x63ustom_cable_compensation_data\x18\x02 \x01(\x0c\"\x8e\x01\n*ConfigureLCRCustomCableCompensationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12&\n\x1e\x63ustom_cable_compensation_data\x18\x03 \x01(\x0c\"=\n+ConfigureLCRCustomCableCompensationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\xc2\x65\n\x12NiDCPowerAttribute\x12#\n\x1fNIDCPOWER_ATTRIBUTE_UNSPECIFIED\x10\x00\x12%\n\x1fNIDCPOWER_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12\x31\n+NIDCPOWER_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1f\n\x19NIDCPOWER_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\"\n\x1cNIDCPOWER_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12*\n$NIDCPOWER_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12+\n%NIDCPOWER_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\'\n!NIDCPOWER_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x30\n*NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12\x35\n/NIDCPOWER_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12,\n&NIDCPOWER_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x31\n+NIDCPOWER_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12*\n$NIDCPOWER_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x36\n0NIDCPOWER_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\x32\n,NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12\x30\n*NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x35\n/NIDCPOWER_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12\x42\nNIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_COMPENSATION_FREQUENCY\x10\x9e\x9b\x46\x12=\n7NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_POLE_ZERO_RATIO\x10\xa3\x9b\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_GAIN_BANDWIDTH\x10\x9a\x9b\x46\x12?\n9NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_COMPENSATION_FREQUENCY\x10\x98\x9b\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_POLE_ZERO_RATIO\x10\x9d\x9b\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_VOLTAGE_LEVEL\x10\xd1\xa5L\x12\'\n!NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT\x10\xd5\xa5L\x12-\n\'NIDCPOWER_ATTRIBUTE_VOLTAGE_LEVEL_RANGE\x10\xb5\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_RANGE\x10\xb4\x98\x46\x12\x30\n*NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_BEHAVIOR\x10\xd4\xa5L\x12\x31\n+NIDCPOWER_ATTRIBUTE_VOLTAGE_LEVEL_AUTORANGE\x10\xbf\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_AUTORANGE\x10\xc0\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_HIGH\x10\xeb\x99\x46\x12+\n%NIDCPOWER_ATTRIBUTE_CURRENT_LIMIT_LOW\x10\xec\x99\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL\x10\xb9\x98\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT\x10\xba\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_RANGE\x10\xbb\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_RANGE\x10\xbc\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_AUTORANGE\x10\xc1\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_AUTORANGE\x10\xc2\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_HIGH\x10\xe9\x99\x46\x12+\n%NIDCPOWER_ATTRIBUTE_VOLTAGE_LIMIT_LOW\x10\xea\x99\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_RISING_SLEW_RATE\x10\x87\x9b\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_CURRENT_LEVEL_FALLING_SLEW_RATE\x10\x88\x9b\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LEVEL\x10\x80\x99\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT\x10\x81\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LEVEL\x10\x82\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LIMIT\x10\x83\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LEVEL_RANGE\x10\x84\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT_RANGE\x10\x85\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT_HIGH\x10\xf1\x99\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LIMIT_LOW\x10\xf2\x99\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LIMIT_HIGH\x10\xf3\x99\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LIMIT_LOW\x10\xf4\x99\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LEVEL\x10\x86\x99\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT\x10\x87\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_CURRENT_LEVEL\x10\x88\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LIMIT\x10\x89\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_CURRENT_LEVEL_RANGE\x10\x8a\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT_RANGE\x10\x8b\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT_HIGH\x10\xed\x99\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_PULSE_VOLTAGE_LIMIT_LOW\x10\xee\x99\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LIMIT_HIGH\x10\xef\x99\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_PULSE_BIAS_VOLTAGE_LIMIT_LOW\x10\xf0\x99\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_LEVEL\x10\xa1\x9b\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_LEVEL_RANGE\x10\xa2\x9b\x46\x12;\n5NIDCPOWER_ATTRIBUTE_CONSTANT_RESISTANCE_CURRENT_LIMIT\x10\x9f\x9b\x46\x12.\n(NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_LEVEL\x10\x9b\x9b\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_LEVEL_RANGE\x10\x9c\x9b\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_CONSTANT_POWER_CURRENT_LIMIT\x10\x99\x9b\x46\x12&\n NIDCPOWER_ATTRIBUTE_SOURCE_DELAY\x10\xe3\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_OVERRANGING_ENABLED\x10\xb7\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_OUTPUT_CAPACITANCE\x10\xbe\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_SEQUENCE_LOOP_COUNT\x10\xc9\x98\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_SEQUENCE_LOOP_COUNT_IS_FINITE\x10\xfe\x98\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_COMPLIANCE_LIMIT_SYMMETRY\x10\xe8\x99\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_SEQUENCE_STEP_DELTA_TIME\x10\xf6\x99\x46\x12:\n4NIDCPOWER_ATTRIBUTE_SEQUENCE_STEP_DELTA_TIME_ENABLED\x10\xf7\x99\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_ACTUAL_POWER_ALLOCATION\x10\xfd\x99\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_REQUESTED_POWER_ALLOCATION\x10\xfe\x99\x46\x12/\n)NIDCPOWER_ATTRIBUTE_POWER_ALLOCATION_MODE\x10\xff\x99\x46\x12)\n#NIDCPOWER_ATTRIBUTE_MERGED_CHANNELS\x10\xa9\x9a\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_CONDUCTION_VOLTAGE_MODE\x10\x8e\x9b\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_CONDUCTION_VOLTAGE_ON_THRESHOLD\x10\x8f\x9b\x46\x12:\n4NIDCPOWER_ATTRIBUTE_CONDUCTION_VOLTAGE_OFF_THRESHOLD\x10\x90\x9b\x46\x12(\n\"NIDCPOWER_ATTRIBUTE_OUTPUT_SHORTED\x10\xa4\x9b\x46\x12*\n$NIDCPOWER_ATTRIBUTE_PULSE_BIAS_DELAY\x10\x8c\x99\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_PULSE_ON_TIME\x10\x8d\x99\x46\x12(\n\"NIDCPOWER_ATTRIBUTE_PULSE_OFF_TIME\x10\x8e\x99\x46\x12%\n\x1fNIDCPOWER_ATTRIBUTE_OVP_ENABLED\x10\xd2\xa5L\x12#\n\x1dNIDCPOWER_ATTRIBUTE_OVP_LIMIT\x10\xd3\xa5L\x12\x1f\n\x19NIDCPOWER_ATTRIBUTE_SENSE\x10\xbd\x98\x46\x12#\n\x1dNIDCPOWER_ATTRIBUTE_AUTO_ZERO\x10\xe7\x98\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_APERTURE_TIME\x10\xea\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_APERTURE_TIME_UNITS\x10\xeb\x98\x46\x12.\n(NIDCPOWER_ATTRIBUTE_POWER_LINE_FREQUENCY\x10\xc4\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_SAMPLES_TO_AVERAGE\x10\xb3\x98\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_FETCH_BACKLOG\x10\xe8\x98\x46\x12\x31\n+NIDCPOWER_ATTRIBUTE_APERTURE_TIME_AUTO_MODE\x10\xea\x9a\x46\x12#\n\x1dNIDCPOWER_ATTRIBUTE_AUTORANGE\x10\xa4\x9a\x46\x12&\n NIDCPOWER_ATTRIBUTE_MEASURE_WHEN\x10\xe9\x98\x46\x12:\n4NIDCPOWER_ATTRIBUTE_RESET_AVERAGE_BEFORE_MEASUREMENT\x10\xb6\x98\x46\x12/\n)NIDCPOWER_ATTRIBUTE_MEASURE_RECORD_LENGTH\x10\xef\x98\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_MEASURE_RECORD_LENGTH_IS_FINITE\x10\xf0\x98\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_MEASURE_RECORD_DELTA_TIME\x10\xf1\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_DC_NOISE_REJECTION\x10\xf2\x98\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_SELF_CALIBRATION_PERSISTENCE\x10\xf9\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_MEASURE_BUFFER_SIZE\x10\xfd\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_AUTORANGE_BEHAVIOR\x10\xa5\x9a\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_AUTORANGE_APERTURE_TIME_MODE\x10\xa6\x9a\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_APERTURE_TIME\x10\xa7\x9a\x46\x12?\n9NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_APERTURE_TIME_UNITS\x10\xa8\x9a\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_CURRENT_RANGE\x10\xaf\x9a\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_AUTORANGE_MINIMUM_VOLTAGE_RANGE\x10\xb0\x9a\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_AUTORANGE_THRESHOLD_MODE\x10\xb1\x9a\x46\x12\x44\n>NIDCPOWER_ATTRIBUTE_AUTORANGE_MAXIMUM_DELAY_AFTER_RANGE_CHANGE\x10\xf2\x9a\x46\x12,\n&NIDCPOWER_ATTRIBUTE_START_TRIGGER_TYPE\x10\xc5\x98\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_EDGE\x10\xc6\x98\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_INPUT_TERMINAL\x10\xc7\x98\x46\x12@\n:NIDCPOWER_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xc8\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_SOURCE_TRIGGER_TYPE\x10\xce\x98\x46\x12:\n4NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SOURCE_TRIGGER_EDGE\x10\xcf\x98\x46\x12\x44\n>NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SOURCE_TRIGGER_INPUT_TERMINAL\x10\xd0\x98\x46\x12\x41\n;NIDCPOWER_ATTRIBUTE_EXPORTED_SOURCE_TRIGGER_OUTPUT_TERMINAL\x10\xd1\x98\x46\x12.\n(NIDCPOWER_ATTRIBUTE_MEASURE_TRIGGER_TYPE\x10\xd2\x98\x46\x12;\n5NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_MEASURE_TRIGGER_EDGE\x10\xd3\x98\x46\x12\x45\n?NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_MEASURE_TRIGGER_INPUT_TERMINAL\x10\xd4\x98\x46\x12\x42\nNIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SEQUENCE_ADVANCE_TRIGGER_EDGE\x10\xcb\x98\x46\x12N\nHNIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SEQUENCE_ADVANCE_TRIGGER_INPUT_TERMINAL\x10\xcc\x98\x46\x12K\nENIDCPOWER_ATTRIBUTE_EXPORTED_SEQUENCE_ADVANCE_TRIGGER_OUTPUT_TERMINAL\x10\xcd\x98\x46\x12?\n9NIDCPOWER_ATTRIBUTE_SOURCE_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\xdb\x98\x46\x12>\n8NIDCPOWER_ATTRIBUTE_SOURCE_COMPLETE_EVENT_PULSE_POLARITY\x10\xd9\x98\x46\x12;\n5NIDCPOWER_ATTRIBUTE_SOURCE_COMPLETE_EVENT_PULSE_WIDTH\x10\xda\x98\x46\x12@\n:NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\xdf\x98\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_DELAY\x10\xde\x98\x46\x12?\n9NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_PULSE_POLARITY\x10\xdc\x98\x46\x12<\n6NIDCPOWER_ATTRIBUTE_MEASURE_COMPLETE_EVENT_PULSE_WIDTH\x10\xdd\x98\x46\x12K\nENIDCPOWER_ATTRIBUTE_SEQUENCE_ITERATION_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\xd8\x98\x46\x12J\nDNIDCPOWER_ATTRIBUTE_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_POLARITY\x10\xd6\x98\x46\x12G\nANIDCPOWER_ATTRIBUTE_SEQUENCE_ITERATION_COMPLETE_EVENT_PULSE_WIDTH\x10\xd7\x98\x46\x12\x44\n>NIDCPOWER_ATTRIBUTE_SEQUENCE_ENGINE_DONE_EVENT_OUTPUT_TERMINAL\x10\xe2\x98\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_SEQUENCE_ENGINE_DONE_EVENT_PULSE_POLARITY\x10\xe0\x98\x46\x12@\n:NIDCPOWER_ATTRIBUTE_SEQUENCE_ENGINE_DONE_EVENT_PULSE_WIDTH\x10\xe1\x98\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_ACTIVE_ADVANCED_SEQUENCE\x10\xfa\x98\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_ACTIVE_ADVANCED_SEQUENCE_STEP\x10\xfb\x98\x46\x12,\n&NIDCPOWER_ATTRIBUTE_PULSE_TRIGGER_TYPE\x10\x8f\x99\x46\x12\x39\n3NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_PULSE_TRIGGER_EDGE\x10\x90\x99\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_PULSE_TRIGGER_INPUT_TERMINAL\x10\x91\x99\x46\x12@\n:NIDCPOWER_ATTRIBUTE_EXPORTED_PULSE_TRIGGER_OUTPUT_TERMINAL\x10\x92\x99\x46\x12>\n8NIDCPOWER_ATTRIBUTE_PULSE_COMPLETE_EVENT_OUTPUT_TERMINAL\x10\x93\x99\x46\x12=\n7NIDCPOWER_ATTRIBUTE_PULSE_COMPLETE_EVENT_PULSE_POLARITY\x10\x94\x99\x46\x12:\n4NIDCPOWER_ATTRIBUTE_PULSE_COMPLETE_EVENT_PULSE_WIDTH\x10\x95\x99\x46\x12G\nANIDCPOWER_ATTRIBUTE_READY_FOR_PULSE_TRIGGER_EVENT_OUTPUT_TERMINAL\x10\x96\x99\x46\x12\x46\n@NIDCPOWER_ATTRIBUTE_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_POLARITY\x10\x97\x99\x46\x12\x43\n=NIDCPOWER_ATTRIBUTE_READY_FOR_PULSE_TRIGGER_EVENT_PULSE_WIDTH\x10\x98\x99\x46\x12/\n)NIDCPOWER_ATTRIBUTE_SHUTDOWN_TRIGGER_TYPE\x10\xc3\x9a\x46\x12<\n6NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SHUTDOWN_TRIGGER_EDGE\x10\xc4\x9a\x46\x12\x46\n@NIDCPOWER_ATTRIBUTE_DIGITAL_EDGE_SHUTDOWN_TRIGGER_INPUT_TERMINAL\x10\xc5\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_INTERLOCK_INPUT_OPEN\x10\x99\x99\x46\x12&\n NIDCPOWER_ATTRIBUTE_POWER_SOURCE\x10\xb0\x98\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_POWER_SOURCE_IN_USE\x10\xb1\x98\x46\x12:\n4NIDCPOWER_ATTRIBUTE_AUXILIARY_POWER_SOURCE_AVAILABLE\x10\xb2\x98\x46\x12)\n#NIDCPOWER_ATTRIBUTE_ISOLATION_STATE\x10\xde\x9a\x46\x12)\n#NIDCPOWER_ATTRIBUTE_INSTRUMENT_MODE\x10\x80\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_STIMULUS_FUNCTION\x10\x81\x9a\x46\x12\'\n!NIDCPOWER_ATTRIBUTE_LCR_FREQUENCY\x10\x82\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_VOLTAGE_AMPLITUDE\x10\x83\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_CURRENT_AMPLITUDE\x10\x84\x9a\x46\x12,\n&NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_SOURCE\x10\x85\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_VOLTAGE_LEVEL\x10\x86\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_CURRENT_LEVEL\x10\x87\x9a\x46\x12\x32\n,NIDCPOWER_ATTRIBUTE_LCR_IMPEDANCE_AUTO_RANGE\x10\x88\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_IMPEDANCE_RANGE\x10\x89\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_MEASUREMENT_TIME\x10\x8a\x9a\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_LCR_OPEN_COMPENSATION_ENABLED\x10\x8c\x9a\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_LCR_SHORT_COMPENSATION_ENABLED\x10\x8d\x9a\x46\x12\x37\n1NIDCPOWER_ATTRIBUTE_LCR_LOAD_COMPENSATION_ENABLED\x10\x8e\x9a\x46\x12\x46\n@NIDCPOWER_ATTRIBUTE_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE\x10\x8f\x9a\x46\x12\x35\n/NIDCPOWER_ATTRIBUTE_LCR_CUSTOM_MEASUREMENT_TIME\x10\xb2\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_OPEN_CONDUCTANCE\x10\xb5\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_OPEN_SUSCEPTANCE\x10\xb6\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_SHORT_RESISTANCE\x10\xb7\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_SHORT_REACTANCE\x10\xb8\x9a\x46\x12+\n%NIDCPOWER_ATTRIBUTE_LCR_VOLTAGE_RANGE\x10\xb9\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_VOLTAGE_RANGE\x10\xba\x9a\x46\x12+\n%NIDCPOWER_ATTRIBUTE_LCR_CURRENT_RANGE\x10\xbb\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_CURRENT_RANGE\x10\xc2\x9a\x46\x12\x36\n0NIDCPOWER_ATTRIBUTE_LCR_MEASURED_LOAD_RESISTANCE\x10\xbc\x9a\x46\x12\x35\n/NIDCPOWER_ATTRIBUTE_LCR_MEASURED_LOAD_REACTANCE\x10\xbd\x9a\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_LCR_ACTUAL_LOAD_RESISTANCE\x10\xbe\x9a\x46\x12\x33\n-NIDCPOWER_ATTRIBUTE_LCR_ACTUAL_LOAD_REACTANCE\x10\xbf\x9a\x46\x12&\n NIDCPOWER_ATTRIBUTE_CABLE_LENGTH\x10\xc6\x9a\x46\x12\x35\n/NIDCPOWER_ATTRIBUTE_LCR_AUTOMATIC_LEVEL_CONTROL\x10\xd2\x9a\x46\x12=\n7NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_AUTOMATIC_LEVEL_CONTROL\x10\xd3\x9a\x46\x12\x45\n?NIDCPOWER_ATTRIBUTE_LCR_SHORT_CUSTOM_CABLE_COMPENSATION_ENABLED\x10\xdb\x9a\x46\x12>\n8NIDCPOWER_ATTRIBUTE_LCR_AC_ELECTRICAL_CABLE_LENGTH_DELAY\x10\xe5\x9a\x46\x12/\n)NIDCPOWER_ATTRIBUTE_LCR_SOURCE_DELAY_MODE\x10\xeb\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_LOAD_RESISTANCE\x10\xee\x9a\x46\x12-\n\'NIDCPOWER_ATTRIBUTE_LCR_LOAD_INDUCTANCE\x10\xef\x9a\x46\x12.\n(NIDCPOWER_ATTRIBUTE_LCR_LOAD_CAPACITANCE\x10\xf0\x9a\x46\x12\x34\n.NIDCPOWER_ATTRIBUTE_LCR_IMPEDANCE_RANGE_SOURCE\x10\xf1\x9a\x46\x12\x38\n2NIDCPOWER_ATTRIBUTE_LCR_DC_BIAS_TRANSIENT_RESPONSE\x10\x8b\x9b\x46\x12/\n)NIDCPOWER_ATTRIBUTE_OUTPUT_CUTOFF_ENABLED\x10\x9b\x9a\x46\x12\x41\n;NIDCPOWER_ATTRIBUTE_OUTPUT_CUTOFF_VOLTAGE_OUTPUT_LIMIT_HIGH\x10\x9c\x9a\x46\x12\x42\n\n9EXPORT_SIGNAL_NIDCPOWER_VAL_READY_FOR_PULSE_TRIGGER_EVENT\x10\x9c\x08\x12.\n)EXPORT_SIGNAL_NIDCPOWER_VAL_START_TRIGGER\x10\x8a\x08\x12/\n*EXPORT_SIGNAL_NIDCPOWER_VAL_SOURCE_TRIGGER\x10\x8b\x08\x12\x30\n+EXPORT_SIGNAL_NIDCPOWER_VAL_MEASURE_TRIGGER\x10\x8c\x08\x12\x39\n4EXPORT_SIGNAL_NIDCPOWER_VAL_SEQUENCE_ADVANCE_TRIGGER\x10\x8d\x08\x12.\n)EXPORT_SIGNAL_NIDCPOWER_VAL_PULSE_TRIGGER\x10\x9d\x08\x12\x31\n,EXPORT_SIGNAL_NIDCPOWER_VAL_SHUTDOWN_TRIGGER\x10\xde\x08*\x81\n\n\x12OutputCutoffReason\x12$\n OUTPUT_CUTOFF_REASON_UNSPECIFIED\x10\x00\x12H\n;OUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_ALL\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_OUTPUT_HIGH\x10\x01\x12N\nJOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_OUTPUT_LOW\x10\x02\x12P\nLOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_MEASURE_HIGH\x10\x04\x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_MEASURE_LOW\x10\x08\x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_CHANGE_HIGH\x10\x10\x12N\nJOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_CHANGE_LOW\x10 \x12O\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_CHANGE_HIGH\x10@\x12O\nJOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_CHANGE_LOW\x10\x80\x01\x12N\nIOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_SATURATED\x10\x80\x02\x12N\nIOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_CURRENT_SATURATED\x10\x80\x04\x12Q\nLOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_MEASURE_HIGH\x10\x80\x08\x12P\nKOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_VOLTAGE_MEASURE_LOW\x10\x80\x10\x12W\nROUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_SELF_TEST_MEASUREMENT_HIGH\x10\x80 \x12V\nQOUTPUT_CUTOFF_REASON_NIDCPOWER_VAL_OUTPUT_CUTOFF_REASON_SELF_TEST_MEASUREMENT_LOW\x10\x80@*\x84\x03\n\x13LCRCompensationType\x12%\n!LCR_COMPENSATION_TYPE_UNSPECIFIED\x10\x00\x12:\n5LCR_COMPENSATION_TYPE_NIDCPOWER_VAL_OPEN_COMPENSATION\x10\xea\x08\x12;\n6LCR_COMPENSATION_TYPE_NIDCPOWER_VAL_SHORT_COMPENSATION\x10\xeb\x08\x12:\n5LCR_COMPENSATION_TYPE_NIDCPOWER_VAL_LOAD_COMPENSATION\x10\xec\x08\x12G\nBLCR_COMPENSATION_TYPE_NIDCPOWER_VAL_OPEN_CUSTOM_CABLE_COMPENSATION\x10\xed\x08\x12H\nCLCR_COMPENSATION_TYPE_NIDCPOWER_VAL_SHORT_CUSTOM_CABLE_COMPENSATION\x10\xee\x08*\xb3\x02\n\x05\x45vent\x12\x15\n\x11\x45VENT_UNSPECIFIED\x10\x00\x12(\n#EVENT_NIDCPOWER_VAL_SOURCE_COMPLETE\x10\x86\x08\x12)\n$EVENT_NIDCPOWER_VAL_MEASURE_COMPLETE\x10\x87\x08\x12\x34\n/EVENT_NIDCPOWER_VAL_SEQUENCE_ITERATION_COMPLETE\x10\x88\x08\x12-\n(EVENT_NIDCPOWER_VAL_SEQUENCE_ENGINE_DONE\x10\x89\x08\x12\'\n\"EVENT_NIDCPOWER_VAL_PULSE_COMPLETE\x10\x9b\x08\x12\x30\n+EVENT_NIDCPOWER_VAL_READY_FOR_PULSE_TRIGGER\x10\x9c\x08*\xbb\x03\n\x1bSendSoftwareEdgeTriggerType\x12/\n+SEND_SOFTWARE_EDGE_TRIGGER_TYPE_UNSPECIFIED\x10\x00\x12\x38\n3SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_START\x10\x8a\x08\x12\x39\n4SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_SOURCE\x10\x8b\x08\x12:\n5SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_MEASURE\x10\x8c\x08\x12\x43\n>SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_SEQUENCE_ADVANCE\x10\x8d\x08\x12\x38\n3SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_PULSE\x10\x9d\x08\x12;\n6SEND_SOFTWARE_EDGE_TRIGGER_TYPE_NIDCPOWER_VAL_SHUTDOWN\x10\xde\x08*\x8e\x31\n\x1dNiDCPowerInt32AttributeValues\x12\x1f\n\x1bNIDCPOWER_INT32_UNSPECIFIED\x10\x00\x12L\nGNIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_OFF\x10\xef\x08\x12N\nINIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_SHORT\x10\xf0\x08\x12O\nJNIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_NORMAL\x10\xf1\x08\x12M\nHNIDCPOWER_INT32_APERTURE_TIME_AUTO_MODE_VAL_APERTURE_TIME_AUTO_MODE_LONG\x10\xf2\x08\x12\x34\n/NIDCPOWER_INT32_APERTURE_TIME_UNITS_VAL_SECONDS\x10\x84\x08\x12>\n9NIDCPOWER_INT32_APERTURE_TIME_UNITS_VAL_POWER_LINE_CYCLES\x10\x85\x08\x12%\n!NIDCPOWER_INT32_AUTO_ZERO_VAL_OFF\x10\x00\x12\'\n\"NIDCPOWER_INT32_AUTO_ZERO_VAL_ONCE\x10\x80\x08\x12$\n NIDCPOWER_INT32_AUTO_ZERO_VAL_ON\x10\x01\x12H\nCNIDCPOWER_INT32_AUTORANGE_APERTURE_TIME_MODE_VAL_APERTURE_TIME_AUTO\x10\xd6\x08\x12J\nENIDCPOWER_INT32_AUTORANGE_APERTURE_TIME_MODE_VAL_APERTURE_TIME_CUSTOM\x10\xd7\x08\x12G\nBNIDCPOWER_INT32_AUTORANGE_BEHAVIOR_VAL_RANGE_UP_TO_LIMIT_THEN_DOWN\x10\xd3\x08\x12\x34\n/NIDCPOWER_INT32_AUTORANGE_BEHAVIOR_VAL_RANGE_UP\x10\xd4\x08\x12=\n8NIDCPOWER_INT32_AUTORANGE_BEHAVIOR_VAL_RANGE_UP_AND_DOWN\x10\xd5\x08\x12G\nBNIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_NORMAL\x10\xd8\x08\x12J\nENIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_FAST_STEP\x10\xd9\x08\x12P\nKNIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_HIGH_HYSTERESIS\x10\xda\x08\x12R\nMNIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_MEDIUM_HYSTERESIS\x10\xdb\x08\x12\x45\n@NIDCPOWER_INT32_AUTORANGE_THRESHOLD_MODE_VAL_THRESHOLD_MODE_HOLD\x10\xdc\x08\x12,\n\'NIDCPOWER_INT32_CABLE_LENGTH_VAL_ZERO_M\x10\xe1\x08\x12\x36\n1NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_0_5M\x10\x81\t\x12\x34\n/NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_1M\x10\xe2\x08\x12\x34\n/NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_2M\x10\xe3\x08\x12\x34\n/NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_4M\x10\xe4\x08\x12=\n8NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_TRIAXIAL_1M\x10\xf3\x08\x12=\n8NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_TRIAXIAL_2M\x10\xf4\x08\x12=\n8NIDCPOWER_INT32_CABLE_LENGTH_VAL_NI_STANDARD_TRIAXIAL_4M\x10\xf5\x08\x12<\n7NIDCPOWER_INT32_CABLE_LENGTH_VAL_CUSTOM_ONBOARD_STORAGE\x10\xe5\x08\x12:\n5NIDCPOWER_INT32_CABLE_LENGTH_VAL_CUSTOM_AS_CONFIGURED\x10\xe6\x08\x12;\n7NIDCPOWER_INT32_COMPLIANCE_LIMIT_SYMMETRY_VAL_SYMMETRIC\x10\x00\x12<\n8NIDCPOWER_INT32_COMPLIANCE_LIMIT_SYMMETRY_VAL_ASYMMETRIC\x10\x01\x12R\nMNIDCPOWER_INT32_CONDUCTION_VOLTAGE_MODE_VAL_CONDUCTION_VOLTAGE_MODE_AUTOMATIC\x10\x83\t\x12P\nKNIDCPOWER_INT32_CONDUCTION_VOLTAGE_MODE_VAL_CONDUCTION_VOLTAGE_MODE_ENABLED\x10\x84\t\x12Q\nLNIDCPOWER_INT32_CONDUCTION_VOLTAGE_MODE_VAL_CONDUCTION_VOLTAGE_MODE_DISABLED\x10\x85\t\x12?\n;NIDCPOWER_INT32_CURRENT_LIMIT_BEHAVIOR_VAL_CURRENT_REGULATE\x10\x00\x12;\n7NIDCPOWER_INT32_CURRENT_LIMIT_BEHAVIOR_VAL_CURRENT_TRIP\x10\x01\x12K\nFNIDCPOWER_INT32_DC_NOISE_REJECTION_VAL_DC_NOISE_REJECTION_SECOND_ORDER\x10\x93\x08\x12\x45\n@NIDCPOWER_INT32_DC_NOISE_REJECTION_VAL_DC_NOISE_REJECTION_NORMAL\x10\x94\x08\x12,\n\'NIDCPOWER_INT32_DIGITAL_EDGE_VAL_RISING\x10\xf8\x07\x12-\n(NIDCPOWER_INT32_DIGITAL_EDGE_VAL_FALLING\x10\xf9\x07\x12/\n*NIDCPOWER_INT32_INSTRUMENT_MODE_VAL_SMU_PS\x10\xa5\x08\x12,\n\'NIDCPOWER_INT32_INSTRUMENT_MODE_VAL_LCR\x10\xa6\x08\x12/\n*NIDCPOWER_INT32_INSTRUMENT_MODE_VAL_E_LOAD\x10\x82\t\x12\x31\n,NIDCPOWER_INT32_ISOLATION_STATE_VAL_ISOLATED\x10\xe8\x08\x12\x35\n0NIDCPOWER_INT32_ISOLATION_STATE_VAL_NON_ISOLATED\x10\xe9\x08\x12\x37\n3NIDCPOWER_INT32_LCR_AUTOMATIC_LEVEL_CONTROL_VAL_OFF\x10\x00\x12\x36\n2NIDCPOWER_INT32_LCR_AUTOMATIC_LEVEL_CONTROL_VAL_ON\x10\x01\x12\x36\n1NIDCPOWER_INT32_LCRDC_BIAS_SOURCE_VAL_DC_BIAS_OFF\x10\xa9\x08\x12:\n5NIDCPOWER_INT32_LCRDC_BIAS_SOURCE_VAL_DC_BIAS_VOLTAGE\x10\xaa\x08\x12:\n5NIDCPOWER_INT32_LCRDC_BIAS_SOURCE_VAL_DC_BIAS_CURRENT\x10\xab\x08\x12\\\nWNIDCPOWER_INT32_LCRDC_BIAS_TRANSIENT_RESPONSE_VAL_LCR_DC_BIAS_TRANSIENT_RESPONSE_NORMAL\x10\xff\x08\x12\\\nWNIDCPOWER_INT32_LCRDC_BIAS_TRANSIENT_RESPONSE_VAL_LCR_DC_BIAS_TRANSIENT_RESPONSE_CUSTOM\x10\x80\t\x12@\n;NIDCPOWER_INT32_LCR_IMPEDANCE_AUTO_RANGE_VAL_AUTO_RANGE_OFF\x10\xac\x08\x12?\n:NIDCPOWER_INT32_LCR_IMPEDANCE_AUTO_RANGE_VAL_AUTO_RANGE_ON\x10\xae\x08\x12G\nBNIDCPOWER_INT32_LCR_IMPEDANCE_RANGE_SOURCE_VAL_LCR_IMPEDANCE_RANGE\x10\xf6\x08\x12J\nENIDCPOWER_INT32_LCR_IMPEDANCE_RANGE_SOURCE_VAL_LCR_LOAD_CONFIGURATION\x10\xf7\x08\x12\x44\n?NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_SHORT\x10\xaf\x08\x12\x45\n@NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_MEDIUM\x10\xb0\x08\x12\x43\n>NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_LONG\x10\xb1\x08\x12\x45\n@NIDCPOWER_INT32_LCR_MEASUREMENT_TIME_VAL_MEASUREMENT_TIME_CUSTOM\x10\xdd\x08\x12U\nPNIDCPOWER_INT32_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE_VAL_ONBOARD_STORAGE\x10\xb2\x08\x12P\nKNIDCPOWER_INT32_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE_VAL_AS_DEFINED\x10\xb3\x08\x12S\nNNIDCPOWER_INT32_LCR_OPEN_SHORT_LOAD_COMPENSATION_DATA_SOURCE_VAL_AS_CONFIGURED\x10\xfa\x08\x12N\nINIDCPOWER_INT32_LCR_SOURCE_DELAY_MODE_VAL_LCR_SOURCE_DELAY_MODE_AUTOMATIC\x10\xf8\x08\x12K\nFNIDCPOWER_INT32_LCR_SOURCE_DELAY_MODE_VAL_LCR_SOURCE_DELAY_MODE_MANUAL\x10\xf9\x08\x12\x39\n4NIDCPOWER_INT32_LCR_STIMULUS_FUNCTION_VAL_AC_VOLTAGE\x10\xa7\x08\x12\x39\n4NIDCPOWER_INT32_LCR_STIMULUS_FUNCTION_VAL_AC_CURRENT\x10\xa8\x08\x12I\nDNIDCPOWER_INT32_MEASURE_WHEN_VAL_AUTOMATICALLY_AFTER_SOURCE_COMPLETE\x10\x81\x08\x12/\n*NIDCPOWER_INT32_MEASURE_WHEN_VAL_ON_DEMAND\x10\x82\x08\x12\x38\n3NIDCPOWER_INT32_MEASURE_WHEN_VAL_ON_MEASURE_TRIGGER\x10\x83\x08\x12/\n*NIDCPOWER_INT32_OUTPUT_CAPACITANCE_VAL_LOW\x10\xf2\x07\x12\x30\n+NIDCPOWER_INT32_OUTPUT_CAPACITANCE_VAL_HIGH\x10\xf3\x07\x12\x33\n.NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_DC_VOLTAGE\x10\xee\x07\x12\x33\n.NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_DC_CURRENT\x10\xef\x07\x12\x36\n1NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_PULSE_VOLTAGE\x10\x99\x08\x12\x36\n1NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_PULSE_CURRENT\x10\x9a\x08\x12<\n7NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_CONSTANT_RESISTANCE\x10\x89\t\x12\x37\n2NIDCPOWER_INT32_OUTPUT_FUNCTION_VAL_CONSTANT_POWER\x10\x8a\t\x12-\n(NIDCPOWER_INT32_POLARITY_VAL_ACTIVE_HIGH\x10\xfa\x07\x12,\n\'NIDCPOWER_INT32_POLARITY_VAL_ACTIVE_LOW\x10\xfb\x07\x12\x37\n2NIDCPOWER_INT32_POWER_ALLOCATION_MODE_VAL_DISABLED\x10\xa2\x08\x12\x38\n3NIDCPOWER_INT32_POWER_ALLOCATION_MODE_VAL_AUTOMATIC\x10\xa3\x08\x12\x35\n0NIDCPOWER_INT32_POWER_ALLOCATION_MODE_VAL_MANUAL\x10\xa4\x08\x12.\n)NIDCPOWER_INT32_POWER_SOURCE_VAL_INTERNAL\x10\xeb\x07\x12/\n*NIDCPOWER_INT32_POWER_SOURCE_VAL_AUXILIARY\x10\xec\x07\x12/\n*NIDCPOWER_INT32_POWER_SOURCE_VAL_AUTOMATIC\x10\xed\x07\x12\x35\n0NIDCPOWER_INT32_POWER_SOURCE_IN_USE_VAL_INTERNAL\x10\xeb\x07\x12\x36\n1NIDCPOWER_INT32_POWER_SOURCE_IN_USE_VAL_AUXILIARY\x10\xec\x07\x12\x44\n?NIDCPOWER_INT32_SELF_CALIBRATION_PERSISTENCE_VAL_KEEP_IN_MEMORY\x10\x95\x08\x12\x45\n@NIDCPOWER_INT32_SELF_CALIBRATION_PERSISTENCE_VAL_WRITE_TO_EEPROM\x10\x96\x08\x12$\n\x1fNIDCPOWER_INT32_SENSE_VAL_LOCAL\x10\xf0\x07\x12%\n NIDCPOWER_INT32_SENSE_VAL_REMOTE\x10\xf1\x07\x12\x31\n,NIDCPOWER_INT32_SOURCE_MODE_VAL_SINGLE_POINT\x10\xfc\x07\x12-\n(NIDCPOWER_INT32_SOURCE_MODE_VAL_SEQUENCE\x10\xfd\x07\x12\x32\n-NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_NORMAL\x10\x8e\x08\x12\x30\n+NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_FAST\x10\x8f\x08\x12\x30\n+NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_SLOW\x10\x91\x08\x12\x32\n-NIDCPOWER_INT32_TRANSIENT_RESPONSE_VAL_CUSTOM\x10\x92\x08\x12*\n%NIDCPOWER_INT32_TRIGGER_TYPE_VAL_NONE\x10\xf4\x07\x12\x32\n-NIDCPOWER_INT32_TRIGGER_TYPE_VAL_DIGITAL_EDGE\x10\xf6\x07\x12\x33\n.NIDCPOWER_INT32_TRIGGER_TYPE_VAL_SOFTWARE_EDGE\x10\xf7\x07\x1a\x02\x10\x01*\xb6\x01\n\x1eNiDCPowerReal64AttributeValues\x12 \n\x1cNIDCPOWER_REAL64_UNSPECIFIED\x10\x00\x12\x38\n4NIDCPOWER_REAL64_POWER_LINE_FREQUENCIES_VAL_50_HERTZ\x10\x32\x12\x38\n4NIDCPOWER_REAL64_POWER_LINE_FREQUENCIES_VAL_60_HERTZ\x10<2\x97\x97\x01\n\tNiDCPower\x12w\n\x16InitializeWithChannels\x12-.nidcpower_grpc.InitializeWithChannelsRequest\x1a..nidcpower_grpc.InitializeWithChannelsResponse\x12\x44\n\x05\x43lose\x12\x1c.nidcpower_grpc.CloseRequest\x1a\x1d.nidcpower_grpc.CloseResponse\x12n\n\x13\x43onfigureSourceMode\x12*.nidcpower_grpc.ConfigureSourceModeRequest\x1a+.nidcpower_grpc.ConfigureSourceModeResponse\x12z\n\x17\x43onfigureOutputFunction\x12..nidcpower_grpc.ConfigureOutputFunctionRequest\x1a/.nidcpower_grpc.ConfigureOutputFunctionResponse\x12w\n\x16\x43onfigureOutputEnabled\x12-.nidcpower_grpc.ConfigureOutputEnabledRequest\x1a..nidcpower_grpc.ConfigureOutputEnabledResponse\x12V\n\x0bSetSequence\x12\".nidcpower_grpc.SetSequenceRequest\x1a#.nidcpower_grpc.SetSequenceResponse\x12t\n\x15\x43onfigureVoltageLevel\x12,.nidcpower_grpc.ConfigureVoltageLevelRequest\x1a-.nidcpower_grpc.ConfigureVoltageLevelResponse\x12t\n\x15\x43onfigureCurrentLimit\x12,.nidcpower_grpc.ConfigureCurrentLimitRequest\x1a-.nidcpower_grpc.ConfigureCurrentLimitResponse\x12\x83\x01\n\x1a\x43onfigureVoltageLevelRange\x12\x31.nidcpower_grpc.ConfigureVoltageLevelRangeRequest\x1a\x32.nidcpower_grpc.ConfigureVoltageLevelRangeResponse\x12\x83\x01\n\x1a\x43onfigureCurrentLimitRange\x12\x31.nidcpower_grpc.ConfigureCurrentLimitRangeRequest\x1a\x32.nidcpower_grpc.ConfigureCurrentLimitRangeResponse\x12\x80\x01\n\x19\x43onfigureOutputResistance\x12\x30.nidcpower_grpc.ConfigureOutputResistanceRequest\x1a\x31.nidcpower_grpc.ConfigureOutputResistanceResponse\x12t\n\x15\x43onfigureCurrentLevel\x12,.nidcpower_grpc.ConfigureCurrentLevelRequest\x1a-.nidcpower_grpc.ConfigureCurrentLevelResponse\x12\x83\x01\n\x1a\x43onfigureCurrentLevelRange\x12\x31.nidcpower_grpc.ConfigureCurrentLevelRangeRequest\x1a\x32.nidcpower_grpc.ConfigureCurrentLevelRangeResponse\x12t\n\x15\x43onfigureVoltageLimit\x12,.nidcpower_grpc.ConfigureVoltageLimitRequest\x1a-.nidcpower_grpc.ConfigureVoltageLimitResponse\x12\x83\x01\n\x1a\x43onfigureVoltageLimitRange\x12\x31.nidcpower_grpc.ConfigureVoltageLimitRangeRequest\x1a\x32.nidcpower_grpc.ConfigureVoltageLimitRangeResponse\x12\x83\x01\n\x1a\x43onfigurePulseVoltageLevel\x12\x31.nidcpower_grpc.ConfigurePulseVoltageLevelRequest\x1a\x32.nidcpower_grpc.ConfigurePulseVoltageLevelResponse\x12\x83\x01\n\x1a\x43onfigurePulseCurrentLimit\x12\x31.nidcpower_grpc.ConfigurePulseCurrentLimitRequest\x1a\x32.nidcpower_grpc.ConfigurePulseCurrentLimitResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasVoltageLevel\x12\x35.nidcpower_grpc.ConfigurePulseBiasVoltageLevelRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasVoltageLevelResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasCurrentLimit\x12\x35.nidcpower_grpc.ConfigurePulseBiasCurrentLimitRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasCurrentLimitResponse\x12\x92\x01\n\x1f\x43onfigurePulseVoltageLevelRange\x12\x36.nidcpower_grpc.ConfigurePulseVoltageLevelRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseVoltageLevelRangeResponse\x12\x92\x01\n\x1f\x43onfigurePulseCurrentLimitRange\x12\x36.nidcpower_grpc.ConfigurePulseCurrentLimitRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseCurrentLimitRangeResponse\x12\x83\x01\n\x1a\x43onfigurePulseCurrentLevel\x12\x31.nidcpower_grpc.ConfigurePulseCurrentLevelRequest\x1a\x32.nidcpower_grpc.ConfigurePulseCurrentLevelResponse\x12\x83\x01\n\x1a\x43onfigurePulseVoltageLimit\x12\x31.nidcpower_grpc.ConfigurePulseVoltageLimitRequest\x1a\x32.nidcpower_grpc.ConfigurePulseVoltageLimitResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasCurrentLevel\x12\x35.nidcpower_grpc.ConfigurePulseBiasCurrentLevelRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasCurrentLevelResponse\x12\x8f\x01\n\x1e\x43onfigurePulseBiasVoltageLimit\x12\x35.nidcpower_grpc.ConfigurePulseBiasVoltageLimitRequest\x1a\x36.nidcpower_grpc.ConfigurePulseBiasVoltageLimitResponse\x12\x92\x01\n\x1f\x43onfigurePulseCurrentLevelRange\x12\x36.nidcpower_grpc.ConfigurePulseCurrentLevelRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseCurrentLevelRangeResponse\x12\x92\x01\n\x1f\x43onfigurePulseVoltageLimitRange\x12\x36.nidcpower_grpc.ConfigurePulseVoltageLimitRangeRequest\x1a\x37.nidcpower_grpc.ConfigurePulseVoltageLimitRangeResponse\x12w\n\x16\x43reateAdvancedSequence\x12-.nidcpower_grpc.CreateAdvancedSequenceRequest\x1a..nidcpower_grpc.CreateAdvancedSequenceResponse\x12\x83\x01\n\x1a\x43reateAdvancedSequenceStep\x12\x31.nidcpower_grpc.CreateAdvancedSequenceStepRequest\x1a\x32.nidcpower_grpc.CreateAdvancedSequenceStepResponse\x12w\n\x16\x44\x65leteAdvancedSequence\x12-.nidcpower_grpc.DeleteAdvancedSequenceRequest\x1a..nidcpower_grpc.DeleteAdvancedSequenceResponse\x12t\n\x15\x43onfigureApertureTime\x12,.nidcpower_grpc.ConfigureApertureTimeRequest\x1a-.nidcpower_grpc.ConfigureApertureTimeResponse\x12h\n\x11\x43onfigureAutoZero\x12(.nidcpower_grpc.ConfigureAutoZeroRequest\x1a).nidcpower_grpc.ConfigureAutoZeroResponse\x12\x86\x01\n\x1b\x43onfigurePowerLineFrequency\x12\x32.nidcpower_grpc.ConfigurePowerLineFrequencyRequest\x1a\x33.nidcpower_grpc.ConfigurePowerLineFrequencyResponse\x12_\n\x0e\x43onfigureSense\x12%.nidcpower_grpc.ConfigureSenseRequest\x1a&.nidcpower_grpc.ConfigureSenseResponse\x12J\n\x07Measure\x12\x1e.nidcpower_grpc.MeasureRequest\x1a\x1f.nidcpower_grpc.MeasureResponse\x12\x62\n\x0fMeasureMultiple\x12&.nidcpower_grpc.MeasureMultipleRequest\x1a\'.nidcpower_grpc.MeasureMultipleResponse\x12\\\n\rFetchMultiple\x12$.nidcpower_grpc.FetchMultipleRequest\x1a%.nidcpower_grpc.FetchMultipleResponse\x12k\n\x12MeasureMultipleLCR\x12).nidcpower_grpc.MeasureMultipleLCRRequest\x1a*.nidcpower_grpc.MeasureMultipleLCRResponse\x12\x65\n\x10\x46\x65tchMultipleLCR\x12\'.nidcpower_grpc.FetchMultipleLCRRequest\x1a(.nidcpower_grpc.FetchMultipleLCRResponse\x12h\n\x11QueryInCompliance\x12(.nidcpower_grpc.QueryInComplianceRequest\x1a).nidcpower_grpc.QueryInComplianceResponse\x12\x65\n\x10QueryOutputState\x12\'.nidcpower_grpc.QueryOutputStateRequest\x1a(.nidcpower_grpc.QueryOutputStateResponse\x12\x8c\x01\n\x1dQueryLatchedOutputCutoffState\x12\x34.nidcpower_grpc.QueryLatchedOutputCutoffStateRequest\x1a\x35.nidcpower_grpc.QueryLatchedOutputCutoffStateResponse\x12\x8c\x01\n\x1d\x43learLatchedOutputCutoffState\x12\x34.nidcpower_grpc.ClearLatchedOutputCutoffStateRequest\x1a\x35.nidcpower_grpc.ClearLatchedOutputCutoffStateResponse\x12G\n\x06\x43ommit\x12\x1d.nidcpower_grpc.CommitRequest\x1a\x1e.nidcpower_grpc.CommitResponse\x12M\n\x08Initiate\x12\x1f.nidcpower_grpc.InitiateRequest\x1a .nidcpower_grpc.InitiateResponse\x12\x44\n\x05\x41\x62ort\x12\x1c.nidcpower_grpc.AbortRequest\x1a\x1d.nidcpower_grpc.AbortResponse\x12q\n\x14QueryMaxCurrentLimit\x12+.nidcpower_grpc.QueryMaxCurrentLimitRequest\x1a,.nidcpower_grpc.QueryMaxCurrentLimitResponse\x12q\n\x14QueryMaxVoltageLevel\x12+.nidcpower_grpc.QueryMaxVoltageLevelRequest\x1a,.nidcpower_grpc.QueryMaxVoltageLevelResponse\x12q\n\x14QueryMinCurrentLimit\x12+.nidcpower_grpc.QueryMinCurrentLimitRequest\x1a,.nidcpower_grpc.QueryMinCurrentLimitResponse\x12\x65\n\x10\x43\x61lSelfCalibrate\x12\'.nidcpower_grpc.CalSelfCalibrateRequest\x1a(.nidcpower_grpc.CalSelfCalibrateResponse\x12\x89\x01\n\x1cGetExtCalRecommendedInterval\x12\x33.nidcpower_grpc.GetExtCalRecommendedIntervalRequest\x1a\x34.nidcpower_grpc.GetExtCalRecommendedIntervalResponse\x12}\n\x18GetExtCalLastDateAndTime\x12/.nidcpower_grpc.GetExtCalLastDateAndTimeRequest\x1a\x30.nidcpower_grpc.GetExtCalLastDateAndTimeResponse\x12w\n\x16ReadCurrentTemperature\x12-.nidcpower_grpc.ReadCurrentTemperatureRequest\x1a..nidcpower_grpc.ReadCurrentTemperatureResponse\x12h\n\x11GetExtCalLastTemp\x12(.nidcpower_grpc.GetExtCalLastTempRequest\x1a).nidcpower_grpc.GetExtCalLastTempResponse\x12\x80\x01\n\x19GetSelfCalLastDateAndTime\x12\x30.nidcpower_grpc.GetSelfCalLastDateAndTimeRequest\x1a\x31.nidcpower_grpc.GetSelfCalLastDateAndTimeResponse\x12k\n\x12GetSelfCalLastTemp\x12).nidcpower_grpc.GetSelfCalLastTempRequest\x1a*.nidcpower_grpc.GetSelfCalLastTempResponse\x12\x98\x01\n!GetLCRCompensationLastDateAndTime\x12\x38.nidcpower_grpc.GetLCRCompensationLastDateAndTimeRequest\x1a\x39.nidcpower_grpc.GetLCRCompensationLastDateAndTimeResponse\x12\x95\x01\n ConfigureDigitalEdgeStartTrigger\x12\x37.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x38.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x98\x01\n!ConfigureSoftwareEdgeStartTrigger\x12\x38.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a\x39.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12n\n\x13\x44isableStartTrigger\x12*.nidcpower_grpc.DisableStartTriggerRequest\x1a+.nidcpower_grpc.DisableStartTriggerResponse\x12\xb3\x01\n*ConfigureDigitalEdgeSequenceAdvanceTrigger\x12\x41.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest\x1a\x42.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse\x12\xb6\x01\n+ConfigureSoftwareEdgeSequenceAdvanceTrigger\x12\x42.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest\x1a\x43.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse\x12\x8c\x01\n\x1d\x44isableSequenceAdvanceTrigger\x12\x34.nidcpower_grpc.DisableSequenceAdvanceTriggerRequest\x1a\x35.nidcpower_grpc.DisableSequenceAdvanceTriggerResponse\x12\x98\x01\n!ConfigureDigitalEdgeSourceTrigger\x12\x38.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerRequest\x1a\x39.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerResponse\x12\x9b\x01\n\"ConfigureSoftwareEdgeSourceTrigger\x12\x39.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerRequest\x1a:.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerResponse\x12q\n\x14\x44isableSourceTrigger\x12+.nidcpower_grpc.DisableSourceTriggerRequest\x1a,.nidcpower_grpc.DisableSourceTriggerResponse\x12\x9b\x01\n\"ConfigureDigitalEdgeMeasureTrigger\x12\x39.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerRequest\x1a:.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerResponse\x12\x9e\x01\n#ConfigureSoftwareEdgeMeasureTrigger\x12:.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerRequest\x1a;.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerResponse\x12\x95\x01\n ConfigureDigitalEdgePulseTrigger\x12\x37.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerRequest\x1a\x38.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerResponse\x12\x98\x01\n!ConfigureSoftwareEdgePulseTrigger\x12\x38.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerRequest\x1a\x39.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerResponse\x12n\n\x13\x44isablePulseTrigger\x12*.nidcpower_grpc.DisablePulseTriggerRequest\x1a+.nidcpower_grpc.DisablePulseTriggerResponse\x12Y\n\x0c\x45xportSignal\x12#.nidcpower_grpc.ExportSignalRequest\x1a$.nidcpower_grpc.ExportSignalResponse\x12z\n\x17SendSoftwareEdgeTrigger\x12..nidcpower_grpc.SendSoftwareEdgeTriggerRequest\x1a/.nidcpower_grpc.SendSoftwareEdgeTriggerResponse\x12Y\n\x0cWaitForEvent\x12#.nidcpower_grpc.WaitForEventRequest\x1a$.nidcpower_grpc.WaitForEventResponse\x12J\n\x07\x44isable\x12\x1e.nidcpower_grpc.DisableRequest\x1a\x1f.nidcpower_grpc.DisableResponse\x12\x44\n\x05Reset\x12\x1c.nidcpower_grpc.ResetRequest\x1a\x1d.nidcpower_grpc.ResetResponse\x12V\n\x0bResetDevice\x12\".nidcpower_grpc.ResetDeviceRequest\x1a#.nidcpower_grpc.ResetDeviceResponse\x12M\n\x08SelfTest\x12\x1f.nidcpower_grpc.SelfTestRequest\x1a .nidcpower_grpc.SelfTestResponse\x12\\\n\rRevisionQuery\x12$.nidcpower_grpc.RevisionQueryRequest\x1a%.nidcpower_grpc.RevisionQueryResponse\x12h\n\x11ResetWithDefaults\x12(.nidcpower_grpc.ResetWithDefaultsRequest\x1a).nidcpower_grpc.ResetWithDefaultsResponse\x12_\n\x0eGetChannelName\x12%.nidcpower_grpc.GetChannelNameRequest\x1a&.nidcpower_grpc.GetChannelNameResponse\x12}\n\x18GetChannelNameFromString\x12/.nidcpower_grpc.GetChannelNameFromStringRequest\x1a\x30.nidcpower_grpc.GetChannelNameFromStringResponse\x12t\n\x15GetNextCoercionRecord\x12,.nidcpower_grpc.GetNextCoercionRecordRequest\x1a-.nidcpower_grpc.GetNextCoercionRecordResponse\x12}\n\x18\x43learInterchangeWarnings\x12/.nidcpower_grpc.ClearInterchangeWarningsRequest\x1a\x30.nidcpower_grpc.ClearInterchangeWarningsResponse\x12t\n\x15ResetInterchangeCheck\x12,.nidcpower_grpc.ResetInterchangeCheckRequest\x1a-.nidcpower_grpc.ResetInterchangeCheckResponse\x12\x80\x01\n\x19GetNextInterchangeWarning\x12\x30.nidcpower_grpc.GetNextInterchangeWarningRequest\x1a\x31.nidcpower_grpc.GetNextInterchangeWarningResponse\x12M\n\x08GetError\x12\x1f.nidcpower_grpc.GetErrorRequest\x1a .nidcpower_grpc.GetErrorResponse\x12S\n\nClearError\x12!.nidcpower_grpc.ClearErrorRequest\x1a\".nidcpower_grpc.ClearErrorResponse\x12Y\n\x0c\x45rrorMessage\x12#.nidcpower_grpc.ErrorMessageRequest\x1a$.nidcpower_grpc.ErrorMessageResponse\x12n\n\x13SetAttributeViInt32\x12*.nidcpower_grpc.SetAttributeViInt32Request\x1a+.nidcpower_grpc.SetAttributeViInt32Response\x12n\n\x13SetAttributeViInt64\x12*.nidcpower_grpc.SetAttributeViInt64Request\x1a+.nidcpower_grpc.SetAttributeViInt64Response\x12q\n\x14SetAttributeViReal64\x12+.nidcpower_grpc.SetAttributeViReal64Request\x1a,.nidcpower_grpc.SetAttributeViReal64Response\x12q\n\x14SetAttributeViString\x12+.nidcpower_grpc.SetAttributeViStringRequest\x1a,.nidcpower_grpc.SetAttributeViStringResponse\x12t\n\x15SetAttributeViSession\x12,.nidcpower_grpc.SetAttributeViSessionRequest\x1a-.nidcpower_grpc.SetAttributeViSessionResponse\x12t\n\x15SetAttributeViBoolean\x12,.nidcpower_grpc.SetAttributeViBooleanRequest\x1a-.nidcpower_grpc.SetAttributeViBooleanResponse\x12n\n\x13GetAttributeViInt32\x12*.nidcpower_grpc.GetAttributeViInt32Request\x1a+.nidcpower_grpc.GetAttributeViInt32Response\x12n\n\x13GetAttributeViInt64\x12*.nidcpower_grpc.GetAttributeViInt64Request\x1a+.nidcpower_grpc.GetAttributeViInt64Response\x12q\n\x14GetAttributeViReal64\x12+.nidcpower_grpc.GetAttributeViReal64Request\x1a,.nidcpower_grpc.GetAttributeViReal64Response\x12q\n\x14GetAttributeViString\x12+.nidcpower_grpc.GetAttributeViStringRequest\x1a,.nidcpower_grpc.GetAttributeViStringResponse\x12t\n\x15GetAttributeViSession\x12,.nidcpower_grpc.GetAttributeViSessionRequest\x1a-.nidcpower_grpc.GetAttributeViSessionResponse\x12t\n\x15GetAttributeViBoolean\x12,.nidcpower_grpc.GetAttributeViBooleanRequest\x1a-.nidcpower_grpc.GetAttributeViBooleanResponse\x12\x95\x01\n ImportAttributeConfigurationFile\x12\x37.nidcpower_grpc.ImportAttributeConfigurationFileRequest\x1a\x38.nidcpower_grpc.ImportAttributeConfigurationFileResponse\x12\x95\x01\n ExportAttributeConfigurationFile\x12\x37.nidcpower_grpc.ExportAttributeConfigurationFileRequest\x1a\x38.nidcpower_grpc.ExportAttributeConfigurationFileResponse\x12\x9b\x01\n\"ImportAttributeConfigurationBuffer\x12\x39.nidcpower_grpc.ImportAttributeConfigurationBufferRequest\x1a:.nidcpower_grpc.ImportAttributeConfigurationBufferResponse\x12\x9b\x01\n\"ExportAttributeConfigurationBuffer\x12\x39.nidcpower_grpc.ExportAttributeConfigurationBufferRequest\x1a:.nidcpower_grpc.ExportAttributeConfigurationBufferResponse\x12\x83\x01\n\x1aPerformLCROpenCompensation\x12\x31.nidcpower_grpc.PerformLCROpenCompensationRequest\x1a\x32.nidcpower_grpc.PerformLCROpenCompensationResponse\x12\x86\x01\n\x1bPerformLCRShortCompensation\x12\x32.nidcpower_grpc.PerformLCRShortCompensationRequest\x1a\x33.nidcpower_grpc.PerformLCRShortCompensationResponse\x12\x83\x01\n\x1aPerformLCRLoadCompensation\x12\x31.nidcpower_grpc.PerformLCRLoadCompensationRequest\x1a\x32.nidcpower_grpc.PerformLCRLoadCompensationResponse\x12}\n\x18\x43onfigureLCRCompensation\x12/.nidcpower_grpc.ConfigureLCRCompensationRequest\x1a\x30.nidcpower_grpc.ConfigureLCRCompensationResponse\x12\xa4\x01\n%PerformLCROpenCustomCableCompensation\x12<.nidcpower_grpc.PerformLCROpenCustomCableCompensationRequest\x1a=.nidcpower_grpc.PerformLCROpenCustomCableCompensationResponse\x12\xa7\x01\n&PerformLCRShortCustomCableCompensation\x12=.nidcpower_grpc.PerformLCRShortCustomCableCompensationRequest\x1a>.nidcpower_grpc.PerformLCRShortCustomCableCompensationResponse\x12w\n\x16GetLCRCompensationData\x12-.nidcpower_grpc.GetLCRCompensationDataRequest\x1a..nidcpower_grpc.GetLCRCompensationDataResponse\x12\x98\x01\n!InitializeWithIndependentChannels\x12\x38.nidcpower_grpc.InitializeWithIndependentChannelsRequest\x1a\x39.nidcpower_grpc.InitializeWithIndependentChannelsResponse\x12\x92\x01\n\x1f\x43onfigureSourceModeWithChannels\x12\x36.nidcpower_grpc.ConfigureSourceModeWithChannelsRequest\x1a\x37.nidcpower_grpc.ConfigureSourceModeWithChannelsResponse\x12\x9b\x01\n\"CreateAdvancedSequenceWithChannels\x12\x39.nidcpower_grpc.CreateAdvancedSequenceWithChannelsRequest\x1a:.nidcpower_grpc.CreateAdvancedSequenceWithChannelsResponse\x12\xa7\x01\n&CreateAdvancedSequenceStepWithChannels\x12=.nidcpower_grpc.CreateAdvancedSequenceStepWithChannelsRequest\x1a>.nidcpower_grpc.CreateAdvancedSequenceStepWithChannelsResponse\x12\xb9\x01\n,CreateAdvancedSequenceCommitStepWithChannels\x12\x43.nidcpower_grpc.CreateAdvancedSequenceCommitStepWithChannelsRequest\x1a\x44.nidcpower_grpc.CreateAdvancedSequenceCommitStepWithChannelsResponse\x12\x9b\x01\n\"DeleteAdvancedSequenceWithChannels\x12\x39.nidcpower_grpc.DeleteAdvancedSequenceWithChannelsRequest\x1a:.nidcpower_grpc.DeleteAdvancedSequenceWithChannelsResponse\x12k\n\x12\x43ommitWithChannels\x12).nidcpower_grpc.CommitWithChannelsRequest\x1a*.nidcpower_grpc.CommitWithChannelsResponse\x12q\n\x14InitiateWithChannels\x12+.nidcpower_grpc.InitiateWithChannelsRequest\x1a,.nidcpower_grpc.InitiateWithChannelsResponse\x12h\n\x11\x41\x62ortWithChannels\x12(.nidcpower_grpc.AbortWithChannelsRequest\x1a).nidcpower_grpc.AbortWithChannelsResponse\x12\xb9\x01\n,ConfigureDigitalEdgeStartTriggerWithChannels\x12\x43.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerWithChannelsRequest\x1a\x44.nidcpower_grpc.ConfigureDigitalEdgeStartTriggerWithChannelsResponse\x12\xbc\x01\n-ConfigureSoftwareEdgeStartTriggerWithChannels\x12\x44.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest\x1a\x45.nidcpower_grpc.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse\x12\x92\x01\n\x1f\x44isableStartTriggerWithChannels\x12\x36.nidcpower_grpc.DisableStartTriggerWithChannelsRequest\x1a\x37.nidcpower_grpc.DisableStartTriggerWithChannelsResponse\x12\xd7\x01\n6ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels\x12M.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest\x1aN.nidcpower_grpc.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\xda\x01\n7ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels\x12N.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest\x1aO.nidcpower_grpc.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse\x12\xb0\x01\n)DisableSequenceAdvanceTriggerWithChannels\x12@.nidcpower_grpc.DisableSequenceAdvanceTriggerWithChannelsRequest\x1a\x41.nidcpower_grpc.DisableSequenceAdvanceTriggerWithChannelsResponse\x12\xbc\x01\n-ConfigureDigitalEdgeSourceTriggerWithChannels\x12\x44.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest\x1a\x45.nidcpower_grpc.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse\x12\xbf\x01\n.ConfigureSoftwareEdgeSourceTriggerWithChannels\x12\x45.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest\x1a\x46.nidcpower_grpc.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse\x12\x95\x01\n DisableSourceTriggerWithChannels\x12\x37.nidcpower_grpc.DisableSourceTriggerWithChannelsRequest\x1a\x38.nidcpower_grpc.DisableSourceTriggerWithChannelsResponse\x12\xbf\x01\n.ConfigureDigitalEdgeMeasureTriggerWithChannels\x12\x45.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest\x1a\x46.nidcpower_grpc.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse\x12\xc2\x01\n/ConfigureSoftwareEdgeMeasureTriggerWithChannels\x12\x46.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest\x1aG.nidcpower_grpc.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse\x12\xb9\x01\n,ConfigureDigitalEdgePulseTriggerWithChannels\x12\x43.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerWithChannelsRequest\x1a\x44.nidcpower_grpc.ConfigureDigitalEdgePulseTriggerWithChannelsResponse\x12\xbc\x01\n-ConfigureSoftwareEdgePulseTriggerWithChannels\x12\x44.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest\x1a\x45.nidcpower_grpc.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse\x12\x92\x01\n\x1f\x44isablePulseTriggerWithChannels\x12\x36.nidcpower_grpc.DisablePulseTriggerWithChannelsRequest\x1a\x37.nidcpower_grpc.DisablePulseTriggerWithChannelsResponse\x12\xc2\x01\n/ConfigureDigitalEdgeShutdownTriggerWithChannels\x12\x46.nidcpower_grpc.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest\x1aG.nidcpower_grpc.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse\x12\xc5\x01\n0ConfigureSoftwareEdgeShutdownTriggerWithChannels\x12G.nidcpower_grpc.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest\x1aH.nidcpower_grpc.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse\x12\x9b\x01\n\"DisableShutdownTriggerWithChannels\x12\x39.nidcpower_grpc.DisableShutdownTriggerWithChannelsRequest\x1a:.nidcpower_grpc.DisableShutdownTriggerWithChannelsResponse\x12}\n\x18\x45xportSignalWithChannels\x12/.nidcpower_grpc.ExportSignalWithChannelsRequest\x1a\x30.nidcpower_grpc.ExportSignalWithChannelsResponse\x12\x9e\x01\n#SendSoftwareEdgeTriggerWithChannels\x12:.nidcpower_grpc.SendSoftwareEdgeTriggerWithChannelsRequest\x1a;.nidcpower_grpc.SendSoftwareEdgeTriggerWithChannelsResponse\x12}\n\x18WaitForEventWithChannels\x12/.nidcpower_grpc.WaitForEventWithChannelsRequest\x1a\x30.nidcpower_grpc.WaitForEventWithChannelsResponse\x12h\n\x11ResetWithChannels\x12(.nidcpower_grpc.ResetWithChannelsRequest\x1a).nidcpower_grpc.ResetWithChannelsResponse\x12z\n\x17InvalidateAllAttributes\x12..nidcpower_grpc.InvalidateAllAttributesRequest\x1a/.nidcpower_grpc.InvalidateAllAttributesResponse\x12Y\n\x0c\x43onfigureOvp\x12#.nidcpower_grpc.ConfigureOvpRequest\x1a$.nidcpower_grpc.ConfigureOvpResponse\x12S\n\nErrorQuery\x12!.nidcpower_grpc.ErrorQueryRequest\x1a\".nidcpower_grpc.ErrorQueryResponse\x12\x98\x01\n!GetLCRCustomCableCompensationData\x12\x38.nidcpower_grpc.GetLCRCustomCableCompensationDataRequest\x1a\x39.nidcpower_grpc.GetLCRCustomCableCompensationDataResponse\x12\x9e\x01\n#ConfigureLCRCustomCableCompensation\x12:.nidcpower_grpc.ConfigureLCRCustomCableCompensationRequest\x1a;.nidcpower_grpc.ConfigureLCRCustomCableCompensationResponseBE\n\x13\x63om.ni.grpc.dcpowerB\tNiDCPowerP\x01\xaa\x02 NationalInstruments.Grpc.DCPowerb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidcpower_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\023com.ni.grpc.dcpowerB\tNiDCPowerP\001\252\002 NationalInstruments.Grpc.DCPower' + _NIDCPOWERINT32ATTRIBUTEVALUES._options = None + _NIDCPOWERINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._options = None + _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE.fields_by_name['error_message']._options = None + _INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NIDCPOWERATTRIBUTE']._serialized_start=28538 + _globals['_NIDCPOWERATTRIBUTE']._serialized_end=41532 + _globals['_CURRENTLIMITBEHAVIOR']._serialized_start=41535 + _globals['_CURRENTLIMITBEHAVIOR']._serialized_end=41671 + _globals['_OUTPUTSTATES']._serialized_start=41674 + _globals['_OUTPUTSTATES']._serialized_end=42011 + _globals['_MEASUREMENTTYPES']._serialized_start=42013 + _globals['_MEASUREMENTTYPES']._serialized_end=42137 + _globals['_OUTPUTFUNCTION']._serialized_start=42140 + _globals['_OUTPUTFUNCTION']._serialized_end=42490 + _globals['_SENSE']._serialized_start=42492 + _globals['_SENSE']._serialized_end=42587 + _globals['_DIGITALEDGE']._serialized_start=42589 + _globals['_DIGITALEDGE']._serialized_end=42713 + _globals['_SOURCEMODE']._serialized_start=42715 + _globals['_SOURCEMODE']._serialized_end=42842 + _globals['_AUTOZERO']._serialized_start=42844 + _globals['_AUTOZERO']._serialized_end=42954 + _globals['_POWERLINEFREQUENCIES']._serialized_start=42957 + _globals['_POWERLINEFREQUENCIES']._serialized_end=43121 + _globals['_APERTURETIMEUNITS']._serialized_start=43124 + _globals['_APERTURETIMEUNITS']._serialized_end=43286 + _globals['_EXPORTSIGNAL']._serialized_start=43289 + _globals['_EXPORTSIGNAL']._serialized_end=44000 + _globals['_OUTPUTCUTOFFREASON']._serialized_start=44003 + _globals['_OUTPUTCUTOFFREASON']._serialized_end=45284 + _globals['_LCRCOMPENSATIONTYPE']._serialized_start=45287 + _globals['_LCRCOMPENSATIONTYPE']._serialized_end=45675 + _globals['_EVENT']._serialized_start=45678 + _globals['_EVENT']._serialized_end=45985 + _globals['_SENDSOFTWAREEDGETRIGGERTYPE']._serialized_start=45988 + _globals['_SENDSOFTWAREEDGETRIGGERTYPE']._serialized_end=46431 + _globals['_NIDCPOWERINT32ATTRIBUTEVALUES']._serialized_start=46434 + _globals['_NIDCPOWERINT32ATTRIBUTEVALUES']._serialized_end=52720 + _globals['_NIDCPOWERREAL64ATTRIBUTEVALUES']._serialized_start=52723 + _globals['_NIDCPOWERREAL64ATTRIBUTEVALUES']._serialized_end=52905 + _globals['_NILCRMEASUREMENT']._serialized_start=67 + _globals['_NILCRMEASUREMENT']._serialized_end=597 + _globals['_NILCRLOADCOMPENSATIONSPOT']._serialized_start=600 + _globals['_NILCRLOADCOMPENSATIONSPOT']._serialized_end=730 + _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_start=733 + _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_end=944 + _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_start=947 + _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_end=1091 + _globals['_CLOSEREQUEST']._serialized_start=1093 + _globals['_CLOSEREQUEST']._serialized_end=1143 + _globals['_CLOSERESPONSE']._serialized_start=1145 + _globals['_CLOSERESPONSE']._serialized_end=1176 + _globals['_CONFIGURESOURCEMODEREQUEST']._serialized_start=1179 + _globals['_CONFIGURESOURCEMODEREQUEST']._serialized_end=1341 + _globals['_CONFIGURESOURCEMODERESPONSE']._serialized_start=1343 + _globals['_CONFIGURESOURCEMODERESPONSE']._serialized_end=1388 + _globals['_CONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_start=1391 + _globals['_CONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_end=1574 + _globals['_CONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_start=1576 + _globals['_CONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_end=1625 + _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_start=1627 + _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_end=1733 + _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_start=1735 + _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_end=1783 + _globals['_SETSEQUENCEREQUEST']._serialized_start=1785 + _globals['_SETSEQUENCEREQUEST']._serialized_end=1902 + _globals['_SETSEQUENCERESPONSE']._serialized_start=1904 + _globals['_SETSEQUENCERESPONSE']._serialized_end=1941 + _globals['_CONFIGUREVOLTAGELEVELREQUEST']._serialized_start=1943 + _globals['_CONFIGUREVOLTAGELEVELREQUEST']._serialized_end=2046 + _globals['_CONFIGUREVOLTAGELEVELRESPONSE']._serialized_start=2048 + _globals['_CONFIGUREVOLTAGELEVELRESPONSE']._serialized_end=2095 + _globals['_CONFIGURECURRENTLIMITREQUEST']._serialized_start=2098 + _globals['_CONFIGURECURRENTLIMITREQUEST']._serialized_end=2300 + _globals['_CONFIGURECURRENTLIMITRESPONSE']._serialized_start=2302 + _globals['_CONFIGURECURRENTLIMITRESPONSE']._serialized_end=2349 + _globals['_CONFIGUREVOLTAGELEVELRANGEREQUEST']._serialized_start=2351 + _globals['_CONFIGUREVOLTAGELEVELRANGEREQUEST']._serialized_end=2459 + _globals['_CONFIGUREVOLTAGELEVELRANGERESPONSE']._serialized_start=2461 + _globals['_CONFIGUREVOLTAGELEVELRANGERESPONSE']._serialized_end=2513 + _globals['_CONFIGURECURRENTLIMITRANGEREQUEST']._serialized_start=2515 + _globals['_CONFIGURECURRENTLIMITRANGEREQUEST']._serialized_end=2623 + _globals['_CONFIGURECURRENTLIMITRANGERESPONSE']._serialized_start=2625 + _globals['_CONFIGURECURRENTLIMITRANGERESPONSE']._serialized_end=2677 + _globals['_CONFIGUREOUTPUTRESISTANCEREQUEST']._serialized_start=2679 + _globals['_CONFIGUREOUTPUTRESISTANCEREQUEST']._serialized_end=2791 + _globals['_CONFIGUREOUTPUTRESISTANCERESPONSE']._serialized_start=2793 + _globals['_CONFIGUREOUTPUTRESISTANCERESPONSE']._serialized_end=2844 + _globals['_CONFIGURECURRENTLEVELREQUEST']._serialized_start=2846 + _globals['_CONFIGURECURRENTLEVELREQUEST']._serialized_end=2949 + _globals['_CONFIGURECURRENTLEVELRESPONSE']._serialized_start=2951 + _globals['_CONFIGURECURRENTLEVELRESPONSE']._serialized_end=2998 + _globals['_CONFIGURECURRENTLEVELRANGEREQUEST']._serialized_start=3000 + _globals['_CONFIGURECURRENTLEVELRANGEREQUEST']._serialized_end=3108 + _globals['_CONFIGURECURRENTLEVELRANGERESPONSE']._serialized_start=3110 + _globals['_CONFIGURECURRENTLEVELRANGERESPONSE']._serialized_end=3162 + _globals['_CONFIGUREVOLTAGELIMITREQUEST']._serialized_start=3164 + _globals['_CONFIGUREVOLTAGELIMITREQUEST']._serialized_end=3267 + _globals['_CONFIGUREVOLTAGELIMITRESPONSE']._serialized_start=3269 + _globals['_CONFIGUREVOLTAGELIMITRESPONSE']._serialized_end=3316 + _globals['_CONFIGUREVOLTAGELIMITRANGEREQUEST']._serialized_start=3318 + _globals['_CONFIGUREVOLTAGELIMITRANGEREQUEST']._serialized_end=3426 + _globals['_CONFIGUREVOLTAGELIMITRANGERESPONSE']._serialized_start=3428 + _globals['_CONFIGUREVOLTAGELIMITRANGERESPONSE']._serialized_end=3480 + _globals['_CONFIGUREPULSEVOLTAGELEVELREQUEST']._serialized_start=3482 + _globals['_CONFIGUREPULSEVOLTAGELEVELREQUEST']._serialized_end=3590 + _globals['_CONFIGUREPULSEVOLTAGELEVELRESPONSE']._serialized_start=3592 + _globals['_CONFIGUREPULSEVOLTAGELEVELRESPONSE']._serialized_end=3644 + _globals['_CONFIGUREPULSECURRENTLIMITREQUEST']._serialized_start=3646 + _globals['_CONFIGUREPULSECURRENTLIMITREQUEST']._serialized_end=3754 + _globals['_CONFIGUREPULSECURRENTLIMITRESPONSE']._serialized_start=3756 + _globals['_CONFIGUREPULSECURRENTLIMITRESPONSE']._serialized_end=3808 + _globals['_CONFIGUREPULSEBIASVOLTAGELEVELREQUEST']._serialized_start=3810 + _globals['_CONFIGUREPULSEBIASVOLTAGELEVELREQUEST']._serialized_end=3922 + _globals['_CONFIGUREPULSEBIASVOLTAGELEVELRESPONSE']._serialized_start=3924 + _globals['_CONFIGUREPULSEBIASVOLTAGELEVELRESPONSE']._serialized_end=3980 + _globals['_CONFIGUREPULSEBIASCURRENTLIMITREQUEST']._serialized_start=3982 + _globals['_CONFIGUREPULSEBIASCURRENTLIMITREQUEST']._serialized_end=4094 + _globals['_CONFIGUREPULSEBIASCURRENTLIMITRESPONSE']._serialized_start=4096 + _globals['_CONFIGUREPULSEBIASCURRENTLIMITRESPONSE']._serialized_end=4152 + _globals['_CONFIGUREPULSEVOLTAGELEVELRANGEREQUEST']._serialized_start=4154 + _globals['_CONFIGUREPULSEVOLTAGELEVELRANGEREQUEST']._serialized_end=4267 + _globals['_CONFIGUREPULSEVOLTAGELEVELRANGERESPONSE']._serialized_start=4269 + _globals['_CONFIGUREPULSEVOLTAGELEVELRANGERESPONSE']._serialized_end=4326 + _globals['_CONFIGUREPULSECURRENTLIMITRANGEREQUEST']._serialized_start=4328 + _globals['_CONFIGUREPULSECURRENTLIMITRANGEREQUEST']._serialized_end=4441 + _globals['_CONFIGUREPULSECURRENTLIMITRANGERESPONSE']._serialized_start=4443 + _globals['_CONFIGUREPULSECURRENTLIMITRANGERESPONSE']._serialized_end=4500 + _globals['_CONFIGUREPULSECURRENTLEVELREQUEST']._serialized_start=4502 + _globals['_CONFIGUREPULSECURRENTLEVELREQUEST']._serialized_end=4610 + _globals['_CONFIGUREPULSECURRENTLEVELRESPONSE']._serialized_start=4612 + _globals['_CONFIGUREPULSECURRENTLEVELRESPONSE']._serialized_end=4664 + _globals['_CONFIGUREPULSEVOLTAGELIMITREQUEST']._serialized_start=4666 + _globals['_CONFIGUREPULSEVOLTAGELIMITREQUEST']._serialized_end=4774 + _globals['_CONFIGUREPULSEVOLTAGELIMITRESPONSE']._serialized_start=4776 + _globals['_CONFIGUREPULSEVOLTAGELIMITRESPONSE']._serialized_end=4828 + _globals['_CONFIGUREPULSEBIASCURRENTLEVELREQUEST']._serialized_start=4830 + _globals['_CONFIGUREPULSEBIASCURRENTLEVELREQUEST']._serialized_end=4942 + _globals['_CONFIGUREPULSEBIASCURRENTLEVELRESPONSE']._serialized_start=4944 + _globals['_CONFIGUREPULSEBIASCURRENTLEVELRESPONSE']._serialized_end=5000 + _globals['_CONFIGUREPULSEBIASVOLTAGELIMITREQUEST']._serialized_start=5002 + _globals['_CONFIGUREPULSEBIASVOLTAGELIMITREQUEST']._serialized_end=5114 + _globals['_CONFIGUREPULSEBIASVOLTAGELIMITRESPONSE']._serialized_start=5116 + _globals['_CONFIGUREPULSEBIASVOLTAGELIMITRESPONSE']._serialized_end=5172 + _globals['_CONFIGUREPULSECURRENTLEVELRANGEREQUEST']._serialized_start=5174 + _globals['_CONFIGUREPULSECURRENTLEVELRANGEREQUEST']._serialized_end=5287 + _globals['_CONFIGUREPULSECURRENTLEVELRANGERESPONSE']._serialized_start=5289 + _globals['_CONFIGUREPULSECURRENTLEVELRANGERESPONSE']._serialized_end=5346 + _globals['_CONFIGUREPULSEVOLTAGELIMITRANGEREQUEST']._serialized_start=5348 + _globals['_CONFIGUREPULSEVOLTAGELIMITRANGEREQUEST']._serialized_end=5461 + _globals['_CONFIGUREPULSEVOLTAGELIMITRANGERESPONSE']._serialized_start=5463 + _globals['_CONFIGUREPULSEVOLTAGELIMITRANGERESPONSE']._serialized_end=5520 + _globals['_CREATEADVANCEDSEQUENCEREQUEST']._serialized_start=5523 + _globals['_CREATEADVANCEDSEQUENCEREQUEST']._serialized_end=5668 + _globals['_CREATEADVANCEDSEQUENCERESPONSE']._serialized_start=5670 + _globals['_CREATEADVANCEDSEQUENCERESPONSE']._serialized_end=5718 + _globals['_CREATEADVANCEDSEQUENCESTEPREQUEST']._serialized_start=5720 + _globals['_CREATEADVANCEDSEQUENCESTEPREQUEST']._serialized_end=5819 + _globals['_CREATEADVANCEDSEQUENCESTEPRESPONSE']._serialized_start=5821 + _globals['_CREATEADVANCEDSEQUENCESTEPRESPONSE']._serialized_end=5873 + _globals['_DELETEADVANCEDSEQUENCEREQUEST']._serialized_start=5875 + _globals['_DELETEADVANCEDSEQUENCEREQUEST']._serialized_end=5965 + _globals['_DELETEADVANCEDSEQUENCERESPONSE']._serialized_start=5967 + _globals['_DELETEADVANCEDSEQUENCERESPONSE']._serialized_end=6015 + _globals['_CONFIGUREAPERTURETIMEREQUEST']._serialized_start=6018 + _globals['_CONFIGUREAPERTURETIMEREQUEST']._serialized_end=6216 + _globals['_CONFIGUREAPERTURETIMERESPONSE']._serialized_start=6218 + _globals['_CONFIGUREAPERTURETIMERESPONSE']._serialized_end=6265 + _globals['_CONFIGUREAUTOZEROREQUEST']._serialized_start=6268 + _globals['_CONFIGUREAUTOZEROREQUEST']._serialized_end=6442 + _globals['_CONFIGUREAUTOZERORESPONSE']._serialized_start=6444 + _globals['_CONFIGUREAUTOZERORESPONSE']._serialized_end=6487 + _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_start=6490 + _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_end=6694 + _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_start=6696 + _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_end=6749 + _globals['_CONFIGURESENSEREQUEST']._serialized_start=6752 + _globals['_CONFIGURESENSEREQUEST']._serialized_end=6908 + _globals['_CONFIGURESENSERESPONSE']._serialized_start=6910 + _globals['_CONFIGURESENSERESPONSE']._serialized_end=6950 + _globals['_MEASUREREQUEST']._serialized_start=6953 + _globals['_MEASUREREQUEST']._serialized_end=7146 + _globals['_MEASURERESPONSE']._serialized_start=7148 + _globals['_MEASURERESPONSE']._serialized_end=7202 + _globals['_MEASUREMULTIPLEREQUEST']._serialized_start=7204 + _globals['_MEASUREMULTIPLEREQUEST']._serialized_end=7286 + _globals['_MEASUREMULTIPLERESPONSE']._serialized_start=7288 + _globals['_MEASUREMULTIPLERESPONSE']._serialized_end=7389 + _globals['_FETCHMULTIPLEREQUEST']._serialized_start=7391 + _globals['_FETCHMULTIPLEREQUEST']._serialized_end=7503 + _globals['_FETCHMULTIPLERESPONSE']._serialized_start=7506 + _globals['_FETCHMULTIPLERESPONSE']._serialized_end=7650 + _globals['_MEASUREMULTIPLELCRREQUEST']._serialized_start=7652 + _globals['_MEASUREMULTIPLELCRREQUEST']._serialized_end=7737 + _globals['_MEASUREMULTIPLELCRRESPONSE']._serialized_start=7739 + _globals['_MEASUREMULTIPLELCRRESPONSE']._serialized_end=7839 + _globals['_FETCHMULTIPLELCRREQUEST']._serialized_start=7841 + _globals['_FETCHMULTIPLELCRREQUEST']._serialized_end=7956 + _globals['_FETCHMULTIPLELCRRESPONSE']._serialized_start=7958 + _globals['_FETCHMULTIPLELCRRESPONSE']._serialized_end=8078 + _globals['_QUERYINCOMPLIANCEREQUEST']._serialized_start=8080 + _globals['_QUERYINCOMPLIANCEREQUEST']._serialized_end=8164 + _globals['_QUERYINCOMPLIANCERESPONSE']._serialized_start=8166 + _globals['_QUERYINCOMPLIANCERESPONSE']._serialized_end=8232 + _globals['_QUERYOUTPUTSTATEREQUEST']._serialized_start=8235 + _globals['_QUERYOUTPUTSTATEREQUEST']._serialized_end=8421 + _globals['_QUERYOUTPUTSTATERESPONSE']._serialized_start=8423 + _globals['_QUERYOUTPUTSTATERESPONSE']._serialized_end=8483 + _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_start=8486 + _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_end=8715 + _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_start=8717 + _globals['_QUERYLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_end=8801 + _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_start=8804 + _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATEREQUEST']._serialized_end=9033 + _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_start=9035 + _globals['_CLEARLATCHEDOUTPUTCUTOFFSTATERESPONSE']._serialized_end=9090 + _globals['_COMMITREQUEST']._serialized_start=9092 + _globals['_COMMITREQUEST']._serialized_end=9143 + _globals['_COMMITRESPONSE']._serialized_start=9145 + _globals['_COMMITRESPONSE']._serialized_end=9177 + _globals['_INITIATEREQUEST']._serialized_start=9179 + _globals['_INITIATEREQUEST']._serialized_end=9232 + _globals['_INITIATERESPONSE']._serialized_start=9234 + _globals['_INITIATERESPONSE']._serialized_end=9268 + _globals['_ABORTREQUEST']._serialized_start=9270 + _globals['_ABORTREQUEST']._serialized_end=9320 + _globals['_ABORTRESPONSE']._serialized_start=9322 + _globals['_ABORTRESPONSE']._serialized_end=9353 + _globals['_QUERYMAXCURRENTLIMITREQUEST']._serialized_start=9355 + _globals['_QUERYMAXCURRENTLIMITREQUEST']._serialized_end=9465 + _globals['_QUERYMAXCURRENTLIMITRESPONSE']._serialized_start=9467 + _globals['_QUERYMAXCURRENTLIMITRESPONSE']._serialized_end=9540 + _globals['_QUERYMAXVOLTAGELEVELREQUEST']._serialized_start=9542 + _globals['_QUERYMAXVOLTAGELEVELREQUEST']._serialized_end=9652 + _globals['_QUERYMAXVOLTAGELEVELRESPONSE']._serialized_start=9654 + _globals['_QUERYMAXVOLTAGELEVELRESPONSE']._serialized_end=9727 + _globals['_QUERYMINCURRENTLIMITREQUEST']._serialized_start=9729 + _globals['_QUERYMINCURRENTLIMITREQUEST']._serialized_end=9839 + _globals['_QUERYMINCURRENTLIMITRESPONSE']._serialized_start=9841 + _globals['_QUERYMINCURRENTLIMITRESPONSE']._serialized_end=9914 + _globals['_CALSELFCALIBRATEREQUEST']._serialized_start=9916 + _globals['_CALSELFCALIBRATEREQUEST']._serialized_end=9999 + _globals['_CALSELFCALIBRATERESPONSE']._serialized_start=10001 + _globals['_CALSELFCALIBRATERESPONSE']._serialized_end=10043 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=10045 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=10118 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=10120 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=10190 + _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_start=10192 + _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_end=10261 + _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_start=10263 + _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_end=10385 + _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_start=10387 + _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_end=10454 + _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_start=10456 + _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_end=10525 + _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_start=10527 + _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_end=10589 + _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_start=10591 + _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_end=10655 + _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_start=10657 + _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_end=10727 + _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_start=10729 + _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_end=10852 + _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_start=10854 + _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_end=10917 + _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_start=10919 + _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_end=10984 + _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMEREQUEST']._serialized_start=10987 + _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMEREQUEST']._serialized_end=11212 + _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMERESPONSE']._serialized_start=11215 + _globals['_GETLCRCOMPENSATIONLASTDATEANDTIMERESPONSE']._serialized_end=11346 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=11349 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=11528 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=11530 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=11588 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=11590 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=11668 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=11670 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=11729 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=11731 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=11795 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=11797 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=11842 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_start=11845 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_end=12034 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_start=12036 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_end=12104 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_start=12106 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERREQUEST']._serialized_end=12194 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_start=12196 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERRESPONSE']._serialized_end=12265 + _globals['_DISABLESEQUENCEADVANCETRIGGERREQUEST']._serialized_start=12267 + _globals['_DISABLESEQUENCEADVANCETRIGGERREQUEST']._serialized_end=12341 + _globals['_DISABLESEQUENCEADVANCETRIGGERRESPONSE']._serialized_start=12343 + _globals['_DISABLESEQUENCEADVANCETRIGGERRESPONSE']._serialized_end=12398 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERREQUEST']._serialized_start=12401 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERREQUEST']._serialized_end=12581 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERRESPONSE']._serialized_start=12583 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERRESPONSE']._serialized_end=12642 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERREQUEST']._serialized_start=12644 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERREQUEST']._serialized_end=12723 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERRESPONSE']._serialized_start=12725 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERRESPONSE']._serialized_end=12785 + _globals['_DISABLESOURCETRIGGERREQUEST']._serialized_start=12787 + _globals['_DISABLESOURCETRIGGERREQUEST']._serialized_end=12852 + _globals['_DISABLESOURCETRIGGERRESPONSE']._serialized_start=12854 + _globals['_DISABLESOURCETRIGGERRESPONSE']._serialized_end=12900 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERREQUEST']._serialized_start=12903 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERREQUEST']._serialized_end=13084 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERRESPONSE']._serialized_start=13086 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERRESPONSE']._serialized_end=13146 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERREQUEST']._serialized_start=13148 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERREQUEST']._serialized_end=13228 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERRESPONSE']._serialized_start=13230 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERRESPONSE']._serialized_end=13291 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERREQUEST']._serialized_start=13294 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERREQUEST']._serialized_end=13473 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERRESPONSE']._serialized_start=13475 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERRESPONSE']._serialized_end=13533 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERREQUEST']._serialized_start=13535 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERREQUEST']._serialized_end=13613 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERRESPONSE']._serialized_start=13615 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERRESPONSE']._serialized_end=13674 + _globals['_DISABLEPULSETRIGGERREQUEST']._serialized_start=13676 + _globals['_DISABLEPULSETRIGGERREQUEST']._serialized_end=13740 + _globals['_DISABLEPULSETRIGGERRESPONSE']._serialized_start=13742 + _globals['_DISABLEPULSETRIGGERRESPONSE']._serialized_end=13787 + _globals['_EXPORTSIGNALREQUEST']._serialized_start=13790 + _globals['_EXPORTSIGNALREQUEST']._serialized_end=13984 + _globals['_EXPORTSIGNALRESPONSE']._serialized_start=13986 + _globals['_EXPORTSIGNALRESPONSE']._serialized_end=14024 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=14027 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=14198 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=14200 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=14249 + _globals['_WAITFOREVENTREQUEST']._serialized_start=14252 + _globals['_WAITFOREVENTREQUEST']._serialized_end=14410 + _globals['_WAITFOREVENTRESPONSE']._serialized_start=14412 + _globals['_WAITFOREVENTRESPONSE']._serialized_end=14450 + _globals['_DISABLEREQUEST']._serialized_start=14452 + _globals['_DISABLEREQUEST']._serialized_end=14504 + _globals['_DISABLERESPONSE']._serialized_start=14506 + _globals['_DISABLERESPONSE']._serialized_end=14539 + _globals['_RESETREQUEST']._serialized_start=14541 + _globals['_RESETREQUEST']._serialized_end=14591 + _globals['_RESETRESPONSE']._serialized_start=14593 + _globals['_RESETRESPONSE']._serialized_end=14624 + _globals['_RESETDEVICEREQUEST']._serialized_start=14626 + _globals['_RESETDEVICEREQUEST']._serialized_end=14682 + _globals['_RESETDEVICERESPONSE']._serialized_start=14684 + _globals['_RESETDEVICERESPONSE']._serialized_end=14721 + _globals['_SELFTESTREQUEST']._serialized_start=14723 + _globals['_SELFTESTREQUEST']._serialized_end=14776 + _globals['_SELFTESTRESPONSE']._serialized_start=14778 + _globals['_SELFTESTRESPONSE']._serialized_end=14865 + _globals['_REVISIONQUERYREQUEST']._serialized_start=14867 + _globals['_REVISIONQUERYREQUEST']._serialized_end=14925 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=14927 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=15029 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=15031 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=15093 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=15095 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=15138 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=15140 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=15214 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=15216 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=15278 + _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_start=15280 + _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_end=15364 + _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_start=15366 + _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_end=15438 + _globals['_GETNEXTCOERCIONRECORDREQUEST']._serialized_start=15440 + _globals['_GETNEXTCOERCIONRECORDREQUEST']._serialized_end=15506 + _globals['_GETNEXTCOERCIONRECORDRESPONSE']._serialized_start=15508 + _globals['_GETNEXTCOERCIONRECORDRESPONSE']._serialized_end=15580 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=15582 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=15651 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=15653 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=15703 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=15705 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=15771 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=15773 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=15820 + _globals['_GETNEXTINTERCHANGEWARNINGREQUEST']._serialized_start=15822 + _globals['_GETNEXTINTERCHANGEWARNINGREQUEST']._serialized_end=15892 + _globals['_GETNEXTINTERCHANGEWARNINGRESPONSE']._serialized_start=15894 + _globals['_GETNEXTINTERCHANGEWARNINGRESPONSE']._serialized_end=15974 + _globals['_GETERRORREQUEST']._serialized_start=15976 + _globals['_GETERRORREQUEST']._serialized_end=16029 + _globals['_GETERRORRESPONSE']._serialized_start=16031 + _globals['_GETERRORRESPONSE']._serialized_end=16100 + _globals['_CLEARERRORREQUEST']._serialized_start=16102 + _globals['_CLEARERRORREQUEST']._serialized_end=16157 + _globals['_CLEARERRORRESPONSE']._serialized_start=16159 + _globals['_CLEARERRORRESPONSE']._serialized_end=16195 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=16197 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=16274 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=16276 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=16337 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=16340 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=16613 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=16615 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=16660 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=16663 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=16836 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=16838 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=16883 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=16886 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=17161 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=17163 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=17209 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=17212 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=17386 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=17388 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=17434 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=17437 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=17632 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=17634 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=17681 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=17684 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=17855 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=17857 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=17904 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=17907 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=18051 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=18053 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=18123 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=18126 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=18270 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=18272 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=18342 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=18345 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=18490 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=18492 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=18563 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=18566 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=18711 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=18713 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=18784 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=18787 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=18933 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=18935 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=19031 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19034 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19180 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19182 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19254 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19256 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19352 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19354 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19412 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19414 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19510 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19512 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19570 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19572 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19674 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19676 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19736 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19738 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19817 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19819 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19902 + _globals['_PERFORMLCROPENCOMPENSATIONREQUEST']._serialized_start=19904 + _globals['_PERFORMLCROPENCOMPENSATIONREQUEST']._serialized_end=20029 + _globals['_PERFORMLCROPENCOMPENSATIONRESPONSE']._serialized_start=20031 + _globals['_PERFORMLCROPENCOMPENSATIONRESPONSE']._serialized_end=20083 + _globals['_PERFORMLCRSHORTCOMPENSATIONREQUEST']._serialized_start=20085 + _globals['_PERFORMLCRSHORTCOMPENSATIONREQUEST']._serialized_end=20211 + _globals['_PERFORMLCRSHORTCOMPENSATIONRESPONSE']._serialized_start=20213 + _globals['_PERFORMLCRSHORTCOMPENSATIONRESPONSE']._serialized_end=20266 + _globals['_PERFORMLCRLOADCOMPENSATIONREQUEST']._serialized_start=20269 + _globals['_PERFORMLCRLOADCOMPENSATIONREQUEST']._serialized_end=20433 + _globals['_PERFORMLCRLOADCOMPENSATIONRESPONSE']._serialized_start=20435 + _globals['_PERFORMLCRLOADCOMPENSATIONRESPONSE']._serialized_end=20487 + _globals['_CONFIGURELCRCOMPENSATIONREQUEST']._serialized_start=20489 + _globals['_CONFIGURELCRCOMPENSATIONREQUEST']._serialized_end=20607 + _globals['_CONFIGURELCRCOMPENSATIONRESPONSE']._serialized_start=20609 + _globals['_CONFIGURELCRCOMPENSATIONRESPONSE']._serialized_end=20659 + _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONREQUEST']._serialized_start=20661 + _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONREQUEST']._serialized_end=20765 + _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_start=20767 + _globals['_PERFORMLCROPENCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_end=20830 + _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONREQUEST']._serialized_start=20832 + _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONREQUEST']._serialized_end=20937 + _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_start=20939 + _globals['_PERFORMLCRSHORTCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_end=21003 + _globals['_GETLCRCOMPENSATIONDATAREQUEST']._serialized_start=21005 + _globals['_GETLCRCOMPENSATIONDATAREQUEST']._serialized_end=21094 + _globals['_GETLCRCOMPENSATIONDATARESPONSE']._serialized_start=21096 + _globals['_GETLCRCOMPENSATIONDATARESPONSE']._serialized_end=21171 + _globals['_INITIALIZEWITHINDEPENDENTCHANNELSREQUEST']._serialized_start=21174 + _globals['_INITIALIZEWITHINDEPENDENTCHANNELSREQUEST']._serialized_end=21378 + _globals['_INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE']._serialized_start=21381 + _globals['_INITIALIZEWITHINDEPENDENTCHANNELSRESPONSE']._serialized_end=21536 + _globals['_CONFIGURESOURCEMODEWITHCHANNELSREQUEST']._serialized_start=21539 + _globals['_CONFIGURESOURCEMODEWITHCHANNELSREQUEST']._serialized_end=21735 + _globals['_CONFIGURESOURCEMODEWITHCHANNELSRESPONSE']._serialized_start=21737 + _globals['_CONFIGURESOURCEMODEWITHCHANNELSRESPONSE']._serialized_end=21794 + _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_start=21797 + _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_end=21976 + _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_start=21978 + _globals['_CREATEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_end=22038 + _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSREQUEST']._serialized_start=22041 + _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSREQUEST']._serialized_end=22174 + _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSRESPONSE']._serialized_start=22176 + _globals['_CREATEADVANCEDSEQUENCESTEPWITHCHANNELSRESPONSE']._serialized_end=22240 + _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSREQUEST']._serialized_start=22243 + _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSREQUEST']._serialized_end=22382 + _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSRESPONSE']._serialized_start=22384 + _globals['_CREATEADVANCEDSEQUENCECOMMITSTEPWITHCHANNELSRESPONSE']._serialized_end=22454 + _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_start=22456 + _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSREQUEST']._serialized_end=22580 + _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_start=22582 + _globals['_DELETEADVANCEDSEQUENCEWITHCHANNELSRESPONSE']._serialized_end=22642 + _globals['_COMMITWITHCHANNELSREQUEST']._serialized_start=22644 + _globals['_COMMITWITHCHANNELSREQUEST']._serialized_end=22729 + _globals['_COMMITWITHCHANNELSRESPONSE']._serialized_start=22731 + _globals['_COMMITWITHCHANNELSRESPONSE']._serialized_end=22775 + _globals['_INITIATEWITHCHANNELSREQUEST']._serialized_start=22777 + _globals['_INITIATEWITHCHANNELSREQUEST']._serialized_end=22864 + _globals['_INITIATEWITHCHANNELSRESPONSE']._serialized_start=22866 + _globals['_INITIATEWITHCHANNELSRESPONSE']._serialized_end=22912 + _globals['_ABORTWITHCHANNELSREQUEST']._serialized_start=22914 + _globals['_ABORTWITHCHANNELSREQUEST']._serialized_end=22998 + _globals['_ABORTWITHCHANNELSRESPONSE']._serialized_start=23000 + _globals['_ABORTWITHCHANNELSRESPONSE']._serialized_end=23043 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_start=23046 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_end=23259 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_start=23261 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_end=23331 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_start=23333 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_end=23445 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_start=23447 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_end=23518 + _globals['_DISABLESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_start=23520 + _globals['_DISABLESTARTTRIGGERWITHCHANNELSREQUEST']._serialized_end=23618 + _globals['_DISABLESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_start=23620 + _globals['_DISABLESTARTTRIGGERWITHCHANNELSRESPONSE']._serialized_end=23677 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_start=23680 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_end=23903 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=23905 + _globals['_CONFIGUREDIGITALEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=23985 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_start=23987 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24109 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24111 + _globals['_CONFIGURESOFTWAREEDGESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24192 + _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24194 + _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24302 + _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24304 + _globals['_DISABLESEQUENCEADVANCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24371 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24374 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24588 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24590 + _globals['_CONFIGUREDIGITALEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24661 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24663 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24776 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24778 + _globals['_CONFIGURESOFTWAREEDGESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=24850 + _globals['_DISABLESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_start=24852 + _globals['_DISABLESOURCETRIGGERWITHCHANNELSREQUEST']._serialized_end=24951 + _globals['_DISABLESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_start=24953 + _globals['_DISABLESOURCETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25011 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_start=25014 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_end=25229 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25231 + _globals['_CONFIGUREDIGITALEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25303 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_start=25305 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSREQUEST']._serialized_end=25419 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25421 + _globals['_CONFIGURESOFTWAREEDGEMEASURETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25494 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_start=25497 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_end=25710 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25712 + _globals['_CONFIGUREDIGITALEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25782 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_start=25784 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_end=25896 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_start=25898 + _globals['_CONFIGURESOFTWAREEDGEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_end=25969 + _globals['_DISABLEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_start=25971 + _globals['_DISABLEPULSETRIGGERWITHCHANNELSREQUEST']._serialized_end=26069 + _globals['_DISABLEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_start=26071 + _globals['_DISABLEPULSETRIGGERWITHCHANNELSRESPONSE']._serialized_end=26128 + _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_start=26131 + _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_end=26347 + _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_start=26349 + _globals['_CONFIGUREDIGITALEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_end=26422 + _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_start=26424 + _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_end=26539 + _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_start=26541 + _globals['_CONFIGURESOFTWAREEDGESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_end=26615 + _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_start=26617 + _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSREQUEST']._serialized_end=26718 + _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_start=26720 + _globals['_DISABLESHUTDOWNTRIGGERWITHCHANNELSRESPONSE']._serialized_end=26780 + _globals['_EXPORTSIGNALWITHCHANNELSREQUEST']._serialized_start=26783 + _globals['_EXPORTSIGNALWITHCHANNELSREQUEST']._serialized_end=27011 + _globals['_EXPORTSIGNALWITHCHANNELSRESPONSE']._serialized_start=27013 + _globals['_EXPORTSIGNALWITHCHANNELSRESPONSE']._serialized_end=27063 + _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSREQUEST']._serialized_start=27066 + _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSREQUEST']._serialized_end=27271 + _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSRESPONSE']._serialized_start=27273 + _globals['_SENDSOFTWAREEDGETRIGGERWITHCHANNELSRESPONSE']._serialized_end=27334 + _globals['_WAITFOREVENTWITHCHANNELSREQUEST']._serialized_start=27337 + _globals['_WAITFOREVENTWITHCHANNELSREQUEST']._serialized_end=27529 + _globals['_WAITFOREVENTWITHCHANNELSRESPONSE']._serialized_start=27531 + _globals['_WAITFOREVENTWITHCHANNELSRESPONSE']._serialized_end=27581 + _globals['_RESETWITHCHANNELSREQUEST']._serialized_start=27583 + _globals['_RESETWITHCHANNELSREQUEST']._serialized_end=27667 + _globals['_RESETWITHCHANNELSRESPONSE']._serialized_start=27669 + _globals['_RESETWITHCHANNELSRESPONSE']._serialized_end=27712 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=27714 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=27782 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=27784 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=27833 + _globals['_CONFIGUREOVPREQUEST']._serialized_start=27835 + _globals['_CONFIGUREOVPREQUEST']._serialized_end=27946 + _globals['_CONFIGUREOVPRESPONSE']._serialized_start=27948 + _globals['_CONFIGUREOVPRESPONSE']._serialized_end=27986 + _globals['_ERRORQUERYREQUEST']._serialized_start=27988 + _globals['_ERRORQUERYREQUEST']._serialized_end=28043 + _globals['_ERRORQUERYRESPONSE']._serialized_start=28045 + _globals['_ERRORQUERYRESPONSE']._serialized_end=28124 + _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATAREQUEST']._serialized_start=28126 + _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATAREQUEST']._serialized_end=28226 + _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATARESPONSE']._serialized_start=28228 + _globals['_GETLCRCUSTOMCABLECOMPENSATIONDATARESPONSE']._serialized_end=28327 + _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONREQUEST']._serialized_start=28330 + _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONREQUEST']._serialized_end=28472 + _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_start=28474 + _globals['_CONFIGURELCRCUSTOMCABLECOMPENSATIONRESPONSE']._serialized_end=28535 + _globals['_NIDCPOWER']._serialized_start=52909 + _globals['_NIDCPOWER']._serialized_end=72260 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py b/generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py new file mode 100644 index 0000000000..79c2ea265d --- /dev/null +++ b/generated/nidcpower/nidcpower/nidcpower_pb2_grpc.py @@ -0,0 +1,4884 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nidcpower_pb2 as nidcpower__pb2 + + +class NiDCPowerStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.InitializeWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/InitializeWithChannels', + request_serializer=nidcpower__pb2.InitializeWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.InitializeWithChannelsResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Close', + request_serializer=nidcpower__pb2.CloseRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CloseResponse.FromString, + ) + self.ConfigureSourceMode = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSourceMode', + request_serializer=nidcpower__pb2.ConfigureSourceModeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSourceModeResponse.FromString, + ) + self.ConfigureOutputFunction = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureOutputFunction', + request_serializer=nidcpower__pb2.ConfigureOutputFunctionRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureOutputFunctionResponse.FromString, + ) + self.ConfigureOutputEnabled = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureOutputEnabled', + request_serializer=nidcpower__pb2.ConfigureOutputEnabledRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureOutputEnabledResponse.FromString, + ) + self.SetSequence = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetSequence', + request_serializer=nidcpower__pb2.SetSequenceRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SetSequenceResponse.FromString, + ) + self.ConfigureVoltageLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevel', + request_serializer=nidcpower__pb2.ConfigureVoltageLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureVoltageLevelResponse.FromString, + ) + self.ConfigureCurrentLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimit', + request_serializer=nidcpower__pb2.ConfigureCurrentLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureCurrentLimitResponse.FromString, + ) + self.ConfigureVoltageLevelRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevelRange', + request_serializer=nidcpower__pb2.ConfigureVoltageLevelRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureVoltageLevelRangeResponse.FromString, + ) + self.ConfigureCurrentLimitRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimitRange', + request_serializer=nidcpower__pb2.ConfigureCurrentLimitRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureCurrentLimitRangeResponse.FromString, + ) + self.ConfigureOutputResistance = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureOutputResistance', + request_serializer=nidcpower__pb2.ConfigureOutputResistanceRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureOutputResistanceResponse.FromString, + ) + self.ConfigureCurrentLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevel', + request_serializer=nidcpower__pb2.ConfigureCurrentLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureCurrentLevelResponse.FromString, + ) + self.ConfigureCurrentLevelRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevelRange', + request_serializer=nidcpower__pb2.ConfigureCurrentLevelRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureCurrentLevelRangeResponse.FromString, + ) + self.ConfigureVoltageLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimit', + request_serializer=nidcpower__pb2.ConfigureVoltageLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureVoltageLimitResponse.FromString, + ) + self.ConfigureVoltageLimitRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimitRange', + request_serializer=nidcpower__pb2.ConfigureVoltageLimitRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureVoltageLimitRangeResponse.FromString, + ) + self.ConfigurePulseVoltageLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevel', + request_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelResponse.FromString, + ) + self.ConfigurePulseCurrentLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimit', + request_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitResponse.FromString, + ) + self.ConfigurePulseBiasVoltageLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLevel', + request_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelResponse.FromString, + ) + self.ConfigurePulseBiasCurrentLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLimit', + request_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitResponse.FromString, + ) + self.ConfigurePulseVoltageLevelRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevelRange', + request_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeResponse.FromString, + ) + self.ConfigurePulseCurrentLimitRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimitRange', + request_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeResponse.FromString, + ) + self.ConfigurePulseCurrentLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevel', + request_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelResponse.FromString, + ) + self.ConfigurePulseVoltageLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimit', + request_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitResponse.FromString, + ) + self.ConfigurePulseBiasCurrentLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLevel', + request_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelResponse.FromString, + ) + self.ConfigurePulseBiasVoltageLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLimit', + request_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitResponse.FromString, + ) + self.ConfigurePulseCurrentLevelRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevelRange', + request_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeResponse.FromString, + ) + self.ConfigurePulseVoltageLimitRange = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimitRange', + request_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeResponse.FromString, + ) + self.CreateAdvancedSequence = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CreateAdvancedSequence', + request_serializer=nidcpower__pb2.CreateAdvancedSequenceRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CreateAdvancedSequenceResponse.FromString, + ) + self.CreateAdvancedSequenceStep = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStep', + request_serializer=nidcpower__pb2.CreateAdvancedSequenceStepRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepResponse.FromString, + ) + self.DeleteAdvancedSequence = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequence', + request_serializer=nidcpower__pb2.DeleteAdvancedSequenceRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DeleteAdvancedSequenceResponse.FromString, + ) + self.ConfigureApertureTime = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureApertureTime', + request_serializer=nidcpower__pb2.ConfigureApertureTimeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureApertureTimeResponse.FromString, + ) + self.ConfigureAutoZero = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureAutoZero', + request_serializer=nidcpower__pb2.ConfigureAutoZeroRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureAutoZeroResponse.FromString, + ) + self.ConfigurePowerLineFrequency = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigurePowerLineFrequency', + request_serializer=nidcpower__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigurePowerLineFrequencyResponse.FromString, + ) + self.ConfigureSense = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSense', + request_serializer=nidcpower__pb2.ConfigureSenseRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSenseResponse.FromString, + ) + self.Measure = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Measure', + request_serializer=nidcpower__pb2.MeasureRequest.SerializeToString, + response_deserializer=nidcpower__pb2.MeasureResponse.FromString, + ) + self.MeasureMultiple = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/MeasureMultiple', + request_serializer=nidcpower__pb2.MeasureMultipleRequest.SerializeToString, + response_deserializer=nidcpower__pb2.MeasureMultipleResponse.FromString, + ) + self.FetchMultiple = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/FetchMultiple', + request_serializer=nidcpower__pb2.FetchMultipleRequest.SerializeToString, + response_deserializer=nidcpower__pb2.FetchMultipleResponse.FromString, + ) + self.MeasureMultipleLCR = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/MeasureMultipleLCR', + request_serializer=nidcpower__pb2.MeasureMultipleLCRRequest.SerializeToString, + response_deserializer=nidcpower__pb2.MeasureMultipleLCRResponse.FromString, + ) + self.FetchMultipleLCR = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/FetchMultipleLCR', + request_serializer=nidcpower__pb2.FetchMultipleLCRRequest.SerializeToString, + response_deserializer=nidcpower__pb2.FetchMultipleLCRResponse.FromString, + ) + self.QueryInCompliance = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/QueryInCompliance', + request_serializer=nidcpower__pb2.QueryInComplianceRequest.SerializeToString, + response_deserializer=nidcpower__pb2.QueryInComplianceResponse.FromString, + ) + self.QueryOutputState = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/QueryOutputState', + request_serializer=nidcpower__pb2.QueryOutputStateRequest.SerializeToString, + response_deserializer=nidcpower__pb2.QueryOutputStateResponse.FromString, + ) + self.QueryLatchedOutputCutoffState = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/QueryLatchedOutputCutoffState', + request_serializer=nidcpower__pb2.QueryLatchedOutputCutoffStateRequest.SerializeToString, + response_deserializer=nidcpower__pb2.QueryLatchedOutputCutoffStateResponse.FromString, + ) + self.ClearLatchedOutputCutoffState = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ClearLatchedOutputCutoffState', + request_serializer=nidcpower__pb2.ClearLatchedOutputCutoffStateRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ClearLatchedOutputCutoffStateResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Commit', + request_serializer=nidcpower__pb2.CommitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CommitResponse.FromString, + ) + self.Initiate = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Initiate', + request_serializer=nidcpower__pb2.InitiateRequest.SerializeToString, + response_deserializer=nidcpower__pb2.InitiateResponse.FromString, + ) + self.Abort = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Abort', + request_serializer=nidcpower__pb2.AbortRequest.SerializeToString, + response_deserializer=nidcpower__pb2.AbortResponse.FromString, + ) + self.QueryMaxCurrentLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/QueryMaxCurrentLimit', + request_serializer=nidcpower__pb2.QueryMaxCurrentLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.QueryMaxCurrentLimitResponse.FromString, + ) + self.QueryMaxVoltageLevel = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/QueryMaxVoltageLevel', + request_serializer=nidcpower__pb2.QueryMaxVoltageLevelRequest.SerializeToString, + response_deserializer=nidcpower__pb2.QueryMaxVoltageLevelResponse.FromString, + ) + self.QueryMinCurrentLimit = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/QueryMinCurrentLimit', + request_serializer=nidcpower__pb2.QueryMinCurrentLimitRequest.SerializeToString, + response_deserializer=nidcpower__pb2.QueryMinCurrentLimitResponse.FromString, + ) + self.CalSelfCalibrate = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CalSelfCalibrate', + request_serializer=nidcpower__pb2.CalSelfCalibrateRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CalSelfCalibrateResponse.FromString, + ) + self.GetExtCalRecommendedInterval = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetExtCalRecommendedInterval', + request_serializer=nidcpower__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetExtCalRecommendedIntervalResponse.FromString, + ) + self.GetExtCalLastDateAndTime = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetExtCalLastDateAndTime', + request_serializer=nidcpower__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetExtCalLastDateAndTimeResponse.FromString, + ) + self.ReadCurrentTemperature = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ReadCurrentTemperature', + request_serializer=nidcpower__pb2.ReadCurrentTemperatureRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ReadCurrentTemperatureResponse.FromString, + ) + self.GetExtCalLastTemp = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetExtCalLastTemp', + request_serializer=nidcpower__pb2.GetExtCalLastTempRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetExtCalLastTempResponse.FromString, + ) + self.GetSelfCalLastDateAndTime = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetSelfCalLastDateAndTime', + request_serializer=nidcpower__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetSelfCalLastDateAndTimeResponse.FromString, + ) + self.GetSelfCalLastTemp = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetSelfCalLastTemp', + request_serializer=nidcpower__pb2.GetSelfCalLastTempRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetSelfCalLastTempResponse.FromString, + ) + self.GetLCRCompensationLastDateAndTime = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetLCRCompensationLastDateAndTime', + request_serializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeResponse.FromString, + ) + self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTrigger', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTrigger', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + ) + self.DisableStartTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableStartTrigger', + request_serializer=nidcpower__pb2.DisableStartTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableStartTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeSequenceAdvanceTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTrigger', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeSequenceAdvanceTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTrigger', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse.FromString, + ) + self.DisableSequenceAdvanceTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTrigger', + request_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeSourceTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTrigger', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeSourceTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTrigger', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerResponse.FromString, + ) + self.DisableSourceTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableSourceTrigger', + request_serializer=nidcpower__pb2.DisableSourceTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableSourceTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeMeasureTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTrigger', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeMeasureTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTrigger', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgePulseTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTrigger', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgePulseTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTrigger', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerResponse.FromString, + ) + self.DisablePulseTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisablePulseTrigger', + request_serializer=nidcpower__pb2.DisablePulseTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisablePulseTriggerResponse.FromString, + ) + self.ExportSignal = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ExportSignal', + request_serializer=nidcpower__pb2.ExportSignalRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ExportSignalResponse.FromString, + ) + self.SendSoftwareEdgeTrigger = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTrigger', + request_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerResponse.FromString, + ) + self.WaitForEvent = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/WaitForEvent', + request_serializer=nidcpower__pb2.WaitForEventRequest.SerializeToString, + response_deserializer=nidcpower__pb2.WaitForEventResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Disable', + request_serializer=nidcpower__pb2.DisableRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/Reset', + request_serializer=nidcpower__pb2.ResetRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ResetResponse.FromString, + ) + self.ResetDevice = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ResetDevice', + request_serializer=nidcpower__pb2.ResetDeviceRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ResetDeviceResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SelfTest', + request_serializer=nidcpower__pb2.SelfTestRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SelfTestResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/RevisionQuery', + request_serializer=nidcpower__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=nidcpower__pb2.RevisionQueryResponse.FromString, + ) + self.ResetWithDefaults = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ResetWithDefaults', + request_serializer=nidcpower__pb2.ResetWithDefaultsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ResetWithDefaultsResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetChannelName', + request_serializer=nidcpower__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetChannelNameResponse.FromString, + ) + self.GetChannelNameFromString = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetChannelNameFromString', + request_serializer=nidcpower__pb2.GetChannelNameFromStringRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetChannelNameFromStringResponse.FromString, + ) + self.GetNextCoercionRecord = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetNextCoercionRecord', + request_serializer=nidcpower__pb2.GetNextCoercionRecordRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetNextCoercionRecordResponse.FromString, + ) + self.ClearInterchangeWarnings = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ClearInterchangeWarnings', + request_serializer=nidcpower__pb2.ClearInterchangeWarningsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ClearInterchangeWarningsResponse.FromString, + ) + self.ResetInterchangeCheck = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ResetInterchangeCheck', + request_serializer=nidcpower__pb2.ResetInterchangeCheckRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ResetInterchangeCheckResponse.FromString, + ) + self.GetNextInterchangeWarning = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetNextInterchangeWarning', + request_serializer=nidcpower__pb2.GetNextInterchangeWarningRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetNextInterchangeWarningResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetError', + request_serializer=nidcpower__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetErrorResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ClearError', + request_serializer=nidcpower__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ClearErrorResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ErrorMessage', + request_serializer=nidcpower__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ErrorMessageResponse.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetAttributeViInt32', + request_serializer=nidcpower__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nidcpower__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetAttributeViInt64', + request_serializer=nidcpower__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=nidcpower__pb2.SetAttributeViInt64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetAttributeViReal64', + request_serializer=nidcpower__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nidcpower__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetAttributeViString', + request_serializer=nidcpower__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SetAttributeViStringResponse.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetAttributeViSession', + request_serializer=nidcpower__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SetAttributeViBoolean', + request_serializer=nidcpower__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetAttributeViInt32', + request_serializer=nidcpower__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nidcpower__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetAttributeViInt64', + request_serializer=nidcpower__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=nidcpower__pb2.GetAttributeViInt64Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetAttributeViReal64', + request_serializer=nidcpower__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nidcpower__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetAttributeViString', + request_serializer=nidcpower__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetAttributeViSession', + request_serializer=nidcpower__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetAttributeViSessionResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetAttributeViBoolean', + request_serializer=nidcpower__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.ImportAttributeConfigurationFile = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationFile', + request_serializer=nidcpower__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ImportAttributeConfigurationFileResponse.FromString, + ) + self.ExportAttributeConfigurationFile = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationFile', + request_serializer=nidcpower__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ExportAttributeConfigurationFileResponse.FromString, + ) + self.ImportAttributeConfigurationBuffer = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationBuffer', + request_serializer=nidcpower__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ImportAttributeConfigurationBufferResponse.FromString, + ) + self.ExportAttributeConfigurationBuffer = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationBuffer', + request_serializer=nidcpower__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ExportAttributeConfigurationBufferResponse.FromString, + ) + self.PerformLCROpenCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/PerformLCROpenCompensation', + request_serializer=nidcpower__pb2.PerformLCROpenCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.PerformLCROpenCompensationResponse.FromString, + ) + self.PerformLCRShortCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/PerformLCRShortCompensation', + request_serializer=nidcpower__pb2.PerformLCRShortCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.PerformLCRShortCompensationResponse.FromString, + ) + self.PerformLCRLoadCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/PerformLCRLoadCompensation', + request_serializer=nidcpower__pb2.PerformLCRLoadCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.PerformLCRLoadCompensationResponse.FromString, + ) + self.ConfigureLCRCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureLCRCompensation', + request_serializer=nidcpower__pb2.ConfigureLCRCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureLCRCompensationResponse.FromString, + ) + self.PerformLCROpenCustomCableCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/PerformLCROpenCustomCableCompensation', + request_serializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationResponse.FromString, + ) + self.PerformLCRShortCustomCableCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/PerformLCRShortCustomCableCompensation', + request_serializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationResponse.FromString, + ) + self.GetLCRCompensationData = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetLCRCompensationData', + request_serializer=nidcpower__pb2.GetLCRCompensationDataRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetLCRCompensationDataResponse.FromString, + ) + self.InitializeWithIndependentChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/InitializeWithIndependentChannels', + request_serializer=nidcpower__pb2.InitializeWithIndependentChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.InitializeWithIndependentChannelsResponse.FromString, + ) + self.ConfigureSourceModeWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSourceModeWithChannels', + request_serializer=nidcpower__pb2.ConfigureSourceModeWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSourceModeWithChannelsResponse.FromString, + ) + self.CreateAdvancedSequenceWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceWithChannels', + request_serializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsResponse.FromString, + ) + self.CreateAdvancedSequenceStepWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStepWithChannels', + request_serializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsResponse.FromString, + ) + self.CreateAdvancedSequenceCommitStepWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceCommitStepWithChannels', + request_serializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsResponse.FromString, + ) + self.DeleteAdvancedSequenceWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequenceWithChannels', + request_serializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsResponse.FromString, + ) + self.CommitWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/CommitWithChannels', + request_serializer=nidcpower__pb2.CommitWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.CommitWithChannelsResponse.FromString, + ) + self.InitiateWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/InitiateWithChannels', + request_serializer=nidcpower__pb2.InitiateWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.InitiateWithChannelsResponse.FromString, + ) + self.AbortWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/AbortWithChannels', + request_serializer=nidcpower__pb2.AbortWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.AbortWithChannelsResponse.FromString, + ) + self.ConfigureDigitalEdgeStartTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsResponse.FromString, + ) + self.ConfigureSoftwareEdgeStartTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse.FromString, + ) + self.DisableStartTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableStartTriggerWithChannels', + request_serializer=nidcpower__pb2.DisableStartTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableStartTriggerWithChannelsResponse.FromString, + ) + self.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, + ) + self.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, + ) + self.DisableSequenceAdvanceTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTriggerWithChannels', + request_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsResponse.FromString, + ) + self.ConfigureDigitalEdgeSourceTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse.FromString, + ) + self.ConfigureSoftwareEdgeSourceTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse.FromString, + ) + self.DisableSourceTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableSourceTriggerWithChannels', + request_serializer=nidcpower__pb2.DisableSourceTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableSourceTriggerWithChannelsResponse.FromString, + ) + self.ConfigureDigitalEdgeMeasureTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse.FromString, + ) + self.ConfigureSoftwareEdgeMeasureTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse.FromString, + ) + self.ConfigureDigitalEdgePulseTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsResponse.FromString, + ) + self.ConfigureSoftwareEdgePulseTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse.FromString, + ) + self.DisablePulseTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisablePulseTriggerWithChannels', + request_serializer=nidcpower__pb2.DisablePulseTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisablePulseTriggerWithChannelsResponse.FromString, + ) + self.ConfigureDigitalEdgeShutdownTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeShutdownTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse.FromString, + ) + self.ConfigureSoftwareEdgeShutdownTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeShutdownTriggerWithChannels', + request_serializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse.FromString, + ) + self.DisableShutdownTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/DisableShutdownTriggerWithChannels', + request_serializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsResponse.FromString, + ) + self.ExportSignalWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ExportSignalWithChannels', + request_serializer=nidcpower__pb2.ExportSignalWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ExportSignalWithChannelsResponse.FromString, + ) + self.SendSoftwareEdgeTriggerWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTriggerWithChannels', + request_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsResponse.FromString, + ) + self.WaitForEventWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/WaitForEventWithChannels', + request_serializer=nidcpower__pb2.WaitForEventWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.WaitForEventWithChannelsResponse.FromString, + ) + self.ResetWithChannels = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ResetWithChannels', + request_serializer=nidcpower__pb2.ResetWithChannelsRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ResetWithChannelsResponse.FromString, + ) + self.InvalidateAllAttributes = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/InvalidateAllAttributes', + request_serializer=nidcpower__pb2.InvalidateAllAttributesRequest.SerializeToString, + response_deserializer=nidcpower__pb2.InvalidateAllAttributesResponse.FromString, + ) + self.ConfigureOvp = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureOvp', + request_serializer=nidcpower__pb2.ConfigureOvpRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureOvpResponse.FromString, + ) + self.ErrorQuery = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ErrorQuery', + request_serializer=nidcpower__pb2.ErrorQueryRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ErrorQueryResponse.FromString, + ) + self.GetLCRCustomCableCompensationData = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/GetLCRCustomCableCompensationData', + request_serializer=nidcpower__pb2.GetLCRCustomCableCompensationDataRequest.SerializeToString, + response_deserializer=nidcpower__pb2.GetLCRCustomCableCompensationDataResponse.FromString, + ) + self.ConfigureLCRCustomCableCompensation = channel.unary_unary( + '/nidcpower_grpc.NiDCPower/ConfigureLCRCustomCableCompensation', + request_serializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationRequest.SerializeToString, + response_deserializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationResponse.FromString, + ) + + +class NiDCPowerServicer(object): + """Missing associated documentation comment in .proto file.""" + + def InitializeWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSourceMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputEnabled(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureVoltageLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCurrentLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureVoltageLevelRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCurrentLimitRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputResistance(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCurrentLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCurrentLevelRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureVoltageLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureVoltageLimitRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseVoltageLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseCurrentLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseBiasVoltageLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseBiasCurrentLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseVoltageLevelRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseCurrentLimitRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseCurrentLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseVoltageLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseBiasCurrentLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseBiasVoltageLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseCurrentLevelRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePulseVoltageLimitRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAdvancedSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAdvancedSequenceStep(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAdvancedSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureApertureTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureAutoZero(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePowerLineFrequency(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSense(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Measure(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MeasureMultiple(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchMultiple(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MeasureMultipleLCR(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchMultipleLCR(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryInCompliance(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryOutputState(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryLatchedOutputCutoffState(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearLatchedOutputCutoffState(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Initiate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryMaxCurrentLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryMaxVoltageLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryMinCurrentLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CalSelfCalibrate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalRecommendedInterval(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadCurrentTemperature(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalLastTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalLastTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLCRCompensationLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeSequenceAdvanceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeSequenceAdvanceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableSequenceAdvanceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeSourceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeSourceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableSourceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeMeasureTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeMeasureTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgePulseTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgePulseTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisablePulseTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareEdgeTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitForEvent(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetDevice(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelNameFromString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNextCoercionRecord(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearInterchangeWarnings(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetInterchangeCheck(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNextInterchangeWarning(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformLCROpenCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformLCRShortCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformLCRLoadCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureLCRCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformLCROpenCustomCableCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformLCRShortCustomCableCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLCRCompensationData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitializeWithIndependentChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSourceModeWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAdvancedSequenceWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAdvancedSequenceStepWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAdvancedSequenceCommitStepWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAdvancedSequenceWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommitWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitiateWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AbortWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeStartTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeStartTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableStartTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableSequenceAdvanceTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeSourceTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeSourceTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableSourceTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeMeasureTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeMeasureTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgePulseTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgePulseTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisablePulseTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeShutdownTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeShutdownTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableShutdownTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignalWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareEdgeTriggerWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitForEventWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InvalidateAllAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOvp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLCRCustomCableCompensationData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureLCRCustomCableCompensation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiDCPowerServicer_to_server(servicer, server): + rpc_method_handlers = { + 'InitializeWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.InitializeWithChannels, + request_deserializer=nidcpower__pb2.InitializeWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.InitializeWithChannelsResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nidcpower__pb2.CloseRequest.FromString, + response_serializer=nidcpower__pb2.CloseResponse.SerializeToString, + ), + 'ConfigureSourceMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSourceMode, + request_deserializer=nidcpower__pb2.ConfigureSourceModeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSourceModeResponse.SerializeToString, + ), + 'ConfigureOutputFunction': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputFunction, + request_deserializer=nidcpower__pb2.ConfigureOutputFunctionRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureOutputFunctionResponse.SerializeToString, + ), + 'ConfigureOutputEnabled': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputEnabled, + request_deserializer=nidcpower__pb2.ConfigureOutputEnabledRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureOutputEnabledResponse.SerializeToString, + ), + 'SetSequence': grpc.unary_unary_rpc_method_handler( + servicer.SetSequence, + request_deserializer=nidcpower__pb2.SetSequenceRequest.FromString, + response_serializer=nidcpower__pb2.SetSequenceResponse.SerializeToString, + ), + 'ConfigureVoltageLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureVoltageLevel, + request_deserializer=nidcpower__pb2.ConfigureVoltageLevelRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureVoltageLevelResponse.SerializeToString, + ), + 'ConfigureCurrentLimit': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCurrentLimit, + request_deserializer=nidcpower__pb2.ConfigureCurrentLimitRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureCurrentLimitResponse.SerializeToString, + ), + 'ConfigureVoltageLevelRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureVoltageLevelRange, + request_deserializer=nidcpower__pb2.ConfigureVoltageLevelRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureVoltageLevelRangeResponse.SerializeToString, + ), + 'ConfigureCurrentLimitRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCurrentLimitRange, + request_deserializer=nidcpower__pb2.ConfigureCurrentLimitRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureCurrentLimitRangeResponse.SerializeToString, + ), + 'ConfigureOutputResistance': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputResistance, + request_deserializer=nidcpower__pb2.ConfigureOutputResistanceRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureOutputResistanceResponse.SerializeToString, + ), + 'ConfigureCurrentLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCurrentLevel, + request_deserializer=nidcpower__pb2.ConfigureCurrentLevelRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureCurrentLevelResponse.SerializeToString, + ), + 'ConfigureCurrentLevelRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCurrentLevelRange, + request_deserializer=nidcpower__pb2.ConfigureCurrentLevelRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureCurrentLevelRangeResponse.SerializeToString, + ), + 'ConfigureVoltageLimit': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureVoltageLimit, + request_deserializer=nidcpower__pb2.ConfigureVoltageLimitRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureVoltageLimitResponse.SerializeToString, + ), + 'ConfigureVoltageLimitRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureVoltageLimitRange, + request_deserializer=nidcpower__pb2.ConfigureVoltageLimitRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureVoltageLimitRangeResponse.SerializeToString, + ), + 'ConfigurePulseVoltageLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseVoltageLevel, + request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelResponse.SerializeToString, + ), + 'ConfigurePulseCurrentLimit': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseCurrentLimit, + request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitResponse.SerializeToString, + ), + 'ConfigurePulseBiasVoltageLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseBiasVoltageLevel, + request_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLevelResponse.SerializeToString, + ), + 'ConfigurePulseBiasCurrentLimit': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseBiasCurrentLimit, + request_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLimitResponse.SerializeToString, + ), + 'ConfigurePulseVoltageLevelRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseVoltageLevelRange, + request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseVoltageLevelRangeResponse.SerializeToString, + ), + 'ConfigurePulseCurrentLimitRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseCurrentLimitRange, + request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseCurrentLimitRangeResponse.SerializeToString, + ), + 'ConfigurePulseCurrentLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseCurrentLevel, + request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelResponse.SerializeToString, + ), + 'ConfigurePulseVoltageLimit': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseVoltageLimit, + request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitResponse.SerializeToString, + ), + 'ConfigurePulseBiasCurrentLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseBiasCurrentLevel, + request_deserializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseBiasCurrentLevelResponse.SerializeToString, + ), + 'ConfigurePulseBiasVoltageLimit': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseBiasVoltageLimit, + request_deserializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseBiasVoltageLimitResponse.SerializeToString, + ), + 'ConfigurePulseCurrentLevelRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseCurrentLevelRange, + request_deserializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseCurrentLevelRangeResponse.SerializeToString, + ), + 'ConfigurePulseVoltageLimitRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePulseVoltageLimitRange, + request_deserializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePulseVoltageLimitRangeResponse.SerializeToString, + ), + 'CreateAdvancedSequence': grpc.unary_unary_rpc_method_handler( + servicer.CreateAdvancedSequence, + request_deserializer=nidcpower__pb2.CreateAdvancedSequenceRequest.FromString, + response_serializer=nidcpower__pb2.CreateAdvancedSequenceResponse.SerializeToString, + ), + 'CreateAdvancedSequenceStep': grpc.unary_unary_rpc_method_handler( + servicer.CreateAdvancedSequenceStep, + request_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepRequest.FromString, + response_serializer=nidcpower__pb2.CreateAdvancedSequenceStepResponse.SerializeToString, + ), + 'DeleteAdvancedSequence': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAdvancedSequence, + request_deserializer=nidcpower__pb2.DeleteAdvancedSequenceRequest.FromString, + response_serializer=nidcpower__pb2.DeleteAdvancedSequenceResponse.SerializeToString, + ), + 'ConfigureApertureTime': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureApertureTime, + request_deserializer=nidcpower__pb2.ConfigureApertureTimeRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureApertureTimeResponse.SerializeToString, + ), + 'ConfigureAutoZero': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureAutoZero, + request_deserializer=nidcpower__pb2.ConfigureAutoZeroRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureAutoZeroResponse.SerializeToString, + ), + 'ConfigurePowerLineFrequency': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePowerLineFrequency, + request_deserializer=nidcpower__pb2.ConfigurePowerLineFrequencyRequest.FromString, + response_serializer=nidcpower__pb2.ConfigurePowerLineFrequencyResponse.SerializeToString, + ), + 'ConfigureSense': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSense, + request_deserializer=nidcpower__pb2.ConfigureSenseRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSenseResponse.SerializeToString, + ), + 'Measure': grpc.unary_unary_rpc_method_handler( + servicer.Measure, + request_deserializer=nidcpower__pb2.MeasureRequest.FromString, + response_serializer=nidcpower__pb2.MeasureResponse.SerializeToString, + ), + 'MeasureMultiple': grpc.unary_unary_rpc_method_handler( + servicer.MeasureMultiple, + request_deserializer=nidcpower__pb2.MeasureMultipleRequest.FromString, + response_serializer=nidcpower__pb2.MeasureMultipleResponse.SerializeToString, + ), + 'FetchMultiple': grpc.unary_unary_rpc_method_handler( + servicer.FetchMultiple, + request_deserializer=nidcpower__pb2.FetchMultipleRequest.FromString, + response_serializer=nidcpower__pb2.FetchMultipleResponse.SerializeToString, + ), + 'MeasureMultipleLCR': grpc.unary_unary_rpc_method_handler( + servicer.MeasureMultipleLCR, + request_deserializer=nidcpower__pb2.MeasureMultipleLCRRequest.FromString, + response_serializer=nidcpower__pb2.MeasureMultipleLCRResponse.SerializeToString, + ), + 'FetchMultipleLCR': grpc.unary_unary_rpc_method_handler( + servicer.FetchMultipleLCR, + request_deserializer=nidcpower__pb2.FetchMultipleLCRRequest.FromString, + response_serializer=nidcpower__pb2.FetchMultipleLCRResponse.SerializeToString, + ), + 'QueryInCompliance': grpc.unary_unary_rpc_method_handler( + servicer.QueryInCompliance, + request_deserializer=nidcpower__pb2.QueryInComplianceRequest.FromString, + response_serializer=nidcpower__pb2.QueryInComplianceResponse.SerializeToString, + ), + 'QueryOutputState': grpc.unary_unary_rpc_method_handler( + servicer.QueryOutputState, + request_deserializer=nidcpower__pb2.QueryOutputStateRequest.FromString, + response_serializer=nidcpower__pb2.QueryOutputStateResponse.SerializeToString, + ), + 'QueryLatchedOutputCutoffState': grpc.unary_unary_rpc_method_handler( + servicer.QueryLatchedOutputCutoffState, + request_deserializer=nidcpower__pb2.QueryLatchedOutputCutoffStateRequest.FromString, + response_serializer=nidcpower__pb2.QueryLatchedOutputCutoffStateResponse.SerializeToString, + ), + 'ClearLatchedOutputCutoffState': grpc.unary_unary_rpc_method_handler( + servicer.ClearLatchedOutputCutoffState, + request_deserializer=nidcpower__pb2.ClearLatchedOutputCutoffStateRequest.FromString, + response_serializer=nidcpower__pb2.ClearLatchedOutputCutoffStateResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=nidcpower__pb2.CommitRequest.FromString, + response_serializer=nidcpower__pb2.CommitResponse.SerializeToString, + ), + 'Initiate': grpc.unary_unary_rpc_method_handler( + servicer.Initiate, + request_deserializer=nidcpower__pb2.InitiateRequest.FromString, + response_serializer=nidcpower__pb2.InitiateResponse.SerializeToString, + ), + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=nidcpower__pb2.AbortRequest.FromString, + response_serializer=nidcpower__pb2.AbortResponse.SerializeToString, + ), + 'QueryMaxCurrentLimit': grpc.unary_unary_rpc_method_handler( + servicer.QueryMaxCurrentLimit, + request_deserializer=nidcpower__pb2.QueryMaxCurrentLimitRequest.FromString, + response_serializer=nidcpower__pb2.QueryMaxCurrentLimitResponse.SerializeToString, + ), + 'QueryMaxVoltageLevel': grpc.unary_unary_rpc_method_handler( + servicer.QueryMaxVoltageLevel, + request_deserializer=nidcpower__pb2.QueryMaxVoltageLevelRequest.FromString, + response_serializer=nidcpower__pb2.QueryMaxVoltageLevelResponse.SerializeToString, + ), + 'QueryMinCurrentLimit': grpc.unary_unary_rpc_method_handler( + servicer.QueryMinCurrentLimit, + request_deserializer=nidcpower__pb2.QueryMinCurrentLimitRequest.FromString, + response_serializer=nidcpower__pb2.QueryMinCurrentLimitResponse.SerializeToString, + ), + 'CalSelfCalibrate': grpc.unary_unary_rpc_method_handler( + servicer.CalSelfCalibrate, + request_deserializer=nidcpower__pb2.CalSelfCalibrateRequest.FromString, + response_serializer=nidcpower__pb2.CalSelfCalibrateResponse.SerializeToString, + ), + 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalRecommendedInterval, + request_deserializer=nidcpower__pb2.GetExtCalRecommendedIntervalRequest.FromString, + response_serializer=nidcpower__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, + ), + 'GetExtCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalLastDateAndTime, + request_deserializer=nidcpower__pb2.GetExtCalLastDateAndTimeRequest.FromString, + response_serializer=nidcpower__pb2.GetExtCalLastDateAndTimeResponse.SerializeToString, + ), + 'ReadCurrentTemperature': grpc.unary_unary_rpc_method_handler( + servicer.ReadCurrentTemperature, + request_deserializer=nidcpower__pb2.ReadCurrentTemperatureRequest.FromString, + response_serializer=nidcpower__pb2.ReadCurrentTemperatureResponse.SerializeToString, + ), + 'GetExtCalLastTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalLastTemp, + request_deserializer=nidcpower__pb2.GetExtCalLastTempRequest.FromString, + response_serializer=nidcpower__pb2.GetExtCalLastTempResponse.SerializeToString, + ), + 'GetSelfCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalLastDateAndTime, + request_deserializer=nidcpower__pb2.GetSelfCalLastDateAndTimeRequest.FromString, + response_serializer=nidcpower__pb2.GetSelfCalLastDateAndTimeResponse.SerializeToString, + ), + 'GetSelfCalLastTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalLastTemp, + request_deserializer=nidcpower__pb2.GetSelfCalLastTempRequest.FromString, + response_serializer=nidcpower__pb2.GetSelfCalLastTempResponse.SerializeToString, + ), + 'GetLCRCompensationLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetLCRCompensationLastDateAndTime, + request_deserializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeRequest.FromString, + response_serializer=nidcpower__pb2.GetLCRCompensationLastDateAndTimeResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeStartTrigger, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeStartTrigger, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, + ), + 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableStartTrigger, + request_deserializer=nidcpower__pb2.DisableStartTriggerRequest.FromString, + response_serializer=nidcpower__pb2.DisableStartTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeSequenceAdvanceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeSequenceAdvanceTrigger, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeSequenceAdvanceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeSequenceAdvanceTrigger, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse.SerializeToString, + ), + 'DisableSequenceAdvanceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableSequenceAdvanceTrigger, + request_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerRequest.FromString, + response_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeSourceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeSourceTrigger, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeSourceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeSourceTrigger, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerResponse.SerializeToString, + ), + 'DisableSourceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableSourceTrigger, + request_deserializer=nidcpower__pb2.DisableSourceTriggerRequest.FromString, + response_serializer=nidcpower__pb2.DisableSourceTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeMeasureTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeMeasureTrigger, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeMeasureTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeMeasureTrigger, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgePulseTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgePulseTrigger, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgePulseTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgePulseTrigger, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerResponse.SerializeToString, + ), + 'DisablePulseTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisablePulseTrigger, + request_deserializer=nidcpower__pb2.DisablePulseTriggerRequest.FromString, + response_serializer=nidcpower__pb2.DisablePulseTriggerResponse.SerializeToString, + ), + 'ExportSignal': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignal, + request_deserializer=nidcpower__pb2.ExportSignalRequest.FromString, + response_serializer=nidcpower__pb2.ExportSignalResponse.SerializeToString, + ), + 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareEdgeTrigger, + request_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerRequest.FromString, + response_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, + ), + 'WaitForEvent': grpc.unary_unary_rpc_method_handler( + servicer.WaitForEvent, + request_deserializer=nidcpower__pb2.WaitForEventRequest.FromString, + response_serializer=nidcpower__pb2.WaitForEventResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=nidcpower__pb2.DisableRequest.FromString, + response_serializer=nidcpower__pb2.DisableResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=nidcpower__pb2.ResetRequest.FromString, + response_serializer=nidcpower__pb2.ResetResponse.SerializeToString, + ), + 'ResetDevice': grpc.unary_unary_rpc_method_handler( + servicer.ResetDevice, + request_deserializer=nidcpower__pb2.ResetDeviceRequest.FromString, + response_serializer=nidcpower__pb2.ResetDeviceResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=nidcpower__pb2.SelfTestRequest.FromString, + response_serializer=nidcpower__pb2.SelfTestResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=nidcpower__pb2.RevisionQueryRequest.FromString, + response_serializer=nidcpower__pb2.RevisionQueryResponse.SerializeToString, + ), + 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithDefaults, + request_deserializer=nidcpower__pb2.ResetWithDefaultsRequest.FromString, + response_serializer=nidcpower__pb2.ResetWithDefaultsResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=nidcpower__pb2.GetChannelNameRequest.FromString, + response_serializer=nidcpower__pb2.GetChannelNameResponse.SerializeToString, + ), + 'GetChannelNameFromString': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelNameFromString, + request_deserializer=nidcpower__pb2.GetChannelNameFromStringRequest.FromString, + response_serializer=nidcpower__pb2.GetChannelNameFromStringResponse.SerializeToString, + ), + 'GetNextCoercionRecord': grpc.unary_unary_rpc_method_handler( + servicer.GetNextCoercionRecord, + request_deserializer=nidcpower__pb2.GetNextCoercionRecordRequest.FromString, + response_serializer=nidcpower__pb2.GetNextCoercionRecordResponse.SerializeToString, + ), + 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( + servicer.ClearInterchangeWarnings, + request_deserializer=nidcpower__pb2.ClearInterchangeWarningsRequest.FromString, + response_serializer=nidcpower__pb2.ClearInterchangeWarningsResponse.SerializeToString, + ), + 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( + servicer.ResetInterchangeCheck, + request_deserializer=nidcpower__pb2.ResetInterchangeCheckRequest.FromString, + response_serializer=nidcpower__pb2.ResetInterchangeCheckResponse.SerializeToString, + ), + 'GetNextInterchangeWarning': grpc.unary_unary_rpc_method_handler( + servicer.GetNextInterchangeWarning, + request_deserializer=nidcpower__pb2.GetNextInterchangeWarningRequest.FromString, + response_serializer=nidcpower__pb2.GetNextInterchangeWarningResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nidcpower__pb2.GetErrorRequest.FromString, + response_serializer=nidcpower__pb2.GetErrorResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=nidcpower__pb2.ClearErrorRequest.FromString, + response_serializer=nidcpower__pb2.ClearErrorResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=nidcpower__pb2.ErrorMessageRequest.FromString, + response_serializer=nidcpower__pb2.ErrorMessageResponse.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nidcpower__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nidcpower__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=nidcpower__pb2.SetAttributeViInt64Request.FromString, + response_serializer=nidcpower__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nidcpower__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nidcpower__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nidcpower__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nidcpower__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=nidcpower__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=nidcpower__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nidcpower__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nidcpower__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nidcpower__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nidcpower__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=nidcpower__pb2.GetAttributeViInt64Request.FromString, + response_serializer=nidcpower__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nidcpower__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nidcpower__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nidcpower__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nidcpower__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nidcpower__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nidcpower__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nidcpower__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nidcpower__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationFile, + request_deserializer=nidcpower__pb2.ImportAttributeConfigurationFileRequest.FromString, + response_serializer=nidcpower__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationFile, + request_deserializer=nidcpower__pb2.ExportAttributeConfigurationFileRequest.FromString, + response_serializer=nidcpower__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationBuffer, + request_deserializer=nidcpower__pb2.ImportAttributeConfigurationBufferRequest.FromString, + response_serializer=nidcpower__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationBuffer, + request_deserializer=nidcpower__pb2.ExportAttributeConfigurationBufferRequest.FromString, + response_serializer=nidcpower__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'PerformLCROpenCompensation': grpc.unary_unary_rpc_method_handler( + servicer.PerformLCROpenCompensation, + request_deserializer=nidcpower__pb2.PerformLCROpenCompensationRequest.FromString, + response_serializer=nidcpower__pb2.PerformLCROpenCompensationResponse.SerializeToString, + ), + 'PerformLCRShortCompensation': grpc.unary_unary_rpc_method_handler( + servicer.PerformLCRShortCompensation, + request_deserializer=nidcpower__pb2.PerformLCRShortCompensationRequest.FromString, + response_serializer=nidcpower__pb2.PerformLCRShortCompensationResponse.SerializeToString, + ), + 'PerformLCRLoadCompensation': grpc.unary_unary_rpc_method_handler( + servicer.PerformLCRLoadCompensation, + request_deserializer=nidcpower__pb2.PerformLCRLoadCompensationRequest.FromString, + response_serializer=nidcpower__pb2.PerformLCRLoadCompensationResponse.SerializeToString, + ), + 'ConfigureLCRCompensation': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureLCRCompensation, + request_deserializer=nidcpower__pb2.ConfigureLCRCompensationRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureLCRCompensationResponse.SerializeToString, + ), + 'PerformLCROpenCustomCableCompensation': grpc.unary_unary_rpc_method_handler( + servicer.PerformLCROpenCustomCableCompensation, + request_deserializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationRequest.FromString, + response_serializer=nidcpower__pb2.PerformLCROpenCustomCableCompensationResponse.SerializeToString, + ), + 'PerformLCRShortCustomCableCompensation': grpc.unary_unary_rpc_method_handler( + servicer.PerformLCRShortCustomCableCompensation, + request_deserializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationRequest.FromString, + response_serializer=nidcpower__pb2.PerformLCRShortCustomCableCompensationResponse.SerializeToString, + ), + 'GetLCRCompensationData': grpc.unary_unary_rpc_method_handler( + servicer.GetLCRCompensationData, + request_deserializer=nidcpower__pb2.GetLCRCompensationDataRequest.FromString, + response_serializer=nidcpower__pb2.GetLCRCompensationDataResponse.SerializeToString, + ), + 'InitializeWithIndependentChannels': grpc.unary_unary_rpc_method_handler( + servicer.InitializeWithIndependentChannels, + request_deserializer=nidcpower__pb2.InitializeWithIndependentChannelsRequest.FromString, + response_serializer=nidcpower__pb2.InitializeWithIndependentChannelsResponse.SerializeToString, + ), + 'ConfigureSourceModeWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSourceModeWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSourceModeWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSourceModeWithChannelsResponse.SerializeToString, + ), + 'CreateAdvancedSequenceWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.CreateAdvancedSequenceWithChannels, + request_deserializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.CreateAdvancedSequenceWithChannelsResponse.SerializeToString, + ), + 'CreateAdvancedSequenceStepWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.CreateAdvancedSequenceStepWithChannels, + request_deserializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsResponse.SerializeToString, + ), + 'CreateAdvancedSequenceCommitStepWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.CreateAdvancedSequenceCommitStepWithChannels, + request_deserializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsResponse.SerializeToString, + ), + 'DeleteAdvancedSequenceWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAdvancedSequenceWithChannels, + request_deserializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.DeleteAdvancedSequenceWithChannelsResponse.SerializeToString, + ), + 'CommitWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.CommitWithChannels, + request_deserializer=nidcpower__pb2.CommitWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.CommitWithChannelsResponse.SerializeToString, + ), + 'InitiateWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.InitiateWithChannels, + request_deserializer=nidcpower__pb2.InitiateWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.InitiateWithChannelsResponse.SerializeToString, + ), + 'AbortWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.AbortWithChannels, + request_deserializer=nidcpower__pb2.AbortWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.AbortWithChannelsResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeStartTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeStartTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeStartTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeStartTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse.SerializeToString, + ), + 'DisableStartTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.DisableStartTriggerWithChannels, + request_deserializer=nidcpower__pb2.DisableStartTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.DisableStartTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse.SerializeToString, + ), + 'DisableSequenceAdvanceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.DisableSequenceAdvanceTriggerWithChannels, + request_deserializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeSourceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeSourceTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeSourceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeSourceTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse.SerializeToString, + ), + 'DisableSourceTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.DisableSourceTriggerWithChannels, + request_deserializer=nidcpower__pb2.DisableSourceTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.DisableSourceTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeMeasureTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeMeasureTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeMeasureTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeMeasureTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureDigitalEdgePulseTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgePulseTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgePulseTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgePulseTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse.SerializeToString, + ), + 'DisablePulseTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.DisablePulseTriggerWithChannels, + request_deserializer=nidcpower__pb2.DisablePulseTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.DisablePulseTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeShutdownTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeShutdownTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeShutdownTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeShutdownTriggerWithChannels, + request_deserializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse.SerializeToString, + ), + 'DisableShutdownTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.DisableShutdownTriggerWithChannels, + request_deserializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.DisableShutdownTriggerWithChannelsResponse.SerializeToString, + ), + 'ExportSignalWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignalWithChannels, + request_deserializer=nidcpower__pb2.ExportSignalWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ExportSignalWithChannelsResponse.SerializeToString, + ), + 'SendSoftwareEdgeTriggerWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareEdgeTriggerWithChannels, + request_deserializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsResponse.SerializeToString, + ), + 'WaitForEventWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.WaitForEventWithChannels, + request_deserializer=nidcpower__pb2.WaitForEventWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.WaitForEventWithChannelsResponse.SerializeToString, + ), + 'ResetWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithChannels, + request_deserializer=nidcpower__pb2.ResetWithChannelsRequest.FromString, + response_serializer=nidcpower__pb2.ResetWithChannelsResponse.SerializeToString, + ), + 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( + servicer.InvalidateAllAttributes, + request_deserializer=nidcpower__pb2.InvalidateAllAttributesRequest.FromString, + response_serializer=nidcpower__pb2.InvalidateAllAttributesResponse.SerializeToString, + ), + 'ConfigureOvp': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOvp, + request_deserializer=nidcpower__pb2.ConfigureOvpRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureOvpResponse.SerializeToString, + ), + 'ErrorQuery': grpc.unary_unary_rpc_method_handler( + servicer.ErrorQuery, + request_deserializer=nidcpower__pb2.ErrorQueryRequest.FromString, + response_serializer=nidcpower__pb2.ErrorQueryResponse.SerializeToString, + ), + 'GetLCRCustomCableCompensationData': grpc.unary_unary_rpc_method_handler( + servicer.GetLCRCustomCableCompensationData, + request_deserializer=nidcpower__pb2.GetLCRCustomCableCompensationDataRequest.FromString, + response_serializer=nidcpower__pb2.GetLCRCustomCableCompensationDataResponse.SerializeToString, + ), + 'ConfigureLCRCustomCableCompensation': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureLCRCustomCableCompensation, + request_deserializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationRequest.FromString, + response_serializer=nidcpower__pb2.ConfigureLCRCustomCableCompensationResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nidcpower_grpc.NiDCPower', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiDCPower(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def InitializeWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InitializeWithChannels', + nidcpower__pb2.InitializeWithChannelsRequest.SerializeToString, + nidcpower__pb2.InitializeWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Close', + nidcpower__pb2.CloseRequest.SerializeToString, + nidcpower__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSourceMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSourceMode', + nidcpower__pb2.ConfigureSourceModeRequest.SerializeToString, + nidcpower__pb2.ConfigureSourceModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOutputFunction', + nidcpower__pb2.ConfigureOutputFunctionRequest.SerializeToString, + nidcpower__pb2.ConfigureOutputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputEnabled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOutputEnabled', + nidcpower__pb2.ConfigureOutputEnabledRequest.SerializeToString, + nidcpower__pb2.ConfigureOutputEnabledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetSequence', + nidcpower__pb2.SetSequenceRequest.SerializeToString, + nidcpower__pb2.SetSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureVoltageLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevel', + nidcpower__pb2.ConfigureVoltageLevelRequest.SerializeToString, + nidcpower__pb2.ConfigureVoltageLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCurrentLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimit', + nidcpower__pb2.ConfigureCurrentLimitRequest.SerializeToString, + nidcpower__pb2.ConfigureCurrentLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureVoltageLevelRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLevelRange', + nidcpower__pb2.ConfigureVoltageLevelRangeRequest.SerializeToString, + nidcpower__pb2.ConfigureVoltageLevelRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCurrentLimitRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLimitRange', + nidcpower__pb2.ConfigureCurrentLimitRangeRequest.SerializeToString, + nidcpower__pb2.ConfigureCurrentLimitRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputResistance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOutputResistance', + nidcpower__pb2.ConfigureOutputResistanceRequest.SerializeToString, + nidcpower__pb2.ConfigureOutputResistanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCurrentLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevel', + nidcpower__pb2.ConfigureCurrentLevelRequest.SerializeToString, + nidcpower__pb2.ConfigureCurrentLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCurrentLevelRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureCurrentLevelRange', + nidcpower__pb2.ConfigureCurrentLevelRangeRequest.SerializeToString, + nidcpower__pb2.ConfigureCurrentLevelRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureVoltageLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimit', + nidcpower__pb2.ConfigureVoltageLimitRequest.SerializeToString, + nidcpower__pb2.ConfigureVoltageLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureVoltageLimitRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureVoltageLimitRange', + nidcpower__pb2.ConfigureVoltageLimitRangeRequest.SerializeToString, + nidcpower__pb2.ConfigureVoltageLimitRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseVoltageLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevel', + nidcpower__pb2.ConfigurePulseVoltageLevelRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseVoltageLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseCurrentLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimit', + nidcpower__pb2.ConfigurePulseCurrentLimitRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseCurrentLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseBiasVoltageLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLevel', + nidcpower__pb2.ConfigurePulseBiasVoltageLevelRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseBiasVoltageLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseBiasCurrentLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLimit', + nidcpower__pb2.ConfigurePulseBiasCurrentLimitRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseBiasCurrentLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseVoltageLevelRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLevelRange', + nidcpower__pb2.ConfigurePulseVoltageLevelRangeRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseVoltageLevelRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseCurrentLimitRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLimitRange', + nidcpower__pb2.ConfigurePulseCurrentLimitRangeRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseCurrentLimitRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseCurrentLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevel', + nidcpower__pb2.ConfigurePulseCurrentLevelRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseCurrentLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseVoltageLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimit', + nidcpower__pb2.ConfigurePulseVoltageLimitRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseVoltageLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseBiasCurrentLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasCurrentLevel', + nidcpower__pb2.ConfigurePulseBiasCurrentLevelRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseBiasCurrentLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseBiasVoltageLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseBiasVoltageLimit', + nidcpower__pb2.ConfigurePulseBiasVoltageLimitRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseBiasVoltageLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseCurrentLevelRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseCurrentLevelRange', + nidcpower__pb2.ConfigurePulseCurrentLevelRangeRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseCurrentLevelRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePulseVoltageLimitRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePulseVoltageLimitRange', + nidcpower__pb2.ConfigurePulseVoltageLimitRangeRequest.SerializeToString, + nidcpower__pb2.ConfigurePulseVoltageLimitRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAdvancedSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequence', + nidcpower__pb2.CreateAdvancedSequenceRequest.SerializeToString, + nidcpower__pb2.CreateAdvancedSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAdvancedSequenceStep(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStep', + nidcpower__pb2.CreateAdvancedSequenceStepRequest.SerializeToString, + nidcpower__pb2.CreateAdvancedSequenceStepResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAdvancedSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequence', + nidcpower__pb2.DeleteAdvancedSequenceRequest.SerializeToString, + nidcpower__pb2.DeleteAdvancedSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureApertureTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureApertureTime', + nidcpower__pb2.ConfigureApertureTimeRequest.SerializeToString, + nidcpower__pb2.ConfigureApertureTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureAutoZero(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureAutoZero', + nidcpower__pb2.ConfigureAutoZeroRequest.SerializeToString, + nidcpower__pb2.ConfigureAutoZeroResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePowerLineFrequency(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigurePowerLineFrequency', + nidcpower__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, + nidcpower__pb2.ConfigurePowerLineFrequencyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSense(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSense', + nidcpower__pb2.ConfigureSenseRequest.SerializeToString, + nidcpower__pb2.ConfigureSenseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Measure(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Measure', + nidcpower__pb2.MeasureRequest.SerializeToString, + nidcpower__pb2.MeasureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MeasureMultiple(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/MeasureMultiple', + nidcpower__pb2.MeasureMultipleRequest.SerializeToString, + nidcpower__pb2.MeasureMultipleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchMultiple(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/FetchMultiple', + nidcpower__pb2.FetchMultipleRequest.SerializeToString, + nidcpower__pb2.FetchMultipleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MeasureMultipleLCR(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/MeasureMultipleLCR', + nidcpower__pb2.MeasureMultipleLCRRequest.SerializeToString, + nidcpower__pb2.MeasureMultipleLCRResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchMultipleLCR(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/FetchMultipleLCR', + nidcpower__pb2.FetchMultipleLCRRequest.SerializeToString, + nidcpower__pb2.FetchMultipleLCRResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryInCompliance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryInCompliance', + nidcpower__pb2.QueryInComplianceRequest.SerializeToString, + nidcpower__pb2.QueryInComplianceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryOutputState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryOutputState', + nidcpower__pb2.QueryOutputStateRequest.SerializeToString, + nidcpower__pb2.QueryOutputStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryLatchedOutputCutoffState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryLatchedOutputCutoffState', + nidcpower__pb2.QueryLatchedOutputCutoffStateRequest.SerializeToString, + nidcpower__pb2.QueryLatchedOutputCutoffStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearLatchedOutputCutoffState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ClearLatchedOutputCutoffState', + nidcpower__pb2.ClearLatchedOutputCutoffStateRequest.SerializeToString, + nidcpower__pb2.ClearLatchedOutputCutoffStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Commit', + nidcpower__pb2.CommitRequest.SerializeToString, + nidcpower__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Initiate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Initiate', + nidcpower__pb2.InitiateRequest.SerializeToString, + nidcpower__pb2.InitiateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Abort', + nidcpower__pb2.AbortRequest.SerializeToString, + nidcpower__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryMaxCurrentLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryMaxCurrentLimit', + nidcpower__pb2.QueryMaxCurrentLimitRequest.SerializeToString, + nidcpower__pb2.QueryMaxCurrentLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryMaxVoltageLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryMaxVoltageLevel', + nidcpower__pb2.QueryMaxVoltageLevelRequest.SerializeToString, + nidcpower__pb2.QueryMaxVoltageLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryMinCurrentLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/QueryMinCurrentLimit', + nidcpower__pb2.QueryMinCurrentLimitRequest.SerializeToString, + nidcpower__pb2.QueryMinCurrentLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CalSelfCalibrate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CalSelfCalibrate', + nidcpower__pb2.CalSelfCalibrateRequest.SerializeToString, + nidcpower__pb2.CalSelfCalibrateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalRecommendedInterval(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetExtCalRecommendedInterval', + nidcpower__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + nidcpower__pb2.GetExtCalRecommendedIntervalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetExtCalLastDateAndTime', + nidcpower__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, + nidcpower__pb2.GetExtCalLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadCurrentTemperature(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ReadCurrentTemperature', + nidcpower__pb2.ReadCurrentTemperatureRequest.SerializeToString, + nidcpower__pb2.ReadCurrentTemperatureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalLastTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetExtCalLastTemp', + nidcpower__pb2.GetExtCalLastTempRequest.SerializeToString, + nidcpower__pb2.GetExtCalLastTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetSelfCalLastDateAndTime', + nidcpower__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, + nidcpower__pb2.GetSelfCalLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalLastTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetSelfCalLastTemp', + nidcpower__pb2.GetSelfCalLastTempRequest.SerializeToString, + nidcpower__pb2.GetSelfCalLastTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLCRCompensationLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetLCRCompensationLastDateAndTime', + nidcpower__pb2.GetLCRCompensationLastDateAndTimeRequest.SerializeToString, + nidcpower__pb2.GetLCRCompensationLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTrigger', + nidcpower__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTrigger', + nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableStartTrigger', + nidcpower__pb2.DisableStartTriggerRequest.SerializeToString, + nidcpower__pb2.DisableStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeSequenceAdvanceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTrigger', + nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeSequenceAdvanceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTrigger', + nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableSequenceAdvanceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTrigger', + nidcpower__pb2.DisableSequenceAdvanceTriggerRequest.SerializeToString, + nidcpower__pb2.DisableSequenceAdvanceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeSourceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTrigger', + nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeSourceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTrigger', + nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableSourceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSourceTrigger', + nidcpower__pb2.DisableSourceTriggerRequest.SerializeToString, + nidcpower__pb2.DisableSourceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeMeasureTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTrigger', + nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeMeasureTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTrigger', + nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgePulseTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTrigger', + nidcpower__pb2.ConfigureDigitalEdgePulseTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgePulseTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgePulseTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTrigger', + nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisablePulseTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisablePulseTrigger', + nidcpower__pb2.DisablePulseTriggerRequest.SerializeToString, + nidcpower__pb2.DisablePulseTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportSignal', + nidcpower__pb2.ExportSignalRequest.SerializeToString, + nidcpower__pb2.ExportSignalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareEdgeTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTrigger', + nidcpower__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + nidcpower__pb2.SendSoftwareEdgeTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitForEvent(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/WaitForEvent', + nidcpower__pb2.WaitForEventRequest.SerializeToString, + nidcpower__pb2.WaitForEventResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Disable', + nidcpower__pb2.DisableRequest.SerializeToString, + nidcpower__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/Reset', + nidcpower__pb2.ResetRequest.SerializeToString, + nidcpower__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetDevice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetDevice', + nidcpower__pb2.ResetDeviceRequest.SerializeToString, + nidcpower__pb2.ResetDeviceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SelfTest', + nidcpower__pb2.SelfTestRequest.SerializeToString, + nidcpower__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/RevisionQuery', + nidcpower__pb2.RevisionQueryRequest.SerializeToString, + nidcpower__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetWithDefaults', + nidcpower__pb2.ResetWithDefaultsRequest.SerializeToString, + nidcpower__pb2.ResetWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetChannelName', + nidcpower__pb2.GetChannelNameRequest.SerializeToString, + nidcpower__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelNameFromString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetChannelNameFromString', + nidcpower__pb2.GetChannelNameFromStringRequest.SerializeToString, + nidcpower__pb2.GetChannelNameFromStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNextCoercionRecord(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetNextCoercionRecord', + nidcpower__pb2.GetNextCoercionRecordRequest.SerializeToString, + nidcpower__pb2.GetNextCoercionRecordResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearInterchangeWarnings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ClearInterchangeWarnings', + nidcpower__pb2.ClearInterchangeWarningsRequest.SerializeToString, + nidcpower__pb2.ClearInterchangeWarningsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetInterchangeCheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetInterchangeCheck', + nidcpower__pb2.ResetInterchangeCheckRequest.SerializeToString, + nidcpower__pb2.ResetInterchangeCheckResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNextInterchangeWarning(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetNextInterchangeWarning', + nidcpower__pb2.GetNextInterchangeWarningRequest.SerializeToString, + nidcpower__pb2.GetNextInterchangeWarningResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetError', + nidcpower__pb2.GetErrorRequest.SerializeToString, + nidcpower__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ClearError', + nidcpower__pb2.ClearErrorRequest.SerializeToString, + nidcpower__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ErrorMessage', + nidcpower__pb2.ErrorMessageRequest.SerializeToString, + nidcpower__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViInt32', + nidcpower__pb2.SetAttributeViInt32Request.SerializeToString, + nidcpower__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViInt64', + nidcpower__pb2.SetAttributeViInt64Request.SerializeToString, + nidcpower__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViReal64', + nidcpower__pb2.SetAttributeViReal64Request.SerializeToString, + nidcpower__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViString', + nidcpower__pb2.SetAttributeViStringRequest.SerializeToString, + nidcpower__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViSession', + nidcpower__pb2.SetAttributeViSessionRequest.SerializeToString, + nidcpower__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SetAttributeViBoolean', + nidcpower__pb2.SetAttributeViBooleanRequest.SerializeToString, + nidcpower__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViInt32', + nidcpower__pb2.GetAttributeViInt32Request.SerializeToString, + nidcpower__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViInt64', + nidcpower__pb2.GetAttributeViInt64Request.SerializeToString, + nidcpower__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViReal64', + nidcpower__pb2.GetAttributeViReal64Request.SerializeToString, + nidcpower__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViString', + nidcpower__pb2.GetAttributeViStringRequest.SerializeToString, + nidcpower__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViSession', + nidcpower__pb2.GetAttributeViSessionRequest.SerializeToString, + nidcpower__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetAttributeViBoolean', + nidcpower__pb2.GetAttributeViBooleanRequest.SerializeToString, + nidcpower__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationFile', + nidcpower__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + nidcpower__pb2.ImportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationFile', + nidcpower__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + nidcpower__pb2.ExportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ImportAttributeConfigurationBuffer', + nidcpower__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + nidcpower__pb2.ImportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportAttributeConfigurationBuffer', + nidcpower__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + nidcpower__pb2.ExportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformLCROpenCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCROpenCompensation', + nidcpower__pb2.PerformLCROpenCompensationRequest.SerializeToString, + nidcpower__pb2.PerformLCROpenCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformLCRShortCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCRShortCompensation', + nidcpower__pb2.PerformLCRShortCompensationRequest.SerializeToString, + nidcpower__pb2.PerformLCRShortCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformLCRLoadCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCRLoadCompensation', + nidcpower__pb2.PerformLCRLoadCompensationRequest.SerializeToString, + nidcpower__pb2.PerformLCRLoadCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureLCRCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureLCRCompensation', + nidcpower__pb2.ConfigureLCRCompensationRequest.SerializeToString, + nidcpower__pb2.ConfigureLCRCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformLCROpenCustomCableCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCROpenCustomCableCompensation', + nidcpower__pb2.PerformLCROpenCustomCableCompensationRequest.SerializeToString, + nidcpower__pb2.PerformLCROpenCustomCableCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformLCRShortCustomCableCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/PerformLCRShortCustomCableCompensation', + nidcpower__pb2.PerformLCRShortCustomCableCompensationRequest.SerializeToString, + nidcpower__pb2.PerformLCRShortCustomCableCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLCRCompensationData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetLCRCompensationData', + nidcpower__pb2.GetLCRCompensationDataRequest.SerializeToString, + nidcpower__pb2.GetLCRCompensationDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitializeWithIndependentChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InitializeWithIndependentChannels', + nidcpower__pb2.InitializeWithIndependentChannelsRequest.SerializeToString, + nidcpower__pb2.InitializeWithIndependentChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSourceModeWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSourceModeWithChannels', + nidcpower__pb2.ConfigureSourceModeWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSourceModeWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAdvancedSequenceWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceWithChannels', + nidcpower__pb2.CreateAdvancedSequenceWithChannelsRequest.SerializeToString, + nidcpower__pb2.CreateAdvancedSequenceWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAdvancedSequenceStepWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceStepWithChannels', + nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsRequest.SerializeToString, + nidcpower__pb2.CreateAdvancedSequenceStepWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAdvancedSequenceCommitStepWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CreateAdvancedSequenceCommitStepWithChannels', + nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsRequest.SerializeToString, + nidcpower__pb2.CreateAdvancedSequenceCommitStepWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAdvancedSequenceWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DeleteAdvancedSequenceWithChannels', + nidcpower__pb2.DeleteAdvancedSequenceWithChannelsRequest.SerializeToString, + nidcpower__pb2.DeleteAdvancedSequenceWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommitWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/CommitWithChannels', + nidcpower__pb2.CommitWithChannelsRequest.SerializeToString, + nidcpower__pb2.CommitWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitiateWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InitiateWithChannels', + nidcpower__pb2.InitiateWithChannelsRequest.SerializeToString, + nidcpower__pb2.InitiateWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AbortWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/AbortWithChannels', + nidcpower__pb2.AbortWithChannelsRequest.SerializeToString, + nidcpower__pb2.AbortWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeStartTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeStartTriggerWithChannels', + nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeStartTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeStartTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeStartTriggerWithChannels', + nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeStartTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableStartTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableStartTriggerWithChannels', + nidcpower__pb2.DisableStartTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.DisableStartTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannels', + nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannels', + nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeSequenceAdvanceTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableSequenceAdvanceTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSequenceAdvanceTriggerWithChannels', + nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.DisableSequenceAdvanceTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeSourceTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeSourceTriggerWithChannels', + nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeSourceTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeSourceTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeSourceTriggerWithChannels', + nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeSourceTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableSourceTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableSourceTriggerWithChannels', + nidcpower__pb2.DisableSourceTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.DisableSourceTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeMeasureTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeMeasureTriggerWithChannels', + nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeMeasureTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeMeasureTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeMeasureTriggerWithChannels', + nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeMeasureTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgePulseTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgePulseTriggerWithChannels', + nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgePulseTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgePulseTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgePulseTriggerWithChannels', + nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgePulseTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisablePulseTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisablePulseTriggerWithChannels', + nidcpower__pb2.DisablePulseTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.DisablePulseTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeShutdownTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureDigitalEdgeShutdownTriggerWithChannels', + nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureDigitalEdgeShutdownTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeShutdownTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureSoftwareEdgeShutdownTriggerWithChannels', + nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.ConfigureSoftwareEdgeShutdownTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableShutdownTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/DisableShutdownTriggerWithChannels', + nidcpower__pb2.DisableShutdownTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.DisableShutdownTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignalWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ExportSignalWithChannels', + nidcpower__pb2.ExportSignalWithChannelsRequest.SerializeToString, + nidcpower__pb2.ExportSignalWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareEdgeTriggerWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/SendSoftwareEdgeTriggerWithChannels', + nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsRequest.SerializeToString, + nidcpower__pb2.SendSoftwareEdgeTriggerWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitForEventWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/WaitForEventWithChannels', + nidcpower__pb2.WaitForEventWithChannelsRequest.SerializeToString, + nidcpower__pb2.WaitForEventWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ResetWithChannels', + nidcpower__pb2.ResetWithChannelsRequest.SerializeToString, + nidcpower__pb2.ResetWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InvalidateAllAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/InvalidateAllAttributes', + nidcpower__pb2.InvalidateAllAttributesRequest.SerializeToString, + nidcpower__pb2.InvalidateAllAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOvp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureOvp', + nidcpower__pb2.ConfigureOvpRequest.SerializeToString, + nidcpower__pb2.ConfigureOvpResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ErrorQuery', + nidcpower__pb2.ErrorQueryRequest.SerializeToString, + nidcpower__pb2.ErrorQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLCRCustomCableCompensationData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/GetLCRCustomCableCompensationData', + nidcpower__pb2.GetLCRCustomCableCompensationDataRequest.SerializeToString, + nidcpower__pb2.GetLCRCustomCableCompensationDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureLCRCustomCableCompensation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidcpower_grpc.NiDCPower/ConfigureLCRCustomCableCompensation', + nidcpower__pb2.ConfigureLCRCustomCableCompensationRequest.SerializeToString, + nidcpower__pb2.ConfigureLCRCustomCableCompensationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nidcpower/nidcpower/nidevice_pb2.py b/generated/nidcpower/nidcpower/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nidcpower/nidcpower/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nidcpower/nidcpower/nidevice_pb2_grpc.py b/generated/nidcpower/nidcpower/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nidcpower/nidcpower/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nidcpower/nidcpower/session.py b/generated/nidcpower/nidcpower/session.py new file mode 100644 index 0000000000..3a9ff00714 --- /dev/null +++ b/generated/nidcpower/nidcpower/session.py @@ -0,0 +1,8589 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nidcpower._attributes as _attributes +import nidcpower._converters as _converters +import nidcpower._library_interpreter as _library_interpreter +import nidcpower.enums as enums +import nidcpower.errors as errors + +import nidcpower.lcr_measurement as lcr_measurement # noqa: F401 + +import nidcpower.lcr_load_compensation_spot as lcr_load_compensation_spot # noqa: F401 + +import hightime + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Acquisition(object): + def __init__(self, session): + self._session = session + self._session._initiate_with_channels() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-DCPower sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + active_advanced_sequence = _attributes.AttributeViString(1150074) + '''Type: str + + Specifies the advanced sequence to configure or generate. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.active_advanced_sequence` + ''' + active_advanced_sequence_step = _attributes.AttributeViInt64(1150075) + '''Type: int + + Specifies the advanced sequence step to configure. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_advanced_sequence_step` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.active_advanced_sequence_step` + ''' + actual_power_allocation = _attributes.AttributeViReal64(1150205) + '''Type: float + + Returns the power, in watts, the device is sourcing on each active channel if the power_allocation_mode property is set to PowerAllocationMode.AUTOMATIC or PowerAllocationMode.MANUAL. + + Valid Values: [0, device per-channel maximum power] + + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + This property returns -1 when the power_allocation_mode property is set to PowerAllocationMode.DISABLED. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].actual_power_allocation` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.actual_power_allocation` + ''' + aperture_time = _attributes.AttributeViReal64(1150058) + '''Type: float + + Specifies the measurement aperture time for the channel configuration. Aperture time is specified in the units set by the aperture_time_units property. + Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. + Default Value: 0.01666666 seconds + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].aperture_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.aperture_time` + ''' + aperture_time_auto_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeAutoMode, 1150314) + '''Type: enums.ApertureTimeAutoMode + + Automatically optimizes the measurement aperture time according to the actual current range when measurement autorange is enabled. + Optimization accounts for power line frequency when the aperture_time_units property is set to ApertureTimeUnits.POWER_LINE_CYCLES. + + This property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE and the autorange property is enabled. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].aperture_time_auto_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.aperture_time_auto_mode` + ''' + aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeUnits, 1150059) + '''Type: enums.ApertureTimeUnits + + Specifies the units of the aperture_time property for the channel configuration. + Refer to the Aperture Time topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements and for information about valid values. + Default Value: ApertureTimeUnits.SECONDS + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].aperture_time_units` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.aperture_time_units` + ''' + autorange = _attributes.AttributeViInt32(1150244) + '''Type: bool + + Specifies whether the hardware automatically selects the best range to measure the signal. Note the highest range the algorithm uses is dependent on the corresponding limit range property. The algorithm the hardware uses can be controlled using the autorange_aperture_time_mode property. + + Note: + Autoranging begins at module startup and remains active until the module is reconfigured or reset. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange` + ''' + autorange_aperture_time_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutorangeApertureTimeMode, 1150246) + '''Type: enums.AutorangeApertureTimeMode + + Specifies whether the aperture time used for the measurement autorange algorithm is determined automatically or customized using the autorange_minimum_aperture_time property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_aperture_time_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_aperture_time_mode` + ''' + autorange_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutorangeBehavior, 1150245) + '''Type: enums.AutorangeBehavior + + Specifies the algorithm the hardware uses for measurement autoranging. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_behavior` + ''' + autorange_maximum_delay_after_range_change = _attributes.AttributeViReal64TimeDeltaSeconds(1150322) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Balances between settling time and maximum measurement time by specifying the maximum time delay between when a range change occurs and when measurements resume. + **Valid Values:** The minimum and maximum values of this property are hardware-dependent. + PXIe-4135/4136/4137: 0 to 9 seconds + PXIe-4138/4139: 0 to 9 seconds + PXIe-4147: 0 to 9 seconds + PXIe-4162/4163: 0 to 0.1 seconds. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_maximum_delay_after_range_change` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_maximum_delay_after_range_change` + ''' + autorange_minimum_aperture_time = _attributes.AttributeViReal64(1150247) + '''Type: float + + Specifies the measurement autorange aperture time used for the measurement autorange algorithm. The aperture time is specified in the units set by the autorange_minimum_aperture_time_units property. This value will typically be smaller than the aperture time used for measurements. + + Note: For smaller ranges, the value is scaled up to account for noise. The factor used to scale the value is derived from the module capabilities. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_aperture_time` + ''' + autorange_minimum_aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeUnits, 1150248) + '''Type: enums.ApertureTimeUnits + + Specifies the units of the autorange_minimum_aperture_time property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_aperture_time_units` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_aperture_time_units` + ''' + autorange_minimum_current_range = _attributes.AttributeViReal64(1150255) + '''Type: float + + Specifies the lowest range used during measurement autoranging. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and minimize frequent and unpredictable range changes for noisy signals. + + Note: The maximum range used is the range that includes the value specified in the compliance limit property, voltage_limit_range property or current_limit_range property, depending on the selected output_function. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_current_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_current_range` + ''' + autorange_minimum_voltage_range = _attributes.AttributeViReal64(1150256) + '''Type: float + + Specifies the lowest range used during measurement autoranging. The maximum range used is range that includes the value specified in the compliance limit property. Limiting the lowest range used during autoranging can improve the speed of the autoranging algorithm and/or minimize thrashing between ranges for noisy signals. + + Note: The maximum range used is the range that includes the value specified in the compliance limit property, voltage_limit_range property or current_limit_range property, depending on the selected output_function. This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_minimum_voltage_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_minimum_voltage_range` + ''' + autorange_threshold_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutorangeThresholdMode, 1150257) + '''Type: enums.AutorangeThresholdMode + + Specifies thresholds used during autoranging to determine when range changing occurs. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].autorange_threshold_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.autorange_threshold_mode` + ''' + auto_zero = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutoZero, 1150055) + '''Type: enums.AutoZero + + Specifies the auto-zero method to use on the device. + Refer to the NI PXI-4132 Measurement Configuration and Timing and Auto Zero topics for more information about how to configure your measurements. + Default Value: The default value for the NI PXI-4132 is AutoZero.ON. The default value for all other devices is AutoZero.OFF, which is the only supported value for these devices. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].auto_zero` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.auto_zero` + ''' + auxiliary_power_source_available = _attributes.AttributeViBoolean(1150002) + '''Type: bool + + Indicates whether an auxiliary power source is connected to the device. + A value of False may indicate that the auxiliary input fuse has blown. Refer to the Detecting Internal/Auxiliary Power topic in the NI DC Power Supplies and SMUs Help for more information about internal and auxiliary power. + power source to generate power. Use the power_source_in_use property to retrieve this information. + + Note: This property does not necessarily indicate if the device is using the auxiliary + ''' + cable_length = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.CableLength, 1150278) + '''Type: enums.CableLength + + Specifies how to apply cable compensation data for instruments that support LCR functionality. + Supported instruments use cable compensation for the following operations: + + SMU mode: to stabilize DC current sourcing in the two smallest current ranges. + LCR mode: to compensate for the effects of cabling on LCR measurements. + + For NI standard options, select the length of your NI cable to apply compensation data for a typical cable of that type. + For custom options, choose the source of the custom cable compensation data. You must then generate the custom cable compensation data. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].cable_length` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.cable_length` + ''' + channel_count = _attributes.AttributeViInt32(1050203) + '''Type: int + + Indicates the number of channels that NI-DCPower supports for the instrument that was chosen when the current session was opened. For channel-based properties, the IVI engine maintains a separate cache value for each channel. + ''' + compliance_limit_symmetry = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ComplianceLimitSymmetry, 1150184) + '''Type: enums.ComplianceLimitSymmetry + + Specifies whether compliance limits for current generation and voltage + generation for the device are applied symmetrically about 0 V and 0 A or + asymmetrically with respect to 0 V and 0 A. + When set to ComplianceLimitSymmetry.SYMMETRIC, voltage limits and current limits are set + using a single property with a positive value. The resulting range is + bounded by this positive value and its opposite. + When set to ComplianceLimitSymmetry.ASYMMETRIC, you must separately set a limit high and a + limit low using distinct properties. + For asymmetric limits, the range bounded by the limit high and limit low + must include zero. + **Default Value:** Symmetric + **Related Topics:** + Compliance; + Ranges; + Changing Ranges; + Overranging + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].compliance_limit_symmetry` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.compliance_limit_symmetry` + ''' + conduction_voltage_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ConductionVoltageMode, 1150350) + '''Type: enums.ConductionVoltageMode + + Specifies whether the conduction voltage feature is enabled on the specified channel(s). + + When the conduction voltage feature is enabled, + - The instrument will not begin sinking on the specified channel(s) until the voltage at the input of the specified channel(s) rises above conduction_voltage_on_threshold + - The instrument will stop sinking if the voltage at the input of the specified channel(s) falls below conduction_voltage_off_threshold. + + When the conduction voltage feature is disabled, + - The instrument will start sinking regardless of the voltage at the input of the specified channel(s). + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.conduction_voltage_mode` + ''' + conduction_voltage_off_threshold = _attributes.AttributeViReal64(1150352) + '''Type: float + + Specifies the minimum voltage, in volts, at the input of the specified channel(s) below which the instrument stops sinking on the specified channel(s) when the conduction voltage feature is enabled. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_off_threshold` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.conduction_voltage_off_threshold` + ''' + conduction_voltage_on_threshold = _attributes.AttributeViReal64(1150351) + '''Type: float + + Specifies the required minimum voltage, in volts, at the input of the specified channel(s) before the instrument starts sinking on the specified channel(s) when the conduction voltage feature is enabled. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].conduction_voltage_on_threshold` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.conduction_voltage_on_threshold` + ''' + constant_power_compensation_frequency = _attributes.AttributeViReal64(1150360) + '''Type: float + + The frequency at which a pole-zero pair is added to the system when the output_function property is set to OutputFunction.CONSTANT_POWER and the output current is below the current limit. + + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_compensation_frequency` + ''' + constant_power_current_limit = _attributes.AttributeViReal64(1150361) + '''Type: float + + Specifies the current limit, in amps, that the output cannot exceed when generating the desired power level on the specified channel(s). + The device will operate in Constant Current mode if the current exceeds the specified limit. + This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_POWER and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. + + Valid Values: The valid values for this property are determined by the selected value for constant_power_level_range. + + Note: + The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_current_limit` + ''' + constant_power_gain_bandwidth = _attributes.AttributeViReal64(1150362) + '''Type: float + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the output_function property is set to OutputFunction.CONSTANT_POWER and the output current is below the current limit. + + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_gain_bandwidth` + ''' + constant_power_level = _attributes.AttributeViReal64(1150363) + '''Type: float + + Specifies the power level, in watts, that the device attempts to generate on the specified channel(s). + This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_POWER. + + Valid Values: The valid values for this property are determined by the selected value for constant_power_level_range. + + Note: + The channel must be enabled for the specified power level to take effect. Refer to the output_enabled property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_level` + ''' + constant_power_level_range = _attributes.AttributeViReal64(1150364) + '''Type: float + + Specifies the power level range, in watts, for the specified channel(s). + The range defines the valid values to which you can set the power level. + This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_POWER. + + For valid ranges, refer to the specifications for your instrument. + + Note: + The voltage range and current range used by the instrument are automatically determined by the selected power level range. For more information, refer to the specifications for your instrument. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_level_range` + ''' + constant_power_pole_zero_ratio = _attributes.AttributeViReal64(1150365) + '''Type: float + + The ratio of the pole frequency to the zero frequency when the output_function property is set to OutputFunction.CONSTANT_POWER and the output current is below the current limit. + + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_power_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_power_pole_zero_ratio` + ''' + constant_resistance_compensation_frequency = _attributes.AttributeViReal64(1150366) + '''Type: float + + The frequency at which a pole-zero pair is added to the system when the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the output current is below the current limit. + + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_compensation_frequency` + ''' + constant_resistance_current_limit = _attributes.AttributeViReal64(1150367) + '''Type: float + + Specifies the current limit, in amps, that the output cannot exceed when generating the desired resistance level on the specified channel(s). + The device will operate in Constant Current mode if the current exceeds the specified limit. + This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. + + Valid Values: The valid values for this property are determined by the selected value for constant_resistance_level_range. + + Note: + The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_current_limit` + ''' + constant_resistance_gain_bandwidth = _attributes.AttributeViReal64(1150368) + '''Type: float + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the output current is below the current limit. + + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_gain_bandwidth` + ''' + constant_resistance_level = _attributes.AttributeViReal64(1150369) + '''Type: float + + Specifies the resistance level, in ohms, that the device attempts to generate on the specified channel(s). + This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_RESISTANCE. + + Valid Values: The valid values for this property are determined by the selected value for constant_resistance_level_range. + + Note: + The channel must be enabled for the specified resistance level to take effect. Refer to the output_enabled property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_level` + ''' + constant_resistance_level_range = _attributes.AttributeViReal64(1150370) + '''Type: float + + Specifies the resistance level range, in ohms, for the specified channel(s). + The range defines the valid values to which you can set the resistance level. + This property is applicable only if the output_function property is set to OutputFunction.CONSTANT_RESISTANCE. + + For valid ranges, refer to the specifications for your instrument. + + Note: + The voltage range and current range used by the instrument are automatically determined by the selected resistance level range. For more information, refer to the specifications for your instrument. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_level_range` + ''' + constant_resistance_pole_zero_ratio = _attributes.AttributeViReal64(1150371) + '''Type: float + + The ratio of the pole frequency to the zero frequency when the output_function property is set to OutputFunction.CONSTANT_RESISTANCE and the output current is below the current limit. + + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].constant_resistance_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.constant_resistance_pole_zero_ratio` + ''' + current_compensation_frequency = _attributes.AttributeViReal64(1150071) + '''Type: float + + The frequency at which a pole-zero pair is added to the system when the channel is in Constant Current mode. + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_compensation_frequency` + ''' + current_gain_bandwidth = _attributes.AttributeViReal64(1150070) + '''Type: float + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Current mode. + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_gain_bandwidth` + ''' + current_level = _attributes.AttributeViReal64(1150009) + '''Type: float + + Specifies the current level, in amps, that the device attempts to generate on the specified channel(s). + This property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. + + Valid Values: The valid values for this property are defined by the values to which the current_level_range property is set. + + Note: The channel must be enabled for the specified current level to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level` + ''' + current_level_autorange = _attributes.AttributeViInt32(1150017) + '''Type: bool + + Specifies whether NI-DCPower automatically selects the current level range based on the desired current level for the specified channels. + If you set this property to AutoZero.ON, NI-DCPower ignores any changes you make to the current_level_range property. If you change the current_level_autorange property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the current_level_range property was set to (or the default value if the property was never set) and uses that value as the current level range. + Query the current_level_range property by using the _get_attribute_vi_int32 method for information about which range NI-DCPower automatically selects. + The current_level_autorange property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. + Default Value: AutoZero.OFF + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_autorange` + ''' + current_level_falling_slew_rate = _attributes.AttributeViReal64(1150344) + '''Type: float + + Specifies the rate of decrease, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). + This property is applicable only if you set the output_function property to OutputFunction.DC_CURRENT. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_falling_slew_rate` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_falling_slew_rate` + ''' + current_level_range = _attributes.AttributeViReal64(1150011) + '''Type: float + + Specifies the current level range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the current level. Use the current_level_autorange property to enable automatic selection of the current level range. + The current_level_range property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. + + For valid ranges, refer to the specifications for your instrument. + + Note: The channel must be enabled for the specified current level range to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_range` + ''' + current_level_rising_slew_rate = _attributes.AttributeViReal64(1150343) + '''Type: float + + Specifies the rate of increase, in amps per microsecond, to apply to the absolute magnitude of the current level of the specified channel(s). + This property is applicable only if you set the output_function property to OutputFunction.DC_CURRENT. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_level_rising_slew_rate` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_level_rising_slew_rate` + ''' + current_limit = _attributes.AttributeViReal64(1250005) + '''Type: float + + Specifies the current limit, in amps, that the output cannot exceed when generating the desired voltage level on the specified channel(s). + This property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. + + Valid Values: The valid values for this property are defined by the values to which current_limit_range property is set. + + Note: + The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit` + ''' + current_limit_autorange = _attributes.AttributeViInt32(1150016) + '''Type: bool + + Specifies whether NI-DCPower automatically selects the current limit range based on the desired current limit for the specified channel(s). + If you set this property to AutoZero.ON, NI-DCPower ignores any changes you make to the current_limit_range property. If you change this property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the current_limit_range property was set to (or the default value if the property was never set) and uses that value as the current limit range. + Query the current_limit_range property by using the _get_attribute_vi_int32 method for information about which range NI-DCPower automatically selects. + The current_limit_autorange property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. + Default Value: AutoZero.OFF + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_autorange` + ''' + current_limit_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.CurrentLimitBehavior, 1250004) + '''Type: enums.CurrentLimitBehavior + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_behavior` + ''' + current_limit_high = _attributes.AttributeViReal64(1150187) + '''Type: float + + Specifies the maximum current, in amps, that the output can produce when + generating the desired voltage on the specified channel(s). + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_VOLTAGE. + You must also specify a current_limit_low to complete the asymmetric + range. + **Valid Values:** [1% of current_limit_range, current_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_high` + ''' + current_limit_low = _attributes.AttributeViReal64(1150188) + '''Type: float + + Specifies the minimum current, in amps, that the output can produce when + generating the desired voltage on the specified channel(s). + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_VOLTAGE. + You must also specify a current_limit_high to complete the asymmetric + range. + **Valid Values:** [-current_limit_range, -1% of current_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_low` + ''' + current_limit_range = _attributes.AttributeViReal64(1150004) + '''Type: float + + Specifies the current limit range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the current limit. Use the current_limit_autorange property to enable automatic selection of the current limit range. + The current_limit_range property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. + + For valid ranges, refer to the specifications for your instrument. + + Note: The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_limit_range` + ''' + current_pole_zero_ratio = _attributes.AttributeViReal64(1150072) + '''Type: float + + The ratio of the pole frequency to the zero frequency when the channel is in Constant Current mode. + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].current_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.current_pole_zero_ratio` + ''' + dc_noise_rejection = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DCNoiseRejection, 1150066) + '''Type: enums.DCNoiseRejection + + Determines the relative weighting of samples in a measurement. Refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic in the NI DC Power Supplies and SMUs Help for more information about noise rejection. + Default Value: TransientResponse.NORMAL + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].dc_noise_rejection` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.dc_noise_rejection` + ''' + digital_edge_measure_trigger_input_terminal = _attributes.AttributeViString(1150036) + '''Type: str + + Specifies the input terminal for the Measure trigger. This property is used only when the measure_trigger_type property is set to TriggerType.DIGITAL_EDGE. + for this property. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_measure_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_measure_trigger_input_terminal` + ''' + digital_edge_pulse_trigger_input_terminal = _attributes.AttributeViString(1150097) + '''Type: str + + Specifies the input terminal for the Pulse trigger. This property is used only when the pulse_trigger_type property is set to digital edge. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_pulse_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_pulse_trigger_input_terminal` + ''' + digital_edge_sequence_advance_trigger_input_terminal = _attributes.AttributeViString(1150028) + '''Type: str + + Specifies the input terminal for the Sequence Advance trigger. Use this property only when the sequence_advance_trigger_type property is set to TriggerType.DIGITAL_EDGE. + the NI DC Power Supplies and SMUs Help for information about supported devices. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_sequence_advance_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_sequence_advance_trigger_input_terminal` + ''' + digital_edge_shutdown_trigger_input_terminal = _attributes.AttributeViString(1150277) + '''Type: str + + Specifies the input terminal for the Shutdown trigger. This property is used only when the shutdown_trigger_type property is set to digital edge. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_shutdown_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_shutdown_trigger_input_terminal` + ''' + digital_edge_source_trigger_input_terminal = _attributes.AttributeViString(1150032) + '''Type: str + + Specifies the input terminal for the Source trigger. Use this property only when the source_trigger_type property is set to TriggerType.DIGITAL_EDGE. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_source_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_source_trigger_input_terminal` + ''' + digital_edge_start_trigger_input_terminal = _attributes.AttributeViString(1150023) + '''Type: str + + Specifies the input terminal for the Start trigger. Use this property only when the start_trigger_type property is set to TriggerType.DIGITAL_EDGE. + You can specify any valid input terminal for this property. Valid terminals are listed in Measurement & Automation Explorer under the Device Routes tab. + Input terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The input terminal can also be a terminal from another device. For example, you can set the input terminal on Dev1 to be /Dev2/SourceCompleteEvent. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].digital_edge_start_trigger_input_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.digital_edge_start_trigger_input_terminal` + ''' + driver_setup = _attributes.AttributeViString(1050007) + '''Type: str + + Indicates the Driver Setup string that you specified when initializing the driver. + Some cases exist where you must specify the instrument driver options at initialization time. An example of this case is specifying a particular device model from among a family of devices that the driver supports. This property is useful when simulating a device. You can specify the driver-specific options through the DriverSetup keyword in the optionsString parameter in the __init__ method or through the IVI Configuration Utility. + You can specify driver-specific options through the DriverSetup keyword in the optionsString parameter in the __init__ method. If you do not specify a Driver Setup string, this property returns an empty string. + ''' + exported_measure_trigger_output_terminal = _attributes.AttributeViString(1150037) + '''Type: str + + Specifies the output terminal for exporting the Measure trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_measure_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_measure_trigger_output_terminal` + ''' + exported_pulse_trigger_output_terminal = _attributes.AttributeViString(1150098) + '''Type: str + + Specifies the output terminal for exporting the Pulse trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_pulse_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_pulse_trigger_output_terminal` + ''' + exported_sequence_advance_trigger_output_terminal = _attributes.AttributeViString(1150029) + '''Type: str + + Specifies the output terminal for exporting the Sequence Advance trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_sequence_advance_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_sequence_advance_trigger_output_terminal` + ''' + exported_source_trigger_output_terminal = _attributes.AttributeViString(1150033) + '''Type: str + + Specifies the output terminal for exporting the Source trigger. + Refer to the Device Routes tab in MAX for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_source_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_source_trigger_output_terminal` + ''' + exported_start_trigger_output_terminal = _attributes.AttributeViString(1150024) + '''Type: str + + Specifies the output terminal for exporting the Start trigger. + Refer to the Device Routes tab in Measurement & Automation Explorer (MAX) for a list of the terminals available on your device. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].exported_start_trigger_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.exported_start_trigger_output_terminal` + ''' + fetch_backlog = _attributes.AttributeViInt32(1150056) + '''Type: int + + Returns the number of measurements acquired that have not been fetched yet. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].fetch_backlog` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.fetch_backlog` + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + Contains the firmware revision information for the device you are currently using. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_firmware_revision` + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + Contains the name of the manufacturer for the device you are currently using. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_manufacturer` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_manufacturer` + ''' + instrument_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InstrumentMode, 1150208) + '''Type: enums.InstrumentMode + + Specifies the mode of operation for an instrument channel for instruments that support multiple modes. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].instrument_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_mode` + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + Contains the model number or name of the device that you are currently using. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_model` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.instrument_model` + ''' + interlock_input_open = _attributes.AttributeViBoolean(1150105) + '''Type: bool + + Indicates whether the safety interlock circuit is open. + Refer to the Safety Interlock topic in the NI DC Power Supplies and SMUs Help for more information about the safety interlock circuit. + about supported devices. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].interlock_input_open` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.interlock_input_open` + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Indicates the resource descriptor NI-DCPower uses to identify the physical device. + If you initialize NI-DCPower with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. + If you initialize NI-DCPower with the resource descriptor, this property contains that value. + ''' + isolation_state = _attributes.AttributeEnumWithConverter(_attributes.AttributeEnum(_attributes.AttributeViInt32, enums._IsolationState, 1150302), _converters.convert_from_isolation_state_enum, _converters.convert_to_isolation_state_enum) + '''Type: bool + + Defines whether the channel is isolated. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].isolation_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.isolation_state` + ''' + lcr_actual_load_reactance = _attributes.AttributeViReal64(1150271) + '''Type: float + + Specifies the actual reactance, in ohms, of the load used for load LCR compensation. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_reactance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_actual_load_reactance` + ''' + lcr_actual_load_resistance = _attributes.AttributeViReal64(1150270) + '''Type: float + + Specifies the actual resistance, in ohms, of the load used for load LCR compensation. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_actual_load_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_actual_load_resistance` + ''' + lcr_ac_dither_enabled = _attributes.AttributeViBoolean(1150348) + '''Type: bool + + Specifies whether dithering is enabled during LCR measurements. + Dithering adds out-of-band noise to improve measurements of small voltage and current signals. + + Note: + Hardware is only warranted to meet its accuracy specs with dither enabled. You can disable dither if the added noise interferes with your device-under-test. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_ac_dither_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_ac_dither_enabled` + ''' + lcr_ac_electrical_cable_length_delay = _attributes.AttributeViReal64(1150309) + '''Type: float + + Specifies the one-way electrical length delay of the cable, in seconds. + The default value depends on cable_length. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_ac_electrical_cable_length_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_ac_electrical_cable_length_delay` + ''' + lcr_automatic_level_control = _attributes.AttributeViInt32(1150290) + '''Type: bool + + Specifies whether the channel actively attempts to maintain a constant test voltage or current across the DUT for LCR measurements. + The use of voltage or current depends on the test signal you configure with the lcr_stimulus_function property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_automatic_level_control` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_automatic_level_control` + ''' + lcr_current_amplitude = _attributes.AttributeViReal64(1150212) + '''Type: float + + Specifies the amplitude, in amps RMS, of the AC current test signal applied to the DUT for LCR measurements. + This property applies when the lcr_stimulus_function property is set to LCRStimulusFunction.CURRENT. + + Valid Values: 7.08e-9 A RMS to 0.707 A RMS + + Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_current_amplitude` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_current_amplitude` + ''' + lcr_current_range = _attributes.AttributeViReal64(1150267) + '''Type: float + + Specifies the current range, in amps RMS, for the specified channel(s). + The range defines the valid values to which you can set the lcr_current_amplitude. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_current_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_current_range` + ''' + lcr_custom_measurement_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150258) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the LCR measurement aperture time for a channel, in seconds, + when the lcr_measurement_time property is set to LCRMeasurementTime.CUSTOM. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_custom_measurement_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_custom_measurement_time` + ''' + lcr_dc_bias_automatic_level_control = _attributes.AttributeViInt32(1150291) + '''Type: bool + + Specifies whether the channel actively maintains a constant DC bias voltage or current across the DUT for LCR measurements. + To use this property, you must configure a DC bias by 1) selecting an lcr_dc_bias_source and 2) depending on the DC bias source you choose, setting either the lcr_dc_bias_voltage_level or lcr_dc_bias_current_level. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_automatic_level_control` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_automatic_level_control` + ''' + lcr_dc_bias_current_level = _attributes.AttributeViReal64(1150215) + '''Type: float + + Specifies the DC bias current level, in amps, when the lcr_dc_bias_source property is set to LCRDCBiasSource.CURRENT. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_current_level` + ''' + lcr_dc_bias_current_range = _attributes.AttributeViReal64(1150274) + '''Type: float + + Specifies the DC Bias current range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the lcr_dc_bias_current_level. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_current_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_current_range` + ''' + lcr_dc_bias_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRDCBiasSource, 1150213) + '''Type: enums.LCRDCBiasSource + + Specifies how to apply DC bias for LCR measurements. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_source` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_source` + ''' + lcr_dc_bias_transient_response = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRDCBiasTransientResponse, 1150347) + '''Type: enums.LCRDCBiasTransientResponse + + For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the transient response values for DC bias or applies the transient response you set manually. + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. + + Related Topics: Transient Response + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_transient_response` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_transient_response` + ''' + lcr_dc_bias_voltage_level = _attributes.AttributeViReal64(1150214) + '''Type: float + + Specifies the DC bias voltage level, in volts, when the lcr_dc_bias_source property is set to LCRDCBiasSource.VOLTAGE. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_voltage_level` + ''' + lcr_dc_bias_voltage_range = _attributes.AttributeViReal64(1150266) + '''Type: float + + Specifies the DC Bias voltage range, in volts, for the specified channel(s). + The range defines the valid values to which you can set the lcr_dc_bias_voltage_level. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_dc_bias_voltage_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_dc_bias_voltage_range` + ''' + lcr_frequency = _attributes.AttributeViReal64(1150210) + '''Type: float + + Specifies the frequency of the AC test signal applied to the DUT for LCR measurements. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_frequency` + ''' + lcr_impedance_auto_range = _attributes.AttributeEnumWithConverter(_attributes.AttributeEnum(_attributes.AttributeViInt32, enums._LCRImpedanceAutoRange, 1150216), _converters.convert_from_lcr_impedance_auto_range_enum, _converters.convert_to_lcr_impedance_auto_range_enum) + '''Type: bool + + Defines whether an instrument in LCR mode automatically selects the best impedance range for each given LCR measurement. + + Impedance autoranging may be enabled only when both: + + - The source_mode property is set to SourceMode.SINGLE_POINT + - measure_when is set to a value other than MeasureWhen.ON_MEASURE_TRIGGER + + You can read lcr_impedance_range back after a measurement to determine the actual range used. + + When enabled, impedance autoranging overrides impedance range settings you configure manually with any other properties. + + When using a load with unknown impedance, you can set this property to _LCRImpedanceAutoRange.ON to determine the correct impedance range for the load. When you know the load impedance, you can achieve faster performance by setting this property to _LCRImpedanceAutoRange.OFF and setting lcr_impedance_range_source to LCRImpedanceRangeSource.LOAD_CONFIGURATION. + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_auto_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_impedance_auto_range` + ''' + lcr_impedance_range = _attributes.AttributeViReal64(1150217) + '''Type: float + + Specifies the impedance range the channel uses for LCR measurements. + + Valid Values: 0 ohms to +inf ohms + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_impedance_range` + ''' + lcr_impedance_range_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRImpedanceRangeSource, 1150321) + '''Type: enums.LCRImpedanceRangeSource + + Specifies how the impedance range for LCR measurements is determined. + + "LCR_IMPEDANCE_AUTORANGE overrides any impedance range determined by this property. + + " + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_impedance_range_source` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_impedance_range_source` + ''' + lcr_load_capacitance = _attributes.AttributeViReal64(1150320) + '''Type: float + + Specifies the load capacitance, in farads and assuming a series model, of the DUT in order to compute the impedance range when the lcr_impedance_range_source property is set to LCRImpedanceRangeSource.LOAD_CONFIGURATION. + + Valid values: (0 farads, +inf farads) + 0 is a special value that signifies +inf farads. + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_capacitance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_capacitance` + ''' + lcr_load_compensation_enabled = _attributes.AttributeViBoolean(1150222) + '''Type: bool + + Specifies whether to apply load LCR compensation data to LCR measurements. + Both the lcr_open_compensation_enabled and lcr_short_compensation_enabled properties must be set to True in order to set this property to True. + + Use the lcr_open_short_load_compensation_data_source property to define where the load compensation data that is applied to LCR measurements comes from. + + Note: + Load compensation data are applied only for those specific frequencies you define with perform_lcr_load_compensation; + load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_compensation_enabled` + ''' + lcr_load_inductance = _attributes.AttributeViReal64(1150319) + '''Type: float + + Specifies the load inductance, in henrys and assuming a series model, of the DUT in order to compute the impedance range when the lcr_impedance_range_source property is set to LCRImpedanceRangeSource.LOAD_CONFIGURATION. + + Valid values: [0 henrys, +inf henrys) + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_inductance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_inductance` + ''' + lcr_load_resistance = _attributes.AttributeViReal64(1150318) + '''Type: float + + Specifies the load resistance, in ohms and assuming a series model, of the DUT in order to compute the impedance range when the lcr_impedance_range_source property is set to LCRImpedanceRangeSource.LOAD_CONFIGURATION. + + Valid values: [0 ohms, +inf ohms) + + Default Value: Search ni.com for Supported Properties by Device for the default value by instrument + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_load_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_load_resistance` + ''' + lcr_measured_load_reactance = _attributes.AttributeViReal64(1150269) + '''Type: float + + Specifies the reactance, in ohms, of the load used for load LCR compensation as measured by the instrument. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_reactance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_measured_load_reactance` + ''' + lcr_measured_load_resistance = _attributes.AttributeViReal64(1150268) + '''Type: float + + Specifies the resistance, in ohms, of the load used for load LCR compensation as measured by the instrument. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_measured_load_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_measured_load_resistance` + ''' + lcr_measurement_time = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRMeasurementTime, 1150218) + '''Type: enums.LCRMeasurementTime + + Selects a general aperture time profile for LCR measurements. The actual duration of each profile depends on the frequency of the LCR test signal. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_measurement_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_measurement_time` + ''' + lcr_open_compensation_enabled = _attributes.AttributeViBoolean(1150220) + '''Type: bool + + Specifies whether to apply open LCR compensation data to LCR measurements. + Use the lcr_open_short_load_compensation_data_source property to define where the open compensation data that is applied to LCR measurements comes from. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_compensation_enabled` + ''' + lcr_open_conductance = _attributes.AttributeViReal64(1150261) + '''Type: float + + Specifies the conductance, in siemens, of the circuit used for open LCR compensation. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_conductance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_conductance` + ''' + lcr_open_short_load_compensation_data_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCROpenShortLoadCompensationDataSource, 1150223) + '''Type: enums.LCROpenShortLoadCompensationDataSource + + Specifies the source of the LCR compensation data NI-DCPower applies to LCR measurements. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_short_load_compensation_data_source` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_short_load_compensation_data_source` + ''' + lcr_open_susceptance = _attributes.AttributeViReal64(1150262) + '''Type: float + + Specifies the susceptance, in siemens, of the circuit used for open LCR compensation. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_open_susceptance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_open_susceptance` + ''' + lcr_short_compensation_enabled = _attributes.AttributeViBoolean(1150221) + '''Type: bool + + Specifies whether to apply short LCR compensation data to LCR measurements. + Use the lcr_open_short_load_compensation_data_source property to define where the short compensation data that is applied to LCR measurements comes from. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_compensation_enabled` + ''' + lcr_short_custom_cable_compensation_enabled = _attributes.AttributeViBoolean(1150299) + '''Type: bool + + Defines how to apply short custom cable compensation in LCR mode when cable_length property is set to CableLength.CUSTOM_ONBOARD_STORAGE or CableLength.CUSTOM_AS_CONFIGURED. + + LCR custom cable compensation uses compensation data for both an open and short configuration. + For open custom cable compensation, you must supply your own data from a call to perform_lcr_open_custom_cable_compensation. + For short custom cable compensation, you can supply your own data from a call to perform_lcr_short_custom_cable_compensation or NI-DCPower can apply a default set of short compensation data. + + +-------+-----------------------------------------------------------------------------------------------------+ + | False | Uses default short compensation data. | + +-------+-----------------------------------------------------------------------------------------------------+ + | True | Uses short custom cable compensation data generated by perform_lcr_short_custom_cable_compensation. | + +-------+-----------------------------------------------------------------------------------------------------+ + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_custom_cable_compensation_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_custom_cable_compensation_enabled` + ''' + lcr_short_reactance = _attributes.AttributeViReal64(1150264) + '''Type: float + + Specifies the reactance, in ohms, of the circuit used for short LCR compensation. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_reactance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_reactance` + ''' + lcr_short_resistance = _attributes.AttributeViReal64(1150263) + '''Type: float + + Specifies the resistance, in ohms, of the circuit used for short LCR compensation. + This property applies when lcr_open_short_load_compensation_data_source is set to LCROpenShortLoadCompensationDataSource.AS_DEFINED. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_short_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_short_resistance` + ''' + lcr_source_aperture_time = _attributes.AttributeViReal64(1150349) + '''Type: float + + Specifies the LCR source aperture time for a channel, in seconds. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_source_aperture_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_source_aperture_time` + ''' + lcr_source_delay_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRSourceDelayMode, 1150315) + '''Type: enums.LCRSourceDelayMode + + For instruments in LCR mode, determines whether NI-DCPower automatically calculates and applies the source delay or applies a source delay you set manually. + + You can return the source delay duration for either option by reading source_delay. + + When you use this property to manually set the source delay, it is possible to set source delays short enough to unbalance the bridge and affect measurement accuracy. LCR measurement methods report whether the bridge is unbalanced. + + Default Value: LCRSourceDelayMode.AUTOMATIC + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_source_delay_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_source_delay_mode` + ''' + lcr_stimulus_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCRStimulusFunction, 1150209) + '''Type: enums.LCRStimulusFunction + + Specifies the type of test signal to apply to the DUT for LCR measurements. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_stimulus_function` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_stimulus_function` + ''' + lcr_voltage_amplitude = _attributes.AttributeViReal64(1150211) + '''Type: float + + Specifies the amplitude, in volts RMS, of the AC voltage test signal applied to the DUT for LCR measurements. + This property applies when the lcr_stimulus_function property is set to LCRStimulusFunction.VOLTAGE. + + Valid Values: 7.08e-4 V RMS to 7.07 V RMS + + Instrument specifications affect the valid values you can program. Refer to the specifications for your instrument for more information. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_amplitude` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_voltage_amplitude` + ''' + lcr_voltage_range = _attributes.AttributeViReal64(1150265) + '''Type: float + + Specifies the voltage range, in volts RMS, for the specified channel(s). + The range defines the valid values to which you can set the lcr_voltage_amplitude. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].lcr_voltage_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.lcr_voltage_range` + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + Contains the logical name you specified when opening the current IVI session. + You can pass a logical name to the __init__ method. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a method section in the IVI Configuration file. The method section specifies a physical device and initial user options. + ''' + measure_buffer_size = _attributes.AttributeViInt32(1150077) + '''Type: int + + Specifies the number of samples that the active channel measurement buffer can hold. + The default value is the maximum number of samples that a device is capable of recording in one second. + Valid Values: The PXIe-4051, PXIe-4147, and PXIe-4150/4151 support values from 170 to 18000110. + The PXIe-4162/4163 supports values from 256 to 1000192. + The PXIe-4190 supports values from 102 to 6000048. + The PXIe-4112, PXIe-4113, and PXIe-4154 support values from 1000 to 178956970. + All other supported instruments support values from 1000 to 268435455. + Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_buffer_size` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_buffer_size` + ''' + measure_complete_event_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150046) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the amount of time to delay the generation of the Measure Complete event, in seconds. + Valid Values: The PXIe-4051 supports values from 0 seconds to 39 seconds. + The PXIe-4147 supports values from 0 seconds to 26.5 seconds. + The PXIe-4150/4151 supports values from 0 seconds to 42 seconds. + The PXIe-4162/4163 and PXIe-4190 support values from 0 seconds to 23 seconds. + All other supported instruments support values from 0 to 167 seconds. + Default Value: Varies by device. Refer to Supported Properties by Device topic in the NI DC Power Supplies and SMUs Help for more information about default values. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_delay` + ''' + measure_complete_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150333) + '''Type: enums.EventOutputBehavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Measure Complete event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Measure Complete event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. + + Note: + This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_output_behavior` + ''' + measure_complete_event_output_terminal = _attributes.AttributeViString(1150047) + '''Type: str + + Specifies the output terminal for exporting the Measure Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_output_terminal` + ''' + measure_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150044) + '''Type: enums.Polarity + + Specifies the behavior of the Measure Complete event. + Default Value: Polarity.HIGH + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_pulse_polarity` + ''' + measure_complete_event_pulse_width = _attributes.AttributeViReal64(1150045) + '''Type: float + + Specifies the width of the Measure Complete event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + Valid Values: 1.5e-7 to 1.6e-6 + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_pulse_width` + ''' + measure_complete_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150334) + '''Type: enums.EventToggleInitialState + + Specifies the initial state of the Measure Complete event when you set the measure_complete_event_output_behavior property to EventOutputBehavior.TOGGLE. + For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is NIDCPOWER_VAL_LOW_STATE. + + Note: + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_complete_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_complete_event_toggle_initial_state` + ''' + measure_record_delta_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150065) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Queries the amount of time, in seconds, between between the start of two consecutive measurements in a measure record. Only query this property after the desired measurement settings are committed. + two measurements and the rest would differ. + + Note: This property is not available when Auto Zero is configured to Once because the amount of time between the first + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_record_delta_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_record_delta_time` + ''' + measure_record_length = _attributes.AttributeViInt32(1150063) + '''Type: int + + Specifies how many measurements compose a measure record. When this property is set to a value greater than 1, the measure_when property must be set to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER. + Valid Values: 1 to 16,777,216 + Default Value: 1 + + Note: + This property is not available in a session involving multiple channels. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_record_length` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_record_length` + ''' + measure_record_length_is_finite = _attributes.AttributeViBoolean(1150064) + '''Type: bool + + Specifies whether to take continuous measurements. Call the abort method to stop continuous measurements. When this property is set to False and the source_mode property is set to SourceMode.SINGLE_POINT, the measure_when property must be set to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER. When this property is set to False and the source_mode property is set to SourceMode.SEQUENCE, the measure_when property must be set to MeasureWhen.ON_MEASURE_TRIGGER. + Default Value: True + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. This property is not available in a session involving multiple channels. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_record_length_is_finite` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_record_length_is_finite` + ''' + measure_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150034) + '''Type: enums.TriggerType + + Specifies the behavior of the Measure trigger. + Default Value: TriggerType.DIGITAL_EDGE + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_trigger_type` + ''' + measure_when = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MeasureWhen, 1150057) + '''Type: enums.MeasureWhen + + Specifies when the measure unit should acquire measurements. Unless this property is configured to MeasureWhen.ON_MEASURE_TRIGGER, the measure_trigger_type property is ignored. + Refer to the Acquiring Measurements topic in the NI DC Power Supplies and SMUs Help for more information about how to configure your measurements. + Default Value: If the source_mode property is set to SourceMode.SINGLE_POINT, the default value is MeasureWhen.ON_DEMAND. This value supports only the measure method and measure_multiple method. If the source_mode property is set to SourceMode.SEQUENCE, the default value is MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE. This value supports only the fetch_multiple method. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].measure_when` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.measure_when` + ''' + merged_channels = _attributes.AttributeViStringRepeatedCapability(1150249) + '''Type: str + + Specifies the merge channel(s) to combine with a designated primary channel of an instrument in order to increase the maximum current you can source from the instrument. + Set this property on the primary channel only, and pass the merge channels as the value of this property. + Refer to the Merged Channels topic in your instrument user manual for more information about using merged channels. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if no channels were merged. + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].merged_channels` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.merged_channels` + ''' + output_capacitance = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputCapacitance, 1150014) + '''Type: enums.OutputCapacitance + + Specifies whether to use a low or high capacitance on the output for the specified channel(s). + Refer to the NI PXI-4130 Output Capacitance Selection topic in the NI DC Power Supplies and SMUs Help for more information about capacitance. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_capacitance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_capacitance` + ''' + output_connected = _attributes.AttributeViBoolean(1150060) + '''Type: bool + + Specifies whether the output relay is connected (closed) or disconnected (open). The output_enabled property does not change based on this property; they are independent of each other. + + Set this property to False to disconnect the output terminal from the output. + + Default Value: True + + Note: + Only disconnect the output when disconnecting is necessary for your application. For example, a battery connected to the output terminal might discharge unless the relay is disconnected. Excessive connecting and disconnecting of the output can cause premature wear on electromechanical relays, such as those used by the PXIe-4147, PXI-4132, or PXIe-4138/39. + + The PXIe-4051 does not have an output relay. For the PXIe-4051, this property specifies whether the input MOSFETs are connected (ON) or disconnected (OFF). + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_connected` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_connected` + ''' + output_cutoff_current_change_limit_high = _attributes.AttributeViReal64(1150295) + '''Type: float + + Specifies a limit for positive current slew rate, in amps per microsecond, for output cutoff. + If the current increases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_CHANGE_HIGH as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_change_limit_high` + ''' + output_cutoff_current_change_limit_low = _attributes.AttributeViReal64(1150239) + '''Type: float + + Specifies a limit for negative current slew rate, in amps per microsecond, for output cutoff. + If the current decreases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_CHANGE_LOW as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_change_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_change_limit_low` + ''' + output_cutoff_current_measure_limit_high = _attributes.AttributeViReal64(1150237) + '''Type: float + + Specifies a high limit current value, in amps, for output cutoff. + If the measured current exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_MEASURE_HIGH as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_measure_limit_high` + ''' + output_cutoff_current_measure_limit_low = _attributes.AttributeViReal64(1150293) + '''Type: float + + Specifies a low limit current value, in amps, for output cutoff. + If the measured current falls below this limit, the output is disconnected. + + To find out whether an output has fallen below this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_MEASURE_LOW as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_measure_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_measure_limit_low` + ''' + output_cutoff_current_overrange_enabled = _attributes.AttributeViBoolean(1150240) + '''Type: bool + + Enables or disables current overrange functionality for output cutoff. If enabled, the output is disconnected when the measured current saturates the current range. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.CURRENT_SATURATED as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_current_overrange_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_current_overrange_enabled` + ''' + output_cutoff_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150300) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Delays disconnecting the output by the time you specify, in seconds, when a limit is exceeded. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_delay` + ''' + output_cutoff_enabled = _attributes.AttributeViBoolean(1150235) + '''Type: bool + + Enables or disables output cutoff functionality. If enabled, you can define output cutoffs that, if exceeded, cause the output of the specified channel(s) to be disconnected. + When this property is disabled, all other output cutoff properties are ignored. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + Instruments that do not support this property behave as if this property were set to False. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_enabled` + ''' + output_cutoff_voltage_change_limit_high = _attributes.AttributeViReal64(1150294) + '''Type: float + + Specifies a limit for positive voltage slew rate, in volts per microsecond, for output cutoff. + If the voltage increases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state with OutputCutoffReason.VOLTAGE_CHANGE_HIGH as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_high` + ''' + output_cutoff_voltage_change_limit_low = _attributes.AttributeViReal64(1150238) + '''Type: float + + Specifies a limit for negative voltage slew rate, in volts per microsecond, for output cutoff. + If the voltage decreases at a rate that exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state with OutputCutoffReason.VOLTAGE_CHANGE_LOW as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_change_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_change_limit_low` + ''' + output_cutoff_voltage_measure_limit_high = _attributes.AttributeViReal64(1150357) + '''Type: float + + Specifies a high limit voltage value, in volts, for output cutoff. + If the measured voltage exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_MEASURE_HIGH as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_high` + ''' + output_cutoff_voltage_measure_limit_low = _attributes.AttributeViReal64(1150358) + '''Type: float + + Specifies a low limit voltage value, in volts, for output cutoff. + If the measured voltage falls below this limit, the output is disconnected. + + To find out whether an output has fallen below this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_MEASURE_LOW as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_measure_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_measure_limit_low` + ''' + output_cutoff_voltage_output_limit_high = _attributes.AttributeViReal64(1150236) + '''Type: float + + Specifies a high limit voltage value, in volts, for output cutoff. + If the voltage output exceeds this limit, the output is disconnected. + + To find out whether an output has exceeded this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_OUTPUT_HIGH as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_high` + ''' + output_cutoff_voltage_output_limit_low = _attributes.AttributeViReal64(1150292) + '''Type: float + + Specifies a low limit voltage value, in volts, for output cutoff. + If the voltage output falls below this limit, the output is disconnected. + + To find out whether an output has fallen below this limit, call the query_latched_output_cutoff_state method with OutputCutoffReason.VOLTAGE_OUTPUT_LOW as the output cutoff reason. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_cutoff_voltage_output_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_cutoff_voltage_output_limit_low` + ''' + output_enabled = _attributes.AttributeViBoolean(1250006) + '''Type: bool + + Specifies whether the output is enabled (True) or disabled (False). + + Depending on the value you specify for the output_function property, you also must set the corresponding level properties or output_resistance in addition to enabling the output to generate the desired level. + For more information about configuring the output level, refer to the output_function property. + + Default Value: The default value is True if you use the __init__ method to open the session. Otherwise the default value is False, including when you use a calibration session or the deprecated programming model. + + Note: + If the session is in the Committed or Uncommitted states, enabling the output does not take effect until you call the initiate method. Refer to the Programming States topic in the NI DC Power Supplies and SMUs Help for more information about NI-DCPower programming states. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_enabled` + ''' + output_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputFunction, 1150008) + '''Type: enums.OutputFunction + + Configures the method to generate on the specified channel(s). + + When OutputFunction.DC_VOLTAGE is selected, the device generates the desired voltage level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when OutputFunction.DC_VOLTAGE is selected: + - voltage_level + - current_limit + - current_limit_high + - current_limit_low + - voltage_level_range + - current_limit_range + - compliance_limit_symmetry + + When OutputFunction.DC_CURRENT is selected, the device generates the desired current level on the output as long as the output voltage is below the voltage limit. Use the following properties to configure the channel when OutputFunction.DC_CURRENT is selected: + - current_level + - voltage_limit + - voltage_limit_high + - voltage_limit_low + - current_level_range + - voltage_limit_range + - compliance_limit_symmetry + + When OutputFunction.PULSE_VOLTAGE is selected, the device generates pulses at the desired pulse voltage levels on the output as long as the output current is below the pulse current limit. Use the following properties to configure the channel when OutputFunction.PULSE_VOLTAGE is selected: + - pulse_voltage_level + - pulse_bias_voltage_level + - pulse_current_limit + - pulse_current_limit_high + - pulse_current_limit_low + - pulse_bias_current_limit + - pulse_bias_current_limit_high + - pulse_bias_current_limit_low + - pulse_voltage_level_range + - pulse_current_limit_range + - compliance_limit_symmetry + + When OutputFunction.PULSE_CURRENT is selected, the device generates pulses at the desired pulse current levels on the output as long as the output voltage is below the pulse voltage limit. Use the following properties to configure the channel when OutputFunction.PULSE_CURRENT is selected: + - pulse_current_level + - pulse_bias_current_level + - pulse_voltage_limit + - pulse_voltage_limit_high + - pulse_voltage_limit_low + - pulse_bias_voltage_limit + - pulse_bias_voltage_limit_high + - pulse_bias_voltage_limit_low + - pulse_current_level_range + - pulse_voltage_limit_range + - compliance_limit_symmetry + + When OutputFunction.CONSTANT_RESISTANCE is selected, the device generates the desired resistance level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when OutputFunction.CONSTANT_RESISTANCE is selected: + - constant_resistance_level + - constant_resistance_current_limit + - constant_resistance_level_range + + When OutputFunction.CONSTANT_POWER is selected, the device generates the desired power level on the output as long as the output current is below the current limit. Use the following properties to configure the channel when OutputFunction.CONSTANT_POWER is selected: + - constant_power_level + - constant_power_current_limit + - constant_power_level_range + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_function` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_function` + ''' + output_resistance = _attributes.AttributeViReal64(1150061) + '''Type: float + + Specifies the output resistance that the device attempts to generate for the specified channel(s). + + Depending on the instrument, output resistance is configurable only if you set the output_function of the channel as follows: + - PXIe-4141, PXIe-4143, PXIe-4145: OutputFunction.DC_VOLTAGE + - PXIe-4135, PXIe-4137, PXIe-4139, PXIe-4147: OutputFunction.DC_CURRENT or OutputFunction.DC_VOLTAGE + + **Valid Values**: Vary by device. Refer to the device specifications for your device for more information about supported values. + + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + + Note: + The channel must be enabled for the specified output resistance to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Using the merged_channels property to merge instrument outputs affects the valid output resistance range you can program. Refer to the Merged Channels topic for your device for details. + + To specify the resistance level that the device attempts to generate when output_function is set to OutputFunction.CONSTANT_RESISTANCE, use the constant_resistance_level property. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_resistance` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_resistance` + ''' + output_shorted = _attributes.AttributeViBoolean(1150372) + '''Type: bool + + Specifies whether the input of the instrument simulates a short circuit. + When this property is set to True, the electronic load will simulate a short circuit across the channel/input terminals. The electronic load uses the maximum rated current and range to simulate the short circuit. This property will only take effect when both output_enabled and output_connected are True. + + When this property is set to False, the instrument will resume normal operation based on its existing settings on the specified channel(s). + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_shorted` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.output_shorted` + ''' + overranging_enabled = _attributes.AttributeViBoolean(1150007) + '''Type: bool + + Specifies whether NI-DCPower allows setting the voltage level, current level, voltage limit and current limit outside the device specification limits. True means that overranging is enabled. + Refer to the Ranges topic in the NI DC Power Supplies and SMUs Help for more information about overranging. + Default Value: False + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].overranging_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.overranging_enabled` + ''' + ovp_enabled = _attributes.AttributeViBoolean(1250002) + '''Type: bool + + Enables (True) or disables (False) overvoltage protection (OVP). + Refer to the Output Overvoltage Protection topic in the NI DC Power Supplies and SMUs Help for more information about overvoltage protection. + Default Value: False + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ovp_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ovp_enabled` + ''' + ovp_limit = _attributes.AttributeViReal64(1250003) + '''Type: float + + Determines the voltage limit, in volts, beyond which overvoltage protection (OVP) engages. + The limit is specified as a positive value, but symmetric positive and negative limits are enforced simultaneously. + For example, setting the OVP Limit to 65 will configure the OVP feature to trigger an OVP error if the output exceeds ±65 V. + + Valid Values: 2 V to 210 V + Default Value: 210 V + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ovp_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ovp_limit` + ''' + power_allocation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerAllocationMode, 1150207) + '''Type: enums.PowerAllocationMode + + Determines whether the device sources the power its source configuration requires or a specific wattage you request; determines whether NI-DCPower proactively checks that this sourcing power is within the maximum per-channel and overall sourcing power of the device. + + When this property configures NI-DCPower to perform a sourcing power check, a device is not permitted to source power in excess of its maximum per-channel or overall sourcing power. If the check determines a source configuration or power request would require the device to do so, NI-DCPower returns an error. + + When this property does not configure NI-DCPower to perform a sourcing power check, a device can attempt to fulfill source configurations that would require it to source power in excess of its maximum per-channel or overall sourcing power and may shut down to prevent damage. + + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. Devices that do not support this property behave as if this property were set to PowerAllocationMode.DISABLED. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].power_allocation_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.power_allocation_mode` + ''' + power_line_frequency = _attributes.AttributeViReal64(1150020) + '''Type: float + + Specifies the power line frequency for specified channel(s). NI-DCPower uses this value to select a timebase for setting the aperture_time property in power line cycles (PLCs). + in the NI DC Power Supplies and SMUs Help for information about supported devices. + Default Value: NIDCPOWER_VAL_60_HERTZ + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].power_line_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.power_line_frequency` + ''' + power_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerSource, 1150000) + '''Type: enums.PowerSource + + Specifies the power source to use. NI-DCPower switches the power source used by the device to the specified value. + Default Value: PowerSource.AUTOMATIC + is set to PowerSource.AUTOMATIC. However, if the session is in the Committed or Uncommitted state when you set this property, the power source selection only occurs after you call the initiate method. + + Note: Automatic selection is not persistent and occurs only at the time this property + ''' + power_source_in_use = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerSourceInUse, 1150001) + '''Type: enums.PowerSourceInUse + + Indicates whether the device is using the internal or auxiliary power source to generate power. + ''' + pulse_bias_current_level = _attributes.AttributeViReal64(1150088) + '''Type: float + + Specifies the pulse bias current level, in amps, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_level_range property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_level` + ''' + pulse_bias_current_limit = _attributes.AttributeViReal64(1150083) + '''Type: float + + Specifies the pulse bias current limit, in amps, that the output cannot exceed when generating the desired pulse bias voltage on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_limit_range property. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_limit` + ''' + pulse_bias_current_limit_high = _attributes.AttributeViReal64(1150195) + '''Type: float + + Specifies the maximum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *off* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. + You must also specify a pulse_bias_current_limit_low to complete the + asymmetric range. + **Valid Values:** [1% of pulse_current_limit_range, pulse_current_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_limit_high` + ''' + pulse_bias_current_limit_low = _attributes.AttributeViReal64(1150196) + '''Type: float + + Specifies the minimum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *off* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. + You must also specify a pulse_bias_current_limit_high to complete the + asymmetric range. + **Valid Values:** [-pulse_current_limit_range, -1% of pulse_current_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_current_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_current_limit_low` + ''' + pulse_bias_delay = _attributes.AttributeViReal64(1150092) + '''Type: float + + Determines when, in seconds, the device generates the Pulse Complete event after generating the off level of a pulse. + Valid Values: 0 to 167 seconds + Default Value: 16.67 milliseconds + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_delay` + ''' + pulse_bias_voltage_level = _attributes.AttributeViReal64(1150082) + '''Type: float + + Specifies the pulse bias voltage level, in volts, that the device attempts to generate on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_voltage_level_range property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_level` + ''' + pulse_bias_voltage_limit = _attributes.AttributeViReal64(1150089) + '''Type: float + + Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired current on the specified channel(s) during the off phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_voltage_limit_range property. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_limit` + ''' + pulse_bias_voltage_limit_high = _attributes.AttributeViReal64(1150191) + '''Type: float + + Specifies the maximum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *off* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. + You must also specify a pulse_bias_voltage_limit_low to complete the + asymmetric range. + **Valid Values:** [1% of pulse_voltage_limit_range, pulse_voltage_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_limit_high` + ''' + pulse_bias_voltage_limit_low = _attributes.AttributeViReal64(1150192) + '''Type: float + + Specifies the minimum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *off* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. + You must also specify a pulse_bias_voltage_limit_high to complete the + asymmetric range. + **Valid Values:** [-pulse_voltage_limit_range, -1% of pulse_voltage_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_bias_voltage_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_bias_voltage_limit_low` + ''' + pulse_complete_event_output_terminal = _attributes.AttributeViString(1150099) + '''Type: str + + Specifies the output terminal for exporting the Pulse Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + Default Value:The default value for PXI Express devices is 250 ns. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_complete_event_output_terminal` + ''' + pulse_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150100) + '''Type: enums.Polarity + + Specifies the behavior of the Pulse Complete event. + Default Value: Polarity.HIGH + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_complete_event_pulse_polarity` + ''' + pulse_complete_event_pulse_width = _attributes.AttributeViReal64(1150101) + '''Type: float + + Specifies the width of the Pulse Complete event, in seconds. + The minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for PXI Express devices is 1.6 microseconds. + Default Value: The default value for PXI Express devices is 250 ns. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_complete_event_pulse_width` + ''' + pulse_current_level = _attributes.AttributeViReal64(1150086) + '''Type: float + + Specifies the pulse current level, in amps, that the device attempts to generate on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_level_range property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_level` + ''' + pulse_current_level_range = _attributes.AttributeViReal64(1150090) + '''Type: float + + Specifies the pulse current level range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the pulse current level and pulse bias current level. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_level_range` + ''' + pulse_current_limit = _attributes.AttributeViReal64(1150081) + '''Type: float + + Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_limit_range property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit` + ''' + pulse_current_limit_high = _attributes.AttributeViReal64(1150193) + '''Type: float + + Specifies the maximum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *on* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. + You must also specify a pulse_current_limit_low to complete the asymmetric + range. + **Valid Values:** [1% of pulse_current_limit_range, pulse_current_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit_high` + ''' + pulse_current_limit_low = _attributes.AttributeViReal64(1150194) + '''Type: float + + Specifies the minimum current, in amps, that the output can produce when + generating the desired pulse voltage on the specified channel(s) during + the *on* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_VOLTAGE. + You must also specify a pulse_current_limit_high to complete the + asymmetric range. + **Valid Values:** [-pulse_current_limit_range, -1% of pulse_current_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit_low` + ''' + pulse_current_limit_range = _attributes.AttributeViReal64(1150085) + '''Type: float + + Specifies the pulse current limit range, in amps, for the specified channel(s). + The range defines the valid values to which you can set the pulse current limit and pulse bias current limit. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_current_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_current_limit_range` + ''' + pulse_off_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150094) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Determines the length, in seconds, of the off phase of a pulse. + Valid Values: 10 microseconds to 167 seconds + Default Value: 34 milliseconds + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_off_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_off_time` + ''' + pulse_on_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150093) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Determines the length, in seconds, of the on phase of a pulse. + Valid Values: 10 microseconds to 167 seconds + Default Value: 34 milliseconds + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_on_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_on_time` + ''' + pulse_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150095) + '''Type: enums.TriggerType + + Specifies the behavior of the Pulse trigger. + Default Value: TriggerType.NONE + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_trigger_type` + ''' + pulse_voltage_level = _attributes.AttributeViReal64(1150080) + '''Type: float + + Specifies the pulse current limit, in amps, that the output cannot exceed when generating the desired pulse voltage on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_current_limit_range property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_level` + ''' + pulse_voltage_level_range = _attributes.AttributeViReal64(1150084) + '''Type: float + + Specifies the pulse voltage level range, in volts, for the specified channel(s). + The range defines the valid values at which you can set the pulse voltage level and pulse bias voltage level. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_VOLTAGE. + For valid ranges, refer to the specifications for your instrument. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_level_range` + ''' + pulse_voltage_limit = _attributes.AttributeViReal64(1150087) + '''Type: float + + Specifies the pulse voltage limit, in volts, that the output cannot exceed when generating the desired pulse current on the specified channel(s) during the on phase of a pulse. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. + Valid Values: The valid values for this property are defined by the values you specify for the pulse_voltage_limit_range property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit` + ''' + pulse_voltage_limit_high = _attributes.AttributeViReal64(1150189) + '''Type: float + + Specifies the maximum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *on* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. + You must also specify a pulse_voltage_limit_low to complete the asymmetric + range. + **Valid Values:** [1% of pulse_voltage_limit_range, pulse_voltage_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit_high` + ''' + pulse_voltage_limit_low = _attributes.AttributeViReal64(1150190) + '''Type: float + + Specifies the minimum voltage, in volts, that the output can produce + when generating the desired pulse current on the specified channel(s) + during the *on* phase of a pulse. + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.PULSE_CURRENT. + You must also specify a pulse_voltage_limit_high to complete the + asymmetric range. + **Valid Values:** [-pulse_voltage_limit_range, -1% of pulse_voltage_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True or if the output_function property is set to a + pulsing method. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit_low` + ''' + pulse_voltage_limit_range = _attributes.AttributeViReal64(1150091) + '''Type: float + + Specifies the pulse voltage limit range, in volts, for the specified channel(s). + The range defines the valid values to which you can set the pulse voltage limit and pulse bias voltage limit. + This property is applicable only if the output_function property is set to OutputFunction.PULSE_CURRENT. + For valid ranges, refer to the specifications for your instrument. + + Note: The channel must be enabled for the specified current limit to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].pulse_voltage_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.pulse_voltage_limit_range` + ''' + query_instrument_status = _attributes.AttributeViBoolean(1050003) + '''Type: bool + + Specifies whether NI-DCPower queries the device status after each operation. + Querying the device status is useful for debugging. After you validate your program, you can set this property to False to disable status checking and maximize performance. + NI-DCPower ignores status checking for particular properties regardless of the setting of this property. + Use the __init__ method to override this value. + Default Value: True + ''' + ready_for_pulse_trigger_event_output_terminal = _attributes.AttributeViString(1150102) + '''Type: str + + Specifies the output terminal for exporting the Ready For Pulse Trigger event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ready_for_pulse_trigger_event_output_terminal` + ''' + ready_for_pulse_trigger_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150103) + '''Type: enums.Polarity + + Specifies the behavior of the Ready For Pulse Trigger event. + Default Value: Polarity.HIGH + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_polarity` + ''' + ready_for_pulse_trigger_event_pulse_width = _attributes.AttributeViReal64(1150104) + '''Type: float + + Specifies the width of the Ready For Pulse Trigger event, in seconds. + The minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + Default Value: The default value for PXI Express devices is 250 ns + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ready_for_pulse_trigger_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.ready_for_pulse_trigger_event_pulse_width` + ''' + requested_power_allocation = _attributes.AttributeViReal64(1150206) + '''Type: float + + Specifies the power, in watts, to request the device to source from each active channel. + This property defines the power to source from the device only if the power_allocation_mode property is set to PowerAllocationMode.MANUAL. + + The power you request with this property may be incompatible with the power a given source configuration requires or the power the device can provide: + If the requested power is less than the power required for the source configuration, the device does not exceed the requested power, and NI-DCPower returns an error. + If the requested power is greater than the maximum per-channel or overall sourcing power, the device does not exceed the allowed power, and NI-DCPower returns an error. + + Valid Values: [0, device per-channel maximum power] + Default Value: Refer to the Supported Properties by Device topic for the default value by device. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].requested_power_allocation` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.requested_power_allocation` + ''' + reset_average_before_measurement = _attributes.AttributeViBoolean(1150006) + '''Type: bool + + Specifies whether the measurement returned from any measurement call starts with a new measurement call (True) or returns a measurement that has already begun or completed(False). + When you set the samples_to_average property in the Running state, the channel measurements might move out of synchronization. While NI-DCPower automatically synchronizes measurements upon the initialization of a session, you can force a synchronization in the running state before you run the measure_multiple method. To force a synchronization in the running state, set this property to True, and then run the measure_multiple method, specifying all channels in the channel name parameter. You can set the reset_average_before_measurement property to False after the measure_multiple method completes. + Default Value: True + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].reset_average_before_measurement` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.reset_average_before_measurement` + ''' + samples_to_average = _attributes.AttributeViInt32(1150003) + '''Type: int + + Specifies the number of samples to average when you take a measurement. + Increasing the number of samples to average decreases measurement noise but increases the time required to take a measurement. Refer to the NI PXI-4110, NI PXI-4130, NI PXI-4132, or NI PXIe-4154 Averaging topic for optional property settings to improve immunity to certain noise types, or refer to the NI PXIe-4140/4141 DC Noise Rejection, NI PXIe-4142/4143 DC Noise Rejection, or NI PXIe-4144/4145 DC Noise Rejection topic for information about improving noise immunity for those devices. + Default Value: + NI PXI-4110 or NI PXI-4130—10 + NI PXI-4132—1 + NI PXIe-4112—1 + NI PXIe-4113—1 + NI PXIe-4140/4141—1 + NI PXIe-4142/4143—1 + NI PXIe-4144/4145—1 + NI PXIe-4154—500 + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].samples_to_average` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.samples_to_average` + ''' + self_calibration_persistence = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SelfCalibrationPersistence, 1150073) + '''Type: enums.SelfCalibrationPersistence + + Specifies whether the values calculated during self-calibration should be written to hardware to be used until the next self-calibration or only used until the reset_device method is called or the machine is powered down. + This property affects the behavior of the self_cal method. When set to SelfCalibrationPersistence.KEEP_IN_MEMORY, the values calculated by the self_cal method are used in the existing session, as well as in all further sessions until you call the reset_device method or restart the machine. When you set this property to SelfCalibrationPersistence.WRITE_TO_EEPROM, the values calculated by the self_cal method are written to hardware and used in the existing session and in all subsequent sessions until another call to the self_cal method is made. + about supported devices. + Default Value: SelfCalibrationPersistence.KEEP_IN_MEMORY + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].self_calibration_persistence` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.self_calibration_persistence` + ''' + sense = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Sense, 1150013) + '''Type: enums.Sense + + Selects either local or remote sensing of the output voltage for the specified channel(s). + Refer to the Local and Remote Sense topic in the NI DC Power Supplies and SMUs Help for more information about sensing voltage on supported channels and about devices that support local and/or remote sensing. + Default Value: The default value is Sense.LOCAL if the device supports local sense. Otherwise, the default and only supported value is Sense.REMOTE. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sense` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sense` + ''' + sequence_advance_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150026) + '''Type: enums.TriggerType + + Specifies the behavior of the Sequence Advance trigger. + Default Value: TriggerType.NONE + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_advance_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_advance_trigger_type` + ''' + sequence_engine_done_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150345) + '''Type: enums.EventOutputBehavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Engine Done event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Sequence Engine Done event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. + + Note: + This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_output_behavior` + ''' + sequence_engine_done_event_output_terminal = _attributes.AttributeViString(1150050) + '''Type: str + + Specifies the output terminal for exporting the Sequence Engine Done Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_output_terminal` + ''' + sequence_engine_done_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150048) + '''Type: enums.Polarity + + Specifies the behavior of the Sequence Engine Done event. + Default Value: Polarity.HIGH + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_pulse_polarity` + ''' + sequence_engine_done_event_pulse_width = _attributes.AttributeViReal64(1150049) + '''Type: float + + Specifies the width of the Sequence Engine Done event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + Valid Values: 1.5e-7 to 1.6e-6 seconds + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_pulse_width` + ''' + sequence_engine_done_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150346) + '''Type: enums.EventToggleInitialState + + Specifies the initial state of the Sequence Engine Done event when you set the sequence_engine_done_event_output_behavior property to EventOutputBehavior.TOGGLE. + For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is NIDCPOWER_VAL_LOW_STATE. + + Note: + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_engine_done_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_engine_done_event_toggle_initial_state` + ''' + sequence_iteration_complete_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150335) + '''Type: enums.EventOutputBehavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Sequence Iteration Complete event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Sequence Iteration Complete event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. + + Note: + This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_output_behavior` + ''' + sequence_iteration_complete_event_output_terminal = _attributes.AttributeViString(1150040) + '''Type: str + + Specifies the output terminal for exporting the Sequence Iteration Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_output_terminal` + ''' + sequence_iteration_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150038) + '''Type: enums.Polarity + + Specifies the behavior of the Sequence Iteration Complete event. + Default Value: Polarity.HIGH + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_polarity` + ''' + sequence_iteration_complete_event_pulse_width = _attributes.AttributeViReal64(1150039) + '''Type: float + + Specifies the width of the Sequence Iteration Complete event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds. + the NI DC Power Supplies and SMUs Help for information about supported devices. + Valid Values: 1.5e-7 to 1.6e-6 seconds + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_pulse_width` + ''' + sequence_iteration_complete_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150336) + '''Type: enums.EventToggleInitialState + + Specifies the initial state of the Sequence Iteration Complete event when you set the sequence_iteration_complete_event_output_behavior property to EventOutputBehavior.TOGGLE. + For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is NIDCPOWER_VAL_LOW_STATE. + + Note: + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_iteration_complete_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_iteration_complete_event_toggle_initial_state` + ''' + sequence_loop_count = _attributes.AttributeViInt32(1150025) + '''Type: int + + Specifies the number of times a sequence is run after initiation. + Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about the sequence loop count. + When the sequence_loop_count_is_finite property is set to False, the sequence_loop_count property is ignored. + Valid Range: 1 to 2147483647 + Default Value: 1 + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_loop_count` + ''' + sequence_loop_count_is_finite = _attributes.AttributeViBoolean(1150078) + '''Type: bool + + Specifies whether a sequence should repeat indefinitely. + Refer to the Sequence Source Mode topic in the NI DC Power Supplies and SMUs Help for more information about infinite sequencing. + When the sequence_loop_count_is_finite property is set to False, the sequence_loop_count property is ignored. + Default Value: True + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_loop_count_is_finite` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_loop_count_is_finite` + ''' + sequence_step_delta_time = _attributes.AttributeViReal64(1150198) + '''Type: float + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_step_delta_time` + ''' + sequence_step_delta_time_enabled = _attributes.AttributeViBoolean(1150199) + '''Type: bool + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].sequence_step_delta_time_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.sequence_step_delta_time_enabled` + ''' + serial_number = _attributes.AttributeViString(1150152) + '''Type: str + + Contains the serial number for the device you are currently using. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].serial_number` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.serial_number` + ''' + shutdown_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150275) + '''Type: enums.TriggerType + + Specifies the behavior of the Shutdown trigger. + Default Value: TriggerType.NONE + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].shutdown_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.shutdown_trigger_type` + ''' + simulate = _attributes.AttributeViBoolean(1050005) + '''Type: bool + + Specifies whether to simulate NI-DCPower I/O operations. True specifies that operation is simulated. + Default Value: False + ''' + source_complete_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventOutputBehavior, 1150331) + '''Type: enums.EventOutputBehavior + + Determines the event type's behavior when a corresponding trigger is received. If you set the Source Complete event output behavior to EventOutputBehavior.PULSE, a single pulse is transmitted. If you set the Source Complete event output behavior to EventOutputBehavior.TOGGLE, the output level toggles between low and high. The default value is EventOutputBehavior.PULSE. + + Note: + This property is not supported by all output terminals. + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_behavior` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_output_behavior` + ''' + source_complete_event_output_terminal = _attributes.AttributeViString(1150043) + '''Type: str + + Specifies the output terminal for exporting the Source Complete event. + Output terminals can be specified in one of two ways. If the device is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_output_terminal` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_output_terminal` + ''' + source_complete_event_pulse_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Polarity, 1150041) + '''Type: enums.Polarity + + Specifies the behavior of the Source Complete event. + Default Value: Polarity.HIGH + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_polarity` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_pulse_polarity` + ''' + source_complete_event_pulse_width = _attributes.AttributeViReal64(1150042) + '''Type: float + + Specifies the width of the Source Complete event, in seconds. + The minimum event pulse width value for PXI devices is 150 ns, and the minimum event pulse width value for PXI Express devices is 250 ns. + The maximum event pulse width value for all devices is 1.6 microseconds + Valid Values: 1.5e-7 to 1.6e-6 seconds + Default Value: The default value for PXI devices is 150 ns. The default value for PXI Express devices is 250 ns. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_pulse_width` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_pulse_width` + ''' + source_complete_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventToggleInitialState, 1150332) + '''Type: enums.EventToggleInitialState + + Specifies the initial state of the Source Complete event when you set the source_complete_event_output_behavior property to EventOutputBehavior.TOGGLE. + For a Single Point mode acquisition, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. + The output switches to high when the event occurs during the acquisition. If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to a high state at session commit. + The output switches to low when the event occurs during the acquisition. + For a Sequence mode operation, if you set the initial state to NIDCPOWER_VAL_LOW_STATE, the output is set to low at session commit. The output switches to high the first time an event occurs during the acquisition. + The second time an event occurs, the output switches to low. This pattern repeats for any subsequent event occurrences. + If you set the initial state to NIDCPOWER_VAL_HIGH_STATE, the output is set to high at session commit. + The output switches to low on the first time the event occurs during the acquisition. The second time the event occurs, the output switches to high. + This pattern repeats for any subsequent event occurrences. + The default value is NIDCPOWER_VAL_LOW_STATE. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices and terminals, search Supported Properties by Device on ni.com + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_complete_event_toggle_initial_state` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_complete_event_toggle_initial_state` + ''' + source_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150051) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Determines when, in seconds, the device generates the Source Complete event, potentially starting a measurement if the measure_when property is set to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE. + Refer to the Single Point Source Mode and Sequence Source Mode topics for more information. + Valid Values: The PXIe-4051 supports values from 0 to 39 seconds. + The PXIe-4147 supports values from 0 to 26.5 seconds. + The PXIe-4150/4151 supports values from 0 to 42 seconds. + The PXIe-4162/4163 and PXIe-4190 support values from 0 to 23 seconds. + All other supported instruments support values from 0 to 167 seconds. + Default Value: 0.01667 seconds + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_delay` + ''' + source_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SourceMode, 1150054) + '''Type: enums.SourceMode + + Specifies whether to run a single output point or a sequence. Refer to the Single Point Source Mode and Sequence Source Mode topics in the NI DC Power Supplies and SMUs Help for more information about source modes. + Default value: SourceMode.SINGLE_POINT + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_mode` + ''' + source_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150030) + '''Type: enums.TriggerType + + Specifies the behavior of the Source trigger. + Default Value: TriggerType.NONE + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].source_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.source_trigger_type` + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + Contains a brief description of the specific driver. + ''' + specific_driver_prefix = _attributes.AttributeViString(1050302) + '''Type: str + + Contains the prefix for NI-DCPower. The name of each user-callable method in NI-DCPower begins with this prefix. + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + Contains additional version information about NI-DCPower. + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + Contains the name of the vendor that supplies NI-DCPower. + ''' + start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150021) + '''Type: enums.TriggerType + + Specifies the behavior of the Start trigger. + Default Value: TriggerType.NONE + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].start_trigger_type` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.start_trigger_type` + ''' + supported_instrument_models = _attributes.AttributeViString(1050327) + '''Type: str + + Contains a comma-separated (,) list of supported NI-DCPower device models. + ''' + transient_response = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TransientResponse, 1150062) + '''Type: enums.TransientResponse + + Specifies the transient response. Refer to the Transient Response topic in the NI DC Power Supplies and SMUs Help for more information about transient response. + Default Value: TransientResponse.NORMAL + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].transient_response` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.transient_response` + ''' + voltage_compensation_frequency = _attributes.AttributeViReal64(1150068) + '''Type: float + + The frequency at which a pole-zero pair is added to the system when the channel is in Constant Voltage mode. + Default value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_compensation_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_compensation_frequency` + ''' + voltage_gain_bandwidth = _attributes.AttributeViReal64(1150067) + '''Type: float + + The frequency at which the unloaded loop gain extrapolates to 0 dB in the absence of additional poles and zeroes. This property takes effect when the channel is in Constant Voltage mode. + Default Value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_gain_bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_gain_bandwidth` + ''' + voltage_level = _attributes.AttributeViReal64(1250001) + '''Type: float + + Specifies the voltage level, in volts, that the device attempts to generate on the specified channel(s). + This property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. + + Valid Values: The valid values for this property are defined by the values you specify for the voltage_level_range property. + + Note: The channel must be enabled for the specified voltage level to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_level` + ''' + voltage_level_autorange = _attributes.AttributeViInt32(1150015) + '''Type: bool + + Specifies whether NI-DCPower automatically selects the voltage level range based on the desired voltage level for the specified channel(s). + If you set this property to AutoZero.ON, NI-DCPower ignores any changes you make to the voltage_level_range property. If you change the voltage_level_autorange property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the voltage_level_range property was set to (or the default value if the property was never set) and uses that value as the voltage level range. + Query the voltage_level_range property by using the _get_attribute_vi_int32 method for information about which range NI-DCPower automatically selects. + The voltage_level_autorange property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. + Default Value: AutoZero.OFF + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_level_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_level_autorange` + ''' + voltage_level_range = _attributes.AttributeViReal64(1150005) + '''Type: float + + Specifies the voltage level range, in volts, for the specified channel(s). + The range defines the valid values to which the voltage level can be set. Use the voltage_level_autorange property to enable automatic selection of the voltage level range. + The voltage_level_range property is applicable only if the output_function property is set to OutputFunction.DC_VOLTAGE. + + For valid ranges, refer to the specifications for your instrument. + + Note: The channel must be enabled for the specified voltage level range to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_level_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_level_range` + ''' + voltage_limit = _attributes.AttributeViReal64(1150010) + '''Type: float + + Specifies the voltage limit, in volts, that the output cannot exceed when generating the desired current level on the specified channels. + This property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT and the compliance_limit_symmetry property is set to ComplianceLimitSymmetry.SYMMETRIC. + + Valid Values: The valid values for this property are defined by the values to which the voltage_limit_range property is set. + + Note: The channel must be enabled for the specified current level to take effect. Refer to the output_enabled property for more information about enabling the channel. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit` + ''' + voltage_limit_autorange = _attributes.AttributeViInt32(1150018) + '''Type: bool + + Specifies whether NI-DCPower automatically selects the voltage limit range based on the desired voltage limit for the specified channel(s). + If this property is set to AutoZero.ON, NI-DCPower ignores any changes you make to the voltage_limit_range property. If you change the voltage_limit_autorange property from AutoZero.ON to AutoZero.OFF, NI-DCPower retains the last value the voltage_limit_range property was set to (or the default value if the property was never set) and uses that value as the voltage limit range. + Query the voltage_limit_range property by using the _get_attribute_vi_int32 method to find out which range NI-DCPower automatically selects. + The voltage_limit_autorange property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. + Default Value: AutoZero.OFF + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_autorange` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_autorange` + ''' + voltage_limit_high = _attributes.AttributeViReal64(1150185) + '''Type: float + + Specifies the maximum voltage, in volts, that the output can produce + when generating the desired current on the specified channel(s). + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_CURRENT. + You must also specify a voltage_limit_low to complete the asymmetric + range. + **Valid Values:** [1% of voltage_limit_range, voltage_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_high` + ''' + voltage_limit_low = _attributes.AttributeViReal64(1150186) + '''Type: float + + Specifies the minimum voltage, in volts, that the output can produce + when generating the desired current on the specified channel(s). + This property is applicable only if the compliance_limit_symmetry property is set to + ComplianceLimitSymmetry.ASYMMETRIC and the output_function property is set to OutputFunction.DC_CURRENT. + You must also specify a voltage_limit_high to complete the asymmetric + range. + **Valid Values:** [-voltage_limit_range, -1% of voltage_limit_range] + The range bounded by the limit high and limit low must include zero. + **Default Value:** Search ni.com for Supported Properties by Device for the default value by device. + **Related Topics:** + Ranges; + Changing Ranges; + Overranging + + Note: + The limit may be extended beyond the selected limit range if the + overranging_enabled property is + set to True. + + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_low` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_low` + ''' + voltage_limit_range = _attributes.AttributeViReal64(1150012) + '''Type: float + + Specifies the voltage limit range, in volts, for the specified channel(s). + The range defines the valid values to which the voltage limit can be set. Use the voltage_limit_autorange property to enable automatic selection of the voltage limit range. + The voltage_limit_range property is applicable only if the output_function property is set to OutputFunction.DC_CURRENT. + + For valid ranges, refer to the specifications for your instrument. + + Note: The channel must be enabled for the specified voltage limit range to take effect. Refer to the output_enabled property for more information about enabling the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_limit_range` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_limit_range` + ''' + voltage_pole_zero_ratio = _attributes.AttributeViReal64(1150069) + '''Type: float + + The ratio of the pole frequency to the zero frequency when the channel is in Constant Voltage mode. + Default value: Determined by the value of the TransientResponse.NORMAL setting of the transient_response property. + + Note: + This property is not supported on all devices. For more information about supported devices, search ni.com for Supported Properties by Device. + + Tip: + This property can be set/get on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voltage_pole_zero_ratio` + + To set/get on all channels, you can call the property directly on the :py:class:`nidcpower.Session`. + + Example: :py:attr:`my_session.voltage_pole_zero_ratio` + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nidcpower', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + def initiate(self): + '''initiate + + Starts generation or acquisition, causing the specified channel(s) to + leave the Uncommitted state or Committed state and enter the Running + state. To return to the Uncommitted state call the abort + method. Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for information about the + specific NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].initiate` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.initiate` + ''' + return _Acquisition(self) + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Transitions the specified channel(s) from the Running state to the + Uncommitted state. If a sequence is running, it is stopped. Any + configuration methods called after this method are not applied until + the initiate method is called. If power output is enabled + when you call the abort method, the channels remain + in their current state and continue providing power. + + Use the ConfigureOutputEnabled method to disable power + output on a per channel basis. Use the reset method to + disable output on all channels. + + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for information about the + specific NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].abort` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.abort` + ''' + self._interpreter.abort(self._repeated_capability) + + @ivi_synchronized + def self_cal(self): + r'''self_cal + + Performs a self-calibration upon the specified channel(s). + + This method disables the output, performs several internal + calculations, and updates calibration values. The updated calibration + values are written to the device hardware if the + self_calibration_persistence property is set to + SelfCalibrationPersistence.WRITE_TO_EEPROM. Refer to the + self_calibration_persistence property topic for more + information about the settings for this property. + + When calling self_cal with the PXIe-4162/4163, + specify all channels of your PXIe-4162/4163 with the channelName input. + You cannot self-calibrate a subset of PXIe-4162/4163 channels. + + Refer to the + `Self-Calibration `__ topic for + more information about this method. + + **Related Topics:** + + `Self-Calibration `__ + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].self_cal` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.self_cal` + ''' + self._interpreter.self_cal(self._repeated_capability) + + @ivi_synchronized + def clear_latched_output_cutoff_state(self, output_cutoff_reason): + r'''clear_latched_output_cutoff_state + + Clears the state of an output cutoff that was engaged. + To clear the state for all output cutoff reasons, use OutputCutoffReason.ALL. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_latched_output_cutoff_state` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.clear_latched_output_cutoff_state` + + Args: + output_cutoff_reason (enums.OutputCutoffReason): Specifies the reasons for which to clear the output cutoff state. + + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.ALL | Clears all output cutoff conditions | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_OUTPUT_HIGH | Clears cutoffs caused when the output exceeded the high cutoff limit for voltage output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_OUTPUT_LOW | Clears cutoffs caused when the output fell below the low cutoff limit for voltage output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_MEASURE_HIGH | Clears cutoffs caused when the measured voltage exceeded the high cutoff limit for voltage output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_MEASURE_LOW | Clears cutoffs caused when the measured voltage fell below the low cutoff limit for voltage output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_MEASURE_HIGH | Clears cutoffs caused when the measured current exceeded the high cutoff limit for current output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_MEASURE_LOW | Clears cutoffs caused when the measured current fell below the low cutoff limit for current output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_CHANGE_HIGH | Clears cutoffs caused when the voltage slew rate increased beyond the positive change cutoff for voltage output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_CHANGE_LOW | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for voltage output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_CHANGE_HIGH | Clears cutoffs caused when the current slew rate increased beyond the positive change cutoff for current output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_CHANGE_LOW | Clears cutoffs caused when the voltage slew rate decreased beyond the negative change cutoff for current output | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_SATURATED | Clears cutoffs caused when the measured current saturates the current range | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + + ''' + if type(output_cutoff_reason) is not enums.OutputCutoffReason: + raise TypeError('Parameter output_cutoff_reason must be of type ' + str(enums.OutputCutoffReason)) + self._interpreter.clear_latched_output_cutoff_state(self._repeated_capability, output_cutoff_reason) + + @ivi_synchronized + def commit(self): + r'''commit + + Applies previously configured settings to the specified channel(s). Calling this + method moves the NI-DCPower session from the Uncommitted state into + the Committed state. After calling this method, modifying any + property reverts the NI-DCPower session to the Uncommitted state. Use + the initiate method to transition to the Running state. + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for details about the specific + NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].commit` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.commit` + ''' + self._interpreter.commit(self._repeated_capability) + + @ivi_synchronized + def configure_aperture_time(self, aperture_time, units=enums.ApertureTimeUnits.SECONDS): + r'''configure_aperture_time + + Configures the aperture time on the specified channel(s). + + The supported values depend on the **units**. Refer to the *Aperture + Time* topic for your device in the *NI DC Power Supplies and SMUs Help* + for more information. In general, devices support discrete + **apertureTime** values, and if you configure **apertureTime** to some + unsupported value, NI-DCPower coerces it up to the next supported value. + + Refer to the *Measurement Configuration and Timing* or *DC Noise + Rejection* topic for your device in the *NI DC Power Supplies and SMUs + Help* for more information about how to configure your measurements. + + **Related Topics:** + + `Aperture Time `__ + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_aperture_time` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.configure_aperture_time` + + Args: + aperture_time (float): Specifies the aperture time. Refer to the *Aperture Time* topic for your + device in the *NI DC Power Supplies and SMUs Help* for more information. + + units (enums.ApertureTimeUnits): Specifies the units for **apertureTime**. + **Defined Values**: + + +-------------------------------------+------------------------------+ + | ApertureTimeUnits.SECONDS | Specifies seconds. | + +-------------------------------------+------------------------------+ + | ApertureTimeUnits.POWER_LINE_CYCLES | Specifies Power Line Cycles. | + +-------------------------------------+------------------------------+ + + ''' + if type(units) is not enums.ApertureTimeUnits: + raise TypeError('Parameter units must be of type ' + str(enums.ApertureTimeUnits)) + self._interpreter.configure_aperture_time(self._repeated_capability, aperture_time, units) + + @ivi_synchronized + def configure_lcr_compensation(self, compensation_data): + r'''configure_lcr_compensation + + Applies previously generated open, short, load, as well as open and short custom cable compensation data to LCR measurements. + + This method applies open, short and load compensation data when you have set the lcr_open_short_load_compensation_data_source property to LCROpenShortLoadCompensationDataSource.AS_CONFIGURED, and it also applies custom cable compensation data when you have set the cable_length property to CableLength.CUSTOM_AS_CONFIGURED. + + Call this method after you have obtained LCR compensation data. + + If the lcr_short_custom_cable_compensation_enabled property is set to True, you must generate data with both perform_lcr_open_custom_cable_compensation and perform_lcr_short_custom_cable_compensation; if False, you must only use perform_lcr_open_custom_cable_compensation, and NI-DCPower uses default short data. + + Call get_lcr_compensation_data and pass the **compensation data** to this method. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_lcr_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.configure_lcr_compensation` + + Args: + compensation_data (bytes): The open, short and load compensation data to apply. + + ''' + compensation_data = _converters.convert_to_bytes(compensation_data) + self._interpreter.configure_lcr_compensation(self._repeated_capability, compensation_data) + + @ivi_synchronized + def configure_lcr_custom_cable_compensation(self, custom_cable_compensation_data): + r'''configure_lcr_custom_cable_compensation + + This method is deprecated. Use configure_lcr_compensation + instead. + + Applies previously generated open and short custom cable compensation data to LCR measurements. + + This method applies custom cable compensation data when you have set cable_length property to CableLength.CUSTOM_AS_CONFIGURED. + + Call this method after you have obtained custom cable compensation data. + + If lcr_short_custom_cable_compensation_enabled property is set to True, you must generate data with both perform_lcr_open_custom_cable_compensation and perform_lcr_short_custom_cable_compensation; + if False, you must only use perform_lcr_open_custom_cable_compensation, and NI-DCPower uses default short data. + + Call get_lcr_custom_cable_compensation_data and pass the **custom cable compensation data** to this method. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_lcr_custom_cable_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.configure_lcr_custom_cable_compensation` + + Args: + custom_cable_compensation_data (bytes): The open and short custom cable compensation data to apply. + + ''' + custom_cable_compensation_data = _converters.convert_to_bytes(custom_cable_compensation_data) + self._interpreter.configure_lcr_custom_cable_compensation(self._repeated_capability, custom_cable_compensation_data) + + @ivi_synchronized + def create_advanced_sequence_commit_step(self, set_as_active_step=True): + r'''create_advanced_sequence_commit_step + + Creates a Commit step in the Active advanced sequence. A Commit step + configures channels to a user-defined known state before starting the advanced sequence. + When a Commit step exists in the Active advanced sequence, you cannot + set the output method to Pulse Voltage or Pulse Current in either + the Commit step (-1) or step 0. When you create an advanced sequence + step, each property you passed to the create_advanced_sequence + method is reset to its default value for that step unless otherwise specified. + + **Support for this Method** + + You must set the source mode to Sequence to use this method. + + Using the set_sequence method with Advanced Sequence + methods is unsupported. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + create_advanced_sequence + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_commit_step` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.create_advanced_sequence_commit_step` + + Args: + set_as_active_step (bool): Specifies whether the step created with this method is active in the Active advanced sequence. + + ''' + self._interpreter.create_advanced_sequence_commit_step(self._repeated_capability, set_as_active_step) + + @ivi_synchronized + def create_advanced_sequence_step(self, set_as_active_step=True): + r'''create_advanced_sequence_step + + Creates a new advanced sequence step in the advanced sequence specified + by the Active advanced sequence. When you create an advanced sequence + step, each property you passed to the create_advanced_sequence + method is reset to its default value for that step unless otherwise + specified. + + **Support for this Method** + + You must set the source mode to Sequence to use this method. + + Using the set_sequence method with Advanced Sequence + methods is unsupported. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + create_advanced_sequence + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence_step` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.create_advanced_sequence_step` + + Args: + set_as_active_step (bool): Specifies whether the step created with this method is active in the Active advanced sequence. + + ''' + self._interpreter.create_advanced_sequence_step(self._repeated_capability, set_as_active_step) + + @ivi_synchronized + def _create_advanced_sequence_with_channels(self, sequence_name, attribute_ids, set_as_active_sequence): + r'''_create_advanced_sequence_with_channels + + Creates an empty advanced sequence. Call the + create_advanced_sequence_step method to add steps to the + active advanced sequence. + + You can create multiple advanced sequences for a channel. + + **Support for this method** + + You must set the source mode to Sequence to use this method. + + Using the set_sequence method with Advanced Sequence + methods is unsupported. + + Use this method in the Uncommitted or Committed programming states. + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for more information about + NI-DCPower programming states. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + create_advanced_sequence_step + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._create_advanced_sequence_with_channels` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._create_advanced_sequence_with_channels` + + Args: + sequence_name (str): Specifies the name of the sequence to create. + + attribute_ids (list of int): Specifies the properties you reconfigure per step in the advanced + sequence. For more information about which properties can be configured + in an advanced sequence for each NI-DCPower device that supports advanced + sequencing, search ni.com for Supported Properties by Device. + + set_as_active_sequence (bool): Specifies that this current sequence is active. + + ''' + self._interpreter.create_advanced_sequence_with_channels(self._repeated_capability, sequence_name, attribute_ids, set_as_active_sequence) + + @ivi_synchronized + def delete_advanced_sequence(self, sequence_name): + r'''delete_advanced_sequence + + Deletes a previously created advanced sequence and all the advanced + sequence steps in the advanced sequence. + + **Support for this Method** + + You must set the source mode to Sequence to use this method. + + Using the set_sequence method with Advanced Sequence + methods is unsupported. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].delete_advanced_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.delete_advanced_sequence` + + Args: + sequence_name (str): specifies the name of the sequence to delete. + + ''' + self._interpreter.delete_advanced_sequence(self._repeated_capability, sequence_name) + + @ivi_synchronized + def create_advanced_sequence(self, sequence_name, property_names, set_as_active_sequence=True): + '''create_advanced_sequence + + Creates an empty advanced sequence. Call the + create_advanced_sequence_step method to add steps to the + active advanced sequence. + + You can create multiple advanced sequences in a session. + + **Support for this method** + + You must set the source mode to Sequence to use this method. + + Using the set_sequence method with Advanced Sequence + methods is unsupported. + + Use this method in the Uncommitted or Committed programming states. + Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for more information about + NI-DCPower programming states. + + **Related Topics**: + + `Advanced Sequence + Mode `__ + + `Programming + States `__ + + create_advanced_sequence_step + + Note: + This method is not supported on all devices. Refer to `Supported + Methods by + Device `__ + for more information about supported devices. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_advanced_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.create_advanced_sequence` + + Args: + sequence_name (str): Specifies the name of the sequence to create. + + property_names (list of str): Specifies the names of the properties you reconfigure per step in the advanced sequence. For more information about properties that can be configured in an advanced sequence for each NI-DCPower device that supports advanced sequencing, search ni.com for Supported Properties by Device. + + set_as_active_sequence (bool): Specifies that this current sequence is active. + + ''' + # The way the NI-DCPower C API is designed, we need to know all the attribute ID's upfront in order to call + # `niDCPower_CreateAdvancedSequence`. In order to find the attribute ID of each property, we look at the + # member Attribute objects of Session. We use a set since we don't have to worry about is it already there. + attribute_ids_used = set() + for prop in property_names: + if prop not in Session.__base__.__dict__: + raise KeyError('{} is not an property on the nidcpower.Session'.format(prop)) + if not isinstance(Session.__base__.__dict__[prop], _attributes.Attribute): + raise TypeError('{} is not a valid property: {}'.format(prop, type(Session.__base__.__dict__[prop]))) + attribute_ids_used.add(Session.__base__.__dict__[prop]._attribute_id) + + self._create_advanced_sequence_with_channels(sequence_name, list(attribute_ids_used), set_as_active_sequence) + + @ivi_synchronized + def fetch_multiple(self, count, timeout=hightime.timedelta(seconds=1.0)): + '''fetch_multiple + + Returns a list of named tuples (Measurement) that were + previously taken and are stored in the NI-DCPower buffer. This method + should not be used when the measure_when property is + set to MeasureWhen.ON_DEMAND. You must first call + initiate before calling this method. + + Fields in Measurement: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) + - **channel** (str) + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_multiple` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.fetch_multiple` + + Args: + count (int): Specifies the number of measurements to fetch. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete. If the method does not complete within this time interval, NI-DCPower returns an error. + Default value: 1.0 second + + Note: When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. + + + Returns: + measurements (list of Measurement): List of named tuples with fields: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) + - **channel** (str) + + ''' + import collections + Measurement = collections.namedtuple('Measurement', ['voltage', 'current', 'in_compliance', 'channel']) + + voltage_measurements, current_measurements, in_compliances = self._fetch_multiple(timeout, count) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + assert len(channel_names) == 1, "fetch_multiple only supports one channel at a time" + return [ + Measurement( + voltage=voltage, + current=current, + in_compliance=in_compliance, + channel=channel_names[0] + ) for voltage, current, in_compliance in zip( + voltage_measurements, current_measurements, in_compliances + ) + ] + + @ivi_synchronized + def fetch_multiple_lcr(self, count, timeout=hightime.timedelta(seconds=1.0)): + '''fetch_multiple_lcr + + Returns a list of previously measured LCRMeasurement instances on the specified channel that have been taken and stored in a buffer. + + To use this method: + + - Set measure_when property to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER + - Put the channel in the Running state (call initiate) + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_multiple_lcr` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.fetch_multiple_lcr` + + Args: + count (int): Specifies the number of measurements to fetch. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in seconds. + If the method does not complete within this time interval, NI-DCPower returns an error. + Default value: 1.0 second + + Note: + When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. + + + Returns: + measurements (list of LCRMeasurement): A list of LCRMeasurement instances. + + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | channel | | The channel name associated with this LCR measurement. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | vdc | float | The measured DC voltage, in volts. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | idc | float | The measured DC current, in amps. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_voltage | complex | The measured AC voltage, in volts RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_current | complex | The measured AC current, in amps RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z | complex | The complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y | complex | The complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + lcr_measurements = self._fetch_multiple_lcr(count, timeout) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + assert len(channel_names) == 1, "fetch_multiple_lcr only supports one channel at a time" + for lcr_measurement_object, in zip(lcr_measurements): + lcr_measurement_object.channel = channel_names[0] + return lcr_measurements + + @ivi_synchronized + def measure_multiple(self): + '''measure_multiple + + Returns a list of named tuples (Measurement) containing the measured voltage + and current values on the specified channel(s). Each call to this method + blocks other method calls until the measurements are returned from the device. + The order of the measurements returned in the array corresponds to the order + on the specified channel(s). + + Fields in Measurement: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) - Always None + - **channel** (str) + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].measure_multiple` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.measure_multiple` + + Returns: + measurements (list of Measurement): List of named tuples with fields: + + - **voltage** (float) + - **current** (float) + - **in_compliance** (bool) - Always None + - **channel** (str) + + ''' + import collections + Measurement = collections.namedtuple('Measurement', ['voltage', 'current', 'in_compliance', 'channel']) + + voltage_measurements, current_measurements = self._measure_multiple() + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + assert ( + len(channel_names) == len(voltage_measurements) and len(channel_names) == len(current_measurements) + ), "measure_multiple should return as many voltage and current measurements as the number of channels specified through the channel string" + return [ + Measurement( + voltage=voltage, + current=current, + in_compliance=None, + channel=channel_name + ) for voltage, current, channel_name in zip( + voltage_measurements, current_measurements, channel_names + ) + ] + + @ivi_synchronized + def measure_multiple_lcr(self): + '''measure_multiple_lcr + + Measures and returns a list of LCRMeasurement instances on the specified channel(s). + + To use this method: + + - Set instrument_mode property to InstrumentMode.LCR + - Set measure_when property to MeasureWhen.ON_DEMAND + - Put the channel(s) in the Running state (call initiate) + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].measure_multiple_lcr` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.measure_multiple_lcr` + + Returns: + measurements (list of LCRMeasurement): A list of LCRMeasurement instances. + + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | channel | | The channel name associated with this LCR measurement. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | vdc | float | The measured DC voltage, in volts. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | idc | float | The measured DC current, in amps. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_voltage | complex | The measured AC voltage, in volts RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_current | complex | The measured AC current, in amps RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z | complex | The complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y | complex | The complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + lcr_measurements = self._measure_multiple_lcr() + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + assert len(channel_names) == len(lcr_measurements), ( + "measure_multiple_lcr should return as many LCR measurements as the number of channels specified through the channel string" + ) + for lcr_measurement_object, channel_name in zip(lcr_measurements, channel_names): + lcr_measurement_object.channel = channel_name + return lcr_measurements + + @ivi_synchronized + def _fetch_multiple(self, timeout, count): + r'''_fetch_multiple + + Returns an array of voltage measurements, an array of current + measurements, and an array of compliance measurements that were + previously taken and are stored in the NI-DCPower buffer. This method + should not be used when the measure_when property is + set to MeasureWhen.ON_DEMAND. You must first call + initiate before calling this method. + + Refer to the `Acquiring + Measurements `__ + and `Compliance `__ topics in + the *NI DC Power Supplies and SMUs Help* for more information about + configuring this method. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_multiple` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._fetch_multiple` + + Args: + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in + seconds. If the method does not complete within this time interval, + NI-DCPower returns an error. + + Note: + When setting the timeout interval, ensure you take into account any + triggers so that the timeout interval is long enough for your + application. + + count (int): Specifies the number of measurements to fetch. + + + Returns: + voltage_measurements (array.array("d")): Returns an array of voltage measurements. Ensure that sufficient space + has been allocated for the returned array. + + current_measurements (array.array("d")): Returns an array of current measurements. Ensure that sufficient space + has been allocated for the returned array. + + in_compliance (list of bool): Returns an array of Boolean values indicating whether the output was in + compliance at the time the measurement was taken. Ensure that sufficient + space has been allocated for the returned array. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + voltage_measurements, current_measurements, in_compliance = self._interpreter.fetch_multiple(self._repeated_capability, timeout, count) + return voltage_measurements, current_measurements, in_compliance + + @ivi_synchronized + def _fetch_multiple_lcr(self, count, timeout=hightime.timedelta(seconds=1.0)): + r'''_fetch_multiple_lcr + + Returns a list of previously measured LCRMeasurement instances on the specified channel that have been taken and stored in a buffer. + + To use this method: + + - Set measure_when property to MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE or MeasureWhen.ON_MEASURE_TRIGGER + - Put the channel in the Running state (call initiate) + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_multiple_lcr` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._fetch_multiple_lcr` + + Args: + count (int): Specifies the number of measurements to fetch. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in seconds. + If the method does not complete within this time interval, NI-DCPower returns an error. + + Note: + When setting the timeout interval, ensure you take into account any triggers so that the timeout interval is long enough for your application. + + + Returns: + measurements (list of LCRMeasurement): A list of LCRMeasurement instances. + + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | vdc | float | The measured DC voltage, in volts. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | idc | float | The measured DC current, in amps. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_voltage | complex | The measured AC voltage, in volts RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_current | complex | The measured AC current, in amps RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z | complex | The complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y | complex | The complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + measurements = self._interpreter.fetch_multiple_lcr(self._repeated_capability, timeout, count) + return measurements + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + | Queries the value of a ViBoolean property. + | You can use this method to get the values of device-specific + properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Help text is shown for each property. + Select a property by double-clicking on it or by selecting it and + then pressing **Enter**. + - A ring control at the top of the dialog box allows you to see all IVI + properties or only the properties of type ViBoolean. If you choose to + see all IVI properties, the data types appear to the right of the + property names in the list box. Properties with data types other + than ViBoolean are dim. If you select a property data type that is + dim, LabWindows/CVI transfers you to the method panel for the + corresponding method that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + + Returns: + attribute_value (bool): Returns the current value of the property. Passes the address of a + ViBoolean variable. + If the property currently showing in the property ring control has + constants as valid values, you can view a list of the constants by + pressing **Enter** on this control. Select a value by double-clicking on + it or by selecting it and then pressing **Enter**. + + ''' + attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + | Queries the value of a ViInt32 property. + | You can use this method to get the values of device-specific + properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Help text is shown for each property. + Select a property by double-clicking on it or by selecting it and + then pressing **Enter**. + - A ring control at the top of the dialog box allows you to see all IVI + properties or only the properties of type ViInt32. If you choose to + see all IVI properties, the data types appear to the right of the + property names in the list box. Properties with data types other + than ViInt32 are dim. If you select a property data type that is + dim, LabWindows/CVI transfers you to the method panel for the + corresponding method that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + + Returns: + attribute_value (int): Returns the current value of the property. Passes the address of a + ViInt32 variable. + If the property currently showing in the property ring control has + constants as valid values, you can view a list of the constants by + pressing **Enter** on this control. Select a value by double-clicking on + it or by selecting it and then pressing **Enter**. + + ''' + attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int64(self, attribute_id): + r'''_get_attribute_vi_int64 + + | Queries the value of a ViInt64 property. + | You can use this method to get the values of device-specific + properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int64` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Help text is shown for each property. + Select a property by double-clicking on it or by selecting it and + then pressing **Enter**. + - A ring control at the top of the dialog box allows you to see all IVI + properties or only the properties of type ViReal64. If you choose to + see all IVI properties, the data types appear to the right of the + property names in the list box. Properties with data types other + than ViReal64 are dim. If you select a property data type that is + dim, LabWindows/CVI transfers you to the method panel for the + corresponding method that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + + Returns: + attribute_value (int): Returns the current value of the property. Passes the address of a + ViReal64 variable. + If the property currently showing in the property ring control has + constants as valid values, you can view a list of the constants by + pressing **Enter** on this control. Select a value by double-clicking on + it or by selecting it and then pressing **Enter**. + + ''' + attribute_value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + | Queries the value of a ViReal64 property. + | You can use this method to get the values of device-specific + properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Help text is shown for each property. + Select a property by double-clicking on it or by selecting it and + then pressing **Enter**. + - A ring control at the top of the dialog box allows you to see all IVI + properties or only the properties of type ViReal64. If you choose to + see all IVI properties, the data types appear to the right of the + property names in the list box. Properties with data types other + than ViReal64 are dim. If you select a property data type that is + dim, LabWindows/CVI transfers you to the method panel for the + corresponding method that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + + Returns: + attribute_value (float): Returns the current value of the property. Passes the address of a + ViReal64 variable. + If the property currently showing in the property ring control has + constants as valid values, you can view a list of the constants by + pressing **Enter** on this control. Select a value by double-clicking on + it or by selecting it and then pressing **Enter**. + + ''' + attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + | Queries the value of a ViString property. + | You can use this method to get the values of device-specific + properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press or the + spacebar to display a dialog box containing hierarchical list of the + available properties. Help text is shown for each property. Select + a property by double-clicking on it or by selecting it and then + pressing . + - A ring control at the top of the dialog box allows you to see all IVI + properties or only the properties of type ViString. If you choose to + see all IVI properties, the data types appear to the right of the + property names in the list box. Properties with data types other + than ViString are dimmed. If you select a property data type that + is dimmed, LabWindows/CVI transfers you to the method panel for the + corresponding method that is consistent with the data type. + - If you want to enter a variable name, press to change this ring + control to a manual input control. If the property in this ring + control has named constants as valid values, you can view the + constants by moving to the value control and pressing . + + + Returns: + attribute_value (str): The buffer in which the method returns the current value of the + property. The buffer must be of type ViChar and have at least as many + bytes as indicated in **bufSize**. + If the current value of the property, including the terminating NUL + byte, contains more bytes that you indicate in this property, the + method copies (buffer size -1) bytes into the buffer, places an ASCII + NUL byte at the end of the buffer, and returns the buffer size you must + pass to get the entire value. For example, if the value is 123456 and + the buffer size is 4, the method places 123 into the buffer and + returns 7. + If you specify 0 for **bufSize**, you can pass VI_NULL for this + property. + If the property currently showing in the property ring control has + constants as valid values, you can view a list of the constants by + pressing on this control. Select a value by double-clicking on it or by + selecting it and then pressing . + + ''' + attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_channel_names(self, indices): + r'''_get_channel_names + + Returns a list of channel names for the given channel indices. + + Args: + indices (basic sequence types, str, or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + Returns: + names (list of str): The channel name(s) at the specified indices. + + ''' + indices = _converters.convert_repeated_capabilities_without_prefix(indices) + names = self._interpreter.get_channel_names(indices) + return _converters.convert_comma_separated_string_to_list(names) + + @ivi_synchronized + def get_lcr_compensation_data(self): + r'''get_lcr_compensation_data + + Collects previously generated open, short, load, and custom cable compensation data so you can then apply it to LCR measurements with configure_lcr_compensation. + + Call this method after you have obtained the compensation data of all types (open, short, load, open custom cable compensation, and short custom cable compensation) you want to apply to your measurements. Pass the **compensation data** to configure_lcr_compensation + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_data` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.get_lcr_compensation_data` + + Returns: + compensation_data (bytes): The open, short, load, and custom cable compensation data to retrieve. + + ''' + compensation_data = self._interpreter.get_lcr_compensation_data(self._repeated_capability) + return _converters.convert_to_bytes(compensation_data) + + @ivi_synchronized + def _get_lcr_compensation_last_date_and_time(self, compensation_type): + r'''_get_lcr_compensation_last_date_and_time + + Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. + The time returned is 24-hour (military) local time; for example, if the selected type of compensation data was generated at 2:30 PM, this method returns 14 for **hours** and 30 for **minutes**. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_lcr_compensation_last_date_and_time` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._get_lcr_compensation_last_date_and_time` + + Args: + compensation_type (enums.LCRCompensationType): Specifies the type of compensation for LCR measurements. + + + Returns: + year (int): Returns the year of the relevant operation. + + month (int): Returns the month of the relevant operation. + + day (int): Returns the day of the relevant operation. + + hour (int): Returns the hour (in 24-hour time) of the relevant operation. + + minute (int): Returns the minute of the relevant operation. + + ''' + if type(compensation_type) is not enums.LCRCompensationType: + raise TypeError('Parameter compensation_type must be of type ' + str(enums.LCRCompensationType)) + year, month, day, hour, minute = self._interpreter.get_lcr_compensation_last_date_and_time(self._repeated_capability, compensation_type) + return year, month, day, hour, minute + + @ivi_synchronized + def get_lcr_custom_cable_compensation_data(self): + r'''get_lcr_custom_cable_compensation_data + + This method is deprecated. Use get_lcr_compensation_data + instead. + + Collects previously generated open and short custom cable compensation data so you can then apply it to LCR measurements with configure_lcr_custom_cable_compensation. + + Call this method after you have obtained open and short custom cable compensation data. Pass the **custom cable compensation data** to configure_lcr_custom_cable_compensation + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_lcr_custom_cable_compensation_data` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.get_lcr_custom_cable_compensation_data` + + Returns: + custom_cable_compensation_data (bytes): The open and short custom cable compensation data to retrieve. + + ''' + custom_cable_compensation_data = self._interpreter.get_lcr_custom_cable_compensation_data(self._repeated_capability) + return _converters.convert_to_bytes(custom_cable_compensation_data) + + @ivi_synchronized + def get_lcr_compensation_last_date_and_time(self, compensation_type): + '''get_lcr_compensation_last_date_and_time + + Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_lcr_compensation_last_date_and_time` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.get_lcr_compensation_last_date_and_time` + + Args: + compensation_type (enums.LCRCompensationType): Specifies the type of compensation for LCR measurements. + + + Returns: + last_comp_datetime (hightime.datetime): Returns the date and time the specified type of compensation data for LCR measurements was most recently generated. + + ''' + year, month, day, hour, minute = self._get_lcr_compensation_last_date_and_time(compensation_type) + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def _initiate_with_channels(self): + r'''_initiate_with_channels + + Starts generation or acquisition, causing the specified channel(s) to + leave the Uncommitted state or Committed state and enter the Running + state. To return to the Uncommitted state call the abort + method. Refer to the `Programming + States `__ topic in + the *NI DC Power Supplies and SMUs Help* for information about the + specific NI-DCPower software states. + + **Related Topics:** + + `Programming + States `__ + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._initiate_with_channels` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._initiate_with_channels` + ''' + self._interpreter.initiate_with_channels(self._repeated_capability) + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-DCPower locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nidcpower.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def measure(self, measurement_type): + r'''measure + + Returns the measured value of either the voltage or current on the + specified channel. Each call to this method blocks other + method calls until the hardware returns the **measurement**. To + measure multiple channels, use the measure_multiple + method. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].measure` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.measure` + + Args: + measurement_type (enums.MeasurementTypes): Specifies whether a voltage or current value is measured. + **Defined Values**: + + +--------------------------+------------------------------+ + | MeasurementTypes.VOLTAGE | The device measures voltage. | + +--------------------------+------------------------------+ + | MeasurementTypes.CURRENT | The device measures current. | + +--------------------------+------------------------------+ + + + Returns: + measurement (float): Returns the value of the measurement, either in volts for voltage or + amps for current. + + ''' + if type(measurement_type) is not enums.MeasurementTypes: + raise TypeError('Parameter measurement_type must be of type ' + str(enums.MeasurementTypes)) + measurement = self._interpreter.measure(self._repeated_capability, measurement_type) + return measurement + + @ivi_synchronized + def _measure_multiple(self): + r'''_measure_multiple + + Returns arrays of the measured voltage and current values on the + specified channel(s). Each call to this method blocks other + method calls until the measurements are returned from the device. The + order of the measurements returned in the array corresponds to the order + on the specified channel(s). + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._measure_multiple` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._measure_multiple` + + Returns: + voltage_measurements (array.array("d")): Returns an array of voltage measurements. The measurements in the array + are returned in the same order as the channels specified in + **channelName**. Ensure that sufficient space has been allocated for the + returned array. + + current_measurements (array.array("d")): Returns an array of current measurements. The measurements in the array + are returned in the same order as the channels specified in + **channelName**. Ensure that sufficient space has been allocated for the + returned array. + + ''' + voltage_measurements, current_measurements = self._interpreter.measure_multiple(self._repeated_capability) + return voltage_measurements, current_measurements + + @ivi_synchronized + def _measure_multiple_lcr(self): + r'''_measure_multiple_lcr + + Measures and returns a list of LCRMeasurement instances on the specified channel(s). + + To use this method: + + - Set instrument_mode property to InstrumentMode.LCR + - Set measure_when property to MeasureWhen.ON_DEMAND + - Put the channel(s) in the Running state (call initiate) + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._measure_multiple_lcr` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._measure_multiple_lcr` + + Returns: + measurements (list of LCRMeasurement): A list of LCRMeasurement instances. + + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | vdc | float | The measured DC voltage, in volts. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | idc | float | The measured DC current, in amps. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | stimulus_frequency | float | The frequency of the LCR test signal, in Hz. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_voltage | complex | The measured AC voltage, in volts RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_current | complex | The measured AC current, in amps RMS. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z | complex | The complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | z_magnitude_and_phase | tuple of float | The magnitude, in ohms, and phase angle, in degrees, of the complex impedance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y | complex | The complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | y_magnitude_and_phase | tuple of float | The magnitude, in siemens, and phase angle, in degrees, of the complex admittance. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | series_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a series circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | parallel_lcr | LCR | The inductance, in henrys, the capacitance, in farads, and the resistance, in ohms, as measured using a parallel circuit model. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | d | float | The dissipation factor of the circuit. The dimensionless dissipation factor is directly proportional to how quickly an oscillating system loses energy. D is the reciprocal of Q, the quality factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | q | float | The quality factor of the circuit. The dimensionless quality factor is inversely proportional to the degree of damping in a system. Q is the reciprocal of D, the dissipation factor. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | measurement_mode | enums.InstrumentMode | The measurement mode: **SMU** - The channel(s) are operating as a power supply/SMU. **LCR** - The channel(s) are operating as an LCR meter. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | dc_in_compliance | bool | Indicates whether the output was in DC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ac_in_compliance | bool | Indicates whether the output was in AC compliance at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | unbalanced | bool | Indicates whether the output was unbalanced at the time the measurement was taken. | + +-----------------------+----------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + measurements = self._interpreter.measure_multiple_lcr(self._repeated_capability) + return measurements + + @ivi_synchronized + def _parse_channel_count(self): + r'''_parse_channel_count + + Returns the number of channels. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._parse_channel_count` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._parse_channel_count` + + Returns: + number_of_channels (int): + + ''' + number_of_channels = self._interpreter.parse_channel_count(self._repeated_capability) + return number_of_channels + + @ivi_synchronized + def perform_lcr_load_compensation(self, compensation_spots): + r'''perform_lcr_load_compensation + + Generates load compensation data for LCR measurements for the test spots you specify. + + You must physically configure your LCR circuit with an appropriate reference load to use this method to generate valid load compensation data. + + When you call this method: + + - The load compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + To apply the load compensation data you generate with this method to your LCR measurements, set the lcr_load_compensation_enabled property to True. + + Load compensation data are generated only for those specific frequencies you define with this method; load compensation is not interpolated from the specific frequencies you define and applied to other frequencies. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_load_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_load_compensation` + + Args: + compensation_spots (list of LCRLoadCompensationSpot): Defines the frequencies and DUT specifications to use for LCR load compensation. + + You can specify <=1000 spot frequencies. + + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | frequency | The spot frequency, in Hz. | + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | reference_value_type | A known specification value of your DUT to use as the basis for load compensation. | + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | reference_value | A value that describes the **reference_value_type** specification. Use as indicated by the **reference_value_type** option you choose. | + +----------------------+----------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + self._interpreter.perform_lcr_load_compensation(self._repeated_capability, compensation_spots) + + @ivi_synchronized + def perform_lcr_open_compensation(self, additional_frequencies=None): + r'''perform_lcr_open_compensation + + Generates open compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. + + You must physically configure an open LCR circuit to use this method to generate valid open compensation data. + + When you call this method: + + - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + To apply the open compensation data you generate with this method to your LCR measurements, set the lcr_open_compensation_enabled property to True. + + Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Note: + Default Open Compensation Frequencies: + By default, NI-DCPower uses the following frequencies for LCR open compensation: + + - 10 logarithmic steps at 1 kHz frequency decade + - 10 logarithmic steps at 10 kHz frequency decade + - 100 logarithmic steps at 100 kHz frequency decade + - 100 logarithmic steps at 1 MHz frequency decade + + The actual frequencies used depend on the bandwidth of your instrument. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_open_compensation` + + Args: + additional_frequencies (list of float): Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. + + ''' + self._interpreter.perform_lcr_open_compensation(self._repeated_capability, additional_frequencies) + + @ivi_synchronized + def perform_lcr_open_custom_cable_compensation(self): + r'''perform_lcr_open_custom_cable_compensation + + Generates open custom cable compensation data for LCR measurements. + + To use this method, you must physically configure an open LCR circuit to generate valid open custom cable compensation data. + + When you call this method: + + - The open compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_open_custom_cable_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_open_custom_cable_compensation` + ''' + self._interpreter.perform_lcr_open_custom_cable_compensation(self._repeated_capability) + + @ivi_synchronized + def perform_lcr_short_compensation(self, additional_frequencies=None): + r'''perform_lcr_short_compensation + + Generates short compensation data for LCR measurements based on a default set of test frequencies and, optionally, additional frequencies you can specify. + + You must physically configure your LCR circuit with a short to use this method to generate valid short compensation data. + + When you call this method: + + - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + To apply the short compensation data you generate with this method to your LCR measurements, set the lcr_short_compensation_enabled property to True. + + Corrections for frequencies other than the default frequencies or any additional frequencies you specify are interpolated. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Note: + Default Short Compensation Frequencies: + By default, NI-DCPower uses the following frequencies for LCR short compensation: + + - 10 logarithmic steps at 1 kHz frequency decade + - 10 logarithmic steps at 10 kHz frequency decade + - 100 logarithmic steps at 100 kHz frequency decade + - 100 logarithmic steps at 1 MHz frequency decade + + The actual frequencies used depend on the bandwidth of your instrument. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_short_compensation` + + Args: + additional_frequencies (list of float): Defines a further set of frequencies, in addition to the default frequencies, to perform the compensation for. You can specify <=200 additional frequencies. + + ''' + self._interpreter.perform_lcr_short_compensation(self._repeated_capability, additional_frequencies) + + @ivi_synchronized + def perform_lcr_short_custom_cable_compensation(self): + r'''perform_lcr_short_custom_cable_compensation + + Generates short custom cable compensation data for LCR measurements. + + To use this method: + + - You must physically configure your LCR circuit with a short to generate valid short custom cable compensation data. + - Set lcr_short_custom_cable_compensation_enabled property to True + + When you call this method: + + - The short compensation data is written to the onboard storage of the instrument. Onboard storage can contain only the most recent set of data. + - Most NI-DCPower properties in the session are reset to their default values. Rewrite the values of any properties you want to maintain. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].perform_lcr_short_custom_cable_compensation` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.perform_lcr_short_custom_cable_compensation` + ''' + self._interpreter.perform_lcr_short_custom_cable_compensation(self._repeated_capability) + + @ivi_synchronized + def query_in_compliance(self): + r'''query_in_compliance + + Queries the specified channel to determine if it is operating at the compliance limit. + + The compliance limit is the current limit when the output_function property is set to OutputFunction.DC_VOLTAGE, OutputFunction.PULSE_VOLTAGE, OutputFunction.CONSTANT_RESISTANCE or OutputFunction.CONSTANT_POWER. If the output is operating at the compliance limit, the output reaches the current limit before the desired voltage, resistance or power level. + + The compliance limit is the voltage limit when the output_function property is set to OutputFunction.DC_CURRENT or OutputFunction.PULSE_CURRENT. If the output is operating at the compliance limit, the output reaches the voltage limit before the desired current level. + + Refer to the output_function property for more information about the applicable properties to configure for each output method. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_in_compliance` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_in_compliance` + + Returns: + in_compliance (bool): Returns whether the device channel is in compliance. + + ''' + in_compliance = self._interpreter.query_in_compliance(self._repeated_capability) + return in_compliance + + @ivi_synchronized + def query_latched_output_cutoff_state(self, output_cutoff_reason): + r'''query_latched_output_cutoff_state + + Discovers if an output cutoff limit was exceeded for the specified reason. When an output cutoff is engaged, the output of the channel(s) is disconnected. + If a limit was exceeded, the state is latched until you clear it with the clear_latched_output_cutoff_state method or the reset method. + + outputCutoffReason specifies the conditions for which an output is disconnected. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_latched_output_cutoff_state` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_latched_output_cutoff_state` + + Args: + output_cutoff_reason (enums.OutputCutoffReason): Specifies which output cutoff conditions to query. + + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.ALL | Any output cutoff condition was met | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_OUTPUT_HIGH | The output exceeded the high cutoff limit for voltage output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_OUTPUT_LOW | The output fell below the low cutoff limit for voltage output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_MEASURE_HIGH | The measured voltage exceeded the high cutoff limit for voltage output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_MEASURE_LOW | The measured voltage fell below the low cutoff limit for voltage output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_MEASURE_HIGH | The measured current exceeded the high cutoff limit for current output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_MEASURE_LOW | The measured current fell below the low cutoff limit for current output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_CHANGE_HIGH | The voltage slew rate increased beyond the positive change cutoff for voltage output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.VOLTAGE_CHANGE_LOW | The voltage slew rate decreased beyond the negative change cutoff for voltage output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_CHANGE_HIGH | The current slew rate increased beyond the positive change cutoff for current output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_CHANGE_LOW | The current slew rate decreased beyond the negative change cutoff for current output | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + | OutputCutoffReason.CURRENT_SATURATED | The measured current saturates the current range | + +-----------------------------------------+--------------------------------------------------------------------------------------+ + + + Returns: + output_cutoff_state (bool): Specifies whether an output cutoff has engaged. + + +-------+------------------------------------------------------------------------------+ + | True | An output cutoff has engaged for the conditions in **output cutoff reason**. | + +-------+------------------------------------------------------------------------------+ + | False | No output cutoff has engaged. | + +-------+------------------------------------------------------------------------------+ + + ''' + if type(output_cutoff_reason) is not enums.OutputCutoffReason: + raise TypeError('Parameter output_cutoff_reason must be of type ' + str(enums.OutputCutoffReason)) + output_cutoff_state = self._interpreter.query_latched_output_cutoff_state(self._repeated_capability, output_cutoff_reason) + return output_cutoff_state + + @ivi_synchronized + def query_max_current_limit(self, voltage_level): + r'''query_max_current_limit + + Queries the maximum current limit on a channel if the channel is set to the specified **voltageLevel**. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_max_current_limit` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_max_current_limit` + + Args: + voltage_level (float): Specifies the voltage level to use when calculating the + **maxCurrentLimit**. + + + Returns: + max_current_limit (float): Returns the maximum current limit that can be set with the specified + **voltageLevel**. + + ''' + max_current_limit = self._interpreter.query_max_current_limit(self._repeated_capability, voltage_level) + return max_current_limit + + @ivi_synchronized + def query_max_voltage_level(self, current_limit): + r'''query_max_voltage_level + + Queries the maximum voltage level on a channel if the channel is set to the specified **currentLimit**. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_max_voltage_level` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_max_voltage_level` + + Args: + current_limit (float): Specifies the current limit to use when calculating the + **maxVoltageLevel**. + + + Returns: + max_voltage_level (float): Returns the maximum voltage level that can be set on a channel + with the specified **currentLimit**. + + ''' + max_voltage_level = self._interpreter.query_max_voltage_level(self._repeated_capability, current_limit) + return max_voltage_level + + @ivi_synchronized + def query_min_current_limit(self, voltage_level): + r'''query_min_current_limit + + Queries the minimum current limit on a channel if the channel is set to the specified **voltageLevel**. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_min_current_limit` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_min_current_limit` + + Args: + voltage_level (float): Specifies the voltage level to use when calculating the + **minCurrentLimit**. + + + Returns: + min_current_limit (float): Returns the minimum current limit that can be set on a channel + with the specified **voltageLevel**. + + ''' + min_current_limit = self._interpreter.query_min_current_limit(self._repeated_capability, voltage_level) + return min_current_limit + + @ivi_synchronized + def query_output_state(self, output_state): + r'''query_output_state + + Queries the specified channel to determine if the channel + is currently in the state specified by **outputState**. + + **Related Topics:** + + `Compliance `__ + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].query_output_state` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.query_output_state` + + Args: + output_state (enums.OutputStates): Specifies the output state of the channel that is being queried. + **Defined Values**: + + +-------------------------------+--------------------------------------------------------------------+ + | OutputStates.CONSTANT_VOLTAGE | The channel maintains a constant voltage by adjusting the current. | + +-------------------------------+--------------------------------------------------------------------+ + | OutputStates.CONSTANT_CURRENT | The channel maintains a constant current by adjusting the voltage. | + +-------------------------------+--------------------------------------------------------------------+ + | OutputStates.INHIBITED | The channel is in the inhibited state. | + +-------------------------------+--------------------------------------------------------------------+ + + + Returns: + in_state (bool): Returns whether the device channel is in the specified output + state. + + ''' + if type(output_state) is not enums.OutputStates: + raise TypeError('Parameter output_state must be of type ' + str(enums.OutputStates)) + in_state = self._interpreter.query_output_state(self._repeated_capability, output_state) + return in_state + + @ivi_synchronized + def reset(self): + r'''reset + + Resets the specified channel(s) to a known state. This method disables power + generation, resets session properties to their default values, commits + the session properties, and leaves the session in the Uncommitted state. + Refer to the `Programming + States `__ topic for + more information about NI-DCPower software states. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].reset` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.reset` + ''' + self._interpreter.reset(self._repeated_capability) + + @ivi_synchronized + def send_software_edge_trigger(self, trigger): + r'''send_software_edge_trigger + + Asserts the specified trigger. This method can override an external + edge trigger. + + **Related Topics:** + + `Triggers `__ + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].send_software_edge_trigger` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.send_software_edge_trigger` + + Args: + trigger (enums.SendSoftwareEdgeTriggerType): Specifies which trigger to assert. + **Defined Values:** + + +----------------------------------------------+---------------------------------------+ + | SendSoftwareEdgeTriggerType.START | Asserts the Start trigger. | + +----------------------------------------------+---------------------------------------+ + | SendSoftwareEdgeTriggerType.SOURCE | Asserts the Source trigger. | + +----------------------------------------------+---------------------------------------+ + | SendSoftwareEdgeTriggerType.MEASURE | Asserts the Measure trigger. | + +----------------------------------------------+---------------------------------------+ + | SendSoftwareEdgeTriggerType.SEQUENCE_ADVANCE | Asserts the Sequence Advance trigger. | + +----------------------------------------------+---------------------------------------+ + | SendSoftwareEdgeTriggerType.PULSE | Asserts the Pulse trigger. | + +----------------------------------------------+---------------------------------------+ + | SendSoftwareEdgeTriggerType.SHUTDOWN | Asserts the Shutdown trigger. | + +----------------------------------------------+---------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(trigger) is not enums.SendSoftwareEdgeTriggerType: + raise TypeError('Parameter trigger must be of type ' + str(enums.SendSoftwareEdgeTriggerType)) + self._interpreter.send_software_edge_trigger(self._repeated_capability, trigger) + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, attribute_value): + r'''_set_attribute_vi_boolean + + | Sets the value of a ViBoolean property. + | This is a low-level method that you can use to set the values of + device-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Properties whose value cannot be set are + dim. Help text is shown for each property. Select a property by + double-clicking on it or by selecting it and then pressing **Enter**. + - Read-only properties appear dim in the list box. If you select a + read-only property, an error message appears. A ring control at the + top of the dialog box allows you to see all IVI properties or only + the properties of type ViBoolean. If you choose to see all IVI + properties, the data types appear to the right of the property names + in the list box. Properties with data types other than ViBoolean are + dim. If you select a property data type that is dim, LabWindows/CVI + transfers you to the method panel for the corresponding method + that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + attribute_value (bool): Specifies the value to which you want to set the property. If the + property currently showing in the property ring control has constants + as valid values, you can view a list of the constants by pressing + **Enter** on this control. Select a value by double-clicking on it or by + selecting it and then pressing **Enter**. + + Note: + Some of the values might not be valid depending upon the current + settings of the device session. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int32 + + | Sets the value of a ViInt32 property. + | This is a low-level method that you can use to set the values of + device-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Properties whose value cannot be set are + dim. Help text is shown for each property. Select a property by + double-clicking on it or by selecting it and then pressing **Enter**. + - Read-only properties appear dim in the list box. If you select a + read-only property, an error message appears. A ring control at the + top of the dialog box allows you to see all IVI properties or only + the properties of type ViInt32. If you choose to see all IVI + properties, the data types appear to the right of the property names + in the list box. Properties with data types other than ViInt32 are + dim. If you select a property data type that is dim, LabWindows/CVI + transfers you to the method panel for the corresponding method + that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + attribute_value (int): Specifies the value to which you want to set the property. If the + property currently showing in the property ring control has constants + as valid values, you can view a list of the constants by pressing + **Enter** on this control. Select a value by double-clicking on it or by + selecting it and then pressing **Enter**. + + Note: + Some of the values might not be valid depending upon the current + settings of the device session. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int64 + + | Sets the value of a ViInt64 property. + | This is a low-level method that you can use to set the values of + device-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int64` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Properties whose value cannot be set are + dim. Help text is shown for each property. Select a property by + double-clicking on it or by selecting it and then pressing **Enter**. + - Read-only properties appear dim in the list box. If you select a + read-only property, an error message appears. A ring control at the + top of the dialog box allows you to see all IVI properties or only + the properties of type ViReal64. If you choose to see all IVI + properties, the data types appear to the right of the property names + in the list box. Properties with data types other than ViReal64 are + dim. If you select a property data type that is dim, LabWindows/CVI + transfers you to the method panel for the corresponding method + that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + attribute_value (int): Specifies the value to which you want to set the property. If the + property currently showing in the property ring control has constants + as valid values, you can view a list of the constants by pressing + **Enter** on this control. Select a value by double-clicking on it or by + selecting it and then pressing **Enter**. + + Note: + Some of the values might not be valid depending upon the current + settings of the device session. + + ''' + self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_real64 + + | Sets the value of a ViReal64 property. + | This is a low-level method that you can use to set the values of + device-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Properties whose value cannot be set are + dim. Help text is shown for each property. Select a property by + double-clicking on it or by selecting it and then pressing **Enter**. + - Read-only properties appear dim in the list box. If you select a + read-only property, an error message appears. A ring control at the + top of the dialog box allows you to see all IVI properties or only + the properties of type ViReal64. If you choose to see all IVI + properties, the data types appear to the right of the property names + in the list box. Properties with data types other than ViReal64 are + dim. If you select a property data type that is dim, LabWindows/CVI + transfers you to the method panel for the corresponding method + that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + attribute_value (float): Specifies the value to which you want to set the property. If the + property currently showing in the property ring control has constants + as valid values, you can view a list of the constants by pressing + **Enter** on this control. Select a value by double-clicking on it or by + selecting it and then pressing **Enter**. + + Note: + Some of the values might not be valid depending upon the current + settings of the device session. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, attribute_value): + r'''_set_attribute_vi_string + + | Sets the value of a ViString property. + | This is a low-level method that you can use to set the values of + device-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Specifies the ID of a property. From the method panel window, you + can use this control as follows. + + - In the method panel window, click on the control or press **Enter** + or the spacebar to display a dialog box containing hierarchical list + of the available properties. Properties whose value cannot be set are + dim. Help text is shown for each property. Select a property by + double-clicking on it or by selecting it and then pressing **Enter**. + - Read-only properties appear dim in the list box. If you select a + read-only property, an error message appears. A ring control at the + top of the dialog box allows you to see all IVI properties or only + the properties of type ViString. If you choose to see all IVI + properties, the data types appear to the right of the property names + in the list box. Properties with data types other than ViString are + dim. If you select a property data type that is dim, LabWindows/CVI + transfers you to the method panel for the corresponding method + that is consistent with the data type. + - If you want to enter a variable name, press **Ctrl**\ +\ **T** to + change this ring control to a manual input box. If the property in + this ring control has named constants as valid values, you can view + the constants by moving to the value control and pressing **Enter**. + + attribute_value (str): Specifies the value to which you want to set the property. If the + property currently showing in the property ring control has constants + as valid values, you can view a list of the constants by pressing + **Enter** on this control. Select a value by double-clicking on it or by + selecting it and then pressing **Enter**. + + Note: + Some of the values might not be valid depending upon the current + settings of the device session. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def set_sequence(self, values, source_delays): + r'''set_sequence + + Configures a series of voltage, current, resistance or power outputs and corresponding source delays. The source mode must be set to SourceMode.SEQUENCE for this method to take effect. + + Refer to the Configuring the Source Unit topic in the *NI DC Power Supplies and SMUs Help* for more information about how to configure your device. + + Use this method in the Uncommitted or Committed programming states. + Refer to the Programming States topic in the *NI DC Power Supplies and SMUs Help* for more information about NI-DCPower programming states. + + Using this method with Advanced Sequence methods for the same channel in the same session is not supported. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].set_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.set_sequence` + + Args: + values (list of float): Specifies the series of voltage, current, resistance or power levels, depending on the configured output_function. + **Valid values**: The valid values for this parameter are defined by the voltage level range, current level range, constant resistance level range or constant power level range. + + source_delays (list of float): Specifies the source delay that follows the configuration of each value + in the sequence. + **Valid Values**: + The valid values are between 0 and 167 seconds. + + ''' + if source_delays is not None and len(source_delays) != len(values): # case S160 + raise ValueError("Length of source_delays and values parameters do not match.") # case S160 + self._interpreter.set_sequence(self._repeated_capability, values, source_delays) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + @ivi_synchronized + def wait_for_event(self, event_id, timeout=hightime.timedelta(seconds=10.0)): + r'''wait_for_event + + Waits until the specified channel(s) have generated the specified event. + + The session monitors whether each type of event has occurred at least + once since the last time this method or the initiate + method were called. If an event has only been generated once and you + call this method successively, the method times out. Individual + events must be generated between separate calls of this method. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Tip: + This method can be called on specific channels within your :py:class:`nidcpower.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].wait_for_event` + + To call the method on all channels, you can call it directly on the :py:class:`nidcpower.Session`. + + Example: :py:meth:`my_session.wait_for_event` + + Args: + event_id (enums.Event): Specifies which event to wait for. + **Defined Values:** + + +-----------------------------------+--------------------------------------------------+ + | Event.SOURCE_COMPLETE | Waits for the Source Complete event. | + +-----------------------------------+--------------------------------------------------+ + | Event.MEASURE_COMPLETE | Waits for the Measure Complete event. | + +-----------------------------------+--------------------------------------------------+ + | Event.SEQUENCE_ITERATION_COMPLETE | Waits for the Sequence Iteration Complete event. | + +-----------------------------------+--------------------------------------------------+ + | Event.SEQUENCE_ENGINE_DONE | Waits for the Sequence Engine Done event. | + +-----------------------------------+--------------------------------------------------+ + | Event.PULSE_COMPLETE | Waits for the Pulse Complete event. | + +-----------------------------------+--------------------------------------------------+ + | Event.READY_FOR_PULSE_TRIGGER | Waits for the Ready for Pulse Trigger event. | + +-----------------------------------+--------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the maximum time allowed for this method to complete, in + seconds. If the method does not complete within this time interval, + NI-DCPower returns an error. + + Note: + When setting the timeout interval, ensure you take into account any + triggers so that the timeout interval is long enough for your + application. + + ''' + if type(event_id) is not enums.Event: + raise TypeError('Parameter event_id must be of type ' + str(enums.Event)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + self._interpreter.wait_for_event(self._repeated_capability, event_id, timeout) + + def _error_message(self, error_code): + r'''_error_message + + Converts a status code returned by an instrument driver method into a + user-readable string. + + Args: + error_code (int): Specifies the **status** parameter that is returned from any of the + NI-DCPower methods. + + + Returns: + error_message (str): Returns the user-readable message string that corresponds to the status + code you specify. + You must pass a ViChar array with at least 256 bytes. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-DCPower session to an NI programmable power supply or source measure unit.''' + + def __init__(self, resource_name, channels=None, reset=False, options={}, independent_channels=True, *, grpc_options=None): + r'''An NI-DCPower session to an NI programmable power supply or source measure unit. + + Creates and returns a new NI-DCPower session to the instrument(s) and channel(s) specified + in **resource name** to be used in all subsequent NI-DCPower method calls. With this method, + you can optionally set the initial state of the following session properties: + + - simulate + - driver_setup + + After calling this method, the specified channel or channels will be in the Uncommitted + state. + + To place channel(s) in a known start-up state when creating a new session, set **reset** to + True. This action is equivalent to using the reset method immediately after initializing the + session. + + To open a session and leave the channel(s) in an existing configuration without passing + through a transitional output state, set **reset** to False. Next, configure the channel(s) + as in the previous session, change the desired settings, and then call the initiate method + to write both settings. + + **Details of Independent Channel Operation** + + With this method and channel-based NI-DCPower methods and properties, you can use any + channels in the session independently. For example, you can initiate a subset of channels in + the session with initiate, and the other channels in the session remain in the Uncommitted + state. + + When you initialize with independent channels, each channel steps through the NI-DCPower + programming state model independently of all other channels, and you can specify a subset of + channels for most operations. + + **Note** You can make concurrent calls to a session from multiple threads, but the session + executes the calls one at a time. If you specify multiple channels for a method or property, + the session may perform the operation on multiple channels in parallel, though this is not + guaranteed, and some operations may execute sequentially. + + Args: + resource_name (str, list, tuple): Specifies the **resource name** as seen in Measurement + & Automation Explorer (MAX) or lsni, for example "PXI1Slot3" where "PXI1Slot3" is an + instrument's **resource name**. If independent_channels is False, **resource name** + can also be a logical IVI name. + + If independent_channels is True, **resource name** can be names of the instrument(s) + and the channel(s) to initialize. Specify the instrument(s) and channel(s) using the + form "PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or + PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3", where "PXI1Slot3" and "PXI1Slot4" are + instrument resource names followed by channels. If you exclude a channels string + after an instrument resource name, all channels of the instrument(s) are included in + the session. + + channels (str, list, range, tuple): For new applications, use the default value of None + and specify the channels in **resource name**. + + Specifies which channel(s) to include in a new session. Specify multiple + channels by using a channel list or a channel range. A channel list is a comma (,) + separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). + A channel range is a lower bound channel followed by a hyphen (-) or colon (:) + followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, + and 2). + + If independent_channels is False, this argument specifies which channels to include + in a legacy synchronized channels session. If you do not specify any channels, by + default all channels on the device are included in the session. + + If independent_channels is True, this argument combines with **resource name** to + specify which channels to include in an independent channels session. Initializing + an independent channels session with a channels argument is deprecated. + + reset (bool): Specifies whether to reset channel(s) during the initialization procedure. + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + independent_channels (bool): Specifies whether to initialize the session with + independent channels. Set this argument to False on legacy applications or if you + are unable to upgrade your NI-DCPower driver runtime to 20.6 or higher. + + grpc_options (nidcpower.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + session (nidcpower.Session): A session object representing the device. + + ''' + if grpc_options: + import nidcpower._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + resource_name = _converters.convert_repeated_capabilities_without_prefix(resource_name) + channels = _converters.convert_repeated_capabilities_without_prefix(channels) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _fancy_initialize fails, the error handler can reference it. + # And then here, once _fancy_initialize succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._fancy_initialize(resource_name, channels, reset, options, independent_channels)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-DCPower', grpc_options.grpc_channel, connected) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("channels=" + pp.pformat(channels)) + param_list.append("reset=" + pp.pformat(reset)) + param_list.append("options=" + pp.pformat(options)) + param_list.append("independent_channels=" + pp.pformat(independent_channels)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def close(self): + '''close + + Closes the session specified in **vi** and deallocates the resources + that NI-DCPower reserves. If power output is enabled when you call this + method, the channels remain in their existing state and + continue providing power. Use the ConfigureOutputEnabled + method to disable power output on a per channel basis. Use the + reset method to disable power output on all channel(s). + + **Related Topics:** + + `Programming + States `__ + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def disable(self): + r'''disable + + This method performs the same actions as the reset + method, except that this method also immediately sets the + output_enabled property to False. + + This method opens the output relay on devices that have an output + relay. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + ''' + self._interpreter.disable() + + @ivi_synchronized + def export_attribute_configuration_buffer(self): + r'''export_attribute_configuration_buffer + + Exports the property configuration of the session to the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DCPower returns + an error. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + __init__ method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + Note: + This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + Returns: + configuration (bytes): Specifies the byte array buffer to be populated with the exported + property configuration. + + ''' + configuration = self._interpreter.export_attribute_configuration_buffer() + return _converters.convert_to_bytes(configuration) + + @ivi_synchronized + def export_attribute_configuration_file(self, file_path): + r'''export_attribute_configuration_file + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DCPower returns + an error. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + __init__ method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + Note: + This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + Args: + file_path (str): Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:** .nidcpowerconfig + + ''' + self._interpreter.export_attribute_configuration_file(file_path) + + def _fancy_initialize(self, resource_name, channels=None, reset=False, option_string="", independent_channels=True): + '''_fancy_initialize + + Creates and returns a new NI-DCPower session to the instrument(s) and channel(s) specified + in **resource name** to be used in all subsequent NI-DCPower method calls. With this method, + you can optionally set the initial state of the following session properties: + + - simulate + - driver_setup + + After calling this method, the specified channel or channels will be in the Uncommitted + state. + + To place channel(s) in a known start-up state when creating a new session, set **reset** to + True. This action is equivalent to using the reset method immediately after initializing the + session. + + To open a session and leave the channel(s) in an existing configuration without passing + through a transitional output state, set **reset** to False. Next, configure the channel(s) + as in the previous session, change the desired settings, and then call the initiate method + to write both settings. + + **Details of Independent Channel Operation** + + With this method and channel-based NI-DCPower methods and properties, you can use any + channels in the session independently. For example, you can initiate a subset of channels in + the session with initiate, and the other channels in the session remain in the Uncommitted + state. + + When you initialize with independent channels, each channel steps through the NI-DCPower + programming state model independently of all other channels, and you can specify a subset of + channels for most operations. + + **Note** You can make concurrent calls to a session from multiple threads, but the session + executes the calls one at a time. If you specify multiple channels for a method or property, + the session may perform the operation on multiple channels in parallel, though this is not + guaranteed, and some operations may execute sequentially. + + Args: + resource_name (str, list, tuple): Specifies the **resource name** as seen in Measurement + & Automation Explorer (MAX) or lsni, for example "PXI1Slot3" where "PXI1Slot3" is an + instrument's **resource name**. If independent_channels is False, **resource name** + can also be a logical IVI name. + + If independent_channels is True, **resource name** can be names of the instrument(s) + and the channel(s) to initialize. Specify the instrument(s) and channel(s) using the + form "PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 or + PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3", where "PXI1Slot3" and "PXI1Slot4" are + instrument resource names followed by channels. If you exclude a channels string + after an instrument resource name, all channels of the instrument(s) are included in + the session. + + channels (str, list, range, tuple): For new applications, use the default value of None + and specify the channels in **resource name**. + + Specifies which channel(s) to include in a new session. Specify multiple + channels by using a channel list or a channel range. A channel list is a comma (,) + separated sequence of channel names (for example, 0,2 specifies channels 0 and 2). + A channel range is a lower bound channel followed by a hyphen (-) or colon (:) + followed by an upper bound channel (for example, 0-2 specifies channels 0, 1, + and 2). + + If independent_channels is False, this argument specifies which channels to include + in a legacy synchronized channels session. If you do not specify any channels, by + default all channels on the device are included in the session. + + If independent_channels is True, this argument combines with **resource name** to + specify which channels to include in an independent channels session. Initializing + an independent channels session with a channels argument is deprecated. + + reset (bool): Specifies whether to reset channel(s) during the initialization procedure. + + option_string (dict): Specifies the initial value of certain properties for the session. + The syntax for **optionString** is a list of properties with an assigned value where + 1 is True and 0 is False. For example: + + Simulate=0, DriverSetup=Model:; BoardType: + + To simulate a multi-instrument session when independent_channels is True, set + Simulate to 1 and list multiple instruments for DriverSetup. For example: + + Simulate=1, DriverSetup=ResourceName:; Model:; + BoardType: & ResourceName:; Model:; + BoardType: + + You do not have to specify a value for all the properties. If you do not specify a + value for a property, the default value is used. + + independent_channels (bool): Specifies whether to initialize the session with + independent channels. Set this argument to False on legacy applications or if you + are unable to upgrade your NI-DCPower driver runtime to 20.6 or higher. + + + Returns: + vi (int): Returns a session handle that you use to identify the device in all + subsequent NI-DCPower method calls. + + ''' + if independent_channels: + resource_string = resource_name # store potential modifications to resource_name in a separate variable + + if channels: + # if we have a channels arg, we need to try and combine it with the resource name + # before calling into initialize with independent channels + channel_list = (resource_name + "/" + channel for channel in channels.split(",")) + resource_string = ",".join(channel_list) + + import warnings + warnings.warn( + "Attempting to initialize an independent channels session with a channels argument. The resource " + "name '" + resource_name + "' will be combined with the channels '" + channels + "' to form the " + "fully-qualified channel list '" + resource_string + "'. To avoid this warning, use a " + "fully-qualified channel list as the resource name instead of providing a channels argument.", + DeprecationWarning + ) + + if "," in resource_name: + raise ValueError( + "Channels cannot be combined with multiple instruments in the resource name '" + resource_name + "'. " + "Specify a list of fully-qualified channels as the resource name instead of supplying a " + "channels argument." + ) + + return self._initialize_with_independent_channels(resource_string, reset, option_string) + + else: + import warnings + warnings.warn("Initializing session without independent channels enabled.", DeprecationWarning) + + return self._initialize_with_channels(resource_name, channels, reset, option_string) + + @ivi_synchronized + def get_channel_name(self, index): + r'''get_channel_name + + Retrieves the output **channelName** that corresponds to the requested + **index**. Use the channel_count property to + determine the upper bound of valid values for **index**. + + Args: + index (int): Specifies which channel name to return. The index values begin at + 1. + + + Returns: + channel_name (str): Returns the channel name that corresponds to **index**. + + ''' + channel_name = self._interpreter.get_channel_name(index) + return channel_name + + @ivi_synchronized + def _get_ext_cal_last_date_and_time(self): + r'''_get_ext_cal_last_date_and_time + + Returns the date and time of the last successful calibration. The time + returned is 24-hour (military) local time; for example, if the device + was calibrated at 2:30 PM, this method returns 14 for **hours** and 30 + for **minutes**. + + Returns: + year (int): Returns the **year** the device was last calibrated. + + month (int): Returns the **month** in which the device was last calibrated. + + day (int): Returns the **day** on which the device was last calibrated. + + hour (int): Returns the **hour** (in 24-hour time) in which the device was last + calibrated. + + minute (int): Returns the **minute** in which the device was last calibrated. + + ''' + year, month, day, hour, minute = self._interpreter.get_ext_cal_last_date_and_time() + return year, month, day, hour, minute + + @ivi_synchronized + def get_ext_cal_last_temp(self): + r'''get_ext_cal_last_temp + + Returns the onboard **temperature** of the device, in degrees Celsius, + during the last successful external calibration. + + Returns: + temperature (float): Returns the onboard **temperature** of the device, in degrees Celsius, + during the last successful external calibration. + + ''' + temperature = self._interpreter.get_ext_cal_last_temp() + return temperature + + @ivi_synchronized + def get_ext_cal_recommended_interval(self): + r'''get_ext_cal_recommended_interval + + Returns the recommended maximum interval, in **months**, between + external calibrations. + + Returns: + months (hightime.timedelta): Specifies the recommended maximum interval, in **months**, between + external calibrations. + + ''' + months = self._interpreter.get_ext_cal_recommended_interval() + return _converters.convert_month_to_timedelta(months) + + @ivi_synchronized + def get_ext_cal_last_date_and_time(self): + '''get_ext_cal_last_date_and_time + + Returns the date and time of the last successful calibration. + + Returns: + last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. + + ''' + year, month, day, hour, minute = self._get_ext_cal_last_date_and_time() + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def get_self_cal_last_date_and_time(self): + '''get_self_cal_last_date_and_time + + Returns the date and time of the oldest successful self-calibration from among the channels in the session. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Returns: + last_cal_datetime (hightime.datetime): Returns the date and time the device was last calibrated. + + ''' + year, month, day, hour, minute = self._get_self_cal_last_date_and_time() + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def _get_self_cal_last_date_and_time(self): + r'''_get_self_cal_last_date_and_time + + Returns the date and time of the oldest successful self-calibration from + among the channels in the session. + + The time returned is 24-hour (military) local time; for example, if you + have a session using channels 1 and 2, and a self-calibration was + performed on channel 1 at 2:30 PM, and a self-calibration was performed + on channel 2 at 3:00 PM on the same day, this method returns 14 for + **hours** and 30 for **minutes**. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Returns: + year (int): Returns the **year** the device was last calibrated. + + month (int): Returns the **month** in which the device was last calibrated. + + day (int): Returns the **day** on which the device was last calibrated. + + hour (int): Returns the **hour** (in 24-hour time) in which the device was last + calibrated. + + minute (int): Returns the **minute** in which the device was last calibrated. + + ''' + year, month, day, hour, minute = self._interpreter.get_self_cal_last_date_and_time() + return year, month, day, hour, minute + + @ivi_synchronized + def get_self_cal_last_temp(self): + r'''get_self_cal_last_temp + + Returns the onboard temperature of the device, in degrees Celsius, + during the oldest successful self-calibration from among the channels in + the session. + + For example, if you have a session using channels 1 and 2, and you + perform a self-calibration on channel 1 with a device temperature of 25 + degrees Celsius at 2:00, and a self-calibration was performed on channel + 2 at 27 degrees Celsius at 3:00 on the same day, this method returns + 25 for the **temperature** parameter. + + Note: + This method is not supported on all devices. For more information about supported devices, search ni.com for Supported Methods by Device. + + Returns: + temperature (float): Returns the onboard **temperature** of the device, in degrees Celsius, + during the oldest successful calibration. + + ''' + temperature = self._interpreter.get_self_cal_last_temp() + return temperature + + @ivi_synchronized + def import_attribute_configuration_buffer(self, configuration): + r'''import_attribute_configuration_buffer + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + __init__ method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Programming + States `__ + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + Note: + This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + Args: + configuration (bytes): Specifies the byte array buffer that contains the property + configuration to import. + + ''' + configuration = _converters.convert_to_bytes(configuration) + self._interpreter.import_attribute_configuration_buffer(configuration) + + @ivi_synchronized + def import_attribute_configuration_file(self, file_path): + r'''import_attribute_configuration_file + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers and the same number of configured + channels. + + **Support for this Method** + + Calling this method in `Sequence Source + Mode `__ is unsupported. + + **Channel Mapping Behavior for Multichannel Sessions** + + When importing and exporting session property configurations between + NI‑DCPower sessions that were initialized with different channels, the + configurations of the exporting channels are mapped to the importing + channels in the order you specify in the **channelName** input to the + __init__ method. + + For example, if your entry for **channelName** is 0,1 for the exporting + session and 1,2 for the importing session: + + - The configuration exported from channel 0 is imported into channel 1. + - The configuration exported from channel 1 is imported into channel 2. + + **Related Topics:** + + `Programming + States `__ + + `Using Properties and + Properties `__ + + `Setting Properties and Properties Before Reading + Them `__ + + Note: + This method will return an error if the total number of channels + initialized for the exporting session is not equal to the total number + of channels initialized for the importing session. + + Args: + file_path (str): Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:** .nidcpowerconfig + + ''' + self._interpreter.import_attribute_configuration_file(file_path) + + def _initialize_with_channels(self, resource_name, channels, reset, option_string): + r'''_initialize_with_channels + + Creates and returns a new NI-DCPower session to the instrument + specified in **resource name** to be used in all subsequent NI-DCPower + method calls. With this method, you can optionally set the initial + state of the following session properties: + + - simulate + - driver_setup + + After calling this method, the session will be in the Uncommitted + state. Refer to the `Programming + States `__ topic for + details about specific software states. + + To place the device in a known start-up state when creating a new + session, set **reset** to True. This action is equivalent to using + the reset method immediately after initializing the + session. + + To open a session and leave the device in its existing configuration + without passing through a transitional output state, set **reset** to + False. Then configure the device as in the previous session, + changing only the desired settings, and then call the + initiate method. + + **Related Topics:** + + `Programming States `__ + + Args: + resource_name (str): Specifies the **resourceName** assigned by Measurement & Automation + Explorer (MAX), for example "PXI1Slot3" where "PXI1Slot3" is an + instrument's **resourceName**. **resourceName** can also be a logical + IVI name. + + channels (str): Specifies which channel(s) to include in a new session. Specify + multiple channels by using a channel list or a channel range. A channel + list is a comma (,) separated sequence of channel names (for example, + 0,2 specifies channels 0 and 2). A channel range is a lower bound + channel followed by a hyphen (-) or colon (:) followed by an upper bound + channel (for example, 0-2 specifies channels 0, 1, and 2). In the + Running state, multiple channel configurations are performed + sequentially based on the order specified in this parameter. If you do + not specify any channels, by default all channels on the device are + included in the session. + + reset (bool): Specifies whether to reset the device during the initialization + procedure. + + option_string (str): Specifies the initial value of certain properties for the session. + The syntax for **optionString** is a list of properties with an assigned + value where 1 is True and 0 is False. For example: + + "Simulate=0" + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + For more information about simulating a device, refer to `Simulating an + Instrument `__. + + + Returns: + vi (int): Returns a session handle that you use to identify the device in all + subsequent NI-DCPower method calls. + + ''' + vi = self._interpreter.initialize_with_channels(resource_name, channels, reset, option_string) + return vi + + def _initialize_with_independent_channels(self, resource_name, reset, option_string): + r'''_initialize_with_independent_channels + + Creates a new NI-DCPower session to the specified instrument(s) and channel(s) and returns a + session handle to be used in all subsequent NI-DCPower method calls. + + After calling this method, the specified channel or channels will be in the Uncommitted + state. + + With this method and channel-based NI-DCPower methods and properties, you can use any + channels in the session independently. For example, you can initiate a subset of channels in + the session with initiate, and the other channels in the session + remain in the Uncommitted state. + + **Details of Independent Channel Operation** + + When you initialize with independent channels, each channel steps through the NI-DCPower + programming state model independently of all other channels, and you can specify a subset + of channels for most operations. + + **Note** You can make concurrent calls to a session from multiple threads, but the session + executes the calls one at a time. If you specify multiple channels for a method or + property, the session may perform the operation on multiple channels in parallel, though + this is not guaranteed, and some operations may execute sequentially. + + **Related Topics:** + + `Programming States `__ + + Args: + resource_name (str): Specifies the NI-DCPower resources to use in the session. + NI-DCPower resources can be names of the instrument(s) assigned by Measurement & + Automation Explorer (MAX) and the channel(s) to initialize. Specify the + instrument(s) and channel(s) using the form PXI1Slot3/0,PXI1Slot3/2-3,PXI1Slot4/2-3 + or PXI1Slot3/0,PXI1Slot3/2:3,PXI1Slot4/2:3, where PXI1Slot3 and PXI1Slot4 are + instrument resource names and 0, 2, and 3 are channels. + + If you pass "" for this control, all channels of the instrument(s) are included in + the session. + + reset (bool): Specifies whether to reset channel(s) during the initialization procedure. + The default is False. + + To place channel(s) in a known startup state when creating a new session, set + **reset** to True. This action is equivalent to using the reset + method immediately after initializing the session. + + To open a session and leave the channel(s) in an existing configuration without + passing through a transitional output state, set **reset** to False. Next, configure + the channel(s) as in the previous session, change the desired settings, and then + call the initiate method to write both settings. + + option_string (str): Specifies the initial value of certain properties for the session. + The syntax for **optionString** is a list of properties with an assigned value where + 1 is True and 0 is False. For example: + + Simulate=0, DriverSetup=Model:; BoardType: + + To simulate a multi-instrument session, set Simulate to 1 and list multiple + instruments for DriverSetup. For example: + + Simulate=1, DriverSetup=ResourceName:; Model:; + BoardType: & ResourceName:; Model:; + BoardType: + + You do not have to specify a value for all the properties. If you do not specify a + value for a property, the default value is used. + + For more information about simulating a device, refer to `Simulating an + Instrument `__. + + + Returns: + vi (int): Returns a session handle that you use to identify the session in all + subsequent NI-DCPower method calls. + + ''' + vi = self._interpreter.initialize_with_independent_channels(resource_name, reset, option_string) + return vi + + @ivi_synchronized + def get_channel_names(self, indices): + '''get_channel_names + + Returns a list of channel names for the given channel indices. + + Args: + indices (basic sequence types or str or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + Returns: + names (list of str): The channel name(s) at the specified indices. + + ''' + return self._get_channel_names(indices) + + @ivi_synchronized + def read_current_temperature(self): + r'''read_current_temperature + + Returns the current onboard **temperature**, in degrees Celsius, of the + device. + + Returns: + temperature (float): Returns the onboard **temperature**, in degrees Celsius, of the device. + + ''' + temperature = self._interpreter.read_current_temperature() + return temperature + + @ivi_synchronized + def reset_device(self): + r'''reset_device + + Resets the device to a known state. The method disables power + generation, resets session properties to their default values, clears + errors such as overtemperature and unexpected loss of auxiliary power, + commits the session properties, and leaves the session in the + Uncommitted state. This method also performs a hard reset on the + device and driver software. This method has the same functionality as + using reset in Measurement & Automation Explorer. Refer to the + `Programming + States `__ topic for + more information about NI-DCPower software states. + + This will also open the output relay on devices that have an output + relay. + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + ''' + self._interpreter.reset_device() + + @ivi_synchronized + def reset_with_defaults(self): + r'''reset_with_defaults + + Resets the device to a known state. This method disables power + generation, resets session properties to their default values, commits + the session properties, and leaves the session in the + `Running `__ + state. In addition to exhibiting the behavior of the reset + method, this method can assign user-defined default values for + configurable properties from the IVI configuration. + ''' + self._interpreter.reset_with_defaults() + + def _close(self): + r'''_close + + Closes the session specified in **vi** and deallocates the resources + that NI-DCPower reserves. If power output is enabled when you call this + method, the channels remain in their existing state and + continue providing power. Use the ConfigureOutputEnabled + method to disable power output on a per channel basis. Use the + reset method to disable power output on all channel(s). + + **Related Topics:** + + `Programming + States `__ + + Note: + NI-DCPower uses the terms "source" and "output". However, while sinking with electronic loads and SMUs these correspond to "sinking" and "input", respectively. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Performs the device self-test routine and returns the test result(s). + Calling this method implicitly calls the reset method. + + When calling self_test with the PXIe-4162/4163, specify all + channels of your PXIe-4162/4163 with the channels input of + __init__. You cannot self test a subset of + PXIe-4162/4163 channels. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+-------------------+ + | Self-Test Code | Description | + +================+===================+ + | 0 | Self test passed. | + +----------------+-------------------+ + | 1 | Self test failed. | + +----------------+-------------------+ + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Performs the device self-test routine and returns the test result(s). + Calling this method implicitly calls the reset method. + + When calling self_test with the PXIe-4162/4163, specify all + channels of your PXIe-4162/4163 with the channels input of + __init__. You cannot self test a subset of + PXIe-4162/4163 channels. + + Returns: + self_test_result (int): Returns the value result from the device self-test. + + +----------------+-------------------+ + | Self-Test Code | Description | + +================+===================+ + | 0 | Self test passed. | + +----------------+-------------------+ + | 1 | Self test failed. | + +----------------+-------------------+ + + self_test_message (str): Returns the self-test result message. The size of this array must be at + least 256 bytes. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/nidcpower/nidcpower/unit_tests/_matchers.py b/generated/nidcpower/nidcpower/unit_tests/_matchers.py new file mode 100644 index 0000000000..6e8e651bf0 --- /dev/null +++ b/generated/nidcpower/nidcpower/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nidcpower._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nidcpower/nidcpower/unit_tests/_mock_helper.py b/generated/nidcpower/nidcpower/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..0a79383ca5 --- /dev/null +++ b/generated/nidcpower/nidcpower/unit_tests/_mock_helper.py @@ -0,0 +1,1074 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['AbortWithChannels'] = {} + self._defaults['AbortWithChannels']['return'] = 0 + self._defaults['CalSelfCalibrate'] = {} + self._defaults['CalSelfCalibrate']['return'] = 0 + self._defaults['ClearLatchedOutputCutoffState'] = {} + self._defaults['ClearLatchedOutputCutoffState']['return'] = 0 + self._defaults['CommitWithChannels'] = {} + self._defaults['CommitWithChannels']['return'] = 0 + self._defaults['ConfigureApertureTime'] = {} + self._defaults['ConfigureApertureTime']['return'] = 0 + self._defaults['ConfigureLCRCompensation'] = {} + self._defaults['ConfigureLCRCompensation']['return'] = 0 + self._defaults['ConfigureLCRCustomCableCompensation'] = {} + self._defaults['ConfigureLCRCustomCableCompensation']['return'] = 0 + self._defaults['CreateAdvancedSequenceCommitStepWithChannels'] = {} + self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] = 0 + self._defaults['CreateAdvancedSequenceStepWithChannels'] = {} + self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] = 0 + self._defaults['CreateAdvancedSequenceWithChannels'] = {} + self._defaults['CreateAdvancedSequenceWithChannels']['return'] = 0 + self._defaults['DeleteAdvancedSequenceWithChannels'] = {} + self._defaults['DeleteAdvancedSequenceWithChannels']['return'] = 0 + self._defaults['Disable'] = {} + self._defaults['Disable']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer'] = {} + self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None + self._defaults['ExportAttributeConfigurationFile'] = {} + self._defaults['ExportAttributeConfigurationFile']['return'] = 0 + self._defaults['FancyInitialize'] = {} + self._defaults['FancyInitialize']['return'] = 0 + self._defaults['FancyInitialize']['vi'] = None + self._defaults['FetchMultiple'] = {} + self._defaults['FetchMultiple']['return'] = 0 + self._defaults['FetchMultiple']['voltageMeasurements'] = None + self._defaults['FetchMultiple']['currentMeasurements'] = None + self._defaults['FetchMultiple']['inCompliance'] = None + self._defaults['FetchMultiple']['actualCount'] = None + self._defaults['FetchMultipleLCR'] = {} + self._defaults['FetchMultipleLCR']['return'] = 0 + self._defaults['FetchMultipleLCR']['measurements'] = None + self._defaults['FetchMultipleLCR']['actualCount'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['attributeValue'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['attributeValue'] = None + self._defaults['GetAttributeViInt64'] = {} + self._defaults['GetAttributeViInt64']['return'] = 0 + self._defaults['GetAttributeViInt64']['attributeValue'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['attributeValue'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['attributeValue'] = None + self._defaults['GetChannelName'] = {} + self._defaults['GetChannelName']['return'] = 0 + self._defaults['GetChannelName']['channelName'] = None + self._defaults['GetChannelNameFromString'] = {} + self._defaults['GetChannelNameFromString']['return'] = 0 + self._defaults['GetChannelNameFromString']['channelName'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['code'] = None + self._defaults['GetError']['description'] = None + self._defaults['GetExtCalLastDateAndTime'] = {} + self._defaults['GetExtCalLastDateAndTime']['return'] = 0 + self._defaults['GetExtCalLastDateAndTime']['year'] = None + self._defaults['GetExtCalLastDateAndTime']['month'] = None + self._defaults['GetExtCalLastDateAndTime']['day'] = None + self._defaults['GetExtCalLastDateAndTime']['hour'] = None + self._defaults['GetExtCalLastDateAndTime']['minute'] = None + self._defaults['GetExtCalLastTemp'] = {} + self._defaults['GetExtCalLastTemp']['return'] = 0 + self._defaults['GetExtCalLastTemp']['temperature'] = None + self._defaults['GetExtCalRecommendedInterval'] = {} + self._defaults['GetExtCalRecommendedInterval']['return'] = 0 + self._defaults['GetExtCalRecommendedInterval']['months'] = None + self._defaults['GetLCRCompensationData'] = {} + self._defaults['GetLCRCompensationData']['return'] = 0 + self._defaults['GetLCRCompensationData']['compensationData'] = None + self._defaults['GetLCRCompensationLastDateAndTime'] = {} + self._defaults['GetLCRCompensationLastDateAndTime']['return'] = 0 + self._defaults['GetLCRCompensationLastDateAndTime']['year'] = None + self._defaults['GetLCRCompensationLastDateAndTime']['month'] = None + self._defaults['GetLCRCompensationLastDateAndTime']['day'] = None + self._defaults['GetLCRCompensationLastDateAndTime']['hour'] = None + self._defaults['GetLCRCompensationLastDateAndTime']['minute'] = None + self._defaults['GetLCRCustomCableCompensationData'] = {} + self._defaults['GetLCRCustomCableCompensationData']['return'] = 0 + self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'] = None + self._defaults['GetSelfCalLastDateAndTime'] = {} + self._defaults['GetSelfCalLastDateAndTime']['return'] = 0 + self._defaults['GetSelfCalLastDateAndTime']['year'] = None + self._defaults['GetSelfCalLastDateAndTime']['month'] = None + self._defaults['GetSelfCalLastDateAndTime']['day'] = None + self._defaults['GetSelfCalLastDateAndTime']['hour'] = None + self._defaults['GetSelfCalLastDateAndTime']['minute'] = None + self._defaults['GetSelfCalLastTemp'] = {} + self._defaults['GetSelfCalLastTemp']['return'] = 0 + self._defaults['GetSelfCalLastTemp']['temperature'] = None + self._defaults['ImportAttributeConfigurationBuffer'] = {} + self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ImportAttributeConfigurationFile'] = {} + self._defaults['ImportAttributeConfigurationFile']['return'] = 0 + self._defaults['InitializeWithChannels'] = {} + self._defaults['InitializeWithChannels']['return'] = 0 + self._defaults['InitializeWithChannels']['vi'] = None + self._defaults['InitializeWithIndependentChannels'] = {} + self._defaults['InitializeWithIndependentChannels']['return'] = 0 + self._defaults['InitializeWithIndependentChannels']['vi'] = None + self._defaults['InitiateWithChannels'] = {} + self._defaults['InitiateWithChannels']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['Measure'] = {} + self._defaults['Measure']['return'] = 0 + self._defaults['Measure']['measurement'] = None + self._defaults['MeasureMultiple'] = {} + self._defaults['MeasureMultiple']['return'] = 0 + self._defaults['MeasureMultiple']['voltageMeasurements'] = None + self._defaults['MeasureMultiple']['currentMeasurements'] = None + self._defaults['MeasureMultipleLCR'] = {} + self._defaults['MeasureMultipleLCR']['return'] = 0 + self._defaults['MeasureMultipleLCR']['measurements'] = None + self._defaults['ParseChannelCount'] = {} + self._defaults['ParseChannelCount']['return'] = 0 + self._defaults['ParseChannelCount']['numberOfChannels'] = None + self._defaults['PerformLCRLoadCompensation'] = {} + self._defaults['PerformLCRLoadCompensation']['return'] = 0 + self._defaults['PerformLCROpenCompensation'] = {} + self._defaults['PerformLCROpenCompensation']['return'] = 0 + self._defaults['PerformLCROpenCustomCableCompensation'] = {} + self._defaults['PerformLCROpenCustomCableCompensation']['return'] = 0 + self._defaults['PerformLCRShortCompensation'] = {} + self._defaults['PerformLCRShortCompensation']['return'] = 0 + self._defaults['PerformLCRShortCustomCableCompensation'] = {} + self._defaults['PerformLCRShortCustomCableCompensation']['return'] = 0 + self._defaults['QueryInCompliance'] = {} + self._defaults['QueryInCompliance']['return'] = 0 + self._defaults['QueryInCompliance']['inCompliance'] = None + self._defaults['QueryLatchedOutputCutoffState'] = {} + self._defaults['QueryLatchedOutputCutoffState']['return'] = 0 + self._defaults['QueryLatchedOutputCutoffState']['outputCutoffState'] = None + self._defaults['QueryMaxCurrentLimit'] = {} + self._defaults['QueryMaxCurrentLimit']['return'] = 0 + self._defaults['QueryMaxCurrentLimit']['maxCurrentLimit'] = None + self._defaults['QueryMaxVoltageLevel'] = {} + self._defaults['QueryMaxVoltageLevel']['return'] = 0 + self._defaults['QueryMaxVoltageLevel']['maxVoltageLevel'] = None + self._defaults['QueryMinCurrentLimit'] = {} + self._defaults['QueryMinCurrentLimit']['return'] = 0 + self._defaults['QueryMinCurrentLimit']['minCurrentLimit'] = None + self._defaults['QueryOutputState'] = {} + self._defaults['QueryOutputState']['return'] = 0 + self._defaults['QueryOutputState']['inState'] = None + self._defaults['ReadCurrentTemperature'] = {} + self._defaults['ReadCurrentTemperature']['return'] = 0 + self._defaults['ReadCurrentTemperature']['temperature'] = None + self._defaults['ResetDevice'] = {} + self._defaults['ResetDevice']['return'] = 0 + self._defaults['ResetWithChannels'] = {} + self._defaults['ResetWithChannels']['return'] = 0 + self._defaults['ResetWithDefaults'] = {} + self._defaults['ResetWithDefaults']['return'] = 0 + self._defaults['SendSoftwareEdgeTriggerWithChannels'] = {} + self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViInt64'] = {} + self._defaults['SetAttributeViInt64']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['SetSequence'] = {} + self._defaults['SetSequence']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['WaitForEventWithChannels'] = {} + self._defaults['WaitForEventWithChannels']['return'] = 0 + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niDCPower_AbortWithChannels(self, vi, channel_name): # noqa: N802 + if self._defaults['AbortWithChannels']['return'] != 0: + return self._defaults['AbortWithChannels']['return'] + return self._defaults['AbortWithChannels']['return'] + + def niDCPower_CalSelfCalibrate(self, vi, channel_name): # noqa: N802 + if self._defaults['CalSelfCalibrate']['return'] != 0: + return self._defaults['CalSelfCalibrate']['return'] + return self._defaults['CalSelfCalibrate']['return'] + + def niDCPower_ClearLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason): # noqa: N802 + if self._defaults['ClearLatchedOutputCutoffState']['return'] != 0: + return self._defaults['ClearLatchedOutputCutoffState']['return'] + return self._defaults['ClearLatchedOutputCutoffState']['return'] + + def niDCPower_CommitWithChannels(self, vi, channel_name): # noqa: N802 + if self._defaults['CommitWithChannels']['return'] != 0: + return self._defaults['CommitWithChannels']['return'] + return self._defaults['CommitWithChannels']['return'] + + def niDCPower_ConfigureApertureTime(self, vi, channel_name, aperture_time, units): # noqa: N802 + if self._defaults['ConfigureApertureTime']['return'] != 0: + return self._defaults['ConfigureApertureTime']['return'] + return self._defaults['ConfigureApertureTime']['return'] + + def niDCPower_ConfigureLCRCompensation(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 + if self._defaults['ConfigureLCRCompensation']['return'] != 0: + return self._defaults['ConfigureLCRCompensation']['return'] + return self._defaults['ConfigureLCRCompensation']['return'] + + def niDCPower_ConfigureLCRCustomCableCompensation(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 + if self._defaults['ConfigureLCRCustomCableCompensation']['return'] != 0: + return self._defaults['ConfigureLCRCustomCableCompensation']['return'] + return self._defaults['ConfigureLCRCustomCableCompensation']['return'] + + def niDCPower_CreateAdvancedSequenceCommitStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 + if self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] != 0: + return self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] + return self._defaults['CreateAdvancedSequenceCommitStepWithChannels']['return'] + + def niDCPower_CreateAdvancedSequenceStepWithChannels(self, vi, channel_name, set_as_active_step): # noqa: N802 + if self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] != 0: + return self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] + return self._defaults['CreateAdvancedSequenceStepWithChannels']['return'] + + def niDCPower_CreateAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name, attribute_id_count, attribute_ids, set_as_active_sequence): # noqa: N802 + if self._defaults['CreateAdvancedSequenceWithChannels']['return'] != 0: + return self._defaults['CreateAdvancedSequenceWithChannels']['return'] + return self._defaults['CreateAdvancedSequenceWithChannels']['return'] + + def niDCPower_DeleteAdvancedSequenceWithChannels(self, vi, channel_name, sequence_name): # noqa: N802 + if self._defaults['DeleteAdvancedSequenceWithChannels']['return'] != 0: + return self._defaults['DeleteAdvancedSequenceWithChannels']['return'] + return self._defaults['DeleteAdvancedSequenceWithChannels']['return'] + + def niDCPower_Disable(self, vi): # noqa: N802 + if self._defaults['Disable']['return'] != 0: + return self._defaults['Disable']['return'] + return self._defaults['Disable']['return'] + + def niDCPower_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + # configuration + if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: + raise MockFunctionCallError("niDCPower_ExportAttributeConfigurationBuffer", param='configuration') + if size.value == 0: + return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) + try: + configuration_ref = configuration.contents + except AttributeError: + configuration_ref = configuration + for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): + configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + + def niDCPower_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ExportAttributeConfigurationFile']['return'] + return self._defaults['ExportAttributeConfigurationFile']['return'] + + def niDCPower_FancyInitialize(self, resource_name, channels, reset, option_string, vi, independent_channels): # noqa: N802 + if self._defaults['FancyInitialize']['return'] != 0: + return self._defaults['FancyInitialize']['return'] + # vi + if self._defaults['FancyInitialize']['vi'] is None: + raise MockFunctionCallError("niDCPower_FancyInitialize", param='vi') + if vi is not None: + vi.contents.value = self._defaults['FancyInitialize']['vi'] + return self._defaults['FancyInitialize']['return'] + + def niDCPower_FetchMultiple(self, vi, channel_name, timeout, count, voltage_measurements, current_measurements, in_compliance, actual_count): # noqa: N802 + if self._defaults['FetchMultiple']['return'] != 0: + return self._defaults['FetchMultiple']['return'] + # voltage_measurements + if self._defaults['FetchMultiple']['voltageMeasurements'] is None: + raise MockFunctionCallError("niDCPower_FetchMultiple", param='voltageMeasurements') + test_value = self._defaults['FetchMultiple']['voltageMeasurements'] + try: + voltage_measurements_ref = voltage_measurements.contents + except AttributeError: + voltage_measurements_ref = voltage_measurements + assert len(voltage_measurements_ref) >= len(test_value) + for i in range(len(test_value)): + voltage_measurements_ref[i] = test_value[i] + # current_measurements + if self._defaults['FetchMultiple']['currentMeasurements'] is None: + raise MockFunctionCallError("niDCPower_FetchMultiple", param='currentMeasurements') + test_value = self._defaults['FetchMultiple']['currentMeasurements'] + try: + current_measurements_ref = current_measurements.contents + except AttributeError: + current_measurements_ref = current_measurements + assert len(current_measurements_ref) >= len(test_value) + for i in range(len(test_value)): + current_measurements_ref[i] = test_value[i] + # in_compliance + if self._defaults['FetchMultiple']['inCompliance'] is None: + raise MockFunctionCallError("niDCPower_FetchMultiple", param='inCompliance') + test_value = self._defaults['FetchMultiple']['inCompliance'] + try: + in_compliance_ref = in_compliance.contents + except AttributeError: + in_compliance_ref = in_compliance + assert len(in_compliance_ref) >= len(test_value) + for i in range(len(test_value)): + in_compliance_ref[i] = test_value[i] + # actual_count + if self._defaults['FetchMultiple']['actualCount'] is None: + raise MockFunctionCallError("niDCPower_FetchMultiple", param='actualCount') + if actual_count is not None: + actual_count.contents.value = self._defaults['FetchMultiple']['actualCount'] + return self._defaults['FetchMultiple']['return'] + + def niDCPower_FetchMultipleLCR(self, vi, channel_name, timeout, count, measurements, actual_count): # noqa: N802 + if self._defaults['FetchMultipleLCR']['return'] != 0: + return self._defaults['FetchMultipleLCR']['return'] + # measurements + if self._defaults['FetchMultipleLCR']['measurements'] is None: + raise MockFunctionCallError("niDCPower_FetchMultipleLCR", param='measurements') + test_value = self._defaults['FetchMultipleLCR']['measurements'] + try: + measurements_ref = measurements.contents + except AttributeError: + measurements_ref = measurements + assert len(measurements_ref) >= len(test_value) + for i in range(len(test_value)): + measurements_ref[i] = test_value[i] + # actual_count + if self._defaults['FetchMultipleLCR']['actualCount'] is None: + raise MockFunctionCallError("niDCPower_FetchMultipleLCR", param='actualCount') + if actual_count is not None: + actual_count.contents.value = self._defaults['FetchMultipleLCR']['actualCount'] + return self._defaults['FetchMultipleLCR']['return'] + + def niDCPower_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # attribute_value + if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: + raise MockFunctionCallError("niDCPower_GetAttributeViBoolean", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niDCPower_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # attribute_value + if self._defaults['GetAttributeViInt32']['attributeValue'] is None: + raise MockFunctionCallError("niDCPower_GetAttributeViInt32", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] + return self._defaults['GetAttributeViInt32']['return'] + + def niDCPower_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt64']['return'] != 0: + return self._defaults['GetAttributeViInt64']['return'] + # attribute_value + if self._defaults['GetAttributeViInt64']['attributeValue'] is None: + raise MockFunctionCallError("niDCPower_GetAttributeViInt64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt64']['attributeValue'] + return self._defaults['GetAttributeViInt64']['return'] + + def niDCPower_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # attribute_value + if self._defaults['GetAttributeViReal64']['attributeValue'] is None: + raise MockFunctionCallError("niDCPower_GetAttributeViReal64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] + return self._defaults['GetAttributeViReal64']['return'] + + def niDCPower_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # attribute_value + if self._defaults['GetAttributeViString']['attributeValue'] is None: + raise MockFunctionCallError("niDCPower_GetAttributeViString", param='attributeValue') + if buffer_size.value == 0: + return len(self._defaults['GetAttributeViString']['attributeValue']) + attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niDCPower_GetChannelName(self, vi, index, buffer_size, channel_name): # noqa: N802 + if self._defaults['GetChannelName']['return'] != 0: + return self._defaults['GetChannelName']['return'] + # channel_name + if self._defaults['GetChannelName']['channelName'] is None: + raise MockFunctionCallError("niDCPower_GetChannelName", param='channelName') + if buffer_size.value == 0: + return len(self._defaults['GetChannelName']['channelName']) + channel_name.value = self._defaults['GetChannelName']['channelName'].encode('ascii') + return self._defaults['GetChannelName']['return'] + + def niDCPower_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 + if self._defaults['GetChannelNameFromString']['return'] != 0: + return self._defaults['GetChannelNameFromString']['return'] + # names + if self._defaults['GetChannelNameFromString']['channelName'] is None: + raise MockFunctionCallError("niDCPower_GetChannelNameFromString", param='channelName') + if buffer_size.value == 0: + return len(self._defaults['GetChannelNameFromString']['channelName']) + names.value = self._defaults['GetChannelNameFromString']['channelName'].encode('ascii') + return self._defaults['GetChannelNameFromString']['return'] + + def niDCPower_GetError(self, vi, code, buffer_size, description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # code + if self._defaults['GetError']['code'] is None: + raise MockFunctionCallError("niDCPower_GetError", param='code') + if code is not None: + code.contents.value = self._defaults['GetError']['code'] + # description + if self._defaults['GetError']['description'] is None: + raise MockFunctionCallError("niDCPower_GetError", param='description') + if buffer_size.value == 0: + return len(self._defaults['GetError']['description']) + description.value = self._defaults['GetError']['description'].encode('ascii') + return self._defaults['GetError']['return'] + + def niDCPower_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetExtCalLastDateAndTime']['return'] != 0: + return self._defaults['GetExtCalLastDateAndTime']['return'] + # year + if self._defaults['GetExtCalLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetExtCalLastDateAndTime']['year'] + # month + if self._defaults['GetExtCalLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetExtCalLastDateAndTime']['month'] + # day + if self._defaults['GetExtCalLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetExtCalLastDateAndTime']['day'] + # hour + if self._defaults['GetExtCalLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetExtCalLastDateAndTime']['hour'] + # minute + if self._defaults['GetExtCalLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetExtCalLastDateAndTime']['minute'] + return self._defaults['GetExtCalLastDateAndTime']['return'] + + def niDCPower_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 + if self._defaults['GetExtCalLastTemp']['return'] != 0: + return self._defaults['GetExtCalLastTemp']['return'] + # temperature + if self._defaults['GetExtCalLastTemp']['temperature'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalLastTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetExtCalLastTemp']['temperature'] + return self._defaults['GetExtCalLastTemp']['return'] + + def niDCPower_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: + return self._defaults['GetExtCalRecommendedInterval']['return'] + # months + if self._defaults['GetExtCalRecommendedInterval']['months'] is None: + raise MockFunctionCallError("niDCPower_GetExtCalRecommendedInterval", param='months') + if months is not None: + months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] + return self._defaults['GetExtCalRecommendedInterval']['return'] + + def niDCPower_GetLCRCompensationData(self, vi, channel_name, compensation_data_size, compensation_data): # noqa: N802 + if self._defaults['GetLCRCompensationData']['return'] != 0: + return self._defaults['GetLCRCompensationData']['return'] + # compensation_data + if self._defaults['GetLCRCompensationData']['compensationData'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCompensationData", param='compensationData') + if compensation_data_size.value == 0: + return len(self._defaults['GetLCRCompensationData']['compensationData']) + try: + compensation_data_ref = compensation_data.contents + except AttributeError: + compensation_data_ref = compensation_data + for i in range(len(self._defaults['GetLCRCompensationData']['compensationData'])): + compensation_data_ref[i] = self._defaults['GetLCRCompensationData']['compensationData'][i] + return self._defaults['GetLCRCompensationData']['return'] + + def niDCPower_GetLCRCompensationLastDateAndTime(self, vi, channel_name, compensation_type, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetLCRCompensationLastDateAndTime']['return'] != 0: + return self._defaults['GetLCRCompensationLastDateAndTime']['return'] + # year + if self._defaults['GetLCRCompensationLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['year'] + # month + if self._defaults['GetLCRCompensationLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['month'] + # day + if self._defaults['GetLCRCompensationLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['day'] + # hour + if self._defaults['GetLCRCompensationLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['hour'] + # minute + if self._defaults['GetLCRCompensationLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetLCRCompensationLastDateAndTime']['minute'] + return self._defaults['GetLCRCompensationLastDateAndTime']['return'] + + def niDCPower_GetLCRCustomCableCompensationData(self, vi, channel_name, custom_cable_compensation_data_size, custom_cable_compensation_data): # noqa: N802 + if self._defaults['GetLCRCustomCableCompensationData']['return'] != 0: + return self._defaults['GetLCRCustomCableCompensationData']['return'] + # custom_cable_compensation_data + if self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'] is None: + raise MockFunctionCallError("niDCPower_GetLCRCustomCableCompensationData", param='customCableCompensationData') + if custom_cable_compensation_data_size.value == 0: + return len(self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData']) + try: + custom_cable_compensation_data_ref = custom_cable_compensation_data.contents + except AttributeError: + custom_cable_compensation_data_ref = custom_cable_compensation_data + for i in range(len(self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'])): + custom_cable_compensation_data_ref[i] = self._defaults['GetLCRCustomCableCompensationData']['customCableCompensationData'][i] + return self._defaults['GetLCRCustomCableCompensationData']['return'] + + def niDCPower_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetSelfCalLastDateAndTime']['return'] != 0: + return self._defaults['GetSelfCalLastDateAndTime']['return'] + # year + if self._defaults['GetSelfCalLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetSelfCalLastDateAndTime']['year'] + # month + if self._defaults['GetSelfCalLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetSelfCalLastDateAndTime']['month'] + # day + if self._defaults['GetSelfCalLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetSelfCalLastDateAndTime']['day'] + # hour + if self._defaults['GetSelfCalLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetSelfCalLastDateAndTime']['hour'] + # minute + if self._defaults['GetSelfCalLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetSelfCalLastDateAndTime']['minute'] + return self._defaults['GetSelfCalLastDateAndTime']['return'] + + def niDCPower_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 + if self._defaults['GetSelfCalLastTemp']['return'] != 0: + return self._defaults['GetSelfCalLastTemp']['return'] + # temperature + if self._defaults['GetSelfCalLastTemp']['temperature'] is None: + raise MockFunctionCallError("niDCPower_GetSelfCalLastTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetSelfCalLastTemp']['temperature'] + return self._defaults['GetSelfCalLastTemp']['return'] + + def niDCPower_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + + def niDCPower_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ImportAttributeConfigurationFile']['return'] + return self._defaults['ImportAttributeConfigurationFile']['return'] + + def niDCPower_InitializeWithChannels(self, resource_name, channels, reset, option_string, vi): # noqa: N802 + if self._defaults['InitializeWithChannels']['return'] != 0: + return self._defaults['InitializeWithChannels']['return'] + # vi + if self._defaults['InitializeWithChannels']['vi'] is None: + raise MockFunctionCallError("niDCPower_InitializeWithChannels", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitializeWithChannels']['vi'] + return self._defaults['InitializeWithChannels']['return'] + + def niDCPower_InitializeWithIndependentChannels(self, resource_name, reset, option_string, vi): # noqa: N802 + if self._defaults['InitializeWithIndependentChannels']['return'] != 0: + return self._defaults['InitializeWithIndependentChannels']['return'] + # vi + if self._defaults['InitializeWithIndependentChannels']['vi'] is None: + raise MockFunctionCallError("niDCPower_InitializeWithIndependentChannels", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitializeWithIndependentChannels']['vi'] + return self._defaults['InitializeWithIndependentChannels']['return'] + + def niDCPower_InitiateWithChannels(self, vi, channel_name): # noqa: N802 + if self._defaults['InitiateWithChannels']['return'] != 0: + return self._defaults['InitiateWithChannels']['return'] + return self._defaults['InitiateWithChannels']['return'] + + def niDCPower_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niDCPower_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niDCPower_Measure(self, vi, channel_name, measurement_type, measurement): # noqa: N802 + if self._defaults['Measure']['return'] != 0: + return self._defaults['Measure']['return'] + # measurement + if self._defaults['Measure']['measurement'] is None: + raise MockFunctionCallError("niDCPower_Measure", param='measurement') + if measurement is not None: + measurement.contents.value = self._defaults['Measure']['measurement'] + return self._defaults['Measure']['return'] + + def niDCPower_MeasureMultiple(self, vi, channel_name, voltage_measurements, current_measurements): # noqa: N802 + if self._defaults['MeasureMultiple']['return'] != 0: + return self._defaults['MeasureMultiple']['return'] + # voltage_measurements + if self._defaults['MeasureMultiple']['voltageMeasurements'] is None: + raise MockFunctionCallError("niDCPower_MeasureMultiple", param='voltageMeasurements') + test_value = self._defaults['MeasureMultiple']['voltageMeasurements'] + try: + voltage_measurements_ref = voltage_measurements.contents + except AttributeError: + voltage_measurements_ref = voltage_measurements + assert len(voltage_measurements_ref) >= len(test_value) + for i in range(len(test_value)): + voltage_measurements_ref[i] = test_value[i] + # current_measurements + if self._defaults['MeasureMultiple']['currentMeasurements'] is None: + raise MockFunctionCallError("niDCPower_MeasureMultiple", param='currentMeasurements') + test_value = self._defaults['MeasureMultiple']['currentMeasurements'] + try: + current_measurements_ref = current_measurements.contents + except AttributeError: + current_measurements_ref = current_measurements + assert len(current_measurements_ref) >= len(test_value) + for i in range(len(test_value)): + current_measurements_ref[i] = test_value[i] + return self._defaults['MeasureMultiple']['return'] + + def niDCPower_MeasureMultipleLCR(self, vi, channel_name, measurements): # noqa: N802 + if self._defaults['MeasureMultipleLCR']['return'] != 0: + return self._defaults['MeasureMultipleLCR']['return'] + # measurements + if self._defaults['MeasureMultipleLCR']['measurements'] is None: + raise MockFunctionCallError("niDCPower_MeasureMultipleLCR", param='measurements') + test_value = self._defaults['MeasureMultipleLCR']['measurements'] + try: + measurements_ref = measurements.contents + except AttributeError: + measurements_ref = measurements + assert len(measurements_ref) >= len(test_value) + for i in range(len(test_value)): + measurements_ref[i] = test_value[i] + return self._defaults['MeasureMultipleLCR']['return'] + + def niDCPower_ParseChannelCount(self, vi, channels_string, number_of_channels): # noqa: N802 + if self._defaults['ParseChannelCount']['return'] != 0: + return self._defaults['ParseChannelCount']['return'] + # number_of_channels + if self._defaults['ParseChannelCount']['numberOfChannels'] is None: + raise MockFunctionCallError("niDCPower_ParseChannelCount", param='numberOfChannels') + if number_of_channels is not None: + number_of_channels.contents.value = self._defaults['ParseChannelCount']['numberOfChannels'] + return self._defaults['ParseChannelCount']['return'] + + def niDCPower_PerformLCRLoadCompensation(self, vi, channel_name, num_compensation_spots, compensation_spots): # noqa: N802 + if self._defaults['PerformLCRLoadCompensation']['return'] != 0: + return self._defaults['PerformLCRLoadCompensation']['return'] + return self._defaults['PerformLCRLoadCompensation']['return'] + + def niDCPower_PerformLCROpenCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 + if self._defaults['PerformLCROpenCompensation']['return'] != 0: + return self._defaults['PerformLCROpenCompensation']['return'] + return self._defaults['PerformLCROpenCompensation']['return'] + + def niDCPower_PerformLCROpenCustomCableCompensation(self, vi, channel_name): # noqa: N802 + if self._defaults['PerformLCROpenCustomCableCompensation']['return'] != 0: + return self._defaults['PerformLCROpenCustomCableCompensation']['return'] + return self._defaults['PerformLCROpenCustomCableCompensation']['return'] + + def niDCPower_PerformLCRShortCompensation(self, vi, channel_name, num_frequencies, additional_frequencies): # noqa: N802 + if self._defaults['PerformLCRShortCompensation']['return'] != 0: + return self._defaults['PerformLCRShortCompensation']['return'] + return self._defaults['PerformLCRShortCompensation']['return'] + + def niDCPower_PerformLCRShortCustomCableCompensation(self, vi, channel_name): # noqa: N802 + if self._defaults['PerformLCRShortCustomCableCompensation']['return'] != 0: + return self._defaults['PerformLCRShortCustomCableCompensation']['return'] + return self._defaults['PerformLCRShortCustomCableCompensation']['return'] + + def niDCPower_QueryInCompliance(self, vi, channel_name, in_compliance): # noqa: N802 + if self._defaults['QueryInCompliance']['return'] != 0: + return self._defaults['QueryInCompliance']['return'] + # in_compliance + if self._defaults['QueryInCompliance']['inCompliance'] is None: + raise MockFunctionCallError("niDCPower_QueryInCompliance", param='inCompliance') + if in_compliance is not None: + in_compliance.contents.value = self._defaults['QueryInCompliance']['inCompliance'] + return self._defaults['QueryInCompliance']['return'] + + def niDCPower_QueryLatchedOutputCutoffState(self, vi, channel_name, output_cutoff_reason, output_cutoff_state): # noqa: N802 + if self._defaults['QueryLatchedOutputCutoffState']['return'] != 0: + return self._defaults['QueryLatchedOutputCutoffState']['return'] + # output_cutoff_state + if self._defaults['QueryLatchedOutputCutoffState']['outputCutoffState'] is None: + raise MockFunctionCallError("niDCPower_QueryLatchedOutputCutoffState", param='outputCutoffState') + if output_cutoff_state is not None: + output_cutoff_state.contents.value = self._defaults['QueryLatchedOutputCutoffState']['outputCutoffState'] + return self._defaults['QueryLatchedOutputCutoffState']['return'] + + def niDCPower_QueryMaxCurrentLimit(self, vi, channel_name, voltage_level, max_current_limit): # noqa: N802 + if self._defaults['QueryMaxCurrentLimit']['return'] != 0: + return self._defaults['QueryMaxCurrentLimit']['return'] + # max_current_limit + if self._defaults['QueryMaxCurrentLimit']['maxCurrentLimit'] is None: + raise MockFunctionCallError("niDCPower_QueryMaxCurrentLimit", param='maxCurrentLimit') + if max_current_limit is not None: + max_current_limit.contents.value = self._defaults['QueryMaxCurrentLimit']['maxCurrentLimit'] + return self._defaults['QueryMaxCurrentLimit']['return'] + + def niDCPower_QueryMaxVoltageLevel(self, vi, channel_name, current_limit, max_voltage_level): # noqa: N802 + if self._defaults['QueryMaxVoltageLevel']['return'] != 0: + return self._defaults['QueryMaxVoltageLevel']['return'] + # max_voltage_level + if self._defaults['QueryMaxVoltageLevel']['maxVoltageLevel'] is None: + raise MockFunctionCallError("niDCPower_QueryMaxVoltageLevel", param='maxVoltageLevel') + if max_voltage_level is not None: + max_voltage_level.contents.value = self._defaults['QueryMaxVoltageLevel']['maxVoltageLevel'] + return self._defaults['QueryMaxVoltageLevel']['return'] + + def niDCPower_QueryMinCurrentLimit(self, vi, channel_name, voltage_level, min_current_limit): # noqa: N802 + if self._defaults['QueryMinCurrentLimit']['return'] != 0: + return self._defaults['QueryMinCurrentLimit']['return'] + # min_current_limit + if self._defaults['QueryMinCurrentLimit']['minCurrentLimit'] is None: + raise MockFunctionCallError("niDCPower_QueryMinCurrentLimit", param='minCurrentLimit') + if min_current_limit is not None: + min_current_limit.contents.value = self._defaults['QueryMinCurrentLimit']['minCurrentLimit'] + return self._defaults['QueryMinCurrentLimit']['return'] + + def niDCPower_QueryOutputState(self, vi, channel_name, output_state, in_state): # noqa: N802 + if self._defaults['QueryOutputState']['return'] != 0: + return self._defaults['QueryOutputState']['return'] + # in_state + if self._defaults['QueryOutputState']['inState'] is None: + raise MockFunctionCallError("niDCPower_QueryOutputState", param='inState') + if in_state is not None: + in_state.contents.value = self._defaults['QueryOutputState']['inState'] + return self._defaults['QueryOutputState']['return'] + + def niDCPower_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 + if self._defaults['ReadCurrentTemperature']['return'] != 0: + return self._defaults['ReadCurrentTemperature']['return'] + # temperature + if self._defaults['ReadCurrentTemperature']['temperature'] is None: + raise MockFunctionCallError("niDCPower_ReadCurrentTemperature", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['ReadCurrentTemperature']['temperature'] + return self._defaults['ReadCurrentTemperature']['return'] + + def niDCPower_ResetDevice(self, vi): # noqa: N802 + if self._defaults['ResetDevice']['return'] != 0: + return self._defaults['ResetDevice']['return'] + return self._defaults['ResetDevice']['return'] + + def niDCPower_ResetWithChannels(self, vi, channel_name): # noqa: N802 + if self._defaults['ResetWithChannels']['return'] != 0: + return self._defaults['ResetWithChannels']['return'] + return self._defaults['ResetWithChannels']['return'] + + def niDCPower_ResetWithDefaults(self, vi): # noqa: N802 + if self._defaults['ResetWithDefaults']['return'] != 0: + return self._defaults['ResetWithDefaults']['return'] + return self._defaults['ResetWithDefaults']['return'] + + def niDCPower_SendSoftwareEdgeTriggerWithChannels(self, vi, channel_name, trigger): # noqa: N802 + if self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] != 0: + return self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] + return self._defaults['SendSoftwareEdgeTriggerWithChannels']['return'] + + def niDCPower_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niDCPower_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niDCPower_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt64']['return'] != 0: + return self._defaults['SetAttributeViInt64']['return'] + return self._defaults['SetAttributeViInt64']['return'] + + def niDCPower_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niDCPower_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niDCPower_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niDCPower_SetSequence(self, vi, channel_name, values, source_delays, size): # noqa: N802 + if self._defaults['SetSequence']['return'] != 0: + return self._defaults['SetSequence']['return'] + return self._defaults['SetSequence']['return'] + + def niDCPower_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niDCPower_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niDCPower_WaitForEventWithChannels(self, vi, channel_name, event_id, timeout): # noqa: N802 + if self._defaults['WaitForEventWithChannels']['return'] != 0: + return self._defaults['WaitForEventWithChannels']['return'] + return self._defaults['WaitForEventWithChannels']['return'] + + def niDCPower_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niDCPower_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niDCPower_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niDCPower_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niDCPower_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niDCPower_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niDCPower_AbortWithChannels.side_effect = MockFunctionCallError("niDCPower_AbortWithChannels") + mock_library.niDCPower_AbortWithChannels.return_value = 0 + mock_library.niDCPower_CalSelfCalibrate.side_effect = MockFunctionCallError("niDCPower_CalSelfCalibrate") + mock_library.niDCPower_CalSelfCalibrate.return_value = 0 + mock_library.niDCPower_ClearLatchedOutputCutoffState.side_effect = MockFunctionCallError("niDCPower_ClearLatchedOutputCutoffState") + mock_library.niDCPower_ClearLatchedOutputCutoffState.return_value = 0 + mock_library.niDCPower_CommitWithChannels.side_effect = MockFunctionCallError("niDCPower_CommitWithChannels") + mock_library.niDCPower_CommitWithChannels.return_value = 0 + mock_library.niDCPower_ConfigureApertureTime.side_effect = MockFunctionCallError("niDCPower_ConfigureApertureTime") + mock_library.niDCPower_ConfigureApertureTime.return_value = 0 + mock_library.niDCPower_ConfigureLCRCompensation.side_effect = MockFunctionCallError("niDCPower_ConfigureLCRCompensation") + mock_library.niDCPower_ConfigureLCRCompensation.return_value = 0 + mock_library.niDCPower_ConfigureLCRCustomCableCompensation.side_effect = MockFunctionCallError("niDCPower_ConfigureLCRCustomCableCompensation") + mock_library.niDCPower_ConfigureLCRCustomCableCompensation.return_value = 0 + mock_library.niDCPower_CreateAdvancedSequenceCommitStepWithChannels.side_effect = MockFunctionCallError("niDCPower_CreateAdvancedSequenceCommitStepWithChannels") + mock_library.niDCPower_CreateAdvancedSequenceCommitStepWithChannels.return_value = 0 + mock_library.niDCPower_CreateAdvancedSequenceStepWithChannels.side_effect = MockFunctionCallError("niDCPower_CreateAdvancedSequenceStepWithChannels") + mock_library.niDCPower_CreateAdvancedSequenceStepWithChannels.return_value = 0 + mock_library.niDCPower_CreateAdvancedSequenceWithChannels.side_effect = MockFunctionCallError("niDCPower_CreateAdvancedSequenceWithChannels") + mock_library.niDCPower_CreateAdvancedSequenceWithChannels.return_value = 0 + mock_library.niDCPower_DeleteAdvancedSequenceWithChannels.side_effect = MockFunctionCallError("niDCPower_DeleteAdvancedSequenceWithChannels") + mock_library.niDCPower_DeleteAdvancedSequenceWithChannels.return_value = 0 + mock_library.niDCPower_Disable.side_effect = MockFunctionCallError("niDCPower_Disable") + mock_library.niDCPower_Disable.return_value = 0 + mock_library.niDCPower_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDCPower_ExportAttributeConfigurationBuffer") + mock_library.niDCPower_ExportAttributeConfigurationBuffer.return_value = 0 + mock_library.niDCPower_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDCPower_ExportAttributeConfigurationFile") + mock_library.niDCPower_ExportAttributeConfigurationFile.return_value = 0 + mock_library.niDCPower_FancyInitialize.side_effect = MockFunctionCallError("niDCPower_FancyInitialize") + mock_library.niDCPower_FancyInitialize.return_value = 0 + mock_library.niDCPower_FetchMultiple.side_effect = MockFunctionCallError("niDCPower_FetchMultiple") + mock_library.niDCPower_FetchMultiple.return_value = 0 + mock_library.niDCPower_FetchMultipleLCR.side_effect = MockFunctionCallError("niDCPower_FetchMultipleLCR") + mock_library.niDCPower_FetchMultipleLCR.return_value = 0 + mock_library.niDCPower_GetAttributeViBoolean.side_effect = MockFunctionCallError("niDCPower_GetAttributeViBoolean") + mock_library.niDCPower_GetAttributeViBoolean.return_value = 0 + mock_library.niDCPower_GetAttributeViInt32.side_effect = MockFunctionCallError("niDCPower_GetAttributeViInt32") + mock_library.niDCPower_GetAttributeViInt32.return_value = 0 + mock_library.niDCPower_GetAttributeViInt64.side_effect = MockFunctionCallError("niDCPower_GetAttributeViInt64") + mock_library.niDCPower_GetAttributeViInt64.return_value = 0 + mock_library.niDCPower_GetAttributeViReal64.side_effect = MockFunctionCallError("niDCPower_GetAttributeViReal64") + mock_library.niDCPower_GetAttributeViReal64.return_value = 0 + mock_library.niDCPower_GetAttributeViString.side_effect = MockFunctionCallError("niDCPower_GetAttributeViString") + mock_library.niDCPower_GetAttributeViString.return_value = 0 + mock_library.niDCPower_GetChannelName.side_effect = MockFunctionCallError("niDCPower_GetChannelName") + mock_library.niDCPower_GetChannelName.return_value = 0 + mock_library.niDCPower_GetChannelNameFromString.side_effect = MockFunctionCallError("niDCPower_GetChannelNameFromString") + mock_library.niDCPower_GetChannelNameFromString.return_value = 0 + mock_library.niDCPower_GetError.side_effect = MockFunctionCallError("niDCPower_GetError") + mock_library.niDCPower_GetError.return_value = 0 + mock_library.niDCPower_GetExtCalLastDateAndTime.side_effect = MockFunctionCallError("niDCPower_GetExtCalLastDateAndTime") + mock_library.niDCPower_GetExtCalLastDateAndTime.return_value = 0 + mock_library.niDCPower_GetExtCalLastTemp.side_effect = MockFunctionCallError("niDCPower_GetExtCalLastTemp") + mock_library.niDCPower_GetExtCalLastTemp.return_value = 0 + mock_library.niDCPower_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niDCPower_GetExtCalRecommendedInterval") + mock_library.niDCPower_GetExtCalRecommendedInterval.return_value = 0 + mock_library.niDCPower_GetLCRCompensationData.side_effect = MockFunctionCallError("niDCPower_GetLCRCompensationData") + mock_library.niDCPower_GetLCRCompensationData.return_value = 0 + mock_library.niDCPower_GetLCRCompensationLastDateAndTime.side_effect = MockFunctionCallError("niDCPower_GetLCRCompensationLastDateAndTime") + mock_library.niDCPower_GetLCRCompensationLastDateAndTime.return_value = 0 + mock_library.niDCPower_GetLCRCustomCableCompensationData.side_effect = MockFunctionCallError("niDCPower_GetLCRCustomCableCompensationData") + mock_library.niDCPower_GetLCRCustomCableCompensationData.return_value = 0 + mock_library.niDCPower_GetSelfCalLastDateAndTime.side_effect = MockFunctionCallError("niDCPower_GetSelfCalLastDateAndTime") + mock_library.niDCPower_GetSelfCalLastDateAndTime.return_value = 0 + mock_library.niDCPower_GetSelfCalLastTemp.side_effect = MockFunctionCallError("niDCPower_GetSelfCalLastTemp") + mock_library.niDCPower_GetSelfCalLastTemp.return_value = 0 + mock_library.niDCPower_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDCPower_ImportAttributeConfigurationBuffer") + mock_library.niDCPower_ImportAttributeConfigurationBuffer.return_value = 0 + mock_library.niDCPower_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDCPower_ImportAttributeConfigurationFile") + mock_library.niDCPower_ImportAttributeConfigurationFile.return_value = 0 + mock_library.niDCPower_InitializeWithChannels.side_effect = MockFunctionCallError("niDCPower_InitializeWithChannels") + mock_library.niDCPower_InitializeWithChannels.return_value = 0 + mock_library.niDCPower_InitializeWithIndependentChannels.side_effect = MockFunctionCallError("niDCPower_InitializeWithIndependentChannels") + mock_library.niDCPower_InitializeWithIndependentChannels.return_value = 0 + mock_library.niDCPower_InitiateWithChannels.side_effect = MockFunctionCallError("niDCPower_InitiateWithChannels") + mock_library.niDCPower_InitiateWithChannels.return_value = 0 + mock_library.niDCPower_LockSession.side_effect = MockFunctionCallError("niDCPower_LockSession") + mock_library.niDCPower_LockSession.return_value = 0 + mock_library.niDCPower_Measure.side_effect = MockFunctionCallError("niDCPower_Measure") + mock_library.niDCPower_Measure.return_value = 0 + mock_library.niDCPower_MeasureMultiple.side_effect = MockFunctionCallError("niDCPower_MeasureMultiple") + mock_library.niDCPower_MeasureMultiple.return_value = 0 + mock_library.niDCPower_MeasureMultipleLCR.side_effect = MockFunctionCallError("niDCPower_MeasureMultipleLCR") + mock_library.niDCPower_MeasureMultipleLCR.return_value = 0 + mock_library.niDCPower_ParseChannelCount.side_effect = MockFunctionCallError("niDCPower_ParseChannelCount") + mock_library.niDCPower_ParseChannelCount.return_value = 0 + mock_library.niDCPower_PerformLCRLoadCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCRLoadCompensation") + mock_library.niDCPower_PerformLCRLoadCompensation.return_value = 0 + mock_library.niDCPower_PerformLCROpenCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCROpenCompensation") + mock_library.niDCPower_PerformLCROpenCompensation.return_value = 0 + mock_library.niDCPower_PerformLCROpenCustomCableCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCROpenCustomCableCompensation") + mock_library.niDCPower_PerformLCROpenCustomCableCompensation.return_value = 0 + mock_library.niDCPower_PerformLCRShortCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCRShortCompensation") + mock_library.niDCPower_PerformLCRShortCompensation.return_value = 0 + mock_library.niDCPower_PerformLCRShortCustomCableCompensation.side_effect = MockFunctionCallError("niDCPower_PerformLCRShortCustomCableCompensation") + mock_library.niDCPower_PerformLCRShortCustomCableCompensation.return_value = 0 + mock_library.niDCPower_QueryInCompliance.side_effect = MockFunctionCallError("niDCPower_QueryInCompliance") + mock_library.niDCPower_QueryInCompliance.return_value = 0 + mock_library.niDCPower_QueryLatchedOutputCutoffState.side_effect = MockFunctionCallError("niDCPower_QueryLatchedOutputCutoffState") + mock_library.niDCPower_QueryLatchedOutputCutoffState.return_value = 0 + mock_library.niDCPower_QueryMaxCurrentLimit.side_effect = MockFunctionCallError("niDCPower_QueryMaxCurrentLimit") + mock_library.niDCPower_QueryMaxCurrentLimit.return_value = 0 + mock_library.niDCPower_QueryMaxVoltageLevel.side_effect = MockFunctionCallError("niDCPower_QueryMaxVoltageLevel") + mock_library.niDCPower_QueryMaxVoltageLevel.return_value = 0 + mock_library.niDCPower_QueryMinCurrentLimit.side_effect = MockFunctionCallError("niDCPower_QueryMinCurrentLimit") + mock_library.niDCPower_QueryMinCurrentLimit.return_value = 0 + mock_library.niDCPower_QueryOutputState.side_effect = MockFunctionCallError("niDCPower_QueryOutputState") + mock_library.niDCPower_QueryOutputState.return_value = 0 + mock_library.niDCPower_ReadCurrentTemperature.side_effect = MockFunctionCallError("niDCPower_ReadCurrentTemperature") + mock_library.niDCPower_ReadCurrentTemperature.return_value = 0 + mock_library.niDCPower_ResetDevice.side_effect = MockFunctionCallError("niDCPower_ResetDevice") + mock_library.niDCPower_ResetDevice.return_value = 0 + mock_library.niDCPower_ResetWithChannels.side_effect = MockFunctionCallError("niDCPower_ResetWithChannels") + mock_library.niDCPower_ResetWithChannels.return_value = 0 + mock_library.niDCPower_ResetWithDefaults.side_effect = MockFunctionCallError("niDCPower_ResetWithDefaults") + mock_library.niDCPower_ResetWithDefaults.return_value = 0 + mock_library.niDCPower_SendSoftwareEdgeTriggerWithChannels.side_effect = MockFunctionCallError("niDCPower_SendSoftwareEdgeTriggerWithChannels") + mock_library.niDCPower_SendSoftwareEdgeTriggerWithChannels.return_value = 0 + mock_library.niDCPower_SetAttributeViBoolean.side_effect = MockFunctionCallError("niDCPower_SetAttributeViBoolean") + mock_library.niDCPower_SetAttributeViBoolean.return_value = 0 + mock_library.niDCPower_SetAttributeViInt32.side_effect = MockFunctionCallError("niDCPower_SetAttributeViInt32") + mock_library.niDCPower_SetAttributeViInt32.return_value = 0 + mock_library.niDCPower_SetAttributeViInt64.side_effect = MockFunctionCallError("niDCPower_SetAttributeViInt64") + mock_library.niDCPower_SetAttributeViInt64.return_value = 0 + mock_library.niDCPower_SetAttributeViReal64.side_effect = MockFunctionCallError("niDCPower_SetAttributeViReal64") + mock_library.niDCPower_SetAttributeViReal64.return_value = 0 + mock_library.niDCPower_SetAttributeViString.side_effect = MockFunctionCallError("niDCPower_SetAttributeViString") + mock_library.niDCPower_SetAttributeViString.return_value = 0 + mock_library.niDCPower_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niDCPower_SetRuntimeEnvironment") + mock_library.niDCPower_SetRuntimeEnvironment.return_value = 0 + mock_library.niDCPower_SetSequence.side_effect = MockFunctionCallError("niDCPower_SetSequence") + mock_library.niDCPower_SetSequence.return_value = 0 + mock_library.niDCPower_UnlockSession.side_effect = MockFunctionCallError("niDCPower_UnlockSession") + mock_library.niDCPower_UnlockSession.return_value = 0 + mock_library.niDCPower_WaitForEventWithChannels.side_effect = MockFunctionCallError("niDCPower_WaitForEventWithChannels") + mock_library.niDCPower_WaitForEventWithChannels.return_value = 0 + mock_library.niDCPower_close.side_effect = MockFunctionCallError("niDCPower_close") + mock_library.niDCPower_close.return_value = 0 + mock_library.niDCPower_error_message.side_effect = MockFunctionCallError("niDCPower_error_message") + mock_library.niDCPower_error_message.return_value = 0 + mock_library.niDCPower_self_test.side_effect = MockFunctionCallError("niDCPower_self_test") + mock_library.niDCPower_self_test.return_value = 0 diff --git a/generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py b/generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py new file mode 100644 index 0000000000..77499a7ced --- /dev/null +++ b/generated/nidcpower/nidcpower/unit_tests/test_nidcpower.py @@ -0,0 +1,352 @@ +import cmath +import platform +import pytest + +import nidcpower + + +@pytest.mark.parametrize( + "ctype_members, channel, expected_python_members, expected_python_str", + [ + ( + # ctype_members + { + "vdc": 0.1, + "idc": 0.001, + "stimulus_frequency": 10_000.0, + "ac_voltage_real": 1.0, + "ac_voltage_imaginary": 0.1, + "ac_current_real": 0.01, + "ac_current_imaginary": 0.001, + "z_real": 100.0, + "z_imaginary": 10.0, + "z_magnitude": 100.49876, + "z_phase": 5.7105931375, + "y_real": 0.0099009901, + "y_imaginary": -0.00099009901, + "y_magnitude": 0.0099503719, + "y_phase": -5.7105931375, + "ls": 10.0, + "cs": 20.0, + "rs": 90.0, + "lp": 30.0, + "cp": 40.0, + "rp": 110.0, + "d": 10.0, + "q": 0.1, + "measurement_mode": nidcpower.InstrumentMode.SMU_PS.value, + "dc_in_compliance": True, + "ac_in_compliance": True, + "unbalanced": True, + }, + # channel + "Dev1/0", + # expected_python_members + { + "channel": "Dev1/0", + "vdc": 0.1, + "idc": 0.001, + "stimulus_frequency": 10_000.0, + "ac_voltage": complex(1.0, 0.1), + "ac_current": complex(0.01, 0.001), + "z": complex(100.0, 10.0), + "series_lcr": nidcpower.LCRMeasurement.LCR( + inductance=10.0, + capacitance=20.0, + resistance=90.0 + ), + "parallel_lcr": nidcpower.LCRMeasurement.LCR( + inductance=30.0, + capacitance=40.0, + resistance=110.0 + ), + "d": 10.0, + "measurement_mode": nidcpower.InstrumentMode.SMU_PS, + "dc_in_compliance": True, + "ac_in_compliance": True, + "unbalanced": True, + # Derived properties + "z_magnitude_and_phase": (100.49876, 5.7105931375), + "y": complex(0.0099009901, -0.00099009901), + "y_magnitude_and_phase": (0.0099503719, -5.7105931375), + "q": 0.1 + }, + # expected_python_str + ( + "Channel : Dev1/0\n" + "DC voltage : 0.1 V\n" + "DC current : 0.001 A\n" + "Stimulus frequency : 10,000 Hz\n" + "AC voltage : 1+0.1j V RMS\n" + "AC current : 0.01+0.001j A RMS\n" + "Impedance : 100+10j Ω\n" + "Impedance magnitude : 100.499 Ω\n" + "Impedance phase : 5.71059 °\n" + "Admittance : 0.00990099-0.000990099j S\n" + "Admittance magnitude: 0.00995037 S\n" + "Admittance phase : -5.71059 °\n" + "Series inductance : 10 H\n" + "Series capacitance : 20 F\n" + "Series resistance : 90 Ω\n" + "Parallel inductance : 30 H\n" + "Parallel capacitance: 40 F\n" + "Parallel resistance : 110 Ω\n" + "Dissipation factor : 10\n" + "Quality factor : 0.1\n" + "Measurement mode : SMU_PS\n" + "DC in compliance : True\n" + "AC in compliance : True\n" + "Unbalanced : True\n" + ) + ), + ( + # ctype_members + { + "vdc": 0.0, + "idc": 0.0, + "stimulus_frequency": 0.0, + "ac_voltage_real": 0.0, + "ac_voltage_imaginary": 0.0, + "ac_current_real": 0.0, + "ac_current_imaginary": 0.0, + "z_real": 0.0, + "z_imaginary": 0.0, + "z_magnitude": 0.0, + "z_phase": 0.0, + "y_real": cmath.nan, + "y_imaginary": cmath.nan, + "y_magnitude": cmath.nan, + "y_phase": cmath.nan, + "ls": 0.0, + "cs": 0.0, + "rs": 0.0, + "lp": 0.0, + "cp": 0.0, + "rp": 0.0, + "d": 0.0, + "q": cmath.nan, + "measurement_mode": nidcpower.InstrumentMode.LCR.value, + "dc_in_compliance": False, + "ac_in_compliance": False, + "unbalanced": False, + }, + # channel + "1", + # expected_python_members + { + "channel": "1", + "vdc": 0.0, + "idc": 0.0, + "stimulus_frequency": 0.0, + "ac_voltage": complex(), + "ac_current": complex(), + "z": complex(), + "series_lcr": nidcpower.LCRMeasurement.LCR( + inductance=0.0, + capacitance=0.0, + resistance=0.0 + ), + "parallel_lcr": nidcpower.LCRMeasurement.LCR( + inductance=0.0, + capacitance=0.0, + resistance=0.0 + ), + "d": 0.0, + "measurement_mode": nidcpower.InstrumentMode.LCR, + "dc_in_compliance": False, + "ac_in_compliance": False, + "unbalanced": False, + # Derived properties + "z_magnitude_and_phase": (0.0, 0.0), + "y": complex(cmath.nan, cmath.nan), + "y_magnitude_and_phase": (cmath.nan, cmath.nan), + "q": cmath.nan + }, + # expected_python_str + ( + "Channel : 1\n" + "DC voltage : 0 V\n" + "DC current : 0 A\n" + "Stimulus frequency : 0 Hz\n" + "AC voltage : 0+0j V RMS\n" + "AC current : 0+0j A RMS\n" + "Impedance : 0+0j Ω\n" + "Impedance magnitude : 0 Ω\n" + "Impedance phase : 0 °\n" + "Admittance : nan+nanj S\n" + "Admittance magnitude: nan S\n" + "Admittance phase : nan °\n" + "Series inductance : 0 H\n" + "Series capacitance : 0 F\n" + "Series resistance : 0 Ω\n" + "Parallel inductance : 0 H\n" + "Parallel capacitance: 0 F\n" + "Parallel resistance : 0 Ω\n" + "Dissipation factor : 0\n" + "Quality factor : nan\n" + "Measurement mode : LCR\n" + "DC in compliance : False\n" + "AC in compliance : False\n" + "Unbalanced : False\n" + ) + ), + ] +) +def test_lcr_measurement(ctype_members, channel, expected_python_members, expected_python_str): + ctype_instance = nidcpower.struct_NILCRMeasurement(**ctype_members) + python_instance = nidcpower.LCRMeasurement(ctype_instance) + python_instance.channel = channel + for member in expected_python_members: + assert getattr(python_instance, member) == pytest.approx( + expected_python_members[member], + nan_ok=True + ) + assert str(python_instance) == expected_python_str + + +@pytest.mark.parametrize( + "python_init_params, expected_repr, expected_str, expected_ctype_members", + [ + ( + # python_init_params + { + "frequency": 200.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IMPEDANCE, + "reference_value": complex(3.0, 4.0) + }, + # expected_repr + ( + "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" + "frequency=200.0, " + "reference_value_type=nidcpower.enums.LCRReferenceValueType.IMPEDANCE, " + "reference_value=(3+4j))" + ), + # expected_str + ( + "Frequency : 200 Hz\n" + "Impedance : 3+4j Ω\n" + ), + # expected_ctype_members + { + "frequency": 200.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IMPEDANCE.value, + "reference_value_a": 3.0, + "reference_value_b": 4.0 + } + ), + ( + # python_init_params + { + "frequency": 300.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_CAPACITANCE, + "reference_value": 5.0 + }, + # expected_repr + ( + "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" + "frequency=300.0, " + "reference_value_type=nidcpower.enums.LCRReferenceValueType.IDEAL_CAPACITANCE, " + "reference_value=5.0)" + ), + # expected_str + ( + "Frequency : 300 Hz\n" + "Ideal Capacitance: 5 F\n" + ), + # expected_ctype_members + { + "frequency": 300.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_CAPACITANCE.value, + "reference_value_a": 5.0, + "reference_value_b": 0.0 + } + ), + ( + # python_init_params + { + "frequency": 400.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_INDUCTANCE, + "reference_value": 6.0 + }, + # expected_repr + ( + "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" + "frequency=400.0, " + "reference_value_type=nidcpower.enums.LCRReferenceValueType.IDEAL_INDUCTANCE, " + "reference_value=6.0)" + ), + # expected_str + ( + "Frequency : 400 Hz\n" + "Ideal Inductance : 6 H\n" + ), + # expected_ctype_members + { + "frequency": 400.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_INDUCTANCE.value, + "reference_value_a": 6.0, + "reference_value_b": 0.0 + } + ), + ( + # python_init_params + { + "frequency": 500.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_RESISTANCE, + "reference_value": 7.0 + }, + # expected_repr + ( + "nidcpower.lcr_load_compensation_spot.LCRLoadCompensationSpot(" + "frequency=500.0, " + "reference_value_type=nidcpower.enums.LCRReferenceValueType.IDEAL_RESISTANCE, " + "reference_value=7.0)" + ), + # expected_str + ( + "Frequency : 500 Hz\n" + "Ideal Resistance : 7 Ω\n" + ), + # expected_ctype_members + { + "frequency": 500.0, + "reference_value_type": nidcpower.LCRReferenceValueType.IDEAL_RESISTANCE.value, + "reference_value_a": 7.0, + "reference_value_b": 0.0 + }, + ), + ], +) +def test_lcr_load_compensation_spot( + python_init_params, + expected_repr, + expected_str, + expected_ctype_members +): + python_instance = nidcpower.LCRLoadCompensationSpot(**python_init_params) + for member in python_init_params: + assert getattr(python_instance, member) == pytest.approx(python_init_params[member]) + + assert repr(python_instance) == expected_repr + assert str(python_instance) == expected_str + recreated_instance = eval(repr(python_instance)) + assert str(recreated_instance) == str(python_instance) + + ctype_instance = nidcpower.struct_NILCRLoadCompensationSpot(python_instance) + for member in expected_ctype_members: + assert getattr(ctype_instance, member) == pytest.approx(expected_ctype_members[member]) + + +def test_lcr_load_compensation_spot_byte_packing_alignment(): + if (platform.system() == "Windows" and platform.architecture()[0] == "64bit") or \ + platform.system() == "Linux" or platform.system() == "Darwin": + expected_bytes_len = 32 + else: + expected_bytes_len = 28 + python_spot = nidcpower.LCRLoadCompensationSpot( + frequency=1_000.0, + reference_value_type=nidcpower.LCRReferenceValueType.IMPEDANCE, + reference_value=complex(1.0, 2.0) + ) + ctype_spot = nidcpower.struct_NILCRLoadCompensationSpot(python_spot) + assert len(bytes(ctype_spot)) == expected_bytes_len diff --git a/generated/nidcpower/setup.py b/generated/nidcpower/setup.py new file mode 100644 index 0000000000..b2d01ae8cd --- /dev/null +++ b/generated/nidcpower/setup.py @@ -0,0 +1,63 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nidcpower' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.6.1.dev0', + description='NI-DCPower Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nidcpower'], + license='MIT', + include_package_data=True, + packages=['nidcpower'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nidcpower/tox-system_tests.ini b/generated/nidcpower/tox-system_tests.ini new file mode 100644 index 0000000000..df9b8bf768 --- /dev/null +++ b/generated/nidcpower/tox-system_tests.ini @@ -0,0 +1,73 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nidcpower) +[tox] +envlist = py{310,311,312,313,314}-nidcpower-system_tests, py314-nidcpower-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nidcpower-system_tests: Run nidcpower system tests (requires NI-DCPower runtime to be installed) + nidcpower-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nidcpower-system_tests: . + nidcpower-coverage: . + +commands = + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nidcpower-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nidcpower-system_tests: python -c "import nidcpower; nidcpower.print_diagnostic_information()" + nidcpower-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidcpower --parallel-mode -m pytest ../../src/nidcpower/examples --junitxml=../junit/junit-nidcpower-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nidcpower-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidcpower --parallel-mode -m pytest ../../src/nidcpower/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidcpower-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nidcpower-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nidcpower-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nidcpower-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nidcpower-system_tests: pytest < 9.2.0 + nidcpower-system_tests: coverage + nidcpower-system_tests: numpy + nidcpower-system_tests: hightime + nidcpower-system_tests: fasteners + nidcpower-system_tests: pytest-json + nidcpower-system_tests: .[grpc] + + nidcpower-coverage: coverage + +depends = + nidcpower-coverage: py{310,311,312,313,314}-nidcpower-system_tests + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 +markers = # Defines custom markers used by nidcpower system tests. Prevents PytestUnknownMarkWarning. + include_legacy_session: Include a legacy session in nidcpower system tests. + legacy_session_only: Exclude an independent channels session in nidcpower system tests. + resource_name: Overrides the default resource_name argument in the nidcpower session fixture. + channels: Overrides the default channels argument in the nidcpower session fixture. + reset: Overrides the default reset argument in the nidcpower session fixture. + options: Overrides the default options argument in the nidcpower session fixture. + independent_channels: Overrides the default independent_channels argument in the nidcpower session fixture. diff --git a/generated/nidigital/README.rst b/generated/nidigital/README.rst new file mode 100644 index 0000000000..c9b84caf5f --- /dev/null +++ b/generated/nidigital/README.rst @@ -0,0 +1,202 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nidigital** module provides a Python API for NI-Digital Pattern Driver. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nidigital** supports all the Operating Systems supported by NI-Digital Pattern Driver. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nidigital**. + + +NI-Digital Pattern Driver Python API Status +------------------------------------------- + ++---------------------------------------+--------------------------+ +| NI-Digital Pattern Driver (nidigital) | | ++=======================================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++---------------------------------------+--------------------------+ +| PyPI Version | |nidigitalLatestVersion| | ++---------------------------------------+--------------------------+ +| Supported Python Version | |nidigitalPythonVersion| | ++---------------------------------------+--------------------------+ +| Documentation | |nidigitalDocs| | ++---------------------------------------+--------------------------+ +| Open Issues | |nidigitalOpenIssues| | ++---------------------------------------+--------------------------+ +| Open Pull Requests | |nidigitalOpenPRs| | ++---------------------------------------+--------------------------+ + + +.. |nidigitalLatestVersion| image:: http://img.shields.io/pypi/v/nidigital.svg + :alt: Latest NI-Digital Pattern Driver Version + :target: http://pypi.python.org/pypi/nidigital + + +.. |nidigitalPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidigital.svg + :alt: NI-Digital Pattern Driver supported Python versions + :target: http://pypi.python.org/pypi/nidigital + + +.. |nidigitalDocs| image:: https://readthedocs.org/projects/nidigital/badge/?version=latest + :alt: NI-Digital Pattern Driver Python API Documentation Status + :target: https://nidigital.readthedocs.io/en/latest + + +.. |nidigitalOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidigital.svg + :alt: Open Issues + Pull Requests for NI-Digital Pattern Driver + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidigital + + +.. |nidigitalOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidigital.svg + :alt: Pull Requests for NI-Digital Pattern Driver + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidigital + + + +.. _nidigital_installation-section: + +Installation +------------ + +As a prerequisite to using the **nidigital** module, you must install the NI-Digital Pattern Driver runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-Digital Pattern Driver**) can be installed with `pip `_:: + + $ python -m pip install nidigital + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nidigital** module to open a session to a digital pattern instrument, +source current, and measure both voltage and current using the PPMU on selected channels. + +.. code-block:: python + + import nidigital + import time + + with nidigital.Session(resource_name='PXI1Slot2') as session: + + channels = 'PXI1Slot2/0,PXI1Slot2/1' + + # Configure PPMU measurements + session.channels[channels].ppmu_aperture_time = 0.000004 + session.channels[channels].ppmu_aperture_time_units = nidigital.PPMUApertureTimeUnits.SECONDS + + session.channels[channels].ppmu_output_function = nidigital.PPMUOutputFunction.CURRENT + + session.channels[channels].ppmu_current_level_range = 0.000002 + session.channels[channels].ppmu_current_level = 0.000002 + session.channels[channels].ppmu_voltage_limit_high = 3.3 + session.channels[channels].ppmu_voltage_limit_low = 0 + + # Sourcing + session.channels[channels].ppmu_source() + + # Settling time between sourcing and measuring + time.sleep(0.01) + + # Measuring + current_measurements = session.channels[channels].ppmu_measure(nidigital.PPMUMeasurementType.CURRENT) + voltage_measurements = session.channels[channels].ppmu_measure(nidigital.PPMUMeasurementType.VOLTAGE) + + print('{:<20} {:<10} {:<10}'.format('Channel Name', 'Current', 'Voltage')) + for channel, current, voltage in zip(channels.split(','), current_measurements, voltage_measurements): + print('{:<20} {:<10f} {:<10f}'.format(channel, current, voltage)) + + # Disconnect all channels using programmable onboard switching + session.channels[channels].selected_function = nidigital.SelectedFunction.DISCONNECT + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nidigital/nidigital/VERSION b/generated/nidigital/nidigital/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nidigital/nidigital/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nidigital/nidigital/__init__.py b/generated/nidigital/nidigital/__init__.py new file mode 100644 index 0000000000..1384b31271 --- /dev/null +++ b/generated/nidigital/nidigital/__init__.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nidigital.enums import * # noqa: F403,F401,H303 +from nidigital.errors import DriverWarning # noqa: F401 +from nidigital.errors import Error # noqa: F401 +from nidigital.grpc_session_options import * # noqa: F403,F401,H303 +from nidigital.session import Session # noqa: F401 + +from nidigital.history_ram_cycle_information import HistoryRAMCycleInformation # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-Digital Pattern Driver\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-Digital Pattern Driver" + info['driver']['version'] = driver_version + info['module']['name'] = 'nidigital' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nidigital/nidigital/_attributes.py b/generated/nidigital/nidigital/_attributes.py new file mode 100644 index 0000000000..f13e721b40 --- /dev/null +++ b/generated/nidigital/nidigital/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nidigital._converters as _converters +import nidigital.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nidigital Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nidigital.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nidigital/nidigital/_converters.py b/generated/nidigital/nidigital/_converters.py new file mode 100644 index 0000000000..e645ad43d4 --- /dev/null +++ b/generated/nidigital/nidigital/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nidigital._visatype as _visatype +import nidigital.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nidigital/nidigital/_grpc_stub_interpreter.py b/generated/nidigital/nidigital/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..d733b9e7ff --- /dev/null +++ b/generated/nidigital/nidigital/_grpc_stub_interpreter.py @@ -0,0 +1,667 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nidigitalpattern_pb2 as grpc_types +from . import nidigitalpattern_pb2_grpc as nidigital_grpc + +from . import history_ram_cycle_information as history_ram_cycle_information # noqa: F401 + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nidigital_grpc.NiDigitalStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.Abort, + grpc_types.AbortRequest(vi=self._vi), + ) + + def abort_keep_alive(self): # noqa: N802 + self._invoke( + self._client.AbortKeepAlive, + grpc_types.AbortKeepAliveRequest(vi=self._vi), + ) + + def apply_levels_and_timing(self, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 + self._invoke( + self._client.ApplyLevelsAndTiming, + grpc_types.ApplyLevelsAndTimingRequest(vi=self._vi, site_list=site_list, levels_sheet=levels_sheet, timing_sheet=timing_sheet, initial_state_high_pins=initial_state_high_pins, initial_state_low_pins=initial_state_low_pins, initial_state_tristate_pins=initial_state_tristate_pins), + ) + + def apply_tdr_offsets(self, channel_list, offsets): # noqa: N802 + self._invoke( + self._client.ApplyTDROffsets, + grpc_types.ApplyTDROffsetsRequest(vi=self._vi, channel_list=channel_list, offsets=offsets), + ) + + def burst_pattern(self, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 + self._invoke( + self._client.BurstPattern, + grpc_types.BurstPatternRequest(vi=self._vi, site_list=site_list, start_label=start_label, select_digital_function=select_digital_function, wait_until_done=wait_until_done, timeout=timeout), + ) + + def clock_generator_abort(self, channel_list): # noqa: N802 + self._invoke( + self._client.ClockGeneratorAbort, + grpc_types.ClockGeneratorAbortRequest(vi=self._vi, channel_list=channel_list), + ) + + def clock_generator_generate_clock(self, channel_list, frequency, select_digital_function): # noqa: N802 + self._invoke( + self._client.ClockGeneratorGenerateClock, + grpc_types.ClockGeneratorGenerateClockRequest(vi=self._vi, channel_list=channel_list, frequency=frequency, select_digital_function=select_digital_function), + ) + + def commit(self): # noqa: N802 + self._invoke( + self._client.Commit, + grpc_types.CommitRequest(vi=self._vi), + ) + + def configure_active_load_levels(self, channel_list, iol, ioh, vcom): # noqa: N802 + self._invoke( + self._client.ConfigureActiveLoadLevels, + grpc_types.ConfigureActiveLoadLevelsRequest(vi=self._vi, channel_list=channel_list, iol=iol, ioh=ioh, vcom=vcom), + ) + + def configure_pattern_burst_sites(self, site_list): # noqa: N802 + self._invoke( + self._client.ConfigurePatternBurstSites, + grpc_types.ConfigurePatternBurstSitesRequest(vi=self._vi, site_list=site_list), + ) + + def configure_time_set_compare_edges_strobe(self, pin_list, time_set_name, strobe_edge): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetCompareEdgesStrobe, + grpc_types.ConfigureTimeSetCompareEdgesStrobeRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, strobe_edge=strobe_edge), + ) + + def configure_time_set_compare_edges_strobe2x(self, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetCompareEdgesStrobe2x, + grpc_types.ConfigureTimeSetCompareEdgesStrobe2xRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, strobe_edge=strobe_edge, strobe2_edge=strobe2_edge), + ) + + def configure_time_set_drive_edges(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetDriveEdges, + grpc_types.ConfigureTimeSetDriveEdgesRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, format_raw=format.value, drive_on_edge=drive_on_edge, drive_data_edge=drive_data_edge, drive_return_edge=drive_return_edge, drive_off_edge=drive_off_edge), + ) + + def configure_time_set_drive_edges2x(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetDriveEdges2x, + grpc_types.ConfigureTimeSetDriveEdges2xRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, format_raw=format.value, drive_on_edge=drive_on_edge, drive_data_edge=drive_data_edge, drive_return_edge=drive_return_edge, drive_off_edge=drive_off_edge, drive_data2_edge=drive_data2_edge, drive_return2_edge=drive_return2_edge), + ) + + def configure_time_set_drive_format(self, pin_list, time_set_name, drive_format): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetDriveFormat, + grpc_types.ConfigureTimeSetDriveFormatRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, drive_format_raw=drive_format.value), + ) + + def configure_time_set_edge(self, pin_list, time_set_name, edge, time): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetEdge, + grpc_types.ConfigureTimeSetEdgeRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, edge_raw=edge.value, time=time), + ) + + def configure_time_set_edge_multiplier(self, pin_list, time_set_name, edge_multiplier): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetEdgeMultiplier, + grpc_types.ConfigureTimeSetEdgeMultiplierRequest(vi=self._vi, pin_list=pin_list, time_set_name=time_set_name, edge_multiplier=edge_multiplier), + ) + + def configure_time_set_period(self, time_set_name, period): # noqa: N802 + self._invoke( + self._client.ConfigureTimeSetPeriod, + grpc_types.ConfigureTimeSetPeriodRequest(vi=self._vi, time_set_name=time_set_name, period=period), + ) + + def configure_voltage_levels(self, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 + self._invoke( + self._client.ConfigureVoltageLevels, + grpc_types.ConfigureVoltageLevelsRequest(vi=self._vi, channel_list=channel_list, vil=vil, vih=vih, vol=vol, voh=voh, vterm=vterm), + ) + + def create_capture_waveform_from_file_digicapture(self, waveform_name, waveform_file_path): # noqa: N802 + self._invoke( + self._client.CreateCaptureWaveformFromFileDigicapture, + grpc_types.CreateCaptureWaveformFromFileDigicaptureRequest(vi=self._vi, waveform_name=waveform_name, waveform_file_path=waveform_file_path), + ) + + def create_capture_waveform_parallel(self, pin_list, waveform_name): # noqa: N802 + self._invoke( + self._client.CreateCaptureWaveformParallel, + grpc_types.CreateCaptureWaveformParallelRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name), + ) + + def create_capture_waveform_serial(self, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 + self._invoke( + self._client.CreateCaptureWaveformSerial, + grpc_types.CreateCaptureWaveformSerialRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name, sample_width=sample_width, bit_order_raw=bit_order.value), + ) + + def create_source_waveform_from_file_tdms(self, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 + self._invoke( + self._client.CreateSourceWaveformFromFileTDMS, + grpc_types.CreateSourceWaveformFromFileTDMSRequest(vi=self._vi, waveform_name=waveform_name, waveform_file_path=waveform_file_path, write_waveform_data=write_waveform_data), + ) + + def create_source_waveform_parallel(self, pin_list, waveform_name, data_mapping): # noqa: N802 + self._invoke( + self._client.CreateSourceWaveformParallel, + grpc_types.CreateSourceWaveformParallelRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name, data_mapping_raw=data_mapping.value), + ) + + def create_source_waveform_serial(self, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 + self._invoke( + self._client.CreateSourceWaveformSerial, + grpc_types.CreateSourceWaveformSerialRequest(vi=self._vi, pin_list=pin_list, waveform_name=waveform_name, data_mapping_raw=data_mapping.value, sample_width=sample_width, bit_order_raw=bit_order.value), + ) + + def create_time_set(self, name): # noqa: N802 + self._invoke( + self._client.CreateTimeSet, + grpc_types.CreateTimeSetRequest(vi=self._vi, name=name), + ) + + def delete_all_time_sets(self): # noqa: N802 + self._invoke( + self._client.DeleteAllTimeSets, + grpc_types.DeleteAllTimeSetsRequest(vi=self._vi), + ) + + def disable_sites(self, site_list): # noqa: N802 + self._invoke( + self._client.DisableSites, + grpc_types.DisableSitesRequest(vi=self._vi, site_list=site_list), + ) + + def enable_sites(self, site_list): # noqa: N802 + self._invoke( + self._client.EnableSites, + grpc_types.EnableSitesRequest(vi=self._vi, site_list=site_list), + ) + + def fetch_capture_waveform(self, site_list, waveform_name, samples_to_read, timeout): # noqa: N802 + response = self._invoke( + self._client.FetchCaptureWaveformU32, + grpc_types.FetchCaptureWaveformU32Request(vi=self._vi, site_list=site_list, waveform_name=waveform_name, samples_to_read=samples_to_read, timeout=timeout), + ) + return bytes(response.data), response.actual_num_waveforms, response.actual_samples_per_waveform + + def fetch_history_ram_cycle_information(self, site, sample_index): # noqa: N802 + response = self._invoke( + self._client.FetchHistoryRAMCycleInformation, + grpc_types.FetchHistoryRAMCycleInformationRequest(vi=self._vi, site=site, sample_index=sample_index), + ) + return response.pattern_index, response.time_set_index, response.vector_number, response.cycle_number, response.num_dut_cycles + + def fetch_history_ram_cycle_pin_data(self, site, pin_list, sample_index, dut_cycle_index): # noqa: N802 + response = self._invoke( + self._client.FetchHistoryRAMCyclePinData, + grpc_types.FetchHistoryRAMCyclePinDataRequest(vi=self._vi, site=site, pin_list=pin_list, sample_index=sample_index, dut_cycle_index=dut_cycle_index), + ) + return [enums.PinState(x) for x in response.expected_pin_states_raw], [enums.PinState(x) for x in response.actual_pin_states_raw], response.per_pin_pass_fail + + def fetch_history_ram_scan_cycle_number(self, site, sample_index): # noqa: N802 + response = self._invoke( + self._client.FetchHistoryRAMScanCycleNumber, + grpc_types.FetchHistoryRAMScanCycleNumberRequest(vi=self._vi, site=site, sample_index=sample_index), + ) + return response.scan_cycle_number + + def frequency_counter_measure_frequency(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.FrequencyCounterMeasureFrequency, + grpc_types.FrequencyCounterMeasureFrequencyRequest(vi=self._vi, channel_list=channel_list), + ) + return response.frequencies + + def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute=attribute), + ) + return response.value + + def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute=attribute), + ) + return response.value + + def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt64, + grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute=attribute), + ) + return response.value + + def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute=attribute), + ) + return response.value + + def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute=attribute), + ) + return response.value + + def get_channel_names(self, indices): # noqa: N802 + response = self._invoke( + self._client.GetChannelNameFromString, + grpc_types.GetChannelNameFromStringRequest(vi=self._vi, indices=indices), + ) + return response.names + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.error_description + + def get_fail_count(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.GetFailCount, + grpc_types.GetFailCountRequest(vi=self._vi, channel_list=channel_list), + ) + return response.failure_count + + def get_history_ram_sample_count(self, site): # noqa: N802 + response = self._invoke( + self._client.GetHistoryRAMSampleCount, + grpc_types.GetHistoryRAMSampleCountRequest(vi=self._vi, site=site), + ) + return response.sample_count + + def get_pattern_name(self, pattern_index): # noqa: N802 + response = self._invoke( + self._client.GetPatternName, + grpc_types.GetPatternNameRequest(vi=self._vi, pattern_index=pattern_index), + ) + return response.name + + def get_pattern_pin_names(self, start_label): # noqa: N802 + response = self._invoke( + self._client.GetPatternPinList, + grpc_types.GetPatternPinListRequest(vi=self._vi, start_label=start_label), + ) + return response.pin_list + + def get_pin_name(self, pin_index): # noqa: N802 + response = self._invoke( + self._client.GetPinName, + grpc_types.GetPinNameRequest(vi=self._vi, pin_index=pin_index), + ) + return response.name + + def get_pin_results_pin_information(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.GetPinResultsPinInformation, + grpc_types.GetPinResultsPinInformationRequest(vi=self._vi, channel_list=channel_list), + ) + return response.pin_indexes, response.site_numbers, response.channel_indexes + + def get_site_pass_fail(self, site_list): # noqa: N802 + response = self._invoke( + self._client.GetSitePassFail, + grpc_types.GetSitePassFailRequest(vi=self._vi, site_list=site_list), + ) + return response.pass_fail + + def get_site_results_site_numbers(self, site_list, site_result_type): # noqa: N802 + response = self._invoke( + self._client.GetSiteResultsSiteNumbers, + grpc_types.GetSiteResultsSiteNumbersRequest(vi=self._vi, site_list=site_list, site_result_type_raw=site_result_type.value), + ) + return response.site_numbers + + def get_time_set_drive_format(self, pin, time_set_name): # noqa: N802 + response = self._invoke( + self._client.GetTimeSetDriveFormat, + grpc_types.GetTimeSetDriveFormatRequest(vi=self._vi, pin=pin, time_set_name=time_set_name), + ) + return enums.DriveFormat(response.format_raw) + + def get_time_set_edge(self, pin, time_set_name, edge): # noqa: N802 + response = self._invoke( + self._client.GetTimeSetEdge, + grpc_types.GetTimeSetEdgeRequest(vi=self._vi, pin=pin, time_set_name=time_set_name, edge_raw=edge.value), + ) + return response.time + + def get_time_set_edge_multiplier(self, pin, time_set_name): # noqa: N802 + response = self._invoke( + self._client.GetTimeSetEdgeMultiplier, + grpc_types.GetTimeSetEdgeMultiplierRequest(vi=self._vi, pin=pin, time_set_name=time_set_name), + ) + return response.edge_multiplier + + def get_time_set_name(self, time_set_index): # noqa: N802 + response = self._invoke( + self._client.GetTimeSetName, + grpc_types.GetTimeSetNameRequest(vi=self._vi, time_set_index=time_set_index), + ) + return response.name + + def get_time_set_period(self, time_set_name): # noqa: N802 + response = self._invoke( + self._client.GetTimeSetPeriod, + grpc_types.GetTimeSetPeriodRequest(vi=self._vi, time_set_name=time_set_name), + ) + return response.period + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithOptions, + grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate(self): # noqa: N802 + self._invoke( + self._client.Initiate, + grpc_types.InitiateRequest(vi=self._vi), + ) + + def is_done(self): # noqa: N802 + response = self._invoke( + self._client.IsDone, + grpc_types.IsDoneRequest(vi=self._vi), + ) + return response.done + + def is_site_enabled(self, site): # noqa: N802 + response = self._invoke( + self._client.IsSiteEnabled, + grpc_types.IsSiteEnabledRequest(vi=self._vi, site=site), + ) + return response.enable + + def load_levels(self, file_path): # noqa: N802 + self._invoke( + self._client.LoadLevels, + grpc_types.LoadLevelsRequest(vi=self._vi, file_path=file_path), + ) + + def load_pattern(self, file_path): # noqa: N802 + self._invoke( + self._client.LoadPattern, + grpc_types.LoadPatternRequest(vi=self._vi, file_path=file_path), + ) + + def load_pin_map(self, file_path): # noqa: N802 + self._invoke( + self._client.LoadPinMap, + grpc_types.LoadPinMapRequest(vi=self._vi, file_path=file_path), + ) + + def load_specifications(self, file_path): # noqa: N802 + self._invoke( + self._client.LoadSpecifications, + grpc_types.LoadSpecificationsRequest(vi=self._vi, file_path=file_path), + ) + + def load_timing(self, file_path): # noqa: N802 + self._invoke( + self._client.LoadTiming, + grpc_types.LoadTimingRequest(vi=self._vi, file_path=file_path), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def ppmu_measure(self, channel_list, measurement_type): # noqa: N802 + response = self._invoke( + self._client.PPMUMeasure, + grpc_types.PPMUMeasureRequest(vi=self._vi, channel_list=channel_list, measurement_type_raw=measurement_type.value), + ) + return response.measurements + + def ppmu_source(self, channel_list): # noqa: N802 + self._invoke( + self._client.PPMUSource, + grpc_types.PPMUSourceRequest(vi=self._vi, channel_list=channel_list), + ) + + def read_sequencer_flag(self, flag): # noqa: N802 + response = self._invoke( + self._client.ReadSequencerFlag, + grpc_types.ReadSequencerFlagRequest(vi=self._vi, flag=flag.value), + ) + return response.value + + def read_sequencer_register(self, reg): # noqa: N802 + response = self._invoke( + self._client.ReadSequencerRegister, + grpc_types.ReadSequencerRegisterRequest(vi=self._vi, reg=reg.value), + ) + return response.value + + def read_static(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.ReadStatic, + grpc_types.ReadStaticRequest(vi=self._vi, channel_list=channel_list), + ) + return [enums.PinState(x) for x in response.data_raw] + + def reset_device(self): # noqa: N802 + self._invoke( + self._client.ResetDevice, + grpc_types.ResetDeviceRequest(vi=self._vi), + ) + + def self_calibrate(self): # noqa: N802 + self._invoke( + self._client.SelfCalibrate, + grpc_types.SelfCalibrateRequest(vi=self._vi), + ) + + def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 + self._invoke( + self._client.SendSoftwareEdgeTrigger, + grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_identifier=trigger_identifier), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute=attribute, value=value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), + ) + + def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt64, + grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), + ) + + def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute=attribute, value_raw=value), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def tdr(self, channel_list, apply_offsets): # noqa: N802 + response = self._invoke( + self._client.TDR, + grpc_types.TDRRequest(vi=self._vi, channel_list=channel_list, apply_offsets=apply_offsets), + ) + return response.offsets + + def unload_all_patterns(self, unload_keep_alive_pattern): # noqa: N802 + self._invoke( + self._client.UnloadAllPatterns, + grpc_types.UnloadAllPatternsRequest(vi=self._vi, unload_keep_alive_pattern=unload_keep_alive_pattern), + ) + + def unload_specifications(self, file_path): # noqa: N802 + self._invoke( + self._client.UnloadSpecifications, + grpc_types.UnloadSpecificationsRequest(vi=self._vi, file_path=file_path), + ) + + def unlock(self): # noqa: N802 + self._lock.release() + + def wait_until_done(self, timeout): # noqa: N802 + self._invoke( + self._client.WaitUntilDone, + grpc_types.WaitUntilDoneRequest(vi=self._vi, timeout=timeout), + ) + + def write_sequencer_flag(self, flag, value): # noqa: N802 + self._invoke( + self._client.WriteSequencerFlag, + grpc_types.WriteSequencerFlagRequest(vi=self._vi, flag=flag.value, value=value), + ) + + def write_sequencer_register(self, reg, value): # noqa: N802 + self._invoke( + self._client.WriteSequencerRegister, + grpc_types.WriteSequencerRegisterRequest(vi=self._vi, reg=reg.value, value=value), + ) + + def write_source_waveform_broadcast(self, waveform_name, waveform_data): # noqa: N802 + self._invoke( + self._client.WriteSourceWaveformBroadcastU32, + grpc_types.WriteSourceWaveformBroadcastU32Request(vi=self._vi, waveform_name=waveform_name, waveform_data=waveform_data), + ) + + def write_source_waveform_data_from_file_tdms(self, waveform_name, waveform_file_path): # noqa: N802 + self._invoke( + self._client.WriteSourceWaveformDataFromFileTDMS, + grpc_types.WriteSourceWaveformDataFromFileTDMSRequest(vi=self._vi, waveform_name=waveform_name, waveform_file_path=waveform_file_path), + ) + + def write_source_waveform_site_unique_u32(self, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 + self._invoke( + self._client.WriteSourceWaveformSiteUniqueU32, + grpc_types.WriteSourceWaveformSiteUniqueU32Request(vi=self._vi, site_list=site_list, waveform_name=waveform_name, num_waveforms=num_waveforms, samples_per_waveform=samples_per_waveform, waveform_data=waveform_data), + ) + + def write_static(self, channel_list, state): # noqa: N802 + self._invoke( + self._client.WriteStatic, + grpc_types.WriteStaticRequest(vi=self._vi, channel_list=channel_list, state_raw=state.value), + ) + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.test_result, response.test_message diff --git a/generated/nidigital/nidigital/_library.py b/generated/nidigital/nidigital/_library.py new file mode 100644 index 0000000000..1f1d78ed16 --- /dev/null +++ b/generated/nidigital/nidigital/_library.py @@ -0,0 +1,876 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nidigital.errors as errors +import threading + +from nidigital._visatype import * # noqa: F403,H303 + +import nidigital.history_ram_cycle_information as history_ram_cycle_information # noqa: F401 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niDigital_Abort_cfunc = None + self.niDigital_AbortKeepAlive_cfunc = None + self.niDigital_ApplyLevelsAndTiming_cfunc = None + self.niDigital_ApplyTDROffsets_cfunc = None + self.niDigital_BurstPattern_cfunc = None + self.niDigital_ClockGenerator_Abort_cfunc = None + self.niDigital_ClockGenerator_GenerateClock_cfunc = None + self.niDigital_Commit_cfunc = None + self.niDigital_ConfigureActiveLoadLevels_cfunc = None + self.niDigital_ConfigurePatternBurstSites_cfunc = None + self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc = None + self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc = None + self.niDigital_ConfigureTimeSetDriveEdges_cfunc = None + self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc = None + self.niDigital_ConfigureTimeSetDriveFormat_cfunc = None + self.niDigital_ConfigureTimeSetEdge_cfunc = None + self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc = None + self.niDigital_ConfigureTimeSetPeriod_cfunc = None + self.niDigital_ConfigureVoltageLevels_cfunc = None + self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc = None + self.niDigital_CreateCaptureWaveformParallel_cfunc = None + self.niDigital_CreateCaptureWaveformSerial_cfunc = None + self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc = None + self.niDigital_CreateSourceWaveformParallel_cfunc = None + self.niDigital_CreateSourceWaveformSerial_cfunc = None + self.niDigital_CreateTimeSet_cfunc = None + self.niDigital_DeleteAllTimeSets_cfunc = None + self.niDigital_DisableSites_cfunc = None + self.niDigital_EnableMatchFailCombination_cfunc = None + self.niDigital_EnableSites_cfunc = None + self.niDigital_FetchCaptureWaveformU32_cfunc = None + self.niDigital_FetchHistoryRAMCycleInformation_cfunc = None + self.niDigital_FetchHistoryRAMCyclePinData_cfunc = None + self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc = None + self.niDigital_FrequencyCounter_MeasureFrequency_cfunc = None + self.niDigital_GetAttributeViBoolean_cfunc = None + self.niDigital_GetAttributeViInt32_cfunc = None + self.niDigital_GetAttributeViInt64_cfunc = None + self.niDigital_GetAttributeViReal64_cfunc = None + self.niDigital_GetAttributeViString_cfunc = None + self.niDigital_GetChannelNameFromString_cfunc = None + self.niDigital_GetError_cfunc = None + self.niDigital_GetFailCount_cfunc = None + self.niDigital_GetHistoryRAMSampleCount_cfunc = None + self.niDigital_GetPatternName_cfunc = None + self.niDigital_GetPatternPinList_cfunc = None + self.niDigital_GetPinName_cfunc = None + self.niDigital_GetPinResultsPinInformation_cfunc = None + self.niDigital_GetSitePassFail_cfunc = None + self.niDigital_GetSiteResultsSiteNumbers_cfunc = None + self.niDigital_GetTimeSetDriveFormat_cfunc = None + self.niDigital_GetTimeSetEdge_cfunc = None + self.niDigital_GetTimeSetEdgeMultiplier_cfunc = None + self.niDigital_GetTimeSetName_cfunc = None + self.niDigital_GetTimeSetPeriod_cfunc = None + self.niDigital_InitWithOptions_cfunc = None + self.niDigital_Initiate_cfunc = None + self.niDigital_IsDone_cfunc = None + self.niDigital_IsSiteEnabled_cfunc = None + self.niDigital_LoadLevels_cfunc = None + self.niDigital_LoadPattern_cfunc = None + self.niDigital_LoadPinMap_cfunc = None + self.niDigital_LoadSpecifications_cfunc = None + self.niDigital_LoadTiming_cfunc = None + self.niDigital_LockSession_cfunc = None + self.niDigital_PPMU_Measure_cfunc = None + self.niDigital_PPMU_Source_cfunc = None + self.niDigital_ReadSequencerFlag_cfunc = None + self.niDigital_ReadSequencerRegister_cfunc = None + self.niDigital_ReadStatic_cfunc = None + self.niDigital_ResetDevice_cfunc = None + self.niDigital_SelfCalibrate_cfunc = None + self.niDigital_SendSoftwareEdgeTrigger_cfunc = None + self.niDigital_SetAttributeViBoolean_cfunc = None + self.niDigital_SetAttributeViInt32_cfunc = None + self.niDigital_SetAttributeViInt64_cfunc = None + self.niDigital_SetAttributeViReal64_cfunc = None + self.niDigital_SetAttributeViString_cfunc = None + self.niDigital_SetRuntimeEnvironment_cfunc = None + self.niDigital_TDR_cfunc = None + self.niDigital_UnloadAllPatterns_cfunc = None + self.niDigital_UnloadSpecifications_cfunc = None + self.niDigital_UnlockSession_cfunc = None + self.niDigital_WaitUntilDone_cfunc = None + self.niDigital_WriteSequencerFlag_cfunc = None + self.niDigital_WriteSequencerRegister_cfunc = None + self.niDigital_WriteSourceWaveformBroadcastU32_cfunc = None + self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc = None + self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc = None + self.niDigital_WriteStatic_cfunc = None + self.niDigital_close_cfunc = None + self.niDigital_error_message_cfunc = None + self.niDigital_reset_cfunc = None + self.niDigital_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niDigital_Abort(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_Abort_cfunc is None: + self.niDigital_Abort_cfunc = self._get_library_function('niDigital_Abort') + self.niDigital_Abort_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_Abort_cfunc(vi) + + def niDigital_AbortKeepAlive(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_AbortKeepAlive_cfunc is None: + self.niDigital_AbortKeepAlive_cfunc = self._get_library_function('niDigital_AbortKeepAlive') + self.niDigital_AbortKeepAlive_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_AbortKeepAlive_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_AbortKeepAlive_cfunc(vi) + + def niDigital_ApplyLevelsAndTiming(self, vi, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 + with self._func_lock: + if self.niDigital_ApplyLevelsAndTiming_cfunc is None: + self.niDigital_ApplyLevelsAndTiming_cfunc = self._get_library_function('niDigital_ApplyLevelsAndTiming') + self.niDigital_ApplyLevelsAndTiming_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_ApplyLevelsAndTiming_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ApplyLevelsAndTiming_cfunc(vi, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins) + + def niDigital_ApplyTDROffsets(self, vi, channel_list, num_offsets, offsets): # noqa: N802 + with self._func_lock: + if self.niDigital_ApplyTDROffsets_cfunc is None: + self.niDigital_ApplyTDROffsets_cfunc = self._get_library_function('niDigital_ApplyTDROffsets') + self.niDigital_ApplyTDROffsets_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDigital_ApplyTDROffsets_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ApplyTDROffsets_cfunc(vi, channel_list, num_offsets, offsets) + + def niDigital_BurstPattern(self, vi, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 + with self._func_lock: + if self.niDigital_BurstPattern_cfunc is None: + self.niDigital_BurstPattern_cfunc = self._get_library_function('niDigital_BurstPattern') + self.niDigital_BurstPattern_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ViReal64] # noqa: F405 + self.niDigital_BurstPattern_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_BurstPattern_cfunc(vi, site_list, start_label, select_digital_function, wait_until_done, timeout) + + def niDigital_ClockGenerator_Abort(self, vi, channel_list): # noqa: N802 + with self._func_lock: + if self.niDigital_ClockGenerator_Abort_cfunc is None: + self.niDigital_ClockGenerator_Abort_cfunc = self._get_library_function('niDigital_ClockGenerator_Abort') + self.niDigital_ClockGenerator_Abort_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_ClockGenerator_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ClockGenerator_Abort_cfunc(vi, channel_list) + + def niDigital_ClockGenerator_GenerateClock(self, vi, channel_list, frequency, select_digital_function): # noqa: N802 + with self._func_lock: + if self.niDigital_ClockGenerator_GenerateClock_cfunc is None: + self.niDigital_ClockGenerator_GenerateClock_cfunc = self._get_library_function('niDigital_ClockGenerator_GenerateClock') + self.niDigital_ClockGenerator_GenerateClock_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViBoolean] # noqa: F405 + self.niDigital_ClockGenerator_GenerateClock_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ClockGenerator_GenerateClock_cfunc(vi, channel_list, frequency, select_digital_function) + + def niDigital_Commit(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_Commit_cfunc is None: + self.niDigital_Commit_cfunc = self._get_library_function('niDigital_Commit') + self.niDigital_Commit_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_Commit_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_Commit_cfunc(vi) + + def niDigital_ConfigureActiveLoadLevels(self, vi, channel_list, iol, ioh, vcom): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureActiveLoadLevels_cfunc is None: + self.niDigital_ConfigureActiveLoadLevels_cfunc = self._get_library_function('niDigital_ConfigureActiveLoadLevels') + self.niDigital_ConfigureActiveLoadLevels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niDigital_ConfigureActiveLoadLevels_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureActiveLoadLevels_cfunc(vi, channel_list, iol, ioh, vcom) + + def niDigital_ConfigurePatternBurstSites(self, vi, site_list): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigurePatternBurstSites_cfunc is None: + self.niDigital_ConfigurePatternBurstSites_cfunc = self._get_library_function('niDigital_ConfigurePatternBurstSites') + self.niDigital_ConfigurePatternBurstSites_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_ConfigurePatternBurstSites_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigurePatternBurstSites_cfunc(vi, site_list) + + def niDigital_ConfigureTimeSetCompareEdgesStrobe(self, vi, pin_list, time_set_name, strobe_edge): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc is None: + self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc = self._get_library_function('niDigital_ConfigureTimeSetCompareEdgesStrobe') + self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViReal64] # noqa: F405 + self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetCompareEdgesStrobe_cfunc(vi, pin_list, time_set_name, strobe_edge) + + def niDigital_ConfigureTimeSetCompareEdgesStrobe2x(self, vi, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc is None: + self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc = self._get_library_function('niDigital_ConfigureTimeSetCompareEdgesStrobe2x') + self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 + self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetCompareEdgesStrobe2x_cfunc(vi, pin_list, time_set_name, strobe_edge, strobe2_edge) + + def niDigital_ConfigureTimeSetDriveEdges(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetDriveEdges_cfunc is None: + self.niDigital_ConfigureTimeSetDriveEdges_cfunc = self._get_library_function('niDigital_ConfigureTimeSetDriveEdges') + self.niDigital_ConfigureTimeSetDriveEdges_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niDigital_ConfigureTimeSetDriveEdges_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetDriveEdges_cfunc(vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge) + + def niDigital_ConfigureTimeSetDriveEdges2x(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc is None: + self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc = self._get_library_function('niDigital_ConfigureTimeSetDriveEdges2x') + self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetDriveEdges2x_cfunc(vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge) + + def niDigital_ConfigureTimeSetDriveFormat(self, vi, pin_list, time_set_name, drive_format): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetDriveFormat_cfunc is None: + self.niDigital_ConfigureTimeSetDriveFormat_cfunc = self._get_library_function('niDigital_ConfigureTimeSetDriveFormat') + self.niDigital_ConfigureTimeSetDriveFormat_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niDigital_ConfigureTimeSetDriveFormat_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetDriveFormat_cfunc(vi, pin_list, time_set_name, drive_format) + + def niDigital_ConfigureTimeSetEdge(self, vi, pin_list, time_set_name, edge, time): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetEdge_cfunc is None: + self.niDigital_ConfigureTimeSetEdge_cfunc = self._get_library_function('niDigital_ConfigureTimeSetEdge') + self.niDigital_ConfigureTimeSetEdge_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64] # noqa: F405 + self.niDigital_ConfigureTimeSetEdge_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetEdge_cfunc(vi, pin_list, time_set_name, edge, time) + + def niDigital_ConfigureTimeSetEdgeMultiplier(self, vi, pin_list, time_set_name, edge_multiplier): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc is None: + self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc = self._get_library_function('niDigital_ConfigureTimeSetEdgeMultiplier') + self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetEdgeMultiplier_cfunc(vi, pin_list, time_set_name, edge_multiplier) + + def niDigital_ConfigureTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureTimeSetPeriod_cfunc is None: + self.niDigital_ConfigureTimeSetPeriod_cfunc = self._get_library_function('niDigital_ConfigureTimeSetPeriod') + self.niDigital_ConfigureTimeSetPeriod_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64] # noqa: F405 + self.niDigital_ConfigureTimeSetPeriod_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureTimeSetPeriod_cfunc(vi, time_set_name, period) + + def niDigital_ConfigureVoltageLevels(self, vi, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 + with self._func_lock: + if self.niDigital_ConfigureVoltageLevels_cfunc is None: + self.niDigital_ConfigureVoltageLevels_cfunc = self._get_library_function('niDigital_ConfigureVoltageLevels') + self.niDigital_ConfigureVoltageLevels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niDigital_ConfigureVoltageLevels_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ConfigureVoltageLevels_cfunc(vi, channel_list, vil, vih, vol, voh, vterm) + + def niDigital_CreateCaptureWaveformFromFileDigicapture(self, vi, waveform_name, waveform_file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc is None: + self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc = self._get_library_function('niDigital_CreateCaptureWaveformFromFileDigicapture') + self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateCaptureWaveformFromFileDigicapture_cfunc(vi, waveform_name, waveform_file_path) + + def niDigital_CreateCaptureWaveformParallel(self, vi, pin_list, waveform_name): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateCaptureWaveformParallel_cfunc is None: + self.niDigital_CreateCaptureWaveformParallel_cfunc = self._get_library_function('niDigital_CreateCaptureWaveformParallel') + self.niDigital_CreateCaptureWaveformParallel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_CreateCaptureWaveformParallel_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateCaptureWaveformParallel_cfunc(vi, pin_list, waveform_name) + + def niDigital_CreateCaptureWaveformSerial(self, vi, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateCaptureWaveformSerial_cfunc is None: + self.niDigital_CreateCaptureWaveformSerial_cfunc = self._get_library_function('niDigital_CreateCaptureWaveformSerial') + self.niDigital_CreateCaptureWaveformSerial_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViUInt32, ViInt32] # noqa: F405 + self.niDigital_CreateCaptureWaveformSerial_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateCaptureWaveformSerial_cfunc(vi, pin_list, waveform_name, sample_width, bit_order) + + def niDigital_CreateSourceWaveformFromFileTDMS(self, vi, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc is None: + self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc = self._get_library_function('niDigital_CreateSourceWaveformFromFileTDMS') + self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 + self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateSourceWaveformFromFileTDMS_cfunc(vi, waveform_name, waveform_file_path, write_waveform_data) + + def niDigital_CreateSourceWaveformParallel(self, vi, pin_list, waveform_name, data_mapping): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateSourceWaveformParallel_cfunc is None: + self.niDigital_CreateSourceWaveformParallel_cfunc = self._get_library_function('niDigital_CreateSourceWaveformParallel') + self.niDigital_CreateSourceWaveformParallel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niDigital_CreateSourceWaveformParallel_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateSourceWaveformParallel_cfunc(vi, pin_list, waveform_name, data_mapping) + + def niDigital_CreateSourceWaveformSerial(self, vi, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateSourceWaveformSerial_cfunc is None: + self.niDigital_CreateSourceWaveformSerial_cfunc = self._get_library_function('niDigital_CreateSourceWaveformSerial') + self.niDigital_CreateSourceWaveformSerial_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViUInt32, ViInt32] # noqa: F405 + self.niDigital_CreateSourceWaveformSerial_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateSourceWaveformSerial_cfunc(vi, pin_list, waveform_name, data_mapping, sample_width, bit_order) + + def niDigital_CreateTimeSet(self, vi, name): # noqa: N802 + with self._func_lock: + if self.niDigital_CreateTimeSet_cfunc is None: + self.niDigital_CreateTimeSet_cfunc = self._get_library_function('niDigital_CreateTimeSet') + self.niDigital_CreateTimeSet_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_CreateTimeSet_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_CreateTimeSet_cfunc(vi, name) + + def niDigital_DeleteAllTimeSets(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_DeleteAllTimeSets_cfunc is None: + self.niDigital_DeleteAllTimeSets_cfunc = self._get_library_function('niDigital_DeleteAllTimeSets') + self.niDigital_DeleteAllTimeSets_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_DeleteAllTimeSets_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_DeleteAllTimeSets_cfunc(vi) + + def niDigital_DisableSites(self, vi, site_list): # noqa: N802 + with self._func_lock: + if self.niDigital_DisableSites_cfunc is None: + self.niDigital_DisableSites_cfunc = self._get_library_function('niDigital_DisableSites') + self.niDigital_DisableSites_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_DisableSites_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_DisableSites_cfunc(vi, site_list) + + def niDigital_EnableMatchFailCombination(self, session_count, sessions, sync_session): # noqa: N802 + with self._func_lock: + if self.niDigital_EnableMatchFailCombination_cfunc is None: + self.niDigital_EnableMatchFailCombination_cfunc = self._get_library_function('niDigital_EnableMatchFailCombination') + self.niDigital_EnableMatchFailCombination_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViSession] # noqa: F405 + self.niDigital_EnableMatchFailCombination_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_EnableMatchFailCombination_cfunc(session_count, sessions, sync_session) + + def niDigital_EnableSites(self, vi, site_list): # noqa: N802 + with self._func_lock: + if self.niDigital_EnableSites_cfunc is None: + self.niDigital_EnableSites_cfunc = self._get_library_function('niDigital_EnableSites') + self.niDigital_EnableSites_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_EnableSites_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_EnableSites_cfunc(vi, site_list) + + def niDigital_FetchCaptureWaveformU32(self, vi, site_list, waveform_name, samples_to_read, timeout, data_buffer_size, data, actual_num_waveforms, actual_samples_per_waveform): # noqa: N802 + with self._func_lock: + if self.niDigital_FetchCaptureWaveformU32_cfunc is None: + self.niDigital_FetchCaptureWaveformU32_cfunc = self._get_library_function('niDigital_FetchCaptureWaveformU32') + self.niDigital_FetchCaptureWaveformU32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViReal64, ViInt32, ctypes.POINTER(ViUInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_FetchCaptureWaveformU32_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_FetchCaptureWaveformU32_cfunc(vi, site_list, waveform_name, samples_to_read, timeout, data_buffer_size, data, actual_num_waveforms, actual_samples_per_waveform) + + def niDigital_FetchHistoryRAMCycleInformation(self, vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles): # noqa: N802 + with self._func_lock: + if self.niDigital_FetchHistoryRAMCycleInformation_cfunc is None: + self.niDigital_FetchHistoryRAMCycleInformation_cfunc = self._get_library_function('niDigital_FetchHistoryRAMCycleInformation') + self.niDigital_FetchHistoryRAMCycleInformation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_FetchHistoryRAMCycleInformation_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_FetchHistoryRAMCycleInformation_cfunc(vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles) + + def niDigital_FetchHistoryRAMCyclePinData(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 + with self._func_lock: + if self.niDigital_FetchHistoryRAMCyclePinData_cfunc is None: + self.niDigital_FetchHistoryRAMCyclePinData_cfunc = self._get_library_function('niDigital_FetchHistoryRAMCyclePinData') + self.niDigital_FetchHistoryRAMCyclePinData_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt64, ViInt32, ViInt32, ctypes.POINTER(ViUInt8), ctypes.POINTER(ViUInt8), ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_FetchHistoryRAMCyclePinData_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_FetchHistoryRAMCyclePinData_cfunc(vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data) + + def niDigital_FetchHistoryRAMScanCycleNumber(self, vi, site, sample_index, scan_cycle_number): # noqa: N802 + with self._func_lock: + if self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc is None: + self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc = self._get_library_function('niDigital_FetchHistoryRAMScanCycleNumber') + self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_FetchHistoryRAMScanCycleNumber_cfunc(vi, site, sample_index, scan_cycle_number) + + def niDigital_FrequencyCounter_MeasureFrequency(self, vi, channel_list, frequencies_buffer_size, frequencies, actual_num_frequencies): # noqa: N802 + with self._func_lock: + if self.niDigital_FrequencyCounter_MeasureFrequency_cfunc is None: + self.niDigital_FrequencyCounter_MeasureFrequency_cfunc = self._get_library_function('niDigital_FrequencyCounter_MeasureFrequency') + self.niDigital_FrequencyCounter_MeasureFrequency_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_FrequencyCounter_MeasureFrequency_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_FrequencyCounter_MeasureFrequency_cfunc(vi, channel_list, frequencies_buffer_size, frequencies, actual_num_frequencies) + + def niDigital_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_GetAttributeViBoolean_cfunc is None: + self.niDigital_GetAttributeViBoolean_cfunc = self._get_library_function('niDigital_GetAttributeViBoolean') + self.niDigital_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDigital_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) + + def niDigital_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_GetAttributeViInt32_cfunc is None: + self.niDigital_GetAttributeViInt32_cfunc = self._get_library_function('niDigital_GetAttributeViInt32') + self.niDigital_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetAttributeViInt32_cfunc(vi, channel_name, attribute, value) + + def niDigital_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_GetAttributeViInt64_cfunc is None: + self.niDigital_GetAttributeViInt64_cfunc = self._get_library_function('niDigital_GetAttributeViInt64') + self.niDigital_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niDigital_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetAttributeViInt64_cfunc(vi, channel_name, attribute, value) + + def niDigital_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_GetAttributeViReal64_cfunc is None: + self.niDigital_GetAttributeViReal64_cfunc = self._get_library_function('niDigital_GetAttributeViReal64') + self.niDigital_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDigital_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetAttributeViReal64_cfunc(vi, channel_name, attribute, value) + + def niDigital_GetAttributeViString(self, vi, channel_name, attribute, buffer_size, value): # noqa: N802 + with self._func_lock: + if self.niDigital_GetAttributeViString_cfunc is None: + self.niDigital_GetAttributeViString_cfunc = self._get_library_function('niDigital_GetAttributeViString') + self.niDigital_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetAttributeViString_cfunc(vi, channel_name, attribute, buffer_size, value) + + def niDigital_GetChannelNameFromString(self, vi, indices, name_buffer_size, names): # noqa: N802 + with self._func_lock: + if self.niDigital_GetChannelNameFromString_cfunc is None: + self.niDigital_GetChannelNameFromString_cfunc = self._get_library_function('niDigital_GetChannelNameFromString') + self.niDigital_GetChannelNameFromString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetChannelNameFromString_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetChannelNameFromString_cfunc(vi, indices, name_buffer_size, names) + + def niDigital_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + with self._func_lock: + if self.niDigital_GetError_cfunc is None: + self.niDigital_GetError_cfunc = self._get_library_function('niDigital_GetError') + self.niDigital_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) + + def niDigital_GetFailCount(self, vi, channel_list, buffer_size, failure_count, actual_num_read): # noqa: N802 + with self._func_lock: + if self.niDigital_GetFailCount_cfunc is None: + self.niDigital_GetFailCount_cfunc = self._get_library_function('niDigital_GetFailCount') + self.niDigital_GetFailCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetFailCount_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetFailCount_cfunc(vi, channel_list, buffer_size, failure_count, actual_num_read) + + def niDigital_GetHistoryRAMSampleCount(self, vi, site, sample_count): # noqa: N802 + with self._func_lock: + if self.niDigital_GetHistoryRAMSampleCount_cfunc is None: + self.niDigital_GetHistoryRAMSampleCount_cfunc = self._get_library_function('niDigital_GetHistoryRAMSampleCount') + self.niDigital_GetHistoryRAMSampleCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt64)] # noqa: F405 + self.niDigital_GetHistoryRAMSampleCount_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetHistoryRAMSampleCount_cfunc(vi, site, sample_count) + + def niDigital_GetPatternName(self, vi, pattern_index, name_buffer_size, name): # noqa: N802 + with self._func_lock: + if self.niDigital_GetPatternName_cfunc is None: + self.niDigital_GetPatternName_cfunc = self._get_library_function('niDigital_GetPatternName') + self.niDigital_GetPatternName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetPatternName_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetPatternName_cfunc(vi, pattern_index, name_buffer_size, name) + + def niDigital_GetPatternPinList(self, vi, start_label, pin_list_buffer_size, pin_list): # noqa: N802 + with self._func_lock: + if self.niDigital_GetPatternPinList_cfunc is None: + self.niDigital_GetPatternPinList_cfunc = self._get_library_function('niDigital_GetPatternPinList') + self.niDigital_GetPatternPinList_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetPatternPinList_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetPatternPinList_cfunc(vi, start_label, pin_list_buffer_size, pin_list) + + def niDigital_GetPinName(self, vi, pin_index, name_buffer_size, name): # noqa: N802 + with self._func_lock: + if self.niDigital_GetPinName_cfunc is None: + self.niDigital_GetPinName_cfunc = self._get_library_function('niDigital_GetPinName') + self.niDigital_GetPinName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetPinName_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetPinName_cfunc(vi, pin_index, name_buffer_size, name) + + def niDigital_GetPinResultsPinInformation(self, vi, channel_list, buffer_size, pin_indexes, site_numbers, channel_indexes, actual_num_values): # noqa: N802 + with self._func_lock: + if self.niDigital_GetPinResultsPinInformation_cfunc is None: + self.niDigital_GetPinResultsPinInformation_cfunc = self._get_library_function('niDigital_GetPinResultsPinInformation') + self.niDigital_GetPinResultsPinInformation_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetPinResultsPinInformation_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetPinResultsPinInformation_cfunc(vi, channel_list, buffer_size, pin_indexes, site_numbers, channel_indexes, actual_num_values) + + def niDigital_GetSitePassFail(self, vi, site_list, pass_fail_buffer_size, pass_fail, actual_num_sites): # noqa: N802 + with self._func_lock: + if self.niDigital_GetSitePassFail_cfunc is None: + self.niDigital_GetSitePassFail_cfunc = self._get_library_function('niDigital_GetSitePassFail') + self.niDigital_GetSitePassFail_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetSitePassFail_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetSitePassFail_cfunc(vi, site_list, pass_fail_buffer_size, pass_fail, actual_num_sites) + + def niDigital_GetSiteResultsSiteNumbers(self, vi, site_list, site_result_type, site_numbers_buffer_size, site_numbers, actual_num_site_numbers): # noqa: N802 + with self._func_lock: + if self.niDigital_GetSiteResultsSiteNumbers_cfunc is None: + self.niDigital_GetSiteResultsSiteNumbers_cfunc = self._get_library_function('niDigital_GetSiteResultsSiteNumbers') + self.niDigital_GetSiteResultsSiteNumbers_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetSiteResultsSiteNumbers_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetSiteResultsSiteNumbers_cfunc(vi, site_list, site_result_type, site_numbers_buffer_size, site_numbers, actual_num_site_numbers) + + def niDigital_GetTimeSetDriveFormat(self, vi, pin, time_set_name, format): # noqa: N802 + with self._func_lock: + if self.niDigital_GetTimeSetDriveFormat_cfunc is None: + self.niDigital_GetTimeSetDriveFormat_cfunc = self._get_library_function('niDigital_GetTimeSetDriveFormat') + self.niDigital_GetTimeSetDriveFormat_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetTimeSetDriveFormat_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetTimeSetDriveFormat_cfunc(vi, pin, time_set_name, format) + + def niDigital_GetTimeSetEdge(self, vi, pin, time_set_name, edge, time): # noqa: N802 + with self._func_lock: + if self.niDigital_GetTimeSetEdge_cfunc is None: + self.niDigital_GetTimeSetEdge_cfunc = self._get_library_function('niDigital_GetTimeSetEdge') + self.niDigital_GetTimeSetEdge_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDigital_GetTimeSetEdge_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetTimeSetEdge_cfunc(vi, pin, time_set_name, edge, time) + + def niDigital_GetTimeSetEdgeMultiplier(self, vi, pin, time_set_name, edge_multiplier): # noqa: N802 + with self._func_lock: + if self.niDigital_GetTimeSetEdgeMultiplier_cfunc is None: + self.niDigital_GetTimeSetEdgeMultiplier_cfunc = self._get_library_function('niDigital_GetTimeSetEdgeMultiplier') + self.niDigital_GetTimeSetEdgeMultiplier_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_GetTimeSetEdgeMultiplier_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetTimeSetEdgeMultiplier_cfunc(vi, pin, time_set_name, edge_multiplier) + + def niDigital_GetTimeSetName(self, vi, time_set_index, name_buffer_size, name): # noqa: N802 + with self._func_lock: + if self.niDigital_GetTimeSetName_cfunc is None: + self.niDigital_GetTimeSetName_cfunc = self._get_library_function('niDigital_GetTimeSetName') + self.niDigital_GetTimeSetName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_GetTimeSetName_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetTimeSetName_cfunc(vi, time_set_index, name_buffer_size, name) + + def niDigital_GetTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 + with self._func_lock: + if self.niDigital_GetTimeSetPeriod_cfunc is None: + self.niDigital_GetTimeSetPeriod_cfunc = self._get_library_function('niDigital_GetTimeSetPeriod') + self.niDigital_GetTimeSetPeriod_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDigital_GetTimeSetPeriod_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_GetTimeSetPeriod_cfunc(vi, time_set_name, period) + + def niDigital_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 + with self._func_lock: + if self.niDigital_InitWithOptions_cfunc is None: + self.niDigital_InitWithOptions_cfunc = self._get_library_function('niDigital_InitWithOptions') + self.niDigital_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niDigital_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, new_vi) + + def niDigital_Initiate(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_Initiate_cfunc is None: + self.niDigital_Initiate_cfunc = self._get_library_function('niDigital_Initiate') + self.niDigital_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_Initiate_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_Initiate_cfunc(vi) + + def niDigital_IsDone(self, vi, done): # noqa: N802 + with self._func_lock: + if self.niDigital_IsDone_cfunc is None: + self.niDigital_IsDone_cfunc = self._get_library_function('niDigital_IsDone') + self.niDigital_IsDone_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDigital_IsDone_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_IsDone_cfunc(vi, done) + + def niDigital_IsSiteEnabled(self, vi, site, enable): # noqa: N802 + with self._func_lock: + if self.niDigital_IsSiteEnabled_cfunc is None: + self.niDigital_IsSiteEnabled_cfunc = self._get_library_function('niDigital_IsSiteEnabled') + self.niDigital_IsSiteEnabled_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDigital_IsSiteEnabled_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_IsSiteEnabled_cfunc(vi, site, enable) + + def niDigital_LoadLevels(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_LoadLevels_cfunc is None: + self.niDigital_LoadLevels_cfunc = self._get_library_function('niDigital_LoadLevels') + self.niDigital_LoadLevels_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_LoadLevels_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_LoadLevels_cfunc(vi, file_path) + + def niDigital_LoadPattern(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_LoadPattern_cfunc is None: + self.niDigital_LoadPattern_cfunc = self._get_library_function('niDigital_LoadPattern') + self.niDigital_LoadPattern_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_LoadPattern_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_LoadPattern_cfunc(vi, file_path) + + def niDigital_LoadPinMap(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_LoadPinMap_cfunc is None: + self.niDigital_LoadPinMap_cfunc = self._get_library_function('niDigital_LoadPinMap') + self.niDigital_LoadPinMap_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_LoadPinMap_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_LoadPinMap_cfunc(vi, file_path) + + def niDigital_LoadSpecifications(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_LoadSpecifications_cfunc is None: + self.niDigital_LoadSpecifications_cfunc = self._get_library_function('niDigital_LoadSpecifications') + self.niDigital_LoadSpecifications_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_LoadSpecifications_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_LoadSpecifications_cfunc(vi, file_path) + + def niDigital_LoadTiming(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_LoadTiming_cfunc is None: + self.niDigital_LoadTiming_cfunc = self._get_library_function('niDigital_LoadTiming') + self.niDigital_LoadTiming_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_LoadTiming_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_LoadTiming_cfunc(vi, file_path) + + def niDigital_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niDigital_LockSession_cfunc is None: + self.niDigital_LockSession_cfunc = self._get_library_function('niDigital_LockSession') + self.niDigital_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDigital_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_LockSession_cfunc(vi, caller_has_lock) + + def niDigital_PPMU_Measure(self, vi, channel_list, measurement_type, buffer_size, measurements, actual_num_read): # noqa: N802 + with self._func_lock: + if self.niDigital_PPMU_Measure_cfunc is None: + self.niDigital_PPMU_Measure_cfunc = self._get_library_function('niDigital_PPMU_Measure') + self.niDigital_PPMU_Measure_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_PPMU_Measure_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_PPMU_Measure_cfunc(vi, channel_list, measurement_type, buffer_size, measurements, actual_num_read) + + def niDigital_PPMU_Source(self, vi, channel_list): # noqa: N802 + with self._func_lock: + if self.niDigital_PPMU_Source_cfunc is None: + self.niDigital_PPMU_Source_cfunc = self._get_library_function('niDigital_PPMU_Source') + self.niDigital_PPMU_Source_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_PPMU_Source_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_PPMU_Source_cfunc(vi, channel_list) + + def niDigital_ReadSequencerFlag(self, vi, flag, value): # noqa: N802 + with self._func_lock: + if self.niDigital_ReadSequencerFlag_cfunc is None: + self.niDigital_ReadSequencerFlag_cfunc = self._get_library_function('niDigital_ReadSequencerFlag') + self.niDigital_ReadSequencerFlag_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDigital_ReadSequencerFlag_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ReadSequencerFlag_cfunc(vi, flag, value) + + def niDigital_ReadSequencerRegister(self, vi, reg, value): # noqa: N802 + with self._func_lock: + if self.niDigital_ReadSequencerRegister_cfunc is None: + self.niDigital_ReadSequencerRegister_cfunc = self._get_library_function('niDigital_ReadSequencerRegister') + self.niDigital_ReadSequencerRegister_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_ReadSequencerRegister_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ReadSequencerRegister_cfunc(vi, reg, value) + + def niDigital_ReadStatic(self, vi, channel_list, buffer_size, data, actual_num_read): # noqa: N802 + with self._func_lock: + if self.niDigital_ReadStatic_cfunc is None: + self.niDigital_ReadStatic_cfunc = self._get_library_function('niDigital_ReadStatic') + self.niDigital_ReadStatic_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViUInt8), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_ReadStatic_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ReadStatic_cfunc(vi, channel_list, buffer_size, data, actual_num_read) + + def niDigital_ResetDevice(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_ResetDevice_cfunc is None: + self.niDigital_ResetDevice_cfunc = self._get_library_function('niDigital_ResetDevice') + self.niDigital_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_ResetDevice_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_ResetDevice_cfunc(vi) + + def niDigital_SelfCalibrate(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_SelfCalibrate_cfunc is None: + self.niDigital_SelfCalibrate_cfunc = self._get_library_function('niDigital_SelfCalibrate') + self.niDigital_SelfCalibrate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_SelfCalibrate_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SelfCalibrate_cfunc(vi) + + def niDigital_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 + with self._func_lock: + if self.niDigital_SendSoftwareEdgeTrigger_cfunc is None: + self.niDigital_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niDigital_SendSoftwareEdgeTrigger') + self.niDigital_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_identifier) + + def niDigital_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_SetAttributeViBoolean_cfunc is None: + self.niDigital_SetAttributeViBoolean_cfunc = self._get_library_function('niDigital_SetAttributeViBoolean') + self.niDigital_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niDigital_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) + + def niDigital_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_SetAttributeViInt32_cfunc is None: + self.niDigital_SetAttributeViInt32_cfunc = self._get_library_function('niDigital_SetAttributeViInt32') + self.niDigital_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niDigital_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SetAttributeViInt32_cfunc(vi, channel_name, attribute, value) + + def niDigital_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_SetAttributeViInt64_cfunc is None: + self.niDigital_SetAttributeViInt64_cfunc = self._get_library_function('niDigital_SetAttributeViInt64') + self.niDigital_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 + self.niDigital_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SetAttributeViInt64_cfunc(vi, channel_name, attribute, value) + + def niDigital_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_SetAttributeViReal64_cfunc is None: + self.niDigital_SetAttributeViReal64_cfunc = self._get_library_function('niDigital_SetAttributeViReal64') + self.niDigital_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niDigital_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SetAttributeViReal64_cfunc(vi, channel_name, attribute, value) + + def niDigital_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niDigital_SetAttributeViString_cfunc is None: + self.niDigital_SetAttributeViString_cfunc = self._get_library_function('niDigital_SetAttributeViString') + self.niDigital_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SetAttributeViString_cfunc(vi, channel_name, attribute, value) + + def niDigital_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niDigital_SetRuntimeEnvironment_cfunc is None: + self.niDigital_SetRuntimeEnvironment_cfunc = self._get_library_function('niDigital_SetRuntimeEnvironment') + self.niDigital_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niDigital_TDR(self, vi, channel_list, apply_offsets, offsets_buffer_size, offsets, actual_num_offsets): # noqa: N802 + with self._func_lock: + if self.niDigital_TDR_cfunc is None: + self.niDigital_TDR_cfunc = self._get_library_function('niDigital_TDR') + self.niDigital_TDR_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDigital_TDR_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_TDR_cfunc(vi, channel_list, apply_offsets, offsets_buffer_size, offsets, actual_num_offsets) + + def niDigital_UnloadAllPatterns(self, vi, unload_keep_alive_pattern): # noqa: N802 + with self._func_lock: + if self.niDigital_UnloadAllPatterns_cfunc is None: + self.niDigital_UnloadAllPatterns_cfunc = self._get_library_function('niDigital_UnloadAllPatterns') + self.niDigital_UnloadAllPatterns_cfunc.argtypes = [ViSession, ViBoolean] # noqa: F405 + self.niDigital_UnloadAllPatterns_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_UnloadAllPatterns_cfunc(vi, unload_keep_alive_pattern) + + def niDigital_UnloadSpecifications(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_UnloadSpecifications_cfunc is None: + self.niDigital_UnloadSpecifications_cfunc = self._get_library_function('niDigital_UnloadSpecifications') + self.niDigital_UnloadSpecifications_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_UnloadSpecifications_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_UnloadSpecifications_cfunc(vi, file_path) + + def niDigital_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niDigital_UnlockSession_cfunc is None: + self.niDigital_UnlockSession_cfunc = self._get_library_function('niDigital_UnlockSession') + self.niDigital_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDigital_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_UnlockSession_cfunc(vi, caller_has_lock) + + def niDigital_WaitUntilDone(self, vi, timeout): # noqa: N802 + with self._func_lock: + if self.niDigital_WaitUntilDone_cfunc is None: + self.niDigital_WaitUntilDone_cfunc = self._get_library_function('niDigital_WaitUntilDone') + self.niDigital_WaitUntilDone_cfunc.argtypes = [ViSession, ViReal64] # noqa: F405 + self.niDigital_WaitUntilDone_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WaitUntilDone_cfunc(vi, timeout) + + def niDigital_WriteSequencerFlag(self, vi, flag, value): # noqa: N802 + with self._func_lock: + if self.niDigital_WriteSequencerFlag_cfunc is None: + self.niDigital_WriteSequencerFlag_cfunc = self._get_library_function('niDigital_WriteSequencerFlag') + self.niDigital_WriteSequencerFlag_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean] # noqa: F405 + self.niDigital_WriteSequencerFlag_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WriteSequencerFlag_cfunc(vi, flag, value) + + def niDigital_WriteSequencerRegister(self, vi, reg, value): # noqa: N802 + with self._func_lock: + if self.niDigital_WriteSequencerRegister_cfunc is None: + self.niDigital_WriteSequencerRegister_cfunc = self._get_library_function('niDigital_WriteSequencerRegister') + self.niDigital_WriteSequencerRegister_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niDigital_WriteSequencerRegister_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WriteSequencerRegister_cfunc(vi, reg, value) + + def niDigital_WriteSourceWaveformBroadcastU32(self, vi, waveform_name, waveform_size, waveform_data): # noqa: N802 + with self._func_lock: + if self.niDigital_WriteSourceWaveformBroadcastU32_cfunc is None: + self.niDigital_WriteSourceWaveformBroadcastU32_cfunc = self._get_library_function('niDigital_WriteSourceWaveformBroadcastU32') + self.niDigital_WriteSourceWaveformBroadcastU32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViUInt32)] # noqa: F405 + self.niDigital_WriteSourceWaveformBroadcastU32_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WriteSourceWaveformBroadcastU32_cfunc(vi, waveform_name, waveform_size, waveform_data) + + def niDigital_WriteSourceWaveformDataFromFileTDMS(self, vi, waveform_name, waveform_file_path): # noqa: N802 + with self._func_lock: + if self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc is None: + self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc = self._get_library_function('niDigital_WriteSourceWaveformDataFromFileTDMS') + self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WriteSourceWaveformDataFromFileTDMS_cfunc(vi, waveform_name, waveform_file_path) + + def niDigital_WriteSourceWaveformSiteUniqueU32(self, vi, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 + with self._func_lock: + if self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc is None: + self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc = self._get_library_function('niDigital_WriteSourceWaveformSiteUniqueU32') + self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViUInt32)] # noqa: F405 + self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WriteSourceWaveformSiteUniqueU32_cfunc(vi, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data) + + def niDigital_WriteStatic(self, vi, channel_list, state): # noqa: N802 + with self._func_lock: + if self.niDigital_WriteStatic_cfunc is None: + self.niDigital_WriteStatic_cfunc = self._get_library_function('niDigital_WriteStatic') + self.niDigital_WriteStatic_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViUInt8] # noqa: F405 + self.niDigital_WriteStatic_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_WriteStatic_cfunc(vi, channel_list, state) + + def niDigital_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_close_cfunc is None: + self.niDigital_close_cfunc = self._get_library_function('niDigital_close') + self.niDigital_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_close_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_close_cfunc(vi) + + def niDigital_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niDigital_error_message_cfunc is None: + self.niDigital_error_message_cfunc = self._get_library_function('niDigital_error_message') + self.niDigital_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_error_message_cfunc(vi, error_code, error_message) + + def niDigital_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niDigital_reset_cfunc is None: + self.niDigital_reset_cfunc = self._get_library_function('niDigital_reset') + self.niDigital_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDigital_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_reset_cfunc(vi) + + def niDigital_self_test(self, vi, test_result, test_message): # noqa: N802 + with self._func_lock: + if self.niDigital_self_test_cfunc is None: + self.niDigital_self_test_cfunc = self._get_library_function('niDigital_self_test') + self.niDigital_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDigital_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niDigital_self_test_cfunc(vi, test_result, test_message) diff --git a/generated/nidigital/nidigital/_library_interpreter.py b/generated/nidigital/nidigital/_library_interpreter.py new file mode 100644 index 0000000000..8c00b6c500 --- /dev/null +++ b/generated/nidigital/nidigital/_library_interpreter.py @@ -0,0 +1,1047 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import nidigital._library_singleton as _library_singleton +import nidigital._visatype as _visatype +import nidigital.enums as enums # noqa: F401 +import nidigital.errors as errors + +import nidigital.history_ram_cycle_information as history_ram_cycle_information # noqa: F401 + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_Abort(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def abort_keep_alive(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_AbortKeepAlive(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def apply_levels_and_timing(self, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + levels_sheet_ctype = ctypes.create_string_buffer(levels_sheet.encode(self._encoding)) # case C020 + timing_sheet_ctype = ctypes.create_string_buffer(timing_sheet.encode(self._encoding)) # case C020 + initial_state_high_pins_ctype = ctypes.create_string_buffer(initial_state_high_pins.encode(self._encoding)) # case C020 + initial_state_low_pins_ctype = ctypes.create_string_buffer(initial_state_low_pins.encode(self._encoding)) # case C020 + initial_state_tristate_pins_ctype = ctypes.create_string_buffer(initial_state_tristate_pins.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_ApplyLevelsAndTiming(vi_ctype, site_list_ctype, levels_sheet_ctype, timing_sheet_ctype, initial_state_high_pins_ctype, initial_state_low_pins_ctype, initial_state_tristate_pins_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def apply_tdr_offsets(self, channel_list, offsets): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + num_offsets_ctype = _visatype.ViInt32(0 if offsets is None else len(offsets)) # case S160 + offsets_ctype = _get_ctypes_pointer_for_buffer(value=offsets, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niDigital_ApplyTDROffsets(vi_ctype, channel_list_ctype, num_offsets_ctype, offsets_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def burst_pattern(self, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + start_label_ctype = ctypes.create_string_buffer(start_label.encode(self._encoding)) # case C020 + select_digital_function_ctype = _visatype.ViBoolean(select_digital_function) # case S150 + wait_until_done_ctype = _visatype.ViBoolean(wait_until_done) # case S150 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + error_code = self._library.niDigital_BurstPattern(vi_ctype, site_list_ctype, start_label_ctype, select_digital_function_ctype, wait_until_done_ctype, timeout_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clock_generator_abort(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + error_code = self._library.niDigital_ClockGenerator_Abort(vi_ctype, channel_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clock_generator_generate_clock(self, channel_list, frequency, select_digital_function): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + frequency_ctype = _visatype.ViReal64(frequency) # case S150 + select_digital_function_ctype = _visatype.ViBoolean(select_digital_function) # case S150 + error_code = self._library.niDigital_ClockGenerator_GenerateClock(vi_ctype, channel_list_ctype, frequency_ctype, select_digital_function_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def commit(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_Commit(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_active_load_levels(self, channel_list, iol, ioh, vcom): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + iol_ctype = _visatype.ViReal64(iol) # case S150 + ioh_ctype = _visatype.ViReal64(ioh) # case S150 + vcom_ctype = _visatype.ViReal64(vcom) # case S150 + error_code = self._library.niDigital_ConfigureActiveLoadLevels(vi_ctype, channel_list_ctype, iol_ctype, ioh_ctype, vcom_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_pattern_burst_sites(self, site_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + error_code = self._library.niDigital_ConfigurePatternBurstSites(vi_ctype, site_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_compare_edges_strobe(self, pin_list, time_set_name, strobe_edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + strobe_edge_ctype = _visatype.ViReal64(strobe_edge) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetCompareEdgesStrobe(vi_ctype, pin_list_ctype, time_set_name_ctype, strobe_edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_compare_edges_strobe2x(self, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + strobe_edge_ctype = _visatype.ViReal64(strobe_edge) # case S150 + strobe2_edge_ctype = _visatype.ViReal64(strobe2_edge) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetCompareEdgesStrobe2x(vi_ctype, pin_list_ctype, time_set_name_ctype, strobe_edge_ctype, strobe2_edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_drive_edges(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + format_ctype = _visatype.ViInt32(format.value) # case S130 + drive_on_edge_ctype = _visatype.ViReal64(drive_on_edge) # case S150 + drive_data_edge_ctype = _visatype.ViReal64(drive_data_edge) # case S150 + drive_return_edge_ctype = _visatype.ViReal64(drive_return_edge) # case S150 + drive_off_edge_ctype = _visatype.ViReal64(drive_off_edge) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetDriveEdges(vi_ctype, pin_list_ctype, time_set_name_ctype, format_ctype, drive_on_edge_ctype, drive_data_edge_ctype, drive_return_edge_ctype, drive_off_edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_drive_edges2x(self, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + format_ctype = _visatype.ViInt32(format.value) # case S130 + drive_on_edge_ctype = _visatype.ViReal64(drive_on_edge) # case S150 + drive_data_edge_ctype = _visatype.ViReal64(drive_data_edge) # case S150 + drive_return_edge_ctype = _visatype.ViReal64(drive_return_edge) # case S150 + drive_off_edge_ctype = _visatype.ViReal64(drive_off_edge) # case S150 + drive_data2_edge_ctype = _visatype.ViReal64(drive_data2_edge) # case S150 + drive_return2_edge_ctype = _visatype.ViReal64(drive_return2_edge) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetDriveEdges2x(vi_ctype, pin_list_ctype, time_set_name_ctype, format_ctype, drive_on_edge_ctype, drive_data_edge_ctype, drive_return_edge_ctype, drive_off_edge_ctype, drive_data2_edge_ctype, drive_return2_edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_drive_format(self, pin_list, time_set_name, drive_format): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + drive_format_ctype = _visatype.ViInt32(drive_format.value) # case S130 + error_code = self._library.niDigital_ConfigureTimeSetDriveFormat(vi_ctype, pin_list_ctype, time_set_name_ctype, drive_format_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_edge(self, pin_list, time_set_name, edge, time): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + time_ctype = _visatype.ViReal64(time) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetEdge(vi_ctype, pin_list_ctype, time_set_name_ctype, edge_ctype, time_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_edge_multiplier(self, pin_list, time_set_name, edge_multiplier): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + edge_multiplier_ctype = _visatype.ViInt32(edge_multiplier) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetEdgeMultiplier(vi_ctype, pin_list_ctype, time_set_name_ctype, edge_multiplier_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_time_set_period(self, time_set_name, period): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + period_ctype = _visatype.ViReal64(period) # case S150 + error_code = self._library.niDigital_ConfigureTimeSetPeriod(vi_ctype, time_set_name_ctype, period_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_voltage_levels(self, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + vil_ctype = _visatype.ViReal64(vil) # case S150 + vih_ctype = _visatype.ViReal64(vih) # case S150 + vol_ctype = _visatype.ViReal64(vol) # case S150 + voh_ctype = _visatype.ViReal64(voh) # case S150 + vterm_ctype = _visatype.ViReal64(vterm) # case S150 + error_code = self._library.niDigital_ConfigureVoltageLevels(vi_ctype, channel_list_ctype, vil_ctype, vih_ctype, vol_ctype, voh_ctype, vterm_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_capture_waveform_from_file_digicapture(self, waveform_name, waveform_file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + waveform_file_path_ctype = ctypes.create_string_buffer(waveform_file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_CreateCaptureWaveformFromFileDigicapture(vi_ctype, waveform_name_ctype, waveform_file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_capture_waveform_parallel(self, pin_list, waveform_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_CreateCaptureWaveformParallel(vi_ctype, pin_list_ctype, waveform_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_capture_waveform_serial(self, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + sample_width_ctype = _visatype.ViUInt32(sample_width) # case S150 + bit_order_ctype = _visatype.ViInt32(bit_order.value) # case S130 + error_code = self._library.niDigital_CreateCaptureWaveformSerial(vi_ctype, pin_list_ctype, waveform_name_ctype, sample_width_ctype, bit_order_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_source_waveform_from_file_tdms(self, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + waveform_file_path_ctype = ctypes.create_string_buffer(waveform_file_path.encode(self._encoding)) # case C020 + write_waveform_data_ctype = _visatype.ViBoolean(write_waveform_data) # case S150 + error_code = self._library.niDigital_CreateSourceWaveformFromFileTDMS(vi_ctype, waveform_name_ctype, waveform_file_path_ctype, write_waveform_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_source_waveform_parallel(self, pin_list, waveform_name, data_mapping): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + data_mapping_ctype = _visatype.ViInt32(data_mapping.value) # case S130 + error_code = self._library.niDigital_CreateSourceWaveformParallel(vi_ctype, pin_list_ctype, waveform_name_ctype, data_mapping_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_source_waveform_serial(self, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + data_mapping_ctype = _visatype.ViInt32(data_mapping.value) # case S130 + sample_width_ctype = _visatype.ViUInt32(sample_width) # case S150 + bit_order_ctype = _visatype.ViInt32(bit_order.value) # case S130 + error_code = self._library.niDigital_CreateSourceWaveformSerial(vi_ctype, pin_list_ctype, waveform_name_ctype, data_mapping_ctype, sample_width_ctype, bit_order_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_time_set(self, name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + name_ctype = ctypes.create_string_buffer(name.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_CreateTimeSet(vi_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_all_time_sets(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_DeleteAllTimeSets(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable_sites(self, site_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + error_code = self._library.niDigital_DisableSites(vi_ctype, site_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def enable_match_fail_combination(self, sessions, sync_session): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + sync_session_ctype = _visatype.ViSession(sync_session) # case S110 + error_code = self._library.niDigital_EnableMatchFailCombination(session_count_ctype, sessions_ctype, sync_session_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def enable_sites(self, site_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + error_code = self._library.niDigital_EnableSites(vi_ctype, site_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def fetch_capture_waveform(self, site_list, waveform_name, samples_to_read, timeout): + # This is slightly modified codegen from the function + # We cannot use codegen without major modifications to the code generator + # This function uses two 'ivi-dance' parameters and then multiplies them together - see + # the (modified) line below + # Also, we want to return the two sizes that normally wouldn't be returned + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + samples_to_read_ctype = _visatype.ViInt32(samples_to_read) # case S150 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + data_buffer_size_ctype = _visatype.ViInt32(0) # case S190 + data_ctype = None # case B610 + actual_num_waveforms_ctype = _visatype.ViInt32() # case S220 + actual_samples_per_waveform_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_FetchCaptureWaveformU32(vi_ctype, site_list_ctype, waveform_name_ctype, samples_to_read_ctype, timeout_ctype, data_buffer_size_ctype, data_ctype, None if actual_num_waveforms_ctype is None else (ctypes.pointer(actual_num_waveforms_ctype)), None if actual_samples_per_waveform_ctype is None else (ctypes.pointer(actual_samples_per_waveform_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + data_buffer_size_ctype = _visatype.ViInt32(actual_num_waveforms_ctype.value * actual_samples_per_waveform_ctype.value) # case S200 (modified) + data_size = actual_num_waveforms_ctype.value * actual_samples_per_waveform_ctype.value # case B620 (modified) + data_array = array.array("L", [0]) * data_size # case B620 + data_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViUInt32) # case B620 + error_code = self._library.niDigital_FetchCaptureWaveformU32(vi_ctype, site_list_ctype, waveform_name_ctype, samples_to_read_ctype, timeout_ctype, data_buffer_size_ctype, data_ctype, None if actual_num_waveforms_ctype is None else (ctypes.pointer(actual_num_waveforms_ctype)), None if actual_samples_per_waveform_ctype is None else (ctypes.pointer(actual_samples_per_waveform_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return data_array, actual_num_waveforms_ctype.value, actual_samples_per_waveform_ctype.value # (modified) + + def fetch_history_ram_cycle_information(self, site, sample_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 + sample_index_ctype = _visatype.ViInt64(sample_index) # case S150 + pattern_index_ctype = _visatype.ViInt32() # case S220 + time_set_index_ctype = _visatype.ViInt32() # case S220 + vector_number_ctype = _visatype.ViInt64() # case S220 + cycle_number_ctype = _visatype.ViInt64() # case S220 + num_dut_cycles_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_FetchHistoryRAMCycleInformation(vi_ctype, site_ctype, sample_index_ctype, None if pattern_index_ctype is None else (ctypes.pointer(pattern_index_ctype)), None if time_set_index_ctype is None else (ctypes.pointer(time_set_index_ctype)), None if vector_number_ctype is None else (ctypes.pointer(vector_number_ctype)), None if cycle_number_ctype is None else (ctypes.pointer(cycle_number_ctype)), None if num_dut_cycles_ctype is None else (ctypes.pointer(num_dut_cycles_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(pattern_index_ctype.value), int(time_set_index_ctype.value), int(vector_number_ctype.value), int(cycle_number_ctype.value), int(num_dut_cycles_ctype.value) + + def fetch_history_ram_cycle_pin_data(self, site, pin_list, sample_index, dut_cycle_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 + pin_list_ctype = ctypes.create_string_buffer(pin_list.encode(self._encoding)) # case C020 + sample_index_ctype = _visatype.ViInt64(sample_index) # case S150 + dut_cycle_index_ctype = _visatype.ViInt32(dut_cycle_index) # case S150 + pin_data_buffer_size_ctype = _visatype.ViInt32(0) # case S190 + expected_pin_states_ctype = None # case B610 + actual_pin_states_ctype = None # case B610 + per_pin_pass_fail_ctype = None # case B610 + actual_num_pin_data_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_FetchHistoryRAMCyclePinData(vi_ctype, site_ctype, pin_list_ctype, sample_index_ctype, dut_cycle_index_ctype, pin_data_buffer_size_ctype, expected_pin_states_ctype, actual_pin_states_ctype, per_pin_pass_fail_ctype, None if actual_num_pin_data_ctype is None else (ctypes.pointer(actual_num_pin_data_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + pin_data_buffer_size_ctype = _visatype.ViInt32(actual_num_pin_data_ctype.value) # case S200 + expected_pin_states_size = actual_num_pin_data_ctype.value # case B620 + expected_pin_states_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViUInt8, size=expected_pin_states_size) # case B620 + actual_pin_states_size = actual_num_pin_data_ctype.value # case B620 + actual_pin_states_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViUInt8, size=actual_pin_states_size) # case B620 + per_pin_pass_fail_size = actual_num_pin_data_ctype.value # case B620 + per_pin_pass_fail_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=per_pin_pass_fail_size) # case B620 + error_code = self._library.niDigital_FetchHistoryRAMCyclePinData(vi_ctype, site_ctype, pin_list_ctype, sample_index_ctype, dut_cycle_index_ctype, pin_data_buffer_size_ctype, expected_pin_states_ctype, actual_pin_states_ctype, per_pin_pass_fail_ctype, None if actual_num_pin_data_ctype is None else (ctypes.pointer(actual_num_pin_data_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [enums.PinState(expected_pin_states_ctype[i]) for i in range(pin_data_buffer_size_ctype.value)], [enums.PinState(actual_pin_states_ctype[i]) for i in range(pin_data_buffer_size_ctype.value)], [bool(per_pin_pass_fail_ctype[i]) for i in range(pin_data_buffer_size_ctype.value)] + + def fetch_history_ram_scan_cycle_number(self, site, sample_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 + sample_index_ctype = _visatype.ViInt64(sample_index) # case S150 + scan_cycle_number_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niDigital_FetchHistoryRAMScanCycleNumber(vi_ctype, site_ctype, sample_index_ctype, None if scan_cycle_number_ctype is None else (ctypes.pointer(scan_cycle_number_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(scan_cycle_number_ctype.value) + + def frequency_counter_measure_frequency(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + frequencies_buffer_size_ctype = _visatype.ViInt32(0) # case S190 + frequencies_ctype = None # case B610 + actual_num_frequencies_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_FrequencyCounter_MeasureFrequency(vi_ctype, channel_list_ctype, frequencies_buffer_size_ctype, frequencies_ctype, None if actual_num_frequencies_ctype is None else (ctypes.pointer(actual_num_frequencies_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + frequencies_buffer_size_ctype = _visatype.ViInt32(actual_num_frequencies_ctype.value) # case S200 + frequencies_size = actual_num_frequencies_ctype.value # case B620 + frequencies_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=frequencies_size) # case B620 + error_code = self._library.niDigital_FrequencyCounter_MeasureFrequency(vi_ctype, channel_list_ctype, frequencies_buffer_size_ctype, frequencies_ctype, None if actual_num_frequencies_ctype is None else (ctypes.pointer(actual_num_frequencies_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(frequencies_ctype[i]) for i in range(frequencies_buffer_size_ctype.value)] + + def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDigital_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niDigital_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDigital_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + value_ctype = None # case C050 + error_code = self._library.niDigital_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buffer_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buffer_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return value_ctype.value.decode(self._encoding) + + def get_channel_names(self, indices): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 + name_buffer_size_ctype = _visatype.ViInt32() # case S170 + names_ctype = None # case C050 + error_code = self._library.niDigital_GetChannelNameFromString(vi_ctype, indices_ctype, name_buffer_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + names_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetChannelNameFromString(vi_ctype, indices_ctype, name_buffer_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return names_ctype.value.decode(self._encoding) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 + error_description_ctype = None # case C050 + error_code = self._library.niDigital_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) + + def get_fail_count(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + failure_count_ctype = None # case B610 + actual_num_read_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetFailCount(vi_ctype, channel_list_ctype, buffer_size_ctype, failure_count_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_num_read_ctype.value) # case S200 + failure_count_size = actual_num_read_ctype.value # case B620 + failure_count_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt64, size=failure_count_size) # case B620 + error_code = self._library.niDigital_GetFailCount(vi_ctype, channel_list_ctype, buffer_size_ctype, failure_count_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [int(failure_count_ctype[i]) for i in range(buffer_size_ctype.value)] + + def get_history_ram_sample_count(self, site): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 + sample_count_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niDigital_GetHistoryRAMSampleCount(vi_ctype, site_ctype, None if sample_count_ctype is None else (ctypes.pointer(sample_count_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(sample_count_ctype.value) + + def get_pattern_name(self, pattern_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pattern_index_ctype = _visatype.ViInt32(pattern_index) # case S150 + name_buffer_size_ctype = _visatype.ViInt32() # case S170 + name_ctype = None # case C050 + error_code = self._library.niDigital_GetPatternName(vi_ctype, pattern_index_ctype, name_buffer_size_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + name_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetPatternName(vi_ctype, pattern_index_ctype, name_buffer_size_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return name_ctype.value.decode(self._encoding) + + def get_pattern_pin_names(self, start_label): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + start_label_ctype = ctypes.create_string_buffer(start_label.encode(self._encoding)) # case C020 + pin_list_buffer_size_ctype = _visatype.ViInt32() # case S170 + pin_list_ctype = None # case C050 + error_code = self._library.niDigital_GetPatternPinList(vi_ctype, start_label_ctype, pin_list_buffer_size_ctype, pin_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + pin_list_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + pin_list_ctype = (_visatype.ViChar * pin_list_buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetPatternPinList(vi_ctype, start_label_ctype, pin_list_buffer_size_ctype, pin_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return pin_list_ctype.value.decode(self._encoding) + + def get_pin_name(self, pin_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_index_ctype = _visatype.ViInt32(pin_index) # case S150 + name_buffer_size_ctype = _visatype.ViInt32() # case S170 + name_ctype = None # case C050 + error_code = self._library.niDigital_GetPinName(vi_ctype, pin_index_ctype, name_buffer_size_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + name_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetPinName(vi_ctype, pin_index_ctype, name_buffer_size_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return name_ctype.value.decode(self._encoding) + + def get_pin_results_pin_information(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + pin_indexes_ctype = None # case B610 + site_numbers_ctype = None # case B610 + channel_indexes_ctype = None # case B610 + actual_num_values_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetPinResultsPinInformation(vi_ctype, channel_list_ctype, buffer_size_ctype, pin_indexes_ctype, site_numbers_ctype, channel_indexes_ctype, None if actual_num_values_ctype is None else (ctypes.pointer(actual_num_values_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_num_values_ctype.value) # case S200 + pin_indexes_size = actual_num_values_ctype.value # case B620 + pin_indexes_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=pin_indexes_size) # case B620 + site_numbers_size = actual_num_values_ctype.value # case B620 + site_numbers_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=site_numbers_size) # case B620 + channel_indexes_size = actual_num_values_ctype.value # case B620 + channel_indexes_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=channel_indexes_size) # case B620 + error_code = self._library.niDigital_GetPinResultsPinInformation(vi_ctype, channel_list_ctype, buffer_size_ctype, pin_indexes_ctype, site_numbers_ctype, channel_indexes_ctype, None if actual_num_values_ctype is None else (ctypes.pointer(actual_num_values_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [int(pin_indexes_ctype[i]) for i in range(buffer_size_ctype.value)], [int(site_numbers_ctype[i]) for i in range(buffer_size_ctype.value)], [int(channel_indexes_ctype[i]) for i in range(buffer_size_ctype.value)] + + def get_site_pass_fail(self, site_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + pass_fail_buffer_size_ctype = _visatype.ViInt32(0) # case S190 + pass_fail_ctype = None # case B610 + actual_num_sites_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetSitePassFail(vi_ctype, site_list_ctype, pass_fail_buffer_size_ctype, pass_fail_ctype, None if actual_num_sites_ctype is None else (ctypes.pointer(actual_num_sites_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + pass_fail_buffer_size_ctype = _visatype.ViInt32(actual_num_sites_ctype.value) # case S200 + pass_fail_size = actual_num_sites_ctype.value # case B620 + pass_fail_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=pass_fail_size) # case B620 + error_code = self._library.niDigital_GetSitePassFail(vi_ctype, site_list_ctype, pass_fail_buffer_size_ctype, pass_fail_ctype, None if actual_num_sites_ctype is None else (ctypes.pointer(actual_num_sites_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [bool(pass_fail_ctype[i]) for i in range(pass_fail_buffer_size_ctype.value)] + + def get_site_results_site_numbers(self, site_list, site_result_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + site_result_type_ctype = _visatype.ViInt32(site_result_type.value) # case S130 + site_numbers_buffer_size_ctype = _visatype.ViInt32(0) # case S190 + site_numbers_ctype = None # case B610 + actual_num_site_numbers_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetSiteResultsSiteNumbers(vi_ctype, site_list_ctype, site_result_type_ctype, site_numbers_buffer_size_ctype, site_numbers_ctype, None if actual_num_site_numbers_ctype is None else (ctypes.pointer(actual_num_site_numbers_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + site_numbers_buffer_size_ctype = _visatype.ViInt32(actual_num_site_numbers_ctype.value) # case S200 + site_numbers_size = actual_num_site_numbers_ctype.value # case B620 + site_numbers_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=site_numbers_size) # case B620 + error_code = self._library.niDigital_GetSiteResultsSiteNumbers(vi_ctype, site_list_ctype, site_result_type_ctype, site_numbers_buffer_size_ctype, site_numbers_ctype, None if actual_num_site_numbers_ctype is None else (ctypes.pointer(actual_num_site_numbers_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [int(site_numbers_ctype[i]) for i in range(site_numbers_buffer_size_ctype.value)] + + def get_time_set_drive_format(self, pin, time_set_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_ctype = ctypes.create_string_buffer(pin.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + format_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetTimeSetDriveFormat(vi_ctype, pin_ctype, time_set_name_ctype, None if format_ctype is None else (ctypes.pointer(format_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return enums.DriveFormat(format_ctype.value) + + def get_time_set_edge(self, pin, time_set_name, edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_ctype = ctypes.create_string_buffer(pin.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + time_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDigital_GetTimeSetEdge(vi_ctype, pin_ctype, time_set_name_ctype, edge_ctype, None if time_ctype is None else (ctypes.pointer(time_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(time_ctype.value) + + def get_time_set_edge_multiplier(self, pin, time_set_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pin_ctype = ctypes.create_string_buffer(pin.encode(self._encoding)) # case C010 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + edge_multiplier_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_GetTimeSetEdgeMultiplier(vi_ctype, pin_ctype, time_set_name_ctype, None if edge_multiplier_ctype is None else (ctypes.pointer(edge_multiplier_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(edge_multiplier_ctype.value) + + def get_time_set_name(self, time_set_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + time_set_index_ctype = _visatype.ViInt32(time_set_index) # case S150 + name_buffer_size_ctype = _visatype.ViInt32() # case S170 + name_ctype = None # case C050 + error_code = self._library.niDigital_GetTimeSetName(vi_ctype, time_set_index_ctype, name_buffer_size_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + name_ctype = (_visatype.ViChar * name_buffer_size_ctype.value)() # case C060 + error_code = self._library.niDigital_GetTimeSetName(vi_ctype, time_set_index_ctype, name_buffer_size_ctype, name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return name_ctype.value.decode(self._encoding) + + def get_time_set_period(self, time_set_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + time_set_name_ctype = ctypes.create_string_buffer(time_set_name.encode(self._encoding)) # case C020 + period_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDigital_GetTimeSetPeriod(vi_ctype, time_set_name_ctype, None if period_ctype is None else (ctypes.pointer(period_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(period_ctype.value) + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + id_query_ctype = _visatype.ViBoolean(id_query) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + new_vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niDigital_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if new_vi_ctype is None else (ctypes.pointer(new_vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(new_vi_ctype.value) + + def initiate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_Initiate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def is_done(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + done_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDigital_IsDone(vi_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(done_ctype.value) + + def is_site_enabled(self, site): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_ctype = ctypes.create_string_buffer(site.encode(self._encoding)) # case C010 + enable_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDigital_IsSiteEnabled(vi_ctype, site_ctype, None if enable_ctype is None else (ctypes.pointer(enable_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(enable_ctype.value) + + def load_levels(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_LoadLevels(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def load_pattern(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_LoadPattern(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def load_pin_map(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_LoadPinMap(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def load_specifications(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_LoadSpecifications(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def load_timing(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_LoadTiming(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def ppmu_measure(self, channel_list, measurement_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + measurement_type_ctype = _visatype.ViInt32(measurement_type.value) # case S130 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + measurements_ctype = None # case B610 + actual_num_read_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_PPMU_Measure(vi_ctype, channel_list_ctype, measurement_type_ctype, buffer_size_ctype, measurements_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_num_read_ctype.value) # case S200 + measurements_size = actual_num_read_ctype.value # case B620 + measurements_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=measurements_size) # case B620 + error_code = self._library.niDigital_PPMU_Measure(vi_ctype, channel_list_ctype, measurement_type_ctype, buffer_size_ctype, measurements_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(measurements_ctype[i]) for i in range(buffer_size_ctype.value)] + + def ppmu_source(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + error_code = self._library.niDigital_PPMU_Source(vi_ctype, channel_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def read_sequencer_flag(self, flag): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + flag_ctype = ctypes.create_string_buffer(flag.value.encode(self._encoding)) # case C030 + value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDigital_ReadSequencerFlag(vi_ctype, flag_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(value_ctype.value) + + def read_sequencer_register(self, reg): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + reg_ctype = ctypes.create_string_buffer(reg.value.encode(self._encoding)) # case C030 + value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_ReadSequencerRegister(vi_ctype, reg_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def read_static(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + data_ctype = None # case B610 + actual_num_read_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_ReadStatic(vi_ctype, channel_list_ctype, buffer_size_ctype, data_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_num_read_ctype.value) # case S200 + data_size = actual_num_read_ctype.value # case B620 + data_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViUInt8, size=data_size) # case B620 + error_code = self._library.niDigital_ReadStatic(vi_ctype, channel_list_ctype, buffer_size_ctype, data_ctype, None if actual_num_read_ctype is None else (ctypes.pointer(actual_num_read_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [enums.PinState(data_ctype[i]) for i in range(buffer_size_ctype.value)] + + def reset_device(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_ResetDevice(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_calibrate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_SelfCalibrate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 + trigger_identifier_ctype = ctypes.create_string_buffer(trigger_identifier.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_identifier_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViBoolean(value) # case S150 + error_code = self._library.niDigital_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt32(value) # case S150 + error_code = self._library.niDigital_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt64(value) # case S150 + error_code = self._library.niDigital_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViReal64(value) # case S150 + error_code = self._library.niDigital_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def tdr(self, channel_list, apply_offsets): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + apply_offsets_ctype = _visatype.ViBoolean(apply_offsets) # case S150 + offsets_buffer_size_ctype = _visatype.ViInt32(0) # case S190 + offsets_ctype = None # case B610 + actual_num_offsets_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDigital_TDR(vi_ctype, channel_list_ctype, apply_offsets_ctype, offsets_buffer_size_ctype, offsets_ctype, None if actual_num_offsets_ctype is None else (ctypes.pointer(actual_num_offsets_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + offsets_buffer_size_ctype = _visatype.ViInt32(actual_num_offsets_ctype.value) # case S200 + offsets_size = actual_num_offsets_ctype.value # case B620 + offsets_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=offsets_size) # case B620 + error_code = self._library.niDigital_TDR(vi_ctype, channel_list_ctype, apply_offsets_ctype, offsets_buffer_size_ctype, offsets_ctype, None if actual_num_offsets_ctype is None else (ctypes.pointer(actual_num_offsets_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(offsets_ctype[i]) for i in range(offsets_buffer_size_ctype.value)] + + def unload_all_patterns(self, unload_keep_alive_pattern): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + unload_keep_alive_pattern_ctype = _visatype.ViBoolean(unload_keep_alive_pattern) # case S150 + error_code = self._library.niDigital_UnloadAllPatterns(vi_ctype, unload_keep_alive_pattern_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unload_specifications(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_UnloadSpecifications(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_until_done(self, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + error_code = self._library.niDigital_WaitUntilDone(vi_ctype, timeout_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_sequencer_flag(self, flag, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + flag_ctype = ctypes.create_string_buffer(flag.value.encode(self._encoding)) # case C030 + value_ctype = _visatype.ViBoolean(value) # case S150 + error_code = self._library.niDigital_WriteSequencerFlag(vi_ctype, flag_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_sequencer_register(self, reg, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + reg_ctype = ctypes.create_string_buffer(reg.value.encode(self._encoding)) # case C030 + value_ctype = _visatype.ViInt32(value) # case S150 + error_code = self._library.niDigital_WriteSequencerRegister(vi_ctype, reg_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_source_waveform_broadcast(self, waveform_name, waveform_data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + waveform_size_ctype = _visatype.ViInt32(0 if waveform_data is None else len(waveform_data)) # case S160 + waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data, library_type=_visatype.ViUInt32) # case B550 + error_code = self._library.niDigital_WriteSourceWaveformBroadcastU32(vi_ctype, waveform_name_ctype, waveform_size_ctype, waveform_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_source_waveform_data_from_file_tdms(self, waveform_name, waveform_file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + waveform_file_path_ctype = ctypes.create_string_buffer(waveform_file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDigital_WriteSourceWaveformDataFromFileTDMS(vi_ctype, waveform_name_ctype, waveform_file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_source_waveform_site_unique_u32(self, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + num_waveforms_ctype = _visatype.ViInt32(num_waveforms) # case S150 + samples_per_waveform_ctype = _visatype.ViInt32(samples_per_waveform) # case S150 + waveform_data_array = _convert_to_array(value=waveform_data, array_type="L") # case B550 + waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_visatype.ViUInt32) # case B550 + error_code = self._library.niDigital_WriteSourceWaveformSiteUniqueU32(vi_ctype, site_list_ctype, waveform_name_ctype, num_waveforms_ctype, samples_per_waveform_ctype, waveform_data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_static(self, channel_list, state): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + state_ctype = _visatype.ViUInt8(state.value) # case S130 + error_code = self._library.niDigital_WriteStatic(vi_ctype, channel_list_ctype, state_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niDigital_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDigital_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + test_result_ctype = _visatype.ViInt16() # case S220 + test_message_ctype = (_visatype.ViChar * 2048)() # case C070 + error_code = self._library.niDigital_self_test(vi_ctype, None if test_result_ctype is None else (ctypes.pointer(test_result_ctype)), test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(test_result_ctype.value), test_message_ctype.value.decode(self._encoding) diff --git a/generated/nidigital/nidigital/_library_singleton.py b/generated/nidigital/nidigital/_library_singleton.py new file mode 100644 index 0000000000..7275b0715c --- /dev/null +++ b/generated/nidigital/nidigital/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nidigital._library as _library +import nidigital.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nidigital', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niDigital_32.dll', 'type': 'windll'}, + '64bit': {'name': 'niDigital_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nidigital. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nidigital/nidigital/_visatype.py b/generated/nidigital/nidigital/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nidigital/nidigital/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nidigital/nidigital/enums.py b/generated/nidigital/nidigital/enums.py new file mode 100644 index 0000000000..0542e11adf --- /dev/null +++ b/generated/nidigital/nidigital/enums.py @@ -0,0 +1,356 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class BitOrder(Enum): + MSB = 2500 + r''' + The most significant bit is first. The first bit is in the 2^n place, where n is the number of bits. + ''' + LSB = 2501 + r''' + The least significant bit is first. The first bit is in the 2^0 place. + ''' + + +class DigitalEdge(Enum): + RISING = 1800 + r''' + Asserts the trigger when the signal transitions from low level to high level. + ''' + FALLING = 1801 + r''' + Asserts the trigger when the signal transitions from high level to low level. + ''' + + +class DriveFormat(Enum): + NR = 1500 + r''' + Drive format remains at logic level after each bit. + ''' + RL = 1501 + r''' + Drive format returns to a logic level low after each bit. + ''' + RH = 1502 + r''' + Drive format returns to a logic level high after each bit. + ''' + SBC = 1503 + r''' + Drive format returns to the complement logic level of the bit after each bit. + ''' + + +class FrequencyMeasurementMode(Enum): + BANKED = 3700 + r''' + Frequency measurements are made serially for groups of channels associated with a single frequency counter for each group. + + Maximum frequency measured: 200 MHz. + ''' + PARALLEL = 3701 + r''' + Frequency measurements are made by multiple frequency counters in parallel. + + Maximum frequency measured: 100 MHz. + ''' + + +class HistoryRAMCyclesToAcquire(Enum): + FAILED = 2303 + r''' + Acquires failed cycles. + ''' + ALL = 2304 + r''' + Acquires all cycles. + ''' + + +class HistoryRAMTriggerType(Enum): + FIRST_FAILURE = 2200 + r''' + First Failure History RAM trigger + ''' + CYCLE_NUMBER = 2201 + r''' + Cycle Number History RAM trigger. + ''' + PATTERN_LABEL = 2202 + r''' + Pattern Label History RAM trigger + ''' + + +class PPMUApertureTimeUnits(Enum): + SECONDS = 2100 + r''' + Unit in seconds. + ''' + + +class PPMUCurrentLimitBehavior(Enum): + REGULATE = 3100 + r''' + Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. + ''' + + +class PPMUMeasurementType(Enum): + CURRENT = 2400 + r''' + The PPMU measures current. + ''' + VOLTAGE = 2401 + r''' + The PPMU measures voltage. + ''' + + +class PPMUOutputFunction(Enum): + VOLTAGE = 1300 + r''' + The PPMU forces voltage to the DUT. + ''' + CURRENT = 1301 + r''' + The PPMU forces current to the DUT. + ''' + + +class PinState(Enum): + ZERO = 0 + r''' + A digital state of 0. + ''' + ONE = 1 + r''' + A digital state of 1. + ''' + L = 3 + r''' + A digital state of L (low). + ''' + H = 4 + r''' + A digital state of H (high). + ''' + X = 5 + r''' + A digital state of X (non-drive state). + ''' + M = 6 + r''' + A digital state of M (midband). + ''' + V = 7 + r''' + A digital state of V (compare high or low, not midband; store results from capture functionality if configured). + ''' + D = 8 + r''' + A digital state of D (drive data from source functionality if configured). + ''' + E = 9 + r''' + A digital state of E (compare data from source functionality if configured). + ''' + NOT_A_PIN_STATE = 254 + r''' + Not a pin state is used for non-existent DUT cycles. + ''' + PIN_STATE_NOT_ACQUIRED = 255 + r''' + Pin state could not be acquired because none of the pins mapped to the instrument in a multi-instrument session had any failures. + ''' + + def __str__(self): + return { + 'ZERO': '0', + 'ONE': '1', + 'NOT_A_PIN_STATE': 'Not a Pin State', + 'PIN_STATE_NOT_ACQUIRED': 'Pin State Not Acquired', + }.get(self.name, self.name) + + +class SelectedFunction(Enum): + DIGITAL = 1100 + r''' + The pattern sequencer controls the specified pin(s). If a pattern is currently bursting, the pin immediately switches to bursting the pattern. This option disconnects the PPMU. + ''' + PPMU = 1101 + r''' + The PPMU controls the specified pin(s) and connects the PPMU. The pin driver is in a non-drive state, and the active load is disabled. The PPMU does not start sourcing or measuring until Source or Measure(PpmuMeasurementType) is called. + ''' + OFF = 1102 + r''' + Puts the digital driver in a non-drive state, disables the active load, disconnects the PPMU, and closes the I/O switch connecting the instrument channel. + ''' + DISCONNECT = 1103 + r''' + The I/O switch connecting the instrument channel is open to the I/O connector. If the PPMU is sourcing, it is stopped prior to opening the I/O switch. + ''' + RIO = 1104 + r''' + Yields control of the specified pin(s) to LabVIEW FPGA. + ''' + + +class SequencerFlag(Enum): + FLAG0 = 'seqflag0' + FLAG1 = 'seqflag1' + FLAG2 = 'seqflag2' + FLAG3 = 'seqflag3' + + +class SequencerRegister(Enum): + REGISTER0 = 'reg0' + REGISTER1 = 'reg1' + REGISTER2 = 'reg2' + REGISTER3 = 'reg3' + REGISTER4 = 'reg4' + REGISTER5 = 'reg5' + REGISTER6 = 'reg6' + REGISTER7 = 'reg7' + REGISTER8 = 'reg8' + REGISTER9 = 'reg9' + REGISTER10 = 'reg10' + REGISTER11 = 'reg11' + REGISTER12 = 'reg12' + REGISTER13 = 'reg13' + REGISTER14 = 'reg14' + REGISTER15 = 'reg15' + + +class _SiteResultType(Enum): + PASS_FAIL = 3300 + r''' + Pass/fail site result. + ''' + CAPTURE_WAVEFORM = 3301 + r''' + Capture waveform site result. + ''' + + +class SoftwareTrigger(Enum): + START = 2000 + r''' + Overrides the start trigger. + ''' + CONDITIONAL_JUMP = 2001 + r''' + Specifies to route a conditional jump trigger. + ''' + + +class SourceDataMapping(Enum): + BROADCAST = 2600 + r''' + Broadcasts the waveform you specify to all sites. + ''' + SITE_UNIQUE = 2601 + r''' + Sources unique waveform data to each site. + ''' + + +class TDREndpointTermination(Enum): + OPEN = 3600 + r''' + TDR channels are connected to an open circuit. + ''' + SHORT_TO_GROUND = 3601 + r''' + TDR channels are connected to a short to ground. + ''' + + +class TerminationMode(Enum): + ACTIVE_LOAD = 1200 + r''' + The active load provides a constant current to a commutating voltage (Vcom). + ''' + VTERM = 1201 + r''' + The pin driver drives Vterm. + ''' + HIGH_Z = 1202 + r''' + The pin driver is in a non-drive state (in a high-impedance state) and the active load is disabled. + ''' + + +class TimeSetEdgeType(Enum): + DRIVE_ON = 2800 + r''' + Specifies the drive on edge of the time set. + ''' + DRIVE_DATA = 2801 + r''' + Specifies the drive data edge of the time set. + ''' + DRIVE_RETURN = 2802 + r''' + Specifies the drive return edge of the time set. + ''' + DRIVE_OFF = 2803 + r''' + Specifies the drive off edge of the time set. + ''' + COMPARE_STROBE = 2804 + r''' + Specifies the compare strobe of the time set. + ''' + DRIVE_DATA2 = 2805 + r''' + Specifies the drive data 2 edge of the time set. + ''' + DRIVE_RETURN2 = 2806 + r''' + Specifies the drive return 2 edge of the time set. + ''' + COMPARE_STROBE2 = 2807 + r''' + Specifies the compare strobe 2 of the time set. + ''' + + +class TriggerType(Enum): + NONE = 1700 + r''' + Disables the start trigger. + ''' + DIGITAL_EDGE = 1701 + r''' + Digital edge trigger. + ''' + SOFTWARE = 1702 + r''' + Software start trigger. + ''' + + +class WriteStaticPinState(Enum): + ZERO = 0 + r''' + Specifies to drive low. + ''' + ONE = 1 + r''' + Specifies to drive high. + ''' + X = 5 + r''' + Specifies to not drive. + ''' + + def __str__(self): + return { + 'ZERO': '0', + 'ONE': '1', + }.get(self.name, self.name) diff --git a/generated/nidigital/nidigital/errors.py b/generated/nidigital/nidigital/errors.py new file mode 100644 index 0000000000..dafbadc9a9 --- /dev/null +++ b/generated/nidigital/nidigital/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-Digital Pattern Driver''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-Digital Pattern Driver driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-Digital Pattern Driver driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-Digital Pattern Driver runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-Digital Pattern Driver driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-Digital Pattern Driver runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-Digital Pattern Driver driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-Digital Pattern Driver runtime returned an unexpected value. This can occur if it is too new for the nidigital Python module. Upgrade the nidigital Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nidigital.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nidigital/nidigital/grpc_session_options.py b/generated/nidigital/nidigital/grpc_session_options.py new file mode 100644 index 0000000000..1ed3f269a6 --- /dev/null +++ b/generated/nidigital/nidigital/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nidigitalpattern_grpc.NiDigital' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nidigital/nidigital/history_ram_cycle_information.py b/generated/nidigital/nidigital/history_ram_cycle_information.py new file mode 100644 index 0000000000..4508cde921 --- /dev/null +++ b/generated/nidigital/nidigital/history_ram_cycle_information.py @@ -0,0 +1,52 @@ +class HistoryRAMCycleInformation: + def __init__(self, pattern_name, time_set_name, vector_number, cycle_number, scan_cycle_number, expected_pin_states, actual_pin_states, per_pin_pass_fail): + self.pattern_name = pattern_name + self.time_set_name = time_set_name + self.vector_number = vector_number + self.cycle_number = cycle_number + self.scan_cycle_number = scan_cycle_number + self.expected_pin_states = expected_pin_states + self.actual_pin_states = actual_pin_states + self.per_pin_pass_fail = per_pin_pass_fail + + def __repr__(self): + parameter_list = [ + f'pattern_name="{self.pattern_name}"', + f'time_set_name="{self.time_set_name}"', + f'vector_number={self.vector_number}', + f'cycle_number={self.cycle_number}', + f'scan_cycle_number={self.scan_cycle_number}', + f'expected_pin_states={self._digital_states_representation(self.expected_pin_states)}', + f'actual_pin_states={self._digital_states_representation(self.actual_pin_states)}', + f'per_pin_pass_fail={self.per_pin_pass_fail}', + ] + + return '{}.{}({})'.format(self.__class__.__module__, self.__class__.__qualname__, ', '.join(parameter_list)) + + def __str__(self): + # different format lines + row_format_d = '{:<20}: {:,}\n' + row_format_s = '{:<20}: {:}\n' + + string_representation = '' + string_representation += row_format_s.format('Pattern Name', self.pattern_name) + string_representation += row_format_s.format('Time Set Name', self.time_set_name) + string_representation += row_format_d.format('Vector Number', self.vector_number) + string_representation += row_format_d.format('Cycle Number', self.cycle_number) + string_representation += row_format_d.format('Scan Cycle Number', self.scan_cycle_number) + string_representation += row_format_s.format('Expected Pin States', self._digital_states_string(self.expected_pin_states)) + string_representation += row_format_s.format('Actual Pin States', self._digital_states_string(self.actual_pin_states)) + string_representation += row_format_s.format('Per Pin Pass Fail', self.per_pin_pass_fail) + + return string_representation + + @staticmethod + def _digital_states_representation(states): + states_representation = [[f'{i.__class__.__module__}.{i.__class__.__qualname__}.{i.name}' for i in j] for j in states] + return '[{}]'.format(', '.join(['[{}]'.format(', '.join(i)) for i in states_representation])) + + @staticmethod + def _digital_states_string(states): + states_string = [[str(i) for i in j] for j in states] + return '[{}]'.format(', '.join(['[{}]'.format(', '.join(i)) for i in states_string])) + diff --git a/generated/nidigital/nidigital/nidevice_pb2.py b/generated/nidigital/nidigital/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nidigital/nidigital/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nidigital/nidigital/nidevice_pb2_grpc.py b/generated/nidigital/nidigital/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nidigital/nidigital/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nidigital/nidigital/nidigitalpattern_pb2.py b/generated/nidigital/nidigital/nidigitalpattern_pb2.py new file mode 100644 index 0000000000..383350aa80 --- /dev/null +++ b/generated/nidigital/nidigital/nidigitalpattern_pb2.py @@ -0,0 +1,591 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidigitalpattern.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16nidigitalpattern.proto\x12\x15nidigitalpattern_grpc\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"M\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btest_result\x18\x02 \x01(\x11\x12\x14\n\x0ctest_message\x18\x03 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\":\n\x14SelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\'\n\x15SelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x94\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x94\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x95\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x95\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"\x96\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x96\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\xfe\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x45\n\x05value\x18\x04 \x01(\x0e\x32\x34.nidigitalpattern_grpc.NiDigitalInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x01\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12<\n\tattribute\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x92\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12?\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.NiDigitalAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11LoadPinMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"$\n\x12LoadPinMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"K\n\x12\x45nableSitesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"%\n\x13\x45nableSitesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"L\n\x13\x44isableSitesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"&\n\x14\x44isableSitesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x14IsSiteEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\"7\n\x15IsSiteEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06\x65nable\x18\x02 \x01(\x08\"h\n\x13\x43reatePinMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x64ut_pin_list\x18\x02 \x01(\t\x12\x17\n\x0fsystem_pin_list\x18\x03 \x01(\t\"&\n\x14\x43reatePinMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x15\x43reatePinGroupRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0epin_group_name\x18\x02 \x01(\t\x12\x10\n\x08pin_list\x18\x03 \x01(\t\"(\n\x16\x43reatePinGroupResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x17\x43reateChannelMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tnum_sites\x18\x02 \x01(\x11\"*\n\x18\x43reateChannelMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n\x16MapPinToChannelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x0c\n\x04site\x18\x03 \x01(\x11\x12\x0f\n\x07\x63hannel\x18\x04 \x01(\t\")\n\x17MapPinToChannelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14\x45ndChannelMapRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\'\n\x15\x45ndChannelMapResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11GetPinNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tpin_index\x18\x02 \x01(\x11\"2\n\x12GetPinNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"6\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xb7\x01\n\x15SelectFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12;\n\x08\x66unction\x18\x03 \x01(\x0e\x32\'.nidigitalpattern_grpc.SelectedFunctionH\x00\x12\x16\n\x0c\x66unction_raw\x18\x04 \x01(\x11H\x00\x42\x0f\n\rfunction_enum\"(\n\x16SelectFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x11ReadStaticRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"~\n\x12ReadStaticResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12-\n\x04\x64\x61ta\x18\x02 \x03(\x0e\x32\x1f.nidigitalpattern_grpc.PinState\x12\x10\n\x08\x64\x61ta_raw\x18\x03 \x01(\x0c\x12\x17\n\x0f\x61\x63tual_num_read\x18\x04 \x01(\x11\"\xae\x01\n\x12WriteStaticRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12;\n\x05state\x18\x03 \x01(\x0e\x32*.nidigitalpattern_grpc.WriteStaticPinStateH\x00\x12\x13\n\tstate_raw\x18\x04 \x01(\rH\x00\x42\x0c\n\nstate_enum\"%\n\x13WriteStaticResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x92\x01\n\"ClockGeneratorGenerateClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x11\n\tfrequency\x18\x03 \x01(\x01\x12\x1f\n\x17select_digital_function\x18\x04 \x01(\x08\"5\n#ClockGeneratorGenerateClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1d\x43lockGeneratorInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"0\n\x1e\x43lockGeneratorInitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1a\x43lockGeneratorAbortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"-\n\x1b\x43lockGeneratorAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"R\n\x19LoadSpecificationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\",\n\x1aLoadSpecificationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x1bUnloadSpecificationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\".\n\x1cUnloadSpecificationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11LoadLevelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"$\n\x12LoadLevelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x11LoadTimingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"$\n\x12LoadTimingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe6\x01\n\x1b\x41pplyLevelsAndTimingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x14\n\x0clevels_sheet\x18\x03 \x01(\t\x12\x14\n\x0ctiming_sheet\x18\x04 \x01(\t\x12\x1f\n\x17initial_state_high_pins\x18\x05 \x01(\t\x12\x1e\n\x16initial_state_low_pins\x18\x06 \x01(\t\x12#\n\x1binitial_state_tristate_pins\x18\x07 \x01(\t\".\n\x1c\x41pplyLevelsAndTimingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9c\x01\n\x1d\x43onfigureVoltageLevelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0b\n\x03vil\x18\x03 \x01(\x01\x12\x0b\n\x03vih\x18\x04 \x01(\x01\x12\x0b\n\x03vol\x18\x05 \x01(\x01\x12\x0b\n\x03voh\x18\x06 \x01(\x01\x12\r\n\x05vterm\x18\x07 \x01(\x01\"0\n\x1e\x43onfigureVoltageLevelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x84\x01\n ConfigureActiveLoadLevelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0b\n\x03iol\x18\x03 \x01(\x01\x12\x0b\n\x03ioh\x18\x04 \x01(\x01\x12\x0c\n\x04vcom\x18\x05 \x01(\x01\"3\n!ConfigureActiveLoadLevelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb4\x01\n\x1f\x43onfigureTerminationModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x36\n\x04mode\x18\x03 \x01(\x0e\x32&.nidigitalpattern_grpc.TerminationModeH\x00\x12\x12\n\x08mode_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tmode_enum\"2\n ConfigureTerminationModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x14\x43reateTimeSetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04name\x18\x02 \x01(\t\"\'\n\x15\x43reateTimeSetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x1d\x43onfigureTimeSetPeriodRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rtime_set_name\x18\x02 \x01(\t\x12\x0e\n\x06period\x18\x03 \x01(\x01\"0\n\x1e\x43onfigureTimeSetPeriodResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x02\n!ConfigureTimeSetDriveEdgesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x34\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x12\x15\n\rdrive_on_edge\x18\x06 \x01(\x01\x12\x17\n\x0f\x64rive_data_edge\x18\x07 \x01(\x01\x12\x19\n\x11\x64rive_return_edge\x18\x08 \x01(\x01\x12\x16\n\x0e\x64rive_off_edge\x18\t \x01(\x01\x42\r\n\x0b\x66ormat_enum\"4\n\"ConfigureTimeSetDriveEdgesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n)ConfigureTimeSetCompareEdgesStrobeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x13\n\x0bstrobe_edge\x18\x04 \x01(\x01\"<\n*ConfigureTimeSetCompareEdgesStrobeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xde\x01\n\"ConfigureTimeSetDriveFormatRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12:\n\x0c\x64rive_format\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormatH\x00\x12\x1a\n\x10\x64rive_format_raw\x18\x05 \x01(\x11H\x00\x42\x13\n\x11\x64rive_format_enum\"5\n#ConfigureTimeSetDriveFormatResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18\x44\x65leteAllTimeSetsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19\x44\x65leteAllTimeSetsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n%ConfigureTimeSetEdgeMultiplierRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x17\n\x0f\x65\x64ge_multiplier\x18\x04 \x01(\x11\"8\n&ConfigureTimeSetEdgeMultiplierResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe6\x02\n#ConfigureTimeSetDriveEdges2xRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x34\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x12\x15\n\rdrive_on_edge\x18\x06 \x01(\x01\x12\x17\n\x0f\x64rive_data_edge\x18\x07 \x01(\x01\x12\x19\n\x11\x64rive_return_edge\x18\x08 \x01(\x01\x12\x16\n\x0e\x64rive_off_edge\x18\t \x01(\x01\x12\x18\n\x10\x64rive_data2_edge\x18\n \x01(\x01\x12\x1a\n\x12\x64rive_return2_edge\x18\x0b \x01(\x01\x42\r\n\x0b\x66ormat_enum\"6\n$ConfigureTimeSetDriveEdges2xResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n+ConfigureTimeSetCompareEdgesStrobe2xRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x13\n\x0bstrobe_edge\x18\x04 \x01(\x01\x12\x14\n\x0cstrobe2_edge\x18\x05 \x01(\x01\">\n,ConfigureTimeSetCompareEdgesStrobe2xResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd1\x01\n\x1b\x43onfigureTimeSetEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x36\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32&.nidigitalpattern_grpc.TimeSetEdgeTypeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x12\x0c\n\x04time\x18\x06 \x01(\x01\x42\x0b\n\tedge_enum\".\n\x1c\x43onfigureTimeSetEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"T\n\x17GetTimeSetPeriodRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rtime_set_name\x18\x02 \x01(\t\":\n\x18GetTimeSetPeriodResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06period\x18\x02 \x01(\x01\"\xb8\x01\n\x15GetTimeSetEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\x12\x36\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32&.nidigitalpattern_grpc.TimeSetEdgeTypeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"6\n\x16GetTimeSetEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04time\x18\x02 \x01(\x01\"i\n\x1fGetTimeSetEdgeMultiplierRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\"K\n GetTimeSetEdgeMultiplierResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x65\x64ge_multiplier\x18\x02 \x01(\x11\"f\n\x1cGetTimeSetDriveFormatRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03pin\x18\x02 \x01(\t\x12\x15\n\rtime_set_name\x18\x03 \x01(\t\"w\n\x1dGetTimeSetDriveFormatResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x32\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\".nidigitalpattern_grpc.DriveFormat\x12\x12\n\nformat_raw\x18\x03 \x01(\x11\"S\n\x15GetTimeSetNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etime_set_index\x18\x02 \x01(\x11\"6\n\x16GetTimeSetNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"]\n\nTDRRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rapply_offsets\x18\x03 \x01(\x08\"J\n\x0bTDRResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07offsets\x18\x02 \x03(\x01\x12\x1a\n\x12\x61\x63tual_num_offsets\x18\x03 \x01(\x11\"c\n\x16\x41pplyTDROffsetsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07offsets\x18\x03 \x03(\x01\")\n\x17\x41pplyTDROffsetsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdb\x01\n\"PPMUConfigureOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x44\n\x0foutput_function\x18\x03 \x01(\x0e\x32).nidigitalpattern_grpc.PpmuOutputFunctionH\x00\x12\x1d\n\x13output_function_raw\x18\x04 \x01(\x11H\x00\x42\x16\n\x14output_function_enum\"5\n#PPMUConfigureOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n PPMUConfigureApertureTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\raperture_time\x18\x03 \x01(\x01\x12=\n\x05units\x18\x04 \x01(\x0e\x32,.nidigitalpattern_grpc.PpmuApertureTimeUnitsH\x00\x12\x13\n\tunits_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nunits_enum\"3\n!PPMUConfigureApertureTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n PPMUConfigureVoltageLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rvoltage_level\x18\x03 \x01(\x01\"3\n!PPMUConfigureVoltageLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x01\n PPMUConfigureCurrentLimitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x43\n\x08\x62\x65havior\x18\x03 \x01(\x0e\x32/.nidigitalpattern_grpc.PpmuCurrentLimitBehaviorH\x00\x12\x16\n\x0c\x62\x65havior_raw\x18\x04 \x01(\x11H\x00\x12\r\n\x05limit\x18\x05 \x01(\x01\x42\x0f\n\rbehavior_enum\"3\n!PPMUConfigureCurrentLimitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%PPMUConfigureCurrentLimitRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"8\n&PPMUConfigureCurrentLimitRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n PPMUConfigureCurrentLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rcurrent_level\x18\x03 \x01(\x01\"3\n!PPMUConfigureCurrentLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n%PPMUConfigureCurrentLevelRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\"8\n&PPMUConfigureCurrentLevelRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x01\n!PPMUConfigureVoltageLimitsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x1b\n\x13lower_voltage_limit\x18\x03 \x01(\x01\x12\x1b\n\x13upper_voltage_limit\x18\x04 \x01(\x01\"4\n\"PPMUConfigureVoltageLimitsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x11PPMUSourceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"$\n\x12PPMUSourceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcf\x01\n\x12PPMUMeasureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x46\n\x10measurement_type\x18\x03 \x01(\x0e\x32*.nidigitalpattern_grpc.PpmuMeasurementTypeH\x00\x12\x1e\n\x14measurement_type_raw\x18\x04 \x01(\x11H\x00\x42\x17\n\x15measurement_type_enum\"T\n\x13PPMUMeasureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0cmeasurements\x18\x02 \x03(\x01\x12\x17\n\x0f\x61\x63tual_num_read\x18\x03 \x01(\x11\"K\n\x12LoadPatternRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\"%\n\x13LoadPatternResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n\x18UnloadAllPatternsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12!\n\x19unload_keep_alive_pattern\x18\x02 \x01(\x08\"+\n\x19UnloadAllPatternsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n\x1a\x43onfigureStartLabelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05label\x18\x02 \x01(\t\"-\n\x1b\x43onfigureStartLabelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n!ConfigurePatternBurstSitesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"4\n\"ConfigurePatternBurstSitesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1bGetPatternPinIndexesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstart_label\x18\x02 \x01(\t\"\\\n\x1cGetPatternPinIndexesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bpin_indexes\x18\x02 \x03(\x11\x12\x17\n\x0f\x61\x63tual_num_pins\x18\x03 \x01(\x11\"S\n\x18GetPatternPinListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstart_label\x18\x02 \x01(\t\"=\n\x19GetPatternPinListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08pin_list\x18\x02 \x01(\t\"R\n\x15GetPatternNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rpattern_index\x18\x02 \x01(\x11\"6\n\x16GetPatternNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xac\x01\n\x13\x42urstPatternRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x13\n\x0bstart_label\x18\x03 \x01(\t\x12\x1f\n\x17select_digital_function\x18\x04 \x01(\x08\x12\x17\n\x0fwait_until_done\x18\x05 \x01(\x08\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"&\n\x14\x42urstPatternResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x01\n\x1f\x42urstPatternSynchronizedRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12(\n\x08sessions\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x03 \x01(\t\x12\x13\n\x0bstart_label\x18\x04 \x01(\t\x12\x1f\n\x17select_digital_function\x18\x05 \x01(\x08\x12\x17\n\x0fwait_until_done\x18\x06 \x01(\x08\x12\x0f\n\x07timeout\x18\x07 \x01(\x01\"2\n BurstPatternSynchronizedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rIsDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x0eIsDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64one\x18\x02 \x01(\x08\"K\n\x14WaitUntilDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07timeout\x18\x02 \x01(\x01\"\'\n\x15WaitUntilDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\";\n\x15\x41\x62ortKeepAliveRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"(\n\x16\x41\x62ortKeepAliveResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n-ConfigurePatternLabelHistoryRAMTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05label\x18\x02 \x01(\t\x12\x15\n\rvector_offset\x18\x03 \x01(\x03\x12\x14\n\x0c\x63ycle_offset\x18\x04 \x01(\x03\x12\x1a\n\x12pretrigger_samples\x18\x05 \x01(\x11\"@\n.ConfigurePatternLabelHistoryRAMTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x84\x01\n,ConfigureCycleNumberHistoryRAMTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63ycle_number\x18\x02 \x01(\x03\x12\x1a\n\x12pretrigger_samples\x18\x03 \x01(\x11\"?\n-ConfigureCycleNumberHistoryRAMTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"o\n-ConfigureFirstFailureHistoryRAMTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12pretrigger_samples\x18\x02 \x01(\x11\"@\n.ConfigureFirstFailureHistoryRAMTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x01\n)ConfigureHistoryRAMCyclesToAcquireRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12M\n\x11\x63ycles_to_acquire\x18\x02 \x01(\x0e\x32\x30.nidigitalpattern_grpc.HistoryRamCyclesToAcquireH\x00\x12\x1f\n\x15\x63ycles_to_acquire_raw\x18\x03 \x01(\x11H\x00\x42\x18\n\x16\x63ycles_to_acquire_enum\"<\n*ConfigureHistoryRAMCyclesToAcquireResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"S\n\x1fGetHistoryRAMSampleCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\"H\n GetHistoryRAMSampleCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0csample_count\x18\x02 \x01(\x03\"p\n&FetchHistoryRAMCycleInformationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\x12\x14\n\x0csample_index\x18\x03 \x01(\x03\"\xad\x01\n\'FetchHistoryRAMCycleInformationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rpattern_index\x18\x02 \x01(\x11\x12\x16\n\x0etime_set_index\x18\x03 \x01(\x11\x12\x15\n\rvector_number\x18\x04 \x01(\x03\x12\x14\n\x0c\x63ycle_number\x18\x05 \x01(\x03\x12\x16\n\x0enum_dut_cycles\x18\x06 \x01(\x11\"\x97\x01\n\"FetchHistoryRAMCyclePinDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\x12\x10\n\x08pin_list\x18\x03 \x01(\t\x12\x14\n\x0csample_index\x18\x04 \x01(\x03\x12\x17\n\x0f\x64ut_cycle_index\x18\x05 \x01(\x11\"\xa7\x02\n#FetchHistoryRAMCyclePinDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12<\n\x13\x65xpected_pin_states\x18\x02 \x03(\x0e\x32\x1f.nidigitalpattern_grpc.PinState\x12\x1f\n\x17\x65xpected_pin_states_raw\x18\x03 \x01(\x0c\x12:\n\x11\x61\x63tual_pin_states\x18\x04 \x03(\x0e\x32\x1f.nidigitalpattern_grpc.PinState\x12\x1d\n\x15\x61\x63tual_pin_states_raw\x18\x05 \x01(\x0c\x12\x19\n\x11per_pin_pass_fail\x18\x06 \x03(\x08\x12\x1b\n\x13\x61\x63tual_num_pin_data\x18\x07 \x01(\x11\"o\n%FetchHistoryRAMScanCycleNumberRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04site\x18\x02 \x01(\t\x12\x14\n\x0csample_index\x18\x03 \x01(\x03\"S\n&FetchHistoryRAMScanCycleNumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11scan_cycle_number\x18\x02 \x01(\x03\"\xe5\x01\n#CreateSourceWaveformParallelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12@\n\x0c\x64\x61ta_mapping\x18\x04 \x01(\x0e\x32(.nidigitalpattern_grpc.SourceDataMappingH\x00\x12\x1a\n\x10\x64\x61ta_mapping_raw\x18\x05 \x01(\x11H\x00\x42\x13\n\x11\x64\x61ta_mapping_enum\"6\n$CreateSourceWaveformParallelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xda\x02\n!CreateSourceWaveformSerialRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12@\n\x0c\x64\x61ta_mapping\x18\x04 \x01(\x0e\x32(.nidigitalpattern_grpc.SourceDataMappingH\x00\x12\x1a\n\x10\x64\x61ta_mapping_raw\x18\x05 \x01(\x11H\x00\x12\x14\n\x0csample_width\x18\x06 \x01(\r\x12\x34\n\tbit_order\x18\x07 \x01(\x0e\x32\x1f.nidigitalpattern_grpc.BitOrderH\x01\x12\x17\n\rbit_order_raw\x18\x08 \x01(\x11H\x01\x42\x13\n\x11\x64\x61ta_mapping_enumB\x10\n\x0e\x62it_order_enum\"4\n\"CreateSourceWaveformSerialResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\'CreateSourceWaveformFromFileTDMSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x1a\n\x12waveform_file_path\x18\x03 \x01(\t\x12\x1b\n\x13write_waveform_data\x18\x04 \x01(\x08\":\n(CreateSourceWaveformFromFileTDMSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n&WriteSourceWaveformBroadcastU32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_data\x18\x03 \x03(\r\"9\n\'WriteSourceWaveformBroadcastU32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\'WriteSourceWaveformSiteUniqueU32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x15\n\rnum_waveforms\x18\x04 \x01(\x11\x12\x1c\n\x14samples_per_waveform\x18\x05 \x01(\x11\x12\x15\n\rwaveform_data\x18\x06 \x03(\r\":\n(WriteSourceWaveformSiteUniqueU32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x83\x01\n*WriteSourceWaveformDataFromFileTDMSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x1a\n\x12waveform_file_path\x18\x03 \x01(\t\"=\n+WriteSourceWaveformDataFromFileTDMSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n$CreateCaptureWaveformParallelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\"7\n%CreateCaptureWaveformParallelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe8\x01\n\"CreateCaptureWaveformSerialRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08pin_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x14\n\x0csample_width\x18\x04 \x01(\r\x12\x34\n\tbit_order\x18\x05 \x01(\x0e\x32\x1f.nidigitalpattern_grpc.BitOrderH\x00\x12\x17\n\rbit_order_raw\x18\x06 \x01(\x11H\x00\x42\x10\n\x0e\x62it_order_enum\"5\n#CreateCaptureWaveformSerialResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x88\x01\n/CreateCaptureWaveformFromFileDigicaptureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x1a\n\x12waveform_file_path\x18\x03 \x01(\t\"B\n0CreateCaptureWaveformFromFileDigicaptureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x98\x01\n\x1e\x46\x65tchCaptureWaveformU32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x17\n\x0fsamples_to_read\x18\x04 \x01(\x11\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x82\x01\n\x1f\x46\x65tchCaptureWaveformU32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\r\x12\x1c\n\x14\x61\x63tual_num_waveforms\x18\x03 \x01(\x11\x12#\n\x1b\x61\x63tual_samples_per_waveform\x18\x04 \x01(\x11\"\xc9\x01\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x35\n\x06signal\x18\x02 \x01(\x0e\x32#.nidigitalpattern_grpc.ExportSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x05 \x01(\tB\r\n\x0bsignal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb2\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x32\n\x04\x65\x64ge\x18\x03 \x01(\x0e\x32\".nidigitalpattern_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x04 \x01(\x11H\x00\x42\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd8\x01\n1ConfigureDigitalEdgeConditionalJumpTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12trigger_identifier\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x32\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\".nidigitalpattern_grpc.DigitalEdgeH\x00\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x00\x42\x0b\n\tedge_enum\"D\n2ConfigureDigitalEdgeConditionalJumpTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"t\n2ConfigureSoftwareEdgeConditionalJumpTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12trigger_identifier\x18\x02 \x01(\t\"E\n3ConfigureSoftwareEdgeConditionalJumpTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n$DisableConditionalJumpTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12trigger_identifier\x18\x02 \x01(\t\"7\n%DisableConditionalJumpTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc2\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x39\n\x07trigger\x18\x02 \x01(\x0e\x32&.nidigitalpattern_grpc.SoftwareTriggerH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x1a\n\x12trigger_identifier\x18\x04 \x01(\tB\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n\x19WriteSequencerFlagRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04\x66lag\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\x08\",\n\x1aWriteSequencerFlagResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n%WriteSequencerFlagSynchronizedRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12(\n\x08sessions\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04\x66lag\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\x08\"8\n&WriteSequencerFlagSynchronizedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"L\n\x18ReadSequencerFlagRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04\x66lag\x18\x02 \x01(\t\":\n\x19ReadSequencerFlagResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"_\n\x1dWriteSequencerRegisterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03reg\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\x11\"0\n\x1eWriteSequencerRegisterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n\x1cReadSequencerRegisterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0b\n\x03reg\x18\x02 \x01(\t\">\n\x1dReadSequencerRegisterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x92\x01\n!EnableMatchFailCombinationRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12(\n\x08sessions\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\x12,\n\x0csync_session\x18\x03 \x01(\x0b\x32\x16.nidevice_grpc.Session\"4\n\"EnableMatchFailCombinationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n\x16GetSitePassFailRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\"V\n\x17GetSitePassFailResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tpass_fail\x18\x02 \x03(\x08\x12\x18\n\x10\x61\x63tual_num_sites\x18\x03 \x01(\x11\"O\n\x13GetFailCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"V\n\x14GetFailCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rfailure_count\x18\x02 \x03(\x03\x12\x17\n\x0f\x61\x63tual_num_read\x18\x03 \x01(\x11\"^\n\"GetPinResultsPinInformationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x94\x01\n#GetPinResultsPinInformationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bpin_indexes\x18\x02 \x03(\x11\x12\x14\n\x0csite_numbers\x18\x03 \x03(\x11\x12\x17\n\x0f\x63hannel_indexes\x18\x04 \x03(\x11\x12\x19\n\x11\x61\x63tual_num_values\x18\x05 \x01(\x11\"\xd5\x01\n GetSiteResultsSiteNumbersRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tsite_list\x18\x02 \x01(\t\x12\x41\n\x10site_result_type\x18\x03 \x01(\x0e\x32%.nidigitalpattern_grpc.SiteResultTypeH\x00\x12\x1e\n\x14site_result_type_raw\x18\x04 \x01(\x11H\x00\x42\x17\n\x15site_result_type_enum\"j\n!GetSiteResultsSiteNumbersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0csite_numbers\x18\x02 \x03(\x11\x12\x1f\n\x17\x61\x63tual_num_site_numbers\x18\x03 \x01(\x11\"\x85\x01\n/FrequencyCounterConfigureMeasurementTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x18\n\x10measurement_time\x18\x03 \x01(\x01\"B\n0FrequencyCounterConfigureMeasurementTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdb\x01\n/FrequencyCounterConfigureMeasurementModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12K\n\x10measurement_mode\x18\x02 \x01(\x0e\x32/.nidigitalpattern_grpc.FrequencyMeasurementModeH\x00\x12\x1e\n\x14measurement_mode_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15measurement_mode_enum\"B\n0FrequencyCounterConfigureMeasurementModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\'FrequencyCounterMeasureFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"o\n(FrequencyCounterMeasureFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x1e\n\x16\x61\x63tual_num_frequencies\x18\x03 \x01(\x11\"V\n\x1fGetChannelNameFromStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07indices\x18\x02 \x01(\t\"A\n GetChannelNameFromStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05names\x18\x02 \x01(\t*\x8c$\n\x12NiDigitalAttribute\x12#\n\x1fNIDIGITAL_ATTRIBUTE_UNSPECIFIED\x10\x00\x12%\n\x1fNIDIGITAL_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12\x31\n+NIDIGITAL_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1f\n\x19NIDIGITAL_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\"\n\x1cNIDIGITAL_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12*\n$NIDIGITAL_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12&\n NIDIGITAL_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12+\n%NIDIGITAL_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\'\n!NIDIGITAL_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x30\n*NIDIGITAL_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12\x30\n*NIDIGITAL_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12&\n NIDIGITAL_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12\x35\n/NIDIGITAL_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12,\n&NIDIGITAL_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x36\n0NIDIGITAL_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\x31\n+NIDIGITAL_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\x30\n*NIDIGITAL_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x35\n/NIDIGITAL_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12\x42\n\n8NIDIGITAL_ATTRIBUTE_FREQUENCY_COUNTER_HYSTERESIS_ENABLED\x10\x85\x99\x46\x12\x37\n1NIDIGITAL_ATTRIBUTE_TIMING_ABSOLUTE_DELAY_ENABLED\x10\xf7\x98\x46\x12/\n)NIDIGITAL_ATTRIBUTE_TIMING_ABSOLUTE_DELAY\x10\xf8\x98\x46\x12\x33\n-NIDIGITAL_ATTRIBUTE_CLOCK_GENERATOR_FREQUENCY\x10\xf9\x98\x46\x12\x34\n.NIDIGITAL_ATTRIBUTE_CLOCK_GENERATOR_IS_RUNNING\x10\xfa\x98\x46\x12;\n5NIDIGITAL_ATTRIBUTE_PPMU_ALLOW_EXTENDED_VOLTAGE_RANGE\x10\xfc\x98\x46\x12\x45\n?NIDIGITAL_ATTRIBUTE_HISTORY_RAM_MAX_SAMPLES_TO_ACQUIRE_PER_SITE\x10\xfd\x98\x46\x12\x41\n;NIDIGITAL_ATTRIBUTE_HISTORY_RAM_NUMBER_OF_SAMPLES_IS_FINITE\x10\xfe\x98\x46\x12:\n4NIDIGITAL_ATTRIBUTE_HISTORY_RAM_BUFFER_SIZE_PER_SITE\x10\xff\x98\x46\x12\x37\n1NIDIGITAL_ATTRIBUTE_CONDITIONAL_JUMP_TRIGGER_TYPE\x10\xd1\x98\x46\x12\x46\n@NIDIGITAL_ATTRIBUTE_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_SOURCE\x10\xd2\x98\x46\x12\x44\n>NIDIGITAL_ATTRIBUTE_DIGITAL_EDGE_CONDITIONAL_JUMP_TRIGGER_EDGE\x10\xd3\x98\x46\x12K\nENIDIGITAL_ATTRIBUTE_EXPORTED_CONDITIONAL_JUMP_TRIGGER_OUTPUT_TERMINAL\x10\xd4\x98\x46\x12@\n:NIDIGITAL_ATTRIBUTE_CONDITIONAL_JUMP_TRIGGER_TERMINAL_NAME\x10\xd8\x98\x46*v\n\x15PpmuApertureTimeUnits\x12(\n$PPMU_APERTURE_TIME_UNITS_UNSPECIFIED\x10\x00\x12\x33\n.PPMU_APERTURE_TIME_UNITS_NIDIGITAL_VAL_SECONDS\x10\xb4\x10*u\n\x08\x42itOrder\x12\x19\n\x15\x42IT_ORDER_UNSPECIFIED\x10\x00\x12&\n!BIT_ORDER_NIDIGITAL_VAL_MSB_FIRST\x10\xc4\x13\x12&\n!BIT_ORDER_NIDIGITAL_VAL_LSB_FIRST\x10\xc5\x13*\x86\x01\n\x0b\x44igitalEdge\x12\x1c\n\x18\x44IGITAL_EDGE_UNSPECIFIED\x10\x00\x12+\n&DIGITAL_EDGE_NIDIGITAL_VAL_RISING_EDGE\x10\x88\x0e\x12,\n\'DIGITAL_EDGE_NIDIGITAL_VAL_FALLING_EDGE\x10\x89\x0e*\x84\x03\n\x08PinState\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_0\x10\x00\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_1\x10\x01\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_L\x10\x03\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_H\x10\x04\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_X\x10\x05\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_M\x10\x06\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_V\x10\x07\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_D\x10\x08\x12\x1d\n\x19PIN_STATE_NIDIGITAL_VAL_E\x10\t\x12,\n\'PIN_STATE_NIDIGITAL_VAL_NOT_A_PIN_STATE\x10\xfe\x01\x12\x33\n.PIN_STATE_NIDIGITAL_VAL_PIN_STATE_NOT_ACQUIRED\x10\xff\x01*\xbc\x01\n\x0b\x44riveFormat\x12\x1c\n\x18\x44RIVE_FORMAT_UNSPECIFIED\x10\x00\x12\"\n\x1d\x44RIVE_FORMAT_NIDIGITAL_VAL_NR\x10\xdc\x0b\x12\"\n\x1d\x44RIVE_FORMAT_NIDIGITAL_VAL_RL\x10\xdd\x0b\x12\"\n\x1d\x44RIVE_FORMAT_NIDIGITAL_VAL_RH\x10\xde\x0b\x12#\n\x1e\x44RIVE_FORMAT_NIDIGITAL_VAL_SBC\x10\xdf\x0b*\xc7\x01\n\x19HistoryRamCyclesToAcquire\x12-\n)HISTORY_RAM_CYCLES_TO_ACQUIRE_UNSPECIFIED\x10\x00\x12>\n9HISTORY_RAM_CYCLES_TO_ACQUIRE_NIDIGITAL_VAL_FAILED_CYCLES\x10\xff\x11\x12;\n6HISTORY_RAM_CYCLES_TO_ACQUIRE_NIDIGITAL_VAL_ALL_CYCLES\x10\x80\x12*\x88\x01\n\x18PpmuCurrentLimitBehavior\x12+\n\'PPMU_CURRENT_LIMIT_BEHAVIOR_UNSPECIFIED\x10\x00\x12?\n:PPMU_CURRENT_LIMIT_BEHAVIOR_NIDIGITAL_VAL_CURRENT_REGULATE\x10\x9c\x18*\xb0\x01\n\x13PpmuMeasurementType\x12%\n!PPMU_MEASUREMENT_TYPE_UNSPECIFIED\x10\x00\x12\x38\n3PPMU_MEASUREMENT_TYPE_NIDIGITAL_VAL_MEASURE_CURRENT\x10\xe0\x12\x12\x38\n3PPMU_MEASUREMENT_TYPE_NIDIGITAL_VAL_MEASURE_VOLTAGE\x10\xe1\x12*\xa2\x01\n\x12PpmuOutputFunction\x12$\n PPMU_OUTPUT_FUNCTION_UNSPECIFIED\x10\x00\x12\x32\n-PPMU_OUTPUT_FUNCTION_NIDIGITAL_VAL_DC_VOLTAGE\x10\x94\n\x12\x32\n-PPMU_OUTPUT_FUNCTION_NIDIGITAL_VAL_DC_CURRENT\x10\x95\n*\x93\x02\n\x10SelectedFunction\x12!\n\x1dSELECTED_FUNCTION_UNSPECIFIED\x10\x00\x12,\n\'SELECTED_FUNCTION_NIDIGITAL_VAL_DIGITAL\x10\xcc\x08\x12)\n$SELECTED_FUNCTION_NIDIGITAL_VAL_PPMU\x10\xcd\x08\x12(\n#SELECTED_FUNCTION_NIDIGITAL_VAL_OFF\x10\xce\x08\x12/\n*SELECTED_FUNCTION_NIDIGITAL_VAL_DISCONNECT\x10\xcf\x08\x12(\n#SELECTED_FUNCTION_NIDIGITAL_VAL_RIO\x10\xd0\x08*\xa7\x02\n\x0c\x45xportSignal\x12\x1d\n\x19\x45XPORT_SIGNAL_UNSPECIFIED\x10\x00\x12.\n)EXPORT_SIGNAL_NIDIGITAL_VAL_START_TRIGGER\x10\xd0\x0f\x12\x39\n4EXPORT_SIGNAL_NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER\x10\xd1\x0f\x12\x35\n0EXPORT_SIGNAL_NIDIGITAL_VAL_PATTERN_OPCODE_EVENT\x10\xd2\x0f\x12*\n%EXPORT_SIGNAL_NIDIGITAL_VAL_REF_CLOCK\x10\xd3\x0f\x12*\n%EXPORT_SIGNAL_NIDIGITAL_VAL_RIO_EVENT\x10\xd4\x0f*\x97\x01\n\x0eSiteResultType\x12 \n\x1cSITE_RESULT_TYPE_UNSPECIFIED\x10\x00\x12-\n(SITE_RESULT_TYPE_NIDIGITAL_VAL_PASS_FAIL\x10\xe4\x19\x12\x34\n/SITE_RESULT_TYPE_NIDIGITAL_VAL_CAPTURE_WAVEFORM\x10\xe5\x19*\xa4\x01\n\x0fSoftwareTrigger\x12 \n\x1cSOFTWARE_TRIGGER_UNSPECIFIED\x10\x00\x12\x31\n,SOFTWARE_TRIGGER_NIDIGITAL_VAL_START_TRIGGER\x10\xd0\x0f\x12<\n7SOFTWARE_TRIGGER_NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER\x10\xd1\x0f*\x9e\x01\n\x11SourceDataMapping\x12#\n\x1fSOURCE_DATA_MAPPING_UNSPECIFIED\x10\x00\x12\x30\n+SOURCE_DATA_MAPPING_NIDIGITAL_VAL_BROADCAST\x10\xa8\x14\x12\x32\n-SOURCE_DATA_MAPPING_NIDIGITAL_VAL_SITE_UNIQUE\x10\xa9\x14*\xbb\x01\n\x0fTerminationMode\x12 \n\x1cTERMINATION_MODE_UNSPECIFIED\x10\x00\x12/\n*TERMINATION_MODE_NIDIGITAL_VAL_ACTIVE_LOAD\x10\xb0\t\x12)\n$TERMINATION_MODE_NIDIGITAL_VAL_VTERM\x10\xb1\t\x12*\n%TERMINATION_MODE_NIDIGITAL_VAL_HIGH_Z\x10\xb2\t*\xd1\x03\n\x0fTimeSetEdgeType\x12\"\n\x1eTIME_SET_EDGE_TYPE_UNSPECIFIED\x10\x00\x12.\n)TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_ON\x10\xf0\x15\x12\x30\n+TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_DATA\x10\xf1\x15\x12\x32\n-TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_RETURN\x10\xf2\x15\x12/\n*TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_OFF\x10\xf3\x15\x12\x34\n/TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_COMPARE_STROBE\x10\xf4\x15\x12\x31\n,TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_DATA2\x10\xf5\x15\x12\x33\n.TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_DRIVE_RETURN2\x10\xf6\x15\x12\x35\n0TIME_SET_EDGE_TYPE_NIDIGITAL_VAL_COMPARE_STROBE2\x10\xf7\x15*\xb4\x01\n\x18\x46requencyMeasurementMode\x12*\n&FREQUENCY_MEASUREMENT_MODE_UNSPECIFIED\x10\x00\x12\x34\n/FREQUENCY_MEASUREMENT_MODE_NIDIGITAL_VAL_BANKED\x10\xf4\x1c\x12\x36\n1FREQUENCY_MEASUREMENT_MODE_NIDIGITAL_VAL_PARALLEL\x10\xf5\x1c*\x99\x01\n\x13WriteStaticPinState\x12*\n&WRITE_STATIC_PIN_STATE_NIDIGITAL_VAL_0\x10\x00\x12*\n&WRITE_STATIC_PIN_STATE_NIDIGITAL_VAL_1\x10\x01\x12*\n&WRITE_STATIC_PIN_STATE_NIDIGITAL_VAL_X\x10\x05*\xf3\x0c\n\x1dNiDigitalInt32AttributeValues\x12\x1f\n\x1bNIDIGITAL_INT32_UNSPECIFIED\x10\x00\x12\x31\n,NIDIGITAL_INT32_DIGITAL_EDGE_VAL_RISING_EDGE\x10\x88\x0e\x12\x32\n-NIDIGITAL_INT32_DIGITAL_EDGE_VAL_FALLING_EDGE\x10\x89\x0e\x12:\n5NIDIGITAL_INT32_FREQUENCY_MEASUREMENT_MODE_VAL_BANKED\x10\xf4\x1c\x12<\n7NIDIGITAL_INT32_FREQUENCY_MEASUREMENT_MODE_VAL_PARALLEL\x10\xf5\x1c\x12\x44\n?NIDIGITAL_INT32_HISTORY_RAM_CYCLES_TO_ACQUIRE_VAL_FAILED_CYCLES\x10\xff\x11\x12\x41\n\n9NIDIGITAL_INT32_HISTORY_RAM_TRIGGER_TYPE_VAL_CYCLE_NUMBER\x10\x99\x11\x12?\n:NIDIGITAL_INT32_HISTORY_RAM_TRIGGER_TYPE_VAL_PATTERN_LABEL\x10\x9a\x11\x12\x39\n4NIDIGITAL_INT32_PPMU_APERTURE_TIME_UNITS_VAL_SECONDS\x10\xb4\x10\x12\x45\n@NIDIGITAL_INT32_PPMU_CURRENT_LIMIT_BEHAVIOR_VAL_CURRENT_REGULATE\x10\x9c\x18\x12\x38\n3NIDIGITAL_INT32_PPMU_OUTPUT_FUNCTION_VAL_DC_VOLTAGE\x10\x94\n\x12\x38\n3NIDIGITAL_INT32_PPMU_OUTPUT_FUNCTION_VAL_DC_CURRENT\x10\x95\n\x12\x32\n-NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_DIGITAL\x10\xcc\x08\x12/\n*NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_PPMU\x10\xcd\x08\x12.\n)NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_OFF\x10\xce\x08\x12\x35\n0NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_DISCONNECT\x10\xcf\x08\x12.\n)NIDIGITAL_INT32_SELECTED_FUNCTION_VAL_RIO\x10\xd0\x08\x12=\n8NIDIGITAL_INT32_TDR_ENDPOINT_TERMINATION_VAL_TDR_TO_OPEN\x10\x90\x1c\x12H\nCNIDIGITAL_INT32_TDR_ENDPOINT_TERMINATION_VAL_TDR_TO_SHORT_TO_GROUND\x10\x91\x1c\x12\x35\n0NIDIGITAL_INT32_TERMINATION_MODE_VAL_ACTIVE_LOAD\x10\xb0\t\x12/\n*NIDIGITAL_INT32_TERMINATION_MODE_VAL_VTERM\x10\xb1\t\x12\x30\n+NIDIGITAL_INT32_TERMINATION_MODE_VAL_HIGH_Z\x10\xb2\t\x12*\n%NIDIGITAL_INT32_TRIGGER_TYPE_VAL_NONE\x10\xa4\r\x12\x32\n-NIDIGITAL_INT32_TRIGGER_TYPE_VAL_DIGITAL_EDGE\x10\xa5\r\x12.\n)NIDIGITAL_INT32_TRIGGER_TYPE_VAL_SOFTWARE\x10\xa6\r2\xd0\x85\x01\n\tNiDigital\x12O\n\x04Init\x12\".nidigitalpattern_grpc.InitRequest\x1a#.nidigitalpattern_grpc.InitResponse\x12p\n\x0fInitWithOptions\x12-.nidigitalpattern_grpc.InitWithOptionsRequest\x1a..nidigitalpattern_grpc.InitWithOptionsResponse\x12R\n\x05\x43lose\x12#.nidigitalpattern_grpc.CloseRequest\x1a$.nidigitalpattern_grpc.CloseResponse\x12R\n\x05Reset\x12#.nidigitalpattern_grpc.ResetRequest\x1a$.nidigitalpattern_grpc.ResetResponse\x12\x64\n\x0bResetDevice\x12).nidigitalpattern_grpc.ResetDeviceRequest\x1a*.nidigitalpattern_grpc.ResetDeviceResponse\x12[\n\x08SelfTest\x12&.nidigitalpattern_grpc.SelfTestRequest\x1a\'.nidigitalpattern_grpc.SelfTestResponse\x12[\n\x08GetError\x12&.nidigitalpattern_grpc.GetErrorRequest\x1a\'.nidigitalpattern_grpc.GetErrorResponse\x12\x61\n\nClearError\x12(.nidigitalpattern_grpc.ClearErrorRequest\x1a).nidigitalpattern_grpc.ClearErrorResponse\x12g\n\x0c\x45rrorMessage\x12*.nidigitalpattern_grpc.ErrorMessageRequest\x1a+.nidigitalpattern_grpc.ErrorMessageResponse\x12j\n\rSelfCalibrate\x12+.nidigitalpattern_grpc.SelfCalibrateRequest\x1a,.nidigitalpattern_grpc.SelfCalibrateResponse\x12|\n\x13GetAttributeViInt32\x12\x31.nidigitalpattern_grpc.GetAttributeViInt32Request\x1a\x32.nidigitalpattern_grpc.GetAttributeViInt32Response\x12|\n\x13GetAttributeViInt64\x12\x31.nidigitalpattern_grpc.GetAttributeViInt64Request\x1a\x32.nidigitalpattern_grpc.GetAttributeViInt64Response\x12\x7f\n\x14GetAttributeViReal64\x12\x32.nidigitalpattern_grpc.GetAttributeViReal64Request\x1a\x33.nidigitalpattern_grpc.GetAttributeViReal64Response\x12\x7f\n\x14GetAttributeViString\x12\x32.nidigitalpattern_grpc.GetAttributeViStringRequest\x1a\x33.nidigitalpattern_grpc.GetAttributeViStringResponse\x12\x82\x01\n\x15GetAttributeViSession\x12\x33.nidigitalpattern_grpc.GetAttributeViSessionRequest\x1a\x34.nidigitalpattern_grpc.GetAttributeViSessionResponse\x12\x82\x01\n\x15GetAttributeViBoolean\x12\x33.nidigitalpattern_grpc.GetAttributeViBooleanRequest\x1a\x34.nidigitalpattern_grpc.GetAttributeViBooleanResponse\x12|\n\x13SetAttributeViInt32\x12\x31.nidigitalpattern_grpc.SetAttributeViInt32Request\x1a\x32.nidigitalpattern_grpc.SetAttributeViInt32Response\x12|\n\x13SetAttributeViInt64\x12\x31.nidigitalpattern_grpc.SetAttributeViInt64Request\x1a\x32.nidigitalpattern_grpc.SetAttributeViInt64Response\x12\x7f\n\x14SetAttributeViReal64\x12\x32.nidigitalpattern_grpc.SetAttributeViReal64Request\x1a\x33.nidigitalpattern_grpc.SetAttributeViReal64Response\x12\x7f\n\x14SetAttributeViString\x12\x32.nidigitalpattern_grpc.SetAttributeViStringRequest\x1a\x33.nidigitalpattern_grpc.SetAttributeViStringResponse\x12\x82\x01\n\x15SetAttributeViSession\x12\x33.nidigitalpattern_grpc.SetAttributeViSessionRequest\x1a\x34.nidigitalpattern_grpc.SetAttributeViSessionResponse\x12\x82\x01\n\x15SetAttributeViBoolean\x12\x33.nidigitalpattern_grpc.SetAttributeViBooleanRequest\x1a\x34.nidigitalpattern_grpc.SetAttributeViBooleanResponse\x12m\n\x0eResetAttribute\x12,.nidigitalpattern_grpc.ResetAttributeRequest\x1a-.nidigitalpattern_grpc.ResetAttributeResponse\x12\x61\n\nLoadPinMap\x12(.nidigitalpattern_grpc.LoadPinMapRequest\x1a).nidigitalpattern_grpc.LoadPinMapResponse\x12\x64\n\x0b\x45nableSites\x12).nidigitalpattern_grpc.EnableSitesRequest\x1a*.nidigitalpattern_grpc.EnableSitesResponse\x12g\n\x0c\x44isableSites\x12*.nidigitalpattern_grpc.DisableSitesRequest\x1a+.nidigitalpattern_grpc.DisableSitesResponse\x12j\n\rIsSiteEnabled\x12+.nidigitalpattern_grpc.IsSiteEnabledRequest\x1a,.nidigitalpattern_grpc.IsSiteEnabledResponse\x12g\n\x0c\x43reatePinMap\x12*.nidigitalpattern_grpc.CreatePinMapRequest\x1a+.nidigitalpattern_grpc.CreatePinMapResponse\x12m\n\x0e\x43reatePinGroup\x12,.nidigitalpattern_grpc.CreatePinGroupRequest\x1a-.nidigitalpattern_grpc.CreatePinGroupResponse\x12s\n\x10\x43reateChannelMap\x12..nidigitalpattern_grpc.CreateChannelMapRequest\x1a/.nidigitalpattern_grpc.CreateChannelMapResponse\x12p\n\x0fMapPinToChannel\x12-.nidigitalpattern_grpc.MapPinToChannelRequest\x1a..nidigitalpattern_grpc.MapPinToChannelResponse\x12j\n\rEndChannelMap\x12+.nidigitalpattern_grpc.EndChannelMapRequest\x1a,.nidigitalpattern_grpc.EndChannelMapResponse\x12\x61\n\nGetPinName\x12(.nidigitalpattern_grpc.GetPinNameRequest\x1a).nidigitalpattern_grpc.GetPinNameResponse\x12m\n\x0eGetChannelName\x12,.nidigitalpattern_grpc.GetChannelNameRequest\x1a-.nidigitalpattern_grpc.GetChannelNameResponse\x12m\n\x0eSelectFunction\x12,.nidigitalpattern_grpc.SelectFunctionRequest\x1a-.nidigitalpattern_grpc.SelectFunctionResponse\x12\x61\n\nReadStatic\x12(.nidigitalpattern_grpc.ReadStaticRequest\x1a).nidigitalpattern_grpc.ReadStaticResponse\x12\x64\n\x0bWriteStatic\x12).nidigitalpattern_grpc.WriteStaticRequest\x1a*.nidigitalpattern_grpc.WriteStaticResponse\x12\x94\x01\n\x1b\x43lockGeneratorGenerateClock\x12\x39.nidigitalpattern_grpc.ClockGeneratorGenerateClockRequest\x1a:.nidigitalpattern_grpc.ClockGeneratorGenerateClockResponse\x12\x85\x01\n\x16\x43lockGeneratorInitiate\x12\x34.nidigitalpattern_grpc.ClockGeneratorInitiateRequest\x1a\x35.nidigitalpattern_grpc.ClockGeneratorInitiateResponse\x12|\n\x13\x43lockGeneratorAbort\x12\x31.nidigitalpattern_grpc.ClockGeneratorAbortRequest\x1a\x32.nidigitalpattern_grpc.ClockGeneratorAbortResponse\x12y\n\x12LoadSpecifications\x12\x30.nidigitalpattern_grpc.LoadSpecificationsRequest\x1a\x31.nidigitalpattern_grpc.LoadSpecificationsResponse\x12\x7f\n\x14UnloadSpecifications\x12\x32.nidigitalpattern_grpc.UnloadSpecificationsRequest\x1a\x33.nidigitalpattern_grpc.UnloadSpecificationsResponse\x12\x61\n\nLoadLevels\x12(.nidigitalpattern_grpc.LoadLevelsRequest\x1a).nidigitalpattern_grpc.LoadLevelsResponse\x12\x61\n\nLoadTiming\x12(.nidigitalpattern_grpc.LoadTimingRequest\x1a).nidigitalpattern_grpc.LoadTimingResponse\x12\x7f\n\x14\x41pplyLevelsAndTiming\x12\x32.nidigitalpattern_grpc.ApplyLevelsAndTimingRequest\x1a\x33.nidigitalpattern_grpc.ApplyLevelsAndTimingResponse\x12\x85\x01\n\x16\x43onfigureVoltageLevels\x12\x34.nidigitalpattern_grpc.ConfigureVoltageLevelsRequest\x1a\x35.nidigitalpattern_grpc.ConfigureVoltageLevelsResponse\x12\x8e\x01\n\x19\x43onfigureActiveLoadLevels\x12\x37.nidigitalpattern_grpc.ConfigureActiveLoadLevelsRequest\x1a\x38.nidigitalpattern_grpc.ConfigureActiveLoadLevelsResponse\x12\x8b\x01\n\x18\x43onfigureTerminationMode\x12\x36.nidigitalpattern_grpc.ConfigureTerminationModeRequest\x1a\x37.nidigitalpattern_grpc.ConfigureTerminationModeResponse\x12j\n\rCreateTimeSet\x12+.nidigitalpattern_grpc.CreateTimeSetRequest\x1a,.nidigitalpattern_grpc.CreateTimeSetResponse\x12\x85\x01\n\x16\x43onfigureTimeSetPeriod\x12\x34.nidigitalpattern_grpc.ConfigureTimeSetPeriodRequest\x1a\x35.nidigitalpattern_grpc.ConfigureTimeSetPeriodResponse\x12\x91\x01\n\x1a\x43onfigureTimeSetDriveEdges\x12\x38.nidigitalpattern_grpc.ConfigureTimeSetDriveEdgesRequest\x1a\x39.nidigitalpattern_grpc.ConfigureTimeSetDriveEdgesResponse\x12\xa9\x01\n\"ConfigureTimeSetCompareEdgesStrobe\x12@.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobeRequest\x1a\x41.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobeResponse\x12\x94\x01\n\x1b\x43onfigureTimeSetDriveFormat\x12\x39.nidigitalpattern_grpc.ConfigureTimeSetDriveFormatRequest\x1a:.nidigitalpattern_grpc.ConfigureTimeSetDriveFormatResponse\x12v\n\x11\x44\x65leteAllTimeSets\x12/.nidigitalpattern_grpc.DeleteAllTimeSetsRequest\x1a\x30.nidigitalpattern_grpc.DeleteAllTimeSetsResponse\x12\x9d\x01\n\x1e\x43onfigureTimeSetEdgeMultiplier\x12<.nidigitalpattern_grpc.ConfigureTimeSetEdgeMultiplierRequest\x1a=.nidigitalpattern_grpc.ConfigureTimeSetEdgeMultiplierResponse\x12\x97\x01\n\x1c\x43onfigureTimeSetDriveEdges2x\x12:.nidigitalpattern_grpc.ConfigureTimeSetDriveEdges2xRequest\x1a;.nidigitalpattern_grpc.ConfigureTimeSetDriveEdges2xResponse\x12\xaf\x01\n$ConfigureTimeSetCompareEdgesStrobe2x\x12\x42.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobe2xRequest\x1a\x43.nidigitalpattern_grpc.ConfigureTimeSetCompareEdgesStrobe2xResponse\x12\x7f\n\x14\x43onfigureTimeSetEdge\x12\x32.nidigitalpattern_grpc.ConfigureTimeSetEdgeRequest\x1a\x33.nidigitalpattern_grpc.ConfigureTimeSetEdgeResponse\x12s\n\x10GetTimeSetPeriod\x12..nidigitalpattern_grpc.GetTimeSetPeriodRequest\x1a/.nidigitalpattern_grpc.GetTimeSetPeriodResponse\x12m\n\x0eGetTimeSetEdge\x12,.nidigitalpattern_grpc.GetTimeSetEdgeRequest\x1a-.nidigitalpattern_grpc.GetTimeSetEdgeResponse\x12\x8b\x01\n\x18GetTimeSetEdgeMultiplier\x12\x36.nidigitalpattern_grpc.GetTimeSetEdgeMultiplierRequest\x1a\x37.nidigitalpattern_grpc.GetTimeSetEdgeMultiplierResponse\x12\x82\x01\n\x15GetTimeSetDriveFormat\x12\x33.nidigitalpattern_grpc.GetTimeSetDriveFormatRequest\x1a\x34.nidigitalpattern_grpc.GetTimeSetDriveFormatResponse\x12m\n\x0eGetTimeSetName\x12,.nidigitalpattern_grpc.GetTimeSetNameRequest\x1a-.nidigitalpattern_grpc.GetTimeSetNameResponse\x12L\n\x03TDR\x12!.nidigitalpattern_grpc.TDRRequest\x1a\".nidigitalpattern_grpc.TDRResponse\x12p\n\x0f\x41pplyTDROffsets\x12-.nidigitalpattern_grpc.ApplyTDROffsetsRequest\x1a..nidigitalpattern_grpc.ApplyTDROffsetsResponse\x12\x94\x01\n\x1bPPMUConfigureOutputFunction\x12\x39.nidigitalpattern_grpc.PPMUConfigureOutputFunctionRequest\x1a:.nidigitalpattern_grpc.PPMUConfigureOutputFunctionResponse\x12\x8e\x01\n\x19PPMUConfigureApertureTime\x12\x37.nidigitalpattern_grpc.PPMUConfigureApertureTimeRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureApertureTimeResponse\x12\x8e\x01\n\x19PPMUConfigureVoltageLevel\x12\x37.nidigitalpattern_grpc.PPMUConfigureVoltageLevelRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureVoltageLevelResponse\x12\x8e\x01\n\x19PPMUConfigureCurrentLimit\x12\x37.nidigitalpattern_grpc.PPMUConfigureCurrentLimitRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureCurrentLimitResponse\x12\x9d\x01\n\x1ePPMUConfigureCurrentLimitRange\x12<.nidigitalpattern_grpc.PPMUConfigureCurrentLimitRangeRequest\x1a=.nidigitalpattern_grpc.PPMUConfigureCurrentLimitRangeResponse\x12\x8e\x01\n\x19PPMUConfigureCurrentLevel\x12\x37.nidigitalpattern_grpc.PPMUConfigureCurrentLevelRequest\x1a\x38.nidigitalpattern_grpc.PPMUConfigureCurrentLevelResponse\x12\x9d\x01\n\x1ePPMUConfigureCurrentLevelRange\x12<.nidigitalpattern_grpc.PPMUConfigureCurrentLevelRangeRequest\x1a=.nidigitalpattern_grpc.PPMUConfigureCurrentLevelRangeResponse\x12\x91\x01\n\x1aPPMUConfigureVoltageLimits\x12\x38.nidigitalpattern_grpc.PPMUConfigureVoltageLimitsRequest\x1a\x39.nidigitalpattern_grpc.PPMUConfigureVoltageLimitsResponse\x12\x61\n\nPPMUSource\x12(.nidigitalpattern_grpc.PPMUSourceRequest\x1a).nidigitalpattern_grpc.PPMUSourceResponse\x12\x64\n\x0bPPMUMeasure\x12).nidigitalpattern_grpc.PPMUMeasureRequest\x1a*.nidigitalpattern_grpc.PPMUMeasureResponse\x12\x64\n\x0bLoadPattern\x12).nidigitalpattern_grpc.LoadPatternRequest\x1a*.nidigitalpattern_grpc.LoadPatternResponse\x12v\n\x11UnloadAllPatterns\x12/.nidigitalpattern_grpc.UnloadAllPatternsRequest\x1a\x30.nidigitalpattern_grpc.UnloadAllPatternsResponse\x12|\n\x13\x43onfigureStartLabel\x12\x31.nidigitalpattern_grpc.ConfigureStartLabelRequest\x1a\x32.nidigitalpattern_grpc.ConfigureStartLabelResponse\x12\x91\x01\n\x1a\x43onfigurePatternBurstSites\x12\x38.nidigitalpattern_grpc.ConfigurePatternBurstSitesRequest\x1a\x39.nidigitalpattern_grpc.ConfigurePatternBurstSitesResponse\x12\x7f\n\x14GetPatternPinIndexes\x12\x32.nidigitalpattern_grpc.GetPatternPinIndexesRequest\x1a\x33.nidigitalpattern_grpc.GetPatternPinIndexesResponse\x12v\n\x11GetPatternPinList\x12/.nidigitalpattern_grpc.GetPatternPinListRequest\x1a\x30.nidigitalpattern_grpc.GetPatternPinListResponse\x12m\n\x0eGetPatternName\x12,.nidigitalpattern_grpc.GetPatternNameRequest\x1a-.nidigitalpattern_grpc.GetPatternNameResponse\x12g\n\x0c\x42urstPattern\x12*.nidigitalpattern_grpc.BurstPatternRequest\x1a+.nidigitalpattern_grpc.BurstPatternResponse\x12\x8b\x01\n\x18\x42urstPatternSynchronized\x12\x36.nidigitalpattern_grpc.BurstPatternSynchronizedRequest\x1a\x37.nidigitalpattern_grpc.BurstPatternSynchronizedResponse\x12U\n\x06\x43ommit\x12$.nidigitalpattern_grpc.CommitRequest\x1a%.nidigitalpattern_grpc.CommitResponse\x12[\n\x08Initiate\x12&.nidigitalpattern_grpc.InitiateRequest\x1a\'.nidigitalpattern_grpc.InitiateResponse\x12U\n\x06IsDone\x12$.nidigitalpattern_grpc.IsDoneRequest\x1a%.nidigitalpattern_grpc.IsDoneResponse\x12j\n\rWaitUntilDone\x12+.nidigitalpattern_grpc.WaitUntilDoneRequest\x1a,.nidigitalpattern_grpc.WaitUntilDoneResponse\x12R\n\x05\x41\x62ort\x12#.nidigitalpattern_grpc.AbortRequest\x1a$.nidigitalpattern_grpc.AbortResponse\x12m\n\x0e\x41\x62ortKeepAlive\x12,.nidigitalpattern_grpc.AbortKeepAliveRequest\x1a-.nidigitalpattern_grpc.AbortKeepAliveResponse\x12\xb5\x01\n&ConfigurePatternLabelHistoryRAMTrigger\x12\x44.nidigitalpattern_grpc.ConfigurePatternLabelHistoryRAMTriggerRequest\x1a\x45.nidigitalpattern_grpc.ConfigurePatternLabelHistoryRAMTriggerResponse\x12\xb2\x01\n%ConfigureCycleNumberHistoryRAMTrigger\x12\x43.nidigitalpattern_grpc.ConfigureCycleNumberHistoryRAMTriggerRequest\x1a\x44.nidigitalpattern_grpc.ConfigureCycleNumberHistoryRAMTriggerResponse\x12\xb5\x01\n&ConfigureFirstFailureHistoryRAMTrigger\x12\x44.nidigitalpattern_grpc.ConfigureFirstFailureHistoryRAMTriggerRequest\x1a\x45.nidigitalpattern_grpc.ConfigureFirstFailureHistoryRAMTriggerResponse\x12\xa9\x01\n\"ConfigureHistoryRAMCyclesToAcquire\x12@.nidigitalpattern_grpc.ConfigureHistoryRAMCyclesToAcquireRequest\x1a\x41.nidigitalpattern_grpc.ConfigureHistoryRAMCyclesToAcquireResponse\x12\x8b\x01\n\x18GetHistoryRAMSampleCount\x12\x36.nidigitalpattern_grpc.GetHistoryRAMSampleCountRequest\x1a\x37.nidigitalpattern_grpc.GetHistoryRAMSampleCountResponse\x12\xa0\x01\n\x1f\x46\x65tchHistoryRAMCycleInformation\x12=.nidigitalpattern_grpc.FetchHistoryRAMCycleInformationRequest\x1a>.nidigitalpattern_grpc.FetchHistoryRAMCycleInformationResponse\x12\x94\x01\n\x1b\x46\x65tchHistoryRAMCyclePinData\x12\x39.nidigitalpattern_grpc.FetchHistoryRAMCyclePinDataRequest\x1a:.nidigitalpattern_grpc.FetchHistoryRAMCyclePinDataResponse\x12\x9d\x01\n\x1e\x46\x65tchHistoryRAMScanCycleNumber\x12<.nidigitalpattern_grpc.FetchHistoryRAMScanCycleNumberRequest\x1a=.nidigitalpattern_grpc.FetchHistoryRAMScanCycleNumberResponse\x12\x97\x01\n\x1c\x43reateSourceWaveformParallel\x12:.nidigitalpattern_grpc.CreateSourceWaveformParallelRequest\x1a;.nidigitalpattern_grpc.CreateSourceWaveformParallelResponse\x12\x91\x01\n\x1a\x43reateSourceWaveformSerial\x12\x38.nidigitalpattern_grpc.CreateSourceWaveformSerialRequest\x1a\x39.nidigitalpattern_grpc.CreateSourceWaveformSerialResponse\x12\xa3\x01\n CreateSourceWaveformFromFileTDMS\x12>.nidigitalpattern_grpc.CreateSourceWaveformFromFileTDMSRequest\x1a?.nidigitalpattern_grpc.CreateSourceWaveformFromFileTDMSResponse\x12\xa0\x01\n\x1fWriteSourceWaveformBroadcastU32\x12=.nidigitalpattern_grpc.WriteSourceWaveformBroadcastU32Request\x1a>.nidigitalpattern_grpc.WriteSourceWaveformBroadcastU32Response\x12\xa3\x01\n WriteSourceWaveformSiteUniqueU32\x12>.nidigitalpattern_grpc.WriteSourceWaveformSiteUniqueU32Request\x1a?.nidigitalpattern_grpc.WriteSourceWaveformSiteUniqueU32Response\x12\xac\x01\n#WriteSourceWaveformDataFromFileTDMS\x12\x41.nidigitalpattern_grpc.WriteSourceWaveformDataFromFileTDMSRequest\x1a\x42.nidigitalpattern_grpc.WriteSourceWaveformDataFromFileTDMSResponse\x12\x9a\x01\n\x1d\x43reateCaptureWaveformParallel\x12;.nidigitalpattern_grpc.CreateCaptureWaveformParallelRequest\x1a<.nidigitalpattern_grpc.CreateCaptureWaveformParallelResponse\x12\x94\x01\n\x1b\x43reateCaptureWaveformSerial\x12\x39.nidigitalpattern_grpc.CreateCaptureWaveformSerialRequest\x1a:.nidigitalpattern_grpc.CreateCaptureWaveformSerialResponse\x12\xbb\x01\n(CreateCaptureWaveformFromFileDigicapture\x12\x46.nidigitalpattern_grpc.CreateCaptureWaveformFromFileDigicaptureRequest\x1aG.nidigitalpattern_grpc.CreateCaptureWaveformFromFileDigicaptureResponse\x12\x88\x01\n\x17\x46\x65tchCaptureWaveformU32\x12\x35.nidigitalpattern_grpc.FetchCaptureWaveformU32Request\x1a\x36.nidigitalpattern_grpc.FetchCaptureWaveformU32Response\x12g\n\x0c\x45xportSignal\x12*.nidigitalpattern_grpc.ExportSignalRequest\x1a+.nidigitalpattern_grpc.ExportSignalResponse\x12\xa3\x01\n ConfigureDigitalEdgeStartTrigger\x12>.nidigitalpattern_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a?.nidigitalpattern_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\xa6\x01\n!ConfigureSoftwareEdgeStartTrigger\x12?.nidigitalpattern_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a@.nidigitalpattern_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12|\n\x13\x44isableStartTrigger\x12\x31.nidigitalpattern_grpc.DisableStartTriggerRequest\x1a\x32.nidigitalpattern_grpc.DisableStartTriggerResponse\x12\xc1\x01\n*ConfigureDigitalEdgeConditionalJumpTrigger\x12H.nidigitalpattern_grpc.ConfigureDigitalEdgeConditionalJumpTriggerRequest\x1aI.nidigitalpattern_grpc.ConfigureDigitalEdgeConditionalJumpTriggerResponse\x12\xc4\x01\n+ConfigureSoftwareEdgeConditionalJumpTrigger\x12I.nidigitalpattern_grpc.ConfigureSoftwareEdgeConditionalJumpTriggerRequest\x1aJ.nidigitalpattern_grpc.ConfigureSoftwareEdgeConditionalJumpTriggerResponse\x12\x9a\x01\n\x1d\x44isableConditionalJumpTrigger\x12;.nidigitalpattern_grpc.DisableConditionalJumpTriggerRequest\x1a<.nidigitalpattern_grpc.DisableConditionalJumpTriggerResponse\x12\x88\x01\n\x17SendSoftwareEdgeTrigger\x12\x35.nidigitalpattern_grpc.SendSoftwareEdgeTriggerRequest\x1a\x36.nidigitalpattern_grpc.SendSoftwareEdgeTriggerResponse\x12y\n\x12WriteSequencerFlag\x12\x30.nidigitalpattern_grpc.WriteSequencerFlagRequest\x1a\x31.nidigitalpattern_grpc.WriteSequencerFlagResponse\x12\x9d\x01\n\x1eWriteSequencerFlagSynchronized\x12<.nidigitalpattern_grpc.WriteSequencerFlagSynchronizedRequest\x1a=.nidigitalpattern_grpc.WriteSequencerFlagSynchronizedResponse\x12v\n\x11ReadSequencerFlag\x12/.nidigitalpattern_grpc.ReadSequencerFlagRequest\x1a\x30.nidigitalpattern_grpc.ReadSequencerFlagResponse\x12\x85\x01\n\x16WriteSequencerRegister\x12\x34.nidigitalpattern_grpc.WriteSequencerRegisterRequest\x1a\x35.nidigitalpattern_grpc.WriteSequencerRegisterResponse\x12\x82\x01\n\x15ReadSequencerRegister\x12\x33.nidigitalpattern_grpc.ReadSequencerRegisterRequest\x1a\x34.nidigitalpattern_grpc.ReadSequencerRegisterResponse\x12\x91\x01\n\x1a\x45nableMatchFailCombination\x12\x38.nidigitalpattern_grpc.EnableMatchFailCombinationRequest\x1a\x39.nidigitalpattern_grpc.EnableMatchFailCombinationResponse\x12p\n\x0fGetSitePassFail\x12-.nidigitalpattern_grpc.GetSitePassFailRequest\x1a..nidigitalpattern_grpc.GetSitePassFailResponse\x12g\n\x0cGetFailCount\x12*.nidigitalpattern_grpc.GetFailCountRequest\x1a+.nidigitalpattern_grpc.GetFailCountResponse\x12\x94\x01\n\x1bGetPinResultsPinInformation\x12\x39.nidigitalpattern_grpc.GetPinResultsPinInformationRequest\x1a:.nidigitalpattern_grpc.GetPinResultsPinInformationResponse\x12\x8e\x01\n\x19GetSiteResultsSiteNumbers\x12\x37.nidigitalpattern_grpc.GetSiteResultsSiteNumbersRequest\x1a\x38.nidigitalpattern_grpc.GetSiteResultsSiteNumbersResponse\x12\xbb\x01\n(FrequencyCounterConfigureMeasurementTime\x12\x46.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementTimeRequest\x1aG.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementTimeResponse\x12\xbb\x01\n(FrequencyCounterConfigureMeasurementMode\x12\x46.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementModeRequest\x1aG.nidigitalpattern_grpc.FrequencyCounterConfigureMeasurementModeResponse\x12\xa3\x01\n FrequencyCounterMeasureFrequency\x12>.nidigitalpattern_grpc.FrequencyCounterMeasureFrequencyRequest\x1a?.nidigitalpattern_grpc.FrequencyCounterMeasureFrequencyResponse\x12\x8b\x01\n\x18GetChannelNameFromString\x12\x36.nidigitalpattern_grpc.GetChannelNameFromStringRequest\x1a\x37.nidigitalpattern_grpc.GetChannelNameFromStringResponseBG\n\x15\x63om.ni.grpc.nidigitalB\tNiDigitalP\x01\xaa\x02 NationalInstruments.Grpc.Digitalb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidigitalpattern_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\025com.ni.grpc.nidigitalB\tNiDigitalP\001\252\002 NationalInstruments.Grpc.Digital' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NIDIGITALATTRIBUTE']._serialized_start=25129 + _globals['_NIDIGITALATTRIBUTE']._serialized_end=29749 + _globals['_PPMUAPERTURETIMEUNITS']._serialized_start=29751 + _globals['_PPMUAPERTURETIMEUNITS']._serialized_end=29869 + _globals['_BITORDER']._serialized_start=29871 + _globals['_BITORDER']._serialized_end=29988 + _globals['_DIGITALEDGE']._serialized_start=29991 + _globals['_DIGITALEDGE']._serialized_end=30125 + _globals['_PINSTATE']._serialized_start=30128 + _globals['_PINSTATE']._serialized_end=30516 + _globals['_DRIVEFORMAT']._serialized_start=30519 + _globals['_DRIVEFORMAT']._serialized_end=30707 + _globals['_HISTORYRAMCYCLESTOACQUIRE']._serialized_start=30710 + _globals['_HISTORYRAMCYCLESTOACQUIRE']._serialized_end=30909 + _globals['_PPMUCURRENTLIMITBEHAVIOR']._serialized_start=30912 + _globals['_PPMUCURRENTLIMITBEHAVIOR']._serialized_end=31048 + _globals['_PPMUMEASUREMENTTYPE']._serialized_start=31051 + _globals['_PPMUMEASUREMENTTYPE']._serialized_end=31227 + _globals['_PPMUOUTPUTFUNCTION']._serialized_start=31230 + _globals['_PPMUOUTPUTFUNCTION']._serialized_end=31392 + _globals['_SELECTEDFUNCTION']._serialized_start=31395 + _globals['_SELECTEDFUNCTION']._serialized_end=31670 + _globals['_EXPORTSIGNAL']._serialized_start=31673 + _globals['_EXPORTSIGNAL']._serialized_end=31968 + _globals['_SITERESULTTYPE']._serialized_start=31971 + _globals['_SITERESULTTYPE']._serialized_end=32122 + _globals['_SOFTWARETRIGGER']._serialized_start=32125 + _globals['_SOFTWARETRIGGER']._serialized_end=32289 + _globals['_SOURCEDATAMAPPING']._serialized_start=32292 + _globals['_SOURCEDATAMAPPING']._serialized_end=32450 + _globals['_TERMINATIONMODE']._serialized_start=32453 + _globals['_TERMINATIONMODE']._serialized_end=32640 + _globals['_TIMESETEDGETYPE']._serialized_start=32643 + _globals['_TIMESETEDGETYPE']._serialized_end=33108 + _globals['_FREQUENCYMEASUREMENTMODE']._serialized_start=33111 + _globals['_FREQUENCYMEASUREMENTMODE']._serialized_end=33291 + _globals['_WRITESTATICPINSTATE']._serialized_start=33294 + _globals['_WRITESTATICPINSTATE']._serialized_end=33447 + _globals['_NIDIGITALINT32ATTRIBUTEVALUES']._serialized_start=33450 + _globals['_NIDIGITALINT32ATTRIBUTEVALUES']._serialized_end=35101 + _globals['_INITREQUEST']._serialized_start=65 + _globals['_INITREQUEST']._serialized_end=242 + _globals['_INITRESPONSE']._serialized_start=244 + _globals['_INITRESPONSE']._serialized_end=370 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=373 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=584 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=587 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=724 + _globals['_CLOSEREQUEST']._serialized_start=726 + _globals['_CLOSEREQUEST']._serialized_end=776 + _globals['_CLOSERESPONSE']._serialized_start=778 + _globals['_CLOSERESPONSE']._serialized_end=809 + _globals['_RESETREQUEST']._serialized_start=811 + _globals['_RESETREQUEST']._serialized_end=861 + _globals['_RESETRESPONSE']._serialized_start=863 + _globals['_RESETRESPONSE']._serialized_end=894 + _globals['_RESETDEVICEREQUEST']._serialized_start=896 + _globals['_RESETDEVICEREQUEST']._serialized_end=952 + _globals['_RESETDEVICERESPONSE']._serialized_start=954 + _globals['_RESETDEVICERESPONSE']._serialized_end=991 + _globals['_SELFTESTREQUEST']._serialized_start=993 + _globals['_SELFTESTREQUEST']._serialized_end=1046 + _globals['_SELFTESTRESPONSE']._serialized_start=1048 + _globals['_SELFTESTRESPONSE']._serialized_end=1125 + _globals['_GETERRORREQUEST']._serialized_start=1127 + _globals['_GETERRORREQUEST']._serialized_end=1180 + _globals['_GETERRORRESPONSE']._serialized_start=1182 + _globals['_GETERRORRESPONSE']._serialized_end=1263 + _globals['_CLEARERRORREQUEST']._serialized_start=1265 + _globals['_CLEARERRORREQUEST']._serialized_end=1320 + _globals['_CLEARERRORRESPONSE']._serialized_start=1322 + _globals['_CLEARERRORRESPONSE']._serialized_end=1358 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=1360 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=1437 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=1439 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=1500 + _globals['_SELFCALIBRATEREQUEST']._serialized_start=1502 + _globals['_SELFCALIBRATEREQUEST']._serialized_end=1560 + _globals['_SELFCALIBRATERESPONSE']._serialized_start=1562 + _globals['_SELFCALIBRATERESPONSE']._serialized_end=1601 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=1604 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=1752 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=1754 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=1814 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=1817 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=1965 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=1967 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=2027 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=2030 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=2179 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=2181 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=2242 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=2245 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=2394 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=2396 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=2457 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=2460 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=2610 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=2612 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=2698 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=2701 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=2851 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=2853 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=2915 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=2918 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=3172 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=3174 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=3219 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=3222 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=3389 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=3391 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=3436 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=3439 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=3607 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=3609 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=3655 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=3658 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=3826 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=3828 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=3874 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=3877 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=4066 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=4068 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=4115 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=4118 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=4283 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=4285 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=4332 + _globals['_RESETATTRIBUTEREQUEST']._serialized_start=4335 + _globals['_RESETATTRIBUTEREQUEST']._serialized_end=4481 + _globals['_RESETATTRIBUTERESPONSE']._serialized_start=4483 + _globals['_RESETATTRIBUTERESPONSE']._serialized_end=4523 + _globals['_LOADPINMAPREQUEST']._serialized_start=4525 + _globals['_LOADPINMAPREQUEST']._serialized_end=4599 + _globals['_LOADPINMAPRESPONSE']._serialized_start=4601 + _globals['_LOADPINMAPRESPONSE']._serialized_end=4637 + _globals['_ENABLESITESREQUEST']._serialized_start=4639 + _globals['_ENABLESITESREQUEST']._serialized_end=4714 + _globals['_ENABLESITESRESPONSE']._serialized_start=4716 + _globals['_ENABLESITESRESPONSE']._serialized_end=4753 + _globals['_DISABLESITESREQUEST']._serialized_start=4755 + _globals['_DISABLESITESREQUEST']._serialized_end=4831 + _globals['_DISABLESITESRESPONSE']._serialized_start=4833 + _globals['_DISABLESITESRESPONSE']._serialized_end=4871 + _globals['_ISSITEENABLEDREQUEST']._serialized_start=4873 + _globals['_ISSITEENABLEDREQUEST']._serialized_end=4945 + _globals['_ISSITEENABLEDRESPONSE']._serialized_start=4947 + _globals['_ISSITEENABLEDRESPONSE']._serialized_end=5002 + _globals['_CREATEPINMAPREQUEST']._serialized_start=5004 + _globals['_CREATEPINMAPREQUEST']._serialized_end=5108 + _globals['_CREATEPINMAPRESPONSE']._serialized_start=5110 + _globals['_CREATEPINMAPRESPONSE']._serialized_end=5148 + _globals['_CREATEPINGROUPREQUEST']._serialized_start=5150 + _globals['_CREATEPINGROUPREQUEST']._serialized_end=5251 + _globals['_CREATEPINGROUPRESPONSE']._serialized_start=5253 + _globals['_CREATEPINGROUPRESPONSE']._serialized_end=5293 + _globals['_CREATECHANNELMAPREQUEST']._serialized_start=5295 + _globals['_CREATECHANNELMAPREQUEST']._serialized_end=5375 + _globals['_CREATECHANNELMAPRESPONSE']._serialized_start=5377 + _globals['_CREATECHANNELMAPRESPONSE']._serialized_end=5419 + _globals['_MAPPINTOCHANNELREQUEST']._serialized_start=5421 + _globals['_MAPPINTOCHANNELREQUEST']._serialized_end=5525 + _globals['_MAPPINTOCHANNELRESPONSE']._serialized_start=5527 + _globals['_MAPPINTOCHANNELRESPONSE']._serialized_end=5568 + _globals['_ENDCHANNELMAPREQUEST']._serialized_start=5570 + _globals['_ENDCHANNELMAPREQUEST']._serialized_end=5628 + _globals['_ENDCHANNELMAPRESPONSE']._serialized_start=5630 + _globals['_ENDCHANNELMAPRESPONSE']._serialized_end=5669 + _globals['_GETPINNAMEREQUEST']._serialized_start=5671 + _globals['_GETPINNAMEREQUEST']._serialized_end=5745 + _globals['_GETPINNAMERESPONSE']._serialized_start=5747 + _globals['_GETPINNAMERESPONSE']._serialized_end=5797 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=5799 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=5873 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=5875 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=5929 + _globals['_SELECTFUNCTIONREQUEST']._serialized_start=5932 + _globals['_SELECTFUNCTIONREQUEST']._serialized_end=6115 + _globals['_SELECTFUNCTIONRESPONSE']._serialized_start=6117 + _globals['_SELECTFUNCTIONRESPONSE']._serialized_end=6157 + _globals['_READSTATICREQUEST']._serialized_start=6159 + _globals['_READSTATICREQUEST']._serialized_end=6236 + _globals['_READSTATICRESPONSE']._serialized_start=6238 + _globals['_READSTATICRESPONSE']._serialized_end=6364 + _globals['_WRITESTATICREQUEST']._serialized_start=6367 + _globals['_WRITESTATICREQUEST']._serialized_end=6541 + _globals['_WRITESTATICRESPONSE']._serialized_start=6543 + _globals['_WRITESTATICRESPONSE']._serialized_end=6580 + _globals['_CLOCKGENERATORGENERATECLOCKREQUEST']._serialized_start=6583 + _globals['_CLOCKGENERATORGENERATECLOCKREQUEST']._serialized_end=6729 + _globals['_CLOCKGENERATORGENERATECLOCKRESPONSE']._serialized_start=6731 + _globals['_CLOCKGENERATORGENERATECLOCKRESPONSE']._serialized_end=6784 + _globals['_CLOCKGENERATORINITIATEREQUEST']._serialized_start=6786 + _globals['_CLOCKGENERATORINITIATEREQUEST']._serialized_end=6875 + _globals['_CLOCKGENERATORINITIATERESPONSE']._serialized_start=6877 + _globals['_CLOCKGENERATORINITIATERESPONSE']._serialized_end=6925 + _globals['_CLOCKGENERATORABORTREQUEST']._serialized_start=6927 + _globals['_CLOCKGENERATORABORTREQUEST']._serialized_end=7013 + _globals['_CLOCKGENERATORABORTRESPONSE']._serialized_start=7015 + _globals['_CLOCKGENERATORABORTRESPONSE']._serialized_end=7060 + _globals['_LOADSPECIFICATIONSREQUEST']._serialized_start=7062 + _globals['_LOADSPECIFICATIONSREQUEST']._serialized_end=7144 + _globals['_LOADSPECIFICATIONSRESPONSE']._serialized_start=7146 + _globals['_LOADSPECIFICATIONSRESPONSE']._serialized_end=7190 + _globals['_UNLOADSPECIFICATIONSREQUEST']._serialized_start=7192 + _globals['_UNLOADSPECIFICATIONSREQUEST']._serialized_end=7276 + _globals['_UNLOADSPECIFICATIONSRESPONSE']._serialized_start=7278 + _globals['_UNLOADSPECIFICATIONSRESPONSE']._serialized_end=7324 + _globals['_LOADLEVELSREQUEST']._serialized_start=7326 + _globals['_LOADLEVELSREQUEST']._serialized_end=7400 + _globals['_LOADLEVELSRESPONSE']._serialized_start=7402 + _globals['_LOADLEVELSRESPONSE']._serialized_end=7438 + _globals['_LOADTIMINGREQUEST']._serialized_start=7440 + _globals['_LOADTIMINGREQUEST']._serialized_end=7514 + _globals['_LOADTIMINGRESPONSE']._serialized_start=7516 + _globals['_LOADTIMINGRESPONSE']._serialized_end=7552 + _globals['_APPLYLEVELSANDTIMINGREQUEST']._serialized_start=7555 + _globals['_APPLYLEVELSANDTIMINGREQUEST']._serialized_end=7785 + _globals['_APPLYLEVELSANDTIMINGRESPONSE']._serialized_start=7787 + _globals['_APPLYLEVELSANDTIMINGRESPONSE']._serialized_end=7833 + _globals['_CONFIGUREVOLTAGELEVELSREQUEST']._serialized_start=7836 + _globals['_CONFIGUREVOLTAGELEVELSREQUEST']._serialized_end=7992 + _globals['_CONFIGUREVOLTAGELEVELSRESPONSE']._serialized_start=7994 + _globals['_CONFIGUREVOLTAGELEVELSRESPONSE']._serialized_end=8042 + _globals['_CONFIGUREACTIVELOADLEVELSREQUEST']._serialized_start=8045 + _globals['_CONFIGUREACTIVELOADLEVELSREQUEST']._serialized_end=8177 + _globals['_CONFIGUREACTIVELOADLEVELSRESPONSE']._serialized_start=8179 + _globals['_CONFIGUREACTIVELOADLEVELSRESPONSE']._serialized_end=8230 + _globals['_CONFIGURETERMINATIONMODEREQUEST']._serialized_start=8233 + _globals['_CONFIGURETERMINATIONMODEREQUEST']._serialized_end=8413 + _globals['_CONFIGURETERMINATIONMODERESPONSE']._serialized_start=8415 + _globals['_CONFIGURETERMINATIONMODERESPONSE']._serialized_end=8465 + _globals['_CREATETIMESETREQUEST']._serialized_start=8467 + _globals['_CREATETIMESETREQUEST']._serialized_end=8539 + _globals['_CREATETIMESETRESPONSE']._serialized_start=8541 + _globals['_CREATETIMESETRESPONSE']._serialized_end=8580 + _globals['_CONFIGURETIMESETPERIODREQUEST']._serialized_start=8582 + _globals['_CONFIGURETIMESETPERIODREQUEST']._serialized_end=8688 + _globals['_CONFIGURETIMESETPERIODRESPONSE']._serialized_start=8690 + _globals['_CONFIGURETIMESETPERIODRESPONSE']._serialized_end=8738 + _globals['_CONFIGURETIMESETDRIVEEDGESREQUEST']._serialized_start=8741 + _globals['_CONFIGURETIMESETDRIVEEDGESREQUEST']._serialized_end=9043 + _globals['_CONFIGURETIMESETDRIVEEDGESRESPONSE']._serialized_start=9045 + _globals['_CONFIGURETIMESETDRIVEEDGESRESPONSE']._serialized_end=9097 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBEREQUEST']._serialized_start=9100 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBEREQUEST']._serialized_end=9241 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBERESPONSE']._serialized_start=9243 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBERESPONSE']._serialized_end=9303 + _globals['_CONFIGURETIMESETDRIVEFORMATREQUEST']._serialized_start=9306 + _globals['_CONFIGURETIMESETDRIVEFORMATREQUEST']._serialized_end=9528 + _globals['_CONFIGURETIMESETDRIVEFORMATRESPONSE']._serialized_start=9530 + _globals['_CONFIGURETIMESETDRIVEFORMATRESPONSE']._serialized_end=9583 + _globals['_DELETEALLTIMESETSREQUEST']._serialized_start=9585 + _globals['_DELETEALLTIMESETSREQUEST']._serialized_end=9647 + _globals['_DELETEALLTIMESETSRESPONSE']._serialized_start=9649 + _globals['_DELETEALLTIMESETSRESPONSE']._serialized_end=9692 + _globals['_CONFIGURETIMESETEDGEMULTIPLIERREQUEST']._serialized_start=9695 + _globals['_CONFIGURETIMESETEDGEMULTIPLIERREQUEST']._serialized_end=9836 + _globals['_CONFIGURETIMESETEDGEMULTIPLIERRESPONSE']._serialized_start=9838 + _globals['_CONFIGURETIMESETEDGEMULTIPLIERRESPONSE']._serialized_end=9894 + _globals['_CONFIGURETIMESETDRIVEEDGES2XREQUEST']._serialized_start=9897 + _globals['_CONFIGURETIMESETDRIVEEDGES2XREQUEST']._serialized_end=10255 + _globals['_CONFIGURETIMESETDRIVEEDGES2XRESPONSE']._serialized_start=10257 + _globals['_CONFIGURETIMESETDRIVEEDGES2XRESPONSE']._serialized_end=10311 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XREQUEST']._serialized_start=10314 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XREQUEST']._serialized_end=10479 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XRESPONSE']._serialized_start=10481 + _globals['_CONFIGURETIMESETCOMPAREEDGESSTROBE2XRESPONSE']._serialized_end=10543 + _globals['_CONFIGURETIMESETEDGEREQUEST']._serialized_start=10546 + _globals['_CONFIGURETIMESETEDGEREQUEST']._serialized_end=10755 + _globals['_CONFIGURETIMESETEDGERESPONSE']._serialized_start=10757 + _globals['_CONFIGURETIMESETEDGERESPONSE']._serialized_end=10803 + _globals['_GETTIMESETPERIODREQUEST']._serialized_start=10805 + _globals['_GETTIMESETPERIODREQUEST']._serialized_end=10889 + _globals['_GETTIMESETPERIODRESPONSE']._serialized_start=10891 + _globals['_GETTIMESETPERIODRESPONSE']._serialized_end=10949 + _globals['_GETTIMESETEDGEREQUEST']._serialized_start=10952 + _globals['_GETTIMESETEDGEREQUEST']._serialized_end=11136 + _globals['_GETTIMESETEDGERESPONSE']._serialized_start=11138 + _globals['_GETTIMESETEDGERESPONSE']._serialized_end=11192 + _globals['_GETTIMESETEDGEMULTIPLIERREQUEST']._serialized_start=11194 + _globals['_GETTIMESETEDGEMULTIPLIERREQUEST']._serialized_end=11299 + _globals['_GETTIMESETEDGEMULTIPLIERRESPONSE']._serialized_start=11301 + _globals['_GETTIMESETEDGEMULTIPLIERRESPONSE']._serialized_end=11376 + _globals['_GETTIMESETDRIVEFORMATREQUEST']._serialized_start=11378 + _globals['_GETTIMESETDRIVEFORMATREQUEST']._serialized_end=11480 + _globals['_GETTIMESETDRIVEFORMATRESPONSE']._serialized_start=11482 + _globals['_GETTIMESETDRIVEFORMATRESPONSE']._serialized_end=11601 + _globals['_GETTIMESETNAMEREQUEST']._serialized_start=11603 + _globals['_GETTIMESETNAMEREQUEST']._serialized_end=11686 + _globals['_GETTIMESETNAMERESPONSE']._serialized_start=11688 + _globals['_GETTIMESETNAMERESPONSE']._serialized_end=11742 + _globals['_TDRREQUEST']._serialized_start=11744 + _globals['_TDRREQUEST']._serialized_end=11837 + _globals['_TDRRESPONSE']._serialized_start=11839 + _globals['_TDRRESPONSE']._serialized_end=11913 + _globals['_APPLYTDROFFSETSREQUEST']._serialized_start=11915 + _globals['_APPLYTDROFFSETSREQUEST']._serialized_end=12014 + _globals['_APPLYTDROFFSETSRESPONSE']._serialized_start=12016 + _globals['_APPLYTDROFFSETSRESPONSE']._serialized_end=12057 + _globals['_PPMUCONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_start=12060 + _globals['_PPMUCONFIGUREOUTPUTFUNCTIONREQUEST']._serialized_end=12279 + _globals['_PPMUCONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_start=12281 + _globals['_PPMUCONFIGUREOUTPUTFUNCTIONRESPONSE']._serialized_end=12334 + _globals['_PPMUCONFIGUREAPERTURETIMEREQUEST']._serialized_start=12337 + _globals['_PPMUCONFIGUREAPERTURETIMEREQUEST']._serialized_end=12550 + _globals['_PPMUCONFIGUREAPERTURETIMERESPONSE']._serialized_start=12552 + _globals['_PPMUCONFIGUREAPERTURETIMERESPONSE']._serialized_end=12603 + _globals['_PPMUCONFIGUREVOLTAGELEVELREQUEST']._serialized_start=12605 + _globals['_PPMUCONFIGUREVOLTAGELEVELREQUEST']._serialized_end=12720 + _globals['_PPMUCONFIGUREVOLTAGELEVELRESPONSE']._serialized_start=12722 + _globals['_PPMUCONFIGUREVOLTAGELEVELRESPONSE']._serialized_end=12773 + _globals['_PPMUCONFIGURECURRENTLIMITREQUEST']._serialized_start=12776 + _globals['_PPMUCONFIGURECURRENTLIMITREQUEST']._serialized_end=12993 + _globals['_PPMUCONFIGURECURRENTLIMITRESPONSE']._serialized_start=12995 + _globals['_PPMUCONFIGURECURRENTLIMITRESPONSE']._serialized_end=13046 + _globals['_PPMUCONFIGURECURRENTLIMITRANGEREQUEST']._serialized_start=13048 + _globals['_PPMUCONFIGURECURRENTLIMITRANGEREQUEST']._serialized_end=13160 + _globals['_PPMUCONFIGURECURRENTLIMITRANGERESPONSE']._serialized_start=13162 + _globals['_PPMUCONFIGURECURRENTLIMITRANGERESPONSE']._serialized_end=13218 + _globals['_PPMUCONFIGURECURRENTLEVELREQUEST']._serialized_start=13220 + _globals['_PPMUCONFIGURECURRENTLEVELREQUEST']._serialized_end=13335 + _globals['_PPMUCONFIGURECURRENTLEVELRESPONSE']._serialized_start=13337 + _globals['_PPMUCONFIGURECURRENTLEVELRESPONSE']._serialized_end=13388 + _globals['_PPMUCONFIGURECURRENTLEVELRANGEREQUEST']._serialized_start=13390 + _globals['_PPMUCONFIGURECURRENTLEVELRANGEREQUEST']._serialized_end=13502 + _globals['_PPMUCONFIGURECURRENTLEVELRANGERESPONSE']._serialized_start=13504 + _globals['_PPMUCONFIGURECURRENTLEVELRANGERESPONSE']._serialized_end=13560 + _globals['_PPMUCONFIGUREVOLTAGELIMITSREQUEST']._serialized_start=13563 + _globals['_PPMUCONFIGUREVOLTAGELIMITSREQUEST']._serialized_end=13714 + _globals['_PPMUCONFIGUREVOLTAGELIMITSRESPONSE']._serialized_start=13716 + _globals['_PPMUCONFIGUREVOLTAGELIMITSRESPONSE']._serialized_end=13768 + _globals['_PPMUSOURCEREQUEST']._serialized_start=13770 + _globals['_PPMUSOURCEREQUEST']._serialized_end=13847 + _globals['_PPMUSOURCERESPONSE']._serialized_start=13849 + _globals['_PPMUSOURCERESPONSE']._serialized_end=13885 + _globals['_PPMUMEASUREREQUEST']._serialized_start=13888 + _globals['_PPMUMEASUREREQUEST']._serialized_end=14095 + _globals['_PPMUMEASURERESPONSE']._serialized_start=14097 + _globals['_PPMUMEASURERESPONSE']._serialized_end=14181 + _globals['_LOADPATTERNREQUEST']._serialized_start=14183 + _globals['_LOADPATTERNREQUEST']._serialized_end=14258 + _globals['_LOADPATTERNRESPONSE']._serialized_start=14260 + _globals['_LOADPATTERNRESPONSE']._serialized_end=14297 + _globals['_UNLOADALLPATTERNSREQUEST']._serialized_start=14299 + _globals['_UNLOADALLPATTERNSREQUEST']._serialized_end=14396 + _globals['_UNLOADALLPATTERNSRESPONSE']._serialized_start=14398 + _globals['_UNLOADALLPATTERNSRESPONSE']._serialized_end=14441 + _globals['_CONFIGURESTARTLABELREQUEST']._serialized_start=14443 + _globals['_CONFIGURESTARTLABELREQUEST']._serialized_end=14522 + _globals['_CONFIGURESTARTLABELRESPONSE']._serialized_start=14524 + _globals['_CONFIGURESTARTLABELRESPONSE']._serialized_end=14569 + _globals['_CONFIGUREPATTERNBURSTSITESREQUEST']._serialized_start=14571 + _globals['_CONFIGUREPATTERNBURSTSITESREQUEST']._serialized_end=14661 + _globals['_CONFIGUREPATTERNBURSTSITESRESPONSE']._serialized_start=14663 + _globals['_CONFIGUREPATTERNBURSTSITESRESPONSE']._serialized_end=14715 + _globals['_GETPATTERNPININDEXESREQUEST']._serialized_start=14717 + _globals['_GETPATTERNPININDEXESREQUEST']._serialized_end=14803 + _globals['_GETPATTERNPININDEXESRESPONSE']._serialized_start=14805 + _globals['_GETPATTERNPININDEXESRESPONSE']._serialized_end=14897 + _globals['_GETPATTERNPINLISTREQUEST']._serialized_start=14899 + _globals['_GETPATTERNPINLISTREQUEST']._serialized_end=14982 + _globals['_GETPATTERNPINLISTRESPONSE']._serialized_start=14984 + _globals['_GETPATTERNPINLISTRESPONSE']._serialized_end=15045 + _globals['_GETPATTERNNAMEREQUEST']._serialized_start=15047 + _globals['_GETPATTERNNAMEREQUEST']._serialized_end=15129 + _globals['_GETPATTERNNAMERESPONSE']._serialized_start=15131 + _globals['_GETPATTERNNAMERESPONSE']._serialized_end=15185 + _globals['_BURSTPATTERNREQUEST']._serialized_start=15188 + _globals['_BURSTPATTERNREQUEST']._serialized_end=15360 + _globals['_BURSTPATTERNRESPONSE']._serialized_start=15362 + _globals['_BURSTPATTERNRESPONSE']._serialized_end=15400 + _globals['_BURSTPATTERNSYNCHRONIZEDREQUEST']._serialized_start=15403 + _globals['_BURSTPATTERNSYNCHRONIZEDREQUEST']._serialized_end=15616 + _globals['_BURSTPATTERNSYNCHRONIZEDRESPONSE']._serialized_start=15618 + _globals['_BURSTPATTERNSYNCHRONIZEDRESPONSE']._serialized_end=15668 + _globals['_COMMITREQUEST']._serialized_start=15670 + _globals['_COMMITREQUEST']._serialized_end=15721 + _globals['_COMMITRESPONSE']._serialized_start=15723 + _globals['_COMMITRESPONSE']._serialized_end=15755 + _globals['_INITIATEREQUEST']._serialized_start=15757 + _globals['_INITIATEREQUEST']._serialized_end=15810 + _globals['_INITIATERESPONSE']._serialized_start=15812 + _globals['_INITIATERESPONSE']._serialized_end=15846 + _globals['_ISDONEREQUEST']._serialized_start=15848 + _globals['_ISDONEREQUEST']._serialized_end=15899 + _globals['_ISDONERESPONSE']._serialized_start=15901 + _globals['_ISDONERESPONSE']._serialized_end=15947 + _globals['_WAITUNTILDONEREQUEST']._serialized_start=15949 + _globals['_WAITUNTILDONEREQUEST']._serialized_end=16024 + _globals['_WAITUNTILDONERESPONSE']._serialized_start=16026 + _globals['_WAITUNTILDONERESPONSE']._serialized_end=16065 + _globals['_ABORTREQUEST']._serialized_start=16067 + _globals['_ABORTREQUEST']._serialized_end=16117 + _globals['_ABORTRESPONSE']._serialized_start=16119 + _globals['_ABORTRESPONSE']._serialized_end=16150 + _globals['_ABORTKEEPALIVEREQUEST']._serialized_start=16152 + _globals['_ABORTKEEPALIVEREQUEST']._serialized_end=16211 + _globals['_ABORTKEEPALIVERESPONSE']._serialized_start=16213 + _globals['_ABORTKEEPALIVERESPONSE']._serialized_end=16253 + _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERREQUEST']._serialized_start=16256 + _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERREQUEST']._serialized_end=16427 + _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERRESPONSE']._serialized_start=16429 + _globals['_CONFIGUREPATTERNLABELHISTORYRAMTRIGGERRESPONSE']._serialized_end=16493 + _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERREQUEST']._serialized_start=16496 + _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERREQUEST']._serialized_end=16628 + _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERRESPONSE']._serialized_start=16630 + _globals['_CONFIGURECYCLENUMBERHISTORYRAMTRIGGERRESPONSE']._serialized_end=16693 + _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERREQUEST']._serialized_start=16695 + _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERREQUEST']._serialized_end=16806 + _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERRESPONSE']._serialized_start=16808 + _globals['_CONFIGUREFIRSTFAILUREHISTORYRAMTRIGGERRESPONSE']._serialized_end=16872 + _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIREREQUEST']._serialized_start=16875 + _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIREREQUEST']._serialized_end=17092 + _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIRERESPONSE']._serialized_start=17094 + _globals['_CONFIGUREHISTORYRAMCYCLESTOACQUIRERESPONSE']._serialized_end=17154 + _globals['_GETHISTORYRAMSAMPLECOUNTREQUEST']._serialized_start=17156 + _globals['_GETHISTORYRAMSAMPLECOUNTREQUEST']._serialized_end=17239 + _globals['_GETHISTORYRAMSAMPLECOUNTRESPONSE']._serialized_start=17241 + _globals['_GETHISTORYRAMSAMPLECOUNTRESPONSE']._serialized_end=17313 + _globals['_FETCHHISTORYRAMCYCLEINFORMATIONREQUEST']._serialized_start=17315 + _globals['_FETCHHISTORYRAMCYCLEINFORMATIONREQUEST']._serialized_end=17427 + _globals['_FETCHHISTORYRAMCYCLEINFORMATIONRESPONSE']._serialized_start=17430 + _globals['_FETCHHISTORYRAMCYCLEINFORMATIONRESPONSE']._serialized_end=17603 + _globals['_FETCHHISTORYRAMCYCLEPINDATAREQUEST']._serialized_start=17606 + _globals['_FETCHHISTORYRAMCYCLEPINDATAREQUEST']._serialized_end=17757 + _globals['_FETCHHISTORYRAMCYCLEPINDATARESPONSE']._serialized_start=17760 + _globals['_FETCHHISTORYRAMCYCLEPINDATARESPONSE']._serialized_end=18055 + _globals['_FETCHHISTORYRAMSCANCYCLENUMBERREQUEST']._serialized_start=18057 + _globals['_FETCHHISTORYRAMSCANCYCLENUMBERREQUEST']._serialized_end=18168 + _globals['_FETCHHISTORYRAMSCANCYCLENUMBERRESPONSE']._serialized_start=18170 + _globals['_FETCHHISTORYRAMSCANCYCLENUMBERRESPONSE']._serialized_end=18253 + _globals['_CREATESOURCEWAVEFORMPARALLELREQUEST']._serialized_start=18256 + _globals['_CREATESOURCEWAVEFORMPARALLELREQUEST']._serialized_end=18485 + _globals['_CREATESOURCEWAVEFORMPARALLELRESPONSE']._serialized_start=18487 + _globals['_CREATESOURCEWAVEFORMPARALLELRESPONSE']._serialized_end=18541 + _globals['_CREATESOURCEWAVEFORMSERIALREQUEST']._serialized_start=18544 + _globals['_CREATESOURCEWAVEFORMSERIALREQUEST']._serialized_end=18890 + _globals['_CREATESOURCEWAVEFORMSERIALRESPONSE']._serialized_start=18892 + _globals['_CREATESOURCEWAVEFORMSERIALRESPONSE']._serialized_end=18944 + _globals['_CREATESOURCEWAVEFORMFROMFILETDMSREQUEST']._serialized_start=18947 + _globals['_CREATESOURCEWAVEFORMFROMFILETDMSREQUEST']._serialized_end=19104 + _globals['_CREATESOURCEWAVEFORMFROMFILETDMSRESPONSE']._serialized_start=19106 + _globals['_CREATESOURCEWAVEFORMFROMFILETDMSRESPONSE']._serialized_end=19164 + _globals['_WRITESOURCEWAVEFORMBROADCASTU32REQUEST']._serialized_start=19166 + _globals['_WRITESOURCEWAVEFORMBROADCASTU32REQUEST']._serialized_end=19288 + _globals['_WRITESOURCEWAVEFORMBROADCASTU32RESPONSE']._serialized_start=19290 + _globals['_WRITESOURCEWAVEFORMBROADCASTU32RESPONSE']._serialized_end=19347 + _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32REQUEST']._serialized_start=19350 + _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32REQUEST']._serialized_end=19545 + _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32RESPONSE']._serialized_start=19547 + _globals['_WRITESOURCEWAVEFORMSITEUNIQUEU32RESPONSE']._serialized_end=19605 + _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSREQUEST']._serialized_start=19608 + _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSREQUEST']._serialized_end=19739 + _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSRESPONSE']._serialized_start=19741 + _globals['_WRITESOURCEWAVEFORMDATAFROMFILETDMSRESPONSE']._serialized_end=19802 + _globals['_CREATECAPTUREWAVEFORMPARALLELREQUEST']._serialized_start=19804 + _globals['_CREATECAPTUREWAVEFORMPARALLELREQUEST']._serialized_end=19919 + _globals['_CREATECAPTUREWAVEFORMPARALLELRESPONSE']._serialized_start=19921 + _globals['_CREATECAPTUREWAVEFORMPARALLELRESPONSE']._serialized_end=19976 + _globals['_CREATECAPTUREWAVEFORMSERIALREQUEST']._serialized_start=19979 + _globals['_CREATECAPTUREWAVEFORMSERIALREQUEST']._serialized_end=20211 + _globals['_CREATECAPTUREWAVEFORMSERIALRESPONSE']._serialized_start=20213 + _globals['_CREATECAPTUREWAVEFORMSERIALRESPONSE']._serialized_end=20266 + _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTUREREQUEST']._serialized_start=20269 + _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTUREREQUEST']._serialized_end=20405 + _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTURERESPONSE']._serialized_start=20407 + _globals['_CREATECAPTUREWAVEFORMFROMFILEDIGICAPTURERESPONSE']._serialized_end=20473 + _globals['_FETCHCAPTUREWAVEFORMU32REQUEST']._serialized_start=20476 + _globals['_FETCHCAPTUREWAVEFORMU32REQUEST']._serialized_end=20628 + _globals['_FETCHCAPTUREWAVEFORMU32RESPONSE']._serialized_start=20631 + _globals['_FETCHCAPTUREWAVEFORMU32RESPONSE']._serialized_end=20761 + _globals['_EXPORTSIGNALREQUEST']._serialized_start=20764 + _globals['_EXPORTSIGNALREQUEST']._serialized_end=20965 + _globals['_EXPORTSIGNALRESPONSE']._serialized_start=20967 + _globals['_EXPORTSIGNALRESPONSE']._serialized_end=21005 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=21008 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=21186 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=21188 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=21246 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=21248 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=21326 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=21328 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=21387 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=21389 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=21453 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=21455 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=21500 + _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_start=21503 + _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_end=21719 + _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_start=21721 + _globals['_CONFIGUREDIGITALEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_end=21789 + _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_start=21791 + _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERREQUEST']._serialized_end=21907 + _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_start=21909 + _globals['_CONFIGURESOFTWAREEDGECONDITIONALJUMPTRIGGERRESPONSE']._serialized_end=21978 + _globals['_DISABLECONDITIONALJUMPTRIGGERREQUEST']._serialized_start=21980 + _globals['_DISABLECONDITIONALJUMPTRIGGERREQUEST']._serialized_end=22082 + _globals['_DISABLECONDITIONALJUMPTRIGGERRESPONSE']._serialized_start=22084 + _globals['_DISABLECONDITIONALJUMPTRIGGERRESPONSE']._serialized_end=22139 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=22142 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=22336 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=22338 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=22387 + _globals['_WRITESEQUENCERFLAGREQUEST']._serialized_start=22389 + _globals['_WRITESEQUENCERFLAGREQUEST']._serialized_end=22481 + _globals['_WRITESEQUENCERFLAGRESPONSE']._serialized_start=22483 + _globals['_WRITESEQUENCERFLAGRESPONSE']._serialized_end=22527 + _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDREQUEST']._serialized_start=22530 + _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDREQUEST']._serialized_end=22663 + _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDRESPONSE']._serialized_start=22665 + _globals['_WRITESEQUENCERFLAGSYNCHRONIZEDRESPONSE']._serialized_end=22721 + _globals['_READSEQUENCERFLAGREQUEST']._serialized_start=22723 + _globals['_READSEQUENCERFLAGREQUEST']._serialized_end=22799 + _globals['_READSEQUENCERFLAGRESPONSE']._serialized_start=22801 + _globals['_READSEQUENCERFLAGRESPONSE']._serialized_end=22859 + _globals['_WRITESEQUENCERREGISTERREQUEST']._serialized_start=22861 + _globals['_WRITESEQUENCERREGISTERREQUEST']._serialized_end=22956 + _globals['_WRITESEQUENCERREGISTERRESPONSE']._serialized_start=22958 + _globals['_WRITESEQUENCERREGISTERRESPONSE']._serialized_end=23006 + _globals['_READSEQUENCERREGISTERREQUEST']._serialized_start=23008 + _globals['_READSEQUENCERREGISTERREQUEST']._serialized_end=23087 + _globals['_READSEQUENCERREGISTERRESPONSE']._serialized_start=23089 + _globals['_READSEQUENCERREGISTERRESPONSE']._serialized_end=23151 + _globals['_ENABLEMATCHFAILCOMBINATIONREQUEST']._serialized_start=23154 + _globals['_ENABLEMATCHFAILCOMBINATIONREQUEST']._serialized_end=23300 + _globals['_ENABLEMATCHFAILCOMBINATIONRESPONSE']._serialized_start=23302 + _globals['_ENABLEMATCHFAILCOMBINATIONRESPONSE']._serialized_end=23354 + _globals['_GETSITEPASSFAILREQUEST']._serialized_start=23356 + _globals['_GETSITEPASSFAILREQUEST']._serialized_end=23435 + _globals['_GETSITEPASSFAILRESPONSE']._serialized_start=23437 + _globals['_GETSITEPASSFAILRESPONSE']._serialized_end=23523 + _globals['_GETFAILCOUNTREQUEST']._serialized_start=23525 + _globals['_GETFAILCOUNTREQUEST']._serialized_end=23604 + _globals['_GETFAILCOUNTRESPONSE']._serialized_start=23606 + _globals['_GETFAILCOUNTRESPONSE']._serialized_end=23692 + _globals['_GETPINRESULTSPININFORMATIONREQUEST']._serialized_start=23694 + _globals['_GETPINRESULTSPININFORMATIONREQUEST']._serialized_end=23788 + _globals['_GETPINRESULTSPININFORMATIONRESPONSE']._serialized_start=23791 + _globals['_GETPINRESULTSPININFORMATIONRESPONSE']._serialized_end=23939 + _globals['_GETSITERESULTSSITENUMBERSREQUEST']._serialized_start=23942 + _globals['_GETSITERESULTSSITENUMBERSREQUEST']._serialized_end=24155 + _globals['_GETSITERESULTSSITENUMBERSRESPONSE']._serialized_start=24157 + _globals['_GETSITERESULTSSITENUMBERSRESPONSE']._serialized_end=24263 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMEREQUEST']._serialized_start=24266 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMEREQUEST']._serialized_end=24399 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMERESPONSE']._serialized_start=24401 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTTIMERESPONSE']._serialized_end=24467 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODEREQUEST']._serialized_start=24470 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODEREQUEST']._serialized_end=24689 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODERESPONSE']._serialized_start=24691 + _globals['_FREQUENCYCOUNTERCONFIGUREMEASUREMENTMODERESPONSE']._serialized_end=24757 + _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYREQUEST']._serialized_start=24759 + _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYREQUEST']._serialized_end=24858 + _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYRESPONSE']._serialized_start=24860 + _globals['_FREQUENCYCOUNTERMEASUREFREQUENCYRESPONSE']._serialized_end=24971 + _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_start=24973 + _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_end=25059 + _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_start=25061 + _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_end=25126 + _globals['_NIDIGITAL']._serialized_start=35105 + _globals['_NIDIGITAL']._serialized_end=52209 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py b/generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py new file mode 100644 index 0000000000..b19dea54dc --- /dev/null +++ b/generated/nidigital/nidigital/nidigitalpattern_pb2_grpc.py @@ -0,0 +1,4323 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nidigitalpattern_pb2 as nidigitalpattern__pb2 + + +class NiDigitalStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Init = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/Init', + request_serializer=nidigitalpattern__pb2.InitRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/InitWithOptions', + request_serializer=nidigitalpattern__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.InitWithOptionsResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/Close', + request_serializer=nidigitalpattern__pb2.CloseRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CloseResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/Reset', + request_serializer=nidigitalpattern__pb2.ResetRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ResetResponse.FromString, + ) + self.ResetDevice = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ResetDevice', + request_serializer=nidigitalpattern__pb2.ResetDeviceRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ResetDeviceResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SelfTest', + request_serializer=nidigitalpattern__pb2.SelfTestRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SelfTestResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetError', + request_serializer=nidigitalpattern__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetErrorResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ClearError', + request_serializer=nidigitalpattern__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ClearErrorResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ErrorMessage', + request_serializer=nidigitalpattern__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ErrorMessageResponse.FromString, + ) + self.SelfCalibrate = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SelfCalibrate', + request_serializer=nidigitalpattern__pb2.SelfCalibrateRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SelfCalibrateResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt32', + request_serializer=nidigitalpattern__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt64', + request_serializer=nidigitalpattern__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetAttributeViInt64Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetAttributeViReal64', + request_serializer=nidigitalpattern__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetAttributeViString', + request_serializer=nidigitalpattern__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetAttributeViSession', + request_serializer=nidigitalpattern__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetAttributeViSessionResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetAttributeViBoolean', + request_serializer=nidigitalpattern__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt32', + request_serializer=nidigitalpattern__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt64', + request_serializer=nidigitalpattern__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SetAttributeViInt64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SetAttributeViReal64', + request_serializer=nidigitalpattern__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SetAttributeViString', + request_serializer=nidigitalpattern__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SetAttributeViStringResponse.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SetAttributeViSession', + request_serializer=nidigitalpattern__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SetAttributeViBoolean', + request_serializer=nidigitalpattern__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.ResetAttribute = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ResetAttribute', + request_serializer=nidigitalpattern__pb2.ResetAttributeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ResetAttributeResponse.FromString, + ) + self.LoadPinMap = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/LoadPinMap', + request_serializer=nidigitalpattern__pb2.LoadPinMapRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.LoadPinMapResponse.FromString, + ) + self.EnableSites = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/EnableSites', + request_serializer=nidigitalpattern__pb2.EnableSitesRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.EnableSitesResponse.FromString, + ) + self.DisableSites = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/DisableSites', + request_serializer=nidigitalpattern__pb2.DisableSitesRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.DisableSitesResponse.FromString, + ) + self.IsSiteEnabled = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/IsSiteEnabled', + request_serializer=nidigitalpattern__pb2.IsSiteEnabledRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.IsSiteEnabledResponse.FromString, + ) + self.CreatePinMap = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreatePinMap', + request_serializer=nidigitalpattern__pb2.CreatePinMapRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreatePinMapResponse.FromString, + ) + self.CreatePinGroup = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreatePinGroup', + request_serializer=nidigitalpattern__pb2.CreatePinGroupRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreatePinGroupResponse.FromString, + ) + self.CreateChannelMap = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateChannelMap', + request_serializer=nidigitalpattern__pb2.CreateChannelMapRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateChannelMapResponse.FromString, + ) + self.MapPinToChannel = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/MapPinToChannel', + request_serializer=nidigitalpattern__pb2.MapPinToChannelRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.MapPinToChannelResponse.FromString, + ) + self.EndChannelMap = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/EndChannelMap', + request_serializer=nidigitalpattern__pb2.EndChannelMapRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.EndChannelMapResponse.FromString, + ) + self.GetPinName = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetPinName', + request_serializer=nidigitalpattern__pb2.GetPinNameRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetPinNameResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetChannelName', + request_serializer=nidigitalpattern__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetChannelNameResponse.FromString, + ) + self.SelectFunction = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SelectFunction', + request_serializer=nidigitalpattern__pb2.SelectFunctionRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SelectFunctionResponse.FromString, + ) + self.ReadStatic = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ReadStatic', + request_serializer=nidigitalpattern__pb2.ReadStaticRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ReadStaticResponse.FromString, + ) + self.WriteStatic = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteStatic', + request_serializer=nidigitalpattern__pb2.WriteStaticRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteStaticResponse.FromString, + ) + self.ClockGeneratorGenerateClock = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ClockGeneratorGenerateClock', + request_serializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockResponse.FromString, + ) + self.ClockGeneratorInitiate = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ClockGeneratorInitiate', + request_serializer=nidigitalpattern__pb2.ClockGeneratorInitiateRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ClockGeneratorInitiateResponse.FromString, + ) + self.ClockGeneratorAbort = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ClockGeneratorAbort', + request_serializer=nidigitalpattern__pb2.ClockGeneratorAbortRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ClockGeneratorAbortResponse.FromString, + ) + self.LoadSpecifications = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/LoadSpecifications', + request_serializer=nidigitalpattern__pb2.LoadSpecificationsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.LoadSpecificationsResponse.FromString, + ) + self.UnloadSpecifications = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/UnloadSpecifications', + request_serializer=nidigitalpattern__pb2.UnloadSpecificationsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.UnloadSpecificationsResponse.FromString, + ) + self.LoadLevels = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/LoadLevels', + request_serializer=nidigitalpattern__pb2.LoadLevelsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.LoadLevelsResponse.FromString, + ) + self.LoadTiming = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/LoadTiming', + request_serializer=nidigitalpattern__pb2.LoadTimingRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.LoadTimingResponse.FromString, + ) + self.ApplyLevelsAndTiming = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ApplyLevelsAndTiming', + request_serializer=nidigitalpattern__pb2.ApplyLevelsAndTimingRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ApplyLevelsAndTimingResponse.FromString, + ) + self.ConfigureVoltageLevels = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureVoltageLevels', + request_serializer=nidigitalpattern__pb2.ConfigureVoltageLevelsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureVoltageLevelsResponse.FromString, + ) + self.ConfigureActiveLoadLevels = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureActiveLoadLevels', + request_serializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsResponse.FromString, + ) + self.ConfigureTerminationMode = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTerminationMode', + request_serializer=nidigitalpattern__pb2.ConfigureTerminationModeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTerminationModeResponse.FromString, + ) + self.CreateTimeSet = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateTimeSet', + request_serializer=nidigitalpattern__pb2.CreateTimeSetRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateTimeSetResponse.FromString, + ) + self.ConfigureTimeSetPeriod = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetPeriod', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodResponse.FromString, + ) + self.ConfigureTimeSetDriveEdges = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesResponse.FromString, + ) + self.ConfigureTimeSetCompareEdgesStrobe = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeResponse.FromString, + ) + self.ConfigureTimeSetDriveFormat = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveFormat', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatResponse.FromString, + ) + self.DeleteAllTimeSets = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/DeleteAllTimeSets', + request_serializer=nidigitalpattern__pb2.DeleteAllTimeSetsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.DeleteAllTimeSetsResponse.FromString, + ) + self.ConfigureTimeSetEdgeMultiplier = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdgeMultiplier', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierResponse.FromString, + ) + self.ConfigureTimeSetDriveEdges2x = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges2x', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xResponse.FromString, + ) + self.ConfigureTimeSetCompareEdgesStrobe2x = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe2x', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xResponse.FromString, + ) + self.ConfigureTimeSetEdge = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdge', + request_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeResponse.FromString, + ) + self.GetTimeSetPeriod = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetTimeSetPeriod', + request_serializer=nidigitalpattern__pb2.GetTimeSetPeriodRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetTimeSetPeriodResponse.FromString, + ) + self.GetTimeSetEdge = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdge', + request_serializer=nidigitalpattern__pb2.GetTimeSetEdgeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeResponse.FromString, + ) + self.GetTimeSetEdgeMultiplier = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdgeMultiplier', + request_serializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierResponse.FromString, + ) + self.GetTimeSetDriveFormat = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetTimeSetDriveFormat', + request_serializer=nidigitalpattern__pb2.GetTimeSetDriveFormatRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetTimeSetDriveFormatResponse.FromString, + ) + self.GetTimeSetName = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetTimeSetName', + request_serializer=nidigitalpattern__pb2.GetTimeSetNameRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetTimeSetNameResponse.FromString, + ) + self.TDR = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/TDR', + request_serializer=nidigitalpattern__pb2.TDRRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.TDRResponse.FromString, + ) + self.ApplyTDROffsets = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ApplyTDROffsets', + request_serializer=nidigitalpattern__pb2.ApplyTDROffsetsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ApplyTDROffsetsResponse.FromString, + ) + self.PPMUConfigureOutputFunction = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureOutputFunction', + request_serializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionResponse.FromString, + ) + self.PPMUConfigureApertureTime = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureApertureTime', + request_serializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeResponse.FromString, + ) + self.PPMUConfigureVoltageLevel = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLevel', + request_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelResponse.FromString, + ) + self.PPMUConfigureCurrentLimit = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimit', + request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitResponse.FromString, + ) + self.PPMUConfigureCurrentLimitRange = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimitRange', + request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeResponse.FromString, + ) + self.PPMUConfigureCurrentLevel = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevel', + request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelResponse.FromString, + ) + self.PPMUConfigureCurrentLevelRange = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevelRange', + request_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeResponse.FromString, + ) + self.PPMUConfigureVoltageLimits = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLimits', + request_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsResponse.FromString, + ) + self.PPMUSource = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUSource', + request_serializer=nidigitalpattern__pb2.PPMUSourceRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUSourceResponse.FromString, + ) + self.PPMUMeasure = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/PPMUMeasure', + request_serializer=nidigitalpattern__pb2.PPMUMeasureRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.PPMUMeasureResponse.FromString, + ) + self.LoadPattern = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/LoadPattern', + request_serializer=nidigitalpattern__pb2.LoadPatternRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.LoadPatternResponse.FromString, + ) + self.UnloadAllPatterns = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/UnloadAllPatterns', + request_serializer=nidigitalpattern__pb2.UnloadAllPatternsRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.UnloadAllPatternsResponse.FromString, + ) + self.ConfigureStartLabel = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureStartLabel', + request_serializer=nidigitalpattern__pb2.ConfigureStartLabelRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureStartLabelResponse.FromString, + ) + self.ConfigurePatternBurstSites = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigurePatternBurstSites', + request_serializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesResponse.FromString, + ) + self.GetPatternPinIndexes = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetPatternPinIndexes', + request_serializer=nidigitalpattern__pb2.GetPatternPinIndexesRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetPatternPinIndexesResponse.FromString, + ) + self.GetPatternPinList = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetPatternPinList', + request_serializer=nidigitalpattern__pb2.GetPatternPinListRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetPatternPinListResponse.FromString, + ) + self.GetPatternName = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetPatternName', + request_serializer=nidigitalpattern__pb2.GetPatternNameRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetPatternNameResponse.FromString, + ) + self.BurstPattern = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/BurstPattern', + request_serializer=nidigitalpattern__pb2.BurstPatternRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.BurstPatternResponse.FromString, + ) + self.BurstPatternSynchronized = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/BurstPatternSynchronized', + request_serializer=nidigitalpattern__pb2.BurstPatternSynchronizedRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.BurstPatternSynchronizedResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/Commit', + request_serializer=nidigitalpattern__pb2.CommitRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CommitResponse.FromString, + ) + self.Initiate = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/Initiate', + request_serializer=nidigitalpattern__pb2.InitiateRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.InitiateResponse.FromString, + ) + self.IsDone = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/IsDone', + request_serializer=nidigitalpattern__pb2.IsDoneRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.IsDoneResponse.FromString, + ) + self.WaitUntilDone = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WaitUntilDone', + request_serializer=nidigitalpattern__pb2.WaitUntilDoneRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WaitUntilDoneResponse.FromString, + ) + self.Abort = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/Abort', + request_serializer=nidigitalpattern__pb2.AbortRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.AbortResponse.FromString, + ) + self.AbortKeepAlive = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/AbortKeepAlive', + request_serializer=nidigitalpattern__pb2.AbortKeepAliveRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.AbortKeepAliveResponse.FromString, + ) + self.ConfigurePatternLabelHistoryRAMTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigurePatternLabelHistoryRAMTrigger', + request_serializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerResponse.FromString, + ) + self.ConfigureCycleNumberHistoryRAMTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureCycleNumberHistoryRAMTrigger', + request_serializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerResponse.FromString, + ) + self.ConfigureFirstFailureHistoryRAMTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureFirstFailureHistoryRAMTrigger', + request_serializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerResponse.FromString, + ) + self.ConfigureHistoryRAMCyclesToAcquire = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureHistoryRAMCyclesToAcquire', + request_serializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireResponse.FromString, + ) + self.GetHistoryRAMSampleCount = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetHistoryRAMSampleCount', + request_serializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountResponse.FromString, + ) + self.FetchHistoryRAMCycleInformation = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCycleInformation', + request_serializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationResponse.FromString, + ) + self.FetchHistoryRAMCyclePinData = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCyclePinData', + request_serializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataResponse.FromString, + ) + self.FetchHistoryRAMScanCycleNumber = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMScanCycleNumber', + request_serializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberResponse.FromString, + ) + self.CreateSourceWaveformParallel = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformParallel', + request_serializer=nidigitalpattern__pb2.CreateSourceWaveformParallelRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateSourceWaveformParallelResponse.FromString, + ) + self.CreateSourceWaveformSerial = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformSerial', + request_serializer=nidigitalpattern__pb2.CreateSourceWaveformSerialRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateSourceWaveformSerialResponse.FromString, + ) + self.CreateSourceWaveformFromFileTDMS = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformFromFileTDMS', + request_serializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSResponse.FromString, + ) + self.WriteSourceWaveformBroadcastU32 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformBroadcastU32', + request_serializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Response.FromString, + ) + self.WriteSourceWaveformSiteUniqueU32 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformSiteUniqueU32', + request_serializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Response.FromString, + ) + self.WriteSourceWaveformDataFromFileTDMS = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformDataFromFileTDMS', + request_serializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSResponse.FromString, + ) + self.CreateCaptureWaveformParallel = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformParallel', + request_serializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelResponse.FromString, + ) + self.CreateCaptureWaveformSerial = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformSerial', + request_serializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialResponse.FromString, + ) + self.CreateCaptureWaveformFromFileDigicapture = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformFromFileDigicapture', + request_serializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureResponse.FromString, + ) + self.FetchCaptureWaveformU32 = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FetchCaptureWaveformU32', + request_serializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Request.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Response.FromString, + ) + self.ExportSignal = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ExportSignal', + request_serializer=nidigitalpattern__pb2.ExportSignalRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ExportSignalResponse.FromString, + ) + self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeStartTrigger', + request_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeStartTrigger', + request_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + ) + self.DisableStartTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/DisableStartTrigger', + request_serializer=nidigitalpattern__pb2.DisableStartTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.DisableStartTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeConditionalJumpTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeConditionalJumpTrigger', + request_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeConditionalJumpTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeConditionalJumpTrigger', + request_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerResponse.FromString, + ) + self.DisableConditionalJumpTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/DisableConditionalJumpTrigger', + request_serializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerResponse.FromString, + ) + self.SendSoftwareEdgeTrigger = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/SendSoftwareEdgeTrigger', + request_serializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerResponse.FromString, + ) + self.WriteSequencerFlag = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlag', + request_serializer=nidigitalpattern__pb2.WriteSequencerFlagRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteSequencerFlagResponse.FromString, + ) + self.WriteSequencerFlagSynchronized = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlagSynchronized', + request_serializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedResponse.FromString, + ) + self.ReadSequencerFlag = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ReadSequencerFlag', + request_serializer=nidigitalpattern__pb2.ReadSequencerFlagRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ReadSequencerFlagResponse.FromString, + ) + self.WriteSequencerRegister = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/WriteSequencerRegister', + request_serializer=nidigitalpattern__pb2.WriteSequencerRegisterRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.WriteSequencerRegisterResponse.FromString, + ) + self.ReadSequencerRegister = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/ReadSequencerRegister', + request_serializer=nidigitalpattern__pb2.ReadSequencerRegisterRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.ReadSequencerRegisterResponse.FromString, + ) + self.EnableMatchFailCombination = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/EnableMatchFailCombination', + request_serializer=nidigitalpattern__pb2.EnableMatchFailCombinationRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.EnableMatchFailCombinationResponse.FromString, + ) + self.GetSitePassFail = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetSitePassFail', + request_serializer=nidigitalpattern__pb2.GetSitePassFailRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetSitePassFailResponse.FromString, + ) + self.GetFailCount = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetFailCount', + request_serializer=nidigitalpattern__pb2.GetFailCountRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetFailCountResponse.FromString, + ) + self.GetPinResultsPinInformation = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetPinResultsPinInformation', + request_serializer=nidigitalpattern__pb2.GetPinResultsPinInformationRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetPinResultsPinInformationResponse.FromString, + ) + self.GetSiteResultsSiteNumbers = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetSiteResultsSiteNumbers', + request_serializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersResponse.FromString, + ) + self.FrequencyCounterConfigureMeasurementTime = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementTime', + request_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeResponse.FromString, + ) + self.FrequencyCounterConfigureMeasurementMode = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementMode', + request_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeResponse.FromString, + ) + self.FrequencyCounterMeasureFrequency = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/FrequencyCounterMeasureFrequency', + request_serializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyResponse.FromString, + ) + self.GetChannelNameFromString = channel.unary_unary( + '/nidigitalpattern_grpc.NiDigital/GetChannelNameFromString', + request_serializer=nidigitalpattern__pb2.GetChannelNameFromStringRequest.SerializeToString, + response_deserializer=nidigitalpattern__pb2.GetChannelNameFromStringResponse.FromString, + ) + + +class NiDigitalServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetDevice(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCalibrate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadPinMap(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnableSites(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableSites(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsSiteEnabled(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreatePinMap(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreatePinGroup(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateChannelMap(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MapPinToChannel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EndChannelMap(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPinName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelectFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadStatic(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteStatic(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClockGeneratorGenerateClock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClockGeneratorInitiate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClockGeneratorAbort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadSpecifications(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnloadSpecifications(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadLevels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadTiming(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ApplyLevelsAndTiming(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureVoltageLevels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureActiveLoadLevels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTerminationMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateTimeSet(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetPeriod(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetDriveEdges(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetCompareEdgesStrobe(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetDriveFormat(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAllTimeSets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetEdgeMultiplier(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetDriveEdges2x(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetCompareEdgesStrobe2x(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTimeSetEdge(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTimeSetPeriod(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTimeSetEdge(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTimeSetEdgeMultiplier(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTimeSetDriveFormat(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTimeSetName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TDR(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ApplyTDROffsets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureOutputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureApertureTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureVoltageLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureCurrentLimit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureCurrentLimitRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureCurrentLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureCurrentLevelRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUConfigureVoltageLimits(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUSource(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PPMUMeasure(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadPattern(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UnloadAllPatterns(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureStartLabel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePatternBurstSites(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPatternPinIndexes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPatternPinList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPatternName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BurstPattern(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BurstPatternSynchronized(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Initiate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsDone(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitUntilDone(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AbortKeepAlive(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePatternLabelHistoryRAMTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCycleNumberHistoryRAMTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureFirstFailureHistoryRAMTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureHistoryRAMCyclesToAcquire(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetHistoryRAMSampleCount(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchHistoryRAMCycleInformation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchHistoryRAMCyclePinData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchHistoryRAMScanCycleNumber(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateSourceWaveformParallel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateSourceWaveformSerial(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateSourceWaveformFromFileTDMS(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteSourceWaveformBroadcastU32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteSourceWaveformSiteUniqueU32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteSourceWaveformDataFromFileTDMS(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateCaptureWaveformParallel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateCaptureWaveformSerial(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateCaptureWaveformFromFileDigicapture(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchCaptureWaveformU32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeConditionalJumpTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeConditionalJumpTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableConditionalJumpTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareEdgeTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteSequencerFlag(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteSequencerFlagSynchronized(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadSequencerFlag(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteSequencerRegister(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadSequencerRegister(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnableMatchFailCombination(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSitePassFail(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetFailCount(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPinResultsPinInformation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSiteResultsSiteNumbers(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FrequencyCounterConfigureMeasurementTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FrequencyCounterConfigureMeasurementMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FrequencyCounterMeasureFrequency(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelNameFromString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiDigitalServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=nidigitalpattern__pb2.InitRequest.FromString, + response_serializer=nidigitalpattern__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=nidigitalpattern__pb2.InitWithOptionsRequest.FromString, + response_serializer=nidigitalpattern__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nidigitalpattern__pb2.CloseRequest.FromString, + response_serializer=nidigitalpattern__pb2.CloseResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=nidigitalpattern__pb2.ResetRequest.FromString, + response_serializer=nidigitalpattern__pb2.ResetResponse.SerializeToString, + ), + 'ResetDevice': grpc.unary_unary_rpc_method_handler( + servicer.ResetDevice, + request_deserializer=nidigitalpattern__pb2.ResetDeviceRequest.FromString, + response_serializer=nidigitalpattern__pb2.ResetDeviceResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=nidigitalpattern__pb2.SelfTestRequest.FromString, + response_serializer=nidigitalpattern__pb2.SelfTestResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nidigitalpattern__pb2.GetErrorRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetErrorResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=nidigitalpattern__pb2.ClearErrorRequest.FromString, + response_serializer=nidigitalpattern__pb2.ClearErrorResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=nidigitalpattern__pb2.ErrorMessageRequest.FromString, + response_serializer=nidigitalpattern__pb2.ErrorMessageResponse.SerializeToString, + ), + 'SelfCalibrate': grpc.unary_unary_rpc_method_handler( + servicer.SelfCalibrate, + request_deserializer=nidigitalpattern__pb2.SelfCalibrateRequest.FromString, + response_serializer=nidigitalpattern__pb2.SelfCalibrateResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nidigitalpattern__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nidigitalpattern__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=nidigitalpattern__pb2.GetAttributeViInt64Request.FromString, + response_serializer=nidigitalpattern__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nidigitalpattern__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nidigitalpattern__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nidigitalpattern__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nidigitalpattern__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nidigitalpattern__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nidigitalpattern__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nidigitalpattern__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=nidigitalpattern__pb2.SetAttributeViInt64Request.FromString, + response_serializer=nidigitalpattern__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nidigitalpattern__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nidigitalpattern__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nidigitalpattern__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nidigitalpattern__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=nidigitalpattern__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=nidigitalpattern__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nidigitalpattern__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nidigitalpattern__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'ResetAttribute': grpc.unary_unary_rpc_method_handler( + servicer.ResetAttribute, + request_deserializer=nidigitalpattern__pb2.ResetAttributeRequest.FromString, + response_serializer=nidigitalpattern__pb2.ResetAttributeResponse.SerializeToString, + ), + 'LoadPinMap': grpc.unary_unary_rpc_method_handler( + servicer.LoadPinMap, + request_deserializer=nidigitalpattern__pb2.LoadPinMapRequest.FromString, + response_serializer=nidigitalpattern__pb2.LoadPinMapResponse.SerializeToString, + ), + 'EnableSites': grpc.unary_unary_rpc_method_handler( + servicer.EnableSites, + request_deserializer=nidigitalpattern__pb2.EnableSitesRequest.FromString, + response_serializer=nidigitalpattern__pb2.EnableSitesResponse.SerializeToString, + ), + 'DisableSites': grpc.unary_unary_rpc_method_handler( + servicer.DisableSites, + request_deserializer=nidigitalpattern__pb2.DisableSitesRequest.FromString, + response_serializer=nidigitalpattern__pb2.DisableSitesResponse.SerializeToString, + ), + 'IsSiteEnabled': grpc.unary_unary_rpc_method_handler( + servicer.IsSiteEnabled, + request_deserializer=nidigitalpattern__pb2.IsSiteEnabledRequest.FromString, + response_serializer=nidigitalpattern__pb2.IsSiteEnabledResponse.SerializeToString, + ), + 'CreatePinMap': grpc.unary_unary_rpc_method_handler( + servicer.CreatePinMap, + request_deserializer=nidigitalpattern__pb2.CreatePinMapRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreatePinMapResponse.SerializeToString, + ), + 'CreatePinGroup': grpc.unary_unary_rpc_method_handler( + servicer.CreatePinGroup, + request_deserializer=nidigitalpattern__pb2.CreatePinGroupRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreatePinGroupResponse.SerializeToString, + ), + 'CreateChannelMap': grpc.unary_unary_rpc_method_handler( + servicer.CreateChannelMap, + request_deserializer=nidigitalpattern__pb2.CreateChannelMapRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateChannelMapResponse.SerializeToString, + ), + 'MapPinToChannel': grpc.unary_unary_rpc_method_handler( + servicer.MapPinToChannel, + request_deserializer=nidigitalpattern__pb2.MapPinToChannelRequest.FromString, + response_serializer=nidigitalpattern__pb2.MapPinToChannelResponse.SerializeToString, + ), + 'EndChannelMap': grpc.unary_unary_rpc_method_handler( + servicer.EndChannelMap, + request_deserializer=nidigitalpattern__pb2.EndChannelMapRequest.FromString, + response_serializer=nidigitalpattern__pb2.EndChannelMapResponse.SerializeToString, + ), + 'GetPinName': grpc.unary_unary_rpc_method_handler( + servicer.GetPinName, + request_deserializer=nidigitalpattern__pb2.GetPinNameRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetPinNameResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=nidigitalpattern__pb2.GetChannelNameRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetChannelNameResponse.SerializeToString, + ), + 'SelectFunction': grpc.unary_unary_rpc_method_handler( + servicer.SelectFunction, + request_deserializer=nidigitalpattern__pb2.SelectFunctionRequest.FromString, + response_serializer=nidigitalpattern__pb2.SelectFunctionResponse.SerializeToString, + ), + 'ReadStatic': grpc.unary_unary_rpc_method_handler( + servicer.ReadStatic, + request_deserializer=nidigitalpattern__pb2.ReadStaticRequest.FromString, + response_serializer=nidigitalpattern__pb2.ReadStaticResponse.SerializeToString, + ), + 'WriteStatic': grpc.unary_unary_rpc_method_handler( + servicer.WriteStatic, + request_deserializer=nidigitalpattern__pb2.WriteStaticRequest.FromString, + response_serializer=nidigitalpattern__pb2.WriteStaticResponse.SerializeToString, + ), + 'ClockGeneratorGenerateClock': grpc.unary_unary_rpc_method_handler( + servicer.ClockGeneratorGenerateClock, + request_deserializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockRequest.FromString, + response_serializer=nidigitalpattern__pb2.ClockGeneratorGenerateClockResponse.SerializeToString, + ), + 'ClockGeneratorInitiate': grpc.unary_unary_rpc_method_handler( + servicer.ClockGeneratorInitiate, + request_deserializer=nidigitalpattern__pb2.ClockGeneratorInitiateRequest.FromString, + response_serializer=nidigitalpattern__pb2.ClockGeneratorInitiateResponse.SerializeToString, + ), + 'ClockGeneratorAbort': grpc.unary_unary_rpc_method_handler( + servicer.ClockGeneratorAbort, + request_deserializer=nidigitalpattern__pb2.ClockGeneratorAbortRequest.FromString, + response_serializer=nidigitalpattern__pb2.ClockGeneratorAbortResponse.SerializeToString, + ), + 'LoadSpecifications': grpc.unary_unary_rpc_method_handler( + servicer.LoadSpecifications, + request_deserializer=nidigitalpattern__pb2.LoadSpecificationsRequest.FromString, + response_serializer=nidigitalpattern__pb2.LoadSpecificationsResponse.SerializeToString, + ), + 'UnloadSpecifications': grpc.unary_unary_rpc_method_handler( + servicer.UnloadSpecifications, + request_deserializer=nidigitalpattern__pb2.UnloadSpecificationsRequest.FromString, + response_serializer=nidigitalpattern__pb2.UnloadSpecificationsResponse.SerializeToString, + ), + 'LoadLevels': grpc.unary_unary_rpc_method_handler( + servicer.LoadLevels, + request_deserializer=nidigitalpattern__pb2.LoadLevelsRequest.FromString, + response_serializer=nidigitalpattern__pb2.LoadLevelsResponse.SerializeToString, + ), + 'LoadTiming': grpc.unary_unary_rpc_method_handler( + servicer.LoadTiming, + request_deserializer=nidigitalpattern__pb2.LoadTimingRequest.FromString, + response_serializer=nidigitalpattern__pb2.LoadTimingResponse.SerializeToString, + ), + 'ApplyLevelsAndTiming': grpc.unary_unary_rpc_method_handler( + servicer.ApplyLevelsAndTiming, + request_deserializer=nidigitalpattern__pb2.ApplyLevelsAndTimingRequest.FromString, + response_serializer=nidigitalpattern__pb2.ApplyLevelsAndTimingResponse.SerializeToString, + ), + 'ConfigureVoltageLevels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureVoltageLevels, + request_deserializer=nidigitalpattern__pb2.ConfigureVoltageLevelsRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureVoltageLevelsResponse.SerializeToString, + ), + 'ConfigureActiveLoadLevels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureActiveLoadLevels, + request_deserializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureActiveLoadLevelsResponse.SerializeToString, + ), + 'ConfigureTerminationMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTerminationMode, + request_deserializer=nidigitalpattern__pb2.ConfigureTerminationModeRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTerminationModeResponse.SerializeToString, + ), + 'CreateTimeSet': grpc.unary_unary_rpc_method_handler( + servicer.CreateTimeSet, + request_deserializer=nidigitalpattern__pb2.CreateTimeSetRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateTimeSetResponse.SerializeToString, + ), + 'ConfigureTimeSetPeriod': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetPeriod, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetPeriodResponse.SerializeToString, + ), + 'ConfigureTimeSetDriveEdges': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetDriveEdges, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesResponse.SerializeToString, + ), + 'ConfigureTimeSetCompareEdgesStrobe': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetCompareEdgesStrobe, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeResponse.SerializeToString, + ), + 'ConfigureTimeSetDriveFormat': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetDriveFormat, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveFormatResponse.SerializeToString, + ), + 'DeleteAllTimeSets': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAllTimeSets, + request_deserializer=nidigitalpattern__pb2.DeleteAllTimeSetsRequest.FromString, + response_serializer=nidigitalpattern__pb2.DeleteAllTimeSetsResponse.SerializeToString, + ), + 'ConfigureTimeSetEdgeMultiplier': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetEdgeMultiplier, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierResponse.SerializeToString, + ), + 'ConfigureTimeSetDriveEdges2x': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetDriveEdges2x, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xResponse.SerializeToString, + ), + 'ConfigureTimeSetCompareEdgesStrobe2x': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetCompareEdgesStrobe2x, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xResponse.SerializeToString, + ), + 'ConfigureTimeSetEdge': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTimeSetEdge, + request_deserializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureTimeSetEdgeResponse.SerializeToString, + ), + 'GetTimeSetPeriod': grpc.unary_unary_rpc_method_handler( + servicer.GetTimeSetPeriod, + request_deserializer=nidigitalpattern__pb2.GetTimeSetPeriodRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetTimeSetPeriodResponse.SerializeToString, + ), + 'GetTimeSetEdge': grpc.unary_unary_rpc_method_handler( + servicer.GetTimeSetEdge, + request_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetTimeSetEdgeResponse.SerializeToString, + ), + 'GetTimeSetEdgeMultiplier': grpc.unary_unary_rpc_method_handler( + servicer.GetTimeSetEdgeMultiplier, + request_deserializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetTimeSetEdgeMultiplierResponse.SerializeToString, + ), + 'GetTimeSetDriveFormat': grpc.unary_unary_rpc_method_handler( + servicer.GetTimeSetDriveFormat, + request_deserializer=nidigitalpattern__pb2.GetTimeSetDriveFormatRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetTimeSetDriveFormatResponse.SerializeToString, + ), + 'GetTimeSetName': grpc.unary_unary_rpc_method_handler( + servicer.GetTimeSetName, + request_deserializer=nidigitalpattern__pb2.GetTimeSetNameRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetTimeSetNameResponse.SerializeToString, + ), + 'TDR': grpc.unary_unary_rpc_method_handler( + servicer.TDR, + request_deserializer=nidigitalpattern__pb2.TDRRequest.FromString, + response_serializer=nidigitalpattern__pb2.TDRResponse.SerializeToString, + ), + 'ApplyTDROffsets': grpc.unary_unary_rpc_method_handler( + servicer.ApplyTDROffsets, + request_deserializer=nidigitalpattern__pb2.ApplyTDROffsetsRequest.FromString, + response_serializer=nidigitalpattern__pb2.ApplyTDROffsetsResponse.SerializeToString, + ), + 'PPMUConfigureOutputFunction': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureOutputFunction, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureOutputFunctionResponse.SerializeToString, + ), + 'PPMUConfigureApertureTime': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureApertureTime, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureApertureTimeResponse.SerializeToString, + ), + 'PPMUConfigureVoltageLevel': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureVoltageLevel, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLevelResponse.SerializeToString, + ), + 'PPMUConfigureCurrentLimit': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureCurrentLimit, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitResponse.SerializeToString, + ), + 'PPMUConfigureCurrentLimitRange': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureCurrentLimitRange, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeResponse.SerializeToString, + ), + 'PPMUConfigureCurrentLevel': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureCurrentLevel, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelResponse.SerializeToString, + ), + 'PPMUConfigureCurrentLevelRange': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureCurrentLevelRange, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeResponse.SerializeToString, + ), + 'PPMUConfigureVoltageLimits': grpc.unary_unary_rpc_method_handler( + servicer.PPMUConfigureVoltageLimits, + request_deserializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUConfigureVoltageLimitsResponse.SerializeToString, + ), + 'PPMUSource': grpc.unary_unary_rpc_method_handler( + servicer.PPMUSource, + request_deserializer=nidigitalpattern__pb2.PPMUSourceRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUSourceResponse.SerializeToString, + ), + 'PPMUMeasure': grpc.unary_unary_rpc_method_handler( + servicer.PPMUMeasure, + request_deserializer=nidigitalpattern__pb2.PPMUMeasureRequest.FromString, + response_serializer=nidigitalpattern__pb2.PPMUMeasureResponse.SerializeToString, + ), + 'LoadPattern': grpc.unary_unary_rpc_method_handler( + servicer.LoadPattern, + request_deserializer=nidigitalpattern__pb2.LoadPatternRequest.FromString, + response_serializer=nidigitalpattern__pb2.LoadPatternResponse.SerializeToString, + ), + 'UnloadAllPatterns': grpc.unary_unary_rpc_method_handler( + servicer.UnloadAllPatterns, + request_deserializer=nidigitalpattern__pb2.UnloadAllPatternsRequest.FromString, + response_serializer=nidigitalpattern__pb2.UnloadAllPatternsResponse.SerializeToString, + ), + 'ConfigureStartLabel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureStartLabel, + request_deserializer=nidigitalpattern__pb2.ConfigureStartLabelRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureStartLabelResponse.SerializeToString, + ), + 'ConfigurePatternBurstSites': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePatternBurstSites, + request_deserializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigurePatternBurstSitesResponse.SerializeToString, + ), + 'GetPatternPinIndexes': grpc.unary_unary_rpc_method_handler( + servicer.GetPatternPinIndexes, + request_deserializer=nidigitalpattern__pb2.GetPatternPinIndexesRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetPatternPinIndexesResponse.SerializeToString, + ), + 'GetPatternPinList': grpc.unary_unary_rpc_method_handler( + servicer.GetPatternPinList, + request_deserializer=nidigitalpattern__pb2.GetPatternPinListRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetPatternPinListResponse.SerializeToString, + ), + 'GetPatternName': grpc.unary_unary_rpc_method_handler( + servicer.GetPatternName, + request_deserializer=nidigitalpattern__pb2.GetPatternNameRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetPatternNameResponse.SerializeToString, + ), + 'BurstPattern': grpc.unary_unary_rpc_method_handler( + servicer.BurstPattern, + request_deserializer=nidigitalpattern__pb2.BurstPatternRequest.FromString, + response_serializer=nidigitalpattern__pb2.BurstPatternResponse.SerializeToString, + ), + 'BurstPatternSynchronized': grpc.unary_unary_rpc_method_handler( + servicer.BurstPatternSynchronized, + request_deserializer=nidigitalpattern__pb2.BurstPatternSynchronizedRequest.FromString, + response_serializer=nidigitalpattern__pb2.BurstPatternSynchronizedResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=nidigitalpattern__pb2.CommitRequest.FromString, + response_serializer=nidigitalpattern__pb2.CommitResponse.SerializeToString, + ), + 'Initiate': grpc.unary_unary_rpc_method_handler( + servicer.Initiate, + request_deserializer=nidigitalpattern__pb2.InitiateRequest.FromString, + response_serializer=nidigitalpattern__pb2.InitiateResponse.SerializeToString, + ), + 'IsDone': grpc.unary_unary_rpc_method_handler( + servicer.IsDone, + request_deserializer=nidigitalpattern__pb2.IsDoneRequest.FromString, + response_serializer=nidigitalpattern__pb2.IsDoneResponse.SerializeToString, + ), + 'WaitUntilDone': grpc.unary_unary_rpc_method_handler( + servicer.WaitUntilDone, + request_deserializer=nidigitalpattern__pb2.WaitUntilDoneRequest.FromString, + response_serializer=nidigitalpattern__pb2.WaitUntilDoneResponse.SerializeToString, + ), + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=nidigitalpattern__pb2.AbortRequest.FromString, + response_serializer=nidigitalpattern__pb2.AbortResponse.SerializeToString, + ), + 'AbortKeepAlive': grpc.unary_unary_rpc_method_handler( + servicer.AbortKeepAlive, + request_deserializer=nidigitalpattern__pb2.AbortKeepAliveRequest.FromString, + response_serializer=nidigitalpattern__pb2.AbortKeepAliveResponse.SerializeToString, + ), + 'ConfigurePatternLabelHistoryRAMTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePatternLabelHistoryRAMTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerResponse.SerializeToString, + ), + 'ConfigureCycleNumberHistoryRAMTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCycleNumberHistoryRAMTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerResponse.SerializeToString, + ), + 'ConfigureFirstFailureHistoryRAMTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureFirstFailureHistoryRAMTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerResponse.SerializeToString, + ), + 'ConfigureHistoryRAMCyclesToAcquire': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureHistoryRAMCyclesToAcquire, + request_deserializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireResponse.SerializeToString, + ), + 'GetHistoryRAMSampleCount': grpc.unary_unary_rpc_method_handler( + servicer.GetHistoryRAMSampleCount, + request_deserializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetHistoryRAMSampleCountResponse.SerializeToString, + ), + 'FetchHistoryRAMCycleInformation': grpc.unary_unary_rpc_method_handler( + servicer.FetchHistoryRAMCycleInformation, + request_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationRequest.FromString, + response_serializer=nidigitalpattern__pb2.FetchHistoryRAMCycleInformationResponse.SerializeToString, + ), + 'FetchHistoryRAMCyclePinData': grpc.unary_unary_rpc_method_handler( + servicer.FetchHistoryRAMCyclePinData, + request_deserializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataRequest.FromString, + response_serializer=nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataResponse.SerializeToString, + ), + 'FetchHistoryRAMScanCycleNumber': grpc.unary_unary_rpc_method_handler( + servicer.FetchHistoryRAMScanCycleNumber, + request_deserializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberRequest.FromString, + response_serializer=nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberResponse.SerializeToString, + ), + 'CreateSourceWaveformParallel': grpc.unary_unary_rpc_method_handler( + servicer.CreateSourceWaveformParallel, + request_deserializer=nidigitalpattern__pb2.CreateSourceWaveformParallelRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateSourceWaveformParallelResponse.SerializeToString, + ), + 'CreateSourceWaveformSerial': grpc.unary_unary_rpc_method_handler( + servicer.CreateSourceWaveformSerial, + request_deserializer=nidigitalpattern__pb2.CreateSourceWaveformSerialRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateSourceWaveformSerialResponse.SerializeToString, + ), + 'CreateSourceWaveformFromFileTDMS': grpc.unary_unary_rpc_method_handler( + servicer.CreateSourceWaveformFromFileTDMS, + request_deserializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSResponse.SerializeToString, + ), + 'WriteSourceWaveformBroadcastU32': grpc.unary_unary_rpc_method_handler( + servicer.WriteSourceWaveformBroadcastU32, + request_deserializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Request.FromString, + response_serializer=nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Response.SerializeToString, + ), + 'WriteSourceWaveformSiteUniqueU32': grpc.unary_unary_rpc_method_handler( + servicer.WriteSourceWaveformSiteUniqueU32, + request_deserializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Request.FromString, + response_serializer=nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Response.SerializeToString, + ), + 'WriteSourceWaveformDataFromFileTDMS': grpc.unary_unary_rpc_method_handler( + servicer.WriteSourceWaveformDataFromFileTDMS, + request_deserializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSRequest.FromString, + response_serializer=nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSResponse.SerializeToString, + ), + 'CreateCaptureWaveformParallel': grpc.unary_unary_rpc_method_handler( + servicer.CreateCaptureWaveformParallel, + request_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateCaptureWaveformParallelResponse.SerializeToString, + ), + 'CreateCaptureWaveformSerial': grpc.unary_unary_rpc_method_handler( + servicer.CreateCaptureWaveformSerial, + request_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateCaptureWaveformSerialResponse.SerializeToString, + ), + 'CreateCaptureWaveformFromFileDigicapture': grpc.unary_unary_rpc_method_handler( + servicer.CreateCaptureWaveformFromFileDigicapture, + request_deserializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureRequest.FromString, + response_serializer=nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureResponse.SerializeToString, + ), + 'FetchCaptureWaveformU32': grpc.unary_unary_rpc_method_handler( + servicer.FetchCaptureWaveformU32, + request_deserializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Request.FromString, + response_serializer=nidigitalpattern__pb2.FetchCaptureWaveformU32Response.SerializeToString, + ), + 'ExportSignal': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignal, + request_deserializer=nidigitalpattern__pb2.ExportSignalRequest.FromString, + response_serializer=nidigitalpattern__pb2.ExportSignalResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeStartTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeStartTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, + ), + 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableStartTrigger, + request_deserializer=nidigitalpattern__pb2.DisableStartTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.DisableStartTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeConditionalJumpTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeConditionalJumpTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeConditionalJumpTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeConditionalJumpTrigger, + request_deserializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerResponse.SerializeToString, + ), + 'DisableConditionalJumpTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableConditionalJumpTrigger, + request_deserializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.DisableConditionalJumpTriggerResponse.SerializeToString, + ), + 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareEdgeTrigger, + request_deserializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerRequest.FromString, + response_serializer=nidigitalpattern__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, + ), + 'WriteSequencerFlag': grpc.unary_unary_rpc_method_handler( + servicer.WriteSequencerFlag, + request_deserializer=nidigitalpattern__pb2.WriteSequencerFlagRequest.FromString, + response_serializer=nidigitalpattern__pb2.WriteSequencerFlagResponse.SerializeToString, + ), + 'WriteSequencerFlagSynchronized': grpc.unary_unary_rpc_method_handler( + servicer.WriteSequencerFlagSynchronized, + request_deserializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedRequest.FromString, + response_serializer=nidigitalpattern__pb2.WriteSequencerFlagSynchronizedResponse.SerializeToString, + ), + 'ReadSequencerFlag': grpc.unary_unary_rpc_method_handler( + servicer.ReadSequencerFlag, + request_deserializer=nidigitalpattern__pb2.ReadSequencerFlagRequest.FromString, + response_serializer=nidigitalpattern__pb2.ReadSequencerFlagResponse.SerializeToString, + ), + 'WriteSequencerRegister': grpc.unary_unary_rpc_method_handler( + servicer.WriteSequencerRegister, + request_deserializer=nidigitalpattern__pb2.WriteSequencerRegisterRequest.FromString, + response_serializer=nidigitalpattern__pb2.WriteSequencerRegisterResponse.SerializeToString, + ), + 'ReadSequencerRegister': grpc.unary_unary_rpc_method_handler( + servicer.ReadSequencerRegister, + request_deserializer=nidigitalpattern__pb2.ReadSequencerRegisterRequest.FromString, + response_serializer=nidigitalpattern__pb2.ReadSequencerRegisterResponse.SerializeToString, + ), + 'EnableMatchFailCombination': grpc.unary_unary_rpc_method_handler( + servicer.EnableMatchFailCombination, + request_deserializer=nidigitalpattern__pb2.EnableMatchFailCombinationRequest.FromString, + response_serializer=nidigitalpattern__pb2.EnableMatchFailCombinationResponse.SerializeToString, + ), + 'GetSitePassFail': grpc.unary_unary_rpc_method_handler( + servicer.GetSitePassFail, + request_deserializer=nidigitalpattern__pb2.GetSitePassFailRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetSitePassFailResponse.SerializeToString, + ), + 'GetFailCount': grpc.unary_unary_rpc_method_handler( + servicer.GetFailCount, + request_deserializer=nidigitalpattern__pb2.GetFailCountRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetFailCountResponse.SerializeToString, + ), + 'GetPinResultsPinInformation': grpc.unary_unary_rpc_method_handler( + servicer.GetPinResultsPinInformation, + request_deserializer=nidigitalpattern__pb2.GetPinResultsPinInformationRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetPinResultsPinInformationResponse.SerializeToString, + ), + 'GetSiteResultsSiteNumbers': grpc.unary_unary_rpc_method_handler( + servicer.GetSiteResultsSiteNumbers, + request_deserializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetSiteResultsSiteNumbersResponse.SerializeToString, + ), + 'FrequencyCounterConfigureMeasurementTime': grpc.unary_unary_rpc_method_handler( + servicer.FrequencyCounterConfigureMeasurementTime, + request_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeRequest.FromString, + response_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeResponse.SerializeToString, + ), + 'FrequencyCounterConfigureMeasurementMode': grpc.unary_unary_rpc_method_handler( + servicer.FrequencyCounterConfigureMeasurementMode, + request_deserializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeRequest.FromString, + response_serializer=nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeResponse.SerializeToString, + ), + 'FrequencyCounterMeasureFrequency': grpc.unary_unary_rpc_method_handler( + servicer.FrequencyCounterMeasureFrequency, + request_deserializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyRequest.FromString, + response_serializer=nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyResponse.SerializeToString, + ), + 'GetChannelNameFromString': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelNameFromString, + request_deserializer=nidigitalpattern__pb2.GetChannelNameFromStringRequest.FromString, + response_serializer=nidigitalpattern__pb2.GetChannelNameFromStringResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nidigitalpattern_grpc.NiDigital', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiDigital(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Init', + nidigitalpattern__pb2.InitRequest.SerializeToString, + nidigitalpattern__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/InitWithOptions', + nidigitalpattern__pb2.InitWithOptionsRequest.SerializeToString, + nidigitalpattern__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Close', + nidigitalpattern__pb2.CloseRequest.SerializeToString, + nidigitalpattern__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Reset', + nidigitalpattern__pb2.ResetRequest.SerializeToString, + nidigitalpattern__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetDevice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ResetDevice', + nidigitalpattern__pb2.ResetDeviceRequest.SerializeToString, + nidigitalpattern__pb2.ResetDeviceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SelfTest', + nidigitalpattern__pb2.SelfTestRequest.SerializeToString, + nidigitalpattern__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetError', + nidigitalpattern__pb2.GetErrorRequest.SerializeToString, + nidigitalpattern__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClearError', + nidigitalpattern__pb2.ClearErrorRequest.SerializeToString, + nidigitalpattern__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ErrorMessage', + nidigitalpattern__pb2.ErrorMessageRequest.SerializeToString, + nidigitalpattern__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCalibrate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SelfCalibrate', + nidigitalpattern__pb2.SelfCalibrateRequest.SerializeToString, + nidigitalpattern__pb2.SelfCalibrateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt32', + nidigitalpattern__pb2.GetAttributeViInt32Request.SerializeToString, + nidigitalpattern__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViInt64', + nidigitalpattern__pb2.GetAttributeViInt64Request.SerializeToString, + nidigitalpattern__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViReal64', + nidigitalpattern__pb2.GetAttributeViReal64Request.SerializeToString, + nidigitalpattern__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViString', + nidigitalpattern__pb2.GetAttributeViStringRequest.SerializeToString, + nidigitalpattern__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViSession', + nidigitalpattern__pb2.GetAttributeViSessionRequest.SerializeToString, + nidigitalpattern__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetAttributeViBoolean', + nidigitalpattern__pb2.GetAttributeViBooleanRequest.SerializeToString, + nidigitalpattern__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt32', + nidigitalpattern__pb2.SetAttributeViInt32Request.SerializeToString, + nidigitalpattern__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViInt64', + nidigitalpattern__pb2.SetAttributeViInt64Request.SerializeToString, + nidigitalpattern__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViReal64', + nidigitalpattern__pb2.SetAttributeViReal64Request.SerializeToString, + nidigitalpattern__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViString', + nidigitalpattern__pb2.SetAttributeViStringRequest.SerializeToString, + nidigitalpattern__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViSession', + nidigitalpattern__pb2.SetAttributeViSessionRequest.SerializeToString, + nidigitalpattern__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SetAttributeViBoolean', + nidigitalpattern__pb2.SetAttributeViBooleanRequest.SerializeToString, + nidigitalpattern__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ResetAttribute', + nidigitalpattern__pb2.ResetAttributeRequest.SerializeToString, + nidigitalpattern__pb2.ResetAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadPinMap(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadPinMap', + nidigitalpattern__pb2.LoadPinMapRequest.SerializeToString, + nidigitalpattern__pb2.LoadPinMapResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnableSites(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/EnableSites', + nidigitalpattern__pb2.EnableSitesRequest.SerializeToString, + nidigitalpattern__pb2.EnableSitesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableSites(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DisableSites', + nidigitalpattern__pb2.DisableSitesRequest.SerializeToString, + nidigitalpattern__pb2.DisableSitesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsSiteEnabled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/IsSiteEnabled', + nidigitalpattern__pb2.IsSiteEnabledRequest.SerializeToString, + nidigitalpattern__pb2.IsSiteEnabledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreatePinMap(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreatePinMap', + nidigitalpattern__pb2.CreatePinMapRequest.SerializeToString, + nidigitalpattern__pb2.CreatePinMapResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreatePinGroup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreatePinGroup', + nidigitalpattern__pb2.CreatePinGroupRequest.SerializeToString, + nidigitalpattern__pb2.CreatePinGroupResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateChannelMap(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateChannelMap', + nidigitalpattern__pb2.CreateChannelMapRequest.SerializeToString, + nidigitalpattern__pb2.CreateChannelMapResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MapPinToChannel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/MapPinToChannel', + nidigitalpattern__pb2.MapPinToChannelRequest.SerializeToString, + nidigitalpattern__pb2.MapPinToChannelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EndChannelMap(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/EndChannelMap', + nidigitalpattern__pb2.EndChannelMapRequest.SerializeToString, + nidigitalpattern__pb2.EndChannelMapResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPinName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPinName', + nidigitalpattern__pb2.GetPinNameRequest.SerializeToString, + nidigitalpattern__pb2.GetPinNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetChannelName', + nidigitalpattern__pb2.GetChannelNameRequest.SerializeToString, + nidigitalpattern__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelectFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SelectFunction', + nidigitalpattern__pb2.SelectFunctionRequest.SerializeToString, + nidigitalpattern__pb2.SelectFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadStatic(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ReadStatic', + nidigitalpattern__pb2.ReadStaticRequest.SerializeToString, + nidigitalpattern__pb2.ReadStaticResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteStatic(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteStatic', + nidigitalpattern__pb2.WriteStaticRequest.SerializeToString, + nidigitalpattern__pb2.WriteStaticResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClockGeneratorGenerateClock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClockGeneratorGenerateClock', + nidigitalpattern__pb2.ClockGeneratorGenerateClockRequest.SerializeToString, + nidigitalpattern__pb2.ClockGeneratorGenerateClockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClockGeneratorInitiate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClockGeneratorInitiate', + nidigitalpattern__pb2.ClockGeneratorInitiateRequest.SerializeToString, + nidigitalpattern__pb2.ClockGeneratorInitiateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClockGeneratorAbort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ClockGeneratorAbort', + nidigitalpattern__pb2.ClockGeneratorAbortRequest.SerializeToString, + nidigitalpattern__pb2.ClockGeneratorAbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadSpecifications(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadSpecifications', + nidigitalpattern__pb2.LoadSpecificationsRequest.SerializeToString, + nidigitalpattern__pb2.LoadSpecificationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnloadSpecifications(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/UnloadSpecifications', + nidigitalpattern__pb2.UnloadSpecificationsRequest.SerializeToString, + nidigitalpattern__pb2.UnloadSpecificationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadLevels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadLevels', + nidigitalpattern__pb2.LoadLevelsRequest.SerializeToString, + nidigitalpattern__pb2.LoadLevelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadTiming(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadTiming', + nidigitalpattern__pb2.LoadTimingRequest.SerializeToString, + nidigitalpattern__pb2.LoadTimingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ApplyLevelsAndTiming(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ApplyLevelsAndTiming', + nidigitalpattern__pb2.ApplyLevelsAndTimingRequest.SerializeToString, + nidigitalpattern__pb2.ApplyLevelsAndTimingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureVoltageLevels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureVoltageLevels', + nidigitalpattern__pb2.ConfigureVoltageLevelsRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureVoltageLevelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureActiveLoadLevels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureActiveLoadLevels', + nidigitalpattern__pb2.ConfigureActiveLoadLevelsRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureActiveLoadLevelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTerminationMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTerminationMode', + nidigitalpattern__pb2.ConfigureTerminationModeRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTerminationModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateTimeSet(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateTimeSet', + nidigitalpattern__pb2.CreateTimeSetRequest.SerializeToString, + nidigitalpattern__pb2.CreateTimeSetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetPeriod(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetPeriod', + nidigitalpattern__pb2.ConfigureTimeSetPeriodRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetPeriodResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetDriveEdges(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges', + nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetDriveEdgesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetCompareEdgesStrobe(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe', + nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetDriveFormat(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveFormat', + nidigitalpattern__pb2.ConfigureTimeSetDriveFormatRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetDriveFormatResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAllTimeSets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DeleteAllTimeSets', + nidigitalpattern__pb2.DeleteAllTimeSetsRequest.SerializeToString, + nidigitalpattern__pb2.DeleteAllTimeSetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetEdgeMultiplier(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdgeMultiplier', + nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetEdgeMultiplierResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetDriveEdges2x(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetDriveEdges2x', + nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetDriveEdges2xResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetCompareEdgesStrobe2x(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetCompareEdgesStrobe2x', + nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetCompareEdgesStrobe2xResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTimeSetEdge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureTimeSetEdge', + nidigitalpattern__pb2.ConfigureTimeSetEdgeRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureTimeSetEdgeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTimeSetPeriod(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetPeriod', + nidigitalpattern__pb2.GetTimeSetPeriodRequest.SerializeToString, + nidigitalpattern__pb2.GetTimeSetPeriodResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTimeSetEdge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdge', + nidigitalpattern__pb2.GetTimeSetEdgeRequest.SerializeToString, + nidigitalpattern__pb2.GetTimeSetEdgeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTimeSetEdgeMultiplier(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetEdgeMultiplier', + nidigitalpattern__pb2.GetTimeSetEdgeMultiplierRequest.SerializeToString, + nidigitalpattern__pb2.GetTimeSetEdgeMultiplierResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTimeSetDriveFormat(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetDriveFormat', + nidigitalpattern__pb2.GetTimeSetDriveFormatRequest.SerializeToString, + nidigitalpattern__pb2.GetTimeSetDriveFormatResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTimeSetName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetTimeSetName', + nidigitalpattern__pb2.GetTimeSetNameRequest.SerializeToString, + nidigitalpattern__pb2.GetTimeSetNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TDR(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/TDR', + nidigitalpattern__pb2.TDRRequest.SerializeToString, + nidigitalpattern__pb2.TDRResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ApplyTDROffsets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ApplyTDROffsets', + nidigitalpattern__pb2.ApplyTDROffsetsRequest.SerializeToString, + nidigitalpattern__pb2.ApplyTDROffsetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureOutputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureOutputFunction', + nidigitalpattern__pb2.PPMUConfigureOutputFunctionRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureOutputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureApertureTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureApertureTime', + nidigitalpattern__pb2.PPMUConfigureApertureTimeRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureApertureTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureVoltageLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLevel', + nidigitalpattern__pb2.PPMUConfigureVoltageLevelRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureVoltageLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureCurrentLimit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimit', + nidigitalpattern__pb2.PPMUConfigureCurrentLimitRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureCurrentLimitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureCurrentLimitRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLimitRange', + nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureCurrentLimitRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureCurrentLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevel', + nidigitalpattern__pb2.PPMUConfigureCurrentLevelRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureCurrentLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureCurrentLevelRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureCurrentLevelRange', + nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureCurrentLevelRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUConfigureVoltageLimits(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUConfigureVoltageLimits', + nidigitalpattern__pb2.PPMUConfigureVoltageLimitsRequest.SerializeToString, + nidigitalpattern__pb2.PPMUConfigureVoltageLimitsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUSource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUSource', + nidigitalpattern__pb2.PPMUSourceRequest.SerializeToString, + nidigitalpattern__pb2.PPMUSourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PPMUMeasure(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/PPMUMeasure', + nidigitalpattern__pb2.PPMUMeasureRequest.SerializeToString, + nidigitalpattern__pb2.PPMUMeasureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadPattern(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/LoadPattern', + nidigitalpattern__pb2.LoadPatternRequest.SerializeToString, + nidigitalpattern__pb2.LoadPatternResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UnloadAllPatterns(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/UnloadAllPatterns', + nidigitalpattern__pb2.UnloadAllPatternsRequest.SerializeToString, + nidigitalpattern__pb2.UnloadAllPatternsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureStartLabel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureStartLabel', + nidigitalpattern__pb2.ConfigureStartLabelRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureStartLabelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePatternBurstSites(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigurePatternBurstSites', + nidigitalpattern__pb2.ConfigurePatternBurstSitesRequest.SerializeToString, + nidigitalpattern__pb2.ConfigurePatternBurstSitesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPatternPinIndexes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPatternPinIndexes', + nidigitalpattern__pb2.GetPatternPinIndexesRequest.SerializeToString, + nidigitalpattern__pb2.GetPatternPinIndexesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPatternPinList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPatternPinList', + nidigitalpattern__pb2.GetPatternPinListRequest.SerializeToString, + nidigitalpattern__pb2.GetPatternPinListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPatternName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPatternName', + nidigitalpattern__pb2.GetPatternNameRequest.SerializeToString, + nidigitalpattern__pb2.GetPatternNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BurstPattern(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/BurstPattern', + nidigitalpattern__pb2.BurstPatternRequest.SerializeToString, + nidigitalpattern__pb2.BurstPatternResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BurstPatternSynchronized(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/BurstPatternSynchronized', + nidigitalpattern__pb2.BurstPatternSynchronizedRequest.SerializeToString, + nidigitalpattern__pb2.BurstPatternSynchronizedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Commit', + nidigitalpattern__pb2.CommitRequest.SerializeToString, + nidigitalpattern__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Initiate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Initiate', + nidigitalpattern__pb2.InitiateRequest.SerializeToString, + nidigitalpattern__pb2.InitiateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsDone(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/IsDone', + nidigitalpattern__pb2.IsDoneRequest.SerializeToString, + nidigitalpattern__pb2.IsDoneResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitUntilDone(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WaitUntilDone', + nidigitalpattern__pb2.WaitUntilDoneRequest.SerializeToString, + nidigitalpattern__pb2.WaitUntilDoneResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/Abort', + nidigitalpattern__pb2.AbortRequest.SerializeToString, + nidigitalpattern__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AbortKeepAlive(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/AbortKeepAlive', + nidigitalpattern__pb2.AbortKeepAliveRequest.SerializeToString, + nidigitalpattern__pb2.AbortKeepAliveResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePatternLabelHistoryRAMTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigurePatternLabelHistoryRAMTrigger', + nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigurePatternLabelHistoryRAMTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCycleNumberHistoryRAMTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureCycleNumberHistoryRAMTrigger', + nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureCycleNumberHistoryRAMTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureFirstFailureHistoryRAMTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureFirstFailureHistoryRAMTrigger', + nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureFirstFailureHistoryRAMTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureHistoryRAMCyclesToAcquire(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureHistoryRAMCyclesToAcquire', + nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureHistoryRAMCyclesToAcquireResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetHistoryRAMSampleCount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetHistoryRAMSampleCount', + nidigitalpattern__pb2.GetHistoryRAMSampleCountRequest.SerializeToString, + nidigitalpattern__pb2.GetHistoryRAMSampleCountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchHistoryRAMCycleInformation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCycleInformation', + nidigitalpattern__pb2.FetchHistoryRAMCycleInformationRequest.SerializeToString, + nidigitalpattern__pb2.FetchHistoryRAMCycleInformationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchHistoryRAMCyclePinData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMCyclePinData', + nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataRequest.SerializeToString, + nidigitalpattern__pb2.FetchHistoryRAMCyclePinDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchHistoryRAMScanCycleNumber(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchHistoryRAMScanCycleNumber', + nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberRequest.SerializeToString, + nidigitalpattern__pb2.FetchHistoryRAMScanCycleNumberResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateSourceWaveformParallel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformParallel', + nidigitalpattern__pb2.CreateSourceWaveformParallelRequest.SerializeToString, + nidigitalpattern__pb2.CreateSourceWaveformParallelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateSourceWaveformSerial(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformSerial', + nidigitalpattern__pb2.CreateSourceWaveformSerialRequest.SerializeToString, + nidigitalpattern__pb2.CreateSourceWaveformSerialResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateSourceWaveformFromFileTDMS(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateSourceWaveformFromFileTDMS', + nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSRequest.SerializeToString, + nidigitalpattern__pb2.CreateSourceWaveformFromFileTDMSResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteSourceWaveformBroadcastU32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformBroadcastU32', + nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Request.SerializeToString, + nidigitalpattern__pb2.WriteSourceWaveformBroadcastU32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteSourceWaveformSiteUniqueU32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformSiteUniqueU32', + nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Request.SerializeToString, + nidigitalpattern__pb2.WriteSourceWaveformSiteUniqueU32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteSourceWaveformDataFromFileTDMS(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSourceWaveformDataFromFileTDMS', + nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSRequest.SerializeToString, + nidigitalpattern__pb2.WriteSourceWaveformDataFromFileTDMSResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateCaptureWaveformParallel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformParallel', + nidigitalpattern__pb2.CreateCaptureWaveformParallelRequest.SerializeToString, + nidigitalpattern__pb2.CreateCaptureWaveformParallelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateCaptureWaveformSerial(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformSerial', + nidigitalpattern__pb2.CreateCaptureWaveformSerialRequest.SerializeToString, + nidigitalpattern__pb2.CreateCaptureWaveformSerialResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateCaptureWaveformFromFileDigicapture(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/CreateCaptureWaveformFromFileDigicapture', + nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureRequest.SerializeToString, + nidigitalpattern__pb2.CreateCaptureWaveformFromFileDigicaptureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchCaptureWaveformU32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FetchCaptureWaveformU32', + nidigitalpattern__pb2.FetchCaptureWaveformU32Request.SerializeToString, + nidigitalpattern__pb2.FetchCaptureWaveformU32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ExportSignal', + nidigitalpattern__pb2.ExportSignalRequest.SerializeToString, + nidigitalpattern__pb2.ExportSignalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeStartTrigger', + nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeStartTrigger', + nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DisableStartTrigger', + nidigitalpattern__pb2.DisableStartTriggerRequest.SerializeToString, + nidigitalpattern__pb2.DisableStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeConditionalJumpTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureDigitalEdgeConditionalJumpTrigger', + nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureDigitalEdgeConditionalJumpTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeConditionalJumpTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ConfigureSoftwareEdgeConditionalJumpTrigger', + nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerRequest.SerializeToString, + nidigitalpattern__pb2.ConfigureSoftwareEdgeConditionalJumpTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableConditionalJumpTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/DisableConditionalJumpTrigger', + nidigitalpattern__pb2.DisableConditionalJumpTriggerRequest.SerializeToString, + nidigitalpattern__pb2.DisableConditionalJumpTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareEdgeTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/SendSoftwareEdgeTrigger', + nidigitalpattern__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + nidigitalpattern__pb2.SendSoftwareEdgeTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteSequencerFlag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlag', + nidigitalpattern__pb2.WriteSequencerFlagRequest.SerializeToString, + nidigitalpattern__pb2.WriteSequencerFlagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteSequencerFlagSynchronized(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSequencerFlagSynchronized', + nidigitalpattern__pb2.WriteSequencerFlagSynchronizedRequest.SerializeToString, + nidigitalpattern__pb2.WriteSequencerFlagSynchronizedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadSequencerFlag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ReadSequencerFlag', + nidigitalpattern__pb2.ReadSequencerFlagRequest.SerializeToString, + nidigitalpattern__pb2.ReadSequencerFlagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteSequencerRegister(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/WriteSequencerRegister', + nidigitalpattern__pb2.WriteSequencerRegisterRequest.SerializeToString, + nidigitalpattern__pb2.WriteSequencerRegisterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadSequencerRegister(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/ReadSequencerRegister', + nidigitalpattern__pb2.ReadSequencerRegisterRequest.SerializeToString, + nidigitalpattern__pb2.ReadSequencerRegisterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnableMatchFailCombination(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/EnableMatchFailCombination', + nidigitalpattern__pb2.EnableMatchFailCombinationRequest.SerializeToString, + nidigitalpattern__pb2.EnableMatchFailCombinationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSitePassFail(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetSitePassFail', + nidigitalpattern__pb2.GetSitePassFailRequest.SerializeToString, + nidigitalpattern__pb2.GetSitePassFailResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetFailCount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetFailCount', + nidigitalpattern__pb2.GetFailCountRequest.SerializeToString, + nidigitalpattern__pb2.GetFailCountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPinResultsPinInformation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetPinResultsPinInformation', + nidigitalpattern__pb2.GetPinResultsPinInformationRequest.SerializeToString, + nidigitalpattern__pb2.GetPinResultsPinInformationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSiteResultsSiteNumbers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetSiteResultsSiteNumbers', + nidigitalpattern__pb2.GetSiteResultsSiteNumbersRequest.SerializeToString, + nidigitalpattern__pb2.GetSiteResultsSiteNumbersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FrequencyCounterConfigureMeasurementTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementTime', + nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeRequest.SerializeToString, + nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FrequencyCounterConfigureMeasurementMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FrequencyCounterConfigureMeasurementMode', + nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeRequest.SerializeToString, + nidigitalpattern__pb2.FrequencyCounterConfigureMeasurementModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FrequencyCounterMeasureFrequency(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/FrequencyCounterMeasureFrequency', + nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyRequest.SerializeToString, + nidigitalpattern__pb2.FrequencyCounterMeasureFrequencyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelNameFromString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidigitalpattern_grpc.NiDigital/GetChannelNameFromString', + nidigitalpattern__pb2.GetChannelNameFromStringRequest.SerializeToString, + nidigitalpattern__pb2.GetChannelNameFromStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nidigital/nidigital/session.py b/generated/nidigital/nidigital/session.py new file mode 100644 index 0000000000..5e2ca29c31 --- /dev/null +++ b/generated/nidigital/nidigital/session.py @@ -0,0 +1,3991 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nidigital._attributes as _attributes +import nidigital._converters as _converters +import nidigital._library_interpreter as _library_interpreter +import nidigital.enums as enums +import nidigital.errors as errors + +import nidigital.history_ram_cycle_information as history_ram_cycle_information # noqa: F401 + +import hightime +import nitclk + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Burst(object): + def __init__(self, session): + self._session = session + self._session._initiate() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-Digital Pattern Driver sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + active_load_ioh = _attributes.AttributeViReal64(1150013) + '''Type: float + + Specifies the current that the DUT sources to the active load while outputting a voltage above VCOM. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_load_ioh` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.active_load_ioh` + ''' + active_load_iol = _attributes.AttributeViReal64(1150012) + '''Type: float + + Specifies the current that the DUT sinks from the active load while outputting a voltage below VCOM. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_load_iol` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.active_load_iol` + ''' + active_load_vcom = _attributes.AttributeViReal64(1150014) + '''Type: float + + Specifies the voltage level at which the active load circuit switches between sourcing current and sinking current. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].active_load_vcom` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.active_load_vcom` + ''' + cache = _attributes.AttributeViBoolean(1050004) + '''Type: bool + + Specifies whether to cache the value of properties. When caching is enabled, the instrument driver keeps track of the current instrument settings and avoids sending redundant commands to the instrument. This significantly increases execution speed. Caching is always enabled in the driver, regardless of the value of this property. + ''' + channel_count = _attributes.AttributeViInt32(1050203) + '''Type: int + + Returns the number of channels that the specific digital pattern instrument driver supports. + ''' + clock_generator_frequency = _attributes.AttributeViReal64(1150073) + '''Type: float + + Specifies the frequency for the clock generator. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].clock_generator_frequency` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.clock_generator_frequency` + ''' + clock_generator_is_running = _attributes.AttributeViBoolean(1150074) + '''Type: bool + + Indicates whether the clock generator is running. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].clock_generator_is_running` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.clock_generator_is_running` + ''' + conditional_jump_trigger_terminal_name = _attributes.AttributeViString(1150040) + '''Type: str + + Specifies the terminal name from which the exported conditional jump trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the conditional jump trigger instance asserts on the digital pattern instrument. + + Tip: + This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_terminal_name` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.conditional_jump_trigger_terminal_name` + ''' + conditional_jump_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150033) + '''Type: enums.TriggerType + + Disables the conditional jump trigger or configures it for either hardware triggering or software triggering. The default value is TriggerType.NONE. + + +--------------------------+------------------------------------------------------------------+ + | Valid Values: | | + +==========================+==================================================================+ + | TriggerType.NONE | Disables the conditional jump trigger. | + +--------------------------+------------------------------------------------------------------+ + | TriggerType.DIGITAL_EDGE | Configures the conditional jump trigger for hardware triggering. | + +--------------------------+------------------------------------------------------------------+ + | TriggerType.SOFTWARE | Configures the conditional jump trigger for software triggering. | + +--------------------------+------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].conditional_jump_trigger_type` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.conditional_jump_trigger_type` + ''' + cycle_number_history_ram_trigger_cycle_number = _attributes.AttributeViInt64(1150044) + '''Type: int + + Specifies the cycle number on which History RAM starts acquiring pattern information when configured for a cycle number trigger. + ''' + digital_edge_conditional_jump_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEdge, 1150035) + '''Type: enums.DigitalEdge + + Configures the active edge of the incoming trigger signal for the conditional jump trigger instance. The default value is DigitalEdge.RISING. + + +---------------------+---------------------------------------------------------------+ + | Valid Values: | | + +=====================+===============================================================+ + | DigitalEdge.RISING | Specifies the signal transition from low level to high level. | + +---------------------+---------------------------------------------------------------+ + | DigitalEdge.FALLING | Specifies the signal transition from high level to low level. | + +---------------------+---------------------------------------------------------------+ + + Tip: + This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_edge` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_edge` + ''' + digital_edge_conditional_jump_trigger_source = _attributes.AttributeViString(1150034) + '''Type: str + + Configures the digital trigger source terminal for a conditional jump trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/ConditionalJumpTrigger0. The default value is VI_NULL. + + +----------------------------------------------+ + | Valid Values: | + +==============================================+ + | String identifier to any valid terminal name | + +----------------------------------------------+ + + Tip: + This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].digital_edge_conditional_jump_trigger_source` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_conditional_jump_trigger_source` + ''' + digital_edge_rio_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEdge, 1150088) + '''Type: enums.DigitalEdge + + Configures the active edge of the incoming trigger signal for the RIO trigger instance. The default value is DigitalEdge.RISING. + + +---------------------+---------------------------------------------------------------+ + | Valid Values: | | + +=====================+===============================================================+ + | DigitalEdge.RISING | Specifies the signal transition from low level to high level. | + +---------------------+---------------------------------------------------------------+ + | DigitalEdge.FALLING | Specifies the signal transition from high level to low level. | + +---------------------+---------------------------------------------------------------+ + + Tip: + This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_edge` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_rio_trigger_edge` + ''' + digital_edge_rio_trigger_source = _attributes.AttributeViString(1150087) + '''Type: str + + Configures the digital trigger source terminal for a RIO trigger instance. The PXIe-6570/6571 supports triggering through the PXI trigger bus. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/RIOTrigger0. The default value is VI_NULL. + + +----------------------------------------------+ + | Valid Values: | + +==============================================+ + | String identifier to any valid terminal name | + +----------------------------------------------+ + + Tip: + This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].digital_edge_rio_trigger_source` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.digital_edge_rio_trigger_source` + ''' + digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEdge, 1150031) + '''Type: enums.DigitalEdge + + Specifies the active edge for the Start trigger. This property is used when the start_trigger_type property is set to Digital Edge. + + +---------------------+-------------------------------------------------------------------------------+ + | Defined Values: | | + +=====================+===============================================================================+ + | DigitalEdge.RISING | Asserts the trigger when the signal transitions from low level to high level. | + +---------------------+-------------------------------------------------------------------------------+ + | DigitalEdge.FALLING | Asserts the trigger when the signal transitions from high level to low level. | + +---------------------+-------------------------------------------------------------------------------+ + ''' + digital_edge_start_trigger_source = _attributes.AttributeViString(1150030) + '''Type: str + + Specifies the source terminal for the Start trigger. This property is used when the start_trigger_type property is set to Digital Edge. You can specify source terminals in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. The source terminal can also be a terminal from another device, in which case the NI-Digital Pattern Driver automatically finds a route (if one is available) from that terminal to the input terminal (going through a physical PXI backplane trigger line). For example, you can set the source terminal on Dev1 to be /Dev2/StartTrigger. + + +-----------------+--------------------+ + | Defined Values: | | + +=================+====================+ + | PXI_Trig0 | PXI trigger line 0 | + +-----------------+--------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +-----------------+--------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +-----------------+--------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +-----------------+--------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +-----------------+--------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +-----------------+--------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +-----------------+--------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +-----------------+--------------------+ + ''' + driver_setup = _attributes.AttributeViString(1050007) + '''Type: str + + This property returns initial values for NI-Digital Pattern Driver properties as a string. + ''' + exported_conditional_jump_trigger_output_terminal = _attributes.AttributeViString(1150036) + '''Type: str + + Specifies the terminal to output the exported signal of the specified instance of the conditional jump trigger. The default value is VI_NULL. + + +---------------+-------------------------+ + | Valid Values: | | + +===============+=========================+ + | VI_NULL ("") | Returns an empty string | + +---------------+-------------------------+ + | PXI_Trig0 | PXI trigger line 0 | + +---------------+-------------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +---------------+-------------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +---------------+-------------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +---------------+-------------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +---------------+-------------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +---------------+-------------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +---------------+-------------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +---------------+-------------------------+ + + Tip: + This property can be set/get on specific conditional_jump_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container conditional_jump_triggers to specify a subset. + + Example: :py:attr:`my_session.conditional_jump_triggers[ ... ].exported_conditional_jump_trigger_output_terminal` + + To set/get on all conditional_jump_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.exported_conditional_jump_trigger_output_terminal` + ''' + exported_pattern_opcode_event_output_terminal = _attributes.AttributeViString(1150041) + '''Type: str + + Specifies the destination terminal for exporting the Pattern Opcode Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + +-----------------+--------------------+ + | Defined Values: | | + +=================+====================+ + | PXI_Trig0 | PXI trigger line 0 | + +-----------------+--------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +-----------------+--------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +-----------------+--------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +-----------------+--------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +-----------------+--------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +-----------------+--------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +-----------------+--------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +-----------------+--------------------+ + + Tip: + This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. + + Example: :py:attr:`my_session.pattern_opcode_events[ ... ].exported_pattern_opcode_event_output_terminal` + + To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.exported_pattern_opcode_event_output_terminal` + ''' + exported_rio_event_output_terminal = _attributes.AttributeViString(1150090) + '''Type: str + + Specifies the destination terminal for exporting the RIO Event. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + +-----------------+--------------------+ + | Defined Values: | | + +=================+====================+ + | PXI_Trig0 | PXI trigger line 0 | + +-----------------+--------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +-----------------+--------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +-----------------+--------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +-----------------+--------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +-----------------+--------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +-----------------+--------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +-----------------+--------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +-----------------+--------------------+ + + Tip: + This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_events to specify a subset. + + Example: :py:attr:`my_session.rio_events[ ... ].exported_rio_event_output_terminal` + + To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.exported_rio_event_output_terminal` + ''' + exported_start_trigger_output_terminal = _attributes.AttributeViString(1150032) + '''Type: str + + Specifies the destination terminal for exporting the Start trigger. Terminals can be specified in one of two ways. If the digital pattern instrument is named Dev1 and your terminal is PXI_Trig0, you can specify the terminal with the fully qualified terminal name, /Dev1/PXI_Trig0, or with the shortened terminal name, PXI_Trig0. + + +----------------------+-----------------------------+ + | Defined Values: | | + +======================+=============================+ + | Do not export signal | The signal is not exported. | + +----------------------+-----------------------------+ + | PXI_Trig0 | PXI trigger line 0 | + +----------------------+-----------------------------+ + | PXI_Trig1 | PXI trigger line 1 | + +----------------------+-----------------------------+ + | PXI_Trig2 | PXI trigger line 2 | + +----------------------+-----------------------------+ + | PXI_Trig3 | PXI trigger line 3 | + +----------------------+-----------------------------+ + | PXI_Trig4 | PXI trigger line 4 | + +----------------------+-----------------------------+ + | PXI_Trig5 | PXI trigger line 5 | + +----------------------+-----------------------------+ + | PXI_Trig6 | PXI trigger line 6 | + +----------------------+-----------------------------+ + | PXI_Trig7 | PXI trigger line 7 | + +----------------------+-----------------------------+ + ''' + frequency_counter_hysteresis_enabled = _attributes.AttributeViBoolean(1150085) + '''Type: bool + + Specifies whether hysteresis is enabled for the frequency counters of the digital pattern instrument. + ''' + frequency_counter_measurement_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FrequencyMeasurementMode, 1150084) + '''Type: enums.FrequencyMeasurementMode + + Determines how the frequency counters of the digital pattern instrument make measurements. + + +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Valid Values: | | + +===================================+=======================================================================================================================================================================================================================================================================================================================================================================================+ + | FrequencyMeasurementMode.BANKED | Each discrete frequency counter is mapped to specific channels and makes frequency measurements from only those channels. Use banked mode when you need access to the full measure frequency range of the instrument. **Note:** If you request frequency measurements from multiple channels within the same bank, the measurements are made in series for the channels in that bank. | + +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | FrequencyMeasurementMode.PARALLEL | All discrete frequency counters make frequency measurements from all channels in parallel with one another. Use parallel mode to increase the speed of frequency measurements if you do not need access to the full measure frequency range of the instrument; in parallel mode, you can also add frequency_counter_hysteresis_enabled to reduce measurement noise. | + +-----------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + frequency_counter_measurement_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150069) + '''Type: float in seconds or datetime.timedelta + + Specifies the measurement time for the frequency counter. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].frequency_counter_measurement_time` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.frequency_counter_measurement_time` + ''' + group_capabilities = _attributes.AttributeViString(1050401) + '''Type: str + + Returns a string that contains a comma-separated list of class-extension groups that the driver implements. + ''' + halt_on_keep_alive_opcode = _attributes.AttributeViBoolean(1150062) + '''Type: bool + + Specifies whether keep_alive opcodes should behave like halt opcodes. + ''' + history_ram_buffer_size_per_site = _attributes.AttributeViInt64(1150079) + '''Type: int + + Specifies the size, in samples, of the host memory buffer. The default value is 32000. + + +---------------+ + | Valid Values: | + +===============+ + | 0-INT64_MAX | + +---------------+ + ''' + history_ram_cycles_to_acquire = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.HistoryRAMCyclesToAcquire, 1150047) + '''Type: enums.HistoryRAMCyclesToAcquire + + Configures which cycles History RAM acquires after the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. + + +----------------------------------+-----------------------------------------------------------------------------------+ + | Defined Values: | | + +==================================+===================================================================================+ + | HistoryRAMCyclesToAcquire.FAILED | Only acquires cycles that fail a compare after the triggering conditions are met. | + +----------------------------------+-----------------------------------------------------------------------------------+ + | HistoryRAMCyclesToAcquire.ALL | Acquires all cycles after the triggering conditions are met. | + +----------------------------------+-----------------------------------------------------------------------------------+ + ''' + history_ram_max_samples_to_acquire_per_site = _attributes.AttributeViInt32(1150077) + '''Type: int + + Specifies the maximum number of History RAM samples to acquire per site. If the property is set to -1, it will acquire until the History RAM buffer is full. + ''' + history_ram_number_of_samples_is_finite = _attributes.AttributeViBoolean(1150078) + '''Type: bool + + Specifies whether the instrument acquires a finite number of History Ram samples or acquires continuously. The maximum number of samples that will be acquired when this property is set to True is determined by the instrument History RAM depth specification and the History RAM Max Samples to Acquire Per Site property. The default value is True. + + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Valid Values: | | + +===============+======================================================================================================================================================+ + | True | Specifies that History RAM results will not stream into the host buffer until a History RAM fetch API is called. | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ + | False | Specifies that History RAM results will automatically start streaming into a host buffer after a pattern is burst and the History RAM has triggered. | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + history_ram_pretrigger_samples = _attributes.AttributeViInt32(1150048) + '''Type: int + + Specifies the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only acquire failed cycles, you must set the pretrigger samples for History RAM to 0. + ''' + history_ram_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.HistoryRAMTriggerType, 1150043) + '''Type: enums.HistoryRAMTriggerType + + Specifies the type of trigger condition on which History RAM starts acquiring pattern information. + + +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +=====================================+=====================================================================================================================================+ + | HistoryRAMTriggerType.FIRST_FAILURE | Starts acquiring pattern information in History RAM on the first failed cycle in a pattern burst. | + +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + | HistoryRAMTriggerType.CYCLE_NUMBER | Starts acquiring pattern information in History RAM starting from a specified cycle number. | + +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + | HistoryRAMTriggerType.PATTERN_LABEL | Starts acquiring pattern information in History RAM starting from a specified pattern label, augmented by vector and cycle offsets. | + +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+ + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + Returns a string that contains the firmware revision information for the digital pattern instrument. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.instrument_firmware_revision` + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + Returns a string ("National Instruments") that contains the name of the manufacturer of the digital pattern instrument. + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + Returns a string that contains the model number or name of the digital pattern instrument. + ''' + interchange_check = _attributes.AttributeViBoolean(1050021) + '''Type: bool + + This property is not supported. + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Returns a string that contains the resource descriptor that the NI-Digital Pattern Driver uses to identify the digital pattern instrument. + ''' + is_keep_alive_active = _attributes.AttributeViBoolean(1150063) + '''Type: bool + + Returns True if the digital pattern instrument is driving the keep alive pattern. + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + Returns a string containing the logical name that you specified when opening the current IVI session. This property is not supported. + ''' + mask_compare = _attributes.AttributeViBoolean(1150060) + '''Type: bool + + Specifies whether the pattern comparisons are masked or not. When set to True for a specified pin, failures on that pin will be masked. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].mask_compare` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.mask_compare` + ''' + pattern_label_history_ram_trigger_cycle_offset = _attributes.AttributeViInt64(1150045) + '''Type: int + + Specifies the number of cycles that follow the specified pattern label and vector offset, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. + ''' + pattern_label_history_ram_trigger_label = _attributes.AttributeViString(1150046) + '''Type: str + + Specifies the pattern label, augmented by the vector and cycle offset, to determine the point where History RAM will start acquiring pattern information when configured for a pattern label trigger. + ''' + pattern_label_history_ram_trigger_vector_offset = _attributes.AttributeViInt64(1150052) + '''Type: int + + Specifies the number of vectors that follow the specified pattern label, after which History RAM will start acquiring pattern information when configured for a pattern label trigger. + ''' + pattern_opcode_event_terminal_name = _attributes.AttributeViString(1150042) + '''Type: str + + Specifies the terminal name for the output trigger signal of the specified instance of a Pattern Opcode Event. You can use this terminal name as an input signal source for another trigger. + + Tip: + This property can be set/get on specific pattern_opcode_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pattern_opcode_events to specify a subset. + + Example: :py:attr:`my_session.pattern_opcode_events[ ... ].pattern_opcode_event_terminal_name` + + To set/get on all pattern_opcode_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.pattern_opcode_event_terminal_name` + ''' + ppmu_allow_extended_voltage_range = _attributes.AttributeViBoolean(1150076) + '''Type: bool + + Enables the instrument to operate in additional voltage ranges where instrument specifications may differ from standard ranges. When set to True, this property enables extended voltage range operation. Review specification deviations for application suitability before using this property. NI recommends setting this property to False when not using the extended voltage range to avoid unintentional use of this range. The extended voltage range is supported only for PPMU, with the output method set to DC Voltage. A voltage glitch may occur when you change the PPMU output voltage from a standard range to the extended voltage range, or vice-versa, while the PPMU is sourcing. NI recommends temporarily changing the selected_function property to Off before sourcing a voltage level that requires a range change. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_allow_extended_voltage_range` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_allow_extended_voltage_range` + ''' + ppmu_aperture_time = _attributes.AttributeViReal64(1150037) + '''Type: float + + Specifies the measurement aperture time for the PPMU. The ppmu_aperture_time_units property sets the units of the PPMU aperture time. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_aperture_time` + ''' + ppmu_aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PPMUApertureTimeUnits, 1150038) + '''Type: enums.PPMUApertureTimeUnits + + Specifies the units of the measurement aperture time for the PPMU. + + +-------------------------------+-----------------------------------------+ + | Defined Values: | | + +===============================+=========================================+ + | PPMUApertureTimeUnits.SECONDS | Specifies the aperture time in seconds. | + +-------------------------------+-----------------------------------------+ + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_aperture_time_units` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_aperture_time_units` + ''' + ppmu_current_level = _attributes.AttributeViReal64(1150019) + '''Type: float + + Specifies the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. Specify valid values for the current level using the PPMU_ConfigureCurrentLevelRange method. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_level` + ''' + ppmu_current_level_range = _attributes.AttributeViReal64(1150020) + '''Type: float + + Specifies the range of valid values for the current level, in amps, that the PPMU forces to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_level_range` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_level_range` + ''' + ppmu_current_limit = _attributes.AttributeViReal64(1150054) + '''Type: float + + Specifies the current limit, in amps, that the output cannot exceed while the PPMU forces voltage to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Voltage. The PXIe-6570/6571 does not support the ppmu_current_limit property and only allows configuration of the ppmu_current_limit_range property. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit` + ''' + ppmu_current_limit_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PPMUCurrentLimitBehavior, 1150064) + '''Type: enums.PPMUCurrentLimitBehavior + + Specifies how the output should behave when the current limit is reached. + + +-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +===================================+=========================================================================================================================================+ + | PPMUCurrentLimitBehavior.REGULATE | Controls output current so that it does not exceed the current limit. Power continues to generate even if the current limit is reached. | + +-----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_behavior` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit_behavior` + ''' + ppmu_current_limit_range = _attributes.AttributeViReal64(1150017) + '''Type: float + + Specifies the valid range, in amps, to which the current limit can be set while the PPMU forces voltage to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Voltage. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_range` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit_range` + ''' + ppmu_current_limit_supported = _attributes.AttributeViBoolean(1150055) + '''Type: bool + + Returns whether the device supports configuration of a current limit when you set the ppmu_output_function property to DC Voltage. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_current_limit_supported` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_current_limit_supported` + ''' + ppmu_output_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PPMUOutputFunction, 1150015) + '''Type: enums.PPMUOutputFunction + + Specifies whether the PPMU forces voltage or current to the DUT. + + +----------------------------+--------------------------------------------+ + | Defined Values: | | + +============================+============================================+ + | PPMUOutputFunction.VOLTAGE | Specifies the output method to DC Voltage. | + +----------------------------+--------------------------------------------+ + | PPMUOutputFunction.CURRENT | Specifies the output method to DC Current. | + +----------------------------+--------------------------------------------+ + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_output_function` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_output_function` + ''' + ppmu_voltage_level = _attributes.AttributeViReal64(1150016) + '''Type: float + + Specifies the voltage level, in volts, that the PPMU forces to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Voltage. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_level` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_voltage_level` + ''' + ppmu_voltage_limit_high = _attributes.AttributeViReal64(1150022) + '''Type: float + + Specifies the maximum voltage limit, or high clamp voltage (V :sub:`CH` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_high` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_voltage_limit_high` + ''' + ppmu_voltage_limit_low = _attributes.AttributeViReal64(1150021) + '''Type: float + + Specifies the minimum voltage limit, or low clamp voltage (V :sub:`CL` ), in volts, at the pin when the PPMU forces current to the DUT. This property is applicable only when you set the ppmu_output_function property to DC Current. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].ppmu_voltage_limit_low` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.ppmu_voltage_limit_low` + ''' + query_instrument_status = _attributes.AttributeViBoolean(1050003) + '''Type: bool + + Specifies whether the NI-Digital Pattern Driver queries the digital pattern instrument status after each operation. The instrument status is always queried, regardless of the property setting. + ''' + range_check = _attributes.AttributeViBoolean(1050002) + '''Type: bool + + Checks the range and validates parameter and property values you pass to NI-Digital Pattern Driver methods. Ranges are always checked, regardless of the property setting. + ''' + record_coercions = _attributes.AttributeViBoolean(1050006) + '''Type: bool + + Specifies whether the IVI engine keeps a list of the value coercions it makes for integer and real type properties. Enabling record value coercions is not supported. + ''' + rio_event_terminal_name = _attributes.AttributeViString(1150091) + '''Type: str + + Specifies the terminal name for the output signal of the specified instance of a RIO Event. You can use this terminal name as an input signal source for another trigger. + + Tip: + This property can be set/get on specific rio_events within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_events to specify a subset. + + Example: :py:attr:`my_session.rio_events[ ... ].rio_event_terminal_name` + + To set/get on all rio_events, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.rio_event_terminal_name` + ''' + rio_trigger_terminal_name = _attributes.AttributeViString(1150089) + '''Type: str + + Specifies the terminal name from which the exported RIO trigger signal may be routed to other instruments through the PXI trigger bus. You can use this signal to trigger other instruments when the RIO trigger instance asserts on the digital pattern instrument. + + Tip: + This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_terminal_name` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.rio_trigger_terminal_name` + ''' + rio_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150086) + '''Type: enums.TriggerType + + Disables the rio trigger or configures it for hardware triggering. The default value is TriggerType.NONE. + + +--------------------------+------------------------------------------------------------------+ + | Valid Values: | | + +==========================+==================================================================+ + | TriggerType.NONE | Disables the conditional jump trigger. | + +--------------------------+------------------------------------------------------------------+ + | TriggerType.DIGITAL_EDGE | Configures the conditional jump trigger for hardware triggering. | + +--------------------------+------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific rio_triggers within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container rio_triggers to specify a subset. + + Example: :py:attr:`my_session.rio_triggers[ ... ].rio_trigger_type` + + To set/get on all rio_triggers, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.rio_trigger_type` + ''' + selected_function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SelectedFunction, 1150004) + '''Type: enums.SelectedFunction + + Caution: In the Disconnect state, some I/O protection and sensing circuitry remains exposed. Do not subject the instrument to voltage beyond its operating range. + + Specifies whether digital pattern instrument channels are controlled by the pattern sequencer or PPMU, disconnected, or off. + + +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +=============================+==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | SelectedFunction.DIGITAL | The pin is connected to the driver, comparator, and active load methods. The PPMU is not sourcing, but can make voltage measurements. The state of the digital pin driver when you change the selected_function to Digital is determined by the most recent call to the write_static method or the last vector of the most recently executed pattern burst, whichever happened last. Use the write_static method to control the state of the digital pin driver through software. Use the burst_pattern method to control the state of the digital pin driver through a pattern. Set the **selectDigitalFunction** parameter of the burst_pattern method to True to automatically switch the selected_function of the pins in the pattern burst to SelectedFunction.DIGITAL. | + +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SelectedFunction.PPMU | The pin is connected to the PPMU. The driver, comparator, and active load are off while this method is selected. Call the ppmu_source method to source a voltage or current. The ppmu_source method automatically switches the selected_function to the PPMU state and starts sourcing from the PPMU. Changing the selected_function to SelectedFunction.DISCONNECT, SelectedFunction.OFF, or SelectedFunction.DIGITAL causes the PPMU to stop sourcing. If you set the selected_function property to PPMU, the PPMU is initially not sourcing. | + +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SelectedFunction.OFF | The pin is electrically connected, and the PPMU and digital pin driver are off while this method is selected. | + +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SelectedFunction.DISCONNECT | The pin is electrically disconnected from instrument methods. Selecting this method causes the PPMU to stop sourcing prior to disconnecting the pin. | + +-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: You can make PPMU voltage measurements using the ppmu_measure method from within any selected_function. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].selected_function` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.selected_function` + ''' + sequencer_flag_terminal_name = _attributes.AttributeViString(1150059) + '''Type: str + + Specifies the terminal name for the output trigger signal of the Sequencer Flags trigger. You can use this terminal name as an input signal source for another trigger. + ''' + serial_number = _attributes.AttributeViString(1150001) + '''Type: str + + Returns the serial number of the device. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].serial_number` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.serial_number` + ''' + simulate = _attributes.AttributeViBoolean(1050005) + '''Type: bool + + Simulates I/O operations. After you open a session, you cannot change the simulation state. Use the __init__ method to enable simulation. + ''' + specific_driver_class_spec_major_version = _attributes.AttributeViInt32(1050515) + '''Type: int + + Returns the major version number of the class specification with which NI-Digital is compliant. This property is not supported. + ''' + specific_driver_class_spec_minor_version = _attributes.AttributeViInt32(1050516) + '''Type: int + + Returns the minor version number of the class specification with which NI-Digital is compliant. This property is not supported. + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + Returns a string that contains a brief description of the NI-Digital Pattern driver. + ''' + specific_driver_prefix = _attributes.AttributeViString(1050302) + '''Type: str + + Returns a string that contains the prefix for the NI-Digital Pattern driver. + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + Returns a string that contains additional version information about the NI-Digital Pattern Driver. For example, the driver can return Driver: NI-Digital 16.0 as the value of this property. + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + Returns a string ("National Instruments") that contains the name of the vendor that supplies the NI-Digital Pattern Driver. + ''' + start_label = _attributes.AttributeViString(1150023) + '''Type: str + + Specifies the pattern name or exported pattern label from which to start bursting the pattern. + ''' + start_trigger_terminal_name = _attributes.AttributeViString(1150039) + '''Type: str + + Specifies the terminal name for the output trigger signal of the Start trigger. You can use this terminal name as an input signal source for another trigger. + ''' + start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1150029) + '''Type: enums.TriggerType + + Specifies the Start trigger type. The digital pattern instrument waits for this trigger after you call the init method or the burst_pattern method, and does not burst a pattern until this trigger is received. + + +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +==========================+========================================================================================================================================================================================================================================================================================================+ + | TriggerType.NONE | Disables the Start trigger. Pattern bursting starts immediately after you call the init method or the burst_pattern method. | + +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | TriggerType.DIGITAL_EDGE | Pattern bursting does not start until the digital pattern instrument detects a digital edge. | + +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | TriggerType.SOFTWARE | Pattern bursting does not start until the digital pattern instrument receives a software Start trigger. Create a software Start trigger by calling the send_software_edge_trigger method and selecting start trigger in the **trigger** parameter.Related information: SendSoftwareEdgeTrigger method. | + +--------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + supported_instrument_models = _attributes.AttributeViString(1050327) + '''Type: str + + Returns a comma delimited string that contains the supported digital pattern instrument models for the specific driver. + ''' + tdr_endpoint_termination = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TDREndpointTermination, 1150081) + '''Type: enums.TDREndpointTermination + + Specifies whether TDR Channels are connected to an open circuit or a short to ground. + ''' + tdr_offset = _attributes.AttributeViReal64TimeDeltaSeconds(1150051) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the TDR Offset. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].tdr_offset` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.tdr_offset` + ''' + termination_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TerminationMode, 1150006) + '''Type: enums.TerminationMode + + Specifies the behavior of the pin during non-drive cycles. + + +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values: | | + +=============================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | TerminationMode.ACTIVE_LOAD | Specifies that, for non-drive pin states (L, H, X, V, M, E), the active load is connected and the instrument sources or sinks a defined amount of current to load the DUT. The amount of current sourced by the instrument and therefore sunk by the DUT is specified by IOL. The amount of current sunk by the instrument and therefore sourced by the DUT is specified by IOH. The voltage at which the instrument changes between sourcing and sinking is specified by VCOM. | + +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | TerminationMode.VTERM | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver terminates the pin to the configured VTERM voltage through a 50 Ω impedance. VTERM is adjustable to allow for the pin to terminate at a set level. This is useful for instruments that might operate incorrectly if an instrument pin is unterminated and is allowed to float to any voltage level within the instrument voltage range. To address this issue, enable VTERM by configuring the VTERM pin level to the desired voltage and selecting the VTERM termination mode. Setting VTERM to 0 V and selecting the VTERM termination mode has the effect of connecting a 50 Ω termination to ground, which provides an effective 50 Ω impedance for the pin. This can be useful for improving signal integrity of certain DUTs by reducing reflections while the DUT drives the pin. | + +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | TerminationMode.HIGH_Z | Specifies that, for non-drive pin states (L, H, X, V, M, E), the pin driver is put in a high-impedance state and the active load is disabled. | + +-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].termination_mode` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.termination_mode` + ''' + timing_absolute_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150072) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies a timing delay, measured in seconds, and applies the delay to the digital pattern instrument in addition to TDR and calibration adjustments. If the timing_absolute_delay_enabled property is set to True, this value is the intermodule skew measured by NI-TClk. You can modify this value to override the timing delay and align the I/O timing of this instrument with another instrument that shares the same reference clock. If the timing_absolute_delay_enabled property is False, this property will return 0.0. Changing the timing_absolute_delay_enabled property from False to True will set the timing_absolute_delay value back to your previously set value. + + Tip: + This property can be set/get on specific instruments within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].timing_absolute_delay` + + To set/get on all instruments, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.timing_absolute_delay` + ''' + timing_absolute_delay_enabled = _attributes.AttributeViBoolean(1150071) + '''Type: bool + + Specifies whether the timing_absolute_delay property should be applied to adjust the digital pattern instrument timing reference relative to other instruments in the system. Do not use this feature with digital pattern instruments in a Semiconductor Test System (STS). Timing absolute delay conflicts with the adjustment performed during STS timing calibration. When set to True, the digital pattern instrument automatically adjusts the timing absolute delay to correct the instrument timing reference relative to other instruments in the system for better timing alignment among synchronized instruments. + ''' + vih = _attributes.AttributeViReal64(1150008) + '''Type: float + + Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic high (1). + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vih` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vih` + ''' + vil = _attributes.AttributeViReal64(1150007) + '''Type: float + + Specifies the voltage that the digital pattern instrument will apply to the input of the DUT when the test instrument drives a logic low (0). + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vil` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vil` + ''' + voh = _attributes.AttributeViReal64(1150010) + '''Type: float + + Specifies the output voltage from the DUT above which the comparator on the digital pattern test instrument interprets a logic high (H). + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].voh` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.voh` + ''' + vol = _attributes.AttributeViReal64(1150009) + '''Type: float + + Specifies the output voltage from the DUT below which the comparator on the digital pattern test instrument interprets a logic low (L). + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vol` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vol` + ''' + vterm = _attributes.AttributeViReal64(1150011) + '''Type: float + + Specifies the termination voltage the digital pattern instrument applies during non-drive cycles when the termination mode is set to V :sub:`term`. The instrument applies the termination voltage through a 50 Ω parallel termination resistance. + + Tip: + This property can be set/get on specific channels or pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels or pins to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vterm` + + To set/get on all channels or pins, you can call the property directly on the :py:class:`nidigital.Session`. + + Example: :py:attr:`my_session.vterm` + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + self.pins = _RepeatedCapabilities(self, '', repeated_capability_list) + self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) + self.pattern_opcode_events = _RepeatedCapabilities(self, 'patternOpcodeEvent', repeated_capability_list) + self.conditional_jump_triggers = _RepeatedCapabilities(self, 'conditionalJumpTrigger', repeated_capability_list) + self.sites = _RepeatedCapabilities(self, 'site', repeated_capability_list) + self.rio_events = _RepeatedCapabilities(self, 'RIOEvent', repeated_capability_list) + self.rio_triggers = _RepeatedCapabilities(self, 'RIOTrigger', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nidigital', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def apply_levels_and_timing(self, levels_sheet, timing_sheet, initial_state_high_pins=None, initial_state_low_pins=None, initial_state_tristate_pins=None): + r'''apply_levels_and_timing + + Applies digital levels and timing values defined in previously loaded levels and timing sheets. When applying a levels sheet, only the levels specified in the sheet are affected. Any levels not specified in the sheet remain unchanged. When applying a timing sheet, all existing time sets are deleted before the new time sets are loaded. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].apply_levels_and_timing` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.apply_levels_and_timing` + + Args: + levels_sheet (str): Name of the levels sheet to apply. Use the name of the sheet or pass the absolute file path you use in the load_specifications_levels_and_timing method. The name of the levels sheet is the file name without the directory and file extension. + + timing_sheet (str): Name of the timing sheet to apply. Use the name of the sheet or pass the absolute file path that you use in the load_specifications_levels_and_timing method. The name of the timing sheet is the file name without the directory and file extension. + + initial_state_high_pins (basic sequence types or str): Comma-delimited list of pins, pin groups, or channels to initialize to a high state. + + initial_state_low_pins (basic sequence types or str): Comma-delimited list of pins, pin groups, or channels to initialize to a low state. + + initial_state_tristate_pins (basic sequence types or str): Comma-delimited list of pins, pin groups, or channels to initialize to a non-drive state (X) + + ''' + initial_state_high_pins = _converters.convert_repeated_capabilities_without_prefix(initial_state_high_pins) + initial_state_low_pins = _converters.convert_repeated_capabilities_without_prefix(initial_state_low_pins) + initial_state_tristate_pins = _converters.convert_repeated_capabilities_without_prefix(initial_state_tristate_pins) + self._interpreter.apply_levels_and_timing(self._repeated_capability, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins) + + @ivi_synchronized + def apply_tdr_offsets(self, offsets): + r'''apply_tdr_offsets + + Applies the correction for propagation delay offsets to a digital pattern instrument. Use this method to apply TDR offsets that are stored from a past measurement or are measured by means other than the tdr method. Also use this method to apply correction for offsets if the **applyOffsets** input of the tdr method was set to False at the time of measurement. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].apply_tdr_offsets` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.apply_tdr_offsets` + + Args: + offsets (basic sequence of hightime.timedelta, datetime.timedelta, or float in seconds): TDR offsets to apply, in seconds. Specify an offset for each pin or channel in the repeated capabilities. If the repeated capabilities contain pin names, you must specify offsets for each site in the channel map per pin. + + ''' + offsets = _converters.convert_timedeltas_to_seconds_real64(offsets) + self._interpreter.apply_tdr_offsets(self._repeated_capability, offsets) + + @ivi_synchronized + def _burst_pattern(self, start_label, select_digital_function=True, wait_until_done=True, timeout=hightime.timedelta(seconds=10.0)): + r'''_burst_pattern + + Uses the **startLabel** you specify to burst the pattern on the sites you specify and provides the option to wait for the burst to complete. Digital pins retain their state at the end of a pattern burst until the first vector of a subsequent pattern burst, a call to write_static, or a call to apply_levels_and_timing. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._burst_pattern` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._burst_pattern` + + Args: + start_label (str): Pattern name or exported pattern label from which to start bursting the pattern. + + select_digital_function (bool): A Boolean that specifies whether to select the digital method for the pins in the pattern prior to bursting. + + wait_until_done (bool): A Boolean that indicates whether to wait until the bursting is complete. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + self._interpreter.burst_pattern(self._repeated_capability, start_label, select_digital_function, wait_until_done, timeout) + + @ivi_synchronized + def clock_generator_abort(self): + r'''clock_generator_abort + + Stops clock generation on the specified channel(s) or pin(s) and pin group(s). + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clock_generator_abort` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.clock_generator_abort` + ''' + self._interpreter.clock_generator_abort(self._repeated_capability) + + @ivi_synchronized + def clock_generator_generate_clock(self, frequency, select_digital_function=True): + r'''clock_generator_generate_clock + + Configures clock generator frequency and initiates clock generation on the specified channel(s) or pin(s) and pin group(s). + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clock_generator_generate_clock` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.clock_generator_generate_clock` + + Args: + frequency (float): The frequency of the clock generation, in Hz. + + select_digital_function (bool): A Boolean that specifies whether to select the digital method for the pins specified prior to starting clock generation. + + ''' + self._interpreter.clock_generator_generate_clock(self._repeated_capability, frequency, select_digital_function) + + @ivi_synchronized + def configure_active_load_levels(self, iol, ioh, vcom): + r'''configure_active_load_levels + + Configures I\ :sub:`OL`, I\ :sub:`OH`, and V\ :sub:`COM` levels for the active load on the pins you specify. The DUT sources or sinks current based on the level values. To enable active load, set the termination mode to TerminationMode.ACTIVE_LOAD. To disable active load, set the termination mode of the instrument to TerminationMode.HIGH_Z or TerminationMode.VTERM. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_active_load_levels` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_active_load_levels` + + Args: + iol (float): Maximum current that the DUT sinks while outputting a voltage below V\ :sub:`COM`. + + ioh (float): Maximum current that the DUT sources while outputting a voltage above V\ :sub:`COM`. + + vcom (float): Commutating voltage level at which the active load circuit switches between sourcing current and sinking current. + + ''' + self._interpreter.configure_active_load_levels(self._repeated_capability, iol, ioh, vcom) + + @ivi_synchronized + def configure_pattern_burst_sites(self): + r'''configure_pattern_burst_sites + + Configures which sites burst the pattern on the next call to the initiate method. The pattern burst sites can also be modified through the repeated capabilities for the burst_pattern method. If a site has been disabled through the disable_sites method, the site does not burst a pattern even if included in the pattern burst sites. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].configure_pattern_burst_sites` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_pattern_burst_sites` + ''' + self._interpreter.configure_pattern_burst_sites(self._repeated_capability) + + @ivi_synchronized + def configure_time_set_compare_edges_strobe(self, time_set_name, strobe_edge): + r'''configure_time_set_compare_edges_strobe + + Configures the strobe edge time for the specified pins. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe` + + Args: + time_set_name (str): The specified time set name. + + strobe_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Time when the comparison happens within a vector period. + + ''' + strobe_edge = _converters.convert_timedelta_to_seconds_real64(strobe_edge) + self._interpreter.configure_time_set_compare_edges_strobe(self._repeated_capability, time_set_name, strobe_edge) + + @ivi_synchronized + def configure_time_set_compare_edges_strobe2x(self, time_set_name, strobe_edge, strobe2_edge): + r'''configure_time_set_compare_edges_strobe2x + + Configures the compare strobes for the specified pins in the time set, including the 2x strobe. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_compare_edges_strobe2x` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_compare_edges_strobe2x` + + Args: + time_set_name (str): The specified time set name. + + strobe_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Time when the comparison happens within a vector period. + + strobe2_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Time when the comparison happens for the second DUT cycle within a vector period. + + ''' + strobe_edge = _converters.convert_timedelta_to_seconds_real64(strobe_edge) + strobe2_edge = _converters.convert_timedelta_to_seconds_real64(strobe2_edge) + self._interpreter.configure_time_set_compare_edges_strobe2x(self._repeated_capability, time_set_name, strobe_edge, strobe2_edge) + + @ivi_synchronized + def configure_time_set_drive_edges(self, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): + r'''configure_time_set_drive_edges + + Configures the drive format and drive edge placement for the specified pins. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_drive_edges` + + Args: + time_set_name (str): The specified time set name. + + format (enums.DriveFormat): Drive format of the time set. + + - DriveFormat.NR: Non-return. + - DriveFormat.RL: Return to low. + - DriveFormat.RH: Return to high. + - DriveFormat.SBC: Surround by complement. + + drive_on_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. + + drive_data_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. + + drive_return_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. + + drive_off_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). + + ''' + if type(format) is not enums.DriveFormat: + raise TypeError('Parameter format must be of type ' + str(enums.DriveFormat)) + drive_on_edge = _converters.convert_timedelta_to_seconds_real64(drive_on_edge) + drive_data_edge = _converters.convert_timedelta_to_seconds_real64(drive_data_edge) + drive_return_edge = _converters.convert_timedelta_to_seconds_real64(drive_return_edge) + drive_off_edge = _converters.convert_timedelta_to_seconds_real64(drive_off_edge) + self._interpreter.configure_time_set_drive_edges(self._repeated_capability, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge) + + @ivi_synchronized + def configure_time_set_drive_edges2x(self, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): + r'''configure_time_set_drive_edges2x + + Configures the drive edges of the pins in the time set, including 2x edges. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_edges2x` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_drive_edges2x` + + Args: + time_set_name (str): The specified time set name. + + format (enums.DriveFormat): Drive format of the time set. + + - DriveFormat.NR: Non-return. + - DriveFormat.RL: Return to low. + - DriveFormat.RH: Return to high. + - DriveFormat.SBC: Surround by complement. + + drive_on_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period for turning on the pin driver.This option applies only when the prior vector left the pin in a non-drive pin state (L, H, X, V, M, E). For the SBC format, this option specifies the delay from the beginning of the vector period at which the complement of the pattern value is driven. + + drive_data_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pattern data is driven to the pattern value.The ending state from the previous vector persists until this point. + + drive_return_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data to the return value, as specified in the format. + + drive_off_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period to turn off the pin driver when the next vector period uses a non-drive symbol (L, H, X, V, M, E). + + drive_data2_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pattern data in the second DUT cycle is driven to the pattern value. + + drive_return2_edge (hightime.timedelta, datetime.timedelta, or float in seconds): Delay, in seconds, from the beginning of the vector period until the pin changes from the pattern data in the second DUT cycle to the return value, as specified in the format. + + ''' + if type(format) is not enums.DriveFormat: + raise TypeError('Parameter format must be of type ' + str(enums.DriveFormat)) + drive_on_edge = _converters.convert_timedelta_to_seconds_real64(drive_on_edge) + drive_data_edge = _converters.convert_timedelta_to_seconds_real64(drive_data_edge) + drive_return_edge = _converters.convert_timedelta_to_seconds_real64(drive_return_edge) + drive_off_edge = _converters.convert_timedelta_to_seconds_real64(drive_off_edge) + drive_data2_edge = _converters.convert_timedelta_to_seconds_real64(drive_data2_edge) + drive_return2_edge = _converters.convert_timedelta_to_seconds_real64(drive_return2_edge) + self._interpreter.configure_time_set_drive_edges2x(self._repeated_capability, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge) + + @ivi_synchronized + def configure_time_set_drive_format(self, time_set_name, drive_format): + r'''configure_time_set_drive_format + + Configures the drive format for the pins specified in the **pinList**. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_drive_format` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_drive_format` + + Args: + time_set_name (str): The specified time set name. + + drive_format (enums.DriveFormat): Drive format of the time set. + + - DriveFormat.NR: Non-return. + - DriveFormat.RL: Return to low. + - DriveFormat.RH: Return to high. + - DriveFormat.SBC: Surround by complement. + + ''' + if type(drive_format) is not enums.DriveFormat: + raise TypeError('Parameter drive_format must be of type ' + str(enums.DriveFormat)) + self._interpreter.configure_time_set_drive_format(self._repeated_capability, time_set_name, drive_format) + + @ivi_synchronized + def configure_time_set_edge(self, time_set_name, edge, time): + r'''configure_time_set_edge + + Configures the edge placement for the pins specified in the pin list. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_edge` + + Args: + time_set_name (str): The specified time set name. + + edge (enums.TimeSetEdgeType): Name of the edge. + + - TimeSetEdgeType.DRIVE_ON + - TimeSetEdgeType.DRIVE_DATA + - TimeSetEdgeType.DRIVE_RETURN + - TimeSetEdgeType.DRIVE_OFF + - TimeSetEdgeType.COMPARE_STROBE + - TimeSetEdgeType.DRIVE_DATA2 + - TimeSetEdgeType.DRIVE_RETURN2 + - TimeSetEdgeType.COMPARE_STROBE2 + + time (hightime.timedelta, datetime.timedelta, or float in seconds): The time from the beginning of the vector period in which to place the edge. + + ''' + if type(edge) is not enums.TimeSetEdgeType: + raise TypeError('Parameter edge must be of type ' + str(enums.TimeSetEdgeType)) + time = _converters.convert_timedelta_to_seconds_real64(time) + self._interpreter.configure_time_set_edge(self._repeated_capability, time_set_name, edge, time) + + @ivi_synchronized + def configure_time_set_edge_multiplier(self, time_set_name, edge_multiplier): + r'''configure_time_set_edge_multiplier + + Configures the edge multiplier of the pins in the time set. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].configure_time_set_edge_multiplier` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_time_set_edge_multiplier` + + Args: + time_set_name (str): The specified time set name. + + edge_multiplier (int): The specified edge multiplier for the pins in the pin list. + + ''' + self._interpreter.configure_time_set_edge_multiplier(self._repeated_capability, time_set_name, edge_multiplier) + + @ivi_synchronized + def configure_voltage_levels(self, vil, vih, vol, voh, vterm): + r'''configure_voltage_levels + + Configures voltage levels for the pins you specify. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_voltage_levels` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.configure_voltage_levels` + + Args: + vil (float): Voltage that the instrument will apply to the input of the DUT when the pin driver drives a logic low (0). + + vih (float): Voltage that the instrument will apply to the input of the DUT when the test instrument drives a logic high (1). + + vol (float): Output voltage below which the comparator on the pin driver interprets a logic low (L). + + voh (float): Output voltage above which the comparator on the pin driver interprets a logic high (H). + + vterm (float): Termination voltage the instrument applies during non-drive cycles when the termination mode is set to V\ :sub:`term`. The instrument applies the termination voltage through a 50 ohm parallel termination resistance. + + ''' + self._interpreter.configure_voltage_levels(self._repeated_capability, vil, vih, vol, voh, vterm) + + @ivi_synchronized + def create_capture_waveform_parallel(self, waveform_name): + r'''create_capture_waveform_parallel + + Sets the capture waveform settings for parallel acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_parallel` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_capture_waveform_parallel` + + Args: + waveform_name (str): Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. + + ''' + self._interpreter.create_capture_waveform_parallel(self._repeated_capability, waveform_name) + + @ivi_synchronized + def create_capture_waveform_serial(self, waveform_name, sample_width, bit_order): + r'''create_capture_waveform_serial + + Sets the capture waveform settings for serial acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_capture_waveform_serial` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_capture_waveform_serial` + + Args: + waveform_name (str): Waveform name you want to use. Use the waveform_name with the capture_start opcode in your pattern. + + sample_width (int): Width in bits of each serial sample. Valid values are between 1 and 32. + + bit_order (enums.BitOrder): Order in which to shift the bits. + + - BitOrder.MSB: Specifies the bit order by most significant bit first. + - BitOrder.LSB: Specifies the bit order by least significant bit first. + + ''' + if type(bit_order) is not enums.BitOrder: + raise TypeError('Parameter bit_order must be of type ' + str(enums.BitOrder)) + self._interpreter.create_capture_waveform_serial(self._repeated_capability, waveform_name, sample_width, bit_order) + + @ivi_synchronized + def create_source_waveform_parallel(self, waveform_name, data_mapping): + r'''create_source_waveform_parallel + + Sets the source waveform settings required for parallel sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_parallel` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_source_waveform_parallel` + + Args: + waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + data_mapping (enums.SourceDataMapping): Parameter that specifies how to map data on multiple sites. + + - SourceDataMapping.BROADCAST: Broadcasts the waveform you specify to all sites. + - SourceDataMapping.SITE_UNIQUE: Sources unique waveform data to each site. + + ''' + if type(data_mapping) is not enums.SourceDataMapping: + raise TypeError('Parameter data_mapping must be of type ' + str(enums.SourceDataMapping)) + self._interpreter.create_source_waveform_parallel(self._repeated_capability, waveform_name, data_mapping) + + @ivi_synchronized + def create_source_waveform_serial(self, waveform_name, data_mapping, sample_width, bit_order): + r'''create_source_waveform_serial + + Sets the source waveform settings required for serial sourcing. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].create_source_waveform_serial` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.create_source_waveform_serial` + + Args: + waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + data_mapping (enums.SourceDataMapping): Parameter that specifies how to map data on multiple sites. + + - SourceDataMapping.BROADCAST: Broadcasts the waveform you specify to all sites. + - SourceDataMapping.SITE_UNIQUE: Sources unique waveform data to each site. + + sample_width (int): Width in bits of each serial sample. Valid values are between 1 and 32. + + bit_order (enums.BitOrder): Order in which to shift the bits. + + - BitOrder.MSB: Specifies the bit order by most significant bit first. + - BitOrder.LSB: Specifies the bit order by least significant bit first. + + ''' + if type(data_mapping) is not enums.SourceDataMapping: + raise TypeError('Parameter data_mapping must be of type ' + str(enums.SourceDataMapping)) + if type(bit_order) is not enums.BitOrder: + raise TypeError('Parameter bit_order must be of type ' + str(enums.BitOrder)) + self._interpreter.create_source_waveform_serial(self._repeated_capability, waveform_name, data_mapping, sample_width, bit_order) + + @ivi_synchronized + def disable_sites(self): + r'''disable_sites + + Disables specified sites. Disabled sites are not included in pattern bursts initiated by the initiate method or the burst_pattern method, even if the site is specified in the list of pattern burst sites in configure_pattern_burst_sites method or in the repeated capabilities for the burst_pattern method. Additionally, if you specify a list of pin or pin group names in repeated capabilities in any NI-Digital method, digital pattern instrument channels mapped to disabled sites are not affected by the method. The methods that return per-pin data, such as the ppmu_measure method, do not return data for channels mapped to disabled sites. The digital pattern instrument channels mapped to the sites specified are left in their current state. NI TestStand Semiconductor Module requires all sites to always be enabled, and manages the set of active sites without disabling the sites in the digital instrument session. Do not use this method with the Semiconductor Module. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].disable_sites` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.disable_sites` + ''' + self._interpreter.disable_sites(self._repeated_capability) + + @ivi_synchronized + def enable_sites(self): + r'''enable_sites + + Enables the sites you specify. All sites are enabled by default. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].enable_sites` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.enable_sites` + ''' + self._interpreter.enable_sites(self._repeated_capability) + + @ivi_synchronized + def burst_pattern(self, start_label, select_digital_function=True, wait_until_done=True, timeout=hightime.timedelta(seconds=10.0)): + '''burst_pattern + + Uses the start_label you specify to burst the pattern on the sites you specify. If you + specify wait_until_done as True, waits for the burst to complete, and returns comparison results for each site. + + Digital pins retain their state at the end of a pattern burst until the first vector of the pattern burst, a call to + write_static, or a call to apply_levels_and_timing. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].burst_pattern` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.burst_pattern` + + Args: + start_label (str): Pattern name or exported pattern label from which to start bursting the pattern. + + select_digital_function (bool): A Boolean that specifies whether to select the digital method for the pins in the pattern prior to bursting. + + wait_until_done (bool): A Boolean that indicates whether to wait until the bursting is complete. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + + Returns: + pass_fail ({ int: bool, int: bool, ... }): Dictionary where each key is a site number and value is pass/fail, + if wait_until_done is specified as True. Else, None. + + ''' + self._burst_pattern(start_label, select_digital_function, wait_until_done, timeout) + + if wait_until_done: + return self.get_site_pass_fail() + else: + return None + + @ivi_synchronized + def fetch_capture_waveform(self, waveform_name, samples_to_read, timeout=hightime.timedelta(seconds=10.0)): + '''fetch_capture_waveform + + Returns dictionary where each key is a site number and value is a collection of digital states representing capture waveform data + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].fetch_capture_waveform` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.fetch_capture_waveform` + + Args: + waveform_name (str): Waveform name you create with the create capture waveform method. Use the waveform_name parameter with capture_start opcode in your pattern. + + samples_to_read (int): Number of samples to fetch. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + + Returns: + waveform ({ int: memoryview of array.array of unsigned int, int: memoryview of array.array of unsigned int, ... }): Dictionary where each key is a site number and value is a collection of digital states representing capture waveform data + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + data, actual_num_waveforms, actual_samples_per_waveform = self._interpreter.fetch_capture_waveform(self._repeated_capability, waveform_name, samples_to_read, timeout) + + # Get the site list + site_list = self._get_site_results_site_numbers(enums._SiteResultType.CAPTURE_WAVEFORM) + assert len(site_list) == actual_num_waveforms + + waveforms = {} + + mv = memoryview(data) + + for i in range(actual_num_waveforms): + start = i * actual_samples_per_waveform + end = start + actual_samples_per_waveform + waveforms[site_list[i]] = mv[start:end] + + return waveforms + + @ivi_synchronized + def fetch_history_ram_cycle_information(self, position, samples_to_read): + '''fetch_history_ram_cycle_information + + Returns the pattern information acquired for the specified cycles. + + If the pattern is using the edge multiplier feature, cycle numbers represent tester cycles, each of which may + consist of multiple DUT cycles. When using pins with mixed edge multipliers, pins may return + PinState.PIN_STATE_NOT_ACQUIRED for DUT cycles where those pins do not have edges defined. + + Site number on which to retrieve pattern information must be specified via sites repeated capability. + The method returns an error if more than one site is specified. + + Pins for which to retrieve pattern information must be specified via pins repeated capability. + If pins are not specified, pin list from the pattern containing the start label is used. Call + get_pattern_pin_names with the start label to retrieve the pins associated with the pattern burst: + + .. code:: python + + session.sites[0].pins['PinA', 'PinB'].fetch_history_ram_cycle_information(0, -1) + + Note: + Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. + + history_ram_trigger_type should be used to specify the trigger condition on which History RAM + starts acquiring pattern information. + + If History RAM trigger is configured as HistoryRAMTriggerType.CYCLE_NUMBER, + cycle_number_history_ram_trigger_cycle_number should be used to specify the cycle number on which + History RAM starts acquiring pattern information. + + If History RAM trigger is configured as HistoryRAMTriggerType.PATTERN_LABEL, + pattern_label_history_ram_trigger_label should be used to specify the pattern label from which to + start acquiring pattern information. + pattern_label_history_ram_trigger_vector_offset should be used to specify the number of vectors + following the specified pattern label from which to start acquiring pattern information. + pattern_label_history_ram_trigger_cycle_offset should be used to specify the number of cycles + following the specified pattern label and vector offset from which to start acquiring pattern information. + + For all History RAM trigger conditions, history_ram_pretrigger_samples should be used to specify + the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only + acquire failed cycles, you must set history_ram_pretrigger_samples to 0. + + history_ram_cycles_to_acquire should be used to specify which cycles History RAM acquires after + the trigger conditions are met. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].fetch_history_ram_cycle_information` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.fetch_history_ram_cycle_information` + + Args: + position (int): Sample index from which to start fetching pattern information. + + samples_to_read (int): Number of samples to fetch. A value of -1 specifies to fetch all available samples. + + + Returns: + history_ram_cycle_information (list of HistoryRAMCycleInformation): Returns a list of class instances with + the following information about each pattern cycle: + + - **pattern_name** (str) Name of the pattern for the acquired cycle. + - **time_set_name** (str) Time set for the acquired cycle. + - **vector_number** (int) Vector number within the pattern for the acquired cycle. Vector numbers start + at 0 from the beginning of the pattern. + - **cycle_number** (int) Cycle number acquired by this History RAM sample. Cycle numbers start at 0 + from the beginning of the pattern burst. + - **scan_cycle_number** (int) Scan cycle number acquired by this History RAM sample. Scan cycle numbers + start at 0 from the first cycle of the scan vector. Scan cycle numbers are -1 for cycles that do not + have a scan opcode. + - **expected_pin_states** (list of list of enums.PinState) Pin states as expected by the loaded + pattern in the order specified in the pin list. Pins without defined edges in the specified DUT cycle + will have a value of PinState.PIN_STATE_NOT_ACQUIRED. + Length of the outer list will be equal to the value of edge multiplier for the given vector. + Length of the inner list will be equal to the number of pins requested. + - **actual_pin_states** (list of list of enums.PinState) Pin states acquired by History RAM in the + order specified in the pin list. Pins without defined edges in the specified DUT cycle will have a + value of PinState.PIN_STATE_NOT_ACQUIRED. + Length of the outer list will be equal to the value of edge multiplier for the given vector. + Length of the inner list will be equal to the number of pins requested. + - **per_pin_pass_fail** (list of list of bool) Pass fail information for pins in the order specified in + the pin list. Pins without defined edges in the specified DUT cycle will have a value of pass (True). + Length of the outer list will be equal to the value of edge multiplier for the given vector. + Length of the inner list will be equal to the number of pins requested. + + ''' + # Extract the site number and pin list from repeated capability + repeated_capability_lists = _converters.convert_chained_repeated_capability_to_parts(self._repeated_capability) + site = repeated_capability_lists[0] + if not site.startswith('site'): + raise ValueError('Site number on which to retrieve pattern information must be specified via sites repeated capability.') + pins = '' if len(repeated_capability_lists) == 1 else repeated_capability_lists[1] + + # Put site back into repeated capability container; it will be used by other + # sites-rep-cap-based methods that will be called later. + self._repeated_capability = site + + if position < 0: + raise ValueError('position should be greater than or equal to 0.') + + if samples_to_read < -1: + raise ValueError('samples_to_read should be greater than or equal to -1.') + + # site is passed as repeated capability + samples_available = self.get_history_ram_sample_count() + if position > samples_available: + raise ValueError('position: Specified value = {}, Maximum value = {}.'.format(position, samples_available - 1)) + + if samples_to_read == -1: + with _NoChannel(session=self): + if not self.history_ram_number_of_samples_is_finite: + raise RuntimeError( + 'Specifying -1 to fetch all History RAM samples is not supported when the digital pattern instrument is ' + 'configured for continuous History RAM acquisition. You must specify an exact number of samples to fetch.') + samples_to_read = samples_available - position + + if position + samples_to_read > samples_available: + raise ValueError( + 'position: Specified value = {}, samples_to_read: Specified value = {}; Samples available = {}.' + .format(position, samples_to_read, samples_available - position)) + + pattern_names = {} + time_set_names = {} + cycle_infos = [] + for _ in range(samples_to_read): + + # site is passed as repeated capability + pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles = self._fetch_history_ram_cycle_information(position) + + if pattern_index not in pattern_names: + # Repeated capability is not used + pattern_names[pattern_index] = self._get_pattern_name(pattern_index) + pattern_name = pattern_names[pattern_index] + + if time_set_index not in time_set_names: + # Repeated capability is not used + time_set_names[time_set_index] = self._get_time_set_name(time_set_index) + time_set_name = time_set_names[time_set_index] + + # site is passed as repeated capability + scan_cycle_number = self._fetch_history_ram_scan_cycle_number(position) + + vector_expected_pin_states = [] + vector_actual_pin_states = [] + vector_per_pin_pass_fail = [] + for dut_cycle_index in range(num_dut_cycles): + # site is passed as repeated capability + cycle_expected_pin_states, cycle_actual_pin_states, cycle_per_pin_pass_fail = self._fetch_history_ram_cycle_pin_data(pins, position, dut_cycle_index) + vector_expected_pin_states.append(cycle_expected_pin_states) + vector_actual_pin_states.append(cycle_actual_pin_states) + vector_per_pin_pass_fail.append(cycle_per_pin_pass_fail) + + cycle_infos.append(history_ram_cycle_information.HistoryRAMCycleInformation( + pattern_name=pattern_name, + time_set_name=time_set_name, + vector_number=vector_number, + cycle_number=cycle_number, + scan_cycle_number=scan_cycle_number, + expected_pin_states=vector_expected_pin_states, + actual_pin_states=vector_actual_pin_states, + per_pin_pass_fail=vector_per_pin_pass_fail)) + position += 1 + + return cycle_infos + + @ivi_synchronized + def get_pin_results_pin_information(self): + '''get_pin_results_pin_information + + Returns the pin names, site numbers, and channel names that correspond to per-pin data read from the digital pattern instrument. The method returns pin information in the same order as values read using the read_static method, ppmu_measure method, and get_fail_count method. Use this method to match values the previously listed methods return with pins, sites, and instrument channels. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_pin_results_pin_information` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_pin_results_pin_information` + + Returns: + pin_info (list of PinInfo): List of named tuples with fields: + + - **pin_name** (str) + - **site_number** (int) + - **channel_name** (str) + + ''' + import collections + PinInfo = collections.namedtuple('PinInformation', ['pin_name', 'site_number', 'channel_name']) + + pin_indexes, site_numbers, channel_indexes = self._get_pin_results_pin_information() + assert len(pin_indexes) == len(site_numbers), "length of returned arrays don't match" + assert len(pin_indexes) == len(channel_indexes), "length of returned arrays don't match" + + pin_infos = [] + for i in range(len(pin_indexes)): + pin_name = "" if pin_indexes[i] == -1 else self._get_pin_name(pin_indexes[i]) + channel_names = self.get_channel_names(channel_indexes[i] - 1) # channel_indexes are 1-based + assert 1 == len(channel_names) + pin_infos.append(PinInfo(pin_name=pin_name, site_number=site_numbers[i], channel_name=channel_names[0])) + + return pin_infos + + @ivi_synchronized + def get_site_pass_fail(self): + '''get_site_pass_fail + + Returns dictionary where each key is a site number and value is pass/fail + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].get_site_pass_fail` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_site_pass_fail` + + Returns: + pass_fail ({ int: bool, int: bool, ... }): Dictionary where each key is a site number and value is pass/fail + + ''' + # For site_list, we just use the repeated capability + result_list = self._get_site_pass_fail() + site_list = self._get_site_results_site_numbers(enums._SiteResultType.PASS_FAIL) + assert len(site_list) == len(result_list) + + return dict(zip(site_list, result_list)) + + @ivi_synchronized + def _fetch_history_ram_cycle_information(self, sample_index): + r'''_fetch_history_ram_cycle_information + + Gets the per-cycle pattern information acquired for the specified cycle. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._fetch_history_ram_cycle_information` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._fetch_history_ram_cycle_information` + + Args: + sample_index (int): The index of the History RAM sample to fetch. Each History RAM sample contains information about a single cycle in the pattern burst. + + + Returns: + pattern_index (int): The returned index of the pattern for the acquired cycle. Use _get_pattern_name to get the name of the pattern from its index. + + time_set_index (int): The returned time set for the acquired cycle. Use _get_time_set_name to get the name of the time set from its index. + + vector_number (int): The returned vector number within the pattern for the acquired cycle. Vector numbers start at 0 from the beginning of the pattern. + + cycle_number (int): Returns the cycle number acquired by this History RAM sample. Cycle numbers start at 0 from the beginning of the pattern burst. + + num_dut_cycles (int): The returned number of DUT cycles contained in the cycle acquired by this History RAM sample. This is only needed if the pattern uses the edge multiplier feature. + + ''' + pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles = self._interpreter.fetch_history_ram_cycle_information(self._repeated_capability, sample_index) + return pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles + + @ivi_synchronized + def _fetch_history_ram_cycle_pin_data(self, pin_list, sample_index, dut_cycle_index): + r'''_fetch_history_ram_cycle_pin_data + + Gets the per-pin pattern data acquired for the specified cycle. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._fetch_history_ram_cycle_pin_data` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._fetch_history_ram_cycle_pin_data` + + Args: + pin_list (str): The specified pins for which to retrieve History RAM data. If empty, the pin list from the pattern containing the start label is used. Call get_pattern_pin_names or GetPatternPinIndexeswith the start label to retrieve the pins associated with the pattern burst. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + sample_index (int): The index of the History RAM sample to fetch. Each History RAM sample contains information about a single cycle in the pattern burst. + + dut_cycle_index (int): The specified index of the DUT cycle. If the pattern does not use the edge multiplier feature, pass 0 for this parameter. For History RAM samples that contain multiple DUT cycles, indicated by the **numDutCycles** value returned by _fetch_history_ram_cycle_information, call this method multiple times to retrieve pin states for each DUT cycle. The DUT cycle index should start at 0. + + + Returns: + expected_pin_states (list of enums.PinState): The returned pin state as expected by the loaded pattern in the order specified in **pinList**. Pins without defined edges in the specified DUT cycle will return PinState.NOT_A_PIN_STATE + + actual_pin_states (list of enums.PinState): The returned pin state acquired by History RAM in the order specified in **pinList**. Pins without defined edges in the specified DUT cycle will return PinState.NOT_A_PIN_STATE + + per_pin_pass_fail (list of bool): The returned pass fail information for pins in the order specified in **pinList**. Pins without defined edges in the specified DUT cycle will return pass (True). + + ''' + expected_pin_states, actual_pin_states, per_pin_pass_fail = self._interpreter.fetch_history_ram_cycle_pin_data(self._repeated_capability, pin_list, sample_index, dut_cycle_index) + return expected_pin_states, actual_pin_states, per_pin_pass_fail + + @ivi_synchronized + def _fetch_history_ram_scan_cycle_number(self, sample_index): + r'''_fetch_history_ram_scan_cycle_number + + Fetches the History RAM Scan Cycle Number for the sample index. If the sample is not from a scan vector, the scan cycle number will be returned as -1. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._fetch_history_ram_scan_cycle_number` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._fetch_history_ram_scan_cycle_number` + + Args: + sample_index (int): The index of the History RAM sample to fetch. Each History RAM sample contains information about a single cycle in the pattern burst. + + + Returns: + scan_cycle_number (int): Returns the scan cycle number acquired by this History RAM sample. Scan cycle numbers start at 0 from the first cycle of the scan vector. Scan cycle numbers are -1 for cycles that do not have a scan opcode. + + ''' + scan_cycle_number = self._interpreter.fetch_history_ram_scan_cycle_number(self._repeated_capability, sample_index) + return scan_cycle_number + + @ivi_synchronized + def frequency_counter_measure_frequency(self): + r'''frequency_counter_measure_frequency + + Measures the frequency on the specified channel(s) over the specified measurement time. All channels in the repeated capabilities should have the same measurement time. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].frequency_counter_measure_frequency` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.frequency_counter_measure_frequency` + + Returns: + frequencies (list of float): The returned frequency counter measurement, in Hz.This method returns -1 if the measurement is invalid for the channel. + + ''' + frequencies = self._interpreter.frequency_counter_measure_frequency(self._repeated_capability) + return frequencies + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute (int): The ID of a property. + + + Returns: + value (bool): The returned current value of the property; pass the address of a ViBoolean variable. + + ''' + value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute (int): The ID of a property. + + + Returns: + value (int): The returned current value of the property; pass the address of a ViInt32 variable. + + ''' + value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_int64(self, attribute): + r'''_get_attribute_vi_int64 + + Queries the value of a ViInt64 property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int64` + + Args: + attribute (int): The ID of a property. + + + Returns: + value (int): The returned current value of the property; pass the address of a ViInt64 variable. + + ''' + value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute): + r'''_get_attribute_vi_real64 + + This method queries the value of a ViReal64 property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute (int): The ID of a property. + + + Returns: + value (float): The returned current value of the property; pass the address of a ViReal64 variable. + + ''' + value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute): + r'''_get_attribute_vi_string + + Queries the value of a ViString property. Use this method to get the values of digital pattern instrument-specific properties and inherent IVI properties. You must provide a ViChar array to serve as a buffer for the value. You pass the number of bytes in the buffer as the **bufferSize**. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the **bufferSize**, the method copies (bufferSize - 1) bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the **bufferSize** you must pass to get the entire value. For example, if the value is "123456" and the **bufferSize** is 4, the method places "123" into the buffer and returns 7. If you want to call this method just to get the required buffer size, you can pass 0 for the **bufferSize** and VI_NULL for the value. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute (int): The ID of a property. + + + Returns: + value (str): The buffer in which the method returns the current value of the property; the buffer must be of type ViChar and have at least as many bytes as indicated in the **bufferSize**. + + ''' + value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def get_channel_names(self, indices): + r'''get_channel_names + + Returns a list of channel names for given channel indices. + + Args: + indices (basic sequence types, str, or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + Returns: + names (list of str): The channel name(s) at the specified indices. + + ''' + indices = _converters.convert_repeated_capabilities_without_prefix(indices) + names = self._interpreter.get_channel_names(indices) + return _converters.convert_comma_separated_string_to_list(names) + + @ivi_synchronized + def get_fail_count(self): + r'''get_fail_count + + Returns the comparison fail count for pins in the repeated capabilities. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_fail_count` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_fail_count` + + Returns: + failure_count (list of int): Number of failures in an array. If a site is disabled or not enabled for burst, the method does not return data for that site. You can also use the get_pin_results_pin_information method to obtain a sorted list of returned sites and channels. + + ''' + failure_count = self._interpreter.get_fail_count(self._repeated_capability) + return failure_count + + @ivi_synchronized + def get_history_ram_sample_count(self): + r'''get_history_ram_sample_count + + Returns the number of samples History RAM acquired on the last pattern burst. + + Note: + Before bursting a pattern, you must configure the History RAM trigger and specify which cycles to acquire. + + history_ram_trigger_type should be used to specify the trigger condition on which History RAM + starts acquiring pattern information. + + If History RAM trigger is configured as HistoryRAMTriggerType.CYCLE_NUMBER, + cycle_number_history_ram_trigger_cycle_number should be used to specify the cycle number on which + History RAM starts acquiring pattern information. + + If History RAM trigger is configured as HistoryRAMTriggerType.PATTERN_LABEL, + pattern_label_history_ram_trigger_label should be used to specify the pattern label from which to + start acquiring pattern information. + pattern_label_history_ram_trigger_vector_offset should be used to specify the number of vectors + following the specified pattern label from which to start acquiring pattern information. + pattern_label_history_ram_trigger_cycle_offset should be used to specify the number of cycles + following the specified pattern label and vector offset from which to start acquiring pattern information. + + For all History RAM trigger conditions, history_ram_pretrigger_samples should be used to specify + the number of samples to acquire before the trigger conditions are met. If you configure History RAM to only + acquire failed cycles, you must set history_ram_pretrigger_samples to 0. + + history_ram_cycles_to_acquire should be used to specify which cycles History RAM acquires after + the trigger conditions are met. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].get_history_ram_sample_count` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_history_ram_sample_count` + + Returns: + sample_count (int): The returned number of samples that History RAM acquired. + + ''' + sample_count = self._interpreter.get_history_ram_sample_count(self._repeated_capability) + return sample_count + + @ivi_synchronized + def _get_pattern_name(self, pattern_index): + r'''_get_pattern_name + + TBD + + Args: + pattern_index (int): + + + Returns: + name (str): + + ''' + name = self._interpreter.get_pattern_name(pattern_index) + return name + + @ivi_synchronized + def _get_pin_name(self, pin_index): + r'''_get_pin_name + + Returns the name of the pin at the index you specify. You must provide a ViChar array to serve as a buffer for the value. You pass the number of bytes in the buffer as the **nameBufferSize**. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the buffer size, the method copies (buffer size - 1) bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is "123456" and the buffer size is 4, the method places "123" into the buffer and returns 7. If you want to call this method just to get the required buffer size, you can pass 0 for **nameBufferSize** and VI_NULL for the name. + + Args: + pin_index (int): Index of pin to query. Pin indexes begin at 0. + + + Returns: + name (str): Returns the pin name at the specified **pinIndex**. + + ''' + name = self._interpreter.get_pin_name(pin_index) + return name + + @ivi_synchronized + def _get_pin_results_pin_information(self): + r'''_get_pin_results_pin_information + + Returns the pin names, site numbers, and channel names that correspond to per-pin data read from the digital pattern instrument. The method returns pin information in the same order as values read using the read_static method, ppmu_measure method, and get_fail_count method. Use this method to match values the previously listed methods return with pins, sites, and instrument channels. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_pin_results_pin_information` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_pin_results_pin_information` + + Returns: + pin_indexes (list of int): The returned index of the pins corresponding to data read from the digital pattern instrument using the specified repeated capabilities. If you do not want to use this parameter, pass VI_NULL. + Call _get_pin_name to get the name of the pin associated with an index. + + site_numbers (list of int): The returned site numbers that correspond to data read from the digital pattern instrument using the specified repeated capabilities. If you do not want to use this parameter, pass VI_NULL. + + channel_indexes (list of int): The returned index of channels corresponding to data read from the digital pattern instrument using the specified repeated capabilities. If you do not want to use this parameter, pass VI_NULL. + Call GetChannelName to get the name of the channel associated with an index. Channel indexes are one-based. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + ''' + pin_indexes, site_numbers, channel_indexes = self._interpreter.get_pin_results_pin_information(self._repeated_capability) + return pin_indexes, site_numbers, channel_indexes + + @ivi_synchronized + def _get_site_pass_fail(self): + r'''_get_site_pass_fail + + Returns the pass or fail results for each site. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._get_site_pass_fail` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_site_pass_fail` + + Returns: + pass_fail (list of bool): The returned array of pass (True) and fail results for the sites you specify in the repeated capabilities. If sites span multiple digital pattern instruments, you must use an AND operator for the partial results for those sites returned by each instrument. If a site is disabled or not enabled for burst, the method does not return data for that site. Use the SortSiteResultsViBoolean method to order and combine the data to match the repeated capabilities. You can also use the _get_site_results_site_numbers method to determine the order of the sites returned from this method call so that you can match the pass array with site numbers. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + ''' + pass_fail = self._interpreter.get_site_pass_fail(self._repeated_capability) + return pass_fail + + @ivi_synchronized + def _get_site_results_site_numbers(self, site_result_type): + r'''_get_site_results_site_numbers + + Returns the site numbers that correspond to per-site data read from the digital pattern instrument. The method returns site numbers in the same order as values read using the _get_site_pass_fail and fetch_capture_waveform_u32 methods. Use this method to match values the previously listed methods return with site numbers. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._get_site_results_site_numbers` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._get_site_results_site_numbers` + + Args: + site_result_type (enums._SiteResultType): The type of data specified in the results array. + + - _SiteResultType.PASS_FAIL: Get site numbers for pass/fail data. + - _SiteResultType.CAPTURE_WAVEFORM: Get site numbers for capture waveforms. + + + Returns: + site_numbers (list of int): The returned array of site numbers that correspond to the values specified by **siteResultType**. + + ''' + if type(site_result_type) is not enums._SiteResultType: + raise TypeError('Parameter site_result_type must be of type ' + str(enums._SiteResultType)) + site_numbers = self._interpreter.get_site_results_site_numbers(self._repeated_capability, site_result_type) + return site_numbers + + @ivi_synchronized + def get_time_set_drive_format(self, time_set_name): + r'''get_time_set_drive_format + + Returns the drive format of a pin in the specified time set. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].get_time_set_drive_format` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_time_set_drive_format` + + Args: + time_set_name (str): The specified time set name. + + + Returns: + format (enums.DriveFormat): Returned drive format of the time set for the specified pin. + + ''' + format = self._interpreter.get_time_set_drive_format(self._repeated_capability, time_set_name) + return format + + @ivi_synchronized + def get_time_set_edge(self, time_set_name, edge): + r'''get_time_set_edge + + Returns the edge time of a pin in the specified time set. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_time_set_edge` + + Args: + time_set_name (str): The specified time set name. + + edge (enums.TimeSetEdgeType): Name of the edge. + + - TimeSetEdgeType.DRIVE_ON + - TimeSetEdgeType.DRIVE_DATA + - TimeSetEdgeType.DRIVE_RETURN + - TimeSetEdgeType.DRIVE_OFF + - TimeSetEdgeType.COMPARE_STROBE + - TimeSetEdgeType.DRIVE_DATA2 + - TimeSetEdgeType.DRIVE_RETURN2 + - TimeSetEdgeType.COMPARE_STROBE2 + + + Returns: + time (hightime.timedelta): Time from the beginning of the vector period in which to place the edge. + + ''' + if type(edge) is not enums.TimeSetEdgeType: + raise TypeError('Parameter edge must be of type ' + str(enums.TimeSetEdgeType)) + time = self._interpreter.get_time_set_edge(self._repeated_capability, time_set_name, edge) + return _converters.convert_seconds_real64_to_timedelta(time) + + @ivi_synchronized + def get_time_set_edge_multiplier(self, time_set_name): + r'''get_time_set_edge_multiplier + + Returns the edge multiplier of the specified time set. + + Tip: + This method can be called on specific pins within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container pins to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.pins[ ... ].get_time_set_edge_multiplier` + + To call the method on all pins, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.get_time_set_edge_multiplier` + + Args: + time_set_name (str): The specified time set name. + + + Returns: + edge_multiplier (int): Returned edge multiplier of the time set for the specified pin. + + ''' + edge_multiplier = self._interpreter.get_time_set_edge_multiplier(self._repeated_capability, time_set_name) + return edge_multiplier + + @ivi_synchronized + def _get_time_set_name(self, time_set_index): + r'''_get_time_set_name + + TBD + + Args: + time_set_index (int): + + + Returns: + name (str): + + ''' + name = self._interpreter.get_time_set_name(time_set_index) + return name + + @ivi_synchronized + def is_site_enabled(self): + r'''is_site_enabled + + Checks if a specified site is enabled. + + Note: The method returns an error if more than one site is specified. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].is_site_enabled` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.is_site_enabled` + + Returns: + enable (bool): Boolean value that returns whether the site is enabled or disabled. + + ''' + enable = self._interpreter.is_site_enabled(self._repeated_capability) + return enable + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-Digital Pattern Driver locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nidigital.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def ppmu_measure(self, measurement_type): + r'''ppmu_measure + + Instructs the PPMU to measure voltage or current. This method can be called to take a voltage measurement even if the pin method is not set to PPMU. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].ppmu_measure` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.ppmu_measure` + + Args: + measurement_type (enums.PPMUMeasurementType): Parameter that specifies whether the PPMU measures voltage or current from the DUT. + + - PPMUMeasurementType.CURRENT: The PPMU measures current from the DUT. + - PPMUMeasurementType.VOLTAGE: The PPMU measures voltage from the DUT. + + + Returns: + measurements (list of float): The returned array of measurements in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the get_pin_results_pin_information method to obtain a sorted list of returned sites and channels. + + ''' + if type(measurement_type) is not enums.PPMUMeasurementType: + raise TypeError('Parameter measurement_type must be of type ' + str(enums.PPMUMeasurementType)) + measurements = self._interpreter.ppmu_measure(self._repeated_capability, measurement_type) + return measurements + + @ivi_synchronized + def ppmu_source(self): + r'''ppmu_source + + Starts sourcing voltage or current from the PPMU. This method automatically selects the PPMU method. Changes to PPMU source settings do not take effect until you call this method. If you modify source settings after you call this method, you must call this method again for changes in the configuration to take effect. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].ppmu_source` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.ppmu_source` + ''' + self._interpreter.ppmu_source(self._repeated_capability) + + @ivi_synchronized + def read_static(self): + r'''read_static + + Reads the current state of comparators for pins you specify in the repeated capabilities. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_static` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.read_static` + + Returns: + data (list of enums.PinState): The returned array of pin states read from the channels in the repeated capabilities. Data is returned in the order you specify in the repeated capabilities. If a site is disabled, the method does not return data for that site. You can also use the get_pin_results_pin_information method to obtain a sorted list of returned sites and channels. + + - PinState.L: The comparators read a logic low pin state. + - PinState.H: The comparators read a logic high pin state. + - PinState.M: The comparators read a midband pin state. + - PinState.V: The comparators read a value that is above VOH and below VOL, which can occur when you set VOL higher than VOH. + + ''' + data = self._interpreter.read_static(self._repeated_capability) + return data + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute, value): + r'''_set_attribute_vi_boolean + + Sets the value of a ViBoolean property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute (int): The ID of a property. + + value (bool): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute, value): + r'''_set_attribute_vi_int32 + + Sets the value of a ViInt32 property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute (int): The ID of a property. + + value (int): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_int64(self, attribute, value): + r'''_set_attribute_vi_int64 + + Sets the value of a ViInt64 property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int64` + + Args: + attribute (int): The ID of a property. + + value (int): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute, value): + r'''_set_attribute_vi_real64 + + Sets the value of a ViIntReal64 property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute (int): The ID of a property. + + value (float): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute, value): + r'''_set_attribute_vi_string + + Sets the value of a ViString property. Use this method to set the values of digital pattern instrument-specific properties and inherent IVI properties. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute (int): The ID of a property. + + value (str): The value to which you want to set the property; some of the values might not be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute, value) + + @ivi_synchronized + def tdr(self, apply_offsets=True): + r'''tdr + + Measures propagation delays through cables, connectors, and load boards using Time-Domain Reflectometry (TDR). Ensure that the channels and pins you select are connected to an open circuit. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].tdr` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.tdr` + + Args: + apply_offsets (bool): A Boolean that specifies whether to apply the measured TDR offsets. If you need to adjust the measured offsets prior to applying, set this input to False, and call the apply_tdr_offsets method to specify the adjusted TDR offsets values. + + + Returns: + offsets (list of hightime.timedelta): Measured TDR offsets specified in seconds. + + ''' + offsets = self._interpreter.tdr(self._repeated_capability, apply_offsets) + return _converters.convert_seconds_real64_to_timedeltas(offsets) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + @ivi_synchronized + def _write_source_waveform_site_unique_u32(self, waveform_name, num_waveforms, samples_per_waveform, waveform_data): + r'''_write_source_waveform_site_unique_u32 + + Writes one waveform per site. Use this write method if you set the parameter of the create source waveform method to Site Unique. + + Tip: + This method can be called on specific sites within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ]._write_source_waveform_site_unique_u32` + + To call the method on all sites, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session._write_source_waveform_site_unique_u32` + + Args: + waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + num_waveforms (int): Number of waveforms. + + samples_per_waveform (int): Number of samples per waveform. + + waveform_data (array.array("L")): An array of samples to use as source data. Data for each site must be appended sequentially in the array (non-interleaved). + + ''' + self._interpreter.write_source_waveform_site_unique_u32(self._repeated_capability, waveform_name, num_waveforms, samples_per_waveform, waveform_data) + + @ivi_synchronized + def write_static(self, state): + r'''write_static + + Writes a static state to the specified pins. The selected pins remain in the specified state until the next pattern burst or call to this method. If there are uncommitted changes to levels or the termination mode, this method commits the changes to the pins. This method does not change the selected pin method. If you write a static state to a pin that does not have the Digital method selected, the new static state is stored by the instrument, and affects the state of the pin the next time you change the selected method to Digital. + + Tip: + This method can be called on specific channels within your :py:class:`nidigital.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].write_static` + + To call the method on all channels, you can call it directly on the :py:class:`nidigital.Session`. + + Example: :py:meth:`my_session.write_static` + + Args: + state (enums.WriteStaticPinState): Parameter that specifies one of the following digital states to assign to the pin. + + - WriteStaticPinState.ZERO: Specifies to drive low. + - WriteStaticPinState.ONE: Specifies to drive high. + - WriteStaticPinState.X: Specifies to not drive. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(state) is not enums.WriteStaticPinState: + raise TypeError('Parameter state must be of type ' + str(enums.WriteStaticPinState)) + self._interpreter.write_static(self._repeated_capability, state) + + def _error_message(self, error_code): + r'''_error_message + + Takes the error code returned by the digital pattern instrument driver methods, interprets it, and returns it as a user readable string. + + Args: + error_code (int): The specified error code. + + + Returns: + error_message (str): The error information formatted as a string. The array must contain at least 256 characters. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-Digital Pattern Driver session''' + + def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): + r'''An NI-Digital Pattern Driver session + + Creates and returns a new session to the specified digital pattern instrument to use in all subsequent method calls. To place the instrument in a known startup state when creating a new session, set the reset parameter to True, which is equivalent to calling the reset method immediately after initializing the session. + + Args: + resource_name (str): 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. **resourceName** can also be a logical IVI name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where ``PXI1Slot2`` is one instrument resource name and ``PXI1Slot3`` is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. + + +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | |Note| | Note   You only can specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and PXIe-6571. The instruments must be in the same chassis. | + +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. |Note| image:: note.gif + + Note: + + id_query (bool): A Boolean that verifies that the digital pattern instrument you initialize is supported by NI-Digital. NI-Digital automatically performs this query, so setting this parameter is not necessary. + + reset_device (bool): A Boolean that specifies whether to reset a digital pattern instrument to a known state when the session is initialized. Setting the **resetDevice** value to True is equivalent to calling the reset method immediately after initializing the session. + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + grpc_options (nidigital.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + new_vi (int): The returned instrument session. + + ''' + if grpc_options: + import nidigital._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_options fails, the error handler can reference it. + # And then here, once _init_with_options succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-Digital Pattern Driver', grpc_options.grpc_channel, connected) + + # NI-TClk does not work over NI gRPC Device Server + if not grpc_options: + self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Starts bursting the pattern configured by start_label, causing the NI-Digital session to be committed. To stop the pattern burst, call abort. If keep alive pattern is bursting when abort is called or upon exiting the context manager, keep alive pattern will not be stopped. To stop the keep alive pattern, call abort_keep_alive. + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Burst(self) + + def close(self): + '''close + + Closes the specified instrument session to a digital pattern instrument, aborts pattern execution, and unloads pattern memory. The channels on a digital pattern instrument remain in their current state. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Stops bursting the pattern. + ''' + self._interpreter.abort() + + @ivi_synchronized + def abort_keep_alive(self): + r'''abort_keep_alive + + Stops the keep alive pattern if it is currently running. If a pattern burst is in progress, the method aborts the pattern burst. If you start a new pattern burst while a keep alive pattern is running, the keep alive pattern runs to the last keep alive vector, and the new pattern burst starts on the next cycle. + ''' + self._interpreter.abort_keep_alive() + + @ivi_synchronized + def commit(self): + r'''commit + + Applies all previously configured pin levels, termination modes, clocks, triggers, and pattern timing to a digital pattern instrument. If you do not call the commit method, then the initiate method or the burst_pattern method will implicitly call this method for you. Calling this method moves the session from the Uncommitted state to the Committed state. + ''' + self._interpreter.commit() + + @ivi_synchronized + def configure_time_set_period(self, time_set_name, period): + r'''configure_time_set_period + + Configures the period of a time set. Use this method to modify time set values after applying a timing sheet with the apply_levels_and_timing method, or to create time sets programmatically without the use of timing sheets. This method does not modify the timing sheet file or the timing sheet contents that will be used in future calls to apply_levels_and_timing; it only affects the values of the current timing context. + + Args: + time_set_name (str): The specified time set name. + + period (hightime.timedelta, datetime.timedelta, or float in seconds): Period for this time set, in seconds. + + ''' + period = _converters.convert_timedelta_to_seconds_real64(period) + self._interpreter.configure_time_set_period(time_set_name, period) + + @ivi_synchronized + def create_capture_waveform_from_file_digicapture(self, waveform_name, waveform_file_path): + r'''create_capture_waveform_from_file_digicapture + + Creates a capture waveform with the configuration information from a Digicapture file generated by the Digital Pattern Editor. + + Args: + waveform_name (str): Waveform name you want to use. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the capture_start opcode in your pattern. + + waveform_file_path (str): Absolute file path to the capture waveform file (.digicapture) you want to load. + + ''' + self._interpreter.create_capture_waveform_from_file_digicapture(waveform_name, waveform_file_path) + + @ivi_synchronized + def create_source_waveform_from_file_tdms(self, waveform_name, waveform_file_path, write_waveform_data=True): + r'''create_source_waveform_from_file_tdms + + Creates a source waveform with configuration information from a TDMS file generated by the Digital Pattern Editor. It also optionally writes waveform data from the file. + + Args: + waveform_name (str): The waveform name you want to use from the file. You must specify waveform_name if the file contains multiple waveforms. Use the waveform_name with the source_start opcode in your pattern. + + waveform_file_path (str): Absolute file path to the load source waveform file (.tdms). + + write_waveform_data (bool): A Boolean that writes waveform data to source memory if True and the waveform data is in the file. + + ''' + self._interpreter.create_source_waveform_from_file_tdms(waveform_name, waveform_file_path, write_waveform_data) + + @ivi_synchronized + def create_time_set(self, name): + r'''create_time_set + + Creates a time set with the name that you specify. Use this method when you want to create time sets programmatically rather than with a timing sheet. + + Args: + name (str): The specified name of the new time set. + + ''' + self._interpreter.create_time_set(name) + + @ivi_synchronized + def delete_all_time_sets(self): + r'''delete_all_time_sets + + Deletes all time sets from instrument memory. + ''' + self._interpreter.delete_all_time_sets() + + @ivi_synchronized + def enable_match_fail_combination(self, sync_session): + '''enable_match_fail_combination + + Configures digital pattern instruments and the PXIe-6674T timing and synchronization instrument to combine pattern comparison results and control subsequent pattern execution across digital pattern instruments based on those results. You must initialize the PXIe-6674T using NI-Sync and call this method from a multi-instrument session. + ''' + self._interpreter.enable_match_fail_combination([self._interpreter.get_session_handle()], sync_session.session_handle) + + @ivi_synchronized + def load_specifications_levels_and_timing(self, specifications_file_paths=None, levels_file_paths=None, timing_file_paths=None): + '''load_specifications_levels_and_timing + + Loads settings in specifications, levels, and timing sheets. These settings are not + applied to the digital pattern instrument until apply_levels_and_timing is called. + + If the levels and timing sheets contains formulas, they are evaluated at load time. + If the formulas refer to variables, the specifications sheets that define those + variables must be loaded either first, or at the same time as the levels and timing sheets. + + Args: + specifications_file_paths (str or basic sequence of str): Absolute file path of one or more specifications files. + + levels_file_paths (str or basic sequence of str): Absolute file path of one or more levels sheet files. + + timing_file_paths (str or basic sequence of str): Absolute file path of one or more timing sheet files. + + ''' + self._call_method_with_iterable(self._load_specifications, specifications_file_paths) + self._call_method_with_iterable(self._load_levels, levels_file_paths) + self._call_method_with_iterable(self._load_timing, timing_file_paths) + + def _call_method_with_iterable(self, method, files): + if files is None: + return + if isinstance(files, str): + files = [files] + for f in files: + method(f) + + @ivi_synchronized + def self_test(self): + '''self_test + + Returns self test results from a digital pattern instrument. This test requires several minutes to execute. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+-------------------+ + | Self-Test Code | Description | + +================+===================+ + | 0 | Self test passed. | + +----------------+-------------------+ + | 1 | Self test failed. | + +----------------+-------------------+ + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def unload_specifications(self, file_paths): + '''unload_specifications + + Unloads the given specifications sheets present in the previously loaded + specifications files that you select. + + You must call load_specifications_levels_and_timing to reload the files with updated + specifications values. You must then call apply_levels_and_timing in order to apply + the levels and timing values that reference the updated specifications values. + + Args: + file_paths (str or basic sequence of str): Absolute file path of one or more loaded specifications files. + + ''' + self._call_method_with_iterable(self._unload_specifications, file_paths) + + @ivi_synchronized + def write_source_waveform_site_unique(self, waveform_name, waveform_data): + '''write_source_waveform_site_unique + + Writes one waveform per site. Use this write method if you set the parameter of the create source waveform method to Site Unique. + + Args: + waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + waveform_data ({ int: basic sequence of unsigned int, int: basic sequence of unsigned int, ... }): Dictionary where each key is a site number and value is a collection of samples to use as source data + + ''' + from collections.abc import Mapping + if not isinstance(waveform_data, Mapping): + raise TypeError("Expecting waveform_data to be a dictionary but got {}".format(type(waveform_data))) + site_list = [] + # We assume all the entries are the same length (we'll check later) to make the array the correct size + # Get an entry from the dictionary from https://stackoverflow.com/questions/30362391/how-do-you-find-the-first-key-in-a-dictionary + if len(waveform_data) == 0: + actual_samples_per_waveform = 0 + else: + actual_samples_per_waveform = len(waveform_data[next(iter(waveform_data))]) + data = array.array('L', [0]) * (len(waveform_data) * actual_samples_per_waveform) + mv = memoryview(data) + + i = 0 + for site in waveform_data: + if len(waveform_data[site]) != actual_samples_per_waveform: + raise ValueError('Mismatched length of waveforms. All must be the same length.') + # Check the type by using string comparison so that we don't import numpy unnecessarily. + if str(type(waveform_data[site])).find("'numpy.ndarray'") != -1: + import numpy + if waveform_data[site].dtype == numpy.uint32: + wfm = array.array('L', waveform_data[site]) + else: + raise TypeError("Unsupported dtype for waveform_data array element type. Is {}, expected {}".format(waveform_data[site].dtype, numpy.int32)) + + elif isinstance(waveform_data[site], array.array): + if waveform_data[site].typecode == 'L': + wfm = waveform_data[site] + else: + raise TypeError('Wrong waveform_data array element type. Must be unsigned 32 bit int ("L"), was {}'.format(waveform_data[site].typecode)) + + elif isinstance(waveform_data[site], list): + wfm = array.array('L', waveform_data[site]) + + else: + raise TypeError('Unknown array type: {}'.format(type(waveform_data[site]))) + + site_list.append(site) + + start = i * actual_samples_per_waveform + end = start + actual_samples_per_waveform + mv[start:end] = wfm + + i += 1 + + self.sites[site_list]._write_source_waveform_site_unique_u32(waveform_name, len(waveform_data), actual_samples_per_waveform, data) + + @ivi_synchronized + def get_pattern_pin_names(self, start_label): + r'''get_pattern_pin_names + + Returns the pattern pin list. + + Args: + start_label (str): Pattern name or exported pattern label from which to get the pin names that the pattern references. + + + Returns: + pin_list (list of str): List of pins referenced by the pattern with the **startLabel**. + + ''' + pin_list = self._interpreter.get_pattern_pin_names(start_label) + return _converters.convert_comma_separated_string_to_list(pin_list) + + @ivi_synchronized + def get_time_set_period(self, time_set_name): + r'''get_time_set_period + + Returns the period of the specified time set. + + Args: + time_set_name (str): The specified time set name. + + + Returns: + period (hightime.timedelta): Returned period, in seconds, that the edge is configured to. + + ''' + period = self._interpreter.get_time_set_period(time_set_name) + return _converters.convert_seconds_real64_to_timedelta(period) + + def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): + r'''_init_with_options + + Creates and returns a new session to the specified digital pattern instrument to use in all subsequent method calls. To place the instrument in a known startup state when creating a new session, set the reset parameter to True, which is equivalent to calling the reset method immediately after initializing the session. + + Args: + resource_name (str): 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. **resourceName** can also be a logical IVI name. This parameter accepts a comma-delimited list of strings in the form PXI1Slot2,PXI1Slot3, where ``PXI1Slot2`` is one instrument resource name and ``PXI1Slot3`` is another. When including more than one digital pattern instrument in the comma-delimited list of strings, list the instruments in the same order they appear in the pin map. + + +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | |Note| | Note   You only can specify multiple instruments of the same model. For example, you can list two PXIe-6570s but not a PXIe-6570 and PXIe-6571. The instruments must be in the same chassis. | + +--------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + .. |Note| image:: note.gif + + Note: + + id_query (bool): A Boolean that verifies that the digital pattern instrument you initialize is supported by NI-Digital. NI-Digital automatically performs this query, so setting this parameter is not necessary. + + reset_device (bool): A Boolean that specifies whether to reset a digital pattern instrument to a known state when the session is initialized. Setting the **resetDevice** value to True is equivalent to calling the reset method immediately after initializing the session. + + option_string (dict): The initial values of certain properties for the NI-Digital Pattern Driver session. The string can be empty. You can use the DriverSetup flag to simulate a digital pattern instrument. When simulating a digital pattern instrument, you must specify the model you want to simulate. For example, Simulate = 1, DriverSetup = Model:6570. + + + Returns: + new_vi (int): The returned instrument session. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + new_vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) + return new_vi + + @ivi_synchronized + def _initiate(self): + r'''_initiate + + Starts bursting the pattern configured by start_label, causing the NI-Digital session to be committed. To stop the pattern burst, call abort. If keep alive pattern is bursting when abort is called or upon exiting the context manager, keep alive pattern will not be stopped. To stop the keep alive pattern, call abort_keep_alive. + ''' + self._interpreter.initiate() + + @ivi_synchronized + def is_done(self): + r'''is_done + + Checks the hardware to determine if the pattern burst has completed or if any errors have occurred. + + Returns: + done (bool): A Boolean that indicates whether the pattern burst completed. + + ''' + done = self._interpreter.is_done() + return done + + @ivi_synchronized + def _load_levels(self, file_path): + r'''_load_levels + + Loads a levels sheet from a specified file. + + Args: + file_path (str): Absolute file path to the specified levels sheet file. + + ''' + self._interpreter.load_levels(file_path) + + @ivi_synchronized + def load_pattern(self, file_path): + r'''load_pattern + + Loads the specified pattern file. + + Args: + file_path (str): Absolute file path of the binary .digipat pattern file to load. Specify the pattern to burst using start_label or the start_label parameter of the burst_pattern method. + + ''' + self._interpreter.load_pattern(file_path) + + @ivi_synchronized + def load_pin_map(self, file_path): + r'''load_pin_map + + Loads a pin map file. You can load only a single pin and channel map file during an NI-Digital Pattern Driver session. To switch pin maps, create a new session or call the reset method. + + Args: + file_path (str): Absolute file path to a pin map file created with the Digital Pattern Editor or the NI TestStand Semiconductor Module. + + ''' + self._interpreter.load_pin_map(file_path) + + @ivi_synchronized + def _load_specifications(self, file_path): + r'''_load_specifications + + Loads a specifications sheet from a specified file. + + Args: + file_path (str): Absolute file path to a specifications file. + + ''' + self._interpreter.load_specifications(file_path) + + @ivi_synchronized + def _load_timing(self, file_path): + r'''_load_timing + + Loads a timing sheet from a specified file. + + Args: + file_path (str): Absolute file path to the specified timing sheet file. + + ''' + self._interpreter.load_timing(file_path) + + @ivi_synchronized + def read_sequencer_flag(self, flag): + r'''read_sequencer_flag + + Reads the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. + + Args: + flag (enums.SequencerFlag): The pattern sequencer flag you want to read. + + - SequencerFlag.FLAG0 ("seqflag0"): Reads pattern sequencer flag 0. + - SequencerFlag.FLAG1 ("seqflag1"): Reads pattern sequencer flag 1. + - SequencerFlag.FLAG2 ("seqflag2"): Reads pattern sequencer flag 2. + - SequencerFlag.FLAG3 ("seqflag3"): Reads pattern sequencer flag 3. + + + Returns: + value (bool): A Boolean that indicates the state of the pattern sequencer flag you specify. + + ''' + if type(flag) is not enums.SequencerFlag: + raise TypeError('Parameter flag must be of type ' + str(enums.SequencerFlag)) + value = self._interpreter.read_sequencer_flag(flag) + return value + + @ivi_synchronized + def read_sequencer_register(self, reg): + r'''read_sequencer_register + + Reads the value of a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. For example, you can use this method to read a register modified by the write_reg opcode during a pattern burst. + + Args: + reg (enums.SequencerRegister): The sequencer register to read from. + + - SequencerRegister.REGISTER0 ("reg0"): Reads sequencer register 0. + - SequencerRegister.REGISTER1 ("reg1"): Reads sequencer register 1. + - SequencerRegister.REGISTER2 ("reg2"): Reads sequencer register 2. + - SequencerRegister.REGISTER3 ("reg3"): Reads sequencer register 3. + - SequencerRegister.REGISTER4 ("reg4"): Reads sequencer register 4. + - SequencerRegister.REGISTER5 ("reg5"): Reads sequencer register 5. + - SequencerRegister.REGISTER6 ("reg6"): Reads sequencer register 6. + - SequencerRegister.REGISTER7 ("reg7"): Reads sequencer register 7. + - SequencerRegister.REGISTER8 ("reg8"): Reads sequencer register 8. + - SequencerRegister.REGISTER9 ("reg9"): Reads sequencer register 9. + - SequencerRegister.REGISTER10 ("reg10"): Reads sequencer register 10. + - SequencerRegister.REGISTER11 ("reg11"): Reads sequencer register 11. + - SequencerRegister.REGISTER12 ("reg12"): Reads sequencer register 12. + - SequencerRegister.REGISTER13 ("reg13"): Reads sequencer register 13. + - SequencerRegister.REGISTER14 ("reg14"): Reads sequencer register 14. + - SequencerRegister.REGISTER15 ("reg15"): Reads sequencer register 15. + + + Returns: + value (int): Value read from the sequencer register. + + ''' + if type(reg) is not enums.SequencerRegister: + raise TypeError('Parameter reg must be of type ' + str(enums.SequencerRegister)) + value = self._interpreter.read_sequencer_register(reg) + return value + + @ivi_synchronized + def reset_device(self): + r'''reset_device + + Returns a digital pattern instrument to a known state. This method performs the following actions: + + - Aborts pattern execution. + - Clears pin maps, time sets, source and capture waveforms, and patterns. + - Resets all properties to default values, including the selected_function property that is set to SelectedFunction.DISCONNECT, causing the I/O switches to open. + - Stops export of all external signals and events. + - Clears over-temperature and over-power conditions. + ''' + self._interpreter.reset_device() + + @ivi_synchronized + def self_calibrate(self): + r'''self_calibrate + + Performs self-calibration on a digital pattern instrument. + ''' + self._interpreter.self_calibrate() + + @ivi_synchronized + def send_software_edge_trigger(self, trigger, trigger_identifier): + r'''send_software_edge_trigger + + Forces a particular edge-based trigger to occur regardless of how the specified trigger is configured. You can use this method as a software override. + + Args: + trigger (enums.SoftwareTrigger): Trigger specifies the trigger you want to override. + + +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Defined Values | | + +==================================+=================================================================================================================================+ + | SoftwareTrigger.START | Overrides the Start trigger. You must specify an empty string in the trigger_identifier parameter. | + +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ + | SoftwareTrigger.CONDITIONAL_JUMP | Specifies to route a conditional jump trigger. You must specify a conditional jump trigger in the trigger_identifier parameter. | + +----------------------------------+---------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + trigger_identifier (str): Trigger Identifier specifies the instance of the trigger you want to override. + If trigger is specified as NIDIGITAL_VAL_START_TRIGGER, this parameter must be an empty string. If trigger is + specified as NIDIGITAL_VAL_CONDITIONAL_JUMP_TRIGGER, allowed values are conditionalJumpTrigger0, + conditionalJumpTrigger1, conditionalJumpTrigger2, and conditionalJumpTrigger3. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(trigger) is not enums.SoftwareTrigger: + raise TypeError('Parameter trigger must be of type ' + str(enums.SoftwareTrigger)) + self._interpreter.send_software_edge_trigger(trigger, trigger_identifier) + + @ivi_synchronized + def unload_all_patterns(self, unload_keep_alive_pattern=False): + r'''unload_all_patterns + + Unloads all patterns, source waveforms, and capture waveforms from a digital pattern instrument. + + Args: + unload_keep_alive_pattern (bool): A Boolean that specifies whether to keep or unload the keep alive pattern. + + ''' + self._interpreter.unload_all_patterns(unload_keep_alive_pattern) + + @ivi_synchronized + def _unload_specifications(self, file_path): + r'''_unload_specifications + + Unloads the given specifications sheet present in the previously loaded specifications file that you select. You must call the _load_specifications method to reload the file with updated specifications values. You must then call the apply_levels_and_timing method in order to apply the levels and timing values that reference the updated specifications values. + + Args: + file_path (str): Absolute file path to a loaded specifications file. + + ''' + self._interpreter.unload_specifications(file_path) + + @ivi_synchronized + def wait_until_done(self, timeout=hightime.timedelta(seconds=10.0)): + r'''wait_until_done + + Waits until the pattern burst has completed or the timeout has expired. + + Args: + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Maximum time (in seconds) allowed for this method to complete. If this method does not complete within this time interval, this method returns an error. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + self._interpreter.wait_until_done(timeout) + + @ivi_synchronized + def write_sequencer_flag(self, flag, value): + r'''write_sequencer_flag + + Writes the state of a pattern sequencer flag. Use pattern sequencer flags to coordinate execution between the pattern sequencer and a runtime test program. + + Args: + flag (enums.SequencerFlag): The pattern sequencer flag to write. + + - SequencerFlag.FLAG0 ("seqflag0"): Writes pattern sequencer flag 0. + - SequencerFlag.FLAG1 ("seqflag1"): Writes pattern sequencer flag 1. + - SequencerFlag.FLAG2 ("seqflag2"): Writes pattern sequencer flag 2. + - SequencerFlag.FLAG3 ("seqflag3"): Writes pattern sequencer flag 3. + + value (bool): A Boolean that assigns a state to the pattern sequencer flag you specify. + + ''' + if type(flag) is not enums.SequencerFlag: + raise TypeError('Parameter flag must be of type ' + str(enums.SequencerFlag)) + self._interpreter.write_sequencer_flag(flag, value) + + @ivi_synchronized + def write_sequencer_register(self, reg, value): + r'''write_sequencer_register + + Writes a value to a pattern sequencer register. Use pattern sequencer registers to pass numeric values between the pattern sequencer and a runtime test program. + + Args: + reg (enums.SequencerRegister): The sequencer register you want to write to. + + - SequencerRegister.REGISTER0 ("reg0"): Writes sequencer register 0. + - SequencerRegister.REGISTER1 ("reg1"): Writes sequencer register 1. + - SequencerRegister.REGISTER2 ("reg2"): Writes sequencer register 2. + - SequencerRegister.REGISTER3 ("reg3"): Writes sequencer register 3. + - SequencerRegister.REGISTER4 ("reg4"): Writes sequencer register 4. + - SequencerRegister.REGISTER5 ("reg5"): Writes sequencer register 5. + - SequencerRegister.REGISTER6 ("reg6"): Writes sequencer register 6. + - SequencerRegister.REGISTER7 ("reg7"): Writes sequencer register 7. + - SequencerRegister.REGISTER8 ("reg8"): Writes sequencer register 8. + - SequencerRegister.REGISTER9 ("reg9"): Writes sequencer register 9. + - SequencerRegister.REGISTER10 ("reg10"): Writes sequencer register 10. + - SequencerRegister.REGISTER11 ("reg11"): Writes sequencer register 11. + - SequencerRegister.REGISTER12 ("reg12"): Writes sequencer register 12. + - SequencerRegister.REGISTER13 ("reg13"): Writes sequencer register 13. + - SequencerRegister.REGISTER14 ("reg14"): Writes sequencer register 14. + - SequencerRegister.REGISTER15 ("reg15"): Writes sequencer register 15. + + value (int): The value you want to write to the register. + + ''' + if type(reg) is not enums.SequencerRegister: + raise TypeError('Parameter reg must be of type ' + str(enums.SequencerRegister)) + self._interpreter.write_sequencer_register(reg, value) + + @ivi_synchronized + def write_source_waveform_broadcast(self, waveform_name, waveform_data): + r'''write_source_waveform_broadcast + + Writes the same waveform data to all sites. Use this write method if you set the data_mapping parameter of the create source waveform method to SourceDataMapping.BROADCAST. + + Args: + waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + waveform_data (list of int): 1D array of samples to use as source data to apply to all sites. + + ''' + self._interpreter.write_source_waveform_broadcast(waveform_name, waveform_data) + + @ivi_synchronized + def write_source_waveform_data_from_file_tdms(self, waveform_name, waveform_file_path): + r'''write_source_waveform_data_from_file_tdms + + Writes a source waveform based on the waveform data and configuration information the file contains. + + Args: + waveform_name (str): The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern. + + waveform_file_path (str): Absolute file path to the load source waveform file (.tdms). + + ''' + self._interpreter.write_source_waveform_data_from_file_tdms(waveform_name, waveform_file_path) + + def _close(self): + r'''_close + + Closes the specified instrument session to a digital pattern instrument, aborts pattern execution, and unloads pattern memory. The channels on a digital pattern instrument remain in their current state. + ''' + self._interpreter.close() + + @ivi_synchronized + def reset(self): + r'''reset + + Returns a digital pattern instrument to a known state. This method performs the following actions: + + - Aborts pattern execution. + - Clears pin maps, time sets, source and capture waveforms, and patterns. + - Resets all properties to default values, including the selected_function property that is set to SelectedFunction.DISCONNECT, causing the I/O switches to open. + - Stops exporting all external signals and events. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Returns self test results from a digital pattern instrument. This test requires several minutes to execute. + + Returns: + test_result (int): A parameter that indicates if the self test passed (0) or failed (!=0). + + test_message (str): The returned self test status message. The array must contain at least 256 characters. + + ''' + test_result, test_message = self._interpreter.self_test() + return test_result, test_message diff --git a/generated/nidigital/nidigital/unit_tests/_matchers.py b/generated/nidigital/nidigital/unit_tests/_matchers.py new file mode 100644 index 0000000000..2832a0b8f3 --- /dev/null +++ b/generated/nidigital/nidigital/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nidigital._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nidigital/nidigital/unit_tests/_mock_helper.py b/generated/nidigital/nidigital/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..5a5e111dcf --- /dev/null +++ b/generated/nidigital/nidigital/unit_tests/_mock_helper.py @@ -0,0 +1,1320 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['Abort'] = {} + self._defaults['Abort']['return'] = 0 + self._defaults['AbortKeepAlive'] = {} + self._defaults['AbortKeepAlive']['return'] = 0 + self._defaults['ApplyLevelsAndTiming'] = {} + self._defaults['ApplyLevelsAndTiming']['return'] = 0 + self._defaults['ApplyTDROffsets'] = {} + self._defaults['ApplyTDROffsets']['return'] = 0 + self._defaults['BurstPattern'] = {} + self._defaults['BurstPattern']['return'] = 0 + self._defaults['ClockGenerator_Abort'] = {} + self._defaults['ClockGenerator_Abort']['return'] = 0 + self._defaults['ClockGenerator_GenerateClock'] = {} + self._defaults['ClockGenerator_GenerateClock']['return'] = 0 + self._defaults['Commit'] = {} + self._defaults['Commit']['return'] = 0 + self._defaults['ConfigureActiveLoadLevels'] = {} + self._defaults['ConfigureActiveLoadLevels']['return'] = 0 + self._defaults['ConfigurePatternBurstSites'] = {} + self._defaults['ConfigurePatternBurstSites']['return'] = 0 + self._defaults['ConfigureTimeSetCompareEdgesStrobe'] = {} + self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] = 0 + self._defaults['ConfigureTimeSetCompareEdgesStrobe2x'] = {} + self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] = 0 + self._defaults['ConfigureTimeSetDriveEdges'] = {} + self._defaults['ConfigureTimeSetDriveEdges']['return'] = 0 + self._defaults['ConfigureTimeSetDriveEdges2x'] = {} + self._defaults['ConfigureTimeSetDriveEdges2x']['return'] = 0 + self._defaults['ConfigureTimeSetDriveFormat'] = {} + self._defaults['ConfigureTimeSetDriveFormat']['return'] = 0 + self._defaults['ConfigureTimeSetEdge'] = {} + self._defaults['ConfigureTimeSetEdge']['return'] = 0 + self._defaults['ConfigureTimeSetEdgeMultiplier'] = {} + self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] = 0 + self._defaults['ConfigureTimeSetPeriod'] = {} + self._defaults['ConfigureTimeSetPeriod']['return'] = 0 + self._defaults['ConfigureVoltageLevels'] = {} + self._defaults['ConfigureVoltageLevels']['return'] = 0 + self._defaults['CreateCaptureWaveformFromFileDigicapture'] = {} + self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] = 0 + self._defaults['CreateCaptureWaveformParallel'] = {} + self._defaults['CreateCaptureWaveformParallel']['return'] = 0 + self._defaults['CreateCaptureWaveformSerial'] = {} + self._defaults['CreateCaptureWaveformSerial']['return'] = 0 + self._defaults['CreateSourceWaveformFromFileTDMS'] = {} + self._defaults['CreateSourceWaveformFromFileTDMS']['return'] = 0 + self._defaults['CreateSourceWaveformParallel'] = {} + self._defaults['CreateSourceWaveformParallel']['return'] = 0 + self._defaults['CreateSourceWaveformSerial'] = {} + self._defaults['CreateSourceWaveformSerial']['return'] = 0 + self._defaults['CreateTimeSet'] = {} + self._defaults['CreateTimeSet']['return'] = 0 + self._defaults['DeleteAllTimeSets'] = {} + self._defaults['DeleteAllTimeSets']['return'] = 0 + self._defaults['DisableSites'] = {} + self._defaults['DisableSites']['return'] = 0 + self._defaults['EnableMatchFailCombination'] = {} + self._defaults['EnableMatchFailCombination']['return'] = 0 + self._defaults['EnableSites'] = {} + self._defaults['EnableSites']['return'] = 0 + self._defaults['FetchCaptureWaveformU32'] = {} + self._defaults['FetchCaptureWaveformU32']['return'] = 0 + self._defaults['FetchCaptureWaveformU32']['actualNumWaveforms'] = None + self._defaults['FetchCaptureWaveformU32']['actualSamplesPerWaveform'] = None + self._defaults['FetchCaptureWaveformU32']['data'] = None + self._defaults['FetchHistoryRAMCycleInformation'] = {} + self._defaults['FetchHistoryRAMCycleInformation']['return'] = 0 + self._defaults['FetchHistoryRAMCycleInformation']['patternIndex'] = None + self._defaults['FetchHistoryRAMCycleInformation']['timeSetIndex'] = None + self._defaults['FetchHistoryRAMCycleInformation']['vectorNumber'] = None + self._defaults['FetchHistoryRAMCycleInformation']['cycleNumber'] = None + self._defaults['FetchHistoryRAMCycleInformation']['numDutCycles'] = None + self._defaults['FetchHistoryRAMCyclePinData'] = {} + self._defaults['FetchHistoryRAMCyclePinData']['return'] = 0 + self._defaults['FetchHistoryRAMCyclePinData']['actualNumPinData'] = None + self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'] = None + self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'] = None + self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'] = None + self._defaults['FetchHistoryRAMScanCycleNumber'] = {} + self._defaults['FetchHistoryRAMScanCycleNumber']['return'] = 0 + self._defaults['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] = None + self._defaults['FrequencyCounter_MeasureFrequency'] = {} + self._defaults['FrequencyCounter_MeasureFrequency']['return'] = 0 + self._defaults['FrequencyCounter_MeasureFrequency']['actualNumFrequencies'] = None + self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['value'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['value'] = None + self._defaults['GetAttributeViInt64'] = {} + self._defaults['GetAttributeViInt64']['return'] = 0 + self._defaults['GetAttributeViInt64']['value'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['value'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['value'] = None + self._defaults['GetChannelNameFromString'] = {} + self._defaults['GetChannelNameFromString']['return'] = 0 + self._defaults['GetChannelNameFromString']['name'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['errorDescription'] = None + self._defaults['GetFailCount'] = {} + self._defaults['GetFailCount']['return'] = 0 + self._defaults['GetFailCount']['actualNumRead'] = None + self._defaults['GetFailCount']['failureCount'] = None + self._defaults['GetHistoryRAMSampleCount'] = {} + self._defaults['GetHistoryRAMSampleCount']['return'] = 0 + self._defaults['GetHistoryRAMSampleCount']['sampleCount'] = None + self._defaults['GetPatternName'] = {} + self._defaults['GetPatternName']['return'] = 0 + self._defaults['GetPatternName']['name'] = None + self._defaults['GetPatternPinList'] = {} + self._defaults['GetPatternPinList']['return'] = 0 + self._defaults['GetPatternPinList']['pinList'] = None + self._defaults['GetPinName'] = {} + self._defaults['GetPinName']['return'] = 0 + self._defaults['GetPinName']['name'] = None + self._defaults['GetPinResultsPinInformation'] = {} + self._defaults['GetPinResultsPinInformation']['return'] = 0 + self._defaults['GetPinResultsPinInformation']['actualNumValues'] = None + self._defaults['GetPinResultsPinInformation']['pinIndexes'] = None + self._defaults['GetPinResultsPinInformation']['siteNumbers'] = None + self._defaults['GetPinResultsPinInformation']['channelIndexes'] = None + self._defaults['GetSitePassFail'] = {} + self._defaults['GetSitePassFail']['return'] = 0 + self._defaults['GetSitePassFail']['actualNumSites'] = None + self._defaults['GetSitePassFail']['passFail'] = None + self._defaults['GetSiteResultsSiteNumbers'] = {} + self._defaults['GetSiteResultsSiteNumbers']['return'] = 0 + self._defaults['GetSiteResultsSiteNumbers']['actualNumSiteNumbers'] = None + self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'] = None + self._defaults['GetTimeSetDriveFormat'] = {} + self._defaults['GetTimeSetDriveFormat']['return'] = 0 + self._defaults['GetTimeSetDriveFormat']['format'] = None + self._defaults['GetTimeSetEdge'] = {} + self._defaults['GetTimeSetEdge']['return'] = 0 + self._defaults['GetTimeSetEdge']['time'] = None + self._defaults['GetTimeSetEdgeMultiplier'] = {} + self._defaults['GetTimeSetEdgeMultiplier']['return'] = 0 + self._defaults['GetTimeSetEdgeMultiplier']['edgeMultiplier'] = None + self._defaults['GetTimeSetName'] = {} + self._defaults['GetTimeSetName']['return'] = 0 + self._defaults['GetTimeSetName']['name'] = None + self._defaults['GetTimeSetPeriod'] = {} + self._defaults['GetTimeSetPeriod']['return'] = 0 + self._defaults['GetTimeSetPeriod']['period'] = None + self._defaults['InitWithOptions'] = {} + self._defaults['InitWithOptions']['return'] = 0 + self._defaults['InitWithOptions']['newVi'] = None + self._defaults['Initiate'] = {} + self._defaults['Initiate']['return'] = 0 + self._defaults['IsDone'] = {} + self._defaults['IsDone']['return'] = 0 + self._defaults['IsDone']['done'] = None + self._defaults['IsSiteEnabled'] = {} + self._defaults['IsSiteEnabled']['return'] = 0 + self._defaults['IsSiteEnabled']['enable'] = None + self._defaults['LoadLevels'] = {} + self._defaults['LoadLevels']['return'] = 0 + self._defaults['LoadPattern'] = {} + self._defaults['LoadPattern']['return'] = 0 + self._defaults['LoadPinMap'] = {} + self._defaults['LoadPinMap']['return'] = 0 + self._defaults['LoadSpecifications'] = {} + self._defaults['LoadSpecifications']['return'] = 0 + self._defaults['LoadTiming'] = {} + self._defaults['LoadTiming']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['PPMU_Measure'] = {} + self._defaults['PPMU_Measure']['return'] = 0 + self._defaults['PPMU_Measure']['actualNumRead'] = None + self._defaults['PPMU_Measure']['measurements'] = None + self._defaults['PPMU_Source'] = {} + self._defaults['PPMU_Source']['return'] = 0 + self._defaults['ReadSequencerFlag'] = {} + self._defaults['ReadSequencerFlag']['return'] = 0 + self._defaults['ReadSequencerFlag']['value'] = None + self._defaults['ReadSequencerRegister'] = {} + self._defaults['ReadSequencerRegister']['return'] = 0 + self._defaults['ReadSequencerRegister']['value'] = None + self._defaults['ReadStatic'] = {} + self._defaults['ReadStatic']['return'] = 0 + self._defaults['ReadStatic']['actualNumRead'] = None + self._defaults['ReadStatic']['data'] = None + self._defaults['ResetDevice'] = {} + self._defaults['ResetDevice']['return'] = 0 + self._defaults['SelfCalibrate'] = {} + self._defaults['SelfCalibrate']['return'] = 0 + self._defaults['SendSoftwareEdgeTrigger'] = {} + self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViInt64'] = {} + self._defaults['SetAttributeViInt64']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['TDR'] = {} + self._defaults['TDR']['return'] = 0 + self._defaults['TDR']['actualNumOffsets'] = None + self._defaults['TDR']['offsets'] = None + self._defaults['UnloadAllPatterns'] = {} + self._defaults['UnloadAllPatterns']['return'] = 0 + self._defaults['UnloadSpecifications'] = {} + self._defaults['UnloadSpecifications']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['WaitUntilDone'] = {} + self._defaults['WaitUntilDone']['return'] = 0 + self._defaults['WriteSequencerFlag'] = {} + self._defaults['WriteSequencerFlag']['return'] = 0 + self._defaults['WriteSequencerRegister'] = {} + self._defaults['WriteSequencerRegister']['return'] = 0 + self._defaults['WriteSourceWaveformBroadcastU32'] = {} + self._defaults['WriteSourceWaveformBroadcastU32']['return'] = 0 + self._defaults['WriteSourceWaveformDataFromFileTDMS'] = {} + self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] = 0 + self._defaults['WriteSourceWaveformSiteUniqueU32'] = {} + self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] = 0 + self._defaults['WriteStatic'] = {} + self._defaults['WriteStatic']['return'] = 0 + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['testResult'] = None + self._defaults['self_test']['testMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niDigital_Abort(self, vi): # noqa: N802 + if self._defaults['Abort']['return'] != 0: + return self._defaults['Abort']['return'] + return self._defaults['Abort']['return'] + + def niDigital_AbortKeepAlive(self, vi): # noqa: N802 + if self._defaults['AbortKeepAlive']['return'] != 0: + return self._defaults['AbortKeepAlive']['return'] + return self._defaults['AbortKeepAlive']['return'] + + def niDigital_ApplyLevelsAndTiming(self, vi, site_list, levels_sheet, timing_sheet, initial_state_high_pins, initial_state_low_pins, initial_state_tristate_pins): # noqa: N802 + if self._defaults['ApplyLevelsAndTiming']['return'] != 0: + return self._defaults['ApplyLevelsAndTiming']['return'] + return self._defaults['ApplyLevelsAndTiming']['return'] + + def niDigital_ApplyTDROffsets(self, vi, channel_list, num_offsets, offsets): # noqa: N802 + if self._defaults['ApplyTDROffsets']['return'] != 0: + return self._defaults['ApplyTDROffsets']['return'] + return self._defaults['ApplyTDROffsets']['return'] + + def niDigital_BurstPattern(self, vi, site_list, start_label, select_digital_function, wait_until_done, timeout): # noqa: N802 + if self._defaults['BurstPattern']['return'] != 0: + return self._defaults['BurstPattern']['return'] + return self._defaults['BurstPattern']['return'] + + def niDigital_ClockGenerator_Abort(self, vi, channel_list): # noqa: N802 + if self._defaults['ClockGenerator_Abort']['return'] != 0: + return self._defaults['ClockGenerator_Abort']['return'] + return self._defaults['ClockGenerator_Abort']['return'] + + def niDigital_ClockGenerator_GenerateClock(self, vi, channel_list, frequency, select_digital_function): # noqa: N802 + if self._defaults['ClockGenerator_GenerateClock']['return'] != 0: + return self._defaults['ClockGenerator_GenerateClock']['return'] + return self._defaults['ClockGenerator_GenerateClock']['return'] + + def niDigital_Commit(self, vi): # noqa: N802 + if self._defaults['Commit']['return'] != 0: + return self._defaults['Commit']['return'] + return self._defaults['Commit']['return'] + + def niDigital_ConfigureActiveLoadLevels(self, vi, channel_list, iol, ioh, vcom): # noqa: N802 + if self._defaults['ConfigureActiveLoadLevels']['return'] != 0: + return self._defaults['ConfigureActiveLoadLevels']['return'] + return self._defaults['ConfigureActiveLoadLevels']['return'] + + def niDigital_ConfigurePatternBurstSites(self, vi, site_list): # noqa: N802 + if self._defaults['ConfigurePatternBurstSites']['return'] != 0: + return self._defaults['ConfigurePatternBurstSites']['return'] + return self._defaults['ConfigurePatternBurstSites']['return'] + + def niDigital_ConfigureTimeSetCompareEdgesStrobe(self, vi, pin_list, time_set_name, strobe_edge): # noqa: N802 + if self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] != 0: + return self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] + return self._defaults['ConfigureTimeSetCompareEdgesStrobe']['return'] + + def niDigital_ConfigureTimeSetCompareEdgesStrobe2x(self, vi, pin_list, time_set_name, strobe_edge, strobe2_edge): # noqa: N802 + if self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] != 0: + return self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] + return self._defaults['ConfigureTimeSetCompareEdgesStrobe2x']['return'] + + def niDigital_ConfigureTimeSetDriveEdges(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge): # noqa: N802 + if self._defaults['ConfigureTimeSetDriveEdges']['return'] != 0: + return self._defaults['ConfigureTimeSetDriveEdges']['return'] + return self._defaults['ConfigureTimeSetDriveEdges']['return'] + + def niDigital_ConfigureTimeSetDriveEdges2x(self, vi, pin_list, time_set_name, format, drive_on_edge, drive_data_edge, drive_return_edge, drive_off_edge, drive_data2_edge, drive_return2_edge): # noqa: N802 + if self._defaults['ConfigureTimeSetDriveEdges2x']['return'] != 0: + return self._defaults['ConfigureTimeSetDriveEdges2x']['return'] + return self._defaults['ConfigureTimeSetDriveEdges2x']['return'] + + def niDigital_ConfigureTimeSetDriveFormat(self, vi, pin_list, time_set_name, drive_format): # noqa: N802 + if self._defaults['ConfigureTimeSetDriveFormat']['return'] != 0: + return self._defaults['ConfigureTimeSetDriveFormat']['return'] + return self._defaults['ConfigureTimeSetDriveFormat']['return'] + + def niDigital_ConfigureTimeSetEdge(self, vi, pin_list, time_set_name, edge, time): # noqa: N802 + if self._defaults['ConfigureTimeSetEdge']['return'] != 0: + return self._defaults['ConfigureTimeSetEdge']['return'] + return self._defaults['ConfigureTimeSetEdge']['return'] + + def niDigital_ConfigureTimeSetEdgeMultiplier(self, vi, pin_list, time_set_name, edge_multiplier): # noqa: N802 + if self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] != 0: + return self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] + return self._defaults['ConfigureTimeSetEdgeMultiplier']['return'] + + def niDigital_ConfigureTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 + if self._defaults['ConfigureTimeSetPeriod']['return'] != 0: + return self._defaults['ConfigureTimeSetPeriod']['return'] + return self._defaults['ConfigureTimeSetPeriod']['return'] + + def niDigital_ConfigureVoltageLevels(self, vi, channel_list, vil, vih, vol, voh, vterm): # noqa: N802 + if self._defaults['ConfigureVoltageLevels']['return'] != 0: + return self._defaults['ConfigureVoltageLevels']['return'] + return self._defaults['ConfigureVoltageLevels']['return'] + + def niDigital_CreateCaptureWaveformFromFileDigicapture(self, vi, waveform_name, waveform_file_path): # noqa: N802 + if self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] != 0: + return self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] + return self._defaults['CreateCaptureWaveformFromFileDigicapture']['return'] + + def niDigital_CreateCaptureWaveformParallel(self, vi, pin_list, waveform_name): # noqa: N802 + if self._defaults['CreateCaptureWaveformParallel']['return'] != 0: + return self._defaults['CreateCaptureWaveformParallel']['return'] + return self._defaults['CreateCaptureWaveformParallel']['return'] + + def niDigital_CreateCaptureWaveformSerial(self, vi, pin_list, waveform_name, sample_width, bit_order): # noqa: N802 + if self._defaults['CreateCaptureWaveformSerial']['return'] != 0: + return self._defaults['CreateCaptureWaveformSerial']['return'] + return self._defaults['CreateCaptureWaveformSerial']['return'] + + def niDigital_CreateSourceWaveformFromFileTDMS(self, vi, waveform_name, waveform_file_path, write_waveform_data): # noqa: N802 + if self._defaults['CreateSourceWaveformFromFileTDMS']['return'] != 0: + return self._defaults['CreateSourceWaveformFromFileTDMS']['return'] + return self._defaults['CreateSourceWaveformFromFileTDMS']['return'] + + def niDigital_CreateSourceWaveformParallel(self, vi, pin_list, waveform_name, data_mapping): # noqa: N802 + if self._defaults['CreateSourceWaveformParallel']['return'] != 0: + return self._defaults['CreateSourceWaveformParallel']['return'] + return self._defaults['CreateSourceWaveformParallel']['return'] + + def niDigital_CreateSourceWaveformSerial(self, vi, pin_list, waveform_name, data_mapping, sample_width, bit_order): # noqa: N802 + if self._defaults['CreateSourceWaveformSerial']['return'] != 0: + return self._defaults['CreateSourceWaveformSerial']['return'] + return self._defaults['CreateSourceWaveformSerial']['return'] + + def niDigital_CreateTimeSet(self, vi, name): # noqa: N802 + if self._defaults['CreateTimeSet']['return'] != 0: + return self._defaults['CreateTimeSet']['return'] + return self._defaults['CreateTimeSet']['return'] + + def niDigital_DeleteAllTimeSets(self, vi): # noqa: N802 + if self._defaults['DeleteAllTimeSets']['return'] != 0: + return self._defaults['DeleteAllTimeSets']['return'] + return self._defaults['DeleteAllTimeSets']['return'] + + def niDigital_DisableSites(self, vi, site_list): # noqa: N802 + if self._defaults['DisableSites']['return'] != 0: + return self._defaults['DisableSites']['return'] + return self._defaults['DisableSites']['return'] + + def niDigital_EnableMatchFailCombination(self, session_count, sessions, sync_session): # noqa: N802 + if self._defaults['EnableMatchFailCombination']['return'] != 0: + return self._defaults['EnableMatchFailCombination']['return'] + return self._defaults['EnableMatchFailCombination']['return'] + + def niDigital_EnableSites(self, vi, site_list): # noqa: N802 + if self._defaults['EnableSites']['return'] != 0: + return self._defaults['EnableSites']['return'] + return self._defaults['EnableSites']['return'] + + def niDigital_FetchCaptureWaveformU32(self, vi, site_list, waveform_name, samples_to_read, timeout, data_buffer_size, data, actual_num_waveforms, actual_samples_per_waveform): # noqa: N802 + if self._defaults['FetchCaptureWaveformU32']['return'] != 0: + return self._defaults['FetchCaptureWaveformU32']['return'] + # actual_num_waveforms + if self._defaults['FetchCaptureWaveformU32']['actualNumWaveforms'] is None: + raise MockFunctionCallError("niDigital_FetchCaptureWaveformU32", param='actualNumWaveforms') + if actual_num_waveforms is not None: + actual_num_waveforms.contents.value = self._defaults['FetchCaptureWaveformU32']['actualNumWaveforms'] + # actual_samples_per_waveform + if self._defaults['FetchCaptureWaveformU32']['actualSamplesPerWaveform'] is None: + raise MockFunctionCallError("niDigital_FetchCaptureWaveformU32", param='actualSamplesPerWaveform') + if actual_samples_per_waveform is not None: + actual_samples_per_waveform.contents.value = self._defaults['FetchCaptureWaveformU32']['actualSamplesPerWaveform'] + # data + if self._defaults['FetchCaptureWaveformU32']['data'] is None: + raise MockFunctionCallError("niDigital_FetchCaptureWaveformU32", param='data') + if data_buffer_size.value == 0: + return len(self._defaults['FetchCaptureWaveformU32']['data']) + try: + data_ref = data.contents + except AttributeError: + data_ref = data + for i in range(len(self._defaults['FetchCaptureWaveformU32']['data'])): + data_ref[i] = self._defaults['FetchCaptureWaveformU32']['data'][i] + return self._defaults['FetchCaptureWaveformU32']['return'] + + def niDigital_FetchHistoryRAMCycleInformation(self, vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles): # noqa: N802 + if self._defaults['FetchHistoryRAMCycleInformation']['return'] != 0: + return self._defaults['FetchHistoryRAMCycleInformation']['return'] + # pattern_index + if self._defaults['FetchHistoryRAMCycleInformation']['patternIndex'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='patternIndex') + if pattern_index is not None: + pattern_index.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['patternIndex'] + # time_set_index + if self._defaults['FetchHistoryRAMCycleInformation']['timeSetIndex'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='timeSetIndex') + if time_set_index is not None: + time_set_index.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['timeSetIndex'] + # vector_number + if self._defaults['FetchHistoryRAMCycleInformation']['vectorNumber'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='vectorNumber') + if vector_number is not None: + vector_number.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['vectorNumber'] + # cycle_number + if self._defaults['FetchHistoryRAMCycleInformation']['cycleNumber'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='cycleNumber') + if cycle_number is not None: + cycle_number.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['cycleNumber'] + # num_dut_cycles + if self._defaults['FetchHistoryRAMCycleInformation']['numDutCycles'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation", param='numDutCycles') + if num_dut_cycles is not None: + num_dut_cycles.contents.value = self._defaults['FetchHistoryRAMCycleInformation']['numDutCycles'] + return self._defaults['FetchHistoryRAMCycleInformation']['return'] + + def niDigital_FetchHistoryRAMCyclePinData(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 + if self._defaults['FetchHistoryRAMCyclePinData']['return'] != 0: + return self._defaults['FetchHistoryRAMCyclePinData']['return'] + # actual_num_pin_data + if self._defaults['FetchHistoryRAMCyclePinData']['actualNumPinData'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='actualNumPinData') + if actual_num_pin_data is not None: + actual_num_pin_data.contents.value = self._defaults['FetchHistoryRAMCyclePinData']['actualNumPinData'] + # expected_pin_states + if self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='expectedPinStates') + if pin_data_buffer_size.value == 0: + return len(self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates']) + try: + expected_pin_states_ref = expected_pin_states.contents + except AttributeError: + expected_pin_states_ref = expected_pin_states + for i in range(len(self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'])): + expected_pin_states_ref[i] = self._defaults['FetchHistoryRAMCyclePinData']['expectedPinStates'][i] + # actual_pin_states + if self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='actualPinStates') + if pin_data_buffer_size.value == 0: + return len(self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates']) + try: + actual_pin_states_ref = actual_pin_states.contents + except AttributeError: + actual_pin_states_ref = actual_pin_states + for i in range(len(self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'])): + actual_pin_states_ref[i] = self._defaults['FetchHistoryRAMCyclePinData']['actualPinStates'][i] + # per_pin_pass_fail + if self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData", param='perPinPassFail') + if pin_data_buffer_size.value == 0: + return len(self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail']) + try: + per_pin_pass_fail_ref = per_pin_pass_fail.contents + except AttributeError: + per_pin_pass_fail_ref = per_pin_pass_fail + for i in range(len(self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'])): + per_pin_pass_fail_ref[i] = self._defaults['FetchHistoryRAMCyclePinData']['perPinPassFail'][i] + return self._defaults['FetchHistoryRAMCyclePinData']['return'] + + def niDigital_FetchHistoryRAMScanCycleNumber(self, vi, site, sample_index, scan_cycle_number): # noqa: N802 + if self._defaults['FetchHistoryRAMScanCycleNumber']['return'] != 0: + return self._defaults['FetchHistoryRAMScanCycleNumber']['return'] + # scan_cycle_number + if self._defaults['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] is None: + raise MockFunctionCallError("niDigital_FetchHistoryRAMScanCycleNumber", param='scanCycleNumber') + if scan_cycle_number is not None: + scan_cycle_number.contents.value = self._defaults['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] + return self._defaults['FetchHistoryRAMScanCycleNumber']['return'] + + def niDigital_FrequencyCounter_MeasureFrequency(self, vi, channel_list, frequencies_buffer_size, frequencies, actual_num_frequencies): # noqa: N802 + if self._defaults['FrequencyCounter_MeasureFrequency']['return'] != 0: + return self._defaults['FrequencyCounter_MeasureFrequency']['return'] + # actual_num_frequencies + if self._defaults['FrequencyCounter_MeasureFrequency']['actualNumFrequencies'] is None: + raise MockFunctionCallError("niDigital_FrequencyCounter_MeasureFrequency", param='actualNumFrequencies') + if actual_num_frequencies is not None: + actual_num_frequencies.contents.value = self._defaults['FrequencyCounter_MeasureFrequency']['actualNumFrequencies'] + # frequencies + if self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'] is None: + raise MockFunctionCallError("niDigital_FrequencyCounter_MeasureFrequency", param='frequencies') + if frequencies_buffer_size.value == 0: + return len(self._defaults['FrequencyCounter_MeasureFrequency']['frequencies']) + try: + frequencies_ref = frequencies.contents + except AttributeError: + frequencies_ref = frequencies + for i in range(len(self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'])): + frequencies_ref[i] = self._defaults['FrequencyCounter_MeasureFrequency']['frequencies'][i] + return self._defaults['FrequencyCounter_MeasureFrequency']['return'] + + def niDigital_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # value + if self._defaults['GetAttributeViBoolean']['value'] is None: + raise MockFunctionCallError("niDigital_GetAttributeViBoolean", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViBoolean']['value'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niDigital_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # value + if self._defaults['GetAttributeViInt32']['value'] is None: + raise MockFunctionCallError("niDigital_GetAttributeViInt32", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt32']['value'] + return self._defaults['GetAttributeViInt32']['return'] + + def niDigital_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViInt64']['return'] != 0: + return self._defaults['GetAttributeViInt64']['return'] + # value + if self._defaults['GetAttributeViInt64']['value'] is None: + raise MockFunctionCallError("niDigital_GetAttributeViInt64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt64']['value'] + return self._defaults['GetAttributeViInt64']['return'] + + def niDigital_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # value + if self._defaults['GetAttributeViReal64']['value'] is None: + raise MockFunctionCallError("niDigital_GetAttributeViReal64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViReal64']['value'] + return self._defaults['GetAttributeViReal64']['return'] + + def niDigital_GetAttributeViString(self, vi, channel_name, attribute, buffer_size, value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # value + if self._defaults['GetAttributeViString']['value'] is None: + raise MockFunctionCallError("niDigital_GetAttributeViString", param='value') + if buffer_size.value == 0: + return len(self._defaults['GetAttributeViString']['value']) + value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niDigital_GetChannelNameFromString(self, vi, indices, name_buffer_size, names): # noqa: N802 + if self._defaults['GetChannelNameFromString']['return'] != 0: + return self._defaults['GetChannelNameFromString']['return'] + # names + if self._defaults['GetChannelNameFromString']['name'] is None: + raise MockFunctionCallError("niDigital_GetChannelNameFromString", param='name') + if name_buffer_size.value == 0: + return len(self._defaults['GetChannelNameFromString']['name']) + names.value = self._defaults['GetChannelNameFromString']['name'].encode('ascii') + return self._defaults['GetChannelNameFromString']['return'] + + def niDigital_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niDigital_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # error_description + if self._defaults['GetError']['errorDescription'] is None: + raise MockFunctionCallError("niDigital_GetError", param='errorDescription') + if error_description_buffer_size.value == 0: + return len(self._defaults['GetError']['errorDescription']) + error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') + return self._defaults['GetError']['return'] + + def niDigital_GetFailCount(self, vi, channel_list, buffer_size, failure_count, actual_num_read): # noqa: N802 + if self._defaults['GetFailCount']['return'] != 0: + return self._defaults['GetFailCount']['return'] + # actual_num_read + if self._defaults['GetFailCount']['actualNumRead'] is None: + raise MockFunctionCallError("niDigital_GetFailCount", param='actualNumRead') + if actual_num_read is not None: + actual_num_read.contents.value = self._defaults['GetFailCount']['actualNumRead'] + # failure_count + if self._defaults['GetFailCount']['failureCount'] is None: + raise MockFunctionCallError("niDigital_GetFailCount", param='failureCount') + if buffer_size.value == 0: + return len(self._defaults['GetFailCount']['failureCount']) + try: + failure_count_ref = failure_count.contents + except AttributeError: + failure_count_ref = failure_count + for i in range(len(self._defaults['GetFailCount']['failureCount'])): + failure_count_ref[i] = self._defaults['GetFailCount']['failureCount'][i] + return self._defaults['GetFailCount']['return'] + + def niDigital_GetHistoryRAMSampleCount(self, vi, site, sample_count): # noqa: N802 + if self._defaults['GetHistoryRAMSampleCount']['return'] != 0: + return self._defaults['GetHistoryRAMSampleCount']['return'] + # sample_count + if self._defaults['GetHistoryRAMSampleCount']['sampleCount'] is None: + raise MockFunctionCallError("niDigital_GetHistoryRAMSampleCount", param='sampleCount') + if sample_count is not None: + sample_count.contents.value = self._defaults['GetHistoryRAMSampleCount']['sampleCount'] + return self._defaults['GetHistoryRAMSampleCount']['return'] + + def niDigital_GetPatternName(self, vi, pattern_index, name_buffer_size, name): # noqa: N802 + if self._defaults['GetPatternName']['return'] != 0: + return self._defaults['GetPatternName']['return'] + # name + if self._defaults['GetPatternName']['name'] is None: + raise MockFunctionCallError("niDigital_GetPatternName", param='name') + if name_buffer_size.value == 0: + return len(self._defaults['GetPatternName']['name']) + name.value = self._defaults['GetPatternName']['name'].encode('ascii') + return self._defaults['GetPatternName']['return'] + + def niDigital_GetPatternPinList(self, vi, start_label, pin_list_buffer_size, pin_list): # noqa: N802 + if self._defaults['GetPatternPinList']['return'] != 0: + return self._defaults['GetPatternPinList']['return'] + # pin_list + if self._defaults['GetPatternPinList']['pinList'] is None: + raise MockFunctionCallError("niDigital_GetPatternPinList", param='pinList') + if pin_list_buffer_size.value == 0: + return len(self._defaults['GetPatternPinList']['pinList']) + pin_list.value = self._defaults['GetPatternPinList']['pinList'].encode('ascii') + return self._defaults['GetPatternPinList']['return'] + + def niDigital_GetPinName(self, vi, pin_index, name_buffer_size, name): # noqa: N802 + if self._defaults['GetPinName']['return'] != 0: + return self._defaults['GetPinName']['return'] + # name + if self._defaults['GetPinName']['name'] is None: + raise MockFunctionCallError("niDigital_GetPinName", param='name') + if name_buffer_size.value == 0: + return len(self._defaults['GetPinName']['name']) + name.value = self._defaults['GetPinName']['name'].encode('ascii') + return self._defaults['GetPinName']['return'] + + def niDigital_GetPinResultsPinInformation(self, vi, channel_list, buffer_size, pin_indexes, site_numbers, channel_indexes, actual_num_values): # noqa: N802 + if self._defaults['GetPinResultsPinInformation']['return'] != 0: + return self._defaults['GetPinResultsPinInformation']['return'] + # actual_num_values + if self._defaults['GetPinResultsPinInformation']['actualNumValues'] is None: + raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='actualNumValues') + if actual_num_values is not None: + actual_num_values.contents.value = self._defaults['GetPinResultsPinInformation']['actualNumValues'] + # pin_indexes + if self._defaults['GetPinResultsPinInformation']['pinIndexes'] is None: + raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='pinIndexes') + if buffer_size.value == 0: + return len(self._defaults['GetPinResultsPinInformation']['pinIndexes']) + try: + pin_indexes_ref = pin_indexes.contents + except AttributeError: + pin_indexes_ref = pin_indexes + for i in range(len(self._defaults['GetPinResultsPinInformation']['pinIndexes'])): + pin_indexes_ref[i] = self._defaults['GetPinResultsPinInformation']['pinIndexes'][i] + # site_numbers + if self._defaults['GetPinResultsPinInformation']['siteNumbers'] is None: + raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='siteNumbers') + if buffer_size.value == 0: + return len(self._defaults['GetPinResultsPinInformation']['siteNumbers']) + try: + site_numbers_ref = site_numbers.contents + except AttributeError: + site_numbers_ref = site_numbers + for i in range(len(self._defaults['GetPinResultsPinInformation']['siteNumbers'])): + site_numbers_ref[i] = self._defaults['GetPinResultsPinInformation']['siteNumbers'][i] + # channel_indexes + if self._defaults['GetPinResultsPinInformation']['channelIndexes'] is None: + raise MockFunctionCallError("niDigital_GetPinResultsPinInformation", param='channelIndexes') + if buffer_size.value == 0: + return len(self._defaults['GetPinResultsPinInformation']['channelIndexes']) + try: + channel_indexes_ref = channel_indexes.contents + except AttributeError: + channel_indexes_ref = channel_indexes + for i in range(len(self._defaults['GetPinResultsPinInformation']['channelIndexes'])): + channel_indexes_ref[i] = self._defaults['GetPinResultsPinInformation']['channelIndexes'][i] + return self._defaults['GetPinResultsPinInformation']['return'] + + def niDigital_GetSitePassFail(self, vi, site_list, pass_fail_buffer_size, pass_fail, actual_num_sites): # noqa: N802 + if self._defaults['GetSitePassFail']['return'] != 0: + return self._defaults['GetSitePassFail']['return'] + # actual_num_sites + if self._defaults['GetSitePassFail']['actualNumSites'] is None: + raise MockFunctionCallError("niDigital_GetSitePassFail", param='actualNumSites') + if actual_num_sites is not None: + actual_num_sites.contents.value = self._defaults['GetSitePassFail']['actualNumSites'] + # pass_fail + if self._defaults['GetSitePassFail']['passFail'] is None: + raise MockFunctionCallError("niDigital_GetSitePassFail", param='passFail') + if pass_fail_buffer_size.value == 0: + return len(self._defaults['GetSitePassFail']['passFail']) + try: + pass_fail_ref = pass_fail.contents + except AttributeError: + pass_fail_ref = pass_fail + for i in range(len(self._defaults['GetSitePassFail']['passFail'])): + pass_fail_ref[i] = self._defaults['GetSitePassFail']['passFail'][i] + return self._defaults['GetSitePassFail']['return'] + + def niDigital_GetSiteResultsSiteNumbers(self, vi, site_list, site_result_type, site_numbers_buffer_size, site_numbers, actual_num_site_numbers): # noqa: N802 + if self._defaults['GetSiteResultsSiteNumbers']['return'] != 0: + return self._defaults['GetSiteResultsSiteNumbers']['return'] + # actual_num_site_numbers + if self._defaults['GetSiteResultsSiteNumbers']['actualNumSiteNumbers'] is None: + raise MockFunctionCallError("niDigital_GetSiteResultsSiteNumbers", param='actualNumSiteNumbers') + if actual_num_site_numbers is not None: + actual_num_site_numbers.contents.value = self._defaults['GetSiteResultsSiteNumbers']['actualNumSiteNumbers'] + # site_numbers + if self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'] is None: + raise MockFunctionCallError("niDigital_GetSiteResultsSiteNumbers", param='siteNumbers') + if site_numbers_buffer_size.value == 0: + return len(self._defaults['GetSiteResultsSiteNumbers']['siteNumbers']) + try: + site_numbers_ref = site_numbers.contents + except AttributeError: + site_numbers_ref = site_numbers + for i in range(len(self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'])): + site_numbers_ref[i] = self._defaults['GetSiteResultsSiteNumbers']['siteNumbers'][i] + return self._defaults['GetSiteResultsSiteNumbers']['return'] + + def niDigital_GetTimeSetDriveFormat(self, vi, pin, time_set_name, format): # noqa: N802 + if self._defaults['GetTimeSetDriveFormat']['return'] != 0: + return self._defaults['GetTimeSetDriveFormat']['return'] + # format + if self._defaults['GetTimeSetDriveFormat']['format'] is None: + raise MockFunctionCallError("niDigital_GetTimeSetDriveFormat", param='format') + if format is not None: + format.contents.value = self._defaults['GetTimeSetDriveFormat']['format'] + return self._defaults['GetTimeSetDriveFormat']['return'] + + def niDigital_GetTimeSetEdge(self, vi, pin, time_set_name, edge, time): # noqa: N802 + if self._defaults['GetTimeSetEdge']['return'] != 0: + return self._defaults['GetTimeSetEdge']['return'] + # time + if self._defaults['GetTimeSetEdge']['time'] is None: + raise MockFunctionCallError("niDigital_GetTimeSetEdge", param='time') + if time is not None: + time.contents.value = self._defaults['GetTimeSetEdge']['time'] + return self._defaults['GetTimeSetEdge']['return'] + + def niDigital_GetTimeSetEdgeMultiplier(self, vi, pin, time_set_name, edge_multiplier): # noqa: N802 + if self._defaults['GetTimeSetEdgeMultiplier']['return'] != 0: + return self._defaults['GetTimeSetEdgeMultiplier']['return'] + # edge_multiplier + if self._defaults['GetTimeSetEdgeMultiplier']['edgeMultiplier'] is None: + raise MockFunctionCallError("niDigital_GetTimeSetEdgeMultiplier", param='edgeMultiplier') + if edge_multiplier is not None: + edge_multiplier.contents.value = self._defaults['GetTimeSetEdgeMultiplier']['edgeMultiplier'] + return self._defaults['GetTimeSetEdgeMultiplier']['return'] + + def niDigital_GetTimeSetName(self, vi, time_set_index, name_buffer_size, name): # noqa: N802 + if self._defaults['GetTimeSetName']['return'] != 0: + return self._defaults['GetTimeSetName']['return'] + # name + if self._defaults['GetTimeSetName']['name'] is None: + raise MockFunctionCallError("niDigital_GetTimeSetName", param='name') + if name_buffer_size.value == 0: + return len(self._defaults['GetTimeSetName']['name']) + name.value = self._defaults['GetTimeSetName']['name'].encode('ascii') + return self._defaults['GetTimeSetName']['return'] + + def niDigital_GetTimeSetPeriod(self, vi, time_set_name, period): # noqa: N802 + if self._defaults['GetTimeSetPeriod']['return'] != 0: + return self._defaults['GetTimeSetPeriod']['return'] + # period + if self._defaults['GetTimeSetPeriod']['period'] is None: + raise MockFunctionCallError("niDigital_GetTimeSetPeriod", param='period') + if period is not None: + period.contents.value = self._defaults['GetTimeSetPeriod']['period'] + return self._defaults['GetTimeSetPeriod']['return'] + + def niDigital_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 + if self._defaults['InitWithOptions']['return'] != 0: + return self._defaults['InitWithOptions']['return'] + # new_vi + if self._defaults['InitWithOptions']['newVi'] is None: + raise MockFunctionCallError("niDigital_InitWithOptions", param='newVi') + if new_vi is not None: + new_vi.contents.value = self._defaults['InitWithOptions']['newVi'] + return self._defaults['InitWithOptions']['return'] + + def niDigital_Initiate(self, vi): # noqa: N802 + if self._defaults['Initiate']['return'] != 0: + return self._defaults['Initiate']['return'] + return self._defaults['Initiate']['return'] + + def niDigital_IsDone(self, vi, done): # noqa: N802 + if self._defaults['IsDone']['return'] != 0: + return self._defaults['IsDone']['return'] + # done + if self._defaults['IsDone']['done'] is None: + raise MockFunctionCallError("niDigital_IsDone", param='done') + if done is not None: + done.contents.value = self._defaults['IsDone']['done'] + return self._defaults['IsDone']['return'] + + def niDigital_IsSiteEnabled(self, vi, site, enable): # noqa: N802 + if self._defaults['IsSiteEnabled']['return'] != 0: + return self._defaults['IsSiteEnabled']['return'] + # enable + if self._defaults['IsSiteEnabled']['enable'] is None: + raise MockFunctionCallError("niDigital_IsSiteEnabled", param='enable') + if enable is not None: + enable.contents.value = self._defaults['IsSiteEnabled']['enable'] + return self._defaults['IsSiteEnabled']['return'] + + def niDigital_LoadLevels(self, vi, file_path): # noqa: N802 + if self._defaults['LoadLevels']['return'] != 0: + return self._defaults['LoadLevels']['return'] + return self._defaults['LoadLevels']['return'] + + def niDigital_LoadPattern(self, vi, file_path): # noqa: N802 + if self._defaults['LoadPattern']['return'] != 0: + return self._defaults['LoadPattern']['return'] + return self._defaults['LoadPattern']['return'] + + def niDigital_LoadPinMap(self, vi, file_path): # noqa: N802 + if self._defaults['LoadPinMap']['return'] != 0: + return self._defaults['LoadPinMap']['return'] + return self._defaults['LoadPinMap']['return'] + + def niDigital_LoadSpecifications(self, vi, file_path): # noqa: N802 + if self._defaults['LoadSpecifications']['return'] != 0: + return self._defaults['LoadSpecifications']['return'] + return self._defaults['LoadSpecifications']['return'] + + def niDigital_LoadTiming(self, vi, file_path): # noqa: N802 + if self._defaults['LoadTiming']['return'] != 0: + return self._defaults['LoadTiming']['return'] + return self._defaults['LoadTiming']['return'] + + def niDigital_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niDigital_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niDigital_PPMU_Measure(self, vi, channel_list, measurement_type, buffer_size, measurements, actual_num_read): # noqa: N802 + if self._defaults['PPMU_Measure']['return'] != 0: + return self._defaults['PPMU_Measure']['return'] + # actual_num_read + if self._defaults['PPMU_Measure']['actualNumRead'] is None: + raise MockFunctionCallError("niDigital_PPMU_Measure", param='actualNumRead') + if actual_num_read is not None: + actual_num_read.contents.value = self._defaults['PPMU_Measure']['actualNumRead'] + # measurements + if self._defaults['PPMU_Measure']['measurements'] is None: + raise MockFunctionCallError("niDigital_PPMU_Measure", param='measurements') + if buffer_size.value == 0: + return len(self._defaults['PPMU_Measure']['measurements']) + try: + measurements_ref = measurements.contents + except AttributeError: + measurements_ref = measurements + for i in range(len(self._defaults['PPMU_Measure']['measurements'])): + measurements_ref[i] = self._defaults['PPMU_Measure']['measurements'][i] + return self._defaults['PPMU_Measure']['return'] + + def niDigital_PPMU_Source(self, vi, channel_list): # noqa: N802 + if self._defaults['PPMU_Source']['return'] != 0: + return self._defaults['PPMU_Source']['return'] + return self._defaults['PPMU_Source']['return'] + + def niDigital_ReadSequencerFlag(self, vi, flag, value): # noqa: N802 + if self._defaults['ReadSequencerFlag']['return'] != 0: + return self._defaults['ReadSequencerFlag']['return'] + # value + if self._defaults['ReadSequencerFlag']['value'] is None: + raise MockFunctionCallError("niDigital_ReadSequencerFlag", param='value') + if value is not None: + value.contents.value = self._defaults['ReadSequencerFlag']['value'] + return self._defaults['ReadSequencerFlag']['return'] + + def niDigital_ReadSequencerRegister(self, vi, reg, value): # noqa: N802 + if self._defaults['ReadSequencerRegister']['return'] != 0: + return self._defaults['ReadSequencerRegister']['return'] + # value + if self._defaults['ReadSequencerRegister']['value'] is None: + raise MockFunctionCallError("niDigital_ReadSequencerRegister", param='value') + if value is not None: + value.contents.value = self._defaults['ReadSequencerRegister']['value'] + return self._defaults['ReadSequencerRegister']['return'] + + def niDigital_ReadStatic(self, vi, channel_list, buffer_size, data, actual_num_read): # noqa: N802 + if self._defaults['ReadStatic']['return'] != 0: + return self._defaults['ReadStatic']['return'] + # actual_num_read + if self._defaults['ReadStatic']['actualNumRead'] is None: + raise MockFunctionCallError("niDigital_ReadStatic", param='actualNumRead') + if actual_num_read is not None: + actual_num_read.contents.value = self._defaults['ReadStatic']['actualNumRead'] + # data + if self._defaults['ReadStatic']['data'] is None: + raise MockFunctionCallError("niDigital_ReadStatic", param='data') + if buffer_size.value == 0: + return len(self._defaults['ReadStatic']['data']) + try: + data_ref = data.contents + except AttributeError: + data_ref = data + for i in range(len(self._defaults['ReadStatic']['data'])): + data_ref[i] = self._defaults['ReadStatic']['data'][i] + return self._defaults['ReadStatic']['return'] + + def niDigital_ResetDevice(self, vi): # noqa: N802 + if self._defaults['ResetDevice']['return'] != 0: + return self._defaults['ResetDevice']['return'] + return self._defaults['ResetDevice']['return'] + + def niDigital_SelfCalibrate(self, vi): # noqa: N802 + if self._defaults['SelfCalibrate']['return'] != 0: + return self._defaults['SelfCalibrate']['return'] + return self._defaults['SelfCalibrate']['return'] + + def niDigital_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 + if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: + return self._defaults['SendSoftwareEdgeTrigger']['return'] + return self._defaults['SendSoftwareEdgeTrigger']['return'] + + def niDigital_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niDigital_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niDigital_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViInt64']['return'] != 0: + return self._defaults['SetAttributeViInt64']['return'] + return self._defaults['SetAttributeViInt64']['return'] + + def niDigital_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niDigital_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niDigital_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niDigital_TDR(self, vi, channel_list, apply_offsets, offsets_buffer_size, offsets, actual_num_offsets): # noqa: N802 + if self._defaults['TDR']['return'] != 0: + return self._defaults['TDR']['return'] + # actual_num_offsets + if self._defaults['TDR']['actualNumOffsets'] is None: + raise MockFunctionCallError("niDigital_TDR", param='actualNumOffsets') + if actual_num_offsets is not None: + actual_num_offsets.contents.value = self._defaults['TDR']['actualNumOffsets'] + # offsets + if self._defaults['TDR']['offsets'] is None: + raise MockFunctionCallError("niDigital_TDR", param='offsets') + if offsets_buffer_size.value == 0: + return len(self._defaults['TDR']['offsets']) + try: + offsets_ref = offsets.contents + except AttributeError: + offsets_ref = offsets + for i in range(len(self._defaults['TDR']['offsets'])): + offsets_ref[i] = self._defaults['TDR']['offsets'][i] + return self._defaults['TDR']['return'] + + def niDigital_UnloadAllPatterns(self, vi, unload_keep_alive_pattern): # noqa: N802 + if self._defaults['UnloadAllPatterns']['return'] != 0: + return self._defaults['UnloadAllPatterns']['return'] + return self._defaults['UnloadAllPatterns']['return'] + + def niDigital_UnloadSpecifications(self, vi, file_path): # noqa: N802 + if self._defaults['UnloadSpecifications']['return'] != 0: + return self._defaults['UnloadSpecifications']['return'] + return self._defaults['UnloadSpecifications']['return'] + + def niDigital_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niDigital_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niDigital_WaitUntilDone(self, vi, timeout): # noqa: N802 + if self._defaults['WaitUntilDone']['return'] != 0: + return self._defaults['WaitUntilDone']['return'] + return self._defaults['WaitUntilDone']['return'] + + def niDigital_WriteSequencerFlag(self, vi, flag, value): # noqa: N802 + if self._defaults['WriteSequencerFlag']['return'] != 0: + return self._defaults['WriteSequencerFlag']['return'] + return self._defaults['WriteSequencerFlag']['return'] + + def niDigital_WriteSequencerRegister(self, vi, reg, value): # noqa: N802 + if self._defaults['WriteSequencerRegister']['return'] != 0: + return self._defaults['WriteSequencerRegister']['return'] + return self._defaults['WriteSequencerRegister']['return'] + + def niDigital_WriteSourceWaveformBroadcastU32(self, vi, waveform_name, waveform_size, waveform_data): # noqa: N802 + if self._defaults['WriteSourceWaveformBroadcastU32']['return'] != 0: + return self._defaults['WriteSourceWaveformBroadcastU32']['return'] + return self._defaults['WriteSourceWaveformBroadcastU32']['return'] + + def niDigital_WriteSourceWaveformDataFromFileTDMS(self, vi, waveform_name, waveform_file_path): # noqa: N802 + if self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] != 0: + return self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] + return self._defaults['WriteSourceWaveformDataFromFileTDMS']['return'] + + def niDigital_WriteSourceWaveformSiteUniqueU32(self, vi, site_list, waveform_name, num_waveforms, samples_per_waveform, waveform_data): # noqa: N802 + if self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] != 0: + return self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] + return self._defaults['WriteSourceWaveformSiteUniqueU32']['return'] + + def niDigital_WriteStatic(self, vi, channel_list, state): # noqa: N802 + if self._defaults['WriteStatic']['return'] != 0: + return self._defaults['WriteStatic']['return'] + return self._defaults['WriteStatic']['return'] + + def niDigital_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niDigital_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niDigital_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niDigital_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niDigital_self_test(self, vi, test_result, test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # test_result + if self._defaults['self_test']['testResult'] is None: + raise MockFunctionCallError("niDigital_self_test", param='testResult') + if test_result is not None: + test_result.contents.value = self._defaults['self_test']['testResult'] + # test_message + if self._defaults['self_test']['testMessage'] is None: + raise MockFunctionCallError("niDigital_self_test", param='testMessage') + test_value = self._defaults['self_test']['testMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(test_message) >= len(test_value) + for i in range(len(test_value)): + test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niDigital_Abort.side_effect = MockFunctionCallError("niDigital_Abort") + mock_library.niDigital_Abort.return_value = 0 + mock_library.niDigital_AbortKeepAlive.side_effect = MockFunctionCallError("niDigital_AbortKeepAlive") + mock_library.niDigital_AbortKeepAlive.return_value = 0 + mock_library.niDigital_ApplyLevelsAndTiming.side_effect = MockFunctionCallError("niDigital_ApplyLevelsAndTiming") + mock_library.niDigital_ApplyLevelsAndTiming.return_value = 0 + mock_library.niDigital_ApplyTDROffsets.side_effect = MockFunctionCallError("niDigital_ApplyTDROffsets") + mock_library.niDigital_ApplyTDROffsets.return_value = 0 + mock_library.niDigital_BurstPattern.side_effect = MockFunctionCallError("niDigital_BurstPattern") + mock_library.niDigital_BurstPattern.return_value = 0 + mock_library.niDigital_ClockGenerator_Abort.side_effect = MockFunctionCallError("niDigital_ClockGenerator_Abort") + mock_library.niDigital_ClockGenerator_Abort.return_value = 0 + mock_library.niDigital_ClockGenerator_GenerateClock.side_effect = MockFunctionCallError("niDigital_ClockGenerator_GenerateClock") + mock_library.niDigital_ClockGenerator_GenerateClock.return_value = 0 + mock_library.niDigital_Commit.side_effect = MockFunctionCallError("niDigital_Commit") + mock_library.niDigital_Commit.return_value = 0 + mock_library.niDigital_ConfigureActiveLoadLevels.side_effect = MockFunctionCallError("niDigital_ConfigureActiveLoadLevels") + mock_library.niDigital_ConfigureActiveLoadLevels.return_value = 0 + mock_library.niDigital_ConfigurePatternBurstSites.side_effect = MockFunctionCallError("niDigital_ConfigurePatternBurstSites") + mock_library.niDigital_ConfigurePatternBurstSites.return_value = 0 + mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetCompareEdgesStrobe") + mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe.return_value = 0 + mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe2x.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetCompareEdgesStrobe2x") + mock_library.niDigital_ConfigureTimeSetCompareEdgesStrobe2x.return_value = 0 + mock_library.niDigital_ConfigureTimeSetDriveEdges.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetDriveEdges") + mock_library.niDigital_ConfigureTimeSetDriveEdges.return_value = 0 + mock_library.niDigital_ConfigureTimeSetDriveEdges2x.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetDriveEdges2x") + mock_library.niDigital_ConfigureTimeSetDriveEdges2x.return_value = 0 + mock_library.niDigital_ConfigureTimeSetDriveFormat.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetDriveFormat") + mock_library.niDigital_ConfigureTimeSetDriveFormat.return_value = 0 + mock_library.niDigital_ConfigureTimeSetEdge.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetEdge") + mock_library.niDigital_ConfigureTimeSetEdge.return_value = 0 + mock_library.niDigital_ConfigureTimeSetEdgeMultiplier.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetEdgeMultiplier") + mock_library.niDigital_ConfigureTimeSetEdgeMultiplier.return_value = 0 + mock_library.niDigital_ConfigureTimeSetPeriod.side_effect = MockFunctionCallError("niDigital_ConfigureTimeSetPeriod") + mock_library.niDigital_ConfigureTimeSetPeriod.return_value = 0 + mock_library.niDigital_ConfigureVoltageLevels.side_effect = MockFunctionCallError("niDigital_ConfigureVoltageLevels") + mock_library.niDigital_ConfigureVoltageLevels.return_value = 0 + mock_library.niDigital_CreateCaptureWaveformFromFileDigicapture.side_effect = MockFunctionCallError("niDigital_CreateCaptureWaveformFromFileDigicapture") + mock_library.niDigital_CreateCaptureWaveformFromFileDigicapture.return_value = 0 + mock_library.niDigital_CreateCaptureWaveformParallel.side_effect = MockFunctionCallError("niDigital_CreateCaptureWaveformParallel") + mock_library.niDigital_CreateCaptureWaveformParallel.return_value = 0 + mock_library.niDigital_CreateCaptureWaveformSerial.side_effect = MockFunctionCallError("niDigital_CreateCaptureWaveformSerial") + mock_library.niDigital_CreateCaptureWaveformSerial.return_value = 0 + mock_library.niDigital_CreateSourceWaveformFromFileTDMS.side_effect = MockFunctionCallError("niDigital_CreateSourceWaveformFromFileTDMS") + mock_library.niDigital_CreateSourceWaveformFromFileTDMS.return_value = 0 + mock_library.niDigital_CreateSourceWaveformParallel.side_effect = MockFunctionCallError("niDigital_CreateSourceWaveformParallel") + mock_library.niDigital_CreateSourceWaveformParallel.return_value = 0 + mock_library.niDigital_CreateSourceWaveformSerial.side_effect = MockFunctionCallError("niDigital_CreateSourceWaveformSerial") + mock_library.niDigital_CreateSourceWaveformSerial.return_value = 0 + mock_library.niDigital_CreateTimeSet.side_effect = MockFunctionCallError("niDigital_CreateTimeSet") + mock_library.niDigital_CreateTimeSet.return_value = 0 + mock_library.niDigital_DeleteAllTimeSets.side_effect = MockFunctionCallError("niDigital_DeleteAllTimeSets") + mock_library.niDigital_DeleteAllTimeSets.return_value = 0 + mock_library.niDigital_DisableSites.side_effect = MockFunctionCallError("niDigital_DisableSites") + mock_library.niDigital_DisableSites.return_value = 0 + mock_library.niDigital_EnableMatchFailCombination.side_effect = MockFunctionCallError("niDigital_EnableMatchFailCombination") + mock_library.niDigital_EnableMatchFailCombination.return_value = 0 + mock_library.niDigital_EnableSites.side_effect = MockFunctionCallError("niDigital_EnableSites") + mock_library.niDigital_EnableSites.return_value = 0 + mock_library.niDigital_FetchCaptureWaveformU32.side_effect = MockFunctionCallError("niDigital_FetchCaptureWaveformU32") + mock_library.niDigital_FetchCaptureWaveformU32.return_value = 0 + mock_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = MockFunctionCallError("niDigital_FetchHistoryRAMCycleInformation") + mock_library.niDigital_FetchHistoryRAMCycleInformation.return_value = 0 + mock_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = MockFunctionCallError("niDigital_FetchHistoryRAMCyclePinData") + mock_library.niDigital_FetchHistoryRAMCyclePinData.return_value = 0 + mock_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = MockFunctionCallError("niDigital_FetchHistoryRAMScanCycleNumber") + mock_library.niDigital_FetchHistoryRAMScanCycleNumber.return_value = 0 + mock_library.niDigital_FrequencyCounter_MeasureFrequency.side_effect = MockFunctionCallError("niDigital_FrequencyCounter_MeasureFrequency") + mock_library.niDigital_FrequencyCounter_MeasureFrequency.return_value = 0 + mock_library.niDigital_GetAttributeViBoolean.side_effect = MockFunctionCallError("niDigital_GetAttributeViBoolean") + mock_library.niDigital_GetAttributeViBoolean.return_value = 0 + mock_library.niDigital_GetAttributeViInt32.side_effect = MockFunctionCallError("niDigital_GetAttributeViInt32") + mock_library.niDigital_GetAttributeViInt32.return_value = 0 + mock_library.niDigital_GetAttributeViInt64.side_effect = MockFunctionCallError("niDigital_GetAttributeViInt64") + mock_library.niDigital_GetAttributeViInt64.return_value = 0 + mock_library.niDigital_GetAttributeViReal64.side_effect = MockFunctionCallError("niDigital_GetAttributeViReal64") + mock_library.niDigital_GetAttributeViReal64.return_value = 0 + mock_library.niDigital_GetAttributeViString.side_effect = MockFunctionCallError("niDigital_GetAttributeViString") + mock_library.niDigital_GetAttributeViString.return_value = 0 + mock_library.niDigital_GetChannelNameFromString.side_effect = MockFunctionCallError("niDigital_GetChannelNameFromString") + mock_library.niDigital_GetChannelNameFromString.return_value = 0 + mock_library.niDigital_GetError.side_effect = MockFunctionCallError("niDigital_GetError") + mock_library.niDigital_GetError.return_value = 0 + mock_library.niDigital_GetFailCount.side_effect = MockFunctionCallError("niDigital_GetFailCount") + mock_library.niDigital_GetFailCount.return_value = 0 + mock_library.niDigital_GetHistoryRAMSampleCount.side_effect = MockFunctionCallError("niDigital_GetHistoryRAMSampleCount") + mock_library.niDigital_GetHistoryRAMSampleCount.return_value = 0 + mock_library.niDigital_GetPatternName.side_effect = MockFunctionCallError("niDigital_GetPatternName") + mock_library.niDigital_GetPatternName.return_value = 0 + mock_library.niDigital_GetPatternPinList.side_effect = MockFunctionCallError("niDigital_GetPatternPinList") + mock_library.niDigital_GetPatternPinList.return_value = 0 + mock_library.niDigital_GetPinName.side_effect = MockFunctionCallError("niDigital_GetPinName") + mock_library.niDigital_GetPinName.return_value = 0 + mock_library.niDigital_GetPinResultsPinInformation.side_effect = MockFunctionCallError("niDigital_GetPinResultsPinInformation") + mock_library.niDigital_GetPinResultsPinInformation.return_value = 0 + mock_library.niDigital_GetSitePassFail.side_effect = MockFunctionCallError("niDigital_GetSitePassFail") + mock_library.niDigital_GetSitePassFail.return_value = 0 + mock_library.niDigital_GetSiteResultsSiteNumbers.side_effect = MockFunctionCallError("niDigital_GetSiteResultsSiteNumbers") + mock_library.niDigital_GetSiteResultsSiteNumbers.return_value = 0 + mock_library.niDigital_GetTimeSetDriveFormat.side_effect = MockFunctionCallError("niDigital_GetTimeSetDriveFormat") + mock_library.niDigital_GetTimeSetDriveFormat.return_value = 0 + mock_library.niDigital_GetTimeSetEdge.side_effect = MockFunctionCallError("niDigital_GetTimeSetEdge") + mock_library.niDigital_GetTimeSetEdge.return_value = 0 + mock_library.niDigital_GetTimeSetEdgeMultiplier.side_effect = MockFunctionCallError("niDigital_GetTimeSetEdgeMultiplier") + mock_library.niDigital_GetTimeSetEdgeMultiplier.return_value = 0 + mock_library.niDigital_GetTimeSetName.side_effect = MockFunctionCallError("niDigital_GetTimeSetName") + mock_library.niDigital_GetTimeSetName.return_value = 0 + mock_library.niDigital_GetTimeSetPeriod.side_effect = MockFunctionCallError("niDigital_GetTimeSetPeriod") + mock_library.niDigital_GetTimeSetPeriod.return_value = 0 + mock_library.niDigital_InitWithOptions.side_effect = MockFunctionCallError("niDigital_InitWithOptions") + mock_library.niDigital_InitWithOptions.return_value = 0 + mock_library.niDigital_Initiate.side_effect = MockFunctionCallError("niDigital_Initiate") + mock_library.niDigital_Initiate.return_value = 0 + mock_library.niDigital_IsDone.side_effect = MockFunctionCallError("niDigital_IsDone") + mock_library.niDigital_IsDone.return_value = 0 + mock_library.niDigital_IsSiteEnabled.side_effect = MockFunctionCallError("niDigital_IsSiteEnabled") + mock_library.niDigital_IsSiteEnabled.return_value = 0 + mock_library.niDigital_LoadLevels.side_effect = MockFunctionCallError("niDigital_LoadLevels") + mock_library.niDigital_LoadLevels.return_value = 0 + mock_library.niDigital_LoadPattern.side_effect = MockFunctionCallError("niDigital_LoadPattern") + mock_library.niDigital_LoadPattern.return_value = 0 + mock_library.niDigital_LoadPinMap.side_effect = MockFunctionCallError("niDigital_LoadPinMap") + mock_library.niDigital_LoadPinMap.return_value = 0 + mock_library.niDigital_LoadSpecifications.side_effect = MockFunctionCallError("niDigital_LoadSpecifications") + mock_library.niDigital_LoadSpecifications.return_value = 0 + mock_library.niDigital_LoadTiming.side_effect = MockFunctionCallError("niDigital_LoadTiming") + mock_library.niDigital_LoadTiming.return_value = 0 + mock_library.niDigital_LockSession.side_effect = MockFunctionCallError("niDigital_LockSession") + mock_library.niDigital_LockSession.return_value = 0 + mock_library.niDigital_PPMU_Measure.side_effect = MockFunctionCallError("niDigital_PPMU_Measure") + mock_library.niDigital_PPMU_Measure.return_value = 0 + mock_library.niDigital_PPMU_Source.side_effect = MockFunctionCallError("niDigital_PPMU_Source") + mock_library.niDigital_PPMU_Source.return_value = 0 + mock_library.niDigital_ReadSequencerFlag.side_effect = MockFunctionCallError("niDigital_ReadSequencerFlag") + mock_library.niDigital_ReadSequencerFlag.return_value = 0 + mock_library.niDigital_ReadSequencerRegister.side_effect = MockFunctionCallError("niDigital_ReadSequencerRegister") + mock_library.niDigital_ReadSequencerRegister.return_value = 0 + mock_library.niDigital_ReadStatic.side_effect = MockFunctionCallError("niDigital_ReadStatic") + mock_library.niDigital_ReadStatic.return_value = 0 + mock_library.niDigital_ResetDevice.side_effect = MockFunctionCallError("niDigital_ResetDevice") + mock_library.niDigital_ResetDevice.return_value = 0 + mock_library.niDigital_SelfCalibrate.side_effect = MockFunctionCallError("niDigital_SelfCalibrate") + mock_library.niDigital_SelfCalibrate.return_value = 0 + mock_library.niDigital_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niDigital_SendSoftwareEdgeTrigger") + mock_library.niDigital_SendSoftwareEdgeTrigger.return_value = 0 + mock_library.niDigital_SetAttributeViBoolean.side_effect = MockFunctionCallError("niDigital_SetAttributeViBoolean") + mock_library.niDigital_SetAttributeViBoolean.return_value = 0 + mock_library.niDigital_SetAttributeViInt32.side_effect = MockFunctionCallError("niDigital_SetAttributeViInt32") + mock_library.niDigital_SetAttributeViInt32.return_value = 0 + mock_library.niDigital_SetAttributeViInt64.side_effect = MockFunctionCallError("niDigital_SetAttributeViInt64") + mock_library.niDigital_SetAttributeViInt64.return_value = 0 + mock_library.niDigital_SetAttributeViReal64.side_effect = MockFunctionCallError("niDigital_SetAttributeViReal64") + mock_library.niDigital_SetAttributeViReal64.return_value = 0 + mock_library.niDigital_SetAttributeViString.side_effect = MockFunctionCallError("niDigital_SetAttributeViString") + mock_library.niDigital_SetAttributeViString.return_value = 0 + mock_library.niDigital_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niDigital_SetRuntimeEnvironment") + mock_library.niDigital_SetRuntimeEnvironment.return_value = 0 + mock_library.niDigital_TDR.side_effect = MockFunctionCallError("niDigital_TDR") + mock_library.niDigital_TDR.return_value = 0 + mock_library.niDigital_UnloadAllPatterns.side_effect = MockFunctionCallError("niDigital_UnloadAllPatterns") + mock_library.niDigital_UnloadAllPatterns.return_value = 0 + mock_library.niDigital_UnloadSpecifications.side_effect = MockFunctionCallError("niDigital_UnloadSpecifications") + mock_library.niDigital_UnloadSpecifications.return_value = 0 + mock_library.niDigital_UnlockSession.side_effect = MockFunctionCallError("niDigital_UnlockSession") + mock_library.niDigital_UnlockSession.return_value = 0 + mock_library.niDigital_WaitUntilDone.side_effect = MockFunctionCallError("niDigital_WaitUntilDone") + mock_library.niDigital_WaitUntilDone.return_value = 0 + mock_library.niDigital_WriteSequencerFlag.side_effect = MockFunctionCallError("niDigital_WriteSequencerFlag") + mock_library.niDigital_WriteSequencerFlag.return_value = 0 + mock_library.niDigital_WriteSequencerRegister.side_effect = MockFunctionCallError("niDigital_WriteSequencerRegister") + mock_library.niDigital_WriteSequencerRegister.return_value = 0 + mock_library.niDigital_WriteSourceWaveformBroadcastU32.side_effect = MockFunctionCallError("niDigital_WriteSourceWaveformBroadcastU32") + mock_library.niDigital_WriteSourceWaveformBroadcastU32.return_value = 0 + mock_library.niDigital_WriteSourceWaveformDataFromFileTDMS.side_effect = MockFunctionCallError("niDigital_WriteSourceWaveformDataFromFileTDMS") + mock_library.niDigital_WriteSourceWaveformDataFromFileTDMS.return_value = 0 + mock_library.niDigital_WriteSourceWaveformSiteUniqueU32.side_effect = MockFunctionCallError("niDigital_WriteSourceWaveformSiteUniqueU32") + mock_library.niDigital_WriteSourceWaveformSiteUniqueU32.return_value = 0 + mock_library.niDigital_WriteStatic.side_effect = MockFunctionCallError("niDigital_WriteStatic") + mock_library.niDigital_WriteStatic.return_value = 0 + mock_library.niDigital_close.side_effect = MockFunctionCallError("niDigital_close") + mock_library.niDigital_close.return_value = 0 + mock_library.niDigital_error_message.side_effect = MockFunctionCallError("niDigital_error_message") + mock_library.niDigital_error_message.return_value = 0 + mock_library.niDigital_reset.side_effect = MockFunctionCallError("niDigital_reset") + mock_library.niDigital_reset.return_value = 0 + mock_library.niDigital_self_test.side_effect = MockFunctionCallError("niDigital_self_test") + mock_library.niDigital_self_test.return_value = 0 diff --git a/generated/nidigital/nidigital/unit_tests/test_nidigital.py b/generated/nidigital/nidigital/unit_tests/test_nidigital.py new file mode 100644 index 0000000000..2e541c039c --- /dev/null +++ b/generated/nidigital/nidigital/unit_tests/test_nidigital.py @@ -0,0 +1,371 @@ +import _mock_helper + +import nidigital +import nitclk + +import pytest +from unittest.mock import MagicMock +from unittest.mock import patch + +session_id_for_test = 42 + + +class TestSession: + class PatchedLibrary(nidigital._library.Library): + def __init__(self, ctypes_library): + super().__init__(ctypes_library) + + for f in dir(self): + if f.startswith("niDigital_") and not f.endswith("_cfunc"): + setattr(self, f, MagicMock()) + + class PatchedTClkLibrary(nitclk._library.Library): + def __init__(self, ctypes_library): + super().__init__(ctypes_library) + + for f in dir(self): + if f.startswith("niTClk_") and not f.endswith("_cfunc"): + setattr(self, f, MagicMock()) + + def setup_method(self, method): + self.patched_library = self.PatchedLibrary(None) + self.patched_library_singleton_get = patch('nidigital._library_interpreter._library_singleton.get', return_value=self.patched_library) + self.patched_library_singleton_get.start() + + self.patched_tclk_library = self.PatchedTClkLibrary(None) + self.patched_tclk_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=self.patched_tclk_library) + self.patched_tclk_library_singleton_get.start() + + self.side_effects_helper = _mock_helper.SideEffectsHelper() + self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) + + # The side effect must be set for this, because it's called. + # No need to set argument values; the method is tested in nifake unit tests, not here. + self.patched_library.niDigital_SetRuntimeEnvironment.side_effect = self.side_effects_helper.niDigital_SetRuntimeEnvironment + + self.patched_library.niDigital_InitWithOptions.side_effect = self.side_effects_helper.niDigital_InitWithOptions + self.side_effects_helper['InitWithOptions']['newVi'] = session_id_for_test + + self.patched_library.niDigital_close.side_effect = self.side_effects_helper.niDigital_close + + self.patched_library.niDigital_LockSession.side_effect = self.side_effects_helper.niDigital_LockSession + self.side_effects_helper['LockSession']['callerHasLock'] = True + + self.patched_library.niDigital_UnlockSession.side_effect = self.side_effects_helper.niDigital_UnlockSession + self.side_effects_helper['UnlockSession']['callerHasLock'] = True + + # For trying to set `_all_channels_in_session` in the Session constructor + self.patched_library.niDigital_GetAttributeViInt32.side_effect = self.side_effects_helper.niDigital_GetAttributeViInt32 + self.side_effects_helper['GetAttributeViInt32']['value'] = 1 # channel_count + self.patched_library.niDigital_GetChannelNameFromString.side_effect = self.side_effects_helper.niDigital_GetChannelNameFromString + self.side_effects_helper['GetChannelNameFromString']['name'] = '0' # get_channel_names() + + # for niDigital_FetchHistoryRAMCycleInformation_looping + self.pattern_indices_looping = [0, 0, 0, 0, 0, 0, 0] + self.time_set_indices_looping = [0, 1, 1, 2, 2, 2, 0] + self.vector_numbers_looping = [5, 6, 6, 7, 7, 8, 9] + self.cycle_numbers_looping = [5, 6, 7, 8, 9, 10, 11] + self.num_duty_cycles_looping = [1, 1, 1, 2, 2, 2, 1] + + # for niDigital_GetTimeSetName_looping + self.time_set_name_looping = ['t0', 'tScan', 't2X'] + + # for niDigital_FetchHistoryRAMScanCycleNumber_looping + self.scan_cycle_number_looping = [-1, 0, 1, -1, -1, -1, -1] + + # for niDigital_FetchHistoryRAMCyclePinData_looping + self.expected_pin_states_looping = [ + [[nidigital.PinState.ZERO, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.ZERO, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H]], + [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.ONE, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L]], + [[nidigital.PinState.ONE, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], + [nidigital.PinState.ZERO, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.ONE, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], + [nidigital.PinState.ZERO, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.ZERO, nidigital.PinState.ONE, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], + [nidigital.PinState.ONE, nidigital.PinState.ZERO, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X]] + ] + self.actual_pin_states_looping = [ + [[nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H]], + [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L]], + [[nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], + [nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], + [nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.L, nidigital.PinState.H, nidigital.PinState.X, nidigital.PinState.X], + [nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.H, nidigital.PinState.L, nidigital.PinState.X, nidigital.PinState.X]], + [[nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X, nidigital.PinState.X]] + ] + self.per_pin_pass_fail_looping = [ + [[True, False, True, True, False, True, True, True]], + [[True, True, True, True, True, True, True, True]], + [[True, True, True, True, True, True, True, True]], + [[True, True, True, True, True, True, True, True], [True, True, True, True, True, True, True, True]], + [[True, True, True, True, True, True, True, True], [True, True, True, True, True, True, True, True]], + [[True, True, True, True, True, True, True, True], [True, True, True, True, True, True, True, True]], + [[True, True, True, True, True, True, True, True]], + ] + + # for niDigital_FetchHistoryRAMCyclePinData_check_pins_looping + self.expected_pin_list_check_pins_looping = None + self.expected_pin_states_check_pins_looping = [[[nidigital.PinState.ZERO, nidigital.PinState.H]]] + self.actual_pin_states_check_pins_looping = [[[nidigital.PinState.L, nidigital.PinState.L]]] + self.per_pin_pass_fail_check_pins_looping = [[[True, False]]] + + # for niDigital_GetHistoryRAMSampleCount_check_site_looping + self.iteration_check_site_looping = 0 + self.site_numbers_looping = [0, 1, 2] + + def teardown_method(self, method): + self.patched_tclk_library_singleton_get.stop() + self.patched_library_singleton_get.stop() + + # API Tests + + # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), + # this test should be converted to a system test. (GitHub issue# 1353). + def test_fetch_history_ram_cycle_information_position_out_of_bound(self): + + self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount + self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 + with nidigital.Session('') as session: + with pytest.raises(ValueError, match='position: Specified value = 8, Maximum value = 6.'): + session.sites[1].fetch_history_ram_cycle_information(position=8, samples_to_read=-1) + + # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), + # this test should be converted to a system test. (GitHub issue# 1353). + def test_fetch_history_ram_cycle_information_position_last(self): + + self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount + self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 + self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean + self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite + self.patched_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMCycleInformation + self.side_effects_helper['FetchHistoryRAMCycleInformation']['patternIndex'] = 0 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['timeSetIndex'] = 0 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['vectorNumber'] = 9 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['cycleNumber'] = 11 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['numDutCycles'] = 1 + self.patched_library.niDigital_GetPatternName.side_effect = self.side_effects_helper.niDigital_GetPatternName + self.side_effects_helper['GetPatternName']['name'] = 'new_pattern' + self.patched_library.niDigital_GetTimeSetName.side_effect = self.side_effects_helper.niDigital_GetTimeSetName + self.side_effects_helper['GetTimeSetName']['name'] = 't0' + self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMScanCycleNumber + self.side_effects_helper['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] = -1 + self.patched_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMCyclePinData + self.side_effects_helper['FetchHistoryRAMCyclePinData']['actualNumPinData'] = 8 + self.side_effects_helper['FetchHistoryRAMCyclePinData']['expectedPinStates'] = [nidigital.PinState.X.value] * 8 + self.side_effects_helper['FetchHistoryRAMCyclePinData']['actualPinStates'] = [nidigital.PinState.NOT_A_PIN_STATE.value] * 8 + self.side_effects_helper['FetchHistoryRAMCyclePinData']['perPinPassFail'] = [True] * 8 + with nidigital.Session('') as session: + history_ram_cycle_info = session.sites[1].fetch_history_ram_cycle_information( + position=6, + samples_to_read=-1) + self.patched_library.niDigital_FetchHistoryRAMCycleInformation.assert_called_once() + assert self.patched_library.niDigital_GetPatternName.call_count == 2 + assert self.patched_library.niDigital_GetTimeSetName.call_count == 2 + self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.assert_called_once() + assert self.patched_library.niDigital_FetchHistoryRAMCyclePinData.call_count == 2 + + assert len(history_ram_cycle_info) == 1 + assert history_ram_cycle_info[0].vector_number == 9 + assert history_ram_cycle_info[0].cycle_number == 11 + + # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), + # this test should be converted to a system test. (GitHub issue# 1353). + def test_fetch_history_ram_cycle_information_samples_to_read_too_much(self): + + self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount + self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 + self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean + self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite + + with nidigital.Session('') as session: + assert session.sites[1].get_history_ram_sample_count() == 7 + + expected_error_description = ( + 'position: Specified value = 3, samples_to_read: Specified value = 5; Samples available = 4.') + with pytest.raises(ValueError, match=expected_error_description): + session.sites[1].fetch_history_ram_cycle_information(position=3, samples_to_read=5) + + # Helper function for mocking multiple calls + def niDigital_FetchHistoryRAMCycleInformation_looping(self, vi, site, sample_index, pattern_index, time_set_index, vector_number, cycle_number, num_dut_cycles): # noqa: N802 + sample_index_int = int(sample_index.value) + pattern_index.contents.value = self.pattern_indices_looping[sample_index_int] + time_set_index.contents.value = self.time_set_indices_looping[sample_index_int] + vector_number.contents.value = self.vector_numbers_looping[sample_index_int] + cycle_number.contents.value = self.cycle_numbers_looping[sample_index_int] + num_dut_cycles.contents.value = self.num_duty_cycles_looping[sample_index_int] + return 0 + + # Helper function for mocking multiple calls + def niDigital_GetTimeSetName_looping(self, vi, time_set_index, name_buffer_size, name): # noqa: N802 + time_set_index_int = int(time_set_index.value) + if int(name_buffer_size.value) == 0: + return (len(self.time_set_name_looping[time_set_index_int])) + bytes_to_copy = self.time_set_name_looping[time_set_index_int].encode('ascii') + for i in range(0, len(bytes_to_copy)): + name[i] = bytes_to_copy[i] + return 0 + + # Helper function for mocking multiple calls + def niDigital_FetchHistoryRAMScanCycleNumber_looping(self, vi, site, sample_index, scan_cycle_number): # noqa: N802 + sample_index_int = int(sample_index.value) + scan_cycle_number.contents.value = self.scan_cycle_number_looping[sample_index_int] + return 0 + + # Helper function for mocking multiple calls + def niDigital_FetchHistoryRAMCyclePinData_looping(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 + sample_index_int = int(sample_index.value) + dut_cycle_index_int = int(dut_cycle_index.value) + if int(pin_data_buffer_size.value) == 0: + actual_num_pin_data.contents.value = len(self.expected_pin_states_looping[sample_index_int][dut_cycle_index_int]) + return actual_num_pin_data.contents.value + for i in range(0, int(pin_data_buffer_size.value)): + expected_pin_states[i] = self.expected_pin_states_looping[sample_index_int][dut_cycle_index_int][i].value + actual_pin_states[i] = self.actual_pin_states_looping[sample_index_int][dut_cycle_index_int][i].value + per_pin_pass_fail[i] = self.per_pin_pass_fail_looping[sample_index_int][dut_cycle_index_int][i] + return 0 + + # TODO(sbethur): When nidigital driver provides better simulation support (internal bug# 992370), + # this test should be converted to a system test. (GitHub issue# 1353). + def test_fetch_history_ram_cycle_information_samples_to_read_all(self): + + self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount + self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 7 + self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean + self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite + self.patched_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = self.niDigital_FetchHistoryRAMCycleInformation_looping + self.patched_library.niDigital_GetPatternName.side_effect = self.side_effects_helper.niDigital_GetPatternName + self.side_effects_helper['GetPatternName']['name'] = 'new_pattern' + self.patched_library.niDigital_GetTimeSetName.side_effect = self.niDigital_GetTimeSetName_looping + self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = self.niDigital_FetchHistoryRAMScanCycleNumber_looping + self.patched_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = self.niDigital_FetchHistoryRAMCyclePinData_looping + self.patched_library.niDigital_GetPatternPinList.side_effect = self.side_effects_helper.niDigital_GetPatternPinList + pin_list = ['LO' + str(i) for i in range(4)] + ['HI' + str(i) for i in range(4)] + self.side_effects_helper['GetPatternPinList']['pinList'] = ','.join(pin_list) + with nidigital.Session('') as session: + history_ram_cycle_info = session.sites[1].fetch_history_ram_cycle_information( + position=0, + samples_to_read=-1) + assert self.patched_library.niDigital_FetchHistoryRAMCycleInformation.call_count == 7 + assert self.patched_library.niDigital_GetPatternName.call_count == 2 # there's only one pattern, so this is a 2 + assert self.patched_library.niDigital_GetTimeSetName.call_count == 6 # 3 time sets, so this is a 6 + assert self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.call_count == 7 + assert self.patched_library.niDigital_FetchHistoryRAMCyclePinData.call_count == 20 # 10 DUT cycles + + assert len(history_ram_cycle_info) == 7 + assert all([i.pattern_name == 'new_pattern' for i in history_ram_cycle_info]) + + time_set_names = [i.time_set_name for i in history_ram_cycle_info] + assert time_set_names == ['t0', 'tScan', 'tScan', 't2X', 't2X', 't2X', 't0'] + + vector_numbers = [i.vector_number for i in history_ram_cycle_info] + assert vector_numbers == [5, 6, 6, 7, 7, 8, 9] + + cycle_numbers = [i.cycle_number for i in history_ram_cycle_info] + assert cycle_numbers == list(range(5, 12)) + + scan_cycle_numbers = [i.scan_cycle_number for i in history_ram_cycle_info] + assert scan_cycle_numbers == [-1, 0, 1, -1, -1, -1, -1] + + pin_names = session.get_pattern_pin_names('new_pattern') + assert self.patched_library.niDigital_GetPatternPinList.call_count == 2 + assert pin_names == pin_list + + expected_pin_states = [i.expected_pin_states for i in history_ram_cycle_info] + assert expected_pin_states == self.expected_pin_states_looping + + # If test expects actual pin state to be 'X', then value returned by the API can be anything. + # So, need to skip those pin states while comparing. + actual_pin_states = [i.actual_pin_states for i in history_ram_cycle_info] + assert len(actual_pin_states) == len(self.actual_pin_states_looping) + for vector_pin_states, vector_pin_states_expected_by_test in zip(actual_pin_states, self.actual_pin_states_looping): + for cycle_pin_states, cycle_pin_states_expected_by_test in zip(vector_pin_states, vector_pin_states_expected_by_test): + for pin_state, pin_state_expected_by_test in zip(cycle_pin_states, cycle_pin_states_expected_by_test): + if pin_state_expected_by_test is not nidigital.PinState.X: + assert pin_state == pin_state_expected_by_test + + # Only the first cycle returned is expected to have failures + per_pin_pass_fail = [i.per_pin_pass_fail for i in history_ram_cycle_info] + assert per_pin_pass_fail == self.per_pin_pass_fail_looping + + # Helper function for validating pin list behavior in fetch_history_ram_cycle_information. + def niDigital_FetchHistoryRAMCyclePinData_check_pins_looping(self, vi, site, pin_list, sample_index, dut_cycle_index, pin_data_buffer_size, expected_pin_states, actual_pin_states, per_pin_pass_fail, actual_num_pin_data): # noqa: N802 + sample_index_int = int(sample_index.value) + dut_cycle_index_int = int(dut_cycle_index.value) + if int(pin_data_buffer_size.value) == 0: + actual_num_pin_data.contents.value = len(self.expected_pin_states_check_pins_looping[sample_index_int][dut_cycle_index_int]) + return actual_num_pin_data.contents.value + for i in range(0, int(pin_data_buffer_size.value)): + expected_pin_states[i] = self.expected_pin_states_check_pins_looping[sample_index_int][dut_cycle_index_int][i].value + actual_pin_states[i] = self.actual_pin_states_check_pins_looping[sample_index_int][dut_cycle_index_int][i].value + per_pin_pass_fail[i] = self.per_pin_pass_fail_check_pins_looping[sample_index_int][dut_cycle_index_int][i] + assert self.expected_pin_list_check_pins_looping is not None + assert pin_list.value.decode('ascii') == self.expected_pin_list_check_pins_looping + return 0 + + def test_fetch_history_ram_cycle_information_pin_list(self): + + self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.side_effects_helper.niDigital_GetHistoryRAMSampleCount + self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 1 + self.patched_library.niDigital_GetAttributeViBoolean.side_effect = self.side_effects_helper.niDigital_GetAttributeViBoolean + self.side_effects_helper['GetAttributeViBoolean']['value'] = True # history_ram_number_of_samples_is_finite + self.patched_library.niDigital_FetchHistoryRAMCycleInformation.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMCycleInformation + self.side_effects_helper['FetchHistoryRAMCycleInformation']['patternIndex'] = 0 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['timeSetIndex'] = 0 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['vectorNumber'] = 0 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['cycleNumber'] = 0 + self.side_effects_helper['FetchHistoryRAMCycleInformation']['numDutCycles'] = 1 + self.patched_library.niDigital_GetPatternName.side_effect = self.side_effects_helper.niDigital_GetPatternName + self.side_effects_helper['GetPatternName']['name'] = 'new_pattern' + self.patched_library.niDigital_GetTimeSetName.side_effect = self.side_effects_helper.niDigital_GetTimeSetName + self.side_effects_helper['GetTimeSetName']['name'] = 't0' + self.patched_library.niDigital_FetchHistoryRAMScanCycleNumber.side_effect = self.side_effects_helper.niDigital_FetchHistoryRAMScanCycleNumber + self.side_effects_helper['FetchHistoryRAMScanCycleNumber']['scanCycleNumber'] = -1 + self.patched_library.niDigital_FetchHistoryRAMCyclePinData.side_effect = self.niDigital_FetchHistoryRAMCyclePinData_check_pins_looping + with nidigital.Session('') as session: + self.expected_pin_list_check_pins_looping = 'PinA,PinB' + session.sites[0].pins['PinA', 'PinB'].fetch_history_ram_cycle_information(position=0, samples_to_read=-1) + self.expected_pin_list_check_pins_looping = '' + session.sites[0].fetch_history_ram_cycle_information(position=0, samples_to_read=-1) + assert self.patched_library.niDigital_FetchHistoryRAMCyclePinData.call_count == 4 + + # Helper function for validating site behavior in fetch_history_ram_cycle_information. + def niDigital_GetHistoryRAMSampleCount_check_site_looping(self, vi, site, sample_count): # noqa: N802 + assert site.value.decode('ascii') == f'site{self.site_numbers_looping[self.iteration_check_site_looping]}' + sample_count.contents.value = 0 # we don't care if this is right as long as the fetch does not error + self.iteration_check_site_looping += 1 + return 0 + + def test_fetch_history_ram_cycle_information_site_n(self): + + self.patched_library.niDigital_GetHistoryRAMSampleCount.side_effect = self.niDigital_GetHistoryRAMSampleCount_check_site_looping + self.side_effects_helper['GetHistoryRAMSampleCount']['sampleCount'] = 1 + + with nidigital.Session('') as session: + for s in self.site_numbers_looping: + session.sites[s].fetch_history_ram_cycle_information(position=0, samples_to_read=0) + assert self.patched_library.niDigital_GetHistoryRAMSampleCount.call_count == len(self.site_numbers_looping) + + def test_pin_state_enum_print(self): + + assert str(nidigital.PinState.ZERO) == '0' + assert str(nidigital.PinState.ONE) == '1' + assert str(nidigital.PinState.NOT_A_PIN_STATE) == 'Not a Pin State' + assert str(nidigital.PinState.PIN_STATE_NOT_ACQUIRED) == 'Pin State Not Acquired' + assert str(nidigital.PinState.L) == 'L' + assert str(nidigital.PinState.H) == 'H' + assert str(nidigital.PinState.X) == 'X' + assert str(nidigital.PinState.M) == 'M' + assert str(nidigital.PinState.V) == 'V' + assert str(nidigital.PinState.D) == 'D' + assert str(nidigital.PinState.E) == 'E' + + def test_write_static_pin_state_enum_print(self): + + assert str(nidigital.WriteStaticPinState.ZERO) == '0' + assert str(nidigital.WriteStaticPinState.ONE) == '1' + assert str(nidigital.WriteStaticPinState.X) == 'X' diff --git a/generated/nidigital/setup.py b/generated/nidigital/setup.py new file mode 100644 index 0000000000..ec3377e3c2 --- /dev/null +++ b/generated/nidigital/setup.py @@ -0,0 +1,64 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nidigital' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-Digital Pattern Driver Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nidigital'], + license='MIT', + include_package_data=True, + packages=['nidigital'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + 'nitclk', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nidigital/tox-system_tests.ini b/generated/nidigital/tox-system_tests.ini new file mode 100644 index 0000000000..6d4b4e2fe5 --- /dev/null +++ b/generated/nidigital/tox-system_tests.ini @@ -0,0 +1,74 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nidigital) +[tox] +envlist = py{310,311,312,313,314}-nidigital-wheel_dep,py{310,311,312,313,314}-nidigital-system_tests, py314-nidigital-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nidigital-wheel_dep: Build the nitclk wheel because we use it in nidigital tests + nidigital-system_tests: Run nidigital system tests (requires NI-Digital Pattern Driver runtime to be installed) + nidigital-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nidigital-wheel_dep: ../nitclk + nidigital-system_tests: . + nidigital-coverage: . + +commands = + nidigital-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nidigital-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nidigital-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. + nidigital-system_tests: python -c "import nidigital; nidigital.print_diagnostic_information()" + nidigital-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidigital --parallel-mode -m pytest ../../src/nidigital/examples --junitxml=../junit/junit-nidigital-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nidigital-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidigital --parallel-mode -m pytest ../../src/nidigital/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidigital-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nidigital-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nidigital-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nidigital-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nidigital-wheel_dep: build + + nidigital-system_tests: nisync + nidigital-system_tests: pytest < 9.2.0 + nidigital-system_tests: coverage + nidigital-system_tests: numpy + nidigital-system_tests: hightime + nidigital-system_tests: fasteners + nidigital-system_tests: pytest-json + nidigital-system_tests: .[grpc] + + nidigital-coverage: coverage + +depends = + nidigital-coverage: py{310,311,312,313,314}-nidigital-system_tests + nidigital-system_tests: py{310,311,312,313,314}-nidigital-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nidmm/README.rst b/generated/nidmm/README.rst new file mode 100644 index 0000000000..d60384117f --- /dev/null +++ b/generated/nidmm/README.rst @@ -0,0 +1,171 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nidmm** module provides a Python API for NI-DMM. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nidmm** supports all the Operating Systems supported by NI-DMM. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nidmm**. + + +NI-DMM Python API Status +------------------------ + ++-------------------------------+----------------------+ +| NI-DMM (nidmm) | | ++===============================+======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+----------------------+ +| PyPI Version | |nidmmLatestVersion| | ++-------------------------------+----------------------+ +| Supported Python Version | |nidmmPythonVersion| | ++-------------------------------+----------------------+ +| Documentation | |nidmmDocs| | ++-------------------------------+----------------------+ +| Open Issues | |nidmmOpenIssues| | ++-------------------------------+----------------------+ +| Open Pull Requests | |nidmmOpenPRs| | ++-------------------------------+----------------------+ + + +.. |nidmmLatestVersion| image:: http://img.shields.io/pypi/v/nidmm.svg + :alt: Latest NI-DMM Version + :target: http://pypi.python.org/pypi/nidmm + + +.. |nidmmPythonVersion| image:: http://img.shields.io/pypi/pyversions/nidmm.svg + :alt: NI-DMM supported Python versions + :target: http://pypi.python.org/pypi/nidmm + + +.. |nidmmDocs| image:: https://readthedocs.org/projects/nidmm/badge/?version=latest + :alt: NI-DMM Python API Documentation Status + :target: https://nidmm.readthedocs.io/en/latest + + +.. |nidmmOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nidmm.svg + :alt: Open Issues + Pull Requests for NI-DMM + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anidmm + + +.. |nidmmOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nidmm.svg + :alt: Pull Requests for NI-DMM + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anidmm + + + +.. _nidmm_installation-section: + +Installation +------------ + +As a prerequisite to using the **nidmm** module, you must install the NI-DMM runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-DMM**) can be installed with `pip `_:: + + $ python -m pip install nidmm + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nidmm** module to open a session to a DMM and perform a 5.5 digits of resolution voltage measurement in the 10 V range. + +.. code-block:: python + + import nidmm + with nidmm.Session("Dev1") as session: + session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5) + print("Measurement: " + str(session.read())) + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nidmm/nidmm/VERSION b/generated/nidmm/nidmm/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nidmm/nidmm/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nidmm/nidmm/__init__.py b/generated/nidmm/nidmm/__init__.py new file mode 100644 index 0000000000..9ce05942dc --- /dev/null +++ b/generated/nidmm/nidmm/__init__.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nidmm.enums import * # noqa: F403,F401,H303 +from nidmm.errors import DriverWarning # noqa: F401 +from nidmm.errors import Error # noqa: F401 +from nidmm.grpc_session_options import * # noqa: F403,F401,H303 +from nidmm.session import Session # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-DMM\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-DMM" + info['driver']['version'] = driver_version + info['module']['name'] = 'nidmm' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nidmm/nidmm/_attributes.py b/generated/nidmm/nidmm/_attributes.py new file mode 100644 index 0000000000..82e2329efa --- /dev/null +++ b/generated/nidmm/nidmm/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nidmm._converters as _converters +import nidmm.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nidmm Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nidmm.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nidmm/nidmm/_converters.py b/generated/nidmm/nidmm/_converters.py new file mode 100644 index 0000000000..7dcf49ee8f --- /dev/null +++ b/generated/nidmm/nidmm/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nidmm._visatype as _visatype +import nidmm.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nidmm/nidmm/_grpc_stub_interpreter.py b/generated/nidmm/nidmm/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..91bf0fa8b6 --- /dev/null +++ b/generated/nidmm/nidmm/_grpc_stub_interpreter.py @@ -0,0 +1,398 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nidmm_pb2 as grpc_types +from . import nidmm_pb2_grpc as nidmm_grpc + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nidmm_grpc.NiDmmStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.Abort, + grpc_types.AbortRequest(vi=self._vi), + ) + + def configure_measurement_absolute(self, measurement_function, range, resolution_absolute): # noqa: N802 + self._invoke( + self._client.ConfigureMeasurementAbsolute, + grpc_types.ConfigureMeasurementAbsoluteRequest(vi=self._vi, measurement_function_raw=measurement_function.value, range=range, resolution_absolute=resolution_absolute), + ) + + def configure_measurement_digits(self, measurement_function, range, resolution_digits): # noqa: N802 + self._invoke( + self._client.ConfigureMeasurementDigits, + grpc_types.ConfigureMeasurementDigitsRequest(vi=self._vi, measurement_function_raw=measurement_function.value, range=range, resolution_digits=resolution_digits), + ) + + def configure_multi_point(self, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 + self._invoke( + self._client.ConfigureMultiPoint, + grpc_types.ConfigureMultiPointRequest(vi=self._vi, trigger_count_raw=trigger_count, sample_count_raw=sample_count, sample_trigger_raw=sample_trigger.value, sample_interval_raw=sample_interval), + ) + + def configure_rtd_custom(self, rtd_a, rtd_b, rtd_c): # noqa: N802 + self._invoke( + self._client.ConfigureRTDCustom, + grpc_types.ConfigureRTDCustomRequest(vi=self._vi, rtd_a=rtd_a, rtd_b=rtd_b, rtd_c=rtd_c), + ) + + def configure_rtd_type(self, rtd_type, rtd_resistance): # noqa: N802 + self._invoke( + self._client.ConfigureRTDType, + grpc_types.ConfigureRTDTypeRequest(vi=self._vi, rtd_type_raw=rtd_type.value, rtd_resistance=rtd_resistance), + ) + + def configure_thermistor_custom(self, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 + self._invoke( + self._client.ConfigureThermistorCustom, + grpc_types.ConfigureThermistorCustomRequest(vi=self._vi, thermistor_a=thermistor_a, thermistor_b=thermistor_b, thermistor_c=thermistor_c), + ) + + def configure_thermocouple(self, thermocouple_type, reference_junction_type): # noqa: N802 + self._invoke( + self._client.ConfigureThermocouple, + grpc_types.ConfigureThermocoupleRequest(vi=self._vi, thermocouple_type_raw=thermocouple_type.value, reference_junction_type_raw=reference_junction_type.value), + ) + + def configure_trigger(self, trigger_source, trigger_delay): # noqa: N802 + self._invoke( + self._client.ConfigureTrigger, + grpc_types.ConfigureTriggerRequest(vi=self._vi, trigger_source_raw=trigger_source.value, trigger_delay_raw=trigger_delay), + ) + + def configure_waveform_acquisition(self, measurement_function, range, rate, waveform_points): # noqa: N802 + self._invoke( + self._client.ConfigureWaveformAcquisition, + grpc_types.ConfigureWaveformAcquisitionRequest(vi=self._vi, measurement_function_raw=measurement_function.value, range=range, rate=rate, waveform_points=waveform_points), + ) + + def disable(self): # noqa: N802 + self._invoke( + self._client.Disable, + grpc_types.DisableRequest(vi=self._vi), + ) + + def export_attribute_configuration_buffer(self): # noqa: N802 + response = self._invoke( + self._client.ExportAttributeConfigurationBuffer, + grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), + ) + return response.configuration + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ExportAttributeConfigurationFile, + grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def fetch(self, maximum_time): # noqa: N802 + response = self._invoke( + self._client.Fetch, + grpc_types.FetchRequest(vi=self._vi, maximum_time_raw=maximum_time), + ) + return response.reading + + def fetch_multi_point(self, maximum_time, array_size): # noqa: N802 + response = self._invoke( + self._client.FetchMultiPoint, + grpc_types.FetchMultiPointRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), + ) + return response.reading_array + + def fetch_waveform(self, maximum_time, array_size): # noqa: N802 + response = self._invoke( + self._client.FetchWaveform, + grpc_types.FetchWaveformRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), + ) + return response.waveform_array + + def fetch_waveform_into(self, maximum_time, array_size): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_cal_date_and_time(self, cal_type): # noqa: N802 + response = self._invoke( + self._client.GetCalDateAndTime, + grpc_types.GetCalDateAndTimeRequest(vi=self._vi, cal_type=cal_type), + ) + return response.month, response.day, response.year, response.hour, response.minute + + def get_dev_temp(self, options): # noqa: N802 + response = self._invoke( + self._client.GetDevTemp, + grpc_types.GetDevTempRequest(vi=self._vi, options=options), + ) + return response.temperature + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.description + + def get_ext_cal_recommended_interval(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalRecommendedInterval, + grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), + ) + return response.months + + def get_last_cal_temp(self, cal_type): # noqa: N802 + response = self._invoke( + self._client.GetLastCalTemp, + grpc_types.GetLastCalTempRequest(vi=self._vi, cal_type=cal_type), + ) + return response.temperature + + def get_self_cal_supported(self): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalSupported, + grpc_types.GetSelfCalSupportedRequest(vi=self._vi), + ) + return response.self_cal_supported + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationBuffer, + grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), + ) + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationFile, + grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithOptions, + grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate(self): # noqa: N802 + self._invoke( + self._client.Initiate, + grpc_types.InitiateRequest(vi=self._vi), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def perform_open_cable_comp(self): # noqa: N802 + response = self._invoke( + self._client.PerformOpenCableComp, + grpc_types.PerformOpenCableCompRequest(vi=self._vi), + ) + return response.conductance, response.susceptance + + def perform_short_cable_comp(self): # noqa: N802 + response = self._invoke( + self._client.PerformShortCableComp, + grpc_types.PerformShortCableCompRequest(vi=self._vi), + ) + return response.resistance, response.reactance + + def read(self, maximum_time): # noqa: N802 + response = self._invoke( + self._client.Read, + grpc_types.ReadRequest(vi=self._vi, maximum_time_raw=maximum_time), + ) + return response.reading + + def read_multi_point(self, maximum_time, array_size): # noqa: N802 + response = self._invoke( + self._client.ReadMultiPoint, + grpc_types.ReadMultiPointRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), + ) + return response.reading_array + + def read_status(self): # noqa: N802 + response = self._invoke( + self._client.ReadStatus, + grpc_types.ReadStatusRequest(vi=self._vi), + ) + return response.acquisition_backlog, enums.AcquisitionStatus(response.acquisition_status_raw) + + def read_waveform(self, maximum_time, array_size): # noqa: N802 + response = self._invoke( + self._client.ReadWaveform, + grpc_types.ReadWaveformRequest(vi=self._vi, maximum_time_raw=maximum_time, array_size=array_size), + ) + return response.waveform_array + + def reset_with_defaults(self): # noqa: N802 + self._invoke( + self._client.ResetWithDefaults, + grpc_types.ResetWithDefaultsRequest(vi=self._vi), + ) + + def self_cal(self): # noqa: N802 + self._invoke( + self._client.SelfCal, + grpc_types.SelfCalRequest(vi=self._vi), + ) + + def send_software_trigger(self): # noqa: N802 + self._invoke( + self._client.SendSoftwareTrigger, + grpc_types.SendSoftwareTriggerRequest(vi=self._vi), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def unlock(self): # noqa: N802 + self._lock.release() + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.GetErrorMessage, + grpc_types.GetErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.self_test_result, response.self_test_message diff --git a/generated/nidmm/nidmm/_library.py b/generated/nidmm/nidmm/_library.py new file mode 100644 index 0000000000..67dc31dffb --- /dev/null +++ b/generated/nidmm/nidmm/_library.py @@ -0,0 +1,478 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nidmm.errors as errors +import threading + +from nidmm._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niDMM_Abort_cfunc = None + self.niDMM_ConfigureMeasurementAbsolute_cfunc = None + self.niDMM_ConfigureMeasurementDigits_cfunc = None + self.niDMM_ConfigureMultiPoint_cfunc = None + self.niDMM_ConfigureRTDCustom_cfunc = None + self.niDMM_ConfigureRTDType_cfunc = None + self.niDMM_ConfigureThermistorCustom_cfunc = None + self.niDMM_ConfigureThermocouple_cfunc = None + self.niDMM_ConfigureTrigger_cfunc = None + self.niDMM_ConfigureWaveformAcquisition_cfunc = None + self.niDMM_Disable_cfunc = None + self.niDMM_ExportAttributeConfigurationBuffer_cfunc = None + self.niDMM_ExportAttributeConfigurationFile_cfunc = None + self.niDMM_Fetch_cfunc = None + self.niDMM_FetchMultiPoint_cfunc = None + self.niDMM_FetchWaveform_cfunc = None + self.niDMM_GetAttributeViBoolean_cfunc = None + self.niDMM_GetAttributeViInt32_cfunc = None + self.niDMM_GetAttributeViReal64_cfunc = None + self.niDMM_GetAttributeViString_cfunc = None + self.niDMM_GetCalDateAndTime_cfunc = None + self.niDMM_GetDevTemp_cfunc = None + self.niDMM_GetError_cfunc = None + self.niDMM_GetExtCalRecommendedInterval_cfunc = None + self.niDMM_GetLastCalTemp_cfunc = None + self.niDMM_GetSelfCalSupported_cfunc = None + self.niDMM_ImportAttributeConfigurationBuffer_cfunc = None + self.niDMM_ImportAttributeConfigurationFile_cfunc = None + self.niDMM_InitWithOptions_cfunc = None + self.niDMM_Initiate_cfunc = None + self.niDMM_LockSession_cfunc = None + self.niDMM_PerformOpenCableComp_cfunc = None + self.niDMM_PerformShortCableComp_cfunc = None + self.niDMM_Read_cfunc = None + self.niDMM_ReadMultiPoint_cfunc = None + self.niDMM_ReadStatus_cfunc = None + self.niDMM_ReadWaveform_cfunc = None + self.niDMM_ResetWithDefaults_cfunc = None + self.niDMM_SelfCal_cfunc = None + self.niDMM_SendSoftwareTrigger_cfunc = None + self.niDMM_SetAttributeViBoolean_cfunc = None + self.niDMM_SetAttributeViInt32_cfunc = None + self.niDMM_SetAttributeViReal64_cfunc = None + self.niDMM_SetAttributeViString_cfunc = None + self.niDMM_SetRuntimeEnvironment_cfunc = None + self.niDMM_UnlockSession_cfunc = None + self.niDMM_close_cfunc = None + self.niDMM_error_message_cfunc = None + self.niDMM_reset_cfunc = None + self.niDMM_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niDMM_Abort(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_Abort_cfunc is None: + self.niDMM_Abort_cfunc = self._get_library_function('niDMM_Abort') + self.niDMM_Abort_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_Abort_cfunc(vi) + + def niDMM_ConfigureMeasurementAbsolute(self, vi, measurement_function, range, resolution_absolute): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureMeasurementAbsolute_cfunc is None: + self.niDMM_ConfigureMeasurementAbsolute_cfunc = self._get_library_function('niDMM_ConfigureMeasurementAbsolute') + self.niDMM_ConfigureMeasurementAbsolute_cfunc.argtypes = [ViSession, ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niDMM_ConfigureMeasurementAbsolute_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureMeasurementAbsolute_cfunc(vi, measurement_function, range, resolution_absolute) + + def niDMM_ConfigureMeasurementDigits(self, vi, measurement_function, range, resolution_digits): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureMeasurementDigits_cfunc is None: + self.niDMM_ConfigureMeasurementDigits_cfunc = self._get_library_function('niDMM_ConfigureMeasurementDigits') + self.niDMM_ConfigureMeasurementDigits_cfunc.argtypes = [ViSession, ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niDMM_ConfigureMeasurementDigits_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureMeasurementDigits_cfunc(vi, measurement_function, range, resolution_digits) + + def niDMM_ConfigureMultiPoint(self, vi, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureMultiPoint_cfunc is None: + self.niDMM_ConfigureMultiPoint_cfunc = self._get_library_function('niDMM_ConfigureMultiPoint') + self.niDMM_ConfigureMultiPoint_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViInt32, ViReal64] # noqa: F405 + self.niDMM_ConfigureMultiPoint_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureMultiPoint_cfunc(vi, trigger_count, sample_count, sample_trigger, sample_interval) + + def niDMM_ConfigureRTDCustom(self, vi, rtd_a, rtd_b, rtd_c): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureRTDCustom_cfunc is None: + self.niDMM_ConfigureRTDCustom_cfunc = self._get_library_function('niDMM_ConfigureRTDCustom') + self.niDMM_ConfigureRTDCustom_cfunc.argtypes = [ViSession, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niDMM_ConfigureRTDCustom_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureRTDCustom_cfunc(vi, rtd_a, rtd_b, rtd_c) + + def niDMM_ConfigureRTDType(self, vi, rtd_type, rtd_resistance): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureRTDType_cfunc is None: + self.niDMM_ConfigureRTDType_cfunc = self._get_library_function('niDMM_ConfigureRTDType') + self.niDMM_ConfigureRTDType_cfunc.argtypes = [ViSession, ViInt32, ViReal64] # noqa: F405 + self.niDMM_ConfigureRTDType_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureRTDType_cfunc(vi, rtd_type, rtd_resistance) + + def niDMM_ConfigureThermistorCustom(self, vi, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureThermistorCustom_cfunc is None: + self.niDMM_ConfigureThermistorCustom_cfunc = self._get_library_function('niDMM_ConfigureThermistorCustom') + self.niDMM_ConfigureThermistorCustom_cfunc.argtypes = [ViSession, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niDMM_ConfigureThermistorCustom_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureThermistorCustom_cfunc(vi, thermistor_a, thermistor_b, thermistor_c) + + def niDMM_ConfigureThermocouple(self, vi, thermocouple_type, reference_junction_type): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureThermocouple_cfunc is None: + self.niDMM_ConfigureThermocouple_cfunc = self._get_library_function('niDMM_ConfigureThermocouple') + self.niDMM_ConfigureThermocouple_cfunc.argtypes = [ViSession, ViInt32, ViInt32] # noqa: F405 + self.niDMM_ConfigureThermocouple_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureThermocouple_cfunc(vi, thermocouple_type, reference_junction_type) + + def niDMM_ConfigureTrigger(self, vi, trigger_source, trigger_delay): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureTrigger_cfunc is None: + self.niDMM_ConfigureTrigger_cfunc = self._get_library_function('niDMM_ConfigureTrigger') + self.niDMM_ConfigureTrigger_cfunc.argtypes = [ViSession, ViInt32, ViReal64] # noqa: F405 + self.niDMM_ConfigureTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureTrigger_cfunc(vi, trigger_source, trigger_delay) + + def niDMM_ConfigureWaveformAcquisition(self, vi, measurement_function, range, rate, waveform_points): # noqa: N802 + with self._func_lock: + if self.niDMM_ConfigureWaveformAcquisition_cfunc is None: + self.niDMM_ConfigureWaveformAcquisition_cfunc = self._get_library_function('niDMM_ConfigureWaveformAcquisition') + self.niDMM_ConfigureWaveformAcquisition_cfunc.argtypes = [ViSession, ViInt32, ViReal64, ViReal64, ViInt32] # noqa: F405 + self.niDMM_ConfigureWaveformAcquisition_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ConfigureWaveformAcquisition_cfunc(vi, measurement_function, range, rate, waveform_points) + + def niDMM_Disable(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_Disable_cfunc is None: + self.niDMM_Disable_cfunc = self._get_library_function('niDMM_Disable') + self.niDMM_Disable_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_Disable_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_Disable_cfunc(vi) + + def niDMM_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + with self._func_lock: + if self.niDMM_ExportAttributeConfigurationBuffer_cfunc is None: + self.niDMM_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDMM_ExportAttributeConfigurationBuffer') + self.niDMM_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDMM_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ExportAttributeConfigurationBuffer_cfunc(vi, size, configuration) + + def niDMM_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDMM_ExportAttributeConfigurationFile_cfunc is None: + self.niDMM_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niDMM_ExportAttributeConfigurationFile') + self.niDMM_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ExportAttributeConfigurationFile_cfunc(vi, file_path) + + def niDMM_Fetch(self, vi, maximum_time, reading): # noqa: N802 + with self._func_lock: + if self.niDMM_Fetch_cfunc is None: + self.niDMM_Fetch_cfunc = self._get_library_function('niDMM_Fetch') + self.niDMM_Fetch_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_Fetch_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_Fetch_cfunc(vi, maximum_time, reading) + + def niDMM_FetchMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 + with self._func_lock: + if self.niDMM_FetchMultiPoint_cfunc is None: + self.niDMM_FetchMultiPoint_cfunc = self._get_library_function('niDMM_FetchMultiPoint') + self.niDMM_FetchMultiPoint_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_FetchMultiPoint_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_FetchMultiPoint_cfunc(vi, maximum_time, array_size, reading_array, actual_number_of_points) + + def niDMM_FetchWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 + with self._func_lock: + if self.niDMM_FetchWaveform_cfunc is None: + self.niDMM_FetchWaveform_cfunc = self._get_library_function('niDMM_FetchWaveform') + self.niDMM_FetchWaveform_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_FetchWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_FetchWaveform_cfunc(vi, maximum_time, array_size, waveform_array, actual_number_of_points) + + def niDMM_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_GetAttributeViBoolean_cfunc is None: + self.niDMM_GetAttributeViBoolean_cfunc = self._get_library_function('niDMM_GetAttributeViBoolean') + self.niDMM_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDMM_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_GetAttributeViInt32_cfunc is None: + self.niDMM_GetAttributeViInt32_cfunc = self._get_library_function('niDMM_GetAttributeViInt32') + self.niDMM_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_GetAttributeViReal64_cfunc is None: + self.niDMM_GetAttributeViReal64_cfunc = self._get_library_function('niDMM_GetAttributeViReal64') + self.niDMM_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_GetAttributeViString_cfunc is None: + self.niDMM_GetAttributeViString_cfunc = self._get_library_function('niDMM_GetAttributeViString') + self.niDMM_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buffer_size, attribute_value) + + def niDMM_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 + with self._func_lock: + if self.niDMM_GetCalDateAndTime_cfunc is None: + self.niDMM_GetCalDateAndTime_cfunc = self._get_library_function('niDMM_GetCalDateAndTime') + self.niDMM_GetCalDateAndTime_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_GetCalDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetCalDateAndTime_cfunc(vi, cal_type, month, day, year, hour, minute) + + def niDMM_GetDevTemp(self, vi, options, temperature): # noqa: N802 + with self._func_lock: + if self.niDMM_GetDevTemp_cfunc is None: + self.niDMM_GetDevTemp_cfunc = self._get_library_function('niDMM_GetDevTemp') + self.niDMM_GetDevTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_GetDevTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetDevTemp_cfunc(vi, options, temperature) + + def niDMM_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + with self._func_lock: + if self.niDMM_GetError_cfunc is None: + self.niDMM_GetError_cfunc = self._get_library_function('niDMM_GetError') + self.niDMM_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetError_cfunc(vi, error_code, buffer_size, description) + + def niDMM_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + with self._func_lock: + if self.niDMM_GetExtCalRecommendedInterval_cfunc is None: + self.niDMM_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niDMM_GetExtCalRecommendedInterval') + self.niDMM_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetExtCalRecommendedInterval_cfunc(vi, months) + + def niDMM_GetLastCalTemp(self, vi, cal_type, temperature): # noqa: N802 + with self._func_lock: + if self.niDMM_GetLastCalTemp_cfunc is None: + self.niDMM_GetLastCalTemp_cfunc = self._get_library_function('niDMM_GetLastCalTemp') + self.niDMM_GetLastCalTemp_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_GetLastCalTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetLastCalTemp_cfunc(vi, cal_type, temperature) + + def niDMM_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 + with self._func_lock: + if self.niDMM_GetSelfCalSupported_cfunc is None: + self.niDMM_GetSelfCalSupported_cfunc = self._get_library_function('niDMM_GetSelfCalSupported') + self.niDMM_GetSelfCalSupported_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDMM_GetSelfCalSupported_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_GetSelfCalSupported_cfunc(vi, self_cal_supported) + + def niDMM_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + with self._func_lock: + if self.niDMM_ImportAttributeConfigurationBuffer_cfunc is None: + self.niDMM_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niDMM_ImportAttributeConfigurationBuffer') + self.niDMM_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niDMM_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ImportAttributeConfigurationBuffer_cfunc(vi, size, configuration) + + def niDMM_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niDMM_ImportAttributeConfigurationFile_cfunc is None: + self.niDMM_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niDMM_ImportAttributeConfigurationFile') + self.niDMM_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ImportAttributeConfigurationFile_cfunc(vi, file_path) + + def niDMM_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_InitWithOptions_cfunc is None: + self.niDMM_InitWithOptions_cfunc = self._get_library_function('niDMM_InitWithOptions') + self.niDMM_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niDMM_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, vi) + + def niDMM_Initiate(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_Initiate_cfunc is None: + self.niDMM_Initiate_cfunc = self._get_library_function('niDMM_Initiate') + self.niDMM_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_Initiate_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_Initiate_cfunc(vi) + + def niDMM_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niDMM_LockSession_cfunc is None: + self.niDMM_LockSession_cfunc = self._get_library_function('niDMM_LockSession') + self.niDMM_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDMM_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_LockSession_cfunc(vi, caller_has_lock) + + def niDMM_PerformOpenCableComp(self, vi, conductance, susceptance): # noqa: N802 + with self._func_lock: + if self.niDMM_PerformOpenCableComp_cfunc is None: + self.niDMM_PerformOpenCableComp_cfunc = self._get_library_function('niDMM_PerformOpenCableComp') + self.niDMM_PerformOpenCableComp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_PerformOpenCableComp_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_PerformOpenCableComp_cfunc(vi, conductance, susceptance) + + def niDMM_PerformShortCableComp(self, vi, resistance, reactance): # noqa: N802 + with self._func_lock: + if self.niDMM_PerformShortCableComp_cfunc is None: + self.niDMM_PerformShortCableComp_cfunc = self._get_library_function('niDMM_PerformShortCableComp') + self.niDMM_PerformShortCableComp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_PerformShortCableComp_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_PerformShortCableComp_cfunc(vi, resistance, reactance) + + def niDMM_Read(self, vi, maximum_time, reading): # noqa: N802 + with self._func_lock: + if self.niDMM_Read_cfunc is None: + self.niDMM_Read_cfunc = self._get_library_function('niDMM_Read') + self.niDMM_Read_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niDMM_Read_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_Read_cfunc(vi, maximum_time, reading) + + def niDMM_ReadMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 + with self._func_lock: + if self.niDMM_ReadMultiPoint_cfunc is None: + self.niDMM_ReadMultiPoint_cfunc = self._get_library_function('niDMM_ReadMultiPoint') + self.niDMM_ReadMultiPoint_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_ReadMultiPoint_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ReadMultiPoint_cfunc(vi, maximum_time, array_size, reading_array, actual_number_of_points) + + def niDMM_ReadStatus(self, vi, acquisition_backlog, acquisition_status): # noqa: N802 + with self._func_lock: + if self.niDMM_ReadStatus_cfunc is None: + self.niDMM_ReadStatus_cfunc = self._get_library_function('niDMM_ReadStatus') + self.niDMM_ReadStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt16)] # noqa: F405 + self.niDMM_ReadStatus_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ReadStatus_cfunc(vi, acquisition_backlog, acquisition_status) + + def niDMM_ReadWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 + with self._func_lock: + if self.niDMM_ReadWaveform_cfunc is None: + self.niDMM_ReadWaveform_cfunc = self._get_library_function('niDMM_ReadWaveform') + self.niDMM_ReadWaveform_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niDMM_ReadWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ReadWaveform_cfunc(vi, maximum_time, array_size, waveform_array, actual_number_of_points) + + def niDMM_ResetWithDefaults(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_ResetWithDefaults_cfunc is None: + self.niDMM_ResetWithDefaults_cfunc = self._get_library_function('niDMM_ResetWithDefaults') + self.niDMM_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_ResetWithDefaults_cfunc(vi) + + def niDMM_SelfCal(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_SelfCal_cfunc is None: + self.niDMM_SelfCal_cfunc = self._get_library_function('niDMM_SelfCal') + self.niDMM_SelfCal_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_SelfCal_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SelfCal_cfunc(vi) + + def niDMM_SendSoftwareTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_SendSoftwareTrigger_cfunc is None: + self.niDMM_SendSoftwareTrigger_cfunc = self._get_library_function('niDMM_SendSoftwareTrigger') + self.niDMM_SendSoftwareTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_SendSoftwareTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SendSoftwareTrigger_cfunc(vi) + + def niDMM_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_SetAttributeViBoolean_cfunc is None: + self.niDMM_SetAttributeViBoolean_cfunc = self._get_library_function('niDMM_SetAttributeViBoolean') + self.niDMM_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niDMM_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_SetAttributeViInt32_cfunc is None: + self.niDMM_SetAttributeViInt32_cfunc = self._get_library_function('niDMM_SetAttributeViInt32') + self.niDMM_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niDMM_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_SetAttributeViReal64_cfunc is None: + self.niDMM_SetAttributeViReal64_cfunc = self._get_library_function('niDMM_SetAttributeViReal64') + self.niDMM_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niDMM_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niDMM_SetAttributeViString_cfunc is None: + self.niDMM_SetAttributeViString_cfunc = self._get_library_function('niDMM_SetAttributeViString') + self.niDMM_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niDMM_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niDMM_SetRuntimeEnvironment_cfunc is None: + self.niDMM_SetRuntimeEnvironment_cfunc = self._get_library_function('niDMM_SetRuntimeEnvironment') + self.niDMM_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niDMM_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niDMM_UnlockSession_cfunc is None: + self.niDMM_UnlockSession_cfunc = self._get_library_function('niDMM_UnlockSession') + self.niDMM_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niDMM_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_UnlockSession_cfunc(vi, caller_has_lock) + + def niDMM_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_close_cfunc is None: + self.niDMM_close_cfunc = self._get_library_function('niDMM_close') + self.niDMM_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_close_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_close_cfunc(vi) + + def niDMM_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niDMM_error_message_cfunc is None: + self.niDMM_error_message_cfunc = self._get_library_function('niDMM_error_message') + self.niDMM_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_error_message_cfunc(vi, error_code, error_message) + + def niDMM_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niDMM_reset_cfunc is None: + self.niDMM_reset_cfunc = self._get_library_function('niDMM_reset') + self.niDMM_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niDMM_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_reset_cfunc(vi) + + def niDMM_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niDMM_self_test_cfunc is None: + self.niDMM_self_test_cfunc = self._get_library_function('niDMM_self_test') + self.niDMM_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niDMM_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niDMM_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nidmm/nidmm/_library_interpreter.py b/generated/nidmm/nidmm/_library_interpreter.py new file mode 100644 index 0000000000..6de856e8c1 --- /dev/null +++ b/generated/nidmm/nidmm/_library_interpreter.py @@ -0,0 +1,570 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import nidmm._library_singleton as _library_singleton +import nidmm._visatype as _visatype +import nidmm.enums as enums # noqa: F401 +import nidmm.errors as errors + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_Abort(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_measurement_absolute(self, measurement_function, range, resolution_absolute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + measurement_function_ctype = _visatype.ViInt32(measurement_function.value) # case S130 + range_ctype = _visatype.ViReal64(range) # case S150 + resolution_absolute_ctype = _visatype.ViReal64(resolution_absolute) # case S150 + error_code = self._library.niDMM_ConfigureMeasurementAbsolute(vi_ctype, measurement_function_ctype, range_ctype, resolution_absolute_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_measurement_digits(self, measurement_function, range, resolution_digits): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + measurement_function_ctype = _visatype.ViInt32(measurement_function.value) # case S130 + range_ctype = _visatype.ViReal64(range) # case S150 + resolution_digits_ctype = _visatype.ViReal64(resolution_digits) # case S150 + error_code = self._library.niDMM_ConfigureMeasurementDigits(vi_ctype, measurement_function_ctype, range_ctype, resolution_digits_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_multi_point(self, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_count_ctype = _visatype.ViInt32(trigger_count) # case S150 + sample_count_ctype = _visatype.ViInt32(sample_count) # case S150 + sample_trigger_ctype = _visatype.ViInt32(sample_trigger.value) # case S130 + sample_interval_ctype = _visatype.ViReal64(sample_interval) # case S150 + error_code = self._library.niDMM_ConfigureMultiPoint(vi_ctype, trigger_count_ctype, sample_count_ctype, sample_trigger_ctype, sample_interval_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_rtd_custom(self, rtd_a, rtd_b, rtd_c): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + rtd_a_ctype = _visatype.ViReal64(rtd_a) # case S150 + rtd_b_ctype = _visatype.ViReal64(rtd_b) # case S150 + rtd_c_ctype = _visatype.ViReal64(rtd_c) # case S150 + error_code = self._library.niDMM_ConfigureRTDCustom(vi_ctype, rtd_a_ctype, rtd_b_ctype, rtd_c_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_rtd_type(self, rtd_type, rtd_resistance): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + rtd_type_ctype = _visatype.ViInt32(rtd_type.value) # case S130 + rtd_resistance_ctype = _visatype.ViReal64(rtd_resistance) # case S150 + error_code = self._library.niDMM_ConfigureRTDType(vi_ctype, rtd_type_ctype, rtd_resistance_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_thermistor_custom(self, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + thermistor_a_ctype = _visatype.ViReal64(thermistor_a) # case S150 + thermistor_b_ctype = _visatype.ViReal64(thermistor_b) # case S150 + thermistor_c_ctype = _visatype.ViReal64(thermistor_c) # case S150 + error_code = self._library.niDMM_ConfigureThermistorCustom(vi_ctype, thermistor_a_ctype, thermistor_b_ctype, thermistor_c_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_thermocouple(self, thermocouple_type, reference_junction_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + thermocouple_type_ctype = _visatype.ViInt32(thermocouple_type.value) # case S130 + reference_junction_type_ctype = _visatype.ViInt32(reference_junction_type.value) # case S130 + error_code = self._library.niDMM_ConfigureThermocouple(vi_ctype, thermocouple_type_ctype, reference_junction_type_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger(self, trigger_source, trigger_delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_source_ctype = _visatype.ViInt32(trigger_source.value) # case S130 + trigger_delay_ctype = _visatype.ViReal64(trigger_delay) # case S150 + error_code = self._library.niDMM_ConfigureTrigger(vi_ctype, trigger_source_ctype, trigger_delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_waveform_acquisition(self, measurement_function, range, rate, waveform_points): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + measurement_function_ctype = _visatype.ViInt32(measurement_function.value) # case S130 + range_ctype = _visatype.ViReal64(range) # case S150 + rate_ctype = _visatype.ViReal64(rate) # case S150 + waveform_points_ctype = _visatype.ViInt32(waveform_points) # case S150 + error_code = self._library.niDMM_ConfigureWaveformAcquisition(vi_ctype, measurement_function_ctype, range_ctype, rate_ctype, waveform_points_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_Disable(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def export_attribute_configuration_buffer(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_ctype = _visatype.ViInt32() # case S170 + configuration_ctype = None # case B580 + error_code = self._library.niDMM_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + size_ctype = _visatype.ViInt32(error_code) # case S180 + configuration_size = size_ctype.value # case B590 + configuration_array = array.array("b", [0]) * configuration_size # case B590 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niDMM_ExportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return configuration_array + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDMM_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def fetch(self, maximum_time): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + reading_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_Fetch(vi_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(reading_ctype.value) + + def fetch_multi_point(self, maximum_time, array_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + array_size_ctype = _visatype.ViInt32(array_size) # case S210 + reading_array_size = array_size # case B600 + reading_array_array = array.array("d", [0]) * reading_array_size # case B600 + reading_array_ctype = _get_ctypes_pointer_for_buffer(value=reading_array_array, library_type=_visatype.ViReal64) # case B600 + actual_number_of_points_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_FetchMultiPoint(vi_ctype, maximum_time_ctype, array_size_ctype, reading_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return reading_array_array + + def fetch_waveform(self, maximum_time, array_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + array_size_ctype = _visatype.ViInt32(array_size) # case S210 + waveform_array_size = array_size # case B600 + waveform_array_array = array.array("d", [0]) * waveform_array_size # case B600 + waveform_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array_array, library_type=_visatype.ViReal64) # case B600 + actual_number_of_points_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_FetchWaveform(vi_ctype, maximum_time_ctype, array_size_ctype, waveform_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_array_array + + def fetch_waveform_into(self, waveform_array, maximum_time): # noqa: N802 + array_size = len(waveform_array) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + array_size_ctype = _visatype.ViInt32(array_size) # case S210 + waveform_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array) # case B510 + actual_number_of_points_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_FetchWaveform(vi_ctype, maximum_time_ctype, array_size_ctype, waveform_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDMM_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(attribute_value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(attribute_value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + attribute_value_ctype = None # case C050 + error_code = self._library.niDMM_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + attribute_value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDMM_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return attribute_value_ctype.value.decode(self._encoding) + + def get_cal_date_and_time(self, cal_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + cal_type_ctype = _visatype.ViInt32(cal_type) # case S150 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + year_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_GetCalDateAndTime(vi_ctype, cal_type_ctype, None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if year_ctype is None else (ctypes.pointer(year_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(month_ctype.value), int(day_ctype.value), int(year_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_dev_temp(self, options): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + options_ctype = ctypes.create_string_buffer(options.encode(self._encoding)) # case C020 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_GetDevTemp(vi_ctype, options_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + buffer_size_ctype = _visatype.ViInt32() # case S170 + description_ctype = None # case C050 + error_code = self._library.niDMM_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niDMM_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) + + def get_ext_cal_recommended_interval(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + months_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(months_ctype.value) + + def get_last_cal_temp(self, cal_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + cal_type_ctype = _visatype.ViInt32(cal_type) # case S150 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_GetLastCalTemp(vi_ctype, cal_type_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_self_cal_supported(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_cal_supported_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niDMM_GetSelfCalSupported(vi_ctype, None if self_cal_supported_ctype is None else (ctypes.pointer(self_cal_supported_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(self_cal_supported_ctype.value) + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niDMM_ImportAttributeConfigurationBuffer(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niDMM_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + id_query_ctype = _visatype.ViBoolean(id_query) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niDMM_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initiate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_Initiate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_open_cable_comp(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + conductance_ctype = _visatype.ViReal64() # case S220 + susceptance_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_PerformOpenCableComp(vi_ctype, None if conductance_ctype is None else (ctypes.pointer(conductance_ctype)), None if susceptance_ctype is None else (ctypes.pointer(susceptance_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(conductance_ctype.value), float(susceptance_ctype.value) + + def perform_short_cable_comp(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + resistance_ctype = _visatype.ViReal64() # case S220 + reactance_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_PerformShortCableComp(vi_ctype, None if resistance_ctype is None else (ctypes.pointer(resistance_ctype)), None if reactance_ctype is None else (ctypes.pointer(reactance_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(resistance_ctype.value), float(reactance_ctype.value) + + def read(self, maximum_time): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + reading_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niDMM_Read(vi_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(reading_ctype.value) + + def read_multi_point(self, maximum_time, array_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + array_size_ctype = _visatype.ViInt32(array_size) # case S210 + reading_array_size = array_size # case B600 + reading_array_array = array.array("d", [0]) * reading_array_size # case B600 + reading_array_ctype = _get_ctypes_pointer_for_buffer(value=reading_array_array, library_type=_visatype.ViReal64) # case B600 + actual_number_of_points_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_ReadMultiPoint(vi_ctype, maximum_time_ctype, array_size_ctype, reading_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return reading_array_array + + def read_status(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + acquisition_backlog_ctype = _visatype.ViInt32() # case S220 + acquisition_status_ctype = _visatype.ViInt16() # case S220 + error_code = self._library.niDMM_ReadStatus(vi_ctype, None if acquisition_backlog_ctype is None else (ctypes.pointer(acquisition_backlog_ctype)), None if acquisition_status_ctype is None else (ctypes.pointer(acquisition_status_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(acquisition_backlog_ctype.value), enums.AcquisitionStatus(acquisition_status_ctype.value) + + def read_waveform(self, maximum_time, array_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + array_size_ctype = _visatype.ViInt32(array_size) # case S210 + waveform_array_size = array_size # case B600 + waveform_array_array = array.array("d", [0]) * waveform_array_size # case B600 + waveform_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array_array, library_type=_visatype.ViReal64) # case B600 + actual_number_of_points_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niDMM_ReadWaveform(vi_ctype, maximum_time_ctype, array_size_ctype, waveform_array_ctype, None if actual_number_of_points_ctype is None else (ctypes.pointer(actual_number_of_points_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_array_array + + def reset_with_defaults(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_ResetWithDefaults(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_cal(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_SelfCal(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_SendSoftwareTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 + error_code = self._library.niDMM_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 + error_code = self._library.niDMM_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 + error_code = self._library.niDMM_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 + error_code = self._library.niDMM_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niDMM_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niDMM_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niDMM_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niDMM_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nidmm/nidmm/_library_singleton.py b/generated/nidmm/nidmm/_library_singleton.py new file mode 100644 index 0000000000..cd997d9a15 --- /dev/null +++ b/generated/nidmm/nidmm/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nidmm._library as _library +import nidmm.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nidmm', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'nidmm_32.dll', 'type': 'windll'}, + '64bit': {'name': 'nidmm_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nidmm. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nidmm/nidmm/_visatype.py b/generated/nidmm/nidmm/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nidmm/nidmm/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nidmm/nidmm/enums.py b/generated/nidmm/nidmm/enums.py new file mode 100644 index 0000000000..b476424cef --- /dev/null +++ b/generated/nidmm/nidmm/enums.py @@ -0,0 +1,492 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class ADCCalibration(Enum): + AUTO = -1 + r''' + The DMM enables or disables ADC calibration for you. + ''' + OFF = 0 + r''' + The DMM does not compensate for changes to the gain. + ''' + ON = 1 + r''' + The DMM measures an internal reference to calculate the correct gain for the measurement. + ''' + + +class AcquisitionStatus(Enum): + RUNNING = 0 + r''' + Running + ''' + FINISHED_WITH_BACKLOG = 1 + r''' + Finished with **Backlog** + ''' + FINISHED_WITH_NO_BACKLOG = 2 + r''' + Finished with no **Backlog** + ''' + PAUSED = 3 + r''' + Paused + ''' + NO_ACQUISITION_IN_PROGRESS = 4 + r''' + No acquisition in progress + ''' + + +class ApertureTimeUnits(Enum): + SECONDS = 0 + r''' + Seconds + ''' + POWER_LINE_CYCLES = 1 + r''' + Powerline Cycles + ''' + + +class AutoZero(Enum): + AUTO = -1 + r''' + The drivers chooses the AutoZero setting based on the configured method and resolution. + ''' + OFF = 0 + r''' + Disables AutoZero. + ''' + ON = 1 + r''' + The DMM internally disconnects the input signal following each measurement and takes a zero reading. It then subtracts the zero reading from the preceding reading. + ''' + ONCE = 2 + r''' + The DMM internally disconnects the input signal for the first measurement and takes a zero reading. It then subtracts the zero reading from the first reading and the following readings. + ''' + + +class CableCompensationType(Enum): + NONE = 0 + r''' + No Cable Compensation + ''' + OPEN = 1 + r''' + Open Cable Compensation + ''' + SHORT = 2 + r''' + Short Cable Compensation + ''' + OPEN_AND_SHORT = 3 + r''' + Open and Short Cable Compensation + ''' + + +class DCNoiseRejection(Enum): + AUTO = -1 + r''' + The driver chooses the DC noise rejection setting based on the configured method and resolution. + ''' + NORMAL = 0 + r''' + NI-DMM weighs all samples equally. + ''' + SECOND_ORDER = 1 + r''' + NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a triangular weighing method. + ''' + HIGH_ORDER = 2 + r''' + NI-DMM weighs the samples taken in the middle of the aperture time more than samples taken at the beginning and the end of the measurement using a bell-curve weighing method. + ''' + + +class Function(Enum): + DC_VOLTS = 1 + r''' + DC Voltage + ''' + AC_VOLTS = 2 + r''' + AC Voltage + ''' + DC_CURRENT = 3 + r''' + DC Current + ''' + AC_CURRENT = 4 + r''' + AC Current + ''' + TWO_WIRE_RES = 5 + r''' + 2-Wire Resistance + ''' + FOUR_WIRE_RES = 101 + r''' + 4-Wire Resistance + ''' + FREQ = 104 + r''' + Frequency + ''' + PERIOD = 105 + r''' + Period + ''' + TEMPERATURE = 108 + r''' + NI 4065, NI 4070/4071/4072, and NI 4080/4081/4182 supported. + ''' + AC_VOLTS_DC_COUPLED = 1001 + r''' + AC Voltage with DC Coupling + ''' + DIODE = 1002 + r''' + Diode + ''' + WAVEFORM_VOLTAGE = 1003 + r''' + Waveform voltage + ''' + WAVEFORM_CURRENT = 1004 + r''' + Waveform current + ''' + CAPACITANCE = 1005 + r''' + Capacitance + ''' + INDUCTANCE = 1006 + r''' + Inductance + ''' + + +class LCCalculationModel(Enum): + AUTO = -1 + r''' + NI-DMM chooses the algorithm based on method and range + ''' + SERIES = 0 + r''' + NI-DMM uses the series impedance model to calculate capacitance and inductance + ''' + PARALLEL = 1 + r''' + NI-DMM uses the parallel admittance model to calculate capacitance and inductance + ''' + + +class MeasurementCompleteDest(Enum): + NONE = -1 + r''' + No Trigger + ''' + EXTERNAL = 2 + r''' + AUX I/O Connector + ''' + PXI_TRIG0 = 111 + r''' + PXI Trigger Line 0 + ''' + PXI_TRIG1 = 112 + r''' + PXI Trigger Line 1 + ''' + PXI_TRIG2 = 113 + r''' + PXI Trigger Line 2 + ''' + PXI_TRIG3 = 114 + r''' + PXI Trigger Line 3 + ''' + PXI_TRIG4 = 115 + r''' + PXI Trigger Line 4 + ''' + PXI_TRIG5 = 116 + r''' + PXI Trigger Line 5 + ''' + PXI_TRIG6 = 117 + r''' + PXI Trigger Line 6 + ''' + PXI_TRIG7 = 118 + r''' + PXI Trigger Line 7 + ''' + LBR_TRIG0 = 1003 + r''' + Internal Trigger Line of a PXI/SCXI Combination Chassis + ''' + + +class OperationMode(Enum): + IVIDMM = 0 + r''' + IviDmm Mode + ''' + WAVEFORM = 1 + r''' + Waveform acquisition mode + ''' + + +class RTDType(Enum): + CUSTOM = 0 + r''' + Performs Callendar-Van Dusen RTD scaling with the user-specified A, B, + and C coefficients. + ''' + PT3750 = 1 + r''' + Performs scaling for a Pt 3750 RTD. + ''' + PT3851 = 2 + r''' + Performs scaling for a Pt 3851 RTD. + ''' + PT3911 = 3 + r''' + Performs scaling for a Pt 3911 RTD. + ''' + PT3916 = 4 + r''' + Performs scaling for a Pt 3916 RTD. + ''' + PT3920 = 5 + r''' + Performs scaling for a Pt 3920 RTD. + ''' + PT3928 = 6 + r''' + Performs scaling for a Pt 3928 RTD. + ''' + + +class SampleTrigger(Enum): + IMMEDIATE = 1 + r''' + No Trigger + ''' + EXTERNAL = 2 + r''' + AUX I/O Connector Trigger Line 0 + ''' + SOFTWARE_TRIG = 3 + r''' + Software Trigger + ''' + INTERVAL = 10 + r''' + Interval Trigger + ''' + PXI_TRIG0 = 111 + r''' + PXI Trigger Line 0 + ''' + PXI_TRIG1 = 112 + r''' + PXI Trigger Line 1 + ''' + PXI_TRIG2 = 113 + r''' + PXI Trigger Line 2 + ''' + PXI_TRIG3 = 114 + r''' + PXI Trigger Line 3 + ''' + PXI_TRIG4 = 115 + r''' + PXI Trigger Line 4 + ''' + PXI_TRIG5 = 116 + r''' + PXI Trigger Line 5 + ''' + PXI_TRIG6 = 117 + r''' + PXI Trigger Line 6 + ''' + PXI_TRIG7 = 118 + r''' + PXI Trigger Line 7 + ''' + PXI_STAR = 131 + r''' + PXI Star Trigger Line + ''' + AUX_TRIG1 = 1001 + r''' + AUX I/0 Connector Trigger Line 1 + ''' + LBR_TRIG1 = 1004 + r''' + Internal Trigger Line of a PXI/SCXI Combination Chassis + ''' + + +class ThermistorType(Enum): + CUSTOM = 0 + r''' + Custom + ''' + THERMISTOR_44004 = 1 + r''' + 44004 + ''' + THERMISTOR_44006 = 2 + r''' + 44006 + ''' + THERMISTOR_44007 = 3 + r''' + 44007 + ''' + + +class ThermocoupleReferenceJunctionType(Enum): + FIXED = 2 + r''' + Thermocouple reference juction is fixed at the user-specified + temperature. + ''' + + +class ThermocoupleType(Enum): + B = 1 + r''' + Thermocouple type B + ''' + E = 4 + r''' + Thermocouple type E + ''' + J = 6 + r''' + Thermocouple type J + ''' + K = 7 + r''' + Thermocouple type K + ''' + N = 8 + r''' + Thermocouple type N + ''' + R = 9 + r''' + Thermocouple type R + ''' + S = 10 + r''' + Thermocouple type S + ''' + T = 11 + r''' + Thermocouple type T + ''' + + +class TransducerType(Enum): + THERMOCOUPLE = 1 + r''' + Thermocouple + ''' + THERMISTOR = 2 + r''' + Thermistor + ''' + TWO_WIRE_RTD = 3 + r''' + 2-wire RTD + ''' + FOUR_WIRE_RTD = 4 + r''' + 4-wire RTD + ''' + + +class TriggerSource(Enum): + IMMEDIATE = 1 + r''' + No Trigger + ''' + EXTERNAL = 2 + r''' + AUX I/O Connector Trigger Line 0 + ''' + SOFTWARE_TRIG = 3 + r''' + Software Trigger + ''' + PXI_TRIG0 = 111 + r''' + PXI Trigger Line 0 + ''' + PXI_TRIG1 = 112 + r''' + PXI Trigger Line 1 + ''' + PXI_TRIG2 = 113 + r''' + PXI Trigger Line 2 + ''' + PXI_TRIG3 = 114 + r''' + PXI Trigger Line 3 + ''' + PXI_TRIG4 = 115 + r''' + PXI Trigger Line 4 + ''' + PXI_TRIG5 = 116 + r''' + PXI Trigger Line 5 + ''' + PXI_TRIG6 = 117 + r''' + PXI Trigger Line 6 + ''' + PXI_TRIG7 = 118 + r''' + PXI Trigger Line 7 + ''' + PXI_STAR = 131 + r''' + PXI Star Trigger Line + ''' + AUX_TRIG1 = 1001 + r''' + AUX I/O Connector Trigger Line 1 + ''' + LBR_TRIG1 = 1004 + r''' + Internal Trigger Line of a PXI/SCXI Combination Chassis + ''' + + +class WaveformCoupling(Enum): + AC = 0 + r''' + AC Coupled + ''' + DC = 1 + r''' + DC Coupled + ''' diff --git a/generated/nidmm/nidmm/errors.py b/generated/nidmm/nidmm/errors.py new file mode 100644 index 0000000000..fba2f79427 --- /dev/null +++ b/generated/nidmm/nidmm/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-DMM''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-DMM driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-DMM driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-DMM runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-DMM driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-DMM runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-DMM driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-DMM runtime returned an unexpected value. This can occur if it is too new for the nidmm Python module. Upgrade the nidmm Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nidmm.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nidmm/nidmm/grpc_session_options.py b/generated/nidmm/nidmm/grpc_session_options.py new file mode 100644 index 0000000000..0a8dc73eb9 --- /dev/null +++ b/generated/nidmm/nidmm/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nidmm_grpc.NiDmm' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nidmm/nidmm/nidevice_pb2.py b/generated/nidmm/nidmm/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nidmm/nidmm/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nidmm/nidmm/nidevice_pb2_grpc.py b/generated/nidmm/nidmm/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nidmm/nidmm/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nidmm/nidmm/nidmm_pb2.py b/generated/nidmm/nidmm/nidmm_pb2.py new file mode 100644 index 0000000000..608f6b9860 --- /dev/null +++ b/generated/nidmm/nidmm/nidmm_pb2.py @@ -0,0 +1,425 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidmm.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bnidmm.proto\x12\nnidmm_grpc\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"K\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"P\n\x16GetErrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"@\n\x17GetErrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1bGetMeasurementPeriodRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\">\n\x1cGetMeasurementPeriodResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06period\x18\x02 \x01(\x01\"\x8e\x02\n\x17\x43onfigureTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\x0etrigger_source\x18\x02 \x01(\x0e\x32\x19.nidmm_grpc.TriggerSourceH\x00\x12\x1c\n\x12trigger_source_raw\x18\x03 \x01(\x11H\x00\x12\x32\n\rtrigger_delay\x18\x04 \x01(\x0e\x32\x19.nidmm_grpc.TriggerDelaysH\x01\x12\x1b\n\x11trigger_delay_raw\x18\x05 \x01(\x01H\x01\x42\x15\n\x13trigger_source_enumB\x14\n\x12trigger_delay_enum\"*\n\x18\x43onfigureTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x91\x01\n\x0bReadRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x42\x13\n\x11maximum_time_enum\"/\n\x0cReadResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"\x92\x01\n\x0c\x46\x65tchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x42\x13\n\x11maximum_time_enum\"0\n\rFetchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"S\n\x12IsOverRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11measurement_value\x18\x02 \x01(\x01\"<\n\x13IsOverRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\ris_over_range\x18\x02 \x01(\x08\"T\n\x13IsUnderRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11measurement_value\x18\x02 \x01(\x01\">\n\x14IsUnderRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0eis_under_range\x18\x02 \x01(\x08\"\x83\x01\n\x1b\x43onfigureACBandwidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1f\n\x17\x61\x63_minimum_frequency_hz\x18\x02 \x01(\x01\x12\x1f\n\x17\x61\x63_maximum_frequency_hz\x18\x03 \x01(\x01\".\n\x1c\x43onfigureACBandwidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x01\n%ConfigureFrequencyVoltageRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12:\n\rvoltage_range\x18\x02 \x01(\x0e\x32!.nidmm_grpc.FrequencyVoltageRangeH\x00\x12\x1b\n\x11voltage_range_raw\x18\x03 \x01(\x01H\x00\x42\x14\n\x12voltage_range_enum\"8\n&ConfigureFrequencyVoltageRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"i\n ConfigureMeasCompleteDestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12!\n\x19meas_complete_destination\x18\x02 \x01(\x11\"3\n!ConfigureMeasCompleteDestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe0\x03\n\x1a\x43onfigureMultiPointRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\rtrigger_count\x18\x02 \x01(\x0e\x32\x18.nidmm_grpc.TriggerCountH\x00\x12\x1b\n\x11trigger_count_raw\x18\x03 \x01(\x11H\x00\x12/\n\x0csample_count\x18\x04 \x01(\x0e\x32\x17.nidmm_grpc.SampleCountH\x01\x12\x1a\n\x10sample_count_raw\x18\x05 \x01(\x11H\x01\x12\x33\n\x0esample_trigger\x18\x06 \x01(\x0e\x32\x19.nidmm_grpc.SampleTriggerH\x02\x12\x1c\n\x12sample_trigger_raw\x18\x07 \x01(\x11H\x02\x12\x35\n\x0fsample_interval\x18\x08 \x01(\x0e\x32\x1a.nidmm_grpc.SampleIntervalH\x03\x12\x1d\n\x13sample_interval_raw\x18\t \x01(\x01H\x03\x42\x14\n\x12trigger_count_enumB\x13\n\x11sample_count_enumB\x15\n\x13sample_trigger_enumB\x16\n\x14sample_interval_enum\"-\n\x1b\x43onfigureMultiPointResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xaf\x01\n\x15ReadMultiPointRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"`\n\x16ReadMultiPointResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rreading_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\xb0\x01\n\x16\x46\x65tchMultiPointRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"a\n\x17\x46\x65tchMultiPointResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rreading_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\xa8\x01\n\x1c\x43onfigureTriggerSlopeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\rtrigger_slope\x18\x02 \x01(\x0e\x32\x18.nidmm_grpc.TriggerSlopeH\x00\x12\x1b\n\x11trigger_slope_raw\x18\x03 \x01(\x11H\x00\x42\x14\n\x12trigger_slope_enum\"/\n\x1d\x43onfigureTriggerSlopeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aSendSoftwareTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1bSendSoftwareTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aGetApertureTimeInfoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xd6\x01\n\x1bGetApertureTimeInfoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\raperture_time\x18\x02 \x01(\x0e\x32\x18.nidmm_grpc.ApertureTime\x12\x19\n\x11\x61perture_time_raw\x18\x03 \x01(\x01\x12:\n\x13\x61perture_time_units\x18\x04 \x01(\x0e\x32\x1d.nidmm_grpc.ApertureTimeUnits\x12\x1f\n\x17\x61perture_time_units_raw\x18\x05 \x01(\x11\">\n\x18GetAutoRangeValueRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x19GetAutoRangeValueResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x61\x63tual_range\x18\x02 \x01(\x01\"Z\n\x1c\x43onfigureAutoZeroModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0e\x61uto_zero_mode\x18\x02 \x01(\x11\"/\n\x1d\x43onfigureAutoZeroModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd4\x01\n\"ConfigurePowerLineFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x17power_line_frequency_hz\x18\x02 \x01(\x0e\x32 .nidmm_grpc.PowerLineFrequenciesH\x00\x12%\n\x1bpower_line_frequency_hz_raw\x18\x03 \x01(\x01H\x00\x42\x1e\n\x1cpower_line_frequency_hz_enum\"5\n#ConfigurePowerLineFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe8\x01\n!ConfigureMeasurementDigitsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x34\n\x14measurement_function\x18\x02 \x01(\x0e\x32\x14.nidmm_grpc.FunctionH\x00\x12\"\n\x18measurement_function_raw\x18\x03 \x01(\x11H\x00\x12\r\n\x05range\x18\x04 \x01(\x01\x12\x19\n\x11resolution_digits\x18\x05 \x01(\x01\x42\x1b\n\x19measurement_function_enum\"4\n\"ConfigureMeasurementDigitsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xec\x01\n#ConfigureMeasurementAbsoluteRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x34\n\x14measurement_function\x18\x02 \x01(\x0e\x32\x14.nidmm_grpc.FunctionH\x00\x12\"\n\x18measurement_function_raw\x18\x03 \x01(\x11H\x00\x12\r\n\x05range\x18\x04 \x01(\x01\x12\x1b\n\x13resolution_absolute\x18\x05 \x01(\x01\x42\x1b\n\x19measurement_function_enum\"6\n$ConfigureMeasurementAbsoluteResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n!ConfigureMeasCompleteSlopeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1b\n\x13meas_complete_slope\x18\x02 \x01(\x11\"4\n\"ConfigureMeasCompleteSlopeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc6\x01\n\"ConfigureSampleTriggerSlopeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12;\n\x14sample_trigger_slope\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.SampleTrigSlopeH\x00\x12\"\n\x18sample_trigger_slope_raw\x18\x03 \x01(\x11H\x00\x42\x1b\n\x19sample_trigger_slope_enum\"5\n#ConfigureSampleTriggerSlopeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11ReadStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x9c\x01\n\x12ReadStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13\x61\x63quisition_backlog\x18\x02 \x01(\x11\x12\x39\n\x12\x61\x63quisition_status\x18\x03 \x01(\x0e\x32\x1d.nidmm_grpc.AcquisitionStatus\x12\x1e\n\x16\x61\x63quisition_status_raw\x18\x04 \x01(\x11\"\x9e\x01\n\x0e\x43ontrolRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\x0e\x63ontrol_action\x18\x02 \x01(\x0e\x32\x19.nidmm_grpc.ControlCommitH\x00\x12\x1c\n\x12\x63ontrol_action_raw\x18\x03 \x01(\x11H\x00\x42\x15\n\x13\x63ontrol_action_enum\"!\n\x0f\x43ontrolResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"]\n\x1e\x43onfigureADCCalibrationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x61\x64\x63_calibration\x18\x02 \x01(\x11\"1\n\x1f\x43onfigureADCCalibrationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb6\x01\n\x1e\x43onfigureOffsetCompOhmsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x37\n\x10offset_comp_ohms\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.CompensatedOhmsH\x00\x12\x1e\n\x14offset_comp_ohms_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15offset_comp_ohms_enum\"1\n\x1f\x43onfigureOffsetCompOhmsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1d\x43onfigureCurrentSourceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0e\x63urrent_source\x18\x02 \x01(\x01\"0\n\x1e\x43onfigureCurrentSourceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n\x1d\x43onfigureCableCompTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x63\x61\x62le_comp_type\x18\x02 \x01(\x11\"0\n\x1e\x43onfigureCableCompTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1bPerformOpenCableCompRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"X\n\x1cPerformOpenCableCompResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x63onductance\x18\x02 \x01(\x01\x12\x13\n\x0bsusceptance\x18\x03 \x01(\x01\"B\n\x1cPerformShortCableCompRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"V\n\x1dPerformShortCableCompResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nresistance\x18\x02 \x01(\x01\x12\x11\n\treactance\x18\x03 \x01(\x01\"s\n#ConfigureOpenCableCompValuesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0b\x63onductance\x18\x02 \x01(\x01\x12\x13\n\x0bsusceptance\x18\x03 \x01(\x01\"6\n$ConfigureOpenCableCompValuesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n$ConfigureShortCableCompValuesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nresistance\x18\x02 \x01(\x01\x12\x11\n\treactance\x18\x03 \x01(\x01\"7\n%ConfigureShortCableCompValuesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n#ConfigureWaveformAcquisitionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x34\n\x14measurement_function\x18\x02 \x01(\x0e\x32\x14.nidmm_grpc.FunctionH\x00\x12\"\n\x18measurement_function_raw\x18\x03 \x01(\x11H\x00\x12\r\n\x05range\x18\x04 \x01(\x01\x12\x0c\n\x04rate\x18\x05 \x01(\x01\x12\x17\n\x0fwaveform_points\x18\x06 \x01(\x11\x42\x1b\n\x19measurement_function_enum\"6\n$ConfigureWaveformAcquisitionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n ConfigureWaveformCouplingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11waveform_coupling\x18\x02 \x01(\x11\"3\n!ConfigureWaveformCouplingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x14\x46\x65tchWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"`\n\x15\x46\x65tchWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0ewaveform_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\xad\x01\n\x13ReadWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12-\n\x0cmaximum_time\x18\x02 \x01(\x0e\x32\x15.nidmm_grpc.TimeLimitH\x00\x12\x1a\n\x10maximum_time_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\narray_size\x18\x04 \x01(\x11\x42\x13\n\x11maximum_time_enum\"_\n\x14ReadWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0ewaveform_array\x18\x02 \x03(\x01\x12\x1f\n\x17\x61\x63tual_number_of_points\x18\x03 \x01(\x11\"\x88\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x81\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12@\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32%.nidmm_grpc.NiDmmInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x83\x02\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12@\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32%.nidmm_grpc.NiDmmInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\xd3\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x41\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32&.nidmm_grpc.NiDmmReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x12N\n\x16\x61ttribute_value_mapped\x18\x06 \x01(\x0e\x32,.nidmm_grpc.NiDmmReal64AttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd5\x02\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x41\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32&.nidmm_grpc.NiDmmReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x12N\n\x16\x61ttribute_value_mapped\x18\x06 \x01(\x0e\x32,.nidmm_grpc.NiDmmReal64AttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\xa6\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xbb\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\xa3\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1a.nidmm_grpc.NiDmmAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"@\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x63hannel_string\x18\x02 \x01(\t\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"@\n\x1aGetSelfCalSupportedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"I\n\x1bGetSelfCalSupportedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12self_cal_supported\x18\x02 \x01(\x08\"\x98\x01\n\x18GetCalDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12/\n\x08\x63\x61l_type\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.CalibrationTypeH\x00\x12\x16\n\x0c\x63\x61l_type_raw\x18\x03 \x01(\x11H\x00\x42\x0f\n\rcal_type_enum\"s\n\x19GetCalDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x11\x12\x0c\n\x04year\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"\x95\x01\n\x15GetLastCalTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12/\n\x08\x63\x61l_type\x18\x02 \x01(\x0e\x32\x1b.nidmm_grpc.CalibrationTypeH\x00\x12\x16\n\x0c\x63\x61l_type_raw\x18\x03 \x01(\x11H\x00\x42\x0f\n\rcal_type_enum\"=\n\x16GetLastCalTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"H\n\x11GetDevTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07options\x18\x02 \x01(\t\"9\n\x12GetDevTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"]\n\x1e\x43onfigureTransducerTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0ftransducer_type\x18\x02 \x01(\x11\"1\n\x1f\x43onfigureTransducerTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd1\x02\n\x1c\x43onfigureThermocoupleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x39\n\x11thermocouple_type\x18\x02 \x01(\x0e\x32\x1c.nidmm_grpc.ThermocoupleTypeH\x00\x12\x1f\n\x15thermocouple_type_raw\x18\x03 \x01(\x11H\x00\x12P\n\x17reference_junction_type\x18\x04 \x01(\x0e\x32-.nidmm_grpc.ThermocoupleReferenceJunctionTypeH\x01\x12%\n\x1breference_junction_type_raw\x18\x05 \x01(\x11H\x01\x42\x18\n\x16thermocouple_type_enumB\x1e\n\x1creference_junction_type_enum\"/\n\x1d\x43onfigureThermocoupleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n ConfigureFixedRefJunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12 \n\x18\x66ixed_reference_junction\x18\x02 \x01(\x01\"3\n!ConfigureFixedRefJunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x17\x43onfigureRTDTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\'\n\x08rtd_type\x18\x02 \x01(\x0e\x32\x13.nidmm_grpc.RtdTypeH\x00\x12\x16\n\x0crtd_type_raw\x18\x03 \x01(\x11H\x00\x12\x16\n\x0ertd_resistance\x18\x04 \x01(\x01\x42\x0f\n\rrtd_type_enum\"*\n\x18\x43onfigureRTDTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n\x19\x43onfigureRTDCustomRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05rtd_a\x18\x02 \x01(\x01\x12\r\n\x05rtd_b\x18\x03 \x01(\x01\x12\r\n\x05rtd_c\x18\x04 \x01(\x01\",\n\x1a\x43onfigureRTDCustomResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"]\n\x1e\x43onfigureThermistorTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fthermistor_type\x18\x02 \x01(\x11\"1\n\x1f\x43onfigureThermistorTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x88\x01\n ConfigureThermistorCustomRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cthermistor_a\x18\x02 \x01(\x01\x12\x14\n\x0cthermistor_b\x18\x03 \x01(\x01\x12\x14\n\x0cthermistor_c\x18\x04 \x01(\x01\"3\n!ConfigureThermistorCustomResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\x8a\x1b\n\x0eNiDmmAttribute\x12\x1f\n\x1bNIDMM_ATTRIBUTE_UNSPECIFIED\x10\x00\x12!\n\x1bNIDMM_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12-\n\'NIDMM_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1b\n\x15NIDMM_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\x1e\n\x18NIDMM_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12&\n NIDMM_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12\'\n!NIDMM_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12>\n8NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12>\n8NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x31\n+NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12,\n&NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12,\n&NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12.\n(NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12#\n\x1dNIDMM_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x31\n+NIDMM_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12(\n\"NIDMM_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12-\n\'NIDMM_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12&\n NIDMM_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x32\n,NIDMM_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\"\n\x1cNIDMM_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12,\n&NIDMM_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12\"\n\x1cNIDMM_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12\x1e\n\x18NIDMM_ATTRIBUTE_FUNCTION\x10\xd1\xa5L\x12\x1b\n\x15NIDMM_ATTRIBUTE_RANGE\x10\xd2\xa5L\x12)\n#NIDMM_ATTRIBUTE_RESOLUTION_ABSOLUTE\x10\xd8\xa5L\x12\'\n!NIDMM_ATTRIBUTE_RESOLUTION_DIGITS\x10\xd3\xa5L\x12#\n\x1dNIDMM_ATTRIBUTE_TRIGGER_DELAY\x10\xd5\xa5L\x12$\n\x1eNIDMM_ATTRIBUTE_TRIGGER_SOURCE\x10\xd4\xa5L\x12!\n\x1bNIDMM_ATTRIBUTE_AC_MAX_FREQ\x10\xd7\xa5L\x12!\n\x1bNIDMM_ATTRIBUTE_AC_MIN_FREQ\x10\xd6\xa5L\x12(\n\"NIDMM_ATTRIBUTE_FREQ_VOLTAGE_RANGE\x10\xb5\xa6L\x12(\n\"NIDMM_ATTRIBUTE_MEAS_COMPLETE_DEST\x10\x81\xa8L\x12\"\n\x1cNIDMM_ATTRIBUTE_SAMPLE_COUNT\x10\xfd\xa7L\x12%\n\x1fNIDMM_ATTRIBUTE_SAMPLE_INTERVAL\x10\xff\xa7L\x12$\n\x1eNIDMM_ATTRIBUTE_SAMPLE_TRIGGER\x10\xfe\xa7L\x12#\n\x1dNIDMM_ATTRIBUTE_TRIGGER_COUNT\x10\x80\xa8L\x12#\n\x1dNIDMM_ATTRIBUTE_APERTURE_TIME\x10\x91\xa8L\x12)\n#NIDMM_ATTRIBUTE_APERTURE_TIME_UNITS\x10\x92\xa8L\x12&\n NIDMM_ATTRIBUTE_AUTO_RANGE_VALUE\x10\x9b\xa8L\x12\x1f\n\x19NIDMM_ATTRIBUTE_AUTO_ZERO\x10\x9c\xa8L\x12$\n\x1eNIDMM_ATTRIBUTE_POWERLINE_FREQ\x10\x9d\xa8L\x12#\n\x1dNIDMM_ATTRIBUTE_TRIGGER_SLOPE\x10\x9e\xa8L\x12*\n$NIDMM_ATTRIBUTE_SAMPLE_TRIGGER_SLOPE\x10\xba\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_MEAS_DEST_SLOPE\x10\xb2\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_ADC_CALIBRATION\x10\xc6\x98\x46\x12&\n NIDMM_ATTRIBUTE_OFFSET_COMP_OHMS\x10\xc7\x98\x46\x12(\n\"NIDMM_ATTRIBUTE_NUMBER_OF_AVERAGES\x10\xd0\x98\x46\x12$\n\x1eNIDMM_ATTRIBUTE_CURRENT_SOURCE\x10\xc9\x98\x46\x12(\n\"NIDMM_ATTRIBUTE_DC_NOISE_REJECTION\x10\xca\x98\x46\x12!\n\x1bNIDMM_ATTRIBUTE_SETTLE_TIME\x10\xcc\x98\x46\x12&\n NIDMM_ATTRIBUTE_INPUT_RESISTANCE\x10\xcd\x98\x46\x12\x1d\n\x17NIDMM_ATTRIBUTE_LATENCY\x10\xd2\x98\x46\x12!\n\x1bNIDMM_ATTRIBUTE_BUFFER_SIZE\x10\xd5\x98\x46\x12!\n\x1bNIDMM_ATTRIBUTE_SHUNT_VALUE\x10\xb3\x98\x46\x12$\n\x1eNIDMM_ATTRIBUTE_OPERATION_MODE\x10\xbe\x98\x46\x12#\n\x1dNIDMM_ATTRIBUTE_WAVEFORM_RATE\x10\xc2\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_WAVEFORM_POINTS\x10\xc3\x98\x46\x12\'\n!NIDMM_ATTRIBUTE_WAVEFORM_COUPLING\x10\xcb\x98\x46\x12\x33\n-NIDMM_ATTRIBUTE_FREQ_VOLTAGE_AUTO_RANGE_VALUE\x10\xdc\x98\x46\x12%\n\x1fNIDMM_ATTRIBUTE_CABLE_COMP_TYPE\x10\xdd\x98\x46\x12\x30\n*NIDMM_ATTRIBUTE_SHORT_CABLE_COMP_REACTANCE\x10\xde\x98\x46\x12\x31\n+NIDMM_ATTRIBUTE_SHORT_CABLE_COMP_RESISTANCE\x10\xdf\x98\x46\x12\x31\n+NIDMM_ATTRIBUTE_OPEN_CABLE_COMP_SUSCEPTANCE\x10\xe0\x98\x46\x12\x31\n+NIDMM_ATTRIBUTE_OPEN_CABLE_COMP_CONDUCTANCE\x10\xe1\x98\x46\x12*\n$NIDMM_ATTRIBUTE_LC_CALCULATION_MODEL\x10\xe4\x98\x46\x12\x1d\n\x17NIDMM_ATTRIBUTE_DC_BIAS\x10\xe5\x98\x46\x12/\n)NIDMM_ATTRIBUTE_LC_NUMBER_MEAS_TO_AVERAGE\x10\xe7\x98\x46\x12#\n\x1dNIDMM_ATTRIBUTE_SERIAL_NUMBER\x10\xe6\x98\x46\x12+\n%NIDMM_ATTRIBUTE_CONFIG_PRODUCT_NUMBER\x10\xed\x98\x46\x12*\n$NIDMM_ATTRIBUTE_TEMP_TRANSDUCER_TYPE\x10\x99\xa7L\x12+\n%NIDMM_ATTRIBUTE_TEMP_TC_REF_JUNC_TYPE\x10\xb8\xa7L\x12\"\n\x1cNIDMM_ATTRIBUTE_TEMP_TC_TYPE\x10\xb7\xa7L\x12,\n&NIDMM_ATTRIBUTE_TEMP_TC_FIXED_REF_JUNC\x10\xb9\xa7L\x12#\n\x1dNIDMM_ATTRIBUTE_TEMP_RTD_TYPE\x10\xa8\x99\x46\x12\"\n\x1cNIDMM_ATTRIBUTE_TEMP_RTD_RES\x10\xc2\xa7L\x12 \n\x1aNIDMM_ATTRIBUTE_TEMP_RTD_A\x10\xa9\x99\x46\x12 \n\x1aNIDMM_ATTRIBUTE_TEMP_RTD_B\x10\xaa\x99\x46\x12 \n\x1aNIDMM_ATTRIBUTE_TEMP_RTD_C\x10\xab\x99\x46\x12*\n$NIDMM_ATTRIBUTE_TEMP_THERMISTOR_TYPE\x10\xac\x99\x46\x12\'\n!NIDMM_ATTRIBUTE_TEMP_THERMISTOR_A\x10\xad\x99\x46\x12\'\n!NIDMM_ATTRIBUTE_TEMP_THERMISTOR_B\x10\xae\x99\x46\x12\'\n!NIDMM_ATTRIBUTE_TEMP_THERMISTOR_C\x10\xaf\x99\x46\x12\x33\n-NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_MAJOR_VERSION\x10\x87\x8f@\x12\x33\n-NIDMM_ATTRIBUTE_SPECIFIC_DRIVER_MINOR_VERSION\x10\x88\x8f@*\xbb\x04\n\x08\x46unction\x12\x18\n\x14\x46UNCTION_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x46UNCTION_NIDMM_VAL_DC_VOLTS\x10\x01\x12\x1f\n\x1b\x46UNCTION_NIDMM_VAL_AC_VOLTS\x10\x02\x12!\n\x1d\x46UNCTION_NIDMM_VAL_DC_CURRENT\x10\x03\x12!\n\x1d\x46UNCTION_NIDMM_VAL_AC_CURRENT\x10\x04\x12!\n\x1d\x46UNCTION_NIDMM_VAL_2_WIRE_RES\x10\x05\x12!\n\x1d\x46UNCTION_NIDMM_VAL_4_WIRE_RES\x10\x65\x12\x1b\n\x17\x46UNCTION_NIDMM_VAL_FREQ\x10h\x12\x1d\n\x19\x46UNCTION_NIDMM_VAL_PERIOD\x10i\x12\"\n\x1e\x46UNCTION_NIDMM_VAL_TEMPERATURE\x10l\x12+\n&FUNCTION_NIDMM_VAL_AC_VOLTS_DC_COUPLED\x10\xe9\x07\x12\x1d\n\x18\x46UNCTION_NIDMM_VAL_DIODE\x10\xea\x07\x12(\n#FUNCTION_NIDMM_VAL_WAVEFORM_VOLTAGE\x10\xeb\x07\x12(\n#FUNCTION_NIDMM_VAL_WAVEFORM_CURRENT\x10\xec\x07\x12#\n\x1e\x46UNCTION_NIDMM_VAL_CAPACITANCE\x10\xed\x07\x12\"\n\x1d\x46UNCTION_NIDMM_VAL_INDUCTANCE\x10\xee\x07*\xe4\x04\n\rTriggerSource\x12\x1e\n\x1aTRIGGER_SOURCE_UNSPECIFIED\x10\x00\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_IMMEDIATE\x10\x01\x12%\n!TRIGGER_SOURCE_NIDMM_VAL_EXTERNAL\x10\x02\x12*\n&TRIGGER_SOURCE_NIDMM_VAL_SOFTWARE_TRIG\x10\x03\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG0\x10o\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG1\x10p\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG2\x10q\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG3\x10r\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG4\x10s\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG5\x10t\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG6\x10u\x12&\n\"TRIGGER_SOURCE_NIDMM_VAL_PXI_TRIG7\x10v\x12&\n!TRIGGER_SOURCE_NIDMM_VAL_PXI_STAR\x10\x83\x01\x12\'\n\"TRIGGER_SOURCE_NIDMM_VAL_AUX_TRIG1\x10\xe9\x07\x12\'\n\"TRIGGER_SOURCE_NIDMM_VAL_LBR_TRIG1\x10\xec\x07*\x8b\x05\n\rSampleTrigger\x12\x1e\n\x1aSAMPLE_TRIGGER_UNSPECIFIED\x10\x00\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_IMMEDIATE\x10\x01\x12%\n!SAMPLE_TRIGGER_NIDMM_VAL_EXTERNAL\x10\x02\x12*\n&SAMPLE_TRIGGER_NIDMM_VAL_SOFTWARE_TRIG\x10\x03\x12%\n!SAMPLE_TRIGGER_NIDMM_VAL_INTERVAL\x10\n\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG0\x10o\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG1\x10p\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG2\x10q\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG3\x10r\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG4\x10s\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG5\x10t\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG6\x10u\x12&\n\"SAMPLE_TRIGGER_NIDMM_VAL_PXI_TRIG7\x10v\x12&\n!SAMPLE_TRIGGER_NIDMM_VAL_PXI_STAR\x10\x83\x01\x12\'\n\"SAMPLE_TRIGGER_NIDMM_VAL_AUX_TRIG1\x10\xe9\x07\x12\'\n\"SAMPLE_TRIGGER_NIDMM_VAL_LBR_TRIG1\x10\xec\x07*Z\n\x0cTriggerSlope\x12$\n TRIGGER_SLOPE_NIDMM_VAL_POSITIVE\x10\x00\x12$\n TRIGGER_SLOPE_NIDMM_VAL_NEGATIVE\x10\x01*e\n\x0fSampleTrigSlope\x12(\n$SAMPLE_TRIG_SLOPE_NIDMM_VAL_POSITIVE\x10\x00\x12(\n$SAMPLE_TRIG_SLOPE_NIDMM_VAL_NEGATIVE\x10\x01*\x9c\x01\n\x14PowerLineFrequencies\x12&\n\"POWER_LINE_FREQUENCIES_UNSPECIFIED\x10\x00\x12-\n)POWER_LINE_FREQUENCIES_NIDMM_VAL_50_HERTZ\x10\x32\x12-\n)POWER_LINE_FREQUENCIES_NIDMM_VAL_60_HERTZ\x10<*s\n\x11\x41pertureTimeUnits\x12)\n%APERTURE_TIME_UNITS_NIDMM_VAL_SECONDS\x10\x00\x12\x33\n/APERTURE_TIME_UNITS_NIDMM_VAL_POWER_LINE_CYCLES\x10\x01*z\n\x0f\x43ompensatedOhms\x12\x33\n/COMPENSATED_OHMS_NIDMM_VAL_OFFSET_COMP_OHMS_OFF\x10\x00\x12\x32\n.COMPENSATED_OHMS_NIDMM_VAL_OFFSET_COMP_OHMS_ON\x10\x01*m\n\x0f\x43\x61librationType\x12,\n(CALIBRATION_TYPE_NIDMM_VAL_INTERNAL_AREA\x10\x00\x12,\n(CALIBRATION_TYPE_NIDMM_VAL_EXTERNAL_AREA\x10\x01*\xa1\x01\n!ThermocoupleReferenceJunctionType\x12\x34\n0THERMOCOUPLE_REFERENCE_JUNCTION_TYPE_UNSPECIFIED\x10\x00\x12\x46\nBTHERMOCOUPLE_REFERENCE_JUNCTION_TYPE_NIDMM_VAL_TEMP_REF_JUNC_FIXED\x10\x02*\x8d\x03\n\x10ThermocoupleType\x12!\n\x1dTHERMOCOUPLE_TYPE_UNSPECIFIED\x10\x00\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_B\x10\x01\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_E\x10\x04\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_J\x10\x06\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_K\x10\x07\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_N\x10\x08\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_R\x10\t\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_S\x10\n\x12)\n%THERMOCOUPLE_TYPE_NIDMM_VAL_TEMP_TC_T\x10\x0b*\xa1\x02\n\x07RtdType\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_CUSTOM\x10\x00\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3750\x10\x01\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3851\x10\x02\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3911\x10\x03\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3916\x10\x04\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3920\x10\x05\x12&\n\"RTD_TYPE_NIDMM_VAL_TEMP_RTD_PT3928\x10\x06*\xa4\x02\n\x11\x41\x63quisitionStatus\x12\x36\n2ACQUISITION_STATUS_NIDMM_VAL_RUNNING_ANTICOLLISION\x10\x00\x12\x36\n2ACQUISITION_STATUS_NIDMM_VAL_FINISHED_WITH_BACKLOG\x10\x01\x12\x39\n5ACQUISITION_STATUS_NIDMM_VAL_FINISHED_WITH_NO_BACKLOG\x10\x02\x12\'\n#ACQUISITION_STATUS_NIDMM_VAL_PAUSED\x10\x03\x12;\n7ACQUISITION_STATUS_NIDMM_VAL_NO_ACQUISITION_IN_PROGRESS\x10\x04*\xe1\x02\n\x0c\x41pertureTime\x12\x1d\n\x19\x41PERTURE_TIME_UNSPECIFIED\x10\x00\x12\x37\n*APERTURE_TIME_NIDMM_VAL_APERTURE_TIME_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12!\n\x1d\x41PERTURE_TIME_NIDMM_VAL_1_PLC\x10\x01\x12!\n\x1d\x41PERTURE_TIME_NIDMM_VAL_5_PLC\x10\x05\x12!\n\x1d\x41PERTURE_TIME_NIDMM_VAL_6_PLC\x10\x06\x12\"\n\x1e\x41PERTURE_TIME_NIDMM_VAL_10_PLC\x10\n\x12\"\n\x1e\x41PERTURE_TIME_NIDMM_VAL_12_PLC\x10\x0c\x12#\n\x1f\x41PERTURE_TIME_NIDMM_VAL_100_PLC\x10\x64\x12#\n\x1f\x41PERTURE_TIME_NIDMM_VAL_120_PLC\x10x*<\n\rControlCommit\x12+\n\'CONTROL_COMMIT_NIDMM_VAL_CONTROL_COMMIT\x10\x00*\xbd\x01\n\x15\x46requencyVoltageRange\x12\'\n#FREQUENCY_VOLTAGE_RANGE_UNSPECIFIED\x10\x00\x12<\n/FREQUENCY_VOLTAGE_RANGE_NIDMM_VAL_AUTO_RANGE_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12=\n0FREQUENCY_VOLTAGE_RANGE_NIDMM_VAL_AUTO_RANGE_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01*?\n\x0bSampleCount\x12\x30\n,SAMPLE_COUNT_NIDMM_VAL_SAMPLE_COUNT_INFINITE\x10\x00*d\n\x0eSampleInterval\x12\x1f\n\x1bSAMPLE_INTERVAL_UNSPECIFIED\x10\x00\x12\x31\n$SAMPLE_INTERVAL_NIDMM_VAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*Z\n\tTimeLimit\x12\x1a\n\x16TIME_LIMIT_UNSPECIFIED\x10\x00\x12\x31\n$TIME_LIMIT_NIDMM_VAL_TIME_LIMIT_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*?\n\x0cTriggerCount\x12/\n+TRIGGER_COUNT_NIDMM_VAL_TRIG_COUNT_INFINITE\x10\x00*\x9a\x01\n\rTriggerDelays\x12\x1e\n\x1aTRIGGER_DELAYS_UNSPECIFIED\x10\x00\x12\x33\n&TRIGGER_DELAYS_NIDMM_VAL_AUTO_DELAY_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x34\n\'TRIGGER_DELAYS_NIDMM_VAL_AUTO_DELAY_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xd2.\n\x19NiDmmInt32AttributeValues\x12\x1b\n\x17NIDMM_INT32_UNSPECIFIED\x10\x00\x12\x37\n3NIDMM_INT32_ADC_CALIBRATION_VAL_ADC_CALIBRATION_OFF\x10\x00\x12\x41\n4NIDMM_INT32_ADC_CALIBRATION_VAL_ADC_CALIBRATION_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x36\n2NIDMM_INT32_ADC_CALIBRATION_VAL_ADC_CALIBRATION_ON\x10\x01\x12/\n+NIDMM_INT32_APERTURE_TIME_UNITS_VAL_SECONDS\x10\x00\x12\x39\n5NIDMM_INT32_APERTURE_TIME_UNITS_VAL_POWER_LINE_CYCLES\x10\x01\x12+\n\'NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_OFF\x10\x00\x12\x35\n(NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12*\n&NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_ON\x10\x01\x12,\n(NIDMM_INT32_AUTO_ZERO_VAL_AUTO_ZERO_ONCE\x10\x02\x12\x39\n,NIDMM_INT32_BUFFER_SIZE_VAL_BUFFER_SIZE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12;\n7NIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_NONE\x10\x00\x12;\n7NIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_OPEN\x10\x01\x12<\n8NIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_SHORT\x10\x02\x12\x45\nANIDMM_INT32_CABLE_COMPENSATION_TYPE_VAL_CABLE_COMP_OPEN_AND_SHORT\x10\x03\x12\x39\n5NIDMM_INT32_COMPENSATED_OHMS_VAL_OFFSET_COMP_OHMS_OFF\x10\x00\x12\x38\n4NIDMM_INT32_COMPENSATED_OHMS_VAL_OFFSET_COMP_OHMS_ON\x10\x01\x12\'\n#NIDMM_INT32_DC_BIAS_VAL_DC_BIAS_OFF\x10\x00\x12&\n\"NIDMM_INT32_DC_BIAS_VAL_DC_BIAS_ON\x10\x01\x12\x32\n.NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_NORMAL\x10\x00\x12\x39\n,NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x38\n4NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_SECOND_ORDER\x10\x01\x12\x36\n2NIDMM_INT32_DC_NOISE_REJECTION_VAL_DCNR_HIGH_ORDER\x10\x02\x12%\n!NIDMM_INT32_FUNCTION_VAL_DC_VOLTS\x10\x01\x12%\n!NIDMM_INT32_FUNCTION_VAL_AC_VOLTS\x10\x02\x12\'\n#NIDMM_INT32_FUNCTION_VAL_DC_CURRENT\x10\x03\x12\'\n#NIDMM_INT32_FUNCTION_VAL_AC_CURRENT\x10\x04\x12\'\n#NIDMM_INT32_FUNCTION_VAL_2_WIRE_RES\x10\x05\x12\'\n#NIDMM_INT32_FUNCTION_VAL_4_WIRE_RES\x10\x65\x12!\n\x1dNIDMM_INT32_FUNCTION_VAL_FREQ\x10h\x12#\n\x1fNIDMM_INT32_FUNCTION_VAL_PERIOD\x10i\x12(\n$NIDMM_INT32_FUNCTION_VAL_TEMPERATURE\x10l\x12\x31\n,NIDMM_INT32_FUNCTION_VAL_AC_VOLTS_DC_COUPLED\x10\xe9\x07\x12#\n\x1eNIDMM_INT32_FUNCTION_VAL_DIODE\x10\xea\x07\x12.\n)NIDMM_INT32_FUNCTION_VAL_WAVEFORM_VOLTAGE\x10\xeb\x07\x12.\n)NIDMM_INT32_FUNCTION_VAL_WAVEFORM_CURRENT\x10\xec\x07\x12)\n$NIDMM_INT32_FUNCTION_VAL_CAPACITANCE\x10\xed\x07\x12(\n#NIDMM_INT32_FUNCTION_VAL_INDUCTANCE\x10\xee\x07\x12\x31\n$NIDMM_INT32_LATENCY_VAL_LATENCY_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12:\n6NIDMM_INT32_LC_CALCULATION_MODEL_VAL_CALC_MODEL_SERIES\x10\x00\x12\x41\n4NIDMM_INT32_LC_CALCULATION_MODEL_VAL_CALC_MODEL_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12<\n8NIDMM_INT32_LC_CALCULATION_MODEL_VAL_CALC_MODEL_PARALLEL\x10\x01\x12;\n.NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_NONE\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x36\n2NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_EXTERNAL\x10\x02\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG0\x10o\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG1\x10p\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG2\x10q\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG3\x10r\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG4\x10s\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG5\x10t\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG6\x10u\x12\x37\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_PXI_TRIG7\x10v\x12\x38\n3NIDMM_INT32_MEASUREMENT_COMPLETE_DEST_VAL_LBR_TRIG0\x10\xeb\x07\x12:\n6NIDMM_INT32_MEASUREMENT_DESTINATION_SLOPE_VAL_POSITIVE\x10\x00\x12:\n6NIDMM_INT32_MEASUREMENT_DESTINATION_SLOPE_VAL_NEGATIVE\x10\x01\x12.\n*NIDMM_INT32_OPERATION_MODE_VAL_IVIDMM_MODE\x10\x00\x12\x30\n,NIDMM_INT32_OPERATION_MODE_VAL_WAVEFORM_MODE\x10\x01\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_CUSTOM\x10\x00\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3750\x10\x01\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3851\x10\x02\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3911\x10\x03\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3916\x10\x04\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3920\x10\x05\x12,\n(NIDMM_INT32_RTD_TYPE_VAL_TEMP_RTD_PT3928\x10\x06\x12\x36\n2NIDMM_INT32_SAMPLE_COUNT_VAL_SAMPLE_COUNT_INFINITE\x10\x00\x12.\n*NIDMM_INT32_SAMPLE_TRIG_SLOPE_VAL_POSITIVE\x10\x00\x12.\n*NIDMM_INT32_SAMPLE_TRIG_SLOPE_VAL_NEGATIVE\x10\x01\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_IMMEDIATE\x10\x01\x12+\n\'NIDMM_INT32_SAMPLE_TRIGGER_VAL_EXTERNAL\x10\x02\x12\x30\n,NIDMM_INT32_SAMPLE_TRIGGER_VAL_SOFTWARE_TRIG\x10\x03\x12+\n\'NIDMM_INT32_SAMPLE_TRIGGER_VAL_INTERVAL\x10\n\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG0\x10o\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG1\x10p\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG2\x10q\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG3\x10r\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG4\x10s\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG5\x10t\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG6\x10u\x12,\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_TRIG7\x10v\x12,\n\'NIDMM_INT32_SAMPLE_TRIGGER_VAL_PXI_STAR\x10\x83\x01\x12-\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_AUX_TRIG1\x10\xe9\x07\x12-\n(NIDMM_INT32_SAMPLE_TRIGGER_VAL_LBR_TRIG1\x10\xec\x07\x12:\n6NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_CUSTOM\x10\x00\x12\x39\n5NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_44004\x10\x01\x12\x39\n5NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_44006\x10\x02\x12\x39\n5NIDMM_INT32_THERMISTOR_TYPE_VAL_TEMP_THERMISTOR_44007\x10\x03\x12L\nHNIDMM_INT32_THERMOCOUPLE_REFERENCE_JUNCTION_TYPE_VAL_TEMP_REF_JUNC_FIXED\x10\x02\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_B\x10\x01\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_E\x10\x04\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_J\x10\x06\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_K\x10\x07\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_N\x10\x08\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_R\x10\t\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_S\x10\n\x12/\n+NIDMM_INT32_THERMOCOUPLE_TYPE_VAL_TEMP_TC_T\x10\x0b\x12\x30\n,NIDMM_INT32_TRANSDUCER_TYPE_VAL_THERMOCOUPLE\x10\x01\x12.\n*NIDMM_INT32_TRANSDUCER_TYPE_VAL_THERMISTOR\x10\x02\x12.\n*NIDMM_INT32_TRANSDUCER_TYPE_VAL_2_WIRE_RTD\x10\x03\x12.\n*NIDMM_INT32_TRANSDUCER_TYPE_VAL_4_WIRE_RTD\x10\x04\x12\x35\n1NIDMM_INT32_TRIGGER_COUNT_VAL_TRIG_COUNT_INFINITE\x10\x00\x12*\n&NIDMM_INT32_TRIGGER_SLOPE_VAL_POSITIVE\x10\x00\x12*\n&NIDMM_INT32_TRIGGER_SLOPE_VAL_NEGATIVE\x10\x01\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_IMMEDIATE\x10\x01\x12+\n\'NIDMM_INT32_TRIGGER_SOURCE_VAL_EXTERNAL\x10\x02\x12\x30\n,NIDMM_INT32_TRIGGER_SOURCE_VAL_SOFTWARE_TRIG\x10\x03\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG0\x10o\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG1\x10p\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG2\x10q\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG3\x10r\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG4\x10s\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG5\x10t\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG6\x10u\x12,\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_TRIG7\x10v\x12,\n\'NIDMM_INT32_TRIGGER_SOURCE_VAL_PXI_STAR\x10\x83\x01\x12-\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_AUX_TRIG1\x10\xe9\x07\x12-\n(NIDMM_INT32_TRIGGER_SOURCE_VAL_LBR_TRIG1\x10\xec\x07\x12:\n6NIDMM_INT32_WAVEFORM_COUPLING_VAL_WAVEFORM_COUPLING_AC\x10\x00\x12:\n6NIDMM_INT32_WAVEFORM_COUPLING_VAL_WAVEFORM_COUPLING_DC\x10\x01\x1a\x02\x10\x01*\xac\x08\n\x1aNiDmmReal64AttributeValues\x12\x1c\n\x18NIDMM_REAL64_UNSPECIFIED\x10\x00\x12>\n1NIDMM_REAL64_APERTURE_TIME_VAL_APERTURE_TIME_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12(\n$NIDMM_REAL64_APERTURE_TIME_VAL_1_PLC\x10\x01\x12(\n$NIDMM_REAL64_APERTURE_TIME_VAL_5_PLC\x10\x05\x12(\n$NIDMM_REAL64_APERTURE_TIME_VAL_6_PLC\x10\x06\x12)\n%NIDMM_REAL64_APERTURE_TIME_VAL_10_PLC\x10\n\x12)\n%NIDMM_REAL64_APERTURE_TIME_VAL_12_PLC\x10\x0c\x12*\n&NIDMM_REAL64_APERTURE_TIME_VAL_100_PLC\x10\x64\x12*\n&NIDMM_REAL64_APERTURE_TIME_VAL_120_PLC\x10x\x12\x43\n6NIDMM_REAL64_FREQUENCY_VOLTAGE_RANGE_VAL_AUTO_RANGE_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x44\n7NIDMM_REAL64_FREQUENCY_VOLTAGE_RANGE_VAL_AUTO_RANGE_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x34\n0NIDMM_REAL64_POWER_LINE_FREQUENCIES_VAL_50_HERTZ\x10\x32\x12\x34\n0NIDMM_REAL64_POWER_LINE_FREQUENCIES_VAL_60_HERTZ\x10<\x12\x31\n$NIDMM_REAL64_RANGE_VAL_AUTO_RANGE_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x32\n%NIDMM_REAL64_RANGE_VAL_AUTO_RANGE_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x33\n&NIDMM_REAL64_RANGE_VAL_AUTO_RANGE_ONCE\x10\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x38\n+NIDMM_REAL64_SAMPLE_INTERVAL_VAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12:\n-NIDMM_REAL64_SETTLE_TIME_VAL_SETTLE_TIME_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12:\n-NIDMM_REAL64_TRIGGER_DELAYS_VAL_AUTO_DELAY_ON\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12;\n.NIDMM_REAL64_TRIGGER_DELAYS_VAL_AUTO_DELAY_OFF\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x1a\x02\x10\x01*\xac\x03\n NiDmmReal64AttributeValuesMapped\x12#\n\x1fNIDMM_REAL64_MAPPED_UNSPECIFIED\x10\x00\x12.\n*NIDMM_REAL64_CURRENT_SOURCE_VAL_1_MICROAMP\x10\x01\x12/\n+NIDMM_REAL64_CURRENT_SOURCE_VAL_10_MICROAMP\x10\x02\x12\x30\n,NIDMM_REAL64_CURRENT_SOURCE_VAL_100_MICROAMP\x10\x03\x12.\n*NIDMM_REAL64_CURRENT_SOURCE_VAL_1_MILLIAMP\x10\x04\x12/\n+NIDMM_REAL64_INPUT_RESISTANCE_VAL_1_MEGAOHM\x10\x05\x12\x30\n,NIDMM_REAL64_INPUT_RESISTANCE_VAL_10_MEGAOHM\x10\x06\x12=\n9NIDMM_REAL64_INPUT_RESISTANCE_VAL_GREATER_THAN_10_GIGAOHM\x10\x07\x32\xe6\x44\n\x05NiDmm\x12\x39\n\x04Init\x12\x17.nidmm_grpc.InitRequest\x1a\x18.nidmm_grpc.InitResponse\x12Z\n\x0fInitWithOptions\x12\".nidmm_grpc.InitWithOptionsRequest\x1a#.nidmm_grpc.InitWithOptionsResponse\x12<\n\x05\x43lose\x12\x18.nidmm_grpc.CloseRequest\x1a\x19.nidmm_grpc.CloseResponse\x12\x45\n\x08GetError\x12\x1b.nidmm_grpc.GetErrorRequest\x1a\x1c.nidmm_grpc.GetErrorResponse\x12Z\n\x0fGetErrorMessage\x12\".nidmm_grpc.GetErrorMessageRequest\x1a#.nidmm_grpc.GetErrorMessageResponse\x12K\n\nClearError\x12\x1d.nidmm_grpc.ClearErrorRequest\x1a\x1e.nidmm_grpc.ClearErrorResponse\x12<\n\x05Reset\x12\x18.nidmm_grpc.ResetRequest\x1a\x19.nidmm_grpc.ResetResponse\x12\x45\n\x08SelfTest\x12\x1b.nidmm_grpc.SelfTestRequest\x1a\x1c.nidmm_grpc.SelfTestResponse\x12\x42\n\x07SelfCal\x12\x1a.nidmm_grpc.SelfCalRequest\x1a\x1b.nidmm_grpc.SelfCalResponse\x12T\n\rRevisionQuery\x12 .nidmm_grpc.RevisionQueryRequest\x1a!.nidmm_grpc.RevisionQueryResponse\x12`\n\x11ResetWithDefaults\x12$.nidmm_grpc.ResetWithDefaultsRequest\x1a%.nidmm_grpc.ResetWithDefaultsResponse\x12\x42\n\x07\x44isable\x12\x1a.nidmm_grpc.DisableRequest\x1a\x1b.nidmm_grpc.DisableResponse\x12i\n\x14GetMeasurementPeriod\x12\'.nidmm_grpc.GetMeasurementPeriodRequest\x1a(.nidmm_grpc.GetMeasurementPeriodResponse\x12]\n\x10\x43onfigureTrigger\x12#.nidmm_grpc.ConfigureTriggerRequest\x1a$.nidmm_grpc.ConfigureTriggerResponse\x12\x39\n\x04Read\x12\x17.nidmm_grpc.ReadRequest\x1a\x18.nidmm_grpc.ReadResponse\x12<\n\x05\x46\x65tch\x12\x18.nidmm_grpc.FetchRequest\x1a\x19.nidmm_grpc.FetchResponse\x12<\n\x05\x41\x62ort\x12\x18.nidmm_grpc.AbortRequest\x1a\x19.nidmm_grpc.AbortResponse\x12\x45\n\x08Initiate\x12\x1b.nidmm_grpc.InitiateRequest\x1a\x1c.nidmm_grpc.InitiateResponse\x12N\n\x0bIsOverRange\x12\x1e.nidmm_grpc.IsOverRangeRequest\x1a\x1f.nidmm_grpc.IsOverRangeResponse\x12Q\n\x0cIsUnderRange\x12\x1f.nidmm_grpc.IsUnderRangeRequest\x1a .nidmm_grpc.IsUnderRangeResponse\x12i\n\x14\x43onfigureACBandwidth\x12\'.nidmm_grpc.ConfigureACBandwidthRequest\x1a(.nidmm_grpc.ConfigureACBandwidthResponse\x12\x87\x01\n\x1e\x43onfigureFrequencyVoltageRange\x12\x31.nidmm_grpc.ConfigureFrequencyVoltageRangeRequest\x1a\x32.nidmm_grpc.ConfigureFrequencyVoltageRangeResponse\x12x\n\x19\x43onfigureMeasCompleteDest\x12,.nidmm_grpc.ConfigureMeasCompleteDestRequest\x1a-.nidmm_grpc.ConfigureMeasCompleteDestResponse\x12\x66\n\x13\x43onfigureMultiPoint\x12&.nidmm_grpc.ConfigureMultiPointRequest\x1a\'.nidmm_grpc.ConfigureMultiPointResponse\x12W\n\x0eReadMultiPoint\x12!.nidmm_grpc.ReadMultiPointRequest\x1a\".nidmm_grpc.ReadMultiPointResponse\x12Z\n\x0f\x46\x65tchMultiPoint\x12\".nidmm_grpc.FetchMultiPointRequest\x1a#.nidmm_grpc.FetchMultiPointResponse\x12l\n\x15\x43onfigureTriggerSlope\x12(.nidmm_grpc.ConfigureTriggerSlopeRequest\x1a).nidmm_grpc.ConfigureTriggerSlopeResponse\x12\x66\n\x13SendSoftwareTrigger\x12&.nidmm_grpc.SendSoftwareTriggerRequest\x1a\'.nidmm_grpc.SendSoftwareTriggerResponse\x12\x66\n\x13GetApertureTimeInfo\x12&.nidmm_grpc.GetApertureTimeInfoRequest\x1a\'.nidmm_grpc.GetApertureTimeInfoResponse\x12`\n\x11GetAutoRangeValue\x12$.nidmm_grpc.GetAutoRangeValueRequest\x1a%.nidmm_grpc.GetAutoRangeValueResponse\x12l\n\x15\x43onfigureAutoZeroMode\x12(.nidmm_grpc.ConfigureAutoZeroModeRequest\x1a).nidmm_grpc.ConfigureAutoZeroModeResponse\x12~\n\x1b\x43onfigurePowerLineFrequency\x12..nidmm_grpc.ConfigurePowerLineFrequencyRequest\x1a/.nidmm_grpc.ConfigurePowerLineFrequencyResponse\x12{\n\x1a\x43onfigureMeasurementDigits\x12-.nidmm_grpc.ConfigureMeasurementDigitsRequest\x1a..nidmm_grpc.ConfigureMeasurementDigitsResponse\x12\x81\x01\n\x1c\x43onfigureMeasurementAbsolute\x12/.nidmm_grpc.ConfigureMeasurementAbsoluteRequest\x1a\x30.nidmm_grpc.ConfigureMeasurementAbsoluteResponse\x12{\n\x1a\x43onfigureMeasCompleteSlope\x12-.nidmm_grpc.ConfigureMeasCompleteSlopeRequest\x1a..nidmm_grpc.ConfigureMeasCompleteSlopeResponse\x12~\n\x1b\x43onfigureSampleTriggerSlope\x12..nidmm_grpc.ConfigureSampleTriggerSlopeRequest\x1a/.nidmm_grpc.ConfigureSampleTriggerSlopeResponse\x12K\n\nReadStatus\x12\x1d.nidmm_grpc.ReadStatusRequest\x1a\x1e.nidmm_grpc.ReadStatusResponse\x12\x42\n\x07\x43ontrol\x12\x1a.nidmm_grpc.ControlRequest\x1a\x1b.nidmm_grpc.ControlResponse\x12r\n\x17\x43onfigureADCCalibration\x12*.nidmm_grpc.ConfigureADCCalibrationRequest\x1a+.nidmm_grpc.ConfigureADCCalibrationResponse\x12r\n\x17\x43onfigureOffsetCompOhms\x12*.nidmm_grpc.ConfigureOffsetCompOhmsRequest\x1a+.nidmm_grpc.ConfigureOffsetCompOhmsResponse\x12o\n\x16\x43onfigureCurrentSource\x12).nidmm_grpc.ConfigureCurrentSourceRequest\x1a*.nidmm_grpc.ConfigureCurrentSourceResponse\x12o\n\x16\x43onfigureCableCompType\x12).nidmm_grpc.ConfigureCableCompTypeRequest\x1a*.nidmm_grpc.ConfigureCableCompTypeResponse\x12i\n\x14PerformOpenCableComp\x12\'.nidmm_grpc.PerformOpenCableCompRequest\x1a(.nidmm_grpc.PerformOpenCableCompResponse\x12l\n\x15PerformShortCableComp\x12(.nidmm_grpc.PerformShortCableCompRequest\x1a).nidmm_grpc.PerformShortCableCompResponse\x12\x81\x01\n\x1c\x43onfigureOpenCableCompValues\x12/.nidmm_grpc.ConfigureOpenCableCompValuesRequest\x1a\x30.nidmm_grpc.ConfigureOpenCableCompValuesResponse\x12\x84\x01\n\x1d\x43onfigureShortCableCompValues\x12\x30.nidmm_grpc.ConfigureShortCableCompValuesRequest\x1a\x31.nidmm_grpc.ConfigureShortCableCompValuesResponse\x12\x81\x01\n\x1c\x43onfigureWaveformAcquisition\x12/.nidmm_grpc.ConfigureWaveformAcquisitionRequest\x1a\x30.nidmm_grpc.ConfigureWaveformAcquisitionResponse\x12x\n\x19\x43onfigureWaveformCoupling\x12,.nidmm_grpc.ConfigureWaveformCouplingRequest\x1a-.nidmm_grpc.ConfigureWaveformCouplingResponse\x12T\n\rFetchWaveform\x12 .nidmm_grpc.FetchWaveformRequest\x1a!.nidmm_grpc.FetchWaveformResponse\x12Q\n\x0cReadWaveform\x12\x1f.nidmm_grpc.ReadWaveformRequest\x1a .nidmm_grpc.ReadWaveformResponse\x12\x66\n\x13GetAttributeViInt32\x12&.nidmm_grpc.GetAttributeViInt32Request\x1a\'.nidmm_grpc.GetAttributeViInt32Response\x12\x66\n\x13SetAttributeViInt32\x12&.nidmm_grpc.SetAttributeViInt32Request\x1a\'.nidmm_grpc.SetAttributeViInt32Response\x12l\n\x15\x43heckAttributeViInt32\x12(.nidmm_grpc.CheckAttributeViInt32Request\x1a).nidmm_grpc.CheckAttributeViInt32Response\x12i\n\x14GetAttributeViReal64\x12\'.nidmm_grpc.GetAttributeViReal64Request\x1a(.nidmm_grpc.GetAttributeViReal64Response\x12i\n\x14SetAttributeViReal64\x12\'.nidmm_grpc.SetAttributeViReal64Request\x1a(.nidmm_grpc.SetAttributeViReal64Response\x12o\n\x16\x43heckAttributeViReal64\x12).nidmm_grpc.CheckAttributeViReal64Request\x1a*.nidmm_grpc.CheckAttributeViReal64Response\x12i\n\x14GetAttributeViString\x12\'.nidmm_grpc.GetAttributeViStringRequest\x1a(.nidmm_grpc.GetAttributeViStringResponse\x12i\n\x14SetAttributeViString\x12\'.nidmm_grpc.SetAttributeViStringRequest\x1a(.nidmm_grpc.SetAttributeViStringResponse\x12o\n\x16\x43heckAttributeViString\x12).nidmm_grpc.CheckAttributeViStringRequest\x1a*.nidmm_grpc.CheckAttributeViStringResponse\x12l\n\x15GetAttributeViSession\x12(.nidmm_grpc.GetAttributeViSessionRequest\x1a).nidmm_grpc.GetAttributeViSessionResponse\x12l\n\x15SetAttributeViSession\x12(.nidmm_grpc.SetAttributeViSessionRequest\x1a).nidmm_grpc.SetAttributeViSessionResponse\x12r\n\x17\x43heckAttributeViSession\x12*.nidmm_grpc.CheckAttributeViSessionRequest\x1a+.nidmm_grpc.CheckAttributeViSessionResponse\x12l\n\x15GetAttributeViBoolean\x12(.nidmm_grpc.GetAttributeViBooleanRequest\x1a).nidmm_grpc.GetAttributeViBooleanResponse\x12l\n\x15SetAttributeViBoolean\x12(.nidmm_grpc.SetAttributeViBooleanRequest\x1a).nidmm_grpc.SetAttributeViBooleanResponse\x12r\n\x17\x43heckAttributeViBoolean\x12*.nidmm_grpc.CheckAttributeViBooleanRequest\x1a+.nidmm_grpc.CheckAttributeViBooleanResponse\x12\x8d\x01\n ImportAttributeConfigurationFile\x12\x33.nidmm_grpc.ImportAttributeConfigurationFileRequest\x1a\x34.nidmm_grpc.ImportAttributeConfigurationFileResponse\x12\x8d\x01\n ExportAttributeConfigurationFile\x12\x33.nidmm_grpc.ExportAttributeConfigurationFileRequest\x1a\x34.nidmm_grpc.ExportAttributeConfigurationFileResponse\x12\x93\x01\n\"ImportAttributeConfigurationBuffer\x12\x35.nidmm_grpc.ImportAttributeConfigurationBufferRequest\x1a\x36.nidmm_grpc.ImportAttributeConfigurationBufferResponse\x12\x93\x01\n\"ExportAttributeConfigurationBuffer\x12\x35.nidmm_grpc.ExportAttributeConfigurationBufferRequest\x1a\x36.nidmm_grpc.ExportAttributeConfigurationBufferResponse\x12l\n\x15ResetInterchangeCheck\x12(.nidmm_grpc.ResetInterchangeCheckRequest\x1a).nidmm_grpc.ResetInterchangeCheckResponse\x12u\n\x18\x43learInterchangeWarnings\x12+.nidmm_grpc.ClearInterchangeWarningsRequest\x1a,.nidmm_grpc.ClearInterchangeWarningsResponse\x12W\n\x0eGetChannelName\x12!.nidmm_grpc.GetChannelNameRequest\x1a\".nidmm_grpc.GetChannelNameResponse\x12\x81\x01\n\x1cGetExtCalRecommendedInterval\x12/.nidmm_grpc.GetExtCalRecommendedIntervalRequest\x1a\x30.nidmm_grpc.GetExtCalRecommendedIntervalResponse\x12\x66\n\x13GetSelfCalSupported\x12&.nidmm_grpc.GetSelfCalSupportedRequest\x1a\'.nidmm_grpc.GetSelfCalSupportedResponse\x12`\n\x11GetCalDateAndTime\x12$.nidmm_grpc.GetCalDateAndTimeRequest\x1a%.nidmm_grpc.GetCalDateAndTimeResponse\x12W\n\x0eGetLastCalTemp\x12!.nidmm_grpc.GetLastCalTempRequest\x1a\".nidmm_grpc.GetLastCalTempResponse\x12K\n\nGetDevTemp\x12\x1d.nidmm_grpc.GetDevTempRequest\x1a\x1e.nidmm_grpc.GetDevTempResponse\x12r\n\x17\x43onfigureTransducerType\x12*.nidmm_grpc.ConfigureTransducerTypeRequest\x1a+.nidmm_grpc.ConfigureTransducerTypeResponse\x12l\n\x15\x43onfigureThermocouple\x12(.nidmm_grpc.ConfigureThermocoupleRequest\x1a).nidmm_grpc.ConfigureThermocoupleResponse\x12x\n\x19\x43onfigureFixedRefJunction\x12,.nidmm_grpc.ConfigureFixedRefJunctionRequest\x1a-.nidmm_grpc.ConfigureFixedRefJunctionResponse\x12]\n\x10\x43onfigureRTDType\x12#.nidmm_grpc.ConfigureRTDTypeRequest\x1a$.nidmm_grpc.ConfigureRTDTypeResponse\x12\x63\n\x12\x43onfigureRTDCustom\x12%.nidmm_grpc.ConfigureRTDCustomRequest\x1a&.nidmm_grpc.ConfigureRTDCustomResponse\x12r\n\x17\x43onfigureThermistorType\x12*.nidmm_grpc.ConfigureThermistorTypeRequest\x1a+.nidmm_grpc.ConfigureThermistorTypeResponse\x12x\n\x19\x43onfigureThermistorCustom\x12,.nidmm_grpc.ConfigureThermistorCustomRequest\x1a-.nidmm_grpc.ConfigureThermistorCustomResponse\x12r\n\x17InvalidateAllAttributes\x12*.nidmm_grpc.InvalidateAllAttributesRequest\x1a+.nidmm_grpc.InvalidateAllAttributesResponseB9\n\x0f\x63om.ni.grpc.dmmB\x05NiDmmP\x01\xaa\x02\x1cNationalInstruments.Grpc.Dmmb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidmm_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\017com.ni.grpc.dmmB\005NiDmmP\001\252\002\034NationalInstruments.Grpc.Dmm' + _NIDMMINT32ATTRIBUTEVALUES._options = None + _NIDMMINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _NIDMMREAL64ATTRIBUTEVALUES._options = None + _NIDMMREAL64ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NIDMMATTRIBUTE']._serialized_start=17041 + _globals['_NIDMMATTRIBUTE']._serialized_end=20507 + _globals['_FUNCTION']._serialized_start=20510 + _globals['_FUNCTION']._serialized_end=21081 + _globals['_TRIGGERSOURCE']._serialized_start=21084 + _globals['_TRIGGERSOURCE']._serialized_end=21696 + _globals['_SAMPLETRIGGER']._serialized_start=21699 + _globals['_SAMPLETRIGGER']._serialized_end=22350 + _globals['_TRIGGERSLOPE']._serialized_start=22352 + _globals['_TRIGGERSLOPE']._serialized_end=22442 + _globals['_SAMPLETRIGSLOPE']._serialized_start=22444 + _globals['_SAMPLETRIGSLOPE']._serialized_end=22545 + _globals['_POWERLINEFREQUENCIES']._serialized_start=22548 + _globals['_POWERLINEFREQUENCIES']._serialized_end=22704 + _globals['_APERTURETIMEUNITS']._serialized_start=22706 + _globals['_APERTURETIMEUNITS']._serialized_end=22821 + _globals['_COMPENSATEDOHMS']._serialized_start=22823 + _globals['_COMPENSATEDOHMS']._serialized_end=22945 + _globals['_CALIBRATIONTYPE']._serialized_start=22947 + _globals['_CALIBRATIONTYPE']._serialized_end=23056 + _globals['_THERMOCOUPLEREFERENCEJUNCTIONTYPE']._serialized_start=23059 + _globals['_THERMOCOUPLEREFERENCEJUNCTIONTYPE']._serialized_end=23220 + _globals['_THERMOCOUPLETYPE']._serialized_start=23223 + _globals['_THERMOCOUPLETYPE']._serialized_end=23620 + _globals['_RTDTYPE']._serialized_start=23623 + _globals['_RTDTYPE']._serialized_end=23912 + _globals['_ACQUISITIONSTATUS']._serialized_start=23915 + _globals['_ACQUISITIONSTATUS']._serialized_end=24207 + _globals['_APERTURETIME']._serialized_start=24210 + _globals['_APERTURETIME']._serialized_end=24563 + _globals['_CONTROLCOMMIT']._serialized_start=24565 + _globals['_CONTROLCOMMIT']._serialized_end=24625 + _globals['_FREQUENCYVOLTAGERANGE']._serialized_start=24628 + _globals['_FREQUENCYVOLTAGERANGE']._serialized_end=24817 + _globals['_SAMPLECOUNT']._serialized_start=24819 + _globals['_SAMPLECOUNT']._serialized_end=24882 + _globals['_SAMPLEINTERVAL']._serialized_start=24884 + _globals['_SAMPLEINTERVAL']._serialized_end=24984 + _globals['_TIMELIMIT']._serialized_start=24986 + _globals['_TIMELIMIT']._serialized_end=25076 + _globals['_TRIGGERCOUNT']._serialized_start=25078 + _globals['_TRIGGERCOUNT']._serialized_end=25141 + _globals['_TRIGGERDELAYS']._serialized_start=25144 + _globals['_TRIGGERDELAYS']._serialized_end=25298 + _globals['_NIDMMINT32ATTRIBUTEVALUES']._serialized_start=25301 + _globals['_NIDMMINT32ATTRIBUTEVALUES']._serialized_end=31271 + _globals['_NIDMMREAL64ATTRIBUTEVALUES']._serialized_start=31274 + _globals['_NIDMMREAL64ATTRIBUTEVALUES']._serialized_end=32342 + _globals['_NIDMMREAL64ATTRIBUTEVALUESMAPPED']._serialized_start=32345 + _globals['_NIDMMREAL64ATTRIBUTEVALUESMAPPED']._serialized_end=32773 + _globals['_INITREQUEST']._serialized_start=43 + _globals['_INITREQUEST']._serialized_end=220 + _globals['_INITRESPONSE']._serialized_start=222 + _globals['_INITRESPONSE']._serialized_end=348 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=351 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=562 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=565 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=702 + _globals['_CLOSEREQUEST']._serialized_start=704 + _globals['_CLOSEREQUEST']._serialized_end=754 + _globals['_CLOSERESPONSE']._serialized_start=756 + _globals['_CLOSERESPONSE']._serialized_end=787 + _globals['_GETERRORREQUEST']._serialized_start=789 + _globals['_GETERRORREQUEST']._serialized_end=842 + _globals['_GETERRORRESPONSE']._serialized_start=844 + _globals['_GETERRORRESPONSE']._serialized_end=919 + _globals['_GETERRORMESSAGEREQUEST']._serialized_start=921 + _globals['_GETERRORMESSAGEREQUEST']._serialized_end=1001 + _globals['_GETERRORMESSAGERESPONSE']._serialized_start=1003 + _globals['_GETERRORMESSAGERESPONSE']._serialized_end=1067 + _globals['_CLEARERRORREQUEST']._serialized_start=1069 + _globals['_CLEARERRORREQUEST']._serialized_end=1124 + _globals['_CLEARERRORRESPONSE']._serialized_start=1126 + _globals['_CLEARERRORRESPONSE']._serialized_end=1162 + _globals['_RESETREQUEST']._serialized_start=1164 + _globals['_RESETREQUEST']._serialized_end=1214 + _globals['_RESETRESPONSE']._serialized_start=1216 + _globals['_RESETRESPONSE']._serialized_end=1247 + _globals['_SELFTESTREQUEST']._serialized_start=1249 + _globals['_SELFTESTREQUEST']._serialized_end=1302 + _globals['_SELFTESTRESPONSE']._serialized_start=1304 + _globals['_SELFTESTRESPONSE']._serialized_end=1391 + _globals['_SELFCALREQUEST']._serialized_start=1393 + _globals['_SELFCALREQUEST']._serialized_end=1445 + _globals['_SELFCALRESPONSE']._serialized_start=1447 + _globals['_SELFCALRESPONSE']._serialized_end=1480 + _globals['_REVISIONQUERYREQUEST']._serialized_start=1482 + _globals['_REVISIONQUERYREQUEST']._serialized_end=1540 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=1542 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=1644 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=1646 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=1708 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=1710 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=1753 + _globals['_DISABLEREQUEST']._serialized_start=1755 + _globals['_DISABLEREQUEST']._serialized_end=1807 + _globals['_DISABLERESPONSE']._serialized_start=1809 + _globals['_DISABLERESPONSE']._serialized_end=1842 + _globals['_GETMEASUREMENTPERIODREQUEST']._serialized_start=1844 + _globals['_GETMEASUREMENTPERIODREQUEST']._serialized_end=1909 + _globals['_GETMEASUREMENTPERIODRESPONSE']._serialized_start=1911 + _globals['_GETMEASUREMENTPERIODRESPONSE']._serialized_end=1973 + _globals['_CONFIGURETRIGGERREQUEST']._serialized_start=1976 + _globals['_CONFIGURETRIGGERREQUEST']._serialized_end=2246 + _globals['_CONFIGURETRIGGERRESPONSE']._serialized_start=2248 + _globals['_CONFIGURETRIGGERRESPONSE']._serialized_end=2290 + _globals['_READREQUEST']._serialized_start=2293 + _globals['_READREQUEST']._serialized_end=2438 + _globals['_READRESPONSE']._serialized_start=2440 + _globals['_READRESPONSE']._serialized_end=2487 + _globals['_FETCHREQUEST']._serialized_start=2490 + _globals['_FETCHREQUEST']._serialized_end=2636 + _globals['_FETCHRESPONSE']._serialized_start=2638 + _globals['_FETCHRESPONSE']._serialized_end=2686 + _globals['_ABORTREQUEST']._serialized_start=2688 + _globals['_ABORTREQUEST']._serialized_end=2738 + _globals['_ABORTRESPONSE']._serialized_start=2740 + _globals['_ABORTRESPONSE']._serialized_end=2771 + _globals['_INITIATEREQUEST']._serialized_start=2773 + _globals['_INITIATEREQUEST']._serialized_end=2826 + _globals['_INITIATERESPONSE']._serialized_start=2828 + _globals['_INITIATERESPONSE']._serialized_end=2862 + _globals['_ISOVERRANGEREQUEST']._serialized_start=2864 + _globals['_ISOVERRANGEREQUEST']._serialized_end=2947 + _globals['_ISOVERRANGERESPONSE']._serialized_start=2949 + _globals['_ISOVERRANGERESPONSE']._serialized_end=3009 + _globals['_ISUNDERRANGEREQUEST']._serialized_start=3011 + _globals['_ISUNDERRANGEREQUEST']._serialized_end=3095 + _globals['_ISUNDERRANGERESPONSE']._serialized_start=3097 + _globals['_ISUNDERRANGERESPONSE']._serialized_end=3159 + _globals['_CONFIGUREACBANDWIDTHREQUEST']._serialized_start=3162 + _globals['_CONFIGUREACBANDWIDTHREQUEST']._serialized_end=3293 + _globals['_CONFIGUREACBANDWIDTHRESPONSE']._serialized_start=3295 + _globals['_CONFIGUREACBANDWIDTHRESPONSE']._serialized_end=3341 + _globals['_CONFIGUREFREQUENCYVOLTAGERANGEREQUEST']._serialized_start=3344 + _globals['_CONFIGUREFREQUENCYVOLTAGERANGEREQUEST']._serialized_end=3530 + _globals['_CONFIGUREFREQUENCYVOLTAGERANGERESPONSE']._serialized_start=3532 + _globals['_CONFIGUREFREQUENCYVOLTAGERANGERESPONSE']._serialized_end=3588 + _globals['_CONFIGUREMEASCOMPLETEDESTREQUEST']._serialized_start=3590 + _globals['_CONFIGUREMEASCOMPLETEDESTREQUEST']._serialized_end=3695 + _globals['_CONFIGUREMEASCOMPLETEDESTRESPONSE']._serialized_start=3697 + _globals['_CONFIGUREMEASCOMPLETEDESTRESPONSE']._serialized_end=3748 + _globals['_CONFIGUREMULTIPOINTREQUEST']._serialized_start=3751 + _globals['_CONFIGUREMULTIPOINTREQUEST']._serialized_end=4231 + _globals['_CONFIGUREMULTIPOINTRESPONSE']._serialized_start=4233 + _globals['_CONFIGUREMULTIPOINTRESPONSE']._serialized_end=4278 + _globals['_READMULTIPOINTREQUEST']._serialized_start=4281 + _globals['_READMULTIPOINTREQUEST']._serialized_end=4456 + _globals['_READMULTIPOINTRESPONSE']._serialized_start=4458 + _globals['_READMULTIPOINTRESPONSE']._serialized_end=4554 + _globals['_FETCHMULTIPOINTREQUEST']._serialized_start=4557 + _globals['_FETCHMULTIPOINTREQUEST']._serialized_end=4733 + _globals['_FETCHMULTIPOINTRESPONSE']._serialized_start=4735 + _globals['_FETCHMULTIPOINTRESPONSE']._serialized_end=4832 + _globals['_CONFIGURETRIGGERSLOPEREQUEST']._serialized_start=4835 + _globals['_CONFIGURETRIGGERSLOPEREQUEST']._serialized_end=5003 + _globals['_CONFIGURETRIGGERSLOPERESPONSE']._serialized_start=5005 + _globals['_CONFIGURETRIGGERSLOPERESPONSE']._serialized_end=5052 + _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_start=5054 + _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_end=5118 + _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_start=5120 + _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_end=5165 + _globals['_GETAPERTURETIMEINFOREQUEST']._serialized_start=5167 + _globals['_GETAPERTURETIMEINFOREQUEST']._serialized_end=5231 + _globals['_GETAPERTURETIMEINFORESPONSE']._serialized_start=5234 + _globals['_GETAPERTURETIMEINFORESPONSE']._serialized_end=5448 + _globals['_GETAUTORANGEVALUEREQUEST']._serialized_start=5450 + _globals['_GETAUTORANGEVALUEREQUEST']._serialized_end=5512 + _globals['_GETAUTORANGEVALUERESPONSE']._serialized_start=5514 + _globals['_GETAUTORANGEVALUERESPONSE']._serialized_end=5579 + _globals['_CONFIGUREAUTOZEROMODEREQUEST']._serialized_start=5581 + _globals['_CONFIGUREAUTOZEROMODEREQUEST']._serialized_end=5671 + _globals['_CONFIGUREAUTOZEROMODERESPONSE']._serialized_start=5673 + _globals['_CONFIGUREAUTOZEROMODERESPONSE']._serialized_end=5720 + _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_start=5723 + _globals['_CONFIGUREPOWERLINEFREQUENCYREQUEST']._serialized_end=5935 + _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_start=5937 + _globals['_CONFIGUREPOWERLINEFREQUENCYRESPONSE']._serialized_end=5990 + _globals['_CONFIGUREMEASUREMENTDIGITSREQUEST']._serialized_start=5993 + _globals['_CONFIGUREMEASUREMENTDIGITSREQUEST']._serialized_end=6225 + _globals['_CONFIGUREMEASUREMENTDIGITSRESPONSE']._serialized_start=6227 + _globals['_CONFIGUREMEASUREMENTDIGITSRESPONSE']._serialized_end=6279 + _globals['_CONFIGUREMEASUREMENTABSOLUTEREQUEST']._serialized_start=6282 + _globals['_CONFIGUREMEASUREMENTABSOLUTEREQUEST']._serialized_end=6518 + _globals['_CONFIGUREMEASUREMENTABSOLUTERESPONSE']._serialized_start=6520 + _globals['_CONFIGUREMEASUREMENTABSOLUTERESPONSE']._serialized_end=6574 + _globals['_CONFIGUREMEASCOMPLETESLOPEREQUEST']._serialized_start=6576 + _globals['_CONFIGUREMEASCOMPLETESLOPEREQUEST']._serialized_end=6676 + _globals['_CONFIGUREMEASCOMPLETESLOPERESPONSE']._serialized_start=6678 + _globals['_CONFIGUREMEASCOMPLETESLOPERESPONSE']._serialized_end=6730 + _globals['_CONFIGURESAMPLETRIGGERSLOPEREQUEST']._serialized_start=6733 + _globals['_CONFIGURESAMPLETRIGGERSLOPEREQUEST']._serialized_end=6931 + _globals['_CONFIGURESAMPLETRIGGERSLOPERESPONSE']._serialized_start=6933 + _globals['_CONFIGURESAMPLETRIGGERSLOPERESPONSE']._serialized_end=6986 + _globals['_READSTATUSREQUEST']._serialized_start=6988 + _globals['_READSTATUSREQUEST']._serialized_end=7043 + _globals['_READSTATUSRESPONSE']._serialized_start=7046 + _globals['_READSTATUSRESPONSE']._serialized_end=7202 + _globals['_CONTROLREQUEST']._serialized_start=7205 + _globals['_CONTROLREQUEST']._serialized_end=7363 + _globals['_CONTROLRESPONSE']._serialized_start=7365 + _globals['_CONTROLRESPONSE']._serialized_end=7398 + _globals['_CONFIGUREADCCALIBRATIONREQUEST']._serialized_start=7400 + _globals['_CONFIGUREADCCALIBRATIONREQUEST']._serialized_end=7493 + _globals['_CONFIGUREADCCALIBRATIONRESPONSE']._serialized_start=7495 + _globals['_CONFIGUREADCCALIBRATIONRESPONSE']._serialized_end=7544 + _globals['_CONFIGUREOFFSETCOMPOHMSREQUEST']._serialized_start=7547 + _globals['_CONFIGUREOFFSETCOMPOHMSREQUEST']._serialized_end=7729 + _globals['_CONFIGUREOFFSETCOMPOHMSRESPONSE']._serialized_start=7731 + _globals['_CONFIGUREOFFSETCOMPOHMSRESPONSE']._serialized_end=7780 + _globals['_CONFIGURECURRENTSOURCEREQUEST']._serialized_start=7782 + _globals['_CONFIGURECURRENTSOURCEREQUEST']._serialized_end=7873 + _globals['_CONFIGURECURRENTSOURCERESPONSE']._serialized_start=7875 + _globals['_CONFIGURECURRENTSOURCERESPONSE']._serialized_end=7923 + _globals['_CONFIGURECABLECOMPTYPEREQUEST']._serialized_start=7925 + _globals['_CONFIGURECABLECOMPTYPEREQUEST']._serialized_end=8017 + _globals['_CONFIGURECABLECOMPTYPERESPONSE']._serialized_start=8019 + _globals['_CONFIGURECABLECOMPTYPERESPONSE']._serialized_end=8067 + _globals['_PERFORMOPENCABLECOMPREQUEST']._serialized_start=8069 + _globals['_PERFORMOPENCABLECOMPREQUEST']._serialized_end=8134 + _globals['_PERFORMOPENCABLECOMPRESPONSE']._serialized_start=8136 + _globals['_PERFORMOPENCABLECOMPRESPONSE']._serialized_end=8224 + _globals['_PERFORMSHORTCABLECOMPREQUEST']._serialized_start=8226 + _globals['_PERFORMSHORTCABLECOMPREQUEST']._serialized_end=8292 + _globals['_PERFORMSHORTCABLECOMPRESPONSE']._serialized_start=8294 + _globals['_PERFORMSHORTCABLECOMPRESPONSE']._serialized_end=8380 + _globals['_CONFIGUREOPENCABLECOMPVALUESREQUEST']._serialized_start=8382 + _globals['_CONFIGUREOPENCABLECOMPVALUESREQUEST']._serialized_end=8497 + _globals['_CONFIGUREOPENCABLECOMPVALUESRESPONSE']._serialized_start=8499 + _globals['_CONFIGUREOPENCABLECOMPVALUESRESPONSE']._serialized_end=8553 + _globals['_CONFIGURESHORTCABLECOMPVALUESREQUEST']._serialized_start=8555 + _globals['_CONFIGURESHORTCABLECOMPVALUESREQUEST']._serialized_end=8668 + _globals['_CONFIGURESHORTCABLECOMPVALUESRESPONSE']._serialized_start=8670 + _globals['_CONFIGURESHORTCABLECOMPVALUESRESPONSE']._serialized_end=8725 + _globals['_CONFIGUREWAVEFORMACQUISITIONREQUEST']._serialized_start=8728 + _globals['_CONFIGUREWAVEFORMACQUISITIONREQUEST']._serialized_end=8974 + _globals['_CONFIGUREWAVEFORMACQUISITIONRESPONSE']._serialized_start=8976 + _globals['_CONFIGUREWAVEFORMACQUISITIONRESPONSE']._serialized_end=9030 + _globals['_CONFIGUREWAVEFORMCOUPLINGREQUEST']._serialized_start=9032 + _globals['_CONFIGUREWAVEFORMCOUPLINGREQUEST']._serialized_end=9129 + _globals['_CONFIGUREWAVEFORMCOUPLINGRESPONSE']._serialized_start=9131 + _globals['_CONFIGUREWAVEFORMCOUPLINGRESPONSE']._serialized_end=9182 + _globals['_FETCHWAVEFORMREQUEST']._serialized_start=9185 + _globals['_FETCHWAVEFORMREQUEST']._serialized_end=9359 + _globals['_FETCHWAVEFORMRESPONSE']._serialized_start=9361 + _globals['_FETCHWAVEFORMRESPONSE']._serialized_end=9457 + _globals['_READWAVEFORMREQUEST']._serialized_start=9460 + _globals['_READWAVEFORMREQUEST']._serialized_end=9633 + _globals['_READWAVEFORMRESPONSE']._serialized_start=9635 + _globals['_READWAVEFORMRESPONSE']._serialized_end=9730 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=9733 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=9869 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=9871 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=9941 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=9944 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=10201 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=10203 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=10248 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=10251 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=10510 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=10512 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=10559 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=10562 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=10699 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=10701 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=10772 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=10775 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=11114 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=11116 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=11162 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=11165 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=11506 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=11508 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=11556 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=11559 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=11696 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=11698 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=11769 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=11772 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=11938 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=11940 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=11986 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=11989 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=12157 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=12159 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=12207 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=12210 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=12348 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=12350 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=12446 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=12449 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=12636 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=12638 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=12685 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=12688 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=12877 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=12879 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=12928 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=12931 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=13069 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=13071 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=13143 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=13146 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=13309 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=13311 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=13358 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=13361 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=13526 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=13528 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=13577 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=13579 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=13675 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=13677 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=13735 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=13737 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=13833 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=13835 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=13893 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=13895 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=13997 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=13999 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=14059 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=14061 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=14140 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=14142 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=14225 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=14227 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=14293 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=14295 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=14342 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=14344 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=14413 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=14415 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=14465 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=14467 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=14541 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=14543 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=14607 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=14609 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=14682 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=14684 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=14754 + _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_start=14756 + _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_end=14820 + _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_start=14822 + _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_end=14895 + _globals['_GETCALDATEANDTIMEREQUEST']._serialized_start=14898 + _globals['_GETCALDATEANDTIMEREQUEST']._serialized_end=15050 + _globals['_GETCALDATEANDTIMERESPONSE']._serialized_start=15052 + _globals['_GETCALDATEANDTIMERESPONSE']._serialized_end=15167 + _globals['_GETLASTCALTEMPREQUEST']._serialized_start=15170 + _globals['_GETLASTCALTEMPREQUEST']._serialized_end=15319 + _globals['_GETLASTCALTEMPRESPONSE']._serialized_start=15321 + _globals['_GETLASTCALTEMPRESPONSE']._serialized_end=15382 + _globals['_GETDEVTEMPREQUEST']._serialized_start=15384 + _globals['_GETDEVTEMPREQUEST']._serialized_end=15456 + _globals['_GETDEVTEMPRESPONSE']._serialized_start=15458 + _globals['_GETDEVTEMPRESPONSE']._serialized_end=15515 + _globals['_CONFIGURETRANSDUCERTYPEREQUEST']._serialized_start=15517 + _globals['_CONFIGURETRANSDUCERTYPEREQUEST']._serialized_end=15610 + _globals['_CONFIGURETRANSDUCERTYPERESPONSE']._serialized_start=15612 + _globals['_CONFIGURETRANSDUCERTYPERESPONSE']._serialized_end=15661 + _globals['_CONFIGURETHERMOCOUPLEREQUEST']._serialized_start=15664 + _globals['_CONFIGURETHERMOCOUPLEREQUEST']._serialized_end=16001 + _globals['_CONFIGURETHERMOCOUPLERESPONSE']._serialized_start=16003 + _globals['_CONFIGURETHERMOCOUPLERESPONSE']._serialized_end=16050 + _globals['_CONFIGUREFIXEDREFJUNCTIONREQUEST']._serialized_start=16052 + _globals['_CONFIGUREFIXEDREFJUNCTIONREQUEST']._serialized_end=16156 + _globals['_CONFIGUREFIXEDREFJUNCTIONRESPONSE']._serialized_start=16158 + _globals['_CONFIGUREFIXEDREFJUNCTIONRESPONSE']._serialized_end=16209 + _globals['_CONFIGURERTDTYPEREQUEST']._serialized_start=16212 + _globals['_CONFIGURERTDTYPEREQUEST']._serialized_end=16379 + _globals['_CONFIGURERTDTYPERESPONSE']._serialized_start=16381 + _globals['_CONFIGURERTDTYPERESPONSE']._serialized_end=16423 + _globals['_CONFIGURERTDCUSTOMREQUEST']._serialized_start=16425 + _globals['_CONFIGURERTDCUSTOMREQUEST']._serialized_end=16533 + _globals['_CONFIGURERTDCUSTOMRESPONSE']._serialized_start=16535 + _globals['_CONFIGURERTDCUSTOMRESPONSE']._serialized_end=16579 + _globals['_CONFIGURETHERMISTORTYPEREQUEST']._serialized_start=16581 + _globals['_CONFIGURETHERMISTORTYPEREQUEST']._serialized_end=16674 + _globals['_CONFIGURETHERMISTORTYPERESPONSE']._serialized_start=16676 + _globals['_CONFIGURETHERMISTORTYPERESPONSE']._serialized_end=16725 + _globals['_CONFIGURETHERMISTORCUSTOMREQUEST']._serialized_start=16728 + _globals['_CONFIGURETHERMISTORCUSTOMREQUEST']._serialized_end=16864 + _globals['_CONFIGURETHERMISTORCUSTOMRESPONSE']._serialized_start=16866 + _globals['_CONFIGURETHERMISTORCUSTOMRESPONSE']._serialized_end=16917 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=16919 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=16987 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=16989 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=17038 + _globals['_NIDMM']._serialized_start=32776 + _globals['_NIDMM']._serialized_end=41582 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nidmm/nidmm/nidmm_pb2_grpc.py b/generated/nidmm/nidmm/nidmm_pb2_grpc.py new file mode 100644 index 0000000000..cbe353554c --- /dev/null +++ b/generated/nidmm/nidmm/nidmm_pb2_grpc.py @@ -0,0 +1,2838 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nidmm_pb2 as nidmm__pb2 + + +class NiDmmStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Init = channel.unary_unary( + '/nidmm_grpc.NiDmm/Init', + request_serializer=nidmm__pb2.InitRequest.SerializeToString, + response_deserializer=nidmm__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/nidmm_grpc.NiDmm/InitWithOptions', + request_serializer=nidmm__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=nidmm__pb2.InitWithOptionsResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nidmm_grpc.NiDmm/Close', + request_serializer=nidmm__pb2.CloseRequest.SerializeToString, + response_deserializer=nidmm__pb2.CloseResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetError', + request_serializer=nidmm__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetErrorResponse.FromString, + ) + self.GetErrorMessage = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetErrorMessage', + request_serializer=nidmm__pb2.GetErrorMessageRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetErrorMessageResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/nidmm_grpc.NiDmm/ClearError', + request_serializer=nidmm__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=nidmm__pb2.ClearErrorResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/nidmm_grpc.NiDmm/Reset', + request_serializer=nidmm__pb2.ResetRequest.SerializeToString, + response_deserializer=nidmm__pb2.ResetResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/nidmm_grpc.NiDmm/SelfTest', + request_serializer=nidmm__pb2.SelfTestRequest.SerializeToString, + response_deserializer=nidmm__pb2.SelfTestResponse.FromString, + ) + self.SelfCal = channel.unary_unary( + '/nidmm_grpc.NiDmm/SelfCal', + request_serializer=nidmm__pb2.SelfCalRequest.SerializeToString, + response_deserializer=nidmm__pb2.SelfCalResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/nidmm_grpc.NiDmm/RevisionQuery', + request_serializer=nidmm__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=nidmm__pb2.RevisionQueryResponse.FromString, + ) + self.ResetWithDefaults = channel.unary_unary( + '/nidmm_grpc.NiDmm/ResetWithDefaults', + request_serializer=nidmm__pb2.ResetWithDefaultsRequest.SerializeToString, + response_deserializer=nidmm__pb2.ResetWithDefaultsResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/nidmm_grpc.NiDmm/Disable', + request_serializer=nidmm__pb2.DisableRequest.SerializeToString, + response_deserializer=nidmm__pb2.DisableResponse.FromString, + ) + self.GetMeasurementPeriod = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetMeasurementPeriod', + request_serializer=nidmm__pb2.GetMeasurementPeriodRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetMeasurementPeriodResponse.FromString, + ) + self.ConfigureTrigger = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureTrigger', + request_serializer=nidmm__pb2.ConfigureTriggerRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureTriggerResponse.FromString, + ) + self.Read = channel.unary_unary( + '/nidmm_grpc.NiDmm/Read', + request_serializer=nidmm__pb2.ReadRequest.SerializeToString, + response_deserializer=nidmm__pb2.ReadResponse.FromString, + ) + self.Fetch = channel.unary_unary( + '/nidmm_grpc.NiDmm/Fetch', + request_serializer=nidmm__pb2.FetchRequest.SerializeToString, + response_deserializer=nidmm__pb2.FetchResponse.FromString, + ) + self.Abort = channel.unary_unary( + '/nidmm_grpc.NiDmm/Abort', + request_serializer=nidmm__pb2.AbortRequest.SerializeToString, + response_deserializer=nidmm__pb2.AbortResponse.FromString, + ) + self.Initiate = channel.unary_unary( + '/nidmm_grpc.NiDmm/Initiate', + request_serializer=nidmm__pb2.InitiateRequest.SerializeToString, + response_deserializer=nidmm__pb2.InitiateResponse.FromString, + ) + self.IsOverRange = channel.unary_unary( + '/nidmm_grpc.NiDmm/IsOverRange', + request_serializer=nidmm__pb2.IsOverRangeRequest.SerializeToString, + response_deserializer=nidmm__pb2.IsOverRangeResponse.FromString, + ) + self.IsUnderRange = channel.unary_unary( + '/nidmm_grpc.NiDmm/IsUnderRange', + request_serializer=nidmm__pb2.IsUnderRangeRequest.SerializeToString, + response_deserializer=nidmm__pb2.IsUnderRangeResponse.FromString, + ) + self.ConfigureACBandwidth = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureACBandwidth', + request_serializer=nidmm__pb2.ConfigureACBandwidthRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureACBandwidthResponse.FromString, + ) + self.ConfigureFrequencyVoltageRange = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureFrequencyVoltageRange', + request_serializer=nidmm__pb2.ConfigureFrequencyVoltageRangeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureFrequencyVoltageRangeResponse.FromString, + ) + self.ConfigureMeasCompleteDest = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureMeasCompleteDest', + request_serializer=nidmm__pb2.ConfigureMeasCompleteDestRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureMeasCompleteDestResponse.FromString, + ) + self.ConfigureMultiPoint = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureMultiPoint', + request_serializer=nidmm__pb2.ConfigureMultiPointRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureMultiPointResponse.FromString, + ) + self.ReadMultiPoint = channel.unary_unary( + '/nidmm_grpc.NiDmm/ReadMultiPoint', + request_serializer=nidmm__pb2.ReadMultiPointRequest.SerializeToString, + response_deserializer=nidmm__pb2.ReadMultiPointResponse.FromString, + ) + self.FetchMultiPoint = channel.unary_unary( + '/nidmm_grpc.NiDmm/FetchMultiPoint', + request_serializer=nidmm__pb2.FetchMultiPointRequest.SerializeToString, + response_deserializer=nidmm__pb2.FetchMultiPointResponse.FromString, + ) + self.ConfigureTriggerSlope = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureTriggerSlope', + request_serializer=nidmm__pb2.ConfigureTriggerSlopeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureTriggerSlopeResponse.FromString, + ) + self.SendSoftwareTrigger = channel.unary_unary( + '/nidmm_grpc.NiDmm/SendSoftwareTrigger', + request_serializer=nidmm__pb2.SendSoftwareTriggerRequest.SerializeToString, + response_deserializer=nidmm__pb2.SendSoftwareTriggerResponse.FromString, + ) + self.GetApertureTimeInfo = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetApertureTimeInfo', + request_serializer=nidmm__pb2.GetApertureTimeInfoRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetApertureTimeInfoResponse.FromString, + ) + self.GetAutoRangeValue = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetAutoRangeValue', + request_serializer=nidmm__pb2.GetAutoRangeValueRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetAutoRangeValueResponse.FromString, + ) + self.ConfigureAutoZeroMode = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureAutoZeroMode', + request_serializer=nidmm__pb2.ConfigureAutoZeroModeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureAutoZeroModeResponse.FromString, + ) + self.ConfigurePowerLineFrequency = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigurePowerLineFrequency', + request_serializer=nidmm__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigurePowerLineFrequencyResponse.FromString, + ) + self.ConfigureMeasurementDigits = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureMeasurementDigits', + request_serializer=nidmm__pb2.ConfigureMeasurementDigitsRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureMeasurementDigitsResponse.FromString, + ) + self.ConfigureMeasurementAbsolute = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureMeasurementAbsolute', + request_serializer=nidmm__pb2.ConfigureMeasurementAbsoluteRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureMeasurementAbsoluteResponse.FromString, + ) + self.ConfigureMeasCompleteSlope = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureMeasCompleteSlope', + request_serializer=nidmm__pb2.ConfigureMeasCompleteSlopeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureMeasCompleteSlopeResponse.FromString, + ) + self.ConfigureSampleTriggerSlope = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureSampleTriggerSlope', + request_serializer=nidmm__pb2.ConfigureSampleTriggerSlopeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureSampleTriggerSlopeResponse.FromString, + ) + self.ReadStatus = channel.unary_unary( + '/nidmm_grpc.NiDmm/ReadStatus', + request_serializer=nidmm__pb2.ReadStatusRequest.SerializeToString, + response_deserializer=nidmm__pb2.ReadStatusResponse.FromString, + ) + self.Control = channel.unary_unary( + '/nidmm_grpc.NiDmm/Control', + request_serializer=nidmm__pb2.ControlRequest.SerializeToString, + response_deserializer=nidmm__pb2.ControlResponse.FromString, + ) + self.ConfigureADCCalibration = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureADCCalibration', + request_serializer=nidmm__pb2.ConfigureADCCalibrationRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureADCCalibrationResponse.FromString, + ) + self.ConfigureOffsetCompOhms = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureOffsetCompOhms', + request_serializer=nidmm__pb2.ConfigureOffsetCompOhmsRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureOffsetCompOhmsResponse.FromString, + ) + self.ConfigureCurrentSource = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureCurrentSource', + request_serializer=nidmm__pb2.ConfigureCurrentSourceRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureCurrentSourceResponse.FromString, + ) + self.ConfigureCableCompType = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureCableCompType', + request_serializer=nidmm__pb2.ConfigureCableCompTypeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureCableCompTypeResponse.FromString, + ) + self.PerformOpenCableComp = channel.unary_unary( + '/nidmm_grpc.NiDmm/PerformOpenCableComp', + request_serializer=nidmm__pb2.PerformOpenCableCompRequest.SerializeToString, + response_deserializer=nidmm__pb2.PerformOpenCableCompResponse.FromString, + ) + self.PerformShortCableComp = channel.unary_unary( + '/nidmm_grpc.NiDmm/PerformShortCableComp', + request_serializer=nidmm__pb2.PerformShortCableCompRequest.SerializeToString, + response_deserializer=nidmm__pb2.PerformShortCableCompResponse.FromString, + ) + self.ConfigureOpenCableCompValues = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureOpenCableCompValues', + request_serializer=nidmm__pb2.ConfigureOpenCableCompValuesRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureOpenCableCompValuesResponse.FromString, + ) + self.ConfigureShortCableCompValues = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureShortCableCompValues', + request_serializer=nidmm__pb2.ConfigureShortCableCompValuesRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureShortCableCompValuesResponse.FromString, + ) + self.ConfigureWaveformAcquisition = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureWaveformAcquisition', + request_serializer=nidmm__pb2.ConfigureWaveformAcquisitionRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureWaveformAcquisitionResponse.FromString, + ) + self.ConfigureWaveformCoupling = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureWaveformCoupling', + request_serializer=nidmm__pb2.ConfigureWaveformCouplingRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureWaveformCouplingResponse.FromString, + ) + self.FetchWaveform = channel.unary_unary( + '/nidmm_grpc.NiDmm/FetchWaveform', + request_serializer=nidmm__pb2.FetchWaveformRequest.SerializeToString, + response_deserializer=nidmm__pb2.FetchWaveformResponse.FromString, + ) + self.ReadWaveform = channel.unary_unary( + '/nidmm_grpc.NiDmm/ReadWaveform', + request_serializer=nidmm__pb2.ReadWaveformRequest.SerializeToString, + response_deserializer=nidmm__pb2.ReadWaveformResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetAttributeViInt32', + request_serializer=nidmm__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nidmm__pb2.GetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nidmm_grpc.NiDmm/SetAttributeViInt32', + request_serializer=nidmm__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nidmm__pb2.SetAttributeViInt32Response.FromString, + ) + self.CheckAttributeViInt32 = channel.unary_unary( + '/nidmm_grpc.NiDmm/CheckAttributeViInt32', + request_serializer=nidmm__pb2.CheckAttributeViInt32Request.SerializeToString, + response_deserializer=nidmm__pb2.CheckAttributeViInt32Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetAttributeViReal64', + request_serializer=nidmm__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nidmm__pb2.GetAttributeViReal64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nidmm_grpc.NiDmm/SetAttributeViReal64', + request_serializer=nidmm__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nidmm__pb2.SetAttributeViReal64Response.FromString, + ) + self.CheckAttributeViReal64 = channel.unary_unary( + '/nidmm_grpc.NiDmm/CheckAttributeViReal64', + request_serializer=nidmm__pb2.CheckAttributeViReal64Request.SerializeToString, + response_deserializer=nidmm__pb2.CheckAttributeViReal64Response.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetAttributeViString', + request_serializer=nidmm__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetAttributeViStringResponse.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nidmm_grpc.NiDmm/SetAttributeViString', + request_serializer=nidmm__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nidmm__pb2.SetAttributeViStringResponse.FromString, + ) + self.CheckAttributeViString = channel.unary_unary( + '/nidmm_grpc.NiDmm/CheckAttributeViString', + request_serializer=nidmm__pb2.CheckAttributeViStringRequest.SerializeToString, + response_deserializer=nidmm__pb2.CheckAttributeViStringResponse.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetAttributeViSession', + request_serializer=nidmm__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/nidmm_grpc.NiDmm/SetAttributeViSession', + request_serializer=nidmm__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=nidmm__pb2.SetAttributeViSessionResponse.FromString, + ) + self.CheckAttributeViSession = channel.unary_unary( + '/nidmm_grpc.NiDmm/CheckAttributeViSession', + request_serializer=nidmm__pb2.CheckAttributeViSessionRequest.SerializeToString, + response_deserializer=nidmm__pb2.CheckAttributeViSessionResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetAttributeViBoolean', + request_serializer=nidmm__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nidmm_grpc.NiDmm/SetAttributeViBoolean', + request_serializer=nidmm__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidmm__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.CheckAttributeViBoolean = channel.unary_unary( + '/nidmm_grpc.NiDmm/CheckAttributeViBoolean', + request_serializer=nidmm__pb2.CheckAttributeViBooleanRequest.SerializeToString, + response_deserializer=nidmm__pb2.CheckAttributeViBooleanResponse.FromString, + ) + self.ImportAttributeConfigurationFile = channel.unary_unary( + '/nidmm_grpc.NiDmm/ImportAttributeConfigurationFile', + request_serializer=nidmm__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=nidmm__pb2.ImportAttributeConfigurationFileResponse.FromString, + ) + self.ExportAttributeConfigurationFile = channel.unary_unary( + '/nidmm_grpc.NiDmm/ExportAttributeConfigurationFile', + request_serializer=nidmm__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=nidmm__pb2.ExportAttributeConfigurationFileResponse.FromString, + ) + self.ImportAttributeConfigurationBuffer = channel.unary_unary( + '/nidmm_grpc.NiDmm/ImportAttributeConfigurationBuffer', + request_serializer=nidmm__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nidmm__pb2.ImportAttributeConfigurationBufferResponse.FromString, + ) + self.ExportAttributeConfigurationBuffer = channel.unary_unary( + '/nidmm_grpc.NiDmm/ExportAttributeConfigurationBuffer', + request_serializer=nidmm__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nidmm__pb2.ExportAttributeConfigurationBufferResponse.FromString, + ) + self.ResetInterchangeCheck = channel.unary_unary( + '/nidmm_grpc.NiDmm/ResetInterchangeCheck', + request_serializer=nidmm__pb2.ResetInterchangeCheckRequest.SerializeToString, + response_deserializer=nidmm__pb2.ResetInterchangeCheckResponse.FromString, + ) + self.ClearInterchangeWarnings = channel.unary_unary( + '/nidmm_grpc.NiDmm/ClearInterchangeWarnings', + request_serializer=nidmm__pb2.ClearInterchangeWarningsRequest.SerializeToString, + response_deserializer=nidmm__pb2.ClearInterchangeWarningsResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetChannelName', + request_serializer=nidmm__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetChannelNameResponse.FromString, + ) + self.GetExtCalRecommendedInterval = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetExtCalRecommendedInterval', + request_serializer=nidmm__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetExtCalRecommendedIntervalResponse.FromString, + ) + self.GetSelfCalSupported = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetSelfCalSupported', + request_serializer=nidmm__pb2.GetSelfCalSupportedRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetSelfCalSupportedResponse.FromString, + ) + self.GetCalDateAndTime = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetCalDateAndTime', + request_serializer=nidmm__pb2.GetCalDateAndTimeRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetCalDateAndTimeResponse.FromString, + ) + self.GetLastCalTemp = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetLastCalTemp', + request_serializer=nidmm__pb2.GetLastCalTempRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetLastCalTempResponse.FromString, + ) + self.GetDevTemp = channel.unary_unary( + '/nidmm_grpc.NiDmm/GetDevTemp', + request_serializer=nidmm__pb2.GetDevTempRequest.SerializeToString, + response_deserializer=nidmm__pb2.GetDevTempResponse.FromString, + ) + self.ConfigureTransducerType = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureTransducerType', + request_serializer=nidmm__pb2.ConfigureTransducerTypeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureTransducerTypeResponse.FromString, + ) + self.ConfigureThermocouple = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureThermocouple', + request_serializer=nidmm__pb2.ConfigureThermocoupleRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureThermocoupleResponse.FromString, + ) + self.ConfigureFixedRefJunction = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureFixedRefJunction', + request_serializer=nidmm__pb2.ConfigureFixedRefJunctionRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureFixedRefJunctionResponse.FromString, + ) + self.ConfigureRTDType = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureRTDType', + request_serializer=nidmm__pb2.ConfigureRTDTypeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureRTDTypeResponse.FromString, + ) + self.ConfigureRTDCustom = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureRTDCustom', + request_serializer=nidmm__pb2.ConfigureRTDCustomRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureRTDCustomResponse.FromString, + ) + self.ConfigureThermistorType = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureThermistorType', + request_serializer=nidmm__pb2.ConfigureThermistorTypeRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureThermistorTypeResponse.FromString, + ) + self.ConfigureThermistorCustom = channel.unary_unary( + '/nidmm_grpc.NiDmm/ConfigureThermistorCustom', + request_serializer=nidmm__pb2.ConfigureThermistorCustomRequest.SerializeToString, + response_deserializer=nidmm__pb2.ConfigureThermistorCustomResponse.FromString, + ) + self.InvalidateAllAttributes = channel.unary_unary( + '/nidmm_grpc.NiDmm/InvalidateAllAttributes', + request_serializer=nidmm__pb2.InvalidateAllAttributesRequest.SerializeToString, + response_deserializer=nidmm__pb2.InvalidateAllAttributesResponse.FromString, + ) + + +class NiDmmServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMeasurementPeriod(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Read(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Fetch(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Initiate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsOverRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsUnderRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureACBandwidth(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureFrequencyVoltageRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureMeasCompleteDest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureMultiPoint(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadMultiPoint(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchMultiPoint(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerSlope(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetApertureTimeInfo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAutoRangeValue(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureAutoZeroMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePowerLineFrequency(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureMeasurementDigits(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureMeasurementAbsolute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureMeasCompleteSlope(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSampleTriggerSlope(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadStatus(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Control(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureADCCalibration(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOffsetCompOhms(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCurrentSource(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCableCompType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformOpenCableComp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformShortCableComp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOpenCableCompValues(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureShortCableCompValues(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureWaveformAcquisition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureWaveformCoupling(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetInterchangeCheck(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearInterchangeWarnings(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalRecommendedInterval(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalSupported(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCalDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetLastCalTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDevTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTransducerType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureThermocouple(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureFixedRefJunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureRTDType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureRTDCustom(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureThermistorType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureThermistorCustom(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InvalidateAllAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiDmmServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=nidmm__pb2.InitRequest.FromString, + response_serializer=nidmm__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=nidmm__pb2.InitWithOptionsRequest.FromString, + response_serializer=nidmm__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nidmm__pb2.CloseRequest.FromString, + response_serializer=nidmm__pb2.CloseResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nidmm__pb2.GetErrorRequest.FromString, + response_serializer=nidmm__pb2.GetErrorResponse.SerializeToString, + ), + 'GetErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.GetErrorMessage, + request_deserializer=nidmm__pb2.GetErrorMessageRequest.FromString, + response_serializer=nidmm__pb2.GetErrorMessageResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=nidmm__pb2.ClearErrorRequest.FromString, + response_serializer=nidmm__pb2.ClearErrorResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=nidmm__pb2.ResetRequest.FromString, + response_serializer=nidmm__pb2.ResetResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=nidmm__pb2.SelfTestRequest.FromString, + response_serializer=nidmm__pb2.SelfTestResponse.SerializeToString, + ), + 'SelfCal': grpc.unary_unary_rpc_method_handler( + servicer.SelfCal, + request_deserializer=nidmm__pb2.SelfCalRequest.FromString, + response_serializer=nidmm__pb2.SelfCalResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=nidmm__pb2.RevisionQueryRequest.FromString, + response_serializer=nidmm__pb2.RevisionQueryResponse.SerializeToString, + ), + 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithDefaults, + request_deserializer=nidmm__pb2.ResetWithDefaultsRequest.FromString, + response_serializer=nidmm__pb2.ResetWithDefaultsResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=nidmm__pb2.DisableRequest.FromString, + response_serializer=nidmm__pb2.DisableResponse.SerializeToString, + ), + 'GetMeasurementPeriod': grpc.unary_unary_rpc_method_handler( + servicer.GetMeasurementPeriod, + request_deserializer=nidmm__pb2.GetMeasurementPeriodRequest.FromString, + response_serializer=nidmm__pb2.GetMeasurementPeriodResponse.SerializeToString, + ), + 'ConfigureTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTrigger, + request_deserializer=nidmm__pb2.ConfigureTriggerRequest.FromString, + response_serializer=nidmm__pb2.ConfigureTriggerResponse.SerializeToString, + ), + 'Read': grpc.unary_unary_rpc_method_handler( + servicer.Read, + request_deserializer=nidmm__pb2.ReadRequest.FromString, + response_serializer=nidmm__pb2.ReadResponse.SerializeToString, + ), + 'Fetch': grpc.unary_unary_rpc_method_handler( + servicer.Fetch, + request_deserializer=nidmm__pb2.FetchRequest.FromString, + response_serializer=nidmm__pb2.FetchResponse.SerializeToString, + ), + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=nidmm__pb2.AbortRequest.FromString, + response_serializer=nidmm__pb2.AbortResponse.SerializeToString, + ), + 'Initiate': grpc.unary_unary_rpc_method_handler( + servicer.Initiate, + request_deserializer=nidmm__pb2.InitiateRequest.FromString, + response_serializer=nidmm__pb2.InitiateResponse.SerializeToString, + ), + 'IsOverRange': grpc.unary_unary_rpc_method_handler( + servicer.IsOverRange, + request_deserializer=nidmm__pb2.IsOverRangeRequest.FromString, + response_serializer=nidmm__pb2.IsOverRangeResponse.SerializeToString, + ), + 'IsUnderRange': grpc.unary_unary_rpc_method_handler( + servicer.IsUnderRange, + request_deserializer=nidmm__pb2.IsUnderRangeRequest.FromString, + response_serializer=nidmm__pb2.IsUnderRangeResponse.SerializeToString, + ), + 'ConfigureACBandwidth': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureACBandwidth, + request_deserializer=nidmm__pb2.ConfigureACBandwidthRequest.FromString, + response_serializer=nidmm__pb2.ConfigureACBandwidthResponse.SerializeToString, + ), + 'ConfigureFrequencyVoltageRange': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureFrequencyVoltageRange, + request_deserializer=nidmm__pb2.ConfigureFrequencyVoltageRangeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureFrequencyVoltageRangeResponse.SerializeToString, + ), + 'ConfigureMeasCompleteDest': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureMeasCompleteDest, + request_deserializer=nidmm__pb2.ConfigureMeasCompleteDestRequest.FromString, + response_serializer=nidmm__pb2.ConfigureMeasCompleteDestResponse.SerializeToString, + ), + 'ConfigureMultiPoint': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureMultiPoint, + request_deserializer=nidmm__pb2.ConfigureMultiPointRequest.FromString, + response_serializer=nidmm__pb2.ConfigureMultiPointResponse.SerializeToString, + ), + 'ReadMultiPoint': grpc.unary_unary_rpc_method_handler( + servicer.ReadMultiPoint, + request_deserializer=nidmm__pb2.ReadMultiPointRequest.FromString, + response_serializer=nidmm__pb2.ReadMultiPointResponse.SerializeToString, + ), + 'FetchMultiPoint': grpc.unary_unary_rpc_method_handler( + servicer.FetchMultiPoint, + request_deserializer=nidmm__pb2.FetchMultiPointRequest.FromString, + response_serializer=nidmm__pb2.FetchMultiPointResponse.SerializeToString, + ), + 'ConfigureTriggerSlope': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerSlope, + request_deserializer=nidmm__pb2.ConfigureTriggerSlopeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureTriggerSlopeResponse.SerializeToString, + ), + 'SendSoftwareTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareTrigger, + request_deserializer=nidmm__pb2.SendSoftwareTriggerRequest.FromString, + response_serializer=nidmm__pb2.SendSoftwareTriggerResponse.SerializeToString, + ), + 'GetApertureTimeInfo': grpc.unary_unary_rpc_method_handler( + servicer.GetApertureTimeInfo, + request_deserializer=nidmm__pb2.GetApertureTimeInfoRequest.FromString, + response_serializer=nidmm__pb2.GetApertureTimeInfoResponse.SerializeToString, + ), + 'GetAutoRangeValue': grpc.unary_unary_rpc_method_handler( + servicer.GetAutoRangeValue, + request_deserializer=nidmm__pb2.GetAutoRangeValueRequest.FromString, + response_serializer=nidmm__pb2.GetAutoRangeValueResponse.SerializeToString, + ), + 'ConfigureAutoZeroMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureAutoZeroMode, + request_deserializer=nidmm__pb2.ConfigureAutoZeroModeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureAutoZeroModeResponse.SerializeToString, + ), + 'ConfigurePowerLineFrequency': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePowerLineFrequency, + request_deserializer=nidmm__pb2.ConfigurePowerLineFrequencyRequest.FromString, + response_serializer=nidmm__pb2.ConfigurePowerLineFrequencyResponse.SerializeToString, + ), + 'ConfigureMeasurementDigits': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureMeasurementDigits, + request_deserializer=nidmm__pb2.ConfigureMeasurementDigitsRequest.FromString, + response_serializer=nidmm__pb2.ConfigureMeasurementDigitsResponse.SerializeToString, + ), + 'ConfigureMeasurementAbsolute': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureMeasurementAbsolute, + request_deserializer=nidmm__pb2.ConfigureMeasurementAbsoluteRequest.FromString, + response_serializer=nidmm__pb2.ConfigureMeasurementAbsoluteResponse.SerializeToString, + ), + 'ConfigureMeasCompleteSlope': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureMeasCompleteSlope, + request_deserializer=nidmm__pb2.ConfigureMeasCompleteSlopeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureMeasCompleteSlopeResponse.SerializeToString, + ), + 'ConfigureSampleTriggerSlope': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSampleTriggerSlope, + request_deserializer=nidmm__pb2.ConfigureSampleTriggerSlopeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureSampleTriggerSlopeResponse.SerializeToString, + ), + 'ReadStatus': grpc.unary_unary_rpc_method_handler( + servicer.ReadStatus, + request_deserializer=nidmm__pb2.ReadStatusRequest.FromString, + response_serializer=nidmm__pb2.ReadStatusResponse.SerializeToString, + ), + 'Control': grpc.unary_unary_rpc_method_handler( + servicer.Control, + request_deserializer=nidmm__pb2.ControlRequest.FromString, + response_serializer=nidmm__pb2.ControlResponse.SerializeToString, + ), + 'ConfigureADCCalibration': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureADCCalibration, + request_deserializer=nidmm__pb2.ConfigureADCCalibrationRequest.FromString, + response_serializer=nidmm__pb2.ConfigureADCCalibrationResponse.SerializeToString, + ), + 'ConfigureOffsetCompOhms': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOffsetCompOhms, + request_deserializer=nidmm__pb2.ConfigureOffsetCompOhmsRequest.FromString, + response_serializer=nidmm__pb2.ConfigureOffsetCompOhmsResponse.SerializeToString, + ), + 'ConfigureCurrentSource': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCurrentSource, + request_deserializer=nidmm__pb2.ConfigureCurrentSourceRequest.FromString, + response_serializer=nidmm__pb2.ConfigureCurrentSourceResponse.SerializeToString, + ), + 'ConfigureCableCompType': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCableCompType, + request_deserializer=nidmm__pb2.ConfigureCableCompTypeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureCableCompTypeResponse.SerializeToString, + ), + 'PerformOpenCableComp': grpc.unary_unary_rpc_method_handler( + servicer.PerformOpenCableComp, + request_deserializer=nidmm__pb2.PerformOpenCableCompRequest.FromString, + response_serializer=nidmm__pb2.PerformOpenCableCompResponse.SerializeToString, + ), + 'PerformShortCableComp': grpc.unary_unary_rpc_method_handler( + servicer.PerformShortCableComp, + request_deserializer=nidmm__pb2.PerformShortCableCompRequest.FromString, + response_serializer=nidmm__pb2.PerformShortCableCompResponse.SerializeToString, + ), + 'ConfigureOpenCableCompValues': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOpenCableCompValues, + request_deserializer=nidmm__pb2.ConfigureOpenCableCompValuesRequest.FromString, + response_serializer=nidmm__pb2.ConfigureOpenCableCompValuesResponse.SerializeToString, + ), + 'ConfigureShortCableCompValues': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureShortCableCompValues, + request_deserializer=nidmm__pb2.ConfigureShortCableCompValuesRequest.FromString, + response_serializer=nidmm__pb2.ConfigureShortCableCompValuesResponse.SerializeToString, + ), + 'ConfigureWaveformAcquisition': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureWaveformAcquisition, + request_deserializer=nidmm__pb2.ConfigureWaveformAcquisitionRequest.FromString, + response_serializer=nidmm__pb2.ConfigureWaveformAcquisitionResponse.SerializeToString, + ), + 'ConfigureWaveformCoupling': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureWaveformCoupling, + request_deserializer=nidmm__pb2.ConfigureWaveformCouplingRequest.FromString, + response_serializer=nidmm__pb2.ConfigureWaveformCouplingResponse.SerializeToString, + ), + 'FetchWaveform': grpc.unary_unary_rpc_method_handler( + servicer.FetchWaveform, + request_deserializer=nidmm__pb2.FetchWaveformRequest.FromString, + response_serializer=nidmm__pb2.FetchWaveformResponse.SerializeToString, + ), + 'ReadWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ReadWaveform, + request_deserializer=nidmm__pb2.ReadWaveformRequest.FromString, + response_serializer=nidmm__pb2.ReadWaveformResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nidmm__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nidmm__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nidmm__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nidmm__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt32, + request_deserializer=nidmm__pb2.CheckAttributeViInt32Request.FromString, + response_serializer=nidmm__pb2.CheckAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nidmm__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nidmm__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nidmm__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nidmm__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViReal64, + request_deserializer=nidmm__pb2.CheckAttributeViReal64Request.FromString, + response_serializer=nidmm__pb2.CheckAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nidmm__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nidmm__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nidmm__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nidmm__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViString, + request_deserializer=nidmm__pb2.CheckAttributeViStringRequest.FromString, + response_serializer=nidmm__pb2.CheckAttributeViStringResponse.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nidmm__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nidmm__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=nidmm__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=nidmm__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViSession, + request_deserializer=nidmm__pb2.CheckAttributeViSessionRequest.FromString, + response_serializer=nidmm__pb2.CheckAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nidmm__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nidmm__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nidmm__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nidmm__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViBoolean, + request_deserializer=nidmm__pb2.CheckAttributeViBooleanRequest.FromString, + response_serializer=nidmm__pb2.CheckAttributeViBooleanResponse.SerializeToString, + ), + 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationFile, + request_deserializer=nidmm__pb2.ImportAttributeConfigurationFileRequest.FromString, + response_serializer=nidmm__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationFile, + request_deserializer=nidmm__pb2.ExportAttributeConfigurationFileRequest.FromString, + response_serializer=nidmm__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationBuffer, + request_deserializer=nidmm__pb2.ImportAttributeConfigurationBufferRequest.FromString, + response_serializer=nidmm__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationBuffer, + request_deserializer=nidmm__pb2.ExportAttributeConfigurationBufferRequest.FromString, + response_serializer=nidmm__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( + servicer.ResetInterchangeCheck, + request_deserializer=nidmm__pb2.ResetInterchangeCheckRequest.FromString, + response_serializer=nidmm__pb2.ResetInterchangeCheckResponse.SerializeToString, + ), + 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( + servicer.ClearInterchangeWarnings, + request_deserializer=nidmm__pb2.ClearInterchangeWarningsRequest.FromString, + response_serializer=nidmm__pb2.ClearInterchangeWarningsResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=nidmm__pb2.GetChannelNameRequest.FromString, + response_serializer=nidmm__pb2.GetChannelNameResponse.SerializeToString, + ), + 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalRecommendedInterval, + request_deserializer=nidmm__pb2.GetExtCalRecommendedIntervalRequest.FromString, + response_serializer=nidmm__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, + ), + 'GetSelfCalSupported': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalSupported, + request_deserializer=nidmm__pb2.GetSelfCalSupportedRequest.FromString, + response_serializer=nidmm__pb2.GetSelfCalSupportedResponse.SerializeToString, + ), + 'GetCalDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetCalDateAndTime, + request_deserializer=nidmm__pb2.GetCalDateAndTimeRequest.FromString, + response_serializer=nidmm__pb2.GetCalDateAndTimeResponse.SerializeToString, + ), + 'GetLastCalTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetLastCalTemp, + request_deserializer=nidmm__pb2.GetLastCalTempRequest.FromString, + response_serializer=nidmm__pb2.GetLastCalTempResponse.SerializeToString, + ), + 'GetDevTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetDevTemp, + request_deserializer=nidmm__pb2.GetDevTempRequest.FromString, + response_serializer=nidmm__pb2.GetDevTempResponse.SerializeToString, + ), + 'ConfigureTransducerType': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTransducerType, + request_deserializer=nidmm__pb2.ConfigureTransducerTypeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureTransducerTypeResponse.SerializeToString, + ), + 'ConfigureThermocouple': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureThermocouple, + request_deserializer=nidmm__pb2.ConfigureThermocoupleRequest.FromString, + response_serializer=nidmm__pb2.ConfigureThermocoupleResponse.SerializeToString, + ), + 'ConfigureFixedRefJunction': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureFixedRefJunction, + request_deserializer=nidmm__pb2.ConfigureFixedRefJunctionRequest.FromString, + response_serializer=nidmm__pb2.ConfigureFixedRefJunctionResponse.SerializeToString, + ), + 'ConfigureRTDType': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureRTDType, + request_deserializer=nidmm__pb2.ConfigureRTDTypeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureRTDTypeResponse.SerializeToString, + ), + 'ConfigureRTDCustom': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureRTDCustom, + request_deserializer=nidmm__pb2.ConfigureRTDCustomRequest.FromString, + response_serializer=nidmm__pb2.ConfigureRTDCustomResponse.SerializeToString, + ), + 'ConfigureThermistorType': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureThermistorType, + request_deserializer=nidmm__pb2.ConfigureThermistorTypeRequest.FromString, + response_serializer=nidmm__pb2.ConfigureThermistorTypeResponse.SerializeToString, + ), + 'ConfigureThermistorCustom': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureThermistorCustom, + request_deserializer=nidmm__pb2.ConfigureThermistorCustomRequest.FromString, + response_serializer=nidmm__pb2.ConfigureThermistorCustomResponse.SerializeToString, + ), + 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( + servicer.InvalidateAllAttributes, + request_deserializer=nidmm__pb2.InvalidateAllAttributesRequest.FromString, + response_serializer=nidmm__pb2.InvalidateAllAttributesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nidmm_grpc.NiDmm', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiDmm(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Init', + nidmm__pb2.InitRequest.SerializeToString, + nidmm__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/InitWithOptions', + nidmm__pb2.InitWithOptionsRequest.SerializeToString, + nidmm__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Close', + nidmm__pb2.CloseRequest.SerializeToString, + nidmm__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetError', + nidmm__pb2.GetErrorRequest.SerializeToString, + nidmm__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetErrorMessage', + nidmm__pb2.GetErrorMessageRequest.SerializeToString, + nidmm__pb2.GetErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ClearError', + nidmm__pb2.ClearErrorRequest.SerializeToString, + nidmm__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Reset', + nidmm__pb2.ResetRequest.SerializeToString, + nidmm__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SelfTest', + nidmm__pb2.SelfTestRequest.SerializeToString, + nidmm__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SelfCal', + nidmm__pb2.SelfCalRequest.SerializeToString, + nidmm__pb2.SelfCalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/RevisionQuery', + nidmm__pb2.RevisionQueryRequest.SerializeToString, + nidmm__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ResetWithDefaults', + nidmm__pb2.ResetWithDefaultsRequest.SerializeToString, + nidmm__pb2.ResetWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Disable', + nidmm__pb2.DisableRequest.SerializeToString, + nidmm__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMeasurementPeriod(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetMeasurementPeriod', + nidmm__pb2.GetMeasurementPeriodRequest.SerializeToString, + nidmm__pb2.GetMeasurementPeriodResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureTrigger', + nidmm__pb2.ConfigureTriggerRequest.SerializeToString, + nidmm__pb2.ConfigureTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Read(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Read', + nidmm__pb2.ReadRequest.SerializeToString, + nidmm__pb2.ReadResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Fetch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Fetch', + nidmm__pb2.FetchRequest.SerializeToString, + nidmm__pb2.FetchResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Abort', + nidmm__pb2.AbortRequest.SerializeToString, + nidmm__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Initiate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Initiate', + nidmm__pb2.InitiateRequest.SerializeToString, + nidmm__pb2.InitiateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsOverRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/IsOverRange', + nidmm__pb2.IsOverRangeRequest.SerializeToString, + nidmm__pb2.IsOverRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsUnderRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/IsUnderRange', + nidmm__pb2.IsUnderRangeRequest.SerializeToString, + nidmm__pb2.IsUnderRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureACBandwidth(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureACBandwidth', + nidmm__pb2.ConfigureACBandwidthRequest.SerializeToString, + nidmm__pb2.ConfigureACBandwidthResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureFrequencyVoltageRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureFrequencyVoltageRange', + nidmm__pb2.ConfigureFrequencyVoltageRangeRequest.SerializeToString, + nidmm__pb2.ConfigureFrequencyVoltageRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureMeasCompleteDest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasCompleteDest', + nidmm__pb2.ConfigureMeasCompleteDestRequest.SerializeToString, + nidmm__pb2.ConfigureMeasCompleteDestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureMultiPoint(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMultiPoint', + nidmm__pb2.ConfigureMultiPointRequest.SerializeToString, + nidmm__pb2.ConfigureMultiPointResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadMultiPoint(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ReadMultiPoint', + nidmm__pb2.ReadMultiPointRequest.SerializeToString, + nidmm__pb2.ReadMultiPointResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchMultiPoint(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/FetchMultiPoint', + nidmm__pb2.FetchMultiPointRequest.SerializeToString, + nidmm__pb2.FetchMultiPointResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerSlope(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureTriggerSlope', + nidmm__pb2.ConfigureTriggerSlopeRequest.SerializeToString, + nidmm__pb2.ConfigureTriggerSlopeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SendSoftwareTrigger', + nidmm__pb2.SendSoftwareTriggerRequest.SerializeToString, + nidmm__pb2.SendSoftwareTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetApertureTimeInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetApertureTimeInfo', + nidmm__pb2.GetApertureTimeInfoRequest.SerializeToString, + nidmm__pb2.GetApertureTimeInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAutoRangeValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAutoRangeValue', + nidmm__pb2.GetAutoRangeValueRequest.SerializeToString, + nidmm__pb2.GetAutoRangeValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureAutoZeroMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureAutoZeroMode', + nidmm__pb2.ConfigureAutoZeroModeRequest.SerializeToString, + nidmm__pb2.ConfigureAutoZeroModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePowerLineFrequency(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigurePowerLineFrequency', + nidmm__pb2.ConfigurePowerLineFrequencyRequest.SerializeToString, + nidmm__pb2.ConfigurePowerLineFrequencyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureMeasurementDigits(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasurementDigits', + nidmm__pb2.ConfigureMeasurementDigitsRequest.SerializeToString, + nidmm__pb2.ConfigureMeasurementDigitsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureMeasurementAbsolute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasurementAbsolute', + nidmm__pb2.ConfigureMeasurementAbsoluteRequest.SerializeToString, + nidmm__pb2.ConfigureMeasurementAbsoluteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureMeasCompleteSlope(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureMeasCompleteSlope', + nidmm__pb2.ConfigureMeasCompleteSlopeRequest.SerializeToString, + nidmm__pb2.ConfigureMeasCompleteSlopeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSampleTriggerSlope(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureSampleTriggerSlope', + nidmm__pb2.ConfigureSampleTriggerSlopeRequest.SerializeToString, + nidmm__pb2.ConfigureSampleTriggerSlopeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ReadStatus', + nidmm__pb2.ReadStatusRequest.SerializeToString, + nidmm__pb2.ReadStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Control(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/Control', + nidmm__pb2.ControlRequest.SerializeToString, + nidmm__pb2.ControlResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureADCCalibration(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureADCCalibration', + nidmm__pb2.ConfigureADCCalibrationRequest.SerializeToString, + nidmm__pb2.ConfigureADCCalibrationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOffsetCompOhms(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureOffsetCompOhms', + nidmm__pb2.ConfigureOffsetCompOhmsRequest.SerializeToString, + nidmm__pb2.ConfigureOffsetCompOhmsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCurrentSource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureCurrentSource', + nidmm__pb2.ConfigureCurrentSourceRequest.SerializeToString, + nidmm__pb2.ConfigureCurrentSourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCableCompType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureCableCompType', + nidmm__pb2.ConfigureCableCompTypeRequest.SerializeToString, + nidmm__pb2.ConfigureCableCompTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformOpenCableComp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/PerformOpenCableComp', + nidmm__pb2.PerformOpenCableCompRequest.SerializeToString, + nidmm__pb2.PerformOpenCableCompResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformShortCableComp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/PerformShortCableComp', + nidmm__pb2.PerformShortCableCompRequest.SerializeToString, + nidmm__pb2.PerformShortCableCompResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOpenCableCompValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureOpenCableCompValues', + nidmm__pb2.ConfigureOpenCableCompValuesRequest.SerializeToString, + nidmm__pb2.ConfigureOpenCableCompValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureShortCableCompValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureShortCableCompValues', + nidmm__pb2.ConfigureShortCableCompValuesRequest.SerializeToString, + nidmm__pb2.ConfigureShortCableCompValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureWaveformAcquisition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureWaveformAcquisition', + nidmm__pb2.ConfigureWaveformAcquisitionRequest.SerializeToString, + nidmm__pb2.ConfigureWaveformAcquisitionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureWaveformCoupling(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureWaveformCoupling', + nidmm__pb2.ConfigureWaveformCouplingRequest.SerializeToString, + nidmm__pb2.ConfigureWaveformCouplingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/FetchWaveform', + nidmm__pb2.FetchWaveformRequest.SerializeToString, + nidmm__pb2.FetchWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ReadWaveform', + nidmm__pb2.ReadWaveformRequest.SerializeToString, + nidmm__pb2.ReadWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViInt32', + nidmm__pb2.GetAttributeViInt32Request.SerializeToString, + nidmm__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViInt32', + nidmm__pb2.SetAttributeViInt32Request.SerializeToString, + nidmm__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViInt32', + nidmm__pb2.CheckAttributeViInt32Request.SerializeToString, + nidmm__pb2.CheckAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViReal64', + nidmm__pb2.GetAttributeViReal64Request.SerializeToString, + nidmm__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViReal64', + nidmm__pb2.SetAttributeViReal64Request.SerializeToString, + nidmm__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViReal64', + nidmm__pb2.CheckAttributeViReal64Request.SerializeToString, + nidmm__pb2.CheckAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViString', + nidmm__pb2.GetAttributeViStringRequest.SerializeToString, + nidmm__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViString', + nidmm__pb2.SetAttributeViStringRequest.SerializeToString, + nidmm__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViString', + nidmm__pb2.CheckAttributeViStringRequest.SerializeToString, + nidmm__pb2.CheckAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViSession', + nidmm__pb2.GetAttributeViSessionRequest.SerializeToString, + nidmm__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViSession', + nidmm__pb2.SetAttributeViSessionRequest.SerializeToString, + nidmm__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViSession', + nidmm__pb2.CheckAttributeViSessionRequest.SerializeToString, + nidmm__pb2.CheckAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetAttributeViBoolean', + nidmm__pb2.GetAttributeViBooleanRequest.SerializeToString, + nidmm__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/SetAttributeViBoolean', + nidmm__pb2.SetAttributeViBooleanRequest.SerializeToString, + nidmm__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/CheckAttributeViBoolean', + nidmm__pb2.CheckAttributeViBooleanRequest.SerializeToString, + nidmm__pb2.CheckAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ImportAttributeConfigurationFile', + nidmm__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + nidmm__pb2.ImportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ExportAttributeConfigurationFile', + nidmm__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + nidmm__pb2.ExportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ImportAttributeConfigurationBuffer', + nidmm__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + nidmm__pb2.ImportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ExportAttributeConfigurationBuffer', + nidmm__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + nidmm__pb2.ExportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetInterchangeCheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ResetInterchangeCheck', + nidmm__pb2.ResetInterchangeCheckRequest.SerializeToString, + nidmm__pb2.ResetInterchangeCheckResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearInterchangeWarnings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ClearInterchangeWarnings', + nidmm__pb2.ClearInterchangeWarningsRequest.SerializeToString, + nidmm__pb2.ClearInterchangeWarningsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetChannelName', + nidmm__pb2.GetChannelNameRequest.SerializeToString, + nidmm__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalRecommendedInterval(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetExtCalRecommendedInterval', + nidmm__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + nidmm__pb2.GetExtCalRecommendedIntervalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalSupported(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetSelfCalSupported', + nidmm__pb2.GetSelfCalSupportedRequest.SerializeToString, + nidmm__pb2.GetSelfCalSupportedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCalDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetCalDateAndTime', + nidmm__pb2.GetCalDateAndTimeRequest.SerializeToString, + nidmm__pb2.GetCalDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetLastCalTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetLastCalTemp', + nidmm__pb2.GetLastCalTempRequest.SerializeToString, + nidmm__pb2.GetLastCalTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDevTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/GetDevTemp', + nidmm__pb2.GetDevTempRequest.SerializeToString, + nidmm__pb2.GetDevTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTransducerType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureTransducerType', + nidmm__pb2.ConfigureTransducerTypeRequest.SerializeToString, + nidmm__pb2.ConfigureTransducerTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureThermocouple(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureThermocouple', + nidmm__pb2.ConfigureThermocoupleRequest.SerializeToString, + nidmm__pb2.ConfigureThermocoupleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureFixedRefJunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureFixedRefJunction', + nidmm__pb2.ConfigureFixedRefJunctionRequest.SerializeToString, + nidmm__pb2.ConfigureFixedRefJunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureRTDType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureRTDType', + nidmm__pb2.ConfigureRTDTypeRequest.SerializeToString, + nidmm__pb2.ConfigureRTDTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureRTDCustom(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureRTDCustom', + nidmm__pb2.ConfigureRTDCustomRequest.SerializeToString, + nidmm__pb2.ConfigureRTDCustomResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureThermistorType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureThermistorType', + nidmm__pb2.ConfigureThermistorTypeRequest.SerializeToString, + nidmm__pb2.ConfigureThermistorTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureThermistorCustom(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/ConfigureThermistorCustom', + nidmm__pb2.ConfigureThermistorCustomRequest.SerializeToString, + nidmm__pb2.ConfigureThermistorCustomResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InvalidateAllAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nidmm_grpc.NiDmm/InvalidateAllAttributes', + nidmm__pb2.InvalidateAllAttributesRequest.SerializeToString, + nidmm__pb2.InvalidateAllAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nidmm/nidmm/session.py b/generated/nidmm/nidmm/session.py new file mode 100644 index 0000000000..8f52477dbe --- /dev/null +++ b/generated/nidmm/nidmm/session.py @@ -0,0 +1,2499 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nidmm._attributes as _attributes +import nidmm._converters as _converters +import nidmm._library_interpreter as _library_interpreter +import nidmm.enums as enums +import nidmm.errors as errors + +import hightime + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Acquisition(object): + def __init__(self, session): + self._session = session + self._session._initiate() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _SessionBase(object): + '''Base class for all NI-DMM sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + ac_max_freq = _attributes.AttributeViReal64(1250007) + '''Type: float + + Specifies the maximum frequency component of the input signal for AC measurements. This property is used only for error checking and verifies that the value of this parameter is less than the maximum frequency of the device. This property affects the DMM only when you set the method property to AC measurements. + The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. + ''' + ac_min_freq = _attributes.AttributeViReal64(1250006) + '''Type: float + + Specifies the minimum frequency component of the input signal for AC measurements. This property affects the DMM only when you set the method property to AC measurements. + The valid range is 1 Hz-300 kHz for the NI 4070/4071/4072, 10 Hz-100 kHz for the NI 4065, and 20 Hz-25 kHz for the NI 4050 and NI 4060. + ''' + adc_calibration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ADCCalibration, 1150022) + '''Type: enums.ADCCalibration + + For the NI 4070/4071/4072 only, specifies the ADC calibration mode. + ''' + aperture_time = _attributes.AttributeViReal64(1250321) + '''Type: float + + Specifies the measurement aperture time for the current configuration. Aperture time is specified in units set by aperture_time_units. To override the default aperture, set this property to the desired aperture time after calling ConfigureMeasurement. To return to the default, set this property to NIDMM_VAL_APERTURE_TIME_AUTO (-1). + On the NI 4070/4071/4072, the minimum aperture time is 8.89 usec, and the maximum aperture time is 149 sec. Any number of powerline cycles (PLCs) within the minimum and maximum ranges is allowed on the NI 4070/4071/4072. + On the NI 4065 the minimum aperture time is 333 µs, and the maximum aperture time is 78.2 s. If setting the number of averages directly, the total measurement time is aperture time X the number of averages, which must be less than 72.8 s. The aperture times allowed are 333 µs, 667 µs, or multiples of 1.11 ms-for example 1.11 ms, 2.22 ms, 3.33 ms, and so on. If you set an aperture time other than 333 µs, 667 µs, or multiples of 1.11 ms, the value will be coerced up to the next supported aperture time. + On the NI 4060, when the powerline frequency is 60 Hz, the PLCs allowed are 1 PLC, 6 PLC, 12 PLC, and 120 PLC. When the powerline frequency is 50 Hz, the PLCs allowed are 1 PLC, 5 PLC, 10 PLC, and 100 PLC. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + aperture_time_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ApertureTimeUnits, 1250322) + '''Type: enums.ApertureTimeUnits + + Specifies the units of aperture time for the current configuration. + The NI 4060 does not support an aperture time set in seconds. + ''' + auto_range_value = _attributes.AttributeViReal64(1250331) + '''Type: float + + Specifies the value of the range. If auto ranging, shows the actual value of the active range. The value of this property is set during a read operation. + ''' + auto_zero = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutoZero, 1250332) + '''Type: enums.AutoZero + + Specifies the AutoZero mode. + The NI 4050 is not supported. + ''' + buffer_size = _attributes.AttributeViInt32(1150037) + '''Type: int + + Size in samples of the internal data buffer. Maximum is 134,217,727 (OX7FFFFFF) samples. When set to NIDMM_VAL_BUFFER_SIZE_AUTO (-1), NI-DMM chooses the buffer size. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + cable_comp_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.CableCompensationType, 1150045) + '''Type: enums.CableCompensationType + + For the NI 4072 only, the type of cable compensation that is applied to the current capacitance or inductance measurement for the current range. + Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. + ''' + channel_count = _attributes.AttributeViInt32(1050203) + '''Type: int + + Indicates the number of channels that the specific instrument driver supports. For each property for which the IVI_VAL_MULTI_CHANNEL flag property is set, the IVI engine maintains a separate cache value for each channel. + ''' + current_source = _attributes.AttributeViReal64(1150025) + '''Type: float + + Specifies the current source provided during diode measurements. + The NI 4050 and NI 4060 are not supported. + ''' + dc_bias = _attributes.AttributeViInt32(1150053) + '''Type: int + + For the NI 4072 only, controls the available DC bias for capacitance measurements. + ''' + dc_noise_rejection = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DCNoiseRejection, 1150026) + '''Type: enums.DCNoiseRejection + + Specifies the DC noise rejection mode. + The NI 4050 and NI 4060 are not supported. + ''' + driver_setup = _attributes.AttributeViString(1050007) + '''Type: str + + This property indicates the Driver Setup string that the user specified when initializing the driver. + Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the niDMM Init With Options.vi. + If the user does not specify a Driver Setup string, this property returns an empty string. + ''' + freq_voltage_auto_range = _attributes.AttributeViReal64(1150044) + '''Type: float + + For the NI 4070/4071/4072 only, specifies the value of the frequency voltage range. If Auto Ranging, shows the actual value of the active frequency voltage range. If not Auto Ranging, the value of this property is the same as that of freq_voltage_range. + ''' + freq_voltage_range = _attributes.AttributeViReal64(1250101) + '''Type: float + + Specifies the maximum amplitude of the input signal for frequency measurements. + ''' + function = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Function, 1250001) + '''Type: enums.Function + + Specifies the measurement method. + Refer to the method topic in the NI Digital Multimeters Help for device-specific information. + If you are setting this property directly, you must also set the operation_mode property, which controls whether the DMM takes standard single or multipoint measurements, or acquires a waveform. If you are programming properties directly, you must set the operation_mode property before setting other configuration properties. If the operation_mode property is set to OperationMode.WAVEFORM, the only valid method types are Method.WAVEFORM_VOLTAGE and Method.WAVEFORM_CURRENT. Set the operation_mode property to OperationMode.IVIDMM to set all other method values. + ''' + input_resistance = _attributes.AttributeViReal64(1150029) + '''Type: float + + Specifies the input resistance of the instrument. + The NI 4050 and NI 4060 are not supported. + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + A string containing the instrument firmware revision number. + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + A string containing the manufacturer of the instrument. + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + A string containing the instrument model. + ''' + instrument_product_id = _attributes.AttributeViInt32(1150061) + '''Type: int + + The PCI product ID. + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + A string containing the resource descriptor of the instrument. + ''' + lc_calculation_model = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LCCalculationModel, 1150052) + '''Type: enums.LCCalculationModel + + For the NI 4072 only, specifies the type of algorithm that the measurement processing uses for capacitance and inductance measurements. + ''' + lc_number_meas_to_average = _attributes.AttributeViInt32(1150055) + '''Type: int + + For the NI 4072 only, specifies the number of LC measurements that are averaged to produce one reading. + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + A string containing the logical name of the instrument. + ''' + meas_complete_dest = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MeasurementCompleteDest, 1250305) + '''Type: enums.MeasurementCompleteDest + + Specifies the destination of the measurement complete (MC) signal. + The NI 4050 is not supported. + To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. + ''' + number_of_averages = _attributes.AttributeViInt32(1150032) + '''Type: int + + Specifies the number of averages to perform in a measurement. For the NI 4070/4071/4072, applies only when the aperture time is not set to AUTO and Auto Zero is ON. The default is 1. + The NI 4050 and NI 4060 are not supported. + ''' + offset_comp_ohms = _attributes.AttributeViInt32(1150023) + '''Type: int + + For the NI 4070/4071/4072 only, enables or disables offset compensated ohms. + ''' + open_cable_comp_conductance = _attributes.AttributeViReal64(1150049) + '''Type: float + + For the NI 4072 only, specifies the active part (conductance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. + Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. + ''' + open_cable_comp_susceptance = _attributes.AttributeViReal64(1150048) + '''Type: float + + For the NI 4072 only, specifies the reactive part (susceptance) of the open cable compensation. The valid range is any real number greater than 0. The default value (-1.0) indicates that compensation has not taken place. + Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. + ''' + operation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OperationMode, 1150014) + '''Type: enums.OperationMode + + Specifies how the NI 4065 and NI 4070/4071/4072 acquire data. When you call configure_measurement_digits, NI-DMM sets this property to OperationMode.IVIDMM. When you call configure_waveform_acquisition, NI-DMM sets this property to OperationMode.WAVEFORM. If you are programming properties directly, you must set this property before setting other configuration properties. + ''' + powerline_freq = _attributes.AttributeViReal64(1250333) + '''Type: float + + Specifies the powerline frequency. The NI 4050 and NI 4060 use this value to select an aperture time to reject powerline noise by selecting the appropriate internal sample clock and filter. The NI 4065 and NI 4070/4071/4072 use this value to select a timebase for setting the aperture_time property in powerline cycles (PLCs). + After configuring powerline frequency, set the aperture_time_units property to PLCs. When setting the aperture_time property, select the number of PLCs for the powerline frequency. For example, if powerline frequency = 50 Hz (or 20ms) and aperture time in PLCs = 5, then aperture time in Seconds = 20ms * 5 PLCs = 100 ms. Similarly, if powerline frequency = 60 Hz (or 16.667 ms) and aperture time in PLCs = 6, then aperture time in Seconds = 16.667 ms * 6 PLCs = 100 ms. + ''' + range = _attributes.AttributeViReal64(1250002) + '''Type: float + + Specifies the measurement range. Use positive values to represent the absolute value of the maximum expected measurement. The value is in units appropriate for the current value of the method property. For example, if method is set to NIDMM_VAL_VOLTS, the units are volts. + The NI 4050 and NI 4060 only support Auto Range when the trigger and sample trigger is set to IMMEDIATE. + NIDMM_VAL_AUTO_RANGE_ON -1.0 + NI-DMM performs an Auto Range before acquiring the measurement. + NIDMM_VAL_AUTO_RANGE_OFF -2.0 + NI-DMM sets the Range to the current auto_range_value and uses this range for all subsequent measurements until the measurement configuration is changed. + NIDMM_VAL_AUTO_RANGE_ONCE -3.0 + NI-DMM performs an Auto Range before acquiring the next measurement. The auto_range_value is stored and used for all subsequent measurements until the measurement configuration is changed. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + resolution_absolute = _attributes.AttributeViReal64(1250008) + '''Type: float + + Specifies the measurement resolution in absolute units. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. + NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the lc_number_meas_to_average property. + ''' + resolution_digits = _attributes.AttributeViReal64(1250003) + '''Type: float + + Specifies the measurement resolution in digits. Setting this property to higher values increases the measurement accuracy. Setting this property to lower values increases the measurement speed. + NI-DMM ignores this property for capacitance and inductance measurements on the NI 4072. To achieve better resolution for such measurements, use the lc_number_meas_to_average property. + ''' + sample_count = _attributes.AttributeViInt32(1250301) + '''Type: int + + Specifies the number of measurements the DMM takes each time it receives a trigger in a multiple point acquisition. + ''' + sample_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1250303) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the amount of time in seconds the DMM waits between measurement cycles. This property only applies when the sample_trigger property is set to INTERVAL. + On the NI 4060, the value for this property is used as the settling time. When this property is set to 0, the NI 4060 does not settle between measurement cycles. The onboard timing resolution is 1 µs on the NI 4060. + The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional delay. On the NI 4065 and NI 4070/4071/4072, the onboard timing resolution is 34.72 ns and the valid range is 0-149 s. + Only positive values are valid when setting the sample interval. + The NI 4050 is not supported. + ''' + sample_trigger = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SampleTrigger, 1250302) + '''Type: enums.SampleTrigger + + Specifies the sample trigger source. + To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. + ''' + serial_number = _attributes.AttributeViString(1150054) + '''Type: str + + A string containing the serial number of the instrument. This property corresponds to the serial number label that is attached to most products. + ''' + settle_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150028) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the settling time in seconds. To override the default settling time, set this property. To return to the default, set this property to NIDMM_VAL_SETTLE_TIME_AUTO (-1). + The NI 4050 and NI 4060 are not supported. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + short_cable_comp_reactance = _attributes.AttributeViReal64(1150046) + '''Type: float + + For the NI 4072 only, represents the reactive part (reactance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. + Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. + ''' + short_cable_comp_resistance = _attributes.AttributeViReal64(1150047) + '''Type: float + + For the NI 4072 only, represents the active part (resistance) of the short cable compensation. The valid range is any real number greater than 0. The default value (-1) indicates that compensation has not taken place. + Changing the method or the range through this property or through configure_measurement_digits resets the value of this property to the default value. + ''' + simulate = _attributes.AttributeViBoolean(1050005) + '''Type: bool + + Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call IVI Get and Set methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. + The default value is False (0). Use the __init__ method to override this setting. + Simulate can only be set within the InitWithOptions method. The property value cannot be changed outside of the method. + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + A string containing a description of the specific driver. + ''' + specific_driver_major_version = _attributes.AttributeViInt32(1050503) + '''Type: int + + Returns the major version number of this instrument driver. + ''' + specific_driver_minor_version = _attributes.AttributeViInt32(1050504) + '''Type: int + + The minor version number of this instrument driver. + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + A string that contains additional version information about this specific instrument driver. + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + A string containing the vendor of the specific driver. + ''' + supported_instrument_models = _attributes.AttributeViString(1050327) + '''Type: str + + A string containing the instrument models supported by the specific driver. + ''' + temp_rtd_a = _attributes.AttributeViReal64(1150121) + '''Type: float + + Specifies the Callendar-Van Dusen A coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is 3.9083e-3 (Pt3851). + ''' + temp_rtd_b = _attributes.AttributeViReal64(1150122) + '''Type: float + + Specifies the Callendar-Van Dusen B coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -5.775e-7(Pt3851). + ''' + temp_rtd_c = _attributes.AttributeViReal64(1150123) + '''Type: float + + Specifies the Callendar-Van Dusen C coefficient for RTD scaling when the RTD Type property is set to Custom. The default value is -4.183e-12(Pt3851). + ''' + temp_rtd_res = _attributes.AttributeViReal64(1250242) + '''Type: float + + Specifies the RTD resistance at 0 degrees Celsius. This applies to all supported RTDs, including custom RTDs. The default value is 100 (?). + ''' + temp_rtd_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RTDType, 1150120) + '''Type: enums.RTDType + + Specifies the type of RTD used to measure temperature. The default value is RTDType.PT3851. + Refer to the temp_rtd_type topic in the NI Digital Multimeters Help for additional information about defined values. + ''' + temp_tc_fixed_ref_junc = _attributes.AttributeViReal64(1250233) + '''Type: float + + Specifies the reference junction temperature when a fixed reference junction is used to take a thermocouple measurement. The default value is 25.0 (°C). + ''' + temp_tc_ref_junc_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ThermocoupleReferenceJunctionType, 1250232) + '''Type: enums.ThermocoupleReferenceJunctionType + + Specifies the type of reference junction to be used in the reference junction compensation of a thermocouple. The only supported value, ThermocoupleReferenceJunctionType.FIXED, is fixed. + ''' + temp_tc_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ThermocoupleType, 1250231) + '''Type: enums.ThermocoupleType + + Specifies the type of thermocouple used to measure the temperature. The default value is ThermocoupleType.J. + ''' + temp_thermistor_a = _attributes.AttributeViReal64(1150125) + '''Type: float + + Specifies the Steinhart-Hart A coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 0.0010295 (44006). + ''' + temp_thermistor_b = _attributes.AttributeViReal64(1150126) + '''Type: float + + Specifies the Steinhart-Hart B coefficient for thermistor scaling when the Thermistor Type proerty is set to Custom. The default value is 0.0002391 (44006). + ''' + temp_thermistor_c = _attributes.AttributeViReal64(1150127) + '''Type: float + + Specifies the Steinhart-Hart C coefficient for thermistor scaling when the Thermistor Type property is set to Custom. The default value is 1.568e-7 (44006). + ''' + temp_thermistor_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ThermistorType, 1150124) + '''Type: enums.ThermistorType + + Specifies the type of thermistor used to measure the temperature. The default value is ThermistorType.THERMISTOR_44006. + Refer to the temp_thermistor_type topic in the NI Digital Multimeters Help for additional information about defined values. + ''' + temp_transducer_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TransducerType, 1250201) + '''Type: enums.TransducerType + + Specifies the type of device used to measure the temperature. The default value is NIDMM_VAL_4_THERMOCOUPLE. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + trigger_count = _attributes.AttributeViInt32(1250304) + '''Type: int + + Specifies the number of triggers the DMM receives before returning to the Idle state. + This property can be set to any positive ViInt32 value for the NI 4065 and NI 4070/4071/4072. + The NI 4050 and NI 4060 support this property being set to 1. + Refer to the Multiple Point Acquisitions section of the NI Digital Multimeters Help for more information. + ''' + trigger_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1250005) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the time (in seconds) that the DMM waits after it has received a trigger before taking a measurement. The default value is AUTO DELAY (-1), which means that the DMM waits an appropriate settling time before taking the measurement. (-1) signifies that AUTO DELAY is on, and (-2) signifies that AUTO DELAY is off. + The NI 4065 and NI 4070/4071/4072 use the value specified in this property as additional settling time. For the The NI 4065 and NI 4070/4071/4072, the valid range for Trigger Delay is AUTO DELAY (-1) or 0.0-149.0 seconds and the onboard timing resolution is 34.72 ns. + On the NI 4060, if this property is set to 0, the DMM does not settle before taking the measurement. On the NI 4060, the valid range for AUTO DELAY (-1) is 0.0-12.0 seconds and the onboard timing resolution is 100 ms. + When using the NI 4050, this property must be set to AUTO DELAY (-1). + Use positive values to set the trigger delay in seconds. + Valid Range: NIDMM_VAL_AUTO_DELAY (-1.0), 0.0-12.0 seconds (NI 4060 only) + Default Value: NIDMM_VAL_AUTO_DELAY + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + trigger_source = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerSource, 1250004) + '''Type: enums.TriggerSource + + Specifies the trigger source. When _initiate is called, the DMM waits for the trigger specified with this property. After it receives the trigger, the DMM waits the length of time specified with the trigger_delay property. The DMM then takes a measurement. + This property is not supported on the NI 4050. + To determine which values are supported by each device, refer to the LabWindows/CVI Trigger Routing section in the NI Digital Multimeters Help. + ''' + waveform_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WaveformCoupling, 1150027) + '''Type: enums.WaveformCoupling + + For the NI 4070/4071/4072 only, specifies the coupling during a waveform acquisition. + ''' + waveform_points = _attributes.AttributeViInt32(1150019) + '''Type: int + + For the NI 4070/4071/4072 only, specifies the number of points to acquire in a waveform acquisition. + ''' + waveform_rate = _attributes.AttributeViReal64(1150018) + '''Type: float + + For the NI 4070/4071/4072 only, specifies the rate of the waveform acquisition in Samples per second (S/s). The valid Range is 10.0-1,800,000 S/s. Values are coerced to the closest integer divisor of 1,800,000. The default value is 1,800,000. + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nidmm', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (bool): Returns the current value of the property. Pass the address of a + ViBoolean variable. + + ''' + attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (int): Returns the current value of the property. Pass the address of a + ViInt32 variable. + + ''' + attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + Queries the value of a ViReal64 property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (float): Returns the current value of the property. Pass the address of a + ViReal64 variable. + + ''' + attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + Queries the value of a ViString property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid. + You must provide a ViChar array to serve as a buffer for the value. + You pass the number of bytes in the buffer as the Array Size + parameter. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (str): The buffer in which the method returns the current value of the + property. The buffer must be of type ViChar and have at least as many + bytes as indicated in the **Buffer_Size** parameter. + + If you specify 0 for the **Buffer_Size** parameter, you can pass + VI_NULL for this parameter. + + ''' + attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return attribute_value + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-DMM locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nidmm.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, attribute_value): + r'''_set_attribute_vi_boolean + + This method sets the value of a ViBoolean property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid + or is different than the value you specify. + + This instrument driver contains high-level methods that set most of + the instrument properties. It is best to use the high-level driver + methods as much as possible. They handle order dependencies and + multithread locking for you. In addition, they perform status checking + only after setting all of the properties. + + In contrast, when you set multiple properties using the SetAttribute + methods, the methods check the instrument status after each call. + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (bool): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int32 + + This method sets the value of a ViInt32 property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid + or is different than the value you specify. + + This instrument driver contains high-level methods that set most of + the instrument properties. It is best to use the high-level driver + methods as much as possible. They handle order dependencies and + multithread locking for you. In addition, they perform status checking + only after setting all of the properties. + + In contrast, when you set multiple properties using the SetAttribute + methods, the methods check the instrument status after each call. + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (int): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_real64 + + This method sets the value of a ViReal64 property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid + or is different than the value you specify. + + This instrument driver contains high-level methods that set most of + the instrument properties. It is best to use the high-level driver + methods as much as possible. They handle order dependencies and + multithread locking for you. In addition, they perform status checking + only after setting all of the properties. + + In contrast, when you set multiple properties using the SetAttribute + methods, the methods check the instrument status after each call. + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (float): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, attribute_value): + r'''_set_attribute_vi_string + + This method sets the value of a ViString property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. + + If the property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled, and the currently cached value is invalid + or is different than the value you specify. + + This instrument driver contains high-level methods that set most of + the instrument properties. It is best to use the high-level driver + methods as much as possible. They handle order dependencies and + multithread locking for you. In addition, they perform status checking + only after setting all of the properties. + + In contrast, when you set multiple properties using the SetAttribute + methods, the methods check the instrument status after each call. + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nidmm.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nidmm.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (str): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + def _error_message(self, error_code): + r'''_error_message + + Takes the **Error_Code** returned by the instrument driver methods, + interprets it, and returns it as a user-readable string. + + Note: + When using grpc-device, this method will call GetErrorMessage server-side while providing the same interface. + + Args: + error_code (int): The **error_code** returned from the instrument. The default is 0, + indicating VI_SUCCESS. + + + Returns: + error_message (str): The error information formatted into a string. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-DMM session to an NI digital multimeter''' + + def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): + r'''An NI-DMM session to an NI digital multimeter + + This method completes the following tasks: + + - Creates a new IVI instrument driver session and, optionally, sets the + initial state of the following session properties: + RANGE_CHECK, QUERY_INSTR_STATUS, + CACHE, simulate, + RECORD_COERCIONS. + - Opens a session to the device you specify for the **Resource_Name** + parameter. If the **ID_Query** parameter is set to True, this + method queries the instrument ID and checks that it is valid for + this instrument driver. + - If the **Reset_Device** parameter is set to True, this method + resets the instrument to a known state. Sends initialization commands + to set the instrument to the state necessary for the operation of the + instrument driver. + - Returns a ViSession handle that you use to identify the instrument in + all subsequent instrument driver method calls. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + resource_name (str): Caution: + All IVI names for the **Resource_Name**, such as logical names or + virtual names, are case-sensitive. If you use logical names, driver + session names, or virtual names in your program, you must make sure that + the name you use matches the name in the IVI Configuration Store file + exactly, without any variations in the case of the characters in the + name. + + | Contains the **resource_name** of the device to initialize. The + **resource_name** is assigned in Measurement & Automation Explorer + (MAX). Refer to `Related + Documentation `__ + for the *NI Digital Multimeters Getting Started Guide* for more + information about configuring and testing the DMM in MAX. + | Valid Syntax: + + - NI-DAQmx name + - DAQ::NI-DAQmx name[::INSTR] + - DAQ::Traditional NI-DAQ device number[::INSTR] + - IVI logical name + + id_query (bool): Verifies that the device you initialize is one that the driver supports. + NI-DMM automatically performs this query, so setting this parameter is + not necessary. + Defined Values: + + +----------------+---+------------------+ + | True (default) | 1 | Perform ID Query | + +----------------+---+------------------+ + | False | 0 | Skip ID Query | + +----------------+---+------------------+ + + reset_device (bool): Specifies whether to reset the instrument during the initialization + procedure. + Defined Values: + + +----------------+---+--------------+ + | True (default) | 1 | Reset Device | + +----------------+---+--------------+ + | False | 0 | Don't Reset | + +----------------+---+--------------+ + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + grpc_options (nidmm.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + session (nidmm.Session): A session object representing the device. + + ''' + if grpc_options: + import nidmm._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_options fails, the error handler can reference it. + # And then here, once _init_with_options succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-DMM', grpc_options.grpc_channel, connected) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Initiates an acquisition. After you call this method, the DMM leaves + the Idle state and enters the Wait-for-Trigger state. If trigger is set + to Immediate mode, the DMM begins acquiring measurement data. Use + fetch, fetch_multi_point, or fetch_waveform to + retrieve the measurement data. + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Acquisition(self) + + def close(self): + '''close + + Closes the specified session and deallocates resources that it reserved. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Aborts a previously initiated measurement and returns the DMM to the + Idle state. + ''' + self._interpreter.abort() + + @ivi_synchronized + def configure_measurement_absolute(self, measurement_function, range, resolution_absolute): + r'''configure_measurement_absolute + + Configures the common properties of the measurement. These properties + include method, range, and + resolution_absolute. + + Args: + measurement_function (enums.Function): Specifies the **measurement_function** used to acquire the measurement. + The driver sets method to this value. + + range (float): Specifies the **range** for the method specified in the + **Measurement_Function** parameter. When frequency is specified in the + **Measurement_Function** parameter, you must supply the minimum + frequency expected in the **range** parameter. For example, you must + type in 100 Hz if you are measuring 101 Hz or higher. + For all other methods, you must supply a **range** that exceeds the + value that you are measuring. For example, you must type in 10 V if you + are measuring 9 V. **range** values are coerced up to the closest input + **range**. Refer to the `Devices + Overview `__ for a list of valid + ranges. The driver sets range to this value. The default is + 0.02 V. + + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIDMM_VAL_AUTO_RANGE_ON | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIDMM_VAL_AUTO_RANGE_OFF | -2.0 | NI-DMM sets the Range to the current auto_range_value and uses this range for all subsequent measurements until the measurement configuration is changed. | + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIDMM_VAL_AUTO_RANGE_ONCE | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The auto_range_value is stored and used for all subsequent measurements until the measurement configuration is changed. | + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + The NI 4050, NI 4060, and NI 4065 only support Auto Range when the + trigger and sample trigger are set to IMMEDIATE. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + resolution_absolute (float): Specifies the absolute resolution for the measurement. NI-DMM sets + resolution_absolute to this value. The PXIe-4080/4081/4082 + uses the resolution you specify. The NI 4065 and NI 4070/4071/4072 + ignore this parameter when the **Range** parameter is set to + NIDMM_VAL_AUTO_RANGE_ON (-1.0) or NIDMM_VAL_AUTO_RANGE_ONCE + (-3.0). The default is 0.001 V. + + Note: + NI-DMM ignores this parameter for capacitance and inductance + measurements on the NI 4072. To achieve better resolution for such + measurements, use the lc_number_meas_to_average + property. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(measurement_function) is not enums.Function: + raise TypeError('Parameter measurement_function must be of type ' + str(enums.Function)) + self._interpreter.configure_measurement_absolute(measurement_function, range, resolution_absolute) + + @ivi_synchronized + def configure_measurement_digits(self, measurement_function, range, resolution_digits): + r'''configure_measurement_digits + + Configures the common properties of the measurement. These properties + include method, range, and + resolution_digits. + + Args: + measurement_function (enums.Function): Specifies the **measurement_function** used to acquire the measurement. + The driver sets method to this value. + + range (float): Specifies the range for the method specified in the + **Measurement_Function** parameter. When frequency is specified in the + **Measurement_Function** parameter, you must supply the minimum + frequency expected in the **range** parameter. For example, you must + type in 100 Hz if you are measuring 101 Hz or higher. + For all other methods, you must supply a range that exceeds the value + that you are measuring. For example, you must type in 10 V if you are + measuring 9 V. range values are coerced up to the closest input range. + Refer to the `Devices + Overview `__ for a list of valid + ranges. The driver sets range to this value. The default is + 0.02 V. + + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIDMM_VAL_AUTO_RANGE_ON | -1.0 | NI-DMM performs an Auto Range before acquiring the measurement. | + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIDMM_VAL_AUTO_RANGE_OFF | -2.0 | NI-DMM sets the Range to the current auto_range_value and uses this range for all subsequent measurements until the measurement configuration is changed. | + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIDMM_VAL_AUTO_RANGE_ONCE | -3.0 | NI-DMM performs an Auto Range before acquiring the measurement. The auto_range_value is stored and used for all subsequent measurements until the measurement configuration is changed. | + +---------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + The NI 4050, NI 4060, and NI 4065 only support Auto Range when the + trigger and sample trigger are set to IMMEDIATE. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + resolution_digits (float): Specifies the resolution of the measurement in digits. The driver sets + the `Devices Overview `__ for a + list of valid ranges. The driver sets resolution_digits + property to this value. The PXIe-4080/4081/4082 uses the resolution you + specify. The NI 4065 and NI 4070/4071/4072 ignore this parameter when + the **Range** parameter is set to NIDMM_VAL_AUTO_RANGE_ON (-1.0) or + NIDMM_VAL_AUTO_RANGE_ONCE (-3.0). The default is 5½. + + Note: + NI-DMM ignores this parameter for capacitance and inductance + measurements on the NI 4072. To achieve better resolution for such + measurements, use the lc_number_meas_to_average + property. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(measurement_function) is not enums.Function: + raise TypeError('Parameter measurement_function must be of type ' + str(enums.Function)) + self._interpreter.configure_measurement_digits(measurement_function, range, resolution_digits) + + @ivi_synchronized + def configure_multi_point(self, trigger_count, sample_count, sample_trigger=enums.SampleTrigger.IMMEDIATE, sample_interval=hightime.timedelta(seconds=-1)): + r'''configure_multi_point + + Configures the properties for multipoint measurements. These properties + include trigger_count, sample_count, + sample_trigger, and sample_interval. + + For continuous acquisitions, set trigger_count or + sample_count to zero. For more information, refer to + `Multiple Point + Acquisitions `__, + `Triggering `__, and `Using + Switches `__. + + Args: + trigger_count (int): Sets the number of triggers you want the DMM to receive before returning + to the Idle state. The driver sets trigger_count to this + value. The default value is 1. + + sample_count (int): Sets the number of measurements the DMM makes in each measurement + sequence initiated by a trigger. The driver sets + sample_count to this value. The default value is 1. + + sample_trigger (enums.SampleTrigger): Specifies the **sample_trigger** source you want to use. The driver + sets sample_trigger to this value. The default is + Immediate. + + Note: + To determine which values are supported by each device, refer to the + `LabWindows/CVI Trigger + Routing `__ section. + + sample_interval (hightime.timedelta, datetime.timedelta, or float in seconds): Sets the amount of time in seconds the DMM waits between measurement + cycles. The driver sets sample_interval to this value. + Specify a sample interval to add settling time between measurement + cycles or to decrease the measurement rate. **sample_interval** only + applies when the **Sample_Trigger** is set to INTERVAL. + + On the NI 4060, the **sample_interval** value is used as the settling + time. When sample interval is set to 0, the DMM does not settle between + measurement cycles. The NI 4065 and NI 4070/4071/4072 use the value + specified in **sample_interval** as additional delay. The default value + (-1) ensures that the DMM settles for a recommended time. This is the + same as using an Immediate trigger. + + Note: This property is not used on the NI 4080/4081/4082 and the NI 4050. + + ''' + if type(sample_trigger) is not enums.SampleTrigger: + raise TypeError('Parameter sample_trigger must be of type ' + str(enums.SampleTrigger)) + sample_interval = _converters.convert_timedelta_to_seconds_real64(sample_interval) + self._interpreter.configure_multi_point(trigger_count, sample_count, sample_trigger, sample_interval) + + @ivi_synchronized + def configure_rtd_custom(self, rtd_a, rtd_b, rtd_c): + r'''configure_rtd_custom + + Configures the A, B, and C parameters for a custom RTD. + + Args: + rtd_a (float): Specifies the Callendar-Van Dusen A coefficient for RTD scaling when RTD + Type parameter is set to Custom in the configure_rtd_type method. + The default is 3.9083e-3 (Pt3851) + + rtd_b (float): Specifies the Callendar-Van Dusen B coefficient for RTD scaling when RTD + Type parameter is set to Custom in the configure_rtd_type method. + The default is -5.775e-7 (Pt3851). + + rtd_c (float): Specifies the Callendar-Van Dusen C coefficient for RTD scaling when RTD + Type parameter is set to Custom in the configure_rtd_type method. + The default is -4.183e-12 (Pt3851). + + ''' + self._interpreter.configure_rtd_custom(rtd_a, rtd_b, rtd_c) + + @ivi_synchronized + def configure_rtd_type(self, rtd_type, rtd_resistance): + r'''configure_rtd_type + + Configures the RTD Type and RTD Resistance parameters for an RTD. + + Args: + rtd_type (enums.RTDType): Specifies the type of RTD used to measure the temperature resistance. + NI-DMM uses this value to set the RTD Type property. The default is + RTDType.PT3851. + + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | Enum | Standards | Material | TCR (α) | Typical R\ :sub:`0` (Ω) | Notes | | + +=================================+===============================================+==========+=========+=========================+===============================================================================+===============================+ + | Callendar-Van Dusen Coefficient | | | | | | | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | RTDType.PT3851 | IEC-751 DIN 43760 BS 1904 ASTM-E1137 EN-60751 | Platinum | .003851 | 100 Ω 1000 Ω | A = 3.9083 × 10\ :sup:`–3` B = –5.775×10:sup:`–7` C = –4.183×10:sup:`–12` | Most common RTDs | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | RTDType.PT3750 | Low-cost vendor compliant RTD\* | Platinum | .003750 | 1000 Ω | A = 3.81 × 10\ :sup:`–3` B = –6.02×10:sup:`–7` C = –6.0×10:sup:`–12` | Low-cost RTD | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | RTDType.PT3916 | JISC 1604 | Platinum | .003916 | 100 Ω | A = 3.9739 × 10\ :sup:`–3` B = –5.870×10:sup:`–7` C = –4.4 ×10\ :sup:`–12` | Used in primarily in Japan | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | RTDType.PT3920 | US Industrial Standard D-100 American | Platinum | .003920 | 100 Ω | A = 3.9787 × 10\ :sup:`–3` B = –5.8686×10:sup:`–7` C = –4.167 ×10\ :sup:`–12` | Low-cost RTD | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | RTDType.PT3911 | US Industrial Standard American | Platinum | .003911 | 100 Ω | A = 3.9692 × 10\ :sup:`–3` B = –5.8495×10:sup:`–7` C = –4.233 ×10\ :sup:`–12` | Low-cost RTD | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | RTDType.PT3928 | ITS-90 | Platinum | .003928 | 100 Ω | A = 3.9888 × 10\ :sup:`–3` B = –5.915×10:sup:`–7` C = –3.85 ×10\ :sup:`–12` | The definition of temperature | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + | \*No standard. Check the TCR. | | | | | | | + +---------------------------------+-----------------------------------------------+----------+---------+-------------------------+-------------------------------------------------------------------------------+-------------------------------+ + + rtd_resistance (float): Specifies the RTD resistance in ohms at 0 °C. NI-DMM uses this value to + set the RTD Resistance property. The default is 100 (Ω). + + ''' + if type(rtd_type) is not enums.RTDType: + raise TypeError('Parameter rtd_type must be of type ' + str(enums.RTDType)) + self._interpreter.configure_rtd_type(rtd_type, rtd_resistance) + + @ivi_synchronized + def configure_thermistor_custom(self, thermistor_a, thermistor_b, thermistor_c): + r'''configure_thermistor_custom + + Configures the A, B, and C parameters for a custom thermistor. + + Args: + thermistor_a (float): Specifies the Steinhart-Hart A coefficient for thermistor scaling when + Thermistor Type is set to Custom in the ConfigureThermistorType + method. The default is 1.0295e-3 (44006). + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + thermistor_b (float): Specifies the Steinhart-Hart B coefficient for thermistor scaling when + Thermistor Type is set to Custom in the ConfigureThermistorType + method. The default is 2.391e-4 (44006). + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + thermistor_c (float): Specifies the Steinhart-Hart C coefficient for thermistor scaling when + Thermistor Type is set to Custom in the ConfigureThermistorType + method. The default is 1.568e-7 (44006). + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + ''' + self._interpreter.configure_thermistor_custom(thermistor_a, thermistor_b, thermistor_c) + + @ivi_synchronized + def configure_thermocouple(self, thermocouple_type, reference_junction_type=enums.ThermocoupleReferenceJunctionType.FIXED): + r'''configure_thermocouple + + Configures the thermocouple type and reference junction type for a + chosen thermocouple. + + Args: + thermocouple_type (enums.ThermocoupleType): Specifies the type of thermocouple used to measure the temperature. + NI-DMM uses this value to set the Thermocouple Type property. The + default is ThermocoupleType.J. + + +--------------------+---------------------+ + | ThermocoupleType.B | Thermocouple type B | + +--------------------+---------------------+ + | ThermocoupleType.E | Thermocouple type E | + +--------------------+---------------------+ + | ThermocoupleType.J | Thermocouple type J | + +--------------------+---------------------+ + | ThermocoupleType.K | Thermocouple type K | + +--------------------+---------------------+ + | ThermocoupleType.N | Thermocouple type N | + +--------------------+---------------------+ + | ThermocoupleType.R | Thermocouple type R | + +--------------------+---------------------+ + | ThermocoupleType.S | Thermocouple type S | + +--------------------+---------------------+ + | ThermocoupleType.T | Thermocouple type T | + +--------------------+---------------------+ + + reference_junction_type (enums.ThermocoupleReferenceJunctionType): Specifies the type of reference junction to be used in the reference + junction compensation of a thermocouple measurement. NI-DMM uses this + value to set the Reference Junction Type property. The only supported + value is ThermocoupleReferenceJunctionType.FIXED. + + ''' + if type(thermocouple_type) is not enums.ThermocoupleType: + raise TypeError('Parameter thermocouple_type must be of type ' + str(enums.ThermocoupleType)) + if type(reference_junction_type) is not enums.ThermocoupleReferenceJunctionType: + raise TypeError('Parameter reference_junction_type must be of type ' + str(enums.ThermocoupleReferenceJunctionType)) + self._interpreter.configure_thermocouple(thermocouple_type, reference_junction_type) + + @ivi_synchronized + def configure_trigger(self, trigger_source, trigger_delay=hightime.timedelta(seconds=-1)): + r'''configure_trigger + + Configures the DMM **Trigger_Source** and **Trigger_Delay**. Refer to + `Triggering `__ and `Using + Switches `__ for more + information. + + Args: + trigger_source (enums.TriggerSource): Specifies the **trigger_source** that initiates the acquisition. The + driver sets trigger_source to this value. Software + configures the DMM to wait until send_software_trigger is called + before triggering the DMM. + + Note: + To determine which values are supported by each device, refer to the + `LabWindows/CVI Trigger + Routing `__ section. + + trigger_delay (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time that the DMM waits after it has received a trigger + before taking a measurement. The driver sets the + trigger_delay property to this value. By default, + **trigger_delay** is NIDMM_VAL_AUTO_DELAY (-1), which means the DMM + waits an appropriate settling time before taking the measurement. On the + NI 4060, if you set **trigger_delay** to 0, the DMM does not settle + before taking the measurement. The NI 4065 and NI 4070/4071/4072 use the + value specified in **trigger_delay** as additional settling time. + + Note: + When using the NI 4050, **Trigger_Delay** must be set to + NIDMM_VAL_AUTO_DELAY (-1). + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(trigger_source) is not enums.TriggerSource: + raise TypeError('Parameter trigger_source must be of type ' + str(enums.TriggerSource)) + trigger_delay = _converters.convert_timedelta_to_seconds_real64(trigger_delay) + self._interpreter.configure_trigger(trigger_source, trigger_delay) + + @ivi_synchronized + def configure_waveform_acquisition(self, measurement_function, range, rate, waveform_points): + r'''configure_waveform_acquisition + + Configures the DMM for waveform acquisitions. This feature is supported + on the NI 4080/4081/4082 and the NI 4070/4071/4072. + + Args: + measurement_function (enums.Function): Specifies the **measurement_function** used in a waveform acquisition. + The driver sets method to this value. + + +-----------------------------------+------+------------------+ + | Method.WAVEFORM_VOLTAGE (default) | 1003 | Voltage Waveform | + +-----------------------------------+------+------------------+ + | Method.WAVEFORM_CURRENT | 1004 | Current Waveform | + +-----------------------------------+------+------------------+ + + range (float): Specifies the expected maximum amplitude of the input signal and sets + the **range** for the **Measurement_Function**. NI-DMM sets + range to this value. **range** values are coerced up to the + closest input **range**. The default is 10.0. + + For valid ranges refer to the topics in + `Devices `__. + + Auto-ranging is not supported during waveform acquisitions. + + rate (float): Specifies the **rate** of the acquisition in samples per second. NI-DMM + sets waveform_rate to this value. + + The valid **Range** is 10.0–1,800,000 S/s. **rate** values are coerced + to the closest integer divisor of 1,800,000. The default value is + 1,800,000. + + waveform_points (int): Specifies the number of points to acquire before the waveform + acquisition completes. NI-DMM sets waveform_points to this + value. + + To calculate the maximum and minimum number of waveform points that you + can acquire in one acquisition, refer to the `Waveform Acquisition + Measurement Cycle `__. + + The default value is 500. + + ''' + if type(measurement_function) is not enums.Function: + raise TypeError('Parameter measurement_function must be of type ' + str(enums.Function)) + self._interpreter.configure_waveform_acquisition(measurement_function, range, rate, waveform_points) + + @ivi_synchronized + def disable(self): + r'''disable + + Places the instrument in a quiescent state where it has minimal or no + impact on the system to which it is connected. If a measurement is in + progress when this method is called, the measurement is aborted. + ''' + self._interpreter.disable() + + @ivi_synchronized + def export_attribute_configuration_buffer(self): + r'''export_attribute_configuration_buffer + + Exports the property configuration of the session to the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DMM returns an + error. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + Returns: + configuration (bytes): Specifies the byte array buffer to be populated with the exported + property configuration. + + ''' + configuration = self._interpreter.export_attribute_configuration_buffer() + return _converters.convert_to_bytes(configuration) + + @ivi_synchronized + def export_attribute_configuration_file(self, file_path): + r'''export_attribute_configuration_file + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑DMM returns an + error. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + Args: + file_path (str): Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:**\ .nidmmconfig + + ''' + self._interpreter.export_attribute_configuration_file(file_path) + + @ivi_synchronized + def fetch(self, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''fetch + + Returns the value from a previously initiated measurement. You must call + _initiate before calling this method. Value is in base units. + + Args: + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + reading (float): The measured value returned from the DMM. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + reading = self._interpreter.fetch(maximum_time) + return reading + + @ivi_synchronized + def fetch_multi_point(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''fetch_multi_point + + Returns an array of values from a previously initiated multipoint + measurement. The number of measurements the DMM makes is determined by + the values you specify for the **Trigger_Count** and **Sample_Count** + parameters of configure_multi_point. You must first call + _initiate to initiate a measurement before calling this method. Values are in base units. + + Args: + array_size (int): Specifies the number of measurements to acquire. The maximum number of + measurements for a finite acquisition is the (**Trigger Count** x + **Sample Count**) parameters in configure_multi_point. + + For continuous acquisitions, up to 100,000 points can be returned at + once. The number of measurements can be a subset. The valid range is any + positive ViInt32. The default value is 1. + + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + reading_array (array.array("d")): An array of measurement values. + + Note: + The size of the **Reading_Array** must be at least the size that you + specify for the **Array_Size** parameter. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + reading_array = self._interpreter.fetch_multi_point(maximum_time, array_size) + return reading_array + + @ivi_synchronized + def fetch_waveform(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''fetch_waveform + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of + values from a previously initiated waveform acquisition. You must call + _initiate before calling this method. + + Args: + array_size (int): Specifies the number of waveform points to return. You specify the total + number of points that the DMM acquires in the **Waveform Points** + parameter of configure_waveform_acquisition. The default value is + 1. + + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + waveform_array (array.array("d")): **Waveform Array** is an array of measurement values stored in waveform + data type. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + waveform_array = self._interpreter.fetch_waveform(maximum_time, array_size) + return waveform_array + + @ivi_synchronized + def fetch_waveform_into(self, waveform_array, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''fetch_waveform_into + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, returns an array of + values from a previously initiated waveform acquisition. You must call + _initiate before calling this method. + + Args: + waveform_array (numpy.array(dtype=numpy.float64)): **Waveform Array** is an array of measurement values stored in waveform + data type. + + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + import numpy + + if type(waveform_array) is not numpy.ndarray: + raise TypeError('waveform_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_array))) + if numpy.isfortran(waveform_array) is True: + raise TypeError('waveform_array must be in C-order') + if waveform_array.dtype is not numpy.dtype('float64'): + raise TypeError('waveform_array must be numpy.ndarray of dtype=float64, is ' + str(waveform_array.dtype)) + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + self._interpreter.fetch_waveform_into(waveform_array, maximum_time) + + @ivi_synchronized + def _get_cal_date_and_time(self, cal_type): + r'''_get_cal_date_and_time + + Returns the date and time of the last calibration performed. + + Note: The NI 4050 and NI 4060 are not supported. + + Args: + cal_type (int): Specifies the type of calibration performed (external or + self-calibration). + + +-----------------------------------+---+----------------------+ + | NIDMM_VAL_INTERNAL_AREA (default) | 0 | Self-Calibration | + +-----------------------------------+---+----------------------+ + | NIDMM_VAL_EXTERNAL_AREA | 1 | External Calibration | + +-----------------------------------+---+----------------------+ + + Note: The NI 4065 does not support self-calibration. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + month (int): Indicates the **month** of the last calibration. + + day (int): Indicates the **day** of the last calibration. + + year (int): Indicates the **year** of the last calibration. + + hour (int): Indicates the **hour** of the last calibration. + + minute (int): Indicates the **minute** of the last calibration. + + ''' + month, day, year, hour, minute = self._interpreter.get_cal_date_and_time(cal_type) + return month, day, year, hour, minute + + @ivi_synchronized + def get_dev_temp(self, options=""): + r'''get_dev_temp + + Returns the current **Temperature** of the device. + + Note: The NI 4050 and NI 4060 are not supported. + + Args: + options (str): Reserved. + + + Returns: + temperature (float): Returns the current **temperature** of the device. + + ''' + temperature = self._interpreter.get_dev_temp(options) + return temperature + + @ivi_synchronized + def get_ext_cal_recommended_interval(self): + r'''get_ext_cal_recommended_interval + + Returns the recommended interval between external recalibration in + **Months**. + + Note: The NI 4050 and NI 4060 are not supported. + + Returns: + months (hightime.timedelta): Returns the recommended number of **months** between external + calibrations. + + ''' + months = self._interpreter.get_ext_cal_recommended_interval() + return _converters.convert_month_to_timedelta(months) + + @ivi_synchronized + def get_cal_date_and_time(self, cal_type): + '''get_cal_date_and_time + + Returns the date and time of the last calibration performed. + + Note: The NI 4050 and NI 4060 are not supported. + + Args: + cal_type (int): Specifies the type of calibration performed (external or self-calibration). + + +-----------------------------------+---+----------------------+ + | NIDMM_VAL_INTERNAL_AREA (default) | 0 | Self-Calibration | + +-----------------------------------+---+----------------------+ + | NIDMM_VAL_EXTERNAL_AREA | 1 | External Calibration | + +-----------------------------------+---+----------------------+ + + Note: The NI 4065 does not support self-calibration. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. + + ''' + month, day, year, hour, minute = self._get_cal_date_and_time(cal_type) + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def get_last_cal_temp(self, cal_type): + r'''get_last_cal_temp + + Returns the **Temperature** during the last calibration procedure. + + Note: The NI 4050 and NI 4060 are not supported. + + Args: + cal_type (int): Specifies the type of calibration performed (external or + self-calibration). + + +-----------------------------------+---+----------------------+ + | NIDMM_VAL_INTERNAL_AREA (default) | 0 | Self-Calibration | + +-----------------------------------+---+----------------------+ + | NIDMM_VAL_EXTERNAL_AREA | 1 | External Calibration | + +-----------------------------------+---+----------------------+ + + Note: The NI 4065 does not support self-calibration. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + temperature (float): Returns the **temperature** during the last calibration. + + ''' + temperature = self._interpreter.get_last_cal_temp(cal_type) + return temperature + + @ivi_synchronized + def get_self_cal_supported(self): + r'''get_self_cal_supported + + Returns a Boolean value that expresses whether or not the DMM that you + are using can perform self-calibration. + + Returns: + self_cal_supported (bool): Returns whether Self Cal is supported for the device specified by the + given session. + + +-------+---+-------------------------------------------------------------+ + | True | 1 | The DMM that you are using can perform self-calibration. | + +-------+---+-------------------------------------------------------------+ + | False | 0 | The DMM that you are using cannot perform self-calibration. | + +-------+---+-------------------------------------------------------------+ + + ''' + self_cal_supported = self._interpreter.get_self_cal_supported() + return self_cal_supported + + @ivi_synchronized + def import_attribute_configuration_buffer(self, configuration): + r'''import_attribute_configuration_buffer + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + Args: + configuration (bytes): Specifies the byte array buffer that contains the property + configuration to import. + + ''' + configuration = _converters.convert_to_bytes(configuration) + self._interpreter.import_attribute_configuration_buffer(configuration) + + @ivi_synchronized + def import_attribute_configuration_file(self, file_path): + r'''import_attribute_configuration_file + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers. + + **Coercion Behavior for Certain Devices** + + Imported and exported property configurations contain coerced values + for the following NI‑DMM devices: + + - PXI/PCI/PCIe/USB‑4065 + - PXI/PCI‑4070 + - PXI‑4071 + - PXI‑4072 + + NI‑DMM coerces property values when the value you set is within the + allowed range for the property but is not one of the discrete valid + values the property supports. For example, for a property that + coerces values up, if you choose a value of 4 when the adjacent valid + values are 1 and 10, the property coerces the value to 10. + + **Related Topics:** + + `Using Properties and Properties with + NI‑DMM `__ + + `Setting Properties Before Reading + Properties `__ + + Note: Not supported on the PCMCIA‑4050 or the PXI/PCI‑4060. + + Args: + file_path (str): Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:**\ .nidmmconfig + + ''' + self._interpreter.import_attribute_configuration_file(file_path) + + def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): + r'''_init_with_options + + This method completes the following tasks: + + - Creates a new IVI instrument driver session and, optionally, sets the + initial state of the following session properties: + RANGE_CHECK, QUERY_INSTR_STATUS, + CACHE, simulate, + RECORD_COERCIONS. + - Opens a session to the device you specify for the **Resource_Name** + parameter. If the **ID_Query** parameter is set to True, this + method queries the instrument ID and checks that it is valid for + this instrument driver. + - If the **Reset_Device** parameter is set to True, this method + resets the instrument to a known state. Sends initialization commands + to set the instrument to the state necessary for the operation of the + instrument driver. + - Returns a ViSession handle that you use to identify the instrument in + all subsequent instrument driver method calls. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + resource_name (str): Caution: + All IVI names for the **Resource_Name**, such as logical names or + virtual names, are case-sensitive. If you use logical names, driver + session names, or virtual names in your program, you must make sure that + the name you use matches the name in the IVI Configuration Store file + exactly, without any variations in the case of the characters in the + name. + + | Contains the **resource_name** of the device to initialize. The + **resource_name** is assigned in Measurement & Automation Explorer + (MAX). Refer to `Related + Documentation `__ + for the *NI Digital Multimeters Getting Started Guide* for more + information about configuring and testing the DMM in MAX. + | Valid Syntax: + + - NI-DAQmx name + - DAQ::NI-DAQmx name[::INSTR] + - DAQ::Traditional NI-DAQ device number[::INSTR] + - IVI logical name + + id_query (bool): Verifies that the device you initialize is one that the driver supports. + NI-DMM automatically performs this query, so setting this parameter is + not necessary. + Defined Values: + + +----------------+---+------------------+ + | True (default) | 1 | Perform ID Query | + +----------------+---+------------------+ + | False | 0 | Skip ID Query | + +----------------+---+------------------+ + + reset_device (bool): Specifies whether to reset the instrument during the initialization + procedure. + Defined Values: + + +----------------+---+--------------+ + | True (default) | 1 | Reset Device | + +----------------+---+--------------+ + | False | 0 | Don't Reset | + +----------------+---+--------------+ + + option_string (dict): | Sets the initial value of certain properties for the session. The + following table specifies the property name, property constant, and + default value for each property that you can use in this parameter: + + The format of this string is, "AttributeName=Value." To set multiple + properties, separate their assignments with a comma. + + If you pass NULL or an empty string for this parameter, the session uses + the default values for the properties. You can override the default + values by assigning a value explicitly in an **option_string** + parameter. You do not have to specify all of the properties and may + leave any of them out (those left out use the default value). + + Refer to `Simulating NI Digital + Multimeters `__ for more + information. + + +------------------+--------------------+-------------------+----+ + | Check | RANGE_CHECK | True | 1 | + +------------------+--------------------+-------------------+----+ + | QueryInstrStatus | QUERY_INSTR_STATUS | False | 0 | + +------------------+--------------------+-------------------+----+ + | Cache | CACHE | True | 1 | + +------------------+--------------------+-------------------+----+ + | Simulate | simulate | False | 0 | + +------------------+--------------------+-------------------+----+ + | RecordCoercions | RECORD_COERCIONS | False | 0 | + +------------------+--------------------+-------------------+----+ + | DriverSetup | driver_setup | "" (empty string) | "" | + +------------------+--------------------+-------------------+----+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + + Returns: + vi (int): Returns a ViSession handle that you use to identify the instrument in + all subsequent instrument driver method calls. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) + return vi + + @ivi_synchronized + def _initiate(self): + r'''_initiate + + Initiates an acquisition. After you call this method, the DMM leaves + the Idle state and enters the Wait-for-Trigger state. If trigger is set + to Immediate mode, the DMM begins acquiring measurement data. Use + fetch, fetch_multi_point, or fetch_waveform to + retrieve the measurement data. + ''' + self._interpreter.initiate() + + @ivi_synchronized + def perform_open_cable_comp(self): + r'''perform_open_cable_comp + + For the NI 4082 and NI 4072 only, performs the open cable compensation + measurements for the current capacitance/inductance range, and returns + open cable compensation **Conductance** and **Susceptance** values. You + can use the return values of this method as inputs to + ConfigureOpenCableCompValues. + + This method returns an error if the value of the method + property is not set to Method.CAPACITANCE (1005) or + Method.INDUCTANCE (1006). + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Returns: + conductance (float): **conductance** is the measured value of open cable compensation + **conductance**. + + susceptance (float): **susceptance** is the measured value of open cable compensation + **susceptance**. + + ''' + conductance, susceptance = self._interpreter.perform_open_cable_comp() + return conductance, susceptance + + @ivi_synchronized + def perform_short_cable_comp(self): + r'''perform_short_cable_comp + + Performs the short cable compensation measurements for the current + capacitance/inductance range, and returns short cable compensation + **Resistance** and **Reactance** values. You can use the return values + of this method as inputs to ConfigureShortCableCompValues. + + This method returns an error if the value of the method + property is not set to Method.CAPACITANCE (1005) or + Method.INDUCTANCE (1006). + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Returns: + resistance (float): **resistance** is the measured value of short cable compensation + **resistance**. + + reactance (float): **reactance** is the measured value of short cable compensation + **reactance**. + + ''' + resistance, reactance = self._interpreter.perform_short_cable_comp() + return resistance, reactance + + @ivi_synchronized + def read(self, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''read + + Acquires a single measurement and returns the measured value in base units. + + Args: + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + reading (float): The measured value returned from the DMM. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + reading = self._interpreter.read(maximum_time) + return reading + + @ivi_synchronized + def read_multi_point(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''read_multi_point + + Acquires multiple measurements and returns an array of measured values. + The number of measurements the DMM makes is determined by the values you + specify for the **Trigger_Count** and **Sample_Count** parameters in + configure_multi_point. + + Args: + array_size (int): Specifies the number of measurements to acquire. The maximum number of + measurements for a finite acquisition is the (**Trigger Count** x + **Sample Count**) parameters in configure_multi_point. + + For continuous acquisitions, up to 100,000 points can be returned at + once. The number of measurements can be a subset. The valid range is any + positive ViInt32. The default value is 1. + + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + reading_array (array.array("d")): An array of measurement values. + + Note: + The size of the **Reading_Array** must be at least the size that you + specify for the **Array_Size** parameter. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + reading_array = self._interpreter.read_multi_point(maximum_time, array_size) + return reading_array + + @ivi_synchronized + def read_status(self): + r'''read_status + + Returns measurement backlog and acquisition status. Use this method to + determine how many measurements are available before calling + fetch, fetch_multi_point, or fetch_waveform. + + Note: The NI 4050 is not supported. + + Returns: + acquisition_backlog (int): The number of measurements available to be read. If the backlog + continues to increase, data is eventually overwritten, resulting in an + error. + + Note: + On the NI 4060, the **Backlog** does not increase when autoranging. On + the NI 4065, the **Backlog** does not increase when Range is set to AUTO + RANGE ON (-1), or before the first point is fetched when Range is set to + AUTO RANGE ONCE (-3). These behaviors are due to the autorange model of + the devices. + + acquisition_status (enums.AcquisitionStatus): Indicates status of the acquisition. The following table shows the + acquisition states: + + +---+----------------------------+ + | 0 | Running | + +---+----------------------------+ + | 1 | Finished with backlog | + +---+----------------------------+ + | 2 | Finished with no backlog | + +---+----------------------------+ + | 3 | Paused | + +---+----------------------------+ + | 4 | No acquisition in progress | + +---+----------------------------+ + + ''' + acquisition_backlog, acquisition_status = self._interpreter.read_status() + return acquisition_backlog, acquisition_status + + @ivi_synchronized + def read_waveform(self, array_size, maximum_time=hightime.timedelta(milliseconds=-1)): + r'''read_waveform + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, acquires a waveform + and returns data as an array of values or as a waveform data type. The + number of elements in the **Waveform_Array** is determined by the + values you specify for the **Waveform_Points** parameter in + configure_waveform_acquisition. + + Args: + array_size (int): Specifies the number of waveform points to return. You specify the total + number of points that the DMM acquires in the **Waveform Points** + parameter of configure_waveform_acquisition. The default value is + 1. + + maximum_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the **maximum_time** allowed for this method to complete in + milliseconds. If the method does not complete within this time + interval, the method returns the NIDMM_ERROR_MAX_TIME_EXCEEDED + error code. This may happen if an external trigger has not been + received, or if the specified timeout is not long enough for the + acquisition to complete. + + The valid range is 0–86400000. The default value is + NIDMM_VAL_TIME_LIMIT_AUTO (-1). The DMM calculates the timeout + automatically. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + waveform_array (array.array("d")): An array of measurement values. + + Note: + The size of the **Waveform_Array** must be at least the size that you + specify for the **Array_Size** parameter. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + waveform_array = self._interpreter.read_waveform(maximum_time, array_size) + return waveform_array + + @ivi_synchronized + def reset_with_defaults(self): + r'''reset_with_defaults + + Resets the instrument to a known state and sends initialization commands + to the DMM. The initialization commands set the DMM settings to the + state necessary for the operation of NI-DMM. All user-defined default + values associated with a logical name are applied after setting the DMM. + ''' + self._interpreter.reset_with_defaults() + + @ivi_synchronized + def self_cal(self): + r'''self_cal + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, executes the + self-calibration routine to maintain measurement accuracy. + + Note: + This method calls reset, and any configurations previous to + the call will be lost. All properties will be set to their default + values after the call returns. + ''' + self._interpreter.self_cal() + + @ivi_synchronized + def send_software_trigger(self): + r'''send_software_trigger + + Sends a command to trigger the DMM. Call this method if you have + configured either the trigger_source or + sample_trigger properties. If the + trigger_source and/or sample_trigger + properties are set to NIDMM_VAL_EXTERNAL or NIDMM_VAL_TTL\ *n*, you + can use this method to override the trigger source that you configured + and trigger the device. The NI 4050 and NI 4060 are not supported. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + self._interpreter.send_software_trigger() + + def _close(self): + r'''_close + + Closes the specified session and deallocates resources that it reserved. + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Performs a self-test on the DMM to ensure that the DMM is functioning + properly. Self-test does not calibrate the DMM. Zero + indicates success. + + On the NI 4080/4082 and NI 4070/4072, the error code 1013 indicates that + you should check the fuse and replace it, if necessary. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + Note: Self-test does not check the fuse on the NI 4065, NI 4071, and NI 4081. Hence, even if the fuse is blown on the device, self-test does not return error code 1013. + + Note: This method calls reset, and any configurations previous to the call will be lost. All properties will be set to their default values after the call returns. + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def reset(self): + r'''reset + + Resets the instrument to a known state and sends initialization commands + to the instrument. The initialization commands set instrument settings + to the state necessary for the operation of the instrument driver. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Performs a self-test on the DMM to ensure that the DMM is functioning + properly. Self-test does not calibrate the DMM. + + Note: + This method calls reset, and any configurations previous to + the call will be lost. All properties will be set to their default + values after the call returns. + + Returns: + self_test_result (int): Contains the value returned from the instrument self-test. Zero + indicates success. + + On the NI 4080/4082 and NI 4070/4072, the error code 1013 indicates that + you should check the fuse and replace it, if necessary. + + Note: + Self-test does not check the fuse on the NI 4065, NI 4071, and + NI 4081. Hence, even if the fuse is blown on the device, self-test does + not return error code 1013. + + self_test_message (str): This parameter contains the string returned from the instrument + self-test. The array must contain at least 256 elements. + + For the NI 4050 and NI 4060, the error codes returned for self-test + failures include the following: + + - NIDMM_ERROR_AC_TEST_FAILURE + - NIDMM_ERROR_DC_TEST_FAILURE + - NIDMM_ERROR_RESISTANCE_TEST_FAILURE + + These error codes indicate that the DMM should be repaired. + + For the NI 4080/4081/4082 and the NI 4070/4071/4072, the error code + returned for a self-test failure is NIDMM_ERROR_SELF_TEST_FAILURE. + This error code indicates that the DMM should be repaired. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/nidmm/nidmm/unit_tests/_matchers.py b/generated/nidmm/nidmm/unit_tests/_matchers.py new file mode 100644 index 0000000000..fa56c4cc55 --- /dev/null +++ b/generated/nidmm/nidmm/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nidmm._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nidmm/nidmm/unit_tests/_mock_helper.py b/generated/nidmm/nidmm/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..d648475dc2 --- /dev/null +++ b/generated/nidmm/nidmm/unit_tests/_mock_helper.py @@ -0,0 +1,745 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['Abort'] = {} + self._defaults['Abort']['return'] = 0 + self._defaults['ConfigureMeasurementAbsolute'] = {} + self._defaults['ConfigureMeasurementAbsolute']['return'] = 0 + self._defaults['ConfigureMeasurementDigits'] = {} + self._defaults['ConfigureMeasurementDigits']['return'] = 0 + self._defaults['ConfigureMultiPoint'] = {} + self._defaults['ConfigureMultiPoint']['return'] = 0 + self._defaults['ConfigureRTDCustom'] = {} + self._defaults['ConfigureRTDCustom']['return'] = 0 + self._defaults['ConfigureRTDType'] = {} + self._defaults['ConfigureRTDType']['return'] = 0 + self._defaults['ConfigureThermistorCustom'] = {} + self._defaults['ConfigureThermistorCustom']['return'] = 0 + self._defaults['ConfigureThermocouple'] = {} + self._defaults['ConfigureThermocouple']['return'] = 0 + self._defaults['ConfigureTrigger'] = {} + self._defaults['ConfigureTrigger']['return'] = 0 + self._defaults['ConfigureWaveformAcquisition'] = {} + self._defaults['ConfigureWaveformAcquisition']['return'] = 0 + self._defaults['Disable'] = {} + self._defaults['Disable']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer'] = {} + self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None + self._defaults['ExportAttributeConfigurationFile'] = {} + self._defaults['ExportAttributeConfigurationFile']['return'] = 0 + self._defaults['Fetch'] = {} + self._defaults['Fetch']['return'] = 0 + self._defaults['Fetch']['reading'] = None + self._defaults['FetchMultiPoint'] = {} + self._defaults['FetchMultiPoint']['return'] = 0 + self._defaults['FetchMultiPoint']['readingArray'] = None + self._defaults['FetchMultiPoint']['actualNumberOfPoints'] = None + self._defaults['FetchWaveform'] = {} + self._defaults['FetchWaveform']['return'] = 0 + self._defaults['FetchWaveform']['waveformArray'] = None + self._defaults['FetchWaveform']['actualNumberOfPoints'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['attributeValue'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['attributeValue'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['attributeValue'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['attributeValue'] = None + self._defaults['GetCalDateAndTime'] = {} + self._defaults['GetCalDateAndTime']['return'] = 0 + self._defaults['GetCalDateAndTime']['month'] = None + self._defaults['GetCalDateAndTime']['day'] = None + self._defaults['GetCalDateAndTime']['year'] = None + self._defaults['GetCalDateAndTime']['hour'] = None + self._defaults['GetCalDateAndTime']['minute'] = None + self._defaults['GetDevTemp'] = {} + self._defaults['GetDevTemp']['return'] = 0 + self._defaults['GetDevTemp']['temperature'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['description'] = None + self._defaults['GetExtCalRecommendedInterval'] = {} + self._defaults['GetExtCalRecommendedInterval']['return'] = 0 + self._defaults['GetExtCalRecommendedInterval']['months'] = None + self._defaults['GetLastCalTemp'] = {} + self._defaults['GetLastCalTemp']['return'] = 0 + self._defaults['GetLastCalTemp']['temperature'] = None + self._defaults['GetSelfCalSupported'] = {} + self._defaults['GetSelfCalSupported']['return'] = 0 + self._defaults['GetSelfCalSupported']['selfCalSupported'] = None + self._defaults['ImportAttributeConfigurationBuffer'] = {} + self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ImportAttributeConfigurationFile'] = {} + self._defaults['ImportAttributeConfigurationFile']['return'] = 0 + self._defaults['InitWithOptions'] = {} + self._defaults['InitWithOptions']['return'] = 0 + self._defaults['InitWithOptions']['vi'] = None + self._defaults['Initiate'] = {} + self._defaults['Initiate']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['PerformOpenCableComp'] = {} + self._defaults['PerformOpenCableComp']['return'] = 0 + self._defaults['PerformOpenCableComp']['conductance'] = None + self._defaults['PerformOpenCableComp']['susceptance'] = None + self._defaults['PerformShortCableComp'] = {} + self._defaults['PerformShortCableComp']['return'] = 0 + self._defaults['PerformShortCableComp']['resistance'] = None + self._defaults['PerformShortCableComp']['reactance'] = None + self._defaults['Read'] = {} + self._defaults['Read']['return'] = 0 + self._defaults['Read']['reading'] = None + self._defaults['ReadMultiPoint'] = {} + self._defaults['ReadMultiPoint']['return'] = 0 + self._defaults['ReadMultiPoint']['readingArray'] = None + self._defaults['ReadMultiPoint']['actualNumberOfPoints'] = None + self._defaults['ReadStatus'] = {} + self._defaults['ReadStatus']['return'] = 0 + self._defaults['ReadStatus']['acquisitionBacklog'] = None + self._defaults['ReadStatus']['acquisitionStatus'] = None + self._defaults['ReadWaveform'] = {} + self._defaults['ReadWaveform']['return'] = 0 + self._defaults['ReadWaveform']['waveformArray'] = None + self._defaults['ReadWaveform']['actualNumberOfPoints'] = None + self._defaults['ResetWithDefaults'] = {} + self._defaults['ResetWithDefaults']['return'] = 0 + self._defaults['SelfCal'] = {} + self._defaults['SelfCal']['return'] = 0 + self._defaults['SendSoftwareTrigger'] = {} + self._defaults['SendSoftwareTrigger']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niDMM_Abort(self, vi): # noqa: N802 + if self._defaults['Abort']['return'] != 0: + return self._defaults['Abort']['return'] + return self._defaults['Abort']['return'] + + def niDMM_ConfigureMeasurementAbsolute(self, vi, measurement_function, range, resolution_absolute): # noqa: N802 + if self._defaults['ConfigureMeasurementAbsolute']['return'] != 0: + return self._defaults['ConfigureMeasurementAbsolute']['return'] + return self._defaults['ConfigureMeasurementAbsolute']['return'] + + def niDMM_ConfigureMeasurementDigits(self, vi, measurement_function, range, resolution_digits): # noqa: N802 + if self._defaults['ConfigureMeasurementDigits']['return'] != 0: + return self._defaults['ConfigureMeasurementDigits']['return'] + return self._defaults['ConfigureMeasurementDigits']['return'] + + def niDMM_ConfigureMultiPoint(self, vi, trigger_count, sample_count, sample_trigger, sample_interval): # noqa: N802 + if self._defaults['ConfigureMultiPoint']['return'] != 0: + return self._defaults['ConfigureMultiPoint']['return'] + return self._defaults['ConfigureMultiPoint']['return'] + + def niDMM_ConfigureRTDCustom(self, vi, rtd_a, rtd_b, rtd_c): # noqa: N802 + if self._defaults['ConfigureRTDCustom']['return'] != 0: + return self._defaults['ConfigureRTDCustom']['return'] + return self._defaults['ConfigureRTDCustom']['return'] + + def niDMM_ConfigureRTDType(self, vi, rtd_type, rtd_resistance): # noqa: N802 + if self._defaults['ConfigureRTDType']['return'] != 0: + return self._defaults['ConfigureRTDType']['return'] + return self._defaults['ConfigureRTDType']['return'] + + def niDMM_ConfigureThermistorCustom(self, vi, thermistor_a, thermistor_b, thermistor_c): # noqa: N802 + if self._defaults['ConfigureThermistorCustom']['return'] != 0: + return self._defaults['ConfigureThermistorCustom']['return'] + return self._defaults['ConfigureThermistorCustom']['return'] + + def niDMM_ConfigureThermocouple(self, vi, thermocouple_type, reference_junction_type): # noqa: N802 + if self._defaults['ConfigureThermocouple']['return'] != 0: + return self._defaults['ConfigureThermocouple']['return'] + return self._defaults['ConfigureThermocouple']['return'] + + def niDMM_ConfigureTrigger(self, vi, trigger_source, trigger_delay): # noqa: N802 + if self._defaults['ConfigureTrigger']['return'] != 0: + return self._defaults['ConfigureTrigger']['return'] + return self._defaults['ConfigureTrigger']['return'] + + def niDMM_ConfigureWaveformAcquisition(self, vi, measurement_function, range, rate, waveform_points): # noqa: N802 + if self._defaults['ConfigureWaveformAcquisition']['return'] != 0: + return self._defaults['ConfigureWaveformAcquisition']['return'] + return self._defaults['ConfigureWaveformAcquisition']['return'] + + def niDMM_Disable(self, vi): # noqa: N802 + if self._defaults['Disable']['return'] != 0: + return self._defaults['Disable']['return'] + return self._defaults['Disable']['return'] + + def niDMM_ExportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + # configuration + if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: + raise MockFunctionCallError("niDMM_ExportAttributeConfigurationBuffer", param='configuration') + if size.value == 0: + return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) + try: + configuration_ref = configuration.contents + except AttributeError: + configuration_ref = configuration + for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): + configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + + def niDMM_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ExportAttributeConfigurationFile']['return'] + return self._defaults['ExportAttributeConfigurationFile']['return'] + + def niDMM_Fetch(self, vi, maximum_time, reading): # noqa: N802 + if self._defaults['Fetch']['return'] != 0: + return self._defaults['Fetch']['return'] + # reading + if self._defaults['Fetch']['reading'] is None: + raise MockFunctionCallError("niDMM_Fetch", param='reading') + if reading is not None: + reading.contents.value = self._defaults['Fetch']['reading'] + return self._defaults['Fetch']['return'] + + def niDMM_FetchMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 + if self._defaults['FetchMultiPoint']['return'] != 0: + return self._defaults['FetchMultiPoint']['return'] + # reading_array + if self._defaults['FetchMultiPoint']['readingArray'] is None: + raise MockFunctionCallError("niDMM_FetchMultiPoint", param='readingArray') + test_value = self._defaults['FetchMultiPoint']['readingArray'] + try: + reading_array_ref = reading_array.contents + except AttributeError: + reading_array_ref = reading_array + assert len(reading_array_ref) >= len(test_value) + for i in range(len(test_value)): + reading_array_ref[i] = test_value[i] + # actual_number_of_points + if self._defaults['FetchMultiPoint']['actualNumberOfPoints'] is None: + raise MockFunctionCallError("niDMM_FetchMultiPoint", param='actualNumberOfPoints') + if actual_number_of_points is not None: + actual_number_of_points.contents.value = self._defaults['FetchMultiPoint']['actualNumberOfPoints'] + return self._defaults['FetchMultiPoint']['return'] + + def niDMM_FetchWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 + if self._defaults['FetchWaveform']['return'] != 0: + return self._defaults['FetchWaveform']['return'] + # waveform_array + if self._defaults['FetchWaveform']['waveformArray'] is None: + raise MockFunctionCallError("niDMM_FetchWaveform", param='waveformArray') + test_value = self._defaults['FetchWaveform']['waveformArray'] + try: + waveform_array_ref = waveform_array.contents + except AttributeError: + waveform_array_ref = waveform_array + assert len(waveform_array_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_array_ref[i] = test_value[i] + # actual_number_of_points + if self._defaults['FetchWaveform']['actualNumberOfPoints'] is None: + raise MockFunctionCallError("niDMM_FetchWaveform", param='actualNumberOfPoints') + if actual_number_of_points is not None: + actual_number_of_points.contents.value = self._defaults['FetchWaveform']['actualNumberOfPoints'] + return self._defaults['FetchWaveform']['return'] + + def niDMM_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # attribute_value + if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: + raise MockFunctionCallError("niDMM_GetAttributeViBoolean", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niDMM_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # attribute_value + if self._defaults['GetAttributeViInt32']['attributeValue'] is None: + raise MockFunctionCallError("niDMM_GetAttributeViInt32", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] + return self._defaults['GetAttributeViInt32']['return'] + + def niDMM_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # attribute_value + if self._defaults['GetAttributeViReal64']['attributeValue'] is None: + raise MockFunctionCallError("niDMM_GetAttributeViReal64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] + return self._defaults['GetAttributeViReal64']['return'] + + def niDMM_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # attribute_value + if self._defaults['GetAttributeViString']['attributeValue'] is None: + raise MockFunctionCallError("niDMM_GetAttributeViString", param='attributeValue') + if buffer_size.value == 0: + return len(self._defaults['GetAttributeViString']['attributeValue']) + attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niDMM_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 + if self._defaults['GetCalDateAndTime']['return'] != 0: + return self._defaults['GetCalDateAndTime']['return'] + # month + if self._defaults['GetCalDateAndTime']['month'] is None: + raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetCalDateAndTime']['month'] + # day + if self._defaults['GetCalDateAndTime']['day'] is None: + raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetCalDateAndTime']['day'] + # year + if self._defaults['GetCalDateAndTime']['year'] is None: + raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetCalDateAndTime']['year'] + # hour + if self._defaults['GetCalDateAndTime']['hour'] is None: + raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetCalDateAndTime']['hour'] + # minute + if self._defaults['GetCalDateAndTime']['minute'] is None: + raise MockFunctionCallError("niDMM_GetCalDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetCalDateAndTime']['minute'] + return self._defaults['GetCalDateAndTime']['return'] + + def niDMM_GetDevTemp(self, vi, options, temperature): # noqa: N802 + if self._defaults['GetDevTemp']['return'] != 0: + return self._defaults['GetDevTemp']['return'] + # temperature + if self._defaults['GetDevTemp']['temperature'] is None: + raise MockFunctionCallError("niDMM_GetDevTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetDevTemp']['temperature'] + return self._defaults['GetDevTemp']['return'] + + def niDMM_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niDMM_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # description + if self._defaults['GetError']['description'] is None: + raise MockFunctionCallError("niDMM_GetError", param='description') + if buffer_size.value == 0: + return len(self._defaults['GetError']['description']) + description.value = self._defaults['GetError']['description'].encode('ascii') + return self._defaults['GetError']['return'] + + def niDMM_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: + return self._defaults['GetExtCalRecommendedInterval']['return'] + # months + if self._defaults['GetExtCalRecommendedInterval']['months'] is None: + raise MockFunctionCallError("niDMM_GetExtCalRecommendedInterval", param='months') + if months is not None: + months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] + return self._defaults['GetExtCalRecommendedInterval']['return'] + + def niDMM_GetLastCalTemp(self, vi, cal_type, temperature): # noqa: N802 + if self._defaults['GetLastCalTemp']['return'] != 0: + return self._defaults['GetLastCalTemp']['return'] + # temperature + if self._defaults['GetLastCalTemp']['temperature'] is None: + raise MockFunctionCallError("niDMM_GetLastCalTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetLastCalTemp']['temperature'] + return self._defaults['GetLastCalTemp']['return'] + + def niDMM_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 + if self._defaults['GetSelfCalSupported']['return'] != 0: + return self._defaults['GetSelfCalSupported']['return'] + # self_cal_supported + if self._defaults['GetSelfCalSupported']['selfCalSupported'] is None: + raise MockFunctionCallError("niDMM_GetSelfCalSupported", param='selfCalSupported') + if self_cal_supported is not None: + self_cal_supported.contents.value = self._defaults['GetSelfCalSupported']['selfCalSupported'] + return self._defaults['GetSelfCalSupported']['return'] + + def niDMM_ImportAttributeConfigurationBuffer(self, vi, size, configuration): # noqa: N802 + if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + + def niDMM_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ImportAttributeConfigurationFile']['return'] + return self._defaults['ImportAttributeConfigurationFile']['return'] + + def niDMM_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 + if self._defaults['InitWithOptions']['return'] != 0: + return self._defaults['InitWithOptions']['return'] + # vi + if self._defaults['InitWithOptions']['vi'] is None: + raise MockFunctionCallError("niDMM_InitWithOptions", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitWithOptions']['vi'] + return self._defaults['InitWithOptions']['return'] + + def niDMM_Initiate(self, vi): # noqa: N802 + if self._defaults['Initiate']['return'] != 0: + return self._defaults['Initiate']['return'] + return self._defaults['Initiate']['return'] + + def niDMM_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niDMM_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niDMM_PerformOpenCableComp(self, vi, conductance, susceptance): # noqa: N802 + if self._defaults['PerformOpenCableComp']['return'] != 0: + return self._defaults['PerformOpenCableComp']['return'] + # conductance + if self._defaults['PerformOpenCableComp']['conductance'] is None: + raise MockFunctionCallError("niDMM_PerformOpenCableComp", param='conductance') + if conductance is not None: + conductance.contents.value = self._defaults['PerformOpenCableComp']['conductance'] + # susceptance + if self._defaults['PerformOpenCableComp']['susceptance'] is None: + raise MockFunctionCallError("niDMM_PerformOpenCableComp", param='susceptance') + if susceptance is not None: + susceptance.contents.value = self._defaults['PerformOpenCableComp']['susceptance'] + return self._defaults['PerformOpenCableComp']['return'] + + def niDMM_PerformShortCableComp(self, vi, resistance, reactance): # noqa: N802 + if self._defaults['PerformShortCableComp']['return'] != 0: + return self._defaults['PerformShortCableComp']['return'] + # resistance + if self._defaults['PerformShortCableComp']['resistance'] is None: + raise MockFunctionCallError("niDMM_PerformShortCableComp", param='resistance') + if resistance is not None: + resistance.contents.value = self._defaults['PerformShortCableComp']['resistance'] + # reactance + if self._defaults['PerformShortCableComp']['reactance'] is None: + raise MockFunctionCallError("niDMM_PerformShortCableComp", param='reactance') + if reactance is not None: + reactance.contents.value = self._defaults['PerformShortCableComp']['reactance'] + return self._defaults['PerformShortCableComp']['return'] + + def niDMM_Read(self, vi, maximum_time, reading): # noqa: N802 + if self._defaults['Read']['return'] != 0: + return self._defaults['Read']['return'] + # reading + if self._defaults['Read']['reading'] is None: + raise MockFunctionCallError("niDMM_Read", param='reading') + if reading is not None: + reading.contents.value = self._defaults['Read']['reading'] + return self._defaults['Read']['return'] + + def niDMM_ReadMultiPoint(self, vi, maximum_time, array_size, reading_array, actual_number_of_points): # noqa: N802 + if self._defaults['ReadMultiPoint']['return'] != 0: + return self._defaults['ReadMultiPoint']['return'] + # reading_array + if self._defaults['ReadMultiPoint']['readingArray'] is None: + raise MockFunctionCallError("niDMM_ReadMultiPoint", param='readingArray') + test_value = self._defaults['ReadMultiPoint']['readingArray'] + try: + reading_array_ref = reading_array.contents + except AttributeError: + reading_array_ref = reading_array + assert len(reading_array_ref) >= len(test_value) + for i in range(len(test_value)): + reading_array_ref[i] = test_value[i] + # actual_number_of_points + if self._defaults['ReadMultiPoint']['actualNumberOfPoints'] is None: + raise MockFunctionCallError("niDMM_ReadMultiPoint", param='actualNumberOfPoints') + if actual_number_of_points is not None: + actual_number_of_points.contents.value = self._defaults['ReadMultiPoint']['actualNumberOfPoints'] + return self._defaults['ReadMultiPoint']['return'] + + def niDMM_ReadStatus(self, vi, acquisition_backlog, acquisition_status): # noqa: N802 + if self._defaults['ReadStatus']['return'] != 0: + return self._defaults['ReadStatus']['return'] + # acquisition_backlog + if self._defaults['ReadStatus']['acquisitionBacklog'] is None: + raise MockFunctionCallError("niDMM_ReadStatus", param='acquisitionBacklog') + if acquisition_backlog is not None: + acquisition_backlog.contents.value = self._defaults['ReadStatus']['acquisitionBacklog'] + # acquisition_status + if self._defaults['ReadStatus']['acquisitionStatus'] is None: + raise MockFunctionCallError("niDMM_ReadStatus", param='acquisitionStatus') + if acquisition_status is not None: + acquisition_status.contents.value = self._defaults['ReadStatus']['acquisitionStatus'] + return self._defaults['ReadStatus']['return'] + + def niDMM_ReadWaveform(self, vi, maximum_time, array_size, waveform_array, actual_number_of_points): # noqa: N802 + if self._defaults['ReadWaveform']['return'] != 0: + return self._defaults['ReadWaveform']['return'] + # waveform_array + if self._defaults['ReadWaveform']['waveformArray'] is None: + raise MockFunctionCallError("niDMM_ReadWaveform", param='waveformArray') + test_value = self._defaults['ReadWaveform']['waveformArray'] + try: + waveform_array_ref = waveform_array.contents + except AttributeError: + waveform_array_ref = waveform_array + assert len(waveform_array_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_array_ref[i] = test_value[i] + # actual_number_of_points + if self._defaults['ReadWaveform']['actualNumberOfPoints'] is None: + raise MockFunctionCallError("niDMM_ReadWaveform", param='actualNumberOfPoints') + if actual_number_of_points is not None: + actual_number_of_points.contents.value = self._defaults['ReadWaveform']['actualNumberOfPoints'] + return self._defaults['ReadWaveform']['return'] + + def niDMM_ResetWithDefaults(self, vi): # noqa: N802 + if self._defaults['ResetWithDefaults']['return'] != 0: + return self._defaults['ResetWithDefaults']['return'] + return self._defaults['ResetWithDefaults']['return'] + + def niDMM_SelfCal(self, vi): # noqa: N802 + if self._defaults['SelfCal']['return'] != 0: + return self._defaults['SelfCal']['return'] + return self._defaults['SelfCal']['return'] + + def niDMM_SendSoftwareTrigger(self, vi): # noqa: N802 + if self._defaults['SendSoftwareTrigger']['return'] != 0: + return self._defaults['SendSoftwareTrigger']['return'] + return self._defaults['SendSoftwareTrigger']['return'] + + def niDMM_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niDMM_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niDMM_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niDMM_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niDMM_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niDMM_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niDMM_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niDMM_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niDMM_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niDMM_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niDMM_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niDMM_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niDMM_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niDMM_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niDMM_Abort.side_effect = MockFunctionCallError("niDMM_Abort") + mock_library.niDMM_Abort.return_value = 0 + mock_library.niDMM_ConfigureMeasurementAbsolute.side_effect = MockFunctionCallError("niDMM_ConfigureMeasurementAbsolute") + mock_library.niDMM_ConfigureMeasurementAbsolute.return_value = 0 + mock_library.niDMM_ConfigureMeasurementDigits.side_effect = MockFunctionCallError("niDMM_ConfigureMeasurementDigits") + mock_library.niDMM_ConfigureMeasurementDigits.return_value = 0 + mock_library.niDMM_ConfigureMultiPoint.side_effect = MockFunctionCallError("niDMM_ConfigureMultiPoint") + mock_library.niDMM_ConfigureMultiPoint.return_value = 0 + mock_library.niDMM_ConfigureRTDCustom.side_effect = MockFunctionCallError("niDMM_ConfigureRTDCustom") + mock_library.niDMM_ConfigureRTDCustom.return_value = 0 + mock_library.niDMM_ConfigureRTDType.side_effect = MockFunctionCallError("niDMM_ConfigureRTDType") + mock_library.niDMM_ConfigureRTDType.return_value = 0 + mock_library.niDMM_ConfigureThermistorCustom.side_effect = MockFunctionCallError("niDMM_ConfigureThermistorCustom") + mock_library.niDMM_ConfigureThermistorCustom.return_value = 0 + mock_library.niDMM_ConfigureThermocouple.side_effect = MockFunctionCallError("niDMM_ConfigureThermocouple") + mock_library.niDMM_ConfigureThermocouple.return_value = 0 + mock_library.niDMM_ConfigureTrigger.side_effect = MockFunctionCallError("niDMM_ConfigureTrigger") + mock_library.niDMM_ConfigureTrigger.return_value = 0 + mock_library.niDMM_ConfigureWaveformAcquisition.side_effect = MockFunctionCallError("niDMM_ConfigureWaveformAcquisition") + mock_library.niDMM_ConfigureWaveformAcquisition.return_value = 0 + mock_library.niDMM_Disable.side_effect = MockFunctionCallError("niDMM_Disable") + mock_library.niDMM_Disable.return_value = 0 + mock_library.niDMM_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDMM_ExportAttributeConfigurationBuffer") + mock_library.niDMM_ExportAttributeConfigurationBuffer.return_value = 0 + mock_library.niDMM_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDMM_ExportAttributeConfigurationFile") + mock_library.niDMM_ExportAttributeConfigurationFile.return_value = 0 + mock_library.niDMM_Fetch.side_effect = MockFunctionCallError("niDMM_Fetch") + mock_library.niDMM_Fetch.return_value = 0 + mock_library.niDMM_FetchMultiPoint.side_effect = MockFunctionCallError("niDMM_FetchMultiPoint") + mock_library.niDMM_FetchMultiPoint.return_value = 0 + mock_library.niDMM_FetchWaveform.side_effect = MockFunctionCallError("niDMM_FetchWaveform") + mock_library.niDMM_FetchWaveform.return_value = 0 + mock_library.niDMM_GetAttributeViBoolean.side_effect = MockFunctionCallError("niDMM_GetAttributeViBoolean") + mock_library.niDMM_GetAttributeViBoolean.return_value = 0 + mock_library.niDMM_GetAttributeViInt32.side_effect = MockFunctionCallError("niDMM_GetAttributeViInt32") + mock_library.niDMM_GetAttributeViInt32.return_value = 0 + mock_library.niDMM_GetAttributeViReal64.side_effect = MockFunctionCallError("niDMM_GetAttributeViReal64") + mock_library.niDMM_GetAttributeViReal64.return_value = 0 + mock_library.niDMM_GetAttributeViString.side_effect = MockFunctionCallError("niDMM_GetAttributeViString") + mock_library.niDMM_GetAttributeViString.return_value = 0 + mock_library.niDMM_GetCalDateAndTime.side_effect = MockFunctionCallError("niDMM_GetCalDateAndTime") + mock_library.niDMM_GetCalDateAndTime.return_value = 0 + mock_library.niDMM_GetDevTemp.side_effect = MockFunctionCallError("niDMM_GetDevTemp") + mock_library.niDMM_GetDevTemp.return_value = 0 + mock_library.niDMM_GetError.side_effect = MockFunctionCallError("niDMM_GetError") + mock_library.niDMM_GetError.return_value = 0 + mock_library.niDMM_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niDMM_GetExtCalRecommendedInterval") + mock_library.niDMM_GetExtCalRecommendedInterval.return_value = 0 + mock_library.niDMM_GetLastCalTemp.side_effect = MockFunctionCallError("niDMM_GetLastCalTemp") + mock_library.niDMM_GetLastCalTemp.return_value = 0 + mock_library.niDMM_GetSelfCalSupported.side_effect = MockFunctionCallError("niDMM_GetSelfCalSupported") + mock_library.niDMM_GetSelfCalSupported.return_value = 0 + mock_library.niDMM_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niDMM_ImportAttributeConfigurationBuffer") + mock_library.niDMM_ImportAttributeConfigurationBuffer.return_value = 0 + mock_library.niDMM_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niDMM_ImportAttributeConfigurationFile") + mock_library.niDMM_ImportAttributeConfigurationFile.return_value = 0 + mock_library.niDMM_InitWithOptions.side_effect = MockFunctionCallError("niDMM_InitWithOptions") + mock_library.niDMM_InitWithOptions.return_value = 0 + mock_library.niDMM_Initiate.side_effect = MockFunctionCallError("niDMM_Initiate") + mock_library.niDMM_Initiate.return_value = 0 + mock_library.niDMM_LockSession.side_effect = MockFunctionCallError("niDMM_LockSession") + mock_library.niDMM_LockSession.return_value = 0 + mock_library.niDMM_PerformOpenCableComp.side_effect = MockFunctionCallError("niDMM_PerformOpenCableComp") + mock_library.niDMM_PerformOpenCableComp.return_value = 0 + mock_library.niDMM_PerformShortCableComp.side_effect = MockFunctionCallError("niDMM_PerformShortCableComp") + mock_library.niDMM_PerformShortCableComp.return_value = 0 + mock_library.niDMM_Read.side_effect = MockFunctionCallError("niDMM_Read") + mock_library.niDMM_Read.return_value = 0 + mock_library.niDMM_ReadMultiPoint.side_effect = MockFunctionCallError("niDMM_ReadMultiPoint") + mock_library.niDMM_ReadMultiPoint.return_value = 0 + mock_library.niDMM_ReadStatus.side_effect = MockFunctionCallError("niDMM_ReadStatus") + mock_library.niDMM_ReadStatus.return_value = 0 + mock_library.niDMM_ReadWaveform.side_effect = MockFunctionCallError("niDMM_ReadWaveform") + mock_library.niDMM_ReadWaveform.return_value = 0 + mock_library.niDMM_ResetWithDefaults.side_effect = MockFunctionCallError("niDMM_ResetWithDefaults") + mock_library.niDMM_ResetWithDefaults.return_value = 0 + mock_library.niDMM_SelfCal.side_effect = MockFunctionCallError("niDMM_SelfCal") + mock_library.niDMM_SelfCal.return_value = 0 + mock_library.niDMM_SendSoftwareTrigger.side_effect = MockFunctionCallError("niDMM_SendSoftwareTrigger") + mock_library.niDMM_SendSoftwareTrigger.return_value = 0 + mock_library.niDMM_SetAttributeViBoolean.side_effect = MockFunctionCallError("niDMM_SetAttributeViBoolean") + mock_library.niDMM_SetAttributeViBoolean.return_value = 0 + mock_library.niDMM_SetAttributeViInt32.side_effect = MockFunctionCallError("niDMM_SetAttributeViInt32") + mock_library.niDMM_SetAttributeViInt32.return_value = 0 + mock_library.niDMM_SetAttributeViReal64.side_effect = MockFunctionCallError("niDMM_SetAttributeViReal64") + mock_library.niDMM_SetAttributeViReal64.return_value = 0 + mock_library.niDMM_SetAttributeViString.side_effect = MockFunctionCallError("niDMM_SetAttributeViString") + mock_library.niDMM_SetAttributeViString.return_value = 0 + mock_library.niDMM_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niDMM_SetRuntimeEnvironment") + mock_library.niDMM_SetRuntimeEnvironment.return_value = 0 + mock_library.niDMM_UnlockSession.side_effect = MockFunctionCallError("niDMM_UnlockSession") + mock_library.niDMM_UnlockSession.return_value = 0 + mock_library.niDMM_close.side_effect = MockFunctionCallError("niDMM_close") + mock_library.niDMM_close.return_value = 0 + mock_library.niDMM_error_message.side_effect = MockFunctionCallError("niDMM_error_message") + mock_library.niDMM_error_message.return_value = 0 + mock_library.niDMM_reset.side_effect = MockFunctionCallError("niDMM_reset") + mock_library.niDMM_reset.return_value = 0 + mock_library.niDMM_self_test.side_effect = MockFunctionCallError("niDMM_self_test") + mock_library.niDMM_self_test.return_value = 0 diff --git a/generated/nidmm/setup.py b/generated/nidmm/setup.py new file mode 100644 index 0000000000..0a6113944a --- /dev/null +++ b/generated/nidmm/setup.py @@ -0,0 +1,63 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nidmm' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-DMM Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nidmm'], + license='MIT', + include_package_data=True, + packages=['nidmm'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nidmm/tox-system_tests.ini b/generated/nidmm/tox-system_tests.ini new file mode 100644 index 0000000000..64eb90b7df --- /dev/null +++ b/generated/nidmm/tox-system_tests.ini @@ -0,0 +1,65 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nidmm) +[tox] +envlist = py{310,311,312,313,314}-nidmm-system_tests, py314-nidmm-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nidmm-system_tests: Run nidmm system tests (requires NI-DMM runtime to be installed) + nidmm-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nidmm-system_tests: . + nidmm-coverage: . + +commands = + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nidmm-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nidmm-system_tests: python -c "import nidmm; nidmm.print_diagnostic_information()" + nidmm-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidmm --parallel-mode -m pytest ../../src/nidmm/examples --junitxml=../junit/junit-nidmm-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nidmm-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nidmm --parallel-mode -m pytest ../../src/nidmm/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nidmm-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nidmm-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nidmm-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nidmm-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nidmm-system_tests: pytest < 9.2.0 + nidmm-system_tests: coverage + nidmm-system_tests: numpy + nidmm-system_tests: hightime + nidmm-system_tests: fasteners + nidmm-system_tests: pytest-json + nidmm-system_tests: .[grpc] + + nidmm-coverage: coverage + +depends = + nidmm-coverage: py{310,311,312,313,314}-nidmm-system_tests + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nifake/README.rst b/generated/nifake/README.rst new file mode 100644 index 0000000000..3ffec6a895 --- /dev/null +++ b/generated/nifake/README.rst @@ -0,0 +1,21 @@ +This is the MIT license: http://www.opensource.org/licenses/mit-license.php + +Copyright (c) 2017-2022, National Instruments Corporation. +NI-Digital Pattern Driver, NI-DMM, NI-DCPower, NI-FGEN, NI-RFSA, NI-RFSG, NI-SCOPE, NI-SWITCH, NI Switch Executive, +NI-ModInst, NI-TClk are trademarks of National Instruments. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or +substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/generated/nifake/nifake/VERSION b/generated/nifake/nifake/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nifake/nifake/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nifake/nifake/__init__.py b/generated/nifake/nifake/__init__.py new file mode 100644 index 0000000000..39f4542a3c --- /dev/null +++ b/generated/nifake/nifake/__init__.py @@ -0,0 +1,115 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nifake.enums import * # noqa: F403,F401,H303 +from nifake.errors import DriverWarning # noqa: F401 +from nifake.errors import Error # noqa: F401 +from nifake.grpc_session_options import * # noqa: F403,F401,H303 +from nifake.session import Session # noqa: F401 + +from nifake.custom_struct import CustomStruct # noqa: F401 + +from nifake.custom_struct import struct_CustomStruct # noqa: F401 + +from nifake.custom_struct_typedef import CustomStructTypedef # noqa: F401 + +from nifake.custom_struct_typedef import struct_CustomStructTypedef # noqa: F401 + +from nifake.custom_struct_nested_typedef import CustomStructNestedTypedef # noqa: F401 + +from nifake.custom_struct_nested_typedef import struct_CustomStructNestedTypedef # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-FAKE\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-FAKE" + info['driver']['version'] = driver_version + info['module']['name'] = 'nifake' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nifake/nifake/_attributes.py b/generated/nifake/nifake/_attributes.py new file mode 100644 index 0000000000..060c58f0ed --- /dev/null +++ b/generated/nifake/nifake/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nifake._converters as _converters +import nifake.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nifake Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nifake.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nifake/nifake/_complextype.py b/generated/nifake/nifake/_complextype.py new file mode 100644 index 0000000000..e23fa1b7e2 --- /dev/null +++ b/generated/nifake/nifake/_complextype.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# This file was generated +import ctypes +import nifake._visatype as _visatype + + +class NIComplexNumber(ctypes.Structure): + _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] + + +class NIComplexNumberF32(ctypes.Structure): + _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] + + +class NIComplexI16(ctypes.Structure): + _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] diff --git a/generated/nifake/nifake/_converters.py b/generated/nifake/nifake/_converters.py new file mode 100644 index 0000000000..9de6fa6942 --- /dev/null +++ b/generated/nifake/nifake/_converters.py @@ -0,0 +1,389 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nifake._visatype as _visatype +import nifake.enums as enums +import nifake.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + +# nifake specific converter(s) - used only for testing +def convert_double_each_element(numbers): + return [x * 2 for x in numbers] + + +def convert_from_enum_with_converter_enum(value): + return { + enums.EnumWithConverter.RED: True, + enums.EnumWithConverter.BLUE: False, + enums.EnumWithConverter.YELLOW: 'yellow', + enums.EnumWithConverter.BLACK: 42, + }[value] + + +def convert_to_enum_with_converter_enum(value): + return { + True: enums.EnumWithConverter.RED, + False: enums.EnumWithConverter.BLUE, + 'yellow': enums.EnumWithConverter.YELLOW, + 42: enums.EnumWithConverter.BLACK, + }[value] + + diff --git a/generated/nifake/nifake/_grpc_stub_interpreter.py b/generated/nifake/nifake/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..a3e34085b2 --- /dev/null +++ b/generated/nifake/nifake/_grpc_stub_interpreter.py @@ -0,0 +1,579 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nidevice_pb2 as grpc_complex_types # noqa: F401 +from . import nifake_pb2 as grpc_types +from . import nifake_pb2_grpc as nifake_grpc + +from . import custom_struct as custom_struct # noqa: F401 + +from . import custom_struct_typedef as custom_struct_typedef # noqa: F401 + +from . import custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nifake_grpc.NiFakeStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.Abort, + grpc_types.AbortRequest(vi=self._vi), + ) + + def accept_list_of_durations_in_seconds(self, delays): # noqa: N802 + self._invoke( + self._client.AcceptListOfDurationsInSeconds, + grpc_types.AcceptListOfDurationsInSecondsRequest(vi=self._vi, delays=delays), + ) + + def bool_array_output_function(self, number_of_elements): # noqa: N802 + response = self._invoke( + self._client.BoolArrayOutputFunction, + grpc_types.BoolArrayOutputFunctionRequest(vi=self._vi, number_of_elements=number_of_elements), + ) + return response.an_array + + def configure_abc(self): # noqa: N802 + self._invoke( + self._client.ConfigureAbc, + grpc_types.ConfigureAbcRequest(vi=self._vi), + ) + + def custom_nested_struct_roundtrip(self, nested_custom_type_in): # noqa: N802 + response = self._invoke( + self._client.CustomNestedStructRoundtrip, + grpc_types.CustomNestedStructRoundtripRequest(nested_custom_type_in=nested_custom_type_in._create_copy(grpc_types.CustomStructNestedTypedef)), + ) + return custom_struct_nested_typedef.CustomStructNestedTypedef(response.nested_custom_type_out) + + def double_all_the_nums(self, numbers): # noqa: N802 + self._invoke( + self._client.DoubleAllTheNums, + grpc_types.DoubleAllTheNumsRequest(vi=self._vi, numbers=numbers), + ) + + def enum_array_output_function(self, number_of_elements): # noqa: N802 + response = self._invoke( + self._client.EnumArrayOutputFunction, + grpc_types.EnumArrayOutputFunctionRequest(vi=self._vi, number_of_elements=number_of_elements), + ) + return [enums.Turtle(x) for x in response.an_array_raw] + + def enum_input_function_with_defaults(self, a_turtle): # noqa: N802 + self._invoke( + self._client.EnumInputFunctionWithDefaults, + grpc_types.EnumInputFunctionWithDefaultsRequest(vi=self._vi, a_turtle_raw=a_turtle.value), + ) + + def export_attribute_configuration_buffer(self): # noqa: N802 + response = self._invoke( + self._client.ExportAttributeConfigurationBuffer, + grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), + ) + return response.configuration + + def fetch_waveform(self, number_of_samples): # noqa: N802 + response = self._invoke( + self._client.FetchWaveform, + grpc_types.FetchWaveformRequest(vi=self._vi, number_of_samples=number_of_samples), + ) + return response.waveform_data + + def fetch_waveform_into(self, number_of_samples): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self, multidimensional_array): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + multidimensional_array_list = [ + grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) + for val in multidimensional_array.ravel() + ] + self._invoke( + self._client.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter, + grpc_types.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest(vi=self._vi, multidimensional_array=multidimensional_array_list), + ) + + def function_with_intflag_parameter(self, flag): # noqa: N802 + self._invoke( + self._client.FunctionWithIntflagParameter, + grpc_types.FunctionWithIntflagParameterRequest(vi=self._vi, flag=flag.value), + ) + + def function_with_repeated_capability_type(self, site_list): # noqa: N802 + raise NotImplementedError('function_with_repeated_capability_type is not supported over gRPC') + + def get_a_boolean(self): # noqa: N802 + response = self._invoke( + self._client.GetABoolean, + grpc_types.GetABooleanRequest(vi=self._vi), + ) + return response.a_boolean + + def get_a_number(self): # noqa: N802 + response = self._invoke( + self._client.GetANumber, + grpc_types.GetANumberRequest(vi=self._vi), + ) + return response.a_number + + def get_a_string_of_fixed_maximum_size(self): # noqa: N802 + response = self._invoke( + self._client.GetAStringOfFixedMaximumSize, + grpc_types.GetAStringOfFixedMaximumSizeRequest(vi=self._vi), + ) + return response.a_string + + def get_a_string_using_python_code(self, a_number): # noqa: N802 + raise NotImplementedError('get_a_string_using_python_code is not supported over gRPC') + + def get_an_ivi_dance_char_array(self): # noqa: N802 + response = self._invoke( + self._client.GetAnIviDanceCharArray, + grpc_types.GetAnIviDanceCharArrayRequest(vi=self._vi), + ) + return response.char_array + + def get_an_ivi_dance_with_a_twist_string(self): # noqa: N802 + response = self._invoke( + self._client.GetAnIviDanceWithATwistString, + grpc_types.GetAnIviDanceWithATwistStringRequest(vi=self._vi), + ) + return response.a_string + + def get_array_for_python_code_custom_type(self): # noqa: N802 + raise NotImplementedError('get_array_for_python_code_custom_type is not supported over gRPC') + + def get_array_for_python_code_double(self): # noqa: N802 + raise NotImplementedError('get_array_for_python_code_double is not supported over gRPC') + + def get_array_size_for_python_code(self): # noqa: N802 + raise NotImplementedError('get_array_size_for_python_code is not supported over gRPC') + + def get_array_using_ivi_dance(self): # noqa: N802 + response = self._invoke( + self._client.GetArrayUsingIviDance, + grpc_types.GetArrayUsingIviDanceRequest(vi=self._vi), + ) + return response.array_out + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt64, + grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_cal_date_and_time(self, cal_type): # noqa: N802 + response = self._invoke( + self._client.GetCalDateAndTime, + grpc_types.GetCalDateAndTimeRequest(vi=self._vi, cal_type=cal_type), + ) + return response.month, response.day, response.year, response.hour, response.minute + + def get_cal_interval(self): # noqa: N802 + response = self._invoke( + self._client.GetCalInterval, + grpc_types.GetCalIntervalRequest(vi=self._vi), + ) + return response.months + + def get_channel_names(self, indices): # noqa: N802 + raise NotImplementedError('get_channel_names is not supported over gRPC') + + def get_custom_type(self): # noqa: N802 + response = self._invoke( + self._client.GetCustomType, + grpc_types.GetCustomTypeRequest(vi=self._vi), + ) + return custom_struct.CustomStruct(response.cs) + + def get_custom_type_array(self, number_of_elements): # noqa: N802 + response = self._invoke( + self._client.GetCustomTypeArray, + grpc_types.GetCustomTypeArrayRequest(vi=self._vi, number_of_elements=number_of_elements), + ) + return [custom_struct.CustomStruct(x) for x in response.cs] + + def get_custom_type_typedef(self): # noqa: N802 + raise NotImplementedError('get_custom_type_typedef is not supported over gRPC') + + def get_enum_value(self): # noqa: N802 + response = self._invoke( + self._client.GetEnumValue, + grpc_types.GetEnumValueRequest(vi=self._vi), + ) + return response.a_quantity, enums.Turtle(response.a_turtle_raw) + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.description + + def get_parameter_with_overridden_grpc_name(self, enum_parameter): # noqa: N802 + response = self._invoke( + self._client.GetParameterWithOverriddenGrpcName, + grpc_types.GetParameterWithOverriddenGrpcNameRequest(vi=self._vi, enum_parameter_raw=enum_parameter.value), + ) + return response.overridden_parameter + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationBuffer, + grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), + ) + + def import_attribute_configuration_buffer_ex(self, configuration): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationBufferEx, + grpc_types.ImportAttributeConfigurationBufferExRequest(vi=self._vi, configuration=configuration), + ) + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithOptions, + grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate(self): # noqa: N802 + raise NotImplementedError('initiate is not supported over gRPC') + + def lock(self): # noqa: N802 + self._lock.acquire() + + def method_using_whole_and_fractional_numbers(self): # noqa: N802 + response = self._invoke( + self._client.MethodUsingWholeAndFractionalNumbers, + grpc_types.MethodUsingWholeAndFractionalNumbersRequest(), + ) + return response.whole_number_raw, response.fractional_number_raw + + def method_with_grpc_only_param(self, simple_param): # noqa: N802 + self._invoke( + self._client.MethodWithGrpcOnlyParam, + grpc_types.MethodWithGrpcOnlyParamRequest(simple_param=simple_param), + ) + + def method_with_proto_only_parameter(self, attribute_value): # noqa: N802 + self._invoke( + self._client.MethodWithProtoOnlyParameter, + grpc_types.MethodWithProtoOnlyParameterRequest(attribute_value=attribute_value), + ) + + def mixed_ivi_dance_and_len_mechanism(self, input_values): # noqa: N802 + response = self._invoke( + self._client.MixedIviDanceAndLenMechanism, + grpc_types.MixedIviDanceAndLenMechanismRequest(vi=self._vi, input_values=input_values), + ) + return response.output_array + + def multiple_array_types(self, output_array_size, input_array_of_floats, input_array_of_integers): # noqa: N802 + response = self._invoke( + self._client.MultipleArrayTypes, + grpc_types.MultipleArrayTypesRequest(vi=self._vi, output_array_size=output_array_size, input_array_of_floats=input_array_of_floats, input_array_of_integers=input_array_of_integers), + ) + return response.output_array, response.output_array_of_fixed_length + + def multiple_arrays_different_size(self, values_array, data_array): # noqa: N802 + self._invoke( + self._client.MultipleArraysDifferentSize, + grpc_types.MultipleArraysDifferentSizeRequest(vi=self._vi, values_array=values_array, data_array=data_array), + ) + + def multiple_arrays_same_size(self, values1, values2, values3, values4): # noqa: N802 + self._invoke( + self._client.MultipleArraysSameSize, + grpc_types.MultipleArraysSameSizeRequest(vi=self._vi, values1=values1, values2=values2, values3=values3, values4=values4), + ) + + def one_input_function(self, a_number): # noqa: N802 + self._invoke( + self._client.OneInputFunction, + grpc_types.OneInputFunctionRequest(vi=self._vi, a_number=a_number), + ) + + def parameters_are_multiple_types(self, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 + self._invoke( + self._client.ParametersAreMultipleTypes, + grpc_types.ParametersAreMultipleTypesRequest(vi=self._vi, a_boolean=a_boolean, an_int32=an_int32, an_int64=an_int64, an_int_enum_raw=an_int_enum.value, a_float=a_float, a_float_enum_raw=a_float_enum.value, a_string=a_string), + ) + + def simple_function(self): # noqa: N802 + self._invoke( + self._client.PoorlyNamedSimpleFunction, + grpc_types.PoorlyNamedSimpleFunctionRequest(vi=self._vi), + ) + + def read(self, maximum_time): # noqa: N802 + response = self._invoke( + self._client.Read, + grpc_types.ReadRequest(vi=self._vi, maximum_time=maximum_time), + ) + return response.reading + + def read_from_channel(self, channel_name, maximum_time): # noqa: N802 + response = self._invoke( + self._client.ReadFromChannel, + grpc_types.ReadFromChannelRequest(vi=self._vi, channel_name=channel_name, maximum_time=maximum_time), + ) + return response.reading + + def return_a_number_and_a_string(self): # noqa: N802 + response = self._invoke( + self._client.ReturnANumberAndAString, + grpc_types.ReturnANumberAndAStringRequest(vi=self._vi), + ) + return response.a_number, response.a_string + + def return_duration_in_seconds(self): # noqa: N802 + response = self._invoke( + self._client.ReturnDurationInSeconds, + grpc_types.ReturnDurationInSecondsRequest(vi=self._vi), + ) + return response.timedelta + + def return_list_of_durations_in_seconds(self, number_of_elements): # noqa: N802 + response = self._invoke( + self._client.ReturnListOfDurationsInSeconds, + grpc_types.ReturnListOfDurationsInSecondsRequest(vi=self._vi, number_of_elements=number_of_elements), + ) + return response.timedeltas + + def return_multiple_types(self, array_size): # noqa: N802 + response = self._invoke( + self._client.ReturnMultipleTypes, + grpc_types.ReturnMultipleTypesRequest(vi=self._vi, array_size=array_size), + ) + return response.a_boolean, response.an_int32, response.an_int64, enums.Turtle(response.an_int_enum_raw), response.a_float, enums.FloatEnum(response.a_float_enum_raw), response.an_array, response.a_string + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt64, + grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_custom_type(self, cs): # noqa: N802 + self._invoke( + self._client.SetCustomType, + grpc_types.SetCustomTypeRequest(vi=self._vi, cs=cs._create_copy(grpc_types.FakeCustomStruct)), + ) + + def set_custom_type_array(self, cs): # noqa: N802 + self._invoke( + self._client.SetCustomTypeArray, + grpc_types.SetCustomTypeArrayRequest(vi=self._vi, cs=cs and [x._create_copy(grpc_types.FakeCustomStruct) for x in cs]), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def string_valued_enum_input_function_with_defaults(self, a_mobile_os_name): # noqa: N802 + self._invoke( + self._client.StringValuedEnumInputFunctionWithDefaults, + grpc_types.StringValuedEnumInputFunctionWithDefaultsRequest(vi=self._vi, a_mobile_os_name_raw=a_mobile_os_name.value), + ) + + def two_input_function(self, a_number, a_string): # noqa: N802 + self._invoke( + self._client.TwoInputFunction, + grpc_types.TwoInputFunctionRequest(vi=self._vi, a_number=a_number, a_string=a_string), + ) + + def unlock(self): # noqa: N802 + self._lock.release() + + def use64_bit_number(self, input): # noqa: N802 + response = self._invoke( + self._client.Use64BitNumber, + grpc_types.Use64BitNumberRequest(vi=self._vi, input=input), + ) + return response.output + + def write_waveform(self, waveform): # noqa: N802 + self._invoke( + self._client.WriteWaveform, + grpc_types.WriteWaveformRequest(vi=self._vi, waveform=waveform), + ) + + def write_waveform_numpy(self, waveform): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def write_waveform_numpy_complex128(self, waveform_data_array): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + waveform_data_array_list = [ + grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) + for val in waveform_data_array.ravel() + ] + self._invoke( + self._client.WriteWaveformNumpyComplex128, + grpc_types.WriteWaveformNumpyComplex128Request(vi=self._vi, waveform_data_array=waveform_data_array_list), + ) + + def write_waveform_numpy_complex64(self, waveform_data_array): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + waveform_data_array_list = [ + grpc_complex_types.NIComplexNumberF32(real=val.real, imaginary=val.imag) + for val in waveform_data_array.ravel() + ] + self._invoke( + self._client.WriteWaveformNumpyComplex64, + grpc_types.WriteWaveformNumpyComplex64Request(vi=self._vi, waveform_data_array=waveform_data_array_list), + ) + + def write_waveform_numpy_complex_interleaved_i16(self, waveform_data_array): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + arr = waveform_data_array.ravel() + if arr.size % 2 != 0: + raise ValueError("Interleaved int16 array must have even length (real/imag pairs)") + arr_pairs = arr.reshape(-1, 2) + waveform_data_array_list = [ + grpc_complex_types.NIComplexI16(real=int(pair[0]), imaginary=int(pair[1])) + for pair in arr_pairs + ] + self._invoke( + self._client.WriteWaveformNumpyComplexInterleavedI16, + grpc_types.WriteWaveformNumpyComplexInterleavedI16Request(vi=self._vi, waveform_data_array=waveform_data_array_list), + ) + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def self_test(self): # noqa: N802 + raise NotImplementedError('self_test is not supported over gRPC') diff --git a/generated/nifake/nifake/_library.py b/generated/nifake/nifake/_library.py new file mode 100644 index 0000000000..dbbe4c0095 --- /dev/null +++ b/generated/nifake/nifake/_library.py @@ -0,0 +1,728 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nifake.errors as errors +import threading + +from nifake._complextype import * # noqa: F403 +from nifake._visatype import * # noqa: F403,H303 + +import nifake.custom_struct as custom_struct # noqa: F401 + +import nifake.custom_struct_typedef as custom_struct_typedef # noqa: F401 + +import nifake.custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niFake_Abort_cfunc = None + self.niFake_AcceptListOfDurationsInSeconds_cfunc = None + self.niFake_BoolArrayOutputFunction_cfunc = None + self.niFake_ConfigureABC_cfunc = None + self.niFake_CustomNestedStructRoundtrip_cfunc = None + self.niFake_DoubleAllTheNums_cfunc = None + self.niFake_EnumArrayOutputFunction_cfunc = None + self.niFake_EnumInputFunctionWithDefaults_cfunc = None + self.niFake_ExportAttributeConfigurationBuffer_cfunc = None + self.niFake_FetchWaveform_cfunc = None + self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc = None + self.niFake_FunctionWithIntflagParameter_cfunc = None + self.niFake_FunctionWithRepeatedCapabilityType_cfunc = None + self.niFake_GetABoolean_cfunc = None + self.niFake_GetANumber_cfunc = None + self.niFake_GetAStringOfFixedMaximumSize_cfunc = None + self.niFake_GetAStringUsingPythonCode_cfunc = None + self.niFake_GetAnIviDanceCharArray_cfunc = None + self.niFake_GetAnIviDanceWithATwistString_cfunc = None + self.niFake_GetArrayForPythonCodeCustomType_cfunc = None + self.niFake_GetArrayForPythonCodeDouble_cfunc = None + self.niFake_GetArraySizeForPythonCode_cfunc = None + self.niFake_GetArrayUsingIviDance_cfunc = None + self.niFake_GetAttributeViBoolean_cfunc = None + self.niFake_GetAttributeViInt32_cfunc = None + self.niFake_GetAttributeViInt64_cfunc = None + self.niFake_GetAttributeViReal64_cfunc = None + self.niFake_GetAttributeViString_cfunc = None + self.niFake_GetCalDateAndTime_cfunc = None + self.niFake_GetCalInterval_cfunc = None + self.niFake_GetChannelNames_cfunc = None + self.niFake_GetCustomType_cfunc = None + self.niFake_GetCustomTypeArray_cfunc = None + self.niFake_GetCustomTypeTypedef_cfunc = None + self.niFake_GetEnumValue_cfunc = None + self.niFake_GetError_cfunc = None + self.niFake_GetParameterWithOverriddenGrpcName_cfunc = None + self.niFake_ImportAttributeConfigurationBuffer_cfunc = None + self.niFake_ImportAttributeConfigurationBufferEx_cfunc = None + self.niFake_InitWithOptions_cfunc = None + self.niFake_Initiate_cfunc = None + self.niFake_LockSession_cfunc = None + self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc = None + self.niFake_MethodWithGrpcOnlyParam_cfunc = None + self.niFake_MethodWithProtoOnlyParameter_cfunc = None + self.niFake_MixedIviDanceAndLenMechanism_cfunc = None + self.niFake_MultipleArrayTypes_cfunc = None + self.niFake_MultipleArraysDifferentSize_cfunc = None + self.niFake_MultipleArraysSameSize_cfunc = None + self.niFake_OneInputFunction_cfunc = None + self.niFake_ParametersAreMultipleTypes_cfunc = None + self.niFake_PoorlyNamedSimpleFunction_cfunc = None + self.niFake_Read_cfunc = None + self.niFake_ReadFromChannel_cfunc = None + self.niFake_ReturnANumberAndAString_cfunc = None + self.niFake_ReturnDurationInSeconds_cfunc = None + self.niFake_ReturnListOfDurationsInSeconds_cfunc = None + self.niFake_ReturnMultipleTypes_cfunc = None + self.niFake_SetAttributeViBoolean_cfunc = None + self.niFake_SetAttributeViInt32_cfunc = None + self.niFake_SetAttributeViInt64_cfunc = None + self.niFake_SetAttributeViReal64_cfunc = None + self.niFake_SetAttributeViString_cfunc = None + self.niFake_SetCustomType_cfunc = None + self.niFake_SetCustomTypeArray_cfunc = None + self.niFake_SetRuntimeEnvironment_cfunc = None + self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc = None + self.niFake_TwoInputFunction_cfunc = None + self.niFake_UnlockSession_cfunc = None + self.niFake_Use64BitNumber_cfunc = None + self.niFake_WriteWaveform_cfunc = None + self.niFake_WriteWaveformNumpyComplex128_cfunc = None + self.niFake_WriteWaveformNumpyComplex64_cfunc = None + self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc = None + self.niFake_close_cfunc = None + self.niFake_error_message_cfunc = None + self.niFake_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niFake_Abort(self, vi): # noqa: N802 + with self._func_lock: + if self.niFake_Abort_cfunc is None: + self.niFake_Abort_cfunc = self._get_library_function('niFake_Abort') + self.niFake_Abort_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFake_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_Abort_cfunc(vi) + + def niFake_AcceptListOfDurationsInSeconds(self, vi, count, delays): # noqa: N802 + with self._func_lock: + if self.niFake_AcceptListOfDurationsInSeconds_cfunc is None: + self.niFake_AcceptListOfDurationsInSeconds_cfunc = self._get_library_function('niFake_AcceptListOfDurationsInSeconds') + self.niFake_AcceptListOfDurationsInSeconds_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_AcceptListOfDurationsInSeconds_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_AcceptListOfDurationsInSeconds_cfunc(vi, count, delays) + + def niFake_BoolArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 + with self._func_lock: + if self.niFake_BoolArrayOutputFunction_cfunc is None: + self.niFake_BoolArrayOutputFunction_cfunc = self._get_library_function('niFake_BoolArrayOutputFunction') + self.niFake_BoolArrayOutputFunction_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFake_BoolArrayOutputFunction_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_BoolArrayOutputFunction_cfunc(vi, number_of_elements, an_array) + + def niFake_ConfigureABC(self, vi): # noqa: N802 + with self._func_lock: + if self.niFake_ConfigureABC_cfunc is None: + self.niFake_ConfigureABC_cfunc = self._get_library_function('niFake_ConfigureABC') + self.niFake_ConfigureABC_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFake_ConfigureABC_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ConfigureABC_cfunc(vi) + + def niFake_CustomNestedStructRoundtrip(self, nested_custom_type_in, nested_custom_type_out): # noqa: N802 + with self._func_lock: + if self.niFake_CustomNestedStructRoundtrip_cfunc is None: + self.niFake_CustomNestedStructRoundtrip_cfunc = self._get_library_function('niFake_CustomNestedStructRoundtrip') + self.niFake_CustomNestedStructRoundtrip_cfunc.argtypes = [custom_struct_nested_typedef.struct_CustomStructNestedTypedef, ctypes.POINTER(custom_struct_nested_typedef.struct_CustomStructNestedTypedef)] # noqa: F405 + self.niFake_CustomNestedStructRoundtrip_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_CustomNestedStructRoundtrip_cfunc(nested_custom_type_in, nested_custom_type_out) + + def niFake_DoubleAllTheNums(self, vi, number_count, numbers): # noqa: N802 + with self._func_lock: + if self.niFake_DoubleAllTheNums_cfunc is None: + self.niFake_DoubleAllTheNums_cfunc = self._get_library_function('niFake_DoubleAllTheNums') + self.niFake_DoubleAllTheNums_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_DoubleAllTheNums_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_DoubleAllTheNums_cfunc(vi, number_count, numbers) + + def niFake_EnumArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 + with self._func_lock: + if self.niFake_EnumArrayOutputFunction_cfunc is None: + self.niFake_EnumArrayOutputFunction_cfunc = self._get_library_function('niFake_EnumArrayOutputFunction') + self.niFake_EnumArrayOutputFunction_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt16)] # noqa: F405 + self.niFake_EnumArrayOutputFunction_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_EnumArrayOutputFunction_cfunc(vi, number_of_elements, an_array) + + def niFake_EnumInputFunctionWithDefaults(self, vi, a_turtle): # noqa: N802 + with self._func_lock: + if self.niFake_EnumInputFunctionWithDefaults_cfunc is None: + self.niFake_EnumInputFunctionWithDefaults_cfunc = self._get_library_function('niFake_EnumInputFunctionWithDefaults') + self.niFake_EnumInputFunctionWithDefaults_cfunc.argtypes = [ViSession, ViInt16] # noqa: F405 + self.niFake_EnumInputFunctionWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_EnumInputFunctionWithDefaults_cfunc(vi, a_turtle) + + def niFake_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + with self._func_lock: + if self.niFake_ExportAttributeConfigurationBuffer_cfunc is None: + self.niFake_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFake_ExportAttributeConfigurationBuffer') + self.niFake_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niFake_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ExportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) + + def niFake_FetchWaveform(self, vi, number_of_samples, waveform_data, actual_number_of_samples): # noqa: N802 + with self._func_lock: + if self.niFake_FetchWaveform_cfunc is None: + self.niFake_FetchWaveform_cfunc = self._get_library_function('niFake_FetchWaveform') + self.niFake_FetchWaveform_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_FetchWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_FetchWaveform_cfunc(vi, number_of_samples, waveform_data, actual_number_of_samples) + + def niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(self, vi, multidimensional_array): # noqa: N802 + with self._func_lock: + if self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc is None: + self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc = self._get_library_function('niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter') + self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc.argtypes = [ViSession, ctypes.POINTER(NIComplexNumber)] # noqa: F405 + self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter_cfunc(vi, multidimensional_array) + + def niFake_FunctionWithIntflagParameter(self, vi, flag): # noqa: N802 + with self._func_lock: + if self.niFake_FunctionWithIntflagParameter_cfunc is None: + self.niFake_FunctionWithIntflagParameter_cfunc = self._get_library_function('niFake_FunctionWithIntflagParameter') + self.niFake_FunctionWithIntflagParameter_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405 + self.niFake_FunctionWithIntflagParameter_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_FunctionWithIntflagParameter_cfunc(vi, flag) + + def niFake_FunctionWithRepeatedCapabilityType(self, vi, site_list): # noqa: N802 + with self._func_lock: + if self.niFake_FunctionWithRepeatedCapabilityType_cfunc is None: + self.niFake_FunctionWithRepeatedCapabilityType_cfunc = self._get_library_function('niFake_FunctionWithRepeatedCapabilityType') + self.niFake_FunctionWithRepeatedCapabilityType_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_FunctionWithRepeatedCapabilityType_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_FunctionWithRepeatedCapabilityType_cfunc(vi, site_list) + + def niFake_GetABoolean(self, vi, a_boolean): # noqa: N802 + with self._func_lock: + if self.niFake_GetABoolean_cfunc is None: + self.niFake_GetABoolean_cfunc = self._get_library_function('niFake_GetABoolean') + self.niFake_GetABoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFake_GetABoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetABoolean_cfunc(vi, a_boolean) + + def niFake_GetANumber(self, vi, a_number): # noqa: N802 + with self._func_lock: + if self.niFake_GetANumber_cfunc is None: + self.niFake_GetANumber_cfunc = self._get_library_function('niFake_GetANumber') + self.niFake_GetANumber_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16)] # noqa: F405 + self.niFake_GetANumber_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetANumber_cfunc(vi, a_number) + + def niFake_GetAStringOfFixedMaximumSize(self, vi, a_string): # noqa: N802 + with self._func_lock: + if self.niFake_GetAStringOfFixedMaximumSize_cfunc is None: + self.niFake_GetAStringOfFixedMaximumSize_cfunc = self._get_library_function('niFake_GetAStringOfFixedMaximumSize') + self.niFake_GetAStringOfFixedMaximumSize_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_GetAStringOfFixedMaximumSize_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAStringOfFixedMaximumSize_cfunc(vi, a_string) + + def niFake_GetAStringUsingPythonCode(self, vi, a_number, a_string): # noqa: N802 + with self._func_lock: + if self.niFake_GetAStringUsingPythonCode_cfunc is None: + self.niFake_GetAStringUsingPythonCode_cfunc = self._get_library_function('niFake_GetAStringUsingPythonCode') + self.niFake_GetAStringUsingPythonCode_cfunc.argtypes = [ViSession, ViInt16, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_GetAStringUsingPythonCode_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAStringUsingPythonCode_cfunc(vi, a_number, a_string) + + def niFake_GetAnIviDanceCharArray(self, vi, buffer_size, char_array): # noqa: N802 + with self._func_lock: + if self.niFake_GetAnIviDanceCharArray_cfunc is None: + self.niFake_GetAnIviDanceCharArray_cfunc = self._get_library_function('niFake_GetAnIviDanceCharArray') + self.niFake_GetAnIviDanceCharArray_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_GetAnIviDanceCharArray_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAnIviDanceCharArray_cfunc(vi, buffer_size, char_array) + + def niFake_GetAnIviDanceWithATwistString(self, vi, buffer_size, a_string, actual_size): # noqa: N802 + with self._func_lock: + if self.niFake_GetAnIviDanceWithATwistString_cfunc is None: + self.niFake_GetAnIviDanceWithATwistString_cfunc = self._get_library_function('niFake_GetAnIviDanceWithATwistString') + self.niFake_GetAnIviDanceWithATwistString_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_GetAnIviDanceWithATwistString_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAnIviDanceWithATwistString_cfunc(vi, buffer_size, a_string, actual_size) + + def niFake_GetArrayForPythonCodeCustomType(self, vi, number_of_elements, array_out): # noqa: N802 + with self._func_lock: + if self.niFake_GetArrayForPythonCodeCustomType_cfunc is None: + self.niFake_GetArrayForPythonCodeCustomType_cfunc = self._get_library_function('niFake_GetArrayForPythonCodeCustomType') + self.niFake_GetArrayForPythonCodeCustomType_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 + self.niFake_GetArrayForPythonCodeCustomType_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetArrayForPythonCodeCustomType_cfunc(vi, number_of_elements, array_out) + + def niFake_GetArrayForPythonCodeDouble(self, vi, number_of_elements, array_out): # noqa: N802 + with self._func_lock: + if self.niFake_GetArrayForPythonCodeDouble_cfunc is None: + self.niFake_GetArrayForPythonCodeDouble_cfunc = self._get_library_function('niFake_GetArrayForPythonCodeDouble') + self.niFake_GetArrayForPythonCodeDouble_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_GetArrayForPythonCodeDouble_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetArrayForPythonCodeDouble_cfunc(vi, number_of_elements, array_out) + + def niFake_GetArraySizeForPythonCode(self, vi, size_out): # noqa: N802 + with self._func_lock: + if self.niFake_GetArraySizeForPythonCode_cfunc is None: + self.niFake_GetArraySizeForPythonCode_cfunc = self._get_library_function('niFake_GetArraySizeForPythonCode') + self.niFake_GetArraySizeForPythonCode_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_GetArraySizeForPythonCode_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetArraySizeForPythonCode_cfunc(vi, size_out) + + def niFake_GetArrayUsingIviDance(self, vi, array_size, array_out): # noqa: N802 + with self._func_lock: + if self.niFake_GetArrayUsingIviDance_cfunc is None: + self.niFake_GetArrayUsingIviDance_cfunc = self._get_library_function('niFake_GetArrayUsingIviDance') + self.niFake_GetArrayUsingIviDance_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_GetArrayUsingIviDance_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetArrayUsingIviDance_cfunc(vi, array_size, array_out) + + def niFake_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_GetAttributeViBoolean_cfunc is None: + self.niFake_GetAttributeViBoolean_cfunc = self._get_library_function('niFake_GetAttributeViBoolean') + self.niFake_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFake_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_GetAttributeViInt32_cfunc is None: + self.niFake_GetAttributeViInt32_cfunc = self._get_library_function('niFake_GetAttributeViInt32') + self.niFake_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_GetAttributeViInt64_cfunc is None: + self.niFake_GetAttributeViInt64_cfunc = self._get_library_function('niFake_GetAttributeViInt64') + self.niFake_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niFake_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_GetAttributeViReal64_cfunc is None: + self.niFake_GetAttributeViReal64_cfunc = self._get_library_function('niFake_GetAttributeViReal64') + self.niFake_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_GetAttributeViString_cfunc is None: + self.niFake_GetAttributeViString_cfunc = self._get_library_function('niFake_GetAttributeViString') + self.niFake_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buffer_size, attribute_value) + + def niFake_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 + with self._func_lock: + if self.niFake_GetCalDateAndTime_cfunc is None: + self.niFake_GetCalDateAndTime_cfunc = self._get_library_function('niFake_GetCalDateAndTime') + self.niFake_GetCalDateAndTime_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_GetCalDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetCalDateAndTime_cfunc(vi, cal_type, month, day, year, hour, minute) + + def niFake_GetCalInterval(self, vi, months): # noqa: N802 + with self._func_lock: + if self.niFake_GetCalInterval_cfunc is None: + self.niFake_GetCalInterval_cfunc = self._get_library_function('niFake_GetCalInterval') + self.niFake_GetCalInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_GetCalInterval_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetCalInterval_cfunc(vi, months) + + def niFake_GetChannelNames(self, vi, indices, name_size, names): # noqa: N802 + with self._func_lock: + if self.niFake_GetChannelNames_cfunc is None: + self.niFake_GetChannelNames_cfunc = self._get_library_function('niFake_GetChannelNames') + self.niFake_GetChannelNames_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_GetChannelNames_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetChannelNames_cfunc(vi, indices, name_size, names) + + def niFake_GetCustomType(self, vi, cs): # noqa: N802 + with self._func_lock: + if self.niFake_GetCustomType_cfunc is None: + self.niFake_GetCustomType_cfunc = self._get_library_function('niFake_GetCustomType') + self.niFake_GetCustomType_cfunc.argtypes = [ViSession, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 + self.niFake_GetCustomType_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetCustomType_cfunc(vi, cs) + + def niFake_GetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 + with self._func_lock: + if self.niFake_GetCustomTypeArray_cfunc is None: + self.niFake_GetCustomTypeArray_cfunc = self._get_library_function('niFake_GetCustomTypeArray') + self.niFake_GetCustomTypeArray_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 + self.niFake_GetCustomTypeArray_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetCustomTypeArray_cfunc(vi, number_of_elements, cs) + + def niFake_GetCustomTypeTypedef(self, vi, cst, csnt): # noqa: N802 + with self._func_lock: + if self.niFake_GetCustomTypeTypedef_cfunc is None: + self.niFake_GetCustomTypeTypedef_cfunc = self._get_library_function('niFake_GetCustomTypeTypedef') + self.niFake_GetCustomTypeTypedef_cfunc.argtypes = [ViSession, ctypes.POINTER(custom_struct_typedef.struct_CustomStructTypedef), ctypes.POINTER(custom_struct_nested_typedef.struct_CustomStructNestedTypedef)] # noqa: F405 + self.niFake_GetCustomTypeTypedef_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetCustomTypeTypedef_cfunc(vi, cst, csnt) + + def niFake_GetEnumValue(self, vi, a_quantity, a_turtle): # noqa: N802 + with self._func_lock: + if self.niFake_GetEnumValue_cfunc is None: + self.niFake_GetEnumValue_cfunc = self._get_library_function('niFake_GetEnumValue') + self.niFake_GetEnumValue_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt16)] # noqa: F405 + self.niFake_GetEnumValue_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetEnumValue_cfunc(vi, a_quantity, a_turtle) + + def niFake_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + with self._func_lock: + if self.niFake_GetError_cfunc is None: + self.niFake_GetError_cfunc = self._get_library_function('niFake_GetError') + self.niFake_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetError_cfunc(vi, error_code, buffer_size, description) + + def niFake_GetParameterWithOverriddenGrpcName(self, vi, original_parameter, enum_parameter): # noqa: N802 + with self._func_lock: + if self.niFake_GetParameterWithOverriddenGrpcName_cfunc is None: + self.niFake_GetParameterWithOverriddenGrpcName_cfunc = self._get_library_function('niFake_GetParameterWithOverriddenGrpcName') + self.niFake_GetParameterWithOverriddenGrpcName_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ViInt16] # noqa: F405 + self.niFake_GetParameterWithOverriddenGrpcName_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_GetParameterWithOverriddenGrpcName_cfunc(vi, original_parameter, enum_parameter) + + def niFake_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + with self._func_lock: + if self.niFake_ImportAttributeConfigurationBuffer_cfunc is None: + self.niFake_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFake_ImportAttributeConfigurationBuffer') + self.niFake_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niFake_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ImportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) + + def niFake_ImportAttributeConfigurationBufferEx(self, vi, size, configuration): # noqa: N802 + with self._func_lock: + if self.niFake_ImportAttributeConfigurationBufferEx_cfunc is None: + self.niFake_ImportAttributeConfigurationBufferEx_cfunc = self._get_library_function('niFake_ImportAttributeConfigurationBufferEx') + self.niFake_ImportAttributeConfigurationBufferEx_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niFake_ImportAttributeConfigurationBufferEx_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ImportAttributeConfigurationBufferEx_cfunc(vi, size, configuration) + + def niFake_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niFake_InitWithOptions_cfunc is None: + self.niFake_InitWithOptions_cfunc = self._get_library_function('niFake_InitWithOptions') + self.niFake_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niFake_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, vi) + + def niFake_Initiate(self, vi): # noqa: N802 + with self._func_lock: + if self.niFake_Initiate_cfunc is None: + self.niFake_Initiate_cfunc = self._get_library_function('niFake_Initiate') + self.niFake_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFake_Initiate_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_Initiate_cfunc(vi) + + def niFake_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niFake_LockSession_cfunc is None: + self.niFake_LockSession_cfunc = self._get_library_function('niFake_LockSession') + self.niFake_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFake_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_LockSession_cfunc(vi, caller_has_lock) + + def niFake_MethodUsingWholeAndFractionalNumbers(self, whole_number, fractional_number): # noqa: N802 + with self._func_lock: + if self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc is None: + self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc = self._get_library_function('niFake_MethodUsingWholeAndFractionalNumbers') + self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc.argtypes = [ctypes.POINTER(ViInt32), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MethodUsingWholeAndFractionalNumbers_cfunc(whole_number, fractional_number) + + def niFake_MethodWithGrpcOnlyParam(self, simple_param): # noqa: N802 + with self._func_lock: + if self.niFake_MethodWithGrpcOnlyParam_cfunc is None: + self.niFake_MethodWithGrpcOnlyParam_cfunc = self._get_library_function('niFake_MethodWithGrpcOnlyParam') + self.niFake_MethodWithGrpcOnlyParam_cfunc.argtypes = [ViInt32] # noqa: F405 + self.niFake_MethodWithGrpcOnlyParam_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MethodWithGrpcOnlyParam_cfunc(simple_param) + + def niFake_MethodWithProtoOnlyParameter(self, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_MethodWithProtoOnlyParameter_cfunc is None: + self.niFake_MethodWithProtoOnlyParameter_cfunc = self._get_library_function('niFake_MethodWithProtoOnlyParameter') + self.niFake_MethodWithProtoOnlyParameter_cfunc.argtypes = [ViInt32] # noqa: F405 + self.niFake_MethodWithProtoOnlyParameter_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MethodWithProtoOnlyParameter_cfunc(attribute_value) + + def niFake_MixedIviDanceAndLenMechanism(self, vi, input_values, input_values_size, output_size, output_array): # noqa: N802 + with self._func_lock: + if self.niFake_MixedIviDanceAndLenMechanism_cfunc is None: + self.niFake_MixedIviDanceAndLenMechanism_cfunc = self._get_library_function('niFake_MixedIviDanceAndLenMechanism') + self.niFake_MixedIviDanceAndLenMechanism_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ViInt32, ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFake_MixedIviDanceAndLenMechanism_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MixedIviDanceAndLenMechanism_cfunc(vi, input_values, input_values_size, output_size, output_array) + + def niFake_MultipleArrayTypes(self, vi, output_array_size, output_array, output_array_of_fixed_length, input_array_sizes, input_array_of_floats, input_array_of_integers): # noqa: N802 + with self._func_lock: + if self.niFake_MultipleArrayTypes_cfunc is None: + self.niFake_MultipleArrayTypes_cfunc = self._get_library_function('niFake_MultipleArrayTypes') + self.niFake_MultipleArrayTypes_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt16)] # noqa: F405 + self.niFake_MultipleArrayTypes_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MultipleArrayTypes_cfunc(vi, output_array_size, output_array, output_array_of_fixed_length, input_array_sizes, input_array_of_floats, input_array_of_integers) + + def niFake_MultipleArraysDifferentSize(self, vi, values_array, values_array_size, data_array, data_array_size): # noqa: N802 + with self._func_lock: + if self.niFake_MultipleArraysDifferentSize_cfunc is None: + self.niFake_MultipleArraysDifferentSize_cfunc = self._get_library_function('niFake_MultipleArraysDifferentSize') + self.niFake_MultipleArraysDifferentSize_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViInt32), ViInt32] # noqa: F405 + self.niFake_MultipleArraysDifferentSize_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MultipleArraysDifferentSize_cfunc(vi, values_array, values_array_size, data_array, data_array_size) + + def niFake_MultipleArraysSameSize(self, vi, values1, values2, values3, values4, size): # noqa: N802 + with self._func_lock: + if self.niFake_MultipleArraysSameSize_cfunc is None: + self.niFake_MultipleArraysSameSize_cfunc = self._get_library_function('niFake_MultipleArraysSameSize') + self.niFake_MultipleArraysSameSize_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViInt32] # noqa: F405 + self.niFake_MultipleArraysSameSize_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_MultipleArraysSameSize_cfunc(vi, values1, values2, values3, values4, size) + + def niFake_OneInputFunction(self, vi, a_number): # noqa: N802 + with self._func_lock: + if self.niFake_OneInputFunction_cfunc is None: + self.niFake_OneInputFunction_cfunc = self._get_library_function('niFake_OneInputFunction') + self.niFake_OneInputFunction_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niFake_OneInputFunction_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_OneInputFunction_cfunc(vi, a_number) + + def niFake_ParametersAreMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 + with self._func_lock: + if self.niFake_ParametersAreMultipleTypes_cfunc is None: + self.niFake_ParametersAreMultipleTypes_cfunc = self._get_library_function('niFake_ParametersAreMultipleTypes') + self.niFake_ParametersAreMultipleTypes_cfunc.argtypes = [ViSession, ViBoolean, ViInt32, ViInt64, ViInt16, ViReal64, ViReal64, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_ParametersAreMultipleTypes_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ParametersAreMultipleTypes_cfunc(vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string) + + def niFake_PoorlyNamedSimpleFunction(self, vi): # noqa: N802 + with self._func_lock: + if self.niFake_PoorlyNamedSimpleFunction_cfunc is None: + self.niFake_PoorlyNamedSimpleFunction_cfunc = self._get_library_function('niFake_PoorlyNamedSimpleFunction') + self.niFake_PoorlyNamedSimpleFunction_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFake_PoorlyNamedSimpleFunction_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_PoorlyNamedSimpleFunction_cfunc(vi) + + def niFake_Read(self, vi, maximum_time, reading): # noqa: N802 + with self._func_lock: + if self.niFake_Read_cfunc is None: + self.niFake_Read_cfunc = self._get_library_function('niFake_Read') + self.niFake_Read_cfunc.argtypes = [ViSession, ViReal64, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_Read_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_Read_cfunc(vi, maximum_time, reading) + + def niFake_ReadFromChannel(self, vi, channel_name, maximum_time, reading): # noqa: N802 + with self._func_lock: + if self.niFake_ReadFromChannel_cfunc is None: + self.niFake_ReadFromChannel_cfunc = self._get_library_function('niFake_ReadFromChannel') + self.niFake_ReadFromChannel_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_ReadFromChannel_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ReadFromChannel_cfunc(vi, channel_name, maximum_time, reading) + + def niFake_ReturnANumberAndAString(self, vi, a_number, a_string): # noqa: N802 + with self._func_lock: + if self.niFake_ReturnANumberAndAString_cfunc is None: + self.niFake_ReturnANumberAndAString_cfunc = self._get_library_function('niFake_ReturnANumberAndAString') + self.niFake_ReturnANumberAndAString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_ReturnANumberAndAString_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ReturnANumberAndAString_cfunc(vi, a_number, a_string) + + def niFake_ReturnDurationInSeconds(self, vi, timedelta): # noqa: N802 + with self._func_lock: + if self.niFake_ReturnDurationInSeconds_cfunc is None: + self.niFake_ReturnDurationInSeconds_cfunc = self._get_library_function('niFake_ReturnDurationInSeconds') + self.niFake_ReturnDurationInSeconds_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_ReturnDurationInSeconds_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ReturnDurationInSeconds_cfunc(vi, timedelta) + + def niFake_ReturnListOfDurationsInSeconds(self, vi, number_of_elements, timedeltas): # noqa: N802 + with self._func_lock: + if self.niFake_ReturnListOfDurationsInSeconds_cfunc is None: + self.niFake_ReturnListOfDurationsInSeconds_cfunc = self._get_library_function('niFake_ReturnListOfDurationsInSeconds') + self.niFake_ReturnListOfDurationsInSeconds_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_ReturnListOfDurationsInSeconds_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ReturnListOfDurationsInSeconds_cfunc(vi, number_of_elements, timedeltas) + + def niFake_ReturnMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, array_size, an_array, string_size, a_string): # noqa: N802 + with self._func_lock: + if self.niFake_ReturnMultipleTypes_cfunc is None: + self.niFake_ReturnMultipleTypes_cfunc = self._get_library_function('niFake_ReturnMultipleTypes') + self.niFake_ReturnMultipleTypes_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt64), ctypes.POINTER(ViInt16), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_ReturnMultipleTypes_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_ReturnMultipleTypes_cfunc(vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, array_size, an_array, string_size, a_string) + + def niFake_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_SetAttributeViBoolean_cfunc is None: + self.niFake_SetAttributeViBoolean_cfunc = self._get_library_function('niFake_SetAttributeViBoolean') + self.niFake_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niFake_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_SetAttributeViInt32_cfunc is None: + self.niFake_SetAttributeViInt32_cfunc = self._get_library_function('niFake_SetAttributeViInt32') + self.niFake_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niFake_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_SetAttributeViInt64_cfunc is None: + self.niFake_SetAttributeViInt64_cfunc = self._get_library_function('niFake_SetAttributeViInt64') + self.niFake_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 + self.niFake_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetAttributeViInt64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_SetAttributeViReal64_cfunc is None: + self.niFake_SetAttributeViReal64_cfunc = self._get_library_function('niFake_SetAttributeViReal64') + self.niFake_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niFake_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFake_SetAttributeViString_cfunc is None: + self.niFake_SetAttributeViString_cfunc = self._get_library_function('niFake_SetAttributeViString') + self.niFake_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFake_SetCustomType(self, vi, cs): # noqa: N802 + with self._func_lock: + if self.niFake_SetCustomType_cfunc is None: + self.niFake_SetCustomType_cfunc = self._get_library_function('niFake_SetCustomType') + self.niFake_SetCustomType_cfunc.argtypes = [ViSession, custom_struct.struct_CustomStruct] # noqa: F405 + self.niFake_SetCustomType_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetCustomType_cfunc(vi, cs) + + def niFake_SetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 + with self._func_lock: + if self.niFake_SetCustomTypeArray_cfunc is None: + self.niFake_SetCustomTypeArray_cfunc = self._get_library_function('niFake_SetCustomTypeArray') + self.niFake_SetCustomTypeArray_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(custom_struct.struct_CustomStruct)] # noqa: F405 + self.niFake_SetCustomTypeArray_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetCustomTypeArray_cfunc(vi, number_of_elements, cs) + + def niFake_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niFake_SetRuntimeEnvironment_cfunc is None: + self.niFake_SetRuntimeEnvironment_cfunc = self._get_library_function('niFake_SetRuntimeEnvironment') + self.niFake_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niFake_StringValuedEnumInputFunctionWithDefaults(self, vi, a_mobile_os_name): # noqa: N802 + with self._func_lock: + if self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc is None: + self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc = self._get_library_function('niFake_StringValuedEnumInputFunctionWithDefaults') + self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_StringValuedEnumInputFunctionWithDefaults_cfunc(vi, a_mobile_os_name) + + def niFake_TwoInputFunction(self, vi, a_number, a_string): # noqa: N802 + with self._func_lock: + if self.niFake_TwoInputFunction_cfunc is None: + self.niFake_TwoInputFunction_cfunc = self._get_library_function('niFake_TwoInputFunction') + self.niFake_TwoInputFunction_cfunc.argtypes = [ViSession, ViReal64, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_TwoInputFunction_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_TwoInputFunction_cfunc(vi, a_number, a_string) + + def niFake_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niFake_UnlockSession_cfunc is None: + self.niFake_UnlockSession_cfunc = self._get_library_function('niFake_UnlockSession') + self.niFake_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFake_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_UnlockSession_cfunc(vi, caller_has_lock) + + def niFake_Use64BitNumber(self, vi, input, output): # noqa: N802 + with self._func_lock: + if self.niFake_Use64BitNumber_cfunc is None: + self.niFake_Use64BitNumber_cfunc = self._get_library_function('niFake_Use64BitNumber') + self.niFake_Use64BitNumber_cfunc.argtypes = [ViSession, ViInt64, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niFake_Use64BitNumber_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_Use64BitNumber_cfunc(vi, input, output) + + def niFake_WriteWaveform(self, vi, number_of_samples, waveform): # noqa: N802 + with self._func_lock: + if self.niFake_WriteWaveform_cfunc is None: + self.niFake_WriteWaveform_cfunc = self._get_library_function('niFake_WriteWaveform') + self.niFake_WriteWaveform_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFake_WriteWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_WriteWaveform_cfunc(vi, number_of_samples, waveform) + + def niFake_WriteWaveformNumpyComplex128(self, vi, number_of_samples, waveform_data_array): # noqa: N802 + with self._func_lock: + if self.niFake_WriteWaveformNumpyComplex128_cfunc is None: + self.niFake_WriteWaveformNumpyComplex128_cfunc = self._get_library_function('niFake_WriteWaveformNumpyComplex128') + self.niFake_WriteWaveformNumpyComplex128_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(NIComplexNumber)] # noqa: F405 + self.niFake_WriteWaveformNumpyComplex128_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_WriteWaveformNumpyComplex128_cfunc(vi, number_of_samples, waveform_data_array) + + def niFake_WriteWaveformNumpyComplex64(self, vi, number_of_samples, waveform_data_array): # noqa: N802 + with self._func_lock: + if self.niFake_WriteWaveformNumpyComplex64_cfunc is None: + self.niFake_WriteWaveformNumpyComplex64_cfunc = self._get_library_function('niFake_WriteWaveformNumpyComplex64') + self.niFake_WriteWaveformNumpyComplex64_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(NIComplexNumberF32)] # noqa: F405 + self.niFake_WriteWaveformNumpyComplex64_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_WriteWaveformNumpyComplex64_cfunc(vi, number_of_samples, waveform_data_array) + + def niFake_WriteWaveformNumpyComplexInterleavedI16(self, vi, number_of_samples, waveform_data_array): # noqa: N802 + with self._func_lock: + if self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc is None: + self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc = self._get_library_function('niFake_WriteWaveformNumpyComplexInterleavedI16') + self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(NIComplexI16)] # noqa: F405 + self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_WriteWaveformNumpyComplexInterleavedI16_cfunc(vi, number_of_samples, waveform_data_array) + + def niFake_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niFake_close_cfunc is None: + self.niFake_close_cfunc = self._get_library_function('niFake_close') + self.niFake_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFake_close_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_close_cfunc(vi) + + def niFake_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niFake_error_message_cfunc is None: + self.niFake_error_message_cfunc = self._get_library_function('niFake_error_message') + self.niFake_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_error_message_cfunc(vi, error_code, error_message) + + def niFake_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niFake_self_test_cfunc is None: + self.niFake_self_test_cfunc = self._get_library_function('niFake_self_test') + self.niFake_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFake_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niFake_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nifake/nifake/_library_interpreter.py b/generated/nifake/nifake/_library_interpreter.py new file mode 100644 index 0000000000..1df2f18b87 --- /dev/null +++ b/generated/nifake/nifake/_library_interpreter.py @@ -0,0 +1,843 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import nifake._complextype as _complextype +import nifake._library_singleton as _library_singleton +import nifake._visatype as _visatype +import nifake.enums as enums # noqa: F401 +import nifake.errors as errors + +import nifake.custom_struct as custom_struct # noqa: F401 + +import nifake.custom_struct_typedef as custom_struct_typedef # noqa: F401 + +import nifake.custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + if library_type in (_complextype.NIComplexI16, _complextype.NIComplexNumberF32, _complextype.NIComplexNumber): + complex_dtype = numpy.dtype(library_type) + if value.ndim > 1: + # we create a flattened view of the multi-dimensional numpy array + restructured_array_view = value.ravel().view(complex_dtype) + else: + restructured_array_view = value.view(complex_dtype) + return restructured_array_view.ctypes.data_as(ctypes.POINTER(library_type)) + else: + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_Abort(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def accept_list_of_durations_in_seconds(self, delays): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + count_ctype = _visatype.ViInt32(0 if delays is None else len(delays)) # case S160 + delays_ctype = _get_ctypes_pointer_for_buffer(value=delays, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niFake_AcceptListOfDurationsInSeconds(vi_ctype, count_ctype, delays_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def bool_array_output_function(self, number_of_elements): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 + an_array_size = number_of_elements # case B600 + an_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViBoolean, size=an_array_size) # case B600 + error_code = self._library.niFake_BoolArrayOutputFunction(vi_ctype, number_of_elements_ctype, an_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [bool(an_array_ctype[i]) for i in range(number_of_elements_ctype.value)] + + def configure_abc(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_ConfigureABC(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def custom_nested_struct_roundtrip(self, nested_custom_type_in): # noqa: N802 + nested_custom_type_in_ctype = custom_struct_nested_typedef.struct_CustomStructNestedTypedef(nested_custom_type_in) # case S150 + nested_custom_type_out_ctype = custom_struct_nested_typedef.struct_CustomStructNestedTypedef() # case S220 + error_code = self._library.niFake_CustomNestedStructRoundtrip(nested_custom_type_in_ctype, None if nested_custom_type_out_ctype is None else (ctypes.pointer(nested_custom_type_out_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return custom_struct_nested_typedef.CustomStructNestedTypedef(nested_custom_type_out_ctype) + + def double_all_the_nums(self, numbers): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_count_ctype = _visatype.ViInt32(0 if numbers is None else len(numbers)) # case S160 + numbers_ctype = _get_ctypes_pointer_for_buffer(value=numbers, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niFake_DoubleAllTheNums(vi_ctype, number_count_ctype, numbers_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def enum_array_output_function(self, number_of_elements): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 + an_array_size = number_of_elements # case B600 + an_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt16, size=an_array_size) # case B600 + error_code = self._library.niFake_EnumArrayOutputFunction(vi_ctype, number_of_elements_ctype, an_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [enums.Turtle(an_array_ctype[i]) for i in range(number_of_elements_ctype.value)] + + def enum_input_function_with_defaults(self, a_turtle): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_turtle_ctype = _visatype.ViInt16(a_turtle.value) # case S130 + error_code = self._library.niFake_EnumInputFunctionWithDefaults(vi_ctype, a_turtle_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def export_attribute_configuration_buffer(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_in_bytes_ctype = _visatype.ViInt32() # case S170 + configuration_ctype = None # case B580 + error_code = self._library.niFake_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + size_in_bytes_ctype = _visatype.ViInt32(error_code) # case S180 + configuration_size = size_in_bytes_ctype.value # case B590 + configuration_array = array.array("b", [0]) * configuration_size # case B590 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niFake_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return configuration_array + + def fetch_waveform(self, number_of_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(number_of_samples) # case S210 + waveform_data_size = number_of_samples # case B600 + waveform_data_array = array.array("d", [0]) * waveform_data_size # case B600 + waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_visatype.ViReal64) # case B600 + actual_number_of_samples_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_FetchWaveform(vi_ctype, number_of_samples_ctype, waveform_data_ctype, None if actual_number_of_samples_ctype is None else (ctypes.pointer(actual_number_of_samples_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_data_array + + def fetch_waveform_into(self, waveform_data): # noqa: N802 + number_of_samples = len(waveform_data) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(number_of_samples) # case S210 + waveform_data_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data) # case B510 + actual_number_of_samples_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_FetchWaveform(vi_ctype, number_of_samples_ctype, waveform_data_ctype, None if actual_number_of_samples_ctype is None else (ctypes.pointer(actual_number_of_samples_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self, multidimensional_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + multidimensional_array_ctype = _get_ctypes_pointer_for_buffer(value=multidimensional_array, library_type=_complextype.NIComplexNumber) # case B510 + error_code = self._library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(vi_ctype, multidimensional_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def function_with_intflag_parameter(self, flag): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + flag_ctype = _visatype.ViUInt64(flag.value) # case S130 + error_code = self._library.niFake_FunctionWithIntflagParameter(vi_ctype, flag_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def function_with_repeated_capability_type(self, site_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + site_list_ctype = ctypes.create_string_buffer(site_list.encode(self._encoding)) # case C010 + error_code = self._library.niFake_FunctionWithRepeatedCapabilityType(vi_ctype, site_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def get_a_boolean(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_boolean_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niFake_GetABoolean(vi_ctype, None if a_boolean_ctype is None else (ctypes.pointer(a_boolean_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(a_boolean_ctype.value) + + def get_a_number(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_number_ctype = _visatype.ViInt16() # case S220 + error_code = self._library.niFake_GetANumber(vi_ctype, None if a_number_ctype is None else (ctypes.pointer(a_number_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(a_number_ctype.value) + + def get_a_string_of_fixed_maximum_size(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_string_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niFake_GetAStringOfFixedMaximumSize(vi_ctype, a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return a_string_ctype.value.decode(self._encoding) + + def get_a_string_using_python_code(self, a_number): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_number_ctype = _visatype.ViInt16(a_number) # case S150 + a_string_ctype = (_visatype.ViChar * a_number)() # case C080 + error_code = self._library.niFake_GetAStringUsingPythonCode(vi_ctype, a_number_ctype, a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return a_string_ctype.value.decode(self._encoding) + + def get_an_ivi_dance_char_array(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + buffer_size_ctype = _visatype.ViInt32() # case S170 + char_array_ctype = None # case C050 + error_code = self._library.niFake_GetAnIviDanceCharArray(vi_ctype, buffer_size_ctype, char_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + char_array_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niFake_GetAnIviDanceCharArray(vi_ctype, buffer_size_ctype, char_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return char_array_ctype.value.decode(self._encoding) + + def get_an_ivi_dance_with_a_twist_string(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + a_string_ctype = None # case C090 + actual_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_GetAnIviDanceWithATwistString(vi_ctype, buffer_size_ctype, a_string_ctype, None if actual_size_ctype is None else (ctypes.pointer(actual_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_size_ctype.value) # case S200 + a_string_ctype = (_visatype.ViChar * actual_size_ctype.value)() # case C100 + error_code = self._library.niFake_GetAnIviDanceWithATwistString(vi_ctype, buffer_size_ctype, a_string_ctype, None if actual_size_ctype is None else (ctypes.pointer(actual_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return a_string_ctype.value.decode(self._encoding) + + def get_array_for_python_code_custom_type(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(self.get_array_size_for_python_code()) # case S120 + array_out_size = self.get_array_size_for_python_code() # case B560 + array_out_ctype = _get_ctypes_pointer_for_buffer(library_type=custom_struct.struct_CustomStruct, size=array_out_size) # case B560 + error_code = self._library.niFake_GetArrayForPythonCodeCustomType(vi_ctype, number_of_elements_ctype, array_out_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [custom_struct.CustomStruct(array_out_ctype[i]) for i in range(self.get_array_size_for_python_code())] + + def get_array_for_python_code_double(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(self.get_array_size_for_python_code()) # case S120 + array_out_size = self.get_array_size_for_python_code() # case B560 + array_out_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=array_out_size) # case B560 + error_code = self._library.niFake_GetArrayForPythonCodeDouble(vi_ctype, number_of_elements_ctype, array_out_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(array_out_ctype[i]) for i in range(self.get_array_size_for_python_code())] + + def get_array_size_for_python_code(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_out_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_GetArraySizeForPythonCode(vi_ctype, None if size_out_ctype is None else (ctypes.pointer(size_out_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(size_out_ctype.value) + + def get_array_using_ivi_dance(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + array_size_ctype = _visatype.ViInt32() # case S170 + array_out_ctype = None # case B580 + error_code = self._library.niFake_GetArrayUsingIviDance(vi_ctype, array_size_ctype, array_out_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + array_size_ctype = _visatype.ViInt32(error_code) # case S180 + array_out_size = array_size_ctype.value # case B590 + array_out_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=array_out_size) # case B590 + error_code = self._library.niFake_GetArrayUsingIviDance(vi_ctype, array_size_ctype, array_out_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(array_out_ctype[i]) for i in range(array_size_ctype.value)] + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niFake_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(attribute_value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niFake_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFake_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(attribute_value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + attribute_value_ctype = None # case C050 + error_code = self._library.niFake_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + attribute_value_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niFake_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return attribute_value_ctype.value.decode(self._encoding) + + def get_cal_date_and_time(self, cal_type): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + cal_type_ctype = _visatype.ViInt32(cal_type) # case S150 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + year_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_GetCalDateAndTime(vi_ctype, cal_type_ctype, None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if year_ctype is None else (ctypes.pointer(year_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(month_ctype.value), int(day_ctype.value), int(year_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_cal_interval(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + months_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFake_GetCalInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(months_ctype.value) + + def get_channel_names(self, indices): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 + name_size_ctype = _visatype.ViInt32() # case S170 + names_ctype = None # case C050 + error_code = self._library.niFake_GetChannelNames(vi_ctype, indices_ctype, name_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + name_size_ctype = _visatype.ViInt32(error_code) # case S180 + names_ctype = (_visatype.ViChar * name_size_ctype.value)() # case C060 + error_code = self._library.niFake_GetChannelNames(vi_ctype, indices_ctype, name_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return names_ctype.value.decode(self._encoding) + + def get_custom_type(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + cs_ctype = custom_struct.struct_CustomStruct() # case S220 + error_code = self._library.niFake_GetCustomType(vi_ctype, None if cs_ctype is None else (ctypes.pointer(cs_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return custom_struct.CustomStruct(cs_ctype) + + def get_custom_type_array(self, number_of_elements): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 + cs_size = number_of_elements # case B600 + cs_ctype = _get_ctypes_pointer_for_buffer(library_type=custom_struct.struct_CustomStruct, size=cs_size) # case B600 + error_code = self._library.niFake_GetCustomTypeArray(vi_ctype, number_of_elements_ctype, cs_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [custom_struct.CustomStruct(cs_ctype[i]) for i in range(number_of_elements_ctype.value)] + + def get_custom_type_typedef(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + cst_ctype = custom_struct_typedef.struct_CustomStructTypedef() # case S220 + csnt_ctype = custom_struct_nested_typedef.struct_CustomStructNestedTypedef() # case S220 + error_code = self._library.niFake_GetCustomTypeTypedef(vi_ctype, None if cst_ctype is None else (ctypes.pointer(cst_ctype)), None if csnt_ctype is None else (ctypes.pointer(csnt_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return custom_struct_typedef.CustomStructTypedef(cst_ctype), custom_struct_nested_typedef.CustomStructNestedTypedef(csnt_ctype) + + def get_enum_value(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_quantity_ctype = _visatype.ViInt32() # case S220 + a_turtle_ctype = _visatype.ViInt16() # case S220 + error_code = self._library.niFake_GetEnumValue(vi_ctype, None if a_quantity_ctype is None else (ctypes.pointer(a_quantity_ctype)), None if a_turtle_ctype is None else (ctypes.pointer(a_turtle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(a_quantity_ctype.value), enums.Turtle(a_turtle_ctype.value) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + buffer_size_ctype = _visatype.ViInt32() # case S170 + description_ctype = None # case C050 + error_code = self._library.niFake_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niFake_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) + + def get_parameter_with_overridden_grpc_name(self, enum_parameter): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + original_parameter_ctype = _visatype.ViInt16() # case S220 + enum_parameter_ctype = _visatype.ViInt16(enum_parameter.value) # case S130 + error_code = self._library.niFake_GetParameterWithOverriddenGrpcName(vi_ctype, None if original_parameter_ctype is None else (ctypes.pointer(original_parameter_ctype)), enum_parameter_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(original_parameter_ctype.value) + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_in_bytes_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niFake_ImportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def import_attribute_configuration_buffer_ex(self, configuration): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niFake_ImportAttributeConfigurationBufferEx(vi_ctype, size_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + id_query_ctype = _visatype.ViBoolean(id_query) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niFake_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initiate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_Initiate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def method_using_whole_and_fractional_numbers(self): # noqa: N802 + whole_number_ctype = _visatype.ViInt32() # case S220 + fractional_number_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFake_MethodUsingWholeAndFractionalNumbers(None if whole_number_ctype is None else (ctypes.pointer(whole_number_ctype)), None if fractional_number_ctype is None else (ctypes.pointer(fractional_number_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(whole_number_ctype.value), float(fractional_number_ctype.value) + + def method_with_grpc_only_param(self, simple_param): # noqa: N802 + simple_param_ctype = _visatype.ViInt32(simple_param) # case S150 + error_code = self._library.niFake_MethodWithGrpcOnlyParam(simple_param_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def method_with_proto_only_parameter(self, attribute_value): # noqa: N802 + attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 + error_code = self._library.niFake_MethodWithProtoOnlyParameter(attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def mixed_ivi_dance_and_len_mechanism(self, input_values): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + input_values_ctype = _get_ctypes_pointer_for_buffer(value=input_values, library_type=_visatype.ViReal64) # case B550 + input_values_size_ctype = _visatype.ViInt32(0 if input_values is None else len(input_values)) # case S160 + output_size_ctype = _visatype.ViInt32() # case S170 + output_array_ctype = None # case B580 + error_code = self._library.niFake_MixedIviDanceAndLenMechanism(vi_ctype, input_values_ctype, input_values_size_ctype, output_size_ctype, output_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + output_size_ctype = _visatype.ViInt32(error_code) # case S180 + output_array_size = output_size_ctype.value # case B590 + output_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=output_array_size) # case B590 + error_code = self._library.niFake_MixedIviDanceAndLenMechanism(vi_ctype, input_values_ctype, input_values_size_ctype, output_size_ctype, output_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [int(output_array_ctype[i]) for i in range(output_size_ctype.value)] + + def multiple_array_types(self, output_array_size, input_array_of_floats, input_array_of_integers): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + output_array_size_ctype = _visatype.ViInt32(output_array_size) # case S210 + output_array_size = output_array_size # case B600 + output_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=output_array_size) # case B600 + output_array_of_fixed_length_size = 3 # case B570 + output_array_of_fixed_length_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=output_array_of_fixed_length_size) # case B570 + input_array_sizes_ctype = _visatype.ViInt32(0 if input_array_of_floats is None else len(input_array_of_floats)) # case S160 + input_array_of_floats_ctype = _get_ctypes_pointer_for_buffer(value=input_array_of_floats, library_type=_visatype.ViReal64) # case B550 + input_array_of_integers_ctype = _get_ctypes_pointer_for_buffer(value=input_array_of_integers, library_type=_visatype.ViInt16) # case B550 + error_code = self._library.niFake_MultipleArrayTypes(vi_ctype, output_array_size_ctype, output_array_ctype, output_array_of_fixed_length_ctype, input_array_sizes_ctype, input_array_of_floats_ctype, input_array_of_integers_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(output_array_ctype[i]) for i in range(output_array_size_ctype.value)], [float(output_array_of_fixed_length_ctype[i]) for i in range(3)] + + def multiple_arrays_different_size(self, values_array, data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + values_array_ctype = _get_ctypes_pointer_for_buffer(value=values_array, library_type=_visatype.ViReal64) # case B550 + values_array_size_ctype = _visatype.ViInt32(0 if values_array is None else len(values_array)) # case S160 + data_array_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViInt32) # case B550 + data_array_size_ctype = _visatype.ViInt32(0 if data_array is None else len(data_array)) # case S160 + error_code = self._library.niFake_MultipleArraysDifferentSize(vi_ctype, values_array_ctype, values_array_size_ctype, data_array_ctype, data_array_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def multiple_arrays_same_size(self, values1, values2, values3, values4): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + values1_ctype = _get_ctypes_pointer_for_buffer(value=values1, library_type=_visatype.ViReal64) # case B550 + values2_ctype = _get_ctypes_pointer_for_buffer(value=values2, library_type=_visatype.ViReal64) # case B550 + values3_ctype = _get_ctypes_pointer_for_buffer(value=values3, library_type=_visatype.ViReal64) # case B550 + values4_ctype = _get_ctypes_pointer_for_buffer(value=values4, library_type=_visatype.ViReal64) # case B550 + size_ctype = _visatype.ViInt32(0 if values1 is None else len(values1)) # case S160 + error_code = self._library.niFake_MultipleArraysSameSize(vi_ctype, values1_ctype, values2_ctype, values3_ctype, values4_ctype, size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def one_input_function(self, a_number): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_number_ctype = _visatype.ViInt32(a_number) # case S150 + error_code = self._library.niFake_OneInputFunction(vi_ctype, a_number_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def parameters_are_multiple_types(self, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_boolean_ctype = _visatype.ViBoolean(a_boolean) # case S150 + an_int32_ctype = _visatype.ViInt32(an_int32) # case S150 + an_int64_ctype = _visatype.ViInt64(an_int64) # case S150 + an_int_enum_ctype = _visatype.ViInt16(an_int_enum.value) # case S130 + a_float_ctype = _visatype.ViReal64(a_float) # case S150 + a_float_enum_ctype = _visatype.ViReal64(a_float_enum.value) # case S130 + a_string_ctype = ctypes.create_string_buffer(a_string.encode(self._encoding)) # case C020 + error_code = self._library.niFake_ParametersAreMultipleTypes(vi_ctype, a_boolean_ctype, an_int32_ctype, an_int64_ctype, an_int_enum_ctype, a_float_ctype, a_float_enum_ctype, a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def simple_function(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_PoorlyNamedSimpleFunction(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def read(self, maximum_time): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ctype = _visatype.ViReal64(maximum_time) # case S150 + reading_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFake_Read(vi_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(reading_ctype.value) + + def read_from_channel(self, channel_name, maximum_time): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + maximum_time_ctype = _visatype.ViInt32(maximum_time) # case S150 + reading_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFake_ReadFromChannel(vi_ctype, channel_name_ctype, maximum_time_ctype, None if reading_ctype is None else (ctypes.pointer(reading_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(reading_ctype.value) + + def return_a_number_and_a_string(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_number_ctype = _visatype.ViInt16() # case S220 + a_string_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niFake_ReturnANumberAndAString(vi_ctype, None if a_number_ctype is None else (ctypes.pointer(a_number_ctype)), a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(a_number_ctype.value), a_string_ctype.value.decode(self._encoding) + + def return_duration_in_seconds(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + timedelta_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFake_ReturnDurationInSeconds(vi_ctype, None if timedelta_ctype is None else (ctypes.pointer(timedelta_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(timedelta_ctype.value) + + def return_list_of_durations_in_seconds(self, number_of_elements): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(number_of_elements) # case S210 + timedeltas_size = number_of_elements # case B600 + timedeltas_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=timedeltas_size) # case B600 + error_code = self._library.niFake_ReturnListOfDurationsInSeconds(vi_ctype, number_of_elements_ctype, timedeltas_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(timedeltas_ctype[i]) for i in range(number_of_elements_ctype.value)] + + def return_multiple_types(self, array_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_boolean_ctype = _visatype.ViBoolean() # case S220 + an_int32_ctype = _visatype.ViInt32() # case S220 + an_int64_ctype = _visatype.ViInt64() # case S220 + an_int_enum_ctype = _visatype.ViInt16() # case S220 + a_float_ctype = _visatype.ViReal64() # case S220 + a_float_enum_ctype = _visatype.ViReal64() # case S220 + array_size_ctype = _visatype.ViInt32(array_size) # case S210 + an_array_size = array_size # case B600 + an_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=an_array_size) # case B600 + string_size_ctype = _visatype.ViInt32() # case S170 + a_string_ctype = None # case C050 + error_code = self._library.niFake_ReturnMultipleTypes(vi_ctype, None if a_boolean_ctype is None else (ctypes.pointer(a_boolean_ctype)), None if an_int32_ctype is None else (ctypes.pointer(an_int32_ctype)), None if an_int64_ctype is None else (ctypes.pointer(an_int64_ctype)), None if an_int_enum_ctype is None else (ctypes.pointer(an_int_enum_ctype)), None if a_float_ctype is None else (ctypes.pointer(a_float_ctype)), None if a_float_enum_ctype is None else (ctypes.pointer(a_float_enum_ctype)), array_size_ctype, an_array_ctype, string_size_ctype, a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + string_size_ctype = _visatype.ViInt32(error_code) # case S180 + a_string_ctype = (_visatype.ViChar * string_size_ctype.value)() # case C060 + error_code = self._library.niFake_ReturnMultipleTypes(vi_ctype, None if a_boolean_ctype is None else (ctypes.pointer(a_boolean_ctype)), None if an_int32_ctype is None else (ctypes.pointer(an_int32_ctype)), None if an_int64_ctype is None else (ctypes.pointer(an_int64_ctype)), None if an_int_enum_ctype is None else (ctypes.pointer(an_int_enum_ctype)), None if a_float_ctype is None else (ctypes.pointer(a_float_ctype)), None if a_float_enum_ctype is None else (ctypes.pointer(a_float_enum_ctype)), array_size_ctype, an_array_ctype, string_size_ctype, a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(a_boolean_ctype.value), int(an_int32_ctype.value), int(an_int64_ctype.value), enums.Turtle(an_int_enum_ctype.value), float(a_float_ctype.value), enums.FloatEnum(a_float_enum_ctype.value), [float(an_array_ctype[i]) for i in range(array_size_ctype.value)], a_string_ctype.value.decode(self._encoding) + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 + error_code = self._library.niFake_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 + error_code = self._library.niFake_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt64(attribute_value) # case S150 + error_code = self._library.niFake_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 + error_code = self._library.niFake_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 + error_code = self._library.niFake_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_custom_type(self, cs): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + cs_ctype = custom_struct.struct_CustomStruct(cs) # case S150 + error_code = self._library.niFake_SetCustomType(vi_ctype, cs_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_custom_type_array(self, cs): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_elements_ctype = _visatype.ViInt32(0 if cs is None else len(cs)) # case S160 + cs_ctype = _get_ctypes_pointer_for_buffer([custom_struct.struct_CustomStruct(c) for c in cs], library_type=custom_struct.struct_CustomStruct) # case B540 + error_code = self._library.niFake_SetCustomTypeArray(vi_ctype, number_of_elements_ctype, cs_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niFake_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def string_valued_enum_input_function_with_defaults(self, a_mobile_os_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_mobile_os_name_ctype = ctypes.create_string_buffer(a_mobile_os_name.value.encode(self._encoding)) # case C030 + error_code = self._library.niFake_StringValuedEnumInputFunctionWithDefaults(vi_ctype, a_mobile_os_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def two_input_function(self, a_number, a_string): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + a_number_ctype = _visatype.ViReal64(a_number) # case S150 + a_string_ctype = ctypes.create_string_buffer(a_string.encode(self._encoding)) # case C020 + error_code = self._library.niFake_TwoInputFunction(vi_ctype, a_number_ctype, a_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def use64_bit_number(self, input): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + input_ctype = _visatype.ViInt64(input) # case S150 + output_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niFake_Use64BitNumber(vi_ctype, input_ctype, None if output_ctype is None else (ctypes.pointer(output_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(output_ctype.value) + + def write_waveform(self, waveform): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform is None else len(waveform)) # case S160 + waveform_array = _convert_to_array(value=waveform, array_type="d") # case B550 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niFake_WriteWaveform(vi_ctype, number_of_samples_ctype, waveform_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_waveform_numpy(self, waveform): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform is None else len(waveform)) # case S160 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 + error_code = self._library.niFake_WriteWaveform(vi_ctype, number_of_samples_ctype, waveform_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_waveform_numpy_complex128(self, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumber) # case B510 + error_code = self._library.niFake_WriteWaveformNumpyComplex128(vi_ctype, number_of_samples_ctype, waveform_data_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_waveform_numpy_complex64(self, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumberF32) # case B510 + error_code = self._library.niFake_WriteWaveformNumpyComplex64(vi_ctype, number_of_samples_ctype, waveform_data_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_waveform_numpy_complex_interleaved_i16(self, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array) // 2) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexI16) # case B510 + error_code = self._library.niFake_WriteWaveformNumpyComplexInterleavedI16(vi_ctype, number_of_samples_ctype, waveform_data_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFake_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niFake_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niFake_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nifake/nifake/_library_singleton.py b/generated/nifake/nifake/_library_singleton.py new file mode 100644 index 0000000000..ca9282ecb9 --- /dev/null +++ b/generated/nifake/nifake/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nifake._library as _library +import nifake.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nifake', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'nifake_32.dll', 'type': 'windll'}, + '64bit': {'name': 'nifake_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nifake. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nifake/nifake/_visatype.py b/generated/nifake/nifake/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nifake/nifake/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nifake/nifake/custom_struct.py b/generated/nifake/nifake/custom_struct.py new file mode 100644 index 0000000000..be0f6ea326 --- /dev/null +++ b/generated/nifake/nifake/custom_struct.py @@ -0,0 +1,47 @@ +import ctypes + +import nifake._visatype + + +# This class is an internal implementation detail +# ctypes definition +# Name must match exactly what the name of the structure type is named in the C API. +class struct_CustomStruct(ctypes.Structure): # noqa N801 + _fields_ = [ + ('struct_int', nifake._visatype.ViInt32), + ('struct_double', nifake._visatype.ViReal64), + ] + + def __init__(self, data=None, struct_int=0, struct_double=0.0): + super(ctypes.Structure, self).__init__() + if data is not None: + self.struct_int = data.struct_int + self.struct_double = data.struct_double + else: + self.struct_int = struct_int + self.struct_double = struct_double + + def __repr__(self): + return f'{self.__class__.__name__}(data=None, struct_int={self.struct_int}, struct_double={self.struct_double})' + + def __str__(self): + return self.__repr__() + + +class CustomStruct: + def __init__(self, data=None, struct_int=0, struct_double=0.0): + if data is not None: + self.struct_int = data.struct_int + self.struct_double = data.struct_double + else: + self.struct_int = struct_int + self.struct_double = struct_double + + def _create_copy(self, target_class): + return target_class(struct_int=self.struct_int, struct_double=self.struct_double) + + def __repr__(self): + return f'{self.__class__.__name__}(data=None, struct_int={self.struct_int}, struct_double={self.struct_double})' + + def __str__(self): + return self.__repr__() diff --git a/generated/nifake/nifake/custom_struct_nested_typedef.py b/generated/nifake/nifake/custom_struct_nested_typedef.py new file mode 100644 index 0000000000..821eef6f41 --- /dev/null +++ b/generated/nifake/nifake/custom_struct_nested_typedef.py @@ -0,0 +1,60 @@ +import ctypes + +import nifake.custom_struct as custom_struct +import nifake.custom_struct_typedef as custom_struct_typedef + + +class struct_CustomStructNestedTypedef(ctypes.Structure): # noqa N801 + _fields_ = [ + ('struct_custom_struct', custom_struct.struct_CustomStruct), + ('struct_custom_struct_typedef', custom_struct_typedef.struct_CustomStructTypedef), + ] + + def __init__(self, data=None): + super(ctypes.Structure, self).__init__() + if data is not None: + self.struct_custom_struct = custom_struct.struct_CustomStruct(data.struct_custom_struct) + self.struct_custom_struct_typedef = custom_struct_typedef.struct_CustomStructTypedef( + data.struct_custom_struct_typedef + ) + else: + self.struct_custom_struct = custom_struct.struct_CustomStruct() + self.struct_custom_struct_typedef = custom_struct_typedef.struct_CustomStructTypedef() + + +class CustomStructNestedTypedef: + def __init__( + self, + data=None, + struct_custom_struct=custom_struct.CustomStruct(), + struct_custom_struct_typedef=custom_struct_typedef.CustomStructTypedef() + ): + if data is not None: + self.struct_custom_struct = custom_struct.CustomStruct(data.struct_custom_struct) + self.struct_custom_struct_typedef = custom_struct_typedef.CustomStructTypedef( + data.struct_custom_struct_typedef + ) + else: + self.struct_custom_struct = struct_custom_struct + self.struct_custom_struct_typedef = struct_custom_struct_typedef + + def _create_copy(self, target_class): + sample_object = target_class() + return target_class( + struct_custom_struct=self.struct_custom_struct._create_copy( + type(sample_object.struct_custom_struct) + ), + struct_custom_struct_typedef=self.struct_custom_struct_typedef._create_copy( + type(sample_object.struct_custom_struct_typedef) + ), + ) + + def __repr__(self): + return '{}(data=None, struct_custom_struct={}, struct_custom_struct_typedef={})'.format( + self.__class__.__name__, + repr(self.struct_custom_struct), + repr(self.struct_custom_struct_typedef) + ) + + def __str__(self): + return self.__repr__() diff --git a/generated/nifake/nifake/custom_struct_typedef.py b/generated/nifake/nifake/custom_struct_typedef.py new file mode 100644 index 0000000000..f919399509 --- /dev/null +++ b/generated/nifake/nifake/custom_struct_typedef.py @@ -0,0 +1,42 @@ +import ctypes + +import nifake._visatype + + +class struct_CustomStructTypedef(ctypes.Structure): # noqa N801 + _fields_ = [ + ('struct_int', nifake._visatype.ViInt32), + ('struct_double', nifake._visatype.ViReal64), + ] + + def __init__(self, data=None): + super(ctypes.Structure, self).__init__() + if data is not None: + self.struct_int = data.struct_int + self.struct_double = data.struct_double + else: + self.struct_int = 0 + self.struct_double = 0.0 + + +class CustomStructTypedef: + def __init__(self, data=None, struct_int=0, struct_double=0.0): + if data is not None: + self.struct_int = data.struct_int + self.struct_double = data.struct_double + else: + self.struct_int = struct_int + self.struct_double = struct_double + + def _create_copy(self, target_class): + return target_class(struct_int=self.struct_int, struct_double=self.struct_double) + + def __repr__(self): + return '{}(data=None, struct_int={}, struct_double={})'.format( + self.__class__.__name__, + self.struct_int, + self.struct_double + ) + + def __str__(self): + return self.__repr__() diff --git a/generated/nifake/nifake/enums.py b/generated/nifake/nifake/enums.py new file mode 100644 index 0000000000..cd042c61c0 --- /dev/null +++ b/generated/nifake/nifake/enums.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum +from enum import IntFlag + + +class Color(Enum): + RED = 1 + r''' + Like blood. + ''' + BLUE = 2 + r''' + Like the sky. + ''' + YELLOW = 5 + r''' + Like a banana. + ''' + BLACK = 42 + r''' + Like this developer's conscience. + ''' + + +class EnumWithConverter(Enum): + RED = 1 + BLUE = 2 + YELLOW = 5 + BLACK = 42 + + +class FloatEnum(Enum): + THREE_POINT_FIVE = 3.5 + r''' + Specifies 3.5 digits resolution. + ''' + FOUR_POINT_FIVE = 4.5 + r''' + Specifies 4.5 digits resolution. + ''' + FIVE_POINT_FIVE = 5.5 + r''' + Specifies 5.5 digits resolution. + ''' + SIX_POINT_FIVE = 6.5 + r''' + Specifies 6.5 digits resolution. + ''' + SEVEN_POINT_FIVE = 7.5 + r''' + Specifies 7.5 digits resolution. + ''' + + +class IntFlagEnum(IntFlag): + A = 1 + r''' + Flag A option. + ''' + B = 2 + r''' + Flag B option. + ''' + E = 1073741824 + r''' + Flag E option. + ''' + + +class MobileOSNames(Enum): + ANDROID = 'Android' + r''' + Most popular OS. + ''' + IOS = 'iOS' + r''' + Most secure OS. + ''' + NONE = 'None' + r''' + Remember Symbian?. + ''' + + +class Turtle(Enum): + LEONARDO = 0 + r''' + Wields two katanas. + ''' + DONATELLO = 1 + r''' + Uses a bo staff. + ''' + RAPHAEL = 2 + r''' + Has a pair of sai. + ''' + MICHELANGELO = 3 + r''' + Owns nunchucks. + ''' diff --git a/generated/nifake/nifake/errors.py b/generated/nifake/nifake/errors.py new file mode 100644 index 0000000000..e36463b1a7 --- /dev/null +++ b/generated/nifake/nifake/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-FAKE''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-FAKE driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-FAKE driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-FAKE runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-FAKE driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-FAKE runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-FAKE driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-FAKE runtime returned an unexpected value. This can occur if it is too new for the nifake Python module. Upgrade the nifake Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nifake.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nifake/nifake/grpc_session_options.py b/generated/nifake/nifake/grpc_session_options.py new file mode 100644 index 0000000000..1859e5aa8f --- /dev/null +++ b/generated/nifake/nifake/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nifake_grpc.NiFake' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nifake/nifake/nidevice_pb2.py b/generated/nifake/nifake/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nifake/nifake/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nifake/nifake/nidevice_pb2_grpc.py b/generated/nifake/nifake/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nifake/nifake/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nifake/nifake/nifake_pb2.py b/generated/nifake/nifake/nifake_pb2.py new file mode 100644 index 0000000000..f57e242948 --- /dev/null +++ b/generated/nifake/nifake/nifake_pb2.py @@ -0,0 +1,489 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nifake.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnifake.proto\x12\x0bnifake_grpc\x1a\rsession.proto\"=\n\x10\x46\x61keCustomStruct\x12\x12\n\nstruct_int\x18\x01 \x01(\x11\x12\x15\n\rstruct_double\x18\x02 \x01(\x01\"\xa0\x01\n\x19\x43ustomStructNestedTypedef\x12;\n\x14struct_custom_struct\x18\x01 \x01(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\x12\x46\n\x1cstruct_custom_struct_typedef\x18\x02 \x01(\x0b\x32 .nifake_grpc.CustomStructTypedef\"@\n\x13\x43ustomStructTypedef\x12\x12\n\nstruct_int\x18\x01 \x01(\x11\x12\x15\n\rstruct_double\x18\x02 \x01(\x01\"6\n\x13NIComplexI16_struct\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"9\n\x16NIComplexNumber_struct\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"<\n\x19NIComplexNumberF32_struct\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"J\n\x0fStringAndTurtle\x12\x12\n\nstring_arg\x18\x01 \x01(\t\x12#\n\x06turtle\x18\x02 \x01(\x0e\x32\x13.nifake_grpc.Turtle\"%\n\x0f\x43ustomNamedType\x12\x12\n\nstring_arg\x18\x01 \x01(\t\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\x1e\x42oolArrayOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"C\n\x1f\x42oolArrayOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61n_array\x18\x02 \x03(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\x1e\x45numArrayOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"n\n\x1f\x45numArrayOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x08\x61n_array\x18\x02 \x03(\x0e\x32\x13.nifake_grpc.Turtle\x12\x14\n\x0c\x61n_array_raw\x18\x03 \x03(\x11\"\x9c\x01\n$EnumInputFunctionWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\'\n\x08\x61_turtle\x18\x02 \x01(\x0e\x32\x13.nifake_grpc.TurtleH\x00\x12\x16\n\x0c\x61_turtle_raw\x18\x03 \x01(\x11H\x00\x42\x0f\n\ra_turtle_enum\"7\n%EnumInputFunctionWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xce\x01\n0StringValuedEnumInputFunctionWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12=\n\x17\x61_mobile_os_name_mapped\x18\x02 \x01(\x0e\x32\x1a.nifake_grpc.MobileOSNamesH\x00\x12\x1e\n\x14\x61_mobile_os_name_raw\x18\x03 \x01(\tH\x00\x42\x17\n\x15\x61_mobile_os_name_enum\"C\n1StringValuedEnumInputFunctionWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"U\n\x14\x46\x65tchWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11number_of_samples\x18\x02 \x01(\x11\"`\n\x15\x46\x65tchWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwaveform_data\x18\x02 \x03(\x01\x12 \n\x18\x61\x63tual_number_of_samples\x18\x03 \x01(\x11\"8\n\x12GetABooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"8\n\x13GetABooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\ta_boolean\x18\x02 \x01(\x08\"7\n\x11GetANumberRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"6\n\x12GetANumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_number\x18\x02 \x01(\x11\"I\n#GetAStringOfFixedMaximumSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"H\n$GetAStringOfFixedMaximumSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_string\x18\x02 \x01(\t\"C\n\x1dGetAnIviDanceCharArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"D\n\x1eGetAnIviDanceCharArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nchar_array\x18\x02 \x01(\t\"B\n\x1cGetArrayUsingIviDanceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"B\n\x1dGetArrayUsingIviDanceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x01\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"F\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x03\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"P\n\x18GetCalDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63\x61l_type\x18\x02 \x01(\x11\"s\n\x19GetCalDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x11\x12\x0c\n\x04year\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\";\n\x15GetCalIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"8\n\x16GetCalIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"9\n\x13GetEnumValueRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"w\n\x14GetEnumValueResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\na_quantity\x18\x02 \x01(\x11\x12%\n\x08\x61_turtle\x18\x03 \x01(\x0e\x32\x13.nifake_grpc.Turtle\x12\x14\n\x0c\x61_turtle_raw\x18\x04 \x01(\x11\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"K\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"n\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1f\n\x17new_session_initialized\x18\x03 \x01(\x08\"\x9a\x01\n\x19MultipleArrayTypesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11output_array_size\x18\x02 \x01(\x11\x12\x1d\n\x15input_array_of_floats\x18\x03 \x03(\x01\x12\x1f\n\x17input_array_of_integers\x18\x04 \x03(\x11\"h\n\x1aMultipleArrayTypesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0coutput_array\x18\x02 \x03(\x01\x12$\n\x1coutput_array_of_fixed_length\x18\x03 \x03(\x01\"\x87\x01\n\x1dMultipleArraysSameSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07values1\x18\x02 \x03(\x01\x12\x0f\n\x07values2\x18\x03 \x03(\x01\x12\x0f\n\x07values3\x18\x04 \x03(\x01\x12\x0f\n\x07values4\x18\x05 \x03(\x01\"0\n\x1eMultipleArraysSameSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"r\n\"MultipleArraysDifferentSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cvalues_array\x18\x02 \x03(\x01\x12\x12\n\ndata_array\x18\x03 \x03(\x11\"5\n#MultipleArraysDifferentSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"_\n#MixedIviDanceAndLenMechanismRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cinput_values\x18\x02 \x03(\x01\"L\n$MixedIviDanceAndLenMechanismResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0coutput_array\x18\x02 \x03(\x11\"O\n\x17OneInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61_number\x18\x02 \x01(\x11\"*\n\x18OneInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe4\x02\n!ParametersAreMultipleTypesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\ta_boolean\x18\x02 \x01(\x08\x12\x10\n\x08\x61n_int32\x18\x03 \x01(\x11\x12\x10\n\x08\x61n_int64\x18\x04 \x01(\x03\x12*\n\x0b\x61n_int_enum\x18\x05 \x01(\x0e\x32\x13.nifake_grpc.TurtleH\x00\x12\x19\n\x0f\x61n_int_enum_raw\x18\x06 \x01(\x11H\x00\x12\x0f\n\x07\x61_float\x18\x07 \x01(\x01\x12\x35\n\x13\x61_float_enum_mapped\x18\x08 \x01(\x0e\x32\x16.nifake_grpc.FloatEnumH\x01\x12\x1a\n\x10\x61_float_enum_raw\x18\t \x01(\x01H\x01\x12\x10\n\x08\x61_string\x18\n \x01(\tB\x12\n\x10\x61n_int_enum_enumB\x13\n\x11\x61_float_enum_enum\"4\n\"ParametersAreMultipleTypesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n PoorlyNamedSimpleFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"3\n!PoorlyNamedSimpleFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"G\n\x0bReadRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0cmaximum_time\x18\x02 \x01(\x01\"/\n\x0cReadResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"h\n\x16ReadFromChannelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x14\n\x0cmaximum_time\x18\x03 \x01(\x11\":\n\x17ReadFromChannelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07reading\x18\x02 \x01(\x01\"D\n\x1eReturnANumberAndAStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"U\n\x1fReturnANumberAndAStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_number\x18\x02 \x01(\x11\x12\x10\n\x08\x61_string\x18\x03 \x01(\t\"T\n\x1aReturnMultipleTypesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\narray_size\x18\x02 \x01(\x11\"\xab\x02\n\x1bReturnMultipleTypesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\ta_boolean\x18\x02 \x01(\x08\x12\x10\n\x08\x61n_int32\x18\x03 \x01(\x11\x12\x10\n\x08\x61n_int64\x18\x04 \x01(\x03\x12(\n\x0b\x61n_int_enum\x18\x05 \x01(\x0e\x32\x13.nifake_grpc.Turtle\x12\x17\n\x0f\x61n_int_enum_raw\x18\x06 \x01(\x11\x12\x0f\n\x07\x61_float\x18\x07 \x01(\x01\x12\x33\n\x13\x61_float_enum_mapped\x18\x08 \x01(\x0e\x32\x16.nifake_grpc.FloatEnum\x12\x18\n\x10\x61_float_enum_raw\x18\t \x01(\x01\x12\x10\n\x08\x61n_array\x18\n \x03(\x01\x12\x10\n\x08\x61_string\x18\x0b \x01(\t\"\xa5\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x42\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32\'.nifake_grpc.NiFakeInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x43\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32(.nifake_grpc.NiFakeReal64AttributeValuesH\x00\x12P\n\x16\x61ttribute_value_mapped\x18\x05 \x01(\x0e\x32..nifake_grpc.NiFakeReal64AttributeValuesMappedH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x06 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n\x17TwoInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61_number\x18\x02 \x01(\x01\x12\x10\n\x08\x61_string\x18\x03 \x01(\t\"*\n\x18TwoInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15Use64BitNumberRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05input\x18\x02 \x01(\x03\"8\n\x16Use64BitNumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06output\x18\x02 \x01(\x03\"L\n\x14WriteWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08waveform\x18\x02 \x03(\x01\"\'\n\x15WriteWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8b\x01\n#WriteWaveformNumpyComplex128Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12@\n\x13waveform_data_array\x18\x02 \x03(\x0b\x32#.nifake_grpc.NIComplexNumber_struct\"6\n$WriteWaveformNumpyComplex128Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n\"WriteWaveformNumpyComplex64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x13waveform_data_array\x18\x02 \x03(\x0b\x32&.nifake_grpc.NIComplexNumberF32_struct\"5\n#WriteWaveformNumpyComplex64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x93\x01\n.WriteWaveformNumpyComplexInterleavedI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12=\n\x13waveform_data_array\x18\x02 \x03(\x0b\x32 .nifake_grpc.NIComplexI16_struct\"A\n/WriteWaveformNumpyComplexInterleavedI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x14SetCustomTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x02\x63s\x18\x02 \x01(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"\'\n\x15SetCustomTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x19SetCustomTypeArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x02\x63s\x18\x02 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\",\n\x1aSetCustomTypeArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14GetCustomTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"R\n\x15GetCustomTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x02\x63s\x18\x02 \x01(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"[\n\x19GetCustomTypeArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"W\n\x1aGetCustomTypeArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x02\x63s\x18\x02 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"[\n#GetAnIviDanceWithATwistArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61_string\x18\x02 \x01(\t\"^\n$GetAnIviDanceWithATwistArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x11\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"J\n$GetAnIviDanceWithATwistStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"^\n%GetAnIviDanceWithATwistStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61_string\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"N\n\x17\x44oubleAllTheNumsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\"*\n\x18\x44oubleAllTheNumsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n%AcceptListOfDurationsInSecondsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06\x64\x65lays\x18\x02 \x03(\x01\"8\n&AcceptListOfDurationsInSecondsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eReturnDurationInSecondsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"D\n\x1fReturnDurationInSecondsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\ttimedelta\x18\x02 \x01(\x01\"g\n%ReturnListOfDurationsInSecondsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"L\n&ReturnListOfDurationsInSecondsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\ntimedeltas\x18\x02 \x03(\x01\"9\n\x13\x43onfigureAbcRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"&\n\x14\x43onfigureAbcResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x02\n\x15\x43onfigureEnumsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x30\n\x0csample_count\x18\x02 \x01(\x0e\x32\x18.nifake_grpc.SampleCountH\x00\x12\x1a\n\x10sample_count_raw\x18\x03 \x01(\x11H\x00\x12\x36\n\x0fsample_interval\x18\x04 \x01(\x0e\x32\x1b.nifake_grpc.SampleIntervalH\x01\x12\x1d\n\x13sample_interval_raw\x18\x05 \x01(\x01H\x01\x42\x13\n\x11sample_count_enumB\x16\n\x14sample_interval_enum\"(\n\x16\x43onfigureEnumsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Q\n+ExportAttributeConfigurationBufferExRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"U\n,ExportAttributeConfigurationBufferExResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"h\n+ImportAttributeConfigurationBufferExRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\">\n,ImportAttributeConfigurationBufferExResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"x\n\x1a\x46\x65tchWithCustomSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1b\n\x13number_of_waveforms\x18\x02 \x01(\x11\x12\x19\n\x11number_of_samples\x18\x03 \x01(\x11\"D\n\x1b\x46\x65tchWithCustomSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwaveform_data\x18\x02 \x03(\x01\"\xbf\x01\n)GetParameterWithOverriddenGrpcNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\x12\x65num_parameter_raw\x18\x02 \x01(\x0e\x32\x13.nifake_grpc.TurtleH\x00\x12 \n\x16\x65num_parameter_raw_raw\x18\x03 \x01(\x11H\x00\x42\x19\n\x17\x65num_parameter_raw_enum\"Z\n*GetParameterWithOverriddenGrpcNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14overridden_parameter\x18\x02 \x01(\x11\"`\n:IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x9a\x01\n;IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06\x61rray1\x18\x02 \x03(\x11\x12\x0e\n\x06\x61rray2\x18\x03 \x03(\x11\x12\x0e\n\x06\x61rray3\x18\x04 \x03(\x11\x12\x1b\n\x13\x61\x63tual_num_elements\x18\x05 \x01(\x11\"M\n\'FunctionWithOverriddenGrpcName2xRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\":\n(FunctionWithOverriddenGrpcName2xResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa9\x01\n>FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\x16multidimensional_array\x18\x02 \x03(\x0b\x32#.nifake_grpc.NIComplexNumber_struct\"Q\n?FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n&StringValuedEnumNoEnumGeneratedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\ra_string_enum\x18\x02 \x01(\t\"9\n\'StringValuedEnumNoEnumGeneratedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*IviDanceWithATwistCalculatedSizeOutRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8e\x01\n+IviDanceWithATwistCalculatedSizeOutResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\r\x12\x1c\n\x14\x61\x63tual_num_waveforms\x18\x03 \x01(\x11\x12#\n\x1b\x61\x63tual_samples_per_waveform\x18\x04 \x01(\x11\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"B\n\x12\x43ontrol4022Request\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x15\n\rconfiguration\x18\x02 \x01(\x11\"%\n\x13\x43ontrol4022Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\x1b\x41\x63\x63\x65ptViSessionArrayRequest\x12\x15\n\rsession_count\x18\x01 \x01(\r\x12-\n\rsession_array\x18\x02 \x03(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x41\x63\x63\x65ptViSessionArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1a\x41\x63\x63\x65ptViUInt32ArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\ru_int32_array\x18\x02 \x03(\r\"-\n\x1b\x41\x63\x63\x65ptViUInt32ArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n\x1d\x42oolArrayInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\x12\x10\n\x08\x61n_array\x18\x03 \x03(\x08\"0\n\x1e\x42oolArrayInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x12\x43loseExtCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06\x61\x63tion\x18\x02 \x01(\x11\"%\n\x13\x43loseExtCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43ommandWithReservedParamRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n CommandWithReservedParamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1e\x43reateConfigurationListRequest\x12\x38\n\x12list_attribute_ids\x18\x01 \x03(\x0e\x32\x1c.nifake_grpc.NiFakeAttribute\"1\n\x1f\x43reateConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"k\n\"CustomNestedStructRoundtripRequest\x12\x45\n\x15nested_custom_type_in\x18\x01 \x01(\x0b\x32&.nifake_grpc.CustomStructNestedTypedef\"}\n#CustomNestedStructRoundtripResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x46\n\x16nested_custom_type_out\x18\x02 \x01(\x0b\x32&.nifake_grpc.CustomStructNestedTypedef\"\x1f\n\x1dGetBitfieldAsEnumArrayRequest\"o\n\x1eGetBitfieldAsEnumArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12*\n\x0b\x66lags_array\x18\x02 \x03(\x0e\x32\x15.nifake_grpc.Bitfield\x12\x11\n\tflags_raw\x18\x03 \x01(\x03\"U\n/GetAnIviDanceWithATwistArrayOfCustomTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x89\x01\n0GetAnIviDanceWithATwistArrayOfCustomTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x30\n\tarray_out\x18\x02 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"D\n1GetAnIviDanceWithATwistArrayWithInputArrayRequest\x12\x0f\n\x07\x64\x61ta_in\x18\x01 \x03(\x11\"l\n2GetAnIviDanceWithATwistArrayWithInputArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x11\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\")\n\'GetAnIviDanceWithATwistByteArrayRequest\"b\n(GetAnIviDanceWithATwistByteArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x01(\x0c\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"/\n-GetAnIviDanceWithATwistStringStrlenBugRequest\"i\n.GetAnIviDanceWithATwistStringStrlenBugResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nstring_out\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\"F\n GetArraySizeForCustomCodeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n!GetArraySizeForCustomCodeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08size_out\x18\x02 \x01(\x11\"W\n\x1eGetArrayViUInt8WithEnumRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tarray_len\x18\x02 \x01(\x11\"\x8b\x01\n\x1fGetArrayViUInt8WithEnumResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x39\n\x11u_int8_enum_array\x18\x02 \x03(\x0e\x32\x1e.nifake_grpc.GrpcColorOverride\x12\x1d\n\x15u_int8_enum_array_raw\x18\x03 \x01(\x0c\"7\n\x11GetViUInt8Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"<\n\x12GetViUInt8Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x61_uint8_number\x18\x02 \x01(\r\"O\n\x16GetViInt32ArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tarray_len\x18\x02 \x01(\x11\">\n\x17GetViInt32ArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bint32_array\x18\x02 \x03(\x11\"P\n\x17GetViUInt32ArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tarray_len\x18\x02 \x01(\x11\"A\n\x18GetViUInt32ArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\ru_int32_array\x18\x02 \x03(\r\"\x92\x01\n(MethodUsingEnumWithGrpcNameValuesRequest\x12\x39\n\nusing_enum\x18\x01 \x01(\x0e\x32#.nifake_grpc.EnumWithGrpcNameValuesH\x00\x12\x18\n\x0eusing_enum_raw\x18\x02 \x01(\x11H\x00\x42\x11\n\x0fusing_enum_enum\";\n)MethodUsingEnumWithGrpcNameValuesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"$\n\"MethodWithGetLastErrorParamRequest\"M\n#MethodWithGetLastErrorParamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\nlast_error\x18\x02 \x01(\tB\x02\x18\x01\"6\n\x1eMethodWithGrpcOnlyParamRequest\x12\x14\n\x0csimple_param\x18\x01 \x01(\x11\"J\n\x1fMethodWithGrpcOnlyParamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fgrpc_only_param\x18\x02 \x01(\x11\"-\n+MethodUsingWholeAndFractionalNumbersRequest\"\xf1\x01\n,MethodUsingWholeAndFractionalNumbersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x35\n\x0cwhole_number\x18\x02 \x01(\x0e\x32\x1f.nifake_grpc.DecimalWholeNumber\x12\x18\n\x10whole_number_raw\x18\x03 \x01(\x11\x12\x41\n\x18\x66ractional_number_mapped\x18\x04 \x01(\x0e\x32\x1f.nifake_grpc.DecimalMixedNumber\x12\x1d\n\x15\x66ractional_number_raw\x18\x05 \x01(\x01\"&\n$MethodUsingWholeMappedNumbersRequest\"\x95\x01\n%MethodUsingWholeMappedNumbersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x42\n\x13whole_number_mapped\x18\x02 \x01(\x0e\x32%.nifake_grpc.DecimalWholeNumberMapped\x12\x18\n\x10whole_number_raw\x18\x03 \x01(\x01\";\n MethodWithGrpcFieldNumberRequest\x12\x17\n\x0f\x61ttribute_value\x18\x05 \x01(\x11\"3\n!MethodWithGrpcFieldNumberResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n#MethodWithProtoOnlyParameterRequest\x12\x17\n\x0f\x61ttribute_value\x18\x01 \x01(\x11\"6\n$MethodWithProtoOnlyParameterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\"\n ReadDataWithInOutIviTwistRequest\"V\n!ReadDataWithInOutIviTwistResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x11\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\".\n,ReadDataWithMultipleIviTwistParamSetsRequest\"\x9b\x01\n-ReadDataWithMultipleIviTwistParamSetsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tarray_out\x18\x02 \x03(\x11\x12\x13\n\x0b\x61\x63tual_size\x18\x03 \x01(\x11\x12\x17\n\x0fother_array_out\x18\x04 \x03(\x11\x12\x19\n\x11other_actual_size\x18\x05 \x01(\x11\"^\n\x11InitExtCalRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x1c\n\x14\x63\x61libration_password\x18\x03 \x01(\t\"H\n\x12InitExtCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"|\n\x16InitWithVarArgsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x35\n\x0fname_and_turtle\x18\x03 \x03(\x0b\x32\x1c.nifake_grpc.StringAndTurtle\"M\n\x17InitWithVarArgsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xc3\x01\n)MultipleArraysSameSizeWithOptionalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07values1\x18\x02 \x03(\x01\x12\x0f\n\x07values2\x18\x03 \x03(\x01\x12\x0f\n\x07values3\x18\x04 \x03(\x01\x12\x0f\n\x07values4\x18\x05 \x03(\x01\x12.\n\x07values5\x18\x06 \x03(\x0b\x32\x1d.nifake_grpc.FakeCustomStruct\"<\n*MultipleArraysSameSizeWithOptionalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"l\n UseATwoDimensionParameterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05\x61rray\x18\x02 \x03(\x11\x12\x15\n\rarray_lengths\x18\x03 \x03(\x11\"3\n!UseATwoDimensionParameterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"t\n ViUInt8ArrayInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\x12\x10\n\x08\x61n_array\x18\x03 \x01(\x0c\"3\n!ViUInt8ArrayInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n!ViUInt8ArrayOutputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12number_of_elements\x18\x02 \x01(\x11\"F\n\"ViUInt8ArrayOutputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08\x61n_array\x18\x02 \x01(\x0c\"X\n ViInt16ArrayInputFunctionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x61n_array\x18\x02 \x03(\x11\"3\n!ViInt16ArrayInputFunctionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\x9e\x05\n\x0fNiFakeAttribute\x12 \n\x1cNIFAKE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12&\n NIFAKE_ATTRIBUTE_READ_WRITE_BOOL\x10\xc0\x84=\x12(\n\"NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE\x10\xc1\x84=\x12(\n\"NIFAKE_ATTRIBUTE_READ_WRITE_STRING\x10\xc2\x84=\x12\'\n!NIFAKE_ATTRIBUTE_READ_WRITE_COLOR\x10\xc3\x84=\x12)\n#NIFAKE_ATTRIBUTE_READ_WRITE_INTEGER\x10\xc4\x84=\x12/\n)NIFAKE_ATTRIBUTE_FLOAT_ENUM_NAME_OVERRIDE\x10\xc5\x84=\x12\'\n!NIFAKE_ATTRIBUTE_READ_WRITE_INT64\x10\xc6\x84=\x12\x37\n1NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE_WITH_CONVERTER\x10\xc7\x84=\x12\x38\n2NIFAKE_ATTRIBUTE_READ_WRITE_INTEGER_WITH_CONVERTER\x10\xc8\x84=\x12\x41\n;NIFAKE_ATTRIBUTE_READ_WRITE_DOUBLE_WITH_REPEATED_CAPABILITY\x10\xc9\x84=\x12<\n6NIFAKE_ATTRIBUTE_READ_WRITE_STRING_REPEATED_CAPABILITY\x10\xca\x84=\x12#\n\x1dNIFAKE_ATTRIBUTE_SAMPLE_COUNT\x10\xcc\x84=\x12&\n NIFAKE_ATTRIBUTE_SAMPLE_INTERVAL\x10\xcd\x84=*\xb2\x01\n\x11GrpcColorOverride\x12#\n\x1fGRPC_COLOR_OVERRIDE_UNSPECIFIED\x10\x00\x12\x1b\n\x17GRPC_COLOR_OVERRIDE_RED\x10\x01\x12\x1c\n\x18GRPC_COLOR_OVERRIDE_BLUE\x10\x02\x12\x1e\n\x1aGRPC_COLOR_OVERRIDE_YELLOW\x10\x05\x12\x1d\n\x19GRPC_COLOR_OVERRIDE_BLACK\x10**\xc8\x01\n\tFloatEnum\x12\x1a\n\x16\x46LOAT_ENUM_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x46LOAT_ENUM_THREE_POINT_FIVE\x10\x01\x12\x1e\n\x1a\x46LOAT_ENUM_FOUR_POINT_FIVE\x10\x02\x12\x1e\n\x1a\x46LOAT_ENUM_FIVE_POINT_FIVE\x10\x03\x12\x1d\n\x19\x46LOAT_ENUM_SIX_POINT_FIVE\x10\x04\x12\x1f\n\x1b\x46LOAT_ENUM_SEVEN_POINT_FIVE\x10\x05*`\n\x06Turtle\x12\x13\n\x0fTURTLE_LEONARDO\x10\x00\x12\x14\n\x10TURTLE_DONATELLO\x10\x01\x12\x12\n\x0eTURTLE_RAPHAEL\x10\x02\x12\x17\n\x13TURTLE_MICHELANGELO\x10\x03*\x80\x01\n\rMobileOSNames\x12\x1f\n\x1bMOBILE_OS_NAMES_UNSPECIFIED\x10\x00\x12\x1b\n\x17MOBILE_OS_NAMES_ANDROID\x10\x01\x12\x17\n\x13MOBILE_OS_NAMES_IOS\x10\x02\x12\x18\n\x14MOBILE_OS_NAMES_NONE\x10\x03*x\n\x08\x42itfield\x12\x18\n\x14\x42ITFIELD_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x42ITFIELD_FLAG_A\x10\x01\x12\x13\n\x0f\x42ITFIELD_FLAG_B\x10\x02\x12\x13\n\x0f\x42ITFIELD_FLAG_C\x10\x04\x12\x13\n\x0f\x42ITFIELD_FLAG_D\x10\x08*\x88\x01\n\x12\x44\x65\x63imalWholeNumber\x12\x1d\n\x19\x44\x45\x43IMAL_WHOLE_NUMBER_ZERO\x10\x00\x12.\n!DECIMAL_WHOLE_NUMBER_NEGATIVE_ONE\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12#\n\x1f\x44\x45\x43IMAL_WHOLE_NUMBER_TWENTY_TWO\x10\x16*\xc7\x01\n\x18\x44\x65\x63imalWholeNumberMapped\x12+\n\'DECIMAL_WHOLE_NUMBER_MAPPED_UNSPECIFIED\x10\x00\x12$\n DECIMAL_WHOLE_NUMBER_MAPPED_ZERO\x10\x01\x12,\n(DECIMAL_WHOLE_NUMBER_MAPPED_NEGATIVE_ONE\x10\x02\x12*\n&DECIMAL_WHOLE_NUMBER_MAPPED_TWENTY_TWO\x10\x03*\xd7\x02\n\x12\x44\x65\x63imalMixedNumber\x12$\n DECIMAL_MIXED_NUMBER_UNSPECIFIED\x10\x00\x12#\n\x1f\x44\x45\x43IMAL_MIXED_NUMBER_TWENTY_TWO\x10\x01\x12&\n\"DECIMAL_MIXED_NUMBER_TWO_POINT_TWO\x10\x02\x12\'\n#DECIMAL_MIXED_NUMBER_NEGATIVE_THREE\x10\x03\x12#\n\x1f\x44\x45\x43IMAL_MIXED_NUMBER_MAX_INT_32\x10\x04\x12,\n(DECIMAL_MIXED_NUMBER_MAX_INT_32_PLUS_ONE\x10\x05\x12#\n\x1f\x44\x45\x43IMAL_MIXED_NUMBER_MIN_INT_32\x10\x06\x12-\n)DECIMAL_MIXED_NUMBER_MIN_INT_32_MINUS_ONE\x10\x07*\x9e\x01\n\x16\x45numWithGrpcNameValues\x12*\n&ENUM_WITH_GRPC_NAME_VALUES_UNSPECIFIED\x10\x00\x12\x34\n0ENUM_WITH_GRPC_NAME_VALUES_ALTERED_GRPC_NAME_ONE\x10\x01\x12\"\n\x1e\x45NUM_WITH_GRPC_NAME_VALUES_TWO\x10\x02*5\n\x0bSampleCount\x12&\n\"SAMPLE_COUNT_SAMPLE_COUNT_INFINITE\x10\x00*Z\n\x0eSampleInterval\x12\x1f\n\x1bSAMPLE_INTERVAL_UNSPECIFIED\x10\x00\x12\'\n\x1aSAMPLE_INTERVAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xa1\x02\n\x1aNiFakeInt32AttributeValues\x12\x1c\n\x18NIFAKE_INT32_UNSPECIFIED\x10\x00\x12(\n$NIFAKE_INT32_GRPC_COLOR_OVERRIDE_RED\x10\x01\x12)\n%NIFAKE_INT32_GRPC_COLOR_OVERRIDE_BLUE\x10\x02\x12+\n\'NIFAKE_INT32_GRPC_COLOR_OVERRIDE_YELLOW\x10\x05\x12*\n&NIFAKE_INT32_GRPC_COLOR_OVERRIDE_BLACK\x10*\x12\x33\n/NIFAKE_INT32_SAMPLE_COUNT_SAMPLE_COUNT_INFINITE\x10\x00\x1a\x02\x10\x01*s\n\x1bNiFakeReal64AttributeValues\x12\x1d\n\x19NIFAKE_REAL64_UNSPECIFIED\x10\x00\x12\x35\n(NIFAKE_REAL64_SAMPLE_INTERVAL_AUTO_DELAY\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xb0\x02\n!NiFakeReal64AttributeValuesMapped\x12$\n NIFAKE_REAL64_MAPPED_UNSPECIFIED\x10\x00\x12-\n)NIFAKE_REAL64_FLOAT_ENUM_THREE_POINT_FIVE\x10\x01\x12,\n(NIFAKE_REAL64_FLOAT_ENUM_FOUR_POINT_FIVE\x10\x02\x12,\n(NIFAKE_REAL64_FLOAT_ENUM_FIVE_POINT_FIVE\x10\x03\x12+\n\'NIFAKE_REAL64_FLOAT_ENUM_SIX_POINT_FIVE\x10\x04\x12-\n)NIFAKE_REAL64_FLOAT_ENUM_SEVEN_POINT_FIVE\x10\x05\x32\xad_\n\x06NiFake\x12>\n\x05\x41\x62ort\x12\x19.nifake_grpc.AbortRequest\x1a\x1a.nifake_grpc.AbortResponse\x12t\n\x17\x42oolArrayOutputFunction\x12+.nifake_grpc.BoolArrayOutputFunctionRequest\x1a,.nifake_grpc.BoolArrayOutputFunctionResponse\x12>\n\x05\x43lose\x12\x19.nifake_grpc.CloseRequest\x1a\x1a.nifake_grpc.CloseResponse\x12t\n\x17\x45numArrayOutputFunction\x12+.nifake_grpc.EnumArrayOutputFunctionRequest\x1a,.nifake_grpc.EnumArrayOutputFunctionResponse\x12\x86\x01\n\x1d\x45numInputFunctionWithDefaults\x12\x31.nifake_grpc.EnumInputFunctionWithDefaultsRequest\x1a\x32.nifake_grpc.EnumInputFunctionWithDefaultsResponse\x12\xaa\x01\n)StringValuedEnumInputFunctionWithDefaults\x12=.nifake_grpc.StringValuedEnumInputFunctionWithDefaultsRequest\x1a>.nifake_grpc.StringValuedEnumInputFunctionWithDefaultsResponse\x12S\n\x0c\x45rrorMessage\x12 .nifake_grpc.ErrorMessageRequest\x1a!.nifake_grpc.ErrorMessageResponse\x12V\n\rFetchWaveform\x12!.nifake_grpc.FetchWaveformRequest\x1a\".nifake_grpc.FetchWaveformResponse\x12P\n\x0bGetABoolean\x12\x1f.nifake_grpc.GetABooleanRequest\x1a .nifake_grpc.GetABooleanResponse\x12M\n\nGetANumber\x12\x1e.nifake_grpc.GetANumberRequest\x1a\x1f.nifake_grpc.GetANumberResponse\x12\x83\x01\n\x1cGetAStringOfFixedMaximumSize\x12\x30.nifake_grpc.GetAStringOfFixedMaximumSizeRequest\x1a\x31.nifake_grpc.GetAStringOfFixedMaximumSizeResponse\x12q\n\x16GetAnIviDanceCharArray\x12*.nifake_grpc.GetAnIviDanceCharArrayRequest\x1a+.nifake_grpc.GetAnIviDanceCharArrayResponse\x12n\n\x15GetArrayUsingIviDance\x12).nifake_grpc.GetArrayUsingIviDanceRequest\x1a*.nifake_grpc.GetArrayUsingIviDanceResponse\x12n\n\x15GetAttributeViBoolean\x12).nifake_grpc.GetAttributeViBooleanRequest\x1a*.nifake_grpc.GetAttributeViBooleanResponse\x12h\n\x13GetAttributeViInt32\x12\'.nifake_grpc.GetAttributeViInt32Request\x1a(.nifake_grpc.GetAttributeViInt32Response\x12h\n\x13GetAttributeViInt64\x12\'.nifake_grpc.GetAttributeViInt64Request\x1a(.nifake_grpc.GetAttributeViInt64Response\x12k\n\x14GetAttributeViReal64\x12(.nifake_grpc.GetAttributeViReal64Request\x1a).nifake_grpc.GetAttributeViReal64Response\x12n\n\x15GetAttributeViSession\x12).nifake_grpc.GetAttributeViSessionRequest\x1a*.nifake_grpc.GetAttributeViSessionResponse\x12k\n\x14GetAttributeViString\x12(.nifake_grpc.GetAttributeViStringRequest\x1a).nifake_grpc.GetAttributeViStringResponse\x12\x62\n\x11GetCalDateAndTime\x12%.nifake_grpc.GetCalDateAndTimeRequest\x1a&.nifake_grpc.GetCalDateAndTimeResponse\x12Y\n\x0eGetCalInterval\x12\".nifake_grpc.GetCalIntervalRequest\x1a#.nifake_grpc.GetCalIntervalResponse\x12S\n\x0cGetEnumValue\x12 .nifake_grpc.GetEnumValueRequest\x1a!.nifake_grpc.GetEnumValueResponse\x12G\n\x08GetError\x12\x1c.nifake_grpc.GetErrorRequest\x1a\x1d.nifake_grpc.GetErrorResponse\x12\\\n\x0fInitWithOptions\x12#.nifake_grpc.InitWithOptionsRequest\x1a$.nifake_grpc.InitWithOptionsResponse\x12\x65\n\x12MultipleArrayTypes\x12&.nifake_grpc.MultipleArrayTypesRequest\x1a\'.nifake_grpc.MultipleArrayTypesResponse\x12q\n\x16MultipleArraysSameSize\x12*.nifake_grpc.MultipleArraysSameSizeRequest\x1a+.nifake_grpc.MultipleArraysSameSizeResponse\x12\x80\x01\n\x1bMultipleArraysDifferentSize\x12/.nifake_grpc.MultipleArraysDifferentSizeRequest\x1a\x30.nifake_grpc.MultipleArraysDifferentSizeResponse\x12\x83\x01\n\x1cMixedIviDanceAndLenMechanism\x12\x30.nifake_grpc.MixedIviDanceAndLenMechanismRequest\x1a\x31.nifake_grpc.MixedIviDanceAndLenMechanismResponse\x12_\n\x10OneInputFunction\x12$.nifake_grpc.OneInputFunctionRequest\x1a%.nifake_grpc.OneInputFunctionResponse\x12}\n\x1aParametersAreMultipleTypes\x12..nifake_grpc.ParametersAreMultipleTypesRequest\x1a/.nifake_grpc.ParametersAreMultipleTypesResponse\x12z\n\x19PoorlyNamedSimpleFunction\x12-.nifake_grpc.PoorlyNamedSimpleFunctionRequest\x1a..nifake_grpc.PoorlyNamedSimpleFunctionResponse\x12;\n\x04Read\x12\x18.nifake_grpc.ReadRequest\x1a\x19.nifake_grpc.ReadResponse\x12\\\n\x0fReadFromChannel\x12#.nifake_grpc.ReadFromChannelRequest\x1a$.nifake_grpc.ReadFromChannelResponse\x12t\n\x17ReturnANumberAndAString\x12+.nifake_grpc.ReturnANumberAndAStringRequest\x1a,.nifake_grpc.ReturnANumberAndAStringResponse\x12h\n\x13ReturnMultipleTypes\x12\'.nifake_grpc.ReturnMultipleTypesRequest\x1a(.nifake_grpc.ReturnMultipleTypesResponse\x12n\n\x15SetAttributeViBoolean\x12).nifake_grpc.SetAttributeViBooleanRequest\x1a*.nifake_grpc.SetAttributeViBooleanResponse\x12h\n\x13SetAttributeViInt32\x12\'.nifake_grpc.SetAttributeViInt32Request\x1a(.nifake_grpc.SetAttributeViInt32Response\x12h\n\x13SetAttributeViInt64\x12\'.nifake_grpc.SetAttributeViInt64Request\x1a(.nifake_grpc.SetAttributeViInt64Response\x12k\n\x14SetAttributeViReal64\x12(.nifake_grpc.SetAttributeViReal64Request\x1a).nifake_grpc.SetAttributeViReal64Response\x12k\n\x14SetAttributeViString\x12(.nifake_grpc.SetAttributeViStringRequest\x1a).nifake_grpc.SetAttributeViStringResponse\x12_\n\x10TwoInputFunction\x12$.nifake_grpc.TwoInputFunctionRequest\x1a%.nifake_grpc.TwoInputFunctionResponse\x12Y\n\x0eUse64BitNumber\x12\".nifake_grpc.Use64BitNumberRequest\x1a#.nifake_grpc.Use64BitNumberResponse\x12V\n\rWriteWaveform\x12!.nifake_grpc.WriteWaveformRequest\x1a\".nifake_grpc.WriteWaveformResponse\x12\x83\x01\n\x1cWriteWaveformNumpyComplex128\x12\x30.nifake_grpc.WriteWaveformNumpyComplex128Request\x1a\x31.nifake_grpc.WriteWaveformNumpyComplex128Response\x12\x80\x01\n\x1bWriteWaveformNumpyComplex64\x12/.nifake_grpc.WriteWaveformNumpyComplex64Request\x1a\x30.nifake_grpc.WriteWaveformNumpyComplex64Response\x12\xa4\x01\n\'WriteWaveformNumpyComplexInterleavedI16\x12;.nifake_grpc.WriteWaveformNumpyComplexInterleavedI16Request\x1a<.nifake_grpc.WriteWaveformNumpyComplexInterleavedI16Response\x12V\n\rSetCustomType\x12!.nifake_grpc.SetCustomTypeRequest\x1a\".nifake_grpc.SetCustomTypeResponse\x12\x65\n\x12SetCustomTypeArray\x12&.nifake_grpc.SetCustomTypeArrayRequest\x1a\'.nifake_grpc.SetCustomTypeArrayResponse\x12V\n\rGetCustomType\x12!.nifake_grpc.GetCustomTypeRequest\x1a\".nifake_grpc.GetCustomTypeResponse\x12\x65\n\x12GetCustomTypeArray\x12&.nifake_grpc.GetCustomTypeArrayRequest\x1a\'.nifake_grpc.GetCustomTypeArrayResponse\x12\x83\x01\n\x1cGetAnIviDanceWithATwistArray\x12\x30.nifake_grpc.GetAnIviDanceWithATwistArrayRequest\x1a\x31.nifake_grpc.GetAnIviDanceWithATwistArrayResponse\x12\x86\x01\n\x1dGetAnIviDanceWithATwistString\x12\x31.nifake_grpc.GetAnIviDanceWithATwistStringRequest\x1a\x32.nifake_grpc.GetAnIviDanceWithATwistStringResponse\x12_\n\x10\x44oubleAllTheNums\x12$.nifake_grpc.DoubleAllTheNumsRequest\x1a%.nifake_grpc.DoubleAllTheNumsResponse\x12\x89\x01\n\x1e\x41\x63\x63\x65ptListOfDurationsInSeconds\x12\x32.nifake_grpc.AcceptListOfDurationsInSecondsRequest\x1a\x33.nifake_grpc.AcceptListOfDurationsInSecondsResponse\x12t\n\x17ReturnDurationInSeconds\x12+.nifake_grpc.ReturnDurationInSecondsRequest\x1a,.nifake_grpc.ReturnDurationInSecondsResponse\x12\x89\x01\n\x1eReturnListOfDurationsInSeconds\x12\x32.nifake_grpc.ReturnListOfDurationsInSecondsRequest\x1a\x33.nifake_grpc.ReturnListOfDurationsInSecondsResponse\x12S\n\x0c\x43onfigureAbc\x12 .nifake_grpc.ConfigureAbcRequest\x1a!.nifake_grpc.ConfigureAbcResponse\x12Y\n\x0e\x43onfigureEnums\x12\".nifake_grpc.ConfigureEnumsRequest\x1a#.nifake_grpc.ConfigureEnumsResponse\x12\x9b\x01\n$ExportAttributeConfigurationBufferEx\x12\x38.nifake_grpc.ExportAttributeConfigurationBufferExRequest\x1a\x39.nifake_grpc.ExportAttributeConfigurationBufferExResponse\x12\x9b\x01\n$ImportAttributeConfigurationBufferEx\x12\x38.nifake_grpc.ImportAttributeConfigurationBufferExRequest\x1a\x39.nifake_grpc.ImportAttributeConfigurationBufferExResponse\x12h\n\x13\x46\x65tchWithCustomSize\x12\'.nifake_grpc.FetchWithCustomSizeRequest\x1a(.nifake_grpc.FetchWithCustomSizeResponse\x12\x95\x01\n\"GetParameterWithOverriddenGrpcName\x12\x36.nifake_grpc.GetParameterWithOverriddenGrpcNameRequest\x1a\x37.nifake_grpc.GetParameterWithOverriddenGrpcNameResponse\x12\xc8\x01\n3IviDanceWithTwistWithMultipleArraysAndOneBufferSize\x12G.nifake_grpc.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest\x1aH.nifake_grpc.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse\x12\x8f\x01\n FunctionWithOverriddenGrpcName2x\x12\x34.nifake_grpc.FunctionWithOverriddenGrpcName2xRequest\x1a\x35.nifake_grpc.FunctionWithOverriddenGrpcName2xResponse\x12\xd4\x01\n7FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter\x12K.nifake_grpc.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest\x1aL.nifake_grpc.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse\x12\x8c\x01\n\x1fStringValuedEnumNoEnumGenerated\x12\x33.nifake_grpc.StringValuedEnumNoEnumGeneratedRequest\x1a\x34.nifake_grpc.StringValuedEnumNoEnumGeneratedResponse\x12\x98\x01\n#IviDanceWithATwistCalculatedSizeOut\x12\x37.nifake_grpc.IviDanceWithATwistCalculatedSizeOutRequest\x1a\x38.nifake_grpc.IviDanceWithATwistCalculatedSizeOutResponse\x12\x95\x01\n\"ImportAttributeConfigurationBuffer\x12\x36.nifake_grpc.ImportAttributeConfigurationBufferRequest\x1a\x37.nifake_grpc.ImportAttributeConfigurationBufferResponse\x12\x95\x01\n\"ExportAttributeConfigurationBuffer\x12\x36.nifake_grpc.ExportAttributeConfigurationBufferRequest\x1a\x37.nifake_grpc.ExportAttributeConfigurationBufferResponse\x12P\n\x0b\x43ontrol4022\x12\x1f.nifake_grpc.Control4022Request\x1a .nifake_grpc.Control4022Response\x12k\n\x14\x41\x63\x63\x65ptViSessionArray\x12(.nifake_grpc.AcceptViSessionArrayRequest\x1a).nifake_grpc.AcceptViSessionArrayResponse\x12h\n\x13\x41\x63\x63\x65ptViUInt32Array\x12\'.nifake_grpc.AcceptViUInt32ArrayRequest\x1a(.nifake_grpc.AcceptViUInt32ArrayResponse\x12q\n\x16\x42oolArrayInputFunction\x12*.nifake_grpc.BoolArrayInputFunctionRequest\x1a+.nifake_grpc.BoolArrayInputFunctionResponse\x12P\n\x0b\x43loseExtCal\x12\x1f.nifake_grpc.CloseExtCalRequest\x1a .nifake_grpc.CloseExtCalResponse\x12w\n\x18\x43ommandWithReservedParam\x12,.nifake_grpc.CommandWithReservedParamRequest\x1a-.nifake_grpc.CommandWithReservedParamResponse\x12t\n\x17\x43reateConfigurationList\x12+.nifake_grpc.CreateConfigurationListRequest\x1a,.nifake_grpc.CreateConfigurationListResponse\x12\x80\x01\n\x1b\x43ustomNestedStructRoundtrip\x12/.nifake_grpc.CustomNestedStructRoundtripRequest\x1a\x30.nifake_grpc.CustomNestedStructRoundtripResponse\x12q\n\x16GetBitfieldAsEnumArray\x12*.nifake_grpc.GetBitfieldAsEnumArrayRequest\x1a+.nifake_grpc.GetBitfieldAsEnumArrayResponse\x12\xa7\x01\n(GetAnIviDanceWithATwistArrayOfCustomType\x12<.nifake_grpc.GetAnIviDanceWithATwistArrayOfCustomTypeRequest\x1a=.nifake_grpc.GetAnIviDanceWithATwistArrayOfCustomTypeResponse\x12\xad\x01\n*GetAnIviDanceWithATwistArrayWithInputArray\x12>.nifake_grpc.GetAnIviDanceWithATwistArrayWithInputArrayRequest\x1a?.nifake_grpc.GetAnIviDanceWithATwistArrayWithInputArrayResponse\x12\x8f\x01\n GetAnIviDanceWithATwistByteArray\x12\x34.nifake_grpc.GetAnIviDanceWithATwistByteArrayRequest\x1a\x35.nifake_grpc.GetAnIviDanceWithATwistByteArrayResponse\x12\xa1\x01\n&GetAnIviDanceWithATwistStringStrlenBug\x12:.nifake_grpc.GetAnIviDanceWithATwistStringStrlenBugRequest\x1a;.nifake_grpc.GetAnIviDanceWithATwistStringStrlenBugResponse\x12z\n\x19GetArraySizeForCustomCode\x12-.nifake_grpc.GetArraySizeForCustomCodeRequest\x1a..nifake_grpc.GetArraySizeForCustomCodeResponse\x12t\n\x17GetArrayViUInt8WithEnum\x12+.nifake_grpc.GetArrayViUInt8WithEnumRequest\x1a,.nifake_grpc.GetArrayViUInt8WithEnumResponse\x12M\n\nGetViUInt8\x12\x1e.nifake_grpc.GetViUInt8Request\x1a\x1f.nifake_grpc.GetViUInt8Response\x12\\\n\x0fGetViInt32Array\x12#.nifake_grpc.GetViInt32ArrayRequest\x1a$.nifake_grpc.GetViInt32ArrayResponse\x12_\n\x10GetViUInt32Array\x12$.nifake_grpc.GetViUInt32ArrayRequest\x1a%.nifake_grpc.GetViUInt32ArrayResponse\x12\x92\x01\n!MethodUsingEnumWithGrpcNameValues\x12\x35.nifake_grpc.MethodUsingEnumWithGrpcNameValuesRequest\x1a\x36.nifake_grpc.MethodUsingEnumWithGrpcNameValuesResponse\x12\x80\x01\n\x1bMethodWithGetLastErrorParam\x12/.nifake_grpc.MethodWithGetLastErrorParamRequest\x1a\x30.nifake_grpc.MethodWithGetLastErrorParamResponse\x12t\n\x17MethodWithGrpcOnlyParam\x12+.nifake_grpc.MethodWithGrpcOnlyParamRequest\x1a,.nifake_grpc.MethodWithGrpcOnlyParamResponse\x12\x9b\x01\n$MethodUsingWholeAndFractionalNumbers\x12\x38.nifake_grpc.MethodUsingWholeAndFractionalNumbersRequest\x1a\x39.nifake_grpc.MethodUsingWholeAndFractionalNumbersResponse\x12\x86\x01\n\x1dMethodUsingWholeMappedNumbers\x12\x31.nifake_grpc.MethodUsingWholeMappedNumbersRequest\x1a\x32.nifake_grpc.MethodUsingWholeMappedNumbersResponse\x12z\n\x19MethodWithGrpcFieldNumber\x12-.nifake_grpc.MethodWithGrpcFieldNumberRequest\x1a..nifake_grpc.MethodWithGrpcFieldNumberResponse\x12\x83\x01\n\x1cMethodWithProtoOnlyParameter\x12\x30.nifake_grpc.MethodWithProtoOnlyParameterRequest\x1a\x31.nifake_grpc.MethodWithProtoOnlyParameterResponse\x12z\n\x19ReadDataWithInOutIviTwist\x12-.nifake_grpc.ReadDataWithInOutIviTwistRequest\x1a..nifake_grpc.ReadDataWithInOutIviTwistResponse\x12\x9e\x01\n%ReadDataWithMultipleIviTwistParamSets\x12\x39.nifake_grpc.ReadDataWithMultipleIviTwistParamSetsRequest\x1a:.nifake_grpc.ReadDataWithMultipleIviTwistParamSetsResponse\x12M\n\nInitExtCal\x12\x1e.nifake_grpc.InitExtCalRequest\x1a\x1f.nifake_grpc.InitExtCalResponse\x12\\\n\x0fInitWithVarArgs\x12#.nifake_grpc.InitWithVarArgsRequest\x1a$.nifake_grpc.InitWithVarArgsResponse\x12\x95\x01\n\"MultipleArraysSameSizeWithOptional\x12\x36.nifake_grpc.MultipleArraysSameSizeWithOptionalRequest\x1a\x37.nifake_grpc.MultipleArraysSameSizeWithOptionalResponse\x12z\n\x19UseATwoDimensionParameter\x12-.nifake_grpc.UseATwoDimensionParameterRequest\x1a..nifake_grpc.UseATwoDimensionParameterResponse\x12z\n\x19ViUInt8ArrayInputFunction\x12-.nifake_grpc.ViUInt8ArrayInputFunctionRequest\x1a..nifake_grpc.ViUInt8ArrayInputFunctionResponse\x12}\n\x1aViUInt8ArrayOutputFunction\x12..nifake_grpc.ViUInt8ArrayOutputFunctionRequest\x1a/.nifake_grpc.ViUInt8ArrayOutputFunctionResponse\x12z\n\x19ViInt16ArrayInputFunction\x12-.nifake_grpc.ViInt16ArrayInputFunctionRequest\x1a..nifake_grpc.ViInt16ArrayInputFunctionResponseB<\n\x10\x63om.ni.grpc.fakeB\x06NiFakeP\x01\xaa\x02\x1dNationalInstruments.Grpc.Fakeb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nifake_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\020com.ni.grpc.fakeB\006NiFakeP\001\252\002\035NationalInstruments.Grpc.Fake' + _NIFAKEINT32ATTRIBUTEVALUES._options = None + _NIFAKEINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _METHODWITHGETLASTERRORPARAMRESPONSE.fields_by_name['last_error']._options = None + _METHODWITHGETLASTERRORPARAMRESPONSE.fields_by_name['last_error']._serialized_options = b'\030\001' + _globals['_NIFAKEATTRIBUTE']._serialized_start=19367 + _globals['_NIFAKEATTRIBUTE']._serialized_end=20037 + _globals['_GRPCCOLOROVERRIDE']._serialized_start=20040 + _globals['_GRPCCOLOROVERRIDE']._serialized_end=20218 + _globals['_FLOATENUM']._serialized_start=20221 + _globals['_FLOATENUM']._serialized_end=20421 + _globals['_TURTLE']._serialized_start=20423 + _globals['_TURTLE']._serialized_end=20519 + _globals['_MOBILEOSNAMES']._serialized_start=20522 + _globals['_MOBILEOSNAMES']._serialized_end=20650 + _globals['_BITFIELD']._serialized_start=20652 + _globals['_BITFIELD']._serialized_end=20772 + _globals['_DECIMALWHOLENUMBER']._serialized_start=20775 + _globals['_DECIMALWHOLENUMBER']._serialized_end=20911 + _globals['_DECIMALWHOLENUMBERMAPPED']._serialized_start=20914 + _globals['_DECIMALWHOLENUMBERMAPPED']._serialized_end=21113 + _globals['_DECIMALMIXEDNUMBER']._serialized_start=21116 + _globals['_DECIMALMIXEDNUMBER']._serialized_end=21459 + _globals['_ENUMWITHGRPCNAMEVALUES']._serialized_start=21462 + _globals['_ENUMWITHGRPCNAMEVALUES']._serialized_end=21620 + _globals['_SAMPLECOUNT']._serialized_start=21622 + _globals['_SAMPLECOUNT']._serialized_end=21675 + _globals['_SAMPLEINTERVAL']._serialized_start=21677 + _globals['_SAMPLEINTERVAL']._serialized_end=21767 + _globals['_NIFAKEINT32ATTRIBUTEVALUES']._serialized_start=21770 + _globals['_NIFAKEINT32ATTRIBUTEVALUES']._serialized_end=22059 + _globals['_NIFAKEREAL64ATTRIBUTEVALUES']._serialized_start=22061 + _globals['_NIFAKEREAL64ATTRIBUTEVALUES']._serialized_end=22176 + _globals['_NIFAKEREAL64ATTRIBUTEVALUESMAPPED']._serialized_start=22179 + _globals['_NIFAKEREAL64ATTRIBUTEVALUESMAPPED']._serialized_end=22483 + _globals['_FAKECUSTOMSTRUCT']._serialized_start=44 + _globals['_FAKECUSTOMSTRUCT']._serialized_end=105 + _globals['_CUSTOMSTRUCTNESTEDTYPEDEF']._serialized_start=108 + _globals['_CUSTOMSTRUCTNESTEDTYPEDEF']._serialized_end=268 + _globals['_CUSTOMSTRUCTTYPEDEF']._serialized_start=270 + _globals['_CUSTOMSTRUCTTYPEDEF']._serialized_end=334 + _globals['_NICOMPLEXI16_STRUCT']._serialized_start=336 + _globals['_NICOMPLEXI16_STRUCT']._serialized_end=390 + _globals['_NICOMPLEXNUMBER_STRUCT']._serialized_start=392 + _globals['_NICOMPLEXNUMBER_STRUCT']._serialized_end=449 + _globals['_NICOMPLEXNUMBERF32_STRUCT']._serialized_start=451 + _globals['_NICOMPLEXNUMBERF32_STRUCT']._serialized_end=511 + _globals['_STRINGANDTURTLE']._serialized_start=513 + _globals['_STRINGANDTURTLE']._serialized_end=587 + _globals['_CUSTOMNAMEDTYPE']._serialized_start=589 + _globals['_CUSTOMNAMEDTYPE']._serialized_end=626 + _globals['_ABORTREQUEST']._serialized_start=628 + _globals['_ABORTREQUEST']._serialized_end=678 + _globals['_ABORTRESPONSE']._serialized_start=680 + _globals['_ABORTRESPONSE']._serialized_end=711 + _globals['_BOOLARRAYOUTPUTFUNCTIONREQUEST']._serialized_start=713 + _globals['_BOOLARRAYOUTPUTFUNCTIONREQUEST']._serialized_end=809 + _globals['_BOOLARRAYOUTPUTFUNCTIONRESPONSE']._serialized_start=811 + _globals['_BOOLARRAYOUTPUTFUNCTIONRESPONSE']._serialized_end=878 + _globals['_CLOSEREQUEST']._serialized_start=880 + _globals['_CLOSEREQUEST']._serialized_end=930 + _globals['_CLOSERESPONSE']._serialized_start=932 + _globals['_CLOSERESPONSE']._serialized_end=963 + _globals['_ENUMARRAYOUTPUTFUNCTIONREQUEST']._serialized_start=965 + _globals['_ENUMARRAYOUTPUTFUNCTIONREQUEST']._serialized_end=1061 + _globals['_ENUMARRAYOUTPUTFUNCTIONRESPONSE']._serialized_start=1063 + _globals['_ENUMARRAYOUTPUTFUNCTIONRESPONSE']._serialized_end=1173 + _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_start=1176 + _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_end=1332 + _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_start=1334 + _globals['_ENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_end=1389 + _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_start=1392 + _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSREQUEST']._serialized_end=1598 + _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_start=1600 + _globals['_STRINGVALUEDENUMINPUTFUNCTIONWITHDEFAULTSRESPONSE']._serialized_end=1667 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=1669 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=1746 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=1748 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=1809 + _globals['_FETCHWAVEFORMREQUEST']._serialized_start=1811 + _globals['_FETCHWAVEFORMREQUEST']._serialized_end=1896 + _globals['_FETCHWAVEFORMRESPONSE']._serialized_start=1898 + _globals['_FETCHWAVEFORMRESPONSE']._serialized_end=1994 + _globals['_GETABOOLEANREQUEST']._serialized_start=1996 + _globals['_GETABOOLEANREQUEST']._serialized_end=2052 + _globals['_GETABOOLEANRESPONSE']._serialized_start=2054 + _globals['_GETABOOLEANRESPONSE']._serialized_end=2110 + _globals['_GETANUMBERREQUEST']._serialized_start=2112 + _globals['_GETANUMBERREQUEST']._serialized_end=2167 + _globals['_GETANUMBERRESPONSE']._serialized_start=2169 + _globals['_GETANUMBERRESPONSE']._serialized_end=2223 + _globals['_GETASTRINGOFFIXEDMAXIMUMSIZEREQUEST']._serialized_start=2225 + _globals['_GETASTRINGOFFIXEDMAXIMUMSIZEREQUEST']._serialized_end=2298 + _globals['_GETASTRINGOFFIXEDMAXIMUMSIZERESPONSE']._serialized_start=2300 + _globals['_GETASTRINGOFFIXEDMAXIMUMSIZERESPONSE']._serialized_end=2372 + _globals['_GETANIVIDANCECHARARRAYREQUEST']._serialized_start=2374 + _globals['_GETANIVIDANCECHARARRAYREQUEST']._serialized_end=2441 + _globals['_GETANIVIDANCECHARARRAYRESPONSE']._serialized_start=2443 + _globals['_GETANIVIDANCECHARARRAYRESPONSE']._serialized_end=2511 + _globals['_GETARRAYUSINGIVIDANCEREQUEST']._serialized_start=2513 + _globals['_GETARRAYUSINGIVIDANCEREQUEST']._serialized_end=2579 + _globals['_GETARRAYUSINGIVIDANCERESPONSE']._serialized_start=2581 + _globals['_GETARRAYUSINGIVIDANCERESPONSE']._serialized_end=2647 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=2650 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=2790 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=2792 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=2864 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=2867 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=3005 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=3007 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=3077 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=3080 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=3218 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=3220 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=3290 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=3293 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=3432 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=3434 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=3505 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=3508 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=3648 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=3650 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=3746 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=3749 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=3888 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=3890 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=3961 + _globals['_GETCALDATEANDTIMEREQUEST']._serialized_start=3963 + _globals['_GETCALDATEANDTIMEREQUEST']._serialized_end=4043 + _globals['_GETCALDATEANDTIMERESPONSE']._serialized_start=4045 + _globals['_GETCALDATEANDTIMERESPONSE']._serialized_end=4160 + _globals['_GETCALINTERVALREQUEST']._serialized_start=4162 + _globals['_GETCALINTERVALREQUEST']._serialized_end=4221 + _globals['_GETCALINTERVALRESPONSE']._serialized_start=4223 + _globals['_GETCALINTERVALRESPONSE']._serialized_end=4279 + _globals['_GETENUMVALUEREQUEST']._serialized_start=4281 + _globals['_GETENUMVALUEREQUEST']._serialized_end=4338 + _globals['_GETENUMVALUERESPONSE']._serialized_start=4340 + _globals['_GETENUMVALUERESPONSE']._serialized_end=4459 + _globals['_GETERRORREQUEST']._serialized_start=4461 + _globals['_GETERRORREQUEST']._serialized_end=4514 + _globals['_GETERRORRESPONSE']._serialized_start=4516 + _globals['_GETERRORRESPONSE']._serialized_end=4591 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=4594 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=4805 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=4807 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=4917 + _globals['_MULTIPLEARRAYTYPESREQUEST']._serialized_start=4920 + _globals['_MULTIPLEARRAYTYPESREQUEST']._serialized_end=5074 + _globals['_MULTIPLEARRAYTYPESRESPONSE']._serialized_start=5076 + _globals['_MULTIPLEARRAYTYPESRESPONSE']._serialized_end=5180 + _globals['_MULTIPLEARRAYSSAMESIZEREQUEST']._serialized_start=5183 + _globals['_MULTIPLEARRAYSSAMESIZEREQUEST']._serialized_end=5318 + _globals['_MULTIPLEARRAYSSAMESIZERESPONSE']._serialized_start=5320 + _globals['_MULTIPLEARRAYSSAMESIZERESPONSE']._serialized_end=5368 + _globals['_MULTIPLEARRAYSDIFFERENTSIZEREQUEST']._serialized_start=5370 + _globals['_MULTIPLEARRAYSDIFFERENTSIZEREQUEST']._serialized_end=5484 + _globals['_MULTIPLEARRAYSDIFFERENTSIZERESPONSE']._serialized_start=5486 + _globals['_MULTIPLEARRAYSDIFFERENTSIZERESPONSE']._serialized_end=5539 + _globals['_MIXEDIVIDANCEANDLENMECHANISMREQUEST']._serialized_start=5541 + _globals['_MIXEDIVIDANCEANDLENMECHANISMREQUEST']._serialized_end=5636 + _globals['_MIXEDIVIDANCEANDLENMECHANISMRESPONSE']._serialized_start=5638 + _globals['_MIXEDIVIDANCEANDLENMECHANISMRESPONSE']._serialized_end=5714 + _globals['_ONEINPUTFUNCTIONREQUEST']._serialized_start=5716 + _globals['_ONEINPUTFUNCTIONREQUEST']._serialized_end=5795 + _globals['_ONEINPUTFUNCTIONRESPONSE']._serialized_start=5797 + _globals['_ONEINPUTFUNCTIONRESPONSE']._serialized_end=5839 + _globals['_PARAMETERSAREMULTIPLETYPESREQUEST']._serialized_start=5842 + _globals['_PARAMETERSAREMULTIPLETYPESREQUEST']._serialized_end=6198 + _globals['_PARAMETERSAREMULTIPLETYPESRESPONSE']._serialized_start=6200 + _globals['_PARAMETERSAREMULTIPLETYPESRESPONSE']._serialized_end=6252 + _globals['_POORLYNAMEDSIMPLEFUNCTIONREQUEST']._serialized_start=6254 + _globals['_POORLYNAMEDSIMPLEFUNCTIONREQUEST']._serialized_end=6324 + _globals['_POORLYNAMEDSIMPLEFUNCTIONRESPONSE']._serialized_start=6326 + _globals['_POORLYNAMEDSIMPLEFUNCTIONRESPONSE']._serialized_end=6377 + _globals['_READREQUEST']._serialized_start=6379 + _globals['_READREQUEST']._serialized_end=6450 + _globals['_READRESPONSE']._serialized_start=6452 + _globals['_READRESPONSE']._serialized_end=6499 + _globals['_READFROMCHANNELREQUEST']._serialized_start=6501 + _globals['_READFROMCHANNELREQUEST']._serialized_end=6605 + _globals['_READFROMCHANNELRESPONSE']._serialized_start=6607 + _globals['_READFROMCHANNELRESPONSE']._serialized_end=6665 + _globals['_RETURNANUMBERANDASTRINGREQUEST']._serialized_start=6667 + _globals['_RETURNANUMBERANDASTRINGREQUEST']._serialized_end=6735 + _globals['_RETURNANUMBERANDASTRINGRESPONSE']._serialized_start=6737 + _globals['_RETURNANUMBERANDASTRINGRESPONSE']._serialized_end=6822 + _globals['_RETURNMULTIPLETYPESREQUEST']._serialized_start=6824 + _globals['_RETURNMULTIPLETYPESREQUEST']._serialized_end=6908 + _globals['_RETURNMULTIPLETYPESRESPONSE']._serialized_start=6911 + _globals['_RETURNMULTIPLETYPESRESPONSE']._serialized_end=7210 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=7213 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=7378 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=7380 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=7427 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=7430 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=7691 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=7693 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=7738 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=7741 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=7908 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=7910 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=7955 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=7958 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=8303 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=8305 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=8351 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=8354 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=8522 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=8524 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=8570 + _globals['_TWOINPUTFUNCTIONREQUEST']._serialized_start=8572 + _globals['_TWOINPUTFUNCTIONREQUEST']._serialized_end=8669 + _globals['_TWOINPUTFUNCTIONRESPONSE']._serialized_start=8671 + _globals['_TWOINPUTFUNCTIONRESPONSE']._serialized_end=8713 + _globals['_USE64BITNUMBERREQUEST']._serialized_start=8715 + _globals['_USE64BITNUMBERREQUEST']._serialized_end=8789 + _globals['_USE64BITNUMBERRESPONSE']._serialized_start=8791 + _globals['_USE64BITNUMBERRESPONSE']._serialized_end=8847 + _globals['_WRITEWAVEFORMREQUEST']._serialized_start=8849 + _globals['_WRITEWAVEFORMREQUEST']._serialized_end=8925 + _globals['_WRITEWAVEFORMRESPONSE']._serialized_start=8927 + _globals['_WRITEWAVEFORMRESPONSE']._serialized_end=8966 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX128REQUEST']._serialized_start=8969 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX128REQUEST']._serialized_end=9108 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX128RESPONSE']._serialized_start=9110 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX128RESPONSE']._serialized_end=9164 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX64REQUEST']._serialized_start=9167 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX64REQUEST']._serialized_end=9308 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX64RESPONSE']._serialized_start=9310 + _globals['_WRITEWAVEFORMNUMPYCOMPLEX64RESPONSE']._serialized_end=9363 + _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16REQUEST']._serialized_start=9366 + _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16REQUEST']._serialized_end=9513 + _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16RESPONSE']._serialized_start=9515 + _globals['_WRITEWAVEFORMNUMPYCOMPLEXINTERLEAVEDI16RESPONSE']._serialized_end=9580 + _globals['_SETCUSTOMTYPEREQUEST']._serialized_start=9582 + _globals['_SETCUSTOMTYPEREQUEST']._serialized_end=9683 + _globals['_SETCUSTOMTYPERESPONSE']._serialized_start=9685 + _globals['_SETCUSTOMTYPERESPONSE']._serialized_end=9724 + _globals['_SETCUSTOMTYPEARRAYREQUEST']._serialized_start=9726 + _globals['_SETCUSTOMTYPEARRAYREQUEST']._serialized_end=9832 + _globals['_SETCUSTOMTYPEARRAYRESPONSE']._serialized_start=9834 + _globals['_SETCUSTOMTYPEARRAYRESPONSE']._serialized_end=9878 + _globals['_GETCUSTOMTYPEREQUEST']._serialized_start=9880 + _globals['_GETCUSTOMTYPEREQUEST']._serialized_end=9938 + _globals['_GETCUSTOMTYPERESPONSE']._serialized_start=9940 + _globals['_GETCUSTOMTYPERESPONSE']._serialized_end=10022 + _globals['_GETCUSTOMTYPEARRAYREQUEST']._serialized_start=10024 + _globals['_GETCUSTOMTYPEARRAYREQUEST']._serialized_end=10115 + _globals['_GETCUSTOMTYPEARRAYRESPONSE']._serialized_start=10117 + _globals['_GETCUSTOMTYPEARRAYRESPONSE']._serialized_end=10204 + _globals['_GETANIVIDANCEWITHATWISTARRAYREQUEST']._serialized_start=10206 + _globals['_GETANIVIDANCEWITHATWISTARRAYREQUEST']._serialized_end=10297 + _globals['_GETANIVIDANCEWITHATWISTARRAYRESPONSE']._serialized_start=10299 + _globals['_GETANIVIDANCEWITHATWISTARRAYRESPONSE']._serialized_end=10393 + _globals['_GETANIVIDANCEWITHATWISTSTRINGREQUEST']._serialized_start=10395 + _globals['_GETANIVIDANCEWITHATWISTSTRINGREQUEST']._serialized_end=10469 + _globals['_GETANIVIDANCEWITHATWISTSTRINGRESPONSE']._serialized_start=10471 + _globals['_GETANIVIDANCEWITHATWISTSTRINGRESPONSE']._serialized_end=10565 + _globals['_DOUBLEALLTHENUMSREQUEST']._serialized_start=10567 + _globals['_DOUBLEALLTHENUMSREQUEST']._serialized_end=10645 + _globals['_DOUBLEALLTHENUMSRESPONSE']._serialized_start=10647 + _globals['_DOUBLEALLTHENUMSRESPONSE']._serialized_end=10689 + _globals['_ACCEPTLISTOFDURATIONSINSECONDSREQUEST']._serialized_start=10691 + _globals['_ACCEPTLISTOFDURATIONSINSECONDSREQUEST']._serialized_end=10782 + _globals['_ACCEPTLISTOFDURATIONSINSECONDSRESPONSE']._serialized_start=10784 + _globals['_ACCEPTLISTOFDURATIONSINSECONDSRESPONSE']._serialized_end=10840 + _globals['_RETURNDURATIONINSECONDSREQUEST']._serialized_start=10842 + _globals['_RETURNDURATIONINSECONDSREQUEST']._serialized_end=10910 + _globals['_RETURNDURATIONINSECONDSRESPONSE']._serialized_start=10912 + _globals['_RETURNDURATIONINSECONDSRESPONSE']._serialized_end=10980 + _globals['_RETURNLISTOFDURATIONSINSECONDSREQUEST']._serialized_start=10982 + _globals['_RETURNLISTOFDURATIONSINSECONDSREQUEST']._serialized_end=11085 + _globals['_RETURNLISTOFDURATIONSINSECONDSRESPONSE']._serialized_start=11087 + _globals['_RETURNLISTOFDURATIONSINSECONDSRESPONSE']._serialized_end=11163 + _globals['_CONFIGUREABCREQUEST']._serialized_start=11165 + _globals['_CONFIGUREABCREQUEST']._serialized_end=11222 + _globals['_CONFIGUREABCRESPONSE']._serialized_start=11224 + _globals['_CONFIGUREABCRESPONSE']._serialized_end=11262 + _globals['_CONFIGUREENUMSREQUEST']._serialized_start=11265 + _globals['_CONFIGUREENUMSREQUEST']._serialized_end=11534 + _globals['_CONFIGUREENUMSRESPONSE']._serialized_start=11536 + _globals['_CONFIGUREENUMSRESPONSE']._serialized_end=11576 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_start=11578 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_end=11659 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_start=11661 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_end=11746 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_start=11748 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXREQUEST']._serialized_end=11852 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_start=11854 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFEREXRESPONSE']._serialized_end=11916 + _globals['_FETCHWITHCUSTOMSIZEREQUEST']._serialized_start=11918 + _globals['_FETCHWITHCUSTOMSIZEREQUEST']._serialized_end=12038 + _globals['_FETCHWITHCUSTOMSIZERESPONSE']._serialized_start=12040 + _globals['_FETCHWITHCUSTOMSIZERESPONSE']._serialized_end=12108 + _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMEREQUEST']._serialized_start=12111 + _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMEREQUEST']._serialized_end=12302 + _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMERESPONSE']._serialized_start=12304 + _globals['_GETPARAMETERWITHOVERRIDDENGRPCNAMERESPONSE']._serialized_end=12394 + _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZEREQUEST']._serialized_start=12396 + _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZEREQUEST']._serialized_end=12492 + _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZERESPONSE']._serialized_start=12495 + _globals['_IVIDANCEWITHTWISTWITHMULTIPLEARRAYSANDONEBUFFERSIZERESPONSE']._serialized_end=12649 + _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XREQUEST']._serialized_start=12651 + _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XREQUEST']._serialized_end=12728 + _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XRESPONSE']._serialized_start=12730 + _globals['_FUNCTIONWITHOVERRIDDENGRPCNAME2XRESPONSE']._serialized_end=12788 + _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERREQUEST']._serialized_start=12791 + _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERREQUEST']._serialized_end=12960 + _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERRESPONSE']._serialized_start=12962 + _globals['_FUNCTIONWITH3DNUMPYARRAYOFNUMPYCOMPLEX128INPUTPARAMETERRESPONSE']._serialized_end=13043 + _globals['_STRINGVALUEDENUMNOENUMGENERATEDREQUEST']._serialized_start=13045 + _globals['_STRINGVALUEDENUMNOENUMGENERATEDREQUEST']._serialized_end=13144 + _globals['_STRINGVALUEDENUMNOENUMGENERATEDRESPONSE']._serialized_start=13146 + _globals['_STRINGVALUEDENUMNOENUMGENERATEDRESPONSE']._serialized_end=13203 + _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTREQUEST']._serialized_start=13205 + _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTREQUEST']._serialized_end=13285 + _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTRESPONSE']._serialized_start=13288 + _globals['_IVIDANCEWITHATWISTCALCULATEDSIZEOUTRESPONSE']._serialized_end=13430 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=13432 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=13534 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=13536 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=13596 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=13598 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=13677 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=13679 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=13762 + _globals['_CONTROL4022REQUEST']._serialized_start=13764 + _globals['_CONTROL4022REQUEST']._serialized_end=13830 + _globals['_CONTROL4022RESPONSE']._serialized_start=13832 + _globals['_CONTROL4022RESPONSE']._serialized_end=13869 + _globals['_ACCEPTVISESSIONARRAYREQUEST']._serialized_start=13871 + _globals['_ACCEPTVISESSIONARRAYREQUEST']._serialized_end=13970 + _globals['_ACCEPTVISESSIONARRAYRESPONSE']._serialized_start=13972 + _globals['_ACCEPTVISESSIONARRAYRESPONSE']._serialized_end=14018 + _globals['_ACCEPTVIUINT32ARRAYREQUEST']._serialized_start=14020 + _globals['_ACCEPTVIUINT32ARRAYREQUEST']._serialized_end=14107 + _globals['_ACCEPTVIUINT32ARRAYRESPONSE']._serialized_start=14109 + _globals['_ACCEPTVIUINT32ARRAYRESPONSE']._serialized_end=14154 + _globals['_BOOLARRAYINPUTFUNCTIONREQUEST']._serialized_start=14156 + _globals['_BOOLARRAYINPUTFUNCTIONREQUEST']._serialized_end=14269 + _globals['_BOOLARRAYINPUTFUNCTIONRESPONSE']._serialized_start=14271 + _globals['_BOOLARRAYINPUTFUNCTIONRESPONSE']._serialized_end=14319 + _globals['_CLOSEEXTCALREQUEST']._serialized_start=14321 + _globals['_CLOSEEXTCALREQUEST']._serialized_end=14393 + _globals['_CLOSEEXTCALRESPONSE']._serialized_start=14395 + _globals['_CLOSEEXTCALRESPONSE']._serialized_end=14432 + _globals['_COMMANDWITHRESERVEDPARAMREQUEST']._serialized_start=14434 + _globals['_COMMANDWITHRESERVEDPARAMREQUEST']._serialized_end=14503 + _globals['_COMMANDWITHRESERVEDPARAMRESPONSE']._serialized_start=14505 + _globals['_COMMANDWITHRESERVEDPARAMRESPONSE']._serialized_end=14555 + _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_start=14557 + _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_end=14647 + _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_start=14649 + _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_end=14698 + _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPREQUEST']._serialized_start=14700 + _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPREQUEST']._serialized_end=14807 + _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPRESPONSE']._serialized_start=14809 + _globals['_CUSTOMNESTEDSTRUCTROUNDTRIPRESPONSE']._serialized_end=14934 + _globals['_GETBITFIELDASENUMARRAYREQUEST']._serialized_start=14936 + _globals['_GETBITFIELDASENUMARRAYREQUEST']._serialized_end=14967 + _globals['_GETBITFIELDASENUMARRAYRESPONSE']._serialized_start=14969 + _globals['_GETBITFIELDASENUMARRAYRESPONSE']._serialized_end=15080 + _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPEREQUEST']._serialized_start=15082 + _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPEREQUEST']._serialized_end=15167 + _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPERESPONSE']._serialized_start=15170 + _globals['_GETANIVIDANCEWITHATWISTARRAYOFCUSTOMTYPERESPONSE']._serialized_end=15307 + _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYREQUEST']._serialized_start=15309 + _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYREQUEST']._serialized_end=15377 + _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYRESPONSE']._serialized_start=15379 + _globals['_GETANIVIDANCEWITHATWISTARRAYWITHINPUTARRAYRESPONSE']._serialized_end=15487 + _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYREQUEST']._serialized_start=15489 + _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYREQUEST']._serialized_end=15530 + _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYRESPONSE']._serialized_start=15532 + _globals['_GETANIVIDANCEWITHATWISTBYTEARRAYRESPONSE']._serialized_end=15630 + _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGREQUEST']._serialized_start=15632 + _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGREQUEST']._serialized_end=15679 + _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGRESPONSE']._serialized_start=15681 + _globals['_GETANIVIDANCEWITHATWISTSTRINGSTRLENBUGRESPONSE']._serialized_end=15786 + _globals['_GETARRAYSIZEFORCUSTOMCODEREQUEST']._serialized_start=15788 + _globals['_GETARRAYSIZEFORCUSTOMCODEREQUEST']._serialized_end=15858 + _globals['_GETARRAYSIZEFORCUSTOMCODERESPONSE']._serialized_start=15860 + _globals['_GETARRAYSIZEFORCUSTOMCODERESPONSE']._serialized_end=15929 + _globals['_GETARRAYVIUINT8WITHENUMREQUEST']._serialized_start=15931 + _globals['_GETARRAYVIUINT8WITHENUMREQUEST']._serialized_end=16018 + _globals['_GETARRAYVIUINT8WITHENUMRESPONSE']._serialized_start=16021 + _globals['_GETARRAYVIUINT8WITHENUMRESPONSE']._serialized_end=16160 + _globals['_GETVIUINT8REQUEST']._serialized_start=16162 + _globals['_GETVIUINT8REQUEST']._serialized_end=16217 + _globals['_GETVIUINT8RESPONSE']._serialized_start=16219 + _globals['_GETVIUINT8RESPONSE']._serialized_end=16279 + _globals['_GETVIINT32ARRAYREQUEST']._serialized_start=16281 + _globals['_GETVIINT32ARRAYREQUEST']._serialized_end=16360 + _globals['_GETVIINT32ARRAYRESPONSE']._serialized_start=16362 + _globals['_GETVIINT32ARRAYRESPONSE']._serialized_end=16424 + _globals['_GETVIUINT32ARRAYREQUEST']._serialized_start=16426 + _globals['_GETVIUINT32ARRAYREQUEST']._serialized_end=16506 + _globals['_GETVIUINT32ARRAYRESPONSE']._serialized_start=16508 + _globals['_GETVIUINT32ARRAYRESPONSE']._serialized_end=16573 + _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESREQUEST']._serialized_start=16576 + _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESREQUEST']._serialized_end=16722 + _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESRESPONSE']._serialized_start=16724 + _globals['_METHODUSINGENUMWITHGRPCNAMEVALUESRESPONSE']._serialized_end=16783 + _globals['_METHODWITHGETLASTERRORPARAMREQUEST']._serialized_start=16785 + _globals['_METHODWITHGETLASTERRORPARAMREQUEST']._serialized_end=16821 + _globals['_METHODWITHGETLASTERRORPARAMRESPONSE']._serialized_start=16823 + _globals['_METHODWITHGETLASTERRORPARAMRESPONSE']._serialized_end=16900 + _globals['_METHODWITHGRPCONLYPARAMREQUEST']._serialized_start=16902 + _globals['_METHODWITHGRPCONLYPARAMREQUEST']._serialized_end=16956 + _globals['_METHODWITHGRPCONLYPARAMRESPONSE']._serialized_start=16958 + _globals['_METHODWITHGRPCONLYPARAMRESPONSE']._serialized_end=17032 + _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSREQUEST']._serialized_start=17034 + _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSREQUEST']._serialized_end=17079 + _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSRESPONSE']._serialized_start=17082 + _globals['_METHODUSINGWHOLEANDFRACTIONALNUMBERSRESPONSE']._serialized_end=17323 + _globals['_METHODUSINGWHOLEMAPPEDNUMBERSREQUEST']._serialized_start=17325 + _globals['_METHODUSINGWHOLEMAPPEDNUMBERSREQUEST']._serialized_end=17363 + _globals['_METHODUSINGWHOLEMAPPEDNUMBERSRESPONSE']._serialized_start=17366 + _globals['_METHODUSINGWHOLEMAPPEDNUMBERSRESPONSE']._serialized_end=17515 + _globals['_METHODWITHGRPCFIELDNUMBERREQUEST']._serialized_start=17517 + _globals['_METHODWITHGRPCFIELDNUMBERREQUEST']._serialized_end=17576 + _globals['_METHODWITHGRPCFIELDNUMBERRESPONSE']._serialized_start=17578 + _globals['_METHODWITHGRPCFIELDNUMBERRESPONSE']._serialized_end=17629 + _globals['_METHODWITHPROTOONLYPARAMETERREQUEST']._serialized_start=17631 + _globals['_METHODWITHPROTOONLYPARAMETERREQUEST']._serialized_end=17693 + _globals['_METHODWITHPROTOONLYPARAMETERRESPONSE']._serialized_start=17695 + _globals['_METHODWITHPROTOONLYPARAMETERRESPONSE']._serialized_end=17749 + _globals['_READDATAWITHINOUTIVITWISTREQUEST']._serialized_start=17751 + _globals['_READDATAWITHINOUTIVITWISTREQUEST']._serialized_end=17785 + _globals['_READDATAWITHINOUTIVITWISTRESPONSE']._serialized_start=17787 + _globals['_READDATAWITHINOUTIVITWISTRESPONSE']._serialized_end=17873 + _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSREQUEST']._serialized_start=17875 + _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSREQUEST']._serialized_end=17921 + _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSRESPONSE']._serialized_start=17924 + _globals['_READDATAWITHMULTIPLEIVITWISTPARAMSETSRESPONSE']._serialized_end=18079 + _globals['_INITEXTCALREQUEST']._serialized_start=18081 + _globals['_INITEXTCALREQUEST']._serialized_end=18175 + _globals['_INITEXTCALRESPONSE']._serialized_start=18177 + _globals['_INITEXTCALRESPONSE']._serialized_end=18249 + _globals['_INITWITHVARARGSREQUEST']._serialized_start=18251 + _globals['_INITWITHVARARGSREQUEST']._serialized_end=18375 + _globals['_INITWITHVARARGSRESPONSE']._serialized_start=18377 + _globals['_INITWITHVARARGSRESPONSE']._serialized_end=18454 + _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALREQUEST']._serialized_start=18457 + _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALREQUEST']._serialized_end=18652 + _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALRESPONSE']._serialized_start=18654 + _globals['_MULTIPLEARRAYSSAMESIZEWITHOPTIONALRESPONSE']._serialized_end=18714 + _globals['_USEATWODIMENSIONPARAMETERREQUEST']._serialized_start=18716 + _globals['_USEATWODIMENSIONPARAMETERREQUEST']._serialized_end=18824 + _globals['_USEATWODIMENSIONPARAMETERRESPONSE']._serialized_start=18826 + _globals['_USEATWODIMENSIONPARAMETERRESPONSE']._serialized_end=18877 + _globals['_VIUINT8ARRAYINPUTFUNCTIONREQUEST']._serialized_start=18879 + _globals['_VIUINT8ARRAYINPUTFUNCTIONREQUEST']._serialized_end=18995 + _globals['_VIUINT8ARRAYINPUTFUNCTIONRESPONSE']._serialized_start=18997 + _globals['_VIUINT8ARRAYINPUTFUNCTIONRESPONSE']._serialized_end=19048 + _globals['_VIUINT8ARRAYOUTPUTFUNCTIONREQUEST']._serialized_start=19050 + _globals['_VIUINT8ARRAYOUTPUTFUNCTIONREQUEST']._serialized_end=19149 + _globals['_VIUINT8ARRAYOUTPUTFUNCTIONRESPONSE']._serialized_start=19151 + _globals['_VIUINT8ARRAYOUTPUTFUNCTIONRESPONSE']._serialized_end=19221 + _globals['_VIINT16ARRAYINPUTFUNCTIONREQUEST']._serialized_start=19223 + _globals['_VIINT16ARRAYINPUTFUNCTIONREQUEST']._serialized_end=19311 + _globals['_VIINT16ARRAYINPUTFUNCTIONRESPONSE']._serialized_start=19313 + _globals['_VIINT16ARRAYINPUTFUNCTIONRESPONSE']._serialized_end=19364 + _globals['_NIFAKE']._serialized_start=22486 + _globals['_NIFAKE']._serialized_end=34691 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nifake/nifake/nifake_pb2_grpc.py b/generated/nifake/nifake/nifake_pb2_grpc.py new file mode 100644 index 0000000000..6c68c06d4a --- /dev/null +++ b/generated/nifake/nifake/nifake_pb2_grpc.py @@ -0,0 +1,3432 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nifake_pb2 as nifake__pb2 + + +class NiFakeStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Abort = channel.unary_unary( + '/nifake_grpc.NiFake/Abort', + request_serializer=nifake__pb2.AbortRequest.SerializeToString, + response_deserializer=nifake__pb2.AbortResponse.FromString, + ) + self.BoolArrayOutputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/BoolArrayOutputFunction', + request_serializer=nifake__pb2.BoolArrayOutputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.BoolArrayOutputFunctionResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nifake_grpc.NiFake/Close', + request_serializer=nifake__pb2.CloseRequest.SerializeToString, + response_deserializer=nifake__pb2.CloseResponse.FromString, + ) + self.EnumArrayOutputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/EnumArrayOutputFunction', + request_serializer=nifake__pb2.EnumArrayOutputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.EnumArrayOutputFunctionResponse.FromString, + ) + self.EnumInputFunctionWithDefaults = channel.unary_unary( + '/nifake_grpc.NiFake/EnumInputFunctionWithDefaults', + request_serializer=nifake__pb2.EnumInputFunctionWithDefaultsRequest.SerializeToString, + response_deserializer=nifake__pb2.EnumInputFunctionWithDefaultsResponse.FromString, + ) + self.StringValuedEnumInputFunctionWithDefaults = channel.unary_unary( + '/nifake_grpc.NiFake/StringValuedEnumInputFunctionWithDefaults', + request_serializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsRequest.SerializeToString, + response_deserializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/nifake_grpc.NiFake/ErrorMessage', + request_serializer=nifake__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=nifake__pb2.ErrorMessageResponse.FromString, + ) + self.FetchWaveform = channel.unary_unary( + '/nifake_grpc.NiFake/FetchWaveform', + request_serializer=nifake__pb2.FetchWaveformRequest.SerializeToString, + response_deserializer=nifake__pb2.FetchWaveformResponse.FromString, + ) + self.GetABoolean = channel.unary_unary( + '/nifake_grpc.NiFake/GetABoolean', + request_serializer=nifake__pb2.GetABooleanRequest.SerializeToString, + response_deserializer=nifake__pb2.GetABooleanResponse.FromString, + ) + self.GetANumber = channel.unary_unary( + '/nifake_grpc.NiFake/GetANumber', + request_serializer=nifake__pb2.GetANumberRequest.SerializeToString, + response_deserializer=nifake__pb2.GetANumberResponse.FromString, + ) + self.GetAStringOfFixedMaximumSize = channel.unary_unary( + '/nifake_grpc.NiFake/GetAStringOfFixedMaximumSize', + request_serializer=nifake__pb2.GetAStringOfFixedMaximumSizeRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAStringOfFixedMaximumSizeResponse.FromString, + ) + self.GetAnIviDanceCharArray = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceCharArray', + request_serializer=nifake__pb2.GetAnIviDanceCharArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceCharArrayResponse.FromString, + ) + self.GetArrayUsingIviDance = channel.unary_unary( + '/nifake_grpc.NiFake/GetArrayUsingIviDance', + request_serializer=nifake__pb2.GetArrayUsingIviDanceRequest.SerializeToString, + response_deserializer=nifake__pb2.GetArrayUsingIviDanceResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nifake_grpc.NiFake/GetAttributeViBoolean', + request_serializer=nifake__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nifake_grpc.NiFake/GetAttributeViInt32', + request_serializer=nifake__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nifake__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/nifake_grpc.NiFake/GetAttributeViInt64', + request_serializer=nifake__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=nifake__pb2.GetAttributeViInt64Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nifake_grpc.NiFake/GetAttributeViReal64', + request_serializer=nifake__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nifake__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nifake_grpc.NiFake/GetAttributeViSession', + request_serializer=nifake__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAttributeViSessionResponse.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nifake_grpc.NiFake/GetAttributeViString', + request_serializer=nifake__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetCalDateAndTime = channel.unary_unary( + '/nifake_grpc.NiFake/GetCalDateAndTime', + request_serializer=nifake__pb2.GetCalDateAndTimeRequest.SerializeToString, + response_deserializer=nifake__pb2.GetCalDateAndTimeResponse.FromString, + ) + self.GetCalInterval = channel.unary_unary( + '/nifake_grpc.NiFake/GetCalInterval', + request_serializer=nifake__pb2.GetCalIntervalRequest.SerializeToString, + response_deserializer=nifake__pb2.GetCalIntervalResponse.FromString, + ) + self.GetEnumValue = channel.unary_unary( + '/nifake_grpc.NiFake/GetEnumValue', + request_serializer=nifake__pb2.GetEnumValueRequest.SerializeToString, + response_deserializer=nifake__pb2.GetEnumValueResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nifake_grpc.NiFake/GetError', + request_serializer=nifake__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nifake__pb2.GetErrorResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/nifake_grpc.NiFake/InitWithOptions', + request_serializer=nifake__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=nifake__pb2.InitWithOptionsResponse.FromString, + ) + self.MultipleArrayTypes = channel.unary_unary( + '/nifake_grpc.NiFake/MultipleArrayTypes', + request_serializer=nifake__pb2.MultipleArrayTypesRequest.SerializeToString, + response_deserializer=nifake__pb2.MultipleArrayTypesResponse.FromString, + ) + self.MultipleArraysSameSize = channel.unary_unary( + '/nifake_grpc.NiFake/MultipleArraysSameSize', + request_serializer=nifake__pb2.MultipleArraysSameSizeRequest.SerializeToString, + response_deserializer=nifake__pb2.MultipleArraysSameSizeResponse.FromString, + ) + self.MultipleArraysDifferentSize = channel.unary_unary( + '/nifake_grpc.NiFake/MultipleArraysDifferentSize', + request_serializer=nifake__pb2.MultipleArraysDifferentSizeRequest.SerializeToString, + response_deserializer=nifake__pb2.MultipleArraysDifferentSizeResponse.FromString, + ) + self.MixedIviDanceAndLenMechanism = channel.unary_unary( + '/nifake_grpc.NiFake/MixedIviDanceAndLenMechanism', + request_serializer=nifake__pb2.MixedIviDanceAndLenMechanismRequest.SerializeToString, + response_deserializer=nifake__pb2.MixedIviDanceAndLenMechanismResponse.FromString, + ) + self.OneInputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/OneInputFunction', + request_serializer=nifake__pb2.OneInputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.OneInputFunctionResponse.FromString, + ) + self.ParametersAreMultipleTypes = channel.unary_unary( + '/nifake_grpc.NiFake/ParametersAreMultipleTypes', + request_serializer=nifake__pb2.ParametersAreMultipleTypesRequest.SerializeToString, + response_deserializer=nifake__pb2.ParametersAreMultipleTypesResponse.FromString, + ) + self.PoorlyNamedSimpleFunction = channel.unary_unary( + '/nifake_grpc.NiFake/PoorlyNamedSimpleFunction', + request_serializer=nifake__pb2.PoorlyNamedSimpleFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.PoorlyNamedSimpleFunctionResponse.FromString, + ) + self.Read = channel.unary_unary( + '/nifake_grpc.NiFake/Read', + request_serializer=nifake__pb2.ReadRequest.SerializeToString, + response_deserializer=nifake__pb2.ReadResponse.FromString, + ) + self.ReadFromChannel = channel.unary_unary( + '/nifake_grpc.NiFake/ReadFromChannel', + request_serializer=nifake__pb2.ReadFromChannelRequest.SerializeToString, + response_deserializer=nifake__pb2.ReadFromChannelResponse.FromString, + ) + self.ReturnANumberAndAString = channel.unary_unary( + '/nifake_grpc.NiFake/ReturnANumberAndAString', + request_serializer=nifake__pb2.ReturnANumberAndAStringRequest.SerializeToString, + response_deserializer=nifake__pb2.ReturnANumberAndAStringResponse.FromString, + ) + self.ReturnMultipleTypes = channel.unary_unary( + '/nifake_grpc.NiFake/ReturnMultipleTypes', + request_serializer=nifake__pb2.ReturnMultipleTypesRequest.SerializeToString, + response_deserializer=nifake__pb2.ReturnMultipleTypesResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nifake_grpc.NiFake/SetAttributeViBoolean', + request_serializer=nifake__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nifake__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nifake_grpc.NiFake/SetAttributeViInt32', + request_serializer=nifake__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nifake__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/nifake_grpc.NiFake/SetAttributeViInt64', + request_serializer=nifake__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=nifake__pb2.SetAttributeViInt64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nifake_grpc.NiFake/SetAttributeViReal64', + request_serializer=nifake__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nifake__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nifake_grpc.NiFake/SetAttributeViString', + request_serializer=nifake__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nifake__pb2.SetAttributeViStringResponse.FromString, + ) + self.TwoInputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/TwoInputFunction', + request_serializer=nifake__pb2.TwoInputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.TwoInputFunctionResponse.FromString, + ) + self.Use64BitNumber = channel.unary_unary( + '/nifake_grpc.NiFake/Use64BitNumber', + request_serializer=nifake__pb2.Use64BitNumberRequest.SerializeToString, + response_deserializer=nifake__pb2.Use64BitNumberResponse.FromString, + ) + self.WriteWaveform = channel.unary_unary( + '/nifake_grpc.NiFake/WriteWaveform', + request_serializer=nifake__pb2.WriteWaveformRequest.SerializeToString, + response_deserializer=nifake__pb2.WriteWaveformResponse.FromString, + ) + self.WriteWaveformNumpyComplex128 = channel.unary_unary( + '/nifake_grpc.NiFake/WriteWaveformNumpyComplex128', + request_serializer=nifake__pb2.WriteWaveformNumpyComplex128Request.SerializeToString, + response_deserializer=nifake__pb2.WriteWaveformNumpyComplex128Response.FromString, + ) + self.WriteWaveformNumpyComplex64 = channel.unary_unary( + '/nifake_grpc.NiFake/WriteWaveformNumpyComplex64', + request_serializer=nifake__pb2.WriteWaveformNumpyComplex64Request.SerializeToString, + response_deserializer=nifake__pb2.WriteWaveformNumpyComplex64Response.FromString, + ) + self.WriteWaveformNumpyComplexInterleavedI16 = channel.unary_unary( + '/nifake_grpc.NiFake/WriteWaveformNumpyComplexInterleavedI16', + request_serializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Request.SerializeToString, + response_deserializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Response.FromString, + ) + self.SetCustomType = channel.unary_unary( + '/nifake_grpc.NiFake/SetCustomType', + request_serializer=nifake__pb2.SetCustomTypeRequest.SerializeToString, + response_deserializer=nifake__pb2.SetCustomTypeResponse.FromString, + ) + self.SetCustomTypeArray = channel.unary_unary( + '/nifake_grpc.NiFake/SetCustomTypeArray', + request_serializer=nifake__pb2.SetCustomTypeArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.SetCustomTypeArrayResponse.FromString, + ) + self.GetCustomType = channel.unary_unary( + '/nifake_grpc.NiFake/GetCustomType', + request_serializer=nifake__pb2.GetCustomTypeRequest.SerializeToString, + response_deserializer=nifake__pb2.GetCustomTypeResponse.FromString, + ) + self.GetCustomTypeArray = channel.unary_unary( + '/nifake_grpc.NiFake/GetCustomTypeArray', + request_serializer=nifake__pb2.GetCustomTypeArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetCustomTypeArrayResponse.FromString, + ) + self.GetAnIviDanceWithATwistArray = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArray', + request_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayResponse.FromString, + ) + self.GetAnIviDanceWithATwistString = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceWithATwistString', + request_serializer=nifake__pb2.GetAnIviDanceWithATwistStringRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringResponse.FromString, + ) + self.DoubleAllTheNums = channel.unary_unary( + '/nifake_grpc.NiFake/DoubleAllTheNums', + request_serializer=nifake__pb2.DoubleAllTheNumsRequest.SerializeToString, + response_deserializer=nifake__pb2.DoubleAllTheNumsResponse.FromString, + ) + self.AcceptListOfDurationsInSeconds = channel.unary_unary( + '/nifake_grpc.NiFake/AcceptListOfDurationsInSeconds', + request_serializer=nifake__pb2.AcceptListOfDurationsInSecondsRequest.SerializeToString, + response_deserializer=nifake__pb2.AcceptListOfDurationsInSecondsResponse.FromString, + ) + self.ReturnDurationInSeconds = channel.unary_unary( + '/nifake_grpc.NiFake/ReturnDurationInSeconds', + request_serializer=nifake__pb2.ReturnDurationInSecondsRequest.SerializeToString, + response_deserializer=nifake__pb2.ReturnDurationInSecondsResponse.FromString, + ) + self.ReturnListOfDurationsInSeconds = channel.unary_unary( + '/nifake_grpc.NiFake/ReturnListOfDurationsInSeconds', + request_serializer=nifake__pb2.ReturnListOfDurationsInSecondsRequest.SerializeToString, + response_deserializer=nifake__pb2.ReturnListOfDurationsInSecondsResponse.FromString, + ) + self.ConfigureAbc = channel.unary_unary( + '/nifake_grpc.NiFake/ConfigureAbc', + request_serializer=nifake__pb2.ConfigureAbcRequest.SerializeToString, + response_deserializer=nifake__pb2.ConfigureAbcResponse.FromString, + ) + self.ConfigureEnums = channel.unary_unary( + '/nifake_grpc.NiFake/ConfigureEnums', + request_serializer=nifake__pb2.ConfigureEnumsRequest.SerializeToString, + response_deserializer=nifake__pb2.ConfigureEnumsResponse.FromString, + ) + self.ExportAttributeConfigurationBufferEx = channel.unary_unary( + '/nifake_grpc.NiFake/ExportAttributeConfigurationBufferEx', + request_serializer=nifake__pb2.ExportAttributeConfigurationBufferExRequest.SerializeToString, + response_deserializer=nifake__pb2.ExportAttributeConfigurationBufferExResponse.FromString, + ) + self.ImportAttributeConfigurationBufferEx = channel.unary_unary( + '/nifake_grpc.NiFake/ImportAttributeConfigurationBufferEx', + request_serializer=nifake__pb2.ImportAttributeConfigurationBufferExRequest.SerializeToString, + response_deserializer=nifake__pb2.ImportAttributeConfigurationBufferExResponse.FromString, + ) + self.FetchWithCustomSize = channel.unary_unary( + '/nifake_grpc.NiFake/FetchWithCustomSize', + request_serializer=nifake__pb2.FetchWithCustomSizeRequest.SerializeToString, + response_deserializer=nifake__pb2.FetchWithCustomSizeResponse.FromString, + ) + self.GetParameterWithOverriddenGrpcName = channel.unary_unary( + '/nifake_grpc.NiFake/GetParameterWithOverriddenGrpcName', + request_serializer=nifake__pb2.GetParameterWithOverriddenGrpcNameRequest.SerializeToString, + response_deserializer=nifake__pb2.GetParameterWithOverriddenGrpcNameResponse.FromString, + ) + self.IviDanceWithTwistWithMultipleArraysAndOneBufferSize = channel.unary_unary( + '/nifake_grpc.NiFake/IviDanceWithTwistWithMultipleArraysAndOneBufferSize', + request_serializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest.SerializeToString, + response_deserializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse.FromString, + ) + self.FunctionWithOverriddenGrpcName2x = channel.unary_unary( + '/nifake_grpc.NiFake/FunctionWithOverriddenGrpcName2x', + request_serializer=nifake__pb2.FunctionWithOverriddenGrpcName2xRequest.SerializeToString, + response_deserializer=nifake__pb2.FunctionWithOverriddenGrpcName2xResponse.FromString, + ) + self.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter = channel.unary_unary( + '/nifake_grpc.NiFake/FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter', + request_serializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest.SerializeToString, + response_deserializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse.FromString, + ) + self.StringValuedEnumNoEnumGenerated = channel.unary_unary( + '/nifake_grpc.NiFake/StringValuedEnumNoEnumGenerated', + request_serializer=nifake__pb2.StringValuedEnumNoEnumGeneratedRequest.SerializeToString, + response_deserializer=nifake__pb2.StringValuedEnumNoEnumGeneratedResponse.FromString, + ) + self.IviDanceWithATwistCalculatedSizeOut = channel.unary_unary( + '/nifake_grpc.NiFake/IviDanceWithATwistCalculatedSizeOut', + request_serializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutRequest.SerializeToString, + response_deserializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutResponse.FromString, + ) + self.ImportAttributeConfigurationBuffer = channel.unary_unary( + '/nifake_grpc.NiFake/ImportAttributeConfigurationBuffer', + request_serializer=nifake__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nifake__pb2.ImportAttributeConfigurationBufferResponse.FromString, + ) + self.ExportAttributeConfigurationBuffer = channel.unary_unary( + '/nifake_grpc.NiFake/ExportAttributeConfigurationBuffer', + request_serializer=nifake__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nifake__pb2.ExportAttributeConfigurationBufferResponse.FromString, + ) + self.Control4022 = channel.unary_unary( + '/nifake_grpc.NiFake/Control4022', + request_serializer=nifake__pb2.Control4022Request.SerializeToString, + response_deserializer=nifake__pb2.Control4022Response.FromString, + ) + self.AcceptViSessionArray = channel.unary_unary( + '/nifake_grpc.NiFake/AcceptViSessionArray', + request_serializer=nifake__pb2.AcceptViSessionArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.AcceptViSessionArrayResponse.FromString, + ) + self.AcceptViUInt32Array = channel.unary_unary( + '/nifake_grpc.NiFake/AcceptViUInt32Array', + request_serializer=nifake__pb2.AcceptViUInt32ArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.AcceptViUInt32ArrayResponse.FromString, + ) + self.BoolArrayInputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/BoolArrayInputFunction', + request_serializer=nifake__pb2.BoolArrayInputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.BoolArrayInputFunctionResponse.FromString, + ) + self.CloseExtCal = channel.unary_unary( + '/nifake_grpc.NiFake/CloseExtCal', + request_serializer=nifake__pb2.CloseExtCalRequest.SerializeToString, + response_deserializer=nifake__pb2.CloseExtCalResponse.FromString, + ) + self.CommandWithReservedParam = channel.unary_unary( + '/nifake_grpc.NiFake/CommandWithReservedParam', + request_serializer=nifake__pb2.CommandWithReservedParamRequest.SerializeToString, + response_deserializer=nifake__pb2.CommandWithReservedParamResponse.FromString, + ) + self.CreateConfigurationList = channel.unary_unary( + '/nifake_grpc.NiFake/CreateConfigurationList', + request_serializer=nifake__pb2.CreateConfigurationListRequest.SerializeToString, + response_deserializer=nifake__pb2.CreateConfigurationListResponse.FromString, + ) + self.CustomNestedStructRoundtrip = channel.unary_unary( + '/nifake_grpc.NiFake/CustomNestedStructRoundtrip', + request_serializer=nifake__pb2.CustomNestedStructRoundtripRequest.SerializeToString, + response_deserializer=nifake__pb2.CustomNestedStructRoundtripResponse.FromString, + ) + self.GetBitfieldAsEnumArray = channel.unary_unary( + '/nifake_grpc.NiFake/GetBitfieldAsEnumArray', + request_serializer=nifake__pb2.GetBitfieldAsEnumArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetBitfieldAsEnumArrayResponse.FromString, + ) + self.GetAnIviDanceWithATwistArrayOfCustomType = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayOfCustomType', + request_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeResponse.FromString, + ) + self.GetAnIviDanceWithATwistArrayWithInputArray = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayWithInputArray', + request_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayResponse.FromString, + ) + self.GetAnIviDanceWithATwistByteArray = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceWithATwistByteArray', + request_serializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayResponse.FromString, + ) + self.GetAnIviDanceWithATwistStringStrlenBug = channel.unary_unary( + '/nifake_grpc.NiFake/GetAnIviDanceWithATwistStringStrlenBug', + request_serializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugRequest.SerializeToString, + response_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugResponse.FromString, + ) + self.GetArraySizeForCustomCode = channel.unary_unary( + '/nifake_grpc.NiFake/GetArraySizeForCustomCode', + request_serializer=nifake__pb2.GetArraySizeForCustomCodeRequest.SerializeToString, + response_deserializer=nifake__pb2.GetArraySizeForCustomCodeResponse.FromString, + ) + self.GetArrayViUInt8WithEnum = channel.unary_unary( + '/nifake_grpc.NiFake/GetArrayViUInt8WithEnum', + request_serializer=nifake__pb2.GetArrayViUInt8WithEnumRequest.SerializeToString, + response_deserializer=nifake__pb2.GetArrayViUInt8WithEnumResponse.FromString, + ) + self.GetViUInt8 = channel.unary_unary( + '/nifake_grpc.NiFake/GetViUInt8', + request_serializer=nifake__pb2.GetViUInt8Request.SerializeToString, + response_deserializer=nifake__pb2.GetViUInt8Response.FromString, + ) + self.GetViInt32Array = channel.unary_unary( + '/nifake_grpc.NiFake/GetViInt32Array', + request_serializer=nifake__pb2.GetViInt32ArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetViInt32ArrayResponse.FromString, + ) + self.GetViUInt32Array = channel.unary_unary( + '/nifake_grpc.NiFake/GetViUInt32Array', + request_serializer=nifake__pb2.GetViUInt32ArrayRequest.SerializeToString, + response_deserializer=nifake__pb2.GetViUInt32ArrayResponse.FromString, + ) + self.MethodUsingEnumWithGrpcNameValues = channel.unary_unary( + '/nifake_grpc.NiFake/MethodUsingEnumWithGrpcNameValues', + request_serializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesResponse.FromString, + ) + self.MethodWithGetLastErrorParam = channel.unary_unary( + '/nifake_grpc.NiFake/MethodWithGetLastErrorParam', + request_serializer=nifake__pb2.MethodWithGetLastErrorParamRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodWithGetLastErrorParamResponse.FromString, + ) + self.MethodWithGrpcOnlyParam = channel.unary_unary( + '/nifake_grpc.NiFake/MethodWithGrpcOnlyParam', + request_serializer=nifake__pb2.MethodWithGrpcOnlyParamRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodWithGrpcOnlyParamResponse.FromString, + ) + self.MethodUsingWholeAndFractionalNumbers = channel.unary_unary( + '/nifake_grpc.NiFake/MethodUsingWholeAndFractionalNumbers', + request_serializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersResponse.FromString, + ) + self.MethodUsingWholeMappedNumbers = channel.unary_unary( + '/nifake_grpc.NiFake/MethodUsingWholeMappedNumbers', + request_serializer=nifake__pb2.MethodUsingWholeMappedNumbersRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodUsingWholeMappedNumbersResponse.FromString, + ) + self.MethodWithGrpcFieldNumber = channel.unary_unary( + '/nifake_grpc.NiFake/MethodWithGrpcFieldNumber', + request_serializer=nifake__pb2.MethodWithGrpcFieldNumberRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodWithGrpcFieldNumberResponse.FromString, + ) + self.MethodWithProtoOnlyParameter = channel.unary_unary( + '/nifake_grpc.NiFake/MethodWithProtoOnlyParameter', + request_serializer=nifake__pb2.MethodWithProtoOnlyParameterRequest.SerializeToString, + response_deserializer=nifake__pb2.MethodWithProtoOnlyParameterResponse.FromString, + ) + self.ReadDataWithInOutIviTwist = channel.unary_unary( + '/nifake_grpc.NiFake/ReadDataWithInOutIviTwist', + request_serializer=nifake__pb2.ReadDataWithInOutIviTwistRequest.SerializeToString, + response_deserializer=nifake__pb2.ReadDataWithInOutIviTwistResponse.FromString, + ) + self.ReadDataWithMultipleIviTwistParamSets = channel.unary_unary( + '/nifake_grpc.NiFake/ReadDataWithMultipleIviTwistParamSets', + request_serializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsRequest.SerializeToString, + response_deserializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsResponse.FromString, + ) + self.InitExtCal = channel.unary_unary( + '/nifake_grpc.NiFake/InitExtCal', + request_serializer=nifake__pb2.InitExtCalRequest.SerializeToString, + response_deserializer=nifake__pb2.InitExtCalResponse.FromString, + ) + self.InitWithVarArgs = channel.unary_unary( + '/nifake_grpc.NiFake/InitWithVarArgs', + request_serializer=nifake__pb2.InitWithVarArgsRequest.SerializeToString, + response_deserializer=nifake__pb2.InitWithVarArgsResponse.FromString, + ) + self.MultipleArraysSameSizeWithOptional = channel.unary_unary( + '/nifake_grpc.NiFake/MultipleArraysSameSizeWithOptional', + request_serializer=nifake__pb2.MultipleArraysSameSizeWithOptionalRequest.SerializeToString, + response_deserializer=nifake__pb2.MultipleArraysSameSizeWithOptionalResponse.FromString, + ) + self.UseATwoDimensionParameter = channel.unary_unary( + '/nifake_grpc.NiFake/UseATwoDimensionParameter', + request_serializer=nifake__pb2.UseATwoDimensionParameterRequest.SerializeToString, + response_deserializer=nifake__pb2.UseATwoDimensionParameterResponse.FromString, + ) + self.ViUInt8ArrayInputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/ViUInt8ArrayInputFunction', + request_serializer=nifake__pb2.ViUInt8ArrayInputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.ViUInt8ArrayInputFunctionResponse.FromString, + ) + self.ViUInt8ArrayOutputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/ViUInt8ArrayOutputFunction', + request_serializer=nifake__pb2.ViUInt8ArrayOutputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.ViUInt8ArrayOutputFunctionResponse.FromString, + ) + self.ViInt16ArrayInputFunction = channel.unary_unary( + '/nifake_grpc.NiFake/ViInt16ArrayInputFunction', + request_serializer=nifake__pb2.ViInt16ArrayInputFunctionRequest.SerializeToString, + response_deserializer=nifake__pb2.ViInt16ArrayInputFunctionResponse.FromString, + ) + + +class NiFakeServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BoolArrayOutputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnumArrayOutputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnumInputFunctionWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StringValuedEnumInputFunctionWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetABoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetANumber(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAStringOfFixedMaximumSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceCharArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetArrayUsingIviDance(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCalDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCalInterval(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetEnumValue(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultipleArrayTypes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultipleArraysSameSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultipleArraysDifferentSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MixedIviDanceAndLenMechanism(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def OneInputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ParametersAreMultipleTypes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PoorlyNamedSimpleFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Read(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadFromChannel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReturnANumberAndAString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReturnMultipleTypes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def TwoInputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Use64BitNumber(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteWaveformNumpyComplex128(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteWaveformNumpyComplex64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteWaveformNumpyComplexInterleavedI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetCustomType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetCustomTypeArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCustomType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCustomTypeArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceWithATwistArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceWithATwistString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DoubleAllTheNums(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AcceptListOfDurationsInSeconds(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReturnDurationInSeconds(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReturnListOfDurationsInSeconds(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureAbc(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureEnums(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationBufferEx(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationBufferEx(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchWithCustomSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetParameterWithOverriddenGrpcName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IviDanceWithTwistWithMultipleArraysAndOneBufferSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FunctionWithOverriddenGrpcName2x(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StringValuedEnumNoEnumGenerated(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IviDanceWithATwistCalculatedSizeOut(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Control4022(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AcceptViSessionArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AcceptViUInt32Array(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def BoolArrayInputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CloseExtCal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CommandWithReservedParam(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateConfigurationList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CustomNestedStructRoundtrip(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetBitfieldAsEnumArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceWithATwistArrayOfCustomType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceWithATwistArrayWithInputArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceWithATwistByteArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAnIviDanceWithATwistStringStrlenBug(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetArraySizeForCustomCode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetArrayViUInt8WithEnum(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetViUInt8(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetViInt32Array(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetViUInt32Array(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodUsingEnumWithGrpcNameValues(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodWithGetLastErrorParam(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodWithGrpcOnlyParam(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodUsingWholeAndFractionalNumbers(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodUsingWholeMappedNumbers(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodWithGrpcFieldNumber(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MethodWithProtoOnlyParameter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadDataWithInOutIviTwist(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadDataWithMultipleIviTwistParamSets(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitExtCal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithVarArgs(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MultipleArraysSameSizeWithOptional(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UseATwoDimensionParameter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ViUInt8ArrayInputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ViUInt8ArrayOutputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ViInt16ArrayInputFunction(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiFakeServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=nifake__pb2.AbortRequest.FromString, + response_serializer=nifake__pb2.AbortResponse.SerializeToString, + ), + 'BoolArrayOutputFunction': grpc.unary_unary_rpc_method_handler( + servicer.BoolArrayOutputFunction, + request_deserializer=nifake__pb2.BoolArrayOutputFunctionRequest.FromString, + response_serializer=nifake__pb2.BoolArrayOutputFunctionResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nifake__pb2.CloseRequest.FromString, + response_serializer=nifake__pb2.CloseResponse.SerializeToString, + ), + 'EnumArrayOutputFunction': grpc.unary_unary_rpc_method_handler( + servicer.EnumArrayOutputFunction, + request_deserializer=nifake__pb2.EnumArrayOutputFunctionRequest.FromString, + response_serializer=nifake__pb2.EnumArrayOutputFunctionResponse.SerializeToString, + ), + 'EnumInputFunctionWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.EnumInputFunctionWithDefaults, + request_deserializer=nifake__pb2.EnumInputFunctionWithDefaultsRequest.FromString, + response_serializer=nifake__pb2.EnumInputFunctionWithDefaultsResponse.SerializeToString, + ), + 'StringValuedEnumInputFunctionWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.StringValuedEnumInputFunctionWithDefaults, + request_deserializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsRequest.FromString, + response_serializer=nifake__pb2.StringValuedEnumInputFunctionWithDefaultsResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=nifake__pb2.ErrorMessageRequest.FromString, + response_serializer=nifake__pb2.ErrorMessageResponse.SerializeToString, + ), + 'FetchWaveform': grpc.unary_unary_rpc_method_handler( + servicer.FetchWaveform, + request_deserializer=nifake__pb2.FetchWaveformRequest.FromString, + response_serializer=nifake__pb2.FetchWaveformResponse.SerializeToString, + ), + 'GetABoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetABoolean, + request_deserializer=nifake__pb2.GetABooleanRequest.FromString, + response_serializer=nifake__pb2.GetABooleanResponse.SerializeToString, + ), + 'GetANumber': grpc.unary_unary_rpc_method_handler( + servicer.GetANumber, + request_deserializer=nifake__pb2.GetANumberRequest.FromString, + response_serializer=nifake__pb2.GetANumberResponse.SerializeToString, + ), + 'GetAStringOfFixedMaximumSize': grpc.unary_unary_rpc_method_handler( + servicer.GetAStringOfFixedMaximumSize, + request_deserializer=nifake__pb2.GetAStringOfFixedMaximumSizeRequest.FromString, + response_serializer=nifake__pb2.GetAStringOfFixedMaximumSizeResponse.SerializeToString, + ), + 'GetAnIviDanceCharArray': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceCharArray, + request_deserializer=nifake__pb2.GetAnIviDanceCharArrayRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceCharArrayResponse.SerializeToString, + ), + 'GetArrayUsingIviDance': grpc.unary_unary_rpc_method_handler( + servicer.GetArrayUsingIviDance, + request_deserializer=nifake__pb2.GetArrayUsingIviDanceRequest.FromString, + response_serializer=nifake__pb2.GetArrayUsingIviDanceResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nifake__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nifake__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nifake__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nifake__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=nifake__pb2.GetAttributeViInt64Request.FromString, + response_serializer=nifake__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nifake__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nifake__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nifake__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nifake__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nifake__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nifake__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetCalDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetCalDateAndTime, + request_deserializer=nifake__pb2.GetCalDateAndTimeRequest.FromString, + response_serializer=nifake__pb2.GetCalDateAndTimeResponse.SerializeToString, + ), + 'GetCalInterval': grpc.unary_unary_rpc_method_handler( + servicer.GetCalInterval, + request_deserializer=nifake__pb2.GetCalIntervalRequest.FromString, + response_serializer=nifake__pb2.GetCalIntervalResponse.SerializeToString, + ), + 'GetEnumValue': grpc.unary_unary_rpc_method_handler( + servicer.GetEnumValue, + request_deserializer=nifake__pb2.GetEnumValueRequest.FromString, + response_serializer=nifake__pb2.GetEnumValueResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nifake__pb2.GetErrorRequest.FromString, + response_serializer=nifake__pb2.GetErrorResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=nifake__pb2.InitWithOptionsRequest.FromString, + response_serializer=nifake__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'MultipleArrayTypes': grpc.unary_unary_rpc_method_handler( + servicer.MultipleArrayTypes, + request_deserializer=nifake__pb2.MultipleArrayTypesRequest.FromString, + response_serializer=nifake__pb2.MultipleArrayTypesResponse.SerializeToString, + ), + 'MultipleArraysSameSize': grpc.unary_unary_rpc_method_handler( + servicer.MultipleArraysSameSize, + request_deserializer=nifake__pb2.MultipleArraysSameSizeRequest.FromString, + response_serializer=nifake__pb2.MultipleArraysSameSizeResponse.SerializeToString, + ), + 'MultipleArraysDifferentSize': grpc.unary_unary_rpc_method_handler( + servicer.MultipleArraysDifferentSize, + request_deserializer=nifake__pb2.MultipleArraysDifferentSizeRequest.FromString, + response_serializer=nifake__pb2.MultipleArraysDifferentSizeResponse.SerializeToString, + ), + 'MixedIviDanceAndLenMechanism': grpc.unary_unary_rpc_method_handler( + servicer.MixedIviDanceAndLenMechanism, + request_deserializer=nifake__pb2.MixedIviDanceAndLenMechanismRequest.FromString, + response_serializer=nifake__pb2.MixedIviDanceAndLenMechanismResponse.SerializeToString, + ), + 'OneInputFunction': grpc.unary_unary_rpc_method_handler( + servicer.OneInputFunction, + request_deserializer=nifake__pb2.OneInputFunctionRequest.FromString, + response_serializer=nifake__pb2.OneInputFunctionResponse.SerializeToString, + ), + 'ParametersAreMultipleTypes': grpc.unary_unary_rpc_method_handler( + servicer.ParametersAreMultipleTypes, + request_deserializer=nifake__pb2.ParametersAreMultipleTypesRequest.FromString, + response_serializer=nifake__pb2.ParametersAreMultipleTypesResponse.SerializeToString, + ), + 'PoorlyNamedSimpleFunction': grpc.unary_unary_rpc_method_handler( + servicer.PoorlyNamedSimpleFunction, + request_deserializer=nifake__pb2.PoorlyNamedSimpleFunctionRequest.FromString, + response_serializer=nifake__pb2.PoorlyNamedSimpleFunctionResponse.SerializeToString, + ), + 'Read': grpc.unary_unary_rpc_method_handler( + servicer.Read, + request_deserializer=nifake__pb2.ReadRequest.FromString, + response_serializer=nifake__pb2.ReadResponse.SerializeToString, + ), + 'ReadFromChannel': grpc.unary_unary_rpc_method_handler( + servicer.ReadFromChannel, + request_deserializer=nifake__pb2.ReadFromChannelRequest.FromString, + response_serializer=nifake__pb2.ReadFromChannelResponse.SerializeToString, + ), + 'ReturnANumberAndAString': grpc.unary_unary_rpc_method_handler( + servicer.ReturnANumberAndAString, + request_deserializer=nifake__pb2.ReturnANumberAndAStringRequest.FromString, + response_serializer=nifake__pb2.ReturnANumberAndAStringResponse.SerializeToString, + ), + 'ReturnMultipleTypes': grpc.unary_unary_rpc_method_handler( + servicer.ReturnMultipleTypes, + request_deserializer=nifake__pb2.ReturnMultipleTypesRequest.FromString, + response_serializer=nifake__pb2.ReturnMultipleTypesResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nifake__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nifake__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nifake__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nifake__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=nifake__pb2.SetAttributeViInt64Request.FromString, + response_serializer=nifake__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nifake__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nifake__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nifake__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nifake__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'TwoInputFunction': grpc.unary_unary_rpc_method_handler( + servicer.TwoInputFunction, + request_deserializer=nifake__pb2.TwoInputFunctionRequest.FromString, + response_serializer=nifake__pb2.TwoInputFunctionResponse.SerializeToString, + ), + 'Use64BitNumber': grpc.unary_unary_rpc_method_handler( + servicer.Use64BitNumber, + request_deserializer=nifake__pb2.Use64BitNumberRequest.FromString, + response_serializer=nifake__pb2.Use64BitNumberResponse.SerializeToString, + ), + 'WriteWaveform': grpc.unary_unary_rpc_method_handler( + servicer.WriteWaveform, + request_deserializer=nifake__pb2.WriteWaveformRequest.FromString, + response_serializer=nifake__pb2.WriteWaveformResponse.SerializeToString, + ), + 'WriteWaveformNumpyComplex128': grpc.unary_unary_rpc_method_handler( + servicer.WriteWaveformNumpyComplex128, + request_deserializer=nifake__pb2.WriteWaveformNumpyComplex128Request.FromString, + response_serializer=nifake__pb2.WriteWaveformNumpyComplex128Response.SerializeToString, + ), + 'WriteWaveformNumpyComplex64': grpc.unary_unary_rpc_method_handler( + servicer.WriteWaveformNumpyComplex64, + request_deserializer=nifake__pb2.WriteWaveformNumpyComplex64Request.FromString, + response_serializer=nifake__pb2.WriteWaveformNumpyComplex64Response.SerializeToString, + ), + 'WriteWaveformNumpyComplexInterleavedI16': grpc.unary_unary_rpc_method_handler( + servicer.WriteWaveformNumpyComplexInterleavedI16, + request_deserializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Request.FromString, + response_serializer=nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Response.SerializeToString, + ), + 'SetCustomType': grpc.unary_unary_rpc_method_handler( + servicer.SetCustomType, + request_deserializer=nifake__pb2.SetCustomTypeRequest.FromString, + response_serializer=nifake__pb2.SetCustomTypeResponse.SerializeToString, + ), + 'SetCustomTypeArray': grpc.unary_unary_rpc_method_handler( + servicer.SetCustomTypeArray, + request_deserializer=nifake__pb2.SetCustomTypeArrayRequest.FromString, + response_serializer=nifake__pb2.SetCustomTypeArrayResponse.SerializeToString, + ), + 'GetCustomType': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomType, + request_deserializer=nifake__pb2.GetCustomTypeRequest.FromString, + response_serializer=nifake__pb2.GetCustomTypeResponse.SerializeToString, + ), + 'GetCustomTypeArray': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomTypeArray, + request_deserializer=nifake__pb2.GetCustomTypeArrayRequest.FromString, + response_serializer=nifake__pb2.GetCustomTypeArrayResponse.SerializeToString, + ), + 'GetAnIviDanceWithATwistArray': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceWithATwistArray, + request_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayResponse.SerializeToString, + ), + 'GetAnIviDanceWithATwistString': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceWithATwistString, + request_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceWithATwistStringResponse.SerializeToString, + ), + 'DoubleAllTheNums': grpc.unary_unary_rpc_method_handler( + servicer.DoubleAllTheNums, + request_deserializer=nifake__pb2.DoubleAllTheNumsRequest.FromString, + response_serializer=nifake__pb2.DoubleAllTheNumsResponse.SerializeToString, + ), + 'AcceptListOfDurationsInSeconds': grpc.unary_unary_rpc_method_handler( + servicer.AcceptListOfDurationsInSeconds, + request_deserializer=nifake__pb2.AcceptListOfDurationsInSecondsRequest.FromString, + response_serializer=nifake__pb2.AcceptListOfDurationsInSecondsResponse.SerializeToString, + ), + 'ReturnDurationInSeconds': grpc.unary_unary_rpc_method_handler( + servicer.ReturnDurationInSeconds, + request_deserializer=nifake__pb2.ReturnDurationInSecondsRequest.FromString, + response_serializer=nifake__pb2.ReturnDurationInSecondsResponse.SerializeToString, + ), + 'ReturnListOfDurationsInSeconds': grpc.unary_unary_rpc_method_handler( + servicer.ReturnListOfDurationsInSeconds, + request_deserializer=nifake__pb2.ReturnListOfDurationsInSecondsRequest.FromString, + response_serializer=nifake__pb2.ReturnListOfDurationsInSecondsResponse.SerializeToString, + ), + 'ConfigureAbc': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureAbc, + request_deserializer=nifake__pb2.ConfigureAbcRequest.FromString, + response_serializer=nifake__pb2.ConfigureAbcResponse.SerializeToString, + ), + 'ConfigureEnums': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureEnums, + request_deserializer=nifake__pb2.ConfigureEnumsRequest.FromString, + response_serializer=nifake__pb2.ConfigureEnumsResponse.SerializeToString, + ), + 'ExportAttributeConfigurationBufferEx': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationBufferEx, + request_deserializer=nifake__pb2.ExportAttributeConfigurationBufferExRequest.FromString, + response_serializer=nifake__pb2.ExportAttributeConfigurationBufferExResponse.SerializeToString, + ), + 'ImportAttributeConfigurationBufferEx': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationBufferEx, + request_deserializer=nifake__pb2.ImportAttributeConfigurationBufferExRequest.FromString, + response_serializer=nifake__pb2.ImportAttributeConfigurationBufferExResponse.SerializeToString, + ), + 'FetchWithCustomSize': grpc.unary_unary_rpc_method_handler( + servicer.FetchWithCustomSize, + request_deserializer=nifake__pb2.FetchWithCustomSizeRequest.FromString, + response_serializer=nifake__pb2.FetchWithCustomSizeResponse.SerializeToString, + ), + 'GetParameterWithOverriddenGrpcName': grpc.unary_unary_rpc_method_handler( + servicer.GetParameterWithOverriddenGrpcName, + request_deserializer=nifake__pb2.GetParameterWithOverriddenGrpcNameRequest.FromString, + response_serializer=nifake__pb2.GetParameterWithOverriddenGrpcNameResponse.SerializeToString, + ), + 'IviDanceWithTwistWithMultipleArraysAndOneBufferSize': grpc.unary_unary_rpc_method_handler( + servicer.IviDanceWithTwistWithMultipleArraysAndOneBufferSize, + request_deserializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest.FromString, + response_serializer=nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse.SerializeToString, + ), + 'FunctionWithOverriddenGrpcName2x': grpc.unary_unary_rpc_method_handler( + servicer.FunctionWithOverriddenGrpcName2x, + request_deserializer=nifake__pb2.FunctionWithOverriddenGrpcName2xRequest.FromString, + response_serializer=nifake__pb2.FunctionWithOverriddenGrpcName2xResponse.SerializeToString, + ), + 'FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter': grpc.unary_unary_rpc_method_handler( + servicer.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter, + request_deserializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest.FromString, + response_serializer=nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse.SerializeToString, + ), + 'StringValuedEnumNoEnumGenerated': grpc.unary_unary_rpc_method_handler( + servicer.StringValuedEnumNoEnumGenerated, + request_deserializer=nifake__pb2.StringValuedEnumNoEnumGeneratedRequest.FromString, + response_serializer=nifake__pb2.StringValuedEnumNoEnumGeneratedResponse.SerializeToString, + ), + 'IviDanceWithATwistCalculatedSizeOut': grpc.unary_unary_rpc_method_handler( + servicer.IviDanceWithATwistCalculatedSizeOut, + request_deserializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutRequest.FromString, + response_serializer=nifake__pb2.IviDanceWithATwistCalculatedSizeOutResponse.SerializeToString, + ), + 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationBuffer, + request_deserializer=nifake__pb2.ImportAttributeConfigurationBufferRequest.FromString, + response_serializer=nifake__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationBuffer, + request_deserializer=nifake__pb2.ExportAttributeConfigurationBufferRequest.FromString, + response_serializer=nifake__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'Control4022': grpc.unary_unary_rpc_method_handler( + servicer.Control4022, + request_deserializer=nifake__pb2.Control4022Request.FromString, + response_serializer=nifake__pb2.Control4022Response.SerializeToString, + ), + 'AcceptViSessionArray': grpc.unary_unary_rpc_method_handler( + servicer.AcceptViSessionArray, + request_deserializer=nifake__pb2.AcceptViSessionArrayRequest.FromString, + response_serializer=nifake__pb2.AcceptViSessionArrayResponse.SerializeToString, + ), + 'AcceptViUInt32Array': grpc.unary_unary_rpc_method_handler( + servicer.AcceptViUInt32Array, + request_deserializer=nifake__pb2.AcceptViUInt32ArrayRequest.FromString, + response_serializer=nifake__pb2.AcceptViUInt32ArrayResponse.SerializeToString, + ), + 'BoolArrayInputFunction': grpc.unary_unary_rpc_method_handler( + servicer.BoolArrayInputFunction, + request_deserializer=nifake__pb2.BoolArrayInputFunctionRequest.FromString, + response_serializer=nifake__pb2.BoolArrayInputFunctionResponse.SerializeToString, + ), + 'CloseExtCal': grpc.unary_unary_rpc_method_handler( + servicer.CloseExtCal, + request_deserializer=nifake__pb2.CloseExtCalRequest.FromString, + response_serializer=nifake__pb2.CloseExtCalResponse.SerializeToString, + ), + 'CommandWithReservedParam': grpc.unary_unary_rpc_method_handler( + servicer.CommandWithReservedParam, + request_deserializer=nifake__pb2.CommandWithReservedParamRequest.FromString, + response_serializer=nifake__pb2.CommandWithReservedParamResponse.SerializeToString, + ), + 'CreateConfigurationList': grpc.unary_unary_rpc_method_handler( + servicer.CreateConfigurationList, + request_deserializer=nifake__pb2.CreateConfigurationListRequest.FromString, + response_serializer=nifake__pb2.CreateConfigurationListResponse.SerializeToString, + ), + 'CustomNestedStructRoundtrip': grpc.unary_unary_rpc_method_handler( + servicer.CustomNestedStructRoundtrip, + request_deserializer=nifake__pb2.CustomNestedStructRoundtripRequest.FromString, + response_serializer=nifake__pb2.CustomNestedStructRoundtripResponse.SerializeToString, + ), + 'GetBitfieldAsEnumArray': grpc.unary_unary_rpc_method_handler( + servicer.GetBitfieldAsEnumArray, + request_deserializer=nifake__pb2.GetBitfieldAsEnumArrayRequest.FromString, + response_serializer=nifake__pb2.GetBitfieldAsEnumArrayResponse.SerializeToString, + ), + 'GetAnIviDanceWithATwistArrayOfCustomType': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceWithATwistArrayOfCustomType, + request_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeResponse.SerializeToString, + ), + 'GetAnIviDanceWithATwistArrayWithInputArray': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceWithATwistArrayWithInputArray, + request_deserializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayResponse.SerializeToString, + ), + 'GetAnIviDanceWithATwistByteArray': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceWithATwistByteArray, + request_deserializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceWithATwistByteArrayResponse.SerializeToString, + ), + 'GetAnIviDanceWithATwistStringStrlenBug': grpc.unary_unary_rpc_method_handler( + servicer.GetAnIviDanceWithATwistStringStrlenBug, + request_deserializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugRequest.FromString, + response_serializer=nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugResponse.SerializeToString, + ), + 'GetArraySizeForCustomCode': grpc.unary_unary_rpc_method_handler( + servicer.GetArraySizeForCustomCode, + request_deserializer=nifake__pb2.GetArraySizeForCustomCodeRequest.FromString, + response_serializer=nifake__pb2.GetArraySizeForCustomCodeResponse.SerializeToString, + ), + 'GetArrayViUInt8WithEnum': grpc.unary_unary_rpc_method_handler( + servicer.GetArrayViUInt8WithEnum, + request_deserializer=nifake__pb2.GetArrayViUInt8WithEnumRequest.FromString, + response_serializer=nifake__pb2.GetArrayViUInt8WithEnumResponse.SerializeToString, + ), + 'GetViUInt8': grpc.unary_unary_rpc_method_handler( + servicer.GetViUInt8, + request_deserializer=nifake__pb2.GetViUInt8Request.FromString, + response_serializer=nifake__pb2.GetViUInt8Response.SerializeToString, + ), + 'GetViInt32Array': grpc.unary_unary_rpc_method_handler( + servicer.GetViInt32Array, + request_deserializer=nifake__pb2.GetViInt32ArrayRequest.FromString, + response_serializer=nifake__pb2.GetViInt32ArrayResponse.SerializeToString, + ), + 'GetViUInt32Array': grpc.unary_unary_rpc_method_handler( + servicer.GetViUInt32Array, + request_deserializer=nifake__pb2.GetViUInt32ArrayRequest.FromString, + response_serializer=nifake__pb2.GetViUInt32ArrayResponse.SerializeToString, + ), + 'MethodUsingEnumWithGrpcNameValues': grpc.unary_unary_rpc_method_handler( + servicer.MethodUsingEnumWithGrpcNameValues, + request_deserializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesRequest.FromString, + response_serializer=nifake__pb2.MethodUsingEnumWithGrpcNameValuesResponse.SerializeToString, + ), + 'MethodWithGetLastErrorParam': grpc.unary_unary_rpc_method_handler( + servicer.MethodWithGetLastErrorParam, + request_deserializer=nifake__pb2.MethodWithGetLastErrorParamRequest.FromString, + response_serializer=nifake__pb2.MethodWithGetLastErrorParamResponse.SerializeToString, + ), + 'MethodWithGrpcOnlyParam': grpc.unary_unary_rpc_method_handler( + servicer.MethodWithGrpcOnlyParam, + request_deserializer=nifake__pb2.MethodWithGrpcOnlyParamRequest.FromString, + response_serializer=nifake__pb2.MethodWithGrpcOnlyParamResponse.SerializeToString, + ), + 'MethodUsingWholeAndFractionalNumbers': grpc.unary_unary_rpc_method_handler( + servicer.MethodUsingWholeAndFractionalNumbers, + request_deserializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersRequest.FromString, + response_serializer=nifake__pb2.MethodUsingWholeAndFractionalNumbersResponse.SerializeToString, + ), + 'MethodUsingWholeMappedNumbers': grpc.unary_unary_rpc_method_handler( + servicer.MethodUsingWholeMappedNumbers, + request_deserializer=nifake__pb2.MethodUsingWholeMappedNumbersRequest.FromString, + response_serializer=nifake__pb2.MethodUsingWholeMappedNumbersResponse.SerializeToString, + ), + 'MethodWithGrpcFieldNumber': grpc.unary_unary_rpc_method_handler( + servicer.MethodWithGrpcFieldNumber, + request_deserializer=nifake__pb2.MethodWithGrpcFieldNumberRequest.FromString, + response_serializer=nifake__pb2.MethodWithGrpcFieldNumberResponse.SerializeToString, + ), + 'MethodWithProtoOnlyParameter': grpc.unary_unary_rpc_method_handler( + servicer.MethodWithProtoOnlyParameter, + request_deserializer=nifake__pb2.MethodWithProtoOnlyParameterRequest.FromString, + response_serializer=nifake__pb2.MethodWithProtoOnlyParameterResponse.SerializeToString, + ), + 'ReadDataWithInOutIviTwist': grpc.unary_unary_rpc_method_handler( + servicer.ReadDataWithInOutIviTwist, + request_deserializer=nifake__pb2.ReadDataWithInOutIviTwistRequest.FromString, + response_serializer=nifake__pb2.ReadDataWithInOutIviTwistResponse.SerializeToString, + ), + 'ReadDataWithMultipleIviTwistParamSets': grpc.unary_unary_rpc_method_handler( + servicer.ReadDataWithMultipleIviTwistParamSets, + request_deserializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsRequest.FromString, + response_serializer=nifake__pb2.ReadDataWithMultipleIviTwistParamSetsResponse.SerializeToString, + ), + 'InitExtCal': grpc.unary_unary_rpc_method_handler( + servicer.InitExtCal, + request_deserializer=nifake__pb2.InitExtCalRequest.FromString, + response_serializer=nifake__pb2.InitExtCalResponse.SerializeToString, + ), + 'InitWithVarArgs': grpc.unary_unary_rpc_method_handler( + servicer.InitWithVarArgs, + request_deserializer=nifake__pb2.InitWithVarArgsRequest.FromString, + response_serializer=nifake__pb2.InitWithVarArgsResponse.SerializeToString, + ), + 'MultipleArraysSameSizeWithOptional': grpc.unary_unary_rpc_method_handler( + servicer.MultipleArraysSameSizeWithOptional, + request_deserializer=nifake__pb2.MultipleArraysSameSizeWithOptionalRequest.FromString, + response_serializer=nifake__pb2.MultipleArraysSameSizeWithOptionalResponse.SerializeToString, + ), + 'UseATwoDimensionParameter': grpc.unary_unary_rpc_method_handler( + servicer.UseATwoDimensionParameter, + request_deserializer=nifake__pb2.UseATwoDimensionParameterRequest.FromString, + response_serializer=nifake__pb2.UseATwoDimensionParameterResponse.SerializeToString, + ), + 'ViUInt8ArrayInputFunction': grpc.unary_unary_rpc_method_handler( + servicer.ViUInt8ArrayInputFunction, + request_deserializer=nifake__pb2.ViUInt8ArrayInputFunctionRequest.FromString, + response_serializer=nifake__pb2.ViUInt8ArrayInputFunctionResponse.SerializeToString, + ), + 'ViUInt8ArrayOutputFunction': grpc.unary_unary_rpc_method_handler( + servicer.ViUInt8ArrayOutputFunction, + request_deserializer=nifake__pb2.ViUInt8ArrayOutputFunctionRequest.FromString, + response_serializer=nifake__pb2.ViUInt8ArrayOutputFunctionResponse.SerializeToString, + ), + 'ViInt16ArrayInputFunction': grpc.unary_unary_rpc_method_handler( + servicer.ViInt16ArrayInputFunction, + request_deserializer=nifake__pb2.ViInt16ArrayInputFunctionRequest.FromString, + response_serializer=nifake__pb2.ViInt16ArrayInputFunctionResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nifake_grpc.NiFake', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiFake(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Abort', + nifake__pb2.AbortRequest.SerializeToString, + nifake__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BoolArrayOutputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/BoolArrayOutputFunction', + nifake__pb2.BoolArrayOutputFunctionRequest.SerializeToString, + nifake__pb2.BoolArrayOutputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Close', + nifake__pb2.CloseRequest.SerializeToString, + nifake__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnumArrayOutputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/EnumArrayOutputFunction', + nifake__pb2.EnumArrayOutputFunctionRequest.SerializeToString, + nifake__pb2.EnumArrayOutputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnumInputFunctionWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/EnumInputFunctionWithDefaults', + nifake__pb2.EnumInputFunctionWithDefaultsRequest.SerializeToString, + nifake__pb2.EnumInputFunctionWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StringValuedEnumInputFunctionWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/StringValuedEnumInputFunctionWithDefaults', + nifake__pb2.StringValuedEnumInputFunctionWithDefaultsRequest.SerializeToString, + nifake__pb2.StringValuedEnumInputFunctionWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ErrorMessage', + nifake__pb2.ErrorMessageRequest.SerializeToString, + nifake__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FetchWaveform', + nifake__pb2.FetchWaveformRequest.SerializeToString, + nifake__pb2.FetchWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetABoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetABoolean', + nifake__pb2.GetABooleanRequest.SerializeToString, + nifake__pb2.GetABooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetANumber(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetANumber', + nifake__pb2.GetANumberRequest.SerializeToString, + nifake__pb2.GetANumberResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAStringOfFixedMaximumSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAStringOfFixedMaximumSize', + nifake__pb2.GetAStringOfFixedMaximumSizeRequest.SerializeToString, + nifake__pb2.GetAStringOfFixedMaximumSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceCharArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceCharArray', + nifake__pb2.GetAnIviDanceCharArrayRequest.SerializeToString, + nifake__pb2.GetAnIviDanceCharArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetArrayUsingIviDance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetArrayUsingIviDance', + nifake__pb2.GetArrayUsingIviDanceRequest.SerializeToString, + nifake__pb2.GetArrayUsingIviDanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViBoolean', + nifake__pb2.GetAttributeViBooleanRequest.SerializeToString, + nifake__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViInt32', + nifake__pb2.GetAttributeViInt32Request.SerializeToString, + nifake__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViInt64', + nifake__pb2.GetAttributeViInt64Request.SerializeToString, + nifake__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViReal64', + nifake__pb2.GetAttributeViReal64Request.SerializeToString, + nifake__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViSession', + nifake__pb2.GetAttributeViSessionRequest.SerializeToString, + nifake__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAttributeViString', + nifake__pb2.GetAttributeViStringRequest.SerializeToString, + nifake__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCalDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCalDateAndTime', + nifake__pb2.GetCalDateAndTimeRequest.SerializeToString, + nifake__pb2.GetCalDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCalInterval(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCalInterval', + nifake__pb2.GetCalIntervalRequest.SerializeToString, + nifake__pb2.GetCalIntervalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetEnumValue(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetEnumValue', + nifake__pb2.GetEnumValueRequest.SerializeToString, + nifake__pb2.GetEnumValueResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetError', + nifake__pb2.GetErrorRequest.SerializeToString, + nifake__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/InitWithOptions', + nifake__pb2.InitWithOptionsRequest.SerializeToString, + nifake__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultipleArrayTypes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArrayTypes', + nifake__pb2.MultipleArrayTypesRequest.SerializeToString, + nifake__pb2.MultipleArrayTypesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultipleArraysSameSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArraysSameSize', + nifake__pb2.MultipleArraysSameSizeRequest.SerializeToString, + nifake__pb2.MultipleArraysSameSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultipleArraysDifferentSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArraysDifferentSize', + nifake__pb2.MultipleArraysDifferentSizeRequest.SerializeToString, + nifake__pb2.MultipleArraysDifferentSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MixedIviDanceAndLenMechanism(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MixedIviDanceAndLenMechanism', + nifake__pb2.MixedIviDanceAndLenMechanismRequest.SerializeToString, + nifake__pb2.MixedIviDanceAndLenMechanismResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def OneInputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/OneInputFunction', + nifake__pb2.OneInputFunctionRequest.SerializeToString, + nifake__pb2.OneInputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ParametersAreMultipleTypes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ParametersAreMultipleTypes', + nifake__pb2.ParametersAreMultipleTypesRequest.SerializeToString, + nifake__pb2.ParametersAreMultipleTypesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PoorlyNamedSimpleFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/PoorlyNamedSimpleFunction', + nifake__pb2.PoorlyNamedSimpleFunctionRequest.SerializeToString, + nifake__pb2.PoorlyNamedSimpleFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Read(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Read', + nifake__pb2.ReadRequest.SerializeToString, + nifake__pb2.ReadResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadFromChannel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReadFromChannel', + nifake__pb2.ReadFromChannelRequest.SerializeToString, + nifake__pb2.ReadFromChannelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReturnANumberAndAString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnANumberAndAString', + nifake__pb2.ReturnANumberAndAStringRequest.SerializeToString, + nifake__pb2.ReturnANumberAndAStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReturnMultipleTypes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnMultipleTypes', + nifake__pb2.ReturnMultipleTypesRequest.SerializeToString, + nifake__pb2.ReturnMultipleTypesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViBoolean', + nifake__pb2.SetAttributeViBooleanRequest.SerializeToString, + nifake__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViInt32', + nifake__pb2.SetAttributeViInt32Request.SerializeToString, + nifake__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViInt64', + nifake__pb2.SetAttributeViInt64Request.SerializeToString, + nifake__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViReal64', + nifake__pb2.SetAttributeViReal64Request.SerializeToString, + nifake__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetAttributeViString', + nifake__pb2.SetAttributeViStringRequest.SerializeToString, + nifake__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def TwoInputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/TwoInputFunction', + nifake__pb2.TwoInputFunctionRequest.SerializeToString, + nifake__pb2.TwoInputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Use64BitNumber(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Use64BitNumber', + nifake__pb2.Use64BitNumberRequest.SerializeToString, + nifake__pb2.Use64BitNumberResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveform', + nifake__pb2.WriteWaveformRequest.SerializeToString, + nifake__pb2.WriteWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteWaveformNumpyComplex128(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveformNumpyComplex128', + nifake__pb2.WriteWaveformNumpyComplex128Request.SerializeToString, + nifake__pb2.WriteWaveformNumpyComplex128Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteWaveformNumpyComplex64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveformNumpyComplex64', + nifake__pb2.WriteWaveformNumpyComplex64Request.SerializeToString, + nifake__pb2.WriteWaveformNumpyComplex64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteWaveformNumpyComplexInterleavedI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/WriteWaveformNumpyComplexInterleavedI16', + nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Request.SerializeToString, + nifake__pb2.WriteWaveformNumpyComplexInterleavedI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetCustomType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetCustomType', + nifake__pb2.SetCustomTypeRequest.SerializeToString, + nifake__pb2.SetCustomTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetCustomTypeArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/SetCustomTypeArray', + nifake__pb2.SetCustomTypeArrayRequest.SerializeToString, + nifake__pb2.SetCustomTypeArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCustomType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCustomType', + nifake__pb2.GetCustomTypeRequest.SerializeToString, + nifake__pb2.GetCustomTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCustomTypeArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetCustomTypeArray', + nifake__pb2.GetCustomTypeArrayRequest.SerializeToString, + nifake__pb2.GetCustomTypeArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceWithATwistArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArray', + nifake__pb2.GetAnIviDanceWithATwistArrayRequest.SerializeToString, + nifake__pb2.GetAnIviDanceWithATwistArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceWithATwistString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistString', + nifake__pb2.GetAnIviDanceWithATwistStringRequest.SerializeToString, + nifake__pb2.GetAnIviDanceWithATwistStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DoubleAllTheNums(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/DoubleAllTheNums', + nifake__pb2.DoubleAllTheNumsRequest.SerializeToString, + nifake__pb2.DoubleAllTheNumsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AcceptListOfDurationsInSeconds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/AcceptListOfDurationsInSeconds', + nifake__pb2.AcceptListOfDurationsInSecondsRequest.SerializeToString, + nifake__pb2.AcceptListOfDurationsInSecondsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReturnDurationInSeconds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnDurationInSeconds', + nifake__pb2.ReturnDurationInSecondsRequest.SerializeToString, + nifake__pb2.ReturnDurationInSecondsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReturnListOfDurationsInSeconds(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReturnListOfDurationsInSeconds', + nifake__pb2.ReturnListOfDurationsInSecondsRequest.SerializeToString, + nifake__pb2.ReturnListOfDurationsInSecondsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureAbc(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ConfigureAbc', + nifake__pb2.ConfigureAbcRequest.SerializeToString, + nifake__pb2.ConfigureAbcResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureEnums(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ConfigureEnums', + nifake__pb2.ConfigureEnumsRequest.SerializeToString, + nifake__pb2.ConfigureEnumsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationBufferEx(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ExportAttributeConfigurationBufferEx', + nifake__pb2.ExportAttributeConfigurationBufferExRequest.SerializeToString, + nifake__pb2.ExportAttributeConfigurationBufferExResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationBufferEx(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ImportAttributeConfigurationBufferEx', + nifake__pb2.ImportAttributeConfigurationBufferExRequest.SerializeToString, + nifake__pb2.ImportAttributeConfigurationBufferExResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchWithCustomSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FetchWithCustomSize', + nifake__pb2.FetchWithCustomSizeRequest.SerializeToString, + nifake__pb2.FetchWithCustomSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetParameterWithOverriddenGrpcName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetParameterWithOverriddenGrpcName', + nifake__pb2.GetParameterWithOverriddenGrpcNameRequest.SerializeToString, + nifake__pb2.GetParameterWithOverriddenGrpcNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IviDanceWithTwistWithMultipleArraysAndOneBufferSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/IviDanceWithTwistWithMultipleArraysAndOneBufferSize', + nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeRequest.SerializeToString, + nifake__pb2.IviDanceWithTwistWithMultipleArraysAndOneBufferSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FunctionWithOverriddenGrpcName2x(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FunctionWithOverriddenGrpcName2x', + nifake__pb2.FunctionWithOverriddenGrpcName2xRequest.SerializeToString, + nifake__pb2.FunctionWithOverriddenGrpcName2xResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter', + nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterRequest.SerializeToString, + nifake__pb2.FunctionWith3dNumpyArrayOfNumpyComplex128InputParameterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def StringValuedEnumNoEnumGenerated(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/StringValuedEnumNoEnumGenerated', + nifake__pb2.StringValuedEnumNoEnumGeneratedRequest.SerializeToString, + nifake__pb2.StringValuedEnumNoEnumGeneratedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IviDanceWithATwistCalculatedSizeOut(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/IviDanceWithATwistCalculatedSizeOut', + nifake__pb2.IviDanceWithATwistCalculatedSizeOutRequest.SerializeToString, + nifake__pb2.IviDanceWithATwistCalculatedSizeOutResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ImportAttributeConfigurationBuffer', + nifake__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + nifake__pb2.ImportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ExportAttributeConfigurationBuffer', + nifake__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + nifake__pb2.ExportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Control4022(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/Control4022', + nifake__pb2.Control4022Request.SerializeToString, + nifake__pb2.Control4022Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AcceptViSessionArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/AcceptViSessionArray', + nifake__pb2.AcceptViSessionArrayRequest.SerializeToString, + nifake__pb2.AcceptViSessionArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AcceptViUInt32Array(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/AcceptViUInt32Array', + nifake__pb2.AcceptViUInt32ArrayRequest.SerializeToString, + nifake__pb2.AcceptViUInt32ArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def BoolArrayInputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/BoolArrayInputFunction', + nifake__pb2.BoolArrayInputFunctionRequest.SerializeToString, + nifake__pb2.BoolArrayInputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CloseExtCal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CloseExtCal', + nifake__pb2.CloseExtCalRequest.SerializeToString, + nifake__pb2.CloseExtCalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CommandWithReservedParam(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CommandWithReservedParam', + nifake__pb2.CommandWithReservedParamRequest.SerializeToString, + nifake__pb2.CommandWithReservedParamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateConfigurationList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CreateConfigurationList', + nifake__pb2.CreateConfigurationListRequest.SerializeToString, + nifake__pb2.CreateConfigurationListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CustomNestedStructRoundtrip(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/CustomNestedStructRoundtrip', + nifake__pb2.CustomNestedStructRoundtripRequest.SerializeToString, + nifake__pb2.CustomNestedStructRoundtripResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetBitfieldAsEnumArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetBitfieldAsEnumArray', + nifake__pb2.GetBitfieldAsEnumArrayRequest.SerializeToString, + nifake__pb2.GetBitfieldAsEnumArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceWithATwistArrayOfCustomType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayOfCustomType', + nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeRequest.SerializeToString, + nifake__pb2.GetAnIviDanceWithATwistArrayOfCustomTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceWithATwistArrayWithInputArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistArrayWithInputArray', + nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayRequest.SerializeToString, + nifake__pb2.GetAnIviDanceWithATwistArrayWithInputArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceWithATwistByteArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistByteArray', + nifake__pb2.GetAnIviDanceWithATwistByteArrayRequest.SerializeToString, + nifake__pb2.GetAnIviDanceWithATwistByteArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAnIviDanceWithATwistStringStrlenBug(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetAnIviDanceWithATwistStringStrlenBug', + nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugRequest.SerializeToString, + nifake__pb2.GetAnIviDanceWithATwistStringStrlenBugResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetArraySizeForCustomCode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetArraySizeForCustomCode', + nifake__pb2.GetArraySizeForCustomCodeRequest.SerializeToString, + nifake__pb2.GetArraySizeForCustomCodeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetArrayViUInt8WithEnum(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetArrayViUInt8WithEnum', + nifake__pb2.GetArrayViUInt8WithEnumRequest.SerializeToString, + nifake__pb2.GetArrayViUInt8WithEnumResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetViUInt8(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetViUInt8', + nifake__pb2.GetViUInt8Request.SerializeToString, + nifake__pb2.GetViUInt8Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetViInt32Array(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetViInt32Array', + nifake__pb2.GetViInt32ArrayRequest.SerializeToString, + nifake__pb2.GetViInt32ArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetViUInt32Array(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/GetViUInt32Array', + nifake__pb2.GetViUInt32ArrayRequest.SerializeToString, + nifake__pb2.GetViUInt32ArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodUsingEnumWithGrpcNameValues(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodUsingEnumWithGrpcNameValues', + nifake__pb2.MethodUsingEnumWithGrpcNameValuesRequest.SerializeToString, + nifake__pb2.MethodUsingEnumWithGrpcNameValuesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodWithGetLastErrorParam(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithGetLastErrorParam', + nifake__pb2.MethodWithGetLastErrorParamRequest.SerializeToString, + nifake__pb2.MethodWithGetLastErrorParamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodWithGrpcOnlyParam(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithGrpcOnlyParam', + nifake__pb2.MethodWithGrpcOnlyParamRequest.SerializeToString, + nifake__pb2.MethodWithGrpcOnlyParamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodUsingWholeAndFractionalNumbers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodUsingWholeAndFractionalNumbers', + nifake__pb2.MethodUsingWholeAndFractionalNumbersRequest.SerializeToString, + nifake__pb2.MethodUsingWholeAndFractionalNumbersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodUsingWholeMappedNumbers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodUsingWholeMappedNumbers', + nifake__pb2.MethodUsingWholeMappedNumbersRequest.SerializeToString, + nifake__pb2.MethodUsingWholeMappedNumbersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodWithGrpcFieldNumber(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithGrpcFieldNumber', + nifake__pb2.MethodWithGrpcFieldNumberRequest.SerializeToString, + nifake__pb2.MethodWithGrpcFieldNumberResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MethodWithProtoOnlyParameter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MethodWithProtoOnlyParameter', + nifake__pb2.MethodWithProtoOnlyParameterRequest.SerializeToString, + nifake__pb2.MethodWithProtoOnlyParameterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadDataWithInOutIviTwist(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReadDataWithInOutIviTwist', + nifake__pb2.ReadDataWithInOutIviTwistRequest.SerializeToString, + nifake__pb2.ReadDataWithInOutIviTwistResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadDataWithMultipleIviTwistParamSets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ReadDataWithMultipleIviTwistParamSets', + nifake__pb2.ReadDataWithMultipleIviTwistParamSetsRequest.SerializeToString, + nifake__pb2.ReadDataWithMultipleIviTwistParamSetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitExtCal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/InitExtCal', + nifake__pb2.InitExtCalRequest.SerializeToString, + nifake__pb2.InitExtCalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithVarArgs(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/InitWithVarArgs', + nifake__pb2.InitWithVarArgsRequest.SerializeToString, + nifake__pb2.InitWithVarArgsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def MultipleArraysSameSizeWithOptional(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/MultipleArraysSameSizeWithOptional', + nifake__pb2.MultipleArraysSameSizeWithOptionalRequest.SerializeToString, + nifake__pb2.MultipleArraysSameSizeWithOptionalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UseATwoDimensionParameter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/UseATwoDimensionParameter', + nifake__pb2.UseATwoDimensionParameterRequest.SerializeToString, + nifake__pb2.UseATwoDimensionParameterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ViUInt8ArrayInputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ViUInt8ArrayInputFunction', + nifake__pb2.ViUInt8ArrayInputFunctionRequest.SerializeToString, + nifake__pb2.ViUInt8ArrayInputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ViUInt8ArrayOutputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ViUInt8ArrayOutputFunction', + nifake__pb2.ViUInt8ArrayOutputFunctionRequest.SerializeToString, + nifake__pb2.ViUInt8ArrayOutputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ViInt16ArrayInputFunction(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifake_grpc.NiFake/ViInt16ArrayInputFunction', + nifake__pb2.ViInt16ArrayInputFunctionRequest.SerializeToString, + nifake__pb2.ViInt16ArrayInputFunctionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nifake/nifake/session.py b/generated/nifake/nifake/session.py new file mode 100644 index 0000000000..66741bcab8 --- /dev/null +++ b/generated/nifake/nifake/session.py @@ -0,0 +1,1855 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nifake._attributes as _attributes +import nifake._converters as _converters +import nifake._library_interpreter as _library_interpreter +import nifake.enums as enums +import nifake.errors as errors + +import nifake.custom_struct as custom_struct # noqa: F401 + +import nifake.custom_struct_typedef as custom_struct_typedef # noqa: F401 + +import nifake.custom_struct_nested_typedef as custom_struct_nested_typedef # noqa: F401 + +import hightime +import nitclk + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Acquisition(object): + def __init__(self, session): + self._session = session + self._session._initiate() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-FAKE sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + float_enum = _attributes.AttributeEnum(_attributes.AttributeViReal64, enums.FloatEnum, 1000005) + '''Type: enums.FloatEnum + + A property with an enum that is also a float + ''' + read_write_bool = _attributes.AttributeViBoolean(1000000) + '''Type: bool + + A property of type bool with read/write access. + ''' + read_write_color = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Color, 1000003) + '''Type: enums.Color + + A property of type Color with read/write access. + ''' + read_write_comma_separated_string = _attributes.AttributeViStringCommaSeparated(1000015) + '''Type: str + + A property of type comma separated string with read/write access. + ''' + read_write_double = _attributes.AttributeViReal64(1000001) + '''Type: float + + A property of type float with read/write access. + ''' + read_write_double_with_converter = _attributes.AttributeViReal64TimeDeltaSeconds(1000007) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Property in seconds + ''' + read_write_double_with_repeated_capability = _attributes.AttributeViReal64(1000009) + '''Type: float + + Tip: + This property can be set/get on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].read_write_double_with_repeated_capability` + + To set/get on all channels, you can call the property directly on the :py:class:`nifake.Session`. + + Example: :py:attr:`my_session.read_write_double_with_repeated_capability` + ''' + read_write_enum_with_converter = _attributes.AttributeEnumWithConverter(_attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EnumWithConverter, 1000011), _converters.convert_from_enum_with_converter_enum, _converters.convert_to_enum_with_converter_enum) + read_write_int64 = _attributes.AttributeViInt64(1000006) + '''Type: int + + A property of type 64-bit integer with read/write access. + ''' + read_write_integer = _attributes.AttributeViInt32(1000004) + '''Type: int + + A property of type integer with read/write access. + ''' + read_write_integer_with_converter = _attributes.AttributeViInt32TimeDeltaMilliseconds(1000008) + '''Type: hightime.timedelta, datetime.timedelta, or int in milliseconds + + Property in milliseconds + ''' + read_write_integer_with_month_converter = _attributes.AttributeViInt32TimeDeltaMonths(1000014) + '''Type: hightime.timedelta, datetime.timedelta, or int in months + + Property in months + ''' + read_write_string = _attributes.AttributeViString(1000002) + '''Type: str + + A property of type string with read/write access. + ''' + read_write_string_repeated_capability = _attributes.AttributeViStringRepeatedCapability(1000010) + '''Type: Any repeated capability type, as defined in nimi-python: + - str + - str - Comma delimited list + - str - Range (using '-' or ':') + - int + - Basic sequence types (list, tuple, range, slice) of other supported types + + A property with read/write access, that represents a repeated capability + + Tip: + This property can be set/get on specific instruments within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].read_write_string_repeated_capability` + + To set/get on all instruments, you can call the property directly on the :py:class:`nifake.Session`. + + Example: :py:attr:`my_session.read_write_string_repeated_capability` + ''' + sample_count = _attributes.AttributeViInt32(1000012) + sample_interval = _attributes.AttributeViReal64(1000013) + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + self.sites = _RepeatedCapabilities(self, 'site', repeated_capability_list) + self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nifake', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def function_with_repeated_capability_type(self): + r'''function_with_repeated_capability_type + + A method with a parameter that specifies repeated_capability_type. + + Tip: + This method can be called on specific sites within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container sites to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.sites[ ... ].function_with_repeated_capability_type` + + To call the method on all sites, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session.function_with_repeated_capability_type` + ''' + self._interpreter.function_with_repeated_capability_type(self._repeated_capability) + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (bool): Returns the value of the property. + + ''' + attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (int): Returns the value of the property. + + ''' + attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int64(self, attribute_id): + r'''_get_attribute_vi_int64 + + Queries the value of a ViInt64 property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int64` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (int): Returns the value of the property. + + ''' + attribute_value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + Queries the value of a ViReal property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (float): Returns the value of the property. + + ''' + attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + Queries the value of a ViBoolean property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + attribute_value (str): Returns the value of the property. + + ''' + attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_channel_names(self, indices): + r'''_get_channel_names + + Returns a list of channel names for the given channel indices. + + Args: + indices (basic sequence types or str or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + Returns: + names (list of str): The channel name(s) at the specified indices. + + ''' + indices = _converters.convert_repeated_capabilities_without_prefix(indices) + names = self._interpreter.get_channel_names(indices) + return _converters.convert_comma_separated_string_to_list(names) + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-FAKE locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nifake.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def get_channel_names(self, indices): + '''get_channel_names + + Returns a list of channel names for the given channel indices. + + Args: + indices (basic sequence types or str or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0," "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + Returns: + names (list of str): The channel name(s) at the specified indices. + + ''' + return self._get_channel_names(indices) + + @ivi_synchronized + def read_from_channel(self, maximum_time): + r'''read_from_channel + + Acquires a single measurement and returns the measured value. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_from_channel` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session.read_from_channel` + + Args: + maximum_time (hightime.timedelta): Specifies the **maximum_time** allowed in milliseconds. + + + Returns: + reading (float): The measured value. + + ''' + maximum_time = _converters.convert_timedelta_to_milliseconds_int32(maximum_time) + reading = self._interpreter.read_from_channel(self._repeated_capability, maximum_time) + return reading + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, attribute_value): + r'''_set_attribute_vi_boolean + + This method sets the value of a ViBoolean property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (bool): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int32 + + This method sets the value of a ViInt32 property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (int): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int64 + + This method sets the value of a ViInt64 property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int64` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (int): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_real64 + + This method sets the value of a ViReal64 property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (float): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, attribute_value): + r'''_set_attribute_vi_string + + This method sets the value of a ViString property. + + Tip: + This method can be called on specific channels within your :py:class:`nifake.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nifake.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. + + attribute_value (str): Pass the value that you want to set the property to. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + def _error_message(self, error_code): + r'''_error_message + + Takes the errorCode returned by a functiona and returns it as a user-readable string. + + Args: + error_code (int): The errorCode returned from the instrument. + + + Returns: + error_message (str): The error information formatted into a string. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-FAKE session to a fake MI driver whose sole purpose is to test nimi-python code generation''' + + def __init__(self, resource_name, options={}, id_query=False, reset_device=False, *, grpc_options=None): + r'''An NI-FAKE session to a fake MI driver whose sole purpose is to test nimi-python code generation + + Creates a new IVI instrument driver session. + + Args: + resource_name (str): Caution: This is just some string. + + Contains the **resource_name** of the device to initialize. + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + id_query (bool): NI-FAKE is probably not needed. + + +----------------+---+------------------+ + | True (default) | 1 | Perform ID Query | + +----------------+---+------------------+ + | False | 0 | Skip ID Query | + +----------------+---+------------------+ + + reset_device (bool): Specifies whether to reset + + +----------------+---+--------------+ + | True (default) | 1 | Reset Device | + +----------------+---+--------------+ + | False | 0 | Don't Reset | + +----------------+---+--------------+ + + grpc_options (nifake.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + session (nifake.Session): A session object representing the device. + + ''' + if grpc_options: + import nifake._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_options fails, the error handler can reference it. + # And then here, once _init_with_options succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_options(resource_name, options, id_query, reset_device)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-FAKE', grpc_options.grpc_channel, connected) + + # NI-TClk does not work over NI gRPC Device Server + if not grpc_options: + self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("options=" + pp.pformat(options)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Initiates a thingie. + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Acquisition(self) + + def close(self): + '''close + + Closes the specified session and deallocates resources that it reserved. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Aborts a previously initiated thingie. + ''' + self._interpreter.abort() + + @ivi_synchronized + def accept_list_of_durations_in_seconds(self, delays): + r'''accept_list_of_durations_in_seconds + + Accepts list of hightime.timedelta or datetime.timedelta or float instances representing time delays. + + Args: + delays (hightime.timedelta, datetime.timedelta, or float in seconds): A collection of time delay values. + + ''' + delays = _converters.convert_timedeltas_to_seconds_real64(delays) + self._interpreter.accept_list_of_durations_in_seconds(delays) + + @ivi_synchronized + def bool_array_output_function(self, number_of_elements): + r'''bool_array_output_function + + This method returns an array of booleans. + + Args: + number_of_elements (int): Number of elements in the array. + + + Returns: + an_array (list of bool): Contains an array of booleans + + ''' + an_array = self._interpreter.bool_array_output_function(number_of_elements) + return an_array + + @ivi_synchronized + def configure_abc(self): + r'''configure_abc + + TBD + ''' + self._interpreter.configure_abc() + + @ivi_synchronized + def custom_nested_struct_roundtrip(self, nested_custom_type_in): + r'''custom_nested_struct_roundtrip + + TBD + + Args: + nested_custom_type_in (CustomStructNestedTypedef): + + + Returns: + nested_custom_type_out (CustomStructNestedTypedef): + + ''' + nested_custom_type_out = self._interpreter.custom_nested_struct_roundtrip(nested_custom_type_in) + return nested_custom_type_out + + @ivi_synchronized + def double_all_the_nums(self, numbers): + r'''double_all_the_nums + + Test for buffer with converter + + Args: + numbers (list of float): numbers is an array of numbers we want to double. + + ''' + numbers = _converters.convert_double_each_element(numbers) + self._interpreter.double_all_the_nums(numbers) + + @ivi_synchronized + def enum_array_output_function(self, number_of_elements): + r'''enum_array_output_function + + This method returns an array of enums, stored as 16 bit integers under the hood. + + Args: + number_of_elements (int): Number of elements in the array. + + + Returns: + an_array (list of enums.Turtle): Contains an array of enums, stored as 16 bit integers under the hood + + ''' + an_array = self._interpreter.enum_array_output_function(number_of_elements) + return an_array + + @ivi_synchronized + def enum_input_function_with_defaults(self, a_turtle=enums.Turtle.LEONARDO): + r'''enum_input_function_with_defaults + + This method takes one parameter other than the session, which happens to be an enum and has a default value. + + Args: + a_turtle (enums.Turtle): Indicates a ninja turtle + + +---+---------------+ + | 0 | Leonardo | + +---+---------------+ + | 1 | Donatello | + +---+---------------+ + | 2 | Raphael | + +---+---------------+ + | 3 | Mich elangelo | + +---+---------------+ + + ''' + if type(a_turtle) is not enums.Turtle: + raise TypeError('Parameter a_turtle must be of type ' + str(enums.Turtle)) + self._interpreter.enum_input_function_with_defaults(a_turtle) + + @ivi_synchronized + def export_attribute_configuration_buffer(self): + r'''export_attribute_configuration_buffer + + Export configuration buffer. + + Returns: + configuration (bytes): + + ''' + configuration = self._interpreter.export_attribute_configuration_buffer() + return _converters.convert_to_bytes(configuration) + + @ivi_synchronized + def fetch_waveform(self, number_of_samples): + r'''fetch_waveform + + Returns waveform data. + + Args: + number_of_samples (int): Number of samples to return + + + Returns: + waveform_data (array.array("d")): Samples fetched from the device. Array should be numberOfSamples big. + + ''' + waveform_data = self._interpreter.fetch_waveform(number_of_samples) + return waveform_data + + @ivi_synchronized + def fetch_waveform_into(self, waveform_data): + r'''fetch_waveform_into + + Returns waveform data. + + Args: + waveform_data (numpy.array(dtype=numpy.float64)): Samples fetched from the device. Array should be numberOfSamples big. + + ''' + import numpy + + if type(waveform_data) is not numpy.ndarray: + raise TypeError('waveform_data must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data))) + if numpy.isfortran(waveform_data) is True: + raise TypeError('waveform_data must be in C-order') + if waveform_data.dtype is not numpy.dtype('float64'): + raise TypeError('waveform_data must be numpy.ndarray of dtype=float64, is ' + str(waveform_data.dtype)) + self._interpreter.fetch_waveform_into(waveform_data) + + def function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self, multidimensional_array): + r'''function_with_3d_numpy_array_of_numpy_complex128_input_parameter + + Method that takes a 3D numpy array of numpy complex128 as an input parameter. + + Args: + multidimensional_array (numpy.array(dtype=numpy.complex128)): Specifies the 3D array of numpy complex numbers to write. + + ''' + import numpy + + if type(multidimensional_array) is not numpy.ndarray: + raise TypeError('multidimensional_array must be {0}, is {1}'.format(numpy.ndarray, type(multidimensional_array))) + if numpy.isfortran(multidimensional_array) is True: + raise TypeError('multidimensional_array must be in C-order') + if multidimensional_array.dtype is not numpy.dtype('complex128'): + raise TypeError('multidimensional_array must be numpy.ndarray of dtype=complex128, is ' + str(multidimensional_array.dtype)) + if multidimensional_array.ndim != 3: + raise TypeError('multidimensional_array must be numpy.ndarray of dimension=3, is ' + str(multidimensional_array.ndim)) + self._interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(multidimensional_array) + + @ivi_synchronized + def function_with_intflag_parameter(self, flag): + r'''function_with_intflag_parameter + + Calls a method that takes a flag parameter which can be OR'd from multiple enum values. + + Args: + flag (enums.IntFlagEnum): A flag parameter that can be a combination (bitwise OR) of IntFlagEnum values. + + ''' + if type(flag) is not enums.IntFlagEnum: + raise TypeError('Parameter flag must be of type ' + str(enums.IntFlagEnum)) + self._interpreter.function_with_intflag_parameter(flag) + + @ivi_synchronized + def get_a_boolean(self): + r'''get_a_boolean + + Returns a boolean. + + Note: This method rules! + + Returns: + a_boolean (bool): Contains a boolean. + + ''' + a_boolean = self._interpreter.get_a_boolean() + return a_boolean + + @ivi_synchronized + def get_a_number(self): + r'''get_a_number + + Returns a number. + + Note: This method rules! + + Returns: + a_number (int): Contains a number. + + ''' + a_number = self._interpreter.get_a_number() + return a_number + + @ivi_synchronized + def get_a_string_of_fixed_maximum_size(self): + r'''get_a_string_of_fixed_maximum_size + + Illustrates returning a string of fixed size. + + Returns: + a_string (str): String comes back here. Buffer must be 256 big. + + ''' + a_string = self._interpreter.get_a_string_of_fixed_maximum_size() + return a_string + + @ivi_synchronized + def get_a_string_using_python_code(self, a_number): + r'''get_a_string_using_python_code + + Returns a number and a string. + + Note: This method rules! + + Args: + a_number (int): Contains a number. + + + Returns: + a_string (str): Contains a string of length aNumber. + + ''' + a_string = self._interpreter.get_a_string_using_python_code(a_number) + return a_string + + @ivi_synchronized + def get_an_ivi_dance_char_array(self): + r'''get_an_ivi_dance_char_array + + TBD + + Returns: + char_array (str): + + ''' + char_array = self._interpreter.get_an_ivi_dance_char_array() + return char_array + + @ivi_synchronized + def get_an_ivi_dance_with_a_twist_string(self): + r'''get_an_ivi_dance_with_a_twist_string + + TBD + + Returns: + a_string (str): + + ''' + a_string = self._interpreter.get_an_ivi_dance_with_a_twist_string() + return a_string + + @ivi_synchronized + def get_array_for_python_code_custom_type(self): + r'''get_array_for_python_code_custom_type + + This method returns an array for use in python-code size mechanism. + + Returns: + array_out (list of CustomStruct): Array of custom type using python-code size mechanism + + ''' + array_out = self._interpreter.get_array_for_python_code_custom_type() + return array_out + + @ivi_synchronized + def get_array_for_python_code_double(self): + r'''get_array_for_python_code_double + + This method returns an array for use in python-code size mechanism. + + Returns: + array_out (list of float): Array of double using python-code size mechanism + + ''' + array_out = self._interpreter.get_array_for_python_code_double() + return array_out + + @ivi_synchronized + def get_array_size_for_python_code(self): + r'''get_array_size_for_python_code + + This method returns the size of the array for use in python-code size mechanism. + + Returns: + size_out (int): Size of array + + ''' + size_out = self._interpreter.get_array_size_for_python_code() + return size_out + + @ivi_synchronized + def get_array_using_ivi_dance(self): + r'''get_array_using_ivi_dance + + This method returns an array of float whose size is determined with the IVI dance. + + Returns: + array_out (list of float): The array returned by this method + + ''' + array_out = self._interpreter.get_array_using_ivi_dance() + return array_out + + @ivi_synchronized + def _get_cal_date_and_time(self, cal_type): + r'''_get_cal_date_and_time + + Returns the date and time of the last calibration performed. + + Args: + cal_type (int): Specifies the type of calibration performed (external or self-calibration). + + + Returns: + month (int): Indicates the **month** of the last calibration. + + day (int): Indicates the **day** of the last calibration. + + year (int): Indicates the **year** of the last calibration. + + hour (int): Indicates the **hour** of the last calibration. + + minute (int): Indicates the **minute** of the last calibration. + + ''' + month, day, year, hour, minute = self._interpreter.get_cal_date_and_time(cal_type) + return month, day, year, hour, minute + + @ivi_synchronized + def get_cal_interval(self): + r'''get_cal_interval + + Returns the recommended maximum interval, in **months**, between external calibrations. + + Returns: + months (hightime.timedelta): Specifies the recommended maximum interval, in **months**, between external calibrations. + + ''' + months = self._interpreter.get_cal_interval() + return _converters.convert_month_to_timedelta(months) + + @ivi_synchronized + def get_custom_type(self): + r'''get_custom_type + + This method returns a custom type. + + Returns: + cs (CustomStruct): Set using custom type + + ''' + cs = self._interpreter.get_custom_type() + return cs + + @ivi_synchronized + def get_custom_type_array(self, number_of_elements): + r'''get_custom_type_array + + This method returns a custom type. + + Args: + number_of_elements (int): Number of elements in the array. + + + Returns: + cs (list of CustomStruct): Get using custom type + + ''' + cs = self._interpreter.get_custom_type_array(number_of_elements) + return cs + + @ivi_synchronized + def get_custom_type_typedef(self): + r'''get_custom_type_typedef + + This method returns a custom type with typedef and a custom type with nested typedef. + + Returns: + cst (CustomStructTypedef): An object of a custom type with typedef + + csnt (CustomStructNestedTypedef): An object of a custom type with nested typedef + + ''' + cst, csnt = self._interpreter.get_custom_type_typedef() + return cst, csnt + + @ivi_synchronized + def get_enum_value(self): + r'''get_enum_value + + Returns an enum value + + Note: Splinter is not supported. + + Returns: + a_quantity (int): This is an amount. + + Note: The amount will be between -2^31 and (2^31-1) + + a_turtle (enums.Turtle): Indicates a ninja turtle + + +---+---------------+ + | 0 | Leonardo | + +---+---------------+ + | 1 | Donatello | + +---+---------------+ + | 2 | Raphael | + +---+---------------+ + | 3 | Mich elangelo | + +---+---------------+ + + ''' + a_quantity, a_turtle = self._interpreter.get_enum_value() + return a_quantity, a_turtle + + @ivi_synchronized + def get_cal_date_and_time(self, cal_type): + '''get_cal_date_and_time + + Returns the date and time of the last calibration performed. + + Args: + cal_type (int): Specifies the type of calibration performed (external or self-calibration). + + + Returns: + last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. + + ''' + month, day, year, hour, minute = self._get_cal_date_and_time(cal_type) + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def get_parameter_with_overridden_grpc_name(self, enum_parameter): + r'''get_parameter_with_overridden_grpc_name + + TBD + + Args: + enum_parameter (enums.Turtle): + + + Returns: + original_parameter (int): + + ''' + if type(enum_parameter) is not enums.Turtle: + raise TypeError('Parameter enum_parameter must be of type ' + str(enums.Turtle)) + original_parameter = self._interpreter.get_parameter_with_overridden_grpc_name(enum_parameter) + return original_parameter + + @ivi_synchronized + def import_attribute_configuration_buffer(self, configuration): + r'''import_attribute_configuration_buffer + + Import configuration buffer. + + Args: + configuration (bytes): + + ''' + configuration = _converters.convert_to_bytes(configuration) + self._interpreter.import_attribute_configuration_buffer(configuration) + + @ivi_synchronized + def import_attribute_configuration_buffer_ex(self, configuration): + r'''import_attribute_configuration_buffer_ex + + TBD + + Args: + configuration (list of ViAddr): + + ''' + self._interpreter.import_attribute_configuration_buffer_ex(configuration) + + def _init_with_options(self, resource_name, option_string, id_query=False, reset_device=False): + r'''_init_with_options + + Creates a new IVI instrument driver session. + + Args: + resource_name (str): Caution: This is just some string. + + Contains the **resource_name** of the device to initialize. + + option_string (dict): Some options + + id_query (bool): NI-FAKE is probably not needed. + + +----------------+---+------------------+ + | True (default) | 1 | Perform ID Query | + +----------------+---+------------------+ + | False | 0 | Skip ID Query | + +----------------+---+------------------+ + + reset_device (bool): Specifies whether to reset + + +----------------+---+--------------+ + | True (default) | 1 | Reset Device | + +----------------+---+--------------+ + | False | 0 | Don't Reset | + +----------------+---+--------------+ + + + Returns: + vi (int): Returns a ViSession handle that you use. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) + return vi + + @ivi_synchronized + def _initiate(self): + r'''_initiate + + Initiates a thingie. + ''' + self._interpreter.initiate() + + @ivi_synchronized + def method_using_whole_and_fractional_numbers(self): + r'''method_using_whole_and_fractional_numbers + + TBD + + Returns: + whole_number (int): + + fractional_number (float): + + ''' + whole_number, fractional_number = self._interpreter.method_using_whole_and_fractional_numbers() + return whole_number, fractional_number + + @ivi_synchronized + def method_with_grpc_only_param(self, simple_param): + r'''method_with_grpc_only_param + + TBD + + Args: + simple_param (int): + + ''' + self._interpreter.method_with_grpc_only_param(simple_param) + + @ivi_synchronized + def method_with_proto_only_parameter(self, attribute_value): + r'''method_with_proto_only_parameter + + TBD + + Args: + attribute_value (int): + + ''' + self._interpreter.method_with_proto_only_parameter(attribute_value) + + @ivi_synchronized + def mixed_ivi_dance_and_len_mechanism(self, input_values): + r'''mixed_ivi_dance_and_len_mechanism + + Test method with mixed size mechanisms: one len-sized input array and one IVI-dance output array. + + Args: + input_values (list of float): Input array of doubles using len size mechanism. + + + Returns: + output_array (list of int): Output array using IVI-dance size mechanism. + + ''' + output_array = self._interpreter.mixed_ivi_dance_and_len_mechanism(input_values) + return output_array + + @ivi_synchronized + def multiple_array_types(self, output_array_size, input_array_of_floats, input_array_of_integers=None): + r'''multiple_array_types + + Receives and returns multiple types of arrays. + + Args: + output_array_size (int): Size of the array that will be returned. + + input_array_of_floats (list of float): Array of floats + + input_array_of_integers (list of int): Array of integers. Optional. If passed in then size must match that of inputArrayOfFloats. + + + Returns: + output_array (list of float): Array that will be returned. + + Note: The size must be at least outputArraySize. + + output_array_of_fixed_length (list of float): An array of doubles with fixed size. + + ''' + if input_array_of_integers is not None and len(input_array_of_integers) != len(input_array_of_floats): # case S160 + raise ValueError("Length of input_array_of_integers and input_array_of_floats parameters do not match.") # case S160 + output_array, output_array_of_fixed_length = self._interpreter.multiple_array_types(output_array_size, input_array_of_floats, input_array_of_integers) + return output_array, output_array_of_fixed_length + + @ivi_synchronized + def multiple_arrays_different_size(self, values_array, data_array): + r'''multiple_arrays_different_size + + Test method with multiple arrays that have different size parameters. This tests the length handling mechanism where different array parameters can reference different size parameters. + + Args: + values_array (list of float): Array of double values with its own size parameter. + + data_array (list of int): Array of integer values with a different size parameter. + + ''' + self._interpreter.multiple_arrays_different_size(values_array, data_array) + + @ivi_synchronized + def multiple_arrays_same_size(self, values1, values2, values3, values4): + r'''multiple_arrays_same_size + + Method to test multiple arrays that use the same size + + Args: + values1 (list of float): Array 1 of same size. + + values2 (list of float): Array 2 of same size. + + values3 (list of float): Array 3 of same size. + + values4 (list of float): Array 4 of same size. + + ''' + if values2 is not None and len(values2) != len(values1): # case S160 + raise ValueError("Length of values2 and values1 parameters do not match.") # case S160 + if values3 is not None and len(values3) != len(values1): # case S160 + raise ValueError("Length of values3 and values1 parameters do not match.") # case S160 + if values4 is not None and len(values4) != len(values1): # case S160 + raise ValueError("Length of values4 and values1 parameters do not match.") # case S160 + self._interpreter.multiple_arrays_same_size(values1, values2, values3, values4) + + @ivi_synchronized + def one_input_function(self, a_number): + r'''one_input_function + + This method takes one parameter other than the session. + + Args: + a_number (int): Contains a number + + ''' + self._interpreter.one_input_function(a_number) + + @ivi_synchronized + def parameters_are_multiple_types(self, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): + r'''parameters_are_multiple_types + + Has parameters of multiple types. + + Args: + a_boolean (bool): Contains a boolean. + + an_int32 (int): Contains a 32-bit integer. + + an_int64 (int): Contains a 64-bit integer. + + an_int_enum (enums.Turtle): Indicates a ninja turtle + + +---+---------------+ + | 0 | Leonardo | + +---+---------------+ + | 1 | Donatello | + +---+---------------+ + | 2 | Raphael | + +---+---------------+ + | 3 | Mich elangelo | + +---+---------------+ + + a_float (float): The measured value. + + a_float_enum (enums.FloatEnum): A float enum. + + a_string (str): An IVI dance string. + + ''' + if type(an_int_enum) is not enums.Turtle: + raise TypeError('Parameter an_int_enum must be of type ' + str(enums.Turtle)) + if type(a_float_enum) is not enums.FloatEnum: + raise TypeError('Parameter a_float_enum must be of type ' + str(enums.FloatEnum)) + self._interpreter.parameters_are_multiple_types(a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string) + + @ivi_synchronized + def simple_function(self): + r'''simple_function + + This method takes no parameters other than the session. + ''' + self._interpreter.simple_function() + + @ivi_synchronized + def read(self, maximum_time): + r'''read + + Acquires a single measurement and returns the measured value. + + Args: + maximum_time (hightime.timedelta): Specifies the **maximum_time** allowed in seconds. + + + Returns: + reading (float): The measured value. + + ''' + maximum_time = _converters.convert_timedelta_to_seconds_real64(maximum_time) + reading = self._interpreter.read(maximum_time) + return reading + + @ivi_synchronized + def return_a_number_and_a_string(self): + r'''return_a_number_and_a_string + + Returns a number and a string. + + Note: This method rules! + + Returns: + a_number (int): Contains a number. + + a_string (str): Contains a string. Buffer must be 256 bytes or larger. + + ''' + a_number, a_string = self._interpreter.return_a_number_and_a_string() + return a_number, a_string + + @ivi_synchronized + def return_duration_in_seconds(self): + r'''return_duration_in_seconds + + Returns a hightime.timedelta instance. + + Returns: + timedelta (hightime.timedelta): Duration in seconds. + + ''' + timedelta = self._interpreter.return_duration_in_seconds() + return _converters.convert_seconds_real64_to_timedelta(timedelta) + + @ivi_synchronized + def return_list_of_durations_in_seconds(self, number_of_elements): + r'''return_list_of_durations_in_seconds + + Returns a list of hightime.timedelta instances. + + Args: + number_of_elements (int): Number of elements in output. + + + Returns: + timedeltas (hightime.timedelta): Contains a list of hightime.timedelta instances. + + ''' + timedeltas = self._interpreter.return_list_of_durations_in_seconds(number_of_elements) + return _converters.convert_seconds_real64_to_timedeltas(timedeltas) + + @ivi_synchronized + def return_multiple_types(self, array_size): + r'''return_multiple_types + + Returns multiple types. + + Args: + array_size (int): Number of measurements to acquire. + + + Returns: + a_boolean (bool): Contains a boolean. + + an_int32 (int): Contains a 32-bit integer. + + an_int64 (int): Contains a 64-bit integer. + + an_int_enum (enums.Turtle): Indicates a ninja turtle + + +---+---------------+ + | 0 | Leonardo | + +---+---------------+ + | 1 | Donatello | + +---+---------------+ + | 2 | Raphael | + +---+---------------+ + | 3 | Mich elangelo | + +---+---------------+ + + a_float (float): The measured value. + + a_float_enum (enums.FloatEnum): A float enum. + + an_array (list of float): An array of measurement values. + + Note: The size must be at least arraySize. + + a_string (str): An IVI dance string. + + ''' + a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, an_array, a_string = self._interpreter.return_multiple_types(array_size) + return a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, an_array, a_string + + @ivi_synchronized + def set_custom_type(self, cs): + r'''set_custom_type + + This method takes a custom type. + + Args: + cs (CustomStruct): Set using custom type + + ''' + self._interpreter.set_custom_type(cs) + + @ivi_synchronized + def set_custom_type_array(self, cs): + r'''set_custom_type_array + + This method takes an array of custom types. + + Args: + cs (list of CustomStruct): Set using custom type + + ''' + self._interpreter.set_custom_type_array(cs) + + @ivi_synchronized + def string_valued_enum_input_function_with_defaults(self, a_mobile_os_name=enums.MobileOSNames.ANDROID): + r'''string_valued_enum_input_function_with_defaults + + This method takes one parameter other than the session, which happens to be a string-valued enum and has a default value. + + Args: + a_mobile_os_name (enums.MobileOSNames): Indicates a Mobile OS + + +---------+---------+ + | ANDROID | Android | + +---------+---------+ + | IOS | iOS | + +---------+---------+ + | NONE | None | + +---------+---------+ + + ''' + if type(a_mobile_os_name) is not enums.MobileOSNames: + raise TypeError('Parameter a_mobile_os_name must be of type ' + str(enums.MobileOSNames)) + self._interpreter.string_valued_enum_input_function_with_defaults(a_mobile_os_name) + + @ivi_synchronized + def two_input_function(self, a_number, a_string): + r'''two_input_function + + This method takes two parameters other than the session. + + Args: + a_number (float): Contains a number + + a_string (str): Contains a string + + ''' + self._interpreter.two_input_function(a_number, a_string) + + @ivi_synchronized + def use64_bit_number(self, input): + r'''use64_bit_number + + Returns a number and a string. + + Note: This method rules! + + Args: + input (int): A big number on its way in. + + + Returns: + output (int): A big number on its way out. + + ''' + output = self._interpreter.use64_bit_number(input) + return output + + @ivi_synchronized + def write_waveform(self, waveform): + r'''write_waveform + + Writes waveform to the driver + + Args: + waveform (array.array("d")): Waveform data. + + ''' + self._interpreter.write_waveform(waveform) + + @ivi_synchronized + def write_waveform_numpy(self, waveform): + r'''write_waveform_numpy + + Writes waveform to the driver + + Args: + waveform (numpy.array(dtype=numpy.float64)): Waveform data. + + ''' + import numpy + + if type(waveform) is not numpy.ndarray: + raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) + if numpy.isfortran(waveform) is True: + raise TypeError('waveform must be in C-order') + if waveform.dtype is not numpy.dtype('float64'): + raise TypeError('waveform must be numpy.ndarray of dtype=float64, is ' + str(waveform.dtype)) + if waveform.ndim != 1: + raise TypeError('waveform must be numpy.ndarray of dimension=1, is ' + str(waveform.ndim)) + self._interpreter.write_waveform_numpy(waveform) + + @ivi_synchronized + def write_waveform_numpy_complex128(self, waveform_data_array): + r'''write_waveform_numpy_complex128 + + A method that writes a waveform of numpy complex128 samples. + + Args: + waveform_data_array (numpy.array(dtype=numpy.complex128)): Specifies the array of data to load into the waveform. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('complex128'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex128, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + self._interpreter.write_waveform_numpy_complex128(waveform_data_array) + + @ivi_synchronized + def write_waveform_numpy_complex64(self, waveform_data_array): + r'''write_waveform_numpy_complex64 + + A method that writes a waveform of numpy complex64 samples. + + Args: + waveform_data_array (numpy.array(dtype=numpy.complex64)): Specifies the array of data to load into the waveform. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('complex64'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex64, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + self._interpreter.write_waveform_numpy_complex64(waveform_data_array) + + @ivi_synchronized + def write_waveform_numpy_complex_interleaved_i16(self, waveform_data_array): + r'''write_waveform_numpy_complex_interleaved_i16 + + A method that writes a waveform of numpy complex i16 samples. + + Args: + waveform_data_array (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('int16'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=int16, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + self._interpreter.write_waveform_numpy_complex_interleaved_i16(waveform_data_array) + + def _close(self): + r'''_close + + Closes the specified session and deallocates resources that it reserved. + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Performs a self-test + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Performs a self-test. + + Returns: + self_test_result (int): Contains the value returned from the instrument self-test. Zero indicates success. + + self_test_message (str): This parameter contains the string returned from the instrument self-test. The array must contain at least 256 elements. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/nifake/nifake/unit_tests/_matchers.py b/generated/nifake/nifake/unit_tests/_matchers.py new file mode 100644 index 0000000000..f95383417b --- /dev/null +++ b/generated/nifake/nifake/unit_tests/_matchers.py @@ -0,0 +1,369 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nifake._complextype as _complextype +import nifake._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +def _compare_complex_number_arrays(expected, actual): + for i in range(expected.expected_size): + expected_value = expected.expected_data[i] + actual_value = actual[i] + if expected_value.real != actual_value.real or expected_value.imag != actual_value.imag: + return False + return True + + +class NIComplexNumberPointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexNumber) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexNumberPointerMatcher({self.expected_data})" + + +class NIComplexNumberF32PointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexNumberF32) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexNumberF32PointerMatcher({self.expected_data})" + + +class NIComplexI16PointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexI16) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexI16PointerMatcher({self.expected_data})" + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nifake/nifake/unit_tests/_mock_helper.py b/generated/nifake/nifake/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..894124c2b0 --- /dev/null +++ b/generated/nifake/nifake/unit_tests/_mock_helper.py @@ -0,0 +1,1212 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['Abort'] = {} + self._defaults['Abort']['return'] = 0 + self._defaults['AcceptListOfDurationsInSeconds'] = {} + self._defaults['AcceptListOfDurationsInSeconds']['return'] = 0 + self._defaults['BoolArrayOutputFunction'] = {} + self._defaults['BoolArrayOutputFunction']['return'] = 0 + self._defaults['BoolArrayOutputFunction']['anArray'] = None + self._defaults['ConfigureABC'] = {} + self._defaults['ConfigureABC']['return'] = 0 + self._defaults['CustomNestedStructRoundtrip'] = {} + self._defaults['CustomNestedStructRoundtrip']['return'] = 0 + self._defaults['CustomNestedStructRoundtrip']['nestedCustomTypeOut'] = None + self._defaults['DoubleAllTheNums'] = {} + self._defaults['DoubleAllTheNums']['return'] = 0 + self._defaults['EnumArrayOutputFunction'] = {} + self._defaults['EnumArrayOutputFunction']['return'] = 0 + self._defaults['EnumArrayOutputFunction']['anArray'] = None + self._defaults['EnumInputFunctionWithDefaults'] = {} + self._defaults['EnumInputFunctionWithDefaults']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer'] = {} + self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None + self._defaults['FetchWaveform'] = {} + self._defaults['FetchWaveform']['return'] = 0 + self._defaults['FetchWaveform']['waveformData'] = None + self._defaults['FetchWaveform']['actualNumberOfSamples'] = None + self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter'] = {} + self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] = 0 + self._defaults['FunctionWithIntflagParameter'] = {} + self._defaults['FunctionWithIntflagParameter']['return'] = 0 + self._defaults['FunctionWithRepeatedCapabilityType'] = {} + self._defaults['FunctionWithRepeatedCapabilityType']['return'] = 0 + self._defaults['GetABoolean'] = {} + self._defaults['GetABoolean']['return'] = 0 + self._defaults['GetABoolean']['aBoolean'] = None + self._defaults['GetANumber'] = {} + self._defaults['GetANumber']['return'] = 0 + self._defaults['GetANumber']['aNumber'] = None + self._defaults['GetAStringOfFixedMaximumSize'] = {} + self._defaults['GetAStringOfFixedMaximumSize']['return'] = 0 + self._defaults['GetAStringOfFixedMaximumSize']['aString'] = None + self._defaults['GetAStringUsingPythonCode'] = {} + self._defaults['GetAStringUsingPythonCode']['return'] = 0 + self._defaults['GetAStringUsingPythonCode']['aString'] = None + self._defaults['GetAnIviDanceCharArray'] = {} + self._defaults['GetAnIviDanceCharArray']['return'] = 0 + self._defaults['GetAnIviDanceCharArray']['charArray'] = None + self._defaults['GetAnIviDanceWithATwistString'] = {} + self._defaults['GetAnIviDanceWithATwistString']['return'] = 0 + self._defaults['GetAnIviDanceWithATwistString']['actualSize'] = None + self._defaults['GetAnIviDanceWithATwistString']['aString'] = None + self._defaults['GetArrayForPythonCodeCustomType'] = {} + self._defaults['GetArrayForPythonCodeCustomType']['return'] = 0 + self._defaults['GetArrayForPythonCodeCustomType']['arrayOut'] = None + self._defaults['GetArrayForPythonCodeDouble'] = {} + self._defaults['GetArrayForPythonCodeDouble']['return'] = 0 + self._defaults['GetArrayForPythonCodeDouble']['arrayOut'] = None + self._defaults['GetArraySizeForPythonCode'] = {} + self._defaults['GetArraySizeForPythonCode']['return'] = 0 + self._defaults['GetArraySizeForPythonCode']['sizeOut'] = None + self._defaults['GetArrayUsingIviDance'] = {} + self._defaults['GetArrayUsingIviDance']['return'] = 0 + self._defaults['GetArrayUsingIviDance']['arrayOut'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['attributeValue'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['attributeValue'] = None + self._defaults['GetAttributeViInt64'] = {} + self._defaults['GetAttributeViInt64']['return'] = 0 + self._defaults['GetAttributeViInt64']['attributeValue'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['attributeValue'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['attributeValue'] = None + self._defaults['GetCalDateAndTime'] = {} + self._defaults['GetCalDateAndTime']['return'] = 0 + self._defaults['GetCalDateAndTime']['month'] = None + self._defaults['GetCalDateAndTime']['day'] = None + self._defaults['GetCalDateAndTime']['year'] = None + self._defaults['GetCalDateAndTime']['hour'] = None + self._defaults['GetCalDateAndTime']['minute'] = None + self._defaults['GetCalInterval'] = {} + self._defaults['GetCalInterval']['return'] = 0 + self._defaults['GetCalInterval']['months'] = None + self._defaults['GetChannelNames'] = {} + self._defaults['GetChannelNames']['return'] = 0 + self._defaults['GetChannelNames']['names'] = None + self._defaults['GetCustomType'] = {} + self._defaults['GetCustomType']['return'] = 0 + self._defaults['GetCustomType']['cs'] = None + self._defaults['GetCustomTypeArray'] = {} + self._defaults['GetCustomTypeArray']['return'] = 0 + self._defaults['GetCustomTypeArray']['cs'] = None + self._defaults['GetCustomTypeTypedef'] = {} + self._defaults['GetCustomTypeTypedef']['return'] = 0 + self._defaults['GetCustomTypeTypedef']['cst'] = None + self._defaults['GetCustomTypeTypedef']['csnt'] = None + self._defaults['GetEnumValue'] = {} + self._defaults['GetEnumValue']['return'] = 0 + self._defaults['GetEnumValue']['aQuantity'] = None + self._defaults['GetEnumValue']['aTurtle'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['description'] = None + self._defaults['GetParameterWithOverriddenGrpcName'] = {} + self._defaults['GetParameterWithOverriddenGrpcName']['return'] = 0 + self._defaults['GetParameterWithOverriddenGrpcName']['originalParameter'] = None + self._defaults['ImportAttributeConfigurationBuffer'] = {} + self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ImportAttributeConfigurationBufferEx'] = {} + self._defaults['ImportAttributeConfigurationBufferEx']['return'] = 0 + self._defaults['InitWithOptions'] = {} + self._defaults['InitWithOptions']['return'] = 0 + self._defaults['InitWithOptions']['vi'] = None + self._defaults['Initiate'] = {} + self._defaults['Initiate']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['MethodUsingWholeAndFractionalNumbers'] = {} + self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] = 0 + self._defaults['MethodUsingWholeAndFractionalNumbers']['wholeNumber'] = None + self._defaults['MethodUsingWholeAndFractionalNumbers']['fractionalNumber'] = None + self._defaults['MethodWithGrpcOnlyParam'] = {} + self._defaults['MethodWithGrpcOnlyParam']['return'] = 0 + self._defaults['MethodWithProtoOnlyParameter'] = {} + self._defaults['MethodWithProtoOnlyParameter']['return'] = 0 + self._defaults['MixedIviDanceAndLenMechanism'] = {} + self._defaults['MixedIviDanceAndLenMechanism']['return'] = 0 + self._defaults['MixedIviDanceAndLenMechanism']['outputArray'] = None + self._defaults['MultipleArrayTypes'] = {} + self._defaults['MultipleArrayTypes']['return'] = 0 + self._defaults['MultipleArrayTypes']['outputArray'] = None + self._defaults['MultipleArrayTypes']['outputArrayOfFixedLength'] = None + self._defaults['MultipleArraysDifferentSize'] = {} + self._defaults['MultipleArraysDifferentSize']['return'] = 0 + self._defaults['MultipleArraysSameSize'] = {} + self._defaults['MultipleArraysSameSize']['return'] = 0 + self._defaults['OneInputFunction'] = {} + self._defaults['OneInputFunction']['return'] = 0 + self._defaults['ParametersAreMultipleTypes'] = {} + self._defaults['ParametersAreMultipleTypes']['return'] = 0 + self._defaults['PoorlyNamedSimpleFunction'] = {} + self._defaults['PoorlyNamedSimpleFunction']['return'] = 0 + self._defaults['Read'] = {} + self._defaults['Read']['return'] = 0 + self._defaults['Read']['reading'] = None + self._defaults['ReadFromChannel'] = {} + self._defaults['ReadFromChannel']['return'] = 0 + self._defaults['ReadFromChannel']['reading'] = None + self._defaults['ReturnANumberAndAString'] = {} + self._defaults['ReturnANumberAndAString']['return'] = 0 + self._defaults['ReturnANumberAndAString']['aNumber'] = None + self._defaults['ReturnANumberAndAString']['aString'] = None + self._defaults['ReturnDurationInSeconds'] = {} + self._defaults['ReturnDurationInSeconds']['return'] = 0 + self._defaults['ReturnDurationInSeconds']['timedelta'] = None + self._defaults['ReturnListOfDurationsInSeconds'] = {} + self._defaults['ReturnListOfDurationsInSeconds']['return'] = 0 + self._defaults['ReturnListOfDurationsInSeconds']['timedeltas'] = None + self._defaults['ReturnMultipleTypes'] = {} + self._defaults['ReturnMultipleTypes']['return'] = 0 + self._defaults['ReturnMultipleTypes']['aBoolean'] = None + self._defaults['ReturnMultipleTypes']['anInt32'] = None + self._defaults['ReturnMultipleTypes']['anInt64'] = None + self._defaults['ReturnMultipleTypes']['anIntEnum'] = None + self._defaults['ReturnMultipleTypes']['aFloat'] = None + self._defaults['ReturnMultipleTypes']['aFloatEnum'] = None + self._defaults['ReturnMultipleTypes']['anArray'] = None + self._defaults['ReturnMultipleTypes']['aString'] = None + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViInt64'] = {} + self._defaults['SetAttributeViInt64']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetCustomType'] = {} + self._defaults['SetCustomType']['return'] = 0 + self._defaults['SetCustomTypeArray'] = {} + self._defaults['SetCustomTypeArray']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['StringValuedEnumInputFunctionWithDefaults'] = {} + self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] = 0 + self._defaults['TwoInputFunction'] = {} + self._defaults['TwoInputFunction']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['Use64BitNumber'] = {} + self._defaults['Use64BitNumber']['return'] = 0 + self._defaults['Use64BitNumber']['output'] = None + self._defaults['WriteWaveform'] = {} + self._defaults['WriteWaveform']['return'] = 0 + self._defaults['WriteWaveformNumpyComplex128'] = {} + self._defaults['WriteWaveformNumpyComplex128']['return'] = 0 + self._defaults['WriteWaveformNumpyComplex64'] = {} + self._defaults['WriteWaveformNumpyComplex64']['return'] = 0 + self._defaults['WriteWaveformNumpyComplexInterleavedI16'] = {} + self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] = 0 + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niFake_Abort(self, vi): # noqa: N802 + if self._defaults['Abort']['return'] != 0: + return self._defaults['Abort']['return'] + return self._defaults['Abort']['return'] + + def niFake_AcceptListOfDurationsInSeconds(self, vi, count, delays): # noqa: N802 + if self._defaults['AcceptListOfDurationsInSeconds']['return'] != 0: + return self._defaults['AcceptListOfDurationsInSeconds']['return'] + return self._defaults['AcceptListOfDurationsInSeconds']['return'] + + def niFake_BoolArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 + if self._defaults['BoolArrayOutputFunction']['return'] != 0: + return self._defaults['BoolArrayOutputFunction']['return'] + # an_array + if self._defaults['BoolArrayOutputFunction']['anArray'] is None: + raise MockFunctionCallError("niFake_BoolArrayOutputFunction", param='anArray') + test_value = self._defaults['BoolArrayOutputFunction']['anArray'] + try: + an_array_ref = an_array.contents + except AttributeError: + an_array_ref = an_array + assert len(an_array_ref) >= len(test_value) + for i in range(len(test_value)): + an_array_ref[i] = test_value[i] + return self._defaults['BoolArrayOutputFunction']['return'] + + def niFake_ConfigureABC(self, vi): # noqa: N802 + if self._defaults['ConfigureABC']['return'] != 0: + return self._defaults['ConfigureABC']['return'] + return self._defaults['ConfigureABC']['return'] + + def niFake_CustomNestedStructRoundtrip(self, nested_custom_type_in, nested_custom_type_out): # noqa: N802 + if self._defaults['CustomNestedStructRoundtrip']['return'] != 0: + return self._defaults['CustomNestedStructRoundtrip']['return'] + # nested_custom_type_out + if self._defaults['CustomNestedStructRoundtrip']['nestedCustomTypeOut'] is None: + raise MockFunctionCallError("niFake_CustomNestedStructRoundtrip", param='nestedCustomTypeOut') + for field in self._defaults['CustomNestedStructRoundtrip']['nested_custom_type_out']._fields_: + field_name = field[0] + setattr(nested_custom_type_out.contents, field_name, getattr(self._defaults['CustomNestedStructRoundtrip']['nested_custom_type_out'], field_name)) + return self._defaults['CustomNestedStructRoundtrip']['return'] + + def niFake_DoubleAllTheNums(self, vi, number_count, numbers): # noqa: N802 + if self._defaults['DoubleAllTheNums']['return'] != 0: + return self._defaults['DoubleAllTheNums']['return'] + return self._defaults['DoubleAllTheNums']['return'] + + def niFake_EnumArrayOutputFunction(self, vi, number_of_elements, an_array): # noqa: N802 + if self._defaults['EnumArrayOutputFunction']['return'] != 0: + return self._defaults['EnumArrayOutputFunction']['return'] + # an_array + if self._defaults['EnumArrayOutputFunction']['anArray'] is None: + raise MockFunctionCallError("niFake_EnumArrayOutputFunction", param='anArray') + test_value = self._defaults['EnumArrayOutputFunction']['anArray'] + try: + an_array_ref = an_array.contents + except AttributeError: + an_array_ref = an_array + assert len(an_array_ref) >= len(test_value) + for i in range(len(test_value)): + an_array_ref[i] = test_value[i] + return self._defaults['EnumArrayOutputFunction']['return'] + + def niFake_EnumInputFunctionWithDefaults(self, vi, a_turtle): # noqa: N802 + if self._defaults['EnumInputFunctionWithDefaults']['return'] != 0: + return self._defaults['EnumInputFunctionWithDefaults']['return'] + return self._defaults['EnumInputFunctionWithDefaults']['return'] + + def niFake_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + # configuration + if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: + raise MockFunctionCallError("niFake_ExportAttributeConfigurationBuffer", param='configuration') + if size_in_bytes.value == 0: + return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) + try: + configuration_ref = configuration.contents + except AttributeError: + configuration_ref = configuration + for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): + configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + + def niFake_FetchWaveform(self, vi, number_of_samples, waveform_data, actual_number_of_samples): # noqa: N802 + if self._defaults['FetchWaveform']['return'] != 0: + return self._defaults['FetchWaveform']['return'] + # waveform_data + if self._defaults['FetchWaveform']['waveformData'] is None: + raise MockFunctionCallError("niFake_FetchWaveform", param='waveformData') + test_value = self._defaults['FetchWaveform']['waveformData'] + try: + waveform_data_ref = waveform_data.contents + except AttributeError: + waveform_data_ref = waveform_data + assert len(waveform_data_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_data_ref[i] = test_value[i] + # actual_number_of_samples + if self._defaults['FetchWaveform']['actualNumberOfSamples'] is None: + raise MockFunctionCallError("niFake_FetchWaveform", param='actualNumberOfSamples') + if actual_number_of_samples is not None: + actual_number_of_samples.contents.value = self._defaults['FetchWaveform']['actualNumberOfSamples'] + return self._defaults['FetchWaveform']['return'] + + def niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter(self, vi, multidimensional_array): # noqa: N802 + if self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] != 0: + return self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] + return self._defaults['FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter']['return'] + + def niFake_FunctionWithIntflagParameter(self, vi, flag): # noqa: N802 + if self._defaults['FunctionWithIntflagParameter']['return'] != 0: + return self._defaults['FunctionWithIntflagParameter']['return'] + return self._defaults['FunctionWithIntflagParameter']['return'] + + def niFake_FunctionWithRepeatedCapabilityType(self, vi, site_list): # noqa: N802 + if self._defaults['FunctionWithRepeatedCapabilityType']['return'] != 0: + return self._defaults['FunctionWithRepeatedCapabilityType']['return'] + return self._defaults['FunctionWithRepeatedCapabilityType']['return'] + + def niFake_GetABoolean(self, vi, a_boolean): # noqa: N802 + if self._defaults['GetABoolean']['return'] != 0: + return self._defaults['GetABoolean']['return'] + # a_boolean + if self._defaults['GetABoolean']['aBoolean'] is None: + raise MockFunctionCallError("niFake_GetABoolean", param='aBoolean') + if a_boolean is not None: + a_boolean.contents.value = self._defaults['GetABoolean']['aBoolean'] + return self._defaults['GetABoolean']['return'] + + def niFake_GetANumber(self, vi, a_number): # noqa: N802 + if self._defaults['GetANumber']['return'] != 0: + return self._defaults['GetANumber']['return'] + # a_number + if self._defaults['GetANumber']['aNumber'] is None: + raise MockFunctionCallError("niFake_GetANumber", param='aNumber') + if a_number is not None: + a_number.contents.value = self._defaults['GetANumber']['aNumber'] + return self._defaults['GetANumber']['return'] + + def niFake_GetAStringOfFixedMaximumSize(self, vi, a_string): # noqa: N802 + if self._defaults['GetAStringOfFixedMaximumSize']['return'] != 0: + return self._defaults['GetAStringOfFixedMaximumSize']['return'] + # a_string + if self._defaults['GetAStringOfFixedMaximumSize']['aString'] is None: + raise MockFunctionCallError("niFake_GetAStringOfFixedMaximumSize", param='aString') + test_value = self._defaults['GetAStringOfFixedMaximumSize']['aString'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(a_string) >= len(test_value) + for i in range(len(test_value)): + a_string[i] = test_value[i] + return self._defaults['GetAStringOfFixedMaximumSize']['return'] + + def niFake_GetAStringUsingPythonCode(self, vi, a_number, a_string): # noqa: N802 + if self._defaults['GetAStringUsingPythonCode']['return'] != 0: + return self._defaults['GetAStringUsingPythonCode']['return'] + # a_string + if self._defaults['GetAStringUsingPythonCode']['aString'] is None: + raise MockFunctionCallError("niFake_GetAStringUsingPythonCode", param='aString') + test_value = self._defaults['GetAStringUsingPythonCode']['aString'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(a_string) >= len(test_value) + for i in range(len(test_value)): + a_string[i] = test_value[i] + return self._defaults['GetAStringUsingPythonCode']['return'] + + def niFake_GetAnIviDanceCharArray(self, vi, buffer_size, char_array): # noqa: N802 + if self._defaults['GetAnIviDanceCharArray']['return'] != 0: + return self._defaults['GetAnIviDanceCharArray']['return'] + # char_array + if self._defaults['GetAnIviDanceCharArray']['charArray'] is None: + raise MockFunctionCallError("niFake_GetAnIviDanceCharArray", param='charArray') + if buffer_size.value == 0: + return len(self._defaults['GetAnIviDanceCharArray']['charArray']) + char_array.value = self._defaults['GetAnIviDanceCharArray']['charArray'].encode('ascii') + return self._defaults['GetAnIviDanceCharArray']['return'] + + def niFake_GetAnIviDanceWithATwistString(self, vi, buffer_size, a_string, actual_size): # noqa: N802 + if self._defaults['GetAnIviDanceWithATwistString']['return'] != 0: + return self._defaults['GetAnIviDanceWithATwistString']['return'] + # actual_size + if self._defaults['GetAnIviDanceWithATwistString']['actualSize'] is None: + raise MockFunctionCallError("niFake_GetAnIviDanceWithATwistString", param='actualSize') + if actual_size is not None: + actual_size.contents.value = self._defaults['GetAnIviDanceWithATwistString']['actualSize'] + # a_string + if self._defaults['GetAnIviDanceWithATwistString']['aString'] is None: + raise MockFunctionCallError("niFake_GetAnIviDanceWithATwistString", param='aString') + if buffer_size.value == 0: + return len(self._defaults['GetAnIviDanceWithATwistString']['aString']) + a_string.value = self._defaults['GetAnIviDanceWithATwistString']['aString'].encode('ascii') + return self._defaults['GetAnIviDanceWithATwistString']['return'] + + def niFake_GetArrayForPythonCodeCustomType(self, vi, number_of_elements, array_out): # noqa: N802 + if self._defaults['GetArrayForPythonCodeCustomType']['return'] != 0: + return self._defaults['GetArrayForPythonCodeCustomType']['return'] + # array_out + if self._defaults['GetArrayForPythonCodeCustomType']['arrayOut'] is None: + raise MockFunctionCallError("niFake_GetArrayForPythonCodeCustomType", param='arrayOut') + test_value = self._defaults['GetArrayForPythonCodeCustomType']['arrayOut'] + try: + array_out_ref = array_out.contents + except AttributeError: + array_out_ref = array_out + assert len(array_out_ref) >= len(test_value) + for i in range(len(test_value)): + array_out_ref[i] = test_value[i] + return self._defaults['GetArrayForPythonCodeCustomType']['return'] + + def niFake_GetArrayForPythonCodeDouble(self, vi, number_of_elements, array_out): # noqa: N802 + if self._defaults['GetArrayForPythonCodeDouble']['return'] != 0: + return self._defaults['GetArrayForPythonCodeDouble']['return'] + # array_out + if self._defaults['GetArrayForPythonCodeDouble']['arrayOut'] is None: + raise MockFunctionCallError("niFake_GetArrayForPythonCodeDouble", param='arrayOut') + test_value = self._defaults['GetArrayForPythonCodeDouble']['arrayOut'] + try: + array_out_ref = array_out.contents + except AttributeError: + array_out_ref = array_out + assert len(array_out_ref) >= len(test_value) + for i in range(len(test_value)): + array_out_ref[i] = test_value[i] + return self._defaults['GetArrayForPythonCodeDouble']['return'] + + def niFake_GetArraySizeForPythonCode(self, vi, size_out): # noqa: N802 + if self._defaults['GetArraySizeForPythonCode']['return'] != 0: + return self._defaults['GetArraySizeForPythonCode']['return'] + # size_out + if self._defaults['GetArraySizeForPythonCode']['sizeOut'] is None: + raise MockFunctionCallError("niFake_GetArraySizeForPythonCode", param='sizeOut') + if size_out is not None: + size_out.contents.value = self._defaults['GetArraySizeForPythonCode']['sizeOut'] + return self._defaults['GetArraySizeForPythonCode']['return'] + + def niFake_GetArrayUsingIviDance(self, vi, array_size, array_out): # noqa: N802 + if self._defaults['GetArrayUsingIviDance']['return'] != 0: + return self._defaults['GetArrayUsingIviDance']['return'] + # array_out + if self._defaults['GetArrayUsingIviDance']['arrayOut'] is None: + raise MockFunctionCallError("niFake_GetArrayUsingIviDance", param='arrayOut') + if array_size.value == 0: + return len(self._defaults['GetArrayUsingIviDance']['arrayOut']) + try: + array_out_ref = array_out.contents + except AttributeError: + array_out_ref = array_out + for i in range(len(self._defaults['GetArrayUsingIviDance']['arrayOut'])): + array_out_ref[i] = self._defaults['GetArrayUsingIviDance']['arrayOut'][i] + return self._defaults['GetArrayUsingIviDance']['return'] + + def niFake_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # attribute_value + if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: + raise MockFunctionCallError("niFake_GetAttributeViBoolean", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niFake_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # attribute_value + if self._defaults['GetAttributeViInt32']['attributeValue'] is None: + raise MockFunctionCallError("niFake_GetAttributeViInt32", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] + return self._defaults['GetAttributeViInt32']['return'] + + def niFake_GetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt64']['return'] != 0: + return self._defaults['GetAttributeViInt64']['return'] + # attribute_value + if self._defaults['GetAttributeViInt64']['attributeValue'] is None: + raise MockFunctionCallError("niFake_GetAttributeViInt64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt64']['attributeValue'] + return self._defaults['GetAttributeViInt64']['return'] + + def niFake_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # attribute_value + if self._defaults['GetAttributeViReal64']['attributeValue'] is None: + raise MockFunctionCallError("niFake_GetAttributeViReal64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] + return self._defaults['GetAttributeViReal64']['return'] + + def niFake_GetAttributeViString(self, vi, channel_name, attribute_id, buffer_size, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # attribute_value + if self._defaults['GetAttributeViString']['attributeValue'] is None: + raise MockFunctionCallError("niFake_GetAttributeViString", param='attributeValue') + if buffer_size.value == 0: + return len(self._defaults['GetAttributeViString']['attributeValue']) + attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niFake_GetCalDateAndTime(self, vi, cal_type, month, day, year, hour, minute): # noqa: N802 + if self._defaults['GetCalDateAndTime']['return'] != 0: + return self._defaults['GetCalDateAndTime']['return'] + # month + if self._defaults['GetCalDateAndTime']['month'] is None: + raise MockFunctionCallError("niFake_GetCalDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetCalDateAndTime']['month'] + # day + if self._defaults['GetCalDateAndTime']['day'] is None: + raise MockFunctionCallError("niFake_GetCalDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetCalDateAndTime']['day'] + # year + if self._defaults['GetCalDateAndTime']['year'] is None: + raise MockFunctionCallError("niFake_GetCalDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetCalDateAndTime']['year'] + # hour + if self._defaults['GetCalDateAndTime']['hour'] is None: + raise MockFunctionCallError("niFake_GetCalDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetCalDateAndTime']['hour'] + # minute + if self._defaults['GetCalDateAndTime']['minute'] is None: + raise MockFunctionCallError("niFake_GetCalDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetCalDateAndTime']['minute'] + return self._defaults['GetCalDateAndTime']['return'] + + def niFake_GetCalInterval(self, vi, months): # noqa: N802 + if self._defaults['GetCalInterval']['return'] != 0: + return self._defaults['GetCalInterval']['return'] + # months + if self._defaults['GetCalInterval']['months'] is None: + raise MockFunctionCallError("niFake_GetCalInterval", param='months') + if months is not None: + months.contents.value = self._defaults['GetCalInterval']['months'] + return self._defaults['GetCalInterval']['return'] + + def niFake_GetChannelNames(self, vi, indices, name_size, names): # noqa: N802 + if self._defaults['GetChannelNames']['return'] != 0: + return self._defaults['GetChannelNames']['return'] + # names + if self._defaults['GetChannelNames']['names'] is None: + raise MockFunctionCallError("niFake_GetChannelNames", param='names') + if name_size.value == 0: + return len(self._defaults['GetChannelNames']['names']) + names.value = self._defaults['GetChannelNames']['names'].encode('ascii') + return self._defaults['GetChannelNames']['return'] + + def niFake_GetCustomType(self, vi, cs): # noqa: N802 + if self._defaults['GetCustomType']['return'] != 0: + return self._defaults['GetCustomType']['return'] + # cs + if self._defaults['GetCustomType']['cs'] is None: + raise MockFunctionCallError("niFake_GetCustomType", param='cs') + for field in self._defaults['GetCustomType']['cs']._fields_: + field_name = field[0] + setattr(cs.contents, field_name, getattr(self._defaults['GetCustomType']['cs'], field_name)) + return self._defaults['GetCustomType']['return'] + + def niFake_GetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 + if self._defaults['GetCustomTypeArray']['return'] != 0: + return self._defaults['GetCustomTypeArray']['return'] + # cs + if self._defaults['GetCustomTypeArray']['cs'] is None: + raise MockFunctionCallError("niFake_GetCustomTypeArray", param='cs') + test_value = self._defaults['GetCustomTypeArray']['cs'] + try: + cs_ref = cs.contents + except AttributeError: + cs_ref = cs + assert len(cs_ref) >= len(test_value) + for i in range(len(test_value)): + cs_ref[i] = test_value[i] + return self._defaults['GetCustomTypeArray']['return'] + + def niFake_GetCustomTypeTypedef(self, vi, cst, csnt): # noqa: N802 + if self._defaults['GetCustomTypeTypedef']['return'] != 0: + return self._defaults['GetCustomTypeTypedef']['return'] + # cst + if self._defaults['GetCustomTypeTypedef']['cst'] is None: + raise MockFunctionCallError("niFake_GetCustomTypeTypedef", param='cst') + for field in self._defaults['GetCustomTypeTypedef']['cst']._fields_: + field_name = field[0] + setattr(cst.contents, field_name, getattr(self._defaults['GetCustomTypeTypedef']['cst'], field_name)) + # csnt + if self._defaults['GetCustomTypeTypedef']['csnt'] is None: + raise MockFunctionCallError("niFake_GetCustomTypeTypedef", param='csnt') + for field in self._defaults['GetCustomTypeTypedef']['csnt']._fields_: + field_name = field[0] + setattr(csnt.contents, field_name, getattr(self._defaults['GetCustomTypeTypedef']['csnt'], field_name)) + return self._defaults['GetCustomTypeTypedef']['return'] + + def niFake_GetEnumValue(self, vi, a_quantity, a_turtle): # noqa: N802 + if self._defaults['GetEnumValue']['return'] != 0: + return self._defaults['GetEnumValue']['return'] + # a_quantity + if self._defaults['GetEnumValue']['aQuantity'] is None: + raise MockFunctionCallError("niFake_GetEnumValue", param='aQuantity') + if a_quantity is not None: + a_quantity.contents.value = self._defaults['GetEnumValue']['aQuantity'] + # a_turtle + if self._defaults['GetEnumValue']['aTurtle'] is None: + raise MockFunctionCallError("niFake_GetEnumValue", param='aTurtle') + if a_turtle is not None: + a_turtle.contents.value = self._defaults['GetEnumValue']['aTurtle'] + return self._defaults['GetEnumValue']['return'] + + def niFake_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niFake_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # description + if self._defaults['GetError']['description'] is None: + raise MockFunctionCallError("niFake_GetError", param='description') + if buffer_size.value == 0: + return len(self._defaults['GetError']['description']) + description.value = self._defaults['GetError']['description'].encode('ascii') + return self._defaults['GetError']['return'] + + def niFake_GetParameterWithOverriddenGrpcName(self, vi, original_parameter, enum_parameter): # noqa: N802 + if self._defaults['GetParameterWithOverriddenGrpcName']['return'] != 0: + return self._defaults['GetParameterWithOverriddenGrpcName']['return'] + # original_parameter + if self._defaults['GetParameterWithOverriddenGrpcName']['originalParameter'] is None: + raise MockFunctionCallError("niFake_GetParameterWithOverriddenGrpcName", param='originalParameter') + if original_parameter is not None: + original_parameter.contents.value = self._defaults['GetParameterWithOverriddenGrpcName']['originalParameter'] + return self._defaults['GetParameterWithOverriddenGrpcName']['return'] + + def niFake_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + + def niFake_ImportAttributeConfigurationBufferEx(self, vi, size, configuration): # noqa: N802 + if self._defaults['ImportAttributeConfigurationBufferEx']['return'] != 0: + return self._defaults['ImportAttributeConfigurationBufferEx']['return'] + return self._defaults['ImportAttributeConfigurationBufferEx']['return'] + + def niFake_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 + if self._defaults['InitWithOptions']['return'] != 0: + return self._defaults['InitWithOptions']['return'] + # vi + if self._defaults['InitWithOptions']['vi'] is None: + raise MockFunctionCallError("niFake_InitWithOptions", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitWithOptions']['vi'] + return self._defaults['InitWithOptions']['return'] + + def niFake_Initiate(self, vi): # noqa: N802 + if self._defaults['Initiate']['return'] != 0: + return self._defaults['Initiate']['return'] + return self._defaults['Initiate']['return'] + + def niFake_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niFake_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niFake_MethodUsingWholeAndFractionalNumbers(self, whole_number, fractional_number): # noqa: N802 + if self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] != 0: + return self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] + # whole_number + if self._defaults['MethodUsingWholeAndFractionalNumbers']['wholeNumber'] is None: + raise MockFunctionCallError("niFake_MethodUsingWholeAndFractionalNumbers", param='wholeNumber') + if whole_number is not None: + whole_number.contents.value = self._defaults['MethodUsingWholeAndFractionalNumbers']['wholeNumber'] + # fractional_number + if self._defaults['MethodUsingWholeAndFractionalNumbers']['fractionalNumber'] is None: + raise MockFunctionCallError("niFake_MethodUsingWholeAndFractionalNumbers", param='fractionalNumber') + if fractional_number is not None: + fractional_number.contents.value = self._defaults['MethodUsingWholeAndFractionalNumbers']['fractionalNumber'] + return self._defaults['MethodUsingWholeAndFractionalNumbers']['return'] + + def niFake_MethodWithGrpcOnlyParam(self, simple_param): # noqa: N802 + if self._defaults['MethodWithGrpcOnlyParam']['return'] != 0: + return self._defaults['MethodWithGrpcOnlyParam']['return'] + return self._defaults['MethodWithGrpcOnlyParam']['return'] + + def niFake_MethodWithProtoOnlyParameter(self, attribute_value): # noqa: N802 + if self._defaults['MethodWithProtoOnlyParameter']['return'] != 0: + return self._defaults['MethodWithProtoOnlyParameter']['return'] + return self._defaults['MethodWithProtoOnlyParameter']['return'] + + def niFake_MixedIviDanceAndLenMechanism(self, vi, input_values, input_values_size, output_size, output_array): # noqa: N802 + if self._defaults['MixedIviDanceAndLenMechanism']['return'] != 0: + return self._defaults['MixedIviDanceAndLenMechanism']['return'] + # output_array + if self._defaults['MixedIviDanceAndLenMechanism']['outputArray'] is None: + raise MockFunctionCallError("niFake_MixedIviDanceAndLenMechanism", param='outputArray') + if output_size.value == 0: + return len(self._defaults['MixedIviDanceAndLenMechanism']['outputArray']) + try: + output_array_ref = output_array.contents + except AttributeError: + output_array_ref = output_array + for i in range(len(self._defaults['MixedIviDanceAndLenMechanism']['outputArray'])): + output_array_ref[i] = self._defaults['MixedIviDanceAndLenMechanism']['outputArray'][i] + return self._defaults['MixedIviDanceAndLenMechanism']['return'] + + def niFake_MultipleArrayTypes(self, vi, output_array_size, output_array, output_array_of_fixed_length, input_array_sizes, input_array_of_floats, input_array_of_integers): # noqa: N802 + if self._defaults['MultipleArrayTypes']['return'] != 0: + return self._defaults['MultipleArrayTypes']['return'] + # output_array + if self._defaults['MultipleArrayTypes']['outputArray'] is None: + raise MockFunctionCallError("niFake_MultipleArrayTypes", param='outputArray') + test_value = self._defaults['MultipleArrayTypes']['outputArray'] + try: + output_array_ref = output_array.contents + except AttributeError: + output_array_ref = output_array + assert len(output_array_ref) >= len(test_value) + for i in range(len(test_value)): + output_array_ref[i] = test_value[i] + # output_array_of_fixed_length + if self._defaults['MultipleArrayTypes']['outputArrayOfFixedLength'] is None: + raise MockFunctionCallError("niFake_MultipleArrayTypes", param='outputArrayOfFixedLength') + test_value = self._defaults['MultipleArrayTypes']['outputArrayOfFixedLength'] + try: + output_array_of_fixed_length_ref = output_array_of_fixed_length.contents + except AttributeError: + output_array_of_fixed_length_ref = output_array_of_fixed_length + assert len(output_array_of_fixed_length_ref) >= len(test_value) + for i in range(len(test_value)): + output_array_of_fixed_length_ref[i] = test_value[i] + return self._defaults['MultipleArrayTypes']['return'] + + def niFake_MultipleArraysDifferentSize(self, vi, values_array, values_array_size, data_array, data_array_size): # noqa: N802 + if self._defaults['MultipleArraysDifferentSize']['return'] != 0: + return self._defaults['MultipleArraysDifferentSize']['return'] + return self._defaults['MultipleArraysDifferentSize']['return'] + + def niFake_MultipleArraysSameSize(self, vi, values1, values2, values3, values4, size): # noqa: N802 + if self._defaults['MultipleArraysSameSize']['return'] != 0: + return self._defaults['MultipleArraysSameSize']['return'] + return self._defaults['MultipleArraysSameSize']['return'] + + def niFake_OneInputFunction(self, vi, a_number): # noqa: N802 + if self._defaults['OneInputFunction']['return'] != 0: + return self._defaults['OneInputFunction']['return'] + return self._defaults['OneInputFunction']['return'] + + def niFake_ParametersAreMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, a_string): # noqa: N802 + if self._defaults['ParametersAreMultipleTypes']['return'] != 0: + return self._defaults['ParametersAreMultipleTypes']['return'] + return self._defaults['ParametersAreMultipleTypes']['return'] + + def niFake_PoorlyNamedSimpleFunction(self, vi): # noqa: N802 + if self._defaults['PoorlyNamedSimpleFunction']['return'] != 0: + return self._defaults['PoorlyNamedSimpleFunction']['return'] + return self._defaults['PoorlyNamedSimpleFunction']['return'] + + def niFake_Read(self, vi, maximum_time, reading): # noqa: N802 + if self._defaults['Read']['return'] != 0: + return self._defaults['Read']['return'] + # reading + if self._defaults['Read']['reading'] is None: + raise MockFunctionCallError("niFake_Read", param='reading') + if reading is not None: + reading.contents.value = self._defaults['Read']['reading'] + return self._defaults['Read']['return'] + + def niFake_ReadFromChannel(self, vi, channel_name, maximum_time, reading): # noqa: N802 + if self._defaults['ReadFromChannel']['return'] != 0: + return self._defaults['ReadFromChannel']['return'] + # reading + if self._defaults['ReadFromChannel']['reading'] is None: + raise MockFunctionCallError("niFake_ReadFromChannel", param='reading') + if reading is not None: + reading.contents.value = self._defaults['ReadFromChannel']['reading'] + return self._defaults['ReadFromChannel']['return'] + + def niFake_ReturnANumberAndAString(self, vi, a_number, a_string): # noqa: N802 + if self._defaults['ReturnANumberAndAString']['return'] != 0: + return self._defaults['ReturnANumberAndAString']['return'] + # a_number + if self._defaults['ReturnANumberAndAString']['aNumber'] is None: + raise MockFunctionCallError("niFake_ReturnANumberAndAString", param='aNumber') + if a_number is not None: + a_number.contents.value = self._defaults['ReturnANumberAndAString']['aNumber'] + # a_string + if self._defaults['ReturnANumberAndAString']['aString'] is None: + raise MockFunctionCallError("niFake_ReturnANumberAndAString", param='aString') + test_value = self._defaults['ReturnANumberAndAString']['aString'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(a_string) >= len(test_value) + for i in range(len(test_value)): + a_string[i] = test_value[i] + return self._defaults['ReturnANumberAndAString']['return'] + + def niFake_ReturnDurationInSeconds(self, vi, timedelta): # noqa: N802 + if self._defaults['ReturnDurationInSeconds']['return'] != 0: + return self._defaults['ReturnDurationInSeconds']['return'] + # timedelta + if self._defaults['ReturnDurationInSeconds']['timedelta'] is None: + raise MockFunctionCallError("niFake_ReturnDurationInSeconds", param='timedelta') + if timedelta is not None: + timedelta.contents.value = self._defaults['ReturnDurationInSeconds']['timedelta'] + return self._defaults['ReturnDurationInSeconds']['return'] + + def niFake_ReturnListOfDurationsInSeconds(self, vi, number_of_elements, timedeltas): # noqa: N802 + if self._defaults['ReturnListOfDurationsInSeconds']['return'] != 0: + return self._defaults['ReturnListOfDurationsInSeconds']['return'] + # timedeltas + if self._defaults['ReturnListOfDurationsInSeconds']['timedeltas'] is None: + raise MockFunctionCallError("niFake_ReturnListOfDurationsInSeconds", param='timedeltas') + test_value = self._defaults['ReturnListOfDurationsInSeconds']['timedeltas'] + try: + timedeltas_ref = timedeltas.contents + except AttributeError: + timedeltas_ref = timedeltas + assert len(timedeltas_ref) >= len(test_value) + for i in range(len(test_value)): + timedeltas_ref[i] = test_value[i] + return self._defaults['ReturnListOfDurationsInSeconds']['return'] + + def niFake_ReturnMultipleTypes(self, vi, a_boolean, an_int32, an_int64, an_int_enum, a_float, a_float_enum, array_size, an_array, string_size, a_string): # noqa: N802 + if self._defaults['ReturnMultipleTypes']['return'] != 0: + return self._defaults['ReturnMultipleTypes']['return'] + # a_boolean + if self._defaults['ReturnMultipleTypes']['aBoolean'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aBoolean') + if a_boolean is not None: + a_boolean.contents.value = self._defaults['ReturnMultipleTypes']['aBoolean'] + # an_int32 + if self._defaults['ReturnMultipleTypes']['anInt32'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anInt32') + if an_int32 is not None: + an_int32.contents.value = self._defaults['ReturnMultipleTypes']['anInt32'] + # an_int64 + if self._defaults['ReturnMultipleTypes']['anInt64'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anInt64') + if an_int64 is not None: + an_int64.contents.value = self._defaults['ReturnMultipleTypes']['anInt64'] + # an_int_enum + if self._defaults['ReturnMultipleTypes']['anIntEnum'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anIntEnum') + if an_int_enum is not None: + an_int_enum.contents.value = self._defaults['ReturnMultipleTypes']['anIntEnum'] + # a_float + if self._defaults['ReturnMultipleTypes']['aFloat'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aFloat') + if a_float is not None: + a_float.contents.value = self._defaults['ReturnMultipleTypes']['aFloat'] + # a_float_enum + if self._defaults['ReturnMultipleTypes']['aFloatEnum'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aFloatEnum') + if a_float_enum is not None: + a_float_enum.contents.value = self._defaults['ReturnMultipleTypes']['aFloatEnum'] + # an_array + if self._defaults['ReturnMultipleTypes']['anArray'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='anArray') + test_value = self._defaults['ReturnMultipleTypes']['anArray'] + try: + an_array_ref = an_array.contents + except AttributeError: + an_array_ref = an_array + assert len(an_array_ref) >= len(test_value) + for i in range(len(test_value)): + an_array_ref[i] = test_value[i] + # a_string + if self._defaults['ReturnMultipleTypes']['aString'] is None: + raise MockFunctionCallError("niFake_ReturnMultipleTypes", param='aString') + if string_size.value == 0: + return len(self._defaults['ReturnMultipleTypes']['aString']) + a_string.value = self._defaults['ReturnMultipleTypes']['aString'].encode('ascii') + return self._defaults['ReturnMultipleTypes']['return'] + + def niFake_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niFake_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niFake_SetAttributeViInt64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt64']['return'] != 0: + return self._defaults['SetAttributeViInt64']['return'] + return self._defaults['SetAttributeViInt64']['return'] + + def niFake_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niFake_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niFake_SetCustomType(self, vi, cs): # noqa: N802 + if self._defaults['SetCustomType']['return'] != 0: + return self._defaults['SetCustomType']['return'] + return self._defaults['SetCustomType']['return'] + + def niFake_SetCustomTypeArray(self, vi, number_of_elements, cs): # noqa: N802 + if self._defaults['SetCustomTypeArray']['return'] != 0: + return self._defaults['SetCustomTypeArray']['return'] + return self._defaults['SetCustomTypeArray']['return'] + + def niFake_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niFake_StringValuedEnumInputFunctionWithDefaults(self, vi, a_mobile_os_name): # noqa: N802 + if self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] != 0: + return self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] + return self._defaults['StringValuedEnumInputFunctionWithDefaults']['return'] + + def niFake_TwoInputFunction(self, vi, a_number, a_string): # noqa: N802 + if self._defaults['TwoInputFunction']['return'] != 0: + return self._defaults['TwoInputFunction']['return'] + return self._defaults['TwoInputFunction']['return'] + + def niFake_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niFake_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niFake_Use64BitNumber(self, vi, input, output): # noqa: N802 + if self._defaults['Use64BitNumber']['return'] != 0: + return self._defaults['Use64BitNumber']['return'] + # output + if self._defaults['Use64BitNumber']['output'] is None: + raise MockFunctionCallError("niFake_Use64BitNumber", param='output') + if output is not None: + output.contents.value = self._defaults['Use64BitNumber']['output'] + return self._defaults['Use64BitNumber']['return'] + + def niFake_WriteWaveform(self, vi, number_of_samples, waveform): # noqa: N802 + if self._defaults['WriteWaveform']['return'] != 0: + return self._defaults['WriteWaveform']['return'] + return self._defaults['WriteWaveform']['return'] + + def niFake_WriteWaveformNumpyComplex128(self, vi, number_of_samples, waveform_data_array): # noqa: N802 + if self._defaults['WriteWaveformNumpyComplex128']['return'] != 0: + return self._defaults['WriteWaveformNumpyComplex128']['return'] + return self._defaults['WriteWaveformNumpyComplex128']['return'] + + def niFake_WriteWaveformNumpyComplex64(self, vi, number_of_samples, waveform_data_array): # noqa: N802 + if self._defaults['WriteWaveformNumpyComplex64']['return'] != 0: + return self._defaults['WriteWaveformNumpyComplex64']['return'] + return self._defaults['WriteWaveformNumpyComplex64']['return'] + + def niFake_WriteWaveformNumpyComplexInterleavedI16(self, vi, number_of_samples, waveform_data_array): # noqa: N802 + if self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] != 0: + return self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] + return self._defaults['WriteWaveformNumpyComplexInterleavedI16']['return'] + + def niFake_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niFake_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niFake_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niFake_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niFake_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niFake_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niFake_Abort.side_effect = MockFunctionCallError("niFake_Abort") + mock_library.niFake_Abort.return_value = 0 + mock_library.niFake_AcceptListOfDurationsInSeconds.side_effect = MockFunctionCallError("niFake_AcceptListOfDurationsInSeconds") + mock_library.niFake_AcceptListOfDurationsInSeconds.return_value = 0 + mock_library.niFake_BoolArrayOutputFunction.side_effect = MockFunctionCallError("niFake_BoolArrayOutputFunction") + mock_library.niFake_BoolArrayOutputFunction.return_value = 0 + mock_library.niFake_ConfigureABC.side_effect = MockFunctionCallError("niFake_ConfigureABC") + mock_library.niFake_ConfigureABC.return_value = 0 + mock_library.niFake_CustomNestedStructRoundtrip.side_effect = MockFunctionCallError("niFake_CustomNestedStructRoundtrip") + mock_library.niFake_CustomNestedStructRoundtrip.return_value = 0 + mock_library.niFake_DoubleAllTheNums.side_effect = MockFunctionCallError("niFake_DoubleAllTheNums") + mock_library.niFake_DoubleAllTheNums.return_value = 0 + mock_library.niFake_EnumArrayOutputFunction.side_effect = MockFunctionCallError("niFake_EnumArrayOutputFunction") + mock_library.niFake_EnumArrayOutputFunction.return_value = 0 + mock_library.niFake_EnumInputFunctionWithDefaults.side_effect = MockFunctionCallError("niFake_EnumInputFunctionWithDefaults") + mock_library.niFake_EnumInputFunctionWithDefaults.return_value = 0 + mock_library.niFake_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFake_ExportAttributeConfigurationBuffer") + mock_library.niFake_ExportAttributeConfigurationBuffer.return_value = 0 + mock_library.niFake_FetchWaveform.side_effect = MockFunctionCallError("niFake_FetchWaveform") + mock_library.niFake_FetchWaveform.return_value = 0 + mock_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.side_effect = MockFunctionCallError("niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter") + mock_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.return_value = 0 + mock_library.niFake_FunctionWithIntflagParameter.side_effect = MockFunctionCallError("niFake_FunctionWithIntflagParameter") + mock_library.niFake_FunctionWithIntflagParameter.return_value = 0 + mock_library.niFake_FunctionWithRepeatedCapabilityType.side_effect = MockFunctionCallError("niFake_FunctionWithRepeatedCapabilityType") + mock_library.niFake_FunctionWithRepeatedCapabilityType.return_value = 0 + mock_library.niFake_GetABoolean.side_effect = MockFunctionCallError("niFake_GetABoolean") + mock_library.niFake_GetABoolean.return_value = 0 + mock_library.niFake_GetANumber.side_effect = MockFunctionCallError("niFake_GetANumber") + mock_library.niFake_GetANumber.return_value = 0 + mock_library.niFake_GetAStringOfFixedMaximumSize.side_effect = MockFunctionCallError("niFake_GetAStringOfFixedMaximumSize") + mock_library.niFake_GetAStringOfFixedMaximumSize.return_value = 0 + mock_library.niFake_GetAStringUsingPythonCode.side_effect = MockFunctionCallError("niFake_GetAStringUsingPythonCode") + mock_library.niFake_GetAStringUsingPythonCode.return_value = 0 + mock_library.niFake_GetAnIviDanceCharArray.side_effect = MockFunctionCallError("niFake_GetAnIviDanceCharArray") + mock_library.niFake_GetAnIviDanceCharArray.return_value = 0 + mock_library.niFake_GetAnIviDanceWithATwistString.side_effect = MockFunctionCallError("niFake_GetAnIviDanceWithATwistString") + mock_library.niFake_GetAnIviDanceWithATwistString.return_value = 0 + mock_library.niFake_GetArrayForPythonCodeCustomType.side_effect = MockFunctionCallError("niFake_GetArrayForPythonCodeCustomType") + mock_library.niFake_GetArrayForPythonCodeCustomType.return_value = 0 + mock_library.niFake_GetArrayForPythonCodeDouble.side_effect = MockFunctionCallError("niFake_GetArrayForPythonCodeDouble") + mock_library.niFake_GetArrayForPythonCodeDouble.return_value = 0 + mock_library.niFake_GetArraySizeForPythonCode.side_effect = MockFunctionCallError("niFake_GetArraySizeForPythonCode") + mock_library.niFake_GetArraySizeForPythonCode.return_value = 0 + mock_library.niFake_GetArrayUsingIviDance.side_effect = MockFunctionCallError("niFake_GetArrayUsingIviDance") + mock_library.niFake_GetArrayUsingIviDance.return_value = 0 + mock_library.niFake_GetAttributeViBoolean.side_effect = MockFunctionCallError("niFake_GetAttributeViBoolean") + mock_library.niFake_GetAttributeViBoolean.return_value = 0 + mock_library.niFake_GetAttributeViInt32.side_effect = MockFunctionCallError("niFake_GetAttributeViInt32") + mock_library.niFake_GetAttributeViInt32.return_value = 0 + mock_library.niFake_GetAttributeViInt64.side_effect = MockFunctionCallError("niFake_GetAttributeViInt64") + mock_library.niFake_GetAttributeViInt64.return_value = 0 + mock_library.niFake_GetAttributeViReal64.side_effect = MockFunctionCallError("niFake_GetAttributeViReal64") + mock_library.niFake_GetAttributeViReal64.return_value = 0 + mock_library.niFake_GetAttributeViString.side_effect = MockFunctionCallError("niFake_GetAttributeViString") + mock_library.niFake_GetAttributeViString.return_value = 0 + mock_library.niFake_GetCalDateAndTime.side_effect = MockFunctionCallError("niFake_GetCalDateAndTime") + mock_library.niFake_GetCalDateAndTime.return_value = 0 + mock_library.niFake_GetCalInterval.side_effect = MockFunctionCallError("niFake_GetCalInterval") + mock_library.niFake_GetCalInterval.return_value = 0 + mock_library.niFake_GetChannelNames.side_effect = MockFunctionCallError("niFake_GetChannelNames") + mock_library.niFake_GetChannelNames.return_value = 0 + mock_library.niFake_GetCustomType.side_effect = MockFunctionCallError("niFake_GetCustomType") + mock_library.niFake_GetCustomType.return_value = 0 + mock_library.niFake_GetCustomTypeArray.side_effect = MockFunctionCallError("niFake_GetCustomTypeArray") + mock_library.niFake_GetCustomTypeArray.return_value = 0 + mock_library.niFake_GetCustomTypeTypedef.side_effect = MockFunctionCallError("niFake_GetCustomTypeTypedef") + mock_library.niFake_GetCustomTypeTypedef.return_value = 0 + mock_library.niFake_GetEnumValue.side_effect = MockFunctionCallError("niFake_GetEnumValue") + mock_library.niFake_GetEnumValue.return_value = 0 + mock_library.niFake_GetError.side_effect = MockFunctionCallError("niFake_GetError") + mock_library.niFake_GetError.return_value = 0 + mock_library.niFake_GetParameterWithOverriddenGrpcName.side_effect = MockFunctionCallError("niFake_GetParameterWithOverriddenGrpcName") + mock_library.niFake_GetParameterWithOverriddenGrpcName.return_value = 0 + mock_library.niFake_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFake_ImportAttributeConfigurationBuffer") + mock_library.niFake_ImportAttributeConfigurationBuffer.return_value = 0 + mock_library.niFake_ImportAttributeConfigurationBufferEx.side_effect = MockFunctionCallError("niFake_ImportAttributeConfigurationBufferEx") + mock_library.niFake_ImportAttributeConfigurationBufferEx.return_value = 0 + mock_library.niFake_InitWithOptions.side_effect = MockFunctionCallError("niFake_InitWithOptions") + mock_library.niFake_InitWithOptions.return_value = 0 + mock_library.niFake_Initiate.side_effect = MockFunctionCallError("niFake_Initiate") + mock_library.niFake_Initiate.return_value = 0 + mock_library.niFake_LockSession.side_effect = MockFunctionCallError("niFake_LockSession") + mock_library.niFake_LockSession.return_value = 0 + mock_library.niFake_MethodUsingWholeAndFractionalNumbers.side_effect = MockFunctionCallError("niFake_MethodUsingWholeAndFractionalNumbers") + mock_library.niFake_MethodUsingWholeAndFractionalNumbers.return_value = 0 + mock_library.niFake_MethodWithGrpcOnlyParam.side_effect = MockFunctionCallError("niFake_MethodWithGrpcOnlyParam") + mock_library.niFake_MethodWithGrpcOnlyParam.return_value = 0 + mock_library.niFake_MethodWithProtoOnlyParameter.side_effect = MockFunctionCallError("niFake_MethodWithProtoOnlyParameter") + mock_library.niFake_MethodWithProtoOnlyParameter.return_value = 0 + mock_library.niFake_MixedIviDanceAndLenMechanism.side_effect = MockFunctionCallError("niFake_MixedIviDanceAndLenMechanism") + mock_library.niFake_MixedIviDanceAndLenMechanism.return_value = 0 + mock_library.niFake_MultipleArrayTypes.side_effect = MockFunctionCallError("niFake_MultipleArrayTypes") + mock_library.niFake_MultipleArrayTypes.return_value = 0 + mock_library.niFake_MultipleArraysDifferentSize.side_effect = MockFunctionCallError("niFake_MultipleArraysDifferentSize") + mock_library.niFake_MultipleArraysDifferentSize.return_value = 0 + mock_library.niFake_MultipleArraysSameSize.side_effect = MockFunctionCallError("niFake_MultipleArraysSameSize") + mock_library.niFake_MultipleArraysSameSize.return_value = 0 + mock_library.niFake_OneInputFunction.side_effect = MockFunctionCallError("niFake_OneInputFunction") + mock_library.niFake_OneInputFunction.return_value = 0 + mock_library.niFake_ParametersAreMultipleTypes.side_effect = MockFunctionCallError("niFake_ParametersAreMultipleTypes") + mock_library.niFake_ParametersAreMultipleTypes.return_value = 0 + mock_library.niFake_PoorlyNamedSimpleFunction.side_effect = MockFunctionCallError("niFake_PoorlyNamedSimpleFunction") + mock_library.niFake_PoorlyNamedSimpleFunction.return_value = 0 + mock_library.niFake_Read.side_effect = MockFunctionCallError("niFake_Read") + mock_library.niFake_Read.return_value = 0 + mock_library.niFake_ReadFromChannel.side_effect = MockFunctionCallError("niFake_ReadFromChannel") + mock_library.niFake_ReadFromChannel.return_value = 0 + mock_library.niFake_ReturnANumberAndAString.side_effect = MockFunctionCallError("niFake_ReturnANumberAndAString") + mock_library.niFake_ReturnANumberAndAString.return_value = 0 + mock_library.niFake_ReturnDurationInSeconds.side_effect = MockFunctionCallError("niFake_ReturnDurationInSeconds") + mock_library.niFake_ReturnDurationInSeconds.return_value = 0 + mock_library.niFake_ReturnListOfDurationsInSeconds.side_effect = MockFunctionCallError("niFake_ReturnListOfDurationsInSeconds") + mock_library.niFake_ReturnListOfDurationsInSeconds.return_value = 0 + mock_library.niFake_ReturnMultipleTypes.side_effect = MockFunctionCallError("niFake_ReturnMultipleTypes") + mock_library.niFake_ReturnMultipleTypes.return_value = 0 + mock_library.niFake_SetAttributeViBoolean.side_effect = MockFunctionCallError("niFake_SetAttributeViBoolean") + mock_library.niFake_SetAttributeViBoolean.return_value = 0 + mock_library.niFake_SetAttributeViInt32.side_effect = MockFunctionCallError("niFake_SetAttributeViInt32") + mock_library.niFake_SetAttributeViInt32.return_value = 0 + mock_library.niFake_SetAttributeViInt64.side_effect = MockFunctionCallError("niFake_SetAttributeViInt64") + mock_library.niFake_SetAttributeViInt64.return_value = 0 + mock_library.niFake_SetAttributeViReal64.side_effect = MockFunctionCallError("niFake_SetAttributeViReal64") + mock_library.niFake_SetAttributeViReal64.return_value = 0 + mock_library.niFake_SetAttributeViString.side_effect = MockFunctionCallError("niFake_SetAttributeViString") + mock_library.niFake_SetAttributeViString.return_value = 0 + mock_library.niFake_SetCustomType.side_effect = MockFunctionCallError("niFake_SetCustomType") + mock_library.niFake_SetCustomType.return_value = 0 + mock_library.niFake_SetCustomTypeArray.side_effect = MockFunctionCallError("niFake_SetCustomTypeArray") + mock_library.niFake_SetCustomTypeArray.return_value = 0 + mock_library.niFake_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niFake_SetRuntimeEnvironment") + mock_library.niFake_SetRuntimeEnvironment.return_value = 0 + mock_library.niFake_StringValuedEnumInputFunctionWithDefaults.side_effect = MockFunctionCallError("niFake_StringValuedEnumInputFunctionWithDefaults") + mock_library.niFake_StringValuedEnumInputFunctionWithDefaults.return_value = 0 + mock_library.niFake_TwoInputFunction.side_effect = MockFunctionCallError("niFake_TwoInputFunction") + mock_library.niFake_TwoInputFunction.return_value = 0 + mock_library.niFake_UnlockSession.side_effect = MockFunctionCallError("niFake_UnlockSession") + mock_library.niFake_UnlockSession.return_value = 0 + mock_library.niFake_Use64BitNumber.side_effect = MockFunctionCallError("niFake_Use64BitNumber") + mock_library.niFake_Use64BitNumber.return_value = 0 + mock_library.niFake_WriteWaveform.side_effect = MockFunctionCallError("niFake_WriteWaveform") + mock_library.niFake_WriteWaveform.return_value = 0 + mock_library.niFake_WriteWaveformNumpyComplex128.side_effect = MockFunctionCallError("niFake_WriteWaveformNumpyComplex128") + mock_library.niFake_WriteWaveformNumpyComplex128.return_value = 0 + mock_library.niFake_WriteWaveformNumpyComplex64.side_effect = MockFunctionCallError("niFake_WriteWaveformNumpyComplex64") + mock_library.niFake_WriteWaveformNumpyComplex64.return_value = 0 + mock_library.niFake_WriteWaveformNumpyComplexInterleavedI16.side_effect = MockFunctionCallError("niFake_WriteWaveformNumpyComplexInterleavedI16") + mock_library.niFake_WriteWaveformNumpyComplexInterleavedI16.return_value = 0 + mock_library.niFake_close.side_effect = MockFunctionCallError("niFake_close") + mock_library.niFake_close.return_value = 0 + mock_library.niFake_error_message.side_effect = MockFunctionCallError("niFake_error_message") + mock_library.niFake_error_message.return_value = 0 + mock_library.niFake_self_test.side_effect = MockFunctionCallError("niFake_self_test") + mock_library.niFake_self_test.return_value = 0 diff --git a/generated/nifake/nifake/unit_tests/conftest.py b/generated/nifake/nifake/unit_tests/conftest.py new file mode 100644 index 0000000000..a4aeca5503 --- /dev/null +++ b/generated/nifake/nifake/unit_tests/conftest.py @@ -0,0 +1,19 @@ +import grpc +import nitlsconfig.channel_tag +import pytest + + +@pytest.fixture +def nitls_tagged_channel(): + """A real gRPC channel tagged the way nitlsconfig.create_grpc_device_channel tags one. + + nitlsconfig.create_grpc_device_channel itself requires the nitlsconfig library to be + installed on the system in order to access the CLI. As a result, we are unable to directly + leverage it in our unit tests. But, this can at least allow us to unit-test our code + that relies on channels being created from nitlsconfig.create_grpc_device_channel. + """ + target = 'localhost:31763' + with grpc.insecure_channel(target) as channel: + nitlsconfig.channel_tag.tag_channel_target(channel, target) + assert nitlsconfig.channel_tag.is_nitls_channel(channel), 'nitlsconfig no longer recognizes a channel it tagged' + yield channel diff --git a/generated/nifake/nifake/unit_tests/test_converters.py b/generated/nifake/nifake/unit_tests/test_converters.py new file mode 100644 index 0000000000..daa0d21963 --- /dev/null +++ b/generated/nifake/nifake/unit_tests/test_converters.py @@ -0,0 +1,421 @@ +import nifake._converters as _converters +import nifake.errors as errors + +import hightime +import pytest + + +def test_convert_init_with_options_dictionary(): + assert _converters.convert_init_with_options_dictionary('') == '' + assert _converters.convert_init_with_options_dictionary('Simulate=1') == 'Simulate=1' + assert _converters.convert_init_with_options_dictionary({'Simulate': True, }) == 'Simulate=1' + assert _converters.convert_init_with_options_dictionary({'Simulate': False, }) == 'Simulate=0' + assert _converters.convert_init_with_options_dictionary({'Simulate': True, 'Cache': False}) == 'Cache=0,Simulate=1' + assert _converters.convert_init_with_options_dictionary({'DriverSetup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH)' + assert _converters.convert_init_with_options_dictionary({'Simulate': True, 'DriverSetup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH),Simulate=1' + assert _converters.convert_init_with_options_dictionary({'simulate': True, 'cache': False}) == 'Cache=0,Simulate=1' + assert _converters.convert_init_with_options_dictionary({'driver_setup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH)' + assert _converters.convert_init_with_options_dictionary({'simulate': True, 'driver_setup': {'Model': '5162 (4CH)', 'Bitfile': 'CustomProcessing'}}) == 'DriverSetup=Bitfile:CustomProcessing;Model:5162 (4CH),Simulate=1' + + +# Tests - time +def test_convert_timedelta_to_seconds_double(): + test_result = _converters.convert_timedelta_to_seconds_real64(hightime.timedelta(seconds=10)) + assert test_result == 10.0 + test_result = _converters.convert_timedelta_to_seconds_real64(hightime.timedelta(nanoseconds=-0.5)) + assert test_result == pytest.approx(-5e-10) + test_result = _converters.convert_timedelta_to_seconds_real64(10.5) + assert test_result == 10.5 + test_result = _converters.convert_timedelta_to_seconds_real64(-1) + assert test_result == -1 + + +def test_convert_timedelta_to_milliseconds_int32(): + test_result = _converters.convert_timedelta_to_milliseconds_int32(hightime.timedelta(seconds=10)) + assert test_result == 10000 + test_result = _converters.convert_timedelta_to_milliseconds_int32(hightime.timedelta(seconds=-5)) + assert test_result == -5000 + test_result = _converters.convert_timedelta_to_milliseconds_int32(10.5) + assert test_result == 10500 + test_result = _converters.convert_timedelta_to_milliseconds_int32(-1) + assert test_result == -1000 + + +def test_convert_timedeltas_to_seconds_real64(): + time_values = [10.5, -5e-10] + test_result = _converters.convert_timedeltas_to_seconds_real64(time_values) + assert all([actual == pytest.approx(expected) for actual, expected in zip(test_result, time_values)]) + test_input = [hightime.timedelta(seconds=10.5), hightime.timedelta(nanoseconds=-0.5)] + test_result = _converters.convert_timedeltas_to_seconds_real64(test_input) + assert all([actual == pytest.approx(expected) for actual, expected in zip(test_result, time_values)]) + + +def test_convert_timedelta_to_months_int32(): + # 1 month = 60*60*24*30.4167 seconds = 2628002.88 seconds + seconds_per_month = 60 * 60 * 24 * 30.4167 + test_result = _converters.convert_timedelta_to_months_int32(hightime.timedelta(seconds=seconds_per_month)) + assert test_result == 1 + test_result = _converters.convert_timedelta_to_months_int32(hightime.timedelta(seconds=-5 * seconds_per_month)) + assert test_result == -5 + test_result = _converters.convert_timedelta_to_months_int32(seconds_per_month * 2) + assert test_result == 2 + test_result = _converters.convert_timedelta_to_months_int32(-seconds_per_month) + assert test_result == -1 + + +def test_convert_seconds_real64_to_timedelta(): + time_value = -5e-10 + test_result = _converters.convert_seconds_real64_to_timedelta(time_value) + assert test_result.total_seconds() == pytest.approx(time_value) + assert isinstance(test_result, hightime.timedelta) + + +def test_convert_seconds_real64_to_timedeltas(): + time_values = [10.5, -5e-10] + test_result = _converters.convert_seconds_real64_to_timedeltas(time_values) + assert all([actual.total_seconds() == pytest.approx(expected) for actual, expected in zip(test_result, time_values)]) + assert all([isinstance(x, hightime.timedelta) for x in test_result]) + + +# Tests - repeated capabilities +def test_repeated_capabilities_string_channel(): + test_result_list = _converters.convert_repeated_capabilities('0') + assert test_result_list == ['0'] + test_result_list = _converters.convert_repeated_capabilities('r0') + assert test_result_list == ['r0'] + test_result_list = _converters.convert_repeated_capabilities('0,1') + assert test_result_list == ['0', '1'] + + +def test_repeated_capabilities_string_prefix(): + test_result_list = _converters.convert_repeated_capabilities('0', prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0'] + + +def test_repeated_capabilities_list_channel(): + test_result_list = _converters.convert_repeated_capabilities(['0']) + assert test_result_list == ['0'] + test_result_list = _converters.convert_repeated_capabilities(['r0']) + assert test_result_list == ['r0'] + test_result_list = _converters.convert_repeated_capabilities(['0', '1']) + assert test_result_list == ['0', '1'] + test_result_list = _converters.convert_repeated_capabilities([0, 1]) + assert test_result_list == ['0', '1'] + test_result_list = _converters.convert_repeated_capabilities([0, 1, '3']) + assert test_result_list == ['0', '1', '3'] + + +def test_repeated_capabilities_list_prefix(): + test_result_list = _converters.convert_repeated_capabilities(['ScriptTrigger0', 'ScriptTrigger1'], prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(['0'], prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0'] + test_result_list = _converters.convert_repeated_capabilities(['0', '1'], prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities([0, 1], prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + + +def test_repeated_capabilities_tuple_channel(): + test_result_list = _converters.convert_repeated_capabilities(('0')) + assert test_result_list == ['0'] + test_result_list = _converters.convert_repeated_capabilities(('0,1')) + assert test_result_list == ['0', '1'] + test_result_list = _converters.convert_repeated_capabilities(('0', '1')) + assert test_result_list == ['0', '1'] + test_result_list = _converters.convert_repeated_capabilities((0, 1)) + assert test_result_list == ['0', '1'] + test_result_list = _converters.convert_repeated_capabilities((0, 1, '3')) + assert test_result_list == ['0', '1', '3'] + + +def test_repeated_capabilities_tuple_prefix(): + test_result_list = _converters.convert_repeated_capabilities(('ScriptTrigger0,ScriptTrigger1'), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(('0'), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0'] + test_result_list = _converters.convert_repeated_capabilities(('0', '1'), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities((0, 1), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + + +def test_repeated_capabilities_unicode(): + test_result_list = _converters.convert_repeated_capabilities(u'ScriptTrigger0,ScriptTrigger1', prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(u'ScriptTrigger0,ScriptTrigger1', prefix=u'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities('ScriptTrigger0,ScriptTrigger1', prefix=u'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + + +def test_repeated_capabilities_raw(): + test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities('ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix=u'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(r'ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(u'ScriptTrigger0,ScriptTrigger1', prefix=r'ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + + +def test_repeated_capabilities_slice_channel(): + test_result_list = _converters.convert_repeated_capabilities(slice(0, 1)) + assert test_result_list == ['0'] + test_result_list = _converters.convert_repeated_capabilities(slice(0, 2)) + assert test_result_list == ['0', '1'] + test_result_list = _converters.convert_repeated_capabilities(slice(None, 2)) + assert test_result_list == ['0', '1'] + + +def test_repeated_capabilities_mixed_channel(): + test_result_list = _converters.convert_repeated_capabilities((slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17')) + assert test_result_list == ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + test_result_list = _converters.convert_repeated_capabilities([slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17']) + assert test_result_list == ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + + +def test_repeated_capabilities_mixed_prefix(): + test_result_list = _converters.convert_repeated_capabilities((slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17'), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger2', 'ScriptTrigger4', 'ScriptTrigger5', 'ScriptTrigger6', 'ScriptTrigger7', 'ScriptTrigger8', 'ScriptTrigger9', 'ScriptTrigger11', 'ScriptTrigger12', 'ScriptTrigger13', 'ScriptTrigger14', 'ScriptTrigger16', 'ScriptTrigger17'] + test_result_list = _converters.convert_repeated_capabilities([slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17'], prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger2', 'ScriptTrigger4', 'ScriptTrigger5', 'ScriptTrigger6', 'ScriptTrigger7', 'ScriptTrigger8', 'ScriptTrigger9', 'ScriptTrigger11', 'ScriptTrigger12', 'ScriptTrigger13', 'ScriptTrigger14', 'ScriptTrigger16', 'ScriptTrigger17'] + + +def test_invalid_repeated_capabilities(): + try: + _converters.convert_repeated_capabilities('6-8-10') + assert False + except errors.InvalidRepeatedCapabilityError: + pass + try: + _converters.convert_repeated_capabilities(['5', '6-8-10']) + assert False + except errors.InvalidRepeatedCapabilityError: + pass + try: + _converters.convert_repeated_capabilities(('5', '6-8-10')) + assert False + except errors.InvalidRepeatedCapabilityError: + pass + try: + _converters.convert_repeated_capabilities('5,6-8-10') + assert False + except errors.InvalidRepeatedCapabilityError: + pass + try: + _converters.convert_repeated_capabilities(5.0) + assert False + except errors.InvalidRepeatedCapabilityError: + pass + try: + _converters.convert_repeated_capabilities([5.0, '0']) + assert False + except errors.InvalidRepeatedCapabilityError: + pass + try: + _converters.convert_repeated_capabilities((5.0, '0')) + assert False + except errors.InvalidRepeatedCapabilityError: + pass + + +def test_repeated_capabilities_slice_prefix(): + test_result_list = _converters.convert_repeated_capabilities(slice(0, 1), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0'] + test_result_list = _converters.convert_repeated_capabilities(slice(0, 2), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + test_result_list = _converters.convert_repeated_capabilities(slice(None, 2), prefix='ScriptTrigger') + assert test_result_list == ['ScriptTrigger0', 'ScriptTrigger1'] + + +def test_repeated_capabilities_without_prefix(): + test_result = _converters.convert_repeated_capabilities_without_prefix((slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17')) + assert test_result == '0,2,4,5,6,7,8,9,11,12,13,14,16,17' + + +def test_repeated_capabilities_string_resource_name(): + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1') + assert test_result_list == 'Dev1' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1,Dev2') + assert test_result_list == 'Dev1,Dev2' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1/0') + assert test_result_list == 'Dev1/0' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1/0:1, Dev2/0-1') + assert test_result_list == 'Dev1/0:1,Dev2/0-1' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev1, Dev2/0-2') + assert test_result_list == 'Dev1,Dev2/0-2' + + +def test_repeated_capabilities_list_resource_name(): + test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1']) + assert test_result_list == 'Dev1' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1', 'Dev2']) + assert test_result_list == 'Dev1,Dev2' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1/0']) + assert test_result_list == 'Dev1/0' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1/0:1', 'Dev2/0-1']) + assert test_result_list == 'Dev1/0:1,Dev2/0-1' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1', 'Dev2/0-2']) + assert test_result_list == 'Dev1,Dev2/0-2' + + +def test_repeated_capabilities_tuple_resource_name(): + test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1')) + assert test_result_list == 'Dev1' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1', 'Dev2')) + assert test_result_list == 'Dev1,Dev2' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1/0')) + assert test_result_list == 'Dev1/0' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1/0:1', 'Dev2/0-1')) + assert test_result_list == 'Dev1/0:1,Dev2/0-1' + test_result_list = _converters.convert_repeated_capabilities_without_prefix(('Dev1', 'Dev2/0-2')) + assert test_result_list == 'Dev1,Dev2/0-2' + + +def test_repeated_capabilities_mixed_resource_name(): + test_result_list = _converters.convert_repeated_capabilities_without_prefix(['Dev1', ('Dev2/0', 'Dev2/1'), ['Dev3/0:1', 'Dev4/1:2'], 'Dev5/1']) + assert test_result_list == 'Dev1,Dev2/0,Dev2/1,Dev3/0:1,Dev4/1:2,Dev5/1' + + +def test_repeated_capabilities_invalid_resource_names(): + test_result_list = _converters.convert_repeated_capabilities_without_prefix('/') + assert test_result_list == '/' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev/') + assert test_result_list == 'Dev/' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev,') + assert test_result_list == 'Dev,' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('Dev/1/1,') + assert test_result_list == 'Dev/1/1,' + test_result_list = _converters.convert_repeated_capabilities_without_prefix('0/1:2,') + assert test_result_list == '0/1:2,' + + +def test_expand_channel_string_non_fully_qualified_channel_names(): + test_result_list = _converters.expand_channel_string('1', ['0', '1', '2', '3']) + assert test_result_list == ['1'] + test_result_list = _converters.expand_channel_string('0-2', ['0', '1', '2', '3']) + assert test_result_list == ['0', '1', '2'] + test_result_list = _converters.expand_channel_string('0:2', ['0', '1', '2', '3']) + assert test_result_list == ['0', '1', '2'] + test_result_list = _converters.expand_channel_string('0:2,4', ['0', '1', '2', '3', '4', '5']) + assert test_result_list == ['0', '1', '2', '4'] + test_result_list = _converters.expand_channel_string('4,1:2', ['1', '2', '4']) + assert test_result_list == ['4', '1', '2'] + test_result_list = _converters.expand_channel_string(' 1 : 2 , 4 ', ['1', '2', '4']) + assert test_result_list == ['1', '2', '4'] + + +def test_expand_channel_string_fully_qualified_channel_names(): + test_result_list = _converters.expand_channel_string( + '2:3,0', + ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] + ) + assert test_result_list == ['Dev1/2', 'Dev1/3', 'Dev1/0'] + test_result_list = _converters.expand_channel_string( + 'Dev1/1', + ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] + ) + assert test_result_list == ['Dev1/1'] + test_result_list = _converters.expand_channel_string( + 'Dev1/0-2', + ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] + ) + assert test_result_list == ['Dev1/0', 'Dev1/1', 'Dev1/2'] + test_result_list = _converters.expand_channel_string( + 'Dev1/0:2', + ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3'] + ) + assert test_result_list == ['Dev1/0', 'Dev1/1', 'Dev1/2'] + test_result_list = _converters.expand_channel_string( + 'Dev1/0:2,4', + ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/4'] + ) + assert test_result_list == ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/4'] + test_result_list = _converters.expand_channel_string( + '4,Dev1/1:2', + ['Dev1/1', 'Dev1/2', 'Dev1/4'] + ) + assert test_result_list == ['Dev1/4', 'Dev1/1', 'Dev1/2'] + test_result_list = _converters.expand_channel_string( + 'Dev1/4,Dev1/2,Dev1/3', + ['Dev1/2', 'Dev1/3', 'Dev1/4'] + ) + assert test_result_list == ['Dev1/4', 'Dev1/2', 'Dev1/3'] + test_result_list = _converters.expand_channel_string( + 'Dev1/1,Dev2/2', + ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3'] + ) + assert test_result_list == ['Dev1/1', 'Dev2/2'] + test_result_list = _converters.expand_channel_string( + ' Dev1 / 1 : 2 , 4 ', + ['Dev1/1', 'Dev1/2', 'Dev1/4'] + ) + assert test_result_list == ['Dev1/1', 'Dev1/2', 'Dev1/4'] + test_result_list = _converters.expand_channel_string( + 'DEV1/0-1 , Dev1/3', + ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3'] + ) + assert test_result_list == ['dev1/0', 'dev1/1', 'dev1/3'] + + +def test_convert_chained_repeated_capability_to_parts_three_parts(): + chained_rep_cap = ('site0/test/PinA,site0/test/PinB,site0/test/PinC,' + 'site1/test/PinA,site1/test/PinB,site1/test/PinC') + rep_cap_list = _converters.convert_chained_repeated_capability_to_parts(chained_rep_cap) + assert rep_cap_list == ['site0,site1', 'test', 'PinA,PinB,PinC'] + + +def test_convert_chained_repeated_capability_to_parts_single_part(): + rep_cap_list = _converters.convert_chained_repeated_capability_to_parts('site0, site1') + assert rep_cap_list == ['site0,site1'] + + +def test_convert_chained_repeated_capability_to_parts_empty_string(): + rep_cap_list = _converters.convert_chained_repeated_capability_to_parts('') + assert rep_cap_list == [''] + + +def test_string_to_list_channel(): + test_result = _converters._convert_repeated_capabilities('r0', '') + assert test_result == ['r0'] + test_result = _converters._convert_repeated_capabilities(['0-2'], '') + assert test_result == ['0', '1', '2'] + test_result = _converters._convert_repeated_capabilities(['3:7'], '') + assert test_result == ['3', '4', '5', '6', '7'] + test_result = _converters._convert_repeated_capabilities(['2-0'], '') + assert test_result == ['2', '1', '0'] + test_result = _converters._convert_repeated_capabilities(['2:0'], '') + assert test_result == ['2', '1', '0'] + + +def test_string_to_list_prefix(): + test_result = _converters._convert_repeated_capabilities(['ScriptTrigger3-ScriptTrigger7'], 'ScriptTrigger') + assert test_result == ['3', '4', '5', '6', '7'] + test_result = _converters._convert_repeated_capabilities(['ScriptTrigger3:ScriptTrigger7'], 'ScriptTrigger') + assert test_result == ['3', '4', '5', '6', '7'] + test_result = _converters._convert_repeated_capabilities(['ScriptTrigger2-ScriptTrigger0'], 'ScriptTrigger') + assert test_result == ['2', '1', '0'] + test_result = _converters._convert_repeated_capabilities(['ScriptTrigger2:ScriptTrigger0'], 'ScriptTrigger') + assert test_result == ['2', '1', '0'] + + +def test_convert_comma_separated_string_to_list(): + out_list = _converters.convert_comma_separated_string_to_list(' PinA , PinB , PinC ') + assert out_list == ['PinA', 'PinB', 'PinC'] + + +def test_convert_list_to_comma_separated_string(): + out_string = _converters.convert_list_to_comma_separated_string(['PinA', 'PinB', 'PinC']) + assert out_string == 'PinA,PinB,PinC' + + +def test_convert_list_to_comma_separated_string_invalid_input(): + with pytest.raises(TypeError) as error_info: + _converters.convert_list_to_comma_separated_string('PinA,PinB,PinC') + assert str(error_info.value) == 'Input must be a list or tuple of str' diff --git a/generated/nifake/nifake/unit_tests/test_grpc.py b/generated/nifake/nifake/unit_tests/test_grpc.py new file mode 100644 index 0000000000..f47e7e72e5 --- /dev/null +++ b/generated/nifake/nifake/unit_tests/test_grpc.py @@ -0,0 +1,1111 @@ +import array +import collections +import grpc +import math +import nifake +import nifake.errors +import nitlsconfig +import numpy +import pytest +import session_pb2 +import warnings + +from unittest.mock import MagicMock +from unittest.mock import patch + +import _mock_helper + +GRPC_SESSION_OBJECT_FOR_TEST = session_pb2.Session(name="TestSession", id=42) + + +Metadatum = collections.namedtuple('Metadatum', ('key', 'value')) + + +class MyRpcError(grpc.RpcError): + def __init__(self, error_code, error_message, grpc_error=grpc.StatusCode.UNKNOWN): + super().__init__() + self._grpc_error = grpc_error + self._error_code = error_code + self._error_message = error_message + + def code(self): + return self._grpc_error + + def details(self): + return self._error_message + + def trailing_metadata(self): + if self._error_code is None: + return [] + else: + return [Metadatum('ni-error', str(self._error_code))] + + +class TestGrpcStubInterpreter: + + class PatchedGrpcTypes: + def __init__(self): + for f in dir(nifake._grpc_stub_interpreter.grpc_types): + if f.endswith('Request'): + real_func = getattr(nifake._grpc_stub_interpreter.grpc_types, f) + error_func = _mock_helper.MockFunctionCallError(f) + setattr(self, f, MagicMock(spec_set=real_func, side_effect=error_func)) + else: + setattr(self, f, getattr(nifake._grpc_stub_interpreter.grpc_types, f)) + + class PatchedGrpcStub(nifake._grpc_stub_interpreter.nifake_grpc.NiFakeServicer): + def _sample_func(self, request, metadata=None): + pass + + def __init__(self): + for f in dir(self): + if not f.startswith('_') and f not in {'get_session_handle', 'set_session_handle'}: + error_func = _mock_helper.MockFunctionCallError(f) + setattr(self, f, MagicMock(spec_set=self._sample_func, side_effect=error_func)) + + def __call__(self, grpc_channel): + self._grpc_channel = grpc_channel + return self + + def setup_method(self, method): + self.patched_grpc_types = self.PatchedGrpcTypes() + self.patched_grpc_stub = self.PatchedGrpcStub() + self.real_grpc_types = nifake._grpc_stub_interpreter.grpc_types + self.grpc_types_patch = patch('nifake._grpc_stub_interpreter.grpc_types', self.patched_grpc_types) + self.grpc_stub_patch = patch('nifake._grpc_stub_interpreter.nifake_grpc.NiFakeStub', side_effect=self.patched_grpc_stub) + self.grpc_types_patch.start() + self.grpc_stub_patch.start() + + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + self.get_ctypes_pointer_for_buffer_side_effect_items = [] + + def teardown_method(self, method): + self.grpc_stub_patch.stop() + self.grpc_types_patch.stop() + + def _get_initialized_stub_interpreter(self, grpc_channel=object()): + session_options = nifake.GrpcSessionOptions(grpc_channel, '', initialization_behavior=nifake.SessionInitializationBehavior.AUTO) + interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(session_options) + assert interpreter._client is self.patched_grpc_stub + assert interpreter.get_session_handle().id == 0 + assert interpreter.get_session_handle().name == "" + assert self.patched_grpc_stub._grpc_channel is grpc_channel + interpreter.set_session_handle(GRPC_SESSION_OBJECT_FOR_TEST) + return interpreter + + def _check_fields(self, response_class, **kwargs): + fields = dict(kwargs) + response_fields = {x.name: x for x in response_class.DESCRIPTOR.fields} + + unexpected_fields = set(fields) - set(response_fields) + assert not unexpected_fields, 'Unexpected fields: ' + str(list(sorted(unexpected_fields))) + + for f in response_fields: + if f.endswith('_raw') and f[:-4] in response_fields: + fields.setdefault(f, fields[f[:-4]]) + fields.setdefault(f[:-4], fields[f]) + + missing_fields = set(response_fields) - set(fields) + assert not missing_fields, 'Missing fields: ' + str(list(sorted(missing_fields))) + + for field, value in fields.items(): + rf = response_fields[field] + field_type = rf.type + if field_type == rf.TYPE_ENUM: + if (field + '_raw') not in fields: + assert field.endswith('_mapped') + raw_field = field.rpartition('_mapped')[0] + '_raw' + assert raw_field in fields + assert kwargs.get(raw_field) + if rf.label == rf.LABEL_REPEATED: + assert len(kwargs[raw_field]) == len(value) + expected_py_type = int + elif field_type == rf.TYPE_BOOL: + expected_py_type = bool + elif field_type == rf.TYPE_STRING: + expected_py_type = str + elif field_type == rf.TYPE_BYTES: + expected_py_type = bytes + elif field_type in {rf.TYPE_DOUBLE, rf.TYPE_FLOAT}: + expected_py_type = float + elif field_type in {rf.TYPE_INT32, rf.TYPE_INT64, rf.TYPE_FIXED64, rf.TYPE_FIXED32}: + expected_py_type = int + elif field_type in {rf.TYPE_UINT32, rf.TYPE_UINT64}: + expected_py_type = int + elif field_type in {rf.TYPE_SINT32, rf.TYPE_SINT64, rf.TYPE_SFIXED32, rf.TYPE_SFIXED64}: + expected_py_type = int + elif field_type == rf.TYPE_MESSAGE: + expected_py_type = object + elif field_type == rf.TYPE_GROUP: + assert False, 'GROUP types not yet supported here' + else: + assert False, f'Unknown type {field_type}' + + if rf.label == rf.LABEL_REPEATED: + for x in value: + assert isinstance(x, expected_py_type) + else: + assert isinstance(value, expected_py_type), (field, field_type) + + return fields + + def _set_side_effect(self, function_name, side_effect=None, **kwargs): + if side_effect is None: + kwargs.setdefault('status', 0) + response_class = getattr(self.real_grpc_types, function_name + 'Response') + kwargs = self._check_fields(response_class, **kwargs) + side_effect = [response_class(**kwargs)] + else: + assert not kwargs, 'Do not use both side_effect and kwargs' + + request_object = object() + getattr(self.patched_grpc_types, function_name + 'Request').side_effect = [request_object] + getattr(self.patched_grpc_stub, function_name).side_effect = side_effect + return request_object + + def _assert_call(self, function_name, request_object, metadata=None): + func = getattr(self.patched_grpc_stub, function_name) + func.assert_called_once_with(request_object, metadata=metadata) + return getattr(self.patched_grpc_types, function_name + 'Request') + + # gRPC errors + + def test_server_unavailable(self): + library_func = 'InitWithOptions' + grpc_error = grpc.StatusCode.UNAVAILABLE + expected_error_message = 'Failed to connect to server' + self._set_side_effect(library_func, side_effect=MyRpcError(None, '', grpc_error=grpc_error)) + grpc_options = nifake.GrpcSessionOptions(object(), '', initialization_behavior=nifake.SessionInitializationBehavior.AUTO) + interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + try: + interpreter.init_with_options('dev1', False, False, '') + assert False + except nifake.Error as e: + assert e.rpc_code == grpc_error + assert e.description == expected_error_message + assert str(e) == f'StatusCode.UNAVAILABLE: {expected_error_message}' + + def test_server_unavailable_with_tls_elaboration(self, nitls_tagged_channel): + library_func = 'InitWithOptions' + grpc_error = grpc.StatusCode.UNAVAILABLE + self._set_side_effect(library_func, side_effect=MyRpcError(None, '', grpc_error=grpc_error)) + # The real elaboration, so this fails if nitlsconfig stops recognizing our channel. + expected_error_message = nitlsconfig.get_tls_connection_error_elaboration(nitls_tagged_channel) + assert expected_error_message is not None + assert expected_error_message != 'Failed to connect to server' + grpc_options = nifake.GrpcSessionOptions(nitls_tagged_channel, '', initialization_behavior=nifake.SessionInitializationBehavior.AUTO) + interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + try: + interpreter.init_with_options('dev1', False, False, '') + assert False + except nifake.Error as e: + assert e.rpc_code == grpc_error + assert e.description == expected_error_message + assert str(e) == f'StatusCode.UNAVAILABLE: {expected_error_message}' + + def test_function_not_implemented(self): + library_func = 'PoorlyNamedSimpleFunction' + grpc_error = grpc.StatusCode.UNIMPLEMENTED + expected_error_message_intro = 'This operation is not supported' + self._set_side_effect(library_func, side_effect=MyRpcError(None, '', grpc_error=grpc_error)) + interpreter = self._get_initialized_stub_interpreter() + try: + interpreter.simple_function() + assert False + except nifake.Error as e: + assert e.rpc_code == grpc_error + assert e.description.startswith(expected_error_message_intro) + assert str(e).startswith(f'StatusCode.UNIMPLEMENTED: {expected_error_message_intro}') + + # Methods + + def test_api_key_sent_to_init(self): + library_func = 'InitWithOptions' + expected_metadata = (('ni-api-key', nifake.MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY),) + from session_pb2 import Session as GrpcSession + grpc_session_object = GrpcSession(id=42, name='') + response_object = self._set_side_effect(library_func, new_session_initialized=True, vi=grpc_session_object) + init_behavior = nifake.SessionInitializationBehavior.AUTO + grpc_options = nifake.GrpcSessionOptions(object(), '', initialization_behavior=init_behavior) + interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + interpreter.init_with_options('dev1', False, False, '') + self._assert_call(library_func, response_object, metadata=expected_metadata).assert_called_once_with( + resource_name='dev1', id_query=False, reset_device=False, option_string='', session_name='', initialization_behavior=init_behavior, + ) + + def test_new_session_already_exists(self): + library_func = 'InitWithOptions' + session_name = 'existing_session' + error_message = "Cannot initialize '" + session_name + "' when a session already exists." + grpc_error = grpc.StatusCode.ALREADY_EXISTS + self._set_side_effect(library_func, side_effect=MyRpcError(None, error_message, grpc_error=grpc_error)) + init_behavior = nifake.SessionInitializationBehavior.INITIALIZE_SERVER_SESSION + grpc_options = nifake.GrpcSessionOptions(object(), session_name, initialization_behavior=init_behavior) + interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + try: + interpreter.init_with_options('dev1', False, False, '') + assert False + except nifake.Error as e: + assert e.rpc_code == grpc_error + assert e.description == error_message + assert str(e) == f'StatusCode.ALREADY_EXISTS: {error_message}' + + def test_attach_to_non_existent_session(self): + library_func = 'InitWithOptions' + session_name = 'non_existent_session' + error_message = "Cannot attach to '" + session_name + "' because a session has not been initialized." + grpc_error = grpc.StatusCode.FAILED_PRECONDITION + self._set_side_effect(library_func, side_effect=MyRpcError(None, error_message, grpc_error=grpc_error)) + init_behavior = nifake.SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION + grpc_options = nifake.GrpcSessionOptions(object(), session_name, initialization_behavior=init_behavior) + interpreter = nifake._grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + try: + interpreter.init_with_options('dev1', False, False, '') + assert False + except nifake.Error as e: + assert e.rpc_code == grpc_error + assert e.description == error_message + assert str(e) == f'StatusCode.FAILED_PRECONDITION: {error_message}' + + @pytest.mark.timeout(2) + def test_lock_unlock(self): + # Note: this is purely local; don't set up any grpc mocks + interpreter = self._get_initialized_stub_interpreter() + interpreter.lock() + interpreter.lock() # ensure recurive locking is allowed + interpreter.unlock() + interpreter.unlock() + + def test_simple_function(self): + library_func = 'PoorlyNamedSimpleFunction' + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.simple_function() is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_get_a_number(self): + library_func = 'GetANumber' + test_number = 16 + response_object = self._set_side_effect(library_func, a_number=test_number) + interpreter = self._get_initialized_stub_interpreter() + test_result = interpreter.get_a_number() + assert isinstance(test_result, int) + assert test_result == test_number + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_one_input_function(self): + library_func = 'OneInputFunction' + test_number = 1 + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.one_input_function(test_number) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, a_number=test_number + ) + + def test_vi_int_64_function(self): + library_func = 'Use64BitNumber' + input_value = 2 ** 40 + output_value = 2 ** 41 + response_object = self._set_side_effect(library_func, output=output_value) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.use64_bit_number(input_value) == output_value + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, input=input_value + ) + + def test_two_input_function(self): + library_func = 'TwoInputFunction' + test_number = 1.5 + test_string = 'test' + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.two_input_function(test_number, test_string) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, a_number=test_number, a_string=test_string + ) + + def test_get_enum_value(self): + library_func = 'GetEnumValue' + test_number = 1 + test_turtle = nifake.Turtle.LEONARDO + response_object = self._set_side_effect(library_func, a_quantity=test_number, a_turtle=test_turtle.value) + interpreter = self._get_initialized_stub_interpreter() + test_result_number, test_result_enum = interpreter.get_enum_value() + assert isinstance(test_result_number, int) + assert test_result_number == test_number + assert isinstance(test_result_enum, nifake.Turtle) + assert test_result_enum == test_turtle + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_get_a_list_enums(self): + library_func = 'EnumArrayOutputFunction' + test_list = [1, 1, 0] + response_object = self._set_side_effect(library_func, an_array=test_list) + interpreter = self._get_initialized_stub_interpreter() + test_result = interpreter.enum_array_output_function(len(test_list)) + assert len(test_list) == len(test_result) + for expected_value, actual_value in zip(test_list, test_result): + assert isinstance(actual_value, nifake.Turtle) + assert actual_value.value == expected_value + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_elements=len(test_list) + ) + + def test_get_a_boolean(self): + library_func = 'GetABoolean' + response_object = self._set_side_effect(library_func, a_boolean=True) + interpreter = self._get_initialized_stub_interpreter() + test_result = interpreter.get_a_boolean() + assert test_result is True + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_get_a_list_booleans(self): + library_func = 'BoolArrayOutputFunction' + test_list = [True, True, False] + response_object = self._set_side_effect(library_func, an_array=test_list) + interpreter = self._get_initialized_stub_interpreter() + test_result = interpreter.bool_array_output_function(len(test_list)) + assert len(test_list) == len(test_result) + for expected_value, actual_value in zip(test_list, test_result): + assert actual_value is expected_value + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_elements=len(test_list) + ) + + def test_single_point_read_nan(self): + library_func = 'Read' + test_maximum_time_s = 10.0 + test_reading = float('NaN') + response_object = self._set_side_effect(library_func, reading=test_reading) + interpreter = self._get_initialized_stub_interpreter() + assert math.isnan(interpreter.read(test_maximum_time_s)) + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, maximum_time=test_maximum_time_s + ) + + def test_fetch_waveform(self): + library_func = 'FetchWaveform' + expected_waveform_list = [1.0, 0.1, 42.0, 0.42] + response_object = self._set_side_effect(library_func, waveform_data=expected_waveform_list, actual_number_of_samples=len(expected_waveform_list)) + interpreter = self._get_initialized_stub_interpreter() + actual_waveform = interpreter.fetch_waveform(len(expected_waveform_list)) + assert isinstance(actual_waveform[0], float) + assert len(actual_waveform) == len(expected_waveform_list) + for i in range(len(actual_waveform)): + assert actual_waveform[i] == expected_waveform_list[i] + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_samples=len(expected_waveform_list) + ) + + def test_fetch_waveform_into(self): + interpreter = self._get_initialized_stub_interpreter() + waveform = numpy.empty(4, numpy.float64) + try: + interpreter.fetch_waveform_into(waveform) + assert False + except NotImplementedError: + pass + + def test_write_waveform(self): + library_func = 'WriteWaveform' + expected_waveform = [1.1, 2.2, 3.3, 4.4] + expected_array = array.array('d', expected_waveform) + interpreter = self._get_initialized_stub_interpreter() + response_object = self._set_side_effect(library_func) + assert interpreter.write_waveform(expected_array) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, waveform=expected_array + ) + + def test_write_waveform_numpy(self): + waveform = numpy.array([1.1, 2.2, 3.3, 4.4], order='C') + interpreter = self._get_initialized_stub_interpreter() + try: + interpreter.write_waveform_numpy(waveform) + assert False + except NotImplementedError: + pass + + def test_write_waveform_numpy_complex128(self): + library_func = 'WriteWaveformNumpyComplex128' + waveform = numpy.array([1.0 + 2.0j, 3.0 + 4.0j, 5.0 + 6.0j], dtype=numpy.complex128) + grpc_waveform = [ + nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexNumber(real=value.real, imaginary=value.imag) + for value in waveform.ravel() + ] + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.write_waveform_numpy_complex128(waveform) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + waveform_data_array=grpc_waveform, + ) + + def test_write_waveform_numpy_complex64(self): + library_func = 'WriteWaveformNumpyComplex64' + waveform = numpy.array([1.0 + 2.0j, 3.0 + 4.0j, 5.0 + 6.0j], dtype=numpy.complex64) + grpc_waveform = [ + nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexNumberF32(real=value.real, imaginary=value.imag) + for value in waveform.ravel() + ] + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.write_waveform_numpy_complex64(waveform) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + waveform_data_array=grpc_waveform, + ) + + def test_write_waveform_numpy_complex_interleaved_i16(self): + library_func = 'WriteWaveformNumpyComplexInterleavedI16' + waveform = numpy.array([32767, 0, 123, -456], dtype=numpy.int16) + assert len(waveform) % 2 == 0 + grpc_waveform = [ + nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexI16(real=waveform[i], imaginary=waveform[i + 1]) + for i in range(0, len(waveform), 2) + ] + assert len(grpc_waveform) == len(waveform) // 2 + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.write_waveform_numpy_complex_interleaved_i16(waveform) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + waveform_data_array=grpc_waveform, + ) + + def test_function_with_3d_numpy_array_of_numpy_complex128_input_parameter(self): + library_func = 'FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter' + array_3d = numpy.array( + [[[1.0 + 2.0j, 3.0 + 4.0j], [5.0 + 6.0j, 7.0 + 8.0j]], [[9.0 + 10.0j, 11.0 + 12.0j], [13.0 + 14.0j, 15.0 + 16.0j]]], + dtype=numpy.complex128, + ) + grpc_array = [ + nifake._grpc_stub_interpreter.grpc_complex_types.NIComplexNumber(real=value.real, imaginary=value.imag) + for value in array_3d.ravel() + ] + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(array_3d) is None + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + multidimensional_array=grpc_array, + ) + + def test_return_multiple_types(self): + library_func = 'ReturnMultipleTypes' + boolean_val = True + int32_val = 32 + int64_val = 6000000000 + expected_enum_val = nifake.Turtle.LEONARDO + enum_val = nifake._grpc_stub_interpreter.grpc_types.Turtle.TURTLE_LEONARDO + float_val = 1.23 + expected_float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE + float_enum_val = nifake._grpc_stub_interpreter.grpc_types.FloatEnum.FLOAT_ENUM_SIX_POINT_FIVE + raw_float_enum_val = 6.5 + array_val = [0.0, 1.0, 2.0] + array_size = len(array_val) + string_val = 'Testing is fun?' + response_object = self._set_side_effect( + library_func, + a_boolean=boolean_val, + an_int32=int32_val, + an_int64=int64_val, + an_int_enum=enum_val, + a_float=float_val, + a_float_enum_mapped=float_enum_val, + a_float_enum_raw=raw_float_enum_val, + an_array=array_val, + a_string=string_val, + ) + interpreter = self._get_initialized_stub_interpreter() + result_boolean, result_int32, result_int64, result_enum, result_float, result_float_enum, result_array, result_string = interpreter.return_multiple_types(array_size) + assert result_boolean == boolean_val + assert isinstance(result_boolean, bool) + assert result_int32 == int32_val + assert isinstance(result_int32, int) + assert result_int64 == int64_val + assert isinstance(result_int64, int) + assert result_enum == expected_enum_val + assert isinstance(result_enum, nifake.Turtle) + assert result_float == float_val + assert isinstance(result_float, float) + assert result_float_enum == expected_float_enum_val + assert isinstance(result_float_enum, nifake.FloatEnum) + assert result_array == array_val + # assert `list` duck typing (in reality, it's a google._upb._message.RepeatedScalarContainer + assert isinstance(result_array, collections.abc.Sequence) + assert isinstance(result_array[0], float) + assert result_string == string_val + assert isinstance(result_string, str) + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, array_size=array_size + ) + + def test_multiple_array_types(self): + library_func = 'MultipleArrayTypes' + expected_output_array = [0.2, 0.4] + expected_output_array_of_fixed_length = [-6.0, -7.0, -8.0] + output_array_size = len(expected_output_array) + input_array_of_integers = [1, 2] + input_array_of_floats = [-1.0, -2.0] + response_object = self._set_side_effect( + library_func, + output_array=expected_output_array, + output_array_of_fixed_length=expected_output_array_of_fixed_length, + ) + interpreter = self._get_initialized_stub_interpreter() + output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, input_array_of_integers) + assert output_array == output_array + assert expected_output_array_of_fixed_length == output_array_of_fixed_length + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + output_array_size=output_array_size, + input_array_of_floats=input_array_of_floats, + input_array_of_integers=input_array_of_integers, + ) + + def test_multiple_array_types_none_input(self): + library_func = 'MultipleArrayTypes' + expected_output_array = [0.2, 0.4] + expected_output_array_of_fixed_length = [-6.0, -7.0, -8.0] + output_array_size = len(expected_output_array) + input_array_of_floats = [0.1, 0.2] + response_object = self._set_side_effect( + library_func, + output_array=expected_output_array, + output_array_of_fixed_length=expected_output_array_of_fixed_length, + ) + interpreter = self._get_initialized_stub_interpreter() + output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, None) + assert output_array == output_array + assert expected_output_array_of_fixed_length == output_array_of_fixed_length + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + output_array_size=output_array_size, + input_array_of_floats=input_array_of_floats, + input_array_of_integers=None, + ) + + def test_multiple_arrays_same_size(self): + library_func = 'MultipleArraysSameSize' + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] + input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] + input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] + response_object = self._set_side_effect(library_func) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + values1=input_array_of_floats1, + values2=input_array_of_floats2, + values3=input_array_of_floats3, + values4=input_array_of_floats4, + ) + + def test_multiple_arrays_same_size_none_input(self): + library_func = 'MultipleArraysSameSize' + response_object = self._set_side_effect(library_func) + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.multiple_arrays_same_size(input_array_of_floats1, None, None, None) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + values1=input_array_of_floats1, + values2=None, + values3=None, + values4=None, + ) + + def test_multiple_arrays_different_size(self): + library_func = 'MultipleArraysDifferentSize' + response_object = self._set_side_effect(library_func) + values_array = [1.1, 2.2, 3.3] + data_array = [10, 20, 30, 40, 50] + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.multiple_arrays_different_size(values_array, data_array) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + values_array=values_array, + data_array=data_array, + ) + + def test_multiple_arrays_different_size_none_input(self): + library_func = 'MultipleArraysDifferentSize' + response_object = self._set_side_effect(library_func) + values_array = [1.1, 2.2, 3.3] + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.multiple_arrays_different_size(values_array, None) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + values_array=values_array, + data_array=None, + ) + + def test_mixed_ivi_dance_and_len_mechanism(self): + library_func = 'MixedIviDanceAndLenMechanism' + input_values = [1.1, 2.2, 3.3] + expected_output = [4, 5] + response_object = self._set_side_effect(library_func, output_array=expected_output) + interpreter = self._get_initialized_stub_interpreter() + result_array = interpreter.mixed_ivi_dance_and_len_mechanism(input_values) + assert result_array == expected_output + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + input_values=input_values, + ) + + def test_multiple_arrays_same_size_wrong_size(self): + library_func = 'MultipleArraysSameSize' + # grpc-device server checks this server-side and errors with ::grpc::INVALID_ARGUMENT + self._set_side_effect(library_func, side_effect=MyRpcError( + None, + 'The sizes of linked repeated fields [values1, values2, values3, values4] do not match', + grpc_error=grpc.StatusCode.INVALID_ARGUMENT, + )) + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + input_array_of_floats2 = [0.410, 0.420, 0.430] + input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] + input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] + interpreter = self._get_initialized_stub_interpreter() + try: + assert interpreter.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) is None # no outputs + assert False + except ValueError: + pass + + def test_parameters_are_multiple_types(self): + library_func = 'ParametersAreMultipleTypes' + response_object = self._set_side_effect(library_func) + boolean_val = True + int32_val = 32 + int64_val = 6000000000 + enum_val = nifake.Turtle.LEONARDO + float_val = 1.23 + float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE + string_val = 'Testing is fun?' + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.parameters_are_multiple_types(boolean_val, int32_val, int64_val, enum_val, float_val, float_enum_val, string_val) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + a_boolean=boolean_val, + an_int32=int32_val, + an_int64=int64_val, + an_int_enum_raw=enum_val.value, + a_float=float_val, + a_float_enum_raw=float_enum_val.value, + a_string=string_val, + ) + + def test_method_with_error(self): + library_func = 'PoorlyNamedSimpleFunction' + test_error_code = -42 + test_error_desc = 'The answer to the ultimate question' + self._set_side_effect(library_func, side_effect=MyRpcError(test_error_code, test_error_desc)) + interpreter = self._get_initialized_stub_interpreter() + try: + assert interpreter.simple_function() is None # no outputs + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_call_not_enough_parameters_error(self): + interpreter = self._get_initialized_stub_interpreter() + try: + assert interpreter.multiple_array_types(10) is None # no outputs + assert False + except TypeError: + pass + + def test_invalid_method_call_wrong_type_error(self): + interpreter = self._get_initialized_stub_interpreter() + try: + assert interpreter.multiple_array_types('potato', [0.0, 0.1, 0.2]) is None # no outputs + assert False + except TypeError: + pass + + def test_method_with_warning(self): + # We want to capture all of our warnings, not just the first one + warnings.filterwarnings('always', category=nifake.DriverWarning) + + library_func = 'PoorlyNamedSimpleFunction' + test_error_code = 42 + test_error_desc = 'The answer to the ultimate question, only positive' + response_object = self._set_side_effect(library_func, status=test_error_code) + error_response_object = self._set_side_effect('ErrorMessage', error_message=test_error_desc) + interpreter = self._get_initialized_stub_interpreter() + with warnings.catch_warnings(record=True) as w: + assert interpreter.simple_function() is None # no outputs + assert len(w) == 1 + assert issubclass(w[0].category, nifake.DriverWarning) + assert test_error_desc in str(w[0].message) + assert f'Warning {test_error_code} occurred.' in str(w[0].message) + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + self._assert_call('ErrorMessage', error_response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, error_code=test_error_code + ) + + def test_read_with_warning(self): + # We want to capture all of our warnings, not just the first one + warnings.filterwarnings('always', category=nifake.DriverWarning) + + library_func = 'Read' + test_maximum_time_s = 10.0 + test_reading = float('nan') + test_error_code = 42 + test_error_desc = 'The answer to the ultimate question, only positive' + response_object = self._set_side_effect(library_func, status=test_error_code, reading=test_reading) + error_response_object = self._set_side_effect('ErrorMessage', error_message=test_error_desc) + interpreter = self._get_initialized_stub_interpreter() + with warnings.catch_warnings(record=True) as w: + assert math.isnan(interpreter.read(test_maximum_time_s)) + assert len(w) == 1 + assert issubclass(w[0].category, nifake.DriverWarning) + assert test_error_desc in str(w[0].message) + assert f'Warning {test_error_code} occurred.' in str(w[0].message) + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, maximum_time=test_maximum_time_s + ) + self._assert_call('ErrorMessage', error_response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, error_code=test_error_code + ) + + # Retrieving buffers and strings + + def test_get_a_string_of_fixed_maximum_size(self): + library_func = 'GetAStringOfFixedMaximumSize' + test_string = 'A string no larger than the max size of 256 allowed by the function.' + response_object = self._set_side_effect(library_func, a_string=test_string) + interpreter = self._get_initialized_stub_interpreter() + returned_string = interpreter.get_a_string_of_fixed_maximum_size() + assert returned_string == test_string + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_return_a_number_and_a_string(self): + library_func = 'ReturnANumberAndAString' + test_string = 'this string' + test_number = 13 + response_object = self._set_side_effect(library_func, a_string=test_string, a_number=test_number) + interpreter = self._get_initialized_stub_interpreter() + returned_number, returned_string = interpreter.return_a_number_and_a_string() + assert returned_string == test_string + assert returned_number == test_number + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_get_an_ivi_dance_char_array(self): + library_func = 'GetAnIviDanceCharArray' + string_val = 'Testing is fun?' + response_object = self._set_side_effect(library_func, char_array=string_val) + interpreter = self._get_initialized_stub_interpreter() + result_string = interpreter.get_an_ivi_dance_char_array() + assert result_string == string_val + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_get_string_ivi_dance_error(self): + library_func = 'GetAttributeViString' + read_write_string_attribute_id = 1000002 + test_error_code = -1234 + test_error_desc = 'ascending order' + self._set_side_effect(library_func, side_effect=MyRpcError(test_error_code, test_error_desc)) + interpreter = self._get_initialized_stub_interpreter() + try: + assert interpreter.get_attribute_vi_string('', read_write_string_attribute_id) is None # no outputs + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_get_an_ivi_dance_with_a_twist_string(self): + library_func = 'GetAnIviDanceWithATwistString' + string_val = 'Testing is fun?' + response_object = self._set_side_effect(library_func, a_string=string_val, actual_size=len(string_val)) + interpreter = self._get_initialized_stub_interpreter() + result_string = interpreter.get_an_ivi_dance_with_a_twist_string() + assert result_string == string_val + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_get_array_using_ivi_dance(self): + library_func = 'GetArrayUsingIviDance' + response_object = self._set_side_effect(library_func, array_out=[1.1, 2.2]) + interpreter = self._get_initialized_stub_interpreter() + result_array = interpreter.get_array_using_ivi_dance() + assert result_array == [1.1, 2.2] + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + # Attributes + + def test_get_attribute_int32(self): + library_func = 'GetAttributeViInt32' + attribute_id = 1000004 + test_number = 3 + response_object = self._set_side_effect(library_func, attribute_value=test_number) + interpreter = self._get_initialized_stub_interpreter() + attr_int = interpreter.get_attribute_vi_int32('', attribute_id) + assert attr_int == test_number + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id + ) + + def test_set_attribute_int32(self): + library_func = 'SetAttributeViInt32' + response_object = self._set_side_effect(library_func) + attribute_id = 1000004 + test_number = -10 + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_attribute_vi_int32('', attribute_id, test_number) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + channel_name='', + attribute_id=attribute_id, + attribute_value_raw=test_number, + ) + + def test_get_attribute_real64(self): + library_func = 'GetAttributeViReal64' + attribute_id = 1000001 + test_number = 1.5 + response_object = self._set_side_effect(library_func, attribute_value=test_number) + interpreter = self._get_initialized_stub_interpreter() + attr_double = interpreter.get_attribute_vi_real64('', attribute_id) + assert attr_double == test_number + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id + ) + + def test_set_attribute_real64(self): + library_func = 'SetAttributeViReal64' + response_object = self._set_side_effect(library_func) + attribute_id = 1000001 + test_number = 10.1 + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_attribute_vi_real64('', attribute_id, test_number) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + channel_name='', + attribute_id=attribute_id, + attribute_value_raw=test_number, + ) + + def test_get_attribute_string(self): + library_func = 'GetAttributeViString' + attribute_id = 1000002 + string = 'Testing is fun?' + response_object = self._set_side_effect(library_func, attribute_value=string) + interpreter = self._get_initialized_stub_interpreter() + attr_string = interpreter.get_attribute_vi_string('', attribute_id) + assert attr_string == string + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id + ) + + def test_set_attribute_string(self): + library_func = 'SetAttributeViString' + response_object = self._set_side_effect(library_func) + attribute_id = 1000002 + attrib_string = 'This is test string' + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_attribute_vi_string('', attribute_id, attrib_string) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + channel_name='', + attribute_id=attribute_id, + attribute_value_raw='This is test string', + ) + + def test_get_attribute_boolean(self): + library_func = 'GetAttributeViBoolean' + attribute_id = 1000000 + response_object = self._set_side_effect(library_func, attribute_value=True) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.get_attribute_vi_boolean('', attribute_id) + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id + ) + + def test_set_attribute_boolean(self): + library_func = 'SetAttributeViBoolean' + response_object = self._set_side_effect(library_func) + attribute_id = 1000000 + attrib_bool = True + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_attribute_vi_boolean('', attribute_id, attrib_bool) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id, attribute_value=True + ) + + def test_get_attribute_int64(self): + library_func = 'GetAttributeViInt64' + attribute_id = 1000006 + test_number = 6000000000 + response_object = self._set_side_effect(library_func, attribute_value=test_number) + interpreter = self._get_initialized_stub_interpreter() + attr_int = interpreter.get_attribute_vi_int64('', attribute_id) + assert attr_int == test_number + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, channel_name='', attribute_id=attribute_id + ) + + def test_set_attribute_int64(self): + library_func = 'SetAttributeViInt64' + response_object = self._set_side_effect(library_func) + attribute_id = 1000006 + test_number = -6000000000 + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_attribute_vi_int64('', attribute_id, test_number) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, + channel_name='', + attribute_id=attribute_id, + attribute_value_raw=test_number, + ) + + # Error descriptions + + def test_error_message_returns_error(self): + # We want to capture all of our warnings, not just the first one + warnings.filterwarnings('always', category=nifake.DriverWarning) + + test_error_code = 42 + library_func = 'PoorlyNamedSimpleFunction' + response_object = self._set_side_effect(library_func, status=test_error_code) + error_msg_response_object = self._set_side_effect('ErrorMessage', side_effect=MyRpcError(-3, 'ErrorMessage failed')) + interpreter = self._get_initialized_stub_interpreter() + with warnings.catch_warnings(record=True) as w: + assert interpreter.simple_function() is None # no outputs + assert len(w) == 1 + assert issubclass(w[0].category, nifake.DriverWarning) + assert 'Failed to retrieve error description.' in str(w[0].message) + assert f'Warning {test_error_code} occurred.' in str(w[0].message) + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + self._assert_call('ErrorMessage', error_msg_response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST, error_code=test_error_code) + + # Custom types + + def test_set_custom_type(self): + library_func = 'SetCustomType' + response_object = self._set_side_effect(library_func) + cs = nifake.CustomStruct(struct_int=42, struct_double=4.2) + grpc_cs = nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2) + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_custom_type(cs) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, cs=grpc_cs + ) + + def test_get_custom_type(self): + library_func = 'GetCustomType' + expected_cs = nifake.CustomStruct(struct_int=42, struct_double=4.2) + grpc_cs = nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2) + response_object = self._set_side_effect(library_func, cs=grpc_cs) + interpreter = self._get_initialized_stub_interpreter() + cs = interpreter.get_custom_type() + assert cs.struct_int == expected_cs.struct_int + assert cs.struct_double == expected_cs.struct_double + assert isinstance(cs, type(expected_cs)) + self._assert_call(library_func, response_object).assert_called_once_with(vi=GRPC_SESSION_OBJECT_FOR_TEST) + + def test_set_custom_type_array(self): + library_func = 'SetCustomTypeArray' + response_object = self._set_side_effect(library_func) + cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] + grpc_cs = [nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=43, struct_double=4.3), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.3)] + interpreter = self._get_initialized_stub_interpreter() + assert interpreter.set_custom_type_array(cs) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, cs=grpc_cs + ) + + def test_get_custom_type_array(self): + library_func = 'GetCustomTypeArray' + cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] + grpc_cs = [nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.2), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=43, struct_double=4.3), nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=42, struct_double=4.3)] + response_object = self._set_side_effect(library_func, cs=grpc_cs) + interpreter = self._get_initialized_stub_interpreter() + cs_test = interpreter.get_custom_type_array(len(cs)) + assert len(cs_test) == len(cs) + for actual, expected in zip(cs_test, cs): + assert actual.struct_int == expected.struct_int + assert actual.struct_double == expected.struct_double + assert isinstance(actual, type(expected)) + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, number_of_elements=len(cs) + ) + + def test_get_custom_type_typedef(self): + library_func = 'CustomNestedStructRoundtrip' + csnt = nifake.CustomStructNestedTypedef( + struct_custom_struct=nifake.CustomStruct(struct_int=43, struct_double=4.3), + struct_custom_struct_typedef=nifake.CustomStructTypedef(struct_int=44, struct_double=4.4) + ) + grpc_csnt = nifake._grpc_stub_interpreter.grpc_types.CustomStructNestedTypedef( + struct_custom_struct=nifake._grpc_stub_interpreter.grpc_types.FakeCustomStruct(struct_int=43, struct_double=4.3), + struct_custom_struct_typedef=nifake._grpc_stub_interpreter.grpc_types.CustomStructTypedef(struct_int=44, struct_double=4.4) + ) + response_object = self._set_side_effect(library_func, nested_custom_type_out=grpc_csnt) + interpreter = self._get_initialized_stub_interpreter() + csnt_test = interpreter.custom_nested_struct_roundtrip(nested_custom_type_in=csnt) + assert csnt_test.struct_custom_struct.struct_int == csnt.struct_custom_struct.struct_int + assert csnt_test.struct_custom_struct.struct_double == csnt.struct_custom_struct.struct_double + assert csnt_test.struct_custom_struct_typedef.struct_int == csnt.struct_custom_struct_typedef.struct_int + assert csnt_test.struct_custom_struct_typedef.struct_double == csnt.struct_custom_struct_typedef.struct_double + assert isinstance(csnt_test.struct_custom_struct, type(csnt.struct_custom_struct)) + assert isinstance(csnt_test.struct_custom_struct_typedef, type(csnt.struct_custom_struct_typedef)) + assert isinstance(csnt_test, type(csnt)) + request_object = self._assert_call(library_func, response_object) + request_object.assert_called_once() + call = request_object.call_args_list[0] + assert len(call) == 2 + call_args, call_kwargs = call + assert not call_args + assert 'nested_custom_type_in' in call_kwargs + sent_csnt = call_kwargs['nested_custom_type_in'] + assert sent_csnt.struct_custom_struct.struct_int == grpc_csnt.struct_custom_struct.struct_int + assert sent_csnt.struct_custom_struct.struct_double == grpc_csnt.struct_custom_struct.struct_double + assert sent_csnt.struct_custom_struct_typedef.struct_int == grpc_csnt.struct_custom_struct_typedef.struct_int + assert sent_csnt.struct_custom_struct_typedef.struct_double == grpc_csnt.struct_custom_struct_typedef.struct_double + assert isinstance(sent_csnt.struct_custom_struct, type(grpc_csnt.struct_custom_struct)) + assert isinstance(sent_csnt.struct_custom_struct_typedef, type(grpc_csnt.struct_custom_struct_typedef)) + assert isinstance(sent_csnt, type(grpc_csnt)) + + def test_get_cal_date_time(self): + library_func = 'GetCalDateAndTime' + month = 12 + day = 30 + year = 1988 + hour = 10 + minute = 15 + response_object = self._set_side_effect( + library_func, month=month, day=day, year=year, hour=hour, minute=minute + ) + interpreter = self._get_initialized_stub_interpreter() + last_cal = interpreter.get_cal_date_and_time(0) + assert (month, day, year, hour, minute) == last_cal + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, cal_type=0 + ) + + # Import/Export functions + + def test_import_attribute_configuration_buffer(self): + library_func = 'ImportAttributeConfigurationBuffer' + configuration = b'abcd' + interpreter = self._get_initialized_stub_interpreter() + response_object = self._set_side_effect(library_func) + assert interpreter.import_attribute_configuration_buffer(configuration) is None # no outputs + self._assert_call(library_func, response_object).assert_called_once_with( + vi=GRPC_SESSION_OBJECT_FOR_TEST, configuration=configuration + ) + + def test_missing_function(self): + library_func = 'Abort' + self._set_side_effect(library_func, side_effect=MyRpcError(None, 'not found', grpc_error=grpc.StatusCode.NOT_FOUND)) + interpreter = self._get_initialized_stub_interpreter() + try: + interpreter.abort() + assert False + except nifake.errors.DriverTooOldError as e: + message = e.args[0] + assert message == 'A function was not found in the NI-FAKE runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.' diff --git a/generated/nifake/nifake/unit_tests/test_library_interpreter.py b/generated/nifake/nifake/unit_tests/test_library_interpreter.py new file mode 100644 index 0000000000..8a7c5f8e02 --- /dev/null +++ b/generated/nifake/nifake/unit_tests/test_library_interpreter.py @@ -0,0 +1,1023 @@ +import array +import ctypes +import math +import nifake +import nifake.errors +import numpy +import pytest +import warnings + +from unittest.mock import call +from unittest.mock import MagicMock +from unittest.mock import patch + +import _matchers +import _mock_helper + +SESSION_NUM_FOR_TEST = 42 + + +class TestLibraryInterpreter: + + class PatchedLibrary(nifake._library.Library): + def __init__(self, ctypes_library): + super().__init__(ctypes_library) + + for f in dir(self): + if f.startswith("niFake_") and not f.endswith("_cfunc"): + setattr(self, f, MagicMock()) + + def setup_method(self, method): + self.patched_library = self.PatchedLibrary(None) + self.patched_library_singleton_get = patch('nifake._library_interpreter._library_singleton.get', return_value=self.patched_library) + self.patched_library_singleton_get.start() + + self.side_effects_helper = _mock_helper.SideEffectsHelper() + self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) + self.patched_library.niFake_SetRuntimeEnvironment.side_effect = self.side_effects_helper.niFake_SetRuntimeEnvironment + + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + self.get_ctypes_pointer_for_buffer_side_effect_items = [] + + def teardown_method(self, method): + self.patched_library_singleton_get.stop() + + def get_initialized_library_interpreter(self): + interpreter = nifake._library_interpreter.LibraryInterpreter('windows-1251') + interpreter._vi = SESSION_NUM_FOR_TEST + return interpreter + + def niFake_read_warning(self, vi, maximum_time, reading): # noqa: N802 + reading.contents.value = self.reading + return self.error_code_return + + def get_ctypes_pointer_for_buffer_side_effect(self, value, library_type=None): + ret_val = self.get_ctypes_pointer_for_buffer_side_effect_items[self.get_ctypes_pointer_for_buffer_side_effect_count] + self.get_ctypes_pointer_for_buffer_side_effect_count += 1 + return ret_val + + # Methods + + def test_simple_function(self): + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + interpreter = self.get_initialized_library_interpreter() + interpreter.simple_function() + self.patched_library.niFake_PoorlyNamedSimpleFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) + + def test_get_a_number(self): + test_number = 16 + self.patched_library.niFake_GetANumber.side_effect = self.side_effects_helper.niFake_GetANumber + self.side_effects_helper['GetANumber']['aNumber'] = test_number + interpreter = self.get_initialized_library_interpreter() + test_result = interpreter.get_a_number() + assert isinstance(test_result, int) + assert test_result == test_number + self.patched_library.niFake_GetANumber.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt16PointerMatcher()) + + def test_one_input_function(self): + test_number = 1 + self.patched_library.niFake_OneInputFunction.side_effect = self.side_effects_helper.niFake_OneInputFunction + interpreter = self.get_initialized_library_interpreter() + interpreter.one_input_function(test_number) + self.patched_library.niFake_OneInputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_number)) + + def test_vi_int_64_function(self): + input_value = 2 ** 40 + output_value = 2 ** 41 + self.patched_library.niFake_Use64BitNumber.side_effect = self.side_effects_helper.niFake_Use64BitNumber + self.side_effects_helper['Use64BitNumber']['output'] = output_value + interpreter = self.get_initialized_library_interpreter() + assert interpreter.use64_bit_number(input_value) == output_value + self.patched_library.niFake_Use64BitNumber.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt64Matcher(input_value), _matchers.ViInt64PointerMatcher()) + + def test_two_input_function(self): + test_number = 1.5 + test_string = 'test' + self.patched_library.niFake_TwoInputFunction.side_effect = self.side_effects_helper.niFake_TwoInputFunction + interpreter = self.get_initialized_library_interpreter() + interpreter.two_input_function(test_number, test_string) + self.patched_library.niFake_TwoInputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViReal64Matcher(test_number), _matchers.ViStringMatcher(test_string)) + + def test_get_enum_value(self): + test_number = 1 + test_turtle = nifake.Turtle.LEONARDO + self.patched_library.niFake_GetEnumValue.side_effect = self.side_effects_helper.niFake_GetEnumValue + self.side_effects_helper['GetEnumValue']['aQuantity'] = test_number + self.side_effects_helper['GetEnumValue']['aTurtle'] = 0 + interpreter = self.get_initialized_library_interpreter() + test_result_number, test_result_enum = interpreter.get_enum_value() + assert isinstance(test_result_number, int) + assert test_result_number == test_number + assert isinstance(test_result_enum, nifake.Turtle) + assert test_result_enum == test_turtle + self.patched_library.niFake_GetEnumValue.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32PointerMatcher(), _matchers.ViInt16PointerMatcher()) + + def test_get_a_list_enums(self): + self.patched_library.niFake_EnumArrayOutputFunction.side_effect = self.side_effects_helper.niFake_EnumArrayOutputFunction + test_list = [1, 1, 0] + self.side_effects_helper['EnumArrayOutputFunction']['anArray'] = test_list + interpreter = self.get_initialized_library_interpreter() + test_result = interpreter.enum_array_output_function(len(test_list)) + assert len(test_list) == len(test_result) + for expected_value, actual_value in zip(test_list, test_result): + assert isinstance(actual_value, nifake.Turtle) + assert actual_value.value == expected_value + self.patched_library.niFake_EnumArrayOutputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(test_list)), _matchers.ViInt16BufferMatcher(len(test_list))) + + def test_get_a_boolean(self): + self.patched_library.niFake_GetABoolean.side_effect = self.side_effects_helper.niFake_GetABoolean + self.side_effects_helper['GetABoolean']['aBoolean'] = 1 + interpreter = self.get_initialized_library_interpreter() + test_result = interpreter.get_a_boolean() + assert isinstance(test_result, bool) + assert test_result + self.patched_library.niFake_GetABoolean.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViBooleanPointerMatcher()) + + def test_get_a_list_booleans(self): + self.patched_library.niFake_BoolArrayOutputFunction.side_effect = self.side_effects_helper.niFake_BoolArrayOutputFunction + test_list = [1, 1, 0] + self.side_effects_helper['BoolArrayOutputFunction']['anArray'] = test_list + interpreter = self.get_initialized_library_interpreter() + test_result = interpreter.bool_array_output_function(len(test_list)) + assert len(test_list) == len(test_result) + for expected_value, actual_value in zip(test_list, test_result): + assert isinstance(actual_value, bool) + assert actual_value == bool(expected_value) + self.patched_library.niFake_BoolArrayOutputFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(test_list)), _matchers.ViBooleanBufferMatcher(len(test_list))) + + def test_single_point_read_nan(self): + test_maximum_time_s = 10.0 + test_reading = float('NaN') + self.patched_library.niFake_Read.side_effect = self.side_effects_helper.niFake_Read + self.side_effects_helper['Read']['reading'] = test_reading + interpreter = self.get_initialized_library_interpreter() + assert math.isnan(interpreter.read(test_maximum_time_s)) + + def test_fetch_waveform(self): + expected_waveform_list = [1.0, 0.1, 42, .42] + self.patched_library.niFake_FetchWaveform.side_effect = self.side_effects_helper.niFake_FetchWaveform + self.side_effects_helper['FetchWaveform']['waveformData'] = expected_waveform_list + self.side_effects_helper['FetchWaveform']['actualNumberOfSamples'] = len(expected_waveform_list) + + # Because we are mocking _get_ctypes_pointer_for_buffer() we don't end up using the array allocated in the function call. Instead, we will allocate the arrays here + # and have the mock return them. These are the ones that are actually filled in by the function. + expected_waveform = array.array('d', [0]) * len(expected_waveform_list) + expected_waveform_ctypes = ctypes.cast(expected_waveform.buffer_info()[0], ctypes.POINTER(nifake._visatype.ViReal64 * len(expected_waveform_list))) + + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_waveform_ctypes] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + self.patched_library.niFake_WriteWaveform.side_effect = self.side_effects_helper.niFake_WriteWaveform + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + # Because we have mocked away _get_ctypes_pointer_for_buffer(), we ignore the return values here and look at our already allocated arrays to make + # sure they are filled in correctly + interpreter.fetch_waveform(len(expected_waveform_list)) + assert isinstance(expected_waveform[0], float) + assert len(expected_waveform) == len(expected_waveform_list) + for i in range(len(expected_waveform)): + assert expected_waveform[i] == expected_waveform_list[i] + self.patched_library.niFake_FetchWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_waveform), _matchers.ViInt32PointerMatcher()) + + def test_fetch_waveform_into(self): + expected_waveform = [1.0, 0.1, 42, .42] + self.patched_library.niFake_FetchWaveform.side_effect = self.side_effects_helper.niFake_FetchWaveform + self.side_effects_helper['FetchWaveform']['waveformData'] = expected_waveform + self.side_effects_helper['FetchWaveform']['actualNumberOfSamples'] = len(expected_waveform) + interpreter = self.get_initialized_library_interpreter() + waveform = numpy.empty(len(expected_waveform), numpy.float64) + interpreter.fetch_waveform_into(waveform) + assert numpy.array_equal(waveform, expected_waveform) + self.patched_library.niFake_FetchWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_waveform), _matchers.ViInt32PointerMatcher()) + + def test_write_waveform(self): + expected_waveform = [1.1, 2.2, 3.3, 4.4] + expected_array = array.array('d', expected_waveform) + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_waveform] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + self.patched_library.niFake_WriteWaveform.side_effect = self.side_effects_helper.niFake_WriteWaveform + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + interpreter.write_waveform(expected_array) + self.patched_library.niFake_WriteWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_array)) + + def test_write_waveform_numpy(self): + expected_waveform = numpy.array([1.1, 2.2, 3.3, 4.4], order='C') + self.patched_library.niFake_WriteWaveform.side_effect = self.side_effects_helper.niFake_WriteWaveform + interpreter = self.get_initialized_library_interpreter() + interpreter.write_waveform_numpy(expected_waveform) + self.patched_library.niFake_WriteWaveform.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(expected_waveform)), _matchers.ViReal64BufferMatcher(expected_waveform)) + + def test_return_multiple_types(self): + self.patched_library.niFake_ReturnMultipleTypes.side_effect = self.side_effects_helper.niFake_ReturnMultipleTypes + boolean_val = True + int32_val = 32 + int64_val = 6000000000 + enum_val = nifake.Turtle.LEONARDO + float_val = 1.23 + float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE + array_val = [0, 1, 2] + array_size = len(array_val) + string_val = 'Testing is fun?' + self.side_effects_helper['ReturnMultipleTypes']['return'] = len(string_val) + self.side_effects_helper['ReturnMultipleTypes']['aBoolean'] = boolean_val + self.side_effects_helper['ReturnMultipleTypes']['anInt32'] = int32_val + self.side_effects_helper['ReturnMultipleTypes']['anInt64'] = int64_val + self.side_effects_helper['ReturnMultipleTypes']['anIntEnum'] = enum_val.value + self.side_effects_helper['ReturnMultipleTypes']['aFloat'] = float_val + self.side_effects_helper['ReturnMultipleTypes']['aFloatEnum'] = float_enum_val.value + self.side_effects_helper['ReturnMultipleTypes']['anArray'] = array_val + self.side_effects_helper['ReturnMultipleTypes']['aString'] = string_val + self.side_effects_helper['ReturnMultipleTypes']['return'] = 0 + interpreter = self.get_initialized_library_interpreter() + result_boolean, result_int32, result_int64, result_enum, result_float, result_float_enum, result_array, result_string = interpreter.return_multiple_types(array_size) + assert result_boolean == boolean_val + assert isinstance(result_boolean, bool) + assert result_int32 == int32_val + assert isinstance(result_int32, int) + assert result_int64 == int64_val + assert isinstance(result_int64, int) + assert result_enum == enum_val + assert isinstance(result_enum, nifake.Turtle) + assert result_float == float_val + assert isinstance(result_float, float) + assert result_float_enum == float_enum_val + assert isinstance(result_float_enum, nifake.FloatEnum) + assert result_array == array_val + assert isinstance(result_array, list) + assert isinstance(result_array[0], float) + assert result_string == string_val + assert isinstance(result_string, str) + assert self.patched_library.niFake_ReturnMultipleTypes.call_count == 2 + + def test_multiple_array_types(self): + self.patched_library.niFake_MultipleArrayTypes.side_effect = self.side_effects_helper.niFake_MultipleArrayTypes + expected_output_array = [0.2, 0.4] + expected_output_array_of_fixed_length = [-6, -7, -8] + output_array_size = len(expected_output_array) + input_array_of_integers = [1, 2] + input_array_of_floats = [-1.0, -2.0] + self.side_effects_helper['MultipleArrayTypes']['outputArray'] = expected_output_array + self.side_effects_helper['MultipleArrayTypes']['outputArrayOfFixedLength'] = expected_output_array_of_fixed_length + interpreter = self.get_initialized_library_interpreter() + output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, input_array_of_integers) + assert output_array == output_array + assert expected_output_array_of_fixed_length == output_array_of_fixed_length + self.patched_library.niFake_MultipleArrayTypes.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViInt32Matcher(output_array_size), + _matchers.ViReal64BufferMatcher(output_array_size), + _matchers.ViReal64BufferMatcher(len(expected_output_array_of_fixed_length)), + _matchers.ViInt32Matcher(len(input_array_of_integers)), + _matchers.ViReal64BufferMatcher(input_array_of_floats), + _matchers.ViInt16BufferMatcher(input_array_of_integers), + ) + + def test_multiple_array_types_none_input(self): + self.patched_library.niFake_MultipleArrayTypes.side_effect = self.side_effects_helper.niFake_MultipleArrayTypes + expected_output_array = [0.2, 0.4] + expected_output_array_of_fixed_length = [-6, -7, -8] + output_array_size = len(expected_output_array) + input_array_of_floats = [0.1, 0.2] + self.side_effects_helper['MultipleArrayTypes']['outputArray'] = expected_output_array + self.side_effects_helper['MultipleArrayTypes']['outputArrayOfFixedLength'] = expected_output_array_of_fixed_length + interpreter = self.get_initialized_library_interpreter() + output_array, output_array_of_fixed_length = interpreter.multiple_array_types(output_array_size, input_array_of_floats, None) + assert output_array == output_array + assert expected_output_array_of_fixed_length == output_array_of_fixed_length + self.patched_library.niFake_MultipleArrayTypes.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViInt32Matcher(output_array_size), + _matchers.ViReal64BufferMatcher(output_array_size), + _matchers.ViReal64BufferMatcher(len(expected_output_array_of_fixed_length)), + _matchers.ViInt32Matcher(len(input_array_of_floats)), + _matchers.ViReal64BufferMatcher(input_array_of_floats), + None + ) + + def test_multiple_arrays_same_size(self): + self.patched_library.niFake_MultipleArraysSameSize.side_effect = self.side_effects_helper.niFake_MultipleArraysSameSize + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] + input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] + input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] + interpreter = self.get_initialized_library_interpreter() + interpreter.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) + self.patched_library.niFake_MultipleArraysSameSize.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViReal64BufferMatcher(input_array_of_floats1), + _matchers.ViReal64BufferMatcher(input_array_of_floats2), + _matchers.ViReal64BufferMatcher(input_array_of_floats3), + _matchers.ViReal64BufferMatcher(input_array_of_floats4), + _matchers.ViInt32Matcher(len(input_array_of_floats1)), + ) + + def test_multiple_arrays_same_size_none_input(self): + self.patched_library.niFake_MultipleArraysSameSize.side_effect = self.side_effects_helper.niFake_MultipleArraysSameSize + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + interpreter = self.get_initialized_library_interpreter() + interpreter.multiple_arrays_same_size(input_array_of_floats1, None, None, None) + self.patched_library.niFake_MultipleArraysSameSize.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViReal64BufferMatcher(input_array_of_floats1), + None, + None, + None, + _matchers.ViInt32Matcher(len(input_array_of_floats1)), + ) + + def test_multiple_arrays_different_size(self): + self.patched_library.niFake_MultipleArraysDifferentSize.side_effect = self.side_effects_helper.niFake_MultipleArraysDifferentSize + values_array = [1.1, 2.2, 3.3] + data_array = [10, 20, 30, 40, 50] + interpreter = self.get_initialized_library_interpreter() + interpreter.multiple_arrays_different_size(values_array, data_array) + self.patched_library.niFake_MultipleArraysDifferentSize.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViReal64BufferMatcher(values_array), + _matchers.ViInt32Matcher(len(values_array)), + _matchers.ViInt32BufferMatcher(data_array), + _matchers.ViInt32Matcher(len(data_array)), + ) + + def test_multiple_arrays_different_size_none_input(self): + self.patched_library.niFake_MultipleArraysDifferentSize.side_effect = self.side_effects_helper.niFake_MultipleArraysDifferentSize + values_array = [1.1, 2.2, 3.3] + interpreter = self.get_initialized_library_interpreter() + interpreter.multiple_arrays_different_size(values_array, None) + self.patched_library.niFake_MultipleArraysDifferentSize.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViReal64BufferMatcher(values_array), + _matchers.ViInt32Matcher(len(values_array)), + None, + _matchers.ViInt32Matcher(0), + ) + + def test_mixed_ivi_dance_and_len_mechanism(self): + self.patched_library.niFake_MixedIviDanceAndLenMechanism.side_effect = self.side_effects_helper.niFake_MixedIviDanceAndLenMechanism + expected_output = [4, 5] + self.side_effects_helper['MixedIviDanceAndLenMechanism']['outputArray'] = expected_output + interpreter = self.get_initialized_library_interpreter() + result_array = interpreter.mixed_ivi_dance_and_len_mechanism([1.1]) + assert result_array == expected_output + assert self.patched_library.niFake_MixedIviDanceAndLenMechanism.call_count == 2 + + def test_parameters_are_multiple_types(self): + self.patched_library.niFake_ParametersAreMultipleTypes.side_effect = self.side_effects_helper.niFake_ParametersAreMultipleTypes + boolean_val = True + int32_val = 32 + int64_val = 6000000000 + enum_val = nifake.Turtle.LEONARDO + float_val = 1.23 + float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE + string_val = 'Testing is fun?' + interpreter = self.get_initialized_library_interpreter() + interpreter.parameters_are_multiple_types(boolean_val, int32_val, int64_val, enum_val, float_val, float_enum_val, string_val) + self.patched_library.niFake_ParametersAreMultipleTypes.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViBooleanMatcher(boolean_val), _matchers.ViInt32Matcher(int32_val), _matchers.ViInt64Matcher(int64_val), _matchers.ViInt16Matcher(enum_val.value), _matchers.ViReal64Matcher(float_val), _matchers.ViReal64Matcher(float_enum_val.value), _matchers.ViStringMatcher(string_val)) + + def test_method_with_error(self): + test_error_code = -42 + test_error_desc = "The answer to the ultimate question" + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = test_error_code + self.side_effects_helper['GetError']['description'] = test_error_desc + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.simple_function() + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_call_not_enough_parameters_error(self): + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.multiple_array_types(10) + assert False + except TypeError: + pass + + def test_invalid_method_call_wrong_type_error(self): + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.multiple_array_types('potato', [0.0, 0.1, 0.2]) + assert False + except TypeError: + pass + + def test_method_with_warning(self): + # We want to capture all of our warnings, not just the first one + warnings.filterwarnings("always", category=nifake.DriverWarning) + + test_error_code = 42 + test_error_desc = "The answer to the ultimate question, only positive" + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = test_error_code + self.side_effects_helper['GetError']['description'] = test_error_desc + interpreter = self.get_initialized_library_interpreter() + with warnings.catch_warnings(record=True) as w: + interpreter.simple_function() + assert len(w) == 1 + assert issubclass(w[0].category, nifake.DriverWarning) + assert test_error_desc in str(w[0].message) + assert f'Warning {test_error_code} occurred.' in str(w[0].message) + + def test_read_with_warning(self): + # We want to capture all of our warnings, not just the first one + warnings.filterwarnings("always", category=nifake.DriverWarning) + + test_maximum_time_s = 10.0 + test_reading = float('nan') + test_error_code = 42 + test_error_desc = "The answer to the ultimate question, only positive" + self.patched_library.niFake_Read.side_effect = self.niFake_read_warning + self.error_code_return = test_error_code + self.reading = test_reading + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = test_error_code + self.side_effects_helper['GetError']['description'] = test_error_desc + interpreter = self.get_initialized_library_interpreter() + with warnings.catch_warnings(record=True) as w: + assert math.isnan(interpreter.read(test_maximum_time_s)) + assert len(w) == 1 + assert issubclass(w[0].category, nifake.DriverWarning) + assert test_error_desc in str(w[0].message) + assert f'Warning {test_error_code} occurred.' in str(w[0].message) + + def test_library_interpreter_always_uses_same_library_instance(self): + interpreter1 = self.get_initialized_library_interpreter() + interpreter2 = self.get_initialized_library_interpreter() + assert interpreter1 is not interpreter2 + assert interpreter1._library is interpreter2._library + + def test_set_runtime_environment_is_called_once_if_present(self): + nifake._library_interpreter._was_runtime_environment_set = None + self.get_initialized_library_interpreter() + self.get_initialized_library_interpreter() + self.patched_library.niFake_SetRuntimeEnvironment.assert_called_once() + + def test_set_runtime_environment_not_present_in_driver_runtime(self): + class TypesLibrary: + item = "" + + nifake._library_interpreter._was_runtime_environment_set = None + self.patched_library._library = TypesLibrary() + interpreter = self.get_initialized_library_interpreter() + with pytest.raises(nifake.errors.DriverTooOldError): + interpreter._library._get_library_function('niFake_SetRuntimeEnvironment') + + # Retrieving buffers and strings + + def test_get_a_string_of_fixed_maximum_size(self): + test_string = "A string no larger than the max size of 256 allowed by the function." + self.patched_library.niFake_GetAStringOfFixedMaximumSize.side_effect = self.side_effects_helper.niFake_GetAStringOfFixedMaximumSize + self.side_effects_helper['GetAStringOfFixedMaximumSize']['aString'] = test_string + interpreter = self.get_initialized_library_interpreter() + returned_string = interpreter.get_a_string_of_fixed_maximum_size() + assert returned_string == test_string + self.patched_library.niFake_GetAStringOfFixedMaximumSize.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViCharBufferMatcher(256)) + + def test_get_a_string_of_size_python_code(self): + test_size = 4 + expected_string_size = test_size - 1 + test_string = "A string that is larger than test_size." + expected_string = test_string[:expected_string_size] + self.patched_library.niFake_GetAStringUsingPythonCode.side_effect = self.side_effects_helper.niFake_GetAStringUsingPythonCode + self.side_effects_helper['GetAStringUsingPythonCode']['aString'] = expected_string + interpreter = self.get_initialized_library_interpreter() + returned_string = interpreter.get_a_string_using_python_code(test_size) + assert returned_string == expected_string + self.patched_library.niFake_GetAStringUsingPythonCode.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt16Matcher(test_size), _matchers.ViCharBufferMatcher(test_size)) + + def test_return_a_number_and_a_string(self): + test_string = "this string" + test_number = 13 + self.patched_library.niFake_ReturnANumberAndAString.side_effect = self.side_effects_helper.niFake_ReturnANumberAndAString + self.side_effects_helper['ReturnANumberAndAString']['aString'] = test_string + self.side_effects_helper['ReturnANumberAndAString']['aNumber'] = test_number + interpreter = self.get_initialized_library_interpreter() + returned_number, returned_string = interpreter.return_a_number_and_a_string() + assert returned_string == test_string + assert returned_number == test_number + self.patched_library.niFake_ReturnANumberAndAString.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt16PointerMatcher(), _matchers.ViCharBufferMatcher(256)) + + def test_get_an_ivi_dance_char_array(self): + self.patched_library.niFake_GetAnIviDanceCharArray.side_effect = self.side_effects_helper.niFake_GetAnIviDanceCharArray + string_val = 'Testing is fun?' + self.side_effects_helper['GetAnIviDanceCharArray']['charArray'] = string_val + interpreter = self.get_initialized_library_interpreter() + result_string = interpreter.get_an_ivi_dance_char_array() + assert result_string == string_val + calls = [ + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(0), None), + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(string_val)), _matchers.ViCharBufferMatcher(len(string_val))) + ] + self.patched_library.niFake_GetAnIviDanceCharArray.assert_has_calls(calls) + assert self.patched_library.niFake_GetAnIviDanceCharArray.call_count == 2 + + def test_get_string_ivi_dance_error(self): + read_write_string_attribute_id = 1000002 + test_error_code = -1234 + test_error_desc = "ascending order" + self.patched_library.niFake_GetAttributeViString.side_effect = self.side_effects_helper.niFake_GetAttributeViString + self.side_effects_helper['GetAttributeViString']['attributeValue'] = 'Testing is fun?' + self.side_effects_helper['GetAttributeViString']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = test_error_code + self.side_effects_helper['GetError']['description'] = test_error_desc + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.get_attribute_vi_string('', read_write_string_attribute_id) + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_get_an_ivi_dance_with_a_twist_string(self): + self.patched_library.niFake_GetAnIviDanceWithATwistString.side_effect = self.side_effects_helper.niFake_GetAnIviDanceWithATwistString + string_val = 'Testing is fun?' + self.side_effects_helper['GetAnIviDanceWithATwistString']['aString'] = string_val + self.side_effects_helper['GetAnIviDanceWithATwistString']['actualSize'] = len(string_val) + interpreter = self.get_initialized_library_interpreter() + result_string = interpreter.get_an_ivi_dance_with_a_twist_string() + assert result_string == string_val + calls = [ + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(0), None, _matchers.ViInt32PointerMatcher()), + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(string_val)), _matchers.ViCharBufferMatcher(len(string_val)), _matchers.ViInt32PointerMatcher()) + ] + self.patched_library.niFake_GetAnIviDanceWithATwistString.assert_has_calls(calls) + assert self.patched_library.niFake_GetAnIviDanceWithATwistString.call_count == 2 + + def test_get_array_using_ivi_dance(self): + self.patched_library.niFake_GetArrayUsingIviDance.side_effect = self.side_effects_helper.niFake_GetArrayUsingIviDance + self.side_effects_helper['GetArrayUsingIviDance']['arrayOut'] = [1.1, 2.2] + interpreter = self.get_initialized_library_interpreter() + result_array = interpreter.get_array_using_ivi_dance() + assert result_array == [1.1, 2.2] + + # Attributes + + def test_get_attribute_int32(self): + self.patched_library.niFake_GetAttributeViInt32.side_effect = self.side_effects_helper.niFake_GetAttributeViInt32 + attribute_id = 1000004 + test_number = 3 + self.side_effects_helper['GetAttributeViInt32']['attributeValue'] = test_number + interpreter = self.get_initialized_library_interpreter() + attr_int = interpreter.get_attribute_vi_int32('', attribute_id) + assert attr_int == test_number + self.patched_library.niFake_GetAttributeViInt32.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32PointerMatcher()) + + def test_set_attribute_int32(self): + self.patched_library.niFake_SetAttributeViInt32.side_effect = self.side_effects_helper.niFake_SetAttributeViInt32 + attribute_id = 1000004 + test_number = -10 + interpreter = self.get_initialized_library_interpreter() + interpreter.set_attribute_vi_int32('', attribute_id, test_number) + self.patched_library.niFake_SetAttributeViInt32.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(test_number)) + + def test_get_attribute_real64(self): + self.patched_library.niFake_GetAttributeViReal64.side_effect = self.side_effects_helper.niFake_GetAttributeViReal64 + attribute_id = 1000001 + test_number = 1.5 + self.side_effects_helper['GetAttributeViReal64']['attributeValue'] = test_number + interpreter = self.get_initialized_library_interpreter() + attr_double = interpreter.get_attribute_vi_real64('', attribute_id) + assert attr_double == test_number + self.patched_library.niFake_GetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64PointerMatcher()) + + def test_set_attribute_real64(self): + self.patched_library.niFake_SetAttributeViReal64.side_effect = self.side_effects_helper.niFake_SetAttributeViReal64 + attribute_id = 1000001 + test_number = 10.1 + interpreter = self.get_initialized_library_interpreter() + interpreter.set_attribute_vi_real64('', attribute_id, test_number) + self.patched_library.niFake_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) + + def test_get_attribute_string(self): + self.patched_library.niFake_GetAttributeViString.side_effect = self.side_effects_helper.niFake_GetAttributeViString + attribute_id = 1000002 + string = 'Testing is fun?' + self.side_effects_helper['GetAttributeViString']['attributeValue'] = string + interpreter = self.get_initialized_library_interpreter() + attr_string = interpreter.get_attribute_vi_string('', attribute_id) + assert attr_string == string + calls = [ + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(1000002), _matchers.ViInt32Matcher(0), None), + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(15), _matchers.ViCharBufferMatcher(len(string))) + ] + self.patched_library.niFake_GetAttributeViString.assert_has_calls(calls) + assert self.patched_library.niFake_GetAttributeViString.call_count == 2 + + def test_set_attribute_string(self): + self.patched_library.niFake_SetAttributeViString.side_effect = self.side_effects_helper.niFake_SetAttributeViString + attribute_id = 1000002 + attrib_string = 'This is test string' + interpreter = self.get_initialized_library_interpreter() + interpreter.set_attribute_vi_string('', attribute_id, attrib_string) + self.patched_library.niFake_SetAttributeViString.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViStringMatcher('This is test string')) + + def test_get_attribute_boolean(self): + self.patched_library.niFake_GetAttributeViBoolean.side_effect = self.side_effects_helper.niFake_GetAttributeViBoolean + attribute_id = 1000000 + self.side_effects_helper['GetAttributeViBoolean']['attributeValue'] = 1 + interpreter = self.get_initialized_library_interpreter() + assert interpreter.get_attribute_vi_boolean('', attribute_id) + self.patched_library.niFake_GetAttributeViBoolean.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViBooleanPointerMatcher()) + + def test_set_attribute_boolean(self): + self.patched_library.niFake_SetAttributeViBoolean.side_effect = self.side_effects_helper.niFake_SetAttributeViBoolean + attribute_id = 1000000 + attrib_bool = True + interpreter = self.get_initialized_library_interpreter() + interpreter.set_attribute_vi_boolean('', attribute_id, attrib_bool) + self.patched_library.niFake_SetAttributeViBoolean.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViBooleanMatcher(True)) + + def test_get_attribute_int64(self): + self.patched_library.niFake_GetAttributeViInt64.side_effect = self.side_effects_helper.niFake_GetAttributeViInt64 + attribute_id = 1000006 + test_number = 6000000000 + self.side_effects_helper['GetAttributeViInt64']['attributeValue'] = test_number + interpreter = self.get_initialized_library_interpreter() + attr_int = interpreter.get_attribute_vi_int64('', attribute_id) + assert attr_int == test_number + self.patched_library.niFake_GetAttributeViInt64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt64PointerMatcher()) + + def test_set_attribute_int64(self): + self.patched_library.niFake_SetAttributeViInt64.side_effect = self.side_effects_helper.niFake_SetAttributeViInt64 + attribute_id = 1000006 + test_number = -6000000000 + interpreter = self.get_initialized_library_interpreter() + interpreter.set_attribute_vi_int64('', attribute_id, test_number) + self.patched_library.niFake_SetAttributeViInt64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt64Matcher(test_number)) + + # Error descriptions + + def test_get_error_returns_mismatched_error_code(self): + test_error_code = -42 + test_error_desc = "The answer to the ultimate question, only positive" + wrong_error_code = 54 + wrong_error_desc = "What is six times nine" + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = wrong_error_code + self.side_effects_helper['GetError']['description'] = wrong_error_desc + self.patched_library.niFake_error_message.side_effect = self.side_effects_helper.niFake_error_message + self.side_effects_helper['error_message']['errorMessage'] = test_error_desc + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.simple_function() + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + self.patched_library.niFake_PoorlyNamedSimpleFunction.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) + self.patched_library.niFake_error_message.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)) + + def test_get_error_and_error_message_returns_error(self): + test_error_code = -42 + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = -1 + self.side_effects_helper['GetError']['description'] = "Shouldn't get this" + self.side_effects_helper['GetError']['return'] = -2 + self.patched_library.niFake_error_message.side_effect = self.side_effects_helper.niFake_error_message + self.side_effects_helper['error_message']['errorMessage'] = "Also shouldn't get this" + self.side_effects_helper['error_message']['return'] = -3 + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.simple_function() + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == 'Failed to retrieve error description.' + + def test_get_error_description_error_message_error(self): + test_error_code = -42 + test_error_desc = "The answer to the ultimate question" + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = -1 + self.side_effects_helper['GetError']['description'] = "Shouldn't get this" + self.side_effects_helper['GetError']['return'] = -2 + self.patched_library.niFake_error_message.side_effect = self.side_effects_helper.niFake_error_message + self.side_effects_helper['error_message']['errorMessage'] = test_error_desc + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.simple_function() + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + self.patched_library.niFake_error_message.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)) + + def test_get_error_description_error_message_after_session_reset(self): + test_error_code = -42 + test_error_desc = "The answer to the ultimate question" + self.patched_library.niFake_PoorlyNamedSimpleFunction.side_effect = self.side_effects_helper.niFake_PoorlyNamedSimpleFunction + self.side_effects_helper['PoorlyNamedSimpleFunction']['return'] = test_error_code + self.patched_library.niFake_GetError.side_effect = self.side_effects_helper.niFake_GetError + self.side_effects_helper['GetError']['errorCode'] = -1 + self.side_effects_helper['GetError']['description'] = "Shouldn't get this" + self.side_effects_helper['GetError']['return'] = -2 + self.side_effects_helper['error_message']['errorMessage'] = test_error_desc + + def error_message_side_effect(vi, error_code, error_message_buf): + if vi.value == SESSION_NUM_FOR_TEST: + return -3 + return self.side_effects_helper.niFake_error_message(vi, error_code, error_message_buf) + + self.patched_library.niFake_error_message.side_effect = error_message_side_effect + interpreter = self.get_initialized_library_interpreter() + try: + interpreter.simple_function() + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + assert self.patched_library.niFake_error_message.call_count == 2 + self.patched_library.niFake_error_message.assert_has_calls([ + call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)), + call(_matchers.ViSessionMatcher(0), _matchers.ViInt32Matcher(test_error_code), _matchers.ViCharBufferMatcher(256)), + ]) + + # Custom types + + def test_set_custom_type(self): + self.patched_library.niFake_SetCustomType.side_effect = self.side_effects_helper.niFake_SetCustomType + cs = nifake.CustomStruct(struct_int=42, struct_double=4.2) + interpreter = self.get_initialized_library_interpreter() + interpreter.set_custom_type(cs) + self.patched_library.niFake_SetCustomType.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.CustomTypeMatcher(nifake.struct_CustomStruct, nifake.struct_CustomStruct(cs))) + + def test_get_custom_type(self): + self.patched_library.niFake_GetCustomType.side_effect = self.side_effects_helper.niFake_GetCustomType + cs_ctype = nifake.struct_CustomStruct(struct_int=42, struct_double=4.2) + self.side_effects_helper['GetCustomType']['cs'] = cs_ctype + interpreter = self.get_initialized_library_interpreter() + cs = interpreter.get_custom_type() + assert cs.struct_int == cs_ctype.struct_int + assert cs.struct_double == cs_ctype.struct_double + + def test_set_custom_type_array(self): + self.patched_library.niFake_SetCustomTypeArray.side_effect = self.side_effects_helper.niFake_SetCustomTypeArray + cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] + cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) + interpreter = self.get_initialized_library_interpreter() + interpreter.set_custom_type_array(cs) + self.patched_library.niFake_SetCustomTypeArray.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(cs)), _matchers.CustomTypeBufferMatcher(nifake.struct_CustomStruct, cs_ctype)) + + def test_get_custom_type_array(self): + self.patched_library.niFake_GetCustomTypeArray.side_effect = self.side_effects_helper.niFake_GetCustomTypeArray + cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] + cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) + self.side_effects_helper['GetCustomTypeArray']['cs'] = cs_ctype + interpreter = self.get_initialized_library_interpreter() + cs_test = interpreter.get_custom_type_array(len(cs_ctype)) + assert len(cs_test) == len(cs_ctype) + for actual, expected in zip(cs_test, cs): + assert actual.struct_int == expected.struct_int + assert actual.struct_double == expected.struct_double + + def test_get_custom_type_typedef(self): + self.patched_library.niFake_GetCustomTypeTypedef.side_effect = self.side_effects_helper.niFake_GetCustomTypeTypedef + cst = nifake.CustomStructTypedef(struct_int=42, struct_double=4.2) + cst_ctype = nifake.struct_CustomStructTypedef(cst) + csnt = nifake.CustomStructNestedTypedef( + struct_custom_struct=nifake.CustomStruct(struct_int=43, struct_double=4.3), + struct_custom_struct_typedef=nifake.CustomStructTypedef(struct_int=44, struct_double=4.4) + ) + csnt_ctype = nifake.struct_CustomStructNestedTypedef(csnt) + self.side_effects_helper['GetCustomTypeTypedef']['cst'] = cst_ctype + self.side_effects_helper['GetCustomTypeTypedef']['csnt'] = csnt_ctype + interpreter = self.get_initialized_library_interpreter() + cst_test, csnt_test = interpreter.get_custom_type_typedef() + assert cst_test.struct_int == cst.struct_int + assert cst_test.struct_double == cst.struct_double + assert csnt_test.struct_custom_struct.struct_int == csnt.struct_custom_struct.struct_int + assert csnt_test.struct_custom_struct.struct_double == csnt.struct_custom_struct.struct_double + assert csnt_test.struct_custom_struct_typedef.struct_int == csnt.struct_custom_struct_typedef.struct_int + assert csnt_test.struct_custom_struct_typedef.struct_double == csnt.struct_custom_struct_typedef.struct_double + + # python-code size mechanism + + def test_get_array_using_python_code_double(self): + import nifake._visatype + self.patched_library.niFake_GetArraySizeForPythonCode.side_effect = self.side_effects_helper.niFake_GetArraySizeForPythonCode + self.patched_library.niFake_GetArrayForPythonCodeDouble.side_effect = self.side_effects_helper.niFake_GetArrayForPythonCodeDouble + array_out = [42.0, 43.0, 44.0] + array_out_ctype = (nifake._visatype.ViReal64 * len(array_out))(*array_out) + self.side_effects_helper['GetArraySizeForPythonCode']['sizeOut'] = len(array_out) + self.side_effects_helper['GetArrayForPythonCodeDouble']['arrayOut'] = array_out_ctype + interpreter = self.get_initialized_library_interpreter() + array_out_test = interpreter.get_array_for_python_code_double() + assert len(array_out_test) == len(array_out) + for actual, expected in zip(array_out_test, array_out): + assert actual == expected + + def test_get_array_using_python_code_custom_type(self): + import nifake._visatype + self.patched_library.niFake_GetArraySizeForPythonCode.side_effect = self.side_effects_helper.niFake_GetArraySizeForPythonCode + self.patched_library.niFake_GetArrayForPythonCodeCustomType.side_effect = self.side_effects_helper.niFake_GetArrayForPythonCodeCustomType + cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] + cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) + self.side_effects_helper['GetArraySizeForPythonCode']['sizeOut'] = len(cs) + self.side_effects_helper['GetArrayForPythonCodeCustomType']['arrayOut'] = cs_ctype + interpreter = self.get_initialized_library_interpreter() + cs_test = interpreter.get_array_for_python_code_custom_type() + assert len(cs_test) == len(cs) + for actual, expected in zip(cs_test, cs): + assert actual.struct_int == expected.struct_int + assert actual.struct_double == expected.struct_double + + def test_get_cal_date_time(self): + self.patched_library.niFake_GetCalDateAndTime.side_effect = self.side_effects_helper.niFake_GetCalDateAndTime + month = 12 + day = 30 + year = 1988 + hour = 10 + minute = 15 + self.side_effects_helper['GetCalDateAndTime']['return'] = 0 + self.side_effects_helper['GetCalDateAndTime']['month'] = month + self.side_effects_helper['GetCalDateAndTime']['day'] = day + self.side_effects_helper['GetCalDateAndTime']['year'] = year + self.side_effects_helper['GetCalDateAndTime']['hour'] = hour + self.side_effects_helper['GetCalDateAndTime']['minute'] = minute + interpreter = self.get_initialized_library_interpreter() + last_cal = interpreter.get_cal_date_and_time(0) + assert (month, day, year, hour, minute) == last_cal + + # Import/Export functions + + def test_import_attribute_configuration_buffer_list_i8(self): + self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer + expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] + configuration = expected_list + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + interpreter.import_attribute_configuration_buffer(configuration) + self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) + + def test_import_attribute_configuration_buffer_bytes(self): + self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer + expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] + configuration = b'abcd' + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + interpreter.import_attribute_configuration_buffer(configuration) + self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) + + def test_import_attribute_configuration_buffer_bytearray(self): + self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer + expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] + configuration = bytearray(b'abcd') + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + interpreter.import_attribute_configuration_buffer(configuration) + self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) + + def test_import_attribute_configuration_buffer_array_bytes(self): + self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer + expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] + configuration = array.array('b', b'abcd') + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + interpreter.import_attribute_configuration_buffer(configuration) + self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) + + def test_import_attribute_configuration_buffer_str(self): + self.patched_library.niFake_ImportAttributeConfigurationBuffer.side_effect = self.side_effects_helper.niFake_ImportAttributeConfigurationBuffer + expected_list = [ord('a'), ord('b'), ord('c'), ord('d')] + configuration = 'abcd' + interpreter = self.get_initialized_library_interpreter() + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + with patch('nifake._library_interpreter._get_ctypes_pointer_for_buffer', side_effect=self.get_ctypes_pointer_for_buffer_side_effect): + interpreter.import_attribute_configuration_buffer(configuration) + self.patched_library.niFake_ImportAttributeConfigurationBuffer.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViInt32Matcher(len(configuration)), _matchers.ViInt8BufferMatcher(expected_list)) + + def test_write_waveform_numpy_complex128_valid_input(self): + from nifake._complextype import NIComplexNumber + + waveform_data = numpy.full(1000, 0.707 + 0.707j, dtype=numpy.complex128) + number_of_samples = len(waveform_data) + + waveform_data_ctypes = (NIComplexNumber * number_of_samples)( + *[NIComplexNumber(real=0.707, imag=0.707) for _ in range(number_of_samples)] + ) + waveform_data_pointer = ctypes.cast(waveform_data_ctypes, ctypes.POINTER(NIComplexNumber)) + self.patched_library.niFake_WriteWaveformNumpyComplex128.side_effect = self.side_effects_helper.niFake_WriteWaveformNumpyComplex128 + interpreter = self.get_initialized_library_interpreter() + interpreter.write_waveform_numpy_complex128(waveform_data) + self.patched_library.niFake_WriteWaveformNumpyComplex128.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViInt32Matcher(number_of_samples), + _matchers.NIComplexNumberPointerMatcher(waveform_data_pointer, number_of_samples) + ) + + def test_write_waveform_numpy_complex64_valid_input(self): + from nifake._complextype import NIComplexNumberF32 + + waveform_data = numpy.full(1000, 0.707 + 0.707j, dtype=numpy.complex64) + number_of_samples = len(waveform_data) + + waveform_data_ctypes = (NIComplexNumberF32 * number_of_samples)( + *[NIComplexNumberF32(real=0.707, imag=0.707) for _ in range(number_of_samples)] + ) + waveform_data_pointer = ctypes.cast(waveform_data_ctypes, ctypes.POINTER(NIComplexNumberF32)) + self.patched_library.niFake_WriteWaveformNumpyComplex64.side_effect = self.side_effects_helper.niFake_WriteWaveformNumpyComplex64 + interpreter = self.get_initialized_library_interpreter() + interpreter.write_waveform_numpy_complex64(waveform_data) + self.patched_library.niFake_WriteWaveformNumpyComplex64.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViInt32Matcher(number_of_samples), + _matchers.NIComplexNumberF32PointerMatcher(waveform_data_pointer, number_of_samples) + ) + + def test_write_waveform_numpy_complex_interleaved_i16_valid_input(self): + from nifake._complextype import NIComplexI16 + + waveform_data = numpy.array([32767, 0] * 1000, dtype=numpy.int16) + number_of_samples = len(waveform_data) // 2 + waveform_data_ctypes = (NIComplexI16 * number_of_samples)( + *[NIComplexI16(real=32767, imag=0) for _ in range(number_of_samples)] + ) + waveform_data_pointer = ctypes.cast(waveform_data_ctypes, ctypes.POINTER(NIComplexI16)) + self.patched_library.niFake_WriteWaveformNumpyComplexInterleavedI16.side_effect = self.side_effects_helper.niFake_WriteWaveformNumpyComplexInterleavedI16 + interpreter = self.get_initialized_library_interpreter() + interpreter.write_waveform_numpy_complex_interleaved_i16(waveform_data) + self.patched_library.niFake_WriteWaveformNumpyComplexInterleavedI16.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.ViInt32Matcher(number_of_samples), + _matchers.NIComplexI16PointerMatcher(waveform_data_pointer, number_of_samples) + ) + + def test_write_3d_numpy_array_of_numpy_complex128(self): + from nifake._complextype import NIComplexNumber + + array_3d = numpy.full((2, 3, 4), 1.0 + 2.0j, dtype=numpy.complex128) + number_of_samples = array_3d.size + flattened_array = array_3d.flatten() + complex_array = (NIComplexNumber * len(flattened_array))() + for i, value in enumerate(flattened_array): + complex_array[i] = NIComplexNumber(value.real, value.imag) + flattened_array_ptr = ctypes.cast(complex_array, ctypes.POINTER(NIComplexNumber)) + self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.side_effect = self.side_effects_helper.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter + interpreter = self.get_initialized_library_interpreter() + interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(array_3d) + self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.assert_called_once_with( + _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), + _matchers.NIComplexNumberPointerMatcher(flattened_array_ptr, number_of_samples) + ) + + def test_no_memorycopy_with_multi_dimensional_numpy_complex128_array(self): + array_3d = numpy.full((2, 3, 4), 1.0 + 2.0j, dtype=numpy.complex128) + self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.side_effect = self.side_effects_helper.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter + interpreter = self.get_initialized_library_interpreter() + interpreter.function_with_3d_numpy_array_of_numpy_complex128_input_parameter(array_3d) + args, kwargs = self.patched_library.niFake_FunctionWith3dNumpyArrayOfNumpyComplex128InputParameter.call_args + actual_pointer = args[1] + input_address = array_3d.__array_interface__['data'][0] + address_passed_to_library = ctypes.addressof(actual_pointer.contents) + assert input_address == address_passed_to_library, f"Addresses do NOT match: input_address={input_address}, address_passed_to_library={address_passed_to_library}" + + def test_no_memorycopy_with_numpy_complex64_array(self): + array_1d = numpy.full(1000, 0.707 + 0.707j, dtype=numpy.complex64) + self.patched_library.niFake_WriteWaveformNumpyComplex64.side_effect = ( + self.side_effects_helper.niFake_WriteWaveformNumpyComplex64 + ) + interpreter = self.get_initialized_library_interpreter() + interpreter.write_waveform_numpy_complex64(array_1d) + args, kwargs = self.patched_library.niFake_WriteWaveformNumpyComplex64.call_args + actual_pointer = args[2] + input_address = array_1d.__array_interface__['data'][0] + address_passed_to_library = ctypes.addressof(actual_pointer.contents) + assert input_address == address_passed_to_library, ( + f"Addresses do NOT match: input_address={input_address}, address_passed_to_library={address_passed_to_library}" + ) + + def test_matcher_prints(self): + assert _matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST).__repr__() == "ViSessionMatcher(" + str(nifake._visatype.ViSession) + ", 42)" + assert _matchers.ViAttrMatcher(SESSION_NUM_FOR_TEST).__repr__() == "ViAttrMatcher(" + str(nifake._visatype.ViAttr) + ", 42)" + assert _matchers.ViInt32Matcher(4).__repr__() == "ViInt32Matcher(" + str(nifake._visatype.ViInt32) + ", 4)" + assert _matchers.ViStringMatcher('0-24').__repr__() == "ViStringMatcher('0-24')" + assert _matchers.ViReal64Matcher(-42.0).__repr__() == "ViReal64Matcher(" + str(nifake._visatype.ViReal64) + ", -42.0)" + assert _matchers.ViReal64PointerMatcher().__repr__() == "ViReal64PointerMatcher(" + str(nifake._visatype.ViReal64) + ")" + assert _matchers.ViInt32PointerMatcher().__repr__() == "ViInt32PointerMatcher(" + str(nifake._visatype.ViInt32) + ")" + cs = [nifake.CustomStruct(struct_int=42, struct_double=4.2), nifake.CustomStruct(struct_int=43, struct_double=4.3), nifake.CustomStruct(struct_int=42, struct_double=4.3)] + cs_ctype = (nifake.struct_CustomStruct * len(cs))(*[nifake.struct_CustomStruct(c) for c in cs]) + assert _matchers.CustomTypeMatcher(nifake.struct_CustomStruct, nifake.struct_CustomStruct(cs[0])).__repr__() == "CustomTypeMatcher(, struct_CustomStruct(data=None, struct_int=42, struct_double=4.2))" + assert _matchers.CustomTypeBufferMatcher(nifake.struct_CustomStruct, cs_ctype).__repr__() == "CustomTypeBufferMatcher(, [struct_CustomStruct(data=None, struct_int=42, struct_double=4.2), struct_CustomStruct(data=None, struct_int=43, struct_double=4.3), struct_CustomStruct(data=None, struct_int=42, struct_double=4.3)])" diff --git a/generated/nifake/nifake/unit_tests/test_library_singleton.py b/generated/nifake/nifake/unit_tests/test_library_singleton.py new file mode 100644 index 0000000000..8639515a4c --- /dev/null +++ b/generated/nifake/nifake/unit_tests/test_library_singleton.py @@ -0,0 +1,7 @@ +import nifake +import pytest + + +def test_driver_runtime_not_installed_raises_driver_not_installed_error(): + with pytest.raises(nifake.errors.DriverNotInstalledError): + nifake._library_singleton.get() diff --git a/generated/nifake/nifake/unit_tests/test_session.py b/generated/nifake/nifake/unit_tests/test_session.py new file mode 100644 index 0000000000..edc6cd6120 --- /dev/null +++ b/generated/nifake/nifake/unit_tests/test_session.py @@ -0,0 +1,1057 @@ +import array +import datetime +import hightime +import nifake +import nifake.errors +import numpy +import pytest + +from unittest.mock import MagicMock +from unittest.mock import patch + +import _mock_helper + +SESSION_NUM_FOR_TEST = 42 +GRPC_SESSION_OBJECT_FOR_TEST = object() + + +class TestSession: + + class PatchedLibraryInterpreter(nifake._library_interpreter.LibraryInterpreter): + def __init__(self, encoding): + for f in dir(self): + if not f.startswith("_") and f not in {'get_session_handle', 'set_session_handle'}: + setattr(self, f, MagicMock(spec_set=getattr(self, f), side_effect=_mock_helper.MockFunctionCallError(f))) + + def setup_method(self, method): + self.patched_library_interpreter = self.PatchedLibraryInterpreter(None) + self.patched_library_interpreter_ctor = patch('nifake.session._library_interpreter.LibraryInterpreter', return_value=self.patched_library_interpreter) + self.patched_library_interpreter_ctor.start() + + # We don't actually call into the nitclk DLL, but we do need to mock the function since it is called + self.tclk_patched_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=None) + self.tclk_patched_library_singleton_get.start() + + # We shouldn't call into grpc + self.patched_grpc_interpreter = patch('nifake._grpc_stub_interpreter.GrpcStubInterpreter', side_effect=AssertionError('Called into grpc!')) + self.patched_grpc_interpreter.start() + + def interpreter_init(*args, **kwargs): + self.patched_library_interpreter._close_on_exit = True + return SESSION_NUM_FOR_TEST + + self.patched_library_interpreter.init_with_options.side_effect = interpreter_init + self.patched_library_interpreter.close.side_effect = [None] + + # Mock lock/unlock + self.patched_library_interpreter.lock.side_effect = lambda *args: None + self.patched_library_interpreter.unlock.side_effect = lambda *args: None + + def teardown_method(self, method): + self.patched_grpc_interpreter.stop() + self.patched_library_interpreter_ctor.stop() + self.tclk_patched_library_singleton_get.stop() + + # Session management + + def test_init_with_options_and_close(self): + session = nifake.Session('dev1') + self.patched_library_interpreter.init_with_options.assert_called_once_with('dev1', False, False, '') + assert session._interpreter._vi == SESSION_NUM_FOR_TEST + session.close() + self.patched_library_interpreter.close.assert_called_once_with() + + def test_init_with_options_nondefault_and_close(self): + session = nifake.Session('FakeDevice', 'Some string', True, True) + self.patched_library_interpreter.init_with_options.assert_called_once_with('FakeDevice', True, True, 'Some string') + assert session._interpreter._vi == SESSION_NUM_FOR_TEST + session.close() + self.patched_library_interpreter.close.assert_called_once_with() + + def test_init_without_grpc_options_does_not_audit(self): + with patch('nitlsconfig.audit_session_connect', autospec=True) as patched_audit: + with nifake.Session('dev1'): + pass + patched_audit.assert_not_called() + + def test_close(self): + session = nifake.Session('dev1') + assert session._interpreter._vi == SESSION_NUM_FOR_TEST + session.close() + self.patched_library_interpreter.close.assert_called_once_with() + assert session._interpreter._vi == 0 + + def test_session_context_manager(self): + with nifake.Session('dev1') as session: + assert isinstance(session, nifake.Session) + self.patched_library_interpreter.init_with_options.assert_called_once_with('dev1', False, False, '') + assert session._interpreter._vi == SESSION_NUM_FOR_TEST + self.patched_library_interpreter.close.assert_called_once_with() + assert session._interpreter._vi == 0 + + def test_init_with_error(self): + test_error_code = -1 + test_error_desc = 'Test' + self.patched_library_interpreter.init_with_options.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + try: + nifake.Session('dev1') + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_close_with_error(self): + test_error_code = -1 + test_error_desc = 'Test' + session = nifake.Session('dev1') + assert session._interpreter._vi == SESSION_NUM_FOR_TEST + self.patched_library_interpreter.close.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + try: + session.close() + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + self.patched_library_interpreter.close.assert_called_once_with() + assert session._interpreter._vi == 0 + + def test_session_context_manager_init_with_error(self): + test_error_code = -1 + test_error_desc = 'Test' + self.patched_library_interpreter.init_with_options.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + try: + with nifake.Session('dev1') as session: + assert isinstance(session, nifake.Session) + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_session_context_manager_close_with_error(self): + test_error_code = -1 + test_error_desc = 'Test' + self.patched_library_interpreter.close.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + try: + with nifake.Session('dev1') as session: + assert isinstance(session, nifake.Session) + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + # Session locking + + def test_lock_session_none(self): + with nifake.Session('dev1') as session: + session.lock() + self.patched_library_interpreter.lock.assert_called_once_with() + + def test_unlock_session_none(self): + with nifake.Session('dev1') as session: + session.unlock() + self.patched_library_interpreter.unlock.assert_called_once_with() + + def test_lock_context_manager(self): + with nifake.Session('dev1') as session: + with session.lock(): + pass + self.patched_library_interpreter.lock.assert_called_once_with() + self.patched_library_interpreter.unlock.assert_called_once_with() + + def test_lock_context_manager_abnormal_exit(self): + with nifake.Session('dev1') as session: + try: + with session.lock(): + raise nifake.Error('Fake exception') + except nifake.Error: + pass + self.patched_library_interpreter.lock.assert_called_once_with() + self.patched_library_interpreter.unlock.assert_called_once_with() + + # Methods + + def test_self_test(self): + test_error_code = 0 + self.patched_library_interpreter.self_test.side_effect = [(test_error_code, '')] + with nifake.Session('dev1') as session: + session.self_test() + + def test_self_test_fail(self): + test_error_code = 1 + test_error_message = 'error message' + self.patched_library_interpreter.self_test.side_effect = [(test_error_code, test_error_message)] + with nifake.Session('dev1') as session: + try: + session.self_test() + assert False + except nifake.errors.SelfTestError as e: + assert e.code == test_error_code + assert e.message == test_error_message + + def test_acquisition_context_manager(self): + self.patched_library_interpreter.initiate.side_effect = [None] + self.patched_library_interpreter.abort.side_effect = [None] + with nifake.Session('dev1') as session: + with session.initiate(): + self.patched_library_interpreter.initiate.assert_called_once_with() + self.patched_library_interpreter.abort.assert_called_once_with() + self.patched_library_interpreter.close.assert_called_once_with() + + def test_acquisition_no_context_manager(self): + self.patched_library_interpreter.initiate.side_effect = [None] + self.patched_library_interpreter.abort.side_effect = [None] + with nifake.Session('dev1') as session: + session.initiate() + self.patched_library_interpreter.initiate.assert_called_once_with() + session.abort() + self.patched_library_interpreter.abort.assert_called_once_with() + self.patched_library_interpreter.close.assert_called_once_with() + + def test_single_point_read_timedelta(self): + test_maximum_time_ns = 1 # nanoseconds + test_maximum_time_s = 1e-9 # seconds + test_maximum_time_timedelta = hightime.timedelta(nanoseconds=test_maximum_time_ns) + test_reading = 5 + self.patched_library_interpreter.read.side_effect = [test_reading] + with nifake.Session('dev1') as session: + assert test_reading == session.read(test_maximum_time_timedelta) + self.patched_library_interpreter.read.assert_called_once_with(test_maximum_time_s) + + def test_enum_input_function_with_defaults(self): + default_turtle = nifake.Turtle.LEONARDO + test_turtle = nifake.Turtle.DONATELLO + self.patched_library_interpreter.enum_input_function_with_defaults.side_effect = [None, None] + with nifake.Session('dev1') as session: + session.enum_input_function_with_defaults() + session.enum_input_function_with_defaults(test_turtle) + from unittest.mock import call + calls = [call(default_turtle), call(test_turtle)] + self.patched_library_interpreter.enum_input_function_with_defaults.assert_has_calls(calls) + + def test_string_valued_enum_input_function_with_defaults(self): + default_mobile_os_name = nifake.MobileOSNames.ANDROID + test_mobile_os_name = nifake.MobileOSNames.IOS + self.patched_library_interpreter.string_valued_enum_input_function_with_defaults.side_effect = [None, None] + with nifake.Session('dev1') as session: + session.string_valued_enum_input_function_with_defaults() + session.string_valued_enum_input_function_with_defaults(test_mobile_os_name) + from unittest.mock import call + calls = [call(default_mobile_os_name), call(test_mobile_os_name)] + self.patched_library_interpreter.string_valued_enum_input_function_with_defaults.assert_has_calls(calls) + + def test_fetch_waveform_into_wrong_type(self): + length = 10 + with nifake.Session('dev1') as session: + waveforms = [ + 10, + 10.5, + "Not a numpy.ndarray", + range(length), + [i + 0.0 for i in range(length)], + numpy.empty(length, numpy.int32), + numpy.empty(length, numpy.uint8) + ] + for w in waveforms: + try: + session.fetch_waveform_into(w) + assert False + except TypeError: + pass + + def test_parameters_are_multiple_types_error(self): + boolean_val = True + int32_val = 32 + int64_val = 6000000000 + enum_val = nifake.Turtle.LEONARDO + float_val = 1.23 + float_enum_val = nifake.FloatEnum.SIX_POINT_FIVE + string_val = 'Testing is fun?' + with nifake.Session('dev1') as session: + try: + session.parameters_are_multiple_types(boolean_val, int32_val, int64_val, 123, float_val, float_enum_val, string_val) + assert False + except TypeError: + pass + try: + session.parameters_are_multiple_types(boolean_val, int32_val, int64_val, enum_val, float_val, 0.123, string_val) + assert False + except TypeError: + pass + + def test_error_with_rep_cap(self): + test_error_code = -42 + test_error_desc = "The answer to the ultimate question" + self.patched_library_interpreter.set_attribute_vi_real64.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + with nifake.Session('dev1') as session: + try: + session.channels['100'].read_write_double = 5.0 + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_call_not_enough_parameters_error(self): + with nifake.Session('dev1') as session: + try: + session.multiple_array_types(10) + assert False + except TypeError: + pass + + def test_enum_input_function_with_defaults_bad_type_error(self): + test_turtle = 123 + with nifake.Session('dev1') as session: + try: + session.enum_input_function_with_defaults(test_turtle) + assert False + except TypeError: + pass + + def test_get_channel_names(self): + channel_indices = [0, 3, 2] + channel_indices_string = '0,3,2' + expected_channel_names_string = 'ch0,ch3,ch2' + expected_channel_names = ['ch0', 'ch3', 'ch2'] + self.patched_library_interpreter.get_channel_names.side_effect = [expected_channel_names_string] + with nifake.Session('dev1') as session: + channel_names_from_session = session.get_channel_names(channel_indices) + assert channel_names_from_session == expected_channel_names + self.patched_library_interpreter.get_channel_names.assert_called_once_with(channel_indices_string) + + # Repeated Capabilities + + def test_repeated_capability_method_on_session_timedelta(self): + test_maximum_time_ms = 10 # milliseconds + test_maximum_time_timedelta = hightime.timedelta(milliseconds=test_maximum_time_ms) + test_reading = 5 + self.patched_library_interpreter.read_from_channel.side_effect = [test_reading] + with nifake.Session('dev1') as session: + value = session.read_from_channel(test_maximum_time_timedelta) + self.patched_library_interpreter.read_from_channel.assert_called_once_with('', test_maximum_time_ms) + assert value == test_reading + + def test_repeated_capability_method_on_specific_channel(self): + test_maximum_time_ms = 10 # milliseconds + test_maximum_time = hightime.timedelta(milliseconds=test_maximum_time_ms) + test_reading = 5 + self.patched_library_interpreter.read_from_channel.side_effect = [test_reading] + with nifake.Session('dev1') as session: + value = session.channels['3'].read_from_channel(test_maximum_time) + self.patched_library_interpreter.read_from_channel.assert_called_once_with('3', test_maximum_time_ms) + assert value == test_reading + + def test_device_method_not_exist_on_repeated_capability_error(self): + with nifake.Session('dev1') as session: + try: + session.channels['3'].simple_function() + assert False, 'Method has no repeated capability so it shouldn\'t exist on _RepeatedCapability' + except AttributeError: + pass + + def test_repeated_capabilities_list(self): + with nifake.Session('dev1') as session: + assert session.channels['r0']._repeated_capability_list == ['r0'] + + def test_chained_repeated_capabilities_list(self): + with nifake.Session('dev1') as session: + assert session.sites[0, 1].channels[2, 3]._repeated_capability_list == ['site0/2', 'site0/3', 'site1/2', 'site1/3'] + + def test_multi_instrument_chained_repeated_capabilities_list(self): + with nifake.Session('dev1,dev2') as session: + assert session.instruments['dev1', 'dev2'].sites[0, 1]._repeated_capability_list == ['dev1/site0', 'dev1/site1', 'dev2/site0', 'dev2/site1'] + + def test_chained_repeated_capability_method_on_specific_channel(self): + test_maximum_time_ms = 10 # milliseconds + test_maximum_time = hightime.timedelta(milliseconds=test_maximum_time_ms) + test_reading = 5 + self.patched_library_interpreter.read_from_channel.side_effect = [test_reading] + with nifake.Session('dev1') as session: + value = session.sites[0, 1].channels[2, 3].read_from_channel(test_maximum_time) + self.patched_library_interpreter.read_from_channel.assert_called_once_with('site0/2,site0/3,site1/2,site1/3', test_maximum_time_ms) + assert value == test_reading + + def test_function_with_repeated_capability_type(self): + self.patched_library_interpreter.function_with_repeated_capability_type.side_effect = [None] + with nifake.Session('dev1') as session: + session.channels['0-3'].function_with_repeated_capability_type() + self.patched_library_interpreter.function_with_repeated_capability_type.assert_called_once_with('0,1,2,3') + + # Attributes + + def test_get_attribute_int32(self): + test_number = 3 + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number] + with nifake.Session('dev1') as session: + attr_int = session.read_write_integer + assert attr_int == test_number + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', 1000004) + + def test_set_attribute_int32(self): + self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] + attribute_id = 1000004 + test_number = -10 + with nifake.Session('dev1') as session: + session.read_write_integer = test_number + self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, test_number) + + def test_get_attribute_int32_with_converter(self): + attribute_id = 1000008 + test_number_ms = 3 + test_number_s = 0.003 + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number_ms] + with nifake.Session('dev1') as session: + attr_timedelta = session.read_write_integer_with_converter + assert attr_timedelta.total_seconds() == test_number_s + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) + + def test_set_attribute_int32_with_converter(self): + self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] + attribute_id = 1000008 + test_number_ms = -10000 + with nifake.Session('dev1') as session: + session.read_write_integer_with_converter = hightime.timedelta(milliseconds=test_number_ms) + self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, test_number_ms) + + def test_get_attribute_int32_with_month_converter(self): + attribute_id = 1000014 + test_number_months = 2 + test_number_s = 5256005.76 + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number_months] + with nifake.Session('dev1') as session: + attr_timedelta = session.read_write_integer_with_month_converter + assert attr_timedelta.total_seconds() == test_number_s + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) + + def test_set_attribute_int32_with_month_converter(self): + self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] + attribute_id = 1000014 + test_number_months = 3 + with nifake.Session('dev1') as session: + session.read_write_integer_with_month_converter = hightime.timedelta(seconds=60 * 60 * 24 * 30.4167 * test_number_months) + self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, test_number_months) + + def test_get_attribute_real64(self): + attribute_id = 1000001 + test_number = 1.5 + self.patched_library_interpreter.get_attribute_vi_real64.side_effect = [test_number] + with nifake.Session('dev1') as session: + attr_double = session.read_write_double + assert attr_double == test_number + self.patched_library_interpreter.get_attribute_vi_real64.assert_called_once_with('', attribute_id) + + def test_set_attribute_real64(self): + self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] + attribute_id = 1000001 + test_number = 10.1 + with nifake.Session('dev1') as session: + session.read_write_double = test_number + self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, test_number) + + def test_get_attribute_real64_with_converter(self): + attribute_id = 1000007 + test_number = 1e-9 + self.patched_library_interpreter.get_attribute_vi_real64.side_effect = [test_number] + with nifake.Session('dev1') as session: + attr_timedelta = session.read_write_double_with_converter + assert attr_timedelta.total_seconds() == test_number + self.patched_library_interpreter.get_attribute_vi_real64.assert_called_once_with('', attribute_id) + + def test_set_attribute_real64_with_converter(self): + self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] + attribute_id = 1000007 + test_number = 1e-9 + with nifake.Session('dev1') as session: + session.read_write_double_with_converter = hightime.timedelta(nanoseconds=1) + self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, test_number) + + def test_get_attribute_string(self): + string = 'Testing is fun?' + self.patched_library_interpreter.get_attribute_vi_string.side_effect = [string] + attribute_id = 1000002 + with nifake.Session('dev1') as session: + attr_string = session.read_write_string + assert attr_string == string + self.patched_library_interpreter.get_attribute_vi_string.assert_called_once_with('', attribute_id) + + def test_set_attribute_string(self): + self.patched_library_interpreter.set_attribute_vi_string.side_effect = [None] + attribute_id = 1000002 + attrib_string = 'This is test string' + with nifake.Session('dev1') as session: + session.read_write_string = attrib_string + self.patched_library_interpreter.set_attribute_vi_string.assert_called_once_with('', attribute_id, 'This is test string') + + def test_get_attribute_comma_separated_string(self): + comma_separated_string = 'PinA,PinB,PinC' + expected_list = ['PinA', 'PinB', 'PinC'] + self.patched_library_interpreter.get_attribute_vi_string.side_effect = [comma_separated_string] + attribute_id = 1000015 + with nifake.Session('dev1') as session: + attr_list = session.read_write_comma_separated_string + assert attr_list == expected_list + self.patched_library_interpreter.get_attribute_vi_string.assert_called_once_with('', attribute_id) + + def test_set_attribute_comma_separated_string(self): + self.patched_library_interpreter.set_attribute_vi_string.side_effect = [None] + attribute_id = 1000015 + attrib_list = ['PinA', 'PinB', 'PinC'] + expected_string = 'PinA,PinB,PinC' + with nifake.Session('dev1') as session: + session.read_write_comma_separated_string = attrib_list + self.patched_library_interpreter.set_attribute_vi_string.assert_called_once_with('', attribute_id, expected_string) + + def test_get_attribute_string_with_converter(self): + string = 'not that interesting' + self.patched_library_interpreter.get_attribute_vi_string.side_effect = [string] + attribute_id = 1000010 + with nifake.Session('dev1') as session: + attr_string = session.read_write_string_repeated_capability + assert attr_string == string + self.patched_library_interpreter.get_attribute_vi_string.assert_called_once_with('', attribute_id) + + def test_set_attribute_string_with_converter(self): + self.patched_library_interpreter.set_attribute_vi_string.side_effect = [None] + attribute_id = 1000010 + with nifake.Session('dev1') as session: + session.read_write_string_repeated_capability = 42 + self.patched_library_interpreter.set_attribute_vi_string.assert_called_once_with('', attribute_id, '42') + + def test_get_attribute_boolean(self): + self.patched_library_interpreter.get_attribute_vi_boolean.side_effect = [1] + attribute_id = 1000000 + with nifake.Session('dev1') as session: + assert session.read_write_bool + self.patched_library_interpreter.get_attribute_vi_boolean.assert_called_once_with('', attribute_id) + + def test_set_attribute_boolean(self): + self.patched_library_interpreter.set_attribute_vi_boolean.side_effect = [None] + attribute_id = 1000000 + attrib_bool = True + with nifake.Session('dev1') as session: + session.read_write_bool = attrib_bool + self.patched_library_interpreter.set_attribute_vi_boolean.assert_called_once_with('', attribute_id, True) + + def test_get_attribute_enum_int32(self): + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [nifake.Color.BLUE] + with nifake.Session('dev1') as session: + assert session.read_write_color == nifake.Color.BLUE + attribute_id = 1000003 + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) + + def test_set_attribute_enum_int32(self): + self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] + enum_value = nifake.Color.RED + with nifake.Session('dev1') as session: + session.read_write_color = enum_value + attribute_id = 1000003 + self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, enum_value.value) + + def test_get_attribute_enum_real64(self): + enum_value = nifake.FloatEnum.SIX_POINT_FIVE + self.patched_library_interpreter.get_attribute_vi_real64.side_effect = [enum_value] + with nifake.Session('dev1') as session: + assert session.float_enum == enum_value + attribute_id = 1000005 + self.patched_library_interpreter.get_attribute_vi_real64.assert_called_once_with('', attribute_id) + + def test_set_attribute_enum_real64(self): + self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] + enum_value = nifake.FloatEnum.FIVE_POINT_FIVE + with nifake.Session('dev1') as session: + session.float_enum = enum_value + attribute_id = 1000005 + self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, enum_value.value) + + def test_get_attribute_enum_with_converter(self): + enum_value = nifake.EnumWithConverter.RED + converted_value = True + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [enum_value] + with nifake.Session('dev1') as session: + assert session.read_write_enum_with_converter == converted_value + attribute_id = 1000011 + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) + + def test_get_attribute_enum_with_converter_invalid_value_from_driver(self): + invalid_value_from_driver = 0 + expected_error_message = 'The NI-FAKE runtime returned an unexpected value. This can occur if it is too new for the nifake Python module. Upgrade the nifake Python module.' + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [invalid_value_from_driver] + with nifake.Session('dev1') as session: + try: + session.read_write_enum_with_converter + assert False + except nifake.errors.DriverTooNewError as actual_error: + actual_error_message = actual_error.args[0] + assert actual_error_message == expected_error_message + attribute_id = 1000011 + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('', attribute_id) + + def test_set_attribute_enum_with_converter(self): + enum_value = nifake.EnumWithConverter.RED + converted_value = True + self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] + with nifake.Session('dev1') as session: + session.read_write_enum_with_converter = converted_value + attribute_id = 1000011 + self.patched_library_interpreter.set_attribute_vi_int32.assert_called_once_with('', attribute_id, enum_value.value) + + def test_set_attribute_enum_with_converter_invalid_input(self): + invalid_input_value = 'invalid' + expected_error_description = "Invalid value: invalid" + self.patched_library_interpreter.set_attribute_vi_int32.side_effect = [None] + with nifake.Session('dev1') as session: + try: + session.read_write_enum_with_converter = invalid_input_value + assert False + except ValueError as actual_error: + actual_error_message = actual_error.args[0] + assert actual_error_message == expected_error_description + assert not self.patched_library_interpreter.set_attribute_vi_int32.called + + def test_get_attribute_channel(self): + test_number = 100 + self.patched_library_interpreter.get_attribute_vi_int32.side_effect = [test_number] + attribute_id = 1000004 + with nifake.Session('dev1') as session: + attr_int = session.channels[['0', '1']].read_write_integer + assert attr_int == test_number + self.patched_library_interpreter.get_attribute_vi_int32.assert_called_once_with('0,1', attribute_id) + + def test_set_attribute_channel(self): + self.patched_library_interpreter.set_attribute_vi_real64.side_effect = [None] + attribute_id = 1000001 + test_number = 0.001 + with nifake.Session('dev1') as session: + session.channels[range(24)].read_write_double = test_number + self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23', attribute_id, test_number) + + def test_get_attribute_int64(self): + attribute_id = 1000006 + test_number = 6000000000 + self.patched_library_interpreter.get_attribute_vi_int64.side_effect = [test_number] + with nifake.Session('dev1') as session: + attr_int = session.read_write_int64 + assert attr_int == test_number + self.patched_library_interpreter.get_attribute_vi_int64.assert_called_once_with('', attribute_id) + + def test_set_attribute_int64(self): + self.patched_library_interpreter.set_attribute_vi_int64.side_effect = [None] + attribute_id = 1000006 + test_number = -6000000000 + with nifake.Session('dev1') as session: + session.read_write_int64 = test_number + self.patched_library_interpreter.set_attribute_vi_int64.assert_called_once_with('', attribute_id, test_number) + + def test_get_attribute_error(self): + test_error_code = -123 + test_error_desc = "ascending order" + self.patched_library_interpreter.get_attribute_vi_real64.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + with nifake.Session('dev1') as session: + try: + session.read_write_double + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + + def test_set_attribute_error(self): + attribute_id = 1000001 + test_error_code = -1 + test_error_desc = 'Test' + self.patched_library_interpreter.set_attribute_vi_real64.side_effect = nifake.errors.DriverError(test_error_code, test_error_desc) + with nifake.Session('dev1') as session: + try: + session.read_write_double = -42.0 + assert False + except nifake.Error as e: + assert e.code == test_error_code + assert e.description == test_error_desc + self.patched_library_interpreter.set_attribute_vi_real64.assert_called_once_with('', attribute_id, -42.0) + + def test_add_properties_to_session_error_set(self): + with nifake.Session('dev1') as session: + try: + session.non_existent_property = 5 + assert False + except AttributeError as e: + assert str(e) == "'Session' object has no attribute 'non_existent_property'" + + def test_add_properties_to_session_error_get(self): + with nifake.Session('dev1') as session: + try: + value = session.non_existent_property # noqa: F841 + assert False + except AttributeError as e: + assert str(e) == "'Session' object has no attribute 'non_existent_property'" + + def test_add_properties_to_repeated_capability_error_set(self): + with nifake.Session('dev1') as session: + try: + session.channels['0'].non_existent_property = 5 + assert False + except AttributeError as e: + assert str(e) == "'_SessionBase' object has no attribute 'non_existent_property'" + + def test_add_properties_to_repeated_capability_error_get(self): + with nifake.Session('dev1') as session: + try: + value = session.channels['0'].non_existent_property # noqa: F841 + assert False + except AttributeError as e: + assert str(e) == "'_SessionBase' object has no attribute 'non_existent_property'" + + def test_set_enum_attribute_int32_error(self): + with nifake.Session('dev1') as session: + try: + session.read_write_color = 5 + except TypeError as e: + assert str(e) == 'must be Color not int' + + def test_set_wrong_enum_attribute_int32_error(self): + with nifake.Session('dev1') as session: + try: + session.read_write_color = nifake.FloatEnum.SIX_POINT_FIVE + except TypeError as e: + assert str(e) == 'must be Color not FloatEnum' + + def test_multiple_arrays_same_size_wrong_size_2(self): + with nifake.Session('dev1') as session: + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + input_array_of_floats2 = [0.410, 0.420, 0.430] + input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] + input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] + try: + session.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) + except ValueError: + pass + + def test_multiple_arrays_same_size_wrong_size_3(self): + with nifake.Session('dev1') as session: + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] + input_array_of_floats3 = [4.100, 4.200, 4.400] + input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00] + try: + session.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) + except ValueError: + pass + + def test_multiple_arrays_same_size_wrong_size_4(self): + with nifake.Session('dev1') as session: + input_array_of_floats1 = [0.041, 0.042, 0.043, 0.044] + input_array_of_floats2 = [0.410, 0.420, 0.430, 0.440] + input_array_of_floats3 = [4.100, 4.200, 4.300, 4.400] + input_array_of_floats4 = [41.00, 42.00, 43.00, 44.00, 45.00] + try: + session.multiple_arrays_same_size(input_array_of_floats1, input_array_of_floats2, input_array_of_floats3, input_array_of_floats4) + except ValueError: + pass + + def test_multiple_arrays_different_size_none_input(self): + values_array = [1.1, 2.2, 3.3] + self.patched_library_interpreter.multiple_arrays_different_size.side_effect = [None] + with nifake.Session('dev1') as session: + assert session.multiple_arrays_different_size(values_array, None) is None + self.patched_library_interpreter.multiple_arrays_different_size.assert_called_once_with(values_array, None) + + def test_get_cal_date_time(self): + month = 12 + day = 30 + year = 1988 + hour = 10 + minute = 15 + self.patched_library_interpreter.get_cal_date_and_time.side_effect = [(month, day, year, hour, minute)] + with nifake.Session('dev1') as session: + last_cal = session.get_cal_date_and_time(0) + assert isinstance(last_cal, hightime.datetime) + assert hightime.datetime(year, month, day, hour, minute) == last_cal + + def test_get_cal_interval(self): + self.patched_library_interpreter.get_cal_interval.side_effect = [24] + with nifake.Session('dev1') as session: + last_cal = session.get_cal_interval() + assert isinstance(last_cal, hightime.timedelta) + assert 730 == last_cal.days + + # Import/Export functions - Invalid types + + def test_import_attribute_configuration_buffer_list_i8_big(self): + expected_list = [ord('a') * 100, ord('b') * 100, ord('c') * 100, ord('d') * 100] + configuration = expected_list + with nifake.Session('dev1') as session: + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + try: + session.import_attribute_configuration_buffer(configuration) + assert False + except ValueError: + pass + + def test_import_attribute_configuration_buffer_list_i8_float(self): + expected_list = [ord('a') * 1.0, ord('b') * 1.0, ord('c') * 1.0, ord('d') * 1.0] + configuration = expected_list + with nifake.Session('dev1') as session: + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + try: + session.import_attribute_configuration_buffer(configuration) + assert False + except TypeError: + pass + + def test_import_attribute_configuration_buffer_list_i8_big_float(self): + expected_list = [ord('a') * 100.0, ord('b') * 100.0, ord('c') * 100.0, ord('d') * 100.0] + configuration = expected_list + with nifake.Session('dev1') as session: + self.get_ctypes_pointer_for_buffer_side_effect_items = [expected_list] + self.get_ctypes_pointer_for_buffer_side_effect_count = 0 + try: + session.import_attribute_configuration_buffer(configuration) + assert False + except TypeError: + pass + + def test_export_attribute_configuration_buffer(self): + expected_buffer_list = [ord('a'), ord('b'), ord('c'), ord('d'), ] + self.patched_library_interpreter.export_attribute_configuration_buffer.side_effect = [expected_buffer_list] + with nifake.Session('dev1') as session: + actual_configuration = session.export_attribute_configuration_buffer() + assert type(actual_configuration) is bytes + assert actual_configuration == bytes(expected_buffer_list) + self.patched_library_interpreter.export_attribute_configuration_buffer.assert_called_once_with() + + def test_channel_on_session(self): + with nifake.Session('dev1') as session: + try: + session['100'].read_write_double = 5.0 + assert False + except TypeError: + pass + + def test_function_name(self): + with nifake.Session('dev1') as session: + # Pick a function that uses @ivi_synchronized + assert session.bool_array_output_function.__name__ == 'bool_array_output_function' + # Pick several functions that do not use @ivi_synchronized to make sure they don't break in the future + assert session.lock.__name__ == 'lock' + assert session._error_message.__name__ == '_error_message' + assert session.initiate.__name__ == 'initiate' + # Cannot use session..__name__ since that invokes the get attribute value and the returned value + # (string, int, float) don't have __name__ properties + + def test_buffer_converter(self): + self.patched_library_interpreter.double_all_the_nums.side_effect = [None] + nums = [1, 2, 3, 4.2] + nums_x2 = [x * 2 for x in nums] + with nifake.Session('dev1') as session: + session.double_all_the_nums(nums) + self.patched_library_interpreter.double_all_the_nums.assert_called_once_with(nums_x2) + + def test_nitclk_integration(self): + with nifake.Session('dev1') as session: + assert str(type(session.tclk)) == "" + + def test_accept_list_of_time_values_as_floats(self): + self.patched_library_interpreter.accept_list_of_durations_in_seconds.side_effect = [None] + delays = [-1.5, 2.0] + with nifake.Session('dev1') as session: + session.accept_list_of_durations_in_seconds(delays) + self.patched_library_interpreter.accept_list_of_durations_in_seconds.assert_called_once_with(delays) + + def test_accept_array_of_time_values_as_floats(self): + self.patched_library_interpreter.accept_list_of_durations_in_seconds.side_effect = [None] + time_values = [-1.5, 2.0] + delays = array.array('d', time_values) + with nifake.Session('dev1') as session: + session.accept_list_of_durations_in_seconds(delays) + self.patched_library_interpreter.accept_list_of_durations_in_seconds.assert_called_once_with(time_values) + + def test_accept_list_of_time_values_as_timedelta_instances(self): + self.patched_library_interpreter.accept_list_of_durations_in_seconds.side_effect = [None] + time_values = [-1.5, 2e-9] + delays = [datetime.timedelta(seconds=-1.5), hightime.timedelta(nanoseconds=2)] + with nifake.Session('dev1') as session: + session.accept_list_of_durations_in_seconds(delays) + self.patched_library_interpreter.accept_list_of_durations_in_seconds.assert_called_once_with(time_values) + + def test_return_timedelta(self): + time_value = -1.5 + expected_timedelta = hightime.timedelta(seconds=time_value) + self.patched_library_interpreter.return_duration_in_seconds.side_effect = [time_value] + with nifake.Session('dev1') as session: + returned_timedelta = session.return_duration_in_seconds() + assert returned_timedelta == expected_timedelta + self.patched_library_interpreter.return_duration_in_seconds.assert_called_once_with() + + def test_return_timedeltas(self): + time_values = [-1.5, 2.0] + expected_timedeltas = [hightime.timedelta(seconds=i) for i in time_values] + self.patched_library_interpreter.return_list_of_durations_in_seconds.side_effect = [time_values] + with nifake.Session('dev1') as session: + returned_timedeltas = session.return_list_of_durations_in_seconds(len(expected_timedeltas)) + assert len(returned_timedeltas) == len(expected_timedeltas) + assert returned_timedeltas == expected_timedeltas + self.patched_library_interpreter.return_list_of_durations_in_seconds.assert_called_once_with(len(time_values)) + + def test_with_valid_intflag_parameter(self): + flags = nifake.IntFlagEnum.E | nifake.IntFlagEnum.A + self.patched_library_interpreter.function_with_intflag_parameter.side_effect = None + self.patched_library_interpreter.function_with_intflag_parameter.return_value = None + with nifake.Session('dev1') as session: + session.function_with_intflag_parameter(flags) + self.patched_library_interpreter.function_with_intflag_parameter.assert_called_once_with(1073741825) + + def test_with_intflag_parameter_invalid(self): + invalid_flag = 5 + with nifake.Session('dev1') as session: + try: + session.function_with_intflag_parameter(invalid_flag) + assert False + except TypeError: + pass + + def test_session_write_waveform_numpy_complex64_invalid_dtype(self): + invalid_waveform_data = numpy.full(10, 1.0 + 1.0j, dtype=numpy.complex128) + expected_error_message = "waveform_data_array must be numpy.ndarray of dtype=complex64, is complex128" + with nifake.Session('dev1') as session: + with pytest.raises(TypeError) as exc_info: + session.write_waveform_numpy_complex64(invalid_waveform_data) + assert str(exc_info.value) == expected_error_message + + def test_session_write_waveform_numpy_complex128_invalid_dtype(self): + invalid_waveform_data = numpy.full(10, 1.0 + 1.0j, dtype=numpy.complex64) + expected_error_message = "waveform_data_array must be numpy.ndarray of dtype=complex128, is complex64" + with nifake.Session('dev1') as session: + with pytest.raises(TypeError) as exc_info: + session.write_waveform_numpy_complex128(invalid_waveform_data) + assert str(exc_info.value) == expected_error_message + + def test_session_write_waveform_numpy_complex_interleaved_i16_invalid_dtype(self): + invalid_waveform_data = numpy.full(10, 1.0 + 1.0j, dtype=numpy.complex64) + expected_error_message = "waveform_data_array must be numpy.ndarray of dtype=int16, is complex64" + with nifake.Session('dev1') as session: + with pytest.raises(TypeError) as exc_info: + session.write_waveform_numpy_complex_interleaved_i16(invalid_waveform_data) + assert str(exc_info.value) == expected_error_message + + +class TestGrpcSession: + + class PatchedGrpcInterpreter(nifake._grpc_stub_interpreter.GrpcStubInterpreter): + def __init__(self, grpc_options): + for f in dir(self): + if not f.startswith("_") and f not in {'get_session_handle', 'set_session_handle'}: + setattr(self, f, MagicMock(spec_set=getattr(self, f), side_effect=_mock_helper.MockFunctionCallError(f))) + + def setup_method(self, method): + self.patched_grpc_interpreter = self.PatchedGrpcInterpreter(None) + self.patched_grpc_constructor = patch('nifake._grpc_stub_interpreter.GrpcStubInterpreter', return_value=self.patched_grpc_interpreter) + self.patched_grpc_constructor.start() + + # We don't actually call into the nitclk DLL, but we do need to mock the function since it is called + self.tclk_patched_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=None) + self.tclk_patched_library_singleton_get.start() + + def interpreter_init(*args, **kwargs): + self.patched_grpc_interpreter._close_on_exit = True + return GRPC_SESSION_OBJECT_FOR_TEST + + self.patched_grpc_interpreter.init_with_options.side_effect = interpreter_init + self.patched_grpc_interpreter._close_on_exit = True + self.patched_grpc_interpreter.close.side_effect = [None] + + # Mock lock/unlock + self.patched_grpc_interpreter.lock.side_effect = lambda *args: None + self.patched_grpc_interpreter.unlock.side_effect = lambda *args: None + + def teardown_method(self, method): + self.patched_grpc_constructor.stop() + self.tclk_patched_library_singleton_get.stop() + + # Session management + + def test_init_with_options_and_close(self): + session = nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) + self.patched_grpc_interpreter.init_with_options.assert_called_once_with('dev1', False, False, '') + assert session._interpreter._vi == GRPC_SESSION_OBJECT_FOR_TEST + session.close() + self.patched_grpc_interpreter.close.assert_called_once_with() + + def test_init_audits_successful_connect(self, nitls_tagged_channel): + with patch('nitlsconfig.audit_session_connect', autospec=True) as patched_audit: + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(nitls_tagged_channel, '')): + pass + patched_audit.assert_called_once_with('NI-FAKE', nitls_tagged_channel, True) + + def test_init_audits_failed_connect(self, nitls_tagged_channel): + self.patched_grpc_interpreter.init_with_options.side_effect = nifake.Error('Fake init failure') + with patch('nitlsconfig.audit_session_connect', autospec=True) as patched_audit: + with pytest.raises(nifake.Error): + nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(nitls_tagged_channel, '')) + patched_audit.assert_called_once_with('NI-FAKE', nitls_tagged_channel, False) + + # Session locking + + def test_lock_session_none(self): + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + session.lock() + self.patched_grpc_interpreter.lock.assert_called_once_with() + + def test_unlock_session_none(self): + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + session.unlock() + self.patched_grpc_interpreter.unlock.assert_called_once_with() + + def test_lock_context_manager(self): + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + with session.lock(): + pass + self.patched_grpc_interpreter.lock.assert_called_once_with() + self.patched_grpc_interpreter.unlock.assert_called_once_with() + + def test_lock_context_manager_abnormal_exit(self): + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + try: + with session.lock(): + raise nifake.Error('Fake exception') + except nifake.Error: + pass + self.patched_grpc_interpreter.lock.assert_called_once_with() + self.patched_grpc_interpreter.unlock.assert_called_once_with() + + # Methods + + def test_self_test(self): + test_error_code = 0 + self.patched_grpc_interpreter.self_test.side_effect = [(test_error_code, '')] + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + session.self_test() + + def test_export_attribute_configuration_buffer(self): + expected_buffer = b'abcd' + self.patched_grpc_interpreter.export_attribute_configuration_buffer.side_effect = [expected_buffer] + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + actual_configuration = session.export_attribute_configuration_buffer() + assert type(actual_configuration) is bytes + assert actual_configuration == bytes(expected_buffer) + self.patched_grpc_interpreter.export_attribute_configuration_buffer.assert_called_once_with() + + # Attributes + + def test_get_attribute_int32(self): + test_number = 3 + self.patched_grpc_interpreter.get_attribute_vi_int32.side_effect = [test_number] + with nifake.Session('dev1', grpc_options=nifake.GrpcSessionOptions(object(), '')) as session: + attr_int = session.read_write_integer + assert attr_int == test_number + self.patched_grpc_interpreter.get_attribute_vi_int32.assert_called_once_with('', 1000004) + + +# not session tests per se +def test_diagnostic_information(): + info = nifake.print_diagnostic_information() + assert isinstance(info, dict) + + +def test_dunder_version(): + print(f'Version = {nifake.__version__}') + assert type(nifake.__version__) is str diff --git a/generated/nifake/setup.py b/generated/nifake/setup.py new file mode 100644 index 0000000000..5fec3f14d3 --- /dev/null +++ b/generated/nifake/setup.py @@ -0,0 +1,65 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nifake' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-FAKE Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nifake'], + license='MIT', + include_package_data=True, + packages=['nifake'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + 'nitclk', + 'numpy', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nifake/tox-system_tests.ini b/generated/nifake/tox-system_tests.ini new file mode 100644 index 0000000000..d43bd532f3 --- /dev/null +++ b/generated/nifake/tox-system_tests.ini @@ -0,0 +1,73 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nifake) +[tox] +envlist = py{310,311,312,313,314}-nifake-wheel_dep,py{310,311,312,313,314}-nifake-system_tests, py314-nifake-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nifake-wheel_dep: Build the nitclk wheel because we use it in nifake tests + nifake-system_tests: Run nifake system tests (requires NI-FAKE runtime to be installed) + nifake-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nifake-wheel_dep: ../nitclk + nifake-system_tests: . + nifake-coverage: . + +commands = + nifake-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nifake-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nifake-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. + nifake-system_tests: python -c "import nifake; nifake.print_diagnostic_information()" + nifake-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifake --parallel-mode -m pytest ../../src/nifake/examples --junitxml=../junit/junit-nifake-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nifake-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifake --parallel-mode -m pytest ../../src/nifake/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nifake-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nifake-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nifake-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nifake-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nifake-wheel_dep: build + + nifake-system_tests: pytest < 9.2.0 + nifake-system_tests: coverage + nifake-system_tests: numpy + nifake-system_tests: hightime + nifake-system_tests: fasteners + nifake-system_tests: pytest-json + nifake-system_tests: .[grpc] + + nifake-coverage: coverage + +depends = + nifake-coverage: py{310,311,312,313,314}-nifake-system_tests + nifake-system_tests: py{310,311,312,313,314}-nifake-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nifgen/README.rst b/generated/nifgen/README.rst new file mode 100644 index 0000000000..b73d6e4812 --- /dev/null +++ b/generated/nifgen/README.rst @@ -0,0 +1,174 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nifgen** module provides a Python API for NI-FGEN. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nifgen** supports all the Operating Systems supported by NI-FGEN. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nifgen**. + + +NI-FGEN Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-FGEN (nifgen) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nifgenLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nifgenPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nifgenDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nifgenOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nifgenOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nifgenLatestVersion| image:: http://img.shields.io/pypi/v/nifgen.svg + :alt: Latest NI-FGEN Version + :target: http://pypi.python.org/pypi/nifgen + + +.. |nifgenPythonVersion| image:: http://img.shields.io/pypi/pyversions/nifgen.svg + :alt: NI-FGEN supported Python versions + :target: http://pypi.python.org/pypi/nifgen + + +.. |nifgenDocs| image:: https://readthedocs.org/projects/nifgen/badge/?version=latest + :alt: NI-FGEN Python API Documentation Status + :target: https://nifgen.readthedocs.io/en/latest + + +.. |nifgenOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nifgen.svg + :alt: Open Issues + Pull Requests for NI-FGEN + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anifgen + + +.. |nifgenOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nifgen.svg + :alt: Pull Requests for NI-FGEN + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anifgen + + + +.. _nifgen_installation-section: + +Installation +------------ + +As a prerequisite to using the **nifgen** module, you must install the NI-FGEN runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-FGEN**) can be installed with `pip `_:: + + $ python -m pip install nifgen + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nifgen** module to open a session to a Function Generator and generate a sine wave for 5 seconds. + +.. code-block:: python + + import nifgen + import time + with nifgen.Session("Dev1") as session: + session.output_mode = nifgen.OutputMode.FUNC + session.configure_standard_waveform(waveform=nifgen.Waveform.SINE, amplitude=1.0, frequency=10000000, dc_offset=0.0, start_phase=0.0) + with session.initiate(): + time.sleep(5) + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nifgen/nifgen/VERSION b/generated/nifgen/nifgen/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nifgen/nifgen/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nifgen/nifgen/__init__.py b/generated/nifgen/nifgen/__init__.py new file mode 100644 index 0000000000..abfc81a83a --- /dev/null +++ b/generated/nifgen/nifgen/__init__.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nifgen.enums import * # noqa: F403,F401,H303 +from nifgen.errors import DriverWarning # noqa: F401 +from nifgen.errors import Error # noqa: F401 +from nifgen.grpc_session_options import * # noqa: F403,F401,H303 +from nifgen.session import Session # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-FGEN\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-FGEN" + info['driver']['version'] = driver_version + info['module']['name'] = 'nifgen' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nifgen/nifgen/_attributes.py b/generated/nifgen/nifgen/_attributes.py new file mode 100644 index 0000000000..958f66443b --- /dev/null +++ b/generated/nifgen/nifgen/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nifgen._converters as _converters +import nifgen.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nifgen Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nifgen.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nifgen/nifgen/_converters.py b/generated/nifgen/nifgen/_converters.py new file mode 100644 index 0000000000..1d18df460c --- /dev/null +++ b/generated/nifgen/nifgen/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nifgen._visatype as _visatype +import nifgen.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nifgen/nifgen/_grpc_stub_interpreter.py b/generated/nifgen/nifgen/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..21f50c24da --- /dev/null +++ b/generated/nifgen/nifgen/_grpc_stub_interpreter.py @@ -0,0 +1,527 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nifgen_pb2 as grpc_types +from . import nifgen_pb2_grpc as nifgen_grpc + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nifgen_grpc.NiFgenStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.AbortGeneration, + grpc_types.AbortGenerationRequest(vi=self._vi), + ) + + def allocate_named_waveform(self, channel_name, waveform_name, waveform_size): # noqa: N802 + self._invoke( + self._client.AllocateNamedWaveform, + grpc_types.AllocateNamedWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name, waveform_size=waveform_size), + ) + + def allocate_waveform(self, channel_name, waveform_size): # noqa: N802 + response = self._invoke( + self._client.AllocateWaveform, + grpc_types.AllocateWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_size=waveform_size), + ) + return response.waveform_handle + + def clear_arb_memory(self): # noqa: N802 + self._invoke( + self._client.ClearArbMemory, + grpc_types.ClearArbMemoryRequest(vi=self._vi), + ) + + def clear_arb_sequence(self, sequence_handle): # noqa: N802 + self._invoke( + self._client.ClearArbSequence, + grpc_types.ClearArbSequenceRequest(vi=self._vi, sequence_handle_raw=sequence_handle), + ) + + def clear_arb_waveform(self, waveform_handle): # noqa: N802 + self._invoke( + self._client.ClearArbWaveform, + grpc_types.ClearArbWaveformRequest(vi=self._vi, waveform_handle_raw=waveform_handle), + ) + + def clear_freq_list(self, frequency_list_handle): # noqa: N802 + self._invoke( + self._client.ClearFreqList, + grpc_types.ClearFreqListRequest(vi=self._vi, frequency_list_handle_raw=frequency_list_handle), + ) + + def clear_user_standard_waveform(self, channel_name): # noqa: N802 + self._invoke( + self._client.ClearUserStandardWaveform, + grpc_types.ClearUserStandardWaveformRequest(vi=self._vi, channel_name=channel_name), + ) + + def commit(self): # noqa: N802 + self._invoke( + self._client.Commit, + grpc_types.CommitRequest(vi=self._vi), + ) + + def configure_arb_sequence(self, channel_name, sequence_handle, gain, offset): # noqa: N802 + self._invoke( + self._client.ConfigureArbSequence, + grpc_types.ConfigureArbSequenceRequest(vi=self._vi, channel_name=channel_name, sequence_handle=sequence_handle, gain=gain, offset=offset), + ) + + def configure_arb_waveform(self, channel_name, waveform_handle, gain, offset): # noqa: N802 + self._invoke( + self._client.ConfigureArbWaveform, + grpc_types.ConfigureArbWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_handle=waveform_handle, gain=gain, offset=offset), + ) + + def configure_freq_list(self, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 + self._invoke( + self._client.ConfigureFreqList, + grpc_types.ConfigureFreqListRequest(vi=self._vi, channel_name=channel_name, frequency_list_handle=frequency_list_handle, amplitude=amplitude, dc_offset=dc_offset, start_phase=start_phase), + ) + + def configure_standard_waveform(self, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 + self._invoke( + self._client.ConfigureStandardWaveform, + grpc_types.ConfigureStandardWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_raw=waveform.value, amplitude=amplitude, dc_offset=dc_offset, frequency=frequency, start_phase=start_phase), + ) + + def create_advanced_arb_sequence(self, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array): # noqa: N802 + response = self._invoke( + self._client.CreateAdvancedArbSequence, + grpc_types.CreateAdvancedArbSequenceRequest(vi=self._vi, waveform_handles_array=waveform_handles_array, loop_counts_array=loop_counts_array, sample_counts_array=sample_counts_array, marker_location_array=marker_location_array), + ) + return response.coerced_markers_array, response.sequence_handle + + def create_arb_sequence(self, waveform_handles_array, loop_counts_array): # noqa: N802 + response = self._invoke( + self._client.CreateArbSequence, + grpc_types.CreateArbSequenceRequest(vi=self._vi, waveform_handles_array=waveform_handles_array, loop_counts_array=loop_counts_array), + ) + return response.sequence_handle + + def create_freq_list(self, waveform, frequency_array, duration_array): # noqa: N802 + response = self._invoke( + self._client.CreateFreqList, + grpc_types.CreateFreqListRequest(vi=self._vi, waveform_raw=waveform.value, frequency_array=frequency_array, duration_array=duration_array), + ) + return response.frequency_list_handle + + def create_waveform_f64(self, channel_name, waveform_data_array): # noqa: N802 + response = self._invoke( + self._client.CreateWaveformF64, + grpc_types.CreateWaveformF64Request(vi=self._vi, channel_name=channel_name, waveform_data_array=waveform_data_array), + ) + return response.waveform_handle + + def create_waveform_f64_numpy(self, channel_name, waveform_data_array): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def create_waveform_from_file_f64(self, channel_name, file_name, byte_order): # noqa: N802 + response = self._invoke( + self._client.CreateWaveformFromFileF64, + grpc_types.CreateWaveformFromFileF64Request(vi=self._vi, channel_name=channel_name, file_name=file_name, byte_order_raw=byte_order.value), + ) + return response.waveform_handle + + def create_waveform_from_file_i16(self, channel_name, file_name, byte_order): # noqa: N802 + response = self._invoke( + self._client.CreateWaveformFromFileI16, + grpc_types.CreateWaveformFromFileI16Request(vi=self._vi, channel_name=channel_name, file_name=file_name, byte_order_raw=byte_order.value), + ) + return response.waveform_handle + + def create_waveform_i16_numpy(self, channel_name, waveform_data_array): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def define_user_standard_waveform(self, channel_name, waveform_data_array): # noqa: N802 + self._invoke( + self._client.DefineUserStandardWaveform, + grpc_types.DefineUserStandardWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_data_array=waveform_data_array), + ) + + def delete_named_waveform(self, channel_name, waveform_name): # noqa: N802 + self._invoke( + self._client.DeleteNamedWaveform, + grpc_types.DeleteNamedWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name), + ) + + def delete_script(self, channel_name, script_name): # noqa: N802 + self._invoke( + self._client.DeleteScript, + grpc_types.DeleteScriptRequest(vi=self._vi, channel_name=channel_name, script_name=script_name), + ) + + def disable(self): # noqa: N802 + self._invoke( + self._client.Disable, + grpc_types.DisableRequest(vi=self._vi), + ) + + def export_attribute_configuration_buffer(self): # noqa: N802 + response = self._invoke( + self._client.ExportAttributeConfigurationBuffer, + grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), + ) + return response.configuration + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ExportAttributeConfigurationFile, + grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_channel_name(self, index): # noqa: N802 + response = self._invoke( + self._client.GetChannelName, + grpc_types.GetChannelNameRequest(vi=self._vi, index=index), + ) + return response.channel_string + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.error_description + + def get_ext_cal_last_date_and_time(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalLastDateAndTime, + grpc_types.GetExtCalLastDateAndTimeRequest(vi=self._vi), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_ext_cal_last_temp(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalLastTemp, + grpc_types.GetExtCalLastTempRequest(vi=self._vi), + ) + return response.temperature + + def get_ext_cal_recommended_interval(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalRecommendedInterval, + grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), + ) + return response.months + + def get_hardware_state(self): # noqa: N802 + response = self._invoke( + self._client.GetHardwareState, + grpc_types.GetHardwareStateRequest(vi=self._vi), + ) + return enums.HardwareState(response.state_raw) + + def get_self_cal_last_date_and_time(self): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalLastDateAndTime, + grpc_types.GetSelfCalLastDateAndTimeRequest(vi=self._vi), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_self_cal_last_temp(self): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalLastTemp, + grpc_types.GetSelfCalLastTempRequest(vi=self._vi), + ) + return response.temperature + + def get_self_cal_supported(self): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalSupported, + grpc_types.GetSelfCalSupportedRequest(vi=self._vi), + ) + return response.self_cal_supported + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationBuffer, + grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), + ) + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationFile, + grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def initialize_with_channels(self, resource_name, channel_name, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitializeWithChannels, + grpc_types.InitializeWithChannelsRequest(resource_name=resource_name, channel_name=channel_name, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate_generation(self): # noqa: N802 + self._invoke( + self._client.InitiateGeneration, + grpc_types.InitiateGenerationRequest(vi=self._vi), + ) + + def is_done(self): # noqa: N802 + response = self._invoke( + self._client.IsDone, + grpc_types.IsDoneRequest(vi=self._vi), + ) + return response.done + + def lock(self): # noqa: N802 + self._lock.acquire() + + def query_arb_seq_capabilities(self): # noqa: N802 + response = self._invoke( + self._client.QueryArbSeqCapabilities, + grpc_types.QueryArbSeqCapabilitiesRequest(vi=self._vi), + ) + return response.maximum_number_of_sequences, response.minimum_sequence_length, response.maximum_sequence_length, response.maximum_loop_count + + def query_arb_wfm_capabilities(self): # noqa: N802 + response = self._invoke( + self._client.QueryArbWfmCapabilities, + grpc_types.QueryArbWfmCapabilitiesRequest(vi=self._vi), + ) + return response.maximum_number_of_waveforms, response.waveform_quantum, response.minimum_waveform_size, response.maximum_waveform_size + + def query_freq_list_capabilities(self): # noqa: N802 + response = self._invoke( + self._client.QueryFreqListCapabilities, + grpc_types.QueryFreqListCapabilitiesRequest(vi=self._vi), + ) + return response.maximum_number_of_freq_lists, response.minimum_frequency_list_length, response.maximum_frequency_list_length, response.minimum_frequency_list_duration, response.maximum_frequency_list_duration, response.frequency_list_duration_quantum + + def read_current_temperature(self): # noqa: N802 + response = self._invoke( + self._client.ReadCurrentTemperature, + grpc_types.ReadCurrentTemperatureRequest(vi=self._vi), + ) + return response.temperature + + def reset_device(self): # noqa: N802 + self._invoke( + self._client.ResetDevice, + grpc_types.ResetDeviceRequest(vi=self._vi), + ) + + def reset_with_defaults(self): # noqa: N802 + self._invoke( + self._client.ResetWithDefaults, + grpc_types.ResetWithDefaultsRequest(vi=self._vi), + ) + + def self_cal(self): # noqa: N802 + self._invoke( + self._client.SelfCal, + grpc_types.SelfCalRequest(vi=self._vi), + ) + + def send_software_edge_trigger(self, trigger, trigger_id): # noqa: N802 + self._invoke( + self._client.SendSoftwareEdgeTrigger, + grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_id=trigger_id), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_named_waveform_next_write_position(self, channel_name, waveform_name, relative_to, offset): # noqa: N802 + self._invoke( + self._client.SetNamedWaveformNextWritePosition, + grpc_types.SetNamedWaveformNextWritePositionRequest(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name, relative_to_raw=relative_to.value, offset=offset), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def set_waveform_next_write_position(self, channel_name, waveform_handle, relative_to, offset): # noqa: N802 + self._invoke( + self._client.SetWaveformNextWritePosition, + grpc_types.SetWaveformNextWritePositionRequest(vi=self._vi, channel_name=channel_name, waveform_handle=waveform_handle, relative_to_raw=relative_to.value, offset=offset), + ) + + def unlock(self): # noqa: N802 + self._lock.release() + + def wait_until_done(self, max_time): # noqa: N802 + self._invoke( + self._client.WaitUntilDone, + grpc_types.WaitUntilDoneRequest(vi=self._vi, max_time=max_time), + ) + + def write_binary16_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def write_named_waveform_f64(self, channel_name, waveform_name, data): # noqa: N802 + self._invoke( + self._client.WriteNamedWaveformF64, + grpc_types.WriteNamedWaveformF64Request(vi=self._vi, channel_name=channel_name, waveform_name=waveform_name, data=data), + ) + + def write_named_waveform_f64_numpy(self, channel_name, waveform_name, data): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def write_named_waveform_i16_numpy(self, channel_name, waveform_name, data): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def write_script(self, channel_name, script): # noqa: N802 + self._invoke( + self._client.WriteScript, + grpc_types.WriteScriptRequest(vi=self._vi, channel_name=channel_name, script=script), + ) + + def write_waveform(self, channel_name, waveform_handle, data): # noqa: N802 + self._invoke( + self._client.WriteWaveform, + grpc_types.WriteWaveformRequest(vi=self._vi, channel_name=channel_name, waveform_handle=waveform_handle, data=data), + ) + + def write_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.self_test_result, response.self_test_message diff --git a/generated/nifgen/nifgen/_library.py b/generated/nifgen/nifgen/_library.py new file mode 100644 index 0000000000..92a4ed764c --- /dev/null +++ b/generated/nifgen/nifgen/_library.py @@ -0,0 +1,667 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nifgen.errors as errors +import threading + +from nifgen._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niFgen_AbortGeneration_cfunc = None + self.niFgen_AllocateNamedWaveform_cfunc = None + self.niFgen_AllocateWaveform_cfunc = None + self.niFgen_ClearArbMemory_cfunc = None + self.niFgen_ClearArbSequence_cfunc = None + self.niFgen_ClearArbWaveform_cfunc = None + self.niFgen_ClearFreqList_cfunc = None + self.niFgen_ClearUserStandardWaveform_cfunc = None + self.niFgen_Commit_cfunc = None + self.niFgen_ConfigureArbSequence_cfunc = None + self.niFgen_ConfigureArbWaveform_cfunc = None + self.niFgen_ConfigureFreqList_cfunc = None + self.niFgen_ConfigureStandardWaveform_cfunc = None + self.niFgen_CreateAdvancedArbSequence_cfunc = None + self.niFgen_CreateArbSequence_cfunc = None + self.niFgen_CreateFreqList_cfunc = None + self.niFgen_CreateWaveformF64_cfunc = None + self.niFgen_CreateWaveformFromFileF64_cfunc = None + self.niFgen_CreateWaveformFromFileI16_cfunc = None + self.niFgen_CreateWaveformI16_cfunc = None + self.niFgen_DefineUserStandardWaveform_cfunc = None + self.niFgen_DeleteNamedWaveform_cfunc = None + self.niFgen_DeleteScript_cfunc = None + self.niFgen_Disable_cfunc = None + self.niFgen_ExportAttributeConfigurationBuffer_cfunc = None + self.niFgen_ExportAttributeConfigurationFile_cfunc = None + self.niFgen_GetAttributeViBoolean_cfunc = None + self.niFgen_GetAttributeViInt32_cfunc = None + self.niFgen_GetAttributeViReal64_cfunc = None + self.niFgen_GetAttributeViString_cfunc = None + self.niFgen_GetChannelName_cfunc = None + self.niFgen_GetError_cfunc = None + self.niFgen_GetExtCalLastDateAndTime_cfunc = None + self.niFgen_GetExtCalLastTemp_cfunc = None + self.niFgen_GetExtCalRecommendedInterval_cfunc = None + self.niFgen_GetHardwareState_cfunc = None + self.niFgen_GetSelfCalLastDateAndTime_cfunc = None + self.niFgen_GetSelfCalLastTemp_cfunc = None + self.niFgen_GetSelfCalSupported_cfunc = None + self.niFgen_ImportAttributeConfigurationBuffer_cfunc = None + self.niFgen_ImportAttributeConfigurationFile_cfunc = None + self.niFgen_InitializeWithChannels_cfunc = None + self.niFgen_InitiateGeneration_cfunc = None + self.niFgen_IsDone_cfunc = None + self.niFgen_LockSession_cfunc = None + self.niFgen_QueryArbSeqCapabilities_cfunc = None + self.niFgen_QueryArbWfmCapabilities_cfunc = None + self.niFgen_QueryFreqListCapabilities_cfunc = None + self.niFgen_ReadCurrentTemperature_cfunc = None + self.niFgen_ResetDevice_cfunc = None + self.niFgen_ResetWithDefaults_cfunc = None + self.niFgen_SelfCal_cfunc = None + self.niFgen_SendSoftwareEdgeTrigger_cfunc = None + self.niFgen_SetAttributeViBoolean_cfunc = None + self.niFgen_SetAttributeViInt32_cfunc = None + self.niFgen_SetAttributeViReal64_cfunc = None + self.niFgen_SetAttributeViString_cfunc = None + self.niFgen_SetNamedWaveformNextWritePosition_cfunc = None + self.niFgen_SetRuntimeEnvironment_cfunc = None + self.niFgen_SetWaveformNextWritePosition_cfunc = None + self.niFgen_UnlockSession_cfunc = None + self.niFgen_WaitUntilDone_cfunc = None + self.niFgen_WriteBinary16Waveform_cfunc = None + self.niFgen_WriteNamedWaveformF64_cfunc = None + self.niFgen_WriteNamedWaveformI16_cfunc = None + self.niFgen_WriteScript_cfunc = None + self.niFgen_WriteWaveform_cfunc = None + self.niFgen_close_cfunc = None + self.niFgen_error_message_cfunc = None + self.niFgen_reset_cfunc = None + self.niFgen_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niFgen_AbortGeneration(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_AbortGeneration_cfunc is None: + self.niFgen_AbortGeneration_cfunc = self._get_library_function('niFgen_AbortGeneration') + self.niFgen_AbortGeneration_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_AbortGeneration_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_AbortGeneration_cfunc(vi) + + def niFgen_AllocateNamedWaveform(self, vi, channel_name, waveform_name, waveform_size): # noqa: N802 + with self._func_lock: + if self.niFgen_AllocateNamedWaveform_cfunc is None: + self.niFgen_AllocateNamedWaveform_cfunc = self._get_library_function('niFgen_AllocateNamedWaveform') + self.niFgen_AllocateNamedWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niFgen_AllocateNamedWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_AllocateNamedWaveform_cfunc(vi, channel_name, waveform_name, waveform_size) + + def niFgen_AllocateWaveform(self, vi, channel_name, waveform_size, waveform_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_AllocateWaveform_cfunc is None: + self.niFgen_AllocateWaveform_cfunc = self._get_library_function('niFgen_AllocateWaveform') + self.niFgen_AllocateWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_AllocateWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_AllocateWaveform_cfunc(vi, channel_name, waveform_size, waveform_handle) + + def niFgen_ClearArbMemory(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_ClearArbMemory_cfunc is None: + self.niFgen_ClearArbMemory_cfunc = self._get_library_function('niFgen_ClearArbMemory') + self.niFgen_ClearArbMemory_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_ClearArbMemory_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ClearArbMemory_cfunc(vi) + + def niFgen_ClearArbSequence(self, vi, sequence_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_ClearArbSequence_cfunc is None: + self.niFgen_ClearArbSequence_cfunc = self._get_library_function('niFgen_ClearArbSequence') + self.niFgen_ClearArbSequence_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niFgen_ClearArbSequence_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ClearArbSequence_cfunc(vi, sequence_handle) + + def niFgen_ClearArbWaveform(self, vi, waveform_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_ClearArbWaveform_cfunc is None: + self.niFgen_ClearArbWaveform_cfunc = self._get_library_function('niFgen_ClearArbWaveform') + self.niFgen_ClearArbWaveform_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niFgen_ClearArbWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ClearArbWaveform_cfunc(vi, waveform_handle) + + def niFgen_ClearFreqList(self, vi, frequency_list_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_ClearFreqList_cfunc is None: + self.niFgen_ClearFreqList_cfunc = self._get_library_function('niFgen_ClearFreqList') + self.niFgen_ClearFreqList_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niFgen_ClearFreqList_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ClearFreqList_cfunc(vi, frequency_list_handle) + + def niFgen_ClearUserStandardWaveform(self, vi, channel_name): # noqa: N802 + with self._func_lock: + if self.niFgen_ClearUserStandardWaveform_cfunc is None: + self.niFgen_ClearUserStandardWaveform_cfunc = self._get_library_function('niFgen_ClearUserStandardWaveform') + self.niFgen_ClearUserStandardWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_ClearUserStandardWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ClearUserStandardWaveform_cfunc(vi, channel_name) + + def niFgen_Commit(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_Commit_cfunc is None: + self.niFgen_Commit_cfunc = self._get_library_function('niFgen_Commit') + self.niFgen_Commit_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_Commit_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_Commit_cfunc(vi) + + def niFgen_ConfigureArbSequence(self, vi, channel_name, sequence_handle, gain, offset): # noqa: N802 + with self._func_lock: + if self.niFgen_ConfigureArbSequence_cfunc is None: + self.niFgen_ConfigureArbSequence_cfunc = self._get_library_function('niFgen_ConfigureArbSequence') + self.niFgen_ConfigureArbSequence_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niFgen_ConfigureArbSequence_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ConfigureArbSequence_cfunc(vi, channel_name, sequence_handle, gain, offset) + + def niFgen_ConfigureArbWaveform(self, vi, channel_name, waveform_handle, gain, offset): # noqa: N802 + with self._func_lock: + if self.niFgen_ConfigureArbWaveform_cfunc is None: + self.niFgen_ConfigureArbWaveform_cfunc = self._get_library_function('niFgen_ConfigureArbWaveform') + self.niFgen_ConfigureArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niFgen_ConfigureArbWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ConfigureArbWaveform_cfunc(vi, channel_name, waveform_handle, gain, offset) + + def niFgen_ConfigureFreqList(self, vi, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 + with self._func_lock: + if self.niFgen_ConfigureFreqList_cfunc is None: + self.niFgen_ConfigureFreqList_cfunc = self._get_library_function('niFgen_ConfigureFreqList') + self.niFgen_ConfigureFreqList_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niFgen_ConfigureFreqList_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ConfigureFreqList_cfunc(vi, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase) + + def niFgen_ConfigureStandardWaveform(self, vi, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 + with self._func_lock: + if self.niFgen_ConfigureStandardWaveform_cfunc is None: + self.niFgen_ConfigureStandardWaveform_cfunc = self._get_library_function('niFgen_ConfigureStandardWaveform') + self.niFgen_ConfigureStandardWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niFgen_ConfigureStandardWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ConfigureStandardWaveform_cfunc(vi, channel_name, waveform, amplitude, dc_offset, frequency, start_phase) + + def niFgen_CreateAdvancedArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array, coerced_markers_array, sequence_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateAdvancedArbSequence_cfunc is None: + self.niFgen_CreateAdvancedArbSequence_cfunc = self._get_library_function('niFgen_CreateAdvancedArbSequence') + self.niFgen_CreateAdvancedArbSequence_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateAdvancedArbSequence_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateAdvancedArbSequence_cfunc(vi, sequence_length, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array, coerced_markers_array, sequence_handle) + + def niFgen_CreateArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sequence_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateArbSequence_cfunc is None: + self.niFgen_CreateArbSequence_cfunc = self._get_library_function('niFgen_CreateArbSequence') + self.niFgen_CreateArbSequence_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateArbSequence_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateArbSequence_cfunc(vi, sequence_length, waveform_handles_array, loop_counts_array, sequence_handle) + + def niFgen_CreateFreqList(self, vi, waveform, frequency_list_length, frequency_array, duration_array, frequency_list_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateFreqList_cfunc is None: + self.niFgen_CreateFreqList_cfunc = self._get_library_function('niFgen_CreateFreqList') + self.niFgen_CreateFreqList_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateFreqList_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateFreqList_cfunc(vi, waveform, frequency_list_length, frequency_array, duration_array, frequency_list_handle) + + def niFgen_CreateWaveformF64(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateWaveformF64_cfunc is None: + self.niFgen_CreateWaveformF64_cfunc = self._get_library_function('niFgen_CreateWaveformF64') + self.niFgen_CreateWaveformF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateWaveformF64_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateWaveformF64_cfunc(vi, channel_name, waveform_size, waveform_data_array, waveform_handle) + + def niFgen_CreateWaveformFromFileF64(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateWaveformFromFileF64_cfunc is None: + self.niFgen_CreateWaveformFromFileF64_cfunc = self._get_library_function('niFgen_CreateWaveformFromFileF64') + self.niFgen_CreateWaveformFromFileF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateWaveformFromFileF64_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateWaveformFromFileF64_cfunc(vi, channel_name, file_name, byte_order, waveform_handle) + + def niFgen_CreateWaveformFromFileI16(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateWaveformFromFileI16_cfunc is None: + self.niFgen_CreateWaveformFromFileI16_cfunc = self._get_library_function('niFgen_CreateWaveformFromFileI16') + self.niFgen_CreateWaveformFromFileI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateWaveformFromFileI16_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateWaveformFromFileI16_cfunc(vi, channel_name, file_name, byte_order, waveform_handle) + + def niFgen_CreateWaveformI16(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 + with self._func_lock: + if self.niFgen_CreateWaveformI16_cfunc is None: + self.niFgen_CreateWaveformI16_cfunc = self._get_library_function('niFgen_CreateWaveformI16') + self.niFgen_CreateWaveformI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt16), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_CreateWaveformI16_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_CreateWaveformI16_cfunc(vi, channel_name, waveform_size, waveform_data_array, waveform_handle) + + def niFgen_DefineUserStandardWaveform(self, vi, channel_name, waveform_size, waveform_data_array): # noqa: N802 + with self._func_lock: + if self.niFgen_DefineUserStandardWaveform_cfunc is None: + self.niFgen_DefineUserStandardWaveform_cfunc = self._get_library_function('niFgen_DefineUserStandardWaveform') + self.niFgen_DefineUserStandardWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_DefineUserStandardWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_DefineUserStandardWaveform_cfunc(vi, channel_name, waveform_size, waveform_data_array) + + def niFgen_DeleteNamedWaveform(self, vi, channel_name, waveform_name): # noqa: N802 + with self._func_lock: + if self.niFgen_DeleteNamedWaveform_cfunc is None: + self.niFgen_DeleteNamedWaveform_cfunc = self._get_library_function('niFgen_DeleteNamedWaveform') + self.niFgen_DeleteNamedWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_DeleteNamedWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_DeleteNamedWaveform_cfunc(vi, channel_name, waveform_name) + + def niFgen_DeleteScript(self, vi, channel_name, script_name): # noqa: N802 + with self._func_lock: + if self.niFgen_DeleteScript_cfunc is None: + self.niFgen_DeleteScript_cfunc = self._get_library_function('niFgen_DeleteScript') + self.niFgen_DeleteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_DeleteScript_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_DeleteScript_cfunc(vi, channel_name, script_name) + + def niFgen_Disable(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_Disable_cfunc is None: + self.niFgen_Disable_cfunc = self._get_library_function('niFgen_Disable') + self.niFgen_Disable_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_Disable_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_Disable_cfunc(vi) + + def niFgen_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + with self._func_lock: + if self.niFgen_ExportAttributeConfigurationBuffer_cfunc is None: + self.niFgen_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFgen_ExportAttributeConfigurationBuffer') + self.niFgen_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niFgen_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ExportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) + + def niFgen_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niFgen_ExportAttributeConfigurationFile_cfunc is None: + self.niFgen_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niFgen_ExportAttributeConfigurationFile') + self.niFgen_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ExportAttributeConfigurationFile_cfunc(vi, file_path) + + def niFgen_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_GetAttributeViBoolean_cfunc is None: + self.niFgen_GetAttributeViBoolean_cfunc = self._get_library_function('niFgen_GetAttributeViBoolean') + self.niFgen_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFgen_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_GetAttributeViInt32_cfunc is None: + self.niFgen_GetAttributeViInt32_cfunc = self._get_library_function('niFgen_GetAttributeViInt32') + self.niFgen_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_GetAttributeViReal64_cfunc is None: + self.niFgen_GetAttributeViReal64_cfunc = self._get_library_function('niFgen_GetAttributeViReal64') + self.niFgen_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_GetAttributeViString_cfunc is None: + self.niFgen_GetAttributeViString_cfunc = self._get_library_function('niFgen_GetAttributeViString') + self.niFgen_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetAttributeViString_cfunc(vi, channel_name, attribute_id, array_size, attribute_value) + + def niFgen_GetChannelName(self, vi, index, buffer_size, channel_string): # noqa: N802 + with self._func_lock: + if self.niFgen_GetChannelName_cfunc is None: + self.niFgen_GetChannelName_cfunc = self._get_library_function('niFgen_GetChannelName') + self.niFgen_GetChannelName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_GetChannelName_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetChannelName_cfunc(vi, index, buffer_size, channel_string) + + def niFgen_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + with self._func_lock: + if self.niFgen_GetError_cfunc is None: + self.niFgen_GetError_cfunc = self._get_library_function('niFgen_GetError') + self.niFgen_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) + + def niFgen_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niFgen_GetExtCalLastDateAndTime_cfunc is None: + self.niFgen_GetExtCalLastDateAndTime_cfunc = self._get_library_function('niFgen_GetExtCalLastDateAndTime') + self.niFgen_GetExtCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_GetExtCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetExtCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) + + def niFgen_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 + with self._func_lock: + if self.niFgen_GetExtCalLastTemp_cfunc is None: + self.niFgen_GetExtCalLastTemp_cfunc = self._get_library_function('niFgen_GetExtCalLastTemp') + self.niFgen_GetExtCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_GetExtCalLastTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetExtCalLastTemp_cfunc(vi, temperature) + + def niFgen_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + with self._func_lock: + if self.niFgen_GetExtCalRecommendedInterval_cfunc is None: + self.niFgen_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niFgen_GetExtCalRecommendedInterval') + self.niFgen_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetExtCalRecommendedInterval_cfunc(vi, months) + + def niFgen_GetHardwareState(self, vi, state): # noqa: N802 + with self._func_lock: + if self.niFgen_GetHardwareState_cfunc is None: + self.niFgen_GetHardwareState_cfunc = self._get_library_function('niFgen_GetHardwareState') + self.niFgen_GetHardwareState_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_GetHardwareState_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetHardwareState_cfunc(vi, state) + + def niFgen_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niFgen_GetSelfCalLastDateAndTime_cfunc is None: + self.niFgen_GetSelfCalLastDateAndTime_cfunc = self._get_library_function('niFgen_GetSelfCalLastDateAndTime') + self.niFgen_GetSelfCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_GetSelfCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetSelfCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) + + def niFgen_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 + with self._func_lock: + if self.niFgen_GetSelfCalLastTemp_cfunc is None: + self.niFgen_GetSelfCalLastTemp_cfunc = self._get_library_function('niFgen_GetSelfCalLastTemp') + self.niFgen_GetSelfCalLastTemp_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_GetSelfCalLastTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetSelfCalLastTemp_cfunc(vi, temperature) + + def niFgen_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 + with self._func_lock: + if self.niFgen_GetSelfCalSupported_cfunc is None: + self.niFgen_GetSelfCalSupported_cfunc = self._get_library_function('niFgen_GetSelfCalSupported') + self.niFgen_GetSelfCalSupported_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFgen_GetSelfCalSupported_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_GetSelfCalSupported_cfunc(vi, self_cal_supported) + + def niFgen_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + with self._func_lock: + if self.niFgen_ImportAttributeConfigurationBuffer_cfunc is None: + self.niFgen_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niFgen_ImportAttributeConfigurationBuffer') + self.niFgen_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niFgen_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ImportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) + + def niFgen_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niFgen_ImportAttributeConfigurationFile_cfunc is None: + self.niFgen_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niFgen_ImportAttributeConfigurationFile') + self.niFgen_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ImportAttributeConfigurationFile_cfunc(vi, file_path) + + def niFgen_InitializeWithChannels(self, resource_name, channel_name, reset_device, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_InitializeWithChannels_cfunc is None: + self.niFgen_InitializeWithChannels_cfunc = self._get_library_function('niFgen_InitializeWithChannels') + self.niFgen_InitializeWithChannels_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niFgen_InitializeWithChannels_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_InitializeWithChannels_cfunc(resource_name, channel_name, reset_device, option_string, vi) + + def niFgen_InitiateGeneration(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_InitiateGeneration_cfunc is None: + self.niFgen_InitiateGeneration_cfunc = self._get_library_function('niFgen_InitiateGeneration') + self.niFgen_InitiateGeneration_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_InitiateGeneration_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_InitiateGeneration_cfunc(vi) + + def niFgen_IsDone(self, vi, done): # noqa: N802 + with self._func_lock: + if self.niFgen_IsDone_cfunc is None: + self.niFgen_IsDone_cfunc = self._get_library_function('niFgen_IsDone') + self.niFgen_IsDone_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFgen_IsDone_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_IsDone_cfunc(vi, done) + + def niFgen_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niFgen_LockSession_cfunc is None: + self.niFgen_LockSession_cfunc = self._get_library_function('niFgen_LockSession') + self.niFgen_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFgen_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_LockSession_cfunc(vi, caller_has_lock) + + def niFgen_QueryArbSeqCapabilities(self, vi, maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count): # noqa: N802 + with self._func_lock: + if self.niFgen_QueryArbSeqCapabilities_cfunc is None: + self.niFgen_QueryArbSeqCapabilities_cfunc = self._get_library_function('niFgen_QueryArbSeqCapabilities') + self.niFgen_QueryArbSeqCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_QueryArbSeqCapabilities_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_QueryArbSeqCapabilities_cfunc(vi, maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count) + + def niFgen_QueryArbWfmCapabilities(self, vi, maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size): # noqa: N802 + with self._func_lock: + if self.niFgen_QueryArbWfmCapabilities_cfunc is None: + self.niFgen_QueryArbWfmCapabilities_cfunc = self._get_library_function('niFgen_QueryArbWfmCapabilities') + self.niFgen_QueryArbWfmCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niFgen_QueryArbWfmCapabilities_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_QueryArbWfmCapabilities_cfunc(vi, maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size) + + def niFgen_QueryFreqListCapabilities(self, vi, maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum): # noqa: N802 + with self._func_lock: + if self.niFgen_QueryFreqListCapabilities_cfunc is None: + self.niFgen_QueryFreqListCapabilities_cfunc = self._get_library_function('niFgen_QueryFreqListCapabilities') + self.niFgen_QueryFreqListCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_QueryFreqListCapabilities_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_QueryFreqListCapabilities_cfunc(vi, maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum) + + def niFgen_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 + with self._func_lock: + if self.niFgen_ReadCurrentTemperature_cfunc is None: + self.niFgen_ReadCurrentTemperature_cfunc = self._get_library_function('niFgen_ReadCurrentTemperature') + self.niFgen_ReadCurrentTemperature_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_ReadCurrentTemperature_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ReadCurrentTemperature_cfunc(vi, temperature) + + def niFgen_ResetDevice(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_ResetDevice_cfunc is None: + self.niFgen_ResetDevice_cfunc = self._get_library_function('niFgen_ResetDevice') + self.niFgen_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_ResetDevice_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ResetDevice_cfunc(vi) + + def niFgen_ResetWithDefaults(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_ResetWithDefaults_cfunc is None: + self.niFgen_ResetWithDefaults_cfunc = self._get_library_function('niFgen_ResetWithDefaults') + self.niFgen_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_ResetWithDefaults_cfunc(vi) + + def niFgen_SelfCal(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_SelfCal_cfunc is None: + self.niFgen_SelfCal_cfunc = self._get_library_function('niFgen_SelfCal') + self.niFgen_SelfCal_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_SelfCal_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SelfCal_cfunc(vi) + + def niFgen_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_id): # noqa: N802 + with self._func_lock: + if self.niFgen_SendSoftwareEdgeTrigger_cfunc is None: + self.niFgen_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niFgen_SendSoftwareEdgeTrigger') + self.niFgen_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_id) + + def niFgen_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_SetAttributeViBoolean_cfunc is None: + self.niFgen_SetAttributeViBoolean_cfunc = self._get_library_function('niFgen_SetAttributeViBoolean') + self.niFgen_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niFgen_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_SetAttributeViInt32_cfunc is None: + self.niFgen_SetAttributeViInt32_cfunc = self._get_library_function('niFgen_SetAttributeViInt32') + self.niFgen_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niFgen_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_SetAttributeViReal64_cfunc is None: + self.niFgen_SetAttributeViReal64_cfunc = self._get_library_function('niFgen_SetAttributeViReal64') + self.niFgen_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niFgen_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niFgen_SetAttributeViString_cfunc is None: + self.niFgen_SetAttributeViString_cfunc = self._get_library_function('niFgen_SetAttributeViString') + self.niFgen_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niFgen_SetNamedWaveformNextWritePosition(self, vi, channel_name, waveform_name, relative_to, offset): # noqa: N802 + with self._func_lock: + if self.niFgen_SetNamedWaveformNextWritePosition_cfunc is None: + self.niFgen_SetNamedWaveformNextWritePosition_cfunc = self._get_library_function('niFgen_SetNamedWaveformNextWritePosition') + self.niFgen_SetNamedWaveformNextWritePosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViInt32] # noqa: F405 + self.niFgen_SetNamedWaveformNextWritePosition_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetNamedWaveformNextWritePosition_cfunc(vi, channel_name, waveform_name, relative_to, offset) + + def niFgen_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niFgen_SetRuntimeEnvironment_cfunc is None: + self.niFgen_SetRuntimeEnvironment_cfunc = self._get_library_function('niFgen_SetRuntimeEnvironment') + self.niFgen_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niFgen_SetWaveformNextWritePosition(self, vi, channel_name, waveform_handle, relative_to, offset): # noqa: N802 + with self._func_lock: + if self.niFgen_SetWaveformNextWritePosition_cfunc is None: + self.niFgen_SetWaveformNextWritePosition_cfunc = self._get_library_function('niFgen_SetWaveformNextWritePosition') + self.niFgen_SetWaveformNextWritePosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ViInt32] # noqa: F405 + self.niFgen_SetWaveformNextWritePosition_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_SetWaveformNextWritePosition_cfunc(vi, channel_name, waveform_handle, relative_to, offset) + + def niFgen_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niFgen_UnlockSession_cfunc is None: + self.niFgen_UnlockSession_cfunc = self._get_library_function('niFgen_UnlockSession') + self.niFgen_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niFgen_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_UnlockSession_cfunc(vi, caller_has_lock) + + def niFgen_WaitUntilDone(self, vi, max_time): # noqa: N802 + with self._func_lock: + if self.niFgen_WaitUntilDone_cfunc is None: + self.niFgen_WaitUntilDone_cfunc = self._get_library_function('niFgen_WaitUntilDone') + self.niFgen_WaitUntilDone_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niFgen_WaitUntilDone_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_WaitUntilDone_cfunc(vi, max_time) + + def niFgen_WriteBinary16Waveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 + with self._func_lock: + if self.niFgen_WriteBinary16Waveform_cfunc is None: + self.niFgen_WriteBinary16Waveform_cfunc = self._get_library_function('niFgen_WriteBinary16Waveform') + self.niFgen_WriteBinary16Waveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViInt16)] # noqa: F405 + self.niFgen_WriteBinary16Waveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_WriteBinary16Waveform_cfunc(vi, channel_name, waveform_handle, size, data) + + def niFgen_WriteNamedWaveformF64(self, vi, channel_name, waveform_name, size, data): # noqa: N802 + with self._func_lock: + if self.niFgen_WriteNamedWaveformF64_cfunc is None: + self.niFgen_WriteNamedWaveformF64_cfunc = self._get_library_function('niFgen_WriteNamedWaveformF64') + self.niFgen_WriteNamedWaveformF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_WriteNamedWaveformF64_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_WriteNamedWaveformF64_cfunc(vi, channel_name, waveform_name, size, data) + + def niFgen_WriteNamedWaveformI16(self, vi, channel_name, waveform_name, size, data): # noqa: N802 + with self._func_lock: + if self.niFgen_WriteNamedWaveformI16_cfunc is None: + self.niFgen_WriteNamedWaveformI16_cfunc = self._get_library_function('niFgen_WriteNamedWaveformI16') + self.niFgen_WriteNamedWaveformI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt16)] # noqa: F405 + self.niFgen_WriteNamedWaveformI16_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_WriteNamedWaveformI16_cfunc(vi, channel_name, waveform_name, size, data) + + def niFgen_WriteScript(self, vi, channel_name, script): # noqa: N802 + with self._func_lock: + if self.niFgen_WriteScript_cfunc is None: + self.niFgen_WriteScript_cfunc = self._get_library_function('niFgen_WriteScript') + self.niFgen_WriteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_WriteScript_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_WriteScript_cfunc(vi, channel_name, script) + + def niFgen_WriteWaveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 + with self._func_lock: + if self.niFgen_WriteWaveform_cfunc is None: + self.niFgen_WriteWaveform_cfunc = self._get_library_function('niFgen_WriteWaveform') + self.niFgen_WriteWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niFgen_WriteWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_WriteWaveform_cfunc(vi, channel_name, waveform_handle, size, data) + + def niFgen_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_close_cfunc is None: + self.niFgen_close_cfunc = self._get_library_function('niFgen_close') + self.niFgen_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_close_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_close_cfunc(vi) + + def niFgen_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niFgen_error_message_cfunc is None: + self.niFgen_error_message_cfunc = self._get_library_function('niFgen_error_message') + self.niFgen_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_error_message_cfunc(vi, error_code, error_message) + + def niFgen_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niFgen_reset_cfunc is None: + self.niFgen_reset_cfunc = self._get_library_function('niFgen_reset') + self.niFgen_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niFgen_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_reset_cfunc(vi) + + def niFgen_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niFgen_self_test_cfunc is None: + self.niFgen_self_test_cfunc = self._get_library_function('niFgen_self_test') + self.niFgen_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niFgen_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niFgen_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nifgen/nifgen/_library_interpreter.py b/generated/nifgen/nifgen/_library_interpreter.py new file mode 100644 index 0000000000..5ff00c7150 --- /dev/null +++ b/generated/nifgen/nifgen/_library_interpreter.py @@ -0,0 +1,782 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import nifgen._library_singleton as _library_singleton +import nifgen._visatype as _visatype +import nifgen.enums as enums # noqa: F401 +import nifgen.errors as errors + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_AbortGeneration(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def allocate_named_waveform(self, channel_name, waveform_name, waveform_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + waveform_size_ctype = _visatype.ViInt32(waveform_size) # case S150 + error_code = self._library.niFgen_AllocateNamedWaveform(vi_ctype, channel_name_ctype, waveform_name_ctype, waveform_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def allocate_waveform(self, channel_name, waveform_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_size_ctype = _visatype.ViInt32(waveform_size) # case S150 + waveform_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_AllocateWaveform(vi_ctype, channel_name_ctype, waveform_size_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(waveform_handle_ctype.value) + + def clear_arb_memory(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_ClearArbMemory(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_arb_sequence(self, sequence_handle): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + sequence_handle_ctype = _visatype.ViInt32(sequence_handle) # case S150 + error_code = self._library.niFgen_ClearArbSequence(vi_ctype, sequence_handle_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_arb_waveform(self, waveform_handle): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 + error_code = self._library.niFgen_ClearArbWaveform(vi_ctype, waveform_handle_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_freq_list(self, frequency_list_handle): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + frequency_list_handle_ctype = _visatype.ViInt32(frequency_list_handle) # case S150 + error_code = self._library.niFgen_ClearFreqList(vi_ctype, frequency_list_handle_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_user_standard_waveform(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + error_code = self._library.niFgen_ClearUserStandardWaveform(vi_ctype, channel_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def commit(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_Commit(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_arb_sequence(self, channel_name, sequence_handle, gain, offset): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + sequence_handle_ctype = _visatype.ViInt32(sequence_handle) # case S150 + gain_ctype = _visatype.ViReal64(gain) # case S150 + offset_ctype = _visatype.ViReal64(offset) # case S150 + error_code = self._library.niFgen_ConfigureArbSequence(vi_ctype, channel_name_ctype, sequence_handle_ctype, gain_ctype, offset_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_arb_waveform(self, channel_name, waveform_handle, gain, offset): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 + gain_ctype = _visatype.ViReal64(gain) # case S150 + offset_ctype = _visatype.ViReal64(offset) # case S150 + error_code = self._library.niFgen_ConfigureArbWaveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, gain_ctype, offset_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_freq_list(self, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + frequency_list_handle_ctype = _visatype.ViInt32(frequency_list_handle) # case S150 + amplitude_ctype = _visatype.ViReal64(amplitude) # case S150 + dc_offset_ctype = _visatype.ViReal64(dc_offset) # case S150 + start_phase_ctype = _visatype.ViReal64(start_phase) # case S150 + error_code = self._library.niFgen_ConfigureFreqList(vi_ctype, channel_name_ctype, frequency_list_handle_ctype, amplitude_ctype, dc_offset_ctype, start_phase_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_standard_waveform(self, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_ctype = _visatype.ViInt32(waveform.value) # case S130 + amplitude_ctype = _visatype.ViReal64(amplitude) # case S150 + dc_offset_ctype = _visatype.ViReal64(dc_offset) # case S150 + frequency_ctype = _visatype.ViReal64(frequency) # case S150 + start_phase_ctype = _visatype.ViReal64(start_phase) # case S150 + error_code = self._library.niFgen_ConfigureStandardWaveform(vi_ctype, channel_name_ctype, waveform_ctype, amplitude_ctype, dc_offset_ctype, frequency_ctype, start_phase_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_advanced_arb_sequence(self, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + sequence_length_ctype = _visatype.ViInt32(0 if waveform_handles_array is None else len(waveform_handles_array)) # case S160 + waveform_handles_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_handles_array, library_type=_visatype.ViInt32) # case B550 + loop_counts_array_ctype = _get_ctypes_pointer_for_buffer(value=loop_counts_array, library_type=_visatype.ViInt32) # case B550 + sample_counts_array_ctype = _get_ctypes_pointer_for_buffer(value=sample_counts_array, library_type=_visatype.ViInt32) # case B550 + marker_location_array_ctype = _get_ctypes_pointer_for_buffer(value=marker_location_array, library_type=_visatype.ViInt32) # case B550 + coerced_markers_array_size = (0 if marker_location_array is None else len(marker_location_array)) # case B560 + coerced_markers_array_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=coerced_markers_array_size) # case B560 + sequence_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateAdvancedArbSequence(vi_ctype, sequence_length_ctype, waveform_handles_array_ctype, loop_counts_array_ctype, sample_counts_array_ctype, marker_location_array_ctype, coerced_markers_array_ctype, None if sequence_handle_ctype is None else (ctypes.pointer(sequence_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [int(coerced_markers_array_ctype[i]) for i in range((0 if marker_location_array is None else len(marker_location_array)))], int(sequence_handle_ctype.value) + + def create_arb_sequence(self, waveform_handles_array, loop_counts_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + sequence_length_ctype = _visatype.ViInt32(0 if waveform_handles_array is None else len(waveform_handles_array)) # case S160 + waveform_handles_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_handles_array, library_type=_visatype.ViInt32) # case B550 + loop_counts_array_ctype = _get_ctypes_pointer_for_buffer(value=loop_counts_array, library_type=_visatype.ViInt32) # case B550 + sequence_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateArbSequence(vi_ctype, sequence_length_ctype, waveform_handles_array_ctype, loop_counts_array_ctype, None if sequence_handle_ctype is None else (ctypes.pointer(sequence_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(sequence_handle_ctype.value) + + def create_freq_list(self, waveform, frequency_array, duration_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_ctype = _visatype.ViInt32(waveform.value) # case S130 + frequency_list_length_ctype = _visatype.ViInt32(0 if frequency_array is None else len(frequency_array)) # case S160 + frequency_array_ctype = _get_ctypes_pointer_for_buffer(value=frequency_array, library_type=_visatype.ViReal64) # case B550 + duration_array_ctype = _get_ctypes_pointer_for_buffer(value=duration_array, library_type=_visatype.ViReal64) # case B550 + frequency_list_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateFreqList(vi_ctype, waveform_ctype, frequency_list_length_ctype, frequency_array_ctype, duration_array_ctype, None if frequency_list_handle_ctype is None else (ctypes.pointer(frequency_list_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(frequency_list_handle_ctype.value) + + def create_waveform_f64(self, channel_name, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_array = _convert_to_array(value=waveform_data_array, array_type="d") # case B550 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array_array, library_type=_visatype.ViReal64) # case B550 + waveform_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateWaveformF64(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(waveform_handle_ctype.value) + + def create_waveform_f64_numpy(self, channel_name, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array) # case B510 + waveform_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateWaveformF64(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(waveform_handle_ctype.value) + + def create_waveform_from_file_f64(self, channel_name, file_name, byte_order): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + file_name_ctype = ctypes.create_string_buffer(file_name.encode(self._encoding)) # case C020 + byte_order_ctype = _visatype.ViInt32(byte_order.value) # case S130 + waveform_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateWaveformFromFileF64(vi_ctype, channel_name_ctype, file_name_ctype, byte_order_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(waveform_handle_ctype.value) + + def create_waveform_from_file_i16(self, channel_name, file_name, byte_order): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + file_name_ctype = ctypes.create_string_buffer(file_name.encode(self._encoding)) # case C020 + byte_order_ctype = _visatype.ViInt32(byte_order.value) # case S130 + waveform_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateWaveformFromFileI16(vi_ctype, channel_name_ctype, file_name_ctype, byte_order_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(waveform_handle_ctype.value) + + def create_waveform_i16_numpy(self, channel_name, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array) # case B510 + waveform_handle_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_CreateWaveformI16(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype, None if waveform_handle_ctype is None else (ctypes.pointer(waveform_handle_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(waveform_handle_ctype.value) + + def define_user_standard_waveform(self, channel_name, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_size_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niFgen_DefineUserStandardWaveform(vi_ctype, channel_name_ctype, waveform_size_ctype, waveform_data_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_named_waveform(self, channel_name, waveform_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_DeleteNamedWaveform(vi_ctype, channel_name_ctype, waveform_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_script(self, channel_name, script_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_DeleteScript(vi_ctype, channel_name_ctype, script_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_Disable(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def export_attribute_configuration_buffer(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_in_bytes_ctype = _visatype.ViInt32() # case S170 + configuration_ctype = None # case B580 + error_code = self._library.niFgen_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + size_in_bytes_ctype = _visatype.ViInt32(error_code) # case S180 + configuration_size = size_in_bytes_ctype.value # case B590 + configuration_array = array.array("b", [0]) * configuration_size # case B590 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niFgen_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return configuration_array + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niFgen_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(attribute_value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFgen_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(attribute_value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + array_size_ctype = _visatype.ViInt32() # case S170 + attribute_value_ctype = None # case C050 + error_code = self._library.niFgen_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + array_size_ctype = _visatype.ViInt32(error_code) # case S180 + attribute_value_ctype = (_visatype.ViChar * array_size_ctype.value)() # case C060 + error_code = self._library.niFgen_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return attribute_value_ctype.value.decode(self._encoding) + + def get_channel_name(self, index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + index_ctype = _visatype.ViInt32(index) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + channel_string_ctype = None # case C050 + error_code = self._library.niFgen_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + channel_string_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niFgen_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_string_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return channel_string_ctype.value.decode(self._encoding) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 + error_description_ctype = None # case C050 + error_code = self._library.niFgen_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 + error_code = self._library.niFgen_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) + + def get_ext_cal_last_date_and_time(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_GetExtCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_ext_cal_last_temp(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFgen_GetExtCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_ext_cal_recommended_interval(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + months_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(months_ctype.value) + + def get_hardware_state(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + state_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_GetHardwareState(vi_ctype, None if state_ctype is None else (ctypes.pointer(state_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return enums.HardwareState(state_ctype.value) + + def get_self_cal_last_date_and_time(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_GetSelfCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_self_cal_last_temp(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFgen_GetSelfCalLastTemp(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_self_cal_supported(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_cal_supported_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niFgen_GetSelfCalSupported(vi_ctype, None if self_cal_supported_ctype is None else (ctypes.pointer(self_cal_supported_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(self_cal_supported_ctype.value) + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_in_bytes_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niFgen_ImportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def initialize_with_channels(self, resource_name, channel_name, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C020 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niFgen_InitializeWithChannels(resource_name_ctype, channel_name_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initiate_generation(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_InitiateGeneration(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def is_done(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + done_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niFgen_IsDone(vi_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(done_ctype.value) + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def query_arb_seq_capabilities(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_number_of_sequences_ctype = _visatype.ViInt32() # case S220 + minimum_sequence_length_ctype = _visatype.ViInt32() # case S220 + maximum_sequence_length_ctype = _visatype.ViInt32() # case S220 + maximum_loop_count_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_QueryArbSeqCapabilities(vi_ctype, None if maximum_number_of_sequences_ctype is None else (ctypes.pointer(maximum_number_of_sequences_ctype)), None if minimum_sequence_length_ctype is None else (ctypes.pointer(minimum_sequence_length_ctype)), None if maximum_sequence_length_ctype is None else (ctypes.pointer(maximum_sequence_length_ctype)), None if maximum_loop_count_ctype is None else (ctypes.pointer(maximum_loop_count_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(maximum_number_of_sequences_ctype.value), int(minimum_sequence_length_ctype.value), int(maximum_sequence_length_ctype.value), int(maximum_loop_count_ctype.value) + + def query_arb_wfm_capabilities(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_number_of_waveforms_ctype = _visatype.ViInt32() # case S220 + waveform_quantum_ctype = _visatype.ViInt32() # case S220 + minimum_waveform_size_ctype = _visatype.ViInt32() # case S220 + maximum_waveform_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niFgen_QueryArbWfmCapabilities(vi_ctype, None if maximum_number_of_waveforms_ctype is None else (ctypes.pointer(maximum_number_of_waveforms_ctype)), None if waveform_quantum_ctype is None else (ctypes.pointer(waveform_quantum_ctype)), None if minimum_waveform_size_ctype is None else (ctypes.pointer(minimum_waveform_size_ctype)), None if maximum_waveform_size_ctype is None else (ctypes.pointer(maximum_waveform_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(maximum_number_of_waveforms_ctype.value), int(waveform_quantum_ctype.value), int(minimum_waveform_size_ctype.value), int(maximum_waveform_size_ctype.value) + + def query_freq_list_capabilities(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_number_of_freq_lists_ctype = _visatype.ViInt32() # case S220 + minimum_frequency_list_length_ctype = _visatype.ViInt32() # case S220 + maximum_frequency_list_length_ctype = _visatype.ViInt32() # case S220 + minimum_frequency_list_duration_ctype = _visatype.ViReal64() # case S220 + maximum_frequency_list_duration_ctype = _visatype.ViReal64() # case S220 + frequency_list_duration_quantum_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFgen_QueryFreqListCapabilities(vi_ctype, None if maximum_number_of_freq_lists_ctype is None else (ctypes.pointer(maximum_number_of_freq_lists_ctype)), None if minimum_frequency_list_length_ctype is None else (ctypes.pointer(minimum_frequency_list_length_ctype)), None if maximum_frequency_list_length_ctype is None else (ctypes.pointer(maximum_frequency_list_length_ctype)), None if minimum_frequency_list_duration_ctype is None else (ctypes.pointer(minimum_frequency_list_duration_ctype)), None if maximum_frequency_list_duration_ctype is None else (ctypes.pointer(maximum_frequency_list_duration_ctype)), None if frequency_list_duration_quantum_ctype is None else (ctypes.pointer(frequency_list_duration_quantum_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(maximum_number_of_freq_lists_ctype.value), int(minimum_frequency_list_length_ctype.value), int(maximum_frequency_list_length_ctype.value), float(minimum_frequency_list_duration_ctype.value), float(maximum_frequency_list_duration_ctype.value), float(frequency_list_duration_quantum_ctype.value) + + def read_current_temperature(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niFgen_ReadCurrentTemperature(vi_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def reset_device(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_ResetDevice(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_defaults(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_ResetWithDefaults(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_cal(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_SelfCal(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_edge_trigger(self, trigger, trigger_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 + trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_id_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 + error_code = self._library.niFgen_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 + error_code = self._library.niFgen_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 + error_code = self._library.niFgen_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_named_waveform_next_write_position(self, channel_name, waveform_name, relative_to, offset): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + relative_to_ctype = _visatype.ViInt32(relative_to.value) # case S130 + offset_ctype = _visatype.ViInt32(offset) # case S150 + error_code = self._library.niFgen_SetNamedWaveformNextWritePosition(vi_ctype, channel_name_ctype, waveform_name_ctype, relative_to_ctype, offset_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_waveform_next_write_position(self, channel_name, waveform_handle, relative_to, offset): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 + relative_to_ctype = _visatype.ViInt32(relative_to.value) # case S130 + offset_ctype = _visatype.ViInt32(offset) # case S150 + error_code = self._library.niFgen_SetWaveformNextWritePosition(vi_ctype, channel_name_ctype, waveform_handle_ctype, relative_to_ctype, offset_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_until_done(self, max_time): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + max_time_ctype = _visatype.ViInt32(max_time) # case S150 + error_code = self._library.niFgen_WaitUntilDone(vi_ctype, max_time_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_binary16_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 + size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 + data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 + error_code = self._library.niFgen_WriteBinary16Waveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, size_ctype, data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_named_waveform_f64(self, channel_name, waveform_name, data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 + data_array = _convert_to_array(value=data, array_type="d") # case B550 + data_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niFgen_WriteNamedWaveformF64(vi_ctype, channel_name_ctype, waveform_name_ctype, size_ctype, data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_named_waveform_f64_numpy(self, channel_name, waveform_name, data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 + data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 + error_code = self._library.niFgen_WriteNamedWaveformF64(vi_ctype, channel_name_ctype, waveform_name_ctype, size_ctype, data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_named_waveform_i16_numpy(self, channel_name, waveform_name, data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 + data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 + error_code = self._library.niFgen_WriteNamedWaveformI16(vi_ctype, channel_name_ctype, waveform_name_ctype, size_ctype, data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_script(self, channel_name, script): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + script_ctype = ctypes.create_string_buffer(script.encode(self._encoding)) # case C020 + error_code = self._library.niFgen_WriteScript(vi_ctype, channel_name_ctype, script_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_waveform(self, channel_name, waveform_handle, data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 + size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 + data_array = _convert_to_array(value=data, array_type="d") # case B550 + data_ctype = _get_ctypes_pointer_for_buffer(value=data_array, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niFgen_WriteWaveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, size_ctype, data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_waveform_numpy(self, channel_name, waveform_handle, data): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + waveform_handle_ctype = _visatype.ViInt32(waveform_handle) # case S150 + size_ctype = _visatype.ViInt32(0 if data is None else len(data)) # case S160 + data_ctype = _get_ctypes_pointer_for_buffer(value=data) # case B510 + error_code = self._library.niFgen_WriteWaveform(vi_ctype, channel_name_ctype, waveform_handle_ctype, size_ctype, data_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niFgen_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niFgen_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niFgen_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nifgen/nifgen/_library_singleton.py b/generated/nifgen/nifgen/_library_singleton.py new file mode 100644 index 0000000000..c93d34683e --- /dev/null +++ b/generated/nifgen/nifgen/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nifgen._library as _library +import nifgen.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nifgen', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niFgen_32.dll', 'type': 'windll'}, + '64bit': {'name': 'niFgen_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nifgen. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nifgen/nifgen/_visatype.py b/generated/nifgen/nifgen/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nifgen/nifgen/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nifgen/nifgen/enums.py b/generated/nifgen/nifgen/enums.py new file mode 100644 index 0000000000..8c5a22f7be --- /dev/null +++ b/generated/nifgen/nifgen/enums.py @@ -0,0 +1,390 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class AnalogPath(Enum): + MAIN = 0 + r''' + Specifies use of the main path. NI-FGEN chooses the amplifier based on the user-specified gain. + ''' + DIRECT = 1 + r''' + Specifies use of the direct path. + ''' + FIXED_LOW_GAIN = 2 + r''' + Specifies use of the low-gain amplifier in the main path, no matter what value the user specifies for gain. This setting limits the output range. + ''' + FIXED_HIGH_GAIN = 3 + r''' + Specifies use of the high-gain amplifier in the main path. + ''' + + +class BusType(Enum): + INVALID = 0 + r''' + Indicates an invalid bus type. + ''' + AT = 1 + r''' + Indicates the signal generator is the AT bus type. + ''' + PCI = 2 + r''' + Indicates the signal generator is the PCI bus type. + ''' + PXI = 3 + r''' + Indicates the signal generator is the PXI bus type. + ''' + VXI = 4 + r''' + Indicates the signal generator is the VXI bus type. + ''' + PCMCIA = 5 + r''' + Indicates the signal generator is the PCI-CMA bus type. + ''' + PXIE = 6 + r''' + Indicates the signal generator is the PXI Express bus type. + ''' + + +class ByteOrder(Enum): + LITTLE = 0 + BIG = 1 + + +class ClockMode(Enum): + HIGH_RESOLUTION = 0 + r''' + High resolution sampling—Sample rate is generated by a high–resolution clock source. + ''' + DIVIDE_DOWN = 1 + r''' + Divide down sampling—Sample rates are generated by dividing the source frequency. + ''' + AUTOMATIC = 2 + r''' + Automatic Selection—NI-FGEN selects between the divide–down and high–resolution clocking modes. + ''' + + +class DataMarkerEventLevelPolarity(Enum): + HIGH = 101 + r''' + When the operation is ready to start, the Ready for Start event level is high. + ''' + LOW = 102 + r''' + When the operation is ready to start, the Ready for Start event level is low. + ''' + + +class EventPulseWidthUnits(Enum): + SAMPLE_CLOCK_PERIODS = 101 + r''' + Specifies the pulse width in Sample clock periods. + ''' + SECONDS = 102 + r''' + Specifies the pulse width in seconds. + ''' + + +class HardwareState(Enum): + IDLE = 0 + WAITING_FOR_START_TRIGGER = 100 + RUNNING = 200 + DONE = 600 + HARDWARE_ERROR = 1000 + + +class IdleBehavior(Enum): + HOLD_LAST = 400 + r''' + While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. + ''' + JUMP_TO = 401 + r''' + While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. + ''' + + +class OutputMode(Enum): + FUNC = 0 + r''' + Standard Method mode— Generates standard method waveforms such as sine, square, triangle, and so on. + ''' + ARB = 1 + r''' + Arbitrary waveform mode—Generates waveforms from user-created/provided waveform arrays of numeric data. + ''' + SEQ = 2 + r''' + Arbitrary sequence mode — Generates downloaded waveforms in an order your specify. + ''' + FREQ_LIST = 101 + r''' + Frequency List mode—Generates a standard method using a list of frequencies you define. + ''' + SCRIPT = 102 + r''' + **Script mode—**\ Allows you to use scripting to link and loop multiple + waveforms in complex combinations. + ''' + + +class ReferenceClockSource(Enum): + CLOCK_IN = 'ClkIn' + r''' + Specifies that the CLK IN input signal from the front panel connector is + used as the Reference Clock source. + ''' + NONE = 'None' + r''' + Specifies that a Reference Clock is not used. + ''' + ONBOARD_REFERENCE_CLOCK = 'OnboardRefClk' + r''' + Specifies that the onboard Reference Clock is used as the Reference + Clock source. + ''' + PXI_CLOCK = 'PXI_Clk' + r''' + Specifies that the PXI Clock is used as the Reference Clock source. + ''' + RTSI_7 = 'RTSI7' + r''' + Specifies that the RTSI line 7 is used as the Reference Clock source. + ''' + + +class RelativeTo(Enum): + START = 0 + CURRENT = 1 + + +class SampleClockSource(Enum): + CLOCK_IN = 'ClkIn' + r''' + Specifies that the signal at the CLK IN front panel connector is used as + the Sample Clock source. + ''' + DDC_CLOCK_IN = 'DDC_ClkIn' + r''' + Specifies that the Sample Clock from the DDC connector is used as the Sample + Clock source. + ''' + ONBOARD_CLOCK = 'OnboardClock' + r''' + Specifies that the onboard clock is used as the Sample Clock source. + ''' + PXI_STAR_LINE = 'PXI_Star' + r''' + Specifies that the PXI\_STAR trigger line is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_0_RTSI_0 = 'PXI_Trig0' + r''' + Specifies that the PXI or RTSI line 0 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_1_RTSI_1 = 'PXI_Trig1' + r''' + Specifies that the PXI or RTSI line 1 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_2_RTSI_2 = 'PXI_Trig2' + r''' + Specifies that the PXI or RTSI line 2 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_3_RTSI_3 = 'PXI_Trig3' + r''' + Specifies that the PXI or RTSI line 3 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_4_RTSI_4 = 'PXI_Trig4' + r''' + Specifies that the PXI or RTSI line 4 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_5_RTSI_5 = 'PXI_Trig5' + r''' + Specifies that the PXI or RTSI line 5 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_6_RTSI_6 = 'PXI_Trig6' + r''' + Specifies that the PXI or RTSI line 6 is used as the Sample Clock + source. + ''' + PXI_TRIGGER_LINE_7_RTSI_7 = 'PXI_Trig7' + r''' + Specifies that the PXI or RTSI line 7 is used as the Sample Clock + source. + ''' + + +class SampleClockTimebaseSource(Enum): + CLOCK_IN = 'ClkIn' + r''' + Specifies that the external signal on the CLK IN front panel connector + is used as the source. + ''' + ONBOARD_CLOCK = 'OnboardClock' + r''' + Specifies that the onboard Sample Clock timebase is used as the source. + ''' + + +class ScriptTriggerDigitalEdgeEdge(Enum): + RISING = 101 + r''' + Rising Edge + ''' + FALLING = 102 + r''' + Falling Edge + ''' + + +class ScriptTriggerType(Enum): + TRIG_NONE = 101 + r''' + No trigger is configured. Signal generation starts immediately. + ''' + DIGITAL_EDGE = 102 + r''' + Trigger is asserted when a digital edge is detected. + ''' + DIGITAL_LEVEL = 103 + r''' + Trigger is asserted when a digital level is detected. + ''' + SOFTWARE_EDGE = 104 + r''' + Trigger is asserted when a software edge is detected. + ''' + + +class StartTriggerDigitalEdgeEdge(Enum): + RISING = 101 + r''' + Rising Edge + ''' + FALLING = 102 + r''' + Falling Edge + ''' + + +class StartTriggerType(Enum): + TRIG_NONE = 101 + r''' + None + ''' + DIGITAL_EDGE = 102 + r''' + Digital Edge + ''' + SOFTWARE_EDGE = 104 + r''' + Software Edge + ''' + P2P_ENDPOINT_FULLNESS = 106 + r''' + P2P Endpoint Fullness + ''' + + +class TerminalConfiguration(Enum): + SINGLE_ENDED = 300 + r''' + Single-ended operation + ''' + DIFFERENTIAL = 301 + r''' + Differential operation + ''' + + +class Trigger(Enum): + START = 1004 + SCRIPT = 103 + + +class TriggerMode(Enum): + SINGLE = 1 + r''' + Single Trigger Mode - The waveform you describe in the sequence list is generated only once by going through the entire staging list. Only one trigger is required to start the waveform generation. You can use Single trigger mode with the output mode in any mode. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. Then, the last stage generates repeatedly until you stop the waveform generation. + ''' + CONTINUOUS = 2 + r''' + Continuous Trigger Mode - The waveform you describe in the staging list generates infinitely by repeatedly cycling through the staging list. After a trigger is received, the waveform generation starts from the first stage and continues through to the last stage. After the last stage completes, the waveform generation loops back to the start of the first stage and continues until it is stopped. Only one trigger is required to start the waveform generation. + ''' + STEPPED = 3 + r''' + Stepped Trigger Mode - After a start trigger is received, the waveform described by the first stage generates. Then, the device waits for the next trigger signal. On the next trigger, the waveform described by the second stage generates, and so on. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. After any stage has generated completely, the first eight samples of the next stage are repeated continuously until the next trigger is received. + trigger mode. + + Note: In Frequency List mode, Stepped trigger mode is the same as Burst + ''' + BURST = 4 + r''' + Burst Trigger Mode - After a start trigger is received, the waveform described by the first stage generates until another trigger is received. At the next trigger, the buffer of the previous stage completes, and then the waveform described by the second stage generates. After the staging list completes, the waveform generation returns to the first stage and continues in a cyclic fashion. In Frequency List mode, the duration instruction is ignored, and the trigger switches the frequency to the next frequency in the list. + trigger mode. + + Note: In Frequency List mode, Stepped trigger mode is the same as Burst + ''' + + +class WaitBehavior(Enum): + HOLD_LAST = 400 + r''' + While in an Idle or Wait state, the output signal remains at the last voltage generated prior to entering the state. + ''' + JUMP_TO = 401 + r''' + While in an Idle or Wait state, the output signal remains at the value configured in the Idle or Wait value property. + ''' + + +class Waveform(Enum): + SINE = 1 + r''' + Sinusoid waveform + ''' + SQUARE = 2 + r''' + Square waveform + ''' + TRIANGLE = 3 + r''' + Triange waveform + ''' + RAMP_UP = 4 + r''' + Positive ramp waveform + ''' + RAMP_DOWN = 5 + r''' + Negative ramp waveform + ''' + DC = 6 + r''' + Constant voltage + ''' + NOISE = 101 + r''' + White noise + ''' + USER = 102 + r''' + User-defined waveform as defined by the define_user_standard_waveform method. + ''' diff --git a/generated/nifgen/nifgen/errors.py b/generated/nifgen/nifgen/errors.py new file mode 100644 index 0000000000..f799868c53 --- /dev/null +++ b/generated/nifgen/nifgen/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-FGEN''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-FGEN driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-FGEN driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-FGEN runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-FGEN driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-FGEN runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-FGEN driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-FGEN runtime returned an unexpected value. This can occur if it is too new for the nifgen Python module. Upgrade the nifgen Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nifgen.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nifgen/nifgen/grpc_session_options.py b/generated/nifgen/nifgen/grpc_session_options.py new file mode 100644 index 0000000000..2d8a715490 --- /dev/null +++ b/generated/nifgen/nifgen/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nifgen_grpc.NiFgen' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nifgen/nifgen/nidevice_pb2.py b/generated/nifgen/nifgen/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nifgen/nifgen/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nifgen/nifgen/nidevice_pb2_grpc.py b/generated/nifgen/nifgen/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nifgen/nifgen/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nifgen/nifgen/nifgen_pb2.py b/generated/nifgen/nifgen/nifgen_pb2.py new file mode 100644 index 0000000000..dd5c1fc656 --- /dev/null +++ b/generated/nifgen/nifgen/nifgen_pb2.py @@ -0,0 +1,592 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nifgen.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import nidevice_pb2 as nidevice__pb2 +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnifgen.proto\x12\x0bnifgen_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xde\x01\n\x1dInitializeWithChannelsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x14\n\x0c\x63hannel_name\x18\x03 \x01(\t\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x90\x01\n\x1eInitializeWithChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorHandlerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorHandlerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"@\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x63hannel_string\x18\x02 \x01(\t\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"=\n\x17GetHardwareStateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"h\n\x18GetHardwareStateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x05state\x18\x02 \x01(\x0e\x32\x1a.nifgen_grpc.HardwareState\x12\x11\n\tstate_raw\x18\x03 \x01(\x11\"L\n\x14WaitUntilDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08max_time\x18\x02 \x01(\x11\"\'\n\x15WaitUntilDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rIsDoneRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x0eIsDoneResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64one\x18\x02 \x01(\x08\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"q\n\x1d\x43onfigureOperationModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x16\n\x0eoperation_mode\x18\x03 \x01(\x11\"0\n\x1e\x43onfigureOperationModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9f\x01\n\x1a\x43onfigureOutputModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12.\n\x0boutput_mode\x18\x02 \x01(\x0e\x32\x17.nifgen_grpc.OutputModeH\x00\x12\x19\n\x0foutput_mode_raw\x18\x03 \x01(\x11H\x00\x42\x12\n\x10output_mode_enum\"-\n\x1b\x43onfigureOutputModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x87\x01\n\x1e\x43onfigureReferenceClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1e\n\x16reference_clock_source\x18\x02 \x01(\t\x12!\n\x19reference_clock_frequency\x18\x03 \x01(\x01\"1\n\x1f\x43onfigureReferenceClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"n\n\x1f\x43onfigureOutputImpedanceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\timpedance\x18\x03 \x01(\x01\"2\n ConfigureOutputImpedanceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x1d\x43onfigureOutputEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\"0\n\x1e\x43onfigureOutputEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x18\x43onfigureChannelsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannels\x18\x02 \x01(\t\"+\n\x19\x43onfigureChannelsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"?\n\x19InitiateGenerationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\",\n\x1aInitiateGenerationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"<\n\x16\x41\x62ortGenerationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\")\n\x17\x41\x62ortGenerationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfe\x01\n ConfigureStandardWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12)\n\x08waveform\x18\x03 \x01(\x0e\x32\x15.nifgen_grpc.WaveformH\x00\x12\x16\n\x0cwaveform_raw\x18\x04 \x01(\x11H\x00\x12\x11\n\tamplitude\x18\x05 \x01(\x01\x12\x11\n\tdc_offset\x18\x06 \x01(\x01\x12\x11\n\tfrequency\x18\x07 \x01(\x01\x12\x13\n\x0bstart_phase\x18\x08 \x01(\x01\x42\x0f\n\rwaveform_enum\"3\n!ConfigureStandardWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n!DefineUserStandardWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1b\n\x13waveform_data_array\x18\x03 \x03(\x01\"4\n\"DefineUserStandardWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n ClearUserStandardWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"3\n!ClearUserStandardWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n\x19\x43onfigureFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfrequency\x18\x03 \x01(\x01\",\n\x1a\x43onfigureFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n\x19\x43onfigureAmplitudeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tamplitude\x18\x03 \x01(\x01\",\n\x1a\x43onfigureAmplitudeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eQueryArbWfmCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xae\x01\n\x1fQueryArbWfmCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12#\n\x1bmaximum_number_of_waveforms\x18\x02 \x01(\x11\x12\x18\n\x10waveform_quantum\x18\x03 \x01(\x11\x12\x1d\n\x15minimum_waveform_size\x18\x04 \x01(\x11\x12\x1d\n\x15maximum_waveform_size\x18\x05 \x01(\x11\"q\n\x18\x43reateWaveformF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1b\n\x13waveform_data_array\x18\x03 \x03(\x01\"D\n\x19\x43reateWaveformF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"q\n\x18\x43reateWaveformI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1b\n\x13waveform_data_array\x18\x03 \x03(\x11\"D\n\x19\x43reateWaveformI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\x98\x01\n\x1f\x43reateWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12;\n\x13waveform_data_array\x18\x03 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\"K\n CreateWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\xca\x01\n CreateWaveformFromFileI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12,\n\nbyte_order\x18\x04 \x01(\x0e\x32\x16.nifgen_grpc.ByteOrderH\x00\x12\x18\n\x0e\x62yte_order_raw\x18\x05 \x01(\x11H\x00\x42\x11\n\x0f\x62yte_order_enum\"L\n!CreateWaveformFromFileI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\xca\x01\n CreateWaveformFromFileF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12,\n\nbyte_order\x18\x04 \x01(\x0e\x32\x16.nifgen_grpc.ByteOrderH\x00\x12\x18\n\x0e\x62yte_order_raw\x18\x05 \x01(\x11H\x00\x42\x11\n\x0f\x62yte_order_enum\"L\n!CreateWaveformFromFileF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"U\n\x1a\x43onfigureSampleRateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bsample_rate\x18\x02 \x01(\x01\"-\n\x1b\x43onfigureSampleRateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8e\x01\n\x1b\x43onfigureArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12\x0c\n\x04gain\x18\x04 \x01(\x01\x12\x0e\n\x06offset\x18\x05 \x01(\x01\".\n\x1c\x43onfigureArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x17\x43learArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x36\n\x0fwaveform_handle\x18\x02 \x01(\x0e\x32\x1b.nifgen_grpc.WaveformHandleH\x00\x12\x1d\n\x13waveform_handle_raw\x18\x03 \x01(\x11H\x00\x42\x16\n\x14waveform_handle_enum\"*\n\x18\x43learArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x86\x01\n\x1c\x41llocateNamedWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x15\n\rwaveform_size\x18\x04 \x01(\x11\"/\n\x1d\x41llocateNamedWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xea\x01\n(SetNamedWaveformNextWritePositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12.\n\x0brelative_to\x18\x04 \x01(\x0e\x32\x17.nifgen_grpc.RelativeToH\x00\x12\x19\n\x0frelative_to_raw\x18\x05 \x01(\x11H\x00\x12\x0e\n\x06offset\x18\x06 \x01(\x11\x42\x12\n\x10relative_to_enum\";\n)SetNamedWaveformNextWritePositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"}\n\x1cWriteNamedWaveformF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x01\"/\n\x1dWriteNamedWaveformF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"}\n\x1cWriteNamedWaveformI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x11\"/\n\x1dWriteNamedWaveformI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa4\x01\n#WriteNamedWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12,\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\"6\n$WriteNamedWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa1\x01\n#WriteNamedWaveformComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\x12)\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\"6\n$WriteNamedWaveformComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"m\n\x1a\x44\x65leteNamedWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_name\x18\x03 \x01(\t\"-\n\x1b\x44\x65leteNamedWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eQueryArbSeqCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xb4\x01\n\x1fQueryArbSeqCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12#\n\x1bmaximum_number_of_sequences\x18\x02 \x01(\x11\x12\x1f\n\x17minimum_sequence_length\x18\x03 \x01(\x11\x12\x1f\n\x17maximum_sequence_length\x18\x04 \x01(\x11\x12\x1a\n\x12maximum_loop_count\x18\x05 \x01(\x11\"y\n\x18\x43reateArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1e\n\x16waveform_handles_array\x18\x02 \x03(\x11\x12\x19\n\x11loop_counts_array\x18\x03 \x03(\x11\"D\n\x19\x43reateArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fsequence_handle\x18\x02 \x01(\x11\"\xbd\x01\n CreateAdvancedArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1e\n\x16waveform_handles_array\x18\x02 \x03(\x11\x12\x19\n\x11loop_counts_array\x18\x03 \x03(\x11\x12\x1b\n\x13sample_counts_array\x18\x04 \x03(\x11\x12\x1d\n\x15marker_location_array\x18\x05 \x03(\x11\"k\n!CreateAdvancedArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1d\n\x15\x63oerced_markers_array\x18\x02 \x03(\x11\x12\x17\n\x0fsequence_handle\x18\x03 \x01(\x11\"\x8e\x01\n\x1b\x43onfigureArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fsequence_handle\x18\x03 \x01(\x11\x12\x0c\n\x04gain\x18\x04 \x01(\x01\x12\x0e\n\x06offset\x18\x05 \x01(\x01\".\n\x1c\x43onfigureArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x17\x43learArbSequenceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x36\n\x0fsequence_handle\x18\x02 \x01(\x0e\x32\x1b.nifgen_grpc.SequenceHandleH\x00\x12\x1d\n\x13sequence_handle_raw\x18\x03 \x01(\x11H\x00\x42\x16\n\x14sequence_handle_enum\"*\n\x18\x43learArbSequenceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\";\n\x15\x43learArbMemoryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"(\n\x16\x43learArbMemoryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n QueryFreqListCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa2\x02\n!QueryFreqListCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12$\n\x1cmaximum_number_of_freq_lists\x18\x02 \x01(\x11\x12%\n\x1dminimum_frequency_list_length\x18\x03 \x01(\x11\x12%\n\x1dmaximum_frequency_list_length\x18\x04 \x01(\x11\x12\'\n\x1fminimum_frequency_list_duration\x18\x05 \x01(\x01\x12\'\n\x1fmaximum_frequency_list_duration\x18\x06 \x01(\x01\x12\'\n\x1f\x66requency_list_duration_quantum\x18\x07 \x01(\x01\"\xc0\x01\n\x15\x43reateFreqListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12)\n\x08waveform\x18\x02 \x01(\x0e\x32\x15.nifgen_grpc.WaveformH\x00\x12\x16\n\x0cwaveform_raw\x18\x03 \x01(\x11H\x00\x12\x17\n\x0f\x66requency_array\x18\x04 \x03(\x01\x12\x16\n\x0e\x64uration_array\x18\x05 \x03(\x01\x42\x0f\n\rwaveform_enum\"G\n\x16\x43reateFreqListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1d\n\x15\x66requency_list_handle\x18\x02 \x01(\x11\"\xae\x01\n\x18\x43onfigureFreqListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1d\n\x15\x66requency_list_handle\x18\x03 \x01(\x11\x12\x11\n\tamplitude\x18\x04 \x01(\x01\x12\x11\n\tdc_offset\x18\x05 \x01(\x01\x12\x13\n\x0bstart_phase\x18\x06 \x01(\x01\"+\n\x19\x43onfigureFreqListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc1\x01\n\x14\x43learFreqListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x42\n\x15\x66requency_list_handle\x18\x02 \x01(\x0e\x32!.nifgen_grpc.FrequencyListOptionsH\x00\x12#\n\x19\x66requency_list_handle_raw\x18\x03 \x01(\x11H\x00\x42\x1c\n\x1a\x66requency_list_handle_enum\"\'\n\x15\x43learFreqListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"^\n\x12WriteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x0e\n\x06script\x18\x03 \x01(\t\"%\n\x13WriteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n\x13\x44\x65leteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x13\n\x0bscript_name\x18\x03 \x01(\t\"&\n\x14\x44\x65leteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb9\x01\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06signal\x18\x02 \x01(\x0e\x32\x13.nifgen_grpc.SignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x17\n\x0foutput_terminal\x18\x05 \x01(\tB\r\n\x0bsignal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb5\x02\n\x15RouteSignalOutRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x39\n\x11route_signal_from\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.RouteSignalFromH\x00\x12\x1f\n\x15route_signal_from_raw\x18\x04 \x01(\x11H\x00\x12\x35\n\x0froute_signal_to\x18\x05 \x01(\x0e\x32\x1a.nifgen_grpc.RouteSignalToH\x01\x12\x1d\n\x13route_signal_to_raw\x18\x06 \x01(\x11H\x01\x42\x18\n\x16route_signal_from_enumB\x16\n\x14route_signal_to_enum\"(\n\x16RouteSignalOutResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa8\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\'\n\x07trigger\x18\x02 \x01(\x0e\x32\x14.nifgen_grpc.TriggerH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x12\n\ntrigger_id\x18\x04 \x01(\tB\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"k\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x0c\n\x04\x65\x64ge\x18\x03 \x01(\x11\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n/ConfigureP2PEndpointFullnessStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12#\n\x1bp2p_endpoint_fullness_level\x18\x02 \x01(\x11\"B\n0ConfigureP2PEndpointFullnessStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x80\x01\n(ConfigureDigitalEdgeScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x0c\n\x04\x65\x64ge\x18\x04 \x01(\x11\";\n)ConfigureDigitalEdgeScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd6\x01\n)ConfigureDigitalLevelScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\x12\x0e\n\x06source\x18\x03 \x01(\t\x12\x30\n\x0ctrigger_when\x18\x04 \x01(\x0e\x32\x18.nifgen_grpc.TriggerWhenH\x00\x12\x1a\n\x10trigger_when_raw\x18\x05 \x01(\x11H\x00\x42\x13\n\x11trigger_when_enum\"<\n*ConfigureDigitalLevelScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n)ConfigureSoftwareEdgeScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\"<\n*ConfigureSoftwareEdgeScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"U\n\x1b\x44isableScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\ntrigger_id\x18\x02 \x01(\t\".\n\x1c\x44isableScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9a\x01\n\x19\x43onfigureClockModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12,\n\nclock_mode\x18\x02 \x01(\x0e\x32\x16.nifgen_grpc.ClockModeH\x00\x12\x18\n\x0e\x63lock_mode_raw\x18\x03 \x01(\x11H\x00\x42\x11\n\x0f\x63lock_mode_enum\",\n\x1a\x43onfigureClockModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n%AdjustSampleClockRelativeDelayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x61\x64justment_time\x18\x02 \x01(\x01\"8\n&AdjustSampleClockRelativeDelayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"j\n\x17\x41llocateWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x15\n\rwaveform_size\x18\x03 \x01(\x11\"C\n\x18\x41llocateWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11\"\xe7\x01\n#SetWaveformNextWritePositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12.\n\x0brelative_to\x18\x04 \x01(\x0e\x32\x17.nifgen_grpc.RelativeToH\x00\x12\x19\n\x0frelative_to_raw\x18\x05 \x01(\x11H\x00\x12\x0e\n\x06offset\x18\x06 \x01(\x11\x42\x12\n\x10relative_to_enum\"6\n$SetWaveformNextWritePositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"w\n\x14WriteWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x01\"\'\n\x15WriteWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x7f\n\x1cWriteBinary16WaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12\x0c\n\x04\x64\x61ta\x18\x04 \x03(\x11\"/\n\x1dWriteBinary16WaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa1\x01\n\x1eWriteWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12,\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x17\n\x0fwaveform_handle\x18\x04 \x01(\x11\"1\n\x1fWriteWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa3\x01\n#WriteComplexBinary16WaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x17\n\x0fwaveform_handle\x18\x03 \x01(\x11\x12)\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\"6\n$WriteComplexBinary16WaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aGetSelfCalSupportedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"I\n\x1bGetSelfCalSupportedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12self_cal_supported\x18\x02 \x01(\x08\"F\n GetSelfCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"{\n!GetSelfCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"E\n\x1fGetExtCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"z\n GetExtCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"?\n\x19GetSelfCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x1aGetSelfCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\">\n\x18GetExtCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x19GetExtCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"C\n\x1dReadCurrentTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x1eReadCurrentTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"\x83\x01\n+ConfigureCustomFIRFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1a\n\x12\x63oefficients_array\x18\x03 \x03(\x01\">\n,ConfigureCustomFIRFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1fGetFIRFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"s\n GetFIRFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12\x63oefficients_array\x18\x02 \x03(\x01\x12#\n\x1bnumber_of_coefficients_read\x18\x03 \x01(\x11\"]\n\x1eGetStreamEndpointHandleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fstream_endpoint\x18\x02 \x01(\t\"H\n\x1fGetStreamEndpointHandleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rreader_handle\x18\x02 \x01(\r\"n\n\x1aWriteP2PEndpointI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rendpoint_name\x18\x02 \x01(\t\x12\x15\n\rendpoint_data\x18\x03 \x03(\x11\"-\n\x1bWriteP2PEndpointI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"{\n\x1f\x43onfigureSynchronizationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x1e\n\x16synchronization_source\x18\x03 \x01(\x11\"2\n ConfigureSynchronizationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1e\x45nableDigitalPatterningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"1\n\x1f\x45nableDigitalPatterningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1f\x44isableDigitalPatterningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"2\n DisableDigitalPatterningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1a\x45nableDigitalFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"-\n\x1b\x45nableDigitalFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1b\x44isableDigitalFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\".\n\x1c\x44isableDigitalFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n\x19\x45nableAnalogFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12#\n\x1b\x66ilter_correction_frequency\x18\x03 \x01(\x01\",\n\x1a\x45nableAnalogFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"V\n\x1a\x44isableAnalogFilterRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"-\n\x1b\x44isableAnalogFilterResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n!ConfigureSampleClockSourceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1b\n\x13sample_clock_source\x18\x02 \x01(\t\"4\n\"ConfigureSampleClockSourceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x01\n\x1b\x43onfigureTriggerModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x30\n\x0ctrigger_mode\x18\x03 \x01(\x0e\x32\x18.nifgen_grpc.TriggerModeH\x00\x12\x1a\n\x10trigger_mode_raw\x18\x04 \x01(\x11H\x00\x42\x13\n\x11trigger_mode_enum\".\n\x1c\x43onfigureTriggerModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"\xa7\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa9\x01\n\x1c\x43heckAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x03\"/\n\x1d\x43heckAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"F\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x03\"\x85\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x42\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32\'.nifgen_grpc.NiFgenInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x87\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x43\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32(.nifgen_grpc.NiFgenReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x94\x02\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\tH\x00\x12P\n\x16\x61ttribute_value_mapped\x18\x05 \x01(\x0e\x32..nifgen_grpc.NiFgenStringAttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa5\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbd\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x87\x02\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x42\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32\'.nifgen_grpc.NiFgenInt32AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x11H\x00\x42\x16\n\x14\x61ttribute_value_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x02\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x43\n\x0f\x61ttribute_value\x18\x04 \x01(\x0e\x32(.nifgen_grpc.NiFgenReal64AttributeValuesH\x00\x12\x1d\n\x13\x61ttribute_value_raw\x18\x05 \x01(\x01H\x00\x42\x16\n\x14\x61ttribute_value_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x96\x02\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\tH\x00\x12P\n\x16\x61ttribute_value_mapped\x18\x05 \x01(\x0e\x32..nifgen_grpc.NiFgenStringAttributeValuesMappedH\x00\x42\x16\n\x14\x61ttribute_value_enum\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbf\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x85\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nifgen_grpc.NiFgenAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1cManualEnableP2PStreamRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rendpoint_name\x18\x02 \x01(\t\"/\n\x1dManualEnableP2PStreamResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x01\n CreateWaveformFromFileHWSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_name\x18\x03 \x01(\t\x12\x1e\n\x16use_rate_from_waveform\x18\x04 \x01(\x08\x12)\n!use_gain_and_offset_from_waveform\x18\x05 \x01(\x08\"L\n!CreateWaveformFromFileHWSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_handle\x18\x02 \x01(\x11*\xa9S\n\x0fNiFgenAttribute\x12 \n\x1cNIFGEN_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\"\n\x1cNIFGEN_ATTRIBUTE_OUTPUT_MODE\x10\xd1\xa5L\x12%\n\x1fNIFGEN_ATTRIBUTE_OUTPUT_ENABLED\x10\xd3\xa5L\x12#\n\x1dNIFGEN_ATTRIBUTE_DIGITAL_GAIN\x10\xae\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_ANALOG_PATH\x10\x8e\x9a\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_LOAD_IMPEDANCE\x10\x8c\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_OUTPUT_IMPEDANCE\x10\xd4\xa5L\x12-\n\'NIFGEN_ATTRIBUTE_TERMINAL_CONFIGURATION\x10\x9d\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_COMMON_MODE_OFFSET\x10\x9e\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_CHANNEL_DELAY\x10\xa1\x9b\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_ABSOLUTE_DELAY\x10\xcd\x9b\x46\x12,\n&NIFGEN_ATTRIBUTE_ANALOG_FILTER_ENABLED\x10\x97\x99\x46\x12-\n\'NIFGEN_ATTRIBUTE_DIGITAL_FILTER_ENABLED\x10\x96\x99\x46\x12:\n4NIFGEN_ATTRIBUTE_DIGITAL_FILTER_INTERPOLATION_FACTOR\x10\x8a\x9a\x46\x12\x32\n,NIFGEN_ATTRIBUTE_FLATNESS_CORRECTION_ENABLED\x10\xf3\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_ANALOG_DATA_MASK\x10\x9a\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_ANALOG_STATIC_VALUE\x10\x9b\x9a\x46\x12(\n\"NIFGEN_ATTRIBUTE_DIGITAL_DATA_MASK\x10\x9c\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_DIGITAL_STATIC_VALUE\x10\x9d\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_DIGITAL_PATTERN_ENABLED\x10\x95\x99\x46\x12(\n\"NIFGEN_ATTRIBUTE_AUX_POWER_ENABLED\x10\xcb\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_IDLE_BEHAVIOR\x10\xa9\x9b\x46\x12!\n\x1bNIFGEN_ATTRIBUTE_IDLE_VALUE\x10\xaa\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_WAIT_BEHAVIOR\x10\xab\x9b\x46\x12!\n\x1bNIFGEN_ATTRIBUTE_WAIT_VALUE\x10\xac\x9b\x46\x12\x1f\n\x19NIFGEN_ATTRIBUTE_ARB_GAIN\x10\x9a\xa7L\x12!\n\x1bNIFGEN_ATTRIBUTE_ARB_OFFSET\x10\x9b\xa7L\x12\'\n!NIFGEN_ATTRIBUTE_WAVEFORM_QUANTUM\x10\x9e\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MAX_NUM_WAVEFORMS\x10\x9d\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MIN_WAVEFORM_SIZE\x10\x9f\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MAX_WAVEFORM_SIZE\x10\xa0\xa7L\x12*\n$NIFGEN_ATTRIBUTE_ARB_WAVEFORM_HANDLE\x10\x99\xa7L\x12*\n$NIFGEN_ATTRIBUTE_ARB_MARKER_POSITION\x10\xf7\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_ARB_REPEAT_COUNT\x10\xf8\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_ARB_SEQUENCE_HANDLE\x10\xa3\xa7L\x12(\n\"NIFGEN_ATTRIBUTE_MAX_NUM_SEQUENCES\x10\xa4\xa7L\x12*\n$NIFGEN_ATTRIBUTE_MIN_SEQUENCE_LENGTH\x10\xa5\xa7L\x12*\n$NIFGEN_ATTRIBUTE_MAX_SEQUENCE_LENGTH\x10\xa6\xa7L\x12%\n\x1fNIFGEN_ATTRIBUTE_MAX_LOOP_COUNT\x10\xa7\xa7L\x12)\n#NIFGEN_ATTRIBUTE_SCRIPT_TO_GENERATE\x10\xbe\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_FILE_TRANSFER_BLOCK_SIZE\x10\xa0\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\xa1\x9a\x46\x12\x36\n0NIFGEN_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\xa5\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_DIRECT_DMA_ENABLED\x10\xa4\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_DIRECT_DMA_WINDOW_SIZE\x10\xa5\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_DIRECT_DMA_WINDOW_ADDRESS\x10\xc2\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_STREAMING_WAVEFORM_NAME\x10\xf6\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_STREAMING_WAVEFORM_HANDLE\x10\xf4\x9a\x46\x12<\n6NIFGEN_ATTRIBUTE_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM\x10\xf5\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_STREAMING_WRITE_TIMEOUT\x10\xc9\x9b\x46\x12:\n4NIFGEN_ATTRIBUTE_DATA_TRANSFER_PREFERRED_PACKET_SIZE\x10\xa6\x9b\x46\x12<\n6NIFGEN_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_IN_FLIGHT_READS\x10\xa7\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_PCI_DMA_OPTIMIZATIONS_ENABLED\x10\x9a\x9b\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_OSP_ENABLED\x10\xa6\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_OSP_IQ_RATE\x10\xa8\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_OSP_DATA_PROCESSING_MODE\x10\xa7\x9a\x46\x12\x1f\n\x19NIFGEN_ATTRIBUTE_OSP_MODE\x10\xa2\x9b\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_FREQUENCY_SHIFT\x10\xa3\x9b\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CARRIER_ENABLED\x10\xa9\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_OSP_CARRIER_FREQUENCY\x10\xaa\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CARRIER_PHASE_I\x10\xab\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CARRIER_PHASE_Q\x10\xac\x9a\x46\x12<\n6NIFGEN_ATTRIBUTE_OSP_COMPENSATE_FOR_FILTER_GROUP_DELAY\x10\xb5\x9b\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_TYPE\x10\xad\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_ENABLED\x10\xaf\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_INTERPOLATION\x10\xb0\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_OSP_CIC_FILTER_ENABLED\x10\xb1\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_CIC_FILTER_INTERPOLATION\x10\xb2\x9a\x46\x12>\n8NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_ROOT_RAISED_COSINE_ALPHA\x10\xb3\x9a\x46\x12\x39\n3NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_RAISED_COSINE_ALPHA\x10\xb4\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_FLAT_PASSBAND\x10\xb5\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_OSP_FIR_FILTER_GAUSSIAN_BT\x10\xb6\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_CIC_FILTER_GAIN\x10\xb7\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_GAIN_I\x10\xb8\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_GAIN_Q\x10\xb9\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_OFFSET_I\x10\xba\x9a\x46\x12.\n(NIFGEN_ATTRIBUTE_OSP_PRE_FILTER_OFFSET_Q\x10\xbb\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_OSP_OVERFLOW_ERROR_REPORTING\x10\xbc\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_OSP_OVERFLOW_STATUS\x10\xbd\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_P2P_ENABLED\x10\xb7\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_P2P_DESTINATION_CHANNELS\x10\xb8\x9b\x46\x12(\n\"NIFGEN_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\xb9\x9b\x46\x12\x36\n0NIFGEN_ATTRIBUTE_P2P_SPACE_AVAILABLE_IN_ENDPOINT\x10\xba\x9b\x46\x12;\n5NIFGEN_ATTRIBUTE_P2P_MOST_SPACE_AVAILABLE_IN_ENDPOINT\x10\xbb\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_P2P_ENDPOINT_COUNT\x10\xbc\x9b\x46\x12<\n6NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INTERVAL\x10\xc0\x9b\x46\x12\x43\n=NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INITIAL_CREDITS\x10\xc8\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_P2P_MANUAL_CONFIGURATION_ENABLED\x10\xbd\x9b\x46\x12;\n5NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_ADDRESS\x10\xbe\x9b\x46\x12@\n:NIFGEN_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_ADDRESS_TYPE\x10\xbf\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_P2P_ENDPOINT_WINDOW_ADDRESS\x10\xc1\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_P2P_ENDPOINT_WINDOW_ADDRESS_TYPE\x10\xc2\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_P2P_ENDPOINT_WINDOW_SIZE\x10\xc3\x9b\x46\x12@\n:NIFGEN_ATTRIBUTE_P2P_ENDPOINT_FULLNESS_START_TRIGGER_LEVEL\x10\xca\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_P2P_DONE_NOTIFICATION_ADDRESS\x10\xc5\x9b\x46\x12\x39\n3NIFGEN_ATTRIBUTE_P2P_DONE_NOTIFICATION_ADDRESS_TYPE\x10\xc6\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_P2P_DONE_NOTIFICATION_VALUE\x10\xc7\x9b\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_FUNC_WAVEFORM\x10\xb5\xa6L\x12%\n\x1fNIFGEN_ATTRIBUTE_FUNC_AMPLITUDE\x10\xb6\xa6L\x12%\n\x1fNIFGEN_ATTRIBUTE_FUNC_DC_OFFSET\x10\xb7\xa6L\x12\'\n!NIFGEN_ATTRIBUTE_FUNC_START_PHASE\x10\xb9\xa6L\x12+\n%NIFGEN_ATTRIBUTE_FUNC_DUTY_CYCLE_HIGH\x10\xba\xa6L\x12+\n%NIFGEN_ATTRIBUTE_SYNC_DUTY_CYCLE_HIGH\x10\x99\x99\x46\x12/\n)NIFGEN_ATTRIBUTE_SYNC_OUT_OUTPUT_TERMINAL\x10\xfa\x9a\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_FUNC_FREQUENCY\x10\xb8\xa6L\x12\'\n!NIFGEN_ATTRIBUTE_FUNC_BUFFER_SIZE\x10\x9e\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_FUNC_MAX_BUFFER_SIZE\x10\x9f\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_FREQ_LIST_HANDLE\x10\x80\x9a\x46\x12)\n#NIFGEN_ATTRIBUTE_MAX_NUM_FREQ_LISTS\x10\x81\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_MIN_FREQ_LIST_LENGTH\x10\x82\x9a\x46\x12+\n%NIFGEN_ATTRIBUTE_MAX_FREQ_LIST_LENGTH\x10\x83\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_MIN_FREQ_LIST_DURATION\x10\x84\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_MAX_FREQ_LIST_DURATION\x10\x85\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_FREQ_LIST_DURATION_QUANTUM\x10\x86\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_REFERENCE_CLOCK_SOURCE\x10\xa1\x99\x46\x12*\n$NIFGEN_ATTRIBUTE_REF_CLOCK_FREQUENCY\x10\x9b\x99\x46\x12?\n9NIFGEN_ATTRIBUTE_EXPORTED_REFERENCE_CLOCK_OUTPUT_TERMINAL\x10\xf1\x9a\x46\x12G\nANIFGEN_ATTRIBUTE_EXPORTED_ONBOARD_REFERENCE_CLOCK_OUTPUT_TERMINAL\x10\xf2\x9a\x46\x12&\n NIFGEN_ATTRIBUTE_ARB_SAMPLE_RATE\x10\x9c\xa7L\x12!\n\x1bNIFGEN_ATTRIBUTE_CLOCK_MODE\x10\x9e\x99\x46\x12*\n$NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_SOURCE\x10\xa0\x99\x46\x12<\n6NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL\x10\xf0\x9a\x46\x12\x34\n.NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_DIVISOR\x10\x8b\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_TIMEBASE_SOURCE\x10\x9f\x9b\x46\x12\x31\n+NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_TIMEBASE_RATE\x10\xa0\x9b\x46\x12\x45\n?NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_TIMEBASE_OUTPUT_TERMINAL\x10\xf9\x9a\x46\x12=\n7NIFGEN_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_TIMEBASE_DIVISOR\x10\x96\x9a\x46\x12\x37\n1NIFGEN_ATTRIBUTE_EXTERNAL_SAMPLE_CLOCK_MULTIPLIER\x10\xa8\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_SAMPLE_CLOCK_ABSOLUTE_DELAY\x10\x97\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_OSCILLATOR_PHASE_DAC_VALUE\x10\x98\x9a\x46\x12\x38\n2NIFGEN_ATTRIBUTE_EXTERNAL_CLOCK_DELAY_BINARY_VALUE\x10\x99\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_MARKER_EVENT_OUTPUT_TERMINAL\x10\xe8\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_MARKER_EVENT_OUTPUT_BEHAVIOR\x10\x86\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_MARKER_EVENT_PULSE_POLARITY\x10\xe9\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH\x10\x84\x9b\x46\x12\x35\n/NIFGEN_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH_UNITS\x10\x85\x9b\x46\x12\x38\n2NIFGEN_ATTRIBUTE_MARKER_EVENT_TOGGLE_INITIAL_STATE\x10\x87\x9b\x46\x12)\n#NIFGEN_ATTRIBUTE_MARKER_EVENT_DELAY\x10\x92\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_MARKER_EVENT_DELAY_UNITS\x10\x93\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_ALL_MARKER_EVENTS_LIVE_STATUS\x10\x88\x9b\x46\x12/\n)NIFGEN_ATTRIBUTE_MARKER_EVENT_LIVE_STATUS\x10\x89\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_ALL_MARKER_EVENTS_LATCHED_STATUS\x10\x8d\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_MARKER_EVENT_LATCHED_STATUS\x10\x8e\x9b\x46\x12\x38\n2NIFGEN_ATTRIBUTE_DATA_MARKER_EVENT_DATA_BIT_NUMBER\x10\x81\x9b\x46\x12\x37\n1NIFGEN_ATTRIBUTE_DATA_MARKER_EVENT_LEVEL_POLARITY\x10\x82\x9b\x46\x12\x38\n2NIFGEN_ATTRIBUTE_DATA_MARKER_EVENT_OUTPUT_TERMINAL\x10\x83\x9b\x46\x12<\n6NIFGEN_ATTRIBUTE_READY_FOR_START_EVENT_OUTPUT_TERMINAL\x10\xe6\x9a\x46\x12?\n9NIFGEN_ATTRIBUTE_READY_FOR_START_EVENT_LEVEL_ACTIVE_LEVEL\x10\xe7\x9a\x46\x12\x38\n2NIFGEN_ATTRIBUTE_READY_FOR_START_EVENT_LIVE_STATUS\x10\x8c\x9b\x46\x12\x34\n.NIFGEN_ATTRIBUTE_STARTED_EVENT_OUTPUT_TERMINAL\x10\xea\x9a\x46\x12\x34\n.NIFGEN_ATTRIBUTE_STARTED_EVENT_OUTPUT_BEHAVIOR\x10\xfb\x9a\x46\x12\x37\n1NIFGEN_ATTRIBUTE_STARTED_EVENT_LEVEL_ACTIVE_LEVEL\x10\xec\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_STARTED_EVENT_PULSE_POLARITY\x10\xee\x9a\x46\x12\x36\n0NIFGEN_ATTRIBUTE_STARTED_EVENT_PULSE_WIDTH_UNITS\x10\xfd\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_STARTED_EVENT_PULSE_WIDTH\x10\xff\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_STARTED_EVENT_DELAY\x10\x94\x9b\x46\x12\x30\n*NIFGEN_ATTRIBUTE_STARTED_EVENT_DELAY_UNITS\x10\x95\x9b\x46\x12\x33\n-NIFGEN_ATTRIBUTE_STARTED_EVENT_LATCHED_STATUS\x10\x90\x9b\x46\x12\x31\n+NIFGEN_ATTRIBUTE_DONE_EVENT_OUTPUT_TERMINAL\x10\xeb\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_DONE_EVENT_OUTPUT_BEHAVIOR\x10\xfc\x9a\x46\x12\x34\n.NIFGEN_ATTRIBUTE_DONE_EVENT_LEVEL_ACTIVE_LEVEL\x10\xed\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_DONE_EVENT_PULSE_POLARITY\x10\xef\x9a\x46\x12\x33\n-NIFGEN_ATTRIBUTE_DONE_EVENT_PULSE_WIDTH_UNITS\x10\xfe\x9a\x46\x12-\n\'NIFGEN_ATTRIBUTE_DONE_EVENT_PULSE_WIDTH\x10\x80\x9b\x46\x12\'\n!NIFGEN_ATTRIBUTE_DONE_EVENT_DELAY\x10\x96\x9b\x46\x12-\n\'NIFGEN_ATTRIBUTE_DONE_EVENT_DELAY_UNITS\x10\x97\x9b\x46\x12\x30\n*NIFGEN_ATTRIBUTE_DONE_EVENT_LATCHED_STATUS\x10\x8f\x9b\x46\x12#\n\x1dNIFGEN_ATTRIBUTE_TRIGGER_MODE\x10\x9c\x99\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_BURST_COUNT\x10\xae\xa8L\x12)\n#NIFGEN_ATTRIBUTE_START_TRIGGER_TYPE\x10\xc8\x9a\x46\x12\x38\n2NIFGEN_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_SOURCE\x10\xc9\x9a\x46\x12\x36\n0NIFGEN_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_EDGE\x10\xca\x9a\x46\x12=\n7NIFGEN_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xcb\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_SCRIPT_TRIGGER_TYPE\x10\xd2\x9a\x46\x12\x39\n3NIFGEN_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE\x10\xd3\x9a\x46\x12\x37\n1NIFGEN_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE\x10\xd4\x9a\x46\x12:\n4NIFGEN_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE\x10\xd5\x9a\x46\x12@\n:NIFGEN_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL\x10\xd6\x9a\x46\x12>\n8NIFGEN_ATTRIBUTE_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL\x10\xd7\x9a\x46\x12\x1f\n\x19NIFGEN_ATTRIBUTE_BUS_TYPE\x10\x87\x9a\x46\x12\"\n\x1cNIFGEN_ATTRIBUTE_MEMORY_SIZE\x10\xa2\x9a\x46\x12$\n\x1eNIFGEN_ATTRIBUTE_SERIAL_NUMBER\x10\xa3\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_MARKER_EVENTS_COUNT\x10\xbf\x9a\x46\x12/\n)NIFGEN_ATTRIBUTE_DATA_MARKER_EVENTS_COUNT\x10\xc1\x9a\x46\x12,\n&NIFGEN_ATTRIBUTE_SCRIPT_TRIGGERS_COUNT\x10\xc0\x9a\x46\x12*\n$NIFGEN_ATTRIBUTE_VIDEO_WAVEFORM_TYPE\x10\x88\x9a\x46\x12(\n\"NIFGEN_ATTRIBUTE_FPGA_BITFILE_PATH\x10\xcc\x9b\x46\x12\x32\n,NIFGEN_ATTRIBUTE_FILTER_CORRECTION_FREQUENCY\x10\x98\x99\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_TRIGGER_SOURCE\x10\xfe\xa7L\x12&\n NIFGEN_ATTRIBUTE_SYNCHRONIZATION\x10\x9f\x99\x46\x12(\n\"NIFGEN_ATTRIBUTE_ID_QUERY_RESPONSE\x10\xb1\x98\x46\x12%\n\x1fNIFGEN_ATTRIBUTE_GAIN_DAC_VALUE\x10\x8f\x9a\x46\x12\'\n!NIFGEN_ATTRIBUTE_OFFSET_DAC_VALUE\x10\x90\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_OSCILLATOR_FREQ_DAC_VALUE\x10\x91\x9a\x46\x12\x30\n*NIFGEN_ATTRIBUTE_PRE_AMPLIFIER_ATTENUATION\x10\x94\x9a\x46\x12\x31\n+NIFGEN_ATTRIBUTE_POST_AMPLIFIER_ATTENUATION\x10\x95\x9a\x46\x12\x1c\n\x16NIFGEN_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\"\n\x1cNIFGEN_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12.\n(NIFGEN_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\'\n!NIFGEN_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12\x1f\n\x19NIFGEN_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12(\n\"NIFGEN_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\x32\n,NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12-\n\'NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12-\n\'NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12/\n)NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12?\n9NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12?\n9NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x32\n,NIFGEN_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12)\n#NIFGEN_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12$\n\x1eNIFGEN_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12.\n(NIFGEN_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\'\n!NIFGEN_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x33\n-NIFGEN_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12&\n NIFGEN_ATTRIBUTE_MODULE_REVISION\x10\xb6\x9b\x46\x12-\n\'NIFGEN_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12#\n\x1dNIFGEN_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12#\n\x1dNIFGEN_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12\x34\n.NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_MAJOR_VERSION\x10\x87\x8f@\x12\x34\n.NIFGEN_ATTRIBUTE_SPECIFIC_DRIVER_MINOR_VERSION\x10\x88\x8f@\x12*\n$NIFGEN_ATTRIBUTE_UPDATE_CLOCK_SOURCE\x10\x9a\x99\x46*\xd9\x01\n\nOutputMode\x12&\n\"OUTPUT_MODE_NIFGEN_VAL_OUTPUT_FUNC\x10\x00\x12%\n!OUTPUT_MODE_NIFGEN_VAL_OUTPUT_ARB\x10\x01\x12%\n!OUTPUT_MODE_NIFGEN_VAL_OUTPUT_SEQ\x10\x02\x12+\n\'OUTPUT_MODE_NIFGEN_VAL_OUTPUT_FREQ_LIST\x10\x65\x12(\n$OUTPUT_MODE_NIFGEN_VAL_OUTPUT_SCRIPT\x10\x66*\xc1\x02\n\x08Waveform\x12\x18\n\x14WAVEFORM_UNSPECIFIED\x10\x00\x12 \n\x1cWAVEFORM_NIFGEN_VAL_WFM_SINE\x10\x01\x12\"\n\x1eWAVEFORM_NIFGEN_VAL_WFM_SQUARE\x10\x02\x12$\n WAVEFORM_NIFGEN_VAL_WFM_TRIANGLE\x10\x03\x12#\n\x1fWAVEFORM_NIFGEN_VAL_WFM_RAMP_UP\x10\x04\x12%\n!WAVEFORM_NIFGEN_VAL_WFM_RAMP_DOWN\x10\x05\x12\x1e\n\x1aWAVEFORM_NIFGEN_VAL_WFM_DC\x10\x06\x12!\n\x1dWAVEFORM_NIFGEN_VAL_WFM_NOISE\x10\x65\x12 \n\x1cWAVEFORM_NIFGEN_VAL_WFM_USER\x10\x66*\xa0\x04\n\x06Signal\x12\x16\n\x12SIGNAL_UNSPECIFIED\x10\x00\x12.\n)SIGNAL_NIFGEN_VAL_ONBOARD_REFERENCE_CLOCK\x10\xfb\x07\x12\x1f\n\x1aSIGNAL_NIFGEN_VAL_SYNC_OUT\x10\xea\x07\x12$\n\x1fSIGNAL_NIFGEN_VAL_START_TRIGGER\x10\xec\x07\x12#\n\x1eSIGNAL_NIFGEN_VAL_MARKER_EVENT\x10\xe9\x07\x12,\n\'SIGNAL_NIFGEN_VAL_SAMPLE_CLOCK_TIMEBASE\x10\xee\x07\x12&\n!SIGNAL_NIFGEN_VAL_SYNCHRONIZATION\x10\xef\x07\x12\"\n\x1eSIGNAL_NIFGEN_VAL_SAMPLE_CLOCK\x10\x65\x12%\n!SIGNAL_NIFGEN_VAL_REFERENCE_CLOCK\x10\x66\x12$\n SIGNAL_NIFGEN_VAL_SCRIPT_TRIGGER\x10g\x12+\n\'SIGNAL_NIFGEN_VAL_READY_FOR_START_EVENT\x10i\x12#\n\x1fSIGNAL_NIFGEN_VAL_STARTED_EVENT\x10j\x12 \n\x1cSIGNAL_NIFGEN_VAL_DONE_EVENT\x10k\x12\'\n#SIGNAL_NIFGEN_VAL_DATA_MARKER_EVENT\x10l*\xbf\x01\n\x0bTriggerMode\x12\x1c\n\x18TRIGGER_MODE_UNSPECIFIED\x10\x00\x12\"\n\x1eTRIGGER_MODE_NIFGEN_VAL_SINGLE\x10\x01\x12&\n\"TRIGGER_MODE_NIFGEN_VAL_CONTINUOUS\x10\x02\x12#\n\x1fTRIGGER_MODE_NIFGEN_VAL_STEPPED\x10\x03\x12!\n\x1dTRIGGER_MODE_NIFGEN_VAL_BURST\x10\x04*\x82\x01\n\tClockMode\x12)\n%CLOCK_MODE_NIFGEN_VAL_HIGH_RESOLUTION\x10\x00\x12%\n!CLOCK_MODE_NIFGEN_VAL_DIVIDE_DOWN\x10\x01\x12#\n\x1f\x43LOCK_MODE_NIFGEN_VAL_AUTOMATIC\x10\x02*v\n\nRelativeTo\x12\x32\n.RELATIVE_TO_NIFGEN_VAL_WAVEFORM_POSITION_START\x10\x00\x12\x34\n0RELATIVE_TO_NIFGEN_VAL_WAVEFORM_POSITION_CURRENT\x10\x01*\xe8\x01\n\rHardwareState\x12\"\n\x1eHARDWARE_STATE_NIFGEN_VAL_IDLE\x10\x00\x12\x37\n3HARDWARE_STATE_NIFGEN_VAL_WAITING_FOR_START_TRIGGER\x10\x64\x12&\n!HARDWARE_STATE_NIFGEN_VAL_RUNNING\x10\xc8\x01\x12#\n\x1eHARDWARE_STATE_NIFGEN_VAL_DONE\x10\xd8\x04\x12-\n(HARDWARE_STATE_NIFGEN_VAL_HARDWARE_ERROR\x10\xe8\x07*Z\n\tByteOrder\x12\'\n#BYTE_ORDER_NIFGEN_VAL_LITTLE_ENDIAN\x10\x00\x12$\n BYTE_ORDER_NIFGEN_VAL_BIG_ENDIAN\x10\x01*|\n\x0bTriggerWhen\x12\x1c\n\x18TRIGGER_WHEN_UNSPECIFIED\x10\x00\x12\'\n#TRIGGER_WHEN_NIFGEN_VAL_ACTIVE_HIGH\x10\x65\x12&\n\"TRIGGER_WHEN_NIFGEN_VAL_ACTIVE_LOW\x10\x66*p\n\x07Trigger\x12\x17\n\x13TRIGGER_UNSPECIFIED\x10\x00\x12%\n TRIGGER_NIFGEN_VAL_START_TRIGGER\x10\xec\x07\x12%\n!TRIGGER_NIFGEN_VAL_SCRIPT_TRIGGER\x10g*y\n\x14\x46requencyListOptions\x12&\n\"FREQUENCY_LIST_OPTIONS_UNSPECIFIED\x10\x00\x12\x39\n,FREQUENCY_LIST_OPTIONS_NIFGEN_VAL_ALL_FLISTS\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\x89\x07\n\x0fRouteSignalFrom\x12!\n\x1dROUTE_SIGNAL_FROM_UNSPECIFIED\x10\x00\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_MARKER\x10\xe9\x07\x12*\n%ROUTE_SIGNAL_FROM_NIFGEN_VAL_SYNC_OUT\x10\xea\x07\x12\x33\n.ROUTE_SIGNAL_FROM_NIFGEN_VAL_OUT_START_TRIGGER\x10\xec\x07\x12-\n(ROUTE_SIGNAL_FROM_NIFGEN_VAL_BOARD_CLOCK\x10\xee\x07\x12\x31\n,ROUTE_SIGNAL_FROM_NIFGEN_VAL_SYNCHRONIZATION\x10\xef\x07\x12.\n*ROUTE_SIGNAL_FROM_NIFGEN_VAL_SOFTWARE_TRIG\x10\x02\x12)\n$ROUTE_SIGNAL_FROM_NIFGEN_VAL_REF_OUT\x10\xf0\x07\x12+\n&ROUTE_SIGNAL_FROM_NIFGEN_VAL_CLOCK_OUT\x10\xf1\x07\x12*\n%ROUTE_SIGNAL_FROM_NIFGEN_VAL_PXI_STAR\x10\x83\x01\x12\'\n\"ROUTE_SIGNAL_FROM_NIFGEN_VAL_PFI_0\x10\xf3\x07\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_0\x10\x8d\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_1\x10\x8e\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_2\x10\x8f\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_3\x10\x90\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_4\x10\x91\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_5\x10\x92\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_6\x10\x93\x01\x12(\n#ROUTE_SIGNAL_FROM_NIFGEN_VAL_RTSI_7\x10\xf2\x07\x12\x39\n4ROUTE_SIGNAL_FROM_NIFGEN_VAL_ONBOARD_REFERENCE_CLOCK\x10\xfb\x07*\x91\x04\n\rRouteSignalTo\x12\x1f\n\x1bROUTE_SIGNAL_TO_UNSPECIFIED\x10\x00\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_0\x10\x8d\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_1\x10\x8e\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_2\x10\x8f\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_3\x10\x90\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_4\x10\x91\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_5\x10\x92\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_6\x10\x93\x01\x12&\n!ROUTE_SIGNAL_TO_NIFGEN_VAL_RTSI_7\x10\xf2\x07\x12\'\n\"ROUTE_SIGNAL_TO_NIFGEN_VAL_REF_OUT\x10\xf0\x07\x12%\n ROUTE_SIGNAL_TO_NIFGEN_VAL_PFI_0\x10\xf3\x07\x12%\n ROUTE_SIGNAL_TO_NIFGEN_VAL_PFI_1\x10\xf4\x07\x12(\n#ROUTE_SIGNAL_TO_NIFGEN_VAL_PXI_STAR\x10\x83\x01*h\n\x0eSequenceHandle\x12\x1f\n\x1bSEQUENCE_HANDLE_UNSPECIFIED\x10\x00\x12\x35\n(SEQUENCE_HANDLE_NIFGEN_VAL_ALL_SEQUENCES\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*h\n\x0eWaveformHandle\x12\x1f\n\x1bWAVEFORM_HANDLE_UNSPECIFIED\x10\x00\x12\x35\n(WAVEFORM_HANDLE_NIFGEN_VAL_ALL_WAVEFORMS\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xc1Q\n\x1aNiFgenInt32AttributeValues\x12\x1c\n\x18NIFGEN_INT32_UNSPECIFIED\x10\x00\x12/\n+NIFGEN_INT32_ADDRESS_TYPE_VAL_ADDR_PHYSICAL\x10\x00\x12.\n*NIFGEN_INT32_ADDRESS_TYPE_VAL_ADDR_VIRTUAL\x10\x01\x12\x31\n-NIFGEN_INT32_ANALOG_PATH_VAL_MAIN_ANALOG_PATH\x10\x00\x12\x33\n/NIFGEN_INT32_ANALOG_PATH_VAL_DIRECT_ANALOG_PATH\x10\x01\x12;\n7NIFGEN_INT32_ANALOG_PATH_VAL_FIXED_LOW_GAIN_ANALOG_PATH\x10\x02\x12<\n8NIFGEN_INT32_ANALOG_PATH_VAL_FIXED_HIGH_GAIN_ANALOG_PATH\x10\x03\x12\x46\n@NIFGEN_INT32_ARBITRARY_SEQUENCE_HANDLE_VAL_FIRST_SEQUENCE_HANDLE\x10\xa0\x8d\x06\x12\x45\n?NIFGEN_INT32_ARBITRARY_SEQUENCE_HANDLE_VAL_LAST_SEQUENCE_HANDLE\x10\xaf\xdb\x06\x12\x43\n6NIFGEN_INT32_ARBITRARY_SEQUENCE_HANDLE_VAL_NO_SEQUENCE\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x45\n@NIFGEN_INT32_ARBITRARY_WAVEFORM_HANDLE_VAL_FIRST_WAVEFORM_HANDLE\x10\x90N\x12\x44\n?NIFGEN_INT32_ARBITRARY_WAVEFORM_HANDLE_VAL_LAST_WAVEFORM_HANDLE\x10\xf7U\x12\x43\n6NIFGEN_INT32_ARBITRARY_WAVEFORM_HANDLE_VAL_NO_WAVEFORM\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12=\n0NIFGEN_INT32_BURST_COUNT_VAL_GENERATE_CONTINUOUS\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12)\n%NIFGEN_INT32_BUS_TYPE_VAL_BUS_INVALID\x10\x00\x12$\n NIFGEN_INT32_BUS_TYPE_VAL_BUS_AT\x10\x01\x12%\n!NIFGEN_INT32_BUS_TYPE_VAL_BUS_PCI\x10\x02\x12%\n!NIFGEN_INT32_BUS_TYPE_VAL_BUS_PXI\x10\x03\x12%\n!NIFGEN_INT32_BUS_TYPE_VAL_BUS_VXI\x10\x04\x12(\n$NIFGEN_INT32_BUS_TYPE_VAL_BUS_PCMCIA\x10\x05\x12&\n\"NIFGEN_INT32_BUS_TYPE_VAL_BUS_PXIE\x10\x06\x12/\n+NIFGEN_INT32_CLOCK_MODE_VAL_HIGH_RESOLUTION\x10\x00\x12+\n\'NIFGEN_INT32_CLOCK_MODE_VAL_DIVIDE_DOWN\x10\x01\x12)\n%NIFGEN_INT32_CLOCK_MODE_VAL_AUTOMATIC\x10\x02\x12\x41\n=NIFGEN_INT32_DATA_MARKER_EVENT_LEVEL_POLARITY_VAL_ACTIVE_HIGH\x10\x65\x12@\nNIFGEN_INT32_MARKER_EVENT_DELAY_UNITS_VAL_SAMPLE_CLOCK_PERIODS\x10\x65\x12\x35\n1NIFGEN_INT32_MARKER_EVENT_DELAY_UNITS_VAL_SECONDS\x10\x66\x12\x37\n3NIFGEN_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_VAL_PULSE\x10\x65\x12\x37\n3NIFGEN_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_VAL_LEVEL\x10\x66\x12\x38\n4NIFGEN_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_VAL_TOGGLE\x10g\x12<\n8NIFGEN_INT32_MARKER_EVENT_PULSE_POLARITY_VAL_ACTIVE_HIGH\x10\x65\x12;\n7NIFGEN_INT32_MARKER_EVENT_PULSE_POLARITY_VAL_ACTIVE_LOW\x10\x66\x12H\nDNIFGEN_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_VAL_SAMPLE_CLOCK_PERIODS\x10\x65\x12;\n7NIFGEN_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_VAL_SECONDS\x10\x66\x12;\n7NIFGEN_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_VAL_HIGH\x10\x65\x12:\n6NIFGEN_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_VAL_LOW\x10\x66\x12$\n NIFGEN_INT32_OSP_MODE_VAL_OSP_IF\x10\x00\x12*\n&NIFGEN_INT32_OSP_MODE_VAL_OSP_BASEBAND\x10\x01\x12G\nCNIFGEN_INT32_OSP_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_ERROR\x10\x00\x12J\nFNIFGEN_INT32_OSP_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_DISABLED\x10\x02\x12:\n6NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_NONE\x10\x00\x12G\nCNIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_GAIN_I\x10\x01\x12G\nCNIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_GAIN_Q\x10\x02\x12I\nENIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_OFFSET_I\x10\x04\x12I\nENIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PRE_FILTER_OFFSET_Q\x10\x08\x12\x42\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_FIR_FILTER_I\x10\x10\x12\x43\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PFIR_FILTER_I\x10\x10\x12\x42\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_FIR_FILTER_Q\x10 \x12\x43\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_PFIR_FILTER_Q\x10 \x12\x42\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CIC_FILTER_I\x10@\x12\x43\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CIC_FILTER_Q\x10\x80\x01\x12\x43\n>NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_COMPLEX_DATA\x10\x80\x02\x12\x44\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CFIR_FILTER_I\x10\x80\x04\x12\x44\n?NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_CFIR_FILTER_Q\x10\x80\x08\x12@\n;NIFGEN_INT32_OSP_OVERFLOW_STATUS_VAL_OSP_OVERFLOW_EQUALIZER\x10\x80\x10\x12,\n(NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_FUNC\x10\x00\x12+\n\'NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_ARB\x10\x01\x12+\n\'NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_SEQ\x10\x02\x12\x31\n-NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_FREQ_LIST\x10\x65\x12.\n*NIFGEN_INT32_OUTPUT_MODE_VAL_OUTPUT_SCRIPT\x10\x66\x12\x43\n?NIFGEN_INT32_READY_FOR_START_EVENT_ACTIVE_LEVEL_VAL_ACTIVE_HIGH\x10\x65\x12\x42\n>NIFGEN_INT32_READY_FOR_START_EVENT_ACTIVE_LEVEL_VAL_ACTIVE_LOW\x10\x66\x12\x41\n=NIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_EDGE_EDGE_VAL_RISING_EDGE\x10\x65\x12\x42\n>NIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_EDGE_EDGE_VAL_FALLING_EDGE\x10\x66\x12J\nFNIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_LEVEL_ACTIVE_LEVEL_VAL_ACTIVE_HIGH\x10\x65\x12I\nENIFGEN_INT32_SCRIPT_TRIGGER_DIGITAL_LEVEL_ACTIVE_LEVEL_VAL_ACTIVE_LOW\x10\x66\x12\x32\n.NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_TRIG_NONE\x10\x65\x12\x35\n1NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_DIGITAL_EDGE\x10\x66\x12\x36\n2NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_DIGITAL_LEVEL\x10g\x12\x36\n2NIFGEN_INT32_SCRIPT_TRIGGER_TYPE_VAL_SOFTWARE_EDGE\x10h\x12@\n\n\x05\x43lose\x12\x19.nifgen_grpc.CloseRequest\x1a\x1a.nifgen_grpc.CloseResponse\x12>\n\x05Reset\x12\x19.nifgen_grpc.ResetRequest\x1a\x1a.nifgen_grpc.ResetResponse\x12G\n\x08SelfTest\x12\x1c.nifgen_grpc.SelfTestRequest\x1a\x1d.nifgen_grpc.SelfTestResponse\x12M\n\nErrorQuery\x12\x1e.nifgen_grpc.ErrorQueryRequest\x1a\x1f.nifgen_grpc.ErrorQueryResponse\x12S\n\x0c\x45rrorMessage\x12 .nifgen_grpc.ErrorMessageRequest\x1a!.nifgen_grpc.ErrorMessageResponse\x12V\n\rRevisionQuery\x12!.nifgen_grpc.RevisionQueryRequest\x1a\".nifgen_grpc.RevisionQueryResponse\x12G\n\x08GetError\x12\x1c.nifgen_grpc.GetErrorRequest\x1a\x1d.nifgen_grpc.GetErrorResponse\x12M\n\nClearError\x12\x1e.nifgen_grpc.ClearErrorRequest\x1a\x1f.nifgen_grpc.ClearErrorResponse\x12S\n\x0c\x45rrorHandler\x12 .nifgen_grpc.ErrorHandlerRequest\x1a!.nifgen_grpc.ErrorHandlerResponse\x12Y\n\x0eGetChannelName\x12\".nifgen_grpc.GetChannelNameRequest\x1a#.nifgen_grpc.GetChannelNameResponse\x12n\n\x15ResetInterchangeCheck\x12).nifgen_grpc.ResetInterchangeCheckRequest\x1a*.nifgen_grpc.ResetInterchangeCheckResponse\x12w\n\x18\x43learInterchangeWarnings\x12,.nifgen_grpc.ClearInterchangeWarningsRequest\x1a-.nifgen_grpc.ClearInterchangeWarningsResponse\x12t\n\x17InvalidateAllAttributes\x12+.nifgen_grpc.InvalidateAllAttributesRequest\x1a,.nifgen_grpc.InvalidateAllAttributesResponse\x12\x62\n\x11ResetWithDefaults\x12%.nifgen_grpc.ResetWithDefaultsRequest\x1a&.nifgen_grpc.ResetWithDefaultsResponse\x12\x44\n\x07\x44isable\x12\x1b.nifgen_grpc.DisableRequest\x1a\x1c.nifgen_grpc.DisableResponse\x12\x41\n\x06\x43ommit\x12\x1a.nifgen_grpc.CommitRequest\x1a\x1b.nifgen_grpc.CommitResponse\x12_\n\x10GetHardwareState\x12$.nifgen_grpc.GetHardwareStateRequest\x1a%.nifgen_grpc.GetHardwareStateResponse\x12V\n\rWaitUntilDone\x12!.nifgen_grpc.WaitUntilDoneRequest\x1a\".nifgen_grpc.WaitUntilDoneResponse\x12\x41\n\x06IsDone\x12\x1a.nifgen_grpc.IsDoneRequest\x1a\x1b.nifgen_grpc.IsDoneResponse\x12P\n\x0bResetDevice\x12\x1f.nifgen_grpc.ResetDeviceRequest\x1a .nifgen_grpc.ResetDeviceResponse\x12q\n\x16\x43onfigureOperationMode\x12*.nifgen_grpc.ConfigureOperationModeRequest\x1a+.nifgen_grpc.ConfigureOperationModeResponse\x12h\n\x13\x43onfigureOutputMode\x12\'.nifgen_grpc.ConfigureOutputModeRequest\x1a(.nifgen_grpc.ConfigureOutputModeResponse\x12t\n\x17\x43onfigureReferenceClock\x12+.nifgen_grpc.ConfigureReferenceClockRequest\x1a,.nifgen_grpc.ConfigureReferenceClockResponse\x12w\n\x18\x43onfigureOutputImpedance\x12,.nifgen_grpc.ConfigureOutputImpedanceRequest\x1a-.nifgen_grpc.ConfigureOutputImpedanceResponse\x12q\n\x16\x43onfigureOutputEnabled\x12*.nifgen_grpc.ConfigureOutputEnabledRequest\x1a+.nifgen_grpc.ConfigureOutputEnabledResponse\x12\x62\n\x11\x43onfigureChannels\x12%.nifgen_grpc.ConfigureChannelsRequest\x1a&.nifgen_grpc.ConfigureChannelsResponse\x12\x65\n\x12InitiateGeneration\x12&.nifgen_grpc.InitiateGenerationRequest\x1a\'.nifgen_grpc.InitiateGenerationResponse\x12\\\n\x0f\x41\x62ortGeneration\x12#.nifgen_grpc.AbortGenerationRequest\x1a$.nifgen_grpc.AbortGenerationResponse\x12z\n\x19\x43onfigureStandardWaveform\x12-.nifgen_grpc.ConfigureStandardWaveformRequest\x1a..nifgen_grpc.ConfigureStandardWaveformResponse\x12}\n\x1a\x44\x65\x66ineUserStandardWaveform\x12..nifgen_grpc.DefineUserStandardWaveformRequest\x1a/.nifgen_grpc.DefineUserStandardWaveformResponse\x12z\n\x19\x43learUserStandardWaveform\x12-.nifgen_grpc.ClearUserStandardWaveformRequest\x1a..nifgen_grpc.ClearUserStandardWaveformResponse\x12\x65\n\x12\x43onfigureFrequency\x12&.nifgen_grpc.ConfigureFrequencyRequest\x1a\'.nifgen_grpc.ConfigureFrequencyResponse\x12\x65\n\x12\x43onfigureAmplitude\x12&.nifgen_grpc.ConfigureAmplitudeRequest\x1a\'.nifgen_grpc.ConfigureAmplitudeResponse\x12t\n\x17QueryArbWfmCapabilities\x12+.nifgen_grpc.QueryArbWfmCapabilitiesRequest\x1a,.nifgen_grpc.QueryArbWfmCapabilitiesResponse\x12\x62\n\x11\x43reateWaveformF64\x12%.nifgen_grpc.CreateWaveformF64Request\x1a&.nifgen_grpc.CreateWaveformF64Response\x12\x62\n\x11\x43reateWaveformI16\x12%.nifgen_grpc.CreateWaveformI16Request\x1a&.nifgen_grpc.CreateWaveformI16Response\x12w\n\x18\x43reateWaveformComplexF64\x12,.nifgen_grpc.CreateWaveformComplexF64Request\x1a-.nifgen_grpc.CreateWaveformComplexF64Response\x12z\n\x19\x43reateWaveformFromFileI16\x12-.nifgen_grpc.CreateWaveformFromFileI16Request\x1a..nifgen_grpc.CreateWaveformFromFileI16Response\x12z\n\x19\x43reateWaveformFromFileF64\x12-.nifgen_grpc.CreateWaveformFromFileF64Request\x1a..nifgen_grpc.CreateWaveformFromFileF64Response\x12h\n\x13\x43onfigureSampleRate\x12\'.nifgen_grpc.ConfigureSampleRateRequest\x1a(.nifgen_grpc.ConfigureSampleRateResponse\x12k\n\x14\x43onfigureArbWaveform\x12(.nifgen_grpc.ConfigureArbWaveformRequest\x1a).nifgen_grpc.ConfigureArbWaveformResponse\x12_\n\x10\x43learArbWaveform\x12$.nifgen_grpc.ClearArbWaveformRequest\x1a%.nifgen_grpc.ClearArbWaveformResponse\x12n\n\x15\x41llocateNamedWaveform\x12).nifgen_grpc.AllocateNamedWaveformRequest\x1a*.nifgen_grpc.AllocateNamedWaveformResponse\x12\x92\x01\n!SetNamedWaveformNextWritePosition\x12\x35.nifgen_grpc.SetNamedWaveformNextWritePositionRequest\x1a\x36.nifgen_grpc.SetNamedWaveformNextWritePositionResponse\x12n\n\x15WriteNamedWaveformF64\x12).nifgen_grpc.WriteNamedWaveformF64Request\x1a*.nifgen_grpc.WriteNamedWaveformF64Response\x12n\n\x15WriteNamedWaveformI16\x12).nifgen_grpc.WriteNamedWaveformI16Request\x1a*.nifgen_grpc.WriteNamedWaveformI16Response\x12\x83\x01\n\x1cWriteNamedWaveformComplexF64\x12\x30.nifgen_grpc.WriteNamedWaveformComplexF64Request\x1a\x31.nifgen_grpc.WriteNamedWaveformComplexF64Response\x12\x83\x01\n\x1cWriteNamedWaveformComplexI16\x12\x30.nifgen_grpc.WriteNamedWaveformComplexI16Request\x1a\x31.nifgen_grpc.WriteNamedWaveformComplexI16Response\x12h\n\x13\x44\x65leteNamedWaveform\x12\'.nifgen_grpc.DeleteNamedWaveformRequest\x1a(.nifgen_grpc.DeleteNamedWaveformResponse\x12t\n\x17QueryArbSeqCapabilities\x12+.nifgen_grpc.QueryArbSeqCapabilitiesRequest\x1a,.nifgen_grpc.QueryArbSeqCapabilitiesResponse\x12\x62\n\x11\x43reateArbSequence\x12%.nifgen_grpc.CreateArbSequenceRequest\x1a&.nifgen_grpc.CreateArbSequenceResponse\x12z\n\x19\x43reateAdvancedArbSequence\x12-.nifgen_grpc.CreateAdvancedArbSequenceRequest\x1a..nifgen_grpc.CreateAdvancedArbSequenceResponse\x12k\n\x14\x43onfigureArbSequence\x12(.nifgen_grpc.ConfigureArbSequenceRequest\x1a).nifgen_grpc.ConfigureArbSequenceResponse\x12_\n\x10\x43learArbSequence\x12$.nifgen_grpc.ClearArbSequenceRequest\x1a%.nifgen_grpc.ClearArbSequenceResponse\x12Y\n\x0e\x43learArbMemory\x12\".nifgen_grpc.ClearArbMemoryRequest\x1a#.nifgen_grpc.ClearArbMemoryResponse\x12z\n\x19QueryFreqListCapabilities\x12-.nifgen_grpc.QueryFreqListCapabilitiesRequest\x1a..nifgen_grpc.QueryFreqListCapabilitiesResponse\x12Y\n\x0e\x43reateFreqList\x12\".nifgen_grpc.CreateFreqListRequest\x1a#.nifgen_grpc.CreateFreqListResponse\x12\x62\n\x11\x43onfigureFreqList\x12%.nifgen_grpc.ConfigureFreqListRequest\x1a&.nifgen_grpc.ConfigureFreqListResponse\x12V\n\rClearFreqList\x12!.nifgen_grpc.ClearFreqListRequest\x1a\".nifgen_grpc.ClearFreqListResponse\x12P\n\x0bWriteScript\x12\x1f.nifgen_grpc.WriteScriptRequest\x1a .nifgen_grpc.WriteScriptResponse\x12S\n\x0c\x44\x65leteScript\x12 .nifgen_grpc.DeleteScriptRequest\x1a!.nifgen_grpc.DeleteScriptResponse\x12S\n\x0c\x45xportSignal\x12 .nifgen_grpc.ExportSignalRequest\x1a!.nifgen_grpc.ExportSignalResponse\x12Y\n\x0eRouteSignalOut\x12\".nifgen_grpc.RouteSignalOutRequest\x1a#.nifgen_grpc.RouteSignalOutResponse\x12t\n\x17SendSoftwareEdgeTrigger\x12+.nifgen_grpc.SendSoftwareEdgeTriggerRequest\x1a,.nifgen_grpc.SendSoftwareEdgeTriggerResponse\x12\x8f\x01\n ConfigureDigitalEdgeStartTrigger\x12\x34.nifgen_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x35.nifgen_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x92\x01\n!ConfigureSoftwareEdgeStartTrigger\x12\x35.nifgen_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a\x36.nifgen_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12h\n\x13\x44isableStartTrigger\x12\'.nifgen_grpc.DisableStartTriggerRequest\x1a(.nifgen_grpc.DisableStartTriggerResponse\x12\xa7\x01\n(ConfigureP2PEndpointFullnessStartTrigger\x12<.nifgen_grpc.ConfigureP2PEndpointFullnessStartTriggerRequest\x1a=.nifgen_grpc.ConfigureP2PEndpointFullnessStartTriggerResponse\x12\x92\x01\n!ConfigureDigitalEdgeScriptTrigger\x12\x35.nifgen_grpc.ConfigureDigitalEdgeScriptTriggerRequest\x1a\x36.nifgen_grpc.ConfigureDigitalEdgeScriptTriggerResponse\x12\x95\x01\n\"ConfigureDigitalLevelScriptTrigger\x12\x36.nifgen_grpc.ConfigureDigitalLevelScriptTriggerRequest\x1a\x37.nifgen_grpc.ConfigureDigitalLevelScriptTriggerResponse\x12\x95\x01\n\"ConfigureSoftwareEdgeScriptTrigger\x12\x36.nifgen_grpc.ConfigureSoftwareEdgeScriptTriggerRequest\x1a\x37.nifgen_grpc.ConfigureSoftwareEdgeScriptTriggerResponse\x12k\n\x14\x44isableScriptTrigger\x12(.nifgen_grpc.DisableScriptTriggerRequest\x1a).nifgen_grpc.DisableScriptTriggerResponse\x12\x65\n\x12\x43onfigureClockMode\x12&.nifgen_grpc.ConfigureClockModeRequest\x1a\'.nifgen_grpc.ConfigureClockModeResponse\x12\x89\x01\n\x1e\x41\x64justSampleClockRelativeDelay\x12\x32.nifgen_grpc.AdjustSampleClockRelativeDelayRequest\x1a\x33.nifgen_grpc.AdjustSampleClockRelativeDelayResponse\x12_\n\x10\x41llocateWaveform\x12$.nifgen_grpc.AllocateWaveformRequest\x1a%.nifgen_grpc.AllocateWaveformResponse\x12\x83\x01\n\x1cSetWaveformNextWritePosition\x12\x30.nifgen_grpc.SetWaveformNextWritePositionRequest\x1a\x31.nifgen_grpc.SetWaveformNextWritePositionResponse\x12V\n\rWriteWaveform\x12!.nifgen_grpc.WriteWaveformRequest\x1a\".nifgen_grpc.WriteWaveformResponse\x12n\n\x15WriteBinary16Waveform\x12).nifgen_grpc.WriteBinary16WaveformRequest\x1a*.nifgen_grpc.WriteBinary16WaveformResponse\x12t\n\x17WriteWaveformComplexF64\x12+.nifgen_grpc.WriteWaveformComplexF64Request\x1a,.nifgen_grpc.WriteWaveformComplexF64Response\x12\x83\x01\n\x1cWriteComplexBinary16Waveform\x12\x30.nifgen_grpc.WriteComplexBinary16WaveformRequest\x1a\x31.nifgen_grpc.WriteComplexBinary16WaveformResponse\x12\x44\n\x07SelfCal\x12\x1b.nifgen_grpc.SelfCalRequest\x1a\x1c.nifgen_grpc.SelfCalResponse\x12h\n\x13GetSelfCalSupported\x12\'.nifgen_grpc.GetSelfCalSupportedRequest\x1a(.nifgen_grpc.GetSelfCalSupportedResponse\x12z\n\x19GetSelfCalLastDateAndTime\x12-.nifgen_grpc.GetSelfCalLastDateAndTimeRequest\x1a..nifgen_grpc.GetSelfCalLastDateAndTimeResponse\x12w\n\x18GetExtCalLastDateAndTime\x12,.nifgen_grpc.GetExtCalLastDateAndTimeRequest\x1a-.nifgen_grpc.GetExtCalLastDateAndTimeResponse\x12\x65\n\x12GetSelfCalLastTemp\x12&.nifgen_grpc.GetSelfCalLastTempRequest\x1a\'.nifgen_grpc.GetSelfCalLastTempResponse\x12\x62\n\x11GetExtCalLastTemp\x12%.nifgen_grpc.GetExtCalLastTempRequest\x1a&.nifgen_grpc.GetExtCalLastTempResponse\x12\x83\x01\n\x1cGetExtCalRecommendedInterval\x12\x30.nifgen_grpc.GetExtCalRecommendedIntervalRequest\x1a\x31.nifgen_grpc.GetExtCalRecommendedIntervalResponse\x12q\n\x16ReadCurrentTemperature\x12*.nifgen_grpc.ReadCurrentTemperatureRequest\x1a+.nifgen_grpc.ReadCurrentTemperatureResponse\x12\x9b\x01\n$ConfigureCustomFIRFilterCoefficients\x12\x38.nifgen_grpc.ConfigureCustomFIRFilterCoefficientsRequest\x1a\x39.nifgen_grpc.ConfigureCustomFIRFilterCoefficientsResponse\x12w\n\x18GetFIRFilterCoefficients\x12,.nifgen_grpc.GetFIRFilterCoefficientsRequest\x1a-.nifgen_grpc.GetFIRFilterCoefficientsResponse\x12t\n\x17GetStreamEndpointHandle\x12+.nifgen_grpc.GetStreamEndpointHandleRequest\x1a,.nifgen_grpc.GetStreamEndpointHandleResponse\x12h\n\x13WriteP2PEndpointI16\x12\'.nifgen_grpc.WriteP2PEndpointI16Request\x1a(.nifgen_grpc.WriteP2PEndpointI16Response\x12w\n\x18\x43onfigureSynchronization\x12,.nifgen_grpc.ConfigureSynchronizationRequest\x1a-.nifgen_grpc.ConfigureSynchronizationResponse\x12t\n\x17\x45nableDigitalPatterning\x12+.nifgen_grpc.EnableDigitalPatterningRequest\x1a,.nifgen_grpc.EnableDigitalPatterningResponse\x12w\n\x18\x44isableDigitalPatterning\x12,.nifgen_grpc.DisableDigitalPatterningRequest\x1a-.nifgen_grpc.DisableDigitalPatterningResponse\x12h\n\x13\x45nableDigitalFilter\x12\'.nifgen_grpc.EnableDigitalFilterRequest\x1a(.nifgen_grpc.EnableDigitalFilterResponse\x12k\n\x14\x44isableDigitalFilter\x12(.nifgen_grpc.DisableDigitalFilterRequest\x1a).nifgen_grpc.DisableDigitalFilterResponse\x12\x65\n\x12\x45nableAnalogFilter\x12&.nifgen_grpc.EnableAnalogFilterRequest\x1a\'.nifgen_grpc.EnableAnalogFilterResponse\x12h\n\x13\x44isableAnalogFilter\x12\'.nifgen_grpc.DisableAnalogFilterRequest\x1a(.nifgen_grpc.DisableAnalogFilterResponse\x12}\n\x1a\x43onfigureSampleClockSource\x12..nifgen_grpc.ConfigureSampleClockSourceRequest\x1a/.nifgen_grpc.ConfigureSampleClockSourceResponse\x12k\n\x14\x43onfigureTriggerMode\x12(.nifgen_grpc.ConfigureTriggerModeRequest\x1a).nifgen_grpc.ConfigureTriggerModeResponse\x12\x8f\x01\n ImportAttributeConfigurationFile\x12\x34.nifgen_grpc.ImportAttributeConfigurationFileRequest\x1a\x35.nifgen_grpc.ImportAttributeConfigurationFileResponse\x12\x8f\x01\n ExportAttributeConfigurationFile\x12\x34.nifgen_grpc.ExportAttributeConfigurationFileRequest\x1a\x35.nifgen_grpc.ExportAttributeConfigurationFileResponse\x12\x95\x01\n\"ImportAttributeConfigurationBuffer\x12\x36.nifgen_grpc.ImportAttributeConfigurationBufferRequest\x1a\x37.nifgen_grpc.ImportAttributeConfigurationBufferResponse\x12\x95\x01\n\"ExportAttributeConfigurationBuffer\x12\x36.nifgen_grpc.ExportAttributeConfigurationBufferRequest\x1a\x37.nifgen_grpc.ExportAttributeConfigurationBufferResponse\x12h\n\x13SetAttributeViInt64\x12\'.nifgen_grpc.SetAttributeViInt64Request\x1a(.nifgen_grpc.SetAttributeViInt64Response\x12n\n\x15\x43heckAttributeViInt64\x12).nifgen_grpc.CheckAttributeViInt64Request\x1a*.nifgen_grpc.CheckAttributeViInt64Response\x12h\n\x13GetAttributeViInt64\x12\'.nifgen_grpc.GetAttributeViInt64Request\x1a(.nifgen_grpc.GetAttributeViInt64Response\x12h\n\x13SetAttributeViInt32\x12\'.nifgen_grpc.SetAttributeViInt32Request\x1a(.nifgen_grpc.SetAttributeViInt32Response\x12k\n\x14SetAttributeViReal64\x12(.nifgen_grpc.SetAttributeViReal64Request\x1a).nifgen_grpc.SetAttributeViReal64Response\x12k\n\x14SetAttributeViString\x12(.nifgen_grpc.SetAttributeViStringRequest\x1a).nifgen_grpc.SetAttributeViStringResponse\x12n\n\x15SetAttributeViBoolean\x12).nifgen_grpc.SetAttributeViBooleanRequest\x1a*.nifgen_grpc.SetAttributeViBooleanResponse\x12n\n\x15SetAttributeViSession\x12).nifgen_grpc.SetAttributeViSessionRequest\x1a*.nifgen_grpc.SetAttributeViSessionResponse\x12n\n\x15\x43heckAttributeViInt32\x12).nifgen_grpc.CheckAttributeViInt32Request\x1a*.nifgen_grpc.CheckAttributeViInt32Response\x12q\n\x16\x43heckAttributeViReal64\x12*.nifgen_grpc.CheckAttributeViReal64Request\x1a+.nifgen_grpc.CheckAttributeViReal64Response\x12q\n\x16\x43heckAttributeViString\x12*.nifgen_grpc.CheckAttributeViStringRequest\x1a+.nifgen_grpc.CheckAttributeViStringResponse\x12t\n\x17\x43heckAttributeViBoolean\x12+.nifgen_grpc.CheckAttributeViBooleanRequest\x1a,.nifgen_grpc.CheckAttributeViBooleanResponse\x12t\n\x17\x43heckAttributeViSession\x12+.nifgen_grpc.CheckAttributeViSessionRequest\x1a,.nifgen_grpc.CheckAttributeViSessionResponse\x12h\n\x13GetAttributeViInt32\x12\'.nifgen_grpc.GetAttributeViInt32Request\x1a(.nifgen_grpc.GetAttributeViInt32Response\x12k\n\x14GetAttributeViReal64\x12(.nifgen_grpc.GetAttributeViReal64Request\x1a).nifgen_grpc.GetAttributeViReal64Response\x12k\n\x14GetAttributeViString\x12(.nifgen_grpc.GetAttributeViStringRequest\x1a).nifgen_grpc.GetAttributeViStringResponse\x12n\n\x15GetAttributeViBoolean\x12).nifgen_grpc.GetAttributeViBooleanRequest\x1a*.nifgen_grpc.GetAttributeViBooleanResponse\x12n\n\x15GetAttributeViSession\x12).nifgen_grpc.GetAttributeViSessionRequest\x1a*.nifgen_grpc.GetAttributeViSessionResponse\x12Y\n\x0eResetAttribute\x12\".nifgen_grpc.ResetAttributeRequest\x1a#.nifgen_grpc.ResetAttributeResponse\x12n\n\x15ManualEnableP2PStream\x12).nifgen_grpc.ManualEnableP2PStreamRequest\x1a*.nifgen_grpc.ManualEnableP2PStreamResponse\x12z\n\x19\x43reateWaveformFromFileHWS\x12-.nifgen_grpc.CreateWaveformFromFileHWSRequest\x1a..nifgen_grpc.CreateWaveformFromFileHWSResponseB<\n\x10\x63om.ni.grpc.fgenB\x06NiFgenP\x01\xaa\x02\x1dNationalInstruments.Grpc.Fgenb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nifgen_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\020com.ni.grpc.fgenB\006NiFgenP\001\252\002\035NationalInstruments.Grpc.Fgen' + _NIFGENINT32ATTRIBUTEVALUES._options = None + _NIFGENINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _NIFGENREAL64ATTRIBUTEVALUES._options = None + _NIFGENREAL64ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._options = None + _INITIALIZEWITHCHANNELSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NIFGENATTRIBUTE']._serialized_start=24660 + _globals['_NIFGENATTRIBUTE']._serialized_end=35325 + _globals['_OUTPUTMODE']._serialized_start=35328 + _globals['_OUTPUTMODE']._serialized_end=35545 + _globals['_WAVEFORM']._serialized_start=35548 + _globals['_WAVEFORM']._serialized_end=35869 + _globals['_SIGNAL']._serialized_start=35872 + _globals['_SIGNAL']._serialized_end=36416 + _globals['_TRIGGERMODE']._serialized_start=36419 + _globals['_TRIGGERMODE']._serialized_end=36610 + _globals['_CLOCKMODE']._serialized_start=36613 + _globals['_CLOCKMODE']._serialized_end=36743 + _globals['_RELATIVETO']._serialized_start=36745 + _globals['_RELATIVETO']._serialized_end=36863 + _globals['_HARDWARESTATE']._serialized_start=36866 + _globals['_HARDWARESTATE']._serialized_end=37098 + _globals['_BYTEORDER']._serialized_start=37100 + _globals['_BYTEORDER']._serialized_end=37190 + _globals['_TRIGGERWHEN']._serialized_start=37192 + _globals['_TRIGGERWHEN']._serialized_end=37316 + _globals['_TRIGGER']._serialized_start=37318 + _globals['_TRIGGER']._serialized_end=37430 + _globals['_FREQUENCYLISTOPTIONS']._serialized_start=37432 + _globals['_FREQUENCYLISTOPTIONS']._serialized_end=37553 + _globals['_ROUTESIGNALFROM']._serialized_start=37556 + _globals['_ROUTESIGNALFROM']._serialized_end=38461 + _globals['_ROUTESIGNALTO']._serialized_start=38464 + _globals['_ROUTESIGNALTO']._serialized_end=38993 + _globals['_SEQUENCEHANDLE']._serialized_start=38995 + _globals['_SEQUENCEHANDLE']._serialized_end=39099 + _globals['_WAVEFORMHANDLE']._serialized_start=39101 + _globals['_WAVEFORMHANDLE']._serialized_end=39205 + _globals['_NIFGENINT32ATTRIBUTEVALUES']._serialized_start=39208 + _globals['_NIFGENINT32ATTRIBUTEVALUES']._serialized_end=49641 + _globals['_NIFGENREAL64ATTRIBUTEVALUES']._serialized_start=49644 + _globals['_NIFGENREAL64ATTRIBUTEVALUES']._serialized_end=49939 + _globals['_NIFGENSTRINGATTRIBUTEVALUESMAPPED']._serialized_start=49942 + _globals['_NIFGENSTRINGATTRIBUTEVALUESMAPPED']._serialized_end=51301 + _globals['_INITREQUEST']._serialized_start=61 + _globals['_INITREQUEST']._serialized_end=238 + _globals['_INITRESPONSE']._serialized_start=240 + _globals['_INITRESPONSE']._serialized_end=366 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=369 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=580 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=583 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=720 + _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_start=723 + _globals['_INITIALIZEWITHCHANNELSREQUEST']._serialized_end=945 + _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_start=948 + _globals['_INITIALIZEWITHCHANNELSRESPONSE']._serialized_end=1092 + _globals['_CLOSEREQUEST']._serialized_start=1094 + _globals['_CLOSEREQUEST']._serialized_end=1144 + _globals['_CLOSERESPONSE']._serialized_start=1146 + _globals['_CLOSERESPONSE']._serialized_end=1177 + _globals['_RESETREQUEST']._serialized_start=1179 + _globals['_RESETREQUEST']._serialized_end=1229 + _globals['_RESETRESPONSE']._serialized_start=1231 + _globals['_RESETRESPONSE']._serialized_end=1262 + _globals['_SELFTESTREQUEST']._serialized_start=1264 + _globals['_SELFTESTREQUEST']._serialized_end=1317 + _globals['_SELFTESTRESPONSE']._serialized_start=1319 + _globals['_SELFTESTRESPONSE']._serialized_end=1406 + _globals['_ERRORQUERYREQUEST']._serialized_start=1408 + _globals['_ERRORQUERYREQUEST']._serialized_end=1463 + _globals['_ERRORQUERYRESPONSE']._serialized_start=1465 + _globals['_ERRORQUERYRESPONSE']._serialized_end=1544 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=1546 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=1623 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=1625 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=1686 + _globals['_REVISIONQUERYREQUEST']._serialized_start=1688 + _globals['_REVISIONQUERYREQUEST']._serialized_end=1746 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=1748 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=1850 + _globals['_GETERRORREQUEST']._serialized_start=1852 + _globals['_GETERRORREQUEST']._serialized_end=1905 + _globals['_GETERRORRESPONSE']._serialized_start=1907 + _globals['_GETERRORRESPONSE']._serialized_end=1988 + _globals['_CLEARERRORREQUEST']._serialized_start=1990 + _globals['_CLEARERRORREQUEST']._serialized_end=2045 + _globals['_CLEARERRORRESPONSE']._serialized_start=2047 + _globals['_CLEARERRORRESPONSE']._serialized_end=2083 + _globals['_ERRORHANDLERREQUEST']._serialized_start=2085 + _globals['_ERRORHANDLERREQUEST']._serialized_end=2162 + _globals['_ERRORHANDLERRESPONSE']._serialized_start=2164 + _globals['_ERRORHANDLERRESPONSE']._serialized_end=2225 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=2227 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=2301 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=2303 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=2367 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=2369 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=2435 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=2437 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=2484 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=2486 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=2555 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=2557 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=2607 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=2609 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=2677 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=2679 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=2728 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=2730 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=2792 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=2794 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=2837 + _globals['_DISABLEREQUEST']._serialized_start=2839 + _globals['_DISABLEREQUEST']._serialized_end=2891 + _globals['_DISABLERESPONSE']._serialized_start=2893 + _globals['_DISABLERESPONSE']._serialized_end=2926 + _globals['_COMMITREQUEST']._serialized_start=2928 + _globals['_COMMITREQUEST']._serialized_end=2979 + _globals['_COMMITRESPONSE']._serialized_start=2981 + _globals['_COMMITRESPONSE']._serialized_end=3013 + _globals['_GETHARDWARESTATEREQUEST']._serialized_start=3015 + _globals['_GETHARDWARESTATEREQUEST']._serialized_end=3076 + _globals['_GETHARDWARESTATERESPONSE']._serialized_start=3078 + _globals['_GETHARDWARESTATERESPONSE']._serialized_end=3182 + _globals['_WAITUNTILDONEREQUEST']._serialized_start=3184 + _globals['_WAITUNTILDONEREQUEST']._serialized_end=3260 + _globals['_WAITUNTILDONERESPONSE']._serialized_start=3262 + _globals['_WAITUNTILDONERESPONSE']._serialized_end=3301 + _globals['_ISDONEREQUEST']._serialized_start=3303 + _globals['_ISDONEREQUEST']._serialized_end=3354 + _globals['_ISDONERESPONSE']._serialized_start=3356 + _globals['_ISDONERESPONSE']._serialized_end=3402 + _globals['_RESETDEVICEREQUEST']._serialized_start=3404 + _globals['_RESETDEVICEREQUEST']._serialized_end=3460 + _globals['_RESETDEVICERESPONSE']._serialized_start=3462 + _globals['_RESETDEVICERESPONSE']._serialized_end=3499 + _globals['_CONFIGUREOPERATIONMODEREQUEST']._serialized_start=3501 + _globals['_CONFIGUREOPERATIONMODEREQUEST']._serialized_end=3614 + _globals['_CONFIGUREOPERATIONMODERESPONSE']._serialized_start=3616 + _globals['_CONFIGUREOPERATIONMODERESPONSE']._serialized_end=3664 + _globals['_CONFIGUREOUTPUTMODEREQUEST']._serialized_start=3667 + _globals['_CONFIGUREOUTPUTMODEREQUEST']._serialized_end=3826 + _globals['_CONFIGUREOUTPUTMODERESPONSE']._serialized_start=3828 + _globals['_CONFIGUREOUTPUTMODERESPONSE']._serialized_end=3873 + _globals['_CONFIGUREREFERENCECLOCKREQUEST']._serialized_start=3876 + _globals['_CONFIGUREREFERENCECLOCKREQUEST']._serialized_end=4011 + _globals['_CONFIGUREREFERENCECLOCKRESPONSE']._serialized_start=4013 + _globals['_CONFIGUREREFERENCECLOCKRESPONSE']._serialized_end=4062 + _globals['_CONFIGUREOUTPUTIMPEDANCEREQUEST']._serialized_start=4064 + _globals['_CONFIGUREOUTPUTIMPEDANCEREQUEST']._serialized_end=4174 + _globals['_CONFIGUREOUTPUTIMPEDANCERESPONSE']._serialized_start=4176 + _globals['_CONFIGUREOUTPUTIMPEDANCERESPONSE']._serialized_end=4226 + _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_start=4228 + _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_end=4334 + _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_start=4336 + _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_end=4384 + _globals['_CONFIGURECHANNELSREQUEST']._serialized_start=4386 + _globals['_CONFIGURECHANNELSREQUEST']._serialized_end=4466 + _globals['_CONFIGURECHANNELSRESPONSE']._serialized_start=4468 + _globals['_CONFIGURECHANNELSRESPONSE']._serialized_end=4511 + _globals['_INITIATEGENERATIONREQUEST']._serialized_start=4513 + _globals['_INITIATEGENERATIONREQUEST']._serialized_end=4576 + _globals['_INITIATEGENERATIONRESPONSE']._serialized_start=4578 + _globals['_INITIATEGENERATIONRESPONSE']._serialized_end=4622 + _globals['_ABORTGENERATIONREQUEST']._serialized_start=4624 + _globals['_ABORTGENERATIONREQUEST']._serialized_end=4684 + _globals['_ABORTGENERATIONRESPONSE']._serialized_start=4686 + _globals['_ABORTGENERATIONRESPONSE']._serialized_end=4727 + _globals['_CONFIGURESTANDARDWAVEFORMREQUEST']._serialized_start=4730 + _globals['_CONFIGURESTANDARDWAVEFORMREQUEST']._serialized_end=4984 + _globals['_CONFIGURESTANDARDWAVEFORMRESPONSE']._serialized_start=4986 + _globals['_CONFIGURESTANDARDWAVEFORMRESPONSE']._serialized_end=5037 + _globals['_DEFINEUSERSTANDARDWAVEFORMREQUEST']._serialized_start=5039 + _globals['_DEFINEUSERSTANDARDWAVEFORMREQUEST']._serialized_end=5161 + _globals['_DEFINEUSERSTANDARDWAVEFORMRESPONSE']._serialized_start=5163 + _globals['_DEFINEUSERSTANDARDWAVEFORMRESPONSE']._serialized_end=5215 + _globals['_CLEARUSERSTANDARDWAVEFORMREQUEST']._serialized_start=5217 + _globals['_CLEARUSERSTANDARDWAVEFORMREQUEST']._serialized_end=5309 + _globals['_CLEARUSERSTANDARDWAVEFORMRESPONSE']._serialized_start=5311 + _globals['_CLEARUSERSTANDARDWAVEFORMRESPONSE']._serialized_end=5362 + _globals['_CONFIGUREFREQUENCYREQUEST']._serialized_start=5364 + _globals['_CONFIGUREFREQUENCYREQUEST']._serialized_end=5468 + _globals['_CONFIGUREFREQUENCYRESPONSE']._serialized_start=5470 + _globals['_CONFIGUREFREQUENCYRESPONSE']._serialized_end=5514 + _globals['_CONFIGUREAMPLITUDEREQUEST']._serialized_start=5516 + _globals['_CONFIGUREAMPLITUDEREQUEST']._serialized_end=5620 + _globals['_CONFIGUREAMPLITUDERESPONSE']._serialized_start=5622 + _globals['_CONFIGUREAMPLITUDERESPONSE']._serialized_end=5666 + _globals['_QUERYARBWFMCAPABILITIESREQUEST']._serialized_start=5668 + _globals['_QUERYARBWFMCAPABILITIESREQUEST']._serialized_end=5736 + _globals['_QUERYARBWFMCAPABILITIESRESPONSE']._serialized_start=5739 + _globals['_QUERYARBWFMCAPABILITIESRESPONSE']._serialized_end=5913 + _globals['_CREATEWAVEFORMF64REQUEST']._serialized_start=5915 + _globals['_CREATEWAVEFORMF64REQUEST']._serialized_end=6028 + _globals['_CREATEWAVEFORMF64RESPONSE']._serialized_start=6030 + _globals['_CREATEWAVEFORMF64RESPONSE']._serialized_end=6098 + _globals['_CREATEWAVEFORMI16REQUEST']._serialized_start=6100 + _globals['_CREATEWAVEFORMI16REQUEST']._serialized_end=6213 + _globals['_CREATEWAVEFORMI16RESPONSE']._serialized_start=6215 + _globals['_CREATEWAVEFORMI16RESPONSE']._serialized_end=6283 + _globals['_CREATEWAVEFORMCOMPLEXF64REQUEST']._serialized_start=6286 + _globals['_CREATEWAVEFORMCOMPLEXF64REQUEST']._serialized_end=6438 + _globals['_CREATEWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=6440 + _globals['_CREATEWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=6515 + _globals['_CREATEWAVEFORMFROMFILEI16REQUEST']._serialized_start=6518 + _globals['_CREATEWAVEFORMFROMFILEI16REQUEST']._serialized_end=6720 + _globals['_CREATEWAVEFORMFROMFILEI16RESPONSE']._serialized_start=6722 + _globals['_CREATEWAVEFORMFROMFILEI16RESPONSE']._serialized_end=6798 + _globals['_CREATEWAVEFORMFROMFILEF64REQUEST']._serialized_start=6801 + _globals['_CREATEWAVEFORMFROMFILEF64REQUEST']._serialized_end=7003 + _globals['_CREATEWAVEFORMFROMFILEF64RESPONSE']._serialized_start=7005 + _globals['_CREATEWAVEFORMFROMFILEF64RESPONSE']._serialized_end=7081 + _globals['_CONFIGURESAMPLERATEREQUEST']._serialized_start=7083 + _globals['_CONFIGURESAMPLERATEREQUEST']._serialized_end=7168 + _globals['_CONFIGURESAMPLERATERESPONSE']._serialized_start=7170 + _globals['_CONFIGURESAMPLERATERESPONSE']._serialized_end=7215 + _globals['_CONFIGUREARBWAVEFORMREQUEST']._serialized_start=7218 + _globals['_CONFIGUREARBWAVEFORMREQUEST']._serialized_end=7360 + _globals['_CONFIGUREARBWAVEFORMRESPONSE']._serialized_start=7362 + _globals['_CONFIGUREARBWAVEFORMRESPONSE']._serialized_end=7408 + _globals['_CLEARARBWAVEFORMREQUEST']._serialized_start=7411 + _globals['_CLEARARBWAVEFORMREQUEST']._serialized_end=7583 + _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_start=7585 + _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_end=7627 + _globals['_ALLOCATENAMEDWAVEFORMREQUEST']._serialized_start=7630 + _globals['_ALLOCATENAMEDWAVEFORMREQUEST']._serialized_end=7764 + _globals['_ALLOCATENAMEDWAVEFORMRESPONSE']._serialized_start=7766 + _globals['_ALLOCATENAMEDWAVEFORMRESPONSE']._serialized_end=7813 + _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_start=7816 + _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_end=8050 + _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_start=8052 + _globals['_SETNAMEDWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_end=8111 + _globals['_WRITENAMEDWAVEFORMF64REQUEST']._serialized_start=8113 + _globals['_WRITENAMEDWAVEFORMF64REQUEST']._serialized_end=8238 + _globals['_WRITENAMEDWAVEFORMF64RESPONSE']._serialized_start=8240 + _globals['_WRITENAMEDWAVEFORMF64RESPONSE']._serialized_end=8287 + _globals['_WRITENAMEDWAVEFORMI16REQUEST']._serialized_start=8289 + _globals['_WRITENAMEDWAVEFORMI16REQUEST']._serialized_end=8414 + _globals['_WRITENAMEDWAVEFORMI16RESPONSE']._serialized_start=8416 + _globals['_WRITENAMEDWAVEFORMI16RESPONSE']._serialized_end=8463 + _globals['_WRITENAMEDWAVEFORMCOMPLEXF64REQUEST']._serialized_start=8466 + _globals['_WRITENAMEDWAVEFORMCOMPLEXF64REQUEST']._serialized_end=8630 + _globals['_WRITENAMEDWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=8632 + _globals['_WRITENAMEDWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=8686 + _globals['_WRITENAMEDWAVEFORMCOMPLEXI16REQUEST']._serialized_start=8689 + _globals['_WRITENAMEDWAVEFORMCOMPLEXI16REQUEST']._serialized_end=8850 + _globals['_WRITENAMEDWAVEFORMCOMPLEXI16RESPONSE']._serialized_start=8852 + _globals['_WRITENAMEDWAVEFORMCOMPLEXI16RESPONSE']._serialized_end=8906 + _globals['_DELETENAMEDWAVEFORMREQUEST']._serialized_start=8908 + _globals['_DELETENAMEDWAVEFORMREQUEST']._serialized_end=9017 + _globals['_DELETENAMEDWAVEFORMRESPONSE']._serialized_start=9019 + _globals['_DELETENAMEDWAVEFORMRESPONSE']._serialized_end=9064 + _globals['_QUERYARBSEQCAPABILITIESREQUEST']._serialized_start=9066 + _globals['_QUERYARBSEQCAPABILITIESREQUEST']._serialized_end=9134 + _globals['_QUERYARBSEQCAPABILITIESRESPONSE']._serialized_start=9137 + _globals['_QUERYARBSEQCAPABILITIESRESPONSE']._serialized_end=9317 + _globals['_CREATEARBSEQUENCEREQUEST']._serialized_start=9319 + _globals['_CREATEARBSEQUENCEREQUEST']._serialized_end=9440 + _globals['_CREATEARBSEQUENCERESPONSE']._serialized_start=9442 + _globals['_CREATEARBSEQUENCERESPONSE']._serialized_end=9510 + _globals['_CREATEADVANCEDARBSEQUENCEREQUEST']._serialized_start=9513 + _globals['_CREATEADVANCEDARBSEQUENCEREQUEST']._serialized_end=9702 + _globals['_CREATEADVANCEDARBSEQUENCERESPONSE']._serialized_start=9704 + _globals['_CREATEADVANCEDARBSEQUENCERESPONSE']._serialized_end=9811 + _globals['_CONFIGUREARBSEQUENCEREQUEST']._serialized_start=9814 + _globals['_CONFIGUREARBSEQUENCEREQUEST']._serialized_end=9956 + _globals['_CONFIGUREARBSEQUENCERESPONSE']._serialized_start=9958 + _globals['_CONFIGUREARBSEQUENCERESPONSE']._serialized_end=10004 + _globals['_CLEARARBSEQUENCEREQUEST']._serialized_start=10007 + _globals['_CLEARARBSEQUENCEREQUEST']._serialized_end=10179 + _globals['_CLEARARBSEQUENCERESPONSE']._serialized_start=10181 + _globals['_CLEARARBSEQUENCERESPONSE']._serialized_end=10223 + _globals['_CLEARARBMEMORYREQUEST']._serialized_start=10225 + _globals['_CLEARARBMEMORYREQUEST']._serialized_end=10284 + _globals['_CLEARARBMEMORYRESPONSE']._serialized_start=10286 + _globals['_CLEARARBMEMORYRESPONSE']._serialized_end=10326 + _globals['_QUERYFREQLISTCAPABILITIESREQUEST']._serialized_start=10328 + _globals['_QUERYFREQLISTCAPABILITIESREQUEST']._serialized_end=10398 + _globals['_QUERYFREQLISTCAPABILITIESRESPONSE']._serialized_start=10401 + _globals['_QUERYFREQLISTCAPABILITIESRESPONSE']._serialized_end=10691 + _globals['_CREATEFREQLISTREQUEST']._serialized_start=10694 + _globals['_CREATEFREQLISTREQUEST']._serialized_end=10886 + _globals['_CREATEFREQLISTRESPONSE']._serialized_start=10888 + _globals['_CREATEFREQLISTRESPONSE']._serialized_end=10959 + _globals['_CONFIGUREFREQLISTREQUEST']._serialized_start=10962 + _globals['_CONFIGUREFREQLISTREQUEST']._serialized_end=11136 + _globals['_CONFIGUREFREQLISTRESPONSE']._serialized_start=11138 + _globals['_CONFIGUREFREQLISTRESPONSE']._serialized_end=11181 + _globals['_CLEARFREQLISTREQUEST']._serialized_start=11184 + _globals['_CLEARFREQLISTREQUEST']._serialized_end=11377 + _globals['_CLEARFREQLISTRESPONSE']._serialized_start=11379 + _globals['_CLEARFREQLISTRESPONSE']._serialized_end=11418 + _globals['_WRITESCRIPTREQUEST']._serialized_start=11420 + _globals['_WRITESCRIPTREQUEST']._serialized_end=11514 + _globals['_WRITESCRIPTRESPONSE']._serialized_start=11516 + _globals['_WRITESCRIPTRESPONSE']._serialized_end=11553 + _globals['_DELETESCRIPTREQUEST']._serialized_start=11555 + _globals['_DELETESCRIPTREQUEST']._serialized_end=11655 + _globals['_DELETESCRIPTRESPONSE']._serialized_start=11657 + _globals['_DELETESCRIPTRESPONSE']._serialized_end=11695 + _globals['_EXPORTSIGNALREQUEST']._serialized_start=11698 + _globals['_EXPORTSIGNALREQUEST']._serialized_end=11883 + _globals['_EXPORTSIGNALRESPONSE']._serialized_start=11885 + _globals['_EXPORTSIGNALRESPONSE']._serialized_end=11923 + _globals['_ROUTESIGNALOUTREQUEST']._serialized_start=11926 + _globals['_ROUTESIGNALOUTREQUEST']._serialized_end=12235 + _globals['_ROUTESIGNALOUTRESPONSE']._serialized_start=12237 + _globals['_ROUTESIGNALOUTRESPONSE']._serialized_end=12277 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=12280 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=12448 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=12450 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=12499 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=12501 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=12608 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=12610 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=12668 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=12670 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=12748 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=12750 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=12809 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=12811 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=12875 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=12877 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=12922 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_start=12924 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_end=13046 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_start=13048 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_end=13114 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_start=13117 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_end=13245 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_start=13247 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_end=13306 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_start=13309 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_end=13523 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_start=13525 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_end=13585 + _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERREQUEST']._serialized_start=13587 + _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERREQUEST']._serialized_end=13686 + _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERRESPONSE']._serialized_start=13688 + _globals['_CONFIGURESOFTWAREEDGESCRIPTTRIGGERRESPONSE']._serialized_end=13748 + _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_start=13750 + _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_end=13835 + _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_start=13837 + _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_end=13883 + _globals['_CONFIGURECLOCKMODEREQUEST']._serialized_start=13886 + _globals['_CONFIGURECLOCKMODEREQUEST']._serialized_end=14040 + _globals['_CONFIGURECLOCKMODERESPONSE']._serialized_start=14042 + _globals['_CONFIGURECLOCKMODERESPONSE']._serialized_end=14086 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_start=14088 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_end=14188 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_start=14190 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_end=14246 + _globals['_ALLOCATEWAVEFORMREQUEST']._serialized_start=14248 + _globals['_ALLOCATEWAVEFORMREQUEST']._serialized_end=14354 + _globals['_ALLOCATEWAVEFORMRESPONSE']._serialized_start=14356 + _globals['_ALLOCATEWAVEFORMRESPONSE']._serialized_end=14423 + _globals['_SETWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_start=14426 + _globals['_SETWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_end=14657 + _globals['_SETWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_start=14659 + _globals['_SETWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_end=14713 + _globals['_WRITEWAVEFORMREQUEST']._serialized_start=14715 + _globals['_WRITEWAVEFORMREQUEST']._serialized_end=14834 + _globals['_WRITEWAVEFORMRESPONSE']._serialized_start=14836 + _globals['_WRITEWAVEFORMRESPONSE']._serialized_end=14875 + _globals['_WRITEBINARY16WAVEFORMREQUEST']._serialized_start=14877 + _globals['_WRITEBINARY16WAVEFORMREQUEST']._serialized_end=15004 + _globals['_WRITEBINARY16WAVEFORMRESPONSE']._serialized_start=15006 + _globals['_WRITEBINARY16WAVEFORMRESPONSE']._serialized_end=15053 + _globals['_WRITEWAVEFORMCOMPLEXF64REQUEST']._serialized_start=15056 + _globals['_WRITEWAVEFORMCOMPLEXF64REQUEST']._serialized_end=15217 + _globals['_WRITEWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=15219 + _globals['_WRITEWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=15268 + _globals['_WRITECOMPLEXBINARY16WAVEFORMREQUEST']._serialized_start=15271 + _globals['_WRITECOMPLEXBINARY16WAVEFORMREQUEST']._serialized_end=15434 + _globals['_WRITECOMPLEXBINARY16WAVEFORMRESPONSE']._serialized_start=15436 + _globals['_WRITECOMPLEXBINARY16WAVEFORMRESPONSE']._serialized_end=15490 + _globals['_SELFCALREQUEST']._serialized_start=15492 + _globals['_SELFCALREQUEST']._serialized_end=15544 + _globals['_SELFCALRESPONSE']._serialized_start=15546 + _globals['_SELFCALRESPONSE']._serialized_end=15579 + _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_start=15581 + _globals['_GETSELFCALSUPPORTEDREQUEST']._serialized_end=15645 + _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_start=15647 + _globals['_GETSELFCALSUPPORTEDRESPONSE']._serialized_end=15720 + _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_start=15722 + _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_end=15792 + _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_start=15794 + _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_end=15917 + _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_start=15919 + _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_end=15988 + _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_start=15990 + _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_end=16112 + _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_start=16114 + _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_end=16177 + _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_start=16179 + _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_end=16244 + _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_start=16246 + _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_end=16308 + _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_start=16310 + _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_end=16374 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=16376 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=16449 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=16451 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=16521 + _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_start=16523 + _globals['_READCURRENTTEMPERATUREREQUEST']._serialized_end=16590 + _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_start=16592 + _globals['_READCURRENTTEMPERATURERESPONSE']._serialized_end=16661 + _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSREQUEST']._serialized_start=16664 + _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSREQUEST']._serialized_end=16795 + _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSRESPONSE']._serialized_start=16797 + _globals['_CONFIGURECUSTOMFIRFILTERCOEFFICIENTSRESPONSE']._serialized_end=16859 + _globals['_GETFIRFILTERCOEFFICIENTSREQUEST']._serialized_start=16861 + _globals['_GETFIRFILTERCOEFFICIENTSREQUEST']._serialized_end=16952 + _globals['_GETFIRFILTERCOEFFICIENTSRESPONSE']._serialized_start=16954 + _globals['_GETFIRFILTERCOEFFICIENTSRESPONSE']._serialized_end=17069 + _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_start=17071 + _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_end=17164 + _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_start=17166 + _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_end=17238 + _globals['_WRITEP2PENDPOINTI16REQUEST']._serialized_start=17240 + _globals['_WRITEP2PENDPOINTI16REQUEST']._serialized_end=17350 + _globals['_WRITEP2PENDPOINTI16RESPONSE']._serialized_start=17352 + _globals['_WRITEP2PENDPOINTI16RESPONSE']._serialized_end=17397 + _globals['_CONFIGURESYNCHRONIZATIONREQUEST']._serialized_start=17399 + _globals['_CONFIGURESYNCHRONIZATIONREQUEST']._serialized_end=17522 + _globals['_CONFIGURESYNCHRONIZATIONRESPONSE']._serialized_start=17524 + _globals['_CONFIGURESYNCHRONIZATIONRESPONSE']._serialized_end=17574 + _globals['_ENABLEDIGITALPATTERNINGREQUEST']._serialized_start=17576 + _globals['_ENABLEDIGITALPATTERNINGREQUEST']._serialized_end=17666 + _globals['_ENABLEDIGITALPATTERNINGRESPONSE']._serialized_start=17668 + _globals['_ENABLEDIGITALPATTERNINGRESPONSE']._serialized_end=17717 + _globals['_DISABLEDIGITALPATTERNINGREQUEST']._serialized_start=17719 + _globals['_DISABLEDIGITALPATTERNINGREQUEST']._serialized_end=17810 + _globals['_DISABLEDIGITALPATTERNINGRESPONSE']._serialized_start=17812 + _globals['_DISABLEDIGITALPATTERNINGRESPONSE']._serialized_end=17862 + _globals['_ENABLEDIGITALFILTERREQUEST']._serialized_start=17864 + _globals['_ENABLEDIGITALFILTERREQUEST']._serialized_end=17950 + _globals['_ENABLEDIGITALFILTERRESPONSE']._serialized_start=17952 + _globals['_ENABLEDIGITALFILTERRESPONSE']._serialized_end=17997 + _globals['_DISABLEDIGITALFILTERREQUEST']._serialized_start=17999 + _globals['_DISABLEDIGITALFILTERREQUEST']._serialized_end=18086 + _globals['_DISABLEDIGITALFILTERRESPONSE']._serialized_start=18088 + _globals['_DISABLEDIGITALFILTERRESPONSE']._serialized_end=18134 + _globals['_ENABLEANALOGFILTERREQUEST']._serialized_start=18136 + _globals['_ENABLEANALOGFILTERREQUEST']._serialized_end=18258 + _globals['_ENABLEANALOGFILTERRESPONSE']._serialized_start=18260 + _globals['_ENABLEANALOGFILTERRESPONSE']._serialized_end=18304 + _globals['_DISABLEANALOGFILTERREQUEST']._serialized_start=18306 + _globals['_DISABLEANALOGFILTERREQUEST']._serialized_end=18392 + _globals['_DISABLEANALOGFILTERRESPONSE']._serialized_start=18394 + _globals['_DISABLEANALOGFILTERRESPONSE']._serialized_end=18439 + _globals['_CONFIGURESAMPLECLOCKSOURCEREQUEST']._serialized_start=18441 + _globals['_CONFIGURESAMPLECLOCKSOURCEREQUEST']._serialized_end=18541 + _globals['_CONFIGURESAMPLECLOCKSOURCERESPONSE']._serialized_start=18543 + _globals['_CONFIGURESAMPLECLOCKSOURCERESPONSE']._serialized_end=18595 + _globals['_CONFIGURETRIGGERMODEREQUEST']._serialized_start=18598 + _globals['_CONFIGURETRIGGERMODEREQUEST']._serialized_end=18784 + _globals['_CONFIGURETRIGGERMODERESPONSE']._serialized_start=18786 + _globals['_CONFIGURETRIGGERMODERESPONSE']._serialized_end=18832 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=18834 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=18930 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=18932 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=18990 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=18992 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19088 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19090 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19148 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19150 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19252 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19254 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19314 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19316 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19395 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19397 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19480 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=19483 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=19650 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=19652 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=19697 + _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_start=19700 + _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_end=19869 + _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_start=19871 + _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_end=19918 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=19921 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=20059 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=20061 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=20131 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=20134 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=20395 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=20397 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=20442 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=20445 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=20708 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=20710 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=20756 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=20759 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=21035 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=21037 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=21083 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=21086 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=21251 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=21253 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=21300 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=21303 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=21492 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=21494 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=21541 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=21544 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=21807 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=21809 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=21856 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=21859 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=22124 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=22126 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=22174 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=22177 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=22455 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=22457 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=22505 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=22508 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=22675 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=22677 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=22726 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=22729 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=22920 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=22922 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=22971 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=22974 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=23112 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=23114 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=23184 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=23187 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=23326 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=23328 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=23399 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=23402 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=23541 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=23543 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=23614 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=23617 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=23757 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=23759 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=23831 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=23834 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=23974 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=23976 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=24072 + _globals['_RESETATTRIBUTEREQUEST']._serialized_start=24075 + _globals['_RESETATTRIBUTEREQUEST']._serialized_end=24208 + _globals['_RESETATTRIBUTERESPONSE']._serialized_start=24210 + _globals['_RESETATTRIBUTERESPONSE']._serialized_end=24250 + _globals['_MANUALENABLEP2PSTREAMREQUEST']._serialized_start=24252 + _globals['_MANUALENABLEP2PSTREAMREQUEST']._serialized_end=24341 + _globals['_MANUALENABLEP2PSTREAMRESPONSE']._serialized_start=24343 + _globals['_MANUALENABLEP2PSTREAMRESPONSE']._serialized_end=24390 + _globals['_CREATEWAVEFORMFROMFILEHWSREQUEST']._serialized_start=24393 + _globals['_CREATEWAVEFORMFROMFILEHWSREQUEST']._serialized_end=24579 + _globals['_CREATEWAVEFORMFROMFILEHWSRESPONSE']._serialized_start=24581 + _globals['_CREATEWAVEFORMFROMFILEHWSRESPONSE']._serialized_end=24657 + _globals['_NIFGEN']._serialized_start=51304 + _globals['_NIFGEN']._serialized_end=65475 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nifgen/nifgen/nifgen_pb2_grpc.py b/generated/nifgen/nifgen/nifgen_pb2_grpc.py new file mode 100644 index 0000000000..ca2504232f --- /dev/null +++ b/generated/nifgen/nifgen/nifgen_pb2_grpc.py @@ -0,0 +1,4290 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nifgen_pb2 as nifgen__pb2 + + +class NiFgenStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Init = channel.unary_unary( + '/nifgen_grpc.NiFgen/Init', + request_serializer=nifgen__pb2.InitRequest.SerializeToString, + response_deserializer=nifgen__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/nifgen_grpc.NiFgen/InitWithOptions', + request_serializer=nifgen__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=nifgen__pb2.InitWithOptionsResponse.FromString, + ) + self.InitializeWithChannels = channel.unary_unary( + '/nifgen_grpc.NiFgen/InitializeWithChannels', + request_serializer=nifgen__pb2.InitializeWithChannelsRequest.SerializeToString, + response_deserializer=nifgen__pb2.InitializeWithChannelsResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nifgen_grpc.NiFgen/Close', + request_serializer=nifgen__pb2.CloseRequest.SerializeToString, + response_deserializer=nifgen__pb2.CloseResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/nifgen_grpc.NiFgen/Reset', + request_serializer=nifgen__pb2.ResetRequest.SerializeToString, + response_deserializer=nifgen__pb2.ResetResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/nifgen_grpc.NiFgen/SelfTest', + request_serializer=nifgen__pb2.SelfTestRequest.SerializeToString, + response_deserializer=nifgen__pb2.SelfTestResponse.FromString, + ) + self.ErrorQuery = channel.unary_unary( + '/nifgen_grpc.NiFgen/ErrorQuery', + request_serializer=nifgen__pb2.ErrorQueryRequest.SerializeToString, + response_deserializer=nifgen__pb2.ErrorQueryResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/nifgen_grpc.NiFgen/ErrorMessage', + request_serializer=nifgen__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=nifgen__pb2.ErrorMessageResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/nifgen_grpc.NiFgen/RevisionQuery', + request_serializer=nifgen__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=nifgen__pb2.RevisionQueryResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetError', + request_serializer=nifgen__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetErrorResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearError', + request_serializer=nifgen__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearErrorResponse.FromString, + ) + self.ErrorHandler = channel.unary_unary( + '/nifgen_grpc.NiFgen/ErrorHandler', + request_serializer=nifgen__pb2.ErrorHandlerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ErrorHandlerResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetChannelName', + request_serializer=nifgen__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetChannelNameResponse.FromString, + ) + self.ResetInterchangeCheck = channel.unary_unary( + '/nifgen_grpc.NiFgen/ResetInterchangeCheck', + request_serializer=nifgen__pb2.ResetInterchangeCheckRequest.SerializeToString, + response_deserializer=nifgen__pb2.ResetInterchangeCheckResponse.FromString, + ) + self.ClearInterchangeWarnings = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearInterchangeWarnings', + request_serializer=nifgen__pb2.ClearInterchangeWarningsRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearInterchangeWarningsResponse.FromString, + ) + self.InvalidateAllAttributes = channel.unary_unary( + '/nifgen_grpc.NiFgen/InvalidateAllAttributes', + request_serializer=nifgen__pb2.InvalidateAllAttributesRequest.SerializeToString, + response_deserializer=nifgen__pb2.InvalidateAllAttributesResponse.FromString, + ) + self.ResetWithDefaults = channel.unary_unary( + '/nifgen_grpc.NiFgen/ResetWithDefaults', + request_serializer=nifgen__pb2.ResetWithDefaultsRequest.SerializeToString, + response_deserializer=nifgen__pb2.ResetWithDefaultsResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/nifgen_grpc.NiFgen/Disable', + request_serializer=nifgen__pb2.DisableRequest.SerializeToString, + response_deserializer=nifgen__pb2.DisableResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/nifgen_grpc.NiFgen/Commit', + request_serializer=nifgen__pb2.CommitRequest.SerializeToString, + response_deserializer=nifgen__pb2.CommitResponse.FromString, + ) + self.GetHardwareState = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetHardwareState', + request_serializer=nifgen__pb2.GetHardwareStateRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetHardwareStateResponse.FromString, + ) + self.WaitUntilDone = channel.unary_unary( + '/nifgen_grpc.NiFgen/WaitUntilDone', + request_serializer=nifgen__pb2.WaitUntilDoneRequest.SerializeToString, + response_deserializer=nifgen__pb2.WaitUntilDoneResponse.FromString, + ) + self.IsDone = channel.unary_unary( + '/nifgen_grpc.NiFgen/IsDone', + request_serializer=nifgen__pb2.IsDoneRequest.SerializeToString, + response_deserializer=nifgen__pb2.IsDoneResponse.FromString, + ) + self.ResetDevice = channel.unary_unary( + '/nifgen_grpc.NiFgen/ResetDevice', + request_serializer=nifgen__pb2.ResetDeviceRequest.SerializeToString, + response_deserializer=nifgen__pb2.ResetDeviceResponse.FromString, + ) + self.ConfigureOperationMode = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureOperationMode', + request_serializer=nifgen__pb2.ConfigureOperationModeRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureOperationModeResponse.FromString, + ) + self.ConfigureOutputMode = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureOutputMode', + request_serializer=nifgen__pb2.ConfigureOutputModeRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureOutputModeResponse.FromString, + ) + self.ConfigureReferenceClock = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureReferenceClock', + request_serializer=nifgen__pb2.ConfigureReferenceClockRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureReferenceClockResponse.FromString, + ) + self.ConfigureOutputImpedance = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureOutputImpedance', + request_serializer=nifgen__pb2.ConfigureOutputImpedanceRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureOutputImpedanceResponse.FromString, + ) + self.ConfigureOutputEnabled = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureOutputEnabled', + request_serializer=nifgen__pb2.ConfigureOutputEnabledRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureOutputEnabledResponse.FromString, + ) + self.ConfigureChannels = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureChannels', + request_serializer=nifgen__pb2.ConfigureChannelsRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureChannelsResponse.FromString, + ) + self.InitiateGeneration = channel.unary_unary( + '/nifgen_grpc.NiFgen/InitiateGeneration', + request_serializer=nifgen__pb2.InitiateGenerationRequest.SerializeToString, + response_deserializer=nifgen__pb2.InitiateGenerationResponse.FromString, + ) + self.AbortGeneration = channel.unary_unary( + '/nifgen_grpc.NiFgen/AbortGeneration', + request_serializer=nifgen__pb2.AbortGenerationRequest.SerializeToString, + response_deserializer=nifgen__pb2.AbortGenerationResponse.FromString, + ) + self.ConfigureStandardWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureStandardWaveform', + request_serializer=nifgen__pb2.ConfigureStandardWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureStandardWaveformResponse.FromString, + ) + self.DefineUserStandardWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/DefineUserStandardWaveform', + request_serializer=nifgen__pb2.DefineUserStandardWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.DefineUserStandardWaveformResponse.FromString, + ) + self.ClearUserStandardWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearUserStandardWaveform', + request_serializer=nifgen__pb2.ClearUserStandardWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearUserStandardWaveformResponse.FromString, + ) + self.ConfigureFrequency = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureFrequency', + request_serializer=nifgen__pb2.ConfigureFrequencyRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureFrequencyResponse.FromString, + ) + self.ConfigureAmplitude = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureAmplitude', + request_serializer=nifgen__pb2.ConfigureAmplitudeRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureAmplitudeResponse.FromString, + ) + self.QueryArbWfmCapabilities = channel.unary_unary( + '/nifgen_grpc.NiFgen/QueryArbWfmCapabilities', + request_serializer=nifgen__pb2.QueryArbWfmCapabilitiesRequest.SerializeToString, + response_deserializer=nifgen__pb2.QueryArbWfmCapabilitiesResponse.FromString, + ) + self.CreateWaveformF64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateWaveformF64', + request_serializer=nifgen__pb2.CreateWaveformF64Request.SerializeToString, + response_deserializer=nifgen__pb2.CreateWaveformF64Response.FromString, + ) + self.CreateWaveformI16 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateWaveformI16', + request_serializer=nifgen__pb2.CreateWaveformI16Request.SerializeToString, + response_deserializer=nifgen__pb2.CreateWaveformI16Response.FromString, + ) + self.CreateWaveformComplexF64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateWaveformComplexF64', + request_serializer=nifgen__pb2.CreateWaveformComplexF64Request.SerializeToString, + response_deserializer=nifgen__pb2.CreateWaveformComplexF64Response.FromString, + ) + self.CreateWaveformFromFileI16 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateWaveformFromFileI16', + request_serializer=nifgen__pb2.CreateWaveformFromFileI16Request.SerializeToString, + response_deserializer=nifgen__pb2.CreateWaveformFromFileI16Response.FromString, + ) + self.CreateWaveformFromFileF64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateWaveformFromFileF64', + request_serializer=nifgen__pb2.CreateWaveformFromFileF64Request.SerializeToString, + response_deserializer=nifgen__pb2.CreateWaveformFromFileF64Response.FromString, + ) + self.ConfigureSampleRate = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureSampleRate', + request_serializer=nifgen__pb2.ConfigureSampleRateRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureSampleRateResponse.FromString, + ) + self.ConfigureArbWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureArbWaveform', + request_serializer=nifgen__pb2.ConfigureArbWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureArbWaveformResponse.FromString, + ) + self.ClearArbWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearArbWaveform', + request_serializer=nifgen__pb2.ClearArbWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearArbWaveformResponse.FromString, + ) + self.AllocateNamedWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/AllocateNamedWaveform', + request_serializer=nifgen__pb2.AllocateNamedWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.AllocateNamedWaveformResponse.FromString, + ) + self.SetNamedWaveformNextWritePosition = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetNamedWaveformNextWritePosition', + request_serializer=nifgen__pb2.SetNamedWaveformNextWritePositionRequest.SerializeToString, + response_deserializer=nifgen__pb2.SetNamedWaveformNextWritePositionResponse.FromString, + ) + self.WriteNamedWaveformF64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteNamedWaveformF64', + request_serializer=nifgen__pb2.WriteNamedWaveformF64Request.SerializeToString, + response_deserializer=nifgen__pb2.WriteNamedWaveformF64Response.FromString, + ) + self.WriteNamedWaveformI16 = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteNamedWaveformI16', + request_serializer=nifgen__pb2.WriteNamedWaveformI16Request.SerializeToString, + response_deserializer=nifgen__pb2.WriteNamedWaveformI16Response.FromString, + ) + self.WriteNamedWaveformComplexF64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexF64', + request_serializer=nifgen__pb2.WriteNamedWaveformComplexF64Request.SerializeToString, + response_deserializer=nifgen__pb2.WriteNamedWaveformComplexF64Response.FromString, + ) + self.WriteNamedWaveformComplexI16 = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexI16', + request_serializer=nifgen__pb2.WriteNamedWaveformComplexI16Request.SerializeToString, + response_deserializer=nifgen__pb2.WriteNamedWaveformComplexI16Response.FromString, + ) + self.DeleteNamedWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/DeleteNamedWaveform', + request_serializer=nifgen__pb2.DeleteNamedWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.DeleteNamedWaveformResponse.FromString, + ) + self.QueryArbSeqCapabilities = channel.unary_unary( + '/nifgen_grpc.NiFgen/QueryArbSeqCapabilities', + request_serializer=nifgen__pb2.QueryArbSeqCapabilitiesRequest.SerializeToString, + response_deserializer=nifgen__pb2.QueryArbSeqCapabilitiesResponse.FromString, + ) + self.CreateArbSequence = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateArbSequence', + request_serializer=nifgen__pb2.CreateArbSequenceRequest.SerializeToString, + response_deserializer=nifgen__pb2.CreateArbSequenceResponse.FromString, + ) + self.CreateAdvancedArbSequence = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateAdvancedArbSequence', + request_serializer=nifgen__pb2.CreateAdvancedArbSequenceRequest.SerializeToString, + response_deserializer=nifgen__pb2.CreateAdvancedArbSequenceResponse.FromString, + ) + self.ConfigureArbSequence = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureArbSequence', + request_serializer=nifgen__pb2.ConfigureArbSequenceRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureArbSequenceResponse.FromString, + ) + self.ClearArbSequence = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearArbSequence', + request_serializer=nifgen__pb2.ClearArbSequenceRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearArbSequenceResponse.FromString, + ) + self.ClearArbMemory = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearArbMemory', + request_serializer=nifgen__pb2.ClearArbMemoryRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearArbMemoryResponse.FromString, + ) + self.QueryFreqListCapabilities = channel.unary_unary( + '/nifgen_grpc.NiFgen/QueryFreqListCapabilities', + request_serializer=nifgen__pb2.QueryFreqListCapabilitiesRequest.SerializeToString, + response_deserializer=nifgen__pb2.QueryFreqListCapabilitiesResponse.FromString, + ) + self.CreateFreqList = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateFreqList', + request_serializer=nifgen__pb2.CreateFreqListRequest.SerializeToString, + response_deserializer=nifgen__pb2.CreateFreqListResponse.FromString, + ) + self.ConfigureFreqList = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureFreqList', + request_serializer=nifgen__pb2.ConfigureFreqListRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureFreqListResponse.FromString, + ) + self.ClearFreqList = channel.unary_unary( + '/nifgen_grpc.NiFgen/ClearFreqList', + request_serializer=nifgen__pb2.ClearFreqListRequest.SerializeToString, + response_deserializer=nifgen__pb2.ClearFreqListResponse.FromString, + ) + self.WriteScript = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteScript', + request_serializer=nifgen__pb2.WriteScriptRequest.SerializeToString, + response_deserializer=nifgen__pb2.WriteScriptResponse.FromString, + ) + self.DeleteScript = channel.unary_unary( + '/nifgen_grpc.NiFgen/DeleteScript', + request_serializer=nifgen__pb2.DeleteScriptRequest.SerializeToString, + response_deserializer=nifgen__pb2.DeleteScriptResponse.FromString, + ) + self.ExportSignal = channel.unary_unary( + '/nifgen_grpc.NiFgen/ExportSignal', + request_serializer=nifgen__pb2.ExportSignalRequest.SerializeToString, + response_deserializer=nifgen__pb2.ExportSignalResponse.FromString, + ) + self.RouteSignalOut = channel.unary_unary( + '/nifgen_grpc.NiFgen/RouteSignalOut', + request_serializer=nifgen__pb2.RouteSignalOutRequest.SerializeToString, + response_deserializer=nifgen__pb2.RouteSignalOutResponse.FromString, + ) + self.SendSoftwareEdgeTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/SendSoftwareEdgeTrigger', + request_serializer=nifgen__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.SendSoftwareEdgeTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeStartTrigger', + request_serializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeStartTrigger', + request_serializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + ) + self.DisableStartTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/DisableStartTrigger', + request_serializer=nifgen__pb2.DisableStartTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.DisableStartTriggerResponse.FromString, + ) + self.ConfigureP2PEndpointFullnessStartTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureP2PEndpointFullnessStartTrigger', + request_serializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeScriptTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeScriptTrigger', + request_serializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, + ) + self.ConfigureDigitalLevelScriptTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureDigitalLevelScriptTrigger', + request_serializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeScriptTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeScriptTrigger', + request_serializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerResponse.FromString, + ) + self.DisableScriptTrigger = channel.unary_unary( + '/nifgen_grpc.NiFgen/DisableScriptTrigger', + request_serializer=nifgen__pb2.DisableScriptTriggerRequest.SerializeToString, + response_deserializer=nifgen__pb2.DisableScriptTriggerResponse.FromString, + ) + self.ConfigureClockMode = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureClockMode', + request_serializer=nifgen__pb2.ConfigureClockModeRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureClockModeResponse.FromString, + ) + self.AdjustSampleClockRelativeDelay = channel.unary_unary( + '/nifgen_grpc.NiFgen/AdjustSampleClockRelativeDelay', + request_serializer=nifgen__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, + response_deserializer=nifgen__pb2.AdjustSampleClockRelativeDelayResponse.FromString, + ) + self.AllocateWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/AllocateWaveform', + request_serializer=nifgen__pb2.AllocateWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.AllocateWaveformResponse.FromString, + ) + self.SetWaveformNextWritePosition = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetWaveformNextWritePosition', + request_serializer=nifgen__pb2.SetWaveformNextWritePositionRequest.SerializeToString, + response_deserializer=nifgen__pb2.SetWaveformNextWritePositionResponse.FromString, + ) + self.WriteWaveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteWaveform', + request_serializer=nifgen__pb2.WriteWaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.WriteWaveformResponse.FromString, + ) + self.WriteBinary16Waveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteBinary16Waveform', + request_serializer=nifgen__pb2.WriteBinary16WaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.WriteBinary16WaveformResponse.FromString, + ) + self.WriteWaveformComplexF64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteWaveformComplexF64', + request_serializer=nifgen__pb2.WriteWaveformComplexF64Request.SerializeToString, + response_deserializer=nifgen__pb2.WriteWaveformComplexF64Response.FromString, + ) + self.WriteComplexBinary16Waveform = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteComplexBinary16Waveform', + request_serializer=nifgen__pb2.WriteComplexBinary16WaveformRequest.SerializeToString, + response_deserializer=nifgen__pb2.WriteComplexBinary16WaveformResponse.FromString, + ) + self.SelfCal = channel.unary_unary( + '/nifgen_grpc.NiFgen/SelfCal', + request_serializer=nifgen__pb2.SelfCalRequest.SerializeToString, + response_deserializer=nifgen__pb2.SelfCalResponse.FromString, + ) + self.GetSelfCalSupported = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetSelfCalSupported', + request_serializer=nifgen__pb2.GetSelfCalSupportedRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetSelfCalSupportedResponse.FromString, + ) + self.GetSelfCalLastDateAndTime = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetSelfCalLastDateAndTime', + request_serializer=nifgen__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetSelfCalLastDateAndTimeResponse.FromString, + ) + self.GetExtCalLastDateAndTime = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetExtCalLastDateAndTime', + request_serializer=nifgen__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetExtCalLastDateAndTimeResponse.FromString, + ) + self.GetSelfCalLastTemp = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetSelfCalLastTemp', + request_serializer=nifgen__pb2.GetSelfCalLastTempRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetSelfCalLastTempResponse.FromString, + ) + self.GetExtCalLastTemp = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetExtCalLastTemp', + request_serializer=nifgen__pb2.GetExtCalLastTempRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetExtCalLastTempResponse.FromString, + ) + self.GetExtCalRecommendedInterval = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetExtCalRecommendedInterval', + request_serializer=nifgen__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetExtCalRecommendedIntervalResponse.FromString, + ) + self.ReadCurrentTemperature = channel.unary_unary( + '/nifgen_grpc.NiFgen/ReadCurrentTemperature', + request_serializer=nifgen__pb2.ReadCurrentTemperatureRequest.SerializeToString, + response_deserializer=nifgen__pb2.ReadCurrentTemperatureResponse.FromString, + ) + self.ConfigureCustomFIRFilterCoefficients = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureCustomFIRFilterCoefficients', + request_serializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsResponse.FromString, + ) + self.GetFIRFilterCoefficients = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetFIRFilterCoefficients', + request_serializer=nifgen__pb2.GetFIRFilterCoefficientsRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetFIRFilterCoefficientsResponse.FromString, + ) + self.GetStreamEndpointHandle = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetStreamEndpointHandle', + request_serializer=nifgen__pb2.GetStreamEndpointHandleRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetStreamEndpointHandleResponse.FromString, + ) + self.WriteP2PEndpointI16 = channel.unary_unary( + '/nifgen_grpc.NiFgen/WriteP2PEndpointI16', + request_serializer=nifgen__pb2.WriteP2PEndpointI16Request.SerializeToString, + response_deserializer=nifgen__pb2.WriteP2PEndpointI16Response.FromString, + ) + self.ConfigureSynchronization = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureSynchronization', + request_serializer=nifgen__pb2.ConfigureSynchronizationRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureSynchronizationResponse.FromString, + ) + self.EnableDigitalPatterning = channel.unary_unary( + '/nifgen_grpc.NiFgen/EnableDigitalPatterning', + request_serializer=nifgen__pb2.EnableDigitalPatterningRequest.SerializeToString, + response_deserializer=nifgen__pb2.EnableDigitalPatterningResponse.FromString, + ) + self.DisableDigitalPatterning = channel.unary_unary( + '/nifgen_grpc.NiFgen/DisableDigitalPatterning', + request_serializer=nifgen__pb2.DisableDigitalPatterningRequest.SerializeToString, + response_deserializer=nifgen__pb2.DisableDigitalPatterningResponse.FromString, + ) + self.EnableDigitalFilter = channel.unary_unary( + '/nifgen_grpc.NiFgen/EnableDigitalFilter', + request_serializer=nifgen__pb2.EnableDigitalFilterRequest.SerializeToString, + response_deserializer=nifgen__pb2.EnableDigitalFilterResponse.FromString, + ) + self.DisableDigitalFilter = channel.unary_unary( + '/nifgen_grpc.NiFgen/DisableDigitalFilter', + request_serializer=nifgen__pb2.DisableDigitalFilterRequest.SerializeToString, + response_deserializer=nifgen__pb2.DisableDigitalFilterResponse.FromString, + ) + self.EnableAnalogFilter = channel.unary_unary( + '/nifgen_grpc.NiFgen/EnableAnalogFilter', + request_serializer=nifgen__pb2.EnableAnalogFilterRequest.SerializeToString, + response_deserializer=nifgen__pb2.EnableAnalogFilterResponse.FromString, + ) + self.DisableAnalogFilter = channel.unary_unary( + '/nifgen_grpc.NiFgen/DisableAnalogFilter', + request_serializer=nifgen__pb2.DisableAnalogFilterRequest.SerializeToString, + response_deserializer=nifgen__pb2.DisableAnalogFilterResponse.FromString, + ) + self.ConfigureSampleClockSource = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureSampleClockSource', + request_serializer=nifgen__pb2.ConfigureSampleClockSourceRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureSampleClockSourceResponse.FromString, + ) + self.ConfigureTriggerMode = channel.unary_unary( + '/nifgen_grpc.NiFgen/ConfigureTriggerMode', + request_serializer=nifgen__pb2.ConfigureTriggerModeRequest.SerializeToString, + response_deserializer=nifgen__pb2.ConfigureTriggerModeResponse.FromString, + ) + self.ImportAttributeConfigurationFile = channel.unary_unary( + '/nifgen_grpc.NiFgen/ImportAttributeConfigurationFile', + request_serializer=nifgen__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=nifgen__pb2.ImportAttributeConfigurationFileResponse.FromString, + ) + self.ExportAttributeConfigurationFile = channel.unary_unary( + '/nifgen_grpc.NiFgen/ExportAttributeConfigurationFile', + request_serializer=nifgen__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=nifgen__pb2.ExportAttributeConfigurationFileResponse.FromString, + ) + self.ImportAttributeConfigurationBuffer = channel.unary_unary( + '/nifgen_grpc.NiFgen/ImportAttributeConfigurationBuffer', + request_serializer=nifgen__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nifgen__pb2.ImportAttributeConfigurationBufferResponse.FromString, + ) + self.ExportAttributeConfigurationBuffer = channel.unary_unary( + '/nifgen_grpc.NiFgen/ExportAttributeConfigurationBuffer', + request_serializer=nifgen__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=nifgen__pb2.ExportAttributeConfigurationBufferResponse.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetAttributeViInt64', + request_serializer=nifgen__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=nifgen__pb2.SetAttributeViInt64Response.FromString, + ) + self.CheckAttributeViInt64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CheckAttributeViInt64', + request_serializer=nifgen__pb2.CheckAttributeViInt64Request.SerializeToString, + response_deserializer=nifgen__pb2.CheckAttributeViInt64Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetAttributeViInt64', + request_serializer=nifgen__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=nifgen__pb2.GetAttributeViInt64Response.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetAttributeViInt32', + request_serializer=nifgen__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nifgen__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetAttributeViReal64', + request_serializer=nifgen__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nifgen__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetAttributeViString', + request_serializer=nifgen__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nifgen__pb2.SetAttributeViStringResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetAttributeViBoolean', + request_serializer=nifgen__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nifgen__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/nifgen_grpc.NiFgen/SetAttributeViSession', + request_serializer=nifgen__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=nifgen__pb2.SetAttributeViSessionResponse.FromString, + ) + self.CheckAttributeViInt32 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CheckAttributeViInt32', + request_serializer=nifgen__pb2.CheckAttributeViInt32Request.SerializeToString, + response_deserializer=nifgen__pb2.CheckAttributeViInt32Response.FromString, + ) + self.CheckAttributeViReal64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/CheckAttributeViReal64', + request_serializer=nifgen__pb2.CheckAttributeViReal64Request.SerializeToString, + response_deserializer=nifgen__pb2.CheckAttributeViReal64Response.FromString, + ) + self.CheckAttributeViString = channel.unary_unary( + '/nifgen_grpc.NiFgen/CheckAttributeViString', + request_serializer=nifgen__pb2.CheckAttributeViStringRequest.SerializeToString, + response_deserializer=nifgen__pb2.CheckAttributeViStringResponse.FromString, + ) + self.CheckAttributeViBoolean = channel.unary_unary( + '/nifgen_grpc.NiFgen/CheckAttributeViBoolean', + request_serializer=nifgen__pb2.CheckAttributeViBooleanRequest.SerializeToString, + response_deserializer=nifgen__pb2.CheckAttributeViBooleanResponse.FromString, + ) + self.CheckAttributeViSession = channel.unary_unary( + '/nifgen_grpc.NiFgen/CheckAttributeViSession', + request_serializer=nifgen__pb2.CheckAttributeViSessionRequest.SerializeToString, + response_deserializer=nifgen__pb2.CheckAttributeViSessionResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetAttributeViInt32', + request_serializer=nifgen__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nifgen__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetAttributeViReal64', + request_serializer=nifgen__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nifgen__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetAttributeViString', + request_serializer=nifgen__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetAttributeViBoolean', + request_serializer=nifgen__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nifgen_grpc.NiFgen/GetAttributeViSession', + request_serializer=nifgen__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nifgen__pb2.GetAttributeViSessionResponse.FromString, + ) + self.ResetAttribute = channel.unary_unary( + '/nifgen_grpc.NiFgen/ResetAttribute', + request_serializer=nifgen__pb2.ResetAttributeRequest.SerializeToString, + response_deserializer=nifgen__pb2.ResetAttributeResponse.FromString, + ) + self.ManualEnableP2PStream = channel.unary_unary( + '/nifgen_grpc.NiFgen/ManualEnableP2PStream', + request_serializer=nifgen__pb2.ManualEnableP2PStreamRequest.SerializeToString, + response_deserializer=nifgen__pb2.ManualEnableP2PStreamResponse.FromString, + ) + self.CreateWaveformFromFileHWS = channel.unary_unary( + '/nifgen_grpc.NiFgen/CreateWaveformFromFileHWS', + request_serializer=nifgen__pb2.CreateWaveformFromFileHWSRequest.SerializeToString, + response_deserializer=nifgen__pb2.CreateWaveformFromFileHWSResponse.FromString, + ) + + +class NiFgenServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitializeWithChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorHandler(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetInterchangeCheck(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearInterchangeWarnings(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InvalidateAllAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetHardwareState(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitUntilDone(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsDone(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetDevice(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOperationMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureReferenceClock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputImpedance(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputEnabled(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureChannels(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitiateGeneration(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AbortGeneration(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureStandardWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DefineUserStandardWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearUserStandardWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureFrequency(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureAmplitude(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryArbWfmCapabilities(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWaveformF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWaveformI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWaveformComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWaveformFromFileI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWaveformFromFileF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSampleRate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureArbWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearArbWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AllocateNamedWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetNamedWaveformNextWritePosition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteNamedWaveformF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteNamedWaveformI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteNamedWaveformComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteNamedWaveformComplexI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteNamedWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryArbSeqCapabilities(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateArbSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateAdvancedArbSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureArbSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearArbSequence(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearArbMemory(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryFreqListCapabilities(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateFreqList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureFreqList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearFreqList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteScript(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteScript(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RouteSignalOut(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareEdgeTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureP2PEndpointFullnessStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalLevelScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureClockMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AdjustSampleClockRelativeDelay(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AllocateWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetWaveformNextWritePosition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteBinary16Waveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteWaveformComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteComplexBinary16Waveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalSupported(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalLastTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalLastTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalRecommendedInterval(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadCurrentTemperature(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureCustomFIRFilterCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetFIRFilterCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetStreamEndpointHandle(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteP2PEndpointI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSynchronization(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnableDigitalPatterning(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableDigitalPatterning(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnableDigitalFilter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableDigitalFilter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnableAnalogFilter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableAnalogFilter(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSampleClockSource(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ManualEnableP2PStream(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateWaveformFromFileHWS(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiFgenServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=nifgen__pb2.InitRequest.FromString, + response_serializer=nifgen__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=nifgen__pb2.InitWithOptionsRequest.FromString, + response_serializer=nifgen__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'InitializeWithChannels': grpc.unary_unary_rpc_method_handler( + servicer.InitializeWithChannels, + request_deserializer=nifgen__pb2.InitializeWithChannelsRequest.FromString, + response_serializer=nifgen__pb2.InitializeWithChannelsResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nifgen__pb2.CloseRequest.FromString, + response_serializer=nifgen__pb2.CloseResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=nifgen__pb2.ResetRequest.FromString, + response_serializer=nifgen__pb2.ResetResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=nifgen__pb2.SelfTestRequest.FromString, + response_serializer=nifgen__pb2.SelfTestResponse.SerializeToString, + ), + 'ErrorQuery': grpc.unary_unary_rpc_method_handler( + servicer.ErrorQuery, + request_deserializer=nifgen__pb2.ErrorQueryRequest.FromString, + response_serializer=nifgen__pb2.ErrorQueryResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=nifgen__pb2.ErrorMessageRequest.FromString, + response_serializer=nifgen__pb2.ErrorMessageResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=nifgen__pb2.RevisionQueryRequest.FromString, + response_serializer=nifgen__pb2.RevisionQueryResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nifgen__pb2.GetErrorRequest.FromString, + response_serializer=nifgen__pb2.GetErrorResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=nifgen__pb2.ClearErrorRequest.FromString, + response_serializer=nifgen__pb2.ClearErrorResponse.SerializeToString, + ), + 'ErrorHandler': grpc.unary_unary_rpc_method_handler( + servicer.ErrorHandler, + request_deserializer=nifgen__pb2.ErrorHandlerRequest.FromString, + response_serializer=nifgen__pb2.ErrorHandlerResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=nifgen__pb2.GetChannelNameRequest.FromString, + response_serializer=nifgen__pb2.GetChannelNameResponse.SerializeToString, + ), + 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( + servicer.ResetInterchangeCheck, + request_deserializer=nifgen__pb2.ResetInterchangeCheckRequest.FromString, + response_serializer=nifgen__pb2.ResetInterchangeCheckResponse.SerializeToString, + ), + 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( + servicer.ClearInterchangeWarnings, + request_deserializer=nifgen__pb2.ClearInterchangeWarningsRequest.FromString, + response_serializer=nifgen__pb2.ClearInterchangeWarningsResponse.SerializeToString, + ), + 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( + servicer.InvalidateAllAttributes, + request_deserializer=nifgen__pb2.InvalidateAllAttributesRequest.FromString, + response_serializer=nifgen__pb2.InvalidateAllAttributesResponse.SerializeToString, + ), + 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithDefaults, + request_deserializer=nifgen__pb2.ResetWithDefaultsRequest.FromString, + response_serializer=nifgen__pb2.ResetWithDefaultsResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=nifgen__pb2.DisableRequest.FromString, + response_serializer=nifgen__pb2.DisableResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=nifgen__pb2.CommitRequest.FromString, + response_serializer=nifgen__pb2.CommitResponse.SerializeToString, + ), + 'GetHardwareState': grpc.unary_unary_rpc_method_handler( + servicer.GetHardwareState, + request_deserializer=nifgen__pb2.GetHardwareStateRequest.FromString, + response_serializer=nifgen__pb2.GetHardwareStateResponse.SerializeToString, + ), + 'WaitUntilDone': grpc.unary_unary_rpc_method_handler( + servicer.WaitUntilDone, + request_deserializer=nifgen__pb2.WaitUntilDoneRequest.FromString, + response_serializer=nifgen__pb2.WaitUntilDoneResponse.SerializeToString, + ), + 'IsDone': grpc.unary_unary_rpc_method_handler( + servicer.IsDone, + request_deserializer=nifgen__pb2.IsDoneRequest.FromString, + response_serializer=nifgen__pb2.IsDoneResponse.SerializeToString, + ), + 'ResetDevice': grpc.unary_unary_rpc_method_handler( + servicer.ResetDevice, + request_deserializer=nifgen__pb2.ResetDeviceRequest.FromString, + response_serializer=nifgen__pb2.ResetDeviceResponse.SerializeToString, + ), + 'ConfigureOperationMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOperationMode, + request_deserializer=nifgen__pb2.ConfigureOperationModeRequest.FromString, + response_serializer=nifgen__pb2.ConfigureOperationModeResponse.SerializeToString, + ), + 'ConfigureOutputMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputMode, + request_deserializer=nifgen__pb2.ConfigureOutputModeRequest.FromString, + response_serializer=nifgen__pb2.ConfigureOutputModeResponse.SerializeToString, + ), + 'ConfigureReferenceClock': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureReferenceClock, + request_deserializer=nifgen__pb2.ConfigureReferenceClockRequest.FromString, + response_serializer=nifgen__pb2.ConfigureReferenceClockResponse.SerializeToString, + ), + 'ConfigureOutputImpedance': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputImpedance, + request_deserializer=nifgen__pb2.ConfigureOutputImpedanceRequest.FromString, + response_serializer=nifgen__pb2.ConfigureOutputImpedanceResponse.SerializeToString, + ), + 'ConfigureOutputEnabled': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputEnabled, + request_deserializer=nifgen__pb2.ConfigureOutputEnabledRequest.FromString, + response_serializer=nifgen__pb2.ConfigureOutputEnabledResponse.SerializeToString, + ), + 'ConfigureChannels': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureChannels, + request_deserializer=nifgen__pb2.ConfigureChannelsRequest.FromString, + response_serializer=nifgen__pb2.ConfigureChannelsResponse.SerializeToString, + ), + 'InitiateGeneration': grpc.unary_unary_rpc_method_handler( + servicer.InitiateGeneration, + request_deserializer=nifgen__pb2.InitiateGenerationRequest.FromString, + response_serializer=nifgen__pb2.InitiateGenerationResponse.SerializeToString, + ), + 'AbortGeneration': grpc.unary_unary_rpc_method_handler( + servicer.AbortGeneration, + request_deserializer=nifgen__pb2.AbortGenerationRequest.FromString, + response_serializer=nifgen__pb2.AbortGenerationResponse.SerializeToString, + ), + 'ConfigureStandardWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureStandardWaveform, + request_deserializer=nifgen__pb2.ConfigureStandardWaveformRequest.FromString, + response_serializer=nifgen__pb2.ConfigureStandardWaveformResponse.SerializeToString, + ), + 'DefineUserStandardWaveform': grpc.unary_unary_rpc_method_handler( + servicer.DefineUserStandardWaveform, + request_deserializer=nifgen__pb2.DefineUserStandardWaveformRequest.FromString, + response_serializer=nifgen__pb2.DefineUserStandardWaveformResponse.SerializeToString, + ), + 'ClearUserStandardWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ClearUserStandardWaveform, + request_deserializer=nifgen__pb2.ClearUserStandardWaveformRequest.FromString, + response_serializer=nifgen__pb2.ClearUserStandardWaveformResponse.SerializeToString, + ), + 'ConfigureFrequency': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureFrequency, + request_deserializer=nifgen__pb2.ConfigureFrequencyRequest.FromString, + response_serializer=nifgen__pb2.ConfigureFrequencyResponse.SerializeToString, + ), + 'ConfigureAmplitude': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureAmplitude, + request_deserializer=nifgen__pb2.ConfigureAmplitudeRequest.FromString, + response_serializer=nifgen__pb2.ConfigureAmplitudeResponse.SerializeToString, + ), + 'QueryArbWfmCapabilities': grpc.unary_unary_rpc_method_handler( + servicer.QueryArbWfmCapabilities, + request_deserializer=nifgen__pb2.QueryArbWfmCapabilitiesRequest.FromString, + response_serializer=nifgen__pb2.QueryArbWfmCapabilitiesResponse.SerializeToString, + ), + 'CreateWaveformF64': grpc.unary_unary_rpc_method_handler( + servicer.CreateWaveformF64, + request_deserializer=nifgen__pb2.CreateWaveformF64Request.FromString, + response_serializer=nifgen__pb2.CreateWaveformF64Response.SerializeToString, + ), + 'CreateWaveformI16': grpc.unary_unary_rpc_method_handler( + servicer.CreateWaveformI16, + request_deserializer=nifgen__pb2.CreateWaveformI16Request.FromString, + response_serializer=nifgen__pb2.CreateWaveformI16Response.SerializeToString, + ), + 'CreateWaveformComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.CreateWaveformComplexF64, + request_deserializer=nifgen__pb2.CreateWaveformComplexF64Request.FromString, + response_serializer=nifgen__pb2.CreateWaveformComplexF64Response.SerializeToString, + ), + 'CreateWaveformFromFileI16': grpc.unary_unary_rpc_method_handler( + servicer.CreateWaveformFromFileI16, + request_deserializer=nifgen__pb2.CreateWaveformFromFileI16Request.FromString, + response_serializer=nifgen__pb2.CreateWaveformFromFileI16Response.SerializeToString, + ), + 'CreateWaveformFromFileF64': grpc.unary_unary_rpc_method_handler( + servicer.CreateWaveformFromFileF64, + request_deserializer=nifgen__pb2.CreateWaveformFromFileF64Request.FromString, + response_serializer=nifgen__pb2.CreateWaveformFromFileF64Response.SerializeToString, + ), + 'ConfigureSampleRate': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSampleRate, + request_deserializer=nifgen__pb2.ConfigureSampleRateRequest.FromString, + response_serializer=nifgen__pb2.ConfigureSampleRateResponse.SerializeToString, + ), + 'ConfigureArbWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureArbWaveform, + request_deserializer=nifgen__pb2.ConfigureArbWaveformRequest.FromString, + response_serializer=nifgen__pb2.ConfigureArbWaveformResponse.SerializeToString, + ), + 'ClearArbWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ClearArbWaveform, + request_deserializer=nifgen__pb2.ClearArbWaveformRequest.FromString, + response_serializer=nifgen__pb2.ClearArbWaveformResponse.SerializeToString, + ), + 'AllocateNamedWaveform': grpc.unary_unary_rpc_method_handler( + servicer.AllocateNamedWaveform, + request_deserializer=nifgen__pb2.AllocateNamedWaveformRequest.FromString, + response_serializer=nifgen__pb2.AllocateNamedWaveformResponse.SerializeToString, + ), + 'SetNamedWaveformNextWritePosition': grpc.unary_unary_rpc_method_handler( + servicer.SetNamedWaveformNextWritePosition, + request_deserializer=nifgen__pb2.SetNamedWaveformNextWritePositionRequest.FromString, + response_serializer=nifgen__pb2.SetNamedWaveformNextWritePositionResponse.SerializeToString, + ), + 'WriteNamedWaveformF64': grpc.unary_unary_rpc_method_handler( + servicer.WriteNamedWaveformF64, + request_deserializer=nifgen__pb2.WriteNamedWaveformF64Request.FromString, + response_serializer=nifgen__pb2.WriteNamedWaveformF64Response.SerializeToString, + ), + 'WriteNamedWaveformI16': grpc.unary_unary_rpc_method_handler( + servicer.WriteNamedWaveformI16, + request_deserializer=nifgen__pb2.WriteNamedWaveformI16Request.FromString, + response_serializer=nifgen__pb2.WriteNamedWaveformI16Response.SerializeToString, + ), + 'WriteNamedWaveformComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.WriteNamedWaveformComplexF64, + request_deserializer=nifgen__pb2.WriteNamedWaveformComplexF64Request.FromString, + response_serializer=nifgen__pb2.WriteNamedWaveformComplexF64Response.SerializeToString, + ), + 'WriteNamedWaveformComplexI16': grpc.unary_unary_rpc_method_handler( + servicer.WriteNamedWaveformComplexI16, + request_deserializer=nifgen__pb2.WriteNamedWaveformComplexI16Request.FromString, + response_serializer=nifgen__pb2.WriteNamedWaveformComplexI16Response.SerializeToString, + ), + 'DeleteNamedWaveform': grpc.unary_unary_rpc_method_handler( + servicer.DeleteNamedWaveform, + request_deserializer=nifgen__pb2.DeleteNamedWaveformRequest.FromString, + response_serializer=nifgen__pb2.DeleteNamedWaveformResponse.SerializeToString, + ), + 'QueryArbSeqCapabilities': grpc.unary_unary_rpc_method_handler( + servicer.QueryArbSeqCapabilities, + request_deserializer=nifgen__pb2.QueryArbSeqCapabilitiesRequest.FromString, + response_serializer=nifgen__pb2.QueryArbSeqCapabilitiesResponse.SerializeToString, + ), + 'CreateArbSequence': grpc.unary_unary_rpc_method_handler( + servicer.CreateArbSequence, + request_deserializer=nifgen__pb2.CreateArbSequenceRequest.FromString, + response_serializer=nifgen__pb2.CreateArbSequenceResponse.SerializeToString, + ), + 'CreateAdvancedArbSequence': grpc.unary_unary_rpc_method_handler( + servicer.CreateAdvancedArbSequence, + request_deserializer=nifgen__pb2.CreateAdvancedArbSequenceRequest.FromString, + response_serializer=nifgen__pb2.CreateAdvancedArbSequenceResponse.SerializeToString, + ), + 'ConfigureArbSequence': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureArbSequence, + request_deserializer=nifgen__pb2.ConfigureArbSequenceRequest.FromString, + response_serializer=nifgen__pb2.ConfigureArbSequenceResponse.SerializeToString, + ), + 'ClearArbSequence': grpc.unary_unary_rpc_method_handler( + servicer.ClearArbSequence, + request_deserializer=nifgen__pb2.ClearArbSequenceRequest.FromString, + response_serializer=nifgen__pb2.ClearArbSequenceResponse.SerializeToString, + ), + 'ClearArbMemory': grpc.unary_unary_rpc_method_handler( + servicer.ClearArbMemory, + request_deserializer=nifgen__pb2.ClearArbMemoryRequest.FromString, + response_serializer=nifgen__pb2.ClearArbMemoryResponse.SerializeToString, + ), + 'QueryFreqListCapabilities': grpc.unary_unary_rpc_method_handler( + servicer.QueryFreqListCapabilities, + request_deserializer=nifgen__pb2.QueryFreqListCapabilitiesRequest.FromString, + response_serializer=nifgen__pb2.QueryFreqListCapabilitiesResponse.SerializeToString, + ), + 'CreateFreqList': grpc.unary_unary_rpc_method_handler( + servicer.CreateFreqList, + request_deserializer=nifgen__pb2.CreateFreqListRequest.FromString, + response_serializer=nifgen__pb2.CreateFreqListResponse.SerializeToString, + ), + 'ConfigureFreqList': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureFreqList, + request_deserializer=nifgen__pb2.ConfigureFreqListRequest.FromString, + response_serializer=nifgen__pb2.ConfigureFreqListResponse.SerializeToString, + ), + 'ClearFreqList': grpc.unary_unary_rpc_method_handler( + servicer.ClearFreqList, + request_deserializer=nifgen__pb2.ClearFreqListRequest.FromString, + response_serializer=nifgen__pb2.ClearFreqListResponse.SerializeToString, + ), + 'WriteScript': grpc.unary_unary_rpc_method_handler( + servicer.WriteScript, + request_deserializer=nifgen__pb2.WriteScriptRequest.FromString, + response_serializer=nifgen__pb2.WriteScriptResponse.SerializeToString, + ), + 'DeleteScript': grpc.unary_unary_rpc_method_handler( + servicer.DeleteScript, + request_deserializer=nifgen__pb2.DeleteScriptRequest.FromString, + response_serializer=nifgen__pb2.DeleteScriptResponse.SerializeToString, + ), + 'ExportSignal': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignal, + request_deserializer=nifgen__pb2.ExportSignalRequest.FromString, + response_serializer=nifgen__pb2.ExportSignalResponse.SerializeToString, + ), + 'RouteSignalOut': grpc.unary_unary_rpc_method_handler( + servicer.RouteSignalOut, + request_deserializer=nifgen__pb2.RouteSignalOutRequest.FromString, + response_serializer=nifgen__pb2.RouteSignalOutResponse.SerializeToString, + ), + 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareEdgeTrigger, + request_deserializer=nifgen__pb2.SendSoftwareEdgeTriggerRequest.FromString, + response_serializer=nifgen__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeStartTrigger, + request_deserializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, + response_serializer=nifgen__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeStartTrigger, + request_deserializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, + response_serializer=nifgen__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, + ), + 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableStartTrigger, + request_deserializer=nifgen__pb2.DisableStartTriggerRequest.FromString, + response_serializer=nifgen__pb2.DisableStartTriggerResponse.SerializeToString, + ), + 'ConfigureP2PEndpointFullnessStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureP2PEndpointFullnessStartTrigger, + request_deserializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.FromString, + response_serializer=nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeScriptTrigger, + request_deserializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerRequest.FromString, + response_serializer=nifgen__pb2.ConfigureDigitalEdgeScriptTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalLevelScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalLevelScriptTrigger, + request_deserializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerRequest.FromString, + response_serializer=nifgen__pb2.ConfigureDigitalLevelScriptTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeScriptTrigger, + request_deserializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerRequest.FromString, + response_serializer=nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerResponse.SerializeToString, + ), + 'DisableScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableScriptTrigger, + request_deserializer=nifgen__pb2.DisableScriptTriggerRequest.FromString, + response_serializer=nifgen__pb2.DisableScriptTriggerResponse.SerializeToString, + ), + 'ConfigureClockMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureClockMode, + request_deserializer=nifgen__pb2.ConfigureClockModeRequest.FromString, + response_serializer=nifgen__pb2.ConfigureClockModeResponse.SerializeToString, + ), + 'AdjustSampleClockRelativeDelay': grpc.unary_unary_rpc_method_handler( + servicer.AdjustSampleClockRelativeDelay, + request_deserializer=nifgen__pb2.AdjustSampleClockRelativeDelayRequest.FromString, + response_serializer=nifgen__pb2.AdjustSampleClockRelativeDelayResponse.SerializeToString, + ), + 'AllocateWaveform': grpc.unary_unary_rpc_method_handler( + servicer.AllocateWaveform, + request_deserializer=nifgen__pb2.AllocateWaveformRequest.FromString, + response_serializer=nifgen__pb2.AllocateWaveformResponse.SerializeToString, + ), + 'SetWaveformNextWritePosition': grpc.unary_unary_rpc_method_handler( + servicer.SetWaveformNextWritePosition, + request_deserializer=nifgen__pb2.SetWaveformNextWritePositionRequest.FromString, + response_serializer=nifgen__pb2.SetWaveformNextWritePositionResponse.SerializeToString, + ), + 'WriteWaveform': grpc.unary_unary_rpc_method_handler( + servicer.WriteWaveform, + request_deserializer=nifgen__pb2.WriteWaveformRequest.FromString, + response_serializer=nifgen__pb2.WriteWaveformResponse.SerializeToString, + ), + 'WriteBinary16Waveform': grpc.unary_unary_rpc_method_handler( + servicer.WriteBinary16Waveform, + request_deserializer=nifgen__pb2.WriteBinary16WaveformRequest.FromString, + response_serializer=nifgen__pb2.WriteBinary16WaveformResponse.SerializeToString, + ), + 'WriteWaveformComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.WriteWaveformComplexF64, + request_deserializer=nifgen__pb2.WriteWaveformComplexF64Request.FromString, + response_serializer=nifgen__pb2.WriteWaveformComplexF64Response.SerializeToString, + ), + 'WriteComplexBinary16Waveform': grpc.unary_unary_rpc_method_handler( + servicer.WriteComplexBinary16Waveform, + request_deserializer=nifgen__pb2.WriteComplexBinary16WaveformRequest.FromString, + response_serializer=nifgen__pb2.WriteComplexBinary16WaveformResponse.SerializeToString, + ), + 'SelfCal': grpc.unary_unary_rpc_method_handler( + servicer.SelfCal, + request_deserializer=nifgen__pb2.SelfCalRequest.FromString, + response_serializer=nifgen__pb2.SelfCalResponse.SerializeToString, + ), + 'GetSelfCalSupported': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalSupported, + request_deserializer=nifgen__pb2.GetSelfCalSupportedRequest.FromString, + response_serializer=nifgen__pb2.GetSelfCalSupportedResponse.SerializeToString, + ), + 'GetSelfCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalLastDateAndTime, + request_deserializer=nifgen__pb2.GetSelfCalLastDateAndTimeRequest.FromString, + response_serializer=nifgen__pb2.GetSelfCalLastDateAndTimeResponse.SerializeToString, + ), + 'GetExtCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalLastDateAndTime, + request_deserializer=nifgen__pb2.GetExtCalLastDateAndTimeRequest.FromString, + response_serializer=nifgen__pb2.GetExtCalLastDateAndTimeResponse.SerializeToString, + ), + 'GetSelfCalLastTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalLastTemp, + request_deserializer=nifgen__pb2.GetSelfCalLastTempRequest.FromString, + response_serializer=nifgen__pb2.GetSelfCalLastTempResponse.SerializeToString, + ), + 'GetExtCalLastTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalLastTemp, + request_deserializer=nifgen__pb2.GetExtCalLastTempRequest.FromString, + response_serializer=nifgen__pb2.GetExtCalLastTempResponse.SerializeToString, + ), + 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalRecommendedInterval, + request_deserializer=nifgen__pb2.GetExtCalRecommendedIntervalRequest.FromString, + response_serializer=nifgen__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, + ), + 'ReadCurrentTemperature': grpc.unary_unary_rpc_method_handler( + servicer.ReadCurrentTemperature, + request_deserializer=nifgen__pb2.ReadCurrentTemperatureRequest.FromString, + response_serializer=nifgen__pb2.ReadCurrentTemperatureResponse.SerializeToString, + ), + 'ConfigureCustomFIRFilterCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureCustomFIRFilterCoefficients, + request_deserializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsRequest.FromString, + response_serializer=nifgen__pb2.ConfigureCustomFIRFilterCoefficientsResponse.SerializeToString, + ), + 'GetFIRFilterCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.GetFIRFilterCoefficients, + request_deserializer=nifgen__pb2.GetFIRFilterCoefficientsRequest.FromString, + response_serializer=nifgen__pb2.GetFIRFilterCoefficientsResponse.SerializeToString, + ), + 'GetStreamEndpointHandle': grpc.unary_unary_rpc_method_handler( + servicer.GetStreamEndpointHandle, + request_deserializer=nifgen__pb2.GetStreamEndpointHandleRequest.FromString, + response_serializer=nifgen__pb2.GetStreamEndpointHandleResponse.SerializeToString, + ), + 'WriteP2PEndpointI16': grpc.unary_unary_rpc_method_handler( + servicer.WriteP2PEndpointI16, + request_deserializer=nifgen__pb2.WriteP2PEndpointI16Request.FromString, + response_serializer=nifgen__pb2.WriteP2PEndpointI16Response.SerializeToString, + ), + 'ConfigureSynchronization': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSynchronization, + request_deserializer=nifgen__pb2.ConfigureSynchronizationRequest.FromString, + response_serializer=nifgen__pb2.ConfigureSynchronizationResponse.SerializeToString, + ), + 'EnableDigitalPatterning': grpc.unary_unary_rpc_method_handler( + servicer.EnableDigitalPatterning, + request_deserializer=nifgen__pb2.EnableDigitalPatterningRequest.FromString, + response_serializer=nifgen__pb2.EnableDigitalPatterningResponse.SerializeToString, + ), + 'DisableDigitalPatterning': grpc.unary_unary_rpc_method_handler( + servicer.DisableDigitalPatterning, + request_deserializer=nifgen__pb2.DisableDigitalPatterningRequest.FromString, + response_serializer=nifgen__pb2.DisableDigitalPatterningResponse.SerializeToString, + ), + 'EnableDigitalFilter': grpc.unary_unary_rpc_method_handler( + servicer.EnableDigitalFilter, + request_deserializer=nifgen__pb2.EnableDigitalFilterRequest.FromString, + response_serializer=nifgen__pb2.EnableDigitalFilterResponse.SerializeToString, + ), + 'DisableDigitalFilter': grpc.unary_unary_rpc_method_handler( + servicer.DisableDigitalFilter, + request_deserializer=nifgen__pb2.DisableDigitalFilterRequest.FromString, + response_serializer=nifgen__pb2.DisableDigitalFilterResponse.SerializeToString, + ), + 'EnableAnalogFilter': grpc.unary_unary_rpc_method_handler( + servicer.EnableAnalogFilter, + request_deserializer=nifgen__pb2.EnableAnalogFilterRequest.FromString, + response_serializer=nifgen__pb2.EnableAnalogFilterResponse.SerializeToString, + ), + 'DisableAnalogFilter': grpc.unary_unary_rpc_method_handler( + servicer.DisableAnalogFilter, + request_deserializer=nifgen__pb2.DisableAnalogFilterRequest.FromString, + response_serializer=nifgen__pb2.DisableAnalogFilterResponse.SerializeToString, + ), + 'ConfigureSampleClockSource': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSampleClockSource, + request_deserializer=nifgen__pb2.ConfigureSampleClockSourceRequest.FromString, + response_serializer=nifgen__pb2.ConfigureSampleClockSourceResponse.SerializeToString, + ), + 'ConfigureTriggerMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerMode, + request_deserializer=nifgen__pb2.ConfigureTriggerModeRequest.FromString, + response_serializer=nifgen__pb2.ConfigureTriggerModeResponse.SerializeToString, + ), + 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationFile, + request_deserializer=nifgen__pb2.ImportAttributeConfigurationFileRequest.FromString, + response_serializer=nifgen__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationFile, + request_deserializer=nifgen__pb2.ExportAttributeConfigurationFileRequest.FromString, + response_serializer=nifgen__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationBuffer, + request_deserializer=nifgen__pb2.ImportAttributeConfigurationBufferRequest.FromString, + response_serializer=nifgen__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationBuffer, + request_deserializer=nifgen__pb2.ExportAttributeConfigurationBufferRequest.FromString, + response_serializer=nifgen__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=nifgen__pb2.SetAttributeViInt64Request.FromString, + response_serializer=nifgen__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'CheckAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt64, + request_deserializer=nifgen__pb2.CheckAttributeViInt64Request.FromString, + response_serializer=nifgen__pb2.CheckAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=nifgen__pb2.GetAttributeViInt64Request.FromString, + response_serializer=nifgen__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nifgen__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nifgen__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nifgen__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nifgen__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nifgen__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nifgen__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nifgen__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nifgen__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=nifgen__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=nifgen__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt32, + request_deserializer=nifgen__pb2.CheckAttributeViInt32Request.FromString, + response_serializer=nifgen__pb2.CheckAttributeViInt32Response.SerializeToString, + ), + 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViReal64, + request_deserializer=nifgen__pb2.CheckAttributeViReal64Request.FromString, + response_serializer=nifgen__pb2.CheckAttributeViReal64Response.SerializeToString, + ), + 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViString, + request_deserializer=nifgen__pb2.CheckAttributeViStringRequest.FromString, + response_serializer=nifgen__pb2.CheckAttributeViStringResponse.SerializeToString, + ), + 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViBoolean, + request_deserializer=nifgen__pb2.CheckAttributeViBooleanRequest.FromString, + response_serializer=nifgen__pb2.CheckAttributeViBooleanResponse.SerializeToString, + ), + 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViSession, + request_deserializer=nifgen__pb2.CheckAttributeViSessionRequest.FromString, + response_serializer=nifgen__pb2.CheckAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nifgen__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nifgen__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nifgen__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nifgen__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nifgen__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nifgen__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nifgen__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nifgen__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nifgen__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nifgen__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'ResetAttribute': grpc.unary_unary_rpc_method_handler( + servicer.ResetAttribute, + request_deserializer=nifgen__pb2.ResetAttributeRequest.FromString, + response_serializer=nifgen__pb2.ResetAttributeResponse.SerializeToString, + ), + 'ManualEnableP2PStream': grpc.unary_unary_rpc_method_handler( + servicer.ManualEnableP2PStream, + request_deserializer=nifgen__pb2.ManualEnableP2PStreamRequest.FromString, + response_serializer=nifgen__pb2.ManualEnableP2PStreamResponse.SerializeToString, + ), + 'CreateWaveformFromFileHWS': grpc.unary_unary_rpc_method_handler( + servicer.CreateWaveformFromFileHWS, + request_deserializer=nifgen__pb2.CreateWaveformFromFileHWSRequest.FromString, + response_serializer=nifgen__pb2.CreateWaveformFromFileHWSResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nifgen_grpc.NiFgen', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiFgen(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Init', + nifgen__pb2.InitRequest.SerializeToString, + nifgen__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InitWithOptions', + nifgen__pb2.InitWithOptionsRequest.SerializeToString, + nifgen__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitializeWithChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InitializeWithChannels', + nifgen__pb2.InitializeWithChannelsRequest.SerializeToString, + nifgen__pb2.InitializeWithChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Close', + nifgen__pb2.CloseRequest.SerializeToString, + nifgen__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Reset', + nifgen__pb2.ResetRequest.SerializeToString, + nifgen__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SelfTest', + nifgen__pb2.SelfTestRequest.SerializeToString, + nifgen__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ErrorQuery', + nifgen__pb2.ErrorQueryRequest.SerializeToString, + nifgen__pb2.ErrorQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ErrorMessage', + nifgen__pb2.ErrorMessageRequest.SerializeToString, + nifgen__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/RevisionQuery', + nifgen__pb2.RevisionQueryRequest.SerializeToString, + nifgen__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetError', + nifgen__pb2.GetErrorRequest.SerializeToString, + nifgen__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearError', + nifgen__pb2.ClearErrorRequest.SerializeToString, + nifgen__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorHandler(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ErrorHandler', + nifgen__pb2.ErrorHandlerRequest.SerializeToString, + nifgen__pb2.ErrorHandlerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetChannelName', + nifgen__pb2.GetChannelNameRequest.SerializeToString, + nifgen__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetInterchangeCheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetInterchangeCheck', + nifgen__pb2.ResetInterchangeCheckRequest.SerializeToString, + nifgen__pb2.ResetInterchangeCheckResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearInterchangeWarnings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearInterchangeWarnings', + nifgen__pb2.ClearInterchangeWarningsRequest.SerializeToString, + nifgen__pb2.ClearInterchangeWarningsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InvalidateAllAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InvalidateAllAttributes', + nifgen__pb2.InvalidateAllAttributesRequest.SerializeToString, + nifgen__pb2.InvalidateAllAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetWithDefaults', + nifgen__pb2.ResetWithDefaultsRequest.SerializeToString, + nifgen__pb2.ResetWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Disable', + nifgen__pb2.DisableRequest.SerializeToString, + nifgen__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/Commit', + nifgen__pb2.CommitRequest.SerializeToString, + nifgen__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetHardwareState(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetHardwareState', + nifgen__pb2.GetHardwareStateRequest.SerializeToString, + nifgen__pb2.GetHardwareStateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitUntilDone(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WaitUntilDone', + nifgen__pb2.WaitUntilDoneRequest.SerializeToString, + nifgen__pb2.WaitUntilDoneResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsDone(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/IsDone', + nifgen__pb2.IsDoneRequest.SerializeToString, + nifgen__pb2.IsDoneResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetDevice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetDevice', + nifgen__pb2.ResetDeviceRequest.SerializeToString, + nifgen__pb2.ResetDeviceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOperationMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOperationMode', + nifgen__pb2.ConfigureOperationModeRequest.SerializeToString, + nifgen__pb2.ConfigureOperationModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOutputMode', + nifgen__pb2.ConfigureOutputModeRequest.SerializeToString, + nifgen__pb2.ConfigureOutputModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureReferenceClock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureReferenceClock', + nifgen__pb2.ConfigureReferenceClockRequest.SerializeToString, + nifgen__pb2.ConfigureReferenceClockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputImpedance(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOutputImpedance', + nifgen__pb2.ConfigureOutputImpedanceRequest.SerializeToString, + nifgen__pb2.ConfigureOutputImpedanceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputEnabled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureOutputEnabled', + nifgen__pb2.ConfigureOutputEnabledRequest.SerializeToString, + nifgen__pb2.ConfigureOutputEnabledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureChannels(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureChannels', + nifgen__pb2.ConfigureChannelsRequest.SerializeToString, + nifgen__pb2.ConfigureChannelsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitiateGeneration(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/InitiateGeneration', + nifgen__pb2.InitiateGenerationRequest.SerializeToString, + nifgen__pb2.InitiateGenerationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AbortGeneration(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AbortGeneration', + nifgen__pb2.AbortGenerationRequest.SerializeToString, + nifgen__pb2.AbortGenerationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureStandardWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureStandardWaveform', + nifgen__pb2.ConfigureStandardWaveformRequest.SerializeToString, + nifgen__pb2.ConfigureStandardWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DefineUserStandardWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DefineUserStandardWaveform', + nifgen__pb2.DefineUserStandardWaveformRequest.SerializeToString, + nifgen__pb2.DefineUserStandardWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearUserStandardWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearUserStandardWaveform', + nifgen__pb2.ClearUserStandardWaveformRequest.SerializeToString, + nifgen__pb2.ClearUserStandardWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureFrequency(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureFrequency', + nifgen__pb2.ConfigureFrequencyRequest.SerializeToString, + nifgen__pb2.ConfigureFrequencyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureAmplitude(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureAmplitude', + nifgen__pb2.ConfigureAmplitudeRequest.SerializeToString, + nifgen__pb2.ConfigureAmplitudeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryArbWfmCapabilities(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/QueryArbWfmCapabilities', + nifgen__pb2.QueryArbWfmCapabilitiesRequest.SerializeToString, + nifgen__pb2.QueryArbWfmCapabilitiesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWaveformF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformF64', + nifgen__pb2.CreateWaveformF64Request.SerializeToString, + nifgen__pb2.CreateWaveformF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWaveformI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformI16', + nifgen__pb2.CreateWaveformI16Request.SerializeToString, + nifgen__pb2.CreateWaveformI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWaveformComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformComplexF64', + nifgen__pb2.CreateWaveformComplexF64Request.SerializeToString, + nifgen__pb2.CreateWaveformComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWaveformFromFileI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformFromFileI16', + nifgen__pb2.CreateWaveformFromFileI16Request.SerializeToString, + nifgen__pb2.CreateWaveformFromFileI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWaveformFromFileF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformFromFileF64', + nifgen__pb2.CreateWaveformFromFileF64Request.SerializeToString, + nifgen__pb2.CreateWaveformFromFileF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSampleRate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSampleRate', + nifgen__pb2.ConfigureSampleRateRequest.SerializeToString, + nifgen__pb2.ConfigureSampleRateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureArbWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureArbWaveform', + nifgen__pb2.ConfigureArbWaveformRequest.SerializeToString, + nifgen__pb2.ConfigureArbWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearArbWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearArbWaveform', + nifgen__pb2.ClearArbWaveformRequest.SerializeToString, + nifgen__pb2.ClearArbWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AllocateNamedWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AllocateNamedWaveform', + nifgen__pb2.AllocateNamedWaveformRequest.SerializeToString, + nifgen__pb2.AllocateNamedWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetNamedWaveformNextWritePosition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetNamedWaveformNextWritePosition', + nifgen__pb2.SetNamedWaveformNextWritePositionRequest.SerializeToString, + nifgen__pb2.SetNamedWaveformNextWritePositionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteNamedWaveformF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformF64', + nifgen__pb2.WriteNamedWaveformF64Request.SerializeToString, + nifgen__pb2.WriteNamedWaveformF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteNamedWaveformI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformI16', + nifgen__pb2.WriteNamedWaveformI16Request.SerializeToString, + nifgen__pb2.WriteNamedWaveformI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteNamedWaveformComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexF64', + nifgen__pb2.WriteNamedWaveformComplexF64Request.SerializeToString, + nifgen__pb2.WriteNamedWaveformComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteNamedWaveformComplexI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteNamedWaveformComplexI16', + nifgen__pb2.WriteNamedWaveformComplexI16Request.SerializeToString, + nifgen__pb2.WriteNamedWaveformComplexI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteNamedWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DeleteNamedWaveform', + nifgen__pb2.DeleteNamedWaveformRequest.SerializeToString, + nifgen__pb2.DeleteNamedWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryArbSeqCapabilities(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/QueryArbSeqCapabilities', + nifgen__pb2.QueryArbSeqCapabilitiesRequest.SerializeToString, + nifgen__pb2.QueryArbSeqCapabilitiesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateArbSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateArbSequence', + nifgen__pb2.CreateArbSequenceRequest.SerializeToString, + nifgen__pb2.CreateArbSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateAdvancedArbSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateAdvancedArbSequence', + nifgen__pb2.CreateAdvancedArbSequenceRequest.SerializeToString, + nifgen__pb2.CreateAdvancedArbSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureArbSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureArbSequence', + nifgen__pb2.ConfigureArbSequenceRequest.SerializeToString, + nifgen__pb2.ConfigureArbSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearArbSequence(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearArbSequence', + nifgen__pb2.ClearArbSequenceRequest.SerializeToString, + nifgen__pb2.ClearArbSequenceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearArbMemory(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearArbMemory', + nifgen__pb2.ClearArbMemoryRequest.SerializeToString, + nifgen__pb2.ClearArbMemoryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryFreqListCapabilities(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/QueryFreqListCapabilities', + nifgen__pb2.QueryFreqListCapabilitiesRequest.SerializeToString, + nifgen__pb2.QueryFreqListCapabilitiesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateFreqList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateFreqList', + nifgen__pb2.CreateFreqListRequest.SerializeToString, + nifgen__pb2.CreateFreqListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureFreqList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureFreqList', + nifgen__pb2.ConfigureFreqListRequest.SerializeToString, + nifgen__pb2.ConfigureFreqListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearFreqList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ClearFreqList', + nifgen__pb2.ClearFreqListRequest.SerializeToString, + nifgen__pb2.ClearFreqListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteScript(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteScript', + nifgen__pb2.WriteScriptRequest.SerializeToString, + nifgen__pb2.WriteScriptResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteScript(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DeleteScript', + nifgen__pb2.DeleteScriptRequest.SerializeToString, + nifgen__pb2.DeleteScriptResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ExportSignal', + nifgen__pb2.ExportSignalRequest.SerializeToString, + nifgen__pb2.ExportSignalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RouteSignalOut(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/RouteSignalOut', + nifgen__pb2.RouteSignalOutRequest.SerializeToString, + nifgen__pb2.RouteSignalOutResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareEdgeTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SendSoftwareEdgeTrigger', + nifgen__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + nifgen__pb2.SendSoftwareEdgeTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeStartTrigger', + nifgen__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + nifgen__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeStartTrigger', + nifgen__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + nifgen__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableStartTrigger', + nifgen__pb2.DisableStartTriggerRequest.SerializeToString, + nifgen__pb2.DisableStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureP2PEndpointFullnessStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureP2PEndpointFullnessStartTrigger', + nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, + nifgen__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureDigitalEdgeScriptTrigger', + nifgen__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, + nifgen__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalLevelScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureDigitalLevelScriptTrigger', + nifgen__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, + nifgen__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSoftwareEdgeScriptTrigger', + nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerRequest.SerializeToString, + nifgen__pb2.ConfigureSoftwareEdgeScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableScriptTrigger', + nifgen__pb2.DisableScriptTriggerRequest.SerializeToString, + nifgen__pb2.DisableScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureClockMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureClockMode', + nifgen__pb2.ConfigureClockModeRequest.SerializeToString, + nifgen__pb2.ConfigureClockModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AdjustSampleClockRelativeDelay(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AdjustSampleClockRelativeDelay', + nifgen__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, + nifgen__pb2.AdjustSampleClockRelativeDelayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AllocateWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/AllocateWaveform', + nifgen__pb2.AllocateWaveformRequest.SerializeToString, + nifgen__pb2.AllocateWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetWaveformNextWritePosition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetWaveformNextWritePosition', + nifgen__pb2.SetWaveformNextWritePositionRequest.SerializeToString, + nifgen__pb2.SetWaveformNextWritePositionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteWaveform', + nifgen__pb2.WriteWaveformRequest.SerializeToString, + nifgen__pb2.WriteWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteBinary16Waveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteBinary16Waveform', + nifgen__pb2.WriteBinary16WaveformRequest.SerializeToString, + nifgen__pb2.WriteBinary16WaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteWaveformComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteWaveformComplexF64', + nifgen__pb2.WriteWaveformComplexF64Request.SerializeToString, + nifgen__pb2.WriteWaveformComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteComplexBinary16Waveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteComplexBinary16Waveform', + nifgen__pb2.WriteComplexBinary16WaveformRequest.SerializeToString, + nifgen__pb2.WriteComplexBinary16WaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SelfCal', + nifgen__pb2.SelfCalRequest.SerializeToString, + nifgen__pb2.SelfCalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalSupported(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetSelfCalSupported', + nifgen__pb2.GetSelfCalSupportedRequest.SerializeToString, + nifgen__pb2.GetSelfCalSupportedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetSelfCalLastDateAndTime', + nifgen__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, + nifgen__pb2.GetSelfCalLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetExtCalLastDateAndTime', + nifgen__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, + nifgen__pb2.GetExtCalLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalLastTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetSelfCalLastTemp', + nifgen__pb2.GetSelfCalLastTempRequest.SerializeToString, + nifgen__pb2.GetSelfCalLastTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalLastTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetExtCalLastTemp', + nifgen__pb2.GetExtCalLastTempRequest.SerializeToString, + nifgen__pb2.GetExtCalLastTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalRecommendedInterval(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetExtCalRecommendedInterval', + nifgen__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + nifgen__pb2.GetExtCalRecommendedIntervalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadCurrentTemperature(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ReadCurrentTemperature', + nifgen__pb2.ReadCurrentTemperatureRequest.SerializeToString, + nifgen__pb2.ReadCurrentTemperatureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureCustomFIRFilterCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureCustomFIRFilterCoefficients', + nifgen__pb2.ConfigureCustomFIRFilterCoefficientsRequest.SerializeToString, + nifgen__pb2.ConfigureCustomFIRFilterCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetFIRFilterCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetFIRFilterCoefficients', + nifgen__pb2.GetFIRFilterCoefficientsRequest.SerializeToString, + nifgen__pb2.GetFIRFilterCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetStreamEndpointHandle(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetStreamEndpointHandle', + nifgen__pb2.GetStreamEndpointHandleRequest.SerializeToString, + nifgen__pb2.GetStreamEndpointHandleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteP2PEndpointI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/WriteP2PEndpointI16', + nifgen__pb2.WriteP2PEndpointI16Request.SerializeToString, + nifgen__pb2.WriteP2PEndpointI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSynchronization(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSynchronization', + nifgen__pb2.ConfigureSynchronizationRequest.SerializeToString, + nifgen__pb2.ConfigureSynchronizationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnableDigitalPatterning(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/EnableDigitalPatterning', + nifgen__pb2.EnableDigitalPatterningRequest.SerializeToString, + nifgen__pb2.EnableDigitalPatterningResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableDigitalPatterning(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableDigitalPatterning', + nifgen__pb2.DisableDigitalPatterningRequest.SerializeToString, + nifgen__pb2.DisableDigitalPatterningResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnableDigitalFilter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/EnableDigitalFilter', + nifgen__pb2.EnableDigitalFilterRequest.SerializeToString, + nifgen__pb2.EnableDigitalFilterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableDigitalFilter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableDigitalFilter', + nifgen__pb2.DisableDigitalFilterRequest.SerializeToString, + nifgen__pb2.DisableDigitalFilterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnableAnalogFilter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/EnableAnalogFilter', + nifgen__pb2.EnableAnalogFilterRequest.SerializeToString, + nifgen__pb2.EnableAnalogFilterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableAnalogFilter(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/DisableAnalogFilter', + nifgen__pb2.DisableAnalogFilterRequest.SerializeToString, + nifgen__pb2.DisableAnalogFilterResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSampleClockSource(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureSampleClockSource', + nifgen__pb2.ConfigureSampleClockSourceRequest.SerializeToString, + nifgen__pb2.ConfigureSampleClockSourceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ConfigureTriggerMode', + nifgen__pb2.ConfigureTriggerModeRequest.SerializeToString, + nifgen__pb2.ConfigureTriggerModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ImportAttributeConfigurationFile', + nifgen__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + nifgen__pb2.ImportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ExportAttributeConfigurationFile', + nifgen__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + nifgen__pb2.ExportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ImportAttributeConfigurationBuffer', + nifgen__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + nifgen__pb2.ImportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ExportAttributeConfigurationBuffer', + nifgen__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + nifgen__pb2.ExportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViInt64', + nifgen__pb2.SetAttributeViInt64Request.SerializeToString, + nifgen__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViInt64', + nifgen__pb2.CheckAttributeViInt64Request.SerializeToString, + nifgen__pb2.CheckAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViInt64', + nifgen__pb2.GetAttributeViInt64Request.SerializeToString, + nifgen__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViInt32', + nifgen__pb2.SetAttributeViInt32Request.SerializeToString, + nifgen__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViReal64', + nifgen__pb2.SetAttributeViReal64Request.SerializeToString, + nifgen__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViString', + nifgen__pb2.SetAttributeViStringRequest.SerializeToString, + nifgen__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViBoolean', + nifgen__pb2.SetAttributeViBooleanRequest.SerializeToString, + nifgen__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/SetAttributeViSession', + nifgen__pb2.SetAttributeViSessionRequest.SerializeToString, + nifgen__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViInt32', + nifgen__pb2.CheckAttributeViInt32Request.SerializeToString, + nifgen__pb2.CheckAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViReal64', + nifgen__pb2.CheckAttributeViReal64Request.SerializeToString, + nifgen__pb2.CheckAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViString', + nifgen__pb2.CheckAttributeViStringRequest.SerializeToString, + nifgen__pb2.CheckAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViBoolean', + nifgen__pb2.CheckAttributeViBooleanRequest.SerializeToString, + nifgen__pb2.CheckAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CheckAttributeViSession', + nifgen__pb2.CheckAttributeViSessionRequest.SerializeToString, + nifgen__pb2.CheckAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViInt32', + nifgen__pb2.GetAttributeViInt32Request.SerializeToString, + nifgen__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViReal64', + nifgen__pb2.GetAttributeViReal64Request.SerializeToString, + nifgen__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViString', + nifgen__pb2.GetAttributeViStringRequest.SerializeToString, + nifgen__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViBoolean', + nifgen__pb2.GetAttributeViBooleanRequest.SerializeToString, + nifgen__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/GetAttributeViSession', + nifgen__pb2.GetAttributeViSessionRequest.SerializeToString, + nifgen__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ResetAttribute', + nifgen__pb2.ResetAttributeRequest.SerializeToString, + nifgen__pb2.ResetAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ManualEnableP2PStream(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/ManualEnableP2PStream', + nifgen__pb2.ManualEnableP2PStreamRequest.SerializeToString, + nifgen__pb2.ManualEnableP2PStreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateWaveformFromFileHWS(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nifgen_grpc.NiFgen/CreateWaveformFromFileHWS', + nifgen__pb2.CreateWaveformFromFileHWSRequest.SerializeToString, + nifgen__pb2.CreateWaveformFromFileHWSResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nifgen/nifgen/session.py b/generated/nifgen/nifgen/session.py new file mode 100644 index 0000000000..0429bfcb3f --- /dev/null +++ b/generated/nifgen/nifgen/session.py @@ -0,0 +1,4413 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nifgen._attributes as _attributes +import nifgen._converters as _converters +import nifgen._library_interpreter as _library_interpreter +import nifgen.enums as enums +import nifgen.errors as errors + +import hightime +import nitclk + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Generation(object): + def __init__(self, session): + self._session = session + self._session._initiate_generation() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-FGEN sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + absolute_delay = _attributes.AttributeViReal64(1150413) + '''Type: float + + Specifies the sub-Sample Clock delay, in seconds, to apply to the + waveform. Use this property to reduce the trigger jitter when + synchronizing multiple devices with NI-TClk. This property can also help + maintain synchronization repeatability by writing the absolute delay + value of a previous measurement to the current session. + To set this property, the waveform generator must be in the Idle + (Configuration) state. + **Units**: seconds (s) + **Valid Values**: Plus or minus half of one Sample Clock period + **Default Value**: 0.0 + **Supported Waveform Generators**: PXIe-5413/5423/5433 + + Note: + If this property is set, NI-TClk cannot perform any sub-Sample Clock + adjustment. + ''' + all_marker_events_latched_status = _attributes.AttributeViInt32(1150349) + '''Type: int + + Returns a bit field of the latched status of all Marker Events. Write 0 to this property to clear the latched status of all Marker Events. + ''' + all_marker_events_live_status = _attributes.AttributeViInt32(1150344) + '''Type: int + + Returns a bit field of the live status of all Marker Events. + ''' + analog_data_mask = _attributes.AttributeViInt32(1150234) + '''Type: int + + Specifies the mask to apply to the analog output. The masked data is replaced with the data in analog_static_value. + ''' + analog_filter_enabled = _attributes.AttributeViBoolean(1150103) + '''Type: bool + + Controls whether the signal generator applies to an analog filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. + ''' + analog_path = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogPath, 1150222) + '''Type: enums.AnalogPath + + Specifies the analog signal path that should be used. The main path allows you to configure gain, offset, analog filter status, output impedance, and output enable. The main path has two amplifier options, high- and low-gain. + The direct path presents a much smaller gain range, and you cannot adjust offset or the filter status. The direct path also provides a smaller output range but also lower distortion. NI-FGEN normally chooses the amplifier based on the user-specified gain. + ''' + analog_static_value = _attributes.AttributeViInt32(1150235) + '''Type: int + + Specifies the static value that replaces data masked by analog_data_mask. + ''' + arb_gain = _attributes.AttributeViReal64(1250202) + '''Type: float + + Specifies the factor by which the signal generator scales the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to scale the arbitrary waveform to other ranges. + For example, when you set this property to 2.0, the output signal ranges from -2.0 V to +2.0 V. + Use this property when output_mode is set to OutputMode.ARB or OutputMode.SEQ. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_gain` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_gain` + ''' + arb_marker_position = _attributes.AttributeViInt32(1150327) + '''Type: int + + Specifies the position for a marker to be asserted in the arbitrary waveform. This property defaults to -1 when no marker position is specified. Use this property when output_mode is set to OutputMode.ARB. + Use ExportSignal to export the marker signal. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + arb_offset = _attributes.AttributeViReal64(1250203) + '''Type: float + + Specifies the value that the signal generator adds to the arbitrary waveform data. When you create arbitrary waveforms, you must first normalize the data points to the range -1.0 to +1.0. Use this property to shift the arbitrary waveform range. + For example, when you set this property to 1.0, the output signal ranges from 2.0 V to 0.0 V. + Use this property when output_mode is set to OutputMode.ARB or OutputMode.SEQ. + Units: Volts + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_offset` + ''' + arb_repeat_count = _attributes.AttributeViInt32(1150328) + '''Type: int + + Specifies number of times to repeat the arbitrary waveform when the triggerMode parameter of ConfigureTriggerMode is set to TriggerMode.SINGLE or TriggerMode.STEPPED. This property is ignored if the triggerMode parameter is set to TriggerMode.CONTINUOUS or TriggerMode.BURST. Use this property when output_mode is set to OutputMode.ARB. + When used during streaming, this property specifies the number of times to repeat the streaming waveform (the onboard memory allocated for streaming). For more information about streaming, refer to the Streaming topic. + ''' + arb_sample_rate = _attributes.AttributeViReal64(1250204) + '''Type: float + + Specifies the rate at which the signal generator outputs the points in arbitrary waveforms. Use this property when output_mode is set to OutputMode.ARB or OutputMode.SEQ. + Units: Samples/s + ''' + arb_sequence_handle = _attributes.AttributeViInt32(1250211) + '''Type: int + + This channel-based property identifies which sequence the signal generator produces. You can create multiple sequences using create_arb_sequence. create_arb_sequence returns a handle that you can use to identify the particular sequence. To configure the signal generator to produce a particular sequence, set this property to the sequence handle. + Use this property only when output_mode is set to OutputMode.SEQ. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_sequence_handle` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_sequence_handle` + ''' + arb_waveform_handle = _attributes.AttributeViInt32(1250201) + '''Type: int + + Selects which arbitrary waveform the signal generator produces. You can create multiple arbitrary waveforms using one of the following niFgen Create Waveform methods: + create_waveform + create_waveform + create_waveform_from_file_i16 + create_waveform_from_file_f64 + These methods return a handle that you can use to identify the particular waveform. To configure the signal generator to produce a particular waveform, set this property to the waveform handle. + Use this property only when output_mode is set to OutputMode.ARB. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].arb_waveform_handle` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.arb_waveform_handle` + ''' + aux_power_enabled = _attributes.AttributeViBoolean(1150411) + '''Type: bool + + Controls the specified auxiliary power pin. Setting this property to TRUE energizes the auxiliary power when the session is committed. When this property is FALSE, the power pin of the connector outputs no power. + ''' + bus_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.BusType, 1150215) + '''Type: enums.BusType + + The bus type of the signal generator. + ''' + channel_delay = _attributes.AttributeViReal64(1150369) + '''Type: float + + Specifies, in seconds, the delay to apply to the analog output of the channel specified by the channel string. You can use the channel delay to configure the timing relationship between channels on a multichannel device. Values for this property can be zero or positive. A value of zero indicates that the channels are aligned. A positive value delays the analog output by the specified number of seconds. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].channel_delay` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.channel_delay` + ''' + clock_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ClockMode, 1150110) + '''Type: enums.ClockMode + + Controls which clock mode is used for the signal generator. + For signal generators that support it, this property allows switching the sample clock to High-Resolution mode. When in Divide-Down mode, the sample rate can only be set to certain frequences, based on dividing down the update clock. However, in High-Resolution mode, the sample rate may be set to any value. + ''' + common_mode_offset = _attributes.AttributeViReal64(1150366) + '''Type: float + + Specifies, in volts, the value the signal generator adds to or subtracts from the arbitrary waveform data. This property applies only when you set the terminal_configuration property to TerminalConfiguration.DIFFERENTIAL. Common mode offset is applied to the signals generated at each differential output terminal. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].common_mode_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.common_mode_offset` + ''' + data_marker_events_count = _attributes.AttributeViInt32(1150273) + '''Type: int + + Returns the number of Data Marker Events supported by the device. + ''' + data_marker_event_data_bit_number = _attributes.AttributeViInt32(1150337) + '''Type: int + + Specifies the bit number to assign to the Data Marker Event. + + Tip: + This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container data_markers to specify a subset. + + Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_data_bit_number` + + To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.data_marker_event_data_bit_number` + ''' + data_marker_event_level_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DataMarkerEventLevelPolarity, 1150338) + '''Type: enums.DataMarkerEventLevelPolarity + + Specifies the output polarity of the Data marker event. + + Tip: + This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container data_markers to specify a subset. + + Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_level_polarity` + + To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.data_marker_event_level_polarity` + ''' + data_marker_event_output_terminal = _attributes.AttributeViString(1150339) + '''Type: str + + Specifies the destination terminal for the Data Marker Event. + + Tip: + This property can be set/get on specific data_markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container data_markers to specify a subset. + + Example: :py:attr:`my_session.data_markers[ ... ].data_marker_event_output_terminal` + + To set/get on all data_markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.data_marker_event_output_terminal` + ''' + data_transfer_block_size = _attributes.AttributeViInt32(1150241) + '''Type: int + + The number of samples at a time to download to onboard memory. Useful when the total data to be transferred to onboard memory is large. + ''' + data_transfer_maximum_bandwidth = _attributes.AttributeViReal64(1150373) + '''Type: float + + Specifies the maximum amount of bus bandwidth (in bytes per second) to use for data transfers. The signal generator limits data transfer speeds on the PCIe bus to the value you specify for this property. Set this property to optimize bus bandwidth usage for multi-device streaming applications by preventing the signal generator from consuming all of the available bandwidth on a PCI express link when waveforms are being written to the onboard memory of the device. + ''' + data_transfer_maximum_in_flight_reads = _attributes.AttributeViInt32(1150375) + '''Type: int + + Specifies the maximum number of concurrent PCI Express read requests the signal generator can issue. + When transferring data from computer memory to device onboard memory across the PCI Express bus, the signal generator can issue multiple memory reads at the same time. In general, the larger the number of read requests, the more efficiently the device uses the bus because the multiple read requests keep the data flowing, even in a PCI Express topology that has high latency due to PCI Express switches in the data path. Most NI devices can issue a large number of read requests (typically 8 or 16). By default, this property is set to the highest value the signal generator supports. + If other devices in your system cannot tolerate long data latencies, it may be helpful to decrease the number of in-flight read requests the NI signal generator issues. This helps to reduce the amount of data the signal generator reads at one time. + ''' + data_transfer_preferred_packet_size = _attributes.AttributeViInt32(1150374) + '''Type: int + + Specifies the preferred size of the data field in a PCI Express read request packet. In general, the larger the packet size, the more efficiently the device uses the bus. By default, NI signal generators use the largest packet size allowed by the system. However, due to different system implementations, some systems may perform better with smaller packet sizes. + Recommended values for this property are powers of two between 64 and 512. + In some cases, the signal generator generates packets smaller than the preferred size you set with this property. + You cannot change this property while the device is generating a waveform. If you want to change the device configuration, call the abort method or wait for the generation to complete. + + Note: + : + ''' + digital_data_mask = _attributes.AttributeViInt32(1150236) + '''Type: int + + Specifies the mask to apply to the output on the digital connector. The masked data is replaced with the data in digital_static_value. + ''' + digital_edge_script_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalEdgeEdge, 1150292) + '''Type: enums.ScriptTriggerDigitalEdgeEdge + + Specifies the active edge for the Script trigger. This property is used when script_trigger_type is set to Digital Edge. + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_edge` + ''' + digital_edge_script_trigger_source = _attributes.AttributeViString(1150291) + '''Type: str + + Specifies the source terminal for the Script trigger. This property is used when script_trigger_type is set to Digital Edge. + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_source` + ''' + digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerDigitalEdgeEdge, 1150282) + '''Type: enums.StartTriggerDigitalEdgeEdge + + Specifies the active edge for the Start trigger. This property is used only when start_trigger_type is set to Digital Edge. + ''' + digital_edge_start_trigger_source = _attributes.AttributeViString(1150281) + '''Type: str + + Specifies the source terminal for the Start trigger. This property is used only when start_trigger_type is set to Digital Edge. + ''' + digital_filter_enabled = _attributes.AttributeViBoolean(1150102) + '''Type: bool + + Controls whether the signal generator applies a digital filter to the output signal. This property is valid in arbitrary waveform, arbitrary sequence, and script modes. This property can also be used in standard method and frequency list modes for user-defined waveforms. + ''' + digital_filter_interpolation_factor = _attributes.AttributeViReal64(1150218) + '''Type: float + + This property only affects the device when digital_filter_enabled is set to True. If you do not set this property directly, NI-FGEN automatically selects the maximum interpolation factor allowed for the current sample rate. Valid values are 2, 4, and 8. + ''' + digital_gain = _attributes.AttributeViReal64(1150254) + '''Type: float + + Specifies a factor by which the signal generator digitally multiplies generated data before converting it to an analog signal in the DAC. For a digital gain greater than 1.0, the product of digital gain times the generated data must be inside the range plus or minus 1.0 (assuming floating point data). If the product exceeds these limits, the signal generator clips the output signal, and an error results. + Some signal generators support both digital gain and an analog gain (analog gain is specified with the func_amplitude property or the arb_gain property). Digital gain can be changed during generation without the glitches that may occur when changing analog gains, due to relay switching. However, the DAC output resolution is a method of analog gain, so only analog gain makes full use of the resolution of the DAC. + ''' + digital_pattern_enabled = _attributes.AttributeViBoolean(1150101) + '''Type: bool + + Controls whether the signal generator generates a digital pattern of the output signal. + ''' + digital_static_value = _attributes.AttributeViInt32(1150237) + '''Type: int + + Specifies the static value that replaces data masked by digital_data_mask. + ''' + done_event_output_terminal = _attributes.AttributeViString(1150315) + '''Type: str + + Specifies the destination terminal for the Done Event. + ''' + done_event_pulse_width = _attributes.AttributeViReal64(1150336) + '''Type: float + + Specifies the pulse width for the Done Event. + ''' + done_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventPulseWidthUnits, 1150334) + '''Type: enums.EventPulseWidthUnits + + Specifies the pulse width units for the Done Event. + ''' + driver_setup = _attributes.AttributeViString(1050007) + '''Type: str + + Specifies the driver setup portion of the option string that was passed into the InitWithOptions method. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + exported_onboard_reference_clock_output_terminal = _attributes.AttributeViString(1150322) + '''Type: str + + Specifies the terminal to which to export the Onboard Reference Clock. + ''' + exported_reference_clock_output_terminal = _attributes.AttributeViString(1150321) + '''Type: str + + Specifies the terminal to which to export the Reference Clock. + ''' + exported_sample_clock_divisor = _attributes.AttributeViInt32(1150219) + '''Type: int + + Specifies the factor by which to divide the Sample clock, also known as the Update clock, before it is exported. To export the Sample clock, use the ExportSignal method or the exported_sample_clock_output_terminal property. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + exported_sample_clock_output_terminal = _attributes.AttributeViString(1150320) + '''Type: str + + Specifies the terminal to which to export the Sample Clock. + ''' + exported_sample_clock_timebase_divisor = _attributes.AttributeViInt32(1150230) + '''Type: int + + Specifies the factor by which to divide the sample clock timebase (board clock) before it is exported. To export the Sample clock timebase, use the ExportSignal method or the exported_sample_clock_timebase_output_terminal property. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + exported_sample_clock_timebase_output_terminal = _attributes.AttributeViString(1150329) + '''Type: str + + Specifies the terminal to which to export the Sample clock timebase. If you specify a divisor with the exported_sample_clock_timebase_divisor property, the Sample clock exported with the exported_sample_clock_timebase_output_terminal property is the value of the Sample clock timebase after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. + To change the device configuration, call abort or wait for the generation to complete. + + Note: The signal generator must not be in the Generating state when you change this property. + ''' + exported_script_trigger_output_terminal = _attributes.AttributeViString(1150295) + '''Type: str + + Specifies the output terminal for the exported Script trigger. + Setting this property to an empty string means that when you commit the session, the signal is removed from that terminal and, if possible, the terminal is tristated. + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.exported_script_trigger_output_terminal` + ''' + exported_start_trigger_output_terminal = _attributes.AttributeViString(1150283) + '''Type: str + + Specifies the destination terminal for exporting the Start trigger. + ''' + external_clock_delay_binary_value = _attributes.AttributeViInt32(1150233) + '''Type: int + + Binary value of the external clock delay. + ''' + external_sample_clock_multiplier = _attributes.AttributeViReal64(1150376) + '''Type: float + + Specifies a multiplication factor to use to obtain a desired sample rate from an external Sample clock. The resulting sample rate is equal to this factor multiplied by the external Sample clock rate. You can use this property to generate samples at a rate higher than your external clock rate. When using this property, you do not need to explicitly set the external clock rate. + ''' + file_transfer_block_size = _attributes.AttributeViInt32(1150240) + '''Type: int + + The number of samples at a time to read from the file and download to onboard memory. Used in conjunction with the Create From File and Write From File methods. + ''' + filter_correction_frequency = _attributes.AttributeViReal64(1150104) + '''Type: float + + Controls the filter correction frequency of the analog filter. This property corrects for the ripples in the analog filter frequency response at the frequency specified. For standard waveform output, the filter correction frequency should be set to be the same as the frequency of the standard waveform. To have no filter correction, set this property to 0 Hz. + ''' + flatness_correction_enabled = _attributes.AttributeViBoolean(1150323) + '''Type: bool + + When True, the signal generator applies a flatness correction factor to the generated sine wave in order to ensure the same output power level at all frequencies. + This property should be set to False when performing Flatness Calibration. + ''' + fpga_bitfile_path = _attributes.AttributeViString(1150412) + '''Type: str + + Gets the absolute file path to the bitfile loaded on the FPGA. + ''' + freq_list_duration_quantum = _attributes.AttributeViReal64(1150214) + '''Type: float + + Returns the quantum of which all durations must be a multiple in a frequency list. + ''' + freq_list_handle = _attributes.AttributeViInt32(1150208) + '''Type: int + + Sets which frequency list the signal generator produces. Create a frequency list using create_freq_list. create_freq_list returns a handle that you can use to identify the list. + ''' + func_amplitude = _attributes.AttributeViReal64(1250102) + '''Type: float + + Controls the amplitude of the standard waveform that the signal generator produces. This value is the amplitude at the output terminal. + For example, to produce a waveform ranging from -5.00 V to +5.00 V, set the amplitude to 10.00 V. + set the Waveform parameter to Waveform.DC. + Units: Vpk-pk + + Note: This parameter does not affect signal generator behavior when you + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_amplitude` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_amplitude` + ''' + func_buffer_size = _attributes.AttributeViInt32(1150238) + '''Type: int + + This property contains the number of samples used in the standard method waveform buffer. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. + implementation of Standard Method Mode on your device. + + Note: Refer to the Standard Method Mode topic for more information on the + ''' + func_dc_offset = _attributes.AttributeViReal64(1250103) + '''Type: float + + Controls the DC offset of the standard waveform that the signal generator produces. This value is the offset at the output terminal. The value is the offset from ground to the center of the waveform that you specify with the Waveform parameter. + For example, to configure a waveform with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set DC Offset to 5.00 V. + Units: volts + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_dc_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_dc_offset` + ''' + func_duty_cycle_high = _attributes.AttributeViReal64(1250106) + '''Type: float + + Controls the duty cycle of the square wave the signal generator produces. Specify this property as a percentage of the time the square wave is high in a cycle. + set the Waveform parameter to Waveform.SQUARE. + Units: Percentage of time the waveform is high + + Note: This parameter only affects signal generator behavior when you + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_duty_cycle_high` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_duty_cycle_high` + ''' + func_frequency = _attributes.AttributeViReal64(1250104) + '''Type: float + + Controls the frequency of the standard waveform that the signal generator produces. + Units: hertz + (1) This parameter does not affect signal generator behavior when you set the Waveform parameter of the configure_standard_waveform method to Waveform.DC. + (2) For Waveform.SINE, the range is between 0 MHz and 16 MHz, but the range is between 0 MHz and 1 MHz for all other waveforms. + + Note: + : + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_frequency` + ''' + func_max_buffer_size = _attributes.AttributeViInt32(1150239) + '''Type: int + + This property sets the maximum number of samples that can be used in the standard method waveform buffer. Increasing this value may increase the quality of the waveform. This property is only valid on devices that implement standard method mode in software, and is read-only for all other devices. + implementation of Standard Method Mode on your device. + + Note: Refer to the Standard Method Mode topic for more information on the + ''' + func_start_phase = _attributes.AttributeViReal64(1250105) + '''Type: float + + Controls horizontal offset of the standard waveform the signal generator produces. Specify this property in degrees of one waveform cycle. + A start phase of 180 degrees means output generation begins halfway through the waveform. A start phase of 360 degrees offsets the output by an entire waveform cycle, which is identical to a start phase of 0 degrees. + set the Waveform parameter to Waveform.DC. + Units: Degrees of one cycle + + Note: This parameter does not affect signal generator behavior when you + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_start_phase` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_start_phase` + ''' + func_waveform = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Waveform, 1250101) + '''Type: enums.Waveform + + This channel-based property specifies which standard waveform the signal generator produces. + Use this property only when output_mode is set to OutputMode.FUNC. + Waveform.SINE - Sinusoid waveform + Waveform.SQUARE - Square waveform + Waveform.TRIANGLE - Triangle waveform + Waveform.RAMP_UP - Positive ramp waveform + Waveform.RAMP_DOWN - Negative ramp waveform + Waveform.DC - Constant voltage + Waveform.NOISE - White noise + Waveform.USER - User-defined waveform as defined with + define_user_standard_waveform + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].func_waveform` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.func_waveform` + ''' + idle_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IdleBehavior, 1150377) + '''Type: enums.IdleBehavior + + Specifies the behavior of the output during the Idle state. The output can be configured to hold the last generated voltage before entering the Idle state or jump to the Idle Value. + ''' + idle_value = _attributes.AttributeViInt32(1150378) + '''Type: int + + Specifies the value to generate in the Idle state. The Idle Behavior must be configured to jump to this value. + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + A string that contains the firmware revision information for the device that you are currently using. + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + A string that contains the name of the device manufacturer you are currently using. + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + A string that contains the model number or name of the device that you are currently using. + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Indicates the resource descriptor that NI-FGEN uses to identify the physical device. + If you initialize NI-FGEN with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration Utility. + If you initialize NI-FGEN with the resource descriptor, this property contains that value. + ''' + load_impedance = _attributes.AttributeViReal64(1150220) + '''Type: float + + This channel-based property specifies the load impedance connected to the analog output of the channel. If you set this property to NIFGEN_VAL_MATCHED_LOAD_IMPEDANCE (-1.0), NI-FGEN assumes that the load impedance matches the output impedance. NI-FGEN compensates to give the desired peak-to-peak voltage amplitude or arbitrary gain (relative to 1 V). + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + A string containing the logical name that you specified when opening the current IVI session. + You may pass a logical name to init or InitWithOptions. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + marker_events_count = _attributes.AttributeViInt32(1150271) + '''Type: int + + Returns the number of markers supported by the device. Use this property when output_mode is set to OutputMode.SCRIPT. + ''' + marker_event_output_terminal = _attributes.AttributeViString(1150312) + '''Type: str + + Specifies the destination terminal for the Marker Event. + + Tip: + This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_output_terminal` + + To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.marker_event_output_terminal` + ''' + marker_event_pulse_width = _attributes.AttributeViReal64(1150340) + '''Type: float + + Specifies the pulse width for the Marker Event. + + Tip: + This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` + + To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width` + ''' + marker_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventPulseWidthUnits, 1150341) + '''Type: enums.EventPulseWidthUnits + + Specifies the pulse width units for the Marker Event. + + Tip: + This property can be set/get on specific markers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` + + To set/get on all markers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width_units` + ''' + max_freq_list_duration = _attributes.AttributeViReal64(1150213) + '''Type: float + + Returns the maximum duration of any one step in the frequency list. + ''' + max_freq_list_length = _attributes.AttributeViInt32(1150211) + '''Type: int + + Returns the maximum number of steps that can be in a frequency list. + ''' + max_loop_count = _attributes.AttributeViInt32(1250215) + '''Type: int + + Returns the maximum number of times that the signal generator can repeat a waveform in a sequence. Typically, this value is constant for the signal generator. + ''' + max_num_freq_lists = _attributes.AttributeViInt32(1150209) + '''Type: int + + Returns the maximum number of frequency lists the signal generator allows. + ''' + max_num_sequences = _attributes.AttributeViInt32(1250212) + '''Type: int + + Returns the maximum number of arbitrary sequences that the signal generator allows. Typically, this value is constant for the signal generator. + ''' + max_num_waveforms = _attributes.AttributeViInt32(1250205) + '''Type: int + + Returns the maximum number of arbitrary waveforms that the signal generator allows. Typically, this value is constant for the signal generator. + ''' + max_sequence_length = _attributes.AttributeViInt32(1250214) + '''Type: int + + Returns the maximum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. + ''' + max_waveform_size = _attributes.AttributeViInt32(1250208) + '''Type: int + + Returns the size, in samples, of the largest waveform that can be created. This property reflects the space currently available, taking into account previously allocated waveforms and instructions. + ''' + memory_size = _attributes.AttributeViInt32(1150242) + '''Type: int + + The total amount of memory, in bytes, on the signal generator. + ''' + min_freq_list_duration = _attributes.AttributeViReal64(1150212) + '''Type: float + + Returns the minimum number of steps that can be in a frequency list. + ''' + min_freq_list_length = _attributes.AttributeViInt32(1150210) + '''Type: int + + Returns the minimum number of frequency lists that the signal generator allows. + ''' + min_sequence_length = _attributes.AttributeViInt32(1250213) + '''Type: int + + Returns the minimum number of arbitrary waveforms that the signal generator allows in a sequence. Typically, this value is constant for the signal generator. + ''' + min_waveform_size = _attributes.AttributeViInt32(1250207) + '''Type: int + + Returns the minimum number of points that the signal generator allows in an arbitrary waveform. Typically, this value is constant for the signal generator. + ''' + module_revision = _attributes.AttributeViString(1150390) + '''Type: str + + A string that contains the module revision for the device that you are currently using. + ''' + channel_count = _attributes.AttributeViInt32(1050203) + '''Type: int + + Indicates the number of channels that the specific instrument driver supports. + For each property for which IVI_VAL_MULTI_CHANNEL is set, the IVI Engine maintains a separate cache value for each channel. + ''' + output_enabled = _attributes.AttributeViBoolean(1250003) + '''Type: bool + + This channel-based property specifies whether the signal that the signal generator produces appears at the output connector. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.output_enabled` + ''' + output_impedance = _attributes.AttributeViReal64(1250004) + '''Type: float + + This channel-based property specifies the signal generator output impedance at the output connector. NI signal sources modules have an output impedance of 50 ohms and an optional 75 ohms on select modules. If the load impedance matches the output impedance, then the voltage at the signal output connector is at the needed level. The voltage at the signal output connector varies with load output impedance, up to doubling the voltage for a high-impedance load. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].output_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.output_impedance` + ''' + output_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputMode, 1250001) + '''Type: enums.OutputMode + + Sets which output mode the signal generator will use. The value you specify determines which methods and properties you use to configure the waveform the signal generator produces. + + Note: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call abort or wait for the generation to complete. + ''' + ready_for_start_event_output_terminal = _attributes.AttributeViString(1150310) + '''Type: str + + Specifies the destination terminal for the Ready for Start Event. + ''' + reference_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockSource, 1150113) + '''Type: enums.ReferenceClockSource + + Specifies the reference clock source used by the signal generator. + The signal generator derives the frequencies and sample rates that it uses to generate waveforms from the source you specify. For example, when you set this property to ClkIn, the signal generator uses the signal it receives at the CLK IN front panel connector as the Reference clock. + To change the device configuration, call abort or wait for the generation to complete. + + Note: The signal generator must not be in the Generating state when you change this property. + ''' + ref_clock_frequency = _attributes.AttributeViReal64(1150107) + '''Type: float + + Sets the frequency of the signal generator reference clock. The signal generator uses the reference clock to derive frequencies and sample rates when generating output. + ''' + sample_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.SampleClockSource, 1150112) + '''Type: enums.SampleClockSource + + Specifies the Sample clock source. If you specify a divisor with the exported_sample_clock_divisor property, the Sample clock exported with the exported_sample_clock_output_terminal property is the value of the Sample clock after it is divided-down. For a list of the terminals available on your device, refer to the Device Routes tab in MAX. + To change the device configuration, call abort or wait for the generation to complete. + + Note: The signal generator must not be in the Generating state when you change this property. + ''' + sample_clock_timebase_rate = _attributes.AttributeViReal64(1150368) + '''Type: float + + Specifies the Sample clock timebase rate. This property applies only to external Sample clock timebases. + To change the device configuration, call abort or wait for the generation to complete. + + Note: The signal generator must not be in the Generating state when you change this property. + ''' + sample_clock_timebase_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.SampleClockTimebaseSource, 1150367) + '''Type: enums.SampleClockTimebaseSource + + Specifies the Sample Clock Timebase source. + To change the device configuration, call the abort method or wait for the generation to complete. + + Note: The signal generator must not be in the Generating state when you change this property. + ''' + script_to_generate = _attributes.AttributeViString(1150270) + '''Type: str + + Specifies which script the generator produces. To configure the generator to run a particular script, set this property to the name of the script. Use write_script to create multiple scripts. Use this property when output_mode is set to OutputMode.SCRIPT. + + Note: The signal generator must not be in the Generating state when you change this property. To change the device configuration, call abort or wait for the generation to complete. + ''' + script_triggers_count = _attributes.AttributeViInt32(1150272) + '''Type: int + + Specifies the number of Script triggers supported by the device. Use this property when output_mode is set to OutputMode.SCRIPT. + ''' + script_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerType, 1150290) + '''Type: enums.ScriptTriggerType + + Specifies the Script trigger type. Depending upon the value of this property, additional properties may need to be configured to fully configure the trigger. + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.script_trigger_type` + ''' + serial_number = _attributes.AttributeViString(1150243) + '''Type: str + + The signal generator's serial number. + ''' + simulate = _attributes.AttributeViBoolean(1050005) + '''Type: bool + + Specifies whether to simulate NI-FGEN I/O operations. If simulation is enabled, NI-FGEN methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute, but they do not perform device I/O. For output parameters that represent device data, NI-FGEN methods return calculated values. + Default Value: False + Use InitWithOptions to override default value. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + Returns a brief description of NI-FGEN. + ''' + major_version = _attributes.AttributeViInt32(1050503) + '''Type: int + + Returns the major version number of NI-FGEN. + ''' + minor_version = _attributes.AttributeViInt32(1050504) + '''Type: int + + Returns the minor version number of NI-FGEN. + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + A string that contains additional version information about NI-FGEN. + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + A string that contains the name of the vendor that supplies NI-FGEN. + ''' + started_event_output_terminal = _attributes.AttributeViString(1150314) + '''Type: str + + Specifies the destination terminal for the Started Event. + ''' + started_event_pulse_width = _attributes.AttributeViReal64(1150335) + '''Type: float + + Specifies the pulse width for the Started Event. + ''' + started_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EventPulseWidthUnits, 1150333) + '''Type: enums.EventPulseWidthUnits + + Specifies the pulse width units for the Started Event. + ''' + start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerType, 1150280) + '''Type: enums.StartTriggerType + + Specifies whether you want the Start trigger to be a Digital Edge, or Software trigger. You can also choose None as the value for this property. + ''' + streaming_space_available_in_waveform = _attributes.AttributeViInt32(1150325) + '''Type: int + + Indicates the space available (in samples) in the streaming waveform for writing new data. During generation, this available space may be in multiple locations with, for example, part of the available space at the end of the streaming waveform and the rest at the beginning. In this situation, writing a block of waveform data the size of the total space available in the streaming waveform causes NI-FGEN to return an error, as NI-FGEN will not wrap the data from the end of the waveform to the beginning and cannot write data past the end of the waveform buffer. + To avoid writing data past the end of the waveform, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. + Used in conjunction with the streaming_waveform_handle or streaming_waveform_name properties. + ''' + streaming_waveform_handle = _attributes.AttributeViInt32(1150324) + '''Type: int + + Specifies the waveform handle of the waveform used to continuously stream data during generation. This property defaults to -1 when no streaming waveform is specified. + Used in conjunction with streaming_space_available_in_waveform. + ''' + streaming_waveform_name = _attributes.AttributeViString(1150326) + '''Type: str + + Specifies the name of the waveform used to continuously stream data during generation. This property defaults to // when no streaming waveform is specified. + Use in conjunction with streaming_space_available_in_waveform. + ''' + streaming_write_timeout = _attributes.AttributeViReal64TimeDeltaSeconds(1150409) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the maximum amount of time allowed to complete a streaming write operation. + ''' + supported_instrument_models = _attributes.AttributeViString(1050327) + '''Type: str + + Returns a model code of the device. For NI-FGEN versions that support more than one device, this property contains a comma-separated list of supported device models. + ''' + terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TerminalConfiguration, 1150365) + '''Type: enums.TerminalConfiguration + + Specifies whether gain and offset values will be analyzed based on single-ended or differential operation. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].terminal_configuration` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.terminal_configuration` + ''' + trigger_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerMode, 1150108) + '''Type: enums.TriggerMode + + Controls the trigger mode. + + Tip: + This property can be set/get on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].trigger_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`nifgen.Session`. + + Example: :py:attr:`my_session.trigger_mode` + ''' + wait_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WaitBehavior, 1150379) + '''Type: enums.WaitBehavior + + Specifies the behavior of the output while waiting for a script trigger or during a wait instruction. The output can be configured to hold the last generated voltage before waiting or jump to the Wait Value. + ''' + wait_value = _attributes.AttributeViInt32(1150380) + '''Type: int + + Specifies the value to generate while waiting. The Wait Behavior must be configured to jump to this value. + ''' + waveform_quantum = _attributes.AttributeViInt32(1250206) + '''Type: int + + The size of each arbitrary waveform must be a multiple of a quantum value. This property returns the quantum value that the signal generator allows. + For example, when this property returns a value of 8, all waveform sizes must be a multiple of 8. Typically, this value is constant for the signal generator. + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + self.script_triggers = _RepeatedCapabilities(self, 'ScriptTrigger', repeated_capability_list) + self.markers = _RepeatedCapabilities(self, 'Marker', repeated_capability_list) + self.data_markers = _RepeatedCapabilities(self, 'DataMarker', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nifgen', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def allocate_named_waveform(self, waveform_name, waveform_size): + r'''allocate_named_waveform + + Specifies the size of a named waveform up front so that it can be + allocated in onboard memory before loading the associated data. Data can + then be loaded in smaller blocks with the niFgen Write (Binary16) + Waveform methods. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].allocate_named_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.allocate_named_waveform` + + Args: + waveform_name (str): Specifies the name to associate with the allocated waveform. + + waveform_size (int): Specifies the size of the waveform to allocate in samples. + + **Default Value**: "4096" + + ''' + self._interpreter.allocate_named_waveform(self._repeated_capability, waveform_name, waveform_size) + + @ivi_synchronized + def allocate_waveform(self, waveform_size): + r'''allocate_waveform + + Specifies the size of a waveform so that it can be allocated in onboard + memory before loading the associated data. Data can then be loaded in + smaller blocks with the Write Binary 16 Waveform methods. + + Note: + The signal generator must not be in the Generating state when you call + this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].allocate_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.allocate_waveform` + + Args: + waveform_size (int): Specifies, in samples, the size of the waveform to allocate. + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + ''' + waveform_handle = self._interpreter.allocate_waveform(self._repeated_capability, waveform_size) + return waveform_handle + + @ivi_synchronized + def clear_user_standard_waveform(self): + r'''clear_user_standard_waveform + + Clears the user-defined waveform created by the + define_user_standard_waveform method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_user_standard_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.clear_user_standard_waveform` + ''' + self._interpreter.clear_user_standard_waveform(self._repeated_capability) + + @ivi_synchronized + def configure_arb_sequence(self, sequence_handle, gain, offset): + r'''configure_arb_sequence + + Configures the signal generator properties that affect arbitrary + sequence generation. Sets the arb_sequence_handle, + arb_gain, and arb_offset properties. + + Note: + The signal generator must not be in the Generating state when you call + this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_arb_sequence` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_arb_sequence` + + Args: + sequence_handle (int): Specifies the handle of the arbitrary sequence that you want the signal + generator to produce. NI-FGEN sets the + arb_sequence_handle property to this value. You can + create an arbitrary sequence using the create_arb_sequence or + create_advanced_arb_sequence method. These methods return a + handle that you use to identify the sequence. + + **Default Value**: None + + gain (float): Specifies the factor by which the signal generator scales the arbitrary + waveforms in the sequence. When you create an arbitrary waveform, you + must first normalize the data points to a range of –1.00 to +1.00. You + can use this parameter to scale the waveform to other ranges. The gain + is applied before the offset is added. + + For example, to configure the output signal to range from –2.00 to + +2.00 V, set **gain** to 2.00. + + **Units**: unitless + + **Default Value**: None + + offset (float): Specifies the value the signal generator adds to the arbitrary waveform + data. When you create arbitrary waveforms, you must first normalize the + data points to a range of –1.00 to +1.00 V. You can use this parameter + to shift the range of the arbitrary waveform. NI-FGEN sets the + arb_offset property to this value. + + For example, to configure the output signal to range from 0.00 to 2.00 V + instead of –1.00 to 1.00 V, set the offset to 1.00. + + **Units**: volts + + **Default Value**: None + + ''' + self._interpreter.configure_arb_sequence(self._repeated_capability, sequence_handle, gain, offset) + + @ivi_synchronized + def configure_arb_waveform(self, waveform_handle, gain, offset): + r'''configure_arb_waveform + + Configures the properties of the signal generator that affect arbitrary + waveform generation. Sets the arb_waveform_handle, + arb_gain, and arb_offset properties. + + Note: + The signal generator must not be in the Generating state when you call + this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_arb_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_arb_waveform` + + Args: + waveform_handle (int): Specifies the handle of the arbitrary waveform you want the signal + generator to produce. NI-FGEN sets the + arb_waveform_handle property to this value. You can + create an arbitrary waveform using one of the following niFgen Create + Waveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + These methods return a handle that you use to identify the waveform. + + **Default Value**: None + + gain (float): Specifies the factor by which the signal generator scales the arbitrary + waveforms in the sequence. When you create an arbitrary waveform, you + must first normalize the data points to a range of –1.00 to +1.00. You + can use this parameter to scale the waveform to other ranges. The gain + is applied before the offset is added. + + For example, to configure the output signal to range from –2.00 to + +2.00 V, set **gain** to 2.00. + + **Units**: unitless + + **Default Value**: None + + offset (float): Specifies the value the signal generator adds to the arbitrary waveform + data. When you create arbitrary waveforms, you must first normalize the + data points to a range of –1.00 to +1.00 V. You can use this parameter + to shift the range of the arbitrary waveform. NI-FGEN sets the + arb_offset property to this value. + + For example, to configure the output signal to range from 0.00 to 2.00 V + instead of –1.00 to 1.00 V, set the offset to 1.00. + + **Units**: volts + + **Default Value**: None + + ''' + self._interpreter.configure_arb_waveform(self._repeated_capability, waveform_handle, gain, offset) + + @ivi_synchronized + def configure_freq_list(self, frequency_list_handle, amplitude, dc_offset=0.0, start_phase=0.0): + r'''configure_freq_list + + Configures the properties of the signal generator that affect frequency + list generation (the freq_list_handle, + func_amplitude, func_dc_offset, and + func_start_phase properties). + + Note: + The signal generator must not be in the Generating state when you call + this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_freq_list` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_freq_list` + + Args: + frequency_list_handle (int): Specifies the handle of the frequency list that you want the signal + generator to produce. NI-FGEN sets the freq_list_handle + property to this value. You can create a frequency list using the + create_freq_list method, which returns a handle that you use to + identify the list. + **Default Value**: None + + amplitude (float): Specifies the amplitude of the standard waveform that you want the + signal generator to produce. This value is the amplitude at the output + terminal. NI-FGEN sets the func_amplitude property to + this value. + + For example, to produce a waveform ranging from –5.00 V to +5.00 V, set + the amplitude to 10.00 V. + + **Units**: peak-to-peak voltage + + **Default Value**: None + + Note: + This parameter does not affect signal generator behavior when you set + the **waveform** parameter of the configure_standard_waveform + method to Waveform.DC. + + dc_offset (float): Specifies the DC offset of the standard waveform that you want the + signal generator to produce. The value is the offset from ground to the + center of the waveform you specify with the **waveform** parameter, + observed at the output terminal. For example, to configure a waveform + with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the + **dcOffset** to 5.00 V. NI-FGEN sets the func_dc_offset + property to this value. + + **Units**: volts + + **Default Value**: None + + start_phase (float): Specifies the horizontal offset of the standard waveform you want the + signal generator to produce. Specify this property in degrees of one + waveform cycle. NI-FGEN sets the func_start_phase + property to this value. A start phase of 180 degrees means output + generation begins halfway through the waveform. A start phase of 360 + degrees offsets the output by an entire waveform cycle, which is + identical to a start phase of 0 degrees. + + **Units**: degrees of one cycle + + **Default Value**: None degrees + + Note: + This parameter does not affect signal generator behavior when you set + the **waveform** parameter to Waveform.DC. + + ''' + self._interpreter.configure_freq_list(self._repeated_capability, frequency_list_handle, amplitude, dc_offset, start_phase) + + @ivi_synchronized + def configure_standard_waveform(self, waveform, amplitude, frequency, dc_offset=0.0, start_phase=0.0): + r'''configure_standard_waveform + + Configures the following properties of the signal generator that affect + standard waveform generation: + + - func_waveform + - func_amplitude + - func_dc_offset + - func_frequency + - func_start_phase + + Note: + You must call the ConfigureOutputMode method with the + **outputMode** parameter set to OutputMode.FUNC before calling + this method. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_standard_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.configure_standard_waveform` + + Args: + waveform (enums.Waveform): Specifies the standard waveform that you want the signal generator to + produce. NI-FGEN sets the func_waveform property to this + value. + + ****Defined Values**** + + **Default Value**: Waveform.SINE + + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.SINE | Specifies that the signal generator produces a sinusoid waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.SQUARE | Specifies that the signal generator produces a square waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.TRIANGLE | Specifies that the signal generator produces a triangle waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.RAMP_UP | Specifies that the signal generator produces a positive ramp waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.RAMP_DOWN | Specifies that the signal generator produces a negative ramp waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.DC | Specifies that the signal generator produces a constant voltage. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.NOISE | Specifies that the signal generator produces white noise. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.USER | Specifies that the signal generator produces a user-defined waveform as defined with the define_user_standard_waveform method. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + + amplitude (float): Specifies the amplitude of the standard waveform that you want the + signal generator to produce. This value is the amplitude at the output + terminal. NI-FGEN sets the func_amplitude property to + this value. + + For example, to produce a waveform ranging from –5.00 V to +5.00 V, set + the amplitude to 10.00 V. + + **Units**: peak-to-peak voltage + + **Default Value**: None + + Note: + This parameter does not affect signal generator behavior when you set + the **waveform** parameter of the configure_standard_waveform + method to Waveform.DC. + + frequency (float): | Specifies the frequency of the standard waveform that you want the + signal generator to produce. NI-FGEN sets the + func_frequency property to this value. + + **Units**: hertz + + **Default Value**: None + + Note: + This parameter does not affect signal generator behavior when you set + the **waveform** parameter of the configure_standard_waveform + method to Waveform.DC. + + dc_offset (float): Specifies the DC offset of the standard waveform that you want the + signal generator to produce. The value is the offset from ground to the + center of the waveform you specify with the **waveform** parameter, + observed at the output terminal. For example, to configure a waveform + with an amplitude of 10.00 V to range from 0.00 V to +10.00 V, set the + **dcOffset** to 5.00 V. NI-FGEN sets the func_dc_offset + property to this value. + + **Units**: volts + + **Default Value**: None + + start_phase (float): Specifies the horizontal offset of the standard waveform that you want + the signal generator to produce. Specify this parameter in degrees of + one waveform cycle. NI-FGEN sets the func_start_phase + property to this value. A start phase of 180 degrees means output + generation begins halfway through the waveform. A start phase of 360 + degrees offsets the output by an entire waveform cycle, which is + identical to a start phase of 0 degrees. + + **Units**: degrees of one cycle + + **Default Value**: 0.00 + + Note: + This parameter does not affect signal generator behavior when you set + the **waveform** parameter to Waveform.DC. + + ''' + if type(waveform) is not enums.Waveform: + raise TypeError('Parameter waveform must be of type ' + str(enums.Waveform)) + self._interpreter.configure_standard_waveform(self._repeated_capability, waveform, amplitude, dc_offset, frequency, start_phase) + + @ivi_synchronized + def create_waveform(self, waveform_data_array): + '''create_waveform + + Creates an onboard waveform for use in Arbitrary Waveform output mode or Arbitrary Sequence output mode. + + Note: You must set output_mode to OutputMode.ARB or OutputMode.SEQ before calling this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.create_waveform` + + Args: + waveform_data_array (iterable of float or int16): Array of data for the new arbitrary waveform. This may be an iterable of float or int16, or for best performance a numpy.ndarray of dtype int16 or float64. + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used in other methods when referring to this waveform. + + ''' + # Check the type by using string comparison so that we don't import numpy unnecessarily. + if str(type(waveform_data_array)).find("'numpy.ndarray'") != -1: + import numpy + if waveform_data_array.dtype == numpy.float64: + return self._create_waveform_f64_numpy(waveform_data_array) + elif waveform_data_array.dtype == numpy.int16: + return self._create_waveform_i16_numpy(waveform_data_array) + else: + raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(waveform_data_array.dtype, numpy.float64, numpy.int16)) + elif isinstance(waveform_data_array, array.array): + if waveform_data_array.typecode == 'd': + return self._create_waveform_f64(waveform_data_array) + elif waveform_data_array.typecode == 'h': + return self._create_waveform_i16(waveform_data_array) + else: + raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(waveform_data_array.typecode, 'd (double)', 'h (16 bit int)')) + + return self._create_waveform_f64(waveform_data_array) + + @ivi_synchronized + def _create_waveform_f64(self, waveform_data_array): + r'''_create_waveform_f64 + + Creates an onboard waveform from binary F64 (floating point double) data + for use in Arbitrary Waveform output mode or Arbitrary Sequence output + mode. The **waveformHandle** returned can later be used for setting the + active waveform, changing the data in the waveform, building sequences + of waveforms, or deleting the waveform when it is no longer needed. + + Note: + You must call the ConfigureOutputMode method to set the + **outputMode** parameter to OutputMode.ARB or + OutputMode.SEQ before calling this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._create_waveform_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._create_waveform_f64` + + Args: + waveform_data_array (array.array("d")): Specifies the array of data you want to use for the new arbitrary + waveform. The array must have at least as many elements as the value + that you specify in **waveformSize**. + + You must normalize the data points in the array to be between –1.00 and + +1.00. + + **Default Value**: None + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + ''' + waveform_handle = self._interpreter.create_waveform_f64(self._repeated_capability, waveform_data_array) + return waveform_handle + + @ivi_synchronized + def _create_waveform_f64_numpy(self, waveform_data_array): + r'''_create_waveform_f64_numpy + + Creates an onboard waveform from binary F64 (floating point double) data + for use in Arbitrary Waveform output mode or Arbitrary Sequence output + mode. The **waveformHandle** returned can later be used for setting the + active waveform, changing the data in the waveform, building sequences + of waveforms, or deleting the waveform when it is no longer needed. + + Note: + You must call the ConfigureOutputMode method to set the + **outputMode** parameter to OutputMode.ARB or + OutputMode.SEQ before calling this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._create_waveform_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._create_waveform_f64` + + Args: + waveform_data_array (numpy.array(dtype=numpy.float64)): Specifies the array of data you want to use for the new arbitrary + waveform. The array must have at least as many elements as the value + that you specify in **waveformSize**. + + You must normalize the data points in the array to be between –1.00 and + +1.00. + + **Default Value**: None + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('float64'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=float64, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + waveform_handle = self._interpreter.create_waveform_f64_numpy(self._repeated_capability, waveform_data_array) + return waveform_handle + + @ivi_synchronized + def create_waveform_from_file_f64(self, file_name, byte_order): + r'''create_waveform_from_file_f64 + + This method takes the floating point double (F64) data from the + specified file and creates an onboard waveform for use in Arbitrary + Waveform or Arbitrary Sequence output mode. The **waveformHandle** + returned by this method can later be used for setting the active + waveform, changing the data in the waveform, building sequences of + waveforms, or deleting the waveform when it is no longer needed. + + Note: + The F64 data must be between –1.0 and +1.0 V. Use the + digital_gain property to generate different voltage + outputs. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.create_waveform_from_file_f64` + + Args: + file_name (str): The full path and name of the file where the waveform data resides. + + byte_order (enums.ByteOrder): Specifies the byte order of the data in the file. + + ****Defined Values**** + + | + | ****Default Value**:** ByteOrder.LITTLE + + +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | ByteOrder.LITTLE | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | + +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | ByteOrder.BIG | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | + +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + Data written by most applications in Windows (including + LabWindows™/CVI™) is in Little Endian format. Data written to a file + from LabVIEW is in Big Endian format by default on all platforms. Big + Endian and Little Endian refer to the way data is stored in memory, + which can differ on different processors. + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + ''' + if type(byte_order) is not enums.ByteOrder: + raise TypeError('Parameter byte_order must be of type ' + str(enums.ByteOrder)) + waveform_handle = self._interpreter.create_waveform_from_file_f64(self._repeated_capability, file_name, byte_order) + return waveform_handle + + @ivi_synchronized + def create_waveform_from_file_i16(self, file_name, byte_order): + r'''create_waveform_from_file_i16 + + Takes the binary 16-bit signed integer (I16) data from the specified + file and creates an onboard waveform for use in Arbitrary Waveform or + Arbitrary Sequence output mode. The **waveformHandle** returned by this + method can later be used for setting the active waveform, changing the + data in the waveform, building sequences of waveforms, or deleting the + waveform when it is no longer needed. + + Note: + The I16 data (values between –32768 and +32767) is assumed to + represent –1 to +1 V. Use the digital_gain property to + generate different voltage outputs. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].create_waveform_from_file_i16` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.create_waveform_from_file_i16` + + Args: + file_name (str): The full path and name of the file where the waveform data resides. + + byte_order (enums.ByteOrder): Specifies the byte order of the data in the file. + + ****Defined Values**** + + | + | ****Default Value**:** ByteOrder.LITTLE + + +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | ByteOrder.LITTLE | Little Endian Data—The least significant bit is stored at the lowest address, followed by the other bits, in order of increasing significance. | + +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + | ByteOrder.BIG | Big Endian Data—The most significant bit is stored at the lowest address, followed by the other bits, in order of decreasing significance. | + +------------------+------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + Data written by most applications in Windows (including + LabWindows™/CVI™) is in Little Endian format. Data written to a file + from LabVIEW is in Big Endian format by default on all platforms. Big + Endian and Little Endian refer to the way data is stored in memory, + which can differ on different processors. + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + ''' + if type(byte_order) is not enums.ByteOrder: + raise TypeError('Parameter byte_order must be of type ' + str(enums.ByteOrder)) + waveform_handle = self._interpreter.create_waveform_from_file_i16(self._repeated_capability, file_name, byte_order) + return waveform_handle + + @ivi_synchronized + def _create_waveform_i16_numpy(self, waveform_data_array): + r'''_create_waveform_i16_numpy + + Creates an onboard waveform from binary 16-bit signed integer (I16) data + for use in Arbitrary Waveform or Arbitrary Sequence output mode. The + **waveformHandle** returned can later be used for setting the active + waveform, changing the data in the waveform, building sequences of + waveforms, or deleting the waveform when it is no longer needed. + + Note: + You must call the ConfigureOutputMode method to set the + **outputMode** parameter to OutputMode.ARB or + OutputMode.SEQ before calling this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._create_waveform_i16` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._create_waveform_i16` + + Args: + waveform_data_array (numpy.array(dtype=numpy.int16)): Specify the array of data that you want to use for the new arbitrary + waveform. The array must have at least as many elements as the value + that you specify in the Waveform Size parameter. + You must normalize the data points in the array to be between -32768 and + +32767. + ****Default Value**:** None + + + Returns: + waveform_handle (int): The handle that identifies the new waveform. This handle is used later + when referring to this waveform. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('int16'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=int16, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + waveform_handle = self._interpreter.create_waveform_i16_numpy(self._repeated_capability, waveform_data_array) + return waveform_handle + + @ivi_synchronized + def define_user_standard_waveform(self, waveform_data_array): + r'''define_user_standard_waveform + + Defines a user waveform for use in either Standard Method or Frequency + List output mode. + + To select the waveform, set the **waveform** parameter to + Waveform.USER with either the configure_standard_waveform + or the create_freq_list method. + + The waveform data must be scaled between –1.0 and 1.0. Use the + **amplitude** parameter in the configure_standard_waveform + method to generate different output voltages. + + Note: + You must call the ConfigureOutputMode method to set the + **outputMode** parameter to OutputMode.FUNC or + OutputMode.FREQ_LIST before calling this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].define_user_standard_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.define_user_standard_waveform` + + Args: + waveform_data_array (list of float): Specifies the array of data you want to use for the new arbitrary + waveform. The array must have at least as many elements as the value + that you specify in **waveformSize**. + + You must normalize the data points in the array to be between –1.00 and + +1.00. + + **Default Value**: None + + ''' + self._interpreter.define_user_standard_waveform(self._repeated_capability, waveform_data_array) + + @ivi_synchronized + def _delete_named_waveform(self, waveform_name): + r'''_delete_named_waveform + + Removes a previously created arbitrary waveform from the signal + generator memory and invalidates the waveform handle. + + Note: + The signal generator must not be in the Generating state when you call + this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._delete_named_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._delete_named_waveform` + + Args: + waveform_name (str): Specifies the name to associate with the allocated waveform. + + ''' + self._interpreter.delete_named_waveform(self._repeated_capability, waveform_name) + + @ivi_synchronized + def delete_script(self, script_name): + r'''delete_script + + Deletes the specified script from onboard memory. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].delete_script` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.delete_script` + + Args: + script_name (str): Specifies the name of the script you want to delete. The script name + appears in the text of the script following the script keyword. + + ''' + self._interpreter.delete_script(self._repeated_capability, script_name) + + @ivi_synchronized + def delete_waveform(self, waveform_name_or_handle): + '''delete_waveform + + Removes a previously created arbitrary waveform from the signal generator memory. + + Note: The signal generator must not be in the Generating state when you call this method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].delete_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.delete_waveform` + + Args: + waveform_name_or_handle (str or int): The name (str) or handle (int) of an arbitrary waveform previously allocated with allocate_named_waveform, allocate_waveform or create_waveform. + + ''' + if isinstance(waveform_name_or_handle, str): + return self._delete_named_waveform(waveform_name_or_handle) + else: + return self._clear_arb_waveform(waveform_name_or_handle) + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. + + You can use this method to get the values of instrument-specific + properties and inherent IVI properties. If the property represents an + instrument state, this method performs instrument I/O in the following + cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): Specifies the ID of a property. + + + Returns: + attribute_value (bool): Returns the current value of the property. Pass the address of a + ViBoolean variable. + + ''' + attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. If the property represents an instrument state, this + method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): Specifies the ID of a property. + + + Returns: + attribute_value (int): Returns the current value of the property. Pass the address of a + ViInt32 variable. + + ''' + attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + Queries the value of a ViReal64 property. + + You can use this method to get the values of instrument-specific + properties and inherent IVI properties. If the property represents an + instrument state, this method performs instrument I/O in the following + cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): Specifies the ID of a property. + + + Returns: + attribute_value (float): Returns the current value of the property. Pass the address of a + ViReal64 variable. + + ''' + attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + Queries the value of a ViString property. + + You can use this method to get the values of instrument-specific + properties and inherent IVI properties. If the property represents an + instrument state, this method performs instrument I/O in the following + cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + You must provide a ViChar array to serve as a buffer for the value. You + pass the number of bytes in the buffer as the **arraySize** parameter. + If the current value of the property, including the terminating NUL + byte, is larger than the size you indicate in the **arraySize** + parameter, the method copies **arraySize** – 1 bytes into the buffer, + places an ASCII NUL byte at the end of the buffer, and returns the array + size you must pass to get the entire value. For example, if the value is + 123456 and **arraySize** is 4, the method places 123 into the buffer + and returns 7. + + If you want to call this method just to get the required array size, + you can pass 0 for **arraySize** and VI_NULL for the **attributeValue** + buffer. + + If you want the method to fill in the buffer regardless of the number + of bytes in the value, pass a negative number for the **arraySize** + parameter. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): Specifies the ID of a property. + + + Returns: + attribute_value (str): The buffer in which the method returns the current value of the + property. The buffer must be a ViChar data type and have at least as + many bytes as indicated in the **arraySize** parameter. + + If the current value of the property, including the terminating NUL + byte, contains more bytes than you indicate in this parameter, the + method copies **arraySize** – 1 bytes into the buffer, places an ASCII + NUL byte at the end of the buffer, and returns the array size you must + pass to get the entire value. For example, if the value is 123456 and + **arraySize** is 4, the method places 123 into the buffer and returns + 7. + + If you specify 0 for the **arraySize** parameter, you can pass VI_NULL + for this parameter. + + ''' + attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return attribute_value + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-FGEN locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nifgen.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def send_software_edge_trigger(self, trigger=None, trigger_id=None): + '''send_software_edge_trigger + + Sends a command to trigger the signal generator. This VI can act as an + override for an external edge trigger. + + Note: + This VI does not override external digital edge triggers of the + NI 5401/5411/5431. + + Args: + trigger (enums.Trigger): Trigger specifies the type of software trigger to send + + +----------------+ + | Defined Values | + +================+ + | Trigger.START | + +----------------+ + | Trigger.SCRIPT | + +----------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + trigger_id (str): Trigger ID specifies the Script Trigger to use for triggering. + + ''' + if trigger is None or trigger_id is None: + import warnings + warnings.warn('trigger and trigger_id should now always be passed in to the method', category=DeprecationWarning) + + # We look at whether we are called directly on the session or a repeated capability container to determine how to behave + if len(self._repeated_capability) > 0: + trigger_id = self._repeated_capability + trigger = enums.Trigger.SCRIPT + else: + trigger_id = "None" + trigger = enums.Trigger.START + + elif trigger is not None and trigger_id is not None: + pass # This is how the function should be called + + else: + raise ValueError('Both trigger ({}) and trigger_id ({}) should be passed in to the method'.format(str(trigger), str(trigger_id))) + + if type(trigger) is not enums.Trigger: + raise TypeError('Parameter trigger must be of type ' + str(enums.Trigger)) + self._interpreter.send_software_edge_trigger(trigger, trigger_id) + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, attribute_value): + r'''_set_attribute_vi_boolean + + Sets the value of a ViBoolean property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + NI-FGEN contains high-level methods that set most of the instrument + properties. NI recommends that you use the high-level driver methods + as much as possible. They handle order dependencies and multithread + locking for you. In addition, they perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. + + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): Specifies the ID of a property. + + attribute_value (bool): Specifies the value to which you want to set the property. **Default + Value**: None + + Note: + Some of the values might not be valid depending on the current + settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int32 + + Sets the value of a ViInt32 property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + NI-FGEN contains high-level methods that set most of the instrument + properties. NI recommends that you use the high-level driver methods + as much as possible. They handle order dependencies and multithread + locking for you. In addition, they perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. + + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): Specifies the ID of a property. + + attribute_value (int): Specifies the value to which you want to set the property. **Default + Value**: None + + Note: + Some of the values might not be valid depending on the current + settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_real64 + + Sets the value of a ViReal64 property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + NI-FGEN contains high-level methods that set most of the instrument + properties. NI recommends that you use the high-level driver methods + as much as possible. They handle order dependencies and multithread + locking for you. In addition, they perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. + + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): Specifies the ID of a property. + + attribute_value (float): Specifies the value to which you want to set the property. **Default + Value**: None + + Note: + Some of the values might not be valid depending on the current + settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, attribute_value): + r'''_set_attribute_vi_string + + Sets the value of a ViString property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + NI-FGEN contains high-level methods that set most of the instrument + properties. NI recommends that you use the high-level driver methods + as much as possible. They handle order dependencies and multithread + locking for you. In addition, they perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. + + Also, when state caching is enabled, the high-level methods that + configure multiple properties perform instrument I/O only for the + properties whose value you change. Thus, you can safely call the + high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Specifies the ID of a property. + + attribute_value (str): Specifies the value to which you want to set the property. **Default + Value**: None + + Note: + Some of the values might not be valid depending on the current + settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_named_waveform_next_write_position(self, waveform_name, relative_to, offset): + r'''_set_named_waveform_next_write_position + + Sets the position in the waveform to which data is written at the next + write. This method allows you to write to arbitrary locations within + the waveform. These settings apply only to the next write to the + waveform specified by the **waveformHandle** parameter. Subsequent + writes to that waveform begin where the last write left off, unless this + method is called again. The **waveformHandle** passed in must have + been created with a call to one of the following methods: + + - allocate_waveform + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_named_waveform_next_write_position` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._set_named_waveform_next_write_position` + + Args: + waveform_name (str): Specifies the name to associate with the allocated waveform. + + relative_to (enums.RelativeTo): Specifies the reference position in the waveform. This position and + **offset** together determine where to start loading data into the + waveform. + + ****Defined Values**** + + +------------------------+-------------------------------------------------------------------------+ + | RelativeTo.START (0) | Use the start of the waveform as the reference position. | + +------------------------+-------------------------------------------------------------------------+ + | RelativeTo.CURRENT (1) | Use the current position within the waveform as the reference position. | + +------------------------+-------------------------------------------------------------------------+ + + offset (int): Specifies the offset from the **relativeTo** parameter at which to start + loading the data into the waveform. + + ''' + if type(relative_to) is not enums.RelativeTo: + raise TypeError('Parameter relative_to must be of type ' + str(enums.RelativeTo)) + self._interpreter.set_named_waveform_next_write_position(self._repeated_capability, waveform_name, relative_to, offset) + + @ivi_synchronized + def set_next_write_position(self, waveform_name_or_handle, relative_to, offset): + '''set_next_write_position + + Sets the position in the waveform at which the next waveform data is + written. This method allows you to write to arbitrary locations within + the waveform. These settings apply only to the next write to the + waveform specified by the waveformHandle parameter. Subsequent writes to + that waveform begin where the last write left off, unless this method + is called again. The waveformHandle passed in must have been created by + a call to the allocate_waveform method or one of the following + create_waveform method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].set_next_write_position` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.set_next_write_position` + + Args: + waveform_name_or_handle (str or int): The name (str) or handle (int) of an arbitrary waveform previously allocated with allocate_named_waveform, allocate_waveform or create_waveform. + + relative_to (enums.RelativeTo): Specifies the reference position in the waveform. This position and + **offset** together determine where to start loading data into the + waveform. + + ****Defined Values**** + + +------------------------+-------------------------------------------------------------------------+ + | RelativeTo.START (0) | Use the start of the waveform as the reference position. | + +------------------------+-------------------------------------------------------------------------+ + | RelativeTo.CURRENT (1) | Use the current position within the waveform as the reference position. | + +------------------------+-------------------------------------------------------------------------+ + + offset (int): Specifies the offset from **relativeTo** at which to start loading the + data into the waveform. + + ''' + if isinstance(waveform_name_or_handle, str): + return self._set_named_waveform_next_write_position(waveform_name_or_handle, relative_to, offset) + else: + return self._set_waveform_next_write_position(waveform_name_or_handle, relative_to, offset) + + @ivi_synchronized + def _set_waveform_next_write_position(self, waveform_handle, relative_to, offset): + r'''_set_waveform_next_write_position + + Sets the position in the waveform at which the next waveform data is + written. This method allows you to write to arbitrary locations within + the waveform. These settings apply only to the next write to the + waveform specified by the waveformHandle parameter. Subsequent writes to + that waveform begin where the last write left off, unless this method + is called again. The waveformHandle passed in must have been created by + a call to the allocate_waveform method or one of the following + niFgen CreateWaveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_waveform_next_write_position` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._set_waveform_next_write_position` + + Args: + waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with + the allocate_waveform method. + + relative_to (enums.RelativeTo): Specifies the reference position in the waveform. This position and + **offset** together determine where to start loading data into the + waveform. + + ****Defined Values**** + + +------------------------+-------------------------------------------------------------------------+ + | RelativeTo.START (0) | Use the start of the waveform as the reference position. | + +------------------------+-------------------------------------------------------------------------+ + | RelativeTo.CURRENT (1) | Use the current position within the waveform as the reference position. | + +------------------------+-------------------------------------------------------------------------+ + + offset (int): Specifies the offset from **relativeTo** at which to start loading the + data into the waveform. + + ''' + if type(relative_to) is not enums.RelativeTo: + raise TypeError('Parameter relative_to must be of type ' + str(enums.RelativeTo)) + self._interpreter.set_waveform_next_write_position(self._repeated_capability, waveform_handle, relative_to, offset) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + @ivi_synchronized + def _write_binary16_waveform_numpy(self, waveform_handle, data): + r'''_write_binary16_waveform_numpy + + Writes binary data to the waveform in onboard memory. The waveform + handle passed must have been created by a call to the + allocate_waveform or the create_waveform method. + + By default, the subsequent call to the write_waveform + method continues writing data from the position of the last sample + written. You can set the write position and offset by calling the + set_next_write_position method. If streaming is enabled, + you can write more data than the allocated waveform size in onboard + memory. Refer to the + `Streaming `__ topic for more + information about streaming data. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._write_binary16_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._write_binary16_waveform` + + Args: + waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with + the allocate_waveform method. + + data (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. The array must + have at least as many elements as the value in **size**. The binary data + is left-justified. + + ''' + import numpy + + if type(data) is not numpy.ndarray: + raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) + if numpy.isfortran(data) is True: + raise TypeError('data must be in C-order') + if data.dtype is not numpy.dtype('int16'): + raise TypeError('data must be numpy.ndarray of dtype=int16, is ' + str(data.dtype)) + if data.ndim != 1: + raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) + self._interpreter.write_binary16_waveform_numpy(self._repeated_capability, waveform_handle, data) + + @ivi_synchronized + def _write_named_waveform_f64(self, waveform_name, data): + r'''_write_named_waveform_f64 + + Writes floating-point data to the waveform in onboard memory. The + waveform handle passed in must have been created by a call to the + allocate_waveform method or to one of the following niFgen + Create Waveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + By default, the subsequent call to the write_waveform + method continues writing data from the position of the last sample + written. You can set the write position and offset by calling the + set_next_write_position method. If streaming is + enabled, you can write more data than the allocated waveform size in + onboard memory. Refer to the + `Streaming `__ topic for more + information about streaming data. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._write_named_waveform_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._write_named_waveform_f64` + + Args: + waveform_name (str): Specifies the name to associate with the allocated waveform. + + data (array.array("d")): Specifies the array of data to load into the waveform. The array must + have at least as many elements as the value in **size**. + + ''' + self._interpreter.write_named_waveform_f64(self._repeated_capability, waveform_name, data) + + @ivi_synchronized + def _write_named_waveform_f64_numpy(self, waveform_name, data): + r'''_write_named_waveform_f64_numpy + + Writes floating-point data to the waveform in onboard memory. The + waveform handle passed in must have been created by a call to the + allocate_waveform method or to one of the following niFgen + Create Waveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + By default, the subsequent call to the write_waveform + method continues writing data from the position of the last sample + written. You can set the write position and offset by calling the + set_next_write_position method. If streaming is + enabled, you can write more data than the allocated waveform size in + onboard memory. Refer to the + `Streaming `__ topic for more + information about streaming data. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._write_named_waveform_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._write_named_waveform_f64` + + Args: + waveform_name (str): Specifies the name to associate with the allocated waveform. + + data (numpy.array(dtype=numpy.float64)): Specifies the array of data to load into the waveform. The array must + have at least as many elements as the value in **size**. + + ''' + import numpy + + if type(data) is not numpy.ndarray: + raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) + if numpy.isfortran(data) is True: + raise TypeError('data must be in C-order') + if data.dtype is not numpy.dtype('float64'): + raise TypeError('data must be numpy.ndarray of dtype=float64, is ' + str(data.dtype)) + if data.ndim != 1: + raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) + self._interpreter.write_named_waveform_f64_numpy(self._repeated_capability, waveform_name, data) + + @ivi_synchronized + def _write_named_waveform_i16_numpy(self, waveform_name, data): + r'''_write_named_waveform_i16_numpy + + Writes binary data to the named waveform in onboard memory. + + By default, the subsequent call to the write_waveform + method continues writing data from the position of the last sample + written. You can set the write position and offset by calling the + set_next_write_position method. If streaming is + enabled, you can write more data than the allocated waveform size in + onboard memory. Refer to the + `Streaming `__ topic for more + information about streaming data. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._write_named_waveform_i16` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._write_named_waveform_i16` + + Args: + waveform_name (str): Specifies the name to associate with the allocated waveform. + + data (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. The array must + have at least as many elements as the value in **size**. + + ''' + import numpy + + if type(data) is not numpy.ndarray: + raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) + if numpy.isfortran(data) is True: + raise TypeError('data must be in C-order') + if data.dtype is not numpy.dtype('int16'): + raise TypeError('data must be numpy.ndarray of dtype=int16, is ' + str(data.dtype)) + if data.ndim != 1: + raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) + self._interpreter.write_named_waveform_i16_numpy(self._repeated_capability, waveform_name, data) + + @ivi_synchronized + def write_script(self, script): + r'''write_script + + Writes a string containing one or more scripts that govern the + generation of waveforms. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].write_script` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.write_script` + + Args: + script (str): Contains the text of the script you want to use for your generation + operation. Refer to `scripting + Instructions `__ + for more information about writing scripts. + + ''' + self._interpreter.write_script(self._repeated_capability, script) + + @ivi_synchronized + def _write_waveform(self, waveform_handle, data): + r'''_write_waveform + + Writes floating-point data to the waveform in onboard memory. The + waveform handle passed in must have been created by a call to the + allocate_waveform method or one of the following niFgen + CreateWaveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + By default, the subsequent call to the write_waveform method + continues writing data from the position of the last sample written. You + can set the write position and offset by calling the + set_next_write_position method. If streaming is enabled, + you can write more data than the allocated waveform size in onboard + memory. Refer to the + `Streaming `__ topic for more + information about streaming data. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._write_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._write_waveform` + + Args: + waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with + the allocate_waveform method. + + data (array.array("d")): Specifies the array of data to load into the waveform. The array must + have at least as many elements as the value in **size**. + + ''' + self._interpreter.write_waveform(self._repeated_capability, waveform_handle, data) + + @ivi_synchronized + def _write_waveform_numpy(self, waveform_handle, data): + r'''_write_waveform_numpy + + Writes floating-point data to the waveform in onboard memory. The + waveform handle passed in must have been created by a call to the + allocate_waveform method or one of the following niFgen + CreateWaveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + By default, the subsequent call to the write_waveform method + continues writing data from the position of the last sample written. You + can set the write position and offset by calling the + set_next_write_position method. If streaming is enabled, + you can write more data than the allocated waveform size in onboard + memory. Refer to the + `Streaming `__ topic for more + information about streaming data. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._write_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session._write_waveform` + + Args: + waveform_handle (int): Specifies the handle of the arbitrary waveform previously allocated with + the allocate_waveform method. + + data (numpy.array(dtype=numpy.float64)): Specifies the array of data to load into the waveform. The array must + have at least as many elements as the value in **size**. + + ''' + import numpy + + if type(data) is not numpy.ndarray: + raise TypeError('data must be {0}, is {1}'.format(numpy.ndarray, type(data))) + if numpy.isfortran(data) is True: + raise TypeError('data must be in C-order') + if data.dtype is not numpy.dtype('float64'): + raise TypeError('data must be numpy.ndarray of dtype=float64, is ' + str(data.dtype)) + if data.ndim != 1: + raise TypeError('data must be numpy.ndarray of dimension=1, is ' + str(data.ndim)) + self._interpreter.write_waveform_numpy(self._repeated_capability, waveform_handle, data) + + @ivi_synchronized + def write_waveform(self, waveform_name_or_handle, data): + '''write_waveform + + Writes data to the waveform in onboard memory. + + By default, subsequent calls to this method + continue writing data from the position of the last sample written. You + can set the write position and offset by calling the set_next_write_position + set_next_write_position method. + + Tip: + This method can be called on specific channels within your :py:class:`nifgen.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].write_waveform` + + To call the method on all channels, you can call it directly on the :py:class:`nifgen.Session`. + + Example: :py:meth:`my_session.write_waveform` + + Args: + waveform_name_or_handle (str or int): The name (str) or handle (int) of an arbitrary waveform previously allocated with allocate_named_waveform, allocate_waveform or create_waveform. + + data (list of float): Array of data to load into the waveform. This may be an iterable of float, or for best performance a numpy.ndarray of dtype int16 or float64. + + ''' + use_named = isinstance(waveform_name_or_handle, str) + # Check the type by using string comparison so that we don't import numpy unnecessarily. + if str(type(data)).find("'numpy.ndarray'") != -1: + import numpy + if data.dtype == numpy.float64: + return self._write_named_waveform_f64_numpy(waveform_name_or_handle, data) if use_named else self._write_waveform_numpy(waveform_name_or_handle, data) + elif data.dtype == numpy.int16: + return self._write_named_waveform_i16_numpy(waveform_name_or_handle, data) if use_named else self._write_binary16_waveform_numpy(waveform_name_or_handle, data) + else: + raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(data.dtype, numpy.float64, numpy.int16)) + elif isinstance(data, array.array): + if data.typecode == 'd': + return self._write_named_waveform_f64(waveform_name_or_handle, data) if use_named else self._write_waveform(waveform_name_or_handle, data) + elif data.typecode == 'h': + return self._write_named_waveform_i16(waveform_name_or_handle, data) if use_named else self._write_binary16_waveform(waveform_name_or_handle, data) + else: + raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(data.typecode, 'd (double)', 'h (16 bit int)')) + + return self._write_named_waveform_f64(waveform_name_or_handle, data) if use_named else self._write_waveform(waveform_name_or_handle, data) + + def _error_message(self, error_code): + r'''_error_message + + Converts a status code returned by an NI-FGEN method into a + user-readable string. + + Args: + error_code (int): Specifies the **status** parameter that is returned from any of the + NI-FGEN methods. + + **Default Value**: 0 (VI_SUCCESS) + + + Returns: + error_message (str): Returns the error message string read from the instrument error message + queue. + + You must pass a ViChar array with at least 256 bytes. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-FGEN session to an NI signal generator.''' + + def __init__(self, resource_name, channel_name=None, reset_device=False, options={}, *, grpc_options=None): + r'''An NI-FGEN session to an NI signal generator. + + Creates and returns a new NI-FGEN session to the specified channel of a + waveform generator that is used in all subsequent NI-FGEN method + calls. + + Args: + resource_name (str): Caution: + Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. + However, all IVI names, such as logical names, are case-sensitive. If + you use logical names, driver session names, or virtual names in your + program, you must ensure that the name you use matches the name in the + IVI Configuration Store file exactly, without any variations in the case + of the characters. + + | Specifies the resource name of the device to initialize. + + For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is + the device number assigned by MAX, as shown in Example 1. + + For NI-DAQmx devices, the syntax is just the device name specified in + MAX, as shown in Example 2. Typical default names for NI-DAQmx devices + in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by + right-clicking on the name in MAX and entering a new name. + + An alternate syntax for NI-DAQmx devices consists of DAQ::\ *NI-DAQmx + device name*, as shown in Example 3. This naming convention allows for + the use of an NI-DAQmx device in an application that was originally + designed for a Traditional NI-DAQ device. For example, if the + application expects DAQ::1, you can rename the NI-DAQmx device to 1 in + MAX and pass in DAQ::1 for the resource name, as shown in Example 4. + + If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already + exists with that same name, the NI-DAQmx device is matched first. + + You can also pass in the name of an IVI logical name or an IVI virtual + name configured with the IVI Configuration utility, as shown in Example + 5. A logical name identifies a particular virtual instrument. A virtual + name identifies a specific device and specifies the initial settings for + the session. + + +-----------+--------------------------------------+------------------------+---------------------------------+ + | Example # | Device Type | Syntax | Variable | + +===========+======================================+========================+=================================+ + | 1 | Traditional NI-DAQ device | DAQ::\ *1* | (*1* = device number) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 2 | NI-DAQmx device | *myDAQmxDevice* | (*myDAQmxDevice* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 3 | NI-DAQmx device | DAQ::\ *myDAQmxDevice* | (*myDAQmxDevice* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 4 | NI-DAQmx device | DAQ::\ *2* | (*2* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 5 | IVI logical name or IVI virtual name | *myLogicalName* | (*myLogicalName* = name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + + channel_name (str, list, range, tuple): Specifies the channel that this VI uses. + + **Default Value**: "0" + + reset_device (bool): Specifies whether you want to reset the device during the initialization + procedure. True specifies that the device is reset and performs the + same method as the Reset method. + + ****Defined Values**** + + **Default Value**: False + + +-------+---------------------+ + | True | Reset device | + +-------+---------------------+ + | False | Do not reset device | + +-------+---------------------+ + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + grpc_options (nifgen.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + session (nifgen.Session): A session object representing the device. + + ''' + if grpc_options: + import nifgen._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + channel_name = _converters.convert_repeated_capabilities_without_prefix(channel_name) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _initialize_with_channels fails, the error handler can reference it. + # And then here, once _initialize_with_channels succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._initialize_with_channels(resource_name, channel_name, reset_device, options)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-FGEN', grpc_options.grpc_channel, connected) + + # NI-TClk does not work over NI gRPC Device Server + if not grpc_options: + self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("channel_name=" + pp.pformat(channel_name)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Initiates signal generation. If you want to abort signal generation, + call the abort method. After the signal generation + is aborted, you can call the initiate method to + cause the signal generator to produce a signal again. + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Generation(self) + + def close(self): + '''close + + Performs the following operations: + + - Closes the instrument I/O session. + - Destroys the NI-FGEN session and all of its properties. + - Deallocates any memory resources NI-FGEN uses. + + Not all signal routes established by calling the ExportSignal + and RouteSignalOut methods are released when the NI-FGEN + session is closed. The following table shows what happens to a signal + route on your device when you call the _close method. + + +--------------------+-------------------+------------------+ + | Routes To | NI 5401/5411/5431 | Other Devices | + +====================+===================+==================+ + | Front Panel | Remain connected | Remain connected | + +--------------------+-------------------+------------------+ + | RTSI/PXI Backplane | Remain connected | Disconnected | + +--------------------+-------------------+------------------+ + + Note: + After calling _close, you cannot use NI-FGEN again until you + call the init or InitWithOptions methods. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Aborts any previously initiated signal generation. Call the + initiate method to cause the signal generator to + produce a signal again. + ''' + self._interpreter.abort() + + @ivi_synchronized + def clear_arb_memory(self): + r'''clear_arb_memory + + Removes all previously created arbitrary waveforms, sequences, and + scripts from the signal generator memory and invalidates all waveform + handles, sequence handles, and waveform names. + + Note: + The signal generator must not be in the Generating state when you + call this method. + ''' + self._interpreter.clear_arb_memory() + + @ivi_synchronized + def clear_arb_sequence(self, sequence_handle): + r'''clear_arb_sequence + + Removes a previously created arbitrary sequence from the signal + generator memory and invalidates the sequence handle. + + Note: + The signal generator must not be in the Generating state when you + call this method. + + Args: + sequence_handle (int): Specifies the handle of the arbitrary sequence that you want the signal + generator to remove. You can create an arbitrary sequence using the + create_arb_sequence or create_advanced_arb_sequence method. + These methods return a handle that you use to identify the sequence. + + | **Defined Value**: + | NIFGEN_VAL_ALL_SEQUENCES—Remove all sequences from the signal + generator + + **Default Value**: None + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + self._interpreter.clear_arb_sequence(sequence_handle) + + @ivi_synchronized + def _clear_arb_waveform(self, waveform_handle): + r'''_clear_arb_waveform + + Removes a previously created arbitrary waveform from the signal + generator memory and invalidates the waveform handle. + + Note: + The signal generator must not be in the Generating state when you + call this method. + + Args: + waveform_handle (int): Specifies the handle of the arbitrary waveform that you want the signal + generator to remove. + + You can create multiple arbitrary waveforms using one of the following + niFgen Create Waveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + **Defined Value**: + + NIFGEN_VAL_ALL_WAVEFORMS—Remove all waveforms from the signal + generator. + + **Default Value**: None + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + self._interpreter.clear_arb_waveform(waveform_handle) + + @ivi_synchronized + def clear_freq_list(self, frequency_list_handle): + r'''clear_freq_list + + Removes a previously created frequency list from the signal generator + memory and invalidates the frequency list handle. + + Note: + The signal generator must not be in the Generating state when you + call this method. + + Args: + frequency_list_handle (int): Specifies the handle of the frequency list you want the signal generator + to remove. You create multiple frequency lists using + create_freq_list. create_freq_list returns a handle that you + use to identify each list. Specify a value of -1 to clear all frequency + lists. + + **Defined Value** + + NIFGEN_VAL_ALL_FLISTS—Remove all frequency lists from the signal + generator. + + **Default Value**: None + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + self._interpreter.clear_freq_list(frequency_list_handle) + + @ivi_synchronized + def commit(self): + r'''commit + + Causes a transition to the Committed state. This method verifies + property values, reserves the device, and commits the property values + to the device. If the property values are all valid, NI-FGEN sets the + device hardware configuration to match the session configuration. This + method does not support the NI 5401/5404/5411/5431 signal generators. + + In the Committed state, you can load waveforms, scripts, and sequences + into memory. If any properties are changed, NI-FGEN implicitly + transitions back to the Idle state, where you can program all session + properties before applying them to the device. This method has no + effect if the device is already in the Committed or Generating state and + returns a successful status value. + + Calling this VI before the niFgen Initiate Generation VI is optional but + has the following benefits: + + - Routes are committed, so signals are exported or imported. + - Any Reference Clock and external clock circuits are phase-locked. + - A subsequent initiate method can run faster + because the device is already configured. + ''' + self._interpreter.commit() + + @ivi_synchronized + def create_advanced_arb_sequence(self, waveform_handles_array, loop_counts_array, sample_counts_array=None, marker_location_array=None): + r'''create_advanced_arb_sequence + + Creates an arbitrary sequence from an array of waveform handles and an + array of corresponding loop counts. This method returns a handle that + identifies the sequence. You pass this handle to the + configure_arb_sequence method to specify what arbitrary sequence + you want the signal generator to produce. + + The create_advanced_arb_sequence method extends on the + create_arb_sequence method by adding the ability to set the + number of samples in each sequence step and to set marker locations. + + An arbitrary sequence consists of multiple waveforms. For each waveform, + you specify the number of times the signal generator produces the + waveform before proceeding to the next waveform. The number of times to + repeat a specific waveform is called the loop count. + + Note: + The signal generator must not be in the Generating state when you call + this method. + You must call the ConfigureOutputMode method to set the + **outputMode** parameter to OutputMode.SEQ before calling this + method. + + Args: + waveform_handles_array (list of int): Specifies the array of waveform handles from which you want to create a + new arbitrary sequence. The array must have at least as many elements as + the value that you specify in **sequenceLength**. Each + **waveformHandlesArray** element has a corresponding **loopCountsArray** + element that indicates how many times that waveform is repeated. You + obtain waveform handles when you create arbitrary waveforms with the + allocate_waveform method or one of the following niFgen + CreateWaveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + **Default Value**: None + + loop_counts_array (list of int): Specifies the array of loop counts you want to use to create a new + arbitrary sequence. The array must have at least as many elements as the + value that you specify in the **sequenceLength** parameter. Each + **loopCountsArray** element corresponds to a **waveformHandlesArray** + element and indicates how many times to repeat that waveform. Each + element of the **loopCountsArray** must be less than or equal to the + maximum number of loop counts that the signal generator allows. You can + obtain the maximum loop count from **maximumLoopCount** in the + query_arb_seq_capabilities method. + + **Default Value**: None + + sample_counts_array (list of int): Specifies the array of sample counts that you want to use to create a + new arbitrary sequence. The array must have at least as many elements as + the value you specify in the **sequenceLength** parameter. Each + **sampleCountsArray** element corresponds to a **waveformHandlesArray** + element and indicates the subset, in samples, of the given waveform to + generate. Each element of the **sampleCountsArray** must be larger than + the minimum waveform size, a multiple of the waveform quantum and no + larger than the number of samples in the corresponding waveform. You can + obtain these values by calling the query_arb_wfm_capabilities + method. + + **Default Value**: None + + marker_location_array (list of int): Specifies the array of marker locations to where you want a marker to be + generated in the sequence. The array must have at least as many elements + as the value you specify in the **sequenceLength** parameter. Each + **markerLocationArray** element corresponds to a + **waveformHandlesArray** element and indicates where in the waveform a + marker is to generate. The marker location must be less than the size of + the waveform the marker is in. The markers are coerced to the nearest + marker quantum and the coerced values are returned in the + **coercedMarkersArray** parameter. + + If you do not want a marker generated for a particular sequence stage, + set this parameter to NIFGEN_VAL_NO_MARKER. + + **Defined Value**: NIFGEN_VAL_NO_MARKER + + **Default Value**: None + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + coerced_markers_array (list of int): Returns an array of all given markers that are coerced (rounded) to the + nearest marker quantum. Not all devices coerce markers. + + **Default Value**: None + + sequence_handle (int): Returns the handle that identifies the new arbitrary sequence. You can + pass this handle to configure_arb_sequence to generate the + arbitrary sequence. + + ''' + if loop_counts_array is not None and len(loop_counts_array) != len(waveform_handles_array): # case S160 + raise ValueError("Length of loop_counts_array and waveform_handles_array parameters do not match.") # case S160 + if sample_counts_array is not None and len(sample_counts_array) != len(waveform_handles_array): # case S160 + raise ValueError("Length of sample_counts_array and waveform_handles_array parameters do not match.") # case S160 + if marker_location_array is not None and len(marker_location_array) != len(waveform_handles_array): # case S160 + raise ValueError("Length of marker_location_array and waveform_handles_array parameters do not match.") # case S160 + coerced_markers_array, sequence_handle = self._interpreter.create_advanced_arb_sequence(waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array) + return coerced_markers_array, sequence_handle + + @ivi_synchronized + def create_arb_sequence(self, waveform_handles_array, loop_counts_array): + r'''create_arb_sequence + + Creates an arbitrary sequence from an array of waveform handles and an + array of corresponding loop counts. This method returns a handle that + identifies the sequence. You pass this handle to the + configure_arb_sequence method to specify what arbitrary sequence + you want the signal generator to produce. + + An arbitrary sequence consists of multiple waveforms. For each waveform, + you can specify the number of times that the signal generator produces + the waveform before proceeding to the next waveform. The number of times + to repeat a specific waveform is called the loop count. + + Note: + You must call the ConfigureOutputMode method to set the + **outputMode** parameter to OutputMode.SEQ before calling this + method. + + Args: + waveform_handles_array (list of int): Specifies the array of waveform handles from which you want to create a + new arbitrary sequence. The array must have at least as many elements as + the value that you specify in **sequenceLength**. Each + **waveformHandlesArray** element has a corresponding **loopCountsArray** + element that indicates how many times that waveform is repeated. You + obtain waveform handles when you create arbitrary waveforms with the + allocate_waveform method or one of the following niFgen + CreateWaveform methods: + + - create_waveform + - create_waveform + - create_waveform_from_file_i16 + - create_waveform_from_file_f64 + + **Default Value**: None + + loop_counts_array (list of int): Specifies the array of loop counts you want to use to create a new + arbitrary sequence. The array must have at least as many elements as the + value that you specify in the **sequenceLength** parameter. Each + **loopCountsArray** element corresponds to a **waveformHandlesArray** + element and indicates how many times to repeat that waveform. Each + element of the **loopCountsArray** must be less than or equal to the + maximum number of loop counts that the signal generator allows. You can + obtain the maximum loop count from **maximumLoopCount** in the + query_arb_seq_capabilities method. + + **Default Value**: None + + + Returns: + sequence_handle (int): Returns the handle that identifies the new arbitrary sequence. You can + pass this handle to configure_arb_sequence to generate the + arbitrary sequence. + + ''' + if loop_counts_array is not None and len(loop_counts_array) != len(waveform_handles_array): # case S160 + raise ValueError("Length of loop_counts_array and waveform_handles_array parameters do not match.") # case S160 + sequence_handle = self._interpreter.create_arb_sequence(waveform_handles_array, loop_counts_array) + return sequence_handle + + @ivi_synchronized + def create_freq_list(self, waveform, frequency_array, duration_array): + r'''create_freq_list + + Creates a frequency list from an array of frequencies + (**frequencyArray**) and an array of durations (**durationArray**). The + two arrays should have the same number of elements, and this value must + also be the size of the **frequencyListLength**. The method returns a + handle that identifies the frequency list (the **frequencyListHandle**). + You can pass this handle to configure_freq_list to specify what + frequency list you want the signal generator to produce. + + A frequency list consists of a list of frequencies and durations. The + signal generator generates each frequency for the given amount of time + and then proceeds to the next frequency. When the end of the list is + reached, the signal generator starts over at the beginning of the list. + + Note: + The signal generator must not be in the Generating state when you call + this method. + + Args: + waveform (enums.Waveform): Specifies the standard waveform that you want the signal generator to + produce. NI-FGEN sets the func_waveform property to this + value. + + ****Defined Values**** + + **Default Value**: Waveform.SINE + + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.SINE | Specifies that the signal generator produces a sinusoid waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.SQUARE | Specifies that the signal generator produces a square waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.TRIANGLE | Specifies that the signal generator produces a triangle waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.RAMP_UP | Specifies that the signal generator produces a positive ramp waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.RAMP_DOWN | Specifies that the signal generator produces a negative ramp waveform. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.DC | Specifies that the signal generator produces a constant voltage. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.NOISE | Specifies that the signal generator produces white noise. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + | Waveform.USER | Specifies that the signal generator produces a user-defined waveform as defined with the define_user_standard_waveform method. | + +--------------------+--------------------------------------------------------------------------------------------------------------------------------+ + + frequency_array (list of float): Specifies the array of frequencies to form the frequency list. The array + must have at least as many elements as the value you specify in + **frequencyListLength**. Each **frequencyArray** element has a + corresponding **durationArray** element that indicates how long that + frequency is repeated. + + **Units**: hertz + + **Default Value**: None + + duration_array (list of float): Specifies the array of durations to form the frequency list. The array + must have at least as many elements as the value that you specify in + **frequencyListLength**. Each **durationArray** element has a + corresponding **frequencyArray** element and indicates how long in + seconds to generate the corresponding frequency. + + **Units**: seconds + + **Default Value**: None + + + Returns: + frequency_list_handle (int): Returns the handle that identifies the new frequency list. You can pass + this handle to configure_freq_list to generate the arbitrary + sequence. + + ''' + if type(waveform) is not enums.Waveform: + raise TypeError('Parameter waveform must be of type ' + str(enums.Waveform)) + if duration_array is not None and len(duration_array) != len(frequency_array): # case S160 + raise ValueError("Length of duration_array and frequency_array parameters do not match.") # case S160 + frequency_list_handle = self._interpreter.create_freq_list(waveform, frequency_array, duration_array) + return frequency_list_handle + + @ivi_synchronized + def disable(self): + r'''disable + + Places the instrument in a quiescent state where it has minimal or no + impact on the system to which it is connected. The analog output and all + exported signals are disabled. + ''' + self._interpreter.disable() + + @ivi_synchronized + def export_attribute_configuration_buffer(self): + r'''export_attribute_configuration_buffer + + Exports the property configuration of the session to a configuration + buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑FGEN returns an + error. + + Returns: + configuration (bytes): Specifies the byte array buffer to be populated with the exported + property configuration. + + ''' + configuration = self._interpreter.export_attribute_configuration_buffer() + return _converters.convert_to_bytes(configuration) + + @ivi_synchronized + def export_attribute_configuration_file(self, file_path): + r'''export_attribute_configuration_file + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑FGEN returns an + error. + + Args: + file_path (str): Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:** .nifgenconfig + + ''' + self._interpreter.export_attribute_configuration_file(file_path) + + @ivi_synchronized + def get_channel_name(self, index): + r'''get_channel_name + + Returns the channel string that is in the channel table at an index you + specify. + + Note: + This method is included for compliance with the IviFgen Class + Specification. + + Args: + index (int): A 1-based index into the channel table. + + + Returns: + channel_string (str): Returns the channel string that is in the channel table at the index you + specify. Do not modify the contents of the channel string. + + ''' + channel_string = self._interpreter.get_channel_name(index) + return channel_string + + @ivi_synchronized + def _get_ext_cal_last_date_and_time(self): + r'''_get_ext_cal_last_date_and_time + + Returns the date and time of the last successful external calibration. + The time returned is 24-hour (military) local time; for example, if the + device was calibrated at 2:30 PM, this method returns 14 for the + **hour** parameter and 30 for the **minute** parameter. + + Returns: + year (int): Specifies the year of the last successful calibration. + + month (int): Specifies the month of the last successful calibration. + + day (int): Specifies the day of the last successful calibration. + + hour (int): Specifies the hour of the last successful calibration. + + minute (int): Specifies the minute of the last successful calibration. + + ''' + year, month, day, hour, minute = self._interpreter.get_ext_cal_last_date_and_time() + return year, month, day, hour, minute + + @ivi_synchronized + def get_ext_cal_last_temp(self): + r'''get_ext_cal_last_temp + + Returns the temperature at the last successful external calibration. The + temperature is returned in degrees Celsius. + + Returns: + temperature (float): Specifies the temperature at the last successful calibration in degrees + Celsius. + + ''' + temperature = self._interpreter.get_ext_cal_last_temp() + return temperature + + @ivi_synchronized + def get_ext_cal_recommended_interval(self): + r'''get_ext_cal_recommended_interval + + Returns the recommended interval between external calibrations in + months. + + Returns: + months (hightime.timedelta): Specifies the recommended interval between external calibrations in + months. + + ''' + months = self._interpreter.get_ext_cal_recommended_interval() + return _converters.convert_month_to_timedelta(months) + + @ivi_synchronized + def get_hardware_state(self): + r'''get_hardware_state + + Returns the current hardware state of the device and, if the device is + in the hardware error state, the current hardware error. + + Note: Hardware states do not necessarily correspond to NI-FGEN states. + + Returns: + state (enums.HardwareState): Returns the hardware state of the signal generator. + + **Defined Values** + + +-----------------------------------------+--------------------------------------------+ + | HardwareState.IDLE | The device is in the Idle state. | + +-----------------------------------------+--------------------------------------------+ + | HardwareState.WAITING_FOR_START_TRIGGER | The device is waiting for Start Trigger. | + +-----------------------------------------+--------------------------------------------+ + | HardwareState.RUNNING | The device is in the Running state. | + +-----------------------------------------+--------------------------------------------+ + | HardwareState.DONE | The generation has completed successfully. | + +-----------------------------------------+--------------------------------------------+ + | HardwareState.HARDWARE_ERROR | There is a hardware error. | + +-----------------------------------------+--------------------------------------------+ + + ''' + state = self._interpreter.get_hardware_state() + return state + + @ivi_synchronized + def get_ext_cal_last_date_and_time(self): + '''get_ext_cal_last_date_and_time + + Returns the date and time of the last successful external calibration. The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30 PM, this method returns 14 for the **hour** parameter and 30 for the **minute** parameter. + + Returns: + last_cal_datetime (hightime.datetime): Indicates date and time of the last calibration. + + ''' + year, month, day, hour, minute = self._get_ext_cal_last_date_and_time() + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def get_self_cal_last_date_and_time(self): + '''get_self_cal_last_date_and_time + + Returns the date and time of the last successful self-calibration. + + Returns: + last_cal_datetime (hightime.datetime): Returns the date and time the device was last calibrated. + + ''' + year, month, day, hour, minute = self._get_self_cal_last_date_and_time() + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def _get_self_cal_last_date_and_time(self): + r'''_get_self_cal_last_date_and_time + + Returns the date and time of the last successful self-calibration. + + All values are returned as separate parameters. Each parameter is + returned as an integer, including the year, month, day, hour, minute, + and second. For example, if the device is calibrated in September 2013, + this method returns 9 for the **month** parameter and 2013 for the + **year** parameter. + + The time returned is 24-hour (military) local time. For example, if the + device was calibrated at 2:30 PM, this method returns 14 for the + **hours** parameter and 30 for the **minutes** parameter. + + Returns: + year (int): Specifies the year of the last successful calibration. + + month (int): Specifies the month of the last successful calibration. + + day (int): Specifies the day of the last successful calibration. + + hour (int): Specifies the hour of the last successful calibration. + + minute (int): Specifies the minute of the last successful calibration. + + ''' + year, month, day, hour, minute = self._interpreter.get_self_cal_last_date_and_time() + return year, month, day, hour, minute + + @ivi_synchronized + def get_self_cal_last_temp(self): + r'''get_self_cal_last_temp + + Returns the temperature at the last successful self-calibration. The + temperature is returned in degrees Celsius. + + Returns: + temperature (float): Specifies the temperature at the last successful calibration in degrees + Celsius. + + ''' + temperature = self._interpreter.get_self_cal_last_temp() + return temperature + + @ivi_synchronized + def get_self_cal_supported(self): + r'''get_self_cal_supported + + Returns whether the device supports self–calibration. + + Returns: + self_cal_supported (bool): Returns whether the device supports self-calibration. + + ****Defined Values**** + + +-------+------------------------------------+ + | True | Self–calibration is supported. | + +-------+------------------------------------+ + | False | Self–calibration is not supported. | + +-------+------------------------------------+ + + ''' + self_cal_supported = self._interpreter.get_self_cal_supported() + return self_cal_supported + + @ivi_synchronized + def import_attribute_configuration_buffer(self, configuration): + r'''import_attribute_configuration_buffer + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + Note: + You cannot call this method while the session is in a running state, + such as while generating a signal. + + Args: + configuration (bytes): Specifies the byte array buffer that contains the property + configuration to import. + + ''' + configuration = _converters.convert_to_bytes(configuration) + self._interpreter.import_attribute_configuration_buffer(configuration) + + @ivi_synchronized + def import_attribute_configuration_file(self, file_path): + r'''import_attribute_configuration_file + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + Note: + You cannot call this method while the session is in a running state, + such as while generating a signal. + + Args: + file_path (str): Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:** .nifgenconfig + + ''' + self._interpreter.import_attribute_configuration_file(file_path) + + def _initialize_with_channels(self, resource_name, channel_name=None, reset_device=False, option_string=""): + r'''_initialize_with_channels + + Creates and returns a new NI-FGEN session to the specified channel of a + waveform generator that is used in all subsequent NI-FGEN method + calls. + + Args: + resource_name (str): Caution: + Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. + However, all IVI names, such as logical names, are case-sensitive. If + you use logical names, driver session names, or virtual names in your + program, you must ensure that the name you use matches the name in the + IVI Configuration Store file exactly, without any variations in the case + of the characters. + + | Specifies the resource name of the device to initialize. + + For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is + the device number assigned by MAX, as shown in Example 1. + + For NI-DAQmx devices, the syntax is just the device name specified in + MAX, as shown in Example 2. Typical default names for NI-DAQmx devices + in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by + right-clicking on the name in MAX and entering a new name. + + An alternate syntax for NI-DAQmx devices consists of DAQ::\ *NI-DAQmx + device name*, as shown in Example 3. This naming convention allows for + the use of an NI-DAQmx device in an application that was originally + designed for a Traditional NI-DAQ device. For example, if the + application expects DAQ::1, you can rename the NI-DAQmx device to 1 in + MAX and pass in DAQ::1 for the resource name, as shown in Example 4. + + If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already + exists with that same name, the NI-DAQmx device is matched first. + + You can also pass in the name of an IVI logical name or an IVI virtual + name configured with the IVI Configuration utility, as shown in Example + 5. A logical name identifies a particular virtual instrument. A virtual + name identifies a specific device and specifies the initial settings for + the session. + + +-----------+--------------------------------------+------------------------+---------------------------------+ + | Example # | Device Type | Syntax | Variable | + +===========+======================================+========================+=================================+ + | 1 | Traditional NI-DAQ device | DAQ::\ *1* | (*1* = device number) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 2 | NI-DAQmx device | *myDAQmxDevice* | (*myDAQmxDevice* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 3 | NI-DAQmx device | DAQ::\ *myDAQmxDevice* | (*myDAQmxDevice* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 4 | NI-DAQmx device | DAQ::\ *2* | (*2* = device name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + | 5 | IVI logical name or IVI virtual name | *myLogicalName* | (*myLogicalName* = name) | + +-----------+--------------------------------------+------------------------+---------------------------------+ + + channel_name (str, list, range, tuple): Specifies the channel that this VI uses. + + **Default Value**: "0" + + reset_device (bool): Specifies whether you want to reset the device during the initialization + procedure. True specifies that the device is reset and performs the + same method as the Reset method. + + ****Defined Values**** + + **Default Value**: False + + +-------+---------------------+ + | True | Reset device | + +-------+---------------------+ + | False | Do not reset device | + +-------+---------------------+ + + option_string (dict): Sets the initial value of certain session properties. + + The syntax for **optionString** is + + <*attributeName*> = <*value*> + + where + + *attributeName* is the name of the property and *value* is the value to + which the property is set + + To set multiple properties, separate them with a comma. + + If you pass NULL or an empty string for this parameter, the session uses + the default values for these properties. You can override the default + values by assigning a value explicitly in a string that you pass for + this parameter. + + You do not have to specify all of the properties and may leave any of + them out. However, if you do not specify one of the properties, its + default value is used. + + If simulation is enabled (Simulate=1), you may specify the device that + you want to simulate. To specify a device, enter the following syntax in + **optionString**. + + DriverSetup=Model:<*driver model number*>;Channels:<*channel + names*>;BoardType:<*module type*>;MemorySize:<*size of onboard memory in + bytes*> + + **Syntax Examples** + + **Properties and **Defined Values**** + + **Default Values**: "Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1" + + +------------------+-------------------------+-------------+ + | Property Name | Property | Values | + +==================+=========================+=============+ + | RangeCheck | RANGE_CHECK | True, False | + +------------------+-------------------------+-------------+ + | QueryInstrStatus | QUERY_INSTRUMENT_STATUS | True, False | + +------------------+-------------------------+-------------+ + | Cache | CACHE | True, False | + +------------------+-------------------------+-------------+ + | Simulate | simulate | True, False | + +------------------+-------------------------+-------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + + Returns: + vi (int): Returns a session handle that you can use to identify the device in all + subsequent NI-FGEN method calls. + + ''' + channel_name = _converters.convert_repeated_capabilities_without_prefix(channel_name) + option_string = _converters.convert_init_with_options_dictionary(option_string) + vi = self._interpreter.initialize_with_channels(resource_name, channel_name, reset_device, option_string) + return vi + + @ivi_synchronized + def _initiate_generation(self): + r'''_initiate_generation + + Initiates signal generation. If you want to abort signal generation, + call the abort method. After the signal generation + is aborted, you can call the initiate method to + cause the signal generator to produce a signal again. + ''' + self._interpreter.initiate_generation() + + @ivi_synchronized + def is_done(self): + r'''is_done + + Determines whether the current generation is complete. This method + sets the **done** parameter to True if the session is in the Idle or + Committed states. + + Note: + NI-FGEN only reports the **done** parameter as True after the + current generation is complete in Single trigger mode. + + Returns: + done (bool): Returns information about the completion of waveform generation. + + **Defined Values** + + +-------+-----------------------------+ + | True | Generation is complete. | + +-------+-----------------------------+ + | False | Generation is not complete. | + +-------+-----------------------------+ + + ''' + done = self._interpreter.is_done() + return done + + @ivi_synchronized + def query_arb_seq_capabilities(self): + r'''query_arb_seq_capabilities + + Returns the properties of the signal generator that are related to + creating arbitrary sequences (the max_num_sequences, + min_sequence_length, + max_sequence_length, and max_loop_count + properties). + + Returns: + maximum_number_of_sequences (int): Returns the maximum number of arbitrary waveform sequences that the + signal generator allows. NI-FGEN obtains this value from the + max_num_sequences property. + + minimum_sequence_length (int): Returns the minimum number of arbitrary waveforms the signal generator + allows in a sequence. NI-FGEN obtains this value from the + min_sequence_length property. + + maximum_sequence_length (int): Returns the maximum number of arbitrary waveforms the signal generator + allows in a sequence. NI-FGEN obtains this value from the + max_sequence_length property. + + maximum_loop_count (int): Returns the maximum number of times the signal generator can repeat an + arbitrary waveform in a sequence. NI-FGEN obtains this value from the + max_loop_count property. + + ''' + maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count = self._interpreter.query_arb_seq_capabilities() + return maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count + + @ivi_synchronized + def query_arb_wfm_capabilities(self): + r'''query_arb_wfm_capabilities + + Returns the properties of the signal generator that are related to + creating arbitrary waveforms. These properties are the maximum number of + waveforms, waveform quantum, minimum waveform size, and maximum waveform + size. + + Note: + If you do not want to obtain the waveform quantum, pass a value of + VI_NULL for this parameter. + + Returns: + maximum_number_of_waveforms (int): Returns the maximum number of arbitrary waveforms that the signal + generator allows. NI-FGEN obtains this value from the + max_num_waveforms property. + + waveform_quantum (int): The size (number of points) of each waveform must be a multiple of a + constant quantum value. This parameter obtains the quantum value that + the signal generator uses. NI-FGEN returns this value from the + waveform_quantum property. + + For example, when this property returns a value of 8, all waveform + sizes must be a multiple of 8. + + minimum_waveform_size (int): Returns the minimum number of points that the signal generator allows in + a waveform. NI-FGEN obtains this value from the + min_waveform_size property. + + maximum_waveform_size (int): Returns the maximum number of points that the signal generator allows in + a waveform. NI-FGEN obtains this value from the + max_waveform_size property. + + ''' + maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size = self._interpreter.query_arb_wfm_capabilities() + return maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size + + @ivi_synchronized + def query_freq_list_capabilities(self): + r'''query_freq_list_capabilities + + Returns the properties of the signal generator that are related to + creating frequency lists. These properties are + max_num_freq_lists, + min_freq_list_length, + max_freq_list_length, + min_freq_list_duration, + max_freq_list_duration, and + freq_list_duration_quantum. + + Returns: + maximum_number_of_freq_lists (int): Returns the maximum number of frequency lists that the signal generator + allows. NI-FGEN obtains this value from the + max_num_freq_lists property. + + minimum_frequency_list_length (int): Returns the minimum number of steps that the signal generator allows in + a frequency list. NI-FGEN obtains this value from the + min_freq_list_length property. + + maximum_frequency_list_length (int): Returns the maximum number of steps that the signal generator allows in + a frequency list. NI-FGEN obtains this value from the + max_freq_list_length property. + + minimum_frequency_list_duration (float): Returns the minimum duration that the signal generator allows in a step + of a frequency list. NI-FGEN obtains this value from the + min_freq_list_duration property. + + maximum_frequency_list_duration (float): Returns the maximum duration that the signal generator allows in a step + of a frequency list. NI-FGEN obtains this value from the + max_freq_list_duration property. + + frequency_list_duration_quantum (float): Returns the quantum of which all durations must be a multiple in a + frequency list. NI-FGEN obtains this value from the + freq_list_duration_quantum property. + + ''' + maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum = self._interpreter.query_freq_list_capabilities() + return maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum + + @ivi_synchronized + def read_current_temperature(self): + r'''read_current_temperature + + Reads the current onboard temperature of the device. The temperature is + returned in degrees Celsius. + + Returns: + temperature (float): Returns the current temperature read from onboard temperature sensors, + in degrees Celsius. + + ''' + temperature = self._interpreter.read_current_temperature() + return temperature + + @ivi_synchronized + def reset_device(self): + r'''reset_device + + Performs a hard reset on the device. Generation is stopped, all routes + are released, external bidirectional terminals are tristated, FPGAs are + reset, hardware is configured to its default state, and all session + properties are reset to their default states. + ''' + self._interpreter.reset_device() + + @ivi_synchronized + def reset_with_defaults(self): + r'''reset_with_defaults + + Resets the instrument and reapplies initial user–specified settings from + the logical name that was used to initialize the session. If the session + was created without a logical name, this method is equivalent to the + reset method. + ''' + self._interpreter.reset_with_defaults() + + @ivi_synchronized + def self_cal(self): + r'''self_cal + + Performs a full internal self-calibration on the device. If the + calibration is successful, new calibration data and constants are stored + in the onboard EEPROM. + ''' + self._interpreter.self_cal() + + @ivi_synchronized + def wait_until_done(self, max_time=hightime.timedelta(seconds=10.0)): + r'''wait_until_done + + Waits until the device is done generating or until the maximum time has + expired. + + Args: + max_time (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the timeout value in milliseconds. + + ''' + max_time = _converters.convert_timedelta_to_milliseconds_int32(max_time) + self._interpreter.wait_until_done(max_time) + + def _close(self): + r'''_close + + Performs the following operations: + + - Closes the instrument I/O session. + - Destroys the NI-FGEN session and all of its properties. + - Deallocates any memory resources NI-FGEN uses. + + Not all signal routes established by calling the ExportSignal + and RouteSignalOut methods are released when the NI-FGEN + session is closed. The following table shows what happens to a signal + route on your device when you call the _close method. + + +--------------------+-------------------+------------------+ + | Routes To | NI 5401/5411/5431 | Other Devices | + +====================+===================+==================+ + | Front Panel | Remain connected | Remain connected | + +--------------------+-------------------+------------------+ + | RTSI/PXI Backplane | Remain connected | Disconnected | + +--------------------+-------------------+------------------+ + + Note: + After calling _close, you cannot use NI-FGEN again until you + call the init or InitWithOptions methods. + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Runs the instrument self-test routine and returns the test result(s). + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + Note: + When used on some signal generators, the device is reset after the + self_test method runs. If you use the self_test + method, your device may not be in its previously configured state + after the method runs. + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def reset(self): + r'''reset + + Resets the instrument to a known state. This method aborts the + generation, clears all routes, and resets session properties to the + default values. This method does not, however, commit the session + properties or configure the device hardware to its default state. + + Note: + For the NI 5401/5404/5411/5431, this method exhibits the same + behavior as the reset_device method. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Runs the instrument self-test routine and returns the test result(s). + + Note: + When used on some signal generators, the device is reset after the + self_test method runs. If you use the self_test + method, your device may not be in its previously configured state + after the method runs. + + Returns: + self_test_result (int): Contains the value returned from the instrument self-test. A value of 0 + indicates success. + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + + self_test_message (str): Returns the self-test response string from the instrument. + + You must pass a ViChar array with at least 256 bytes. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/nifgen/nifgen/unit_tests/_matchers.py b/generated/nifgen/nifgen/unit_tests/_matchers.py new file mode 100644 index 0000000000..d2bcbe40dc --- /dev/null +++ b/generated/nifgen/nifgen/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nifgen._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nifgen/nifgen/unit_tests/_mock_helper.py b/generated/nifgen/nifgen/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..68603c4124 --- /dev/null +++ b/generated/nifgen/nifgen/unit_tests/_mock_helper.py @@ -0,0 +1,1013 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['AbortGeneration'] = {} + self._defaults['AbortGeneration']['return'] = 0 + self._defaults['AllocateNamedWaveform'] = {} + self._defaults['AllocateNamedWaveform']['return'] = 0 + self._defaults['AllocateWaveform'] = {} + self._defaults['AllocateWaveform']['return'] = 0 + self._defaults['AllocateWaveform']['waveformHandle'] = None + self._defaults['ClearArbMemory'] = {} + self._defaults['ClearArbMemory']['return'] = 0 + self._defaults['ClearArbSequence'] = {} + self._defaults['ClearArbSequence']['return'] = 0 + self._defaults['ClearArbWaveform'] = {} + self._defaults['ClearArbWaveform']['return'] = 0 + self._defaults['ClearFreqList'] = {} + self._defaults['ClearFreqList']['return'] = 0 + self._defaults['ClearUserStandardWaveform'] = {} + self._defaults['ClearUserStandardWaveform']['return'] = 0 + self._defaults['Commit'] = {} + self._defaults['Commit']['return'] = 0 + self._defaults['ConfigureArbSequence'] = {} + self._defaults['ConfigureArbSequence']['return'] = 0 + self._defaults['ConfigureArbWaveform'] = {} + self._defaults['ConfigureArbWaveform']['return'] = 0 + self._defaults['ConfigureFreqList'] = {} + self._defaults['ConfigureFreqList']['return'] = 0 + self._defaults['ConfigureStandardWaveform'] = {} + self._defaults['ConfigureStandardWaveform']['return'] = 0 + self._defaults['CreateAdvancedArbSequence'] = {} + self._defaults['CreateAdvancedArbSequence']['return'] = 0 + self._defaults['CreateAdvancedArbSequence']['coercedMarkersArray'] = None + self._defaults['CreateAdvancedArbSequence']['sequenceHandle'] = None + self._defaults['CreateArbSequence'] = {} + self._defaults['CreateArbSequence']['return'] = 0 + self._defaults['CreateArbSequence']['sequenceHandle'] = None + self._defaults['CreateFreqList'] = {} + self._defaults['CreateFreqList']['return'] = 0 + self._defaults['CreateFreqList']['frequencyListHandle'] = None + self._defaults['CreateWaveformF64'] = {} + self._defaults['CreateWaveformF64']['return'] = 0 + self._defaults['CreateWaveformF64']['waveformHandle'] = None + self._defaults['CreateWaveformFromFileF64'] = {} + self._defaults['CreateWaveformFromFileF64']['return'] = 0 + self._defaults['CreateWaveformFromFileF64']['waveformHandle'] = None + self._defaults['CreateWaveformFromFileI16'] = {} + self._defaults['CreateWaveformFromFileI16']['return'] = 0 + self._defaults['CreateWaveformFromFileI16']['waveformHandle'] = None + self._defaults['CreateWaveformI16'] = {} + self._defaults['CreateWaveformI16']['return'] = 0 + self._defaults['CreateWaveformI16']['waveformHandle'] = None + self._defaults['DefineUserStandardWaveform'] = {} + self._defaults['DefineUserStandardWaveform']['return'] = 0 + self._defaults['DeleteNamedWaveform'] = {} + self._defaults['DeleteNamedWaveform']['return'] = 0 + self._defaults['DeleteScript'] = {} + self._defaults['DeleteScript']['return'] = 0 + self._defaults['Disable'] = {} + self._defaults['Disable']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer'] = {} + self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None + self._defaults['ExportAttributeConfigurationFile'] = {} + self._defaults['ExportAttributeConfigurationFile']['return'] = 0 + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['attributeValue'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['attributeValue'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['attributeValue'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['attributeValue'] = None + self._defaults['GetChannelName'] = {} + self._defaults['GetChannelName']['return'] = 0 + self._defaults['GetChannelName']['channelString'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['errorDescription'] = None + self._defaults['GetExtCalLastDateAndTime'] = {} + self._defaults['GetExtCalLastDateAndTime']['return'] = 0 + self._defaults['GetExtCalLastDateAndTime']['year'] = None + self._defaults['GetExtCalLastDateAndTime']['month'] = None + self._defaults['GetExtCalLastDateAndTime']['day'] = None + self._defaults['GetExtCalLastDateAndTime']['hour'] = None + self._defaults['GetExtCalLastDateAndTime']['minute'] = None + self._defaults['GetExtCalLastTemp'] = {} + self._defaults['GetExtCalLastTemp']['return'] = 0 + self._defaults['GetExtCalLastTemp']['temperature'] = None + self._defaults['GetExtCalRecommendedInterval'] = {} + self._defaults['GetExtCalRecommendedInterval']['return'] = 0 + self._defaults['GetExtCalRecommendedInterval']['months'] = None + self._defaults['GetHardwareState'] = {} + self._defaults['GetHardwareState']['return'] = 0 + self._defaults['GetHardwareState']['state'] = None + self._defaults['GetSelfCalLastDateAndTime'] = {} + self._defaults['GetSelfCalLastDateAndTime']['return'] = 0 + self._defaults['GetSelfCalLastDateAndTime']['year'] = None + self._defaults['GetSelfCalLastDateAndTime']['month'] = None + self._defaults['GetSelfCalLastDateAndTime']['day'] = None + self._defaults['GetSelfCalLastDateAndTime']['hour'] = None + self._defaults['GetSelfCalLastDateAndTime']['minute'] = None + self._defaults['GetSelfCalLastTemp'] = {} + self._defaults['GetSelfCalLastTemp']['return'] = 0 + self._defaults['GetSelfCalLastTemp']['temperature'] = None + self._defaults['GetSelfCalSupported'] = {} + self._defaults['GetSelfCalSupported']['return'] = 0 + self._defaults['GetSelfCalSupported']['selfCalSupported'] = None + self._defaults['ImportAttributeConfigurationBuffer'] = {} + self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ImportAttributeConfigurationFile'] = {} + self._defaults['ImportAttributeConfigurationFile']['return'] = 0 + self._defaults['InitializeWithChannels'] = {} + self._defaults['InitializeWithChannels']['return'] = 0 + self._defaults['InitializeWithChannels']['vi'] = None + self._defaults['InitiateGeneration'] = {} + self._defaults['InitiateGeneration']['return'] = 0 + self._defaults['IsDone'] = {} + self._defaults['IsDone']['return'] = 0 + self._defaults['IsDone']['done'] = None + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['QueryArbSeqCapabilities'] = {} + self._defaults['QueryArbSeqCapabilities']['return'] = 0 + self._defaults['QueryArbSeqCapabilities']['maximumNumberOfSequences'] = None + self._defaults['QueryArbSeqCapabilities']['minimumSequenceLength'] = None + self._defaults['QueryArbSeqCapabilities']['maximumSequenceLength'] = None + self._defaults['QueryArbSeqCapabilities']['maximumLoopCount'] = None + self._defaults['QueryArbWfmCapabilities'] = {} + self._defaults['QueryArbWfmCapabilities']['return'] = 0 + self._defaults['QueryArbWfmCapabilities']['maximumNumberOfWaveforms'] = None + self._defaults['QueryArbWfmCapabilities']['waveformQuantum'] = None + self._defaults['QueryArbWfmCapabilities']['minimumWaveformSize'] = None + self._defaults['QueryArbWfmCapabilities']['maximumWaveformSize'] = None + self._defaults['QueryFreqListCapabilities'] = {} + self._defaults['QueryFreqListCapabilities']['return'] = 0 + self._defaults['QueryFreqListCapabilities']['maximumNumberOfFreqLists'] = None + self._defaults['QueryFreqListCapabilities']['minimumFrequencyListLength'] = None + self._defaults['QueryFreqListCapabilities']['maximumFrequencyListLength'] = None + self._defaults['QueryFreqListCapabilities']['minimumFrequencyListDuration'] = None + self._defaults['QueryFreqListCapabilities']['maximumFrequencyListDuration'] = None + self._defaults['QueryFreqListCapabilities']['frequencyListDurationQuantum'] = None + self._defaults['ReadCurrentTemperature'] = {} + self._defaults['ReadCurrentTemperature']['return'] = 0 + self._defaults['ReadCurrentTemperature']['temperature'] = None + self._defaults['ResetDevice'] = {} + self._defaults['ResetDevice']['return'] = 0 + self._defaults['ResetWithDefaults'] = {} + self._defaults['ResetWithDefaults']['return'] = 0 + self._defaults['SelfCal'] = {} + self._defaults['SelfCal']['return'] = 0 + self._defaults['SendSoftwareEdgeTrigger'] = {} + self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetNamedWaveformNextWritePosition'] = {} + self._defaults['SetNamedWaveformNextWritePosition']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['SetWaveformNextWritePosition'] = {} + self._defaults['SetWaveformNextWritePosition']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['WaitUntilDone'] = {} + self._defaults['WaitUntilDone']['return'] = 0 + self._defaults['WriteBinary16Waveform'] = {} + self._defaults['WriteBinary16Waveform']['return'] = 0 + self._defaults['WriteNamedWaveformF64'] = {} + self._defaults['WriteNamedWaveformF64']['return'] = 0 + self._defaults['WriteNamedWaveformI16'] = {} + self._defaults['WriteNamedWaveformI16']['return'] = 0 + self._defaults['WriteScript'] = {} + self._defaults['WriteScript']['return'] = 0 + self._defaults['WriteWaveform'] = {} + self._defaults['WriteWaveform']['return'] = 0 + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niFgen_AbortGeneration(self, vi): # noqa: N802 + if self._defaults['AbortGeneration']['return'] != 0: + return self._defaults['AbortGeneration']['return'] + return self._defaults['AbortGeneration']['return'] + + def niFgen_AllocateNamedWaveform(self, vi, channel_name, waveform_name, waveform_size): # noqa: N802 + if self._defaults['AllocateNamedWaveform']['return'] != 0: + return self._defaults['AllocateNamedWaveform']['return'] + return self._defaults['AllocateNamedWaveform']['return'] + + def niFgen_AllocateWaveform(self, vi, channel_name, waveform_size, waveform_handle): # noqa: N802 + if self._defaults['AllocateWaveform']['return'] != 0: + return self._defaults['AllocateWaveform']['return'] + # waveform_handle + if self._defaults['AllocateWaveform']['waveformHandle'] is None: + raise MockFunctionCallError("niFgen_AllocateWaveform", param='waveformHandle') + if waveform_handle is not None: + waveform_handle.contents.value = self._defaults['AllocateWaveform']['waveformHandle'] + return self._defaults['AllocateWaveform']['return'] + + def niFgen_ClearArbMemory(self, vi): # noqa: N802 + if self._defaults['ClearArbMemory']['return'] != 0: + return self._defaults['ClearArbMemory']['return'] + return self._defaults['ClearArbMemory']['return'] + + def niFgen_ClearArbSequence(self, vi, sequence_handle): # noqa: N802 + if self._defaults['ClearArbSequence']['return'] != 0: + return self._defaults['ClearArbSequence']['return'] + return self._defaults['ClearArbSequence']['return'] + + def niFgen_ClearArbWaveform(self, vi, waveform_handle): # noqa: N802 + if self._defaults['ClearArbWaveform']['return'] != 0: + return self._defaults['ClearArbWaveform']['return'] + return self._defaults['ClearArbWaveform']['return'] + + def niFgen_ClearFreqList(self, vi, frequency_list_handle): # noqa: N802 + if self._defaults['ClearFreqList']['return'] != 0: + return self._defaults['ClearFreqList']['return'] + return self._defaults['ClearFreqList']['return'] + + def niFgen_ClearUserStandardWaveform(self, vi, channel_name): # noqa: N802 + if self._defaults['ClearUserStandardWaveform']['return'] != 0: + return self._defaults['ClearUserStandardWaveform']['return'] + return self._defaults['ClearUserStandardWaveform']['return'] + + def niFgen_Commit(self, vi): # noqa: N802 + if self._defaults['Commit']['return'] != 0: + return self._defaults['Commit']['return'] + return self._defaults['Commit']['return'] + + def niFgen_ConfigureArbSequence(self, vi, channel_name, sequence_handle, gain, offset): # noqa: N802 + if self._defaults['ConfigureArbSequence']['return'] != 0: + return self._defaults['ConfigureArbSequence']['return'] + return self._defaults['ConfigureArbSequence']['return'] + + def niFgen_ConfigureArbWaveform(self, vi, channel_name, waveform_handle, gain, offset): # noqa: N802 + if self._defaults['ConfigureArbWaveform']['return'] != 0: + return self._defaults['ConfigureArbWaveform']['return'] + return self._defaults['ConfigureArbWaveform']['return'] + + def niFgen_ConfigureFreqList(self, vi, channel_name, frequency_list_handle, amplitude, dc_offset, start_phase): # noqa: N802 + if self._defaults['ConfigureFreqList']['return'] != 0: + return self._defaults['ConfigureFreqList']['return'] + return self._defaults['ConfigureFreqList']['return'] + + def niFgen_ConfigureStandardWaveform(self, vi, channel_name, waveform, amplitude, dc_offset, frequency, start_phase): # noqa: N802 + if self._defaults['ConfigureStandardWaveform']['return'] != 0: + return self._defaults['ConfigureStandardWaveform']['return'] + return self._defaults['ConfigureStandardWaveform']['return'] + + def niFgen_CreateAdvancedArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sample_counts_array, marker_location_array, coerced_markers_array, sequence_handle): # noqa: N802 + if self._defaults['CreateAdvancedArbSequence']['return'] != 0: + return self._defaults['CreateAdvancedArbSequence']['return'] + # coerced_markers_array + if self._defaults['CreateAdvancedArbSequence']['coercedMarkersArray'] is None: + raise MockFunctionCallError("niFgen_CreateAdvancedArbSequence", param='coercedMarkersArray') + test_value = self._defaults['CreateAdvancedArbSequence']['coercedMarkersArray'] + try: + coerced_markers_array_ref = coerced_markers_array.contents + except AttributeError: + coerced_markers_array_ref = coerced_markers_array + assert len(coerced_markers_array_ref) >= len(test_value) + for i in range(len(test_value)): + coerced_markers_array_ref[i] = test_value[i] + # sequence_handle + if self._defaults['CreateAdvancedArbSequence']['sequenceHandle'] is None: + raise MockFunctionCallError("niFgen_CreateAdvancedArbSequence", param='sequenceHandle') + if sequence_handle is not None: + sequence_handle.contents.value = self._defaults['CreateAdvancedArbSequence']['sequenceHandle'] + return self._defaults['CreateAdvancedArbSequence']['return'] + + def niFgen_CreateArbSequence(self, vi, sequence_length, waveform_handles_array, loop_counts_array, sequence_handle): # noqa: N802 + if self._defaults['CreateArbSequence']['return'] != 0: + return self._defaults['CreateArbSequence']['return'] + # sequence_handle + if self._defaults['CreateArbSequence']['sequenceHandle'] is None: + raise MockFunctionCallError("niFgen_CreateArbSequence", param='sequenceHandle') + if sequence_handle is not None: + sequence_handle.contents.value = self._defaults['CreateArbSequence']['sequenceHandle'] + return self._defaults['CreateArbSequence']['return'] + + def niFgen_CreateFreqList(self, vi, waveform, frequency_list_length, frequency_array, duration_array, frequency_list_handle): # noqa: N802 + if self._defaults['CreateFreqList']['return'] != 0: + return self._defaults['CreateFreqList']['return'] + # frequency_list_handle + if self._defaults['CreateFreqList']['frequencyListHandle'] is None: + raise MockFunctionCallError("niFgen_CreateFreqList", param='frequencyListHandle') + if frequency_list_handle is not None: + frequency_list_handle.contents.value = self._defaults['CreateFreqList']['frequencyListHandle'] + return self._defaults['CreateFreqList']['return'] + + def niFgen_CreateWaveformF64(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 + if self._defaults['CreateWaveformF64']['return'] != 0: + return self._defaults['CreateWaveformF64']['return'] + # waveform_handle + if self._defaults['CreateWaveformF64']['waveformHandle'] is None: + raise MockFunctionCallError("niFgen_CreateWaveformF64", param='waveformHandle') + if waveform_handle is not None: + waveform_handle.contents.value = self._defaults['CreateWaveformF64']['waveformHandle'] + return self._defaults['CreateWaveformF64']['return'] + + def niFgen_CreateWaveformFromFileF64(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 + if self._defaults['CreateWaveformFromFileF64']['return'] != 0: + return self._defaults['CreateWaveformFromFileF64']['return'] + # waveform_handle + if self._defaults['CreateWaveformFromFileF64']['waveformHandle'] is None: + raise MockFunctionCallError("niFgen_CreateWaveformFromFileF64", param='waveformHandle') + if waveform_handle is not None: + waveform_handle.contents.value = self._defaults['CreateWaveformFromFileF64']['waveformHandle'] + return self._defaults['CreateWaveformFromFileF64']['return'] + + def niFgen_CreateWaveformFromFileI16(self, vi, channel_name, file_name, byte_order, waveform_handle): # noqa: N802 + if self._defaults['CreateWaveformFromFileI16']['return'] != 0: + return self._defaults['CreateWaveformFromFileI16']['return'] + # waveform_handle + if self._defaults['CreateWaveformFromFileI16']['waveformHandle'] is None: + raise MockFunctionCallError("niFgen_CreateWaveformFromFileI16", param='waveformHandle') + if waveform_handle is not None: + waveform_handle.contents.value = self._defaults['CreateWaveformFromFileI16']['waveformHandle'] + return self._defaults['CreateWaveformFromFileI16']['return'] + + def niFgen_CreateWaveformI16(self, vi, channel_name, waveform_size, waveform_data_array, waveform_handle): # noqa: N802 + if self._defaults['CreateWaveformI16']['return'] != 0: + return self._defaults['CreateWaveformI16']['return'] + # waveform_handle + if self._defaults['CreateWaveformI16']['waveformHandle'] is None: + raise MockFunctionCallError("niFgen_CreateWaveformI16", param='waveformHandle') + if waveform_handle is not None: + waveform_handle.contents.value = self._defaults['CreateWaveformI16']['waveformHandle'] + return self._defaults['CreateWaveformI16']['return'] + + def niFgen_DefineUserStandardWaveform(self, vi, channel_name, waveform_size, waveform_data_array): # noqa: N802 + if self._defaults['DefineUserStandardWaveform']['return'] != 0: + return self._defaults['DefineUserStandardWaveform']['return'] + return self._defaults['DefineUserStandardWaveform']['return'] + + def niFgen_DeleteNamedWaveform(self, vi, channel_name, waveform_name): # noqa: N802 + if self._defaults['DeleteNamedWaveform']['return'] != 0: + return self._defaults['DeleteNamedWaveform']['return'] + return self._defaults['DeleteNamedWaveform']['return'] + + def niFgen_DeleteScript(self, vi, channel_name, script_name): # noqa: N802 + if self._defaults['DeleteScript']['return'] != 0: + return self._defaults['DeleteScript']['return'] + return self._defaults['DeleteScript']['return'] + + def niFgen_Disable(self, vi): # noqa: N802 + if self._defaults['Disable']['return'] != 0: + return self._defaults['Disable']['return'] + return self._defaults['Disable']['return'] + + def niFgen_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + # configuration + if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: + raise MockFunctionCallError("niFgen_ExportAttributeConfigurationBuffer", param='configuration') + if size_in_bytes.value == 0: + return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) + try: + configuration_ref = configuration.contents + except AttributeError: + configuration_ref = configuration + for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): + configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + + def niFgen_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ExportAttributeConfigurationFile']['return'] + return self._defaults['ExportAttributeConfigurationFile']['return'] + + def niFgen_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # attribute_value + if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: + raise MockFunctionCallError("niFgen_GetAttributeViBoolean", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niFgen_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # attribute_value + if self._defaults['GetAttributeViInt32']['attributeValue'] is None: + raise MockFunctionCallError("niFgen_GetAttributeViInt32", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] + return self._defaults['GetAttributeViInt32']['return'] + + def niFgen_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # attribute_value + if self._defaults['GetAttributeViReal64']['attributeValue'] is None: + raise MockFunctionCallError("niFgen_GetAttributeViReal64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] + return self._defaults['GetAttributeViReal64']['return'] + + def niFgen_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # attribute_value + if self._defaults['GetAttributeViString']['attributeValue'] is None: + raise MockFunctionCallError("niFgen_GetAttributeViString", param='attributeValue') + if array_size.value == 0: + return len(self._defaults['GetAttributeViString']['attributeValue']) + attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niFgen_GetChannelName(self, vi, index, buffer_size, channel_string): # noqa: N802 + if self._defaults['GetChannelName']['return'] != 0: + return self._defaults['GetChannelName']['return'] + # channel_string + if self._defaults['GetChannelName']['channelString'] is None: + raise MockFunctionCallError("niFgen_GetChannelName", param='channelString') + if buffer_size.value == 0: + return len(self._defaults['GetChannelName']['channelString']) + channel_string.value = self._defaults['GetChannelName']['channelString'].encode('ascii') + return self._defaults['GetChannelName']['return'] + + def niFgen_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niFgen_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # error_description + if self._defaults['GetError']['errorDescription'] is None: + raise MockFunctionCallError("niFgen_GetError", param='errorDescription') + if error_description_buffer_size.value == 0: + return len(self._defaults['GetError']['errorDescription']) + error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') + return self._defaults['GetError']['return'] + + def niFgen_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetExtCalLastDateAndTime']['return'] != 0: + return self._defaults['GetExtCalLastDateAndTime']['return'] + # year + if self._defaults['GetExtCalLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetExtCalLastDateAndTime']['year'] + # month + if self._defaults['GetExtCalLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetExtCalLastDateAndTime']['month'] + # day + if self._defaults['GetExtCalLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetExtCalLastDateAndTime']['day'] + # hour + if self._defaults['GetExtCalLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetExtCalLastDateAndTime']['hour'] + # minute + if self._defaults['GetExtCalLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niFgen_GetExtCalLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetExtCalLastDateAndTime']['minute'] + return self._defaults['GetExtCalLastDateAndTime']['return'] + + def niFgen_GetExtCalLastTemp(self, vi, temperature): # noqa: N802 + if self._defaults['GetExtCalLastTemp']['return'] != 0: + return self._defaults['GetExtCalLastTemp']['return'] + # temperature + if self._defaults['GetExtCalLastTemp']['temperature'] is None: + raise MockFunctionCallError("niFgen_GetExtCalLastTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetExtCalLastTemp']['temperature'] + return self._defaults['GetExtCalLastTemp']['return'] + + def niFgen_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: + return self._defaults['GetExtCalRecommendedInterval']['return'] + # months + if self._defaults['GetExtCalRecommendedInterval']['months'] is None: + raise MockFunctionCallError("niFgen_GetExtCalRecommendedInterval", param='months') + if months is not None: + months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] + return self._defaults['GetExtCalRecommendedInterval']['return'] + + def niFgen_GetHardwareState(self, vi, state): # noqa: N802 + if self._defaults['GetHardwareState']['return'] != 0: + return self._defaults['GetHardwareState']['return'] + # state + if self._defaults['GetHardwareState']['state'] is None: + raise MockFunctionCallError("niFgen_GetHardwareState", param='state') + if state is not None: + state.contents.value = self._defaults['GetHardwareState']['state'] + return self._defaults['GetHardwareState']['return'] + + def niFgen_GetSelfCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetSelfCalLastDateAndTime']['return'] != 0: + return self._defaults['GetSelfCalLastDateAndTime']['return'] + # year + if self._defaults['GetSelfCalLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetSelfCalLastDateAndTime']['year'] + # month + if self._defaults['GetSelfCalLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetSelfCalLastDateAndTime']['month'] + # day + if self._defaults['GetSelfCalLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetSelfCalLastDateAndTime']['day'] + # hour + if self._defaults['GetSelfCalLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetSelfCalLastDateAndTime']['hour'] + # minute + if self._defaults['GetSelfCalLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetSelfCalLastDateAndTime']['minute'] + return self._defaults['GetSelfCalLastDateAndTime']['return'] + + def niFgen_GetSelfCalLastTemp(self, vi, temperature): # noqa: N802 + if self._defaults['GetSelfCalLastTemp']['return'] != 0: + return self._defaults['GetSelfCalLastTemp']['return'] + # temperature + if self._defaults['GetSelfCalLastTemp']['temperature'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalLastTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetSelfCalLastTemp']['temperature'] + return self._defaults['GetSelfCalLastTemp']['return'] + + def niFgen_GetSelfCalSupported(self, vi, self_cal_supported): # noqa: N802 + if self._defaults['GetSelfCalSupported']['return'] != 0: + return self._defaults['GetSelfCalSupported']['return'] + # self_cal_supported + if self._defaults['GetSelfCalSupported']['selfCalSupported'] is None: + raise MockFunctionCallError("niFgen_GetSelfCalSupported", param='selfCalSupported') + if self_cal_supported is not None: + self_cal_supported.contents.value = self._defaults['GetSelfCalSupported']['selfCalSupported'] + return self._defaults['GetSelfCalSupported']['return'] + + def niFgen_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + + def niFgen_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ImportAttributeConfigurationFile']['return'] + return self._defaults['ImportAttributeConfigurationFile']['return'] + + def niFgen_InitializeWithChannels(self, resource_name, channel_name, reset_device, option_string, vi): # noqa: N802 + if self._defaults['InitializeWithChannels']['return'] != 0: + return self._defaults['InitializeWithChannels']['return'] + # vi + if self._defaults['InitializeWithChannels']['vi'] is None: + raise MockFunctionCallError("niFgen_InitializeWithChannels", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitializeWithChannels']['vi'] + return self._defaults['InitializeWithChannels']['return'] + + def niFgen_InitiateGeneration(self, vi): # noqa: N802 + if self._defaults['InitiateGeneration']['return'] != 0: + return self._defaults['InitiateGeneration']['return'] + return self._defaults['InitiateGeneration']['return'] + + def niFgen_IsDone(self, vi, done): # noqa: N802 + if self._defaults['IsDone']['return'] != 0: + return self._defaults['IsDone']['return'] + # done + if self._defaults['IsDone']['done'] is None: + raise MockFunctionCallError("niFgen_IsDone", param='done') + if done is not None: + done.contents.value = self._defaults['IsDone']['done'] + return self._defaults['IsDone']['return'] + + def niFgen_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niFgen_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niFgen_QueryArbSeqCapabilities(self, vi, maximum_number_of_sequences, minimum_sequence_length, maximum_sequence_length, maximum_loop_count): # noqa: N802 + if self._defaults['QueryArbSeqCapabilities']['return'] != 0: + return self._defaults['QueryArbSeqCapabilities']['return'] + # maximum_number_of_sequences + if self._defaults['QueryArbSeqCapabilities']['maximumNumberOfSequences'] is None: + raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='maximumNumberOfSequences') + if maximum_number_of_sequences is not None: + maximum_number_of_sequences.contents.value = self._defaults['QueryArbSeqCapabilities']['maximumNumberOfSequences'] + # minimum_sequence_length + if self._defaults['QueryArbSeqCapabilities']['minimumSequenceLength'] is None: + raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='minimumSequenceLength') + if minimum_sequence_length is not None: + minimum_sequence_length.contents.value = self._defaults['QueryArbSeqCapabilities']['minimumSequenceLength'] + # maximum_sequence_length + if self._defaults['QueryArbSeqCapabilities']['maximumSequenceLength'] is None: + raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='maximumSequenceLength') + if maximum_sequence_length is not None: + maximum_sequence_length.contents.value = self._defaults['QueryArbSeqCapabilities']['maximumSequenceLength'] + # maximum_loop_count + if self._defaults['QueryArbSeqCapabilities']['maximumLoopCount'] is None: + raise MockFunctionCallError("niFgen_QueryArbSeqCapabilities", param='maximumLoopCount') + if maximum_loop_count is not None: + maximum_loop_count.contents.value = self._defaults['QueryArbSeqCapabilities']['maximumLoopCount'] + return self._defaults['QueryArbSeqCapabilities']['return'] + + def niFgen_QueryArbWfmCapabilities(self, vi, maximum_number_of_waveforms, waveform_quantum, minimum_waveform_size, maximum_waveform_size): # noqa: N802 + if self._defaults['QueryArbWfmCapabilities']['return'] != 0: + return self._defaults['QueryArbWfmCapabilities']['return'] + # maximum_number_of_waveforms + if self._defaults['QueryArbWfmCapabilities']['maximumNumberOfWaveforms'] is None: + raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='maximumNumberOfWaveforms') + if maximum_number_of_waveforms is not None: + maximum_number_of_waveforms.contents.value = self._defaults['QueryArbWfmCapabilities']['maximumNumberOfWaveforms'] + # waveform_quantum + if self._defaults['QueryArbWfmCapabilities']['waveformQuantum'] is None: + raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='waveformQuantum') + if waveform_quantum is not None: + waveform_quantum.contents.value = self._defaults['QueryArbWfmCapabilities']['waveformQuantum'] + # minimum_waveform_size + if self._defaults['QueryArbWfmCapabilities']['minimumWaveformSize'] is None: + raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='minimumWaveformSize') + if minimum_waveform_size is not None: + minimum_waveform_size.contents.value = self._defaults['QueryArbWfmCapabilities']['minimumWaveformSize'] + # maximum_waveform_size + if self._defaults['QueryArbWfmCapabilities']['maximumWaveformSize'] is None: + raise MockFunctionCallError("niFgen_QueryArbWfmCapabilities", param='maximumWaveformSize') + if maximum_waveform_size is not None: + maximum_waveform_size.contents.value = self._defaults['QueryArbWfmCapabilities']['maximumWaveformSize'] + return self._defaults['QueryArbWfmCapabilities']['return'] + + def niFgen_QueryFreqListCapabilities(self, vi, maximum_number_of_freq_lists, minimum_frequency_list_length, maximum_frequency_list_length, minimum_frequency_list_duration, maximum_frequency_list_duration, frequency_list_duration_quantum): # noqa: N802 + if self._defaults['QueryFreqListCapabilities']['return'] != 0: + return self._defaults['QueryFreqListCapabilities']['return'] + # maximum_number_of_freq_lists + if self._defaults['QueryFreqListCapabilities']['maximumNumberOfFreqLists'] is None: + raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='maximumNumberOfFreqLists') + if maximum_number_of_freq_lists is not None: + maximum_number_of_freq_lists.contents.value = self._defaults['QueryFreqListCapabilities']['maximumNumberOfFreqLists'] + # minimum_frequency_list_length + if self._defaults['QueryFreqListCapabilities']['minimumFrequencyListLength'] is None: + raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='minimumFrequencyListLength') + if minimum_frequency_list_length is not None: + minimum_frequency_list_length.contents.value = self._defaults['QueryFreqListCapabilities']['minimumFrequencyListLength'] + # maximum_frequency_list_length + if self._defaults['QueryFreqListCapabilities']['maximumFrequencyListLength'] is None: + raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='maximumFrequencyListLength') + if maximum_frequency_list_length is not None: + maximum_frequency_list_length.contents.value = self._defaults['QueryFreqListCapabilities']['maximumFrequencyListLength'] + # minimum_frequency_list_duration + if self._defaults['QueryFreqListCapabilities']['minimumFrequencyListDuration'] is None: + raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='minimumFrequencyListDuration') + if minimum_frequency_list_duration is not None: + minimum_frequency_list_duration.contents.value = self._defaults['QueryFreqListCapabilities']['minimumFrequencyListDuration'] + # maximum_frequency_list_duration + if self._defaults['QueryFreqListCapabilities']['maximumFrequencyListDuration'] is None: + raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='maximumFrequencyListDuration') + if maximum_frequency_list_duration is not None: + maximum_frequency_list_duration.contents.value = self._defaults['QueryFreqListCapabilities']['maximumFrequencyListDuration'] + # frequency_list_duration_quantum + if self._defaults['QueryFreqListCapabilities']['frequencyListDurationQuantum'] is None: + raise MockFunctionCallError("niFgen_QueryFreqListCapabilities", param='frequencyListDurationQuantum') + if frequency_list_duration_quantum is not None: + frequency_list_duration_quantum.contents.value = self._defaults['QueryFreqListCapabilities']['frequencyListDurationQuantum'] + return self._defaults['QueryFreqListCapabilities']['return'] + + def niFgen_ReadCurrentTemperature(self, vi, temperature): # noqa: N802 + if self._defaults['ReadCurrentTemperature']['return'] != 0: + return self._defaults['ReadCurrentTemperature']['return'] + # temperature + if self._defaults['ReadCurrentTemperature']['temperature'] is None: + raise MockFunctionCallError("niFgen_ReadCurrentTemperature", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['ReadCurrentTemperature']['temperature'] + return self._defaults['ReadCurrentTemperature']['return'] + + def niFgen_ResetDevice(self, vi): # noqa: N802 + if self._defaults['ResetDevice']['return'] != 0: + return self._defaults['ResetDevice']['return'] + return self._defaults['ResetDevice']['return'] + + def niFgen_ResetWithDefaults(self, vi): # noqa: N802 + if self._defaults['ResetWithDefaults']['return'] != 0: + return self._defaults['ResetWithDefaults']['return'] + return self._defaults['ResetWithDefaults']['return'] + + def niFgen_SelfCal(self, vi): # noqa: N802 + if self._defaults['SelfCal']['return'] != 0: + return self._defaults['SelfCal']['return'] + return self._defaults['SelfCal']['return'] + + def niFgen_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_id): # noqa: N802 + if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: + return self._defaults['SendSoftwareEdgeTrigger']['return'] + return self._defaults['SendSoftwareEdgeTrigger']['return'] + + def niFgen_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niFgen_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niFgen_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niFgen_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niFgen_SetNamedWaveformNextWritePosition(self, vi, channel_name, waveform_name, relative_to, offset): # noqa: N802 + if self._defaults['SetNamedWaveformNextWritePosition']['return'] != 0: + return self._defaults['SetNamedWaveformNextWritePosition']['return'] + return self._defaults['SetNamedWaveformNextWritePosition']['return'] + + def niFgen_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niFgen_SetWaveformNextWritePosition(self, vi, channel_name, waveform_handle, relative_to, offset): # noqa: N802 + if self._defaults['SetWaveformNextWritePosition']['return'] != 0: + return self._defaults['SetWaveformNextWritePosition']['return'] + return self._defaults['SetWaveformNextWritePosition']['return'] + + def niFgen_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niFgen_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niFgen_WaitUntilDone(self, vi, max_time): # noqa: N802 + if self._defaults['WaitUntilDone']['return'] != 0: + return self._defaults['WaitUntilDone']['return'] + return self._defaults['WaitUntilDone']['return'] + + def niFgen_WriteBinary16Waveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 + if self._defaults['WriteBinary16Waveform']['return'] != 0: + return self._defaults['WriteBinary16Waveform']['return'] + return self._defaults['WriteBinary16Waveform']['return'] + + def niFgen_WriteNamedWaveformF64(self, vi, channel_name, waveform_name, size, data): # noqa: N802 + if self._defaults['WriteNamedWaveformF64']['return'] != 0: + return self._defaults['WriteNamedWaveformF64']['return'] + return self._defaults['WriteNamedWaveformF64']['return'] + + def niFgen_WriteNamedWaveformI16(self, vi, channel_name, waveform_name, size, data): # noqa: N802 + if self._defaults['WriteNamedWaveformI16']['return'] != 0: + return self._defaults['WriteNamedWaveformI16']['return'] + return self._defaults['WriteNamedWaveformI16']['return'] + + def niFgen_WriteScript(self, vi, channel_name, script): # noqa: N802 + if self._defaults['WriteScript']['return'] != 0: + return self._defaults['WriteScript']['return'] + return self._defaults['WriteScript']['return'] + + def niFgen_WriteWaveform(self, vi, channel_name, waveform_handle, size, data): # noqa: N802 + if self._defaults['WriteWaveform']['return'] != 0: + return self._defaults['WriteWaveform']['return'] + return self._defaults['WriteWaveform']['return'] + + def niFgen_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niFgen_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niFgen_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niFgen_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niFgen_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niFgen_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niFgen_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niFgen_AbortGeneration.side_effect = MockFunctionCallError("niFgen_AbortGeneration") + mock_library.niFgen_AbortGeneration.return_value = 0 + mock_library.niFgen_AllocateNamedWaveform.side_effect = MockFunctionCallError("niFgen_AllocateNamedWaveform") + mock_library.niFgen_AllocateNamedWaveform.return_value = 0 + mock_library.niFgen_AllocateWaveform.side_effect = MockFunctionCallError("niFgen_AllocateWaveform") + mock_library.niFgen_AllocateWaveform.return_value = 0 + mock_library.niFgen_ClearArbMemory.side_effect = MockFunctionCallError("niFgen_ClearArbMemory") + mock_library.niFgen_ClearArbMemory.return_value = 0 + mock_library.niFgen_ClearArbSequence.side_effect = MockFunctionCallError("niFgen_ClearArbSequence") + mock_library.niFgen_ClearArbSequence.return_value = 0 + mock_library.niFgen_ClearArbWaveform.side_effect = MockFunctionCallError("niFgen_ClearArbWaveform") + mock_library.niFgen_ClearArbWaveform.return_value = 0 + mock_library.niFgen_ClearFreqList.side_effect = MockFunctionCallError("niFgen_ClearFreqList") + mock_library.niFgen_ClearFreqList.return_value = 0 + mock_library.niFgen_ClearUserStandardWaveform.side_effect = MockFunctionCallError("niFgen_ClearUserStandardWaveform") + mock_library.niFgen_ClearUserStandardWaveform.return_value = 0 + mock_library.niFgen_Commit.side_effect = MockFunctionCallError("niFgen_Commit") + mock_library.niFgen_Commit.return_value = 0 + mock_library.niFgen_ConfigureArbSequence.side_effect = MockFunctionCallError("niFgen_ConfigureArbSequence") + mock_library.niFgen_ConfigureArbSequence.return_value = 0 + mock_library.niFgen_ConfigureArbWaveform.side_effect = MockFunctionCallError("niFgen_ConfigureArbWaveform") + mock_library.niFgen_ConfigureArbWaveform.return_value = 0 + mock_library.niFgen_ConfigureFreqList.side_effect = MockFunctionCallError("niFgen_ConfigureFreqList") + mock_library.niFgen_ConfigureFreqList.return_value = 0 + mock_library.niFgen_ConfigureStandardWaveform.side_effect = MockFunctionCallError("niFgen_ConfigureStandardWaveform") + mock_library.niFgen_ConfigureStandardWaveform.return_value = 0 + mock_library.niFgen_CreateAdvancedArbSequence.side_effect = MockFunctionCallError("niFgen_CreateAdvancedArbSequence") + mock_library.niFgen_CreateAdvancedArbSequence.return_value = 0 + mock_library.niFgen_CreateArbSequence.side_effect = MockFunctionCallError("niFgen_CreateArbSequence") + mock_library.niFgen_CreateArbSequence.return_value = 0 + mock_library.niFgen_CreateFreqList.side_effect = MockFunctionCallError("niFgen_CreateFreqList") + mock_library.niFgen_CreateFreqList.return_value = 0 + mock_library.niFgen_CreateWaveformF64.side_effect = MockFunctionCallError("niFgen_CreateWaveformF64") + mock_library.niFgen_CreateWaveformF64.return_value = 0 + mock_library.niFgen_CreateWaveformFromFileF64.side_effect = MockFunctionCallError("niFgen_CreateWaveformFromFileF64") + mock_library.niFgen_CreateWaveformFromFileF64.return_value = 0 + mock_library.niFgen_CreateWaveformFromFileI16.side_effect = MockFunctionCallError("niFgen_CreateWaveformFromFileI16") + mock_library.niFgen_CreateWaveformFromFileI16.return_value = 0 + mock_library.niFgen_CreateWaveformI16.side_effect = MockFunctionCallError("niFgen_CreateWaveformI16") + mock_library.niFgen_CreateWaveformI16.return_value = 0 + mock_library.niFgen_DefineUserStandardWaveform.side_effect = MockFunctionCallError("niFgen_DefineUserStandardWaveform") + mock_library.niFgen_DefineUserStandardWaveform.return_value = 0 + mock_library.niFgen_DeleteNamedWaveform.side_effect = MockFunctionCallError("niFgen_DeleteNamedWaveform") + mock_library.niFgen_DeleteNamedWaveform.return_value = 0 + mock_library.niFgen_DeleteScript.side_effect = MockFunctionCallError("niFgen_DeleteScript") + mock_library.niFgen_DeleteScript.return_value = 0 + mock_library.niFgen_Disable.side_effect = MockFunctionCallError("niFgen_Disable") + mock_library.niFgen_Disable.return_value = 0 + mock_library.niFgen_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFgen_ExportAttributeConfigurationBuffer") + mock_library.niFgen_ExportAttributeConfigurationBuffer.return_value = 0 + mock_library.niFgen_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niFgen_ExportAttributeConfigurationFile") + mock_library.niFgen_ExportAttributeConfigurationFile.return_value = 0 + mock_library.niFgen_GetAttributeViBoolean.side_effect = MockFunctionCallError("niFgen_GetAttributeViBoolean") + mock_library.niFgen_GetAttributeViBoolean.return_value = 0 + mock_library.niFgen_GetAttributeViInt32.side_effect = MockFunctionCallError("niFgen_GetAttributeViInt32") + mock_library.niFgen_GetAttributeViInt32.return_value = 0 + mock_library.niFgen_GetAttributeViReal64.side_effect = MockFunctionCallError("niFgen_GetAttributeViReal64") + mock_library.niFgen_GetAttributeViReal64.return_value = 0 + mock_library.niFgen_GetAttributeViString.side_effect = MockFunctionCallError("niFgen_GetAttributeViString") + mock_library.niFgen_GetAttributeViString.return_value = 0 + mock_library.niFgen_GetChannelName.side_effect = MockFunctionCallError("niFgen_GetChannelName") + mock_library.niFgen_GetChannelName.return_value = 0 + mock_library.niFgen_GetError.side_effect = MockFunctionCallError("niFgen_GetError") + mock_library.niFgen_GetError.return_value = 0 + mock_library.niFgen_GetExtCalLastDateAndTime.side_effect = MockFunctionCallError("niFgen_GetExtCalLastDateAndTime") + mock_library.niFgen_GetExtCalLastDateAndTime.return_value = 0 + mock_library.niFgen_GetExtCalLastTemp.side_effect = MockFunctionCallError("niFgen_GetExtCalLastTemp") + mock_library.niFgen_GetExtCalLastTemp.return_value = 0 + mock_library.niFgen_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niFgen_GetExtCalRecommendedInterval") + mock_library.niFgen_GetExtCalRecommendedInterval.return_value = 0 + mock_library.niFgen_GetHardwareState.side_effect = MockFunctionCallError("niFgen_GetHardwareState") + mock_library.niFgen_GetHardwareState.return_value = 0 + mock_library.niFgen_GetSelfCalLastDateAndTime.side_effect = MockFunctionCallError("niFgen_GetSelfCalLastDateAndTime") + mock_library.niFgen_GetSelfCalLastDateAndTime.return_value = 0 + mock_library.niFgen_GetSelfCalLastTemp.side_effect = MockFunctionCallError("niFgen_GetSelfCalLastTemp") + mock_library.niFgen_GetSelfCalLastTemp.return_value = 0 + mock_library.niFgen_GetSelfCalSupported.side_effect = MockFunctionCallError("niFgen_GetSelfCalSupported") + mock_library.niFgen_GetSelfCalSupported.return_value = 0 + mock_library.niFgen_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niFgen_ImportAttributeConfigurationBuffer") + mock_library.niFgen_ImportAttributeConfigurationBuffer.return_value = 0 + mock_library.niFgen_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niFgen_ImportAttributeConfigurationFile") + mock_library.niFgen_ImportAttributeConfigurationFile.return_value = 0 + mock_library.niFgen_InitializeWithChannels.side_effect = MockFunctionCallError("niFgen_InitializeWithChannels") + mock_library.niFgen_InitializeWithChannels.return_value = 0 + mock_library.niFgen_InitiateGeneration.side_effect = MockFunctionCallError("niFgen_InitiateGeneration") + mock_library.niFgen_InitiateGeneration.return_value = 0 + mock_library.niFgen_IsDone.side_effect = MockFunctionCallError("niFgen_IsDone") + mock_library.niFgen_IsDone.return_value = 0 + mock_library.niFgen_LockSession.side_effect = MockFunctionCallError("niFgen_LockSession") + mock_library.niFgen_LockSession.return_value = 0 + mock_library.niFgen_QueryArbSeqCapabilities.side_effect = MockFunctionCallError("niFgen_QueryArbSeqCapabilities") + mock_library.niFgen_QueryArbSeqCapabilities.return_value = 0 + mock_library.niFgen_QueryArbWfmCapabilities.side_effect = MockFunctionCallError("niFgen_QueryArbWfmCapabilities") + mock_library.niFgen_QueryArbWfmCapabilities.return_value = 0 + mock_library.niFgen_QueryFreqListCapabilities.side_effect = MockFunctionCallError("niFgen_QueryFreqListCapabilities") + mock_library.niFgen_QueryFreqListCapabilities.return_value = 0 + mock_library.niFgen_ReadCurrentTemperature.side_effect = MockFunctionCallError("niFgen_ReadCurrentTemperature") + mock_library.niFgen_ReadCurrentTemperature.return_value = 0 + mock_library.niFgen_ResetDevice.side_effect = MockFunctionCallError("niFgen_ResetDevice") + mock_library.niFgen_ResetDevice.return_value = 0 + mock_library.niFgen_ResetWithDefaults.side_effect = MockFunctionCallError("niFgen_ResetWithDefaults") + mock_library.niFgen_ResetWithDefaults.return_value = 0 + mock_library.niFgen_SelfCal.side_effect = MockFunctionCallError("niFgen_SelfCal") + mock_library.niFgen_SelfCal.return_value = 0 + mock_library.niFgen_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niFgen_SendSoftwareEdgeTrigger") + mock_library.niFgen_SendSoftwareEdgeTrigger.return_value = 0 + mock_library.niFgen_SetAttributeViBoolean.side_effect = MockFunctionCallError("niFgen_SetAttributeViBoolean") + mock_library.niFgen_SetAttributeViBoolean.return_value = 0 + mock_library.niFgen_SetAttributeViInt32.side_effect = MockFunctionCallError("niFgen_SetAttributeViInt32") + mock_library.niFgen_SetAttributeViInt32.return_value = 0 + mock_library.niFgen_SetAttributeViReal64.side_effect = MockFunctionCallError("niFgen_SetAttributeViReal64") + mock_library.niFgen_SetAttributeViReal64.return_value = 0 + mock_library.niFgen_SetAttributeViString.side_effect = MockFunctionCallError("niFgen_SetAttributeViString") + mock_library.niFgen_SetAttributeViString.return_value = 0 + mock_library.niFgen_SetNamedWaveformNextWritePosition.side_effect = MockFunctionCallError("niFgen_SetNamedWaveformNextWritePosition") + mock_library.niFgen_SetNamedWaveformNextWritePosition.return_value = 0 + mock_library.niFgen_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niFgen_SetRuntimeEnvironment") + mock_library.niFgen_SetRuntimeEnvironment.return_value = 0 + mock_library.niFgen_SetWaveformNextWritePosition.side_effect = MockFunctionCallError("niFgen_SetWaveformNextWritePosition") + mock_library.niFgen_SetWaveformNextWritePosition.return_value = 0 + mock_library.niFgen_UnlockSession.side_effect = MockFunctionCallError("niFgen_UnlockSession") + mock_library.niFgen_UnlockSession.return_value = 0 + mock_library.niFgen_WaitUntilDone.side_effect = MockFunctionCallError("niFgen_WaitUntilDone") + mock_library.niFgen_WaitUntilDone.return_value = 0 + mock_library.niFgen_WriteBinary16Waveform.side_effect = MockFunctionCallError("niFgen_WriteBinary16Waveform") + mock_library.niFgen_WriteBinary16Waveform.return_value = 0 + mock_library.niFgen_WriteNamedWaveformF64.side_effect = MockFunctionCallError("niFgen_WriteNamedWaveformF64") + mock_library.niFgen_WriteNamedWaveformF64.return_value = 0 + mock_library.niFgen_WriteNamedWaveformI16.side_effect = MockFunctionCallError("niFgen_WriteNamedWaveformI16") + mock_library.niFgen_WriteNamedWaveformI16.return_value = 0 + mock_library.niFgen_WriteScript.side_effect = MockFunctionCallError("niFgen_WriteScript") + mock_library.niFgen_WriteScript.return_value = 0 + mock_library.niFgen_WriteWaveform.side_effect = MockFunctionCallError("niFgen_WriteWaveform") + mock_library.niFgen_WriteWaveform.return_value = 0 + mock_library.niFgen_close.side_effect = MockFunctionCallError("niFgen_close") + mock_library.niFgen_close.return_value = 0 + mock_library.niFgen_error_message.side_effect = MockFunctionCallError("niFgen_error_message") + mock_library.niFgen_error_message.return_value = 0 + mock_library.niFgen_reset.side_effect = MockFunctionCallError("niFgen_reset") + mock_library.niFgen_reset.return_value = 0 + mock_library.niFgen_self_test.side_effect = MockFunctionCallError("niFgen_self_test") + mock_library.niFgen_self_test.return_value = 0 diff --git a/generated/nifgen/setup.py b/generated/nifgen/setup.py new file mode 100644 index 0000000000..76ee778cc1 --- /dev/null +++ b/generated/nifgen/setup.py @@ -0,0 +1,64 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nifgen' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-FGEN Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nifgen'], + license='MIT', + include_package_data=True, + packages=['nifgen'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + 'nitclk', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nifgen/tox-system_tests.ini b/generated/nifgen/tox-system_tests.ini new file mode 100644 index 0000000000..a8f30cabca --- /dev/null +++ b/generated/nifgen/tox-system_tests.ini @@ -0,0 +1,73 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nifgen) +[tox] +envlist = py{310,311,312,313,314}-nifgen-wheel_dep,py{310,311,312,313,314}-nifgen-system_tests, py314-nifgen-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nifgen-wheel_dep: Build the nitclk wheel because we use it in nifgen tests + nifgen-system_tests: Run nifgen system tests (requires NI-FGEN runtime to be installed) + nifgen-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nifgen-wheel_dep: ../nitclk + nifgen-system_tests: . + nifgen-coverage: . + +commands = + nifgen-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nifgen-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nifgen-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. + nifgen-system_tests: python -c "import nifgen; nifgen.print_diagnostic_information()" + nifgen-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifgen --parallel-mode -m pytest ../../src/nifgen/examples --junitxml=../junit/junit-nifgen-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nifgen-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nifgen --parallel-mode -m pytest ../../src/nifgen/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nifgen-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nifgen-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nifgen-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nifgen-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nifgen-wheel_dep: build + + nifgen-system_tests: pytest < 9.2.0 + nifgen-system_tests: coverage + nifgen-system_tests: numpy + nifgen-system_tests: hightime + nifgen-system_tests: fasteners + nifgen-system_tests: pytest-json + nifgen-system_tests: .[grpc] + + nifgen-coverage: coverage + +depends = + nifgen-coverage: py{310,311,312,313,314}-nifgen-system_tests + nifgen-system_tests: py{310,311,312,313,314}-nifgen-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nimodinst/README.rst b/generated/nimodinst/README.rst new file mode 100644 index 0000000000..6d67a21fd0 --- /dev/null +++ b/generated/nimodinst/README.rst @@ -0,0 +1,171 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nimodinst** module provides a Python API for NI-ModInst. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nimodinst** supports all the Operating Systems supported by NI-ModInst. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nimodinst**. + + +NI-ModInst Python API Status +---------------------------- + ++-------------------------------+--------------------------+ +| NI-ModInst (nimodinst) | | ++===============================+==========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+--------------------------+ +| PyPI Version | |nimodinstLatestVersion| | ++-------------------------------+--------------------------+ +| Supported Python Version | |nimodinstPythonVersion| | ++-------------------------------+--------------------------+ +| Documentation | |nimodinstDocs| | ++-------------------------------+--------------------------+ +| Open Issues | |nimodinstOpenIssues| | ++-------------------------------+--------------------------+ +| Open Pull Requests | |nimodinstOpenPRs| | ++-------------------------------+--------------------------+ + + +.. |nimodinstLatestVersion| image:: http://img.shields.io/pypi/v/nimodinst.svg + :alt: Latest NI-ModInst Version + :target: http://pypi.python.org/pypi/nimodinst + + +.. |nimodinstPythonVersion| image:: http://img.shields.io/pypi/pyversions/nimodinst.svg + :alt: NI-ModInst supported Python versions + :target: http://pypi.python.org/pypi/nimodinst + + +.. |nimodinstDocs| image:: https://readthedocs.org/projects/nimodinst/badge/?version=latest + :alt: NI-ModInst Python API Documentation Status + :target: https://nimodinst.readthedocs.io/en/latest + + +.. |nimodinstOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nimodinst.svg + :alt: Open Issues + Pull Requests for NI-ModInst + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Animodinst + + +.. |nimodinstOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nimodinst.svg + :alt: Pull Requests for NI-ModInst + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Animodinst + + + +.. _nimodinst_installation-section: + +Installation +------------ + +As a prerequisite to using the **nimodinst** module, you must install the NI-ModInst runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-ModInst**) can be installed with `pip `_:: + + $ python -m pip install nimodinst + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nimodinst** module to retrieve information on all High Speed Digitizers currently in the system. + +.. code-block:: python + + import nimodinst + with nimodinst.Session("niscope") as session: + for device in session: + print("{: >20} {: >15} {: >10}".format(device.device_name, device.device_model, device.serial_number)) + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nimodinst/nimodinst/VERSION b/generated/nimodinst/nimodinst/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nimodinst/nimodinst/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nimodinst/nimodinst/__init__.py b/generated/nimodinst/nimodinst/__init__.py new file mode 100644 index 0000000000..6a7dd86e37 --- /dev/null +++ b/generated/nimodinst/nimodinst/__init__.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nimodinst.errors import DriverWarning # noqa: F401 +from nimodinst.errors import Error # noqa: F401 +from nimodinst.session import Session # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-ModInst\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-ModInst" + info['driver']['version'] = driver_version + info['module']['name'] = 'nimodinst' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nimodinst/nimodinst/_converters.py b/generated/nimodinst/nimodinst/_converters.py new file mode 100644 index 0000000000..666c3c925e --- /dev/null +++ b/generated/nimodinst/nimodinst/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nimodinst._visatype as _visatype +import nimodinst.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nimodinst/nimodinst/_library.py b/generated/nimodinst/nimodinst/_library.py new file mode 100644 index 0000000000..7f1f8f140c --- /dev/null +++ b/generated/nimodinst/nimodinst/_library.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nimodinst.errors as errors +import threading + +from nimodinst._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niModInst_CloseInstalledDevicesSession_cfunc = None + self.niModInst_GetExtendedErrorInfo_cfunc = None + self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc = None + self.niModInst_GetInstalledDeviceAttributeViString_cfunc = None + self.niModInst_OpenInstalledDevicesSession_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niModInst_CloseInstalledDevicesSession(self, handle): # noqa: N802 + with self._func_lock: + if self.niModInst_CloseInstalledDevicesSession_cfunc is None: + self.niModInst_CloseInstalledDevicesSession_cfunc = self._get_library_function('niModInst_CloseInstalledDevicesSession') + self.niModInst_CloseInstalledDevicesSession_cfunc.argtypes = [ViSession] # noqa: F405 + self.niModInst_CloseInstalledDevicesSession_cfunc.restype = ViStatus # noqa: F405 + return self.niModInst_CloseInstalledDevicesSession_cfunc(handle) + + def niModInst_GetExtendedErrorInfo(self, error_info_buffer_size, error_info): # noqa: N802 + with self._func_lock: + if self.niModInst_GetExtendedErrorInfo_cfunc is None: + self.niModInst_GetExtendedErrorInfo_cfunc = self._get_library_function('niModInst_GetExtendedErrorInfo') + self.niModInst_GetExtendedErrorInfo_cfunc.argtypes = [ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niModInst_GetExtendedErrorInfo_cfunc.restype = ViStatus # noqa: F405 + return self.niModInst_GetExtendedErrorInfo_cfunc(error_info_buffer_size, error_info) + + def niModInst_GetInstalledDeviceAttributeViInt32(self, handle, index, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc is None: + self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc = self._get_library_function('niModInst_GetInstalledDeviceAttributeViInt32') + self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niModInst_GetInstalledDeviceAttributeViInt32_cfunc(handle, index, attribute_id, attribute_value) + + def niModInst_GetInstalledDeviceAttributeViString(self, handle, index, attribute_id, attribute_value_buffer_size, attribute_value): # noqa: N802 + with self._func_lock: + if self.niModInst_GetInstalledDeviceAttributeViString_cfunc is None: + self.niModInst_GetInstalledDeviceAttributeViString_cfunc = self._get_library_function('niModInst_GetInstalledDeviceAttributeViString') + self.niModInst_GetInstalledDeviceAttributeViString_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niModInst_GetInstalledDeviceAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niModInst_GetInstalledDeviceAttributeViString_cfunc(handle, index, attribute_id, attribute_value_buffer_size, attribute_value) + + def niModInst_OpenInstalledDevicesSession(self, driver, handle, device_count): # noqa: N802 + with self._func_lock: + if self.niModInst_OpenInstalledDevicesSession_cfunc is None: + self.niModInst_OpenInstalledDevicesSession_cfunc = self._get_library_function('niModInst_OpenInstalledDevicesSession') + self.niModInst_OpenInstalledDevicesSession_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViSession), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niModInst_OpenInstalledDevicesSession_cfunc.restype = ViStatus # noqa: F405 + return self.niModInst_OpenInstalledDevicesSession_cfunc(driver, handle, device_count) diff --git a/generated/nimodinst/nimodinst/_library_interpreter.py b/generated/nimodinst/nimodinst/_library_interpreter.py new file mode 100644 index 0000000000..b51ce157e1 --- /dev/null +++ b/generated/nimodinst/nimodinst/_library_interpreter.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import nimodinst._library_singleton as _library_singleton +import nimodinst._visatype as _visatype +import nimodinst.errors as errors + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + # Initialize _handle to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._handle = value + + def get_session_handle(self): + return self._handle + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + # We hand-maintain the code that calls into the cfunc rather than leverage code-generation + # because niModInst_GetExtendedErrorInfo() does not properly do the IVI-dance. + # See https://github.com/ni/nimi-python/issues/166 + error_info_buffer_size_ctype = _visatype.ViInt32() # case S170 + error_info_ctype = None # case C050 + error_code = self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) + if error_code <= 0: + return 'Failed to retrieve error description.' + error_info_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + error_info_ctype = (_visatype.ViChar * error_info_buffer_size_ctype.value)() # case C060 + # Note we don't look at the return value. This is intentional as niModInst returns the + # original error code rather than 0 (VI_SUCCESS). + self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) + return error_info_ctype.value.decode("ascii") + + def close_installed_devices_session(self): # noqa: N802 + handle_ctype = _visatype.ViSession(self._handle) # case S110 + error_code = self._library.niModInst_CloseInstalledDevicesSession(handle_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def get_extended_error_info(self): # noqa: N802 + error_info_buffer_size_ctype = _visatype.ViInt32() # case S170 + error_info_ctype = None # case C050 + error_code = self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + error_info_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + error_info_ctype = (_visatype.ViChar * error_info_buffer_size_ctype.value)() # case C060 + error_code = self._library.niModInst_GetExtendedErrorInfo(error_info_buffer_size_ctype, error_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_info_ctype.value.decode(self._encoding) + + def get_installed_device_attribute_vi_int32(self, index, attribute_id): # noqa: N802 + handle_ctype = _visatype.ViSession(self._handle) # case S110 + index_ctype = _visatype.ViInt32(index) # case S150 + attribute_id_ctype = _visatype.ViInt32(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niModInst_GetInstalledDeviceAttributeViInt32(handle_ctype, index_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_installed_device_attribute_vi_string(self, index, attribute_id): # noqa: N802 + handle_ctype = _visatype.ViSession(self._handle) # case S110 + index_ctype = _visatype.ViInt32(index) # case S150 + attribute_id_ctype = _visatype.ViInt32(attribute_id) # case S150 + attribute_value_buffer_size_ctype = _visatype.ViInt32() # case S170 + attribute_value_ctype = None # case C050 + error_code = self._library.niModInst_GetInstalledDeviceAttributeViString(handle_ctype, index_ctype, attribute_id_ctype, attribute_value_buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + attribute_value_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + attribute_value_ctype = (_visatype.ViChar * attribute_value_buffer_size_ctype.value)() # case C060 + error_code = self._library.niModInst_GetInstalledDeviceAttributeViString(handle_ctype, index_ctype, attribute_id_ctype, attribute_value_buffer_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return attribute_value_ctype.value.decode(self._encoding) + + def open_installed_devices_session(self, driver): # noqa: N802 + driver_ctype = ctypes.create_string_buffer(driver.encode(self._encoding)) # case C020 + handle_ctype = _visatype.ViSession() # case S220 + device_count_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niModInst_OpenInstalledDevicesSession(driver_ctype, None if handle_ctype is None else (ctypes.pointer(handle_ctype)), None if device_count_ctype is None else (ctypes.pointer(device_count_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(handle_ctype.value), int(device_count_ctype.value) diff --git a/generated/nimodinst/nimodinst/_library_singleton.py b/generated/nimodinst/nimodinst/_library_singleton.py new file mode 100644 index 0000000000..4d97481692 --- /dev/null +++ b/generated/nimodinst/nimodinst/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nimodinst._library as _library +import nimodinst.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nimodinst', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niModInst.dll', 'type': 'windll'}, + '64bit': {'name': 'niModInst_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nimodinst. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nimodinst/nimodinst/_visatype.py b/generated/nimodinst/nimodinst/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nimodinst/nimodinst/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nimodinst/nimodinst/errors.py b/generated/nimodinst/nimodinst/errors.py new file mode 100644 index 0000000000..de0698a79b --- /dev/null +++ b/generated/nimodinst/nimodinst/errors.py @@ -0,0 +1,96 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-ModInst''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-ModInst driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-ModInst driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-ModInst runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-ModInst driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-ModInst runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-ModInst driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-ModInst runtime returned an unexpected value. This can occur if it is too new for the nimodinst Python module. Upgrade the nimodinst Python module.') + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nimodinst.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nimodinst/nimodinst/session.py b/generated/nimodinst/nimodinst/session.py new file mode 100644 index 0000000000..f657fc03d5 --- /dev/null +++ b/generated/nimodinst/nimodinst/session.py @@ -0,0 +1,321 @@ +# This file was generated + +import nimodinst._library_interpreter as _library_interpreter +import nimodinst.errors as errors + +# Used for __repr__ and __str__ +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +class AttributeViInt32(object): + + def __init__(self, owner, attribute_id, index): + self._owner = owner + self._index = index + self._attribute_id = attribute_id + + def __getitem__(self, index): + return self._owner._get_installed_device_attribute_vi_int32(self._index, self._attribute_id) + + +class AttributeViString(object): + + def __init__(self, owner, attribute_id, index): + self._owner = owner + self._index = index + self._attribute_id = attribute_id + + def __getitem__(self, index): + return self._owner._get_installed_device_attribute_vi_string(self._index, self._attribute_id) + + +class _Device(object): + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + def __init__(self, owner, index): + self._index = index + self.bus_number = AttributeViInt32(owner, 12, index=index) + ''' + The bus on which the device has been enumerated. + ''' + self.chassis_number = AttributeViInt32(owner, 11, index=index) + ''' + The number of the chassis in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. + ''' + self.device_model = AttributeViString(owner, 1, index=index) + ''' + The model of the device (for example, NI PXI-5122) + ''' + self.device_name = AttributeViString(owner, 0, index=index) + ''' + The name of the device, which can be used to open an instrument driver session for that device + ''' + self.max_pciexpress_link_width = AttributeViInt32(owner, 18, index=index) + ''' + **MAX_PCIEXPRESS_LINK_WIDTH** + ''' + self.pciexpress_link_width = AttributeViInt32(owner, 17, index=index) + ''' + **PCIEXPRESS_LINK_WIDTH** + ''' + self.serial_number = AttributeViString(owner, 2, index=index) + ''' + The serial number of the device + ''' + self.slot_number = AttributeViInt32(owner, 10, index=index) + ''' + The slot (for example, in a PXI chassis) in which the device is installed. This property can only be queried for PXI devices installed in a chassis that has been properly identified in MAX. + ''' + self.socket_number = AttributeViInt32(owner, 13, index=index) + ''' + The socket number on which the device has been enumerated + ''' + self._param_list = 'owner=' + pp.pformat(owner) + ', index=' + pp.pformat(index) + self._is_frozen = True + + def __repr__(self): + return '{0}.{1}({2})'.format('nimodinst', self.__class__.__name__, self._param_list) + + def __str__(self): + ret_str = self.__repr__() + ':\n' + ret_str += ' bus_number = ' + pp.pformat(self.bus_number) + '\n' + ret_str += ' chassis_number = ' + pp.pformat(self.chassis_number) + '\n' + ret_str += ' device_model = ' + pp.pformat(self.device_model) + '\n' + ret_str += ' device_name = ' + pp.pformat(self.device_name) + '\n' + ret_str += ' max_pciexpress_link_width = ' + pp.pformat(self.max_pciexpress_link_width) + '\n' + ret_str += ' pciexpress_link_width = ' + pp.pformat(self.pciexpress_link_width) + '\n' + ret_str += ' serial_number = ' + pp.pformat(self.serial_number) + '\n' + ret_str += ' slot_number = ' + pp.pformat(self.slot_number) + '\n' + ret_str += ' socket_number = ' + pp.pformat(self.socket_number) + '\n' + return ret_str + + def __getattribute__(self, name): + if name in ['_is_frozen', 'index', '_param_list', '__class__', '__name__', '__repr__', '__str__', '__setattr__', ]: + return object.__getattribute__(self, name) + else: + return object.__getattribute__(self, name).__getitem__(None) + + def __setattr__(self, name, value): + if self._is_frozen: + raise AttributeError("__setattr__ not supported.") + object.__setattr__(self, name, value) + + +class _DeviceIterable(object): + def __init__(self, owner, count): + self._current_index = 0 + self._owner = owner + self._count = count + self._param_list = 'owner=' + pp.pformat(owner) + ', count=' + pp.pformat(count) + self._is_frozen = True + + def _get_next(self): + if self._current_index + 1 > self._count: + raise StopIteration + else: + dev = _Device(self._owner, self._current_index) + self._current_index += 1 + return dev + + def next(self): + return self._get_next() + + def __next__(self): + return self._get_next() + + def __repr__(self): + return '{0}.{1}({2})'.format('nimodinst', self.__class__.__name__, self._param_list) + + def __str__(self): + ret_str = self.__repr__() + ':\n' + ret_str += ' current index = {0}'.format(self._current_index) + return ret_str + + +class Session(object): + '''A NI-ModInst session to get device information''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + def __init__(self, driver): + self._item_count = 0 + self._current_item = 0 + self._interpreter = _library_interpreter.LibraryInterpreter('windows-1251') + # Note that _library_interpreter clears the session handle in its constructor, so that if + # _open_installed_devices_session fails, the error handler can reference it. + # And then once _open_installed_devices_session succeeds, we can call this again with the + # actual session handle. + handle, self._item_count = self._open_installed_devices_session(driver) + self._interpreter.set_session_handle(handle) + self._param_list = "driver=" + pp.pformat(driver) + + self.devices = [] + for i in range(self._item_count): + self.devices.append(_Device(self, i)) + + self._is_frozen = True + + def __repr__(self): + return '{0}.{1}({2})'.format('nimodinst', self.__class__.__name__, self._param_list) + + def __str__(self): + ret_str = self.__repr__() + ':\n' + for i in range(self._item_count): + ret_str += str(_Device(self, i)) + '\n' + return ret_str + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("__setattr__ not supported.") + object.__setattr__(self, key, value) + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.close() + + # Iterator functions + def __len__(self): + return self._item_count + + def __iter__(self): + return _DeviceIterable(self, self._item_count) + + def close(self): + try: + self._close_installed_devices_session() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + def _close_installed_devices_session(self): + r'''_close_installed_devices_session + + Cleans up the NI-ModInst session created by a call to + _open_installed_devices_session. Call this method when you are + finished using the session handle and do not use this handle again. + ''' + self._interpreter.close_installed_devices_session() + + def _get_installed_device_attribute_vi_int32(self, index, attribute_id): + r'''_get_installed_device_attribute_vi_int32 + + Returns an integer property specified by the attributeID parameter for + a device specified by the handle and index parameters. The handle + parameter is expected to be a valid handle returned by + _open_installed_devices_session. It therefore acts as a handle to + a list of installed devices. The index parameter specifies the device in + the list for which you want the property. + + Args: + index (int): A zero-based index that specifies the device for which you want the + property. This index parameter should be between 0 and (deviceCount - + 1), inclusive, where deviceCount is the number of installed devices + returned by _open_installed_devices_session. + + attribute_id (int): The ID of the integer property you want to query. Valid Values Slot + Number--the slot (for example, in a PXI chassis) in which the device is + installed. This property can only be queried for PXI devices installed + in a chassis that has been properly identified in MAX. Chassis + Number--the number of the chassis in which the device is installed. This + property can only be queried for PXI devices installed in a chassis + that has been properly identified in MAX. Bus Number--the bus on which + the device has been enumerated. Socket Number--the socket number on + which the device has been enumerated. Notes The bus number and socket + number can be used to form a VISA resource string for this device, of + the form "PXI::::INSTR". Traditional NI-DAQ devices do not support the + chassis number, bus number, and socket number properties. + + + Returns: + attribute_value (int): A pointer to a signed 32-bit integer variable that receives the value of + the requested property. + + ''' + attribute_value = self._interpreter.get_installed_device_attribute_vi_int32(index, attribute_id) + return attribute_value + + def _get_installed_device_attribute_vi_string(self, index, attribute_id): + r'''_get_installed_device_attribute_vi_string + + Returns a string property specified by the attributeID parameter for a + device specified by the handle and index parameters. The handle + parameter is expected to be a valid handle returned by + _open_installed_devices_session. Therefore, it acts as a handle + to a list of installed devices. The index parameter specifies for which + device in the list you want the property. To find out the length of the + device name string before you allocate a buffer for it, simply call this + method and pass 0 as the attributeValueBufferSize parameter or NULL as + the attributeValue parameter. When you do this, the method returns the + size of the buffer required to hold the property value string as its + return value. You can then allocate an appropriately sized character + buffer and call this method again. + + Args: + index (int): A zero-based index that specifies the device for which you want the + property. This index parameter should be between 0 and (deviceCount - + 1), inclusive, where deviceCount is the number of installed devices + returned by _open_installed_devices_session. + + attribute_id (int): The ID of the string property you want to query. Valid Values + device_name--the name of the device, which can be used + to open an instrument driver session for that device + device_model--the model of the device (for example, NI + PXI-5122) serial_number--the serial number of the + device + + + Returns: + attribute_value (str): The character buffer into which the property value string is copied. + + ''' + attribute_value = self._interpreter.get_installed_device_attribute_vi_string(index, attribute_id) + return attribute_value + + def _open_installed_devices_session(self, driver): + r'''_open_installed_devices_session + + Creates a handle to a list of installed devices supported by the + specified driver. Call this method and pass in the name of an NI + instrument driver, such as "NI-SCOPE". This method + searches the system and constructs a list of all the installed devices + that are supported by that driver, and then returns both a handle to + this list and the number of devices found. The handle is used with other + methods to query for properties such as device name and model, and to + safely discard the list when finished. Note This handle reflects the + system state when the handle is created (that is, when you call this + method. If you remove devices from the system or rename them in + Measurement & Automation Explorer (MAX), this handle may not refer to an + accurate list of devices. You should destroy the handle using + _close_installed_devices_session and create a new handle using + this method. + + Args: + driver (str): A string specifying the driver whose supported devices you want to find. + This string is not case-sensitive. Some examples are: NI-SCOPE niScope + NI-FGEN niFgen NI-HSDIO niHSDIO NI-DMM niDMM NI-SWITCH niSwitch Note If + you use the empty string for this parameter, NI-ModInst creates a list + of all Modular Instruments devices installed in the system. + + + Returns: + handle (int): A pointer to a ViSession variable that receives the value of the + NI-ModInst session handle. This value acts as a handle to the list of + installed devices and is used in other NI-ModInst methods. + + device_count (int): A pointer to an integer variable that receives the number of devices + found in the system that are supported by the driver specified in the + driver parameter. + + ''' + handle, device_count = self._interpreter.open_installed_devices_session(driver) + return handle, device_count diff --git a/generated/nimodinst/nimodinst/unit_tests/_matchers.py b/generated/nimodinst/nimodinst/unit_tests/_matchers.py new file mode 100644 index 0000000000..4e0efc7343 --- /dev/null +++ b/generated/nimodinst/nimodinst/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nimodinst._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nimodinst/nimodinst/unit_tests/_mock_helper.py b/generated/nimodinst/nimodinst/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..42dc2f8a57 --- /dev/null +++ b/generated/nimodinst/nimodinst/unit_tests/_mock_helper.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['CloseInstalledDevicesSession'] = {} + self._defaults['CloseInstalledDevicesSession']['return'] = 0 + self._defaults['GetExtendedErrorInfo'] = {} + self._defaults['GetExtendedErrorInfo']['return'] = 0 + self._defaults['GetExtendedErrorInfo']['errorInfo'] = None + self._defaults['GetInstalledDeviceAttributeViInt32'] = {} + self._defaults['GetInstalledDeviceAttributeViInt32']['return'] = 0 + self._defaults['GetInstalledDeviceAttributeViInt32']['attributeValue'] = None + self._defaults['GetInstalledDeviceAttributeViString'] = {} + self._defaults['GetInstalledDeviceAttributeViString']['return'] = 0 + self._defaults['GetInstalledDeviceAttributeViString']['attributeValue'] = None + self._defaults['OpenInstalledDevicesSession'] = {} + self._defaults['OpenInstalledDevicesSession']['return'] = 0 + self._defaults['OpenInstalledDevicesSession']['handle'] = None + self._defaults['OpenInstalledDevicesSession']['deviceCount'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niModInst_CloseInstalledDevicesSession(self, handle): # noqa: N802 + if self._defaults['CloseInstalledDevicesSession']['return'] != 0: + return self._defaults['CloseInstalledDevicesSession']['return'] + return self._defaults['CloseInstalledDevicesSession']['return'] + + def niModInst_GetExtendedErrorInfo(self, error_info_buffer_size, error_info): # noqa: N802 + if self._defaults['GetExtendedErrorInfo']['return'] != 0: + return self._defaults['GetExtendedErrorInfo']['return'] + # error_info + if self._defaults['GetExtendedErrorInfo']['errorInfo'] is None: + raise MockFunctionCallError("niModInst_GetExtendedErrorInfo", param='errorInfo') + if error_info_buffer_size.value == 0: + return len(self._defaults['GetExtendedErrorInfo']['errorInfo']) + error_info.value = self._defaults['GetExtendedErrorInfo']['errorInfo'].encode('ascii') + return self._defaults['GetExtendedErrorInfo']['return'] + + def niModInst_GetInstalledDeviceAttributeViInt32(self, handle, index, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetInstalledDeviceAttributeViInt32']['return'] != 0: + return self._defaults['GetInstalledDeviceAttributeViInt32']['return'] + # attribute_value + if self._defaults['GetInstalledDeviceAttributeViInt32']['attributeValue'] is None: + raise MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViInt32", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetInstalledDeviceAttributeViInt32']['attributeValue'] + return self._defaults['GetInstalledDeviceAttributeViInt32']['return'] + + def niModInst_GetInstalledDeviceAttributeViString(self, handle, index, attribute_id, attribute_value_buffer_size, attribute_value): # noqa: N802 + if self._defaults['GetInstalledDeviceAttributeViString']['return'] != 0: + return self._defaults['GetInstalledDeviceAttributeViString']['return'] + # attribute_value + if self._defaults['GetInstalledDeviceAttributeViString']['attributeValue'] is None: + raise MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViString", param='attributeValue') + if attribute_value_buffer_size.value == 0: + return len(self._defaults['GetInstalledDeviceAttributeViString']['attributeValue']) + attribute_value.value = self._defaults['GetInstalledDeviceAttributeViString']['attributeValue'].encode('ascii') + return self._defaults['GetInstalledDeviceAttributeViString']['return'] + + def niModInst_OpenInstalledDevicesSession(self, driver, handle, device_count): # noqa: N802 + if self._defaults['OpenInstalledDevicesSession']['return'] != 0: + return self._defaults['OpenInstalledDevicesSession']['return'] + # handle + if self._defaults['OpenInstalledDevicesSession']['handle'] is None: + raise MockFunctionCallError("niModInst_OpenInstalledDevicesSession", param='handle') + if handle is not None: + handle.contents.value = self._defaults['OpenInstalledDevicesSession']['handle'] + # device_count + if self._defaults['OpenInstalledDevicesSession']['deviceCount'] is None: + raise MockFunctionCallError("niModInst_OpenInstalledDevicesSession", param='deviceCount') + if device_count is not None: + device_count.contents.value = self._defaults['OpenInstalledDevicesSession']['deviceCount'] + return self._defaults['OpenInstalledDevicesSession']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niModInst_CloseInstalledDevicesSession.side_effect = MockFunctionCallError("niModInst_CloseInstalledDevicesSession") + mock_library.niModInst_CloseInstalledDevicesSession.return_value = 0 + mock_library.niModInst_GetExtendedErrorInfo.side_effect = MockFunctionCallError("niModInst_GetExtendedErrorInfo") + mock_library.niModInst_GetExtendedErrorInfo.return_value = 0 + mock_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViInt32") + mock_library.niModInst_GetInstalledDeviceAttributeViInt32.return_value = 0 + mock_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = MockFunctionCallError("niModInst_GetInstalledDeviceAttributeViString") + mock_library.niModInst_GetInstalledDeviceAttributeViString.return_value = 0 + mock_library.niModInst_OpenInstalledDevicesSession.side_effect = MockFunctionCallError("niModInst_OpenInstalledDevicesSession") + mock_library.niModInst_OpenInstalledDevicesSession.return_value = 0 diff --git a/generated/nimodinst/nimodinst/unit_tests/test_modinst.py b/generated/nimodinst/nimodinst/unit_tests/test_modinst.py new file mode 100644 index 0000000000..f7b8075c05 --- /dev/null +++ b/generated/nimodinst/nimodinst/unit_tests/test_modinst.py @@ -0,0 +1,275 @@ +import _matchers +import _mock_helper + +import nimodinst +import warnings + +from unittest.mock import MagicMock +from unittest.mock import patch + +SESSION_NUM_FOR_TEST = 42 + + +class TestSession: + class PatchedLibrary(nimodinst._library.Library): + def __init__(self, ctypes_library): + super().__init__(ctypes_library) + + for f in dir(self): + if f.startswith("niModInst_") and not f.endswith("_cfunc"): + setattr(self, f, MagicMock()) + + def setup_method(self, method): + self.patched_library = self.PatchedLibrary(None) + self.patched_library_singleton_get = patch('nimodinst._library_interpreter._library_singleton.get', return_value=self.patched_library) + self.patched_library_singleton_get.start() + + self.side_effects_helper = _mock_helper.SideEffectsHelper() + self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) + self.patched_library.niModInst_OpenInstalledDevicesSession.side_effect = self.side_effects_helper.niModInst_OpenInstalledDevicesSession + self.disallow_close = self.patched_library.niModInst_CloseInstalledDevicesSession.side_effect + self.patched_library.niModInst_CloseInstalledDevicesSession.side_effect = self.side_effects_helper.niModInst_CloseInstalledDevicesSession + + self.side_effects_helper['OpenInstalledDevicesSession']['handle'] = SESSION_NUM_FOR_TEST + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 + + self.iteration_device_looping = 0 + self.num_int_devices_looping = 3 + self.int_vals_device_looping = [123, 456, 789] + self.num_string_devices_looping = 4 + self.string_vals_device_looping = ["Life", "liberty", "and", "happiness"] + + def teardown_method(self, method): + self.patched_library_singleton_get.stop() + + # Helper function for mocking multiple devices + def niModInst_GetInstalledDeviceAttributeViString_looping(self, handle, index, attribute_id, attribute_value_buffer_size, attribute_value): # noqa: N802 + if attribute_value_buffer_size.value == 0: + # TODO(marcoskirsch): What about the byte for the NULL character? Issue #526 + return (len(self.string_vals_device_looping[self.iteration_device_looping])) + bytes_to_copy = self.string_vals_device_looping[self.iteration_device_looping].encode('ascii') + for i in range(0, len(bytes_to_copy)): + attribute_value[i] = bytes_to_copy[i] + self.iteration_device_looping += 1 + return 0 + + # Helper function for mocking multiple devices + def niModInst_GetInstalledDeviceAttributeViInt32_looping(self, handle, index, attribute_id, attribute_value): # noqa: N802 + attribute_value.contents.value = self.int_vals_device_looping[self.iteration_device_looping] + self.iteration_device_looping += 1 + return 0 + + # API Tests + + def test_open_and_close(self): + session = nimodinst.Session('') + self.patched_library.niModInst_OpenInstalledDevicesSession.assert_called_once_with(_matchers.ViStringMatcher(''), _matchers.ViSessionPointerMatcher(), _matchers.ViInt32PointerMatcher()) + session.close() + self.patched_library.niModInst_CloseInstalledDevicesSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) + + def test_close(self): + session = nimodinst.Session('') + session.close() + self.patched_library.niModInst_CloseInstalledDevicesSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) + + def test_context_manager(self): + with nimodinst.Session('') as session: + assert isinstance(session, nimodinst.Session) + self.patched_library.niModInst_OpenInstalledDevicesSession.assert_called_once_with(_matchers.ViStringMatcher(''), _matchers.ViSessionPointerMatcher(), _matchers.ViInt32PointerMatcher()) + self.patched_library.niModInst_CloseInstalledDevicesSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST)) + + def test_iterating_for(self): + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 2 + with nimodinst.Session('') as session: + assert len(session) == 2 + count = 0 + for d in session: + count += 1 + assert count == len(session) + + def test_iterating_for_empty(self): + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 0 + with nimodinst.Session('') as session: + assert len(session) == 0 + count = 0 + for d in session: + count += 1 + assert count == len(session) + + def test_get_extended_error_info(self): + error_string = 'Error' + self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['errorInfo'] = error_string + with nimodinst.Session('') as session: + # Calling the internal function directly, as get_extended_error_info() functions differently than other IVI Dance functions. + # As a result, it cannot be used directly during error handling. + result = session._interpreter.get_extended_error_info() + assert result == error_string + + def test_get_error_description_fails(self): + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['return'] = -1 + self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['return'] = -2 + with nimodinst.Session('') as session: + try: + session.devices[0].chassis_number + except nimodinst.Error as e: + assert e.code == -1 # we want the original error code from getting the attribute. + assert e.description == "Failed to retrieve error description." + + def test_get_attribute_session(self): + val = 123 + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = val + with nimodinst.Session('') as session: + attr_int = session.devices[0].chassis_number + assert attr_int == val + + def test_get_attribute_vi_int32_for_loop_index(self): + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.niModInst_GetInstalledDeviceAttributeViInt32_looping + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_int_devices_looping + index = 0 + with nimodinst.Session('') as session: + attr_int = session.devices[index].chassis_number + index += 1 + assert attr_int == self.int_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function + + def test_get_attribute_vi_string_for_loop_index(self): + self.patched_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = self.niModInst_GetInstalledDeviceAttributeViString_looping + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_string_devices_looping + index = 0 + with nimodinst.Session('') as session: + attr_int = session.devices[index].device_name + index += 1 + assert attr_int == self.string_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function + + def test_get_attribute_session_no_index(self): + val = 123 + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = val + with nimodinst.Session('') as session: + try: + session.chassis_number + assert False + except AttributeError as e: + assert str(e) == "'Session' object has no attribute 'chassis_number'" + + def test_get_attribute_vi_int32_for_loop_multiple_devices(self): + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.niModInst_GetInstalledDeviceAttributeViInt32_looping + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_int_devices_looping + with nimodinst.Session('') as session: + for d in session: + attr_int = d.chassis_number + assert attr_int == self.int_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function + + def test_get_attribute_vi_string_for_loop_multiple_devices(self): + self.patched_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = self.niModInst_GetInstalledDeviceAttributeViString_looping + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = self.num_string_devices_looping + with nimodinst.Session('') as session: + for d in session: + attr_int = d.device_name + assert attr_int == self.string_vals_device_looping[self.iteration_device_looping - 1] # Have to subtract once since it was already incremented in the callback function + + # Error Tests + def test_cannot_add_properties_to_session_set(self): + with nimodinst.Session('') as session: + try: + session.non_existent_property = 5 + assert False + except AttributeError as e: + assert str(e) == "__setattr__ not supported." + + def test_cannot_add_properties_to_session_get(self): + with nimodinst.Session('') as session: + try: + session.non_existent_property + assert False + except AttributeError as e: + assert str(e) == "'Session' object has no attribute 'non_existent_property'" + + def test_cannot_add_properties_to_device_set(self): + with nimodinst.Session('') as session: + try: + session.devices[0].non_existent_property = 5 + assert False + except AttributeError as e: + assert str(e) == "__setattr__ not supported." + + def test_cannot_add_properties_to_device_get(self): + with nimodinst.Session('') as session: + try: + session.devices[0].non_existent_property + assert False + except AttributeError as e: + assert str(e) == "'_Device' object has no attribute 'non_existent_property'" + + def test_vi_int32_attribute_read_only(self): + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 + with nimodinst.Session('') as session: + try: + session.devices[0].chassis_number = 5 + assert False + except AttributeError as e: + assert str(e) == "__setattr__ not supported." + + def test_vi_string_attribute_read_only(self): + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 1 + with nimodinst.Session('') as session: + try: + session.devices[0].device_name = "Not Possible" + assert False + except AttributeError as e: + assert str(e) == "__setattr__ not supported." + + def test_int_attribute_error(self): + error_code = -1234 + error_string = 'Error' + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = -1 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['return'] = error_code + self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['errorInfo'] = error_string + with nimodinst.Session('') as session: + try: + session.devices[0].chassis_number + assert False + except nimodinst.Error as e: + assert e.code == error_code + assert e.description == error_string + + def test_int_attribute_warning(self): + warning_code = 1234 + error_string = 'Error' + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = -1 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['return'] = warning_code + self.patched_library.niModInst_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niModInst_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['errorInfo'] = error_string + with nimodinst.Session('') as session: + with warnings.catch_warnings(record=True) as w: + session.devices[0].chassis_number + assert len(w) == 1 + assert issubclass(w[0].category, nimodinst.DriverWarning) + assert error_string in str(w[0].message) + + def test_repr_and_str(self): + self.patched_library.niModInst_GetInstalledDeviceAttributeViInt32.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViInt32 + self.patched_library.niModInst_GetInstalledDeviceAttributeViString.side_effect = self.side_effects_helper.niModInst_GetInstalledDeviceAttributeViString + self.side_effects_helper['OpenInstalledDevicesSession']['deviceCount'] = 2 + self.side_effects_helper['GetInstalledDeviceAttributeViInt32']['attributeValue'] = 42 + self.side_effects_helper['GetInstalledDeviceAttributeViString']['attributeValue'] = 'fourty two' + with nimodinst.Session('') as session: + session + print(session) + for d in session: + d + print(d) + + +# not a session test per se +def test_diagnostic_information(): + info = nimodinst.print_diagnostic_information() + assert isinstance(info, dict) diff --git a/generated/nimodinst/setup.py b/generated/nimodinst/setup.py new file mode 100644 index 0000000000..706d39ddb2 --- /dev/null +++ b/generated/nimodinst/setup.py @@ -0,0 +1,55 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nimodinst' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-ModInst Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nimodinst'], + license='MIT', + include_package_data=True, + packages=['nimodinst'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + ], + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nimodinst/tox-system_tests.ini b/generated/nimodinst/tox-system_tests.ini new file mode 100644 index 0000000000..aa76201adc --- /dev/null +++ b/generated/nimodinst/tox-system_tests.ini @@ -0,0 +1,64 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nimodinst) +[tox] +envlist = py{310,311,312,313,314}-nimodinst-system_tests, py314-nimodinst-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nimodinst-system_tests: Run nimodinst system tests (requires NI-ModInst runtime to be installed) + nimodinst-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nimodinst-system_tests: . + nimodinst-coverage: . + +commands = + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nimodinst-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nimodinst-system_tests: python -c "import nimodinst; nimodinst.print_diagnostic_information()" + nimodinst-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nimodinst --parallel-mode -m pytest ../../src/nimodinst/examples --junitxml=../junit/junit-nimodinst-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nimodinst-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nimodinst --parallel-mode -m pytest ../../src/nimodinst/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nimodinst-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nimodinst-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nimodinst-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nimodinst-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nimodinst-system_tests: pytest < 9.2.0 + nimodinst-system_tests: coverage + nimodinst-system_tests: numpy + nimodinst-system_tests: hightime + nimodinst-system_tests: fasteners + nimodinst-system_tests: pytest-json + + nimodinst-coverage: coverage + +depends = + nimodinst-coverage: py{310,311,312,313,314}-nimodinst-system_tests + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nirfsa/README.rst b/generated/nirfsa/README.rst new file mode 100644 index 0000000000..e0fa57b21a --- /dev/null +++ b/generated/nirfsa/README.rst @@ -0,0 +1,179 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nirfsa** module provides a Python API for NI-RFSA. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nirfsa** supports all the Operating Systems supported by NI-RFSA. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nirfsa**. + + +NI-RFSA Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-RFSA (nirfsa) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nirfsaLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nirfsaPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nirfsaDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nirfsaOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nirfsaOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nirfsaLatestVersion| image:: http://img.shields.io/pypi/v/nirfsa.svg + :alt: Latest NI-RFSA Version + :target: http://pypi.python.org/pypi/nirfsa + + +.. |nirfsaPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsa.svg + :alt: NI-RFSA supported Python versions + :target: http://pypi.python.org/pypi/nirfsa + + +.. |nirfsaDocs| image:: https://readthedocs.org/projects/nirfsa/badge/?version=latest + :alt: NI-RFSA Python API Documentation Status + :target: https://nirfsa.readthedocs.io/en/latest + + +.. |nirfsaOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsa.svg + :alt: Open Issues + Pull Requests for NI-RFSA + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsa + + +.. |nirfsaOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsa.svg + :alt: Pull Requests for NI-RFSA + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsa + + + +.. _nirfsa_installation-section: + +Installation +------------ + +As a prerequisite to using the **nirfsa** module, you must install the NI-RFSA runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-RFSA**) can be installed with `pip `_:: + + $ python -m pip install nirfsa + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nirfsa** module to open a session to an RF Signal Analyzer and perform a spectrum acquisition. + +.. code-block:: python + + import nirfsa + + # Configure the session + with nirfsa.Session(resource_name='5841', id_query=False, reset_device=False, options='Simulate=1, DriverSetup=Model:5841') as rfsa_session: + rfsa_session.acquisition_type = nirfsa.AcquisitionType.IQ + + rfsa_session.reference_level = -10 + rfsa_session.iq_carrier_frequency = 1e9 + + iq_data_array = np.zeros(1024, dtype=np.complex128) + + wfm_info = rfsa_session.read_iq_single_record_into(iq_data_array) + # Perform measurements... + +`Other usage examples can be found on GitHub. `_ +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nirfsa/nirfsa/VERSION b/generated/nirfsa/nirfsa/VERSION new file mode 100644 index 0000000000..53a5e898dc --- /dev/null +++ b/generated/nirfsa/nirfsa/VERSION @@ -0,0 +1,2 @@ +1.0.1.dev0 + diff --git a/generated/nirfsa/nirfsa/__init__.py b/generated/nirfsa/nirfsa/__init__.py new file mode 100644 index 0000000000..9ce8a0c70a --- /dev/null +++ b/generated/nirfsa/nirfsa/__init__.py @@ -0,0 +1,115 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.0.1.dev0' + +from nirfsa.enums import * # noqa: F403,F401,H303 +from nirfsa.errors import DriverWarning # noqa: F401 +from nirfsa.errors import Error # noqa: F401 +from nirfsa.grpc_session_options import * # noqa: F403,F401,H303 +from nirfsa.session import Session # noqa: F401 + +from nirfsa.coefficient_info_type import CoefficientInfo # noqa: F401 + +from nirfsa.coefficient_info_type import struct_niRFSA_coefficientInfo # noqa: F401 + +from nirfsa.waveform_info import WaveformInfo # noqa: F401 + +from nirfsa.waveform_info import struct_niRFSA_wfmInfo # noqa: F401 + +from nirfsa.spectrum_info_type import SpectrumInfo # noqa: F401 + +from nirfsa.spectrum_info_type import struct_niRFSA_spectrumInfo # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-RFSA\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-RFSA" + info['driver']['version'] = driver_version + info['module']['name'] = 'nirfsa' + info['module']['version'] = "1.0.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nirfsa/nirfsa/_attributes.py b/generated/nirfsa/nirfsa/_attributes.py new file mode 100644 index 0000000000..198c45af1b --- /dev/null +++ b/generated/nirfsa/nirfsa/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nirfsa._converters as _converters +import nirfsa.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nirfsa Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nirfsa.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nirfsa/nirfsa/_complextype.py b/generated/nirfsa/nirfsa/_complextype.py new file mode 100644 index 0000000000..fbf3407307 --- /dev/null +++ b/generated/nirfsa/nirfsa/_complextype.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# This file was generated +import ctypes +import nirfsa._visatype as _visatype + + +class NIComplexNumber(ctypes.Structure): + _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] + + +class NIComplexNumberF32(ctypes.Structure): + _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] + + +class NIComplexI16(ctypes.Structure): + _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] diff --git a/generated/nirfsa/nirfsa/_converters.py b/generated/nirfsa/nirfsa/_converters.py new file mode 100644 index 0000000000..03b820e260 --- /dev/null +++ b/generated/nirfsa/nirfsa/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nirfsa._visatype as _visatype +import nirfsa.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nirfsa/nirfsa/_grpc_stub_interpreter.py b/generated/nirfsa/nirfsa/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..e23c12a58a --- /dev/null +++ b/generated/nirfsa/nirfsa/_grpc_stub_interpreter.py @@ -0,0 +1,598 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nidevice_pb2 as grpc_complex_types # noqa: F401 +from . import nirfsa_pb2 as grpc_types +from . import nirfsa_pb2_grpc as nirfsa_grpc + +from . import coefficient_info_type as coefficient_info_type # noqa: F401 + +from . import waveform_info as waveform_info # noqa: F401 + +from . import spectrum_info_type as spectrum_info_type # noqa: F401 + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nirfsa_grpc.NiRFSAStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.Abort, + grpc_types.AbortRequest(vi=self._vi), + ) + + def change_external_calibration_password(self, old_password, new_password): # noqa: N802 + self._invoke( + self._client.ChangeExternalCalibrationPassword, + grpc_types.ChangeExternalCalibrationPasswordRequest(vi=self._vi, old_password=old_password, new_password=new_password), + ) + + def check_acquisition_status(self): # noqa: N802 + response = self._invoke( + self._client.CheckAcquisitionStatus, + grpc_types.CheckAcquisitionStatusRequest(vi=self._vi), + ) + return response.is_done + + def clear_self_calibrate_range(self): # noqa: N802 + self._invoke( + self._client.ClearSelfCalibrateRange, + grpc_types.ClearSelfCalibrateRangeRequest(vi=self._vi), + ) + + def commit(self): # noqa: N802 + self._invoke( + self._client.Commit, + grpc_types.CommitRequest(vi=self._vi), + ) + + def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 + self._invoke( + self._client.ConfigureDeembeddingTableInterpolationLinear, + grpc_types.ConfigureDeembeddingTableInterpolationLinearRequest(vi=self._vi, port=port, table_name=table_name, format_raw=format.value), + ) + + def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 + self._invoke( + self._client.ConfigureDeembeddingTableInterpolationNearest, + grpc_types.ConfigureDeembeddingTableInterpolationNearestRequest(vi=self._vi, port=port, table_name=table_name), + ) + + def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 + self._invoke( + self._client.ConfigureDeembeddingTableInterpolationSpline, + grpc_types.ConfigureDeembeddingTableInterpolationSplineRequest(vi=self._vi, port=port, table_name=table_name), + ) + + def configure_digital_edge_advance_trigger(self, source, edge): # noqa: N802 + self._invoke( + self._client.ConfigureDigitalEdgeAdvanceTrigger, + grpc_types.ConfigureDigitalEdgeAdvanceTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value), + ) + + def configure_digital_edge_ref_trigger(self, source, edge, pretrigger_samples): # noqa: N802 + self._invoke( + self._client.ConfigureDigitalEdgeRefTrigger, + grpc_types.ConfigureDigitalEdgeRefTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value, pretrigger_samples=pretrigger_samples), + ) + + def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 + self._invoke( + self._client.ConfigureDigitalEdgeStartTrigger, + grpc_types.ConfigureDigitalEdgeStartTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value), + ) + + def configure_iq_power_edge_ref_trigger(self, source, level, slope, pretrigger_samples): # noqa: N802 + self._invoke( + self._client.ConfigureIQPowerEdgeRefTrigger, + grpc_types.ConfigureIQPowerEdgeRefTriggerRequest(vi=self._vi, level=level, slope_raw=slope.value, pretrigger_samples=pretrigger_samples), + ) + + def configure_ref_clock(self, clock_source, ref_clock_rate): # noqa: N802 + self._invoke( + self._client.ConfigureRefClock, + grpc_types.ConfigureRefClockRequest(vi=self._vi, clock_source_raw=clock_source.value, ref_clock_rate=ref_clock_rate), + ) + + def configure_software_edge_advance_trigger(self): # noqa: N802 + self._invoke( + self._client.ConfigureSoftwareEdgeAdvanceTrigger, + grpc_types.ConfigureSoftwareEdgeAdvanceTriggerRequest(vi=self._vi), + ) + + def configure_software_edge_ref_trigger(self, pretrigger_samples): # noqa: N802 + self._invoke( + self._client.ConfigureSoftwareEdgeRefTrigger, + grpc_types.ConfigureSoftwareEdgeRefTriggerRequest(vi=self._vi, pretrigger_samples=pretrigger_samples), + ) + + def configure_software_edge_start_trigger(self): # noqa: N802 + self._invoke( + self._client.ConfigureSoftwareEdgeStartTrigger, + grpc_types.ConfigureSoftwareEdgeStartTriggerRequest(vi=self._vi), + ) + + def configure_spectrum_frequency_center_span(self, channel_list, center_frequency, span): # noqa: N802 + self._invoke( + self._client.ConfigureSpectrumFrequencyCenterSpan, + grpc_types.ConfigureSpectrumFrequencyCenterSpanRequest(vi=self._vi, channel_list=channel_list, center_frequency=center_frequency, span=span), + ) + + def configure_spectrum_frequency_start_stop(self, channel_list, start_frequency, stop_frequency): # noqa: N802 + self._invoke( + self._client.ConfigureSpectrumFrequencyStartStop, + grpc_types.ConfigureSpectrumFrequencyStartStopRequest(vi=self._vi, channel_list=channel_list, start_frequency=start_frequency, stop_frequency=stop_frequency), + ) + + def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + sparameter_table_list = [ + grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) + for val in sparameter_table.ravel() + ] + self._invoke( + self._client.CreateDeembeddingSparameterTableArray, + grpc_types.CreateDeembeddingSparameterTableArrayRequest(vi=self._vi, port=port, table_name=table_name, frequencies=frequencies, sparameter_table=sparameter_table_list, number_of_ports=number_of_ports, sparameter_orientation_raw=sparameter_orientation.value), + ) + + def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + self._invoke( + self._client.CreateDeembeddingSparameterTableS2PFile, + grpc_types.CreateDeembeddingSparameterTableS2PFileRequest(vi=self._vi, port=port, table_name=table_name, s2p_file_path=s2p_file_path, sparameter_orientation_raw=sparameter_orientation.value), + ) + + def delete_all_deembedding_tables(self): # noqa: N802 + self._invoke( + self._client.DeleteAllDeembeddingTables, + grpc_types.DeleteAllDeembeddingTablesRequest(vi=self._vi), + ) + + def delete_deembedding_table(self, port, table_name): # noqa: N802 + self._invoke( + self._client.DeleteDeembeddingTable, + grpc_types.DeleteDeembeddingTableRequest(vi=self._vi, port=port, table_name=table_name), + ) + + def disable_advance_trigger(self): # noqa: N802 + self._invoke( + self._client.DisableAdvanceTrigger, + grpc_types.DisableAdvanceTriggerRequest(vi=self._vi), + ) + + def disable_ref_trigger(self): # noqa: N802 + self._invoke( + self._client.DisableRefTrigger, + grpc_types.DisableRefTriggerRequest(vi=self._vi), + ) + + def disable_start_trigger(self): # noqa: N802 + self._invoke( + self._client.DisableStartTrigger, + grpc_types.DisableStartTriggerRequest(vi=self._vi), + ) + + def enable_session_access(self, enable): # noqa: N802 + self._invoke( + self._client.EnableSessionAccess, + grpc_types.EnableSessionAccessRequest(vi=self._vi, enable=enable), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, status_code=error_code), + ) + return response.error_message + + def fetch_iq_multi_record_complex_f32(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 + import numpy + samples_per_record = (iq_data_arrays.shape[1]) if iq_data_arrays is not None and iq_data_arrays.ndim > 1 else 0 + response = self._invoke( + self._client.FetchIQMultiRecordComplexF32, + grpc_types.FetchIQMultiRecordComplexF32Request(vi=self._vi, channel_list=channel_list, starting_record=starting_record, number_of_records=number_of_records, number_of_samples=samples_per_record, timeout=timeout), + ) + data_flat = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex64) + for rec in range(number_of_records): + iq_data_arrays[rec] = data_flat[rec * samples_per_record:(rec + 1) * samples_per_record] + return [waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) for r in response.wfm_info] + + def fetch_iq_multi_record_complex_f64(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 + import numpy + samples_per_record = (iq_data_arrays.shape[1]) if iq_data_arrays is not None and iq_data_arrays.ndim > 1 else 0 + response = self._invoke( + self._client.FetchIQMultiRecordComplexF64, + grpc_types.FetchIQMultiRecordComplexF64Request(vi=self._vi, channel_list=channel_list, starting_record=starting_record, number_of_records=number_of_records, number_of_samples=samples_per_record, timeout=timeout), + ) + data_flat = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex128) + for rec in range(number_of_records): + iq_data_arrays[rec] = data_flat[rec * samples_per_record:(rec + 1) * samples_per_record] + return [waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) for r in response.wfm_info] + + def fetch_iq_multi_record_complex_i16(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 + samples_per_record = (iq_data_arrays.shape[1] // 2) if iq_data_arrays is not None and iq_data_arrays.ndim > 1 else 0 + response = self._invoke( + self._client.FetchIQMultiRecordComplexI16, + grpc_types.FetchIQMultiRecordComplexI16Request(vi=self._vi, channel_list=channel_list, starting_record=starting_record, number_of_records=number_of_records, number_of_samples=samples_per_record, timeout=timeout), + ) + for rec in range(number_of_records): + for i, x in enumerate(response.data[rec * samples_per_record:(rec + 1) * samples_per_record]): + iq_data_arrays[rec, 2 * i] = x.real + iq_data_arrays[rec, 2 * i + 1] = x.imaginary + return [waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) for r in response.wfm_info] + + def fetch_iq_single_record_complex_f32(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 + import numpy + response = self._invoke( + self._client.FetchIQSingleRecordComplexF32, + grpc_types.FetchIQSingleRecordComplexF32Request(vi=self._vi, channel_list=channel_list, record_number=record_number, number_of_samples=len(iq_data_array), timeout=timeout), + ) + iq_data_array[:] = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex64) + r = response.wfm_info + return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) + + def fetch_iq_single_record_complex_f64(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 + import numpy + response = self._invoke( + self._client.FetchIQSingleRecordComplexF64, + grpc_types.FetchIQSingleRecordComplexF64Request(vi=self._vi, channel_list=channel_list, record_number=record_number, number_of_samples=len(iq_data_array), timeout=timeout), + ) + iq_data_array[:] = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex128) + r = response.wfm_info + return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) + + def fetch_iq_single_record_complex_i16(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 + response = self._invoke( + self._client.FetchIQSingleRecordComplexI16, + grpc_types.FetchIQSingleRecordComplexI16Request(vi=self._vi, channel_list=channel_list, record_number=record_number, number_of_samples=len(iq_data_array) // 2, timeout=timeout), + ) + for i, x in enumerate(response.data): + iq_data_array[2 * i] = x.real + iq_data_array[2 * i + 1] = x.imaginary + r = response.wfm_info + return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt64, + grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViSession, + grpc_types.GetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.value + + def get_deembedding_sparameters(self): + import numpy as np + response = self._invoke( + self._client.GetDeembeddingSparameters, + grpc_types.GetDeembeddingSparametersRequest(vi=self._vi), + ) + number_of_ports = response.number_of_ports + sparameters = np.array([c.real + 1j * c.imaginary for c in response.sparameters], dtype=np.complex128) + sparameters = sparameters.reshape((number_of_ports, number_of_ports)) + return sparameters + + def get_deembedding_table_number_of_ports(self): # noqa: N802 + response = self._invoke( + self._client.GetDeembeddingTableNumberOfPorts, + grpc_types.GetDeembeddingTableNumberOfPortsRequest(vi=self._vi), + ) + return response.number_of_ports + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.error_description + + def get_ext_cal_last_date_and_time(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalLastDateAndTime, + grpc_types.GetExtCalLastDateAndTimeRequest(vi=self._vi), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_ext_cal_recommended_interval(self): # noqa: N802 + response = self._invoke( + self._client.GetExtCalRecommendedInterval, + grpc_types.GetExtCalRecommendedIntervalRequest(vi=self._vi), + ) + return response.months + + def get_fetch_backlog(self, channel_list, record_number): # noqa: N802 + response = self._invoke( + self._client.GetFetchBacklog, + grpc_types.GetFetchBacklogRequest(vi=self._vi, channel_list=channel_list, record_number=record_number), + ) + return response.backlog + + def get_frequency_response(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.GetFrequencyResponse, + grpc_types.GetFrequencyResponseRequest(vi=self._vi, channel_list=channel_list), + ) + return response.frequencies, response.magnitude_response, response.phase_response + + def get_scaling_coefficients(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.GetScalingCoefficients, + grpc_types.GetScalingCoefficientsRequest(vi=self._vi, channel_list=channel_list), + ) + return [coefficient_info_type.CoefficientInfo(x) for x in response.coefficient_info] + + def get_self_cal_last_date_and_time(self, self_calibration_step): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalLastDateAndTime, + grpc_types.GetSelfCalLastDateAndTimeRequest(vi=self._vi, self_calibration_step=self_calibration_step.value), + ) + return response.year, response.month, response.day, response.hour, response.minute + + def get_self_calibration_temperature(self, self_calibration_step): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalLastTemp, + grpc_types.GetSelfCalLastTempRequest(vi=self._vi, self_calibration_step=self_calibration_step.value), + ) + return response.temp + + def get_terminal_name(self, signal, signal_identifier): # noqa: N802 + response = self._invoke( + self._client.GetTerminalName, + grpc_types.GetTerminalNameRequest(vi=self._vi, signal_raw=signal.value, signal_identifier=signal_identifier, buffer_size=2048), + ) + return response.terminal_name + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithOptions, + grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate(self): # noqa: N802 + self._invoke( + self._client.Initiate, + grpc_types.InitiateRequest(vi=self._vi), + ) + + def is_self_cal_valid(self): # noqa: N802 + response = self._invoke( + self._client.IsSelfCalValid, + grpc_types.IsSelfCalValidRequest(vi=self._vi), + ) + return response.self_cal_valid, enums.SelfCalSteps(response.valid_steps_raw) + + def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 + self._invoke( + self._client.LoadConfigurationsFromFile, + grpc_types.LoadConfigurationsFromFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def perform_thermal_correction(self): # noqa: N802 + self._invoke( + self._client.PerformThermalCorrection, + grpc_types.PerformThermalCorrectionRequest(vi=self._vi), + ) + + def read_iq_single_record_complex_f64(self, channel_list, iq_data_array, timeout): # noqa: N802 + import numpy + response = self._invoke( + self._client.ReadIQSingleRecordComplexF64, + grpc_types.ReadIQSingleRecordComplexF64Request(vi=self._vi, channel_list=channel_list, timeout=timeout, data_array_size=len(iq_data_array)), + ) + iq_data_array[:] = numpy.array([complex(x.real, x.imaginary) for x in response.data], dtype=numpy.complex128) + r = response.wfm_info + return waveform_info.WaveformInfo(absolute_initial_x=r.absolute_initial_x, relative_initial_x=r.relative_initial_x, x_increment=r.x_increment, actual_samples=r.actual_samples, offset=r.offset, gain=r.gain) + + def read_power_spectrum_f32(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 + response = self._invoke( + self._client.ReadPowerSpectrumF32, + grpc_types.ReadPowerSpectrumF32Request(vi=self._vi, channel_list=channel_list, timeout=timeout, data_array_size=len(power_spectrum_data_array)), + ) + power_spectrum_data_array[:] = response.power_spectrum_data + s = response.spectrum_info + return spectrum_info_type.SpectrumInfo(initial_frequency=s.initial_frequency, frequency_increment=s.frequency_increment, number_of_spectral_lines=s.number_of_spectral_lines) + + def read_power_spectrum_f64(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 + response = self._invoke( + self._client.ReadPowerSpectrumF64, + grpc_types.ReadPowerSpectrumF64Request(vi=self._vi, channel_list=channel_list, timeout=timeout, data_array_size=len(power_spectrum_data_array)), + ) + power_spectrum_data_array[:] = response.power_spectrum_data + s = response.spectrum_info + return spectrum_info_type.SpectrumInfo(initial_frequency=s.initial_frequency, frequency_increment=s.frequency_increment, number_of_spectral_lines=s.number_of_spectral_lines) + + def reset_device(self): # noqa: N802 + self._invoke( + self._client.ResetDevice, + grpc_types.ResetDeviceRequest(vi=self._vi), + ) + + def reset_with_options(self, steps_to_omit): # noqa: N802 + self._invoke( + self._client.ResetWithOptions, + grpc_types.ResetWithOptionsRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value), + ) + + def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 + self._invoke( + self._client.SaveConfigurationsToFile, + grpc_types.SaveConfigurationsToFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), + ) + + def self_calibrate_range(self, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 + self._invoke( + self._client.SelfCalibrateRange, + grpc_types.SelfCalibrateRangeRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value, min_frequency=minimum_frequency, max_frequency=maximum_frequency, min_reference_level=minimum_reference_level, max_reference_level=maximum_reference_level), + ) + + def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 + self._invoke( + self._client.SendSoftwareEdgeTrigger, + grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_identifier=trigger_identifier), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value=value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), + ) + + def set_attribute_vi_int64(self, channel_name, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt64, + grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), + ) + + def set_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 + self._invoke( + self._client.SetAttributeViSession, + grpc_types.SetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value=self._vi), + ) + + def set_attribute_vi_string(self, channel_name, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, value_raw=value), + ) + + def unlock(self): # noqa: N802 + self._lock.release() + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.test_result, response.test_message diff --git a/generated/nirfsa/nirfsa/_library.py b/generated/nirfsa/nirfsa/_library.py new file mode 100644 index 0000000000..c5a2bebf1e --- /dev/null +++ b/generated/nirfsa/nirfsa/_library.py @@ -0,0 +1,701 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nirfsa.errors as errors +import threading + +from nirfsa._complextype import * # noqa: F403 +from nirfsa._visatype import * # noqa: F403,H303 + +import nirfsa.coefficient_info_type as coefficient_info_type # noqa: F401 + +import nirfsa.waveform_info as waveform_info # noqa: F401 + +import nirfsa.spectrum_info_type as spectrum_info_type # noqa: F401 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niRFSA_Abort_cfunc = None + self.niRFSA_ChangeExternalCalibrationPassword_cfunc = None + self.niRFSA_CheckAcquisitionStatus_cfunc = None + self.niRFSA_ClearSelfCalibrateRange_cfunc = None + self.niRFSA_Commit_cfunc = None + self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc = None + self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc = None + self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc = None + self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc = None + self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc = None + self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc = None + self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc = None + self.niRFSA_ConfigureRefClock_cfunc = None + self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc = None + self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc = None + self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc = None + self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc = None + self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc = None + self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc = None + self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc = None + self.niRFSA_DeleteAllDeembeddingTables_cfunc = None + self.niRFSA_DeleteDeembeddingTable_cfunc = None + self.niRFSA_DisableAdvanceTrigger_cfunc = None + self.niRFSA_DisableRefTrigger_cfunc = None + self.niRFSA_DisableStartTrigger_cfunc = None + self.niRFSA_EnableSessionAccess_cfunc = None + self.niRFSA_ErrorMessage_cfunc = None + self.niRFSA_FetchIQMultiRecordComplexF32_cfunc = None + self.niRFSA_FetchIQMultiRecordComplexF64_cfunc = None + self.niRFSA_FetchIQMultiRecordComplexI16_cfunc = None + self.niRFSA_FetchIQSingleRecordComplexF32_cfunc = None + self.niRFSA_FetchIQSingleRecordComplexF64_cfunc = None + self.niRFSA_FetchIQSingleRecordComplexI16_cfunc = None + self.niRFSA_GetAttributeViBoolean_cfunc = None + self.niRFSA_GetAttributeViInt32_cfunc = None + self.niRFSA_GetAttributeViInt64_cfunc = None + self.niRFSA_GetAttributeViReal64_cfunc = None + self.niRFSA_GetAttributeViSession_cfunc = None + self.niRFSA_GetAttributeViString_cfunc = None + self.niRFSA_GetDeembeddingSparameters_cfunc = None + self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc = None + self.niRFSA_GetError_cfunc = None + self.niRFSA_GetExtCalLastDateAndTime_cfunc = None + self.niRFSA_GetExtCalRecommendedInterval_cfunc = None + self.niRFSA_GetFetchBacklog_cfunc = None + self.niRFSA_GetFrequencyResponse_cfunc = None + self.niRFSA_GetScalingCoefficients_cfunc = None + self.niRFSA_GetSelfCalLastDateAndTime_cfunc = None + self.niRFSA_GetSelfCalLastTemp_cfunc = None + self.niRFSA_GetTerminalName_cfunc = None + self.niRFSA_InitWithOptions_cfunc = None + self.niRFSA_Initiate_cfunc = None + self.niRFSA_IsSelfCalValid_cfunc = None + self.niRFSA_LoadConfigurationsFromFile_cfunc = None + self.niRFSA_LockSession_cfunc = None + self.niRFSA_PerformThermalCorrection_cfunc = None + self.niRFSA_ReadIQSingleRecordComplexF64_cfunc = None + self.niRFSA_ReadPowerSpectrumF32_cfunc = None + self.niRFSA_ReadPowerSpectrumF64_cfunc = None + self.niRFSA_ResetDevice_cfunc = None + self.niRFSA_ResetWithOptions_cfunc = None + self.niRFSA_SaveConfigurationsToFile_cfunc = None + self.niRFSA_SelfCalibrateRange_cfunc = None + self.niRFSA_SendSoftwareEdgeTrigger_cfunc = None + self.niRFSA_SetAttributeViBoolean_cfunc = None + self.niRFSA_SetAttributeViInt32_cfunc = None + self.niRFSA_SetAttributeViInt64_cfunc = None + self.niRFSA_SetAttributeViReal64_cfunc = None + self.niRFSA_SetAttributeViSession_cfunc = None + self.niRFSA_SetAttributeViString_cfunc = None + self.niRFSA_UnlockSession_cfunc = None + self.niRFSA_close_cfunc = None + self.niRFSA_reset_cfunc = None + self.niRFSA_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niRFSA_Abort(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_Abort_cfunc is None: + self.niRFSA_Abort_cfunc = self._get_library_function('niRFSA_Abort') + self.niRFSA_Abort_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_Abort_cfunc(vi) + + def niRFSA_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 + with self._func_lock: + if self.niRFSA_ChangeExternalCalibrationPassword_cfunc is None: + self.niRFSA_ChangeExternalCalibrationPassword_cfunc = self._get_library_function('niRFSA_ChangeExternalCalibrationPassword') + self.niRFSA_ChangeExternalCalibrationPassword_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_ChangeExternalCalibrationPassword_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ChangeExternalCalibrationPassword_cfunc(vi, old_password, new_password) + + def niRFSA_CheckAcquisitionStatus(self, vi, is_done): # noqa: N802 + with self._func_lock: + if self.niRFSA_CheckAcquisitionStatus_cfunc is None: + self.niRFSA_CheckAcquisitionStatus_cfunc = self._get_library_function('niRFSA_CheckAcquisitionStatus') + self.niRFSA_CheckAcquisitionStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSA_CheckAcquisitionStatus_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_CheckAcquisitionStatus_cfunc(vi, is_done) + + def niRFSA_ClearSelfCalibrateRange(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_ClearSelfCalibrateRange_cfunc is None: + self.niRFSA_ClearSelfCalibrateRange_cfunc = self._get_library_function('niRFSA_ClearSelfCalibrateRange') + self.niRFSA_ClearSelfCalibrateRange_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_ClearSelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ClearSelfCalibrateRange_cfunc(vi) + + def niRFSA_Commit(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_Commit_cfunc is None: + self.niRFSA_Commit_cfunc = self._get_library_function('niRFSA_Commit') + self.niRFSA_Commit_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_Commit_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_Commit_cfunc(vi) + + def niRFSA_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc is None: + self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc = self._get_library_function('niRFSA_ConfigureDeembeddingTableInterpolationLinear') + self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureDeembeddingTableInterpolationLinear_cfunc(vi, port, table_name, format) + + def niRFSA_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc is None: + self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc = self._get_library_function('niRFSA_ConfigureDeembeddingTableInterpolationNearest') + self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureDeembeddingTableInterpolationNearest_cfunc(vi, port, table_name) + + def niRFSA_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc is None: + self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc = self._get_library_function('niRFSA_ConfigureDeembeddingTableInterpolationSpline') + self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureDeembeddingTableInterpolationSpline_cfunc(vi, port, table_name) + + def niRFSA_ConfigureDigitalEdgeAdvanceTrigger(self, vi, source, edge): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc is None: + self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc = self._get_library_function('niRFSA_ConfigureDigitalEdgeAdvanceTrigger') + self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureDigitalEdgeAdvanceTrigger_cfunc(vi, source, edge) + + def niRFSA_ConfigureDigitalEdgeRefTrigger(self, vi, source, edge, pretrigger_samples): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc is None: + self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc = self._get_library_function('niRFSA_ConfigureDigitalEdgeRefTrigger') + self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt64] # noqa: F405 + self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureDigitalEdgeRefTrigger_cfunc(vi, source, edge, pretrigger_samples) + + def niRFSA_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc is None: + self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc = self._get_library_function('niRFSA_ConfigureDigitalEdgeStartTrigger') + self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureDigitalEdgeStartTrigger_cfunc(vi, source, edge) + + def niRFSA_ConfigureIQPowerEdgeRefTrigger(self, vi, source, level, slope, pretrigger_samples): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc is None: + self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc = self._get_library_function('niRFSA_ConfigureIQPowerEdgeRefTrigger') + self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ViInt64] # noqa: F405 + self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureIQPowerEdgeRefTrigger_cfunc(vi, source, level, slope, pretrigger_samples) + + def niRFSA_ConfigureRefClock(self, vi, clock_source, ref_clock_rate): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureRefClock_cfunc is None: + self.niRFSA_ConfigureRefClock_cfunc = self._get_library_function('niRFSA_ConfigureRefClock') + self.niRFSA_ConfigureRefClock_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64] # noqa: F405 + self.niRFSA_ConfigureRefClock_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureRefClock_cfunc(vi, clock_source, ref_clock_rate) + + def niRFSA_ConfigureSoftwareEdgeAdvanceTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc is None: + self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc = self._get_library_function('niRFSA_ConfigureSoftwareEdgeAdvanceTrigger') + self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger_cfunc(vi) + + def niRFSA_ConfigureSoftwareEdgeRefTrigger(self, vi, pretrigger_samples): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc is None: + self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc = self._get_library_function('niRFSA_ConfigureSoftwareEdgeRefTrigger') + self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc.argtypes = [ViSession, ViInt64] # noqa: F405 + self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureSoftwareEdgeRefTrigger_cfunc(vi, pretrigger_samples) + + def niRFSA_ConfigureSoftwareEdgeStartTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc is None: + self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc = self._get_library_function('niRFSA_ConfigureSoftwareEdgeStartTrigger') + self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureSoftwareEdgeStartTrigger_cfunc(vi) + + def niRFSA_ConfigureSpectrumFrequencyCenterSpan(self, vi, channel_list, center_frequency, span): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc is None: + self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc = self._get_library_function('niRFSA_ConfigureSpectrumFrequencyCenterSpan') + self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 + self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureSpectrumFrequencyCenterSpan_cfunc(vi, channel_list, center_frequency, span) + + def niRFSA_ConfigureSpectrumFrequencyStartStop(self, vi, channel_list, start_frequency, stop_frequency): # noqa: N802 + with self._func_lock: + if self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc is None: + self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc = self._get_library_function('niRFSA_ConfigureSpectrumFrequencyStartStop') + self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 + self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ConfigureSpectrumFrequencyStartStop_cfunc(vi, channel_list, start_frequency, stop_frequency) + + def niRFSA_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 + with self._func_lock: + if self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc is None: + self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc = self._get_library_function('niRFSA_CreateDeembeddingSparameterTableArray') + self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(NIComplexNumber), ViInt32, ViInt32, ViInt32] # noqa: F405 + self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_CreateDeembeddingSparameterTableArray_cfunc(vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation) + + def niRFSA_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + with self._func_lock: + if self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc is None: + self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc = self._get_library_function('niRFSA_CreateDeembeddingSparameterTableS2PFile') + self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_CreateDeembeddingSparameterTableS2PFile_cfunc(vi, port, table_name, s2p_file_path, sparameter_orientation) + + def niRFSA_DeleteAllDeembeddingTables(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_DeleteAllDeembeddingTables_cfunc is None: + self.niRFSA_DeleteAllDeembeddingTables_cfunc = self._get_library_function('niRFSA_DeleteAllDeembeddingTables') + self.niRFSA_DeleteAllDeembeddingTables_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_DeleteAllDeembeddingTables_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_DeleteAllDeembeddingTables_cfunc(vi) + + def niRFSA_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 + with self._func_lock: + if self.niRFSA_DeleteDeembeddingTable_cfunc is None: + self.niRFSA_DeleteDeembeddingTable_cfunc = self._get_library_function('niRFSA_DeleteDeembeddingTable') + self.niRFSA_DeleteDeembeddingTable_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_DeleteDeembeddingTable_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_DeleteDeembeddingTable_cfunc(vi, port, table_name) + + def niRFSA_DisableAdvanceTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_DisableAdvanceTrigger_cfunc is None: + self.niRFSA_DisableAdvanceTrigger_cfunc = self._get_library_function('niRFSA_DisableAdvanceTrigger') + self.niRFSA_DisableAdvanceTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_DisableAdvanceTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_DisableAdvanceTrigger_cfunc(vi) + + def niRFSA_DisableRefTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_DisableRefTrigger_cfunc is None: + self.niRFSA_DisableRefTrigger_cfunc = self._get_library_function('niRFSA_DisableRefTrigger') + self.niRFSA_DisableRefTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_DisableRefTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_DisableRefTrigger_cfunc(vi) + + def niRFSA_DisableStartTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_DisableStartTrigger_cfunc is None: + self.niRFSA_DisableStartTrigger_cfunc = self._get_library_function('niRFSA_DisableStartTrigger') + self.niRFSA_DisableStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_DisableStartTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_DisableStartTrigger_cfunc(vi) + + def niRFSA_EnableSessionAccess(self, vi, enable): # noqa: N802 + with self._func_lock: + if self.niRFSA_EnableSessionAccess_cfunc is None: + self.niRFSA_EnableSessionAccess_cfunc = self._get_library_function('niRFSA_EnableSessionAccess') + self.niRFSA_EnableSessionAccess_cfunc.argtypes = [ViSession, ViBoolean] # noqa: F405 + self.niRFSA_EnableSessionAccess_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_EnableSessionAccess_cfunc(vi, enable) + + def niRFSA_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niRFSA_ErrorMessage_cfunc is None: + self.niRFSA_ErrorMessage_cfunc = self._get_library_function('niRFSA_ErrorMessage') + self.niRFSA_ErrorMessage_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_ErrorMessage_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ErrorMessage_cfunc(vi, error_code, error_message) + + def niRFSA_FetchIQMultiRecordComplexF32(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_FetchIQMultiRecordComplexF32_cfunc is None: + self.niRFSA_FetchIQMultiRecordComplexF32_cfunc = self._get_library_function('niRFSA_FetchIQMultiRecordComplexF32') + self.niRFSA_FetchIQMultiRecordComplexF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumberF32), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_FetchIQMultiRecordComplexF32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_FetchIQMultiRecordComplexF32_cfunc(vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info) + + def niRFSA_FetchIQMultiRecordComplexF64(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_FetchIQMultiRecordComplexF64_cfunc is None: + self.niRFSA_FetchIQMultiRecordComplexF64_cfunc = self._get_library_function('niRFSA_FetchIQMultiRecordComplexF64') + self.niRFSA_FetchIQMultiRecordComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumber), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_FetchIQMultiRecordComplexF64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_FetchIQMultiRecordComplexF64_cfunc(vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info) + + def niRFSA_FetchIQMultiRecordComplexI16(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_FetchIQMultiRecordComplexI16_cfunc is None: + self.niRFSA_FetchIQMultiRecordComplexI16_cfunc = self._get_library_function('niRFSA_FetchIQMultiRecordComplexI16') + self.niRFSA_FetchIQMultiRecordComplexI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexI16), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_FetchIQMultiRecordComplexI16_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_FetchIQMultiRecordComplexI16_cfunc(vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info) + + def niRFSA_FetchIQSingleRecordComplexF32(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_FetchIQSingleRecordComplexF32_cfunc is None: + self.niRFSA_FetchIQSingleRecordComplexF32_cfunc = self._get_library_function('niRFSA_FetchIQSingleRecordComplexF32') + self.niRFSA_FetchIQSingleRecordComplexF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumberF32), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_FetchIQSingleRecordComplexF32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_FetchIQSingleRecordComplexF32_cfunc(vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info) + + def niRFSA_FetchIQSingleRecordComplexF64(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_FetchIQSingleRecordComplexF64_cfunc is None: + self.niRFSA_FetchIQSingleRecordComplexF64_cfunc = self._get_library_function('niRFSA_FetchIQSingleRecordComplexF64') + self.niRFSA_FetchIQSingleRecordComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexNumber), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_FetchIQSingleRecordComplexF64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_FetchIQSingleRecordComplexF64_cfunc(vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info) + + def niRFSA_FetchIQSingleRecordComplexI16(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_FetchIQSingleRecordComplexI16_cfunc is None: + self.niRFSA_FetchIQSingleRecordComplexI16_cfunc = self._get_library_function('niRFSA_FetchIQSingleRecordComplexI16') + self.niRFSA_FetchIQSingleRecordComplexI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ViInt64, ViReal64, ctypes.POINTER(NIComplexI16), ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_FetchIQSingleRecordComplexI16_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_FetchIQSingleRecordComplexI16_cfunc(vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info) + + def niRFSA_GetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetAttributeViBoolean_cfunc is None: + self.niRFSA_GetAttributeViBoolean_cfunc = self._get_library_function('niRFSA_GetAttributeViBoolean') + self.niRFSA_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSA_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_GetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetAttributeViInt32_cfunc is None: + self.niRFSA_GetAttributeViInt32_cfunc = self._get_library_function('niRFSA_GetAttributeViInt32') + self.niRFSA_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_GetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetAttributeViInt64_cfunc is None: + self.niRFSA_GetAttributeViInt64_cfunc = self._get_library_function('niRFSA_GetAttributeViInt64') + self.niRFSA_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niRFSA_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetAttributeViInt64_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_GetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetAttributeViReal64_cfunc is None: + self.niRFSA_GetAttributeViReal64_cfunc = self._get_library_function('niRFSA_GetAttributeViReal64') + self.niRFSA_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSA_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_GetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetAttributeViSession_cfunc is None: + self.niRFSA_GetAttributeViSession_cfunc = self._get_library_function('niRFSA_GetAttributeViSession') + self.niRFSA_GetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViSession)] # noqa: F405 + self.niRFSA_GetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetAttributeViSession_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_GetAttributeViString(self, vi, channel_name, attribute_id, buf_size, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetAttributeViString_cfunc is None: + self.niRFSA_GetAttributeViString_cfunc = self._get_library_function('niRFSA_GetAttributeViString') + self.niRFSA_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetAttributeViString_cfunc(vi, channel_name, attribute_id, buf_size, value) + + def niRFSA_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetDeembeddingSparameters_cfunc is None: + self.niRFSA_GetDeembeddingSparameters_cfunc = self._get_library_function('niRFSA_GetDeembeddingSparameters') + self.niRFSA_GetDeembeddingSparameters_cfunc.argtypes = [ViSession, ctypes.POINTER(NIComplexNumber), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetDeembeddingSparameters_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetDeembeddingSparameters_cfunc(vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports) + + def niRFSA_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc is None: + self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc = self._get_library_function('niRFSA_GetDeembeddingTableNumberOfPorts') + self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetDeembeddingTableNumberOfPorts_cfunc(vi, number_of_ports) + + def niRFSA_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetError_cfunc is None: + self.niRFSA_GetError_cfunc = self._get_library_function('niRFSA_GetError') + self.niRFSA_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) + + def niRFSA_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetExtCalLastDateAndTime_cfunc is None: + self.niRFSA_GetExtCalLastDateAndTime_cfunc = self._get_library_function('niRFSA_GetExtCalLastDateAndTime') + self.niRFSA_GetExtCalLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetExtCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetExtCalLastDateAndTime_cfunc(vi, year, month, day, hour, minute) + + def niRFSA_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetExtCalRecommendedInterval_cfunc is None: + self.niRFSA_GetExtCalRecommendedInterval_cfunc = self._get_library_function('niRFSA_GetExtCalRecommendedInterval') + self.niRFSA_GetExtCalRecommendedInterval_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetExtCalRecommendedInterval_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetExtCalRecommendedInterval_cfunc(vi, months) + + def niRFSA_GetFetchBacklog(self, vi, channel_list, record_number, backlog): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetFetchBacklog_cfunc is None: + self.niRFSA_GetFetchBacklog_cfunc = self._get_library_function('niRFSA_GetFetchBacklog') + self.niRFSA_GetFetchBacklog_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt64, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niRFSA_GetFetchBacklog_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetFetchBacklog_cfunc(vi, channel_list, record_number, backlog) + + def niRFSA_GetFrequencyResponse(self, vi, channel_list, buffer_size, frequencies, magnitude_response, phase_response, number_of_frequencies): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetFrequencyResponse_cfunc is None: + self.niRFSA_GetFrequencyResponse_cfunc = self._get_library_function('niRFSA_GetFrequencyResponse') + self.niRFSA_GetFrequencyResponse_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetFrequencyResponse_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetFrequencyResponse_cfunc(vi, channel_list, buffer_size, frequencies, magnitude_response, phase_response, number_of_frequencies) + + def niRFSA_GetScalingCoefficients(self, vi, channel_list, array_size, coefficient_info, number_of_coefficient_sets): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetScalingCoefficients_cfunc is None: + self.niRFSA_GetScalingCoefficients_cfunc = self._get_library_function('niRFSA_GetScalingCoefficients') + self.niRFSA_GetScalingCoefficients_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(coefficient_info_type.struct_niRFSA_coefficientInfo), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetScalingCoefficients_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetScalingCoefficients_cfunc(vi, channel_list, array_size, coefficient_info, number_of_coefficient_sets) + + def niRFSA_GetSelfCalLastDateAndTime(self, vi, self_calibration_step, year, month, day, hour, minute): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetSelfCalLastDateAndTime_cfunc is None: + self.niRFSA_GetSelfCalLastDateAndTime_cfunc = self._get_library_function('niRFSA_GetSelfCalLastDateAndTime') + self.niRFSA_GetSelfCalLastDateAndTime_cfunc.argtypes = [ViSession, ViInt64, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSA_GetSelfCalLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetSelfCalLastDateAndTime_cfunc(vi, self_calibration_step, year, month, day, hour, minute) + + def niRFSA_GetSelfCalLastTemp(self, vi, self_calibration_step, temperature): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetSelfCalLastTemp_cfunc is None: + self.niRFSA_GetSelfCalLastTemp_cfunc = self._get_library_function('niRFSA_GetSelfCalLastTemp') + self.niRFSA_GetSelfCalLastTemp_cfunc.argtypes = [ViSession, ViInt64, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSA_GetSelfCalLastTemp_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetSelfCalLastTemp_cfunc(vi, self_calibration_step, temperature) + + def niRFSA_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 + with self._func_lock: + if self.niRFSA_GetTerminalName_cfunc is None: + self.niRFSA_GetTerminalName_cfunc = self._get_library_function('niRFSA_GetTerminalName') + self.niRFSA_GetTerminalName_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_GetTerminalName_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_GetTerminalName_cfunc(vi, signal, signal_identifier, buffer_size, terminal_name) + + def niRFSA_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_InitWithOptions_cfunc is None: + self.niRFSA_InitWithOptions_cfunc = self._get_library_function('niRFSA_InitWithOptions') + self.niRFSA_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niRFSA_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, new_vi) + + def niRFSA_Initiate(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_Initiate_cfunc is None: + self.niRFSA_Initiate_cfunc = self._get_library_function('niRFSA_Initiate') + self.niRFSA_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_Initiate_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_Initiate_cfunc(vi) + + def niRFSA_IsSelfCalValid(self, vi, self_cal_valid, valid_steps): # noqa: N802 + with self._func_lock: + if self.niRFSA_IsSelfCalValid_cfunc is None: + self.niRFSA_IsSelfCalValid_cfunc = self._get_library_function('niRFSA_IsSelfCalValid') + self.niRFSA_IsSelfCalValid_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean), ctypes.POINTER(ViInt64)] # noqa: F405 + self.niRFSA_IsSelfCalValid_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_IsSelfCalValid_cfunc(vi, self_cal_valid, valid_steps) + + def niRFSA_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 + with self._func_lock: + if self.niRFSA_LoadConfigurationsFromFile_cfunc is None: + self.niRFSA_LoadConfigurationsFromFile_cfunc = self._get_library_function('niRFSA_LoadConfigurationsFromFile') + self.niRFSA_LoadConfigurationsFromFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_LoadConfigurationsFromFile_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_LoadConfigurationsFromFile_cfunc(vi, channel_name, file_path) + + def niRFSA_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niRFSA_LockSession_cfunc is None: + self.niRFSA_LockSession_cfunc = self._get_library_function('niRFSA_LockSession') + self.niRFSA_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSA_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_LockSession_cfunc(vi, caller_has_lock) + + def niRFSA_PerformThermalCorrection(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_PerformThermalCorrection_cfunc is None: + self.niRFSA_PerformThermalCorrection_cfunc = self._get_library_function('niRFSA_PerformThermalCorrection') + self.niRFSA_PerformThermalCorrection_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_PerformThermalCorrection_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_PerformThermalCorrection_cfunc(vi) + + def niRFSA_ReadIQSingleRecordComplexF64(self, vi, channel_list, timeout, iq_data_array, data_array_size, wfm_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_ReadIQSingleRecordComplexF64_cfunc is None: + self.niRFSA_ReadIQSingleRecordComplexF64_cfunc = self._get_library_function('niRFSA_ReadIQSingleRecordComplexF64') + self.niRFSA_ReadIQSingleRecordComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(NIComplexNumber), ViInt64, ctypes.POINTER(waveform_info.struct_niRFSA_wfmInfo)] # noqa: F405 + self.niRFSA_ReadIQSingleRecordComplexF64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ReadIQSingleRecordComplexF64_cfunc(vi, channel_list, timeout, iq_data_array, data_array_size, wfm_info) + + def niRFSA_ReadPowerSpectrumF32(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_ReadPowerSpectrumF32_cfunc is None: + self.niRFSA_ReadPowerSpectrumF32_cfunc = self._get_library_function('niRFSA_ReadPowerSpectrumF32') + self.niRFSA_ReadPowerSpectrumF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal32), ViInt32, ctypes.POINTER(spectrum_info_type.struct_niRFSA_spectrumInfo)] # noqa: F405 + self.niRFSA_ReadPowerSpectrumF32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ReadPowerSpectrumF32_cfunc(vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info) + + def niRFSA_ReadPowerSpectrumF64(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 + with self._func_lock: + if self.niRFSA_ReadPowerSpectrumF64_cfunc is None: + self.niRFSA_ReadPowerSpectrumF64_cfunc = self._get_library_function('niRFSA_ReadPowerSpectrumF64') + self.niRFSA_ReadPowerSpectrumF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(spectrum_info_type.struct_niRFSA_spectrumInfo)] # noqa: F405 + self.niRFSA_ReadPowerSpectrumF64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ReadPowerSpectrumF64_cfunc(vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info) + + def niRFSA_ResetDevice(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_ResetDevice_cfunc is None: + self.niRFSA_ResetDevice_cfunc = self._get_library_function('niRFSA_ResetDevice') + self.niRFSA_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_ResetDevice_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ResetDevice_cfunc(vi) + + def niRFSA_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 + with self._func_lock: + if self.niRFSA_ResetWithOptions_cfunc is None: + self.niRFSA_ResetWithOptions_cfunc = self._get_library_function('niRFSA_ResetWithOptions') + self.niRFSA_ResetWithOptions_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405 + self.niRFSA_ResetWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_ResetWithOptions_cfunc(vi, steps_to_omit) + + def niRFSA_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 + with self._func_lock: + if self.niRFSA_SaveConfigurationsToFile_cfunc is None: + self.niRFSA_SaveConfigurationsToFile_cfunc = self._get_library_function('niRFSA_SaveConfigurationsToFile') + self.niRFSA_SaveConfigurationsToFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_SaveConfigurationsToFile_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SaveConfigurationsToFile_cfunc(vi, channel_name, file_path) + + def niRFSA_SelfCalibrateRange(self, vi, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 + with self._func_lock: + if self.niRFSA_SelfCalibrateRange_cfunc is None: + self.niRFSA_SelfCalibrateRange_cfunc = self._get_library_function('niRFSA_SelfCalibrateRange') + self.niRFSA_SelfCalibrateRange_cfunc.argtypes = [ViSession, ViInt64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niRFSA_SelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SelfCalibrateRange_cfunc(vi, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level) + + def niRFSA_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 + with self._func_lock: + if self.niRFSA_SendSoftwareEdgeTrigger_cfunc is None: + self.niRFSA_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niRFSA_SendSoftwareEdgeTrigger') + self.niRFSA_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_identifier) + + def niRFSA_SetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_SetAttributeViBoolean_cfunc is None: + self.niRFSA_SetAttributeViBoolean_cfunc = self._get_library_function('niRFSA_SetAttributeViBoolean') + self.niRFSA_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niRFSA_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_SetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_SetAttributeViInt32_cfunc is None: + self.niRFSA_SetAttributeViInt32_cfunc = self._get_library_function('niRFSA_SetAttributeViInt32') + self.niRFSA_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niRFSA_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_SetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_SetAttributeViInt64_cfunc is None: + self.niRFSA_SetAttributeViInt64_cfunc = self._get_library_function('niRFSA_SetAttributeViInt64') + self.niRFSA_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 + self.niRFSA_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SetAttributeViInt64_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_SetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_SetAttributeViReal64_cfunc is None: + self.niRFSA_SetAttributeViReal64_cfunc = self._get_library_function('niRFSA_SetAttributeViReal64') + self.niRFSA_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niRFSA_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_SetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_SetAttributeViSession_cfunc is None: + self.niRFSA_SetAttributeViSession_cfunc = self._get_library_function('niRFSA_SetAttributeViSession') + self.niRFSA_SetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViSession] # noqa: F405 + self.niRFSA_SetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SetAttributeViSession_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_SetAttributeViString(self, vi, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niRFSA_SetAttributeViString_cfunc is None: + self.niRFSA_SetAttributeViString_cfunc = self._get_library_function('niRFSA_SetAttributeViString') + self.niRFSA_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_SetAttributeViString_cfunc(vi, channel_name, attribute_id, value) + + def niRFSA_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niRFSA_UnlockSession_cfunc is None: + self.niRFSA_UnlockSession_cfunc = self._get_library_function('niRFSA_UnlockSession') + self.niRFSA_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSA_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_UnlockSession_cfunc(vi, caller_has_lock) + + def niRFSA_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_close_cfunc is None: + self.niRFSA_close_cfunc = self._get_library_function('niRFSA_close') + self.niRFSA_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_close_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_close_cfunc(vi) + + def niRFSA_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSA_reset_cfunc is None: + self.niRFSA_reset_cfunc = self._get_library_function('niRFSA_reset') + self.niRFSA_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSA_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_reset_cfunc(vi) + + def niRFSA_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niRFSA_self_test_cfunc is None: + self.niRFSA_self_test_cfunc = self._get_library_function('niRFSA_self_test') + self.niRFSA_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSA_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSA_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nirfsa/nirfsa/_library_interpreter.py b/generated/nirfsa/nirfsa/_library_interpreter.py new file mode 100644 index 0000000000..6918f15335 --- /dev/null +++ b/generated/nirfsa/nirfsa/_library_interpreter.py @@ -0,0 +1,773 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import nirfsa._complextype as _complextype +import nirfsa._library_singleton as _library_singleton +import nirfsa._visatype as _visatype +import nirfsa.enums as enums # noqa: F401 +import nirfsa.errors as errors + +import nirfsa.coefficient_info_type as coefficient_info_type # noqa: F401 + +import nirfsa.waveform_info as waveform_info # noqa: F401 + +import nirfsa.spectrum_info_type as spectrum_info_type # noqa: F401 + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + if library_type in (_complextype.NIComplexI16, _complextype.NIComplexNumberF32, _complextype.NIComplexNumber): + complex_dtype = numpy.dtype(library_type) + if value.ndim > 1: + # we create a flattened view of the multi-dimensional numpy array + restructured_array_view = value.ravel().view(complex_dtype) + else: + restructured_array_view = value.view(complex_dtype) + return restructured_array_view.ctypes.data_as(ctypes.POINTER(library_type)) + else: + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_Abort(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def change_external_calibration_password(self, old_password, new_password): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + old_password_ctype = ctypes.create_string_buffer(old_password.encode(self._encoding)) # case C020 + new_password_ctype = ctypes.create_string_buffer(new_password.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_ChangeExternalCalibrationPassword(vi_ctype, old_password_ctype, new_password_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def check_acquisition_status(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + is_done_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niRFSA_CheckAcquisitionStatus(vi_ctype, None if is_done_ctype is None else (ctypes.pointer(is_done_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(is_done_ctype.value) + + def clear_self_calibrate_range(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_ClearSelfCalibrateRange(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def commit(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_Commit(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + format_ctype = _visatype.ViInt32(format.value) # case S130 + error_code = self._library.niRFSA_ConfigureDeembeddingTableInterpolationLinear(vi_ctype, port_ctype, table_name_ctype, format_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_ConfigureDeembeddingTableInterpolationNearest(vi_ctype, port_ctype, table_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_ConfigureDeembeddingTableInterpolationSpline(vi_ctype, port_ctype, table_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_digital_edge_advance_trigger(self, source, edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + error_code = self._library.niRFSA_ConfigureDigitalEdgeAdvanceTrigger(vi_ctype, source_ctype, edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_digital_edge_ref_trigger(self, source, edge, pretrigger_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + pretrigger_samples_ctype = _visatype.ViInt64(pretrigger_samples) # case S150 + error_code = self._library.niRFSA_ConfigureDigitalEdgeRefTrigger(vi_ctype, source_ctype, edge_ctype, pretrigger_samples_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + error_code = self._library.niRFSA_ConfigureDigitalEdgeStartTrigger(vi_ctype, source_ctype, edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_iq_power_edge_ref_trigger(self, source, level, slope, pretrigger_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + level_ctype = _visatype.ViReal64(level) # case S150 + slope_ctype = _visatype.ViInt32(slope.value) # case S130 + pretrigger_samples_ctype = _visatype.ViInt64(pretrigger_samples) # case S150 + error_code = self._library.niRFSA_ConfigureIQPowerEdgeRefTrigger(vi_ctype, source_ctype, level_ctype, slope_ctype, pretrigger_samples_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_ref_clock(self, clock_source, ref_clock_rate): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + clock_source_ctype = ctypes.create_string_buffer(clock_source.value.encode(self._encoding)) # case C030 + ref_clock_rate_ctype = _visatype.ViReal64(ref_clock_rate) # case S150 + error_code = self._library.niRFSA_ConfigureRefClock(vi_ctype, clock_source_ctype, ref_clock_rate_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_software_edge_advance_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_software_edge_ref_trigger(self, pretrigger_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + pretrigger_samples_ctype = _visatype.ViInt64(pretrigger_samples) # case S150 + error_code = self._library.niRFSA_ConfigureSoftwareEdgeRefTrigger(vi_ctype, pretrigger_samples_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_software_edge_start_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_ConfigureSoftwareEdgeStartTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_spectrum_frequency_center_span(self, channel_list, center_frequency, span): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + center_frequency_ctype = _visatype.ViReal64(center_frequency) # case S150 + span_ctype = _visatype.ViReal64(span) # case S150 + error_code = self._library.niRFSA_ConfigureSpectrumFrequencyCenterSpan(vi_ctype, channel_list_ctype, center_frequency_ctype, span_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_spectrum_frequency_start_stop(self, channel_list, start_frequency, stop_frequency): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + start_frequency_ctype = _visatype.ViReal64(start_frequency) # case S150 + stop_frequency_ctype = _visatype.ViReal64(stop_frequency) # case S150 + error_code = self._library.niRFSA_ConfigureSpectrumFrequencyStartStop(vi_ctype, channel_list_ctype, start_frequency_ctype, stop_frequency_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + frequencies_ctype = _get_ctypes_pointer_for_buffer(value=frequencies) # case B510 + frequencies_size_ctype = _visatype.ViInt32(0 if frequencies is None else len(frequencies)) # case S160 + sparameter_table_ctype = _get_ctypes_pointer_for_buffer(value=sparameter_table, library_type=_complextype.NIComplexNumber) # case B510 + sparameter_table_size_ctype = _visatype.ViInt32(0 if sparameter_table is None else sparameter_table.size) # case S161 + number_of_ports_ctype = _visatype.ViInt32(number_of_ports) # case S150 + sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 + error_code = self._library.niRFSA_CreateDeembeddingSparameterTableArray(vi_ctype, port_ctype, table_name_ctype, frequencies_ctype, frequencies_size_ctype, sparameter_table_ctype, sparameter_table_size_ctype, number_of_ports_ctype, sparameter_orientation_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + s2p_file_path_ctype = ctypes.create_string_buffer(s2p_file_path.encode(self._encoding)) # case C020 + sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 + error_code = self._library.niRFSA_CreateDeembeddingSparameterTableS2PFile(vi_ctype, port_ctype, table_name_ctype, s2p_file_path_ctype, sparameter_orientation_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_all_deembedding_tables(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_DeleteAllDeembeddingTables(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_deembedding_table(self, port, table_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_DeleteDeembeddingTable(vi_ctype, port_ctype, table_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable_advance_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_DisableAdvanceTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable_ref_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_DisableRefTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable_start_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_DisableStartTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def enable_session_access(self, enable): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + enable_ctype = _visatype.ViBoolean(enable) # case S150 + error_code = self._library.niRFSA_EnableSessionAccess(vi_ctype, enable_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niRFSA_ErrorMessage(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def fetch_iq_multi_record_complex_f32(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 + samples_per_record = 0 if iq_data_arrays is None else (iq_data_arrays.shape[1] if hasattr(iq_data_arrays, 'shape') and len(iq_data_arrays.shape) > 1 else len(iq_data_arrays)) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + starting_record_ctype = _visatype.ViInt64(starting_record) # case S150 + number_of_records_ctype = _visatype.ViInt64(number_of_records) # case S150 + number_of_samples_ctype = _visatype.ViInt64(samples_per_record) # case S160 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_arrays_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_arrays, library_type=_complextype.NIComplexNumberF32) # case B510 + wfm_info_ctype = (waveform_info.struct_niRFSA_wfmInfo * number_of_records)() # case S220 + error_code = self._library.niRFSA_FetchIQMultiRecordComplexF32(vi_ctype, channel_list_ctype, starting_record_ctype, number_of_records_ctype, number_of_samples_ctype, timeout_ctype, iq_data_arrays_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(number_of_records)] + + def fetch_iq_multi_record_complex_f64(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 + samples_per_record = 0 if iq_data_arrays is None else (iq_data_arrays.shape[1] if hasattr(iq_data_arrays, 'shape') and len(iq_data_arrays.shape) > 1 else len(iq_data_arrays)) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + starting_record_ctype = _visatype.ViInt64(starting_record) # case S150 + number_of_records_ctype = _visatype.ViInt64(number_of_records) # case S150 + number_of_samples_ctype = _visatype.ViInt64(samples_per_record) # case S160 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_arrays_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_arrays, library_type=_complextype.NIComplexNumber) # case B510 + wfm_info_ctype = (waveform_info.struct_niRFSA_wfmInfo * number_of_records)() # case S220 + error_code = self._library.niRFSA_FetchIQMultiRecordComplexF64(vi_ctype, channel_list_ctype, starting_record_ctype, number_of_records_ctype, number_of_samples_ctype, timeout_ctype, iq_data_arrays_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(number_of_records)] + + def fetch_iq_multi_record_complex_i16(self, channel_list, starting_record, number_of_records, iq_data_arrays, timeout): # noqa: N802 + samples_per_record = 0 if iq_data_arrays is None else (iq_data_arrays.shape[1] if hasattr(iq_data_arrays, 'shape') and len(iq_data_arrays.shape) > 1 else len(iq_data_arrays)) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + starting_record_ctype = _visatype.ViInt64(starting_record) # case S150 + number_of_records_ctype = _visatype.ViInt64(number_of_records) # case S150 + number_of_samples_ctype = _visatype.ViInt64(samples_per_record // 2) # case S160 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_arrays_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_arrays, library_type=_complextype.NIComplexI16) # case B510 + wfm_info_ctype = (waveform_info.struct_niRFSA_wfmInfo * number_of_records)() # case S220 + error_code = self._library.niRFSA_FetchIQMultiRecordComplexI16(vi_ctype, channel_list_ctype, starting_record_ctype, number_of_records_ctype, number_of_samples_ctype, timeout_ctype, iq_data_arrays_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(number_of_records)] + + def fetch_iq_single_record_complex_f32(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + record_number_ctype = _visatype.ViInt64(record_number) # case S150 + number_of_samples_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array)) # case S160 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexNumberF32) # case B510 + wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 + error_code = self._library.niRFSA_FetchIQSingleRecordComplexF32(vi_ctype, channel_list_ctype, record_number_ctype, number_of_samples_ctype, timeout_ctype, iq_data_array_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_info.WaveformInfo(wfm_info_ctype) + + def fetch_iq_single_record_complex_f64(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + record_number_ctype = _visatype.ViInt64(record_number) # case S150 + number_of_samples_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array)) # case S160 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexNumber) # case B510 + wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 + error_code = self._library.niRFSA_FetchIQSingleRecordComplexF64(vi_ctype, channel_list_ctype, record_number_ctype, number_of_samples_ctype, timeout_ctype, iq_data_array_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_info.WaveformInfo(wfm_info_ctype) + + def fetch_iq_single_record_complex_i16(self, channel_list, record_number, iq_data_array, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + record_number_ctype = _visatype.ViInt64(record_number) # case S150 + number_of_samples_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array) // 2) # case S160 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexI16) # case B510 + wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 + error_code = self._library.niRFSA_FetchIQSingleRecordComplexI16(vi_ctype, channel_list_ctype, record_number_ctype, number_of_samples_ctype, timeout_ctype, iq_data_array_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_info.WaveformInfo(wfm_info_ctype) + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niRFSA_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_int64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niRFSA_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niRFSA_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(value_ctype.value) + + def get_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niRFSA_GetAttributeViSession(vi_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + buf_size_ctype = _visatype.ViInt32() # case S170 + value_ctype = None # case C050 + error_code = self._library.niRFSA_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buf_size_ctype = _visatype.ViInt32(error_code) # case S180 + value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 + error_code = self._library.niRFSA_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return value_ctype.value.decode(self._encoding) + + def get_deembedding_sparameters(self): + import numpy as np + number_of_ports = self.get_deembedding_table_number_of_ports() + sparameters_array_size = number_of_ports ** 2 + sparameters = np.full((number_of_ports, number_of_ports), 0 + 0j, dtype=np.complex128) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + sparameters_ctype = _get_ctypes_pointer_for_buffer(value=sparameters, library_type=_complextype.NIComplexNumber) # case B510 + sparameters_array_size_ctype = _visatype.ViInt32(sparameters_array_size) # case S150 + number_of_sparameters_ctype = _visatype.ViInt32() # case S220 + number_of_ports_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetDeembeddingSparameters(vi_ctype, sparameters_ctype, sparameters_array_size_ctype, None if number_of_sparameters_ctype is None else (ctypes.pointer(number_of_sparameters_ctype)), None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + sparameters = sparameters.reshape((int(number_of_ports_ctype.value), int(number_of_ports_ctype.value))) + return sparameters + + def get_deembedding_table_number_of_ports(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_ports_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetDeembeddingTableNumberOfPorts(vi_ctype, None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(number_of_ports_ctype.value) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 + error_description_ctype = None # case C050 + error_code = self._library.niRFSA_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 + error_code = self._library.niRFSA_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) + + def get_ext_cal_last_date_and_time(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetExtCalLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_ext_cal_recommended_interval(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + months_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetExtCalRecommendedInterval(vi_ctype, None if months_ctype is None else (ctypes.pointer(months_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(months_ctype.value) + + def get_fetch_backlog(self, channel_list, record_number): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + record_number_ctype = _visatype.ViInt64(record_number) # case S150 + backlog_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niRFSA_GetFetchBacklog(vi_ctype, channel_list_ctype, record_number_ctype, None if backlog_ctype is None else (ctypes.pointer(backlog_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(backlog_ctype.value) + + def get_frequency_response(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + frequencies_ctype = None # case B610 + magnitude_response_ctype = None # case B610 + phase_response_ctype = None # case B610 + number_of_frequencies_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetFrequencyResponse(vi_ctype, channel_list_ctype, buffer_size_ctype, frequencies_ctype, magnitude_response_ctype, phase_response_ctype, None if number_of_frequencies_ctype is None else (ctypes.pointer(number_of_frequencies_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(number_of_frequencies_ctype.value) # case S200 + frequencies_size = number_of_frequencies_ctype.value # case B620 + frequencies_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=frequencies_size) # case B620 + magnitude_response_size = number_of_frequencies_ctype.value # case B620 + magnitude_response_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=magnitude_response_size) # case B620 + phase_response_size = number_of_frequencies_ctype.value # case B620 + phase_response_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=phase_response_size) # case B620 + error_code = self._library.niRFSA_GetFrequencyResponse(vi_ctype, channel_list_ctype, buffer_size_ctype, frequencies_ctype, magnitude_response_ctype, phase_response_ctype, None if number_of_frequencies_ctype is None else (ctypes.pointer(number_of_frequencies_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(frequencies_ctype[i]) for i in range(buffer_size_ctype.value)], [float(magnitude_response_ctype[i]) for i in range(buffer_size_ctype.value)], [float(phase_response_ctype[i]) for i in range(buffer_size_ctype.value)] + + def get_scaling_coefficients(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + array_size_ctype = _visatype.ViInt32(0) # case S190 + coefficient_info_ctype = None # case B610 + number_of_coefficient_sets_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetScalingCoefficients(vi_ctype, channel_list_ctype, array_size_ctype, coefficient_info_ctype, None if number_of_coefficient_sets_ctype is None else (ctypes.pointer(number_of_coefficient_sets_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + array_size_ctype = _visatype.ViInt32(number_of_coefficient_sets_ctype.value) # case S200 + coefficient_info_size = number_of_coefficient_sets_ctype.value # case B620 + coefficient_info_ctype = _get_ctypes_pointer_for_buffer(library_type=coefficient_info_type.struct_niRFSA_coefficientInfo, size=coefficient_info_size) # case B620 + error_code = self._library.niRFSA_GetScalingCoefficients(vi_ctype, channel_list_ctype, array_size_ctype, coefficient_info_ctype, None if number_of_coefficient_sets_ctype is None else (ctypes.pointer(number_of_coefficient_sets_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [coefficient_info_type.CoefficientInfo(coefficient_info_ctype[i]) for i in range(array_size_ctype.value)] + + def get_self_cal_last_date_and_time(self, self_calibration_step): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_calibration_step_ctype = _visatype.ViInt64(self_calibration_step.value) # case S130 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSA_GetSelfCalLastDateAndTime(vi_ctype, self_calibration_step_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value) + + def get_self_calibration_temperature(self, self_calibration_step): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_calibration_step_ctype = _visatype.ViInt64(self_calibration_step.value) # case S130 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niRFSA_GetSelfCalLastTemp(vi_ctype, self_calibration_step_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_terminal_name(self, signal, signal_identifier): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + signal_ctype = _visatype.ViInt32(signal.value) # case S130 + signal_identifier_ctype = ctypes.create_string_buffer(signal_identifier.encode(self._encoding)) # case C020 + buffer_size_ctype = _visatype.ViInt32() # case S170 + terminal_name_ctype = None # case C050 + error_code = self._library.niRFSA_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + terminal_name_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niRFSA_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return terminal_name_ctype.value.decode(self._encoding) + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + id_query_ctype = _visatype.ViBoolean(id_query) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + new_vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niRFSA_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if new_vi_ctype is None else (ctypes.pointer(new_vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(new_vi_ctype.value) + + def initiate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_Initiate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def is_self_cal_valid(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_cal_valid_ctype = _visatype.ViBoolean() # case S220 + valid_steps_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niRFSA_IsSelfCalValid(vi_ctype, None if self_cal_valid_ctype is None else (ctypes.pointer(self_cal_valid_ctype)), None if valid_steps_ctype is None else (ctypes.pointer(valid_steps_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(self_cal_valid_ctype.value), enums.SelfCalSteps(valid_steps_ctype.value) + + def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_LoadConfigurationsFromFile(vi_ctype, channel_name_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_thermal_correction(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_PerformThermalCorrection(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def read_iq_single_record_complex_f64(self, channel_list, iq_data_array, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + iq_data_array_ctype = _get_ctypes_pointer_for_buffer(value=iq_data_array, library_type=_complextype.NIComplexNumber) # case B510 + data_array_size_ctype = _visatype.ViInt64(0 if iq_data_array is None else len(iq_data_array)) # case S120 + wfm_info_ctype = waveform_info.struct_niRFSA_wfmInfo() # case S220 + error_code = self._library.niRFSA_ReadIQSingleRecordComplexF64(vi_ctype, channel_list_ctype, timeout_ctype, iq_data_array_ctype, data_array_size_ctype, None if wfm_info_ctype is None else (ctypes.pointer(wfm_info_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_info.WaveformInfo(wfm_info_ctype) + + def read_power_spectrum_f32(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + power_spectrum_data_array_ctype = _get_ctypes_pointer_for_buffer(value=power_spectrum_data_array, library_type=_visatype.ViReal32) # case B550 + data_array_size_ctype = _visatype.ViInt32(len(power_spectrum_data_array)) # case S120 + spectrum_info_ctype = spectrum_info_type.struct_niRFSA_spectrumInfo() # case S220 + error_code = self._library.niRFSA_ReadPowerSpectrumF32(vi_ctype, channel_list_ctype, timeout_ctype, power_spectrum_data_array_ctype, data_array_size_ctype, None if spectrum_info_ctype is None else (ctypes.pointer(spectrum_info_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return spectrum_info_type.SpectrumInfo(spectrum_info_ctype) + + def read_power_spectrum_f64(self, channel_list, timeout, power_spectrum_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + power_spectrum_data_array_ctype = _get_ctypes_pointer_for_buffer(value=power_spectrum_data_array, library_type=_visatype.ViReal64) # case B550 + data_array_size_ctype = _visatype.ViInt32(len(power_spectrum_data_array)) # case S120 + spectrum_info_ctype = spectrum_info_type.struct_niRFSA_spectrumInfo() # case S220 + error_code = self._library.niRFSA_ReadPowerSpectrumF64(vi_ctype, channel_list_ctype, timeout_ctype, power_spectrum_data_array_ctype, data_array_size_ctype, None if spectrum_info_ctype is None else (ctypes.pointer(spectrum_info_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return spectrum_info_type.SpectrumInfo(spectrum_info_ctype) + + def reset_device(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_ResetDevice(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_options(self, steps_to_omit): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + steps_to_omit_ctype = _visatype.ViUInt64(steps_to_omit.value) # case S130 + error_code = self._library.niRFSA_ResetWithOptions(vi_ctype, steps_to_omit_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_SaveConfigurationsToFile(vi_ctype, channel_name_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_calibrate_range(self, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + steps_to_omit_ctype = _visatype.ViInt64(steps_to_omit.value) # case S130 + minimum_frequency_ctype = _visatype.ViReal64(minimum_frequency) # case S150 + maximum_frequency_ctype = _visatype.ViReal64(maximum_frequency) # case S150 + minimum_reference_level_ctype = _visatype.ViReal64(minimum_reference_level) # case S150 + maximum_reference_level_ctype = _visatype.ViReal64(maximum_reference_level) # case S150 + error_code = self._library.niRFSA_SelfCalibrateRange(vi_ctype, steps_to_omit_ctype, minimum_frequency_ctype, maximum_frequency_ctype, minimum_reference_level_ctype, maximum_reference_level_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 + trigger_identifier_ctype = ctypes.create_string_buffer(trigger_identifier.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_identifier_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViBoolean(value) # case S150 + error_code = self._library.niRFSA_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt32(value) # case S150 + error_code = self._library.niRFSA_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int64(self, channel_name, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt64(value) # case S150 + error_code = self._library.niRFSA_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViReal64(value) # case S150 + error_code = self._library.niRFSA_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_SetAttributeViSession(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 + error_code = self._library.niRFSA_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSA_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niRFSA_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nirfsa/nirfsa/_library_singleton.py b/generated/nirfsa/nirfsa/_library_singleton.py new file mode 100644 index 0000000000..e34ceeeff3 --- /dev/null +++ b/generated/nirfsa/nirfsa/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nirfsa._library as _library +import nirfsa.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nirfsa', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niRFSA.dll', 'type': 'windll'}, + '64bit': {'name': 'niRFSA_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nirfsa. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nirfsa/nirfsa/_visatype.py b/generated/nirfsa/nirfsa/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nirfsa/nirfsa/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nirfsa/nirfsa/coefficient_info_type.py b/generated/nirfsa/nirfsa/coefficient_info_type.py new file mode 100644 index 0000000000..2f4111c304 --- /dev/null +++ b/generated/nirfsa/nirfsa/coefficient_info_type.py @@ -0,0 +1,60 @@ +import ctypes +import nirfsa._visatype + + +# This class is an internal ctypes implementation detail that corresponds to +# niRFSA_coefficientInfo in the C API +class struct_niRFSA_coefficientInfo(ctypes.Structure): # noqa N801 + _pack_ = 8 + _fields_ = [ + ('offset', nirfsa._visatype.ViReal64), + ('gain', nirfsa._visatype.ViReal64), + ('reserved1', nirfsa._visatype.ViReal64), + ('reserved2', nirfsa._visatype.ViReal64), + ] + + def __init__(self, data=None, offset=0.0, gain=0.0, + reserved1=0.0, reserved2=0.0): + super(ctypes.Structure, self).__init__() + if data is not None: + self.offset = data.offset + self.gain = data.gain + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + else: + self.offset = offset + self.gain = gain + self.reserved1 = reserved1 + self.reserved2 = reserved2 + + +class CoefficientInfo: + """Python-friendly wrapper for niRFSA coefficient info.""" + + def __init__(self, data=None, offset=0.0, gain=0.0): + if data is not None: + self.offset = data.offset + self.gain = data.gain + else: + self.offset = offset + self.gain = gain + + def _create_copy(self, target_class): + try: + return target_class( + offset=self.offset, + gain=self.gain, + ) + except TypeError: + return target_class(data=self) + + def __repr__(self): + return "{}.{}(offset={}, gain={})".format( + self.__class__.__module__, + self.__class__.__qualname__, + self.offset, + self.gain, + ) + + def __str__(self): + return self.__repr__() diff --git a/generated/nirfsa/nirfsa/enums.py b/generated/nirfsa/nirfsa/enums.py new file mode 100644 index 0000000000..d16310aa5c --- /dev/null +++ b/generated/nirfsa/nirfsa/enums.py @@ -0,0 +1,1479 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum +from enum import IntFlag + + +class AcquisitionType(Enum): + IQ = 100 + r''' + Configures NI-RFSA for I/Q acquisitions. + ''' + SPECTRUM = 101 + r''' + Configures NI-RFSA for spectrum acquisitions. + ''' + + +class Action(Enum): + COMMIT = 1501 + r''' + The new calibration constants are stored in the EEPROM. + ''' + ABORT = 1500 + r''' + The old calibration constants are kept, and the new ones are discarded. + ''' + + +class AdvanceTriggerDigitalEdgeEdge(Enum): + RISING = 900 + r''' + The trigger asserts on the rising edge of the signal. + ''' + FALLING = 901 + r''' + The trigger asserts on the falling edge of the signal. + ''' + + +class AdvanceTriggerType(Enum): + NONE = 600 + r''' + No Advance Trigger is configured. + ''' + DIGITAL_EDGE = 601 + r''' + The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_advance_trigger_source property. + ''' + SOFTWARE_EDGE = 604 + r''' + The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_ADVANCE_TRIGGER as the **trigger** parameter. + ''' + + +class AllowOutOfSpecificationUserSettings(Enum): + DISABLED = 1900 + r''' + Disables out-of-specification user settings. + ''' + ENABLED = 1901 + r''' + Enables out-of-specification user settings. + ''' + + +class ArmReferenceTriggerType(Enum): + NONE = 600 + r''' + No Arm Reference Trigger is configured. + ''' + DIGITAL_EDGE = 601 + r''' + The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_arm_ref_trigger_source property. + ''' + SOFTWARE_EDGE = 604 + r''' + The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting SoftwareTriggerType.ARM_REF as the **trigger** parameter. + ''' + + +class CalToneMode(Enum): + DISABLED = 1900 + r''' + Disables the calibration tone for the associated signal path. + ''' + CAL_TONE_LOWBAND_RF = 2701 + r''' + Injects the calibration tone into the low band RF signal path. + ''' + CAL_TONE_HIGHBAND_RF = 2702 + r''' + Injects the calibration tone into the high band RF signal path. + ''' + CAL_TONE_HIGHBAND_IF = 2703 + r''' + Injects the calibration tone into the high band IF signal path. + ''' + CAL_TONE_LOWBAND_RF_WITHOUT_ALC = 2704 + r''' + Injects the calibration tone into the low band RF signal path, bypassing the ALC. + ''' + CAL_TONE_COMB_GENERATOR = 2705 + r''' + Injects the calibration tone into the high band RF signal path through the Comb Generator. + ''' + + +class CalibrateStep(Enum): + IF_ATTENUATION = 1600 + r''' + Initializes the IF Attenuation Calibration step. This step is not supported for the PXIe-5693. + ''' + IF_RESPONSE = 1601 + r''' + Initializes the IF Response Calibration step. This step is not supported for the PXIe-5603/5605 or PXIe-5693/5698. + ''' + IF_REF_LEVEL = 1602 + r''' + Initializes the Ref Level Calibration step. This step is not supported on the PXIe-5694. + ''' + LO_EXPORT = 1603 + r''' + Initializes the LO Export Calibration step. This step calibrates the output power of each LO to be within specification. This step is not supported on the PXIe-5601 or the PXIe-5693/5694/5698. + ''' + GAIN_REFERENCE = 1604 + r''' + Initializes the Gain Reference Calibration step. This step calibrates the calibration tone amplitude across supported calibration tone frequencies. This step is not supported on the PXIe-5601/5603/5605 or PXIe-5694. + ''' + + +class ChannelCoupling(Enum): + AC = 3001 + r''' + Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. + ''' + DC = 3002 + r''' + Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. + ''' + + +class ConditioningCalToneMode(Enum): + DISABLED = 1900 + r''' + Disables the calibration tone for the associated signal path. + ''' + CAL_TONE_LOWBAND_RF = 2701 + r''' + Injects the calibration tone into the low band RF signal path. + ''' + CAL_TONE_HIGHBAND_RF = 2702 + r''' + Injects the calibration tone into the high band RF signal path. + ''' + + +class DeembeddingType(Enum): + NONE = 3900 + r''' + De-embedding is not applied to the measurement. + ''' + SCALAR = 3901 + r''' + De-embeds the measurement using only the gain term. + ''' + VECTOR = 3902 + r''' + De-embeds the measurement using the gain term and the reflection term. + ''' + AMPLITUDE_FLATNESS = 3903 + r''' + De-embeds the measurement using wideband amplitude flatness correction. + ''' + + +class DeviceResponseType(Enum): + DOWNCONVERTER_IF = 2800 + r''' + Returns the IF response of the downconverter. + ''' + DOWNCONVERTER_RF = 2801 + r''' + Returns the RF response of the downconverter. This value is supported only for the PXIe-5603/5605/5665/5667/5693.. + ''' + DOWNCONVERTER_COMBINED = 2802 + r''' + Returns the combined RF and IF response of the downconverter. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5603/5605/5665/5667. + ''' + VSA_IF = 2803 + r''' + Returns the IF response of the entire NI-RFSA device. This value is supported only for the PXIe-5665/5667. + ''' + VSA_COMBINED = 2804 + r''' + Returns the combined IF and RF response of the entire NI-RFSA device. The combined response is in terms of IF frequency. This value is supported only for the PXIe-5665/5667. + ''' + + +class DigitizerDitherEnabled(Enum): + DISABLED = 1900 + r''' + Disables dither on the digitizer. + ''' + ENABLED = 1901 + r''' + Enables dither on the digitizer. + ''' + + +class DigitizerSampleClockExportedTerminal(Enum): + NONE = 'None' + r''' + The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. + ''' + CLK_OUT = 'ClkOut' + r''' + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + ''' + + +class DigitizerSampleClockTimebaseSource(Enum): + ONBOARD_CLOCK = 'OnboardClock' + r''' + The digitizer uses its onboard clock as the Sample Clock timebase. + ''' + CLK_IN = 'ClkIn' + r''' + The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. + ''' + LO_REF_CLK = 'LORefClk' + r''' + The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. + ''' + PXI_STAR = 'PXI_STAR' + r''' + The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. + ''' + DOWNCONVERTER_LO2_OUT = 'DownconverterLO2Out' + r''' + The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. + ''' + + +class DownconverterFrequencyOffsetMode(Enum): + AUTOMATIC = 1903 + r''' + NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. + ''' + ENABLED = 1901 + r''' + NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSA returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. + ''' + USER_DEFINED = 1904 + r''' + NI-RFSA uses the offset that you specified with the downconverter_frequency_offset or downconverter_center_frequency properties. + ''' + + +class DownconverterLoopBandwidth(Enum): + NARROW = 800 + r''' + Specifies that the downconverter module uses a narrow loop bandwidth. + ''' + MEDIUM = 801 + r''' + Specifies that the downconverter module uses a medium loop bandwidth. + ''' + WIDE = 802 + r''' + Specifies that the downconverter module uses a wide loop bandwidth. + ''' + + +class EnableAttrVals(Enum): + DISABLED = 1900 + r''' + The property is disabled. + ''' + ENABLED = 1901 + r''' + The property is enabled. + ''' + + +class DownconverterPreselectorEnabled(Enum): + DISABLED = 2600 + r''' + Disables the preselector. + ''' + ENABLED_WHEN_IN_SIGNAL_PATH = 2601 + r''' + The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the preselector_present property to determine if the downconverter has an preselector. + ''' + ENABLED = 2602 + r''' + Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH whenever possible avoid an error. + ''' + + +class EnableRfPreamp(Enum): + DISABLED = 2500 + r''' + Disables the RF preamplifier. + ''' + ENABLED_WHEN_IN_SIGNAL_PATH = 2501 + r''' + Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the rf_preamp_present property to determine whether the downconverter has a preamplifier. + ''' + ENABLED = 2502 + r''' + Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH value whenever possible to avoid an error. + ''' + AUTOMATIC = 2503 + r''' + Automatically enables the RF preamplifier based on the value of the reference_level property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. + ''' + + +class ExportOutputTerminal(Enum): + DO_NOT_EXPORT = '' + r''' + The signal is not exported. + ''' + CLK_OUT = 'ClkOut' + r''' + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + ''' + REF_OUT = 'RefOut' + r''' + Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. + ''' + REF_OUT2 = 'RefOut2' + r''' + Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. + ''' + PFI0 = 'PFI0' + r''' + The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. + ''' + PFI1 = 'PFI1' + r''' + The trigger is received on PFI 1. + ''' + PXI_TRIG0 = 'PXI_Trig0' + r''' + The trigger is received on PXI trigger line 0. + ''' + PXI_TRIG1 = 'PXI_Trig1' + r''' + The trigger is received on PXI trigger line 1. + ''' + PXI_TRIG2 = 'PXI_Trig2' + r''' + The trigger is received on PXI trigger line 2. + ''' + PXI_TRIG3 = 'PXI_Trig3' + r''' + The trigger is received on PXI trigger line 3. + ''' + PXI_TRIG4 = 'PXI_Trig4' + r''' + The trigger is received on PXI trigger line 4. + ''' + PXI_TRIG5 = 'PXI_Trig5' + r''' + The trigger is received on PXI trigger line 5. + ''' + PXI_TRIG6 = 'PXI_Trig6' + r''' + The trigger is received on PXI trigger line 6. + ''' + PXI_TRIG7 = 'PXI_Trig7' + r''' + The trigger is received on PXI trigger line 7. + ''' + PXI_STAR = 'PXI_STAR' + r''' + The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. + ''' + PXIE_DSTARC = 'PXIe_DStarC' + r''' + The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. + ''' + DIO_PFI0 = 'DIO/PFI0' + r''' + The trigger is received on PFI0 from the front panel DIO terminal. + ''' + DIO_PFI1 = 'DIO/PFI1' + r''' + The trigger is received on PFI1 from the front panel DIO terminal. + ''' + DIO_PFI2 = 'DIO/PFI2' + r''' + The trigger is received on PFI2 from the front panel DIO terminal. + ''' + DIO_PFI3 = 'DIO/PFI3' + r''' + The trigger is received on PFI3 from the front panel DIO terminal. + ''' + DIO_PFI4 = 'DIO/PFI4' + r''' + The trigger is received on PFI4 from the front panel DIO terminal. + ''' + DIO_PFI5 = 'DIO/PFI5' + r''' + The trigger is received on PFI5 from the front panel DIO terminal. + ''' + DIO_PFI6 = 'DIO/PFI6' + r''' + The trigger is received on PFI6 from the front panel DIO terminal. + ''' + DIO_PFI7 = 'DIO/PFI7' + r''' + The trigger is received on PFI7 from the front panel DIO terminal. + ''' + + +class FetchRelativeTo(Enum): + MOST_RECENT_SAMPLE = 700 + r''' + Fetching occurs relative to the most recently acquired data. The value of the fetch_offset property must be negative. + ''' + FIRST_SAMPLE = 701 + r''' + Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. + ''' + REFERENCE_TRIGGER = 702 + r''' + Fetching occurs relative to the Reference Trigger. This value behaves like FetchRelativeTo.FIRST_SAMPLE if no Reference Trigger is configured. + ''' + FIRST_PRETRIGGER_SAMPLE = 703 + r''' + Fetching occurs relative to the first pretrigger sample acquired. + ''' + CURRENT_READ_POSITION = 704 + r''' + Fetching occurs after the last fetched sample. + ''' + + +class FrequencySettlingUnits(Enum): + PPM = 2000 + r''' + Specifies the frequency settling time in parts per million (PPM). + ''' + SECONDS_AFTER_LOCK = 2001 + r''' + Specifies the frequency settling in time after lock (seconds). + ''' + SECONDS_AFTER_IO = 2002 + r''' + Specifies the frequency settling time after I/O (seconds). + ''' + + +class IFattenTableSel(Enum): + STANDARD = 2900 + r''' + Specifies that the standard IF attenuation table is used for the external calibration. + ''' + ACPR = 2901 + r''' + Specifies that the adjacent channel power ratio (ACPR) IF attenuation table is used for the external calibration. You can only select this value if you set the CAL_IF_FILTER_SELECTION property to IFfilterSelection.EXT_CAL_IF_FILTER_PATH_1 or IFfilterSelection.EXT_CAL_IF_FILTER_PATH_2. + ''' + + +class IFfilter(Enum): + _187_5_MHZ_WIDE = 1400 + r''' + The device uses the 187.5 MHz wide bandwidth filter. + ''' + _187_5_MHZ_NARROW = 1401 + r''' + The device uses the 187.5 MHz narrow bandwidth filter. + ''' + _53_MHZ = 1402 + r''' + The device uses the 53 MHz filter. + ''' + BYPASS = 1403 + r''' + The device bypasses the IF filter. + ''' + + +class IFfilterSelection(Enum): + EXT_CAL_IF_FILTER_PATH_1 = 2100 + r''' + Specifies that the 5 MHz filter path is used during calibration. + ''' + EXT_CAL_IF_FILTER_PATH_2 = 2101 + r''' + Specifies that the 300 kHz filter path is used during calibration. Not supported for the PXIe-5694. + ''' + EXT_CAL_IF_FILTER_PATH_3 = 2102 + r''' + None of the IF filter paths are used during calibration. + ''' + EXT_CAL_IF_FILTER_PATH_4 = 2103 + r''' + Specifies that the 20 MHz filter path is used during calibration. + ''' + EXT_CAL_IF_FILTER_PATH_5 = 2104 + r''' + Specifies that the 1.4 MHz filter path is used during calibration. + ''' + EXT_CAL_IF_FILTER_PATH_6 = 2105 + r''' + Specifies that the 400 kHz filter path is used during calibration. + ''' + EXT_CAL_IF_FILTER_PATH_7 = 2106 + r''' + Specifies that the 110 kHz filter path is used during calibration. + ''' + EXT_CAL_IF_FILTER_PATH_8 = 2107 + r''' + Specifies that the 30 kHz filter path is used during calibration. + ''' + + +class IqInPortTerminalConfiguration(Enum): + DIFFERENTIAL = 2100 + r''' + Sets the terminal configuration to differential. + ''' + SINGLE_ENDED = 2101 + r''' + Sets the terminal configuration to single-ended. + ''' + + +class IfConditioningDownConversionEnabled(Enum): + DISABLED = 1900 + r''' + Disables IF conditioning downconversion. + ''' + ENABLED = 1901 + r''' + Enables IF conditioning downconversion. + ''' + + +class InputIsolationEnabled(Enum): + DISABLED = 1900 + r''' + Disables input isolation. + ''' + ENABLED = 1901 + r''' + Enables input isolation. + ''' + + +class InputPort(Enum): + RF_IN = 2000 + r''' + Enables the RF IN port. + ''' + IQ_IN = 2001 + r''' + Enables the I/Q IN port. + ''' + CAL_IN = 2002 + r''' + Enables the CAL IN port. + ''' + I_ONLY = 2003 + r''' + Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. + ''' + + +class LinearInterpolationFormat(Enum): + MAGNITUDE_AND_PHASE = 4001 + r''' + Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. + ''' + MAGNITUDE_DB_AND_PHASE = 4002 + r''' + Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. + ''' + REAL_AND_IMAGINARY = 4000 + r''' + Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. + ''' + + +class Lo2ExportEnabled(Enum): + DISABLED = 1900 + r''' + Disables LO2 export. + ''' + ENABLED = 1901 + r''' + Enables LO2 export. + ''' + + +class LoInjection(Enum): + HIGH = 1300 + r''' + Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. + ''' + LOW = 1301 + r''' + Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. + ''' + + +class LoNumber(Enum): + LO2 = 2201 + r''' + Selects LO2, which is the 4 GHz signal path. + ''' + LO3 = 2202 + r''' + Selects LO3, which is the 800 MHz signal path. + ''' + LO1 = 2200 + r''' + Selects LO1, which is the 3.2 GHz to 8.3 GHz variable signal path. + ''' + + +class LoOutExportConfigureFromRfsg(Enum): + DISABLED = 1900 + r''' + Do not allow NI-RFSG to control the NI-RFSA local oscillator export. + ''' + ENABLED = 1901 + r''' + Allow NI-RFSG to control the NI-RFSA local oscillator export. + ''' + + +class LoPathSel(Enum): + EXT_CAL_LO_PATH_1 = 2300 + r''' + Specifies that the LO path 1 is used. + ''' + EXT_CAL_LO_PATH_2 = 2301 + r''' + Specifies that the LO path 2 is used. + ''' + EXT_CAL_LO_PATH_3 = 2302 + r''' + Specifies that the LO path 3 is used. + ''' + EXT_CAL_LO_PATH_4 = 2303 + r''' + Specifies that the LO path 4 is used. + ''' + EXT_CAL_LO_PATH_5 = 2304 + r''' + Specifies that the LO path 5 is used. + ''' + + +class LoPllFractionalModeEnabled(Enum): + DISABLED = 1900 + r''' + Disables fractional mode for the LO PLL. + ''' + ENABLED = 1901 + r''' + Enables fractional mode for the LO PLL. + ''' + + +class LoSource(Enum): + ONBOARD = 'Onboard' + r''' + Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. + ''' + LO_IN = 'LO_In' + r''' + Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. + ''' + LO_SOURCE_SECONDARY = 'Secondary' + r''' + Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). + ''' + LO_SOURCE_SG_SA_SHARED = 'SG_SA_Shared' + r''' + Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. + ''' + + +class LoYigMainCoilDrive(Enum): + NORMAL = 2400 + r''' + Adjusts the YIG main coil on the LO for an underdamped response. + ''' + FAST = 2401 + r''' + Adjusts the YIG main coil on the LO for an overdamped response. + ''' + + +class LoadConfigurationResetOptions(Enum): + NONE = 0 + r''' + NI-RFSA resets all configurations. + ''' + DEEMBEDDING_TABLES = 2 + r''' + NI-RFSA skips resetting the de-embedding tables. + ''' + + +class NoiseSourcePowerEnabled(Enum): + DISABLED = 1900 + r''' + Disables the noise source power. + ''' + ENABLED = 1901 + r''' + Enables the noise source power. + ''' + + +class NotchFilterEnabled(Enum): + DISABLED = 3400 + r''' + Disables the notch filter. + ''' + ENABLED_WHEN_IN_SIGNAL_PATH = 3401 + r''' + The notch filter is automatically enabled when it is in the signal path and automatically disabled when it is not in the signal path. + ''' + ENABLED = 3402 + r''' + Enables the notch filter. If the notch filter is not in the signal path or if the notch filter is not supported on the device, NI-RFSA returns an error. Select NotchFilterEnabled.ENABLED_WHEN_IN_SIGNAL_PATH whenever possible to avoid an error. + ''' + + +class OutputTerm(Enum): + DO_NOT_EXPORT = '' + r''' + The signal is not exported. + ''' + CLK_OUT = 'ClkOut' + r''' + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + ''' + REF_OUT = 'RefOut' + r''' + Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. + ''' + REF_OUT2 = 'RefOut2' + r''' + Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. + ''' + PFI0 = 'PFI0' + r''' + The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. + ''' + PFI1 = 'PFI1' + r''' + The trigger is received on PFI 1. + ''' + PXI_TRIG0 = 'PXI_Trig0' + r''' + The trigger is received on PXI trigger line 0. + ''' + PXI_TRIG1 = 'PXI_Trig1' + r''' + The trigger is received on PXI trigger line 1. + ''' + PXI_TRIG2 = 'PXI_Trig2' + r''' + The trigger is received on PXI trigger line 2. + ''' + PXI_TRIG3 = 'PXI_Trig3' + r''' + The trigger is received on PXI trigger line 3. + ''' + PXI_TRIG4 = 'PXI_Trig4' + r''' + The trigger is received on PXI trigger line 4. + ''' + PXI_TRIG5 = 'PXI_Trig5' + r''' + The trigger is received on PXI trigger line 5. + ''' + PXI_TRIG6 = 'PXI_Trig6' + r''' + The trigger is received on PXI trigger line 6. + ''' + PXI_TRIG7 = 'PXI_Trig7' + r''' + The trigger is received on PXI trigger line 7. + ''' + PXI_STAR = 'PXI_STAR' + r''' + The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. + ''' + PXIE_DSTARB = 'PXIe_DStarB' + r''' + The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. + ''' + DIO_PFI0 = 'DIO/PFI0' + r''' + The trigger is received on PFI0 from the front panel DIO terminal. + ''' + DIO_PFI1 = 'DIO/PFI1' + r''' + The trigger is received on PFI1 from the front panel DIO terminal. + ''' + DIO_PFI2 = 'DIO/PFI2' + r''' + The trigger is received on PFI2 from the front panel DIO terminal. + ''' + DIO_PFI3 = 'DIO/PFI3' + r''' + The trigger is received on PFI3 from the front panel DIO terminal. + ''' + DIO_PFI4 = 'DIO/PFI4' + r''' + The trigger is received on PFI4 from the front panel DIO terminal. + ''' + DIO_PFI5 = 'DIO/PFI5' + r''' + The trigger is received on PFI5 from the front panel DIO terminal. + ''' + DIO_PFI6 = 'DIO/PFI6' + r''' + The trigger is received on PFI6 from the front panel DIO terminal. + ''' + DIO_PFI7 = 'DIO/PFI7' + r''' + The trigger is received on PFI7 from the front panel DIO terminal. + ''' + TIMER_EVENT = 'TimerEvent' + r''' + The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. + ''' + + +class OverflowErrorReporting(Enum): + WARNING = 1301 + r''' + Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. + ''' + DISABLED = 1302 + r''' + Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. + ''' + + +class PowerSpectrumUnits(Enum): + DBM = 200 + r''' + Units are dB with reference to 1 milliwatt. + ''' + VOLTS_SQUARED = 201 + r''' + Units are in volts squared. + ''' + DBMV = 202 + r''' + Units are dB with reference to 1 millivolt. + ''' + DBUV = 203 + r''' + Units are dB with reference to 1 microvolt. + ''' + VOLTS = 204 + r''' + Units are in volts. + ''' + WATTS = 205 + r''' + Units are in watts. + ''' + + +class PxiChassisClk10Source(Enum): + NONE = 'None' + r''' + The device does not drive the PXI 10 MHz backplane Reference Clock. + ''' + ONBOARD_CLOCK = 'OnboardClock' + r''' + The device drives the PXI 10 MHz backplane Reference Clock with the PXI-5600 onboard clock. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. + ''' + REF_IN = 'RefIn' + r''' + The device drives the PXI 10 MHz backplane Reference Clock with the reference source attached to the PXI-5600 FREQ REF IN connector. You must connect the 10 MHz OUT connector to the PXI 10 MHz I/O connector on the PXI-5600 front panel to use this option. + ''' + + +class ReferenceClockExportedRate(Enum): + _10MHZ = 10000000 + r''' + Exports a 10 MHz Reference Clock. + ''' + _100MHZ = 100000000 + r''' + Exports a 100 MHz Reference Clock. + ''' + _1GHZ = 1000000000.0 + r''' + Exports a 1 GHz Reference Clock. + ''' + + +class ReferenceClockExportedTerminal(Enum): + NONE = 'None' + r''' + The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. + ''' + REF_OUT = 'RefOut' + r''' + Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. + ''' + REF_OUT2 = 'RefOut2' + r''' + Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. + ''' + CLK_OUT = 'ClkOut' + r''' + Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. + ''' + IF_COND_REF_OUT = 'IFCondRefOut' + r''' + Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. + ''' + + +class ReferenceClockSource(Enum): + NONE = 'None' + r''' + No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. + ''' + ONBOARD_CLOCK = 'OnboardClock' + r''' + **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. + ''' + REF_IN = 'RefIn' + r''' + **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. + ''' + PXI_CLK = 'PXI_Clk' + r''' + **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. + ''' + CLK_IN = 'ClkIn' + r''' + **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the ref_clock_rate property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the ref_clock_rate property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. + ''' + PXI_CLK_MASTER = 'PXI_ClkMaster' + r''' + **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. + ''' + REF_IN_2 = 'RefIn2' + r''' + **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. + ''' + + +class ReferenceLevelDataType(Enum): + MECHANICAL_ATTENUATOR_DISABLED = 1801 + r''' + The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. + ''' + DEFAULT = 1800 + r''' + The data is the default configuration data. + ''' + + +class ReferenceTriggerDigitalEdgeEdge(Enum): + RISING = 900 + r''' + The trigger asserts on the rising edge of the signal. + ''' + FALLING = 901 + r''' + The trigger asserts on the falling edge of the signal + ''' + + +class ReferenceTriggerIqPowerEdgeSlope(Enum): + RISING = 1000 + r''' + The trigger asserts when the signal power is rising. + ''' + FALLING = 1001 + r''' + The trigger asserts when the signal power is falling. + ''' + + +class ReferenceTriggerOspDelayEnabled(Enum): + DISABLED = 1900 + r''' + Disables OSP delay for the Reference Trigger. + ''' + ENABLED = 1901 + r''' + Enables OSP delay for the Reference Trigger. + ''' + + +class ReferenceTriggerType(Enum): + NONE = 600 + r''' + No Reference Trigger is configured. + ''' + DIGITAL_EDGE = 601 + r''' + The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_ref_trigger_source property. + ''' + IQ_POWER_EDGE = 603 + r''' + The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the iq_power_edge_ref_trigger_slope property. + ''' + SOFTWARE_EDGE = 604 + r''' + The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_REF_TRIGGER as the **trigger** parameter. + ''' + IQ_ANALOG_EDGE = 605 + r''' + The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE property. This value is valid only for PXIe-5644/5645 devices. + ''' + + +class ResetWithOptionsStepsToOmit(IntFlag): + DEEMBEDDING_TABLES = 2 + r''' + Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. + ''' + NONE = 0 + r''' + No step is omitted during reset. + ''' + ROUTES = 1 + r''' + Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. + ''' + + +class RfLbSigCondPathSel(Enum): + EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_1 = 3700 + r''' + yet to be defined + ''' + EXT_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_2 = 3701 + r''' + yet to be defined + ''' + + +class RfOutLoExport(Enum): + DISABLED = 1900 + r''' + The LO signal is not exported from the RF OUT LO OUT terminal. + ''' + ENABLED = 1901 + r''' + The LO signal is exported from the RF OUT LO OUT terminal. + ''' + UNSPECIFIED = 1902 + r''' + The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. + ''' + + +class RfPathSelection(Enum): + EXT_CAL_RF_BAND_1 = 1700 + r''' + The data is the default configuration data. + ''' + EXT_CAL_RF_BAND_2 = 1701 + r''' + The data is the configuration data when the mechanical relay is disabled. Use this option to save uncalibrated measurements for more advanced operations. + ''' + EXT_CAL_RF_BAND_3 = 1702 + r''' + The data is the default configuration data. + ''' + EXT_CAL_RF_BAND_4 = 1703 + r''' + The data is the default configuration data. + ''' + + +class SelfCalSteps(IntFlag): + DIGITIZER_SELF_CAL = 8 + r''' + Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. + ''' + PRESELECTOR_ALIGNMENT = 1 + r''' + Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. + ''' + OMIT_NONE = 0 + r''' + No calibration steps are omitted. + ''' + GAIN_REFERENCE = 2 + r''' + Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. + ''' + IF_FLATNESS = 4 + r''' + Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. + ''' + LO_SELF_CAL = 16 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + AMPLITUDE_ACCURACY = 32 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + RESIDUAL_LO_POWER = 64 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + IMAGE_SUPPRESSION = 128 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + SYNTHESIZER_ALIGNMENT = 256 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + DC_OFFSET = 512 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + + +class SelfCalibrateRangeStepsToOmit(IntFlag): + DIGITIZER_SELF_CAL = 8 + r''' + Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. + ''' + PRESELECTOR_ALIGNMENT = 1 + r''' + Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. + ''' + OMIT_NONE = 0 + r''' + No calibration steps are omitted. + ''' + GAIN_REFERENCE = 2 + r''' + Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. + ''' + IF_FLATNESS = 4 + r''' + Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. + ''' + LO_SELF_CAL = 16 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + AMPLITUDE_ACCURACY = 32 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + RESIDUAL_LO_POWER = 64 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + IMAGE_SUPPRESSION = 128 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + SYNTHESIZER_ALIGNMENT = 256 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + DC_OFFSET = 512 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + + +class SelfCalibrationStep(Enum): + PRESELECTOR_ALIGNMENT = 1 + r''' + Calls for preselector alignment. + ''' + GAIN_REFERENCE = 2 + r''' + Measures the changes in gain since the last external calibration was run. + ''' + IF_FLATNESS = 4 + r''' + Measures the IF response of the entire system for each of the supported IF filters + ''' + DIGITIZER_SELF_CAL = 8 + r''' + Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. + ''' + LO_SELF_CAL = 16 + r''' + Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. + ''' + AMPLITUDE_ACCURACY = 32 + r''' + Selects the Amplitude Accuracy self-calibration step. + ''' + RESIDUAL_LO_POWER = 64 + r''' + Selects the Residual LO Power self-calibration step. + ''' + IMAGE_SUPPRESSION = 128 + r''' + Selects the Image Suppression self-calibration step. + ''' + SYNTHESIZER_ALIGNMENT = 256 + r''' + Selects the Synthesizer Alignment self-calibration step. + ''' + DC_OFFSET = 512 + r''' + Selects the DC Offset self-calibration step. + ''' + + +class Signal(Enum): + START_TRIGGER = 1100 + r''' + NI-RFSA routes a Start Trigger. + ''' + REF_TRIGGER = 702 + r''' + NI-RFSA routes a Reference + ''' + ADVANCE_TRIGGER = 1102 + r''' + NI-RFSA routes an Advance + ''' + READY_FOR_START_EVENT = 1200 + r''' + NI-RFSA routes a Ready for Start Event. + ''' + READY_FOR_REF_EVENT = 1201 + r''' + NI-RFSA routes a Ready for Reference Event.. + ''' + END_OF_RECORD_EVENT = 1203 + r''' + NI-RFSA routes a End of Record Event. + ''' + DONE_EVENT = 1204 + r''' + NI-RFSA routes a Done Event. + ''' + REF_CLOCK = 1205 + r''' + NI-RFSA routes a Reference Clock. + ''' + USER = 1206 + r''' + NI-RFSA routes a User Defined Signal. + ''' + + +class SignalConditioningEnabled(Enum): + ENABLED = 3600 + r''' + Enables signal conditioning. + ''' + BYPASSED = 3601 + r''' + Bypasses all signal conditioning. + ''' + + +class SmoothSpectrumEnabled(Enum): + DISABLED = 1900 + r''' + Disables spectrum smoothing. + ''' + ENABLED = 1901 + r''' + Enables spectrum smoothing. + ''' + + +class SoftwareTriggerType(Enum): + START = 1100 + r''' + NI-RFSA sends a Start software trigger. + ''' + REF = 702 + r''' + NI-RFSA sends a Reference software trigger. + ''' + ADVANCE = 1102 + r''' + NI-RFSA sends an Advance software trigger. + ''' + ARM_REF = 1103 + r''' + NI-RFSA sends an Arm Reference software trigger. This trigger is not valid for the PXIe-5668. + ''' + + +class SparameterOrientation(Enum): + PORT1_TOWARDS_DUT = 3800 + r''' + Port 1 of the S2P is oriented towards the DUT port. + ''' + PORT2_TOWARDS_DUT = 3801 + r''' + Port 2 of the S2P is oriented towards the DUT port. + ''' + + +class SpectrumAveragingMode(Enum): + NO = 400 + r''' + Configures NI-RFSA to perform no averaging on acquisitions. + ''' + RMS = 401 + r''' + Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. + ''' + VECTOR = 402 + r''' + Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. + ''' + PEAK_HOLD = 403 + r''' + Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. + ''' + MIN_HOLD = 404 + r''' + Configures NI-RFSA to perform no averaging on acquisitions. + ''' + SCALAR = 405 + r''' + Configures NI-RFSA to perform no averaging on acquisitions. + ''' + LOG = 406 + r''' + Configures NI-RFSA to perform no averaging on acquisitions. + ''' + + +class SpectrumFftWindowType(Enum): + UNIFORM = 500 + r''' + No window is applied. + ''' + HANNING = 501 + r''' + The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. + ''' + HAMMING = 502 + r''' + A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. + ''' + BLACKMAN_HARRIS = 503 + r''' + A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) + ''' + EXACT_BLACKMAN = 504 + r''' + An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) + ''' + BLACKMAN = 505 + r''' + A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) + ''' + FLAT_TOP = 506 + r''' + The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) + ''' + _4_TERM_BLACKMAN_HARRIS = 507 + r''' + A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) + ''' + _7_TERM_BLACKMAN_HARRIS = 508 + r''' + A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) + ''' + LOW_SIDE_LOBE = 509 + r''' + The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window + ''' + GAUSSIAN = 510 + r''' + A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window + ''' + KAISER_BESSEL = 511 + r''' + A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind + ''' + + +class SpectrumResolutionBandwidthType(Enum): + THREE_DECIBELS = 300 + r''' + Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the fft_window_type property. + ''' + SIX_DECIBELS = 301 + r''' + Defines the RBW in terms of the 6 dB bandwidth of the window specified by the fft_window_type property. + ''' + BIN_WIDTH = 302 + r''' + Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. + ''' + EQUIVALENT_NOISE_BANDWIDTH = 303 + r''' + Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the fft_window_type property. + ''' + + +class StartTriggerDigitalEdgeEdge(Enum): + RISING = 900 + r''' + The trigger asserts on the rising edge of the signal.PXI-5661, PXIe-5663/5663E/5665/5668 + ''' + FALLING = 901 + r''' + The trigger asserts on the falling edge of the signal | PXIe-5668 + ''' + + +class StartTriggerType(Enum): + NONE = 600 + r''' + No Start Trigger is configured. + ''' + DIGITAL_EDGE = 601 + r''' + The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property. + ''' + SOFTWARE_EDGE = 604 + r''' + The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_START_TRIGGER as the value of the **trigger** parameter. + ''' + + +class StepsToOmit(Enum): + DEEMBEDDING_TABLES = 2 + r''' + Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. + ''' + NONE = 0 + r''' + No step is omitted during reset. + ''' + ROUTES = 1 + r''' + Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. + ''' + + +class SyncRefTriggerDelayEnabled(Enum): + DISABLED = 1900 + r''' + Disables synchronization reference trigger delay. + ''' + ENABLED = 1901 + r''' + Enables synchronization reference trigger delay. + ''' + + +class UserSourcePulseWidthUnits(Enum): + SECONDS = 6200 + r''' + Units are seconds. + ''' + CLOCK_PERIODS = 6201 + r''' + Units are clock periods. + ''' diff --git a/generated/nirfsa/nirfsa/errors.py b/generated/nirfsa/nirfsa/errors.py new file mode 100644 index 0000000000..a559fa37f3 --- /dev/null +++ b/generated/nirfsa/nirfsa/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-RFSA''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-RFSA driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-RFSA driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-RFSA runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-RFSA driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-RFSA runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-RFSA driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-RFSA runtime returned an unexpected value. This can occur if it is too new for the nirfsa Python module. Upgrade the nirfsa Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nirfsa.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nirfsa/nirfsa/grpc_session_options.py b/generated/nirfsa/nirfsa/grpc_session_options.py new file mode 100644 index 0000000000..eba784c914 --- /dev/null +++ b/generated/nirfsa/nirfsa/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nirfsa_grpc.NiRFSA' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nirfsa/nirfsa/nidevice_pb2.py b/generated/nirfsa/nirfsa/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nirfsa/nirfsa/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsa/nirfsa/nidevice_pb2_grpc.py b/generated/nirfsa/nirfsa/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nirfsa/nirfsa/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nirfsa/nirfsa/nirfsa_pb2.py b/generated/nirfsa/nirfsa/nirfsa_pb2.py new file mode 100644 index 0000000000..ace5489550 --- /dev/null +++ b/generated/nirfsa/nirfsa/nirfsa_pb2.py @@ -0,0 +1,492 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nirfsa.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import nidevice_pb2 as nidevice__pb2 +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnirfsa.proto\x12\x0bnirfsa_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\x91\x01\n\x0cWaveformInfo\x12\x1a\n\x12\x61\x62solute_initial_x\x18\x01 \x01(\x01\x12\x1a\n\x12relative_initial_x\x18\x02 \x01(\x01\x12\x13\n\x0bx_increment\x18\x03 \x01(\x01\x12\x16\n\x0e\x61\x63tual_samples\x18\x04 \x01(\x03\x12\x0e\n\x06offset\x18\x05 \x01(\x01\x12\x0c\n\x04gain\x18\x06 \x01(\x01\"/\n\x0f\x43oefficientInfo\x12\x0e\n\x06offset\x18\x01 \x01(\x01\x12\x0c\n\x04gain\x18\x02 \x01(\x01\"h\n\x0cSpectrumInfo\x12\x19\n\x11initial_frequency\x18\x01 \x01(\x01\x12\x1b\n\x13\x66requency_increment\x18\x02 \x01(\x01\x12 \n\x18number_of_spectral_lines\x18\x03 \x01(\x11\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"C\n\x1d\x43heckAcquisitionStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"A\n\x1e\x43heckAcquisitionStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07is_done\x18\x02 \x01(\x08\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1e\x43learSelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43learSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb8\x01\n\x1f\x43onfigureAcquisitionTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x38\n\x10\x61\x63quisition_type\x18\x02 \x01(\x0e\x32\x1c.nirfsa_grpc.AcquisitionTypeH\x00\x12\x1e\n\x14\x61\x63quisition_type_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15\x61\x63quisition_type_enum\"2\n ConfigureAcquisitionTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xda\x01\n3ConfigureDeembeddingTableInterpolationLinearRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x38\n\x06\x66ormat\x18\x04 \x01(\x0e\x32&.nirfsa_grpc.LinearInterpolationFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x42\r\n\x0b\x66ormat_enum\"F\n4ConfigureDeembeddingTableInterpolationLinearResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"|\n4ConfigureDeembeddingTableInterpolationNearestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"G\n5ConfigureDeembeddingTableInterpolationNearestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"{\n3ConfigureDeembeddingTableInterpolationSplineRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"F\n4ConfigureDeembeddingTableInterpolationSplineResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xff\x01\n)ConfigureDigitalEdgeAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\rsource_mapped\x18\x02 \x01(\x0e\x32%.nirfsa_grpc.DigitalEdgeTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12(\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x18.nirfsa_grpc.DigitalEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\"<\n*ConfigureDigitalEdgeAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x02\n%ConfigureDigitalEdgeRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\rsource_mapped\x18\x02 \x01(\x0e\x32%.nirfsa_grpc.DigitalEdgeTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12(\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x18.nirfsa_grpc.DigitalEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x12\x1a\n\x12pretrigger_samples\x18\x06 \x01(\x03\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\"8\n&ConfigureDigitalEdgeRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfd\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\rsource_mapped\x18\x02 \x01(\x0e\x32%.nirfsa_grpc.DigitalEdgeTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12(\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x18.nirfsa_grpc.DigitalEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"y\n\"ConfigureIQCarrierFrequencyRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x19\n\x11\x63\x61rrier_frequency\x18\x03 \x01(\x01\"5\n#ConfigureIQCarrierFrequencyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc4\x01\n%ConfigureIQPowerEdgeRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05level\x18\x02 \x01(\x01\x12)\n\x05slope\x18\x03 \x01(\x0e\x32\x18.nirfsa_grpc.AnalogSlopeH\x00\x12\x13\n\tslope_raw\x18\x04 \x01(\x11H\x00\x12\x1a\n\x12pretrigger_samples\x18\x05 \x01(\x03\x42\x0c\n\nslope_enum\"8\n&ConfigureIQPowerEdgeRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"c\n\x16\x43onfigureIQRateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07iq_rate\x18\x03 \x01(\x01\")\n\x17\x43onfigureIQRateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9b\x01\n\x1f\x43onfigureNumberOfRecordsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12#\n\x1bnumber_of_records_is_finite\x18\x03 \x01(\x08\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\"2\n ConfigureNumberOfRecordsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9c\x01\n\x1f\x43onfigureNumberOfSamplesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12#\n\x1bnumber_of_samples_is_finite\x18\x03 \x01(\x08\x12\x1a\n\x12samples_per_record\x18\x04 \x01(\x03\"2\n ConfigureNumberOfSamplesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc5\x01\n\x1f\x43onfigurePXIChassisClk10Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x45\n\x17pxi_clk10_source_mapped\x18\x02 \x01(\x0e\x32\".nirfsa_grpc.PxiChassisClk10SourceH\x00\x12\x1e\n\x14pxi_clk10_source_raw\x18\x03 \x01(\tH\x00\x42\x17\n\x15pxi_clk10_source_enum\"2\n ConfigurePXIChassisClk10Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\x18\x43onfigureRefClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12:\n\x13\x63lock_source_mapped\x18\x02 \x01(\x0e\x32\x1b.nirfsa_grpc.RefClockSourceH\x00\x12\x1a\n\x10\x63lock_source_raw\x18\x03 \x01(\tH\x00\x12\x16\n\x0eref_clock_rate\x18\x04 \x01(\x01\x42\x13\n\x11\x63lock_source_enum\"+\n\x19\x43onfigureRefClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n\x1e\x43onfigureReferenceLevelRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0freference_level\x18\x03 \x01(\x01\"1\n\x1f\x43onfigureReferenceLevelResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"}\n#ConfigureResolutionBandwidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x1c\n\x14resolution_bandwidth\x18\x03 \x01(\x01\"6\n$ConfigureResolutionBandwidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*ConfigureSoftwareEdgeAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n+ConfigureSoftwareEdgeAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"h\n&ConfigureSoftwareEdgeRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12pretrigger_samples\x18\x02 \x01(\x03\"9\n\'ConfigureSoftwareEdgeRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n(ConfigureSoftwareEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n)ConfigureSoftwareEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8f\x01\n+ConfigureSpectrumFrequencyCenterSpanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x18\n\x10\x63\x65nter_frequency\x18\x03 \x01(\x01\x12\x0c\n\x04span\x18\x04 \x01(\x01\">\n,ConfigureSpectrumFrequencyCenterSpanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x01\n*ConfigureSpectrumFrequencyStartStopRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstart_frequency\x18\x03 \x01(\x01\x12\x16\n\x0estop_frequency\x18\x04 \x01(\x01\"=\n+ConfigureSpectrumFrequencyStartStopResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xad\x01\n\x1e\x43reateConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\x12\x38\n\x12list_attribute_ids\x18\x03 \x03(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x1a\n\x12set_as_active_list\x18\x04 \x01(\x08\"1\n\x1f\x43reateConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n\"CreateConfigurationListStepRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12set_as_active_step\x18\x02 \x01(\x08\"5\n#CreateConfigurationListStepResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x02\n,CreateDeembeddingSparameterTableArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x13\n\x0b\x66requencies\x18\x04 \x03(\x01\x12\x38\n\x10sparameter_table\x18\x05 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x17\n\x0fnumber_of_ports\x18\x06 \x01(\x11\x12\x44\n\x16sparameter_orientation\x18\x07 \x01(\x0e\x32\".nirfsa_grpc.SparameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x08 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"?\n-CreateDeembeddingSparameterTableArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x98\x02\n.CreateDeembeddingSparameterTableS2PFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x15\n\rs2p_file_path\x18\x04 \x01(\t\x12\x44\n\x16sparameter_orientation\x18\x05 \x01(\x0e\x32\".nirfsa_grpc.SparameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x06 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"A\n/CreateDeembeddingSparameterTableS2PFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"G\n!DeleteAllDeembeddingTablesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"4\n\"DeleteAllDeembeddingTablesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1e\x44\x65leteConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\"1\n\x1f\x44\x65leteConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x1d\x44\x65leteDeembeddingTableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"0\n\x1e\x44\x65leteDeembeddingTableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1c\x44isableAdvanceTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1d\x44isableAdvanceTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18\x44isableRefTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19\x44isableRefTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x1a\x45nableSessionAccessRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06\x65nable\x18\x02 \x01(\x08\"-\n\x1b\x45nableSessionAccessResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstatus_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"\x96\x02\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06signal\x18\x02 \x01(\x0e\x32\x13.nirfsa_grpc.SignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12=\n\x16output_terminal_mapped\x18\x05 \x01(\x0e\x32\x1b.nirfsa_grpc.ExportTerminalH\x01\x12\x1d\n\x13output_terminal_raw\x18\x06 \x01(\tH\x01\x42\r\n\x0bsignal_enumB\x16\n\x14output_terminal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbf\x01\n#FetchIQMultiRecordComplexF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstarting_record\x18\x03 \x01(\x03\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x05 \x01(\x03\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"\x94\x01\n$FetchIQMultiRecordComplexF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.nidevice_grpc.NIComplexNumberF32\x12+\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xbf\x01\n#FetchIQMultiRecordComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstarting_record\x18\x03 \x01(\x03\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x05 \x01(\x03\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"\x91\x01\n$FetchIQMultiRecordComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12,\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12+\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xbf\x01\n#FetchIQMultiRecordComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0fstarting_record\x18\x03 \x01(\x03\x12\x19\n\x11number_of_records\x18\x04 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x05 \x01(\x03\x12\x0f\n\x07timeout\x18\x06 \x01(\x01\"\x8e\x01\n$FetchIQMultiRecordComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\x12+\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xa3\x01\n$FetchIQSingleRecordComplexF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x04 \x01(\x03\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x95\x01\n%FetchIQSingleRecordComplexF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.nidevice_grpc.NIComplexNumberF32\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xa3\x01\n$FetchIQSingleRecordComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x04 \x01(\x03\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x92\x01\n%FetchIQSingleRecordComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12,\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\xa3\x01\n$FetchIQSingleRecordComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\x12\x19\n\x11number_of_samples\x18\x04 \x01(\x03\x12\x0f\n\x07timeout\x18\x05 \x01(\x01\"\x8f\x01\n%FetchIQSingleRecordComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12)\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"B\n\x1cGetCalUserDefinedInfoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n\x1dGetCalUserDefinedInfoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04info\x18\x02 \x01(\t\"I\n#GetCalUserDefinedInfoMaxSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"I\n$GetCalUserDefinedInfoMaxSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tinfo_size\x18\x02 \x01(\x11\"F\n GetDeembeddingSparametersRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa0\x01\n!GetDeembeddingSparametersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x33\n\x0bsparameters\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x1d\n\x15number_of_sparameters\x18\x03 \x01(\x11\x12\x17\n\x0fnumber_of_ports\x18\x04 \x01(\x11\"\xbd\x01\n\x18GetDeviceResponseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\rresponse_type\x18\x03 \x01(\x0e\x32\x1b.nirfsa_grpc.DeviceResponseH\x00\x12\x1b\n\x11response_type_raw\x18\x04 \x01(\x11H\x00\x42\x14\n\x12response_type_enum\"\x93\x01\n\x19GetDeviceResponseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x1a\n\x12magnitude_response\x18\x03 \x03(\x01\x12\x16\n\x0ephase_response\x18\x04 \x03(\x01\x12\x1d\n\x15number_of_frequencies\x18\x05 \x01(\x11\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"E\n\x1fGetExtCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"z\n GetExtCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\">\n\x18GetExtCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x19GetExtCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"I\n#GetExtCalRecommendedIntervalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"F\n$GetExtCalRecommendedIntervalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06months\x18\x02 \x01(\x11\"i\n\x16GetFetchBacklogRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x15\n\rrecord_number\x18\x03 \x01(\x03\":\n\x17GetFetchBacklogResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07\x62\x61\x63klog\x18\x02 \x01(\x03\"W\n\x1bGetFrequencyResponseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x96\x01\n\x1cGetFrequencyResponseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x1a\n\x12magnitude_response\x18\x03 \x03(\x01\x12\x16\n\x0ephase_response\x18\x04 \x03(\x01\x12\x1d\n\x15number_of_frequencies\x18\x05 \x01(\x11\"_\n#GetNormalizationCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x92\x01\n$GetNormalizationCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1c.nirfsa_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"[\n\x1fGetNumberOfSpectralLinesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"T\n GetNumberOfSpectralLinesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12 \n\x18number_of_spectral_lines\x18\x02 \x01(\x11\"^\n\x13GetRelayNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05index\x18\x03 \x01(\x11\"I\n\x14GetRelayNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"Z\n\x1eGetRelayOperationsCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"`\n\x1fGetRelayOperationsCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10operations_count\x18\x02 \x03(\x11\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"Y\n\x1dGetScalingCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x8c\x01\n\x1eGetScalingCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1c.nirfsa_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"e\n GetSelfCalLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15self_calibration_step\x18\x02 \x01(\x03\"{\n!GetSelfCalLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\"^\n\x19GetSelfCalLastTempRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15self_calibration_step\x18\x02 \x01(\x03\":\n\x1aGetSelfCalLastTempResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04temp\x18\x02 \x01(\x01\"B\n\x1cGetSpectralInfoForSMTRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x1dGetSpectralInfoForSMTResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x35\n\rspectrum_info\x18\x02 \x01(\x0b\x32\x1e.nidevice_grpc.SmtSpectrumInfo\"]\n\x1eGetStreamEndpointHandleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fstream_endpoint\x18\x02 \x01(\t\"H\n\x1fGetStreamEndpointHandleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwriter_handle\x18\x02 \x01(\r\"\xb8\x01\n\x16GetTerminalNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06signal\x18\x02 \x01(\x0e\x32\x13.nirfsa_grpc.SignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x05 \x01(\x11\x42\r\n\x0bsignal_enum\"@\n\x17GetTerminalNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rterminal_name\x18\x02 \x01(\t\"L\n\x12GetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\"M\n\x13GetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x18\n\x10\x61\x63tual_data_size\x18\x03 \x01(\x11\"\xaa\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\r\n\x05reset\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xcc\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\r\n\x05reset\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\";\n\x15IsSelfCalValidRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x95\x01\n\x16IsSelfCalValidResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0eself_cal_valid\x18\x02 \x01(\x08\x12:\n\x11valid_steps_array\x18\x03 \x03(\x0e\x32\x1f.nirfsa_grpc.SelfCalibrateSteps\x12\x17\n\x0fvalid_steps_raw\x18\x04 \x01(\x03\"p\n!LoadConfigurationsFromFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"4\n\"LoadConfigurationsFromFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1fPerformThermalCorrectionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n PerformThermalCorrectionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x89\x01\n#ReadIQSingleRecordComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x17\n\x0f\x64\x61ta_array_size\x18\x04 \x01(\x03\"\x91\x01\n$ReadIQSingleRecordComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12,\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12+\n\x08wfm_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.WaveformInfo\"\x81\x01\n\x1bReadPowerSpectrumF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x17\n\x0f\x64\x61ta_array_size\x18\x04 \x01(\x11\"}\n\x1cReadPowerSpectrumF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13power_spectrum_data\x18\x02 \x03(\x02\x12\x30\n\rspectrum_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.SpectrumInfo\"\x81\x01\n\x1bReadPowerSpectrumF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x17\n\x0f\x64\x61ta_array_size\x18\x04 \x01(\x11\"}\n\x1cReadPowerSpectrumF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13power_spectrum_data\x18\x02 \x03(\x01\x12\x30\n\rspectrum_info\x18\x03 \x01(\x0b\x32\x19.nirfsa_grpc.SpectrumInfo\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x17ResetWithOptionsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x41\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32(.nirfsa_grpc.ResetWithOptionsStepsToOmitH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x04H\x00\x42\x14\n\x12steps_to_omit_enum\"*\n\x18ResetWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"N\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\ndriver_rev\x18\x02 \x01(\t\x12\x11\n\tinstr_rev\x18\x03 \x01(\t\"n\n\x1fSaveConfigurationsToFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"2\n SaveConfigurationsToFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa7\x01\n\x14SelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x38\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32\x1f.nirfsa_grpc.SelfCalibrateStepsH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x03H\x00\x42\x14\n\x12steps_to_omit_enum\"\'\n\x15SelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x94\x02\n\x19SelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x38\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32\x1f.nirfsa_grpc.SelfCalibrateStepsH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x03H\x00\x12\x15\n\rmin_frequency\x18\x04 \x01(\x01\x12\x15\n\rmax_frequency\x18\x05 \x01(\x01\x12\x1b\n\x13min_reference_level\x18\x06 \x01(\x01\x12\x1b\n\x13max_reference_level\x18\x07 \x01(\x01\x42\x14\n\x12steps_to_omit_enum\",\n\x1aSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"M\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btest_result\x18\x02 \x01(\x11\x12\x14\n\x0ctest_message\x18\x03 \x01(\t\"\xaf\x01\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12&\n\x07trigger\x18\x02 \x01(\x0e\x32\x13.nirfsa_grpc.SignalH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x1a\n\x12trigger_identifier\x18\x04 \x01(\tB\x0e\n\x0ctrigger_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9b\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x38\n\x05value\x18\x04 \x01(\x0e\x32\'.nirfsa_grpc.NiRFSAInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9e\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x01\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsa_grpc.NiRFSAAttribute\x12\x46\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32..nirfsa_grpc.NiRFSAStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n\x1cSetCalUserDefinedInfoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04info\x18\x02 \x01(\t\"/\n\x1dSetCalUserDefinedInfoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"a\n\x12SetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"3\n\x13SetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c*\xfe\x63\n\x0fNiRFSAAttribute\x12 \n\x1cNIRFSA_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\"\n\x1cNIRFSA_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12.\n(NIRFSA_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1c\n\x16NIRFSA_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\x1f\n\x19NIRFSA_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12\'\n!NIRFSA_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12#\n\x1dNIRFSA_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12(\n\"NIRFSA_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12$\n\x1eNIRFSA_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12-\n\'NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12-\n\'NIRFSA_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12#\n\x1dNIRFSA_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12\x32\n,NIRFSA_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12)\n#NIRFSA_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x33\n-NIRFSA_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12.\n(NIRFSA_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\'\n!NIRFSA_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12-\n\'NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x32\n,NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12?\n9NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12?\n9NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12/\n)NIRFSA_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12\'\n!NIRFSA_ATTRIBUTE_ACQUISITION_TYPE\x10\xb1\x98\x46\x12\'\n!NIRFSA_ATTRIBUTE_CENTER_FREQUENCY\x10\xb2\x98\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_SPECTRUM_SPAN\x10\xb3\x98\x46\x12&\n NIRFSA_ATTRIBUTE_REFERENCE_LEVEL\x10\xb4\x98\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_ATTENUATION\x10\xb5\x98\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_MIXER_LEVEL\x10\xb6\x98\x46\x12\x1e\n\x18NIRFSA_ATTRIBUTE_IQ_RATE\x10\xb7\x98\x46\x12\x32\n,NIRFSA_ATTRIBUTE_NUMBER_OF_SAMPLES_IS_FINITE\x10\xb8\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_NUMBER_OF_SAMPLES\x10\xb9\x98\x46\x12\x32\n,NIRFSA_ATTRIBUTE_NUMBER_OF_RECORDS_IS_FINITE\x10\xba\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_NUMBER_OF_RECORDS\x10\xbb\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_POWER_SPECTRUM_UNITS\x10\xbc\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_RESOLUTION_BANDWIDTH\x10\xbd\x98\x46\x12\x30\n*NIRFSA_ATTRIBUTE_RESOLUTION_BANDWIDTH_TYPE\x10\xbe\x98\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SPECTRUM_NUMBER_OF_AVERAGES\x10\xbf\x98\x46\x12.\n(NIRFSA_ATTRIBUTE_SPECTRUM_AVERAGING_MODE\x10\xc0\x98\x46\x12&\n NIRFSA_ATTRIBUTE_FFT_WINDOW_TYPE\x10\xc1\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_NUMBER_OF_SPECTRAL_LINES\x10\xc2\x98\x46\x12\'\n!NIRFSA_ATTRIBUTE_REF_CLOCK_SOURCE\x10\xc3\x98\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_REF_CLOCK_RATE\x10\xc4\x98\x46\x12=\n7NIRFSA_ATTRIBUTE_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE\x10\xc5\x98\x46\x12;\n5NIRFSA_ATTRIBUTE_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_RATE\x10\xc6\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_PXI_CHASSIS_CLK10_SOURCE\x10\xc7\x98\x46\x12)\n#NIRFSA_ATTRIBUTE_START_TRIGGER_TYPE\x10\xc8\x98\x46\x12\x38\n2NIRFSA_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_SOURCE\x10\xc9\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_EDGE\x10\xca\x98\x46\x12=\n7NIRFSA_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xcb\x98\x46\x12\'\n!NIRFSA_ATTRIBUTE_REF_TRIGGER_TYPE\x10\xcc\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DIGITAL_EDGE_REF_TRIGGER_SOURCE\x10\xcd\x98\x46\x12\x34\n.NIRFSA_ATTRIBUTE_DIGITAL_EDGE_REF_TRIGGER_EDGE\x10\xce\x98\x46\x12;\n5NIRFSA_ATTRIBUTE_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL\x10\xd0\x98\x46\x12\x33\n-NIRFSA_ATTRIBUTE_START_TO_REF_TRIGGER_HOLDOFF\x10\xd1\x98\x46\x12\x31\n+NIRFSA_ATTRIBUTE_REF_TO_REF_TRIGGER_HOLDOFF\x10\xd2\x98\x46\x12\x35\n/NIRFSA_ATTRIBUTE_REF_TRIGGER_PRETRIGGER_SAMPLES\x10\xd3\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_ADVANCE_TRIGGER_TYPE\x10\xd4\x98\x46\x12:\n4NIRFSA_ATTRIBUTE_DIGITAL_EDGE_ADVANCE_TRIGGER_SOURCE\x10\xd5\x98\x46\x12?\n9NIRFSA_ATTRIBUTE_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL\x10\xd6\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_ARM_REF_TRIGGER_TYPE\x10\xd7\x98\x46\x12:\n4NIRFSA_ATTRIBUTE_DIGITAL_EDGE_ARM_REF_TRIGGER_SOURCE\x10\xd8\x98\x46\x12\x45\n?NIRFSA_ATTRIBUTE_EXPORTED_READY_FOR_START_EVENT_OUTPUT_TERMINAL\x10\xd9\x98\x46\x12G\nANIRFSA_ATTRIBUTE_EXPORTED_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL\x10\xda\x98\x46\x12\x43\n=NIRFSA_ATTRIBUTE_EXPORTED_READY_FOR_REF_EVENT_OUTPUT_TERMINAL\x10\xdb\x98\x46\x12\x43\n=NIRFSA_ATTRIBUTE_EXPORTED_END_OF_RECORD_EVENT_OUTPUT_TERMINAL\x10\xdc\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_FETCH_RELATIVE_TO\x10\xdd\x98\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_FETCH_OFFSET\x10\xde\x98\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_RECORDS_DONE\x10\xdf\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DIGITAL_IF_EQUALIZATION_ENABLED\x10\xe0\x98\x46\x12&\n NIRFSA_ATTRIBUTE_FFT_WINDOW_SIZE\x10\xe1\x98\x46\x12\x1f\n\x19NIRFSA_ATTRIBUTE_FFT_SIZE\x10\xe2\x98\x46\x12)\n#NIRFSA_ATTRIBUTE_DEVICE_TEMPERATURE\x10\xe3\x98\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_SERIAL_NUMBER\x10\xe5\x98\x46\x12:\n4NIRFSA_ATTRIBUTE_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL\x10\xe6\x98\x46\x12\x37\n1NIRFSA_ATTRIBUTE_IQ_POWER_EDGE_REF_TRIGGER_SOURCE\x10\xe7\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_IQ_POWER_EDGE_REF_TRIGGER_LEVEL\x10\xe8\x98\x46\x12\x36\n0NIRFSA_ATTRIBUTE_IQ_POWER_EDGE_REF_TRIGGER_SLOPE\x10\xe9\x98\x46\x12\x35\n/NIRFSA_ATTRIBUTE_REF_TRIGGER_MINIMUM_QUIET_TIME\x10\xea\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_IQ_CARRIER_FREQUENCY\x10\xeb\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_REF_TRIGGER_DELAY\x10\xec\x98\x46\x12\x30\n*NIRFSA_ATTRIBUTE_TEMPERATURE_READ_INTERVAL\x10\xed\x98\x46\x12)\n#NIRFSA_ATTRIBUTE_DOWNCONVERTER_GAIN\x10\xf1\x98\x46\x12\x33\n-NIRFSA_ATTRIBUTE_DOWNCONVERTER_LOOP_BANDWIDTH\x10\xf3\x98\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_LO_FREQUENCY\x10\xf4\x98\x46\x12(\n\"NIRFSA_ATTRIBUTE_LO_INJECTION_SIDE\x10\xf5\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_DIGITIZER_VERTICAL_RANGE\x10\xf6\x98\x46\x12\x33\n-NIRFSA_ATTRIBUTE_ENABLE_FRACTIONAL_RESAMPLING\x10\xf7\x98\x46\x12\x39\n3NIRFSA_ATTRIBUTE_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL\x10\xf8\x98\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_IF_ATTENUATION\x10\xfa\x98\x46\x12 \n\x1aNIRFSA_ATTRIBUTE_IF_FILTER\x10\xfb\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_RF_ATTENUATION_INDEX\x10\xfc\x98\x46\x12+\n%NIRFSA_ATTRIBUTE_RF_ATTENUATION_TABLE\x10\xfd\x98\x46\x12&\n NIRFSA_ATTRIBUTE_IF1_ATTEN_VALUE\x10\xfe\x98\x46\x12&\n NIRFSA_ATTRIBUTE_IF2_ATTEN_VALUE\x10\xff\x98\x46\x12/\n)NIRFSA_ATTRIBUTE_DIGITIZER_DITHER_ENABLED\x10\x80\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_MECHANICAL_ATTENUATOR_ENABLED\x10\x81\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_DOWNCONVERTER_CENTER_FREQUENCY\x10\x82\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_CAL_RF_PATH_SELECTION\x10\x83\x99\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_MEMORY_SIZE\x10\x85\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_IF_OUTPUT_FREQUENCY\x10\x86\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_FREQUENCY_SETTLING_UNITS\x10\x87\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_FREQUENCY_SETTLING\x10\x88\x99\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_LO_TEMPERATURE\x10\x89\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_DIGITIZER_TEMPERATURE\x10\x8a\x99\x46\x12&\n NIRFSA_ATTRIBUTE_MODULE_REVISION\x10\x8b\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST\x10\x8c\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST_STEP\x10\x8d\x99\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_EXTERNAL_GAIN\x10\x8e\x99\x46\x12=\n7NIRFSA_ATTRIBUTE_CONFIGURATION_LIST_STEP_TRIGGER_SOURCE\x10\x8f\x99\x46\x12+\n%NIRFSA_ATTRIBUTE_TIMER_EVENT_INTERVAL\x10\x90\x99\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_P2P_ENABLED\x10\x91\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_P2P_FIFO_ENDPOINT_COUNT\x10\x92\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_P2P_SAMPLES_TRANSFERRED\x10\x93\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_P2P_SAMPLES_AVAILABLE_IN_ENDPOINT\x10\x94\x99\x46\x12=\n7NIRFSA_ATTRIBUTE_P2P_MOST_SAMPLES_AVAILABLE_IN_ENDPOINT\x10\x95\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\x96\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_P2P_ENDPOINT_OVERFLOW\x10\x97\x99\x46\x12\x36\n0NIRFSA_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\x98\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\x99\x99\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_PHASE_OFFSET\x10\x9a\x99\x46\x12\x31\n+NIRFSA_ATTRIBUTE_P2P_ONBOARD_MEMORY_ENABLED\x10\x9b\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_CAL_IF_ATTENUATION_INDEX\x10\x9d\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CAL_RF_ELECTRONIC_ATTENUATION_INDEX\x10\x9e\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CAL_RF_MECHANICAL_ATTENUATION_INDEX\x10\x9f\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_CAL_IF_FILTER_SELECTION\x10\xa0\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_CAL_LO_PATH_SELECTION\x10\xa1\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_CAL_LO1_ATTENUATION\x10\xa2\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_CAL_LO2_ATTENUATION\x10\xa3\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_CAL_LO3_ATTENUATION\x10\xa4\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_READY_FOR_START_EVENT_TERMINAL_NAME\x10\xa5\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME\x10\xa6\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_READY_FOR_REF_EVENT_TERMINAL_NAME\x10\xa7\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_END_OF_RECORD_EVENT_TERMINAL_NAME\x10\xa8\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_DONE_EVENT_TERMINAL_NAME\x10\xa9\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_START_TRIGGER_TERMINAL_NAME\x10\xaa\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_REF_TRIGGER_TERMINAL_NAME\x10\xab\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_ADVANCE_TRIGGER_TERMINAL_NAME\x10\xac\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_DEVICE_INSTANTANEOUS_BANDWIDTH\x10\xad\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CONFIGURATION_LIST_STEP_IN_PROGRESS\x10\xae\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_MIXER_LEVEL_OFFSET\x10\xaf\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_MECHANICAL_ATTENUATION\x10\xb0\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_RF_PREAMP_ENABLED\x10\xb1\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_IF_OUTPUT_POWER_LEVEL\x10\xb2\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_IF_OUTPUT_POWER_LEVEL_OFFSET\x10\xb3\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_DOWNCONVERTER_PRESELECTOR_ENABLED\x10\xb4\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_LO_EXPORT_ENABLED\x10\xb6\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_LO_YIG_MAIN_COIL_DRIVE\x10\xb7\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_PRESELECTOR_PRESENT\x10\xb8\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_RF_PREAMP_PRESENT\x10\xb9\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_DOWNCONVERTER_CAL_TONE_MODE\x10\xbb\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_DOWNCONVERTER_CAL_TONE_FREQUENCY\x10\xbc\x99\x46\x12\x39\n3NIRFSA_ATTRIBUTE_CAL_IF_ATTENUATION_TABLE_SELECTION\x10\xbd\x99\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_MINIMUM_ACPR\x10\xbe\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SPECTRUM_OSP_SAMPLING_RATIO\x10\xc0\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_THROUGH_FILTER\x10\xc2\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_300_KHZ_FILTER\x10\xc3\x99\x46\x12:\n4NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_5_MHZ_FILTER\x10\xc4\x99\x46\x12\'\n!NIRFSA_ATTRIBUTE_CHANNEL_COUPLING\x10\xc5\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_OSP_DATA_SCALING_FACTOR\x10\xc7\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_ALLOW_MORE_RECORDS_THAN_MEMORY\x10\xca\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_RF_ATTENUATION_STEP_SIZE\x10\xcb\x99\x46\x12(\n\"NIRFSA_ATTRIBUTE_STEP_GAIN_ENABLED\x10\xcd\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_5665_PRESELECTOR_TUNING_DAC_VALUE\x10\xce\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_DEVICE_CONFIGURATION_TEMPERATURE\x10\xcf\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SIGNAL_CONDITIONING_ENABLED\x10\xd0\x99\x46\x12>\n8NIRFSA_ATTRIBUTE_IF_CONDITIONING_DOWN_CONVERSION_ENABLED\x10\xd1\x99\x46\x12 \n\x1aNIRFSA_ATTRIBUTE_LO_SOURCE\x10\xd2\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_AMPLITUDE_SETTLING\x10\xd3\x99\x46\x12/\n)NIRFSA_ATTRIBUTE_DDC_REF_TRIGGER_OVERRIDE\x10\xd4\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_MINIMUM_RECONFIG_TIME\x10\xd5\x99\x46\x12,\n&NIRFSA_ATTRIBUTE_RF_PRESELECTOR_FILTER\x10\xd6\x99\x46\x12+\n%NIRFSA_ATTRIBUTE_NOTCH_FILTER_ENABLED\x10\xd7\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_CAL_TONE_STEP_ATTENUATION\x10\xd8\x99\x46\x12 \n\x1aNIRFSA_ATTRIBUTE_FFT_WIDTH\x10\xd9\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_INPUT_ISOLATION_ENABLED\x10\xda\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_CONTIGUOUS_MULTIRECORD\x10\xdc\x99\x46\x12)\n#NIRFSA_ATTRIBUTE_TIMER_START_SOURCE\x10\xdd\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_CAL_TONE_POWER_REFERRED_TO_RF_IN\x10\xde\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_START_TRIGGER_DELAY\x10\xdf\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_SYNC_START_TRIGGER_MASTER\x10\xe0\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_SYNC_START_TRIGGER_DIST_LINE\x10\xe1\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_SYNC_REF_TRIGGER_MASTER\x10\xe2\x99\x46\x12\x31\n+NIRFSA_ATTRIBUTE_SYNC_REF_TRIGGER_DIST_LINE\x10\xe3\x99\x46\x12!\n\x1bNIRFSA_ATTRIBUTE_INPUT_PORT\x10\xe4\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_IQ_IN_PORT_CARRIER_FREQUENCY\x10\xe5\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_IQ_IN_PORT_TERMINAL_CONFIGURATION\x10\xe6\x99\x46\x12\x30\n*NIRFSA_ATTRIBUTE_IQ_IN_PORT_VERTICAL_RANGE\x10\xe7\x99\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SYNC_ADVANCE_TRIGGER_MASTER\x10\xe8\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_SYNC_ADVANCE_TRIGGER_DIST_LINE\x10\xe9\x99\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_LO_IN_POWER\x10\xea\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_LO_PLL_FRACTIONAL_MODE_ENABLED\x10\xeb\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_LO_FREQUENCY_STEP_SIZE\x10\xec\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_SYNC_REF_TRIGGER_DELAY_ENABLED\x10\xed\x99\x46\x12\'\n!NIRFSA_ATTRIBUTE_DECIMATION_DELAY\x10\xef\x99\x46\x12\x38\n2NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_SOURCE\x10\xf0\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE\x10\xf1\x99\x46\x12\x37\n1NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_LEVEL\x10\xf2\x99\x46\x12<\n6NIRFSA_ATTRIBUTE_IQ_ANALOG_EDGE_REF_TRIGGER_HYSTERESIS\x10\xf3\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_REF_TRIGGER_OSP_DELAY_ENABLED\x10\xf4\x99\x46\x12\x35\n/NIRFSA_ATTRIBUTE_DOWNCONVERTER_FREQUENCY_OFFSET\x10\xfb\x99\x46\x12-\n\'NIRFSA_ATTRIBUTE_IQ_IN_PORT_TEMPERATURE\x10\xfc\x99\x46\x12*\n$NIRFSA_ATTRIBUTE_IF_FILTER_BANDWIDTH\x10\xfd\x99\x46\x12.\n(NIRFSA_ATTRIBUTE_FFT_WINDOW_SHAPE_FACTOR\x10\xfe\x99\x46\x12\x33\n-NIRFSA_ATTRIBUTE_LOW_FREQUENCY_BYPASS_ENABLED\x10\xff\x99\x46\x12\x34\n.NIRFSA_ATTRIBUTE_RF_CONDITIONING_CAL_TONE_MODE\x10\x80\x9a\x46\x12\x39\n3NIRFSA_ATTRIBUTE_RF_CONDITIONING_CAL_TONE_FREQUENCY\x10\x81\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_IF_CONDITIONING_TEMPERATURE\x10\x82\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_RF_CONDITIONING_TEMPERATURE\x10\x83\x9a\x46\x12H\nBNIRFSA_ATTRIBUTE_CAL_RF_LOWBAND_SIGNAL_CONDITIONING_PATH_SELECTION\x10\x87\x9a\x46\x12\x34\n.NIRFSA_ATTRIBUTE_CAL_IF_ATTENUATION_TABLE_SIZE\x10\x88\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_SYNC_SAMPLE_CLOCK_MASTER\x10\x89\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_SYNC_SAMPLE_CLOCK_DIST_LINE\x10\x8a\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_SMOOTH_SPECTRUM_ENABLED\x10\x8b\x9a\x46\x12-\n\'NIRFSA_ATTRIBUTE_RF_HIGH_PASS_FILTERING\x10\x8c\x9a\x46\x12(\n\"NIRFSA_ATTRIBUTE_FPGA_BITFILE_PATH\x10\x8d\x9a\x46\x12\x31\n+NIRFSA_ATTRIBUTE_NOISE_SOURCE_POWER_ENABLED\x10\x8e\x9a\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_100_MHZ_FILTER\x10\x8f\x9a\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_320_MHZ_FILTER\x10\x90\x9a\x46\x12<\n6NIRFSA_ATTRIBUTE_CALIBRATION_CORRECTION_765_MHZ_FILTER\x10\x91\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_CAL_DIGITIZER_ID\x10\x92\x9a\x46\x12\x32\n,NIRFSA_ATTRIBUTE_DIGITIZER_SAMPLE_CLOCK_RATE\x10\x94\x9a\x46\x12\x46\n@NIRFSA_ATTRIBUTE_EXPORTED_DIGITIZER_SAMPLE_CLOCK_OUTPUT_TERMINAL\x10\x95\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_FPGA_TARGET_NAME\x10\x99\x9a\x46\x12&\n NIRFSA_ATTRIBUTE_SUBSPAN_OVERLAP\x10\x9a\x9a\x46\x12)\n#NIRFSA_ATTRIBUTE_LO2_EXPORT_ENABLED\x10\x9b\x9a\x46\x12\x39\n3NIRFSA_ATTRIBUTE_MAX_DEVICE_INSTANTANEOUS_BANDWIDTH\x10\x9c\x9a\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_MAX_IQ_RATE\x10\x9d\x9a\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_LO_OUT_POWER\x10\xa6\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_FPGA_TEMPERATURE\x10\xae\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_MODULE_POWER_CONSUMPTION\x10\xaf\x9a\x46\x12?\n9NIRFSA_ATTRIBUTE_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS\x10\xb0\x9a\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_ABSOLUTE_DELAY\x10\xba\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_SIGNAL_BANDWIDTH\x10\xbb\x9a\x46\x12\"\n\x1cNIRFSA_ATTRIBUTE_COMMON_MODE\x10\xbd\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_OVERFLOW_ERROR_REPORTING\x10\xbf\x9a\x46\x12+\n%NIRFSA_ATTRIBUTE_HOST_DMA_BUFFER_SIZE\x10\xcd\x9a\x46\x12%\n\x1fNIRFSA_ATTRIBUTE_SELECTED_PORTS\x10\xd9\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_RF_OUT_LO_EXPORT_ENABLED\x10\xda\x9a\x46\x12\x38\n2NIRFSA_ATTRIBUTE_LO_OUT_EXPORT_CONFIGURE_FROM_RFSG\x10\xdb\x9a\x46\x12@\n:NIRFSA_ATTRIBUTE_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION\x10\xdc\x9a\x46\x12#\n\x1dNIRFSA_ATTRIBUTE_DIGITAL_GAIN\x10\xdd\x9a\x46\x12:\n4NIRFSA_ATTRIBUTE_DOWNCONVERTER_FREQUENCY_OFFSET_MODE\x10\xe1\x9a\x46\x12&\n NIRFSA_ATTRIBUTE_AVAILABLE_PORTS\x10\xe2\x9a\x46\x12\'\n!NIRFSA_ATTRIBUTE_DEEMBEDDING_TYPE\x10\xe3\x9a\x46\x12\x31\n+NIRFSA_ATTRIBUTE_DEEMBEDDING_SELECTED_TABLE\x10\xe4\x9a\x46\x12/\n)NIRFSA_ATTRIBUTE_REFERENCE_LEVEL_HEADROOM\x10\xe5\x9a\x46\x12\x31\n+NIRFSA_ATTRIBUTE_LO_VCO_FREQUENCY_STEP_SIZE\x10\xe8\x9a\x46\x12\x38\n2NIRFSA_ATTRIBUTE_THERMAL_CORRECTION_HEADROOM_RANGE\x10\xec\x9a\x46\x12\x34\n.NIRFSA_ATTRIBUTE_USER_SOURCE_PULSE_WIDTH_UNITS\x10\xf1\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_USER_SOURCE_PULSE_WIDTH\x10\xf2\x9a\x46\x12\x35\n/NIRFSA_ATTRIBUTE_FIXED_GROUP_DELAY_ACROSS_PORTS\x10\xf4\x9a\x46\x12\x34\n.NIRFSA_ATTRIBUTE_DEEMBEDDING_COMPENSATION_GAIN\x10\xf5\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_EXPORTED_REF_CLOCK_RATE\x10\xf6\x9a\x46\x12$\n\x1eNIRFSA_ATTRIBUTE_SELECTED_PATH\x10\xfb\x9a\x46\x12&\n NIRFSA_ATTRIBUTE_AVAILABLE_PATHS\x10\xfc\x9a\x46\x12.\n(NIRFSA_ATTRIBUTE_CREATED_SESSION_CHANNEL\x10\xfd\x9a\x46\x12\x35\n/NIRFSA_ATTRIBUTE_MIN_FUNDAMENTAL_SILO_FREQUENCY\x10\xfe\x9a\x46\x12\x35\n/NIRFSA_ATTRIBUTE_MAX_FUNDAMENTAL_SILO_FREQUENCY\x10\xff\x9a\x46\x12\x42\nNIRFSA_INT32_CAL_IF_FILTER_SELECTION_EXT_CAL_IF_FILTER_PATH_10\x10\xbd\x10\x12\x43\n>NIRFSA_INT32_CAL_IF_FILTER_SELECTION_EXT_CAL_IF_FILTER_PATH_11\x10\xbe\x10\x12(\n#NIRFSA_INT32_CAL_TONE_MODE_DISABLED\x10\x8c\x15\x12*\n%NIRFSA_INT32_CAL_TONE_MODE_LOWBAND_RF\x10\x8d\x15\x12+\n&NIRFSA_INT32_CAL_TONE_MODE_HIGHBAND_RF\x10\x8e\x15\x12+\n&NIRFSA_INT32_CAL_TONE_MODE_HIGHBAND_IF\x10\x8f\x15\x12\x36\n1NIRFSA_INT32_CAL_TONE_MODE_LOWBAND_RF_WITHOUT_ALC\x10\x90\x15\x12.\n)NIRFSA_INT32_CAL_TONE_MODE_COMB_GENERATOR\x10\x91\x15\x12%\n NIRFSA_INT32_CHANNEL_COUPLING_AC\x10\xb9\x17\x12%\n NIRFSA_INT32_CHANNEL_COUPLING_DC\x10\xba\x17\x12\x35\n0NIRFSA_INT32_CONDITIONING_CAL_TONE_MODE_DISABLED\x10\x8c\x15\x12\x37\n2NIRFSA_INT32_CONDITIONING_CAL_TONE_MODE_LOWBAND_RF\x10\x8d\x15\x12\x38\n3NIRFSA_INT32_CONDITIONING_CAL_TONE_MODE_HIGHBAND_RF\x10\x8e\x15\x12\'\n\"NIRFSA_INT32_DEEMBEDDING_TYPE_NONE\x10\xbc\x1e\x12)\n$NIRFSA_INT32_DEEMBEDDING_TYPE_SCALAR\x10\xbd\x1e\x12)\n$NIRFSA_INT32_DEEMBEDDING_TYPE_VECTOR\x10\xbe\x1e\x12*\n%NIRFSA_INT32_DIGITAL_EDGE_RISING_EDGE\x10\x84\x07\x12+\n&NIRFSA_INT32_DIGITAL_EDGE_FALLING_EDGE\x10\x85\x07\x12?\n:NIRFSA_INT32_DOWNCONVERTER_FREQUENCY_OFFSET_MODE_AUTOMATIC\x10\xef\x0e\x12=\n8NIRFSA_INT32_DOWNCONVERTER_FREQUENCY_OFFSET_MODE_ENABLED\x10\xed\x0e\x12\x42\n=NIRFSA_INT32_DOWNCONVERTER_FREQUENCY_OFFSET_MODE_USER_DEFINED\x10\xf0\x0e\x12\x41\nNIRFSA_INT32_RF_PRESELECTOR_FILTER_FILTER_PATH_EXTERNAL_FILTER\x10\xf5\x19\x12\x35\n0NIRFSA_INT32_SIGNAL_CONDITIONING_ENABLED_ENABLED\x10\x90\x1c\x12\x36\n1NIRFSA_INT32_SIGNAL_CONDITIONING_ENABLED_BYPASSED\x10\x91\x1c\x12,\n\'NIRFSA_INT32_STEP_GAIN_ENABLED_DISABLED\x10\x80\x19\x12+\n&NIRFSA_INT32_STEP_GAIN_ENABLED_ENABLED\x10\x81\x19\x12+\n&NIRFSA_INT32_UNSPECIFIED_ATTR_DISABLED\x10\xec\x0e\x12*\n%NIRFSA_INT32_UNSPECIFIED_ATTR_ENABLED\x10\xed\x0e\x12.\n)NIRFSA_INT32_UNSPECIFIED_ATTR_UNSPECIFIED\x10\xee\x0e\x1a\x02\x10\x01*\xb9\x17\n!NiRFSAStringAttributeValuesMapped\x12$\n NIRFSA_STRING_MAPPED_UNSPECIFIED\x10\x00\x12:\n6NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_OUT_TERMINAL_NONE\x10\x01\x12=\n9NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_OUT_TERMINAL_CLK_OUT\x10\x02\x12\x46\nBNIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_ONBOARD_CLOCK\x10\x03\x12?\n;NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_CLK_IN\x10\x04\x12\x43\n?NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_LO_REF_CLK\x10\x05\x12\x41\n=NIRFSA_STRING_DIGITIZER_SAMPLE_CLOCK_TIMEBASE_SOURCE_PXI_STAR\x10\x06\x12/\n+NIRFSA_STRING_EXPORT_TERMINAL_DO_NOT_EXPORT\x10\x07\x12&\n\"NIRFSA_STRING_EXPORT_TERMINAL_PFI0\x10\x08\x12&\n\"NIRFSA_STRING_EXPORT_TERMINAL_PFI1\x10\t\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG0\x10\n\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG1\x10\x0b\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG2\x10\x0c\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG3\x10\r\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG4\x10\x0e\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG5\x10\x0f\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG6\x10\x10\x12+\n\'NIRFSA_STRING_EXPORT_TERMINAL_PXI_TRIG7\x10\x11\x12*\n&NIRFSA_STRING_EXPORT_TERMINAL_PXI_STAR\x10\x12\x12-\n)NIRFSA_STRING_EXPORT_TERMINAL_PXIE_DSTARC\x10\x13\x12)\n%NIRFSA_STRING_EXPORT_TERMINAL_REF_OUT\x10\x14\x12*\n&NIRFSA_STRING_EXPORT_TERMINAL_REF_OUT2\x10\x15\x12)\n%NIRFSA_STRING_EXPORT_TERMINAL_CLK_OUT\x10\x16\x12-\n)NIRFSA_STRING_LO_SOURCE_SELECTION_ONBOARD\x10\x17\x12+\n\'NIRFSA_STRING_LO_SOURCE_SELECTION_LO_IN\x10\x18\x12\x39\n5NIRFSA_STRING_LO_SOURCE_SELECTION_LO_SOURCE_SECONDARY\x10\x19\x12<\n8NIRFSA_STRING_LO_SOURCE_SELECTION_LO_SOURCE_SG_SA_SHARED\x10\x1a\x12/\n+NIRFSA_STRING_PXI_CHASSIS_CLK10_SOURCE_NONE\x10\x1b\x12\x38\n4NIRFSA_STRING_PXI_CHASSIS_CLK10_SOURCE_ONBOARD_CLOCK\x10\x1c\x12\x31\n-NIRFSA_STRING_PXI_CHASSIS_CLK10_SOURCE_REF_IN\x10\x1d\x12-\n)NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_NONE\x10\x1e\x12\x30\n,NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_REF_OUT\x10\x1f\x12\x31\n-NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_REF_OUT2\x10 \x12\x30\n,NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_CLK_OUT\x10!\x12\x38\n4NIRFSA_STRING_REF_CLOCK_OUT_TERMINAL_IF_COND_REF_OUT\x10\"\x12\'\n#NIRFSA_STRING_REF_CLOCK_SOURCE_NONE\x10#\x12\x30\n,NIRFSA_STRING_REF_CLOCK_SOURCE_ONBOARD_CLOCK\x10$\x12)\n%NIRFSA_STRING_REF_CLOCK_SOURCE_REF_IN\x10%\x12*\n&NIRFSA_STRING_REF_CLOCK_SOURCE_PXI_CLK\x10&\x12)\n%NIRFSA_STRING_REF_CLOCK_SOURCE_CLK_IN\x10\'\x12+\n\'NIRFSA_STRING_REF_CLOCK_SOURCE_REF_IN_2\x10(\x12\x31\n-NIRFSA_STRING_REF_CLOCK_SOURCE_PXI_CLK_MASTER\x10)\x12%\n!NIRFSA_STRING_TRIGGER_SOURCE_PFI0\x10*\x12%\n!NIRFSA_STRING_TRIGGER_SOURCE_PFI1\x10+\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG0\x10,\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG1\x10-\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG2\x10.\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG3\x10/\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG4\x10\x30\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG5\x10\x31\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG6\x10\x32\x12*\n&NIRFSA_STRING_TRIGGER_SOURCE_PXI_TRIG7\x10\x33\x12)\n%NIRFSA_STRING_TRIGGER_SOURCE_PXI_STAR\x10\x34\x12,\n(NIRFSA_STRING_TRIGGER_SOURCE_PXIE_DSTARB\x10\x35\x12,\n(NIRFSA_STRING_TRIGGER_SOURCE_TIMER_EVENT\x10\x36\x12\x34\n0NIRFSA_STRING_TRIGGER_SOURCE_END_OF_RECORD_EVENT\x10\x37\x12.\n*NIRFSA_STRING_TRIGGER_SOURCE_START_TRIGGER\x10\x38\x12\x32\n.NIRFSA_STRING_TRIGGER_SOURCE_REFERENCE_TRIGGER\x10\x39\x12\x33\n/NIRFSA_STRING_TRIGGER_SOURCE_SYNC_START_TRIGGER\x10:\x12\x31\n-NIRFSA_STRING_TRIGGER_SOURCE_SYNC_REF_TRIGGER\x10;\x12\x35\n1NIRFSA_STRING_TRIGGER_SOURCE_SYNC_ADVANCE_TRIGGER\x10<2\xf9\\\n\x06NiRFSA\x12>\n\x05\x41\x62ort\x12\x19.nirfsa_grpc.AbortRequest\x1a\x1a.nirfsa_grpc.AbortResponse\x12q\n\x16\x43heckAcquisitionStatus\x12*.nirfsa_grpc.CheckAcquisitionStatusRequest\x1a+.nirfsa_grpc.CheckAcquisitionStatusResponse\x12M\n\nClearError\x12\x1e.nirfsa_grpc.ClearErrorRequest\x1a\x1f.nirfsa_grpc.ClearErrorResponse\x12t\n\x17\x43learSelfCalibrateRange\x12+.nirfsa_grpc.ClearSelfCalibrateRangeRequest\x1a,.nirfsa_grpc.ClearSelfCalibrateRangeResponse\x12>\n\x05\x43lose\x12\x19.nirfsa_grpc.CloseRequest\x1a\x1a.nirfsa_grpc.CloseResponse\x12\x41\n\x06\x43ommit\x12\x1a.nirfsa_grpc.CommitRequest\x1a\x1b.nirfsa_grpc.CommitResponse\x12w\n\x18\x43onfigureAcquisitionType\x12,.nirfsa_grpc.ConfigureAcquisitionTypeRequest\x1a-.nirfsa_grpc.ConfigureAcquisitionTypeResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationLinear\x12@.nirfsa_grpc.ConfigureDeembeddingTableInterpolationLinearRequest\x1a\x41.nirfsa_grpc.ConfigureDeembeddingTableInterpolationLinearResponse\x12\xb6\x01\n-ConfigureDeembeddingTableInterpolationNearest\x12\x41.nirfsa_grpc.ConfigureDeembeddingTableInterpolationNearestRequest\x1a\x42.nirfsa_grpc.ConfigureDeembeddingTableInterpolationNearestResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationSpline\x12@.nirfsa_grpc.ConfigureDeembeddingTableInterpolationSplineRequest\x1a\x41.nirfsa_grpc.ConfigureDeembeddingTableInterpolationSplineResponse\x12\x95\x01\n\"ConfigureDigitalEdgeAdvanceTrigger\x12\x36.nirfsa_grpc.ConfigureDigitalEdgeAdvanceTriggerRequest\x1a\x37.nirfsa_grpc.ConfigureDigitalEdgeAdvanceTriggerResponse\x12\x89\x01\n\x1e\x43onfigureDigitalEdgeRefTrigger\x12\x32.nirfsa_grpc.ConfigureDigitalEdgeRefTriggerRequest\x1a\x33.nirfsa_grpc.ConfigureDigitalEdgeRefTriggerResponse\x12\x8f\x01\n ConfigureDigitalEdgeStartTrigger\x12\x34.nirfsa_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x35.nirfsa_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x80\x01\n\x1b\x43onfigureIQCarrierFrequency\x12/.nirfsa_grpc.ConfigureIQCarrierFrequencyRequest\x1a\x30.nirfsa_grpc.ConfigureIQCarrierFrequencyResponse\x12\x89\x01\n\x1e\x43onfigureIQPowerEdgeRefTrigger\x12\x32.nirfsa_grpc.ConfigureIQPowerEdgeRefTriggerRequest\x1a\x33.nirfsa_grpc.ConfigureIQPowerEdgeRefTriggerResponse\x12\\\n\x0f\x43onfigureIQRate\x12#.nirfsa_grpc.ConfigureIQRateRequest\x1a$.nirfsa_grpc.ConfigureIQRateResponse\x12w\n\x18\x43onfigureNumberOfRecords\x12,.nirfsa_grpc.ConfigureNumberOfRecordsRequest\x1a-.nirfsa_grpc.ConfigureNumberOfRecordsResponse\x12w\n\x18\x43onfigureNumberOfSamples\x12,.nirfsa_grpc.ConfigureNumberOfSamplesRequest\x1a-.nirfsa_grpc.ConfigureNumberOfSamplesResponse\x12w\n\x18\x43onfigurePXIChassisClk10\x12,.nirfsa_grpc.ConfigurePXIChassisClk10Request\x1a-.nirfsa_grpc.ConfigurePXIChassisClk10Response\x12\x62\n\x11\x43onfigureRefClock\x12%.nirfsa_grpc.ConfigureRefClockRequest\x1a&.nirfsa_grpc.ConfigureRefClockResponse\x12t\n\x17\x43onfigureReferenceLevel\x12+.nirfsa_grpc.ConfigureReferenceLevelRequest\x1a,.nirfsa_grpc.ConfigureReferenceLevelResponse\x12\x83\x01\n\x1c\x43onfigureResolutionBandwidth\x12\x30.nirfsa_grpc.ConfigureResolutionBandwidthRequest\x1a\x31.nirfsa_grpc.ConfigureResolutionBandwidthResponse\x12\x98\x01\n#ConfigureSoftwareEdgeAdvanceTrigger\x12\x37.nirfsa_grpc.ConfigureSoftwareEdgeAdvanceTriggerRequest\x1a\x38.nirfsa_grpc.ConfigureSoftwareEdgeAdvanceTriggerResponse\x12\x8c\x01\n\x1f\x43onfigureSoftwareEdgeRefTrigger\x12\x33.nirfsa_grpc.ConfigureSoftwareEdgeRefTriggerRequest\x1a\x34.nirfsa_grpc.ConfigureSoftwareEdgeRefTriggerResponse\x12\x92\x01\n!ConfigureSoftwareEdgeStartTrigger\x12\x35.nirfsa_grpc.ConfigureSoftwareEdgeStartTriggerRequest\x1a\x36.nirfsa_grpc.ConfigureSoftwareEdgeStartTriggerResponse\x12\x9b\x01\n$ConfigureSpectrumFrequencyCenterSpan\x12\x38.nirfsa_grpc.ConfigureSpectrumFrequencyCenterSpanRequest\x1a\x39.nirfsa_grpc.ConfigureSpectrumFrequencyCenterSpanResponse\x12\x98\x01\n#ConfigureSpectrumFrequencyStartStop\x12\x37.nirfsa_grpc.ConfigureSpectrumFrequencyStartStopRequest\x1a\x38.nirfsa_grpc.ConfigureSpectrumFrequencyStartStopResponse\x12t\n\x17\x43reateConfigurationList\x12+.nirfsa_grpc.CreateConfigurationListRequest\x1a,.nirfsa_grpc.CreateConfigurationListResponse\x12\x80\x01\n\x1b\x43reateConfigurationListStep\x12/.nirfsa_grpc.CreateConfigurationListStepRequest\x1a\x30.nirfsa_grpc.CreateConfigurationListStepResponse\x12\x9e\x01\n%CreateDeembeddingSparameterTableArray\x12\x39.nirfsa_grpc.CreateDeembeddingSparameterTableArrayRequest\x1a:.nirfsa_grpc.CreateDeembeddingSparameterTableArrayResponse\x12\xa4\x01\n\'CreateDeembeddingSparameterTableS2PFile\x12;.nirfsa_grpc.CreateDeembeddingSparameterTableS2PFileRequest\x1a<.nirfsa_grpc.CreateDeembeddingSparameterTableS2PFileResponse\x12}\n\x1a\x44\x65leteAllDeembeddingTables\x12..nirfsa_grpc.DeleteAllDeembeddingTablesRequest\x1a/.nirfsa_grpc.DeleteAllDeembeddingTablesResponse\x12t\n\x17\x44\x65leteConfigurationList\x12+.nirfsa_grpc.DeleteConfigurationListRequest\x1a,.nirfsa_grpc.DeleteConfigurationListResponse\x12q\n\x16\x44\x65leteDeembeddingTable\x12*.nirfsa_grpc.DeleteDeembeddingTableRequest\x1a+.nirfsa_grpc.DeleteDeembeddingTableResponse\x12\x44\n\x07\x44isable\x12\x1b.nirfsa_grpc.DisableRequest\x1a\x1c.nirfsa_grpc.DisableResponse\x12n\n\x15\x44isableAdvanceTrigger\x12).nirfsa_grpc.DisableAdvanceTriggerRequest\x1a*.nirfsa_grpc.DisableAdvanceTriggerResponse\x12\x62\n\x11\x44isableRefTrigger\x12%.nirfsa_grpc.DisableRefTriggerRequest\x1a&.nirfsa_grpc.DisableRefTriggerResponse\x12h\n\x13\x44isableStartTrigger\x12\'.nirfsa_grpc.DisableStartTriggerRequest\x1a(.nirfsa_grpc.DisableStartTriggerResponse\x12h\n\x13\x45nableSessionAccess\x12\'.nirfsa_grpc.EnableSessionAccessRequest\x1a(.nirfsa_grpc.EnableSessionAccessResponse\x12S\n\x0c\x45rrorMessage\x12 .nirfsa_grpc.ErrorMessageRequest\x1a!.nirfsa_grpc.ErrorMessageResponse\x12M\n\nErrorQuery\x12\x1e.nirfsa_grpc.ErrorQueryRequest\x1a\x1f.nirfsa_grpc.ErrorQueryResponse\x12S\n\x0c\x45xportSignal\x12 .nirfsa_grpc.ExportSignalRequest\x1a!.nirfsa_grpc.ExportSignalResponse\x12\x83\x01\n\x1c\x46\x65tchIQMultiRecordComplexF32\x12\x30.nirfsa_grpc.FetchIQMultiRecordComplexF32Request\x1a\x31.nirfsa_grpc.FetchIQMultiRecordComplexF32Response\x12\x83\x01\n\x1c\x46\x65tchIQMultiRecordComplexF64\x12\x30.nirfsa_grpc.FetchIQMultiRecordComplexF64Request\x1a\x31.nirfsa_grpc.FetchIQMultiRecordComplexF64Response\x12\x83\x01\n\x1c\x46\x65tchIQMultiRecordComplexI16\x12\x30.nirfsa_grpc.FetchIQMultiRecordComplexI16Request\x1a\x31.nirfsa_grpc.FetchIQMultiRecordComplexI16Response\x12\x86\x01\n\x1d\x46\x65tchIQSingleRecordComplexF32\x12\x31.nirfsa_grpc.FetchIQSingleRecordComplexF32Request\x1a\x32.nirfsa_grpc.FetchIQSingleRecordComplexF32Response\x12\x86\x01\n\x1d\x46\x65tchIQSingleRecordComplexF64\x12\x31.nirfsa_grpc.FetchIQSingleRecordComplexF64Request\x1a\x32.nirfsa_grpc.FetchIQSingleRecordComplexF64Response\x12\x86\x01\n\x1d\x46\x65tchIQSingleRecordComplexI16\x12\x31.nirfsa_grpc.FetchIQSingleRecordComplexI16Request\x1a\x32.nirfsa_grpc.FetchIQSingleRecordComplexI16Response\x12n\n\x15GetAttributeViBoolean\x12).nirfsa_grpc.GetAttributeViBooleanRequest\x1a*.nirfsa_grpc.GetAttributeViBooleanResponse\x12h\n\x13GetAttributeViInt32\x12\'.nirfsa_grpc.GetAttributeViInt32Request\x1a(.nirfsa_grpc.GetAttributeViInt32Response\x12h\n\x13GetAttributeViInt64\x12\'.nirfsa_grpc.GetAttributeViInt64Request\x1a(.nirfsa_grpc.GetAttributeViInt64Response\x12k\n\x14GetAttributeViReal64\x12(.nirfsa_grpc.GetAttributeViReal64Request\x1a).nirfsa_grpc.GetAttributeViReal64Response\x12n\n\x15GetAttributeViSession\x12).nirfsa_grpc.GetAttributeViSessionRequest\x1a*.nirfsa_grpc.GetAttributeViSessionResponse\x12k\n\x14GetAttributeViString\x12(.nirfsa_grpc.GetAttributeViStringRequest\x1a).nirfsa_grpc.GetAttributeViStringResponse\x12n\n\x15GetCalUserDefinedInfo\x12).nirfsa_grpc.GetCalUserDefinedInfoRequest\x1a*.nirfsa_grpc.GetCalUserDefinedInfoResponse\x12\x83\x01\n\x1cGetCalUserDefinedInfoMaxSize\x12\x30.nirfsa_grpc.GetCalUserDefinedInfoMaxSizeRequest\x1a\x31.nirfsa_grpc.GetCalUserDefinedInfoMaxSizeResponse\x12z\n\x19GetDeembeddingSparameters\x12-.nirfsa_grpc.GetDeembeddingSparametersRequest\x1a..nirfsa_grpc.GetDeembeddingSparametersResponse\x12\x62\n\x11GetDeviceResponse\x12%.nirfsa_grpc.GetDeviceResponseRequest\x1a&.nirfsa_grpc.GetDeviceResponseResponse\x12G\n\x08GetError\x12\x1c.nirfsa_grpc.GetErrorRequest\x1a\x1d.nirfsa_grpc.GetErrorResponse\x12w\n\x18GetExtCalLastDateAndTime\x12,.nirfsa_grpc.GetExtCalLastDateAndTimeRequest\x1a-.nirfsa_grpc.GetExtCalLastDateAndTimeResponse\x12\x62\n\x11GetExtCalLastTemp\x12%.nirfsa_grpc.GetExtCalLastTempRequest\x1a&.nirfsa_grpc.GetExtCalLastTempResponse\x12\x83\x01\n\x1cGetExtCalRecommendedInterval\x12\x30.nirfsa_grpc.GetExtCalRecommendedIntervalRequest\x1a\x31.nirfsa_grpc.GetExtCalRecommendedIntervalResponse\x12\\\n\x0fGetFetchBacklog\x12#.nirfsa_grpc.GetFetchBacklogRequest\x1a$.nirfsa_grpc.GetFetchBacklogResponse\x12k\n\x14GetFrequencyResponse\x12(.nirfsa_grpc.GetFrequencyResponseRequest\x1a).nirfsa_grpc.GetFrequencyResponseResponse\x12\x83\x01\n\x1cGetNormalizationCoefficients\x12\x30.nirfsa_grpc.GetNormalizationCoefficientsRequest\x1a\x31.nirfsa_grpc.GetNormalizationCoefficientsResponse\x12w\n\x18GetNumberOfSpectralLines\x12,.nirfsa_grpc.GetNumberOfSpectralLinesRequest\x1a-.nirfsa_grpc.GetNumberOfSpectralLinesResponse\x12S\n\x0cGetRelayName\x12 .nirfsa_grpc.GetRelayNameRequest\x1a!.nirfsa_grpc.GetRelayNameResponse\x12t\n\x17GetRelayOperationsCount\x12+.nirfsa_grpc.GetRelayOperationsCountRequest\x1a,.nirfsa_grpc.GetRelayOperationsCountResponse\x12q\n\x16GetScalingCoefficients\x12*.nirfsa_grpc.GetScalingCoefficientsRequest\x1a+.nirfsa_grpc.GetScalingCoefficientsResponse\x12z\n\x19GetSelfCalLastDateAndTime\x12-.nirfsa_grpc.GetSelfCalLastDateAndTimeRequest\x1a..nirfsa_grpc.GetSelfCalLastDateAndTimeResponse\x12\x65\n\x12GetSelfCalLastTemp\x12&.nirfsa_grpc.GetSelfCalLastTempRequest\x1a\'.nirfsa_grpc.GetSelfCalLastTempResponse\x12n\n\x15GetSpectralInfoForSMT\x12).nirfsa_grpc.GetSpectralInfoForSMTRequest\x1a*.nirfsa_grpc.GetSpectralInfoForSMTResponse\x12t\n\x17GetStreamEndpointHandle\x12+.nirfsa_grpc.GetStreamEndpointHandleRequest\x1a,.nirfsa_grpc.GetStreamEndpointHandleResponse\x12\\\n\x0fGetTerminalName\x12#.nirfsa_grpc.GetTerminalNameRequest\x1a$.nirfsa_grpc.GetTerminalNameResponse\x12P\n\x0bGetUserData\x12\x1f.nirfsa_grpc.GetUserDataRequest\x1a .nirfsa_grpc.GetUserDataResponse\x12;\n\x04Init\x12\x18.nirfsa_grpc.InitRequest\x1a\x19.nirfsa_grpc.InitResponse\x12\\\n\x0fInitWithOptions\x12#.nirfsa_grpc.InitWithOptionsRequest\x1a$.nirfsa_grpc.InitWithOptionsResponse\x12G\n\x08Initiate\x12\x1c.nirfsa_grpc.InitiateRequest\x1a\x1d.nirfsa_grpc.InitiateResponse\x12t\n\x17InvalidateAllAttributes\x12+.nirfsa_grpc.InvalidateAllAttributesRequest\x1a,.nirfsa_grpc.InvalidateAllAttributesResponse\x12Y\n\x0eIsSelfCalValid\x12\".nirfsa_grpc.IsSelfCalValidRequest\x1a#.nirfsa_grpc.IsSelfCalValidResponse\x12}\n\x1aLoadConfigurationsFromFile\x12..nirfsa_grpc.LoadConfigurationsFromFileRequest\x1a/.nirfsa_grpc.LoadConfigurationsFromFileResponse\x12w\n\x18PerformThermalCorrection\x12,.nirfsa_grpc.PerformThermalCorrectionRequest\x1a-.nirfsa_grpc.PerformThermalCorrectionResponse\x12\x83\x01\n\x1cReadIQSingleRecordComplexF64\x12\x30.nirfsa_grpc.ReadIQSingleRecordComplexF64Request\x1a\x31.nirfsa_grpc.ReadIQSingleRecordComplexF64Response\x12k\n\x14ReadPowerSpectrumF32\x12(.nirfsa_grpc.ReadPowerSpectrumF32Request\x1a).nirfsa_grpc.ReadPowerSpectrumF32Response\x12k\n\x14ReadPowerSpectrumF64\x12(.nirfsa_grpc.ReadPowerSpectrumF64Request\x1a).nirfsa_grpc.ReadPowerSpectrumF64Response\x12>\n\x05Reset\x12\x19.nirfsa_grpc.ResetRequest\x1a\x1a.nirfsa_grpc.ResetResponse\x12Y\n\x0eResetAttribute\x12\".nirfsa_grpc.ResetAttributeRequest\x1a#.nirfsa_grpc.ResetAttributeResponse\x12P\n\x0bResetDevice\x12\x1f.nirfsa_grpc.ResetDeviceRequest\x1a .nirfsa_grpc.ResetDeviceResponse\x12\x62\n\x11ResetWithDefaults\x12%.nirfsa_grpc.ResetWithDefaultsRequest\x1a&.nirfsa_grpc.ResetWithDefaultsResponse\x12_\n\x10ResetWithOptions\x12$.nirfsa_grpc.ResetWithOptionsRequest\x1a%.nirfsa_grpc.ResetWithOptionsResponse\x12V\n\rRevisionQuery\x12!.nirfsa_grpc.RevisionQueryRequest\x1a\".nirfsa_grpc.RevisionQueryResponse\x12w\n\x18SaveConfigurationsToFile\x12,.nirfsa_grpc.SaveConfigurationsToFileRequest\x1a-.nirfsa_grpc.SaveConfigurationsToFileResponse\x12\x44\n\x07SelfCal\x12\x1b.nirfsa_grpc.SelfCalRequest\x1a\x1c.nirfsa_grpc.SelfCalResponse\x12V\n\rSelfCalibrate\x12!.nirfsa_grpc.SelfCalibrateRequest\x1a\".nirfsa_grpc.SelfCalibrateResponse\x12\x65\n\x12SelfCalibrateRange\x12&.nirfsa_grpc.SelfCalibrateRangeRequest\x1a\'.nirfsa_grpc.SelfCalibrateRangeResponse\x12G\n\x08SelfTest\x12\x1c.nirfsa_grpc.SelfTestRequest\x1a\x1d.nirfsa_grpc.SelfTestResponse\x12t\n\x17SendSoftwareEdgeTrigger\x12+.nirfsa_grpc.SendSoftwareEdgeTriggerRequest\x1a,.nirfsa_grpc.SendSoftwareEdgeTriggerResponse\x12n\n\x15SetAttributeViBoolean\x12).nirfsa_grpc.SetAttributeViBooleanRequest\x1a*.nirfsa_grpc.SetAttributeViBooleanResponse\x12h\n\x13SetAttributeViInt32\x12\'.nirfsa_grpc.SetAttributeViInt32Request\x1a(.nirfsa_grpc.SetAttributeViInt32Response\x12h\n\x13SetAttributeViInt64\x12\'.nirfsa_grpc.SetAttributeViInt64Request\x1a(.nirfsa_grpc.SetAttributeViInt64Response\x12k\n\x14SetAttributeViReal64\x12(.nirfsa_grpc.SetAttributeViReal64Request\x1a).nirfsa_grpc.SetAttributeViReal64Response\x12n\n\x15SetAttributeViSession\x12).nirfsa_grpc.SetAttributeViSessionRequest\x1a*.nirfsa_grpc.SetAttributeViSessionResponse\x12k\n\x14SetAttributeViString\x12(.nirfsa_grpc.SetAttributeViStringRequest\x1a).nirfsa_grpc.SetAttributeViStringResponse\x12n\n\x15SetCalUserDefinedInfo\x12).nirfsa_grpc.SetCalUserDefinedInfoRequest\x1a*.nirfsa_grpc.SetCalUserDefinedInfoResponse\x12P\n\x0bSetUserData\x12\x1f.nirfsa_grpc.SetUserDataRequest\x1a .nirfsa_grpc.SetUserDataResponseB>\n\x10\x63om.ni.grpc.rfsaB\x06NiRFSAP\x01\xaa\x02\x1fNationalInstruments.Grpc.NiRFSAb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nirfsa_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\020com.ni.grpc.rfsaB\006NiRFSAP\001\252\002\037NationalInstruments.Grpc.NiRFSA' + _NIRFSAINT32ATTRIBUTEVALUES._options = None + _NIRFSAINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NIRFSAATTRIBUTE']._serialized_start=21470 + _globals['_NIRFSAATTRIBUTE']._serialized_end=34268 + _globals['_ACQUISITIONTYPE']._serialized_start=34270 + _globals['_ACQUISITIONTYPE']._serialized_end=34377 + _globals['_ANALOGSLOPE']._serialized_start=34379 + _globals['_ANALOGSLOPE']._serialized_end=34487 + _globals['_DEVICERESPONSE']._serialized_start=34490 + _globals['_DEVICERESPONSE']._serialized_end=34771 + _globals['_DIGITALEDGE']._serialized_start=34773 + _globals['_DIGITALEDGE']._serialized_end=34879 + _globals['_DIGITALEDGETRIGGERSOURCE']._serialized_start=34882 + _globals['_DIGITALEDGETRIGGERSOURCE']._serialized_end=35772 + _globals['_EXPORTTERMINAL']._serialized_start=35775 + _globals['_EXPORTTERMINAL']._serialized_end=36310 + _globals['_LINEARINTERPOLATIONFORMAT']._serialized_start=36313 + _globals['_LINEARINTERPOLATIONFORMAT']._serialized_end=36549 + _globals['_PXICHASSISCLK10SOURCE']._serialized_start=36552 + _globals['_PXICHASSISCLK10SOURCE']._serialized_end=36733 + _globals['_REFCLOCKSOURCE']._serialized_start=36736 + _globals['_REFCLOCKSOURCE']._serialized_end=37005 + _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_start=37008 + _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_end=37182 + _globals['_SELFCALIBRATESTEPS']._serialized_start=37185 + _globals['_SELFCALIBRATESTEPS']._serialized_end=37654 + _globals['_SIGNAL']._serialized_start=37657 + _globals['_SIGNAL']._serialized_end=38002 + _globals['_SPARAMETERORIENTATION']._serialized_start=38005 + _globals['_SPARAMETERORIENTATION']._serialized_end=38162 + _globals['_NIRFSAINT32ATTRIBUTEVALUES']._serialized_start=38165 + _globals['_NIRFSAINT32ATTRIBUTEVALUES']._serialized_end=46395 + _globals['_NIRFSASTRINGATTRIBUTEVALUESMAPPED']._serialized_start=46398 + _globals['_NIRFSASTRINGATTRIBUTEVALUESMAPPED']._serialized_end=49399 + _globals['_WAVEFORMINFO']._serialized_start=61 + _globals['_WAVEFORMINFO']._serialized_end=206 + _globals['_COEFFICIENTINFO']._serialized_start=208 + _globals['_COEFFICIENTINFO']._serialized_end=255 + _globals['_SPECTRUMINFO']._serialized_start=257 + _globals['_SPECTRUMINFO']._serialized_end=361 + _globals['_ABORTREQUEST']._serialized_start=363 + _globals['_ABORTREQUEST']._serialized_end=413 + _globals['_ABORTRESPONSE']._serialized_start=415 + _globals['_ABORTRESPONSE']._serialized_end=446 + _globals['_CHECKACQUISITIONSTATUSREQUEST']._serialized_start=448 + _globals['_CHECKACQUISITIONSTATUSREQUEST']._serialized_end=515 + _globals['_CHECKACQUISITIONSTATUSRESPONSE']._serialized_start=517 + _globals['_CHECKACQUISITIONSTATUSRESPONSE']._serialized_end=582 + _globals['_CLEARERRORREQUEST']._serialized_start=584 + _globals['_CLEARERRORREQUEST']._serialized_end=639 + _globals['_CLEARERRORRESPONSE']._serialized_start=641 + _globals['_CLEARERRORRESPONSE']._serialized_end=677 + _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_start=679 + _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_end=747 + _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_start=749 + _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_end=798 + _globals['_CLOSEREQUEST']._serialized_start=800 + _globals['_CLOSEREQUEST']._serialized_end=850 + _globals['_CLOSERESPONSE']._serialized_start=852 + _globals['_CLOSERESPONSE']._serialized_end=883 + _globals['_COMMITREQUEST']._serialized_start=885 + _globals['_COMMITREQUEST']._serialized_end=936 + _globals['_COMMITRESPONSE']._serialized_start=938 + _globals['_COMMITRESPONSE']._serialized_end=970 + _globals['_CONFIGUREACQUISITIONTYPEREQUEST']._serialized_start=973 + _globals['_CONFIGUREACQUISITIONTYPEREQUEST']._serialized_end=1157 + _globals['_CONFIGUREACQUISITIONTYPERESPONSE']._serialized_start=1159 + _globals['_CONFIGUREACQUISITIONTYPERESPONSE']._serialized_end=1209 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_start=1212 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_end=1430 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_start=1432 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_end=1502 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_start=1504 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_end=1628 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_start=1630 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_end=1701 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_start=1703 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_end=1826 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_start=1828 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_end=1898 + _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERREQUEST']._serialized_start=1901 + _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERREQUEST']._serialized_end=2156 + _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERRESPONSE']._serialized_start=2158 + _globals['_CONFIGUREDIGITALEDGEADVANCETRIGGERRESPONSE']._serialized_end=2218 + _globals['_CONFIGUREDIGITALEDGEREFTRIGGERREQUEST']._serialized_start=2221 + _globals['_CONFIGUREDIGITALEDGEREFTRIGGERREQUEST']._serialized_end=2500 + _globals['_CONFIGUREDIGITALEDGEREFTRIGGERRESPONSE']._serialized_start=2502 + _globals['_CONFIGUREDIGITALEDGEREFTRIGGERRESPONSE']._serialized_end=2558 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=2561 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=2814 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=2816 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=2874 + _globals['_CONFIGUREIQCARRIERFREQUENCYREQUEST']._serialized_start=2876 + _globals['_CONFIGUREIQCARRIERFREQUENCYREQUEST']._serialized_end=2997 + _globals['_CONFIGUREIQCARRIERFREQUENCYRESPONSE']._serialized_start=2999 + _globals['_CONFIGUREIQCARRIERFREQUENCYRESPONSE']._serialized_end=3052 + _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERREQUEST']._serialized_start=3055 + _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERREQUEST']._serialized_end=3251 + _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERRESPONSE']._serialized_start=3253 + _globals['_CONFIGUREIQPOWEREDGEREFTRIGGERRESPONSE']._serialized_end=3309 + _globals['_CONFIGUREIQRATEREQUEST']._serialized_start=3311 + _globals['_CONFIGUREIQRATEREQUEST']._serialized_end=3410 + _globals['_CONFIGUREIQRATERESPONSE']._serialized_start=3412 + _globals['_CONFIGUREIQRATERESPONSE']._serialized_end=3453 + _globals['_CONFIGURENUMBEROFRECORDSREQUEST']._serialized_start=3456 + _globals['_CONFIGURENUMBEROFRECORDSREQUEST']._serialized_end=3611 + _globals['_CONFIGURENUMBEROFRECORDSRESPONSE']._serialized_start=3613 + _globals['_CONFIGURENUMBEROFRECORDSRESPONSE']._serialized_end=3663 + _globals['_CONFIGURENUMBEROFSAMPLESREQUEST']._serialized_start=3666 + _globals['_CONFIGURENUMBEROFSAMPLESREQUEST']._serialized_end=3822 + _globals['_CONFIGURENUMBEROFSAMPLESRESPONSE']._serialized_start=3824 + _globals['_CONFIGURENUMBEROFSAMPLESRESPONSE']._serialized_end=3874 + _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_start=3877 + _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_end=4074 + _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_start=4076 + _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_end=4126 + _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_start=4129 + _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_end=4324 + _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_start=4326 + _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_end=4369 + _globals['_CONFIGUREREFERENCELEVELREQUEST']._serialized_start=4371 + _globals['_CONFIGUREREFERENCELEVELREQUEST']._serialized_end=4486 + _globals['_CONFIGUREREFERENCELEVELRESPONSE']._serialized_start=4488 + _globals['_CONFIGUREREFERENCELEVELRESPONSE']._serialized_end=4537 + _globals['_CONFIGURERESOLUTIONBANDWIDTHREQUEST']._serialized_start=4539 + _globals['_CONFIGURERESOLUTIONBANDWIDTHREQUEST']._serialized_end=4664 + _globals['_CONFIGURERESOLUTIONBANDWIDTHRESPONSE']._serialized_start=4666 + _globals['_CONFIGURERESOLUTIONBANDWIDTHRESPONSE']._serialized_end=4720 + _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERREQUEST']._serialized_start=4722 + _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERREQUEST']._serialized_end=4802 + _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERRESPONSE']._serialized_start=4804 + _globals['_CONFIGURESOFTWAREEDGEADVANCETRIGGERRESPONSE']._serialized_end=4865 + _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERREQUEST']._serialized_start=4867 + _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERREQUEST']._serialized_end=4971 + _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERRESPONSE']._serialized_start=4973 + _globals['_CONFIGURESOFTWAREEDGEREFTRIGGERRESPONSE']._serialized_end=5030 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_start=5032 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERREQUEST']._serialized_end=5110 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_start=5112 + _globals['_CONFIGURESOFTWAREEDGESTARTTRIGGERRESPONSE']._serialized_end=5171 + _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANREQUEST']._serialized_start=5174 + _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANREQUEST']._serialized_end=5317 + _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANRESPONSE']._serialized_start=5319 + _globals['_CONFIGURESPECTRUMFREQUENCYCENTERSPANRESPONSE']._serialized_end=5381 + _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPREQUEST']._serialized_start=5384 + _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPREQUEST']._serialized_end=5535 + _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPRESPONSE']._serialized_start=5537 + _globals['_CONFIGURESPECTRUMFREQUENCYSTARTSTOPRESPONSE']._serialized_end=5598 + _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_start=5601 + _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_end=5774 + _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_start=5776 + _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_end=5825 + _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_start=5827 + _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_end=5927 + _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_start=5929 + _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_end=5982 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_start=5985 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_end=6344 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_start=6346 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_end=6409 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_start=6412 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_end=6692 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_start=6694 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_end=6759 + _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_start=6761 + _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_end=6832 + _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_start=6834 + _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_end=6886 + _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_start=6888 + _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_end=6975 + _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_start=6977 + _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_end=7026 + _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_start=7028 + _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_end=7129 + _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_start=7131 + _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_end=7179 + _globals['_DISABLEREQUEST']._serialized_start=7181 + _globals['_DISABLEREQUEST']._serialized_end=7233 + _globals['_DISABLERESPONSE']._serialized_start=7235 + _globals['_DISABLERESPONSE']._serialized_end=7268 + _globals['_DISABLEADVANCETRIGGERREQUEST']._serialized_start=7270 + _globals['_DISABLEADVANCETRIGGERREQUEST']._serialized_end=7336 + _globals['_DISABLEADVANCETRIGGERRESPONSE']._serialized_start=7338 + _globals['_DISABLEADVANCETRIGGERRESPONSE']._serialized_end=7385 + _globals['_DISABLEREFTRIGGERREQUEST']._serialized_start=7387 + _globals['_DISABLEREFTRIGGERREQUEST']._serialized_end=7449 + _globals['_DISABLEREFTRIGGERRESPONSE']._serialized_start=7451 + _globals['_DISABLEREFTRIGGERRESPONSE']._serialized_end=7494 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=7496 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=7560 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=7562 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=7607 + _globals['_ENABLESESSIONACCESSREQUEST']._serialized_start=7609 + _globals['_ENABLESESSIONACCESSREQUEST']._serialized_end=7689 + _globals['_ENABLESESSIONACCESSRESPONSE']._serialized_start=7691 + _globals['_ENABLESESSIONACCESSRESPONSE']._serialized_end=7736 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=7738 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=7816 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=7818 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=7879 + _globals['_ERRORQUERYREQUEST']._serialized_start=7881 + _globals['_ERRORQUERYREQUEST']._serialized_end=7936 + _globals['_ERRORQUERYRESPONSE']._serialized_start=7938 + _globals['_ERRORQUERYRESPONSE']._serialized_end=8017 + _globals['_EXPORTSIGNALREQUEST']._serialized_start=8020 + _globals['_EXPORTSIGNALREQUEST']._serialized_end=8298 + _globals['_EXPORTSIGNALRESPONSE']._serialized_start=8300 + _globals['_EXPORTSIGNALRESPONSE']._serialized_end=8338 + _globals['_FETCHIQMULTIRECORDCOMPLEXF32REQUEST']._serialized_start=8341 + _globals['_FETCHIQMULTIRECORDCOMPLEXF32REQUEST']._serialized_end=8532 + _globals['_FETCHIQMULTIRECORDCOMPLEXF32RESPONSE']._serialized_start=8535 + _globals['_FETCHIQMULTIRECORDCOMPLEXF32RESPONSE']._serialized_end=8683 + _globals['_FETCHIQMULTIRECORDCOMPLEXF64REQUEST']._serialized_start=8686 + _globals['_FETCHIQMULTIRECORDCOMPLEXF64REQUEST']._serialized_end=8877 + _globals['_FETCHIQMULTIRECORDCOMPLEXF64RESPONSE']._serialized_start=8880 + _globals['_FETCHIQMULTIRECORDCOMPLEXF64RESPONSE']._serialized_end=9025 + _globals['_FETCHIQMULTIRECORDCOMPLEXI16REQUEST']._serialized_start=9028 + _globals['_FETCHIQMULTIRECORDCOMPLEXI16REQUEST']._serialized_end=9219 + _globals['_FETCHIQMULTIRECORDCOMPLEXI16RESPONSE']._serialized_start=9222 + _globals['_FETCHIQMULTIRECORDCOMPLEXI16RESPONSE']._serialized_end=9364 + _globals['_FETCHIQSINGLERECORDCOMPLEXF32REQUEST']._serialized_start=9367 + _globals['_FETCHIQSINGLERECORDCOMPLEXF32REQUEST']._serialized_end=9530 + _globals['_FETCHIQSINGLERECORDCOMPLEXF32RESPONSE']._serialized_start=9533 + _globals['_FETCHIQSINGLERECORDCOMPLEXF32RESPONSE']._serialized_end=9682 + _globals['_FETCHIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_start=9685 + _globals['_FETCHIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_end=9848 + _globals['_FETCHIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_start=9851 + _globals['_FETCHIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_end=9997 + _globals['_FETCHIQSINGLERECORDCOMPLEXI16REQUEST']._serialized_start=10000 + _globals['_FETCHIQSINGLERECORDCOMPLEXI16REQUEST']._serialized_end=10163 + _globals['_FETCHIQSINGLERECORDCOMPLEXI16RESPONSE']._serialized_start=10166 + _globals['_FETCHIQSINGLERECORDCOMPLEXI16RESPONSE']._serialized_end=10309 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=10312 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=10452 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=10454 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=10516 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=10519 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=10657 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=10659 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=10719 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=10722 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=10860 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=10862 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=10922 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=10925 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=11064 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=11066 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=11127 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=11130 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=11270 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=11272 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=11358 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=11361 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=11500 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=11502 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=11563 + _globals['_GETCALUSERDEFINEDINFOREQUEST']._serialized_start=11565 + _globals['_GETCALUSERDEFINEDINFOREQUEST']._serialized_end=11631 + _globals['_GETCALUSERDEFINEDINFORESPONSE']._serialized_start=11633 + _globals['_GETCALUSERDEFINEDINFORESPONSE']._serialized_end=11694 + _globals['_GETCALUSERDEFINEDINFOMAXSIZEREQUEST']._serialized_start=11696 + _globals['_GETCALUSERDEFINEDINFOMAXSIZEREQUEST']._serialized_end=11769 + _globals['_GETCALUSERDEFINEDINFOMAXSIZERESPONSE']._serialized_start=11771 + _globals['_GETCALUSERDEFINEDINFOMAXSIZERESPONSE']._serialized_end=11844 + _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_start=11846 + _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_end=11916 + _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_start=11919 + _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_end=12079 + _globals['_GETDEVICERESPONSEREQUEST']._serialized_start=12082 + _globals['_GETDEVICERESPONSEREQUEST']._serialized_end=12271 + _globals['_GETDEVICERESPONSERESPONSE']._serialized_start=12274 + _globals['_GETDEVICERESPONSERESPONSE']._serialized_end=12421 + _globals['_GETERRORREQUEST']._serialized_start=12423 + _globals['_GETERRORREQUEST']._serialized_end=12476 + _globals['_GETERRORRESPONSE']._serialized_start=12478 + _globals['_GETERRORRESPONSE']._serialized_end=12559 + _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_start=12561 + _globals['_GETEXTCALLASTDATEANDTIMEREQUEST']._serialized_end=12630 + _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_start=12632 + _globals['_GETEXTCALLASTDATEANDTIMERESPONSE']._serialized_end=12754 + _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_start=12756 + _globals['_GETEXTCALLASTTEMPREQUEST']._serialized_end=12818 + _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_start=12820 + _globals['_GETEXTCALLASTTEMPRESPONSE']._serialized_end=12884 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_start=12886 + _globals['_GETEXTCALRECOMMENDEDINTERVALREQUEST']._serialized_end=12959 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_start=12961 + _globals['_GETEXTCALRECOMMENDEDINTERVALRESPONSE']._serialized_end=13031 + _globals['_GETFETCHBACKLOGREQUEST']._serialized_start=13033 + _globals['_GETFETCHBACKLOGREQUEST']._serialized_end=13138 + _globals['_GETFETCHBACKLOGRESPONSE']._serialized_start=13140 + _globals['_GETFETCHBACKLOGRESPONSE']._serialized_end=13198 + _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_start=13200 + _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_end=13287 + _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_start=13290 + _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_end=13440 + _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_start=13442 + _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_end=13537 + _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_start=13540 + _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_end=13686 + _globals['_GETNUMBEROFSPECTRALLINESREQUEST']._serialized_start=13688 + _globals['_GETNUMBEROFSPECTRALLINESREQUEST']._serialized_end=13779 + _globals['_GETNUMBEROFSPECTRALLINESRESPONSE']._serialized_start=13781 + _globals['_GETNUMBEROFSPECTRALLINESRESPONSE']._serialized_end=13865 + _globals['_GETRELAYNAMEREQUEST']._serialized_start=13867 + _globals['_GETRELAYNAMEREQUEST']._serialized_end=13961 + _globals['_GETRELAYNAMERESPONSE']._serialized_start=13963 + _globals['_GETRELAYNAMERESPONSE']._serialized_end=14036 + _globals['_GETRELAYOPERATIONSCOUNTREQUEST']._serialized_start=14038 + _globals['_GETRELAYOPERATIONSCOUNTREQUEST']._serialized_end=14128 + _globals['_GETRELAYOPERATIONSCOUNTRESPONSE']._serialized_start=14130 + _globals['_GETRELAYOPERATIONSCOUNTRESPONSE']._serialized_end=14226 + _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_start=14228 + _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_end=14317 + _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_start=14320 + _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_end=14460 + _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_start=14462 + _globals['_GETSELFCALLASTDATEANDTIMEREQUEST']._serialized_end=14563 + _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_start=14565 + _globals['_GETSELFCALLASTDATEANDTIMERESPONSE']._serialized_end=14688 + _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_start=14690 + _globals['_GETSELFCALLASTTEMPREQUEST']._serialized_end=14784 + _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_start=14786 + _globals['_GETSELFCALLASTTEMPRESPONSE']._serialized_end=14844 + _globals['_GETSPECTRALINFOFORSMTREQUEST']._serialized_start=14846 + _globals['_GETSPECTRALINFOFORSMTREQUEST']._serialized_end=14912 + _globals['_GETSPECTRALINFOFORSMTRESPONSE']._serialized_start=14914 + _globals['_GETSPECTRALINFOFORSMTRESPONSE']._serialized_end=15016 + _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_start=15018 + _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_end=15111 + _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_start=15113 + _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_end=15185 + _globals['_GETTERMINALNAMEREQUEST']._serialized_start=15188 + _globals['_GETTERMINALNAMEREQUEST']._serialized_end=15372 + _globals['_GETTERMINALNAMERESPONSE']._serialized_start=15374 + _globals['_GETTERMINALNAMERESPONSE']._serialized_end=15438 + _globals['_GETUSERDATAREQUEST']._serialized_start=15440 + _globals['_GETUSERDATAREQUEST']._serialized_end=15516 + _globals['_GETUSERDATARESPONSE']._serialized_start=15518 + _globals['_GETUSERDATARESPONSE']._serialized_end=15595 + _globals['_INITREQUEST']._serialized_start=15598 + _globals['_INITREQUEST']._serialized_end=15768 + _globals['_INITRESPONSE']._serialized_start=15770 + _globals['_INITRESPONSE']._serialized_end=15896 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=15899 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=16103 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=16106 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=16243 + _globals['_INITIATEREQUEST']._serialized_start=16245 + _globals['_INITIATEREQUEST']._serialized_end=16298 + _globals['_INITIATERESPONSE']._serialized_start=16300 + _globals['_INITIATERESPONSE']._serialized_end=16334 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=16336 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=16404 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=16406 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=16455 + _globals['_ISSELFCALVALIDREQUEST']._serialized_start=16457 + _globals['_ISSELFCALVALIDREQUEST']._serialized_end=16516 + _globals['_ISSELFCALVALIDRESPONSE']._serialized_start=16519 + _globals['_ISSELFCALVALIDRESPONSE']._serialized_end=16668 + _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_start=16670 + _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_end=16782 + _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_start=16784 + _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_end=16836 + _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_start=16838 + _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_end=16907 + _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_start=16909 + _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_end=16959 + _globals['_READIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_start=16962 + _globals['_READIQSINGLERECORDCOMPLEXF64REQUEST']._serialized_end=17099 + _globals['_READIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_start=17102 + _globals['_READIQSINGLERECORDCOMPLEXF64RESPONSE']._serialized_end=17247 + _globals['_READPOWERSPECTRUMF32REQUEST']._serialized_start=17250 + _globals['_READPOWERSPECTRUMF32REQUEST']._serialized_end=17379 + _globals['_READPOWERSPECTRUMF32RESPONSE']._serialized_start=17381 + _globals['_READPOWERSPECTRUMF32RESPONSE']._serialized_end=17506 + _globals['_READPOWERSPECTRUMF64REQUEST']._serialized_start=17509 + _globals['_READPOWERSPECTRUMF64REQUEST']._serialized_end=17638 + _globals['_READPOWERSPECTRUMF64RESPONSE']._serialized_start=17640 + _globals['_READPOWERSPECTRUMF64RESPONSE']._serialized_end=17765 + _globals['_RESETREQUEST']._serialized_start=17767 + _globals['_RESETREQUEST']._serialized_end=17817 + _globals['_RESETRESPONSE']._serialized_start=17819 + _globals['_RESETRESPONSE']._serialized_end=17850 + _globals['_RESETATTRIBUTEREQUEST']._serialized_start=17853 + _globals['_RESETATTRIBUTEREQUEST']._serialized_end=17986 + _globals['_RESETATTRIBUTERESPONSE']._serialized_start=17988 + _globals['_RESETATTRIBUTERESPONSE']._serialized_end=18028 + _globals['_RESETDEVICEREQUEST']._serialized_start=18030 + _globals['_RESETDEVICEREQUEST']._serialized_end=18086 + _globals['_RESETDEVICERESPONSE']._serialized_start=18088 + _globals['_RESETDEVICERESPONSE']._serialized_end=18125 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=18127 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=18189 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=18191 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=18234 + _globals['_RESETWITHOPTIONSREQUEST']._serialized_start=18237 + _globals['_RESETWITHOPTIONSREQUEST']._serialized_end=18416 + _globals['_RESETWITHOPTIONSRESPONSE']._serialized_start=18418 + _globals['_RESETWITHOPTIONSRESPONSE']._serialized_end=18460 + _globals['_REVISIONQUERYREQUEST']._serialized_start=18462 + _globals['_REVISIONQUERYREQUEST']._serialized_end=18520 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=18522 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=18600 + _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_start=18602 + _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_end=18712 + _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_start=18714 + _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_end=18764 + _globals['_SELFCALREQUEST']._serialized_start=18766 + _globals['_SELFCALREQUEST']._serialized_end=18818 + _globals['_SELFCALRESPONSE']._serialized_start=18820 + _globals['_SELFCALRESPONSE']._serialized_end=18853 + _globals['_SELFCALIBRATEREQUEST']._serialized_start=18856 + _globals['_SELFCALIBRATEREQUEST']._serialized_end=19023 + _globals['_SELFCALIBRATERESPONSE']._serialized_start=19025 + _globals['_SELFCALIBRATERESPONSE']._serialized_end=19064 + _globals['_SELFCALIBRATERANGEREQUEST']._serialized_start=19067 + _globals['_SELFCALIBRATERANGEREQUEST']._serialized_end=19343 + _globals['_SELFCALIBRATERANGERESPONSE']._serialized_start=19345 + _globals['_SELFCALIBRATERANGERESPONSE']._serialized_end=19389 + _globals['_SELFTESTREQUEST']._serialized_start=19391 + _globals['_SELFTESTREQUEST']._serialized_end=19444 + _globals['_SELFTESTRESPONSE']._serialized_start=19446 + _globals['_SELFTESTRESPONSE']._serialized_end=19523 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=19526 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=19701 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=19703 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=19752 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19755 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19910 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19912 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19959 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=19962 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=20193 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=20195 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=20240 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=20243 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=20400 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=20402 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=20447 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=20450 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=20608 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=20610 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=20656 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=20659 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=20838 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=20840 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=20887 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=20890 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=21136 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=21138 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=21184 + _globals['_SETCALUSERDEFINEDINFOREQUEST']._serialized_start=21186 + _globals['_SETCALUSERDEFINEDINFOREQUEST']._serialized_end=21266 + _globals['_SETCALUSERDEFINEDINFORESPONSE']._serialized_start=21268 + _globals['_SETCALUSERDEFINEDINFORESPONSE']._serialized_end=21315 + _globals['_SETUSERDATAREQUEST']._serialized_start=21317 + _globals['_SETUSERDATAREQUEST']._serialized_end=21414 + _globals['_SETUSERDATARESPONSE']._serialized_start=21416 + _globals['_SETUSERDATARESPONSE']._serialized_end=21467 + _globals['_NIRFSA']._serialized_start=49402 + _globals['_NIRFSA']._serialized_end=61299 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py b/generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py new file mode 100644 index 0000000000..fc0d9292f5 --- /dev/null +++ b/generated/nirfsa/nirfsa/nirfsa_pb2_grpc.py @@ -0,0 +1,3498 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nirfsa_pb2 as nirfsa__pb2 + + +class NiRFSAStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Abort = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Abort', + request_serializer=nirfsa__pb2.AbortRequest.SerializeToString, + response_deserializer=nirfsa__pb2.AbortResponse.FromString, + ) + self.CheckAcquisitionStatus = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/CheckAcquisitionStatus', + request_serializer=nirfsa__pb2.CheckAcquisitionStatusRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CheckAcquisitionStatusResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ClearError', + request_serializer=nirfsa__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ClearErrorResponse.FromString, + ) + self.ClearSelfCalibrateRange = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ClearSelfCalibrateRange', + request_serializer=nirfsa__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ClearSelfCalibrateRangeResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Close', + request_serializer=nirfsa__pb2.CloseRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CloseResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Commit', + request_serializer=nirfsa__pb2.CommitRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CommitResponse.FromString, + ) + self.ConfigureAcquisitionType = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureAcquisitionType', + request_serializer=nirfsa__pb2.ConfigureAcquisitionTypeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureAcquisitionTypeResponse.FromString, + ) + self.ConfigureDeembeddingTableInterpolationLinear = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationLinear', + request_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, + ) + self.ConfigureDeembeddingTableInterpolationNearest = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationNearest', + request_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, + ) + self.ConfigureDeembeddingTableInterpolationSpline = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationSpline', + request_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, + ) + self.ConfigureDigitalEdgeAdvanceTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeAdvanceTrigger', + request_serializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeRefTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeRefTrigger', + request_serializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeStartTrigger', + request_serializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + ) + self.ConfigureIQCarrierFrequency = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureIQCarrierFrequency', + request_serializer=nirfsa__pb2.ConfigureIQCarrierFrequencyRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureIQCarrierFrequencyResponse.FromString, + ) + self.ConfigureIQPowerEdgeRefTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureIQPowerEdgeRefTrigger', + request_serializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerResponse.FromString, + ) + self.ConfigureIQRate = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureIQRate', + request_serializer=nirfsa__pb2.ConfigureIQRateRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureIQRateResponse.FromString, + ) + self.ConfigureNumberOfRecords = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureNumberOfRecords', + request_serializer=nirfsa__pb2.ConfigureNumberOfRecordsRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureNumberOfRecordsResponse.FromString, + ) + self.ConfigureNumberOfSamples = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureNumberOfSamples', + request_serializer=nirfsa__pb2.ConfigureNumberOfSamplesRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureNumberOfSamplesResponse.FromString, + ) + self.ConfigurePXIChassisClk10 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigurePXIChassisClk10', + request_serializer=nirfsa__pb2.ConfigurePXIChassisClk10Request.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigurePXIChassisClk10Response.FromString, + ) + self.ConfigureRefClock = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureRefClock', + request_serializer=nirfsa__pb2.ConfigureRefClockRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureRefClockResponse.FromString, + ) + self.ConfigureReferenceLevel = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureReferenceLevel', + request_serializer=nirfsa__pb2.ConfigureReferenceLevelRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureReferenceLevelResponse.FromString, + ) + self.ConfigureResolutionBandwidth = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureResolutionBandwidth', + request_serializer=nirfsa__pb2.ConfigureResolutionBandwidthRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureResolutionBandwidthResponse.FromString, + ) + self.ConfigureSoftwareEdgeAdvanceTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeAdvanceTrigger', + request_serializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeRefTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeRefTrigger', + request_serializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerResponse.FromString, + ) + self.ConfigureSoftwareEdgeStartTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeStartTrigger', + request_serializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + ) + self.ConfigureSpectrumFrequencyCenterSpan = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyCenterSpan', + request_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanResponse.FromString, + ) + self.ConfigureSpectrumFrequencyStartStop = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyStartStop', + request_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopResponse.FromString, + ) + self.CreateConfigurationList = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/CreateConfigurationList', + request_serializer=nirfsa__pb2.CreateConfigurationListRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CreateConfigurationListResponse.FromString, + ) + self.CreateConfigurationListStep = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/CreateConfigurationListStep', + request_serializer=nirfsa__pb2.CreateConfigurationListStepRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CreateConfigurationListStepResponse.FromString, + ) + self.CreateDeembeddingSparameterTableArray = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableArray', + request_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, + ) + self.CreateDeembeddingSparameterTableS2PFile = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableS2PFile', + request_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, + response_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, + ) + self.DeleteAllDeembeddingTables = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/DeleteAllDeembeddingTables', + request_serializer=nirfsa__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DeleteAllDeembeddingTablesResponse.FromString, + ) + self.DeleteConfigurationList = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/DeleteConfigurationList', + request_serializer=nirfsa__pb2.DeleteConfigurationListRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DeleteConfigurationListResponse.FromString, + ) + self.DeleteDeembeddingTable = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/DeleteDeembeddingTable', + request_serializer=nirfsa__pb2.DeleteDeembeddingTableRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DeleteDeembeddingTableResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Disable', + request_serializer=nirfsa__pb2.DisableRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DisableResponse.FromString, + ) + self.DisableAdvanceTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/DisableAdvanceTrigger', + request_serializer=nirfsa__pb2.DisableAdvanceTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DisableAdvanceTriggerResponse.FromString, + ) + self.DisableRefTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/DisableRefTrigger', + request_serializer=nirfsa__pb2.DisableRefTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DisableRefTriggerResponse.FromString, + ) + self.DisableStartTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/DisableStartTrigger', + request_serializer=nirfsa__pb2.DisableStartTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.DisableStartTriggerResponse.FromString, + ) + self.EnableSessionAccess = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/EnableSessionAccess', + request_serializer=nirfsa__pb2.EnableSessionAccessRequest.SerializeToString, + response_deserializer=nirfsa__pb2.EnableSessionAccessResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ErrorMessage', + request_serializer=nirfsa__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ErrorMessageResponse.FromString, + ) + self.ErrorQuery = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ErrorQuery', + request_serializer=nirfsa__pb2.ErrorQueryRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ErrorQueryResponse.FromString, + ) + self.ExportSignal = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ExportSignal', + request_serializer=nirfsa__pb2.ExportSignalRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ExportSignalResponse.FromString, + ) + self.FetchIQMultiRecordComplexF32 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF32', + request_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Request.SerializeToString, + response_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Response.FromString, + ) + self.FetchIQMultiRecordComplexF64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF64', + request_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Request.SerializeToString, + response_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Response.FromString, + ) + self.FetchIQMultiRecordComplexI16 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexI16', + request_serializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Request.SerializeToString, + response_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Response.FromString, + ) + self.FetchIQSingleRecordComplexF32 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF32', + request_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Request.SerializeToString, + response_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Response.FromString, + ) + self.FetchIQSingleRecordComplexF64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF64', + request_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Request.SerializeToString, + response_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Response.FromString, + ) + self.FetchIQSingleRecordComplexI16 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexI16', + request_serializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Request.SerializeToString, + response_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Response.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetAttributeViBoolean', + request_serializer=nirfsa__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetAttributeViInt32', + request_serializer=nirfsa__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nirfsa__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetAttributeViInt64', + request_serializer=nirfsa__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=nirfsa__pb2.GetAttributeViInt64Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetAttributeViReal64', + request_serializer=nirfsa__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nirfsa__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetAttributeViSession', + request_serializer=nirfsa__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetAttributeViSessionResponse.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetAttributeViString', + request_serializer=nirfsa__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetCalUserDefinedInfo = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfo', + request_serializer=nirfsa__pb2.GetCalUserDefinedInfoRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetCalUserDefinedInfoResponse.FromString, + ) + self.GetCalUserDefinedInfoMaxSize = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfoMaxSize', + request_serializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeResponse.FromString, + ) + self.GetDeembeddingSparameters = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetDeembeddingSparameters', + request_serializer=nirfsa__pb2.GetDeembeddingSparametersRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetDeembeddingSparametersResponse.FromString, + ) + self.GetDeviceResponse = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetDeviceResponse', + request_serializer=nirfsa__pb2.GetDeviceResponseRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetDeviceResponseResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetError', + request_serializer=nirfsa__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetErrorResponse.FromString, + ) + self.GetExtCalLastDateAndTime = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetExtCalLastDateAndTime', + request_serializer=nirfsa__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetExtCalLastDateAndTimeResponse.FromString, + ) + self.GetExtCalLastTemp = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetExtCalLastTemp', + request_serializer=nirfsa__pb2.GetExtCalLastTempRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetExtCalLastTempResponse.FromString, + ) + self.GetExtCalRecommendedInterval = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetExtCalRecommendedInterval', + request_serializer=nirfsa__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetExtCalRecommendedIntervalResponse.FromString, + ) + self.GetFetchBacklog = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetFetchBacklog', + request_serializer=nirfsa__pb2.GetFetchBacklogRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetFetchBacklogResponse.FromString, + ) + self.GetFrequencyResponse = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetFrequencyResponse', + request_serializer=nirfsa__pb2.GetFrequencyResponseRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetFrequencyResponseResponse.FromString, + ) + self.GetNormalizationCoefficients = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetNormalizationCoefficients', + request_serializer=nirfsa__pb2.GetNormalizationCoefficientsRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetNormalizationCoefficientsResponse.FromString, + ) + self.GetNumberOfSpectralLines = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetNumberOfSpectralLines', + request_serializer=nirfsa__pb2.GetNumberOfSpectralLinesRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetNumberOfSpectralLinesResponse.FromString, + ) + self.GetRelayName = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetRelayName', + request_serializer=nirfsa__pb2.GetRelayNameRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetRelayNameResponse.FromString, + ) + self.GetRelayOperationsCount = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetRelayOperationsCount', + request_serializer=nirfsa__pb2.GetRelayOperationsCountRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetRelayOperationsCountResponse.FromString, + ) + self.GetScalingCoefficients = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetScalingCoefficients', + request_serializer=nirfsa__pb2.GetScalingCoefficientsRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetScalingCoefficientsResponse.FromString, + ) + self.GetSelfCalLastDateAndTime = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetSelfCalLastDateAndTime', + request_serializer=nirfsa__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetSelfCalLastDateAndTimeResponse.FromString, + ) + self.GetSelfCalLastTemp = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetSelfCalLastTemp', + request_serializer=nirfsa__pb2.GetSelfCalLastTempRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetSelfCalLastTempResponse.FromString, + ) + self.GetSpectralInfoForSMT = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetSpectralInfoForSMT', + request_serializer=nirfsa__pb2.GetSpectralInfoForSMTRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetSpectralInfoForSMTResponse.FromString, + ) + self.GetStreamEndpointHandle = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetStreamEndpointHandle', + request_serializer=nirfsa__pb2.GetStreamEndpointHandleRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetStreamEndpointHandleResponse.FromString, + ) + self.GetTerminalName = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetTerminalName', + request_serializer=nirfsa__pb2.GetTerminalNameRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetTerminalNameResponse.FromString, + ) + self.GetUserData = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/GetUserData', + request_serializer=nirfsa__pb2.GetUserDataRequest.SerializeToString, + response_deserializer=nirfsa__pb2.GetUserDataResponse.FromString, + ) + self.Init = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Init', + request_serializer=nirfsa__pb2.InitRequest.SerializeToString, + response_deserializer=nirfsa__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/InitWithOptions', + request_serializer=nirfsa__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=nirfsa__pb2.InitWithOptionsResponse.FromString, + ) + self.Initiate = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Initiate', + request_serializer=nirfsa__pb2.InitiateRequest.SerializeToString, + response_deserializer=nirfsa__pb2.InitiateResponse.FromString, + ) + self.InvalidateAllAttributes = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/InvalidateAllAttributes', + request_serializer=nirfsa__pb2.InvalidateAllAttributesRequest.SerializeToString, + response_deserializer=nirfsa__pb2.InvalidateAllAttributesResponse.FromString, + ) + self.IsSelfCalValid = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/IsSelfCalValid', + request_serializer=nirfsa__pb2.IsSelfCalValidRequest.SerializeToString, + response_deserializer=nirfsa__pb2.IsSelfCalValidResponse.FromString, + ) + self.LoadConfigurationsFromFile = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/LoadConfigurationsFromFile', + request_serializer=nirfsa__pb2.LoadConfigurationsFromFileRequest.SerializeToString, + response_deserializer=nirfsa__pb2.LoadConfigurationsFromFileResponse.FromString, + ) + self.PerformThermalCorrection = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/PerformThermalCorrection', + request_serializer=nirfsa__pb2.PerformThermalCorrectionRequest.SerializeToString, + response_deserializer=nirfsa__pb2.PerformThermalCorrectionResponse.FromString, + ) + self.ReadIQSingleRecordComplexF64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ReadIQSingleRecordComplexF64', + request_serializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Request.SerializeToString, + response_deserializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Response.FromString, + ) + self.ReadPowerSpectrumF32 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF32', + request_serializer=nirfsa__pb2.ReadPowerSpectrumF32Request.SerializeToString, + response_deserializer=nirfsa__pb2.ReadPowerSpectrumF32Response.FromString, + ) + self.ReadPowerSpectrumF64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF64', + request_serializer=nirfsa__pb2.ReadPowerSpectrumF64Request.SerializeToString, + response_deserializer=nirfsa__pb2.ReadPowerSpectrumF64Response.FromString, + ) + self.Reset = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/Reset', + request_serializer=nirfsa__pb2.ResetRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ResetResponse.FromString, + ) + self.ResetAttribute = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ResetAttribute', + request_serializer=nirfsa__pb2.ResetAttributeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ResetAttributeResponse.FromString, + ) + self.ResetDevice = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ResetDevice', + request_serializer=nirfsa__pb2.ResetDeviceRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ResetDeviceResponse.FromString, + ) + self.ResetWithDefaults = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ResetWithDefaults', + request_serializer=nirfsa__pb2.ResetWithDefaultsRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ResetWithDefaultsResponse.FromString, + ) + self.ResetWithOptions = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/ResetWithOptions', + request_serializer=nirfsa__pb2.ResetWithOptionsRequest.SerializeToString, + response_deserializer=nirfsa__pb2.ResetWithOptionsResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/RevisionQuery', + request_serializer=nirfsa__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=nirfsa__pb2.RevisionQueryResponse.FromString, + ) + self.SaveConfigurationsToFile = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SaveConfigurationsToFile', + request_serializer=nirfsa__pb2.SaveConfigurationsToFileRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SaveConfigurationsToFileResponse.FromString, + ) + self.SelfCal = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SelfCal', + request_serializer=nirfsa__pb2.SelfCalRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SelfCalResponse.FromString, + ) + self.SelfCalibrate = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SelfCalibrate', + request_serializer=nirfsa__pb2.SelfCalibrateRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SelfCalibrateResponse.FromString, + ) + self.SelfCalibrateRange = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SelfCalibrateRange', + request_serializer=nirfsa__pb2.SelfCalibrateRangeRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SelfCalibrateRangeResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SelfTest', + request_serializer=nirfsa__pb2.SelfTestRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SelfTestResponse.FromString, + ) + self.SendSoftwareEdgeTrigger = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SendSoftwareEdgeTrigger', + request_serializer=nirfsa__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SendSoftwareEdgeTriggerResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetAttributeViBoolean', + request_serializer=nirfsa__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetAttributeViInt32', + request_serializer=nirfsa__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nirfsa__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetAttributeViInt64', + request_serializer=nirfsa__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=nirfsa__pb2.SetAttributeViInt64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetAttributeViReal64', + request_serializer=nirfsa__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nirfsa__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetAttributeViSession', + request_serializer=nirfsa__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetAttributeViString', + request_serializer=nirfsa__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SetAttributeViStringResponse.FromString, + ) + self.SetCalUserDefinedInfo = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetCalUserDefinedInfo', + request_serializer=nirfsa__pb2.SetCalUserDefinedInfoRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SetCalUserDefinedInfoResponse.FromString, + ) + self.SetUserData = channel.unary_unary( + '/nirfsa_grpc.NiRFSA/SetUserData', + request_serializer=nirfsa__pb2.SetUserDataRequest.SerializeToString, + response_deserializer=nirfsa__pb2.SetUserDataResponse.FromString, + ) + + +class NiRFSAServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAcquisitionStatus(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearSelfCalibrateRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureAcquisitionType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDeembeddingTableInterpolationLinear(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDeembeddingTableInterpolationNearest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDeembeddingTableInterpolationSpline(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeAdvanceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeRefTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureIQCarrierFrequency(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureIQPowerEdgeRefTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureIQRate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureNumberOfRecords(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureNumberOfSamples(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePXIChassisClk10(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureRefClock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureReferenceLevel(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureResolutionBandwidth(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeAdvanceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeRefTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSpectrumFrequencyCenterSpan(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSpectrumFrequencyStartStop(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateConfigurationList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateConfigurationListStep(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDeembeddingSparameterTableArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDeembeddingSparameterTableS2PFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAllDeembeddingTables(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteConfigurationList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteDeembeddingTable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableAdvanceTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableRefTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def EnableSessionAccess(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchIQMultiRecordComplexF32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchIQMultiRecordComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchIQMultiRecordComplexI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchIQSingleRecordComplexF32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchIQSingleRecordComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchIQSingleRecordComplexI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCalUserDefinedInfo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetCalUserDefinedInfoMaxSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDeembeddingSparameters(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDeviceResponse(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalLastTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExtCalRecommendedInterval(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetFetchBacklog(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetFrequencyResponse(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNormalizationCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNumberOfSpectralLines(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRelayName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRelayOperationsCount(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetScalingCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalLastTemp(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSpectralInfoForSMT(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetStreamEndpointHandle(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTerminalName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetUserData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Initiate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InvalidateAllAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsSelfCalValid(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadConfigurationsFromFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformThermalCorrection(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadIQSingleRecordComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadPowerSpectrumF32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadPowerSpectrumF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetDevice(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SaveConfigurationsToFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCalibrate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCalibrateRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareEdgeTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetCalUserDefinedInfo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetUserData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiRFSAServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=nirfsa__pb2.AbortRequest.FromString, + response_serializer=nirfsa__pb2.AbortResponse.SerializeToString, + ), + 'CheckAcquisitionStatus': grpc.unary_unary_rpc_method_handler( + servicer.CheckAcquisitionStatus, + request_deserializer=nirfsa__pb2.CheckAcquisitionStatusRequest.FromString, + response_serializer=nirfsa__pb2.CheckAcquisitionStatusResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=nirfsa__pb2.ClearErrorRequest.FromString, + response_serializer=nirfsa__pb2.ClearErrorResponse.SerializeToString, + ), + 'ClearSelfCalibrateRange': grpc.unary_unary_rpc_method_handler( + servicer.ClearSelfCalibrateRange, + request_deserializer=nirfsa__pb2.ClearSelfCalibrateRangeRequest.FromString, + response_serializer=nirfsa__pb2.ClearSelfCalibrateRangeResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nirfsa__pb2.CloseRequest.FromString, + response_serializer=nirfsa__pb2.CloseResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=nirfsa__pb2.CommitRequest.FromString, + response_serializer=nirfsa__pb2.CommitResponse.SerializeToString, + ), + 'ConfigureAcquisitionType': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureAcquisitionType, + request_deserializer=nirfsa__pb2.ConfigureAcquisitionTypeRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureAcquisitionTypeResponse.SerializeToString, + ), + 'ConfigureDeembeddingTableInterpolationLinear': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDeembeddingTableInterpolationLinear, + request_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.SerializeToString, + ), + 'ConfigureDeembeddingTableInterpolationNearest': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDeembeddingTableInterpolationNearest, + request_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.SerializeToString, + ), + 'ConfigureDeembeddingTableInterpolationSpline': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDeembeddingTableInterpolationSpline, + request_deserializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeAdvanceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeAdvanceTrigger, + request_deserializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeRefTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeRefTrigger, + request_deserializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureDigitalEdgeRefTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeStartTrigger, + request_deserializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, + ), + 'ConfigureIQCarrierFrequency': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureIQCarrierFrequency, + request_deserializer=nirfsa__pb2.ConfigureIQCarrierFrequencyRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureIQCarrierFrequencyResponse.SerializeToString, + ), + 'ConfigureIQPowerEdgeRefTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureIQPowerEdgeRefTrigger, + request_deserializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerResponse.SerializeToString, + ), + 'ConfigureIQRate': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureIQRate, + request_deserializer=nirfsa__pb2.ConfigureIQRateRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureIQRateResponse.SerializeToString, + ), + 'ConfigureNumberOfRecords': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureNumberOfRecords, + request_deserializer=nirfsa__pb2.ConfigureNumberOfRecordsRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureNumberOfRecordsResponse.SerializeToString, + ), + 'ConfigureNumberOfSamples': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureNumberOfSamples, + request_deserializer=nirfsa__pb2.ConfigureNumberOfSamplesRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureNumberOfSamplesResponse.SerializeToString, + ), + 'ConfigurePXIChassisClk10': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePXIChassisClk10, + request_deserializer=nirfsa__pb2.ConfigurePXIChassisClk10Request.FromString, + response_serializer=nirfsa__pb2.ConfigurePXIChassisClk10Response.SerializeToString, + ), + 'ConfigureRefClock': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureRefClock, + request_deserializer=nirfsa__pb2.ConfigureRefClockRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureRefClockResponse.SerializeToString, + ), + 'ConfigureReferenceLevel': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureReferenceLevel, + request_deserializer=nirfsa__pb2.ConfigureReferenceLevelRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureReferenceLevelResponse.SerializeToString, + ), + 'ConfigureResolutionBandwidth': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureResolutionBandwidth, + request_deserializer=nirfsa__pb2.ConfigureResolutionBandwidthRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureResolutionBandwidthResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeAdvanceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeAdvanceTrigger, + request_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeRefTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeRefTrigger, + request_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareEdgeStartTrigger, + request_deserializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerResponse.SerializeToString, + ), + 'ConfigureSpectrumFrequencyCenterSpan': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSpectrumFrequencyCenterSpan, + request_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanResponse.SerializeToString, + ), + 'ConfigureSpectrumFrequencyStartStop': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSpectrumFrequencyStartStop, + request_deserializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopRequest.FromString, + response_serializer=nirfsa__pb2.ConfigureSpectrumFrequencyStartStopResponse.SerializeToString, + ), + 'CreateConfigurationList': grpc.unary_unary_rpc_method_handler( + servicer.CreateConfigurationList, + request_deserializer=nirfsa__pb2.CreateConfigurationListRequest.FromString, + response_serializer=nirfsa__pb2.CreateConfigurationListResponse.SerializeToString, + ), + 'CreateConfigurationListStep': grpc.unary_unary_rpc_method_handler( + servicer.CreateConfigurationListStep, + request_deserializer=nirfsa__pb2.CreateConfigurationListStepRequest.FromString, + response_serializer=nirfsa__pb2.CreateConfigurationListStepResponse.SerializeToString, + ), + 'CreateDeembeddingSparameterTableArray': grpc.unary_unary_rpc_method_handler( + servicer.CreateDeembeddingSparameterTableArray, + request_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayRequest.FromString, + response_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableArrayResponse.SerializeToString, + ), + 'CreateDeembeddingSparameterTableS2PFile': grpc.unary_unary_rpc_method_handler( + servicer.CreateDeembeddingSparameterTableS2PFile, + request_deserializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileRequest.FromString, + response_serializer=nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileResponse.SerializeToString, + ), + 'DeleteAllDeembeddingTables': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAllDeembeddingTables, + request_deserializer=nirfsa__pb2.DeleteAllDeembeddingTablesRequest.FromString, + response_serializer=nirfsa__pb2.DeleteAllDeembeddingTablesResponse.SerializeToString, + ), + 'DeleteConfigurationList': grpc.unary_unary_rpc_method_handler( + servicer.DeleteConfigurationList, + request_deserializer=nirfsa__pb2.DeleteConfigurationListRequest.FromString, + response_serializer=nirfsa__pb2.DeleteConfigurationListResponse.SerializeToString, + ), + 'DeleteDeembeddingTable': grpc.unary_unary_rpc_method_handler( + servicer.DeleteDeembeddingTable, + request_deserializer=nirfsa__pb2.DeleteDeembeddingTableRequest.FromString, + response_serializer=nirfsa__pb2.DeleteDeembeddingTableResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=nirfsa__pb2.DisableRequest.FromString, + response_serializer=nirfsa__pb2.DisableResponse.SerializeToString, + ), + 'DisableAdvanceTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableAdvanceTrigger, + request_deserializer=nirfsa__pb2.DisableAdvanceTriggerRequest.FromString, + response_serializer=nirfsa__pb2.DisableAdvanceTriggerResponse.SerializeToString, + ), + 'DisableRefTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableRefTrigger, + request_deserializer=nirfsa__pb2.DisableRefTriggerRequest.FromString, + response_serializer=nirfsa__pb2.DisableRefTriggerResponse.SerializeToString, + ), + 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableStartTrigger, + request_deserializer=nirfsa__pb2.DisableStartTriggerRequest.FromString, + response_serializer=nirfsa__pb2.DisableStartTriggerResponse.SerializeToString, + ), + 'EnableSessionAccess': grpc.unary_unary_rpc_method_handler( + servicer.EnableSessionAccess, + request_deserializer=nirfsa__pb2.EnableSessionAccessRequest.FromString, + response_serializer=nirfsa__pb2.EnableSessionAccessResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=nirfsa__pb2.ErrorMessageRequest.FromString, + response_serializer=nirfsa__pb2.ErrorMessageResponse.SerializeToString, + ), + 'ErrorQuery': grpc.unary_unary_rpc_method_handler( + servicer.ErrorQuery, + request_deserializer=nirfsa__pb2.ErrorQueryRequest.FromString, + response_serializer=nirfsa__pb2.ErrorQueryResponse.SerializeToString, + ), + 'ExportSignal': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignal, + request_deserializer=nirfsa__pb2.ExportSignalRequest.FromString, + response_serializer=nirfsa__pb2.ExportSignalResponse.SerializeToString, + ), + 'FetchIQMultiRecordComplexF32': grpc.unary_unary_rpc_method_handler( + servicer.FetchIQMultiRecordComplexF32, + request_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Request.FromString, + response_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF32Response.SerializeToString, + ), + 'FetchIQMultiRecordComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.FetchIQMultiRecordComplexF64, + request_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Request.FromString, + response_serializer=nirfsa__pb2.FetchIQMultiRecordComplexF64Response.SerializeToString, + ), + 'FetchIQMultiRecordComplexI16': grpc.unary_unary_rpc_method_handler( + servicer.FetchIQMultiRecordComplexI16, + request_deserializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Request.FromString, + response_serializer=nirfsa__pb2.FetchIQMultiRecordComplexI16Response.SerializeToString, + ), + 'FetchIQSingleRecordComplexF32': grpc.unary_unary_rpc_method_handler( + servicer.FetchIQSingleRecordComplexF32, + request_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Request.FromString, + response_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF32Response.SerializeToString, + ), + 'FetchIQSingleRecordComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.FetchIQSingleRecordComplexF64, + request_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Request.FromString, + response_serializer=nirfsa__pb2.FetchIQSingleRecordComplexF64Response.SerializeToString, + ), + 'FetchIQSingleRecordComplexI16': grpc.unary_unary_rpc_method_handler( + servicer.FetchIQSingleRecordComplexI16, + request_deserializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Request.FromString, + response_serializer=nirfsa__pb2.FetchIQSingleRecordComplexI16Response.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nirfsa__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nirfsa__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nirfsa__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nirfsa__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=nirfsa__pb2.GetAttributeViInt64Request.FromString, + response_serializer=nirfsa__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nirfsa__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nirfsa__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nirfsa__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nirfsa__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nirfsa__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nirfsa__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetCalUserDefinedInfo': grpc.unary_unary_rpc_method_handler( + servicer.GetCalUserDefinedInfo, + request_deserializer=nirfsa__pb2.GetCalUserDefinedInfoRequest.FromString, + response_serializer=nirfsa__pb2.GetCalUserDefinedInfoResponse.SerializeToString, + ), + 'GetCalUserDefinedInfoMaxSize': grpc.unary_unary_rpc_method_handler( + servicer.GetCalUserDefinedInfoMaxSize, + request_deserializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeRequest.FromString, + response_serializer=nirfsa__pb2.GetCalUserDefinedInfoMaxSizeResponse.SerializeToString, + ), + 'GetDeembeddingSparameters': grpc.unary_unary_rpc_method_handler( + servicer.GetDeembeddingSparameters, + request_deserializer=nirfsa__pb2.GetDeembeddingSparametersRequest.FromString, + response_serializer=nirfsa__pb2.GetDeembeddingSparametersResponse.SerializeToString, + ), + 'GetDeviceResponse': grpc.unary_unary_rpc_method_handler( + servicer.GetDeviceResponse, + request_deserializer=nirfsa__pb2.GetDeviceResponseRequest.FromString, + response_serializer=nirfsa__pb2.GetDeviceResponseResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nirfsa__pb2.GetErrorRequest.FromString, + response_serializer=nirfsa__pb2.GetErrorResponse.SerializeToString, + ), + 'GetExtCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalLastDateAndTime, + request_deserializer=nirfsa__pb2.GetExtCalLastDateAndTimeRequest.FromString, + response_serializer=nirfsa__pb2.GetExtCalLastDateAndTimeResponse.SerializeToString, + ), + 'GetExtCalLastTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalLastTemp, + request_deserializer=nirfsa__pb2.GetExtCalLastTempRequest.FromString, + response_serializer=nirfsa__pb2.GetExtCalLastTempResponse.SerializeToString, + ), + 'GetExtCalRecommendedInterval': grpc.unary_unary_rpc_method_handler( + servicer.GetExtCalRecommendedInterval, + request_deserializer=nirfsa__pb2.GetExtCalRecommendedIntervalRequest.FromString, + response_serializer=nirfsa__pb2.GetExtCalRecommendedIntervalResponse.SerializeToString, + ), + 'GetFetchBacklog': grpc.unary_unary_rpc_method_handler( + servicer.GetFetchBacklog, + request_deserializer=nirfsa__pb2.GetFetchBacklogRequest.FromString, + response_serializer=nirfsa__pb2.GetFetchBacklogResponse.SerializeToString, + ), + 'GetFrequencyResponse': grpc.unary_unary_rpc_method_handler( + servicer.GetFrequencyResponse, + request_deserializer=nirfsa__pb2.GetFrequencyResponseRequest.FromString, + response_serializer=nirfsa__pb2.GetFrequencyResponseResponse.SerializeToString, + ), + 'GetNormalizationCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.GetNormalizationCoefficients, + request_deserializer=nirfsa__pb2.GetNormalizationCoefficientsRequest.FromString, + response_serializer=nirfsa__pb2.GetNormalizationCoefficientsResponse.SerializeToString, + ), + 'GetNumberOfSpectralLines': grpc.unary_unary_rpc_method_handler( + servicer.GetNumberOfSpectralLines, + request_deserializer=nirfsa__pb2.GetNumberOfSpectralLinesRequest.FromString, + response_serializer=nirfsa__pb2.GetNumberOfSpectralLinesResponse.SerializeToString, + ), + 'GetRelayName': grpc.unary_unary_rpc_method_handler( + servicer.GetRelayName, + request_deserializer=nirfsa__pb2.GetRelayNameRequest.FromString, + response_serializer=nirfsa__pb2.GetRelayNameResponse.SerializeToString, + ), + 'GetRelayOperationsCount': grpc.unary_unary_rpc_method_handler( + servicer.GetRelayOperationsCount, + request_deserializer=nirfsa__pb2.GetRelayOperationsCountRequest.FromString, + response_serializer=nirfsa__pb2.GetRelayOperationsCountResponse.SerializeToString, + ), + 'GetScalingCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.GetScalingCoefficients, + request_deserializer=nirfsa__pb2.GetScalingCoefficientsRequest.FromString, + response_serializer=nirfsa__pb2.GetScalingCoefficientsResponse.SerializeToString, + ), + 'GetSelfCalLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalLastDateAndTime, + request_deserializer=nirfsa__pb2.GetSelfCalLastDateAndTimeRequest.FromString, + response_serializer=nirfsa__pb2.GetSelfCalLastDateAndTimeResponse.SerializeToString, + ), + 'GetSelfCalLastTemp': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalLastTemp, + request_deserializer=nirfsa__pb2.GetSelfCalLastTempRequest.FromString, + response_serializer=nirfsa__pb2.GetSelfCalLastTempResponse.SerializeToString, + ), + 'GetSpectralInfoForSMT': grpc.unary_unary_rpc_method_handler( + servicer.GetSpectralInfoForSMT, + request_deserializer=nirfsa__pb2.GetSpectralInfoForSMTRequest.FromString, + response_serializer=nirfsa__pb2.GetSpectralInfoForSMTResponse.SerializeToString, + ), + 'GetStreamEndpointHandle': grpc.unary_unary_rpc_method_handler( + servicer.GetStreamEndpointHandle, + request_deserializer=nirfsa__pb2.GetStreamEndpointHandleRequest.FromString, + response_serializer=nirfsa__pb2.GetStreamEndpointHandleResponse.SerializeToString, + ), + 'GetTerminalName': grpc.unary_unary_rpc_method_handler( + servicer.GetTerminalName, + request_deserializer=nirfsa__pb2.GetTerminalNameRequest.FromString, + response_serializer=nirfsa__pb2.GetTerminalNameResponse.SerializeToString, + ), + 'GetUserData': grpc.unary_unary_rpc_method_handler( + servicer.GetUserData, + request_deserializer=nirfsa__pb2.GetUserDataRequest.FromString, + response_serializer=nirfsa__pb2.GetUserDataResponse.SerializeToString, + ), + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=nirfsa__pb2.InitRequest.FromString, + response_serializer=nirfsa__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=nirfsa__pb2.InitWithOptionsRequest.FromString, + response_serializer=nirfsa__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'Initiate': grpc.unary_unary_rpc_method_handler( + servicer.Initiate, + request_deserializer=nirfsa__pb2.InitiateRequest.FromString, + response_serializer=nirfsa__pb2.InitiateResponse.SerializeToString, + ), + 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( + servicer.InvalidateAllAttributes, + request_deserializer=nirfsa__pb2.InvalidateAllAttributesRequest.FromString, + response_serializer=nirfsa__pb2.InvalidateAllAttributesResponse.SerializeToString, + ), + 'IsSelfCalValid': grpc.unary_unary_rpc_method_handler( + servicer.IsSelfCalValid, + request_deserializer=nirfsa__pb2.IsSelfCalValidRequest.FromString, + response_serializer=nirfsa__pb2.IsSelfCalValidResponse.SerializeToString, + ), + 'LoadConfigurationsFromFile': grpc.unary_unary_rpc_method_handler( + servicer.LoadConfigurationsFromFile, + request_deserializer=nirfsa__pb2.LoadConfigurationsFromFileRequest.FromString, + response_serializer=nirfsa__pb2.LoadConfigurationsFromFileResponse.SerializeToString, + ), + 'PerformThermalCorrection': grpc.unary_unary_rpc_method_handler( + servicer.PerformThermalCorrection, + request_deserializer=nirfsa__pb2.PerformThermalCorrectionRequest.FromString, + response_serializer=nirfsa__pb2.PerformThermalCorrectionResponse.SerializeToString, + ), + 'ReadIQSingleRecordComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.ReadIQSingleRecordComplexF64, + request_deserializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Request.FromString, + response_serializer=nirfsa__pb2.ReadIQSingleRecordComplexF64Response.SerializeToString, + ), + 'ReadPowerSpectrumF32': grpc.unary_unary_rpc_method_handler( + servicer.ReadPowerSpectrumF32, + request_deserializer=nirfsa__pb2.ReadPowerSpectrumF32Request.FromString, + response_serializer=nirfsa__pb2.ReadPowerSpectrumF32Response.SerializeToString, + ), + 'ReadPowerSpectrumF64': grpc.unary_unary_rpc_method_handler( + servicer.ReadPowerSpectrumF64, + request_deserializer=nirfsa__pb2.ReadPowerSpectrumF64Request.FromString, + response_serializer=nirfsa__pb2.ReadPowerSpectrumF64Response.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=nirfsa__pb2.ResetRequest.FromString, + response_serializer=nirfsa__pb2.ResetResponse.SerializeToString, + ), + 'ResetAttribute': grpc.unary_unary_rpc_method_handler( + servicer.ResetAttribute, + request_deserializer=nirfsa__pb2.ResetAttributeRequest.FromString, + response_serializer=nirfsa__pb2.ResetAttributeResponse.SerializeToString, + ), + 'ResetDevice': grpc.unary_unary_rpc_method_handler( + servicer.ResetDevice, + request_deserializer=nirfsa__pb2.ResetDeviceRequest.FromString, + response_serializer=nirfsa__pb2.ResetDeviceResponse.SerializeToString, + ), + 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithDefaults, + request_deserializer=nirfsa__pb2.ResetWithDefaultsRequest.FromString, + response_serializer=nirfsa__pb2.ResetWithDefaultsResponse.SerializeToString, + ), + 'ResetWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithOptions, + request_deserializer=nirfsa__pb2.ResetWithOptionsRequest.FromString, + response_serializer=nirfsa__pb2.ResetWithOptionsResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=nirfsa__pb2.RevisionQueryRequest.FromString, + response_serializer=nirfsa__pb2.RevisionQueryResponse.SerializeToString, + ), + 'SaveConfigurationsToFile': grpc.unary_unary_rpc_method_handler( + servicer.SaveConfigurationsToFile, + request_deserializer=nirfsa__pb2.SaveConfigurationsToFileRequest.FromString, + response_serializer=nirfsa__pb2.SaveConfigurationsToFileResponse.SerializeToString, + ), + 'SelfCal': grpc.unary_unary_rpc_method_handler( + servicer.SelfCal, + request_deserializer=nirfsa__pb2.SelfCalRequest.FromString, + response_serializer=nirfsa__pb2.SelfCalResponse.SerializeToString, + ), + 'SelfCalibrate': grpc.unary_unary_rpc_method_handler( + servicer.SelfCalibrate, + request_deserializer=nirfsa__pb2.SelfCalibrateRequest.FromString, + response_serializer=nirfsa__pb2.SelfCalibrateResponse.SerializeToString, + ), + 'SelfCalibrateRange': grpc.unary_unary_rpc_method_handler( + servicer.SelfCalibrateRange, + request_deserializer=nirfsa__pb2.SelfCalibrateRangeRequest.FromString, + response_serializer=nirfsa__pb2.SelfCalibrateRangeResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=nirfsa__pb2.SelfTestRequest.FromString, + response_serializer=nirfsa__pb2.SelfTestResponse.SerializeToString, + ), + 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareEdgeTrigger, + request_deserializer=nirfsa__pb2.SendSoftwareEdgeTriggerRequest.FromString, + response_serializer=nirfsa__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nirfsa__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nirfsa__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nirfsa__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nirfsa__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=nirfsa__pb2.SetAttributeViInt64Request.FromString, + response_serializer=nirfsa__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nirfsa__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nirfsa__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=nirfsa__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=nirfsa__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nirfsa__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nirfsa__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'SetCalUserDefinedInfo': grpc.unary_unary_rpc_method_handler( + servicer.SetCalUserDefinedInfo, + request_deserializer=nirfsa__pb2.SetCalUserDefinedInfoRequest.FromString, + response_serializer=nirfsa__pb2.SetCalUserDefinedInfoResponse.SerializeToString, + ), + 'SetUserData': grpc.unary_unary_rpc_method_handler( + servicer.SetUserData, + request_deserializer=nirfsa__pb2.SetUserDataRequest.FromString, + response_serializer=nirfsa__pb2.SetUserDataResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nirfsa_grpc.NiRFSA', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiRFSA(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Abort', + nirfsa__pb2.AbortRequest.SerializeToString, + nirfsa__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAcquisitionStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CheckAcquisitionStatus', + nirfsa__pb2.CheckAcquisitionStatusRequest.SerializeToString, + nirfsa__pb2.CheckAcquisitionStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ClearError', + nirfsa__pb2.ClearErrorRequest.SerializeToString, + nirfsa__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearSelfCalibrateRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ClearSelfCalibrateRange', + nirfsa__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, + nirfsa__pb2.ClearSelfCalibrateRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Close', + nirfsa__pb2.CloseRequest.SerializeToString, + nirfsa__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Commit', + nirfsa__pb2.CommitRequest.SerializeToString, + nirfsa__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureAcquisitionType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureAcquisitionType', + nirfsa__pb2.ConfigureAcquisitionTypeRequest.SerializeToString, + nirfsa__pb2.ConfigureAcquisitionTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDeembeddingTableInterpolationLinear(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationLinear', + nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, + nirfsa__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDeembeddingTableInterpolationNearest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationNearest', + nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, + nirfsa__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDeembeddingTableInterpolationSpline(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDeembeddingTableInterpolationSpline', + nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, + nirfsa__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeAdvanceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeAdvanceTrigger', + nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureDigitalEdgeAdvanceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeRefTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeRefTrigger', + nirfsa__pb2.ConfigureDigitalEdgeRefTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureDigitalEdgeRefTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureDigitalEdgeStartTrigger', + nirfsa__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureIQCarrierFrequency(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureIQCarrierFrequency', + nirfsa__pb2.ConfigureIQCarrierFrequencyRequest.SerializeToString, + nirfsa__pb2.ConfigureIQCarrierFrequencyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureIQPowerEdgeRefTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureIQPowerEdgeRefTrigger', + nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureIQPowerEdgeRefTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureIQRate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureIQRate', + nirfsa__pb2.ConfigureIQRateRequest.SerializeToString, + nirfsa__pb2.ConfigureIQRateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureNumberOfRecords(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureNumberOfRecords', + nirfsa__pb2.ConfigureNumberOfRecordsRequest.SerializeToString, + nirfsa__pb2.ConfigureNumberOfRecordsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureNumberOfSamples(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureNumberOfSamples', + nirfsa__pb2.ConfigureNumberOfSamplesRequest.SerializeToString, + nirfsa__pb2.ConfigureNumberOfSamplesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePXIChassisClk10(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigurePXIChassisClk10', + nirfsa__pb2.ConfigurePXIChassisClk10Request.SerializeToString, + nirfsa__pb2.ConfigurePXIChassisClk10Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureRefClock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureRefClock', + nirfsa__pb2.ConfigureRefClockRequest.SerializeToString, + nirfsa__pb2.ConfigureRefClockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureReferenceLevel(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureReferenceLevel', + nirfsa__pb2.ConfigureReferenceLevelRequest.SerializeToString, + nirfsa__pb2.ConfigureReferenceLevelResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureResolutionBandwidth(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureResolutionBandwidth', + nirfsa__pb2.ConfigureResolutionBandwidthRequest.SerializeToString, + nirfsa__pb2.ConfigureResolutionBandwidthResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeAdvanceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeAdvanceTrigger', + nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureSoftwareEdgeAdvanceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeRefTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeRefTrigger', + nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureSoftwareEdgeRefTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSoftwareEdgeStartTrigger', + nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerRequest.SerializeToString, + nirfsa__pb2.ConfigureSoftwareEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSpectrumFrequencyCenterSpan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyCenterSpan', + nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanRequest.SerializeToString, + nirfsa__pb2.ConfigureSpectrumFrequencyCenterSpanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSpectrumFrequencyStartStop(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ConfigureSpectrumFrequencyStartStop', + nirfsa__pb2.ConfigureSpectrumFrequencyStartStopRequest.SerializeToString, + nirfsa__pb2.ConfigureSpectrumFrequencyStartStopResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateConfigurationList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateConfigurationList', + nirfsa__pb2.CreateConfigurationListRequest.SerializeToString, + nirfsa__pb2.CreateConfigurationListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateConfigurationListStep(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateConfigurationListStep', + nirfsa__pb2.CreateConfigurationListStepRequest.SerializeToString, + nirfsa__pb2.CreateConfigurationListStepResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDeembeddingSparameterTableArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableArray', + nirfsa__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, + nirfsa__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDeembeddingSparameterTableS2PFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/CreateDeembeddingSparameterTableS2PFile', + nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, + nirfsa__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAllDeembeddingTables(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DeleteAllDeembeddingTables', + nirfsa__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, + nirfsa__pb2.DeleteAllDeembeddingTablesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteConfigurationList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DeleteConfigurationList', + nirfsa__pb2.DeleteConfigurationListRequest.SerializeToString, + nirfsa__pb2.DeleteConfigurationListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteDeembeddingTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DeleteDeembeddingTable', + nirfsa__pb2.DeleteDeembeddingTableRequest.SerializeToString, + nirfsa__pb2.DeleteDeembeddingTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Disable', + nirfsa__pb2.DisableRequest.SerializeToString, + nirfsa__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableAdvanceTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DisableAdvanceTrigger', + nirfsa__pb2.DisableAdvanceTriggerRequest.SerializeToString, + nirfsa__pb2.DisableAdvanceTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableRefTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DisableRefTrigger', + nirfsa__pb2.DisableRefTriggerRequest.SerializeToString, + nirfsa__pb2.DisableRefTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/DisableStartTrigger', + nirfsa__pb2.DisableStartTriggerRequest.SerializeToString, + nirfsa__pb2.DisableStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def EnableSessionAccess(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/EnableSessionAccess', + nirfsa__pb2.EnableSessionAccessRequest.SerializeToString, + nirfsa__pb2.EnableSessionAccessResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ErrorMessage', + nirfsa__pb2.ErrorMessageRequest.SerializeToString, + nirfsa__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ErrorQuery', + nirfsa__pb2.ErrorQueryRequest.SerializeToString, + nirfsa__pb2.ErrorQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ExportSignal', + nirfsa__pb2.ExportSignalRequest.SerializeToString, + nirfsa__pb2.ExportSignalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchIQMultiRecordComplexF32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF32', + nirfsa__pb2.FetchIQMultiRecordComplexF32Request.SerializeToString, + nirfsa__pb2.FetchIQMultiRecordComplexF32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchIQMultiRecordComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexF64', + nirfsa__pb2.FetchIQMultiRecordComplexF64Request.SerializeToString, + nirfsa__pb2.FetchIQMultiRecordComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchIQMultiRecordComplexI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQMultiRecordComplexI16', + nirfsa__pb2.FetchIQMultiRecordComplexI16Request.SerializeToString, + nirfsa__pb2.FetchIQMultiRecordComplexI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchIQSingleRecordComplexF32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF32', + nirfsa__pb2.FetchIQSingleRecordComplexF32Request.SerializeToString, + nirfsa__pb2.FetchIQSingleRecordComplexF32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchIQSingleRecordComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexF64', + nirfsa__pb2.FetchIQSingleRecordComplexF64Request.SerializeToString, + nirfsa__pb2.FetchIQSingleRecordComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchIQSingleRecordComplexI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/FetchIQSingleRecordComplexI16', + nirfsa__pb2.FetchIQSingleRecordComplexI16Request.SerializeToString, + nirfsa__pb2.FetchIQSingleRecordComplexI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViBoolean', + nirfsa__pb2.GetAttributeViBooleanRequest.SerializeToString, + nirfsa__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViInt32', + nirfsa__pb2.GetAttributeViInt32Request.SerializeToString, + nirfsa__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViInt64', + nirfsa__pb2.GetAttributeViInt64Request.SerializeToString, + nirfsa__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViReal64', + nirfsa__pb2.GetAttributeViReal64Request.SerializeToString, + nirfsa__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViSession', + nirfsa__pb2.GetAttributeViSessionRequest.SerializeToString, + nirfsa__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetAttributeViString', + nirfsa__pb2.GetAttributeViStringRequest.SerializeToString, + nirfsa__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCalUserDefinedInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfo', + nirfsa__pb2.GetCalUserDefinedInfoRequest.SerializeToString, + nirfsa__pb2.GetCalUserDefinedInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetCalUserDefinedInfoMaxSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetCalUserDefinedInfoMaxSize', + nirfsa__pb2.GetCalUserDefinedInfoMaxSizeRequest.SerializeToString, + nirfsa__pb2.GetCalUserDefinedInfoMaxSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDeembeddingSparameters(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetDeembeddingSparameters', + nirfsa__pb2.GetDeembeddingSparametersRequest.SerializeToString, + nirfsa__pb2.GetDeembeddingSparametersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDeviceResponse(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetDeviceResponse', + nirfsa__pb2.GetDeviceResponseRequest.SerializeToString, + nirfsa__pb2.GetDeviceResponseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetError', + nirfsa__pb2.GetErrorRequest.SerializeToString, + nirfsa__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetExtCalLastDateAndTime', + nirfsa__pb2.GetExtCalLastDateAndTimeRequest.SerializeToString, + nirfsa__pb2.GetExtCalLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalLastTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetExtCalLastTemp', + nirfsa__pb2.GetExtCalLastTempRequest.SerializeToString, + nirfsa__pb2.GetExtCalLastTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExtCalRecommendedInterval(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetExtCalRecommendedInterval', + nirfsa__pb2.GetExtCalRecommendedIntervalRequest.SerializeToString, + nirfsa__pb2.GetExtCalRecommendedIntervalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetFetchBacklog(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetFetchBacklog', + nirfsa__pb2.GetFetchBacklogRequest.SerializeToString, + nirfsa__pb2.GetFetchBacklogResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetFrequencyResponse(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetFrequencyResponse', + nirfsa__pb2.GetFrequencyResponseRequest.SerializeToString, + nirfsa__pb2.GetFrequencyResponseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNormalizationCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetNormalizationCoefficients', + nirfsa__pb2.GetNormalizationCoefficientsRequest.SerializeToString, + nirfsa__pb2.GetNormalizationCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNumberOfSpectralLines(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetNumberOfSpectralLines', + nirfsa__pb2.GetNumberOfSpectralLinesRequest.SerializeToString, + nirfsa__pb2.GetNumberOfSpectralLinesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRelayName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetRelayName', + nirfsa__pb2.GetRelayNameRequest.SerializeToString, + nirfsa__pb2.GetRelayNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRelayOperationsCount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetRelayOperationsCount', + nirfsa__pb2.GetRelayOperationsCountRequest.SerializeToString, + nirfsa__pb2.GetRelayOperationsCountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetScalingCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetScalingCoefficients', + nirfsa__pb2.GetScalingCoefficientsRequest.SerializeToString, + nirfsa__pb2.GetScalingCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetSelfCalLastDateAndTime', + nirfsa__pb2.GetSelfCalLastDateAndTimeRequest.SerializeToString, + nirfsa__pb2.GetSelfCalLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalLastTemp(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetSelfCalLastTemp', + nirfsa__pb2.GetSelfCalLastTempRequest.SerializeToString, + nirfsa__pb2.GetSelfCalLastTempResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSpectralInfoForSMT(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetSpectralInfoForSMT', + nirfsa__pb2.GetSpectralInfoForSMTRequest.SerializeToString, + nirfsa__pb2.GetSpectralInfoForSMTResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetStreamEndpointHandle(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetStreamEndpointHandle', + nirfsa__pb2.GetStreamEndpointHandleRequest.SerializeToString, + nirfsa__pb2.GetStreamEndpointHandleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTerminalName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetTerminalName', + nirfsa__pb2.GetTerminalNameRequest.SerializeToString, + nirfsa__pb2.GetTerminalNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetUserData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/GetUserData', + nirfsa__pb2.GetUserDataRequest.SerializeToString, + nirfsa__pb2.GetUserDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Init', + nirfsa__pb2.InitRequest.SerializeToString, + nirfsa__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/InitWithOptions', + nirfsa__pb2.InitWithOptionsRequest.SerializeToString, + nirfsa__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Initiate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Initiate', + nirfsa__pb2.InitiateRequest.SerializeToString, + nirfsa__pb2.InitiateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InvalidateAllAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/InvalidateAllAttributes', + nirfsa__pb2.InvalidateAllAttributesRequest.SerializeToString, + nirfsa__pb2.InvalidateAllAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsSelfCalValid(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/IsSelfCalValid', + nirfsa__pb2.IsSelfCalValidRequest.SerializeToString, + nirfsa__pb2.IsSelfCalValidResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadConfigurationsFromFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/LoadConfigurationsFromFile', + nirfsa__pb2.LoadConfigurationsFromFileRequest.SerializeToString, + nirfsa__pb2.LoadConfigurationsFromFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformThermalCorrection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/PerformThermalCorrection', + nirfsa__pb2.PerformThermalCorrectionRequest.SerializeToString, + nirfsa__pb2.PerformThermalCorrectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadIQSingleRecordComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ReadIQSingleRecordComplexF64', + nirfsa__pb2.ReadIQSingleRecordComplexF64Request.SerializeToString, + nirfsa__pb2.ReadIQSingleRecordComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadPowerSpectrumF32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF32', + nirfsa__pb2.ReadPowerSpectrumF32Request.SerializeToString, + nirfsa__pb2.ReadPowerSpectrumF32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadPowerSpectrumF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ReadPowerSpectrumF64', + nirfsa__pb2.ReadPowerSpectrumF64Request.SerializeToString, + nirfsa__pb2.ReadPowerSpectrumF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/Reset', + nirfsa__pb2.ResetRequest.SerializeToString, + nirfsa__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetAttribute', + nirfsa__pb2.ResetAttributeRequest.SerializeToString, + nirfsa__pb2.ResetAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetDevice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetDevice', + nirfsa__pb2.ResetDeviceRequest.SerializeToString, + nirfsa__pb2.ResetDeviceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetWithDefaults', + nirfsa__pb2.ResetWithDefaultsRequest.SerializeToString, + nirfsa__pb2.ResetWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/ResetWithOptions', + nirfsa__pb2.ResetWithOptionsRequest.SerializeToString, + nirfsa__pb2.ResetWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/RevisionQuery', + nirfsa__pb2.RevisionQueryRequest.SerializeToString, + nirfsa__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SaveConfigurationsToFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SaveConfigurationsToFile', + nirfsa__pb2.SaveConfigurationsToFileRequest.SerializeToString, + nirfsa__pb2.SaveConfigurationsToFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfCal', + nirfsa__pb2.SelfCalRequest.SerializeToString, + nirfsa__pb2.SelfCalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCalibrate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfCalibrate', + nirfsa__pb2.SelfCalibrateRequest.SerializeToString, + nirfsa__pb2.SelfCalibrateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCalibrateRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfCalibrateRange', + nirfsa__pb2.SelfCalibrateRangeRequest.SerializeToString, + nirfsa__pb2.SelfCalibrateRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SelfTest', + nirfsa__pb2.SelfTestRequest.SerializeToString, + nirfsa__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareEdgeTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SendSoftwareEdgeTrigger', + nirfsa__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + nirfsa__pb2.SendSoftwareEdgeTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViBoolean', + nirfsa__pb2.SetAttributeViBooleanRequest.SerializeToString, + nirfsa__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViInt32', + nirfsa__pb2.SetAttributeViInt32Request.SerializeToString, + nirfsa__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViInt64', + nirfsa__pb2.SetAttributeViInt64Request.SerializeToString, + nirfsa__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViReal64', + nirfsa__pb2.SetAttributeViReal64Request.SerializeToString, + nirfsa__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViSession', + nirfsa__pb2.SetAttributeViSessionRequest.SerializeToString, + nirfsa__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetAttributeViString', + nirfsa__pb2.SetAttributeViStringRequest.SerializeToString, + nirfsa__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetCalUserDefinedInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetCalUserDefinedInfo', + nirfsa__pb2.SetCalUserDefinedInfoRequest.SerializeToString, + nirfsa__pb2.SetCalUserDefinedInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetUserData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsa_grpc.NiRFSA/SetUserData', + nirfsa__pb2.SetUserDataRequest.SerializeToString, + nirfsa__pb2.SetUserDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nirfsa/nirfsa/session.py b/generated/nirfsa/nirfsa/session.py new file mode 100644 index 0000000000..4ca7138782 --- /dev/null +++ b/generated/nirfsa/nirfsa/session.py @@ -0,0 +1,8445 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nirfsa._attributes as _attributes +import nirfsa._converters as _converters +import nirfsa._library_interpreter as _library_interpreter +import nirfsa.enums as enums +import nirfsa.errors as errors + +import nirfsa.coefficient_info_type as coefficient_info_type # noqa: F401 + +import nirfsa.waveform_info as waveform_info # noqa: F401 + +import nirfsa.spectrum_info_type as spectrum_info_type # noqa: F401 + +import hightime +import nitclk + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Acquisition(object): + def __init__(self, session): + self._session = session + self._session._initiate() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-RFSA sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + absolute_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150266) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the sub-sample clock delay, in seconds, to apply to the acquired signal. + + Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. + This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. + + To set this property, the NI-RFSA device must be in the Configuration state. + + ---- + **Note** + If this property is set, NI-TClk cannot do any sub-sample clock adjustment. + + ---- + + **Units:** Seconds + + **Valid Values:** Plus or minus half of one sample clock period + + **Default Value**: 0 + + **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + acquisition_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AcquisitionType, 1150001) + '''Type: enums.AcquisitionType + + Configures the session to either acquire I/Q data or to compute a power spectrum over the specified frequency range. + + **Default Value**: AcquisitionType.IQ + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureAcquisitionType + + **Defined Values**: + + +--------------------------+-----------------------------------------------+ + | Name | Description | + +==========================+===============================================+ + | AcquisitionType.IQ | Configures NI-RFSA for I/Q acquisitions. | + +--------------------------+-----------------------------------------------+ + | AcquisitionType.SPECTRUM | Configures NI-RFSA for spectrum acquisitions. | + +--------------------------+-----------------------------------------------+ + ''' + advance_trigger_terminal_name = _attributes.AttributeViString(1150124) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/AdvanceTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleNameai/0/AdvanceTrigger, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/AdvanceTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/AdvanceTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + advance_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AdvanceTriggerType, 1150036) + '''Type: enums.AdvanceTriggerType + + Specifies whether you want the Advance Trigger to be a digital edge or software trigger. + + ---- + **Note** + Set this property to AdvanceTriggerType.NONE if you set the acquisition_type property to AcquisitionType.SPECTRUM or if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method. + + ---- + + **Default Value**: AdvanceTriggerType.NONE + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==================================+==================================================================================================================================================================================================================================+ + | AdvanceTriggerType.NONE | No Advance Trigger is configured. | + +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | AdvanceTriggerType.DIGITAL_EDGE | The Advance Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_advance_trigger_source property. | + +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | AdvanceTriggerType.SOFTWARE_EDGE | The Advance Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_ADVANCE_TRIGGER as the **trigger** parameter. | + +----------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + allow_more_records_than_memory = _attributes.AttributeViBoolean(1150154) + '''Type: bool + + Specifies whether to allow the device to acquire more records than can fit in the device memory of the PXIe-5622/5624. + + ---- + **Note** + If you set the property to FALSE and attempt to acquire more records than can fit into the PXIe-5622/5624 device memory, NI-RFSA returns an error. If this property is set to TRUE, NI-RFSA returns an error only in the event of an acquisition buffer overflow. + + ---- + + ---- + **Note** + This property is always set to True for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841. + + ---- + + **Default Value**: False + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------+------------------------------------------------------------------------+ + | Name | Description | + +=======+========================================================================+ + | True | Allows acquisition of more records than fit in device memory. | + +-------+------------------------------------------------------------------------+ + | False | Does not allow acquisitions of more records than fit in device memory. | + +-------+------------------------------------------------------------------------+ + ''' + allow_out_of_specification_user_settings = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AllowOutOfSpecificationUserSettings, 1150256) + '''Type: enums.AllowOutOfSpecificationUserSettings + + Enables or disables warnings and errors when you set frequency, power, or bandwidth values beyond the limits of the NI-RFSA device specifications. + + When you set this property to AllowOutOfSpecificationUserSettings.ENABLED, the driver does not report out-of-specification warnings and errors. + + **Default Value**: AllowOutOfSpecificationUserSettings.DISABLED + + **Supported Devices:** PXIe-5820/5830/5831/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------+----------------------------------------------+ + | Name | Description | + +==============================================+==============================================+ + | AllowOutOfSpecificationUserSettings.DISABLED | Disables out-of-specification user settings. | + +----------------------------------------------+----------------------------------------------+ + | AllowOutOfSpecificationUserSettings.ENABLED | Enables out-of-specification user settings. | + +----------------------------------------------+----------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + amplitude_settling = _attributes.AttributeViReal64(1150163) + '''Type: float + + Configures the amplitude settling accuracy in decibels. + + NI-RFSA waits until the RF power settles within the specified accuracy level after calling the _initiate method. + + Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. + + **Units**: dB + + **Default Value:** 0.5 + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + arm_ref_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ArmReferenceTriggerType, 1150039) + '''Type: enums.ArmReferenceTriggerType + + Specifies whether you want the Arm Reference Trigger to be a digital edge or software trigger. + + ---- + **Note** + The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 only support ArmReferenceTriggerType.NONE. + + ---- + + ---- + **Note** + Set this property to ArmReferenceTriggerType.NONE if you set the acquisition_type property to AcquisitionType.SPECTRUM or if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method. + + ---- + + **Default Value**: ArmReferenceTriggerType.NONE + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=======================================+=========================================================================================================================================================================================================================================+ + | ArmReferenceTriggerType.NONE | No Arm Reference Trigger is configured. | + +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ArmReferenceTriggerType.DIGITAL_EDGE | The Arm Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_arm_ref_trigger_source property. | + +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ArmReferenceTriggerType.SOFTWARE_EDGE | The Arm Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting SoftwareTriggerType.ARM_REF as the **trigger** parameter. | + +---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + attenuation = _attributes.AttributeViReal64(1150005) + '''Type: float + + Specifies the nominal attenuation setting, in dB, for all attenuators before the first mixer in the RF signal chain. + + If you do not set this property, NI-RFSA automatically chooses an attenuation setting based on the reference level you configure. The valid values for this property depend on the device configuration. + + **PXI-5600/5661**: You can change the attenuation value to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. + + **PXIe-5601/5663/5663E**: You can change the attenuation value and the value of the if_attenuation property to modify the amount of noise and distortion. Higher attenuation levels increase the noise level while decreasing distortion; lower attenuation levels decrease the noise level while increasing distortion. + + **PXIe-5603/5605/5606/5665/5668**: You can set multiple properties to modify the attenuation values for the device. Refer to `PXIe-5665 RF Attenuation and Signal Levels `_ for more information about configuring attenuation. + + **PXIe-5667**: This property specifies the nominal attenuation setting for all attenuators before the first RF mixer in the input signal path. This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. + + **PXIe-5693**: This property is read-only and returns the nominal RF attenuation of the PXIe-5693. + + **Units**: dB + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + available_paths = _attributes.AttributeViStringCommaSeparated(1150332) + '''Type: list of str + + Returns a comma separated list of the configurable paths available for use based on your instrument configuration. + ''' + available_ports = _attributes.AttributeViStringCommaSeparated(1150306) + '''Type: list of str + + Returns a comma-separated list of the available ports for use based on your instrument configuration. + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + center_frequency = _attributes.AttributeViReal64(1150002) + '''Type: float + + Specifies the center frequency in a spectrum acquisition. + + The value is expressed in hertz (Hz). An acquisition consists of a span of data surrounding the center frequency. + + ---- + **Note** + Use this property to tune the downconverter when using external digitizer mode. + + ---- + + **Units**: hertz (Hz) + + **Default Values**: + + **PXIe-5694**: 193.6 MHz + + **PXIe-5820**: 0 Hz + + **PXIe-5830/5831/5832**: 6.5 GHz + + **All other devices**: 1 GHz + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + channel_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ChannelCoupling, 1150149) + '''Type: enums.ChannelCoupling + + Specifies whether the RF IN connector is AC- or DC-coupled on the downconverter. + + ---- + **Note** + For the PXIe-5605/5606/5665/5667/5668, this property must be set to ChannelCoupling.AC when the DC block is present and set to ChannelCoupling.DC when the DC block is not present to ensure device specifications are met and proper calibration data is used. For more information about removing or attaching the DC block, refer to the `PXIe-5665 Block Diagram `_, the `PXIe-5605 Front Panel and LEDs `_, the `PXIe-5667 Block Diagram `_, or the `PXIe-5668 Block Diagram `_ topics in this help file. + + ---- + + **Valid Values**: + + **PXIe-5603/5665 (3.6 GHz)**: ChannelCoupling.AC, ChannelCoupling.DC + + **PXIe-5605/5665 (14 GHz)**: ChannelCoupling.AC, ChannelCoupling.DC + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low-frequency bypass path**: ChannelCoupling.AC, ChannelCoupling.DC + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: ChannelCoupling.AC + + **PXIe-5667 (7 GHz)**: ChannelCoupling.AC + + **PXIe-5606/5668**: ChannelCoupling.AC, ChannelCoupling.DC + + **Default Value**: ChannelCoupling.AC + + **Supported Devices**: PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 + + **Defined Values**: + + +--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================+============================================================================================================================================================+ + | ChannelCoupling.AC | Specifies that the RF input channel is AC-coupled. For low frequencies (<10 MHz), accuracy decreases because NI-RFSA does not calibrate the configuration. | + +--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ChannelCoupling.DC | Specifies that the RF input channel is DC-coupled. NI-RFSA enforces a minimum RF attenuation for device protection. | + +--------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + common_mode_level = _attributes.AttributeViReal64(1150269) + '''Type: float + + Specifies the common-mode level presented at each differential input terminal. + + Common-mode level shifts both positive and negative terminals in the same direction. This must match the common-mode level of the device under test (DUT). + + **Units**: volts + + **Default Value**: 0 V + + **Supported Devices**: PXIe-5820 + ''' + deembedding_compensation_gain = _attributes.AttributeViReal64(1150325) + '''Type: float + + Returns the de-embedding gain applied to compensate for the mismatch on the specified port. Use the Active Channel property to specify the name of the port to configure for de-embedding. + + If de-embedding is enabled, NI-RFSA uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. + + **Supported Devices**: PXIe-5830/5831/5840/5841/5842/5860 + ''' + deembedding_selected_table = _attributes.AttributeViString(1150308) + '''Type: str + + Selects the de-embedding table to apply to the measurements on the specified port. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the port to configure for de-embedding. + + If de-embedding is enabled, NI-RFSA uses the specified table to remove the effects of the external network between the instrument and the DUT. + + Use the _create_deembedding_sparameter_table_array method to create tables. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Tip: + This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.deembedding_selected_table` + ''' + deembedding_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DeembeddingType, 1150307) + '''Type: enums.DeembeddingType + + Specifies the type of de-embedding to apply to measurements on the specified port. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the port to configure for de-embedding. + + If you set this property to any value besides DeembeddingType.NONE, NI-RFSA adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. + + **Default Value**: DeembeddingType.SCALAR + + **Valid Values for PXIe-5830/5832/5840/5841** : DeembeddingType.NONE or DeembeddingType.SCALAR + + **Valid Values for PXIe-5842/5860** : DeembeddingType.NONE or DeembeddingType.SCALAR or DeembeddingType.AMPLITUDE_FLATNESS + + **Valid Values for PXIe-5831:** DeembeddingType.NONE, DeembeddingType.SCALAR, or DeembeddingType.VECTOR. DeembeddingType.VECTOR is only supported for TRX Ports in a Semiconductor Test System (STS). + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------+-------------------------------------------------------------------------+ + | Name | Description | + +====================================+=========================================================================+ + | DeembeddingType.NONE | De-embedding is not applied to the measurement. | + +------------------------------------+-------------------------------------------------------------------------+ + | DeembeddingType.SCALAR | De-embeds the measurement using only the gain term. | + +------------------------------------+-------------------------------------------------------------------------+ + | DeembeddingType.VECTOR | De-embeds the measurement using the gain term and the reflection term. | + +------------------------------------+-------------------------------------------------------------------------+ + | DeembeddingType.AMPLITUDE_FLATNESS | De-embeds the measurement using wideband amplitude flatness correction. | + +------------------------------------+-------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific ports within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_type` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.deembedding_type` + ''' + device_configuration_temperature = _attributes.AttributeViReal64(1150159) + '''Type: float + + Specifies the temperature, in degrees Celsius, that NI-RFSA uses to calculate the device configuration settings. + + ---- + **Note** + For most applications, you can choose not to set this property, so NI-RFSA uses the device temperature to calculate best attenuation settings. Set this property only if you want NI-RFSA to maintain the same device configuration settings from acquisition to acquisition, independent of device temperature changes. + + ---- + + **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: This property is read-only. + + **Units**: degrees Celsius + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + device_instantaneous_bandwidth = _attributes.AttributeViReal64(1150125) + '''Type: float + + Specifies the instantaneous bandwidth of the device in hertz (Hz). + + The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. + + Specify the maximum instantaneous bandwidth needed for your measurement. NI-RFSA coerces the actual IF filter to use based on other measurement constraints such as the if_filter_bandwidth property and the digital_if_equalization_enabled property. + + To change the value that NI-RFSA uses for the maximum size of multispan acquisition subspans, use the fft_width property. + + ---- + **Note** + If your application uses the PXIe-5622 IF digitizer, your maximum device instantaneous bandwidth is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. If your application uses the PXIe-5624 digitizer, your maximum device instantaneous bandwidth is constrained by the hardware option you purchased and your FPGA image. + + ---- + + **PXI-5661**: The PXI-5600 RF downconverter instantaneous bandwidth is 20 MHz. + + **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the `PXIe-5601 RF Signal Downconverter Overview `_ for more information about instantaneous bandwidth. + + ---- + **Note** + For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than the instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. + + ---- + + **PXIe-5665**: Your maximum allowed instantaneous bandwidth is independent of the downconverter center frequency. Refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth. + + **PXIe-5665 (14 GHz), PXIe-5668**: If you have enabled the preselector for the PXIe-5605/5606, the device instantaneous bandwidth value is only a typical specification. For multispan acquisitions, NI-RFSA uses this typical specification as the maximum size for the acquisition subspans. + + ---- + **Note** + When used with an external digitizer, the PXIe-5603 and the low band signal path of the PXIe-5605 provide a nominal 80 MHz bandwidth at dB. At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector (YIG-tuned filter) enabled. + + ---- + + ---- + **Note** + For PXIe-5606 devices, the 765 MHz IF filter is available only at center frequencies above 3.6 GHz. + + ---- + + **PXIe-5693**: This property is read-only for the PXIe-5693. The value for the device instantaneous bandwidth depends on the value for the RF preselector filter. + + **PXIe-5694/PXIe-5667**: If your application uses the PXIe-5694 as part of an PXIe-5667 spectrum monitoring receiver or the PXIe-5694 as a stand-alone device, NI-RFSA determines the appropriate IF filter to use based on the value that you set for this property. + + ---- + **Note** + + ---- + + **PXIe-5644/5645/5646**: This property is read-only for the PXIe-5644/5645/5646. Refer to the specifications document for your device for more information about instantaneous bandwidth. + + **PXIe-5840/5841/5860**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use. Refer to the *PXIe-5840/5841/5860 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. + + **PXIe-5842**: Your maximum allowed instantaneous bandwidth depends on the device's hardware options, configured device personality, and the downconverter center frequency you use. Refer to the *PXIe-5842 Specifications* for more information about instantaneous bandwidth. Set this property to select different device instantaneous bandwidths for a given downconverter center frequency. The device instantaneous bandwidth that you select is greater than or equal to the requested instantaneous bandwidth. If this property is not set, NI-RFSA uses the maximum allowed instantaneous bandwidth. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + ''' + device_temperature = _attributes.AttributeViReal64(1150051) + '''Type: float + + Returns the current temperature, in degrees Celsius, of the module. + + **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **PXIe-5830/5831/5832**: To use this property, you must first set the channelName parameter of the _set_attribute_vi_real64 method to using the appropriate string for your instrument configuration. Setting the _set_attribute_vi_real64 property is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. + + **Units**: degrees Celcius + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + +--------------------------------+---------------------------+---------------------------+ + | Hardware Module | TRX Port Type | Active Channel String | + +================================+===========================+===========================+ + | PXIe-3621/3622/5842 | - | if or "" (empty string) | + +--------------------------------+---------------------------+---------------------------+ + | PXIe-5820 | - | fpga | + +--------------------------------+---------------------------+---------------------------+ + | PXIe-5860 | - | 5860 or "" (empty string) | + +--------------------------------+---------------------------+---------------------------+ + | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | + +--------------------------------+---------------------------+---------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | + +--------------------------------+---------------------------+---------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf0switch1 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [8-15] | rf1switch1 | + +--------------------------------+---------------------------+---------------------------+ + | First connected RMM-5544/5546 | - | rmm0 | + +--------------------------------+---------------------------+---------------------------+ + | Second connected RMM-5544/5546 | - | rmm1 | + +--------------------------------+---------------------------+---------------------------+ + + Tip: + This property can be set/get on specific device_temperatures within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. + + Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` + + To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.device_temperature` + ''' + digital_edge_advance_trigger_source = _attributes.AttributeViString(1150037) + '''Type: str + + Specifies the source terminal for the Advance Trigger. + + This property is used only when the advance_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - configure_digital_edge_ref_trigger + + **Defined Values**: + + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==========================+=================================================================================================================================================================================================================+ + | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI1 | The trigger is received on the PFI 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on the PXI trigger line 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on the PXI trigger line 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on the PXI trigger line 2. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on the PXI trigger line 3. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on the PXI trigger line 4. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on the PXI trigger line 5. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on the PXI trigger line 6. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on the PXI trigger line 7. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_edge_arm_ref_trigger_source = _attributes.AttributeViString(1150040) + '''Type: str + + Specifies the source terminal for the digital edge Arm Reference Trigger. + + This property is used only when the arm_ref_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. + + **Default Value**: "" (empty string) + + ---- + **Note** + The PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841 devices only support "" (empty string). + + The trigger is received on PFI0 from the front panel DIO terminal. + + The trigger is received on PFI1 from the front panel DIO terminal. + + The trigger is received on PFI2 from the front panel DIO terminal. + + The trigger is received on PFI3 from the front panel DIO terminal. + + The trigger is received on PFI4 from the front panel DIO terminal. + + The trigger is received on PFI5 from the front panel DIO terminal. + + The trigger is received on PFI6 from the front panel DIO terminal. + + The trigger is received on PFI7 from the front panel DIO terminal. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5820/5830/5831/5832/5840/5841 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==========================+=================================================================================================================================================================================================================+ + | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI1 | The trigger is received on PFI 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_edge_ref_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerDigitalEdgeEdge, 1150030) + '''Type: enums.ReferenceTriggerDigitalEdgeEdge + + Specifies the active edge for the Reference Trigger. + + This property is used only when the ref_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. + + **Default Value**: ReferenceTriggerDigitalEdgeEdge.RISING + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - configure_digital_edge_ref_trigger + + **Defined Values**: + + +-----------------------------------------+-------------------------------------------------------+ + | Name | Description | + +=========================================+=======================================================+ + | ReferenceTriggerDigitalEdgeEdge.RISING | The trigger asserts on the rising edge of the signal. | + +-----------------------------------------+-------------------------------------------------------+ + | ReferenceTriggerDigitalEdgeEdge.FALLING | The trigger asserts on the falling edge of the signal | + +-----------------------------------------+-------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_edge_ref_trigger_source = _attributes.AttributeViString(1150029) + '''Type: str + + Specifies the source terminal for the digital edge Reference Trigger. + + This property is used only when the ref_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==========================+=================================================================================================================================================================================================================+ + | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI1 | The trigger is received on PFI 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerDigitalEdgeEdge, 1150026) + '''Type: enums.StartTriggerDigitalEdgeEdge + + Specifies the active edge for the Start Trigger. + + This property is used only when the start_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. + + **Default Value**: StartTriggerDigitalEdgeEdge.RISING + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - configure_digital_edge_start_trigger + + **Defined and Valid Values:** + + +-------------------------------------+-------------------------------------------------------+-------------------------------------+ + | Name | Description | Valid For | + +=====================================+=======================================================+=====================================+ + | StartTriggerDigitalEdgeEdge.RISING | The trigger asserts on the rising edge of the signal. | PXI-5661, PXIe-5663/5663E/5665/5668 | + +-------------------------------------+-------------------------------------------------------+-------------------------------------+ + | StartTriggerDigitalEdgeEdge.FALLING | The trigger asserts on the falling edge of the signal | PXIe-5668 | + +-------------------------------------+-------------------------------------------------------+-------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_edge_start_trigger_source = _attributes.AttributeViString(1150025) + '''Type: str + + Specifies the source terminal for the Start Trigger. + + This property is used only when the start_trigger_type property is set to NIRFSA_VAL_DIGITAL_EDGE. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - configure_digital_edge_start_trigger + + **Defined Values**: + + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==========================+=================================================================================================================================================================================================================+ + | NIRFSA_VAL_DO_NOT_EXPORT | The signal is not exported. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PFI1 | The trigger is received on PFI 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.PXIE_DSTARB | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSA_VAL_DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | OutputTerm.TIMER_EVENT | The trigger is received from the Timer Event. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841, and for digital edge Advance Triggers on the PXIe-5663E/5665. | + +--------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_gain = _attributes.AttributeViReal64(1150301) + '''Type: float + + Specifies the scaling factor applied to the time-domain voltage data in the digitizer. + + NI-RFSA does not compensate for the specified digital gain. + + You can use this property to account for external gain changes without changing the analog signal path. + + ---- + **Note** + The PXIe-5644/5645/5646 applies this gain when the data is scaled. The raw data does not include this scaling on these devices. + + ---- + + **Units:** dB + + **Default Value:** 0 dB + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + digital_if_equalization_enabled = _attributes.AttributeViBoolean(1150048) + '''Type: bool + + Enables use of the digital equalization filter for the RF downconverter. + + **PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. + + ---- + **Note** + For PXIe-5665/5667 devices, digital IF equalization is supported only with a 150 MHz clock. You cannot set this property to True if the digitizer_sample_clock_timebase_source property is set to DigitizerSampleClockTimebaseSource.LO_REF_CLK. + + ---- + + ---- + **Note** + For the PXIe-5665 (14 GHz)/5667 (7 GHz)/5668, the preselector is not part of the IF filter path, so NI-RFSA does not equalize the preselector distortions. + + ---- + + **Default Value**: True, if the device configuration is supported. + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 + + **Defined Values**: + + +-------+-----------------------------------------------------------+ + | Name | Description | + +=======+===========================================================+ + | True | Enables digital IF equalization on the RF downconverter. | + +-------+-----------------------------------------------------------+ + | False | Disables digital IF equalization on the RF downconverter. | + +-------+-----------------------------------------------------------+ + ''' + digitizer_dither_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitizerDitherEnabled, 1150080) + '''Type: enums.DigitizerDitherEnabled + + Specifies whether dithering is enabled on the digitizer. + + Dithering adds band-limited noise in the analog signal path to help reduce the quantization effects of the A/D converter and improve spectral performance. On the PXIe-5622, this out-of-band noise is added at low frequencies up to approximately 12 MHz. On the PXIe-5624, this out-of-band noise is added at low frequencies up to approximately 50 MHz. + + **PXIe-5663/5663E/5665/5667**: When you enable dithering, the maximum signal level is reduced by up to 3 dB. This signal level reduction is accounted for in the nominal input ranges of the PXIe-5622. Therefore, you can overrange the input by up to 3 dB with dither disabled. For example, the +4 dBm input range can handle signal levels up to +7 dBm with dither disabled. For wider bandwidth acquisitions, such as 40 MHz, disable dithering to eliminate residual leakage of the dither signal into the lower frequencies of the IF passband, which starts at 12.5 MHz and ends at 62.5 MHz. This leakage can slightly raise the noise floor in the lower frequencies, thus degrading the performance in high-sensitivity applications. When taking spectral measurements, this leakage can also appear as a wide, low-amplitude signal near 12.5 MHz and 62.5 MHz. The width and amplitude of the signal depends on your resolution bandwidth and the type of time-domain window you apply to your FFT. + + **PXIe-5668**: When you enable dithering, the maximum signal level is reduced by up to 2 dB. For the PXIe-5624, the maximum input power with dither off is 8 dBm and the maximum input power with dither on is 6 dBm. When acquiring an 800 MHz bandwidth signal, the I/Q data contains the dither even if the dither signal is not in the displayed spectrum. The dither can affect actions like power level triggering. + + ---- + **Note** + For the PXIe-5668, disabling dithering can negatively affect absolute amplitude accuracy. + + ---- + + ---- + **Note** + For the PXIe-5820/5830/5831/5832/5840/5841/5842, only DigitizerDitherEnabled.ENABLED is supported. + + ---- + + **Default Value**: DigitizerDitherEnabled.ENABLED + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +---------------------------------+-----------------------------------+ + | Name | Description | + +=================================+===================================+ + | DigitizerDitherEnabled.DISABLED | Disables dither on the digitizer. | + +---------------------------------+-----------------------------------+ + | DigitizerDitherEnabled.ENABLED | Enables dither on the digitizer. | + +---------------------------------+-----------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digitizer_sample_clock_rate = _attributes.AttributeViReal64(1150228) + '''Type: float + + Returns the actual frequency, in hertz (Hz), of the digitizer Sample Clock. + + **Units**: hertz (Hz) + + **Supported Devices**: PXIe-5668 + ''' + digitizer_sample_clock_timebase_rate = _attributes.AttributeViReal64(1150022) + '''Type: float + + Specifies the frequency, in hertz (Hz), of the external clock used as the timebase source if you set the digitizer_sample_clock_timebase_source property to an external source, such as NIRFSA_VAL_CLK_IN, DigitizerSampleClockTimebaseSource.LO_REF_CLK, or DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT + + **PXI-5661**If this property is set to a value less than 60 MHz, signals at frequencies just above the 20 MHz passband of the downconverter may be aliased back into the passband. This aliasing occurs because the IF frequency of the downconverter is 15 MHz, and the upper end of the passband is 25 MHz. At sampling rates below 60 MHz, the Nyquist frequency is close to the end of the passband and creates aliases that are not filtered effectively by the downconverter. + + **Units**: hertz (Hz) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + **Valid and Default Values**: + + +---------------------------+----------------------------+---------------+ + | Device | Valid Values | Default Value | + +===========================+============================+===============+ + | PXI-5661 | Any frequency 226552.5 MHz | 100 MHz | + +---------------------------+----------------------------+---------------+ + | PXIe-5663/5663E/5665/5667 | 150 MHz | 150 MHz | + +---------------------------+----------------------------+---------------+ + | PXIe-5668 | 2 GHz | 2 GHz | + +---------------------------+----------------------------+---------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digitizer_sample_clock_timebase_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.DigitizerSampleClockTimebaseSource, 1150021) + '''Type: enums.DigitizerSampleClockTimebaseSource + + Specifies the source of the Sample Clock timebase, which is the timebase used to control waveform sampling. + + **Default Value**: DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + **Defined Values**: + + +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==========================================================+========================================================================================================================================================================+ + | DigitizerSampleClockTimebaseSource.ONBOARD_CLOCK | The digitizer uses its onboard clock as the Sample Clock timebase. | + +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DigitizerSampleClockTimebaseSource.CLK_IN | The digitizer uses the signal present on the CLK IN connector as the Sample Clock timebase. | + +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DigitizerSampleClockTimebaseSource.LO_REF_CLK | The digitizer uses the signal generated on the 100 MHz REF OUT terminal on the PXIe-5653 as the Sample Clock timebase. This value is supported only for the PXIe-5665. | + +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DigitizerSampleClockTimebaseSource.PXI_STAR | The digitizer uses the signal present at the PXI star trigger line as the Sample Clock timebase. This value is not supported for the PXIe-5668. | + +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DigitizerSampleClockTimebaseSource.DOWNCONVERTER_LO2_OUT | The digitizer uses the signal present on the LO2 OUT connector on the downconverter as the Sample Clock timebase. This value is supported only for the PXIe-5668. | + +----------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digitizer_temperature = _attributes.AttributeViReal64(1150090) + '''Type: float + + Returns the current temperature, in degrees Celsius, of the digitizer module. + + **PXIe-5820/5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Default Value**: N/A + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 + ''' + digitizer_vertical_range = _attributes.AttributeViReal64(1150070) + '''Type: float + + Specifies the vertical range of the digitizer. + + The vertical range is defined as the absolute value of the input range for a channel. The default vertical range works for all device configurations, but you can use this property to optimize performance if you know that the signal level at the digitizer input terminal is low. + + ---- + **Note** + For most applications, NI-RFSA selects an appropriate value for this property. + + ---- + + This value is expressed in volts. For example, to acquire a sine wave that spans between 20130.5 V and +0.5 V, set this property to 1.0. + + **PXIe-5840/5841/5842/5860**: This property is read-only. + + **Default Value**: 1.0 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667, PXIe-5840/5841/5842/5860 + ''' + done_event_terminal_name = _attributes.AttributeViString(1150121) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/DoneEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/DoneEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - get_terminal_name + ''' + downconverter_center_frequency = _attributes.AttributeViReal64(1150082) + '''Type: float + + Enables in-band retuning and specifies the current frequency, in hertz (Hz), of the RF downconverter. + + If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. To disable in-band retuning, reset the property or call the reset_device method. + + After you set this property, the downconverter is locked to that frequency until the value is changed or the property is reset. Locking the downconverter to a fixed value allows frequencies within the instantaneous bandwidth of the downconverter to be measured with minimal overhead, decreasing tuning time. + + **Valid Values**: Any supported tuning frequency of the device + + **PXIe-5820**: The only valid value for this property is 0 Hz. + + **Default Value**: + + **PXIe-5694**: The default value for the PXIe-5694 is 193.6 MHz unless you set the signal_conditioning_enabled property to SignalConditioningEnabled.BYPASSED, in which case the default value is 187.5 MHz. + + **All other devices**: The carrier frequency or spectrum center frequency. NI-RFSA sets this property to the default value based on the value of the acquisition_type property. + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842 + ''' + downconverter_frequency_offset = _attributes.AttributeViReal64(1150203) + '''Type: float + + Specifies an offset from the I/Q carrier frequency for the downconverter. + + If you set this property, any measurements outside the instantaneous bandwidth of the device are invalid. After you set this property, the RF downconverter is locked to that frequency offset until the value is changed or the property is reset. + + **Valid Values:** + + **PXIe-5646:**: -100 MHz to +100 MHz + + **PXIe-5830/5831/5832/5840/5841:**: -500 MHz to +500 MHz + + **All other devices:**: -42 MHz to +42 MHz + + **Default Values:**: For spectrum acquisition types the driver automatically calculates the default to avoid residual LO power. For I/Q acquisition types the default is 0 Hz. If the center frequency is set to a non-multiple of the lo_frequency_step_size property, the downconverter_frequency_offset property is set to compensate for the difference. + + **Supported Devices:**: PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + ''' + downconverter_frequency_offset_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DownconverterFrequencyOffsetMode, 1150305) + '''Type: enums.DownconverterFrequencyOffsetMode + + Specifies whether to allow NI-RFSA to select the downconveter frequency offset. + + You can either set an offset yourself or let NI-RFSA select one for you. + + Placing the downconverter center frequency outside the bandwidth of your input signal can help avoid issues such as LO leakage. + + To set an offset yourself, set this property to DownconverterFrequencyOffsetMode.AUTOMATIC or DownconverterFrequencyOffsetMode.USER_DEFINED, and set either the downconverter_center_frequency or the downconverter_frequency_offset properties. + + To allow NI-RFSA to automatically select the downconverter frequency offset, set this property to DownconverterFrequencyOffsetMode.AUTOMATIC or DownconverterFrequencyOffsetMode.ENABLED and configure the signal_bandwidth property to describe your expected input signal. The signal bandwidth must be no greater than half the specified value of the device_instantaneous_bandwidth property, minus a device-specific guard band. Do not set the downconverter_center_frequency or downconverter_frequency_offset properties. If all conditions are met, NI-RFSA places the downconverter center frequency outside the signal bandwidth. Set this property to DownconverterFrequencyOffsetMode.ENABLED if you want to receive an error any time NI-RFSA is unable to apply automatic offset. + + When you set an offset yourself or do not use an offset, the reference frequency for gain is near the downconverter center frequency, and downconverter_frequency_offset_mode returns DownconverterFrequencyOffsetMode.USER_DEFINED. When NI-RFSA automatically sets an offset, the reference frequency for gain is the iq_carrier_frequency, and downconverter_frequency_offset_mode returns DownconverterFrequencyOffsetMode.ENABLED. Refer to the specifications document for your device for more information about gain, flatness, and reference frequencies. + + ---- + **Note** + Below 120 MHz, the PXIe-5841 does not use an LO and DownconverterFrequencyOffsetMode.ENABLED is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. + + ---- + + **Default Value:** DownconverterFrequencyOffsetMode.AUTOMATIC + + **Supported Devices**: PXIe-5830/5831/5832/5841/5842 + + **Related Topics** + + `PXIe-5830 Automatic Frequency Offset `_ + + `PXIe-5831/5832 Automatic Frequency Offset `_ + + `PXIe-5841 Automatic Frequency Offset `_ + + **Defined Values**: + + +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===============================================+==========================================================================================================================================================================================================================================================================+ + | DownconverterFrequencyOffsetMode.AUTOMATIC | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. | + +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DownconverterFrequencyOffsetMode.ENABLED | NI-RFSA places the downconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSA returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. | + +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DownconverterFrequencyOffsetMode.USER_DEFINED | NI-RFSA uses the offset that you specified with the downconverter_frequency_offset or downconverter_center_frequency properties. | + +-----------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + downconverter_gain = _attributes.AttributeViReal64(1150065) + '''Type: float + + Returns the net signal gain for the NI-RFSA device at the current NI-RFSA settings and temperature. + + NI-RFSA scales the acquired I/Q and spectrum data from the digitizer using the value of this property. + + For a vector signal analyzer (VSA), the system is defined as the RF downconverter and all interfaces between the RF IN connector on the RF downconverter front panel and the IF IN connector on the digitizer front panel. For a spectrum monitoring receiver, the system is defined as the RF preselector, RF downconverter, and IF conditioning modules including all interfaces between the RF IN connector on the RF preselector module front panel and the IF IN connector on the digitizer front panel. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5830/5831/5832/5840/5841/5842/5860 + ''' + downconverter_loop_bandwidth = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DownconverterLoopBandwidth, 1150067) + '''Type: enums.DownconverterLoopBandwidth + + Configures the loop bandwidth of the RF downconverter tuning PLLs. + + To set this property, the NI-RFSA device must be in the Configuration state. + + **PXI-5600/5661** : For signal bandwidths greater than 10 MHz, DownconverterLoopBandwidth.WIDE is the only value supported for this property. + + **PXIe-5601/5663/5663E** : The PXIe-5601 does not support the DownconverterLoopBandwidth.MEDIUM value. This property is not supported if you are using an external LO. + + **PXIe-5830/5831/5832/5840/5841/5842** : The PXIe-5840/5841/5842 supports only DownconverterLoopBandwidth.MEDIUM for this property. This property is not supported if you are using an external LO. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Values**: + + **PXI-5600** : DownconverterLoopBandwidth.WIDE + + **PXIe-5601** : DownconverterLoopBandwidth.NARROW + + **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842** : DownconverterLoopBandwidth.MEDIUM + + **Supported Devices**: PXI-5600, PXIe-5601 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-----------------------------------+-----------------------------------------------------------------------+ + | Name | Description | + +===================================+=======================================================================+ + | DownconverterLoopBandwidth.NARROW | Specifies that the downconverter module uses a narrow loop bandwidth. | + +-----------------------------------+-----------------------------------------------------------------------+ + | DownconverterLoopBandwidth.MEDIUM | Specifies that the downconverter module uses a medium loop bandwidth. | + +-----------------------------------+-----------------------------------------------------------------------+ + | DownconverterLoopBandwidth.WIDE | Specifies that the downconverter module uses a wide loop bandwidth. | + +-----------------------------------+-----------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].downconverter_loop_bandwidth` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.downconverter_loop_bandwidth` + ''' + downconverter_preselector_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DownconverterPreselectorEnabled, 1150132) + '''Type: enums.DownconverterPreselectorEnabled + + Specifies whether the tunable preselector is enabled on the downconverter. + + ---- + **Note** + All devices support setting this property to DownconverterPreselectorEnabled.DISABLED or DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH. Only devices with a preselector support setting this property to DownconverterPreselectorEnabled.ENABLED. + + ---- + + **Default Value**: DownconverterPreselectorEnabled.DISABLED if the device has no preselector. DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH if the device has a preselector. + + **Supported Devices:** PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=============================================================+================================================================================================================================================================================================================================================================+ + | DownconverterPreselectorEnabled.DISABLED | Disables the preselector. | + +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH | The preselector is automatically enabled when it is in the signal path and is automatically disabled when it is not in the signal path. Use the preselector_present property to determine if the downconverter has an preselector. | + +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DownconverterPreselectorEnabled.ENABLED | Enables the preselector. If the preselector is not in the signal path or if the preselector is not supported on the device, NI-RFSA returns an error. Select the DownconverterPreselectorEnabled.ENABLED_WHEN_IN_SIGNAL_PATH whenever possible avoid an error. | + +-------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + driver_setup = _attributes.AttributeViString(1050007) + '''Type: str + + The Driver Setup string returns the initial values for properties that are specific to NI-RFSA. + + The Driver Setup string uses the following format: + + DriverSetup= Tag:Value + + *Tag* is the name of the Driver Setup string property. *Value* is the value set to the property. If multiple properties are set, their assignments are separated with a semicolon. + + This property only returns the Driver Setup string that has already been defined. Refer to `Driver Setup Options `_ for more information about configuring the Driver Setup string. Refer to the __init__ method for additional information about using the **option string** parameter. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + enable_fractional_resampling = _attributes.AttributeViBoolean(1150071) + '''Type: bool + + Specifies whether fractional resampling is enabled on the digitizer. + + Fractional resampling allows the digitizer to achieve very fine resolution on the I/Q rate value. Setting this property to False improves spectral performance. + + **PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: The only valid value for this property is True. + + **PXIe-5668**: When using a 400 MHz FPGA image, the only valid value for this property is True. When using a 800 MHz FPGA image, the only valid value for this property is False. Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about FPGA images. + + **Default Value**: True + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------+---------------------------------+ + | Value | Description | + +=======+=================================+ + | True | Enables fractional resampling. | + +-------+---------------------------------+ + | False | Disables fractional resampling. | + +-------+---------------------------------+ + ''' + end_of_record_event_terminal_name = _attributes.AttributeViString(1150120) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/EndOfRecordEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/EndOfRecordEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/EndOfRecordEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + exported_advance_trigger_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150038) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the exported Advance Trigger. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_digitizer_sample_clock_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.DigitizerSampleClockExportedTerminal, 1150229) + '''Type: enums.DigitizerSampleClockExportedTerminal + + Specifies the terminal at which to export the Digitizer Sample Clock. + + **Valid Values**: + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5668 + + **Defined Values**: + + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==============================================+==========================================================================================================================================================+ + | DigitizerSampleClockExportedTerminal.NONE | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + | DigitizerSampleClockExportedTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +----------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_done_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150054) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the Done Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_end_of_record_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150044) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the End of Record Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `Signal Routing `_ + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_ready_for_advance_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150042) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the Ready for Advance Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on the PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on the PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on the PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on the PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on the PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on the PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on the PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on the PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_ready_for_ref_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150043) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the Ready for Reference Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_ready_for_start_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150041) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the Ready for Start Event. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_ref_clock_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockExportedTerminal, 1150072) + '''Type: enums.ReferenceClockExportedTerminal + + Specifies a comma-separated list of the terminals at which to export the Reference Clock. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +================================================+=================================================================================================================================================================================================================+ + | ReferenceClockExportedTerminal.NONE | The Reference Clock is not exported. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockExportedTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockExportedTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockExportedTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockExportedTerminal.IF_COND_REF_OUT | Export the clock on the REF OUT terminal on the PXIe-5694. This value is valid only for the PXIe-5667. | + +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_ref_clock_rate = _attributes.AttributeEnum(_attributes.AttributeViReal64, enums.ReferenceClockExportedRate, 1150326) + '''Type: enums.ReferenceClockExportedRate + + Specifies the Reference Clock Rate, in Hz, of the signal sent to the Ref Clock Exported Terminal. + + **Default Value**: 10 MHz + + **Valid Values**: + + PXIe-5820/5830/5831/5832/5840/5841: 10 MHz + + PXIe-5842: 10 MHz, 100 MHz, 1 GHz + + PXIe-5860: 10 MHz, 100 MHz + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + exported_ref_trigger_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150032) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the exported Reference Trigger. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + exported_start_trigger_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ExportOutputTerminal, 1150027) + '''Type: enums.ExportOutputTerminal + + Specifies the destination terminal for the exported Start Trigger. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ExportSignal + + **Defined Values**: + + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=================================================================================================================================================================================================================+ + | ExportOutputTerminal.DO_NOT_EXPORT | The signal is not exported. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.CLK_OUT | Export the clock on the CLK OUT terminal on the IF digitizer. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT | Export the clock on the REF IN/OUT terminal on the PXI/PXIe-5652, the REF OUT terminals on the PXIe-5653, or the REF OUT terminal on the PXIe-5644/5645/5646, PXIe-5694, or PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.REF_OUT2 | Export the clock on the REF OUT2 terminal on the PXIe-5652. This value is valid only for the PXIe-5663E. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI0 | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PFI1 | The trigger is received on PFI 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG0 | The trigger is received on PXI trigger line 0. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG1 | The trigger is received on PXI trigger line 1. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG2 | The trigger is received on PXI trigger line 2. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG3 | The trigger is received on PXI trigger line 3. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG4 | The trigger is received on PXI trigger line 4. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG5 | The trigger is received on PXI trigger line 5. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG6 | The trigger is received on PXI trigger line 6. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_TRIG7 | The trigger is received on PXI trigger line 7. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXI_STAR | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.PXIE_DSTARC | The trigger is received on the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI0 | The trigger is received on PFI0 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI1 | The trigger is received on PFI1 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI2 | The trigger is received on PFI2 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI3 | The trigger is received on PFI3 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI4 | The trigger is received on PFI4 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI5 | The trigger is received on PFI5 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI6 | The trigger is received on PFI6 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ExportOutputTerminal.DIO_PFI7 | The trigger is received on PFI7 from the front panel DIO terminal. | + +------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + external_gain = _attributes.AttributeViReal64(1150094) + '''Type: float + + Specifies the gain, in dB, of a switch (or cable) connected before the RF IN connector of an NI-RFSA system. + + When you set this property, NI-RFSA calculates appropriate attenuator settings based on the value of this property and the value of the reference_level property. In this case, NI-RFSA interprets the reference level as the maximum expected power level of the signal at the input of the external gain device. For more information about attenuation, refer to the *Attenuation and Signal Levels* topic for your device in the *NI RF Vector Signal Analyzers Help*. + + ---- + **Note** + For the PXIe-5820, this property specifies the gain, in dB, of a switch (or cable) connected before the IQ IN connector. + + ---- + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + ---- + + With this property set, NI-RFSA reads the iq_power_edge_ref_trigger_level property value as the power level at the input of the external gain device at which the NI-RFSA device should trigger. + + Negative values indicate attenuation. + + **Valid Values**: INF to +INF + + **Units**: dB + + **Default Value**: 0 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fetch_offset = _attributes.AttributeViInt64(1150046) + '''Type: int + + Specifies the offset relative to the position specified by the fetch_relative_to property from which to start fetching data. + + Offset can be a positive or negative value. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fetch_relative_to = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FetchRelativeTo, 1150045) + '''Type: enums.FetchRelativeTo + + Specifies the reference location within the acquired record from which to begin fetching. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=========================================+=============================================================================================================================================================================================================================+ + | FetchRelativeTo.MOST_RECENT_SAMPLE | Fetching occurs relative to the most recently acquired data. The value of the fetch_offset property must be negative. | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | FetchRelativeTo.FIRST_SAMPLE | Fetching occurs at the first sample acquired by the device. If the device wraps its buffer, the first sample is no longer available. In this case, NI-RFSA returns an error if the fetch offset is in the overwritten data. | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | FetchRelativeTo.REFERENCE_TRIGGER | Fetching occurs relative to the Reference Trigger. This value behaves like FetchRelativeTo.FIRST_SAMPLE if no Reference Trigger is configured. | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | FetchRelativeTo.FIRST_PRETRIGGER_SAMPLE | Fetching occurs relative to the first pretrigger sample acquired. | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | FetchRelativeTo.CURRENT_READ_POSITION | Fetching occurs after the last fetched sample. | + +-----------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + fft_size = _attributes.AttributeViInt32(1150050) + '''Type: int + + Returns the size of the fast Fourier transform (FFT). + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fft_width = _attributes.AttributeViReal64(1150169) + '''Type: float + + Specifies the FFT width of the device. + + The FFT width is the effective bandwidth of the signal path during each signal acquisition. + + ---- + **Note** + The maximum FFT width when using the PXIe-5622 is constrained to 50 MHz or 25 MHz, depending on the digitizer option you purchased. The maximum FFT width when using thing PXIe-5624 is constrained to 400 MHz or 765 MHz, depending on the digitizer configuration. + + ---- + + ---- + **Note** + You can use the fft_width property with in-band retuning. For more information about in-band retuning, refer to the downconverter_center_frequency property. + + ---- + + NI-RFSA treats the *device instantaneous bandwidth* as the effective real-time bandwidth of the signal path. The *span* specifies the frequency range of the computed spectrum. An RF vector signal analyzer can acquire a bandwidth only within the device instantaneous bandwidth frequency. If the span you choose is greater than the device instantaneous bandwidth, NI-RFSA obtains multiple acquisitions and combines them into a single spectrum. By specifying the FFT width, you can control the specific bandwidth obtained in each signal acquisition. If you read the fft_width property without setting it, NI-RFSA returns the value of the device_instantaneous_bandwidth property. + + **Valid Values**: + + The lower limit for all FFT width supported devices using the PXIe-5622 IF digitizer is 7.325 kHz. The lower limit for all FFT width supported devices using the PXIe-5624 IF digitizer is 400 MHz or 800 MHz, depending on the FPGA image that is downloaded upon opening the session to the PXIe-5624 IF digitizer. + + **PXIe-5663/5663E**: The FFT width upper limit for the PXIe-5663/5663E depends on the downconverter center frequency and on the module revision of the PXIe-5601 as illustrated in the following table. Refer to the `Identifying Module Revision `_ topic for more information about determining which revision of the PXIe-5601 RF downconverter you have installed. + + **PXIe-5665/5667/5668**: The upper limit of the FFT width is the maximum device instantaneous bandwidth. + + ---- + **Note** + + ---- + + ---- + **Note** + At frequencies greater than 3.6 GHz, the PXIe-5605 provides a typical bandwidth of 47 MHz at dB with the preselector enabled. The fft_width property can override the typical bandwidth of the PXIe-5605 up to 57 MHz using an external digitizer and up to 50 MHz or 25 MHz depending on the PXIe-5622 digitizer option you purchased. The increase in bandwidth results in faster signal acquisitions, but amplitude accuracy is decreased for spectrum acquisitions, and magnitude and phase accuracy is decreased for I/Q acquisitions. National Instruments does not guarantee device specifications if you set the fft_width property greater than the warranted instantaneous bandwidth specification. + + ---- + + ---- + **Note** + When using the PXIe-5606, the 765 MHz IF filter is only available at center frequencies of 3.6 GHz and above. + + ---- + + **Default Value**: N/A + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668 + + +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | Downconverter Center Frequency | PXIe-5601 Instantaneous Bandwidth | FFT Width Upper Limit | + +=====================================================================================================================================================================================+===================================+====================================================================+ + | 10 MHz to <120 MHz | 10 MHz | 10 MHz (Revision E), 20 MHz< sup >* < /sup> (Revision G or later) | + +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | 120 MHz to <330 MHz | 20 MHz | 20 MHz (Revision E), 30 MHz< sup > * < /sup> (Revision G or later) | + +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | 330 MHz to <6.6 GHz | 50 MHz | 50 MHz | + +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + | * < / sup >National Instruments does not guarantee device specifications if you set the fft_width property greater than the warranted instantaneous bandwidth specification. | | | + +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------------+ + ''' + fft_window_shape_factor = _attributes.AttributeViReal64(1150206) + '''Type: float + + Returns the shape factor of the window used in the fast Fourier transform (FFT). + + The window shape factor is defined as the ratio of the 60 dB to 6 dB bandwidths. + + The following table shows the shape factor for each NI-RFSA FFT window type. + + | Window Type | Shape Factor | + |:-----------------------|:-------------| + | Uniform | 1.57:1 | + | Hanning | 1.94:1 | + | Hamming | 2.13:1 | + | Exact Blackman | 2.52:1 | + | Flat Top | 2.0:1 | + | 4-term Blackman-Harris | 2.5:1 | + | 7-term Blackman-Harris | 4.1:1 | + | Low Side Lobe | 2.78:1 | + | Gaussian | 2.3:1 | + | Kaiser Bessel | 2.55:1 | + + **Default Value**: N/A + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + ''' + fft_window_size = _attributes.AttributeViInt32(1150049) + '''Type: int + + Returns the size of the window used in the fast Fourier transform (FFT), in terms of the number of samples in the window. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fft_window_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SpectrumFftWindowType, 1150017) + '''Type: enums.SpectrumFftWindowType + + Specifies the time-domain window type. + + **Default Values**: + + **PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS + + **PXIe-5667**: SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Resolution Bandwidth `_ + + **Defined Values**: + + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===============================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | SpectrumFftWindowType.UNIFORM | No window is applied. | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.HANNING | The Hanning window is useful for analyzing transients longer than the time duration of the window, and also for general-purpose applications. | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.HAMMING | A Hamming window is applied to the waveform using the following equation: y[i] = x[i] * (0.54 - 0.46cos(w)) where w = (2)i/n and n = the waveform size. Note: Hanning and Hamming windows are somewhat similar. However, in the time domain, the Hamming window does not get as close to zero near the edges as does the Hanning window. | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.BLACKMAN_HARRIS | A Blackman-Harris window is applied to the waveform using the following equation: y[i] = x[i] * (0.42323 - 0.49755*cos(w) + 0.07922*cos(2w)) | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.EXACT_BLACKMAN | An Exact Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w)) | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.BLACKMAN | A Blackman window is useful for analyzing transient signals, and provides similar windowing to Hanning and Hamming windows but adds one additional cosine term to reduce ripple. A Blackman window is applied to the waveform using the following equation: y[i] = x[i] * (0.42 - 0.50*cos(w) + 0.08*cos(2w)) | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.FLAT_TOP | The fifth-order Flat Top window has the best amplitude accuracy of all the window methods. The increased amplitude accuracy (0.02 dB for signals exactly between integral cycles) is at the expense of frequency selectivity. The Flat Top window is most useful in accurately measuring the amplitude of single frequency components with little nearby spectral energy in the signal. A fifth-order Flat Top window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w)) | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType._4_TERM_BLACKMAN_HARRIS | A 4-term Blackman-Harris window is a general purpose window; it has side-lobe rejection in the upper 90 dB, with moderately wide side lobe. A 4-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w)) | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType._7_TERM_BLACKMAN_HARRIS | A 7-term Blackman-Harris window has the highest dynamic range; it is ideal for signal-to-noise ratio applications. A 7-term Blackman Harris window is applied to the waveform using the following equation: y[i] = x[i] * (a0 - a1*cos(w) + a2*cos(2w) - a3*cos(3w) + a4*cos(4w) - a5*cos(5w) + a6*cos(6w)) | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.LOW_SIDE_LOBE | The Low Side Lobe window further reduces the size of the main lobe. The following equation defines the Low Side Lobe window. where *N* is the length of window | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.GAUSSIAN | A Gaussian window is applied to the waveform using the following equation: y[i] = x[i] * exp(-0.5*(i - (N-1)/2)^2 / ((N-1)/2)^2) where N is the length of the window | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumFftWindowType.KAISER_BESSEL | A Kaiser-Bessel window is applied to the waveform using the following equation: y[i] = x[i] * I0(β*sqrt(1 - (2i/(N-1) - 1)^2))/I0(β) where i is between 0 and N-1, N is the length of the window, β determines the shape of the window, and I0 is the zeroth order Modified Bessel method of the first kind | + +-----------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + fixed_group_delay_across_ports = _attributes.AttributeViStringCommaSeparated(1150324) + '''Type: list of str + + Specifies a comma-separated list of ports for which to fix the group delay. + + **Valid Values**: + + PXIe-5831/5832: rf<0-1>/port, where 0-1 indicates one (0) or two (1) mmRH-5582 connections and x is the port number on the mmRH-5582 front panel. + + **Default Value**: + + PXIe-5831/5832: (empty string), which specifies that the group delay will not be fixed for any port. + + **Supported Devices**: PXIe-5831/5832 + ''' + fpga_bitfile_path = _attributes.AttributeViString(1150221) + '''Type: str + + Returns a string containing the path to the location of the current NI-RFSA instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. + + You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the __init__ method. + + NI-RFSA instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the device FPGA while maintaining the functionality of the NI-RFSA instrument driver. + + Refer to `NI-RFSA Instrument Driver FPGA Extensions `_ for more information about using NI-RFSA instrument driver FPGA extensions for NI devices. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fpga_target_name = _attributes.AttributeViString(1150233) + '''Type: str + + Returns a string containing the name of the FPGA target being used. + + This name can be used with the RIO open session to open a reference to the FPGA. + + This property is channel dependent if multiple targets are supported. + + **Supported Devices:** PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fpga_temperature = _attributes.AttributeViReal64(1150254) + '''Type: float + + Returns the current temperature, in degrees Celsius, of the FPGA. + + ---- + **Note** + If you query this property during RF list mode, list steps may take longer to complete during list execution. + + ---- + + **Units**: degrees Celcius + + **Default Value**: N/A + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + frequency_settling = _attributes.AttributeViReal64(1150088) + '''Type: float + + Specifies the value used for local oscillator (LO) frequency settling. + + The units and interpretation for this scalar value are specified using the frequency_settling_units property. This property is not supported if you are using an external LO. + + The valid values for this property depend on the frequency_settling_units property. + + **Notes:** + 1. If the frequency settling units property is set to FrequencySettlingUnits.SECONDS_AFTER_LOCK and the downconverter loop bandwidth property is set to narrow, NI recommends a minimum settling time of 128 microseconds to ensure that the phase-locked loop (PLL) lock stabilizes. If the downconverter loop bandwidth is set to wide, NI recommends a minimum settling time of 16 microseconds. + 2. When in RF list mode, the valid values for FrequencySettlingUnits.SECONDS_AFTER_IO are 0 microseconds to 50 milliseconds. + 3. The valid values for this configuration depend on the module used as the LO source. Refer to the lo source property for more information. + + **Default Value**: 0.1 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 + + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | Device | FrequencySettlingUnits.SECONDS_AFTER_LOCK | FrequencySettlingUnits.SECONDS_AFTER_IO | %enum_value{frequency settling units.fsu ppm} | + +================================================================+===========================================================================================+============================================================================+===============================================+ + | PXIe-5663/5663E | 2 microseconds1 to 80 milliseconds, resolution of approximately 2 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5665/5667/5668 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds2, resolution of 1 microsecond | 1.0, 0.1, 0.01, 0.001 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5644/5645/5646 | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1 microsecond1 to 65 milliseconds, resolution of 1 microsecond | 1.0, 0.1, 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5830/5831/5832/5840/5841/5842 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5831/5832 with PXIe-5653 (using PXIe-3622 LO)3 | 1 microsecond1 to 10 seconds, resolution of 1 microsecond | 0 microseconds to 10 seconds, resolution of 1 microsecond | 1.0 to 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + | PXIe-5831/5832 with PXIe-5653 (using PXIe-5653 LO)3 | 4 microseconds to 80 milliseconds, resolution of approximately 4 microseconds | 0 microseconds to 80 milliseconds, resolution of 1 microsecond | 1.0 to 0.01 | + +----------------------------------------------------------------+-------------------------------------------------------------------------------------------+----------------------------------------------------------------------------+-----------------------------------------------+ + ''' + frequency_settling_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FrequencySettlingUnits, 1150087) + '''Type: enums.FrequencySettlingUnits + + Specifies the delay duration units and interpretation for LO settling. + + Specify the actual settling value using the frequency_settling property. This property is not supported if you are using an external LO. + + **Default Value**: FrequencySettlingUnits.PPM + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------------------------------------------+-------------------------------------------------------------------+ + | Name | Description | + +===========================================+===================================================================+ + | FrequencySettlingUnits.PPM | Specifies the frequency settling time in parts per million (PPM). | + +-------------------------------------------+-------------------------------------------------------------------+ + | FrequencySettlingUnits.SECONDS_AFTER_LOCK | Specifies the frequency settling in time after lock (seconds). | + +-------------------------------------------+-------------------------------------------------------------------+ + | FrequencySettlingUnits.SECONDS_AFTER_IO | Specifies the frequency settling time after I/O (seconds). | + +-------------------------------------------+-------------------------------------------------------------------+ + ''' + group_capabilities = _attributes.AttributeViStringCommaSeparated(1050401) + '''Type: list of str + + Returns a list of class-extension groups that NI-RFSA implements. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + host_dma_buffer_size = _attributes.AttributeViInt64(1150285) + '''Type: int + + Specifies the size of the DMA buffer in computer memory, in bytes. + + To set this property, the NI-RFSA device must be in the Configuration state. + + A sufficiently large host DMA buffer improves performance by allowing large fetches to be transferred more efficiently. + + **Default Value:** 8 MB + + **Supported Devices**: PXI-5820/5830/5831/5840/5841/5842/5860 + ''' + if_attenuation = _attributes.AttributeViReal64(1150074) + '''Type: float + + Configures the device attenuation to a value that has the actual calibrated IF attenuation closest to the desired value. + + **Valid Values**: 0 to 30 + + **Default Value**: N/A + + **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5663/5663E/5665/5667, PXIe-5693 + ''' + if_filter_bandwidth = _attributes.AttributeViReal64(1150205) + '''Type: float + + Specifies the IF filter path bandwidth for your device configuration. + + ---- + **Note** + For composite devices, such as the PXIe-5665/5667/5668, the IF filter path bandwidth includes all IF filters across the component modules of a composite device. + + ---- + + NI-RFSA uses this property in conjunction with the device_instantaneous_bandwidth property and the digital_if_equalization_enabled property to determine the settings for your measurement. NI-RFSA selects the next highest available filter based on the value you specify. The following table lists the IF filters available for NI devices. You may specify a higher value than your device instantaneous bandwidth if your measurement requires it, but specifying a lower value returns an error. + + **Valid Values**: + + **PXIe-5603/5605**: 0 to 80 MHz + + **PXIe-5665/5667**: 0 to 50 MHz + + **PXIe-5668**: 0 to 765 MHz + + **PXIe-5694**: 0 to 50 MHz + + ---- + **Note** + To set this property to values greater than 20 MHz, you must set the signal_conditioning_enabled property to SignalConditioningEnabled.BYPASSED + + ---- + + **Default Values:** For spectrum acquisition types the default is greater than or equal to the spectrum_span property. NI-RFSA chooses the default value of the if_filter_bandwidth property to correspond to the appropriate IF filter. For I/Q acquisition types NI-RFSA chooses the default value corresponding to the widest IF filter possible for your equipment setup. + + **Supported Devices**: PXIe-5603/5605/5606, PXIe-5665/5667/5668, PXIe-5694 + + +--------------------------+---------------------------+-------------------+ + | Device | IF Filter Bandwidth Range | IF Filter | + +==========================+===========================+===================+ + | PXIe-5603/5665 (3.6 GHz) | 2264300 kHz | 300 kHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (3.6 GHz) | >300 kHz and 22645 MHz | Through IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (3.6 GHz) | >5 MHz | Through IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5605/5665 (14 GHz) | 2264300 kHz | 300 kHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (14 GHz) | >300 kHz and 22645 MHz | 5 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5603/5665 (14 GHz) | >5 MHz | Through IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | 2264300 kHz | 300 kHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >300 kHz and 22645 MHz | 5 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >5 MHz and 2264100 MHz | 100 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >100 MHz and 2264320 MHz | 320 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + | PXIe-5668 | >320 MHz | 765 MHz IF filter | + +--------------------------+---------------------------+-------------------+ + ''' + if_output_frequency = _attributes.AttributeViReal64(1150086) + '''Type: float + + Returns the center frequency of the IF output signal that corresponds to the configured RF center frequency. + + The downconverter translates the RF input frequency to the IF output frequency by mixing it with the LO signal. The nominal values for the IF output frequency are shown in the following table. + + The coarse nature of the LO settings can cause the downconverter to be unable to tune to the exact LO frequency that would produce the nominal IF output frequency. Any coercion in the actual LO frequency results in the IF output frequency being slightly off from the nominal value. + + Additionally, if you use the downconverter_center_frequency and lo_frequency properties to program the downconverter, the IF output frequency could vary from the nominal value. NI-RFSA adjusts the acquired spectrum or I/Q data for the difference between nominal and actual IF output frequency. If you use an external digitizer with a RF downconverter, use this property to specify the actual IF output frequency. + + **Default Value**: N/A + + **Supported Devices**:PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694 + + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Downconverter | Nominal IF Output Frequency | + +===============+============================================================================================================================================================================================================================================================================================================+ + | PXI-5600 | 15 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5601 | 53 MHz or 187.5 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5603 | 187.5 MHz or 199 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5605 | 187.5 MHz, 190 MHz, or 199 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5606 | 187.5 MHz, 190 MHz, 199 MHz, 507.5 MHz, or 730 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5694 | - signal_conditioning_enabled set to SIGNAL_CONDITIONING_ENABLED and if_conditioning_down_conversion_enabled set to disabled: 193.6 MHz
- if_conditioning_down_conversion_enabled set to enabled: 21.4 MHz
- signal_conditioning_enabled set to SIGNAL_CONDITIONING_BYPASSED: 162.5 MHz to 212.5 MHz | + +---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + if_output_power_level = _attributes.AttributeViReal64(1150130) + '''Type: float + + Specifies the level of the IF signal leaving the system, in dBm. + + Use this property to increase or decrease the nominal IF signal output level to achieve better measurement results. + + If you set the if_output_power_level and if_output_power_level_offset properties at the same time, NI-RFSA returns an error. + + ---- + **Note** + If you set the if_output_power_level property to a value less than 201310 dBm, the IF output power level may be higher than the value you request. Read the value of this property to determine the configured IF output power level. + + ---- + + ---- + **Note** + The value of this property is limited by the amount of IF attenuation that the downconverter can apply, the reference_level property, the downconverter_center_frequency property, and the center_frequency property or iq_carrier_frequency property, depending on your acquisition type. + + ---- + + **Units**: dBm + + **Default Value**: + + **PXIe-5667**: -2 dBm + + **PXIe-5668**: -1 dBm + + **All other devices**: dBm + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694 + ''' + if_output_power_level_offset = _attributes.AttributeViReal64(1150131) + '''Type: float + + Specifies the number of dB by which to adjust the default IF output power level. + + This property does not depend on absolute IF output power levels, so you can use it to adjust the IF output power level on all NI-RFSA devices without knowing the exact default value. Use this property to increase or decrease the nominal output level to achieve better measurement results. The default value for the offset is 0 dB. + + If you set the if_output_power_level and if_output_power_level_offset properties at the same time, NI-RFSA returns an error. + + **Units**: dB + + **Default Value**: 0 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 + ''' + input_isolation_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InputIsolationEnabled, 1150170) + '''Type: enums.InputIsolationEnabled + + Specifies whether input isolation is enabled. + + Enabling this property isolates the input signal at the RF IN connector on the RF downconverter from the rest of the RF downconverter signal path. Disabling this property reintegrates the input signal into the RF downconverter signal path. + + ---- + **Note** + If you enable input isolation for your device, the device impedance is changed from the characteristic 50 impedance. A change in the device impedance may also cause a VSWR value higher than the device specifications. + + ---- + + For the PXIe-5830/5831/5832, input isolation is supported for all available ports for your hardware configuration. + + **Default Value**: InputIsolationEnabled.DISABLED, if the device configuration is supported. + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5693, PXIe-5820/5830/5831/5832/5840/5841 + + **Defined Values**: + + +--------------------------------+---------------------------+ + | Name | Description | + +================================+===========================+ + | InputIsolationEnabled.DISABLED | Disables input isolation. | + +--------------------------------+---------------------------+ + | InputIsolationEnabled.ENABLED | Enables input isolation. | + +--------------------------------+---------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + input_port = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.InputPort, 1150180) + '''Type: enums.InputPort + + Specifies the connector(s) to use to acquire the signal. + + To set this property, the NI-RFSA device must be in the Configuration state. + + **Default Values**: + + **PXIe-5820**: InputPort.IQ_IN + + **All other devices**: InputPort.RF_IN + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------+---------------------------------------------------------------------------------+ + | Name | Description | + +==================+=================================================================================+ + | InputPort.RF_IN | Enables the RF IN port. | + +------------------+---------------------------------------------------------------------------------+ + | InputPort.IQ_IN | Enables the I/Q IN port. | + +------------------+---------------------------------------------------------------------------------+ + | InputPort.CAL_IN | Enables the CAL IN port. | + +------------------+---------------------------------------------------------------------------------+ + | InputPort.I_ONLY | Enables the I terminals of the I/Q IN port. It is supported only for PXIe-5645. | + +------------------+---------------------------------------------------------------------------------+ + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + Returns a string that contains the firmware revision information for the NI-RFSA downconverter for the composite device you are currently using. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + ---- + **Note** + PXIe-5820/5830/5831/5832/5840/5841/5842/5860 devices will return "No revision information available." To retrieve the firmware revision, use MAX, Hardware Configuration Utility, or NI System Configuration API. + + ---- + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + Returns a string that contains the name of the manufacturer for the NI-RFSA device you are currently using. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + Returns a string that contains the model number or name of the NI-RFSA device that you are currently using. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Indicates the resource name NI-RFSA uses to identify the physical device. + + If you initialize NI-RFSA with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. + + If you initialize NI-RFSA with the resource name, this property contains that value. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + iq_carrier_frequency = _attributes.AttributeViReal64(1150059) + '''Type: float + + Specifies the expected carrier frequency of the incoming signal for demodulation. + + The NI-RFSA device tunes to this frequency. NI-RFSA may coerce this value based on hardware settings and the RF downconverter specifications. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + ---- + + **Units**: hertz (Hz) + + **Default Values**: + + **PXIe-5644/5645/5646, PXIe-5840/5841/5860, PXIe-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options)**: 1 GHz + + **PXIe-5842 (4 GHz bandwidth option) using the Standard personality**: 1 GHz + + **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 6.5 GHz + + **PXIe-5820**: 0 Hz + + **PXIe-5830/5831/5832**: 6.5 GHz + + **All other devices**: 100 MHz + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Carrier Wave `_ + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureIqCarrierFrequency + ''' + iq_in_port_carrier_frequency = _attributes.AttributeViReal64(1150181) + '''Type: float + + Configures the frequency of the signal. + + The onboard signal processing (OSP) frequency shifts the signal at this frequency to baseband prior to acquiring it. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the RF ports. + + ---- + + **Valid Values**: + + **PXIe-5645**: -60 MHz to +60 MHz + + **PXIe-5820**: -500 MHz to +500 MHz + + **Default Value**: 0 + + **Supported Devices**: PXIe-5645, PXIe-5820 + ''' + iq_in_port_temperature = _attributes.AttributeViReal64(1150204) + '''Type: float + + Returns the temperature of the I/Q IN circuitry on the device. + + **Units:** degrees C + + **Supported Devices:** PXIe-5645, PXIe-5820 + ''' + iq_in_port_terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IqInPortTerminalConfiguration, 1150182) + '''Type: enums.IqInPortTerminalConfiguration + + Configures the terminal configuration of the I/Q port. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the RF ports. + + ---- + + **PXIe-5820**: The only valid value for this property is IqInPortTerminalConfiguration.DIFFERENTIAL. + + **Default Value**: IqInPortTerminalConfiguration.DIFFERENTIAL + + **Supported Devices:** PXIe-5645, PXIe-5820 + + **Defined Values**: + + +--------------------------------------------+--------------------------------------------------+ + | Name | Description | + +============================================+==================================================+ + | IqInPortTerminalConfiguration.DIFFERENTIAL | Sets the terminal configuration to differential. | + +--------------------------------------------+--------------------------------------------------+ + | IqInPortTerminalConfiguration.SINGLE_ENDED | Sets the terminal configuration to single-ended. | + +--------------------------------------------+--------------------------------------------------+ + ''' + iq_in_port_vertical_range = _attributes.AttributeViReal64(1150183) + '''Type: float + + Specifies the voltage range for the I/Q terminals. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + The voltage range in differential terminal configuration is configurable from 2 Vpk-pk to 0.032 Vpk-pk in 1 dB steps. In single-ended terminal configuration, valid ranges are half those for differential. Values are always coerced up to the next valid range. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the RF ports. + + ---- + + **Valid Values:** + + **PXIe-5645**: 0 Vpk-pk to 2 Vpk-pk for differential terminal configuration, 0 Vpk-pk to 1 Vpk-pk for single-ended terminal configuration. + + **PXIe-5820**: 0 Vpk-pk to 4 Vpk-pk for differential terminal configuration. + + **Default Value**: 2 Vpk-pk + + **Supported Devices:** PXIe-5645, PXIe-5820 + ''' + iq_power_edge_ref_trigger_level = _attributes.AttributeViReal64(1150056) + '''Type: float + + Specifies the power level, in dBm, at which the device triggers. + + The device asserts the trigger when the signal crosses the level specified by the value of this property, taking into consideration the specified slope. If you are using external gain, refer to the external_gain property for more information about how this property affects the I/Q power edge trigger level. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - ConfigureIqPowerEdgeRefTrigger + ''' + iq_power_edge_ref_trigger_slope = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerIqPowerEdgeSlope, 1150057) + '''Type: enums.ReferenceTriggerIqPowerEdgeSlope + + Specifies whether the device asserts the trigger when the signal power is rising or falling. + + When you set the ref_trigger_type property to ReferenceTriggerType.IQ_POWER_EDGE, the device asserts the trigger when the signal power exceeds the specified level with the slope you specify. + + **Default Value**: ReferenceTriggerIqPowerEdgeSlope.RISING + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - ConfigureIqPowerEdgeRefTrigger + + **Defined Values**: + + +------------------------------------------+-------------------------------------------------------+ + | Name | Description | + +==========================================+=======================================================+ + | ReferenceTriggerIqPowerEdgeSlope.RISING | The trigger asserts when the signal power is rising. | + +------------------------------------------+-------------------------------------------------------+ + | ReferenceTriggerIqPowerEdgeSlope.FALLING | The trigger asserts when the signal power is falling. | + +------------------------------------------+-------------------------------------------------------+ + ''' + iq_power_edge_ref_trigger_source = _attributes.AttributeViString(1150055) + '''Type: str + + Specifies the channel from which the device monitors the trigger. + + NI-RFSA currently supports only 0 as the value of this property. + + **Default Value**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - ConfigureIqPowerEdgeRefTrigger + ''' + iq_rate = _attributes.AttributeViReal64(1150007) + '''Type: float + + Specifies the I/Q rate for the acquisition. + + The value is expressed in samples per second (S/s). + + Refer to the device_instantaneous_bandwidth property for more information about device specific instantaneous bandwidth limits. You can also refer to the *NI PXIe-5665 Specifications* for more information about instantaneous bandwidth device specifications. + + ---- + **Note** + For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. At I/Q rates above 50 MS/s, the dither noise can affect phase coherency performance and leak into the lower frequencies and the upper frequencies of the IF passband. Refer to the digitizer_dither_enabled property for more information about dithering. + + For the PXIe-5663/5663E/5665/5667, when you set the digitizer_sample_clock_timebase_source property to NIRFSA_VAL_ONBOARD_CLOCK, the downconverter instantaneous bandwidth is greater than or equal to the coerced I/Q rate times 0.8. For the PXIe-5665, the actual signal bandwidth is further limited by the combination of the chosen IF filter and anti-aliasing filter. + + ---- + + **PXI-5661**: You should not need to configure an I/Q rate higher than 25 megasamples per second (MS/s) because the PXI-5600 RF downconverter bandwidth is 20 MHz. If you configure a higher I/Q rate, you may see aliasing effects at negative frequencies because the IF frequency of the PXI-5600 is 15 MHz. + + **PXIe-5663/5663E**: Your maximum allowed instantaneous bandwidth depends on the I/Q carrier frequency you use. Refer to the `PXIe-5601 RF downconverter overview `_ for more information about instantaneous bandwidth. + + **PXIe-5665**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency if you have enabled the preselector (YIG-tuned filter). + + **PXIe-5667**: Your maximum allowed instantaneous bandwidth depends on the selected [RF preselector filter](RF_PRESELECTOR_FILTER.html) and whether the preselector on the [RF downconverter](PRESELECTOR_ENABLED.html) is enabled. + + **PXIe-5668**: Your maximum allowed instantaneous bandwidth depends on the downconverter center frequency you use and whether or not you enable the highpass filter or preselector (YIG-tuned filter). + + **Units**: S/s + + **Default Values:** + + **PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality**: 5 GS/s only. + + **All Other Devices**: 1 MS/s + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureIqRate + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + lo2_export_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.Lo2ExportEnabled, 1150235) + '''Type: enums.Lo2ExportEnabled + + Specifies whether to enable the LO2 OUT terminal on the installed devices. + + Set this property to TRUE to export the 4 GHz LO signal from the device LO2 IN terminal to the LO2 OUT terminal. + + You can also export the LO2 signal by setting the lo_export_enabled property and the digitizer_sample_clock_timebase_source property. + + | Value | Description | + |:------|:-------------------------------| + | True | Enables the LO2 OUT terminal. | + | False | Disables the LO2 OUT terminal. | + + **Default Value:** False + + **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5668 + + **Defined Values**: + + +---------------------------+----------------------+ + | Name | Description | + +===========================+======================+ + | Lo2ExportEnabled.DISABLED | Disables LO2 export. | + +---------------------------+----------------------+ + | Lo2ExportEnabled.ENABLED | Enables LO2 export. | + +---------------------------+----------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + load_configurations_from_file_reset_options = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoadConfigurationResetOptions, 1150337) + '''Type: enums.LoadConfigurationResetOptions + + Specifies the configurations to skip to reset while loading configurations from a file. + + **Default Value:** NIRFSA_VAL_SKIP_NONE + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------------------------------------------+--------------------------------------------------+ + | Name | Description | + +==================================================+==================================================+ + | LoadConfigurationResetOptions.NONE | NI-RFSA resets all configurations. | + +--------------------------------------------------+--------------------------------------------------+ + | LoadConfigurationResetOptions.DEEMBEDDING_TABLES | NI-RFSA skips resetting the de-embedding tables. | + +--------------------------------------------------+--------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + Contains the logical name you specified when opening the current IVI session. + + You may pass a logical name to the Init method or the __init__ method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + lo_export_enabled = _attributes.AttributeViBoolean(1150134) + '''Type: bool + + Specifies whether to enable the LO OUT terminals on the installed devices. + + **PXIe-5601**: The only valid value for this property is True. + + **PXIe-5603/5605/5606**: If you want to daisy-chain multiple devices together using the same LO source, set this property to TRUE to export the LO input signals on the LO1 IN, LO2 IN, and LO3 IN terminals to LO1 OUT, LO2 OUT, and LO3 OUT, respectively. + + **PXIe-5694**: You can enable this property only if you set the lo_source property to LoSource.LO_IN, or if you set the lo_source property to LoSource.ONBOARD and the IF_CONDITIONING_DOWN_CONVERSION_ENABLED property to NIRFSA_VAL_ENABLED. + + **PXIe-5830/5831**: To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_boolean method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). + + ---- + **Note** + If you are sharing an LO for the PXIe-5830/5831/5832 between an NI-RFSA and NI-RFSG session, ensure both sessions use the same shared setting. + + ---- + + **Defined Values:** + + | Value | Description | + |:---------|:-------------------------------| + | True | Enables the LO OUT terminals. | + | False | Disables the LO OUT terminals. | + + **Default Values**: + + **PXIe-5601, PXIe-5663/5663E**: True + + **PXIe-5603/5605/5606, PXIe-5644/5645/5646, PXIe-5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842**: False + + **Supported Devices**: PXIe-5601/5603/5605 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_export_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_export_enabled` + ''' + lo_frequency = _attributes.AttributeViReal64(1150068) + '''Type: float + + Specifies the LO signal frequency for the configured center frequency. + + If you are using the NI RF vector signal analyzer with an external LO, use this property to specify the LO frequency that the external LO source passes into the LO IN or LO1 IN connector on the RF downconverter front panel. If you are using an external LO, reading the value of this property after configuring the rest of the parameters returns the LO frequency needed by the device. + + Set this property to the actual LO frequency because NI-RFSA corrects for any difference between expected and actual LO frequencies. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Values**: + + **PXIe-5694**: 215 MHz + + **All other devices**: 0 + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Configuration `_ + + `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ + + `PXIe-5841 Frequency and Bandwidth Configuration `_ + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_frequency` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_frequency` + ''' + lo_frequency_step_size = _attributes.AttributeViReal64(1150188) + '''Type: float + + Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). + + You can only tune the LO frequency by multiples of the lo_frequency_step_size property. For the PXIe-5644/5645/5646 and PXIe-5840/5841, the LO frequency can therefore be offset from the requested center frequency by as much as half of the lo_frequency_step_size property. This offset is corrected by digitally frequency shifting the lo_frequency property to the value requested in either the iq_carrier_frequency property or the center_frequency property. + + ---- + **Note** + For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. + + ---- + + The valid values for this property depend on the lo_pll_fractional_mode_enabled property. + + **PXIe-5644/5645/5646**: If the lo_pll_fractional_mode_enabled property is set to NIRFSA_VAL_DISABLED, the specified value is coerced to the closest valid value. + + **PXIe-5840/5841/5842**: If the lo_pll_fractional_mode_enabled property is set to NIRFSA_VAL_DISABLED, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. + + * Values up to 100 MHz are coerced to 50 MHz. + + ---- + **Note** + The default value for the PXIe-5831 depends on the frequency range of the selected port for your instrument configuration. Refer to the `Instrument Configurations `_ topic for more information about available ports for your hardware configuration. + + ---- + + **Default Values:** + + **PXIe-5644/5645/5646:** 200 kHz + + **PXIe-5830:** 2 MHz + + **PXIe-5831/5832 (RF port):** 8 MHz + + **PXIe-5831/5832 (IF port):** 2 MHz, 4 MHz + + **PXIe-5840/5841:** + + - Fractional mode: 500 kHz + - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. + + **PXIe-5841 with PXIe-5655:** 500 kHz + + **PXIe-5842:** 1 Hz + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + +--------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ + | lo_pll_fractional_mode_enabled | PXIe-5644/5645 | PXIe-5646 | PXIe-5840/5841 | PXIe-5830/5831/5832 | PXIe-5841 w/PXIe-5655 | + +================================+=====================================+==============================+===============================================+============================================+=======================+ + | NIRFSA_VAL_ENABLED | 50 kHz to 24 MHz | 50 kHz to 25 MHz | 50 kHz to 100 MHz | LO1: 8 Hz to 400 MHz + LO2: 4 kHz to 400 MHz | 1 nHz to 50 MHz | + +--------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ + | NIRFSA_VAL_DISABLED | 4 MHz, 5 MHz, 6 MHz, 12 MHz, 24 MHz | 2 MHz, 5 MHz, 10 MHz, 25 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, 100 MHz | LO1: -- + LO2: -- | 1 nHz to 50 MHz | + +--------------------------------+-------------------------------------+------------------------------+-----------------------------------------------+--------------------------------------------+-----------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + lo_injection_side = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoInjection, 1150069) + '''Type: enums.LoInjection + + Specifies the LO injection side. + + **PXIe-5601/5663/5663E**: For frequencies below 517.5 MHz or above 6.4125 GHz, the LO injection side is fixed and NI-RFSA returns an error if you specify the incorrect value. If you do not configure this property, NI-RFSA selects the default LO injection side based on the downconverter center frequency. Reset this property to return to automatic behavior. + + **PXIe-5603/5605/5665 (3.6 GHz)/5667 (3.6 GHz)**: Setting this property to LoInjection.LOW is not supported for this device. + + **PXIe-5605/5665 (14 GHz)/5667 (7 GHz)**: Setting this property to LoInjection.LOW is supported for this device for frequencies greater than 4 GHz, but this configuration is not calibrated, and device specifications are not guaranteed. + + **PXIe-5606/5668**: Setting this property to LoInjection.LOW is supported for certain frequencies in high band, varying by final IF frequency. This configuration is not calibrated and device specifications are not guaranteed. + + **Default Values**: + + **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies < 3.0 GHz)**: LoInjection.HIGH + + **PXIe-5601 (external digitizer mode), PXIe-5663/5663E (frequencies 3.0 GHz)**: LoInjection.LOW + + **PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668**: LoInjection.HIGH + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 + + **Defined Values**: + + +------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==================+=====================================================================================================================================================================================================+ + | LoInjection.HIGH | Configures the LO signal that the NI-RFSA device generates at a frequency higher than the RF frequency. This LO frequency is given by the formula fLO = fRF + fIF. | + +------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | LoInjection.LOW | Configures the LO signal that the NI-RFSA device generates at a frequency lower than the RF frequency. This LO frequency is given by the formula fLO = fRF - fIF. | + +------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + lo_in_power = _attributes.AttributeViReal64(1150186) + '''Type: float + + Returns the power level, in dBm, expected at the LO IN terminal when the lo_source property is set to LoSource.LO_IN. + + ---- + **Note** + For the PXIe-5644/5645/5646, this property is always read-only. + + ---- + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + ''' + lo_out_export_configure_from_rfsg = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoOutExportConfigureFromRfsg, 1150299) + '''Type: enums.LoOutExportConfigureFromRfsg + + Specifies whether to allow NI-RFSG to control the NI-RFSA LO out export. + + Set this property to LoOutExportConfigureFromRfsg.ENABLED to allow NI-RFSG to control the LO out export. Use the NIRFSG ATTR RF IN LO EXPORT ENABLED property to control the NI-RFSA LO out export from NI-RFSG. + + **Default Value:** LoOutExportConfigureFromRfsg.DISABLED + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +---------------------------------------+----------------------------------------------------------------------+ + | Name | Description | + +=======================================+======================================================================+ + | LoOutExportConfigureFromRfsg.DISABLED | Do not allow NI-RFSG to control the NI-RFSA local oscillator export. | + +---------------------------------------+----------------------------------------------------------------------+ + | LoOutExportConfigureFromRfsg.ENABLED | Allow NI-RFSG to control the NI-RFSA local oscillator export. | + +---------------------------------------+----------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + lo_out_power = _attributes.AttributeViReal64(1150246) + '''Type: float + + Specifies the power level, in dBm, of the signal at the LO OUT terminal when the lo_export_enabled property is set to True. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Units:** dBm + + **Supported Devices:** PXIe-5830/5831/5832/5840/5841/5842 + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_out_power` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_out_power` + ''' + lo_pll_fractional_mode_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoPllFractionalModeEnabled, 1150187) + '''Type: enums.LoPllFractionalModeEnabled + + Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). + + Fractional mode gives a finer frequency step resolution, but it may result in non harmonic spurs. Refer to the device specifications for your device for more information about fractional mode and non harmonic spurs. + + ---- + **Note** + The lo_pll_fractional_mode_enabled property is applicable only when using the internal LO. + + ---- + + ---- + **Note** + For the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653, this property is ignored if the PXIe-5653 is used as the LO source. For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. + + ---- + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value**: LoPllFractionalModeEnabled.ENABLED + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------------------------------------+------------------------------------------+ + | Name | Description | + +=====================================+==========================================+ + | LoPllFractionalModeEnabled.DISABLED | Disables fractional mode for the LO PLL. | + +-------------------------------------+------------------------------------------+ + | LoPllFractionalModeEnabled.ENABLED | Enables fractional mode for the LO PLL. | + +-------------------------------------+------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` + ''' + lo_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.LoSource, 1150162) + '''Type: enums.LoSource + + Specifies the LO signal source used to downconvert the RF input signal. + + If no signal downconversion is required, this property is ignored. If this property is set to "" (empty string), NI-RFSA uses the internal LO source. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the only valid value for the channel string is "" (empty string). + + ---- + **Note** + For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to LoSource.LO_SOURCE_SG_SA_SHARED. + + ---- + + + + + **Default Value**: LoSource.ONBOARD ("Onboard") + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5694, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ + `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ + + **Defined Values**: + + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=================================+===================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | LoSource.ONBOARD | Specifies that the onboard synthesizer is used to generate the LO signal that downconverts the RF input signal.**PXIe-5831/5832** This configuration uses the onboard LO of the PXIe-3622, using the LO2 stage.**PXIe-5831/5832 with PXIe-5653** This configuration uses the onboard LO of the PXIe-5653 when associated with the PXIe-3622.**PXIe-5841 with PXIe-5655** This configuration uses the onboard LO of the PXIe-5655. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | LoSource.LO_IN | Specifies that the LO source used to downconvert the RF input signal is connected to the LO IN connector on the front panel. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | LoSource.LO_SOURCE_SECONDARY | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid on only the PXIe-5831 with PXIe-5653 (LO1 stage only) or PXIe-5832 with PCIe-5653 (LO1 stage only). | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | LoSource.LO_SOURCE_SG_SA_SHARED | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSA selects an internal synthesizer and the synthesizer signal is switched to both the RF Out and RF In mixers. This value is valid on only the PXIe-5830/5831/5832/5841 with PXIe-5655. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_source` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsa.Session`. + + Example: :py:attr:`my_session.lo_source` + ''' + lo_temperature = _attributes.AttributeViReal64(1150089) + '''Type: float + + Returns the current temperature, in degrees Celsius, of the LO module. + + **PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668** This property is not supported if you are using an external LO. + + **PXIe-5840/5841/5842**: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode) PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5840/5841/5842 + ''' + lo_vco_frequency_step_size = _attributes.AttributeViReal64(1150312) + '''Type: float + + Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. + + ---- + **Note** + Do not set this property with the lo_frequency_step_size property. + + ---- + + **Valid Values**: + + LO1: 1 Hz to 50 MHz + + LO2: 1 Hz to 100 MHz + + **Default Values**: 1 MHz + + **Supported Devices**: PXIe-5830/5831/5832 + ''' + lo_yig_main_coil_drive = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoYigMainCoilDrive, 1150135) + '''Type: enums.LoYigMainCoilDrive + + Adjusts the dynamics of the current driving the YIG main coil. + + ---- + **Note** + Setting this property to LoYigMainCoilDrive.FAST allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. This property is not supported if you are using an external LO. + + ---- + + **Default Value**: LoYigMainCoilDrive.NORMAL + + **Supported Devices:** PXIe-5603/5605/5606 (external digitizer mode), PXIe-5665/5667/5668 + + **Defined Values**: + + +---------------------------+------------------------------------------------------------------+ + | Name | Description | + +===========================+==================================================================+ + | LoYigMainCoilDrive.NORMAL | Adjusts the YIG main coil on the LO for an underdamped response. | + +---------------------------+------------------------------------------------------------------+ + | LoYigMainCoilDrive.FAST | Adjusts the YIG main coil on the LO for an overdamped response. | + +---------------------------+------------------------------------------------------------------+ + ''' + max_device_instantaneous_bandwidth = _attributes.AttributeViReal64(1150236) + '''Type: float + + Returns the maximum instantaneous bandwidth of the device. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + max_iq_rate = _attributes.AttributeViReal64(1150237) + '''Type: float + + Returns the maximum I/Q rate. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + mechanical_attenuation = _attributes.AttributeViReal64(1150128) + '''Type: float + + Specifies the level of mechanical attenuation for the RF path, in dB. + + **PXIe-5667**: This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. + + **PXIe-5668with PXIe-5698**: This property is read-only when the rf_preamp_enabled property is set to EnableRfPreamp.ENABLED. + + **Units**: dB + + **Valid Values:** + + **PXIe-5601/5663/5663E**: 0, 16 + + **PXIe-5603/5665 (3.6 GHz)**: 0, 10, 20, 30 + + **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 10, 20, 30 + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 0 + + **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75 + + **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 0 + + **PXIe-5668 with PXIe-5698 with the** rf_preamp_enabled property set to EnableRfPreamp.ENABLED: 5 + + **Default Value**: N/A + + **Supported Devices**: PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5663/5663E/5665/5667/5668 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + memory_size = _attributes.AttributeViInt64(1150085) + '''Type: int + + Returns the digitizer onboard memory size, in bytes. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + minimum_acpr = _attributes.AttributeViReal64(1150142) + '''Type: float + + Specifies the minimum adjacent channel power ratio (ACPR), in dB, relative to the main channel reference level. + + This property configures NI-RFSA to optimize downconverter gain to measure a lower-power adjacent channel, adding gain only after filtering the main channel. The gain NI-RFSA applies is always less than or equal to the ACPR value you specify. + + ---- + **Note** + For the PXIe-5665 (3.6 GHz), this property is supported only if you set the device_instantaneous_bandwidth, spectrum_span, or if_filter_bandwidth property to a value less than 300 kHz. For the PXIe-5665 (14 GHz), this property is supported for device_instantaneous_bandwidth, spectrum_span, or if_filter_bandwidth property values less than 300 kHz by using the 300 kHz IF filter, and it is supported for values between 300 kHz and 5 MHz by using the 5 MHz IF filter. + + ---- + + ---- + **Note** + NI-RFSA coerces this property to zero for the PXI-5600, PXIe-5601 and the PXIe-5667. For all other devices, read the coerced value of this property to determine the actual amount of gain applied. + + ---- + + ---- + **Note** + For the PXIe-5668, this property alters the if_output_power_level property. This property will not affect the reference_level property. + + ---- + + **Default Value**: 0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + ''' + mixer_level = _attributes.AttributeViReal64(1150006) + '''Type: float + + Specifies the mixer level, in dBm. + + The mixer level represents the attenuation value to apply to the input RF signal as it reaches the first mixer in the signal chain. If you do not set this property, NI-RFSA automatically selects an optimal mixer level value based on the reference level. The valid values for this property depend on your device configuration. + + If you set the mixer_level and mixer_level_offset properties at the same time, NI-RFSA returns an error. + + **PXIe-5601/5663/5663E**: This property is read-only. + + **PXIe-5667**: This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. + + **Units**: dBm + + **Default Values**: + + **PXI-5600/5661**: -30 + + **PXIe-5603/5605/5665/5667/5668**: -10 + + **All other devices**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + mixer_level_offset = _attributes.AttributeViReal64(1150127) + '''Type: float + + Specifies the number of dB by which to adjust the device mixer level. + + The default value is 0, which specifies device settings that are the best compromise between distortion and noise. Specifying a positive value for this property configures the device for moderate distortion and low noise, and specifying a negative value results in low distortion and higher noise. + + You cannot set the mixer_level and mixer_level_offset properties at the same time. + + **PXIe-5667**: This property is read-only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to NIRFSA_VAL_DISABLED. + + **Units**: dB + + **Default Value**: 0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + module_power_consumption = _attributes.AttributeViReal64(1150255) + '''Type: float + + Returns the module power consumption. + + ---- + **Note** + If you query this property during RF list mode, list steps may take longer to complete during list execution. + + ---- + + **Units**: watts + + **Default Value**: N/A + + **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + module_revision = _attributes.AttributeViString(1150091) + '''Type: str + + Returns the revision of the RF downconverter module. + + ---- + **Note** + For the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5840/5841, this property returns the revision of the VST module. For the PXIe-5830/5831/5832, this property returns the revision of the PXIe-3621/3622 + + ---- + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + noise_source_power_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.NoiseSourcePowerEnabled, 1150222) + '''Type: enums.NoiseSourcePowerEnabled + + Enables the 28 V DC source on the device front panel. + + **PXIe-5668 with PXIe-5698**: When this property is set to NoiseSourcePowerEnabled.ENABLED, the PXIe-5698 noise source is used instead of the PXIe-5668 noise source. + + **Units**: dB + + **Default Value**: NoiseSourcePowerEnabled.DISABLED + + **Supported Devices**: PXIe-5606, PXIe-5668, PXIe-5698 + + **Defined Values**: + + +----------------------------------+----------------------------------+ + | Name | Description | + +==================================+==================================+ + | NoiseSourcePowerEnabled.DISABLED | Disables the noise source power. | + +----------------------------------+----------------------------------+ + | NoiseSourcePowerEnabled.ENABLED | Enables the noise source power. | + +----------------------------------+----------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + number_of_records = _attributes.AttributeViInt64(1150011) + '''Type: int + + Specifies the number of records to acquire if the number_of_records_is_finite property is set to True. + + **Default Value**: 1 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureNumberOfRecords + ''' + number_of_records_is_finite = _attributes.AttributeViBoolean(1150010) + '''Type: bool + + Specifies whether the device stops after acquiring the specified number of records or acquires records continuously. + + **Defined Values**: + + | Value | Description | + |:---------|:--------------------------------------------------------------| + | True | Acquire a finite number of records. | + | False | Acquire records continuously until you abort the acquisition. | + + **Default Value**: True + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureNumberOfRecords + ''' + number_of_samples = _attributes.AttributeViInt64(1150009) + '''Type: int + + Specifies the number of samples to acquire. + + This property is valid only if the number_of_samples_is_finite property is set to True. + + **Default Value**: 1,000 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureNumberOfSamples + ''' + number_of_samples_is_finite = _attributes.AttributeViBoolean(1150008) + '''Type: bool + + Specifies whether the device acquires a finite number of samples or acquires continuously. + + **Defined Values**: + + | Value | Description | + |:---------|:------------------------------------------------------| + | True | Acquire a finite number of samples. | + | False | Acquire continuously until you abort the acquisition. | + + **Default Value**: True + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `I/Q Modulation `_ + + **High-Level Methods**: + + - ConfigureNumberOfSamples + ''' + number_of_spectral_lines = _attributes.AttributeViInt32(1150018) + '''Type: int + + Specifies the number of spectral lines expected with the current power spectrum configuration. + + If you do not configure this property, NI-RFSA selects an appropriate value based on the resolution_bandwidth property. If you configure this property, NI-RFSA coerces the resolution_bandwidth value based on the number of spectral lines requested and the value of the spectrum_span property. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + osp_data_scaling_factor = _attributes.AttributeViReal64(1150151) + '''Type: float + + Specifies the scaling factor applied to the time-domain voltage data in the IF digitizer. + + Use this property to maximize the dynamic range of the digitizer by increasing the maximum IF power the digitizer can measure without creating OSP overflows. + + Because of the device amplitude response, some wide-band signals normally attenuated by the downconverter go through the IF digitizer without causing an ADC overflow. During IF equalization, these wide-band digitizer input signals may become amplified. These amplified input signal values overflow the available numeric range used in the signal processing algorithm. + + You can use this property when OSP calculations would generate an overflow while applying digital filters to the data. The OSP module in the digitizer multiplies the time-domain signal amplitude, in volts, by the specified property value before further onboard processing. Set this property to a value less than 1 to avoid OSP overflow for near full-scale IF signals and to use the maximum dynamic range of the digitizer. NI-RFSA compensates for the specified OSP data scaling factor to ensure that the correct scaled data, in absolute levels, is always returned regardless of the value of this property. + + **Valid Values:**: 0.25 to 1.0 + + **Default Values:** + + **PXI-5661, PXIe-5663/5663E/5665 (3.6 GHz)/5667 (3.6 GHz)/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860**: 1.0 + + **PXIe-5665 (14 GHz)/5667 (7 GHz)**: 0.8 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + overflow_error_reporting = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OverflowErrorReporting, 1150271) + '''Type: enums.OverflowErrorReporting + + Configures error reporting for ADC and onboard signal processing overflows. + + Overflows lead to clipping of the waveform. + + **Default Value**: OverflowErrorReporting.WARNING + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------+--------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=================================+========================================================================================================+ + | OverflowErrorReporting.WARNING | Configures NI-RFSA to return a warning when an ADC or onboard signal processing (OSP) overflow occurs. | + +---------------------------------+--------------------------------------------------------------------------------------------------------+ + | OverflowErrorReporting.DISABLED | Configures NI-RFSA to not return an error or a warning when an ADC or OSP overflow occurs. | + +---------------------------------+--------------------------------------------------------------------------------------------------------+ + ''' + phase_offset = _attributes.AttributeViReal64(1150106) + '''Type: float + + Specifies the offset to apply to the initial I and Q phases. + + **Valid Values**: 0 to 180 + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 + ''' + power_spectrum_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerSpectrumUnits, 1150012) + '''Type: enums.PowerSpectrumUnits + + Specifies the units of the power spectrum. + + **Default Value**: PowerSpectrumUnits.DBM + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------+---------------------------------------------+ + | Name | Description | + +==================================+=============================================+ + | PowerSpectrumUnits.DBM | Units are dB with reference to 1 milliwatt. | + +----------------------------------+---------------------------------------------+ + | PowerSpectrumUnits.VOLTS_SQUARED | Units are in volts squared. | + +----------------------------------+---------------------------------------------+ + | PowerSpectrumUnits.DBMV | Units are dB with reference to 1 millivolt. | + +----------------------------------+---------------------------------------------+ + | PowerSpectrumUnits.DBUV | Units are dB with reference to 1 microvolt. | + +----------------------------------+---------------------------------------------+ + | PowerSpectrumUnits.VOLTS | Units are in volts. | + +----------------------------------+---------------------------------------------+ + | PowerSpectrumUnits.WATTS | Units are in watts. | + +----------------------------------+---------------------------------------------+ + ''' + preselector_present = _attributes.AttributeViBoolean(1150136) + '''Type: bool + + Returns whether a preselector is available on the RF downconverter module. + + **Defined Values**: + + | Value | Description | + |:---------|:--------------------------------------------------| + | True | A preselector is available on the downconverter. | + | False | No preselector is available on the downconverter. | + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842 + ''' + ready_for_advance_event_terminal_name = _attributes.AttributeViString(1150118) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForAdvanceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForAdvanceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerNameReadyForAdvanceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + ready_for_ref_event_terminal_name = _attributes.AttributeViString(1150119) + '''Type: str + + Returns the fully qualified signal name as a string. + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForReferenceEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForReferenceEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/ReadyForReferenceEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + ready_for_start_event_terminal_name = _attributes.AttributeViString(1150117) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/ReadyForStartEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/ReadyForStartEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/ReadyForStartEvent, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + records_done = _attributes.AttributeViInt64(1150047) + '''Type: int + + Returns the number of records the RF vector signal analyzer has acquired. + + **Default Value**: N/A + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + reference_level = _attributes.AttributeViReal64(1150004) + '''Type: float + + Specifies the reference level, in dBm. + + The reference level represents the maximum expected power of an RF input signal. + + ---- + **Note** + For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + ---- + + Refer to the external_gain property for more information about how configuring an external gain and a reference level affect attenuation. + + **Default Value**: 0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Improving Your Measurements `_ + + `Programming Attenuation-Related Properties and Properties Using NI-RFSA `_ + + **High-Level Methods**: + + - ConfigureReferenceLevel + ''' + reference_level_headroom = _attributes.AttributeViReal64(1150309) + '''Type: float + + Specifies the margin NI-RFSA adds to the reference_level property. + + The margin helps to avoid clipping and overflow warnings if the input signal exceeds the configured reference level. + + NI-RFSA configures the input gain to avoid clipping and associated overflow warnings as long as the instantaneous power of the input signal remains within the reference level plus the reference level headroom. If you know the input power of the signal precisely or have already included margin in the reference level, you may be able to improve the signal-to-noise ratio by reducing the reference level headroom. + + **Units**: dB + + **Default Value**: + + **PXIe-5830/5831/5832/5841/5842/5860**: 1 dB + + **PXIe-5840**: 0 dB + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + ''' + ref_clock_rate = _attributes.AttributeViReal64(1150020) + '''Type: float + + Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. + + This property is only valid when the ref_clock_source property is set to NIRFSA_VAL_CLK_IN, NIRFSA_VAL_REF_IN, or ReferenceClockSource.REF_IN_2. + + **Valid Values**: + + **PXIe-5644/5645/5646, PXIe-5601/5663/5663E, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841**: 10 MHz + + **PXIe-5603/5605/5665/5667/5668**: 5 MHz to 100 MHz, in increments of 1 MHz + + **PXIe-5841 with PXIe-5655, PXIe-5842**: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz *y*, where *y* is 4, 8, 16, 24, 25, or 32. + + **PXIe-5860**: 10 MHz, 100 MHz + + **Default Value**: 10 MHz + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - configure_ref_clock + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + ref_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockSource, 1150019) + '''Type: enums.ReferenceClockSource + + Specifies the Reference Clock source. + + ---- + **Note** + For the PXIe-5694, if your application requires an external LO source, set this property to ReferenceClockSource.NONE. + + ---- + + **Default Values**: + + **PXIe-5694**: ReferenceClockSource.REF_IN + + **All other devices**: ReferenceClockSource.ONBOARD_CLOCK + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - configure_ref_clock + + **Defined Values**: + + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=====================================+===========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | ReferenceClockSource.NONE | No Reference Clock is required for the current device configuration. This value is valid only for the PXIe-5694 or the PXIe-5668. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockSource.ONBOARD_CLOCK | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI-5600 RF downconverter onboard clock.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to the PXI/PXIe-5652 LO source onboard clock. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, connect the REF IN/OUT connector on the PXI/PXIe-5652 to the CLK IN terminal on the PXI5622.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to the PXIe-5653 LO source onboard clock. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694.**PXIe-5668 **Lock the PXIe-5668 to the PXIe-5653 LO SOURCE onboard clock. Connect the LO2 OUT connector on the PXIe-5606 to the CLK IN connector on the PXIe-5624.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to its onboard clock.**PXIe-5841 with PXIe-5655 **Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector.**PXIe-5842 **Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the User Manual for the instrument.**PXIe-5860 **Lock to the PXIe-5860 onboard clock. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockSource.REF_IN | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the signal at the external FREQ REF IN connector on the PXI-5600**PXIe-5663/5663E **Connect the external signal to the PXI/PXIe-5652 REF IN/OUT connector. Connect the REF OUT2 connector (if it exists) on the PXI/PXIe-5652 to the CLK IN terminal on the PXIe-5622. On versions of the PXIe-5663/5663E that lack a REF OUT2 connector on the PXI/PXIe-5652, this configuration can only be used in external digitizer mode.**PXIe-5665 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5667 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the 100 MHz REF OUT terminal on the PXIe-5653 to the CLK IN terminal on the PXIe-5622, and connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. If your external clock signal frequency is set to a frequency other than 10 MHz, set the ref_clock_rate property according to the frequency of your external clock signal.**PXIe-5668 **Connect the external signal to the PXIe-5653 REF IN connector. Connect the LO2 OUT on the PXIe-5606 to the CLK IN connector on the PXIe-5622. If your external clock signal frequency is set to a frequency other than 10 MHz, set the **clock rate** parameter according to the frequency of your external clock signal.**PXIe-5694 **Connect the Reference Clock signal to the REF/LO IN connector on the PXIe-5694 front panel.**PXIe-5644/5645/5646, PXIe-5820/5840/5841 **Lock the NI-RFSA device to the signal at the external REF IN connector.**PXIe-5830/5831 **For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector.**PXIe-5831/5832 with PXIe-5653 **Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector.**PXIe-5841 with PXIe-5655 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842 **Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the User Manual for the instrument. PXIe-5860 Lock to the signal at the REF IN connector on the PXIe-5860. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockSource.PXI_CLK | **PXI-5661 **NI-RFSA locks the NI-RFSA device to the PXI backplane clock using the PXI-5600. You must connect the PXI 10 MHz connector to the REF IN connector on the PXI-5600 front panel to use this option. **PXIe-5668 **Lock the PXIe-5653 to the PXI backplane clock. Connect the PXIe-5606 LO2 OUT to the LO2 IN connector on the PXIe-5624.**PXIe-5644/5645/5646, PXIe-5663/5663E/5665/5667, PXIe-5694, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **Lock the device to the PXI backplane clock. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockSource.CLK_IN | **PXI-5661 **This configuration does not apply to the PXI-5661.**PXIe-5663/5663E **NI-RFSA locks the PXIe-5663/5663E to an external 10 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the FREQ REF IN connector on the PXI/PXIe-5652.**PXIe-5665 **NI-RFSA locks the PXIe-5665 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the ref_clock_rate property to 100 MHz.**PXIe-5667 **NI-RFSA locks the PXIe-5667 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5622, and connect the PXIe-5622 CLK OUT connector to the REF IN connector on the PXIe-5653. Connect the 10 MHZ REF OUT terminal on the PXIe-5653 to the REF/LO IN connector on the PXIe-5694. Set the ref_clock_rate property to 100 MHz.**PXIe-5668 **Lock the PXIe-5668 to an external 100 MHz signal. Connect the external signal to the CLK IN connector on the PXIe-5624, and connect the PXIe-5624 CLK OUT connector to the REF IN connector on the PXIe-5653. Set the **clock rate** parameter to 100 MHz.**PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5840 with PXIe-5653/5841/5841 with PXIe-5655/5842/5860 **This configuration does not apply. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockSource.PXI_CLK_MASTER | **PXIe-5831/5832 with PXIe-5653 **NI-RFSA configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector.**PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5840/5841/5841 with PXIe-5655 /5842/5860**This configuration does not apply. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceClockSource.REF_IN_2 | **PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5644/5645/5646, PXIe-5820/5830/5831/5831/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655 **This configuration does not apply. | + +-------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + ref_to_ref_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150034) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the minimum time, in seconds, that must elapse between Reference Triggers of two records. + + The device does not recognize the Reference Trigger of the next record before this minimum time elapses. + + **Units:**: seconds + + **Default Value**: 0 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + ref_trigger_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150060) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the trigger delay time, in seconds. + + The trigger delay time is the length of time the IF digitizer waits after it receives the trigger before it asserts the Reference Event. + + **Units:**: seconds + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + ref_trigger_minimum_quiet_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150058) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies a time duration, in seconds, for which the signal must be quiet before the device arms the trigger. + + The signal is quiet when it is below the trigger level if the trigger slope, specified by the iq_power_edge_ref_trigger_slope property, is set to ReferenceTriggerIqPowerEdgeSlope.RISING or when it is above the trigger level if the trigger slope is set to ReferenceTriggerIqPowerEdgeSlope.FALLING. + + By default, this value is set to 0, which means the device does not wait for a quiet time before arming the trigger. This property is useful to trigger the acquisition on signals containing repeated bursts, but for which each burst may have large changes in signal power within itself. By configuring the minimum quiet time to the time between bursts, you can ensure that the trigger occurs at the beginning of a burst rather than at the signal power change within a burst. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + ref_trigger_osp_delay_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerOspDelayEnabled, 1150196) + '''Type: enums.ReferenceTriggerOspDelayEnabled + + Specifies whether the digitizer OSP block delays Reference Triggers, along with the data samples, moving through the OSP block or if the Reference Triggers bypass the OSP block and are processed immediately. + + Enabling this property requires the following equipment configurations: + + - All digitizers being used must be the same model and hardware revision. + - All digitizers must use the same firmware. + - All digitizers must be configured with the same I/Q rate. + - All devices must use the same signal path. + + **PXIe-5663/5663E**: Read the value of the IF_FILTER property to determine the IF filters used by the PXIe-5663/5663E. + + **PXIe-5665/5667/5668**:Refer to the device-specific information in the device_instantaneous_bandwidth property to determine the IF filters used by the PXIe-5665/5667/5668. If you set the fft_width property, refer to the device-specific information for this property and the device_instantaneous_bandwidth property to determine the IF filters used. For frequencies less than 3.6 GHz, set the rf_preamp_enabled to the same value for all devices. + + **PXIe-5665 14 GHz**: Set the downconverter_preselector_enabled to the same value for all devices. + + If the I/Q rate is set programmatically for I/Q acquisitions, the following properties should be identical for the best device synchronization: + + - digital_if_equalization_enabled + - spectrum_osp_sampling_ratio + + For spectrum acquisitions, the following properties should be identical for the best device synchronization: + + - spectrum_span + - resolution_bandwidth_type + - digital_if_equalization_enabled + - spectrum_osp_sampling_ratio + + For more information about the digitizer OSP block and Reference Triggers, refer to the following topics in the *NI High-Speed Digitizers Help*: + + - NI 5622 Onboard Signal Processing (OSP) + - NI 5142 Onboard Signal Processing (OSP) + - NI PXIe-5622 Trigger Sources + - NI PXI-5142 Trigger Sources + - NI PXIe-5622 Block Diagram + - NI PXI-5142 Trigger Sources + + **Default Value**: ReferenceTriggerOspDelayEnabled.ENABLED + + **Supported Devices**:PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841 + + **Defined Values**: + + +------------------------------------------+-----------------------------------------------+ + | Name | Description | + +==========================================+===============================================+ + | ReferenceTriggerOspDelayEnabled.DISABLED | Disables OSP delay for the Reference Trigger. | + +------------------------------------------+-----------------------------------------------+ + | ReferenceTriggerOspDelayEnabled.ENABLED | Enables OSP delay for the Reference Trigger. | + +------------------------------------------+-----------------------------------------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + ref_trigger_pretrigger_samples = _attributes.AttributeViInt64(1150035) + '''Type: int + + Specifies the number of pretrigger samples the samples acquired before the Reference Trigger is received to be acquired per record. + + **Default Value**: 0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **High-Level Methods**: + + - configure_digital_edge_ref_trigger + - configure_software_edge_ref_trigger + - ConfigureIqPowerEdgeRefTrigger + ''' + ref_trigger_terminal_name = _attributes.AttributeViString(1150123) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/RefTrigger, where *BasebandModule* is the name of your baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/RefTrigger, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/RefTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/RefTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - get_terminal_name + ''' + ref_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferenceTriggerType, 1150028) + '''Type: enums.ReferenceTriggerType + + Specifies whether you want the Reference Trigger to be a digital edge, I/Q power edge, or software trigger. + + **Default Value**: ReferenceTriggerType.NONE + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=====================================+=================================================================================================================================================================================================================================+ + | ReferenceTriggerType.NONE | No Reference Trigger is configured. | + +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceTriggerType.DIGITAL_EDGE | The Reference Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_ref_trigger_source property. | + +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceTriggerType.IQ_POWER_EDGE | The Reference Trigger is asserted when the signal is changing past the level specified with the slope (rising or falling) configured with the iq_power_edge_ref_trigger_slope property. | + +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceTriggerType.SOFTWARE_EDGE | The Reference Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_REF_TRIGGER as the **trigger** parameter. | + +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ReferenceTriggerType.IQ_ANALOG_EDGE | The Reference Trigger is asserted when the I or Q signal is changed past the level specified with the slope configured with the IQ_ANALOG_EDGE_REF_TRIGGER_SLOPE property. This value is valid only for PXIe-5644/5645 devices. | + +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + resolution_bandwidth = _attributes.AttributeViReal64(1150013) + '''Type: float + + Specifies the resolution along the x-axis of the spectrum. + + NI-RFSA uses the resolution bandwidth value to determine the acquisition size. If specified, the number_of_spectral_lines property value overrides this value. + + **Units**: hertz (Hz) + + **Default Value**: 100 kHz + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - ConfigureResolutionBandwidth + ''' + resolution_bandwidth_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SpectrumResolutionBandwidthType, 1150014) + '''Type: enums.SpectrumResolutionBandwidthType + + Specifies how the resolution_bandwidth property is expressed. + + **Default Value**: SpectrumResolutionBandwidthType.THREE_DECIBELS + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +============================================================+=============================================================================================================================================+ + | SpectrumResolutionBandwidthType.THREE_DECIBELS | Defines the resolution bandwidth (RBW) in terms of the 3 dB bandwidth of the window specified by the fft_window_type property. | + +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumResolutionBandwidthType.SIX_DECIBELS | Defines the RBW in terms of the 6 dB bandwidth of the window specified by the fft_window_type property. | + +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumResolutionBandwidthType.BIN_WIDTH | Defines the RBW in terms of the display resolution, which is the ratio of the sampling frequency to the number of samples that you acquire. | + +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumResolutionBandwidthType.EQUIVALENT_NOISE_BANDWIDTH | Defines the RBW in terms of the equivalent noise bandwidth (ENBW) of the window specified by the fft_window_type property. | + +------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + rf_attenuation_step_size = _attributes.AttributeViReal64(1150155) + '''Type: float + + Specifies the step size for the RF attenuation level. + + The actual RF attenuation is coerced up to the next highest multiple of this step size. You can also set this value to change the step size for the device within the supported device precision and configuration. + + **PXI-5600**: The device configuration supports only the following attenuation step size values: 10, 20, 30, 40, and 50. + + **PXIe-5601**: The attenuation is calculated based on the actual calibrated value closest to the desired value, so the step size varies as the actual gain values vary between consecutive attenuation settings. + + **PXIe-5603**: The device configuration supports attenuation changes in 1 dB steps. + + **PXIe-5605**: The available attenuation step size depends on the specified center frequency. In the high band signal path (input frequencies greater than 3.6 GHz), the only available attenuation is the step attenuator that you can change in 5 dB steps. In the low band signal path (input frequencies less than or equal to 3.6 GHz), an additional 31 dB of solid-state attenuation is available in 1 dB steps. The 5 dB default value indicates that, even when in the low band signal path, NI-RFSA changes the attenuation in 5 dB steps using only the mechanical attenuator. You can use this property to affect when the device changes the attenuation settings. To use the solid-state attenuation in the low band signal path, change the step size to a value other than a multiple of 5 (for example, a step size of 1 dB). If you use a value other than a multiple of 5 while in the high band of the PXIe-5605, NI-RFSA returns an error. + + **Units**: dB + + **Valid Values:** + + **PXI-5600/5661**: 10, 20, 30, 40, and 50 + + **PXIe-5601/5663/5663E**: 0.0 to 93.0, continuous + + **PXIe-5603/5665 (3.6 GHz)**: 1.0 to 74.0, in 1 dB steps + + **PXIe-5605/5665 (14 GHz) (low band), PXIe-5606/5668 (low band)**: 1.0 to 106.0, in 1 dB steps + + **PXIe-5605/5665 (14 GHz) (high band), PXIe-5606/5668 (high band)**: 5.0 to 75.0, in 5 dB steps + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector low frequency bypass path**: 1.0 to 74.0, in 1 dB steps + + **PXIe-5667 (3.6 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 + + **PXIe-5667 (7 GHz) using the PXIe-5693 preselector low frequency bypass path**: 1.0 to 106.0 in 1 dB steps + + **PXIe-5667 (7 GHz) using the PXIe-5693 RF preselector filter path**: 1.0 + + **Default Value:** + + **PXI-5600/5661**: 10.0 + + **PXIe-5601/5663/5663E**: 0.0 + + **PXIe-5603/5665 (3.6 GHz)**: 1.0 + + **PXIe-5605/5665 (14 GHz), PXIe-5606/5668**: 5.0 + + **PXIe-5667**: 1.0 + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668 + ''' + rf_high_pass_filtering = _attributes.AttributeViReal64(1150220) + '''Type: float + + Specifies the maximum corner frequency of the highpass filter in the RF signal path. + + The device uses the highest frequency highpass filter option below or equal to the value you specify and returns a coerced value. Specifying a value of 0 disables highpass filtering. + + For multispan acquisitions, the device uses the appropriate filter for each subspan during acquisition, depending on the details of your application and the value you specify. In multispan acquisition spectrum applications, this property returns the value you specified rather than a coerced value if multiple highpass filters are used during the acquisition. + + The PXIe-5606 features highpass filters at 1.35 GHz and 2.2 GHz. + + **Valid Values**: 0 to 26.5 + + **Default Value**: 0 + + **Supported Devices**: PXIe-5606, PXIe-5668 + ''' + rf_out_lo_export_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RfOutLoExport, 1150298) + '''Type: enums.RfOutLoExport + + Specifies whether to enable the RF OUT LO OUT terminal on the PXIe-5840/5841. + + When this property is enabled, if the lo_source property is set to LoSource.LO_IN and you do not set the lo_frequency or downconverter_center_frequency properties, NI-RFSA rounds the LO frequency to approximately an LO step size as if the source was LoSource.ONBOARD. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. + + **Default Value:**: RfOutLoExport.UNSPECIFIED + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +---------------------------+----------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +===========================+================================================================================================================+ + | RfOutLoExport.DISABLED | The LO signal is not exported from the RF OUT LO OUT terminal. | + +---------------------------+----------------------------------------------------------------------------------------------------------------+ + | RfOutLoExport.ENABLED | The LO signal is exported from the RF OUT LO OUT terminal. | + +---------------------------+----------------------------------------------------------------------------------------------------------------+ + | RfOutLoExport.UNSPECIFIED | The LO signal may or may not be exported to the RF OUT LO OUT terminal, because NI-RFSG may be controlling it. | + +---------------------------+----------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + rf_preamp_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.EnableRfPreamp, 1150129) + '''Type: enums.EnableRfPreamp + + Specifies whether the RF preamplifier is enabled in the system. + + **PXIe-5667, PXIe-5644/5645/5646, PXIe-5830/5831/5840/5841/5842**: The EnableRfPreamp.AUTOMATIC value enables the RF preamplifier based on the value of the reference_level property and the center frequency. Except on the PXIe-5830/5831/5832, NI-RFSA coerces this property from EnableRfPreamp.AUTOMATIC to the selected value. + + ---- + **Note** + For the PXIe-5840/5841, the automatically selected value may not be optimal for all measurements. At some reference levels, EnableRfPreamp.ENABLED may improve the noise floor while EnableRfPreamp.DISABLED may improve distortion. + + ---- + + **PXIe-5667**: The EnableRfPreamp.AUTOMATIC value is supported only when the LOW_FREQUENCY_BYPASS_ENABLED property is set to EnableRfPreamp.DISABLED. If the reference level is greater than -25 dBm, NI-RFSA disables the preamplifier. If the reference level is less than or equal to -25 dBm, NI-RFSA sets the rf_preamp_enabled property to EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH. + + **PXIe-5668 with PXIe-5698**: If you set this property to rf_preamp_enabled, only the preamplifier on the PXIe-5698 is used, and the preamplifier on the PXIe-5668 remains disabled. + + **Default Value**: + + **PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842**: EnableRfPreamp.AUTOMATIC + + **All other devices**: EnableRfPreamp.DISABLED + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5698, PXIe-5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +============================================+========================================================================================================================================================================================================================================================================================================================================================+ + | EnableRfPreamp.DISABLED | Disables the RF preamplifier. | + +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH | Enables the RF preamplifier when the RF preamplifier is present in the signal path and disables the preamplifier when it is not in the signal path. Only devices with an RF preamplifier on the downconverter and an RF preselector support this option. Use the rf_preamp_present property to determine whether the downconverter has a preamplifier. | + +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | EnableRfPreamp.ENABLED | Enables the RF preamplifier. If the RF preamplifier is not in a signal path, NI-RFSA returns an error. Select the EnableRfPreamp.ENABLED_WHEN_IN_SIGNAL_PATH value whenever possible to avoid an error. | + +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | EnableRfPreamp.AUTOMATIC | Automatically enables the RF preamplifier based on the value of the reference_level property. This value is valid only for the PXIe-5644/5645/5646, PXIe-5667, and PXIe-5830/5831/5832/5840/5841. | + +--------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + ''' + rf_preamp_present = _attributes.AttributeViBoolean(1150137) + '''Type: bool + + Returns whether an RF preamplifier is available on the RF downconverter module. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------+------------------------------------------------------+ + | Name | Description | + +=======+======================================================+ + | True | The device has an enabled RF preamplifier available. | + +-------+------------------------------------------------------+ + | False | The device has no RF preamplifier available. | + +-------+------------------------------------------------------+ + ''' + selected_path = _attributes.AttributeViString(1150331) + '''Type: str + + Specifies which path to configure to acquire a signal. + + **Default Value**: "" (empty string) + ''' + selected_ports = _attributes.AttributeViString(1150297) + '''Type: str + + Specifies the port to configure. + + ---- + **Note** + When using RF list mode, ports cannot be shared with NI-RFSA. + + ---- + + **Valid Values**: + + **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) + + **PXIe-5830**: if0, if1 + + **PXIe-5831/5832**: if0, if1, rf <0-1> port , where + + *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and + + *x* is the port number on the mmRH-5582 front panel. + + **Default Value:** + + **PXIe-5830/5831/5832:**: if1 + + **PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860**: "" (empty string) + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + available_ports + ''' + serial_number = _attributes.AttributeViString(1150053) + '''Type: str + + Returns the serial number of the RF downconverter module. + + ---- + **Note** + For the PXIe-5644/5645/5646 and PXIe-5820/5840/5841, this property returns the serial number of the VST module. For the PXIe-5830/5831/5832, this property returns the serial number of the PXIe-3621/3622. + + ---- + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + signal_bandwidth = _attributes.AttributeViReal64(1150267) + '''Type: float + + Specifies the bandwidth of the input signal around the iq_carrier_frequency. + + This value must be less than or equal to (0.8 7 [I/Q rate](iq_rate.html)). + + NI-RFSA defines *signal bandwidth* as twice the maximum I/Q signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* < sub>max - *f*< sub>min. + + If you do not set this property, NI-RFSA uses the maximum available signal bandwidth. Depending on your device settings, setting this property enables certain optimizations. Based on the specified signal bandwidth, NI-RFSA decides the minimum equalized bandwidth and equalizer gain. + + ---- + **Note** + You must set this property to enable the downconverter_frequency_offset_mode property. + + ---- + + Ensure you set the signal bandwidth wide enough to encompass all significant anticipated input power. In cases where NI-RFSA optimizes the input gain based on the signal bandwidth, significant input power outside the signal bandwidth can lead to clipping and associated overflow warnings if you do not have enough margin in your [reference level.](reference_level.html) + + **Units**: Hz + + **Default Value**: 0 Hz + + **Supported Devices:**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + ''' + signal_conditioning_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SignalConditioningEnabled, 1150160) + '''Type: enums.SignalConditioningEnabled + + Specifies whether all signal conditioning is enabled on the PXIe-5694. + + ---- + **Note** + If you set this property to SignalConditioningEnabled.BYPASSED, NI-RFSA bypasses all signal conditioning, prevents any signal downconversion, and fixes the values for downconverter_gain property, the device_instantaneous_bandwidth property, and the if_filter_bandwidth property. + + ---- + + **Default Value**: SignalConditioningEnabled.ENABLED + + **Supported Devices**: PXIe-5694 + + **Defined Values**: + + +------------------------------------+-----------------------------------+ + | Name | Description | + +====================================+===================================+ + | SignalConditioningEnabled.ENABLED | Enables signal conditioning. | + +------------------------------------+-----------------------------------+ + | SignalConditioningEnabled.BYPASSED | Bypasses all signal conditioning. | + +------------------------------------+-----------------------------------+ + ''' + smooth_spectrum_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SmoothSpectrumEnabled, 1150219) + '''Type: enums.SmoothSpectrumEnabled + + Specifies that an optimized IF filtering selection is made at different spectrum frequency ranges during spectrum acquisition. + + The IF filter used depends on the configured RF center frequency, as shown in the following table. + + | Center Frequency | IF Filter | + |:--------------------|:----------| + | 0 Hz and <80 MHz | 300 kHz | + | 0 MHz | 50 MHz | + + ---- + **Note** + Setting this property to **Enabled** prevents you from setting if_filter_bandwidth or device_instantaneous_bandwidth. + + ---- + + **Default Value**: SmoothSpectrumEnabled.DISABLED + + **Supported Devices**: PXIe-5665/5668 + + **Defined Values**: + + +--------------------------------+------------------------------+ + | Name | Description | + +================================+==============================+ + | SmoothSpectrumEnabled.DISABLED | Disables spectrum smoothing. | + +--------------------------------+------------------------------+ + | SmoothSpectrumEnabled.ENABLED | Enables spectrum smoothing. | + +--------------------------------+------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + spectrum_averaging_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.SpectrumAveragingMode, 1150016) + '''Type: enums.SpectrumAveragingMode + + Specifies the averaging mode for the spectrum acquisition. + + **Default Value**: SpectrumAveragingMode.NO + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +=================================+=======================================================================================================================================================================================================================================================================================================================================================================================================+ + | SpectrumAveragingMode.NO | Configures NI-RFSA to perform no averaging on acquisitions. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumAveragingMode.RMS | Configures NI-RFSA for root-mean-square (RMS) averaging. RMS averaging reduces signal fluctuations but not the noise floor. RMS averaging averages the energy, or power, of the signal. This averaging prevents noise floor reduction and gives averaged RMS quantities of single-channel measurements zero phase. RMS averaging for dual-channel measurements preserves important phase information. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumAveragingMode.VECTOR | Configures NI-RFSA for vector averaging. Vector averaging reduces noise from synchronous signals. Vector averaging computes the average of complex quantities directly, which means that it allows separate averaging for real and imaginary parts. Complex averaging such as vector averaging reduces noise and usually requires a trigger to improve block-to-block phase coherence. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumAveragingMode.PEAK_HOLD | Configures NI-RFSA for peak-hold averaging. Peak-hold averaging retains the RMS peak levels of the averaged quantities. The peak-hold averaging process performs peak-hold at each frequency bin separately to retain peak RMS levels from one FFT record to the next. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumAveragingMode.MIN_HOLD | Configures NI-RFSA to perform no averaging on acquisitions. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumAveragingMode.SCALAR | Configures NI-RFSA to perform no averaging on acquisitions. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | SpectrumAveragingMode.LOG | Configures NI-RFSA to perform no averaging on acquisitions. | + +---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + spectrum_number_of_averages = _attributes.AttributeViInt32(1150015) + '''Type: int + + Specifies the number of acquisitions to average. + + The averaging process returns the final result after the number of averages is complete. + + **Default Value**: 10 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + spectrum_osp_sampling_ratio = _attributes.AttributeViReal64(1150144) + '''Type: float + + Specifies the oversampling ratio used by the digitizer onboard signal processing (OSP) when you are in spectrum acquisition mode. This property allows you to acquire a larger bandwidth in hardware and reduce that bandwidth in software, decreasing the possibility of hardware data path overflows. + + **PXIe-5644/5645/5646**: The only valid value for this property is 1. + + **Default Value**: 1.0 + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + spectrum_span = _attributes.AttributeViReal64(1150003) + '''Type: float + + Specifies the frequency range of the computed spectrum in hertz (Hz). + + For example, if you specify a center frequency of 1 GHz and a span of 100 MHz, the spectrum ranges from 950 MHz to 1,050 MHz after zoom processing. This value may be coerced based on hardware settings and RF downconverter specifications. + + NI-RFSA performs multispan acquisitions by dividing the total requested span into equally sized subspans based on the device instantaneous bandwidth at the range of frequencies you specify. NI-RFSA combines these subspans to yield a multispan acquisition. You can use the fft_width property to improve amplitude accuracy and avoid unwanted effects such as filter roll-off and spurs across the span you select. + + ---- + **Note** + If you configure the spectrum span to a value larger than the hardware instantaneous bandwidth, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. + + ---- + + ---- + **Note** + For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. The dither noise can appear in your passband and affect measurements. Refer to the digitizer_dither_enabled property for more information about dithering. + + ---- + + **PXIe-5663/5663E**: NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the instantaneous bandwidth for frequencies above 120 MHz is different than instantaneous bandwidth for frequencies less than 120 MHz, which are 20 MHz and 10 MHz respectively. + + **PXIe-5665 (14 GHz)/5667 (7 GHz)**: If you enable the downconverter preselector filter, the device instantaneous bandwidth is only a typical specification. + + **Default Value**: 10 MHz + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5840/5841/5842/5860 + + **High-Level Methods**: + + - configure_spectrum_frequency + ''' + start_to_ref_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150033) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the minimum time, in seconds, that must elapse after the Start Trigger is received before the device recognizes a Reference Trigger. + + **Units:** seconds + + **Default Value**: 0 + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + start_trigger_terminal_name = _attributes.AttributeViString(1150122) + '''Type: str + + Returns the fully qualified signal name as a string. + + **Default Values**: + + **PXIe-5830/5831/5832**: /BasebandModule/ai/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. + + **PXIe-5820/5840/5841/5842**: /ModuleName/ai/0/StartTrigger, where *ModuleName* is the name of your device in MAX. + + **PXIe-5860**: /ModuleName/ai/ChannelNumber/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **All other devices**: /DigitizerName/StartTrigger, where *DigitizerName* is the name associated with your digitizer module in MAX. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerType, 1150024) + '''Type: enums.StartTriggerType + + Specifies whether you want the Start Trigger to be a digital edge or software trigger. + + ---- + **Note** + Set this property to StartTriggerType.NONE if you set the acquisition_type property to AcquisitionType.SPECTRUM or if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the [cviConfigureAcquisitionType](cviConfigureAcquisitionType.html) method. + + ---- + + **Default Value**: StartTriggerType.NONE + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + **Defined Values**: + + +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +================================+===========================================================================================================================================================================================================================================+ + | StartTriggerType.NONE | No Start Trigger is configured. | + +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | StartTriggerType.DIGITAL_EDGE | The Start Trigger is not asserted until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property. | + +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | StartTriggerType.SOFTWARE_EDGE | The Start Trigger is not asserted until a software trigger occurs. You can assert the software trigger by calling the send_software_edge_trigger method and selecting NIRFSA_VAL_START_TRIGGER as the value of the **trigger** parameter. | + +--------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + subspan_overlap = _attributes.AttributeViReal64(1150234) + '''Type: float + + Use subspan overlap process to eliminate or reduce analyzer spurs. + + To enable this feature, specify a non-zero percentage overlap between consecutive subspans in a spectrum acquisition. + + If a value greater than 0 is specified, then for each spectral line in the resulting spectrum, the driver acquires data twice with slightly different hardware settings, so that the analyzer spurs, if any, are present at different frequencies in the two acquisitions. Typically, LO frequency is shifted between the acquisitions causing analyzer spurs that are relative to the LO frequency, to move from one frequency to another. Those spurs, which are present in only one of the acquisitions for each spectral line, get removed. + + The subspan overlap feature will not remove any spurs from the Device Under Test or modify the signal being measured; unlike the analyzer spurs, the spurs in the signal being measured stay at a constant frequency in the two acquisitions. + + ---- + **Note** + Subspan overlap process effectively is performing minimum averaging, which might reduce the measured noise floor level. NI-RFSA Spectrum Averaging can be enabled to minimize the effect of subspan overlap on the noise floor. + + ---- + + ---- + **Note** + NI-RFSA may apply further shifts to the specified value to accommodate fixed-frequency edges of components such as preselectors. + + ---- + + **Valid Values**: + + **PXIe-5665/5668**: 0 to < 100 + + **PXIe-5820/5830/5831/5832/5840/5841/5860**: 0 + + **PXIe-5842**: 0, 50 + + **Default Value**: 0 + + **Supported Devices**: PXIe-5665/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + ---- + **Note** + Subspan overlap will not be supported by PXIe-5842, if RMM-5585 (54GHz Frequency Extension) is connected. + + ---- + ''' + supported_instrument_models = _attributes.AttributeViStringCommaSeparated(1050327) + '''Type: list of str + + Returns a comma-separated list of supported devices. + + **Default Value**: N/A + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + temperature_read_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1150061) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Indicates the minimum time between temperature sensor readings in seconds. + + When you call the read_power_spectrum method, the ReadIqSingleRecordComplexF64 method, or the _initiate method, NI-RFSA checks whether at least the amount of time specified by this property has elapsed before reading the hardware temperature. + + ---- + **Note** + NI-RFSA ignores this property if you call the perform_thermal_correction method or read the downconverter_gain property. + + ---- + + **Default Value**: 30 seconds + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + thermal_correction_headroom_range = _attributes.AttributeViReal64(1150316) + '''Type: float + + Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the device_temperature property. + + For example, if this property is set to 5.0, and the device is self-calibrated at 35 C, then you can expect to run the device from 30 C to 40 C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance and ADC or DSP overflows. + + **Units:** degrees Celsius (C) + + **Default Value**: + + **PXIe-5830/5831/5832/5842/5860**: 5 + + **PXIe-5840/5841**: 10 + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + ''' + thermal_correction_temperature_resolution = _attributes.AttributeViReal64(1150300) + '''Type: float + + Specifies the temperature change required before NI-RFSA recalculates the thermal correction settings when entering the Running state. + + **Units:** degrees Celsius (C) + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Default Values**: + + **PXIe-5830/5831/5832/5842/5860**: 0.2 + + **PXIe-5840/5841**: 1.0 + ''' + user_source_pulse_width = _attributes.AttributeViReal64(1150322) + '''Type: float + + Specifies the pulse width for the User Source. + + Use the user_source_pulse_width_units property to set the units for the pulse width. + + **Default Value**: 200E(-9) + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + user_source_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.UserSourcePulseWidthUnits, 1150321) + '''Type: enums.UserSourcePulseWidthUnits + + Specifies the pulse width units for the User Source. + + When the value is UserSourcePulseWidthUnits.SECONDS, it is assumed that the clock rate of the signal is the data clock. Use UserSourcePulseWidthUnits.CLOCK_PERIODS if the user source clock rate is anything else. + + **Default Value**: UserSourcePulseWidthUnits.SECONDS + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-----------------------------------------+--------------------------+ + | Name | Description | + +=========================================+==========================+ + | UserSourcePulseWidthUnits.SECONDS | Units are seconds. | + +-----------------------------------------+--------------------------+ + | UserSourcePulseWidthUnits.CLOCK_PERIODS | Units are clock periods. | + +-----------------------------------------+--------------------------+ + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.ports = _RepeatedCapabilities(self, '', repeated_capability_list) + self.los = _RepeatedCapabilities(self, 'LO', repeated_capability_list) + self.device_temperatures = _RepeatedCapabilities(self, '', repeated_capability_list) + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nirfsa', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def _configure_spectrum_frequency_center_span(self, center_frequency, span): + r'''_configure_spectrum_frequency_center_span + + Configures the span and center frequency of the spectrum read by NI-RFSA. + + A spectrum acquisition consists of data surrounding the center frequency. + + ---- + **Note** + If you configure the spectrum span to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. + + ---- + + ---- + **Note** + For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the bandwidths that correspond to each span are different (10 MHz and 20 MHz, respectively). + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._configure_spectrum_frequency_center_span` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._configure_spectrum_frequency_center_span` + + Args: + center_frequency (float): Specifies the center frequency in a spectrum acquisition. The value is expressed in hertz (Hz). The NI-RFSA device you use determines the valid range. Refer to your device specifications document for more information about frequency range. + + span (float): Specifies the span of a spectrum acquisition. The value is expressed in hertz (Hz). + + ---- + + *Note* For the PXIe-5663/5663E/5665/5667/5668, NI-RFSA enables dithering by default. The dither noise can appear in your passband and affect your measurements. Refer to the digitizer_dither_enabled property for more information about dithering. + + ---- + + ''' + self._interpreter.configure_spectrum_frequency_center_span(self._repeated_capability, center_frequency, span) + + def configure_spectrum_frequency(self, center_frequency=None, span=None, start_frequency=None, stop_frequency=None): + '''configure_spectrum_frequency + + Configures the frequency range of a spectrum acquisition. + + You can specify the frequency range using either center frequency and span, or start and stop frequencies. + + ---- + **Note** + If you configure the spectrum span to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you requested. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_spectrum_frequency` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.configure_spectrum_frequency` + + Args: + center_frequency (float): Specifies the center frequency in a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **span**. + + span (float): Specifies the span of a spectrum acquisition. The value is expressed in hertz (Hz). Must be used together with **center_frequency**. + + start_frequency (float): Specifies the lower limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **stop_frequency**. + + stop_frequency (float): Specifies the upper limit of a span of frequencies. The value is expressed in hertz (Hz). Must be used together with **start_frequency**. + + ''' + if center_frequency is not None and span is not None: + self._configure_spectrum_frequency_center_span(center_frequency, span) + elif start_frequency is not None and stop_frequency is not None: + self._configure_spectrum_frequency_start_stop(start_frequency, stop_frequency) + else: + raise ValueError( + "Provide either (center_frequency & span) " + "or (start_frequency & stop_frequency)" + ) + + @ivi_synchronized + def _configure_spectrum_frequency_start_stop(self, start_frequency, stop_frequency): + r'''_configure_spectrum_frequency_start_stop + + Configures the start and stop frequencies of a spectrum read by NI-RFSA. + + ---- + **Note** + If you configure the spectrum span (**STOP_FREQUENCY** **START_FREQUENCY**) to a value larger than the instantaneous bandwidth of the device, NI-RFSA performs multiple acquisitions and combines them into a spectrum of the size you request. + + ---- + + ---- + **Note** + For the PXIe-5663/5663E, NI-RFSA does not support multispan acquisitions from frequency ranges that correspond with different instantaneous bandwidths. For example, you cannot configure a multispan acquisition that acquires one span from 110 MHz to 120 MHz and a second from 120 MHz to 130 MHz because the bandwidths that correspond to each span are different (10 MHz and 20 MHz, respectively). + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._configure_spectrum_frequency_start_stop` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._configure_spectrum_frequency_start_stop` + + Args: + start_frequency (float): Specifies the lower limit of a span of frequencies. This value is expressed in hertz (Hz). + + stop_frequency (float): Specifies the upper limit of a span of frequencies. This value is expressed in hertz (Hz). + + ''' + self._interpreter.configure_spectrum_frequency_start_stop(self._repeated_capability, start_frequency, stop_frequency) + + def error_message(self, error_code): + r'''error_message + + Converts an error code returned by an NI-RFSA method into a user-readable string. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5840 + + Args: + error_code (int): Passes the **errorCode** parameter that is returned from any NI-RFSA method. + + + Returns: + error_message (str): Returns the user-readable message string that corresponds to the error code you specify. + + You must pass a ViChar array with 1024 bytes or more to this parameter. Only the first 1024 bytes of the array are used. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + @ivi_synchronized + def _fetch_iq_multi_record_complex_f32(self, starting_record, number_of_records, iq_data_arrays, timeout=hightime.timedelta(seconds=10.0)): + r'''_fetch_iq_multi_record_complex_f32 + + Fetches I/Q data from multiple records in an acquisition. + + A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_multi_record_complex_f32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._fetch_iq_multi_record_complex_f32` + + Args: + starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. + + number_of_records (int): Specifies the number of records to fetch. + + iq_data_arrays (numpy.array(dtype=numpy.complex64)): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q waveforms. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. Each element of this array corresponds to a record. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform.The actual number of samples for each record can vary if the NIRFSA ATTR NUMBER OF SAMPLES property changes per step during RF list mode. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_arrays) is not numpy.ndarray: + raise TypeError('iq_data_arrays must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_arrays))) + if numpy.isfortran(iq_data_arrays) is True: + raise TypeError('iq_data_arrays must be in C-order') + if iq_data_arrays.dtype is not numpy.dtype('complex64'): + raise TypeError('iq_data_arrays must be numpy.ndarray of dtype=complex64, is ' + str(iq_data_arrays.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_iq_multi_record_complex_f32(self._repeated_capability, starting_record, number_of_records, iq_data_arrays, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_iq_multi_record_complex_f64(self, starting_record, number_of_records, iq_data_arrays, timeout=hightime.timedelta(seconds=10.0)): + r'''_fetch_iq_multi_record_complex_f64 + + Fetches I/Q data from multiple records in an acquisition. + + A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_multi_record_complex_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._fetch_iq_multi_record_complex_f64` + + Args: + starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. + + number_of_records (int): Specifies the number of records to fetch. + + iq_data_arrays (numpy.array(dtype=numpy.complex128)): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q waveforms. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. Each element of this array corresponds to a record. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform.The actual number of samples for each record can vary if the NIRFSA ATTR NUMBER OF SAMPLES property changes per step during RF list mode. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_arrays) is not numpy.ndarray: + raise TypeError('iq_data_arrays must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_arrays))) + if numpy.isfortran(iq_data_arrays) is True: + raise TypeError('iq_data_arrays must be in C-order') + if iq_data_arrays.dtype is not numpy.dtype('complex128'): + raise TypeError('iq_data_arrays must be numpy.ndarray of dtype=complex128, is ' + str(iq_data_arrays.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_iq_multi_record_complex_f64(self._repeated_capability, starting_record, number_of_records, iq_data_arrays, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_iq_multi_record_complex_i16(self, starting_record, number_of_records, iq_data_arrays, timeout=hightime.timedelta(seconds=10.0)): + r'''_fetch_iq_multi_record_complex_i16 + + Fetches binary I/Q data from multiple records in an acquisition. + + Fetching transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_multi_record_complex_i16` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._fetch_iq_multi_record_complex_i16` + + Args: + starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. + + number_of_records (int): Specifies the number of records to fetch. + + iq_data_arrays (numpy.array(dtype=numpy.int16)): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q waveforms. Each row corresponds to one record. The real and imaginary parts of this interleaved data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. Each element of this array corresponds to a record. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform.The actual number of samples for each record can vary if the NIRFSA ATTR NUMBER OF SAMPLES property changes per step during RF list mode. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_arrays) is not numpy.ndarray: + raise TypeError('iq_data_arrays must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_arrays))) + if numpy.isfortran(iq_data_arrays) is True: + raise TypeError('iq_data_arrays must be in C-order') + if iq_data_arrays.dtype is not numpy.dtype('int16'): + raise TypeError('iq_data_arrays must be numpy.ndarray of dtype=int16, is ' + str(iq_data_arrays.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_iq_multi_record_complex_i16(self._repeated_capability, starting_record, number_of_records, iq_data_arrays, timeout) + return wfm_info + + def fetch_iq_multi_record_into(self, iq_data_arrays, starting_record=0, number_of_records=None, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)): + '''fetch_iq_multi_record + + Fetches I/Q data from multiple records in an acquisition. + + A fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_iq_multi_record` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.fetch_iq_multi_record` + + Args: + iq_data_arrays (2D numpy.array of numpy.complex64, 2D numpy.array of numpy.complex128 or interleaved complex data in the form of 2D numpy.array of numpy.int16): Specifies a pre-allocated 2D numpy array of shape (number_of_records, number_of_samples) to be filled with the acquired I/Q data. Each row corresponds to one record. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + starting_record (int): Specifies the first record to retrieve. Record numbers are zero-based. The default value is 0. + + number_of_records (int): Specifies the number of records to fetch. + + number_of_samples (int): Specifies the number of samples per record. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + ''' + import numpy + if str(type(iq_data_arrays)).find("'numpy.ndarray'") != -1: + if number_of_records is None: + number_of_records = self.number_of_records + + if number_of_samples is None: + number_of_samples = self.number_of_samples + + if iq_data_arrays.ndim != 2: + raise ValueError("iq_data_arrays must be a 2D numpy array (number_of_records x number_of_samples), but got {}D array".format(iq_data_arrays.ndim)) + if iq_data_arrays.shape[0] < number_of_records: + raise ValueError("iq_data_arrays must have at least {} rows (number_of_records), but has {}".format(number_of_records, iq_data_arrays.shape[0])) + if iq_data_arrays.dtype == numpy.int16: + expected_buffer_size = 2 * number_of_samples + else: + expected_buffer_size = number_of_samples + + if iq_data_arrays.shape[1] < expected_buffer_size: + try: + iq_data_arrays.resize((iq_data_arrays.shape[0], expected_buffer_size), refcheck=False) + except (MemoryError, ValueError) as e: + raise type(e)( + "Failed to resize iq_data_arrays from {} to {}: {}".format( + iq_data_arrays.shape, (iq_data_arrays.shape[0], expected_buffer_size), e + ) + ) from e + assert iq_data_arrays.shape[1] == expected_buffer_size, "iq_data_arrays width must match requested number_of_samples after resize" + + if iq_data_arrays.dtype == numpy.complex128: + wfm_info = self._fetch_iq_multi_record_complex_f64(starting_record, number_of_records, iq_data_arrays, timeout) + elif iq_data_arrays.dtype == numpy.complex64: + wfm_info = self._fetch_iq_multi_record_complex_f32(starting_record, number_of_records, iq_data_arrays, timeout) + elif iq_data_arrays.dtype == numpy.int16: + wfm_info = self._fetch_iq_multi_record_complex_i16(starting_record, number_of_records, iq_data_arrays, timeout) + else: + raise TypeError("Unsupported datatype. Is {}, expected {} or {} or {}".format(iq_data_arrays.dtype, numpy.complex128, numpy.complex64, numpy.int16)) + else: + raise TypeError("Unsupported datatype. Expected numpy array of {} or {} or {}".format(numpy.complex128, numpy.complex64, numpy.int16)) + + waveform_info._populate_samples_info(wfm_info, iq_data_arrays) + + return wfm_info + + @ivi_synchronized + def _fetch_iq_single_record_complex_f32(self, record_number, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): + r'''_fetch_iq_single_record_complex_f32 + + Fetches I/Q data from a single record in an acquisition. + + The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_single_record_complex_f32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._fetch_iq_single_record_complex_f32` + + Args: + record_number (int): Specifies the record to retrieve. Record numbers are zero-based. + + iq_data_array (numpy.array(dtype=numpy.complex64)): Returns the acquired waveform. Allocate an NIComplexNumberF32 array at least as large as **number_of_samples**. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_array) is not numpy.ndarray: + raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) + if numpy.isfortran(iq_data_array) is True: + raise TypeError('iq_data_array must be in C-order') + if iq_data_array.dtype is not numpy.dtype('complex64'): + raise TypeError('iq_data_array must be numpy.ndarray of dtype=complex64, is ' + str(iq_data_array.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_iq_single_record_complex_f32(self._repeated_capability, record_number, iq_data_array, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_iq_single_record_complex_f64(self, record_number, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): + r'''_fetch_iq_single_record_complex_f64 + + Fetches I/Q data from a single record in an acquisition. + + The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_single_record_complex_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._fetch_iq_single_record_complex_f64` + + Args: + record_number (int): Specifies the record to retrieve. Record numbers are zero-based. + + iq_data_array (numpy.array(dtype=numpy.complex128)): Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as **number_of_samples**. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_array) is not numpy.ndarray: + raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) + if numpy.isfortran(iq_data_array) is True: + raise TypeError('iq_data_array must be in C-order') + if iq_data_array.dtype is not numpy.dtype('complex128'): + raise TypeError('iq_data_array must be numpy.ndarray of dtype=complex128, is ' + str(iq_data_array.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_iq_single_record_complex_f64(self._repeated_capability, record_number, iq_data_array, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_iq_single_record_complex_i16(self, record_number, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): + r'''_fetch_iq_single_record_complex_i16 + + Fetches binary I/Q data from a single record in an acquisition. + + The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method is not necessary if you use the read IQ single record complex F64 method because the read IQ single record complex F64 method performs the fetch as part of the method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_iq_single_record_complex_i16` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._fetch_iq_single_record_complex_i16` + + Args: + record_number (int): Specifies the record to retrieve. Record numbers are zero-based. + + iq_data_array (numpy.array(dtype=numpy.int16)): Returns the acquired waveform. Allocate an NIComplexI16 array at least as large as **number_of_samples**. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_array) is not numpy.ndarray: + raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) + if numpy.isfortran(iq_data_array) is True: + raise TypeError('iq_data_array must be in C-order') + if iq_data_array.dtype is not numpy.dtype('int16'): + raise TypeError('iq_data_array must be numpy.ndarray of dtype=int16, is ' + str(iq_data_array.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_iq_single_record_complex_i16(self._repeated_capability, record_number, iq_data_array, timeout) + return wfm_info + + def fetch_iq_single_record_into(self, iq_data_array, record_number=0, number_of_samples=None, timeout=hightime.timedelta(seconds=10.0)): + '''fetch_iq_single_record + + Fetches I/Q data from a single record in an acquisition. + + The fetch transfers acquired waveform data from device memory to computer memory. The data was acquired to onboard memory previously by the hardware after the acquisition was initiated. + + This method accepts a data_type parameter to specify the desired data format: numpy.complex64, numpy.complex128, or numpy.int16. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_iq_single_record` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.fetch_iq_single_record` + + Args: + iq_data_array (numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16): Specifies the pre-allocated numpy array to be filled with the acquired I/Q data. The real and imaginary parts of this complex data array correspond to the in-phase (I) and quadrature-phase (Q) data, respectively. + + record_number (int): Specifies the record to retrieve. Record numbers are zero-based. + + number_of_samples (int): Specifies the number of samples to fetch. The value must specify the array size of the DATA parameter. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): **PXI-5661, PXIe-5663/5665/5667** Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. + + **PXIe-5644/5645/5646, PXIe-5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860** Specifies the time, in seconds, allotted to receive the reference trigger. + + ---- + + For all supported devices, a value of specifies the method waits until all data is available. A value of 0 specifies the method immediately returns available data. + + ---- + + ''' + import numpy + if str(type(iq_data_array)).find("'numpy.ndarray'") != -1: + if number_of_samples is None: + number_of_samples = self.number_of_samples + + if iq_data_array.dtype == numpy.int16: + expected_buffer_size = 2 * number_of_samples + else: + expected_buffer_size = number_of_samples + + if len(iq_data_array) < expected_buffer_size: + try: + iq_data_array.resize(expected_buffer_size, refcheck=False) + except (MemoryError, ValueError) as e: + raise type(e)( + "Failed to resize iq_data_array from {} to {}: {}".format( + len(iq_data_array), expected_buffer_size, e + ) + ) from e + assert len(iq_data_array) == expected_buffer_size, "iq_data_array length must match requested number_of_samples after resize" + + if iq_data_array.dtype == numpy.complex128: + wfm_info = self._fetch_iq_single_record_complex_f64(record_number, iq_data_array, timeout) + elif iq_data_array.dtype == numpy.complex64: + wfm_info = self._fetch_iq_single_record_complex_f32(record_number, iq_data_array, timeout) + elif iq_data_array.dtype == numpy.int16: + wfm_info = self._fetch_iq_single_record_complex_i16(record_number, iq_data_array, timeout) + else: + raise TypeError("Unsupported datatype. Is {}, expected {} or {} or {}".format(iq_data_array.dtype, numpy.complex128, numpy.complex64, numpy.int16)) + else: + raise TypeError("Unsupported datatype. Expected numpy array of {} or {} or {}".format(numpy.complex128, numpy.complex64, numpy.int16)) + + mv = memoryview(iq_data_array) + + wfm_info.samples = mv[0:wfm_info.actual_samples] + + return wfm_info + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. + + You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + value (bool): Returns the current value of the property. Pass the address of a ViBoolean variable. + + ''' + value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. + + You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + value (int): Returns the current value of the property. Pass the address of a ViInt32 variable. + + ''' + value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_int64(self, attribute_id): + r'''_get_attribute_vi_int64 + + Queries the value of a ViInt64 property. + + You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int64` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + value (int): Returns the current value of the property. Pass the address of a ViInt64 variable. + + ''' + value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + Queries the value of a ViReal64 property. + + You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + value (float): Returns the current value of the property. Pass the address of a ViReal64 variable. + + ''' + value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_session(self, attribute_id): + r'''_get_attribute_vi_session + + Queries the value of a ViSession property. + + You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_session` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_session` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + value (int): Returns the current value of the property. Pass the address of a ViSession variable. + + ''' + value = self._interpreter.get_attribute_vi_session(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + Queries the value of a ViString property. + + You can use this low-level method to get the values of inherent IVI properties and instrument-specific properties. + + You must provide a ViChar array to serve as a buffer for the value. You pass the number of bytes in the buffer as the **BUF_SIZE** parameter. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the **BUF_SIZE** parameter, the method copies buffer size 1 bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is "123456" and the buffer size is 4, the method places "123" into the buffer and returns 7. + + If you want to call this method just to get the required buffer size, you can pass 0 for **BUF_SIZE** and VI_NULL for the **attributeValue** buffer. + + **Supported Devices:** PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. + + + Returns: + value (str): The buffer in which the method returns the current value of the property. The buffer must be of type ViChar and have at least as many bytes as indicated in **BUF_SIZE**. + + If you specify 0 for the **BUF_SIZE** parameter, you can pass VI_NULL for this parameter. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def get_fetch_backlog(self, record_number): + r'''get_fetch_backlog + + Returns the number of points acquired that have not yet been fetched. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_fetch_backlog` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.get_fetch_backlog` + + Args: + record_number (int): Specifies the record from which to read the backlog. Record numbers are zero-based. + + + Returns: + backlog (int): Returns the number of samples available to read for the requested record. + + ''' + backlog = self._interpreter.get_fetch_backlog(self._repeated_capability, record_number) + return backlog + + @ivi_synchronized + def get_frequency_response(self): + r'''get_frequency_response + + Returns the requested device response type, based on current NI-RFSA settings. The PXI-5661 and PXIe-5663/5663E/5665/5667/5668 automatically corrects the IF and RF response when you set the Digital IF Equalization Enabled property to TRUE. If you are using external digitizer mode, you can use information returned from this VI to correct your measurement. + + Refer to the *Factory Calibration* topic for your device for more information about frequency-response calibration. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_frequency_response` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.get_frequency_response` + + Returns: + frequencies (list of float): Returns an array containing the frequencies, in hertz (Hz), that correspond to the response data. + + Pass VI_NULL if you do not want to use this parameter. + + magnitude_response (list of float): Returns an array containing the magnitude of the requested response, in decibels (dB). The magnitude response is normalized to the center frequency at each frequency in the FREQUENCIES array. + + Pass VI_NULL if you do not want to use this parameter. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + phase_response (list of float): Returns an array containing the phase of the requested response, in radians. The phase response is normalized to the center frequency at each frequency entry in the FREQUENCIES array. + + Pass VI_NULL if you do not want to use this parameter. This array may contain zeros if the device does not contain a stored phase response in its calibration data. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + frequencies, magnitude_response, phase_response = self._interpreter.get_frequency_response(self._repeated_capability) + return frequencies, magnitude_response, phase_response + + @ivi_synchronized + def get_scaling_coefficients(self): + r'''get_scaling_coefficients + + Returns coefficients you can use to convert unscaled data to scaled I/Q data. + + Acquired data may be unscaled when sent by a peer-to-peer stream or fetched as unscaled data. Use this method to obtain get_scaling_coefficients structures in the **COEFFICIENT_INFO** array that provide gain and offset values you can use to scale this data into the actual I/Q values. The **COEFFICIENT_INFO** array returns one element for each channel specified in the **CHANNEL_LIST** parameter. The element order matches the order specified by the **CHANNEL_LIST** parameter. To get the actual I/Q values, scale the unscaled data from an acquisition by multiplying it by the gain value of the appropriate **COEFFICIENT_INFO** element then adding the offset from the same element. + + ---- + **Note** + The coefficients are calculated by NI-RFSA for the current configuration of the device, so they are only valid for acquisitions obtained with the same device configuration. + + ---- + + To get the required size of the array, call this method with **ARRAY_SIZE** set to 0 and NULL for the **COEFFICIENT_INFO** array. This method returns the required size in the **NUMBER_OF_COEFFICIENT_SETS** parameter. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_scaling_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.get_scaling_coefficients` + + Returns: + coefficient_info (list of CoefficientInfo): Specifies the array for storing the coefficient info. + + - **offset** is the number that should be added to the data from a peer-to-peer stream after the gain has been applied if you want to scale unscaled data. + - **gain** returns the multiplier that you should use to scale data obtained from a peer-to-peer stream. + + ''' + coefficient_info = self._interpreter.get_scaling_coefficients(self._repeated_capability) + return coefficient_info + + @ivi_synchronized + def load_configurations_from_file(self, file_path): + r'''load_configurations_from_file + + Loads the configurations from the specified file to the NI-RFSA driver session. + + The VI does an implicit reset before loading the configurations from the file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.load_configurations_from_file` + + Args: + file_path (str): Specifies the absolute path of the file from which the NI-RFSA loads the configurations. + + ''' + self._interpreter.load_configurations_from_file(self._repeated_capability, file_path) + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-RFSA locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nirfsa.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def _read_iq_single_record_complex_f64(self, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): + r'''_read_iq_single_record_complex_f64 + + Initiates an acquisition and fetches a single I/Q data record. + + Do not use this method if you have configured the device to continuously acquire data samples or to acquire multiple records. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._read_iq_single_record_complex_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._read_iq_single_record_complex_f64` + + Args: + iq_data_array (numpy.array(dtype=numpy.complex128)): Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as the number of samples configured in the ConfigureNumberOfSamples method. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies in seconds the time allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + + if type(iq_data_array) is not numpy.ndarray: + raise TypeError('iq_data_array must be {0}, is {1}'.format(numpy.ndarray, type(iq_data_array))) + if numpy.isfortran(iq_data_array) is True: + raise TypeError('iq_data_array must be in C-order') + if iq_data_array.dtype is not numpy.dtype('complex128'): + raise TypeError('iq_data_array must be numpy.ndarray of dtype=complex128, is ' + str(iq_data_array.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.read_iq_single_record_complex_f64(self._repeated_capability, iq_data_array, timeout) + return wfm_info + + def read_iq_single_record_into(self, iq_data_array, timeout=hightime.timedelta(seconds=10.0)): + '''read_iq_single_record + + Initiates an acquisition and fetches a single I/Q data record. + + Do not use this method if you have configured the device to continuously acquire data samples or to acquire multiple records. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_iq_single_record` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.read_iq_single_record` + + Args: + iq_data_array (numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16): Returns the acquired waveform. Allocate an NIComplexNumber array at least as large as the number of samples configured in the ConfigureNumberOfSamples method. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies in seconds the time allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + + Returns: + wfm_info (WaveformInfo): Contains the absolute and relative timestamps for the operation, the time interval (dt), and the actual number of samples read. + + The following list provides more information about each of these properties: + + - **absolute timestamp** Returns the timestamp, in seconds, of the first fetched sample that is comparable between records and acquisitions. + + ---- + + The value of the absolute timestamp returned is always 0 for the PXIe-5644/5645/5646, PXIe-5668, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + + ---- + + - **relative timestamp** Returns a timestamp that corresponds to the difference, in seconds, between the first sample returned and the Reference Trigger location. The timestamp is zero if the Reference Trigger has not occurred. + + ---- + + + The value of the relative timestamp returned is always 0 for the PXIe-5644/5645/5646. + + ---- + + - **dt** Returns the time interval between data points in the acquired signal. The I/Q data sample rate is the reciprocal of this value. + - **actual samples read** Returns an integer representing the number of samples in the waveform. + - **offset** Returns the offset to scale data, (*b*), in *mx* + *b* form. + - **gain** Returns the gain to scale data, (*m*), in *mx* + *b* form. + + ''' + import numpy + if str(type(iq_data_array)).find("'numpy.ndarray'") != -1: + if iq_data_array.dtype != numpy.complex128: + raise TypeError("Unsupported dtype. Is {}, expected {}".format(iq_data_array.dtype, numpy.complex128)) + + expected_buffer_size = self.number_of_samples + if len(iq_data_array) < expected_buffer_size: + try: + iq_data_array.resize(expected_buffer_size, refcheck=False) + except (MemoryError, ValueError) as e: + raise type(e)( + "Failed to resize iq_data_array from {} to {}: {}".format( + len(iq_data_array), expected_buffer_size, e + ) + ) from e + assert len(iq_data_array) == expected_buffer_size, "iq_data_array length must match requested number_of_samples after resize" + + wfm_info = self._read_iq_single_record_complex_f64(iq_data_array, timeout) + else: + raise TypeError("Unsupported datatype. Expected numpy array of {}".format(numpy.complex128)) + + mv = memoryview(iq_data_array) + + wfm_info.samples = mv[0:self.number_of_samples] + + return wfm_info + + def read_power_spectrum_into(self, power_spectrum_data_array, data_array_size=None, timeout=hightime.timedelta(seconds=10.0)): + '''read_power_spectrum + + Initiates a spectrum acquisition and returns power spectrum data. + + ---- + **Note** + Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read_power_spectrum` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.read_power_spectrum` + + Args: + power_spectrum_data_array (numpy.array of numpy.float64 or numpy.array of numpy.float32): Specifies a pre-allocated numpy array to be filled with power spectrum data. The dtype of this array determines the data format: numpy.float64 or numpy.float32. Allocate an array at least as large as the number of spectral lines returned by the get_number_of_spectral_lines method. + + data_array_size (int): Specifies the expected number of spectral lines. If None, falls back to self.number_of_spectral_lines. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + ''' + import numpy + if str(type(power_spectrum_data_array)).find("'numpy.ndarray'") != -1: + expected_buffer_size = self.number_of_spectral_lines + + if len(power_spectrum_data_array) < expected_buffer_size: + try: + power_spectrum_data_array.resize(expected_buffer_size, refcheck=False) + except (MemoryError, ValueError) as e: + raise type(e)( + "Failed to resize power_spectrum_data_array from {} to {}: {}".format( + len(power_spectrum_data_array), expected_buffer_size, e + ) + ) from e + assert len(power_spectrum_data_array) == expected_buffer_size, "power_spectrum_data_array length must match number_of_spectral_lines after resize" + + if power_spectrum_data_array.dtype == numpy.float64: + spectrum_info = self._read_power_spectrum_f64(power_spectrum_data_array, timeout) + elif power_spectrum_data_array.dtype == numpy.float32: + spectrum_info = self._read_power_spectrum_f32(power_spectrum_data_array, timeout) + else: + raise TypeError("Unsupported dtype. Is {}, expected {} or {}".format(power_spectrum_data_array.dtype, numpy.float64, numpy.float32)) + else: + raise TypeError("Unsupported datatype. Expected numpy array of {} or {}".format(numpy.float64, numpy.float32)) + + mv = memoryview(power_spectrum_data_array) + + spectrum_info_type._populate_samples_info(spectrum_info, mv) + + return spectrum_info + + @ivi_synchronized + def _read_power_spectrum_f32(self, power_spectrum_data_array, timeout=hightime.timedelta(seconds=10.0)): + r'''_read_power_spectrum_f32 + + Initiates a spectrum acquisition and returns power spectrum data. + + ---- + **Note** + Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. + + ---- + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._read_power_spectrum_f32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._read_power_spectrum_f32` + + Args: + power_spectrum_data_array (list of float): Returns power spectrum data. Allocate an array as large as **DATA_ARRAY_SIZE**. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + + Returns: + spectrum_info (SpectrumInfo): Returns additional information about the **POWER_SPECTRUM_DATA** array. This information includes the frequency, in hertz (Hz), corresponding to the first element in the array, the frequency increment, in Hz, between adjacent array elements, and the number of spectral lines the method returned. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + spectrum_info = self._interpreter.read_power_spectrum_f32(self._repeated_capability, timeout, power_spectrum_data_array) + return spectrum_info + + @ivi_synchronized + def _read_power_spectrum_f64(self, power_spectrum_data_array, timeout=hightime.timedelta(seconds=10.0)): + r'''_read_power_spectrum_f64 + + Initiates a spectrum acquisition and returns power spectrum data. + + ---- + **Note** + Under certain configurations, negative infinity is returned from this VI. If the Reference Level is very high and if the Signal Bandwidth is comparatively less, the ADC returns zero, which equates to negative infinity in dBm. This is expected behavior. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._read_power_spectrum_f64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._read_power_spectrum_f64` + + Args: + power_spectrum_data_array (list of float): Specifies a pre-allocated numpy array to be filled with power spectrum data. Allocate an array at least as large as the number of spectral lines returned by the get_number_of_spectral_lines method. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): Specifies the time, in seconds, allotted for the method to complete before returning a timeout error. A value of specifies the method waits until all data is available. + + + Returns: + spectrum_info (SpectrumInfo): Returns additional information about the **POWER_SPECTRUM_DATA** array. This information includes the frequency, in hertz (Hz), corresponding to the first element in the array, the frequency increment, in Hz, between adjacent array elements, and the number of spectral lines the method returned. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + spectrum_info = self._interpreter.read_power_spectrum_f64(self._repeated_capability, timeout, power_spectrum_data_array) + return spectrum_info + + @ivi_synchronized + def save_configurations_to_file(self, file_path): + r'''save_configurations_to_file + + Saves the configurations of the session to the specified file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session.save_configurations_to_file` + + Args: + file_path (str): Specifies the absolute path of the file to which the NI-RFSA saves the configurations. + + ''' + self._interpreter.save_configurations_to_file(self._repeated_capability, file_path) + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, value): + r'''_set_attribute_vi_boolean + + Sets the value of a ViBoolean property. + + Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. + + NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. + + value (bool): Pass the value to which you want to set the property. + + ---- + + Some of the values might not be valid depending on the current state of the instrument session. + + ---- + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, value): + r'''_set_attribute_vi_int32 + + Sets the value of a ViInt32 property. + + Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. + + NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. + + value (int): Pass the value to which you want to set the property. + + ---- + + Some of the values might not be valid depending on the current state of the instrument session. + + ---- + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_int64(self, attribute_id, value): + r'''_set_attribute_vi_int64 + + Sets the value of a ViInt64 property. + + Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. + + NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int64` + + Args: + attribute_id (int): Pass the ID of a property. + + value (int): Pass the value to which you want to set the property. + + ---- + + Some of the values might not be valid depending on the current state of the instrument session. + + ---- + + ''' + self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, value): + r'''_set_attribute_vi_real64 + + Sets the value of a ViReal64 property. + + Use this low-level method to set the values of inherent IVI properties, and instrument-specific properties. + + NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread-locking for you. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. + + value (float): Pass the value to which you want to set the property. + + ---- + + Some of the values might not be valid depending on the current state of the instrument session. + + ---- + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_session(self, attribute_id): + r'''_set_attribute_vi_session + + Sets the value of a ViSession property. + + Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. + + NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_session` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_session` + + Args: + attribute_id (int): Pass the ID of a property. + + ''' + self._interpreter.set_attribute_vi_session(self._repeated_capability, attribute_id) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, value): + r'''_set_attribute_vi_string + + Sets the value of a ViString property. + + Use this low-level method to set the values of inherent IVI properties and instrument-specific properties. + + NI-RFSA contains high-level methods that set most of the instrument properties. NI recommends you use the high-level methods as much as possible. High-level methods handle order dependencies and multithread locking for you. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsa.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsa.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. + + value (str): Pass the value to which you want to set the property. + + ---- + + Some of the values might not be valid depending on the current state of the instrument session. + + ---- + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, value) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + +class Session(_SessionBase): + '''An NI-RFSA session to the NI-RFSA driver''' + + def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): + r'''An NI-RFSA session to the NI-RFSA driver + + Creates a new session for the device. + + This method sets the initial value of certain properties and sends initialization commands to reset all hardware modules to a known state necessary for NI-RFSA operation. + + To create a new session, pass the downconverter resource name for the RF vector signal analyzer to the **resource name** parameter. + + You can access the device session this VI creates using the NI-RFSA Soft Front Panel (SFP). Accessing the device session with the SFP can help you debug your code. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about accessing your session with the SFP. + + ---- + **Note** + Before initializing your device, you must first associate the modules that comprise your device in MAX. After associating the modules, pass the resource name of the device to this method to initialize all the modules. Refer to `Associating NI-RFSA Modules `_ for information about MAX association. + + ---- + + ---- + **Note** + For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending *ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Driver Setup Options `_ + + Args: + resource_name (str): Specifies the resource name of the device to initialize. + + For NI-RFSA devices, the syntax is the device name specified in MAX. The typical default name for your device in MAX is PXI1Slot2. You can rename your device by right-clicking the name in MAX, selecting **Rename** from the drop-down menu, and entering a new name. You can also pass in the name of an IVI logical name configured with the IVI Configuration utility. For additional information, refer to the **Installed Devices IVI** topic of the *Measurement & Automation Explorer Help*. + + Device names are not case-sensitive. However, IVI logical names are case-sensitive. If you use an IVI logical name, verify the name is identical to the name shown in the IVI Configuration Utility. + + id_query (bool): Specifies whether you want NI-RFSA to perform an ID query. + + **Defined Values** : + + +--------------------------+ + | Description | + +==========================+ + | Perform ID query. | + +--------------------------+ + | Do not perform ID query. | + +--------------------------+ + + reset_device (bool): Specifies whether the NI-RFSA device is reset during the initialization procedure. + + **Defined Values** : + + +----------------------+ + | Description | + +======================+ + | Reset the device. | + +----------------------+ + | Do not reset device. | + +----------------------+ + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + grpc_options (nirfsa.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + new_vi (int): Identifies your instrument session. + + ''' + if grpc_options: + import nirfsa._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_options fails, the error handler can reference it. + # And then here, once _init_with_options succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-RFSA', grpc_options.grpc_channel, connected) + + # NI-TClk does not work over NI gRPC Device Server + if not grpc_options: + self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("id_query=" + pp.pformat(id_query)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Commits settings to hardware, waits for hardware settling, and starts an acquisition. + + You can use this method in conjunction with one of the niRFSA fetch I/Q methods to retrieve acquired I/Q data, or you can use the read IQ single record complex F64 method to both initiate the acquisition and retrieve I/Q data at one time. + + ---- + **Note** + If you are using external digitizer mode, this method commits settings and waits for settling, but it does not start an acquisition. Notice that using the commit method on its own commits settings to hardware, but the device does not wait for hardware settling. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + `RF List Mode `_ + + `NI RF Vector Signal Analyzer State Diagram `_ + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Acquisition(self) + + def close(self): + '''close + + Closes the session to the device. + + If you close a session that has Soft Front Panel (SFP) session access enabled, any application connected to the shared device session is no longer usable. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about using SFP session access. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Stops an acquisition previously started with the _initiate method or the read_power_spectrum method. + + You can also use the abort method to stop a self-calibration. Calling this method is optional, unless you want to stop an acquisition before it is complete or you are continuously acquiring data. + + You can stop the following kinds of acquisitions: + + - Triggered spectrum acquisitions that have not yet been triggered + - Multispan acquisitions in progress + - Average spectrum acquisitions in progress + - Single-record spectrum acquisitions in progress + - Streaming in progress + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + self._interpreter.abort() + + @ivi_synchronized + def change_external_calibration_password(self, old_password, new_password): + r'''change_external_calibration_password + + Changes the password that is required to initialize an external calibration session. + + **Supported Devices**: PXIe-5601/5603/5605/5606, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + old_password (str): Specifies the old (current) external calibration password. + + The maximum length of the password varies by device. + + new_password (str): Specifies the new (desired) external calibration password. + + The maximum length of the password varies by device. + + ''' + self._interpreter.change_external_calibration_password(old_password, new_password) + + @ivi_synchronized + def check_acquisition_status(self): + r'''check_acquisition_status + + Checks the status of the acquisition. + + Use this method to check for any errors that may occur during signal acquisition or to check whether the device has completed the acquisition operation. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI RF Vector Signal Analyzer State Diagram `_ + + Returns: + is_done (bool): Returns signal acquisition status. + + |Value |Description | + |:---------|:------------------------------------| + | True | Signal acquisition is complete. | + | False | Signal acquisition is not complete. | + + ''' + is_done = self._interpreter.check_acquisition_status() + return is_done + + @ivi_synchronized + def clear_self_calibrate_range(self): + r'''clear_self_calibrate_range + + Clears the data obtained from the self_calibrate_range method. + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + ''' + self._interpreter.clear_self_calibrate_range() + + @ivi_synchronized + def commit(self): + r'''commit + + Commits settings to hardware. + + Calling this method is optional. Settings are automatically committed to hardware when you call the _initiate method, the read IQ single record complex F64 method, or the read_power_spectrum method. + + ---- + **Note** + This method does not wait for settling time, unlike the _initiate method. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI RF Vector Signal Analyzer State Diagram `_ + ''' + self._interpreter.commit() + + @ivi_synchronized + def configure_deembedding_table_interpolation_linear(self, port, table_name, format): + r'''configure_deembedding_table_interpolation_linear + + Selects the linear interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + format (enums.LinearInterpolationFormat): Specifies the format of parameters to interpolate. **Defined Values** : + + +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +==================================================+=========================================================================================================================================+ + | LinearInterpolationFormat.REAL_AND_IMAGINARY | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | + +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | LinearInterpolationFormat.MAGNITUDE_AND_PHASE | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | + +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | LinearInterpolationFormat.MAGNITUDE_DB_AND_PHASE | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | + +--------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + if type(format) is not enums.LinearInterpolationFormat: + raise TypeError('Parameter format must be of type ' + str(enums.LinearInterpolationFormat)) + self._interpreter.configure_deembedding_table_interpolation_linear(port, table_name, format) + + @ivi_synchronized + def configure_deembedding_table_interpolation_nearest(self, port, table_name): + r'''configure_deembedding_table_interpolation_nearest + + Selects the nearest interpolation method. + + NI-RFSA uses the parameters of the table nearest to the carrier frequency for de-embedding. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + ''' + self._interpreter.configure_deembedding_table_interpolation_nearest(port, table_name) + + @ivi_synchronized + def configure_deembedding_table_interpolation_spline(self, port, table_name): + r'''configure_deembedding_table_interpolation_spline + + Selects the spline interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSA performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + ''' + self._interpreter.configure_deembedding_table_interpolation_spline(port, table_name) + + @ivi_synchronized + def configure_digital_edge_advance_trigger(self, source, edge): + r'''configure_digital_edge_advance_trigger + + Configures the device to wait for a digital edge Advance Trigger. + + The Advance Trigger indicates where a new record begins. + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + Args: + source (str): Specifies the source of the digital edge for the Advance Trigger. + + | Value | Description | + |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | NIRFSA_VAL_PFI0 ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + | NIRFSA_VAL_PFI1 ('PFI1') | The trigger is received on PFI 1. | + | NIRFSA_VAL_PXI_TRIG0 ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | + | NIRFSA_VAL_PXI_TRIG1 ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | + | NIRFSA_VAL_PXI_TRIG2 ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | + | NIRFSA_VAL_PXI_TRIG3 ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | + | NIRFSA_VAL_PXI_TRIG4 ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | + | NIRFSA_VAL_PXI_TRIG5 ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | + | NIRFSA_VAL_PXI_TRIG6 ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | + | NIRFSA_VAL_PXI_TRIG7 ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | + | NIRFSA_VAL_PXI_STAR ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | + | OutputTerm.PXIE_DSTARB ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + | OutputTerm.TIMER_EVENT ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | + | NIRFSA_VAL_DIO_PFI0 ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI1('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI2 ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI3 ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI4 ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI5 ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI6 ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI7 ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + edge (enums.AdvanceTriggerDigitalEdgeEdge): Specifies the trigger edge to detect. The default value is AdvanceTriggerDigitalEdgeEdge.RISING. + + | Value | Description | + |:------------------------------|:--------------------------------| + | AdvanceTriggerDigitalEdgeEdge.RISING (900) | NI-RFSA detects a rising edge. | + | AdvanceTriggerDigitalEdgeEdge.FALLING (901) | NI-RFSA detects a falling edge. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(edge) is not enums.AdvanceTriggerDigitalEdgeEdge: + raise TypeError('Parameter edge must be of type ' + str(enums.AdvanceTriggerDigitalEdgeEdge)) + self._interpreter.configure_digital_edge_advance_trigger(source, edge) + + @ivi_synchronized + def configure_digital_edge_ref_trigger(self, source, edge, pretrigger_samples=0): + r'''configure_digital_edge_ref_trigger + + Configures the device to wait for a digital edge Reference Trigger to mark a reference point within the record. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + Args: + source (str): Specifies the source of the digital edge for the Reference trigger. + + |Value |Description | + |:-------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | NIRFSA_VAL_PFI0 ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + | NIRFSA_VAL_PFI1 ('PFI1') | The trigger is received on PFI 1. | + | NIRFSA_VAL_PXI_TRIG0 ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | + | NIRFSA_VAL_PXI_TRIG1 ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | + | NIRFSA_VAL_PXI_TRIG2 ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | + | NIRFSA_VAL_PXI_TRIG3 ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | + | NIRFSA_VAL_PXI_TRIG4 ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | + | NIRFSA_VAL_PXI_TRIG5 ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | + | NIRFSA_VAL_PXI_TRIG6 ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | + | NIRFSA_VAL_PXI_TRIG7 ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | + | NIRFSA_VAL_PXI_STAR ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | + | OutputTerm.PXIE_DSTARB ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + | OutputTerm.TIMER_EVENT ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | + | NIRFSA_VAL_DIO_PFI0 ('PFI0') | The trigger is received on PFI 0 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI1('PFI1') | The trigger is received on PFI 1 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI2 ('PFI2') | The trigger is received on PFI 2 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI3 ('PFI3') | The trigger is received on PFI 3 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI4 ('PFI4') | The trigger is received on PFI 4 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI5 ('PFI5') | The trigger is received on PFI 5 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI6 ('PFI6') | The trigger is received on PFI 6 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI7 ('PFI7') | The trigger is received on PFI 7 of the DIO Terminal. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + edge (enums.ReferenceTriggerDigitalEdgeEdge): Specifies the trigger edge to detect. The default value is ReferenceTriggerDigitalEdgeEdge.RISING. + + |Value |Description | + |:------------------------------|:--------------------------------| + | ReferenceTriggerDigitalEdgeEdge.RISING (900) | NI-RFSA detects a rising edge. | + | ReferenceTriggerDigitalEdgeEdge.FALLING (901) | NI-RFSA detects a falling edge. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + pretrigger_samples (int): Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. + + ''' + if type(edge) is not enums.ReferenceTriggerDigitalEdgeEdge: + raise TypeError('Parameter edge must be of type ' + str(enums.ReferenceTriggerDigitalEdgeEdge)) + self._interpreter.configure_digital_edge_ref_trigger(source, edge, pretrigger_samples) + + @ivi_synchronized + def configure_digital_edge_start_trigger(self, source, edge): + r'''configure_digital_edge_start_trigger + + Configures the device to wait for a digital edge Start Trigger at the beginning of the acquisition. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + Args: + source (str): Specifies the source of the digital edge for the Start Trigger. + + | Value | Description | + |:-------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | NIRFSA_VAL_PFI0 ('PFI0') | The trigger is received on PFI 0. For the PXIe-5841 with PXIe-5655, the trigger is received on the PXIe-5841 PFI 0. | + | NIRFSA_VAL_PFI1 ('PFI1') | The trigger is received on PFI 1. | + | NIRFSA_VAL_PXI_TRIG0 ('PXI_Trig0') | The trigger is received on PXI trigger line 0. | + | NIRFSA_VAL_PXI_TRIG1 ('PXI_Trig1') | The trigger is received on PXI trigger line 1. | + | NIRFSA_VAL_PXI_TRIG2 ('PXI_Trig2') | The trigger is received on PXI trigger line 2. | + | NIRFSA_VAL_PXI_TRIG3 ('PXI_Trig3') | The trigger is received on PXI trigger line 3. | + | NIRFSA_VAL_PXI_TRIG4 ('PXI_Trig4') | The trigger is received on PXI trigger line 4. | + | NIRFSA_VAL_PXI_TRIG5 ('PXI_Trig5') | The trigger is received on PXI trigger line 5. | + | NIRFSA_VAL_PXI_TRIG6 ('PXI_Trig6') | The trigger is received on PXI trigger line 6. | + | NIRFSA_VAL_PXI_TRIG7 ('PXI_Trig7') | The trigger is received on PXI trigger line 7. | + | NIRFSA_VAL_PXI_STAR ('PXI_STAR') | The trigger is received on the PXI star trigger line. This value is not supported for PXIe-5644/5645/5646 devices. | + | OutputTerm.PXIE_DSTARB ('PXIE_DSTARB') | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + | OutputTerm.TIMER_EVENT ('TimerEvent') | The trigger is received from Timer Event on the digitizer. This value is valid on only the PXIe-5820/5840/5841/5842/5860 and for digital edge Advance Triggers on the PXIe-5644/5645/5646 and PXIe-5663E/5665. | + | NIRFSA_VAL_DIO_PFI0 ('PFI1') | The trigger is received on PFI 0 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI1('PFI2') | The trigger is received on PFI 1 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI2 ('PFI3') | The trigger is received on PFI 2 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI3 ('PFI4') | The trigger is received on PFI 3 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI4 ('PFI5') | The trigger is received on PFI 4 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI5 ('PFI6') | The trigger is received on PFI 5 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI6 ('PFI7') | The trigger is received on PFI 6 of the DIO Terminal. | + | NIRFSA_VAL_DIO_PFI7 ('PFI8') | The trigger is received on PFI 7 of the DIO Terminal. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + edge (enums.StartTriggerDigitalEdgeEdge): Specifies the trigger edge to detect. The default value is StartTriggerDigitalEdgeEdge.RISING. + + | Value | Description | + |:------------------------------|:--------------------------------| + | StartTriggerDigitalEdgeEdge.RISING (900) | NI-RFSA detects a rising edge. | + | StartTriggerDigitalEdgeEdge.FALLING (901) | NI-RFSA detects a falling edge. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(edge) is not enums.StartTriggerDigitalEdgeEdge: + raise TypeError('Parameter edge must be of type ' + str(enums.StartTriggerDigitalEdgeEdge)) + self._interpreter.configure_digital_edge_start_trigger(source, edge) + + @ivi_synchronized + def configure_iq_power_edge_ref_trigger(self, source, level, slope, pretrigger_samples=0): + r'''configure_iq_power_edge_ref_trigger + + Configures the device to wait for the complex power of the I/Q data to cross the specified threshold to mark a reference point within the record. + + To trigger on burst signals, add a minimum quiet time, configured with the ref_trigger_minimum_quiet_time property, to ensure the trigger does not occur in the middle of a burst if the acquisition starts while a burst is being generated. The quiet time should be set to a value smaller than the time between bursts, but large enough to ignore power changes within a burst. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + Args: + source (str): Specifies the source of the RF signal for the power edge Reference trigger. The only supported value is "0". + + level (float): Specifies the threshold, in dBm, above or below which the device triggers. + + slope (enums.ReferenceTriggerIqPowerEdgeSlope): Specifies whether the device detects a positive or negative slope on the trigger signal. The default value is ReferenceTriggerIqPowerEdgeSlope.RISING. + + | Value | Description | + |:--------------------------------|:-------------------------------------------------| + | ReferenceTriggerIqPowerEdgeSlope.RISING (1000) | NI-RFSA detects a rising edge (positive slope). | + | ReferenceTriggerIqPowerEdgeSlope.FALLING (1001) | NI-RFSA detects a falling edge (negative slope). | + + pretrigger_samples (int): Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. + + ''' + if type(slope) is not enums.ReferenceTriggerIqPowerEdgeSlope: + raise TypeError('Parameter slope must be of type ' + str(enums.ReferenceTriggerIqPowerEdgeSlope)) + self._interpreter.configure_iq_power_edge_ref_trigger(source, level, slope, pretrigger_samples) + + @ivi_synchronized + def configure_ref_clock(self, clock_source, ref_clock_rate): + r'''configure_ref_clock + + Configures the NI-RFSA device Reference Clock. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXI-5661 Reference Clock `_ + + `PXIe-5663 Timing Configurations `_ + + `PXIe-5665 Timing Configurations `_ + + `PXIe-5667 Timing Configurations `_ + + `PXIe-5668 Timing Configurations `_ + + `PXIe-5830 Timing Configurations `_ + + `PXIe-5831 Timing Configurations `_ + + Args: + clock_source (enums.ReferenceClockSource): specifies the source of the Reference Clock signal. + | Clock Source | Description | + |-----------------------|-------------| + | **Onboard Clock (default)** | Uses the onboard Reference Clock as the clock source.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to PXIe-5655 onboard clock. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to PXIe-5655 onboard clock. Use cables as shown in the Getting Started Guide. | + | **RefIn** | Uses the signal at the front panel REF IN connector.
**PXIe-5830/5831/5832**-
- PXIe-5830: Connect PXIe-5820 REF IN to PXIe-3621 REF OUT; lock external signal to PXIe-3621 REF IN.
- PXIe-5831: Connect PXIe-5820 REF IN to PXIe-3622 REF OUT; lock external signal to PXIe-3622 REF IN.
- PXIe-5832: Connect PXIe-5820 REF IN to PXIe-3623 REF OUT; lock external signal to PXIe-3623 REF IN.
**PXIe-5831 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3622 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3622 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5832 with PXIe-5653**-
- Connect PXIe-5820 REF IN to PXIe-3623 REF OUT.
- Connect PXIe-5653 REF OUT (10 MHz) to PXIe-3623 REF IN.
- Lock external signal to PXIe-5653 REF IN.
**PXIe-5841 with PXIe-5655**-
- Lock to signal at REF IN on PXIe-5655. Connect REF OUT on PXIe-5655 to PXIe-5841 REF IN.
**PXIe-5842**-
- Lock to signal at REF IN on PXIe-5655. Use cables as shown in the Getting Started Guide. | + | **PXI Clock** | Uses the PXI_CLK signal present on the PXI backplane. | + | **PXI_ClkMaster** | Valid only for PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653.
**PXIe-5831 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3622 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN.
**PXIe-5832 with PXIe-5653**-
- NI-RFSG configures PXIe-5653 to export Reference Clock.
- Configures PXIe-5820 and PXIe-3623 to use PXI_Clk.
- Connect PXIe-5653 REF OUT (10 MHz) to PXI chassis REF IN. | + + ref_clock_rate (float): specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. This parameter is only valid when the **ref clock source** parameter is set to **RefIn**. The default value is Auto (-1.0), which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. Refer to the Reference Clock Rate property for possible values. + + ''' + if type(clock_source) is not enums.ReferenceClockSource: + raise TypeError('Parameter clock_source must be of type ' + str(enums.ReferenceClockSource)) + self._interpreter.configure_ref_clock(clock_source, ref_clock_rate) + + @ivi_synchronized + def configure_software_edge_advance_trigger(self): + r'''configure_software_edge_advance_trigger + + Configures the device to wait for a software Advance Trigger. + + The Advance Trigger indicates where a new record begins. The device waits until you call the send_software_edge_trigger method to assert the trigger. + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + ''' + self._interpreter.configure_software_edge_advance_trigger() + + @ivi_synchronized + def configure_software_edge_ref_trigger(self, pretrigger_samples=0): + r'''configure_software_edge_ref_trigger + + Configures the device to wait for a software Reference Trigger to mark a reference point within the record. + + The device waits until you call the send_software_edge_trigger method to assert the trigger. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + Args: + pretrigger_samples (int): Specifies the number of samples to store for each record that was acquired in the time period immediately before the trigger occurred. + + ''' + self._interpreter.configure_software_edge_ref_trigger(pretrigger_samples) + + @ivi_synchronized + def configure_software_edge_start_trigger(self): + r'''configure_software_edge_start_trigger + + Configures the device to wait for a software Start Trigger at the beginning of the acquisition. + + The device waits until you call the send_software_edge_trigger method to assert the trigger. + + You can use this trigger with the `NI-TClk API `_. + + ---- + **Note** + The PXIe-5644/5645/5646 does not support the NI-TClk API. + + ---- + + ---- + **Note** + This method is not supported if you set the **acquisitionType** parameter to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method or if you set the acquisition_type property to AcquisitionType.SPECTRUM. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + ''' + self._interpreter.configure_software_edge_start_trigger() + + @ivi_synchronized + def _create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): + r'''_create_deembedding_sparameter_table_array + + Creates an s-parameter de-embedding table for the port from the input data. + + If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview `_ + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. + + sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. + + **Defined Values** : + + +-----------------------------------------+-----------------------------------------------------+ + | Name | Description | + +=========================================+=====================================================+ + | SparameterOrientation.PORT1_TOWARDS_DUT | Port 1 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+-----------------------------------------------------+ + | SparameterOrientation.PORT2_TOWARDS_DUT | Port 2 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+-----------------------------------------------------+ + + ''' + import numpy + + if type(sparameter_orientation) is not enums.SparameterOrientation: + raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) + if type(frequencies) is not numpy.ndarray: + raise TypeError('frequencies must be {0}, is {1}'.format(numpy.ndarray, type(frequencies))) + if numpy.isfortran(frequencies) is True: + raise TypeError('frequencies must be in C-order') + if frequencies.dtype is not numpy.dtype('float64'): + raise TypeError('frequencies must be numpy.ndarray of dtype=float64, is ' + str(frequencies.dtype)) + if frequencies.ndim != 1: + raise TypeError('frequencies must be numpy.ndarray of dimension=1, is ' + str(frequencies.ndim)) + if type(sparameter_table) is not numpy.ndarray: + raise TypeError('sparameter_table must be {0}, is {1}'.format(numpy.ndarray, type(sparameter_table))) + if numpy.isfortran(sparameter_table) is True: + raise TypeError('sparameter_table must be in C-order') + if sparameter_table.dtype is not numpy.dtype('complex128'): + raise TypeError('sparameter_table must be numpy.ndarray of dtype=complex128, is ' + str(sparameter_table.dtype)) + if sparameter_table.ndim != 3: + raise TypeError('sparameter_table must be numpy.ndarray of dimension=3, is ' + str(sparameter_table.ndim)) + self._interpreter.create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) + + @ivi_synchronized + def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): + r'''create_deembedding_sparameter_table_s2p_file + + Creates an S-parameter de-embedding table for the port based on the specified S2P file. + + If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview `_ + + `S-parameters `_ + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + s2p_file_path (str): Specifies the path to the S2P file that contains de-embedding information for the specified port. + + sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : + + +-----------------------------------------+-----------------------------------------------------+ + | Name | Description | + +=========================================+=====================================================+ + | SparameterOrientation.PORT1_TOWARDS_DUT | Port 1 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+-----------------------------------------------------+ + | SparameterOrientation.PORT2_TOWARDS_DUT | Port 2 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+-----------------------------------------------------+ + + ''' + if type(sparameter_orientation) is not enums.SparameterOrientation: + raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) + self._interpreter.create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) + + @ivi_synchronized + def delete_all_deembedding_tables(self): + r'''delete_all_deembedding_tables + + Deletes all configured de-embedding tables for the session. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + ''' + self._interpreter.delete_all_deembedding_tables() + + @ivi_synchronized + def delete_deembedding_table(self, port, table_name): + r'''delete_deembedding_table + + Deletes the selected de-embedding table for a given port. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + ''' + self._interpreter.delete_deembedding_table(port, table_name) + + @ivi_synchronized + def disable_advance_trigger(self): + r'''disable_advance_trigger + + Configures the device to not use an Advance Trigger. + + This method is necessary only if you configured an Advance Trigger in the past and now want to disable it. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + ''' + self._interpreter.disable_advance_trigger() + + @ivi_synchronized + def disable_ref_trigger(self): + r'''disable_ref_trigger + + Configures the device to not wait for a Reference Trigger to mark a reference point within a record. + + This method is necessary only if you previously configured a Reference trigger in the past and now want to disable it. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5668, PXIe-5820/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + ''' + self._interpreter.disable_ref_trigger() + + @ivi_synchronized + def disable_start_trigger(self): + r'''disable_start_trigger + + Configures the device to not wait for a Start Trigger at the beginning of the acquisition. + + This method is necessary only if you previously configured a Start Trigger in the past and now want to disable it. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + ''' + self._interpreter.disable_start_trigger() + + @ivi_synchronized + def enable_session_access(self, enable): + r'''enable_session_access + + Enables or disables SFP session access for the specified instrument. + + SFP session access allows the NI-RFSA Soft Front Panel (SFP) to access a device with an existing open session and can help you debug your code. To enable session access, pass True to the **enabled** parameter. To disable session access, pass False to the **enabled** parameter. + + Refer to `Configuring SFP Session Access using LabWindows/CVI or C `_ for more information about SFP session access. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842/5860 + + ---- + **Note** + NI-RFSA does not support NI-TClk when driver session debugging is enabled. + + ---- + + Args: + enable (bool): Enables or disables SFP session access for the specified device. + + | Value | Description | + |:---------|:-------------------------| + | True | Enables session access. | + | False | Disables session access. | + + ''' + self._interpreter.enable_session_access(enable) + + def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, sparameter_orientation): + '''create_deembedding_sparameter_table_array + + Creates an s-parameter de-embedding table for the port from the input data. + + If you only create one table for a port, NI-RFSA automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview`_ + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. + + sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. + + **Defined Values** : + + +-----------------------------------------+-----------------------------------------------------+ + | Name | Description | + +=========================================+=====================================================+ + | SparameterOrientation.PORT1_TOWARDS_DUT | Port 1 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+-----------------------------------------------------+ + | SparameterOrientation.PORT2_TOWARDS_DUT | Port 2 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+-----------------------------------------------------+ + + ''' + if (str(type(sparameter_table)).find("'numpy.ndarray'") != -1) or (str(type(frequencies)).find("'numpy.ndarray'") != -1): + if sparameter_table.ndim == 3: + if frequencies.size == sparameter_table.shape[0]: + if sparameter_table.shape[1] == sparameter_table.shape[2]: + number_of_ports = sparameter_table.shape[1] + return self._create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) + else: + raise ValueError("Row and column count of sparameter table should be equal. Table row count is {} and column count is {}.".format(sparameter_table.shape[1], sparameter_table.shape[2])) + else: + raise ValueError("Frequencies count does not match the sparameter table count. Frequencies count is {} and sparameter table count is {}.".format(frequencies.size, sparameter_table.shape[0])) + else: + raise ValueError("Unsupported array dimension. Is {}, expected 3".format(sparameter_table.ndim)) + else: + raise TypeError("Unsupported datatype. Expected numpy array.") + + def get_deembedding_sparameters(self): + r'''get_deembedding_sparameters + + Returns the S-parameters used for de-embedding a measurement on the selected port. + + This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. + + If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Note: The port orientation for the returned S-parameters is normalized to SparameterOrientation.PORT1_TOWARDS_DUT. + + Returns: + sparameters (numpy.array(dtype=numpy.complex128)): Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. + + ''' + sparameters = self._interpreter.get_deembedding_sparameters() + return sparameters + + @ivi_synchronized + def _get_ext_cal_last_date_and_time(self): + r'''_get_ext_cal_last_date_and_time + + Returns the date and time of the last successful external calibration. + + The time returned is 24-hour local time, and the date is returned as integer values. For example, if the device was calibrated at 2:30 PM on December 31, 2010, this method returns 14 for the HOUR parameter, 30 for the MINUTE parameter, 12 for the MONTH parameter, 31 for the DAY parameter, and 2010 for the YEAR parameter. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Returns: + year (int): Returns the year of the last external calibration. + + month (int): Returns the month of the last external calibration. + + day (int): Returns the day of the last external calibration. + + hour (int): Returns the hour of the last external calibration. + + minute (int): Returns the minute of the last external calibration. + + ''' + year, month, day, hour, minute = self._interpreter.get_ext_cal_last_date_and_time() + return year, month, day, hour, minute + + @ivi_synchronized + def get_ext_cal_recommended_interval(self): + r'''get_ext_cal_recommended_interval + + Returns the recommended interval between external calibrations, in months. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Returns: + months (hightime.timedelta, datetime.timedelta, or int in months): Returns the recommended maximum interval between external calibrations, in months. + + ''' + months = self._interpreter.get_ext_cal_recommended_interval() + return _converters.convert_month_to_timedelta(months) + + @ivi_synchronized + def get_ext_cal_last_date_and_time(self): + '''get_ext_cal_last_date_and_time + + Returns the date and time of the last successful external calibration. + + The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Returns: + last_cal_datetime (hightime.datetime): + + ''' + year, month, day, hour, minute = self._get_ext_cal_last_date_and_time() + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def get_self_cal_last_date_and_time(self, self_calibration_step): + '''get_self_cal_last_date_and_time + + Returns the date and time of the last successful self-calibration. + + The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + self_calibration_step (enums.SelfCalibrationStep): Specifies the self-calibration step to query for the last successful self-calibration date and time data. + + + Returns: + last_cal_datetime (hightime.datetime): + + ''' + year, month, day, hour, minute = self._get_self_cal_last_date_and_time(self_calibration_step) + return hightime.datetime(year, month, day, hour, minute) + + @ivi_synchronized + def _get_self_cal_last_date_and_time(self, self_calibration_step): + r'''_get_self_cal_last_date_and_time + + Returns the date and time of the last successful self-calibration. + + The time returned is 24-hour local time, and the date is returned as integer values. For example, if the device was calibrated at 2:30 PM on December 31, 2010, this method returns 14 for the HOUR parameter, 30 for the MINUTE parameter, 12 for the MONTH parameter, 31 for the DAY parameter, and 2010 for the YEAR parameter. + + ---- + **Note** + For the PXIe-5644/5645/5646, you must select NIRFSA_VAL_SELF_CAL_IMAGE_SUPPRESSION for the **SELF_CALIBRATION_STEP** parameter. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Args: + self_calibration_step (Bitwise combination of enums.SelfCalibrationStep flags): Specifies the self-calibration step to query for the last successful self-calibration date and time data. + + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | Name | Description | + +===========================================+=================================================================================================+ + | SelfCalibrationStep.PRESELECTOR_ALIGNMENT | Calls for preselector alignment. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.GAIN_REFERENCE | Measures the changes in gain since the last external calibration was run. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.IF_FLATNESS | Measures the IF response of the entire system for each of the supported IF filters | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.DIGITIZER_SELF_CAL | Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.LO_SELF_CAL | Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.AMPLITUDE_ACCURACY | Selects the Amplitude Accuracy self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.RESIDUAL_LO_POWER | Selects the Residual LO Power self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.IMAGE_SUPPRESSION | Selects the Image Suppression self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.SYNTHESIZER_ALIGNMENT | Selects the Synthesizer Alignment self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.DC_OFFSET | Selects the DC Offset self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + + + Returns: + year (int): Returns the year of the last external calibration. + + month (int): Returns the month of the last external calibration. + + day (int): Returns the day of the last external calibration. + + hour (int): Returns the year of the last external calibration. It is expressed as an integer. + + minute (int): Returns the minute of the last external calibration. + + ''' + if type(self_calibration_step) is not enums.SelfCalibrationStep: + raise TypeError('Parameter self_calibration_step must be of type ' + str(enums.SelfCalibrationStep)) + year, month, day, hour, minute = self._interpreter.get_self_cal_last_date_and_time(self_calibration_step) + return year, month, day, hour, minute + + @ivi_synchronized + def get_self_calibration_temperature(self, self_calibration_step): + r'''get_self_calibration_temperature + + Returns the temperature, in degrees Celsius, at the last successful self-calibration. + + ---- + **Note** + For the PXIe-5644/5645/5646, you must select NIRFSA_VAL_SELF_CAL_IMAGE_SUPPRESSION for the **selfCalibrationStep** parameter. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Args: + self_calibration_step (Bitwise combination of enums.SelfCalibrationStep flags): Specifies the self-calibration step to query for the last successful self-calibration date and time data. + + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | Name | Description | + +===========================================+=================================================================================================+ + | SelfCalibrationStep.PRESELECTOR_ALIGNMENT | Calls for preselector alignment. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.GAIN_REFERENCE | Measures the changes in gain since the last external calibration was run. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.IF_FLATNESS | Measures the IF response of the entire system for each of the supported IF filters | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.DIGITIZER_SELF_CAL | Calls for digitizer self-calibration, if the digitizer is associated with the RF downconverter. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.LO_SELF_CAL | Calls for LO self-calibration, if the LO source module is associated with the RF downconverter. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.AMPLITUDE_ACCURACY | Selects the Amplitude Accuracy self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.RESIDUAL_LO_POWER | Selects the Residual LO Power self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.IMAGE_SUPPRESSION | Selects the Image Suppression self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.SYNTHESIZER_ALIGNMENT | Selects the Synthesizer Alignment self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + | SelfCalibrationStep.DC_OFFSET | Selects the DC Offset self-calibration step. | + +-------------------------------------------+-------------------------------------------------------------------------------------------------+ + + + Returns: + temperature (float): Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. + + ''' + if type(self_calibration_step) is not enums.SelfCalibrationStep: + raise TypeError('Parameter self_calibration_step must be of type ' + str(enums.SelfCalibrationStep)) + temperature = self._interpreter.get_self_calibration_temperature(self_calibration_step) + return temperature + + @ivi_synchronized + def get_terminal_name(self, signal, signal_identifier=""): + r'''get_terminal_name + + Returns the fully qualified name of the signal being queried. + + Signals can be triggers, clocks, or events. + + You can pass the **TERMINAL_NAME** parameter that is returned to the **source** parameter of a configure trigger method. + + **Supported Devices**: PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + signal (enums.Signal): Specifies the signal for which you want to query the terminal. + + +------------------------------+----------------------------------------------+ + | Name | Description | + +==============================+==============================================+ + | Signal.START_TRIGGER | NI-RFSA routes a Start Trigger. | + +------------------------------+----------------------------------------------+ + | Signal.REF_TRIGGER | NI-RFSA routes a Reference | + +------------------------------+----------------------------------------------+ + | Signal.ADVANCE_TRIGGER | NI-RFSA routes an Advance | + +------------------------------+----------------------------------------------+ + | Signal.READY_FOR_START_EVENT | NI-RFSA routes a Ready for Start Event. | + +------------------------------+----------------------------------------------+ + | Signal.READY_FOR_REF_EVENT | NI-RFSA routes a Ready for Reference Event.. | + +------------------------------+----------------------------------------------+ + | Signal.END_OF_RECORD_EVENT | NI-RFSA routes a End of Record Event. | + +------------------------------+----------------------------------------------+ + | Signal.DONE_EVENT | NI-RFSA routes a Done Event. | + +------------------------------+----------------------------------------------+ + | Signal.REF_CLOCK | NI-RFSA routes a Reference Clock. | + +------------------------------+----------------------------------------------+ + | Signal.USER | NI-RFSA routes a User Defined Signal. | + +------------------------------+----------------------------------------------+ + + signal_identifier (str): Specifies a particular instance of a trigger. NI-RFSA does not support this parameter. + + + Returns: + terminal_name (str): Returns the fully qualified name of the signal being queried. + + ''' + if type(signal) is not enums.Signal: + raise TypeError('Parameter signal must be of type ' + str(enums.Signal)) + terminal_name = self._interpreter.get_terminal_name(signal, signal_identifier) + return terminal_name + + def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): + r'''_init_with_options + + Creates a new session for the device. + + This method sets the initial value of certain properties and sends initialization commands to reset all hardware modules to a known state necessary for NI-RFSA operation. + + To create a new session, pass the downconverter resource name for the RF vector signal analyzer to the **resource name** parameter. + + You can access the device session this VI creates using the NI-RFSA Soft Front Panel (SFP). Accessing the device session with the SFP can help you debug your code. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about accessing your session with the SFP. + + ---- + **Note** + Before initializing your device, you must first associate the modules that comprise your device in MAX. After associating the modules, pass the resource name of the device to this method to initialize all the modules. Refer to `Associating NI-RFSA Modules `_ for information about MAX association. + + ---- + + ---- + **Note** + For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending *ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Driver Setup Options `_ + + Args: + resource_name (str): Specifies the resource name of the device to initialize. + + For NI-RFSA devices, the syntax is the device name specified in MAX. The typical default name for your device in MAX is PXI1Slot2. You can rename your device by right-clicking the name in MAX, selecting **Rename** from the drop-down menu, and entering a new name. You can also pass in the name of an IVI logical name configured with the IVI Configuration utility. For additional information, refer to the **Installed Devices IVI** topic of the *Measurement & Automation Explorer Help*. + + Device names are not case-sensitive. However, IVI logical names are case-sensitive. If you use an IVI logical name, verify the name is identical to the name shown in the IVI Configuration Utility. + + id_query (bool): Specifies whether you want NI-RFSA to perform an ID query. + + **Defined Values** : + + +--------------------------+ + | Description | + +==========================+ + | Perform ID query. | + +--------------------------+ + | Do not perform ID query. | + +--------------------------+ + + reset_device (bool): Specifies whether the NI-RFSA device is reset during the initialization procedure. + + **Defined Values** : + + +----------------------+ + | Description | + +======================+ + | Reset the device. | + +----------------------+ + | Do not reset device. | + +----------------------+ + + option_string (dict): Sets the initial value of certain properties for the session. The properties shown in the following table are used in this parameter. + + | Name | Property | + |:-----------------|:-------------------------------------------------------------------------------------------------------------------------------------------| + | RangeCheck | RANGE_CHECK | + | QueryInstrStatus | QUERY_INSTRUMENT_STATUS | + | Cache | CACHE | + | RecordCoercions | RECORD_COERCIONS | + | DriverSetup | driver_setup | + | Simulate | SIMULATE | + + The format of this string is *AttributeName=Value*, where *AttributeName* is the name of the property and *Value* is the value to which the property will be set. For example, you can simulate the PXIe-5663 using the following strings: + + *Simulate=1, DriverSetup=Model:5663\E*. + + *Simulate=1, DriverSetup=Model:5601*; *Digitizer:5622; LO:5652; LOBoardType:PXIe*. + + To set multiple properties, separate their assignments with a comma. + + Refer to `Driver Setup Options `_ for more information about the driver setup string. + + Note: To simulate a device using the PXIe-5622 25 MHz digitizer, set the *Digitizer* field to 5622_25MHz_DDC and the *Simulate* field to 1. You can set the *Digitizer* field to 5622_25MHz_DDC only when using the PXIe-5665. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + + Returns: + new_vi (int): Identifies your instrument session. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + new_vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) + return new_vi + + @ivi_synchronized + def _initiate(self): + r'''_initiate + + Commits settings to hardware, waits for hardware settling, and starts an acquisition. + + You can use this method in conjunction with one of the niRFSA fetch I/Q methods to retrieve acquired I/Q data, or you can use the read IQ single record complex F64 method to both initiate the acquisition and retrieve I/Q data at one time. + + ---- + **Note** + If you are using external digitizer mode, this method commits settings and waits for settling, but it does not start an acquisition. Notice that using the commit method on its own commits settings to hardware, but the device does not wait for hardware settling. + + ---- + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `None (Trigger Type) `_ + + `RF List Mode `_ + + `NI RF Vector Signal Analyzer State Diagram `_ + ''' + self._interpreter.initiate() + + @ivi_synchronized + def is_self_cal_valid(self): + r'''is_self_cal_valid + + Indicates which calibration steps contain valid calibration data. + + To omit steps with valid calibration data from self-calibration, you can pass the **VALID_STEPS** parameter to the **stepsToOmit** parameter of the SelfCalibrate method. + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Returns: + self_cal_valid (bool): Returns True if all the calibration data is valid and False if any of the calibration data is invalid. + + valid_steps (Bitwise combination of enums.SelfCalSteps flags): Returns valid steps. + + ---- + If two or more calibration steps are valid, this parameter returns a bitwise-OR combination of the calibration steps. For example, if both SelfCalSteps.IF_FLATNESS and SelfCalSteps.LO_SELF_CAL steps are valid, NI-RFSA returns the following string: + + SelfCalSteps.IF_FLATNESS | + + SelfCalSteps.LO_SELF_CAL + + ---- + + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +====================================+=====================================================================================================================+ + | SelfCalSteps.DIGITIZER_SELF_CAL | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.PRESELECTOR_ALIGNMENT | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.OMIT_NONE | No calibration steps are omitted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.GAIN_REFERENCE | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.IF_FLATNESS | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.LO_SELF_CAL | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.AMPLITUDE_ACCURACY | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.RESIDUAL_LO_POWER | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.IMAGE_SUPPRESSION | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.SYNTHESIZER_ALIGNMENT | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalSteps.DC_OFFSET | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +------------------------------------+---------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + self_cal_valid, valid_steps = self._interpreter.is_self_cal_valid() + return self_cal_valid, valid_steps + + @ivi_synchronized + def perform_thermal_correction(self): + r'''perform_thermal_correction + + Corrects for temperature variations while acquiring the same signal for an extended period of time in a continuous acquisition. + + NI-RFSA internally acquires the temperature every time you initiate an acquisition. If you are performing a continuous acquisition, National Instruments recommends calling this method once every 10 minutes in a stable temperature environment to periodically update temperature calibration. If the ambient temperature varies, call this method more frequently. + + ---- + **Note** + You cannot call this method if your device is operating in `RF list mode `_. + + ---- + + Refer to the *Thermal Management* section for your device for more information about typical operating temperatures. + + **Supported Devices**: PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5830/5831/5832/5840/5841/5842 + ''' + self._interpreter.perform_thermal_correction() + + @ivi_synchronized + def reset_device(self): + r'''reset_device + + Performs a hard reset on the device. + + A hard reset consists of the following actions: + + - Signal acquisition is stopped. + - All routes are released. + - External bidirectional terminals are tristated. + - FPGAs are reset. + - Hardware is configured to its default state. + - All session properties are reset to their default states. + + During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. For example, a trigger signal exported to a PXI trigger line that is used by another device is no longer exported. + + On the PXI-5600, if you are driving the PXI_CLK10 line, you continue to drive the clock even after a device reset. To stop driving the PXI_CLK10 line, use the ConfigurePxiChassisClk10 method and set the **pxiClk10Source** parameter to NIRFSA_VAL_NONE or set the PXI_CHASSIS_CLK10_SOURCE property to NIRFSA_VAL_NONE. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + self._interpreter.reset_device() + + @ivi_synchronized + def reset_with_options(self, steps_to_omit): + r'''reset_with_options + + Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. + + For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Star Trigger Controller Slot, also known as the System Timing Slot. + + By default, this method resets all properties to their default values, deletes all de-embedding tables, aborts generation, clears all routes, and resets session properties to initial values. You can specify steps to omit using the steps to omit parameter. For example, if you specify NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES for the **STEPS_TO_OMIT** parameter, this method does not release signal routes during the reset process. + + When routes of signals between two devices are released, they are released regardless of which device created the route. + + To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSG sessions, NI recommends using this method instead of Reset, with **STEPS_TO_OMIT** set to NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Args: + steps_to_omit (Bitwise combination of enums.ResetWithOptionsStepsToOmit flags): Specifies a list of steps to skip during the reset process. The default value is ResetWithOptionsStepsToOmit.NONE, which specifies that no step is omitted during reset. + + Note:ResetWithOptionsStepsToOmit.ROUTES is not supported in external calibration or alignment sessions. + + Note:ResetWithOptionsStepsToOmit.ROUTES is not supported for the PXI-5600/5661. + + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +================================================+============================================================================================================================================================================================================+ + | ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.NONE | No step is omitted during reset. | + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.ROUTES | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | + +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(steps_to_omit) is not enums.ResetWithOptionsStepsToOmit: + raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.ResetWithOptionsStepsToOmit)) + self._interpreter.reset_with_options(steps_to_omit) + + @ivi_synchronized + def self_calibrate_range(self, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): + r'''self_calibrate_range + + Self-calibrates all configurations within the specified frequency and reference level limits. + + Self-calibration range data is valid until you restart the system or call the clear_self_calibrate_range method. + + NI recommends that no external signals are present on the RF In port while the calibration is taking place. + + ---- + **Note** + This method does not update self-calibration date and temperature. + + ---- + + For best results, NI recommends that you perform a complete self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit that step for faster execution. + + ---- + **Note** + If there is an existing NI-RFSG session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate. + + ---- + + ---- + **Note** + If there is an existing NI-RFSG session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. + + ---- + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + Args: + steps_to_omit (Bitwise combination of enums.SelfCalibrateRangeStepsToOmit flags): Specifies which calibration steps to skip as part of the self-calibration process. A value of 0 specifies all supported calibration steps are performed. + + ---- + + To omit two or more calibration steps, specify a bitwise-OR combination of the following constants. For example, if you wanted to omit SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY and SelfCalibrateRangeStepsToOmit.LO_SELF_CAL, you would pass the following string to the SelfCalibrate method: SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY | SelfCalibrateRangeStepsToOmit.LO_SELF_CAL + + ---- + + | Value | Description | + |:------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| + | NIRFSA_VAL_RESET_WITH_OPTIONS_NONE | No step is omitted during self-calibration. | + | SelfCalibrateRangeStepsToOmit.PRESELECTOR_ALIGNMENT | Not used by this method. | + | SelfCalibrateRangeStepsToOmit.GAIN_REFERENCE | Not used by this method. | + | SelfCalibrateRangeStepsToOmit.IF_FLATNESS | Not used by this method. | + | SelfCalibrateRangeStepsToOmit.DIGITIZER_SELF_CAL | Not used by this method. | + | SelfCalibrateRangeStepsToOmit.LO_SELF_CAL | Omits the Local Oscillator (LO) Self Cal step. If you omit this step and the is_self_cal_valid method indicates the calibration data for this step is invalid, the LO phase-locked loop (PLL) may fail to lock. | + | SelfCalibrateRangeStepsToOmit.AMPLITUDE_ACCURACY | Omits the Amplitude Accuracy step. If you omit this step, the absolute accuracy of the device is not adjusted. | + | SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | + |SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image Performance is not adjusted. | + | SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT | Omits the Synthesizer Alignment step. If you omit this step, the LO PLL is not adjusted. This step is not valid for the PXIe-5820. | + | SelfCalibrateRangeStepsToOmit.DC_OFFSET | Omits the DC Offset step. This step applies only to the PXIe-5820. | + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + minimum_frequency (float): Specifies the minimum RF frequency in Hz. + + maximum_frequency (float): Specifies the maximum RF frequency in Hz. + + minimum_reference_level (float): Specifies the minimum reference level in dBm. + + maximum_reference_level (float): Specifies the maximum reference level in dBm. + + ''' + if type(steps_to_omit) is not enums.SelfCalibrateRangeStepsToOmit: + raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.SelfCalibrateRangeStepsToOmit)) + self._interpreter.self_calibrate_range(steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level) + + @ivi_synchronized + def send_software_edge_trigger(self, trigger, trigger_identifier=""): + r'''send_software_edge_trigger + + Sends a trigger to the device when you use a software version of a supported trigger and the device is waiting for the trigger to be sent. + + You can also use this method to override a hardware trigger. + + This method returns an error in the following situations: + + - You configure an invalid trigger. + - You set the **acquisitionType** to AcquisitionType.SPECTRUM using the ConfigureAcquisitionType method. + - You have not previously called the _initiate method. + + **Supported Devices**: PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Software Trigger `_ + + `Triggers `_ + + Args: + trigger (enums.SoftwareTriggerType): Specifies the trigger to send. + + **Default Value:** SoftwareTriggerType.START + + **Defined Values:** + + +---------------------------+-------------------------------+ + | Name | Description | + +===========================+===============================+ + | SoftwareTriggerType.START | Specifies the Start Trigger. | + +---------------------------+-------------------------------+ + | NIRFSA_VAL_SCRIPT_TRIGGER | Specifies the Script Trigger. | + +---------------------------+-------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + trigger_identifier (str): Specifies a particular instance of a trigger. NI-RFSA does not currently support this parameter. + + ''' + if type(trigger) is not enums.SoftwareTriggerType: + raise TypeError('Parameter trigger must be of type ' + str(enums.SoftwareTriggerType)) + self._interpreter.send_software_edge_trigger(trigger, trigger_identifier) + + def _close(self): + r'''_close + + Closes the session to the device. + + If you close a session that has Soft Front Panel (SFP) session access enabled, any application connected to the shared device session is no longer usable. Refer to `Debugging Your Application Using SFP Session Access `_ for more information about using SFP session access. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Performs a self-test on the NI-RFSA device and returns the test results. + + This method performs a simple series of tests to ensure that the NI-RFSA device is powered up and responding. + + This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSA device must be in the Configuration state before you call this method. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Device Warm-Up `_ + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def reset(self): + r'''reset + + Resets all properties to default values, deletes all de-embedding tables, and stops the export of all external signals and events. + + For the PXI-5600, this method does not reset the PXI Clock signal that is driven by devices installed in the Trigger Controller Slot, also known as the System Timing Slot. + + This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. To avoid resetting routes on the device that are in use by NI-RFSG sessions, NI recommends using the reset_with_options method, with **stepsToOmit** set to NIRFSA_VAL_RESET_WITH_OPTIONS_ROUTES. + + **Supported Devices**: PXI-5600, PXIe-5601/5603/5605/5606 (external digitizer mode), PXIe-5644/5645/5646, PXI-5661, PXIe-5663/5663E/5665/5667/5668, PXIe-5693/5694/5698, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Performs a self-test on the NI-RFSA device and returns the test results. + + This method performs a simple series of tests to ensure that the NI-RFSA device is powered up and responding. + + This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSA device must be in the Configuration state before you call this method. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Device Warm-Up `_ + + Returns: + self_test_result (int): This parameter contains the value returned from the NI-RFSA device self test. + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Self test passed | + +----------------+------------------+ + | 1 | Self test failed | + +----------------+------------------+ + + self_test_message (str): Returns the self-test response string from the NI-RFSA device. For an explanation of the string contents, refer to the **status** parameter of this method. + + You must pass a ViChar array with at least 256 bytes. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/nirfsa/nirfsa/spectrum_info_type.py b/generated/nirfsa/nirfsa/spectrum_info_type.py new file mode 100644 index 0000000000..33c736abff --- /dev/null +++ b/generated/nirfsa/nirfsa/spectrum_info_type.py @@ -0,0 +1,112 @@ +import ctypes +import nirfsa._visatype + + +# This class is an internal ctypes implementation detail that corresponds to +# niRFSA_spectrumInfo in the C API +class struct_niRFSA_spectrumInfo(ctypes.Structure): # noqa N801 + _pack_ = 8 + _fields_ = [ + ('initial_frequency', nirfsa._visatype.ViReal64), + ('frequency_increment', nirfsa._visatype.ViReal64), + ('number_of_spectral_lines', nirfsa._visatype.ViInt32), + ('reserved1', nirfsa._visatype.ViReal64), + ('reserved2', nirfsa._visatype.ViReal64), + ('reserved3', nirfsa._visatype.ViReal64), + ('reserved4', nirfsa._visatype.ViReal64), + ('reserved5', nirfsa._visatype.ViReal64), + ] + + def __init__(self, data=None, initial_frequency=0.0, frequency_increment=0.0, + number_of_spectral_lines=0, reserved1=0.0, reserved2=0.0, + reserved3=0.0, reserved4=0.0, reserved5=0.0): + super(ctypes.Structure, self).__init__() + if data is not None: + self.initial_frequency = data.initial_frequency + self.frequency_increment = data.frequency_increment + self.number_of_spectral_lines = data.number_of_spectral_lines + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + self.reserved3 = data.reserved3 + self.reserved4 = data.reserved4 + self.reserved5 = data.reserved5 + else: + self.initial_frequency = initial_frequency + self.frequency_increment = frequency_increment + self.number_of_spectral_lines = number_of_spectral_lines + self.reserved1 = reserved1 + self.reserved2 = reserved2 + self.reserved3 = reserved3 + self.reserved4 = reserved4 + self.reserved5 = reserved5 + + +class SpectrumInfo: + """Python-friendly wrapper for niRFSA spectrum info.""" + + def __init__(self, data=None, initial_frequency=0.0, frequency_increment=0.0, + number_of_spectral_lines=0, reserved1=0.0, reserved2=0.0, + reserved3=0.0, reserved4=0.0, reserved5=0.0): + if data is not None: + self.initial_frequency = data.initial_frequency + self.frequency_increment = data.frequency_increment + self.number_of_spectral_lines = data.number_of_spectral_lines + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + self.reserved3 = data.reserved3 + self.reserved4 = data.reserved4 + self.reserved5 = data.reserved5 + else: + self.initial_frequency = initial_frequency + self.frequency_increment = frequency_increment + self.number_of_spectral_lines = number_of_spectral_lines + self.reserved1 = reserved1 + self.reserved2 = reserved2 + self.reserved3 = reserved3 + self.reserved4 = reserved4 + self.reserved5 = reserved5 + + def _create_copy(self, target_class): + try: + return target_class( + initial_frequency=self.initial_frequency, + frequency_increment=self.frequency_increment, + number_of_spectral_lines=self.number_of_spectral_lines, + reserved1=self.reserved1, + reserved2=self.reserved2, + reserved3=self.reserved3, + reserved4=self.reserved4, + reserved5=self.reserved5, + ) + except TypeError: + return target_class(data=self) + + def __repr__(self): + return "{}.{}(initial_frequency={}, frequency_increment={}, number_of_spectral_lines={}, reserved1={}, reserved2={}, reserved3={}, reserved4={}, reserved5={})".format( + self.__class__.__module__, + self.__class__.__qualname__, + self.initial_frequency, + self.frequency_increment, + self.number_of_spectral_lines, + self.reserved1, + self.reserved2, + self.reserved3, + self.reserved4, + self.reserved5, + ) + + def __str__(self): + return self.__repr__() + + +def _populate_samples_info(spectrum_info, sample_data): + '''Chunk up flat array of sample_data and copy each chunk into individual SpectrumInfo instance + + Args: + spectrum_info (SpectrumInfo): SpectrumInfo class instance + + sample_data (Iterable of float): Spectrum sample data + ''' + start = 0 + end = start + spectrum_info.number_of_spectral_lines + spectrum_info.samples = sample_data[start:end] diff --git a/generated/nirfsa/nirfsa/unit_tests/_matchers.py b/generated/nirfsa/nirfsa/unit_tests/_matchers.py new file mode 100644 index 0000000000..6236713ee1 --- /dev/null +++ b/generated/nirfsa/nirfsa/unit_tests/_matchers.py @@ -0,0 +1,369 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nirfsa._complextype as _complextype +import nirfsa._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +def _compare_complex_number_arrays(expected, actual): + for i in range(expected.expected_size): + expected_value = expected.expected_data[i] + actual_value = actual[i] + if expected_value.real != actual_value.real or expected_value.imag != actual_value.imag: + return False + return True + + +class NIComplexNumberPointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexNumber) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexNumberPointerMatcher({self.expected_data})" + + +class NIComplexNumberF32PointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexNumberF32) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexNumberF32PointerMatcher({self.expected_data})" + + +class NIComplexI16PointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexI16) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexI16PointerMatcher({self.expected_data})" + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nirfsa/nirfsa/unit_tests/_mock_helper.py b/generated/nirfsa/nirfsa/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..579b09b471 --- /dev/null +++ b/generated/nirfsa/nirfsa/unit_tests/_mock_helper.py @@ -0,0 +1,1043 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['Abort'] = {} + self._defaults['Abort']['return'] = 0 + self._defaults['ChangeExternalCalibrationPassword'] = {} + self._defaults['ChangeExternalCalibrationPassword']['return'] = 0 + self._defaults['CheckAcquisitionStatus'] = {} + self._defaults['CheckAcquisitionStatus']['return'] = 0 + self._defaults['CheckAcquisitionStatus']['isDone'] = None + self._defaults['ClearSelfCalibrateRange'] = {} + self._defaults['ClearSelfCalibrateRange']['return'] = 0 + self._defaults['Commit'] = {} + self._defaults['Commit']['return'] = 0 + self._defaults['ConfigureDeembeddingTableInterpolationLinear'] = {} + self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] = 0 + self._defaults['ConfigureDeembeddingTableInterpolationNearest'] = {} + self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] = 0 + self._defaults['ConfigureDeembeddingTableInterpolationSpline'] = {} + self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] = 0 + self._defaults['ConfigureDigitalEdgeAdvanceTrigger'] = {} + self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] = 0 + self._defaults['ConfigureDigitalEdgeRefTrigger'] = {} + self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] = 0 + self._defaults['ConfigureDigitalEdgeStartTrigger'] = {} + self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] = 0 + self._defaults['ConfigureIQPowerEdgeRefTrigger'] = {} + self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] = 0 + self._defaults['ConfigureRefClock'] = {} + self._defaults['ConfigureRefClock']['return'] = 0 + self._defaults['ConfigureSoftwareEdgeAdvanceTrigger'] = {} + self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] = 0 + self._defaults['ConfigureSoftwareEdgeRefTrigger'] = {} + self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] = 0 + self._defaults['ConfigureSoftwareEdgeStartTrigger'] = {} + self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] = 0 + self._defaults['ConfigureSpectrumFrequencyCenterSpan'] = {} + self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] = 0 + self._defaults['ConfigureSpectrumFrequencyStartStop'] = {} + self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] = 0 + self._defaults['CreateDeembeddingSparameterTableArray'] = {} + self._defaults['CreateDeembeddingSparameterTableArray']['return'] = 0 + self._defaults['CreateDeembeddingSparameterTableS2PFile'] = {} + self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] = 0 + self._defaults['DeleteAllDeembeddingTables'] = {} + self._defaults['DeleteAllDeembeddingTables']['return'] = 0 + self._defaults['DeleteDeembeddingTable'] = {} + self._defaults['DeleteDeembeddingTable']['return'] = 0 + self._defaults['DisableAdvanceTrigger'] = {} + self._defaults['DisableAdvanceTrigger']['return'] = 0 + self._defaults['DisableRefTrigger'] = {} + self._defaults['DisableRefTrigger']['return'] = 0 + self._defaults['DisableStartTrigger'] = {} + self._defaults['DisableStartTrigger']['return'] = 0 + self._defaults['EnableSessionAccess'] = {} + self._defaults['EnableSessionAccess']['return'] = 0 + self._defaults['ErrorMessage'] = {} + self._defaults['ErrorMessage']['return'] = 0 + self._defaults['ErrorMessage']['errorMessage'] = None + self._defaults['FetchIQMultiRecordComplexF32'] = {} + self._defaults['FetchIQMultiRecordComplexF32']['return'] = 0 + self._defaults['FetchIQMultiRecordComplexF32']['wfmInfo'] = None + self._defaults['FetchIQMultiRecordComplexF64'] = {} + self._defaults['FetchIQMultiRecordComplexF64']['return'] = 0 + self._defaults['FetchIQMultiRecordComplexF64']['wfmInfo'] = None + self._defaults['FetchIQMultiRecordComplexI16'] = {} + self._defaults['FetchIQMultiRecordComplexI16']['return'] = 0 + self._defaults['FetchIQMultiRecordComplexI16']['wfmInfo'] = None + self._defaults['FetchIQSingleRecordComplexF32'] = {} + self._defaults['FetchIQSingleRecordComplexF32']['return'] = 0 + self._defaults['FetchIQSingleRecordComplexF32']['wfmInfo'] = None + self._defaults['FetchIQSingleRecordComplexF64'] = {} + self._defaults['FetchIQSingleRecordComplexF64']['return'] = 0 + self._defaults['FetchIQSingleRecordComplexF64']['wfmInfo'] = None + self._defaults['FetchIQSingleRecordComplexI16'] = {} + self._defaults['FetchIQSingleRecordComplexI16']['return'] = 0 + self._defaults['FetchIQSingleRecordComplexI16']['wfmInfo'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['value'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['value'] = None + self._defaults['GetAttributeViInt64'] = {} + self._defaults['GetAttributeViInt64']['return'] = 0 + self._defaults['GetAttributeViInt64']['value'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['value'] = None + self._defaults['GetAttributeViSession'] = {} + self._defaults['GetAttributeViSession']['return'] = 0 + self._defaults['GetAttributeViSession']['value'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['value'] = None + self._defaults['GetDeembeddingSparameters'] = {} + self._defaults['GetDeembeddingSparameters']['return'] = 0 + self._defaults['GetDeembeddingSparameters']['sparameters'] = None + self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] = None + self._defaults['GetDeembeddingSparameters']['numberOfPorts'] = None + self._defaults['GetDeembeddingTableNumberOfPorts'] = {} + self._defaults['GetDeembeddingTableNumberOfPorts']['return'] = 0 + self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['errorDescription'] = None + self._defaults['GetExtCalLastDateAndTime'] = {} + self._defaults['GetExtCalLastDateAndTime']['return'] = 0 + self._defaults['GetExtCalLastDateAndTime']['year'] = None + self._defaults['GetExtCalLastDateAndTime']['month'] = None + self._defaults['GetExtCalLastDateAndTime']['day'] = None + self._defaults['GetExtCalLastDateAndTime']['hour'] = None + self._defaults['GetExtCalLastDateAndTime']['minute'] = None + self._defaults['GetExtCalRecommendedInterval'] = {} + self._defaults['GetExtCalRecommendedInterval']['return'] = 0 + self._defaults['GetExtCalRecommendedInterval']['months'] = None + self._defaults['GetFetchBacklog'] = {} + self._defaults['GetFetchBacklog']['return'] = 0 + self._defaults['GetFetchBacklog']['backlog'] = None + self._defaults['GetFrequencyResponse'] = {} + self._defaults['GetFrequencyResponse']['return'] = 0 + self._defaults['GetFrequencyResponse']['numberOfFrequencies'] = None + self._defaults['GetFrequencyResponse']['frequencies'] = None + self._defaults['GetFrequencyResponse']['magnitudeResponse'] = None + self._defaults['GetFrequencyResponse']['phaseResponse'] = None + self._defaults['GetScalingCoefficients'] = {} + self._defaults['GetScalingCoefficients']['return'] = 0 + self._defaults['GetScalingCoefficients']['numberOfCoefficientSets'] = None + self._defaults['GetScalingCoefficients']['coefficientInfo'] = None + self._defaults['GetSelfCalLastDateAndTime'] = {} + self._defaults['GetSelfCalLastDateAndTime']['return'] = 0 + self._defaults['GetSelfCalLastDateAndTime']['year'] = None + self._defaults['GetSelfCalLastDateAndTime']['month'] = None + self._defaults['GetSelfCalLastDateAndTime']['day'] = None + self._defaults['GetSelfCalLastDateAndTime']['hour'] = None + self._defaults['GetSelfCalLastDateAndTime']['minute'] = None + self._defaults['GetSelfCalLastTemp'] = {} + self._defaults['GetSelfCalLastTemp']['return'] = 0 + self._defaults['GetSelfCalLastTemp']['temperature'] = None + self._defaults['GetTerminalName'] = {} + self._defaults['GetTerminalName']['return'] = 0 + self._defaults['GetTerminalName']['terminalName'] = None + self._defaults['InitWithOptions'] = {} + self._defaults['InitWithOptions']['return'] = 0 + self._defaults['InitWithOptions']['newVi'] = None + self._defaults['Initiate'] = {} + self._defaults['Initiate']['return'] = 0 + self._defaults['IsSelfCalValid'] = {} + self._defaults['IsSelfCalValid']['return'] = 0 + self._defaults['IsSelfCalValid']['selfCalValid'] = None + self._defaults['IsSelfCalValid']['validSteps'] = None + self._defaults['LoadConfigurationsFromFile'] = {} + self._defaults['LoadConfigurationsFromFile']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['PerformThermalCorrection'] = {} + self._defaults['PerformThermalCorrection']['return'] = 0 + self._defaults['ReadIQSingleRecordComplexF64'] = {} + self._defaults['ReadIQSingleRecordComplexF64']['return'] = 0 + self._defaults['ReadIQSingleRecordComplexF64']['wfmInfo'] = None + self._defaults['ReadPowerSpectrumF32'] = {} + self._defaults['ReadPowerSpectrumF32']['return'] = 0 + self._defaults['ReadPowerSpectrumF32']['spectrumInfo'] = None + self._defaults['ReadPowerSpectrumF64'] = {} + self._defaults['ReadPowerSpectrumF64']['return'] = 0 + self._defaults['ReadPowerSpectrumF64']['spectrumInfo'] = None + self._defaults['ResetDevice'] = {} + self._defaults['ResetDevice']['return'] = 0 + self._defaults['ResetWithOptions'] = {} + self._defaults['ResetWithOptions']['return'] = 0 + self._defaults['SaveConfigurationsToFile'] = {} + self._defaults['SaveConfigurationsToFile']['return'] = 0 + self._defaults['SelfCalibrateRange'] = {} + self._defaults['SelfCalibrateRange']['return'] = 0 + self._defaults['SendSoftwareEdgeTrigger'] = {} + self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViInt64'] = {} + self._defaults['SetAttributeViInt64']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViSession'] = {} + self._defaults['SetAttributeViSession']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niRFSA_Abort(self, vi): # noqa: N802 + if self._defaults['Abort']['return'] != 0: + return self._defaults['Abort']['return'] + return self._defaults['Abort']['return'] + + def niRFSA_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 + if self._defaults['ChangeExternalCalibrationPassword']['return'] != 0: + return self._defaults['ChangeExternalCalibrationPassword']['return'] + return self._defaults['ChangeExternalCalibrationPassword']['return'] + + def niRFSA_CheckAcquisitionStatus(self, vi, is_done): # noqa: N802 + if self._defaults['CheckAcquisitionStatus']['return'] != 0: + return self._defaults['CheckAcquisitionStatus']['return'] + # is_done + if self._defaults['CheckAcquisitionStatus']['isDone'] is None: + raise MockFunctionCallError("niRFSA_CheckAcquisitionStatus", param='isDone') + if is_done is not None: + is_done.contents.value = self._defaults['CheckAcquisitionStatus']['isDone'] + return self._defaults['CheckAcquisitionStatus']['return'] + + def niRFSA_ClearSelfCalibrateRange(self, vi): # noqa: N802 + if self._defaults['ClearSelfCalibrateRange']['return'] != 0: + return self._defaults['ClearSelfCalibrateRange']['return'] + return self._defaults['ClearSelfCalibrateRange']['return'] + + def niRFSA_Commit(self, vi): # noqa: N802 + if self._defaults['Commit']['return'] != 0: + return self._defaults['Commit']['return'] + return self._defaults['Commit']['return'] + + def niRFSA_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 + if self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] != 0: + return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] + return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] + + def niRFSA_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 + if self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] != 0: + return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] + return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] + + def niRFSA_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 + if self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] != 0: + return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] + return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] + + def niRFSA_ConfigureDigitalEdgeAdvanceTrigger(self, vi, source, edge): # noqa: N802 + if self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] != 0: + return self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] + return self._defaults['ConfigureDigitalEdgeAdvanceTrigger']['return'] + + def niRFSA_ConfigureDigitalEdgeRefTrigger(self, vi, source, edge, pretrigger_samples): # noqa: N802 + if self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] != 0: + return self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] + return self._defaults['ConfigureDigitalEdgeRefTrigger']['return'] + + def niRFSA_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 + if self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] != 0: + return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] + return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] + + def niRFSA_ConfigureIQPowerEdgeRefTrigger(self, vi, source, level, slope, pretrigger_samples): # noqa: N802 + if self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] != 0: + return self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] + return self._defaults['ConfigureIQPowerEdgeRefTrigger']['return'] + + def niRFSA_ConfigureRefClock(self, vi, clock_source, ref_clock_rate): # noqa: N802 + if self._defaults['ConfigureRefClock']['return'] != 0: + return self._defaults['ConfigureRefClock']['return'] + return self._defaults['ConfigureRefClock']['return'] + + def niRFSA_ConfigureSoftwareEdgeAdvanceTrigger(self, vi): # noqa: N802 + if self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] != 0: + return self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] + return self._defaults['ConfigureSoftwareEdgeAdvanceTrigger']['return'] + + def niRFSA_ConfigureSoftwareEdgeRefTrigger(self, vi, pretrigger_samples): # noqa: N802 + if self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] != 0: + return self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] + return self._defaults['ConfigureSoftwareEdgeRefTrigger']['return'] + + def niRFSA_ConfigureSoftwareEdgeStartTrigger(self, vi): # noqa: N802 + if self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] != 0: + return self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] + return self._defaults['ConfigureSoftwareEdgeStartTrigger']['return'] + + def niRFSA_ConfigureSpectrumFrequencyCenterSpan(self, vi, channel_list, center_frequency, span): # noqa: N802 + if self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] != 0: + return self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] + return self._defaults['ConfigureSpectrumFrequencyCenterSpan']['return'] + + def niRFSA_ConfigureSpectrumFrequencyStartStop(self, vi, channel_list, start_frequency, stop_frequency): # noqa: N802 + if self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] != 0: + return self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] + return self._defaults['ConfigureSpectrumFrequencyStartStop']['return'] + + def niRFSA_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 + if self._defaults['CreateDeembeddingSparameterTableArray']['return'] != 0: + return self._defaults['CreateDeembeddingSparameterTableArray']['return'] + return self._defaults['CreateDeembeddingSparameterTableArray']['return'] + + def niRFSA_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + if self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] != 0: + return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] + return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] + + def niRFSA_DeleteAllDeembeddingTables(self, vi): # noqa: N802 + if self._defaults['DeleteAllDeembeddingTables']['return'] != 0: + return self._defaults['DeleteAllDeembeddingTables']['return'] + return self._defaults['DeleteAllDeembeddingTables']['return'] + + def niRFSA_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 + if self._defaults['DeleteDeembeddingTable']['return'] != 0: + return self._defaults['DeleteDeembeddingTable']['return'] + return self._defaults['DeleteDeembeddingTable']['return'] + + def niRFSA_DisableAdvanceTrigger(self, vi): # noqa: N802 + if self._defaults['DisableAdvanceTrigger']['return'] != 0: + return self._defaults['DisableAdvanceTrigger']['return'] + return self._defaults['DisableAdvanceTrigger']['return'] + + def niRFSA_DisableRefTrigger(self, vi): # noqa: N802 + if self._defaults['DisableRefTrigger']['return'] != 0: + return self._defaults['DisableRefTrigger']['return'] + return self._defaults['DisableRefTrigger']['return'] + + def niRFSA_DisableStartTrigger(self, vi): # noqa: N802 + if self._defaults['DisableStartTrigger']['return'] != 0: + return self._defaults['DisableStartTrigger']['return'] + return self._defaults['DisableStartTrigger']['return'] + + def niRFSA_EnableSessionAccess(self, vi, enable): # noqa: N802 + if self._defaults['EnableSessionAccess']['return'] != 0: + return self._defaults['EnableSessionAccess']['return'] + return self._defaults['EnableSessionAccess']['return'] + + def niRFSA_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['ErrorMessage']['return'] != 0: + return self._defaults['ErrorMessage']['return'] + # error_message + if self._defaults['ErrorMessage']['errorMessage'] is None: + raise MockFunctionCallError("niRFSA_ErrorMessage", param='errorMessage') + test_value = self._defaults['ErrorMessage']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['ErrorMessage']['return'] + + def niRFSA_FetchIQMultiRecordComplexF32(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 + if self._defaults['FetchIQMultiRecordComplexF32']['return'] != 0: + return self._defaults['FetchIQMultiRecordComplexF32']['return'] + # wfm_info + if self._defaults['FetchIQMultiRecordComplexF32']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF32", param='wfmInfo') + for field in self._defaults['FetchIQMultiRecordComplexF32']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQMultiRecordComplexF32']['wfm_info'], field_name)) + return self._defaults['FetchIQMultiRecordComplexF32']['return'] + + def niRFSA_FetchIQMultiRecordComplexF64(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 + if self._defaults['FetchIQMultiRecordComplexF64']['return'] != 0: + return self._defaults['FetchIQMultiRecordComplexF64']['return'] + # wfm_info + if self._defaults['FetchIQMultiRecordComplexF64']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF64", param='wfmInfo') + for field in self._defaults['FetchIQMultiRecordComplexF64']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQMultiRecordComplexF64']['wfm_info'], field_name)) + return self._defaults['FetchIQMultiRecordComplexF64']['return'] + + def niRFSA_FetchIQMultiRecordComplexI16(self, vi, channel_list, starting_record, number_of_records, number_of_samples, timeout, iq_data_arrays, wfm_info): # noqa: N802 + if self._defaults['FetchIQMultiRecordComplexI16']['return'] != 0: + return self._defaults['FetchIQMultiRecordComplexI16']['return'] + # wfm_info + if self._defaults['FetchIQMultiRecordComplexI16']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexI16", param='wfmInfo') + for field in self._defaults['FetchIQMultiRecordComplexI16']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQMultiRecordComplexI16']['wfm_info'], field_name)) + return self._defaults['FetchIQMultiRecordComplexI16']['return'] + + def niRFSA_FetchIQSingleRecordComplexF32(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 + if self._defaults['FetchIQSingleRecordComplexF32']['return'] != 0: + return self._defaults['FetchIQSingleRecordComplexF32']['return'] + # wfm_info + if self._defaults['FetchIQSingleRecordComplexF32']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF32", param='wfmInfo') + for field in self._defaults['FetchIQSingleRecordComplexF32']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQSingleRecordComplexF32']['wfm_info'], field_name)) + return self._defaults['FetchIQSingleRecordComplexF32']['return'] + + def niRFSA_FetchIQSingleRecordComplexF64(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 + if self._defaults['FetchIQSingleRecordComplexF64']['return'] != 0: + return self._defaults['FetchIQSingleRecordComplexF64']['return'] + # wfm_info + if self._defaults['FetchIQSingleRecordComplexF64']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF64", param='wfmInfo') + for field in self._defaults['FetchIQSingleRecordComplexF64']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQSingleRecordComplexF64']['wfm_info'], field_name)) + return self._defaults['FetchIQSingleRecordComplexF64']['return'] + + def niRFSA_FetchIQSingleRecordComplexI16(self, vi, channel_list, record_number, number_of_samples, timeout, iq_data_array, wfm_info): # noqa: N802 + if self._defaults['FetchIQSingleRecordComplexI16']['return'] != 0: + return self._defaults['FetchIQSingleRecordComplexI16']['return'] + # wfm_info + if self._defaults['FetchIQSingleRecordComplexI16']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexI16", param='wfmInfo') + for field in self._defaults['FetchIQSingleRecordComplexI16']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['FetchIQSingleRecordComplexI16']['wfm_info'], field_name)) + return self._defaults['FetchIQSingleRecordComplexI16']['return'] + + def niRFSA_GetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # value + if self._defaults['GetAttributeViBoolean']['value'] is None: + raise MockFunctionCallError("niRFSA_GetAttributeViBoolean", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViBoolean']['value'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niRFSA_GetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # value + if self._defaults['GetAttributeViInt32']['value'] is None: + raise MockFunctionCallError("niRFSA_GetAttributeViInt32", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt32']['value'] + return self._defaults['GetAttributeViInt32']['return'] + + def niRFSA_GetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViInt64']['return'] != 0: + return self._defaults['GetAttributeViInt64']['return'] + # value + if self._defaults['GetAttributeViInt64']['value'] is None: + raise MockFunctionCallError("niRFSA_GetAttributeViInt64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt64']['value'] + return self._defaults['GetAttributeViInt64']['return'] + + def niRFSA_GetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # value + if self._defaults['GetAttributeViReal64']['value'] is None: + raise MockFunctionCallError("niRFSA_GetAttributeViReal64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViReal64']['value'] + return self._defaults['GetAttributeViReal64']['return'] + + def niRFSA_GetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViSession']['return'] != 0: + return self._defaults['GetAttributeViSession']['return'] + # value + if self._defaults['GetAttributeViSession']['value'] is None: + raise MockFunctionCallError("niRFSA_GetAttributeViSession", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViSession']['value'] + return self._defaults['GetAttributeViSession']['return'] + + def niRFSA_GetAttributeViString(self, vi, channel_name, attribute_id, buf_size, value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # value + if self._defaults['GetAttributeViString']['value'] is None: + raise MockFunctionCallError("niRFSA_GetAttributeViString", param='value') + if buf_size.value == 0: + return len(self._defaults['GetAttributeViString']['value']) + value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niRFSA_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 + if self._defaults['GetDeembeddingSparameters']['return'] != 0: + return self._defaults['GetDeembeddingSparameters']['return'] + # sparameters + if self._defaults['GetDeembeddingSparameters']['sparameters'] is None: + raise MockFunctionCallError("niRFSA_GetDeembeddingSparameters", param='sparameters') + test_value = self._defaults['GetDeembeddingSparameters']['sparameters'] + try: + sparameters_ref = sparameters.contents + except AttributeError: + sparameters_ref = sparameters + assert len(sparameters_ref) >= len(test_value) + for i in range(len(test_value)): + sparameters_ref[i] = test_value[i] + # number_of_sparameters + if self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] is None: + raise MockFunctionCallError("niRFSA_GetDeembeddingSparameters", param='numberOfSparameters') + if number_of_sparameters is not None: + number_of_sparameters.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] + # number_of_ports + if self._defaults['GetDeembeddingSparameters']['numberOfPorts'] is None: + raise MockFunctionCallError("niRFSA_GetDeembeddingSparameters", param='numberOfPorts') + if number_of_ports is not None: + number_of_ports.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfPorts'] + return self._defaults['GetDeembeddingSparameters']['return'] + + def niRFSA_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 + if self._defaults['GetDeembeddingTableNumberOfPorts']['return'] != 0: + return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] + # number_of_ports + if self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] is None: + raise MockFunctionCallError("niRFSA_GetDeembeddingTableNumberOfPorts", param='numberOfPorts') + if number_of_ports is not None: + number_of_ports.contents.value = self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] + return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] + + def niRFSA_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niRFSA_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # error_description + if self._defaults['GetError']['errorDescription'] is None: + raise MockFunctionCallError("niRFSA_GetError", param='errorDescription') + if error_description_buffer_size.value == 0: + return len(self._defaults['GetError']['errorDescription']) + error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') + return self._defaults['GetError']['return'] + + def niRFSA_GetExtCalLastDateAndTime(self, vi, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetExtCalLastDateAndTime']['return'] != 0: + return self._defaults['GetExtCalLastDateAndTime']['return'] + # year + if self._defaults['GetExtCalLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetExtCalLastDateAndTime']['year'] + # month + if self._defaults['GetExtCalLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetExtCalLastDateAndTime']['month'] + # day + if self._defaults['GetExtCalLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetExtCalLastDateAndTime']['day'] + # hour + if self._defaults['GetExtCalLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetExtCalLastDateAndTime']['hour'] + # minute + if self._defaults['GetExtCalLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetExtCalLastDateAndTime']['minute'] + return self._defaults['GetExtCalLastDateAndTime']['return'] + + def niRFSA_GetExtCalRecommendedInterval(self, vi, months): # noqa: N802 + if self._defaults['GetExtCalRecommendedInterval']['return'] != 0: + return self._defaults['GetExtCalRecommendedInterval']['return'] + # months + if self._defaults['GetExtCalRecommendedInterval']['months'] is None: + raise MockFunctionCallError("niRFSA_GetExtCalRecommendedInterval", param='months') + if months is not None: + months.contents.value = self._defaults['GetExtCalRecommendedInterval']['months'] + return self._defaults['GetExtCalRecommendedInterval']['return'] + + def niRFSA_GetFetchBacklog(self, vi, channel_list, record_number, backlog): # noqa: N802 + if self._defaults['GetFetchBacklog']['return'] != 0: + return self._defaults['GetFetchBacklog']['return'] + # backlog + if self._defaults['GetFetchBacklog']['backlog'] is None: + raise MockFunctionCallError("niRFSA_GetFetchBacklog", param='backlog') + if backlog is not None: + backlog.contents.value = self._defaults['GetFetchBacklog']['backlog'] + return self._defaults['GetFetchBacklog']['return'] + + def niRFSA_GetFrequencyResponse(self, vi, channel_list, buffer_size, frequencies, magnitude_response, phase_response, number_of_frequencies): # noqa: N802 + if self._defaults['GetFrequencyResponse']['return'] != 0: + return self._defaults['GetFrequencyResponse']['return'] + # number_of_frequencies + if self._defaults['GetFrequencyResponse']['numberOfFrequencies'] is None: + raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='numberOfFrequencies') + if number_of_frequencies is not None: + number_of_frequencies.contents.value = self._defaults['GetFrequencyResponse']['numberOfFrequencies'] + # frequencies + if self._defaults['GetFrequencyResponse']['frequencies'] is None: + raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='frequencies') + if buffer_size.value == 0: + return len(self._defaults['GetFrequencyResponse']['frequencies']) + try: + frequencies_ref = frequencies.contents + except AttributeError: + frequencies_ref = frequencies + for i in range(len(self._defaults['GetFrequencyResponse']['frequencies'])): + frequencies_ref[i] = self._defaults['GetFrequencyResponse']['frequencies'][i] + # magnitude_response + if self._defaults['GetFrequencyResponse']['magnitudeResponse'] is None: + raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='magnitudeResponse') + if buffer_size.value == 0: + return len(self._defaults['GetFrequencyResponse']['magnitudeResponse']) + try: + magnitude_response_ref = magnitude_response.contents + except AttributeError: + magnitude_response_ref = magnitude_response + for i in range(len(self._defaults['GetFrequencyResponse']['magnitudeResponse'])): + magnitude_response_ref[i] = self._defaults['GetFrequencyResponse']['magnitudeResponse'][i] + # phase_response + if self._defaults['GetFrequencyResponse']['phaseResponse'] is None: + raise MockFunctionCallError("niRFSA_GetFrequencyResponse", param='phaseResponse') + if buffer_size.value == 0: + return len(self._defaults['GetFrequencyResponse']['phaseResponse']) + try: + phase_response_ref = phase_response.contents + except AttributeError: + phase_response_ref = phase_response + for i in range(len(self._defaults['GetFrequencyResponse']['phaseResponse'])): + phase_response_ref[i] = self._defaults['GetFrequencyResponse']['phaseResponse'][i] + return self._defaults['GetFrequencyResponse']['return'] + + def niRFSA_GetScalingCoefficients(self, vi, channel_list, array_size, coefficient_info, number_of_coefficient_sets): # noqa: N802 + if self._defaults['GetScalingCoefficients']['return'] != 0: + return self._defaults['GetScalingCoefficients']['return'] + # number_of_coefficient_sets + if self._defaults['GetScalingCoefficients']['numberOfCoefficientSets'] is None: + raise MockFunctionCallError("niRFSA_GetScalingCoefficients", param='numberOfCoefficientSets') + if number_of_coefficient_sets is not None: + number_of_coefficient_sets.contents.value = self._defaults['GetScalingCoefficients']['numberOfCoefficientSets'] + # coefficient_info + if self._defaults['GetScalingCoefficients']['coefficientInfo'] is None: + raise MockFunctionCallError("niRFSA_GetScalingCoefficients", param='coefficientInfo') + if array_size.value == 0: + return len(self._defaults['GetScalingCoefficients']['coefficientInfo']) + try: + coefficient_info_ref = coefficient_info.contents + except AttributeError: + coefficient_info_ref = coefficient_info + for i in range(len(self._defaults['GetScalingCoefficients']['coefficientInfo'])): + coefficient_info_ref[i] = self._defaults['GetScalingCoefficients']['coefficientInfo'][i] + return self._defaults['GetScalingCoefficients']['return'] + + def niRFSA_GetSelfCalLastDateAndTime(self, vi, self_calibration_step, year, month, day, hour, minute): # noqa: N802 + if self._defaults['GetSelfCalLastDateAndTime']['return'] != 0: + return self._defaults['GetSelfCalLastDateAndTime']['return'] + # year + if self._defaults['GetSelfCalLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetSelfCalLastDateAndTime']['year'] + # month + if self._defaults['GetSelfCalLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetSelfCalLastDateAndTime']['month'] + # day + if self._defaults['GetSelfCalLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetSelfCalLastDateAndTime']['day'] + # hour + if self._defaults['GetSelfCalLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetSelfCalLastDateAndTime']['hour'] + # minute + if self._defaults['GetSelfCalLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetSelfCalLastDateAndTime']['minute'] + return self._defaults['GetSelfCalLastDateAndTime']['return'] + + def niRFSA_GetSelfCalLastTemp(self, vi, self_calibration_step, temperature): # noqa: N802 + if self._defaults['GetSelfCalLastTemp']['return'] != 0: + return self._defaults['GetSelfCalLastTemp']['return'] + # temperature + if self._defaults['GetSelfCalLastTemp']['temperature'] is None: + raise MockFunctionCallError("niRFSA_GetSelfCalLastTemp", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetSelfCalLastTemp']['temperature'] + return self._defaults['GetSelfCalLastTemp']['return'] + + def niRFSA_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 + if self._defaults['GetTerminalName']['return'] != 0: + return self._defaults['GetTerminalName']['return'] + # terminal_name + if self._defaults['GetTerminalName']['terminalName'] is None: + raise MockFunctionCallError("niRFSA_GetTerminalName", param='terminalName') + if buffer_size.value == 0: + return len(self._defaults['GetTerminalName']['terminalName']) + terminal_name.value = self._defaults['GetTerminalName']['terminalName'].encode('ascii') + return self._defaults['GetTerminalName']['return'] + + def niRFSA_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 + if self._defaults['InitWithOptions']['return'] != 0: + return self._defaults['InitWithOptions']['return'] + # new_vi + if self._defaults['InitWithOptions']['newVi'] is None: + raise MockFunctionCallError("niRFSA_InitWithOptions", param='newVi') + if new_vi is not None: + new_vi.contents.value = self._defaults['InitWithOptions']['newVi'] + return self._defaults['InitWithOptions']['return'] + + def niRFSA_Initiate(self, vi): # noqa: N802 + if self._defaults['Initiate']['return'] != 0: + return self._defaults['Initiate']['return'] + return self._defaults['Initiate']['return'] + + def niRFSA_IsSelfCalValid(self, vi, self_cal_valid, valid_steps): # noqa: N802 + if self._defaults['IsSelfCalValid']['return'] != 0: + return self._defaults['IsSelfCalValid']['return'] + # self_cal_valid + if self._defaults['IsSelfCalValid']['selfCalValid'] is None: + raise MockFunctionCallError("niRFSA_IsSelfCalValid", param='selfCalValid') + if self_cal_valid is not None: + self_cal_valid.contents.value = self._defaults['IsSelfCalValid']['selfCalValid'] + # valid_steps + if self._defaults['IsSelfCalValid']['validSteps'] is None: + raise MockFunctionCallError("niRFSA_IsSelfCalValid", param='validSteps') + if valid_steps is not None: + valid_steps.contents.value = self._defaults['IsSelfCalValid']['validSteps'] + return self._defaults['IsSelfCalValid']['return'] + + def niRFSA_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 + if self._defaults['LoadConfigurationsFromFile']['return'] != 0: + return self._defaults['LoadConfigurationsFromFile']['return'] + return self._defaults['LoadConfigurationsFromFile']['return'] + + def niRFSA_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niRFSA_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niRFSA_PerformThermalCorrection(self, vi): # noqa: N802 + if self._defaults['PerformThermalCorrection']['return'] != 0: + return self._defaults['PerformThermalCorrection']['return'] + return self._defaults['PerformThermalCorrection']['return'] + + def niRFSA_ReadIQSingleRecordComplexF64(self, vi, channel_list, timeout, iq_data_array, data_array_size, wfm_info): # noqa: N802 + if self._defaults['ReadIQSingleRecordComplexF64']['return'] != 0: + return self._defaults['ReadIQSingleRecordComplexF64']['return'] + # wfm_info + if self._defaults['ReadIQSingleRecordComplexF64']['wfmInfo'] is None: + raise MockFunctionCallError("niRFSA_ReadIQSingleRecordComplexF64", param='wfmInfo') + for field in self._defaults['ReadIQSingleRecordComplexF64']['wfm_info']._fields_: + field_name = field[0] + setattr(wfm_info.contents, field_name, getattr(self._defaults['ReadIQSingleRecordComplexF64']['wfm_info'], field_name)) + return self._defaults['ReadIQSingleRecordComplexF64']['return'] + + def niRFSA_ReadPowerSpectrumF32(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 + if self._defaults['ReadPowerSpectrumF32']['return'] != 0: + return self._defaults['ReadPowerSpectrumF32']['return'] + # spectrum_info + if self._defaults['ReadPowerSpectrumF32']['spectrumInfo'] is None: + raise MockFunctionCallError("niRFSA_ReadPowerSpectrumF32", param='spectrumInfo') + for field in self._defaults['ReadPowerSpectrumF32']['spectrum_info']._fields_: + field_name = field[0] + setattr(spectrum_info.contents, field_name, getattr(self._defaults['ReadPowerSpectrumF32']['spectrum_info'], field_name)) + return self._defaults['ReadPowerSpectrumF32']['return'] + + def niRFSA_ReadPowerSpectrumF64(self, vi, channel_list, timeout, power_spectrum_data_array, data_array_size, spectrum_info): # noqa: N802 + if self._defaults['ReadPowerSpectrumF64']['return'] != 0: + return self._defaults['ReadPowerSpectrumF64']['return'] + # spectrum_info + if self._defaults['ReadPowerSpectrumF64']['spectrumInfo'] is None: + raise MockFunctionCallError("niRFSA_ReadPowerSpectrumF64", param='spectrumInfo') + for field in self._defaults['ReadPowerSpectrumF64']['spectrum_info']._fields_: + field_name = field[0] + setattr(spectrum_info.contents, field_name, getattr(self._defaults['ReadPowerSpectrumF64']['spectrum_info'], field_name)) + return self._defaults['ReadPowerSpectrumF64']['return'] + + def niRFSA_ResetDevice(self, vi): # noqa: N802 + if self._defaults['ResetDevice']['return'] != 0: + return self._defaults['ResetDevice']['return'] + return self._defaults['ResetDevice']['return'] + + def niRFSA_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 + if self._defaults['ResetWithOptions']['return'] != 0: + return self._defaults['ResetWithOptions']['return'] + return self._defaults['ResetWithOptions']['return'] + + def niRFSA_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 + if self._defaults['SaveConfigurationsToFile']['return'] != 0: + return self._defaults['SaveConfigurationsToFile']['return'] + return self._defaults['SaveConfigurationsToFile']['return'] + + def niRFSA_SelfCalibrateRange(self, vi, steps_to_omit, minimum_frequency, maximum_frequency, minimum_reference_level, maximum_reference_level): # noqa: N802 + if self._defaults['SelfCalibrateRange']['return'] != 0: + return self._defaults['SelfCalibrateRange']['return'] + return self._defaults['SelfCalibrateRange']['return'] + + def niRFSA_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 + if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: + return self._defaults['SendSoftwareEdgeTrigger']['return'] + return self._defaults['SendSoftwareEdgeTrigger']['return'] + + def niRFSA_SetAttributeViBoolean(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niRFSA_SetAttributeViInt32(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niRFSA_SetAttributeViInt64(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViInt64']['return'] != 0: + return self._defaults['SetAttributeViInt64']['return'] + return self._defaults['SetAttributeViInt64']['return'] + + def niRFSA_SetAttributeViReal64(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niRFSA_SetAttributeViSession(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViSession']['return'] != 0: + return self._defaults['SetAttributeViSession']['return'] + return self._defaults['SetAttributeViSession']['return'] + + def niRFSA_SetAttributeViString(self, vi, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niRFSA_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niRFSA_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niRFSA_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niRFSA_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niRFSA_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niRFSA_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niRFSA_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niRFSA_Abort.side_effect = MockFunctionCallError("niRFSA_Abort") + mock_library.niRFSA_Abort.return_value = 0 + mock_library.niRFSA_ChangeExternalCalibrationPassword.side_effect = MockFunctionCallError("niRFSA_ChangeExternalCalibrationPassword") + mock_library.niRFSA_ChangeExternalCalibrationPassword.return_value = 0 + mock_library.niRFSA_CheckAcquisitionStatus.side_effect = MockFunctionCallError("niRFSA_CheckAcquisitionStatus") + mock_library.niRFSA_CheckAcquisitionStatus.return_value = 0 + mock_library.niRFSA_ClearSelfCalibrateRange.side_effect = MockFunctionCallError("niRFSA_ClearSelfCalibrateRange") + mock_library.niRFSA_ClearSelfCalibrateRange.return_value = 0 + mock_library.niRFSA_Commit.side_effect = MockFunctionCallError("niRFSA_Commit") + mock_library.niRFSA_Commit.return_value = 0 + mock_library.niRFSA_ConfigureDeembeddingTableInterpolationLinear.side_effect = MockFunctionCallError("niRFSA_ConfigureDeembeddingTableInterpolationLinear") + mock_library.niRFSA_ConfigureDeembeddingTableInterpolationLinear.return_value = 0 + mock_library.niRFSA_ConfigureDeembeddingTableInterpolationNearest.side_effect = MockFunctionCallError("niRFSA_ConfigureDeembeddingTableInterpolationNearest") + mock_library.niRFSA_ConfigureDeembeddingTableInterpolationNearest.return_value = 0 + mock_library.niRFSA_ConfigureDeembeddingTableInterpolationSpline.side_effect = MockFunctionCallError("niRFSA_ConfigureDeembeddingTableInterpolationSpline") + mock_library.niRFSA_ConfigureDeembeddingTableInterpolationSpline.return_value = 0 + mock_library.niRFSA_ConfigureDigitalEdgeAdvanceTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureDigitalEdgeAdvanceTrigger") + mock_library.niRFSA_ConfigureDigitalEdgeAdvanceTrigger.return_value = 0 + mock_library.niRFSA_ConfigureDigitalEdgeRefTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureDigitalEdgeRefTrigger") + mock_library.niRFSA_ConfigureDigitalEdgeRefTrigger.return_value = 0 + mock_library.niRFSA_ConfigureDigitalEdgeStartTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureDigitalEdgeStartTrigger") + mock_library.niRFSA_ConfigureDigitalEdgeStartTrigger.return_value = 0 + mock_library.niRFSA_ConfigureIQPowerEdgeRefTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureIQPowerEdgeRefTrigger") + mock_library.niRFSA_ConfigureIQPowerEdgeRefTrigger.return_value = 0 + mock_library.niRFSA_ConfigureRefClock.side_effect = MockFunctionCallError("niRFSA_ConfigureRefClock") + mock_library.niRFSA_ConfigureRefClock.return_value = 0 + mock_library.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureSoftwareEdgeAdvanceTrigger") + mock_library.niRFSA_ConfigureSoftwareEdgeAdvanceTrigger.return_value = 0 + mock_library.niRFSA_ConfigureSoftwareEdgeRefTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureSoftwareEdgeRefTrigger") + mock_library.niRFSA_ConfigureSoftwareEdgeRefTrigger.return_value = 0 + mock_library.niRFSA_ConfigureSoftwareEdgeStartTrigger.side_effect = MockFunctionCallError("niRFSA_ConfigureSoftwareEdgeStartTrigger") + mock_library.niRFSA_ConfigureSoftwareEdgeStartTrigger.return_value = 0 + mock_library.niRFSA_ConfigureSpectrumFrequencyCenterSpan.side_effect = MockFunctionCallError("niRFSA_ConfigureSpectrumFrequencyCenterSpan") + mock_library.niRFSA_ConfigureSpectrumFrequencyCenterSpan.return_value = 0 + mock_library.niRFSA_ConfigureSpectrumFrequencyStartStop.side_effect = MockFunctionCallError("niRFSA_ConfigureSpectrumFrequencyStartStop") + mock_library.niRFSA_ConfigureSpectrumFrequencyStartStop.return_value = 0 + mock_library.niRFSA_CreateDeembeddingSparameterTableArray.side_effect = MockFunctionCallError("niRFSA_CreateDeembeddingSparameterTableArray") + mock_library.niRFSA_CreateDeembeddingSparameterTableArray.return_value = 0 + mock_library.niRFSA_CreateDeembeddingSparameterTableS2PFile.side_effect = MockFunctionCallError("niRFSA_CreateDeembeddingSparameterTableS2PFile") + mock_library.niRFSA_CreateDeembeddingSparameterTableS2PFile.return_value = 0 + mock_library.niRFSA_DeleteAllDeembeddingTables.side_effect = MockFunctionCallError("niRFSA_DeleteAllDeembeddingTables") + mock_library.niRFSA_DeleteAllDeembeddingTables.return_value = 0 + mock_library.niRFSA_DeleteDeembeddingTable.side_effect = MockFunctionCallError("niRFSA_DeleteDeembeddingTable") + mock_library.niRFSA_DeleteDeembeddingTable.return_value = 0 + mock_library.niRFSA_DisableAdvanceTrigger.side_effect = MockFunctionCallError("niRFSA_DisableAdvanceTrigger") + mock_library.niRFSA_DisableAdvanceTrigger.return_value = 0 + mock_library.niRFSA_DisableRefTrigger.side_effect = MockFunctionCallError("niRFSA_DisableRefTrigger") + mock_library.niRFSA_DisableRefTrigger.return_value = 0 + mock_library.niRFSA_DisableStartTrigger.side_effect = MockFunctionCallError("niRFSA_DisableStartTrigger") + mock_library.niRFSA_DisableStartTrigger.return_value = 0 + mock_library.niRFSA_EnableSessionAccess.side_effect = MockFunctionCallError("niRFSA_EnableSessionAccess") + mock_library.niRFSA_EnableSessionAccess.return_value = 0 + mock_library.niRFSA_ErrorMessage.side_effect = MockFunctionCallError("niRFSA_ErrorMessage") + mock_library.niRFSA_ErrorMessage.return_value = 0 + mock_library.niRFSA_FetchIQMultiRecordComplexF32.side_effect = MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF32") + mock_library.niRFSA_FetchIQMultiRecordComplexF32.return_value = 0 + mock_library.niRFSA_FetchIQMultiRecordComplexF64.side_effect = MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexF64") + mock_library.niRFSA_FetchIQMultiRecordComplexF64.return_value = 0 + mock_library.niRFSA_FetchIQMultiRecordComplexI16.side_effect = MockFunctionCallError("niRFSA_FetchIQMultiRecordComplexI16") + mock_library.niRFSA_FetchIQMultiRecordComplexI16.return_value = 0 + mock_library.niRFSA_FetchIQSingleRecordComplexF32.side_effect = MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF32") + mock_library.niRFSA_FetchIQSingleRecordComplexF32.return_value = 0 + mock_library.niRFSA_FetchIQSingleRecordComplexF64.side_effect = MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexF64") + mock_library.niRFSA_FetchIQSingleRecordComplexF64.return_value = 0 + mock_library.niRFSA_FetchIQSingleRecordComplexI16.side_effect = MockFunctionCallError("niRFSA_FetchIQSingleRecordComplexI16") + mock_library.niRFSA_FetchIQSingleRecordComplexI16.return_value = 0 + mock_library.niRFSA_GetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSA_GetAttributeViBoolean") + mock_library.niRFSA_GetAttributeViBoolean.return_value = 0 + mock_library.niRFSA_GetAttributeViInt32.side_effect = MockFunctionCallError("niRFSA_GetAttributeViInt32") + mock_library.niRFSA_GetAttributeViInt32.return_value = 0 + mock_library.niRFSA_GetAttributeViInt64.side_effect = MockFunctionCallError("niRFSA_GetAttributeViInt64") + mock_library.niRFSA_GetAttributeViInt64.return_value = 0 + mock_library.niRFSA_GetAttributeViReal64.side_effect = MockFunctionCallError("niRFSA_GetAttributeViReal64") + mock_library.niRFSA_GetAttributeViReal64.return_value = 0 + mock_library.niRFSA_GetAttributeViSession.side_effect = MockFunctionCallError("niRFSA_GetAttributeViSession") + mock_library.niRFSA_GetAttributeViSession.return_value = 0 + mock_library.niRFSA_GetAttributeViString.side_effect = MockFunctionCallError("niRFSA_GetAttributeViString") + mock_library.niRFSA_GetAttributeViString.return_value = 0 + mock_library.niRFSA_GetDeembeddingSparameters.side_effect = MockFunctionCallError("niRFSA_GetDeembeddingSparameters") + mock_library.niRFSA_GetDeembeddingSparameters.return_value = 0 + mock_library.niRFSA_GetDeembeddingTableNumberOfPorts.side_effect = MockFunctionCallError("niRFSA_GetDeembeddingTableNumberOfPorts") + mock_library.niRFSA_GetDeembeddingTableNumberOfPorts.return_value = 0 + mock_library.niRFSA_GetError.side_effect = MockFunctionCallError("niRFSA_GetError") + mock_library.niRFSA_GetError.return_value = 0 + mock_library.niRFSA_GetExtCalLastDateAndTime.side_effect = MockFunctionCallError("niRFSA_GetExtCalLastDateAndTime") + mock_library.niRFSA_GetExtCalLastDateAndTime.return_value = 0 + mock_library.niRFSA_GetExtCalRecommendedInterval.side_effect = MockFunctionCallError("niRFSA_GetExtCalRecommendedInterval") + mock_library.niRFSA_GetExtCalRecommendedInterval.return_value = 0 + mock_library.niRFSA_GetFetchBacklog.side_effect = MockFunctionCallError("niRFSA_GetFetchBacklog") + mock_library.niRFSA_GetFetchBacklog.return_value = 0 + mock_library.niRFSA_GetFrequencyResponse.side_effect = MockFunctionCallError("niRFSA_GetFrequencyResponse") + mock_library.niRFSA_GetFrequencyResponse.return_value = 0 + mock_library.niRFSA_GetScalingCoefficients.side_effect = MockFunctionCallError("niRFSA_GetScalingCoefficients") + mock_library.niRFSA_GetScalingCoefficients.return_value = 0 + mock_library.niRFSA_GetSelfCalLastDateAndTime.side_effect = MockFunctionCallError("niRFSA_GetSelfCalLastDateAndTime") + mock_library.niRFSA_GetSelfCalLastDateAndTime.return_value = 0 + mock_library.niRFSA_GetSelfCalLastTemp.side_effect = MockFunctionCallError("niRFSA_GetSelfCalLastTemp") + mock_library.niRFSA_GetSelfCalLastTemp.return_value = 0 + mock_library.niRFSA_GetTerminalName.side_effect = MockFunctionCallError("niRFSA_GetTerminalName") + mock_library.niRFSA_GetTerminalName.return_value = 0 + mock_library.niRFSA_InitWithOptions.side_effect = MockFunctionCallError("niRFSA_InitWithOptions") + mock_library.niRFSA_InitWithOptions.return_value = 0 + mock_library.niRFSA_Initiate.side_effect = MockFunctionCallError("niRFSA_Initiate") + mock_library.niRFSA_Initiate.return_value = 0 + mock_library.niRFSA_IsSelfCalValid.side_effect = MockFunctionCallError("niRFSA_IsSelfCalValid") + mock_library.niRFSA_IsSelfCalValid.return_value = 0 + mock_library.niRFSA_LoadConfigurationsFromFile.side_effect = MockFunctionCallError("niRFSA_LoadConfigurationsFromFile") + mock_library.niRFSA_LoadConfigurationsFromFile.return_value = 0 + mock_library.niRFSA_LockSession.side_effect = MockFunctionCallError("niRFSA_LockSession") + mock_library.niRFSA_LockSession.return_value = 0 + mock_library.niRFSA_PerformThermalCorrection.side_effect = MockFunctionCallError("niRFSA_PerformThermalCorrection") + mock_library.niRFSA_PerformThermalCorrection.return_value = 0 + mock_library.niRFSA_ReadIQSingleRecordComplexF64.side_effect = MockFunctionCallError("niRFSA_ReadIQSingleRecordComplexF64") + mock_library.niRFSA_ReadIQSingleRecordComplexF64.return_value = 0 + mock_library.niRFSA_ReadPowerSpectrumF32.side_effect = MockFunctionCallError("niRFSA_ReadPowerSpectrumF32") + mock_library.niRFSA_ReadPowerSpectrumF32.return_value = 0 + mock_library.niRFSA_ReadPowerSpectrumF64.side_effect = MockFunctionCallError("niRFSA_ReadPowerSpectrumF64") + mock_library.niRFSA_ReadPowerSpectrumF64.return_value = 0 + mock_library.niRFSA_ResetDevice.side_effect = MockFunctionCallError("niRFSA_ResetDevice") + mock_library.niRFSA_ResetDevice.return_value = 0 + mock_library.niRFSA_ResetWithOptions.side_effect = MockFunctionCallError("niRFSA_ResetWithOptions") + mock_library.niRFSA_ResetWithOptions.return_value = 0 + mock_library.niRFSA_SaveConfigurationsToFile.side_effect = MockFunctionCallError("niRFSA_SaveConfigurationsToFile") + mock_library.niRFSA_SaveConfigurationsToFile.return_value = 0 + mock_library.niRFSA_SelfCalibrateRange.side_effect = MockFunctionCallError("niRFSA_SelfCalibrateRange") + mock_library.niRFSA_SelfCalibrateRange.return_value = 0 + mock_library.niRFSA_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niRFSA_SendSoftwareEdgeTrigger") + mock_library.niRFSA_SendSoftwareEdgeTrigger.return_value = 0 + mock_library.niRFSA_SetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSA_SetAttributeViBoolean") + mock_library.niRFSA_SetAttributeViBoolean.return_value = 0 + mock_library.niRFSA_SetAttributeViInt32.side_effect = MockFunctionCallError("niRFSA_SetAttributeViInt32") + mock_library.niRFSA_SetAttributeViInt32.return_value = 0 + mock_library.niRFSA_SetAttributeViInt64.side_effect = MockFunctionCallError("niRFSA_SetAttributeViInt64") + mock_library.niRFSA_SetAttributeViInt64.return_value = 0 + mock_library.niRFSA_SetAttributeViReal64.side_effect = MockFunctionCallError("niRFSA_SetAttributeViReal64") + mock_library.niRFSA_SetAttributeViReal64.return_value = 0 + mock_library.niRFSA_SetAttributeViSession.side_effect = MockFunctionCallError("niRFSA_SetAttributeViSession") + mock_library.niRFSA_SetAttributeViSession.return_value = 0 + mock_library.niRFSA_SetAttributeViString.side_effect = MockFunctionCallError("niRFSA_SetAttributeViString") + mock_library.niRFSA_SetAttributeViString.return_value = 0 + mock_library.niRFSA_UnlockSession.side_effect = MockFunctionCallError("niRFSA_UnlockSession") + mock_library.niRFSA_UnlockSession.return_value = 0 + mock_library.niRFSA_close.side_effect = MockFunctionCallError("niRFSA_close") + mock_library.niRFSA_close.return_value = 0 + mock_library.niRFSA_reset.side_effect = MockFunctionCallError("niRFSA_reset") + mock_library.niRFSA_reset.return_value = 0 + mock_library.niRFSA_self_test.side_effect = MockFunctionCallError("niRFSA_self_test") + mock_library.niRFSA_self_test.return_value = 0 diff --git a/generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py b/generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py new file mode 100644 index 0000000000..192af084ab --- /dev/null +++ b/generated/nirfsa/nirfsa/unit_tests/test_nirfsa.py @@ -0,0 +1,25 @@ +import nirfsa.waveform_info +import numpy + + +def test_populate_samples_info(): + waveform_infos = [] + for i in range(1, 4): + waveform_infos.append(nirfsa.waveform_info.WaveformInfo()) + waveform_infos[-1].actual_samples = i + + # 2D case (multi-record fetch): each row may be wider than actual_samples. + sample_data = numpy.array([ + [0, 0, 0], + [3, 4, 0], + [6, 7, 8], + ], dtype=numpy.float64) + nirfsa.waveform_info._populate_samples_info(waveform_infos, sample_data) + + expected = [ + [0], + [3, 4], + [6, 7, 8], + ] + for i in range(len(waveform_infos)): + assert list(waveform_infos[i].samples) == expected[i] diff --git a/generated/nirfsa/nirfsa/waveform_info.py b/generated/nirfsa/nirfsa/waveform_info.py new file mode 100644 index 0000000000..b30a5bc8f7 --- /dev/null +++ b/generated/nirfsa/nirfsa/waveform_info.py @@ -0,0 +1,116 @@ +import ctypes +import nirfsa._visatype + + +# This class is an internal ctypes implementation detail that corresponds to +# niRFSA_wfmInfo in the C API +class struct_niRFSA_wfmInfo(ctypes.Structure): # noqa N801 + _pack_ = 8 + _fields_ = [ + ('absolute_initial_x', nirfsa._visatype.ViReal64), + ('relative_initial_x', nirfsa._visatype.ViReal64), + ('x_increment', nirfsa._visatype.ViReal64), + ('actual_samples', nirfsa._visatype.ViInt64), + ('offset', nirfsa._visatype.ViReal64), + ('gain', nirfsa._visatype.ViReal64), + ('reserved1', nirfsa._visatype.ViReal64), + ('reserved2', nirfsa._visatype.ViReal64), + ] + + def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, + x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0, + reserved1=0.0, reserved2=0.0): + super(ctypes.Structure, self).__init__() + if data is not None: + self.absolute_initial_x = data.absolute_initial_x + self.relative_initial_x = data.relative_initial_x + self.x_increment = data.x_increment + self.actual_samples = data.actual_samples + self.offset = data.offset + self.gain = data.gain + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + else: + self.absolute_initial_x = absolute_initial_x + self.relative_initial_x = relative_initial_x + self.x_increment = x_increment + self.actual_samples = actual_samples + self.offset = offset + self.gain = gain + self.reserved1 = reserved1 + self.reserved2 = reserved2 + + +class WaveformInfo: + """Python-friendly wrapper for niRFSA waveform info.""" + + def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, + x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0, + reserved1=0.0, reserved2=0.0): + if data is not None: + self.absolute_initial_x = data.absolute_initial_x + self.relative_initial_x = data.relative_initial_x + self.x_increment = data.x_increment + self.actual_samples = data.actual_samples + self.offset = data.offset + self.gain = data.gain + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + else: + self.absolute_initial_x = absolute_initial_x + self.relative_initial_x = relative_initial_x + self.x_increment = x_increment + self.actual_samples = actual_samples + self.offset = offset + self.gain = gain + self.reserved1 = reserved1 + self.reserved2 = reserved2 + + def _create_copy(self, target_class): + try: + return target_class( + absolute_initial_x=self.absolute_initial_x, + relative_initial_x=self.relative_initial_x, + x_increment=self.x_increment, + actual_samples=self.actual_samples, + offset=self.offset, + gain=self.gain, + reserved1=self.reserved1, + reserved2=self.reserved2, + ) + except TypeError: + return target_class(data=self) + + def __repr__(self): + return "{}.{}(absolute_initial_x={}, relative_initial_x={}, x_increment={}, actual_samples={}, offset={}, gain={}, reserved1={}, reserved2={})".format( + self.__class__.__module__, + self.__class__.__qualname__, + self.absolute_initial_x, + self.relative_initial_x, + self.x_increment, + self.actual_samples, + self.offset, + self.gain, + self.reserved1, + self.reserved2, + ) + + def __str__(self): + return self.__repr__() + + +def _populate_samples_info(waveform_infos, sample_data): + '''Chunk up flat array of sample_data and copy each chunk into individual WaveformInfo instance + + Args: + waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances + + sample_data (Iterable of float): Waveform sample data + ''' + if hasattr(sample_data, 'ndim') and sample_data.ndim == 2: + # 2D case (multi-record fetch): sample_data[i] is a 1D view of row i. + # Slice to exact actual_samples to handle rows wider than actual_samples (e.g. int16). + for i in range(len(waveform_infos)): + actual_samples = waveform_infos[i].actual_samples + waveform_infos[i].samples = sample_data[i, :actual_samples] + diff --git a/generated/nirfsa/setup.py b/generated/nirfsa/setup.py new file mode 100644 index 0000000000..6252a35e79 --- /dev/null +++ b/generated/nirfsa/setup.py @@ -0,0 +1,65 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nirfsa' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.0.1.dev0', + description='NI-RFSA Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nirfsa'], + license='MIT', + include_package_data=True, + packages=['nirfsa'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + 'nitclk', + 'numpy', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nirfsa/tox-system_tests.ini b/generated/nirfsa/tox-system_tests.ini new file mode 100644 index 0000000000..2a0026216f --- /dev/null +++ b/generated/nirfsa/tox-system_tests.ini @@ -0,0 +1,73 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nirfsa) +[tox] +envlist = py{310,311,312,313,314}-nirfsa-wheel_dep,py{310,311,312,313,314}-nirfsa-system_tests, py314-nirfsa-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nirfsa-wheel_dep: Build the nitclk wheel because we use it in nirfsa tests + nirfsa-system_tests: Run nirfsa system tests (requires NI-RFSA runtime to be installed) + nirfsa-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nirfsa-wheel_dep: ../nitclk + nirfsa-system_tests: . + nirfsa-coverage: . + +commands = + nirfsa-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nirfsa-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nirfsa-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. + nirfsa-system_tests: python -c "import nirfsa; nirfsa.print_diagnostic_information()" + nirfsa-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsa --parallel-mode -m pytest ../../src/nirfsa/examples --junitxml=../junit/junit-nirfsa-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nirfsa-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsa --parallel-mode -m pytest ../../src/nirfsa/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nirfsa-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nirfsa-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nirfsa-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nirfsa-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nirfsa-wheel_dep: build + + nirfsa-system_tests: pytest < 9.2.0 + nirfsa-system_tests: coverage + nirfsa-system_tests: numpy + nirfsa-system_tests: hightime + nirfsa-system_tests: fasteners + nirfsa-system_tests: pytest-json + nirfsa-system_tests: .[grpc] + + nirfsa-coverage: coverage + +depends = + nirfsa-coverage: py{310,311,312,313,314}-nirfsa-system_tests + nirfsa-system_tests: py{310,311,312,313,314}-nirfsa-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nirfsg/README.rst b/generated/nirfsg/README.rst new file mode 100644 index 0000000000..efd2068e22 --- /dev/null +++ b/generated/nirfsg/README.rst @@ -0,0 +1,179 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nirfsg** module provides a Python API for NI-RFSG. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nirfsg** supports all the Operating Systems supported by NI-RFSG. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nirfsg**. + + +NI-RFSG Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-RFSG (nirfsg) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nirfsgLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nirfsgPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nirfsgDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nirfsgOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nirfsgOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nirfsgLatestVersion| image:: http://img.shields.io/pypi/v/nirfsg.svg + :alt: Latest NI-RFSG Version + :target: http://pypi.python.org/pypi/nirfsg + + +.. |nirfsgPythonVersion| image:: http://img.shields.io/pypi/pyversions/nirfsg.svg + :alt: NI-RFSG supported Python versions + :target: http://pypi.python.org/pypi/nirfsg + + +.. |nirfsgDocs| image:: https://readthedocs.org/projects/nirfsg/badge/?version=latest + :alt: NI-RFSG Python API Documentation Status + :target: https://nirfsg.readthedocs.io/en/latest + + +.. |nirfsgOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nirfsg.svg + :alt: Open Issues + Pull Requests for NI-RFSG + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anirfsg + + +.. |nirfsgOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nirfsg.svg + :alt: Pull Requests for NI-RFSG + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anirfsg + + + +.. _nirfsg_installation-section: + +Installation +------------ + +As a prerequisite to using the **nirfsg** module, you must install the NI-RFSG runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-RFSG**) can be installed with `pip `_:: + + $ python -m pip install nirfsg + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nirfsg** module to open a session to an RF Signal Generator and generate a continuous wave (CW) signal. + +.. code-block:: python + + import nirfsg + + # Configure the session + with nirfsg.Session(resource_name='5841', id_query=False, reset_device=False, options='Simulate=1, DriverSetup=Model:5841') as session: + # Configure RF settings + session.configure_rf( + frequency=1e9, # Frequency in Hz + power_level=-10.0 # Power level in dBm + ) + session.generation_mode = nirfsg.GenerationMode.CW + + # Start signal generation + with session.initiate(): + input("Press Enter to stop generation") + +`Other usage examples can be found on GitHub. `_.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nirfsg/nirfsg/VERSION b/generated/nirfsg/nirfsg/VERSION new file mode 100644 index 0000000000..9230f8b42b --- /dev/null +++ b/generated/nirfsg/nirfsg/VERSION @@ -0,0 +1,2 @@ +1.2.1.dev0 + diff --git a/generated/nirfsg/nirfsg/__init__.py b/generated/nirfsg/nirfsg/__init__.py new file mode 100644 index 0000000000..baf745cd83 --- /dev/null +++ b/generated/nirfsg/nirfsg/__init__.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.2.1.dev0' + +from nirfsg.enums import * # noqa: F403,F401,H303 +from nirfsg.errors import DriverWarning # noqa: F401 +from nirfsg.errors import Error # noqa: F401 +from nirfsg.grpc_session_options import * # noqa: F403,F401,H303 +from nirfsg.session import Session # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-RFSG\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-RFSG" + info['driver']['version'] = driver_version + info['module']['name'] = 'nirfsg' + info['module']['version'] = "1.2.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nirfsg/nirfsg/_attributes.py b/generated/nirfsg/nirfsg/_attributes.py new file mode 100644 index 0000000000..e8e974c325 --- /dev/null +++ b/generated/nirfsg/nirfsg/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nirfsg._converters as _converters +import nirfsg.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nirfsg Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nirfsg.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nirfsg/nirfsg/_complextype.py b/generated/nirfsg/nirfsg/_complextype.py new file mode 100644 index 0000000000..45020aa991 --- /dev/null +++ b/generated/nirfsg/nirfsg/_complextype.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# This file was generated +import ctypes +import nirfsg._visatype as _visatype + + +class NIComplexNumber(ctypes.Structure): + _fields_ = [("real", _visatype.ViReal64), ("imag", _visatype.ViReal64)] + + +class NIComplexNumberF32(ctypes.Structure): + _fields_ = [("real", _visatype.ViReal32), ("imag", _visatype.ViReal32)] + + +class NIComplexI16(ctypes.Structure): + _fields_ = [("real", _visatype.ViInt16), ("imag", _visatype.ViInt16)] diff --git a/generated/nirfsg/nirfsg/_converters.py b/generated/nirfsg/nirfsg/_converters.py new file mode 100644 index 0000000000..e5c50c04d3 --- /dev/null +++ b/generated/nirfsg/nirfsg/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nirfsg._visatype as _visatype +import nirfsg.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nirfsg/nirfsg/_grpc_stub_interpreter.py b/generated/nirfsg/nirfsg/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..a2e2ff3a3c --- /dev/null +++ b/generated/nirfsg/nirfsg/_grpc_stub_interpreter.py @@ -0,0 +1,629 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import nidevice_pb2 as grpc_complex_types # noqa: F401 +from . import nirfsg_pb2 as grpc_types +from . import nirfsg_pb2_grpc as nirfsg_grpc + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = nirfsg_grpc.NiRFSGStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.Abort, + grpc_types.AbortRequest(vi=self._vi), + ) + + def allocate_arb_waveform(self, waveform_name, size_in_samples): # noqa: N802 + self._invoke( + self._client.AllocateArbWaveform, + grpc_types.AllocateArbWaveformRequest(vi=self._vi, waveform_name=waveform_name, size_in_samples=size_in_samples), + ) + + def change_external_calibration_password(self, old_password, new_password): # noqa: N802 + self._invoke( + self._client.ChangeExternalCalibrationPassword, + grpc_types.ChangeExternalCalibrationPasswordRequest(vi=self._vi, old_password=old_password, new_password=new_password), + ) + + def check_generation_status(self): # noqa: N802 + response = self._invoke( + self._client.CheckGenerationStatus, + grpc_types.CheckGenerationStatusRequest(vi=self._vi), + ) + return response.is_done + + def check_if_script_exists(self, script_name): # noqa: N802 + response = self._invoke( + self._client.CheckIfScriptExists, + grpc_types.CheckIfScriptExistsRequest(vi=self._vi, script_name=script_name), + ) + return response.script_exists + + def check_if_waveform_exists(self, waveform_name): # noqa: N802 + response = self._invoke( + self._client.CheckIfWaveformExists, + grpc_types.CheckIfWaveformExistsRequest(vi=self._vi, waveform_name=waveform_name), + ) + return response.waveform_exists + + def clear_all_arb_waveforms(self): # noqa: N802 + self._invoke( + self._client.ClearAllArbWaveforms, + grpc_types.ClearAllArbWaveformsRequest(vi=self._vi), + ) + + def clear_arb_waveform(self, waveform_name): # noqa: N802 + self._invoke( + self._client.ClearArbWaveform, + grpc_types.ClearArbWaveformRequest(vi=self._vi, name=waveform_name), + ) + + def clear_self_calibrate_range(self): # noqa: N802 + self._invoke( + self._client.ClearSelfCalibrateRange, + grpc_types.ClearSelfCalibrateRangeRequest(vi=self._vi), + ) + + def commit(self): # noqa: N802 + self._invoke( + self._client.Commit, + grpc_types.CommitRequest(vi=self._vi), + ) + + def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 + self._invoke( + self._client.ConfigureDeembeddingTableInterpolationLinear, + grpc_types.ConfigureDeembeddingTableInterpolationLinearRequest(vi=self._vi, port=port, table_name=table_name, format_raw=format.value), + ) + + def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 + self._invoke( + self._client.ConfigureDeembeddingTableInterpolationNearest, + grpc_types.ConfigureDeembeddingTableInterpolationNearestRequest(vi=self._vi, port=port, table_name=table_name), + ) + + def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 + self._invoke( + self._client.ConfigureDeembeddingTableInterpolationSpline, + grpc_types.ConfigureDeembeddingTableInterpolationSplineRequest(vi=self._vi, port=port, table_name=table_name), + ) + + def configure_digital_edge_script_trigger(self, trigger_id, source, edge): # noqa: N802 + self._invoke( + self._client.ConfigureDigitalEdgeScriptTrigger, + grpc_types.ConfigureDigitalEdgeScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id, source_raw=source, edge_raw=edge.value), + ) + + def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 + self._invoke( + self._client.ConfigureDigitalEdgeStartTrigger, + grpc_types.ConfigureDigitalEdgeStartTriggerRequest(vi=self._vi, source_raw=source, edge_raw=edge.value), + ) + + def configure_digital_level_script_trigger(self, trigger_id, source, level): # noqa: N802 + self._invoke( + self._client.ConfigureDigitalLevelScriptTrigger, + grpc_types.ConfigureDigitalLevelScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id, source=source, level=level), + ) + + def configure_rf(self, frequency, power_level): # noqa: N802 + self._invoke( + self._client.ConfigureRF, + grpc_types.ConfigureRFRequest(vi=self._vi, frequency=frequency, power_level=power_level), + ) + + def configure_ref_clock(self, ref_clock_source, ref_clock_rate): # noqa: N802 + self._invoke( + self._client.ConfigureRefClock, + grpc_types.ConfigureRefClockRequest(vi=self._vi, ref_clock_source=ref_clock_source, ref_clock_rate=ref_clock_rate), + ) + + def configure_software_script_trigger(self, trigger_id): # noqa: N802 + self._invoke( + self._client.ConfigureSoftwareScriptTrigger, + grpc_types.ConfigureSoftwareScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id), + ) + + def configure_software_start_trigger(self): # noqa: N802 + self._invoke( + self._client.ConfigureSoftwareStartTrigger, + grpc_types.ConfigureSoftwareStartTriggerRequest(vi=self._vi), + ) + + def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + sparameter_table_list = [ + grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) + for val in sparameter_table.ravel() + ] + self._invoke( + self._client.CreateDeembeddingSparameterTableArray, + grpc_types.CreateDeembeddingSparameterTableArrayRequest(vi=self._vi, port=port, table_name=table_name, frequencies=frequencies, sparameter_table=sparameter_table_list, number_of_ports=number_of_ports, sparameter_orientation_raw=sparameter_orientation.value), + ) + + def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + self._invoke( + self._client.CreateDeembeddingSparameterTableS2PFile, + grpc_types.CreateDeembeddingSparameterTableS2PFileRequest(vi=self._vi, port=port, table_name=table_name, s2p_file_path=s2p_file_path, sparameter_orientation_raw=sparameter_orientation.value), + ) + + def delete_all_deembedding_tables(self): # noqa: N802 + self._invoke( + self._client.DeleteAllDeembeddingTables, + grpc_types.DeleteAllDeembeddingTablesRequest(vi=self._vi), + ) + + def delete_deembedding_table(self, port, table_name): # noqa: N802 + self._invoke( + self._client.DeleteDeembeddingTable, + grpc_types.DeleteDeembeddingTableRequest(vi=self._vi, port=port, table_name=table_name), + ) + + def delete_script(self, script_name): # noqa: N802 + self._invoke( + self._client.DeleteScript, + grpc_types.DeleteScriptRequest(vi=self._vi, script_name=script_name), + ) + + def disable_script_trigger(self, trigger_id): # noqa: N802 + self._invoke( + self._client.DisableScriptTrigger, + grpc_types.DisableScriptTriggerRequest(vi=self._vi, trigger_id_raw=trigger_id), + ) + + def disable_start_trigger(self): # noqa: N802 + self._invoke( + self._client.DisableStartTrigger, + grpc_types.DisableStartTriggerRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def get_all_named_waveform_names(self): # noqa: N802 + response = self._invoke( + self._client.GetAllNamedWaveformNames, + grpc_types.GetAllNamedWaveformNamesRequest(vi=self._vi), + ) + return response.waveform_names + + def get_all_script_names(self): # noqa: N802 + response = self._invoke( + self._client.GetAllScriptNames, + grpc_types.GetAllScriptNamesRequest(vi=self._vi), + ) + return response.script_names + + def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute), + ) + return response.value + + def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute), + ) + return response.value + + def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt64, + grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute), + ) + return response.value + + def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute), + ) + return response.value + + def get_attribute_vi_session(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViSession, + grpc_types.GetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute), + ) + return response.value + + def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute), + ) + return response.value + + def get_deembedding_sparameters(self): + import numpy as np + response = self._invoke( + self._client.GetDeembeddingSparameters, + grpc_types.GetDeembeddingSparametersRequest(vi=self._vi), + ) + number_of_ports = response.number_of_ports + sparameters = np.array([c.real + 1j * c.imaginary for c in response.sparameters], dtype=np.complex128) + sparameters = sparameters.reshape((number_of_ports, number_of_ports)) + return sparameters + + def get_deembedding_table_number_of_ports(self): # noqa: N802 + response = self._invoke( + self._client.GetDeembeddingTableNumberOfPorts, + grpc_types.GetDeembeddingTableNumberOfPortsRequest(vi=self._vi), + ) + return response.number_of_ports + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.error_description + + def get_external_calibration_last_date_and_time(self): # noqa: N802 + response = self._invoke( + self._client.GetExternalCalibrationLastDateAndTime, + grpc_types.GetExternalCalibrationLastDateAndTimeRequest(vi=self._vi), + ) + return response.year, response.month, response.day, response.hour, response.minute, response.second + + def get_max_settable_power(self): # noqa: N802 + response = self._invoke( + self._client.GetMaxSettablePower, + grpc_types.GetMaxSettablePowerRequest(vi=self._vi), + ) + return response.value + + def get_script(self, script_name): # noqa: N802 + response = self._invoke( + self._client.GetScript, + grpc_types.GetScriptRequest(vi=self._vi, script_name=script_name), + ) + return response.script + + def get_self_calibration_date_and_time(self, module): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalibrationDateAndTime, + grpc_types.GetSelfCalibrationDateAndTimeRequest(vi=self._vi, module=module.value), + ) + return response.year, response.month, response.day, response.hour, response.minute, response.second + + def get_self_calibration_temperature(self, module): # noqa: N802 + response = self._invoke( + self._client.GetSelfCalibrationTemperature, + grpc_types.GetSelfCalibrationTemperatureRequest(vi=self._vi, module_raw=module.value), + ) + return response.temperature + + def get_terminal_name(self, signal, signal_identifier): # noqa: N802 + response = self._invoke( + self._client.GetTerminalName, + grpc_types.GetTerminalNameRequest(vi=self._vi, signal_raw=signal.value, signal_identifier_raw=signal_identifier), + ) + return response.terminal_name + + def get_waveform_burst_start_locations(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.GetWaveformBurstStartLocations, + grpc_types.GetWaveformBurstStartLocationsRequest(vi=self._vi, channel_name=channel_name), + ) + return response.locations + + def get_waveform_burst_stop_locations(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.GetWaveformBurstStopLocations, + grpc_types.GetWaveformBurstStopLocationsRequest(vi=self._vi, channel_name=channel_name), + ) + return response.locations + + def get_waveform_marker_event_locations(self, channel_name): # noqa: N802 + response = self._invoke( + self._client.GetWaveformMarkerEventLocations, + grpc_types.GetWaveformMarkerEventLocationsRequest(vi=self._vi, channel_name=channel_name), + ) + return response.locations + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithOptions, + grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate(self): # noqa: N802 + self._invoke( + self._client.Initiate, + grpc_types.InitiateRequest(vi=self._vi), + ) + + def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 + self._invoke( + self._client.LoadConfigurationsFromFile, + grpc_types.LoadConfigurationsFromFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def perform_power_search(self): # noqa: N802 + self._invoke( + self._client.PerformPowerSearch, + grpc_types.PerformPowerSearchRequest(vi=self._vi), + ) + + def perform_thermal_correction(self): # noqa: N802 + self._invoke( + self._client.PerformThermalCorrection, + grpc_types.PerformThermalCorrectionRequest(vi=self._vi), + ) + + def query_arb_waveform_capabilities(self): # noqa: N802 + response = self._invoke( + self._client.QueryArbWaveformCapabilities, + grpc_types.QueryArbWaveformCapabilitiesRequest(vi=self._vi), + ) + return response.max_number_waveforms, response.waveform_quantum, response.min_waveform_size, response.max_waveform_size + + def read_and_download_waveform_from_file_tdms(self, waveform_name, file_path, waveform_index): # noqa: N802 + self._invoke( + self._client.ReadAndDownloadWaveformFromFileTDMS, + grpc_types.ReadAndDownloadWaveformFromFileTDMSRequest(vi=self._vi, waveform_name=waveform_name, file_path=file_path, waveform_index=waveform_index), + ) + + def reset_device(self): # noqa: N802 + self._invoke( + self._client.ResetDevice, + grpc_types.ResetDeviceRequest(vi=self._vi), + ) + + def reset_with_defaults(self): # noqa: N802 + self._invoke( + self._client.ResetWithDefaults, + grpc_types.ResetWithDefaultsRequest(vi=self._vi), + ) + + def reset_with_options(self, steps_to_omit): # noqa: N802 + self._invoke( + self._client.ResetWithOptions, + grpc_types.ResetWithOptionsRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value), + ) + + def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 + self._invoke( + self._client.SaveConfigurationsToFile, + grpc_types.SaveConfigurationsToFileRequest(vi=self._vi, channel_name=channel_name, file_path=file_path), + ) + + def select_arb_waveform(self, waveform_name): # noqa: N802 + self._invoke( + self._client.SelectArbWaveform, + grpc_types.SelectArbWaveformRequest(vi=self._vi, name=waveform_name), + ) + + def self_cal(self): # noqa: N802 + self._invoke( + self._client.SelfCal, + grpc_types.SelfCalRequest(vi=self._vi), + ) + + def self_calibrate_range(self, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 + self._invoke( + self._client.SelfCalibrateRange, + grpc_types.SelfCalibrateRangeRequest(vi=self._vi, steps_to_omit_raw=steps_to_omit.value, min_frequency=min_frequency, max_frequency=max_frequency, min_power_level=min_power_level, max_power_level=max_power_level), + ) + + def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 + self._invoke( + self._client.SendSoftwareEdgeTrigger, + grpc_types.SendSoftwareEdgeTriggerRequest(vi=self._vi, trigger_raw=trigger.value, trigger_identifier_raw=trigger_identifier.value), + ) + + def set_arb_waveform_next_write_position(self, waveform_name, relative_to, offset): # noqa: N802 + self._invoke( + self._client.SetArbWaveformNextWritePosition, + grpc_types.SetArbWaveformNextWritePositionRequest(vi=self._vi, waveform_name=waveform_name, relative_to_raw=relative_to.value, offset=offset), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value=value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), + ) + + def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt64, + grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), + ) + + def set_attribute_vi_session(self, channel_name, attribute): # noqa: N802 + self._invoke( + self._client.SetAttributeViSession, + grpc_types.SetAttributeViSessionRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value=self._vi), + ) + + def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute, value_raw=value), + ) + + def set_waveform_burst_start_locations(self, channel_name, locations): # noqa: N802 + self._invoke( + self._client.SetWaveformBurstStartLocations, + grpc_types.SetWaveformBurstStartLocationsRequest(vi=self._vi, channel_name=channel_name, locations=locations), + ) + + def set_waveform_burst_stop_locations(self, channel_name, locations): # noqa: N802 + self._invoke( + self._client.SetWaveformBurstStopLocations, + grpc_types.SetWaveformBurstStopLocationsRequest(vi=self._vi, channel_name=channel_name, locations=locations), + ) + + def set_waveform_marker_event_locations(self, channel_name, locations): # noqa: N802 + self._invoke( + self._client.SetWaveformMarkerEventLocations, + grpc_types.SetWaveformMarkerEventLocationsRequest(vi=self._vi, channel_name=channel_name, locations=locations), + ) + + def unlock(self): # noqa: N802 + self._lock.release() + + def wait_until_settled(self, max_time_milliseconds): # noqa: N802 + self._invoke( + self._client.WaitUntilSettled, + grpc_types.WaitUntilSettledRequest(vi=self._vi, max_time_milliseconds=max_time_milliseconds), + ) + + def write_arb_waveform_complex_f32(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + waveform_data_array_list = [ + grpc_complex_types.NIComplexNumberF32(real=val.real, imaginary=val.imag) + for val in waveform_data_array.ravel() + ] + self._invoke( + self._client.WriteArbWaveformComplexF32, + grpc_types.WriteArbWaveformComplexF32Request(vi=self._vi, waveform_name=waveform_name, wfm_data=waveform_data_array_list, more_data_pending=more_data_pending), + ) + + def write_arb_waveform_complex_f64(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + waveform_data_array_list = [ + grpc_complex_types.NIComplexNumber(real=val.real, imaginary=val.imag) + for val in waveform_data_array.ravel() + ] + self._invoke( + self._client.WriteArbWaveformComplexF64, + grpc_types.WriteArbWaveformComplexF64Request(vi=self._vi, waveform_name=waveform_name, wfm_data=waveform_data_array_list, more_data_pending=more_data_pending), + ) + + def write_arb_waveform_complex_i16(self, waveform_name, waveform_data_array): # noqa: N802 + # Use ravel() so that gRPC always receives a flat numpy array, regardless of input dimensions. + arr = waveform_data_array.ravel() + if arr.size % 2 != 0: + raise ValueError("Interleaved int16 array must have even length (real/imag pairs)") + arr_pairs = arr.reshape(-1, 2) + waveform_data_array_list = [ + grpc_complex_types.NIComplexI16(real=int(pair[0]), imaginary=int(pair[1])) + for pair in arr_pairs + ] + self._invoke( + self._client.WriteArbWaveformComplexI16, + grpc_types.WriteArbWaveformComplexI16Request(vi=self._vi, waveform_name=waveform_name, wfm_data=waveform_data_array_list), + ) + + def write_script(self, script): # noqa: N802 + self._invoke( + self._client.WriteScript, + grpc_types.WriteScriptRequest(vi=self._vi, script=script), + ) + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.self_test_result, response.self_test_message diff --git a/generated/nirfsg/nirfsg/_library.py b/generated/nirfsg/nirfsg/_library.py new file mode 100644 index 0000000000..fba0e06d98 --- /dev/null +++ b/generated/nirfsg/nirfsg/_library.py @@ -0,0 +1,776 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nirfsg.errors as errors +import threading + +from nirfsg._complextype import * # noqa: F403 +from nirfsg._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niRFSG_Abort_cfunc = None + self.niRFSG_AllocateArbWaveform_cfunc = None + self.niRFSG_ChangeExternalCalibrationPassword_cfunc = None + self.niRFSG_CheckGenerationStatus_cfunc = None + self.niRFSG_CheckIfScriptExists_cfunc = None + self.niRFSG_CheckIfWaveformExists_cfunc = None + self.niRFSG_ClearAllArbWaveforms_cfunc = None + self.niRFSG_ClearArbWaveform_cfunc = None + self.niRFSG_ClearSelfCalibrateRange_cfunc = None + self.niRFSG_Commit_cfunc = None + self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc = None + self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc = None + self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc = None + self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc = None + self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc = None + self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc = None + self.niRFSG_ConfigureRF_cfunc = None + self.niRFSG_ConfigureRefClock_cfunc = None + self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc = None + self.niRFSG_ConfigureSoftwareStartTrigger_cfunc = None + self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc = None + self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc = None + self.niRFSG_DeleteAllDeembeddingTables_cfunc = None + self.niRFSG_DeleteDeembeddingTable_cfunc = None + self.niRFSG_DeleteScript_cfunc = None + self.niRFSG_DisableScriptTrigger_cfunc = None + self.niRFSG_DisableStartTrigger_cfunc = None + self.niRFSG_ErrorMessage_cfunc = None + self.niRFSG_GetAllNamedWaveformNames_cfunc = None + self.niRFSG_GetAllScriptNames_cfunc = None + self.niRFSG_GetAttributeViBoolean_cfunc = None + self.niRFSG_GetAttributeViInt32_cfunc = None + self.niRFSG_GetAttributeViInt64_cfunc = None + self.niRFSG_GetAttributeViReal64_cfunc = None + self.niRFSG_GetAttributeViSession_cfunc = None + self.niRFSG_GetAttributeViString_cfunc = None + self.niRFSG_GetDeembeddingSparameters_cfunc = None + self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc = None + self.niRFSG_GetError_cfunc = None + self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc = None + self.niRFSG_GetMaxSettablePower_cfunc = None + self.niRFSG_GetScript_cfunc = None + self.niRFSG_GetSelfCalibrationDateAndTime_cfunc = None + self.niRFSG_GetSelfCalibrationTemperature_cfunc = None + self.niRFSG_GetTerminalName_cfunc = None + self.niRFSG_GetWaveformBurstStartLocations_cfunc = None + self.niRFSG_GetWaveformBurstStopLocations_cfunc = None + self.niRFSG_GetWaveformMarkerEventLocations_cfunc = None + self.niRFSG_InitWithOptions_cfunc = None + self.niRFSG_Initiate_cfunc = None + self.niRFSG_LoadConfigurationsFromFile_cfunc = None + self.niRFSG_LockSession_cfunc = None + self.niRFSG_PerformPowerSearch_cfunc = None + self.niRFSG_PerformThermalCorrection_cfunc = None + self.niRFSG_QueryArbWaveformCapabilities_cfunc = None + self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc = None + self.niRFSG_ResetDevice_cfunc = None + self.niRFSG_ResetWithDefaults_cfunc = None + self.niRFSG_ResetWithOptions_cfunc = None + self.niRFSG_SaveConfigurationsToFile_cfunc = None + self.niRFSG_SelectArbWaveform_cfunc = None + self.niRFSG_SelfCal_cfunc = None + self.niRFSG_SelfCalibrateRange_cfunc = None + self.niRFSG_SendSoftwareEdgeTrigger_cfunc = None + self.niRFSG_SetArbWaveformNextWritePosition_cfunc = None + self.niRFSG_SetAttributeViBoolean_cfunc = None + self.niRFSG_SetAttributeViInt32_cfunc = None + self.niRFSG_SetAttributeViInt64_cfunc = None + self.niRFSG_SetAttributeViReal64_cfunc = None + self.niRFSG_SetAttributeViSession_cfunc = None + self.niRFSG_SetAttributeViString_cfunc = None + self.niRFSG_SetWaveformBurstStartLocations_cfunc = None + self.niRFSG_SetWaveformBurstStopLocations_cfunc = None + self.niRFSG_SetWaveformMarkerEventLocations_cfunc = None + self.niRFSG_UnlockSession_cfunc = None + self.niRFSG_WaitUntilSettled_cfunc = None + self.niRFSG_WriteArbWaveformComplexF32_cfunc = None + self.niRFSG_WriteArbWaveformComplexF64_cfunc = None + self.niRFSG_WriteArbWaveformComplexI16_cfunc = None + self.niRFSG_WriteScript_cfunc = None + self.niRFSG_close_cfunc = None + self.niRFSG_reset_cfunc = None + self.niRFSG_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niRFSG_Abort(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_Abort_cfunc is None: + self.niRFSG_Abort_cfunc = self._get_library_function('niRFSG_Abort') + self.niRFSG_Abort_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_Abort_cfunc(vi) + + def niRFSG_AllocateArbWaveform(self, vi, waveform_name, size_in_samples): # noqa: N802 + with self._func_lock: + if self.niRFSG_AllocateArbWaveform_cfunc is None: + self.niRFSG_AllocateArbWaveform_cfunc = self._get_library_function('niRFSG_AllocateArbWaveform') + self.niRFSG_AllocateArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSG_AllocateArbWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_AllocateArbWaveform_cfunc(vi, waveform_name, size_in_samples) + + def niRFSG_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 + with self._func_lock: + if self.niRFSG_ChangeExternalCalibrationPassword_cfunc is None: + self.niRFSG_ChangeExternalCalibrationPassword_cfunc = self._get_library_function('niRFSG_ChangeExternalCalibrationPassword') + self.niRFSG_ChangeExternalCalibrationPassword_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_ChangeExternalCalibrationPassword_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ChangeExternalCalibrationPassword_cfunc(vi, old_password, new_password) + + def niRFSG_CheckGenerationStatus(self, vi, is_done): # noqa: N802 + with self._func_lock: + if self.niRFSG_CheckGenerationStatus_cfunc is None: + self.niRFSG_CheckGenerationStatus_cfunc = self._get_library_function('niRFSG_CheckGenerationStatus') + self.niRFSG_CheckGenerationStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSG_CheckGenerationStatus_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_CheckGenerationStatus_cfunc(vi, is_done) + + def niRFSG_CheckIfScriptExists(self, vi, script_name, script_exists): # noqa: N802 + with self._func_lock: + if self.niRFSG_CheckIfScriptExists_cfunc is None: + self.niRFSG_CheckIfScriptExists_cfunc = self._get_library_function('niRFSG_CheckIfScriptExists') + self.niRFSG_CheckIfScriptExists_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSG_CheckIfScriptExists_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_CheckIfScriptExists_cfunc(vi, script_name, script_exists) + + def niRFSG_CheckIfWaveformExists(self, vi, waveform_name, waveform_exists): # noqa: N802 + with self._func_lock: + if self.niRFSG_CheckIfWaveformExists_cfunc is None: + self.niRFSG_CheckIfWaveformExists_cfunc = self._get_library_function('niRFSG_CheckIfWaveformExists') + self.niRFSG_CheckIfWaveformExists_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSG_CheckIfWaveformExists_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_CheckIfWaveformExists_cfunc(vi, waveform_name, waveform_exists) + + def niRFSG_ClearAllArbWaveforms(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_ClearAllArbWaveforms_cfunc is None: + self.niRFSG_ClearAllArbWaveforms_cfunc = self._get_library_function('niRFSG_ClearAllArbWaveforms') + self.niRFSG_ClearAllArbWaveforms_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_ClearAllArbWaveforms_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ClearAllArbWaveforms_cfunc(vi) + + def niRFSG_ClearArbWaveform(self, vi, waveform_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_ClearArbWaveform_cfunc is None: + self.niRFSG_ClearArbWaveform_cfunc = self._get_library_function('niRFSG_ClearArbWaveform') + self.niRFSG_ClearArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_ClearArbWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ClearArbWaveform_cfunc(vi, waveform_name) + + def niRFSG_ClearSelfCalibrateRange(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_ClearSelfCalibrateRange_cfunc is None: + self.niRFSG_ClearSelfCalibrateRange_cfunc = self._get_library_function('niRFSG_ClearSelfCalibrateRange') + self.niRFSG_ClearSelfCalibrateRange_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_ClearSelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ClearSelfCalibrateRange_cfunc(vi) + + def niRFSG_Commit(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_Commit_cfunc is None: + self.niRFSG_Commit_cfunc = self._get_library_function('niRFSG_Commit') + self.niRFSG_Commit_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_Commit_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_Commit_cfunc(vi) + + def niRFSG_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc is None: + self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc = self._get_library_function('niRFSG_ConfigureDeembeddingTableInterpolationLinear') + self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureDeembeddingTableInterpolationLinear_cfunc(vi, port, table_name, format) + + def niRFSG_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc is None: + self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc = self._get_library_function('niRFSG_ConfigureDeembeddingTableInterpolationNearest') + self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureDeembeddingTableInterpolationNearest_cfunc(vi, port, table_name) + + def niRFSG_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc is None: + self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc = self._get_library_function('niRFSG_ConfigureDeembeddingTableInterpolationSpline') + self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureDeembeddingTableInterpolationSpline_cfunc(vi, port, table_name) + + def niRFSG_ConfigureDigitalEdgeScriptTrigger(self, vi, trigger_id, source, edge): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc is None: + self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc = self._get_library_function('niRFSG_ConfigureDigitalEdgeScriptTrigger') + self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureDigitalEdgeScriptTrigger_cfunc(vi, trigger_id, source, edge) + + def niRFSG_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc is None: + self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc = self._get_library_function('niRFSG_ConfigureDigitalEdgeStartTrigger') + self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureDigitalEdgeStartTrigger_cfunc(vi, source, edge) + + def niRFSG_ConfigureDigitalLevelScriptTrigger(self, vi, trigger_id, source, level): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc is None: + self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc = self._get_library_function('niRFSG_ConfigureDigitalLevelScriptTrigger') + self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureDigitalLevelScriptTrigger_cfunc(vi, trigger_id, source, level) + + def niRFSG_ConfigureRF(self, vi, frequency, power_level): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureRF_cfunc is None: + self.niRFSG_ConfigureRF_cfunc = self._get_library_function('niRFSG_ConfigureRF') + self.niRFSG_ConfigureRF_cfunc.argtypes = [ViSession, ViReal64, ViReal64] # noqa: F405 + self.niRFSG_ConfigureRF_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureRF_cfunc(vi, frequency, power_level) + + def niRFSG_ConfigureRefClock(self, vi, ref_clock_source, ref_clock_rate): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureRefClock_cfunc is None: + self.niRFSG_ConfigureRefClock_cfunc = self._get_library_function('niRFSG_ConfigureRefClock') + self.niRFSG_ConfigureRefClock_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64] # noqa: F405 + self.niRFSG_ConfigureRefClock_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureRefClock_cfunc(vi, ref_clock_source, ref_clock_rate) + + def niRFSG_ConfigureSoftwareScriptTrigger(self, vi, trigger_id): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc is None: + self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc = self._get_library_function('niRFSG_ConfigureSoftwareScriptTrigger') + self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureSoftwareScriptTrigger_cfunc(vi, trigger_id) + + def niRFSG_ConfigureSoftwareStartTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_ConfigureSoftwareStartTrigger_cfunc is None: + self.niRFSG_ConfigureSoftwareStartTrigger_cfunc = self._get_library_function('niRFSG_ConfigureSoftwareStartTrigger') + self.niRFSG_ConfigureSoftwareStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_ConfigureSoftwareStartTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ConfigureSoftwareStartTrigger_cfunc(vi) + + def niRFSG_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 + with self._func_lock: + if self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc is None: + self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc = self._get_library_function('niRFSG_CreateDeembeddingSparameterTableArray') + self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViReal64), ViInt32, ctypes.POINTER(NIComplexNumber), ViInt32, ViInt32, ViInt32] # noqa: F405 + self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_CreateDeembeddingSparameterTableArray_cfunc(vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation) + + def niRFSG_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + with self._func_lock: + if self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc is None: + self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc = self._get_library_function('niRFSG_CreateDeembeddingSparameterTableS2PFile') + self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_CreateDeembeddingSparameterTableS2PFile_cfunc(vi, port, table_name, s2p_file_path, sparameter_orientation) + + def niRFSG_DeleteAllDeembeddingTables(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_DeleteAllDeembeddingTables_cfunc is None: + self.niRFSG_DeleteAllDeembeddingTables_cfunc = self._get_library_function('niRFSG_DeleteAllDeembeddingTables') + self.niRFSG_DeleteAllDeembeddingTables_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_DeleteAllDeembeddingTables_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_DeleteAllDeembeddingTables_cfunc(vi) + + def niRFSG_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_DeleteDeembeddingTable_cfunc is None: + self.niRFSG_DeleteDeembeddingTable_cfunc = self._get_library_function('niRFSG_DeleteDeembeddingTable') + self.niRFSG_DeleteDeembeddingTable_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_DeleteDeembeddingTable_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_DeleteDeembeddingTable_cfunc(vi, port, table_name) + + def niRFSG_DeleteScript(self, vi, script_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_DeleteScript_cfunc is None: + self.niRFSG_DeleteScript_cfunc = self._get_library_function('niRFSG_DeleteScript') + self.niRFSG_DeleteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_DeleteScript_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_DeleteScript_cfunc(vi, script_name) + + def niRFSG_DisableScriptTrigger(self, vi, trigger_id): # noqa: N802 + with self._func_lock: + if self.niRFSG_DisableScriptTrigger_cfunc is None: + self.niRFSG_DisableScriptTrigger_cfunc = self._get_library_function('niRFSG_DisableScriptTrigger') + self.niRFSG_DisableScriptTrigger_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_DisableScriptTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_DisableScriptTrigger_cfunc(vi, trigger_id) + + def niRFSG_DisableStartTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_DisableStartTrigger_cfunc is None: + self.niRFSG_DisableStartTrigger_cfunc = self._get_library_function('niRFSG_DisableStartTrigger') + self.niRFSG_DisableStartTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_DisableStartTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_DisableStartTrigger_cfunc(vi) + + def niRFSG_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niRFSG_ErrorMessage_cfunc is None: + self.niRFSG_ErrorMessage_cfunc = self._get_library_function('niRFSG_ErrorMessage') + self.niRFSG_ErrorMessage_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_ErrorMessage_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ErrorMessage_cfunc(vi, error_code, error_message) + + def niRFSG_GetAllNamedWaveformNames(self, vi, waveform_names, buffer_size, actual_buffer_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAllNamedWaveformNames_cfunc is None: + self.niRFSG_GetAllNamedWaveformNames_cfunc = self._get_library_function('niRFSG_GetAllNamedWaveformNames') + self.niRFSG_GetAllNamedWaveformNames_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetAllNamedWaveformNames_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAllNamedWaveformNames_cfunc(vi, waveform_names, buffer_size, actual_buffer_size) + + def niRFSG_GetAllScriptNames(self, vi, script_names, buffer_size, actual_buffer_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAllScriptNames_cfunc is None: + self.niRFSG_GetAllScriptNames_cfunc = self._get_library_function('niRFSG_GetAllScriptNames') + self.niRFSG_GetAllScriptNames_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetAllScriptNames_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAllScriptNames_cfunc(vi, script_names, buffer_size, actual_buffer_size) + + def niRFSG_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAttributeViBoolean_cfunc is None: + self.niRFSG_GetAttributeViBoolean_cfunc = self._get_library_function('niRFSG_GetAttributeViBoolean') + self.niRFSG_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSG_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) + + def niRFSG_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAttributeViInt32_cfunc is None: + self.niRFSG_GetAttributeViInt32_cfunc = self._get_library_function('niRFSG_GetAttributeViInt32') + self.niRFSG_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAttributeViInt32_cfunc(vi, channel_name, attribute, value) + + def niRFSG_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAttributeViInt64_cfunc is None: + self.niRFSG_GetAttributeViInt64_cfunc = self._get_library_function('niRFSG_GetAttributeViInt64') + self.niRFSG_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niRFSG_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAttributeViInt64_cfunc(vi, channel_name, attribute, value) + + def niRFSG_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAttributeViReal64_cfunc is None: + self.niRFSG_GetAttributeViReal64_cfunc = self._get_library_function('niRFSG_GetAttributeViReal64') + self.niRFSG_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSG_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAttributeViReal64_cfunc(vi, channel_name, attribute, value) + + def niRFSG_GetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAttributeViSession_cfunc is None: + self.niRFSG_GetAttributeViSession_cfunc = self._get_library_function('niRFSG_GetAttributeViSession') + self.niRFSG_GetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViSession)] # noqa: F405 + self.niRFSG_GetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAttributeViSession_cfunc(vi, channel_name, attribute, value) + + def niRFSG_GetAttributeViString(self, vi, channel_name, attribute, buf_size, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetAttributeViString_cfunc is None: + self.niRFSG_GetAttributeViString_cfunc = self._get_library_function('niRFSG_GetAttributeViString') + self.niRFSG_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetAttributeViString_cfunc(vi, channel_name, attribute, buf_size, value) + + def niRFSG_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetDeembeddingSparameters_cfunc is None: + self.niRFSG_GetDeembeddingSparameters_cfunc = self._get_library_function('niRFSG_GetDeembeddingSparameters') + self.niRFSG_GetDeembeddingSparameters_cfunc.argtypes = [ViSession, ctypes.POINTER(NIComplexNumber), ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetDeembeddingSparameters_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetDeembeddingSparameters_cfunc(vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports) + + def niRFSG_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc is None: + self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc = self._get_library_function('niRFSG_GetDeembeddingTableNumberOfPorts') + self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetDeembeddingTableNumberOfPorts_cfunc(vi, number_of_ports) + + def niRFSG_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetError_cfunc is None: + self.niRFSG_GetError_cfunc = self._get_library_function('niRFSG_GetError') + self.niRFSG_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetError_cfunc(vi, error_code, error_description_buffer_size, error_description) + + def niRFSG_GetExternalCalibrationLastDateAndTime(self, vi, year, month, day, hour, minute, second): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc is None: + self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc = self._get_library_function('niRFSG_GetExternalCalibrationLastDateAndTime') + self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetExternalCalibrationLastDateAndTime_cfunc(vi, year, month, day, hour, minute, second) + + def niRFSG_GetMaxSettablePower(self, vi, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetMaxSettablePower_cfunc is None: + self.niRFSG_GetMaxSettablePower_cfunc = self._get_library_function('niRFSG_GetMaxSettablePower') + self.niRFSG_GetMaxSettablePower_cfunc.argtypes = [ViSession, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSG_GetMaxSettablePower_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetMaxSettablePower_cfunc(vi, value) + + def niRFSG_GetScript(self, vi, script_name, script, buffer_size, actual_buffer_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetScript_cfunc is None: + self.niRFSG_GetScript_cfunc = self._get_library_function('niRFSG_GetScript') + self.niRFSG_GetScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetScript_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetScript_cfunc(vi, script_name, script, buffer_size, actual_buffer_size) + + def niRFSG_GetSelfCalibrationDateAndTime(self, vi, module, year, month, day, hour, minute, second): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetSelfCalibrationDateAndTime_cfunc is None: + self.niRFSG_GetSelfCalibrationDateAndTime_cfunc = self._get_library_function('niRFSG_GetSelfCalibrationDateAndTime') + self.niRFSG_GetSelfCalibrationDateAndTime_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetSelfCalibrationDateAndTime_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetSelfCalibrationDateAndTime_cfunc(vi, module, year, month, day, hour, minute, second) + + def niRFSG_GetSelfCalibrationTemperature(self, vi, module, temperature): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetSelfCalibrationTemperature_cfunc is None: + self.niRFSG_GetSelfCalibrationTemperature_cfunc = self._get_library_function('niRFSG_GetSelfCalibrationTemperature') + self.niRFSG_GetSelfCalibrationTemperature_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSG_GetSelfCalibrationTemperature_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetSelfCalibrationTemperature_cfunc(vi, module, temperature) + + def niRFSG_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetTerminalName_cfunc is None: + self.niRFSG_GetTerminalName_cfunc = self._get_library_function('niRFSG_GetTerminalName') + self.niRFSG_GetTerminalName_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_GetTerminalName_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetTerminalName_cfunc(vi, signal, signal_identifier, buffer_size, terminal_name) + + def niRFSG_GetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetWaveformBurstStartLocations_cfunc is None: + self.niRFSG_GetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStartLocations') + self.niRFSG_GetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size) + + def niRFSG_GetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetWaveformBurstStopLocations_cfunc is None: + self.niRFSG_GetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_GetWaveformBurstStopLocations') + self.niRFSG_GetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size) + + def niRFSG_GetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_GetWaveformMarkerEventLocations_cfunc is None: + self.niRFSG_GetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_GetWaveformMarkerEventLocations') + self.niRFSG_GetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_GetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_GetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations, required_size) + + def niRFSG_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_InitWithOptions_cfunc is None: + self.niRFSG_InitWithOptions_cfunc = self._get_library_function('niRFSG_InitWithOptions') + self.niRFSG_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niRFSG_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, new_vi) + + def niRFSG_Initiate(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_Initiate_cfunc is None: + self.niRFSG_Initiate_cfunc = self._get_library_function('niRFSG_Initiate') + self.niRFSG_Initiate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_Initiate_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_Initiate_cfunc(vi) + + def niRFSG_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 + with self._func_lock: + if self.niRFSG_LoadConfigurationsFromFile_cfunc is None: + self.niRFSG_LoadConfigurationsFromFile_cfunc = self._get_library_function('niRFSG_LoadConfigurationsFromFile') + self.niRFSG_LoadConfigurationsFromFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_LoadConfigurationsFromFile_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_LoadConfigurationsFromFile_cfunc(vi, channel_name, file_path) + + def niRFSG_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niRFSG_LockSession_cfunc is None: + self.niRFSG_LockSession_cfunc = self._get_library_function('niRFSG_LockSession') + self.niRFSG_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSG_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_LockSession_cfunc(vi, caller_has_lock) + + def niRFSG_PerformPowerSearch(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_PerformPowerSearch_cfunc is None: + self.niRFSG_PerformPowerSearch_cfunc = self._get_library_function('niRFSG_PerformPowerSearch') + self.niRFSG_PerformPowerSearch_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_PerformPowerSearch_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_PerformPowerSearch_cfunc(vi) + + def niRFSG_PerformThermalCorrection(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_PerformThermalCorrection_cfunc is None: + self.niRFSG_PerformThermalCorrection_cfunc = self._get_library_function('niRFSG_PerformThermalCorrection') + self.niRFSG_PerformThermalCorrection_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_PerformThermalCorrection_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_PerformThermalCorrection_cfunc(vi) + + def niRFSG_QueryArbWaveformCapabilities(self, vi, max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size): # noqa: N802 + with self._func_lock: + if self.niRFSG_QueryArbWaveformCapabilities_cfunc is None: + self.niRFSG_QueryArbWaveformCapabilities_cfunc = self._get_library_function('niRFSG_QueryArbWaveformCapabilities') + self.niRFSG_QueryArbWaveformCapabilities_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niRFSG_QueryArbWaveformCapabilities_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_QueryArbWaveformCapabilities_cfunc(vi, max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size) + + def niRFSG_ReadAndDownloadWaveformFromFileTDMS(self, vi, waveform_name, file_path, waveform_index): # noqa: N802 + with self._func_lock: + if self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc is None: + self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc = self._get_library_function('niRFSG_ReadAndDownloadWaveformFromFileTDMS') + self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViUInt32] # noqa: F405 + self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ReadAndDownloadWaveformFromFileTDMS_cfunc(vi, waveform_name, file_path, waveform_index) + + def niRFSG_ResetDevice(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_ResetDevice_cfunc is None: + self.niRFSG_ResetDevice_cfunc = self._get_library_function('niRFSG_ResetDevice') + self.niRFSG_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_ResetDevice_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ResetDevice_cfunc(vi) + + def niRFSG_ResetWithDefaults(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_ResetWithDefaults_cfunc is None: + self.niRFSG_ResetWithDefaults_cfunc = self._get_library_function('niRFSG_ResetWithDefaults') + self.niRFSG_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ResetWithDefaults_cfunc(vi) + + def niRFSG_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 + with self._func_lock: + if self.niRFSG_ResetWithOptions_cfunc is None: + self.niRFSG_ResetWithOptions_cfunc = self._get_library_function('niRFSG_ResetWithOptions') + self.niRFSG_ResetWithOptions_cfunc.argtypes = [ViSession, ViUInt64] # noqa: F405 + self.niRFSG_ResetWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_ResetWithOptions_cfunc(vi, steps_to_omit) + + def niRFSG_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 + with self._func_lock: + if self.niRFSG_SaveConfigurationsToFile_cfunc is None: + self.niRFSG_SaveConfigurationsToFile_cfunc = self._get_library_function('niRFSG_SaveConfigurationsToFile') + self.niRFSG_SaveConfigurationsToFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_SaveConfigurationsToFile_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SaveConfigurationsToFile_cfunc(vi, channel_name, file_path) + + def niRFSG_SelectArbWaveform(self, vi, waveform_name): # noqa: N802 + with self._func_lock: + if self.niRFSG_SelectArbWaveform_cfunc is None: + self.niRFSG_SelectArbWaveform_cfunc = self._get_library_function('niRFSG_SelectArbWaveform') + self.niRFSG_SelectArbWaveform_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_SelectArbWaveform_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SelectArbWaveform_cfunc(vi, waveform_name) + + def niRFSG_SelfCal(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_SelfCal_cfunc is None: + self.niRFSG_SelfCal_cfunc = self._get_library_function('niRFSG_SelfCal') + self.niRFSG_SelfCal_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_SelfCal_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SelfCal_cfunc(vi) + + def niRFSG_SelfCalibrateRange(self, vi, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 + with self._func_lock: + if self.niRFSG_SelfCalibrateRange_cfunc is None: + self.niRFSG_SelfCalibrateRange_cfunc = self._get_library_function('niRFSG_SelfCalibrateRange') + self.niRFSG_SelfCalibrateRange_cfunc.argtypes = [ViSession, ViInt64, ViReal64, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niRFSG_SelfCalibrateRange_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SelfCalibrateRange_cfunc(vi, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level) + + def niRFSG_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 + with self._func_lock: + if self.niRFSG_SendSoftwareEdgeTrigger_cfunc is None: + self.niRFSG_SendSoftwareEdgeTrigger_cfunc = self._get_library_function('niRFSG_SendSoftwareEdgeTrigger') + self.niRFSG_SendSoftwareEdgeTrigger_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_SendSoftwareEdgeTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SendSoftwareEdgeTrigger_cfunc(vi, trigger, trigger_identifier) + + def niRFSG_SetArbWaveformNextWritePosition(self, vi, waveform_name, relative_to, offset): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetArbWaveformNextWritePosition_cfunc is None: + self.niRFSG_SetArbWaveformNextWritePosition_cfunc = self._get_library_function('niRFSG_SetArbWaveformNextWritePosition') + self.niRFSG_SetArbWaveformNextWritePosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViInt32] # noqa: F405 + self.niRFSG_SetArbWaveformNextWritePosition_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetArbWaveformNextWritePosition_cfunc(vi, waveform_name, relative_to, offset) + + def niRFSG_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetAttributeViBoolean_cfunc is None: + self.niRFSG_SetAttributeViBoolean_cfunc = self._get_library_function('niRFSG_SetAttributeViBoolean') + self.niRFSG_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niRFSG_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetAttributeViBoolean_cfunc(vi, channel_name, attribute, value) + + def niRFSG_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetAttributeViInt32_cfunc is None: + self.niRFSG_SetAttributeViInt32_cfunc = self._get_library_function('niRFSG_SetAttributeViInt32') + self.niRFSG_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niRFSG_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetAttributeViInt32_cfunc(vi, channel_name, attribute, value) + + def niRFSG_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetAttributeViInt64_cfunc is None: + self.niRFSG_SetAttributeViInt64_cfunc = self._get_library_function('niRFSG_SetAttributeViInt64') + self.niRFSG_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 + self.niRFSG_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetAttributeViInt64_cfunc(vi, channel_name, attribute, value) + + def niRFSG_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetAttributeViReal64_cfunc is None: + self.niRFSG_SetAttributeViReal64_cfunc = self._get_library_function('niRFSG_SetAttributeViReal64') + self.niRFSG_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niRFSG_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetAttributeViReal64_cfunc(vi, channel_name, attribute, value) + + def niRFSG_SetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetAttributeViSession_cfunc is None: + self.niRFSG_SetAttributeViSession_cfunc = self._get_library_function('niRFSG_SetAttributeViSession') + self.niRFSG_SetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViSession] # noqa: F405 + self.niRFSG_SetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetAttributeViSession_cfunc(vi, channel_name, attribute, value) + + def niRFSG_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetAttributeViString_cfunc is None: + self.niRFSG_SetAttributeViString_cfunc = self._get_library_function('niRFSG_SetAttributeViString') + self.niRFSG_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetAttributeViString_cfunc(vi, channel_name, attribute, value) + + def niRFSG_SetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetWaveformBurstStartLocations_cfunc is None: + self.niRFSG_SetWaveformBurstStartLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStartLocations') + self.niRFSG_SetWaveformBurstStartLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSG_SetWaveformBurstStartLocations_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetWaveformBurstStartLocations_cfunc(vi, channel_name, number_of_locations, locations) + + def niRFSG_SetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetWaveformBurstStopLocations_cfunc is None: + self.niRFSG_SetWaveformBurstStopLocations_cfunc = self._get_library_function('niRFSG_SetWaveformBurstStopLocations') + self.niRFSG_SetWaveformBurstStopLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSG_SetWaveformBurstStopLocations_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetWaveformBurstStopLocations_cfunc(vi, channel_name, number_of_locations, locations) + + def niRFSG_SetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 + with self._func_lock: + if self.niRFSG_SetWaveformMarkerEventLocations_cfunc is None: + self.niRFSG_SetWaveformMarkerEventLocations_cfunc = self._get_library_function('niRFSG_SetWaveformMarkerEventLocations') + self.niRFSG_SetWaveformMarkerEventLocations_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niRFSG_SetWaveformMarkerEventLocations_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_SetWaveformMarkerEventLocations_cfunc(vi, channel_name, number_of_locations, locations) + + def niRFSG_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niRFSG_UnlockSession_cfunc is None: + self.niRFSG_UnlockSession_cfunc = self._get_library_function('niRFSG_UnlockSession') + self.niRFSG_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niRFSG_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_UnlockSession_cfunc(vi, caller_has_lock) + + def niRFSG_WaitUntilSettled(self, vi, max_time_milliseconds): # noqa: N802 + with self._func_lock: + if self.niRFSG_WaitUntilSettled_cfunc is None: + self.niRFSG_WaitUntilSettled_cfunc = self._get_library_function('niRFSG_WaitUntilSettled') + self.niRFSG_WaitUntilSettled_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niRFSG_WaitUntilSettled_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_WaitUntilSettled_cfunc(vi, max_time_milliseconds) + + def niRFSG_WriteArbWaveformComplexF32(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 + with self._func_lock: + if self.niRFSG_WriteArbWaveformComplexF32_cfunc is None: + self.niRFSG_WriteArbWaveformComplexF32_cfunc = self._get_library_function('niRFSG_WriteArbWaveformComplexF32') + self.niRFSG_WriteArbWaveformComplexF32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(NIComplexNumberF32), ViBoolean] # noqa: F405 + self.niRFSG_WriteArbWaveformComplexF32_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_WriteArbWaveformComplexF32_cfunc(vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending) + + def niRFSG_WriteArbWaveformComplexF64(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 + with self._func_lock: + if self.niRFSG_WriteArbWaveformComplexF64_cfunc is None: + self.niRFSG_WriteArbWaveformComplexF64_cfunc = self._get_library_function('niRFSG_WriteArbWaveformComplexF64') + self.niRFSG_WriteArbWaveformComplexF64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(NIComplexNumber), ViBoolean] # noqa: F405 + self.niRFSG_WriteArbWaveformComplexF64_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_WriteArbWaveformComplexF64_cfunc(vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending) + + def niRFSG_WriteArbWaveformComplexI16(self, vi, waveform_name, number_of_samples, waveform_data_array): # noqa: N802 + with self._func_lock: + if self.niRFSG_WriteArbWaveformComplexI16_cfunc is None: + self.niRFSG_WriteArbWaveformComplexI16_cfunc = self._get_library_function('niRFSG_WriteArbWaveformComplexI16') + self.niRFSG_WriteArbWaveformComplexI16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(NIComplexI16)] # noqa: F405 + self.niRFSG_WriteArbWaveformComplexI16_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_WriteArbWaveformComplexI16_cfunc(vi, waveform_name, number_of_samples, waveform_data_array) + + def niRFSG_WriteScript(self, vi, script): # noqa: N802 + with self._func_lock: + if self.niRFSG_WriteScript_cfunc is None: + self.niRFSG_WriteScript_cfunc = self._get_library_function('niRFSG_WriteScript') + self.niRFSG_WriteScript_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_WriteScript_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_WriteScript_cfunc(vi, script) + + def niRFSG_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_close_cfunc is None: + self.niRFSG_close_cfunc = self._get_library_function('niRFSG_close') + self.niRFSG_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_close_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_close_cfunc(vi) + + def niRFSG_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niRFSG_reset_cfunc is None: + self.niRFSG_reset_cfunc = self._get_library_function('niRFSG_reset') + self.niRFSG_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niRFSG_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_reset_cfunc(vi) + + def niRFSG_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niRFSG_self_test_cfunc is None: + self.niRFSG_self_test_cfunc = self._get_library_function('niRFSG_self_test') + self.niRFSG_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niRFSG_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niRFSG_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/nirfsg/nirfsg/_library_interpreter.py b/generated/nirfsg/nirfsg/_library_interpreter.py new file mode 100644 index 0000000000..354881d32e --- /dev/null +++ b/generated/nirfsg/nirfsg/_library_interpreter.py @@ -0,0 +1,820 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import nirfsg._complextype as _complextype +import nirfsg._library_singleton as _library_singleton +import nirfsg._visatype as _visatype +import nirfsg.enums as enums # noqa: F401 +import nirfsg.errors as errors + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + if library_type in (_complextype.NIComplexI16, _complextype.NIComplexNumberF32, _complextype.NIComplexNumber): + complex_dtype = numpy.dtype(library_type) + if value.ndim > 1: + # we create a flattened view of the multi-dimensional numpy array + restructured_array_view = value.ravel().view(complex_dtype) + else: + restructured_array_view = value.view(complex_dtype) + return restructured_array_view.ctypes.data_as(ctypes.POINTER(library_type)) + else: + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_Abort(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def allocate_arb_waveform(self, waveform_name, size_in_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + size_in_samples_ctype = _visatype.ViInt32(size_in_samples) # case S150 + error_code = self._library.niRFSG_AllocateArbWaveform(vi_ctype, waveform_name_ctype, size_in_samples_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def change_external_calibration_password(self, old_password, new_password): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + old_password_ctype = ctypes.create_string_buffer(old_password.encode(self._encoding)) # case C020 + new_password_ctype = ctypes.create_string_buffer(new_password.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_ChangeExternalCalibrationPassword(vi_ctype, old_password_ctype, new_password_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def check_generation_status(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + is_done_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niRFSG_CheckGenerationStatus(vi_ctype, None if is_done_ctype is None else (ctypes.pointer(is_done_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(is_done_ctype.value) + + def check_if_script_exists(self, script_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 + script_exists_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niRFSG_CheckIfScriptExists(vi_ctype, script_name_ctype, None if script_exists_ctype is None else (ctypes.pointer(script_exists_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(script_exists_ctype.value) + + def check_if_waveform_exists(self, waveform_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + waveform_exists_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niRFSG_CheckIfWaveformExists(vi_ctype, waveform_name_ctype, None if waveform_exists_ctype is None else (ctypes.pointer(waveform_exists_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(waveform_exists_ctype.value) + + def clear_all_arb_waveforms(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_ClearAllArbWaveforms(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_arb_waveform(self, waveform_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_ClearArbWaveform(vi_ctype, waveform_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_self_calibrate_range(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_ClearSelfCalibrateRange(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def commit(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_Commit(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_deembedding_table_interpolation_linear(self, port, table_name, format): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + format_ctype = _visatype.ViInt32(format.value) # case S130 + error_code = self._library.niRFSG_ConfigureDeembeddingTableInterpolationLinear(vi_ctype, port_ctype, table_name_ctype, format_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_deembedding_table_interpolation_nearest(self, port, table_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_ConfigureDeembeddingTableInterpolationNearest(vi_ctype, port_ctype, table_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_deembedding_table_interpolation_spline(self, port, table_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_ConfigureDeembeddingTableInterpolationSpline(vi_ctype, port_ctype, table_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_digital_edge_script_trigger(self, trigger_id, source, edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + error_code = self._library.niRFSG_ConfigureDigitalEdgeScriptTrigger(vi_ctype, trigger_id_ctype, source_ctype, edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_digital_edge_start_trigger(self, source, edge): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + edge_ctype = _visatype.ViInt32(edge.value) # case S130 + error_code = self._library.niRFSG_ConfigureDigitalEdgeStartTrigger(vi_ctype, source_ctype, edge_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_digital_level_script_trigger(self, trigger_id, source, level): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 + source_ctype = ctypes.create_string_buffer(source.encode(self._encoding)) # case C020 + level_ctype = _visatype.ViInt32(level) # case S150 + error_code = self._library.niRFSG_ConfigureDigitalLevelScriptTrigger(vi_ctype, trigger_id_ctype, source_ctype, level_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_rf(self, frequency, power_level): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + frequency_ctype = _visatype.ViReal64(frequency) # case S150 + power_level_ctype = _visatype.ViReal64(power_level) # case S150 + error_code = self._library.niRFSG_ConfigureRF(vi_ctype, frequency_ctype, power_level_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_ref_clock(self, ref_clock_source, ref_clock_rate): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + ref_clock_source_ctype = ctypes.create_string_buffer(ref_clock_source.encode(self._encoding)) # case C020 + ref_clock_rate_ctype = _visatype.ViReal64(ref_clock_rate) # case S150 + error_code = self._library.niRFSG_ConfigureRefClock(vi_ctype, ref_clock_source_ctype, ref_clock_rate_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_software_script_trigger(self, trigger_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 + error_code = self._library.niRFSG_ConfigureSoftwareScriptTrigger(vi_ctype, trigger_id_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_software_start_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_ConfigureSoftwareStartTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + frequencies_ctype = _get_ctypes_pointer_for_buffer(value=frequencies) # case B510 + frequencies_size_ctype = _visatype.ViInt32(0 if frequencies is None else len(frequencies)) # case S160 + sparameter_table_ctype = _get_ctypes_pointer_for_buffer(value=sparameter_table, library_type=_complextype.NIComplexNumber) # case B510 + sparameter_table_size_ctype = _visatype.ViInt32(0 if sparameter_table is None else sparameter_table.size) # case S161 + number_of_ports_ctype = _visatype.ViInt32(number_of_ports) # case S150 + sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 + error_code = self._library.niRFSG_CreateDeembeddingSparameterTableArray(vi_ctype, port_ctype, table_name_ctype, frequencies_ctype, frequencies_size_ctype, sparameter_table_ctype, sparameter_table_size_ctype, number_of_ports_ctype, sparameter_orientation_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + s2p_file_path_ctype = ctypes.create_string_buffer(s2p_file_path.encode(self._encoding)) # case C020 + sparameter_orientation_ctype = _visatype.ViInt32(sparameter_orientation.value) # case S130 + error_code = self._library.niRFSG_CreateDeembeddingSparameterTableS2PFile(vi_ctype, port_ctype, table_name_ctype, s2p_file_path_ctype, sparameter_orientation_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_all_deembedding_tables(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_DeleteAllDeembeddingTables(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_deembedding_table(self, port, table_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + port_ctype = ctypes.create_string_buffer(port.encode(self._encoding)) # case C020 + table_name_ctype = ctypes.create_string_buffer(table_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_DeleteDeembeddingTable(vi_ctype, port_ctype, table_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def delete_script(self, script_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_DeleteScript(vi_ctype, script_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable_script_trigger(self, trigger_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_id_ctype = ctypes.create_string_buffer(trigger_id.encode(self._encoding)) # case C010 + error_code = self._library.niRFSG_DisableScriptTrigger(vi_ctype, trigger_id_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable_start_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_DisableStartTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niRFSG_ErrorMessage(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def get_all_named_waveform_names(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_names_ctype = None # case C090 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + actual_buffer_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetAllNamedWaveformNames(vi_ctype, waveform_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_buffer_size_ctype.value) # case S200 + waveform_names_ctype = (_visatype.ViChar * actual_buffer_size_ctype.value)() # case C100 + error_code = self._library.niRFSG_GetAllNamedWaveformNames(vi_ctype, waveform_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_names_ctype.value.decode(self._encoding) + + def get_all_script_names(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + script_names_ctype = None # case C090 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + actual_buffer_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetAllScriptNames(vi_ctype, script_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_buffer_size_ctype.value) # case S200 + script_names_ctype = (_visatype.ViChar * actual_buffer_size_ctype.value)() # case C100 + error_code = self._library.niRFSG_GetAllScriptNames(vi_ctype, script_names_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return script_names_ctype.value.decode(self._encoding) + + def get_attribute_vi_boolean(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niRFSG_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_int64(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niRFSG_GetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niRFSG_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(value_ctype.value) + + def get_attribute_vi_session(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niRFSG_GetAttributeViSession(vi_ctype, channel_name_ctype, attribute_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + buf_size_ctype = _visatype.ViInt32() # case S170 + value_ctype = None # case C050 + error_code = self._library.niRFSG_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buf_size_ctype = _visatype.ViInt32(error_code) # case S180 + value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 + error_code = self._library.niRFSG_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return value_ctype.value.decode(self._encoding) + + def get_deembedding_sparameters(self): + import numpy as np + number_of_ports = self.get_deembedding_table_number_of_ports() + sparameters_array_size = number_of_ports ** 2 + sparameters = np.full((number_of_ports, number_of_ports), 0 + 0j, dtype=np.complex128) + vi_ctype = _visatype.ViSession(self._vi) # case S110 + sparameters_ctype = _get_ctypes_pointer_for_buffer(value=sparameters, library_type=_complextype.NIComplexNumber) # case B510 + sparameters_array_size_ctype = _visatype.ViInt32(sparameters_array_size) # case S150 + number_of_sparameters_ctype = _visatype.ViInt32() # case S220 + number_of_ports_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetDeembeddingSparameters(vi_ctype, sparameters_ctype, sparameters_array_size_ctype, None if number_of_sparameters_ctype is None else (ctypes.pointer(number_of_sparameters_ctype)), None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + sparameters = sparameters.reshape((int(number_of_ports_ctype.value), int(number_of_ports_ctype.value))) + return sparameters + + def get_deembedding_table_number_of_ports(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + number_of_ports_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetDeembeddingTableNumberOfPorts(vi_ctype, None if number_of_ports_ctype is None else (ctypes.pointer(number_of_ports_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(number_of_ports_ctype.value) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + error_description_buffer_size_ctype = _visatype.ViInt32() # case S170 + error_description_ctype = None # case C050 + error_code = self._library.niRFSG_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + error_description_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + error_description_ctype = (_visatype.ViChar * error_description_buffer_size_ctype.value)() # case C060 + error_code = self._library.niRFSG_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), error_description_buffer_size_ctype, error_description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), error_description_ctype.value.decode(self._encoding) + + def get_external_calibration_last_date_and_time(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + second_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetExternalCalibrationLastDateAndTime(vi_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype)), None if second_ctype is None else (ctypes.pointer(second_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value), int(second_ctype.value) + + def get_max_settable_power(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niRFSG_GetMaxSettablePower(vi_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(value_ctype.value) + + def get_script(self, script_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + script_name_ctype = ctypes.create_string_buffer(script_name.encode(self._encoding)) # case C020 + script_ctype = None # case C090 + buffer_size_ctype = _visatype.ViInt32(0) # case S190 + actual_buffer_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetScript(vi_ctype, script_name_ctype, script_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(actual_buffer_size_ctype.value) # case S200 + script_ctype = (_visatype.ViChar * actual_buffer_size_ctype.value)() # case C100 + error_code = self._library.niRFSG_GetScript(vi_ctype, script_name_ctype, script_ctype, buffer_size_ctype, None if actual_buffer_size_ctype is None else (ctypes.pointer(actual_buffer_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return script_ctype.value.decode(self._encoding) + + def get_self_calibration_date_and_time(self, module): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + module_ctype = _visatype.ViInt32(module.value) # case S130 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + hour_ctype = _visatype.ViInt32() # case S220 + minute_ctype = _visatype.ViInt32() # case S220 + second_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetSelfCalibrationDateAndTime(vi_ctype, module_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype)), None if hour_ctype is None else (ctypes.pointer(hour_ctype)), None if minute_ctype is None else (ctypes.pointer(minute_ctype)), None if second_ctype is None else (ctypes.pointer(second_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value), int(hour_ctype.value), int(minute_ctype.value), int(second_ctype.value) + + def get_self_calibration_temperature(self, module): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + module_ctype = _visatype.ViInt32(module.value) # case S130 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niRFSG_GetSelfCalibrationTemperature(vi_ctype, module_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def get_terminal_name(self, signal, signal_identifier): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + signal_ctype = _visatype.ViInt32(signal.value) # case S130 + signal_identifier_ctype = ctypes.create_string_buffer(signal_identifier.encode(self._encoding)) # case C020 + buffer_size_ctype = _visatype.ViInt32() # case S170 + terminal_name_ctype = None # case C050 + error_code = self._library.niRFSG_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + terminal_name_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niRFSG_GetTerminalName(vi_ctype, signal_ctype, signal_identifier_ctype, buffer_size_ctype, terminal_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return terminal_name_ctype.value.decode(self._encoding) + + def get_waveform_burst_start_locations(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + number_of_locations_ctype = _visatype.ViInt32(0) # case S190 + locations_ctype = None # case B610 + required_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + number_of_locations_ctype = _visatype.ViInt32(required_size_ctype.value) # case S200 + locations_size = required_size_ctype.value # case B620 + locations_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=locations_size) # case B620 + error_code = self._library.niRFSG_GetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(locations_ctype[i]) for i in range(number_of_locations_ctype.value)] + + def get_waveform_burst_stop_locations(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + number_of_locations_ctype = _visatype.ViInt32(0) # case S190 + locations_ctype = None # case B610 + required_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + number_of_locations_ctype = _visatype.ViInt32(required_size_ctype.value) # case S200 + locations_size = required_size_ctype.value # case B620 + locations_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=locations_size) # case B620 + error_code = self._library.niRFSG_GetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(locations_ctype[i]) for i in range(number_of_locations_ctype.value)] + + def get_waveform_marker_event_locations(self, channel_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + number_of_locations_ctype = _visatype.ViInt32(0) # case S190 + locations_ctype = None # case B610 + required_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_GetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + number_of_locations_ctype = _visatype.ViInt32(required_size_ctype.value) # case S200 + locations_size = required_size_ctype.value # case B620 + locations_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=locations_size) # case B620 + error_code = self._library.niRFSG_GetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype, None if required_size_ctype is None else (ctypes.pointer(required_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(locations_ctype[i]) for i in range(number_of_locations_ctype.value)] + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + id_query_ctype = _visatype.ViBoolean(id_query) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + new_vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niRFSG_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if new_vi_ctype is None else (ctypes.pointer(new_vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(new_vi_ctype.value) + + def initiate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_Initiate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def load_configurations_from_file(self, channel_name, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_LoadConfigurationsFromFile(vi_ctype, channel_name_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_power_search(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_PerformPowerSearch(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def perform_thermal_correction(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_PerformThermalCorrection(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def query_arb_waveform_capabilities(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + max_number_waveforms_ctype = _visatype.ViInt32() # case S220 + waveform_quantum_ctype = _visatype.ViInt32() # case S220 + min_waveform_size_ctype = _visatype.ViInt32() # case S220 + max_waveform_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niRFSG_QueryArbWaveformCapabilities(vi_ctype, None if max_number_waveforms_ctype is None else (ctypes.pointer(max_number_waveforms_ctype)), None if waveform_quantum_ctype is None else (ctypes.pointer(waveform_quantum_ctype)), None if min_waveform_size_ctype is None else (ctypes.pointer(min_waveform_size_ctype)), None if max_waveform_size_ctype is None else (ctypes.pointer(max_waveform_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(max_number_waveforms_ctype.value), int(waveform_quantum_ctype.value), int(min_waveform_size_ctype.value), int(max_waveform_size_ctype.value) + + def read_and_download_waveform_from_file_tdms(self, waveform_name, file_path, waveform_index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + waveform_index_ctype = _visatype.ViUInt32(waveform_index) # case S150 + error_code = self._library.niRFSG_ReadAndDownloadWaveformFromFileTDMS(vi_ctype, waveform_name_ctype, file_path_ctype, waveform_index_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_device(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_ResetDevice(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_defaults(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_ResetWithDefaults(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_options(self, steps_to_omit): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + steps_to_omit_ctype = _visatype.ViUInt64(steps_to_omit.value) # case S130 + error_code = self._library.niRFSG_ResetWithOptions(vi_ctype, steps_to_omit_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def save_configurations_to_file(self, channel_name, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_SaveConfigurationsToFile(vi_ctype, channel_name_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def select_arb_waveform(self, waveform_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_SelectArbWaveform(vi_ctype, waveform_name_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_cal(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_SelfCal(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_calibrate_range(self, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + steps_to_omit_ctype = _visatype.ViInt64(steps_to_omit.value) # case S130 + min_frequency_ctype = _visatype.ViReal64(min_frequency) # case S150 + max_frequency_ctype = _visatype.ViReal64(max_frequency) # case S150 + min_power_level_ctype = _visatype.ViReal64(min_power_level) # case S150 + max_power_level_ctype = _visatype.ViReal64(max_power_level) # case S150 + error_code = self._library.niRFSG_SelfCalibrateRange(vi_ctype, steps_to_omit_ctype, min_frequency_ctype, max_frequency_ctype, min_power_level_ctype, max_power_level_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_edge_trigger(self, trigger, trigger_identifier): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_ctype = _visatype.ViInt32(trigger.value) # case S130 + trigger_identifier_ctype = ctypes.create_string_buffer(trigger_identifier.value.encode(self._encoding)) # case C030 + error_code = self._library.niRFSG_SendSoftwareEdgeTrigger(vi_ctype, trigger_ctype, trigger_identifier_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_arb_waveform_next_write_position(self, waveform_name, relative_to, offset): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + relative_to_ctype = _visatype.ViInt32(relative_to.value) # case S130 + offset_ctype = _visatype.ViInt32(offset) # case S150 + error_code = self._library.niRFSG_SetArbWaveformNextWritePosition(vi_ctype, waveform_name_ctype, relative_to_ctype, offset_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViBoolean(value) # case S150 + error_code = self._library.niRFSG_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt32(value) # case S150 + error_code = self._library.niRFSG_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int64(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViInt64(value) # case S150 + error_code = self._library.niRFSG_SetAttributeViInt64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViReal64(value) # case S150 + error_code = self._library.niRFSG_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_session(self, channel_name, attribute): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_SetAttributeViSession(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_ctype = _visatype.ViAttr(attribute) # case S150 + value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_waveform_burst_start_locations(self, channel_name, locations): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + number_of_locations_ctype = _visatype.ViInt32(0 if locations is None else len(locations)) # case S160 + locations_ctype = _get_ctypes_pointer_for_buffer(value=locations, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niRFSG_SetWaveformBurstStartLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_waveform_burst_stop_locations(self, channel_name, locations): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + number_of_locations_ctype = _visatype.ViInt32(0 if locations is None else len(locations)) # case S160 + locations_ctype = _get_ctypes_pointer_for_buffer(value=locations, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niRFSG_SetWaveformBurstStopLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_waveform_marker_event_locations(self, channel_name, locations): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + number_of_locations_ctype = _visatype.ViInt32(0 if locations is None else len(locations)) # case S160 + locations_ctype = _get_ctypes_pointer_for_buffer(value=locations, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niRFSG_SetWaveformMarkerEventLocations(vi_ctype, channel_name_ctype, number_of_locations_ctype, locations_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_until_settled(self, max_time_milliseconds): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + max_time_milliseconds_ctype = _visatype.ViInt32(max_time_milliseconds) # case S150 + error_code = self._library.niRFSG_WaitUntilSettled(vi_ctype, max_time_milliseconds_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_arb_waveform_complex_f32(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumberF32) # case B510 + more_data_pending_ctype = _visatype.ViBoolean(more_data_pending) # case S150 + error_code = self._library.niRFSG_WriteArbWaveformComplexF32(vi_ctype, waveform_name_ctype, number_of_samples_ctype, waveform_data_array_ctype, more_data_pending_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_arb_waveform_complex_f64(self, waveform_name, waveform_data_array, more_data_pending): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array)) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexNumber) # case B510 + more_data_pending_ctype = _visatype.ViBoolean(more_data_pending) # case S150 + error_code = self._library.niRFSG_WriteArbWaveformComplexF64(vi_ctype, waveform_name_ctype, number_of_samples_ctype, waveform_data_array_ctype, more_data_pending_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_arb_waveform_complex_i16(self, waveform_name, waveform_data_array): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + waveform_name_ctype = ctypes.create_string_buffer(waveform_name.encode(self._encoding)) # case C020 + number_of_samples_ctype = _visatype.ViInt32(0 if waveform_data_array is None else len(waveform_data_array) // 2) # case S160 + waveform_data_array_ctype = _get_ctypes_pointer_for_buffer(value=waveform_data_array, library_type=_complextype.NIComplexI16) # case B510 + error_code = self._library.niRFSG_WriteArbWaveformComplexI16(vi_ctype, waveform_name_ctype, number_of_samples_ctype, waveform_data_array_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def write_script(self, script): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + script_ctype = ctypes.create_string_buffer(script.encode(self._encoding)) # case C020 + error_code = self._library.niRFSG_WriteScript(vi_ctype, script_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niRFSG_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niRFSG_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/nirfsg/nirfsg/_library_singleton.py b/generated/nirfsg/nirfsg/_library_singleton.py new file mode 100644 index 0000000000..7159dee677 --- /dev/null +++ b/generated/nirfsg/nirfsg/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nirfsg._library as _library +import nirfsg.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nirfsg', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niRFSG.dll', 'type': 'windll'}, + '64bit': {'name': 'niRFSG_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nirfsg. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nirfsg/nirfsg/_visatype.py b/generated/nirfsg/nirfsg/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nirfsg/nirfsg/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nirfsg/nirfsg/enums.py b/generated/nirfsg/nirfsg/enums.py new file mode 100644 index 0000000000..0b4b514e13 --- /dev/null +++ b/generated/nirfsg/nirfsg/enums.py @@ -0,0 +1,855 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum +from enum import IntFlag + + +class AllowOutOfSpecificationUserSettings(Enum): + DISABLE = 0 + r''' + Disables out-of-specification user settings. + ''' + ENABLE = 1 + r''' + Enables out-of-specification user settings. + ''' + + +class AmpPath(Enum): + HIGH_POWER = 16000 + r''' + Sets the amplification path to use the high power path. + ''' + LOW_HARMONIC = 16001 + r''' + Sets the amplification path to use the low harmonic path. + ''' + + +class AnalogModulationFmBand(Enum): + NARROWBAND = 17000 + r''' + Specifies narrowband frequency modulation. + ''' + WIDEBAND = 17001 + r''' + Specifies wideband frequency modulation. + ''' + + +class AnalogModulationFmNarrowbandIntegrator(Enum): + RANGE_100_HERTZ_TO_1_KILOHERTZ = 18000 + r''' + Specifies a range from 100Hz to 1kHz. + ''' + RANGE_1_KILOHERTZ_TO_10_KILOHERTZ = 18001 + r''' + Specifies a range from 1kHz to 10kHz. + ''' + RANGE_10_KILOHERTZ_TO_100_KILOHERTZ = 18002 + r''' + Specifies a range from 10kHz to 100kHz. + ''' + + +class AnalogModulationPmMode(Enum): + HIGH_DEVIATION = 19000 + r''' + Specifies high deviation. High deviation comes at the expense of a higher phase noise. + ''' + LOW_PHASE_NOISE = 19001 + r''' + Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. + ''' + + +class AnalogModulationType(Enum): + NONE = 0 + r''' + Disables analog modulation. + ''' + FM = 2000 + r''' + Specifies that the analog modulation type is FM. + ''' + PM = 2001 + r''' + Specifies that the analog modulation type is PM. + ''' + AM = 2002 + r''' + Specifies that the analog modulation type is AM. + ''' + + +class ArbOnboardSampleClockMode(Enum): + HIGH_RESOLUTION = 6000 + r''' + Sample rates are generated by a high-resolution clock. + ''' + DIVIDE_DOWN = 6001 + r''' + Sample rates are generated by dividing the source frequency. + ''' + + +class ArbSampleClockSource(Enum): + ONBOARD_CLOCK = 'OnboardClock' + r''' + Uses the AWG module onboard clock as the Sample Clock source. + ''' + CLK_IN = 'ClkIn' + r''' + Uses the external clock as the Sample Clock source. + ''' + + +class AutomaticLevelControl(Enum): + DISABLE = 0 + r''' + Disables ALC. + ''' + ENABLE = 1 + r''' + Enables the ALC. + ''' + + +class AutomaticPowerSearch(Enum): + DISABLE = 0 + r''' + Disables automatic power search. + ''' + ENABLE = 1 + r''' + Enables automatic power search. + ''' + + +class AutomaticThermalCorrection(Enum): + DISABLE = 0 + r''' + Automatic thermal correction is disabled. + ''' + ENABLE = 1 + r''' + Automatic thermal correction is enabled. + ''' + + +class DeembeddingType(Enum): + NONE = 25000 + r''' + De-embedding is not applied to the measurement. + ''' + SCALAR = 25001 + r''' + De-embeds the measurement using only the gain term. + ''' + VECTOR = 25002 + r''' + De-embeds the measurement using the gain term and the reflection term. + ''' + AMPLITUDE_FLATNESS = 25003 + r''' + De-embeds the measurement using wideband amplitude flatness correction. + ''' + AMPLITUDE_AND_PHASE_FLATNESS = 25004 + r''' + De-embeds the measurement using wideband amplitude and phase flatness correction. + ''' + + +class DigitalEqualizationEnabled(Enum): + DISABLE = 0 + r''' + Filter is not applied + ''' + ENABLE = 1 + r''' + Filter is applied. + ''' + + +class DirectDownload(Enum): + DISABLE = 0 + r''' + The RF In local oscillator signal is not present at the front panel LO OUT connector. + ''' + ENABLE = 1 + r''' + The RF In local oscillator signal is present at the front panel LO OUT connector. + ''' + UNSPECIFIED = -2 + r''' + The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. + ''' + + +class Format(Enum): + MAGNITUDE_AND_PHASE = 26001 + r''' + Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. + ''' + MAGNITUDE_DB_AND_PHASE = 26002 + r''' + Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. + ''' + REAL_AND_IMAGINARY = 26000 + r''' + Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. + ''' + + +class FrequencySettlingUnits(Enum): + TIME_AFTER_LOCK = 12000 + r''' + Specifies the time to wait after the frequency PLL locks. + ''' + TIME_AFTER_IO = 12001 + r''' + Specifies the time to wait after all writes occur to change the frequency + ''' + PPM = 12002 + r''' + Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). + ''' + + +class GenerationMode(Enum): + CW = 1000 + r''' + Configures the RF signal generator to generate a CW signal. + ''' + ARB_WAVEFORM = 1001 + r''' + Configures the RF signal generator to generate the arbitrary waveform specified by the arb_selected_waveform property. + ''' + SCRIPT = 1002 + r''' + Configures the RF signal generator to generate arbitrary waveforms as directed by the selected_script property. + ''' + + +class IQOutPortTerminalConfiguration(Enum): + DIFFERENTIAL = 15000 + r''' + Sets the terminal configuration to differential. + ''' + SINGLE_ENDED = 15001 + r''' + Sets the terminal configuration to single-ended. + ''' + + +class LoOutExportConfigureFromRfsaEnable(Enum): + DISABLE = 0 + r''' + Do not allow NI-RFSA to control the NI-RFSG local oscillator export. + ''' + ENABLE = 1 + r''' + Allow NI-RFSA to control the NI-RFSG local oscillator export. + ''' + + +class LoPllFractionalModeEnabled(Enum): + DISABLE = 0 + r''' + Disables fractional mode for the LO PLL. + ''' + ENABLE = 1 + r''' + Enables fractional mode for the LO PLL. + ''' + + +class LoSource(Enum): + ONBOARD = 'Onboard' + r''' + Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. + ''' + LO_IN = 'LO_In' + r''' + Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the UPCONVERTER_CENTER_FREQUENCY property to specify the LO frequency. + ''' + SECONDARY = 'Secondary' + r''' + Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. + ''' + SG_SA_SHARED = 'SG_SA_Shared' + r''' + Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. + ''' + AUTOMATIC_SG_SA_SHARED = 'Automatic_SG_SA_Shared' + r''' + NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. + ''' + + +class LoadConfigurationResetOptions(Enum): + WAVEFORMS = 1 + r''' + NI-RFSG skips resetting the waveform configurations. + ''' + DEEMBEDDING_TABLES = 8 + r''' + NI-RFSG skips resetting the de-embedding tables. + ''' + SCRIPTS = 2 + r''' + NI-RFSG skips resetting the scripts. + ''' + NONE = 0 + r''' + NI-RFSG resets all configurations. + ''' + + +class LoadOptions(Enum): + NONE = 0 + r''' + NI-RFSG loads all the configurations to the session. + ''' + WAVEFORMS = 1 + r''' + NI-RFSG skips loading the waveform configurations to the session. + ''' + SCRIPTS = 2 + r''' + NI-RFSG skips loading the scripts to the session. + ''' + + +class LoopBandwidth(Enum): + NARROW = 0 + r''' + Uses the narrowest loop bandwidth setting for the PLL. + ''' + MEDIUM = 1 + r''' + Uses the medium loop bandwidth setting for the PLL. + ''' + WIDE = 2 + r''' + Uses the widest loop bandwidth setting for the PLL. + ''' + + +class MarkerEventOutputBehavior(Enum): + PULSE = 23000 + r''' + Specifies the Marker Event output behavior as pulse. + ''' + TOGGLE = 23001 + r''' + Specifies the Marker Event output behavior as toggle. + ''' + + +class MarkerEventPulseWidthUnits(Enum): + SECONDS = 22000 + r''' + Specifies the Marker Event pulse width units as seconds. + ''' + SAMPLE_CLOCK_PERIODS = 22001 + r''' + Specifies the Marker Event pulse width units as Sample Clock periods. + ''' + + +class MarkerEventToggleInitialState(Enum): + LOW = 21000 + r''' + Specifies the initial state of the Marker Event toggle behavior as digital low. + ''' + HIGH = 21001 + r''' + Specifies the initial state of the Marker Event toggle behavior as digital high. + ''' + + +class Module(Enum): + AWG = 13001 + r''' + The AWG associated with the primary module. + ''' + LO = 13002 + r''' + The LO associated with the primary module. + ''' + PRIMARY_MODULE = 13000 + r''' + The stand-alone device or the main module in a multi-module device. + ''' + + +class OffsetUnits(Enum): + PERCENT = 11000 + r''' + Specifies the unit in percentage. + ''' + VOLTS = 11001 + r''' + Specifies the unit in volts. + ''' + + +class OutputPort(Enum): + RF_OUT = 14000 + r''' + Enables the RF OUT port. This value is not valid for the PXIe-5820. + ''' + IQ_OUT = 14001 + r''' + Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. + ''' + CAL_OUT = 14002 + r''' + Enables the CAL OUT port. + ''' + I_ONLY = 14003 + r''' + Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. + ''' + + +class OverflowErrorReporting(Enum): + WARNING = 1301 + r''' + NI-RFSG returns a warning when an OSP overflow occurs. + ''' + DISABLED = 1302 + r''' + NI-RFSG does not return an error or a warning when an OSP overflow occurs. + ''' + + +class PhaseContinuityEnabled(Enum): + AUTO = -1 + r''' + The arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. + ''' + DISABLE = 0 + r''' + The arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. + ''' + ENABLE = 1 + r''' + The arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. + ''' + + +class PowerLevelType(Enum): + AVERAGE = 7000 + r''' + Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. + ''' + PEAK = 7001 + r''' + Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the arb_waveform_software_scaling_factor property. You can use the peak_power_adjustment property in conjunction with the power_level property when the power_level_type property is set to PowerLevelType.PEAK. + ''' + + +class PulseModulationMode(Enum): + OPTIMAL_MATCH = 20000 + r''' + Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842 + ''' + HIGH_ISOLATION = 20001 + r''' + Allows for the best on/off power ratio of the pulsed signal. + ''' + ANALOG = 20002 + r''' + Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. + ''' + DIGITAL = 20003 + r''' + Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. + ''' + + +class PulseModulationOutputTerminal(Enum): + DO_NOT_EXPORT = '' + r''' + Pulse modulation video signal is not exported. + ''' + PULSE_OUT = 'PulseOut' + r''' + Export the pulse modulation video signal on the pulse out terminal. + ''' + + +class PulseModulationSource(Enum): + PULSE_IN = 'PulseIn' + r''' + The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. + ''' + MARKER0 = 'Marker0' + r''' + The trigger is received from the Marker 0. + ''' + MARKER1 = 'Marker1' + r''' + The trigger is received from the Marker 1. + ''' + MARKER2 = 'Marker2' + r''' + The trigger is received from the Marker 2. + ''' + MARKER3 = 'Marker3' + r''' + The trigger is received from the Marker 3. + ''' + DO_NOT_DRIVE_SIGNAL = '' + r''' + Do not drive pulse modulation. + ''' + + +class RFBlanking(Enum): + DISABLE = 0 + r''' + RF blanking is disabled. + ''' + ENABLE = 1 + r''' + RF blanking is enabled. + ''' + + +class RFInLoExportEnabled(Enum): + UNSPECIFIED = -2 + r''' + The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may + ''' + DISABLE = 0 + r''' + The RF In local oscillator signal is not present at the front panel LO OUT connector. + ''' + ENABLE = 1 + r''' + The RF In local oscillator signal is present at the front panel LO OUT connector. + ''' + + +class ReferenceClockExportOutputTerminal(Enum): + DO_NOT_EXPORT = '' + r''' + The Reference Clock signal is not exported. + ''' + REF_OUT = 'RefOut' + r''' + Exports the Reference Clock signal to the REF OUT connector of the device. + ''' + REF_OUT2 = 'RefOut2' + r''' + Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. + ''' + CLK_OUT = 'ClkOut' + r''' + Exports the Reference Clock signal to the CLK OUT connector of the device. + ''' + + +class ReferenceClockSource(Enum): + ONBOARD_CLOCK = 'OnboardClock' + r''' + Uses the onboard Reference Clock as the clock source. + ''' + REF_IN = 'RefIn' + r''' + Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. + ''' + PXI_CLK = 'PXI_CLK' + r''' + Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. + ''' + CLK_IN = 'ClkIn' + r''' + Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. + ''' + REF_IN_2 = 'RefIn2' + r''' + This value is not valid on any supported devices. + ''' + PXI_CLK_MASTER = 'PXI_ClkMaster' + r''' + This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653 -** NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use ReferenceClockSource.PXI_CLK as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. + ''' + + +class ReferencePllBandwidth(Enum): + NARROW = 0 + r''' + Uses the narrowest loop bandwidth setting for the PLL. Setting this property to NIRFSG_VAL_NARROW allows the PXIe-5653 to lock to a reference with worse phase noise than the PXIe-5653 and utilize the better phase noise of the PXIe-5653. + ''' + MEDIUM = 1 + r''' + Uses the medium loop bandwidth setting for the PLL. + ''' + WIDE = 2 + r''' + Uses the widest loop bandwidth setting for the PLL. Setting this property to NIRFSG_VAL_WIDE on the PXIe-5653 allows the reference PLL to lock to a better reference with better phase noise than the PXIe-5653 and utilize the better phase noise of the reference. + ''' + + +class RelativeTo(Enum): + CURRENT_POSITION = 8001 + r''' + The reference position is relative to the current position. + ''' + START_OF_WAVEFORM = 8000 + r''' + The reference position is relative to the start of the waveform. + ''' + + +class ResetWithOptionsStepsToOmit(IntFlag): + DEEMBEDDING_TABLES = 8 + r''' + Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. + ''' + NONE = 0 + r''' + No step is omitted during reset. + ''' + ROUTES = 4 + r''' + Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. + ''' + SCRIPTS = 2 + r''' + Omits clearing scripts. + ''' + WAVEFORMS = 1 + r''' + Omits clearing waveforms. + ''' + + +class ScriptTriggerDigitalEdgeEdge(Enum): + RISING = 0 + r''' + Asserts the trigger when the signal transitions from low level to high level. + ''' + FALLING = 1 + r''' + Asserts the trigger when the signal transitions from high level to low level. + ''' + + +class ScriptTriggerDigitalLevelActiveLevel(Enum): + HIGH = 9000 + r''' + Trigger when the digital trigger signal is high. + ''' + LOW = 9001 + r''' + Trigger when the digital trigger signal is low. + ''' + + +class ScriptTriggerType(Enum): + NONE = 0 + r''' + No trigger is configured. Signal generation starts immediately. + ''' + DIGITAL_EDGE = 1 + r''' + The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified with the digital_edge_start_trigger_edge property. + ''' + DIGITAL_LEVEL = 8000 + r''' + The data operation does not start until the digital level is detected. The source of the digital level is specified in the digital_level_script_trigger_source property, and the active level is specified in the digital_level_script_trigger_active_level property. + ''' + SOFTWARE = 2 + r''' + The data operation does not start until a software trigger occurs. You can create a software event by calling the send_software_edge_trigger method. + ''' + + +class SelfCalibrateRangeStepsToOmit(IntFlag): + IMAGE_SUPPRESSION = 8 + r''' + Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. + ''' + LO_SELF_CAL = 1 + r''' + Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. + ''' + OMIT_NONE = 0 + r''' + No calibration steps are omitted. + ''' + POWER_LEVEL_ACCURACY = 2 + r''' + Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. + ''' + RESIDUAL_LO_POWER = 4 + r''' + Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. + ''' + SYNTHESIZER_ALIGNMENT = 16 + r''' + Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. + ''' + + +class Signal(Enum): + START_TRIGGER = 0 + r''' + Exports a Start Trigger. + ''' + SCRIPT_TRIGGER = 1 + r''' + Exports a Script Trigger. + ''' + MARKER_EVENT = 2 + r''' + Exports a Marker Event. + ''' + REF_CLOCK = 3 + r''' + Exports the Reference Clock. + ''' + STARTED_EVENT = 4 + r''' + Exports a Started Event. + ''' + DONE_EVENT = 5 + r''' + Exports a Done Event. + ''' + + +class SoftwareTriggerType(Enum): + SCRIPT = 1 + r''' + Specifies the Script Trigger. + ''' + START = 0 + r''' + Specifies the Start Trigger. + ''' + + +class SparameterOrientation(Enum): + PORT1_TOWARDS_DUT = 24000 + r''' + Port 1 of the S2P is oriented towards the DUT port. + ''' + PORT2_TOWARDS_DUT = 24001 + r''' + Port 2 of the S2P is oriented towards the DUT port. + ''' + + +class StartTriggerDigitalEdgeEdge(Enum): + RISING = 0 + r''' + Occurs when the signal transitions from low level to high level. + ''' + FALLING = 1 + r''' + Occurs when the signal transitions from high level to low level. + ''' + + +class StartTriggerType(Enum): + NONE = 0 + r''' + No trigger is configured. + ''' + DIGITAL_EDGE = 1 + r''' + The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified in the digital_edge_start_trigger_edge property. + ''' + SOFTWARE = 2 + r''' + The data operation does not start until a software event occurs. You may create a software trigger by calling the send_software_edge_trigger method. + ''' + + +class TriggerIdentifier(Enum): + SCRIPT_TRIGGER0 = 'scriptTrigger0' + r''' + Specifies Script Trigger 0. + ''' + SCRIPT_TRIGGER1 = 'scriptTrigger1' + r''' + Specifies Script Trigger 1. + ''' + SCRIPT_TRIGGER2 = 'scriptTrigger2' + r''' + Specifies Script Trigger 2. + ''' + SCRIPT_TRIGGER3 = 'scriptTrigger3' + r''' + Specifies Script Trigger 3. + ''' + NONE = '' + r''' + None (no signal to export) + ''' + + +class UpconverterFrequencyOffsetMode(Enum): + AUTO = -1 + r''' + NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. + ''' + ENABLE = 1 + r''' + NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSG returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. + ''' + USER_DEFINED = 5001 + r''' + NI-RFSG uses the offset that you specified with the upconverter_frequency_offset or upconverter_center_frequency properties. + ''' + + +class WriteWaveformBurstDetection(Enum): + DISABLE = 0 + r''' + Burst detection is disabled. + ''' + ENABLE = 1 + r''' + Burst detection is enabled. + ''' + + +class WriteWaveformBurstDetectionMode(Enum): + AUTO = -1 + r''' + NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. + ''' + MANUAL = 0 + r''' + User sets the burst detection parameters. + ''' + + +class WriteWaveformNormalization(Enum): + DISABLE = 0 + r''' + Disables normalization on the waveform. + ''' + ENABLE = 1 + r''' + Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 + ''' + + +class YigMainCoilDrive(Enum): + MANUAL = 0 + r''' + Adjusts the YIG main coil for an underdamped response. + ''' + FAST = 1 + r''' + Adjusts the YIG main coil for an overdamped response. + ''' diff --git a/generated/nirfsg/nirfsg/errors.py b/generated/nirfsg/nirfsg/errors.py new file mode 100644 index 0000000000..d4ec849c58 --- /dev/null +++ b/generated/nirfsg/nirfsg/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-RFSG''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-RFSG driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-RFSG driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-RFSG runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-RFSG driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-RFSG runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-RFSG driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-RFSG runtime returned an unexpected value. This can occur if it is too new for the nirfsg Python module. Upgrade the nirfsg Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nirfsg.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nirfsg/nirfsg/grpc_session_options.py b/generated/nirfsg/nirfsg/grpc_session_options.py new file mode 100644 index 0000000000..0af1fad055 --- /dev/null +++ b/generated/nirfsg/nirfsg/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'nirfsg_grpc.NiRFSG' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/nirfsg/nirfsg/nidevice_pb2.py b/generated/nirfsg/nirfsg/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/nirfsg/nirfsg/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsg/nirfsg/nidevice_pb2_grpc.py b/generated/nirfsg/nirfsg/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/nirfsg/nirfsg/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/nirfsg/nirfsg/nirfsg_pb2.py b/generated/nirfsg/nirfsg/nirfsg_pb2.py new file mode 100644 index 0000000000..cc1e2b0a72 --- /dev/null +++ b/generated/nirfsg/nirfsg/nirfsg_pb2.py @@ -0,0 +1,530 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nirfsg.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import nidevice_pb2 as nidevice__pb2 +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0cnirfsg.proto\x12\x0bnirfsg_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n\x1a\x41llocateArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x17\n\x0fsize_in_samples\x18\x03 \x01(\x11\"-\n\x1b\x41llocateArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe9\x01\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x38\n\x05value\x18\x04 \x01(\x0e\x32\'.nirfsg_grpc.NiRFSGInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9f\x01\n\x1c\x43heckAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"/\n\x1d\x43heckAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xeb\x01\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x39\n\x05value\x18\x04 \x01(\x0e\x32(.nirfsg_grpc.NiRFSGReal64AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x01H\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb5\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf8\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x46\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32..nirfsg_grpc.NiRFSGStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1c\x43heckGenerationStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"@\n\x1d\x43heckGenerationStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07is_done\x18\x02 \x01(\x08\"^\n%CheckIfConfigurationListExistsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\"M\n&CheckIfConfigurationListExistsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0blist_exists\x18\x02 \x01(\x08\"U\n\x1a\x43heckIfScriptExistsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bscript_name\x18\x02 \x01(\t\"D\n\x1b\x43heckIfScriptExistsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rscript_exists\x18\x02 \x01(\x08\"Y\n\x1c\x43heckIfWaveformExistsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\"H\n\x1d\x43heckIfWaveformExistsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0fwaveform_exists\x18\x02 \x01(\x08\"A\n\x1b\x43learAllArbWaveformsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x43learAllArbWaveformsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"K\n\x17\x43learArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04name\x18\x02 \x01(\t\"*\n\x18\x43learArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1e\x43learSelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43learSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xda\x01\n3ConfigureDeembeddingTableInterpolationLinearRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x38\n\x06\x66ormat\x18\x04 \x01(\x0e\x32&.nirfsg_grpc.LinearInterpolationFormatH\x00\x12\x14\n\nformat_raw\x18\x05 \x01(\x11H\x00\x42\r\n\x0b\x66ormat_enum\"F\n4ConfigureDeembeddingTableInterpolationLinearResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"|\n4ConfigureDeembeddingTableInterpolationNearestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"G\n5ConfigureDeembeddingTableInterpolationNearestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"{\n3ConfigureDeembeddingTableInterpolationSplineRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"F\n4ConfigureDeembeddingTableInterpolationSplineResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa6\x02\n7ConfigureDigitalEdgeConfigurationListStepTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12S\n\rsource_mapped\x18\x02 \x01(\x0e\x32:.nirfsg_grpc.DigitalEdgeConfigurationListStepTriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12,\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1c.nirfsg_grpc.DigitalEdgeEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\"J\n8ConfigureDigitalEdgeConfigurationListStepTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf2\x02\n(ConfigureDigitalEdgeScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x12\x33\n\rsource_mapped\x18\x04 \x01(\x0e\x32\x1a.nirfsg_grpc.TriggerSourceH\x01\x12\x14\n\nsource_raw\x18\x05 \x01(\tH\x01\x12,\n\x04\x65\x64ge\x18\x06 \x01(\x0e\x32\x1c.nirfsg_grpc.DigitalEdgeEdgeH\x02\x12\x12\n\x08\x65\x64ge_raw\x18\x07 \x01(\x11H\x02\x42\x11\n\x0ftrigger_id_enumB\r\n\x0bsource_enumB\x0b\n\tedge_enum\";\n)ConfigureDigitalEdgeScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n\'ConfigureDigitalEdgeStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\rsource_mapped\x18\x02 \x01(\x0e\x32\x1a.nirfsg_grpc.TriggerSourceH\x00\x12\x14\n\nsource_raw\x18\x03 \x01(\tH\x00\x12,\n\x04\x65\x64ge\x18\x04 \x01(\x0e\x32\x1c.nirfsg_grpc.DigitalEdgeEdgeH\x01\x12\x12\n\x08\x65\x64ge_raw\x18\x05 \x01(\x11H\x01\x42\r\n\x0bsource_enumB\x0b\n\tedge_enum\":\n(ConfigureDigitalEdgeStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfe\x02\n)ConfigureDigitalLevelScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x12\x33\n\rsource_mapped\x18\x04 \x01(\x0e\x32\x1a.nirfsg_grpc.TriggerSourceH\x01\x12\x14\n\nsource_raw\x18\x05 \x01(\tH\x01\x12\x35\n\x05level\x18\x06 \x01(\x0e\x32$.nirfsg_grpc.DigitalLevelActiveLevelH\x02\x12\x13\n\tlevel_raw\x18\x07 \x01(\x11H\x02\x42\x11\n\x0ftrigger_id_enumB\r\n\x0bsource_enumB\x0c\n\nlevel_enum\"<\n*ConfigureDigitalLevelScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"y\n4ConfigureDigitalModulationUserDefinedWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15user_defined_waveform\x18\x02 \x01(\x0c\"G\n5ConfigureDigitalModulationUserDefinedWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x1e\x43onfigureGenerationModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x36\n\x0fgeneration_mode\x18\x02 \x01(\x0e\x32\x1b.nirfsg_grpc.GenerationModeH\x00\x12\x1d\n\x13generation_mode_raw\x18\x03 \x01(\x11H\x00\x42\x16\n\x14generation_mode_enum\"1\n\x1f\x43onfigureGenerationModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x1d\x43onfigureOutputEnabledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0eoutput_enabled\x18\x02 \x01(\x08\"0\n\x1e\x43onfigureOutputEnabledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"z\n/ConfigureP2PEndpointFullnessStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12#\n\x1bp2p_endpoint_fullness_level\x18\x02 \x01(\x03\"B\n0ConfigureP2PEndpointFullnessStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbf\x01\n\x1f\x43onfigurePXIChassisClk10Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12?\n\x17pxi_clk10_source_mapped\x18\x02 \x01(\x0e\x32\x1c.nirfsg_grpc.PXIChassisClk10H\x00\x12\x1e\n\x14pxi_clk10_source_raw\x18\x03 \x01(\tH\x00\x42\x17\n\x15pxi_clk10_source_enum\"2\n ConfigurePXIChassisClk10Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb6\x01\n\x1e\x43onfigurePowerLevelTypeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x37\n\x10power_level_type\x18\x02 \x01(\x0e\x32\x1b.nirfsg_grpc.PowerLevelTypeH\x00\x12\x1e\n\x14power_level_type_raw\x18\x03 \x01(\x11H\x00\x42\x17\n\x15power_level_type_enum\"1\n\x1f\x43onfigurePowerLevelTypeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\x12\x43onfigureRFRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfrequency\x18\x02 \x01(\x01\x12\x13\n\x0bpower_level\x18\x03 \x01(\x01\"%\n\x13\x43onfigureRFResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcf\x01\n\x18\x43onfigureRefClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\x17ref_clock_source_mapped\x18\x02 \x01(\x0e\x32\x1b.nirfsg_grpc.RefClockSourceH\x00\x12\x1e\n\x14ref_clock_source_raw\x18\x03 \x01(\tH\x00\x12\x16\n\x0eref_clock_rate\x18\x04 \x01(\x01\x42\x17\n\x15ref_clock_source_enum\"+\n\x19\x43onfigureRefClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"_\n\x1f\x43onfigureSignalBandwidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x18\n\x10signal_bandwidth\x18\x02 \x01(\x01\"2\n ConfigureSignalBandwidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc6\x01\n%ConfigureSoftwareScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x42\x11\n\x0ftrigger_id_enum\"8\n&ConfigureSoftwareScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n$ConfigureSoftwareStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"7\n%ConfigureSoftwareStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x86\x01\n*ConfigureUpconverterPLLSettlingTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\x11pll_settling_time\x18\x02 \x01(\x01\x12\x19\n\x11\x65nsure_pll_locked\x18\x03 \x01(\x08\"=\n+ConfigureUpconverterPLLSettlingTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb8\x01\n\x1e\x43reateConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\x12\x43\n\x1d\x63onfiguration_list_attributes\x18\x03 \x03(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x1a\n\x12set_as_active_list\x18\x04 \x01(\x08\"1\n\x1f\x43reateConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"d\n\"CreateConfigurationListStepRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12set_as_active_step\x18\x02 \x01(\x08\"5\n#CreateConfigurationListStepResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x02\n,CreateDeembeddingSparameterTableArrayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x13\n\x0b\x66requencies\x18\x04 \x03(\x01\x12\x38\n\x10sparameter_table\x18\x05 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x17\n\x0fnumber_of_ports\x18\x06 \x01(\x11\x12\x44\n\x16sparameter_orientation\x18\x07 \x01(\x0e\x32\".nirfsg_grpc.SParameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x08 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"?\n-CreateDeembeddingSparameterTableArrayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x98\x02\n.CreateDeembeddingSparameterTableS2PFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x15\n\rs2p_file_path\x18\x04 \x01(\t\x12\x44\n\x16sparameter_orientation\x18\x05 \x01(\x0e\x32\".nirfsg_grpc.SParameterOrientationH\x00\x12$\n\x1asparameter_orientation_raw\x18\x06 \x01(\x11H\x00\x42\x1d\n\x1bsparameter_orientation_enum\"A\n/CreateDeembeddingSparameterTableS2PFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"G\n!DeleteAllDeembeddingTablesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"4\n\"DeleteAllDeembeddingTablesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x1e\x44\x65leteConfigurationListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tlist_name\x18\x02 \x01(\t\"1\n\x1f\x44\x65leteConfigurationListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x1d\x44\x65leteDeembeddingTableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04port\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\"0\n\x1e\x44\x65leteDeembeddingTableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"N\n\x13\x44\x65leteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bscript_name\x18\x02 \x01(\t\"&\n\x14\x44\x65leteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1b\x44isableAllModulationRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x44isableAllModulationResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"P\n*DisableConfigurationListStepTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"=\n+DisableConfigurationListStepTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xbc\x01\n\x1b\x44isableScriptTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12L\n\x11trigger_id_mapped\x18\x02 \x01(\x0e\x32/.nirfsg_grpc.DigitalEdgeScriptTriggerIdentifierH\x00\x12\x18\n\x0etrigger_id_raw\x18\x03 \x01(\tH\x00\x42\x11\n\x0ftrigger_id_enum\".\n\x1c\x44isableScriptTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1a\x44isableStartTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1b\x44isableStartTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"\xfd\x02\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12+\n\x06signal\x18\x02 \x01(\x0e\x32\x19.nirfsg_grpc.RoutedSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x41\n\x18signal_identifier_mapped\x18\x04 \x01(\x0e\x32\x1d.nirfsg_grpc.SignalIdentifierH\x01\x12\x1f\n\x15signal_identifier_raw\x18\x05 \x01(\tH\x01\x12;\n\x16output_terminal_mapped\x18\x06 \x01(\x0e\x32\x19.nirfsg_grpc.OutputSignalH\x02\x12\x1d\n\x13output_terminal_raw\x18\x07 \x01(\tH\x02\x42\r\n\x0bsignal_enumB\x18\n\x16signal_identifier_enumB\x16\n\x14output_terminal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1fGetAllNamedWaveformNamesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n GetAllNamedWaveformNamesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0ewaveform_names\x18\x02 \x01(\t\x12\x1a\n\x12\x61\x63tual_buffer_size\x18\x03 \x01(\x11\">\n\x18GetAllScriptNamesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"]\n\x19GetAllScriptNamesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0cscript_names\x18\x02 \x01(\t\x12\x1a\n\x12\x61\x63tual_buffer_size\x18\x03 \x01(\x11\"K\n\x10GetScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bscript_name\x18\x02 \x01(\t\"O\n\x11GetScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06script\x18\x02 \x01(\t\x12\x1a\n\x12\x61\x63tual_buffer_size\x18\x03 \x01(\x11\"\x8c\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\x8a\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\x8a\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x8b\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x8c\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x8b\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"6\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"F\n GetDeembeddingSparametersRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa0\x01\n!GetDeembeddingSparametersResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x33\n\x0bsparameters\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x1d\n\x15number_of_sparameters\x18\x03 \x01(\x11\x12\x17\n\x0fnumber_of_ports\x18\x04 \x01(\x11\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"Q\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x19\n\x11\x65rror_description\x18\x03 \x01(\t\"R\n,GetExternalCalibrationLastDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x97\x01\n-GetExternalCalibrationLastDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\x12\x0e\n\x06second\x18\x07 \x01(\x11\"@\n\x1aGetMaxSettablePowerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"<\n\x1bGetMaxSettablePowerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\x96\x01\n$GetSelfCalibrationDateAndTimeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06module\x18\x02 \x01(\x0e\x32\x13.nirfsg_grpc.ModuleH\x00\x12\x14\n\nmodule_raw\x18\x03 \x01(\x11H\x00\x42\r\n\x0bmodule_enum\"\x8f\x01\n%GetSelfCalibrationDateAndTimeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\x12\x0c\n\x04hour\x18\x05 \x01(\x11\x12\x0e\n\x06minute\x18\x06 \x01(\x11\x12\x0e\n\x06second\x18\x07 \x01(\x11\"\x96\x01\n$GetSelfCalibrationTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12%\n\x06module\x18\x02 \x01(\x0e\x32\x13.nirfsg_grpc.ModuleH\x00\x12\x14\n\nmodule_raw\x18\x03 \x01(\x11H\x00\x42\r\n\x0bmodule_enum\"L\n%GetSelfCalibrationTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01\"\x8c\x02\n\x16GetTerminalNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12+\n\x06signal\x18\x02 \x01(\x0e\x32\x19.nirfsg_grpc.RoutedSignalH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x41\n\x18signal_identifier_mapped\x18\x04 \x01(\x0e\x32\x1d.nirfsg_grpc.SignalIdentifierH\x01\x12\x1f\n\x15signal_identifier_raw\x18\x05 \x01(\tH\x01\x42\r\n\x0bsignal_enumB\x18\n\x16signal_identifier_enum\"@\n\x17GetTerminalNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rterminal_name\x18\x02 \x01(\t\"L\n\x12GetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\"M\n\x13GetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x18\n\x10\x61\x63tual_data_size\x18\x03 \x01(\x11\"a\n%GetWaveformBurstStartLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"b\n&GetWaveformBurstStartLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tlocations\x18\x02 \x03(\x01\x12\x15\n\rrequired_size\x18\x03 \x01(\x11\"`\n$GetWaveformBurstStopLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"a\n%GetWaveformBurstStopLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tlocations\x18\x02 \x03(\x01\x12\x15\n\rrequired_size\x18\x03 \x01(\x11\"b\n&GetWaveformMarkerEventLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\"c\n\'GetWaveformMarkerEventLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x11\n\tlocations\x18\x02 \x03(\x01\x12\x15\n\rrequired_size\x18\x03 \x01(\x11\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x82\x01\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12&\n\x06new_vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"5\n\x0fInitiateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\"\n\x10InitiateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"p\n!LoadConfigurationsFromFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"4\n\"LoadConfigurationsFromFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"?\n\x19PerformPowerSearchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\",\n\x1aPerformPowerSearchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1fPerformThermalCorrectionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n PerformThermalCorrectionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"I\n#QueryArbWaveformCapabilitiesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xa4\x01\n$QueryArbWaveformCapabilitiesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1c\n\x14max_number_waveforms\x18\x02 \x01(\x11\x12\x18\n\x10waveform_quantum\x18\x03 \x01(\x11\x12\x19\n\x11min_waveform_size\x18\x04 \x01(\x11\x12\x19\n\x11max_waveform_size\x18\x05 \x01(\x11\"\x92\x01\n*ReadAndDownloadWaveformFromFileTDMSRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\x12\x16\n\x0ewaveform_index\x18\x04 \x01(\r\"=\n+ReadAndDownloadWaveformFromFileTDMSResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x85\x01\n\x15ResetAttributeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\"(\n\x16ResetAttributeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x17ResetWithOptionsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x41\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32(.nirfsg_grpc.ResetWithOptionsStepsToOmitH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x04H\x00\x42\x14\n\x12steps_to_omit_enum\"*\n\x18ResetWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"n\n\x1fSaveConfigurationsToFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tfile_path\x18\x03 \x01(\t\"2\n SaveConfigurationsToFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"L\n\x18SelectArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0c\n\x04name\x18\x02 \x01(\t\"+\n\x19SelectArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0eSelfCalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0fSelfCalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x97\x02\n\x19SelfCalibrateRangeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x43\n\rsteps_to_omit\x18\x02 \x01(\x0e\x32*.nirfsg_grpc.SelfCalibrateRangeStepsToOmitH\x00\x12\x1b\n\x11steps_to_omit_raw\x18\x03 \x01(\x03H\x00\x12\x15\n\rmin_frequency\x18\x04 \x01(\x01\x12\x15\n\rmax_frequency\x18\x05 \x01(\x01\x12\x17\n\x0fmin_power_level\x18\x06 \x01(\x01\x12\x17\n\x0fmax_power_level\x18\x07 \x01(\x01\x42\x14\n\x12steps_to_omit_enum\",\n\x1aSelfCalibrateRangeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"\x9a\x02\n\x1eSendSoftwareEdgeTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12,\n\x07trigger\x18\x02 \x01(\x0e\x32\x19.nirfsg_grpc.RoutedSignalH\x00\x12\x15\n\x0btrigger_raw\x18\x03 \x01(\x11H\x00\x12\x42\n\x19trigger_identifier_mapped\x18\x04 \x01(\x0e\x32\x1d.nirfsg_grpc.SignalIdentifierH\x01\x12 \n\x16trigger_identifier_raw\x18\x05 \x01(\tH\x01\x42\x0e\n\x0ctrigger_enumB\x19\n\x17trigger_identifier_enum\"1\n\x1fSendSoftwareEdgeTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd2\x01\n&SetArbWaveformNextWritePositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12.\n\x0brelative_to\x18\x03 \x01(\x0e\x32\x17.nirfsg_grpc.RelativeToH\x00\x12\x19\n\x0frelative_to_raw\x18\x04 \x01(\x11H\x00\x12\x0e\n\x06offset\x18\x05 \x01(\x11\x42\x12\n\x10relative_to_enum\"9\n\'SetArbWaveformNextWritePositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9b\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe7\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x38\n\x05value\x18\x04 \x01(\x0e\x32\'.nirfsg_grpc.NiRFSGInt32AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x11H\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9d\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe9\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x39\n\x05value\x18\x04 \x01(\x0e\x32(.nirfsg_grpc.NiRFSGReal64AttributeValuesH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\x01H\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb3\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf6\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x32\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1c.nirfsg_grpc.NiRFSGAttribute\x12\x46\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32..nirfsg_grpc.NiRFSGStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x12SetUserDataRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nidentifier\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"%\n\x13SetUserDataResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"t\n%SetWaveformBurstStartLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\x01\"8\n&SetWaveformBurstStartLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"s\n$SetWaveformBurstStopLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\x01\"7\n%SetWaveformBurstStopLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"u\n&SetWaveformMarkerEventLocationsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x11\n\tlocations\x18\x03 \x03(\x01\"9\n\'SetWaveformMarkerEventLocationsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\\\n\x17WaitUntilSettledRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1d\n\x15max_time_milliseconds\x18\x02 \x01(\x11\"*\n\x18WaitUntilSettledResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8f\x01\n\x17WriteArbWaveformRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x0e\n\x06i_data\x18\x03 \x03(\x01\x12\x0e\n\x06q_data\x18\x04 \x03(\x01\x12\x19\n\x11more_data_pending\x18\x05 \x01(\x08\"*\n\x18WriteArbWaveformResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n!WriteArbWaveformComplexF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x33\n\x08wfm_data\x18\x03 \x03(\x0b\x32!.nidevice_grpc.NIComplexNumberF32\x12\x19\n\x11more_data_pending\x18\x04 \x01(\x08\"4\n\"WriteArbWaveformComplexF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n!WriteArbWaveformComplexF64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x30\n\x08wfm_data\x18\x03 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12\x19\n\x11more_data_pending\x18\x04 \x01(\x08\"4\n\"WriteArbWaveformComplexF64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n!WriteArbWaveformComplexI16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12-\n\x08wfm_data\x18\x03 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\"4\n\"WriteArbWaveformComplexI16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x92\x01\n\x1aWriteArbWaveformF32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rwaveform_name\x18\x02 \x01(\t\x12\x0e\n\x06i_data\x18\x03 \x03(\x02\x12\x0e\n\x06q_data\x18\x04 \x03(\x02\x12\x19\n\x11more_data_pending\x18\x05 \x01(\x08\"-\n\x1bWriteArbWaveformF32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\x12WriteScriptRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0e\n\x06script\x18\x02 \x01(\t\"%\n\x13WriteScriptResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\xdd\x61\n\x0fNiRFSGAttribute\x12 \n\x1cNIRFSG_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\"\n\x1cNIRFSG_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12.\n(NIRFSG_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1c\n\x16NIRFSG_ATTRIBUTE_CACHE\x10\x94\x8b@\x12\x1f\n\x19NIRFSG_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12\'\n!NIRFSG_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12#\n\x1dNIRFSG_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12(\n\"NIRFSG_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12\x1a\n\x14NIRFSG_ATTRIBUTE_SPY\x10\xa6\x8b@\x12.\n(NIRFSG_ATTRIBUTE_USE_SPECIFIC_SIMULATION\x10\xa7\x8b@\x12$\n\x1eNIRFSG_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12-\n\'NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12-\n\'NIRFSG_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12#\n\x1dNIRFSG_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12\x32\n,NIRFSG_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12)\n#NIRFSG_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12,\n&NIRFSG_ATTRIBUTE_FUNCTION_CAPABILITIES\x10\xa2\x8e@\x12\x33\n-NIRFSG_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12.\n(NIRFSG_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12\'\n!NIRFSG_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12-\n\'NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x32\n,NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12?\n9NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12?\n9NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12/\n)NIRFSG_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12\'\n!NIRFSG_ATTRIBUTE_REF_CLOCK_SOURCE\x10\xb1\x98\x46\x12\x38\n2NIRFSG_ATTRIBUTE_DIGITAL_EDGE_START_TRIGGER_SOURCE\x10\xb2\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\xb3\x98\x46\x12/\n)NIRFSG_ATTRIBUTE_PXI_CHASSIS_CLK10_SOURCE\x10\xb4\x98\x46\x12/\n)NIRFSG_ATTRIBUTE_PHASE_CONTINUITY_ENABLED\x10\xb5\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_FREQUENCY_TOLERANCE\x10\xb6\x98\x46\x12\'\n!NIRFSG_ATTRIBUTE_SIGNAL_BANDWIDTH\x10\xb7\x98\x46\x12\x33\n-NIRFSG_ATTRIBUTE_AUTOMATIC_THERMAL_CORRECTION\x10\xb8\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_ATTENUATOR_HOLD_ENABLED\x10\xb9\x98\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ATTENUATOR_HOLD_MAX_POWER\x10\xba\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_PEAK_ENVELOPE_POWER\x10\xbb\x98\x46\x12\x33\n-NIRFSG_ATTRIBUTE_DIGITAL_EQUALIZATION_ENABLED\x10\xbc\x98\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_LO_OUT_ENABLED\x10\xbd\x98\x46\x12?\n9NIRFSG_ATTRIBUTE_ALLOW_OUT_OF_SPECIFICATION_USER_SETTINGS\x10\xbe\x98\x46\x12,\n&NIRFSG_ATTRIBUTE_ARB_CARRIER_FREQUENCY\x10\xbf\x98\x46\x12 \n\x1aNIRFSG_ATTRIBUTE_ARB_POWER\x10\xc0\x98\x46\x12)\n#NIRFSG_ATTRIBUTE_DEVICE_TEMPERATURE\x10\xc1\x98\x46\x12&\n NIRFSG_ATTRIBUTE_GENERATION_MODE\x10\xc2\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_SCRIPT_TRIGGER_TYPE\x10\xc3\x98\x46\x12\x39\n3NIRFSG_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_SOURCE\x10\xc4\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_DIGITAL_EDGE_SCRIPT_TRIGGER_EDGE\x10\xc5\x98\x46\x12>\n8NIRFSG_ATTRIBUTE_EXPORTED_SCRIPT_TRIGGER_OUTPUT_TERMINAL\x10\xc6\x98\x46\x12&\n NIRFSG_ATTRIBUTE_SELECTED_SCRIPT\x10\xc7\x98\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_PHASE_OFFSET\x10\xc8\x98\x46\x12*\n$NIRFSG_ATTRIBUTE_ARB_PRE_FILTER_GAIN\x10\xc9\x98\x46\x12$\n\x1eNIRFSG_ATTRIBUTE_SERIAL_NUMBER\x10\xca\x98\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_LOOP_BANDWIDTH\x10\xcb\x98\x46\x12\x34\n.NIRFSG_ATTRIBUTE_ARB_ONBOARD_SAMPLE_CLOCK_MODE\x10\xcd\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_ARB_SAMPLE_CLOCK_SOURCE\x10\xce\x98\x46\x12,\n&NIRFSG_ATTRIBUTE_ARB_SAMPLE_CLOCK_RATE\x10\xcf\x98\x46\x12-\n\'NIRFSG_ATTRIBUTE_ANALOG_MODULATION_TYPE\x10\xd0\x98\x46\x12\x36\n0NIRFSG_ATTRIBUTE_ANALOG_MODULATION_WAVEFORM_TYPE\x10\xd1\x98\x46\x12;\n5NIRFSG_ATTRIBUTE_ANALOG_MODULATION_WAVEFORM_FREQUENCY\x10\xd2\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_DEVIATION\x10\xd3\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_TYPE\x10\xd4\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_SYMBOL_RATE\x10\xd5\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_WAVEFORM_TYPE\x10\xd6\x98\x46\x12\x34\n.NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_PRBS_ORDER\x10\xd7\x98\x46\x12\x33\n-NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_PRBS_SEED\x10\xd8\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_DIGITAL_MODULATION_FSK_DEVIATION\x10\xd9\x98\x46\x12&\n NIRFSG_ATTRIBUTE_DIRECT_DOWNLOAD\x10\xda\x98\x46\x12\'\n!NIRFSG_ATTRIBUTE_POWER_LEVEL_TYPE\x10\xdb\x98\x46\x12&\n NIRFSG_ATTRIBUTE_DIGITAL_PATTERN\x10\xdc\x98\x46\x12(\n\"NIRFSG_ATTRIBUTE_STREAMING_ENABLED\x10\xdd\x98\x46\x12.\n(NIRFSG_ATTRIBUTE_STREAMING_WAVEFORM_NAME\x10\xde\x98\x46\x12<\n6NIRFSG_ATTRIBUTE_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM\x10\xdf\x98\x46\x12/\n)NIRFSG_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\xe0\x98\x46\x12;\n5NIRFSG_ATTRIBUTE_ARB_WAVEFORM_SOFTWARE_SCALING_FACTOR\x10\xe4\x98\x46\x12\x39\n3NIRFSG_ATTRIBUTE_EXPORTED_REF_CLOCK_OUTPUT_TERMINAL\x10\xe5\x98\x46\x12:\n4NIRFSG_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_SOURCE\x10\xe6\x98\x46\x12@\n:NIRFSG_ATTRIBUTE_DIGITAL_LEVEL_SCRIPT_TRIGGER_ACTIVE_LEVEL\x10\xe7\x98\x46\x12&\n NIRFSG_ATTRIBUTE_ARB_FILTER_TYPE\x10\xe8\x98\x46\x12:\n4NIRFSG_ATTRIBUTE_ARB_FILTER_ROOT_RAISED_COSINE_ALPHA\x10\xe9\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_UPCONVERTER_CENTER_FREQUENCY_INCREMENT\x10\xea\x98\x46\x12\x44\n>NIRFSG_ATTRIBUTE_UPCONVERTER_CENTER_FREQUENCY_INCREMENT_ANCHOR\x10\xeb\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ARB_FILTER_RAISED_COSINE_ALPHA\x10\xec\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_MEMORY_SIZE\x10\xed\x98\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ANALOG_MODULATION_PM_DEVIATION\x10\xee\x98\x46\x12:\n4NIRFSG_ATTRIBUTE_EXPORTED_DONE_EVENT_OUTPUT_TERMINAL\x10\xef\x98\x46\x12<\n6NIRFSG_ATTRIBUTE_EXPORTED_MARKER_EVENT_OUTPUT_TERMINAL\x10\xf0\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_EXPORTED_STARTED_EVENT_OUTPUT_TERMINAL\x10\xf1\x98\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_LO_OUT_POWER\x10\xf2\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_LO_IN_POWER\x10\xf3\x98\x46\x12&\n NIRFSG_ATTRIBUTE_ARB_TEMPERATURE\x10\xf4\x98\x46\x12,\n&NIRFSG_ATTRIBUTE_IQ_IMPAIRMENT_ENABLED\x10\xf5\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_IQ_I_OFFSET\x10\xf6\x98\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_IQ_Q_OFFSET\x10\xf7\x98\x46\x12(\n\"NIRFSG_ATTRIBUTE_IQ_GAIN_IMBALANCE\x10\xf8\x98\x46\x12\x1e\n\x18NIRFSG_ATTRIBUTE_IQ_SKEW\x10\xf9\x98\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_LO_TEMPERATURE\x10\xfb\x98\x46\x12@\n:NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_RECOMMENDED_INTERVAL\x10\xfc\x98\x46\x12\x37\n1NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_TEMPERATURE\x10\xfd\x98\x46\x12=\n7NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_USER_DEFINED_INFO\x10\xfe\x98\x46\x12\x46\n@NIRFSG_ATTRIBUTE_EXTERNAL_CALIBRATION_USER_DEFINED_INFO_MAX_SIZE\x10\xff\x98\x46\x12&\n NIRFSG_ATTRIBUTE_IQ_OFFSET_UNITS\x10\x81\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_FREQUENCY_SETTLING_UNITS\x10\x82\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_FREQUENCY_SETTLING\x10\x83\x99\x46\x12&\n NIRFSG_ATTRIBUTE_MODULE_REVISION\x10\x84\x99\x46\x12$\n\x1eNIRFSG_ATTRIBUTE_EXTERNAL_GAIN\x10\x85\x99\x46\x12\x36\n0NIRFSG_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\x86\x99\x46\x12:\n4NIRFSG_ATTRIBUTE_DATA_TRANSFER_PREFERRED_PACKET_SIZE\x10\x87\x99\x46\x12<\n6NIRFSG_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_IN_FLIGHT_READS\x10\x88\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ARB_OSCILLATOR_PHASE_DAC_VALUE\x10\x89\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST\x10\x90\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_ACTIVE_CONFIGURATION_LIST_STEP\x10\x91\x99\x46\x12;\n5NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_STEP_TRIGGER_TYPE\x10\x92\x99\x46\x12J\nDNIRFSG_ATTRIBUTE_DIGITAL_EDGE_CONFIGURATION_LIST_STEP_TRIGGER_SOURCE\x10\x93\x99\x46\x12+\n%NIRFSG_ATTRIBUTE_TIMER_EVENT_INTERVAL\x10\x94\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_REPEAT\x10\x96\x99\x46\x12H\nBNIRFSG_ATTRIBUTE_DIGITAL_EDGE_CONFIGURATION_LIST_STEP_TRIGGER_EDGE\x10\x97\x99\x46\x12-\n\'NIRFSG_ATTRIBUTE_CORRECTION_TEMPERATURE\x10\x98\x99\x46\x12O\nINIRFSG_ATTRIBUTE_EXPORTED_CONFIGURATION_LIST_STEP_TRIGGER_OUTPUT_TERMINAL\x10\x99\x99\x46\x12\x32\n,NIRFSG_ATTRIBUTE_STARTED_EVENT_TERMINAL_NAME\x10\xa0\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_DONE_EVENT_TERMINAL_NAME\x10\xa1\x99\x46\x12\x32\n,NIRFSG_ATTRIBUTE_START_TRIGGER_TERMINAL_NAME\x10\xa2\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_MARKER_EVENT_TERMINAL_NAME\x10\xa3\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_SCRIPT_TRIGGER_TERMINAL_NAME\x10\xa4\x99\x46\x12\x44\n>NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_STEP_TRIGGER_TERMINAL_NAME\x10\xa5\x99\x46\x12*\n$NIRFSG_ATTRIBUTE_YIG_MAIN_COIL_DRIVE\x10\xa6\x99\x46\x12:\n4NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_STEP_IN_PROGRESS\x10\xaa\x99\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_P2P_ENABLED\x10\xab\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\xac\x99\x46\x12\x36\n0NIRFSG_ATTRIBUTE_P2P_SPACE_AVAILABLE_IN_ENDPOINT\x10\xad\x99\x46\x12;\n5NIRFSG_ATTRIBUTE_P2P_MOST_SPACE_AVAILABLE_IN_ENDPOINT\x10\xae\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_P2P_ENDPOINT_COUNT\x10\xaf\x99\x46\x12@\n:NIRFSG_ATTRIBUTE_P2P_ENDPOINT_FULLNESS_START_TRIGGER_LEVEL\x10\xb0\x99\x46\x12K\nENIRFSG_ATTRIBUTE_EXPORTED_CONFIGURATION_SETTLED_EVENT_OUTPUT_TERMINAL\x10\xb1\x99\x46\x12,\n&NIRFSG_ATTRIBUTE_PEAK_POWER_ADJUSTMENT\x10\xb4\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_REF_PLL_BANDWIDTH\x10\xb5\x99\x46\x12<\n6NIRFSG_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INTERVAL\x10\xb6\x99\x46\x12\x43\n=NIRFSG_ATTRIBUTE_P2P_DATA_TRANSFER_PERMISSION_INITIAL_CREDITS\x10\xb7\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_SELF_CALIBRATION_TEMPERATURE\x10\xb8\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_AMPLITUDE_SETTLING\x10\xb9\x99\x46\x12.\n(NIRFSG_ATTRIBUTE_STREAMING_WRITE_TIMEOUT\x10\xbc\x99\x46\x12\x38\n2NIRFSG_ATTRIBUTE_PEAK_POWER_ADJUSTMENT_INHERITANCE\x10\xbd\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_SYNC_SCRIPT_TRIGGER_MASTER\x10\xbe\x99\x46\x12\x34\n.NIRFSG_ATTRIBUTE_SYNC_SCRIPT_TRIGGER_DIST_LINE\x10\xbf\x99\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_OUTPUT_PORT\x10\xc0\x99\x46\x12\x34\n.NIRFSG_ATTRIBUTE_IQ_OUT_PORT_CARRIER_FREQUENCY\x10\xc1\x99\x46\x12\x39\n3NIRFSG_ATTRIBUTE_IQ_OUT_PORT_TERMINAL_CONFIGURATION\x10\xc2\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_IQ_OUT_PORT_LEVEL\x10\xc3\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_IQ_OUT_PORT_COMMON_MODE_OFFSET\x10\xc4\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_IQ_OUT_PORT_OFFSET\x10\xc5\x99\x46\x12 \n\x1aNIRFSG_ATTRIBUTE_LO_SOURCE\x10\xc6\x99\x46\x12-\n\'NIRFSG_ATTRIBUTE_LO_FREQUENCY_STEP_SIZE\x10\xc7\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_LO_PLL_FRACTIONAL_MODE_ENABLED\x10\xc8\x99\x46\x12*\n$NIRFSG_ATTRIBUTE_INTERPOLATION_DELAY\x10\xc9\x99\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_EVENTS_DELAY\x10\xca\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_SYNC_START_TRIGGER_MASTER\x10\xcb\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_SYNC_START_TRIGGER_DIST_LINE\x10\xcc\x99\x46\x12:\n4NIRFSG_ATTRIBUTE_ARB_WAVEFORM_REPEAT_COUNT_IS_FINITE\x10\xcd\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ARB_WAVEFORM_REPEAT_COUNT\x10\xce\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_UPCONVERTER_FREQUENCY_OFFSET\x10\xd0\x99\x46\x12.\n(NIRFSG_ATTRIBUTE_IQ_OUT_PORT_TEMPERATURE\x10\xd1\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_RF_BLANKING_SOURCE\x10\xd2\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_IQ_OUT_PORT_LOAD_IMPEDANCE\x10\xd3\x99\x46\x12\x41\n;NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR\x10\xd5\x99\x46\x12\x37\n1NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_SENSITIVITY\x10\xd6\x99\x46\x12\x37\n1NIRFSG_ATTRIBUTE_ANALOG_MODULATION_AM_SENSITIVITY\x10\xd7\x99\x46\x12\x37\n1NIRFSG_ATTRIBUTE_ANALOG_MODULATION_PM_SENSITIVITY\x10\xd8\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_ATTENUATOR_SETTING\x10\xdd\x99\x46\x12\x31\n+NIRFSG_ATTRIBUTE_CONFIGURATION_LIST_IS_DONE\x10\xdf\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_SYNC_SAMPLE_CLOCK_MASTER\x10\xe4\x99\x46\x12\x32\n,NIRFSG_ATTRIBUTE_SYNC_SAMPLE_CLOCK_DIST_LINE\x10\xe5\x99\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_AE_TEMPERATURE\x10\xe6\x99\x46\x12\x1f\n\x19NIRFSG_ATTRIBUTE_AMP_PATH\x10\xe9\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_FPGA_BITFILE_PATH\x10\xea\x99\x46\x12)\n#NIRFSG_ATTRIBUTE_FAST_TUNING_OPTION\x10\xec\x99\x46\x12,\n&NIRFSG_ATTRIBUTE_PULSE_MODULATION_MODE\x10\xee\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ANALOG_MODULATION_FM_BAND\x10\xef\x99\x46\x12\x30\n*NIRFSG_ATTRIBUTE_ANALOG_MODULATION_PM_MODE\x10\xf0\x99\x46\x12@\n:NIRFSG_ATTRIBUTE_CONFIGURATION_SETTLED_EVENT_TERMINAL_NAME\x10\xf2\x99\x46\x12\"\n\x1cNIRFSG_ATTRIBUTE_ALC_CONTROL\x10\xf3\x99\x46\x12(\n\"NIRFSG_ATTRIBUTE_AUTO_POWER_SEARCH\x10\xf4\x99\x46\x12#\n\x1dNIRFSG_ATTRIBUTE_LO_FREQUENCY\x10\xf7\x99\x46\x12\'\n!NIRFSG_ATTRIBUTE_ARB_DIGITAL_GAIN\x10\xfc\x99\x46\x12\x33\n-NIRFSG_ATTRIBUTE_MARKER_EVENT_OUTPUT_BEHAVIOR\x10\xfe\x99\x46\x12/\n)NIRFSG_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH\x10\xff\x99\x46\x12\x35\n/NIRFSG_ATTRIBUTE_MARKER_EVENT_PULSE_WIDTH_UNITS\x10\x80\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_MARKER_EVENT_TOGGLE_INITIAL_STATE\x10\x81\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_MODULE_POWER_CONSUMPTION\x10\x82\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_FPGA_TEMPERATURE\x10\x83\x9a\x46\x12\x30\n*NIRFSG_ATTRIBUTE_TEMPERATURE_READ_INTERVAL\x10\x84\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_P2P_IS_FINITE_GENERATION\x10\x89\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_P2P_NUMBER_OF_SAMPLES_TO_GENERATE\x10\x8a\x9a\x46\x12\x39\n3NIRFSG_ATTRIBUTE_P2P_GENERATION_FIFO_SAMPLE_QUANTUM\x10\x8b\x9a\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_RELATIVE_DELAY\x10\x8c\x9a\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_ABSOLUTE_DELAY\x10\x91\x9a\x46\x12\x35\n/NIRFSG_ATTRIBUTE_DEVICE_INSTANTANEOUS_BANDWIDTH\x10\x92\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_OVERFLOW_ERROR_REPORTING\x10\x94\x9a\x46\x12+\n%NIRFSG_ATTRIBUTE_HOST_DMA_BUFFER_SIZE\x10\x9f\x9a\x46\x12%\n\x1fNIRFSG_ATTRIBUTE_SELECTED_PORTS\x10\xa1\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_LO_OUT_EXPORT_CONFIGURE_FROM_RFSA\x10\xa2\x9a\x46\x12.\n(NIRFSG_ATTRIBUTE_RF_IN_LO_EXPORT_ENABLED\x10\xa3\x9a\x46\x12@\n:NIRFSG_ATTRIBUTE_THERMAL_CORRECTION_TEMPERATURE_RESOLUTION\x10\xa4\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_UPCONVERTER_FREQUENCY_OFFSET_MODE\x10\xa8\x9a\x46\x12&\n NIRFSG_ATTRIBUTE_AVAILABLE_PORTS\x10\xa9\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_FPGA_TARGET_NAME\x10\xab\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_DEEMBEDDING_TYPE\x10\xac\x9a\x46\x12\x31\n+NIRFSG_ATTRIBUTE_DEEMBEDDING_SELECTED_TABLE\x10\xad\x9a\x46\x12\x31\n+NIRFSG_ATTRIBUTE_LO_VCO_FREQUENCY_STEP_SIZE\x10\xb1\x9a\x46\x12\x38\n2NIRFSG_ATTRIBUTE_THERMAL_CORRECTION_HEADROOM_RANGE\x10\xb2\x9a\x46\x12\'\n!NIRFSG_ATTRIBUTE_WAVEFORM_IQ_RATE\x10\xb7\x9a\x46\x12\x30\n*NIRFSG_ATTRIBUTE_WAVEFORM_SIGNAL_BANDWIDTH\x10\xb8\x9a\x46\x12/\n)NIRFSG_ATTRIBUTE_WAVEFORM_RUNTIME_SCALING\x10\xb9\x9a\x46\x12$\n\x1eNIRFSG_ATTRIBUTE_WAVEFORM_PAPR\x10\xba\x9a\x46\x12\x35\n/NIRFSG_ATTRIBUTE_FIXED_GROUP_DELAY_ACROSS_PORTS\x10\xbf\x9a\x46\x12(\n\"NIRFSG_ATTRIBUTE_WAVEFORM_FILEPATH\x10\xc0\x9a\x46\x12\x35\n/NIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION\x10\xc1\x9a\x46\x12:\n4NIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_MODE\x10\xc2\x9a\x46\x12H\nBNIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_MINIMUM_QUIET_TIME\x10\xc3\x9a\x46\x12\x45\n?NIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_POWER_THRESHOLD\x10\xc4\x9a\x46\x12H\nBNIRFSG_ATTRIBUTE_WRITE_WAVEFORM_BURST_DETECTION_MINIMUM_BURST_TIME\x10\xc5\x9a\x46\x12+\n%NIRFSG_ATTRIBUTE_WAVEFORM_RF_BLANKING\x10\xc6\x9a\x46\x12\x34\n.NIRFSG_ATTRIBUTE_DEEMBEDDING_COMPENSATION_GAIN\x10\xd1\x9a\x46\x12\x41\n;NIRFSG_ATTRIBUTE_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS\x10\xd2\x9a\x46\x12\x42\n\x12!\n\x1cRELATIVE_TO_CURRENT_POSITION\x10\xc1>*\x8c\x02\n\x1bResetWithOptionsStepsToOmit\x12)\n%RESET_WITH_OPTIONS_STEPS_TO_OMIT_NONE\x10\x00\x12.\n*RESET_WITH_OPTIONS_STEPS_TO_OMIT_WAVEFORMS\x10\x01\x12,\n(RESET_WITH_OPTIONS_STEPS_TO_OMIT_SCRIPTS\x10\x02\x12+\n\'RESET_WITH_OPTIONS_STEPS_TO_OMIT_ROUTES\x10\x04\x12\x37\n3RESET_WITH_OPTIONS_STEPS_TO_OMIT_DEEMBEDDING_TABLES\x10\x08*\xaf\x02\n\x0cRoutedSignal\x12\x1f\n\x1bROUTED_SIGNAL_START_TRIGGER\x10\x00\x12\x31\n-ROUTED_SIGNAL_CONFIGURATION_LIST_STEP_TRIGGER\x10\x06\x12-\n)ROUTED_SIGNAL_CONFIGURATION_SETTLED_EVENT\x10\x07\x12\x1c\n\x18ROUTED_SIGNAL_DONE_EVENT\x10\x05\x12\x1e\n\x1aROUTED_SIGNAL_MARKER_EVENT\x10\x02\x12\x1b\n\x17ROUTED_SIGNAL_REF_CLOCK\x10\x03\x12 \n\x1cROUTED_SIGNAL_SCRIPT_TRIGGER\x10\x01\x12\x1f\n\x1bROUTED_SIGNAL_STARTED_EVENT\x10\x04*\xa2\x01\n\x15SParameterOrientation\x12\'\n#S_PARAMETER_ORIENTATION_UNSPECIFIED\x10\x00\x12/\n)S_PARAMETER_ORIENTATION_PORT1_TOWARDS_DUT\x10\xc0\xbb\x01\x12/\n)S_PARAMETER_ORIENTATION_PORT2_TOWARDS_DUT\x10\xc1\xbb\x01*\xf4\x02\n\x1dSelfCalibrateRangeStepsToOmit\x12\x30\n,SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_OMIT_NONE\x10\x00\x12\x32\n.SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_LO_SELF_CAL\x10\x01\x12;\n7SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_POWER_LEVEL_ACCURACY\x10\x02\x12\x38\n4SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_RESIDUAL_LO_POWER\x10\x04\x12\x38\n4SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_IMAGE_SUPPRESSION\x10\x08\x12<\n8SELF_CALIBRATE_RANGE_STEPS_TO_OMIT_SYNTHESIZER_ALIGNMENT\x10\x10*\xe9\x02\n\x10SignalIdentifier\x12!\n\x1dSIGNAL_IDENTIFIER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SIGNAL_IDENTIFIER_NONE\x10\x01\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER0\x10\x02\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER1\x10\x03\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER2\x10\x04\x12%\n!SIGNAL_IDENTIFIER_SCRIPT_TRIGGER3\x10\x05\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER0\x10\x06\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER1\x10\x07\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER2\x10\x08\x12\x1d\n\x19SIGNAL_IDENTIFIER_MARKER3\x10\t*\x90\x06\n\rTriggerSource\x12\x1e\n\x1aTRIGGER_SOURCE_UNSPECIFIED\x10\x00\x12\x17\n\x13TRIGGER_SOURCE_PFI0\x10\x01\x12\x17\n\x13TRIGGER_SOURCE_PFI1\x10\x02\x12\x17\n\x13TRIGGER_SOURCE_PFI2\x10\x03\x12\x17\n\x13TRIGGER_SOURCE_PFI3\x10\x04\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG0\x10\x05\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG1\x10\x06\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG2\x10\x07\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG3\x10\x08\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG4\x10\t\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG5\x10\n\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG6\x10\x0b\x12\x1c\n\x18TRIGGER_SOURCE_PXI_TRIG7\x10\x0c\x12\x1b\n\x17TRIGGER_SOURCE_PXI_STAR\x10\r\x12\x1e\n\x1aTRIGGER_SOURCE_PXIE_DSTARB\x10\x0e\x12%\n!TRIGGER_SOURCE_SYNC_START_TRIGGER\x10\x0f\x12&\n\"TRIGGER_SOURCE_SYNC_SCRIPT_TRIGGER\x10\x10\x12\x1a\n\x16TRIGGER_SOURCE_TRIG_IN\x10\x11\x12\x1b\n\x17TRIGGER_SOURCE_PULSE_IN\x10\x12\x12\x17\n\x13TRIGGER_SOURCE_DIO0\x10\x13\x12\x17\n\x13TRIGGER_SOURCE_DIO1\x10\x14\x12\x17\n\x13TRIGGER_SOURCE_DIO2\x10\x15\x12\x17\n\x13TRIGGER_SOURCE_DIO3\x10\x16\x12\x17\n\x13TRIGGER_SOURCE_DIO4\x10\x17\x12\x17\n\x13TRIGGER_SOURCE_DIO5\x10\x18\x12\x17\n\x13TRIGGER_SOURCE_DIO6\x10\x19\x12\x17\n\x13TRIGGER_SOURCE_DIO7\x10\x1a*\x85)\n\x1aNiRFSGInt32AttributeValues\x12\x1c\n\x18NIRFSG_INT32_UNSPECIFIED\x10\x00\x12%\n NIRFSG_INT32_AMP_PATH_HIGH_POWER\x10\x80}\x12\'\n\"NIRFSG_INT32_AMP_PATH_LOW_HARMONIC\x10\x81}\x12\x37\n1NIRFSG_INT32_ANALOG_MODULATION_FM_BAND_NARROWBAND\x10\xe8\x84\x01\x12\x35\n/NIRFSG_INT32_ANALOG_MODULATION_FM_BAND_WIDEBAND\x10\xe9\x84\x01\x12M\nGNIRFSG_INT32_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR_100_HZ_TO_1_KHZ\x10\xd0\x8c\x01\x12M\nGNIRFSG_INT32_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR_1_KHZ_TO_10_KHZ\x10\xd1\x8c\x01\x12O\nINIRFSG_INT32_ANALOG_MODULATION_FM_NARROWBAND_INTEGRATOR_10_KHZ_TO_100_KHZ\x10\xd2\x8c\x01\x12;\n5NIRFSG_INT32_ANALOG_MODULATION_PM_MODE_HIGH_DEVIATION\x10\xb8\x94\x01\x12<\n6NIRFSG_INT32_ANALOG_MODULATION_PM_MODE_LOW_PHASE_NOISE\x10\xb9\x94\x01\x12,\n(NIRFSG_INT32_ANALOG_MODULATION_TYPE_NONE\x10\x00\x12+\n&NIRFSG_INT32_ANALOG_MODULATION_TYPE_FM\x10\xd0\x0f\x12+\n&NIRFSG_INT32_ANALOG_MODULATION_TYPE_PM\x10\xd1\x0f\x12+\n&NIRFSG_INT32_ANALOG_MODULATION_TYPE_AM\x10\xd2\x0f\x12\x36\n1NIRFSG_INT32_ANALOG_MODULATION_WAVEFORM_TYPE_SINE\x10\xb8\x17\x12\x38\n3NIRFSG_INT32_ANALOG_MODULATION_WAVEFORM_TYPE_SQUARE\x10\xb9\x17\x12:\n5NIRFSG_INT32_ANALOG_MODULATION_WAVEFORM_TYPE_TRIANGLE\x10\xba\x17\x12&\n!NIRFSG_INT32_ARB_FILTER_TYPE_NONE\x10\x90N\x12\x34\n/NIRFSG_INT32_ARB_FILTER_TYPE_ROOT_RAISED_COSINE\x10\x91N\x12/\n*NIRFSG_INT32_ARB_FILTER_TYPE_RAISED_COSINE\x10\x92N\x12?\n:NIRFSG_INT32_ARB_ONBOARD_SAMPLE_CLOCK_MODE_HIGH_RESOLUTION\x10\xf0.\x12;\n6NIRFSG_INT32_ARB_ONBOARD_SAMPLE_CLOCK_MODE_DIVIDE_DOWN\x10\xf1.\x12>\n:NIRFSG_INT32_CONFIG_LIST_TRIGGER_DIG_EDGE_EDGE_RISING_EDGE\x10\x00\x12O\nKNIRFSG_INT32_CONFIGURATION_LIST_REPEAT_CONFIGURATION_LIST_REPEAT_CONTINUOUS\x10\x00\x12K\nGNIRFSG_INT32_CONFIGURATION_LIST_REPEAT_CONFIGURATION_LIST_REPEAT_SINGLE\x10\x01\x12(\n\"NIRFSG_INT32_DEEMBEDDING_TYPE_NONE\x10\xa8\xc3\x01\x12*\n$NIRFSG_INT32_DEEMBEDDING_TYPE_SCALAR\x10\xa9\xc3\x01\x12*\n$NIRFSG_INT32_DEEMBEDDING_TYPE_VECTOR\x10\xaa\xc3\x01\x12.\n*NIRFSG_INT32_DIGITAL_EDGE_EDGE_RISING_EDGE\x10\x00\x12/\n+NIRFSG_INT32_DIGITAL_EDGE_EDGE_FALLING_EDGE\x10\x01\x12\x38\n3NIRFSG_INT32_DIGITAL_LEVEL_ACTIVE_LEVEL_ACTIVE_HIGH\x10\xa8\x46\x12\x37\n2NIRFSG_INT32_DIGITAL_LEVEL_ACTIVE_LEVEL_ACTIVE_LOW\x10\xa9\x46\x12-\n)NIRFSG_INT32_DIGITAL_MODULATION_TYPE_NONE\x10\x00\x12-\n(NIRFSG_INT32_DIGITAL_MODULATION_TYPE_FSK\x10\xa0\x1f\x12-\n(NIRFSG_INT32_DIGITAL_MODULATION_TYPE_OOK\x10\xa1\x1f\x12-\n(NIRFSG_INT32_DIGITAL_MODULATION_TYPE_PSK\x10\xa2\x1f\x12\x37\n2NIRFSG_INT32_DIGITAL_MODULATION_WAVEFORM_TYPE_PRBS\x10\x88\'\x12?\n:NIRFSG_INT32_DIGITAL_MODULATION_WAVEFORM_TYPE_USER_DEFINED\x10\x89\'\x12&\n\"NIRFSG_INT32_ENABLE_VALUES_DISABLE\x10\x00\x12%\n!NIRFSG_INT32_ENABLE_VALUES_ENABLE\x10\x01\x12:\n5NIRFSG_INT32_FREQUENCY_SETTLING_UNITS_TIME_AFTER_LOCK\x10\xe0]\x12\x38\n3NIRFSG_INT32_FREQUENCY_SETTLING_UNITS_TIME_AFTER_IO\x10\xe1]\x12.\n)NIRFSG_INT32_FREQUENCY_SETTLING_UNITS_PPM\x10\xe2]\x12$\n\x1fNIRFSG_INT32_GENERATION_MODE_CW\x10\xe8\x07\x12.\n)NIRFSG_INT32_GENERATION_MODE_ARB_WAVEFORM\x10\xe9\x07\x12(\n#NIRFSG_INT32_GENERATION_MODE_SCRIPT\x10\xea\x07\x12)\n$NIRFSG_INT32_IQ_OFFSET_UNITS_PERCENT\x10\xf8U\x12\'\n\"NIRFSG_INT32_IQ_OFFSET_UNITS_VOLTS\x10\xf9U\x12\x36\n1NIRFSG_INT32_IQ_OUT_PORT_TERM_CONFIG_DIFFERENTIAL\x10\x98u\x12\x36\n1NIRFSG_INT32_IQ_OUT_PORT_TERM_CONFIG_SINGLE_ENDED\x10\x99u\x12,\n(NIRFSG_INT32_LIST_STEP_TRIGGER_TYPE_NONE\x10\x00\x12\x34\n0NIRFSG_INT32_LIST_STEP_TRIGGER_TYPE_DIGITAL_EDGE\x10\x01\x12\'\n#NIRFSG_INT32_LOAD_OPTIONS_SKIP_NONE\x10\x00\x12,\n(NIRFSG_INT32_LOAD_OPTIONS_SKIP_WAVEFORMS\x10\x01\x12&\n\"NIRFSG_INT32_LOOP_BANDWIDTH_NARROW\x10\x00\x12&\n\"NIRFSG_INT32_LOOP_BANDWIDTH_MEDIUM\x10\x01\x12$\n NIRFSG_INT32_LOOP_BANDWIDTH_WIDE\x10\x02\x12\x35\n/NIRFSG_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_PULSE\x10\xd8\xb3\x01\x12\x36\n0NIRFSG_INT32_MARKER_EVENT_OUTPUT_BEHAVIOR_TOGGLE\x10\xd9\xb3\x01\x12\x39\n3NIRFSG_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_SECONDS\x10\xf0\xab\x01\x12\x46\n@NIRFSG_INT32_MARKER_EVENT_PULSE_WIDTH_UNITS_SAMPLE_CLOCK_PERIODS\x10\xf1\xab\x01\x12@\n:NIRFSG_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_DIGITAL_LOW\x10\x88\xa4\x01\x12\x41\n;NIRFSG_INT32_MARKER_EVENT_TOGGLE_INITIAL_STATE_DIGITAL_HIGH\x10\x89\xa4\x01\x12$\n\x1fNIRFSG_INT32_OUTPUT_PORT_RF_OUT\x10\xb0m\x12$\n\x1fNIRFSG_INT32_OUTPUT_PORT_IQ_OUT\x10\xb1m\x12%\n NIRFSG_INT32_OUTPUT_PORT_CAL_OUT\x10\xb2m\x12$\n\x1fNIRFSG_INT32_OUTPUT_PORT_I_ONLY\x10\xb3m\x12\x32\n-NIRFSG_INT32_OVERFLOW_ERROR_REPORTING_WARNING\x10\x95\n\x12\x33\n.NIRFSG_INT32_OVERFLOW_ERROR_REPORTING_DISABLED\x10\x96\n\x12\x33\n/NIRFSG_INT32_PPA_SCRIPT_INHERITANCE_EXACT_MATCH\x10\x00\x12/\n+NIRFSG_INT32_PPA_SCRIPT_INHERITANCE_MINIMUM\x10\x01\x12/\n+NIRFSG_INT32_PPA_SCRIPT_INHERITANCE_MAXIMUM\x10\x02\x12)\n%NIRFSG_INT32_PHASE_CONTINUITY_DISABLE\x10\x00\x12/\n\"NIRFSG_INT32_PHASE_CONTINUITY_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12(\n$NIRFSG_INT32_PHASE_CONTINUITY_ENABLE\x10\x01\x12\x30\n+NIRFSG_INT32_POWER_LEVEL_TYPE_AVERAGE_POWER\x10\xd8\x36\x12-\n(NIRFSG_INT32_POWER_LEVEL_TYPE_PEAK_POWER\x10\xd9\x36\x12\x36\n0NIRFSG_INT32_PULSE_MODULATION_MODE_OPTIMAL_MATCH\x10\xa0\x9c\x01\x12\x37\n1NIRFSG_INT32_PULSE_MODULATION_MODE_HIGH_ISOLATION\x10\xa1\x9c\x01\x12(\n$NIRFSG_INT32_RESET_OPTIONS_SKIP_NONE\x10\x00\x12-\n)NIRFSG_INT32_RESET_OPTIONS_SKIP_WAVEFORMS\x10\x01\x12+\n\'NIRFSG_INT32_RESET_OPTIONS_SKIP_SCRIPTS\x10\x02\x12\x35\n1NIRFSG_INT32_RESET_OPTIONS_SKIP_DEEMBEDING_TABLES\x10\x08\x12\x30\n,NIRFSG_INT32_RF_IN_LO_EXPORT_ENABLED_DISABLE\x10\x00\x12=\n0NIRFSG_INT32_RF_IN_LO_EXPORT_ENABLED_UNSPECIFIED\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12/\n+NIRFSG_INT32_RF_IN_LO_EXPORT_ENABLED_ENABLE\x10\x01\x12)\n%NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_NONE\x10\x00\x12\x31\n-NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_DIGITAL_EDGE\x10\x01\x12\x33\n.NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_DIGITAL_LEVEL\x10\xc0>\x12-\n)NIRFSG_INT32_SCRIPT_TRIGGER_TYPE_SOFTWARE\x10\x02\x12(\n$NIRFSG_INT32_START_TRIGGER_TYPE_NONE\x10\x00\x12\x30\n,NIRFSG_INT32_START_TRIGGER_TYPE_DIGITAL_EDGE\x10\x01\x12,\n(NIRFSG_INT32_START_TRIGGER_TYPE_SOFTWARE\x10\x02\x12:\n6NIRFSG_INT32_START_TRIGGER_TYPE_P2_P_ENDPOINT_FULLNESS\x10\x03\x12@\n3NIRFSG_INT32_UPCONVERTER_FREQUENCY_OFFSET_MODE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x39\n5NIRFSG_INT32_UPCONVERTER_FREQUENCY_OFFSET_MODE_ENABLE\x10\x01\x12@\n;NIRFSG_INT32_UPCONVERTER_FREQUENCY_OFFSET_MODE_USER_DEFINED\x10\x89\'\x12;\n7NIRFSG_INT32_WRITE_WAVEFORM_BURST_DETECTION_MODE_MANUAL\x10\x00\x12\x42\n5NIRFSG_INT32_WRITE_WAVEFORM_BURST_DETECTION_MODE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12#\n\x1fNIRFSG_INT32_YIG_MAIN_COIL_SLOW\x10\x00\x12#\n\x1fNIRFSG_INT32_YIG_MAIN_COIL_FAST\x10\x01\x1a\x02\x10\x01*\x98\x01\n\x1bNiRFSGReal64AttributeValues\x12\x1d\n\x19NIRFSG_REAL64_UNSPECIFIED\x10\x00\x12*\n#NIRFSG_REAL64_REF_CLOCK_RATE_10_MHZ\x10\x80\xad\xe2\x04\x12.\n!NIRFSG_REAL64_REF_CLOCK_RATE_AUTO\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xd0\x30\n!NiRFSGStringAttributeValuesMapped\x12$\n NIRFSG_STRING_MAPPED_UNSPECIFIED\x10\x00\x12\x36\n2NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DO_NOT_EXPORT\x10\x01\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI0\x10\x02\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI1\x10\x03\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI4\x10\x04\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PFI5\x10\x05\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG0\x10\x06\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG1\x10\x07\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG2\x10\x08\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG3\x10\t\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG4\x10\n\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG5\x10\x0b\x12\x32\n.NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXI_TRIG6\x10\x0c\x12\x34\n0NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_PXIE_DSTARC\x10\r\x12\x31\n-NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_TRIG_OUT\x10\x0e\x12\x37\n3NIRFSG_STRING_ARB_SAMPLE_CLOCK_SOURCE_ONBOARD_CLOCK\x10\x0f\x12\x30\n,NIRFSG_STRING_ARB_SAMPLE_CLOCK_SOURCE_CLK_IN\x10\x10\x12<\n8NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DO_NOT_EXPORT\x10\x11\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PFI0\x10\x12\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PFI1\x10\x13\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG0\x10\x14\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG1\x10\x15\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG2\x10\x16\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG3\x10\x17\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG4\x10\x18\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG5\x10\x19\x12\x38\n4NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXI_TRIG6\x10\x1a\x12:\n6NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_PXIE_DSTARC\x10\x1b\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_TRIG_OUT\x10\x1c\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PFI0\x10\x1d\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PFI1\x10\x1e\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG0\x10\x1f\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG1\x10 \x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG2\x10!\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG3\x10\"\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG4\x10#\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG5\x10$\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG6\x10%\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXI_TRIG7\x10&\x12\x35\n1NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_PXIE_DSTARB\x10\'\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER0_EVENT\x10(\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER1_EVENT\x10)\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER2_EVENT\x10*\x12\x37\n3NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_MARKER3_EVENT\x10+\x12\x35\n1NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_TIMER_EVENT\x10,\x12\x31\n-NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_TRIG_IN\x10-\x12@\n\n:NIRFSG_STRING_CONFIG_SETTLED_EVENT_OUTPUT_TERM_PXIE_DSTARC\x10\x36\x12;\n7NIRFSG_STRING_CONFIG_SETTLED_EVENT_OUTPUT_TERM_TRIG_OUT\x10\x37\x12#\n\x1fNIRFSG_STRING_LO_SOURCE_ONBOARD\x10\x38\x12!\n\x1dNIRFSG_STRING_LO_SOURCE_LO_IN\x10\x39\x12%\n!NIRFSG_STRING_LO_SOURCE_SECONDARY\x10:\x12(\n$NIRFSG_STRING_LO_SOURCE_SG_SA_SHARED\x10;\x12\x32\n.NIRFSG_STRING_LO_SOURCE_AUTOMATIC_SG_SA_SHARED\x10<\x12(\n$NIRFSG_STRING_PXI_CHASSIS_CLK10_NONE\x10=\x12\x31\n-NIRFSG_STRING_PXI_CHASSIS_CLK10_ONBOARD_CLOCK\x10>\x12*\n&NIRFSG_STRING_PXI_CHASSIS_CLK10_REF_IN\x10?\x12\x35\n1NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_DO_NOT_EXPORT\x10@\x12/\n+NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_REF_OUT\x10\x41\x12\x30\n,NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_REF_OUT2\x10\x42\x12/\n+NIRFSG_STRING_REF_CLOCK_OUTPUT_TERM_CLK_OUT\x10\x43\x12\x30\n,NIRFSG_STRING_REF_CLOCK_SOURCE_ONBOARD_CLOCK\x10\x44\x12)\n%NIRFSG_STRING_REF_CLOCK_SOURCE_REF_IN\x10\x45\x12*\n&NIRFSG_STRING_REF_CLOCK_SOURCE_PXI_CLK\x10\x46\x12)\n%NIRFSG_STRING_REF_CLOCK_SOURCE_CLK_IN\x10G\x12+\n\'NIRFSG_STRING_REF_CLOCK_SOURCE_REF_IN_2\x10H\x12\x31\n-NIRFSG_STRING_REF_CLOCK_SOURCE_PXI_CLK_MASTER\x10I\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI0\x10J\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI1\x10K\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI2\x10L\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_PFI3\x10M\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG0\x10N\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG1\x10O\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG2\x10P\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG3\x10Q\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG4\x10R\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG5\x10S\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG6\x10T\x12*\n&NIRFSG_STRING_TRIGGER_SOURCE_PXI_TRIG7\x10U\x12)\n%NIRFSG_STRING_TRIGGER_SOURCE_PXI_STAR\x10V\x12,\n(NIRFSG_STRING_TRIGGER_SOURCE_PXIE_DSTARB\x10W\x12\x33\n/NIRFSG_STRING_TRIGGER_SOURCE_SYNC_START_TRIGGER\x10X\x12\x34\n0NIRFSG_STRING_TRIGGER_SOURCE_SYNC_SCRIPT_TRIGGER\x10Y\x12(\n$NIRFSG_STRING_TRIGGER_SOURCE_TRIG_IN\x10Z\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO0\x10[\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO1\x10\\\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO2\x10]\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO3\x10^\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO4\x10_\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO5\x10`\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO6\x10\x61\x12-\n)NIRFSG_STRING_ANY_SIGNAL_OUTPUT_TERM_DIO7\x10\x62\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO0\x10\x63\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO1\x10\x64\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO2\x10\x65\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO3\x10\x66\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO4\x10g\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO5\x10h\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO6\x10i\x12\x33\n/NIRFSG_STRING_CONFIG_LIST_TRIG_OUTPUT_TERM_DIO7\x10j\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO0\x10k\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO1\x10l\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO2\x10m\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO3\x10n\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO4\x10o\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO5\x10p\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO6\x10q\x12.\n*NIRFSG_STRING_CONFIG_LIST_TRIG_SOURCE_DIO7\x10r\x12)\n%NIRFSG_STRING_TRIGGER_SOURCE_PULSE_IN\x10s\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO0\x10t\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO1\x10u\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO2\x10v\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO3\x10w\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO4\x10x\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO5\x10y\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO6\x10z\x12%\n!NIRFSG_STRING_TRIGGER_SOURCE_DIO7\x10{2\xaf\x65\n\x06NiRFSG\x12>\n\x05\x41\x62ort\x12\x19.nirfsg_grpc.AbortRequest\x1a\x1a.nirfsg_grpc.AbortResponse\x12h\n\x13\x41llocateArbWaveform\x12\'.nirfsg_grpc.AllocateArbWaveformRequest\x1a(.nirfsg_grpc.AllocateArbWaveformResponse\x12t\n\x17\x43heckAttributeViBoolean\x12+.nirfsg_grpc.CheckAttributeViBooleanRequest\x1a,.nirfsg_grpc.CheckAttributeViBooleanResponse\x12n\n\x15\x43heckAttributeViInt32\x12).nirfsg_grpc.CheckAttributeViInt32Request\x1a*.nirfsg_grpc.CheckAttributeViInt32Response\x12n\n\x15\x43heckAttributeViInt64\x12).nirfsg_grpc.CheckAttributeViInt64Request\x1a*.nirfsg_grpc.CheckAttributeViInt64Response\x12q\n\x16\x43heckAttributeViReal64\x12*.nirfsg_grpc.CheckAttributeViReal64Request\x1a+.nirfsg_grpc.CheckAttributeViReal64Response\x12t\n\x17\x43heckAttributeViSession\x12+.nirfsg_grpc.CheckAttributeViSessionRequest\x1a,.nirfsg_grpc.CheckAttributeViSessionResponse\x12q\n\x16\x43heckAttributeViString\x12*.nirfsg_grpc.CheckAttributeViStringRequest\x1a+.nirfsg_grpc.CheckAttributeViStringResponse\x12n\n\x15\x43heckGenerationStatus\x12).nirfsg_grpc.CheckGenerationStatusRequest\x1a*.nirfsg_grpc.CheckGenerationStatusResponse\x12\x89\x01\n\x1e\x43heckIfConfigurationListExists\x12\x32.nirfsg_grpc.CheckIfConfigurationListExistsRequest\x1a\x33.nirfsg_grpc.CheckIfConfigurationListExistsResponse\x12h\n\x13\x43heckIfScriptExists\x12\'.nirfsg_grpc.CheckIfScriptExistsRequest\x1a(.nirfsg_grpc.CheckIfScriptExistsResponse\x12n\n\x15\x43heckIfWaveformExists\x12).nirfsg_grpc.CheckIfWaveformExistsRequest\x1a*.nirfsg_grpc.CheckIfWaveformExistsResponse\x12k\n\x14\x43learAllArbWaveforms\x12(.nirfsg_grpc.ClearAllArbWaveformsRequest\x1a).nirfsg_grpc.ClearAllArbWaveformsResponse\x12_\n\x10\x43learArbWaveform\x12$.nirfsg_grpc.ClearArbWaveformRequest\x1a%.nirfsg_grpc.ClearArbWaveformResponse\x12M\n\nClearError\x12\x1e.nirfsg_grpc.ClearErrorRequest\x1a\x1f.nirfsg_grpc.ClearErrorResponse\x12t\n\x17\x43learSelfCalibrateRange\x12+.nirfsg_grpc.ClearSelfCalibrateRangeRequest\x1a,.nirfsg_grpc.ClearSelfCalibrateRangeResponse\x12>\n\x05\x43lose\x12\x19.nirfsg_grpc.CloseRequest\x1a\x1a.nirfsg_grpc.CloseResponse\x12\x41\n\x06\x43ommit\x12\x1a.nirfsg_grpc.CommitRequest\x1a\x1b.nirfsg_grpc.CommitResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationLinear\x12@.nirfsg_grpc.ConfigureDeembeddingTableInterpolationLinearRequest\x1a\x41.nirfsg_grpc.ConfigureDeembeddingTableInterpolationLinearResponse\x12\xb6\x01\n-ConfigureDeembeddingTableInterpolationNearest\x12\x41.nirfsg_grpc.ConfigureDeembeddingTableInterpolationNearestRequest\x1a\x42.nirfsg_grpc.ConfigureDeembeddingTableInterpolationNearestResponse\x12\xb3\x01\n,ConfigureDeembeddingTableInterpolationSpline\x12@.nirfsg_grpc.ConfigureDeembeddingTableInterpolationSplineRequest\x1a\x41.nirfsg_grpc.ConfigureDeembeddingTableInterpolationSplineResponse\x12\xbf\x01\n0ConfigureDigitalEdgeConfigurationListStepTrigger\x12\x44.nirfsg_grpc.ConfigureDigitalEdgeConfigurationListStepTriggerRequest\x1a\x45.nirfsg_grpc.ConfigureDigitalEdgeConfigurationListStepTriggerResponse\x12\x92\x01\n!ConfigureDigitalEdgeScriptTrigger\x12\x35.nirfsg_grpc.ConfigureDigitalEdgeScriptTriggerRequest\x1a\x36.nirfsg_grpc.ConfigureDigitalEdgeScriptTriggerResponse\x12\x8f\x01\n ConfigureDigitalEdgeStartTrigger\x12\x34.nirfsg_grpc.ConfigureDigitalEdgeStartTriggerRequest\x1a\x35.nirfsg_grpc.ConfigureDigitalEdgeStartTriggerResponse\x12\x95\x01\n\"ConfigureDigitalLevelScriptTrigger\x12\x36.nirfsg_grpc.ConfigureDigitalLevelScriptTriggerRequest\x1a\x37.nirfsg_grpc.ConfigureDigitalLevelScriptTriggerResponse\x12\xb6\x01\n-ConfigureDigitalModulationUserDefinedWaveform\x12\x41.nirfsg_grpc.ConfigureDigitalModulationUserDefinedWaveformRequest\x1a\x42.nirfsg_grpc.ConfigureDigitalModulationUserDefinedWaveformResponse\x12t\n\x17\x43onfigureGenerationMode\x12+.nirfsg_grpc.ConfigureGenerationModeRequest\x1a,.nirfsg_grpc.ConfigureGenerationModeResponse\x12q\n\x16\x43onfigureOutputEnabled\x12*.nirfsg_grpc.ConfigureOutputEnabledRequest\x1a+.nirfsg_grpc.ConfigureOutputEnabledResponse\x12\xa7\x01\n(ConfigureP2PEndpointFullnessStartTrigger\x12<.nirfsg_grpc.ConfigureP2PEndpointFullnessStartTriggerRequest\x1a=.nirfsg_grpc.ConfigureP2PEndpointFullnessStartTriggerResponse\x12w\n\x18\x43onfigurePXIChassisClk10\x12,.nirfsg_grpc.ConfigurePXIChassisClk10Request\x1a-.nirfsg_grpc.ConfigurePXIChassisClk10Response\x12t\n\x17\x43onfigurePowerLevelType\x12+.nirfsg_grpc.ConfigurePowerLevelTypeRequest\x1a,.nirfsg_grpc.ConfigurePowerLevelTypeResponse\x12P\n\x0b\x43onfigureRF\x12\x1f.nirfsg_grpc.ConfigureRFRequest\x1a .nirfsg_grpc.ConfigureRFResponse\x12\x62\n\x11\x43onfigureRefClock\x12%.nirfsg_grpc.ConfigureRefClockRequest\x1a&.nirfsg_grpc.ConfigureRefClockResponse\x12w\n\x18\x43onfigureSignalBandwidth\x12,.nirfsg_grpc.ConfigureSignalBandwidthRequest\x1a-.nirfsg_grpc.ConfigureSignalBandwidthResponse\x12\x89\x01\n\x1e\x43onfigureSoftwareScriptTrigger\x12\x32.nirfsg_grpc.ConfigureSoftwareScriptTriggerRequest\x1a\x33.nirfsg_grpc.ConfigureSoftwareScriptTriggerResponse\x12\x86\x01\n\x1d\x43onfigureSoftwareStartTrigger\x12\x31.nirfsg_grpc.ConfigureSoftwareStartTriggerRequest\x1a\x32.nirfsg_grpc.ConfigureSoftwareStartTriggerResponse\x12\x98\x01\n#ConfigureUpconverterPLLSettlingTime\x12\x37.nirfsg_grpc.ConfigureUpconverterPLLSettlingTimeRequest\x1a\x38.nirfsg_grpc.ConfigureUpconverterPLLSettlingTimeResponse\x12t\n\x17\x43reateConfigurationList\x12+.nirfsg_grpc.CreateConfigurationListRequest\x1a,.nirfsg_grpc.CreateConfigurationListResponse\x12\x80\x01\n\x1b\x43reateConfigurationListStep\x12/.nirfsg_grpc.CreateConfigurationListStepRequest\x1a\x30.nirfsg_grpc.CreateConfigurationListStepResponse\x12\x9e\x01\n%CreateDeembeddingSparameterTableArray\x12\x39.nirfsg_grpc.CreateDeembeddingSparameterTableArrayRequest\x1a:.nirfsg_grpc.CreateDeembeddingSparameterTableArrayResponse\x12\xa4\x01\n\'CreateDeembeddingSparameterTableS2PFile\x12;.nirfsg_grpc.CreateDeembeddingSparameterTableS2PFileRequest\x1a<.nirfsg_grpc.CreateDeembeddingSparameterTableS2PFileResponse\x12}\n\x1a\x44\x65leteAllDeembeddingTables\x12..nirfsg_grpc.DeleteAllDeembeddingTablesRequest\x1a/.nirfsg_grpc.DeleteAllDeembeddingTablesResponse\x12t\n\x17\x44\x65leteConfigurationList\x12+.nirfsg_grpc.DeleteConfigurationListRequest\x1a,.nirfsg_grpc.DeleteConfigurationListResponse\x12q\n\x16\x44\x65leteDeembeddingTable\x12*.nirfsg_grpc.DeleteDeembeddingTableRequest\x1a+.nirfsg_grpc.DeleteDeembeddingTableResponse\x12S\n\x0c\x44\x65leteScript\x12 .nirfsg_grpc.DeleteScriptRequest\x1a!.nirfsg_grpc.DeleteScriptResponse\x12\x44\n\x07\x44isable\x12\x1b.nirfsg_grpc.DisableRequest\x1a\x1c.nirfsg_grpc.DisableResponse\x12k\n\x14\x44isableAllModulation\x12(.nirfsg_grpc.DisableAllModulationRequest\x1a).nirfsg_grpc.DisableAllModulationResponse\x12\x98\x01\n#DisableConfigurationListStepTrigger\x12\x37.nirfsg_grpc.DisableConfigurationListStepTriggerRequest\x1a\x38.nirfsg_grpc.DisableConfigurationListStepTriggerResponse\x12k\n\x14\x44isableScriptTrigger\x12(.nirfsg_grpc.DisableScriptTriggerRequest\x1a).nirfsg_grpc.DisableScriptTriggerResponse\x12h\n\x13\x44isableStartTrigger\x12\'.nirfsg_grpc.DisableStartTriggerRequest\x1a(.nirfsg_grpc.DisableStartTriggerResponse\x12S\n\x0c\x45rrorMessage\x12 .nirfsg_grpc.ErrorMessageRequest\x1a!.nirfsg_grpc.ErrorMessageResponse\x12M\n\nErrorQuery\x12\x1e.nirfsg_grpc.ErrorQueryRequest\x1a\x1f.nirfsg_grpc.ErrorQueryResponse\x12S\n\x0c\x45xportSignal\x12 .nirfsg_grpc.ExportSignalRequest\x1a!.nirfsg_grpc.ExportSignalResponse\x12w\n\x18GetAllNamedWaveformNames\x12,.nirfsg_grpc.GetAllNamedWaveformNamesRequest\x1a-.nirfsg_grpc.GetAllNamedWaveformNamesResponse\x12\x62\n\x11GetAllScriptNames\x12%.nirfsg_grpc.GetAllScriptNamesRequest\x1a&.nirfsg_grpc.GetAllScriptNamesResponse\x12J\n\tGetScript\x12\x1d.nirfsg_grpc.GetScriptRequest\x1a\x1e.nirfsg_grpc.GetScriptResponse\x12n\n\x15GetAttributeViBoolean\x12).nirfsg_grpc.GetAttributeViBooleanRequest\x1a*.nirfsg_grpc.GetAttributeViBooleanResponse\x12h\n\x13GetAttributeViInt32\x12\'.nirfsg_grpc.GetAttributeViInt32Request\x1a(.nirfsg_grpc.GetAttributeViInt32Response\x12h\n\x13GetAttributeViInt64\x12\'.nirfsg_grpc.GetAttributeViInt64Request\x1a(.nirfsg_grpc.GetAttributeViInt64Response\x12k\n\x14GetAttributeViReal64\x12(.nirfsg_grpc.GetAttributeViReal64Request\x1a).nirfsg_grpc.GetAttributeViReal64Response\x12n\n\x15GetAttributeViSession\x12).nirfsg_grpc.GetAttributeViSessionRequest\x1a*.nirfsg_grpc.GetAttributeViSessionResponse\x12k\n\x14GetAttributeViString\x12(.nirfsg_grpc.GetAttributeViStringRequest\x1a).nirfsg_grpc.GetAttributeViStringResponse\x12Y\n\x0eGetChannelName\x12\".nirfsg_grpc.GetChannelNameRequest\x1a#.nirfsg_grpc.GetChannelNameResponse\x12z\n\x19GetDeembeddingSparameters\x12-.nirfsg_grpc.GetDeembeddingSparametersRequest\x1a..nirfsg_grpc.GetDeembeddingSparametersResponse\x12G\n\x08GetError\x12\x1c.nirfsg_grpc.GetErrorRequest\x1a\x1d.nirfsg_grpc.GetErrorResponse\x12\x9e\x01\n%GetExternalCalibrationLastDateAndTime\x12\x39.nirfsg_grpc.GetExternalCalibrationLastDateAndTimeRequest\x1a:.nirfsg_grpc.GetExternalCalibrationLastDateAndTimeResponse\x12h\n\x13GetMaxSettablePower\x12\'.nirfsg_grpc.GetMaxSettablePowerRequest\x1a(.nirfsg_grpc.GetMaxSettablePowerResponse\x12\x86\x01\n\x1dGetSelfCalibrationDateAndTime\x12\x31.nirfsg_grpc.GetSelfCalibrationDateAndTimeRequest\x1a\x32.nirfsg_grpc.GetSelfCalibrationDateAndTimeResponse\x12\x86\x01\n\x1dGetSelfCalibrationTemperature\x12\x31.nirfsg_grpc.GetSelfCalibrationTemperatureRequest\x1a\x32.nirfsg_grpc.GetSelfCalibrationTemperatureResponse\x12\\\n\x0fGetTerminalName\x12#.nirfsg_grpc.GetTerminalNameRequest\x1a$.nirfsg_grpc.GetTerminalNameResponse\x12P\n\x0bGetUserData\x12\x1f.nirfsg_grpc.GetUserDataRequest\x1a .nirfsg_grpc.GetUserDataResponse\x12\x89\x01\n\x1eGetWaveformBurstStartLocations\x12\x32.nirfsg_grpc.GetWaveformBurstStartLocationsRequest\x1a\x33.nirfsg_grpc.GetWaveformBurstStartLocationsResponse\x12\x86\x01\n\x1dGetWaveformBurstStopLocations\x12\x31.nirfsg_grpc.GetWaveformBurstStopLocationsRequest\x1a\x32.nirfsg_grpc.GetWaveformBurstStopLocationsResponse\x12\x8c\x01\n\x1fGetWaveformMarkerEventLocations\x12\x33.nirfsg_grpc.GetWaveformMarkerEventLocationsRequest\x1a\x34.nirfsg_grpc.GetWaveformMarkerEventLocationsResponse\x12;\n\x04Init\x12\x18.nirfsg_grpc.InitRequest\x1a\x19.nirfsg_grpc.InitResponse\x12\\\n\x0fInitWithOptions\x12#.nirfsg_grpc.InitWithOptionsRequest\x1a$.nirfsg_grpc.InitWithOptionsResponse\x12G\n\x08Initiate\x12\x1c.nirfsg_grpc.InitiateRequest\x1a\x1d.nirfsg_grpc.InitiateResponse\x12t\n\x17InvalidateAllAttributes\x12+.nirfsg_grpc.InvalidateAllAttributesRequest\x1a,.nirfsg_grpc.InvalidateAllAttributesResponse\x12}\n\x1aLoadConfigurationsFromFile\x12..nirfsg_grpc.LoadConfigurationsFromFileRequest\x1a/.nirfsg_grpc.LoadConfigurationsFromFileResponse\x12\x65\n\x12PerformPowerSearch\x12&.nirfsg_grpc.PerformPowerSearchRequest\x1a\'.nirfsg_grpc.PerformPowerSearchResponse\x12w\n\x18PerformThermalCorrection\x12,.nirfsg_grpc.PerformThermalCorrectionRequest\x1a-.nirfsg_grpc.PerformThermalCorrectionResponse\x12\x83\x01\n\x1cQueryArbWaveformCapabilities\x12\x30.nirfsg_grpc.QueryArbWaveformCapabilitiesRequest\x1a\x31.nirfsg_grpc.QueryArbWaveformCapabilitiesResponse\x12\x98\x01\n#ReadAndDownloadWaveformFromFileTDMS\x12\x37.nirfsg_grpc.ReadAndDownloadWaveformFromFileTDMSRequest\x1a\x38.nirfsg_grpc.ReadAndDownloadWaveformFromFileTDMSResponse\x12>\n\x05Reset\x12\x19.nirfsg_grpc.ResetRequest\x1a\x1a.nirfsg_grpc.ResetResponse\x12Y\n\x0eResetAttribute\x12\".nirfsg_grpc.ResetAttributeRequest\x1a#.nirfsg_grpc.ResetAttributeResponse\x12P\n\x0bResetDevice\x12\x1f.nirfsg_grpc.ResetDeviceRequest\x1a .nirfsg_grpc.ResetDeviceResponse\x12\x62\n\x11ResetWithDefaults\x12%.nirfsg_grpc.ResetWithDefaultsRequest\x1a&.nirfsg_grpc.ResetWithDefaultsResponse\x12_\n\x10ResetWithOptions\x12$.nirfsg_grpc.ResetWithOptionsRequest\x1a%.nirfsg_grpc.ResetWithOptionsResponse\x12V\n\rRevisionQuery\x12!.nirfsg_grpc.RevisionQueryRequest\x1a\".nirfsg_grpc.RevisionQueryResponse\x12w\n\x18SaveConfigurationsToFile\x12,.nirfsg_grpc.SaveConfigurationsToFileRequest\x1a-.nirfsg_grpc.SaveConfigurationsToFileResponse\x12\x62\n\x11SelectArbWaveform\x12%.nirfsg_grpc.SelectArbWaveformRequest\x1a&.nirfsg_grpc.SelectArbWaveformResponse\x12\x44\n\x07SelfCal\x12\x1b.nirfsg_grpc.SelfCalRequest\x1a\x1c.nirfsg_grpc.SelfCalResponse\x12\x65\n\x12SelfCalibrateRange\x12&.nirfsg_grpc.SelfCalibrateRangeRequest\x1a\'.nirfsg_grpc.SelfCalibrateRangeResponse\x12G\n\x08SelfTest\x12\x1c.nirfsg_grpc.SelfTestRequest\x1a\x1d.nirfsg_grpc.SelfTestResponse\x12t\n\x17SendSoftwareEdgeTrigger\x12+.nirfsg_grpc.SendSoftwareEdgeTriggerRequest\x1a,.nirfsg_grpc.SendSoftwareEdgeTriggerResponse\x12\x8c\x01\n\x1fSetArbWaveformNextWritePosition\x12\x33.nirfsg_grpc.SetArbWaveformNextWritePositionRequest\x1a\x34.nirfsg_grpc.SetArbWaveformNextWritePositionResponse\x12n\n\x15SetAttributeViBoolean\x12).nirfsg_grpc.SetAttributeViBooleanRequest\x1a*.nirfsg_grpc.SetAttributeViBooleanResponse\x12h\n\x13SetAttributeViInt32\x12\'.nirfsg_grpc.SetAttributeViInt32Request\x1a(.nirfsg_grpc.SetAttributeViInt32Response\x12h\n\x13SetAttributeViInt64\x12\'.nirfsg_grpc.SetAttributeViInt64Request\x1a(.nirfsg_grpc.SetAttributeViInt64Response\x12k\n\x14SetAttributeViReal64\x12(.nirfsg_grpc.SetAttributeViReal64Request\x1a).nirfsg_grpc.SetAttributeViReal64Response\x12n\n\x15SetAttributeViSession\x12).nirfsg_grpc.SetAttributeViSessionRequest\x1a*.nirfsg_grpc.SetAttributeViSessionResponse\x12k\n\x14SetAttributeViString\x12(.nirfsg_grpc.SetAttributeViStringRequest\x1a).nirfsg_grpc.SetAttributeViStringResponse\x12P\n\x0bSetUserData\x12\x1f.nirfsg_grpc.SetUserDataRequest\x1a .nirfsg_grpc.SetUserDataResponse\x12\x89\x01\n\x1eSetWaveformBurstStartLocations\x12\x32.nirfsg_grpc.SetWaveformBurstStartLocationsRequest\x1a\x33.nirfsg_grpc.SetWaveformBurstStartLocationsResponse\x12\x86\x01\n\x1dSetWaveformBurstStopLocations\x12\x31.nirfsg_grpc.SetWaveformBurstStopLocationsRequest\x1a\x32.nirfsg_grpc.SetWaveformBurstStopLocationsResponse\x12\x8c\x01\n\x1fSetWaveformMarkerEventLocations\x12\x33.nirfsg_grpc.SetWaveformMarkerEventLocationsRequest\x1a\x34.nirfsg_grpc.SetWaveformMarkerEventLocationsResponse\x12_\n\x10WaitUntilSettled\x12$.nirfsg_grpc.WaitUntilSettledRequest\x1a%.nirfsg_grpc.WaitUntilSettledResponse\x12_\n\x10WriteArbWaveform\x12$.nirfsg_grpc.WriteArbWaveformRequest\x1a%.nirfsg_grpc.WriteArbWaveformResponse\x12}\n\x1aWriteArbWaveformComplexF32\x12..nirfsg_grpc.WriteArbWaveformComplexF32Request\x1a/.nirfsg_grpc.WriteArbWaveformComplexF32Response\x12}\n\x1aWriteArbWaveformComplexF64\x12..nirfsg_grpc.WriteArbWaveformComplexF64Request\x1a/.nirfsg_grpc.WriteArbWaveformComplexF64Response\x12}\n\x1aWriteArbWaveformComplexI16\x12..nirfsg_grpc.WriteArbWaveformComplexI16Request\x1a/.nirfsg_grpc.WriteArbWaveformComplexI16Response\x12h\n\x13WriteArbWaveformF32\x12\'.nirfsg_grpc.WriteArbWaveformF32Request\x1a(.nirfsg_grpc.WriteArbWaveformF32Response\x12P\n\x0bWriteScript\x12\x1f.nirfsg_grpc.WriteScriptRequest\x1a .nirfsg_grpc.WriteScriptResponseB@\n\x12\x63om.ni.grpc.nirfsgB\x06NiRFSGP\x01\xaa\x02\x1fNationalInstruments.Grpc.NiRFSGb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nirfsg_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.nirfsgB\006NiRFSGP\001\252\002\037NationalInstruments.Grpc.NiRFSG' + _NIRFSGINT32ATTRIBUTEVALUES._options = None + _NIRFSGINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NIRFSGATTRIBUTE']._serialized_start=22589 + _globals['_NIRFSGATTRIBUTE']._serialized_end=35098 + _globals['_DIGITALEDGECONFIGURATIONLISTSTEPTRIGGERSOURCE']._serialized_start=35101 + _globals['_DIGITALEDGECONFIGURATIONLISTSTEPTRIGGERSOURCE']._serialized_end=36485 + _globals['_DIGITALEDGEEDGE']._serialized_start=36487 + _globals['_DIGITALEDGEEDGE']._serialized_end=36575 + _globals['_DIGITALEDGESCRIPTTRIGGERIDENTIFIER']._serialized_start=36578 + _globals['_DIGITALEDGESCRIPTTRIGGERIDENTIFIER']._serialized_end=36910 + _globals['_DIGITALLEVELACTIVELEVEL']._serialized_start=36913 + _globals['_DIGITALLEVELACTIVELEVEL']._serialized_end=37071 + _globals['_GENERATIONMODE']._serialized_start=37074 + _globals['_GENERATIONMODE']._serialized_end=37212 + _globals['_LINEARINTERPOLATIONFORMAT']._serialized_start=37215 + _globals['_LINEARINTERPOLATIONFORMAT']._serialized_end=37454 + _globals['_MODULE']._serialized_start=37456 + _globals['_MODULE']._serialized_end=37549 + _globals['_OUTPUTSIGNAL']._serialized_start=37552 + _globals['_OUTPUTSIGNAL']._serialized_end=38040 + _globals['_PXICHASSISCLK10']._serialized_start=38043 + _globals['_PXICHASSISCLK10']._serialized_end=38190 + _globals['_POWERLEVELTYPE']._serialized_start=38192 + _globals['_POWERLEVELTYPE']._serialized_end=38313 + _globals['_REFCLOCKSOURCE']._serialized_start=38316 + _globals['_REFCLOCKSOURCE']._serialized_end=38558 + _globals['_RELATIVETO']._serialized_start=38560 + _globals['_RELATIVETO']._serialized_end=38672 + _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_start=38675 + _globals['_RESETWITHOPTIONSSTEPSTOOMIT']._serialized_end=38943 + _globals['_ROUTEDSIGNAL']._serialized_start=38946 + _globals['_ROUTEDSIGNAL']._serialized_end=39249 + _globals['_SPARAMETERORIENTATION']._serialized_start=39252 + _globals['_SPARAMETERORIENTATION']._serialized_end=39414 + _globals['_SELFCALIBRATERANGESTEPSTOOMIT']._serialized_start=39417 + _globals['_SELFCALIBRATERANGESTEPSTOOMIT']._serialized_end=39789 + _globals['_SIGNALIDENTIFIER']._serialized_start=39792 + _globals['_SIGNALIDENTIFIER']._serialized_end=40153 + _globals['_TRIGGERSOURCE']._serialized_start=40156 + _globals['_TRIGGERSOURCE']._serialized_end=40940 + _globals['_NIRFSGINT32ATTRIBUTEVALUES']._serialized_start=40943 + _globals['_NIRFSGINT32ATTRIBUTEVALUES']._serialized_end=46196 + _globals['_NIRFSGREAL64ATTRIBUTEVALUES']._serialized_start=46199 + _globals['_NIRFSGREAL64ATTRIBUTEVALUES']._serialized_end=46351 + _globals['_NIRFSGSTRINGATTRIBUTEVALUESMAPPED']._serialized_start=46354 + _globals['_NIRFSGSTRINGATTRIBUTEVALUESMAPPED']._serialized_end=52578 + _globals['_ABORTREQUEST']._serialized_start=60 + _globals['_ABORTREQUEST']._serialized_end=110 + _globals['_ABORTRESPONSE']._serialized_start=112 + _globals['_ABORTRESPONSE']._serialized_end=143 + _globals['_ALLOCATEARBWAVEFORMREQUEST']._serialized_start=145 + _globals['_ALLOCATEARBWAVEFORMREQUEST']._serialized_end=257 + _globals['_ALLOCATEARBWAVEFORMRESPONSE']._serialized_start=259 + _globals['_ALLOCATEARBWAVEFORMRESPONSE']._serialized_end=304 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=307 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=464 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=466 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=515 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=518 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=751 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=753 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=800 + _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_start=803 + _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_end=962 + _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_start=964 + _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_end=1011 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=1014 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=1249 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=1251 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=1299 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=1302 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=1483 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=1485 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=1534 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=1537 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=1785 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=1787 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=1835 + _globals['_CHECKGENERATIONSTATUSREQUEST']._serialized_start=1837 + _globals['_CHECKGENERATIONSTATUSREQUEST']._serialized_end=1903 + _globals['_CHECKGENERATIONSTATUSRESPONSE']._serialized_start=1905 + _globals['_CHECKGENERATIONSTATUSRESPONSE']._serialized_end=1969 + _globals['_CHECKIFCONFIGURATIONLISTEXISTSREQUEST']._serialized_start=1971 + _globals['_CHECKIFCONFIGURATIONLISTEXISTSREQUEST']._serialized_end=2065 + _globals['_CHECKIFCONFIGURATIONLISTEXISTSRESPONSE']._serialized_start=2067 + _globals['_CHECKIFCONFIGURATIONLISTEXISTSRESPONSE']._serialized_end=2144 + _globals['_CHECKIFSCRIPTEXISTSREQUEST']._serialized_start=2146 + _globals['_CHECKIFSCRIPTEXISTSREQUEST']._serialized_end=2231 + _globals['_CHECKIFSCRIPTEXISTSRESPONSE']._serialized_start=2233 + _globals['_CHECKIFSCRIPTEXISTSRESPONSE']._serialized_end=2301 + _globals['_CHECKIFWAVEFORMEXISTSREQUEST']._serialized_start=2303 + _globals['_CHECKIFWAVEFORMEXISTSREQUEST']._serialized_end=2392 + _globals['_CHECKIFWAVEFORMEXISTSRESPONSE']._serialized_start=2394 + _globals['_CHECKIFWAVEFORMEXISTSRESPONSE']._serialized_end=2466 + _globals['_CLEARALLARBWAVEFORMSREQUEST']._serialized_start=2468 + _globals['_CLEARALLARBWAVEFORMSREQUEST']._serialized_end=2533 + _globals['_CLEARALLARBWAVEFORMSRESPONSE']._serialized_start=2535 + _globals['_CLEARALLARBWAVEFORMSRESPONSE']._serialized_end=2581 + _globals['_CLEARARBWAVEFORMREQUEST']._serialized_start=2583 + _globals['_CLEARARBWAVEFORMREQUEST']._serialized_end=2658 + _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_start=2660 + _globals['_CLEARARBWAVEFORMRESPONSE']._serialized_end=2702 + _globals['_CLEARERRORREQUEST']._serialized_start=2704 + _globals['_CLEARERRORREQUEST']._serialized_end=2759 + _globals['_CLEARERRORRESPONSE']._serialized_start=2761 + _globals['_CLEARERRORRESPONSE']._serialized_end=2797 + _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_start=2799 + _globals['_CLEARSELFCALIBRATERANGEREQUEST']._serialized_end=2867 + _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_start=2869 + _globals['_CLEARSELFCALIBRATERANGERESPONSE']._serialized_end=2918 + _globals['_CLOSEREQUEST']._serialized_start=2920 + _globals['_CLOSEREQUEST']._serialized_end=2970 + _globals['_CLOSERESPONSE']._serialized_start=2972 + _globals['_CLOSERESPONSE']._serialized_end=3003 + _globals['_COMMITREQUEST']._serialized_start=3005 + _globals['_COMMITREQUEST']._serialized_end=3056 + _globals['_COMMITRESPONSE']._serialized_start=3058 + _globals['_COMMITRESPONSE']._serialized_end=3090 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_start=3093 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARREQUEST']._serialized_end=3311 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_start=3313 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONLINEARRESPONSE']._serialized_end=3383 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_start=3385 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTREQUEST']._serialized_end=3509 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_start=3511 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONNEARESTRESPONSE']._serialized_end=3582 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_start=3584 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINEREQUEST']._serialized_end=3707 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_start=3709 + _globals['_CONFIGUREDEEMBEDDINGTABLEINTERPOLATIONSPLINERESPONSE']._serialized_end=3779 + _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_start=3782 + _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_end=4076 + _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_start=4078 + _globals['_CONFIGUREDIGITALEDGECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_end=4152 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_start=4155 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERREQUEST']._serialized_end=4525 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_start=4527 + _globals['_CONFIGUREDIGITALEDGESCRIPTTRIGGERRESPONSE']._serialized_end=4586 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_start=4589 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERREQUEST']._serialized_end=4835 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_start=4837 + _globals['_CONFIGUREDIGITALEDGESTARTTRIGGERRESPONSE']._serialized_end=4895 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_start=4898 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERREQUEST']._serialized_end=5280 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_start=5282 + _globals['_CONFIGUREDIGITALLEVELSCRIPTTRIGGERRESPONSE']._serialized_end=5342 + _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMREQUEST']._serialized_start=5344 + _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMREQUEST']._serialized_end=5465 + _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMRESPONSE']._serialized_start=5467 + _globals['_CONFIGUREDIGITALMODULATIONUSERDEFINEDWAVEFORMRESPONSE']._serialized_end=5538 + _globals['_CONFIGUREGENERATIONMODEREQUEST']._serialized_start=5541 + _globals['_CONFIGUREGENERATIONMODEREQUEST']._serialized_end=5720 + _globals['_CONFIGUREGENERATIONMODERESPONSE']._serialized_start=5722 + _globals['_CONFIGUREGENERATIONMODERESPONSE']._serialized_end=5771 + _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_start=5773 + _globals['_CONFIGUREOUTPUTENABLEDREQUEST']._serialized_end=5864 + _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_start=5866 + _globals['_CONFIGUREOUTPUTENABLEDRESPONSE']._serialized_end=5914 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_start=5916 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERREQUEST']._serialized_end=6038 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_start=6040 + _globals['_CONFIGUREP2PENDPOINTFULLNESSSTARTTRIGGERRESPONSE']._serialized_end=6106 + _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_start=6109 + _globals['_CONFIGUREPXICHASSISCLK10REQUEST']._serialized_end=6300 + _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_start=6302 + _globals['_CONFIGUREPXICHASSISCLK10RESPONSE']._serialized_end=6352 + _globals['_CONFIGUREPOWERLEVELTYPEREQUEST']._serialized_start=6355 + _globals['_CONFIGUREPOWERLEVELTYPEREQUEST']._serialized_end=6537 + _globals['_CONFIGUREPOWERLEVELTYPERESPONSE']._serialized_start=6539 + _globals['_CONFIGUREPOWERLEVELTYPERESPONSE']._serialized_end=6588 + _globals['_CONFIGURERFREQUEST']._serialized_start=6590 + _globals['_CONFIGURERFREQUEST']._serialized_end=6686 + _globals['_CONFIGURERFRESPONSE']._serialized_start=6688 + _globals['_CONFIGURERFRESPONSE']._serialized_end=6725 + _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_start=6728 + _globals['_CONFIGUREREFCLOCKREQUEST']._serialized_end=6935 + _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_start=6937 + _globals['_CONFIGUREREFCLOCKRESPONSE']._serialized_end=6980 + _globals['_CONFIGURESIGNALBANDWIDTHREQUEST']._serialized_start=6982 + _globals['_CONFIGURESIGNALBANDWIDTHREQUEST']._serialized_end=7077 + _globals['_CONFIGURESIGNALBANDWIDTHRESPONSE']._serialized_start=7079 + _globals['_CONFIGURESIGNALBANDWIDTHRESPONSE']._serialized_end=7129 + _globals['_CONFIGURESOFTWARESCRIPTTRIGGERREQUEST']._serialized_start=7132 + _globals['_CONFIGURESOFTWARESCRIPTTRIGGERREQUEST']._serialized_end=7330 + _globals['_CONFIGURESOFTWARESCRIPTTRIGGERRESPONSE']._serialized_start=7332 + _globals['_CONFIGURESOFTWARESCRIPTTRIGGERRESPONSE']._serialized_end=7388 + _globals['_CONFIGURESOFTWARESTARTTRIGGERREQUEST']._serialized_start=7390 + _globals['_CONFIGURESOFTWARESTARTTRIGGERREQUEST']._serialized_end=7464 + _globals['_CONFIGURESOFTWARESTARTTRIGGERRESPONSE']._serialized_start=7466 + _globals['_CONFIGURESOFTWARESTARTTRIGGERRESPONSE']._serialized_end=7521 + _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMEREQUEST']._serialized_start=7524 + _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMEREQUEST']._serialized_end=7658 + _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMERESPONSE']._serialized_start=7660 + _globals['_CONFIGUREUPCONVERTERPLLSETTLINGTIMERESPONSE']._serialized_end=7721 + _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_start=7724 + _globals['_CREATECONFIGURATIONLISTREQUEST']._serialized_end=7908 + _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_start=7910 + _globals['_CREATECONFIGURATIONLISTRESPONSE']._serialized_end=7959 + _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_start=7961 + _globals['_CREATECONFIGURATIONLISTSTEPREQUEST']._serialized_end=8061 + _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_start=8063 + _globals['_CREATECONFIGURATIONLISTSTEPRESPONSE']._serialized_end=8116 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_start=8119 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYREQUEST']._serialized_end=8478 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_start=8480 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLEARRAYRESPONSE']._serialized_end=8543 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_start=8546 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILEREQUEST']._serialized_end=8826 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_start=8828 + _globals['_CREATEDEEMBEDDINGSPARAMETERTABLES2PFILERESPONSE']._serialized_end=8893 + _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_start=8895 + _globals['_DELETEALLDEEMBEDDINGTABLESREQUEST']._serialized_end=8966 + _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_start=8968 + _globals['_DELETEALLDEEMBEDDINGTABLESRESPONSE']._serialized_end=9020 + _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_start=9022 + _globals['_DELETECONFIGURATIONLISTREQUEST']._serialized_end=9109 + _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_start=9111 + _globals['_DELETECONFIGURATIONLISTRESPONSE']._serialized_end=9160 + _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_start=9162 + _globals['_DELETEDEEMBEDDINGTABLEREQUEST']._serialized_end=9263 + _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_start=9265 + _globals['_DELETEDEEMBEDDINGTABLERESPONSE']._serialized_end=9313 + _globals['_DELETESCRIPTREQUEST']._serialized_start=9315 + _globals['_DELETESCRIPTREQUEST']._serialized_end=9393 + _globals['_DELETESCRIPTRESPONSE']._serialized_start=9395 + _globals['_DELETESCRIPTRESPONSE']._serialized_end=9433 + _globals['_DISABLEREQUEST']._serialized_start=9435 + _globals['_DISABLEREQUEST']._serialized_end=9487 + _globals['_DISABLERESPONSE']._serialized_start=9489 + _globals['_DISABLERESPONSE']._serialized_end=9522 + _globals['_DISABLEALLMODULATIONREQUEST']._serialized_start=9524 + _globals['_DISABLEALLMODULATIONREQUEST']._serialized_end=9589 + _globals['_DISABLEALLMODULATIONRESPONSE']._serialized_start=9591 + _globals['_DISABLEALLMODULATIONRESPONSE']._serialized_end=9637 + _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_start=9639 + _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERREQUEST']._serialized_end=9719 + _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_start=9721 + _globals['_DISABLECONFIGURATIONLISTSTEPTRIGGERRESPONSE']._serialized_end=9782 + _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_start=9785 + _globals['_DISABLESCRIPTTRIGGERREQUEST']._serialized_end=9973 + _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_start=9975 + _globals['_DISABLESCRIPTTRIGGERRESPONSE']._serialized_end=10021 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_start=10023 + _globals['_DISABLESTARTTRIGGERREQUEST']._serialized_end=10087 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_start=10089 + _globals['_DISABLESTARTTRIGGERRESPONSE']._serialized_end=10134 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=10136 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=10213 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=10215 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=10276 + _globals['_ERRORQUERYREQUEST']._serialized_start=10278 + _globals['_ERRORQUERYREQUEST']._serialized_end=10333 + _globals['_ERRORQUERYRESPONSE']._serialized_start=10335 + _globals['_ERRORQUERYRESPONSE']._serialized_end=10414 + _globals['_EXPORTSIGNALREQUEST']._serialized_start=10417 + _globals['_EXPORTSIGNALREQUEST']._serialized_end=10798 + _globals['_EXPORTSIGNALRESPONSE']._serialized_start=10800 + _globals['_EXPORTSIGNALRESPONSE']._serialized_end=10838 + _globals['_GETALLNAMEDWAVEFORMNAMESREQUEST']._serialized_start=10840 + _globals['_GETALLNAMEDWAVEFORMNAMESREQUEST']._serialized_end=10909 + _globals['_GETALLNAMEDWAVEFORMNAMESRESPONSE']._serialized_start=10911 + _globals['_GETALLNAMEDWAVEFORMNAMESRESPONSE']._serialized_end=11013 + _globals['_GETALLSCRIPTNAMESREQUEST']._serialized_start=11015 + _globals['_GETALLSCRIPTNAMESREQUEST']._serialized_end=11077 + _globals['_GETALLSCRIPTNAMESRESPONSE']._serialized_start=11079 + _globals['_GETALLSCRIPTNAMESRESPONSE']._serialized_end=11172 + _globals['_GETSCRIPTREQUEST']._serialized_start=11174 + _globals['_GETSCRIPTREQUEST']._serialized_end=11249 + _globals['_GETSCRIPTRESPONSE']._serialized_start=11251 + _globals['_GETSCRIPTRESPONSE']._serialized_end=11330 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=11333 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=11473 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=11475 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=11537 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=11540 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=11678 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=11680 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=11740 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=11743 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=11881 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=11883 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=11943 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=11946 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=12085 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=12087 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=12148 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=12151 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=12291 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=12293 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=12379 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=12382 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=12521 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=12523 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=12584 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=12586 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=12660 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=12662 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=12716 + _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_start=12718 + _globals['_GETDEEMBEDDINGSPARAMETERSREQUEST']._serialized_end=12788 + _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_start=12791 + _globals['_GETDEEMBEDDINGSPARAMETERSRESPONSE']._serialized_end=12951 + _globals['_GETERRORREQUEST']._serialized_start=12953 + _globals['_GETERRORREQUEST']._serialized_end=13006 + _globals['_GETERRORRESPONSE']._serialized_start=13008 + _globals['_GETERRORRESPONSE']._serialized_end=13089 + _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMEREQUEST']._serialized_start=13091 + _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMEREQUEST']._serialized_end=13173 + _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMERESPONSE']._serialized_start=13176 + _globals['_GETEXTERNALCALIBRATIONLASTDATEANDTIMERESPONSE']._serialized_end=13327 + _globals['_GETMAXSETTABLEPOWERREQUEST']._serialized_start=13329 + _globals['_GETMAXSETTABLEPOWERREQUEST']._serialized_end=13393 + _globals['_GETMAXSETTABLEPOWERRESPONSE']._serialized_start=13395 + _globals['_GETMAXSETTABLEPOWERRESPONSE']._serialized_end=13455 + _globals['_GETSELFCALIBRATIONDATEANDTIMEREQUEST']._serialized_start=13458 + _globals['_GETSELFCALIBRATIONDATEANDTIMEREQUEST']._serialized_end=13608 + _globals['_GETSELFCALIBRATIONDATEANDTIMERESPONSE']._serialized_start=13611 + _globals['_GETSELFCALIBRATIONDATEANDTIMERESPONSE']._serialized_end=13754 + _globals['_GETSELFCALIBRATIONTEMPERATUREREQUEST']._serialized_start=13757 + _globals['_GETSELFCALIBRATIONTEMPERATUREREQUEST']._serialized_end=13907 + _globals['_GETSELFCALIBRATIONTEMPERATURERESPONSE']._serialized_start=13909 + _globals['_GETSELFCALIBRATIONTEMPERATURERESPONSE']._serialized_end=13985 + _globals['_GETTERMINALNAMEREQUEST']._serialized_start=13988 + _globals['_GETTERMINALNAMEREQUEST']._serialized_end=14256 + _globals['_GETTERMINALNAMERESPONSE']._serialized_start=14258 + _globals['_GETTERMINALNAMERESPONSE']._serialized_end=14322 + _globals['_GETUSERDATAREQUEST']._serialized_start=14324 + _globals['_GETUSERDATAREQUEST']._serialized_end=14400 + _globals['_GETUSERDATARESPONSE']._serialized_start=14402 + _globals['_GETUSERDATARESPONSE']._serialized_end=14479 + _globals['_GETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_start=14481 + _globals['_GETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_end=14578 + _globals['_GETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_start=14580 + _globals['_GETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_end=14678 + _globals['_GETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_start=14680 + _globals['_GETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_end=14776 + _globals['_GETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_start=14778 + _globals['_GETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_end=14875 + _globals['_GETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_start=14877 + _globals['_GETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_end=14975 + _globals['_GETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_start=14977 + _globals['_GETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_end=15076 + _globals['_INITREQUEST']._serialized_start=15079 + _globals['_INITREQUEST']._serialized_end=15256 + _globals['_INITRESPONSE']._serialized_start=15259 + _globals['_INITRESPONSE']._serialized_end=15389 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=15392 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=15603 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=15606 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=15743 + _globals['_INITIATEREQUEST']._serialized_start=15745 + _globals['_INITIATEREQUEST']._serialized_end=15798 + _globals['_INITIATERESPONSE']._serialized_start=15800 + _globals['_INITIATERESPONSE']._serialized_end=15834 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=15836 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=15904 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=15906 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=15955 + _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_start=15957 + _globals['_LOADCONFIGURATIONSFROMFILEREQUEST']._serialized_end=16069 + _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_start=16071 + _globals['_LOADCONFIGURATIONSFROMFILERESPONSE']._serialized_end=16123 + _globals['_PERFORMPOWERSEARCHREQUEST']._serialized_start=16125 + _globals['_PERFORMPOWERSEARCHREQUEST']._serialized_end=16188 + _globals['_PERFORMPOWERSEARCHRESPONSE']._serialized_start=16190 + _globals['_PERFORMPOWERSEARCHRESPONSE']._serialized_end=16234 + _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_start=16236 + _globals['_PERFORMTHERMALCORRECTIONREQUEST']._serialized_end=16305 + _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_start=16307 + _globals['_PERFORMTHERMALCORRECTIONRESPONSE']._serialized_end=16357 + _globals['_QUERYARBWAVEFORMCAPABILITIESREQUEST']._serialized_start=16359 + _globals['_QUERYARBWAVEFORMCAPABILITIESREQUEST']._serialized_end=16432 + _globals['_QUERYARBWAVEFORMCAPABILITIESRESPONSE']._serialized_start=16435 + _globals['_QUERYARBWAVEFORMCAPABILITIESRESPONSE']._serialized_end=16599 + _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSREQUEST']._serialized_start=16602 + _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSREQUEST']._serialized_end=16748 + _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSRESPONSE']._serialized_start=16750 + _globals['_READANDDOWNLOADWAVEFORMFROMFILETDMSRESPONSE']._serialized_end=16811 + _globals['_RESETREQUEST']._serialized_start=16813 + _globals['_RESETREQUEST']._serialized_end=16863 + _globals['_RESETRESPONSE']._serialized_start=16865 + _globals['_RESETRESPONSE']._serialized_end=16896 + _globals['_RESETATTRIBUTEREQUEST']._serialized_start=16899 + _globals['_RESETATTRIBUTEREQUEST']._serialized_end=17032 + _globals['_RESETATTRIBUTERESPONSE']._serialized_start=17034 + _globals['_RESETATTRIBUTERESPONSE']._serialized_end=17074 + _globals['_RESETDEVICEREQUEST']._serialized_start=17076 + _globals['_RESETDEVICEREQUEST']._serialized_end=17132 + _globals['_RESETDEVICERESPONSE']._serialized_start=17134 + _globals['_RESETDEVICERESPONSE']._serialized_end=17171 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=17173 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=17235 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=17237 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=17280 + _globals['_RESETWITHOPTIONSREQUEST']._serialized_start=17283 + _globals['_RESETWITHOPTIONSREQUEST']._serialized_end=17462 + _globals['_RESETWITHOPTIONSRESPONSE']._serialized_start=17464 + _globals['_RESETWITHOPTIONSRESPONSE']._serialized_end=17506 + _globals['_REVISIONQUERYREQUEST']._serialized_start=17508 + _globals['_REVISIONQUERYREQUEST']._serialized_end=17566 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=17568 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=17670 + _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_start=17672 + _globals['_SAVECONFIGURATIONSTOFILEREQUEST']._serialized_end=17782 + _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_start=17784 + _globals['_SAVECONFIGURATIONSTOFILERESPONSE']._serialized_end=17834 + _globals['_SELECTARBWAVEFORMREQUEST']._serialized_start=17836 + _globals['_SELECTARBWAVEFORMREQUEST']._serialized_end=17912 + _globals['_SELECTARBWAVEFORMRESPONSE']._serialized_start=17914 + _globals['_SELECTARBWAVEFORMRESPONSE']._serialized_end=17957 + _globals['_SELFCALREQUEST']._serialized_start=17959 + _globals['_SELFCALREQUEST']._serialized_end=18011 + _globals['_SELFCALRESPONSE']._serialized_start=18013 + _globals['_SELFCALRESPONSE']._serialized_end=18046 + _globals['_SELFCALIBRATERANGEREQUEST']._serialized_start=18049 + _globals['_SELFCALIBRATERANGEREQUEST']._serialized_end=18328 + _globals['_SELFCALIBRATERANGERESPONSE']._serialized_start=18330 + _globals['_SELFCALIBRATERANGERESPONSE']._serialized_end=18374 + _globals['_SELFTESTREQUEST']._serialized_start=18376 + _globals['_SELFTESTREQUEST']._serialized_end=18429 + _globals['_SELFTESTRESPONSE']._serialized_start=18431 + _globals['_SELFTESTRESPONSE']._serialized_end=18518 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_start=18521 + _globals['_SENDSOFTWAREEDGETRIGGERREQUEST']._serialized_end=18803 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_start=18805 + _globals['_SENDSOFTWAREEDGETRIGGERRESPONSE']._serialized_end=18854 + _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_start=18857 + _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONREQUEST']._serialized_end=19067 + _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_start=19069 + _globals['_SETARBWAVEFORMNEXTWRITEPOSITIONRESPONSE']._serialized_end=19126 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19129 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19284 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19286 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19333 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=19336 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=19567 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=19569 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=19614 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=19617 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=19774 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=19776 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=19821 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=19824 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=20057 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=20059 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=20105 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=20108 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=20287 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=20289 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=20336 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=20339 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=20585 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=20587 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=20633 + _globals['_SETUSERDATAREQUEST']._serialized_start=20635 + _globals['_SETUSERDATAREQUEST']._serialized_end=20725 + _globals['_SETUSERDATARESPONSE']._serialized_start=20727 + _globals['_SETUSERDATARESPONSE']._serialized_end=20764 + _globals['_SETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_start=20766 + _globals['_SETWAVEFORMBURSTSTARTLOCATIONSREQUEST']._serialized_end=20882 + _globals['_SETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_start=20884 + _globals['_SETWAVEFORMBURSTSTARTLOCATIONSRESPONSE']._serialized_end=20940 + _globals['_SETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_start=20942 + _globals['_SETWAVEFORMBURSTSTOPLOCATIONSREQUEST']._serialized_end=21057 + _globals['_SETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_start=21059 + _globals['_SETWAVEFORMBURSTSTOPLOCATIONSRESPONSE']._serialized_end=21114 + _globals['_SETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_start=21116 + _globals['_SETWAVEFORMMARKEREVENTLOCATIONSREQUEST']._serialized_end=21233 + _globals['_SETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_start=21235 + _globals['_SETWAVEFORMMARKEREVENTLOCATIONSRESPONSE']._serialized_end=21292 + _globals['_WAITUNTILSETTLEDREQUEST']._serialized_start=21294 + _globals['_WAITUNTILSETTLEDREQUEST']._serialized_end=21386 + _globals['_WAITUNTILSETTLEDRESPONSE']._serialized_start=21388 + _globals['_WAITUNTILSETTLEDRESPONSE']._serialized_end=21430 + _globals['_WRITEARBWAVEFORMREQUEST']._serialized_start=21433 + _globals['_WRITEARBWAVEFORMREQUEST']._serialized_end=21576 + _globals['_WRITEARBWAVEFORMRESPONSE']._serialized_start=21578 + _globals['_WRITEARBWAVEFORMRESPONSE']._serialized_end=21620 + _globals['_WRITEARBWAVEFORMCOMPLEXF32REQUEST']._serialized_start=21623 + _globals['_WRITEARBWAVEFORMCOMPLEXF32REQUEST']._serialized_end=21797 + _globals['_WRITEARBWAVEFORMCOMPLEXF32RESPONSE']._serialized_start=21799 + _globals['_WRITEARBWAVEFORMCOMPLEXF32RESPONSE']._serialized_end=21851 + _globals['_WRITEARBWAVEFORMCOMPLEXF64REQUEST']._serialized_start=21854 + _globals['_WRITEARBWAVEFORMCOMPLEXF64REQUEST']._serialized_end=22025 + _globals['_WRITEARBWAVEFORMCOMPLEXF64RESPONSE']._serialized_start=22027 + _globals['_WRITEARBWAVEFORMCOMPLEXF64RESPONSE']._serialized_end=22079 + _globals['_WRITEARBWAVEFORMCOMPLEXI16REQUEST']._serialized_start=22082 + _globals['_WRITEARBWAVEFORMCOMPLEXI16REQUEST']._serialized_end=22223 + _globals['_WRITEARBWAVEFORMCOMPLEXI16RESPONSE']._serialized_start=22225 + _globals['_WRITEARBWAVEFORMCOMPLEXI16RESPONSE']._serialized_end=22277 + _globals['_WRITEARBWAVEFORMF32REQUEST']._serialized_start=22280 + _globals['_WRITEARBWAVEFORMF32REQUEST']._serialized_end=22426 + _globals['_WRITEARBWAVEFORMF32RESPONSE']._serialized_start=22428 + _globals['_WRITEARBWAVEFORMF32RESPONSE']._serialized_end=22473 + _globals['_WRITESCRIPTREQUEST']._serialized_start=22475 + _globals['_WRITESCRIPTREQUEST']._serialized_end=22547 + _globals['_WRITESCRIPTRESPONSE']._serialized_start=22549 + _globals['_WRITESCRIPTRESPONSE']._serialized_end=22586 + _globals['_NIRFSG']._serialized_start=52581 + _globals['_NIRFSG']._serialized_end=65556 +# @@protoc_insertion_point(module_scope) diff --git a/generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py b/generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py new file mode 100644 index 0000000000..0fa255c612 --- /dev/null +++ b/generated/nirfsg/nirfsg/nirfsg_pb2_grpc.py @@ -0,0 +1,3762 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import nirfsg_pb2 as nirfsg__pb2 + + +class NiRFSGStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Abort = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Abort', + request_serializer=nirfsg__pb2.AbortRequest.SerializeToString, + response_deserializer=nirfsg__pb2.AbortResponse.FromString, + ) + self.AllocateArbWaveform = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/AllocateArbWaveform', + request_serializer=nirfsg__pb2.AllocateArbWaveformRequest.SerializeToString, + response_deserializer=nirfsg__pb2.AllocateArbWaveformResponse.FromString, + ) + self.CheckAttributeViBoolean = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckAttributeViBoolean', + request_serializer=nirfsg__pb2.CheckAttributeViBooleanRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckAttributeViBooleanResponse.FromString, + ) + self.CheckAttributeViInt32 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckAttributeViInt32', + request_serializer=nirfsg__pb2.CheckAttributeViInt32Request.SerializeToString, + response_deserializer=nirfsg__pb2.CheckAttributeViInt32Response.FromString, + ) + self.CheckAttributeViInt64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckAttributeViInt64', + request_serializer=nirfsg__pb2.CheckAttributeViInt64Request.SerializeToString, + response_deserializer=nirfsg__pb2.CheckAttributeViInt64Response.FromString, + ) + self.CheckAttributeViReal64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckAttributeViReal64', + request_serializer=nirfsg__pb2.CheckAttributeViReal64Request.SerializeToString, + response_deserializer=nirfsg__pb2.CheckAttributeViReal64Response.FromString, + ) + self.CheckAttributeViSession = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckAttributeViSession', + request_serializer=nirfsg__pb2.CheckAttributeViSessionRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckAttributeViSessionResponse.FromString, + ) + self.CheckAttributeViString = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckAttributeViString', + request_serializer=nirfsg__pb2.CheckAttributeViStringRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckAttributeViStringResponse.FromString, + ) + self.CheckGenerationStatus = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckGenerationStatus', + request_serializer=nirfsg__pb2.CheckGenerationStatusRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckGenerationStatusResponse.FromString, + ) + self.CheckIfConfigurationListExists = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckIfConfigurationListExists', + request_serializer=nirfsg__pb2.CheckIfConfigurationListExistsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckIfConfigurationListExistsResponse.FromString, + ) + self.CheckIfScriptExists = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckIfScriptExists', + request_serializer=nirfsg__pb2.CheckIfScriptExistsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckIfScriptExistsResponse.FromString, + ) + self.CheckIfWaveformExists = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CheckIfWaveformExists', + request_serializer=nirfsg__pb2.CheckIfWaveformExistsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CheckIfWaveformExistsResponse.FromString, + ) + self.ClearAllArbWaveforms = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ClearAllArbWaveforms', + request_serializer=nirfsg__pb2.ClearAllArbWaveformsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ClearAllArbWaveformsResponse.FromString, + ) + self.ClearArbWaveform = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ClearArbWaveform', + request_serializer=nirfsg__pb2.ClearArbWaveformRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ClearArbWaveformResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ClearError', + request_serializer=nirfsg__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ClearErrorResponse.FromString, + ) + self.ClearSelfCalibrateRange = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ClearSelfCalibrateRange', + request_serializer=nirfsg__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ClearSelfCalibrateRangeResponse.FromString, + ) + self.Close = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Close', + request_serializer=nirfsg__pb2.CloseRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CloseResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Commit', + request_serializer=nirfsg__pb2.CommitRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CommitResponse.FromString, + ) + self.ConfigureDeembeddingTableInterpolationLinear = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationLinear', + request_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, + ) + self.ConfigureDeembeddingTableInterpolationNearest = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationNearest', + request_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, + ) + self.ConfigureDeembeddingTableInterpolationSpline = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationSpline', + request_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, + ) + self.ConfigureDigitalEdgeConfigurationListStepTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeConfigurationListStepTrigger', + request_serializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeScriptTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeScriptTrigger', + request_serializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, + ) + self.ConfigureDigitalEdgeStartTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeStartTrigger', + request_serializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + ) + self.ConfigureDigitalLevelScriptTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDigitalLevelScriptTrigger', + request_serializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, + ) + self.ConfigureDigitalModulationUserDefinedWaveform = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureDigitalModulationUserDefinedWaveform', + request_serializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformResponse.FromString, + ) + self.ConfigureGenerationMode = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureGenerationMode', + request_serializer=nirfsg__pb2.ConfigureGenerationModeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureGenerationModeResponse.FromString, + ) + self.ConfigureOutputEnabled = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureOutputEnabled', + request_serializer=nirfsg__pb2.ConfigureOutputEnabledRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureOutputEnabledResponse.FromString, + ) + self.ConfigureP2PEndpointFullnessStartTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureP2PEndpointFullnessStartTrigger', + request_serializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, + ) + self.ConfigurePXIChassisClk10 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigurePXIChassisClk10', + request_serializer=nirfsg__pb2.ConfigurePXIChassisClk10Request.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigurePXIChassisClk10Response.FromString, + ) + self.ConfigurePowerLevelType = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigurePowerLevelType', + request_serializer=nirfsg__pb2.ConfigurePowerLevelTypeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigurePowerLevelTypeResponse.FromString, + ) + self.ConfigureRF = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureRF', + request_serializer=nirfsg__pb2.ConfigureRFRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureRFResponse.FromString, + ) + self.ConfigureRefClock = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureRefClock', + request_serializer=nirfsg__pb2.ConfigureRefClockRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureRefClockResponse.FromString, + ) + self.ConfigureSignalBandwidth = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureSignalBandwidth', + request_serializer=nirfsg__pb2.ConfigureSignalBandwidthRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureSignalBandwidthResponse.FromString, + ) + self.ConfigureSoftwareScriptTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureSoftwareScriptTrigger', + request_serializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerResponse.FromString, + ) + self.ConfigureSoftwareStartTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureSoftwareStartTrigger', + request_serializer=nirfsg__pb2.ConfigureSoftwareStartTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureSoftwareStartTriggerResponse.FromString, + ) + self.ConfigureUpconverterPLLSettlingTime = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ConfigureUpconverterPLLSettlingTime', + request_serializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeResponse.FromString, + ) + self.CreateConfigurationList = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CreateConfigurationList', + request_serializer=nirfsg__pb2.CreateConfigurationListRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CreateConfigurationListResponse.FromString, + ) + self.CreateConfigurationListStep = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CreateConfigurationListStep', + request_serializer=nirfsg__pb2.CreateConfigurationListStepRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CreateConfigurationListStepResponse.FromString, + ) + self.CreateDeembeddingSparameterTableArray = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableArray', + request_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, + ) + self.CreateDeembeddingSparameterTableS2PFile = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableS2PFile', + request_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, + response_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, + ) + self.DeleteAllDeembeddingTables = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DeleteAllDeembeddingTables', + request_serializer=nirfsg__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DeleteAllDeembeddingTablesResponse.FromString, + ) + self.DeleteConfigurationList = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DeleteConfigurationList', + request_serializer=nirfsg__pb2.DeleteConfigurationListRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DeleteConfigurationListResponse.FromString, + ) + self.DeleteDeembeddingTable = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DeleteDeembeddingTable', + request_serializer=nirfsg__pb2.DeleteDeembeddingTableRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DeleteDeembeddingTableResponse.FromString, + ) + self.DeleteScript = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DeleteScript', + request_serializer=nirfsg__pb2.DeleteScriptRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DeleteScriptResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Disable', + request_serializer=nirfsg__pb2.DisableRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DisableResponse.FromString, + ) + self.DisableAllModulation = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DisableAllModulation', + request_serializer=nirfsg__pb2.DisableAllModulationRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DisableAllModulationResponse.FromString, + ) + self.DisableConfigurationListStepTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DisableConfigurationListStepTrigger', + request_serializer=nirfsg__pb2.DisableConfigurationListStepTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DisableConfigurationListStepTriggerResponse.FromString, + ) + self.DisableScriptTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DisableScriptTrigger', + request_serializer=nirfsg__pb2.DisableScriptTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DisableScriptTriggerResponse.FromString, + ) + self.DisableStartTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/DisableStartTrigger', + request_serializer=nirfsg__pb2.DisableStartTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.DisableStartTriggerResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ErrorMessage', + request_serializer=nirfsg__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ErrorMessageResponse.FromString, + ) + self.ErrorQuery = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ErrorQuery', + request_serializer=nirfsg__pb2.ErrorQueryRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ErrorQueryResponse.FromString, + ) + self.ExportSignal = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ExportSignal', + request_serializer=nirfsg__pb2.ExportSignalRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ExportSignalResponse.FromString, + ) + self.GetAllNamedWaveformNames = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAllNamedWaveformNames', + request_serializer=nirfsg__pb2.GetAllNamedWaveformNamesRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetAllNamedWaveformNamesResponse.FromString, + ) + self.GetAllScriptNames = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAllScriptNames', + request_serializer=nirfsg__pb2.GetAllScriptNamesRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetAllScriptNamesResponse.FromString, + ) + self.GetScript = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetScript', + request_serializer=nirfsg__pb2.GetScriptRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetScriptResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAttributeViBoolean', + request_serializer=nirfsg__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAttributeViInt32', + request_serializer=nirfsg__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=nirfsg__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAttributeViInt64', + request_serializer=nirfsg__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=nirfsg__pb2.GetAttributeViInt64Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAttributeViReal64', + request_serializer=nirfsg__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=nirfsg__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAttributeViSession', + request_serializer=nirfsg__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetAttributeViSessionResponse.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetAttributeViString', + request_serializer=nirfsg__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetChannelName', + request_serializer=nirfsg__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetChannelNameResponse.FromString, + ) + self.GetDeembeddingSparameters = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetDeembeddingSparameters', + request_serializer=nirfsg__pb2.GetDeembeddingSparametersRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetDeembeddingSparametersResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetError', + request_serializer=nirfsg__pb2.GetErrorRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetErrorResponse.FromString, + ) + self.GetExternalCalibrationLastDateAndTime = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetExternalCalibrationLastDateAndTime', + request_serializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeResponse.FromString, + ) + self.GetMaxSettablePower = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetMaxSettablePower', + request_serializer=nirfsg__pb2.GetMaxSettablePowerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetMaxSettablePowerResponse.FromString, + ) + self.GetSelfCalibrationDateAndTime = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetSelfCalibrationDateAndTime', + request_serializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeResponse.FromString, + ) + self.GetSelfCalibrationTemperature = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetSelfCalibrationTemperature', + request_serializer=nirfsg__pb2.GetSelfCalibrationTemperatureRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetSelfCalibrationTemperatureResponse.FromString, + ) + self.GetTerminalName = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetTerminalName', + request_serializer=nirfsg__pb2.GetTerminalNameRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetTerminalNameResponse.FromString, + ) + self.GetUserData = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetUserData', + request_serializer=nirfsg__pb2.GetUserDataRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetUserDataResponse.FromString, + ) + self.GetWaveformBurstStartLocations = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetWaveformBurstStartLocations', + request_serializer=nirfsg__pb2.GetWaveformBurstStartLocationsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetWaveformBurstStartLocationsResponse.FromString, + ) + self.GetWaveformBurstStopLocations = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetWaveformBurstStopLocations', + request_serializer=nirfsg__pb2.GetWaveformBurstStopLocationsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetWaveformBurstStopLocationsResponse.FromString, + ) + self.GetWaveformMarkerEventLocations = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/GetWaveformMarkerEventLocations', + request_serializer=nirfsg__pb2.GetWaveformMarkerEventLocationsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.GetWaveformMarkerEventLocationsResponse.FromString, + ) + self.Init = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Init', + request_serializer=nirfsg__pb2.InitRequest.SerializeToString, + response_deserializer=nirfsg__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/InitWithOptions', + request_serializer=nirfsg__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.InitWithOptionsResponse.FromString, + ) + self.Initiate = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Initiate', + request_serializer=nirfsg__pb2.InitiateRequest.SerializeToString, + response_deserializer=nirfsg__pb2.InitiateResponse.FromString, + ) + self.InvalidateAllAttributes = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/InvalidateAllAttributes', + request_serializer=nirfsg__pb2.InvalidateAllAttributesRequest.SerializeToString, + response_deserializer=nirfsg__pb2.InvalidateAllAttributesResponse.FromString, + ) + self.LoadConfigurationsFromFile = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/LoadConfigurationsFromFile', + request_serializer=nirfsg__pb2.LoadConfigurationsFromFileRequest.SerializeToString, + response_deserializer=nirfsg__pb2.LoadConfigurationsFromFileResponse.FromString, + ) + self.PerformPowerSearch = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/PerformPowerSearch', + request_serializer=nirfsg__pb2.PerformPowerSearchRequest.SerializeToString, + response_deserializer=nirfsg__pb2.PerformPowerSearchResponse.FromString, + ) + self.PerformThermalCorrection = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/PerformThermalCorrection', + request_serializer=nirfsg__pb2.PerformThermalCorrectionRequest.SerializeToString, + response_deserializer=nirfsg__pb2.PerformThermalCorrectionResponse.FromString, + ) + self.QueryArbWaveformCapabilities = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/QueryArbWaveformCapabilities', + request_serializer=nirfsg__pb2.QueryArbWaveformCapabilitiesRequest.SerializeToString, + response_deserializer=nirfsg__pb2.QueryArbWaveformCapabilitiesResponse.FromString, + ) + self.ReadAndDownloadWaveformFromFileTDMS = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ReadAndDownloadWaveformFromFileTDMS', + request_serializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/Reset', + request_serializer=nirfsg__pb2.ResetRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ResetResponse.FromString, + ) + self.ResetAttribute = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ResetAttribute', + request_serializer=nirfsg__pb2.ResetAttributeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ResetAttributeResponse.FromString, + ) + self.ResetDevice = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ResetDevice', + request_serializer=nirfsg__pb2.ResetDeviceRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ResetDeviceResponse.FromString, + ) + self.ResetWithDefaults = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ResetWithDefaults', + request_serializer=nirfsg__pb2.ResetWithDefaultsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ResetWithDefaultsResponse.FromString, + ) + self.ResetWithOptions = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/ResetWithOptions', + request_serializer=nirfsg__pb2.ResetWithOptionsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.ResetWithOptionsResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/RevisionQuery', + request_serializer=nirfsg__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=nirfsg__pb2.RevisionQueryResponse.FromString, + ) + self.SaveConfigurationsToFile = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SaveConfigurationsToFile', + request_serializer=nirfsg__pb2.SaveConfigurationsToFileRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SaveConfigurationsToFileResponse.FromString, + ) + self.SelectArbWaveform = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SelectArbWaveform', + request_serializer=nirfsg__pb2.SelectArbWaveformRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SelectArbWaveformResponse.FromString, + ) + self.SelfCal = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SelfCal', + request_serializer=nirfsg__pb2.SelfCalRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SelfCalResponse.FromString, + ) + self.SelfCalibrateRange = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SelfCalibrateRange', + request_serializer=nirfsg__pb2.SelfCalibrateRangeRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SelfCalibrateRangeResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SelfTest', + request_serializer=nirfsg__pb2.SelfTestRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SelfTestResponse.FromString, + ) + self.SendSoftwareEdgeTrigger = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SendSoftwareEdgeTrigger', + request_serializer=nirfsg__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SendSoftwareEdgeTriggerResponse.FromString, + ) + self.SetArbWaveformNextWritePosition = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetArbWaveformNextWritePosition', + request_serializer=nirfsg__pb2.SetArbWaveformNextWritePositionRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetArbWaveformNextWritePositionResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetAttributeViBoolean', + request_serializer=nirfsg__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetAttributeViInt32', + request_serializer=nirfsg__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=nirfsg__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetAttributeViInt64', + request_serializer=nirfsg__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=nirfsg__pb2.SetAttributeViInt64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetAttributeViReal64', + request_serializer=nirfsg__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=nirfsg__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetAttributeViSession', + request_serializer=nirfsg__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetAttributeViString', + request_serializer=nirfsg__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetAttributeViStringResponse.FromString, + ) + self.SetUserData = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetUserData', + request_serializer=nirfsg__pb2.SetUserDataRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetUserDataResponse.FromString, + ) + self.SetWaveformBurstStartLocations = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetWaveformBurstStartLocations', + request_serializer=nirfsg__pb2.SetWaveformBurstStartLocationsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetWaveformBurstStartLocationsResponse.FromString, + ) + self.SetWaveformBurstStopLocations = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetWaveformBurstStopLocations', + request_serializer=nirfsg__pb2.SetWaveformBurstStopLocationsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetWaveformBurstStopLocationsResponse.FromString, + ) + self.SetWaveformMarkerEventLocations = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/SetWaveformMarkerEventLocations', + request_serializer=nirfsg__pb2.SetWaveformMarkerEventLocationsRequest.SerializeToString, + response_deserializer=nirfsg__pb2.SetWaveformMarkerEventLocationsResponse.FromString, + ) + self.WaitUntilSettled = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WaitUntilSettled', + request_serializer=nirfsg__pb2.WaitUntilSettledRequest.SerializeToString, + response_deserializer=nirfsg__pb2.WaitUntilSettledResponse.FromString, + ) + self.WriteArbWaveform = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WriteArbWaveform', + request_serializer=nirfsg__pb2.WriteArbWaveformRequest.SerializeToString, + response_deserializer=nirfsg__pb2.WriteArbWaveformResponse.FromString, + ) + self.WriteArbWaveformComplexF32 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF32', + request_serializer=nirfsg__pb2.WriteArbWaveformComplexF32Request.SerializeToString, + response_deserializer=nirfsg__pb2.WriteArbWaveformComplexF32Response.FromString, + ) + self.WriteArbWaveformComplexF64 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF64', + request_serializer=nirfsg__pb2.WriteArbWaveformComplexF64Request.SerializeToString, + response_deserializer=nirfsg__pb2.WriteArbWaveformComplexF64Response.FromString, + ) + self.WriteArbWaveformComplexI16 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexI16', + request_serializer=nirfsg__pb2.WriteArbWaveformComplexI16Request.SerializeToString, + response_deserializer=nirfsg__pb2.WriteArbWaveformComplexI16Response.FromString, + ) + self.WriteArbWaveformF32 = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WriteArbWaveformF32', + request_serializer=nirfsg__pb2.WriteArbWaveformF32Request.SerializeToString, + response_deserializer=nirfsg__pb2.WriteArbWaveformF32Response.FromString, + ) + self.WriteScript = channel.unary_unary( + '/nirfsg_grpc.NiRFSG/WriteScript', + request_serializer=nirfsg__pb2.WriteScriptRequest.SerializeToString, + response_deserializer=nirfsg__pb2.WriteScriptResponse.FromString, + ) + + +class NiRFSGServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AllocateArbWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckGenerationStatus(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckIfConfigurationListExists(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckIfScriptExists(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckIfWaveformExists(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearAllArbWaveforms(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearArbWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearSelfCalibrateRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDeembeddingTableInterpolationLinear(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDeembeddingTableInterpolationNearest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDeembeddingTableInterpolationSpline(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeConfigurationListStepTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalEdgeStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalLevelScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureDigitalModulationUserDefinedWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureGenerationMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureOutputEnabled(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureP2PEndpointFullnessStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePXIChassisClk10(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigurePowerLevelType(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureRF(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureRefClock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSignalBandwidth(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureSoftwareStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureUpconverterPLLSettlingTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateConfigurationList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateConfigurationListStep(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDeembeddingSparameterTableArray(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDeembeddingSparameterTableS2PFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteAllDeembeddingTables(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteConfigurationList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteDeembeddingTable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteScript(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableAllModulation(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableConfigurationListStepTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableScriptTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisableStartTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAllNamedWaveformNames(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAllScriptNames(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetScript(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDeembeddingSparameters(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetExternalCalibrationLastDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMaxSettablePower(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalibrationDateAndTime(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetSelfCalibrationTemperature(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTerminalName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetUserData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetWaveformBurstStartLocations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetWaveformBurstStopLocations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetWaveformMarkerEventLocations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Initiate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InvalidateAllAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def LoadConfigurationsFromFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformPowerSearch(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PerformThermalCorrection(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def QueryArbWaveformCapabilities(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadAndDownloadWaveformFromFileTDMS(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetAttribute(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetDevice(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SaveConfigurationsToFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelectArbWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfCalibrateRange(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareEdgeTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetArbWaveformNextWritePosition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetUserData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetWaveformBurstStartLocations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetWaveformBurstStopLocations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetWaveformMarkerEventLocations(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitUntilSettled(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteArbWaveform(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteArbWaveformComplexF32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteArbWaveformComplexF64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteArbWaveformComplexI16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteArbWaveformF32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WriteScript(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiRFSGServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=nirfsg__pb2.AbortRequest.FromString, + response_serializer=nirfsg__pb2.AbortResponse.SerializeToString, + ), + 'AllocateArbWaveform': grpc.unary_unary_rpc_method_handler( + servicer.AllocateArbWaveform, + request_deserializer=nirfsg__pb2.AllocateArbWaveformRequest.FromString, + response_serializer=nirfsg__pb2.AllocateArbWaveformResponse.SerializeToString, + ), + 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViBoolean, + request_deserializer=nirfsg__pb2.CheckAttributeViBooleanRequest.FromString, + response_serializer=nirfsg__pb2.CheckAttributeViBooleanResponse.SerializeToString, + ), + 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt32, + request_deserializer=nirfsg__pb2.CheckAttributeViInt32Request.FromString, + response_serializer=nirfsg__pb2.CheckAttributeViInt32Response.SerializeToString, + ), + 'CheckAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt64, + request_deserializer=nirfsg__pb2.CheckAttributeViInt64Request.FromString, + response_serializer=nirfsg__pb2.CheckAttributeViInt64Response.SerializeToString, + ), + 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViReal64, + request_deserializer=nirfsg__pb2.CheckAttributeViReal64Request.FromString, + response_serializer=nirfsg__pb2.CheckAttributeViReal64Response.SerializeToString, + ), + 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViSession, + request_deserializer=nirfsg__pb2.CheckAttributeViSessionRequest.FromString, + response_serializer=nirfsg__pb2.CheckAttributeViSessionResponse.SerializeToString, + ), + 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViString, + request_deserializer=nirfsg__pb2.CheckAttributeViStringRequest.FromString, + response_serializer=nirfsg__pb2.CheckAttributeViStringResponse.SerializeToString, + ), + 'CheckGenerationStatus': grpc.unary_unary_rpc_method_handler( + servicer.CheckGenerationStatus, + request_deserializer=nirfsg__pb2.CheckGenerationStatusRequest.FromString, + response_serializer=nirfsg__pb2.CheckGenerationStatusResponse.SerializeToString, + ), + 'CheckIfConfigurationListExists': grpc.unary_unary_rpc_method_handler( + servicer.CheckIfConfigurationListExists, + request_deserializer=nirfsg__pb2.CheckIfConfigurationListExistsRequest.FromString, + response_serializer=nirfsg__pb2.CheckIfConfigurationListExistsResponse.SerializeToString, + ), + 'CheckIfScriptExists': grpc.unary_unary_rpc_method_handler( + servicer.CheckIfScriptExists, + request_deserializer=nirfsg__pb2.CheckIfScriptExistsRequest.FromString, + response_serializer=nirfsg__pb2.CheckIfScriptExistsResponse.SerializeToString, + ), + 'CheckIfWaveformExists': grpc.unary_unary_rpc_method_handler( + servicer.CheckIfWaveformExists, + request_deserializer=nirfsg__pb2.CheckIfWaveformExistsRequest.FromString, + response_serializer=nirfsg__pb2.CheckIfWaveformExistsResponse.SerializeToString, + ), + 'ClearAllArbWaveforms': grpc.unary_unary_rpc_method_handler( + servicer.ClearAllArbWaveforms, + request_deserializer=nirfsg__pb2.ClearAllArbWaveformsRequest.FromString, + response_serializer=nirfsg__pb2.ClearAllArbWaveformsResponse.SerializeToString, + ), + 'ClearArbWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ClearArbWaveform, + request_deserializer=nirfsg__pb2.ClearArbWaveformRequest.FromString, + response_serializer=nirfsg__pb2.ClearArbWaveformResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=nirfsg__pb2.ClearErrorRequest.FromString, + response_serializer=nirfsg__pb2.ClearErrorResponse.SerializeToString, + ), + 'ClearSelfCalibrateRange': grpc.unary_unary_rpc_method_handler( + servicer.ClearSelfCalibrateRange, + request_deserializer=nirfsg__pb2.ClearSelfCalibrateRangeRequest.FromString, + response_serializer=nirfsg__pb2.ClearSelfCalibrateRangeResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=nirfsg__pb2.CloseRequest.FromString, + response_serializer=nirfsg__pb2.CloseResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=nirfsg__pb2.CommitRequest.FromString, + response_serializer=nirfsg__pb2.CommitResponse.SerializeToString, + ), + 'ConfigureDeembeddingTableInterpolationLinear': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDeembeddingTableInterpolationLinear, + request_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.SerializeToString, + ), + 'ConfigureDeembeddingTableInterpolationNearest': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDeembeddingTableInterpolationNearest, + request_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.SerializeToString, + ), + 'ConfigureDeembeddingTableInterpolationSpline': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDeembeddingTableInterpolationSpline, + request_deserializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeConfigurationListStepTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeConfigurationListStepTrigger, + request_deserializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeScriptTrigger, + request_deserializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalEdgeStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalEdgeStartTrigger, + request_deserializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDigitalEdgeStartTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalLevelScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalLevelScriptTrigger, + request_deserializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDigitalLevelScriptTriggerResponse.SerializeToString, + ), + 'ConfigureDigitalModulationUserDefinedWaveform': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureDigitalModulationUserDefinedWaveform, + request_deserializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformResponse.SerializeToString, + ), + 'ConfigureGenerationMode': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureGenerationMode, + request_deserializer=nirfsg__pb2.ConfigureGenerationModeRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureGenerationModeResponse.SerializeToString, + ), + 'ConfigureOutputEnabled': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureOutputEnabled, + request_deserializer=nirfsg__pb2.ConfigureOutputEnabledRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureOutputEnabledResponse.SerializeToString, + ), + 'ConfigureP2PEndpointFullnessStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureP2PEndpointFullnessStartTrigger, + request_deserializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.SerializeToString, + ), + 'ConfigurePXIChassisClk10': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePXIChassisClk10, + request_deserializer=nirfsg__pb2.ConfigurePXIChassisClk10Request.FromString, + response_serializer=nirfsg__pb2.ConfigurePXIChassisClk10Response.SerializeToString, + ), + 'ConfigurePowerLevelType': grpc.unary_unary_rpc_method_handler( + servicer.ConfigurePowerLevelType, + request_deserializer=nirfsg__pb2.ConfigurePowerLevelTypeRequest.FromString, + response_serializer=nirfsg__pb2.ConfigurePowerLevelTypeResponse.SerializeToString, + ), + 'ConfigureRF': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureRF, + request_deserializer=nirfsg__pb2.ConfigureRFRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureRFResponse.SerializeToString, + ), + 'ConfigureRefClock': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureRefClock, + request_deserializer=nirfsg__pb2.ConfigureRefClockRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureRefClockResponse.SerializeToString, + ), + 'ConfigureSignalBandwidth': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSignalBandwidth, + request_deserializer=nirfsg__pb2.ConfigureSignalBandwidthRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureSignalBandwidthResponse.SerializeToString, + ), + 'ConfigureSoftwareScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareScriptTrigger, + request_deserializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureSoftwareScriptTriggerResponse.SerializeToString, + ), + 'ConfigureSoftwareStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureSoftwareStartTrigger, + request_deserializer=nirfsg__pb2.ConfigureSoftwareStartTriggerRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureSoftwareStartTriggerResponse.SerializeToString, + ), + 'ConfigureUpconverterPLLSettlingTime': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureUpconverterPLLSettlingTime, + request_deserializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeRequest.FromString, + response_serializer=nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeResponse.SerializeToString, + ), + 'CreateConfigurationList': grpc.unary_unary_rpc_method_handler( + servicer.CreateConfigurationList, + request_deserializer=nirfsg__pb2.CreateConfigurationListRequest.FromString, + response_serializer=nirfsg__pb2.CreateConfigurationListResponse.SerializeToString, + ), + 'CreateConfigurationListStep': grpc.unary_unary_rpc_method_handler( + servicer.CreateConfigurationListStep, + request_deserializer=nirfsg__pb2.CreateConfigurationListStepRequest.FromString, + response_serializer=nirfsg__pb2.CreateConfigurationListStepResponse.SerializeToString, + ), + 'CreateDeembeddingSparameterTableArray': grpc.unary_unary_rpc_method_handler( + servicer.CreateDeembeddingSparameterTableArray, + request_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayRequest.FromString, + response_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableArrayResponse.SerializeToString, + ), + 'CreateDeembeddingSparameterTableS2PFile': grpc.unary_unary_rpc_method_handler( + servicer.CreateDeembeddingSparameterTableS2PFile, + request_deserializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileRequest.FromString, + response_serializer=nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileResponse.SerializeToString, + ), + 'DeleteAllDeembeddingTables': grpc.unary_unary_rpc_method_handler( + servicer.DeleteAllDeembeddingTables, + request_deserializer=nirfsg__pb2.DeleteAllDeembeddingTablesRequest.FromString, + response_serializer=nirfsg__pb2.DeleteAllDeembeddingTablesResponse.SerializeToString, + ), + 'DeleteConfigurationList': grpc.unary_unary_rpc_method_handler( + servicer.DeleteConfigurationList, + request_deserializer=nirfsg__pb2.DeleteConfigurationListRequest.FromString, + response_serializer=nirfsg__pb2.DeleteConfigurationListResponse.SerializeToString, + ), + 'DeleteDeembeddingTable': grpc.unary_unary_rpc_method_handler( + servicer.DeleteDeembeddingTable, + request_deserializer=nirfsg__pb2.DeleteDeembeddingTableRequest.FromString, + response_serializer=nirfsg__pb2.DeleteDeembeddingTableResponse.SerializeToString, + ), + 'DeleteScript': grpc.unary_unary_rpc_method_handler( + servicer.DeleteScript, + request_deserializer=nirfsg__pb2.DeleteScriptRequest.FromString, + response_serializer=nirfsg__pb2.DeleteScriptResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=nirfsg__pb2.DisableRequest.FromString, + response_serializer=nirfsg__pb2.DisableResponse.SerializeToString, + ), + 'DisableAllModulation': grpc.unary_unary_rpc_method_handler( + servicer.DisableAllModulation, + request_deserializer=nirfsg__pb2.DisableAllModulationRequest.FromString, + response_serializer=nirfsg__pb2.DisableAllModulationResponse.SerializeToString, + ), + 'DisableConfigurationListStepTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableConfigurationListStepTrigger, + request_deserializer=nirfsg__pb2.DisableConfigurationListStepTriggerRequest.FromString, + response_serializer=nirfsg__pb2.DisableConfigurationListStepTriggerResponse.SerializeToString, + ), + 'DisableScriptTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableScriptTrigger, + request_deserializer=nirfsg__pb2.DisableScriptTriggerRequest.FromString, + response_serializer=nirfsg__pb2.DisableScriptTriggerResponse.SerializeToString, + ), + 'DisableStartTrigger': grpc.unary_unary_rpc_method_handler( + servicer.DisableStartTrigger, + request_deserializer=nirfsg__pb2.DisableStartTriggerRequest.FromString, + response_serializer=nirfsg__pb2.DisableStartTriggerResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=nirfsg__pb2.ErrorMessageRequest.FromString, + response_serializer=nirfsg__pb2.ErrorMessageResponse.SerializeToString, + ), + 'ErrorQuery': grpc.unary_unary_rpc_method_handler( + servicer.ErrorQuery, + request_deserializer=nirfsg__pb2.ErrorQueryRequest.FromString, + response_serializer=nirfsg__pb2.ErrorQueryResponse.SerializeToString, + ), + 'ExportSignal': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignal, + request_deserializer=nirfsg__pb2.ExportSignalRequest.FromString, + response_serializer=nirfsg__pb2.ExportSignalResponse.SerializeToString, + ), + 'GetAllNamedWaveformNames': grpc.unary_unary_rpc_method_handler( + servicer.GetAllNamedWaveformNames, + request_deserializer=nirfsg__pb2.GetAllNamedWaveformNamesRequest.FromString, + response_serializer=nirfsg__pb2.GetAllNamedWaveformNamesResponse.SerializeToString, + ), + 'GetAllScriptNames': grpc.unary_unary_rpc_method_handler( + servicer.GetAllScriptNames, + request_deserializer=nirfsg__pb2.GetAllScriptNamesRequest.FromString, + response_serializer=nirfsg__pb2.GetAllScriptNamesResponse.SerializeToString, + ), + 'GetScript': grpc.unary_unary_rpc_method_handler( + servicer.GetScript, + request_deserializer=nirfsg__pb2.GetScriptRequest.FromString, + response_serializer=nirfsg__pb2.GetScriptResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=nirfsg__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=nirfsg__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=nirfsg__pb2.GetAttributeViInt32Request.FromString, + response_serializer=nirfsg__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=nirfsg__pb2.GetAttributeViInt64Request.FromString, + response_serializer=nirfsg__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=nirfsg__pb2.GetAttributeViReal64Request.FromString, + response_serializer=nirfsg__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=nirfsg__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=nirfsg__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=nirfsg__pb2.GetAttributeViStringRequest.FromString, + response_serializer=nirfsg__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=nirfsg__pb2.GetChannelNameRequest.FromString, + response_serializer=nirfsg__pb2.GetChannelNameResponse.SerializeToString, + ), + 'GetDeembeddingSparameters': grpc.unary_unary_rpc_method_handler( + servicer.GetDeembeddingSparameters, + request_deserializer=nirfsg__pb2.GetDeembeddingSparametersRequest.FromString, + response_serializer=nirfsg__pb2.GetDeembeddingSparametersResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=nirfsg__pb2.GetErrorRequest.FromString, + response_serializer=nirfsg__pb2.GetErrorResponse.SerializeToString, + ), + 'GetExternalCalibrationLastDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetExternalCalibrationLastDateAndTime, + request_deserializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeRequest.FromString, + response_serializer=nirfsg__pb2.GetExternalCalibrationLastDateAndTimeResponse.SerializeToString, + ), + 'GetMaxSettablePower': grpc.unary_unary_rpc_method_handler( + servicer.GetMaxSettablePower, + request_deserializer=nirfsg__pb2.GetMaxSettablePowerRequest.FromString, + response_serializer=nirfsg__pb2.GetMaxSettablePowerResponse.SerializeToString, + ), + 'GetSelfCalibrationDateAndTime': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalibrationDateAndTime, + request_deserializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeRequest.FromString, + response_serializer=nirfsg__pb2.GetSelfCalibrationDateAndTimeResponse.SerializeToString, + ), + 'GetSelfCalibrationTemperature': grpc.unary_unary_rpc_method_handler( + servicer.GetSelfCalibrationTemperature, + request_deserializer=nirfsg__pb2.GetSelfCalibrationTemperatureRequest.FromString, + response_serializer=nirfsg__pb2.GetSelfCalibrationTemperatureResponse.SerializeToString, + ), + 'GetTerminalName': grpc.unary_unary_rpc_method_handler( + servicer.GetTerminalName, + request_deserializer=nirfsg__pb2.GetTerminalNameRequest.FromString, + response_serializer=nirfsg__pb2.GetTerminalNameResponse.SerializeToString, + ), + 'GetUserData': grpc.unary_unary_rpc_method_handler( + servicer.GetUserData, + request_deserializer=nirfsg__pb2.GetUserDataRequest.FromString, + response_serializer=nirfsg__pb2.GetUserDataResponse.SerializeToString, + ), + 'GetWaveformBurstStartLocations': grpc.unary_unary_rpc_method_handler( + servicer.GetWaveformBurstStartLocations, + request_deserializer=nirfsg__pb2.GetWaveformBurstStartLocationsRequest.FromString, + response_serializer=nirfsg__pb2.GetWaveformBurstStartLocationsResponse.SerializeToString, + ), + 'GetWaveformBurstStopLocations': grpc.unary_unary_rpc_method_handler( + servicer.GetWaveformBurstStopLocations, + request_deserializer=nirfsg__pb2.GetWaveformBurstStopLocationsRequest.FromString, + response_serializer=nirfsg__pb2.GetWaveformBurstStopLocationsResponse.SerializeToString, + ), + 'GetWaveformMarkerEventLocations': grpc.unary_unary_rpc_method_handler( + servicer.GetWaveformMarkerEventLocations, + request_deserializer=nirfsg__pb2.GetWaveformMarkerEventLocationsRequest.FromString, + response_serializer=nirfsg__pb2.GetWaveformMarkerEventLocationsResponse.SerializeToString, + ), + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=nirfsg__pb2.InitRequest.FromString, + response_serializer=nirfsg__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=nirfsg__pb2.InitWithOptionsRequest.FromString, + response_serializer=nirfsg__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'Initiate': grpc.unary_unary_rpc_method_handler( + servicer.Initiate, + request_deserializer=nirfsg__pb2.InitiateRequest.FromString, + response_serializer=nirfsg__pb2.InitiateResponse.SerializeToString, + ), + 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( + servicer.InvalidateAllAttributes, + request_deserializer=nirfsg__pb2.InvalidateAllAttributesRequest.FromString, + response_serializer=nirfsg__pb2.InvalidateAllAttributesResponse.SerializeToString, + ), + 'LoadConfigurationsFromFile': grpc.unary_unary_rpc_method_handler( + servicer.LoadConfigurationsFromFile, + request_deserializer=nirfsg__pb2.LoadConfigurationsFromFileRequest.FromString, + response_serializer=nirfsg__pb2.LoadConfigurationsFromFileResponse.SerializeToString, + ), + 'PerformPowerSearch': grpc.unary_unary_rpc_method_handler( + servicer.PerformPowerSearch, + request_deserializer=nirfsg__pb2.PerformPowerSearchRequest.FromString, + response_serializer=nirfsg__pb2.PerformPowerSearchResponse.SerializeToString, + ), + 'PerformThermalCorrection': grpc.unary_unary_rpc_method_handler( + servicer.PerformThermalCorrection, + request_deserializer=nirfsg__pb2.PerformThermalCorrectionRequest.FromString, + response_serializer=nirfsg__pb2.PerformThermalCorrectionResponse.SerializeToString, + ), + 'QueryArbWaveformCapabilities': grpc.unary_unary_rpc_method_handler( + servicer.QueryArbWaveformCapabilities, + request_deserializer=nirfsg__pb2.QueryArbWaveformCapabilitiesRequest.FromString, + response_serializer=nirfsg__pb2.QueryArbWaveformCapabilitiesResponse.SerializeToString, + ), + 'ReadAndDownloadWaveformFromFileTDMS': grpc.unary_unary_rpc_method_handler( + servicer.ReadAndDownloadWaveformFromFileTDMS, + request_deserializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSRequest.FromString, + response_serializer=nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=nirfsg__pb2.ResetRequest.FromString, + response_serializer=nirfsg__pb2.ResetResponse.SerializeToString, + ), + 'ResetAttribute': grpc.unary_unary_rpc_method_handler( + servicer.ResetAttribute, + request_deserializer=nirfsg__pb2.ResetAttributeRequest.FromString, + response_serializer=nirfsg__pb2.ResetAttributeResponse.SerializeToString, + ), + 'ResetDevice': grpc.unary_unary_rpc_method_handler( + servicer.ResetDevice, + request_deserializer=nirfsg__pb2.ResetDeviceRequest.FromString, + response_serializer=nirfsg__pb2.ResetDeviceResponse.SerializeToString, + ), + 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithDefaults, + request_deserializer=nirfsg__pb2.ResetWithDefaultsRequest.FromString, + response_serializer=nirfsg__pb2.ResetWithDefaultsResponse.SerializeToString, + ), + 'ResetWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithOptions, + request_deserializer=nirfsg__pb2.ResetWithOptionsRequest.FromString, + response_serializer=nirfsg__pb2.ResetWithOptionsResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=nirfsg__pb2.RevisionQueryRequest.FromString, + response_serializer=nirfsg__pb2.RevisionQueryResponse.SerializeToString, + ), + 'SaveConfigurationsToFile': grpc.unary_unary_rpc_method_handler( + servicer.SaveConfigurationsToFile, + request_deserializer=nirfsg__pb2.SaveConfigurationsToFileRequest.FromString, + response_serializer=nirfsg__pb2.SaveConfigurationsToFileResponse.SerializeToString, + ), + 'SelectArbWaveform': grpc.unary_unary_rpc_method_handler( + servicer.SelectArbWaveform, + request_deserializer=nirfsg__pb2.SelectArbWaveformRequest.FromString, + response_serializer=nirfsg__pb2.SelectArbWaveformResponse.SerializeToString, + ), + 'SelfCal': grpc.unary_unary_rpc_method_handler( + servicer.SelfCal, + request_deserializer=nirfsg__pb2.SelfCalRequest.FromString, + response_serializer=nirfsg__pb2.SelfCalResponse.SerializeToString, + ), + 'SelfCalibrateRange': grpc.unary_unary_rpc_method_handler( + servicer.SelfCalibrateRange, + request_deserializer=nirfsg__pb2.SelfCalibrateRangeRequest.FromString, + response_serializer=nirfsg__pb2.SelfCalibrateRangeResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=nirfsg__pb2.SelfTestRequest.FromString, + response_serializer=nirfsg__pb2.SelfTestResponse.SerializeToString, + ), + 'SendSoftwareEdgeTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareEdgeTrigger, + request_deserializer=nirfsg__pb2.SendSoftwareEdgeTriggerRequest.FromString, + response_serializer=nirfsg__pb2.SendSoftwareEdgeTriggerResponse.SerializeToString, + ), + 'SetArbWaveformNextWritePosition': grpc.unary_unary_rpc_method_handler( + servicer.SetArbWaveformNextWritePosition, + request_deserializer=nirfsg__pb2.SetArbWaveformNextWritePositionRequest.FromString, + response_serializer=nirfsg__pb2.SetArbWaveformNextWritePositionResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=nirfsg__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=nirfsg__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=nirfsg__pb2.SetAttributeViInt32Request.FromString, + response_serializer=nirfsg__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=nirfsg__pb2.SetAttributeViInt64Request.FromString, + response_serializer=nirfsg__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=nirfsg__pb2.SetAttributeViReal64Request.FromString, + response_serializer=nirfsg__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=nirfsg__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=nirfsg__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=nirfsg__pb2.SetAttributeViStringRequest.FromString, + response_serializer=nirfsg__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'SetUserData': grpc.unary_unary_rpc_method_handler( + servicer.SetUserData, + request_deserializer=nirfsg__pb2.SetUserDataRequest.FromString, + response_serializer=nirfsg__pb2.SetUserDataResponse.SerializeToString, + ), + 'SetWaveformBurstStartLocations': grpc.unary_unary_rpc_method_handler( + servicer.SetWaveformBurstStartLocations, + request_deserializer=nirfsg__pb2.SetWaveformBurstStartLocationsRequest.FromString, + response_serializer=nirfsg__pb2.SetWaveformBurstStartLocationsResponse.SerializeToString, + ), + 'SetWaveformBurstStopLocations': grpc.unary_unary_rpc_method_handler( + servicer.SetWaveformBurstStopLocations, + request_deserializer=nirfsg__pb2.SetWaveformBurstStopLocationsRequest.FromString, + response_serializer=nirfsg__pb2.SetWaveformBurstStopLocationsResponse.SerializeToString, + ), + 'SetWaveformMarkerEventLocations': grpc.unary_unary_rpc_method_handler( + servicer.SetWaveformMarkerEventLocations, + request_deserializer=nirfsg__pb2.SetWaveformMarkerEventLocationsRequest.FromString, + response_serializer=nirfsg__pb2.SetWaveformMarkerEventLocationsResponse.SerializeToString, + ), + 'WaitUntilSettled': grpc.unary_unary_rpc_method_handler( + servicer.WaitUntilSettled, + request_deserializer=nirfsg__pb2.WaitUntilSettledRequest.FromString, + response_serializer=nirfsg__pb2.WaitUntilSettledResponse.SerializeToString, + ), + 'WriteArbWaveform': grpc.unary_unary_rpc_method_handler( + servicer.WriteArbWaveform, + request_deserializer=nirfsg__pb2.WriteArbWaveformRequest.FromString, + response_serializer=nirfsg__pb2.WriteArbWaveformResponse.SerializeToString, + ), + 'WriteArbWaveformComplexF32': grpc.unary_unary_rpc_method_handler( + servicer.WriteArbWaveformComplexF32, + request_deserializer=nirfsg__pb2.WriteArbWaveformComplexF32Request.FromString, + response_serializer=nirfsg__pb2.WriteArbWaveformComplexF32Response.SerializeToString, + ), + 'WriteArbWaveformComplexF64': grpc.unary_unary_rpc_method_handler( + servicer.WriteArbWaveformComplexF64, + request_deserializer=nirfsg__pb2.WriteArbWaveformComplexF64Request.FromString, + response_serializer=nirfsg__pb2.WriteArbWaveformComplexF64Response.SerializeToString, + ), + 'WriteArbWaveformComplexI16': grpc.unary_unary_rpc_method_handler( + servicer.WriteArbWaveformComplexI16, + request_deserializer=nirfsg__pb2.WriteArbWaveformComplexI16Request.FromString, + response_serializer=nirfsg__pb2.WriteArbWaveformComplexI16Response.SerializeToString, + ), + 'WriteArbWaveformF32': grpc.unary_unary_rpc_method_handler( + servicer.WriteArbWaveformF32, + request_deserializer=nirfsg__pb2.WriteArbWaveformF32Request.FromString, + response_serializer=nirfsg__pb2.WriteArbWaveformF32Response.SerializeToString, + ), + 'WriteScript': grpc.unary_unary_rpc_method_handler( + servicer.WriteScript, + request_deserializer=nirfsg__pb2.WriteScriptRequest.FromString, + response_serializer=nirfsg__pb2.WriteScriptResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'nirfsg_grpc.NiRFSG', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiRFSG(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Abort', + nirfsg__pb2.AbortRequest.SerializeToString, + nirfsg__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AllocateArbWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/AllocateArbWaveform', + nirfsg__pb2.AllocateArbWaveformRequest.SerializeToString, + nirfsg__pb2.AllocateArbWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViBoolean', + nirfsg__pb2.CheckAttributeViBooleanRequest.SerializeToString, + nirfsg__pb2.CheckAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViInt32', + nirfsg__pb2.CheckAttributeViInt32Request.SerializeToString, + nirfsg__pb2.CheckAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViInt64', + nirfsg__pb2.CheckAttributeViInt64Request.SerializeToString, + nirfsg__pb2.CheckAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViReal64', + nirfsg__pb2.CheckAttributeViReal64Request.SerializeToString, + nirfsg__pb2.CheckAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViSession', + nirfsg__pb2.CheckAttributeViSessionRequest.SerializeToString, + nirfsg__pb2.CheckAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckAttributeViString', + nirfsg__pb2.CheckAttributeViStringRequest.SerializeToString, + nirfsg__pb2.CheckAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckGenerationStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckGenerationStatus', + nirfsg__pb2.CheckGenerationStatusRequest.SerializeToString, + nirfsg__pb2.CheckGenerationStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckIfConfigurationListExists(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckIfConfigurationListExists', + nirfsg__pb2.CheckIfConfigurationListExistsRequest.SerializeToString, + nirfsg__pb2.CheckIfConfigurationListExistsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckIfScriptExists(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckIfScriptExists', + nirfsg__pb2.CheckIfScriptExistsRequest.SerializeToString, + nirfsg__pb2.CheckIfScriptExistsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckIfWaveformExists(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CheckIfWaveformExists', + nirfsg__pb2.CheckIfWaveformExistsRequest.SerializeToString, + nirfsg__pb2.CheckIfWaveformExistsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearAllArbWaveforms(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearAllArbWaveforms', + nirfsg__pb2.ClearAllArbWaveformsRequest.SerializeToString, + nirfsg__pb2.ClearAllArbWaveformsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearArbWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearArbWaveform', + nirfsg__pb2.ClearArbWaveformRequest.SerializeToString, + nirfsg__pb2.ClearArbWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearError', + nirfsg__pb2.ClearErrorRequest.SerializeToString, + nirfsg__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearSelfCalibrateRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ClearSelfCalibrateRange', + nirfsg__pb2.ClearSelfCalibrateRangeRequest.SerializeToString, + nirfsg__pb2.ClearSelfCalibrateRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Close', + nirfsg__pb2.CloseRequest.SerializeToString, + nirfsg__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Commit', + nirfsg__pb2.CommitRequest.SerializeToString, + nirfsg__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDeembeddingTableInterpolationLinear(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationLinear', + nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearRequest.SerializeToString, + nirfsg__pb2.ConfigureDeembeddingTableInterpolationLinearResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDeembeddingTableInterpolationNearest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationNearest', + nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestRequest.SerializeToString, + nirfsg__pb2.ConfigureDeembeddingTableInterpolationNearestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDeembeddingTableInterpolationSpline(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDeembeddingTableInterpolationSpline', + nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineRequest.SerializeToString, + nirfsg__pb2.ConfigureDeembeddingTableInterpolationSplineResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeConfigurationListStepTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeConfigurationListStepTrigger', + nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureDigitalEdgeConfigurationListStepTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeScriptTrigger', + nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureDigitalEdgeScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalEdgeStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalEdgeStartTrigger', + nirfsg__pb2.ConfigureDigitalEdgeStartTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureDigitalEdgeStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalLevelScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalLevelScriptTrigger', + nirfsg__pb2.ConfigureDigitalLevelScriptTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureDigitalLevelScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureDigitalModulationUserDefinedWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureDigitalModulationUserDefinedWaveform', + nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformRequest.SerializeToString, + nirfsg__pb2.ConfigureDigitalModulationUserDefinedWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureGenerationMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureGenerationMode', + nirfsg__pb2.ConfigureGenerationModeRequest.SerializeToString, + nirfsg__pb2.ConfigureGenerationModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureOutputEnabled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureOutputEnabled', + nirfsg__pb2.ConfigureOutputEnabledRequest.SerializeToString, + nirfsg__pb2.ConfigureOutputEnabledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureP2PEndpointFullnessStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureP2PEndpointFullnessStartTrigger', + nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureP2PEndpointFullnessStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePXIChassisClk10(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigurePXIChassisClk10', + nirfsg__pb2.ConfigurePXIChassisClk10Request.SerializeToString, + nirfsg__pb2.ConfigurePXIChassisClk10Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigurePowerLevelType(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigurePowerLevelType', + nirfsg__pb2.ConfigurePowerLevelTypeRequest.SerializeToString, + nirfsg__pb2.ConfigurePowerLevelTypeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureRF(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureRF', + nirfsg__pb2.ConfigureRFRequest.SerializeToString, + nirfsg__pb2.ConfigureRFResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureRefClock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureRefClock', + nirfsg__pb2.ConfigureRefClockRequest.SerializeToString, + nirfsg__pb2.ConfigureRefClockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSignalBandwidth(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureSignalBandwidth', + nirfsg__pb2.ConfigureSignalBandwidthRequest.SerializeToString, + nirfsg__pb2.ConfigureSignalBandwidthResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureSoftwareScriptTrigger', + nirfsg__pb2.ConfigureSoftwareScriptTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureSoftwareScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureSoftwareStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureSoftwareStartTrigger', + nirfsg__pb2.ConfigureSoftwareStartTriggerRequest.SerializeToString, + nirfsg__pb2.ConfigureSoftwareStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureUpconverterPLLSettlingTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ConfigureUpconverterPLLSettlingTime', + nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeRequest.SerializeToString, + nirfsg__pb2.ConfigureUpconverterPLLSettlingTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateConfigurationList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateConfigurationList', + nirfsg__pb2.CreateConfigurationListRequest.SerializeToString, + nirfsg__pb2.CreateConfigurationListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateConfigurationListStep(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateConfigurationListStep', + nirfsg__pb2.CreateConfigurationListStepRequest.SerializeToString, + nirfsg__pb2.CreateConfigurationListStepResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDeembeddingSparameterTableArray(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableArray', + nirfsg__pb2.CreateDeembeddingSparameterTableArrayRequest.SerializeToString, + nirfsg__pb2.CreateDeembeddingSparameterTableArrayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDeembeddingSparameterTableS2PFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/CreateDeembeddingSparameterTableS2PFile', + nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileRequest.SerializeToString, + nirfsg__pb2.CreateDeembeddingSparameterTableS2PFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteAllDeembeddingTables(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteAllDeembeddingTables', + nirfsg__pb2.DeleteAllDeembeddingTablesRequest.SerializeToString, + nirfsg__pb2.DeleteAllDeembeddingTablesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteConfigurationList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteConfigurationList', + nirfsg__pb2.DeleteConfigurationListRequest.SerializeToString, + nirfsg__pb2.DeleteConfigurationListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteDeembeddingTable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteDeembeddingTable', + nirfsg__pb2.DeleteDeembeddingTableRequest.SerializeToString, + nirfsg__pb2.DeleteDeembeddingTableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteScript(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DeleteScript', + nirfsg__pb2.DeleteScriptRequest.SerializeToString, + nirfsg__pb2.DeleteScriptResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Disable', + nirfsg__pb2.DisableRequest.SerializeToString, + nirfsg__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableAllModulation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableAllModulation', + nirfsg__pb2.DisableAllModulationRequest.SerializeToString, + nirfsg__pb2.DisableAllModulationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableConfigurationListStepTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableConfigurationListStepTrigger', + nirfsg__pb2.DisableConfigurationListStepTriggerRequest.SerializeToString, + nirfsg__pb2.DisableConfigurationListStepTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableScriptTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableScriptTrigger', + nirfsg__pb2.DisableScriptTriggerRequest.SerializeToString, + nirfsg__pb2.DisableScriptTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisableStartTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/DisableStartTrigger', + nirfsg__pb2.DisableStartTriggerRequest.SerializeToString, + nirfsg__pb2.DisableStartTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ErrorMessage', + nirfsg__pb2.ErrorMessageRequest.SerializeToString, + nirfsg__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ErrorQuery', + nirfsg__pb2.ErrorQueryRequest.SerializeToString, + nirfsg__pb2.ErrorQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ExportSignal', + nirfsg__pb2.ExportSignalRequest.SerializeToString, + nirfsg__pb2.ExportSignalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAllNamedWaveformNames(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAllNamedWaveformNames', + nirfsg__pb2.GetAllNamedWaveformNamesRequest.SerializeToString, + nirfsg__pb2.GetAllNamedWaveformNamesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAllScriptNames(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAllScriptNames', + nirfsg__pb2.GetAllScriptNamesRequest.SerializeToString, + nirfsg__pb2.GetAllScriptNamesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetScript(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetScript', + nirfsg__pb2.GetScriptRequest.SerializeToString, + nirfsg__pb2.GetScriptResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViBoolean', + nirfsg__pb2.GetAttributeViBooleanRequest.SerializeToString, + nirfsg__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViInt32', + nirfsg__pb2.GetAttributeViInt32Request.SerializeToString, + nirfsg__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViInt64', + nirfsg__pb2.GetAttributeViInt64Request.SerializeToString, + nirfsg__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViReal64', + nirfsg__pb2.GetAttributeViReal64Request.SerializeToString, + nirfsg__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViSession', + nirfsg__pb2.GetAttributeViSessionRequest.SerializeToString, + nirfsg__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetAttributeViString', + nirfsg__pb2.GetAttributeViStringRequest.SerializeToString, + nirfsg__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetChannelName', + nirfsg__pb2.GetChannelNameRequest.SerializeToString, + nirfsg__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDeembeddingSparameters(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetDeembeddingSparameters', + nirfsg__pb2.GetDeembeddingSparametersRequest.SerializeToString, + nirfsg__pb2.GetDeembeddingSparametersResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetError', + nirfsg__pb2.GetErrorRequest.SerializeToString, + nirfsg__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetExternalCalibrationLastDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetExternalCalibrationLastDateAndTime', + nirfsg__pb2.GetExternalCalibrationLastDateAndTimeRequest.SerializeToString, + nirfsg__pb2.GetExternalCalibrationLastDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMaxSettablePower(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetMaxSettablePower', + nirfsg__pb2.GetMaxSettablePowerRequest.SerializeToString, + nirfsg__pb2.GetMaxSettablePowerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalibrationDateAndTime(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetSelfCalibrationDateAndTime', + nirfsg__pb2.GetSelfCalibrationDateAndTimeRequest.SerializeToString, + nirfsg__pb2.GetSelfCalibrationDateAndTimeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetSelfCalibrationTemperature(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetSelfCalibrationTemperature', + nirfsg__pb2.GetSelfCalibrationTemperatureRequest.SerializeToString, + nirfsg__pb2.GetSelfCalibrationTemperatureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTerminalName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetTerminalName', + nirfsg__pb2.GetTerminalNameRequest.SerializeToString, + nirfsg__pb2.GetTerminalNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetUserData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetUserData', + nirfsg__pb2.GetUserDataRequest.SerializeToString, + nirfsg__pb2.GetUserDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetWaveformBurstStartLocations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetWaveformBurstStartLocations', + nirfsg__pb2.GetWaveformBurstStartLocationsRequest.SerializeToString, + nirfsg__pb2.GetWaveformBurstStartLocationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetWaveformBurstStopLocations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetWaveformBurstStopLocations', + nirfsg__pb2.GetWaveformBurstStopLocationsRequest.SerializeToString, + nirfsg__pb2.GetWaveformBurstStopLocationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetWaveformMarkerEventLocations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/GetWaveformMarkerEventLocations', + nirfsg__pb2.GetWaveformMarkerEventLocationsRequest.SerializeToString, + nirfsg__pb2.GetWaveformMarkerEventLocationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Init', + nirfsg__pb2.InitRequest.SerializeToString, + nirfsg__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/InitWithOptions', + nirfsg__pb2.InitWithOptionsRequest.SerializeToString, + nirfsg__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Initiate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Initiate', + nirfsg__pb2.InitiateRequest.SerializeToString, + nirfsg__pb2.InitiateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InvalidateAllAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/InvalidateAllAttributes', + nirfsg__pb2.InvalidateAllAttributesRequest.SerializeToString, + nirfsg__pb2.InvalidateAllAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def LoadConfigurationsFromFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/LoadConfigurationsFromFile', + nirfsg__pb2.LoadConfigurationsFromFileRequest.SerializeToString, + nirfsg__pb2.LoadConfigurationsFromFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformPowerSearch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/PerformPowerSearch', + nirfsg__pb2.PerformPowerSearchRequest.SerializeToString, + nirfsg__pb2.PerformPowerSearchResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PerformThermalCorrection(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/PerformThermalCorrection', + nirfsg__pb2.PerformThermalCorrectionRequest.SerializeToString, + nirfsg__pb2.PerformThermalCorrectionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def QueryArbWaveformCapabilities(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/QueryArbWaveformCapabilities', + nirfsg__pb2.QueryArbWaveformCapabilitiesRequest.SerializeToString, + nirfsg__pb2.QueryArbWaveformCapabilitiesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadAndDownloadWaveformFromFileTDMS(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ReadAndDownloadWaveformFromFileTDMS', + nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSRequest.SerializeToString, + nirfsg__pb2.ReadAndDownloadWaveformFromFileTDMSResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/Reset', + nirfsg__pb2.ResetRequest.SerializeToString, + nirfsg__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetAttribute(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetAttribute', + nirfsg__pb2.ResetAttributeRequest.SerializeToString, + nirfsg__pb2.ResetAttributeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetDevice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetDevice', + nirfsg__pb2.ResetDeviceRequest.SerializeToString, + nirfsg__pb2.ResetDeviceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetWithDefaults', + nirfsg__pb2.ResetWithDefaultsRequest.SerializeToString, + nirfsg__pb2.ResetWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/ResetWithOptions', + nirfsg__pb2.ResetWithOptionsRequest.SerializeToString, + nirfsg__pb2.ResetWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/RevisionQuery', + nirfsg__pb2.RevisionQueryRequest.SerializeToString, + nirfsg__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SaveConfigurationsToFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SaveConfigurationsToFile', + nirfsg__pb2.SaveConfigurationsToFileRequest.SerializeToString, + nirfsg__pb2.SaveConfigurationsToFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelectArbWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelectArbWaveform', + nirfsg__pb2.SelectArbWaveformRequest.SerializeToString, + nirfsg__pb2.SelectArbWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelfCal', + nirfsg__pb2.SelfCalRequest.SerializeToString, + nirfsg__pb2.SelfCalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfCalibrateRange(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelfCalibrateRange', + nirfsg__pb2.SelfCalibrateRangeRequest.SerializeToString, + nirfsg__pb2.SelfCalibrateRangeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SelfTest', + nirfsg__pb2.SelfTestRequest.SerializeToString, + nirfsg__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareEdgeTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SendSoftwareEdgeTrigger', + nirfsg__pb2.SendSoftwareEdgeTriggerRequest.SerializeToString, + nirfsg__pb2.SendSoftwareEdgeTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetArbWaveformNextWritePosition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetArbWaveformNextWritePosition', + nirfsg__pb2.SetArbWaveformNextWritePositionRequest.SerializeToString, + nirfsg__pb2.SetArbWaveformNextWritePositionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViBoolean', + nirfsg__pb2.SetAttributeViBooleanRequest.SerializeToString, + nirfsg__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViInt32', + nirfsg__pb2.SetAttributeViInt32Request.SerializeToString, + nirfsg__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViInt64', + nirfsg__pb2.SetAttributeViInt64Request.SerializeToString, + nirfsg__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViReal64', + nirfsg__pb2.SetAttributeViReal64Request.SerializeToString, + nirfsg__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViSession', + nirfsg__pb2.SetAttributeViSessionRequest.SerializeToString, + nirfsg__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetAttributeViString', + nirfsg__pb2.SetAttributeViStringRequest.SerializeToString, + nirfsg__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetUserData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetUserData', + nirfsg__pb2.SetUserDataRequest.SerializeToString, + nirfsg__pb2.SetUserDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetWaveformBurstStartLocations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetWaveformBurstStartLocations', + nirfsg__pb2.SetWaveformBurstStartLocationsRequest.SerializeToString, + nirfsg__pb2.SetWaveformBurstStartLocationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetWaveformBurstStopLocations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetWaveformBurstStopLocations', + nirfsg__pb2.SetWaveformBurstStopLocationsRequest.SerializeToString, + nirfsg__pb2.SetWaveformBurstStopLocationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetWaveformMarkerEventLocations(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/SetWaveformMarkerEventLocations', + nirfsg__pb2.SetWaveformMarkerEventLocationsRequest.SerializeToString, + nirfsg__pb2.SetWaveformMarkerEventLocationsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitUntilSettled(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WaitUntilSettled', + nirfsg__pb2.WaitUntilSettledRequest.SerializeToString, + nirfsg__pb2.WaitUntilSettledResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteArbWaveform(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveform', + nirfsg__pb2.WriteArbWaveformRequest.SerializeToString, + nirfsg__pb2.WriteArbWaveformResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteArbWaveformComplexF32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF32', + nirfsg__pb2.WriteArbWaveformComplexF32Request.SerializeToString, + nirfsg__pb2.WriteArbWaveformComplexF32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteArbWaveformComplexF64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexF64', + nirfsg__pb2.WriteArbWaveformComplexF64Request.SerializeToString, + nirfsg__pb2.WriteArbWaveformComplexF64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteArbWaveformComplexI16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformComplexI16', + nirfsg__pb2.WriteArbWaveformComplexI16Request.SerializeToString, + nirfsg__pb2.WriteArbWaveformComplexI16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteArbWaveformF32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteArbWaveformF32', + nirfsg__pb2.WriteArbWaveformF32Request.SerializeToString, + nirfsg__pb2.WriteArbWaveformF32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WriteScript(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/nirfsg_grpc.NiRFSG/WriteScript', + nirfsg__pb2.WriteScriptRequest.SerializeToString, + nirfsg__pb2.WriteScriptResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/nirfsg/nirfsg/session.py b/generated/nirfsg/nirfsg/session.py new file mode 100644 index 0000000000..210f8fbc18 --- /dev/null +++ b/generated/nirfsg/nirfsg/session.py @@ -0,0 +1,7416 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import nirfsg._attributes as _attributes +import nirfsg._converters as _converters +import nirfsg._library_interpreter as _library_interpreter +import nirfsg.enums as enums +import nirfsg.errors as errors + +import hightime +import nitclk + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Generation(object): + def __init__(self, session): + self._session = session + self._session._initiate() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-RFSG sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + absolute_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150225) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the sub-Sample Clock delay, in seconds, to apply to the I/Q waveform. Use this property to reduce the trigger jitter when synchronizing multiple devices with NI-TClk. This property can also help maintain synchronization repeatability by writing the absolute delay value of a previous measurement to the current session. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** Seconds + + **Valid Values:** Plus or minus half of one Sample Clock period + + **Supported Devices:** PXIe-5820/5840/5841/5842 + + Note: - The resolution of this property is a method of the I/Q sample period at 15E(-6) times that sample period. + + - If this property is set, NI-TClk cannot perform any sub-Sample Clock adjustment. + ''' + ae_temperature = _attributes.AttributeViReal64(1150182) + '''Type: float + + Returns the amplitude extender module temperature in degrees Celsius. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXIe-5654 with PXIe-5696 + ''' + alc_control = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutomaticLevelControl, 1150195) + '''Type: enums.AutomaticLevelControl + + Enables or disables the automatic leveling control (ALC). + + PXIe-5654 with PXIe-5696: If this property is enabled, the ALC is closed (closed-loop mode) and allows for better amplitude accuracy and wider amplitude dynamic range. If this property is disabled, the ALC is open (open-loop mode), which is ideal when using modulation. Disabling the alc_control property also allows for NI-RFSG to perform an automatic power search. + + PXIe-5654: AutomaticLevelControl.DISABLE is the only supported value for this device. The PXIe-5654 does not support the ALC when used as a stand-alone device. + + **Default Value:** + + PXIe-5654: AutomaticLevelControl.DISABLE + + PXIe-5654 with PXIe-5696: AutomaticLevelControl.ENABLE + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Power Level Adjustment `_ + + `ALC Closed Loop Versus Open Loop `_ + + `Power Search `_ + + **Defined Values**: + + +-------------------------------+---------+------------------+ + | Name | Value | Description | + +===============================+=========+==================+ + | AutomaticLevelControl.DISABLE | 0 (0x0) | Disables ALC. | + +-------------------------------+---------+------------------+ + | AutomaticLevelControl.ENABLE | 1 (0x1) | Enables the ALC. | + +-------------------------------+---------+------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + allow_out_of_specification_user_settings = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AllowOutOfSpecificationUserSettings, 1150014) + '''Type: enums.AllowOutOfSpecificationUserSettings + + Enables or disables warnings or errors when you set the frequency, power, and bandwidth values beyond the limits of the NI-RFSG device specifications. When you enable the allow_out_of_specification_user_settings property, the driver does not report out-of-specification warnings or errors. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** AllowOutOfSpecificationUserSettings.DISABLE + + **Supported Devices:** PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------------------+---------+----------------------------------------------+ + | Name | Value | Description | + +=============================================+=========+==============================================+ + | AllowOutOfSpecificationUserSettings.DISABLE | 0 (0x0) | Disables out-of-specification user settings. | + +---------------------------------------------+---------+----------------------------------------------+ + | AllowOutOfSpecificationUserSettings.ENABLE | 1 (0x1) | Enables out-of-specification user settings. | + +---------------------------------------------+---------+----------------------------------------------+ + + Note: Accuracy cannot be guaranteed outside of device specifications, and results may vary by module. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + amplitude_settling = _attributes.AttributeViReal64(1150137) + '''Type: float + + Configures the amplitude settling accuracy in decibels. NI-RFSG waits until the RF power settles within the specified accuracy level after calling the _initiate method or wait_until_settled method or prior to advancing to next step if using RF list mode. + + Any specified amplitude settling value that is above the acceptable minimum value is coerced down to the closest valid value. + + PXI/PXIe-5650/5651/5652: This property is for NI internal use only. + + **Units**: dB + + **Default Value:** + + PXIe-5654: 4 + + PXIe-5654 with PXIe-5696 (ALC disabled): 4 + + PXIe-5654 with PXIe-5696 (ALC enabled): 0.2 + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.5 + + **Valid Values:** + + PXIe-5654: 1.5, 2, 4 + + PXIe-5654 with PXIe-5696 (ALC disabled): 1.5, 2, 4 + + PXIe-5654 with PXIe-5696 (ALC enabled): 0.2, 0.5 + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: 0.01 to 1 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Amplitude Settling Times `_ + ''' + amp_path = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AmpPath, 1150185) + '''Type: enums.AmpPath + + Specifies the amplification path to use. The low harmonic path provides greater second and third harmonic spurious response, and the high power path provides higher output power. + + NI-RFSG automatically sets the value of this property based on power and frequency settings. Setting this property overrides the value chosen by NI-RFSG. + + **Default Value:** AmpPath.LOW_HARMONIC + + **Supported Devices:** PXIe-5654 with PXIe-5696 + + **Related Topics** + + `Low Harmonic Path Versus High Power Path `_ + + **Defined Values**: + + +----------------------+----------------+-----------------------------------------------------------+ + | Name | Value | Description | + +======================+================+===========================================================+ + | AmpPath.HIGH_POWER | 16000 (0x3e80) | Sets the amplification path to use the high power path. | + +----------------------+----------------+-----------------------------------------------------------+ + | AmpPath.LOW_HARMONIC | 16001 (0x3e81) | Sets the amplification path to use the low harmonic path. | + +----------------------+----------------+-----------------------------------------------------------+ + + Note: Resetting this property reverts back to the default unset behavior. + ''' + analog_modulation_am_sensitivity = _attributes.AttributeViReal64(1150167) + '''Type: float + + Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. + + When using the PXIe-5654 with PXIe-5696, NI-RFSG may coerce AM sensitivity. Coercing the AM sensitivity prevents overpower conditions at the PXIe-5696 input. Read this property to determine the coerced value. + + **Default Value:** 100 + + **Valid Values:** 0 to 100 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Amplitude Modulation `_ + ''' + analog_modulation_fm_band = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationFmBand, 1150191) + '''Type: enums.AnalogModulationFmBand + + Specifies the analog modulation frequency modulation (FM) band to use. Wideband FM allows for modulating signals higher than 100kHz. Narrowband FM allows for modulating lower frequency signals. + + **Default Value:** AnalogModulationFmBand.WIDEBAND + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Modulation `_ + + **Defined Values**: + + +-----------------------------------+----------------+--------------------------------------------+ + | Name | Value | Description | + +===================================+================+============================================+ + | AnalogModulationFmBand.NARROWBAND | 17000 (0x4268) | Specifies narrowband frequency modulation. | + +-----------------------------------+----------------+--------------------------------------------+ + | AnalogModulationFmBand.WIDEBAND | 17001 (0x4269) | Specifies wideband frequency modulation. | + +-----------------------------------+----------------+--------------------------------------------+ + ''' + analog_modulation_fm_narrowband_integrator = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationFmNarrowbandIntegrator, 1150165) + '''Type: enums.AnalogModulationFmNarrowbandIntegrator + + Specifies the narrowband frequency modulation (FM) range to apply by sending the signal through an integrator. + + This property is valid only when you set the analog_modulation_type property to AnalogModulationType.FM and the analog_modulation_fm_band property to AnalogModulationFmBand.NARROWBAND. + + **Default Value:** AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Modulation `_ + + **Defined Values**: + + +----------------------------------------------------------------------------+----------------+---------------------------------------------+ + | Name | Value | Description | + +============================================================================+================+=============================================+ + | AnalogModulationFmNarrowbandIntegrator.RANGE_100_HERTZ_TO_1_KILOHERTZ | 18000 (0x4650) | Specifies a range from 100Â Hz to 1Â kHz. | + +----------------------------------------------------------------------------+----------------+---------------------------------------------+ + | AnalogModulationFmNarrowbandIntegrator.RANGE_10_KILOHERTZ_TO_100_KILOHERTZ | 18002 (0x4652) | Specifies a range from 10Â kHz to 100Â kHz. | + +----------------------------------------------------------------------------+----------------+---------------------------------------------+ + | AnalogModulationFmNarrowbandIntegrator.RANGE_1_KILOHERTZ_TO_10_KILOHERTZ | 18001 (0x4651) | Specifies a range from 1Â kHz to 10Â kHz. | + +----------------------------------------------------------------------------+----------------+---------------------------------------------+ + ''' + analog_modulation_fm_sensitivity = _attributes.AttributeViReal64(1150166) + '''Type: float + + Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. + + **Default Value:** 100 + + **Valid Values:** 0 to 100 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Modulation `_ + ''' + analog_modulation_pm_deviation = _attributes.AttributeViReal64(1150062) + '''Type: float + + Specifies the `deviation `_ to use in phase modulation, in degrees. + + **Units**: degrees (°) + + **Default Value:** 90° + + **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5653 + + **Related Topics** + + `Modulation Schemes `_ + ''' + analog_modulation_pm_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationPmMode, 1150192) + '''Type: enums.AnalogModulationPmMode + + Specifies the phase modulation (PM) mode to use. + + **Default Value:** AnalogModulationPmMode.LOW_PHASE_NOISE + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Phase Modulation `_ + + **Defined Values**: + + +----------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +========================================+================+===============================================================================================+ + | AnalogModulationPmMode.HIGH_DEVIATION | 19000 (0x4a38) | Specifies high deviation. High deviation comes at the expense of a higher phase noise. | + +----------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ + | AnalogModulationPmMode.LOW_PHASE_NOISE | 19001 (0x4a39) | Specifies low phase noise. Low phase noise comes at the expense of a lower maximum deviation. | + +----------------------------------------+----------------+-----------------------------------------------------------------------------------------------+ + ''' + analog_modulation_pm_sensitivity = _attributes.AttributeViReal64(1150168) + '''Type: float + + Specifies an uncalibrated digital-to-analog converter (DAC) value that scales the input signal before the signal modulates the carrier. A value of 0 completely attenuates the signal, and a value of 100 passes the full-scale signal to the modulator. + + **Default Value:** 100 + + **Valid Values:** 0 to 100 + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Phase Modulation `_ + ''' + analog_modulation_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AnalogModulationType, 1150032) + '''Type: enums.AnalogModulationType + + Specifies the analog modulation format to use. + + **Default Value:** AnalogModulationType.NONE + + **Supported Devices:** PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Modulation `_ + + `PXI/PXIe-5650/5651/5652 Modulation Schemes `_ + + `PXIe-5654/5654 with PXIe-5696 Modulation Schemes `_ + + **Defined Values**: + + +---------------------------+--------------+--------------------------------------------------+ + | Name | Value | Description | + +===========================+==============+==================================================+ + | AnalogModulationType.AM | 2002 (0x7d2) | Specifies that the analog modulation type is AM. | + +---------------------------+--------------+--------------------------------------------------+ + | AnalogModulationType.FM | 2000 (0x7d0) | Specifies that the analog modulation type is FM. | + +---------------------------+--------------+--------------------------------------------------+ + | AnalogModulationType.NONE | 0 (0x0) | Disables analog modulation. | + +---------------------------+--------------+--------------------------------------------------+ + | AnalogModulationType.PM | 2001 (0x7d1) | Specifies that the analog modulation type is PM. | + +---------------------------+--------------+--------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + arb_carrier_frequency = _attributes.AttributeViReal64(1150015) + '''Type: float + + **Units**: hertz (Hz) + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a carrier frequency with a waveform. + Indicates the carrier frequency generated by the arbitrary waveform generator (AWG) module. The specified carrier frequency is related to the RF output as shown in the following equations: + + +-------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Device | Equations | + +===============================================================================+===============================================================================================================================================================================================================================================================================================================+ + | PXI-5610, PXI-5670/5671, PXIe-5672 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency* – 25 MHz | + +-------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 | RF Frequency (MHz) = *Upconverter Center Frequency* + *Arb Carrier Frequency*.Note that - the upconverter_center_frequency property and the arb_carrier_frequency property cannot be set at the same time. The only time the carrier frequency is nonzero on these devices is when in-band retuning is used. | + +-------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: - Use this property to associate a carrier frequency with a waveform. + + - This property is read-only on the PXI-5670/5671 and PXIe-5672. + ''' + arb_digital_gain = _attributes.AttributeViReal64(1150204) + '''Type: float + + Specifies the digital gain, in decibels. The digital gain is applied to the waveform data after filtering. Use this property to adjust the output power of the device while keeping the analog path fixed. This may cause clipping, overflows, or quantization noise if used improperly. + + To set this property, the NI-RFSG device must be in the Configuration or Generation state. + + **Default Value:** 0 dB + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + arb_max_number_waveforms = _attributes.AttributeViInt32(1250454) + '''Type: int + + Returns the maximum number of waveforms the device can hold in memory. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - query_arb_waveform_capabilities + ''' + arb_onboard_sample_clock_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ArbOnboardSampleClockMode, 1150029) + '''Type: enums.ArbOnboardSampleClockMode + + Specifies the Sample Clock mode on the device. To set this property, the device must be in the Configuration state. + + PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: ArbOnboardSampleClockMode.DIVIDE_DOWN is the only supported value for this device. + + **Default Values:** + + PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: ArbOnboardSampleClockMode.DIVIDE_DOWN + + PXIe-5673/5673E: ArbOnboardSampleClockMode.HIGH_RESOLUTION + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Clocking Modes `_ + + **Valid Values**: + + +-------------------------------------------+--------------------------------------------------------------+ + | Name | Description | + +===========================================+==============================================================+ + | ArbOnboardSampleClockMode.HIGH_RESOLUTION | Sample rates are generated by a high-resolution clock. | + +-------------------------------------------+--------------------------------------------------------------+ + | ArbOnboardSampleClockMode.DIVIDE_DOWN | Sample rates are generated by dividing the source frequency. | + +-------------------------------------------+--------------------------------------------------------------+ + + Note: Using the high resolution clock may result in increased phase noise. + ''' + arb_pre_filter_gain = _attributes.AttributeViReal64(1150025) + '''Type: float + + Specifies the AWG prefilter gain. The prefilter gain is applied to the waveform data before any other signal processing. Reduce this value to prevent overflow in the AWG interpolation filters. Other gains on the NI-RFSG device are automatically adjusted to compensate for nonunity AWG prefilter gain. The PXI-5671, PXIe-5672 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXIe-5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842 can be in either the Configuration or the Generation state to use this property. PXIe-5860 can only be in the Configuration state to use this property. + + On the PXI-5671, this property applies only when the iq_rate property is set to a value less than or equal to 8.33MS/s. On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, this property is always applicable. + + **Units**: dB + + **Default Value:** 0dB + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + arb_sample_clock_rate = _attributes.AttributeViReal64(1150031) + '''Type: float + + Returns the rate of the Sample Clock on the device. + + **Units**: hertz (Hz) + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + arb_sample_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ArbSampleClockSource, 1150030) + '''Type: enums.ArbSampleClockSource + + Specifies the Sample Clock source for the device. To set this property, the NI-RFSG device must be in the Configuration state. + + PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: OnboardClock is the only supported value for this device. + + **Default Value:** OnboardClock + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Timing Configurations `_ + + **Possible Values**: + + +----------------+---------------------------------------------------------------+ + | Possible Value | Description | + +================+===============================================================+ + | "ClkIn" | Uses the external clock as the Sample Clock source. | + +----------------+---------------------------------------------------------------+ + | "OnboardClock" | Uses the AWG module onboard clock as the Sample Clock source. | + +----------------+---------------------------------------------------------------+ + ''' + arb_selected_waveform = _attributes.AttributeViString(1250451) + '''Type: str + + Specifies the waveform in onboard memory to generate upon calling the Init method when the generation_mode property is set to GenerationMode.ARB_WAVEFORM. The arb_selected_waveform property is ignored when the generation_mode property is set to GenerationMode.SCRIPT or GenerationMode.CW. To set the arb_selected_waveform property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + **High-Level Methods**: + + - select_arb_waveform + ''' + arb_temperature = _attributes.AttributeViReal64(1150068) + '''Type: float + + Returns the AWG module temperature in degrees Celsius. + + PXIe-5820/5840/5841/5842: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 + ''' + arb_waveform_quantum = _attributes.AttributeViInt32(1250455) + '''Type: int + + Returns the waveform quantum for the device. The number of samples in a waveform must be an integer multiple of the waveform quantum. The other restrictions on the length of the waveform are the arb_waveform_size_min and arb_waveform_size_max arbitrary waveform sizes. + + PXI-5671, PXIe-5672: The value of this property depends on the I/Q rate. Set the iq_rate property before reading this property. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - query_arb_waveform_capabilities + ''' + arb_waveform_repeat_count = _attributes.AttributeViInt32(1150158) + '''Type: int + + Specifies the repeat count of a waveform when you set the arb_waveform_repeat_count_is_finite property to True. This property is valid only when you set the generation_mode property to GenerationMode.ARB_WAVEFORM. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** 1 + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + arb_waveform_repeat_count_is_finite = _attributes.AttributeViBoolean(1150157) + '''Type: bool + + Specifies the repetition mode of a waveform when you set the generation_mode property to GenerationMode.ARB_WAVEFORM. If you set this property to True, the number of repetitions is determined by the arb_waveform_repeat_count property. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------+-------------------------------------------------------------------+ + | Value | Description | + +=======+===================================================================+ + | True | Repeats the waveform a finite number of times. | + +-------+-------------------------------------------------------------------+ + | False | Repeats the waveform continuously until you abort the generation. | + +-------+-------------------------------------------------------------------+ + ''' + arb_waveform_size_max = _attributes.AttributeViInt32(1250457) + '''Type: int + + Returns the size of the largest waveform that is allowed. + + To read this property, the NI-RFSG device must be in the Configuration state. + + For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the iq_rate before reading this property. For the PXIe-5673/5673E, the maximum waveform size is reduced to account for the amount of device memory currently used. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - query_arb_waveform_capabilities + + Note: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. + ''' + arb_waveform_size_min = _attributes.AttributeViInt32(1250456) + '''Type: int + + Returns the smallest allowable waveform size. For the PXI-5671 and PXIe-5672, the value of this property depends on the I/Q rate. Set the iq_rate property before reading this property. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **High-Level Methods**: + + - query_arb_waveform_capabilities + ''' + arb_waveform_software_scaling_factor = _attributes.AttributeViReal64(1150052) + '''Type: float + + Specifies how much to scale the data before writing it with the WriteArbWaveform method. The resulting waveform must be smaller than 1.0 in complex magnitude. This property is supported only if you set the power_level_type property to PowerLevelType.PEAK. + + **Default Value:** 1.0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Spurious Performance `_ + ''' + attenuator_setting = _attributes.AttributeViReal64(1150173) + '''Type: float + + Specifies the level of attenuation in the attenuator path. Setting this property overrides the value chosen by NI-RFSG. Not all power levels are achievable if you set this property. + + **Units**: dB + + **Valid Values**: 0dB to 110dB in steps of 10 + + **Supported Devices:** PXIe-5654 with PXIe-5696 + + Note: Resetting this property reverts back to the default unset behavior. + ''' + automatic_thermal_correction = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutomaticThermalCorrection, 1150008) + '''Type: enums.AutomaticThermalCorrection + + Enables or disables automatic thermal correction. When this property is enabled, changes to settings cause NI-RFSG to check whether the device temperature has changed and adjusts the settings as needed. When this property is disabled, you must explicitly call the perform_thermal_correction method to adjust the device for temperature changes. + + **Default Value:** AutomaticThermalCorrection.ENABLE + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Temperature Monitoring `_ + + `Settling Times `_ + + **Defined Values**: + + +------------------------------------+---------+-------------------------------------------+ + | Name | Value | Description | + +====================================+=========+===========================================+ + | AutomaticThermalCorrection.DISABLE | 0 (0x0) | Automatic thermal correction is disabled. | + +------------------------------------+---------+-------------------------------------------+ + | AutomaticThermalCorrection.ENABLE | 1 (0x1) | Automatic thermal correction is enabled. | + +------------------------------------+---------+-------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + auto_power_search = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AutomaticPowerSearch, 1150196) + '''Type: enums.AutomaticPowerSearch + + Enables or disables automatic power search. When this property is enabled, a power search performs after the device is initiated, after output power is enabled, or when the frequency or power level changes while the device is generating. When this property is disabled, NI-RFSG does not perform a power search unless you call the perform_power_search method. + + This property is ignored when the alc_control property is enabled. + + PXIe-5654: AutomaticPowerSearch.DISABLE is the only supported value for this device. + + **Default Value:** + + PXIe-5654: AutomaticPowerSearch.DISABLE + + PXIe-5654 with PXIe-5696: AutomaticPowerSearch.ENABLE + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Power Search `_ + + **Defined Values**: + + +------------------------------+---------+----------------------------------+ + | Name | Value | Description | + +==============================+=========+==================================+ + | AutomaticPowerSearch.DISABLE | 0 (0x0) | Disables automatic power search. | + +------------------------------+---------+----------------------------------+ + | AutomaticPowerSearch.ENABLE | 1 (0x1) | Enables automatic power search. | + +------------------------------+---------+----------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + available_paths = _attributes.AttributeViStringCommaSeparated(1150312) + '''Type: list of str + + Returns a list of the configurable paths available for use based on your instrument configuration. + ''' + available_ports = _attributes.AttributeViStringCommaSeparated(1150249) + '''Type: list of str + + Returns a list of the ports available for use based on your instrument configuration. + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + configuration_settled_event_terminal_name = _attributes.AttributeViString(1150194) + '''Type: str + + Returns the name of the fully qualified signal name as a string. + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Default Values**: + + PXIe-5654/5654 with PXIe-5696: /*ModuleName*/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ConfigurationSettledEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ConfigurationSettledEvent, where *ModuleName* is the name of your device in MAX. + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + ''' + correction_temperature = _attributes.AttributeViReal64(1150104) + '''Type: float + + Specifies the temperature, in degrees Celsius, to use for adjusting the device settings to correct for temperature changes. If you set this property, NI-RFSG uses the value you specify and therefore no longer uses the actual device temperature as the correction temperature. If you do not set this property, NI-RFSG checks the current device temperature in the Committed state and automatically sets the value of this property. + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: This property is read only. + + **Units**: Degrees Celsius + + **Supported Devices**: PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: - Resetting this property reverts back to the default unset behavior. + + - Use this property only when your application requires the same settings to be used every time, regardless of the temperature variation. In these cases, it is best to ensure that the temperature does not vary too much. + ''' + deembedding_compensation_gain = _attributes.AttributeViReal64(1150289) + '''Type: float + + Returns the de-embedding gain applied to compensate for the mismatch on the specified port. If de-embedding is enabled, NI-RFSG uses the returned compensation gain to remove the effects of the external network between the instrument and the DUT. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Tip: + This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_compensation_gain` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.deembedding_compensation_gain` + ''' + deembedding_selected_table = _attributes.AttributeViString(1150253) + '''Type: str + + Selects the de-embedding table to apply to the measurements on the specified port. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the port to configure for de-embedding. + + If de-embedding is enabled, NI-RFSG uses the specified table to remove the effects of the external network between the instrument and the DUT. + + Use the create deembedding sparameter table array method to create tables. + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + Tip: + This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_selected_table` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.deembedding_selected_table` + ''' + deembedding_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DeembeddingType, 1150252) + '''Type: enums.DeembeddingType + + Specifies the type of de-embedding to apply to measurements on the specified port. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the port to configure for de-embedding. + + If you set this property to any value besides DeembeddingType.NONE, NI-RFSG adjusts the instrument settings and the returned data to remove the effects of the external network between the instrument and the DUT. + + **Default Value**: DeembeddingType.SCALAR + + **Valid Values for PXIe-5830/5832/5840/5841** : DeembeddingType.NONE or DeembeddingType.SCALAR + + **Valid Values for PXIe-5842/5860** : DeembeddingType.NONE or DeembeddingType.SCALAR or DeembeddingType.AMPLITUDE_FLATNESS or DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS + + **Valid Values for PXIe-5831** DeembeddingType.NONE, DeembeddingType.SCALAR, or DeembeddingType.VECTOR. DeembeddingType.VECTOR is only supported for TRX Ports in a Semiconductor Test System (STS). + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | Name | Value | Description | + +==============================================+================+===================================================================================+ + | DeembeddingType.NONE | 25000 (0x61a8) | De-embedding is not applied to the measurement. | + +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | DeembeddingType.SCALAR | 25001 (0x61a9) | De-embeds the measurement using only the gain term. | + +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | DeembeddingType.VECTOR | 25002 (0x61aa) | De-embeds the measurement using the gain term and the reflection term. | + +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | DeembeddingType.AMPLITUDE_FLATNESS | 25003 (0x61ab) | De-embeds the measurement using wideband amplitude flatness correction. | + +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + | DeembeddingType.AMPLITUDE_AND_PHASE_FLATNESS | 25004 (0x61ac) | De-embeds the measurement using wideband amplitude and phase flatness correction. | + +----------------------------------------------+----------------+-----------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific ports within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container ports to specify a subset. + + Example: :py:attr:`my_session.ports[ ... ].deembedding_type` + + To set/get on all ports, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.deembedding_type` + ''' + device_instantaneous_bandwidth = _attributes.AttributeViReal64(1150226) + '''Type: float + + Specifies the bandwidth of the device. The instantaneous bandwidth is the effective real-time bandwidth of the signal path for your configuration. + + The signal_bandwidth centered at the frequency must fit within the device instantaneous bandwidth, which is centered at the upconverter_center_frequency. + + **Units**: Hz + + **Default Value**: N/A + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + ''' + device_temperature = _attributes.AttributeViReal64(1150017) + '''Type: float + + Returns the device temperature. If the NI-RFSG session is controlling multiple devices, this property returns the temperature of the primary NI RF device. The NI-RFSG session is opened using the primary RF device name. + + Serial signals between the sensor and the system control unit could modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. + + PXIe-5644/5645/5646, PXIe-5820/5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + PXIe-5830/5831/5832: To use this property, you must first set the channelName parameter of the _set_attribute_vi_real64 method to using the appropriate string for your instrument configuration. Setting the _set_attribute_vi_real64 method is not required for the PXIe-3621/3622. Refer to the following table to determine which strings are valid for your configuration. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Temperature Monitoring `_ + + `Thermal Shutdown `_ + + +----------------------------+--------------------------+-------------------------+ + | Hardware Module | TRX Port Type | Active Channel String | + +============================+==========================+=========================+ + | PXIe-3621/3622 | — | if or "" (empty string) | + +----------------------------+--------------------------+-------------------------+ + | PXIe-5820 | — | fpga | + +----------------------------+--------------------------+-------------------------+ + | First connected mmRH-5582 | DIRECT TRX PORTS Only | rf0 | + +----------------------------+--------------------------+-------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch0 | + +----------------------------+--------------------------+-------------------------+ + | First connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf0switch1 | + +----------------------------+--------------------------+-------------------------+ + | Second connected mmRH-5582 | DIRECT TRX PORTS Only | rf1 | + +----------------------------+--------------------------+-------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch0 | + +----------------------------+--------------------------+-------------------------+ + | Second connected mmRH-5582 | SWITCHED TRX PORTS [0-7] | rf1switch1 | + +----------------------------+--------------------------+-------------------------+ + + Tip: + This property can be set/get on specific device_temperatures within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container device_temperatures to specify a subset. + + Example: :py:attr:`my_session.device_temperatures[ ... ].device_temperature` + + To set/get on all device_temperatures, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.device_temperature` + ''' + digital_edge_script_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalEdgeEdge, 1150021) + '''Type: enums.ScriptTriggerDigitalEdgeEdge + + Specifies the active edge for the Script Trigger. This property is used when the script_trigger_type property is set to digital edge. To set the digital_edge_script_trigger_edge property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** ScriptTriggerDigitalEdgeEdge.RISING + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Edge Trigger `_ + + **High-Level Methods**: + + - configure_digital_edge_script_trigger + + **Defined Values**: + + +--------------------------------------+---------+-------------------------------------------------------------------------------+ + | Name | Value | Description | + +======================================+=========+===============================================================================+ + | ScriptTriggerDigitalEdgeEdge.FALLING | 1 (0x1) | Asserts the trigger when the signal transitions from high level to low level. | + +--------------------------------------+---------+-------------------------------------------------------------------------------+ + | ScriptTriggerDigitalEdgeEdge.RISING | 0 (0x0) | Asserts the trigger when the signal transitions from low level to high level. | + +--------------------------------------+---------+-------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_edge` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_edge` + ''' + digital_edge_script_trigger_source = _attributes.AttributeViString(1150020) + '''Type: str + + Specifies the source terminal for the Script Trigger. This property is used when the script_trigger_type property is set to digital edge. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **High-Level Methods**: + + - configure_digital_edge_script_trigger + + **Possible Values**: + + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=========================================================================================================================================+ + | "PFI0" | The trigger is received on PFI 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The trigger is received on PFI 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI2" | The trigger is received on PFI 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI3" | The trigger is received on PFI 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_edge_script_trigger_source` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_edge_script_trigger_source` + ''' + digital_edge_start_trigger_edge = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerDigitalEdgeEdge, 1250459) + '''Type: enums.StartTriggerDigitalEdgeEdge + + Specifies the active edge for the Start Trigger. This property is used when the start_trigger_type property is set to digital edge. To set the digital_edge_start_trigger_edge property, the NI-RFSG device must be in the Configuration state. + + PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + **Default Value:** StartTriggerDigitalEdgeEdge.RISING + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Digital Edge Trigger `_ + + **High-Level Methods**: + + - configure_digital_edge_start_trigger + + **Defined Values**: + + +-------------------------------------+---------+------------------------------------------------------------------+ + | Name | Value | Description | + +=====================================+=========+==================================================================+ + | StartTriggerDigitalEdgeEdge.FALLING | 1 (0x1) | Occurs when the signal transitions from high level to low level. | + +-------------------------------------+---------+------------------------------------------------------------------+ + | StartTriggerDigitalEdgeEdge.RISING | 0 (0x0) | Occurs when the signal transitions from low level to high level. | + +-------------------------------------+---------+------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_edge_start_trigger_source = _attributes.AttributeViString(1150002) + '''Type: str + + Specifies the source terminal for the Start Trigger. This property is used when the start_trigger_type property is set to digital edge. The digital_edge_start_trigger_source property is not case-sensitive. To set the digital_edge_start_trigger_source property, the NI-RFSG device must be in the Configuration state. + + PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **High-Level Methods**: + + - configure_digital_edge_start_trigger + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+========================================================================================================================================+ + | "PFI0" | The trigger is received on PFI 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The trigger is received on PFI 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI2" | The trigger is received on PFI 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI3" | The trigger is received on PFI 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarB" | The trigger is received on the PXI DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "TrigIn" | The trigger is received on the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "Sync_Script" | The trigger is received on the Sync Script trigger line. This value is valid on only the PXIe-5644/5645/5646. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + ''' + digital_equalization_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DigitalEqualizationEnabled, 1150012) + '''Type: enums.DigitalEqualizationEnabled + + When this property is enabled, NI-RFSG equalizes the waveform data to correct for variations in the response of the NI-RFSG device. Enabling digital equalization improves the modulation error rates (MER) and error vector magnitude (EVM) for signals with large bandwidths (>500 kHz), but it increases tuning times. + + On the PXI-5670/5671, equalization is performed in the software, so tuning time is increased. On the PXIe-5672, equalization is performed in the hardware so that there is no compromise in performance. + + This property applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT. To set this property, the NI-RFSG device must be in the Configuration state. + + PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: DigitalEqualizationEnabled.ENABLE is the only supported value for this device. + + **Default Value:** + + PXI-5670/5671: DigitalEqualizationEnabled.DISABLE + + PXIe-5644/5645/5646, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: DigitalEqualizationEnabled.ENABLE + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Response and Software Equalization `_—Refer to this topic for more information about equalization performed in software. + + `Frequency Tuning Times `_ + + **Defined Values**: + + +------------------------------------+---------+-----------------------+ + | Name | Value | Description | + +====================================+=========+=======================+ + | DigitalEqualizationEnabled.DISABLE | 0 (0x0) | Filter is not applied | + +------------------------------------+---------+-----------------------+ + | DigitalEqualizationEnabled.ENABLE | 1 (0x1) | Filter is applied. | + +------------------------------------+---------+-----------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + digital_level_script_trigger_active_level = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalLevelActiveLevel, 1150055) + '''Type: enums.ScriptTriggerDigitalLevelActiveLevel + + Specifies the active level for the Script Trigger. This property is used when the script_trigger_type property is set to ScriptTriggerType.DIGITAL_LEVEL. + + **Default Value:** ScriptTriggerDigitalLevelActiveLevel.HIGH + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Level Trigger `_ + + **Defined Values**: + + +-------------------------------------------+---------------+--------------------------------------------------+ + | Name | Value | Description | + +===========================================+===============+==================================================+ + | ScriptTriggerDigitalLevelActiveLevel.HIGH | 9000 (0x2328) | Trigger when the digital trigger signal is high. | + +-------------------------------------------+---------------+--------------------------------------------------+ + | ScriptTriggerDigitalLevelActiveLevel.LOW | 9001 (0x2329) | Trigger when the digital trigger signal is low. | + +-------------------------------------------+---------------+--------------------------------------------------+ + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_active_level` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_level_script_trigger_active_level` + ''' + digital_level_script_trigger_source = _attributes.AttributeViString(1150054) + '''Type: str + + Specifies the source terminal for the Script Trigger. This property is used when the script_trigger_type property is set to ScriptTriggerType.DIGITAL_LEVEL. The digital_level_script_trigger_source property is not case-sensitive. + + To set the digital_level_script_trigger_source property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=========================================================================================================================================+ + | "PFI0" | The trigger is received on PFI 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The trigger is received on PFI 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI2" | The trigger is received on PFI 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI3" | The trigger is received on PFI 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Star" | The trigger is received on the PXI star trigger line. This value is not valid for the PXIe-5644/5645/5646. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig7" | The trigger is received on PXI trigger line 7. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarB" | The trigger is received on the PXIe DStar B trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].digital_level_script_trigger_source` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.digital_level_script_trigger_source` + ''' + direct_download = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.DirectDownload, 1150042) + '''Type: enums.DirectDownload + + Specifies whether the WriteArbWaveform method immediately writes waveforms to the device or copies the waveform to host memory for later download. NI-RFSG reads and validates this property when an arbitrary waveform is first allocated. + + For the PXI-5670, direct download is always disabled. For all other devices, direct download is always enabled. + + PXI-5671: To increase performance when using large waveforms, enable direct download. To maximize reconfigurability, disable direct download. + + Perform the following steps to enable direct download: + + 1. Set the I/Q rate to less than or equal to 8.33MS/s with the iq_rate property. + + 2. Set the power_level_type property to PowerLevelType.PEAK. + + 3. Disable the iq_swap_enabled property. + + 4. Disable the digital_equalization_enabled property. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +============================+===========+=========================================================================================================================================+ + | DirectDownload.DISABLE | 0 (0x0) | The RF In local oscillator signal is not present at the front panel LO OUT connector. | + +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | DirectDownload.ENABLE | 1 (0x1) | The RF In local oscillator signal is present at the front panel LO OUT connector. | + +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | DirectDownload.UNSPECIFIED | -2 (-0x2) | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | + +----------------------------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + done_event_terminal_name = _attributes.AttributeViString(1150113) + '''Type: str + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/DoneEvent, where *AWGName* is the name of your associated AWG module in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/DoneEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841: /*ModuleName*/ao/0/DoneEvent, where *ModuleName* is the name of your device in MAX. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/DoneEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + events_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150154) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the delay, in seconds, applied to the Started Event, Done Event, and all Marker Events with respect to the analog output of the RF signal generator. To set this property, the NI-RFSG device must be in the Configuration or Generation state. + + By default, markers and events are delayed to align with the waveform data generated from the device. This property adds an additional delay to markers and events. Use this property to adjust the time delay between events and the corresponding data. + + **Units:** Seconds + + **Valid Values:** + + PXIe-5644/5645: -1.217 μs to 67.050 μs + + PXIe-5646: -0.896 μs to 64.640 μs + + PXIe-5820/5830/5831/5832/5840/5841/5842: 0 μs to 3.276 μs + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Events `_ + + Note: If you decrease the event delay during generation, some markers may be dropped. + ''' + exported_configuration_settled_event_output_terminal = _attributes.AttributeViString(1150129) + '''Type: str + + Specifies the destination terminal for exporting the Configuration Settled event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+====================================================================================================================+ + | "" | The signal is not exported. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5840/5841/5842. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + | "TrigOut" | TRIG IN/OUT terminal. | + +----------------+--------------------------------------------------------------------------------------------------------------------+ + ''' + exported_done_event_output_terminal = _attributes.AttributeViString(1150063) + '''Type: str + + Specifies the destination terminal for exporting the Done event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Posible Value | Description | + +===============+=================================================================================================================================+ + | "" | The signal is not exported. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +---------------+---------------------------------------------------------------------------------------------------------------------------------+ + ''' + exported_marker_event_output_terminal = _attributes.AttributeViString(1150064) + '''Type: str + + Specifies the destination terminal for exporting the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Marker Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].exported_marker_event_output_terminal` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.exported_marker_event_output_terminal` + ''' + exported_pulse_modulation_event_active_level = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalLevelActiveLevel, 1150310) + '''Type: enums.ScriptTriggerDigitalLevelActiveLevel + + Specifies the active level of the exported Pulse Modulation Event. When `property pulse modulation enabled` is Enabled, `pulse modulation active level` is `active high`, `exported pulse modulation event output terminal` is `PulseOut`, and this property is `active high`, then the Pulse Modulation Event will transition from Low to High after the the Pulse In signal is set to logic high, and the RF Output has settled. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** ScriptTriggerDigitalLevelActiveLevel.HIGH + + **Supported Devices:** PXIe-5842 + + **Defined Values**: + + +-------------------------------------------+---------------+--------------------------------------------------+ + | Name | Value | Description | + +===========================================+===============+==================================================+ + | ScriptTriggerDigitalLevelActiveLevel.HIGH | 9000 (0x2328) | Trigger when the digital trigger signal is high. | + +-------------------------------------------+---------------+--------------------------------------------------+ + | ScriptTriggerDigitalLevelActiveLevel.LOW | 9001 (0x2329) | Trigger when the digital trigger signal is low. | + +-------------------------------------------+---------------+--------------------------------------------------+ + ''' + exported_pulse_modulation_event_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.PulseModulationOutputTerminal, 1150309) + '''Type: enums.PulseModulationOutputTerminal + + Specifies the destination terminal for exporting the Pulse Modulation Event. The Pulse Modulation Event tracks the RF Envelope when Pulse Modulation is Enabled. If this property is set to a value other than `do not export str`, calling NI-RFSG Commit will cause the output terminal to be pulled to the logic level that is the inverse of `exported pulse modulation event active level`. You can tri-state this terminal by setting this property to `do not export str` or by calling `niRFSG Reset`. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** PulseOut + + **Supported Devices:** PXIe-5842 + + **Possible Values**: + + +----------------+---------------------------------------------------------------------+ + | Possible Value | Description | + +================+=====================================================================+ + | "" | Pulse modulation video signal is not exported. | + +----------------+---------------------------------------------------------------------+ + | "PulseOut" | Export the pulse modulation video signal on the pulse out terminal. | + +----------------+---------------------------------------------------------------------+ + ''' + exported_ref_clock_output_terminal = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockExportOutputTerminal, 1150053) + '''Type: enums.ReferenceClockExportOutputTerminal + + Specifies the destination terminal for exporting the Reference Clock on the RF signal generators. To set this property, the NI-RFSG device must be in the Configuration state. + + **Possible Values**: + + Possible Value: Description + + "" :The Reference Clock signal is not exported. + + "RefOut" :Exports the Reference Clock signal to the REF OUT connector of the device. + + "RefOut2" :Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. + + "ClkOut" :Exports the Reference Clock signal to the CLK OUT connector of the device. + + **Default Value:** '""' + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Interconnecting Multiple NI 5673E Modules `_ + + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | Supported devices | + +================+============================================================================================+=======================================================================================================================================================================+ + | "ClkOut" | Exports the Reference Clock signal to the CLK OUT connector of the device. | Supported on PXIe-5673, 5673E | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "" | The Reference Clock signal is not exported. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5652, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5652 (See Note) | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefOut" | Exports the Reference Clock signal to the REF OUT connector of the device. | Supported on PXIe-5644/5645/5646, 5820/5830/5831/5832/5840/5841/5842/5860, 5650/5651/5653, 5653, 5654, 5673, 5673E, PXIe-5654 with PXIe-5696, PXI-5650/5651/5653, | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefOut2" | Exports the Reference Clock signal to the REF OUT2 connector of the device, if applicable. | Supported on PXIe-5650/5651/5652, 5654, 5673E, PXIe-5654 with PXIe-5696 | + +----------------+--------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: The RefOut2 output terminal value is valid for only the PXIe-5650/5651/5652, not the PXI-5650/5651/5652. + ''' + exported_ref_clock_rate = _attributes.AttributeViReal64(1150292) + '''Type: float + + Specifies the Reference Clock Rate, in Hz, of the signal sent to the Reference Clock Export Output Terminal. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** 10MHz + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------+-------------------------------------+ + | Value | Description | + +==============+=====================================+ + | 10000000.0 | Uses a 10MHz Reference Clock rate. | + +--------------+-------------------------------------+ + | 100000000.0 | Uses a 100MHz Reference Clock rate. | + +--------------+-------------------------------------+ + | 1000000000.0 | Uses a 1GHz Reference Clock rate. | + +--------------+-------------------------------------+ + ''' + exported_script_trigger_output_terminal = _attributes.AttributeViString(1150022) + '''Type: str + + Specifies the destination terminal for exporting the Script Trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ —Refer to this topic for information about trigger delay. + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+=================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+---------------------------------------------------------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].exported_script_trigger_output_terminal` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.exported_script_trigger_output_terminal` + ''' + exported_started_event_output_terminal = _attributes.AttributeViString(1150065) + '''Type: str + + Specifies the destination terminal for exporting the Started event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+========================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + ''' + exported_start_trigger_output_terminal = _attributes.AttributeViString(1150003) + '''Type: str + + Specifies the destination terminal for exporting the Start Trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + PXIe-5654/5654 with PXIe-5696: The Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `PFI Lines `_ + + `PXI Trigger Lines `_ + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+========================================================================================================================================+ + | "" | The signal is not exported. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI0" | The signal is exported to the PFI 0 connector. For the PXIe-5841 with PXIe-5655, the signal is exported to the PXIe-5841 PFI 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI1" | The signal is exported to the PFI 1 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI4" | The signal is exported to the PFI 4 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PFI5" | The signal is exported to the PFI 5 connector. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig0" | The trigger is received on PXI trigger line 0. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig1" | The trigger is received on PXI trigger line 1. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig2" | The trigger is received on PXI trigger line 2. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig3" | The trigger is received on PXI trigger line 3. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig4" | The trigger is received on PXI trigger line 4. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig5" | The trigger is received on PXI trigger line 5. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_Trig6" | The trigger is received on PXI trigger line 6. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "PXIe_DStarC" | The signal is exported to the PXIe DStar C trigger line. This value is valid on only the PXIe-5820/5830/5831/5832/5840/5841/5842/5860. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "TrigOut" | The signal is exported to the TRIG IN/OUT terminal. This value is valid on only the PXIe-5654/5654 with PXIe-5696. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI0" | The trigger is received on PFI0 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI1" | The trigger is received on PFI1 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI2" | The trigger is received on PFI2 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI3" | The trigger is received on PFI3 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI4" | The trigger is received on PFI4 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI5" | The trigger is received on PFI5 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI6" | The trigger is received on PFI6 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + | "DIO/PFI7" | The trigger is received on PFI7 from the front panel DIO terminal. | + +----------------+----------------------------------------------------------------------------------------------------------------------------------------+ + ''' + external_calibration_recommended_interval = _attributes.AttributeViInt32TimeDeltaMonths(1150076) + '''Type: hightime.timedelta + + Returns the recommended interval between each external calibration of the device. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + external_calibration_temperature = _attributes.AttributeViReal64(1150077) + '''Type: float + + Returns the temperature of the device at the time of the last external calibration. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E + ''' + external_gain = _attributes.AttributeViReal64(1150085) + '''Type: float + + Specifies the external amplification or attenuation, if any, between the RF signal generator and the device under test. + + Positive values for this property represent amplification, and negative values for this property represent attenuation. + + **Valid Values:** -INF dB to +INF dB + + **Default Value:** 0dB + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: - Setting this property adjusts the actual device output power to compensate for any amplification or attenuation between the RF signal generator and the device under test. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + ''' + fast_tuning_option = _attributes.AttributeViBoolean(1150188) + '''Type: bool + + Returns whether the NI RF signal generator has the fast tuning option available. + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696 + + **Related Topics** + + `Frequency Tuning Times for 5654 `_ + + **Defined Values**: + + +-------+------------------------------------------------------------+ + | Value | Description | + +=======+============================================================+ + | True | The RF signal generator has the fast 100 µs tuning option. | + +-------+------------------------------------------------------------+ + | False | The RF signal generator has the 1 ms tuning option. | + +-------+------------------------------------------------------------+ + ''' + fixed_group_delay_across_ports = _attributes.AttributeViStringCommaSeparated(1150271) + '''Type: list of str + + Specifies a list of ports for which to fix the group delay. + + + **Supported Devices:** PXIe-5831/5832 + ''' + fpga_bitfile_path = _attributes.AttributeViString(1150186) + '''Type: str + + Returns a string containing the path to the location of the current NI-RFSG instrument driver FPGA extensions bitfile, a .lvbitx file, that is programmed on the device. You can specify the bitfile location using the Driver Setup string in the **optionString** parameter of the __init__ method. + + NI-RFSG instrument driver FPGA extensions enable you to use pre-compiled FPGA bitfiles to customize the behavior of the vector signal transceiver FPGA while maintaining the functionality of the NI-RFSG instrument driver. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver FPGA Extensions `_ + ''' + fpga_target_name = _attributes.AttributeViString(1150251) + '''Type: str + + Returns a string that contains the name of the FPGA target being used. This name can be used with the RIO open session to open a reference to the FPGA. + + This property is channel dependent if multiple FPGA targets are supported. + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + fpga_temperature = _attributes.AttributeViReal64(1150211) + '''Type: float + + Returns the FPGA temperature in degrees Celsius. + + Serial signals between the sensor and the system control unit can potentially modulate the signal being generated, thus causing phase spurs. After the device thoroughly warms up, its temperature varies only slightly (less than 1 degree Celsius) and slowly, and it is not necessary to constantly poll this temperature sensor. + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: If you query this property during RF list mode, list steps may take longer to complete during list execution. + ''' + frequency = _attributes.AttributeViReal64(1250001) + '''Type: float + + Specifies the frequency of the generated RF signal. For arbitrary waveform generation, this property specifies the center frequency of the signal. + + The PXI-5670/5671, PXIe-5672, PXIe-5820, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. + + **Units**: hertz (Hz) + + **Defined Values**: + Refer to the specifications document for your device allowable frequency settings. + + **Default Value:** + + PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E: 100MHz + + PXIe-5653: 4GHz + + PXIe-5820: 0Hz + + PXIe-5830/5831/5832: 6.5 GHz + + PXIe-5840/5841/5860, PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options): 1GHz + + PXIe-5842 (4 GHz bandwidth option) using the Standard personality: 1GHz + + PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: 6.5GHz + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + **High-Level Methods**: + + - ConfigureRf + + Note: For the PXIe-5645, this property is ignored if you are using the I/Q ports. + ''' + frequency_settling = _attributes.AttributeViReal64(1150083) + '''Type: float + + Specifies the frequency settling time. Interpretation of this value depends on the frequency_settling_units property. + + **Valid Values:** + + The valid values for this property depend on the frequency_settling_units property. + + + + **Default Value**: 1.0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Settling Times `_ + + `Events `_ + ''' + frequency_settling_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FrequencySettlingUnits, 1150082) + '''Type: enums.FrequencySettlingUnits + + Specifies the interpretation of the value passed to the frequency_settling property. + + PXIe-5650/5651/5652/5653, PXIe-5673E: When the ACTIVE_CONFIGURATION_LIST property is set to a valid list name, the frequency_settling_units property supports only FrequencySettlingUnits.TIME_AFTER_IO as a valid value. + + PXIe-5654/5654 with PXIe-5696: The frequency_settling_units property supports only FrequencySettlingUnits.TIME_AFTER_IO and FrequencySettlingUnits.PPM as valid values. + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Default Value**: FrequencySettlingUnits.PPM + + **Related Topics** + + `Events `_ + + **Defined Values**: + + +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | Name | Description | + +========================================+=================================================================================================================+ + | FrequencySettlingUnits.TIME_AFTER_LOCK | Specifies the time to wait after the frequency PLL locks. | + +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | FrequencySettlingUnits.TIME_AFTER_IO | Specifies the time to wait after all writes occur to change the frequency. | + +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + | FrequencySettlingUnits.PPM | Specifies the minimum frequency accuracy when settling completes. Units are in parts per million (PPM or 1E-6). | + +----------------------------------------+-----------------------------------------------------------------------------------------------------------------+ + + Note: If you set this property to FrequencySettlingUnits.TIME_AFTER_IO, the definition of settled for the Configuration Settled event changes. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + ''' + generation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.GenerationMode, 1150018) + '''Type: enums.GenerationMode + + Specifies whether to generate a continuous wave (CW) signal, the arbitrary waveform specified by the arb_selected_waveform property, or the script specified by the selected_script property, upon calling the _initiate method. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** GenerationMode.CW + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696 (CW support only), PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + `Scripting Instructions `_—Refer to this topic for more information about scripting. + + **Defined Values**: + + +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +=============================+==============+========================================================================================================================+ + | GenerationMode.ARB_WAVEFORM | 1001 (0x3e9) | Configures the RF signal generator to generate the arbitrary waveform specified by the arb_selected_waveform property. | + +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ + | GenerationMode.CW | 1000 (0x3e8) | Configures the RF signal generator to generate a CW signal. | + +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ + | GenerationMode.SCRIPT | 1002 (0x3ea) | Configures the RF signal generator to generate arbitrary waveforms as directed by the selected_script property.. | + +-----------------------------+--------------+------------------------------------------------------------------------------------------------------------------------+ + ''' + group_capabilities = _attributes.AttributeViStringCommaSeparated(1050401) + '''Type: list of str + + Returns a list of class-extension groups that NI-RFSG implements. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + host_dma_buffer_size = _attributes.AttributeViInt64(1150239) + '''Type: int + + Specifies the size of the DMA buffer in computer memory, in bytes. To set this property, the NI-RFSG device must be in the Configuration state. + + A sufficiently large host DMA buffer improves performance by allowing large writes to be transferred more efficiently. + + **Units:** bytes + + **Default Value:** 8MB + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + Returns a string that contains the firmware revision information for the NI-RFSG device you are currently using. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + Returns a string that contains the name of the manufacturer of the NI-RFSG device you are currently using. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + Returns a string that contains the model number or name of the NI-RFSG device that you are currently using. For drivers that support more than one device, this property returns a comma-separated list of supported devices. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + interpolation_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150153) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the delay, in seconds, to apply to the I/Q waveform. To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** Seconds + + **Valid Values:** Plus or minus half of one I/Q sample period + + **Supported Devices:** PXIe-5644/5645/5646 + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Returns a string that contains the resource name NI-RFSG uses to identify the physical device. If you initialize NI-RFSG with a logical name, this property contains the resource name that corresponds to the entry in the IVI Configuration Utility. If you initialize NI-RFSG with the resource name, this property contains that value. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + iq_gain_imbalance = _attributes.AttributeViReal64(1150072) + '''Type: float + + Specifies the gain imbalance of the I/Q modulator (I versus Q). + + Gain imbalance is calculated with the following equation: + + **Units**: dB + + **Valid Values:**-6dB to 6dB + + **Default Value:** 0dB + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Impairment Calibration `_ + + `Spurious Performance `_ + ''' + iq_impairment_enabled = _attributes.AttributeViBoolean(1150069) + '''Type: bool + + Enables or disables I/Q impairment. The iq_i_offset, iq_q_offset, iq_gain_imbalance, and iq_skew properties are ignored when the iq_impairment_enabled property is disabled. + + **Default Value:** True + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------+-----------------------------+ + | Value | Description | + +=======+=============================+ + | True | I/Q impairment is enabled. | + +-------+-----------------------------+ + | False | I/Q impairment is disabled. | + +-------+-----------------------------+ + ''' + iq_i_offset = _attributes.AttributeViReal64(1150070) + '''Type: float + + When using a National Instruments AWG module or vector signal transceiver (VST), this property specifies the I-signal DC offset. Units are either percent (%) or volts (V), depending on the iq_offset_units property setting. + + PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), this property is read-only and indicates the I/Q modulator I-offset. Units are volts, as specified by the iq_offset_units property. + + **Valid Values:**-100 to 100% or -0.2V to 0.2V + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Impairment Calibration `_ + ''' + iq_offset_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OffsetUnits, 1150081) + '''Type: enums.OffsetUnits + + Specifies the units of the iq_i_offset property and iq_q_offset property. Offset units are either percent or volts. + + The AWG or VST offset is the specified percentage of the AWG or VST peak power level when the iq_offset_units property is set to OffsetUnits.PERCENT. Given perfect carrier leakage suppression, the following equation is satisfied + + + or equivalently + + If the iq_i_offset property is set to 100%, iq_q_offset property is set to 0%, and power_level property set to 0 dBm, the desired RF signal is at 0 dBm and the carrier leakage is also at 0 dBm. + + The AWG or VST peak power level changes when settings change in other properties such as the power_level, frequency, iq_skew, iq_gain_imbalance and arb_pre_filter_gain properties. When the iq_offset_units property is set to OffsetUnits.PERCENT, the actual AWG or VST offset changes as the AWG or VST peak power level changes to satisfy the preceding equations. These changes are useful if you are intentionally adding carrier leakage to test the tolerance of a receiver. When the iq_offset_units property is set to OffsetUnits.PERCENT, the carrier leakage, in dBc, remains at a consistent level. + + If you are trying to eliminate residual carrier leakage due to calibration inaccuracies or drift, set the iq_offset_units property to OffsetUnits.VOLTS. Offset correction voltage is applied to the I/Q modulator or VST, regardless of changes to the AWG or VST peak power level. + + **Default Value**: OffsetUnits.PERCENT + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +---------------------+----------------------------------------------------------------------+ + | Name | Description | + +=====================+======================================================================+ + | OffsetUnits.PERCENT | Specifies the iq_i_offset and iq_q_offset property units as percent. | + +---------------------+----------------------------------------------------------------------+ + | OffsetUnits.VOLTS | Specifies the iq_i_offset and iq_q_offset property units as volts. | + +---------------------+----------------------------------------------------------------------+ + + Note: For any devices except PXIe-5820, if the iq_offset_units property is set to OffsetUnits.VOLTS, a 0.1 I offset results in a 0.1 V offset in the output. For PXIe-5820 devices, 0.1 I offset results in a 10% offset in the output. + ''' + iq_out_port_carrier_frequency = _attributes.AttributeViReal64(1150145) + '''Type: float + + Specifies the frequency of the I/Q OUT port signal. The onboard signal processing (OSP) applies the specified frequency shift to the I/Q data before the data is sent to the digital-to-analog converter (DAC). To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** hertz (Hz) + + **Valid Values:** + + PXIe-5645: -60MHz to 60MHz + + PXIe-5820: -500MHz to 500MHz + + **Supported Devices:** PXIe-5645, PXIe-5820 + + Note: - For the PXIe-5820, NI recommends using the frequency property. + + - For the PXIe-5645, this property is ignored if you are using the RF ports. + ''' + iq_out_port_common_mode_offset = _attributes.AttributeViReal64(1150148) + '''Type: float + + Specifies the common-mode offset applied to the signals generated at each differential output terminal. This property applies only when you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.DIFFERENTIAL. Common-mode offset shifts both positive and negative terminals in the same direction. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Units:** Volts + + **Valid Values:** + + PXIe-5645: -0.8V to 0.8V if you set the iq_out_port_load_impedance property to 50 Ω. The valid values are -1.2V to 1.2V if you set the iq_out_port_load_impedance property to 100 Ω. + + PXIe-5820: -0.25V to 1.5V + + **Supported Devices:** PXIe-5645, PXIe-5820 + + Note: - For the PXIe-5645, this property is ignored if you are using the RF ports. + + - The valid range is dependent on the load impedance. + + Tip: + This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_common_mode_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_common_mode_offset` + ''' + iq_out_port_level = _attributes.AttributeViReal64(1150147) + '''Type: float + + Specifies the amplitude of the generated signal in volts, peak-to-peak (V). For example, if you set this property to 1.0, the output signal ranges from -0.5 volts to 0.5 volts. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + To set this property, the NI-RFSG device must be in the Configuration state. + + Refer to the specifications document for your device for allowable output levels. + + **Units:** Volts, peak-to-peak (V :sub:`pk-pk` ) + + **Valid Values:** + + PXIe-5645: 1V :sub:`pk-pk` maximum if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.DIFFERENTIAL, and 0.5V :sub:`pk-pk` + + maximum if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.SINGLE_ENDED. + + PXIe-5820: 3.4V :sub:`pk-pk` maximum for signal bandwidth less than 160MHz, and 2V :sub:`pk-pk` + + maximum for signal bandwidth greater than 160MHz. + + **Default Value:** 0.5volts + + **Supported Devices:** PXIe-5645, PXIe-5820 + + Note: - For the PXIe-5645, this property is ignored if you are using the RF ports. + + - The valid values are only applicable when you set the iq_out_port_load_impedance property to 50 Ω and when you set the iq_out_port_offset property to 0. + + Tip: + This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_level` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_level` + ''' + iq_out_port_load_impedance = _attributes.AttributeViReal64(1150163) + '''Type: float + + Specifies the load impedance connected to the I/Q OUT port. To set this property, the NI-RFSG device must be in the Configuration state. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + **Units:** Ohms + + **Valid Values:** Any value greater than 0. Values greater than or equal to 1 megaohms (MΩ) are interpreted as high impedance. + + **Default Value:** 50 Ω if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.SINGLE_ENDED, and 100 Ω if you set the iq_out_port_terminal_configuration property to IQOutPortTerminalConfiguration.DIFFERENTIAL. + + **Supported Devices:** PXIe-5645, PXIe-5820 + + Note: For the PXIe-5645, this property is ignored if you are using the RF ports. + + Tip: + This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_load_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_load_impedance` + ''' + iq_out_port_offset = _attributes.AttributeViReal64(1150149) + '''Type: float + + Specifies the value, in volts, that the signal generator adds to the arbitrary waveform data. To set this property, the NI-RFSG device must be in the Configuration state. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + PXIe-5645: The waveform may be scaled in DSP prior to adding offset and the device state may be changed in order to accommodate the requested offset. + + PXIe-5820: The waveform is not automatically scaled in DSP. To prevent DSP overflows, use the arb_pre_filter_gain property to scale the waveform to provide additional headroom for offsets. + + **Units:** Volts + + **Supported Devices:** PXIe-5645, PXIe-5820 + + Note: For the PXIe-5645, this property is ignored if you are using the RF ports. + + Tip: + This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_offset` + ''' + iq_out_port_temperature = _attributes.AttributeViReal64(1150161) + '''Type: float + + Returns the temperature, in degrees Celsius, of the I/Q Out circuitry on the device. + + **Units:** Degrees Celsius + + **Supported Devices:** PXIe-5645, PXIe-5820 + + Note: If you query this property during RF list mode, list steps may take longer to complete during list execution. + ''' + iq_out_port_terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.IQOutPortTerminalConfiguration, 1150146) + '''Type: enums.IQOutPortTerminalConfiguration + + Specifies whether to use the I/Q OUT port for differential configuration or single-ended configuration. If you set this property to IQOutPortTerminalConfiguration.SINGLE_ENDED, you must terminate the negative I and Q output connectors with a 50 Ohm termination. + + If you set this property to IQOutPortTerminalConfiguration.SINGLE_ENDED, the positive I and Q connectors generate the resulting waveform. If you set this property to IQOutPortTerminalConfiguration.DIFFERENTIAL, both the positive and negative I and Q connectors generate the resulting waveform. + + To use this property, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. For the PXIe-5645, you can configure the I and Q channels by using I or Q as the channel string, or set the channel string to "" (empty string) to configure both channels. For the PXIe-5820, the only valid value for the channel string is "" (empty string). + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** IQOutPortTerminalConfiguration.DIFFERENTIAL + + PXIe-5820: The only valid value for this property is IQOutPortTerminalConfiguration.DIFFERENTIAL. + + **Supported Devices:** PXIe-5645, PXIe-5820 + + **Related Topics** + + `Differential and Single-Ended Operation (I/O Interface) `_ + + **Defined Values**: + + +---------------------------------------------+----------------+--------------------------------------------------+ + | Name | Value | Description | + +=============================================+================+==================================================+ + | IQOutPortTerminalConfiguration.DIFFERENTIAL | 15000 (0x3a98) | Sets the terminal configuration to differential. | + +---------------------------------------------+----------------+--------------------------------------------------+ + | IQOutPortTerminalConfiguration.SINGLE_ENDED | 15001 (0x3a99) | Sets the terminal configuration to single-ended. | + +---------------------------------------------+----------------+--------------------------------------------------+ + + Note: For the PXIe-5645, this property is ignored if you are using the RF ports. + + Tip: + This property can be set/get on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].iq_out_port_terminal_configuration` + + To set/get on all channels, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.iq_out_port_terminal_configuration` + ''' + iq_q_offset = _attributes.AttributeViReal64(1150071) + '''Type: float + + When using a National Instruments AWG module or VST device, this property specifies the Q-signal DC offset. Units are either percent (%) or volts (V), depending on the iq_offset_units property setting. + PXIe-5673/5673E: Actual AWG signal offset is equal to the I/Q modulator offset correction plus the value specified by this property. When using an external AWG (non–National Instruments AWG), the iq_q_offset property is read-only and indicates the I/Q modulator Q-offset. Units are volts, as indicated by the iq_offset_units property. + **Valid Values**: -100% to 100% or -0.2V to 0.2V + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + **Related Topics** + `Impairment Calibration `_ + ''' + iq_rate = _attributes.AttributeViReal64(1250452) + '''Type: float + + This property specifies the I/Q rate of the arbitrary waveform. The I/Q rate is coerced to a value the hardware can achieve. Read this value back after setting it to see the actual I/Q rate. NI-RFSG internally uses an FIR filter with flat response up to (0.4 × IQ rate). Given a desired signal with the maximum frequency content *f*, sample the signal at an I/Q rate greater than or equal to ( *f*/0.4). + + This property applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT. + + To set this property, the NI-RFSG device must be in the Configuration state. + + Setting this property to 50 MS/s on the PXI-5670/5671 and PXIe-5672 has the following implications: + - NI-RFSG is forced to place the carrier frequency at 18 MHz ± 1 MHz to avoid aliasing. This means that NI-RFSG cannot select a carrier frequency that could optimize waveform size if phase continuity is enabled. + - Output signal bandwidth must be <5 MHz to avoid aliasing. + - Close-in phase noise is higher. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. + + `Digital Upconverter `_ + + **Valid Values**: + + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Device | I/Q Rates | + +==========================================================================+====================================================================================================================================================================================================================================================+ + | PXIe-5644/5645 | Up to 120 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5646 | Up to 250 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXI-5670 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | | 100 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXI-5671 | 50 MS/s ((100 MS/s)/n, where n is divisible by 2 between 12 to 512, and divisible by 4 between 512 to 1,024 (n = 12, 14, 16, ..., 512, 516, 520, ..., 1,024). Setting the I/Q rate to one of these value enables the DUC.) | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | | 100 MS/s | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5672 | Up to 100 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5673/5673E | Up to 200 MS/s. Note that - If an PXIe-5450 with module revisions A or B is used as part of your PXIe-5673/5673E, the NI-FGEN NIFGEN_ATTR_COMPENSATE_FOR_FILTER_GROUP_DELAY property is disabled if the requested I/Q rate is less than 1.5 MS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5820/5830/5831/5832/5840/5841/5860 | Up to 1.25 GS/s. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXI-5842 (500 MHz, 1 GHz, and 2 GHz bandwidth options) | Up to 2.5 GS/s | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5842 (4 GHz bandwidth option) using the Standard personality | Up to 2.5 GS/s | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality | 5 GS/s only. | + +--------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: Use this property to associate an I/Q rate with a waveform. + ''' + iq_skew = _attributes.AttributeViReal64(1150073) + '''Type: float + + Specifies the adjustment of the phase angle between the I and Q vectors. If the skew is zero, the phase angle is 90 degrees. + + This property is ignored when the iq_impairment_enabled property is disabled. + + **Units**: degrees (°) + + **Valid Values:**-30° to 30° + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Impairment Calibration `_ + ''' + iq_swap_enabled = _attributes.AttributeViBoolean(1250404) + '''Type: bool + + Enables or disables the inverse phase rotation of the I/Q signal by swapping the I and Q inputs. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Defined Values**: + + +-------+---------------------------------------------------------------------+ + | Value | Description | + +=======+=====================================================================+ + | True | NI-RFSG device applies noninverse phase rotation of the I/Q signal. | + +-------+---------------------------------------------------------------------+ + | False | NI-RFSG device applies inverse phase rotation of the I/Q signal. | + +-------+---------------------------------------------------------------------+ + ''' + load_configurations_from_file_load_options = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoadOptions, 1150290) + '''Type: enums.LoadOptions + + Specifies the configurations to skip while loading from a file. + + **Default Value:** NIRFSG_VAL_SKIP_NONE + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------------------------------------------------------------+-------------------------------------------------------------------+ + | Value | Description | + +====================================================================+===================================================================+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_NONE | NI-RFSG loads all the configurations to the session. | + +--------------------------------------------------------------------+-------------------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_LOAD_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips loading the waveform configurations to the session. | + +--------------------------------------------------------------------+-------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + load_configurations_from_file_reset_options = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoadConfigurationResetOptions, 1150291) + '''Type: enums.LoadConfigurationResetOptions + + Specifies the configurations to skip to reset while loading configurations from a file. + + **Default Value:** NIRFSG_VAL_SKIP_NONE + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------------------------------------------------+------------------------------------------------------+ + | Value | Description | + +==============================================================================+======================================================+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_NONE | NI-RFSG resets all configurations. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_WAVEFORMS | NI-RFSG skips resetting the waveform configurations. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_SCRIPTS | NI-RFSG skips resetting the scripts. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + | RFSG_VAL_LOAD_CONFIGURATIONS_FROM_FILE_RESET_OPTIONS_SKIP_DEEMBEDDING_TABLES | NI-RFSG skips resetting the de-embedding tables. | + +------------------------------------------------------------------------------+------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + Returns a string that contains the logical name you specified when opening the current IVI session. You can pass a logical name to the Init method or the __init__ method. The IVI Configuration Utility must contain an entry for the logical name. The logical name entry refers to a driver session section in the IVI Configuration file. The driver session section specifies a physical device and initial user options. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + loop_bandwidth = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoopBandwidth, 1150027) + '''Type: enums.LoopBandwidth + + Configures the loop bandwidth of the tuning PLLs. This property is ignored on the PXI-5610, PXI-5670/5671, and PXIe-5672 for signal bandwidths greater than or equal to 10MHz. This property is ignored on the PXI/PXIe-5650/5651/5652 for RF frequencies less than 50MHz. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value:** + + PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842: LoopBandwidth.MEDIUM + + PXI/PXIe-5650/5651/5652, PXIe-5673/5673E: LoopBandwidth.NARROW + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Phase-Locked Loop Bandwidth `_ + + `Modulation Implementation `_ + + `Sinusoidal Tone Versus Modulation Operation `_ + + **Defined Values**: + + +----------------------+---------+--------------------------------------------------------+ + | Name | Value | Description | + +======================+=========+========================================================+ + | LoopBandwidth.MEDIUM | 1 (0x1) | Uses the medium loop bandwidth setting for the PLL. | + +----------------------+---------+--------------------------------------------------------+ + | LoopBandwidth.NARROW | 0 (0x0) | Uses the narrowest loop bandwidth setting for the PLL. | + +----------------------+---------+--------------------------------------------------------+ + | LoopBandwidth.WIDE | 2 (0x2) | Uses the widest loop bandwidth setting for the PLL. | + +----------------------+---------+--------------------------------------------------------+ + + Note: Setting this property to LoopBandwidth.WIDE on the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, or the PXIe-5673/5673E allows the frequency to settle significantly faster at the expense of increased phase noise. Setting this property to LoopBandwidth.MEDIUM is not a valid option on the PXI/PXIe-5650/5651/5652 or PXIe-5673/5673E. LoopBandwidth.MEDIUM is the only supported value for the PXIe-5840/5841/5842. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].loop_bandwidth` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.loop_bandwidth` + ''' + lo_frequency = _attributes.AttributeViReal64(1150199) + '''Type: float + + Specifies the frequency of the LO source. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Supported Devices**: PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Configuration `_ + + `PXIe-5831/5832 Frequency and Bandwidth Configuration `_ + + Note: This property is read/write if you are using an external LO. Otherwise, this property is read-only. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_frequency` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_frequency` + ''' + lo_frequency_step_size = _attributes.AttributeViReal64(1150151) + '''Type: float + + Specifies the step size for tuning the local oscillator (LO) phase-locked loop (PLL). + + When the lo_pll_fractional_mode_enabled property is enabled, the specified step size affects the fractional spur performance of the device. When the lo_pll_fractional_mode_enabled property is disabled, the specified step size affects the phase noise performance of the device. + + The valid values for this property depend on the lo_pll_fractional_mode_enabled property. + + **PXIe-5644/5645/5646**—If you disable the lo_pll_fractional_mode_enabled property, the specified value is coerced to the nearest valid value. + + **PXIe-5840/5841**—If you disable the lo_pll_fractional_mode_enabled property, the specified value is coerced to the nearest valid value that is less than or equal to the desired step size. + + **Units:** hertz (Hz) + + **Default Values:** + + PXIe-5644/5645/5646: 200kHz + + PXIe-5830: 2MHz + + PXIe-5831/5832 (RF port): 8MHz + + PXIe-5831/5832 (IF port): 2MHz, 4MHz + + PXIe-5840/5841: + + - Fractional mode: 500 kHz + - Integer mode: 10 MHz for frequencies less than or equal to 4 GHz. 20 MHz for frequencies greater than 4 GHz. + + PXIe-5841 with PXIe-5655: 500kHz + + PXIe-5842: 1Hz + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + | lo_pll_fractional_mode_enabled Property Setting | NIRFSG_VAL_ENABLE | NIRFSG_VAL_DISABLE | + +==================================================================================================+===================+==================================================+ + | lo_frequency_step_size Property Valid Values on PXIe-5644/5645 | 50 kHz to 24 MHz | 4 MHz, 5 MHz, 6 MHz, 12 MHz, or 24 MHz | + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + | lo_frequency_step_size Property Valid Values on PXIe-5646 | 50 kHz to 25 MHz | 2 MHz, 5 MHz, 10 MHz, or 25 MHz | + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + | lo_frequency_step_size Property Valid Values on PXIe-5840/5841 | 50 kHz to 100 MHz | 1 MHz, 5 MHz, 10 MHz, 25 MHz, 50 MHz, or 100 MHz | + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + | lo_frequency_step_size Property Valid Values on PXIe-5830/5831/ 5832 LO1 | 8 Hz to 400 MHz | — | + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + | lo_frequency_step_size Property Valid Values on PXIe-5830/5831/ 5832 LO2 | 4 Hz to 400 MHz | — | + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + | lo_frequency_step_size Property Valid Values on PXIe-5841 with PXIe-5655/NI PXIe-5842 (See note) | 1 nHz to 100 MHz | 1 nHz to 50 MHz | + +--------------------------------------------------------------------------------------------------+-------------------+--------------------------------------------------+ + + Note: Values up to 100 MHz are coerced to 50 MHz. + ''' + lo_in_power = _attributes.AttributeViReal64(1150067) + '''Type: float + + Specifies the power level of the signal at the LO IN front panel connector. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Units**: dBm + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `LO OUT `_ + + Note: - This property is read/write if you are using an external LO. Otherwise, this property is read-only. + + - For the PXIe-5644/5645/5646, this property is always read-only. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_in_power` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_in_power` + ''' + lo_out_enabled = _attributes.AttributeViBoolean(1150013) + '''Type: bool + + Specifies whether the local oscillator signal is present at the LO OUT front panel connector. The local oscillator signal remains at the LO OUT front panel connector until this property is set to False, even if the output_enabled property is set to False, the abort method is called, or the NI-RFSG session is closed. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_boolean method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value:** NIRFSG_VAL_DISABLE + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `LO OUT `_ + + **Defined Values**: + + +--------------------+---------------------------------------------------------------------------------+ + | Name | Description | + +====================+=================================================================================+ + | NIRFSG_VAL_ENABLE | The local oscillator signal is present at the LO OUT front panel connector. | + +--------------------+---------------------------------------------------------------------------------+ + | NIRFSG_VAL_DISABLE | The local oscillator signal is not present at the LO OUT front panel connector. | + +--------------------+---------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_out_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_out_enabled` + ''' + lo_out_export_configure_from_rfsa = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoOutExportConfigureFromRfsaEnable, 1150242) + '''Type: enums.LoOutExportConfigureFromRfsaEnable + + Specifies whether to allow NI-RFSA to control the NI-RFSG LO out export. + + Set this property to LoOutExportConfigureFromRfsaEnable.ENABLE to allow NI-RFSA to control the LO out export. Use the RF OUT LO EXPORT ENABLED property to control the LO out export from NI-RFSA. + + **Default Value:** LoOutExportConfigureFromRfsaEnable.DISABLE + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +--------------------------------------------+---------+----------------------------------------------------------------------+ + | Name | Value | Description | + +============================================+=========+======================================================================+ + | LoOutExportConfigureFromRfsaEnable.ENABLE | 0 (0x0) | Do not allow NI-RFSA to control the NI-RFSG local oscillator export. | + +--------------------------------------------+---------+----------------------------------------------------------------------+ + | LoOutExportConfigureFromRfsaEnable.DISABLE | 1 (0x1) | Allow NI-RFSA to control the NI-RFSG local oscillator export. | + +--------------------------------------------+---------+----------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + lo_out_power = _attributes.AttributeViReal64(1150066) + '''Type: float + + Specifies the power level of the signal at the LO OUT front panel connector. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_real64 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Units**: dBm + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `LO OUT `_ + + Note: For the PXIe-5644/5645/5646 and PXIe-5673/5673E, this property is always read-only. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_out_power` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_out_power` + ''' + lo_pll_fractional_mode_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.LoPllFractionalModeEnabled, 1150152) + '''Type: enums.LoPllFractionalModeEnabled + + Specifies whether to use fractional mode for the local oscillator (LO) phase-locked loop (PLL). This property enables or disables fractional frequency tuning in the LO. Fractional mode provides a finer frequency step resolution and allows smaller values for the lo_frequency_step_size property. However, fractional mode may introduce non-harmonic spurs. + + This property applies only if you set the lo_source property to Onboard. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_int32 method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" . + + **Default Value:** LoPllFractionalModeEnabled.ENABLE + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + Refer to the local oscillators topic appropriate to your device for more information about using fractional mode. + + **Defined Values**: + + +------------------------------------+---------+------------------------------------------+ + | Name | Value | Description | + +====================================+=========+==========================================+ + | LoPllFractionalModeEnabled.ENABLE | 0 (0x0) | Disables fractional mode for the LO PLL. | + +------------------------------------+---------+------------------------------------------+ + | LoPllFractionalModeEnabled.DISABLE | 1 (0x1) | Enables fractional mode for the LO PLL. | + +------------------------------------+---------+------------------------------------------+ + + Note: For the PXIe-5841 with PXIe-5655, this property is ignored if the PXIe-5655 is used as the LO source. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_pll_fractional_mode_enabled` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_pll_fractional_mode_enabled` + ''' + lo_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.LoSource, 1150150) + '''Type: enums.LoSource + + Specifies whether to use the internal or external local oscillator (LO) source. If the lo_source property is set to "" (empty string), NI-RFSG uses the internal LO source. To set this property, the NI-RFSG device must be in the Configuration state. + + To use this property for the PXIe-5830/5831/5832, you must use the channelName parameter of the _set_attribute_vi_string method to specify the name of the channel you are configuring. You can configure the LO1 and LO2 channels by using lo1 or lo2 as the channel string, or set the channel string to lo1,lo2 to configure both channels. For all other devices, the the only valid value for the channel string is "" (empty string). + + **Default Value:** Onboard + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 LO Sharing Using NI-RFSA and NI-RFSG `_ + + `PXIe-5831/5832 LO Sharing Using NI-RFSA and NI-RFSG `_ + + **Possible Values**: + + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +==========================+==================================================================================================================================================================================================================================================================+ + | "Automatic_SG_SA_Shared" | NI-RFSG internally makes the configuration to share the LO between NI-RFSA and NI-RFSG. This value is valid only on the PXIe-5820/5830/5831/5832/5840/5841/5842. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "LO_In" | Uses an external LO as the LO source. Connect a signal to the LO IN connector on the device and use the upconverter_center_frequency property to specify the LO frequency. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "Onboard" | Uses an internal LO as the LO source. If you specify an internal LO source, the LO is generated inside the device itself. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "SG_SA_Shared" | Uses the same internal LO during NI-RFSA and NI-RFSG sessions. NI-RFSG selects an internal synthesizer and the synthesizer signal is switched to both the RF In and RF Out mixers. This value is valid only on the PXIe-5830/5831/5832/5841 with PXIe-5655/5842. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "Secondary" | Uses the PXIe-5831/5840 internal LO as the LO source. This value is valid only on the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. | + +--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: For the PXIe-5841 with PXIe-5655, RF list mode is not supported when this property is set to SG_SA_Shared. + + Tip: + This property can be set/get on specific los within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container los to specify a subset. + + Example: :py:attr:`my_session.los[ ... ].lo_source` + + To set/get on all los, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.lo_source` + ''' + lo_temperature = _attributes.AttributeViReal64(1150075) + '''Type: float + + Returns the LO module temperature in degrees Celsius. + + PXIe-5840/5841: If you query this property during RF list mode, list steps may take longer to complete during list execution. + + **Units**: degrees Celsius (°C) + + **Supported Devices:** PXIe-5673/5673E, PXIe-5840/5841/5842 + ''' + lo_vco_frequency_step_size = _attributes.AttributeViReal64(1150257) + '''Type: float + + Specifies the step size for tuning the internal voltage-controlled oscillator (VCO) used to generate the LO signal. + + **Valid Values**: + + LO1: 1 Hz to 50 MHz + + LO2: 1 Hz to 100 MHz + + **Default Value**: 1 MHz + + **Supported Devices**: PXIe-5830/5831/5832 + ''' + marker_event_output_behavior = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MarkerEventOutputBehavior, 1150206) + '''Type: enums.MarkerEventOutputBehavior + + Specifies the output behavior for the Marker Event. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** MarkerEventOutputBehavior.PULSE + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Defined Values**: + + +----------------------------------+----------------+-------------------------------------------------------+ + | Name | Value | Description | + +==================================+================+=======================================================+ + | MarkerEventOutputBehavior.PULSE | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | + +----------------------------------+----------------+-------------------------------------------------------+ + | MarkerEventOutputBehavior.TOGGLE | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | + +----------------------------------+----------------+-------------------------------------------------------+ + + Tip: + This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_output_behavior` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_output_behavior` + ''' + marker_event_pulse_width = _attributes.AttributeViReal64(1150207) + '''Type: float + + Specifies the pulse width value for the Marker Event. Use the marker_event_pulse_width_units property to set the units for the pulse width value. This property is valid only when the marker_event_output_behavior property is set to MarkerEventOutputBehavior.PULSE. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** 200 ns + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + Tip: + This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width` + ''' + marker_event_pulse_width_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MarkerEventPulseWidthUnits, 1150208) + '''Type: enums.MarkerEventPulseWidthUnits + + Specifies the pulse width units for the Marker Event. This property is valid only when the marker_event_output_behavior property is set to MarkerEventOutputBehavior.PULSE. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** MarkerEventPulseWidthUnits.SECONDS + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Defined Values**: + + +----------------------------------+----------------+-------------------------------------------------------+ + | Name | Value | Description | + +==================================+================+=======================================================+ + | MarkerEventOutputBehavior.PULSE | 23000 (0x59d8) | Specifies the Marker Event output behavior as pulse. | + +----------------------------------+----------------+-------------------------------------------------------+ + | MarkerEventOutputBehavior.TOGGLE | 23001 (0x59d9) | Specifies the Marker Event output behavior as toggle. | + +----------------------------------+----------------+-------------------------------------------------------+ + + Tip: + This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_pulse_width_units` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_pulse_width_units` + ''' + marker_event_terminal_name = _attributes.AttributeViString(1150115) + '''Type: str + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/Marker *X* Event, where *AWGName* is the name of your associated AWG module in MAX and *X* is Marker Event 0 through 3. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/Marker *X* Event, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Marker Event 0 through 3. + + PXIe-5820/5840/5841: /*ModuleName*/ao/0/Marker *X* Event, where *ModuleName* is the name of your device in MAX and *X* is Marker Event 0 through 3. + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - get_terminal_name + + Tip: + This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_terminal_name` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_terminal_name` + ''' + marker_event_toggle_initial_state = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.MarkerEventToggleInitialState, 1150209) + '''Type: enums.MarkerEventToggleInitialState + + Specifies the initial state for the Marker Event when the marker_event_output_behavior property is set to MarkerEventOutputBehavior.TOGGLE. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** MarkerEventToggleInitialState.LOW + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Defined Values**: + + +------------------------------------+----------------+----------------------------------------------------------------------------------+ + | Name | Value | Description | + +====================================+================+==================================================================================+ + | MarkerEventToggleInitialState.HIGH | 21001 (0x5209) | Specifies the initial state of the Marker Event toggle behavior as digital high. | + +------------------------------------+----------------+----------------------------------------------------------------------------------+ + | MarkerEventToggleInitialState.LOW | 21000 (0x5208) | Specifies the initial state of the Marker Event toggle behavior as digital low. | + +------------------------------------+----------------+----------------------------------------------------------------------------------+ + + Tip: + This property can be set/get on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset. + + Example: :py:attr:`my_session.markers[ ... ].marker_event_toggle_initial_state` + + To set/get on all markers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.marker_event_toggle_initial_state` + ''' + memory_size = _attributes.AttributeViInt64(1150061) + '''Type: int + + The total amount of memory on the signal generator in bytes. + + **Units:** bytes + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Memory Options `_ + + `Phase Continuity `_ + + Note: Not all onboard memory is available for waveform storage. A portion of onboard memory stores scripts that specify how the waveforms are generated. These scripts typically require less than 1KB of onboard memory. + ''' + module_power_consumption = _attributes.AttributeViReal64(1150210) + '''Type: float + + Returns the total power consumption of the device. + + **Units:** watts + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: If you query this property during RF list mode, list steps may take longer to complete during list execution. + ''' + module_revision = _attributes.AttributeViString(1150084) + '''Type: str + + Returns the module revision letter. If the NI-RFSG session is controlling multiple modules, this property returns the revision letter of the primary RF module. The NI-RFSG session is opened using the primary RF device name. + + **Supported Devices:** PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Identifying Module Revision `_ + ''' + output_enabled = _attributes.AttributeViBoolean(1250004) + '''Type: bool + + Specifies whether signal output is enabled. Setting the output_enabled property to False while in the Generation state stops signal output, although generation continues internally. For the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXI-5670/5671, and PXIe-5672/5673/5673E, setting the output_enabled property while in the Committed state does not transition the device to the Configuration state, but output changes immediately. + + **Default Value:** True + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Output Enabled `_ + + `NI-RFSG Instrument Driver Programming Flow `_ + + **Defined Values**: + + +-------+-------------------------+ + | Value | Description | + +=======+=========================+ + | True | Enables signal output. | + +-------+-------------------------+ + | False | Disables signal output. | + +-------+-------------------------+ + + Note: - For the PXIe-5653, this property controls only the LO1 terminal. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + + - When the ACTIVE_CONFIGURATION_LIST property is set to a valid list name, setting the output_enabled property transitions the device to the Configuration state. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + ''' + output_port = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OutputPort, 1150144) + '''Type: enums.OutputPort + + Specifies the connector(s) to use to generate the signal. To set this property, the NI-RFSG device must be in the Configuration state. + + You must write complex I and Q data for all options. The Q data has no effect if you set this property to I Only and set the iq_out_port_carrier_frequency property to 0. If you set the iq_out_port_carrier_frequency property to a value other than 0, the onboard signal processing (OSP) frequency shifts I and Q as a complex value and outputs the real portion of the result on the I connector(s) of the device. + + If you set the output_port property to OutputPort.I_ONLY or OutputPort.IQ_OUT, the iq_out_port_terminal_configuration property applies. + + **Default Value:** + + PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842/5860: OutputPort.RF_OUT + + PXIe-5820: OutputPort.IQ_OUT + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +--------------------+----------------+------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +====================+================+==========================================================================================+ + | OutputPort.CAL_OUT | 14002 (0x36b2) | Enables the CAL OUT port. | + +--------------------+----------------+------------------------------------------------------------------------------------------+ + | OutputPort.I_ONLY | 14003 (0x36b3) | Enables the I connectors of the I/Q OUT port. This value is valid on only the PXIe-5645. | + +--------------------+----------------+------------------------------------------------------------------------------------------+ + | OutputPort.IQ_OUT | 14001 (0x36b1) | Enables the I/Q OUT port. This value is valid on only the PXIe-5645 and PXIe-5820. | + +--------------------+----------------+------------------------------------------------------------------------------------------+ + | OutputPort.RF_OUT | 14000 (0x36b0) | Enables the RF OUT port. This value is not valid for the PXIe-5820. | + +--------------------+----------------+------------------------------------------------------------------------------------------+ + ''' + overflow_error_reporting = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.OverflowErrorReporting, 1150228) + '''Type: enums.OverflowErrorReporting + + Configures error reporting for onboard signal processing (OSP) overflows. Overflows lead to clipping of the waveform. + + **Default Value:** OverflowErrorReporting.WARNING + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +---------------------------------+--------------+----------------------------------------------------------------------------+ + | Name | Value | Description | + +=================================+==============+============================================================================+ + | OverflowErrorReporting.DISABLED | 1302 (0x516) | NI-RFSG does not return an error or a warning when an OSP overflow occurs. | + +---------------------------------+--------------+----------------------------------------------------------------------------+ + | OverflowErrorReporting.WARNING | 1301 (0x515) | NI-RFSG returns a warning when an OSP overflow occurs. | + +---------------------------------+--------------+----------------------------------------------------------------------------+ + ''' + peak_envelope_power = _attributes.AttributeViReal64(1150011) + '''Type: float + + Returns the maximum instantaneous power of the RF output signal. + + **Units**: dBm + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: - This property is valid only when the power_level_type property is set to PowerLevelType.AVERAGE. + + - The arb_digital_gain property is not included in the calculation of the peak_envelope_power property. + ''' + peak_power_adjustment = _attributes.AttributeViReal64(1150132) + '''Type: float + + Specifies the adjustment for the power_level property. This property is valid only when you set the power_level_type property to PowerLevelType.PEAK. The value of the peak_power_adjustment property adds to the power_level property. The peak_power_adjustment property typically specifies the peak-to-average power ratio (PAPR) of a waveform. If the PAPR is specified, the specified power level becomes the average power level of the waveform, even if the power_level_type property is set to PowerLevelType.PEAK. + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate a peak power adjustment with a waveform. + + Note: - For the PXIe-5673/5673E only, use this property to associate a peak power adjustment with a waveform. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + ''' + phase_continuity_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PhaseContinuityEnabled, 1150005) + '''Type: enums.PhaseContinuityEnabled + + Specifies whether the driver maintains phase continuity in the arbitrary waveforms. When this property is set to PhaseContinuityEnabled.ENABLE, NI-RFSG may increase the waveform size. To set the phase_continuity_enabled property, the NI-RFSG device must be in the Configuration state. phase_continuity_enabled applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT. + + PXI-5671: When using the PXI-5671 with I/Q rates less than or equal to 8.33MS/s, an input phase-continuous signal is always phase-continuous upon output, and this property has no effect. + + PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Phase continuity is *always* enabled on this device. + + **Default Value:** PhaseContinuityEnabled.AUTO + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Phase Continuity `_ + + `Arb Waveform Mode Tuning Speed Factors `_ + + **Defined Values**: + + +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | phase_continuity_enabled Property Setting | Value | With I/Q Rates > 8.33 MS/s. | + +===========================================+===========+==========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | PhaseContinuityEnabled.AUTO | -1 (-0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. This setting could cause waveform size to increase. When the Generation Mode property is set to Script, the Phase Continuity Enabled property indicates a warning condition. NI-RFSG cannot guarantee a phase-continuous output signal in Script mode. Phase continuity is automatically disabled in script mode, and the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. | + +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PhaseContinuityEnabled.DISABLE | 0 (0x0) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform is played back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | + +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PhaseContinuityEnabled.ENABLE | 1 (0x1) | When the Generation Mode property is set to Arb Waveform, the arbitrary waveform may be repeated to ensure phase continuity after upconversion. Enabling this property could cause waveform size to increase. When the Generation Mode property is set to Script, the arbitrary waveform plays back without regard to any possible phase discontinuities introduced by upconversion. The time duration of the original waveform is maintained. | + +-------------------------------------------+-----------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + phase_offset = _attributes.AttributeViReal64(1150024) + '''Type: float + + Specifies the phase of the RF output signal. Use this property to align the phase of the RF output with the phase of the RF output of another device, as long as the two devices are phase-coherent. + + **Units**: degrees (°) + + **Default Value:** 0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653, PXIe-5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Phase Synchronization and Phase Coherency `_ + ''' + power_level = _attributes.AttributeViReal64(1250002) + '''Type: float + + Specifies either the average power level or peak power level of the generated RF signal, depending on the power_level_type property setting. + + The PXI-5670/5671, PXIe-5672, and PXIe-5860 must be in the Configuration state to use this property. However, the PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E and PXIe-5830/5831/5832/5840/5841/5842 can be in the Configuration or the Generation state to use this property. + + Refer to the specifications document for your device for allowable power level settings. + + **Units**: dBm + + **Default Values:** + + PXIe-5644/5645/5646, PXIe-5673/5673E: -100 + + PXI/PXIe-5650/5651/5652: -90 + + PXIe-5654: -7 + + PXIe-5654 with PXIe-5696: -110 + + PXI-5670/5671, PXIe-5672: -145 + + PXIe-5830/5831/5832/5840/5841/5842/5860: -174 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + **High-Level Methods**: + + - ConfigureRf + + Note: - For the PXIe-5653, this property is read-only. + + - For the PXIe-5645, this property is ignored if you are using the I/Q ports. + ''' + power_level_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PowerLevelType, 1150043) + '''Type: enums.PowerLevelType + + Specifies how NI-RFSG interprets the value of the power_level property. The power_level_type property also affects how waveforms are scaled. + + PXI-5670/5671: While in Script generation mode, if this property is set to PowerLevelType.AVERAGE, NI-RFSG scales each waveform so that all waveforms have the same average power. The average power level of each waveform matches the value set with the power_level property. You can disable this scaling operation by setting the power_level_type property to PowerLevelType.PEAK. + + PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860: While in Script generation mode, this property must be set to PowerLevelType.PEAK. + + Converting from Average Power to Peak Power + + Typically, this property is set to PowerLevelType.AVERAGE. However, some instrument modes require this property to be set to PowerLevelType.PEAK. Use the following equations to calculate the equivalent peak power given the desired average power for your waveform: + + Where 1 is the highest possible magnitude in the waveform. + + **Default Value:** + + PXIe-5820: PowerLevelType.PEAK + + All other devices: PowerLevelType.AVERAGE + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Spurious Performance `_ + + `Optimizing for Low Power Generation `_ + + **Defined Values**: + + +------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +========================+====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | PowerLevelType.AVERAGE | Indicates the desired power averaged in time. The driver maximizes the dynamic range by scaling the I/Q waveform so that its peak magnitude is equal to one. If your write more than one waveform, NI-RFSG scales each waveform without preserving the power level ratio between the waveforms. This value is not valid for the PXIe-5820. | + +------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PowerLevelType.PEAK | Indicates the maximum power level of the RF signal averaged over one period of the RF carrier frequency (the peak envelope power). This setting requires that the magnitude of the I/Q waveform must always be less than or equal to one. When using peak power, the power level of the RF signal matches the specified power level at moments when the magnitude of the I/Q waveform equals one. If you write more than one waveform, the relative scaling between waveforms is preserved. In peak power mode, waveforms are scaled according to the arb_waveform_software_scaling_factor property. You can use the peak_power_adjustment property in conjunction with the power_level property when the power_level_type property is set to PowerLevelType.PEAK. | + +------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + pulse_modulation_active_level = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerDigitalLevelActiveLevel, 1150307) + '''Type: enums.ScriptTriggerDigitalLevelActiveLevel + + Specifies the active level of the pulse modulation signal when pulse modulation is enabled. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** ScriptTriggerDigitalLevelActiveLevel.HIGH + + **Supported Devices:** PXIe-5842 + + **Defined Values**: + + +-------------------------------------------+---------------+--------------------------------------------------+ + | Name | Value | Description | + +===========================================+===============+==================================================+ + | ScriptTriggerDigitalLevelActiveLevel.HIGH | 9000 (0x2328) | Trigger when the digital trigger signal is high. | + +-------------------------------------------+---------------+--------------------------------------------------+ + | ScriptTriggerDigitalLevelActiveLevel.LOW | 9001 (0x2329) | Trigger when the digital trigger signal is low. | + +-------------------------------------------+---------------+--------------------------------------------------+ + ''' + pulse_modulation_enabled = _attributes.AttributeViBoolean(1250051) + '''Type: bool + + Enables or disables pulse modulation. + + PXIe-5654/5654 with PXIe-5696: If this property is enabled and the signal at the PULSEIN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. + + PXIe-5673/5673E: If this property is enabled and the signal at the PLSMOD front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. + + PXIe-5842: If this property is enabled and the signal at the PULSE IN front panel connector is high, the device generates a signal. If the signal is low, output generation is disabled. This behavior can be modified by setting pulse modulation active level. + + **Default Value:** False + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E + + **Related Topics** + + `Pulse Modulation `_ + + **Defined Values**: + + +-------+----------------------------+ + | Value | Description | + +=======+============================+ + | True | Enables pulse modulation. | + +-------+----------------------------+ + | False | Disables pulse modulation. | + +-------+----------------------------+ + ''' + pulse_modulation_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PulseModulationMode, 1150190) + '''Type: enums.PulseModulationMode + + PXIe-5654/5654 with PXIe-5696: Specifies the pulse modulation mode to use. + + PXIe-5842: This property allows you to choose a tradeoff between switching speed and On/Off Ratio when using pulse modulation. Refer to the product specifications document for the switching characteristics of each mode. This property is settable while the device is generating, but some output pulses may be dropped. + + **Default Value:** PulseModulationMode.ANALOG + + **Supported Devices:** PXIe-5842/5654/5654 with PXIe-5696 + + **Defined Values**: + + +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +===================================================+=============================================================================================================================================+ + | PulseModulationMode.OPTIMAL_MATCH | Provides for a more optimal power output match for the device during the off cycle of the pulse mode operation. Not supported on PXIe-5842. | + +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSG_VAL_PULSE_MODULATION_ANALOG_HIGH_ISOLATION | Allows for the best on/off power ratio of the pulsed signal. | + +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSG_VAL_PULSE_MODULATION_ANALOG | Analog switch blanking. Balance between switching speed and on/off power ratio of the pulsed signal. | + +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + | NIRFSG_VAL_PULSE_MODULATION_DIGITAL | Digital only modulation. Provides the best on/off switching speed of the pulsed signal at the cost of signal isolation. | + +---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + pulse_modulation_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.PulseModulationSource, 1150308) + '''Type: enums.PulseModulationSource + + Specifies the source of the pulse modulation signal. When Pulse In in used, the pulse modulation is applied with the lowest latency and jitter, but is not aligned to any particular waveform sample. When a marker is used, the RF pulse is aligned to a specific sample in the arbitrary waveform. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** PulseIn + + **Supported Devices:** PXIe-5842 + + **Possible Values**: + + +----------------+----------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +================+==============================================================================================+ + | "PulseIn" | The trigger is received on the PULSE IN terminal. This value is valid on only the PXIe-5842. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker0" | The trigger is received from the Marker 0. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker1" | The trigger is received from the Marker 1. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker2" | The trigger is received from the Marker 2. | + +----------------+----------------------------------------------------------------------------------------------+ + | "Marker3" | The trigger is received from the Marker 3. | + +----------------+----------------------------------------------------------------------------------------------+ + ''' + ref_clock_rate = _attributes.AttributeViReal64(1250322) + '''Type: float + + Specifies the Reference Clock rate, in Hz, of the signal present at the REF IN or CLK IN connector. This property is only valid when the ref_clock_source property is set to ClkIn, RefIn, or RefIn2 + + To set this property, the NI-RFSG device must be in the Configuration state. If you are using the PXIe-5654/5654 with PXIe-5696, the NI-RFSG device must be in the Committed state to read this property. When you read this property, it returns the frequency the device is locked to during the Committed state. + + If you set this property to Auto, NI-RFSG uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if automatic detection is supported by the device. + + **Valid Values:** + + PXIe-5654/5654 with PXIe-5696: Values between 1MHz to 20MHz in 1MHz steps are supported in addition to the Auto and 10MHz values. + + PXIe-5841 with PXIe-5655, PXIe-5842: 10 MHz, 100 MHz, 270 MHz, and 3.84 MHz + + y, where + + y is 4, 8, 16, 24, 25, or 32. + + PXIe-5860: 10 MHz, 100 MHz + + **Units**: hertz (Hz) + + **Default Value:** Auto + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Timing Configurations `_ + + **High-Level Methods**: + + - configure_ref_clock + + **Defined Values**: + + +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +=======+============+===================================================================================================================================+ + | Auto | -1.0 | Uses the default Reference Clock rate for the device or automatically detects the Reference Clock rate if the device supports it. | + +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ + | 10MHz | 10000000.0 | Uses a 10 MHz Reference Clock rate. | + +-------+------------+-----------------------------------------------------------------------------------------------------------------------------------+ + + Note: Automatic detection of the Reference Clock rate is supported on only the PXIe-5654/5654 with PXIe-5696. For all other supported devices, NI-RFSG uses the default Reference Clock rate of 10MHz. + ''' + ref_clock_source = _attributes.AttributeEnum(_attributes.AttributeViString, enums.ReferenceClockSource, 1150001) + '''Type: enums.ReferenceClockSource + + Specifies the Reference Clock source. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** OnboardClock + + **Supported Devices:** PXI-5610, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Timing Configurations `_ + + **High-Level Methods**: + + - configure_ref_clock + + **Possible Values**: + + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Value | Description | + +=================+=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. ** PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the Reference Clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the Reference Clock source. **PXIe-5830/5831** —For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831/5832, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831/5832, lock the external signal to the PXIe-3622 REF IN connector. **PXIe-5831/5832 with PXIe-5653** —Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** —Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the Reference Clock source. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn2" | This value is not valid on any supported devices. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_ClkMaster" | This value is valid on only the PXIe-5831/5832 with PXIe-5653. **PXIe-5831/5832 with PXIe-5653** —NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_CLK as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | + +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + ''' + ref_pll_bandwidth = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ReferencePllBandwidth, 1150133) + '''Type: enums.ReferencePllBandwidth + + Configures the loop bandwidth of the reference PLL. + + **Default Value:** ReferencePllBandwidth.NARROW + + **Supported Devices:** PXIe-5653 + + **Related Topics** + + `Phase-Locked Loop Bandwidth `_ + + **Defined Values**: + + +------------------------------+--------------------------------------------------------+ + | Value | Description | + +==============================+========================================================+ + | ReferencePllBandwidth.NARROW | Uses the narrowest loop bandwidth setting for the PLL. | + +------------------------------+--------------------------------------------------------+ + | ReferencePllBandwidth.MEDIUM | Uses the medium loop bandwidth setting for the PLL. | + +------------------------------+--------------------------------------------------------+ + | ReferencePllBandwidth.WIDE | Uses the widest loop bandwidth setting for the PLL. | + +------------------------------+--------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + relative_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1150220) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the delay, in seconds, to apply to the I/Q waveform. + + Relative delay allows for delaying the generated signal from one device relative to the generated signal of another device after those devices have been synchronized. You can achieve a negative relative delay by delaying both synchronized devices by the same value (1 μs) before generation begins and then changing the relative delay to a smaller amount than the initial value on only one of the devices. + + To set this property, the NI-RFSG device must be in the Configuration or Generation state. + + **Units:** Seconds + + **Valid Values:** + + PXIe-PXIe-5820/5830/5831/5832/5840/5841: 0 μs to 3.2 μs + + PXIe-5842: 0 μs to 6.5 μs + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `NI-TClk Overview `_ + + Note: - To obtain a negative relative delay when synchronizing the PXIe-5840/5841 with a module that does not support this property, use the NITCLK_ATTR_SAMPLE_CLOCK_DELAY property. + + - The resolution of this property is a method of the I/Q sample period at 15E(-6) of the sample period but not worse than one Sample Clock period. + ''' + rf_blanking_source = _attributes.AttributeViString(1150162) + '''Type: str + + Specifies the Marker Event at which RF blanking occurs. RF blanking quickly attenuates the RF OUT signal. Use Marker Events to toggle the state of RF blanking. The RF Output always starts in the unblanked state. + + To set this property, the NI-RFSG device must be in the Configuration state. + + You can specify Marker Events by using scripts to trigger blanking at a certain point in a waveform. For example, if you set this property to marker0 str}, and marker0 occurs on samples 1,000 and 2,000 of a script, then the RF Output will be blanked (attenuated) between samples 1,000 and 2,000. + + PXIe-5645: This property is ignored if you are using the I/Q ports. + + PXIe-5840/5841: RF blanking does not occur for frequencies below 120MHz. + + For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any Reset or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call reset_with_options or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + **Valid Values**: + + +-----------+---------------------------------+ + | Value | Description | + +===========+=================================+ + | "" | RF blanking is disabled. | + +-----------+---------------------------------+ + | "Marker0" | RF blanking is tied to marker0. | + +-----------+---------------------------------+ + | "Marker1" | RF blanking is tied to marker1. | + +-----------+---------------------------------+ + | "Marker2" | RF blanking is tied to marker2. | + +-----------+---------------------------------+ + | "Marker3" | RF blanking is tied to marker3. | + +-----------+---------------------------------+ + + Note: The shortest supported blanking interval is eight microseconds. + ''' + rf_in_lo_export_enabled = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RFInLoExportEnabled, 1150243) + '''Type: enums.RFInLoExportEnabled + + Specifies whether to enable the RF IN LO OUT terminal on the PXIe-5840/5841. + + Set this property to RFInLoExportEnabled.ENABLE to export the LO signal from the RF IN LO OUT terminal. + + When this property is enabled, if the lo_source property is set to LO_In and you do not set the lo_frequency or upconverter_center_frequency properties, NI-RFSG rounds the LO frequency to approximately an LO step size as if the source was OnboardClock. This ensures that when you configure NI-RFSA and NI-RFSG with compatible settings that result in the same LO frequency, the rounding also is compatible. + + **Default Value:** RFInLoExportEnabled.UNSPECIFIED + + **Supported Devices**: PXIe-5840/5841/5842 + + **Defined Values**: + + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +=================================+=========================================================================================================================================+ + | RFInLoExportEnabled.DISABLE | The RF In local oscillator signal is not present at the front panel LO OUT connector. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | RFInLoExportEnabled.ENABLE | The RF In local oscillator signal is present at the front panel LO OUT connector. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | RFInLoExportEnabled.UNSPECIFIED | The RF IN local oscillator signal may or may not be present at the front panel LO OUT connector, because NI-RFSA may be controlling it. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + script_trigger_terminal_name = _attributes.AttributeViString(1150116) + '''Type: str + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/ScriptTrigger *X*, where *AWGName* is the name of your associated AWG module in MAX and *X* is Script Trigger 0 through 3. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/ScriptTrigger *X*, where *BasebandModule* is the name of the baseband module of your device in MAX and *X* is Script Trigger 0 through 3. + + PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX and *X* is Script Trigger 0 through 3. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/ScriptTrigger *X*, where *ModuleName* is the name of your device in MAX, *ChannelNumber* is the channel number (0 or 1), and *X* is Script Trigger 0 through 3. + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - get_terminal_name + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_terminal_name` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.script_trigger_terminal_name` + ''' + script_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScriptTriggerType, 1150019) + '''Type: enums.ScriptTriggerType + + Specifies the Script Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** ScriptTriggerType.NONE + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Trigger Types `_ + + **High-Level Methods**: + + - configure_digital_edge_script_trigger + + **Defined Values**: + + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +=================================+=======================================================================================================================================================================================================================================================================+ + | ScriptTriggerType.NONE | No trigger is configured. Signal generation starts immediately. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ScriptTriggerType.DIGITAL_EDGE | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified with the digital_edge_start_trigger_edge property. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ScriptTriggerType.DIGITAL_LEVEL | The data operation does not start until the digital level is detected. The source of the digital level is specified in the digital_level_script_trigger_source property, and the active level is specified in the digital_level_script_trigger_active_level property. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ScriptTriggerType.SOFTWARE | The data operation does not start until a software trigger occurs. You can create a software event by calling the send_software_edge_trigger method. | + +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset. + + Example: :py:attr:`my_session.script_triggers[ ... ].script_trigger_type` + + To set/get on all script_triggers, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.script_trigger_type` + ''' + selected_path = _attributes.AttributeViString(1150311) + '''Type: str + + Specifies which path to configure to generate a signal. + ''' + selected_ports = _attributes.AttributeViString(1150241) + '''Type: str + + Specifies the port to configure. + + **Valid Values**: + + PXIe-5644/5645/5646, PXIe-5820/5840/5841: "" (empty string) + + PXIe-5830: if0, if1 + + PXIe-5831/5832: if0, if1, rf*0-1*/port*x*, where *0-1* indicates one (*0*) or two (*1*) mmRH-5582 connections and *x* is the port number on the mmRH-5582 front panel. + + **Default Value:** + + PXIe-5644/5645/5646, PXIe-5820/5840/5841/5842/5860: "" (empty string) + + PXIe-5830/5831/5832: if0 + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + available_ports + + Note: When using RF list mode, ports cannot be shared with NI-RFSA. + ''' + selected_script = _attributes.AttributeViString(1150023) + '''Type: str + + Specifies the script in onboard memory to generate upon calling the _initiate method when the generation_mode property is set to GenerationMode.SCRIPT. + + The selected_script property is ignored when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.CW. To set the selected_script property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + `Scripting Instructions `_ + ''' + self_calibration_temperature = _attributes.AttributeViReal64(1150136) + '''Type: float + + Indicates, in degrees Celsius, the temperature of the device at the time of the last self calibration. + + **Supported Devices:** PXIe-5644/5645/5646 + ''' + serial_number = _attributes.AttributeViString(1150026) + '''Type: str + + Returns the serial number of the RF module. If the NI-RFSG session is controlling multiple modules, this property returns the serial number of the primary RF module. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + signal_bandwidth = _attributes.AttributeViReal64(1150007) + '''Type: float + + Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× iq_rate). + + NI-RFSG defines *signal bandwidth* as twice the maximum baseband signal deviation from 0 Hz. Usually, the baseband signal center frequency is 0 Hz. In such cases, the signal bandwidth is simply the baseband signal's minimum frequency subtracted from its maximum frequency, or *f* :sub:`max` - *f* :sub:`min` . + + This property applies only when the generation_mode property is set to GenerationMode.ARB_WAVEFORM or GenerationMode.SCRIPT, except for when using the PXIe-5830/5831/5832/5840/5841, which supports setting this property in all supported generation modes. To set the signal_bandwidth property, the NI-RFSG device must be in the Configuration state. + + PXI-5670/5671, PXIe-5672: Based on your signal bandwidth, NI-RFSG determines whether to configure the upconverter center frequency in increments of 1MHz or 5MHz. Failure to configure this property may result in the signal being placed outside the upconverter passband. + + PXIe-5644/5645/5646, PXIe-5673/5673E: This property is used only for error-checking purposes. Otherwise, this property is ignored. + + PXIe-5820/5830/5831/5832/5840/5841/5842/5860: Based on your signal bandwidth, NI-RFSG decides the equalized bandwidth. If this property is not set, NI-RFSG uses the maximum available signal bandwidth. For the PXIe-5840/5841, the maximum allowed signal bandwidth depends on the upconverter center frequency. Refer to the specifications document for your device for more information about signal bandwidth. The device specifications depend on the signal bandwidth. + + **Units**: hertz (Hz) + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Phase-Locked Loop Bandwidth `_ + + `Frequency Tuning Times `_ + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + ''' + specific_driver_class_spec_major_version = _attributes.AttributeViInt32(1050515) + '''Type: int + + Returns the major version number of the class specification with which NI-RFSG is compliant. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + specific_driver_class_spec_minor_version = _attributes.AttributeViInt32(1050516) + '''Type: int + + Returns the minor version number of the class specification with which NI-RFSG is compliant. + + **Supported Devices:** PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + Returns a string that contains a brief description of NI-RFSG. This property returns + + National Instruments RF Signal Generator Instrument Driver. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + specific_driver_prefix = _attributes.AttributeViString(1050302) + '''Type: str + + Returns a string that contains the prefix for NI-RFSG. The name of each user-callable method in NI-RFSG starts with this prefix. This property returns + + niRFSG. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + Returns a string that contains additional version information about NI-RFSG. For example, NI-RFSG can return + + Driver: NI-RFSG14.5.0, Compiler: MSVC9.00, Components: IVI Engine4.00, VISA-Spec4.00 as the value of this property. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + Returns a string that contains the name of the vendor that supplies NI-RFSG. This property returns + + National Instruments. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + started_event_terminal_name = _attributes.AttributeViString(1150112) + '''Type: str + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartedEvent, where *AWGName* is the name of your associated AWG module in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartedEvent, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841: /*ModuleName*/ao/0/StartedEvent, where *ModuleName* is the name of your device in MAX. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartedEvent, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **Supported Devices:** PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + start_trigger_terminal_name = _attributes.AttributeViString(1150114) + '''Type: str + + Returns the name of the fully qualified signal name as a string. + + **Default Values**: + + PXIe-5654/5654 with PXIe-5696: /*ModuleName*/StartTrigger, where *ModuleName* is the name of your device in MAX. + + PXI-5670/5671, PXIe-5672/5673/5673E: /*AWGName*/StartTrigger, where *ModuleName* is the name of your associated AWG module in MAX. + + PXIe-5830/5831/5832: /*BasebandModule*/ao/0/StartTrigger, where *BasebandModule* is the name of the baseband module of your device in MAX. + + PXIe-5820/5840/5841/5842: /*ModuleName*/ao/0/StartTrigger, where *ModuleName* is the name of your device in MAX. + + PXIe-5860: /*ModuleName*/ao/*ChannelNumber*/StartTrigger, where *ModuleName* is the name of your device in MAX and *ChannelNumber* is the channel number (0 or 1). + + **Supported Devices:** PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Syntax for Terminal Names `_ + + **High-Level Methods**: + + - get_terminal_name + ''' + start_trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.StartTriggerType, 1250458) + '''Type: enums.StartTriggerType + + Specifies the Start Trigger type. Depending upon the value of this property, more properties may be needed to fully configure the trigger. To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** StartTriggerType.NONE + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Trigger Types `_ + + **High-Level Methods**: + + - configure_digital_edge_start_trigger + - configure_software_start_trigger + - disable_start_trigger + + **Defined Values**: + + +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +===============================+========================================================================================================================================================================================================================================================+ + | StartTriggerType.NONE | No trigger is configured. | + +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | StartTriggerType.DIGITAL_EDGE | The data operation does not start until a digital edge is detected. The source of the digital edge is specified with the digital_edge_start_trigger_source property, and the active edge is specified in the digital_edge_start_trigger_edge property. | + +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | StartTriggerType.SOFTWARE | The data operation does not start until a software event occurs. You may create a software trigger by calling the send_software_edge_trigger method. | + +-------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + streaming_enabled = _attributes.AttributeViBoolean(1150045) + '''Type: bool + + Enables and disables continuous streaming of waveform data. + + **Default Value:** False + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + **Defined Values**: + + +-------+------------------------+ + | Value | Description | + +=======+========================+ + | True | Streaming is enabled. | + +-------+------------------------+ + | False | Streaming is disabled. | + +-------+------------------------+ + ''' + streaming_space_available_in_waveform = _attributes.AttributeViInt64(1150047) + '''Type: int + + Indicates the space available, in samples, in the streaming waveform for writing new data. For optimal performance, write new data to the waveform in a fixed size that is an integer divisor of the total size of the streaming waveform. This waveform size ensures that writes do not have to wrap around from the end to the beginning of the waveform buffer. + + To read this property, the NI-RFSG device must be in the Committed state. + + **Units**: samples + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + ''' + streaming_waveform_name = _attributes.AttributeViString(1150046) + '''Type: str + + Specifies the name of the waveform used to continually stream data during generation. + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Streaming Waveform Data `_ + ''' + streaming_write_timeout = _attributes.AttributeViReal64TimeDeltaSeconds(1150140) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Indicates the maximum amount of time allowed to complete a streaming write operation. + + **Default Value:** 10.0seconds + + **Supported Devices:** PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Streaming Waveform Data `_ + ''' + supported_instrument_models = _attributes.AttributeViStringCommaSeparated(1050327) + '''Type: list of str + + Returns a list of supported devices. + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + sync_sample_clock_dist_line = _attributes.AttributeViString(1150181) + '''Type: str + + Specifies which external trigger line distributes the Sample Clock sync signal. When synchronizing the Sample Clock between multiple devices, configure all devices to use the same Sample Clock sync distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5646 + + **Related Topics** + + `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. + ''' + sync_sample_clock_master = _attributes.AttributeViBoolean(1150180) + '''Type: bool + + Specifies whether the device is the master device when synchronizing the Sample Clock between multiple devices. The master device distributes the Sample Clock sync signal to all devices in the system through the Sample Clock sync distribution line. + + When synchronizing the Sample Clock, one device must always be designated as the master. The master device actively drives the Sample Clock sync distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5646 + + **Related Topics** + + `Synchronization Using NI-RFSA and NI-RFSG `_—Refer to this topic for more information about PXIe-5646 device synchronization. + + **Defined Values**: + + +-------+---------------------------------------------------------------------+ + | Value | Description | + +=======+=====================================================================+ + | True | The device is the master device for synchronizing the Sample Clock. | + +-------+---------------------------------------------------------------------+ + | False | The device is not the master for synchronizing the Sample Clock. | + +-------+---------------------------------------------------------------------+ + ''' + sync_script_trigger_dist_line = _attributes.AttributeViString(1150143) + '''Type: str + + Specifies which external trigger line distributes the synchronized Script Trigger signal. When synchronizing the Script Trigger, configure all devices to use the same Script Trigger distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Script Trigger `_ + + `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + ''' + sync_script_trigger_master = _attributes.AttributeViBoolean(1150142) + '''Type: bool + + Specifies whether the device is the master device when synchronizing the Script Trigger. + + The master device distributes the synchronized Script Trigger to all devices in the system through the Script Trigger distribution line. + + When synchronizing the Script trigger, one device must always be designated as the master. The master device actively drives the Script Trigger distribution line. For slave devices, set the script_trigger_type property to digital edge, and set the digital_edge_script_trigger_source property to sync_script. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Script Trigger `_ + + `Synchronizing Sample Clock and Sampled Reference Clock Signals `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + + **Defined Values**: + + +-------+-----------------------------------------------------------------------+ + | Value | Description | + +=======+=======================================================================+ + | True | The device is the master device for synchronizing the Script Trigger. | + +-------+-----------------------------------------------------------------------+ + | False | The device is not the master for synchronizing the Script Trigger. | + +-------+-----------------------------------------------------------------------+ + ''' + sync_start_trigger_dist_line = _attributes.AttributeViString(1150156) + '''Type: str + + Specifies which external trigger line distributes the synchronized Start Trigger signal. When synchronizing the Start Trigger, configure all devices to use the same Start Trigger distribution line. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Valid Values:** PXI_Trig0, PXI_Trig1, PXI_Trig2, PXI_Trig3, PXI_Trig4, PXI_Trig5, PXI_Trig6, PXI_Trig7, PFI0 + + **Default Value:** "" (empty string) + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Start Trigger `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + ''' + sync_start_trigger_master = _attributes.AttributeViBoolean(1150155) + '''Type: bool + + Specifies whether the device is the master device when synchronizing the Start Trigger. The master device distributes the synchronized Start Trigger to all devices in the system through the Start Trigger distribution line. + + When synchronizing the Start Trigger, one device must always be designated as the master. The master device actively drives the Start Trigger distribution line. For slave devices, set the start_trigger_type property to digital edge, and set the digital_edge_start_trigger_source property to sync_script. + + To set this property, the NI-RFSG device must be in the Configuration state. + + **Default Value:** False + + **Supported Devices:** PXIe-5644/5645/5646 + + **Related Topics** + + `Start Trigger `_ + + Refer to the Synchronization Using NI-RFSA and NI-RFSG topic appropriate to your device for more information about device synchronization for vector signal transceivers. + + **Defined Values**: + + +-------+----------------------------------------------------------------------+ + | Value | Description | + +=======+======================================================================+ + | True | The device is the master device for synchronizing the Start Trigger. | + +-------+----------------------------------------------------------------------+ + | False | The device is not the master for synchronizing the Start Trigger. | + +-------+----------------------------------------------------------------------+ + ''' + temperature_read_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1150212) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the minimum time between temperature sensor readings. + + **Units:** Seconds + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + thermal_correction_headroom_range = _attributes.AttributeViReal64(1150258) + '''Type: float + + Specifies the expected thermal operating range of the instrument from the self-calibration temperature, in degrees Celsius, returned from the device_temperature property. + + For example, if this property is set to 5.0, and the device is self-calibrated at 35°C, then you can expect to run the device from 30°C to 40°C with corrected accuracy and no overflows. Setting this property with a smaller value can result in improved dynamic range, but you must ensure thermal stability while the instrument is running. Operating the instrument outside of the specified range may cause degraded performance or DSP overflows. + + **Units:** degrees Celsius (°C) + + **Default Value**: + + **PXIe-5830/5831/5832/5842/5860**: 5 + + **PXIe-5840/5841**: 10 + + **Supported Devices**: PXIe-5830/5831/5832/5840/5841/5842/5860 + ''' + thermal_correction_temperature_resolution = _attributes.AttributeViReal64(1150244) + '''Type: float + + Specifies the temperature change, in degrees Celsius, that is required before NI-RFSG recalculates the thermal correction settings when entering the Generation state. + + **Units:** degrees Celsius (°C) + + **Supported Devices**: PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Default Values:** + + PXIe-5830/5831/5832/5842/5860: 0.2 + + PXIe-5840/5841: 1.0 + ''' + timer_event_interval = _attributes.AttributeViReal64TimeDeltaSeconds(1150100) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the time before the timer emits an event after the task is started and specifies the time interval between Timer events after the first event. + + **Units**: seconds (s) + + **Default Value:** 0 + + **Supported Devices:** PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Events `_ + + Note: For the PXIe-5820/5840/5841/5842/5860, this property must be set for the timer to start. If you do not set this property, the timer is disabled. + ''' + upconverter_center_frequency = _attributes.AttributeViReal64(1154098) + '''Type: float + + Indicates the center frequency of the passband containing the upconverted RF signal. Writing a value to this property while using the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, or PXIe-5820/5840/5841 device enables in-band retuning. In-band retuning increases the speed of frequency sweeps by reducing the amount of upconverter retunes. + + **Units**: hertz (Hz) + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + Note: - This property is read/write on the PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842, and is read-only on the PXI-5670/5671. + + - Resetting this property disables in-band retuning, however, for the PXIe-5820, in-band retuning is always enabled. + + - For the PXIe-5820, the only valid value for this property is 0. + + - Setting this property while the PXIe-5644/5645/5646, PXIe-5673/5673E, or PXIe-5820/5830/5831/5832/5840/5841/5842 device is generating has no effect until a dynamic property is set. + ''' + upconverter_frequency_offset = _attributes.AttributeViReal64(1150160) + '''Type: float + + This property offsets the upconverter_center_frequency from the RF frequency. Use this property to keep the local oscillator (LO) leakage at a determined offset from the RF signal. + + **Valid Values:** + + PXIe-5644/5645: -42MHz to +42MHz + + PXIe-5646: -100MHz to +100MHz + + PXIe-5830/5831/5832/5840/5841: -500MHz to +500MHz + + PXI-5842 (500 MHz bandwidth option): -250MHz to +250MHz + + PXI-5842 (1 GHz bandwidth option): -500MHz to +500MHz + + PXI-5842 (2 GHz bandwidth option): -1GHz to +1GHz + + PXIe-5842 (4 GHz bandwidth option) using the Standard personality: -1GHz to +1GHz + + PXIe-5842 (4 GHz bandwidth option) using the 4 GHz Bandwidth personality: -2GHz to +2GHz + + **Supported Devices:** PXIe-5644/5645/5646, PXIe-5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `PXIe-5830 Frequency and Bandwidth Selection `_ + + `PXIe-5831/5832 Frequency and Bandwidth Selection `_ + + `PXIe-5841 Frequency and Bandwidth Selection `_ + + Note: - You cannot set the upconverter_center_frequency property or the arb_carrier_frequency property at the same time as the upconverter_frequency_offset property. + + - Resetting this property disables the upconverter frequency offset. + ''' + upconverter_frequency_offset_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.UpconverterFrequencyOffsetMode, 1150248) + '''Type: enums.UpconverterFrequencyOffsetMode + + Specifies whether to allow NI-RFSG to select the upconverter frequency offset. You can either set an offset yourself or let NI-RFSG select one for you. + + Placing the upconverter center frequency outside the bandwidth of your waveform can help avoid issues such as LO leakage. + + To set an offset yourself, set this property to UpconverterFrequencyOffsetMode.AUTO or UpconverterFrequencyOffsetMode.USER_DEFINED, and set either the upconverter_center_frequency or the upconverter_frequency_offset property. + + To allow NI-RFSG to automatically select the upconverter frequency offset, set this property to UpconverterFrequencyOffsetMode.AUTO or UpconverterFrequencyOffsetMode.ENABLE and set the signal_bandwidth to describe the bandwidth of your waveform. The signal bandwidth must be no greater than half the value of the device_instantaneous_bandwidth property, minus a device-specific guard band. Do not set the upconverter_center_frequency or upconverter_frequency_offset properties. If all conditions are met, NI-RFSG places the upconverter center frequency outside the signal bandwidth. Set this property to UpconverterFrequencyOffsetMode.ENABLE if you want to receive an error any time NI-RFSG is unable to apply automatic offset. + + When you set an offset yourself or do not use an offset, the reference frequency for gain is near the upconverter center frequency, and upconverter_frequency_offset_mode returns UpconverterFrequencyOffsetMode.USER_DEFINED. When NI-RFSG automatically sets an offset, the reference frequency for gain is near the frequency and upconverter_frequency_offset_mode returns UpconverterFrequencyOffsetMode.ENABLE. + + **Default Value:** UpconverterFrequencyOffsetMode.AUTO + + **Supported Devices**: PXIe-5830/5831/5832/5841/5842 + + **Related Topics** + + `PXIe-5830 Automatic Frequency Offset `_ + + `PXIe-5831/5832 Automatic Frequency Offset `_ + + `PXIe-5841 Automatic Frequency Offset `_ + + **Defined Values**: + + +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +=============================================+========================================================================================================================================================================================================================================================================+ + | UpconverterFrequencyOffsetMode.ENABLE | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. NI-RFSG returns an error if the signal_bandwidth property has not been set, or if the signal bandwidth is too large. | + +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | UpconverterFrequencyOffsetMode.AUTO | NI-RFSG places the upconverter center frequency outside of the signal bandwidth if the signal_bandwidth property has been set and can be avoided. | + +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | UpconverterFrequencyOffsetMode.USER_DEFINED | NI-RFSG uses the offset that you specified with the upconverter_frequency_offset or upconverter_center_frequency properties. | + +---------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: Below 120 MHz, the PXIe-5841 does not use an LO and UpconverterFrequencyOffsetMode.ENABLE is unavailable. Refer to the *PXIe-5841 Automatic Frequency Offset* topic for more information about using an automatic offset with an external LO. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + upconverter_gain = _attributes.AttributeViReal64(1154097) + '''Type: float + + Specifies the gain the upconverter applies to the signal. + + **Units**: dB + + **Supported Devices:** PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: This property is read/write on the PXI-5610 and PXIe-5611 and is read-only on the PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860. + ''' + waveform_iq_rate = _attributes.AttributeViReal64(1150263) + '''Type: float + + Specifies the I/Q rate of the waveform. To set this property, the NI-RFSG device must be in the Configuration state. + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_—Refer to this topic for more information about using this property to associate an I/Q rate with a waveform. + + `Digital Upconverter `_ + + Tip: + This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_iq_rate` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_iq_rate` + ''' + waveform_papr = _attributes.AttributeViReal64(1150266) + '''Type: float + + Specifies the peak-to-average power ratio (PAPR). + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_papr` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_papr` + ''' + waveform_rf_blanking = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RFBlanking, 1150278) + '''Type: enums.RFBlanking + + **Defined Values**: + + Name (Value): Description + + RFBlanking.DISABLE (0): RF blanking is disabled. + + RFBlanking.ENABLE (1): RF blanking is enabled. + + **Default Value:** RFBlanking.DISABLE + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Marker Events `_ + + Enables or disables RF blanking. + + +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ + | rf_blanking_source | waveform_rf_blanking | Behaviour | + +===================================================================================+======================+===========================================================================================================+ + | "" (empty string) | RFBlanking.DISABLE | No blanking performed. | + +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ + | "" (empty string) | RFBlanking.ENABLE | Blanking performed based on burst start and stop values and blanking source set to private marker. | + +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ + | NIRFSG_VAL_MARKER0, NIRFSG_VAL_MARKER1, NIRFSG_VAL_MARKER2, or NIRFSG_VAL_MARKER3 | RFBlanking.DISABLE | Blanking performed based on the marker locations for the marker that the user set in the blanking source. | + +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ + | NIRFSG_VAL_MARKER0, NIRFSG_VAL_MARKER1, NIRFSG_VAL_MARKER2, or NIRFSG_VAL_MARKER3 | RFBlanking.ENABLE | Error is shown. | + +-----------------------------------------------------------------------------------+----------------------+-----------------------------------------------------------------------------------------------------------+ + + Note: For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any Reset or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call reset_with_options or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_rf_blanking` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_rf_blanking` + ''' + waveform_runtime_scaling = _attributes.AttributeViReal64(1150265) + '''Type: float + + Specifies the waveform runtime scaling. The waveform runtime scaling is applied to the waveform data before any other signal processing. + + **Units**: dB + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860, PXIe-5841 with PXIe-5655 + + Tip: + This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_runtime_scaling` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_runtime_scaling` + ''' + waveform_signal_bandwidth = _attributes.AttributeViReal64(1150264) + '''Type: float + + Specifies the bandwidth of the arbitrary signal. This value must be less than or equal to (0.8× iq_rate). + + **Units**: hertz (Hz) + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_signal_bandwidth` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_signal_bandwidth` + ''' + waveform_waveform_size = _attributes.AttributeViInt32(1150297) + '''Type: int + + Specifies the size of the waveform specified by an active channel. + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5841 with PXIe-5655/5842/5860 + + Tip: + This property can be set/get on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset. + + Example: :py:attr:`my_session.waveforms[ ... ].waveform_waveform_size` + + To set/get on all waveforms, you can call the property directly on the :py:class:`nirfsg.Session`. + + Example: :py:attr:`my_session.waveform_waveform_size` + ''' + write_waveform_burst_detection = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WriteWaveformBurstDetection, 1150273) + '''Type: enums.WriteWaveformBurstDetection + + Enables the detection of burst start and burst stop locations in the waveform. You can read the detected burst start and burst stop locations using get_waveform_burst_start_locations and get_waveform_burst_stop_locations methods respectively. + + **Default Value:** WriteWaveformBurstDetection.DISABLE + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +-------------------------------------+------------------------------+ + | Value | Description | + +=====================================+==============================+ + | WriteWaveformBurstDetection.ENABLE | Burst detection is enabled. | + +-------------------------------------+------------------------------+ + | WriteWaveformBurstDetection.DISABLE | Burst detection is disabled. | + +-------------------------------------+------------------------------+ + + Note: - When you download a waveform using ReadAndDownloadWaveformFromFileTdms method and if waveform_rf_blanking property is enabled, you must set the write_waveform_burst_detection property to WriteWaveformBurstDetection.DISABLE. + + - For PXIe-5830/5831/5832: The RF Blanking reserves a PXI trigger line. If you are calling any Reset or `niRFSA_reset `_ on the same device, NI recommends calling it before committing blanking properties. Alternatively, you can call reset_with_options or `niRFSA_ResetWithOptions `_. Select **Routes** in the **steps to omit** parameter. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + write_waveform_burst_detection_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WriteWaveformBurstDetectionMode, 1150274) + '''Type: enums.WriteWaveformBurstDetectionMode + + Specifies the algorithm that NI-RFSG uses to detect the burst start and burst stop locations in the waveform when burst detection is enabled using the write_waveform_burst_detection property. When you set write_waveform_burst_detection_mode to WriteWaveformBurstDetectionMode.AUTO, NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. To fine-tune the burst detection process parameters yourself, you can set this property to WriteWaveformBurstDetectionMode.MANUAL and specify the burst detection parameters using the write waveform burst detection minimum quiet time, write_waveform_burst_detection_power_threshold, write waveform burst detection minimum burst time properties. + + **Default Value:** WriteWaveformBurstDetectionMode.AUTO + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +----------------------------------------+---------------------------------------------------------------------------------------------------+ + | Value | Description | + +========================================+===================================================================================================+ + | WriteWaveformBurstDetectionMode.AUTO | NI-RFSG automatically detects the burst start and burst stop locations by analyzing the waveform. | + +----------------------------------------+---------------------------------------------------------------------------------------------------+ + | WriteWaveformBurstDetectionMode.MANUAL | User sets the burst detection parameters. | + +----------------------------------------+---------------------------------------------------------------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + write_waveform_burst_detection_power_threshold = _attributes.AttributeViReal64(1150276) + '''Type: float + + Specifies the relative power level at which burst start or stop locations are detected. The threshold is relative to the peak power in the waveform. NI-RFSG detects burst start (or burst stop) locations when the signal exceeds (or falls below) the level specified by this property. This property is ignored when you disable the write_waveform_burst_detection property or when you set the write_waveform_burst_detection_mode property to NIRFSG_VAL_AUTO. + + **Units:** dB + + **Default Value:** 0 + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + write_waveform_normalization = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WriteWaveformNormalization, 1150293) + '''Type: enums.WriteWaveformNormalization + + Specifies whether to perform the normalization on a waveform. + + **Default Value:** WriteWaveformNormalization.DISABLE + + **Supported Devices:** PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Defined Values**: + + +------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ + | Value | Description | + +====================================+=========================================================================================================================+ + | WriteWaveformNormalization.ENABLE | Enables normalization on a waveform to transform the waveform data so that its maximum is 1.00 and its minimum is -1.00 | + +------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ + | WriteWaveformNormalization.DISABLE | Disables normalization on the waveform. | + +------------------------------------+-------------------------------------------------------------------------------------------------------------------------+ + + Note: You can not set write_waveform_normalization and power_level_type properties at the same time. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + yig_main_coil_drive = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.YigMainCoilDrive, 1150118) + '''Type: enums.YigMainCoilDrive + + Adjusts the dynamics of the current driving the YIG main coil. + + **Default Value:** YigMainCoilDrive.MANUAL + + **Supported Devices:** PXIe-5653 + + **Defined Values**: + + +-----------------------+--------------------------------------------------------+ + | Value | Description | + +=======================+========================================================+ + | NIRFSG_VAL_SLOW | Adjusts the YIG main coil for an underdamped response. | + +-----------------------+--------------------------------------------------------+ + | YigMainCoilDrive.FAST | Adjusts the YIG main coil for an overdamped response. | + +-----------------------+--------------------------------------------------------+ + + Note: Setting this property to YigMainCoilDrive.FAST on the PXIe-5653 allows the frequency to settle significantly faster for some frequency transitions at the expense of increased phase noise. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.markers = _RepeatedCapabilities(self, 'marker', repeated_capability_list) + self.script_triggers = _RepeatedCapabilities(self, 'scripttrigger', repeated_capability_list) + self.waveforms = _RepeatedCapabilities(self, 'waveform::', repeated_capability_list) + self.ports = _RepeatedCapabilities(self, '', repeated_capability_list) + self.los = _RepeatedCapabilities(self, 'LO', repeated_capability_list) + self.device_temperatures = _RepeatedCapabilities(self, '', repeated_capability_list) + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nirfsg', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def configure_digital_edge_script_trigger(self, source, edge): + r'''configure_digital_edge_script_trigger + + Configures the specified Script Trigger for digital edge triggering. + + The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Edge Trigger `_ + + Tip: + This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_edge_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.configure_digital_edge_script_trigger` + + Args: + source (str): Specifies the source terminal for the digital edge Script Trigger. NI-RFSG sets the digital_edge_script_trigger_source property to this value. + + edge (enums.ScriptTriggerDigitalEdgeEdge): Specifies the active edge for the digital edge Script Trigger. NI-RFSG sets the digital_edge_script_trigger_edge property to this value. + + ''' + if type(edge) is not enums.ScriptTriggerDigitalEdgeEdge: + raise TypeError('Parameter edge must be of type ' + str(enums.ScriptTriggerDigitalEdgeEdge)) + self._interpreter.configure_digital_edge_script_trigger(self._repeated_capability, source, edge) + + @ivi_synchronized + def configure_digital_level_script_trigger(self, source, level): + r'''configure_digital_level_script_trigger + + Configures a specified Script Trigger for digital level triggering. + + The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Digital Level Trigger `_ + + Tip: + This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].configure_digital_level_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.configure_digital_level_script_trigger` + + Args: + source (str): Specifies the trigger source terminal for the digital level Script Trigger. NI-RFSG sets the digital_level_script_trigger_source property to this value. + + level (int): Specifies the active level for the digital level Script Trigger. NI-RFSG sets the digital_level_script_trigger_active_level property to this value. + + ''' + self._interpreter.configure_digital_level_script_trigger(self._repeated_capability, source, level) + + @ivi_synchronized + def configure_software_script_trigger(self): + r'''configure_software_script_trigger + + Configures the Script Trigger for software triggering. + + Refer to the send_software_edge_trigger method for more information about using the software Script Trigger. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + `Trigger Types `_ + + Tip: + This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].configure_software_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.configure_software_script_trigger` + ''' + self._interpreter.configure_software_script_trigger(self._repeated_capability) + + @ivi_synchronized + def disable_script_trigger(self): + r'''disable_script_trigger + + Configures the device not to wait for the specified Script Trigger. + + Call this method only if you previously configured a Script Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Script Trigger `_ + + Tip: + This method can be called on specific script_triggers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container script_triggers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.script_triggers[ ... ].disable_script_trigger` + + To call the method on all script_triggers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.disable_script_trigger` + ''' + self._interpreter.disable_script_trigger(self._repeated_capability) + + def error_message(self, error_code): + r'''error_message + + Converts an error code returned by an NI-RFSG method into a user-readable string. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + error_code (int): Pass the status parameter that is returned from any NI-RFSG method. + + **Default Value** : 0 (VI_SUCCESS) + + + Returns: + error_message (str): Returns the user-readable message string that corresponds to the status code you specify. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. + + Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute (int): Pass the ID of a property. + + + Returns: + value (bool): Returns the current value of the property. Pass the address of a ViBoolean variable. + + ''' + value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. + + Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute (int): Pass the ID of a property. + + + Returns: + value (int): Returns the current value of the property. Pass the address of a ViInt32 variable. + + ''' + value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_int64(self, attribute): + r'''_get_attribute_vi_int64 + + Queries the value of a ViInt64 property. + + You can use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int64` + + Args: + attribute (int): Pass the ID of a property. + + + Returns: + value (int): Returns the current value of the property. Pass the address of a ViInt64 variable. + + ''' + value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute): + r'''_get_attribute_vi_real64 + + Queries the value of a ViReal64 property. + + Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute (int): Pass the ID of a property. + + + Returns: + value (float): Returns the current value of the property. Pass the address of a ViReal64 variable. + + ''' + value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_session(self, attribute): + r'''_get_attribute_vi_session + + Queries the value of a ViSession property. + + Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_session` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_session` + + Args: + attribute (int): Pass the ID of a property. + + + Returns: + value (int): Returns the current value of the property. Pass the address of a ViSession variable. + + ''' + value = self._interpreter.get_attribute_vi_session(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute): + r'''_get_attribute_vi_string + + Queries the value of a ViString property. + + Use this low-level method to get the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid. + + You must provide a ViString (ViChar array) to serve as a buffer for the value. Pass the number of bytes in the buffer as the Buffer Size parameter. If the current value of the property, including the terminating NULL byte, is larger than the size you indicate in the buffer size parameter, the method copies buffer size-1 bytes into the buffer, places an ASCII NULL byte at the end of the buffer, and returns the buffer size you must pass to get the entire value. For example, if the value is "123456" and the buffer size is 4, the method places "123" into the buffer and returns 7. + + To call this method to get only the required buffer size, pass 0 for the buffer size and VI_NULL for the property value buffer. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute (int): Pass the ID of a property. + + + Returns: + value (str): The buffer in which the method returns the current value of the property. The buffer must be of type ViChar and have at least as many bytes as indicated in the **bufferSize** parameter. + + If you specify 0 for the **bufferSize** parameter, you can pass VI_NULL for this parameter. + + ''' + value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute) + return value + + @ivi_synchronized + def get_waveform_burst_start_locations(self): + r'''get_waveform_burst_start_locations + + Returns the burst start locations of the waveform stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Tip: + This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_start_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.get_waveform_burst_start_locations` + + Returns: + locations (list of float): Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the CHANNEL_NAME parameter. This value is expressed in samples. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + locations = self._interpreter.get_waveform_burst_start_locations(self._repeated_capability) + return locations + + @ivi_synchronized + def get_waveform_burst_stop_locations(self): + r'''get_waveform_burst_stop_locations + + Returns the burst stop locations of the waveform stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Tip: + This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].get_waveform_burst_stop_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.get_waveform_burst_stop_locations` + + Returns: + locations (list of float): Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the CHANNEL_NAME parameter. This value is expressed in samples. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + locations = self._interpreter.get_waveform_burst_stop_locations(self._repeated_capability) + return locations + + @ivi_synchronized + def get_waveform_marker_event_locations(self): + r'''get_waveform_marker_event_locations + + Returns the marker locations associated with the waveform and the marker stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Tip: + This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.markers[ ... ].get_waveform_marker_event_locations` + + To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.get_waveform_marker_event_locations` + + Returns: + locations (list of float): Returns the marker locations stored in the NI-RFSG database for the channel you specified in the CHANNEL_NAME parameter. This value is expressed in samples. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + locations = self._interpreter.get_waveform_marker_event_locations(self._repeated_capability) + return locations + + @ivi_synchronized + def load_configurations_from_file(self, file_path): + r'''load_configurations_from_file + + Loads the configurations from the specified file to the NI-RFSG driver session. + + The VI does an implicit reset before loading the configurations from the file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].load_configurations_from_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.load_configurations_from_file` + + Args: + file_path (str): Specifies the absolute path of the file from which the NI-RFSG loads the configurations. + + ''' + self._interpreter.load_configurations_from_file(self._repeated_capability, file_path) + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-RFSG locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, nirfsg.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def save_configurations_to_file(self, file_path): + r'''save_configurations_to_file + + Saves the configurations of the session to the specified file. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].save_configurations_to_file` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.save_configurations_to_file` + + Args: + file_path (str): Specifies the absolute path of the file to which the NI-RFSG saves the configurations. + + ''' + self._interpreter.save_configurations_to_file(self._repeated_capability, file_path) + + @ivi_synchronized + def send_software_edge_trigger(self, trigger, trigger_identifier): + r'''send_software_edge_trigger + + Forces a trigger to occur. + + The specified trigger generates regardless of whether the trigger has been configured as a software trigger. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + Args: + trigger (enums.SoftwareTriggerType): Specifies the trigger to send. + + **Default Value:** SoftwareTriggerType.START + + **Defined Values:** + + +----------------------------+---------+-------------------------------+ + | Name | Value | Description | + +============================+=========+===============================+ + | SoftwareTriggerType.START | 0 (0x0) | Specifies the Start Trigger. | + +----------------------------+---------+-------------------------------+ + | SoftwareTriggerType.SCRIPT | 1 (0x1) | Specifies the Script Trigger. | + +----------------------------+---------+-------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + trigger_identifier (enums.TriggerIdentifier): Specifies the Script Trigger to configure. This parameter is valid only when you set the TRIGGER parameter to NIRFSG_VAL_START_TRIGGER. Otherwise, set the TRIGGER_IDENTIFIER parameter to "" (empty string). + + **Default Value:** "" (empty string) + + **Possible Values:** + + +----------------+-----------------------------+ + | Possible Value | Description | + +================+=============================+ + | scriptTrigger0 | Specifies Script Trigger 0. | + +----------------+-----------------------------+ + | scriptTrigger1 | Specifies Script Trigger 1. | + +----------------+-----------------------------+ + | scriptTrigger2 | Specifies Script Trigger 2. | + +----------------+-----------------------------+ + | scriptTrigger3 | Specifies Script Trigger 3. | + +----------------+-----------------------------+ + | | None (no signal to export) | + +----------------+-----------------------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(trigger) is not enums.SoftwareTriggerType: + raise TypeError('Parameter trigger must be of type ' + str(enums.SoftwareTriggerType)) + if type(trigger_identifier) is not enums.TriggerIdentifier: + raise TypeError('Parameter trigger_identifier must be of type ' + str(enums.TriggerIdentifier)) + self._interpreter.send_software_edge_trigger(trigger, trigger_identifier) + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute, value): + r'''_set_attribute_vi_boolean + + Sets the value of a ViBoolean property. + + Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. + + NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. + + Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute (int): Pass the ID of a property. + + value (bool): Pass the value to which you want to set the property. + + Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute, value): + r'''_set_attribute_vi_int32 + + Sets the value of a ViInt32 property. + + Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. + + NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. + + Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute (int): Pass the ID of a property. + + value (int): Specifies the value to which you want to set the property. + + Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_int64(self, attribute, value): + r'''_set_attribute_vi_int64 + + Sets the value of a ViInt64 property. + + Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. + + NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. + + Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int64` + + Args: + attribute (int): Pass the ID of a property. + + value (int): Pass the value to which you want to set the property. + +
+ Some values may not be valid. The allowed values depend on the current settings of the instrument session. +
+ + ''' + self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute, value): + r'''_set_attribute_vi_real64 + + Sets the value of a ViReal64 property. + + Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. + + NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. + + Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute (int): Pass the ID of a property. + + value (float): Pass the value to which you want to set the property. + + Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute, value) + + @ivi_synchronized + def _set_attribute_vi_session(self, attribute): + r'''_set_attribute_vi_session + + Sets the value of a ViSession property. + + Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. + + NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. + + Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_session` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_session` + + Args: + attribute (int): Pass the ID of a property. + + ''' + self._interpreter.set_attribute_vi_session(self._repeated_capability, attribute) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute, value): + r'''_set_attribute_vi_string + + Sets the value of a ViString property. + + Use this low-level method to set the values of inherent IVI properties, class-defined properties, and instrument-specific properties. If the property represents an instrument state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the particular property. + - State caching is enabled, and the currently cached value is invalid or is different than the value you specify. + + NI-RFSG contains high-level methods that set most of the instrument properties. Use the high-level driver methods as much as possible, as they handle order dependencies and multithread locking. The high-level methods also perform status checking only after setting all of the properties. In contrast, when you set multiple properties using the SetAttribute methods, the methods check the instrument status after each call. + + Also, when state caching is enabled, the high-level methods that configure multiple properties perform instrument I/O only for the properties whose value you change. Thus, you can safely call the high-level methods without the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute (int): Pass the ID of a property. + + value (str): Pass the value to which you want to set the property. + + Note: Some values may not be valid. The allowed values depend on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute, value) + + @ivi_synchronized + def set_waveform_burst_start_locations(self, locations): + r'''set_waveform_burst_start_locations + + Configures the start location of the burst in samples where the burst refers to the active portion of a waveform. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Tip: + This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_start_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.set_waveform_burst_start_locations` + + Args: + locations (list of float): Returns the burst start locations stored in the NI-RFSG session for the waveform that you specified in the CHANNEL_NAME parameter. This value is expressed in samples. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + self._interpreter.set_waveform_burst_start_locations(self._repeated_capability, locations) + + @ivi_synchronized + def set_waveform_burst_stop_locations(self, locations): + r'''set_waveform_burst_stop_locations + + Configures the stop location of the burst in samples where the burst refers to the active portion of a waveform. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Tip: + This method can be called on specific waveforms within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container waveforms to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.waveforms[ ... ].set_waveform_burst_stop_locations` + + To call the method on all waveforms, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.set_waveform_burst_stop_locations` + + Args: + locations (list of float): Specifies the burst stop locations, in samples, to store in the NI-RFSG session. + + ''' + self._interpreter.set_waveform_burst_stop_locations(self._repeated_capability, locations) + + @ivi_synchronized + def set_waveform_marker_event_locations(self, locations): + r'''set_waveform_marker_event_locations + + Configures the marker locations associated with waveform and marker in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Tip: + This method can be called on specific markers within your :py:class:`nirfsg.Session` instance. + Use Python index notation on the repeated capabilities container markers to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.markers[ ... ].set_waveform_marker_event_locations` + + To call the method on all markers, you can call it directly on the :py:class:`nirfsg.Session`. + + Example: :py:meth:`my_session.set_waveform_marker_event_locations` + + Args: + locations (list of float): Specifies the marker location, in samples, to store in the NI-RFSG database. + + ''' + self._interpreter.set_waveform_marker_event_locations(self._repeated_capability, locations) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + +class Session(_SessionBase): + '''An NI-RFSG session to the NI-RFSG driver''' + + def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): + r'''An NI-RFSG session to the NI-RFSG driver + + Opens a session to the device you specify as the RESOURCE_NAME and returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. + + This method also configures the device through the OPTION_STRING input. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Simulating an NI RF Signal Generator `_ + + Note: For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending /*ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + resource_name (str): Specifies the resource name of the device to initialize. + + For NI-DAQmx devices, the syntax is the device name specified in MAX. Typical default names for NI-DAQmx devices in MAX are Dev2 or PXISlot2. You can rename an NI-DAQmx device in MAX. + + You can also specify the name of an IVI logical name configured with the IVI Configuration utility. Refer to the *IVI* topic of the *Measurement & Automation Explorer Help* for more information. + + Note: NI-RFSG device names are not case-sensitive. However, all IVI names, such as logical names, are case-sensitive. If you use an IVI logical name, make sure the name is identical to the name shown in the IVI Configuration Utility. + + id_query (bool): Specifies whether you want NI-RFSG to perform an ID query. + + **Defined Values** : + + +-----------+--------------------------+ + | Value | Description | + +===========+==========================+ + | True (1) | Perform ID query. | + +-----------+--------------------------+ + | False (0) | Do not perform ID query. | + +-----------+--------------------------+ + + reset_device (bool): Specifies whether you want to reset the NI-RFSG device during the initialization procedure. + + **Defined Values** : + + +-----------+----------------------+ + | Value | Description | + +===========+======================+ + | True (1) | Reset device. | + +-----------+----------------------+ + | False (0) | Do not reset device. | + +-----------+----------------------+ + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + grpc_options (nirfsg.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + new_vi (int): Returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. + + ''' + if grpc_options: + import nirfsg._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_options fails, the error handler can reference it. + # And then here, once _init_with_options succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-RFSG', grpc_options.grpc_channel, connected) + + # NI-TClk does not work over NI gRPC Device Server + if not grpc_options: + self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("id_query=" + pp.pformat(id_query)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Initiates signal generation, causing the NI-RFSG device to leave the Configuration state and enter the Generation state. + + If the settings have not been committed to the device before you call this method, they are committed by this method. The operation returns when the RF output signal settles. To return to the Configuration state, call the abort method. + + **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Generation(self) + + def close(self): + '''close + + Aborts any signal generation in progress and destroys the instrument driver session. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + `NI-RFSG Programming State Model `_ + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Stops signal generation. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Programming State Model `_ + ''' + self._interpreter.abort() + + @ivi_synchronized + def allocate_arb_waveform(self, waveform_name, size_in_samples): + r'''allocate_arb_waveform + + Allocates onboard memory space for the arbitrary waveform. + + Use this method to specify the total size of a waveform before writing the data. Use this method only if you are calling the WriteArbWaveform method multiple times to write a large waveform in smaller blocks. + + The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming Waveform Data `_ + + Args: + waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + size_in_samples (int): Specifies the number of samples to reserve in the onboard memory for the specified waveform. Each I/Q pair is considered one sample. + + ''' + self._interpreter.allocate_arb_waveform(waveform_name, size_in_samples) + + @ivi_synchronized + def change_external_calibration_password(self, old_password, new_password): + r'''change_external_calibration_password + + Changes the external calibration password of the device. + + **Supported Devices:** PXIe-5611, PXIe-5653/5654, PXIe-5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + old_password (str): Specifies the old (current) external calibration password. This password is case sensitive. + + new_password (str): Specifies the new (desired) external calibration password. + + ''' + self._interpreter.change_external_calibration_password(old_password, new_password) + + @ivi_synchronized + def check_generation_status(self): + r'''check_generation_status + + Checks the status of the generation. + + Call this method to check for any errors that might occur during the signal generation or to check whether the device has finished generating. + + **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow ` + + Returns: + is_done (bool): Returns information about the completion of signal generation. + + **Defined Values** : + + +-------+---------------------------------+ + | Value | Description | + +=======+=================================+ + | True | Signal generation is complete. | + +-------+---------------------------------+ + | False | Signal generation is occurring. | + +-------+---------------------------------+ + + ''' + is_done = self._interpreter.check_generation_status() + return is_done + + @ivi_synchronized + def check_if_script_exists(self, script_name): + r'''check_if_script_exists + + Returns whether the script that you specify as SCRIPT_NAME exists. + + **Supported Devices** : PXIe-5673/5673E. PXIe-5830/5831/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + script_name (str): Specifies the name of the script. This string is case-insensitive. + + + Returns: + script_exists (bool): Returns True if the script exists. + + **Defined Values** : + + +-------+----------------------------+ + | Value | Description | + +=======+============================+ + | True | The script exists. | + +-------+----------------------------+ + | False | The script does not exist. | + +-------+----------------------------+ + + ''' + script_exists = self._interpreter.check_if_script_exists(script_name) + return script_exists + + @ivi_synchronized + def check_if_waveform_exists(self, waveform_name): + r'''check_if_waveform_exists + + Returns whether the waveform that you specify as WAVEFORM_NAME exists. + + **Supported Devices** : PXIe-5673/5673E, PXIe-5830/5831/5840/5841/5842/5860 + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + waveform_name (str): Specifies the name used to store the waveform. This string is case-insensitive. + + + Returns: + waveform_exists (bool): Returns True if the waveform exists. + + **Defined Values** : + + +-------+------------------------------+ + | Value | Description | + +=======+==============================+ + | True | The waveform exists. | + +-------+------------------------------+ + | False | The waveform does not exist. | + +-------+------------------------------+ + + ''' + waveform_exists = self._interpreter.check_if_waveform_exists(waveform_name) + return waveform_exists + + @ivi_synchronized + def clear_all_arb_waveforms(self): + r'''clear_all_arb_waveforms + + Deletes all currently defined waveforms and scripts. + + The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + ''' + self._interpreter.clear_all_arb_waveforms() + + @ivi_synchronized + def clear_arb_waveform(self, waveform_name): + r'''clear_arb_waveform + + Deletes a specified waveform from the pool of currently defined waveforms. + + The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + waveform_name (str): Name of the stored waveform to delete. + + ''' + self._interpreter.clear_arb_waveform(waveform_name) + + @ivi_synchronized + def clear_self_calibrate_range(self): + r'''clear_self_calibrate_range + + Clears the data obtained from the self_calibrate_range method. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + ''' + self._interpreter.clear_self_calibrate_range() + + @ivi_synchronized + def commit(self): + r'''commit + + Programs the device with the correct settings. + + Calling this method moves the NI-RFSG device from the Configuration state to the Committed state. After this method executes, a change to any property reverts the NI-RFSG device to the Configuration state. + + **Supported devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Programming State Model `_ + ''' + self._interpreter.commit() + + @ivi_synchronized + def configure_deembedding_table_interpolation_linear(self, port, table_name, format): + r'''configure_deembedding_table_interpolation_linear + + Selects the linear interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a linear interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + format (enums.Format): Specifies the format of parameters to interpolate. **Defined Values** : + + +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +===============================+================+=========================================================================================================================================+ + | Format.REAL_AND_IMAGINARY | 26000 (0x6590) | Results in a linear interpolation of the real portion of the complex number and a separate linear interpolation of the complex portion. | + +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Format.MAGNITUDE_AND_PHASE | 26001 (0x6591) | Results in a linear interpolation of the magnitude and a separate linear interpolation of the phase. | + +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + | Format.MAGNITUDE_DB_AND_PHASE | 26002 (0x6592) | Results in a linear interpolation of the magnitude, in decibels, and a separate linear interpolation of the phase. | + +-------------------------------+----------------+-----------------------------------------------------------------------------------------------------------------------------------------+ + + ''' + if type(format) is not enums.Format: + raise TypeError('Parameter format must be of type ' + str(enums.Format)) + self._interpreter.configure_deembedding_table_interpolation_linear(port, table_name, format) + + @ivi_synchronized + def configure_deembedding_table_interpolation_nearest(self, port, table_name): + r'''configure_deembedding_table_interpolation_nearest + + Selects the nearest interpolation method. + + NI-RFSG uses the parameters of the table nearest to the carrier frequency for de-embedding. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + ''' + self._interpreter.configure_deembedding_table_interpolation_nearest(port, table_name) + + @ivi_synchronized + def configure_deembedding_table_interpolation_spline(self, port, table_name): + r'''configure_deembedding_table_interpolation_spline + + Selects the spline interpolation method. + + If the carrier frequency does not match a row in the de-embedding table, NI-RFSG performs a spline interpolation based on the entries in the de-embedding table to determine the parameters to use for de-embedding. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + ''' + self._interpreter.configure_deembedding_table_interpolation_spline(port, table_name) + + @ivi_synchronized + def configure_digital_edge_start_trigger(self, source, edge): + r'''configure_digital_edge_start_trigger + + Configures the Start Trigger for digital edge triggering. + + The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Digital Edge Trigger `_ + + Note: For the PXIe-5654/5654 with PXIe-5696, the Start Trigger is valid only with a timer-based list when RF list mode is enabled. + + Args: + source (str): Specifies the source terminal for the digital edge trigger. NI-RFSG sets the digital_edge_start_trigger_source property to this value. + + edge (enums.StartTriggerDigitalEdgeEdge): Specifies the active edge for the Start Trigger. NI-RFSG sets the digital_edge_start_trigger_edge property to this value. + + ''' + if type(edge) is not enums.StartTriggerDigitalEdgeEdge: + raise TypeError('Parameter edge must be of type ' + str(enums.StartTriggerDigitalEdgeEdge)) + self._interpreter.configure_digital_edge_start_trigger(source, edge) + + @ivi_synchronized + def configure_rf(self, frequency, power_level): + r'''configure_rf + + Configures the frequency and power level of the RF output signal. + + The PXI-5670/5671, PXIe-5672, and PXIe-5860 device must be in the Configuration state before calling this method. The PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXIe-5673/5673E, and PXIe-5830/5831/5832/5840/5841/5842 device can be in the Configuration or Generation state when you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + Args: + frequency (float): Specifies the frequency of the generated RF signal, in hertz. For arbitrary waveform generation, this parameter specifies the center frequency of the signal. + + **Units** : hertz (Hz) + + power_level (float): Specifies either the average power level or peak power level of the generated RF signal, depending on the power_level_type property. + + **Units** : dBm + + ''' + self._interpreter.configure_rf(frequency, power_level) + + @ivi_synchronized + def configure_ref_clock(self, ref_clock_source, ref_clock_rate): + r'''configure_ref_clock + + Configures the NI-RFSG device Reference Clock. + + The Reference Clock ensures that the NI-RFSG devices are operating from a common timebase. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `PXIe-5672 Timing Configurations `_ + + `PXIe-5673 Timing Configurations `_ + + `PXIe-5673E Timing Configurations `_ + + `PXIe-5830 Timing Configurations `_ + + `PXIe-5831 Timing Configurations `_ + + Args: + ref_clock_source (str): Specifies the source of Reference Clock signal. + + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Possible Values | Description | + +=================+=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+ + | "OnboardClock" | Uses the onboard Reference Clock as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the PXIe-5655 onboard clock. Connect the REF OUT connector on the PXIe-5655 to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the PXIe-5655 onboard clock. Cables between modules are required as shown in the Getting Started Guide for the instrument. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn" | Uses the clock signal present at the front panel REF IN connector as the clock source. **PXIe-5830/5831/5832** :For the PXIe-5830, connect the PXIe-5820 REF IN connector to the PXIe-3621 REF OUT connector. For the PXIe-5831, connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. For the PXIe-5832, connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. For the PXIe-5830, lock the external signal to the PXIe-3621 REF IN connector. For the PXIe-5831, lock the external signal to the PXIe-3622 REF IN connector. For the PXIe-5832, lock the external signal to the PXIe-3623 REF IN connector. **PXIe-5831 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3622 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3622 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5832 with PXIe-5653** :Connect the PXIe-5820 REF IN connector to the PXIe-3623 REF OUT connector. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXIe-3623 REF IN connector. Lock the external signal to the PXIe-5653 REF IN connector. **PXIe-5841 with PXIe-5655** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Connect the PXIe-5655 REF OUT connector to the PXIe-5841 REF IN connector. **PXIe-5842** :Lock to the signal at the REF IN connector on the associated PXIe-5655. Cables between modules are required as shown in the Getting Started Guide for the instrument. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_CLK" | Uses the PXI_CLK signal, which is present on the PXI backplane, as the clock source. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "ClkIn" | Uses the clock signal present at the front panel CLK IN connector as the clock source. This value is not valid for the PXIe-5644/5645/5646 or PXIe-5820/5830/5831/5831 with PXIe-5653/5832/5832 with PXIe-5653/5840/5841/5841 with PXIe-5655/5842. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "RefIn2" | \- | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | "PXI_ClkMaster" | This value is valid on only the PXIe-5831 with PXIe-5653 and PXIe-5832 with PXIe-5653. **PXIe-5831 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3622 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. **PXIe-5832 with PXIe-5653** :NI-RFSG configures the PXIe-5653 to export the Reference clock and configures the PXIe-5820 and PXIe-3623 to use PXI_Clk as the Reference Clock source. Connect the PXIe-5653 REF OUT (10 MHz) connector to the PXI chassis REF IN connector. | + +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + ref_clock_rate (float): Specifies the Reference Clock rate, in hertz (Hz), of the signal present at the REF IN or CLK IN connector. The default value is NIRFSG_VAL_AUTO, which allows NI-RFSG to use the default Reference Clock rate for the device or automatically detect the Reference Clock rate, if supported. This parameter is only valid when the ref_clock_source parameter is set to ClkIn, RefIn or RefIn2. Refer to the ref_clock_rate property for possible values. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + self._interpreter.configure_ref_clock(ref_clock_source, ref_clock_rate) + + @ivi_synchronized + def configure_software_start_trigger(self): + r'''configure_software_start_trigger + + Configures the Start Trigger for software triggering. + + Refer to the send_software_edge_trigger method for more information about using a software trigger. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + + `Trigger Types `_ + ''' + self._interpreter.configure_software_start_trigger() + + @ivi_synchronized + def _create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation): + r'''_create_deembedding_sparameter_table_array + + Creates an s-parameter de-embedding table for the port from the input data. + + If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview `_ + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. + + sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. + + **Defined Values** : + + +-----------------------------------------+----------------+-----------------------------------------------------+ + | Name | Value | Description | + +=========================================+================+=====================================================+ + | SparameterOrientation.PORT1_TOWARDS_DUT | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+----------------+-----------------------------------------------------+ + | SparameterOrientation.PORT2_TOWARDS_DUT | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+----------------+-----------------------------------------------------+ + + ''' + import numpy + + if type(sparameter_orientation) is not enums.SparameterOrientation: + raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) + if type(frequencies) is not numpy.ndarray: + raise TypeError('frequencies must be {0}, is {1}'.format(numpy.ndarray, type(frequencies))) + if numpy.isfortran(frequencies) is True: + raise TypeError('frequencies must be in C-order') + if frequencies.dtype is not numpy.dtype('float64'): + raise TypeError('frequencies must be numpy.ndarray of dtype=float64, is ' + str(frequencies.dtype)) + if frequencies.ndim != 1: + raise TypeError('frequencies must be numpy.ndarray of dimension=1, is ' + str(frequencies.ndim)) + if type(sparameter_table) is not numpy.ndarray: + raise TypeError('sparameter_table must be {0}, is {1}'.format(numpy.ndarray, type(sparameter_table))) + if numpy.isfortran(sparameter_table) is True: + raise TypeError('sparameter_table must be in C-order') + if sparameter_table.dtype is not numpy.dtype('complex128'): + raise TypeError('sparameter_table must be numpy.ndarray of dtype=complex128, is ' + str(sparameter_table.dtype)) + if sparameter_table.ndim != 3: + raise TypeError('sparameter_table must be numpy.ndarray of dimension=3, is ' + str(sparameter_table.ndim)) + self._interpreter.create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) + + @ivi_synchronized + def create_deembedding_sparameter_table_s2p_file(self, port, table_name, s2p_file_path, sparameter_orientation): + r'''create_deembedding_sparameter_table_s2p_file + + Creates an S-parameter de-embedding table for the port based on the specified S2P file. + + If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview `_ + + `S-parameters `_ + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842 is empty string. + + table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + s2p_file_path (str): Specifies the path to the S2P file that contains de-embedding information for the specified port. + + sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the data in the S2P file relative to the port on the DUT port. **Defined Values** : + + +-----------------------------------------+----------------+-----------------------------------------------------+ + | Name | Value | Description | + +=========================================+================+=====================================================+ + | SparameterOrientation.PORT1_TOWARDS_DUT | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+----------------+-----------------------------------------------------+ + | SparameterOrientation.PORT2_TOWARDS_DUT | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+----------------+-----------------------------------------------------+ + + ''' + if type(sparameter_orientation) is not enums.SparameterOrientation: + raise TypeError('Parameter sparameter_orientation must be of type ' + str(enums.SparameterOrientation)) + self._interpreter.create_deembedding_sparameter_table_s2p_file(port, table_name, s2p_file_path, sparameter_orientation) + + @ivi_synchronized + def delete_all_deembedding_tables(self): + r'''delete_all_deembedding_tables + + Deletes all configured de-embedding tables for the session. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + ''' + self._interpreter.delete_all_deembedding_tables() + + @ivi_synchronized + def delete_deembedding_table(self, port, table_name): + r'''delete_deembedding_table + + Deletes the selected de-embedding table for a given port. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. + + ''' + self._interpreter.delete_deembedding_table(port, table_name) + + @ivi_synchronized + def delete_script(self, script_name): + r'''delete_script + + Deletes a specified script from the pool of currently defined scripts. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + script_name (str): Specifies the name of the script to delete. This string is case-insensitive. + + ''' + self._interpreter.delete_script(script_name) + + @ivi_synchronized + def disable_start_trigger(self): + r'''disable_start_trigger + + Configures the device not to wait for a Start Trigger. + + This method is necessary only if you previously configured a Start Trigger and now want it disabled. The NI-RFSG device must be in the Configuration state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Start Trigger `_ + ''' + self._interpreter.disable_start_trigger() + + def create_deembedding_sparameter_table_array(self, port, table_name, frequencies, sparameter_table, sparameter_orientation): + '''create_deembedding_sparameter_table_array + + Creates an s-parameter de-embedding table for the port from the input data. + + If you only create one table for a port, NI-RFSG automatically selects that table to de-embed the measurement. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `De-embedding Overview`_ + + Args: + port (str): Specifies the name of the port. The only valid value for the PXIe-5840/5841/5842/5860 is "" (empty string). + + table_name (str): Specifies the name of the table. The name must be unique for a given port, but not across ports. If you use the same name as an existing table, the table is replaced. + + frequencies (numpy.array(dtype=numpy.float64)): Specifies the frequencies for the SPARAMETER_TABLE rows. Frequencies must be unique and in ascending order. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + sparameter_table (numpy.array(dtype=numpy.complex128)): Specifies the S-parameters for each frequency. S-parameters for each frequency are placed in the array in the following order: s11, s12, s21, s22. + + sparameter_orientation (enums.SparameterOrientation): Specifies the orientation of the input data relative to the port on the DUT port. + + **Defined Values** : + + +-----------------------------------------+----------------+-----------------------------------------------------+ + | Name | Value | Description | + +=========================================+================+=====================================================+ + | SparameterOrientation.PORT1_TOWARDS_DUT | 24000 (0x5dc0) | Port 1 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+----------------+-----------------------------------------------------+ + | SparameterOrientation.PORT2_TOWARDS_DUT | 24001 (0x5dc1) | Port 2 of the S2P is oriented towards the DUT port. | + +-----------------------------------------+----------------+-----------------------------------------------------+ + + ''' + if (str(type(sparameter_table)).find("'numpy.ndarray'") != -1) or (str(type(frequencies)).find("'numpy.ndarray'") != -1): + if sparameter_table.ndim == 3: + if frequencies.size == sparameter_table.shape[0]: + if sparameter_table.shape[1] == sparameter_table.shape[2]: + number_of_ports = sparameter_table.shape[1] + return self._create_deembedding_sparameter_table_array(port, table_name, frequencies, sparameter_table, number_of_ports, sparameter_orientation) + else: + raise ValueError("Row and column count of sparameter table should be equal. Table row count is {} and column count is {}.".format(sparameter_table.shape[1], sparameter_table.shape[2])) + else: + raise ValueError("Frequencies count does not match the sparameter table count. Frequencies count is {} and sparameter table count is {}.".format(frequencies.size, sparameter_table.shape[0])) + else: + raise ValueError("Unsupported array dimension. Is {}, expected 3".format(sparameter_table.ndim)) + else: + raise TypeError("Unsupported datatype. Expected numpy array.") + + def get_deembedding_sparameters(self): + r'''get_deembedding_sparameters + + Returns the S-parameters used for de-embedding a measurement on the selected port. + + This includes interpolation of the parameters based on the configured carrier frequency. This method returns an empty array if no de-embedding is done. + + If you want to call this method just to get the required buffer size, you can pass 0 for **S-parameter Size** and VI_NULL for the **S-parameters** buffer. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Note: The port orientation for the returned S-parameters is normalized to SparameterOrientation.PORT1_TOWARDS_DUT. + + Returns: + sparameters (numpy.array(dtype=numpy.complex128)): Returns an array of S-parameters. The S-parameters are returned in the following order: s11, s12, s21, s22. + + ''' + sparameters = self._interpreter.get_deembedding_sparameters() + return sparameters + + @ivi_synchronized + def get_all_named_waveform_names(self): + r'''get_all_named_waveform_names + + Return names of the waveforms present in the memory. + + **Supported Devices** :PXIe-5830/5831/5840/5841/5842E + + Returns: + waveform_names (list of str): Returns a list of string having waveform names. + + ''' + waveform_names = self._interpreter.get_all_named_waveform_names() + return _converters.convert_comma_separated_string_to_list(waveform_names) + + @ivi_synchronized + def get_all_script_names(self): + r'''get_all_script_names + + Return names of the scripts present in the memory. + + **Supported Devices** :PXIe-5830/5831/5840/5841/5842E + + Returns: + script_names (list of str): Returns a list of string having script names. + + ''' + script_names = self._interpreter.get_all_script_names() + return _converters.convert_comma_separated_string_to_list(script_names) + + @ivi_synchronized + def _get_external_calibration_last_date_and_time(self): + r'''_get_external_calibration_last_date_and_time + + Returns the date and time of the last successful external calibration. + + The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Returns: + year (int): Returns the year of the last successful calibration. + + month (int): Returns the month of the last successful calibration. + + day (int): Returns the day of the last successful calibration. + + hour (int): Returns the hour of the last successful calibration. + + minute (int): Returns the minute of the last successful calibration. + + second (int): Returns the second of the last successful calibration. + + ''' + year, month, day, hour, minute, second = self._interpreter.get_external_calibration_last_date_and_time() + return year, month, day, hour, minute, second + + @ivi_synchronized + def get_ext_cal_last_date_and_time(self): + '''get_ext_cal_last_date_and_time + + Returns the date and time of the last successful external calibration. + + The time returned is 24-hour (military) local time; for example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5696, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Returns: + last_cal_datetime (hightime.datetime): + + ''' + year, month, day, hour, minute, second = self._get_external_calibration_last_date_and_time() + return hightime.datetime(year, month, day, hour, minute, second) + + @ivi_synchronized + def get_self_cal_last_date_and_time(self, module=enums.Module.PRIMARY_MODULE): + '''get_self_cal_last_date_and_time + + Returns the date and time of the last successful self-calibration. + + The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + module (enums.Module): Specifies from which stand-alone module to retrieve the last successful self-calibration date and time. + + + Returns: + last_cal_datetime (hightime.datetime): + + ''' + year, month, day, hour, minute, second = self._get_self_calibration_date_and_time(module) + return hightime.datetime(year, month, day, hour, minute, second) + + @ivi_synchronized + def get_max_settable_power(self): + r'''get_max_settable_power + + Returns the maximum settable output power level for the current configuration. + + **Supported Devices** : PXIe-5830/5831/5832/5840/5841/5842/5860 + + Returns: + value (float): Returns maximum settable power level in dBm. + + ''' + value = self._interpreter.get_max_settable_power() + return value + + @ivi_synchronized + def get_script(self, script_name): + r'''get_script + + Returns the content of specified script. + + **Supported Devices** :PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + script_name (str): Specifies the name of the script. This string is case-insensitive. + + + Returns: + script (str): Returns the script. + + ''' + script = self._interpreter.get_script(script_name) + return script + + @ivi_synchronized + def _get_self_calibration_date_and_time(self, module): + r'''_get_self_calibration_date_and_time + + Returns the date and time of the last successful self-calibration. + + The time returned is 24-hour local time. For example, if the device was calibrated at 2:30PM, this method returns + + 14 for the hours parameter and + + 30 for the minutes parameter. + + **Supported Devices** : PXI-5610, PXIe-5644/5645/5646, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + module (enums.Module): Specifies from which stand-alone module to retrieve the last successful self-calibration date and time. + + + Returns: + year (int): Returns the year of the last successful calibration. + + month (int): Returns the month of the last successful calibration. + + day (int): Returns the day of the last successful calibration. + + hour (int): Returns the hour of the last successful calibration. + + minute (int): Returns the minute of the last successful calibration. + + second (int): Returns the second of the last successful calibration. + + ''' + if type(module) is not enums.Module: + raise TypeError('Parameter module must be of type ' + str(enums.Module)) + year, month, day, hour, minute, second = self._interpreter.get_self_calibration_date_and_time(module) + return year, month, day, hour, minute, second + + @ivi_synchronized + def get_self_calibration_temperature(self, module=enums.Module.PRIMARY_MODULE): + r'''get_self_calibration_temperature + + Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. + + **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831 (IF only)/5832 (IF only)/5840/5841/5842/5860 + + Args: + module (enums.Module): Specifies from which stand-alone module to retrieve the last successful self-calibration temperature. + **Default Value** : Module.PRIMARY_MODULE + **Defined Values** : + + +-----------------------+----------------+---------------------------------------------------------------------+ + | Name | Value | Description | + +=======================+================+=====================================================================+ + | Module.PRIMARY_MODULE | 13000 (0x32c8) | The stand-alone device or the main module in a multi-module device. | + +-----------------------+----------------+---------------------------------------------------------------------+ + | Module.AWG | 13001 (0x32c9) | The AWG associated with the primary module. | + +-----------------------+----------------+---------------------------------------------------------------------+ + | Module.LO | 13002 (0x32ca) | The LO associated with the primary module. | + +-----------------------+----------------+---------------------------------------------------------------------+ + + + Returns: + temperature (float): Returns the temperature, in degrees Celsius, of the device at the last successful self-calibration. + + ''' + if type(module) is not enums.Module: + raise TypeError('Parameter module must be of type ' + str(enums.Module)) + temperature = self._interpreter.get_self_calibration_temperature(module) + return temperature + + @ivi_synchronized + def get_terminal_name(self, signal, signal_identifier): + r'''get_terminal_name + + Returns the fully-qualified name of the specified signal. + + The fully-qualified name is helpful to automatically route signals in a multisegment chassis. + + **Supported Devices** : PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + `Syntax for Terminal Names `_ + + Args: + signal (enums.Signal): Specifies the signal to query. **Defined Values** : + + +--------------------------------------------+---------+--------------------------------------------+ + | Name | Value | Description | + +============================================+=========+============================================+ + | Signal.START_TRIGGER | 0 (0x0) | Exports a Start Trigger. | + +--------------------------------------------+---------+--------------------------------------------+ + | Signal.SCRIPT_TRIGGER | 1 (0x1) | Exports a Script Trigger. | + +--------------------------------------------+---------+--------------------------------------------+ + | Signal.MARKER_EVENT | 2 (0x2) | Exports a Marker Event. | + +--------------------------------------------+---------+--------------------------------------------+ + | Signal.REF_CLOCK | 3 (0x3) | Exports the Reference Clock. | + +--------------------------------------------+---------+--------------------------------------------+ + | Signal.STARTED_EVENT | 4 (0x4) | Exports a Started Event. | + +--------------------------------------------+---------+--------------------------------------------+ + | Signal.DONE_EVENT | 5 (0x5) | Exports a Done Event. | + +--------------------------------------------+---------+--------------------------------------------+ + | NIRFSG_VAL_CONFIGURATION_LIST_STEP_TRIGGER | 6 (0x6) | Exports a Configuration List Step Trigger. | + +--------------------------------------------+---------+--------------------------------------------+ + | NIRFSG_VAL_CONFIGURATION_SETTLED_EVENT | 7 (0x7) | Exports a Configuration Settled Event. | + +--------------------------------------------+---------+--------------------------------------------+ + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + signal_identifier (str): Specifies which instance of the selected signal to query. This parameter is necessary when you set the SIGNAL parameter to NIRFSG_VAL_SCRIPT_TRIGGER or Signal.MARKER_EVENT . Otherwise, set the SIGNAL_IDENTIFIER parameter to "" (empty string). **Possible Values** : + + +------------------+-----------------------------+ + | Possible Value | Description | + +==================+=============================+ + | "marker0" | Specifies Marker 0. | + +------------------+-----------------------------+ + | "marker1" | Specifies Marker 1. | + +------------------+-----------------------------+ + | "marker2" | Specifies Marker 2. | + +------------------+-----------------------------+ + | "marker3" | Specifies Marker 3. | + +------------------+-----------------------------+ + | "scriptTrigger0" | Specifies Script Trigger 0. | + +------------------+-----------------------------+ + | "scriptTrigger1" | Specifies Script Trigger 1. | + +------------------+-----------------------------+ + | "scriptTrigger2" | Specifies Script Trigger 2. | + +------------------+-----------------------------+ + | "scriptTrigger3" | Specifies Script Trigger 3. | + +------------------+-----------------------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + + Returns: + terminal_name (str): Returns the string to use as the source for other devices. + + ''' + if type(signal) is not enums.Signal: + raise TypeError('Parameter signal must be of type ' + str(enums.Signal)) + terminal_name = self._interpreter.get_terminal_name(signal, signal_identifier) + return terminal_name + + def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): + r'''_init_with_options + + Opens a session to the device you specify as the RESOURCE_NAME and returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. + + This method also configures the device through the OPTION_STRING input. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Simulating an NI RF Signal Generator `_ + + Note: For multichannel devices such as the PXIe-5860, the resource name must include the channel number to use. The channel number is specified by appending /*ChannelNumber* to the device name, where *ChannelNumber* is the channel number (0, 1, etc.). For example, if the device name is PXI1Slot2 and you want to use channel 0, use the resource name PXI1Slot2/0. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + resource_name (str): Specifies the resource name of the device to initialize. + + For NI-DAQmx devices, the syntax is the device name specified in MAX. Typical default names for NI-DAQmx devices in MAX are Dev2 or PXISlot2. You can rename an NI-DAQmx device in MAX. + + You can also specify the name of an IVI logical name configured with the IVI Configuration utility. Refer to the *IVI* topic of the *Measurement & Automation Explorer Help* for more information. + + Note: NI-RFSG device names are not case-sensitive. However, all IVI names, such as logical names, are case-sensitive. If you use an IVI logical name, make sure the name is identical to the name shown in the IVI Configuration Utility. + + id_query (bool): Specifies whether you want NI-RFSG to perform an ID query. + + **Defined Values** : + + +-----------+--------------------------+ + | Value | Description | + +===========+==========================+ + | True (1) | Perform ID query. | + +-----------+--------------------------+ + | False (0) | Do not perform ID query. | + +-----------+--------------------------+ + + reset_device (bool): Specifies whether you want to reset the NI-RFSG device during the initialization procedure. + + **Defined Values** : + + +-----------+----------------------+ + | Value | Description | + +===========+======================+ + | True (1) | Reset device. | + +-----------+----------------------+ + | False (0) | Do not reset device. | + +-----------+----------------------+ + + option_string (dict): Specifies the initial value of certain properties for the session. The following table lists the properties and the name you pass in this parameter to identify the property. + + The format of this string consists of the following relations: + "AttributeName=Value" + + where + *AttributeName* is the name of the property and *Value* is the value to which the property is set. To set multiple properties, separate their assignments with a comma, as shown in the following option string: + + "RangeCheck=1,QueryInstrStatus=0,Cache=1,DriverSetup=AWG:pxi1slot4" + + The `DriverSetup string `_ is required in order to simulate a specific device. + + + Returns: + new_vi (int): Returns a ViSession handle that you use to identify the NI-RFSG device in all subsequent NI-RFSG method calls. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + new_vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) + return new_vi + + @ivi_synchronized + def _initiate(self): + r'''_initiate + + Initiates signal generation, causing the NI-RFSG device to leave the Configuration state and enter the Generation state. + + If the settings have not been committed to the device before you call this method, they are committed by this method. The operation returns when the RF output signal settles. To return to the Configuration state, call the abort method. + + **Supported Devices** : PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + ''' + self._interpreter.initiate() + + @ivi_synchronized + def perform_power_search(self): + r'''perform_power_search + + Performs a power search if the alc_control property is disabled. + + Calling this method disables modulation for a short time while the device levels the output signal. + + **Supported Devices** : PXIe-5654 with PXIe-5696 + + **Related Topics** + + `Power Search `_ + + Note: Power search temporarily enables the ALC, so ensure the appropriate included cable is connected between the PXIe-5654 ALCIN connector and the PXIe-5696 ALCOUT connector to successfully perform a power search. + ''' + self._interpreter.perform_power_search() + + @ivi_synchronized + def perform_thermal_correction(self): + r'''perform_thermal_correction + + Corrects for any signal drift due to environmental temperature variation when generating the same signal for extended periods of time without a parameter change. + + Under normal circumstances of short-term signal generation, NI-RFSG performs thermal correction automatically by ensuring stable power levels, and you do not need to call this method. + + Use this method when generating the same signal for an extended period of time in a temperature-fluctuating environment. The NI-RFSG device must be in the Generation state before calling this method. + + **Supported Devices** : PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Thermal Management `_ + + `Impairment Calibration `_ + ''' + self._interpreter.perform_thermal_correction() + + @ivi_synchronized + def query_arb_waveform_capabilities(self): + r'''query_arb_waveform_capabilities + + Queries and returns the waveform capabilities of the NI-RFSG device. + + These capabilities are related to the current device configuration. The NI-RFSG device must be in the Configuration or the Generation state before calling this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Returns: + max_number_waveforms (int): Returns the value of the arb_max_number_waveforms property. This value is the maximum number of waveforms you can write. + + waveform_quantum (int): Returns the value of the arb_waveform_quantum property. If the waveform quantum is *q*, then the size of the waveform that you write should be a multiple of *q*. The units are expressed in samples. + + min_waveform_size (int): Returns the value of the arb_waveform_size_min property. The number of samples of the waveform that you write must be greater than or equal to this value. + + max_waveform_size (int): Returns the value of the arb_waveform_size_max property. The number of samples of the waveform that you write must be less than or equal to this value. + + ''' + max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size = self._interpreter.query_arb_waveform_capabilities() + return max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size + + @ivi_synchronized + def read_and_download_waveform_from_file_tdms(self, waveform_name, file_path, waveform_index): + r'''read_and_download_waveform_from_file_tdms + + Reads the waveforms from a TDMS file and downloads one waveform into each of the NI RF vector signal generators. + + This method reads the following information from the TDMS file and writes it into the NI-RFSG session: + + - Sample Rate + - PAPR + - Runtime Scaling + - RF Blanking Marker Locations + - RF Blanking Enabled + - Burst Start Locations + - Burst Stop Locations + - RF Blanking Marker Source + - Signal Bandwidth + - Waveform Size + + If RF blanking marker locations are present in the file but burst locations are not present, burst locations are calculated from RF blanking marker locations and stored in the NI-RFSG session. + + **Supported Devices** : PXIe-5820/5830/5831/5832/5840/5841/5842 + + Args: + waveform_name (str): Specifies the name used to store the waveform. This string is case-insensitive. + + Example: + + "waveform::waveform0" + + file_path (str): Specifies the absolute path to the TDMS file from which the NI-RFSG reads the waveforms. + + waveform_index (int): Specifies the index of the waveform to be read from the TDMS file. + + ''' + self._interpreter.read_and_download_waveform_from_file_tdms(waveform_name, file_path, waveform_index) + + @ivi_synchronized + def reset_device(self): + r'''reset_device + + Performs a hard reset on the device which consists of the following actions: + + - Signal generation is stopped. + - All routes are released. + - External bidirectional terminals are tristated. + - FPGAs are reset. + - Hardware is configured to its default state. + - All session properties are reset to their default states. + + During a device reset, routes of signals between this and other devices are released, regardless of which device created the route. + + - PXI-5610, PXI-5670/5671, PXIe-5672-- After calling this method, the device requires 25 seconds before returning to full functionality. NI-RFSG enforces this condition by adding a wait, if needed, the next time you try to access the device. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E + + **Related Topics** + + `Thermal Shutdown `_ + + Note: You must call the reset_device method if the NI-RFSG device has shut down because of a high-temperature condition. + ''' + self._interpreter.reset_device() + + @ivi_synchronized + def reset_with_defaults(self): + r'''reset_with_defaults + + Performs a software reset of the device, returning it to the default state and applying any initial default settings from the IVI Configuration Store. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696,PXI-5670/5671, PXIe-5672/5673/5673E + ''' + self._interpreter.reset_with_defaults() + + @ivi_synchronized + def reset_with_options(self, steps_to_omit): + r'''reset_with_options + + Resets all properties to default values and specifies steps to omit during the reset process, such as signal routes. + + By default, this method exhibits the same behavior as Reset. You can specify steps to omit using the steps to omit parameter. For example, if you specify ResetWithOptionsStepsToOmit.ROUTES for the STEPS_TO_OMIT parameter, this method does not release signal routes during the reset process. + + When routes of signals between two devices are released, they are released regardless of which device created the route. + + To avoid resetting routes on PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using this method instead of Reset, with STEPS_TO_OMIT set to ResetWithOptionsStepsToOmit.ROUTES. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Triggers `_ + + `Events `_ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + steps_to_omit (Bitwise combination of enums.ResetWithOptionsStepsToOmit flags): Specifies a list of steps to skip during the reset process. The default value is ResetWithOptionsStepsToOmit.NONE, which specifies that no step is omitted during reset. **Defined Values** : + + +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +================================================+=========+============================================================================================================================================================================================================+ + | ResetWithOptionsStepsToOmit.NONE | 0 (0x0) | No step is omitted during reset. | + +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.WAVEFORMS | 1 (0x1) | Omits clearing waveforms. | + +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.SCRIPTS | 2 (0x2) | Omits clearing scripts. | + +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.ROUTES | 4 (0x4) | Omits the routing reset step. Routing is preserved after a reset. However, routing related properties are reset to default, and routing is released if the default properties are committed after a reset. | + +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | ResetWithOptionsStepsToOmit.DEEMBEDDING_TABLES | 8 (0x8) | Omits deleting de-embedding tables. This step is valid only for the PXIe-5830/5831/5832/5840. | + +------------------------------------------------+---------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + + Note: ResetWithOptionsStepsToOmit.ROUTES is not supported in external calibration or alignment sessions. + You can combine multiple enums.ResetWithOptionsStepsToOmit flags using the bitwise OR (|) operator. + + ''' + if type(steps_to_omit) is not enums.ResetWithOptionsStepsToOmit: + raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.ResetWithOptionsStepsToOmit)) + self._interpreter.reset_with_options(steps_to_omit) + + @ivi_synchronized + def select_arb_waveform(self, waveform_name): + r'''select_arb_waveform + + Specifies the waveform that is generated upon a call to the _initiate method when the generation_mode property is set to GenerationMode.ARB_WAVEFORM. + + You must specify a waveform using the NAME parameter if you have written multiple waveforms. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Assigning Properties or Properties to a Waveform `_ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + Args: + waveform_name (str): Specifies the name of the stored waveform to generate. This is a case-insensitive alphanumeric string that does not use reserved words. NI-RFSG sets the arb_selected_waveform property to this value. + + ''' + self._interpreter.select_arb_waveform(waveform_name) + + @ivi_synchronized + def self_cal(self): + r'''self_cal + + Performs an internal self-calibration on the device and associated modules that support self-calibration. + + If the calibration is successful, new calibration data and constants are stored in the onboard nonvolatile memory of the module. + + The PXIe-5841 maintains separate self-calibration data for both the PXIe-5841 standalone and when associated with the PXIe-5655. Use this method once for each intended configuration. + + **Supported Devices** : PXI-5610, PXIe-5653, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842/5860 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. + + **PXIe-5860** + + While this VI is running on one channel, if there are any existing NI-RFSG or NI-RFSA sessions open on the other channel, they may remain open but cannot be used for operations that access the hardware, for example niRFSG Commit or niRFSG Initiate or niRFSA Commit or niRFSA Initiate. For the existing open session to use the new self-calibration data, the session will need to be closed and reopened. + ''' + self._interpreter.self_cal() + + @ivi_synchronized + def self_calibrate_range(self, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): + r'''self_calibrate_range + + Self-calibrates all configurations within the specified frequency and peak power level limits. + + Self-calibration range data is valid until you restart the system or call the clear_self_calibrate_range method. + + NI recommends that no external signals are present on the RF In or IQ In ports during the calibration. + + For best results, NI recommends that you perform self-calibration without omitting any steps. However, if certain aspects of performance are less important for your application, you can omit certain steps for faster calibration. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842 + + Note: - This method does not update self-calibration date and temperature. + + - If there is an existing NI-RFSA session open for the same PXIe-5644/5645/5646, it may remain open but cannot be used while this method runs. + + - If there is an existing NI-RFSA session open for the same PXIe-5820/5830/5831/5832/5840/5841/5842 while this method runs, it may remain open but cannot be used for operations that access the hardware, for example niRFSA_Commit or niRFSA_Initiate. + + Args: + steps_to_omit (Bitwise combination of enums.SelfCalibrateRangeStepsToOmit flags): Specifies which calibration steps to skip during the self-calibration process. The default value is an empty array, which indicates that no calibration steps are omitted. + + **Default Value** : SelfCalibrateRangeStepsToOmit.OMIT_NONE + + **Defined Values:** + + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | Name | Value | Description | + +=====================================================+===========+=====================================================================================================================+ + | SelfCalibrateRangeStepsToOmit.OMIT_NONE | 0 (0x0) | No calibration steps are omitted. | + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalibrateRangeStepsToOmit.LO_SELF_CAL | 1 (0x1) | Omits the LO Self Cal step. If you omit this step, the power level of the LO is not adjusted. | + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalibrateRangeStepsToOmit.POWER_LEVEL_ACCURACY | 2 (0x2) | Omits the Power Level Accuracy step. If you omit this step, the power level accuracy of the device is not adjusted. | + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalibrateRangeStepsToOmit.RESIDUAL_LO_POWER | 4 (0x4) | Omits the Residual LO Power step. If you omit this step, the Residual LO Power performance is not adjusted. | + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalibrateRangeStepsToOmit.IMAGE_SUPPRESSION | 8 (0x8) | Omits the Image Suppression step. If you omit this step, the Residual Sideband Image performance is not adjusted. | + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + | SelfCalibrateRangeStepsToOmit.SYNTHESIZER_ALIGNMENT | 16 (0x10) | Omits the Voltage Controlled Oscillator (VCO) Alignment step. If you omit this step, the LO PLL is not adjusted. | + +-----------------------------------------------------+-----------+---------------------------------------------------------------------------------------------------------------------+ + + Note: You can combine multiple enums.SelfCalibrateRangeStepsToOmit flags using the bitwise OR (|) operator. + + min_frequency (float): Specifies the minimum frequency to calibrate. + + max_frequency (float): Specifies the maximum frequency to calibrate. + + min_power_level (float): Specifies the minimum power level to calibrate. + + max_power_level (float): Specifies the maximum power level to calibrate. + + ''' + if type(steps_to_omit) is not enums.SelfCalibrateRangeStepsToOmit: + raise TypeError('Parameter steps_to_omit must be of type ' + str(enums.SelfCalibrateRangeStepsToOmit)) + self._interpreter.self_calibrate_range(steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level) + + @ivi_synchronized + def set_arb_waveform_next_write_position(self, waveform_name, relative_to, offset): + r'''set_arb_waveform_next_write_position + + Configures the start position to use for writing a waveform before calling the WriteArbWaveform method. + + This method allows you to write to arbitrary locations within the waveform. These settings apply only to the next write to the waveform specified by the **name** input of the allocate_arb_waveform method or the WriteArbWaveform method. Subsequent writes to that waveform begin where the last write ended, unless this method is called again. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: If you use this method to write the waveform that is currently generating, an undefined output may result. + + Args: + waveform_name (str): Specifies the name of the waveform. This string is case-insensitive and alphanumeric, and it cannot use `reserved words `_. + + relative_to (enums.RelativeTo): Specifies the reference position in the waveform. The position and OFFSET together determine where to start loading data into the waveform. + + **Defined Values:** + + +------------------------------+---------------+------------------------------------------------------------------+ + | Name | Value | Description | + +==============================+===============+==================================================================+ + | RelativeTo.START_OF_WAVEFORM | 8000 (0x1f40) | The reference position is relative to the start of the waveform. | + +------------------------------+---------------+------------------------------------------------------------------+ + | RelativeTo.CURRENT_POSITION | 8001 (0x1f41) | The reference position is relative to the current position. | + +------------------------------+---------------+------------------------------------------------------------------+ + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + offset (int): Specifies the offset from the **relative to** parameter at which to start loading the data into the waveform. + + ''' + if type(relative_to) is not enums.RelativeTo: + raise TypeError('Parameter relative_to must be of type ' + str(enums.RelativeTo)) + self._interpreter.set_arb_waveform_next_write_position(waveform_name, relative_to, offset) + + @ivi_synchronized + def wait_until_settled(self, max_time_milliseconds=hightime.timedelta(seconds=10.0)): + r'''wait_until_settled + + Waits until the RF output signal has settled. This method is useful for devices that support changes while in the Generation state. + + Call this method after making a dynamic change to wait for the output signal to settle. + + You can also call this method after calling the commit method to wait for changes to settle. The wait_until_settled method is not required after calling the _initiate method because the _initiate automatically waits for the output to settle. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Args: + max_time_milliseconds (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the maximum time the method waits for the output to settle. If the maximum time is exceeded, this method returns an error. The units are expressed in milliseconds. + + **Default Value** : 10000 + + ''' + max_time_milliseconds = _converters.convert_timedelta_to_milliseconds_int32(max_time_milliseconds) + self._interpreter.wait_until_settled(max_time_milliseconds) + + @ivi_synchronized + def _write_arb_waveform_complex_f32(self, waveform_name, waveform_data_array, more_data_pending): + r'''_write_arb_waveform_complex_f32 + + Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. + + This method accepts the complex baseband data in the form of complex singles. If the waveform to write is already allocated using the allocate_arb_waveform method, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_ + + Note: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. + + Args: + waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + waveform_data_array (numpy.array(dtype=numpy.complex64)): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. + + more_data_pending (bool): Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the WAVEFORM_NAME parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. + + Note: + One or more of the referenced properties are not in the Python API for this driver. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('complex64'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex64, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + self._interpreter.write_arb_waveform_complex_f32(waveform_name, waveform_data_array, more_data_pending) + + @ivi_synchronized + def _write_arb_waveform_complex_f64(self, waveform_name, waveform_data_array, more_data_pending): + r'''_write_arb_waveform_complex_f64 + + Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. + + This method accepts the complex baseband data in the form of complex doubles. If the waveform to write is already allocated using the allocate_arb_waveform, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842 is in the Generation state. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_ + + Note: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. + + Args: + waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + waveform_data_array (numpy.array(dtype=numpy.complex128)): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. + + more_data_pending (bool): Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the **name** parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('complex128'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=complex128, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + self._interpreter.write_arb_waveform_complex_f64(waveform_name, waveform_data_array, more_data_pending) + + @ivi_synchronized + def _write_arb_waveform_complex_i16(self, waveform_name, waveform_data_array): + r'''_write_arb_waveform_complex_i16 + + Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. + + This method accepts the interleaved I/Q data of a complex baseband signal. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, this method can be called when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. + + **Supported Devices** : PXIe-5644/5645/5646, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_ + + Note: This method only supports PowerLevelType.PEAK mode as specified in the power_level_type property. If you download a waveform when using this method, you cannot set the power_level_type to PowerLevelType.AVERAGE without causing error in the output. + + Args: + waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + waveform_data_array (numpy.array(dtype=numpy.int16)): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. + + ''' + import numpy + + if type(waveform_data_array) is not numpy.ndarray: + raise TypeError('waveform_data_array must be {0}, is {1}'.format(numpy.ndarray, type(waveform_data_array))) + if numpy.isfortran(waveform_data_array) is True: + raise TypeError('waveform_data_array must be in C-order') + if waveform_data_array.dtype is not numpy.dtype('int16'): + raise TypeError('waveform_data_array must be numpy.ndarray of dtype=int16, is ' + str(waveform_data_array.dtype)) + if waveform_data_array.ndim != 1: + raise TypeError('waveform_data_array must be numpy.ndarray of dimension=1, is ' + str(waveform_data_array.ndim)) + self._interpreter.write_arb_waveform_complex_i16(waveform_name, waveform_data_array) + + def write_arb_waveform(self, waveform_name, waveform_data_array, more_data_pending=False): + '''write_arb_waveform + + Writes an arbitrary waveform to the NI-RFSG device starting at the position of the last data written in onboard memory. + + This method accepts the complex baseband data in the form of numpy array of numpy.complex64 or numpy.complex128 or interleaved numpy array of numpy.int16. If the waveform to write is already allocated using the allocate_arb_waveform, the more_data_pending parameter is ignored. The PXI-5670/5671 must be in the Configuration state before you call this method. When streaming is enabled, you can call this method when the PXIe-5672/5673/5673E or PXIe-5820/5830/5831/5832/5840/5841/5842/5860 is in the Generation state. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Streaming `_ + + `Assigning Properties or Properties to a Waveform `_ + + Note: On the PXIe-5644/5645/5646, PXIe-5672/5673/5673E, and PXIe-5820/5830/5831/5832/5840/5841/5842/5860, the more_data_pending parameter is always ignored. To write data in blocks on these devices, you must allocate the waveform before writing it. + If you are writing interleaved numpy array of numpy.int16, then this method only supports PowerLevelType.PEAK mode as specified in the power_level_type property. If you download a waveform as interleaved numpy array of numpy.int16 when using this method, you cannot set the power_level_type to PowerLevelType.AVERAGE without causing error in the output. + + Args: + waveform_name (str): Specifies the name used to identify the waveform. This string is case-insensitive and alphanumeric, and it does not use reserved words. + + waveform_data_array (numpy array of numpy.complex64, numpy array of numpy.complex128 or interleaved complex data in the form of numpy array of numpy.int16): Specifies the array of data to load into the waveform. The array must have at least as many elements as the value in the **size_in_samples** parameter in the allocate_arb_waveform method. + + more_data_pending (bool): Specifies whether or not the data block contains the end of the waveform. Set this parameter to True to allow data to be appended later to the waveform. Splitting the waveform into multiple data blocks can reduce the memory requirements of the write operation. Append data to a previously written waveform by using the same waveform in the **name** parameter. Set more_data_pending to False to indicate that this data block contains the end of the waveform. If the waveform is already allocated, this parameter is ignored. + + ''' + import numpy + if str(type(waveform_data_array)).find("'numpy.ndarray'") != -1: + if waveform_data_array.dtype == numpy.complex128: + return self._write_arb_waveform_complex_f64(waveform_name, waveform_data_array, more_data_pending) + elif waveform_data_array.dtype == numpy.complex64: + return self._write_arb_waveform_complex_f32(waveform_name, waveform_data_array, more_data_pending) + elif waveform_data_array.dtype == numpy.int16: + return self._write_arb_waveform_complex_i16(waveform_name, waveform_data_array) + else: + raise TypeError("Unsupported datatype. Is {}, expected {} or {} or {}".format(waveform_data_array.dtype, numpy.complex128, numpy.complex64, numpy.int16)) + else: + raise TypeError("Unsupported datatype. Expected numpy array of {} or {} or {}".format(numpy.complex128, numpy.complex64, numpy.int16)) + + @ivi_synchronized + def write_script(self, script): + r'''write_script + + Writes a script to the device to control waveform generation in Script mode. + + First, configure your device for Script mode by setting the generation_mode property. The NI-RFSG device must be in the Configuration state before calling the write_script method. + + **Supported Devices** : PXIe-5644/5645/5646, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Scripting Instructions `_--Refer to this topic for more information about VST restrictions on scripts. + + `Common Scripting Use Cases `_ + + Note: If you are using an RF vector signal transceiver (VST) device, some script instructions may not be supported. + + Args: + script (str): Specifies a string containing a syntactically correct script. NI-RFSG supports multiple scripts that are selected with the selected_script property. Refer to `Scripting Instructions `_ for more information about using scripts. + + ''' + self._interpreter.write_script(script) + + def _close(self): + r'''_close + + Aborts any signal generation in progress and destroys the instrument driver session. + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `NI-RFSG Instrument Driver Programming Flow `_ + + `NI-RFSG Programming State Model `_ + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Performs a self-test on the NI-RFSG device and returns the test results. + + This method performs a simple series of tests to ensure that the NI-RFSG device is powered up and responding. + + This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Device Warm-Up `_ + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def reset(self): + r'''reset + + Resets all properties to their default values and moves the NI-RFSG device to the Configuration state. + + This method aborts the generation, deletes all de-embedding tables, clears all routes, and resets session properties to their initial values. During a reset, routes of signals between this and other devices are released, regardless of which device created the route. + + Generally, calling this method instead of the reset_device method is acceptable. The Reset method executes faster than the reset_device method. + + To avoid resetting routes on the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 that are in use by NI-RFSA sessions, NI recommends using the reset_with_options method, with **stepsToOmit** set to ResetWithOptionsStepsToOmit.ROUTES . + + **Supported Devices** : PXI-5610, PXIe-5611, PXIe-5644/5645/5646, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + Note: This method resets all configured routes for the PXIe-5644/5645/5646 and PXIe-5820/5830/5831/5832/5840/5841/5842/5860 in NI-RFSA and NI-RFSG. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Performs a self-test on the NI-RFSG device and returns the test results. + + This method performs a simple series of tests to ensure that the NI-RFSG device is powered up and responding. + + This method does not affect external I/O connections or connections between devices. Complete functional testing and calibration are not performed by this method. The NI-RFSG device must be in the Configuration state before you call this method. + + **Supported Devices** : PXI-5610, PXIe-5611, PXI/PXIe-5650/5651/5652, PXIe-5653/5654/5654 with PXIe-5696, PXI-5670/5671, PXIe-5672/5673/5673E, PXIe-5820/5830/5831/5832/5840/5841/5842/5860 + + **Related Topics** + + `Device Warm-Up `_ + + Returns: + self_test_result (int): This parameter contains the value returned from the NI-RFSG device self test. + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Self test passed | + +----------------+------------------+ + | 1 | Self test failed | + +----------------+------------------+ + + self_test_message (str): Returns the self-test response string from the NI-RFSG device. For an explanation of the string contents, refer to the **status** parameter of this method. + + You must pass a ViChar array with at least 256 bytes. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/nirfsg/nirfsg/unit_tests/_matchers.py b/generated/nirfsg/nirfsg/unit_tests/_matchers.py new file mode 100644 index 0000000000..d3f1819f4b --- /dev/null +++ b/generated/nirfsg/nirfsg/unit_tests/_matchers.py @@ -0,0 +1,369 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nirfsg._complextype as _complextype +import nirfsg._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +def _compare_complex_number_arrays(expected, actual): + for i in range(expected.expected_size): + expected_value = expected.expected_data[i] + actual_value = actual[i] + if expected_value.real != actual_value.real or expected_value.imag != actual_value.imag: + return False + return True + + +class NIComplexNumberPointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexNumber) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexNumberPointerMatcher({self.expected_data})" + + +class NIComplexNumberF32PointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexNumberF32) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexNumberF32PointerMatcher({self.expected_data})" + + +class NIComplexI16PointerMatcher(_PointerMatcher): + def __init__(self, expected_data, expected_size): + _PointerMatcher.__init__(self, _complextype.NIComplexI16) + self.expected_data = expected_data + self.expected_size = expected_size + + def __eq__(self, other): + _PointerMatcher.__eq__(self, other) + return _compare_complex_number_arrays(self, other) + + def __repr__(self): + return f"NIComplexI16PointerMatcher({self.expected_data})" + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nirfsg/nirfsg/unit_tests/_mock_helper.py b/generated/nirfsg/nirfsg/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..33ff5a46b9 --- /dev/null +++ b/generated/nirfsg/nirfsg/unit_tests/_mock_helper.py @@ -0,0 +1,1124 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['Abort'] = {} + self._defaults['Abort']['return'] = 0 + self._defaults['AllocateArbWaveform'] = {} + self._defaults['AllocateArbWaveform']['return'] = 0 + self._defaults['ChangeExternalCalibrationPassword'] = {} + self._defaults['ChangeExternalCalibrationPassword']['return'] = 0 + self._defaults['CheckGenerationStatus'] = {} + self._defaults['CheckGenerationStatus']['return'] = 0 + self._defaults['CheckGenerationStatus']['isDone'] = None + self._defaults['CheckIfScriptExists'] = {} + self._defaults['CheckIfScriptExists']['return'] = 0 + self._defaults['CheckIfScriptExists']['scriptExists'] = None + self._defaults['CheckIfWaveformExists'] = {} + self._defaults['CheckIfWaveformExists']['return'] = 0 + self._defaults['CheckIfWaveformExists']['waveformExists'] = None + self._defaults['ClearAllArbWaveforms'] = {} + self._defaults['ClearAllArbWaveforms']['return'] = 0 + self._defaults['ClearArbWaveform'] = {} + self._defaults['ClearArbWaveform']['return'] = 0 + self._defaults['ClearSelfCalibrateRange'] = {} + self._defaults['ClearSelfCalibrateRange']['return'] = 0 + self._defaults['Commit'] = {} + self._defaults['Commit']['return'] = 0 + self._defaults['ConfigureDeembeddingTableInterpolationLinear'] = {} + self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] = 0 + self._defaults['ConfigureDeembeddingTableInterpolationNearest'] = {} + self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] = 0 + self._defaults['ConfigureDeembeddingTableInterpolationSpline'] = {} + self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] = 0 + self._defaults['ConfigureDigitalEdgeScriptTrigger'] = {} + self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] = 0 + self._defaults['ConfigureDigitalEdgeStartTrigger'] = {} + self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] = 0 + self._defaults['ConfigureDigitalLevelScriptTrigger'] = {} + self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] = 0 + self._defaults['ConfigureRF'] = {} + self._defaults['ConfigureRF']['return'] = 0 + self._defaults['ConfigureRefClock'] = {} + self._defaults['ConfigureRefClock']['return'] = 0 + self._defaults['ConfigureSoftwareScriptTrigger'] = {} + self._defaults['ConfigureSoftwareScriptTrigger']['return'] = 0 + self._defaults['ConfigureSoftwareStartTrigger'] = {} + self._defaults['ConfigureSoftwareStartTrigger']['return'] = 0 + self._defaults['CreateDeembeddingSparameterTableArray'] = {} + self._defaults['CreateDeembeddingSparameterTableArray']['return'] = 0 + self._defaults['CreateDeembeddingSparameterTableS2PFile'] = {} + self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] = 0 + self._defaults['DeleteAllDeembeddingTables'] = {} + self._defaults['DeleteAllDeembeddingTables']['return'] = 0 + self._defaults['DeleteDeembeddingTable'] = {} + self._defaults['DeleteDeembeddingTable']['return'] = 0 + self._defaults['DeleteScript'] = {} + self._defaults['DeleteScript']['return'] = 0 + self._defaults['DisableScriptTrigger'] = {} + self._defaults['DisableScriptTrigger']['return'] = 0 + self._defaults['DisableStartTrigger'] = {} + self._defaults['DisableStartTrigger']['return'] = 0 + self._defaults['ErrorMessage'] = {} + self._defaults['ErrorMessage']['return'] = 0 + self._defaults['ErrorMessage']['errorMessage'] = None + self._defaults['GetAllNamedWaveformNames'] = {} + self._defaults['GetAllNamedWaveformNames']['return'] = 0 + self._defaults['GetAllNamedWaveformNames']['actualBufferSize'] = None + self._defaults['GetAllNamedWaveformNames']['waveformNames'] = None + self._defaults['GetAllScriptNames'] = {} + self._defaults['GetAllScriptNames']['return'] = 0 + self._defaults['GetAllScriptNames']['actualBufferSize'] = None + self._defaults['GetAllScriptNames']['scriptNames'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['value'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['value'] = None + self._defaults['GetAttributeViInt64'] = {} + self._defaults['GetAttributeViInt64']['return'] = 0 + self._defaults['GetAttributeViInt64']['value'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['value'] = None + self._defaults['GetAttributeViSession'] = {} + self._defaults['GetAttributeViSession']['return'] = 0 + self._defaults['GetAttributeViSession']['value'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['value'] = None + self._defaults['GetDeembeddingSparameters'] = {} + self._defaults['GetDeembeddingSparameters']['return'] = 0 + self._defaults['GetDeembeddingSparameters']['sparameters'] = None + self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] = None + self._defaults['GetDeembeddingSparameters']['numberOfPorts'] = None + self._defaults['GetDeembeddingTableNumberOfPorts'] = {} + self._defaults['GetDeembeddingTableNumberOfPorts']['return'] = 0 + self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['errorDescription'] = None + self._defaults['GetExternalCalibrationLastDateAndTime'] = {} + self._defaults['GetExternalCalibrationLastDateAndTime']['return'] = 0 + self._defaults['GetExternalCalibrationLastDateAndTime']['year'] = None + self._defaults['GetExternalCalibrationLastDateAndTime']['month'] = None + self._defaults['GetExternalCalibrationLastDateAndTime']['day'] = None + self._defaults['GetExternalCalibrationLastDateAndTime']['hour'] = None + self._defaults['GetExternalCalibrationLastDateAndTime']['minute'] = None + self._defaults['GetExternalCalibrationLastDateAndTime']['second'] = None + self._defaults['GetMaxSettablePower'] = {} + self._defaults['GetMaxSettablePower']['return'] = 0 + self._defaults['GetMaxSettablePower']['value'] = None + self._defaults['GetScript'] = {} + self._defaults['GetScript']['return'] = 0 + self._defaults['GetScript']['actualBufferSize'] = None + self._defaults['GetScript']['script'] = None + self._defaults['GetSelfCalibrationDateAndTime'] = {} + self._defaults['GetSelfCalibrationDateAndTime']['return'] = 0 + self._defaults['GetSelfCalibrationDateAndTime']['year'] = None + self._defaults['GetSelfCalibrationDateAndTime']['month'] = None + self._defaults['GetSelfCalibrationDateAndTime']['day'] = None + self._defaults['GetSelfCalibrationDateAndTime']['hour'] = None + self._defaults['GetSelfCalibrationDateAndTime']['minute'] = None + self._defaults['GetSelfCalibrationDateAndTime']['second'] = None + self._defaults['GetSelfCalibrationTemperature'] = {} + self._defaults['GetSelfCalibrationTemperature']['return'] = 0 + self._defaults['GetSelfCalibrationTemperature']['temperature'] = None + self._defaults['GetTerminalName'] = {} + self._defaults['GetTerminalName']['return'] = 0 + self._defaults['GetTerminalName']['terminalName'] = None + self._defaults['GetWaveformBurstStartLocations'] = {} + self._defaults['GetWaveformBurstStartLocations']['return'] = 0 + self._defaults['GetWaveformBurstStartLocations']['requiredSize'] = None + self._defaults['GetWaveformBurstStartLocations']['locations'] = None + self._defaults['GetWaveformBurstStopLocations'] = {} + self._defaults['GetWaveformBurstStopLocations']['return'] = 0 + self._defaults['GetWaveformBurstStopLocations']['requiredSize'] = None + self._defaults['GetWaveformBurstStopLocations']['locations'] = None + self._defaults['GetWaveformMarkerEventLocations'] = {} + self._defaults['GetWaveformMarkerEventLocations']['return'] = 0 + self._defaults['GetWaveformMarkerEventLocations']['requiredSize'] = None + self._defaults['GetWaveformMarkerEventLocations']['locations'] = None + self._defaults['InitWithOptions'] = {} + self._defaults['InitWithOptions']['return'] = 0 + self._defaults['InitWithOptions']['newVi'] = None + self._defaults['Initiate'] = {} + self._defaults['Initiate']['return'] = 0 + self._defaults['LoadConfigurationsFromFile'] = {} + self._defaults['LoadConfigurationsFromFile']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['PerformPowerSearch'] = {} + self._defaults['PerformPowerSearch']['return'] = 0 + self._defaults['PerformThermalCorrection'] = {} + self._defaults['PerformThermalCorrection']['return'] = 0 + self._defaults['QueryArbWaveformCapabilities'] = {} + self._defaults['QueryArbWaveformCapabilities']['return'] = 0 + self._defaults['QueryArbWaveformCapabilities']['maxNumberWaveforms'] = None + self._defaults['QueryArbWaveformCapabilities']['waveformQuantum'] = None + self._defaults['QueryArbWaveformCapabilities']['minWaveformSize'] = None + self._defaults['QueryArbWaveformCapabilities']['maxWaveformSize'] = None + self._defaults['ReadAndDownloadWaveformFromFileTDMS'] = {} + self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] = 0 + self._defaults['ResetDevice'] = {} + self._defaults['ResetDevice']['return'] = 0 + self._defaults['ResetWithDefaults'] = {} + self._defaults['ResetWithDefaults']['return'] = 0 + self._defaults['ResetWithOptions'] = {} + self._defaults['ResetWithOptions']['return'] = 0 + self._defaults['SaveConfigurationsToFile'] = {} + self._defaults['SaveConfigurationsToFile']['return'] = 0 + self._defaults['SelectArbWaveform'] = {} + self._defaults['SelectArbWaveform']['return'] = 0 + self._defaults['SelfCal'] = {} + self._defaults['SelfCal']['return'] = 0 + self._defaults['SelfCalibrateRange'] = {} + self._defaults['SelfCalibrateRange']['return'] = 0 + self._defaults['SendSoftwareEdgeTrigger'] = {} + self._defaults['SendSoftwareEdgeTrigger']['return'] = 0 + self._defaults['SetArbWaveformNextWritePosition'] = {} + self._defaults['SetArbWaveformNextWritePosition']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViInt64'] = {} + self._defaults['SetAttributeViInt64']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViSession'] = {} + self._defaults['SetAttributeViSession']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetWaveformBurstStartLocations'] = {} + self._defaults['SetWaveformBurstStartLocations']['return'] = 0 + self._defaults['SetWaveformBurstStopLocations'] = {} + self._defaults['SetWaveformBurstStopLocations']['return'] = 0 + self._defaults['SetWaveformMarkerEventLocations'] = {} + self._defaults['SetWaveformMarkerEventLocations']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['WaitUntilSettled'] = {} + self._defaults['WaitUntilSettled']['return'] = 0 + self._defaults['WriteArbWaveformComplexF32'] = {} + self._defaults['WriteArbWaveformComplexF32']['return'] = 0 + self._defaults['WriteArbWaveformComplexF64'] = {} + self._defaults['WriteArbWaveformComplexF64']['return'] = 0 + self._defaults['WriteArbWaveformComplexI16'] = {} + self._defaults['WriteArbWaveformComplexI16']['return'] = 0 + self._defaults['WriteScript'] = {} + self._defaults['WriteScript']['return'] = 0 + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niRFSG_Abort(self, vi): # noqa: N802 + if self._defaults['Abort']['return'] != 0: + return self._defaults['Abort']['return'] + return self._defaults['Abort']['return'] + + def niRFSG_AllocateArbWaveform(self, vi, waveform_name, size_in_samples): # noqa: N802 + if self._defaults['AllocateArbWaveform']['return'] != 0: + return self._defaults['AllocateArbWaveform']['return'] + return self._defaults['AllocateArbWaveform']['return'] + + def niRFSG_ChangeExternalCalibrationPassword(self, vi, old_password, new_password): # noqa: N802 + if self._defaults['ChangeExternalCalibrationPassword']['return'] != 0: + return self._defaults['ChangeExternalCalibrationPassword']['return'] + return self._defaults['ChangeExternalCalibrationPassword']['return'] + + def niRFSG_CheckGenerationStatus(self, vi, is_done): # noqa: N802 + if self._defaults['CheckGenerationStatus']['return'] != 0: + return self._defaults['CheckGenerationStatus']['return'] + # is_done + if self._defaults['CheckGenerationStatus']['isDone'] is None: + raise MockFunctionCallError("niRFSG_CheckGenerationStatus", param='isDone') + if is_done is not None: + is_done.contents.value = self._defaults['CheckGenerationStatus']['isDone'] + return self._defaults['CheckGenerationStatus']['return'] + + def niRFSG_CheckIfScriptExists(self, vi, script_name, script_exists): # noqa: N802 + if self._defaults['CheckIfScriptExists']['return'] != 0: + return self._defaults['CheckIfScriptExists']['return'] + # script_exists + if self._defaults['CheckIfScriptExists']['scriptExists'] is None: + raise MockFunctionCallError("niRFSG_CheckIfScriptExists", param='scriptExists') + if script_exists is not None: + script_exists.contents.value = self._defaults['CheckIfScriptExists']['scriptExists'] + return self._defaults['CheckIfScriptExists']['return'] + + def niRFSG_CheckIfWaveformExists(self, vi, waveform_name, waveform_exists): # noqa: N802 + if self._defaults['CheckIfWaveformExists']['return'] != 0: + return self._defaults['CheckIfWaveformExists']['return'] + # waveform_exists + if self._defaults['CheckIfWaveformExists']['waveformExists'] is None: + raise MockFunctionCallError("niRFSG_CheckIfWaveformExists", param='waveformExists') + if waveform_exists is not None: + waveform_exists.contents.value = self._defaults['CheckIfWaveformExists']['waveformExists'] + return self._defaults['CheckIfWaveformExists']['return'] + + def niRFSG_ClearAllArbWaveforms(self, vi): # noqa: N802 + if self._defaults['ClearAllArbWaveforms']['return'] != 0: + return self._defaults['ClearAllArbWaveforms']['return'] + return self._defaults['ClearAllArbWaveforms']['return'] + + def niRFSG_ClearArbWaveform(self, vi, waveform_name): # noqa: N802 + if self._defaults['ClearArbWaveform']['return'] != 0: + return self._defaults['ClearArbWaveform']['return'] + return self._defaults['ClearArbWaveform']['return'] + + def niRFSG_ClearSelfCalibrateRange(self, vi): # noqa: N802 + if self._defaults['ClearSelfCalibrateRange']['return'] != 0: + return self._defaults['ClearSelfCalibrateRange']['return'] + return self._defaults['ClearSelfCalibrateRange']['return'] + + def niRFSG_Commit(self, vi): # noqa: N802 + if self._defaults['Commit']['return'] != 0: + return self._defaults['Commit']['return'] + return self._defaults['Commit']['return'] + + def niRFSG_ConfigureDeembeddingTableInterpolationLinear(self, vi, port, table_name, format): # noqa: N802 + if self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] != 0: + return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] + return self._defaults['ConfigureDeembeddingTableInterpolationLinear']['return'] + + def niRFSG_ConfigureDeembeddingTableInterpolationNearest(self, vi, port, table_name): # noqa: N802 + if self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] != 0: + return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] + return self._defaults['ConfigureDeembeddingTableInterpolationNearest']['return'] + + def niRFSG_ConfigureDeembeddingTableInterpolationSpline(self, vi, port, table_name): # noqa: N802 + if self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] != 0: + return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] + return self._defaults['ConfigureDeembeddingTableInterpolationSpline']['return'] + + def niRFSG_ConfigureDigitalEdgeScriptTrigger(self, vi, trigger_id, source, edge): # noqa: N802 + if self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] != 0: + return self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] + return self._defaults['ConfigureDigitalEdgeScriptTrigger']['return'] + + def niRFSG_ConfigureDigitalEdgeStartTrigger(self, vi, source, edge): # noqa: N802 + if self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] != 0: + return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] + return self._defaults['ConfigureDigitalEdgeStartTrigger']['return'] + + def niRFSG_ConfigureDigitalLevelScriptTrigger(self, vi, trigger_id, source, level): # noqa: N802 + if self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] != 0: + return self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] + return self._defaults['ConfigureDigitalLevelScriptTrigger']['return'] + + def niRFSG_ConfigureRF(self, vi, frequency, power_level): # noqa: N802 + if self._defaults['ConfigureRF']['return'] != 0: + return self._defaults['ConfigureRF']['return'] + return self._defaults['ConfigureRF']['return'] + + def niRFSG_ConfigureRefClock(self, vi, ref_clock_source, ref_clock_rate): # noqa: N802 + if self._defaults['ConfigureRefClock']['return'] != 0: + return self._defaults['ConfigureRefClock']['return'] + return self._defaults['ConfigureRefClock']['return'] + + def niRFSG_ConfigureSoftwareScriptTrigger(self, vi, trigger_id): # noqa: N802 + if self._defaults['ConfigureSoftwareScriptTrigger']['return'] != 0: + return self._defaults['ConfigureSoftwareScriptTrigger']['return'] + return self._defaults['ConfigureSoftwareScriptTrigger']['return'] + + def niRFSG_ConfigureSoftwareStartTrigger(self, vi): # noqa: N802 + if self._defaults['ConfigureSoftwareStartTrigger']['return'] != 0: + return self._defaults['ConfigureSoftwareStartTrigger']['return'] + return self._defaults['ConfigureSoftwareStartTrigger']['return'] + + def niRFSG_CreateDeembeddingSparameterTableArray(self, vi, port, table_name, frequencies, frequencies_size, sparameter_table, sparameter_table_size, number_of_ports, sparameter_orientation): # noqa: N802 + if self._defaults['CreateDeembeddingSparameterTableArray']['return'] != 0: + return self._defaults['CreateDeembeddingSparameterTableArray']['return'] + return self._defaults['CreateDeembeddingSparameterTableArray']['return'] + + def niRFSG_CreateDeembeddingSparameterTableS2PFile(self, vi, port, table_name, s2p_file_path, sparameter_orientation): # noqa: N802 + if self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] != 0: + return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] + return self._defaults['CreateDeembeddingSparameterTableS2PFile']['return'] + + def niRFSG_DeleteAllDeembeddingTables(self, vi): # noqa: N802 + if self._defaults['DeleteAllDeembeddingTables']['return'] != 0: + return self._defaults['DeleteAllDeembeddingTables']['return'] + return self._defaults['DeleteAllDeembeddingTables']['return'] + + def niRFSG_DeleteDeembeddingTable(self, vi, port, table_name): # noqa: N802 + if self._defaults['DeleteDeembeddingTable']['return'] != 0: + return self._defaults['DeleteDeembeddingTable']['return'] + return self._defaults['DeleteDeembeddingTable']['return'] + + def niRFSG_DeleteScript(self, vi, script_name): # noqa: N802 + if self._defaults['DeleteScript']['return'] != 0: + return self._defaults['DeleteScript']['return'] + return self._defaults['DeleteScript']['return'] + + def niRFSG_DisableScriptTrigger(self, vi, trigger_id): # noqa: N802 + if self._defaults['DisableScriptTrigger']['return'] != 0: + return self._defaults['DisableScriptTrigger']['return'] + return self._defaults['DisableScriptTrigger']['return'] + + def niRFSG_DisableStartTrigger(self, vi): # noqa: N802 + if self._defaults['DisableStartTrigger']['return'] != 0: + return self._defaults['DisableStartTrigger']['return'] + return self._defaults['DisableStartTrigger']['return'] + + def niRFSG_ErrorMessage(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['ErrorMessage']['return'] != 0: + return self._defaults['ErrorMessage']['return'] + # error_message + if self._defaults['ErrorMessage']['errorMessage'] is None: + raise MockFunctionCallError("niRFSG_ErrorMessage", param='errorMessage') + test_value = self._defaults['ErrorMessage']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['ErrorMessage']['return'] + + def niRFSG_GetAllNamedWaveformNames(self, vi, waveform_names, buffer_size, actual_buffer_size): # noqa: N802 + if self._defaults['GetAllNamedWaveformNames']['return'] != 0: + return self._defaults['GetAllNamedWaveformNames']['return'] + # actual_buffer_size + if self._defaults['GetAllNamedWaveformNames']['actualBufferSize'] is None: + raise MockFunctionCallError("niRFSG_GetAllNamedWaveformNames", param='actualBufferSize') + if actual_buffer_size is not None: + actual_buffer_size.contents.value = self._defaults['GetAllNamedWaveformNames']['actualBufferSize'] + # waveform_names + if self._defaults['GetAllNamedWaveformNames']['waveformNames'] is None: + raise MockFunctionCallError("niRFSG_GetAllNamedWaveformNames", param='waveformNames') + if buffer_size.value == 0: + return len(self._defaults['GetAllNamedWaveformNames']['waveformNames']) + waveform_names.value = self._defaults['GetAllNamedWaveformNames']['waveformNames'].encode('ascii') + return self._defaults['GetAllNamedWaveformNames']['return'] + + def niRFSG_GetAllScriptNames(self, vi, script_names, buffer_size, actual_buffer_size): # noqa: N802 + if self._defaults['GetAllScriptNames']['return'] != 0: + return self._defaults['GetAllScriptNames']['return'] + # actual_buffer_size + if self._defaults['GetAllScriptNames']['actualBufferSize'] is None: + raise MockFunctionCallError("niRFSG_GetAllScriptNames", param='actualBufferSize') + if actual_buffer_size is not None: + actual_buffer_size.contents.value = self._defaults['GetAllScriptNames']['actualBufferSize'] + # script_names + if self._defaults['GetAllScriptNames']['scriptNames'] is None: + raise MockFunctionCallError("niRFSG_GetAllScriptNames", param='scriptNames') + if buffer_size.value == 0: + return len(self._defaults['GetAllScriptNames']['scriptNames']) + script_names.value = self._defaults['GetAllScriptNames']['scriptNames'].encode('ascii') + return self._defaults['GetAllScriptNames']['return'] + + def niRFSG_GetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # value + if self._defaults['GetAttributeViBoolean']['value'] is None: + raise MockFunctionCallError("niRFSG_GetAttributeViBoolean", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViBoolean']['value'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niRFSG_GetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # value + if self._defaults['GetAttributeViInt32']['value'] is None: + raise MockFunctionCallError("niRFSG_GetAttributeViInt32", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt32']['value'] + return self._defaults['GetAttributeViInt32']['return'] + + def niRFSG_GetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViInt64']['return'] != 0: + return self._defaults['GetAttributeViInt64']['return'] + # value + if self._defaults['GetAttributeViInt64']['value'] is None: + raise MockFunctionCallError("niRFSG_GetAttributeViInt64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt64']['value'] + return self._defaults['GetAttributeViInt64']['return'] + + def niRFSG_GetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # value + if self._defaults['GetAttributeViReal64']['value'] is None: + raise MockFunctionCallError("niRFSG_GetAttributeViReal64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViReal64']['value'] + return self._defaults['GetAttributeViReal64']['return'] + + def niRFSG_GetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['GetAttributeViSession']['return'] != 0: + return self._defaults['GetAttributeViSession']['return'] + # value + if self._defaults['GetAttributeViSession']['value'] is None: + raise MockFunctionCallError("niRFSG_GetAttributeViSession", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViSession']['value'] + return self._defaults['GetAttributeViSession']['return'] + + def niRFSG_GetAttributeViString(self, vi, channel_name, attribute, buf_size, value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # value + if self._defaults['GetAttributeViString']['value'] is None: + raise MockFunctionCallError("niRFSG_GetAttributeViString", param='value') + if buf_size.value == 0: + return len(self._defaults['GetAttributeViString']['value']) + value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niRFSG_GetDeembeddingSparameters(self, vi, sparameters, sparameters_array_size, number_of_sparameters, number_of_ports): # noqa: N802 + if self._defaults['GetDeembeddingSparameters']['return'] != 0: + return self._defaults['GetDeembeddingSparameters']['return'] + # sparameters + if self._defaults['GetDeembeddingSparameters']['sparameters'] is None: + raise MockFunctionCallError("niRFSG_GetDeembeddingSparameters", param='sparameters') + test_value = self._defaults['GetDeembeddingSparameters']['sparameters'] + try: + sparameters_ref = sparameters.contents + except AttributeError: + sparameters_ref = sparameters + assert len(sparameters_ref) >= len(test_value) + for i in range(len(test_value)): + sparameters_ref[i] = test_value[i] + # number_of_sparameters + if self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] is None: + raise MockFunctionCallError("niRFSG_GetDeembeddingSparameters", param='numberOfSparameters') + if number_of_sparameters is not None: + number_of_sparameters.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfSparameters'] + # number_of_ports + if self._defaults['GetDeembeddingSparameters']['numberOfPorts'] is None: + raise MockFunctionCallError("niRFSG_GetDeembeddingSparameters", param='numberOfPorts') + if number_of_ports is not None: + number_of_ports.contents.value = self._defaults['GetDeembeddingSparameters']['numberOfPorts'] + return self._defaults['GetDeembeddingSparameters']['return'] + + def niRFSG_GetDeembeddingTableNumberOfPorts(self, vi, number_of_ports): # noqa: N802 + if self._defaults['GetDeembeddingTableNumberOfPorts']['return'] != 0: + return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] + # number_of_ports + if self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] is None: + raise MockFunctionCallError("niRFSG_GetDeembeddingTableNumberOfPorts", param='numberOfPorts') + if number_of_ports is not None: + number_of_ports.contents.value = self._defaults['GetDeembeddingTableNumberOfPorts']['numberOfPorts'] + return self._defaults['GetDeembeddingTableNumberOfPorts']['return'] + + def niRFSG_GetError(self, vi, error_code, error_description_buffer_size, error_description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niRFSG_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # error_description + if self._defaults['GetError']['errorDescription'] is None: + raise MockFunctionCallError("niRFSG_GetError", param='errorDescription') + if error_description_buffer_size.value == 0: + return len(self._defaults['GetError']['errorDescription']) + error_description.value = self._defaults['GetError']['errorDescription'].encode('ascii') + return self._defaults['GetError']['return'] + + def niRFSG_GetExternalCalibrationLastDateAndTime(self, vi, year, month, day, hour, minute, second): # noqa: N802 + if self._defaults['GetExternalCalibrationLastDateAndTime']['return'] != 0: + return self._defaults['GetExternalCalibrationLastDateAndTime']['return'] + # year + if self._defaults['GetExternalCalibrationLastDateAndTime']['year'] is None: + raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['year'] + # month + if self._defaults['GetExternalCalibrationLastDateAndTime']['month'] is None: + raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['month'] + # day + if self._defaults['GetExternalCalibrationLastDateAndTime']['day'] is None: + raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['day'] + # hour + if self._defaults['GetExternalCalibrationLastDateAndTime']['hour'] is None: + raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['hour'] + # minute + if self._defaults['GetExternalCalibrationLastDateAndTime']['minute'] is None: + raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['minute'] + # second + if self._defaults['GetExternalCalibrationLastDateAndTime']['second'] is None: + raise MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime", param='second') + if second is not None: + second.contents.value = self._defaults['GetExternalCalibrationLastDateAndTime']['second'] + return self._defaults['GetExternalCalibrationLastDateAndTime']['return'] + + def niRFSG_GetMaxSettablePower(self, vi, value): # noqa: N802 + if self._defaults['GetMaxSettablePower']['return'] != 0: + return self._defaults['GetMaxSettablePower']['return'] + # value + if self._defaults['GetMaxSettablePower']['value'] is None: + raise MockFunctionCallError("niRFSG_GetMaxSettablePower", param='value') + if value is not None: + value.contents.value = self._defaults['GetMaxSettablePower']['value'] + return self._defaults['GetMaxSettablePower']['return'] + + def niRFSG_GetScript(self, vi, script_name, script, buffer_size, actual_buffer_size): # noqa: N802 + if self._defaults['GetScript']['return'] != 0: + return self._defaults['GetScript']['return'] + # actual_buffer_size + if self._defaults['GetScript']['actualBufferSize'] is None: + raise MockFunctionCallError("niRFSG_GetScript", param='actualBufferSize') + if actual_buffer_size is not None: + actual_buffer_size.contents.value = self._defaults['GetScript']['actualBufferSize'] + # script + if self._defaults['GetScript']['script'] is None: + raise MockFunctionCallError("niRFSG_GetScript", param='script') + if buffer_size.value == 0: + return len(self._defaults['GetScript']['script']) + script.value = self._defaults['GetScript']['script'].encode('ascii') + return self._defaults['GetScript']['return'] + + def niRFSG_GetSelfCalibrationDateAndTime(self, vi, module, year, month, day, hour, minute, second): # noqa: N802 + if self._defaults['GetSelfCalibrationDateAndTime']['return'] != 0: + return self._defaults['GetSelfCalibrationDateAndTime']['return'] + # year + if self._defaults['GetSelfCalibrationDateAndTime']['year'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='year') + if year is not None: + year.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['year'] + # month + if self._defaults['GetSelfCalibrationDateAndTime']['month'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='month') + if month is not None: + month.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['month'] + # day + if self._defaults['GetSelfCalibrationDateAndTime']['day'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='day') + if day is not None: + day.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['day'] + # hour + if self._defaults['GetSelfCalibrationDateAndTime']['hour'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='hour') + if hour is not None: + hour.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['hour'] + # minute + if self._defaults['GetSelfCalibrationDateAndTime']['minute'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='minute') + if minute is not None: + minute.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['minute'] + # second + if self._defaults['GetSelfCalibrationDateAndTime']['second'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime", param='second') + if second is not None: + second.contents.value = self._defaults['GetSelfCalibrationDateAndTime']['second'] + return self._defaults['GetSelfCalibrationDateAndTime']['return'] + + def niRFSG_GetSelfCalibrationTemperature(self, vi, module, temperature): # noqa: N802 + if self._defaults['GetSelfCalibrationTemperature']['return'] != 0: + return self._defaults['GetSelfCalibrationTemperature']['return'] + # temperature + if self._defaults['GetSelfCalibrationTemperature']['temperature'] is None: + raise MockFunctionCallError("niRFSG_GetSelfCalibrationTemperature", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['GetSelfCalibrationTemperature']['temperature'] + return self._defaults['GetSelfCalibrationTemperature']['return'] + + def niRFSG_GetTerminalName(self, vi, signal, signal_identifier, buffer_size, terminal_name): # noqa: N802 + if self._defaults['GetTerminalName']['return'] != 0: + return self._defaults['GetTerminalName']['return'] + # terminal_name + if self._defaults['GetTerminalName']['terminalName'] is None: + raise MockFunctionCallError("niRFSG_GetTerminalName", param='terminalName') + if buffer_size.value == 0: + return len(self._defaults['GetTerminalName']['terminalName']) + terminal_name.value = self._defaults['GetTerminalName']['terminalName'].encode('ascii') + return self._defaults['GetTerminalName']['return'] + + def niRFSG_GetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 + if self._defaults['GetWaveformBurstStartLocations']['return'] != 0: + return self._defaults['GetWaveformBurstStartLocations']['return'] + # required_size + if self._defaults['GetWaveformBurstStartLocations']['requiredSize'] is None: + raise MockFunctionCallError("niRFSG_GetWaveformBurstStartLocations", param='requiredSize') + if required_size is not None: + required_size.contents.value = self._defaults['GetWaveformBurstStartLocations']['requiredSize'] + # locations + if self._defaults['GetWaveformBurstStartLocations']['locations'] is None: + raise MockFunctionCallError("niRFSG_GetWaveformBurstStartLocations", param='locations') + if number_of_locations.value == 0: + return len(self._defaults['GetWaveformBurstStartLocations']['locations']) + try: + locations_ref = locations.contents + except AttributeError: + locations_ref = locations + for i in range(len(self._defaults['GetWaveformBurstStartLocations']['locations'])): + locations_ref[i] = self._defaults['GetWaveformBurstStartLocations']['locations'][i] + return self._defaults['GetWaveformBurstStartLocations']['return'] + + def niRFSG_GetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 + if self._defaults['GetWaveformBurstStopLocations']['return'] != 0: + return self._defaults['GetWaveformBurstStopLocations']['return'] + # required_size + if self._defaults['GetWaveformBurstStopLocations']['requiredSize'] is None: + raise MockFunctionCallError("niRFSG_GetWaveformBurstStopLocations", param='requiredSize') + if required_size is not None: + required_size.contents.value = self._defaults['GetWaveformBurstStopLocations']['requiredSize'] + # locations + if self._defaults['GetWaveformBurstStopLocations']['locations'] is None: + raise MockFunctionCallError("niRFSG_GetWaveformBurstStopLocations", param='locations') + if number_of_locations.value == 0: + return len(self._defaults['GetWaveformBurstStopLocations']['locations']) + try: + locations_ref = locations.contents + except AttributeError: + locations_ref = locations + for i in range(len(self._defaults['GetWaveformBurstStopLocations']['locations'])): + locations_ref[i] = self._defaults['GetWaveformBurstStopLocations']['locations'][i] + return self._defaults['GetWaveformBurstStopLocations']['return'] + + def niRFSG_GetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations, required_size): # noqa: N802 + if self._defaults['GetWaveformMarkerEventLocations']['return'] != 0: + return self._defaults['GetWaveformMarkerEventLocations']['return'] + # required_size + if self._defaults['GetWaveformMarkerEventLocations']['requiredSize'] is None: + raise MockFunctionCallError("niRFSG_GetWaveformMarkerEventLocations", param='requiredSize') + if required_size is not None: + required_size.contents.value = self._defaults['GetWaveformMarkerEventLocations']['requiredSize'] + # locations + if self._defaults['GetWaveformMarkerEventLocations']['locations'] is None: + raise MockFunctionCallError("niRFSG_GetWaveformMarkerEventLocations", param='locations') + if number_of_locations.value == 0: + return len(self._defaults['GetWaveformMarkerEventLocations']['locations']) + try: + locations_ref = locations.contents + except AttributeError: + locations_ref = locations + for i in range(len(self._defaults['GetWaveformMarkerEventLocations']['locations'])): + locations_ref[i] = self._defaults['GetWaveformMarkerEventLocations']['locations'][i] + return self._defaults['GetWaveformMarkerEventLocations']['return'] + + def niRFSG_InitWithOptions(self, resource_name, id_query, reset_device, option_string, new_vi): # noqa: N802 + if self._defaults['InitWithOptions']['return'] != 0: + return self._defaults['InitWithOptions']['return'] + # new_vi + if self._defaults['InitWithOptions']['newVi'] is None: + raise MockFunctionCallError("niRFSG_InitWithOptions", param='newVi') + if new_vi is not None: + new_vi.contents.value = self._defaults['InitWithOptions']['newVi'] + return self._defaults['InitWithOptions']['return'] + + def niRFSG_Initiate(self, vi): # noqa: N802 + if self._defaults['Initiate']['return'] != 0: + return self._defaults['Initiate']['return'] + return self._defaults['Initiate']['return'] + + def niRFSG_LoadConfigurationsFromFile(self, vi, channel_name, file_path): # noqa: N802 + if self._defaults['LoadConfigurationsFromFile']['return'] != 0: + return self._defaults['LoadConfigurationsFromFile']['return'] + return self._defaults['LoadConfigurationsFromFile']['return'] + + def niRFSG_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niRFSG_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niRFSG_PerformPowerSearch(self, vi): # noqa: N802 + if self._defaults['PerformPowerSearch']['return'] != 0: + return self._defaults['PerformPowerSearch']['return'] + return self._defaults['PerformPowerSearch']['return'] + + def niRFSG_PerformThermalCorrection(self, vi): # noqa: N802 + if self._defaults['PerformThermalCorrection']['return'] != 0: + return self._defaults['PerformThermalCorrection']['return'] + return self._defaults['PerformThermalCorrection']['return'] + + def niRFSG_QueryArbWaveformCapabilities(self, vi, max_number_waveforms, waveform_quantum, min_waveform_size, max_waveform_size): # noqa: N802 + if self._defaults['QueryArbWaveformCapabilities']['return'] != 0: + return self._defaults['QueryArbWaveformCapabilities']['return'] + # max_number_waveforms + if self._defaults['QueryArbWaveformCapabilities']['maxNumberWaveforms'] is None: + raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='maxNumberWaveforms') + if max_number_waveforms is not None: + max_number_waveforms.contents.value = self._defaults['QueryArbWaveformCapabilities']['maxNumberWaveforms'] + # waveform_quantum + if self._defaults['QueryArbWaveformCapabilities']['waveformQuantum'] is None: + raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='waveformQuantum') + if waveform_quantum is not None: + waveform_quantum.contents.value = self._defaults['QueryArbWaveformCapabilities']['waveformQuantum'] + # min_waveform_size + if self._defaults['QueryArbWaveformCapabilities']['minWaveformSize'] is None: + raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='minWaveformSize') + if min_waveform_size is not None: + min_waveform_size.contents.value = self._defaults['QueryArbWaveformCapabilities']['minWaveformSize'] + # max_waveform_size + if self._defaults['QueryArbWaveformCapabilities']['maxWaveformSize'] is None: + raise MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities", param='maxWaveformSize') + if max_waveform_size is not None: + max_waveform_size.contents.value = self._defaults['QueryArbWaveformCapabilities']['maxWaveformSize'] + return self._defaults['QueryArbWaveformCapabilities']['return'] + + def niRFSG_ReadAndDownloadWaveformFromFileTDMS(self, vi, waveform_name, file_path, waveform_index): # noqa: N802 + if self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] != 0: + return self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] + return self._defaults['ReadAndDownloadWaveformFromFileTDMS']['return'] + + def niRFSG_ResetDevice(self, vi): # noqa: N802 + if self._defaults['ResetDevice']['return'] != 0: + return self._defaults['ResetDevice']['return'] + return self._defaults['ResetDevice']['return'] + + def niRFSG_ResetWithDefaults(self, vi): # noqa: N802 + if self._defaults['ResetWithDefaults']['return'] != 0: + return self._defaults['ResetWithDefaults']['return'] + return self._defaults['ResetWithDefaults']['return'] + + def niRFSG_ResetWithOptions(self, vi, steps_to_omit): # noqa: N802 + if self._defaults['ResetWithOptions']['return'] != 0: + return self._defaults['ResetWithOptions']['return'] + return self._defaults['ResetWithOptions']['return'] + + def niRFSG_SaveConfigurationsToFile(self, vi, channel_name, file_path): # noqa: N802 + if self._defaults['SaveConfigurationsToFile']['return'] != 0: + return self._defaults['SaveConfigurationsToFile']['return'] + return self._defaults['SaveConfigurationsToFile']['return'] + + def niRFSG_SelectArbWaveform(self, vi, waveform_name): # noqa: N802 + if self._defaults['SelectArbWaveform']['return'] != 0: + return self._defaults['SelectArbWaveform']['return'] + return self._defaults['SelectArbWaveform']['return'] + + def niRFSG_SelfCal(self, vi): # noqa: N802 + if self._defaults['SelfCal']['return'] != 0: + return self._defaults['SelfCal']['return'] + return self._defaults['SelfCal']['return'] + + def niRFSG_SelfCalibrateRange(self, vi, steps_to_omit, min_frequency, max_frequency, min_power_level, max_power_level): # noqa: N802 + if self._defaults['SelfCalibrateRange']['return'] != 0: + return self._defaults['SelfCalibrateRange']['return'] + return self._defaults['SelfCalibrateRange']['return'] + + def niRFSG_SendSoftwareEdgeTrigger(self, vi, trigger, trigger_identifier): # noqa: N802 + if self._defaults['SendSoftwareEdgeTrigger']['return'] != 0: + return self._defaults['SendSoftwareEdgeTrigger']['return'] + return self._defaults['SendSoftwareEdgeTrigger']['return'] + + def niRFSG_SetArbWaveformNextWritePosition(self, vi, waveform_name, relative_to, offset): # noqa: N802 + if self._defaults['SetArbWaveformNextWritePosition']['return'] != 0: + return self._defaults['SetArbWaveformNextWritePosition']['return'] + return self._defaults['SetArbWaveformNextWritePosition']['return'] + + def niRFSG_SetAttributeViBoolean(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niRFSG_SetAttributeViInt32(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niRFSG_SetAttributeViInt64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViInt64']['return'] != 0: + return self._defaults['SetAttributeViInt64']['return'] + return self._defaults['SetAttributeViInt64']['return'] + + def niRFSG_SetAttributeViReal64(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niRFSG_SetAttributeViSession(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViSession']['return'] != 0: + return self._defaults['SetAttributeViSession']['return'] + return self._defaults['SetAttributeViSession']['return'] + + def niRFSG_SetAttributeViString(self, vi, channel_name, attribute, value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niRFSG_SetWaveformBurstStartLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 + if self._defaults['SetWaveformBurstStartLocations']['return'] != 0: + return self._defaults['SetWaveformBurstStartLocations']['return'] + return self._defaults['SetWaveformBurstStartLocations']['return'] + + def niRFSG_SetWaveformBurstStopLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 + if self._defaults['SetWaveformBurstStopLocations']['return'] != 0: + return self._defaults['SetWaveformBurstStopLocations']['return'] + return self._defaults['SetWaveformBurstStopLocations']['return'] + + def niRFSG_SetWaveformMarkerEventLocations(self, vi, channel_name, number_of_locations, locations): # noqa: N802 + if self._defaults['SetWaveformMarkerEventLocations']['return'] != 0: + return self._defaults['SetWaveformMarkerEventLocations']['return'] + return self._defaults['SetWaveformMarkerEventLocations']['return'] + + def niRFSG_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niRFSG_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niRFSG_WaitUntilSettled(self, vi, max_time_milliseconds): # noqa: N802 + if self._defaults['WaitUntilSettled']['return'] != 0: + return self._defaults['WaitUntilSettled']['return'] + return self._defaults['WaitUntilSettled']['return'] + + def niRFSG_WriteArbWaveformComplexF32(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 + if self._defaults['WriteArbWaveformComplexF32']['return'] != 0: + return self._defaults['WriteArbWaveformComplexF32']['return'] + return self._defaults['WriteArbWaveformComplexF32']['return'] + + def niRFSG_WriteArbWaveformComplexF64(self, vi, waveform_name, number_of_samples, waveform_data_array, more_data_pending): # noqa: N802 + if self._defaults['WriteArbWaveformComplexF64']['return'] != 0: + return self._defaults['WriteArbWaveformComplexF64']['return'] + return self._defaults['WriteArbWaveformComplexF64']['return'] + + def niRFSG_WriteArbWaveformComplexI16(self, vi, waveform_name, number_of_samples, waveform_data_array): # noqa: N802 + if self._defaults['WriteArbWaveformComplexI16']['return'] != 0: + return self._defaults['WriteArbWaveformComplexI16']['return'] + return self._defaults['WriteArbWaveformComplexI16']['return'] + + def niRFSG_WriteScript(self, vi, script): # noqa: N802 + if self._defaults['WriteScript']['return'] != 0: + return self._defaults['WriteScript']['return'] + return self._defaults['WriteScript']['return'] + + def niRFSG_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niRFSG_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niRFSG_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niRFSG_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niRFSG_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niRFSG_Abort.side_effect = MockFunctionCallError("niRFSG_Abort") + mock_library.niRFSG_Abort.return_value = 0 + mock_library.niRFSG_AllocateArbWaveform.side_effect = MockFunctionCallError("niRFSG_AllocateArbWaveform") + mock_library.niRFSG_AllocateArbWaveform.return_value = 0 + mock_library.niRFSG_ChangeExternalCalibrationPassword.side_effect = MockFunctionCallError("niRFSG_ChangeExternalCalibrationPassword") + mock_library.niRFSG_ChangeExternalCalibrationPassword.return_value = 0 + mock_library.niRFSG_CheckGenerationStatus.side_effect = MockFunctionCallError("niRFSG_CheckGenerationStatus") + mock_library.niRFSG_CheckGenerationStatus.return_value = 0 + mock_library.niRFSG_CheckIfScriptExists.side_effect = MockFunctionCallError("niRFSG_CheckIfScriptExists") + mock_library.niRFSG_CheckIfScriptExists.return_value = 0 + mock_library.niRFSG_CheckIfWaveformExists.side_effect = MockFunctionCallError("niRFSG_CheckIfWaveformExists") + mock_library.niRFSG_CheckIfWaveformExists.return_value = 0 + mock_library.niRFSG_ClearAllArbWaveforms.side_effect = MockFunctionCallError("niRFSG_ClearAllArbWaveforms") + mock_library.niRFSG_ClearAllArbWaveforms.return_value = 0 + mock_library.niRFSG_ClearArbWaveform.side_effect = MockFunctionCallError("niRFSG_ClearArbWaveform") + mock_library.niRFSG_ClearArbWaveform.return_value = 0 + mock_library.niRFSG_ClearSelfCalibrateRange.side_effect = MockFunctionCallError("niRFSG_ClearSelfCalibrateRange") + mock_library.niRFSG_ClearSelfCalibrateRange.return_value = 0 + mock_library.niRFSG_Commit.side_effect = MockFunctionCallError("niRFSG_Commit") + mock_library.niRFSG_Commit.return_value = 0 + mock_library.niRFSG_ConfigureDeembeddingTableInterpolationLinear.side_effect = MockFunctionCallError("niRFSG_ConfigureDeembeddingTableInterpolationLinear") + mock_library.niRFSG_ConfigureDeembeddingTableInterpolationLinear.return_value = 0 + mock_library.niRFSG_ConfigureDeembeddingTableInterpolationNearest.side_effect = MockFunctionCallError("niRFSG_ConfigureDeembeddingTableInterpolationNearest") + mock_library.niRFSG_ConfigureDeembeddingTableInterpolationNearest.return_value = 0 + mock_library.niRFSG_ConfigureDeembeddingTableInterpolationSpline.side_effect = MockFunctionCallError("niRFSG_ConfigureDeembeddingTableInterpolationSpline") + mock_library.niRFSG_ConfigureDeembeddingTableInterpolationSpline.return_value = 0 + mock_library.niRFSG_ConfigureDigitalEdgeScriptTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureDigitalEdgeScriptTrigger") + mock_library.niRFSG_ConfigureDigitalEdgeScriptTrigger.return_value = 0 + mock_library.niRFSG_ConfigureDigitalEdgeStartTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureDigitalEdgeStartTrigger") + mock_library.niRFSG_ConfigureDigitalEdgeStartTrigger.return_value = 0 + mock_library.niRFSG_ConfigureDigitalLevelScriptTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureDigitalLevelScriptTrigger") + mock_library.niRFSG_ConfigureDigitalLevelScriptTrigger.return_value = 0 + mock_library.niRFSG_ConfigureRF.side_effect = MockFunctionCallError("niRFSG_ConfigureRF") + mock_library.niRFSG_ConfigureRF.return_value = 0 + mock_library.niRFSG_ConfigureRefClock.side_effect = MockFunctionCallError("niRFSG_ConfigureRefClock") + mock_library.niRFSG_ConfigureRefClock.return_value = 0 + mock_library.niRFSG_ConfigureSoftwareScriptTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureSoftwareScriptTrigger") + mock_library.niRFSG_ConfigureSoftwareScriptTrigger.return_value = 0 + mock_library.niRFSG_ConfigureSoftwareStartTrigger.side_effect = MockFunctionCallError("niRFSG_ConfigureSoftwareStartTrigger") + mock_library.niRFSG_ConfigureSoftwareStartTrigger.return_value = 0 + mock_library.niRFSG_CreateDeembeddingSparameterTableArray.side_effect = MockFunctionCallError("niRFSG_CreateDeembeddingSparameterTableArray") + mock_library.niRFSG_CreateDeembeddingSparameterTableArray.return_value = 0 + mock_library.niRFSG_CreateDeembeddingSparameterTableS2PFile.side_effect = MockFunctionCallError("niRFSG_CreateDeembeddingSparameterTableS2PFile") + mock_library.niRFSG_CreateDeembeddingSparameterTableS2PFile.return_value = 0 + mock_library.niRFSG_DeleteAllDeembeddingTables.side_effect = MockFunctionCallError("niRFSG_DeleteAllDeembeddingTables") + mock_library.niRFSG_DeleteAllDeembeddingTables.return_value = 0 + mock_library.niRFSG_DeleteDeembeddingTable.side_effect = MockFunctionCallError("niRFSG_DeleteDeembeddingTable") + mock_library.niRFSG_DeleteDeembeddingTable.return_value = 0 + mock_library.niRFSG_DeleteScript.side_effect = MockFunctionCallError("niRFSG_DeleteScript") + mock_library.niRFSG_DeleteScript.return_value = 0 + mock_library.niRFSG_DisableScriptTrigger.side_effect = MockFunctionCallError("niRFSG_DisableScriptTrigger") + mock_library.niRFSG_DisableScriptTrigger.return_value = 0 + mock_library.niRFSG_DisableStartTrigger.side_effect = MockFunctionCallError("niRFSG_DisableStartTrigger") + mock_library.niRFSG_DisableStartTrigger.return_value = 0 + mock_library.niRFSG_ErrorMessage.side_effect = MockFunctionCallError("niRFSG_ErrorMessage") + mock_library.niRFSG_ErrorMessage.return_value = 0 + mock_library.niRFSG_GetAllNamedWaveformNames.side_effect = MockFunctionCallError("niRFSG_GetAllNamedWaveformNames") + mock_library.niRFSG_GetAllNamedWaveformNames.return_value = 0 + mock_library.niRFSG_GetAllScriptNames.side_effect = MockFunctionCallError("niRFSG_GetAllScriptNames") + mock_library.niRFSG_GetAllScriptNames.return_value = 0 + mock_library.niRFSG_GetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSG_GetAttributeViBoolean") + mock_library.niRFSG_GetAttributeViBoolean.return_value = 0 + mock_library.niRFSG_GetAttributeViInt32.side_effect = MockFunctionCallError("niRFSG_GetAttributeViInt32") + mock_library.niRFSG_GetAttributeViInt32.return_value = 0 + mock_library.niRFSG_GetAttributeViInt64.side_effect = MockFunctionCallError("niRFSG_GetAttributeViInt64") + mock_library.niRFSG_GetAttributeViInt64.return_value = 0 + mock_library.niRFSG_GetAttributeViReal64.side_effect = MockFunctionCallError("niRFSG_GetAttributeViReal64") + mock_library.niRFSG_GetAttributeViReal64.return_value = 0 + mock_library.niRFSG_GetAttributeViSession.side_effect = MockFunctionCallError("niRFSG_GetAttributeViSession") + mock_library.niRFSG_GetAttributeViSession.return_value = 0 + mock_library.niRFSG_GetAttributeViString.side_effect = MockFunctionCallError("niRFSG_GetAttributeViString") + mock_library.niRFSG_GetAttributeViString.return_value = 0 + mock_library.niRFSG_GetDeembeddingSparameters.side_effect = MockFunctionCallError("niRFSG_GetDeembeddingSparameters") + mock_library.niRFSG_GetDeembeddingSparameters.return_value = 0 + mock_library.niRFSG_GetDeembeddingTableNumberOfPorts.side_effect = MockFunctionCallError("niRFSG_GetDeembeddingTableNumberOfPorts") + mock_library.niRFSG_GetDeembeddingTableNumberOfPorts.return_value = 0 + mock_library.niRFSG_GetError.side_effect = MockFunctionCallError("niRFSG_GetError") + mock_library.niRFSG_GetError.return_value = 0 + mock_library.niRFSG_GetExternalCalibrationLastDateAndTime.side_effect = MockFunctionCallError("niRFSG_GetExternalCalibrationLastDateAndTime") + mock_library.niRFSG_GetExternalCalibrationLastDateAndTime.return_value = 0 + mock_library.niRFSG_GetMaxSettablePower.side_effect = MockFunctionCallError("niRFSG_GetMaxSettablePower") + mock_library.niRFSG_GetMaxSettablePower.return_value = 0 + mock_library.niRFSG_GetScript.side_effect = MockFunctionCallError("niRFSG_GetScript") + mock_library.niRFSG_GetScript.return_value = 0 + mock_library.niRFSG_GetSelfCalibrationDateAndTime.side_effect = MockFunctionCallError("niRFSG_GetSelfCalibrationDateAndTime") + mock_library.niRFSG_GetSelfCalibrationDateAndTime.return_value = 0 + mock_library.niRFSG_GetSelfCalibrationTemperature.side_effect = MockFunctionCallError("niRFSG_GetSelfCalibrationTemperature") + mock_library.niRFSG_GetSelfCalibrationTemperature.return_value = 0 + mock_library.niRFSG_GetTerminalName.side_effect = MockFunctionCallError("niRFSG_GetTerminalName") + mock_library.niRFSG_GetTerminalName.return_value = 0 + mock_library.niRFSG_GetWaveformBurstStartLocations.side_effect = MockFunctionCallError("niRFSG_GetWaveformBurstStartLocations") + mock_library.niRFSG_GetWaveformBurstStartLocations.return_value = 0 + mock_library.niRFSG_GetWaveformBurstStopLocations.side_effect = MockFunctionCallError("niRFSG_GetWaveformBurstStopLocations") + mock_library.niRFSG_GetWaveformBurstStopLocations.return_value = 0 + mock_library.niRFSG_GetWaveformMarkerEventLocations.side_effect = MockFunctionCallError("niRFSG_GetWaveformMarkerEventLocations") + mock_library.niRFSG_GetWaveformMarkerEventLocations.return_value = 0 + mock_library.niRFSG_InitWithOptions.side_effect = MockFunctionCallError("niRFSG_InitWithOptions") + mock_library.niRFSG_InitWithOptions.return_value = 0 + mock_library.niRFSG_Initiate.side_effect = MockFunctionCallError("niRFSG_Initiate") + mock_library.niRFSG_Initiate.return_value = 0 + mock_library.niRFSG_LoadConfigurationsFromFile.side_effect = MockFunctionCallError("niRFSG_LoadConfigurationsFromFile") + mock_library.niRFSG_LoadConfigurationsFromFile.return_value = 0 + mock_library.niRFSG_LockSession.side_effect = MockFunctionCallError("niRFSG_LockSession") + mock_library.niRFSG_LockSession.return_value = 0 + mock_library.niRFSG_PerformPowerSearch.side_effect = MockFunctionCallError("niRFSG_PerformPowerSearch") + mock_library.niRFSG_PerformPowerSearch.return_value = 0 + mock_library.niRFSG_PerformThermalCorrection.side_effect = MockFunctionCallError("niRFSG_PerformThermalCorrection") + mock_library.niRFSG_PerformThermalCorrection.return_value = 0 + mock_library.niRFSG_QueryArbWaveformCapabilities.side_effect = MockFunctionCallError("niRFSG_QueryArbWaveformCapabilities") + mock_library.niRFSG_QueryArbWaveformCapabilities.return_value = 0 + mock_library.niRFSG_ReadAndDownloadWaveformFromFileTDMS.side_effect = MockFunctionCallError("niRFSG_ReadAndDownloadWaveformFromFileTDMS") + mock_library.niRFSG_ReadAndDownloadWaveformFromFileTDMS.return_value = 0 + mock_library.niRFSG_ResetDevice.side_effect = MockFunctionCallError("niRFSG_ResetDevice") + mock_library.niRFSG_ResetDevice.return_value = 0 + mock_library.niRFSG_ResetWithDefaults.side_effect = MockFunctionCallError("niRFSG_ResetWithDefaults") + mock_library.niRFSG_ResetWithDefaults.return_value = 0 + mock_library.niRFSG_ResetWithOptions.side_effect = MockFunctionCallError("niRFSG_ResetWithOptions") + mock_library.niRFSG_ResetWithOptions.return_value = 0 + mock_library.niRFSG_SaveConfigurationsToFile.side_effect = MockFunctionCallError("niRFSG_SaveConfigurationsToFile") + mock_library.niRFSG_SaveConfigurationsToFile.return_value = 0 + mock_library.niRFSG_SelectArbWaveform.side_effect = MockFunctionCallError("niRFSG_SelectArbWaveform") + mock_library.niRFSG_SelectArbWaveform.return_value = 0 + mock_library.niRFSG_SelfCal.side_effect = MockFunctionCallError("niRFSG_SelfCal") + mock_library.niRFSG_SelfCal.return_value = 0 + mock_library.niRFSG_SelfCalibrateRange.side_effect = MockFunctionCallError("niRFSG_SelfCalibrateRange") + mock_library.niRFSG_SelfCalibrateRange.return_value = 0 + mock_library.niRFSG_SendSoftwareEdgeTrigger.side_effect = MockFunctionCallError("niRFSG_SendSoftwareEdgeTrigger") + mock_library.niRFSG_SendSoftwareEdgeTrigger.return_value = 0 + mock_library.niRFSG_SetArbWaveformNextWritePosition.side_effect = MockFunctionCallError("niRFSG_SetArbWaveformNextWritePosition") + mock_library.niRFSG_SetArbWaveformNextWritePosition.return_value = 0 + mock_library.niRFSG_SetAttributeViBoolean.side_effect = MockFunctionCallError("niRFSG_SetAttributeViBoolean") + mock_library.niRFSG_SetAttributeViBoolean.return_value = 0 + mock_library.niRFSG_SetAttributeViInt32.side_effect = MockFunctionCallError("niRFSG_SetAttributeViInt32") + mock_library.niRFSG_SetAttributeViInt32.return_value = 0 + mock_library.niRFSG_SetAttributeViInt64.side_effect = MockFunctionCallError("niRFSG_SetAttributeViInt64") + mock_library.niRFSG_SetAttributeViInt64.return_value = 0 + mock_library.niRFSG_SetAttributeViReal64.side_effect = MockFunctionCallError("niRFSG_SetAttributeViReal64") + mock_library.niRFSG_SetAttributeViReal64.return_value = 0 + mock_library.niRFSG_SetAttributeViSession.side_effect = MockFunctionCallError("niRFSG_SetAttributeViSession") + mock_library.niRFSG_SetAttributeViSession.return_value = 0 + mock_library.niRFSG_SetAttributeViString.side_effect = MockFunctionCallError("niRFSG_SetAttributeViString") + mock_library.niRFSG_SetAttributeViString.return_value = 0 + mock_library.niRFSG_SetWaveformBurstStartLocations.side_effect = MockFunctionCallError("niRFSG_SetWaveformBurstStartLocations") + mock_library.niRFSG_SetWaveformBurstStartLocations.return_value = 0 + mock_library.niRFSG_SetWaveformBurstStopLocations.side_effect = MockFunctionCallError("niRFSG_SetWaveformBurstStopLocations") + mock_library.niRFSG_SetWaveformBurstStopLocations.return_value = 0 + mock_library.niRFSG_SetWaveformMarkerEventLocations.side_effect = MockFunctionCallError("niRFSG_SetWaveformMarkerEventLocations") + mock_library.niRFSG_SetWaveformMarkerEventLocations.return_value = 0 + mock_library.niRFSG_UnlockSession.side_effect = MockFunctionCallError("niRFSG_UnlockSession") + mock_library.niRFSG_UnlockSession.return_value = 0 + mock_library.niRFSG_WaitUntilSettled.side_effect = MockFunctionCallError("niRFSG_WaitUntilSettled") + mock_library.niRFSG_WaitUntilSettled.return_value = 0 + mock_library.niRFSG_WriteArbWaveformComplexF32.side_effect = MockFunctionCallError("niRFSG_WriteArbWaveformComplexF32") + mock_library.niRFSG_WriteArbWaveformComplexF32.return_value = 0 + mock_library.niRFSG_WriteArbWaveformComplexF64.side_effect = MockFunctionCallError("niRFSG_WriteArbWaveformComplexF64") + mock_library.niRFSG_WriteArbWaveformComplexF64.return_value = 0 + mock_library.niRFSG_WriteArbWaveformComplexI16.side_effect = MockFunctionCallError("niRFSG_WriteArbWaveformComplexI16") + mock_library.niRFSG_WriteArbWaveformComplexI16.return_value = 0 + mock_library.niRFSG_WriteScript.side_effect = MockFunctionCallError("niRFSG_WriteScript") + mock_library.niRFSG_WriteScript.return_value = 0 + mock_library.niRFSG_close.side_effect = MockFunctionCallError("niRFSG_close") + mock_library.niRFSG_close.return_value = 0 + mock_library.niRFSG_reset.side_effect = MockFunctionCallError("niRFSG_reset") + mock_library.niRFSG_reset.return_value = 0 + mock_library.niRFSG_self_test.side_effect = MockFunctionCallError("niRFSG_self_test") + mock_library.niRFSG_self_test.return_value = 0 diff --git a/generated/nirfsg/setup.py b/generated/nirfsg/setup.py new file mode 100644 index 0000000000..baa52e289d --- /dev/null +++ b/generated/nirfsg/setup.py @@ -0,0 +1,65 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nirfsg' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.2.1.dev0', + description='NI-RFSG Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nirfsg'], + license='MIT', + include_package_data=True, + packages=['nirfsg'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + 'nitclk', + 'numpy', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nirfsg/tox-system_tests.ini b/generated/nirfsg/tox-system_tests.ini new file mode 100644 index 0000000000..da07dae76d --- /dev/null +++ b/generated/nirfsg/tox-system_tests.ini @@ -0,0 +1,73 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nirfsg) +[tox] +envlist = py{310,311,312,313,314}-nirfsg-wheel_dep,py{310,311,312,313,314}-nirfsg-system_tests, py314-nirfsg-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nirfsg-wheel_dep: Build the nitclk wheel because we use it in nirfsg tests + nirfsg-system_tests: Run nirfsg system tests (requires NI-RFSG runtime to be installed) + nirfsg-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nirfsg-wheel_dep: ../nitclk + nirfsg-system_tests: . + nirfsg-coverage: . + +commands = + nirfsg-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nirfsg-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nirfsg-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. + nirfsg-system_tests: python -c "import nirfsg; nirfsg.print_diagnostic_information()" + nirfsg-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsg --parallel-mode -m pytest ../../src/nirfsg/examples --junitxml=../junit/junit-nirfsg-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nirfsg-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nirfsg --parallel-mode -m pytest ../../src/nirfsg/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nirfsg-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nirfsg-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nirfsg-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nirfsg-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nirfsg-wheel_dep: build + + nirfsg-system_tests: pytest < 9.2.0 + nirfsg-system_tests: coverage + nirfsg-system_tests: numpy + nirfsg-system_tests: hightime + nirfsg-system_tests: fasteners + nirfsg-system_tests: pytest-json + nirfsg-system_tests: .[grpc] + + nirfsg-coverage: coverage + +depends = + nirfsg-coverage: py{310,311,312,313,314}-nirfsg-system_tests + nirfsg-system_tests: py{310,311,312,313,314}-nirfsg-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/niscope/README.rst b/generated/niscope/README.rst new file mode 100644 index 0000000000..468f54d9cd --- /dev/null +++ b/generated/niscope/README.rst @@ -0,0 +1,186 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **niscope** module provides a Python API for NI-SCOPE. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**niscope** supports all the Operating Systems supported by NI-SCOPE. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **niscope**. + + +NI-SCOPE Python API Status +-------------------------- + ++-------------------------------+------------------------+ +| NI-SCOPE (niscope) | | ++===============================+========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+------------------------+ +| PyPI Version | |niscopeLatestVersion| | ++-------------------------------+------------------------+ +| Supported Python Version | |niscopePythonVersion| | ++-------------------------------+------------------------+ +| Documentation | |niscopeDocs| | ++-------------------------------+------------------------+ +| Open Issues | |niscopeOpenIssues| | ++-------------------------------+------------------------+ +| Open Pull Requests | |niscopeOpenPRs| | ++-------------------------------+------------------------+ + + +.. |niscopeLatestVersion| image:: http://img.shields.io/pypi/v/niscope.svg + :alt: Latest NI-SCOPE Version + :target: http://pypi.python.org/pypi/niscope + + +.. |niscopePythonVersion| image:: http://img.shields.io/pypi/pyversions/niscope.svg + :alt: NI-SCOPE supported Python versions + :target: http://pypi.python.org/pypi/niscope + + +.. |niscopeDocs| image:: https://readthedocs.org/projects/niscope/badge/?version=latest + :alt: NI-SCOPE Python API Documentation Status + :target: https://niscope.readthedocs.io/en/latest + + +.. |niscopeOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niscope.svg + :alt: Open Issues + Pull Requests for NI-SCOPE + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniscope + + +.. |niscopeOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niscope.svg + :alt: Pull Requests for NI-SCOPE + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniscope + + + +.. _niscope_installation-section: + +Installation +------------ + +As a prerequisite to using the **niscope** module, you must install the NI-SCOPE runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-SCOPE**) can be installed with `pip `_:: + + $ python -m pip install niscope + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **niscope** module to open a session to a High Speed Digitizer and capture a single record of 1000 points. + +.. code-block:: python + + import niscope + with niscope.Session("Dev1") as session: + session.channels[0].configure_vertical(range=1.0, coupling=niscope.VerticalCoupling.AC) + session.channels[1].configure_vertical(range=10.0, coupling=niscope.VerticalCoupling.DC) + session.configure_horizontal_timing(min_sample_rate=50000000, min_num_pts=1000, ref_position=50.0, num_records=5, enforce_realtime=True) + with session.initiate(): + waveforms = session.channels[0,1].fetch(num_records=5) + for wfm in waveforms: + print('Channel {}, record {} samples acquired: {:,}\n'.format(wfm.channel, wfm.record, len(wfm.samples))) + + # Find all channel 1 records (Note channel name is always a string even if integers used in channel[]) + chan1 = [wfm for wfm in waveforms if wfm.channel == '0'] + + # Find all record number 3 + rec3 = [wfm for wfm in waveforms if wfm.record == 3] + +If you need faster fetch performance, or to directly interface with `SciPy `_, you can use the **fetch_into()** method instead of **fetch()**. See the fetch_into example. + + +`Other usage examples can be found on GitHub. `_ + + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/niscope/niscope/VERSION b/generated/niscope/niscope/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/niscope/niscope/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/niscope/niscope/__init__.py b/generated/niscope/niscope/__init__.py new file mode 100644 index 0000000000..7a33a7224e --- /dev/null +++ b/generated/niscope/niscope/__init__.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from niscope.enums import * # noqa: F403,F401,H303 +from niscope.errors import DriverWarning # noqa: F401 +from niscope.errors import Error # noqa: F401 +from niscope.grpc_session_options import * # noqa: F403,F401,H303 +from niscope.session import Session # noqa: F401 + +from niscope.waveform_info import WaveformInfo # noqa: F401 + +from niscope.waveform_info import struct_niScope_wfmInfo # noqa: F401 + +from niscope.measurement_stats import MeasurementStats # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-SCOPE\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-SCOPE" + info['driver']['version'] = driver_version + info['module']['name'] = 'niscope' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/niscope/niscope/_attributes.py b/generated/niscope/niscope/_attributes.py new file mode 100644 index 0000000000..5faf08e15b --- /dev/null +++ b/generated/niscope/niscope/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import niscope._converters as _converters +import niscope.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the niscope Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from niscope.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/niscope/niscope/_converters.py b/generated/niscope/niscope/_converters.py new file mode 100644 index 0000000000..78518a9132 --- /dev/null +++ b/generated/niscope/niscope/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import niscope._visatype as _visatype +import niscope.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/niscope/niscope/_grpc_stub_interpreter.py b/generated/niscope/niscope/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..93d12cedba --- /dev/null +++ b/generated/niscope/niscope/_grpc_stub_interpreter.py @@ -0,0 +1,463 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import niscope_pb2 as grpc_types +from . import niscope_pb2_grpc as niscope_grpc + +from . import waveform_info as waveform_info # noqa: F401 + +from . import measurement_stats as measurement_stats # noqa: F401 + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = niscope_grpc.NiScopeStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.Abort, + grpc_types.AbortRequest(vi=self._vi), + ) + + def acquisition_status(self): # noqa: N802 + response = self._invoke( + self._client.AcquisitionStatus, + grpc_types.AcquisitionStatusRequest(vi=self._vi), + ) + return enums.AcquisitionStatus(response.acquisition_status_raw) + + def actual_meas_wfm_size(self, array_meas_function): # noqa: N802 + response = self._invoke( + self._client.ActualMeasWfmSize, + grpc_types.ActualMeasWfmSizeRequest(vi=self._vi, array_meas_function_raw=array_meas_function.value), + ) + return response.meas_waveform_size + + def actual_num_wfms(self, channel_list): # noqa: N802 + response = self._invoke( + self._client.ActualNumWfms, + grpc_types.ActualNumWfmsRequest(vi=self._vi, channel_list=channel_list), + ) + return response.num_wfms + + def add_waveform_processing(self, channel_list, meas_function): # noqa: N802 + self._invoke( + self._client.AddWaveformProcessing, + grpc_types.AddWaveformProcessingRequest(vi=self._vi, channel_list=channel_list, meas_function_raw=meas_function.value), + ) + + def auto_setup(self): # noqa: N802 + self._invoke( + self._client.AutoSetup, + grpc_types.AutoSetupRequest(vi=self._vi), + ) + + def cal_fetch_date(self, which_one): # noqa: N802 + response = self._invoke( + self._client.CalFetchDate, + grpc_types.CalFetchDateRequest(vi=self._vi, which_one_raw=which_one.value), + ) + return response.year, response.month, response.day + + def cal_fetch_temperature(self, which_one): # noqa: N802 + response = self._invoke( + self._client.CalFetchTemperature, + grpc_types.CalFetchTemperatureRequest(vi=self._vi, which_one_raw=which_one), + ) + return response.temperature + + def self_cal(self, channel_list, option): # noqa: N802 + self._invoke( + self._client.CalSelfCalibrate, + grpc_types.CalSelfCalibrateRequest(vi=self._vi, channel_list=channel_list, option_raw=option.value), + ) + + def clear_waveform_measurement_stats(self, channel_list, clearable_measurement_function): # noqa: N802 + self._invoke( + self._client.ClearWaveformMeasurementStats, + grpc_types.ClearWaveformMeasurementStatsRequest(vi=self._vi, channel_list=channel_list, clearable_measurement_function_raw=clearable_measurement_function.value), + ) + + def clear_waveform_processing(self, channel_list): # noqa: N802 + self._invoke( + self._client.ClearWaveformProcessing, + grpc_types.ClearWaveformProcessingRequest(vi=self._vi, channel_list=channel_list), + ) + + def commit(self): # noqa: N802 + self._invoke( + self._client.Commit, + grpc_types.CommitRequest(vi=self._vi), + ) + + def configure_chan_characteristics(self, channel_list, input_impedance, max_input_frequency): # noqa: N802 + self._invoke( + self._client.ConfigureChanCharacteristics, + grpc_types.ConfigureChanCharacteristicsRequest(vi=self._vi, channel_list=channel_list, input_impedance=input_impedance, max_input_frequency=max_input_frequency), + ) + + def configure_equalization_filter_coefficients(self, channel_list, coefficients): # noqa: N802 + self._invoke( + self._client.ConfigureEqualizationFilterCoefficients, + grpc_types.ConfigureEqualizationFilterCoefficientsRequest(vi=self._vi, channel_list=channel_list, coefficients=coefficients), + ) + + def configure_horizontal_timing(self, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 + self._invoke( + self._client.ConfigureHorizontalTiming, + grpc_types.ConfigureHorizontalTimingRequest(vi=self._vi, min_sample_rate=min_sample_rate, min_num_pts=min_num_pts, ref_position=ref_position, num_records=num_records, enforce_realtime=enforce_realtime), + ) + + def configure_ref_levels(self, low, mid, high): # noqa: N802 + raise NotImplementedError('configure_ref_levels is not supported over gRPC') + + def configure_trigger_digital(self, trigger_source, slope, holdoff, delay): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerDigital, + grpc_types.ConfigureTriggerDigitalRequest(vi=self._vi, trigger_source=trigger_source, slope_raw=slope.value, holdoff=holdoff, delay=delay), + ) + + def configure_trigger_edge(self, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerEdge, + grpc_types.ConfigureTriggerEdgeRequest(vi=self._vi, trigger_source=trigger_source, level=level, slope_raw=slope.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), + ) + + def configure_trigger_hysteresis(self, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerHysteresis, + grpc_types.ConfigureTriggerHysteresisRequest(vi=self._vi, trigger_source=trigger_source, level=level, hysteresis=hysteresis, slope_raw=slope.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), + ) + + def configure_trigger_immediate(self): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerImmediate, + grpc_types.ConfigureTriggerImmediateRequest(vi=self._vi), + ) + + def configure_trigger_software(self, holdoff, delay): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerSoftware, + grpc_types.ConfigureTriggerSoftwareRequest(vi=self._vi, holdoff=holdoff, delay=delay), + ) + + def configure_trigger_video(self, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerVideo, + grpc_types.ConfigureTriggerVideoRequest(vi=self._vi, trigger_source=trigger_source, enable_dc_restore=enable_dc_restore, signal_format_raw=signal_format.value, event_raw=event.value, line_number=line_number, polarity_raw=polarity.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), + ) + + def configure_trigger_window(self, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 + self._invoke( + self._client.ConfigureTriggerWindow, + grpc_types.ConfigureTriggerWindowRequest(vi=self._vi, trigger_source=trigger_source, low_level=low_level, high_level=high_level, window_mode_raw=window_mode.value, trigger_coupling_raw=trigger_coupling.value, holdoff=holdoff, delay=delay), + ) + + def configure_vertical(self, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 + self._invoke( + self._client.ConfigureVertical, + grpc_types.ConfigureVerticalRequest(vi=self._vi, channel_list=channel_list, range=range, offset=offset, coupling_raw=coupling.value, probe_attenuation=probe_attenuation, enabled=enabled), + ) + + def disable(self): # noqa: N802 + self._invoke( + self._client.Disable, + grpc_types.DisableRequest(vi=self._vi), + ) + + def export_attribute_configuration_buffer(self): # noqa: N802 + response = self._invoke( + self._client.ExportAttributeConfigurationBuffer, + grpc_types.ExportAttributeConfigurationBufferRequest(vi=self._vi), + ) + return response.configuration + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ExportAttributeConfigurationFile, + grpc_types.ExportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def fetch(self, channel_list, timeout, num_samples): # noqa: N802 + response = self._invoke( + self._client.Fetch, + grpc_types.FetchRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, num_samples=num_samples), + ) + return response.waveform, [waveform_info.WaveformInfo(x) for x in response.wfm_info] + + def fetch_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def fetch_array_measurement(self, channel_list, timeout, array_meas_function, measurement_waveform_size): # noqa: N802 + response = self._invoke( + self._client.FetchArrayMeasurement, + grpc_types.FetchArrayMeasurementRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, array_meas_function_raw=array_meas_function.value, meas_wfm_size=measurement_waveform_size), + ) + return response.meas_wfm, [waveform_info.WaveformInfo(x) for x in response.wfm_info] + + def fetch_binary16_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def fetch_binary32_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def fetch_binary8_into_numpy(self, channel_list, timeout, num_samples): # noqa: N802 + raise NotImplementedError('numpy-specific methods are not supported over gRPC') + + def fetch_measurement_stats(self, channel_list, timeout, scalar_meas_function): # noqa: N802 + response = self._invoke( + self._client.FetchMeasurementStats, + grpc_types.FetchMeasurementStatsRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, scalar_meas_function_raw=scalar_meas_function.value), + ) + return response.result, response.mean, response.stdev, response.min, response.max, response.num_in_stats + + def get_attribute_vi_boolean(self, channel_list, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_int32(self, channel_list, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_int64(self, channel_list, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt64, + grpc_types.GetAttributeViInt64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_real64(self, channel_list, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), + ) + return response.value + + def get_attribute_vi_string(self, channel_list, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id), + ) + return response.value + + def get_channel_names(self, indices): # noqa: N802 + response = self._invoke( + self._client.GetChannelNameFromString, + grpc_types.GetChannelNameFromStringRequest(vi=self._vi, index=indices), + ) + return response.name + + def get_equalization_filter_coefficients(self, channel, number_of_coefficients): # noqa: N802 + response = self._invoke( + self._client.GetEqualizationFilterCoefficients, + grpc_types.GetEqualizationFilterCoefficientsRequest(vi=self._vi, channel=channel, number_of_coefficients=number_of_coefficients), + ) + return response.coefficients + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.error_code, response.description + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationBuffer, + grpc_types.ImportAttributeConfigurationBufferRequest(vi=self._vi, configuration=configuration), + ) + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + self._invoke( + self._client.ImportAttributeConfigurationFile, + grpc_types.ImportAttributeConfigurationFileRequest(vi=self._vi, file_path=file_path), + ) + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithOptions, + grpc_types.InitWithOptionsRequest(resource_name=resource_name, id_query=id_query, reset_device=reset_device, option_string=option_string, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate_acquisition(self): # noqa: N802 + self._invoke( + self._client.InitiateAcquisition, + grpc_types.InitiateAcquisitionRequest(vi=self._vi), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def probe_compensation_signal_start(self): # noqa: N802 + self._invoke( + self._client.ProbeCompensationSignalStart, + grpc_types.ProbeCompensationSignalStartRequest(vi=self._vi), + ) + + def probe_compensation_signal_stop(self): # noqa: N802 + self._invoke( + self._client.ProbeCompensationSignalStop, + grpc_types.ProbeCompensationSignalStopRequest(vi=self._vi), + ) + + def read(self, channel_list, timeout, num_samples): # noqa: N802 + response = self._invoke( + self._client.Read, + grpc_types.ReadRequest(vi=self._vi, channel_list=channel_list, timeout=timeout, num_samples=num_samples), + ) + return response.waveform, [waveform_info.WaveformInfo(x) for x in response.wfm_info] + + def reset_device(self): # noqa: N802 + self._invoke( + self._client.ResetDevice, + grpc_types.ResetDeviceRequest(vi=self._vi), + ) + + def reset_with_defaults(self): # noqa: N802 + raise NotImplementedError('reset_with_defaults is not supported over gRPC') + + def send_software_trigger_edge(self, which_trigger): # noqa: N802 + self._invoke( + self._client.SendSoftwareTriggerEdge, + grpc_types.SendSoftwareTriggerEdgeRequest(vi=self._vi, which_trigger_raw=which_trigger.value), + ) + + def set_attribute_vi_boolean(self, channel_list, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value=value), + ) + + def set_attribute_vi_int32(self, channel_list, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), + ) + + def set_attribute_vi_int64(self, channel_list, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt64, + grpc_types.SetAttributeViInt64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), + ) + + def set_attribute_vi_real64(self, channel_list, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), + ) + + def set_attribute_vi_string(self, channel_list, attribute_id, value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_list=channel_list, attribute_id=attribute_id, value_raw=value), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def unlock(self): # noqa: N802 + self._lock.release() + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.GetErrorMessage, + grpc_types.GetErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.self_test_result, response.self_test_message diff --git a/generated/niscope/niscope/_library.py b/generated/niscope/niscope/_library.py new file mode 100644 index 0000000000..da85e7765a --- /dev/null +++ b/generated/niscope/niscope/_library.py @@ -0,0 +1,599 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import niscope.errors as errors +import threading + +from niscope._visatype import * # noqa: F403,H303 + +import niscope.waveform_info as waveform_info # noqa: F401 + +import niscope.measurement_stats as measurement_stats # noqa: F401 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niScope_Abort_cfunc = None + self.niScope_AcquisitionStatus_cfunc = None + self.niScope_ActualMeasWfmSize_cfunc = None + self.niScope_ActualNumWfms_cfunc = None + self.niScope_AddWaveformProcessing_cfunc = None + self.niScope_AutoSetup_cfunc = None + self.niScope_CalFetchDate_cfunc = None + self.niScope_CalFetchTemperature_cfunc = None + self.niScope_CalSelfCalibrate_cfunc = None + self.niScope_ClearWaveformMeasurementStats_cfunc = None + self.niScope_ClearWaveformProcessing_cfunc = None + self.niScope_Commit_cfunc = None + self.niScope_ConfigureChanCharacteristics_cfunc = None + self.niScope_ConfigureEqualizationFilterCoefficients_cfunc = None + self.niScope_ConfigureHorizontalTiming_cfunc = None + self.niScope_ConfigureRefLevels_cfunc = None + self.niScope_ConfigureTriggerDigital_cfunc = None + self.niScope_ConfigureTriggerEdge_cfunc = None + self.niScope_ConfigureTriggerHysteresis_cfunc = None + self.niScope_ConfigureTriggerImmediate_cfunc = None + self.niScope_ConfigureTriggerSoftware_cfunc = None + self.niScope_ConfigureTriggerVideo_cfunc = None + self.niScope_ConfigureTriggerWindow_cfunc = None + self.niScope_ConfigureVertical_cfunc = None + self.niScope_Disable_cfunc = None + self.niScope_ExportAttributeConfigurationBuffer_cfunc = None + self.niScope_ExportAttributeConfigurationFile_cfunc = None + self.niScope_Fetch_cfunc = None + self.niScope_FetchArrayMeasurement_cfunc = None + self.niScope_FetchBinary16_cfunc = None + self.niScope_FetchBinary32_cfunc = None + self.niScope_FetchBinary8_cfunc = None + self.niScope_FetchMeasurementStats_cfunc = None + self.niScope_GetAttributeViBoolean_cfunc = None + self.niScope_GetAttributeViInt32_cfunc = None + self.niScope_GetAttributeViInt64_cfunc = None + self.niScope_GetAttributeViReal64_cfunc = None + self.niScope_GetAttributeViString_cfunc = None + self.niScope_GetChannelNameFromString_cfunc = None + self.niScope_GetEqualizationFilterCoefficients_cfunc = None + self.niScope_GetError_cfunc = None + self.niScope_ImportAttributeConfigurationBuffer_cfunc = None + self.niScope_ImportAttributeConfigurationFile_cfunc = None + self.niScope_InitWithOptions_cfunc = None + self.niScope_InitiateAcquisition_cfunc = None + self.niScope_LockSession_cfunc = None + self.niScope_ProbeCompensationSignalStart_cfunc = None + self.niScope_ProbeCompensationSignalStop_cfunc = None + self.niScope_Read_cfunc = None + self.niScope_ResetDevice_cfunc = None + self.niScope_ResetWithDefaults_cfunc = None + self.niScope_SendSoftwareTriggerEdge_cfunc = None + self.niScope_SetAttributeViBoolean_cfunc = None + self.niScope_SetAttributeViInt32_cfunc = None + self.niScope_SetAttributeViInt64_cfunc = None + self.niScope_SetAttributeViReal64_cfunc = None + self.niScope_SetAttributeViString_cfunc = None + self.niScope_SetRuntimeEnvironment_cfunc = None + self.niScope_UnlockSession_cfunc = None + self.niScope_close_cfunc = None + self.niScope_error_message_cfunc = None + self.niScope_reset_cfunc = None + self.niScope_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niScope_Abort(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_Abort_cfunc is None: + self.niScope_Abort_cfunc = self._get_library_function('niScope_Abort') + self.niScope_Abort_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_Abort_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_Abort_cfunc(vi) + + def niScope_AcquisitionStatus(self, vi, acquisition_status): # noqa: N802 + with self._func_lock: + if self.niScope_AcquisitionStatus_cfunc is None: + self.niScope_AcquisitionStatus_cfunc = self._get_library_function('niScope_AcquisitionStatus') + self.niScope_AcquisitionStatus_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niScope_AcquisitionStatus_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_AcquisitionStatus_cfunc(vi, acquisition_status) + + def niScope_ActualMeasWfmSize(self, vi, array_meas_function, meas_waveform_size): # noqa: N802 + with self._func_lock: + if self.niScope_ActualMeasWfmSize_cfunc is None: + self.niScope_ActualMeasWfmSize_cfunc = self._get_library_function('niScope_ActualMeasWfmSize') + self.niScope_ActualMeasWfmSize_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niScope_ActualMeasWfmSize_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ActualMeasWfmSize_cfunc(vi, array_meas_function, meas_waveform_size) + + def niScope_ActualNumWfms(self, vi, channel_list, num_wfms): # noqa: N802 + with self._func_lock: + if self.niScope_ActualNumWfms_cfunc is None: + self.niScope_ActualNumWfms_cfunc = self._get_library_function('niScope_ActualNumWfms') + self.niScope_ActualNumWfms_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niScope_ActualNumWfms_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ActualNumWfms_cfunc(vi, channel_list, num_wfms) + + def niScope_AddWaveformProcessing(self, vi, channel_list, meas_function): # noqa: N802 + with self._func_lock: + if self.niScope_AddWaveformProcessing_cfunc is None: + self.niScope_AddWaveformProcessing_cfunc = self._get_library_function('niScope_AddWaveformProcessing') + self.niScope_AddWaveformProcessing_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niScope_AddWaveformProcessing_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_AddWaveformProcessing_cfunc(vi, channel_list, meas_function) + + def niScope_AutoSetup(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_AutoSetup_cfunc is None: + self.niScope_AutoSetup_cfunc = self._get_library_function('niScope_AutoSetup') + self.niScope_AutoSetup_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_AutoSetup_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_AutoSetup_cfunc(vi) + + def niScope_CalFetchDate(self, vi, which_one, year, month, day): # noqa: N802 + with self._func_lock: + if self.niScope_CalFetchDate_cfunc is None: + self.niScope_CalFetchDate_cfunc = self._get_library_function('niScope_CalFetchDate') + self.niScope_CalFetchDate_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niScope_CalFetchDate_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_CalFetchDate_cfunc(vi, which_one, year, month, day) + + def niScope_CalFetchTemperature(self, vi, which_one, temperature): # noqa: N802 + with self._func_lock: + if self.niScope_CalFetchTemperature_cfunc is None: + self.niScope_CalFetchTemperature_cfunc = self._get_library_function('niScope_CalFetchTemperature') + self.niScope_CalFetchTemperature_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niScope_CalFetchTemperature_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_CalFetchTemperature_cfunc(vi, which_one, temperature) + + def niScope_CalSelfCalibrate(self, vi, channel_list, option): # noqa: N802 + with self._func_lock: + if self.niScope_CalSelfCalibrate_cfunc is None: + self.niScope_CalSelfCalibrate_cfunc = self._get_library_function('niScope_CalSelfCalibrate') + self.niScope_CalSelfCalibrate_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niScope_CalSelfCalibrate_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_CalSelfCalibrate_cfunc(vi, channel_list, option) + + def niScope_ClearWaveformMeasurementStats(self, vi, channel_list, clearable_measurement_function): # noqa: N802 + with self._func_lock: + if self.niScope_ClearWaveformMeasurementStats_cfunc is None: + self.niScope_ClearWaveformMeasurementStats_cfunc = self._get_library_function('niScope_ClearWaveformMeasurementStats') + self.niScope_ClearWaveformMeasurementStats_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niScope_ClearWaveformMeasurementStats_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ClearWaveformMeasurementStats_cfunc(vi, channel_list, clearable_measurement_function) + + def niScope_ClearWaveformProcessing(self, vi, channel_list): # noqa: N802 + with self._func_lock: + if self.niScope_ClearWaveformProcessing_cfunc is None: + self.niScope_ClearWaveformProcessing_cfunc = self._get_library_function('niScope_ClearWaveformProcessing') + self.niScope_ClearWaveformProcessing_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_ClearWaveformProcessing_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ClearWaveformProcessing_cfunc(vi, channel_list) + + def niScope_Commit(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_Commit_cfunc is None: + self.niScope_Commit_cfunc = self._get_library_function('niScope_Commit') + self.niScope_Commit_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_Commit_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_Commit_cfunc(vi) + + def niScope_ConfigureChanCharacteristics(self, vi, channel_list, input_impedance, max_input_frequency): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureChanCharacteristics_cfunc is None: + self.niScope_ConfigureChanCharacteristics_cfunc = self._get_library_function('niScope_ConfigureChanCharacteristics') + self.niScope_ConfigureChanCharacteristics_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureChanCharacteristics_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureChanCharacteristics_cfunc(vi, channel_list, input_impedance, max_input_frequency) + + def niScope_ConfigureEqualizationFilterCoefficients(self, vi, channel_list, number_of_coefficients, coefficients): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureEqualizationFilterCoefficients_cfunc is None: + self.niScope_ConfigureEqualizationFilterCoefficients_cfunc = self._get_library_function('niScope_ConfigureEqualizationFilterCoefficients') + self.niScope_ConfigureEqualizationFilterCoefficients_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niScope_ConfigureEqualizationFilterCoefficients_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureEqualizationFilterCoefficients_cfunc(vi, channel_list, number_of_coefficients, coefficients) + + def niScope_ConfigureHorizontalTiming(self, vi, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureHorizontalTiming_cfunc is None: + self.niScope_ConfigureHorizontalTiming_cfunc = self._get_library_function('niScope_ConfigureHorizontalTiming') + self.niScope_ConfigureHorizontalTiming_cfunc.argtypes = [ViSession, ViReal64, ViInt32, ViReal64, ViInt32, ViBoolean] # noqa: F405 + self.niScope_ConfigureHorizontalTiming_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureHorizontalTiming_cfunc(vi, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime) + + def niScope_ConfigureRefLevels(self, vi, low, mid, high): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureRefLevels_cfunc is None: + self.niScope_ConfigureRefLevels_cfunc = self._get_library_function('niScope_ConfigureRefLevels') + self.niScope_ConfigureRefLevels_cfunc.argtypes = [ViSession, ViReal64, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureRefLevels_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureRefLevels_cfunc(vi, low, mid, high) + + def niScope_ConfigureTriggerDigital(self, vi, trigger_source, slope, holdoff, delay): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerDigital_cfunc is None: + self.niScope_ConfigureTriggerDigital_cfunc = self._get_library_function('niScope_ConfigureTriggerDigital') + self.niScope_ConfigureTriggerDigital_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureTriggerDigital_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerDigital_cfunc(vi, trigger_source, slope, holdoff, delay) + + def niScope_ConfigureTriggerEdge(self, vi, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerEdge_cfunc is None: + self.niScope_ConfigureTriggerEdge_cfunc = self._get_library_function('niScope_ConfigureTriggerEdge') + self.niScope_ConfigureTriggerEdge_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureTriggerEdge_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerEdge_cfunc(vi, trigger_source, level, slope, trigger_coupling, holdoff, delay) + + def niScope_ConfigureTriggerHysteresis(self, vi, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerHysteresis_cfunc is None: + self.niScope_ConfigureTriggerHysteresis_cfunc = self._get_library_function('niScope_ConfigureTriggerHysteresis') + self.niScope_ConfigureTriggerHysteresis_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureTriggerHysteresis_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerHysteresis_cfunc(vi, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay) + + def niScope_ConfigureTriggerImmediate(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerImmediate_cfunc is None: + self.niScope_ConfigureTriggerImmediate_cfunc = self._get_library_function('niScope_ConfigureTriggerImmediate') + self.niScope_ConfigureTriggerImmediate_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_ConfigureTriggerImmediate_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerImmediate_cfunc(vi) + + def niScope_ConfigureTriggerSoftware(self, vi, holdoff, delay): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerSoftware_cfunc is None: + self.niScope_ConfigureTriggerSoftware_cfunc = self._get_library_function('niScope_ConfigureTriggerSoftware') + self.niScope_ConfigureTriggerSoftware_cfunc.argtypes = [ViSession, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureTriggerSoftware_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerSoftware_cfunc(vi, holdoff, delay) + + def niScope_ConfigureTriggerVideo(self, vi, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerVideo_cfunc is None: + self.niScope_ConfigureTriggerVideo_cfunc = self._get_library_function('niScope_ConfigureTriggerVideo') + self.niScope_ConfigureTriggerVideo_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViBoolean, ViInt32, ViInt32, ViInt32, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureTriggerVideo_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerVideo_cfunc(vi, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay) + + def niScope_ConfigureTriggerWindow(self, vi, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureTriggerWindow_cfunc is None: + self.niScope_ConfigureTriggerWindow_cfunc = self._get_library_function('niScope_ConfigureTriggerWindow') + self.niScope_ConfigureTriggerWindow_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViInt32, ViInt32, ViReal64, ViReal64] # noqa: F405 + self.niScope_ConfigureTriggerWindow_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureTriggerWindow_cfunc(vi, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay) + + def niScope_ConfigureVertical(self, vi, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 + with self._func_lock: + if self.niScope_ConfigureVertical_cfunc is None: + self.niScope_ConfigureVertical_cfunc = self._get_library_function('niScope_ConfigureVertical') + self.niScope_ConfigureVertical_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViReal64, ViInt32, ViReal64, ViBoolean] # noqa: F405 + self.niScope_ConfigureVertical_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ConfigureVertical_cfunc(vi, channel_list, range, offset, coupling, probe_attenuation, enabled) + + def niScope_Disable(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_Disable_cfunc is None: + self.niScope_Disable_cfunc = self._get_library_function('niScope_Disable') + self.niScope_Disable_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_Disable_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_Disable_cfunc(vi) + + def niScope_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + with self._func_lock: + if self.niScope_ExportAttributeConfigurationBuffer_cfunc is None: + self.niScope_ExportAttributeConfigurationBuffer_cfunc = self._get_library_function('niScope_ExportAttributeConfigurationBuffer') + self.niScope_ExportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niScope_ExportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ExportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) + + def niScope_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niScope_ExportAttributeConfigurationFile_cfunc is None: + self.niScope_ExportAttributeConfigurationFile_cfunc = self._get_library_function('niScope_ExportAttributeConfigurationFile') + self.niScope_ExportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_ExportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ExportAttributeConfigurationFile_cfunc(vi, file_path) + + def niScope_Fetch(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + with self._func_lock: + if self.niScope_Fetch_cfunc is None: + self.niScope_Fetch_cfunc = self._get_library_function('niScope_Fetch') + self.niScope_Fetch_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 + self.niScope_Fetch_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_Fetch_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) + + def niScope_FetchArrayMeasurement(self, vi, channel_list, timeout, array_meas_function, measurement_waveform_size, meas_wfm, wfm_info): # noqa: N802 + with self._func_lock: + if self.niScope_FetchArrayMeasurement_cfunc is None: + self.niScope_FetchArrayMeasurement_cfunc = self._get_library_function('niScope_FetchArrayMeasurement') + self.niScope_FetchArrayMeasurement_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 + self.niScope_FetchArrayMeasurement_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_FetchArrayMeasurement_cfunc(vi, channel_list, timeout, array_meas_function, measurement_waveform_size, meas_wfm, wfm_info) + + def niScope_FetchBinary16(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + with self._func_lock: + if self.niScope_FetchBinary16_cfunc is None: + self.niScope_FetchBinary16_cfunc = self._get_library_function('niScope_FetchBinary16') + self.niScope_FetchBinary16_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViInt16), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 + self.niScope_FetchBinary16_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_FetchBinary16_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) + + def niScope_FetchBinary32(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + with self._func_lock: + if self.niScope_FetchBinary32_cfunc is None: + self.niScope_FetchBinary32_cfunc = self._get_library_function('niScope_FetchBinary32') + self.niScope_FetchBinary32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViInt32), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 + self.niScope_FetchBinary32_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_FetchBinary32_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) + + def niScope_FetchBinary8(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + with self._func_lock: + if self.niScope_FetchBinary8_cfunc is None: + self.niScope_FetchBinary8_cfunc = self._get_library_function('niScope_FetchBinary8') + self.niScope_FetchBinary8_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViInt8), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 + self.niScope_FetchBinary8_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_FetchBinary8_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) + + def niScope_FetchMeasurementStats(self, vi, channel_list, timeout, scalar_meas_function, result, mean, stdev, min, max, num_in_stats): # noqa: N802 + with self._func_lock: + if self.niScope_FetchMeasurementStats_cfunc is None: + self.niScope_FetchMeasurementStats_cfunc = self._get_library_function('niScope_FetchMeasurementStats') + self.niScope_FetchMeasurementStats_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViReal64), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niScope_FetchMeasurementStats_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_FetchMeasurementStats_cfunc(vi, channel_list, timeout, scalar_meas_function, result, mean, stdev, min, max, num_in_stats) + + def niScope_GetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_GetAttributeViBoolean_cfunc is None: + self.niScope_GetAttributeViBoolean_cfunc = self._get_library_function('niScope_GetAttributeViBoolean') + self.niScope_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niScope_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetAttributeViBoolean_cfunc(vi, channel_list, attribute_id, value) + + def niScope_GetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_GetAttributeViInt32_cfunc is None: + self.niScope_GetAttributeViInt32_cfunc = self._get_library_function('niScope_GetAttributeViInt32') + self.niScope_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niScope_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetAttributeViInt32_cfunc(vi, channel_list, attribute_id, value) + + def niScope_GetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_GetAttributeViInt64_cfunc is None: + self.niScope_GetAttributeViInt64_cfunc = self._get_library_function('niScope_GetAttributeViInt64') + self.niScope_GetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt64)] # noqa: F405 + self.niScope_GetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetAttributeViInt64_cfunc(vi, channel_list, attribute_id, value) + + def niScope_GetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_GetAttributeViReal64_cfunc is None: + self.niScope_GetAttributeViReal64_cfunc = self._get_library_function('niScope_GetAttributeViReal64') + self.niScope_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niScope_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetAttributeViReal64_cfunc(vi, channel_list, attribute_id, value) + + def niScope_GetAttributeViString(self, vi, channel_list, attribute_id, buf_size, value): # noqa: N802 + with self._func_lock: + if self.niScope_GetAttributeViString_cfunc is None: + self.niScope_GetAttributeViString_cfunc = self._get_library_function('niScope_GetAttributeViString') + self.niScope_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetAttributeViString_cfunc(vi, channel_list, attribute_id, buf_size, value) + + def niScope_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 + with self._func_lock: + if self.niScope_GetChannelNameFromString_cfunc is None: + self.niScope_GetChannelNameFromString_cfunc = self._get_library_function('niScope_GetChannelNameFromString') + self.niScope_GetChannelNameFromString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_GetChannelNameFromString_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetChannelNameFromString_cfunc(vi, indices, buffer_size, names) + + def niScope_GetEqualizationFilterCoefficients(self, vi, channel, number_of_coefficients, coefficients): # noqa: N802 + with self._func_lock: + if self.niScope_GetEqualizationFilterCoefficients_cfunc is None: + self.niScope_GetEqualizationFilterCoefficients_cfunc = self._get_library_function('niScope_GetEqualizationFilterCoefficients') + self.niScope_GetEqualizationFilterCoefficients_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niScope_GetEqualizationFilterCoefficients_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetEqualizationFilterCoefficients_cfunc(vi, channel, number_of_coefficients, coefficients) + + def niScope_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + with self._func_lock: + if self.niScope_GetError_cfunc is None: + self.niScope_GetError_cfunc = self._get_library_function('niScope_GetError') + self.niScope_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_GetError_cfunc(vi, error_code, buffer_size, description) + + def niScope_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + with self._func_lock: + if self.niScope_ImportAttributeConfigurationBuffer_cfunc is None: + self.niScope_ImportAttributeConfigurationBuffer_cfunc = self._get_library_function('niScope_ImportAttributeConfigurationBuffer') + self.niScope_ImportAttributeConfigurationBuffer_cfunc.argtypes = [ViSession, ViInt32, ctypes.POINTER(ViInt8)] # noqa: F405 + self.niScope_ImportAttributeConfigurationBuffer_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ImportAttributeConfigurationBuffer_cfunc(vi, size_in_bytes, configuration) + + def niScope_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + with self._func_lock: + if self.niScope_ImportAttributeConfigurationFile_cfunc is None: + self.niScope_ImportAttributeConfigurationFile_cfunc = self._get_library_function('niScope_ImportAttributeConfigurationFile') + self.niScope_ImportAttributeConfigurationFile_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_ImportAttributeConfigurationFile_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ImportAttributeConfigurationFile_cfunc(vi, file_path) + + def niScope_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niScope_InitWithOptions_cfunc is None: + self.niScope_InitWithOptions_cfunc = self._get_library_function('niScope_InitWithOptions') + self.niScope_InitWithOptions_cfunc.argtypes = [ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niScope_InitWithOptions_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_InitWithOptions_cfunc(resource_name, id_query, reset_device, option_string, vi) + + def niScope_InitiateAcquisition(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_InitiateAcquisition_cfunc is None: + self.niScope_InitiateAcquisition_cfunc = self._get_library_function('niScope_InitiateAcquisition') + self.niScope_InitiateAcquisition_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_InitiateAcquisition_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_InitiateAcquisition_cfunc(vi) + + def niScope_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niScope_LockSession_cfunc is None: + self.niScope_LockSession_cfunc = self._get_library_function('niScope_LockSession') + self.niScope_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niScope_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_LockSession_cfunc(vi, caller_has_lock) + + def niScope_ProbeCompensationSignalStart(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_ProbeCompensationSignalStart_cfunc is None: + self.niScope_ProbeCompensationSignalStart_cfunc = self._get_library_function('niScope_ProbeCompensationSignalStart') + self.niScope_ProbeCompensationSignalStart_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_ProbeCompensationSignalStart_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ProbeCompensationSignalStart_cfunc(vi) + + def niScope_ProbeCompensationSignalStop(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_ProbeCompensationSignalStop_cfunc is None: + self.niScope_ProbeCompensationSignalStop_cfunc = self._get_library_function('niScope_ProbeCompensationSignalStop') + self.niScope_ProbeCompensationSignalStop_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_ProbeCompensationSignalStop_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ProbeCompensationSignalStop_cfunc(vi) + + def niScope_Read(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + with self._func_lock: + if self.niScope_Read_cfunc is None: + self.niScope_Read_cfunc = self._get_library_function('niScope_Read') + self.niScope_Read_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViReal64, ViInt32, ctypes.POINTER(ViReal64), ctypes.POINTER(waveform_info.struct_niScope_wfmInfo)] # noqa: F405 + self.niScope_Read_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_Read_cfunc(vi, channel_list, timeout, num_samples, waveform, wfm_info) + + def niScope_ResetDevice(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_ResetDevice_cfunc is None: + self.niScope_ResetDevice_cfunc = self._get_library_function('niScope_ResetDevice') + self.niScope_ResetDevice_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_ResetDevice_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ResetDevice_cfunc(vi) + + def niScope_ResetWithDefaults(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_ResetWithDefaults_cfunc is None: + self.niScope_ResetWithDefaults_cfunc = self._get_library_function('niScope_ResetWithDefaults') + self.niScope_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_ResetWithDefaults_cfunc(vi) + + def niScope_SendSoftwareTriggerEdge(self, vi, which_trigger): # noqa: N802 + with self._func_lock: + if self.niScope_SendSoftwareTriggerEdge_cfunc is None: + self.niScope_SendSoftwareTriggerEdge_cfunc = self._get_library_function('niScope_SendSoftwareTriggerEdge') + self.niScope_SendSoftwareTriggerEdge_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niScope_SendSoftwareTriggerEdge_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SendSoftwareTriggerEdge_cfunc(vi, which_trigger) + + def niScope_SetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_SetAttributeViBoolean_cfunc is None: + self.niScope_SetAttributeViBoolean_cfunc = self._get_library_function('niScope_SetAttributeViBoolean') + self.niScope_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niScope_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SetAttributeViBoolean_cfunc(vi, channel_list, attribute_id, value) + + def niScope_SetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_SetAttributeViInt32_cfunc is None: + self.niScope_SetAttributeViInt32_cfunc = self._get_library_function('niScope_SetAttributeViInt32') + self.niScope_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niScope_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SetAttributeViInt32_cfunc(vi, channel_list, attribute_id, value) + + def niScope_SetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_SetAttributeViInt64_cfunc is None: + self.niScope_SetAttributeViInt64_cfunc = self._get_library_function('niScope_SetAttributeViInt64') + self.niScope_SetAttributeViInt64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt64] # noqa: F405 + self.niScope_SetAttributeViInt64_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SetAttributeViInt64_cfunc(vi, channel_list, attribute_id, value) + + def niScope_SetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_SetAttributeViReal64_cfunc is None: + self.niScope_SetAttributeViReal64_cfunc = self._get_library_function('niScope_SetAttributeViReal64') + self.niScope_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niScope_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SetAttributeViReal64_cfunc(vi, channel_list, attribute_id, value) + + def niScope_SetAttributeViString(self, vi, channel_list, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niScope_SetAttributeViString_cfunc is None: + self.niScope_SetAttributeViString_cfunc = self._get_library_function('niScope_SetAttributeViString') + self.niScope_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SetAttributeViString_cfunc(vi, channel_list, attribute_id, value) + + def niScope_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niScope_SetRuntimeEnvironment_cfunc is None: + self.niScope_SetRuntimeEnvironment_cfunc = self._get_library_function('niScope_SetRuntimeEnvironment') + self.niScope_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niScope_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niScope_UnlockSession_cfunc is None: + self.niScope_UnlockSession_cfunc = self._get_library_function('niScope_UnlockSession') + self.niScope_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niScope_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_UnlockSession_cfunc(vi, caller_has_lock) + + def niScope_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_close_cfunc is None: + self.niScope_close_cfunc = self._get_library_function('niScope_close') + self.niScope_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_close_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_close_cfunc(vi) + + def niScope_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niScope_error_message_cfunc is None: + self.niScope_error_message_cfunc = self._get_library_function('niScope_error_message') + self.niScope_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_error_message_cfunc(vi, error_code, error_message) + + def niScope_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niScope_reset_cfunc is None: + self.niScope_reset_cfunc = self._get_library_function('niScope_reset') + self.niScope_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niScope_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_reset_cfunc(vi) + + def niScope_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niScope_self_test_cfunc is None: + self.niScope_self_test_cfunc = self._get_library_function('niScope_self_test') + self.niScope_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niScope_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niScope_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/niscope/niscope/_library_interpreter.py b/generated/niscope/niscope/_library_interpreter.py new file mode 100644 index 0000000000..2c6097bbf7 --- /dev/null +++ b/generated/niscope/niscope/_library_interpreter.py @@ -0,0 +1,729 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import niscope._library_singleton as _library_singleton +import niscope._visatype as _visatype +import niscope.enums as enums # noqa: F401 +import niscope.errors as errors + +import niscope.waveform_info as waveform_info # noqa: F401 + +import niscope.measurement_stats as measurement_stats # noqa: F401 + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_Abort(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def acquisition_status(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + acquisition_status_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niScope_AcquisitionStatus(vi_ctype, None if acquisition_status_ctype is None else (ctypes.pointer(acquisition_status_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return enums.AcquisitionStatus(acquisition_status_ctype.value) + + def actual_meas_wfm_size(self, array_meas_function): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + array_meas_function_ctype = _visatype.ViInt32(array_meas_function.value) # case S130 + meas_waveform_size_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niScope_ActualMeasWfmSize(vi_ctype, array_meas_function_ctype, None if meas_waveform_size_ctype is None else (ctypes.pointer(meas_waveform_size_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(meas_waveform_size_ctype.value) + + def actual_num_wfms(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + num_wfms_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niScope_ActualNumWfms(vi_ctype, channel_list_ctype, None if num_wfms_ctype is None else (ctypes.pointer(num_wfms_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(num_wfms_ctype.value) + + def add_waveform_processing(self, channel_list, meas_function): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + meas_function_ctype = _visatype.ViInt32(meas_function.value) # case S130 + error_code = self._library.niScope_AddWaveformProcessing(vi_ctype, channel_list_ctype, meas_function_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def auto_setup(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_AutoSetup(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def cal_fetch_date(self, which_one): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + which_one_ctype = _visatype.ViInt32(which_one.value) # case S130 + year_ctype = _visatype.ViInt32() # case S220 + month_ctype = _visatype.ViInt32() # case S220 + day_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niScope_CalFetchDate(vi_ctype, which_one_ctype, None if year_ctype is None else (ctypes.pointer(year_ctype)), None if month_ctype is None else (ctypes.pointer(month_ctype)), None if day_ctype is None else (ctypes.pointer(day_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(year_ctype.value), int(month_ctype.value), int(day_ctype.value) + + def cal_fetch_temperature(self, which_one): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + which_one_ctype = _visatype.ViInt32(which_one) # case S150 + temperature_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niScope_CalFetchTemperature(vi_ctype, which_one_ctype, None if temperature_ctype is None else (ctypes.pointer(temperature_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(temperature_ctype.value) + + def self_cal(self, channel_list, option): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + option_ctype = _visatype.ViInt32(option.value) # case S130 + error_code = self._library.niScope_CalSelfCalibrate(vi_ctype, channel_list_ctype, option_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_waveform_measurement_stats(self, channel_list, clearable_measurement_function): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + clearable_measurement_function_ctype = _visatype.ViInt32(clearable_measurement_function.value) # case S130 + error_code = self._library.niScope_ClearWaveformMeasurementStats(vi_ctype, channel_list_ctype, clearable_measurement_function_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def clear_waveform_processing(self, channel_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + error_code = self._library.niScope_ClearWaveformProcessing(vi_ctype, channel_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def commit(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_Commit(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_chan_characteristics(self, channel_list, input_impedance, max_input_frequency): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + input_impedance_ctype = _visatype.ViReal64(input_impedance) # case S150 + max_input_frequency_ctype = _visatype.ViReal64(max_input_frequency) # case S150 + error_code = self._library.niScope_ConfigureChanCharacteristics(vi_ctype, channel_list_ctype, input_impedance_ctype, max_input_frequency_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_equalization_filter_coefficients(self, channel_list, coefficients): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + number_of_coefficients_ctype = _visatype.ViInt32(0 if coefficients is None else len(coefficients)) # case S160 + coefficients_ctype = _get_ctypes_pointer_for_buffer(value=coefficients, library_type=_visatype.ViReal64) # case B550 + error_code = self._library.niScope_ConfigureEqualizationFilterCoefficients(vi_ctype, channel_list_ctype, number_of_coefficients_ctype, coefficients_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_horizontal_timing(self, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + min_sample_rate_ctype = _visatype.ViReal64(min_sample_rate) # case S150 + min_num_pts_ctype = _visatype.ViInt32(min_num_pts) # case S150 + ref_position_ctype = _visatype.ViReal64(ref_position) # case S150 + num_records_ctype = _visatype.ViInt32(num_records) # case S150 + enforce_realtime_ctype = _visatype.ViBoolean(enforce_realtime) # case S150 + error_code = self._library.niScope_ConfigureHorizontalTiming(vi_ctype, min_sample_rate_ctype, min_num_pts_ctype, ref_position_ctype, num_records_ctype, enforce_realtime_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_ref_levels(self, low, mid, high): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + low_ctype = _visatype.ViReal64(low) # case S150 + mid_ctype = _visatype.ViReal64(mid) # case S150 + high_ctype = _visatype.ViReal64(high) # case S150 + error_code = self._library.niScope_ConfigureRefLevels(vi_ctype, low_ctype, mid_ctype, high_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_digital(self, trigger_source, slope, holdoff, delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 + slope_ctype = _visatype.ViInt32(slope.value) # case S130 + holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 + delay_ctype = _visatype.ViReal64(delay) # case S150 + error_code = self._library.niScope_ConfigureTriggerDigital(vi_ctype, trigger_source_ctype, slope_ctype, holdoff_ctype, delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_edge(self, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 + level_ctype = _visatype.ViReal64(level) # case S150 + slope_ctype = _visatype.ViInt32(slope.value) # case S130 + trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 + holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 + delay_ctype = _visatype.ViReal64(delay) # case S150 + error_code = self._library.niScope_ConfigureTriggerEdge(vi_ctype, trigger_source_ctype, level_ctype, slope_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_hysteresis(self, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 + level_ctype = _visatype.ViReal64(level) # case S150 + hysteresis_ctype = _visatype.ViReal64(hysteresis) # case S150 + slope_ctype = _visatype.ViInt32(slope.value) # case S130 + trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 + holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 + delay_ctype = _visatype.ViReal64(delay) # case S150 + error_code = self._library.niScope_ConfigureTriggerHysteresis(vi_ctype, trigger_source_ctype, level_ctype, hysteresis_ctype, slope_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_immediate(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_ConfigureTriggerImmediate(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_software(self, holdoff, delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 + delay_ctype = _visatype.ViReal64(delay) # case S150 + error_code = self._library.niScope_ConfigureTriggerSoftware(vi_ctype, holdoff_ctype, delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_video(self, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 + enable_dc_restore_ctype = _visatype.ViBoolean(enable_dc_restore) # case S150 + signal_format_ctype = _visatype.ViInt32(signal_format.value) # case S130 + event_ctype = _visatype.ViInt32(event.value) # case S130 + line_number_ctype = _visatype.ViInt32(line_number) # case S150 + polarity_ctype = _visatype.ViInt32(polarity.value) # case S130 + trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 + holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 + delay_ctype = _visatype.ViReal64(delay) # case S150 + error_code = self._library.niScope_ConfigureTriggerVideo(vi_ctype, trigger_source_ctype, enable_dc_restore_ctype, signal_format_ctype, event_ctype, line_number_ctype, polarity_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_trigger_window(self, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_source_ctype = ctypes.create_string_buffer(trigger_source.encode(self._encoding)) # case C020 + low_level_ctype = _visatype.ViReal64(low_level) # case S150 + high_level_ctype = _visatype.ViReal64(high_level) # case S150 + window_mode_ctype = _visatype.ViInt32(window_mode.value) # case S130 + trigger_coupling_ctype = _visatype.ViInt32(trigger_coupling.value) # case S130 + holdoff_ctype = _visatype.ViReal64(holdoff) # case S150 + delay_ctype = _visatype.ViReal64(delay) # case S150 + error_code = self._library.niScope_ConfigureTriggerWindow(vi_ctype, trigger_source_ctype, low_level_ctype, high_level_ctype, window_mode_ctype, trigger_coupling_ctype, holdoff_ctype, delay_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def configure_vertical(self, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + range_ctype = _visatype.ViReal64(range) # case S150 + offset_ctype = _visatype.ViReal64(offset) # case S150 + coupling_ctype = _visatype.ViInt32(coupling.value) # case S130 + probe_attenuation_ctype = _visatype.ViReal64(probe_attenuation) # case S150 + enabled_ctype = _visatype.ViBoolean(enabled) # case S150 + error_code = self._library.niScope_ConfigureVertical(vi_ctype, channel_list_ctype, range_ctype, offset_ctype, coupling_ctype, probe_attenuation_ctype, enabled_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_Disable(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def export_attribute_configuration_buffer(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_in_bytes_ctype = _visatype.ViInt32() # case S170 + configuration_ctype = None # case B580 + error_code = self._library.niScope_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + size_in_bytes_ctype = _visatype.ViInt32(error_code) # case S180 + configuration_size = size_in_bytes_ctype.value # case B590 + configuration_array = array.array("b", [0]) * configuration_size # case B590 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration_array, library_type=_visatype.ViInt8) # case B590 + error_code = self._library.niScope_ExportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return configuration_array + + def export_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niScope_ExportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def fetch(self, channel_list, timeout, num_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 + waveform_size = (num_samples * self.actual_num_wfms(channel_list)) # case B560 + waveform_array = array.array("d", [0]) * waveform_size # case B560 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array, library_type=_visatype.ViReal64) # case B560 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_Fetch(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_array, [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def fetch_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_Fetch(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def fetch_array_measurement(self, channel_list, timeout, array_meas_function, measurement_waveform_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + array_meas_function_ctype = _visatype.ViInt32(array_meas_function.value) # case S130 + measurement_waveform_size_ctype = _visatype.ViInt32(measurement_waveform_size) # case S150 + meas_wfm_size = (measurement_waveform_size * self.actual_num_wfms(channel_list)) # case B560 + meas_wfm_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=meas_wfm_size) # case B560 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_FetchArrayMeasurement(vi_ctype, channel_list_ctype, timeout_ctype, array_meas_function_ctype, measurement_waveform_size_ctype, meas_wfm_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(meas_wfm_ctype[i]) for i in range((measurement_waveform_size * self.actual_num_wfms(channel_list)))], [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def fetch_binary16_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_FetchBinary16(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def fetch_binary32_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_FetchBinary32(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def fetch_binary8_into_numpy(self, channel_list, num_samples, waveform, timeout): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform) # case B510 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_FetchBinary8(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def fetch_measurement_stats(self, channel_list, timeout, scalar_meas_function): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + scalar_meas_function_ctype = _visatype.ViInt32(scalar_meas_function.value) # case S130 + result_size = self.actual_num_wfms(channel_list) # case B560 + result_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=result_size) # case B560 + mean_size = self.actual_num_wfms(channel_list) # case B560 + mean_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=mean_size) # case B560 + stdev_size = self.actual_num_wfms(channel_list) # case B560 + stdev_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=stdev_size) # case B560 + min_size = self.actual_num_wfms(channel_list) # case B560 + min_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=min_size) # case B560 + max_size = self.actual_num_wfms(channel_list) # case B560 + max_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=max_size) # case B560 + num_in_stats_size = self.actual_num_wfms(channel_list) # case B560 + num_in_stats_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViInt32, size=num_in_stats_size) # case B560 + error_code = self._library.niScope_FetchMeasurementStats(vi_ctype, channel_list_ctype, timeout_ctype, scalar_meas_function_ctype, result_ctype, mean_ctype, stdev_ctype, min_ctype, max_ctype, num_in_stats_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(result_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(mean_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(stdev_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(min_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [float(max_ctype[i]) for i in range(self.actual_num_wfms(channel_list))], [int(num_in_stats_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def get_attribute_vi_boolean(self, channel_list, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niScope_GetAttributeViBoolean(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(value_ctype.value) + + def get_attribute_vi_int32(self, channel_list, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niScope_GetAttributeViInt32(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_int64(self, channel_list, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt64() # case S220 + error_code = self._library.niScope_GetAttributeViInt64(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_real64(self, channel_list, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niScope_GetAttributeViReal64(vi_ctype, channel_list_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(value_ctype.value) + + def get_attribute_vi_string(self, channel_list, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + buf_size_ctype = _visatype.ViInt32() # case S170 + value_ctype = None # case C050 + error_code = self._library.niScope_GetAttributeViString(vi_ctype, channel_list_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buf_size_ctype = _visatype.ViInt32(error_code) # case S180 + value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 + error_code = self._library.niScope_GetAttributeViString(vi_ctype, channel_list_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return value_ctype.value.decode(self._encoding) + + def get_channel_names(self, indices): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + indices_ctype = ctypes.create_string_buffer(indices.encode(self._encoding)) # case C020 + buffer_size_ctype = _visatype.ViInt32() # case S170 + names_ctype = None # case C050 + error_code = self._library.niScope_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + names_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niScope_GetChannelNameFromString(vi_ctype, indices_ctype, buffer_size_ctype, names_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return names_ctype.value.decode(self._encoding) + + def get_equalization_filter_coefficients(self, channel, number_of_coefficients): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_ctype = ctypes.create_string_buffer(channel.encode(self._encoding)) # case C010 + number_of_coefficients_ctype = _visatype.ViInt32(number_of_coefficients) # case S210 + coefficients_size = number_of_coefficients # case B600 + coefficients_ctype = _get_ctypes_pointer_for_buffer(library_type=_visatype.ViReal64, size=coefficients_size) # case B600 + error_code = self._library.niScope_GetEqualizationFilterCoefficients(vi_ctype, channel_ctype, number_of_coefficients_ctype, coefficients_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return [float(coefficients_ctype[i]) for i in range(number_of_coefficients_ctype.value)] + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + buffer_size_ctype = _visatype.ViInt32() # case S170 + description_ctype = None # case C050 + error_code = self._library.niScope_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niScope_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) + + def import_attribute_configuration_buffer(self, configuration): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + size_in_bytes_ctype = _visatype.ViInt32(0 if configuration is None else len(configuration)) # case S160 + configuration_ctype = _get_ctypes_pointer_for_buffer(value=configuration, library_type=_visatype.ViInt8) # case B550 + error_code = self._library.niScope_ImportAttributeConfigurationBuffer(vi_ctype, size_in_bytes_ctype, configuration_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def import_attribute_configuration_file(self, file_path): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + file_path_ctype = ctypes.create_string_buffer(file_path.encode(self._encoding)) # case C020 + error_code = self._library.niScope_ImportAttributeConfigurationFile(vi_ctype, file_path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def init_with_options(self, resource_name, id_query, reset_device, option_string): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + id_query_ctype = _visatype.ViBoolean(id_query) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niScope_InitWithOptions(resource_name_ctype, id_query_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initiate_acquisition(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_InitiateAcquisition(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def probe_compensation_signal_start(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_ProbeCompensationSignalStart(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def probe_compensation_signal_stop(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_ProbeCompensationSignalStop(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def read(self, channel_list, timeout, num_samples): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + num_samples_ctype = _visatype.ViInt32(num_samples) # case S150 + waveform_size = (num_samples * self.actual_num_wfms(channel_list)) # case B560 + waveform_array = array.array("d", [0]) * waveform_size # case B560 + waveform_ctype = _get_ctypes_pointer_for_buffer(value=waveform_array, library_type=_visatype.ViReal64) # case B560 + wfm_info_size = self.actual_num_wfms(channel_list) # case B560 + wfm_info_ctype = _get_ctypes_pointer_for_buffer(library_type=waveform_info.struct_niScope_wfmInfo, size=wfm_info_size) # case B560 + error_code = self._library.niScope_Read(vi_ctype, channel_list_ctype, timeout_ctype, num_samples_ctype, waveform_ctype, wfm_info_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return waveform_array, [waveform_info.WaveformInfo(wfm_info_ctype[i]) for i in range(self.actual_num_wfms(channel_list))] + + def reset_device(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_ResetDevice(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_defaults(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_ResetWithDefaults(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_trigger_edge(self, which_trigger): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + which_trigger_ctype = _visatype.ViInt32(which_trigger.value) # case S130 + error_code = self._library.niScope_SendSoftwareTriggerEdge(vi_ctype, which_trigger_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_list, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViBoolean(value) # case S150 + error_code = self._library.niScope_SetAttributeViBoolean(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_list, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt32(value) # case S150 + error_code = self._library.niScope_SetAttributeViInt32(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int64(self, channel_list, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViInt64(value) # case S150 + error_code = self._library.niScope_SetAttributeViInt64(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_list, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViReal64(value) # case S150 + error_code = self._library.niScope_SetAttributeViReal64(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_list, attribute_id, value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_list_ctype = ctypes.create_string_buffer(channel_list.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 + error_code = self._library.niScope_SetAttributeViString(vi_ctype, channel_list_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niScope_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niScope_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niScope_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niScope_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/niscope/niscope/_library_singleton.py b/generated/niscope/niscope/_library_singleton.py new file mode 100644 index 0000000000..ee5088c054 --- /dev/null +++ b/generated/niscope/niscope/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import niscope._library as _library +import niscope.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'niscope', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niScope_32.dll', 'type': 'windll'}, + '64bit': {'name': 'niScope_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for niscope. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/niscope/niscope/_visatype.py b/generated/niscope/niscope/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/niscope/niscope/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/niscope/niscope/enums.py b/generated/niscope/niscope/enums.py new file mode 100644 index 0000000000..5b4391e735 --- /dev/null +++ b/generated/niscope/niscope/enums.py @@ -0,0 +1,748 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class AcquisitionStatus(Enum): + COMPLETE = 1 + IN_PROGRESS = 0 + STATUS_UNKNOWN = -1 + + +class AcquisitionType(Enum): + NORMAL = 0 + r''' + Sets the digitizer to normal resolution mode. The digitizer can use real-time sampling or equivalent-time sampling. + ''' + FLEXRES = 1001 + r''' + Sets the digitizer to flexible resolution mode if supported. The digitizer uses different hardware configurations to change the resolution depending on the sampling rate used. + ''' + DDC = 1002 + r''' + Sets the digitizer to DDC mode on the NI 5620/5621. + ''' + + +class ArrayMeasurement(Enum): + NO_MEASUREMENT = 4000 + r''' + None + ''' + LAST_ACQ_HISTOGRAM = 4001 + r''' + Last Acquisition Histogram + ''' + FFT_PHASE_SPECTRUM = 4002 + r''' + FFT Phase Spectrum + ''' + FFT_AMP_SPECTRUM_VOLTS_RMS = 4003 + r''' + FFT Amp. Spectrum (Volts RMS) + ''' + MULTI_ACQ_VOLTAGE_HISTOGRAM = 4004 + r''' + Multi Acquisition Voltage Histogram + ''' + MULTI_ACQ_TIME_HISTOGRAM = 4005 + r''' + Multi Acquisition Time Histogram + ''' + ARRAY_INTEGRAL = 4006 + r''' + Array Integral + ''' + DERIVATIVE = 4007 + r''' + Derivative + ''' + INVERSE = 4008 + r''' + Inverse + ''' + HANNING_WINDOW = 4009 + r''' + Hanning Window + ''' + FLAT_TOP_WINDOW = 4010 + r''' + Flat Top Window + ''' + POLYNOMIAL_INTERPOLATION = 4011 + r''' + Polynomial Interpolation + ''' + MULTIPLY_CHANNELS = 4012 + r''' + Multiply Channels + ''' + ADD_CHANNELS = 4013 + r''' + Add Channels + ''' + SUBTRACT_CHANNELS = 4014 + r''' + Subtract Channels + ''' + DIVIDE_CHANNELS = 4015 + r''' + Divide Channels + ''' + MULTI_ACQ_AVERAGE = 4016 + r''' + Multi Acquisition Average + ''' + BUTTERWORTH_FILTER = 4017 + r''' + Butterworth IIR Filter + ''' + CHEBYSHEV_FILTER = 4018 + r''' + Chebyshev IIR Filter + ''' + FFT_AMP_SPECTRUM_DB = 4019 + r''' + FFT Amp. Spectrum (dB) + ''' + HAMMING_WINDOW = 4020 + r''' + Hamming Window + ''' + WINDOWED_FIR_FILTER = 4021 + r''' + FIR Windowed Filter + ''' + BESSEL_FILTER = 4022 + r''' + Bessel IIR Filter + ''' + TRIANGLE_WINDOW = 4023 + r''' + Triangle Window + ''' + BLACKMAN_WINDOW = 4024 + r''' + Blackman Window + ''' + ARRAY_OFFSET = 4025 + r''' + Array Offset + ''' + ARRAY_GAIN = 4026 + r''' + Array Gain + ''' + + +class CableSenseMode(Enum): + DISABLED = 0 + r''' + The oscilloscope is not configured to emit a CableSense signal. + ''' + ON_DEMAND = 1 + r''' + The oscilloscope is configured to emit a single CableSense pulse. + ''' + + +class _CalibrationTypes(Enum): + SELF = 1 + EXTERNAL = 0 + MANUFACTURE = 2 + + +class ClearableMeasurement(Enum): + ALL_MEASUREMENTS = 10000 + MULTI_ACQ_VOLTAGE_HISTOGRAM = 4004 + MULTI_ACQ_TIME_HISTOGRAM = 4005 + MULTI_ACQ_AVERAGE = 4016 + FREQUENCY = 2 + AVERAGE_FREQUENCY = 1016 + FFT_FREQUENCY = 1008 + PERIOD = 3 + AVERAGE_PERIOD = 1015 + RISE_TIME = 0 + FALL_TIME = 1 + RISE_SLEW_RATE = 1010 + FALL_SLEW_RATE = 1011 + OVERSHOOT = 18 + PRESHOOT = 19 + VOLTAGE_RMS = 4 + VOLTAGE_CYCLE_RMS = 16 + AC_ESTIMATE = 1012 + FFT_AMPLITUDE = 1009 + VOLTAGE_AVERAGE = 10 + VOLTAGE_CYCLE_AVERAGE = 17 + DC_ESTIMATE = 1013 + VOLTAGE_MAX = 6 + VOLTAGE_MIN = 7 + VOLTAGE_PEAK_TO_PEAK = 5 + VOLTAGE_HIGH = 8 + VOLTAGE_LOW = 9 + AMPLITUDE = 15 + VOLTAGE_TOP = 1007 + VOLTAGE_BASE = 1006 + VOLTAGE_BASE_TO_TOP = 1017 + WIDTH_NEG = 11 + WIDTH_POS = 12 + DUTY_CYCLE_NEG = 13 + DUTY_CYCLE_POS = 14 + INTEGRAL = 1005 + AREA = 1003 + CYCLE_AREA = 1004 + TIME_DELAY = 1014 + PHASE_DELAY = 1018 + LOW_REF_VOLTS = 1000 + MID_REF_VOLTS = 1001 + HIGH_REF_VOLTS = 1002 + VOLTAGE_HISTOGRAM_MEAN = 2000 + VOLTAGE_HISTOGRAM_STDEV = 2001 + VOLTAGE_HISTOGRAM_MEDIAN = 2003 + VOLTAGE_HISTOGRAM_MODE = 2010 + VOLTAGE_HISTOGRAM_MAX = 2005 + VOLTAGE_HISTOGRAM_MIN = 2006 + VOLTAGE_HISTOGRAM_PEAK_TO_PEAK = 2002 + VOLTAGE_HISTOGRAM_MEAN_PLUS_STDEV = 2007 + VOLTAGE_HISTOGRAM_MEAN_PLUS_2_STDEV = 2008 + VOLTAGE_HISTOGRAM_MEAN_PLUS_3_STDEV = 2009 + VOLTAGE_HISTOGRAM_HITS = 2004 + VOLTAGE_HISTOGRAM_NEW_HITS = 2011 + TIME_HISTOGRAM_MEAN = 3000 + TIME_HISTOGRAM_STDEV = 3001 + TIME_HISTOGRAM_MEDIAN = 3003 + TIME_HISTOGRAM_MODE = 3010 + TIME_HISTOGRAM_MAX = 3005 + TIME_HISTOGRAM_MIN = 3006 + TIME_HISTOGRAM_PEAK_TO_PEAK = 3002 + TIME_HISTOGRAM_MEAN_PLUS_STDEV = 3007 + TIME_HISTOGRAM_MEAN_PLUS_2_STDEV = 3008 + TIME_HISTOGRAM_MEAN_PLUS_3_STDEV = 3009 + TIME_HISTOGRAM_HITS = 3004 + TIME_HISTOGRAM_NEW_HITS = 3011 + + +class FIRFilterWindow(Enum): + NONE = 0 + r''' + No window. + ''' + HANNING = 409 + r''' + Specifies a Hanning window. + ''' + FLAT_TOP = 410 + r''' + Specifies a Flat Top window. + ''' + HAMMING = 420 + r''' + Specifies a Hamming window. + ''' + TRIANGLE = 423 + r''' + Specifies a Triangle window. + ''' + BLACKMAN = 424 + r''' + Specifies a Blackman window. + ''' + + +class FetchRelativeTo(Enum): + READ_POINTER = 388 + r''' + The read pointer is set to zero when a new acquisition is initiated. After every fetch the read pointer is incremeted to be the sample after the last sample retrieved. Therefore, you can repeatedly fetch relative to the read pointer for a continuous acquisition program. + ''' + PRETRIGGER = 477 + r''' + Fetches relative to the first pretrigger point requested with configure_horizontal_timing. + ''' + NOW = 481 + r''' + Fetch data at the last sample acquired. + ''' + START = 482 + r''' + Fetch data starting at the first point sampled by the digitizer. + ''' + TRIGGER = 483 + r''' + Fetch at the first posttrigger sample. + ''' + + +class FilterType(Enum): + LOWPASS = 0 + r''' + Specifies lowpass as the filter type. + ''' + HIGHPASS = 1 + r''' + Specifies highpass as the filter type. + ''' + BANDPASS = 2 + r''' + Specifies bandpass as the filter type. + ''' + BANDSTOP = 3 + r''' + Specifies bandstop as the filter type. + ''' + + +class FlexFIRAntialiasFilterType(Enum): + FOURTYEIGHT_TAP_STANDARD = 0 + r''' + This filter is optimized for alias protection and frequency-domain flatness + ''' + FOURTYEIGHT_TAP_HANNING = 1 + r''' + This filter is optimized for the lowest possible bandwidth for a 48 tap filter and maximizes the SNR + ''' + SIXTEEN_TAP_HANNING = 2 + r''' + This filter is optimized for the lowest possible bandwidth for a 16 tap filter and maximizes the SNR + ''' + EIGHT_TAP_HANNING = 3 + r''' + This filter is optimized for the lowest possible bandwidth for a 8 tap filter and maximizes the SNR + ''' + + +class GlitchCondition(Enum): + GREATER = 2 + r''' + Trigger on pulses with a duration greater than the specified glitch width. + ''' + LESS = 1 + r''' + Trigger on pulses with a duration shorter than the specified glitch width. + ''' + + +class GlitchPolarity(Enum): + POSITIVE = 1 + r''' + Trigger on pulses of positive polarity relative to the trigger threshold. + ''' + NEGATIVE = 2 + r''' + Trigger on pulses of negative polarity relative to the trigger threshold. + ''' + EITHER = 3 + r''' + Trigger on pulses of either positive or negative polarity. + ''' + + +class Option(Enum): + SELF_CALIBRATE_ALL_CHANNELS = 0 + r''' + Self Calibrating all Channels + ''' + RESTORE_EXTERNAL_CALIBRATION = 1 + r''' + Restore External Calibration. + ''' + + +class PercentageMethod(Enum): + LOWHIGH = 0 + r''' + Specifies that the reference level percentages should be computed using + the low/high method, + ''' + MINMAX = 1 + r''' + Reference level percentages are computed using the min/max method. + ''' + BASETOP = 2 + r''' + Reference level percentages are computed using the base/top method. + ''' + + +class RISMethod(Enum): + EXACT_NUM_AVERAGES = 1 + r''' + Acquires exactly the specified number of records for each bin in the RIS acquisition. An error is returned from the fetch method if the RIS acquisition does not successfully acquire the specified number of waveforms within the timeout period. You may call the fetch method again to allow more time for the acquisition to finish. + ''' + MIN_NUM_AVERAGES = 2 + r''' + Each RIS sample is the average of a least a minimum number of randomly + distributed points. + ''' + INCOMPLETE = 3 + r''' + Returns the RIS waveform after the specified timeout even if it is incomplete. If no waveforms have been acquired in certain bins, these bins will have a NaN (when fetching scaled data) or a zero (when fetching binary data). A warning (positive error code) is returned from the fetch method if the RIS acquisition did not finish. The acquisition aborts when data is returned. + ''' + LIMITED_BIN_WIDTH = 5 + r''' + Limits the waveforms in the various bins to be within 200 ps of the center of the bin. + ''' + + +class RefLevelUnits(Enum): + VOLTS = 0 + r''' + Specifies that the reference levels are given in units of volts. + ''' + PERCENTAGE = 1 + r''' + (Default) Specifies that the reference levels are given in percentage + units. + ''' + + +class RefTriggerDetectorLocation(Enum): + ANALOG_DETECTION_CIRCUIT = 0 + r''' + use the hardware analog circuitry to implement the reference trigger. This option will trigger before any onboard signal processing. + ''' + DDC_OUTPUT = 1 + r''' + use the onboard signal processing logic to implement the reference trigger. This option will trigger based on the onboard signal processed data. + ''' + + +class RuntPolarity(Enum): + POSITIVE = 1 + r''' + Trigger on pulses of positive polarity relative to runt_low_threshold that do not cross runt_high_threshold. + ''' + NEGATIVE = 2 + r''' + Trigger on pulses of negative polarity relative to runt_high_threshold that do not cross runt_low_threshold. + ''' + EITHER = 3 + r''' + Trigger on pulses of either positive or negative polarity. + ''' + + +class RuntTimeCondition(Enum): + NONE = 0 + r''' + Time qualification is disabled. Trigger on runt pulses based solely on the voltage level of the pulses. + ''' + WITHIN = 1 + r''' + Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration within the range bounded by runt_time_low_limit and runt_time_high_limit. + ''' + OUTSIDE = 2 + r''' + Trigger on pulses that, in addition to meeting runt voltage criteria, have a duration not within the range bounded by runt_time_low_limit and runt_time_high_limit. + ''' + + +class ScalarMeasurement(Enum): + NO_MEASUREMENT = 4000 + r''' + None + ''' + RISE_TIME = 0 + FALL_TIME = 1 + FREQUENCY = 2 + PERIOD = 3 + VOLTAGE_RMS = 4 + VOLTAGE_PEAK_TO_PEAK = 5 + VOLTAGE_MAX = 6 + VOLTAGE_MIN = 7 + VOLTAGE_HIGH = 8 + VOLTAGE_LOW = 9 + VOLTAGE_AVERAGE = 10 + WIDTH_NEG = 11 + WIDTH_POS = 12 + DUTY_CYCLE_NEG = 13 + DUTY_CYCLE_POS = 14 + AMPLITUDE = 15 + VOLTAGE_CYCLE_RMS = 16 + VOLTAGE_CYCLE_AVERAGE = 17 + OVERSHOOT = 18 + PRESHOOT = 19 + LOW_REF_VOLTS = 1000 + MID_REF_VOLTS = 1001 + HIGH_REF_VOLTS = 1002 + AREA = 1003 + CYCLE_AREA = 1004 + INTEGRAL = 1005 + VOLTAGE_BASE = 1006 + VOLTAGE_TOP = 1007 + FFT_FREQUENCY = 1008 + FFT_AMPLITUDE = 1009 + RISE_SLEW_RATE = 1010 + FALL_SLEW_RATE = 1011 + AC_ESTIMATE = 1012 + DC_ESTIMATE = 1013 + TIME_DELAY = 1014 + AVERAGE_PERIOD = 1015 + AVERAGE_FREQUENCY = 1016 + VOLTAGE_BASE_TO_TOP = 1017 + PHASE_DELAY = 1018 + + +class TerminalConfiguration(Enum): + SINGLE_ENDED = 0 + r''' + Channel is single ended + ''' + UNBALANCED_DIFFERENTIAL = 1 + r''' + Channel is unbalanced differential + ''' + DIFFERENTIAL = 2 + r''' + Channel is differential + ''' + + +class TriggerCoupling(Enum): + AC = 0 + r''' + AC coupling + ''' + DC = 1 + r''' + DC coupling + ''' + HF_REJECT = 3 + r''' + Highpass filter coupling + ''' + LF_REJECT = 4 + r''' + Lowpass filter coupling + ''' + AC_PLUS_HF_REJECT = 1001 + r''' + Highpass and lowpass filter coupling + ''' + + +class TriggerModifier(Enum): + NO_TRIGGER_MOD = 1 + r''' + Normal triggering. + ''' + AUTO = 2 + r''' + Software will trigger an acquisition automatically if no trigger arrives + after a certain amount of time. + ''' + AUTO_LEVEL = 3 + + +class TriggerSlope(Enum): + NEGATIVE = 0 + r''' + Falling edge + ''' + POSITIVE = 1 + r''' + Rising edge + ''' + SLOPE_EITHER = 3 + r''' + Either edge + ''' + + +class TriggerType(Enum): + EDGE = 1 + r''' + Configures the digitizer for edge triggering. An edge trigger occurs when the trigger signal crosses the trigger level specified with the set trigger slope. You configure the trigger level and slope with configure_trigger_edge. + ''' + HYSTERESIS = 1001 + r''' + Configures the digitizer for hysteresis triggering. A hysteresis trigger occurs when the trigger signal crosses the trigger level with the specified slope and passes through the hysteresis window you specify. You configure the trigger level, slope, and hysteresis with configure_trigger_hysteresis. + ''' + DIGITAL = 1002 + r''' + Configures the digitizer for digital triggering. A digital trigger occurs when the trigger signal has the specified slope. You configure the trigger slope with configure_trigger_digital. + ''' + WINDOW = 1003 + r''' + Configures the digitizer for window triggering. A window trigger occurs when the trigger signal enters or leaves the window defined by the values you specify with the Low Window Level, High Window Level, and Window Mode Parameters. You configure the low window level high window level, and window mode with configure_trigger_window. + ''' + SOFTWARE = 1004 + r''' + Configures the digitizer for software triggering. A software trigger occurs when SendSoftwareTrigger is called. + ''' + TV = 5 + r''' + Configures the digitizer for video/TV triggering. You configure the video trigger parameters like signal Format, Line to trigger off of, Polarity, and Enable DC Restore with configure_trigger_video. + ''' + GLITCH = 4 + WIDTH = 2 + RUNT = 3 + IMMEDIATE = 6 + r''' + Configures the digitizer for immediate triggering. An immediate trigger occurs as soon as the pretrigger samples are acquired. + ''' + + +class TriggerWindowMode(Enum): + ENTERING = 0 + r''' + Trigger upon entering the window + ''' + LEAVING = 1 + r''' + Trigger upon leaving the window + ''' + ENTERING_OR_LEAVING = 2 + + +class VerticalCoupling(Enum): + AC = 0 + r''' + AC coupling + ''' + DC = 1 + r''' + DC coupling + ''' + GND = 2 + r''' + GND coupling + ''' + + +class VideoPolarity(Enum): + POSITIVE = 1 + r''' + Specifies that the video signal has positive polarity. + ''' + NEGATIVE = 2 + r''' + Specifies that the video signal has negative polarity. + ''' + + +class VideoSignalFormat(Enum): + NTSC = 1 + r''' + NTSC signal format supports line numbers from 1 to 525 + ''' + PAL = 2 + r''' + PAL signal format supports line numbers from 1 to 625 + ''' + SECAM = 3 + r''' + SECAM signal format supports line numbers from 1 to 625 + ''' + M_PAL = 1001 + r''' + M-PAL signal format supports line numbers from 1 to 525 + ''' + VIDEO_480I_59_94_FIELDS_PER_SECOND = 1010 + r''' + 480 lines, interlaced, 59.94 fields per second + ''' + VIDEO_480I_60_FIELDS_PER_SECOND = 1011 + r''' + 480 lines, interlaced, 60 fields per second + ''' + VIDEO_480P_59_94_FRAMES_PER_SECOND = 1015 + r''' + 480 lines, progressive, 59.94 frames per second + ''' + VIDEO_480P_60_FRAMES_PER_SECOND = 1016 + r''' + 480 lines, progressive,60 frames per second + ''' + VIDEO_576I_50_FIELDS_PER_SECOND = 1020 + r''' + 576 lines, interlaced, 50 fields per second + ''' + VIDEO_576P_50_FRAMES_PER_SECOND = 1025 + r''' + 576 lines, progressive, 50 frames per second + ''' + VIDEO_720P_50_FRAMES_PER_SECOND = 1031 + r''' + 720 lines, progressive, 50 frames per second + ''' + VIDEO_720P_59_94_FRAMES_PER_SECOND = 1032 + r''' + 720 lines, progressive, 59.94 frames per second + ''' + VIDEO_720P_60_FRAMES_PER_SECOND = 1033 + r''' + 720 lines, progressive, 60 frames per second + ''' + VIDEO_1080I_50_FIELDS_PER_SECOND = 1040 + r''' + 1,080 lines, interlaced, 50 fields per second + ''' + VIDEO_1080I_59_94_FIELDS_PER_SECOND = 1041 + r''' + 1,080 lines, interlaced, 59.94 fields per second + ''' + VIDEO_1080I_60_FIELDS_PER_SECOND = 1042 + r''' + 1,080 lines, interlaced, 60 fields per second + ''' + VIDEO_1080P_24_FRAMES_PER_SECOND = 1045 + r''' + 1,080 lines, progressive, 24 frames per second + ''' + + +class VideoTriggerEvent(Enum): + FIELD1 = 1 + r''' + Trigger on field 1 of the signal + ''' + FIELD2 = 2 + r''' + Trigger on field 2 of the signal + ''' + ANY_FIELD = 3 + r''' + Trigger on the first field acquired + ''' + ANY_LINE = 4 + r''' + Trigger on the first line acquired + ''' + LINE_NUMBER = 5 + r''' + Trigger on a specific line of a video signal. Valid values vary depending on the signal format configured. + ''' + + +class WhichTrigger(Enum): + START = 0 + ARM_REFERENCE = 1 + REFERENCE = 2 + ADVANCE = 3 + + +class WidthCondition(Enum): + WITHIN = 1 + r''' + Trigger on pulses with a duration within the range bounded by width_low_threshold and width_high_threshold. + ''' + OUTSIDE = 2 + r''' + Trigger on pulses with a duration not within the range bounded by width_low_threshold and width_high_threshold. + ''' + + +class WidthPolarity(Enum): + POSITIVE = 1 + r''' + Trigger on pulses of positive polarity relative to the trigger threshold. + ''' + NEGATIVE = 2 + r''' + Trigger on pulses of negative polarity relative to the trigger threshold. + ''' + EITHER = 3 + r''' + Trigger on pulses of either positive or negative polarity. + ''' diff --git a/generated/niscope/niscope/errors.py b/generated/niscope/niscope/errors.py new file mode 100644 index 0000000000..6390cd1e31 --- /dev/null +++ b/generated/niscope/niscope/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-SCOPE''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-SCOPE driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-SCOPE driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-SCOPE runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-SCOPE driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-SCOPE runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-SCOPE driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-SCOPE runtime returned an unexpected value. This can occur if it is too new for the niscope Python module. Upgrade the niscope Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by niscope.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/niscope/niscope/grpc_session_options.py b/generated/niscope/niscope/grpc_session_options.py new file mode 100644 index 0000000000..74119cf752 --- /dev/null +++ b/generated/niscope/niscope/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'niscope_grpc.NiScope' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/niscope/niscope/measurement_stats.py b/generated/niscope/niscope/measurement_stats.py new file mode 100644 index 0000000000..6b17a710d6 --- /dev/null +++ b/generated/niscope/niscope/measurement_stats.py @@ -0,0 +1,43 @@ +class MeasurementStats: + def __init__(self, result=0.0, mean=0.0, stdev=0.0, min_val=0.0, max_val=0.0, num_in_stats=0): + self.result = result + self.mean = mean + self.stdev = stdev + self.min_val = min_val + self.max_val = max_val + self.num_in_stats = num_in_stats + + self.channel = None + self.record = None + + def __repr__(self): + parameter_list = [ + f'result={self.result}', + f'mean={self.mean}', + f'stdev={self.stdev}', + f'min_val={self.min_val}', + f'max_val={self.max_val}', + f'num_in_stats={self.num_in_stats}' + ] + + return '{}({})'.format(self.__class__.__name__, ', '.join(parameter_list)) + + def __str__(self): + row_format_g = '{:<20}: {:,.6g}\n' + row_format_d = '{:<20}: {:,}\n' + row_format_s = '{:<20}: {:}\n' + + string_representation = '' + if self.channel is not None: + string_representation += row_format_s.format('Channel', self.channel) + if self.record is not None: + string_representation += row_format_d.format('Record', self.record) + + string_representation += row_format_g.format('Result', self.result) + string_representation += row_format_g.format('Mean', self.mean) + string_representation += row_format_g.format('Standard Deviation', self.stdev) + string_representation += row_format_g.format('Minimum Value', self.min_val) + string_representation += row_format_g.format('Maximum Value', self.max_val) + string_representation += row_format_d.format('Number in Stats', self.num_in_stats) + + return string_representation diff --git a/generated/niscope/niscope/nidevice_pb2.py b/generated/niscope/niscope/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/niscope/niscope/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/niscope/niscope/nidevice_pb2_grpc.py b/generated/niscope/niscope/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/niscope/niscope/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/niscope/niscope/niscope_pb2.py b/generated/niscope/niscope/niscope_pb2.py new file mode 100644 index 0000000000..f44be2344a --- /dev/null +++ b/generated/niscope/niscope/niscope_pb2.py @@ -0,0 +1,452 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: niscope.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import nidevice_pb2 as nidevice__pb2 +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rniscope.proto\x12\x0cniscope_grpc\x1a\x0enidevice.proto\x1a\rsession.proto\"\xb7\x01\n\x0cWaveformInfo\x12\x1a\n\x12\x61\x62solute_initial_x\x18\x01 \x01(\x01\x12\x1a\n\x12relative_initial_x\x18\x02 \x01(\x01\x12\x13\n\x0bx_increment\x18\x03 \x01(\x01\x12\x16\n\x0e\x61\x63tual_samples\x18\x04 \x01(\x11\x12\x0e\n\x06offset\x18\x05 \x01(\x01\x12\x0c\n\x04gain\x18\x06 \x01(\x01\x12\x11\n\treserved1\x18\x07 \x01(\x01\x12\x11\n\treserved2\x18\x08 \x01(\x01\"U\n\x0f\x43oefficientInfo\x12\x0e\n\x06offset\x18\x01 \x01(\x01\x12\x0c\n\x04gain\x18\x02 \x01(\x01\x12\x11\n\treserved1\x18\x03 \x01(\x01\x12\x11\n\treserved2\x18\x04 \x01(\x01\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"6\n\x10\x41utoSetupRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"#\n\x11\x41utoSetupResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfc\x01\n\x18\x43onfigureVerticalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\r\n\x05range\x18\x03 \x01(\x01\x12\x0e\n\x06offset\x18\x04 \x01(\x01\x12\x32\n\x08\x63oupling\x18\x05 \x01(\x0e\x32\x1e.niscope_grpc.VerticalCouplingH\x00\x12\x16\n\x0c\x63oupling_raw\x18\x06 \x01(\x11H\x00\x12\x19\n\x11probe_attenuation\x18\x07 \x01(\x01\x12\x0f\n\x07\x65nabled\x18\x08 \x01(\x08\x42\x0f\n\rcoupling_enum\"+\n\x19\x43onfigureVerticalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x95\x01\n#ConfigureChanCharacteristicsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x17\n\x0finput_impedance\x18\x03 \x01(\x01\x12\x1b\n\x13max_input_frequency\x18\x04 \x01(\x01\"6\n$ConfigureChanCharacteristicsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb9\x01\n ConfigureHorizontalTimingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fmin_sample_rate\x18\x02 \x01(\x01\x12\x13\n\x0bmin_num_pts\x18\x03 \x01(\x11\x12\x14\n\x0cref_position\x18\x04 \x01(\x01\x12\x13\n\x0bnum_records\x18\x05 \x01(\x11\x12\x18\n\x10\x65nforce_realtime\x18\x06 \x01(\x08\"3\n!ConfigureHorizontalTimingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfd\x03\n\x15\x43onfigureClockRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12 \n\x16input_clock_source_raw\x18\x02 \x01(\tH\x00\x12I\n\x19input_clock_source_mapped\x18\x06 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x00\x12!\n\x17output_clock_source_raw\x18\x03 \x01(\tH\x01\x12J\n\x1aoutput_clock_source_mapped\x18\x07 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x01\x12%\n\x1b\x63lock_sync_pulse_source_raw\x18\x04 \x01(\tH\x02\x12N\n\x1e\x63lock_sync_pulse_source_mapped\x18\x08 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x02\x12\x16\n\x0emaster_enabled\x18\x05 \x01(\x08\x42\x19\n\x17input_clock_source_enumB\x1a\n\x18output_clock_source_enumB\x1e\n\x1c\x63lock_sync_pulse_source_enum\"(\n\x16\x43onfigureClockResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x02\n\x13\x45xportSignalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x31\n\x06signal\x18\x02 \x01(\x0e\x32\x1f.niscope_grpc.ExportableSignalsH\x00\x12\x14\n\nsignal_raw\x18\x03 \x01(\x11H\x00\x12\x19\n\x11signal_identifier\x18\x04 \x01(\t\x12\x46\n\x16output_terminal_mapped\x18\x05 \x01(\x0e\x32$.niscope_grpc.ClockingTerminalValuesH\x01\x12\x1d\n\x13output_terminal_raw\x18\x06 \x01(\tH\x01\x42\r\n\x0bsignal_enumB\x16\n\x14output_terminal_enum\"&\n\x14\x45xportSignalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n%AdjustSampleClockRelativeDelayRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05\x64\x65lay\x18\x02 \x01(\x01\"8\n&AdjustSampleClockRelativeDelayResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcc\x02\n\x1b\x43onfigureTriggerEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12+\n\x05slope\x18\x04 \x01(\x0e\x32\x1a.niscope_grpc.TriggerSlopeH\x00\x12\x13\n\tslope_raw\x18\x05 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x06 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x07 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\x08 \x01(\x01\x12\r\n\x05\x64\x65lay\x18\t \x01(\x01\x42\x0c\n\nslope_enumB\x17\n\x15trigger_coupling_enum\".\n\x1c\x43onfigureTriggerEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xdc\x03\n\x1d\x43onfigureTriggerGlitchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12\r\n\x05width\x18\x04 \x01(\x01\x12\x30\n\x08polarity\x18\x05 \x01(\x0e\x32\x1c.niscope_grpc.GlitchPolarityH\x00\x12\x16\n\x0cpolarity_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10glitch_condition\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.GlitchConditionH\x01\x12\x1e\n\x14glitch_condition_raw\x18\x08 \x01(\x11H\x01\x12\x39\n\x10trigger_coupling\x18\t \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x02\x12\x1e\n\x14trigger_coupling_raw\x18\n \x01(\x11H\x02\x12\x0f\n\x07holdoff\x18\x0b \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x0c \x01(\x01\x42\x0f\n\rpolarity_enumB\x17\n\x15glitch_condition_enumB\x17\n\x15trigger_coupling_enum\"0\n\x1e\x43onfigureTriggerGlitchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe6\x02\n!ConfigureTriggerHysteresisRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12\x12\n\nhysteresis\x18\x04 \x01(\x01\x12+\n\x05slope\x18\x05 \x01(\x0e\x32\x1a.niscope_grpc.TriggerSlopeH\x00\x12\x13\n\tslope_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x08 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\t \x01(\x01\x12\r\n\x05\x64\x65lay\x18\n \x01(\x01\x42\x0c\n\nslope_enumB\x17\n\x15trigger_coupling_enum\"4\n\"ConfigureTriggerHysteresisResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfd\x02\n\x1d\x43onfigureTriggerWindowRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\x11\n\tlow_level\x18\x03 \x01(\x01\x12\x12\n\nhigh_level\x18\x04 \x01(\x01\x12\x36\n\x0bwindow_mode\x18\x05 \x01(\x0e\x32\x1f.niscope_grpc.TriggerWindowModeH\x00\x12\x19\n\x0fwindow_mode_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x08 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\t \x01(\x01\x12\r\n\x05\x64\x65lay\x18\n \x01(\x01\x42\x12\n\x10window_mode_enumB\x17\n\x15trigger_coupling_enum\"0\n\x1e\x43onfigureTriggerWindowResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"e\n\x1f\x43onfigureTriggerSoftwareRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07holdoff\x18\x02 \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x03 \x01(\x01\"2\n ConfigureTriggerSoftwareResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x1eSendSoftwareTriggerEdgeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\rwhich_trigger\x18\x02 \x01(\x0e\x32\x1a.niscope_grpc.WhichTriggerH\x00\x12\x1b\n\x11which_trigger_raw\x18\x03 \x01(\x11H\x00\x42\x14\n\x12which_trigger_enum\"1\n\x1fSendSoftwareTriggerEdgeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"F\n ConfigureTriggerImmediateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"3\n!ConfigureTriggerImmediateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xf5\x02\n\x1b\x43onfigureTriggerRuntRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\x15\n\rlow_threshold\x18\x03 \x01(\x01\x12\x16\n\x0ehigh_threshold\x18\x04 \x01(\x01\x12.\n\x08polarity\x18\x05 \x01(\x0e\x32\x1a.niscope_grpc.RuntPolarityH\x00\x12\x16\n\x0cpolarity_raw\x18\x06 \x01(\x11H\x00\x12\x39\n\x10trigger_coupling\x18\x07 \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x01\x12\x1e\n\x14trigger_coupling_raw\x18\x08 \x01(\x11H\x01\x12\x0f\n\x07holdoff\x18\t \x01(\x01\x12\r\n\x05\x64\x65lay\x18\n \x01(\x01\x42\x0f\n\rpolarity_enumB\x17\n\x15trigger_coupling_enum\".\n\x1c\x43onfigureTriggerRuntResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xcc\x01\n\x1e\x43onfigureTriggerDigitalRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12+\n\x05slope\x18\x03 \x01(\x0e\x32\x1a.niscope_grpc.TriggerSlopeH\x00\x12\x13\n\tslope_raw\x18\x04 \x01(\x11H\x00\x12\x0f\n\x07holdoff\x18\x05 \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x06 \x01(\x01\x42\x0c\n\nslope_enum\"1\n\x1f\x43onfigureTriggerDigitalResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xba\x04\n\x1c\x43onfigureTriggerVideoRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\x19\n\x11\x65nable_dc_restore\x18\x03 \x01(\x08\x12\x38\n\rsignal_format\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.VideoSignalFormatH\x00\x12\x1b\n\x11signal_format_raw\x18\x05 \x01(\x11H\x00\x12\x30\n\x05\x65vent\x18\x06 \x01(\x0e\x32\x1f.niscope_grpc.VideoTriggerEventH\x01\x12\x13\n\tevent_raw\x18\x07 \x01(\x11H\x01\x12\x13\n\x0bline_number\x18\x08 \x01(\x11\x12/\n\x08polarity\x18\t \x01(\x0e\x32\x1b.niscope_grpc.VideoPolarityH\x02\x12\x16\n\x0cpolarity_raw\x18\n \x01(\x11H\x02\x12\x39\n\x10trigger_coupling\x18\x0b \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x03\x12\x1e\n\x14trigger_coupling_raw\x18\x0c \x01(\x11H\x03\x12\x0f\n\x07holdoff\x18\r \x01(\x01\x12\r\n\x05\x64\x65lay\x18\x0e \x01(\x01\x42\x14\n\x12signal_format_enumB\x0c\n\nevent_enumB\x0f\n\rpolarity_enumB\x17\n\x15trigger_coupling_enum\"/\n\x1d\x43onfigureTriggerVideoResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe4\x03\n\x1c\x43onfigureTriggerWidthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x16\n\x0etrigger_source\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x01\x12\x15\n\rlow_threshold\x18\x04 \x01(\x01\x12\x16\n\x0ehigh_threshold\x18\x05 \x01(\x01\x12/\n\x08polarity\x18\x06 \x01(\x0e\x32\x1b.niscope_grpc.WidthPolarityH\x00\x12\x16\n\x0cpolarity_raw\x18\x07 \x01(\x11H\x00\x12\x31\n\tcondition\x18\x08 \x01(\x0e\x32\x1c.niscope_grpc.WidthConditionH\x01\x12\x17\n\rcondition_raw\x18\t \x01(\x11H\x01\x12\x39\n\x10trigger_coupling\x18\n \x01(\x0e\x32\x1d.niscope_grpc.TriggerCouplingH\x02\x12\x1e\n\x14trigger_coupling_raw\x18\x0b \x01(\x11H\x02\x12\x0f\n\x07holdoff\x18\x0c \x01(\x01\x12\r\n\x05\x64\x65lay\x18\r \x01(\x01\x42\x0f\n\rpolarity_enumB\x10\n\x0e\x63ondition_enumB\x17\n\x15trigger_coupling_enum\"/\n\x1d\x43onfigureTriggerWidthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x80\x01\n.ConfigureEqualizationFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x14\n\x0c\x63oefficients\x18\x03 \x03(\x01\"A\n/ConfigureEqualizationFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x7f\n(GetEqualizationFilterCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x1e\n\x16number_of_coefficients\x18\x03 \x01(\x11\"Q\n)GetEqualizationFilterCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0c\x63oefficients\x18\x02 \x03(\x01\"g\n\x1bGetFrequencyResponseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x0f\n\x07\x63hannel\x18\x02 \x01(\t\x12\x13\n\x0b\x62uffer_size\x18\x03 \x01(\x11\"\x86\x01\n\x1cGetFrequencyResponseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0b\x66requencies\x18\x02 \x03(\x01\x12\x12\n\namplitudes\x18\x03 \x03(\x01\x12\x0e\n\x06phases\x18\x04 \x03(\x01\x12\x1d\n\x15number_of_frequencies\x18\x05 \x01(\x11\"[\n\x1b\x43onfigureAcquisitionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x18\n\x10\x61\x63quisition_type\x18\x02 \x01(\x11\".\n\x1c\x43onfigureAcquisitionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aInitiateAcquisitionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1bInitiateAcquisitionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0c\x41\x62ortRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rAbortResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"m\n\x0bReadRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"^\n\x0cReadResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x01\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"n\n\x0c\x46\x65tchRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"_\n\rFetchResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x01\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"u\n\x13\x46\x65tchBinary8Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"f\n\x14\x46\x65tchBinary8Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x01(\x0c\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"v\n\x14\x46\x65tchBinary16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"g\n\x15\x46\x65tchBinary16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x11\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"v\n\x14\x46\x65tchBinary32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"g\n\x15\x46\x65tchBinary32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08waveform\x18\x02 \x03(\x11\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"u\n\x13\x46\x65tchComplexRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"\x81\x01\n\x14\x46\x65tchComplexResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12+\n\x03wfm\x18\x02 \x03(\x0b\x32\x1e.nidevice_grpc.NIComplexNumber\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"}\n\x1b\x46\x65tchComplexBinary16Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x13\n\x0bnum_samples\x18\x04 \x01(\x11\"\x86\x01\n\x1c\x46\x65tchComplexBinary16Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12(\n\x03wfm\x18\x02 \x03(\x0b\x32\x1b.nidevice_grpc.NIComplexI16\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\">\n\x18\x41\x63quisitionStatusRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x88\x01\n\x19\x41\x63quisitionStatusResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12;\n\x12\x61\x63quisition_status\x18\x02 \x01(\x0e\x32\x1f.niscope_grpc.AcquisitionStatus\x12\x1e\n\x16\x61\x63quisition_status_raw\x18\x03 \x01(\x11\"P\n\x14\x41\x63tualNumWfmsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"9\n\x15\x41\x63tualNumWfmsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08num_wfms\x18\x02 \x01(\x11\"\xbc\x01\n\x18\x41\x63tualMeasWfmSizeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12=\n\x13\x61rray_meas_function\x18\x02 \x01(\x0e\x32\x1e.niscope_grpc.ArrayMeasurementH\x00\x12!\n\x17\x61rray_meas_function_raw\x18\x03 \x01(\x11H\x00\x42\x1a\n\x18\x61rray_meas_function_enum\"G\n\x19\x41\x63tualMeasWfmSizeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1a\n\x12meas_waveform_size\x18\x02 \x01(\x11\"?\n\x19\x41\x63tualRecordLengthRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"C\n\x1a\x41\x63tualRecordLengthResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rrecord_length\x18\x02 \x01(\x11\"7\n\x11SampleRateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"9\n\x12SampleRateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bsample_rate\x18\x02 \x01(\x01\"7\n\x11SampleModeRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"9\n\x12SampleModeResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bsample_mode\x18\x02 \x01(\x11\"\xc4\x01\n\x1c\x41\x64\x64WaveformProcessingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x37\n\rmeas_function\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.ArrayMeasurementH\x00\x12\x1b\n\x11meas_function_raw\x18\x04 \x01(\x11H\x00\x42\x14\n\x12meas_function_enum\"/\n\x1d\x41\x64\x64WaveformProcessingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Z\n\x1e\x43learWaveformProcessingRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"1\n\x1f\x43learWaveformProcessingResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x83\x02\n$ClearWaveformMeasurementStatsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12L\n\x1e\x63learable_measurement_function\x18\x03 \x01(\x0e\x32\".niscope_grpc.ClearableMeasurementH\x00\x12,\n\"clearable_measurement_function_raw\x18\x04 \x01(\x11H\x00\x42%\n#clearable_measurement_function_enum\"7\n%ClearWaveformMeasurementStatsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xe5\x01\n\x16ReadMeasurementRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12?\n\x14scalar_meas_function\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.ScalarMeasurementH\x00\x12\"\n\x18scalar_meas_function_raw\x18\x05 \x01(\x11H\x00\x42\x1b\n\x19scalar_meas_function_enum\"9\n\x17ReadMeasurementResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x03(\x01\"\xe6\x01\n\x17\x46\x65tchMeasurementRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12?\n\x14scalar_meas_function\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.ScalarMeasurementH\x00\x12\"\n\x18scalar_meas_function_raw\x18\x05 \x01(\x11H\x00\x42\x1b\n\x19scalar_meas_function_enum\":\n\x18\x46\x65tchMeasurementResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x03(\x01\"\xeb\x01\n\x1c\x46\x65tchMeasurementStatsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12?\n\x14scalar_meas_function\x18\x04 \x01(\x0e\x32\x1f.niscope_grpc.ScalarMeasurementH\x00\x12\"\n\x18scalar_meas_function_raw\x18\x05 \x01(\x11H\x00\x42\x1b\n\x19scalar_meas_function_enum\"\x8c\x01\n\x1d\x46\x65tchMeasurementStatsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06result\x18\x02 \x03(\x01\x12\x0c\n\x04mean\x18\x03 \x03(\x01\x12\r\n\x05stdev\x18\x04 \x03(\x01\x12\x0b\n\x03min\x18\x05 \x03(\x01\x12\x0b\n\x03max\x18\x06 \x03(\x01\x12\x14\n\x0cnum_in_stats\x18\x07 \x03(\x11\"\x95\x02\n\x1c\x46\x65tchArrayMeasurementRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12=\n\x13\x61rray_meas_function\x18\x04 \x01(\x0e\x32\x1e.niscope_grpc.ArrayMeasurementH\x00\x12!\n\x17\x61rray_meas_function_raw\x18\x05 \x01(\x11H\x00\x12\x1a\n\rmeas_wfm_size\x18\x06 \x01(\x11H\x01\x88\x01\x01\x42\x1a\n\x18\x61rray_meas_function_enumB\x10\n\x0e_meas_wfm_size\"o\n\x1d\x46\x65tchArrayMeasurementResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x10\n\x08meas_wfm\x18\x02 \x03(\x01\x12,\n\x08wfm_info\x18\x03 \x03(\x0b\x32\x1a.niscope_grpc.WaveformInfo\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"8\n\x12ResetDeviceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"%\n\x13ResetDeviceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa0\x01\n\x17\x43\x61lSelfCalibrateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12&\n\x06option\x18\x03 \x01(\x0e\x32\x14.niscope_grpc.OptionH\x00\x12\x14\n\noption_raw\x18\x04 \x01(\x11H\x00\x42\r\n\x0boption_enum\"*\n\x18\x43\x61lSelfCalibrateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"[\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x64river_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"I\n#ProbeCompensationSignalStartRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"6\n$ProbeCompensationSignalStartResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"H\n\"ProbeCompensationSignalStopRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"5\n#ProbeCompensationSignalStopResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1c\x43\x61\x62leSenseSignalStartRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1d\x43\x61\x62leSenseSignalStartResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"A\n\x1b\x43\x61\x62leSenseSignalStopRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\".\n\x1c\x43\x61\x62leSenseSignalStopResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"@\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x16\n\x0e\x63hannel_string\x18\x02 \x01(\t\"T\n\x1fGetChannelNameFromStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\t\"@\n GetChannelNameFromStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\"c\n\x13\x45rrorHandlerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x14\n\x0c\x65rror_source\x18\x03 \x01(\t\"A\n\x14\x45rrorHandlerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11\x65rror_description\x18\x02 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"K\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"P\n\x16GetErrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"@\n\x17GetErrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"\x8c\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"<\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x11\"\xeb\x01\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x11H\x00\x12:\n\x05value\x18\x05 \x01(\x0e\x32).niscope_grpc.NiScopeInt32AttributeValuesH\x00\x42\x0c\n\nvalue_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xed\x01\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x11H\x00\x12:\n\x05value\x18\x05 \x01(\x0e\x32).niscope_grpc.NiScopeInt32AttributeValuesH\x00\x42\x0c\n\nvalue_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8c\x01\n\x1aGetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"<\n\x1bGetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x03\"\x9f\x01\n\x1aSetAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"-\n\x1bSetAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa1\x01\n\x1c\x43heckAttributeViInt64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x11\n\tvalue_raw\x18\x04 \x01(\x03\"/\n\x1d\x43heckAttributeViInt64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"=\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x01\"\xb7\x02\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x01H\x00\x12;\n\x05value\x18\x05 \x01(\x0e\x32*.niscope_grpc.NiScopeReal64AttributeValuesH\x00\x12H\n\x0cvalue_mapped\x18\x06 \x01(\x0e\x32\x30.niscope_grpc.NiScopeReal64AttributeValuesMappedH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb9\x02\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\x13\n\tvalue_raw\x18\x04 \x01(\x01H\x00\x12;\n\x05value\x18\x05 \x01(\x0e\x32*.niscope_grpc.NiScopeReal64AttributeValuesH\x00\x12H\n\x0cvalue_mapped\x18\x06 \x01(\x0e\x32\x30.niscope_grpc.NiScopeReal64AttributeValuesMappedH\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8d\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"=\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\t\"\xfa\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12H\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32\x30.niscope_grpc.NiScopeStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xfc\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12H\n\x0cvalue_mapped\x18\x04 \x01(\x0e\x32\x30.niscope_grpc.NiScopeStringAttributeValuesMappedH\x00\x12\x13\n\tvalue_raw\x18\x05 \x01(\tH\x00\x42\x0c\n\nvalue_enum\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8e\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\"V\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\xb5\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xb7\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12%\n\x05value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8e\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\">\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\x08\"\x9d\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x9f\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\x12\x34\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32\x1e.niscope_grpc.NiScopeAttribute\x12\r\n\x05value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"f\n)ImportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"<\n*ImportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"O\n)ExportAttributeConfigurationBufferRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"S\n*ExportAttributeConfigurationBufferResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rconfiguration\x18\x02 \x01(\x0c\"`\n\'ImportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ImportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"`\n\'ExportAttributeConfigurationFileRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tfile_path\x18\x02 \x01(\t\":\n(ExportAttributeConfigurationFileResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"Y\n\x1dGetScalingCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x8d\x01\n\x1eGetScalingCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x37\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1d.niscope_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"_\n#GetNormalizationCoefficientsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_list\x18\x02 \x01(\t\"\x93\x01\n$GetNormalizationCoefficientsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x37\n\x10\x63oefficient_info\x18\x02 \x03(\x0b\x32\x1d.niscope_grpc.CoefficientInfo\x12\"\n\x1anumber_of_coefficient_sets\x18\x03 \x01(\x11\"Y\n\x1eGetStreamEndpointHandleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x13\n\x0bstream_name\x18\x02 \x01(\t\"H\n\x1fGetStreamEndpointHandleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rwriter_handle\x18\x02 \x01(\r\"\x99\x01\n\x13\x43\x61lFetchDateRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\twhich_one\x18\x02 \x01(\x0e\x32\x1e.niscope_grpc.CalibrationTypesH\x00\x12\x17\n\rwhich_one_raw\x18\x03 \x01(\x11H\x00\x42\x10\n\x0ewhich_one_enum\"P\n\x14\x43\x61lFetchDateResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04year\x18\x02 \x01(\x11\x12\r\n\x05month\x18\x03 \x01(\x11\x12\x0b\n\x03\x64\x61y\x18\x04 \x01(\x11\"\xa0\x01\n\x1a\x43\x61lFetchTemperatureRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x33\n\twhich_one\x18\x02 \x01(\x0e\x32\x1e.niscope_grpc.CalibrationTypesH\x00\x12\x17\n\rwhich_one_raw\x18\x03 \x01(\x11H\x00\x42\x10\n\x0ewhich_one_enum\"B\n\x1b\x43\x61lFetchTemperatureResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0btemperature\x18\x02 \x01(\x01*\xe0Q\n\x10NiScopeAttribute\x12!\n\x1dNISCOPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12%\n\x1fNISCOPE_ATTRIBUTE_MEAS_HIGH_REF\x10\xaf\xaaL\x12$\n\x1eNISCOPE_ATTRIBUTE_MEAS_LOW_REF\x10\xb0\xaaL\x12\x1d\n\x17NISCOPE_ATTRIBUTE_CACHE\x10\x94\x8b@\x12$\n\x1eNISCOPE_ATTRIBUTE_MEAS_MID_REF\x10\xb1\xaaL\x12#\n\x1dNISCOPE_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12/\n)NISCOPE_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12(\n\"NISCOPE_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12 \n\x1aNISCOPE_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12)\n#NISCOPE_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12%\n\x1fNISCOPE_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12\x33\n-NISCOPE_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12*\n$NISCOPE_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12\x33\n-NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12.\n(NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12.\n(NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12@\n:NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12@\n:NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x30\n*NISCOPE_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12/\n)NISCOPE_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12(\n\"NISCOPE_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x34\n.NISCOPE_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12.\n(NISCOPE_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12$\n\x1eNISCOPE_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12$\n\x1eNISCOPE_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12(\n\"NISCOPE_ATTRIBUTE_ACQUISITION_TYPE\x10\xb5\xa6L\x12#\n\x1dNISCOPE_ATTRIBUTE_SAMPLE_MODE\x10\xba\xa6L\x12\'\n!NISCOPE_ATTRIBUTE_CHANNEL_ENABLED\x10\xd5\xa5L\x12)\n#NISCOPE_ATTRIBUTE_PROBE_ATTENUATION\x10\xd4\xa5L\x12&\n NISCOPE_ATTRIBUTE_VERTICAL_RANGE\x10\xd1\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_VERTICAL_OFFSET\x10\xd2\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_WIDTH_CONDITION\x10\xc8\xa9L\x12+\n%NISCOPE_ATTRIBUTE_WIDTH_LOW_THRESHOLD\x10\xc5\xa9L\x12,\n&NISCOPE_ATTRIBUTE_WIDTH_HIGH_THRESHOLD\x10\xc6\xa9L\x12&\n NISCOPE_ATTRIBUTE_WIDTH_POLARITY\x10\xc7\xa9L\x12)\n#NISCOPE_ATTRIBUTE_VERTICAL_COUPLING\x10\xd3\xa5L\x12+\n%NISCOPE_ATTRIBUTE_MAX_INPUT_FREQUENCY\x10\xd6\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_INPUT_IMPEDANCE\x10\xb7\xa6L\x12,\n&NISCOPE_ATTRIBUTE_HORZ_TIME_PER_RECORD\x10\xd7\xa5L\x12.\n(NISCOPE_ATTRIBUTE_ACQUISITION_START_TIME\x10\xbd\xa6L\x12(\n\"NISCOPE_ATTRIBUTE_HORZ_MIN_NUM_PTS\x10\xd9\xa5L\x12*\n$NISCOPE_ATTRIBUTE_HORZ_RECORD_LENGTH\x10\xd8\xa5L\x12\x30\n*NISCOPE_ATTRIBUTE_HORZ_RECORD_REF_POSITION\x10\xdb\xa5L\x12(\n\"NISCOPE_ATTRIBUTE_HORZ_SAMPLE_RATE\x10\xda\xa5L\x12$\n\x1eNISCOPE_ATTRIBUTE_TRIGGER_TYPE\x10\xdc\xa5L\x12&\n NISCOPE_ATTRIBUTE_TRIGGER_SOURCE\x10\xdd\xa5L\x12%\n\x1fNISCOPE_ATTRIBUTE_TRIGGER_LEVEL\x10\xe1\xa5L\x12*\n$NISCOPE_ATTRIBUTE_TRIGGER_DELAY_TIME\x10\xdf\xa5L\x12\'\n!NISCOPE_ATTRIBUTE_TRIGGER_HOLDOFF\x10\xe0\xa5L\x12(\n\"NISCOPE_ATTRIBUTE_TRIGGER_COUPLING\x10\xde\xa5L\x12%\n\x1fNISCOPE_ATTRIBUTE_TRIGGER_SLOPE\x10\xe2\xa5L\x12(\n\"NISCOPE_ATTRIBUTE_TV_TRIGGER_EVENT\x10\x9d\xa7L\x12.\n(NISCOPE_ATTRIBUTE_TV_TRIGGER_LINE_NUMBER\x10\x9e\xa7L\x12\x30\n*NISCOPE_ATTRIBUTE_TV_TRIGGER_SIGNAL_FORMAT\x10\x99\xa7L\x12+\n%NISCOPE_ATTRIBUTE_TV_TRIGGER_POLARITY\x10\x9c\xa7L\x12(\n\"NISCOPE_ATTRIBUTE_HORZ_NUM_RECORDS\x10\xb1\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_INPUT_CLOCK_SOURCE\x10\xb2\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_OUTPUT_CLOCK_SOURCE\x10\xb3\x98\x46\x12-\n\'NISCOPE_ATTRIBUTE_HORZ_ENFORCE_REALTIME\x10\xb4\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_BINARY_SAMPLE_WIDTH\x10\xb5\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_CABLE_SENSE_VOLTAGE\x10\xb9\x99\x46\x12(\n\"NISCOPE_ATTRIBUTE_CABLE_SENSE_MODE\x10\xba\x99\x46\x12\x31\n+NISCOPE_ATTRIBUTE_CABLE_SENSE_SIGNAL_ENABLE\x10\xbb\x99\x46\x12*\n$NISCOPE_ATTRIBUTE_TRIGGER_HYSTERESIS\x10\xb6\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_CLOCK_SYNC_PULSE_SOURCE\x10\xb7\x98\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_MASTER_ENABLE\x10\xb8\x98\x46\x12\'\n!NISCOPE_ATTRIBUTE_MIN_SAMPLE_RATE\x10\xb9\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_TRIGGER_WINDOW_MODE\x10\xbc\x98\x46\x12\x30\n*NISCOPE_ATTRIBUTE_TRIGGER_WINDOW_LOW_LEVEL\x10\xbd\x98\x46\x12\x31\n+NISCOPE_ATTRIBUTE_TRIGGER_WINDOW_HIGH_LEVEL\x10\xbe\x98\x46\x12,\n&NISCOPE_ATTRIBUTE_MEAS_REF_LEVEL_UNITS\x10\xc0\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_MEAS_OTHER_CHANNEL\x10\xc2\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_HYSTERESIS_PERCENT\x10\xc3\x98\x46\x12\x34\n.NISCOPE_ATTRIBUTE_MEAS_LAST_ACQ_HISTOGRAM_SIZE\x10\xc4\x98\x46\x12\x33\n-NISCOPE_ATTRIBUTE_MEAS_VOLTAGE_HISTOGRAM_SIZE\x10\xc5\x98\x46\x12\x38\n2NISCOPE_ATTRIBUTE_MEAS_VOLTAGE_HISTOGRAM_LOW_VOLTS\x10\xc6\x98\x46\x12\x39\n3NISCOPE_ATTRIBUTE_MEAS_VOLTAGE_HISTOGRAM_HIGH_VOLTS\x10\xc7\x98\x46\x12\x30\n*NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_SIZE\x10\xc8\x98\x46\x12\x35\n/NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_LOW_VOLTS\x10\xc9\x98\x46\x12\x36\n0NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_HIGH_VOLTS\x10\xca\x98\x46\x12\x34\n.NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_LOW_TIME\x10\xcb\x98\x46\x12\x35\n/NISCOPE_ATTRIBUTE_MEAS_TIME_HISTOGRAM_HIGH_TIME\x10\xcc\x98\x46\x12;\n5NISCOPE_ATTRIBUTE_MEAS_POLYNOMIAL_INTERPOLATION_ORDER\x10\xcd\x98\x46\x12:\n4NISCOPE_ATTRIBUTE_MEAS_INTERPOLATION_SAMPLING_FACTOR\x10\xce\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_FILTER_CUTOFF_FREQ\x10\xcf\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_FILTER_CENTER_FREQ\x10\xd0\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_MEAS_FILTER_RIPPLE\x10\xd1\x98\x46\x12>\n8NISCOPE_ATTRIBUTE_MEAS_FILTER_TRANSIENT_WAVEFORM_PERCENT\x10\xd2\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_MEAS_FILTER_TYPE\x10\xd3\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_MEAS_FILTER_ORDER\x10\xd4\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_MEAS_FILTER_TAPS\x10\xd5\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_CHAN_LOW_REF_LEVEL\x10\xd6\x98\x46\x12/\n)NISCOPE_ATTRIBUTE_MEAS_CHAN_MID_REF_LEVEL\x10\xd7\x98\x46\x12\x30\n*NISCOPE_ATTRIBUTE_MEAS_CHAN_HIGH_REF_LEVEL\x10\xd8\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_MEAS_FILTER_WIDTH\x10\xd9\x98\x46\x12.\n(NISCOPE_ATTRIBUTE_MEAS_FIR_FILTER_WINDOW\x10\xda\x98\x46\x12\'\n!NISCOPE_ATTRIBUTE_MEAS_ARRAY_GAIN\x10\xdb\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_MEAS_ARRAY_OFFSET\x10\xdc\x98\x46\x12.\n(NISCOPE_ATTRIBUTE_MEAS_PERCENTAGE_METHOD\x10\xdd\x98\x46\x12&\n NISCOPE_ATTRIBUTE_ACQ_ARM_SOURCE\x10\xe5\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_IS_PROBE_COMP_ON\x10\xf2\x98\x46\x12*\n$NISCOPE_ATTRIBUTE_USE_SPEC_INITIAL_X\x10\xf3\x98\x46\x12\x36\n0NISCOPE_ATTRIBUTE_ALLOW_MORE_RECORDS_THAN_MEMORY\x10\xf4\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_ONBOARD_MEMORY_SIZE\x10\xf5\x98\x46\x12(\n\"NISCOPE_ATTRIBUTE_RIS_NUM_AVERAGES\x10\xf6\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_RUNT_TIME_CONDITION\x10\xb4\x99\x46\x12+\n%NISCOPE_ATTRIBUTE_RUNT_TIME_LOW_LIMIT\x10\xb5\x99\x46\x12,\n&NISCOPE_ATTRIBUTE_RUNT_TIME_HIGH_LIMIT\x10\xb6\x99\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_RUNT_POLARITY\x10\xff\xa7L\x12*\n$NISCOPE_ATTRIBUTE_RUNT_LOW_THRESHOLD\x10\xfe\xa7L\x12+\n%NISCOPE_ATTRIBUTE_RUNT_HIGH_THRESHOLD\x10\xfd\xa7L\x12\"\n\x1cNISCOPE_ATTRIBUTE_RIS_METHOD\x10\xf7\x98\x46\x12.\n(NISCOPE_ATTRIBUTE_FETCH_INTERLEAVED_DATA\x10\xf8\x98\x46\x12\x33\n-NISCOPE_ATTRIBUTE_MAX_REAL_TIME_SAMPLING_RATE\x10\xf9\x98\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_MAX_RIS_RATE\x10\xfa\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_TRIGGER_IMPEDANCE\x10\xfb\x98\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_DEVICE_NUMBER\x10\xfc\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_FETCH_RELATIVE_TO\x10\xfd\x98\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_FETCH_OFFSET\x10\xfe\x98\x46\x12+\n%NISCOPE_ATTRIBUTE_FETCH_RECORD_NUMBER\x10\xff\x98\x46\x12)\n#NISCOPE_ATTRIBUTE_FETCH_NUM_RECORDS\x10\x80\x99\x46\x12.\n(NISCOPE_ATTRIBUTE_FETCH_MEAS_NUM_SAMPLES\x10\x81\x99\x46\x12#\n\x1dNISCOPE_ATTRIBUTE_POINTS_DONE\x10\x82\x99\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_RECORDS_DONE\x10\x83\x99\x46\x12\x1f\n\x19NISCOPE_ATTRIBUTE_BACKLOG\x10\x84\x99\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_POLL_INTERVAL\x10\x94\x99\x46\x12\'\n!NISCOPE_ATTRIBUTE_PLL_LOCK_STATUS\x10\xc7\xa2\x46\x12*\n$NISCOPE_ATTRIBUTE_DEVICE_TEMPERATURE\x10\x86\x99\x46\x12-\n\'NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_SRC\x10\x87\x99\x46\x12.\n(NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_RATE\x10\x88\x99\x46\x12-\n\'NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_DIV\x10\x89\x99\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_REF_CLK_RATE\x10\x8a\x99\x46\x12=\n7NISCOPE_ATTRIBUTE_EXPORTED_SAMPLE_CLOCK_OUTPUT_TERMINAL\x10\x8b\x99\x46\x12)\n#NISCOPE_ATTRIBUTE_ENABLE_DC_RESTORE\x10\x8d\x99\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_ADV_TRIG_SRC\x10\x8e\x99\x46\x12(\n\"NISCOPE_ATTRIBUTE_ARM_REF_TRIG_SRC\x10\x8f\x99\x46\x12+\n%NISCOPE_ATTRIBUTE_REF_TRIG_TDC_ENABLE\x10\x90\x99\x46\x12\"\n\x1cNISCOPE_ATTRIBUTE_RESOLUTION\x10\x96\x99\x46\x12\x34\n.NISCOPE_ATTRIBUTE_START_TO_REF_TRIGGER_HOLDOFF\x10\x97\x99\x46\x12%\n\x1fNISCOPE_ATTRIBUTE_SERIAL_NUMBER\x10\x98\x99\x46\x12\x32\n,NISCOPE_ATTRIBUTE_OSCILLATOR_PHASE_DAC_VALUE\x10\x99\x99\x46\x12\x30\n*NISCOPE_ATTRIBUTE_RIS_IN_AUTO_SETUP_ENABLE\x10\x9a\x99\x46\x12\x36\n0NISCOPE_ATTRIBUTE_CHANNEL_TERMINAL_CONFIGURATION\x10\x9b\x99\x46\x12@\n:NISCOPE_ATTRIBUTE_EXPORTED_ADVANCE_TRIGGER_OUTPUT_TERMINAL\x10\x9d\x99\x46\x12=\n7NISCOPE_ATTRIBUTE_READY_FOR_START_EVENT_OUTPUT_TERMINAL\x10\x9e\x99\x46\x12;\n5NISCOPE_ATTRIBUTE_READY_FOR_REF_EVENT_OUTPUT_TERMINAL\x10\x9f\x99\x46\x12?\n9NISCOPE_ATTRIBUTE_READY_FOR_ADVANCE_EVENT_OUTPUT_TERMINAL\x10\xa0\x99\x46\x12\x36\n0NISCOPE_ATTRIBUTE_FLEX_FIR_ANTIALIAS_FILTER_TYPE\x10\xbf\x9a\x46\x12#\n\x1dNISCOPE_ATTRIBUTE_DDC_ENABLED\x10\xdc\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_DDC_FREQUENCY_TRANSLATION_ENABLED\x10\xde\x9a\x46\x12,\n&NISCOPE_ATTRIBUTE_DDC_CENTER_FREQUENCY\x10\xdf\x9a\x46\x12\x30\n*NISCOPE_ATTRIBUTE_DDC_DATA_PROCESSING_MODE\x10\xe0\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_DDC_FREQUENCY_TRANSLATION_PHASE_I\x10\xe1\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_DDC_FREQUENCY_TRANSLATION_PHASE_Q\x10\xe2\x9a\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_DIGITAL_GAIN\x10\xe3\x9a\x46\x12&\n NISCOPE_ATTRIBUTE_DIGITAL_OFFSET\x10\xe4\x9a\x46\x12\x30\n*NISCOPE_ATTRIBUTE_OVERFLOW_ERROR_REPORTING\x10\xe5\x9a\x46\x12$\n\x1eNISCOPE_ATTRIBUTE_DDC_Q_SOURCE\x10\xe6\x9a\x46\x12\x31\n+NISCOPE_ATTRIBUTE_FETCH_INTERLEAVED_IQ_DATA\x10\xe7\x9a\x46\x12\x35\n/NISCOPE_ATTRIBUTE_EQUALIZATION_NUM_COEFFICIENTS\x10\xe8\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_EQUALIZATION_FILTER_ENABLED\x10\xe9\x9a\x46\x12\x35\n/NISCOPE_ATTRIBUTE_REF_TRIGGER_DETECTOR_LOCATION\x10\xea\x9a\x46\x12\x36\n0NISCOPE_ATTRIBUTE_REF_TRIGGER_MINIMUM_QUIET_TIME\x10\xeb\x9a\x46\x12\x38\n2NISCOPE_ATTRIBUTE_ENABLE_TIME_INTERLEAVED_SAMPLING\x10\xb0\x99\x46\x12(\n\"NISCOPE_ATTRIBUTE_ENABLED_CHANNELS\x10\xbc\x99\x46\x12\x30\n*NISCOPE_ATTRIBUTE_DATA_TRANSFER_BLOCK_SIZE\x10\xec\x9a\x46\x12(\n\"NISCOPE_ATTRIBUTE_TRIGGER_MODIFIER\x10\xb6\xa6L\x12.\n(NISCOPE_ATTRIBUTE_TRIGGER_AUTO_TRIGGERED\x10\xc6\x9a\x46\x12>\n8NISCOPE_ATTRIBUTE_EXPORTED_START_TRIGGER_OUTPUT_TERMINAL\x10\x91\x99\x46\x12<\n6NISCOPE_ATTRIBUTE_EXPORTED_REF_TRIGGER_OUTPUT_TERMINAL\x10\x92\x99\x46\x12;\n5NISCOPE_ATTRIBUTE_END_OF_RECORD_EVENT_OUTPUT_TERMINAL\x10\x93\x99\x46\x12@\n:NISCOPE_ATTRIBUTE_END_OF_ACQUISITION_EVENT_OUTPUT_TERMINAL\x10\x95\x99\x46\x12.\n(NISCOPE_ATTRIBUTE_5V_OUT_OUTPUT_TERMINAL\x10\xb1\x99\x46\x12/\n)NISCOPE_ATTRIBUTE_BANDPASS_FILTER_ENABLED\x10\xee\x9a\x46\x12&\n NISCOPE_ATTRIBUTE_DITHER_ENABLED\x10\xef\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_FRACTIONAL_RESAMPLE_ENABLED\x10\xf0\x9a\x46\x12(\n\"NISCOPE_ATTRIBUTE_GLITCH_CONDITION\x10\xe3\xa8L\x12$\n\x1eNISCOPE_ATTRIBUTE_GLITCH_WIDTH\x10\xe1\xa8L\x12\'\n!NISCOPE_ATTRIBUTE_GLITCH_POLARITY\x10\xe2\xa8L\x12\x37\n1NISCOPE_ATTRIBUTE_DATA_TRANSFER_MAXIMUM_BANDWIDTH\x10\xf1\x9a\x46\x12;\n5NISCOPE_ATTRIBUTE_DATA_TRANSFER_PREFERRED_PACKET_SIZE\x10\xf2\x9a\x46\x12(\n\"NISCOPE_ATTRIBUTE_SIGNAL_COND_GAIN\x10\xc7\x9a\x46\x12*\n$NISCOPE_ATTRIBUTE_SIGNAL_COND_OFFSET\x10\xc8\x9a\x46\x12#\n\x1dNISCOPE_ATTRIBUTE_P2P_ENABLED\x10\x82\x9b\x46\x12.\n(NISCOPE_ATTRIBUTE_P2P_CHANNELS_TO_STREAM\x10\x83\x9b\x46\x12)\n#NISCOPE_ATTRIBUTE_P2P_ENDPOINT_SIZE\x10\x86\x9b\x46\x12\x35\n/NISCOPE_ATTRIBUTE_P2P_SAMPLES_AVAIL_IN_ENDPOINT\x10\xf8\x9a\x46\x12:\n4NISCOPE_ATTRIBUTE_P2P_MOST_SAMPLES_AVAIL_IN_ENDPOINT\x10\x85\x9b\x46\x12/\n)NISCOPE_ATTRIBUTE_P2P_SAMPLES_TRANSFERRED\x10\x84\x9b\x46\x12-\n\'NISCOPE_ATTRIBUTE_P2P_ENDPOINT_OVERFLOW\x10\x88\x9b\x46\x12/\n)NISCOPE_ATTRIBUTE_P2P_FIFO_ENDPOINT_COUNT\x10\x89\x9b\x46\x12\x32\n,NISCOPE_ATTRIBUTE_P2P_ONBOARD_MEMORY_ENABLED\x10\x92\x9b\x46\x12\x38\n2NISCOPE_ATTRIBUTE_P2P_MANUAL_CONFIGURATION_ENABLED\x10\x87\x9b\x46\x12\x36\n0NISCOPE_ATTRIBUTE_P2P_DATA_TRANS_PERMISSION_ADDR\x10\xf9\x9a\x46\x12;\n5NISCOPE_ATTRIBUTE_P2P_DATA_TRANS_PERMISSION_ADDR_TYPE\x10\xfa\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_P2P_DESTINATION_WINDOW_ADDR\x10\xfb\x9a\x46\x12\x38\n2NISCOPE_ATTRIBUTE_P2P_DESTINATION_WINDOW_ADDR_TYPE\x10\xfc\x9a\x46\x12\x33\n-NISCOPE_ATTRIBUTE_P2P_DESTINATION_WINDOW_SIZE\x10\xfd\x9a\x46\x12\x32\n,NISCOPE_ATTRIBUTE_P2P_NOTIFY_PUSH_MESSAGE_ON\x10\xfe\x9a\x46\x12\x34\n.NISCOPE_ATTRIBUTE_P2P_NOTIFY_MESSAGE_PUSH_ADDR\x10\xff\x9a\x46\x12\x39\n3NISCOPE_ATTRIBUTE_P2P_NOTIFY_MESSAGE_PUSH_ADDR_TYPE\x10\x80\x9b\x46\x12\x35\n/NISCOPE_ATTRIBUTE_P2P_NOTIFY_MESSAGE_PUSH_VALUE\x10\x81\x9b\x46\x12.\n(NISCOPE_ATTRIBUTE_SAMP_CLK_TIMEBASE_MULT\x10\x9f\x9b\x46\x12.\n(NISCOPE_ATTRIBUTE_P2P_STREAM_RELATIVE_TO\x10\xa5\x9b\x46\x12:\n4NISCOPE_ATTRIBUTE_P2P_SAMPLES_TRANSFERRED_PER_RECORD\x10\xac\x9b\x46\x12@\n:NISCOPE_ATTRIBUTE_END_OF_RECORD_TO_ADVANCE_TRIGGER_HOLDOFF\x10\x9e\x9b\x46\x12\x34\n.NISCOPE_ATTRIBUTE_ABSOLUTE_SAMPLE_CLOCK_OFFSET\x10\xa6\x9b\x46\x12)\n#NISCOPE_ATTRIBUTE_FPGA_BITFILE_PATH\x10\xa7\x9b\x46\x12>\n8NISCOPE_ATTRIBUTE_INTERLEAVING_OFFSET_CORRECTION_ENABLED\x10\xa8\x9b\x46\x12\x32\n,NISCOPE_ATTRIBUTE_HIGH_PASS_FILTER_FREQUENCY\x10\xa9\x9b\x46\x12>\n8NISCOPE_ATTRIBUTE_END_OF_ACQUISITION_EVENT_TERMINAL_NAME\x10\xbd\x99\x46\x12\x39\n3NISCOPE_ATTRIBUTE_END_OF_RECORD_EVENT_TERMINAL_NAME\x10\xbe\x99\x46\x12\x35\n/NISCOPE_ATTRIBUTE_ADVANCE_TRIGGER_TERMINAL_NAME\x10\xbf\x99\x46\x12\x31\n+NISCOPE_ATTRIBUTE_REF_TRIGGER_TERMINAL_NAME\x10\xc0\x99\x46\x12\x33\n-NISCOPE_ATTRIBUTE_START_TRIGGER_TERMINAL_NAME\x10\xc1\x99\x46\x12=\n7NISCOPE_ATTRIBUTE_READY_FOR_ADVANCE_EVENT_TERMINAL_NAME\x10\xc2\x99\x46\x12\x39\n3NISCOPE_ATTRIBUTE_READY_FOR_REF_EVENT_TERMINAL_NAME\x10\xc3\x99\x46\x12;\n5NISCOPE_ATTRIBUTE_READY_FOR_START_EVENT_TERMINAL_NAME\x10\xc4\x99\x46*\xf4\x01\n\x0cWhichTrigger\x12\x34\n0WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_START\x10\x00\x12<\n8WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_ARM_REFERENCE\x10\x01\x12\x38\n4WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_REFERENCE\x10\x02\x12\x36\n2WHICH_TRIGGER_NISCOPE_VAL_SOFTWARE_TRIGGER_ADVANCE\x10\x03*\x85\x01\n\x10VerticalCoupling\x12$\n VERTICAL_COUPLING_NISCOPE_VAL_AC\x10\x00\x12$\n VERTICAL_COUPLING_NISCOPE_VAL_DC\x10\x01\x12%\n!VERTICAL_COUPLING_NISCOPE_VAL_GND\x10\x02*\xe8\x01\n\x0fTriggerCoupling\x12#\n\x1fTRIGGER_COUPLING_NISCOPE_VAL_AC\x10\x00\x12#\n\x1fTRIGGER_COUPLING_NISCOPE_VAL_DC\x10\x01\x12*\n&TRIGGER_COUPLING_NISCOPE_VAL_HF_REJECT\x10\x03\x12*\n&TRIGGER_COUPLING_NISCOPE_VAL_LF_REJECT\x10\x04\x12\x33\n.TRIGGER_COUPLING_NISCOPE_VAL_AC_PLUS_HF_REJECT\x10\xe9\x07*\x8a\x01\n\x0cTriggerSlope\x12&\n\"TRIGGER_SLOPE_NISCOPE_VAL_NEGATIVE\x10\x00\x12&\n\"TRIGGER_SLOPE_NISCOPE_VAL_POSITIVE\x10\x01\x12*\n&TRIGGER_SLOPE_NISCOPE_VAL_SLOPE_EITHER\x10\x03*\x87\x01\n\rVideoPolarity\x12\x1e\n\x1aVIDEO_POLARITY_UNSPECIFIED\x10\x00\x12*\n&VIDEO_POLARITY_NISCOPE_VAL_TV_POSITIVE\x10\x01\x12*\n&VIDEO_POLARITY_NISCOPE_VAL_TV_NEGATIVE\x10\x02*\xcb\x02\n\x11VideoTriggerEvent\x12#\n\x1fVIDEO_TRIGGER_EVENT_UNSPECIFIED\x10\x00\x12\x33\n/VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_FIELD1\x10\x01\x12\x33\n/VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_FIELD2\x10\x02\x12\x36\n2VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_ANY_FIELD\x10\x03\x12\x35\n1VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_ANY_LINE\x10\x04\x12\x38\n4VIDEO_TRIGGER_EVENT_NISCOPE_VAL_TV_EVENT_LINE_NUMBER\x10\x05*\x9c\x01\n\x0fGlitchCondition\x12 \n\x1cGLITCH_CONDITION_UNSPECIFIED\x10\x00\x12\x34\n0GLITCH_CONDITION_NISCOPE_VAL_GLITCH_GREATER_THAN\x10\x02\x12\x31\n-GLITCH_CONDITION_NISCOPE_VAL_GLITCH_LESS_THAN\x10\x01*\xc2\x01\n\x0eGlitchPolarity\x12\x1f\n\x1bGLITCH_POLARITY_UNSPECIFIED\x10\x00\x12/\n+GLITCH_POLARITY_NISCOPE_VAL_GLITCH_POSITIVE\x10\x01\x12/\n+GLITCH_POLARITY_NISCOPE_VAL_GLITCH_NEGATIVE\x10\x02\x12-\n)GLITCH_POLARITY_NISCOPE_VAL_GLITCH_EITHER\x10\x03*\x8e\x01\n\x0eWidthCondition\x12\x1f\n\x1bWIDTH_CONDITION_UNSPECIFIED\x10\x00\x12,\n(WIDTH_CONDITION_NISCOPE_VAL_WIDTH_WITHIN\x10\x01\x12-\n)WIDTH_CONDITION_NISCOPE_VAL_WIDTH_OUTSIDE\x10\x02*\xba\x01\n\rWidthPolarity\x12\x1e\n\x1aWIDTH_POLARITY_UNSPECIFIED\x10\x00\x12-\n)WIDTH_POLARITY_NISCOPE_VAL_WIDTH_POSITIVE\x10\x01\x12-\n)WIDTH_POLARITY_NISCOPE_VAL_WIDTH_NEGATIVE\x10\x02\x12+\n\'WIDTH_POLARITY_NISCOPE_VAL_WIDTH_EITHER\x10\x03*\xb2\x01\n\x0cRuntPolarity\x12\x1d\n\x19RUNT_POLARITY_UNSPECIFIED\x10\x00\x12+\n\'RUNT_POLARITY_NISCOPE_VAL_RUNT_POSITIVE\x10\x01\x12+\n\'RUNT_POLARITY_NISCOPE_VAL_RUNT_NEGATIVE\x10\x02\x12)\n%RUNT_POLARITY_NISCOPE_VAL_RUNT_EITHER\x10\x03*\x96\x07\n\x16\x43lockingTerminalValues\x12(\n$CLOCKING_TERMINAL_VALUES_UNSPECIFIED\x10\x00\x12\x32\n.CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_NO_SOURCE\x10\x01\x12\x33\n/CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_RTSI_CLOCK\x10\x02\x12\x31\n-CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_EXTERNAL\x10\x03\x12.\n*CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PFI_0\x10\x04\x12.\n*CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PFI_1\x10\x05\x12.\n*CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PFI_2\x10\x06\x12/\n+CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_CLK_IN\x10\x07\x12\x30\n,CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_CLK_OUT\x10\x08\x12:\n6CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_INTERNAL10MHZ_OSC\x10\t\x12\x30\n,CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXI_CLK\x10\n\x12\x32\n.CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXI_CLK10\x10\x0b\x12\x33\n/CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXI_CLK100\x10\x0c\x12\x35\n1CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_PXIE_DSTAR_A\x10\r\x12\x35\n1CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_AUX_0_CLK_IN\x10\x0e\x12\x36\n2CLOCKING_TERMINAL_VALUES_NISCOPE_VAL_AUX_0_CLK_OUT\x10\x0f\x12\x46\nBCLOCKING_TERMINAL_VALUES_NISCOPE_VAL_ONBOARD_CONFIGURABLE_RATE_CLK\x10\x10*\xfa\x04\n\x11\x45xportableSignals\x12\"\n\x1e\x45XPORTABLE_SIGNALS_UNSPECIFIED\x10\x00\x12.\n*EXPORTABLE_SIGNALS_NISCOPE_VAL_REF_TRIGGER\x10\x01\x12\x30\n,EXPORTABLE_SIGNALS_NISCOPE_VAL_START_TRIGGER\x10\x02\x12;\n7EXPORTABLE_SIGNALS_NISCOPE_VAL_END_OF_ACQUISITION_EVENT\x10\x03\x12\x36\n2EXPORTABLE_SIGNALS_NISCOPE_VAL_END_OF_RECORD_EVENT\x10\x04\x12\x32\n.EXPORTABLE_SIGNALS_NISCOPE_VAL_ADVANCE_TRIGGER\x10\x05\x12:\n6EXPORTABLE_SIGNALS_NISCOPE_VAL_READY_FOR_ADVANCE_EVENT\x10\x06\x12\x38\n4EXPORTABLE_SIGNALS_NISCOPE_VAL_READY_FOR_START_EVENT\x10\x07\x12\x36\n2EXPORTABLE_SIGNALS_NISCOPE_VAL_READY_FOR_REF_EVENT\x10\n\x12)\n%EXPORTABLE_SIGNALS_NISCOPE_VAL_5V_OUT\x10\r\x12,\n(EXPORTABLE_SIGNALS_NISCOPE_VAL_REF_CLOCK\x10\x64\x12/\n+EXPORTABLE_SIGNALS_NISCOPE_VAL_SAMPLE_CLOCK\x10\x65*\xbc\x01\n\x11TriggerWindowMode\x12\x33\n/TRIGGER_WINDOW_MODE_NISCOPE_VAL_ENTERING_WINDOW\x10\x00\x12\x32\n.TRIGGER_WINDOW_MODE_NISCOPE_VAL_LEAVING_WINDOW\x10\x01\x12>\n:TRIGGER_WINDOW_MODE_NISCOPE_VAL_ENTERING_OR_LEAVING_WINDOW\x10\x02*\xb8\x01\n\x11\x41\x63quisitionStatus\x12\x32\n.ACQUISITION_STATUS_NISCOPE_VAL_ACQ_IN_PROGRESS\x10\x00\x12/\n+ACQUISITION_STATUS_NISCOPE_VAL_ACQ_COMPLETE\x10\x01\x12>\n1ACQUISITION_STATUS_NISCOPE_VAL_ACQ_STATUS_UNKNOWN\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01*\xcf\x0f\n\x11ScalarMeasurement\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_RISE_TIME\x10\x00\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_NO_MEASUREMENT\x10\xa0\x1f\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_FALL_TIME\x10\x01\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_FREQUENCY\x10\x02\x12)\n%SCALAR_MEASUREMENT_NISCOPE_VAL_PERIOD\x10\x03\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_RMS\x10\x04\x12\x37\n3SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK\x10\x05\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MAX\x10\x06\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MIN\x10\x07\x12/\n+SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HIGH\x10\x08\x12.\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_LOW\x10\t\x12\x32\n.SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_AVERAGE\x10\n\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_WIDTH_NEG\x10\x0b\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_WIDTH_POS\x10\x0c\x12\x31\n-SCALAR_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_NEG\x10\r\x12\x31\n-SCALAR_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_POS\x10\x0e\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_AMPLITUDE\x10\x0f\x12\x34\n0SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_RMS\x10\x10\x12\x38\n4SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE\x10\x11\x12,\n(SCALAR_MEASUREMENT_NISCOPE_VAL_OVERSHOOT\x10\x12\x12+\n\'SCALAR_MEASUREMENT_NISCOPE_VAL_PRESHOOT\x10\x13\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_LOW_REF_VOLTS\x10\xe8\x07\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_MID_REF_VOLTS\x10\xe9\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_HIGH_REF_VOLTS\x10\xea\x07\x12(\n#SCALAR_MEASUREMENT_NISCOPE_VAL_AREA\x10\xeb\x07\x12.\n)SCALAR_MEASUREMENT_NISCOPE_VAL_CYCLE_AREA\x10\xec\x07\x12,\n\'SCALAR_MEASUREMENT_NISCOPE_VAL_INTEGRAL\x10\xed\x07\x12\x30\n+SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE\x10\xee\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_TOP\x10\xef\x07\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_FFT_FREQUENCY\x10\xf0\x07\x12\x31\n,SCALAR_MEASUREMENT_NISCOPE_VAL_FFT_AMPLITUDE\x10\xf1\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_RISE_SLEW_RATE\x10\xf2\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_FALL_SLEW_RATE\x10\xf3\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_AC_ESTIMATE\x10\xf4\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_DC_ESTIMATE\x10\xf5\x07\x12.\n)SCALAR_MEASUREMENT_NISCOPE_VAL_TIME_DELAY\x10\xf6\x07\x12\x32\n-SCALAR_MEASUREMENT_NISCOPE_VAL_AVERAGE_PERIOD\x10\xf7\x07\x12\x35\n0SCALAR_MEASUREMENT_NISCOPE_VAL_AVERAGE_FREQUENCY\x10\xf8\x07\x12\x37\n2SCALAR_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE_TO_TOP\x10\xf9\x07\x12/\n*SCALAR_MEASUREMENT_NISCOPE_VAL_PHASE_DELAY\x10\xfa\x07*\xd4\x0b\n\x10\x41rrayMeasurement\x12!\n\x1d\x41RRAY_MEASUREMENT_UNSPECIFIED\x10\x00\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_NO_MEASUREMENT\x10\xa0\x1f\x12\x35\n0ARRAY_MEASUREMENT_NISCOPE_VAL_LAST_ACQ_HISTOGRAM\x10\xa1\x1f\x12\x35\n0ARRAY_MEASUREMENT_NISCOPE_VAL_FFT_PHASE_SPECTRUM\x10\xa2\x1f\x12=\n8ARRAY_MEASUREMENT_NISCOPE_VAL_FFT_AMP_SPECTRUM_VOLTS_RMS\x10\xa3\x1f\x12>\n9ARRAY_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_VOLTAGE_HISTOGRAM\x10\xa4\x1f\x12;\n6ARRAY_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_TIME_HISTOGRAM\x10\xa5\x1f\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_ARRAY_INTEGRAL\x10\xa6\x1f\x12-\n(ARRAY_MEASUREMENT_NISCOPE_VAL_DERIVATIVE\x10\xa7\x1f\x12*\n%ARRAY_MEASUREMENT_NISCOPE_VAL_INVERSE\x10\xa8\x1f\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_HANNING_WINDOW\x10\xa9\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_FLAT_TOP_WINDOW\x10\xaa\x1f\x12;\n6ARRAY_MEASUREMENT_NISCOPE_VAL_POLYNOMIAL_INTERPOLATION\x10\xab\x1f\x12\x34\n/ARRAY_MEASUREMENT_NISCOPE_VAL_MULTIPLY_CHANNELS\x10\xac\x1f\x12/\n*ARRAY_MEASUREMENT_NISCOPE_VAL_ADD_CHANNELS\x10\xad\x1f\x12\x34\n/ARRAY_MEASUREMENT_NISCOPE_VAL_SUBTRACT_CHANNELS\x10\xae\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_DIVIDE_CHANNELS\x10\xaf\x1f\x12\x34\n/ARRAY_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_AVERAGE\x10\xb0\x1f\x12\x35\n0ARRAY_MEASUREMENT_NISCOPE_VAL_BUTTERWORTH_FILTER\x10\xb1\x1f\x12\x33\n.ARRAY_MEASUREMENT_NISCOPE_VAL_CHEBYSHEV_FILTER\x10\xb2\x1f\x12\x36\n1ARRAY_MEASUREMENT_NISCOPE_VAL_FFT_AMP_SPECTRUM_DB\x10\xb3\x1f\x12\x31\n,ARRAY_MEASUREMENT_NISCOPE_VAL_HAMMING_WINDOW\x10\xb4\x1f\x12\x36\n1ARRAY_MEASUREMENT_NISCOPE_VAL_WINDOWED_FIR_FILTER\x10\xb5\x1f\x12\x30\n+ARRAY_MEASUREMENT_NISCOPE_VAL_BESSEL_FILTER\x10\xb6\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_TRIANGLE_WINDOW\x10\xb7\x1f\x12\x32\n-ARRAY_MEASUREMENT_NISCOPE_VAL_BLACKMAN_WINDOW\x10\xb8\x1f\x12/\n*ARRAY_MEASUREMENT_NISCOPE_VAL_ARRAY_OFFSET\x10\xb9\x1f\x12-\n(ARRAY_MEASUREMENT_NISCOPE_VAL_ARRAY_GAIN\x10\xba\x1f*\xa1\x01\n\x10\x43\x61librationTypes\x12.\n*CALIBRATION_TYPES_NISCOPE_VAL_CAL_EXTERNAL\x10\x00\x12*\n&CALIBRATION_TYPES_NISCOPE_VAL_CAL_SELF\x10\x01\x12\x31\n-CALIBRATION_TYPES_NISCOPE_VAL_CAL_MANUFACTURE\x10\x02*\xb3\x1e\n\x14\x43learableMeasurement\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_RISE_TIME\x10\x00\x12\x37\n2CLEARABLE_MEASUREMENT_NISCOPE_VAL_ALL_MEASUREMENTS\x10\x90N\x12\x42\n=CLEARABLE_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_VOLTAGE_HISTOGRAM\x10\xa4\x1f\x12?\n:CLEARABLE_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_TIME_HISTOGRAM\x10\xa5\x1f\x12\x38\n3CLEARABLE_MEASUREMENT_NISCOPE_VAL_MULTI_ACQ_AVERAGE\x10\xb0\x1f\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_FREQUENCY\x10\x02\x12\x38\n3CLEARABLE_MEASUREMENT_NISCOPE_VAL_AVERAGE_FREQUENCY\x10\xf8\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_FFT_FREQUENCY\x10\xf0\x07\x12,\n(CLEARABLE_MEASUREMENT_NISCOPE_VAL_PERIOD\x10\x03\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_AVERAGE_PERIOD\x10\xf7\x07\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_FALL_TIME\x10\x01\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_RISE_SLEW_RATE\x10\xf2\x07\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_FALL_SLEW_RATE\x10\xf3\x07\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_OVERSHOOT\x10\x12\x12.\n*CLEARABLE_MEASUREMENT_NISCOPE_VAL_PRESHOOT\x10\x13\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_RMS\x10\x04\x12\x37\n3CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_RMS\x10\x10\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_AC_ESTIMATE\x10\xf4\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_FFT_AMPLITUDE\x10\xf1\x07\x12\x35\n1CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_AVERAGE\x10\n\x12;\n7CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE\x10\x11\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_DC_ESTIMATE\x10\xf5\x07\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MAX\x10\x06\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_MIN\x10\x07\x12:\n6CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_PEAK_TO_PEAK\x10\x05\x12\x32\n.CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HIGH\x10\x08\x12\x31\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_LOW\x10\t\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_AMPLITUDE\x10\x0f\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_TOP\x10\xef\x07\x12\x33\n.CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE\x10\xee\x07\x12:\n5CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_BASE_TO_TOP\x10\xf9\x07\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_WIDTH_NEG\x10\x0b\x12/\n+CLEARABLE_MEASUREMENT_NISCOPE_VAL_WIDTH_POS\x10\x0c\x12\x34\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_NEG\x10\r\x12\x34\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_DUTY_CYCLE_POS\x10\x0e\x12/\n*CLEARABLE_MEASUREMENT_NISCOPE_VAL_INTEGRAL\x10\xed\x07\x12+\n&CLEARABLE_MEASUREMENT_NISCOPE_VAL_AREA\x10\xeb\x07\x12\x31\n,CLEARABLE_MEASUREMENT_NISCOPE_VAL_CYCLE_AREA\x10\xec\x07\x12\x31\n,CLEARABLE_MEASUREMENT_NISCOPE_VAL_TIME_DELAY\x10\xf6\x07\x12\x32\n-CLEARABLE_MEASUREMENT_NISCOPE_VAL_PHASE_DELAY\x10\xfa\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_LOW_REF_VOLTS\x10\xe8\x07\x12\x34\n/CLEARABLE_MEASUREMENT_NISCOPE_VAL_MID_REF_VOLTS\x10\xe9\x07\x12\x35\n0CLEARABLE_MEASUREMENT_NISCOPE_VAL_HIGH_REF_VOLTS\x10\xea\x07\x12=\n8CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN\x10\xd0\x0f\x12>\n9CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_STDEV\x10\xd1\x0f\x12?\n:CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEDIAN\x10\xd3\x0f\x12=\n8CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MODE\x10\xda\x0f\x12<\n7CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MAX\x10\xd5\x0f\x12<\n7CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MIN\x10\xd6\x0f\x12\x45\n@CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_PEAK_TO_PEAK\x10\xd2\x0f\x12H\nCCLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN_PLUS_STDEV\x10\xd7\x0f\x12J\nECLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN_PLUS_2_STDEV\x10\xd8\x0f\x12J\nECLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_MEAN_PLUS_3_STDEV\x10\xd9\x0f\x12=\n8CLEARABLE_MEASUREMENT_NISCOPE_VAL_VOLTAGE_HISTOGRAM_HITS\x10\xd4\x0f\x12\x41\n\n9CLEARABLE_MEASUREMENT_NISCOPE_VAL_TIME_HISTOGRAM_NEW_HITS\x10\xc3\x17*q\n\x06Option\x12\x32\n.OPTION_NISCOPE_VAL_SELF_CALIBRATE_ALL_CHANNELS\x10\x00\x12\x33\n/OPTION_NISCOPE_VAL_RESTORE_EXTERNAL_CALIBRATION\x10\x01*\x80\t\n\x11VideoSignalFormat\x12#\n\x1fVIDEO_SIGNAL_FORMAT_UNSPECIFIED\x10\x00\x12(\n$VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_NTSC\x10\x01\x12\'\n#VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_PAL\x10\x02\x12)\n%VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_SECAM\x10\x03\x12*\n%VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_M_PAL\x10\xe9\x07\x12G\nBVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480I_59_94_FIELDS_PER_SECOND\x10\xf2\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480I_60_FIELDS_PER_SECOND\x10\xf3\x07\x12G\nBVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480P_59_94_FRAMES_PER_SECOND\x10\xf7\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_480P_60_FRAMES_PER_SECOND\x10\xf8\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_576I_50_FIELDS_PER_SECOND\x10\xfc\x07\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_576P_50_FRAMES_PER_SECOND\x10\x81\x08\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_720P_50_FRAMES_PER_SECOND\x10\x87\x08\x12G\nBVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_720P_59_94_FRAMES_PER_SECOND\x10\x88\x08\x12\x44\n?VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_720P_60_FRAMES_PER_SECOND\x10\x89\x08\x12\x45\n@VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080I_50_FIELDS_PER_SECOND\x10\x90\x08\x12H\nCVIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080I_59_94_FIELDS_PER_SECOND\x10\x91\x08\x12\x45\n@VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080I_60_FIELDS_PER_SECOND\x10\x92\x08\x12\x45\n@VIDEO_SIGNAL_FORMAT_NISCOPE_VAL_VIDEO_1080P_24_FRAMES_PER_SECOND\x10\x95\x08*\xad\x35\n\x1bNiScopeInt32AttributeValues\x12\x1d\n\x19NISCOPE_INT32_UNSPECIFIED\x10\x00\x12-\n)NISCOPE_INT32_ACQUISITION_TYPE_VAL_NORMAL\x10\x00\x12/\n*NISCOPE_INT32_ACQUISITION_TYPE_VAL_FLEXRES\x10\xe9\x07\x12+\n&NISCOPE_INT32_ACQUISITION_TYPE_VAL_DDC\x10\xea\x07\x12\x30\n,NISCOPE_INT32_ADDRESS_TYPE_VAL_ADDR_PHYSICAL\x10\x00\x12/\n+NISCOPE_INT32_ADDRESS_TYPE_VAL_ADDR_VIRTUAL\x10\x01\x12/\n+NISCOPE_INT32_DATA_PROCESSING_MODE_VAL_REAL\x10\x00\x12\x32\n.NISCOPE_INT32_DATA_PROCESSING_MODE_VAL_COMPLEX\x10\x01\x12,\n(NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_NONE\x10\x00\x12\x30\n+NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_HANNING\x10\x99\x03\x12\x31\n,NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_FLAT_TOP\x10\x9a\x03\x12\x30\n+NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_HAMMING\x10\xa4\x03\x12\x31\n,NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_TRIANGLE\x10\xa7\x03\x12\x31\n,NISCOPE_INT32_FIR_FILTER_WINDOW_VAL_BLACKMAN\x10\xa8\x03\x12\x35\n0NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_READ_POINTER\x10\x84\x03\x12\x33\n.NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_PRETRIGGER\x10\xdd\x03\x12,\n\'NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_NOW\x10\xe1\x03\x12.\n)NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_START\x10\xe2\x03\x12\x30\n+NISCOPE_INT32_FETCH_RELATIVE_TO_VAL_TRIGGER\x10\xe3\x03\x12\x44\n@NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_48_TAP_STANDARD\x10\x00\x12\x43\n?NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_48_TAP_HANNING\x10\x01\x12\x43\n?NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_16_TAP_HANNING\x10\x02\x12\x42\n>NISCOPE_INT32_FLEX_FIR_ANTIALIAS_FILTER_TYPE_VAL_8_TAP_HANNING\x10\x03\x12:\n6NISCOPE_INT32_GLITCH_CONDITION_VAL_GLITCH_GREATER_THAN\x10\x02\x12\x37\n3NISCOPE_INT32_GLITCH_CONDITION_VAL_GLITCH_LESS_THAN\x10\x01\x12\x35\n1NISCOPE_INT32_GLITCH_POLARITY_VAL_GLITCH_POSITIVE\x10\x01\x12\x35\n1NISCOPE_INT32_GLITCH_POLARITY_VAL_GLITCH_NEGATIVE\x10\x02\x12\x33\n/NISCOPE_INT32_GLITCH_POLARITY_VAL_GLITCH_EITHER\x10\x03\x12\x33\n/NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_LOWPASS\x10\x00\x12\x34\n0NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_HIGHPASS\x10\x01\x12\x34\n0NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_BANDPASS\x10\x02\x12\x34\n0NISCOPE_INT32_MEAS_FILTER_TYPE_VAL_MEAS_BANDSTOP\x10\x03\x12:\n6NISCOPE_INT32_MEAS_PERCENTAGE_METHOD_VAL_MEAS_LOW_HIGH\x10\x00\x12\x39\n5NISCOPE_INT32_MEAS_PERCENTAGE_METHOD_VAL_MEAS_MIN_MAX\x10\x01\x12:\n6NISCOPE_INT32_MEAS_PERCENTAGE_METHOD_VAL_MEAS_BASE_TOP\x10\x02\x12\x37\n3NISCOPE_INT32_MEAS_REF_LEVEL_UNITS_VAL_MEAS_VOLTAGE\x10\x00\x12:\n6NISCOPE_INT32_MEAS_REF_LEVEL_UNITS_VAL_MEAS_PERCENTAGE\x10\x01\x12\x34\n0NISCOPE_INT32_NOTIFICATION_TYPE_VAL_NOTIFY_NEVER\x10\x00\x12\x33\n/NISCOPE_INT32_NOTIFICATION_TYPE_VAL_NOTIFY_DONE\x10\x01\x12\x44\n@NISCOPE_INT32_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_ERROR\x10\x00\x12\x46\nBNISCOPE_INT32_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_WARNING\x10\x01\x12G\nCNISCOPE_INT32_OVERFLOW_ERROR_REPORTING_VAL_ERROR_REPORTING_DISABLED\x10\x02\x12N\nJNISCOPE_INT32_P2_P_STREAM_RELATIVE_TO_VAL_STREAM_RELATIVE_TO_START_TRIGGER\x10\x00\x12R\nNNISCOPE_INT32_P2_P_STREAM_RELATIVE_TO_VAL_STREAM_RELATIVE_TO_REFERENCE_TRIGGER\x10\x01\x12M\nINISCOPE_INT32_P2_P_STREAM_RELATIVE_TO_VAL_STREAM_RELATIVE_TO_SYNC_TRIGGER\x10\x02\x12\x37\n3NISCOPE_INT32_RIS_METHOD_VAL_RIS_EXACT_NUM_AVERAGES\x10\x01\x12\x35\n1NISCOPE_INT32_RIS_METHOD_VAL_RIS_MIN_NUM_AVERAGES\x10\x02\x12/\n+NISCOPE_INT32_RIS_METHOD_VAL_RIS_INCOMPLETE\x10\x03\x12\x36\n2NISCOPE_INT32_RIS_METHOD_VAL_RIS_LIMITED_BIN_WIDTH\x10\x05\x12L\nHNISCOPE_INT32_REF_TRIGGER_DETECTOR_LOCATION_VAL_ANALOG_DETECTION_CIRCUIT\x10\x00\x12>\n:NISCOPE_INT32_REF_TRIGGER_DETECTOR_LOCATION_VAL_DDC_OUTPUT\x10\x01\x12\x31\n-NISCOPE_INT32_RUNT_POLARITY_VAL_RUNT_POSITIVE\x10\x01\x12\x31\n-NISCOPE_INT32_RUNT_POLARITY_VAL_RUNT_NEGATIVE\x10\x02\x12/\n+NISCOPE_INT32_RUNT_POLARITY_VAL_RUNT_EITHER\x10\x03\x12\x42\n>NISCOPE_INT32_RUNT_TIME_CONDITION_VAL_RUNT_TIME_CONDITION_NONE\x10\x00\x12\x44\n@NISCOPE_INT32_RUNT_TIME_CONDITION_VAL_RUNT_TIME_CONDITION_WITHIN\x10\x01\x12\x45\nANISCOPE_INT32_RUNT_TIME_CONDITION_VAL_RUNT_TIME_CONDITION_OUTSIDE\x10\x02\x12+\n\'NISCOPE_INT32_SAMPLE_MODE_VAL_REAL_TIME\x10\x00\x12\x31\n-NISCOPE_INT32_SAMPLE_MODE_VAL_EQUIVALENT_TIME\x10\x01\x12\x39\n5NISCOPE_INT32_TERMINAL_CONFIGURATION_VAL_SINGLE_ENDED\x10\x00\x12\x44\n@NISCOPE_INT32_TERMINAL_CONFIGURATION_VAL_UNBALANCED_DIFFERENTIAL\x10\x01\x12\x39\n5NISCOPE_INT32_TERMINAL_CONFIGURATION_VAL_DIFFERENTIAL\x10\x02\x12)\n%NISCOPE_INT32_TRIGGER_COUPLING_VAL_AC\x10\x00\x12)\n%NISCOPE_INT32_TRIGGER_COUPLING_VAL_DC\x10\x01\x12\x30\n,NISCOPE_INT32_TRIGGER_COUPLING_VAL_HF_REJECT\x10\x03\x12\x30\n,NISCOPE_INT32_TRIGGER_COUPLING_VAL_LF_REJECT\x10\x04\x12\x39\n4NISCOPE_INT32_TRIGGER_COUPLING_VAL_AC_PLUS_HF_REJECT\x10\xe9\x07\x12\x35\n1NISCOPE_INT32_TRIGGER_MODIFIER_VAL_NO_TRIGGER_MOD\x10\x01\x12+\n\'NISCOPE_INT32_TRIGGER_MODIFIER_VAL_AUTO\x10\x02\x12\x31\n-NISCOPE_INT32_TRIGGER_MODIFIER_VAL_AUTO_LEVEL\x10\x03\x12,\n(NISCOPE_INT32_TRIGGER_SLOPE_VAL_NEGATIVE\x10\x00\x12,\n(NISCOPE_INT32_TRIGGER_SLOPE_VAL_POSITIVE\x10\x01\x12\x30\n,NISCOPE_INT32_TRIGGER_SLOPE_VAL_SLOPE_EITHER\x10\x03\x12/\n+NISCOPE_INT32_TRIGGER_TYPE_VAL_EDGE_TRIGGER\x10\x01\x12\x36\n1NISCOPE_INT32_TRIGGER_TYPE_VAL_HYSTERESIS_TRIGGER\x10\xe9\x07\x12\x33\n.NISCOPE_INT32_TRIGGER_TYPE_VAL_DIGITAL_TRIGGER\x10\xea\x07\x12\x32\n-NISCOPE_INT32_TRIGGER_TYPE_VAL_WINDOW_TRIGGER\x10\xeb\x07\x12\x34\n/NISCOPE_INT32_TRIGGER_TYPE_VAL_SOFTWARE_TRIGGER\x10\xec\x07\x12-\n)NISCOPE_INT32_TRIGGER_TYPE_VAL_TV_TRIGGER\x10\x05\x12\x31\n-NISCOPE_INT32_TRIGGER_TYPE_VAL_GLITCH_TRIGGER\x10\x04\x12\x30\n,NISCOPE_INT32_TRIGGER_TYPE_VAL_WIDTH_TRIGGER\x10\x02\x12/\n+NISCOPE_INT32_TRIGGER_TYPE_VAL_RUNT_TRIGGER\x10\x03\x12\x34\n0NISCOPE_INT32_TRIGGER_TYPE_VAL_IMMEDIATE_TRIGGER\x10\x06\x12\x39\n5NISCOPE_INT32_TRIGGER_WINDOW_MODE_VAL_ENTERING_WINDOW\x10\x00\x12\x38\n4NISCOPE_INT32_TRIGGER_WINDOW_MODE_VAL_LEAVING_WINDOW\x10\x01\x12\x44\n@NISCOPE_INT32_TRIGGER_WINDOW_MODE_VAL_ENTERING_OR_LEAVING_WINDOW\x10\x02\x12*\n&NISCOPE_INT32_VERTICAL_COUPLING_VAL_AC\x10\x00\x12*\n&NISCOPE_INT32_VERTICAL_COUPLING_VAL_DC\x10\x01\x12+\n\'NISCOPE_INT32_VERTICAL_COUPLING_VAL_GND\x10\x02\x12\x30\n,NISCOPE_INT32_VIDEO_POLARITY_VAL_TV_POSITIVE\x10\x01\x12\x30\n,NISCOPE_INT32_VIDEO_POLARITY_VAL_TV_NEGATIVE\x10\x02\x12.\n*NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_NTSC\x10\x01\x12-\n)NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_PAL\x10\x02\x12/\n+NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_SECAM\x10\x03\x12\x30\n+NISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_M_PAL\x10\xe9\x07\x12M\nHNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480I_59_94_FIELDS_PER_SECOND\x10\xf2\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480I_60_FIELDS_PER_SECOND\x10\xf3\x07\x12M\nHNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480P_59_94_FRAMES_PER_SECOND\x10\xf7\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_480P_60_FRAMES_PER_SECOND\x10\xf8\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_576I_50_FIELDS_PER_SECOND\x10\xfc\x07\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_576P_50_FRAMES_PER_SECOND\x10\x81\x08\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_720P_50_FRAMES_PER_SECOND\x10\x87\x08\x12M\nHNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_720P_59_94_FRAMES_PER_SECOND\x10\x88\x08\x12J\nENISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_720P_60_FRAMES_PER_SECOND\x10\x89\x08\x12K\nFNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080I_50_FIELDS_PER_SECOND\x10\x90\x08\x12N\nINISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080I_59_94_FIELDS_PER_SECOND\x10\x91\x08\x12K\nFNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080I_60_FIELDS_PER_SECOND\x10\x92\x08\x12K\nFNISCOPE_INT32_VIDEO_SIGNAL_FORMAT_VAL_VIDEO_1080P_24_FRAMES_PER_SECOND\x10\x95\x08\x12\x39\n5NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_FIELD1\x10\x01\x12\x39\n5NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_FIELD2\x10\x02\x12<\n8NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_ANY_FIELD\x10\x03\x12;\n7NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_ANY_LINE\x10\x04\x12>\n:NISCOPE_INT32_VIDEO_TRIGGER_EVENT_VAL_TV_EVENT_LINE_NUMBER\x10\x05\x12\x32\n.NISCOPE_INT32_WIDTH_CONDITION_VAL_WIDTH_WITHIN\x10\x01\x12\x33\n/NISCOPE_INT32_WIDTH_CONDITION_VAL_WIDTH_OUTSIDE\x10\x02\x12\x33\n/NISCOPE_INT32_WIDTH_POLARITY_VAL_WIDTH_POSITIVE\x10\x01\x12\x33\n/NISCOPE_INT32_WIDTH_POLARITY_VAL_WIDTH_NEGATIVE\x10\x02\x12\x31\n-NISCOPE_INT32_WIDTH_POLARITY_VAL_WIDTH_EITHER\x10\x03\x1a\x02\x10\x01*\xc9\x01\n\x1cNiScopeReal64AttributeValues\x12\x1e\n\x1aNISCOPE_REAL64_UNSPECIFIED\x10\x00\x12\x41\n=NISCOPE_REAL64_CABLE_SENSE_MODE_VAL_CABLE_SENSE_MODE_DISABLED\x10\x00\x12\x42\n>NISCOPE_REAL64_CABLE_SENSE_MODE_VAL_CABLE_SENSE_MODE_ON_DEMAND\x10\x01\x1a\x02\x10\x01*\xe3\x04\n\"NiScopeReal64AttributeValuesMapped\x12%\n!NISCOPE_REAL64_MAPPED_UNSPECIFIED\x10\x00\x12.\n*NISCOPE_REAL64_INPUT_IMPEDANCE_VAL_50_OHMS\x10\x01\x12.\n*NISCOPE_REAL64_INPUT_IMPEDANCE_VAL_75_OHMS\x10\x02\x12\x30\n,NISCOPE_REAL64_INPUT_IMPEDANCE_VAL_1_MEG_OHM\x10\x03\x12\x43\n?NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_BANDWIDTH_DEVICE_DEFAULT\x10\x04\x12\x39\n5NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_BANDWIDTH_FULL\x10\x05\x12:\n6NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_20MHZ_BANDWIDTH\x10\x06\x12;\n7NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_100MHZ_BANDWIDTH\x10\x07\x12\x44\n@NISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_20MHZ_MAX_INPUT_FREQUENCY\x10\x08\x12\x45\nANISCOPE_REAL64_MAX_INPUT_FREQUENCY_VAL_100MHZ_MAX_INPUT_FREQUENCY\x10\t*\x9e\x11\n\"NiScopeStringAttributeValuesMapped\x12%\n!NISCOPE_STRING_MAPPED_UNSPECIFIED\x10\x00\x12\x33\n/NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_CLK_IN\x10\x01\x12\x36\n2NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_NO_SOURCE\x10\x02\x12\x35\n1NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_PXI_STAR\x10\x03\x12\x39\n5NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_PXIE_DSTAR_A\x10\x04\x12\x39\n5NISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_AUX_0_CLK_IN\x10\x05\x12J\nFNISCOPE_STRING_SAMP_CLK_TIMEPACE_SRC_VAL_ONBOARD_CONFIGURABLE_RATE_CLK\x10\x06\x12/\n+NISCOPE_STRING_TRIGGER_SOURCE_VAL_IMMEDIATE\x10\x07\x12.\n*NISCOPE_STRING_TRIGGER_SOURCE_VAL_EXTERNAL\x10\x08\x12\x32\n.NISCOPE_STRING_TRIGGER_SOURCE_VAL_SW_TRIG_FUNC\x10\t\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL0\x10\n\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL1\x10\x0b\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL2\x10\x0c\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL3\x10\r\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL4\x10\x0e\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL5\x10\x0f\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL6\x10\x10\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_TTL7\x10\x11\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_ECL0\x10\x12\x12*\n&NISCOPE_STRING_TRIGGER_SOURCE_VAL_ECL1\x10\x13\x12.\n*NISCOPE_STRING_TRIGGER_SOURCE_VAL_PXI_STAR\x10\x14\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_0\x10\x15\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_1\x10\x16\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_2\x10\x17\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_3\x10\x18\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_4\x10\x19\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_5\x10\x1a\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_6\x10\x1b\x12,\n(NISCOPE_STRING_TRIGGER_SOURCE_VAL_RTSI_7\x10\x1c\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_0\x10\x1d\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_1\x10\x1e\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_2\x10\x1f\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_3\x10 \x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_4\x10!\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_5\x10\"\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_6\x10#\x12+\n\'NISCOPE_STRING_TRIGGER_SOURCE_VAL_PFI_7\x10$\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_0\x10%\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_1\x10&\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_3\x10\'\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_4\x10(\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_5\x10)\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_6\x10*\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_7\x10+\x12\x31\n-NISCOPE_STRING_TRIGGER_SOURCE_VAL_AUX_0_PFI_2\x10,2\xe0K\n\x07NiScope\x12=\n\x04Init\x12\x19.niscope_grpc.InitRequest\x1a\x1a.niscope_grpc.InitResponse\x12^\n\x0fInitWithOptions\x12$.niscope_grpc.InitWithOptionsRequest\x1a%.niscope_grpc.InitWithOptionsResponse\x12@\n\x05\x43lose\x12\x1a.niscope_grpc.CloseRequest\x1a\x1b.niscope_grpc.CloseResponse\x12L\n\tAutoSetup\x12\x1e.niscope_grpc.AutoSetupRequest\x1a\x1f.niscope_grpc.AutoSetupResponse\x12\x64\n\x11\x43onfigureVertical\x12&.niscope_grpc.ConfigureVerticalRequest\x1a\'.niscope_grpc.ConfigureVerticalResponse\x12\x85\x01\n\x1c\x43onfigureChanCharacteristics\x12\x31.niscope_grpc.ConfigureChanCharacteristicsRequest\x1a\x32.niscope_grpc.ConfigureChanCharacteristicsResponse\x12|\n\x19\x43onfigureHorizontalTiming\x12..niscope_grpc.ConfigureHorizontalTimingRequest\x1a/.niscope_grpc.ConfigureHorizontalTimingResponse\x12[\n\x0e\x43onfigureClock\x12#.niscope_grpc.ConfigureClockRequest\x1a$.niscope_grpc.ConfigureClockResponse\x12U\n\x0c\x45xportSignal\x12!.niscope_grpc.ExportSignalRequest\x1a\".niscope_grpc.ExportSignalResponse\x12\x8b\x01\n\x1e\x41\x64justSampleClockRelativeDelay\x12\x33.niscope_grpc.AdjustSampleClockRelativeDelayRequest\x1a\x34.niscope_grpc.AdjustSampleClockRelativeDelayResponse\x12m\n\x14\x43onfigureTriggerEdge\x12).niscope_grpc.ConfigureTriggerEdgeRequest\x1a*.niscope_grpc.ConfigureTriggerEdgeResponse\x12s\n\x16\x43onfigureTriggerGlitch\x12+.niscope_grpc.ConfigureTriggerGlitchRequest\x1a,.niscope_grpc.ConfigureTriggerGlitchResponse\x12\x7f\n\x1a\x43onfigureTriggerHysteresis\x12/.niscope_grpc.ConfigureTriggerHysteresisRequest\x1a\x30.niscope_grpc.ConfigureTriggerHysteresisResponse\x12s\n\x16\x43onfigureTriggerWindow\x12+.niscope_grpc.ConfigureTriggerWindowRequest\x1a,.niscope_grpc.ConfigureTriggerWindowResponse\x12y\n\x18\x43onfigureTriggerSoftware\x12-.niscope_grpc.ConfigureTriggerSoftwareRequest\x1a..niscope_grpc.ConfigureTriggerSoftwareResponse\x12v\n\x17SendSoftwareTriggerEdge\x12,.niscope_grpc.SendSoftwareTriggerEdgeRequest\x1a-.niscope_grpc.SendSoftwareTriggerEdgeResponse\x12|\n\x19\x43onfigureTriggerImmediate\x12..niscope_grpc.ConfigureTriggerImmediateRequest\x1a/.niscope_grpc.ConfigureTriggerImmediateResponse\x12m\n\x14\x43onfigureTriggerRunt\x12).niscope_grpc.ConfigureTriggerRuntRequest\x1a*.niscope_grpc.ConfigureTriggerRuntResponse\x12v\n\x17\x43onfigureTriggerDigital\x12,.niscope_grpc.ConfigureTriggerDigitalRequest\x1a-.niscope_grpc.ConfigureTriggerDigitalResponse\x12p\n\x15\x43onfigureTriggerVideo\x12*.niscope_grpc.ConfigureTriggerVideoRequest\x1a+.niscope_grpc.ConfigureTriggerVideoResponse\x12p\n\x15\x43onfigureTriggerWidth\x12*.niscope_grpc.ConfigureTriggerWidthRequest\x1a+.niscope_grpc.ConfigureTriggerWidthResponse\x12\xa6\x01\n\'ConfigureEqualizationFilterCoefficients\x12<.niscope_grpc.ConfigureEqualizationFilterCoefficientsRequest\x1a=.niscope_grpc.ConfigureEqualizationFilterCoefficientsResponse\x12\x94\x01\n!GetEqualizationFilterCoefficients\x12\x36.niscope_grpc.GetEqualizationFilterCoefficientsRequest\x1a\x37.niscope_grpc.GetEqualizationFilterCoefficientsResponse\x12m\n\x14GetFrequencyResponse\x12).niscope_grpc.GetFrequencyResponseRequest\x1a*.niscope_grpc.GetFrequencyResponseResponse\x12m\n\x14\x43onfigureAcquisition\x12).niscope_grpc.ConfigureAcquisitionRequest\x1a*.niscope_grpc.ConfigureAcquisitionResponse\x12j\n\x13InitiateAcquisition\x12(.niscope_grpc.InitiateAcquisitionRequest\x1a).niscope_grpc.InitiateAcquisitionResponse\x12@\n\x05\x41\x62ort\x12\x1a.niscope_grpc.AbortRequest\x1a\x1b.niscope_grpc.AbortResponse\x12\x43\n\x06\x43ommit\x12\x1b.niscope_grpc.CommitRequest\x1a\x1c.niscope_grpc.CommitResponse\x12=\n\x04Read\x12\x19.niscope_grpc.ReadRequest\x1a\x1a.niscope_grpc.ReadResponse\x12@\n\x05\x46\x65tch\x12\x1a.niscope_grpc.FetchRequest\x1a\x1b.niscope_grpc.FetchResponse\x12U\n\x0c\x46\x65tchBinary8\x12!.niscope_grpc.FetchBinary8Request\x1a\".niscope_grpc.FetchBinary8Response\x12X\n\rFetchBinary16\x12\".niscope_grpc.FetchBinary16Request\x1a#.niscope_grpc.FetchBinary16Response\x12X\n\rFetchBinary32\x12\".niscope_grpc.FetchBinary32Request\x1a#.niscope_grpc.FetchBinary32Response\x12U\n\x0c\x46\x65tchComplex\x12!.niscope_grpc.FetchComplexRequest\x1a\".niscope_grpc.FetchComplexResponse\x12m\n\x14\x46\x65tchComplexBinary16\x12).niscope_grpc.FetchComplexBinary16Request\x1a*.niscope_grpc.FetchComplexBinary16Response\x12\x64\n\x11\x41\x63quisitionStatus\x12&.niscope_grpc.AcquisitionStatusRequest\x1a\'.niscope_grpc.AcquisitionStatusResponse\x12X\n\rActualNumWfms\x12\".niscope_grpc.ActualNumWfmsRequest\x1a#.niscope_grpc.ActualNumWfmsResponse\x12\x64\n\x11\x41\x63tualMeasWfmSize\x12&.niscope_grpc.ActualMeasWfmSizeRequest\x1a\'.niscope_grpc.ActualMeasWfmSizeResponse\x12g\n\x12\x41\x63tualRecordLength\x12\'.niscope_grpc.ActualRecordLengthRequest\x1a(.niscope_grpc.ActualRecordLengthResponse\x12O\n\nSampleRate\x12\x1f.niscope_grpc.SampleRateRequest\x1a .niscope_grpc.SampleRateResponse\x12O\n\nSampleMode\x12\x1f.niscope_grpc.SampleModeRequest\x1a .niscope_grpc.SampleModeResponse\x12p\n\x15\x41\x64\x64WaveformProcessing\x12*.niscope_grpc.AddWaveformProcessingRequest\x1a+.niscope_grpc.AddWaveformProcessingResponse\x12v\n\x17\x43learWaveformProcessing\x12,.niscope_grpc.ClearWaveformProcessingRequest\x1a-.niscope_grpc.ClearWaveformProcessingResponse\x12\x88\x01\n\x1d\x43learWaveformMeasurementStats\x12\x32.niscope_grpc.ClearWaveformMeasurementStatsRequest\x1a\x33.niscope_grpc.ClearWaveformMeasurementStatsResponse\x12^\n\x0fReadMeasurement\x12$.niscope_grpc.ReadMeasurementRequest\x1a%.niscope_grpc.ReadMeasurementResponse\x12\x61\n\x10\x46\x65tchMeasurement\x12%.niscope_grpc.FetchMeasurementRequest\x1a&.niscope_grpc.FetchMeasurementResponse\x12p\n\x15\x46\x65tchMeasurementStats\x12*.niscope_grpc.FetchMeasurementStatsRequest\x1a+.niscope_grpc.FetchMeasurementStatsResponse\x12p\n\x15\x46\x65tchArrayMeasurement\x12*.niscope_grpc.FetchArrayMeasurementRequest\x1a+.niscope_grpc.FetchArrayMeasurementResponse\x12@\n\x05Reset\x12\x1a.niscope_grpc.ResetRequest\x1a\x1b.niscope_grpc.ResetResponse\x12I\n\x08SelfTest\x12\x1d.niscope_grpc.SelfTestRequest\x1a\x1e.niscope_grpc.SelfTestResponse\x12\x46\n\x07\x44isable\x12\x1c.niscope_grpc.DisableRequest\x1a\x1d.niscope_grpc.DisableResponse\x12R\n\x0bResetDevice\x12 .niscope_grpc.ResetDeviceRequest\x1a!.niscope_grpc.ResetDeviceResponse\x12\x61\n\x10\x43\x61lSelfCalibrate\x12%.niscope_grpc.CalSelfCalibrateRequest\x1a&.niscope_grpc.CalSelfCalibrateResponse\x12X\n\rRevisionQuery\x12\".niscope_grpc.RevisionQueryRequest\x1a#.niscope_grpc.RevisionQueryResponse\x12\x85\x01\n\x1cProbeCompensationSignalStart\x12\x31.niscope_grpc.ProbeCompensationSignalStartRequest\x1a\x32.niscope_grpc.ProbeCompensationSignalStartResponse\x12\x82\x01\n\x1bProbeCompensationSignalStop\x12\x30.niscope_grpc.ProbeCompensationSignalStopRequest\x1a\x31.niscope_grpc.ProbeCompensationSignalStopResponse\x12p\n\x15\x43\x61\x62leSenseSignalStart\x12*.niscope_grpc.CableSenseSignalStartRequest\x1a+.niscope_grpc.CableSenseSignalStartResponse\x12m\n\x14\x43\x61\x62leSenseSignalStop\x12).niscope_grpc.CableSenseSignalStopRequest\x1a*.niscope_grpc.CableSenseSignalStopResponse\x12[\n\x0eGetChannelName\x12#.niscope_grpc.GetChannelNameRequest\x1a$.niscope_grpc.GetChannelNameResponse\x12y\n\x18GetChannelNameFromString\x12-.niscope_grpc.GetChannelNameFromStringRequest\x1a..niscope_grpc.GetChannelNameFromStringResponse\x12U\n\x0c\x45rrorHandler\x12!.niscope_grpc.ErrorHandlerRequest\x1a\".niscope_grpc.ErrorHandlerResponse\x12I\n\x08GetError\x12\x1d.niscope_grpc.GetErrorRequest\x1a\x1e.niscope_grpc.GetErrorResponse\x12^\n\x0fGetErrorMessage\x12$.niscope_grpc.GetErrorMessageRequest\x1a%.niscope_grpc.GetErrorMessageResponse\x12j\n\x13GetAttributeViInt32\x12(.niscope_grpc.GetAttributeViInt32Request\x1a).niscope_grpc.GetAttributeViInt32Response\x12j\n\x13SetAttributeViInt32\x12(.niscope_grpc.SetAttributeViInt32Request\x1a).niscope_grpc.SetAttributeViInt32Response\x12p\n\x15\x43heckAttributeViInt32\x12*.niscope_grpc.CheckAttributeViInt32Request\x1a+.niscope_grpc.CheckAttributeViInt32Response\x12j\n\x13GetAttributeViInt64\x12(.niscope_grpc.GetAttributeViInt64Request\x1a).niscope_grpc.GetAttributeViInt64Response\x12j\n\x13SetAttributeViInt64\x12(.niscope_grpc.SetAttributeViInt64Request\x1a).niscope_grpc.SetAttributeViInt64Response\x12p\n\x15\x43heckAttributeViInt64\x12*.niscope_grpc.CheckAttributeViInt64Request\x1a+.niscope_grpc.CheckAttributeViInt64Response\x12m\n\x14GetAttributeViReal64\x12).niscope_grpc.GetAttributeViReal64Request\x1a*.niscope_grpc.GetAttributeViReal64Response\x12m\n\x14SetAttributeViReal64\x12).niscope_grpc.SetAttributeViReal64Request\x1a*.niscope_grpc.SetAttributeViReal64Response\x12s\n\x16\x43heckAttributeViReal64\x12+.niscope_grpc.CheckAttributeViReal64Request\x1a,.niscope_grpc.CheckAttributeViReal64Response\x12m\n\x14GetAttributeViString\x12).niscope_grpc.GetAttributeViStringRequest\x1a*.niscope_grpc.GetAttributeViStringResponse\x12m\n\x14SetAttributeViString\x12).niscope_grpc.SetAttributeViStringRequest\x1a*.niscope_grpc.SetAttributeViStringResponse\x12s\n\x16\x43heckAttributeViString\x12+.niscope_grpc.CheckAttributeViStringRequest\x1a,.niscope_grpc.CheckAttributeViStringResponse\x12p\n\x15GetAttributeViSession\x12*.niscope_grpc.GetAttributeViSessionRequest\x1a+.niscope_grpc.GetAttributeViSessionResponse\x12p\n\x15SetAttributeViSession\x12*.niscope_grpc.SetAttributeViSessionRequest\x1a+.niscope_grpc.SetAttributeViSessionResponse\x12v\n\x17\x43heckAttributeViSession\x12,.niscope_grpc.CheckAttributeViSessionRequest\x1a-.niscope_grpc.CheckAttributeViSessionResponse\x12p\n\x15GetAttributeViBoolean\x12*.niscope_grpc.GetAttributeViBooleanRequest\x1a+.niscope_grpc.GetAttributeViBooleanResponse\x12p\n\x15SetAttributeViBoolean\x12*.niscope_grpc.SetAttributeViBooleanRequest\x1a+.niscope_grpc.SetAttributeViBooleanResponse\x12v\n\x17\x43heckAttributeViBoolean\x12,.niscope_grpc.CheckAttributeViBooleanRequest\x1a-.niscope_grpc.CheckAttributeViBooleanResponse\x12\x97\x01\n\"ImportAttributeConfigurationBuffer\x12\x37.niscope_grpc.ImportAttributeConfigurationBufferRequest\x1a\x38.niscope_grpc.ImportAttributeConfigurationBufferResponse\x12\x97\x01\n\"ExportAttributeConfigurationBuffer\x12\x37.niscope_grpc.ExportAttributeConfigurationBufferRequest\x1a\x38.niscope_grpc.ExportAttributeConfigurationBufferResponse\x12\x91\x01\n ImportAttributeConfigurationFile\x12\x35.niscope_grpc.ImportAttributeConfigurationFileRequest\x1a\x36.niscope_grpc.ImportAttributeConfigurationFileResponse\x12\x91\x01\n ExportAttributeConfigurationFile\x12\x35.niscope_grpc.ExportAttributeConfigurationFileRequest\x1a\x36.niscope_grpc.ExportAttributeConfigurationFileResponse\x12s\n\x16GetScalingCoefficients\x12+.niscope_grpc.GetScalingCoefficientsRequest\x1a,.niscope_grpc.GetScalingCoefficientsResponse\x12\x85\x01\n\x1cGetNormalizationCoefficients\x12\x31.niscope_grpc.GetNormalizationCoefficientsRequest\x1a\x32.niscope_grpc.GetNormalizationCoefficientsResponse\x12v\n\x17GetStreamEndpointHandle\x12,.niscope_grpc.GetStreamEndpointHandleRequest\x1a-.niscope_grpc.GetStreamEndpointHandleResponse\x12U\n\x0c\x43\x61lFetchDate\x12!.niscope_grpc.CalFetchDateRequest\x1a\".niscope_grpc.CalFetchDateResponse\x12j\n\x13\x43\x61lFetchTemperature\x12(.niscope_grpc.CalFetchTemperatureRequest\x1a).niscope_grpc.CalFetchTemperatureResponseB?\n\x11\x63om.ni.grpc.scopeB\x07NiScopeP\x01\xaa\x02\x1eNationalInstruments.Grpc.Scopeb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'niscope_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.ni.grpc.scopeB\007NiScopeP\001\252\002\036NationalInstruments.Grpc.Scope' + _NISCOPEINT32ATTRIBUTEVALUES._options = None + _NISCOPEINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _NISCOPEREAL64ATTRIBUTEVALUES._options = None + _NISCOPEREAL64ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NISCOPEATTRIBUTE']._serialized_start=21063 + _globals['_NISCOPEATTRIBUTE']._serialized_end=31527 + _globals['_WHICHTRIGGER']._serialized_start=31530 + _globals['_WHICHTRIGGER']._serialized_end=31774 + _globals['_VERTICALCOUPLING']._serialized_start=31777 + _globals['_VERTICALCOUPLING']._serialized_end=31910 + _globals['_TRIGGERCOUPLING']._serialized_start=31913 + _globals['_TRIGGERCOUPLING']._serialized_end=32145 + _globals['_TRIGGERSLOPE']._serialized_start=32148 + _globals['_TRIGGERSLOPE']._serialized_end=32286 + _globals['_VIDEOPOLARITY']._serialized_start=32289 + _globals['_VIDEOPOLARITY']._serialized_end=32424 + _globals['_VIDEOTRIGGEREVENT']._serialized_start=32427 + _globals['_VIDEOTRIGGEREVENT']._serialized_end=32758 + _globals['_GLITCHCONDITION']._serialized_start=32761 + _globals['_GLITCHCONDITION']._serialized_end=32917 + _globals['_GLITCHPOLARITY']._serialized_start=32920 + _globals['_GLITCHPOLARITY']._serialized_end=33114 + _globals['_WIDTHCONDITION']._serialized_start=33117 + _globals['_WIDTHCONDITION']._serialized_end=33259 + _globals['_WIDTHPOLARITY']._serialized_start=33262 + _globals['_WIDTHPOLARITY']._serialized_end=33448 + _globals['_RUNTPOLARITY']._serialized_start=33451 + _globals['_RUNTPOLARITY']._serialized_end=33629 + _globals['_CLOCKINGTERMINALVALUES']._serialized_start=33632 + _globals['_CLOCKINGTERMINALVALUES']._serialized_end=34550 + _globals['_EXPORTABLESIGNALS']._serialized_start=34553 + _globals['_EXPORTABLESIGNALS']._serialized_end=35187 + _globals['_TRIGGERWINDOWMODE']._serialized_start=35190 + _globals['_TRIGGERWINDOWMODE']._serialized_end=35378 + _globals['_ACQUISITIONSTATUS']._serialized_start=35381 + _globals['_ACQUISITIONSTATUS']._serialized_end=35565 + _globals['_SCALARMEASUREMENT']._serialized_start=35568 + _globals['_SCALARMEASUREMENT']._serialized_end=37567 + _globals['_ARRAYMEASUREMENT']._serialized_start=37570 + _globals['_ARRAYMEASUREMENT']._serialized_end=39062 + _globals['_CALIBRATIONTYPES']._serialized_start=39065 + _globals['_CALIBRATIONTYPES']._serialized_end=39226 + _globals['_CLEARABLEMEASUREMENT']._serialized_start=39229 + _globals['_CLEARABLEMEASUREMENT']._serialized_end=43120 + _globals['_OPTION']._serialized_start=43122 + _globals['_OPTION']._serialized_end=43235 + _globals['_VIDEOSIGNALFORMAT']._serialized_start=43238 + _globals['_VIDEOSIGNALFORMAT']._serialized_end=44390 + _globals['_NISCOPEINT32ATTRIBUTEVALUES']._serialized_start=44393 + _globals['_NISCOPEINT32ATTRIBUTEVALUES']._serialized_end=51222 + _globals['_NISCOPEREAL64ATTRIBUTEVALUES']._serialized_start=51225 + _globals['_NISCOPEREAL64ATTRIBUTEVALUES']._serialized_end=51426 + _globals['_NISCOPEREAL64ATTRIBUTEVALUESMAPPED']._serialized_start=51429 + _globals['_NISCOPEREAL64ATTRIBUTEVALUESMAPPED']._serialized_end=52040 + _globals['_NISCOPESTRINGATTRIBUTEVALUESMAPPED']._serialized_start=52043 + _globals['_NISCOPESTRINGATTRIBUTEVALUESMAPPED']._serialized_end=54249 + _globals['_WAVEFORMINFO']._serialized_start=63 + _globals['_WAVEFORMINFO']._serialized_end=246 + _globals['_COEFFICIENTINFO']._serialized_start=248 + _globals['_COEFFICIENTINFO']._serialized_end=333 + _globals['_INITREQUEST']._serialized_start=336 + _globals['_INITREQUEST']._serialized_end=513 + _globals['_INITRESPONSE']._serialized_start=515 + _globals['_INITRESPONSE']._serialized_end=641 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=644 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=855 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=858 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=995 + _globals['_CLOSEREQUEST']._serialized_start=997 + _globals['_CLOSEREQUEST']._serialized_end=1047 + _globals['_CLOSERESPONSE']._serialized_start=1049 + _globals['_CLOSERESPONSE']._serialized_end=1080 + _globals['_AUTOSETUPREQUEST']._serialized_start=1082 + _globals['_AUTOSETUPREQUEST']._serialized_end=1136 + _globals['_AUTOSETUPRESPONSE']._serialized_start=1138 + _globals['_AUTOSETUPRESPONSE']._serialized_end=1173 + _globals['_CONFIGUREVERTICALREQUEST']._serialized_start=1176 + _globals['_CONFIGUREVERTICALREQUEST']._serialized_end=1428 + _globals['_CONFIGUREVERTICALRESPONSE']._serialized_start=1430 + _globals['_CONFIGUREVERTICALRESPONSE']._serialized_end=1473 + _globals['_CONFIGURECHANCHARACTERISTICSREQUEST']._serialized_start=1476 + _globals['_CONFIGURECHANCHARACTERISTICSREQUEST']._serialized_end=1625 + _globals['_CONFIGURECHANCHARACTERISTICSRESPONSE']._serialized_start=1627 + _globals['_CONFIGURECHANCHARACTERISTICSRESPONSE']._serialized_end=1681 + _globals['_CONFIGUREHORIZONTALTIMINGREQUEST']._serialized_start=1684 + _globals['_CONFIGUREHORIZONTALTIMINGREQUEST']._serialized_end=1869 + _globals['_CONFIGUREHORIZONTALTIMINGRESPONSE']._serialized_start=1871 + _globals['_CONFIGUREHORIZONTALTIMINGRESPONSE']._serialized_end=1922 + _globals['_CONFIGURECLOCKREQUEST']._serialized_start=1925 + _globals['_CONFIGURECLOCKREQUEST']._serialized_end=2434 + _globals['_CONFIGURECLOCKRESPONSE']._serialized_start=2436 + _globals['_CONFIGURECLOCKRESPONSE']._serialized_end=2476 + _globals['_EXPORTSIGNALREQUEST']._serialized_start=2479 + _globals['_EXPORTSIGNALREQUEST']._serialized_end=2778 + _globals['_EXPORTSIGNALRESPONSE']._serialized_start=2780 + _globals['_EXPORTSIGNALRESPONSE']._serialized_end=2818 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_start=2820 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYREQUEST']._serialized_end=2910 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_start=2912 + _globals['_ADJUSTSAMPLECLOCKRELATIVEDELAYRESPONSE']._serialized_end=2968 + _globals['_CONFIGURETRIGGEREDGEREQUEST']._serialized_start=2971 + _globals['_CONFIGURETRIGGEREDGEREQUEST']._serialized_end=3303 + _globals['_CONFIGURETRIGGEREDGERESPONSE']._serialized_start=3305 + _globals['_CONFIGURETRIGGEREDGERESPONSE']._serialized_end=3351 + _globals['_CONFIGURETRIGGERGLITCHREQUEST']._serialized_start=3354 + _globals['_CONFIGURETRIGGERGLITCHREQUEST']._serialized_end=3830 + _globals['_CONFIGURETRIGGERGLITCHRESPONSE']._serialized_start=3832 + _globals['_CONFIGURETRIGGERGLITCHRESPONSE']._serialized_end=3880 + _globals['_CONFIGURETRIGGERHYSTERESISREQUEST']._serialized_start=3883 + _globals['_CONFIGURETRIGGERHYSTERESISREQUEST']._serialized_end=4241 + _globals['_CONFIGURETRIGGERHYSTERESISRESPONSE']._serialized_start=4243 + _globals['_CONFIGURETRIGGERHYSTERESISRESPONSE']._serialized_end=4295 + _globals['_CONFIGURETRIGGERWINDOWREQUEST']._serialized_start=4298 + _globals['_CONFIGURETRIGGERWINDOWREQUEST']._serialized_end=4679 + _globals['_CONFIGURETRIGGERWINDOWRESPONSE']._serialized_start=4681 + _globals['_CONFIGURETRIGGERWINDOWRESPONSE']._serialized_end=4729 + _globals['_CONFIGURETRIGGERSOFTWAREREQUEST']._serialized_start=4731 + _globals['_CONFIGURETRIGGERSOFTWAREREQUEST']._serialized_end=4832 + _globals['_CONFIGURETRIGGERSOFTWARERESPONSE']._serialized_start=4834 + _globals['_CONFIGURETRIGGERSOFTWARERESPONSE']._serialized_end=4884 + _globals['_SENDSOFTWARETRIGGEREDGEREQUEST']._serialized_start=4887 + _globals['_SENDSOFTWARETRIGGEREDGEREQUEST']._serialized_end=5059 + _globals['_SENDSOFTWARETRIGGEREDGERESPONSE']._serialized_start=5061 + _globals['_SENDSOFTWARETRIGGEREDGERESPONSE']._serialized_end=5110 + _globals['_CONFIGURETRIGGERIMMEDIATEREQUEST']._serialized_start=5112 + _globals['_CONFIGURETRIGGERIMMEDIATEREQUEST']._serialized_end=5182 + _globals['_CONFIGURETRIGGERIMMEDIATERESPONSE']._serialized_start=5184 + _globals['_CONFIGURETRIGGERIMMEDIATERESPONSE']._serialized_end=5235 + _globals['_CONFIGURETRIGGERRUNTREQUEST']._serialized_start=5238 + _globals['_CONFIGURETRIGGERRUNTREQUEST']._serialized_end=5611 + _globals['_CONFIGURETRIGGERRUNTRESPONSE']._serialized_start=5613 + _globals['_CONFIGURETRIGGERRUNTRESPONSE']._serialized_end=5659 + _globals['_CONFIGURETRIGGERDIGITALREQUEST']._serialized_start=5662 + _globals['_CONFIGURETRIGGERDIGITALREQUEST']._serialized_end=5866 + _globals['_CONFIGURETRIGGERDIGITALRESPONSE']._serialized_start=5868 + _globals['_CONFIGURETRIGGERDIGITALRESPONSE']._serialized_end=5917 + _globals['_CONFIGURETRIGGERVIDEOREQUEST']._serialized_start=5920 + _globals['_CONFIGURETRIGGERVIDEOREQUEST']._serialized_end=6490 + _globals['_CONFIGURETRIGGERVIDEORESPONSE']._serialized_start=6492 + _globals['_CONFIGURETRIGGERVIDEORESPONSE']._serialized_end=6539 + _globals['_CONFIGURETRIGGERWIDTHREQUEST']._serialized_start=6542 + _globals['_CONFIGURETRIGGERWIDTHREQUEST']._serialized_end=7026 + _globals['_CONFIGURETRIGGERWIDTHRESPONSE']._serialized_start=7028 + _globals['_CONFIGURETRIGGERWIDTHRESPONSE']._serialized_end=7075 + _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_start=7078 + _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_end=7206 + _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_start=7208 + _globals['_CONFIGUREEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_end=7273 + _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_start=7275 + _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSREQUEST']._serialized_end=7402 + _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_start=7404 + _globals['_GETEQUALIZATIONFILTERCOEFFICIENTSRESPONSE']._serialized_end=7485 + _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_start=7487 + _globals['_GETFREQUENCYRESPONSEREQUEST']._serialized_end=7590 + _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_start=7593 + _globals['_GETFREQUENCYRESPONSERESPONSE']._serialized_end=7727 + _globals['_CONFIGUREACQUISITIONREQUEST']._serialized_start=7729 + _globals['_CONFIGUREACQUISITIONREQUEST']._serialized_end=7820 + _globals['_CONFIGUREACQUISITIONRESPONSE']._serialized_start=7822 + _globals['_CONFIGUREACQUISITIONRESPONSE']._serialized_end=7868 + _globals['_INITIATEACQUISITIONREQUEST']._serialized_start=7870 + _globals['_INITIATEACQUISITIONREQUEST']._serialized_end=7934 + _globals['_INITIATEACQUISITIONRESPONSE']._serialized_start=7936 + _globals['_INITIATEACQUISITIONRESPONSE']._serialized_end=7981 + _globals['_ABORTREQUEST']._serialized_start=7983 + _globals['_ABORTREQUEST']._serialized_end=8033 + _globals['_ABORTRESPONSE']._serialized_start=8035 + _globals['_ABORTRESPONSE']._serialized_end=8066 + _globals['_COMMITREQUEST']._serialized_start=8068 + _globals['_COMMITREQUEST']._serialized_end=8119 + _globals['_COMMITRESPONSE']._serialized_start=8121 + _globals['_COMMITRESPONSE']._serialized_end=8153 + _globals['_READREQUEST']._serialized_start=8155 + _globals['_READREQUEST']._serialized_end=8264 + _globals['_READRESPONSE']._serialized_start=8266 + _globals['_READRESPONSE']._serialized_end=8360 + _globals['_FETCHREQUEST']._serialized_start=8362 + _globals['_FETCHREQUEST']._serialized_end=8472 + _globals['_FETCHRESPONSE']._serialized_start=8474 + _globals['_FETCHRESPONSE']._serialized_end=8569 + _globals['_FETCHBINARY8REQUEST']._serialized_start=8571 + _globals['_FETCHBINARY8REQUEST']._serialized_end=8688 + _globals['_FETCHBINARY8RESPONSE']._serialized_start=8690 + _globals['_FETCHBINARY8RESPONSE']._serialized_end=8792 + _globals['_FETCHBINARY16REQUEST']._serialized_start=8794 + _globals['_FETCHBINARY16REQUEST']._serialized_end=8912 + _globals['_FETCHBINARY16RESPONSE']._serialized_start=8914 + _globals['_FETCHBINARY16RESPONSE']._serialized_end=9017 + _globals['_FETCHBINARY32REQUEST']._serialized_start=9019 + _globals['_FETCHBINARY32REQUEST']._serialized_end=9137 + _globals['_FETCHBINARY32RESPONSE']._serialized_start=9139 + _globals['_FETCHBINARY32RESPONSE']._serialized_end=9242 + _globals['_FETCHCOMPLEXREQUEST']._serialized_start=9244 + _globals['_FETCHCOMPLEXREQUEST']._serialized_end=9361 + _globals['_FETCHCOMPLEXRESPONSE']._serialized_start=9364 + _globals['_FETCHCOMPLEXRESPONSE']._serialized_end=9493 + _globals['_FETCHCOMPLEXBINARY16REQUEST']._serialized_start=9495 + _globals['_FETCHCOMPLEXBINARY16REQUEST']._serialized_end=9620 + _globals['_FETCHCOMPLEXBINARY16RESPONSE']._serialized_start=9623 + _globals['_FETCHCOMPLEXBINARY16RESPONSE']._serialized_end=9757 + _globals['_ACQUISITIONSTATUSREQUEST']._serialized_start=9759 + _globals['_ACQUISITIONSTATUSREQUEST']._serialized_end=9821 + _globals['_ACQUISITIONSTATUSRESPONSE']._serialized_start=9824 + _globals['_ACQUISITIONSTATUSRESPONSE']._serialized_end=9960 + _globals['_ACTUALNUMWFMSREQUEST']._serialized_start=9962 + _globals['_ACTUALNUMWFMSREQUEST']._serialized_end=10042 + _globals['_ACTUALNUMWFMSRESPONSE']._serialized_start=10044 + _globals['_ACTUALNUMWFMSRESPONSE']._serialized_end=10101 + _globals['_ACTUALMEASWFMSIZEREQUEST']._serialized_start=10104 + _globals['_ACTUALMEASWFMSIZEREQUEST']._serialized_end=10292 + _globals['_ACTUALMEASWFMSIZERESPONSE']._serialized_start=10294 + _globals['_ACTUALMEASWFMSIZERESPONSE']._serialized_end=10365 + _globals['_ACTUALRECORDLENGTHREQUEST']._serialized_start=10367 + _globals['_ACTUALRECORDLENGTHREQUEST']._serialized_end=10430 + _globals['_ACTUALRECORDLENGTHRESPONSE']._serialized_start=10432 + _globals['_ACTUALRECORDLENGTHRESPONSE']._serialized_end=10499 + _globals['_SAMPLERATEREQUEST']._serialized_start=10501 + _globals['_SAMPLERATEREQUEST']._serialized_end=10556 + _globals['_SAMPLERATERESPONSE']._serialized_start=10558 + _globals['_SAMPLERATERESPONSE']._serialized_end=10615 + _globals['_SAMPLEMODEREQUEST']._serialized_start=10617 + _globals['_SAMPLEMODEREQUEST']._serialized_end=10672 + _globals['_SAMPLEMODERESPONSE']._serialized_start=10674 + _globals['_SAMPLEMODERESPONSE']._serialized_end=10731 + _globals['_ADDWAVEFORMPROCESSINGREQUEST']._serialized_start=10734 + _globals['_ADDWAVEFORMPROCESSINGREQUEST']._serialized_end=10930 + _globals['_ADDWAVEFORMPROCESSINGRESPONSE']._serialized_start=10932 + _globals['_ADDWAVEFORMPROCESSINGRESPONSE']._serialized_end=10979 + _globals['_CLEARWAVEFORMPROCESSINGREQUEST']._serialized_start=10981 + _globals['_CLEARWAVEFORMPROCESSINGREQUEST']._serialized_end=11071 + _globals['_CLEARWAVEFORMPROCESSINGRESPONSE']._serialized_start=11073 + _globals['_CLEARWAVEFORMPROCESSINGRESPONSE']._serialized_end=11122 + _globals['_CLEARWAVEFORMMEASUREMENTSTATSREQUEST']._serialized_start=11125 + _globals['_CLEARWAVEFORMMEASUREMENTSTATSREQUEST']._serialized_end=11384 + _globals['_CLEARWAVEFORMMEASUREMENTSTATSRESPONSE']._serialized_start=11386 + _globals['_CLEARWAVEFORMMEASUREMENTSTATSRESPONSE']._serialized_end=11441 + _globals['_READMEASUREMENTREQUEST']._serialized_start=11444 + _globals['_READMEASUREMENTREQUEST']._serialized_end=11673 + _globals['_READMEASUREMENTRESPONSE']._serialized_start=11675 + _globals['_READMEASUREMENTRESPONSE']._serialized_end=11732 + _globals['_FETCHMEASUREMENTREQUEST']._serialized_start=11735 + _globals['_FETCHMEASUREMENTREQUEST']._serialized_end=11965 + _globals['_FETCHMEASUREMENTRESPONSE']._serialized_start=11967 + _globals['_FETCHMEASUREMENTRESPONSE']._serialized_end=12025 + _globals['_FETCHMEASUREMENTSTATSREQUEST']._serialized_start=12028 + _globals['_FETCHMEASUREMENTSTATSREQUEST']._serialized_end=12263 + _globals['_FETCHMEASUREMENTSTATSRESPONSE']._serialized_start=12266 + _globals['_FETCHMEASUREMENTSTATSRESPONSE']._serialized_end=12406 + _globals['_FETCHARRAYMEASUREMENTREQUEST']._serialized_start=12409 + _globals['_FETCHARRAYMEASUREMENTREQUEST']._serialized_end=12686 + _globals['_FETCHARRAYMEASUREMENTRESPONSE']._serialized_start=12688 + _globals['_FETCHARRAYMEASUREMENTRESPONSE']._serialized_end=12799 + _globals['_RESETREQUEST']._serialized_start=12801 + _globals['_RESETREQUEST']._serialized_end=12851 + _globals['_RESETRESPONSE']._serialized_start=12853 + _globals['_RESETRESPONSE']._serialized_end=12884 + _globals['_SELFTESTREQUEST']._serialized_start=12886 + _globals['_SELFTESTREQUEST']._serialized_end=12939 + _globals['_SELFTESTRESPONSE']._serialized_start=12941 + _globals['_SELFTESTRESPONSE']._serialized_end=13028 + _globals['_DISABLEREQUEST']._serialized_start=13030 + _globals['_DISABLEREQUEST']._serialized_end=13082 + _globals['_DISABLERESPONSE']._serialized_start=13084 + _globals['_DISABLERESPONSE']._serialized_end=13117 + _globals['_RESETDEVICEREQUEST']._serialized_start=13119 + _globals['_RESETDEVICEREQUEST']._serialized_end=13175 + _globals['_RESETDEVICERESPONSE']._serialized_start=13177 + _globals['_RESETDEVICERESPONSE']._serialized_end=13214 + _globals['_CALSELFCALIBRATEREQUEST']._serialized_start=13217 + _globals['_CALSELFCALIBRATEREQUEST']._serialized_end=13377 + _globals['_CALSELFCALIBRATERESPONSE']._serialized_start=13379 + _globals['_CALSELFCALIBRATERESPONSE']._serialized_end=13421 + _globals['_REVISIONQUERYREQUEST']._serialized_start=13423 + _globals['_REVISIONQUERYREQUEST']._serialized_end=13481 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=13483 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=13574 + _globals['_PROBECOMPENSATIONSIGNALSTARTREQUEST']._serialized_start=13576 + _globals['_PROBECOMPENSATIONSIGNALSTARTREQUEST']._serialized_end=13649 + _globals['_PROBECOMPENSATIONSIGNALSTARTRESPONSE']._serialized_start=13651 + _globals['_PROBECOMPENSATIONSIGNALSTARTRESPONSE']._serialized_end=13705 + _globals['_PROBECOMPENSATIONSIGNALSTOPREQUEST']._serialized_start=13707 + _globals['_PROBECOMPENSATIONSIGNALSTOPREQUEST']._serialized_end=13779 + _globals['_PROBECOMPENSATIONSIGNALSTOPRESPONSE']._serialized_start=13781 + _globals['_PROBECOMPENSATIONSIGNALSTOPRESPONSE']._serialized_end=13834 + _globals['_CABLESENSESIGNALSTARTREQUEST']._serialized_start=13836 + _globals['_CABLESENSESIGNALSTARTREQUEST']._serialized_end=13902 + _globals['_CABLESENSESIGNALSTARTRESPONSE']._serialized_start=13904 + _globals['_CABLESENSESIGNALSTARTRESPONSE']._serialized_end=13951 + _globals['_CABLESENSESIGNALSTOPREQUEST']._serialized_start=13953 + _globals['_CABLESENSESIGNALSTOPREQUEST']._serialized_end=14018 + _globals['_CABLESENSESIGNALSTOPRESPONSE']._serialized_start=14020 + _globals['_CABLESENSESIGNALSTOPRESPONSE']._serialized_end=14066 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=14068 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=14142 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=14144 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=14208 + _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_start=14210 + _globals['_GETCHANNELNAMEFROMSTRINGREQUEST']._serialized_end=14294 + _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_start=14296 + _globals['_GETCHANNELNAMEFROMSTRINGRESPONSE']._serialized_end=14360 + _globals['_ERRORHANDLERREQUEST']._serialized_start=14362 + _globals['_ERRORHANDLERREQUEST']._serialized_end=14461 + _globals['_ERRORHANDLERRESPONSE']._serialized_start=14463 + _globals['_ERRORHANDLERRESPONSE']._serialized_end=14528 + _globals['_GETERRORREQUEST']._serialized_start=14530 + _globals['_GETERRORREQUEST']._serialized_end=14583 + _globals['_GETERRORRESPONSE']._serialized_start=14585 + _globals['_GETERRORRESPONSE']._serialized_end=14660 + _globals['_GETERRORMESSAGEREQUEST']._serialized_start=14662 + _globals['_GETERRORMESSAGEREQUEST']._serialized_end=14742 + _globals['_GETERRORMESSAGERESPONSE']._serialized_start=14744 + _globals['_GETERRORMESSAGERESPONSE']._serialized_end=14808 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=14811 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=14951 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=14953 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=15013 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=15016 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=15251 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=15253 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=15298 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=15301 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=15538 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=15540 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=15587 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_start=15590 + _globals['_GETATTRIBUTEVIINT64REQUEST']._serialized_end=15730 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_start=15732 + _globals['_GETATTRIBUTEVIINT64RESPONSE']._serialized_end=15792 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_start=15795 + _globals['_SETATTRIBUTEVIINT64REQUEST']._serialized_end=15954 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_start=15956 + _globals['_SETATTRIBUTEVIINT64RESPONSE']._serialized_end=16001 + _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_start=16004 + _globals['_CHECKATTRIBUTEVIINT64REQUEST']._serialized_end=16165 + _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_start=16167 + _globals['_CHECKATTRIBUTEVIINT64RESPONSE']._serialized_end=16214 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=16217 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=16358 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=16360 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=16421 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=16424 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=16735 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=16737 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=16783 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=16786 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=17099 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=17101 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=17149 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=17152 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=17293 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=17295 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=17356 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=17359 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=17609 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=17611 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=17657 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=17660 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=17912 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=17914 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=17962 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=17965 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=18107 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=18109 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=18195 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=18198 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=18379 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=18381 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=18428 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=18431 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=18614 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=18616 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=18665 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=18668 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=18810 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=18812 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=18874 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=18877 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19034 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19036 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19083 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=19086 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=19245 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=19247 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=19296 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19298 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19400 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19402 + _globals['_IMPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19462 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_start=19464 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERREQUEST']._serialized_end=19543 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_start=19545 + _globals['_EXPORTATTRIBUTECONFIGURATIONBUFFERRESPONSE']._serialized_end=19628 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19630 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19726 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19728 + _globals['_IMPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19786 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_start=19788 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILEREQUEST']._serialized_end=19884 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_start=19886 + _globals['_EXPORTATTRIBUTECONFIGURATIONFILERESPONSE']._serialized_end=19944 + _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_start=19946 + _globals['_GETSCALINGCOEFFICIENTSREQUEST']._serialized_end=20035 + _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_start=20038 + _globals['_GETSCALINGCOEFFICIENTSRESPONSE']._serialized_end=20179 + _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_start=20181 + _globals['_GETNORMALIZATIONCOEFFICIENTSREQUEST']._serialized_end=20276 + _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_start=20279 + _globals['_GETNORMALIZATIONCOEFFICIENTSRESPONSE']._serialized_end=20426 + _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_start=20428 + _globals['_GETSTREAMENDPOINTHANDLEREQUEST']._serialized_end=20517 + _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_start=20519 + _globals['_GETSTREAMENDPOINTHANDLERESPONSE']._serialized_end=20591 + _globals['_CALFETCHDATEREQUEST']._serialized_start=20594 + _globals['_CALFETCHDATEREQUEST']._serialized_end=20747 + _globals['_CALFETCHDATERESPONSE']._serialized_start=20749 + _globals['_CALFETCHDATERESPONSE']._serialized_end=20829 + _globals['_CALFETCHTEMPERATUREREQUEST']._serialized_start=20832 + _globals['_CALFETCHTEMPERATUREREQUEST']._serialized_end=20992 + _globals['_CALFETCHTEMPERATURERESPONSE']._serialized_start=20994 + _globals['_CALFETCHTEMPERATURERESPONSE']._serialized_end=21060 + _globals['_NISCOPE']._serialized_start=54252 + _globals['_NISCOPE']._serialized_end=63948 +# @@protoc_insertion_point(module_scope) diff --git a/generated/niscope/niscope/niscope_pb2_grpc.py b/generated/niscope/niscope/niscope_pb2_grpc.py new file mode 100644 index 0000000000..0e201501be --- /dev/null +++ b/generated/niscope/niscope/niscope_pb2_grpc.py @@ -0,0 +1,3003 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import niscope_pb2 as niscope__pb2 + + +class NiScopeStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Init = channel.unary_unary( + '/niscope_grpc.NiScope/Init', + request_serializer=niscope__pb2.InitRequest.SerializeToString, + response_deserializer=niscope__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/niscope_grpc.NiScope/InitWithOptions', + request_serializer=niscope__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=niscope__pb2.InitWithOptionsResponse.FromString, + ) + self.Close = channel.unary_unary( + '/niscope_grpc.NiScope/Close', + request_serializer=niscope__pb2.CloseRequest.SerializeToString, + response_deserializer=niscope__pb2.CloseResponse.FromString, + ) + self.AutoSetup = channel.unary_unary( + '/niscope_grpc.NiScope/AutoSetup', + request_serializer=niscope__pb2.AutoSetupRequest.SerializeToString, + response_deserializer=niscope__pb2.AutoSetupResponse.FromString, + ) + self.ConfigureVertical = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureVertical', + request_serializer=niscope__pb2.ConfigureVerticalRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureVerticalResponse.FromString, + ) + self.ConfigureChanCharacteristics = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureChanCharacteristics', + request_serializer=niscope__pb2.ConfigureChanCharacteristicsRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureChanCharacteristicsResponse.FromString, + ) + self.ConfigureHorizontalTiming = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureHorizontalTiming', + request_serializer=niscope__pb2.ConfigureHorizontalTimingRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureHorizontalTimingResponse.FromString, + ) + self.ConfigureClock = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureClock', + request_serializer=niscope__pb2.ConfigureClockRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureClockResponse.FromString, + ) + self.ExportSignal = channel.unary_unary( + '/niscope_grpc.NiScope/ExportSignal', + request_serializer=niscope__pb2.ExportSignalRequest.SerializeToString, + response_deserializer=niscope__pb2.ExportSignalResponse.FromString, + ) + self.AdjustSampleClockRelativeDelay = channel.unary_unary( + '/niscope_grpc.NiScope/AdjustSampleClockRelativeDelay', + request_serializer=niscope__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, + response_deserializer=niscope__pb2.AdjustSampleClockRelativeDelayResponse.FromString, + ) + self.ConfigureTriggerEdge = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerEdge', + request_serializer=niscope__pb2.ConfigureTriggerEdgeRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerEdgeResponse.FromString, + ) + self.ConfigureTriggerGlitch = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerGlitch', + request_serializer=niscope__pb2.ConfigureTriggerGlitchRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerGlitchResponse.FromString, + ) + self.ConfigureTriggerHysteresis = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerHysteresis', + request_serializer=niscope__pb2.ConfigureTriggerHysteresisRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerHysteresisResponse.FromString, + ) + self.ConfigureTriggerWindow = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerWindow', + request_serializer=niscope__pb2.ConfigureTriggerWindowRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerWindowResponse.FromString, + ) + self.ConfigureTriggerSoftware = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerSoftware', + request_serializer=niscope__pb2.ConfigureTriggerSoftwareRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerSoftwareResponse.FromString, + ) + self.SendSoftwareTriggerEdge = channel.unary_unary( + '/niscope_grpc.NiScope/SendSoftwareTriggerEdge', + request_serializer=niscope__pb2.SendSoftwareTriggerEdgeRequest.SerializeToString, + response_deserializer=niscope__pb2.SendSoftwareTriggerEdgeResponse.FromString, + ) + self.ConfigureTriggerImmediate = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerImmediate', + request_serializer=niscope__pb2.ConfigureTriggerImmediateRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerImmediateResponse.FromString, + ) + self.ConfigureTriggerRunt = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerRunt', + request_serializer=niscope__pb2.ConfigureTriggerRuntRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerRuntResponse.FromString, + ) + self.ConfigureTriggerDigital = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerDigital', + request_serializer=niscope__pb2.ConfigureTriggerDigitalRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerDigitalResponse.FromString, + ) + self.ConfigureTriggerVideo = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerVideo', + request_serializer=niscope__pb2.ConfigureTriggerVideoRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerVideoResponse.FromString, + ) + self.ConfigureTriggerWidth = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureTriggerWidth', + request_serializer=niscope__pb2.ConfigureTriggerWidthRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureTriggerWidthResponse.FromString, + ) + self.ConfigureEqualizationFilterCoefficients = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureEqualizationFilterCoefficients', + request_serializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsResponse.FromString, + ) + self.GetEqualizationFilterCoefficients = channel.unary_unary( + '/niscope_grpc.NiScope/GetEqualizationFilterCoefficients', + request_serializer=niscope__pb2.GetEqualizationFilterCoefficientsRequest.SerializeToString, + response_deserializer=niscope__pb2.GetEqualizationFilterCoefficientsResponse.FromString, + ) + self.GetFrequencyResponse = channel.unary_unary( + '/niscope_grpc.NiScope/GetFrequencyResponse', + request_serializer=niscope__pb2.GetFrequencyResponseRequest.SerializeToString, + response_deserializer=niscope__pb2.GetFrequencyResponseResponse.FromString, + ) + self.ConfigureAcquisition = channel.unary_unary( + '/niscope_grpc.NiScope/ConfigureAcquisition', + request_serializer=niscope__pb2.ConfigureAcquisitionRequest.SerializeToString, + response_deserializer=niscope__pb2.ConfigureAcquisitionResponse.FromString, + ) + self.InitiateAcquisition = channel.unary_unary( + '/niscope_grpc.NiScope/InitiateAcquisition', + request_serializer=niscope__pb2.InitiateAcquisitionRequest.SerializeToString, + response_deserializer=niscope__pb2.InitiateAcquisitionResponse.FromString, + ) + self.Abort = channel.unary_unary( + '/niscope_grpc.NiScope/Abort', + request_serializer=niscope__pb2.AbortRequest.SerializeToString, + response_deserializer=niscope__pb2.AbortResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/niscope_grpc.NiScope/Commit', + request_serializer=niscope__pb2.CommitRequest.SerializeToString, + response_deserializer=niscope__pb2.CommitResponse.FromString, + ) + self.Read = channel.unary_unary( + '/niscope_grpc.NiScope/Read', + request_serializer=niscope__pb2.ReadRequest.SerializeToString, + response_deserializer=niscope__pb2.ReadResponse.FromString, + ) + self.Fetch = channel.unary_unary( + '/niscope_grpc.NiScope/Fetch', + request_serializer=niscope__pb2.FetchRequest.SerializeToString, + response_deserializer=niscope__pb2.FetchResponse.FromString, + ) + self.FetchBinary8 = channel.unary_unary( + '/niscope_grpc.NiScope/FetchBinary8', + request_serializer=niscope__pb2.FetchBinary8Request.SerializeToString, + response_deserializer=niscope__pb2.FetchBinary8Response.FromString, + ) + self.FetchBinary16 = channel.unary_unary( + '/niscope_grpc.NiScope/FetchBinary16', + request_serializer=niscope__pb2.FetchBinary16Request.SerializeToString, + response_deserializer=niscope__pb2.FetchBinary16Response.FromString, + ) + self.FetchBinary32 = channel.unary_unary( + '/niscope_grpc.NiScope/FetchBinary32', + request_serializer=niscope__pb2.FetchBinary32Request.SerializeToString, + response_deserializer=niscope__pb2.FetchBinary32Response.FromString, + ) + self.FetchComplex = channel.unary_unary( + '/niscope_grpc.NiScope/FetchComplex', + request_serializer=niscope__pb2.FetchComplexRequest.SerializeToString, + response_deserializer=niscope__pb2.FetchComplexResponse.FromString, + ) + self.FetchComplexBinary16 = channel.unary_unary( + '/niscope_grpc.NiScope/FetchComplexBinary16', + request_serializer=niscope__pb2.FetchComplexBinary16Request.SerializeToString, + response_deserializer=niscope__pb2.FetchComplexBinary16Response.FromString, + ) + self.AcquisitionStatus = channel.unary_unary( + '/niscope_grpc.NiScope/AcquisitionStatus', + request_serializer=niscope__pb2.AcquisitionStatusRequest.SerializeToString, + response_deserializer=niscope__pb2.AcquisitionStatusResponse.FromString, + ) + self.ActualNumWfms = channel.unary_unary( + '/niscope_grpc.NiScope/ActualNumWfms', + request_serializer=niscope__pb2.ActualNumWfmsRequest.SerializeToString, + response_deserializer=niscope__pb2.ActualNumWfmsResponse.FromString, + ) + self.ActualMeasWfmSize = channel.unary_unary( + '/niscope_grpc.NiScope/ActualMeasWfmSize', + request_serializer=niscope__pb2.ActualMeasWfmSizeRequest.SerializeToString, + response_deserializer=niscope__pb2.ActualMeasWfmSizeResponse.FromString, + ) + self.ActualRecordLength = channel.unary_unary( + '/niscope_grpc.NiScope/ActualRecordLength', + request_serializer=niscope__pb2.ActualRecordLengthRequest.SerializeToString, + response_deserializer=niscope__pb2.ActualRecordLengthResponse.FromString, + ) + self.SampleRate = channel.unary_unary( + '/niscope_grpc.NiScope/SampleRate', + request_serializer=niscope__pb2.SampleRateRequest.SerializeToString, + response_deserializer=niscope__pb2.SampleRateResponse.FromString, + ) + self.SampleMode = channel.unary_unary( + '/niscope_grpc.NiScope/SampleMode', + request_serializer=niscope__pb2.SampleModeRequest.SerializeToString, + response_deserializer=niscope__pb2.SampleModeResponse.FromString, + ) + self.AddWaveformProcessing = channel.unary_unary( + '/niscope_grpc.NiScope/AddWaveformProcessing', + request_serializer=niscope__pb2.AddWaveformProcessingRequest.SerializeToString, + response_deserializer=niscope__pb2.AddWaveformProcessingResponse.FromString, + ) + self.ClearWaveformProcessing = channel.unary_unary( + '/niscope_grpc.NiScope/ClearWaveformProcessing', + request_serializer=niscope__pb2.ClearWaveformProcessingRequest.SerializeToString, + response_deserializer=niscope__pb2.ClearWaveformProcessingResponse.FromString, + ) + self.ClearWaveformMeasurementStats = channel.unary_unary( + '/niscope_grpc.NiScope/ClearWaveformMeasurementStats', + request_serializer=niscope__pb2.ClearWaveformMeasurementStatsRequest.SerializeToString, + response_deserializer=niscope__pb2.ClearWaveformMeasurementStatsResponse.FromString, + ) + self.ReadMeasurement = channel.unary_unary( + '/niscope_grpc.NiScope/ReadMeasurement', + request_serializer=niscope__pb2.ReadMeasurementRequest.SerializeToString, + response_deserializer=niscope__pb2.ReadMeasurementResponse.FromString, + ) + self.FetchMeasurement = channel.unary_unary( + '/niscope_grpc.NiScope/FetchMeasurement', + request_serializer=niscope__pb2.FetchMeasurementRequest.SerializeToString, + response_deserializer=niscope__pb2.FetchMeasurementResponse.FromString, + ) + self.FetchMeasurementStats = channel.unary_unary( + '/niscope_grpc.NiScope/FetchMeasurementStats', + request_serializer=niscope__pb2.FetchMeasurementStatsRequest.SerializeToString, + response_deserializer=niscope__pb2.FetchMeasurementStatsResponse.FromString, + ) + self.FetchArrayMeasurement = channel.unary_unary( + '/niscope_grpc.NiScope/FetchArrayMeasurement', + request_serializer=niscope__pb2.FetchArrayMeasurementRequest.SerializeToString, + response_deserializer=niscope__pb2.FetchArrayMeasurementResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/niscope_grpc.NiScope/Reset', + request_serializer=niscope__pb2.ResetRequest.SerializeToString, + response_deserializer=niscope__pb2.ResetResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/niscope_grpc.NiScope/SelfTest', + request_serializer=niscope__pb2.SelfTestRequest.SerializeToString, + response_deserializer=niscope__pb2.SelfTestResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/niscope_grpc.NiScope/Disable', + request_serializer=niscope__pb2.DisableRequest.SerializeToString, + response_deserializer=niscope__pb2.DisableResponse.FromString, + ) + self.ResetDevice = channel.unary_unary( + '/niscope_grpc.NiScope/ResetDevice', + request_serializer=niscope__pb2.ResetDeviceRequest.SerializeToString, + response_deserializer=niscope__pb2.ResetDeviceResponse.FromString, + ) + self.CalSelfCalibrate = channel.unary_unary( + '/niscope_grpc.NiScope/CalSelfCalibrate', + request_serializer=niscope__pb2.CalSelfCalibrateRequest.SerializeToString, + response_deserializer=niscope__pb2.CalSelfCalibrateResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/niscope_grpc.NiScope/RevisionQuery', + request_serializer=niscope__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=niscope__pb2.RevisionQueryResponse.FromString, + ) + self.ProbeCompensationSignalStart = channel.unary_unary( + '/niscope_grpc.NiScope/ProbeCompensationSignalStart', + request_serializer=niscope__pb2.ProbeCompensationSignalStartRequest.SerializeToString, + response_deserializer=niscope__pb2.ProbeCompensationSignalStartResponse.FromString, + ) + self.ProbeCompensationSignalStop = channel.unary_unary( + '/niscope_grpc.NiScope/ProbeCompensationSignalStop', + request_serializer=niscope__pb2.ProbeCompensationSignalStopRequest.SerializeToString, + response_deserializer=niscope__pb2.ProbeCompensationSignalStopResponse.FromString, + ) + self.CableSenseSignalStart = channel.unary_unary( + '/niscope_grpc.NiScope/CableSenseSignalStart', + request_serializer=niscope__pb2.CableSenseSignalStartRequest.SerializeToString, + response_deserializer=niscope__pb2.CableSenseSignalStartResponse.FromString, + ) + self.CableSenseSignalStop = channel.unary_unary( + '/niscope_grpc.NiScope/CableSenseSignalStop', + request_serializer=niscope__pb2.CableSenseSignalStopRequest.SerializeToString, + response_deserializer=niscope__pb2.CableSenseSignalStopResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/niscope_grpc.NiScope/GetChannelName', + request_serializer=niscope__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=niscope__pb2.GetChannelNameResponse.FromString, + ) + self.GetChannelNameFromString = channel.unary_unary( + '/niscope_grpc.NiScope/GetChannelNameFromString', + request_serializer=niscope__pb2.GetChannelNameFromStringRequest.SerializeToString, + response_deserializer=niscope__pb2.GetChannelNameFromStringResponse.FromString, + ) + self.ErrorHandler = channel.unary_unary( + '/niscope_grpc.NiScope/ErrorHandler', + request_serializer=niscope__pb2.ErrorHandlerRequest.SerializeToString, + response_deserializer=niscope__pb2.ErrorHandlerResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/niscope_grpc.NiScope/GetError', + request_serializer=niscope__pb2.GetErrorRequest.SerializeToString, + response_deserializer=niscope__pb2.GetErrorResponse.FromString, + ) + self.GetErrorMessage = channel.unary_unary( + '/niscope_grpc.NiScope/GetErrorMessage', + request_serializer=niscope__pb2.GetErrorMessageRequest.SerializeToString, + response_deserializer=niscope__pb2.GetErrorMessageResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/niscope_grpc.NiScope/GetAttributeViInt32', + request_serializer=niscope__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=niscope__pb2.GetAttributeViInt32Response.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/niscope_grpc.NiScope/SetAttributeViInt32', + request_serializer=niscope__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=niscope__pb2.SetAttributeViInt32Response.FromString, + ) + self.CheckAttributeViInt32 = channel.unary_unary( + '/niscope_grpc.NiScope/CheckAttributeViInt32', + request_serializer=niscope__pb2.CheckAttributeViInt32Request.SerializeToString, + response_deserializer=niscope__pb2.CheckAttributeViInt32Response.FromString, + ) + self.GetAttributeViInt64 = channel.unary_unary( + '/niscope_grpc.NiScope/GetAttributeViInt64', + request_serializer=niscope__pb2.GetAttributeViInt64Request.SerializeToString, + response_deserializer=niscope__pb2.GetAttributeViInt64Response.FromString, + ) + self.SetAttributeViInt64 = channel.unary_unary( + '/niscope_grpc.NiScope/SetAttributeViInt64', + request_serializer=niscope__pb2.SetAttributeViInt64Request.SerializeToString, + response_deserializer=niscope__pb2.SetAttributeViInt64Response.FromString, + ) + self.CheckAttributeViInt64 = channel.unary_unary( + '/niscope_grpc.NiScope/CheckAttributeViInt64', + request_serializer=niscope__pb2.CheckAttributeViInt64Request.SerializeToString, + response_deserializer=niscope__pb2.CheckAttributeViInt64Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/niscope_grpc.NiScope/GetAttributeViReal64', + request_serializer=niscope__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=niscope__pb2.GetAttributeViReal64Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/niscope_grpc.NiScope/SetAttributeViReal64', + request_serializer=niscope__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=niscope__pb2.SetAttributeViReal64Response.FromString, + ) + self.CheckAttributeViReal64 = channel.unary_unary( + '/niscope_grpc.NiScope/CheckAttributeViReal64', + request_serializer=niscope__pb2.CheckAttributeViReal64Request.SerializeToString, + response_deserializer=niscope__pb2.CheckAttributeViReal64Response.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/niscope_grpc.NiScope/GetAttributeViString', + request_serializer=niscope__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=niscope__pb2.GetAttributeViStringResponse.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/niscope_grpc.NiScope/SetAttributeViString', + request_serializer=niscope__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=niscope__pb2.SetAttributeViStringResponse.FromString, + ) + self.CheckAttributeViString = channel.unary_unary( + '/niscope_grpc.NiScope/CheckAttributeViString', + request_serializer=niscope__pb2.CheckAttributeViStringRequest.SerializeToString, + response_deserializer=niscope__pb2.CheckAttributeViStringResponse.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/niscope_grpc.NiScope/GetAttributeViSession', + request_serializer=niscope__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=niscope__pb2.GetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/niscope_grpc.NiScope/SetAttributeViSession', + request_serializer=niscope__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=niscope__pb2.SetAttributeViSessionResponse.FromString, + ) + self.CheckAttributeViSession = channel.unary_unary( + '/niscope_grpc.NiScope/CheckAttributeViSession', + request_serializer=niscope__pb2.CheckAttributeViSessionRequest.SerializeToString, + response_deserializer=niscope__pb2.CheckAttributeViSessionResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/niscope_grpc.NiScope/GetAttributeViBoolean', + request_serializer=niscope__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=niscope__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/niscope_grpc.NiScope/SetAttributeViBoolean', + request_serializer=niscope__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=niscope__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.CheckAttributeViBoolean = channel.unary_unary( + '/niscope_grpc.NiScope/CheckAttributeViBoolean', + request_serializer=niscope__pb2.CheckAttributeViBooleanRequest.SerializeToString, + response_deserializer=niscope__pb2.CheckAttributeViBooleanResponse.FromString, + ) + self.ImportAttributeConfigurationBuffer = channel.unary_unary( + '/niscope_grpc.NiScope/ImportAttributeConfigurationBuffer', + request_serializer=niscope__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=niscope__pb2.ImportAttributeConfigurationBufferResponse.FromString, + ) + self.ExportAttributeConfigurationBuffer = channel.unary_unary( + '/niscope_grpc.NiScope/ExportAttributeConfigurationBuffer', + request_serializer=niscope__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + response_deserializer=niscope__pb2.ExportAttributeConfigurationBufferResponse.FromString, + ) + self.ImportAttributeConfigurationFile = channel.unary_unary( + '/niscope_grpc.NiScope/ImportAttributeConfigurationFile', + request_serializer=niscope__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=niscope__pb2.ImportAttributeConfigurationFileResponse.FromString, + ) + self.ExportAttributeConfigurationFile = channel.unary_unary( + '/niscope_grpc.NiScope/ExportAttributeConfigurationFile', + request_serializer=niscope__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + response_deserializer=niscope__pb2.ExportAttributeConfigurationFileResponse.FromString, + ) + self.GetScalingCoefficients = channel.unary_unary( + '/niscope_grpc.NiScope/GetScalingCoefficients', + request_serializer=niscope__pb2.GetScalingCoefficientsRequest.SerializeToString, + response_deserializer=niscope__pb2.GetScalingCoefficientsResponse.FromString, + ) + self.GetNormalizationCoefficients = channel.unary_unary( + '/niscope_grpc.NiScope/GetNormalizationCoefficients', + request_serializer=niscope__pb2.GetNormalizationCoefficientsRequest.SerializeToString, + response_deserializer=niscope__pb2.GetNormalizationCoefficientsResponse.FromString, + ) + self.GetStreamEndpointHandle = channel.unary_unary( + '/niscope_grpc.NiScope/GetStreamEndpointHandle', + request_serializer=niscope__pb2.GetStreamEndpointHandleRequest.SerializeToString, + response_deserializer=niscope__pb2.GetStreamEndpointHandleResponse.FromString, + ) + self.CalFetchDate = channel.unary_unary( + '/niscope_grpc.NiScope/CalFetchDate', + request_serializer=niscope__pb2.CalFetchDateRequest.SerializeToString, + response_deserializer=niscope__pb2.CalFetchDateResponse.FromString, + ) + self.CalFetchTemperature = channel.unary_unary( + '/niscope_grpc.NiScope/CalFetchTemperature', + request_serializer=niscope__pb2.CalFetchTemperatureRequest.SerializeToString, + response_deserializer=niscope__pb2.CalFetchTemperatureResponse.FromString, + ) + + +class NiScopeServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AutoSetup(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureVertical(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureChanCharacteristics(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureHorizontalTiming(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureClock(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportSignal(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AdjustSampleClockRelativeDelay(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerEdge(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerGlitch(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerHysteresis(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerWindow(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerSoftware(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareTriggerEdge(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerImmediate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerRunt(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerDigital(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerVideo(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureTriggerWidth(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureEqualizationFilterCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetEqualizationFilterCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetFrequencyResponse(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureAcquisition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitiateAcquisition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Abort(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Read(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Fetch(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchBinary8(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchBinary16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchBinary32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchComplex(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchComplexBinary16(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AcquisitionStatus(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ActualNumWfms(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ActualMeasWfmSize(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ActualRecordLength(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SampleRate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SampleMode(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddWaveformProcessing(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearWaveformProcessing(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearWaveformMeasurementStats(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReadMeasurement(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchMeasurement(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchMeasurementStats(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchArrayMeasurement(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetDevice(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CalSelfCalibrate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ProbeCompensationSignalStart(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ProbeCompensationSignalStop(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CableSenseSignalStart(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CableSenseSignalStop(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelNameFromString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorHandler(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationBuffer(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ImportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ExportAttributeConfigurationFile(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetScalingCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetNormalizationCoefficients(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetStreamEndpointHandle(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CalFetchDate(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CalFetchTemperature(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiScopeServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=niscope__pb2.InitRequest.FromString, + response_serializer=niscope__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=niscope__pb2.InitWithOptionsRequest.FromString, + response_serializer=niscope__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=niscope__pb2.CloseRequest.FromString, + response_serializer=niscope__pb2.CloseResponse.SerializeToString, + ), + 'AutoSetup': grpc.unary_unary_rpc_method_handler( + servicer.AutoSetup, + request_deserializer=niscope__pb2.AutoSetupRequest.FromString, + response_serializer=niscope__pb2.AutoSetupResponse.SerializeToString, + ), + 'ConfigureVertical': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureVertical, + request_deserializer=niscope__pb2.ConfigureVerticalRequest.FromString, + response_serializer=niscope__pb2.ConfigureVerticalResponse.SerializeToString, + ), + 'ConfigureChanCharacteristics': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureChanCharacteristics, + request_deserializer=niscope__pb2.ConfigureChanCharacteristicsRequest.FromString, + response_serializer=niscope__pb2.ConfigureChanCharacteristicsResponse.SerializeToString, + ), + 'ConfigureHorizontalTiming': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureHorizontalTiming, + request_deserializer=niscope__pb2.ConfigureHorizontalTimingRequest.FromString, + response_serializer=niscope__pb2.ConfigureHorizontalTimingResponse.SerializeToString, + ), + 'ConfigureClock': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureClock, + request_deserializer=niscope__pb2.ConfigureClockRequest.FromString, + response_serializer=niscope__pb2.ConfigureClockResponse.SerializeToString, + ), + 'ExportSignal': grpc.unary_unary_rpc_method_handler( + servicer.ExportSignal, + request_deserializer=niscope__pb2.ExportSignalRequest.FromString, + response_serializer=niscope__pb2.ExportSignalResponse.SerializeToString, + ), + 'AdjustSampleClockRelativeDelay': grpc.unary_unary_rpc_method_handler( + servicer.AdjustSampleClockRelativeDelay, + request_deserializer=niscope__pb2.AdjustSampleClockRelativeDelayRequest.FromString, + response_serializer=niscope__pb2.AdjustSampleClockRelativeDelayResponse.SerializeToString, + ), + 'ConfigureTriggerEdge': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerEdge, + request_deserializer=niscope__pb2.ConfigureTriggerEdgeRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerEdgeResponse.SerializeToString, + ), + 'ConfigureTriggerGlitch': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerGlitch, + request_deserializer=niscope__pb2.ConfigureTriggerGlitchRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerGlitchResponse.SerializeToString, + ), + 'ConfigureTriggerHysteresis': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerHysteresis, + request_deserializer=niscope__pb2.ConfigureTriggerHysteresisRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerHysteresisResponse.SerializeToString, + ), + 'ConfigureTriggerWindow': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerWindow, + request_deserializer=niscope__pb2.ConfigureTriggerWindowRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerWindowResponse.SerializeToString, + ), + 'ConfigureTriggerSoftware': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerSoftware, + request_deserializer=niscope__pb2.ConfigureTriggerSoftwareRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerSoftwareResponse.SerializeToString, + ), + 'SendSoftwareTriggerEdge': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareTriggerEdge, + request_deserializer=niscope__pb2.SendSoftwareTriggerEdgeRequest.FromString, + response_serializer=niscope__pb2.SendSoftwareTriggerEdgeResponse.SerializeToString, + ), + 'ConfigureTriggerImmediate': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerImmediate, + request_deserializer=niscope__pb2.ConfigureTriggerImmediateRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerImmediateResponse.SerializeToString, + ), + 'ConfigureTriggerRunt': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerRunt, + request_deserializer=niscope__pb2.ConfigureTriggerRuntRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerRuntResponse.SerializeToString, + ), + 'ConfigureTriggerDigital': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerDigital, + request_deserializer=niscope__pb2.ConfigureTriggerDigitalRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerDigitalResponse.SerializeToString, + ), + 'ConfigureTriggerVideo': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerVideo, + request_deserializer=niscope__pb2.ConfigureTriggerVideoRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerVideoResponse.SerializeToString, + ), + 'ConfigureTriggerWidth': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureTriggerWidth, + request_deserializer=niscope__pb2.ConfigureTriggerWidthRequest.FromString, + response_serializer=niscope__pb2.ConfigureTriggerWidthResponse.SerializeToString, + ), + 'ConfigureEqualizationFilterCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureEqualizationFilterCoefficients, + request_deserializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsRequest.FromString, + response_serializer=niscope__pb2.ConfigureEqualizationFilterCoefficientsResponse.SerializeToString, + ), + 'GetEqualizationFilterCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.GetEqualizationFilterCoefficients, + request_deserializer=niscope__pb2.GetEqualizationFilterCoefficientsRequest.FromString, + response_serializer=niscope__pb2.GetEqualizationFilterCoefficientsResponse.SerializeToString, + ), + 'GetFrequencyResponse': grpc.unary_unary_rpc_method_handler( + servicer.GetFrequencyResponse, + request_deserializer=niscope__pb2.GetFrequencyResponseRequest.FromString, + response_serializer=niscope__pb2.GetFrequencyResponseResponse.SerializeToString, + ), + 'ConfigureAcquisition': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureAcquisition, + request_deserializer=niscope__pb2.ConfigureAcquisitionRequest.FromString, + response_serializer=niscope__pb2.ConfigureAcquisitionResponse.SerializeToString, + ), + 'InitiateAcquisition': grpc.unary_unary_rpc_method_handler( + servicer.InitiateAcquisition, + request_deserializer=niscope__pb2.InitiateAcquisitionRequest.FromString, + response_serializer=niscope__pb2.InitiateAcquisitionResponse.SerializeToString, + ), + 'Abort': grpc.unary_unary_rpc_method_handler( + servicer.Abort, + request_deserializer=niscope__pb2.AbortRequest.FromString, + response_serializer=niscope__pb2.AbortResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=niscope__pb2.CommitRequest.FromString, + response_serializer=niscope__pb2.CommitResponse.SerializeToString, + ), + 'Read': grpc.unary_unary_rpc_method_handler( + servicer.Read, + request_deserializer=niscope__pb2.ReadRequest.FromString, + response_serializer=niscope__pb2.ReadResponse.SerializeToString, + ), + 'Fetch': grpc.unary_unary_rpc_method_handler( + servicer.Fetch, + request_deserializer=niscope__pb2.FetchRequest.FromString, + response_serializer=niscope__pb2.FetchResponse.SerializeToString, + ), + 'FetchBinary8': grpc.unary_unary_rpc_method_handler( + servicer.FetchBinary8, + request_deserializer=niscope__pb2.FetchBinary8Request.FromString, + response_serializer=niscope__pb2.FetchBinary8Response.SerializeToString, + ), + 'FetchBinary16': grpc.unary_unary_rpc_method_handler( + servicer.FetchBinary16, + request_deserializer=niscope__pb2.FetchBinary16Request.FromString, + response_serializer=niscope__pb2.FetchBinary16Response.SerializeToString, + ), + 'FetchBinary32': grpc.unary_unary_rpc_method_handler( + servicer.FetchBinary32, + request_deserializer=niscope__pb2.FetchBinary32Request.FromString, + response_serializer=niscope__pb2.FetchBinary32Response.SerializeToString, + ), + 'FetchComplex': grpc.unary_unary_rpc_method_handler( + servicer.FetchComplex, + request_deserializer=niscope__pb2.FetchComplexRequest.FromString, + response_serializer=niscope__pb2.FetchComplexResponse.SerializeToString, + ), + 'FetchComplexBinary16': grpc.unary_unary_rpc_method_handler( + servicer.FetchComplexBinary16, + request_deserializer=niscope__pb2.FetchComplexBinary16Request.FromString, + response_serializer=niscope__pb2.FetchComplexBinary16Response.SerializeToString, + ), + 'AcquisitionStatus': grpc.unary_unary_rpc_method_handler( + servicer.AcquisitionStatus, + request_deserializer=niscope__pb2.AcquisitionStatusRequest.FromString, + response_serializer=niscope__pb2.AcquisitionStatusResponse.SerializeToString, + ), + 'ActualNumWfms': grpc.unary_unary_rpc_method_handler( + servicer.ActualNumWfms, + request_deserializer=niscope__pb2.ActualNumWfmsRequest.FromString, + response_serializer=niscope__pb2.ActualNumWfmsResponse.SerializeToString, + ), + 'ActualMeasWfmSize': grpc.unary_unary_rpc_method_handler( + servicer.ActualMeasWfmSize, + request_deserializer=niscope__pb2.ActualMeasWfmSizeRequest.FromString, + response_serializer=niscope__pb2.ActualMeasWfmSizeResponse.SerializeToString, + ), + 'ActualRecordLength': grpc.unary_unary_rpc_method_handler( + servicer.ActualRecordLength, + request_deserializer=niscope__pb2.ActualRecordLengthRequest.FromString, + response_serializer=niscope__pb2.ActualRecordLengthResponse.SerializeToString, + ), + 'SampleRate': grpc.unary_unary_rpc_method_handler( + servicer.SampleRate, + request_deserializer=niscope__pb2.SampleRateRequest.FromString, + response_serializer=niscope__pb2.SampleRateResponse.SerializeToString, + ), + 'SampleMode': grpc.unary_unary_rpc_method_handler( + servicer.SampleMode, + request_deserializer=niscope__pb2.SampleModeRequest.FromString, + response_serializer=niscope__pb2.SampleModeResponse.SerializeToString, + ), + 'AddWaveformProcessing': grpc.unary_unary_rpc_method_handler( + servicer.AddWaveformProcessing, + request_deserializer=niscope__pb2.AddWaveformProcessingRequest.FromString, + response_serializer=niscope__pb2.AddWaveformProcessingResponse.SerializeToString, + ), + 'ClearWaveformProcessing': grpc.unary_unary_rpc_method_handler( + servicer.ClearWaveformProcessing, + request_deserializer=niscope__pb2.ClearWaveformProcessingRequest.FromString, + response_serializer=niscope__pb2.ClearWaveformProcessingResponse.SerializeToString, + ), + 'ClearWaveformMeasurementStats': grpc.unary_unary_rpc_method_handler( + servicer.ClearWaveformMeasurementStats, + request_deserializer=niscope__pb2.ClearWaveformMeasurementStatsRequest.FromString, + response_serializer=niscope__pb2.ClearWaveformMeasurementStatsResponse.SerializeToString, + ), + 'ReadMeasurement': grpc.unary_unary_rpc_method_handler( + servicer.ReadMeasurement, + request_deserializer=niscope__pb2.ReadMeasurementRequest.FromString, + response_serializer=niscope__pb2.ReadMeasurementResponse.SerializeToString, + ), + 'FetchMeasurement': grpc.unary_unary_rpc_method_handler( + servicer.FetchMeasurement, + request_deserializer=niscope__pb2.FetchMeasurementRequest.FromString, + response_serializer=niscope__pb2.FetchMeasurementResponse.SerializeToString, + ), + 'FetchMeasurementStats': grpc.unary_unary_rpc_method_handler( + servicer.FetchMeasurementStats, + request_deserializer=niscope__pb2.FetchMeasurementStatsRequest.FromString, + response_serializer=niscope__pb2.FetchMeasurementStatsResponse.SerializeToString, + ), + 'FetchArrayMeasurement': grpc.unary_unary_rpc_method_handler( + servicer.FetchArrayMeasurement, + request_deserializer=niscope__pb2.FetchArrayMeasurementRequest.FromString, + response_serializer=niscope__pb2.FetchArrayMeasurementResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=niscope__pb2.ResetRequest.FromString, + response_serializer=niscope__pb2.ResetResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=niscope__pb2.SelfTestRequest.FromString, + response_serializer=niscope__pb2.SelfTestResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=niscope__pb2.DisableRequest.FromString, + response_serializer=niscope__pb2.DisableResponse.SerializeToString, + ), + 'ResetDevice': grpc.unary_unary_rpc_method_handler( + servicer.ResetDevice, + request_deserializer=niscope__pb2.ResetDeviceRequest.FromString, + response_serializer=niscope__pb2.ResetDeviceResponse.SerializeToString, + ), + 'CalSelfCalibrate': grpc.unary_unary_rpc_method_handler( + servicer.CalSelfCalibrate, + request_deserializer=niscope__pb2.CalSelfCalibrateRequest.FromString, + response_serializer=niscope__pb2.CalSelfCalibrateResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=niscope__pb2.RevisionQueryRequest.FromString, + response_serializer=niscope__pb2.RevisionQueryResponse.SerializeToString, + ), + 'ProbeCompensationSignalStart': grpc.unary_unary_rpc_method_handler( + servicer.ProbeCompensationSignalStart, + request_deserializer=niscope__pb2.ProbeCompensationSignalStartRequest.FromString, + response_serializer=niscope__pb2.ProbeCompensationSignalStartResponse.SerializeToString, + ), + 'ProbeCompensationSignalStop': grpc.unary_unary_rpc_method_handler( + servicer.ProbeCompensationSignalStop, + request_deserializer=niscope__pb2.ProbeCompensationSignalStopRequest.FromString, + response_serializer=niscope__pb2.ProbeCompensationSignalStopResponse.SerializeToString, + ), + 'CableSenseSignalStart': grpc.unary_unary_rpc_method_handler( + servicer.CableSenseSignalStart, + request_deserializer=niscope__pb2.CableSenseSignalStartRequest.FromString, + response_serializer=niscope__pb2.CableSenseSignalStartResponse.SerializeToString, + ), + 'CableSenseSignalStop': grpc.unary_unary_rpc_method_handler( + servicer.CableSenseSignalStop, + request_deserializer=niscope__pb2.CableSenseSignalStopRequest.FromString, + response_serializer=niscope__pb2.CableSenseSignalStopResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=niscope__pb2.GetChannelNameRequest.FromString, + response_serializer=niscope__pb2.GetChannelNameResponse.SerializeToString, + ), + 'GetChannelNameFromString': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelNameFromString, + request_deserializer=niscope__pb2.GetChannelNameFromStringRequest.FromString, + response_serializer=niscope__pb2.GetChannelNameFromStringResponse.SerializeToString, + ), + 'ErrorHandler': grpc.unary_unary_rpc_method_handler( + servicer.ErrorHandler, + request_deserializer=niscope__pb2.ErrorHandlerRequest.FromString, + response_serializer=niscope__pb2.ErrorHandlerResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=niscope__pb2.GetErrorRequest.FromString, + response_serializer=niscope__pb2.GetErrorResponse.SerializeToString, + ), + 'GetErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.GetErrorMessage, + request_deserializer=niscope__pb2.GetErrorMessageRequest.FromString, + response_serializer=niscope__pb2.GetErrorMessageResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=niscope__pb2.GetAttributeViInt32Request.FromString, + response_serializer=niscope__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=niscope__pb2.SetAttributeViInt32Request.FromString, + response_serializer=niscope__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt32, + request_deserializer=niscope__pb2.CheckAttributeViInt32Request.FromString, + response_serializer=niscope__pb2.CheckAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt64, + request_deserializer=niscope__pb2.GetAttributeViInt64Request.FromString, + response_serializer=niscope__pb2.GetAttributeViInt64Response.SerializeToString, + ), + 'SetAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt64, + request_deserializer=niscope__pb2.SetAttributeViInt64Request.FromString, + response_serializer=niscope__pb2.SetAttributeViInt64Response.SerializeToString, + ), + 'CheckAttributeViInt64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt64, + request_deserializer=niscope__pb2.CheckAttributeViInt64Request.FromString, + response_serializer=niscope__pb2.CheckAttributeViInt64Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=niscope__pb2.GetAttributeViReal64Request.FromString, + response_serializer=niscope__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=niscope__pb2.SetAttributeViReal64Request.FromString, + response_serializer=niscope__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViReal64, + request_deserializer=niscope__pb2.CheckAttributeViReal64Request.FromString, + response_serializer=niscope__pb2.CheckAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=niscope__pb2.GetAttributeViStringRequest.FromString, + response_serializer=niscope__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=niscope__pb2.SetAttributeViStringRequest.FromString, + response_serializer=niscope__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViString, + request_deserializer=niscope__pb2.CheckAttributeViStringRequest.FromString, + response_serializer=niscope__pb2.CheckAttributeViStringResponse.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=niscope__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=niscope__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=niscope__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=niscope__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViSession, + request_deserializer=niscope__pb2.CheckAttributeViSessionRequest.FromString, + response_serializer=niscope__pb2.CheckAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=niscope__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=niscope__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=niscope__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=niscope__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViBoolean, + request_deserializer=niscope__pb2.CheckAttributeViBooleanRequest.FromString, + response_serializer=niscope__pb2.CheckAttributeViBooleanResponse.SerializeToString, + ), + 'ImportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationBuffer, + request_deserializer=niscope__pb2.ImportAttributeConfigurationBufferRequest.FromString, + response_serializer=niscope__pb2.ImportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ExportAttributeConfigurationBuffer': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationBuffer, + request_deserializer=niscope__pb2.ExportAttributeConfigurationBufferRequest.FromString, + response_serializer=niscope__pb2.ExportAttributeConfigurationBufferResponse.SerializeToString, + ), + 'ImportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ImportAttributeConfigurationFile, + request_deserializer=niscope__pb2.ImportAttributeConfigurationFileRequest.FromString, + response_serializer=niscope__pb2.ImportAttributeConfigurationFileResponse.SerializeToString, + ), + 'ExportAttributeConfigurationFile': grpc.unary_unary_rpc_method_handler( + servicer.ExportAttributeConfigurationFile, + request_deserializer=niscope__pb2.ExportAttributeConfigurationFileRequest.FromString, + response_serializer=niscope__pb2.ExportAttributeConfigurationFileResponse.SerializeToString, + ), + 'GetScalingCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.GetScalingCoefficients, + request_deserializer=niscope__pb2.GetScalingCoefficientsRequest.FromString, + response_serializer=niscope__pb2.GetScalingCoefficientsResponse.SerializeToString, + ), + 'GetNormalizationCoefficients': grpc.unary_unary_rpc_method_handler( + servicer.GetNormalizationCoefficients, + request_deserializer=niscope__pb2.GetNormalizationCoefficientsRequest.FromString, + response_serializer=niscope__pb2.GetNormalizationCoefficientsResponse.SerializeToString, + ), + 'GetStreamEndpointHandle': grpc.unary_unary_rpc_method_handler( + servicer.GetStreamEndpointHandle, + request_deserializer=niscope__pb2.GetStreamEndpointHandleRequest.FromString, + response_serializer=niscope__pb2.GetStreamEndpointHandleResponse.SerializeToString, + ), + 'CalFetchDate': grpc.unary_unary_rpc_method_handler( + servicer.CalFetchDate, + request_deserializer=niscope__pb2.CalFetchDateRequest.FromString, + response_serializer=niscope__pb2.CalFetchDateResponse.SerializeToString, + ), + 'CalFetchTemperature': grpc.unary_unary_rpc_method_handler( + servicer.CalFetchTemperature, + request_deserializer=niscope__pb2.CalFetchTemperatureRequest.FromString, + response_serializer=niscope__pb2.CalFetchTemperatureResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'niscope_grpc.NiScope', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiScope(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Init', + niscope__pb2.InitRequest.SerializeToString, + niscope__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/InitWithOptions', + niscope__pb2.InitWithOptionsRequest.SerializeToString, + niscope__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Close', + niscope__pb2.CloseRequest.SerializeToString, + niscope__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AutoSetup(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AutoSetup', + niscope__pb2.AutoSetupRequest.SerializeToString, + niscope__pb2.AutoSetupResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureVertical(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureVertical', + niscope__pb2.ConfigureVerticalRequest.SerializeToString, + niscope__pb2.ConfigureVerticalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureChanCharacteristics(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureChanCharacteristics', + niscope__pb2.ConfigureChanCharacteristicsRequest.SerializeToString, + niscope__pb2.ConfigureChanCharacteristicsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureHorizontalTiming(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureHorizontalTiming', + niscope__pb2.ConfigureHorizontalTimingRequest.SerializeToString, + niscope__pb2.ConfigureHorizontalTimingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureClock(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureClock', + niscope__pb2.ConfigureClockRequest.SerializeToString, + niscope__pb2.ConfigureClockResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ExportSignal', + niscope__pb2.ExportSignalRequest.SerializeToString, + niscope__pb2.ExportSignalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AdjustSampleClockRelativeDelay(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AdjustSampleClockRelativeDelay', + niscope__pb2.AdjustSampleClockRelativeDelayRequest.SerializeToString, + niscope__pb2.AdjustSampleClockRelativeDelayResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerEdge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerEdge', + niscope__pb2.ConfigureTriggerEdgeRequest.SerializeToString, + niscope__pb2.ConfigureTriggerEdgeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerGlitch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerGlitch', + niscope__pb2.ConfigureTriggerGlitchRequest.SerializeToString, + niscope__pb2.ConfigureTriggerGlitchResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerHysteresis(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerHysteresis', + niscope__pb2.ConfigureTriggerHysteresisRequest.SerializeToString, + niscope__pb2.ConfigureTriggerHysteresisResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerWindow(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerWindow', + niscope__pb2.ConfigureTriggerWindowRequest.SerializeToString, + niscope__pb2.ConfigureTriggerWindowResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerSoftware(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerSoftware', + niscope__pb2.ConfigureTriggerSoftwareRequest.SerializeToString, + niscope__pb2.ConfigureTriggerSoftwareResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareTriggerEdge(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SendSoftwareTriggerEdge', + niscope__pb2.SendSoftwareTriggerEdgeRequest.SerializeToString, + niscope__pb2.SendSoftwareTriggerEdgeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerImmediate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerImmediate', + niscope__pb2.ConfigureTriggerImmediateRequest.SerializeToString, + niscope__pb2.ConfigureTriggerImmediateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerRunt(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerRunt', + niscope__pb2.ConfigureTriggerRuntRequest.SerializeToString, + niscope__pb2.ConfigureTriggerRuntResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerDigital(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerDigital', + niscope__pb2.ConfigureTriggerDigitalRequest.SerializeToString, + niscope__pb2.ConfigureTriggerDigitalResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerVideo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerVideo', + niscope__pb2.ConfigureTriggerVideoRequest.SerializeToString, + niscope__pb2.ConfigureTriggerVideoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureTriggerWidth(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureTriggerWidth', + niscope__pb2.ConfigureTriggerWidthRequest.SerializeToString, + niscope__pb2.ConfigureTriggerWidthResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureEqualizationFilterCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureEqualizationFilterCoefficients', + niscope__pb2.ConfigureEqualizationFilterCoefficientsRequest.SerializeToString, + niscope__pb2.ConfigureEqualizationFilterCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetEqualizationFilterCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetEqualizationFilterCoefficients', + niscope__pb2.GetEqualizationFilterCoefficientsRequest.SerializeToString, + niscope__pb2.GetEqualizationFilterCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetFrequencyResponse(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetFrequencyResponse', + niscope__pb2.GetFrequencyResponseRequest.SerializeToString, + niscope__pb2.GetFrequencyResponseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureAcquisition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ConfigureAcquisition', + niscope__pb2.ConfigureAcquisitionRequest.SerializeToString, + niscope__pb2.ConfigureAcquisitionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitiateAcquisition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/InitiateAcquisition', + niscope__pb2.InitiateAcquisitionRequest.SerializeToString, + niscope__pb2.InitiateAcquisitionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Abort(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Abort', + niscope__pb2.AbortRequest.SerializeToString, + niscope__pb2.AbortResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Commit', + niscope__pb2.CommitRequest.SerializeToString, + niscope__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Read(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Read', + niscope__pb2.ReadRequest.SerializeToString, + niscope__pb2.ReadResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Fetch(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Fetch', + niscope__pb2.FetchRequest.SerializeToString, + niscope__pb2.FetchResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchBinary8(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchBinary8', + niscope__pb2.FetchBinary8Request.SerializeToString, + niscope__pb2.FetchBinary8Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchBinary16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchBinary16', + niscope__pb2.FetchBinary16Request.SerializeToString, + niscope__pb2.FetchBinary16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchBinary32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchBinary32', + niscope__pb2.FetchBinary32Request.SerializeToString, + niscope__pb2.FetchBinary32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchComplex(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchComplex', + niscope__pb2.FetchComplexRequest.SerializeToString, + niscope__pb2.FetchComplexResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchComplexBinary16(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchComplexBinary16', + niscope__pb2.FetchComplexBinary16Request.SerializeToString, + niscope__pb2.FetchComplexBinary16Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AcquisitionStatus(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AcquisitionStatus', + niscope__pb2.AcquisitionStatusRequest.SerializeToString, + niscope__pb2.AcquisitionStatusResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ActualNumWfms(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ActualNumWfms', + niscope__pb2.ActualNumWfmsRequest.SerializeToString, + niscope__pb2.ActualNumWfmsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ActualMeasWfmSize(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ActualMeasWfmSize', + niscope__pb2.ActualMeasWfmSizeRequest.SerializeToString, + niscope__pb2.ActualMeasWfmSizeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ActualRecordLength(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ActualRecordLength', + niscope__pb2.ActualRecordLengthRequest.SerializeToString, + niscope__pb2.ActualRecordLengthResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SampleRate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SampleRate', + niscope__pb2.SampleRateRequest.SerializeToString, + niscope__pb2.SampleRateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SampleMode(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SampleMode', + niscope__pb2.SampleModeRequest.SerializeToString, + niscope__pb2.SampleModeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddWaveformProcessing(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/AddWaveformProcessing', + niscope__pb2.AddWaveformProcessingRequest.SerializeToString, + niscope__pb2.AddWaveformProcessingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearWaveformProcessing(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ClearWaveformProcessing', + niscope__pb2.ClearWaveformProcessingRequest.SerializeToString, + niscope__pb2.ClearWaveformProcessingResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearWaveformMeasurementStats(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ClearWaveformMeasurementStats', + niscope__pb2.ClearWaveformMeasurementStatsRequest.SerializeToString, + niscope__pb2.ClearWaveformMeasurementStatsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReadMeasurement(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ReadMeasurement', + niscope__pb2.ReadMeasurementRequest.SerializeToString, + niscope__pb2.ReadMeasurementResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchMeasurement(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchMeasurement', + niscope__pb2.FetchMeasurementRequest.SerializeToString, + niscope__pb2.FetchMeasurementResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchMeasurementStats(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchMeasurementStats', + niscope__pb2.FetchMeasurementStatsRequest.SerializeToString, + niscope__pb2.FetchMeasurementStatsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchArrayMeasurement(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/FetchArrayMeasurement', + niscope__pb2.FetchArrayMeasurementRequest.SerializeToString, + niscope__pb2.FetchArrayMeasurementResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Reset', + niscope__pb2.ResetRequest.SerializeToString, + niscope__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SelfTest', + niscope__pb2.SelfTestRequest.SerializeToString, + niscope__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/Disable', + niscope__pb2.DisableRequest.SerializeToString, + niscope__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetDevice(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ResetDevice', + niscope__pb2.ResetDeviceRequest.SerializeToString, + niscope__pb2.ResetDeviceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CalSelfCalibrate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CalSelfCalibrate', + niscope__pb2.CalSelfCalibrateRequest.SerializeToString, + niscope__pb2.CalSelfCalibrateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/RevisionQuery', + niscope__pb2.RevisionQueryRequest.SerializeToString, + niscope__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ProbeCompensationSignalStart(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ProbeCompensationSignalStart', + niscope__pb2.ProbeCompensationSignalStartRequest.SerializeToString, + niscope__pb2.ProbeCompensationSignalStartResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ProbeCompensationSignalStop(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ProbeCompensationSignalStop', + niscope__pb2.ProbeCompensationSignalStopRequest.SerializeToString, + niscope__pb2.ProbeCompensationSignalStopResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CableSenseSignalStart(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CableSenseSignalStart', + niscope__pb2.CableSenseSignalStartRequest.SerializeToString, + niscope__pb2.CableSenseSignalStartResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CableSenseSignalStop(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CableSenseSignalStop', + niscope__pb2.CableSenseSignalStopRequest.SerializeToString, + niscope__pb2.CableSenseSignalStopResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetChannelName', + niscope__pb2.GetChannelNameRequest.SerializeToString, + niscope__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelNameFromString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetChannelNameFromString', + niscope__pb2.GetChannelNameFromStringRequest.SerializeToString, + niscope__pb2.GetChannelNameFromStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorHandler(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ErrorHandler', + niscope__pb2.ErrorHandlerRequest.SerializeToString, + niscope__pb2.ErrorHandlerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetError', + niscope__pb2.GetErrorRequest.SerializeToString, + niscope__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetErrorMessage', + niscope__pb2.GetErrorMessageRequest.SerializeToString, + niscope__pb2.GetErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViInt32', + niscope__pb2.GetAttributeViInt32Request.SerializeToString, + niscope__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViInt32', + niscope__pb2.SetAttributeViInt32Request.SerializeToString, + niscope__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViInt32', + niscope__pb2.CheckAttributeViInt32Request.SerializeToString, + niscope__pb2.CheckAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViInt64', + niscope__pb2.GetAttributeViInt64Request.SerializeToString, + niscope__pb2.GetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViInt64', + niscope__pb2.SetAttributeViInt64Request.SerializeToString, + niscope__pb2.SetAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViInt64', + niscope__pb2.CheckAttributeViInt64Request.SerializeToString, + niscope__pb2.CheckAttributeViInt64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViReal64', + niscope__pb2.GetAttributeViReal64Request.SerializeToString, + niscope__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViReal64', + niscope__pb2.SetAttributeViReal64Request.SerializeToString, + niscope__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViReal64', + niscope__pb2.CheckAttributeViReal64Request.SerializeToString, + niscope__pb2.CheckAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViString', + niscope__pb2.GetAttributeViStringRequest.SerializeToString, + niscope__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViString', + niscope__pb2.SetAttributeViStringRequest.SerializeToString, + niscope__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViString', + niscope__pb2.CheckAttributeViStringRequest.SerializeToString, + niscope__pb2.CheckAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViSession', + niscope__pb2.GetAttributeViSessionRequest.SerializeToString, + niscope__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViSession', + niscope__pb2.SetAttributeViSessionRequest.SerializeToString, + niscope__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViSession', + niscope__pb2.CheckAttributeViSessionRequest.SerializeToString, + niscope__pb2.CheckAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetAttributeViBoolean', + niscope__pb2.GetAttributeViBooleanRequest.SerializeToString, + niscope__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/SetAttributeViBoolean', + niscope__pb2.SetAttributeViBooleanRequest.SerializeToString, + niscope__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CheckAttributeViBoolean', + niscope__pb2.CheckAttributeViBooleanRequest.SerializeToString, + niscope__pb2.CheckAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ImportAttributeConfigurationBuffer', + niscope__pb2.ImportAttributeConfigurationBufferRequest.SerializeToString, + niscope__pb2.ImportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationBuffer(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ExportAttributeConfigurationBuffer', + niscope__pb2.ExportAttributeConfigurationBufferRequest.SerializeToString, + niscope__pb2.ExportAttributeConfigurationBufferResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ImportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ImportAttributeConfigurationFile', + niscope__pb2.ImportAttributeConfigurationFileRequest.SerializeToString, + niscope__pb2.ImportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ExportAttributeConfigurationFile(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/ExportAttributeConfigurationFile', + niscope__pb2.ExportAttributeConfigurationFileRequest.SerializeToString, + niscope__pb2.ExportAttributeConfigurationFileResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetScalingCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetScalingCoefficients', + niscope__pb2.GetScalingCoefficientsRequest.SerializeToString, + niscope__pb2.GetScalingCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetNormalizationCoefficients(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetNormalizationCoefficients', + niscope__pb2.GetNormalizationCoefficientsRequest.SerializeToString, + niscope__pb2.GetNormalizationCoefficientsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetStreamEndpointHandle(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/GetStreamEndpointHandle', + niscope__pb2.GetStreamEndpointHandleRequest.SerializeToString, + niscope__pb2.GetStreamEndpointHandleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CalFetchDate(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CalFetchDate', + niscope__pb2.CalFetchDateRequest.SerializeToString, + niscope__pb2.CalFetchDateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CalFetchTemperature(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niscope_grpc.NiScope/CalFetchTemperature', + niscope__pb2.CalFetchTemperatureRequest.SerializeToString, + niscope__pb2.CalFetchTemperatureResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/niscope/niscope/session.py b/generated/niscope/niscope/session.py new file mode 100644 index 0000000000..641be56f29 --- /dev/null +++ b/generated/niscope/niscope/session.py @@ -0,0 +1,5224 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import niscope._attributes as _attributes +import niscope._converters as _converters +import niscope._library_interpreter as _library_interpreter +import niscope.enums as enums +import niscope.errors as errors + +import niscope.waveform_info as waveform_info # noqa: F401 + +import niscope.measurement_stats as measurement_stats # noqa: F401 + +import hightime +import nitclk + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Acquisition(object): + def __init__(self, session): + self._session = session + self._session._initiate_acquisition() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-SCOPE sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + absolute_sample_clock_offset = _attributes.AttributeViReal64TimeDeltaSeconds(1150374) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Gets or sets the absolute time offset of the sample clock relative to + the reference clock in terms of seconds. + + Note: + Configures the sample clock relationship with respect to the reference + clock. This parameter is factored into NI-TClk adjustments and is + typically used to improve the repeatability of NI-TClk Synchronization. + When this parameter is read, the currently programmed value is returned. + The range of the absolute sample clock offset is [-.5 sample clock + periods, .5 sample clock periods]. The default absolute sample clock + offset is 0s. + ''' + acquisition_start_time = _attributes.AttributeViReal64TimeDeltaSeconds(1250109) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the length of time from the trigger event to the first point in the waveform record in seconds. If the value is positive, the first point in the waveform record occurs after the trigger event (same as specifying trigger_delay_time). If the value is negative, the first point in the waveform record occurs before the trigger event (same as specifying horz_record_ref_position). + ''' + acquisition_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.AcquisitionType, 1250101) + '''Type: enums.AcquisitionType + + Specifies how the digitizer acquires data and fills the waveform record. + ''' + acq_arm_source = _attributes.AttributeViString(1150053) + '''Type: str + + Specifies the source the digitizer monitors for a start (acquisition arm) trigger. When the start trigger is received, the digitizer begins acquiring pretrigger samples. + Valid Values: + NISCOPE_VAL_IMMEDIATE ('VAL_IMMEDIATE') - Triggers immediately + NISCOPE_VAL_RTSI_0 ('VAL_RTSI_0') - RTSI 0 + NISCOPE_VAL_RTSI_1 ('VAL_RTSI_1') - RTSI 1 + NISCOPE_VAL_RTSI_2 ('VAL_RTSI_2') - RTSI 2 + NISCOPE_VAL_RTSI_3 ('VAL_RTSI_3') - RTSI 3 + NISCOPE_VAL_RTSI_4 ('VAL_RTSI_4') - RTSI 4 + NISCOPE_VAL_RTSI_5 ('VAL_RTSI_5') - RTSI 5 + NISCOPE_VAL_RTSI_6 ('VAL_RTSI_6') - RTSI 6 + NISCOPE_VAL_PFI_0 ('VAL_PFI_0') - PFI 0 + NISCOPE_VAL_PFI_1 ('VAL_PFI_1') - PFI 1 + NISCOPE_VAL_PFI_2 ('VAL_PFI_2') - PFI 2 + NISCOPE_VAL_PXI_STAR ('VAL_PXI_STAR') - PXI Star Trigger + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + advance_trigger_terminal_name = _attributes.AttributeViString(1150143) + '''Type: str + + Returns the fully qualified name for the Advance Trigger terminal. You can use this terminal as the source for another trigger. + ''' + adv_trig_src = _attributes.AttributeViString(1150094) + '''Type: str + + Specifies the source the digitizer monitors for an advance trigger. When the advance trigger is received, the digitizer begins acquiring pretrigger samples. + ''' + allow_more_records_than_memory = _attributes.AttributeViBoolean(1150068) + '''Type: bool + + Indicates whether more records can be configured with configure_horizontal_timing than fit in the onboard memory. If this property is set to True, it is necessary to fetch records while the acquisition is in progress. Eventually, some of the records will be overwritten. An error is returned from the fetch method if you attempt to fetch a record that has been overwritten. + ''' + arm_ref_trig_src = _attributes.AttributeViString(1150095) + '''Type: str + + Specifies the source the digitizer monitors for an arm reference trigger. When the arm reference trigger is received, the digitizer begins looking for a reference (stop) trigger from the user-configured trigger source. + ''' + backlog = _attributes.AttributeViReal64(1150084) + '''Type: float + + Returns the number of samples (points_done) that have been acquired but not fetched for the record specified by fetch_record_number. + ''' + bandpass_filter_enabled = _attributes.AttributeViBoolean(1150318) + '''Type: bool + + Enables the bandpass filter on the specificed channel. The default value is FALSE. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].bandpass_filter_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.bandpass_filter_enabled` + ''' + binary_sample_width = _attributes.AttributeViInt32(1150005) + '''Type: int + + Indicates the bit width of the binary data in the acquired waveform. Useful for determining which Binary Fetch method to use. Compare to resolution. + To configure the device to store samples with a lower resolution that the native, set this property to the desired binary width. + This can be useful for streaming at faster speeds at the cost of resolution. The least significant bits will be lost with this configuration. + Valid Values: 8, 16, 32 + ''' + cable_sense_mode = _attributes.AttributeEnum(_attributes.AttributeViReal64, enums.CableSenseMode, 1150138) + '''Type: enums.CableSenseMode + + Specifies whether and how the oscilloscope is configured to generate a CableSense signal on the specified channels when the CableSenseSignalStart method is called. + + Device-Specific Behavior: + PXIe-5160/5162 + - The value of this property must be identical across all channels whose input impedance is set to 50 ohms. + - If this property is set to a value other than CableSenseMode.DISABLED for any channel(s), the input impedance of all channels for which this property is set to CableSenseMode.DISABLED must be set to 1 M Ohm. + + +-----------------------+ + | **Supported Devices** | + +-----------------------+ + | PXIe-5110 | + +-----------------------+ + | PXIe-5111 | + +-----------------------+ + | PXIe-5113 | + +-----------------------+ + | PXIe-5160 | + +-----------------------+ + | PXIe-5162 | + +-----------------------+ + + Note: the input impedance of the channel(s) to convey the CableSense signal must be set to 50 ohms. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + cable_sense_signal_enable = _attributes.AttributeViBoolean(1150139) + '''Type: bool + + TBD + ''' + cable_sense_voltage = _attributes.AttributeViReal64(1150137) + '''Type: float + + Returns the voltage of the CableSense signal that is written to the EEPROM of the oscilloscope during factory calibration. + + +-----------------------+ + | **Supported Devices** | + +-----------------------+ + | PXIe-5110 | + +-----------------------+ + | PXIe-5111 | + +-----------------------+ + | PXIe-5113 | + +-----------------------+ + | PXIe-5160 | + +-----------------------+ + | PXIe-5162 | + +-----------------------+ + ''' + channel_count = _attributes.AttributeViInt32(1050203) + '''Type: int + + Indicates the number of channels that the specific instrument driver supports. + For channel-based properties, the IVI engine maintains a separate cache value for each channel. + ''' + channel_enabled = _attributes.AttributeViBoolean(1250005) + '''Type: bool + + Specifies whether the digitizer acquires a waveform for the channel. + Valid Values: + True (1) - Acquire data on this channel + False (0) - Don't acquire data on this channel + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].channel_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.channel_enabled` + ''' + channel_terminal_configuration = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TerminalConfiguration, 1150107) + '''Type: enums.TerminalConfiguration + + Specifies the terminal configuration for the channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].channel_terminal_configuration` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.channel_terminal_configuration` + ''' + data_transfer_block_size = _attributes.AttributeViInt32(1150316) + '''Type: int + + Specifies the maximum number of samples to transfer at one time from the device to host memory. Increasing this number should result in better fetching performance because the driver does not need to restart the transfers as often. However, increasing this number may also increase the amount of page-locked memory required from the system. + ''' + data_transfer_maximum_bandwidth = _attributes.AttributeViReal64(1150321) + '''Type: float + + This property specifies the maximum bandwidth that the device is allowed to consume. + ''' + data_transfer_preferred_packet_size = _attributes.AttributeViInt32(1150322) + '''Type: int + + This property specifies the size of (read request|memory write) data payload. Due to alignment of the data buffers, the hardware may not always generate a packet of this size. + ''' + device_temperature = _attributes.AttributeViReal64(1150086) + '''Type: float + + Returns the temperature of the device in degrees Celsius from the onboard sensor. + + Tip: + This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].device_temperature` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.device_temperature` + ''' + enabled_channels = _attributes.AttributeViString(1150140) + '''Type: str + + Returns a comma-separated list of the channels enabled for the session in ascending order. + + If no channels are enabled, this property returns an empty string, "". + If all channels are enabled, this property enumerates all of the channels. + + Because this property returns channels in ascending order, but the order in which you specify channels for the input is important, the value of this property may not necessarily reflect the order in which NI-SCOPE performs certain actions. + + Refer to Channel String Syntax in the NI High-Speed Digitizers Help for more information on the effects of channel order in NI-SCOPE. + ''' + enable_dc_restore = _attributes.AttributeViBoolean(1150093) + '''Type: bool + + Restores the video-triggered data retrieved by the digitizer to the video signal's zero reference point. + Valid Values: + True - Enable DC restore + False - Disable DC restore + ''' + enable_time_interleaved_sampling = _attributes.AttributeViBoolean(1150128) + '''Type: bool + + Specifies whether the digitizer acquires the waveform using multiple ADCs for the channel enabling a higher maximum real-time sampling rate. + Valid Values: + True (1) - Use multiple interleaved ADCs on this channel + False (0) - Use only this channel's ADC to acquire data for this channel + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].enable_time_interleaved_sampling` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.enable_time_interleaved_sampling` + ''' + end_of_acquisition_event_output_terminal = _attributes.AttributeViString(1150101) + '''Type: str + + Specifies the destination for the End of Acquisition Event. When this event is asserted, the digitizer has completed sampling for all records. + Consult your device documentation for a specific list of valid destinations. + ''' + end_of_acquisition_event_terminal_name = _attributes.AttributeViString(1150141) + '''Type: str + + Returns the fully qualified name for the End of Acquisition Event terminal. You can use this terminal as the source for a trigger. + ''' + end_of_record_event_output_terminal = _attributes.AttributeViString(1150099) + '''Type: str + + Specifies the destination for the End of Record Event. When this event is asserted, the digitizer has completed sampling for the current record. + Consult your device documentation for a specific list of valid destinations. + ''' + end_of_record_event_terminal_name = _attributes.AttributeViString(1150142) + '''Type: str + + Returns the fully qualified name for the End of Record Event terminal. You can use this terminal as the source for a trigger. + ''' + end_of_record_to_advance_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150366) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + End of Record to Advance Trigger Holdoff is the length of time (in + seconds) that a device waits between the completion of one record and + the acquisition of pre-trigger samples for the next record. During this + time, the acquisition engine state delays the transition to the Wait for + Advance Trigger state, and will not store samples in onboard memory, + accept an Advance Trigger, or trigger on the input signal.. + **Supported Devices**: NI 5185/5186 + ''' + equalization_filter_enabled = _attributes.AttributeViBoolean(1150313) + '''Type: bool + + Enables the onboard signal processing FIR block. This block is connected directly to the input signal. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].equalization_filter_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.equalization_filter_enabled` + ''' + equalization_num_coefficients = _attributes.AttributeViInt32(1150312) + '''Type: int + + Returns the number of coefficients that the FIR filter can accept. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. However, since this is a generic FIR filter any coefficients are valid. Coefficients should be between +1 and -1 in value. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].equalization_num_coefficients` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.equalization_num_coefficients` + ''' + exported_advance_trigger_output_terminal = _attributes.AttributeViString(1150109) + '''Type: str + + Specifies the destination to export the advance trigger. When the advance trigger is received, the digitizer begins acquiring samples for the Nth record. + Consult your device documentation for a specific list of valid destinations. + ''' + exported_ref_trigger_output_terminal = _attributes.AttributeViString(1150098) + '''Type: str + + Specifies the destination export for the reference (stop) trigger. + Consult your device documentation for a specific list of valid destinations. + ''' + exported_start_trigger_output_terminal = _attributes.AttributeViString(1150097) + '''Type: str + + Specifies the destination to export the Start trigger. When the start trigger is received, the digitizer begins acquiring samples. + Consult your device documentation for a specific list of valid destinations. + ''' + _fetch_meas_num_samples = _attributes.AttributeViInt32(1150081) + '''Type: int + + Number of samples to fetch when performing a measurement. Use -1 to fetch the actual record length. + Default Value: -1 + ''' + _fetch_num_records = _attributes.AttributeViInt32(1150080) + '''Type: int + + Number of records to fetch. Use -1 to fetch all configured records. + Default Value: -1 + ''' + _fetch_offset = _attributes.AttributeViInt32(1150078) + '''Type: int + + Offset in samples to start fetching data within each record. The offset is applied relative to fetch_relative_to.The offset can be positive or negative. + Default Value: 0 + ''' + _fetch_record_number = _attributes.AttributeViInt32(1150079) + '''Type: int + + Zero-based index of the first record to fetch. Use NISCOPE_FETCH_NUM_RECORDS to set the number of records to fetch. + Default Value: 0. + ''' + _fetch_relative_to = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FetchRelativeTo, 1150077) + '''Type: enums.FetchRelativeTo + + Position to start fetching within one record. + Default Value: FetchRelativeTo.PRETRIGGER + ''' + flex_fir_antialias_filter_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FlexFIRAntialiasFilterType, 1150271) + '''Type: enums.FlexFIRAntialiasFilterType + + The NI 5922 flexible-resolution digitizer uses an onboard FIR lowpass antialias filter. + Use this property to select from several types of filters to achieve desired filtering characteristics. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].flex_fir_antialias_filter_type` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.flex_fir_antialias_filter_type` + ''' + fpga_bitfile_path = _attributes.AttributeViString(1150375) + '''Type: str + + Gets the absolute file path to the bitfile loaded on the FPGA. + + Note: Gets the absolute file path to the bitfile loaded on the FPGA. + ''' + glitch_condition = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.GlitchCondition, 1250403) + '''Type: enums.GlitchCondition + + Specifies whether the oscilloscope triggers on pulses of duration less than or greater than the value specified by the glitch_width property. + ''' + glitch_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.GlitchPolarity, 1250402) + '''Type: enums.GlitchPolarity + + Specifies the polarity of pulses that trigger the oscilloscope for glitch triggering. + ''' + glitch_width = _attributes.AttributeViReal64(1250401) + '''Type: float + + Specifies the glitch duration, in seconds. + + The oscilloscope triggers when it detects of pulse of duration either less than or greater than this value depending on the value of the glitch_condition property. + ''' + high_pass_filter_frequency = _attributes.AttributeViReal64(1150377) + '''Type: float + + Specifies the frequency for the highpass filter in Hz. The device uses + one of the valid values listed below. If an invalid value is specified, + no coercion occurs. The default value is 0. + **(PXIe-5164) Valid Values:** + 0 90 450 + **Related topics:** + `Digital Filtering `__ + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].high_pass_filter_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.high_pass_filter_frequency` + ''' + horz_enforce_realtime = _attributes.AttributeViBoolean(1150004) + '''Type: bool + + Indicates whether the digitizer enforces real-time measurements or allows equivalent-time measurements. + ''' + horz_min_num_pts = _attributes.AttributeViInt32(1250009) + '''Type: int + + Specifies the minimum number of points you require in the waveform record for each channel. NI-SCOPE uses the value you specify to configure the record length that the digitizer uses for waveform acquisition. horz_record_length returns the actual record length. + Valid Values: 1 - available onboard memory + ''' + horz_num_records = _attributes.AttributeViInt32(1150001) + '''Type: int + + Specifies the number of records to acquire. Can be used for multi-record acquisition and single-record acquisitions. Setting this to 1 indicates a single-record acquisition. + ''' + horz_record_length = _attributes.AttributeViInt32(1250008) + '''Type: int + + Returns the actual number of points the digitizer acquires for each channel. The value is equal to or greater than the minimum number of points you specify with horz_min_num_pts. + Allocate a ViReal64 array of this size or greater to pass as the WaveformArray parameter of the Read and Fetch methods. This property is only valid after a call to the one of the Configure Horizontal methods. + ''' + horz_record_ref_position = _attributes.AttributeViReal64(1250011) + '''Type: float + + Specifies the position of the Reference Event in the waveform record. When the digitizer detects a trigger, it waits the length of time the trigger_delay_time property specifies. The event that occurs when the delay time elapses is the Reference Event. The Reference Event is relative to the start of the record and is a percentage of the record length. For example, the value 50.0 corresponds to the center of the waveform record and 0.0 corresponds to the first element in the waveform record. + Valid Values: 0.0 - 100.0 + ''' + horz_sample_rate = _attributes.AttributeViReal64(1250010) + '''Type: float + + Returns the effective sample rate using the current configuration. The units are samples per second. This property is only valid after a call to the one of the Configure Horizontal methods. + Units: Hertz (Samples / Second) + ''' + horz_time_per_record = _attributes.AttributeViReal64TimeDeltaSeconds(1250007) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the length of time that corresponds to the record length. + Units: Seconds + ''' + input_clock_source = _attributes.AttributeViString(1150002) + '''Type: str + + Specifies the input source for the PLL reference clock (the 1 MHz to 20 MHz clock on the NI 5122, the 10 MHz clock for the NI 5112/5620/5621/5911) to which the digitizer will be phase-locked; for the NI 5102, this is the source of the board clock. + ''' + input_impedance = _attributes.AttributeViReal64(1250103) + '''Type: float + + Specifies the input impedance for the channel in Ohms. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].input_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.input_impedance` + ''' + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + A string that contains the firmware revision information for the instrument you are currently using. + + Tip: + This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].instrument_firmware_revision` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.instrument_firmware_revision` + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + A string that contains the name of the instrument manufacturer. + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + A string that contains the model number of the current instrument. + ''' + interleaving_offset_correction_enabled = _attributes.AttributeViBoolean(1150376) + '''Type: bool + + Enables the interleaving offset correction on the specified channel. The + default value is TRUE. + **Related topics:** + `Timed Interleaved + Sampling `__ + + Note: If disabled, warranted specifications are not guaranteed. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].interleaving_offset_correction_enabled` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.interleaving_offset_correction_enabled` + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Indicates the resource descriptor the driver uses to identify the physical device. If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. + If you initialize the instrument driver with the resource descriptor, this property contains that value.You can pass a logical name to Init or __init__. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + is_probe_comp_on = _attributes.AttributeViBoolean(1150066) + '''Type: bool + + Tip: + This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].is_probe_comp_on` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.is_probe_comp_on` + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + A string containing the logical name you specified when opening the current IVI session. You can pass a logical name to Init or __init__. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + master_enable = _attributes.AttributeViBoolean(1150008) + '''Type: bool + + Specifies whether you want the device to be a master or a slave. The master typically originates the trigger signal and clock sync pulse. For a standalone device, set this property to False. + ''' + max_input_frequency = _attributes.AttributeViReal64(1250006) + '''Type: float + + Specifies the bandwidth of the channel. Express this value as the frequency at which the input circuitry attenuates the input signal by 3 dB. The units are hertz. + Defined Values: + NISCOPE_VAL_BANDWIDTH_FULL (-1.0) + NISCOPE_VAL_BANDWIDTH_DEVICE_DEFAULT (0.0) + NISCOPE_VAL_20MHZ_BANDWIDTH (20000000.0) + NISCOPE_VAL_100MHZ_BANDWIDTH (100000000.0) + NISCOPE_VAL_20MHZ_MAX_INPUT_FREQUENCY (20000000.0) + NISCOPE_VAL_100MHZ_MAX_INPUT_FREQUENCY (100000000.0) + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_input_frequency` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.max_input_frequency` + ''' + max_real_time_sampling_rate = _attributes.AttributeViReal64(1150073) + '''Type: float + + Returns the maximum real time sample rate in Hz. + ''' + max_ris_rate = _attributes.AttributeViReal64(1150074) + '''Type: float + + Returns the maximum sample rate in RIS mode in Hz. + ''' + meas_array_gain = _attributes.AttributeViReal64(1150043) + '''Type: float + + Every element of an array is multiplied by this scalar value during the Array Gain measurement. Refer to ArrayMeasurement.ARRAY_GAIN for more information. + Default: 1.0 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_array_gain` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_array_gain` + ''' + meas_array_offset = _attributes.AttributeViReal64(1150044) + '''Type: float + + Every element of an array is added to this scalar value during the Array Offset measurement. Refer to ArrayMeasurement.ARRAY_OFFSET for more information. + Default: 0.0 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_array_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_array_offset` + ''' + meas_chan_high_ref_level = _attributes.AttributeViReal64(1150040) + '''Type: float + + Stores the high reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as meas_high_ref if you use this property to set various channels to different values. + Default: 90% + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_chan_high_ref_level` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_chan_high_ref_level` + ''' + meas_chan_low_ref_level = _attributes.AttributeViReal64(1150038) + '''Type: float + + Stores the low reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as meas_low_ref if you use this property to set various channels to different values. + Default: 10% + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_chan_low_ref_level` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_chan_low_ref_level` + ''' + meas_chan_mid_ref_level = _attributes.AttributeViReal64(1150039) + '''Type: float + + Stores the mid reference level used in many scalar measurements. Different channels may have different reference levels. Do not use the IVI-defined, nonchannel-based properties such as meas_mid_ref if you use this property to set various channels to different values. + Default: 50% + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_chan_mid_ref_level` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_chan_mid_ref_level` + ''' + meas_filter_center_freq = _attributes.AttributeViReal64(1150032) + '''Type: float + + The center frequency in hertz for filters of type bandpass and bandstop. The width of the filter is specified by meas_filter_width, where the cutoff frequencies are the center ± width. + Default: 1.0e6 Hz + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_center_freq` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_center_freq` + ''' + meas_filter_cutoff_freq = _attributes.AttributeViReal64(1150031) + '''Type: float + + Specifies the cutoff frequency in hertz for filters of type lowpass and highpass. The cutoff frequency definition varies depending on the filter. + Default: 1.0e6 Hz + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_cutoff_freq` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_cutoff_freq` + ''' + meas_filter_order = _attributes.AttributeViInt32(1150036) + '''Type: int + + Specifies the order of an IIR filter. All positive integers are valid. + Default: 2 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_order` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_order` + ''' + meas_filter_ripple = _attributes.AttributeViReal64(1150033) + '''Type: float + + Specifies the amount of ripple in the passband in units of decibels (positive values). Used only for Chebyshev filters. The more ripple allowed gives a sharper cutoff for a given filter order. + Default: 0.1 dB + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_ripple` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_ripple` + ''' + meas_filter_taps = _attributes.AttributeViInt32(1150037) + '''Type: int + + Defines the number of taps (coefficients) for an FIR filter. + Default: 25 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_taps` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_taps` + ''' + meas_filter_transient_waveform_percent = _attributes.AttributeViReal64(1150034) + '''Type: float + + The percentage (0 - 100%) of the IIR filtered waveform to eliminate from the beginning of the waveform. This allows eliminating the transient portion of the waveform that is undefined due to the assumptions necessary at the boundary condition. + Default: 20.0% + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_transient_waveform_percent` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_transient_waveform_percent` + ''' + meas_filter_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FilterType, 1150035) + '''Type: enums.FilterType + + Specifies the type of filter, for both IIR and FIR filters. The allowed values are the following: + · NISCOPE_VAL_MEAS_LOWPASS + · NISCOPE_VAL_MEAS_HIGHPASS + · NISCOPE_VAL_MEAS_BANDPASS + · NISCOPE_VAL_MEAS_BANDSTOP + Default: NISCOPE_VAL_MEAS_LOWPASS + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_type` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_type` + ''' + meas_filter_width = _attributes.AttributeViReal64(1150041) + '''Type: float + + Specifies the width of bandpass and bandstop type filters in hertz. The cutoff frequencies occur at meas_filter_center_freq ± one-half width. + Default: 1.0e3 Hz + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_filter_width` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_filter_width` + ''' + meas_fir_filter_window = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.FIRFilterWindow, 1150042) + '''Type: enums.FIRFilterWindow + + Specifies the FIR window type. The possible choices are: + FIRFilterWindow.NONE + ArrayMeasurement.HANNING_WINDOW + ArrayMeasurement.HAMMING_WINDOW + ArrayMeasurement.TRIANGLE_WINDOW + ArrayMeasurement.FLAT_TOP_WINDOW + ArrayMeasurement.BLACKMAN_WINDOW + The symmetric windows are applied to the FIR filter coefficients to limit passband ripple in FIR filters. + Default: FIRFilterWindow.NONE + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_fir_filter_window` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_fir_filter_window` + ''' + meas_high_ref = _attributes.AttributeViReal64(1250607) + meas_hysteresis_percent = _attributes.AttributeViReal64(1150019) + '''Type: float + + Digital hysteresis that is used in several of the scalar waveform measurements. This property specifies the percentage of the full-scale vertical range for the hysteresis window size. + Default: 2% + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_hysteresis_percent` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_hysteresis_percent` + ''' + meas_interpolation_sampling_factor = _attributes.AttributeViReal64(1150030) + '''Type: float + + The new number of points for polynomial interpolation is the sampling factor times the input number of points. For example, if you acquire 1,000 points with the digitizer and set this property to 2.5, calling FetchWaveformMeasurementArray with the ArrayMeasurement.POLYNOMIAL_INTERPOLATION measurement resamples the waveform to 2,500 points. + Default: 2.0 + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_interpolation_sampling_factor` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_interpolation_sampling_factor` + ''' + meas_last_acq_histogram_size = _attributes.AttributeViInt32(1150020) + '''Type: int + + Specifies the size (that is, the number of bins) in the last acquisition histogram. This histogram is used to determine several scalar measurements, most importantly voltage low and voltage high. + Default: 256 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_last_acq_histogram_size` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_last_acq_histogram_size` + ''' + meas_low_ref = _attributes.AttributeViReal64(1250608) + meas_mid_ref = _attributes.AttributeViReal64(1250609) + meas_other_channel = _attributes.AttributeViStringRepeatedCapability(1150018) + '''Type: str or int + + Specifies the second channel for two-channel measurements, such as ArrayMeasurement.ADD_CHANNELS. If processing steps are registered with this channel, the processing is done before the waveform is used in a two-channel measurement. + Default: '0' + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_other_channel` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_other_channel` + ''' + meas_percentage_method = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.PercentageMethod, 1150045) + '''Type: enums.PercentageMethod + + Specifies the method used to map percentage reference units to voltages for the reference. Possible values are: + NISCOPE_VAL_MEAS_LOW_HIGH + NISCOPE_VAL_MEAS_MIN_MAX + NISCOPE_VAL_MEAS_BASE_TOP + Default: NISCOPE_VAL_MEAS_BASE_TOP + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_percentage_method` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_percentage_method` + ''' + meas_polynomial_interpolation_order = _attributes.AttributeViInt32(1150029) + '''Type: int + + Specifies the polynomial order used for the polynomial interpolation measurement. For example, an order of 1 is linear interpolation whereas an order of 2 specifies parabolic interpolation. Any positive integer is valid. + Default: 1 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_polynomial_interpolation_order` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_polynomial_interpolation_order` + ''' + meas_ref_level_units = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RefLevelUnits, 1150016) + '''Type: enums.RefLevelUnits + + Specifies the units of the reference levels. + NISCOPE_VAL_MEAS_VOLTAGE--Specifies that the reference levels are given in units of volts + NISCOPE_VAL_MEAS_PERCENTAGE--Percentage units, where the measurements voltage low and voltage high represent 0% and 100%, respectively. + Default: NISCOPE_VAL_MEAS_PERCENTAGE + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_ref_level_units` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_ref_level_units` + ''' + meas_time_histogram_high_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150028) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the highest time value included in the multiple acquisition time histogram. The units are always seconds. + Default: 5.0e-4 seconds + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_time` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_high_time` + ''' + meas_time_histogram_high_volts = _attributes.AttributeViReal64(1150026) + '''Type: float + + Specifies the highest voltage value included in the multiple-acquisition time histogram. The units are always volts. + Default: 10.0 V + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_high_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_high_volts` + ''' + meas_time_histogram_low_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150027) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the lowest time value included in the multiple-acquisition time histogram. The units are always seconds. + Default: -5.0e-4 seconds + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_time` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_low_time` + ''' + meas_time_histogram_low_volts = _attributes.AttributeViReal64(1150025) + '''Type: float + + Specifies the lowest voltage value included in the multiple acquisition time histogram. The units are always volts. + Default: -10.0 V + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_low_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_low_volts` + ''' + meas_time_histogram_size = _attributes.AttributeViInt32(1150024) + '''Type: int + + Determines the multiple acquisition voltage histogram size. The size is set during the first call to a time histogram measurement after clearing the measurement history with clear_waveform_measurement_stats. + Default: 256 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_time_histogram_size` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_time_histogram_size` + ''' + meas_voltage_histogram_high_volts = _attributes.AttributeViReal64(1150023) + '''Type: float + + Specifies the highest voltage value included in the multiple acquisition voltage histogram. The units are always volts. + Default: 10.0 V + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_high_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_voltage_histogram_high_volts` + ''' + meas_voltage_histogram_low_volts = _attributes.AttributeViReal64(1150022) + '''Type: float + + Specifies the lowest voltage value included in the multiple-acquisition voltage histogram. The units are always volts. + Default: -10.0 V + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_low_volts` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_voltage_histogram_low_volts` + ''' + meas_voltage_histogram_size = _attributes.AttributeViInt32(1150021) + '''Type: int + + Determines the multiple acquisition voltage histogram size. The size is set the first time a voltage histogram measurement is called after clearing the measurement history with the method clear_waveform_measurement_stats. + Default: 256 + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].meas_voltage_histogram_size` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.meas_voltage_histogram_size` + ''' + min_sample_rate = _attributes.AttributeViReal64(1150009) + '''Type: float + + Specify the sampling rate for the acquisition in Samples per second. + Valid Values: + The combination of sampling rate and min record length must allow the digitizer to sample at a valid sampling rate for the acquisition type specified in ConfigureAcquisition and not require more memory than the onboard memory module allows. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + onboard_memory_size = _attributes.AttributeViInt32(1150069) + '''Type: int + + Returns the total combined amount of onboard memory for all channels in bytes. + + Tip: + This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].onboard_memory_size` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.onboard_memory_size` + ''' + output_clock_source = _attributes.AttributeViString(1150003) + '''Type: str + + Specifies the output source for the 10 MHz clock to which another digitizer's sample clock can be phased-locked. + ''' + pll_lock_status = _attributes.AttributeViBoolean(1151303) + '''Type: bool + + If TRUE, the PLL has remained locked to the external reference clock since it was last checked. If FALSE, the PLL has become unlocked from the external reference clock since it was last checked. + + Tip: + This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].pll_lock_status` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.pll_lock_status` + ''' + points_done = _attributes.AttributeViReal64(1150082) + '''Type: float + + Actual number of samples acquired in the record specified by fetch_record_number from the fetch_relative_to and fetch_offset properties. + ''' + poll_interval = _attributes.AttributeViInt32(1150100) + '''Type: int + + Specifies the poll interval in milliseconds to use during RIS acquisitions to check whether the acquisition is complete. + ''' + probe_attenuation = _attributes.AttributeViReal64(1250004) + '''Type: float + + Specifies the probe attenuation for the input channel. For example, for a 10:1 probe, set this property to 10.0. + Valid Values: + Any positive real number. Typical values are 1, 10, and 100. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].probe_attenuation` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.probe_attenuation` + ''' + ready_for_advance_event_output_terminal = _attributes.AttributeViString(1150112) + '''Type: str + + Specifies the destination for the Ready for Advance Event. When this event is asserted, the digitizer is ready to receive an advance trigger. + Consult your device documentation for a specific list of valid destinations. + ''' + ready_for_advance_event_terminal_name = _attributes.AttributeViString(1150146) + '''Type: str + + Returns the fully qualified name for the Ready for Advance Event terminal. You can use this terminal as the source for a trigger. + ''' + ready_for_ref_event_output_terminal = _attributes.AttributeViString(1150111) + '''Type: str + + Specifies the destination for the Ready for Reference Event. When this event is asserted, the digitizer is ready to receive a reference trigger. + Consult your device documentation for a specific list of valid destinations. + ''' + ready_for_ref_event_terminal_name = _attributes.AttributeViString(1150147) + '''Type: str + + Returns the fully qualified name for the Ready for Reference Event terminal. You can use this terminal as the source for a trigger. + ''' + ready_for_start_event_output_terminal = _attributes.AttributeViString(1150110) + '''Type: str + + Specifies the destination for the Ready for Start Event. When this event is asserted, the digitizer is ready to receive a start trigger. + Consult your device documentation for a specific list of valid destinations. + ''' + ready_for_start_event_terminal_name = _attributes.AttributeViString(1150148) + '''Type: str + + Returns the fully qualified name for the Ready for Start Event terminal. You can use this terminal as the source for a trigger. + ''' + records_done = _attributes.AttributeViInt32(1150083) + '''Type: int + + Specifies the number of records that have been completely acquired. + ''' + record_arm_source = _attributes.AttributeViString(1150065) + '''Type: str + + Specifies the record arm source. + ''' + ref_clk_rate = _attributes.AttributeViReal64(1150090) + '''Type: float + + If input_clock_source is an external source, this property specifies the frequency of the input, or reference clock, to which the internal sample clock timebase is synchronized. The frequency is in hertz. + ''' + ref_trigger_detector_location = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RefTriggerDetectorLocation, 1150314) + '''Type: enums.RefTriggerDetectorLocation + + Indicates which analog compare circuitry to use on the device. + ''' + ref_trigger_minimum_quiet_time = _attributes.AttributeViReal64TimeDeltaSeconds(1150315) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + The amount of time the trigger circuit must not detect a signal above the trigger level before the trigger is armed. This property is useful for triggering at the beginning and not in the middle of signal bursts. + ''' + ref_trigger_terminal_name = _attributes.AttributeViString(1150144) + '''Type: str + + Returns the fully qualified name for the Reference Trigger terminal. You can use this terminal as the source for another trigger. + ''' + ref_trig_tdc_enable = _attributes.AttributeViBoolean(1150096) + '''Type: bool + + This property controls whether the TDC is used to compute an accurate trigger. + ''' + resolution = _attributes.AttributeViInt32(1150102) + '''Type: int + + Indicates the bit width of valid data (as opposed to padding bits) in the acquired waveform. Compare to binary_sample_width. + ''' + ris_in_auto_setup_enable = _attributes.AttributeViBoolean(1150106) + '''Type: bool + + Indicates whether the digitizer should use RIS sample rates when searching for a frequency in autosetup. + Valid Values: + True (1) - Use RIS sample rates in autosetup + False (0) - Do not use RIS sample rates in autosetup + ''' + ris_method = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RISMethod, 1150071) + '''Type: enums.RISMethod + + Specifies the algorithm for random-interleaved sampling, which is used if the sample rate exceeds the value of max_real_time_sampling_rate. + ''' + ris_num_averages = _attributes.AttributeViInt32(1150070) + '''Type: int + + The number of averages for each bin in an RIS acquisition. The number of averages times the oversampling factor is the minimum number of real-time acquisitions necessary to reconstruct the RIS waveform. Averaging is useful in RIS because the trigger times are not evenly spaced, so adjacent points in the reconstructed waveform not be accurately spaced. By averaging, the errors in both time and voltage are smoothed. + ''' + runt_high_threshold = _attributes.AttributeViReal64(1250301) + '''Type: float + + Specifies the higher of two thresholds, in volts, that bound the vertical range to examine for runt pulses. + + The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the runt_polarity property for more information. + ''' + runt_low_threshold = _attributes.AttributeViReal64(1250302) + '''Type: float + + Specifies the lower of two thresholds, in volts, that bound the vertical range to examine for runt pulses. + + The runt threshold that causes the oscilloscope to trigger depends on the runt polarity you select. Refer to the runt_polarity property for more information. + ''' + runt_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RuntPolarity, 1250303) + '''Type: enums.RuntPolarity + + Specifies the polarity of pulses that trigger the oscilloscope for runt triggering. + + When set to RuntPolarity.POSITIVE, the oscilloscope triggers when the following conditions are met: + * The leading edge of a pulse crosses the runt_low_threshold in a positive direction; + * The trailing edge of the pulse crosses the runt_low_threshold in a negative direction; and + * No portion of the pulse crosses the runt_high_threshold. + + When set to RuntPolarity.NEGATIVE, the oscilloscope triggers when the following conditions are met: + * The leading edge of a pulse crosses the runt_high_threshold in a negative direction; + * The trailing edge of the pulse crosses the runt_high_threshold in a positive direction; and + * No portion of the pulse crosses the runt_low_threshold. + + When set to RuntPolarity.EITHER, the oscilloscope triggers in either case. + ''' + runt_time_condition = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.RuntTimeCondition, 1150132) + '''Type: enums.RuntTimeCondition + + Specifies whether runt triggers are time qualified, and if so, how the oscilloscope triggers in relation to the duration range bounded by the runt_time_low_limit and runt_time_high_limit properties. + ''' + runt_time_high_limit = _attributes.AttributeViReal64(1150134) + '''Type: float + + Specifies, in seconds, the high runt threshold time. + + This property sets the upper bound on the duration of runt pulses that may trigger the oscilloscope. The runt_time_condition property determines how the oscilloscope triggers in relation to the runt time limits. + ''' + runt_time_low_limit = _attributes.AttributeViReal64(1150133) + '''Type: float + + Specifies, in seconds, the low runt threshold time. + + This property sets the lower bound on the duration of runt pulses that may trigger the oscilloscope. The runt_time_condition property determines how the oscilloscope triggers in relation to the runt time limits. + ''' + sample_mode = _attributes.AttributeViInt32(1250106) + '''Type: int + + Indicates the sample mode the digitizer is currently using. + ''' + samp_clk_timebase_div = _attributes.AttributeViInt32(1150089) + '''Type: int + + If samp_clk_timebase_src is an external source, specifies the ratio between the sample clock timebase rate and the actual sample rate, which can be slower. + ''' + sample_clock_timebase_multiplier = _attributes.AttributeViInt32(1150367) + '''Type: int + + If samp_clk_timebase_src is an external source, this property specifies the ratio between the samp_clk_timebase_rate and the actual sample rate, which can be higher. This property can be used in conjunction with samp_clk_timebase_div. + Some devices use multiple ADCs to sample the same channel at an effective sample rate that is greater than the specified clock rate. When providing an external sample clock use this property to indicate when you want a higher sample rate. Valid values for this property vary by device and current configuration. + + **Related topics:** + `Sample Clock `__ + ''' + samp_clk_timebase_rate = _attributes.AttributeViReal64(1150088) + '''Type: float + + If samp_clk_timebase_src is an external source, specifies the frequency in hertz of the external clock used as the timebase source. + ''' + samp_clk_timebase_src = _attributes.AttributeViString(1150087) + '''Type: str + + Specifies the source of the sample clock timebase, which is the timebase used to control waveform sampling. The actual sample rate may be the timebase itself or a divided version of the timebase, depending on the min_sample_rate (for internal sources) or the samp_clk_timebase_div (for external sources). + ''' + serial_number = _attributes.AttributeViString(1150104) + '''Type: str + + Returns the serial number of the device. + + Tip: + This property can be set/get on specific instruments within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container instruments to specify a subset. + + Example: :py:attr:`my_session.instruments[ ... ].serial_number` + + To set/get on all instruments, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.serial_number` + ''' + accessory_gain = _attributes.AttributeViReal64(1150279) + '''Type: float + + Returns the calibration gain for the current device configuration. + + **Related topics:** + `NI 5122/5124/5142 Calibration `__ + + Note: + This property is supported only by the NI PXI-5900 differential amplifier. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].accessory_gain` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.accessory_gain` + ''' + accessory_offset = _attributes.AttributeViReal64(1150280) + '''Type: float + + Returns the calibration offset for the current device configuration. + + **Related topics:** + `NI 5122/5124/5142 Calibration `__ + + Note: + This property is supported only by the NI PXI-5900 differential amplifier. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].accessory_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.accessory_offset` + ''' + simulate = _attributes.AttributeViBoolean(1050005) + '''Type: bool + + Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. + The default value is False. Use the __init__ method to override this value. + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + A string that contains a brief description of the specific driver + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + A string that contains additional version information about this instrument driver. + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + A string that contains the name of the vendor that supplies this driver. + ''' + start_to_ref_trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1150103) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Pass the length of time you want the digitizer to wait after it starts acquiring data until the digitizer enables the trigger system to detect a reference (stop) trigger. + Units: Seconds + Valid Values: 0.0 - 171.8 + ''' + start_trigger_terminal_name = _attributes.AttributeViString(1150145) + '''Type: str + + Returns the fully qualified name for the Start Trigger terminal. You can use this terminal as the source for another trigger. + ''' + supported_instrument_models = _attributes.AttributeViString(1050327) + '''Type: str + + A string that contains a comma-separated list of the instrument model numbers supported by this driver. + ''' + trigger_auto_triggered = _attributes.AttributeViBoolean(1150278) + '''Type: bool + + Specifies if the last acquisition was auto triggered. You can use the Auto Triggered property to find out if the last acquisition was triggered. + ''' + trigger_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerCoupling, 1250014) + '''Type: enums.TriggerCoupling + + Specifies how the digitizer couples the trigger source. This property affects instrument operation only when trigger_type is set to TriggerType.EDGE, TriggerType.HYSTERESIS, or TriggerType.WINDOW. + ''' + trigger_delay_time = _attributes.AttributeViReal64TimeDeltaSeconds(1250015) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the trigger delay time in seconds. The trigger delay time is the length of time the digitizer waits after it receives the trigger. The event that occurs when the trigger delay elapses is the Reference Event. + Valid Values: 0.0 - 171.8 + ''' + trigger_holdoff = _attributes.AttributeViReal64TimeDeltaSeconds(1250016) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the length of time (in seconds) the digitizer waits after detecting a trigger before enabling the trigger subsystem to detect another trigger. This property affects instrument operation only when the digitizer requires multiple acquisitions to build a complete waveform. The digitizer requires multiple waveform acquisitions when it uses equivalent-time sampling or when the digitizer is configured for a multi-record acquisition through a call to configure_horizontal_timing. + Valid Values: 0.0 - 171.8 + ''' + trigger_hysteresis = _attributes.AttributeViReal64(1150006) + '''Type: float + + Specifies the size of the hysteresis window on either side of the trigger level. The digitizer triggers when the trigger signal passes through the threshold you specify with the Trigger Level parameter, has the slope you specify with the Trigger Slope parameter, and passes through the hysteresis window that you specify with this parameter. + ''' + trigger_impedance = _attributes.AttributeViReal64(1150075) + '''Type: float + + Specifies the input impedance for the external analog trigger channel in Ohms. + Valid Values: + 50 - 50 ohms + 1000000 - 1 mega ohm + ''' + trigger_level = _attributes.AttributeViReal64(1250017) + '''Type: float + + Specifies the voltage threshold for the trigger subsystem. The units are volts. This property affects instrument behavior only when the trigger_type is set to TriggerType.EDGE, TriggerType.HYSTERESIS, or TriggerType.WINDOW. + Valid Values: + The values of the range and offset parameters in configure_vertical determine the valid range for the trigger level on the channel you use as the Trigger Source. The value you pass for this parameter must meet the following conditions: + ''' + trigger_modifier = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerModifier, 1250102) + '''Type: enums.TriggerModifier + + Configures the device to automatically complete an acquisition if a trigger has not been received. + Valid Values: + None (1) - Normal triggering + Auto Trigger (2) - Auto trigger acquisition if no trigger arrives + ''' + trigger_slope = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerSlope, 1250018) + '''Type: enums.TriggerSlope + + Specifies if a rising or a falling edge triggers the digitizer. This property affects instrument operation only when trigger_type is set to TriggerType.EDGE, TriggerType.HYSTERESIS, or TriggerType.WINDOW. + ''' + trigger_source = _attributes.AttributeViString(1250013) + '''Type: str + + Specifies the source the digitizer monitors for the trigger event. + ''' + trigger_type = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerType, 1250012) + '''Type: enums.TriggerType + + Specifies the type of trigger to use. + ''' + trigger_window_high_level = _attributes.AttributeViReal64(1150014) + '''Type: float + + Pass the upper voltage threshold you want the digitizer to use for window triggering. + The digitizer triggers when the trigger signal enters or leaves the window you specify with trigger_window_low_level and trigger_window_high_level + Valid Values: + The values of the Vertical Range and Vertical Offset parameters in configure_vertical determine the valid range for the High Window Level on the channel you use as the Trigger Source parameter in ConfigureTriggerSource. The value you pass for this parameter must meet the following conditions. + High Trigger Level <= Vertical Range/2 + Vertical Offset + High Trigger Level >= (-Vertical Range/2) + Vertical Offset + High Trigger Level > Low Trigger Level + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + trigger_window_low_level = _attributes.AttributeViReal64(1150013) + '''Type: float + + Pass the lower voltage threshold you want the digitizer to use for window triggering. + The digitizer triggers when the trigger signal enters or leaves the window you specify with trigger_window_low_level and trigger_window_high_level. + Units: Volts + Valid Values: + The values of the Vertical Range and Vertical Offset parameters in configure_vertical determine the valid range for the Low Window Level on the channel you use as the Trigger Source parameter in ConfigureTriggerSource. The value you pass for this parameter must meet the following conditions. + Low Trigger Level <= Vertical Range/2 + Vertical Offset + Low Trigger Level >= (-Vertical Range/2) + Vertical Offset + Low Trigger Level < High Trigger Level + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + trigger_window_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerWindowMode, 1150012) + '''Type: enums.TriggerWindowMode + + Specifies whether you want a trigger to occur when the signal enters or leaves the window specified by trigger_window_low_level, or trigger_window_high_level. + ''' + tv_trigger_event = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VideoTriggerEvent, 1250205) + '''Type: enums.VideoTriggerEvent + + Specifies the condition in the video signal that causes the digitizer to trigger. + ''' + tv_trigger_line_number = _attributes.AttributeViInt32(1250206) + '''Type: int + + Specifies the line on which to trigger, if tv_trigger_event is set to line number. The valid ranges of the property depend on the signal format selected. M-NTSC has a valid range of 1 to 525. B/G-PAL, SECAM, 576i, and 576p have a valid range of 1 to 625. 720p has a valid range of 1 to 750. 1080i and 1080p have a valid range of 1125. + ''' + tv_trigger_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VideoPolarity, 1250204) + '''Type: enums.VideoPolarity + + Specifies whether the video signal sync is positive or negative. + ''' + tv_trigger_signal_format = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VideoSignalFormat, 1250201) + '''Type: enums.VideoSignalFormat + + Specifies the type of video signal, such as NTSC, PAL, or SECAM. + ''' + use_spec_initial_x = _attributes.AttributeViBoolean(1150067) + vertical_coupling = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.VerticalCoupling, 1250003) + '''Type: enums.VerticalCoupling + + Specifies how the digitizer couples the input signal for the channel. When input coupling changes, the input stage takes a finite amount of time to settle. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vertical_coupling` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.vertical_coupling` + ''' + vertical_offset = _attributes.AttributeViReal64(1250002) + '''Type: float + + Specifies the location of the center of the range. The value is with respect to ground and is in volts. For example, to acquire a sine wave that spans between 0.0 and 10.0 V, set this property to 5.0 V. + + Note: This property is not supported by all digitizers.Refer to the NI High-Speed Digitizers Help for a list of vertical offsets supported for each device. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vertical_offset` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.vertical_offset` + ''' + vertical_range = _attributes.AttributeViReal64(1250001) + '''Type: float + + Specifies the absolute value of the input range for a channel in volts. For example, to acquire a sine wave that spans between -5 and +5 V, set this property to 10.0 V. + Refer to the NI High-Speed Digitizers Help for a list of supported vertical ranges for each device. If the specified range is not supported by a device, the value is coerced up to the next valid range. + + Tip: + This property can be set/get on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].vertical_range` + + To set/get on all channels, you can call the property directly on the :py:class:`niscope.Session`. + + Example: :py:attr:`my_session.vertical_range` + ''' + width_condition = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WidthCondition, 1250504) + '''Type: enums.WidthCondition + + Specifies whether the oscilloscope triggers on pulses within or outside the duration range bounded by the width_low_threshold and width_high_threshold properties. + ''' + width_high_threshold = _attributes.AttributeViReal64(1250502) + '''Type: float + + Specifies the high width threshold, in seconds. + + This properties sets the upper bound on the duration range that triggers the oscilloscope. The width_condition property determines how the oscilloscope triggers in relation to the width thresholds. + ''' + width_low_threshold = _attributes.AttributeViReal64(1250501) + '''Type: float + + Specifies the low width threshold, in seconds. + + This property sets the lower bound on the duration range that triggers the oscilloscope. The width_condition property determines how the oscilloscope triggers in relation to the width thresholds. + ''' + width_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.WidthPolarity, 1250503) + '''Type: enums.WidthPolarity + + Specifies the polarity of pulses that trigger the oscilloscope for width triggering. + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + self.instruments = _RepeatedCapabilities(self, '', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('niscope', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def _actual_meas_wfm_size(self, array_meas_function): + r'''_actual_meas_wfm_size + + Returns the total available size of an array measurement acquisition. + + Args: + array_meas_function (enums.ArrayMeasurement): The `array + measurement `__ + to perform. + + + Returns: + meas_waveform_size (int): Returns the size (in number of samples) of the resulting analysis + waveform. + + ''' + if type(array_meas_function) is not enums.ArrayMeasurement: + raise TypeError('Parameter array_meas_function must be of type ' + str(enums.ArrayMeasurement)) + meas_waveform_size = self._interpreter.actual_meas_wfm_size(array_meas_function) + return meas_waveform_size + + @ivi_synchronized + def _actual_num_wfms(self): + r'''_actual_num_wfms + + Helps you to declare appropriately sized waveforms. NI-SCOPE handles the + channel list parsing for you. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._actual_num_wfms` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._actual_num_wfms` + + Returns: + num_wfms (int): Returns the number of records times the number of channels; if you are + operating in DDC mode (NI 5620/5621 only), this value is multiplied by + two. + + ''' + num_wfms = self._interpreter.actual_num_wfms(self._repeated_capability) + return num_wfms + + @ivi_synchronized + def add_waveform_processing(self, meas_function): + r'''add_waveform_processing + + Adds one measurement to the list of processing steps that are completed + before the measurement. The processing is added on a per channel basis, + and the processing measurements are completed in the same order they are + registered. All measurement library parameters—the properties starting + with "meas_"—are cached at the time of registering the + processing, and this set of parameters is used during the processing + step. The processing measurements are streamed, so the result of the + first processing step is used as the input for the next step. The + processing is done before any other measurements. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].add_waveform_processing` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.add_waveform_processing` + + Args: + meas_function (enums.ArrayMeasurement): The `array + measurement `__ + to add. + + ''' + if type(meas_function) is not enums.ArrayMeasurement: + raise TypeError('Parameter meas_function must be of type ' + str(enums.ArrayMeasurement)) + self._interpreter.add_waveform_processing(self._repeated_capability, meas_function) + + @ivi_synchronized + def self_cal(self, option=enums.Option.SELF_CALIBRATE_ALL_CHANNELS): + r'''self_cal + + Self-calibrates most NI digitizers, including all SMC-based devices and + most Traditional NI-DAQ (Legacy) devices. To verify that your digitizer + supports self-calibration, refer to `Features Supported by + Device `__. + + For SMC-based digitizers, if the self-calibration is performed + successfully in a regular session, the calibration constants are + immediately stored in the self-calibration area of the EEPROM. If the + self-calibration is performed in an external calibration session, the + calibration constants take effect immediately for the duration of the + session. However, they are not stored in the EEPROM until + CalEnd is called with **action** set to + NISCOPE_VAL_ACTION_STORE and no errors occur. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].self_cal` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.self_cal` + + Args: + option (enums.Option): The calibration option. Use VI_NULL for a normal self-calibration + operation or NISCOPE_VAL_CAL_RESTORE_EXTERNAL_CALIBRATION to + restore the previous calibration. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + ''' + if type(option) is not enums.Option: + raise TypeError('Parameter option must be of type ' + str(enums.Option)) + self._interpreter.self_cal(self._repeated_capability, option) + + @ivi_synchronized + def clear_waveform_measurement_stats(self, clearable_measurement_function=enums.ClearableMeasurement.ALL_MEASUREMENTS): + r'''clear_waveform_measurement_stats + + Clears the waveform stats on the channel and measurement you specify. If + you want to clear all of the measurements, use + ClearableMeasurement.ALL_MEASUREMENTS in the **clearableMeasurementFunction** + parameter. + + Every time a measurement is called, the statistics information is + updated, including the min, max, mean, standard deviation, and number of + updates. This information is fetched with + _fetch_measurement_stats. The multi-acquisition array measurements + are also cleared with this method. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_waveform_measurement_stats` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.clear_waveform_measurement_stats` + + Args: + clearable_measurement_function (enums.ClearableMeasurement): The `scalar + measurement `__ + or `array + measurement `__ + to clear the stats for. + + ''' + if type(clearable_measurement_function) is not enums.ClearableMeasurement: + raise TypeError('Parameter clearable_measurement_function must be of type ' + str(enums.ClearableMeasurement)) + self._interpreter.clear_waveform_measurement_stats(self._repeated_capability, clearable_measurement_function) + + @ivi_synchronized + def clear_waveform_processing(self): + r'''clear_waveform_processing + + Clears the list of processing steps assigned to the given channel. The + processing is added using the add_waveform_processing method, + where the processing steps are completed in the same order in which they + are registered. The processing measurements are streamed, so the result + of the first processing step is used as the input for the next step. The + processing is also done before any other measurements. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].clear_waveform_processing` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.clear_waveform_processing` + ''' + self._interpreter.clear_waveform_processing(self._repeated_capability) + + @ivi_synchronized + def configure_chan_characteristics(self, input_impedance, max_input_frequency): + r'''configure_chan_characteristics + + Configures the properties that control the electrical characteristics of + the channel—the input impedance and the bandwidth. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_chan_characteristics` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.configure_chan_characteristics` + + Args: + input_impedance (float): The input impedance for the channel; NI-SCOPE sets + input_impedance to this value. + + max_input_frequency (float): The bandwidth for the channel; NI-SCOPE sets + max_input_frequency to this value. Pass 0 for this + value to use the hardware default bandwidth. Pass –1 for this value to + achieve full bandwidth. + + ''' + self._interpreter.configure_chan_characteristics(self._repeated_capability, input_impedance, max_input_frequency) + + @ivi_synchronized + def configure_equalization_filter_coefficients(self, coefficients): + r'''configure_equalization_filter_coefficients + + Configures the custom coefficients for the equalization FIR filter on + the device. This filter is designed to compensate the input signal for + artifacts introduced to the signal outside of the digitizer. Because + this filter is a generic FIR filter, any coefficients are valid. + Coefficient values should be between +1 and –1. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_equalization_filter_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.configure_equalization_filter_coefficients` + + Args: + coefficients (list of float): The custom coefficients for the equalization FIR filter on the device. + These coefficients should be between +1 and –1. You can obtain the + number of coefficients from the + `equalization_num_coefficients `__ + property. The + `equalization_filter_enabled `__ + property must be set to TRUE to enable the filter. + + ''' + self._interpreter.configure_equalization_filter_coefficients(self._repeated_capability, coefficients) + + @ivi_synchronized + def configure_vertical(self, range, coupling, offset=0.0, probe_attenuation=1.0, enabled=True): + r'''configure_vertical + + Configures the most commonly configured properties of the digitizer + vertical subsystem, such as the range, offset, coupling, probe + attenuation, and the channel. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].configure_vertical` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.configure_vertical` + + Args: + range (float): Specifies the vertical range Refer to vertical_range for + more information. + + coupling (enums.VerticalCoupling): Specifies how to couple the input signal. Refer to + vertical_coupling for more information. + + offset (float): Specifies the vertical offset. Refer to vertical_offset + for more information. + + probe_attenuation (float): Specifies the probe attenuation. Refer to + probe_attenuation for valid values. + + enabled (bool): Specifies whether the channel is enabled for acquisition. Refer to + channel_enabled for more information. + + ''' + if type(coupling) is not enums.VerticalCoupling: + raise TypeError('Parameter coupling must be of type ' + str(enums.VerticalCoupling)) + self._interpreter.configure_vertical(self._repeated_capability, range, offset, coupling, probe_attenuation, enabled) + + @ivi_synchronized + def fetch(self, num_samples=None, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): + '''fetch + + Returns the waveform from a previously initiated acquisition that the + digitizer acquires for the specified channel. This method returns + scaled voltage waveforms. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + Note: Some functionality, such as time stamping, is not supported in all digitizers. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. + + relative_to (enums.FetchRelativeTo): Position to start fetching within one record. + + offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. + + record_number (int): Zero-based index of the first record to fetch. + + num_records (int): Number of records to fetch. Use -1 to fetch all configured records. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. + + + Returns: + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling information about each waveform: + + - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform + - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. + - **x_increment** (float) the time between points in the acquired waveform in seconds + - **channel** (str) channel name this waveform was acquired from + - **record** (int) record number of this waveform + - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired + + ''' + # Set the fetch attributes + with _NoChannel(session=self): + self._fetch_relative_to = relative_to + self._fetch_offset = offset + self._fetch_record_number = record_number + self._fetch_num_records = -1 if num_records is None else num_records + if num_samples is None: + num_samples = self.horz_record_length + + wfm, wfm_info = self._fetch(num_samples, timeout) + + if isinstance(wfm, array.ArrayType): + mv = memoryview(wfm) + else: + mv = wfm + + waveform_info._populate_samples_info(wfm_info, mv, num_samples) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + + wfm_info_count = len(wfm_info) + channel_count = len(channel_names) + # Should this raise instead? If this asserts, is it the users fault? + assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) + actual_num_records = int(wfm_info_count / channel_count) + waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) + + return wfm_info + + @ivi_synchronized + def fetch_array_measurement(self, array_meas_function, meas_wfm_size=None, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, meas_num_samples=None, timeout=hightime.timedelta(seconds=5.0)): + r'''fetch_array_measurement + + Obtains a waveform from the digitizer and returns the specified + measurement array. This method may return multiple waveforms depending + on the number of channels, the acquisition type, and the number of + records you specify. + + Note: + Some functionality, such as time stamping, is not supported in all + digitizers. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_array_measurement` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch_array_measurement` + + Args: + array_meas_function (enums.ArrayMeasurement): The array measurement to perform. + + meas_wfm_size (int): The maximum number of samples returned in the measurement waveform array + for each waveform measurement. Default Value: None (returns all available samples). + + relative_to (enums.FetchRelativeTo): Position to start fetching within one record. + + offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. + + record_number (int): Zero-based index of the first record to fetch. + + num_records (int): Number of records to fetch. Use `None` to fetch all configured records. + + meas_num_samples (int): Number of samples to fetch when performing a measurement. Use `None` to fetch the actual record length. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **channel**-channel name this waveform was acquired from + - **record**-record number of this waveform + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **samples**-floating point array of samples. Length will be of actual samples acquired. + + ''' + # Set the fetch attributes + with _NoChannel(session=self): + self._fetch_relative_to = relative_to + self._fetch_offset = offset + self._fetch_record_number = record_number + self._fetch_num_records = -1 if num_records is None else num_records + self._fetch_meas_num_samples = -1 if meas_num_samples is None else meas_num_samples + + # For GrpcStubInterpreter, the server will automatically get _actual_meas_wfm_size, if needed. + if isinstance(self._interpreter, _library_interpreter.LibraryInterpreter): + if meas_wfm_size is None: + meas_wfm_size = self._actual_meas_wfm_size(array_meas_function) + + meas_wfm, wfm_info = self._fetch_array_measurement(array_meas_function, meas_wfm_size, timeout) + + record_length = int(len(meas_wfm) / len(wfm_info)) + waveform_info._populate_samples_info(wfm_info, meas_wfm, record_length) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + + wfm_info_count = len(wfm_info) + channel_count = len(channel_names) + # Should this raise instead? If this asserts, is it the users fault? + assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) + actual_num_records = int(wfm_info_count / channel_count) + waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) + + return wfm_info + + @ivi_synchronized + def fetch_measurement_stats(self, scalar_meas_function, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): + r'''fetch_measurement_stats + + Obtains a waveform measurement and returns the measurement value. This + method may return multiple statistical results depending on the number + of channels, the acquisition type, and the number of records you + specify. + + You specify a particular measurement type, such as rise time, frequency, + or voltage peak-to-peak. The waveform on which the digitizer calculates + the waveform measurement is from an acquisition that you previously + initiated. The statistics for the specified measurement method are + returned, where the statistics are updated once every acquisition when + the specified measurement is fetched by any of the Fetch Measurement + methods. If a Fetch Measurement method has not been called, this + method fetches the data on which to perform the measurement. The + statistics are cleared by calling + clear_waveform_measurement_stats. + + Many of the measurements use the low, mid, and high reference levels. + You configure the low, mid, and high references with + meas_chan_low_ref_level, + meas_chan_mid_ref_level, and + meas_chan_high_ref_level to set each channel + differently. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch_measurement_stats` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch_measurement_stats` + + Args: + scalar_meas_function (enums.ScalarMeasurement): The scalar measurement to be performed on each fetched waveform. + + relative_to (enums.FetchRelativeTo): Position to start fetching within one record. + + offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. + + record_number (int): Zero-based index of the first record to fetch. + + num_records (int): Number of records to fetch. Use `None` to fetch all configured records. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + measurement_stats (list of MeasurementStats): Returns a list of class instances with the following measurement statistics + about the specified measurement: + + - **result** (float): the resulting measurement + - **mean** (float): the mean scalar value, which is obtained by + averaging each fetch_measurement_stats call + - **stdev** (float): the standard deviations of the most recent + **numInStats** measurements + - **min_val** (float): the smallest scalar value acquired (the minimum + of the **numInStats** measurements) + - **max_val** (float): the largest scalar value acquired (the maximum + of the **numInStats** measurements) + - **num_in_stats** (int): the number of times fetch_measurement_stats has been called + - **channel** (str): channel name this result was acquired from + - **record** (int): record number of this result + + ''' + # Set the fetch attributes + with _NoChannel(session=self): + self._fetch_relative_to = relative_to + self._fetch_offset = offset + self._fetch_record_number = record_number + self._fetch_num_records = -1 if num_records is None else num_records + + results, means, stdevs, min_vals, max_vals, nums_in_stats = self._fetch_measurement_stats(scalar_meas_function, timeout) + + output = [] + for result, mean, stdev, min_val, max_val, num_in_stats in zip(results, means, stdevs, min_vals, max_vals, nums_in_stats): + measurement_stat = measurement_stats.MeasurementStats(result, mean, stdev, min_val, max_val, num_in_stats) + output.append(measurement_stat) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + + results_count = len(results) + channel_count = len(channel_names) + # Should this raise instead? If this asserts, is it the users fault? + assert results_count % channel_count == 0, 'Number of results should be evenly divisible by the number of channels: len(results) == {0}, len(channel_names) == {1}'.format(results_count, channel_count) + actual_num_records = int(results_count / channel_count) + waveform_info._populate_channel_and_record_info(output, channel_names, range(record_number, record_number + actual_num_records)) + + return output + + @ivi_synchronized + def get_equalization_filter_coefficients(self): + '''get_equalization_filter_coefficients + + Retrieves the custom coefficients for the equalization FIR filter on the device. This filter is designed to compensate the input signal for artifacts introduced to the signal outside of the digitizer. Because this filter is a generic FIR filter, any coefficients are valid. Coefficient values should be between +1 and –1. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].get_equalization_filter_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.get_equalization_filter_coefficients` + ''' + return self._get_equalization_filter_coefficients(self.equalization_num_coefficients) + + @ivi_synchronized + def read(self, num_samples=None, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): + '''read + + Initiates an acquisition, waits for it to complete, and retrieves the + data. The process is similar to calling _initiate_acquisition, + acquisition_status, and fetch. The only difference is + that with read, you enable all channels specified with + **channelList** before the acquisition; in the other method, you enable + the channels with configure_vertical. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + Note: Some functionality, such as time stamping, is not supported in all digitizers. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].read` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.read` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the acquisition finishes with fewer points than requested, some devices return partial data if the acquisition finished, was aborted, or a timeout of 0 was used. If it fails to complete within the timeout period, the method raises. + + relative_to (enums.FetchRelativeTo): Position to start fetching within one record. + + offset (int): Offset in samples to start fetching data within each record. The offset can be positive or negative. + + record_number (int): Zero-based index of the first record to fetch. + + num_records (int): Number of records to fetch. Use -1 to fetch all configured records. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 seconds for this parameter implies infinite timeout. + + + Returns: + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling information about each waveform: + + - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform + - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. + - **x_increment** (float) the time between points in the acquired waveform in seconds + - **channel** (str) channel name this waveform was acquired from + - **record** (int) record number of this waveform + - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired + + ''' + # Set the fetch attributes + with _NoChannel(session=self): + self._fetch_relative_to = relative_to + self._fetch_offset = offset + self._fetch_record_number = record_number + self._fetch_num_records = -1 if num_records is None else num_records + if num_samples is None: + num_samples = self.horz_record_length + + wfm, wfm_info = self._read(num_samples, timeout) + + if isinstance(wfm, array.ArrayType): + mv = memoryview(wfm) + else: + mv = wfm + + waveform_info._populate_samples_info(wfm_info, mv, num_samples) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + + wfm_info_count = len(wfm_info) + channel_count = len(channel_names) + # Should this raise instead? If this asserts, is it the users fault? + assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) + actual_num_records = int(wfm_info_count / channel_count) + waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) + + return wfm_info + + @ivi_synchronized + def _fetch(self, num_samples, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch + + Returns the waveform from a previously initiated acquisition that the + digitizer acquires for the specified channel. This method returns + scaled voltage waveforms. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + Note: + You can use read instead of this method. read + starts an acquisition on all enabled channels, waits for the acquisition + to complete, and returns the waveform for the specified channel. + + Some functionality, such as time stamping, is not supported in all + digitizers. Refer to `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the + acquisition finishes with fewer points than requested, some devices + return partial data if the acquisition finished, was aborted, or a + timeout of 0 was used. If it fails to complete within the timeout + period, the method returns an error. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + waveform (array.array("d")): Returns an array whose length is the **numSamples** times number of + waveforms. Call ActualNumwfms to determine the number of + waveforms. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with a channel list of 0,1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + waveform, wfm_info = self._interpreter.fetch(self._repeated_capability, timeout, num_samples) + return waveform, wfm_info + + @ivi_synchronized + def _fetch_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch_into_numpy + + Returns the waveform from a previously initiated acquisition that the + digitizer acquires for the specified channel. This method returns + scaled voltage waveforms. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + Note: + You can use read instead of this method. read + starts an acquisition on all enabled channels, waits for the acquisition + to complete, and returns the waveform for the specified channel. + + Some functionality, such as time stamping, is not supported in all + digitizers. Refer to `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the + acquisition finishes with fewer points than requested, some devices + return partial data if the acquisition finished, was aborted, or a + timeout of 0 was used. If it fails to complete within the timeout + period, the method returns an error. + + waveform (numpy.array(dtype=numpy.float64)): Returns an array whose length is the **numSamples** times number of + waveforms. Call ActualNumwfms to determine the number of + waveforms. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with a channel list of 0,1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + import numpy + + if type(waveform) is not numpy.ndarray: + raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) + if numpy.isfortran(waveform) is True: + raise TypeError('waveform must be in C-order') + if waveform.dtype is not numpy.dtype('float64'): + raise TypeError('waveform must be numpy.ndarray of dtype=float64, is ' + str(waveform.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_into_numpy(self._repeated_capability, num_samples, waveform, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_array_measurement(self, array_meas_function, measurement_waveform_size, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch_array_measurement + + Obtains a waveform from the digitizer and returns the specified + measurement array. This method may return multiple waveforms depending + on the number of channels, the acquisition type, and the number of + records you specify. + + Note: + Some functionality, such as time stamping, is not supported in all + digitizers. Refer to `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_array_measurement` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch_array_measurement` + + Args: + array_meas_function (enums.ArrayMeasurement): The `array + measurement `__ + to perform. + + measurement_waveform_size (int): The maximum number of samples returned in the measurement waveform array + for each waveform measurement. Default Value: None (returns all available samples). + + Note: + Use the property fetch_meas_num_samples to set the + number of samples to fetch when performing a measurement. For more + information about when to use this property, refer to the `NI + KnowledgeBase `__. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + meas_wfm (list of float): Returns an array whose length is the number of waveforms times + **measurementWaveformSize**; call _actual_num_wfms to determine the number of + waveforms; call _actual_meas_wfm_size to determine the size of each + waveform. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with channel list of 0, 1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + if type(array_meas_function) is not enums.ArrayMeasurement: + raise TypeError('Parameter array_meas_function must be of type ' + str(enums.ArrayMeasurement)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + meas_wfm, wfm_info = self._interpreter.fetch_array_measurement(self._repeated_capability, timeout, array_meas_function, measurement_waveform_size) + return meas_wfm, wfm_info + + @ivi_synchronized + def _fetch_binary16_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch_binary16_into_numpy + + Retrieves data from a previously initiated acquisition and returns + binary 16-bit waveforms. This method may return multiple waveforms + depending on the number of channels, the acquisition type, and the + number of records you specify. + + Refer to `Using Fetch + Methods `__ for + more information on using this method. + + Note: + Some functionality, such as time stamping, is not supported in all + digitizers. Refer to `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_binary16` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch_binary16` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the + acquisition finishes with fewer points than requested, some devices + return partial data if the acquisition finished, was aborted, or a + timeout of 0 was used. If it fails to complete within the timeout + period, the method returns an error. + + waveform (numpy.array(dtype=numpy.int16)): Returns an array whose length is the **numSamples** times number of + waveforms. Call ActualNumwfms to determine the number of + waveforms. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with a channel list of 0,1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + import numpy + + if type(waveform) is not numpy.ndarray: + raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) + if numpy.isfortran(waveform) is True: + raise TypeError('waveform must be in C-order') + if waveform.dtype is not numpy.dtype('int16'): + raise TypeError('waveform must be numpy.ndarray of dtype=int16, is ' + str(waveform.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_binary16_into_numpy(self._repeated_capability, num_samples, waveform, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_binary32_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch_binary32_into_numpy + + Retrieves data from a previously initiated acquisition and returns + binary 32-bit waveforms. This method may return multiple waveforms + depending on the number of channels, the acquisition type, and the + number of records you specify. + + Refer to `Using Fetch + Methods `__ for + more information on using this method. + + Note: + Some functionality, such as time stamping, is not supported in all + digitizers. Refer to `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_binary32` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch_binary32` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the + acquisition finishes with fewer points than requested, some devices + return partial data if the acquisition finished, was aborted, or a + timeout of 0 was used. If it fails to complete within the timeout + period, the method returns an error. + + waveform (numpy.array(dtype=numpy.int32)): Returns an array whose length is the **numSamples** times number of + waveforms. Call ActualNumwfms to determine the number of + waveforms. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with a channel list of 0,1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + import numpy + + if type(waveform) is not numpy.ndarray: + raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) + if numpy.isfortran(waveform) is True: + raise TypeError('waveform must be in C-order') + if waveform.dtype is not numpy.dtype('int32'): + raise TypeError('waveform must be numpy.ndarray of dtype=int32, is ' + str(waveform.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_binary32_into_numpy(self._repeated_capability, num_samples, waveform, timeout) + return wfm_info + + @ivi_synchronized + def _fetch_binary8_into_numpy(self, num_samples, waveform, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch_binary8_into_numpy + + Retrieves data from a previously initiated acquisition and returns + binary 8-bit waveforms. This method may return multiple waveforms + depending on the number of channels, the acquisition type, and the + number of records you specify. + + Refer to `Using Fetch + Methods `__ for + more information on using this method. + + Note: + Some functionality, such as time stamping, is not supported in all + digitizers. Refer to `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_binary8` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch_binary8` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the + acquisition finishes with fewer points than requested, some devices + return partial data if the acquisition finished, was aborted, or a + timeout of 0 was used. If it fails to complete within the timeout + period, the method returns an error. + + waveform (numpy.array(dtype=numpy.int8)): Returns an array whose length is the **numSamples** times number of + waveforms. Call ActualNumwfms to determine the number of + waveforms. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with a channel list of 0,1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + wfm_info (numpy.array(dtype=numpy.WaveformInfo)): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + import numpy + + if type(waveform) is not numpy.ndarray: + raise TypeError('waveform must be {0}, is {1}'.format(numpy.ndarray, type(waveform))) + if numpy.isfortran(waveform) is True: + raise TypeError('waveform must be in C-order') + if waveform.dtype is not numpy.dtype('int8'): + raise TypeError('waveform must be numpy.ndarray of dtype=int8, is ' + str(waveform.dtype)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + wfm_info = self._interpreter.fetch_binary8_into_numpy(self._repeated_capability, num_samples, waveform, timeout) + return wfm_info + + @ivi_synchronized + def fetch_into(self, waveform, relative_to=enums.FetchRelativeTo.PRETRIGGER, offset=0, record_number=0, num_records=None, timeout=hightime.timedelta(seconds=5.0)): + '''fetch + + Returns the waveform from a previously initiated acquisition that the + digitizer acquires for the specified channel. This method returns + scaled voltage waveforms. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + Note: Some functionality, such as time stamping, is not supported in all digitizers. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ].fetch` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session.fetch` + + Args: + waveform (array.array("d")): numpy array of the appropriate type and size that should be acquired as a 1D array. Size should be **num_samples** times number of waveforms. Call _actual_num_wfms to determine the number of waveforms. + + Types supported are + + - `numpy.float64` + - `numpy.int8` + - `numpy.in16` + - `numpy.int32` + + Example: + + .. code-block:: python + + waveform = numpy.ndarray(num_samples * session.actual_num_wfms(), dtype=numpy.float64) + wfm_info = session['0,1'].fetch_into(waveform, timeout=5.0) + + relative_to (enums.FetchRelativeTo): Position to start fetching within one record. + + offset (int): Offset in samples to start fetching data within each record.The offset can be positive or negative. + + record_number (int): Zero-based index of the first record to fetch. + + num_records (int): Number of records to fetch. Use -1 to fetch all configured records. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this parameter tells NI-SCOPE to fetch whatever is currently available. Using -1 for this parameter implies infinite timeout. + + + Returns: + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling information about each waveform: + + - **relative_initial_x** (float) the time (in seconds) from the trigger to the first sample in the fetched waveform + - **absolute_initial_x** (float) timestamp (in seconds) of the first fetched sample. This timestamp is comparable between records and acquisitions; devices that do not support this parameter use 0 for this output. + - **x_increment** (float) the time between points in the acquired waveform in seconds + - **channel** (str) channel name this waveform was acquired from + - **record** (int) record number of this waveform + - **gain** (float) the gain factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **offset** (float) the offset factor of the given channel; useful for scaling binary data with the following formula: + + .. math:: + + voltage = binary data * gain factor + offset + + - **samples** (array of float) floating point array of samples. Length will be of the actual samples acquired + + ''' + import numpy + + # Set the fetch attributes + with _NoChannel(session=self): + self._fetch_relative_to = relative_to + self._fetch_offset = offset + self._fetch_record_number = record_number + self._fetch_num_records = -1 if num_records is None else num_records + + num_samples = int(len(waveform) / self._actual_num_wfms()) + + if waveform.dtype == numpy.float64: + wfm_info = self._fetch_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) + elif waveform.dtype == numpy.int8: + wfm_info = self._fetch_binary8_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) + elif waveform.dtype == numpy.int16: + wfm_info = self._fetch_binary16_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) + elif waveform.dtype == numpy.int32: + wfm_info = self._fetch_binary32_into_numpy(num_samples=num_samples, waveform=waveform, timeout=timeout) + else: + raise TypeError("Unsupported dtype. Is {}, expected {}, {}, {}, or {}".format(waveform.dtype, numpy.float64, numpy.int8, numpy.int16, numpy.int32)) + + mv = memoryview(waveform) + + waveform_info._populate_samples_info(wfm_info, mv, num_samples) + + channel_names = _converters.expand_channel_string( + self._repeated_capability, + self._all_channels_in_session + ) + + wfm_info_count = len(wfm_info) + channel_count = len(channel_names) + # Should this raise instead? If this asserts, is it the users fault? + assert wfm_info_count % channel_count == 0, 'Number of waveforms should be evenly divisible by the number of channels: len(wfm_info) == {0}, len(channel_names) == {1}'.format(wfm_info_count, channel_count) + actual_num_records = int(wfm_info_count / channel_count) + waveform_info._populate_channel_and_record_info(wfm_info, channel_names, range(record_number, record_number + actual_num_records)) + + return wfm_info + + @ivi_synchronized + def _fetch_measurement_stats(self, scalar_meas_function, timeout=hightime.timedelta(seconds=5.0)): + r'''_fetch_measurement_stats + + Obtains a waveform measurement and returns the measurement value. This + method may return multiple statistical results depending on the number + of channels, the acquisition type, and the number of records you + specify. + + You specify a particular measurement type, such as rise time, frequency, + or voltage peak-to-peak. The waveform on which the digitizer calculates + the waveform measurement is from an acquisition that you previously + initiated. The statistics for the specified measurement method are + returned, where the statistics are updated once every acquisition when + the specified measurement is fetched by any of the Fetch Measurement + methods. If a Fetch Measurement method has not been called, this + method fetches the data on which to perform the measurement. The + statistics are cleared by calling + clear_waveform_measurement_stats. Refer to `Using Fetch + Methods `__ for + more information on incorporating fetch methods in your application. + + Many of the measurements use the low, mid, and high reference levels. + You configure the low, mid, and high references with + meas_chan_low_ref_level, + meas_chan_mid_ref_level, and + meas_chan_high_ref_level to set each channel + differently. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._fetch_measurement_stats` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._fetch_measurement_stats` + + Args: + scalar_meas_function (enums.ScalarMeasurement): The `scalar + measurement `__ + to be performed on each fetched waveform. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + result (list of float): Returns the resulting measurement + + mean (list of float): Returns the mean scalar value, which is obtained by averaging each + _fetch_measurement_stats call. + + stdev (list of float): Returns the standard deviation of the most recent **numInStats** + measurements. + + min (list of float): Returns the smallest scalar value acquired (the minimum of the + **numInStats** measurements). + + max (list of float): Returns the largest scalar value acquired (the maximum of the + **numInStats** measurements). + + num_in_stats (list of int): Returns the number of times _fetch_measurement_stats has been + called. + + ''' + if type(scalar_meas_function) is not enums.ScalarMeasurement: + raise TypeError('Parameter scalar_meas_function must be of type ' + str(enums.ScalarMeasurement)) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + result, mean, stdev, min, max, num_in_stats = self._interpreter.fetch_measurement_stats(self._repeated_capability, timeout, scalar_meas_function) + return result, mean, stdev, min, max, num_in_stats + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + Queries the value of a ViBoolean property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. If the property represents an instrument state, this + method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): The ID of a property. + + + Returns: + value (bool): Returns the current value of the property; pass the address of a + ViBoolean variable. + + ''' + value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + Queries the value of a ViInt32 property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. If the property represents an instrument state, this + method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): The ID of a property. + + + Returns: + value (int): Returns the current value of the property. + + ''' + value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_int64(self, attribute_id): + r'''_get_attribute_vi_int64 + + Queries the value of a ViInt64 property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. If the property represents an instrument state, this + method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int64` + + Args: + attribute_id (int): The ID of a property. + + + Returns: + value (int): Returns the current value of the property. + + ''' + value = self._interpreter.get_attribute_vi_int64(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + Queries the value of a ViReal64 property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. If the property represents an instrument state, this + method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): The ID of a property. + + + Returns: + value (float): Returns the current value of the property; pass the address of a + ViReal64 variable. + + ''' + value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + Queries the value of a ViString property. You can use this method to + get the values of instrument-specific properties and inherent IVI + properties. If the property represents an instrument state, this + method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid. + + You must provide a ViChar array to serve as a buffer for the value. You + pass the number of bytes in the buffer as the **bufSize**. If the + current value of the property, including the terminating NUL byte, is + larger than the size you indicate in the **bufSize**, the method + copies (**bufSize** – 1) bytes into the buffer, places an ASCII NUL byte + at the end of the buffer, and returns the **bufSize** you must pass to + get the entire value. For example, if the value is 123456 and the + **bufSize** is 4, the method places 123 into the buffer and returns 7. + If you want to call this method just to get the required buffer size, + you can pass 0 for the **bufSize** and VI_NULL for the **value**. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): The ID of a property. + + + Returns: + value (str): The buffer in which the method returns the current value of the + property; the buffer must be of type ViChar and have at least as many + bytes as indicated in the **bufSize**. + + ''' + value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return value + + @ivi_synchronized + def _get_equalization_filter_coefficients(self, number_of_coefficients): + r'''_get_equalization_filter_coefficients + + Retrieves the custom coefficients for the equalization FIR filter on the + device. This filter is designed to compensate the input signal for + artifacts introduced to the signal outside of the digitizer. Because + this filter is a generic FIR filter, any coefficients are valid. + Coefficient values should be between +1 and –1. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_equalization_filter_coefficients` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._get_equalization_filter_coefficients` + + Args: + number_of_coefficients (int): The number of coefficients being passed in the **coefficients** array. + + + Returns: + coefficients (list of float): The custom coefficients for the equalization FIR filter on the device. + These coefficients should be between +1 and –1. You can obtain the + number of coefficients from the + `equalization_num_coefficients `__ + property. + + ''' + coefficients = self._interpreter.get_equalization_filter_coefficients(self._repeated_capability, number_of_coefficients) + return coefficients + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-SCOPE locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, niscope.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def _read(self, num_samples, timeout=hightime.timedelta(seconds=5.0)): + r'''_read + + Initiates an acquisition, waits for it to complete, and retrieves the + data. The process is similar to calling _initiate_acquisition, + acquisition_status, and fetch. The only difference is + that with read, you enable all channels specified with + **channelList** before the acquisition; in the other method, you enable + the channels with configure_vertical. + + This method may return multiple waveforms depending on the number of + channels, the acquisition type, and the number of records you specify. + + Note: + Some functionality is not supported in all digitizers. Refer to + `Features Supported by + Device `__ for + more information. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._read` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._read` + + Args: + num_samples (int): The maximum number of samples to fetch for each waveform. If the + acquisition finishes with fewer points than requested, some devices + return partial data if the acquisition finished, was aborted, or a + timeout of 0 was used. If it fails to complete within the timeout + period, the method returns an error. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The time to wait in seconds for data to be acquired; using 0 for this + parameter tells NI-SCOPE to fetch whatever is currently available. Using + -1 for this parameter implies infinite timeout. + + + Returns: + waveform (array.array("d")): Returns an array whose length is the **numSamples** times number of + waveforms. Call ActualNumwfms to determine the number of + waveforms. + + NI-SCOPE returns this data sequentially, so all record 0 waveforms are + first. For example, with a channel list of 0,1, you would have the + following index values: + + index 0 = record 0, channel 0 + + index *x* = record 0, channel 1 + + index 2\ *x* = record 1, channel 0 + + index 3\ *x* = record 1, channel 1 + + Where *x* = the record length + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + wfm_info (list of WaveformInfo): Returns a list of class instances with the following timing and scaling + information about each waveform: + + - **relativeInitialX**—the time (in seconds) from the trigger to the + first sample in the fetched waveform + - **absoluteInitialX**—timestamp (in seconds) of the first fetched + sample. This timestamp is comparable between records and + acquisitions; devices that do not support this parameter use 0 for + this output. + - **xIncrement**—the time between points in the acquired waveform in + seconds + - **actualSamples**—the actual number of samples fetched and placed in + the waveform array + - **gain**—the gain factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + - **offset**—the offset factor of the given channel; useful for scaling + binary data with the following formula: + + voltage = binary data × gain factor + offset + + Call _actual_num_wfms to determine the size of this array. + + ''' + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + waveform, wfm_info = self._interpreter.read(self._repeated_capability, timeout, num_samples) + return waveform, wfm_info + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, value): + r'''_set_attribute_vi_boolean + + Sets the value of a ViBoolean property. This is a low-level method + that you can use to set the values of instrument-specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + Note: + NI-SCOPE contains high-level methods that set most of the instrument + properties. Use the high-level driver methods as much as possible + because they handle order dependencies and multithread locking for you. + In addition, the high-level methods perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the SetAttribute methods, the methods check the + instrument status after each call. Also, when state caching is enabled, + the high-level methods that configure multiple properties perform + instrument I/O only for the properties whose value you change. Thus, you + can safely call the high-level methods without the penalty of + redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): The ID of a property. + + value (bool): The value that you want to set the property to. Some values might not + be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, value): + r'''_set_attribute_vi_int32 + + Sets the value of a ViInt32 property. This is a low-level method that + you can use to set the values of instrument-specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + Note: + NI-SCOPE contains high-level methods that set most of the instrument + properties. Use the high-level methods as much as possible because + they handle order dependencies and multithread locking for you. In + addition, high-level methods perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. Also, when state caching is enabled, + the high-level methods that configure multiple properties perform + instrument I/O only for the properties whose value you change. Thus, you + can safely call the high-level methods without the penalty of + redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): The ID of a property. + + value (int): The value that you want to set the property. Some values might not be + valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_int64(self, attribute_id, value): + r'''_set_attribute_vi_int64 + + Sets the value of a ViInt64 property. This is a low-level method that + you can use to set the values of instrument-specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + Note: + NI-SCOPE contains high-level methods that set most of the instrument + properties. Use the high-level methods as much as possible because + they handle order dependencies and multithread locking for you. In + addition, high-level methods perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. Also, when state caching is enabled, + the high-level methods that configure multiple properties perform + instrument I/O only for the properties whose value you change. Thus, you + can safely call the high-level methods without the penalty of + redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int64` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int64` + + Args: + attribute_id (int): The ID of a property. + + value (int): The value that you want to set the property. Some values might not be + valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_int64(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, value): + r'''_set_attribute_vi_real64 + + Sets the value of a ViReal64 property. This is a low-level method + that you can use to set the values of instrument-specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + Note: + NI-SCOPE contains high-level methods that set most of the instrument + properties. Use the high-level driver methods as much as possible + because they handle order dependencies and multithread locking for you. + In addition, the high-level methods perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the Set Property methods, the methods check the + instrument status after each call. Also, when state caching is enabled, + the high-level methods that configure multiple properties perform + instrument I/O only for the properties whose value you change. Thus, you + can safely call the high-level methods without the penalty of + redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): The ID of a property. + + value (float): The value that you want to set the property to. Some values might not + be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, value): + r'''_set_attribute_vi_string + + Sets the value of a ViString property. + + This is a low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: + + - State caching is disabled for the entire session or for the + particular property. + - State caching is enabled and the currently cached value is invalid or + is different than the value you specify. + + Note: + NI-SCOPE contains high-level methods that set most of the instrument + properties. Use the high-level driver methods as much as possible + because they handle order dependencies and multithread locking for you. + In addition, the high-level methods perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the SetAttribute methods, the methods check the + instrument status after each call. Also, when state caching is enabled, + the high-level methods that configure multiple properties perform + instrument I/O only for the properties whose value you change. Thus, you + can safely call the high-level methods without the penalty of + redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niscope.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`niscope.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): The ID of a property. + + value (str): The value that you want to set the property to. Some values might not + be valid depending on the current settings of the instrument session. + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, value) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + def _error_message(self, error_code): + r'''_error_message + + Takes the **Error_Code** returned by the instrument driver methods, interprets it, and returns it as a user-readable string. + + Note: + When using grpc-device, this method will call GetErrorMessage server-side while providing the same interface. + + Args: + error_code (int): The **error_code** returned from the instrument. The default is 0, indicating VI_SUCCESS. + + + Returns: + error_message (str): The error information formatted into a string. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-SCOPE session to an NI digitizer.''' + + def __init__(self, resource_name, id_query=False, reset_device=False, options={}, *, grpc_options=None): + r'''An NI-SCOPE session to an NI digitizer. + + Performs the following initialization actions: + + - Creates a new IVI instrument driver and optionally sets the initial + state of the following session properties: Range Check, Cache, + Simulate, Record Value Coercions + - Opens a session to the specified device using the interface and + address you specify for the **resourceName** + - Resets the digitizer to a known state if **resetDevice** is set to + True + - Queries the instrument ID and verifies that it is valid for this + instrument driver if the **IDQuery** is set to True + - Returns an instrument handle that you use to identify the instrument + in all subsequent instrument driver method calls + + Args: + resource_name (str): Caution: + Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. + However, all IVI names, such as logical names, are case-sensitive. If + you use logical names, driver session names, or virtual names in your + program, you must make sure that the name you use matches the name in + the IVI Configuration Store file exactly, without any variations in the + case of the characters. + + | Specifies the resource name of the device to initialize + + For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is + the device number assigned by MAX, as shown in Example 1. + + For NI-DAQmx devices, the syntax is just the device name specified in + MAX, as shown in Example 2. Typical default names for NI-DAQmx devices + in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by + right-clicking on the name in MAX and entering a new name. + + An alternate syntax for NI-DAQmx devices consists of DAQ::NI-DAQmx + device name, as shown in Example 3. This naming convention allows for + the use of an NI-DAQmx device in an application that was originally + designed for a Traditional NI-DAQ device. For example, if the + application expects DAQ::1, you can rename the NI-DAQmx device to 1 in + MAX and pass in DAQ::1 for the resource name, as shown in Example 4. + + If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already + exists with that same name, the NI-DAQmx device is matched first. + + You can also pass in the name of an IVI logical name or an IVI virtual + name configured with the IVI Configuration utility, as shown in Example + 5. A logical name identifies a particular virtual instrument. A virtual + name identifies a specific device and specifies the initial settings for + the session. + + +---------+--------------------------------------+--------------------------------------------------+ + | Example | Device Type | Syntax | + +=========+======================================+==================================================+ + | 1 | Traditional NI-DAQ device | DAQ::1 (1 = device number) | + +---------+--------------------------------------+--------------------------------------------------+ + | 2 | NI-DAQmx device | myDAQmxDevice (myDAQmxDevice = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 3 | NI-DAQmx device | DAQ::myDAQmxDevice (myDAQmxDevice = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 4 | NI-DAQmx device | DAQ::2 (2 = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 5 | IVI logical name or IVI virtual name | myLogicalName (myLogicalName = name) | + +---------+--------------------------------------+--------------------------------------------------+ + + id_query (bool): Specify whether to perform an ID query. + + When you set this parameter to True, NI-SCOPE verifies that the + device you initialize is a type that it supports. + + When you set this parameter to False, the method initializes the + device without performing an ID query. + + **Defined Values** + + | True—Perform ID query + | False—Skip ID query + + **Default Value**: True + + reset_device (bool): Specify whether to reset the device during the initialization process. + + Default Value: True + + **Defined Values** + + True (1)—Reset device + + False (0)—Do not reset device + + Note: + For the NI 5112, repeatedly resetting the device may cause excessive + wear on the electromechanical relays. Refer to `NI 5112 + Electromechanical Relays `__ + for recommended programming practices. + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + grpc_options (niscope.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + session (niscope.Session): A session object representing the device. + + ''' + if grpc_options: + import niscope._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_options fails, the error handler can reference it. + # And then here, once _init_with_options succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_options(resource_name, id_query, reset_device, options)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-SCOPE', grpc_options.grpc_channel, connected) + + # NI-TClk does not work over NI gRPC Device Server + if not grpc_options: + self.tclk = nitclk.SessionReference(self._interpreter.get_session_handle()) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("id_query=" + pp.pformat(id_query)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Initiates a waveform acquisition. + + After calling this method, the digitizer leaves the Idle state and + waits for a trigger. The digitizer acquires a waveform for each channel + you enable with configure_vertical. + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Acquisition(self) + + def close(self): + '''close + + When you are finished using an instrument driver session, you must call + this method to perform the following actions: + + - Closes the instrument I/O session. + - Destroys the IVI session and all of its properties. + - Deallocates any memory resources used by the IVI session. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Aborts an acquisition and returns the digitizer to the Idle state. Call + this method if the digitizer times out waiting for a trigger. + ''' + self._interpreter.abort() + + @ivi_synchronized + def acquisition_status(self): + r'''acquisition_status + + Returns status information about the acquisition to the **status** + output parameter. + + Returns: + acquisition_status (enums.AcquisitionStatus): Returns whether the acquisition is complete, in progress, or unknown. + + **Defined Values** + + AcquisitionStatus.COMPLETE + + AcquisitionStatus.IN_PROGRESS + + AcquisitionStatus.STATUS_UNKNOWN + + ''' + acquisition_status = self._interpreter.acquisition_status() + return acquisition_status + + @ivi_synchronized + def auto_setup(self): + r'''auto_setup + + Automatically configures the instrument. When you call this method, + the digitizer senses the input signal and automatically configures many + of the instrument settings. If a signal is detected on a channel, the + driver chooses the smallest available vertical range that is larger than + the signal range. For example, if the signal is a 1.2 V\ :sub:`pk-pk` + sine wave, and the device supports 1 V and 2 V vertical ranges, the + driver will choose the 2 V vertical range for that channel. + + If no signal is found on any analog input channel, a warning is + returned, and all channels are enabled. A channel is considered to have + a signal present if the signal is at least 10% of the smallest vertical + range available for that channel. + + The following settings are changed: + + +--------------------+-----------------------------------------------+ + | **General** | | + +--------------------+-----------------------------------------------+ + | Acquisition mode | Normal | + +--------------------+-----------------------------------------------+ + | Reference clock | Internal | + +--------------------+-----------------------------------------------+ + | **Vertical** | | + +--------------------+-----------------------------------------------+ + | Vertical coupling | AC (DC for NI 5621) | + +--------------------+-----------------------------------------------+ + | Vertical bandwidth | Full | + +--------------------+-----------------------------------------------+ + | Vertical range | Changed by auto setup | + +--------------------+-----------------------------------------------+ + | Vertical offset | 0 V | + +--------------------+-----------------------------------------------+ + | Probe attenuation | Unchanged by auto setup | + +--------------------+-----------------------------------------------+ + | Input impedance | Unchanged by auto setup | + +--------------------+-----------------------------------------------+ + | **Horizontal** | | + +--------------------+-----------------------------------------------+ + | Sample rate | Changed by auto setup | + +--------------------+-----------------------------------------------+ + | Min record length | Changed by auto setup | + +--------------------+-----------------------------------------------+ + | Enforce realtime | True | + +--------------------+-----------------------------------------------+ + | Number of Records | Changed to 1 | + +--------------------+-----------------------------------------------+ + | **Triggering** | | + +--------------------+-----------------------------------------------+ + | Trigger type | Edge if signal present, otherwise immediate | + +--------------------+-----------------------------------------------+ + | Trigger channel | Lowest numbered channel with a signal present | + +--------------------+-----------------------------------------------+ + | Trigger slope | Positive | + +--------------------+-----------------------------------------------+ + | Trigger coupling | DC | + +--------------------+-----------------------------------------------+ + | Reference position | 50% | + +--------------------+-----------------------------------------------+ + | Trigger level | 50% of signal on trigger channel | + +--------------------+-----------------------------------------------+ + | Trigger delay | 0 | + +--------------------+-----------------------------------------------+ + | Trigger holdoff | 0 | + +--------------------+-----------------------------------------------+ + | Trigger output | None | + +--------------------+-----------------------------------------------+ + ''' + self._interpreter.auto_setup() + + @ivi_synchronized + def _cal_fetch_date(self, which_one): + r'''_cal_fetch_date + + TBD + + Args: + which_one (enums._CalibrationTypes): + + + Returns: + year (int): + + month (int): + + day (int): + + ''' + if type(which_one) is not enums._CalibrationTypes: + raise TypeError('Parameter which_one must be of type ' + str(enums._CalibrationTypes)) + year, month, day = self._interpreter.cal_fetch_date(which_one) + return year, month, day + + @ivi_synchronized + def _cal_fetch_temperature(self, which_one): + r'''_cal_fetch_temperature + + TBD + + Args: + which_one (int): + + + Returns: + temperature (float): + + ''' + temperature = self._interpreter.cal_fetch_temperature(which_one) + return temperature + + @ivi_synchronized + def commit(self): + r'''commit + + Commits to hardware all the parameter settings associated with the task. + Use this method if you want a parameter change to be immediately + reflected in the hardware. This method is not supported for + Traditional NI-DAQ (Legacy) devices. + ''' + self._interpreter.commit() + + @ivi_synchronized + def configure_horizontal_timing(self, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): + r'''configure_horizontal_timing + + Configures the common properties of the horizontal subsystem for a + multirecord acquisition in terms of minimum sample rate. + + Args: + min_sample_rate (float): The sampling rate for the acquisition. Refer to + min_sample_rate for more information. + + min_num_pts (int): The minimum number of points you need in the record for each channel; + call ActualRecordLength to obtain the actual record length + used. + + Valid Values: Greater than 1; limited by available memory + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + ref_position (float): The position of the Reference Event in the waveform record specified as + a percentage. + + num_records (int): The number of records to acquire + + enforce_realtime (bool): Indicates whether the digitizer enforces real-time measurements or + allows equivalent-time (RIS) measurements; not all digitizers support + RIS—refer to `Features Supported by + Device `__ for + more information. + + Default value: True + + **Defined Values** + + True—Allow real-time acquisitions only + + False—Allow real-time and equivalent-time acquisitions + + ''' + self._interpreter.configure_horizontal_timing(min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime) + + @ivi_synchronized + def _configure_ref_levels(self, low=10.0, mid=50.0, high=90.0): + r'''_configure_ref_levels + + This method is included for compliance with the IviScope Class + Specification. + + Configures the reference levels for all channels of the digitizer. The + levels may be set on a per channel basis by setting + meas_chan_high_ref_level, + meas_chan_low_ref_level, and + meas_chan_mid_ref_level + + This method configures the reference levels for waveform measurements. + Call this method before calling FetchMeasurement to take a + rise time, fall time, width negative, width positive, duty cycle + negative, or duty cycle positive measurement. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Args: + low (float): Pass the low reference you want the digitizer to use for waveform + measurements. + + Units: Either a percentage or voltage based on + meas_ref_level_units. A percentage is calculated with + the voltage low and voltage high measurements representing 0% and 100%, + respectively. + + Default Value: 10.0 + + mid (float): Pass the mid reference you want the digitizer to use for waveform + measurements. + + Units: Either a percentage or voltage based on + meas_ref_level_units. A percentage is calculated with + the voltage low and voltage high measurements representing 0% and 100%, + respectively. + + Default Value: 50.0 + + high (float): Pass the high reference you want the digitizer to use for waveform + measurements. + + Units: Either a percentage or voltage based on + meas_ref_level_units. A percentage is calculated with + the voltage low and voltage high measurements representing 0% and 100%, + respectively. + + Default Value: 90.0 + + ''' + self._interpreter.configure_ref_levels(low, mid, high) + + @ivi_synchronized + def configure_trigger_digital(self, trigger_source, slope=enums.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): + r'''configure_trigger_digital + + Configures the common properties of a digital trigger. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the acq_arm_source + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + Note: + For multirecord acquisitions, all records after the first record are + started by using the Advance Trigger Source. The default is immediate. + + You can adjust the amount of pre-trigger and post-trigger samples using + the reference position parameter on the + configure_horizontal_timing method. The default is half of the + record length. + + Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + Digital triggering is not supported in RIS mode. + + Args: + trigger_source (str): Specifies the trigger source. Refer to trigger_source + for defined values. + + slope (enums.TriggerSlope): Specifies whether you want a rising edge or a falling edge to trigger + the digitizer. Refer to trigger_slope for more + information. + + holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + trigger_holdoff for more information. + + delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to trigger_delay_time for more + information. + + ''' + if type(slope) is not enums.TriggerSlope: + raise TypeError('Parameter slope must be of type ' + str(enums.TriggerSlope)) + holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) + delay = _converters.convert_timedelta_to_seconds_real64(delay) + self._interpreter.configure_trigger_digital(trigger_source, slope, holdoff, delay) + + @ivi_synchronized + def configure_trigger_edge(self, trigger_source, level, trigger_coupling, slope=enums.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): + r'''configure_trigger_edge + + Configures common properties for analog edge triggering. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the acq_arm_source + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + Note: + Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + Args: + trigger_source (str): Specifies the trigger source. Refer to trigger_source + for defined values. + + level (float): The voltage threshold for the trigger. Refer to + trigger_level for more information. + + trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to + trigger_coupling for more information. + + slope (enums.TriggerSlope): Specifies whether you want a rising edge or a falling edge to trigger + the digitizer. Refer to trigger_slope for more + information. + + holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + trigger_holdoff for more information. + + delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to trigger_delay_time for more + information. + + ''' + if type(slope) is not enums.TriggerSlope: + raise TypeError('Parameter slope must be of type ' + str(enums.TriggerSlope)) + if type(trigger_coupling) is not enums.TriggerCoupling: + raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) + holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) + delay = _converters.convert_timedelta_to_seconds_real64(delay) + self._interpreter.configure_trigger_edge(trigger_source, level, slope, trigger_coupling, holdoff, delay) + + @ivi_synchronized + def configure_trigger_hysteresis(self, trigger_source, level, hysteresis, trigger_coupling, slope=enums.TriggerSlope.POSITIVE, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): + r'''configure_trigger_hysteresis + + Configures common properties for analog hysteresis triggering. This kind + of trigger specifies an additional value, specified in the + **hysteresis** parameter, that a signal must pass through before a + trigger can occur. This additional value acts as a kind of buffer zone + that keeps noise from triggering an acquisition. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the + acq_arm_source. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + Note: + Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + Args: + trigger_source (str): Specifies the trigger source. Refer to trigger_source + for defined values. + + level (float): The voltage threshold for the trigger. Refer to + trigger_level for more information. + + hysteresis (float): The size of the hysteresis window on either side of the **level** in + volts; the digitizer triggers when the trigger signal passes through the + hysteresis value you specify with this parameter, has the slope you + specify with **slope**, and passes through the **level**. Refer to + trigger_hysteresis for defined values. + + trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to + trigger_coupling for more information. + + slope (enums.TriggerSlope): Specifies whether you want a rising edge or a falling edge to trigger + the digitizer. Refer to trigger_slope for more + information. + + holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + trigger_holdoff for more information. + + delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to trigger_delay_time for more + information. + + ''' + if type(slope) is not enums.TriggerSlope: + raise TypeError('Parameter slope must be of type ' + str(enums.TriggerSlope)) + if type(trigger_coupling) is not enums.TriggerCoupling: + raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) + holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) + delay = _converters.convert_timedelta_to_seconds_real64(delay) + self._interpreter.configure_trigger_hysteresis(trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay) + + @ivi_synchronized + def configure_trigger_immediate(self): + r'''configure_trigger_immediate + + Configures common properties for immediate triggering. Immediate + triggering means the digitizer triggers itself. + + When you initiate an acquisition, the digitizer waits for a trigger. You + specify the type of trigger that the digitizer waits for with a + Configure Trigger method, such as configure_trigger_immediate. + ''' + self._interpreter.configure_trigger_immediate() + + @ivi_synchronized + def configure_trigger_software(self, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): + r'''configure_trigger_software + + Configures common properties for software triggering. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the acq_arm_source + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + To trigger the acquisition, use send_software_trigger_edge. + + Note: + Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + Args: + holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + trigger_holdoff for more information. + + delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to trigger_delay_time for more + information. + + ''' + holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) + delay = _converters.convert_timedelta_to_seconds_real64(delay) + self._interpreter.configure_trigger_software(holdoff, delay) + + @ivi_synchronized + def configure_trigger_video(self, trigger_source, signal_format, event, polarity, trigger_coupling, enable_dc_restore=False, line_number=1, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): + r'''configure_trigger_video + + Configures the common properties for video triggering, including the + signal format, TV event, line number, polarity, and enable DC restore. A + video trigger occurs when the digitizer finds a valid video signal sync. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the acq_arm_source + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + Note: + Some features are not supported by all digitizers. Refer to `Features + Supported by + Device `__ for + more information. + + Args: + trigger_source (str): Specifies the trigger source. Refer to trigger_source + for defined values. + + signal_format (enums.VideoSignalFormat): Specifies the type of video signal sync the digitizer should look for. + Refer to tv_trigger_signal_format for more + information. + + event (enums.VideoTriggerEvent): Specifies the TV event you want to trigger on. You can trigger on a + specific or on the next coming line or field of the signal. + + polarity (enums.VideoPolarity): Specifies the polarity of the video signal sync. + + trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to + trigger_coupling for more information. + + enable_dc_restore (bool): Offsets each video line so the clamping level (the portion of the video + line between the end of the color burst and the beginning of the active + image) is moved to zero volt. Refer to + enable_dc_restore for defined values. + + line_number (int): Selects the line number to trigger on. The line number range covers an + entire frame and is referenced as shown on `Vertical Blanking and + Synchronization + Signal `__. Refer to + tv_trigger_line_number for more information. + + Default value: 1 + + holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + trigger_holdoff for more information. + + delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to trigger_delay_time for more + information. + + ''' + if type(signal_format) is not enums.VideoSignalFormat: + raise TypeError('Parameter signal_format must be of type ' + str(enums.VideoSignalFormat)) + if type(event) is not enums.VideoTriggerEvent: + raise TypeError('Parameter event must be of type ' + str(enums.VideoTriggerEvent)) + if type(polarity) is not enums.VideoPolarity: + raise TypeError('Parameter polarity must be of type ' + str(enums.VideoPolarity)) + if type(trigger_coupling) is not enums.TriggerCoupling: + raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) + holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) + delay = _converters.convert_timedelta_to_seconds_real64(delay) + self._interpreter.configure_trigger_video(trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay) + + @ivi_synchronized + def configure_trigger_window(self, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff=hightime.timedelta(seconds=0.0), delay=hightime.timedelta(seconds=0.0)): + r'''configure_trigger_window + + Configures common properties for analog window triggering. A window + trigger occurs when a signal enters or leaves a window you specify with + the **high level** or **low level** parameters. + + When you initiate an acquisition, the digitizer waits for the start + trigger, which is configured through the acq_arm_source + (Start Trigger Source) property. The default is immediate. Upon + receiving the start trigger the digitizer begins sampling pretrigger + points. After the digitizer finishes sampling pretrigger points, the + digitizer waits for a reference (stop) trigger that you specify with a + method such as this one. Upon receiving the reference trigger the + digitizer finishes the acquisition after completing posttrigger + sampling. With each Configure Trigger method, you specify + configuration parameters such as the trigger source and the amount of + trigger delay. + + To trigger the acquisition, use send_software_trigger_edge. + + Note: Some features are not supported by all digitizers. + + Args: + trigger_source (str): Specifies the trigger source. Refer to trigger_source + for defined values. + + low_level (float): Passes the voltage threshold you want the digitizer to use for low + triggering. + + high_level (float): Passes the voltage threshold you want the digitizer to use for high + triggering. + + window_mode (enums.TriggerWindowMode): Specifies whether you want the trigger to occur when the signal enters + or leaves a window. + + trigger_coupling (enums.TriggerCoupling): Applies coupling and filtering options to the trigger signal. Refer to + trigger_coupling for more information. + + holdoff (hightime.timedelta, datetime.timedelta, or float in seconds): The length of time the digitizer waits after detecting a trigger before + enabling NI-SCOPE to detect another trigger. Refer to + trigger_holdoff for more information. + + delay (hightime.timedelta, datetime.timedelta, or float in seconds): How long the digitizer waits after receiving the trigger to start + acquiring data. Refer to trigger_delay_time for more + information. + + ''' + if type(window_mode) is not enums.TriggerWindowMode: + raise TypeError('Parameter window_mode must be of type ' + str(enums.TriggerWindowMode)) + if type(trigger_coupling) is not enums.TriggerCoupling: + raise TypeError('Parameter trigger_coupling must be of type ' + str(enums.TriggerCoupling)) + holdoff = _converters.convert_timedelta_to_seconds_real64(holdoff) + delay = _converters.convert_timedelta_to_seconds_real64(delay) + self._interpreter.configure_trigger_window(trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay) + + @ivi_synchronized + def disable(self): + r'''disable + + Aborts any current operation, opens data channel relays, and releases + RTSI and PFI lines. + ''' + self._interpreter.disable() + + @ivi_synchronized + def export_attribute_configuration_buffer(self): + r'''export_attribute_configuration_buffer + + Exports the property configuration of the session to a configuration + buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑SCOPE returns an + error. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + Returns: + configuration (bytes): Specifies the byte array buffer to be populated with the exported + property configuration. + + ''' + configuration = self._interpreter.export_attribute_configuration_buffer() + return _converters.convert_to_bytes(configuration) + + @ivi_synchronized + def export_attribute_configuration_file(self, file_path): + r'''export_attribute_configuration_file + + Exports the property configuration of the session to the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + This method verifies that the properties you have configured for the + session are valid. If the configuration is invalid, NI‑SCOPE returns an + error. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + Args: + file_path (str): Specifies the absolute path to the file to contain the exported + property configuration. If you specify an empty or relative path, this + method returns an error. + **Default file extension:** .niscopeconfig + + ''' + self._interpreter.export_attribute_configuration_file(file_path) + + @ivi_synchronized + def get_ext_cal_last_date_and_time(self): + '''get_ext_cal_last_date_and_time + + Returns the date and time of the last external calibration performed. + + Returns: + last_cal_datetime (hightime.timedelta, datetime.timedelta, or float in seconds): Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. + + ''' + + year, month, day = self._cal_fetch_date(enums._CalibrationTypes.EXTERNAL) + return hightime.datetime(year, month, day) + + @ivi_synchronized + def get_ext_cal_last_temp(self): + '''get_ext_cal_last_temp + + Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful external calibration. + The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. + Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. + + Returns: + temperature (float): Returns the **temperature** in degrees Celsius during the last calibration. + + ''' + + return self._cal_fetch_temperature(enums._CalibrationTypes.EXTERNAL.value) + + @ivi_synchronized + def get_self_cal_last_date_and_time(self): + '''get_self_cal_last_date_and_time + + Returns the date and time of the last self calibration performed. + + Returns: + last_cal_datetime (hightime.timedelta, datetime.timedelta, or float in seconds): Indicates the **date** of the last calibration. A hightime.datetime object is returned, but only contains resolution to the day. + + ''' + + year, month, day = self._cal_fetch_date(enums._CalibrationTypes.SELF) + return hightime.datetime(year, month, day) + + @ivi_synchronized + def get_self_cal_last_temp(self): + '''get_self_cal_last_temp + + Returns the onboard temperature, in degrees Celsius, of an oscilloscope at the time of the last successful self calibration. + The temperature returned by this node is an onboard temperature read from a sensor on the surface of the oscilloscope. This temperature should not be confused with the environmental temperature of the oscilloscope surroundings. During operation, the onboard temperature is normally higher than the environmental temperature. + Temperature-sensitive parameters are calibrated during self-calibration. Therefore, the self-calibration temperature is usually more important to read than the external calibration temperature. + + Returns: + temperature (float): Returns the **temperature** in degrees Celsius during the last calibration. + + ''' + + return self._cal_fetch_temperature(enums._CalibrationTypes.SELF.value) + + @ivi_synchronized + def get_channel_names(self, indices): + r'''get_channel_names + + Returns a list of channel names for given channel indices. + + Args: + indices (basic sequence types, str, or int): Index list for the channels in the session. Valid values are from zero to the total number of channels in the session minus one. The index string can be one of the following formats: + + - A comma-separated list—for example, "0,2,3,1" + - A range using a hyphen—for example, "0-3" + - A range using a colon—for example, "0:3 " + + You can combine comma-separated lists and ranges that use a hyphen or colon. Both out-of-order and repeated indices are supported ("2,3,0", "1,2,2,3"). White space characters, including spaces, tabs, feeds, and carriage returns, are allowed between characters. Ranges can be incrementing or decrementing. + + + Returns: + names (list of str): The channel name(s) at the specified indices. + + ''' + indices = _converters.convert_repeated_capabilities_without_prefix(indices) + names = self._interpreter.get_channel_names(indices) + return _converters.convert_comma_separated_string_to_list(names) + + @ivi_synchronized + def import_attribute_configuration_buffer(self, configuration): + r'''import_attribute_configuration_buffer + + Imports a property configuration to the session from the specified + configuration buffer. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + Note: + You cannot call this method while the session is in a running state, + such as while acquiring a signal. + + Args: + configuration (bytes): Specifies the byte array buffer that contains the property + configuration to import. + + ''' + configuration = _converters.convert_to_bytes(configuration) + self._interpreter.import_attribute_configuration_buffer(configuration) + + @ivi_synchronized + def import_attribute_configuration_file(self, file_path): + r'''import_attribute_configuration_file + + Imports a property configuration to the session from the specified + file. + + You can export and import session property configurations only between + devices with identical model numbers, channel counts, and onboard memory + sizes. + + **Related Topics:** + + `Properties and Property + Methods `__ + + `Setting Properties Before Reading + Properties `__ + + Note: + You cannot call this method while the session is in a running state, + such as while acquiring a signal. + + Args: + file_path (str): Specifies the absolute path to the file containing the property + configuration to import. If you specify an empty or relative path, this + method returns an error. + **Default File Extension:** .niscopeconfig + + ''' + self._interpreter.import_attribute_configuration_file(file_path) + + def _init_with_options(self, resource_name, id_query=False, reset_device=False, option_string=""): + r'''_init_with_options + + Performs the following initialization actions: + + - Creates a new IVI instrument driver and optionally sets the initial + state of the following session properties: Range Check, Cache, + Simulate, Record Value Coercions + - Opens a session to the specified device using the interface and + address you specify for the **resourceName** + - Resets the digitizer to a known state if **resetDevice** is set to + True + - Queries the instrument ID and verifies that it is valid for this + instrument driver if the **IDQuery** is set to True + - Returns an instrument handle that you use to identify the instrument + in all subsequent instrument driver method calls + + Args: + resource_name (str): Caution: + Traditional NI-DAQ and NI-DAQmx device names are not case-sensitive. + However, all IVI names, such as logical names, are case-sensitive. If + you use logical names, driver session names, or virtual names in your + program, you must make sure that the name you use matches the name in + the IVI Configuration Store file exactly, without any variations in the + case of the characters. + + | Specifies the resource name of the device to initialize + + For Traditional NI-DAQ devices, the syntax is DAQ::\ *n*, where *n* is + the device number assigned by MAX, as shown in Example 1. + + For NI-DAQmx devices, the syntax is just the device name specified in + MAX, as shown in Example 2. Typical default names for NI-DAQmx devices + in MAX are Dev1 or PXI1Slot1. You can rename an NI-DAQmx device by + right-clicking on the name in MAX and entering a new name. + + An alternate syntax for NI-DAQmx devices consists of DAQ::NI-DAQmx + device name, as shown in Example 3. This naming convention allows for + the use of an NI-DAQmx device in an application that was originally + designed for a Traditional NI-DAQ device. For example, if the + application expects DAQ::1, you can rename the NI-DAQmx device to 1 in + MAX and pass in DAQ::1 for the resource name, as shown in Example 4. + + If you use the DAQ::\ *n* syntax and an NI-DAQmx device name already + exists with that same name, the NI-DAQmx device is matched first. + + You can also pass in the name of an IVI logical name or an IVI virtual + name configured with the IVI Configuration utility, as shown in Example + 5. A logical name identifies a particular virtual instrument. A virtual + name identifies a specific device and specifies the initial settings for + the session. + + +---------+--------------------------------------+--------------------------------------------------+ + | Example | Device Type | Syntax | + +=========+======================================+==================================================+ + | 1 | Traditional NI-DAQ device | DAQ::1 (1 = device number) | + +---------+--------------------------------------+--------------------------------------------------+ + | 2 | NI-DAQmx device | myDAQmxDevice (myDAQmxDevice = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 3 | NI-DAQmx device | DAQ::myDAQmxDevice (myDAQmxDevice = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 4 | NI-DAQmx device | DAQ::2 (2 = device name) | + +---------+--------------------------------------+--------------------------------------------------+ + | 5 | IVI logical name or IVI virtual name | myLogicalName (myLogicalName = name) | + +---------+--------------------------------------+--------------------------------------------------+ + + id_query (bool): Specify whether to perform an ID query. + + When you set this parameter to True, NI-SCOPE verifies that the + device you initialize is a type that it supports. + + When you set this parameter to False, the method initializes the + device without performing an ID query. + + **Defined Values** + + | True—Perform ID query + | False—Skip ID query + + **Default Value**: True + + reset_device (bool): Specify whether to reset the device during the initialization process. + + Default Value: True + + **Defined Values** + + True (1)—Reset device + + False (0)—Do not reset device + + Note: + For the NI 5112, repeatedly resetting the device may cause excessive + wear on the electromechanical relays. Refer to `NI 5112 + Electromechanical Relays `__ + for recommended programming practices. + + option_string (dict): | Specifies initialization commands. The following table lists the + properties and the name you use in the **optionString** to identify + the property. + + Default Values: "Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1" + + You can use the option string to simulate a device. The DriverSetup flag + specifies the model that is to be simulated and the type of the model. + One example to simulate an NI PXI-5102 would be as follows: + + Option String: Simulate = 1, DriverSetup = Model:5102; BoardType:PXI + + Refer to the example niScope EX Simulated Acquisition for more + information on simulation. + + You can also use the option string to attach an accessory such as the + NI 5900 to your digitizer session to allow the seamless use of the + accessory: + + Option String: DriverSetup = Accessory:Dev1 + + Refer to the example niScope EX External Amplifier for more information. + + + Returns: + vi (int): Returns a session handle that you can use to identify the device in all + subsequent NI-SCOPE method calls. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + vi = self._interpreter.init_with_options(resource_name, id_query, reset_device, option_string) + return vi + + @ivi_synchronized + def _initiate_acquisition(self): + r'''_initiate_acquisition + + Initiates a waveform acquisition. + + After calling this method, the digitizer leaves the Idle state and + waits for a trigger. The digitizer acquires a waveform for each channel + you enable with configure_vertical. + ''' + self._interpreter.initiate_acquisition() + + @ivi_synchronized + def probe_compensation_signal_start(self): + r'''probe_compensation_signal_start + + Starts the 1 kHz square wave output on PFI 1 for probe compensation. + ''' + self._interpreter.probe_compensation_signal_start() + + @ivi_synchronized + def probe_compensation_signal_stop(self): + r'''probe_compensation_signal_stop + + Stops the 1 kHz square wave output on PFI 1 for probe compensation. + ''' + self._interpreter.probe_compensation_signal_stop() + + @ivi_synchronized + def reset_device(self): + r'''reset_device + + Performs a hard reset of the device. Acquisition stops, all routes are + released, RTSI and PFI lines are tristated, hardware is configured to + its default state, and all session properties are reset to their default + state. + + - `Thermal Shutdown `__ + ''' + self._interpreter.reset_device() + + @ivi_synchronized + def reset_with_defaults(self): + r'''reset_with_defaults + + Performs a software reset of the device, returning it to the default + state and applying any initial default settings from the IVI + Configuration Store. + ''' + self._interpreter.reset_with_defaults() + + @ivi_synchronized + def send_software_trigger_edge(self, which_trigger): + r'''send_software_trigger_edge + + Sends the selected trigger to the digitizer. Call this method if you + called configure_trigger_software when you want the Reference + trigger to occur. You can also call this method to override a misused + edge, digital, or hysteresis trigger. If you have configured + acq_arm_source, arm_ref_trig_src, or + adv_trig_src, call this method when you want to send + the corresponding trigger to the digitizer. + + Args: + which_trigger (enums.WhichTrigger): Specifies the type of trigger to send to the digitizer. + + **Defined Values** + + | WhichTrigger.START (0L) + | WhichTrigger.ARM_REFERENCE (1L) + | WhichTrigger.REFERENCE (2L) + | WhichTrigger.ADVANCE (3L) + + ''' + if type(which_trigger) is not enums.WhichTrigger: + raise TypeError('Parameter which_trigger must be of type ' + str(enums.WhichTrigger)) + self._interpreter.send_software_trigger_edge(which_trigger) + + def _close(self): + r'''_close + + When you are finished using an instrument driver session, you must call + this method to perform the following actions: + + - Closes the instrument I/O session. + - Destroys the IVI session and all of its properties. + - Deallocates any memory resources used by the IVI session. + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Runs the instrument self-test routine and returns the test result(s). Refer to the + device-specific help topics for an explanation of the message contents. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def reset(self): + r'''reset + + Stops the acquisition, releases routes, and all session properties are + reset to their `default + states `__. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Runs the instrument self-test routine and returns the test result(s). + + Returns: + self_test_result (int): This control contains the value returned from the instrument self-test. + + **Self-Test Code Description** + + 0—Self-test passed + + 1—Self-test failed + + self_test_message (str): Returns the self-test response string from the instrument. Refer to the + device-specific help topics for an explanation of the string contents; + you must pass a ViChar array at least IVI_MAX_MESSAGE_BUF_SIZE bytes + in length. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/niscope/niscope/unit_tests/_matchers.py b/generated/niscope/niscope/unit_tests/_matchers.py new file mode 100644 index 0000000000..9f46f7d6a4 --- /dev/null +++ b/generated/niscope/niscope/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import niscope._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/niscope/niscope/unit_tests/_mock_helper.py b/generated/niscope/niscope/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..b99a2778f4 --- /dev/null +++ b/generated/niscope/niscope/unit_tests/_mock_helper.py @@ -0,0 +1,971 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['Abort'] = {} + self._defaults['Abort']['return'] = 0 + self._defaults['AcquisitionStatus'] = {} + self._defaults['AcquisitionStatus']['return'] = 0 + self._defaults['AcquisitionStatus']['acquisitionStatus'] = None + self._defaults['ActualMeasWfmSize'] = {} + self._defaults['ActualMeasWfmSize']['return'] = 0 + self._defaults['ActualMeasWfmSize']['measWaveformSize'] = None + self._defaults['ActualNumWfms'] = {} + self._defaults['ActualNumWfms']['return'] = 0 + self._defaults['ActualNumWfms']['numWfms'] = None + self._defaults['AddWaveformProcessing'] = {} + self._defaults['AddWaveformProcessing']['return'] = 0 + self._defaults['AutoSetup'] = {} + self._defaults['AutoSetup']['return'] = 0 + self._defaults['CalFetchDate'] = {} + self._defaults['CalFetchDate']['return'] = 0 + self._defaults['CalFetchDate']['year'] = None + self._defaults['CalFetchDate']['month'] = None + self._defaults['CalFetchDate']['day'] = None + self._defaults['CalFetchTemperature'] = {} + self._defaults['CalFetchTemperature']['return'] = 0 + self._defaults['CalFetchTemperature']['temperature'] = None + self._defaults['CalSelfCalibrate'] = {} + self._defaults['CalSelfCalibrate']['return'] = 0 + self._defaults['ClearWaveformMeasurementStats'] = {} + self._defaults['ClearWaveformMeasurementStats']['return'] = 0 + self._defaults['ClearWaveformProcessing'] = {} + self._defaults['ClearWaveformProcessing']['return'] = 0 + self._defaults['Commit'] = {} + self._defaults['Commit']['return'] = 0 + self._defaults['ConfigureChanCharacteristics'] = {} + self._defaults['ConfigureChanCharacteristics']['return'] = 0 + self._defaults['ConfigureEqualizationFilterCoefficients'] = {} + self._defaults['ConfigureEqualizationFilterCoefficients']['return'] = 0 + self._defaults['ConfigureHorizontalTiming'] = {} + self._defaults['ConfigureHorizontalTiming']['return'] = 0 + self._defaults['ConfigureRefLevels'] = {} + self._defaults['ConfigureRefLevels']['return'] = 0 + self._defaults['ConfigureTriggerDigital'] = {} + self._defaults['ConfigureTriggerDigital']['return'] = 0 + self._defaults['ConfigureTriggerEdge'] = {} + self._defaults['ConfigureTriggerEdge']['return'] = 0 + self._defaults['ConfigureTriggerHysteresis'] = {} + self._defaults['ConfigureTriggerHysteresis']['return'] = 0 + self._defaults['ConfigureTriggerImmediate'] = {} + self._defaults['ConfigureTriggerImmediate']['return'] = 0 + self._defaults['ConfigureTriggerSoftware'] = {} + self._defaults['ConfigureTriggerSoftware']['return'] = 0 + self._defaults['ConfigureTriggerVideo'] = {} + self._defaults['ConfigureTriggerVideo']['return'] = 0 + self._defaults['ConfigureTriggerWindow'] = {} + self._defaults['ConfigureTriggerWindow']['return'] = 0 + self._defaults['ConfigureVertical'] = {} + self._defaults['ConfigureVertical']['return'] = 0 + self._defaults['Disable'] = {} + self._defaults['Disable']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer'] = {} + self._defaults['ExportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ExportAttributeConfigurationBuffer']['configuration'] = None + self._defaults['ExportAttributeConfigurationFile'] = {} + self._defaults['ExportAttributeConfigurationFile']['return'] = 0 + self._defaults['Fetch'] = {} + self._defaults['Fetch']['return'] = 0 + self._defaults['Fetch']['waveform'] = None + self._defaults['Fetch']['wfmInfo'] = None + self._defaults['FetchArrayMeasurement'] = {} + self._defaults['FetchArrayMeasurement']['return'] = 0 + self._defaults['FetchArrayMeasurement']['measWfm'] = None + self._defaults['FetchArrayMeasurement']['wfmInfo'] = None + self._defaults['FetchBinary16'] = {} + self._defaults['FetchBinary16']['return'] = 0 + self._defaults['FetchBinary16']['waveform'] = None + self._defaults['FetchBinary16']['wfmInfo'] = None + self._defaults['FetchBinary32'] = {} + self._defaults['FetchBinary32']['return'] = 0 + self._defaults['FetchBinary32']['waveform'] = None + self._defaults['FetchBinary32']['wfmInfo'] = None + self._defaults['FetchBinary8'] = {} + self._defaults['FetchBinary8']['return'] = 0 + self._defaults['FetchBinary8']['waveform'] = None + self._defaults['FetchBinary8']['wfmInfo'] = None + self._defaults['FetchMeasurementStats'] = {} + self._defaults['FetchMeasurementStats']['return'] = 0 + self._defaults['FetchMeasurementStats']['result'] = None + self._defaults['FetchMeasurementStats']['mean'] = None + self._defaults['FetchMeasurementStats']['stdev'] = None + self._defaults['FetchMeasurementStats']['min'] = None + self._defaults['FetchMeasurementStats']['max'] = None + self._defaults['FetchMeasurementStats']['numInStats'] = None + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['value'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['value'] = None + self._defaults['GetAttributeViInt64'] = {} + self._defaults['GetAttributeViInt64']['return'] = 0 + self._defaults['GetAttributeViInt64']['value'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['value'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['value'] = None + self._defaults['GetChannelNameFromString'] = {} + self._defaults['GetChannelNameFromString']['return'] = 0 + self._defaults['GetChannelNameFromString']['name'] = None + self._defaults['GetEqualizationFilterCoefficients'] = {} + self._defaults['GetEqualizationFilterCoefficients']['return'] = 0 + self._defaults['GetEqualizationFilterCoefficients']['coefficients'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['description'] = None + self._defaults['ImportAttributeConfigurationBuffer'] = {} + self._defaults['ImportAttributeConfigurationBuffer']['return'] = 0 + self._defaults['ImportAttributeConfigurationFile'] = {} + self._defaults['ImportAttributeConfigurationFile']['return'] = 0 + self._defaults['InitWithOptions'] = {} + self._defaults['InitWithOptions']['return'] = 0 + self._defaults['InitWithOptions']['vi'] = None + self._defaults['InitiateAcquisition'] = {} + self._defaults['InitiateAcquisition']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['ProbeCompensationSignalStart'] = {} + self._defaults['ProbeCompensationSignalStart']['return'] = 0 + self._defaults['ProbeCompensationSignalStop'] = {} + self._defaults['ProbeCompensationSignalStop']['return'] = 0 + self._defaults['Read'] = {} + self._defaults['Read']['return'] = 0 + self._defaults['Read']['waveform'] = None + self._defaults['Read']['wfmInfo'] = None + self._defaults['ResetDevice'] = {} + self._defaults['ResetDevice']['return'] = 0 + self._defaults['ResetWithDefaults'] = {} + self._defaults['ResetWithDefaults']['return'] = 0 + self._defaults['SendSoftwareTriggerEdge'] = {} + self._defaults['SendSoftwareTriggerEdge']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViInt64'] = {} + self._defaults['SetAttributeViInt64']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niScope_Abort(self, vi): # noqa: N802 + if self._defaults['Abort']['return'] != 0: + return self._defaults['Abort']['return'] + return self._defaults['Abort']['return'] + + def niScope_AcquisitionStatus(self, vi, acquisition_status): # noqa: N802 + if self._defaults['AcquisitionStatus']['return'] != 0: + return self._defaults['AcquisitionStatus']['return'] + # acquisition_status + if self._defaults['AcquisitionStatus']['acquisitionStatus'] is None: + raise MockFunctionCallError("niScope_AcquisitionStatus", param='acquisitionStatus') + if acquisition_status is not None: + acquisition_status.contents.value = self._defaults['AcquisitionStatus']['acquisitionStatus'] + return self._defaults['AcquisitionStatus']['return'] + + def niScope_ActualMeasWfmSize(self, vi, array_meas_function, meas_waveform_size): # noqa: N802 + if self._defaults['ActualMeasWfmSize']['return'] != 0: + return self._defaults['ActualMeasWfmSize']['return'] + # meas_waveform_size + if self._defaults['ActualMeasWfmSize']['measWaveformSize'] is None: + raise MockFunctionCallError("niScope_ActualMeasWfmSize", param='measWaveformSize') + if meas_waveform_size is not None: + meas_waveform_size.contents.value = self._defaults['ActualMeasWfmSize']['measWaveformSize'] + return self._defaults['ActualMeasWfmSize']['return'] + + def niScope_ActualNumWfms(self, vi, channel_list, num_wfms): # noqa: N802 + if self._defaults['ActualNumWfms']['return'] != 0: + return self._defaults['ActualNumWfms']['return'] + # num_wfms + if self._defaults['ActualNumWfms']['numWfms'] is None: + raise MockFunctionCallError("niScope_ActualNumWfms", param='numWfms') + if num_wfms is not None: + num_wfms.contents.value = self._defaults['ActualNumWfms']['numWfms'] + return self._defaults['ActualNumWfms']['return'] + + def niScope_AddWaveformProcessing(self, vi, channel_list, meas_function): # noqa: N802 + if self._defaults['AddWaveformProcessing']['return'] != 0: + return self._defaults['AddWaveformProcessing']['return'] + return self._defaults['AddWaveformProcessing']['return'] + + def niScope_AutoSetup(self, vi): # noqa: N802 + if self._defaults['AutoSetup']['return'] != 0: + return self._defaults['AutoSetup']['return'] + return self._defaults['AutoSetup']['return'] + + def niScope_CalFetchDate(self, vi, which_one, year, month, day): # noqa: N802 + if self._defaults['CalFetchDate']['return'] != 0: + return self._defaults['CalFetchDate']['return'] + # year + if self._defaults['CalFetchDate']['year'] is None: + raise MockFunctionCallError("niScope_CalFetchDate", param='year') + if year is not None: + year.contents.value = self._defaults['CalFetchDate']['year'] + # month + if self._defaults['CalFetchDate']['month'] is None: + raise MockFunctionCallError("niScope_CalFetchDate", param='month') + if month is not None: + month.contents.value = self._defaults['CalFetchDate']['month'] + # day + if self._defaults['CalFetchDate']['day'] is None: + raise MockFunctionCallError("niScope_CalFetchDate", param='day') + if day is not None: + day.contents.value = self._defaults['CalFetchDate']['day'] + return self._defaults['CalFetchDate']['return'] + + def niScope_CalFetchTemperature(self, vi, which_one, temperature): # noqa: N802 + if self._defaults['CalFetchTemperature']['return'] != 0: + return self._defaults['CalFetchTemperature']['return'] + # temperature + if self._defaults['CalFetchTemperature']['temperature'] is None: + raise MockFunctionCallError("niScope_CalFetchTemperature", param='temperature') + if temperature is not None: + temperature.contents.value = self._defaults['CalFetchTemperature']['temperature'] + return self._defaults['CalFetchTemperature']['return'] + + def niScope_CalSelfCalibrate(self, vi, channel_list, option): # noqa: N802 + if self._defaults['CalSelfCalibrate']['return'] != 0: + return self._defaults['CalSelfCalibrate']['return'] + return self._defaults['CalSelfCalibrate']['return'] + + def niScope_ClearWaveformMeasurementStats(self, vi, channel_list, clearable_measurement_function): # noqa: N802 + if self._defaults['ClearWaveformMeasurementStats']['return'] != 0: + return self._defaults['ClearWaveformMeasurementStats']['return'] + return self._defaults['ClearWaveformMeasurementStats']['return'] + + def niScope_ClearWaveformProcessing(self, vi, channel_list): # noqa: N802 + if self._defaults['ClearWaveformProcessing']['return'] != 0: + return self._defaults['ClearWaveformProcessing']['return'] + return self._defaults['ClearWaveformProcessing']['return'] + + def niScope_Commit(self, vi): # noqa: N802 + if self._defaults['Commit']['return'] != 0: + return self._defaults['Commit']['return'] + return self._defaults['Commit']['return'] + + def niScope_ConfigureChanCharacteristics(self, vi, channel_list, input_impedance, max_input_frequency): # noqa: N802 + if self._defaults['ConfigureChanCharacteristics']['return'] != 0: + return self._defaults['ConfigureChanCharacteristics']['return'] + return self._defaults['ConfigureChanCharacteristics']['return'] + + def niScope_ConfigureEqualizationFilterCoefficients(self, vi, channel_list, number_of_coefficients, coefficients): # noqa: N802 + if self._defaults['ConfigureEqualizationFilterCoefficients']['return'] != 0: + return self._defaults['ConfigureEqualizationFilterCoefficients']['return'] + return self._defaults['ConfigureEqualizationFilterCoefficients']['return'] + + def niScope_ConfigureHorizontalTiming(self, vi, min_sample_rate, min_num_pts, ref_position, num_records, enforce_realtime): # noqa: N802 + if self._defaults['ConfigureHorizontalTiming']['return'] != 0: + return self._defaults['ConfigureHorizontalTiming']['return'] + return self._defaults['ConfigureHorizontalTiming']['return'] + + def niScope_ConfigureRefLevels(self, vi, low, mid, high): # noqa: N802 + if self._defaults['ConfigureRefLevels']['return'] != 0: + return self._defaults['ConfigureRefLevels']['return'] + return self._defaults['ConfigureRefLevels']['return'] + + def niScope_ConfigureTriggerDigital(self, vi, trigger_source, slope, holdoff, delay): # noqa: N802 + if self._defaults['ConfigureTriggerDigital']['return'] != 0: + return self._defaults['ConfigureTriggerDigital']['return'] + return self._defaults['ConfigureTriggerDigital']['return'] + + def niScope_ConfigureTriggerEdge(self, vi, trigger_source, level, slope, trigger_coupling, holdoff, delay): # noqa: N802 + if self._defaults['ConfigureTriggerEdge']['return'] != 0: + return self._defaults['ConfigureTriggerEdge']['return'] + return self._defaults['ConfigureTriggerEdge']['return'] + + def niScope_ConfigureTriggerHysteresis(self, vi, trigger_source, level, hysteresis, slope, trigger_coupling, holdoff, delay): # noqa: N802 + if self._defaults['ConfigureTriggerHysteresis']['return'] != 0: + return self._defaults['ConfigureTriggerHysteresis']['return'] + return self._defaults['ConfigureTriggerHysteresis']['return'] + + def niScope_ConfigureTriggerImmediate(self, vi): # noqa: N802 + if self._defaults['ConfigureTriggerImmediate']['return'] != 0: + return self._defaults['ConfigureTriggerImmediate']['return'] + return self._defaults['ConfigureTriggerImmediate']['return'] + + def niScope_ConfigureTriggerSoftware(self, vi, holdoff, delay): # noqa: N802 + if self._defaults['ConfigureTriggerSoftware']['return'] != 0: + return self._defaults['ConfigureTriggerSoftware']['return'] + return self._defaults['ConfigureTriggerSoftware']['return'] + + def niScope_ConfigureTriggerVideo(self, vi, trigger_source, enable_dc_restore, signal_format, event, line_number, polarity, trigger_coupling, holdoff, delay): # noqa: N802 + if self._defaults['ConfigureTriggerVideo']['return'] != 0: + return self._defaults['ConfigureTriggerVideo']['return'] + return self._defaults['ConfigureTriggerVideo']['return'] + + def niScope_ConfigureTriggerWindow(self, vi, trigger_source, low_level, high_level, window_mode, trigger_coupling, holdoff, delay): # noqa: N802 + if self._defaults['ConfigureTriggerWindow']['return'] != 0: + return self._defaults['ConfigureTriggerWindow']['return'] + return self._defaults['ConfigureTriggerWindow']['return'] + + def niScope_ConfigureVertical(self, vi, channel_list, range, offset, coupling, probe_attenuation, enabled): # noqa: N802 + if self._defaults['ConfigureVertical']['return'] != 0: + return self._defaults['ConfigureVertical']['return'] + return self._defaults['ConfigureVertical']['return'] + + def niScope_Disable(self, vi): # noqa: N802 + if self._defaults['Disable']['return'] != 0: + return self._defaults['Disable']['return'] + return self._defaults['Disable']['return'] + + def niScope_ExportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + if self._defaults['ExportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + # configuration + if self._defaults['ExportAttributeConfigurationBuffer']['configuration'] is None: + raise MockFunctionCallError("niScope_ExportAttributeConfigurationBuffer", param='configuration') + if size_in_bytes.value == 0: + return len(self._defaults['ExportAttributeConfigurationBuffer']['configuration']) + try: + configuration_ref = configuration.contents + except AttributeError: + configuration_ref = configuration + for i in range(len(self._defaults['ExportAttributeConfigurationBuffer']['configuration'])): + configuration_ref[i] = self._defaults['ExportAttributeConfigurationBuffer']['configuration'][i] + return self._defaults['ExportAttributeConfigurationBuffer']['return'] + + def niScope_ExportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ExportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ExportAttributeConfigurationFile']['return'] + return self._defaults['ExportAttributeConfigurationFile']['return'] + + def niScope_Fetch(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + if self._defaults['Fetch']['return'] != 0: + return self._defaults['Fetch']['return'] + # waveform + if self._defaults['Fetch']['waveform'] is None: + raise MockFunctionCallError("niScope_Fetch", param='waveform') + test_value = self._defaults['Fetch']['waveform'] + try: + waveform_ref = waveform.contents + except AttributeError: + waveform_ref = waveform + assert len(waveform_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_ref[i] = test_value[i] + # wfm_info + if self._defaults['Fetch']['wfmInfo'] is None: + raise MockFunctionCallError("niScope_Fetch", param='wfmInfo') + test_value = self._defaults['Fetch']['wfmInfo'] + try: + wfm_info_ref = wfm_info.contents + except AttributeError: + wfm_info_ref = wfm_info + assert len(wfm_info_ref) >= len(test_value) + for i in range(len(test_value)): + wfm_info_ref[i] = test_value[i] + return self._defaults['Fetch']['return'] + + def niScope_FetchArrayMeasurement(self, vi, channel_list, timeout, array_meas_function, measurement_waveform_size, meas_wfm, wfm_info): # noqa: N802 + if self._defaults['FetchArrayMeasurement']['return'] != 0: + return self._defaults['FetchArrayMeasurement']['return'] + # meas_wfm + if self._defaults['FetchArrayMeasurement']['measWfm'] is None: + raise MockFunctionCallError("niScope_FetchArrayMeasurement", param='measWfm') + test_value = self._defaults['FetchArrayMeasurement']['measWfm'] + try: + meas_wfm_ref = meas_wfm.contents + except AttributeError: + meas_wfm_ref = meas_wfm + assert len(meas_wfm_ref) >= len(test_value) + for i in range(len(test_value)): + meas_wfm_ref[i] = test_value[i] + # wfm_info + if self._defaults['FetchArrayMeasurement']['wfmInfo'] is None: + raise MockFunctionCallError("niScope_FetchArrayMeasurement", param='wfmInfo') + test_value = self._defaults['FetchArrayMeasurement']['wfmInfo'] + try: + wfm_info_ref = wfm_info.contents + except AttributeError: + wfm_info_ref = wfm_info + assert len(wfm_info_ref) >= len(test_value) + for i in range(len(test_value)): + wfm_info_ref[i] = test_value[i] + return self._defaults['FetchArrayMeasurement']['return'] + + def niScope_FetchBinary16(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + if self._defaults['FetchBinary16']['return'] != 0: + return self._defaults['FetchBinary16']['return'] + # waveform + if self._defaults['FetchBinary16']['waveform'] is None: + raise MockFunctionCallError("niScope_FetchBinary16", param='waveform') + test_value = self._defaults['FetchBinary16']['waveform'] + try: + waveform_ref = waveform.contents + except AttributeError: + waveform_ref = waveform + assert len(waveform_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_ref[i] = test_value[i] + # wfm_info + if self._defaults['FetchBinary16']['wfmInfo'] is None: + raise MockFunctionCallError("niScope_FetchBinary16", param='wfmInfo') + test_value = self._defaults['FetchBinary16']['wfmInfo'] + try: + wfm_info_ref = wfm_info.contents + except AttributeError: + wfm_info_ref = wfm_info + assert len(wfm_info_ref) >= len(test_value) + for i in range(len(test_value)): + wfm_info_ref[i] = test_value[i] + return self._defaults['FetchBinary16']['return'] + + def niScope_FetchBinary32(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + if self._defaults['FetchBinary32']['return'] != 0: + return self._defaults['FetchBinary32']['return'] + # waveform + if self._defaults['FetchBinary32']['waveform'] is None: + raise MockFunctionCallError("niScope_FetchBinary32", param='waveform') + test_value = self._defaults['FetchBinary32']['waveform'] + try: + waveform_ref = waveform.contents + except AttributeError: + waveform_ref = waveform + assert len(waveform_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_ref[i] = test_value[i] + # wfm_info + if self._defaults['FetchBinary32']['wfmInfo'] is None: + raise MockFunctionCallError("niScope_FetchBinary32", param='wfmInfo') + test_value = self._defaults['FetchBinary32']['wfmInfo'] + try: + wfm_info_ref = wfm_info.contents + except AttributeError: + wfm_info_ref = wfm_info + assert len(wfm_info_ref) >= len(test_value) + for i in range(len(test_value)): + wfm_info_ref[i] = test_value[i] + return self._defaults['FetchBinary32']['return'] + + def niScope_FetchBinary8(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + if self._defaults['FetchBinary8']['return'] != 0: + return self._defaults['FetchBinary8']['return'] + # waveform + if self._defaults['FetchBinary8']['waveform'] is None: + raise MockFunctionCallError("niScope_FetchBinary8", param='waveform') + test_value = self._defaults['FetchBinary8']['waveform'] + try: + waveform_ref = waveform.contents + except AttributeError: + waveform_ref = waveform + assert len(waveform_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_ref[i] = test_value[i] + # wfm_info + if self._defaults['FetchBinary8']['wfmInfo'] is None: + raise MockFunctionCallError("niScope_FetchBinary8", param='wfmInfo') + test_value = self._defaults['FetchBinary8']['wfmInfo'] + try: + wfm_info_ref = wfm_info.contents + except AttributeError: + wfm_info_ref = wfm_info + assert len(wfm_info_ref) >= len(test_value) + for i in range(len(test_value)): + wfm_info_ref[i] = test_value[i] + return self._defaults['FetchBinary8']['return'] + + def niScope_FetchMeasurementStats(self, vi, channel_list, timeout, scalar_meas_function, result, mean, stdev, min, max, num_in_stats): # noqa: N802 + if self._defaults['FetchMeasurementStats']['return'] != 0: + return self._defaults['FetchMeasurementStats']['return'] + # result + if self._defaults['FetchMeasurementStats']['result'] is None: + raise MockFunctionCallError("niScope_FetchMeasurementStats", param='result') + test_value = self._defaults['FetchMeasurementStats']['result'] + try: + result_ref = result.contents + except AttributeError: + result_ref = result + assert len(result_ref) >= len(test_value) + for i in range(len(test_value)): + result_ref[i] = test_value[i] + # mean + if self._defaults['FetchMeasurementStats']['mean'] is None: + raise MockFunctionCallError("niScope_FetchMeasurementStats", param='mean') + test_value = self._defaults['FetchMeasurementStats']['mean'] + try: + mean_ref = mean.contents + except AttributeError: + mean_ref = mean + assert len(mean_ref) >= len(test_value) + for i in range(len(test_value)): + mean_ref[i] = test_value[i] + # stdev + if self._defaults['FetchMeasurementStats']['stdev'] is None: + raise MockFunctionCallError("niScope_FetchMeasurementStats", param='stdev') + test_value = self._defaults['FetchMeasurementStats']['stdev'] + try: + stdev_ref = stdev.contents + except AttributeError: + stdev_ref = stdev + assert len(stdev_ref) >= len(test_value) + for i in range(len(test_value)): + stdev_ref[i] = test_value[i] + # min + if self._defaults['FetchMeasurementStats']['min'] is None: + raise MockFunctionCallError("niScope_FetchMeasurementStats", param='min') + test_value = self._defaults['FetchMeasurementStats']['min'] + try: + min_ref = min.contents + except AttributeError: + min_ref = min + assert len(min_ref) >= len(test_value) + for i in range(len(test_value)): + min_ref[i] = test_value[i] + # max + if self._defaults['FetchMeasurementStats']['max'] is None: + raise MockFunctionCallError("niScope_FetchMeasurementStats", param='max') + test_value = self._defaults['FetchMeasurementStats']['max'] + try: + max_ref = max.contents + except AttributeError: + max_ref = max + assert len(max_ref) >= len(test_value) + for i in range(len(test_value)): + max_ref[i] = test_value[i] + # num_in_stats + if self._defaults['FetchMeasurementStats']['numInStats'] is None: + raise MockFunctionCallError("niScope_FetchMeasurementStats", param='numInStats') + test_value = self._defaults['FetchMeasurementStats']['numInStats'] + try: + num_in_stats_ref = num_in_stats.contents + except AttributeError: + num_in_stats_ref = num_in_stats + assert len(num_in_stats_ref) >= len(test_value) + for i in range(len(test_value)): + num_in_stats_ref[i] = test_value[i] + return self._defaults['FetchMeasurementStats']['return'] + + def niScope_GetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # value + if self._defaults['GetAttributeViBoolean']['value'] is None: + raise MockFunctionCallError("niScope_GetAttributeViBoolean", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViBoolean']['value'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niScope_GetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # value + if self._defaults['GetAttributeViInt32']['value'] is None: + raise MockFunctionCallError("niScope_GetAttributeViInt32", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt32']['value'] + return self._defaults['GetAttributeViInt32']['return'] + + def niScope_GetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViInt64']['return'] != 0: + return self._defaults['GetAttributeViInt64']['return'] + # value + if self._defaults['GetAttributeViInt64']['value'] is None: + raise MockFunctionCallError("niScope_GetAttributeViInt64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViInt64']['value'] + return self._defaults['GetAttributeViInt64']['return'] + + def niScope_GetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # value + if self._defaults['GetAttributeViReal64']['value'] is None: + raise MockFunctionCallError("niScope_GetAttributeViReal64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViReal64']['value'] + return self._defaults['GetAttributeViReal64']['return'] + + def niScope_GetAttributeViString(self, vi, channel_list, attribute_id, buf_size, value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # value + if self._defaults['GetAttributeViString']['value'] is None: + raise MockFunctionCallError("niScope_GetAttributeViString", param='value') + if buf_size.value == 0: + return len(self._defaults['GetAttributeViString']['value']) + value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niScope_GetChannelNameFromString(self, vi, indices, buffer_size, names): # noqa: N802 + if self._defaults['GetChannelNameFromString']['return'] != 0: + return self._defaults['GetChannelNameFromString']['return'] + # names + if self._defaults['GetChannelNameFromString']['name'] is None: + raise MockFunctionCallError("niScope_GetChannelNameFromString", param='name') + if buffer_size.value == 0: + return len(self._defaults['GetChannelNameFromString']['name']) + names.value = self._defaults['GetChannelNameFromString']['name'].encode('ascii') + return self._defaults['GetChannelNameFromString']['return'] + + def niScope_GetEqualizationFilterCoefficients(self, vi, channel, number_of_coefficients, coefficients): # noqa: N802 + if self._defaults['GetEqualizationFilterCoefficients']['return'] != 0: + return self._defaults['GetEqualizationFilterCoefficients']['return'] + # coefficients + if self._defaults['GetEqualizationFilterCoefficients']['coefficients'] is None: + raise MockFunctionCallError("niScope_GetEqualizationFilterCoefficients", param='coefficients') + test_value = self._defaults['GetEqualizationFilterCoefficients']['coefficients'] + try: + coefficients_ref = coefficients.contents + except AttributeError: + coefficients_ref = coefficients + assert len(coefficients_ref) >= len(test_value) + for i in range(len(test_value)): + coefficients_ref[i] = test_value[i] + return self._defaults['GetEqualizationFilterCoefficients']['return'] + + def niScope_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niScope_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # description + if self._defaults['GetError']['description'] is None: + raise MockFunctionCallError("niScope_GetError", param='description') + if buffer_size.value == 0: + return len(self._defaults['GetError']['description']) + description.value = self._defaults['GetError']['description'].encode('ascii') + return self._defaults['GetError']['return'] + + def niScope_ImportAttributeConfigurationBuffer(self, vi, size_in_bytes, configuration): # noqa: N802 + if self._defaults['ImportAttributeConfigurationBuffer']['return'] != 0: + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + return self._defaults['ImportAttributeConfigurationBuffer']['return'] + + def niScope_ImportAttributeConfigurationFile(self, vi, file_path): # noqa: N802 + if self._defaults['ImportAttributeConfigurationFile']['return'] != 0: + return self._defaults['ImportAttributeConfigurationFile']['return'] + return self._defaults['ImportAttributeConfigurationFile']['return'] + + def niScope_InitWithOptions(self, resource_name, id_query, reset_device, option_string, vi): # noqa: N802 + if self._defaults['InitWithOptions']['return'] != 0: + return self._defaults['InitWithOptions']['return'] + # vi + if self._defaults['InitWithOptions']['vi'] is None: + raise MockFunctionCallError("niScope_InitWithOptions", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitWithOptions']['vi'] + return self._defaults['InitWithOptions']['return'] + + def niScope_InitiateAcquisition(self, vi): # noqa: N802 + if self._defaults['InitiateAcquisition']['return'] != 0: + return self._defaults['InitiateAcquisition']['return'] + return self._defaults['InitiateAcquisition']['return'] + + def niScope_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niScope_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niScope_ProbeCompensationSignalStart(self, vi): # noqa: N802 + if self._defaults['ProbeCompensationSignalStart']['return'] != 0: + return self._defaults['ProbeCompensationSignalStart']['return'] + return self._defaults['ProbeCompensationSignalStart']['return'] + + def niScope_ProbeCompensationSignalStop(self, vi): # noqa: N802 + if self._defaults['ProbeCompensationSignalStop']['return'] != 0: + return self._defaults['ProbeCompensationSignalStop']['return'] + return self._defaults['ProbeCompensationSignalStop']['return'] + + def niScope_Read(self, vi, channel_list, timeout, num_samples, waveform, wfm_info): # noqa: N802 + if self._defaults['Read']['return'] != 0: + return self._defaults['Read']['return'] + # waveform + if self._defaults['Read']['waveform'] is None: + raise MockFunctionCallError("niScope_Read", param='waveform') + test_value = self._defaults['Read']['waveform'] + try: + waveform_ref = waveform.contents + except AttributeError: + waveform_ref = waveform + assert len(waveform_ref) >= len(test_value) + for i in range(len(test_value)): + waveform_ref[i] = test_value[i] + # wfm_info + if self._defaults['Read']['wfmInfo'] is None: + raise MockFunctionCallError("niScope_Read", param='wfmInfo') + test_value = self._defaults['Read']['wfmInfo'] + try: + wfm_info_ref = wfm_info.contents + except AttributeError: + wfm_info_ref = wfm_info + assert len(wfm_info_ref) >= len(test_value) + for i in range(len(test_value)): + wfm_info_ref[i] = test_value[i] + return self._defaults['Read']['return'] + + def niScope_ResetDevice(self, vi): # noqa: N802 + if self._defaults['ResetDevice']['return'] != 0: + return self._defaults['ResetDevice']['return'] + return self._defaults['ResetDevice']['return'] + + def niScope_ResetWithDefaults(self, vi): # noqa: N802 + if self._defaults['ResetWithDefaults']['return'] != 0: + return self._defaults['ResetWithDefaults']['return'] + return self._defaults['ResetWithDefaults']['return'] + + def niScope_SendSoftwareTriggerEdge(self, vi, which_trigger): # noqa: N802 + if self._defaults['SendSoftwareTriggerEdge']['return'] != 0: + return self._defaults['SendSoftwareTriggerEdge']['return'] + return self._defaults['SendSoftwareTriggerEdge']['return'] + + def niScope_SetAttributeViBoolean(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niScope_SetAttributeViInt32(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niScope_SetAttributeViInt64(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViInt64']['return'] != 0: + return self._defaults['SetAttributeViInt64']['return'] + return self._defaults['SetAttributeViInt64']['return'] + + def niScope_SetAttributeViReal64(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niScope_SetAttributeViString(self, vi, channel_list, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niScope_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niScope_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niScope_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niScope_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niScope_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niScope_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niScope_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niScope_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niScope_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niScope_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niScope_Abort.side_effect = MockFunctionCallError("niScope_Abort") + mock_library.niScope_Abort.return_value = 0 + mock_library.niScope_AcquisitionStatus.side_effect = MockFunctionCallError("niScope_AcquisitionStatus") + mock_library.niScope_AcquisitionStatus.return_value = 0 + mock_library.niScope_ActualMeasWfmSize.side_effect = MockFunctionCallError("niScope_ActualMeasWfmSize") + mock_library.niScope_ActualMeasWfmSize.return_value = 0 + mock_library.niScope_ActualNumWfms.side_effect = MockFunctionCallError("niScope_ActualNumWfms") + mock_library.niScope_ActualNumWfms.return_value = 0 + mock_library.niScope_AddWaveformProcessing.side_effect = MockFunctionCallError("niScope_AddWaveformProcessing") + mock_library.niScope_AddWaveformProcessing.return_value = 0 + mock_library.niScope_AutoSetup.side_effect = MockFunctionCallError("niScope_AutoSetup") + mock_library.niScope_AutoSetup.return_value = 0 + mock_library.niScope_CalFetchDate.side_effect = MockFunctionCallError("niScope_CalFetchDate") + mock_library.niScope_CalFetchDate.return_value = 0 + mock_library.niScope_CalFetchTemperature.side_effect = MockFunctionCallError("niScope_CalFetchTemperature") + mock_library.niScope_CalFetchTemperature.return_value = 0 + mock_library.niScope_CalSelfCalibrate.side_effect = MockFunctionCallError("niScope_CalSelfCalibrate") + mock_library.niScope_CalSelfCalibrate.return_value = 0 + mock_library.niScope_ClearWaveformMeasurementStats.side_effect = MockFunctionCallError("niScope_ClearWaveformMeasurementStats") + mock_library.niScope_ClearWaveformMeasurementStats.return_value = 0 + mock_library.niScope_ClearWaveformProcessing.side_effect = MockFunctionCallError("niScope_ClearWaveformProcessing") + mock_library.niScope_ClearWaveformProcessing.return_value = 0 + mock_library.niScope_Commit.side_effect = MockFunctionCallError("niScope_Commit") + mock_library.niScope_Commit.return_value = 0 + mock_library.niScope_ConfigureChanCharacteristics.side_effect = MockFunctionCallError("niScope_ConfigureChanCharacteristics") + mock_library.niScope_ConfigureChanCharacteristics.return_value = 0 + mock_library.niScope_ConfigureEqualizationFilterCoefficients.side_effect = MockFunctionCallError("niScope_ConfigureEqualizationFilterCoefficients") + mock_library.niScope_ConfigureEqualizationFilterCoefficients.return_value = 0 + mock_library.niScope_ConfigureHorizontalTiming.side_effect = MockFunctionCallError("niScope_ConfigureHorizontalTiming") + mock_library.niScope_ConfigureHorizontalTiming.return_value = 0 + mock_library.niScope_ConfigureRefLevels.side_effect = MockFunctionCallError("niScope_ConfigureRefLevels") + mock_library.niScope_ConfigureRefLevels.return_value = 0 + mock_library.niScope_ConfigureTriggerDigital.side_effect = MockFunctionCallError("niScope_ConfigureTriggerDigital") + mock_library.niScope_ConfigureTriggerDigital.return_value = 0 + mock_library.niScope_ConfigureTriggerEdge.side_effect = MockFunctionCallError("niScope_ConfigureTriggerEdge") + mock_library.niScope_ConfigureTriggerEdge.return_value = 0 + mock_library.niScope_ConfigureTriggerHysteresis.side_effect = MockFunctionCallError("niScope_ConfigureTriggerHysteresis") + mock_library.niScope_ConfigureTriggerHysteresis.return_value = 0 + mock_library.niScope_ConfigureTriggerImmediate.side_effect = MockFunctionCallError("niScope_ConfigureTriggerImmediate") + mock_library.niScope_ConfigureTriggerImmediate.return_value = 0 + mock_library.niScope_ConfigureTriggerSoftware.side_effect = MockFunctionCallError("niScope_ConfigureTriggerSoftware") + mock_library.niScope_ConfigureTriggerSoftware.return_value = 0 + mock_library.niScope_ConfigureTriggerVideo.side_effect = MockFunctionCallError("niScope_ConfigureTriggerVideo") + mock_library.niScope_ConfigureTriggerVideo.return_value = 0 + mock_library.niScope_ConfigureTriggerWindow.side_effect = MockFunctionCallError("niScope_ConfigureTriggerWindow") + mock_library.niScope_ConfigureTriggerWindow.return_value = 0 + mock_library.niScope_ConfigureVertical.side_effect = MockFunctionCallError("niScope_ConfigureVertical") + mock_library.niScope_ConfigureVertical.return_value = 0 + mock_library.niScope_Disable.side_effect = MockFunctionCallError("niScope_Disable") + mock_library.niScope_Disable.return_value = 0 + mock_library.niScope_ExportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niScope_ExportAttributeConfigurationBuffer") + mock_library.niScope_ExportAttributeConfigurationBuffer.return_value = 0 + mock_library.niScope_ExportAttributeConfigurationFile.side_effect = MockFunctionCallError("niScope_ExportAttributeConfigurationFile") + mock_library.niScope_ExportAttributeConfigurationFile.return_value = 0 + mock_library.niScope_Fetch.side_effect = MockFunctionCallError("niScope_Fetch") + mock_library.niScope_Fetch.return_value = 0 + mock_library.niScope_FetchArrayMeasurement.side_effect = MockFunctionCallError("niScope_FetchArrayMeasurement") + mock_library.niScope_FetchArrayMeasurement.return_value = 0 + mock_library.niScope_FetchBinary16.side_effect = MockFunctionCallError("niScope_FetchBinary16") + mock_library.niScope_FetchBinary16.return_value = 0 + mock_library.niScope_FetchBinary32.side_effect = MockFunctionCallError("niScope_FetchBinary32") + mock_library.niScope_FetchBinary32.return_value = 0 + mock_library.niScope_FetchBinary8.side_effect = MockFunctionCallError("niScope_FetchBinary8") + mock_library.niScope_FetchBinary8.return_value = 0 + mock_library.niScope_FetchMeasurementStats.side_effect = MockFunctionCallError("niScope_FetchMeasurementStats") + mock_library.niScope_FetchMeasurementStats.return_value = 0 + mock_library.niScope_GetAttributeViBoolean.side_effect = MockFunctionCallError("niScope_GetAttributeViBoolean") + mock_library.niScope_GetAttributeViBoolean.return_value = 0 + mock_library.niScope_GetAttributeViInt32.side_effect = MockFunctionCallError("niScope_GetAttributeViInt32") + mock_library.niScope_GetAttributeViInt32.return_value = 0 + mock_library.niScope_GetAttributeViInt64.side_effect = MockFunctionCallError("niScope_GetAttributeViInt64") + mock_library.niScope_GetAttributeViInt64.return_value = 0 + mock_library.niScope_GetAttributeViReal64.side_effect = MockFunctionCallError("niScope_GetAttributeViReal64") + mock_library.niScope_GetAttributeViReal64.return_value = 0 + mock_library.niScope_GetAttributeViString.side_effect = MockFunctionCallError("niScope_GetAttributeViString") + mock_library.niScope_GetAttributeViString.return_value = 0 + mock_library.niScope_GetChannelNameFromString.side_effect = MockFunctionCallError("niScope_GetChannelNameFromString") + mock_library.niScope_GetChannelNameFromString.return_value = 0 + mock_library.niScope_GetEqualizationFilterCoefficients.side_effect = MockFunctionCallError("niScope_GetEqualizationFilterCoefficients") + mock_library.niScope_GetEqualizationFilterCoefficients.return_value = 0 + mock_library.niScope_GetError.side_effect = MockFunctionCallError("niScope_GetError") + mock_library.niScope_GetError.return_value = 0 + mock_library.niScope_ImportAttributeConfigurationBuffer.side_effect = MockFunctionCallError("niScope_ImportAttributeConfigurationBuffer") + mock_library.niScope_ImportAttributeConfigurationBuffer.return_value = 0 + mock_library.niScope_ImportAttributeConfigurationFile.side_effect = MockFunctionCallError("niScope_ImportAttributeConfigurationFile") + mock_library.niScope_ImportAttributeConfigurationFile.return_value = 0 + mock_library.niScope_InitWithOptions.side_effect = MockFunctionCallError("niScope_InitWithOptions") + mock_library.niScope_InitWithOptions.return_value = 0 + mock_library.niScope_InitiateAcquisition.side_effect = MockFunctionCallError("niScope_InitiateAcquisition") + mock_library.niScope_InitiateAcquisition.return_value = 0 + mock_library.niScope_LockSession.side_effect = MockFunctionCallError("niScope_LockSession") + mock_library.niScope_LockSession.return_value = 0 + mock_library.niScope_ProbeCompensationSignalStart.side_effect = MockFunctionCallError("niScope_ProbeCompensationSignalStart") + mock_library.niScope_ProbeCompensationSignalStart.return_value = 0 + mock_library.niScope_ProbeCompensationSignalStop.side_effect = MockFunctionCallError("niScope_ProbeCompensationSignalStop") + mock_library.niScope_ProbeCompensationSignalStop.return_value = 0 + mock_library.niScope_Read.side_effect = MockFunctionCallError("niScope_Read") + mock_library.niScope_Read.return_value = 0 + mock_library.niScope_ResetDevice.side_effect = MockFunctionCallError("niScope_ResetDevice") + mock_library.niScope_ResetDevice.return_value = 0 + mock_library.niScope_ResetWithDefaults.side_effect = MockFunctionCallError("niScope_ResetWithDefaults") + mock_library.niScope_ResetWithDefaults.return_value = 0 + mock_library.niScope_SendSoftwareTriggerEdge.side_effect = MockFunctionCallError("niScope_SendSoftwareTriggerEdge") + mock_library.niScope_SendSoftwareTriggerEdge.return_value = 0 + mock_library.niScope_SetAttributeViBoolean.side_effect = MockFunctionCallError("niScope_SetAttributeViBoolean") + mock_library.niScope_SetAttributeViBoolean.return_value = 0 + mock_library.niScope_SetAttributeViInt32.side_effect = MockFunctionCallError("niScope_SetAttributeViInt32") + mock_library.niScope_SetAttributeViInt32.return_value = 0 + mock_library.niScope_SetAttributeViInt64.side_effect = MockFunctionCallError("niScope_SetAttributeViInt64") + mock_library.niScope_SetAttributeViInt64.return_value = 0 + mock_library.niScope_SetAttributeViReal64.side_effect = MockFunctionCallError("niScope_SetAttributeViReal64") + mock_library.niScope_SetAttributeViReal64.return_value = 0 + mock_library.niScope_SetAttributeViString.side_effect = MockFunctionCallError("niScope_SetAttributeViString") + mock_library.niScope_SetAttributeViString.return_value = 0 + mock_library.niScope_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niScope_SetRuntimeEnvironment") + mock_library.niScope_SetRuntimeEnvironment.return_value = 0 + mock_library.niScope_UnlockSession.side_effect = MockFunctionCallError("niScope_UnlockSession") + mock_library.niScope_UnlockSession.return_value = 0 + mock_library.niScope_close.side_effect = MockFunctionCallError("niScope_close") + mock_library.niScope_close.return_value = 0 + mock_library.niScope_error_message.side_effect = MockFunctionCallError("niScope_error_message") + mock_library.niScope_error_message.return_value = 0 + mock_library.niScope_reset.side_effect = MockFunctionCallError("niScope_reset") + mock_library.niScope_reset.return_value = 0 + mock_library.niScope_self_test.side_effect = MockFunctionCallError("niScope_self_test") + mock_library.niScope_self_test.return_value = 0 diff --git a/generated/niscope/niscope/unit_tests/test_niscope.py b/generated/niscope/niscope/unit_tests/test_niscope.py new file mode 100644 index 0000000000..a9c5902b80 --- /dev/null +++ b/generated/niscope/niscope/unit_tests/test_niscope.py @@ -0,0 +1,38 @@ +import array +import niscope.waveform_info + + +def test_populate_samples_info(): + waveform_infos = [] + for i in range(1, 4): + waveform_infos.append(niscope.waveform_info.WaveformInfo()) + waveform_infos[-1]._actual_samples = i + + sample_data = array.array('d', [0, 1, 2, 3, 4, 5, 6, 7, 8]) + niscope.waveform_info._populate_samples_info(waveform_infos, sample_data, 3) + + expected = [ + array.array('d', [0]), + array.array('d', [3, 4]), + array.array('d', [6, 7, 8]) + ] + for i in range(len(waveform_infos)): + assert waveform_infos[i]._actual_samples is None + assert waveform_infos[i].samples == expected[i] + + +def test_populate_channel_and_record_info(): + waveform_infos = [] + for i in range(6): + waveform_infos.append(niscope.waveform_info.WaveformInfo()) + + channels = ["Dev1/4", "Dev2/2"] + records = [0, 1, 2] + niscope.waveform_info._populate_channel_and_record_info(waveform_infos, channels, records) + + expected_channels = ["Dev1/4", "Dev2/2"] * len(records) + expected_records = [0, 0, 1, 1, 2, 2] + + for i in range(len(waveform_infos)): + assert waveform_infos[i].channel == expected_channels[i] + assert waveform_infos[i].record == expected_records[i] diff --git a/generated/niscope/niscope/waveform_info.py b/generated/niscope/niscope/waveform_info.py new file mode 100644 index 0000000000..9268003f81 --- /dev/null +++ b/generated/niscope/niscope/waveform_info.py @@ -0,0 +1,148 @@ +import ctypes + +import niscope._visatype + + +# This class is an internal implementation detail +# ctypes definition +# Name must match exactly what the name of the structure type is named in the C API. +class struct_niScope_wfmInfo(ctypes.Structure): # noqa N801 + _pack_ = 8 + _fields_ = [ + ('absolute_initial_x', niscope._visatype.ViReal64), + ('relative_initial_x', niscope._visatype.ViReal64), + ('x_increment', niscope._visatype.ViReal64), + ('actual_samples', niscope._visatype.ViInt32), + ('offset', niscope._visatype.ViReal64), + ('gain', niscope._visatype.ViReal64), + ('reserved1', niscope._visatype.ViReal64), + ('reserved2', niscope._visatype.ViReal64), + ] + + def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, + x_increment=0.0, actual_samples=0, offset=0.0, gain=0.0, + reserved1=0.0, reserved2=0.0): + super(ctypes.Structure, self).__init__() + if data is not None: + self.absolute_initial_x = data.absolute_initial_x + self.relative_initial_x = data.relative_initial_x + self.x_increment = data.x_increment + self.actual_samples = data.actual_samples + self.offset = data.offset + self.gain = data.gain + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + else: + self.absolute_initial_x = absolute_initial_x + self.relative_initial_x = relative_initial_x + self.x_increment = x_increment + self.actual_samples = actual_samples + self.offset = offset + self.gain = gain + self.reserved1 = reserved1 + self.reserved2 = reserved2 + + +class WaveformInfo: + def __init__(self, data=None, absolute_initial_x=0.0, relative_initial_x=0.0, + x_increment=0.0, offset=0.0, gain=0.0, + reserved1=0.0, reserved2=0.0): + if data is not None: + self.absolute_initial_x = data.absolute_initial_x + self.relative_initial_x = data.relative_initial_x + self.x_increment = data.x_increment + self.offset = data.offset + self.gain = data.gain + self.reserved1 = data.reserved1 + self.reserved2 = data.reserved2 + self._actual_samples = data.actual_samples + else: + self.absolute_initial_x = absolute_initial_x + self.relative_initial_x = relative_initial_x + self.x_increment = x_increment + self.offset = offset + self.gain = gain + self.reserved1 = reserved1 + self.reserved2 = reserved2 + # _actual_samples is only used to calculate the end of the waveform we extract from the + # entire 1D array of samples. It is only filled in when calling into the niscope driver. + self._actual_samples = None + + # Additional fields filled in during fetch or fetch_into + self.channel = None + self.record = None + self.samples = None + + def __repr__(self): + parameter_list = [ + f'absolute_initial_x={self.absolute_initial_x}', + f'relative_initial_x={self.relative_initial_x}', + f'x_increment={self.x_increment}', + f'offset={self.offset}', + f'gain={self.gain}' + ] + + return '{}({})'.format(self.__class__.__name__, ', '.join(parameter_list)) + + def __str__(self): + # different format lines + row_format_g = '{:<20}: {:,.6g}\n' + row_format_d = '{:<20}: {:,}\n' + row_format_s = '{:<20}: {:}\n' + + string_representation = '' + if self.channel is not None: # We explicitly look for not None to differentiate from empty string + string_representation += row_format_s.format('Channel', self.channel) + if self.record is not None: # We explicitly look for not None to differentiate from 0 + string_representation += row_format_d.format('Record', self.record) + + string_representation += row_format_g.format('Absolute X0', self.absolute_initial_x) + string_representation += row_format_g.format('Relative X0', self.relative_initial_x) + string_representation += row_format_g.format('dt', self.x_increment) + string_representation += row_format_g.format('Offset', self.offset) + string_representation += row_format_g.format('Gain', self.gain) + if self.samples is not None: # We explicitly look for not None to differentiate from empty array + string_representation += row_format_g.format('Waveform Length', len(self.samples)) + + # Put possible private variable last + if self._actual_samples is not None: # We explicitly look for not None to differentiate from 0 + string_representation += row_format_d.format('_actual samples', self._actual_samples) + + return string_representation + + +def _populate_samples_info(waveform_infos, sample_data, num_samples_per_waveform): + '''Chunk up flat array of sample_data and copy each chunk into individual WaveformInfo instance + + Args: + waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances + + sample_data (Iterable of float): Waveform sample data + + num_samples_per_waveform (int): Number of samples belonging to each waveform + ''' + for i in range(len(waveform_infos)): + start = i * num_samples_per_waveform + end = start + waveform_infos[i]._actual_samples + # We use the actual number of samples returned from the device to determine the end of the waveform. + # We then remove it from waveform_info since the length of the waveform will tell us that information. + waveform_infos[i]._actual_samples = None + waveform_infos[i].samples = sample_data[start:end] + + +def _populate_channel_and_record_info(waveform_infos, channels, records): + '''Populate the channel and record attributes of WaveformInfo instances + + Args: + waveform_infos (Iterable of WaveformInfo): WaveformInfo class instances + + channels (Iterable of str): Channel names + + records (Iterable of int): Record numbers + ''' + i = 0 + for record in records: + for channel in channels: + waveform_infos[i].channel = channel + waveform_infos[i].record = record + i += 1 diff --git a/generated/niscope/setup.py b/generated/niscope/setup.py new file mode 100644 index 0000000000..dc67785cc0 --- /dev/null +++ b/generated/niscope/setup.py @@ -0,0 +1,64 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'niscope' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-SCOPE Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['niscope'], + license='MIT', + include_package_data=True, + packages=['niscope'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + 'nitclk', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/niscope/tox-system_tests.ini b/generated/niscope/tox-system_tests.ini new file mode 100644 index 0000000000..f8f941d994 --- /dev/null +++ b/generated/niscope/tox-system_tests.ini @@ -0,0 +1,73 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/niscope) +[tox] +envlist = py{310,311,312,313,314}-niscope-wheel_dep,py{310,311,312,313,314}-niscope-system_tests, py314-niscope-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + niscope-wheel_dep: Build the nitclk wheel because we use it in niscope tests + niscope-system_tests: Run niscope system tests (requires NI-SCOPE runtime to be installed) + niscope-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + niscope-wheel_dep: ../nitclk + niscope-system_tests: . + niscope-coverage: . + +commands = + niscope-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + niscope-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + niscope-system_tests: python ../../tools/install_local_wheel.py --driver nitclk --start-path ../.. + niscope-system_tests: python -c "import niscope; niscope.print_diagnostic_information()" + niscope-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niscope --parallel-mode -m pytest ../../src/niscope/examples --junitxml=../junit/junit-niscope-{envname}-examples-{env:BITNESS:64}.xml {posargs} + niscope-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niscope --parallel-mode -m pytest ../../src/niscope/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-niscope-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + niscope-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + niscope-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + niscope-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + niscope-wheel_dep: build + + niscope-system_tests: pytest < 9.2.0 + niscope-system_tests: coverage + niscope-system_tests: numpy + niscope-system_tests: hightime + niscope-system_tests: fasteners + niscope-system_tests: pytest-json + niscope-system_tests: .[grpc] + + niscope-coverage: coverage + +depends = + niscope-coverage: py{310,311,312,313,314}-niscope-system_tests + niscope-system_tests: py{310,311,312,313,314}-niscope-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nise/README.rst b/generated/nise/README.rst new file mode 100644 index 0000000000..29b1cd226e --- /dev/null +++ b/generated/nise/README.rst @@ -0,0 +1,170 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nise** module provides a Python API for NI Switch Executive. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nise** supports all the Operating Systems supported by NI Switch Executive. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nise**. + + +NI Switch Executive Python API Status +------------------------------------- + ++-------------------------------+---------------------+ +| NI Switch Executive (nise) | | ++===============================+=====================+ +| Driver Version Tested Against | 2023 Q1 | ++-------------------------------+---------------------+ +| PyPI Version | |niseLatestVersion| | ++-------------------------------+---------------------+ +| Supported Python Version | |nisePythonVersion| | ++-------------------------------+---------------------+ +| Documentation | |niseDocs| | ++-------------------------------+---------------------+ +| Open Issues | |niseOpenIssues| | ++-------------------------------+---------------------+ +| Open Pull Requests | |niseOpenPRs| | ++-------------------------------+---------------------+ + + +.. |niseLatestVersion| image:: http://img.shields.io/pypi/v/nise.svg + :alt: Latest NI Switch Executive Version + :target: http://pypi.python.org/pypi/nise + + +.. |nisePythonVersion| image:: http://img.shields.io/pypi/pyversions/nise.svg + :alt: NI Switch Executive supported Python versions + :target: http://pypi.python.org/pypi/nise + + +.. |niseDocs| image:: https://readthedocs.org/projects/nise/badge/?version=latest + :alt: NI Switch Executive Python API Documentation Status + :target: https://nise.readthedocs.io/en/latest + + +.. |niseOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nise.svg + :alt: Open Issues + Pull Requests for NI Switch Executive + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anise + + +.. |niseOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nise.svg + :alt: Pull Requests for NI Switch Executive + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anise + + + +.. _nise_installation-section: + +Installation +------------ + +As a prerequisite to using the **nise** module, you must install the NI Switch Executive runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI Switch Executive**) can be installed with `pip `_:: + + $ python -m pip install nise + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nise** module to open a session to a Switch Executive Virtual Device and connect a routegroup. + +.. code-block:: python + + import nise + with nise.Session('SwitchExecutiveExample') as session: + session.connect('DIOToUUT') + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nise/nise/VERSION b/generated/nise/nise/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nise/nise/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nise/nise/__init__.py b/generated/nise/nise/__init__.py new file mode 100644 index 0000000000..b59e1efc03 --- /dev/null +++ b/generated/nise/nise/__init__.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nise.enums import * # noqa: F403,F401,H303 +from nise.errors import DriverWarning # noqa: F401 +from nise.errors import Error # noqa: F401 +from nise.session import Session # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\Switch Executive\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI Switch Executive" + info['driver']['version'] = driver_version + info['module']['name'] = 'nise' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nise/nise/_converters.py b/generated/nise/nise/_converters.py new file mode 100644 index 0000000000..98fd3af425 --- /dev/null +++ b/generated/nise/nise/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nise._visatype as _visatype +import nise.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/nise/nise/_library.py b/generated/nise/nise/_library.py new file mode 100644 index 0000000000..05af687c9c --- /dev/null +++ b/generated/nise/nise/_library.py @@ -0,0 +1,145 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nise.errors as errors +import threading + +from nise._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niSE_CloseSession_cfunc = None + self.niSE_Connect_cfunc = None + self.niSE_ConnectAndDisconnect_cfunc = None + self.niSE_Disconnect_cfunc = None + self.niSE_DisconnectAll_cfunc = None + self.niSE_ExpandRouteSpec_cfunc = None + self.niSE_FindRoute_cfunc = None + self.niSE_GetAllConnections_cfunc = None + self.niSE_GetError_cfunc = None + self.niSE_IsConnected_cfunc = None + self.niSE_IsDebounced_cfunc = None + self.niSE_OpenSession_cfunc = None + self.niSE_WaitForDebounce_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niSE_CloseSession(self, vi): # noqa: N802 + with self._func_lock: + if self.niSE_CloseSession_cfunc is None: + self.niSE_CloseSession_cfunc = self._get_library_function('niSE_CloseSession') + self.niSE_CloseSession_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSE_CloseSession_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_CloseSession_cfunc(vi) + + def niSE_Connect(self, vi, connect_spec, multiconnect_mode, wait_for_debounce): # noqa: N802 + with self._func_lock: + if self.niSE_Connect_cfunc is None: + self.niSE_Connect_cfunc = self._get_library_function('niSE_Connect') + self.niSE_Connect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ViBoolean] # noqa: F405 + self.niSE_Connect_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_Connect_cfunc(vi, connect_spec, multiconnect_mode, wait_for_debounce) + + def niSE_ConnectAndDisconnect(self, vi, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce): # noqa: N802 + with self._func_lock: + if self.niSE_ConnectAndDisconnect_cfunc is None: + self.niSE_ConnectAndDisconnect_cfunc = self._get_library_function('niSE_ConnectAndDisconnect') + self.niSE_ConnectAndDisconnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ViInt32, ViBoolean] # noqa: F405 + self.niSE_ConnectAndDisconnect_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_ConnectAndDisconnect_cfunc(vi, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce) + + def niSE_Disconnect(self, vi, disconnect_spec): # noqa: N802 + with self._func_lock: + if self.niSE_Disconnect_cfunc is None: + self.niSE_Disconnect_cfunc = self._get_library_function('niSE_Disconnect') + self.niSE_Disconnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSE_Disconnect_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_Disconnect_cfunc(vi, disconnect_spec) + + def niSE_DisconnectAll(self, vi): # noqa: N802 + with self._func_lock: + if self.niSE_DisconnectAll_cfunc is None: + self.niSE_DisconnectAll_cfunc = self._get_library_function('niSE_DisconnectAll') + self.niSE_DisconnectAll_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSE_DisconnectAll_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_DisconnectAll_cfunc(vi) + + def niSE_ExpandRouteSpec(self, vi, route_spec, expand_action, expanded_route_spec, expanded_route_spec_size): # noqa: N802 + with self._func_lock: + if self.niSE_ExpandRouteSpec_cfunc is None: + self.niSE_ExpandRouteSpec_cfunc = self._get_library_function('niSE_ExpandRouteSpec') + self.niSE_ExpandRouteSpec_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSE_ExpandRouteSpec_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_ExpandRouteSpec_cfunc(vi, route_spec, expand_action, expanded_route_spec, expanded_route_spec_size) + + def niSE_FindRoute(self, vi, channel1, channel2, route_spec, route_spec_size, path_capability): # noqa: N802 + with self._func_lock: + if self.niSE_FindRoute_cfunc is None: + self.niSE_FindRoute_cfunc = self._get_library_function('niSE_FindRoute') + self.niSE_FindRoute_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSE_FindRoute_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_FindRoute_cfunc(vi, channel1, channel2, route_spec, route_spec_size, path_capability) + + def niSE_GetAllConnections(self, vi, route_spec, route_spec_size): # noqa: N802 + with self._func_lock: + if self.niSE_GetAllConnections_cfunc is None: + self.niSE_GetAllConnections_cfunc = self._get_library_function('niSE_GetAllConnections') + self.niSE_GetAllConnections_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSE_GetAllConnections_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_GetAllConnections_cfunc(vi, route_spec, route_spec_size) + + def niSE_GetError(self, vi, error_number, error_description, error_description_size): # noqa: N802 + with self._func_lock: + if self.niSE_GetError_cfunc is None: + self.niSE_GetError_cfunc = self._get_library_function('niSE_GetError') + self.niSE_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt32), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSE_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_GetError_cfunc(vi, error_number, error_description, error_description_size) + + def niSE_IsConnected(self, vi, route_spec, is_connected): # noqa: N802 + with self._func_lock: + if self.niSE_IsConnected_cfunc is None: + self.niSE_IsConnected_cfunc = self._get_library_function('niSE_IsConnected') + self.niSE_IsConnected_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niSE_IsConnected_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_IsConnected_cfunc(vi, route_spec, is_connected) + + def niSE_IsDebounced(self, vi, is_debounced): # noqa: N802 + with self._func_lock: + if self.niSE_IsDebounced_cfunc is None: + self.niSE_IsDebounced_cfunc = self._get_library_function('niSE_IsDebounced') + self.niSE_IsDebounced_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niSE_IsDebounced_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_IsDebounced_cfunc(vi, is_debounced) + + def niSE_OpenSession(self, virtual_device_name, option_string, vi): # noqa: N802 + with self._func_lock: + if self.niSE_OpenSession_cfunc is None: + self.niSE_OpenSession_cfunc = self._get_library_function('niSE_OpenSession') + self.niSE_OpenSession_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViSession)] # noqa: F405 + self.niSE_OpenSession_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_OpenSession_cfunc(virtual_device_name, option_string, vi) + + def niSE_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 + with self._func_lock: + if self.niSE_WaitForDebounce_cfunc is None: + self.niSE_WaitForDebounce_cfunc = self._get_library_function('niSE_WaitForDebounce') + self.niSE_WaitForDebounce_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niSE_WaitForDebounce_cfunc.restype = ViStatus # noqa: F405 + return self.niSE_WaitForDebounce_cfunc(vi, maximum_time_ms) diff --git a/generated/nise/nise/_library_interpreter.py b/generated/nise/nise/_library_interpreter.py new file mode 100644 index 0000000000..ad3f07dd8d --- /dev/null +++ b/generated/nise/nise/_library_interpreter.py @@ -0,0 +1,188 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import nise._library_singleton as _library_singleton +import nise._visatype as _visatype +import nise.enums as enums # noqa: F401 +import nise.errors as errors + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error([1024]) + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + return "Failed to retrieve error description." + + def close_session(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSE_CloseSession(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def connect(self, connect_spec, multiconnect_mode, wait_for_debounce): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + connect_spec_ctype = ctypes.create_string_buffer(connect_spec.encode(self._encoding)) # case C020 + multiconnect_mode_ctype = _visatype.ViInt32(multiconnect_mode.value) # case S130 + wait_for_debounce_ctype = _visatype.ViBoolean(wait_for_debounce) # case S150 + error_code = self._library.niSE_Connect(vi_ctype, connect_spec_ctype, multiconnect_mode_ctype, wait_for_debounce_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def connect_and_disconnect(self, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + connect_spec_ctype = ctypes.create_string_buffer(connect_spec.encode(self._encoding)) # case C020 + disconnect_spec_ctype = ctypes.create_string_buffer(disconnect_spec.encode(self._encoding)) # case C020 + multiconnect_mode_ctype = _visatype.ViInt32(multiconnect_mode.value) # case S130 + operation_order_ctype = _visatype.ViInt32(operation_order.value) # case S130 + wait_for_debounce_ctype = _visatype.ViBoolean(wait_for_debounce) # case S150 + error_code = self._library.niSE_ConnectAndDisconnect(vi_ctype, connect_spec_ctype, disconnect_spec_ctype, multiconnect_mode_ctype, operation_order_ctype, wait_for_debounce_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disconnect(self, disconnect_spec): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + disconnect_spec_ctype = ctypes.create_string_buffer(disconnect_spec.encode(self._encoding)) # case C020 + error_code = self._library.niSE_Disconnect(vi_ctype, disconnect_spec_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disconnect_all(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSE_DisconnectAll(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def expand_route_spec(self, route_spec, expand_action, expanded_route_spec_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + route_spec_ctype = ctypes.create_string_buffer(route_spec.encode(self._encoding)) # case C020 + expand_action_ctype = _visatype.ViInt32(expand_action.value) # case S130 + expanded_route_spec_ctype = (_visatype.ViChar * expanded_route_spec_size[0])() # case C080 + expanded_route_spec_size_ctype = _get_ctypes_pointer_for_buffer(value=expanded_route_spec_size, library_type=_visatype.ViInt32) # case B550 + error_code = self._library.niSE_ExpandRouteSpec(vi_ctype, route_spec_ctype, expand_action_ctype, expanded_route_spec_ctype, expanded_route_spec_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return expanded_route_spec_ctype.value.decode(self._encoding) + + def find_route(self, channel1, channel2, route_spec_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 + channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 + route_spec_ctype = (_visatype.ViChar * route_spec_size[0])() # case C080 + route_spec_size_ctype = _get_ctypes_pointer_for_buffer(value=route_spec_size, library_type=_visatype.ViInt32) # case B550 + path_capability_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niSE_FindRoute(vi_ctype, channel1_ctype, channel2_ctype, route_spec_ctype, route_spec_size_ctype, None if path_capability_ctype is None else (ctypes.pointer(path_capability_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return route_spec_ctype.value.decode(self._encoding), enums.PathCapability(path_capability_ctype.value) + + def get_all_connections(self, route_spec_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + route_spec_ctype = (_visatype.ViChar * route_spec_size[0])() # case C080 + route_spec_size_ctype = _get_ctypes_pointer_for_buffer(value=route_spec_size, library_type=_visatype.ViInt32) # case B550 + error_code = self._library.niSE_GetAllConnections(vi_ctype, route_spec_ctype, route_spec_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return route_spec_ctype.value.decode(self._encoding) + + def get_error(self, error_description_size): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_number_ctype = _visatype.ViInt32() # case S220 + error_description_ctype = (_visatype.ViChar * error_description_size[0])() # case C080 + error_description_size_ctype = _get_ctypes_pointer_for_buffer(value=error_description_size, library_type=_visatype.ViInt32) # case B550 + error_code = self._library.niSE_GetError(vi_ctype, None if error_number_ctype is None else (ctypes.pointer(error_number_ctype)), error_description_ctype, error_description_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_number_ctype.value), error_description_ctype.value.decode(self._encoding) + + def is_connected(self, route_spec): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + route_spec_ctype = ctypes.create_string_buffer(route_spec.encode(self._encoding)) # case C020 + is_connected_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niSE_IsConnected(vi_ctype, route_spec_ctype, None if is_connected_ctype is None else (ctypes.pointer(is_connected_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(is_connected_ctype.value) + + def is_debounced(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + is_debounced_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niSE_IsDebounced(vi_ctype, None if is_debounced_ctype is None else (ctypes.pointer(is_debounced_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(is_debounced_ctype.value) + + def open_session(self, virtual_device_name, option_string): # noqa: N802 + virtual_device_name_ctype = ctypes.create_string_buffer(virtual_device_name.encode(self._encoding)) # case C020 + option_string_ctype = ctypes.create_string_buffer(option_string.encode(self._encoding)) # case C020 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niSE_OpenSession(virtual_device_name_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(vi_ctype.value) + + def wait_for_debounce(self, maximum_time_ms): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ms_ctype = _visatype.ViInt32(maximum_time_ms) # case S150 + error_code = self._library.niSE_WaitForDebounce(vi_ctype, maximum_time_ms_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return diff --git a/generated/nise/nise/_library_singleton.py b/generated/nise/nise/_library_singleton.py new file mode 100644 index 0000000000..c0b3d31a81 --- /dev/null +++ b/generated/nise/nise/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nise._library as _library +import nise.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nise', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'nise.dll', 'type': 'windll'}, + '64bit': {'name': 'nise.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nise. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nise/nise/_visatype.py b/generated/nise/nise/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nise/nise/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nise/nise/enums.py b/generated/nise/nise/enums.py new file mode 100644 index 0000000000..7a377b806c --- /dev/null +++ b/generated/nise/nise/enums.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class ExpandAction(Enum): + ROUTES = 0 + r''' + Expand to routes + ''' + PATHS = 1 + r''' + Expand to paths + ''' + + +class MulticonnectMode(Enum): + DEFAULT = -1 + r''' + Default + ''' + NO_MULTICONNECT = 0 + r''' + No multiconnect + ''' + MULTICONNECT = 1 + r''' + Multiconnect + ''' + + +class OperationOrder(Enum): + BEFORE = 1 + r''' + Break before make + ''' + AFTER = 2 + r''' + Break after make + ''' + + +class PathCapability(Enum): + PATH_NEEDS_HARDWIRE = -2 + r''' + Path needs hardwire + ''' + PATH_NEEDS_CONFIG_CHANNEL = -1 + r''' + Path needs config channel + ''' + PATH_AVAILABLE = 1 + r''' + Path available + ''' + PATH_EXISTS = 2 + r''' + Path exists + ''' + PATH_UNSUPPORTED = 3 + r''' + Path Unsupported + ''' + RESOURCE_IN_USE = 4 + r''' + Resource in use + ''' + EXCLUSION_CONFLICT = 5 + r''' + Exclusion conflict + ''' + CHANNEL_NOT_AVAILABLE = 6 + r''' + Channel not available + ''' + CHANNELS_HARDWIRED = 7 + r''' + Channels hardwired + ''' diff --git a/generated/nise/nise/errors.py b/generated/nise/nise/errors.py new file mode 100644 index 0000000000..4a084bfcf7 --- /dev/null +++ b/generated/nise/nise/errors.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI Switch Executive''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI Switch Executive driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI Switch Executive driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI Switch Executive runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI Switch Executive driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI Switch Executive runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI Switch Executive driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI Switch Executive runtime returned an unexpected value. This can occur if it is too new for the nise Python module. Upgrade the nise Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nise.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nise/nise/session.py b/generated/nise/nise/session.py new file mode 100644 index 0000000000..095ecf57fa --- /dev/null +++ b/generated/nise/nise/session.py @@ -0,0 +1,632 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 + +import nise._converters as _converters +import nise._library_interpreter as _library_interpreter +import nise.enums as enums +import nise.errors as errors + +import hightime + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _SessionBase(object): + '''Base class for all NI Switch Executive sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('nise', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + +class Session(_SessionBase): + '''An NI Switch Executive session''' + + def __init__(self, virtual_device_name, options={}): + r'''An NI Switch Executive session + + Opens a session to a specified NI Switch Executive virtual device. Opens + communications with all of the IVI switches associated with the + specified NI Switch Executive virtual device. Returns a session handle + that you use to identify the virtual device in all subsequent NI Switch + Executive method calls. NI Switch Executive uses a reference counting + scheme to manage open session handles to an NI Switch Executive virtual + device. Each call to __init__ must be matched with a subsequent + call to close. Successive calls to __init__ with + the same virtual device name always returns the same session handle. NI + Switch Executive disconnects its communication with the IVI switches + after all session handles are closed to a given virtual device. The + session handles may be used safely in multiple threads of an + application. Sessions may only be opened to a given NI Switch Executive + virtual device from a single process at a time. + + Args: + virtual_device_name (str): The name of the NI Switch Executive virtual device. + + options (dict): Specifies the initial value of certain properties for the session. The + syntax for **options** is a dictionary of properties with an assigned + value. For example: + + { 'simulate': False } + + You do not have to specify a value for all the properties. If you do not + specify a value for a property, the default value is used. + + Advanced Example: + { 'simulate': True, 'driver_setup': { 'Model': '', 'BoardType': '' } } + + +-------------------------+---------+ + | Property | Default | + +=========================+=========+ + | range_check | True | + +-------------------------+---------+ + | query_instrument_status | False | + +-------------------------+---------+ + | cache | True | + +-------------------------+---------+ + | simulate | False | + +-------------------------+---------+ + | record_value_coersions | False | + +-------------------------+---------+ + | driver_setup | {} | + +-------------------------+---------+ + + + Returns: + session (nise.Session): A session object representing the device. + + ''' + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + options = _converters.convert_init_with_options_dictionary(options) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _open_session fails, the error handler can reference it. + # And then here, once _open_session succeeds, we call set_session_handle + # with the actual session handle. + self._interpreter.set_session_handle(self._open_session(virtual_device_name, options)) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("virtual_device_name=" + pp.pformat(virtual_device_name)) + param_list.append("options=" + pp.pformat(options)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self.close() + + def close(self): + '''close + + Reduces the reference count of open sessions by one. If the reference + count goes to 0, the method deallocates any memory resources the + driver uses and closes any open IVI switch sessions. After calling the + close method, you should not use the NI Switch Executive + virtual device again until you call __init__. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close_session() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + def _close_session(self): + r'''_close_session + + Reduces the reference count of open sessions by one. If the reference + count goes to 0, the method deallocates any memory resources the + driver uses and closes any open IVI switch sessions. After calling the + close method, you should not use the NI Switch Executive + virtual device again until you call __init__. + ''' + self._interpreter.close_session() + + def connect(self, connect_spec, multiconnect_mode=enums.MulticonnectMode.DEFAULT, wait_for_debounce=True): + r'''connect + + Connects the routes specified by the connection specification. When + connecting, it may allow for multiconnection based on the + multiconnection mode. In the event of an error, the call to + connect will attempt to undo any connections made so that the + system will be left in the same state that it was in before the call was + made. Some errors can be caught before manipulating hardware, although + it is feasible that a hardware call could fail causing some connections + to be momentarily closed and then reopened. If the wait for debounce + parameter is set, the method will not return until the switch system + has debounced. + + Args: + connect_spec (str): String describing the connections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + multiconnect_mode (enums.MulticonnectMode): This value sets the connection mode for the method. The mode might be + one of the following: NISE_VAL_USE_DEFAULT_MODE (-1) - uses the mode + selected as the default for the route in the NI Switch Executive virtual + device configuration. If a mode has not been selected for the route in + the NI Switch Executive virtual device, this parameter defaults to + NISE_VAL_MULTICONNECT_ROUTES. MulticonnectMode.NO_MULTICONNECT (0) - + routes specified in the connection specification must be disconnected + before they can be reconnected. Calling Connect on a route that was + connected using No Multiconnect mode results in an error condition. + NISE_VAL_MULTICONNECT_ROUTES (1)- routes specified in the connection + specification can be connected multiple times. The first call to Connect + performs the physical hardware connection. Successive calls to Connect + increase a connection reference count. Similarly, calls to Disconnect + decrease the reference count. Once it reaches 0, the hardware is + physically disconnected. Multiconnecting routes applies to entire routes + and not to route segments. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + wait_for_debounce (bool): Waits (if true) for switches to debounce between its connect and + disconnect operations. If false, it immediately begins the second + operation after completing the first. The order of connect and + disconnect operation is set by the Operation Order input. + + ''' + if type(multiconnect_mode) is not enums.MulticonnectMode: + raise TypeError('Parameter multiconnect_mode must be of type ' + str(enums.MulticonnectMode)) + self._interpreter.connect(connect_spec, multiconnect_mode, wait_for_debounce) + + def connect_and_disconnect(self, connect_spec, disconnect_spec, multiconnect_mode=enums.MulticonnectMode.DEFAULT, operation_order=enums.OperationOrder.AFTER, wait_for_debounce=True): + r'''connect_and_disconnect + + Connects routes and disconnects routes in a similar fashion to + connect and disconnect except that the operations happen in + the context of a single method call. This method is useful for + switching from one state to another state. connect_and_disconnect + manipulates the hardware connections and disconnections only when the + routes are different between the connection and disconnection + specifications. If any routes are common between the connection and + disconnection specifications, NI Switch Executive determines whether or + not the relays need to be switched. This functionality has the distinct + advantage of increased throughput for shared connections, because + hardware does not have to be involved and potentially increases relay + lifetime by decreasing the number of times that the relay has to be + switched. In the event of an error, the call to + connect_and_disconnect attempts to undo any connections made, but + does not attempt to reconnect disconnections. Some errors can be caught + before manipulating hardware, although it is feasible that a hardware + call could fail causing some connections to be momentarily closed and + then reopened. + + Args: + connect_spec (str): String describing the connections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + disconnect_spec (str): String describing the disconnections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + multiconnect_mode (enums.MulticonnectMode): This value sets the connection mode for the method. The mode might be + one of the following: NISE_VAL_USE_DEFAULT_MODE (-1) - uses the mode + selected as the default for the route in the NI Switch Executive virtual + device configuration. If a mode has not been selected for the route in + the NI Switch Executive virtual device, this parameter defaults to + NISE_VAL_MULTICONNECT_ROUTES. MulticonnectMode.NO_MULTICONNECT (0) - + routes specified in the connection specification must be disconnected + before they can be reconnected. Calling Connect on a route that was + connected using No Multiconnect mode results in an error condition. + NISE_VAL_MULTICONNECT_ROUTES (1) - routes specified in the connection + specification can be connected multiple times. The first call to Connect + performs the physical hardware connection. Successive calls to Connect + increase a connection reference count. Similarly, calls to Disconnect + decrease the reference count. Once it reaches 0, the hardware is + physically disconnected. This behavior is slightly different with SPDT + relays. For more information, refer to the Exclusions and SPDT Relays + topic in the NI Switch Executive Help. Multiconnecting routes applies to + entire routes and not to route segments. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + operation_order (enums.OperationOrder): Sets the order of the operation for the method. Defined values are + Break Before Make and Break After Make. OperationOrder.BEFORE + (1) - The method disconnects the routes specified in the disconnect + specification before connecting the routes specified in the connect + specification. This is the typical mode of operation. + OperationOrder.AFTER (2) - The method connects the routes + specified in the connection specification before connecting the routes + specified in the disconnection specification. This mode of operation is + normally used when you are switching current and want to ensure that a + load is always connected to your source. The order of operation is to + connect first or disconnect first. + + wait_for_debounce (bool): Waits (if true) for switches to debounce between its connect and + disconnect operations. If false, it immediately begins the second + operation after completing the first. The order of connect and + disconnect operation is set by the Operation Order input. + + ''' + if type(multiconnect_mode) is not enums.MulticonnectMode: + raise TypeError('Parameter multiconnect_mode must be of type ' + str(enums.MulticonnectMode)) + if type(operation_order) is not enums.OperationOrder: + raise TypeError('Parameter operation_order must be of type ' + str(enums.OperationOrder)) + self._interpreter.connect_and_disconnect(connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce) + + def disconnect(self, disconnect_spec): + r'''disconnect + + Disconnects the routes specified in the Disconnection Specification. If + any of the specified routes were originally connected in a + multiconnected mode, the call to disconnect reduces the reference + count on the route by 1. If the reference count reaches 0, it is + disconnected. If a specified route does not exist, it is an error + condition. In the event of an error, the call to disconnect + continues to try to disconnect everything specified by the route + specification string but reports the error on completion. + + Args: + disconnect_spec (str): String describing the disconnections to be made. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + ''' + self._interpreter.disconnect(disconnect_spec) + + def disconnect_all(self): + r'''disconnect_all + + Disconnects all connections on every IVI switch device managed by the + NISE session reference passed to this method. disconnect_all + ignores all multiconnect modes. Calling disconnect_all resets all + of the switch states for the system. + ''' + self._interpreter.disconnect_all() + + def expand_route_spec(self, route_spec, expand_action=enums.ExpandAction.ROUTES, expanded_route_spec_size=[1024]): + r'''expand_route_spec + + Expands a route spec string to yield more information about the routes + and route groups within the spec. The route specification string + returned from expand_route_spec can be passed to other Switch + Executive API methods (such as connect, disconnect, and + connect_and_disconnect) that use route specification strings. + + Args: + route_spec (str): String describing the routes and route groups to expand. The route + specification strings are best summarized as a series of routes + delimited by ampersands. The specified routes may be route names, route + group names, or fully specified route paths delimited by square + brackets. Some examples of route specification strings are: MyRoute + MyRouteGroup MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & + MyRouteGroup & [A->Switch1/r0->B] Refer to Route Specification Strings + in the NI Switch Executive Help for more information. + + expand_action (enums.ExpandAction): This value sets the expand action for the method. The action might be + one of the following: ExpandAction.ROUTES (0) - expands the + route spec to routes. Converts route groups to their constituent routes. + ExpandAction.PATHS (1) - expands the route spec to paths. + Converts routes and route groups to their constituent square bracket + route spec strings. Example: [Dev1/c0->Dev1/r0->Dev1/c1] + + expanded_route_spec_size (list of int): The routeSpecSize is an ViInt32 that is passed by reference into the + method. As an input, it is the size of the route spec string buffer + being passed. If the route spec string is larger than the string buffer + being passed, only the portion of the route spec string that can fit in + the string buffer is copied into it. On return from the method, + routeSpecSize holds the size required to hold the entire route spec + string. Note that this size may be larger than the buffer size as the + method always returns the size needed to hold the entire buffer. You + may pass NULL for this parameter if you are not interested in the return + value for routeSpecSize and routeSpec. + + + Returns: + expanded_route_spec (str): The expanded route spec. Route specification strings can be directly + passed to connect, disconnect, or connect_and_disconnect + Refer to Route Specification Strings in the NI Switch Executive Help for + more information. You may pass NULL for this parameter if you are not + interested in the return value. To obtain the route specification + string, you should pass a buffer to this parameter. The size of the + buffer required may be obtained by calling the method with NULL for + this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize + will contain the size needed to hold the entire route specification + (including the NULL termination character). Common operation is to call + the method twice. The first time you call the method you can + determine the size needed to hold the route specification string. + Allocate a buffer of the appropriate size and then re-call the method + to obtain the entire buffer. + + ''' + if type(expand_action) is not enums.ExpandAction: + raise TypeError('Parameter expand_action must be of type ' + str(enums.ExpandAction)) + expanded_route_spec = self._interpreter.expand_route_spec(route_spec, expand_action, expanded_route_spec_size) + return expanded_route_spec + + def find_route(self, channel1, channel2, route_spec_size=[1024]): + r'''find_route + + Finds an existing or potential route between channel 1 and channel 2. + The returned route specification contains the route specification and + the route capability determines whether or not the route existed, is + possible, or is not possible for various reasons. The route + specification string returned from find_route can be passed to + other Switch Executive API methods (such as connect, + disconnect, and connect_and_disconnect) that use route + specification strings. + + Args: + channel1 (str): Channel name of one of the endpoints of the route to find. The channel + name must either be a channel alias name or a name in the + device/ivichannel syntax. Examples: MyChannel Switch1/R0 + + channel2 (str): Channel name of one of the endpoints of the route to find. The channel + name must either be a channel alias name or a name in the + device/ivichannel syntax. Examples: MyChannel Switch1/R0 + + route_spec_size (list of int): The routeSpecSize is an ViInt32 that is passed by reference into the + method. As an input, it is the size of the route string buffer being + passed. If the route string is larger than the string buffer being + passed, only the portion of the route string that can fit in the string + buffer is copied into it. On return from the method, routeSpecSize + holds the size required to hold the entire route string. Note that this + size may be larger than the buffer size as the method always returns + the size needed to hold the entire buffer. You may pass NULL for this + parameter if you are not interested in the return value for + routeSpecSize and routeSpec. + + + Returns: + route_spec (str): The fully specified route path complete with delimiting square + brackets if the route exists or is possible. An example of a fully + specified route string is: [A->Switch1/r0->B] Route specification + strings can be directly passed to connect, disconnect, or + connect_and_disconnect Refer to Route Specification Strings in the + NI Switch Executive Help for more information. You may pass NULL for + this parameter if you are not interested in the return value. To obtain + the route specification string, you should pass a buffer to this + parameter. The size of the buffer required may be obtained by calling + the method with NULL for this parameter and a valid ViInt32 to + routeSpecSize. The routeSpecSize will contain the size needed to hold + the entire route specification (including the NULL termination + character). Common operation is to call the method twice. The first + time you call the method you can determine the size needed to hold the + route specification string. Allocate a buffer of the appropriate size + and then re-call the method to obtain the entire buffer. + + path_capability (enums.PathCapability): The return value which expresses the capability of finding a valid route + between Channel 1 and Channel 2. Refer to the table below for value + descriptions. You may pass NULL for this parameter if you are not + interested in the return value. Route capability might be one of the + following: Path Available (1) A path between channel 1 and channel 2 is + available. The route specification parameter returns a string describing + the available path. Path Exists (2) A path between channel 1 and channel + 2 already exists. The route specification parameter returns a string + describing the existing path. Path Unsupported (3) There is no potential + path between channel 1 and channel 2 given the current configuration. + Resource In Use (4) There is a potential path between channel 1 and + channel 2, although a resource needed to complete the path is already in + use. Source Conflict (5) Channel 1 and channel 2 cannot be connected + because their connection would result in an exclusion violation. Channel + Not Available (6) One of the channels is not useable as an endpoint + channel. Make sure that it is not marked as a reserved for routing. + Channels Hardwired (7) The two channels reside on the same hardwire. An + implicit path already exists. + + ''' + route_spec, path_capability = self._interpreter.find_route(channel1, channel2, route_spec_size) + return route_spec, path_capability + + def get_all_connections(self, route_spec_size=[1024]): + r'''get_all_connections + + Returns the top-level connected routes and route groups. The route + specification string returned from get_all_connections can be passed + to other Switch Executive API methods (such as connect, + disconnect, connect_and_disconnect, and expand_route_spec) + that use route specification strings. + + Args: + route_spec_size (list of int): The routeSpecSize is an ViInt32 that is passed by reference into the + method. As an input, it is the size of the route spec string buffer + being passed. If the route spec string is larger than the string buffer + being passed, only the portion of the route spec string that can fit in + the string buffer is copied into it. On return from the method, + routeSpecSize holds the size required to hold the entire route spec + string. Note that this size may be larger than the buffer size as the + method always returns the size needed to hold the entire buffer. You + may pass NULL for this parameter if you are not interested in the return + value for routeSpecSize and routeSpec. + + + Returns: + route_spec (str): The route spec of all currently connected routes and route groups. Route + specification strings can be directly passed to connect, + disconnect, connect_and_disconnect, or expand_route_spec + Refer to Route Specification Strings in the NI Switch Executive Help for + more information. You may pass NULL for this parameter if you are not + interested in the return value. To obtain the route specification + string, you should pass a buffer to this parameter. The size of the + buffer required may be obtained by calling the method with NULL for + this parameter and a valid ViInt32 to routeSpecSize. The routeSpecSize + will contain the size needed to hold the entire route specification + (including the NULL termination character). Common operation is to call + the method twice. The first time you call the method you can + determine the size needed to hold the route specification string. + Allocate a buffer of the appropriate size and then re-call the method + to obtain the entire buffer. + + ''' + route_spec = self._interpreter.get_all_connections(route_spec_size) + return route_spec + + def is_connected(self, route_spec): + r'''is_connected + + Checks whether the specified routes and routes groups are connected. It + returns true if connected. + + Args: + route_spec (str): String describing the connections to check. The route specification + strings are best summarized as a series of routes delimited by + ampersands. The specified routes may be route names, route group names, + or fully specified route paths delimited by square brackets. Some + examples of route specification strings are: MyRoute MyRouteGroup + MyRoute & MyRouteGroup [A->Switch1/r0->B] MyRoute & MyRouteGroup & + [A->Switch1/r0->B] Refer to Route Specification Strings in the NI Switch + Executive Help for more information. + + + Returns: + is_connected (bool): Returns TRUE if the routes and routes groups are connected or FALSE if + they are not. + + ''' + is_connected = self._interpreter.is_connected(route_spec) + return is_connected + + def is_debounced(self): + r'''is_debounced + + Checks to see if the switching system is debounced or not. This method + does not wait for debouncing to occur. It returns true if the system is + fully debounced. This method is similar to the IviSwtch specific + method. + + Returns: + is_debounced (bool): Returns TRUE if the system is fully debounced or FALSE if it is still + settling. + + ''' + is_debounced = self._interpreter.is_debounced() + return is_debounced + + def _open_session(self, virtual_device_name, option_string=""): + r'''_open_session + + Opens a session to a specified NI Switch Executive virtual device. Opens + communications with all of the IVI switches associated with the + specified NI Switch Executive virtual device. Returns a session handle + that you use to identify the virtual device in all subsequent NI Switch + Executive method calls. NI Switch Executive uses a reference counting + scheme to manage open session handles to an NI Switch Executive virtual + device. Each call to __init__ must be matched with a subsequent + call to close. Successive calls to __init__ with + the same virtual device name always returns the same session handle. NI + Switch Executive disconnects its communication with the IVI switches + after all session handles are closed to a given virtual device. The + session handles may be used safely in multiple threads of an + application. Sessions may only be opened to a given NI Switch Executive + virtual device from a single process at a time. + + Args: + virtual_device_name (str): The name of the NI Switch Executive virtual device. + + option_string (dict): The option string can be used to pass information to each of the IVI + devices on startup. It can be used to set things such as simulation, + range checking, etc. Consult your driver documentation for more + information about valid entries for the option string. + + + Returns: + vi (int): The session referencing this NI Switch Executive virtual device session. + + ''' + option_string = _converters.convert_init_with_options_dictionary(option_string) + vi = self._interpreter.open_session(virtual_device_name, option_string) + return vi + + def wait_for_debounce(self, maximum_time_ms=hightime.timedelta(milliseconds=-1)): + r'''wait_for_debounce + + Waits for all of the switches in the NI Switch Executive virtual device + to debounce. This method does not return until either the switching + system is completely debounced and settled or the maximum time has + elapsed and the system is not yet debounced. In the event that the + maximum time elapses, the method returns an error indicating that a + timeout has occurred. To ensure that all of the switches have settled, + NI recommends calling wait_for_debounce after a series of connection + or disconnection operations and before taking any measurements of the + signals connected to the switching system. + + Args: + maximum_time_ms (hightime.timedelta, datetime.timedelta, or int in milliseconds): The amount of time to wait (in milliseconds) for the debounce to + complete. A value of 0 checks for debouncing once and returns an error + if the system is not debounced at that time. A value of -1 means to + block for an infinite period of time until the system is debounced. + + ''' + maximum_time_ms = _converters.convert_timedelta_to_milliseconds_int32(maximum_time_ms) + self._interpreter.wait_for_debounce(maximum_time_ms) diff --git a/generated/nise/nise/unit_tests/_matchers.py b/generated/nise/nise/unit_tests/_matchers.py new file mode 100644 index 0000000000..696c4cb342 --- /dev/null +++ b/generated/nise/nise/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nise._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nise/nise/unit_tests/_mock_helper.py b/generated/nise/nise/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..79e48528ee --- /dev/null +++ b/generated/nise/nise/unit_tests/_mock_helper.py @@ -0,0 +1,214 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['CloseSession'] = {} + self._defaults['CloseSession']['return'] = 0 + self._defaults['Connect'] = {} + self._defaults['Connect']['return'] = 0 + self._defaults['ConnectAndDisconnect'] = {} + self._defaults['ConnectAndDisconnect']['return'] = 0 + self._defaults['Disconnect'] = {} + self._defaults['Disconnect']['return'] = 0 + self._defaults['DisconnectAll'] = {} + self._defaults['DisconnectAll']['return'] = 0 + self._defaults['ExpandRouteSpec'] = {} + self._defaults['ExpandRouteSpec']['return'] = 0 + self._defaults['ExpandRouteSpec']['expandedRouteSpec'] = None + self._defaults['FindRoute'] = {} + self._defaults['FindRoute']['return'] = 0 + self._defaults['FindRoute']['routeSpec'] = None + self._defaults['FindRoute']['pathCapability'] = None + self._defaults['GetAllConnections'] = {} + self._defaults['GetAllConnections']['return'] = 0 + self._defaults['GetAllConnections']['routeSpec'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorNumber'] = None + self._defaults['GetError']['errorDescription'] = None + self._defaults['IsConnected'] = {} + self._defaults['IsConnected']['return'] = 0 + self._defaults['IsConnected']['isConnected'] = None + self._defaults['IsDebounced'] = {} + self._defaults['IsDebounced']['return'] = 0 + self._defaults['IsDebounced']['isDebounced'] = None + self._defaults['OpenSession'] = {} + self._defaults['OpenSession']['return'] = 0 + self._defaults['OpenSession']['vi'] = None + self._defaults['WaitForDebounce'] = {} + self._defaults['WaitForDebounce']['return'] = 0 + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niSE_CloseSession(self, vi): # noqa: N802 + if self._defaults['CloseSession']['return'] != 0: + return self._defaults['CloseSession']['return'] + return self._defaults['CloseSession']['return'] + + def niSE_Connect(self, vi, connect_spec, multiconnect_mode, wait_for_debounce): # noqa: N802 + if self._defaults['Connect']['return'] != 0: + return self._defaults['Connect']['return'] + return self._defaults['Connect']['return'] + + def niSE_ConnectAndDisconnect(self, vi, connect_spec, disconnect_spec, multiconnect_mode, operation_order, wait_for_debounce): # noqa: N802 + if self._defaults['ConnectAndDisconnect']['return'] != 0: + return self._defaults['ConnectAndDisconnect']['return'] + return self._defaults['ConnectAndDisconnect']['return'] + + def niSE_Disconnect(self, vi, disconnect_spec): # noqa: N802 + if self._defaults['Disconnect']['return'] != 0: + return self._defaults['Disconnect']['return'] + return self._defaults['Disconnect']['return'] + + def niSE_DisconnectAll(self, vi): # noqa: N802 + if self._defaults['DisconnectAll']['return'] != 0: + return self._defaults['DisconnectAll']['return'] + return self._defaults['DisconnectAll']['return'] + + def niSE_ExpandRouteSpec(self, vi, route_spec, expand_action, expanded_route_spec, expanded_route_spec_size): # noqa: N802 + if self._defaults['ExpandRouteSpec']['return'] != 0: + return self._defaults['ExpandRouteSpec']['return'] + # expanded_route_spec + if self._defaults['ExpandRouteSpec']['expandedRouteSpec'] is None: + raise MockFunctionCallError("niSE_ExpandRouteSpec", param='expandedRouteSpec') + test_value = self._defaults['ExpandRouteSpec']['expandedRouteSpec'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(expanded_route_spec) >= len(test_value) + for i in range(len(test_value)): + expanded_route_spec[i] = test_value[i] + return self._defaults['ExpandRouteSpec']['return'] + + def niSE_FindRoute(self, vi, channel1, channel2, route_spec, route_spec_size, path_capability): # noqa: N802 + if self._defaults['FindRoute']['return'] != 0: + return self._defaults['FindRoute']['return'] + # route_spec + if self._defaults['FindRoute']['routeSpec'] is None: + raise MockFunctionCallError("niSE_FindRoute", param='routeSpec') + test_value = self._defaults['FindRoute']['routeSpec'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(route_spec) >= len(test_value) + for i in range(len(test_value)): + route_spec[i] = test_value[i] + # path_capability + if self._defaults['FindRoute']['pathCapability'] is None: + raise MockFunctionCallError("niSE_FindRoute", param='pathCapability') + if path_capability is not None: + path_capability.contents.value = self._defaults['FindRoute']['pathCapability'] + return self._defaults['FindRoute']['return'] + + def niSE_GetAllConnections(self, vi, route_spec, route_spec_size): # noqa: N802 + if self._defaults['GetAllConnections']['return'] != 0: + return self._defaults['GetAllConnections']['return'] + # route_spec + if self._defaults['GetAllConnections']['routeSpec'] is None: + raise MockFunctionCallError("niSE_GetAllConnections", param='routeSpec') + test_value = self._defaults['GetAllConnections']['routeSpec'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(route_spec) >= len(test_value) + for i in range(len(test_value)): + route_spec[i] = test_value[i] + return self._defaults['GetAllConnections']['return'] + + def niSE_GetError(self, vi, error_number, error_description, error_description_size): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_number + if self._defaults['GetError']['errorNumber'] is None: + raise MockFunctionCallError("niSE_GetError", param='errorNumber') + if error_number is not None: + error_number.contents.value = self._defaults['GetError']['errorNumber'] + # error_description + if self._defaults['GetError']['errorDescription'] is None: + raise MockFunctionCallError("niSE_GetError", param='errorDescription') + test_value = self._defaults['GetError']['errorDescription'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_description) >= len(test_value) + for i in range(len(test_value)): + error_description[i] = test_value[i] + return self._defaults['GetError']['return'] + + def niSE_IsConnected(self, vi, route_spec, is_connected): # noqa: N802 + if self._defaults['IsConnected']['return'] != 0: + return self._defaults['IsConnected']['return'] + # is_connected + if self._defaults['IsConnected']['isConnected'] is None: + raise MockFunctionCallError("niSE_IsConnected", param='isConnected') + if is_connected is not None: + is_connected.contents.value = self._defaults['IsConnected']['isConnected'] + return self._defaults['IsConnected']['return'] + + def niSE_IsDebounced(self, vi, is_debounced): # noqa: N802 + if self._defaults['IsDebounced']['return'] != 0: + return self._defaults['IsDebounced']['return'] + # is_debounced + if self._defaults['IsDebounced']['isDebounced'] is None: + raise MockFunctionCallError("niSE_IsDebounced", param='isDebounced') + if is_debounced is not None: + is_debounced.contents.value = self._defaults['IsDebounced']['isDebounced'] + return self._defaults['IsDebounced']['return'] + + def niSE_OpenSession(self, virtual_device_name, option_string, vi): # noqa: N802 + if self._defaults['OpenSession']['return'] != 0: + return self._defaults['OpenSession']['return'] + # vi + if self._defaults['OpenSession']['vi'] is None: + raise MockFunctionCallError("niSE_OpenSession", param='vi') + if vi is not None: + vi.contents.value = self._defaults['OpenSession']['vi'] + return self._defaults['OpenSession']['return'] + + def niSE_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 + if self._defaults['WaitForDebounce']['return'] != 0: + return self._defaults['WaitForDebounce']['return'] + return self._defaults['WaitForDebounce']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niSE_CloseSession.side_effect = MockFunctionCallError("niSE_CloseSession") + mock_library.niSE_CloseSession.return_value = 0 + mock_library.niSE_Connect.side_effect = MockFunctionCallError("niSE_Connect") + mock_library.niSE_Connect.return_value = 0 + mock_library.niSE_ConnectAndDisconnect.side_effect = MockFunctionCallError("niSE_ConnectAndDisconnect") + mock_library.niSE_ConnectAndDisconnect.return_value = 0 + mock_library.niSE_Disconnect.side_effect = MockFunctionCallError("niSE_Disconnect") + mock_library.niSE_Disconnect.return_value = 0 + mock_library.niSE_DisconnectAll.side_effect = MockFunctionCallError("niSE_DisconnectAll") + mock_library.niSE_DisconnectAll.return_value = 0 + mock_library.niSE_ExpandRouteSpec.side_effect = MockFunctionCallError("niSE_ExpandRouteSpec") + mock_library.niSE_ExpandRouteSpec.return_value = 0 + mock_library.niSE_FindRoute.side_effect = MockFunctionCallError("niSE_FindRoute") + mock_library.niSE_FindRoute.return_value = 0 + mock_library.niSE_GetAllConnections.side_effect = MockFunctionCallError("niSE_GetAllConnections") + mock_library.niSE_GetAllConnections.return_value = 0 + mock_library.niSE_GetError.side_effect = MockFunctionCallError("niSE_GetError") + mock_library.niSE_GetError.return_value = 0 + mock_library.niSE_IsConnected.side_effect = MockFunctionCallError("niSE_IsConnected") + mock_library.niSE_IsConnected.return_value = 0 + mock_library.niSE_IsDebounced.side_effect = MockFunctionCallError("niSE_IsDebounced") + mock_library.niSE_IsDebounced.return_value = 0 + mock_library.niSE_OpenSession.side_effect = MockFunctionCallError("niSE_OpenSession") + mock_library.niSE_OpenSession.return_value = 0 + mock_library.niSE_WaitForDebounce.side_effect = MockFunctionCallError("niSE_WaitForDebounce") + mock_library.niSE_WaitForDebounce.return_value = 0 diff --git a/generated/nise/setup.py b/generated/nise/setup.py new file mode 100644 index 0000000000..73e48d54ee --- /dev/null +++ b/generated/nise/setup.py @@ -0,0 +1,55 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nise' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI Switch Executive Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nise'], + license='MIT', + include_package_data=True, + packages=['nise'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + ], + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nise/tox-system_tests.ini b/generated/nise/tox-system_tests.ini new file mode 100644 index 0000000000..e09cc508d1 --- /dev/null +++ b/generated/nise/tox-system_tests.ini @@ -0,0 +1,64 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nise) +[tox] +envlist = py{310,311,312,313,314}-nise-system_tests, py314-nise-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nise-system_tests: Run nise system tests (requires NI Switch Executive runtime to be installed) + nise-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nise-system_tests: . + nise-coverage: . + +commands = + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nise-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nise-system_tests: python -c "import nise; nise.print_diagnostic_information()" + nise-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nise --parallel-mode -m pytest ../../src/nise/examples --junitxml=../junit/junit-nise-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nise-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nise --parallel-mode -m pytest ../../src/nise/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nise-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nise-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nise-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nise-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nise-system_tests: pytest < 9.2.0 + nise-system_tests: coverage + nise-system_tests: numpy + nise-system_tests: hightime + nise-system_tests: fasteners + nise-system_tests: pytest-json + + nise-coverage: coverage + +depends = + nise-coverage: py{310,311,312,313,314}-nise-system_tests + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/niswitch/README.rst b/generated/niswitch/README.rst new file mode 100644 index 0000000000..782b599e9c --- /dev/null +++ b/generated/niswitch/README.rst @@ -0,0 +1,170 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **niswitch** module provides a Python API for NI-SWITCH. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**niswitch** supports all the Operating Systems supported by NI-SWITCH. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **niswitch**. + + +NI-SWITCH Python API Status +--------------------------- + ++-------------------------------+-------------------------+ +| NI-SWITCH (niswitch) | | ++===============================+=========================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-------------------------+ +| PyPI Version | |niswitchLatestVersion| | ++-------------------------------+-------------------------+ +| Supported Python Version | |niswitchPythonVersion| | ++-------------------------------+-------------------------+ +| Documentation | |niswitchDocs| | ++-------------------------------+-------------------------+ +| Open Issues | |niswitchOpenIssues| | ++-------------------------------+-------------------------+ +| Open Pull Requests | |niswitchOpenPRs| | ++-------------------------------+-------------------------+ + + +.. |niswitchLatestVersion| image:: http://img.shields.io/pypi/v/niswitch.svg + :alt: Latest NI-SWITCH Version + :target: http://pypi.python.org/pypi/niswitch + + +.. |niswitchPythonVersion| image:: http://img.shields.io/pypi/pyversions/niswitch.svg + :alt: NI-SWITCH supported Python versions + :target: http://pypi.python.org/pypi/niswitch + + +.. |niswitchDocs| image:: https://readthedocs.org/projects/niswitch/badge/?version=latest + :alt: NI-SWITCH Python API Documentation Status + :target: https://niswitch.readthedocs.io/en/latest + + +.. |niswitchOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/niswitch.svg + :alt: Open Issues + Pull Requests for NI-SWITCH + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Aniswitch + + +.. |niswitchOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/niswitch.svg + :alt: Pull Requests for NI-SWITCH + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Aniswitch + + + +.. _niswitch_installation-section: + +Installation +------------ + +As a prerequisite to using the **niswitch** module, you must install the NI-SWITCH runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-SWITCH**) can be installed with `pip `_:: + + $ python -m pip install niswitch + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **niswitch** module to open a session to a Switch and connect channels. + +.. code-block:: python + + import niswitch + with niswitch.Session("Dev1") as session: + session.connect(channel1='r0', channel2='c0') + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/niswitch/niswitch/VERSION b/generated/niswitch/niswitch/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/niswitch/niswitch/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/niswitch/niswitch/__init__.py b/generated/niswitch/niswitch/__init__.py new file mode 100644 index 0000000000..31560247a6 --- /dev/null +++ b/generated/niswitch/niswitch/__init__.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from niswitch.enums import * # noqa: F403,F401,H303 +from niswitch.errors import DriverWarning # noqa: F401 +from niswitch.errors import Error # noqa: F401 +from niswitch.grpc_session_options import * # noqa: F403,F401,H303 +from niswitch.session import Session # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-SWITCH\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-SWITCH" + info['driver']['version'] = driver_version + info['module']['name'] = 'niswitch' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/niswitch/niswitch/_attributes.py b/generated/niswitch/niswitch/_attributes.py new file mode 100644 index 0000000000..017f27dbc1 --- /dev/null +++ b/generated/niswitch/niswitch/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import niswitch._converters as _converters +import niswitch.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the niswitch Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from niswitch.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/niswitch/niswitch/_converters.py b/generated/niswitch/niswitch/_converters.py new file mode 100644 index 0000000000..e72487bda4 --- /dev/null +++ b/generated/niswitch/niswitch/_converters.py @@ -0,0 +1,365 @@ +# -*- coding: utf-8 -*- +# This file was generated +import niswitch._visatype as _visatype +import niswitch.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + diff --git a/generated/niswitch/niswitch/_grpc_stub_interpreter.py b/generated/niswitch/niswitch/_grpc_stub_interpreter.py new file mode 100644 index 0000000000..26d382e948 --- /dev/null +++ b/generated/niswitch/niswitch/_grpc_stub_interpreter.py @@ -0,0 +1,326 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import grpc +import hightime # noqa: F401 +import nitlsconfig +import session_pb2 as session_grpc_types +import threading +import warnings + +from . import enums as enums # noqa: F401 +from . import errors as errors +from . import niswitch_pb2 as grpc_types +from . import niswitch_pb2_grpc as niswitch_grpc + + +class GrpcStubInterpreter(object): + '''Interpreter for interacting with a gRPC Stub class''' + + def __init__(self, grpc_options): + self._grpc_options = grpc_options + self._lock = threading.RLock() + self._client = niswitch_grpc.NiSwitchStub(grpc_options.grpc_channel) + self.set_session_handle() + + def set_session_handle(self, value=session_grpc_types.Session()): + self._vi = value + + def get_session_handle(self): + return self._vi + + def _invoke(self, func, request, metadata=None): + try: + response = func(request, metadata=metadata) + error_code = response.status + error_message = '' + except grpc.RpcError as rpc_error: + error_code = None + error_message = rpc_error.details() + for entry in rpc_error.trailing_metadata() or []: + if entry.key == 'ni-error': + value = entry.value if isinstance(entry.value, str) else entry.value.decode('utf-8') + try: + error_code = int(value) + except ValueError: + error_message += f'\nError status: {value}' + + grpc_error = rpc_error.code() + if grpc_error == grpc.StatusCode.NOT_FOUND: + raise errors.DriverTooOldError() from None + elif grpc_error == grpc.StatusCode.INVALID_ARGUMENT: + raise ValueError(error_message) from None + elif grpc_error == grpc.StatusCode.UNAVAILABLE: + # gRPC reports a rejected TLS handshake and an unreachable server with the + # same code, so ask NI-TLS whether it built this channel and can say more. + error_message = nitlsconfig.get_tls_connection_error_elaboration( + self._grpc_options.grpc_channel + ) or 'Failed to connect to server' + elif grpc_error == grpc.StatusCode.UNIMPLEMENTED: + error_message = ( + 'This operation is not supported by the NI gRPC Device Server being used. Upgrade NI gRPC Device Server.' + ) + + if error_code is None: + raise errors.RpcError(grpc_error, error_message) from None + + if error_code < 0: + raise errors.DriverError(error_code, error_message) + elif error_code > 0: + if not error_message: + try: + error_message = self.error_message(error_code) + except errors.Error: + error_message = 'Failed to retrieve error description.' + warnings.warn(errors.DriverWarning(error_code, error_message)) + return response + + def abort(self): # noqa: N802 + self._invoke( + self._client.AbortScan, + grpc_types.AbortScanRequest(vi=self._vi), + ) + + def can_connect(self, channel1, channel2): # noqa: N802 + response = self._invoke( + self._client.CanConnect, + grpc_types.CanConnectRequest(vi=self._vi, channel1=channel1, channel2=channel2), + ) + return enums.PathCapability(response.path_capability_raw) + + def commit(self): # noqa: N802 + self._invoke( + self._client.Commit, + grpc_types.CommitRequest(vi=self._vi), + ) + + def connect(self, channel1, channel2): # noqa: N802 + self._invoke( + self._client.Connect, + grpc_types.ConnectRequest(vi=self._vi, channel1=channel1, channel2=channel2), + ) + + def connect_multiple(self, connection_list): # noqa: N802 + self._invoke( + self._client.ConnectMultiple, + grpc_types.ConnectMultipleRequest(vi=self._vi, connection_list=connection_list), + ) + + def disable(self): # noqa: N802 + self._invoke( + self._client.Disable, + grpc_types.DisableRequest(vi=self._vi), + ) + + def disconnect(self, channel1, channel2): # noqa: N802 + self._invoke( + self._client.Disconnect, + grpc_types.DisconnectRequest(vi=self._vi, channel1=channel1, channel2=channel2), + ) + + def disconnect_all(self): # noqa: N802 + self._invoke( + self._client.DisconnectAll, + grpc_types.DisconnectAllRequest(vi=self._vi), + ) + + def disconnect_multiple(self, disconnection_list): # noqa: N802 + self._invoke( + self._client.DisconnectMultiple, + grpc_types.DisconnectMultipleRequest(vi=self._vi, disconnection_list=disconnection_list), + ) + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViBoolean, + grpc_types.GetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViInt32, + grpc_types.GetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViReal64, + grpc_types.GetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + response = self._invoke( + self._client.GetAttributeViString, + grpc_types.GetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id), + ) + return response.attribute_value + + def get_channel_name(self, index): # noqa: N802 + response = self._invoke( + self._client.GetChannelName, + grpc_types.GetChannelNameRequest(vi=self._vi, index=index), + ) + return response.channel_name_buffer + + def get_error(self): # noqa: N802 + response = self._invoke( + self._client.GetError, + grpc_types.GetErrorRequest(vi=self._vi), + ) + return response.code, response.description + + def get_path(self, channel1, channel2): # noqa: N802 + response = self._invoke( + self._client.GetPath, + grpc_types.GetPathRequest(vi=self._vi, channel1=channel1, channel2=channel2), + ) + return response.path + + def get_relay_count(self, relay_name): # noqa: N802 + response = self._invoke( + self._client.GetRelayCount, + grpc_types.GetRelayCountRequest(vi=self._vi, relay_name=relay_name), + ) + return response.relay_count + + def get_relay_name(self, index): # noqa: N802 + response = self._invoke( + self._client.GetRelayName, + grpc_types.GetRelayNameRequest(vi=self._vi, index=index), + ) + return response.relay_name_buffer + + def get_relay_position(self, relay_name): # noqa: N802 + response = self._invoke( + self._client.GetRelayPosition, + grpc_types.GetRelayPositionRequest(vi=self._vi, relay_name=relay_name), + ) + return enums.RelayPosition(response.relay_position_raw) + + def init_with_topology(self, resource_name, topology, simulate, reset_device): # noqa: N802 + metadata = ( + ('ni-api-key', self._grpc_options.api_key), + ) + response = self._invoke( + self._client.InitWithTopology, + grpc_types.InitWithTopologyRequest(resource_name=resource_name, topology=topology, simulate=simulate, reset_device=reset_device, session_name=self._grpc_options.session_name, initialization_behavior=self._grpc_options.initialization_behavior), + metadata=metadata, + ) + self._close_on_exit = response.new_session_initialized + return response.vi + + def initiate_scan(self): # noqa: N802 + self._invoke( + self._client.InitiateScan, + grpc_types.InitiateScanRequest(vi=self._vi), + ) + + def lock(self): # noqa: N802 + self._lock.acquire() + + def relay_control(self, relay_name, relay_action): # noqa: N802 + self._invoke( + self._client.RelayControl, + grpc_types.RelayControlRequest(vi=self._vi, relay_name=relay_name, relay_action_raw=relay_action.value), + ) + + def reset_with_defaults(self): # noqa: N802 + self._invoke( + self._client.ResetWithDefaults, + grpc_types.ResetWithDefaultsRequest(vi=self._vi), + ) + + def route_scan_advanced_output(self, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 + self._invoke( + self._client.RouteScanAdvancedOutput, + grpc_types.RouteScanAdvancedOutputRequest(vi=self._vi, scan_advanced_output_connector_raw=scan_advanced_output_connector.value, scan_advanced_output_bus_line_raw=scan_advanced_output_bus_line.value, invert=invert), + ) + + def route_trigger_input(self, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 + self._invoke( + self._client.RouteTriggerInput, + grpc_types.RouteTriggerInputRequest(vi=self._vi, trigger_input_connector_raw=trigger_input_connector.value, trigger_input_bus_line_raw=trigger_input_bus_line.value, invert=invert), + ) + + def send_software_trigger(self): # noqa: N802 + self._invoke( + self._client.SendSoftwareTrigger, + grpc_types.SendSoftwareTriggerRequest(vi=self._vi), + ) + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViBoolean, + grpc_types.SetAttributeViBooleanRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value=attribute_value), + ) + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViInt32, + grpc_types.SetAttributeViInt32Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViReal64, + grpc_types.SetAttributeViReal64Request(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + self._invoke( + self._client.SetAttributeViString, + grpc_types.SetAttributeViStringRequest(vi=self._vi, channel_name=channel_name, attribute_id=attribute_id, attribute_value_raw=attribute_value), + ) + + def set_path(self, path_list): # noqa: N802 + self._invoke( + self._client.SetPath, + grpc_types.SetPathRequest(vi=self._vi, path_list=path_list), + ) + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + raise NotImplementedError('set_runtime_environment is not supported over gRPC') + + def unlock(self): # noqa: N802 + self._lock.release() + + def wait_for_debounce(self, maximum_time_ms): # noqa: N802 + self._invoke( + self._client.WaitForDebounce, + grpc_types.WaitForDebounceRequest(vi=self._vi, maximum_time_ms=maximum_time_ms), + ) + + def wait_for_scan_complete(self, maximum_time_ms): # noqa: N802 + self._invoke( + self._client.WaitForScanComplete, + grpc_types.WaitForScanCompleteRequest(vi=self._vi, maximum_time_ms=maximum_time_ms), + ) + + def close(self): # noqa: N802 + self._invoke( + self._client.Close, + grpc_types.CloseRequest(vi=self._vi), + ) + + def error_message(self, error_code): # noqa: N802 + response = self._invoke( + self._client.ErrorMessage, + grpc_types.ErrorMessageRequest(vi=self._vi, error_code=error_code), + ) + return response.error_message + + def reset(self): # noqa: N802 + self._invoke( + self._client.Reset, + grpc_types.ResetRequest(vi=self._vi), + ) + + def self_test(self): # noqa: N802 + response = self._invoke( + self._client.SelfTest, + grpc_types.SelfTestRequest(vi=self._vi), + ) + return response.self_test_result, response.self_test_message diff --git a/generated/niswitch/niswitch/_library.py b/generated/niswitch/niswitch/_library.py new file mode 100644 index 0000000000..a91d25167b --- /dev/null +++ b/generated/niswitch/niswitch/_library.py @@ -0,0 +1,388 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import niswitch.errors as errors +import threading + +from niswitch._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niSwitch_AbortScan_cfunc = None + self.niSwitch_CanConnect_cfunc = None + self.niSwitch_Commit_cfunc = None + self.niSwitch_Connect_cfunc = None + self.niSwitch_ConnectMultiple_cfunc = None + self.niSwitch_Disable_cfunc = None + self.niSwitch_Disconnect_cfunc = None + self.niSwitch_DisconnectAll_cfunc = None + self.niSwitch_DisconnectMultiple_cfunc = None + self.niSwitch_GetAttributeViBoolean_cfunc = None + self.niSwitch_GetAttributeViInt32_cfunc = None + self.niSwitch_GetAttributeViReal64_cfunc = None + self.niSwitch_GetAttributeViString_cfunc = None + self.niSwitch_GetChannelName_cfunc = None + self.niSwitch_GetError_cfunc = None + self.niSwitch_GetPath_cfunc = None + self.niSwitch_GetRelayCount_cfunc = None + self.niSwitch_GetRelayName_cfunc = None + self.niSwitch_GetRelayPosition_cfunc = None + self.niSwitch_InitWithTopology_cfunc = None + self.niSwitch_InitiateScan_cfunc = None + self.niSwitch_LockSession_cfunc = None + self.niSwitch_RelayControl_cfunc = None + self.niSwitch_ResetWithDefaults_cfunc = None + self.niSwitch_RouteScanAdvancedOutput_cfunc = None + self.niSwitch_RouteTriggerInput_cfunc = None + self.niSwitch_SendSoftwareTrigger_cfunc = None + self.niSwitch_SetAttributeViBoolean_cfunc = None + self.niSwitch_SetAttributeViInt32_cfunc = None + self.niSwitch_SetAttributeViReal64_cfunc = None + self.niSwitch_SetAttributeViString_cfunc = None + self.niSwitch_SetPath_cfunc = None + self.niSwitch_SetRuntimeEnvironment_cfunc = None + self.niSwitch_UnlockSession_cfunc = None + self.niSwitch_WaitForDebounce_cfunc = None + self.niSwitch_WaitForScanComplete_cfunc = None + self.niSwitch_close_cfunc = None + self.niSwitch_error_message_cfunc = None + self.niSwitch_reset_cfunc = None + self.niSwitch_self_test_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niSwitch_AbortScan(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_AbortScan_cfunc is None: + self.niSwitch_AbortScan_cfunc = self._get_library_function('niSwitch_AbortScan') + self.niSwitch_AbortScan_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_AbortScan_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_AbortScan_cfunc(vi) + + def niSwitch_CanConnect(self, vi, channel1, channel2, path_capability): # noqa: N802 + with self._func_lock: + if self.niSwitch_CanConnect_cfunc is None: + self.niSwitch_CanConnect_cfunc = self._get_library_function('niSwitch_CanConnect') + self.niSwitch_CanConnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSwitch_CanConnect_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_CanConnect_cfunc(vi, channel1, channel2, path_capability) + + def niSwitch_Commit(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_Commit_cfunc is None: + self.niSwitch_Commit_cfunc = self._get_library_function('niSwitch_Commit') + self.niSwitch_Commit_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_Commit_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_Commit_cfunc(vi) + + def niSwitch_Connect(self, vi, channel1, channel2): # noqa: N802 + with self._func_lock: + if self.niSwitch_Connect_cfunc is None: + self.niSwitch_Connect_cfunc = self._get_library_function('niSwitch_Connect') + self.niSwitch_Connect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_Connect_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_Connect_cfunc(vi, channel1, channel2) + + def niSwitch_ConnectMultiple(self, vi, connection_list): # noqa: N802 + with self._func_lock: + if self.niSwitch_ConnectMultiple_cfunc is None: + self.niSwitch_ConnectMultiple_cfunc = self._get_library_function('niSwitch_ConnectMultiple') + self.niSwitch_ConnectMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_ConnectMultiple_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_ConnectMultiple_cfunc(vi, connection_list) + + def niSwitch_Disable(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_Disable_cfunc is None: + self.niSwitch_Disable_cfunc = self._get_library_function('niSwitch_Disable') + self.niSwitch_Disable_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_Disable_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_Disable_cfunc(vi) + + def niSwitch_Disconnect(self, vi, channel1, channel2): # noqa: N802 + with self._func_lock: + if self.niSwitch_Disconnect_cfunc is None: + self.niSwitch_Disconnect_cfunc = self._get_library_function('niSwitch_Disconnect') + self.niSwitch_Disconnect_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_Disconnect_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_Disconnect_cfunc(vi, channel1, channel2) + + def niSwitch_DisconnectAll(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_DisconnectAll_cfunc is None: + self.niSwitch_DisconnectAll_cfunc = self._get_library_function('niSwitch_DisconnectAll') + self.niSwitch_DisconnectAll_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_DisconnectAll_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_DisconnectAll_cfunc(vi) + + def niSwitch_DisconnectMultiple(self, vi, disconnection_list): # noqa: N802 + with self._func_lock: + if self.niSwitch_DisconnectMultiple_cfunc is None: + self.niSwitch_DisconnectMultiple_cfunc = self._get_library_function('niSwitch_DisconnectMultiple') + self.niSwitch_DisconnectMultiple_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_DisconnectMultiple_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_DisconnectMultiple_cfunc(vi, disconnection_list) + + def niSwitch_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetAttributeViBoolean_cfunc is None: + self.niSwitch_GetAttributeViBoolean_cfunc = self._get_library_function('niSwitch_GetAttributeViBoolean') + self.niSwitch_GetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niSwitch_GetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetAttributeViInt32_cfunc is None: + self.niSwitch_GetAttributeViInt32_cfunc = self._get_library_function('niSwitch_GetAttributeViInt32') + self.niSwitch_GetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSwitch_GetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetAttributeViReal64_cfunc is None: + self.niSwitch_GetAttributeViReal64_cfunc = self._get_library_function('niSwitch_GetAttributeViReal64') + self.niSwitch_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niSwitch_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetAttributeViString_cfunc is None: + self.niSwitch_GetAttributeViString_cfunc = self._get_library_function('niSwitch_GetAttributeViString') + self.niSwitch_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetAttributeViString_cfunc(vi, channel_name, attribute_id, array_size, attribute_value) + + def niSwitch_GetChannelName(self, vi, index, buffer_size, channel_name_buffer): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetChannelName_cfunc is None: + self.niSwitch_GetChannelName_cfunc = self._get_library_function('niSwitch_GetChannelName') + self.niSwitch_GetChannelName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_GetChannelName_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetChannelName_cfunc(vi, index, buffer_size, channel_name_buffer) + + def niSwitch_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetError_cfunc is None: + self.niSwitch_GetError_cfunc = self._get_library_function('niSwitch_GetError') + self.niSwitch_GetError_cfunc.argtypes = [ViSession, ctypes.POINTER(ViStatus), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_GetError_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetError_cfunc(vi, error_code, buffer_size, description) + + def niSwitch_GetPath(self, vi, channel1, channel2, buffer_size, path): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetPath_cfunc is None: + self.niSwitch_GetPath_cfunc = self._get_library_function('niSwitch_GetPath') + self.niSwitch_GetPath_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_GetPath_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetPath_cfunc(vi, channel1, channel2, buffer_size, path) + + def niSwitch_GetRelayCount(self, vi, relay_name, relay_count): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetRelayCount_cfunc is None: + self.niSwitch_GetRelayCount_cfunc = self._get_library_function('niSwitch_GetRelayCount') + self.niSwitch_GetRelayCount_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSwitch_GetRelayCount_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetRelayCount_cfunc(vi, relay_name, relay_count) + + def niSwitch_GetRelayName(self, vi, index, relay_name_buffer_size, relay_name_buffer): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetRelayName_cfunc is None: + self.niSwitch_GetRelayName_cfunc = self._get_library_function('niSwitch_GetRelayName') + self.niSwitch_GetRelayName_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_GetRelayName_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetRelayName_cfunc(vi, index, relay_name_buffer_size, relay_name_buffer) + + def niSwitch_GetRelayPosition(self, vi, relay_name, relay_position): # noqa: N802 + with self._func_lock: + if self.niSwitch_GetRelayPosition_cfunc is None: + self.niSwitch_GetRelayPosition_cfunc = self._get_library_function('niSwitch_GetRelayPosition') + self.niSwitch_GetRelayPosition_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ctypes.POINTER(ViInt32)] # noqa: F405 + self.niSwitch_GetRelayPosition_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_GetRelayPosition_cfunc(vi, relay_name, relay_position) + + def niSwitch_InitWithTopology(self, resource_name, topology, simulate, reset_device, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_InitWithTopology_cfunc is None: + self.niSwitch_InitWithTopology_cfunc = self._get_library_function('niSwitch_InitWithTopology') + self.niSwitch_InitWithTopology_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ViBoolean, ViBoolean, ctypes.POINTER(ViSession)] # noqa: F405 + self.niSwitch_InitWithTopology_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_InitWithTopology_cfunc(resource_name, topology, simulate, reset_device, vi) + + def niSwitch_InitiateScan(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_InitiateScan_cfunc is None: + self.niSwitch_InitiateScan_cfunc = self._get_library_function('niSwitch_InitiateScan') + self.niSwitch_InitiateScan_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_InitiateScan_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_InitiateScan_cfunc(vi) + + def niSwitch_LockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niSwitch_LockSession_cfunc is None: + self.niSwitch_LockSession_cfunc = self._get_library_function('niSwitch_LockSession') + self.niSwitch_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niSwitch_LockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_LockSession_cfunc(vi, caller_has_lock) + + def niSwitch_RelayControl(self, vi, relay_name, relay_action): # noqa: N802 + with self._func_lock: + if self.niSwitch_RelayControl_cfunc is None: + self.niSwitch_RelayControl_cfunc = self._get_library_function('niSwitch_RelayControl') + self.niSwitch_RelayControl_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViInt32] # noqa: F405 + self.niSwitch_RelayControl_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_RelayControl_cfunc(vi, relay_name, relay_action) + + def niSwitch_ResetWithDefaults(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_ResetWithDefaults_cfunc is None: + self.niSwitch_ResetWithDefaults_cfunc = self._get_library_function('niSwitch_ResetWithDefaults') + self.niSwitch_ResetWithDefaults_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_ResetWithDefaults_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_ResetWithDefaults_cfunc(vi) + + def niSwitch_RouteScanAdvancedOutput(self, vi, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 + with self._func_lock: + if self.niSwitch_RouteScanAdvancedOutput_cfunc is None: + self.niSwitch_RouteScanAdvancedOutput_cfunc = self._get_library_function('niSwitch_RouteScanAdvancedOutput') + self.niSwitch_RouteScanAdvancedOutput_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViBoolean] # noqa: F405 + self.niSwitch_RouteScanAdvancedOutput_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_RouteScanAdvancedOutput_cfunc(vi, scan_advanced_output_connector, scan_advanced_output_bus_line, invert) + + def niSwitch_RouteTriggerInput(self, vi, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 + with self._func_lock: + if self.niSwitch_RouteTriggerInput_cfunc is None: + self.niSwitch_RouteTriggerInput_cfunc = self._get_library_function('niSwitch_RouteTriggerInput') + self.niSwitch_RouteTriggerInput_cfunc.argtypes = [ViSession, ViInt32, ViInt32, ViBoolean] # noqa: F405 + self.niSwitch_RouteTriggerInput_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_RouteTriggerInput_cfunc(vi, trigger_input_connector, trigger_input_bus_line, invert) + + def niSwitch_SendSoftwareTrigger(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_SendSoftwareTrigger_cfunc is None: + self.niSwitch_SendSoftwareTrigger_cfunc = self._get_library_function('niSwitch_SendSoftwareTrigger') + self.niSwitch_SendSoftwareTrigger_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_SendSoftwareTrigger_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SendSoftwareTrigger_cfunc(vi) + + def niSwitch_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_SetAttributeViBoolean_cfunc is None: + self.niSwitch_SetAttributeViBoolean_cfunc = self._get_library_function('niSwitch_SetAttributeViBoolean') + self.niSwitch_SetAttributeViBoolean_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViBoolean] # noqa: F405 + self.niSwitch_SetAttributeViBoolean_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SetAttributeViBoolean_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_SetAttributeViInt32_cfunc is None: + self.niSwitch_SetAttributeViInt32_cfunc = self._get_library_function('niSwitch_SetAttributeViInt32') + self.niSwitch_SetAttributeViInt32_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32] # noqa: F405 + self.niSwitch_SetAttributeViInt32_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SetAttributeViInt32_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_SetAttributeViReal64_cfunc is None: + self.niSwitch_SetAttributeViReal64_cfunc = self._get_library_function('niSwitch_SetAttributeViReal64') + self.niSwitch_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niSwitch_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SetAttributeViReal64_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + with self._func_lock: + if self.niSwitch_SetAttributeViString_cfunc is None: + self.niSwitch_SetAttributeViString_cfunc = self._get_library_function('niSwitch_SetAttributeViString') + self.niSwitch_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SetAttributeViString_cfunc(vi, channel_name, attribute_id, attribute_value) + + def niSwitch_SetPath(self, vi, path_list): # noqa: N802 + with self._func_lock: + if self.niSwitch_SetPath_cfunc is None: + self.niSwitch_SetPath_cfunc = self._get_library_function('niSwitch_SetPath') + self.niSwitch_SetPath_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_SetPath_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SetPath_cfunc(vi, path_list) + + def niSwitch_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + with self._func_lock: + if self.niSwitch_SetRuntimeEnvironment_cfunc is None: + self.niSwitch_SetRuntimeEnvironment_cfunc = self._get_library_function('niSwitch_SetRuntimeEnvironment') + self.niSwitch_SetRuntimeEnvironment_cfunc.argtypes = [ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar), ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_SetRuntimeEnvironment_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_SetRuntimeEnvironment_cfunc(environment, environment_version, reserved1, reserved2) + + def niSwitch_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + with self._func_lock: + if self.niSwitch_UnlockSession_cfunc is None: + self.niSwitch_UnlockSession_cfunc = self._get_library_function('niSwitch_UnlockSession') + self.niSwitch_UnlockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niSwitch_UnlockSession_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_UnlockSession_cfunc(vi, caller_has_lock) + + def niSwitch_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 + with self._func_lock: + if self.niSwitch_WaitForDebounce_cfunc is None: + self.niSwitch_WaitForDebounce_cfunc = self._get_library_function('niSwitch_WaitForDebounce') + self.niSwitch_WaitForDebounce_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niSwitch_WaitForDebounce_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_WaitForDebounce_cfunc(vi, maximum_time_ms) + + def niSwitch_WaitForScanComplete(self, vi, maximum_time_ms): # noqa: N802 + with self._func_lock: + if self.niSwitch_WaitForScanComplete_cfunc is None: + self.niSwitch_WaitForScanComplete_cfunc = self._get_library_function('niSwitch_WaitForScanComplete') + self.niSwitch_WaitForScanComplete_cfunc.argtypes = [ViSession, ViInt32] # noqa: F405 + self.niSwitch_WaitForScanComplete_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_WaitForScanComplete_cfunc(vi, maximum_time_ms) + + def niSwitch_close(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_close_cfunc is None: + self.niSwitch_close_cfunc = self._get_library_function('niSwitch_close') + self.niSwitch_close_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_close_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_close_cfunc(vi) + + def niSwitch_error_message(self, vi, error_code, error_message): # noqa: N802 + with self._func_lock: + if self.niSwitch_error_message_cfunc is None: + self.niSwitch_error_message_cfunc = self._get_library_function('niSwitch_error_message') + self.niSwitch_error_message_cfunc.argtypes = [ViSession, ViStatus, ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_error_message_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_error_message_cfunc(vi, error_code, error_message) + + def niSwitch_reset(self, vi): # noqa: N802 + with self._func_lock: + if self.niSwitch_reset_cfunc is None: + self.niSwitch_reset_cfunc = self._get_library_function('niSwitch_reset') + self.niSwitch_reset_cfunc.argtypes = [ViSession] # noqa: F405 + self.niSwitch_reset_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_reset_cfunc(vi) + + def niSwitch_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + with self._func_lock: + if self.niSwitch_self_test_cfunc is None: + self.niSwitch_self_test_cfunc = self._get_library_function('niSwitch_self_test') + self.niSwitch_self_test_cfunc.argtypes = [ViSession, ctypes.POINTER(ViInt16), ctypes.POINTER(ViChar)] # noqa: F405 + self.niSwitch_self_test_cfunc.restype = ViStatus # noqa: F405 + return self.niSwitch_self_test_cfunc(vi, self_test_result, self_test_message) diff --git a/generated/niswitch/niswitch/_library_interpreter.py b/generated/niswitch/niswitch/_library_interpreter.py new file mode 100644 index 0000000000..06f44037b6 --- /dev/null +++ b/generated/niswitch/niswitch/_library_interpreter.py @@ -0,0 +1,461 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import platform + +import niswitch._library_singleton as _library_singleton +import niswitch._visatype as _visatype +import niswitch.enums as enums # noqa: F401 +import niswitch.errors as errors + + +_was_runtime_environment_set = None + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + global _was_runtime_environment_set + if _was_runtime_environment_set is None: + try: + runtime_env = platform.python_implementation() + version = platform.python_version() + self.set_runtime_environment( + runtime_env, + version, + '', + '' + ) + except errors.DriverTooOldError: + pass + finally: + _was_runtime_environment_set = True + # Initialize _vi to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._vi = value + + def get_session_handle(self): + return self._vi + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + returned_error_code, error_string = self.get_error() + if returned_error_code == error_code: + return error_string + except errors.Error: + pass + + try: + # get_error reads the session's error queue, which may have been overwritten, + # causing it to return a mismatched error code. error_message takes the error + # code directly as a parameter and looks up its description without reading the + # queue, it will return the description for the specific error code. + # Use error_message in current session before the handle reset in the next block. + + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + + save_vi = self.get_session_handle() + try: + # It is expected for get_error to raise when the session is invalid + # (IVI spec requires GetError to fail). + # Use error_message instead. It doesn't require a session. + + self.set_session_handle() + error_string = self.error_message(error_code) + return error_string + except errors.Error: + pass + finally: + self.set_session_handle(save_vi) + return "Failed to retrieve error description." + + def abort(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_AbortScan(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def can_connect(self, channel1, channel2): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 + channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 + path_capability_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niSwitch_CanConnect(vi_ctype, channel1_ctype, channel2_ctype, None if path_capability_ctype is None else (ctypes.pointer(path_capability_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return enums.PathCapability(path_capability_ctype.value) + + def commit(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_Commit(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def connect(self, channel1, channel2): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 + channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_Connect(vi_ctype, channel1_ctype, channel2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def connect_multiple(self, connection_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + connection_list_ctype = ctypes.create_string_buffer(connection_list.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_ConnectMultiple(vi_ctype, connection_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disable(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_Disable(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disconnect(self, channel1, channel2): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 + channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_Disconnect(vi_ctype, channel1_ctype, channel2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disconnect_all(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_DisconnectAll(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def disconnect_multiple(self, disconnection_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + disconnection_list_ctype = ctypes.create_string_buffer(disconnection_list.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_DisconnectMultiple(vi_ctype, disconnection_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def get_attribute_vi_boolean(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niSwitch_GetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(attribute_value_ctype.value) + + def get_attribute_vi_int32(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niSwitch_GetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(attribute_value_ctype.value) + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niSwitch_GetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, None if attribute_value_ctype is None else (ctypes.pointer(attribute_value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(attribute_value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + array_size_ctype = _visatype.ViInt32() # case S170 + attribute_value_ctype = None # case C050 + error_code = self._library.niSwitch_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + array_size_ctype = _visatype.ViInt32(error_code) # case S180 + attribute_value_ctype = (_visatype.ViChar * array_size_ctype.value)() # case C060 + error_code = self._library.niSwitch_GetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, array_size_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return attribute_value_ctype.value.decode(self._encoding) + + def get_channel_name(self, index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + index_ctype = _visatype.ViInt32(index) # case S150 + buffer_size_ctype = _visatype.ViInt32() # case S170 + channel_name_buffer_ctype = None # case C050 + error_code = self._library.niSwitch_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_buffer_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + channel_name_buffer_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niSwitch_GetChannelName(vi_ctype, index_ctype, buffer_size_ctype, channel_name_buffer_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return channel_name_buffer_ctype.value.decode(self._encoding) + + def get_error(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus() # case S220 + buffer_size_ctype = _visatype.ViInt32() # case S170 + description_ctype = None # case C050 + error_code = self._library.niSwitch_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + description_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niSwitch_GetError(vi_ctype, None if error_code_ctype is None else (ctypes.pointer(error_code_ctype)), buffer_size_ctype, description_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return int(error_code_ctype.value), description_ctype.value.decode(self._encoding) + + def get_path(self, channel1, channel2): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel1_ctype = ctypes.create_string_buffer(channel1.encode(self._encoding)) # case C020 + channel2_ctype = ctypes.create_string_buffer(channel2.encode(self._encoding)) # case C020 + buffer_size_ctype = _visatype.ViInt32() # case S170 + path_ctype = None # case C050 + error_code = self._library.niSwitch_GetPath(vi_ctype, channel1_ctype, channel2_ctype, buffer_size_ctype, path_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + path_ctype = (_visatype.ViChar * buffer_size_ctype.value)() # case C060 + error_code = self._library.niSwitch_GetPath(vi_ctype, channel1_ctype, channel2_ctype, buffer_size_ctype, path_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return path_ctype.value.decode(self._encoding) + + def get_relay_count(self, relay_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + relay_name_ctype = ctypes.create_string_buffer(relay_name.encode(self._encoding)) # case C020 + relay_count_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niSwitch_GetRelayCount(vi_ctype, relay_name_ctype, None if relay_count_ctype is None else (ctypes.pointer(relay_count_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(relay_count_ctype.value) + + def get_relay_name(self, index): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + index_ctype = _visatype.ViInt32(index) # case S150 + relay_name_buffer_size_ctype = _visatype.ViInt32() # case S170 + relay_name_buffer_ctype = None # case C050 + error_code = self._library.niSwitch_GetRelayName(vi_ctype, index_ctype, relay_name_buffer_size_ctype, relay_name_buffer_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + relay_name_buffer_size_ctype = _visatype.ViInt32(error_code) # case S180 + relay_name_buffer_ctype = (_visatype.ViChar * relay_name_buffer_size_ctype.value)() # case C060 + error_code = self._library.niSwitch_GetRelayName(vi_ctype, index_ctype, relay_name_buffer_size_ctype, relay_name_buffer_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return relay_name_buffer_ctype.value.decode(self._encoding) + + def get_relay_position(self, relay_name): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + relay_name_ctype = ctypes.create_string_buffer(relay_name.encode(self._encoding)) # case C020 + relay_position_ctype = _visatype.ViInt32() # case S220 + error_code = self._library.niSwitch_GetRelayPosition(vi_ctype, relay_name_ctype, None if relay_position_ctype is None else (ctypes.pointer(relay_position_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return enums.RelayPosition(relay_position_ctype.value) + + def init_with_topology(self, resource_name, topology, simulate, reset_device): # noqa: N802 + resource_name_ctype = ctypes.create_string_buffer(resource_name.encode(self._encoding)) # case C020 + topology_ctype = ctypes.create_string_buffer(topology.encode(self._encoding)) # case C020 + simulate_ctype = _visatype.ViBoolean(simulate) # case S150 + reset_device_ctype = _visatype.ViBoolean(reset_device) # case S150 + vi_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niSwitch_InitWithTopology(resource_name_ctype, topology_ctype, simulate_ctype, reset_device_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + self._close_on_exit = True + return int(vi_ctype.value) + + def initiate_scan(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_InitiateScan(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def lock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_LockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def relay_control(self, relay_name, relay_action): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + relay_name_ctype = ctypes.create_string_buffer(relay_name.encode(self._encoding)) # case C020 + relay_action_ctype = _visatype.ViInt32(relay_action.value) # case S130 + error_code = self._library.niSwitch_RelayControl(vi_ctype, relay_name_ctype, relay_action_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def reset_with_defaults(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_ResetWithDefaults(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def route_scan_advanced_output(self, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + scan_advanced_output_connector_ctype = _visatype.ViInt32(scan_advanced_output_connector.value) # case S130 + scan_advanced_output_bus_line_ctype = _visatype.ViInt32(scan_advanced_output_bus_line.value) # case S130 + invert_ctype = _visatype.ViBoolean(invert) # case S150 + error_code = self._library.niSwitch_RouteScanAdvancedOutput(vi_ctype, scan_advanced_output_connector_ctype, scan_advanced_output_bus_line_ctype, invert_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def route_trigger_input(self, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + trigger_input_connector_ctype = _visatype.ViInt32(trigger_input_connector.value) # case S130 + trigger_input_bus_line_ctype = _visatype.ViInt32(trigger_input_bus_line.value) # case S130 + invert_ctype = _visatype.ViBoolean(invert) # case S150 + error_code = self._library.niSwitch_RouteTriggerInput(vi_ctype, trigger_input_connector_ctype, trigger_input_bus_line_ctype, invert_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def send_software_trigger(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_SendSoftwareTrigger(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_boolean(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViBoolean(attribute_value) # case S150 + error_code = self._library.niSwitch_SetAttributeViBoolean(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_int32(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViInt32(attribute_value) # case S150 + error_code = self._library.niSwitch_SetAttributeViInt32(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_real64(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = _visatype.ViReal64(attribute_value) # case S150 + error_code = self._library.niSwitch_SetAttributeViReal64(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, attribute_value): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + attribute_value_ctype = ctypes.create_string_buffer(attribute_value.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_SetAttributeViString(vi_ctype, channel_name_ctype, attribute_id_ctype, attribute_value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_path(self, path_list): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + path_list_ctype = ctypes.create_string_buffer(path_list.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_SetPath(vi_ctype, path_list_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_runtime_environment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + environment_ctype = ctypes.create_string_buffer(environment.encode(self._encoding)) # case C020 + environment_version_ctype = ctypes.create_string_buffer(environment_version.encode(self._encoding)) # case C020 + reserved1_ctype = ctypes.create_string_buffer(reserved1.encode(self._encoding)) # case C020 + reserved2_ctype = ctypes.create_string_buffer(reserved2.encode(self._encoding)) # case C020 + error_code = self._library.niSwitch_SetRuntimeEnvironment(environment_ctype, environment_version_ctype, reserved1_ctype, reserved2_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def unlock(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_UnlockSession(vi_ctype, None) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_for_debounce(self, maximum_time_ms): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ms_ctype = _visatype.ViInt32(maximum_time_ms) # case S150 + error_code = self._library.niSwitch_WaitForDebounce(vi_ctype, maximum_time_ms_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_for_scan_complete(self, maximum_time_ms): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + maximum_time_ms_ctype = _visatype.ViInt32(maximum_time_ms) # case S150 + error_code = self._library.niSwitch_WaitForScanComplete(vi_ctype, maximum_time_ms_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def close(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_close(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def error_message(self, error_code): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code_ctype = _visatype.ViStatus(error_code) # case S150 + error_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niSwitch_error_message(vi_ctype, error_code_ctype, error_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_message_ctype.value.decode(self._encoding) + + def reset(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + error_code = self._library.niSwitch_reset(vi_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def self_test(self): # noqa: N802 + vi_ctype = _visatype.ViSession(self._vi) # case S110 + self_test_result_ctype = _visatype.ViInt16() # case S220 + self_test_message_ctype = (_visatype.ViChar * 256)() # case C070 + error_code = self._library.niSwitch_self_test(vi_ctype, None if self_test_result_ctype is None else (ctypes.pointer(self_test_result_ctype)), self_test_message_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(self_test_result_ctype.value), self_test_message_ctype.value.decode(self._encoding) diff --git a/generated/niswitch/niswitch/_library_singleton.py b/generated/niswitch/niswitch/_library_singleton.py new file mode 100644 index 0000000000..de057e341a --- /dev/null +++ b/generated/niswitch/niswitch/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import niswitch._library as _library +import niswitch.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'niswitch', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niswitch_32.dll', 'type': 'windll'}, + '64bit': {'name': 'niswitch_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for niswitch. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/niswitch/niswitch/_visatype.py b/generated/niswitch/niswitch/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/niswitch/niswitch/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/niswitch/niswitch/enums.py b/generated/niswitch/niswitch/enums.py new file mode 100644 index 0000000000..a5ade1e6de --- /dev/null +++ b/generated/niswitch/niswitch/enums.py @@ -0,0 +1,472 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import Enum + + +class HandshakingInitiation(Enum): + MEASUREMENT_DEVICE = 0 + r''' + The `niSwitch Initiate + Scan `__ VI does not + return until the switch hardware is waiting for a trigger input. This + ensures that if you initiate the measurement device after calling the + `niSwitch Initiate + Scan `__ VI , the switch + is sure to receive the first measurement complete (MC) signal sent by + the measurement device. The measurement device should be configured to + first take a measurement, send MC, then wait for scanner advanced output + signal. Thus, the first MC of the measurement device initiates + handshaking. + ''' + SWITCH = 1 + r''' + The `niSwitch Initiate + Scan `__ VI returns + immediately after beginning scan list execution. It is assumed that the + measurement device has already been configured and is waiting for the + scanner advanced signal. The measurement should be configured to first + wait for a trigger, then take a measurement. Thus, the first scanner + advanced output signal of the switch module initiates handshaking. + ''' + + +class PathCapability(Enum): + PATH_AVAILABLE = 1 + r''' + Path Available + ''' + PATH_EXISTS = 2 + r''' + Path Exists + ''' + PATH_UNSUPPORTED = 3 + r''' + Path Unsupported + ''' + RESOURCE_IN_USE = 4 + r''' + Resource in use + ''' + SOURCE_CONFLICT = 5 + r''' + Source conflict + ''' + CHANNEL_NOT_AVAILABLE = 6 + r''' + Channel not available + ''' + + +class RelayAction(Enum): + OPEN = 20 + r''' + Open Relay + ''' + CLOSE = 21 + r''' + Close Relay + ''' + + +class RelayPosition(Enum): + OPEN = 10 + r''' + Open + ''' + CLOSED = 11 + r''' + Closed + ''' + + +class ScanAdvancedOutput(Enum): + NONE = 0 + r''' + The switch device does not produce a Scan Advanced Output trigger. + ''' + EXTERNAL = 2 + r''' + External Trigger. The switch device produces the Scan Advanced Output trigger on the external trigger output. + ''' + TTL0 = 111 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG0 line. + ''' + TTL1 = 112 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG1 line. + ''' + TTL2 = 113 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG2 line. + ''' + TTL3 = 114 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG3 line. + ''' + TTL4 = 115 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG4 line. + ''' + TTL5 = 116 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG5 line. + ''' + TTL6 = 117 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG6 line. + ''' + TTL7 = 118 + r''' + The switch device produces the Scan Advanced Output on the PXI TRIG7 line. + ''' + PXI_STAR = 125 + r''' + The switch module produces the Scan Advanced Output Trigger on the PXI + Star trigger bus before processing the next entry in the scan list. + ''' + REARCONNECTOR = 1000 + r''' + The switch device produces the Scan Advanced Output trigger on the rear connector. + ''' + FRONTCONNECTOR = 1001 + r''' + The switch device produces the Scan Advanced Output trigger on the front connector. + ''' + REARCONNECTOR_MODULE1 = 1021 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 1. + ''' + REARCONNECTOR_MODULE2 = 1022 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 2. + ''' + REARCONNECTOR_MODULE3 = 1023 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 3. + ''' + REARCONNECTOR_MODULE4 = 1024 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 4. + ''' + REARCONNECTOR_MODULE5 = 1025 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 5. + ''' + REARCONNECTOR_MODULE6 = 1026 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 6. + ''' + REARCONNECTOR_MODULE7 = 1027 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 7. + ''' + REARCONNECTOR_MODULE8 = 1028 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 8. + ''' + REARCONNECTOR_MODULE9 = 1029 + r''' + The switch module produces the Scan Advanced Ouptut Trigger on the rear + connector module 9. + ''' + REARCONNECTOR_MODULE10 = 1030 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 10. + ''' + REARCONNECTOR_MODULE11 = 1031 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 11. + ''' + REARCONNECTOR_MODULE12 = 1032 + r''' + The switch module produces the Scan Advanced Output Trigger on the rear + connector module 12. + ''' + FRONTCONNECTOR_MODULE1 = 1041 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 1. + ''' + FRONTCONNECTOR_MODULE2 = 1042 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 2. + ''' + FRONTCONNECTOR_MODULE3 = 1043 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 3. + ''' + FRONTCONNECTOR_MODULE4 = 1044 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 4. + ''' + FRONTCONNECTOR_MODULE5 = 1045 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 5. + ''' + FRONTCONNECTOR_MODULE6 = 1046 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 6. + ''' + FRONTCONNECTOR_MODULE7 = 1047 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 7. + ''' + FRONTCONNECTOR_MODULE8 = 1048 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 8. + ''' + FRONTCONNECTOR_MODULE9 = 1049 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 9. + ''' + FRONTCONNECTOR_MODULE10 = 1050 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 10. + ''' + FRONTCONNECTOR_MODULE11 = 1051 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 11. + ''' + FRONTCONNECTOR_MODULE12 = 1052 + r''' + The switch module produces the Scan Advanced Output Trigger on the front + connector module 12. + ''' + + +class ScanAdvancedPolarity(Enum): + RISING = 0 + r''' + The trigger occurs on the rising edge of the signal. + ''' + FALLING = 1 + r''' + The trigger occurs on the falling edge of the signal. + ''' + + +class ScanMode(Enum): + NONE = 0 + r''' + No implicit action on connections when scanning. + ''' + BREAK_BEFORE_MAKE = 1 + r''' + When scanning, the switch device breaks existing connections before making new connections. + ''' + BREAK_AFTER_MAKE = 2 + r''' + When scanning, the switch device breaks existing connections after making new connections. + ''' + + +class TriggerInput(Enum): + IMMEDIATE = 1 + r''' + Immediate Trigger. The switch device does not wait for a trigger before processing the next entry in the scan list. + ''' + EXTERNAL = 2 + r''' + External Trigger. The switch device waits until it receives a trigger from an external source through the external trigger input before processing the next entry in the scan list. + ''' + SOFTWARE_TRIG = 3 + r''' + The switch device waits until you call the send_software_trigger method before processing the next entry in the scan list. + ''' + TTL0 = 111 + r''' + The switch device waits until it receives a trigger on the PXI TRIG0 line before processing the next entry in the scan list. + ''' + TTL1 = 112 + r''' + The switch device waits until it receives a trigger on the PXI TRIG1 line before processing the next entry in the scan list. + ''' + TTL2 = 113 + r''' + The switch device waits until it receives a trigger on the PXI TRIG2 line before processing the next entry in the scan list. + ''' + TTL3 = 114 + r''' + The switch device waits until it receives a trigger on the PXI TRIG3 line before processing the next entry in the scan list. + ''' + TTL4 = 115 + r''' + The switch device waits until it receives a trigger on the PXI TRIG4 line before processing the next entry in the scan list. + ''' + TTL5 = 116 + r''' + The switch device waits until it receives a trigger on the PXI TRIG5 line before processing the next entry in the scan list. + ''' + TTL6 = 117 + r''' + The switch device waits until it receives a trigger on the PXI TRIG6 line before processing the next entry in the scan list. + ''' + TTL7 = 118 + r''' + The switch device waits until it receives a trigger on the PXI TRIG7 line before processing the next entry in the scan list. + ''' + PXI_STAR = 125 + r''' + The switch device waits until it receives a trigger on the PXI STAR trigger bus before processing the next entry in the scan list. + ''' + REARCONNECTOR = 1000 + r''' + The switch device waits until it receives a trigger on the rear connector. + ''' + FRONTCONNECTOR = 1001 + r''' + The switch device waits until it receives a trigger on the front connector. + ''' + REARCONNECTOR_MODULE1 = 1021 + r''' + The switch module waits until it receives a trigger on the rear + connector module 1. + ''' + REARCONNECTOR_MODULE2 = 1022 + r''' + The switch module waits until it receives a trigger on the rear + connector module 2. + ''' + REARCONNECTOR_MODULE3 = 1023 + r''' + The switch module waits until it receives a trigger on the rear + connector module 3. + ''' + REARCONNECTOR_MODULE4 = 1024 + r''' + The switch module waits until it receives a trigger on the rear + connector module 4. + ''' + REARCONNECTOR_MODULE5 = 1025 + r''' + The switch module waits until it receives a trigger on the rear + connector module 5. + ''' + REARCONNECTOR_MODULE6 = 1026 + r''' + The switch module waits until it receives a trigger on the rear + connector module 6. + ''' + REARCONNECTOR_MODULE7 = 1027 + r''' + The switch module waits until it receives a trigger on the rear + connector module 7. + ''' + REARCONNECTOR_MODULE8 = 1028 + r''' + The switch module waits until it receives a trigger on the rear + connector module 8. + ''' + REARCONNECTOR_MODULE9 = 1029 + r''' + The switch module waits until it receives a trigger on the rear + connector module 9. + ''' + REARCONNECTOR_MODULE10 = 1030 + r''' + The switch module waits until it receives a trigger on the rear + connector module 10. + ''' + REARCONNECTOR_MODULE11 = 1031 + r''' + The switch module waits until it receives a trigger on the rear + connector module 11. + ''' + REARCONNECTOR_MODULE12 = 1032 + r''' + The switch module waits until it receives a trigger on the rear + connector module 12. + ''' + FRONTCONNECTOR_MODULE1 = 1041 + r''' + The switch module waits until it receives a trigger on the front + connector module 1. + ''' + FRONTCONNECTOR_MODULE2 = 1042 + r''' + The switch module waits until it receives a trigger on the front + connector module 2. + ''' + FRONTCONNECTOR_MODULE3 = 1043 + r''' + The switch module waits until it receives a trigger on the front + connector module 3. + ''' + FRONTCONNECTOR_MODULE4 = 1044 + r''' + The switch module waits until it receives a trigger on the front + connector module 4. + ''' + FRONTCONNECTOR_MODULE5 = 1045 + r''' + The switch module waits until it receives a trigger on the front + connector module 5. + ''' + FRONTCONNECTOR_MODULE6 = 1046 + r''' + The switch module waits until it receives a trigger on the front + connector module 6. + ''' + FRONTCONNECTOR_MODULE7 = 1047 + r''' + The switch module waits until it receives a trigger on the front + connector module 7. + ''' + FRONTCONNECTOR_MODULE8 = 1048 + r''' + The switch module waits until it receives a trigger on the front + connector module 8. + ''' + FRONTCONNECTOR_MODULE9 = 1049 + r''' + The switch module waits until it receives a trigger on the front + connector module 9. + ''' + FRONTCONNECTOR_MODULE10 = 1050 + r''' + The switch module waits until it receives a trigger on the front + connector module 10. + ''' + FRONTCONNECTOR_MODULE11 = 1051 + r''' + The switch module waits until it receives a trigger on the front + connector module 11. + ''' + FRONTCONNECTOR_MODULE12 = 1052 + r''' + The switch module waits until it receives a trigger on the front + connector module 12. + ''' + + +class TriggerInputPolarity(Enum): + RISING = 0 + r''' + The trigger occurs on the rising edge of the signal. + ''' + FALLING = 1 + r''' + The trigger occurs on the falling edge of the signal. + ''' diff --git a/generated/niswitch/niswitch/errors.py b/generated/niswitch/niswitch/errors.py new file mode 100644 index 0000000000..d67194e48d --- /dev/null +++ b/generated/niswitch/niswitch/errors.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-SWITCH''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-SWITCH driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-SWITCH driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class RpcError(Error): + '''An error specific to sessions to the NI gRPC Device Server''' + + def __init__(self, rpc_code, description): + self.rpc_code = rpc_code + self.description = description + try: + import grpc + rpc_error = str(grpc.StatusCode(self.rpc_code)) + except Exception: + rpc_error = str(self.rpc_code) + super(RpcError, self).__init__(rpc_error + ": " + self.description) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-SWITCH runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-SWITCH driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-SWITCH runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-SWITCH driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-SWITCH runtime returned an unexpected value. This can occur if it is too new for the niswitch Python module. Upgrade the niswitch Python module.') + + +class InvalidRepeatedCapabilityError(Error): + '''An error due to an invalid character in a repeated capability''' + + def __init__(self, invalid_character, invalid_string): + super(InvalidRepeatedCapabilityError, self).__init__('An invalid character ({}) was found in repeated capability string ({})'.format(invalid_character, invalid_string)) + + +class SelfTestError(Error): + '''An error due to a failed self-test''' + + def __init__(self, code, msg): + self.code = code + self.message = msg + super(SelfTestError, self).__init__('Self-test failed with code {}: {}'.format(code, msg)) + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by niswitch.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/niswitch/niswitch/grpc_session_options.py b/generated/niswitch/niswitch/grpc_session_options.py new file mode 100644 index 0000000000..2dc1779d13 --- /dev/null +++ b/generated/niswitch/niswitch/grpc_session_options.py @@ -0,0 +1,78 @@ +# -*- coding: utf-8 -*- +# This file was generated + +from enum import IntEnum + + +# This constant specifies the gRPC package and service used by this API. +# Customers can pass this value to the MeasurementLink discovery service to resolve the server instance that provides this interface. +GRPC_SERVICE_INTERFACE_NAME = 'niswitch_grpc.NiSwitch' + +# This constant specifies the API license key required by the NI gRPC Device Server that comes with +# MeasurementLink 2023 Q1. +MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY = 'DE10751B-3EE0-44EC-A93B-800E6A3C89E4' + + +class SessionInitializationBehavior(IntEnum): + AUTO = 0 + r''' + The NI gRPC Device Server will attach to an existing session with the specified name if it exists, otherwise the server + will initialize a new session. + + Note: + When using the Session as a context manager and the context exits, the behavior depends on what happened when the constructor + was called. If it resulted in a new session being initialized on the NI gRPC Device Server, then it will automatically close the + server session. If it instead attached to an existing session, then it will detach from the server session and leave it open. + ''' + INITIALIZE_SERVER_SESSION = 1 + r''' + Require the NI gRPC Device Server to initialize a new session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will automatically close the + server session. + ''' + ATTACH_TO_SERVER_SESSION = 2 + r''' + Require the NI gRPC Device Server to attach to an existing session with the specified name. + + Note: + When using the Session as a context manager and the context exits, it will detach from the server session + and leave it open. + ''' + + +class GrpcSessionOptions(object): + '''Collection of options that specifies session behaviors related to gRPC.''' + + def __init__( + self, + grpc_channel, + session_name, + *, + api_key=MEASUREMENTLINK_23Q1_NIMI_PYTHON_API_KEY, + initialization_behavior=SessionInitializationBehavior.AUTO + ): + r'''Collection of options that specifies session behaviors related to gRPC. + + Creates and returns an object you can pass to a Session constructor. + + Args: + grpc_channel (grpc.Channel): Specifies the channel to the NI gRPC Device Server. + + session_name (str): User-specified name that identifies the driver session on the NI gRPC Device + Server. This is different from the resource name parameter many APIs take as a separate + parameter. Specifying a name makes it easy to share sessions across multiple gRPC clients. + You can use an empty string if you want to always initialize a new session on the server. + To attach to an existing session, you must specify the session name it was initialized with. + + api_key (str): Specifies the API license key required by the NI gRPC Device Server. + + initialization_behavior (enum): Specifies whether it is acceptable to initialize a new + session or attach to an existing one, or if only one of the behaviors is desired. + The driver session exists on the NI gRPC Device Server. + ''' + self.grpc_channel = grpc_channel + self.session_name = session_name + self.api_key = api_key + self.initialization_behavior = initialization_behavior diff --git a/generated/niswitch/niswitch/nidevice_pb2.py b/generated/niswitch/niswitch/nidevice_pb2.py new file mode 100644 index 0000000000..d7fff4491d --- /dev/null +++ b/generated/niswitch/niswitch/nidevice_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: nidevice.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0enidevice.proto\x12\rnidevice_grpc\"2\n\x0fNIComplexNumber\x12\x0c\n\x04real\x18\x01 \x01(\x01\x12\x11\n\timaginary\x18\x02 \x01(\x01\"5\n\x12NIComplexNumberF32\x12\x0c\n\x04real\x18\x01 \x01(\x02\x12\x11\n\timaginary\x18\x02 \x01(\x02\"/\n\x0cNIComplexI16\x12\x0c\n\x04real\x18\x01 \x01(\x11\x12\x11\n\timaginary\x18\x02 \x01(\x11\"r\n\x0fSmtSpectrumInfo\x12\x15\n\rspectrum_type\x18\x01 \x01(\r\x12\x11\n\tlinear_db\x18\x02 \x01(\r\x12\x0e\n\x06window\x18\x03 \x01(\r\x12\x13\n\x0bwindow_size\x18\x04 \x01(\x11\x12\x10\n\x08\x66\x66t_size\x18\x05 \x01(\x11\x42\x42\n\x12\x63om.ni.grpc.deviceB\x08NiDeviceP\x01\xaa\x02\x1fNationalInstruments.Grpc.Deviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidevice_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.ni.grpc.deviceB\010NiDeviceP\001\252\002\037NationalInstruments.Grpc.Device' + _globals['_NICOMPLEXNUMBER']._serialized_start=33 + _globals['_NICOMPLEXNUMBER']._serialized_end=83 + _globals['_NICOMPLEXNUMBERF32']._serialized_start=85 + _globals['_NICOMPLEXNUMBERF32']._serialized_end=138 + _globals['_NICOMPLEXI16']._serialized_start=140 + _globals['_NICOMPLEXI16']._serialized_end=187 + _globals['_SMTSPECTRUMINFO']._serialized_start=189 + _globals['_SMTSPECTRUMINFO']._serialized_end=303 +# @@protoc_insertion_point(module_scope) diff --git a/generated/niswitch/niswitch/nidevice_pb2_grpc.py b/generated/niswitch/niswitch/nidevice_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/generated/niswitch/niswitch/nidevice_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/generated/niswitch/niswitch/niswitch_pb2.py b/generated/niswitch/niswitch/niswitch_pb2.py new file mode 100644 index 0000000000..0c3b53c870 --- /dev/null +++ b/generated/niswitch/niswitch/niswitch_pb2.py @@ -0,0 +1,285 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: niswitch.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +import session_pb2 as session__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eniswitch.proto\x12\rniswitch_grpc\x1a\rsession.proto\"\xb1\x01\n\x0bInitRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12M\n\x17initialization_behavior\x18\x05 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"~\n\x0cInitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xd3\x01\n\x16InitWithOptionsRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08id_query\x18\x03 \x01(\x08\x12\x14\n\x0creset_device\x18\x04 \x01(\x08\x12\x15\n\roption_string\x18\x05 \x01(\t\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x89\x01\n\x17InitWithOptionsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"\xcf\x01\n\x17InitWithTopologyRequest\x12\x14\n\x0csession_name\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x10\n\x08topology\x18\x03 \x01(\t\x12\x10\n\x08simulate\x18\x04 \x01(\x08\x12\x14\n\x0creset_device\x18\x05 \x01(\x08\x12M\n\x17initialization_behavior\x18\x06 \x01(\x0e\x32,.nidevice_grpc.SessionInitializationBehavior\"\x8a\x01\n\x18InitWithTopologyResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x02vi\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x19\n\rerror_message\x18\x03 \x01(\tB\x02\x18\x01\x12\x1f\n\x17new_session_initialized\x18\x04 \x01(\x08\"2\n\x0c\x43loseRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rCloseResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"X\n\x0e\x43onnectRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"!\n\x0f\x43onnectResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"U\n\x16\x43onnectMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x63onnection_list\x18\x02 \x01(\t\")\n\x17\x43onnectMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x11\x44isconnectRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"$\n\x12\x44isconnectResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x19\x44isconnectMultipleRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x1a\n\x12\x64isconnection_list\x18\x02 \x01(\t\",\n\x1a\x44isconnectMultipleResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\":\n\x14\x44isconnectAllRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\'\n\x15\x44isconnectAllResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"X\n\x0eGetPathRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"/\n\x0fGetPathResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04path\x18\x02 \x01(\t\"G\n\x0eSetPathRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tpath_list\x18\x02 \x01(\t\"!\n\x0fSetPathResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"[\n\x11\x43\x61nConnectRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x10\n\x08\x63hannel1\x18\x02 \x01(\t\x12\x10\n\x08\x63hannel2\x18\x03 \x01(\t\"y\n\x12\x43\x61nConnectResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x36\n\x0fpath_capability\x18\x02 \x01(\x0e\x32\x1d.niswitch_grpc.PathCapability\x12\x1b\n\x13path_capability_raw\x18\x03 \x01(\x11\"8\n\x12IsDebouncedRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\";\n\x13IsDebouncedResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x14\n\x0cis_debounced\x18\x02 \x01(\x08\"U\n\x16WaitForDebounceRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fmaximum_time_ms\x18\x02 \x01(\x11\")\n\x17WaitForDebounceResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xad\x01\n\x0bScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tscan_list\x18\x02 \x01(\t\x12:\n\ninitiation\x18\x03 \x01(\x0e\x32$.niswitch_grpc.HandshakingInitiationH\x00\x12\x18\n\x0einitiation_raw\x18\x04 \x01(\x11H\x00\x42\x11\n\x0finitiation_enum\"\x1e\n\x0cScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"9\n\x13InitiateScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"&\n\x14InitiateScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"6\n\x10\x41\x62ortScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"#\n\x11\x41\x62ortScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11IsScanningRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"9\n\x12IsScanningResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0bis_scanning\x18\x02 \x01(\x08\"Y\n\x1aWaitForScanCompleteRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0fmaximum_time_ms\x18\x02 \x01(\x11\"-\n\x1bWaitForScanCompleteResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"@\n\x1aSendSoftwareTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"-\n\x1bSendSoftwareTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xaa\x01\n\x18\x43onfigureScanListRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x11\n\tscan_list\x18\x02 \x01(\t\x12,\n\tscan_mode\x18\x03 \x01(\x0e\x32\x17.niswitch_grpc.ScanModeH\x00\x12\x17\n\rscan_mode_raw\x18\x04 \x01(\x11H\x00\x42\x10\n\x0escan_mode_enum\"+\n\x19\x43onfigureScanListResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc2\x02\n\x1b\x43onfigureScanTriggerRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nscan_delay\x18\x02 \x01(\x01\x12\x34\n\rtrigger_input\x18\x03 \x01(\x0e\x32\x1b.niswitch_grpc.TriggerInputH\x00\x12\x1b\n\x11trigger_input_raw\x18\x04 \x01(\x11H\x00\x12\x41\n\x14scan_advanced_output\x18\x05 \x01(\x0e\x32!.niswitch_grpc.ScanAdvancedOutputH\x01\x12\"\n\x18scan_advanced_output_raw\x18\x06 \x01(\x11H\x01\x42\x14\n\x12trigger_input_enumB\x1b\n\x19scan_advanced_output_enum\".\n\x1c\x43onfigureScanTriggerResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"W\n\x18SetContinuousScanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x17\n\x0f\x63ontinuous_scan\x18\x02 \x01(\x08\"+\n\x19SetContinuousScanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xd9\x02\n\x18RouteTriggerInputRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12>\n\x17trigger_input_connector\x18\x02 \x01(\x0e\x32\x1b.niswitch_grpc.TriggerInputH\x00\x12%\n\x1btrigger_input_connector_raw\x18\x03 \x01(\x11H\x00\x12=\n\x16trigger_input_bus_line\x18\x04 \x01(\x0e\x32\x1b.niswitch_grpc.TriggerInputH\x01\x12$\n\x1atrigger_input_bus_line_raw\x18\x05 \x01(\x11H\x01\x12\x0e\n\x06invert\x18\x06 \x01(\x08\x42\x1e\n\x1ctrigger_input_connector_enumB\x1d\n\x1btrigger_input_bus_line_enum\"+\n\x19RouteTriggerInputResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x95\x03\n\x1eRouteScanAdvancedOutputRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12K\n\x1escan_advanced_output_connector\x18\x02 \x01(\x0e\x32!.niswitch_grpc.ScanAdvancedOutputH\x00\x12,\n\"scan_advanced_output_connector_raw\x18\x03 \x01(\x11H\x00\x12J\n\x1dscan_advanced_output_bus_line\x18\x04 \x01(\x0e\x32!.niswitch_grpc.ScanAdvancedOutputH\x01\x12+\n!scan_advanced_output_bus_line_raw\x18\x05 \x01(\x11H\x01\x12\x0e\n\x06invert\x18\x06 \x01(\x08\x42%\n#scan_advanced_output_connector_enumB$\n\"scan_advanced_output_bus_line_enum\"1\n\x1fRouteScanAdvancedOutputResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"7\n\x11\x45rrorQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"O\n\x12\x45rrorQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x12\n\nerror_code\x18\x02 \x01(\x11\x12\x15\n\rerror_message\x18\x03 \x01(\t\"5\n\x0fGetErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"E\n\x10GetErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x11\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"7\n\x11\x43learErrorRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"$\n\x12\x43learErrorResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"M\n\x13\x45rrorMessageRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nerror_code\x18\x02 \x01(\x11\"=\n\x14\x45rrorMessageResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x15\n\rerror_message\x18\x02 \x01(\t\"J\n\x15GetChannelNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"E\n\x16GetChannelNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x1b\n\x13\x63hannel_name_buffer\x18\x02 \x01(\t\"H\n\x13GetRelayNameRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\r\n\x05index\x18\x02 \x01(\x11\"A\n\x14GetRelayNameResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x19\n\x11relay_name_buffer\x18\x02 \x01(\t\"N\n\x14GetRelayCountRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nrelay_name\x18\x02 \x01(\t\"<\n\x15GetRelayCountResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x13\n\x0brelay_count\x18\x02 \x01(\x11\"Q\n\x17GetRelayPositionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nrelay_name\x18\x02 \x01(\t\"|\n\x18GetRelayPositionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x34\n\x0erelay_position\x18\x02 \x01(\x0e\x32\x1c.niswitch_grpc.RelayPosition\x12\x1a\n\x12relay_position_raw\x18\x03 \x01(\x11\"\xb2\x01\n\x13RelayControlRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x12\n\nrelay_name\x18\x02 \x01(\t\x12\x32\n\x0crelay_action\x18\x03 \x01(\x0e\x32\x1a.niswitch_grpc.RelayActionH\x00\x12\x1a\n\x10relay_action_raw\x18\x04 \x01(\x11H\x00\x42\x13\n\x11relay_action_enum\"&\n\x14RelayControlResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"B\n\x1cResetInterchangeCheckRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dResetInterchangeCheckResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"E\n\x1f\x43learInterchangeWarningsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"2\n ClearInterchangeWarningsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"3\n\rCommitRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\" \n\x0e\x43ommitResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\">\n\x18ResetWithDefaultsRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"+\n\x19ResetWithDefaultsResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"4\n\x0e\x44isableRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"!\n\x0f\x44isableResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"2\n\x0cResetRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x1f\n\rResetResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"5\n\x0fSelfTestRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"W\n\x10SelfTestResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x18\n\x10self_test_result\x18\x02 \x01(\x11\x12\x19\n\x11self_test_message\x18\x03 \x01(\t\":\n\x14RevisionQueryRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"f\n\x15RevisionQueryResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\"\n\x1ainstrument_driver_revision\x18\x02 \x01(\t\x12\x19\n\x11\x66irmware_revision\x18\x03 \x01(\t\"\x8e\x01\n\x1aGetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"F\n\x1bGetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x11\"\x8f\x01\n\x1bGetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"G\n\x1cGetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x01\"\x8f\x01\n\x1bGetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"G\n\x1cGetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\t\"\x90\x01\n\x1cGetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"`\n\x1dGetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12/\n\x0f\x61ttribute_value\x18\x02 \x01(\x0b\x32\x16.nidevice_grpc.Session\"\x90\x01\n\x1cGetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\"H\n\x1dGetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x17\n\x0f\x61ttribute_value\x18\x02 \x01(\x08\"\x8d\x02\n\x1aSetAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x11H\x00\x12\x46\n\x0f\x61ttribute_value\x18\x05 \x01(\x0e\x32+.niswitch_grpc.NiSwitchInt32AttributeValuesH\x00\x42\x16\n\x14\x61ttribute_value_enum\"-\n\x1bSetAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x1bSetAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x01\".\n\x1cSetAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xac\x01\n\x1bSetAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\".\n\x1cSetAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc1\x01\n\x1cSetAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"/\n\x1dSetAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xa9\x01\n\x1cSetAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"/\n\x1dSetAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\x8f\x02\n\x1c\x43heckAttributeViInt32Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1d\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x11H\x00\x12\x46\n\x0f\x61ttribute_value\x18\x05 \x01(\x0e\x32+.niswitch_grpc.NiSwitchInt32AttributeValuesH\x00\x42\x16\n\x14\x61ttribute_value_enum\"/\n\x1d\x43heckAttributeViInt32Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x1d\x43heckAttributeViReal64Request\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\x01\"0\n\x1e\x43heckAttributeViReal64Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xae\x01\n\x1d\x43heckAttributeViStringRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x1b\n\x13\x61ttribute_value_raw\x18\x04 \x01(\t\"0\n\x1e\x43heckAttributeViStringResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xc3\x01\n\x1e\x43heckAttributeViSessionRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12/\n\x0f\x61ttribute_value\x18\x04 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1f\x43heckAttributeViSessionResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"\xab\x01\n\x1e\x43heckAttributeViBooleanRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\x12\x14\n\x0c\x63hannel_name\x18\x02 \x01(\t\x12\x36\n\x0c\x61ttribute_id\x18\x03 \x01(\x0e\x32 .niswitch_grpc.NiSwitchAttribute\x12\x17\n\x0f\x61ttribute_value\x18\x04 \x01(\x08\"1\n\x1f\x43heckAttributeViBooleanResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\"D\n\x1eInvalidateAllAttributesRequest\x12\"\n\x02vi\x18\x01 \x01(\x0b\x32\x16.nidevice_grpc.Session\"1\n\x1fInvalidateAllAttributesResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05*\xb0\x17\n\x11NiSwitchAttribute\x12\"\n\x1eNISWITCH_ATTRIBUTE_UNSPECIFIED\x10\x00\x12$\n\x1eNISWITCH_ATTRIBUTE_RANGE_CHECK\x10\x92\x8b@\x12\x30\n*NISWITCH_ATTRIBUTE_QUERY_INSTRUMENT_STATUS\x10\x93\x8b@\x12\x1e\n\x18NISWITCH_ATTRIBUTE_CACHE\x10\x94\x8b@\x12!\n\x1bNISWITCH_ATTRIBUTE_SIMULATE\x10\x95\x8b@\x12)\n#NISWITCH_ATTRIBUTE_RECORD_COERCIONS\x10\x96\x8b@\x12*\n$NISWITCH_ATTRIBUTE_INTERCHANGE_CHECK\x10\xa5\x8b@\x12&\n NISWITCH_ATTRIBUTE_CHANNEL_COUNT\x10\xdb\x8c@\x12+\n%NISWITCH_ATTRIBUTE_GROUP_CAPABILITIES\x10\xa1\x8e@\x12/\n)NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_PREFIX\x10\xbe\x8d@\x12\x34\n.NISWITCH_ATTRIBUTE_SUPPORTED_INSTRUMENT_MODELS\x10\xd7\x8d@\x12\x30\n*NISWITCH_ATTRIBUTE_INSTRUMENT_MANUFACTURER\x10\x8f\x8f@\x12)\n#NISWITCH_ATTRIBUTE_INSTRUMENT_MODEL\x10\x90\x8f@\x12\x35\n/NISWITCH_ATTRIBUTE_INSTRUMENT_FIRMWARE_REVISION\x10\x8e\x8f@\x12\x31\n+NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_REVISION\x10\xb7\x8f@\x12/\n)NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_VENDOR\x10\x91\x8f@\x12\x41\n;NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MAJOR_VERSION\x10\x93\x8f@\x12\x41\n;NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_CLASS_SPEC_MINOR_VERSION\x10\x94\x8f@\x12\x34\n.NISWITCH_ATTRIBUTE_SPECIFIC_DRIVER_DESCRIPTION\x10\x92\x8f@\x12%\n\x1fNISWITCH_ATTRIBUTE_DRIVER_SETUP\x10\x97\x8b@\x12%\n\x1fNISWITCH_ATTRIBUTE_LOGICAL_NAME\x10\xc1\x8d@\x12/\n)NISWITCH_ATTRIBUTE_IO_RESOURCE_DESCRIPTOR\x10\xc0\x8d@\x12*\n$NISWITCH_ATTRIBUTE_IS_SOURCE_CHANNEL\x10\xd1\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_IS_CONFIGURATION_CHANNEL\x10\xd3\xa5L\x12%\n\x1fNISWITCH_ATTRIBUTE_IS_DEBOUNCED\x10\xd2\xa5L\x12&\n NISWITCH_ATTRIBUTE_SETTLING_TIME\x10\xd4\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_BANDWIDTH\x10\xd5\xa5L\x12\'\n!NISWITCH_ATTRIBUTE_MAX_DC_VOLTAGE\x10\xd6\xa5L\x12\'\n!NISWITCH_ATTRIBUTE_MAX_AC_VOLTAGE\x10\xd7\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_MAX_SWITCHING_AC_CURRENT\x10\xd9\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_MAX_SWITCHING_DC_CURRENT\x10\xd8\xa5L\x12-\n\'NISWITCH_ATTRIBUTE_MAX_CARRY_AC_CURRENT\x10\xdb\xa5L\x12-\n\'NISWITCH_ATTRIBUTE_MAX_CARRY_DC_CURRENT\x10\xda\xa5L\x12/\n)NISWITCH_ATTRIBUTE_MAX_SWITCHING_AC_POWER\x10\xdd\xa5L\x12/\n)NISWITCH_ATTRIBUTE_MAX_SWITCHING_DC_POWER\x10\xdc\xa5L\x12+\n%NISWITCH_ATTRIBUTE_MAX_CARRY_AC_POWER\x10\xdf\xa5L\x12+\n%NISWITCH_ATTRIBUTE_MAX_CARRY_DC_POWER\x10\xde\xa5L\x12\x31\n+NISWITCH_ATTRIBUTE_CHARACTERISTIC_IMPEDANCE\x10\xe0\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_WIRE_MODE\x10\xe1\xa5L\x12$\n\x1eNISWITCH_ATTRIBUTE_NUM_OF_ROWS\x10\xe2\xa5L\x12\'\n!NISWITCH_ATTRIBUTE_NUM_OF_COLUMNS\x10\xe3\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_SCAN_LIST\x10\xe4\xa5L\x12\"\n\x1cNISWITCH_ATTRIBUTE_SCAN_MODE\x10\xe5\xa5L\x12&\n NISWITCH_ATTRIBUTE_TRIGGER_INPUT\x10\xe6\xa5L\x12-\n\'NISWITCH_ATTRIBUTE_SCAN_ADVANCED_OUTPUT\x10\xe7\xa5L\x12#\n\x1dNISWITCH_ATTRIBUTE_SCAN_DELAY\x10\xe9\xa5L\x12(\n\"NISWITCH_ATTRIBUTE_CONTINUOUS_SCAN\x10\xea\xa5L\x12$\n\x1eNISWITCH_ATTRIBUTE_IS_SCANNING\x10\xe8\xa5L\x12,\n&NISWITCH_ATTRIBUTE_IS_WAITING_FOR_TRIG\x10\xb4\x98\x46\x12%\n\x1fNISWITCH_ATTRIBUTE_TRIGGER_MODE\x10\xb5\x98\x46\x12\x31\n+NISWITCH_ATTRIBUTE_MASTER_SLAVE_TRIGGER_BUS\x10\xb6\x98\x46\x12\x37\n1NISWITCH_ATTRIBUTE_MASTER_SLAVE_SCAN_ADVANCED_BUS\x10\xb7\x98\x46\x12\x32\n,NISWITCH_ATTRIBUTE_CABLED_MODULE_TRIGGER_BUS\x10\xb8\x98\x46\x12\x38\n2NISWITCH_ATTRIBUTE_CABLED_MODULE_SCAN_ADVANCED_BUS\x10\xb9\x98\x46\x12/\n)NISWITCH_ATTRIBUTE_TRIGGER_INPUT_POLARITY\x10\xba\x98\x46\x12/\n)NISWITCH_ATTRIBUTE_SCAN_ADVANCED_POLARITY\x10\xbb\x98\x46\x12)\n#NISWITCH_ATTRIBUTE_PARSED_SCAN_LIST\x10\xbc\x98\x46\x12/\n)NISWITCH_ATTRIBUTE_HANDSHAKING_INITIATION\x10\xbd\x98\x46\x12)\n#NISWITCH_ATTRIBUTE_NUMBER_OF_RELAYS\x10\xbe\x98\x46\x12&\n NISWITCH_ATTRIBUTE_SERIAL_NUMBER\x10\xbf\x98\x46\x12.\n(NISWITCH_ATTRIBUTE_DIGITAL_FILTER_ENABLE\x10\xc0\x98\x46\x12\x42\n\n9SCAN_ADVANCED_OUTPUT_NISWITCH_VAL_FRONTCONNECTOR_MODULE10\x10\x9a\x08\x12>\n9SCAN_ADVANCED_OUTPUT_NISWITCH_VAL_FRONTCONNECTOR_MODULE11\x10\x9b\x08\x12>\n9SCAN_ADVANCED_OUTPUT_NISWITCH_VAL_FRONTCONNECTOR_MODULE12\x10\x9c\x08*\xad(\n\x1cNiSwitchInt32AttributeValues\x12\x1e\n\x1aNISWITCH_INT32_UNSPECIFIED\x10\x00\x12J\nFNISWITCH_INT32_HANDSHAKING_INITIATION_VAL_MEASUREMENT_DEVICE_INITIATED\x10\x00\x12>\n:NISWITCH_INT32_HANDSHAKING_INITIATION_VAL_SWITCH_INITIATED\x10\x01\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_NONE\x10\x00\x12\x34\n0NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_EXTERNAL\x10\x02\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL0\x10o\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL1\x10p\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL2\x10q\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL3\x10r\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL4\x10s\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL5\x10t\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL6\x10u\x12\x30\n,NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_TTL7\x10v\x12\x34\n0NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_PXI_STAR\x10}\x12:\n5NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR\x10\xe8\x07\x12;\n6NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR\x10\xe9\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE1\x10\xfd\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE2\x10\xfe\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE3\x10\xff\x07\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE4\x10\x80\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE5\x10\x81\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE6\x10\x82\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE7\x10\x83\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE8\x10\x84\x08\x12\x42\n=NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE9\x10\x85\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE10\x10\x86\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE11\x10\x87\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_REARCONNECTOR_MODULE12\x10\x88\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE1\x10\x91\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE2\x10\x92\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE3\x10\x93\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE4\x10\x94\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE5\x10\x95\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE6\x10\x96\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE7\x10\x97\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE8\x10\x98\x08\x12\x43\n>NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE9\x10\x99\x08\x12\x44\n?NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE10\x10\x9a\x08\x12\x44\n?NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE11\x10\x9b\x08\x12\x44\n?NISWITCH_INT32_SCAN_ADVANCED_OUTPUT_VAL_FRONTCONNECTOR_MODULE12\x10\x9c\x08\x12\x39\n5NISWITCH_INT32_SCAN_ADVANCED_POLARITY_VAL_RISING_EDGE\x10\x00\x12:\n6NISWITCH_INT32_SCAN_ADVANCED_POLARITY_VAL_FALLING_EDGE\x10\x01\x12%\n!NISWITCH_INT32_SCAN_MODE_VAL_NONE\x10\x00\x12\x32\n.NISWITCH_INT32_SCAN_MODE_VAL_BREAK_BEFORE_MAKE\x10\x01\x12\x31\n-NISWITCH_INT32_SCAN_MODE_VAL_BREAK_AFTER_MAKE\x10\x02\x12.\n*NISWITCH_INT32_TRIGGER_INPUT_VAL_IMMEDIATE\x10\x01\x12-\n)NISWITCH_INT32_TRIGGER_INPUT_VAL_EXTERNAL\x10\x02\x12\x32\n.NISWITCH_INT32_TRIGGER_INPUT_VAL_SOFTWARE_TRIG\x10\x03\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL0\x10o\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL1\x10p\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL2\x10q\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL3\x10r\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL4\x10s\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL5\x10t\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL6\x10u\x12)\n%NISWITCH_INT32_TRIGGER_INPUT_VAL_TTL7\x10v\x12-\n)NISWITCH_INT32_TRIGGER_INPUT_VAL_PXI_STAR\x10}\x12\x33\n.NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR\x10\xe8\x07\x12\x34\n/NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR\x10\xe9\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE1\x10\xfd\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE2\x10\xfe\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE3\x10\xff\x07\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE4\x10\x80\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE5\x10\x81\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE6\x10\x82\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE7\x10\x83\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE8\x10\x84\x08\x12;\n6NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE9\x10\x85\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE10\x10\x86\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE11\x10\x87\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_REARCONNECTOR_MODULE12\x10\x88\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE1\x10\x91\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE2\x10\x92\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE3\x10\x93\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE4\x10\x94\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE5\x10\x95\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE6\x10\x96\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE7\x10\x97\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE8\x10\x98\x08\x12<\n7NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE9\x10\x99\x08\x12=\n8NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE10\x10\x9a\x08\x12=\n8NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE11\x10\x9b\x08\x12=\n8NISWITCH_INT32_TRIGGER_INPUT_VAL_FRONTCONNECTOR_MODULE12\x10\x9c\x08\x12\x39\n5NISWITCH_INT32_TRIGGER_INPUT_POLARITY_VAL_RISING_EDGE\x10\x00\x12:\n6NISWITCH_INT32_TRIGGER_INPUT_POLARITY_VAL_FALLING_EDGE\x10\x01\x12\'\n#NISWITCH_INT32_WIRE_MODE_VAL_1_WIRE\x10\x01\x12\'\n#NISWITCH_INT32_WIRE_MODE_VAL_2_WIRE\x10\x02\x12\'\n#NISWITCH_INT32_WIRE_MODE_VAL_4_WIRE\x10\x04\x1a\x02\x10\x01\x32\xac,\n\x08NiSwitch\x12?\n\x04Init\x12\x1a.niswitch_grpc.InitRequest\x1a\x1b.niswitch_grpc.InitResponse\x12`\n\x0fInitWithOptions\x12%.niswitch_grpc.InitWithOptionsRequest\x1a&.niswitch_grpc.InitWithOptionsResponse\x12\x63\n\x10InitWithTopology\x12&.niswitch_grpc.InitWithTopologyRequest\x1a\'.niswitch_grpc.InitWithTopologyResponse\x12\x42\n\x05\x43lose\x12\x1b.niswitch_grpc.CloseRequest\x1a\x1c.niswitch_grpc.CloseResponse\x12H\n\x07\x43onnect\x12\x1d.niswitch_grpc.ConnectRequest\x1a\x1e.niswitch_grpc.ConnectResponse\x12`\n\x0f\x43onnectMultiple\x12%.niswitch_grpc.ConnectMultipleRequest\x1a&.niswitch_grpc.ConnectMultipleResponse\x12Q\n\nDisconnect\x12 .niswitch_grpc.DisconnectRequest\x1a!.niswitch_grpc.DisconnectResponse\x12i\n\x12\x44isconnectMultiple\x12(.niswitch_grpc.DisconnectMultipleRequest\x1a).niswitch_grpc.DisconnectMultipleResponse\x12Z\n\rDisconnectAll\x12#.niswitch_grpc.DisconnectAllRequest\x1a$.niswitch_grpc.DisconnectAllResponse\x12H\n\x07GetPath\x12\x1d.niswitch_grpc.GetPathRequest\x1a\x1e.niswitch_grpc.GetPathResponse\x12H\n\x07SetPath\x12\x1d.niswitch_grpc.SetPathRequest\x1a\x1e.niswitch_grpc.SetPathResponse\x12Q\n\nCanConnect\x12 .niswitch_grpc.CanConnectRequest\x1a!.niswitch_grpc.CanConnectResponse\x12T\n\x0bIsDebounced\x12!.niswitch_grpc.IsDebouncedRequest\x1a\".niswitch_grpc.IsDebouncedResponse\x12`\n\x0fWaitForDebounce\x12%.niswitch_grpc.WaitForDebounceRequest\x1a&.niswitch_grpc.WaitForDebounceResponse\x12?\n\x04Scan\x12\x1a.niswitch_grpc.ScanRequest\x1a\x1b.niswitch_grpc.ScanResponse\x12W\n\x0cInitiateScan\x12\".niswitch_grpc.InitiateScanRequest\x1a#.niswitch_grpc.InitiateScanResponse\x12N\n\tAbortScan\x12\x1f.niswitch_grpc.AbortScanRequest\x1a .niswitch_grpc.AbortScanResponse\x12Q\n\nIsScanning\x12 .niswitch_grpc.IsScanningRequest\x1a!.niswitch_grpc.IsScanningResponse\x12l\n\x13WaitForScanComplete\x12).niswitch_grpc.WaitForScanCompleteRequest\x1a*.niswitch_grpc.WaitForScanCompleteResponse\x12l\n\x13SendSoftwareTrigger\x12).niswitch_grpc.SendSoftwareTriggerRequest\x1a*.niswitch_grpc.SendSoftwareTriggerResponse\x12\x66\n\x11\x43onfigureScanList\x12\'.niswitch_grpc.ConfigureScanListRequest\x1a(.niswitch_grpc.ConfigureScanListResponse\x12o\n\x14\x43onfigureScanTrigger\x12*.niswitch_grpc.ConfigureScanTriggerRequest\x1a+.niswitch_grpc.ConfigureScanTriggerResponse\x12\x66\n\x11SetContinuousScan\x12\'.niswitch_grpc.SetContinuousScanRequest\x1a(.niswitch_grpc.SetContinuousScanResponse\x12\x66\n\x11RouteTriggerInput\x12\'.niswitch_grpc.RouteTriggerInputRequest\x1a(.niswitch_grpc.RouteTriggerInputResponse\x12x\n\x17RouteScanAdvancedOutput\x12-.niswitch_grpc.RouteScanAdvancedOutputRequest\x1a..niswitch_grpc.RouteScanAdvancedOutputResponse\x12Q\n\nErrorQuery\x12 .niswitch_grpc.ErrorQueryRequest\x1a!.niswitch_grpc.ErrorQueryResponse\x12K\n\x08GetError\x12\x1e.niswitch_grpc.GetErrorRequest\x1a\x1f.niswitch_grpc.GetErrorResponse\x12Q\n\nClearError\x12 .niswitch_grpc.ClearErrorRequest\x1a!.niswitch_grpc.ClearErrorResponse\x12W\n\x0c\x45rrorMessage\x12\".niswitch_grpc.ErrorMessageRequest\x1a#.niswitch_grpc.ErrorMessageResponse\x12]\n\x0eGetChannelName\x12$.niswitch_grpc.GetChannelNameRequest\x1a%.niswitch_grpc.GetChannelNameResponse\x12W\n\x0cGetRelayName\x12\".niswitch_grpc.GetRelayNameRequest\x1a#.niswitch_grpc.GetRelayNameResponse\x12Z\n\rGetRelayCount\x12#.niswitch_grpc.GetRelayCountRequest\x1a$.niswitch_grpc.GetRelayCountResponse\x12\x63\n\x10GetRelayPosition\x12&.niswitch_grpc.GetRelayPositionRequest\x1a\'.niswitch_grpc.GetRelayPositionResponse\x12W\n\x0cRelayControl\x12\".niswitch_grpc.RelayControlRequest\x1a#.niswitch_grpc.RelayControlResponse\x12r\n\x15ResetInterchangeCheck\x12+.niswitch_grpc.ResetInterchangeCheckRequest\x1a,.niswitch_grpc.ResetInterchangeCheckResponse\x12{\n\x18\x43learInterchangeWarnings\x12..niswitch_grpc.ClearInterchangeWarningsRequest\x1a/.niswitch_grpc.ClearInterchangeWarningsResponse\x12\x45\n\x06\x43ommit\x12\x1c.niswitch_grpc.CommitRequest\x1a\x1d.niswitch_grpc.CommitResponse\x12\x66\n\x11ResetWithDefaults\x12\'.niswitch_grpc.ResetWithDefaultsRequest\x1a(.niswitch_grpc.ResetWithDefaultsResponse\x12H\n\x07\x44isable\x12\x1d.niswitch_grpc.DisableRequest\x1a\x1e.niswitch_grpc.DisableResponse\x12\x42\n\x05Reset\x12\x1b.niswitch_grpc.ResetRequest\x1a\x1c.niswitch_grpc.ResetResponse\x12K\n\x08SelfTest\x12\x1e.niswitch_grpc.SelfTestRequest\x1a\x1f.niswitch_grpc.SelfTestResponse\x12Z\n\rRevisionQuery\x12#.niswitch_grpc.RevisionQueryRequest\x1a$.niswitch_grpc.RevisionQueryResponse\x12l\n\x13GetAttributeViInt32\x12).niswitch_grpc.GetAttributeViInt32Request\x1a*.niswitch_grpc.GetAttributeViInt32Response\x12o\n\x14GetAttributeViReal64\x12*.niswitch_grpc.GetAttributeViReal64Request\x1a+.niswitch_grpc.GetAttributeViReal64Response\x12o\n\x14GetAttributeViString\x12*.niswitch_grpc.GetAttributeViStringRequest\x1a+.niswitch_grpc.GetAttributeViStringResponse\x12r\n\x15GetAttributeViSession\x12+.niswitch_grpc.GetAttributeViSessionRequest\x1a,.niswitch_grpc.GetAttributeViSessionResponse\x12r\n\x15GetAttributeViBoolean\x12+.niswitch_grpc.GetAttributeViBooleanRequest\x1a,.niswitch_grpc.GetAttributeViBooleanResponse\x12l\n\x13SetAttributeViInt32\x12).niswitch_grpc.SetAttributeViInt32Request\x1a*.niswitch_grpc.SetAttributeViInt32Response\x12o\n\x14SetAttributeViReal64\x12*.niswitch_grpc.SetAttributeViReal64Request\x1a+.niswitch_grpc.SetAttributeViReal64Response\x12o\n\x14SetAttributeViString\x12*.niswitch_grpc.SetAttributeViStringRequest\x1a+.niswitch_grpc.SetAttributeViStringResponse\x12r\n\x15SetAttributeViSession\x12+.niswitch_grpc.SetAttributeViSessionRequest\x1a,.niswitch_grpc.SetAttributeViSessionResponse\x12r\n\x15SetAttributeViBoolean\x12+.niswitch_grpc.SetAttributeViBooleanRequest\x1a,.niswitch_grpc.SetAttributeViBooleanResponse\x12r\n\x15\x43heckAttributeViInt32\x12+.niswitch_grpc.CheckAttributeViInt32Request\x1a,.niswitch_grpc.CheckAttributeViInt32Response\x12u\n\x16\x43heckAttributeViReal64\x12,.niswitch_grpc.CheckAttributeViReal64Request\x1a-.niswitch_grpc.CheckAttributeViReal64Response\x12u\n\x16\x43heckAttributeViString\x12,.niswitch_grpc.CheckAttributeViStringRequest\x1a-.niswitch_grpc.CheckAttributeViStringResponse\x12x\n\x17\x43heckAttributeViSession\x12-.niswitch_grpc.CheckAttributeViSessionRequest\x1a..niswitch_grpc.CheckAttributeViSessionResponse\x12x\n\x17\x43heckAttributeViBoolean\x12-.niswitch_grpc.CheckAttributeViBooleanRequest\x1a..niswitch_grpc.CheckAttributeViBooleanResponse\x12x\n\x17InvalidateAllAttributes\x12-.niswitch_grpc.InvalidateAllAttributesRequest\x1a..niswitch_grpc.InvalidateAllAttributesResponseBD\n\x14\x63om.ni.grpc.niswitchB\x08NiSwitchP\x01\xaa\x02\x1fNationalInstruments.Grpc.Switchb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'niswitch_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.ni.grpc.niswitchB\010NiSwitchP\001\252\002\037NationalInstruments.Grpc.Switch' + _NISWITCHINT32ATTRIBUTEVALUES._options = None + _NISWITCHINT32ATTRIBUTEVALUES._serialized_options = b'\020\001' + _INITRESPONSE.fields_by_name['error_message']._options = None + _INITRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._options = None + _INITWITHOPTIONSRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _INITWITHTOPOLOGYRESPONSE.fields_by_name['error_message']._options = None + _INITWITHTOPOLOGYRESPONSE.fields_by_name['error_message']._serialized_options = b'\030\001' + _globals['_NISWITCHATTRIBUTE']._serialized_start=10832 + _globals['_NISWITCHATTRIBUTE']._serialized_end=13824 + _globals['_SCANMODE']._serialized_start=13827 + _globals['_SCANMODE']._serialized_end=13961 + _globals['_TRIGGERINPUT']._serialized_start=13964 + _globals['_TRIGGERINPUT']._serialized_end=15908 + _globals['_PATHCAPABILITY']._serialized_start=15911 + _globals['_PATHCAPABILITY']._serialized_end=16258 + _globals['_HANDSHAKINGINITIATION']._serialized_start=16261 + _globals['_HANDSHAKINGINITIATION']._serialized_end=16412 + _globals['_RELAYPOSITION']._serialized_start=16414 + _globals['_RELAYPOSITION']._serialized_end=16539 + _globals['_RELAYACTION']._serialized_start=16542 + _globals['_RELAYACTION']._serialized_end=16670 + _globals['_SCANADVANCEDOUTPUT']._serialized_start=16673 + _globals['_SCANADVANCEDOUTPUT']._serialized_end=18800 + _globals['_NISWITCHINT32ATTRIBUTEVALUES']._serialized_start=18803 + _globals['_NISWITCHINT32ATTRIBUTEVALUES']._serialized_end=23968 + _globals['_INITREQUEST']._serialized_start=49 + _globals['_INITREQUEST']._serialized_end=226 + _globals['_INITRESPONSE']._serialized_start=228 + _globals['_INITRESPONSE']._serialized_end=354 + _globals['_INITWITHOPTIONSREQUEST']._serialized_start=357 + _globals['_INITWITHOPTIONSREQUEST']._serialized_end=568 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_start=571 + _globals['_INITWITHOPTIONSRESPONSE']._serialized_end=708 + _globals['_INITWITHTOPOLOGYREQUEST']._serialized_start=711 + _globals['_INITWITHTOPOLOGYREQUEST']._serialized_end=918 + _globals['_INITWITHTOPOLOGYRESPONSE']._serialized_start=921 + _globals['_INITWITHTOPOLOGYRESPONSE']._serialized_end=1059 + _globals['_CLOSEREQUEST']._serialized_start=1061 + _globals['_CLOSEREQUEST']._serialized_end=1111 + _globals['_CLOSERESPONSE']._serialized_start=1113 + _globals['_CLOSERESPONSE']._serialized_end=1144 + _globals['_CONNECTREQUEST']._serialized_start=1146 + _globals['_CONNECTREQUEST']._serialized_end=1234 + _globals['_CONNECTRESPONSE']._serialized_start=1236 + _globals['_CONNECTRESPONSE']._serialized_end=1269 + _globals['_CONNECTMULTIPLEREQUEST']._serialized_start=1271 + _globals['_CONNECTMULTIPLEREQUEST']._serialized_end=1356 + _globals['_CONNECTMULTIPLERESPONSE']._serialized_start=1358 + _globals['_CONNECTMULTIPLERESPONSE']._serialized_end=1399 + _globals['_DISCONNECTREQUEST']._serialized_start=1401 + _globals['_DISCONNECTREQUEST']._serialized_end=1492 + _globals['_DISCONNECTRESPONSE']._serialized_start=1494 + _globals['_DISCONNECTRESPONSE']._serialized_end=1530 + _globals['_DISCONNECTMULTIPLEREQUEST']._serialized_start=1532 + _globals['_DISCONNECTMULTIPLEREQUEST']._serialized_end=1623 + _globals['_DISCONNECTMULTIPLERESPONSE']._serialized_start=1625 + _globals['_DISCONNECTMULTIPLERESPONSE']._serialized_end=1669 + _globals['_DISCONNECTALLREQUEST']._serialized_start=1671 + _globals['_DISCONNECTALLREQUEST']._serialized_end=1729 + _globals['_DISCONNECTALLRESPONSE']._serialized_start=1731 + _globals['_DISCONNECTALLRESPONSE']._serialized_end=1770 + _globals['_GETPATHREQUEST']._serialized_start=1772 + _globals['_GETPATHREQUEST']._serialized_end=1860 + _globals['_GETPATHRESPONSE']._serialized_start=1862 + _globals['_GETPATHRESPONSE']._serialized_end=1909 + _globals['_SETPATHREQUEST']._serialized_start=1911 + _globals['_SETPATHREQUEST']._serialized_end=1982 + _globals['_SETPATHRESPONSE']._serialized_start=1984 + _globals['_SETPATHRESPONSE']._serialized_end=2017 + _globals['_CANCONNECTREQUEST']._serialized_start=2019 + _globals['_CANCONNECTREQUEST']._serialized_end=2110 + _globals['_CANCONNECTRESPONSE']._serialized_start=2112 + _globals['_CANCONNECTRESPONSE']._serialized_end=2233 + _globals['_ISDEBOUNCEDREQUEST']._serialized_start=2235 + _globals['_ISDEBOUNCEDREQUEST']._serialized_end=2291 + _globals['_ISDEBOUNCEDRESPONSE']._serialized_start=2293 + _globals['_ISDEBOUNCEDRESPONSE']._serialized_end=2352 + _globals['_WAITFORDEBOUNCEREQUEST']._serialized_start=2354 + _globals['_WAITFORDEBOUNCEREQUEST']._serialized_end=2439 + _globals['_WAITFORDEBOUNCERESPONSE']._serialized_start=2441 + _globals['_WAITFORDEBOUNCERESPONSE']._serialized_end=2482 + _globals['_SCANREQUEST']._serialized_start=2485 + _globals['_SCANREQUEST']._serialized_end=2658 + _globals['_SCANRESPONSE']._serialized_start=2660 + _globals['_SCANRESPONSE']._serialized_end=2690 + _globals['_INITIATESCANREQUEST']._serialized_start=2692 + _globals['_INITIATESCANREQUEST']._serialized_end=2749 + _globals['_INITIATESCANRESPONSE']._serialized_start=2751 + _globals['_INITIATESCANRESPONSE']._serialized_end=2789 + _globals['_ABORTSCANREQUEST']._serialized_start=2791 + _globals['_ABORTSCANREQUEST']._serialized_end=2845 + _globals['_ABORTSCANRESPONSE']._serialized_start=2847 + _globals['_ABORTSCANRESPONSE']._serialized_end=2882 + _globals['_ISSCANNINGREQUEST']._serialized_start=2884 + _globals['_ISSCANNINGREQUEST']._serialized_end=2939 + _globals['_ISSCANNINGRESPONSE']._serialized_start=2941 + _globals['_ISSCANNINGRESPONSE']._serialized_end=2998 + _globals['_WAITFORSCANCOMPLETEREQUEST']._serialized_start=3000 + _globals['_WAITFORSCANCOMPLETEREQUEST']._serialized_end=3089 + _globals['_WAITFORSCANCOMPLETERESPONSE']._serialized_start=3091 + _globals['_WAITFORSCANCOMPLETERESPONSE']._serialized_end=3136 + _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_start=3138 + _globals['_SENDSOFTWARETRIGGERREQUEST']._serialized_end=3202 + _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_start=3204 + _globals['_SENDSOFTWARETRIGGERRESPONSE']._serialized_end=3249 + _globals['_CONFIGURESCANLISTREQUEST']._serialized_start=3252 + _globals['_CONFIGURESCANLISTREQUEST']._serialized_end=3422 + _globals['_CONFIGURESCANLISTRESPONSE']._serialized_start=3424 + _globals['_CONFIGURESCANLISTRESPONSE']._serialized_end=3467 + _globals['_CONFIGURESCANTRIGGERREQUEST']._serialized_start=3470 + _globals['_CONFIGURESCANTRIGGERREQUEST']._serialized_end=3792 + _globals['_CONFIGURESCANTRIGGERRESPONSE']._serialized_start=3794 + _globals['_CONFIGURESCANTRIGGERRESPONSE']._serialized_end=3840 + _globals['_SETCONTINUOUSSCANREQUEST']._serialized_start=3842 + _globals['_SETCONTINUOUSSCANREQUEST']._serialized_end=3929 + _globals['_SETCONTINUOUSSCANRESPONSE']._serialized_start=3931 + _globals['_SETCONTINUOUSSCANRESPONSE']._serialized_end=3974 + _globals['_ROUTETRIGGERINPUTREQUEST']._serialized_start=3977 + _globals['_ROUTETRIGGERINPUTREQUEST']._serialized_end=4322 + _globals['_ROUTETRIGGERINPUTRESPONSE']._serialized_start=4324 + _globals['_ROUTETRIGGERINPUTRESPONSE']._serialized_end=4367 + _globals['_ROUTESCANADVANCEDOUTPUTREQUEST']._serialized_start=4370 + _globals['_ROUTESCANADVANCEDOUTPUTREQUEST']._serialized_end=4775 + _globals['_ROUTESCANADVANCEDOUTPUTRESPONSE']._serialized_start=4777 + _globals['_ROUTESCANADVANCEDOUTPUTRESPONSE']._serialized_end=4826 + _globals['_ERRORQUERYREQUEST']._serialized_start=4828 + _globals['_ERRORQUERYREQUEST']._serialized_end=4883 + _globals['_ERRORQUERYRESPONSE']._serialized_start=4885 + _globals['_ERRORQUERYRESPONSE']._serialized_end=4964 + _globals['_GETERRORREQUEST']._serialized_start=4966 + _globals['_GETERRORREQUEST']._serialized_end=5019 + _globals['_GETERRORRESPONSE']._serialized_start=5021 + _globals['_GETERRORRESPONSE']._serialized_end=5090 + _globals['_CLEARERRORREQUEST']._serialized_start=5092 + _globals['_CLEARERRORREQUEST']._serialized_end=5147 + _globals['_CLEARERRORRESPONSE']._serialized_start=5149 + _globals['_CLEARERRORRESPONSE']._serialized_end=5185 + _globals['_ERRORMESSAGEREQUEST']._serialized_start=5187 + _globals['_ERRORMESSAGEREQUEST']._serialized_end=5264 + _globals['_ERRORMESSAGERESPONSE']._serialized_start=5266 + _globals['_ERRORMESSAGERESPONSE']._serialized_end=5327 + _globals['_GETCHANNELNAMEREQUEST']._serialized_start=5329 + _globals['_GETCHANNELNAMEREQUEST']._serialized_end=5403 + _globals['_GETCHANNELNAMERESPONSE']._serialized_start=5405 + _globals['_GETCHANNELNAMERESPONSE']._serialized_end=5474 + _globals['_GETRELAYNAMEREQUEST']._serialized_start=5476 + _globals['_GETRELAYNAMEREQUEST']._serialized_end=5548 + _globals['_GETRELAYNAMERESPONSE']._serialized_start=5550 + _globals['_GETRELAYNAMERESPONSE']._serialized_end=5615 + _globals['_GETRELAYCOUNTREQUEST']._serialized_start=5617 + _globals['_GETRELAYCOUNTREQUEST']._serialized_end=5695 + _globals['_GETRELAYCOUNTRESPONSE']._serialized_start=5697 + _globals['_GETRELAYCOUNTRESPONSE']._serialized_end=5757 + _globals['_GETRELAYPOSITIONREQUEST']._serialized_start=5759 + _globals['_GETRELAYPOSITIONREQUEST']._serialized_end=5840 + _globals['_GETRELAYPOSITIONRESPONSE']._serialized_start=5842 + _globals['_GETRELAYPOSITIONRESPONSE']._serialized_end=5966 + _globals['_RELAYCONTROLREQUEST']._serialized_start=5969 + _globals['_RELAYCONTROLREQUEST']._serialized_end=6147 + _globals['_RELAYCONTROLRESPONSE']._serialized_start=6149 + _globals['_RELAYCONTROLRESPONSE']._serialized_end=6187 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_start=6189 + _globals['_RESETINTERCHANGECHECKREQUEST']._serialized_end=6255 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_start=6257 + _globals['_RESETINTERCHANGECHECKRESPONSE']._serialized_end=6304 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_start=6306 + _globals['_CLEARINTERCHANGEWARNINGSREQUEST']._serialized_end=6375 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_start=6377 + _globals['_CLEARINTERCHANGEWARNINGSRESPONSE']._serialized_end=6427 + _globals['_COMMITREQUEST']._serialized_start=6429 + _globals['_COMMITREQUEST']._serialized_end=6480 + _globals['_COMMITRESPONSE']._serialized_start=6482 + _globals['_COMMITRESPONSE']._serialized_end=6514 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_start=6516 + _globals['_RESETWITHDEFAULTSREQUEST']._serialized_end=6578 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_start=6580 + _globals['_RESETWITHDEFAULTSRESPONSE']._serialized_end=6623 + _globals['_DISABLEREQUEST']._serialized_start=6625 + _globals['_DISABLEREQUEST']._serialized_end=6677 + _globals['_DISABLERESPONSE']._serialized_start=6679 + _globals['_DISABLERESPONSE']._serialized_end=6712 + _globals['_RESETREQUEST']._serialized_start=6714 + _globals['_RESETREQUEST']._serialized_end=6764 + _globals['_RESETRESPONSE']._serialized_start=6766 + _globals['_RESETRESPONSE']._serialized_end=6797 + _globals['_SELFTESTREQUEST']._serialized_start=6799 + _globals['_SELFTESTREQUEST']._serialized_end=6852 + _globals['_SELFTESTRESPONSE']._serialized_start=6854 + _globals['_SELFTESTRESPONSE']._serialized_end=6941 + _globals['_REVISIONQUERYREQUEST']._serialized_start=6943 + _globals['_REVISIONQUERYREQUEST']._serialized_end=7001 + _globals['_REVISIONQUERYRESPONSE']._serialized_start=7003 + _globals['_REVISIONQUERYRESPONSE']._serialized_end=7105 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_start=7108 + _globals['_GETATTRIBUTEVIINT32REQUEST']._serialized_end=7250 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_start=7252 + _globals['_GETATTRIBUTEVIINT32RESPONSE']._serialized_end=7322 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_start=7325 + _globals['_GETATTRIBUTEVIREAL64REQUEST']._serialized_end=7468 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_start=7470 + _globals['_GETATTRIBUTEVIREAL64RESPONSE']._serialized_end=7541 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_start=7544 + _globals['_GETATTRIBUTEVISTRINGREQUEST']._serialized_end=7687 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_start=7689 + _globals['_GETATTRIBUTEVISTRINGRESPONSE']._serialized_end=7760 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_start=7763 + _globals['_GETATTRIBUTEVISESSIONREQUEST']._serialized_end=7907 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_start=7909 + _globals['_GETATTRIBUTEVISESSIONRESPONSE']._serialized_end=8005 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=8008 + _globals['_GETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=8152 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=8154 + _globals['_GETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=8226 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_start=8229 + _globals['_SETATTRIBUTEVIINT32REQUEST']._serialized_end=8498 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_start=8500 + _globals['_SETATTRIBUTEVIINT32RESPONSE']._serialized_end=8545 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_start=8548 + _globals['_SETATTRIBUTEVIREAL64REQUEST']._serialized_end=8720 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_start=8722 + _globals['_SETATTRIBUTEVIREAL64RESPONSE']._serialized_end=8768 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_start=8771 + _globals['_SETATTRIBUTEVISTRINGREQUEST']._serialized_end=8943 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_start=8945 + _globals['_SETATTRIBUTEVISTRINGRESPONSE']._serialized_end=8991 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_start=8994 + _globals['_SETATTRIBUTEVISESSIONREQUEST']._serialized_end=9187 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_start=9189 + _globals['_SETATTRIBUTEVISESSIONRESPONSE']._serialized_end=9236 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_start=9239 + _globals['_SETATTRIBUTEVIBOOLEANREQUEST']._serialized_end=9408 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=9410 + _globals['_SETATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=9457 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_start=9460 + _globals['_CHECKATTRIBUTEVIINT32REQUEST']._serialized_end=9731 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_start=9733 + _globals['_CHECKATTRIBUTEVIINT32RESPONSE']._serialized_end=9780 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_start=9783 + _globals['_CHECKATTRIBUTEVIREAL64REQUEST']._serialized_end=9957 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_start=9959 + _globals['_CHECKATTRIBUTEVIREAL64RESPONSE']._serialized_end=10007 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_start=10010 + _globals['_CHECKATTRIBUTEVISTRINGREQUEST']._serialized_end=10184 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_start=10186 + _globals['_CHECKATTRIBUTEVISTRINGRESPONSE']._serialized_end=10234 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_start=10237 + _globals['_CHECKATTRIBUTEVISESSIONREQUEST']._serialized_end=10432 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_start=10434 + _globals['_CHECKATTRIBUTEVISESSIONRESPONSE']._serialized_end=10483 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_start=10486 + _globals['_CHECKATTRIBUTEVIBOOLEANREQUEST']._serialized_end=10657 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_start=10659 + _globals['_CHECKATTRIBUTEVIBOOLEANRESPONSE']._serialized_end=10708 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_start=10710 + _globals['_INVALIDATEALLATTRIBUTESREQUEST']._serialized_end=10778 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_start=10780 + _globals['_INVALIDATEALLATTRIBUTESRESPONSE']._serialized_end=10829 + _globals['_NISWITCH']._serialized_start=23971 + _globals['_NISWITCH']._serialized_end=29647 +# @@protoc_insertion_point(module_scope) diff --git a/generated/niswitch/niswitch/niswitch_pb2_grpc.py b/generated/niswitch/niswitch/niswitch_pb2_grpc.py new file mode 100644 index 0000000000..8f1df1f5cb --- /dev/null +++ b/generated/niswitch/niswitch/niswitch_pb2_grpc.py @@ -0,0 +1,1947 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from . import niswitch_pb2 as niswitch__pb2 + + +class NiSwitchStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Init = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Init', + request_serializer=niswitch__pb2.InitRequest.SerializeToString, + response_deserializer=niswitch__pb2.InitResponse.FromString, + ) + self.InitWithOptions = channel.unary_unary( + '/niswitch_grpc.NiSwitch/InitWithOptions', + request_serializer=niswitch__pb2.InitWithOptionsRequest.SerializeToString, + response_deserializer=niswitch__pb2.InitWithOptionsResponse.FromString, + ) + self.InitWithTopology = channel.unary_unary( + '/niswitch_grpc.NiSwitch/InitWithTopology', + request_serializer=niswitch__pb2.InitWithTopologyRequest.SerializeToString, + response_deserializer=niswitch__pb2.InitWithTopologyResponse.FromString, + ) + self.Close = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Close', + request_serializer=niswitch__pb2.CloseRequest.SerializeToString, + response_deserializer=niswitch__pb2.CloseResponse.FromString, + ) + self.Connect = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Connect', + request_serializer=niswitch__pb2.ConnectRequest.SerializeToString, + response_deserializer=niswitch__pb2.ConnectResponse.FromString, + ) + self.ConnectMultiple = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ConnectMultiple', + request_serializer=niswitch__pb2.ConnectMultipleRequest.SerializeToString, + response_deserializer=niswitch__pb2.ConnectMultipleResponse.FromString, + ) + self.Disconnect = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Disconnect', + request_serializer=niswitch__pb2.DisconnectRequest.SerializeToString, + response_deserializer=niswitch__pb2.DisconnectResponse.FromString, + ) + self.DisconnectMultiple = channel.unary_unary( + '/niswitch_grpc.NiSwitch/DisconnectMultiple', + request_serializer=niswitch__pb2.DisconnectMultipleRequest.SerializeToString, + response_deserializer=niswitch__pb2.DisconnectMultipleResponse.FromString, + ) + self.DisconnectAll = channel.unary_unary( + '/niswitch_grpc.NiSwitch/DisconnectAll', + request_serializer=niswitch__pb2.DisconnectAllRequest.SerializeToString, + response_deserializer=niswitch__pb2.DisconnectAllResponse.FromString, + ) + self.GetPath = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetPath', + request_serializer=niswitch__pb2.GetPathRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetPathResponse.FromString, + ) + self.SetPath = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetPath', + request_serializer=niswitch__pb2.SetPathRequest.SerializeToString, + response_deserializer=niswitch__pb2.SetPathResponse.FromString, + ) + self.CanConnect = channel.unary_unary( + '/niswitch_grpc.NiSwitch/CanConnect', + request_serializer=niswitch__pb2.CanConnectRequest.SerializeToString, + response_deserializer=niswitch__pb2.CanConnectResponse.FromString, + ) + self.IsDebounced = channel.unary_unary( + '/niswitch_grpc.NiSwitch/IsDebounced', + request_serializer=niswitch__pb2.IsDebouncedRequest.SerializeToString, + response_deserializer=niswitch__pb2.IsDebouncedResponse.FromString, + ) + self.WaitForDebounce = channel.unary_unary( + '/niswitch_grpc.NiSwitch/WaitForDebounce', + request_serializer=niswitch__pb2.WaitForDebounceRequest.SerializeToString, + response_deserializer=niswitch__pb2.WaitForDebounceResponse.FromString, + ) + self.Scan = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Scan', + request_serializer=niswitch__pb2.ScanRequest.SerializeToString, + response_deserializer=niswitch__pb2.ScanResponse.FromString, + ) + self.InitiateScan = channel.unary_unary( + '/niswitch_grpc.NiSwitch/InitiateScan', + request_serializer=niswitch__pb2.InitiateScanRequest.SerializeToString, + response_deserializer=niswitch__pb2.InitiateScanResponse.FromString, + ) + self.AbortScan = channel.unary_unary( + '/niswitch_grpc.NiSwitch/AbortScan', + request_serializer=niswitch__pb2.AbortScanRequest.SerializeToString, + response_deserializer=niswitch__pb2.AbortScanResponse.FromString, + ) + self.IsScanning = channel.unary_unary( + '/niswitch_grpc.NiSwitch/IsScanning', + request_serializer=niswitch__pb2.IsScanningRequest.SerializeToString, + response_deserializer=niswitch__pb2.IsScanningResponse.FromString, + ) + self.WaitForScanComplete = channel.unary_unary( + '/niswitch_grpc.NiSwitch/WaitForScanComplete', + request_serializer=niswitch__pb2.WaitForScanCompleteRequest.SerializeToString, + response_deserializer=niswitch__pb2.WaitForScanCompleteResponse.FromString, + ) + self.SendSoftwareTrigger = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SendSoftwareTrigger', + request_serializer=niswitch__pb2.SendSoftwareTriggerRequest.SerializeToString, + response_deserializer=niswitch__pb2.SendSoftwareTriggerResponse.FromString, + ) + self.ConfigureScanList = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ConfigureScanList', + request_serializer=niswitch__pb2.ConfigureScanListRequest.SerializeToString, + response_deserializer=niswitch__pb2.ConfigureScanListResponse.FromString, + ) + self.ConfigureScanTrigger = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ConfigureScanTrigger', + request_serializer=niswitch__pb2.ConfigureScanTriggerRequest.SerializeToString, + response_deserializer=niswitch__pb2.ConfigureScanTriggerResponse.FromString, + ) + self.SetContinuousScan = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetContinuousScan', + request_serializer=niswitch__pb2.SetContinuousScanRequest.SerializeToString, + response_deserializer=niswitch__pb2.SetContinuousScanResponse.FromString, + ) + self.RouteTriggerInput = channel.unary_unary( + '/niswitch_grpc.NiSwitch/RouteTriggerInput', + request_serializer=niswitch__pb2.RouteTriggerInputRequest.SerializeToString, + response_deserializer=niswitch__pb2.RouteTriggerInputResponse.FromString, + ) + self.RouteScanAdvancedOutput = channel.unary_unary( + '/niswitch_grpc.NiSwitch/RouteScanAdvancedOutput', + request_serializer=niswitch__pb2.RouteScanAdvancedOutputRequest.SerializeToString, + response_deserializer=niswitch__pb2.RouteScanAdvancedOutputResponse.FromString, + ) + self.ErrorQuery = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ErrorQuery', + request_serializer=niswitch__pb2.ErrorQueryRequest.SerializeToString, + response_deserializer=niswitch__pb2.ErrorQueryResponse.FromString, + ) + self.GetError = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetError', + request_serializer=niswitch__pb2.GetErrorRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetErrorResponse.FromString, + ) + self.ClearError = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ClearError', + request_serializer=niswitch__pb2.ClearErrorRequest.SerializeToString, + response_deserializer=niswitch__pb2.ClearErrorResponse.FromString, + ) + self.ErrorMessage = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ErrorMessage', + request_serializer=niswitch__pb2.ErrorMessageRequest.SerializeToString, + response_deserializer=niswitch__pb2.ErrorMessageResponse.FromString, + ) + self.GetChannelName = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetChannelName', + request_serializer=niswitch__pb2.GetChannelNameRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetChannelNameResponse.FromString, + ) + self.GetRelayName = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetRelayName', + request_serializer=niswitch__pb2.GetRelayNameRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetRelayNameResponse.FromString, + ) + self.GetRelayCount = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetRelayCount', + request_serializer=niswitch__pb2.GetRelayCountRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetRelayCountResponse.FromString, + ) + self.GetRelayPosition = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetRelayPosition', + request_serializer=niswitch__pb2.GetRelayPositionRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetRelayPositionResponse.FromString, + ) + self.RelayControl = channel.unary_unary( + '/niswitch_grpc.NiSwitch/RelayControl', + request_serializer=niswitch__pb2.RelayControlRequest.SerializeToString, + response_deserializer=niswitch__pb2.RelayControlResponse.FromString, + ) + self.ResetInterchangeCheck = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ResetInterchangeCheck', + request_serializer=niswitch__pb2.ResetInterchangeCheckRequest.SerializeToString, + response_deserializer=niswitch__pb2.ResetInterchangeCheckResponse.FromString, + ) + self.ClearInterchangeWarnings = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ClearInterchangeWarnings', + request_serializer=niswitch__pb2.ClearInterchangeWarningsRequest.SerializeToString, + response_deserializer=niswitch__pb2.ClearInterchangeWarningsResponse.FromString, + ) + self.Commit = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Commit', + request_serializer=niswitch__pb2.CommitRequest.SerializeToString, + response_deserializer=niswitch__pb2.CommitResponse.FromString, + ) + self.ResetWithDefaults = channel.unary_unary( + '/niswitch_grpc.NiSwitch/ResetWithDefaults', + request_serializer=niswitch__pb2.ResetWithDefaultsRequest.SerializeToString, + response_deserializer=niswitch__pb2.ResetWithDefaultsResponse.FromString, + ) + self.Disable = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Disable', + request_serializer=niswitch__pb2.DisableRequest.SerializeToString, + response_deserializer=niswitch__pb2.DisableResponse.FromString, + ) + self.Reset = channel.unary_unary( + '/niswitch_grpc.NiSwitch/Reset', + request_serializer=niswitch__pb2.ResetRequest.SerializeToString, + response_deserializer=niswitch__pb2.ResetResponse.FromString, + ) + self.SelfTest = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SelfTest', + request_serializer=niswitch__pb2.SelfTestRequest.SerializeToString, + response_deserializer=niswitch__pb2.SelfTestResponse.FromString, + ) + self.RevisionQuery = channel.unary_unary( + '/niswitch_grpc.NiSwitch/RevisionQuery', + request_serializer=niswitch__pb2.RevisionQueryRequest.SerializeToString, + response_deserializer=niswitch__pb2.RevisionQueryResponse.FromString, + ) + self.GetAttributeViInt32 = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetAttributeViInt32', + request_serializer=niswitch__pb2.GetAttributeViInt32Request.SerializeToString, + response_deserializer=niswitch__pb2.GetAttributeViInt32Response.FromString, + ) + self.GetAttributeViReal64 = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetAttributeViReal64', + request_serializer=niswitch__pb2.GetAttributeViReal64Request.SerializeToString, + response_deserializer=niswitch__pb2.GetAttributeViReal64Response.FromString, + ) + self.GetAttributeViString = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetAttributeViString', + request_serializer=niswitch__pb2.GetAttributeViStringRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetAttributeViStringResponse.FromString, + ) + self.GetAttributeViSession = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetAttributeViSession', + request_serializer=niswitch__pb2.GetAttributeViSessionRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetAttributeViSessionResponse.FromString, + ) + self.GetAttributeViBoolean = channel.unary_unary( + '/niswitch_grpc.NiSwitch/GetAttributeViBoolean', + request_serializer=niswitch__pb2.GetAttributeViBooleanRequest.SerializeToString, + response_deserializer=niswitch__pb2.GetAttributeViBooleanResponse.FromString, + ) + self.SetAttributeViInt32 = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetAttributeViInt32', + request_serializer=niswitch__pb2.SetAttributeViInt32Request.SerializeToString, + response_deserializer=niswitch__pb2.SetAttributeViInt32Response.FromString, + ) + self.SetAttributeViReal64 = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetAttributeViReal64', + request_serializer=niswitch__pb2.SetAttributeViReal64Request.SerializeToString, + response_deserializer=niswitch__pb2.SetAttributeViReal64Response.FromString, + ) + self.SetAttributeViString = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetAttributeViString', + request_serializer=niswitch__pb2.SetAttributeViStringRequest.SerializeToString, + response_deserializer=niswitch__pb2.SetAttributeViStringResponse.FromString, + ) + self.SetAttributeViSession = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetAttributeViSession', + request_serializer=niswitch__pb2.SetAttributeViSessionRequest.SerializeToString, + response_deserializer=niswitch__pb2.SetAttributeViSessionResponse.FromString, + ) + self.SetAttributeViBoolean = channel.unary_unary( + '/niswitch_grpc.NiSwitch/SetAttributeViBoolean', + request_serializer=niswitch__pb2.SetAttributeViBooleanRequest.SerializeToString, + response_deserializer=niswitch__pb2.SetAttributeViBooleanResponse.FromString, + ) + self.CheckAttributeViInt32 = channel.unary_unary( + '/niswitch_grpc.NiSwitch/CheckAttributeViInt32', + request_serializer=niswitch__pb2.CheckAttributeViInt32Request.SerializeToString, + response_deserializer=niswitch__pb2.CheckAttributeViInt32Response.FromString, + ) + self.CheckAttributeViReal64 = channel.unary_unary( + '/niswitch_grpc.NiSwitch/CheckAttributeViReal64', + request_serializer=niswitch__pb2.CheckAttributeViReal64Request.SerializeToString, + response_deserializer=niswitch__pb2.CheckAttributeViReal64Response.FromString, + ) + self.CheckAttributeViString = channel.unary_unary( + '/niswitch_grpc.NiSwitch/CheckAttributeViString', + request_serializer=niswitch__pb2.CheckAttributeViStringRequest.SerializeToString, + response_deserializer=niswitch__pb2.CheckAttributeViStringResponse.FromString, + ) + self.CheckAttributeViSession = channel.unary_unary( + '/niswitch_grpc.NiSwitch/CheckAttributeViSession', + request_serializer=niswitch__pb2.CheckAttributeViSessionRequest.SerializeToString, + response_deserializer=niswitch__pb2.CheckAttributeViSessionResponse.FromString, + ) + self.CheckAttributeViBoolean = channel.unary_unary( + '/niswitch_grpc.NiSwitch/CheckAttributeViBoolean', + request_serializer=niswitch__pb2.CheckAttributeViBooleanRequest.SerializeToString, + response_deserializer=niswitch__pb2.CheckAttributeViBooleanResponse.FromString, + ) + self.InvalidateAllAttributes = channel.unary_unary( + '/niswitch_grpc.NiSwitch/InvalidateAllAttributes', + request_serializer=niswitch__pb2.InvalidateAllAttributesRequest.SerializeToString, + response_deserializer=niswitch__pb2.InvalidateAllAttributesResponse.FromString, + ) + + +class NiSwitchServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Init(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithOptions(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitWithTopology(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Close(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Connect(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConnectMultiple(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disconnect(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisconnectMultiple(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DisconnectAll(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPath(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetPath(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CanConnect(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsDebounced(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitForDebounce(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Scan(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InitiateScan(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AbortScan(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def IsScanning(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def WaitForScanComplete(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SendSoftwareTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureScanList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ConfigureScanTrigger(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetContinuousScan(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RouteTriggerInput(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RouteScanAdvancedOutput(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearError(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ErrorMessage(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetChannelName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRelayName(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRelayCount(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetRelayPosition(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RelayControl(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetInterchangeCheck(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ClearInterchangeWarnings(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Commit(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ResetWithDefaults(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Disable(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Reset(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SelfTest(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RevisionQuery(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViInt32(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViReal64(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViString(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViSession(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CheckAttributeViBoolean(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def InvalidateAllAttributes(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_NiSwitchServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Init': grpc.unary_unary_rpc_method_handler( + servicer.Init, + request_deserializer=niswitch__pb2.InitRequest.FromString, + response_serializer=niswitch__pb2.InitResponse.SerializeToString, + ), + 'InitWithOptions': grpc.unary_unary_rpc_method_handler( + servicer.InitWithOptions, + request_deserializer=niswitch__pb2.InitWithOptionsRequest.FromString, + response_serializer=niswitch__pb2.InitWithOptionsResponse.SerializeToString, + ), + 'InitWithTopology': grpc.unary_unary_rpc_method_handler( + servicer.InitWithTopology, + request_deserializer=niswitch__pb2.InitWithTopologyRequest.FromString, + response_serializer=niswitch__pb2.InitWithTopologyResponse.SerializeToString, + ), + 'Close': grpc.unary_unary_rpc_method_handler( + servicer.Close, + request_deserializer=niswitch__pb2.CloseRequest.FromString, + response_serializer=niswitch__pb2.CloseResponse.SerializeToString, + ), + 'Connect': grpc.unary_unary_rpc_method_handler( + servicer.Connect, + request_deserializer=niswitch__pb2.ConnectRequest.FromString, + response_serializer=niswitch__pb2.ConnectResponse.SerializeToString, + ), + 'ConnectMultiple': grpc.unary_unary_rpc_method_handler( + servicer.ConnectMultiple, + request_deserializer=niswitch__pb2.ConnectMultipleRequest.FromString, + response_serializer=niswitch__pb2.ConnectMultipleResponse.SerializeToString, + ), + 'Disconnect': grpc.unary_unary_rpc_method_handler( + servicer.Disconnect, + request_deserializer=niswitch__pb2.DisconnectRequest.FromString, + response_serializer=niswitch__pb2.DisconnectResponse.SerializeToString, + ), + 'DisconnectMultiple': grpc.unary_unary_rpc_method_handler( + servicer.DisconnectMultiple, + request_deserializer=niswitch__pb2.DisconnectMultipleRequest.FromString, + response_serializer=niswitch__pb2.DisconnectMultipleResponse.SerializeToString, + ), + 'DisconnectAll': grpc.unary_unary_rpc_method_handler( + servicer.DisconnectAll, + request_deserializer=niswitch__pb2.DisconnectAllRequest.FromString, + response_serializer=niswitch__pb2.DisconnectAllResponse.SerializeToString, + ), + 'GetPath': grpc.unary_unary_rpc_method_handler( + servicer.GetPath, + request_deserializer=niswitch__pb2.GetPathRequest.FromString, + response_serializer=niswitch__pb2.GetPathResponse.SerializeToString, + ), + 'SetPath': grpc.unary_unary_rpc_method_handler( + servicer.SetPath, + request_deserializer=niswitch__pb2.SetPathRequest.FromString, + response_serializer=niswitch__pb2.SetPathResponse.SerializeToString, + ), + 'CanConnect': grpc.unary_unary_rpc_method_handler( + servicer.CanConnect, + request_deserializer=niswitch__pb2.CanConnectRequest.FromString, + response_serializer=niswitch__pb2.CanConnectResponse.SerializeToString, + ), + 'IsDebounced': grpc.unary_unary_rpc_method_handler( + servicer.IsDebounced, + request_deserializer=niswitch__pb2.IsDebouncedRequest.FromString, + response_serializer=niswitch__pb2.IsDebouncedResponse.SerializeToString, + ), + 'WaitForDebounce': grpc.unary_unary_rpc_method_handler( + servicer.WaitForDebounce, + request_deserializer=niswitch__pb2.WaitForDebounceRequest.FromString, + response_serializer=niswitch__pb2.WaitForDebounceResponse.SerializeToString, + ), + 'Scan': grpc.unary_unary_rpc_method_handler( + servicer.Scan, + request_deserializer=niswitch__pb2.ScanRequest.FromString, + response_serializer=niswitch__pb2.ScanResponse.SerializeToString, + ), + 'InitiateScan': grpc.unary_unary_rpc_method_handler( + servicer.InitiateScan, + request_deserializer=niswitch__pb2.InitiateScanRequest.FromString, + response_serializer=niswitch__pb2.InitiateScanResponse.SerializeToString, + ), + 'AbortScan': grpc.unary_unary_rpc_method_handler( + servicer.AbortScan, + request_deserializer=niswitch__pb2.AbortScanRequest.FromString, + response_serializer=niswitch__pb2.AbortScanResponse.SerializeToString, + ), + 'IsScanning': grpc.unary_unary_rpc_method_handler( + servicer.IsScanning, + request_deserializer=niswitch__pb2.IsScanningRequest.FromString, + response_serializer=niswitch__pb2.IsScanningResponse.SerializeToString, + ), + 'WaitForScanComplete': grpc.unary_unary_rpc_method_handler( + servicer.WaitForScanComplete, + request_deserializer=niswitch__pb2.WaitForScanCompleteRequest.FromString, + response_serializer=niswitch__pb2.WaitForScanCompleteResponse.SerializeToString, + ), + 'SendSoftwareTrigger': grpc.unary_unary_rpc_method_handler( + servicer.SendSoftwareTrigger, + request_deserializer=niswitch__pb2.SendSoftwareTriggerRequest.FromString, + response_serializer=niswitch__pb2.SendSoftwareTriggerResponse.SerializeToString, + ), + 'ConfigureScanList': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureScanList, + request_deserializer=niswitch__pb2.ConfigureScanListRequest.FromString, + response_serializer=niswitch__pb2.ConfigureScanListResponse.SerializeToString, + ), + 'ConfigureScanTrigger': grpc.unary_unary_rpc_method_handler( + servicer.ConfigureScanTrigger, + request_deserializer=niswitch__pb2.ConfigureScanTriggerRequest.FromString, + response_serializer=niswitch__pb2.ConfigureScanTriggerResponse.SerializeToString, + ), + 'SetContinuousScan': grpc.unary_unary_rpc_method_handler( + servicer.SetContinuousScan, + request_deserializer=niswitch__pb2.SetContinuousScanRequest.FromString, + response_serializer=niswitch__pb2.SetContinuousScanResponse.SerializeToString, + ), + 'RouteTriggerInput': grpc.unary_unary_rpc_method_handler( + servicer.RouteTriggerInput, + request_deserializer=niswitch__pb2.RouteTriggerInputRequest.FromString, + response_serializer=niswitch__pb2.RouteTriggerInputResponse.SerializeToString, + ), + 'RouteScanAdvancedOutput': grpc.unary_unary_rpc_method_handler( + servicer.RouteScanAdvancedOutput, + request_deserializer=niswitch__pb2.RouteScanAdvancedOutputRequest.FromString, + response_serializer=niswitch__pb2.RouteScanAdvancedOutputResponse.SerializeToString, + ), + 'ErrorQuery': grpc.unary_unary_rpc_method_handler( + servicer.ErrorQuery, + request_deserializer=niswitch__pb2.ErrorQueryRequest.FromString, + response_serializer=niswitch__pb2.ErrorQueryResponse.SerializeToString, + ), + 'GetError': grpc.unary_unary_rpc_method_handler( + servicer.GetError, + request_deserializer=niswitch__pb2.GetErrorRequest.FromString, + response_serializer=niswitch__pb2.GetErrorResponse.SerializeToString, + ), + 'ClearError': grpc.unary_unary_rpc_method_handler( + servicer.ClearError, + request_deserializer=niswitch__pb2.ClearErrorRequest.FromString, + response_serializer=niswitch__pb2.ClearErrorResponse.SerializeToString, + ), + 'ErrorMessage': grpc.unary_unary_rpc_method_handler( + servicer.ErrorMessage, + request_deserializer=niswitch__pb2.ErrorMessageRequest.FromString, + response_serializer=niswitch__pb2.ErrorMessageResponse.SerializeToString, + ), + 'GetChannelName': grpc.unary_unary_rpc_method_handler( + servicer.GetChannelName, + request_deserializer=niswitch__pb2.GetChannelNameRequest.FromString, + response_serializer=niswitch__pb2.GetChannelNameResponse.SerializeToString, + ), + 'GetRelayName': grpc.unary_unary_rpc_method_handler( + servicer.GetRelayName, + request_deserializer=niswitch__pb2.GetRelayNameRequest.FromString, + response_serializer=niswitch__pb2.GetRelayNameResponse.SerializeToString, + ), + 'GetRelayCount': grpc.unary_unary_rpc_method_handler( + servicer.GetRelayCount, + request_deserializer=niswitch__pb2.GetRelayCountRequest.FromString, + response_serializer=niswitch__pb2.GetRelayCountResponse.SerializeToString, + ), + 'GetRelayPosition': grpc.unary_unary_rpc_method_handler( + servicer.GetRelayPosition, + request_deserializer=niswitch__pb2.GetRelayPositionRequest.FromString, + response_serializer=niswitch__pb2.GetRelayPositionResponse.SerializeToString, + ), + 'RelayControl': grpc.unary_unary_rpc_method_handler( + servicer.RelayControl, + request_deserializer=niswitch__pb2.RelayControlRequest.FromString, + response_serializer=niswitch__pb2.RelayControlResponse.SerializeToString, + ), + 'ResetInterchangeCheck': grpc.unary_unary_rpc_method_handler( + servicer.ResetInterchangeCheck, + request_deserializer=niswitch__pb2.ResetInterchangeCheckRequest.FromString, + response_serializer=niswitch__pb2.ResetInterchangeCheckResponse.SerializeToString, + ), + 'ClearInterchangeWarnings': grpc.unary_unary_rpc_method_handler( + servicer.ClearInterchangeWarnings, + request_deserializer=niswitch__pb2.ClearInterchangeWarningsRequest.FromString, + response_serializer=niswitch__pb2.ClearInterchangeWarningsResponse.SerializeToString, + ), + 'Commit': grpc.unary_unary_rpc_method_handler( + servicer.Commit, + request_deserializer=niswitch__pb2.CommitRequest.FromString, + response_serializer=niswitch__pb2.CommitResponse.SerializeToString, + ), + 'ResetWithDefaults': grpc.unary_unary_rpc_method_handler( + servicer.ResetWithDefaults, + request_deserializer=niswitch__pb2.ResetWithDefaultsRequest.FromString, + response_serializer=niswitch__pb2.ResetWithDefaultsResponse.SerializeToString, + ), + 'Disable': grpc.unary_unary_rpc_method_handler( + servicer.Disable, + request_deserializer=niswitch__pb2.DisableRequest.FromString, + response_serializer=niswitch__pb2.DisableResponse.SerializeToString, + ), + 'Reset': grpc.unary_unary_rpc_method_handler( + servicer.Reset, + request_deserializer=niswitch__pb2.ResetRequest.FromString, + response_serializer=niswitch__pb2.ResetResponse.SerializeToString, + ), + 'SelfTest': grpc.unary_unary_rpc_method_handler( + servicer.SelfTest, + request_deserializer=niswitch__pb2.SelfTestRequest.FromString, + response_serializer=niswitch__pb2.SelfTestResponse.SerializeToString, + ), + 'RevisionQuery': grpc.unary_unary_rpc_method_handler( + servicer.RevisionQuery, + request_deserializer=niswitch__pb2.RevisionQueryRequest.FromString, + response_serializer=niswitch__pb2.RevisionQueryResponse.SerializeToString, + ), + 'GetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViInt32, + request_deserializer=niswitch__pb2.GetAttributeViInt32Request.FromString, + response_serializer=niswitch__pb2.GetAttributeViInt32Response.SerializeToString, + ), + 'GetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViReal64, + request_deserializer=niswitch__pb2.GetAttributeViReal64Request.FromString, + response_serializer=niswitch__pb2.GetAttributeViReal64Response.SerializeToString, + ), + 'GetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViString, + request_deserializer=niswitch__pb2.GetAttributeViStringRequest.FromString, + response_serializer=niswitch__pb2.GetAttributeViStringResponse.SerializeToString, + ), + 'GetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViSession, + request_deserializer=niswitch__pb2.GetAttributeViSessionRequest.FromString, + response_serializer=niswitch__pb2.GetAttributeViSessionResponse.SerializeToString, + ), + 'GetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.GetAttributeViBoolean, + request_deserializer=niswitch__pb2.GetAttributeViBooleanRequest.FromString, + response_serializer=niswitch__pb2.GetAttributeViBooleanResponse.SerializeToString, + ), + 'SetAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViInt32, + request_deserializer=niswitch__pb2.SetAttributeViInt32Request.FromString, + response_serializer=niswitch__pb2.SetAttributeViInt32Response.SerializeToString, + ), + 'SetAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViReal64, + request_deserializer=niswitch__pb2.SetAttributeViReal64Request.FromString, + response_serializer=niswitch__pb2.SetAttributeViReal64Response.SerializeToString, + ), + 'SetAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViString, + request_deserializer=niswitch__pb2.SetAttributeViStringRequest.FromString, + response_serializer=niswitch__pb2.SetAttributeViStringResponse.SerializeToString, + ), + 'SetAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViSession, + request_deserializer=niswitch__pb2.SetAttributeViSessionRequest.FromString, + response_serializer=niswitch__pb2.SetAttributeViSessionResponse.SerializeToString, + ), + 'SetAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.SetAttributeViBoolean, + request_deserializer=niswitch__pb2.SetAttributeViBooleanRequest.FromString, + response_serializer=niswitch__pb2.SetAttributeViBooleanResponse.SerializeToString, + ), + 'CheckAttributeViInt32': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViInt32, + request_deserializer=niswitch__pb2.CheckAttributeViInt32Request.FromString, + response_serializer=niswitch__pb2.CheckAttributeViInt32Response.SerializeToString, + ), + 'CheckAttributeViReal64': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViReal64, + request_deserializer=niswitch__pb2.CheckAttributeViReal64Request.FromString, + response_serializer=niswitch__pb2.CheckAttributeViReal64Response.SerializeToString, + ), + 'CheckAttributeViString': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViString, + request_deserializer=niswitch__pb2.CheckAttributeViStringRequest.FromString, + response_serializer=niswitch__pb2.CheckAttributeViStringResponse.SerializeToString, + ), + 'CheckAttributeViSession': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViSession, + request_deserializer=niswitch__pb2.CheckAttributeViSessionRequest.FromString, + response_serializer=niswitch__pb2.CheckAttributeViSessionResponse.SerializeToString, + ), + 'CheckAttributeViBoolean': grpc.unary_unary_rpc_method_handler( + servicer.CheckAttributeViBoolean, + request_deserializer=niswitch__pb2.CheckAttributeViBooleanRequest.FromString, + response_serializer=niswitch__pb2.CheckAttributeViBooleanResponse.SerializeToString, + ), + 'InvalidateAllAttributes': grpc.unary_unary_rpc_method_handler( + servicer.InvalidateAllAttributes, + request_deserializer=niswitch__pb2.InvalidateAllAttributesRequest.FromString, + response_serializer=niswitch__pb2.InvalidateAllAttributesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'niswitch_grpc.NiSwitch', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class NiSwitch(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Init(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Init', + niswitch__pb2.InitRequest.SerializeToString, + niswitch__pb2.InitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithOptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InitWithOptions', + niswitch__pb2.InitWithOptionsRequest.SerializeToString, + niswitch__pb2.InitWithOptionsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitWithTopology(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InitWithTopology', + niswitch__pb2.InitWithTopologyRequest.SerializeToString, + niswitch__pb2.InitWithTopologyResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Close(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Close', + niswitch__pb2.CloseRequest.SerializeToString, + niswitch__pb2.CloseResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Connect(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Connect', + niswitch__pb2.ConnectRequest.SerializeToString, + niswitch__pb2.ConnectResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConnectMultiple(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ConnectMultiple', + niswitch__pb2.ConnectMultipleRequest.SerializeToString, + niswitch__pb2.ConnectMultipleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disconnect(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Disconnect', + niswitch__pb2.DisconnectRequest.SerializeToString, + niswitch__pb2.DisconnectResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisconnectMultiple(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/DisconnectMultiple', + niswitch__pb2.DisconnectMultipleRequest.SerializeToString, + niswitch__pb2.DisconnectMultipleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DisconnectAll(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/DisconnectAll', + niswitch__pb2.DisconnectAllRequest.SerializeToString, + niswitch__pb2.DisconnectAllResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPath(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetPath', + niswitch__pb2.GetPathRequest.SerializeToString, + niswitch__pb2.GetPathResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetPath(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetPath', + niswitch__pb2.SetPathRequest.SerializeToString, + niswitch__pb2.SetPathResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CanConnect(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CanConnect', + niswitch__pb2.CanConnectRequest.SerializeToString, + niswitch__pb2.CanConnectResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsDebounced(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/IsDebounced', + niswitch__pb2.IsDebouncedRequest.SerializeToString, + niswitch__pb2.IsDebouncedResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitForDebounce(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/WaitForDebounce', + niswitch__pb2.WaitForDebounceRequest.SerializeToString, + niswitch__pb2.WaitForDebounceResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Scan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Scan', + niswitch__pb2.ScanRequest.SerializeToString, + niswitch__pb2.ScanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InitiateScan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InitiateScan', + niswitch__pb2.InitiateScanRequest.SerializeToString, + niswitch__pb2.InitiateScanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AbortScan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/AbortScan', + niswitch__pb2.AbortScanRequest.SerializeToString, + niswitch__pb2.AbortScanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def IsScanning(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/IsScanning', + niswitch__pb2.IsScanningRequest.SerializeToString, + niswitch__pb2.IsScanningResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def WaitForScanComplete(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/WaitForScanComplete', + niswitch__pb2.WaitForScanCompleteRequest.SerializeToString, + niswitch__pb2.WaitForScanCompleteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SendSoftwareTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SendSoftwareTrigger', + niswitch__pb2.SendSoftwareTriggerRequest.SerializeToString, + niswitch__pb2.SendSoftwareTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureScanList(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ConfigureScanList', + niswitch__pb2.ConfigureScanListRequest.SerializeToString, + niswitch__pb2.ConfigureScanListResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ConfigureScanTrigger(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ConfigureScanTrigger', + niswitch__pb2.ConfigureScanTriggerRequest.SerializeToString, + niswitch__pb2.ConfigureScanTriggerResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetContinuousScan(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetContinuousScan', + niswitch__pb2.SetContinuousScanRequest.SerializeToString, + niswitch__pb2.SetContinuousScanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RouteTriggerInput(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RouteTriggerInput', + niswitch__pb2.RouteTriggerInputRequest.SerializeToString, + niswitch__pb2.RouteTriggerInputResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RouteScanAdvancedOutput(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RouteScanAdvancedOutput', + niswitch__pb2.RouteScanAdvancedOutputRequest.SerializeToString, + niswitch__pb2.RouteScanAdvancedOutputResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ErrorQuery', + niswitch__pb2.ErrorQueryRequest.SerializeToString, + niswitch__pb2.ErrorQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetError', + niswitch__pb2.GetErrorRequest.SerializeToString, + niswitch__pb2.GetErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearError(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ClearError', + niswitch__pb2.ClearErrorRequest.SerializeToString, + niswitch__pb2.ClearErrorResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ErrorMessage(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ErrorMessage', + niswitch__pb2.ErrorMessageRequest.SerializeToString, + niswitch__pb2.ErrorMessageResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetChannelName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetChannelName', + niswitch__pb2.GetChannelNameRequest.SerializeToString, + niswitch__pb2.GetChannelNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRelayName(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetRelayName', + niswitch__pb2.GetRelayNameRequest.SerializeToString, + niswitch__pb2.GetRelayNameResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRelayCount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetRelayCount', + niswitch__pb2.GetRelayCountRequest.SerializeToString, + niswitch__pb2.GetRelayCountResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetRelayPosition(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetRelayPosition', + niswitch__pb2.GetRelayPositionRequest.SerializeToString, + niswitch__pb2.GetRelayPositionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RelayControl(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RelayControl', + niswitch__pb2.RelayControlRequest.SerializeToString, + niswitch__pb2.RelayControlResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetInterchangeCheck(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ResetInterchangeCheck', + niswitch__pb2.ResetInterchangeCheckRequest.SerializeToString, + niswitch__pb2.ResetInterchangeCheckResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ClearInterchangeWarnings(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ClearInterchangeWarnings', + niswitch__pb2.ClearInterchangeWarningsRequest.SerializeToString, + niswitch__pb2.ClearInterchangeWarningsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Commit(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Commit', + niswitch__pb2.CommitRequest.SerializeToString, + niswitch__pb2.CommitResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ResetWithDefaults(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/ResetWithDefaults', + niswitch__pb2.ResetWithDefaultsRequest.SerializeToString, + niswitch__pb2.ResetWithDefaultsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Disable(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Disable', + niswitch__pb2.DisableRequest.SerializeToString, + niswitch__pb2.DisableResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Reset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/Reset', + niswitch__pb2.ResetRequest.SerializeToString, + niswitch__pb2.ResetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SelfTest(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SelfTest', + niswitch__pb2.SelfTestRequest.SerializeToString, + niswitch__pb2.SelfTestResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def RevisionQuery(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/RevisionQuery', + niswitch__pb2.RevisionQueryRequest.SerializeToString, + niswitch__pb2.RevisionQueryResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViInt32', + niswitch__pb2.GetAttributeViInt32Request.SerializeToString, + niswitch__pb2.GetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViReal64', + niswitch__pb2.GetAttributeViReal64Request.SerializeToString, + niswitch__pb2.GetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViString', + niswitch__pb2.GetAttributeViStringRequest.SerializeToString, + niswitch__pb2.GetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViSession', + niswitch__pb2.GetAttributeViSessionRequest.SerializeToString, + niswitch__pb2.GetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/GetAttributeViBoolean', + niswitch__pb2.GetAttributeViBooleanRequest.SerializeToString, + niswitch__pb2.GetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViInt32', + niswitch__pb2.SetAttributeViInt32Request.SerializeToString, + niswitch__pb2.SetAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViReal64', + niswitch__pb2.SetAttributeViReal64Request.SerializeToString, + niswitch__pb2.SetAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViString', + niswitch__pb2.SetAttributeViStringRequest.SerializeToString, + niswitch__pb2.SetAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViSession', + niswitch__pb2.SetAttributeViSessionRequest.SerializeToString, + niswitch__pb2.SetAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/SetAttributeViBoolean', + niswitch__pb2.SetAttributeViBooleanRequest.SerializeToString, + niswitch__pb2.SetAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViInt32(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViInt32', + niswitch__pb2.CheckAttributeViInt32Request.SerializeToString, + niswitch__pb2.CheckAttributeViInt32Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViReal64(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViReal64', + niswitch__pb2.CheckAttributeViReal64Request.SerializeToString, + niswitch__pb2.CheckAttributeViReal64Response.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViString(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViString', + niswitch__pb2.CheckAttributeViStringRequest.SerializeToString, + niswitch__pb2.CheckAttributeViStringResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViSession(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViSession', + niswitch__pb2.CheckAttributeViSessionRequest.SerializeToString, + niswitch__pb2.CheckAttributeViSessionResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CheckAttributeViBoolean(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/CheckAttributeViBoolean', + niswitch__pb2.CheckAttributeViBooleanRequest.SerializeToString, + niswitch__pb2.CheckAttributeViBooleanResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def InvalidateAllAttributes(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/niswitch_grpc.NiSwitch/InvalidateAllAttributes', + niswitch__pb2.InvalidateAllAttributesRequest.SerializeToString, + niswitch__pb2.InvalidateAllAttributesResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/generated/niswitch/niswitch/session.py b/generated/niswitch/niswitch/session.py new file mode 100644 index 0000000000..c7ab4eb439 --- /dev/null +++ b/generated/niswitch/niswitch/session.py @@ -0,0 +1,2262 @@ +# -*- coding: utf-8 -*- +# This file was generated +import array # noqa: F401 +# Used by @ivi_synchronized +from functools import wraps + +import niswitch._attributes as _attributes +import niswitch._converters as _converters +import niswitch._library_interpreter as _library_interpreter +import niswitch.enums as enums +import niswitch.errors as errors + +import hightime + +# Used for __repr__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class _Scan(object): + def __init__(self, session): + self._session = session + self._session._initiate_scan() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.abort() + + +# From https://stackoverflow.com/questions/5929107/decorators-with-parameters +def ivi_synchronized(f): + @wraps(f) + def aux(*xs, **kws): + session = xs[0] # parameter 0 is 'self' which is the session object + with session.lock(): + return f(*xs, **kws) + return aux + + +class _Lock(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + # _lock_session is called from the lock() function, not here + return self + + def __exit__(self, exc_type, exc_value, traceback): + self._session.unlock() + + +class _RepeatedCapabilities(object): + def __init__(self, session, prefix, current_repeated_capability_list): + self._session = session + self._prefix = prefix + # We need at least one element. If we get an empty list, make the one element an empty string + self._current_repeated_capability_list = current_repeated_capability_list if len(current_repeated_capability_list) > 0 else [''] + # Now we know there is at lease one entry, so we look if it is an empty string or not + self._separator = '/' if len(self._current_repeated_capability_list[0]) > 0 else '' + + def __getitem__(self, repeated_capability): + '''Set/get properties or call methods with a repeated capability (i.e. channels)''' + rep_caps_list = _converters.convert_repeated_capabilities(repeated_capability, self._prefix) + complete_rep_cap_list = [current_rep_cap + self._separator + rep_cap for current_rep_cap in self._current_repeated_capability_list for rep_cap in rep_caps_list] + + return _SessionBase( + repeated_capability_list=complete_rep_cap_list, + all_channels_in_session=self._session._all_channels_in_session, + interpreter=self._session._interpreter, + freeze_it=True + ) + + +# This is a very simple context manager we can use when we need to set/get attributes +# or call functions from _SessionBase that require no channels. It is tied to the specific +# implementation of _SessionBase and how repeated capabilities are handled. +class _NoChannel(object): + def __init__(self, session): + self._session = session + + def __enter__(self): + self._repeated_capability_cache = self._session._repeated_capability + self._session._repeated_capability = '' + + def __exit__(self, exc_type, exc_value, traceback): + self._session._repeated_capability = self._repeated_capability_cache + + +class _SessionBase(object): + '''Base class for all NI-SWITCH sessions.''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + analog_bus_sharing_enable = _attributes.AttributeViBoolean(1150018) + '''Type: bool + + Enables or disables sharing of an analog bus line so that multiple NI SwitchBlock devices may connect to it simultaneously. To enable multiple NI SwitchBlock devices to share an analog bus line, set this property to True for each device on the channel that corresponds with the shared analog bus line. The default value for all devices is False, which disables sharing of the analog bus. + Refer to the Using the Analog Bus on an NI SwitchBlock Carrier topic in the NI Switches Help for more information about sharing the analog bus. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].analog_bus_sharing_enable` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.analog_bus_sharing_enable` + ''' + bandwidth = _attributes.AttributeViReal64(1250005) + '''Type: float + + This channel-based property returns the bandwidth for the channel. + The units are hertz. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].bandwidth` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.bandwidth` + ''' + channel_count = _attributes.AttributeViInt32(1050203) + '''Type: int + + Indicates the number of channels that the specific instrument driver supports. + ''' + characteristic_impedance = _attributes.AttributeViReal64(1250016) + '''Type: float + + This channel-based property returns the characteristic impedance for the channel. + The units are ohms. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].characteristic_impedance` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.characteristic_impedance` + ''' + continuous_scan = _attributes.AttributeViBoolean(1250026) + '''Type: bool + + When a switch device is scanning, the swich can either stop scanning when the end of the scan (False) or continue scanning from the top of the scan list again (True). + Notice that if you set the scan to continuous (True), the Wait For Scan Complete operation will always time out and you must call Abort to stop the scan. + ''' + digital_filter_enable = _attributes.AttributeViBoolean(1150016) + '''Type: bool + + This property specifies whether to apply the pulse width filter to the Trigger Input. Enabling the Digital Filter (True) prevents the switch module from being triggered by pulses that are less than 150 ns on PXI trigger lines 0–7. + When Digital Filter is disabled (False), it is possible for the switch module to be triggered by noise on the PXI trigger lines. If the device triggering the switch is capable of sending pulses greater than 150 ns, you should not disable the Digital Filter. + ''' + driver_setup = _attributes.AttributeViString(1050007) + '''Type: str + + This property indicates the Driver Setup string that the user specified when initializing the driver. + Some cases exist where the end-user must specify instrument driver options at initialization time. An example of this is specifying a particular instrument model from among a family of instruments that the driver supports. This is useful when using simulation. The end-user can specify driver-specific options through the DriverSetup keyword in the optionsString parameter to the InitWithOptions method, or through the IVI Configuration Utility. + If the user does not specify a Driver Setup string, this property returns an empty string. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + handshaking_initiation = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.HandshakingInitiation, 1150013) + instrument_firmware_revision = _attributes.AttributeViString(1050510) + '''Type: str + + A string that contains the firmware revision information for the instrument you are currently using. + ''' + instrument_manufacturer = _attributes.AttributeViString(1050511) + '''Type: str + + A string that contains the name of the instrument manufacturer you are currently using. + ''' + instrument_model = _attributes.AttributeViString(1050512) + '''Type: str + + A string that contains the model number or name of the instrument that you are currently using. + ''' + io_resource_descriptor = _attributes.AttributeViString(1050304) + '''Type: str + + Indicates the resource descriptor the driver uses to identify the physical device. + If you initialize the driver with a logical name, this property contains the resource descriptor that corresponds to the entry in the IVI Configuration utility. + If you initialize the instrument driver with the resource descriptor, this property contains that value. + ''' + is_configuration_channel = _attributes.AttributeViBoolean(1250003) + '''Type: bool + + This channel-based property specifies whether to reserve the channel for internal path creation. A channel that is available for internal path creation is called a configuration channel. The driver may use configuration channels to create paths between two channels you specify in the connect method. Configuration channels are not available for external connections. + Set this property to True to mark the channel as a configuration channel. Set this property to False to mark the channel as available for external connections. + After you identify a channel as a configuration channel, you cannot use that channel for external connections. The connect method returns the NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL error when you attempt to establish a connection between a configuration channel and any other channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].is_configuration_channel` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.is_configuration_channel` + ''' + is_debounced = _attributes.AttributeViBoolean(1250002) + '''Type: bool + + This property indicates whether the entire switch device has settled since the last switching command. A value of True indicates that all signals going through the switch device are valid. + ''' + is_scanning = _attributes.AttributeViBoolean(1250024) + '''Type: bool + + If True, the switch module is currently scanning through the scan list (i.e. it is not in the Idle state). If False, the switch module is not currently scanning through the scan list (i.e. it is in the Idle state). + ''' + is_source_channel = _attributes.AttributeViBoolean(1250001) + '''Type: bool + + This channel-based property specifies whether you want to identify the channel as a source channel. Typically, you set this property to True when you attach the channel to a power supply, a method generator, or an active measurement point on the unit under test, and you do not want to connect the channel to another source. The driver prevents source channels from connecting to each other. The connect method returns the NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES when you attempt to connect two channels that you identify as source channels. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].is_source_channel` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.is_source_channel` + ''' + is_waiting_for_trig = _attributes.AttributeViBoolean(1150004) + '''Type: bool + + In a scan list, a semi-colon (;) is used to indicate that at that point in the scan list, the scan engine should pause until a trigger is received from the trigger input. If that trigger is user generated through either a hardware pulse or the Send SW Trigger operation, it is necessary for the user to know when the scan engine has reached such a state. + ''' + logical_name = _attributes.AttributeViString(1050305) + '''Type: str + + A string containing the logical name you specified when opening the current IVI session. + You may pass a logical name to the init or InitWithOptions methods. The IVI Configuration utility must contain an entry for the logical name. The logical name entry refers to a virtual instrument section in the IVI Configuration file. The virtual instrument section specifies a physical device and initial user options. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + max_ac_voltage = _attributes.AttributeViReal64(1250007) + '''Type: float + + This channel-based property returns the maximum AC voltage the channel can switch. + The units are volts RMS. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_ac_voltage` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_ac_voltage` + ''' + max_carry_ac_current = _attributes.AttributeViReal64(1250011) + '''Type: float + + This channel-based property returns the maximum AC current the channel can carry. + The units are amperes RMS. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_ac_current` + ''' + max_carry_ac_power = _attributes.AttributeViReal64(1250015) + '''Type: float + + This channel-based property returns the maximum AC power the channel can carry. + The units are volt-amperes. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_ac_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_ac_power` + ''' + max_carry_dc_current = _attributes.AttributeViReal64(1250010) + '''Type: float + + This channel-based property returns the maximum DC current the channel can carry. + The units are amperes. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_dc_current` + ''' + max_carry_dc_power = _attributes.AttributeViReal64(1250014) + '''Type: float + + This channel-based property returns the maximum DC power the channel can carry. + The units are watts. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_carry_dc_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_carry_dc_power` + ''' + max_dc_voltage = _attributes.AttributeViReal64(1250006) + '''Type: float + + This channel-based property returns the maximum DC voltage the channel can switch. + The units are volts. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_dc_voltage` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_dc_voltage` + ''' + max_switching_ac_current = _attributes.AttributeViReal64(1250009) + '''Type: float + + This channel-based property returns the maximum AC current the channel can switch. + The units are amperes RMS. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_ac_current` + ''' + max_switching_ac_power = _attributes.AttributeViReal64(1250013) + '''Type: float + + This channel-based property returns the maximum AC power the channel can switch. + The units are volt-amperes. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_ac_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_ac_power` + ''' + max_switching_dc_current = _attributes.AttributeViReal64(1250008) + '''Type: float + + This channel-based property returns the maximum DC current the channel can switch. + The units are amperes. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_current` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_dc_current` + ''' + max_switching_dc_power = _attributes.AttributeViReal64(1250012) + '''Type: float + + This channel-based property returns the maximum DC power the channel can switch. + The units are watts. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].max_switching_dc_power` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.max_switching_dc_power` + ''' + number_of_relays = _attributes.AttributeViInt32(1150014) + '''Type: int + + This property returns the number of relays. + ''' + num_of_columns = _attributes.AttributeViInt32(1250019) + '''Type: int + + This property returns the number of channels on the column of a matrix or scanner. If the switch device is a scanner, this value is the number of input channels. + The wire_mode property affects the number of available columns. For example, if your device has 8 input lines and you use the four-wire mode, then the number of columns you have available is 2. + ''' + num_of_rows = _attributes.AttributeViInt32(1250018) + '''Type: int + + This property returns the number of channels on the row of a matrix or scanner. If the switch device is a scanner, this value is the number of output channels. + The wire_mode property affects the number of available rows. For example, if your device has 8 input lines and you use the two-wire mode, then the number of columns you have available is 4. + ''' + power_down_latching_relays_after_debounce = _attributes.AttributeViBoolean(1150017) + '''Type: bool + + This property specifies whether to power down latching relays after calling Wait For Debounce. + When Power Down Latching Relays After Debounce is enabled (True), a call to Wait For Debounce ensures that the relays are settled and the latching relays are powered down. + ''' + scan_advanced_output = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScanAdvancedOutput, 1250023) + '''Type: enums.ScanAdvancedOutput + + This property specifies the method you want to use to notify another instrument that all signals going through the switch device have settled following the processing of one entry in the scan list. + ''' + scan_advanced_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScanAdvancedPolarity, 1150011) + scan_delay = _attributes.AttributeViReal64TimeDeltaSeconds(1250025) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + This property specifies the minimum amount of time the switch device waits before it asserts the scan advanced output trigger after opening or closing the switch. The switch device always waits for debounce before asserting the trigger. The units are seconds. + the greater value of the settling time and the value you specify as the scan delay. + + Note: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be + ''' + scan_list = _attributes.AttributeViString(1250020) + '''Type: str + + This property contains a scan list, which is a string that specifies channel connections and trigger conditions. The initiate method makes or breaks connections and waits for triggers according to the instructions in the scan list. + The scan list is comprised of channel names that you separate with special characters. These special characters determine the operations the scanner performs on the channels when it executes this scan list. + To create a path between two channels, use the following character between the two channel names: + -> (a dash followed by a '>' sign) + Example: 'CH1->CH2' tells the switch to make a path from channel CH1 to channel CH2. + To break or clear a path, use the following character as a prefix before the path: + ~ (tilde) + Example: '~CH1->CH2' tells the switch to break the path from channel CH1 to channel CH2. + To tell the switch device to wait for a trigger event, use the following character as a separator between paths: + ; (semi-colon) + Example: 'CH1->CH2;CH3->CH4' tells the switch to make the path from channel CH1 to channel CH2, wait for a trigger, and then make the path from CH3 to CH4. + ''' + scan_mode = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.ScanMode, 1250021) + '''Type: enums.ScanMode + + This property specifies what happens to existing connections that conflict with the connections you make in a scan list. For example, if CH1 is already connected to CH2 and the scan list instructs the switch device to connect CH1 to CH3, this property specifies what happens to the connection between CH1 and CH2. + If the value of this property is ScanMode.NONE, the switch device takes no action on existing paths. If the value is ScanMode.BREAK_BEFORE_MAKE, the switch device breaks conflicting paths before making new ones. If the value is ScanMode.BREAK_AFTER_MAKE, the switch device breaks conflicting paths after making new ones. + Most switch devices support only one of the possible values. In such cases, this property serves as an indicator of the device's behavior. + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + ''' + serial_number = _attributes.AttributeViString(1150015) + '''Type: str + + This read-only property returns the serial number for the switch device controlled by this instrument driver. If the device does not return a serial number, the driver returns the IVI_ERROR_ATTRIBUTE_NOT_SUPPORTED error. + ''' + settling_time = _attributes.AttributeViReal64TimeDeltaSeconds(1250004) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + This channel-based property returns the maximum length of time from after you make a connection until the signal flowing through the channel settles. The units are seconds. + the greater value of the settling time and the value you specify as the scan delay. + + Note: NI PXI-2501/2503/2565/2590/2591 Users--the actual delay will always be + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].settling_time` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.settling_time` + ''' + simulate = _attributes.AttributeViBoolean(1050005) + '''Type: bool + + Specifies whether or not to simulate instrument driver I/O operations. If simulation is enabled, instrument driver methods perform range checking and call Ivi_GetAttribute and Ivi_SetAttribute methods, but they do not perform instrument I/O. For output parameters that represent instrument data, the instrument driver methods return calculated values. + The default value is False. Use the InitWithOptions method to override this value. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + specific_driver_description = _attributes.AttributeViString(1050514) + '''Type: str + + A string that contains a brief description of the specific driver. + ''' + specific_driver_revision = _attributes.AttributeViString(1050551) + '''Type: str + + A string that contains additional version information about this instrument driver. + ''' + specific_driver_vendor = _attributes.AttributeViString(1050513) + '''Type: str + + A string that contains the name of the vendor that supplies this driver. + ''' + supported_instrument_models = _attributes.AttributeViString(1050327) + '''Type: str + + Contains a comma-separated list of supported instrument models. + ''' + temperature = _attributes.AttributeViReal64(1150019) + '''Type: float + + This property returns the temperature as read by the Switch module. The units are degrees Celsius. + ''' + trigger_input = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerInput, 1250022) + '''Type: enums.TriggerInput + + This property specifies the source of the trigger for which the switch device can wait when processing a scan list. The switch device waits for a trigger when it encounters a semi-colon in a scan list. When the trigger occurs, the switch device advances to the next entry in the scan list. + ''' + trigger_input_polarity = _attributes.AttributeEnum(_attributes.AttributeViInt32, enums.TriggerInputPolarity, 1150010) + '''Type: enums.TriggerInputPolarity + + Determines the behavior of the trigger Input. + ''' + wire_mode = _attributes.AttributeViInt32(1250017) + '''Type: int + + This property returns the wire mode of the switch device. + This property affects the values of the num_of_rows and num_of_columns properties. The actual number of input and output lines on the switch device is fixed, but the number of channels depends on how many lines constitute each channel. + + Tip: + This property can be set/get on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset. + + Example: :py:attr:`my_session.channels[ ... ].wire_mode` + + To set/get on all channels, you can call the property directly on the :py:class:`niswitch.Session`. + + Example: :py:attr:`my_session.wire_mode` + ''' + + def __init__(self, repeated_capability_list, all_channels_in_session, interpreter, freeze_it=False): + self._repeated_capability_list = repeated_capability_list + self._repeated_capability = ','.join(repeated_capability_list) + self._all_channels_in_session = all_channels_in_session + self._interpreter = interpreter + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("repeated_capability_list=" + pp.pformat(repeated_capability_list)) + param_list.append("interpreter=" + pp.pformat(interpreter)) + self._param_list = ', '.join(param_list) + + # Instantiate any repeated capability objects + self.channels = _RepeatedCapabilities(self, '', repeated_capability_list) + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = freeze_it + + def __repr__(self): + return '{0}.{1}({2})'.format('niswitch', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + ''' These are code-generated ''' + + @ivi_synchronized + def _get_attribute_vi_boolean(self, attribute_id): + r'''_get_attribute_vi_boolean + + This method queries the value of a ViBoolean property. You can use + this method to get the values of instrument specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: - + State caching is disabled for the entire session or for the particular + property. - State caching is enabled and the currently cached value is + invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . A ring control at the top of the + dialog box allows you to see all IVI properties or only the properties + of the ViInt32 type. If you choose to see all IVI properties, the data + types appear to the right of the property names in the list box. The + data types that are not consistent with this method are dim. If you + select a property data type that is dim, LabWindows/CVI transfers you + to the method panel for the corresponding method that is consistent + with the data type. - If you want to enter a variable name, press to + change this ring control to a manual input box. - If the property in + this ring control has constants as valid values, you can view the + constants by moving to the Property Value control and pressing . + + + Returns: + attribute_value (bool): Returns the current value of the property. Pass the address of a + ViBoolean variable. From the method panel window, you can use this + control as follows. - If the property currently showing in the + Property ID ring control has constants as valid values, you can view a + list of the constants by pressing on this control. Select a value by + double-clicking on it or by selecting it and then pressing . + + ''' + attribute_value = self._interpreter.get_attribute_vi_boolean(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_int32(self, attribute_id): + r'''_get_attribute_vi_int32 + + This method queries the value of a ViInt32 property. You can use this + method to get the values of instrument specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: - + State caching is disabled for the entire session or for the particular + property. - State caching is enabled and the currently cached value is + invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . A ring control at the top of the + dialog box allows you to see all IVI properties or only the properties + of the ViInt32 type. If you choose to see all IVI properties, the data + types appear to the right of the property names in the list box. The + data types that are not consistent with this method are dim. If you + select a property data type that is dim, LabWindows/CVI transfers you + to the method panel for the corresponding method that is consistent + with the data type. - If you want to enter a variable name, press to + change this ring control to a manual input box. - If the property in + this ring control has constants as valid values, you can view the + constants by moving to the Property Value control and pressing . + + + Returns: + attribute_value (int): Returns the current value of the property. Pass the address of a + ViInt32 variable. From the method panel window, you can use this + control as follows. - If the property currently showing in the + Property ID ring control has constants as valid values, you can view a + list of the constants by pressing on this control. Select a value by + double-clicking on it or by selecting it and then pressing . + + ''' + attribute_value = self._interpreter.get_attribute_vi_int32(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + This method queries the value of a ViReal64 property. You can use + this method to get the values of instrument specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: - + State caching is disabled for the entire session or for the particular + property. - State caching is enabled and the currently cached value is + invalid. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . A ring control at the top of the + dialog box allows you to see all IVI properties or only the properties + of the ViInt32 type. If you choose to see all IVI properties, the data + types appear to the right of the property names in the list box. The + data types that are not consistent with this method are dim. If you + select a property data type that is dim, LabWindows/CVI transfers you + to the method panel for the corresponding method that is consistent + with the data type. - If you want to enter a variable name, press to + change this ring control to a manual input box. - If the property in + this ring control has constants as valid values, you can view the + constants by moving to the Property Value control and pressing . + + + Returns: + attribute_value (float): Returns the current value of the property. Pass the address of a + ViReal64 variable. From the method panel window, you can use this + control as follows. - If the property currently showing in the + Property ID ring control has constants as valid values, you can view a + list of the constants by pressing on this control. Select a value by + double-clicking on it or by selecting it and then pressing . + + ''' + attribute_value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return attribute_value + + @ivi_synchronized + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + This method queries the value of a ViString property. You can use + this method to get the values of instrument specific properties and + inherent IVI properties. If the property represents an instrument + state, this method performs instrument I/O in the following cases: - + State caching is disabled for the entire session or for the particular + property. - State caching is enabled and the currently cached value is + invalid. You must provide a ViChar array to serve as a buffer for the + value. You pass the number of bytes in the buffer as the Array Size + parameter. If the current value of the property, including the + terminating NULL byte, is larger than the size you indicate in the Array + Size parameter, the method copies Array Size-1 bytes into the buffer, + places an ASCII NULL byte at the end of the buffer, and returns the + array size you must pass to get the entire value. For example, if the + value is "123456" and the Array Size is 4, the method places "123" + into the buffer and returns 7. If you want to call this method just to + get the required array size, you can pass 0 for the Array Size and + VI_NULL for the Property Value buffer. If you want the method to + fill in the buffer regardless of the number of bytes in the value, pass + a negative number for the Array Size parameter. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . A ring control at the top of the + dialog box allows you to see all IVI properties or only the properties + of the ViInt32 type. If you choose to see all IVI properties, the data + types appear to the right of the property names in the list box. The + data types that are not consistent with this method are dim. If you + select a property data type that is dim, LabWindows/CVI transfers you + to the method panel for the corresponding method that is consistent + with the data type. - If you want to enter a variable name, press to + change this ring control to a manual input box. - If the property in + this ring control has constants as valid values, you can view the + constants by moving to the Property Value control and pressing . + + + Returns: + attribute_value (str): The buffer in which the method returns the current value of the + property. The buffer must be of type ViChar and have at least as many + bytes as indicated in the Array Size parameter. If the current value of + the property, including the terminating NUL byte, contains more bytes + that you indicate in this parameter, the method copies Array Size-1 + bytes into the buffer, places an ASCII NUL byte at the end of the + buffer, and returns the array size you must pass to get the entire + value. For example, if the value is "123456" and the Array Size is 4, + the method places "123" into the buffer and returns 7. If you specify + 0 for the Array Size parameter, you can pass VI_NULL for this + parameter. From the method panel window, you can use this control as + follows. - If the property currently showing in the Property ID ring + control has constants as valid values, you can view a list of the + constants by pressing on this control. Select a value by double-clicking + on it or by selecting it and then pressing . + + ''' + attribute_value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return attribute_value + + def lock(self): + '''lock + + Obtains a multithread lock on the device session. Before doing so, the + software waits until all other execution threads release their locks + on the device session. + + Other threads may have obtained a lock on this session for the + following reasons: + + - The application called the lock method. + - A call to NI-SWITCH locked the session. + - After a call to the lock method returns + successfully, no other threads can access the device session until + you call the unlock method or exit out of the with block when using + lock context manager. + - Use the lock method and the + unlock method around a sequence of calls to + instrument driver methods if you require that the device retain its + settings through the end of the sequence. + + You can safely make nested calls to the lock method + within the same thread. To completely unlock the session, you must + balance each call to the lock method with a call to + the unlock method. + + Returns: + lock (context manager): When used in a with statement, niswitch.Session.lock acts as + a context manager and unlock will be called when the with block is exited + ''' + self._interpreter.lock() # We do not call this in the context manager so that this function can + # act standalone as well and let the client call unlock() explicitly. If they do use the context manager, + # that will handle the unlock for them + return _Lock(self) + + @ivi_synchronized + def _set_attribute_vi_boolean(self, attribute_id, attribute_value): + r'''_set_attribute_vi_boolean + + This method sets the value of a ViBoolean property. This is a + low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: - State caching is disabled for + the entire session or for the particular property. - State caching is + enabled and the currently cached value is invalid or is different than + the value you specify. This instrument driver contains high-level + methods that set most of the instrument properties. It is best to use + the high-level driver methods as much as possible. They handle order + dependencies and multithread locking for you. In addition, they perform + status checking only after setting all of the properties. In contrast, + when you set multiple properties using the SetAttribute methods, the + methods check the instrument status after each call. Also, when state + caching is enabled, the high-level methods that configure multiple + properties perform instrument I/O only for the properties whose value + you change. Thus, you can safely call the high-level methods without + the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_boolean` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_boolean` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . Read-only properties appear dim + in the list box. If you select a read-only property, an error message + appears. A ring control at the top of the dialog box allows you to see + all IVI properties or only the properties of the ViInt32 type. If you + choose to see all IVI properties, the data types appear to the right of + the property names in the list box. The data types that are not + consistent with this method are dim. If you select a property data + type that is dim, LabWindows/CVI transfers you to the method panel for + the corresponding method that is consistent with the data type. - If + you want to enter a variable name, press to change this ring control to + a manual input box. - If the property in this ring control has + constants as valid values, you can view the constants by moving to the + Property Value control and pressing . + + attribute_value (bool): Pass the value to which you want to set the property. From the method + panel window, you can use this control as follows. - If the property + currently showing in the Property ID ring control has constants as + valid values, you can view a list of the constants by pressing on this + control. Select a value by double-clicking on it or by selecting it and + then pressing . Note: Some of the values might not be valid depending on + the current settings of the instrument session. Default Value: none + + ''' + self._interpreter.set_attribute_vi_boolean(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_int32(self, attribute_id, attribute_value): + r'''_set_attribute_vi_int32 + + This method sets the value of a ViInt32 property. This is a low-level + method that you can use to set the values of instrument-specific + properties and inherent IVI properties. If the property represents an + instrument state, this method performs instrument I/O in the following + cases: - State caching is disabled for the entire session or for the + particular property. - State caching is enabled and the currently + cached value is invalid or is different than the value you specify. This + instrument driver contains high-level methods that set most of the + instrument properties. It is best to use the high-level driver methods + as much as possible. They handle order dependencies and multithread + locking for you. In addition, they perform status checking only after + setting all of the properties. In contrast, when you set multiple + properties using the SetAttribute methods, the methods check the + instrument status after each call. Also, when state caching is enabled, + the high-level methods that configure multiple properties perform + instrument I/O only for the properties whose value you change. Thus, you + can safely call the high-level methods without the penalty of + redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_int32` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_int32` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . Read-only properties appear dim + in the list box. If you select a read-only property, an error message + appears. A ring control at the top of the dialog box allows you to see + all IVI properties or only the properties of the ViInt32 type. If you + choose to see all IVI properties, the data types appear to the right of + the property names in the list box. The data types that are not + consistent with this method are dim. If you select a property data + type that is dim, LabWindows/CVI transfers you to the method panel for + the corresponding method that is consistent with the data type. - If + you want to enter a variable name, press to change this ring control to + a manual input box. - If the property in this ring control has + constants as valid values, you can view the constants by moving to the + Property Value control and pressing . + + attribute_value (int): Pass the value to which you want to set the property. From the method + panel window, you can use this control as follows. - If the property + currently showing in the Property ID ring control has constants as + valid values, you can view a list of the constants by pressing on this + control. Select a value by double-clicking on it or by selecting it and + then pressing . Note: Some of the values might not be valid depending on + the current settings of the instrument session. Default Value: none + + ''' + self._interpreter.set_attribute_vi_int32(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_real64(self, attribute_id, attribute_value): + r'''_set_attribute_vi_real64 + + This method sets the value of a ViReal64 property. This is a + low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: - State caching is disabled for + the entire session or for the particular property. - State caching is + enabled and the currently cached value is invalid or is different than + the value you specify. This instrument driver contains high-level + methods that set most of the instrument properties. It is best to use + the high-level driver methods as much as possible. They handle order + dependencies and multithread locking for you. In addition, they perform + status checking only after setting all of the properties. In contrast, + when you set multiple properties using the SetAttribute methods, the + methods check the instrument status after each call. Also, when state + caching is enabled, the high-level methods that configure multiple + properties perform instrument I/O only for the properties whose value + you change. Thus, you can safely call the high-level methods without + the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . Read-only properties appear dim + in the list box. If you select a read-only property, an error message + appears. A ring control at the top of the dialog box allows you to see + all IVI properties or only the properties of the ViInt32 type. If you + choose to see all IVI properties, the data types appear to the right of + the property names in the list box. The data types that are not + consistent with this method are dim. If you select a property data + type that is dim, LabWindows/CVI transfers you to the method panel for + the corresponding method that is consistent with the data type. - If + you want to enter a variable name, press to change this ring control to + a manual input box. - If the property in this ring control has + constants as valid values, you can view the constants by moving to the + Property Value control and pressing . + + attribute_value (float): Pass the value to which you want to set the property. From the method + panel window, you can use this control as follows. - If the property + currently showing in the Property ID ring control has constants as + valid values, you can view a list of the constants by pressing on this + control. Select a value by double-clicking on it or by selecting it and + then pressing . Note: Some of the values might not be valid depending on + the current settings of the instrument session. Default Value: none + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, attribute_value) + + @ivi_synchronized + def _set_attribute_vi_string(self, attribute_id, attribute_value): + r'''_set_attribute_vi_string + + This method sets the value of a ViString property. This is a + low-level method that you can use to set the values of + instrument-specific properties and inherent IVI properties. If the + property represents an instrument state, this method performs + instrument I/O in the following cases: - State caching is disabled for + the entire session or for the particular property. - State caching is + enabled and the currently cached value is invalid or is different than + the value you specify. This instrument driver contains high-level + methods that set most of the instrument properties. It is best to use + the high-level driver methods as much as possible. They handle order + dependencies and multithread locking for you. In addition, they perform + status checking only after setting all of the properties. In contrast, + when you set multiple properties using the SetAttribute methods, the + methods check the instrument status after each call. Also, when state + caching is enabled, the high-level methods that configure multiple + properties perform instrument I/O only for the properties whose value + you change. Thus, you can safely call the high-level methods without + the penalty of redundant instrument I/O. + + Tip: + This method can be called on specific channels within your :py:class:`niswitch.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`niswitch.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of a property. From the method panel window, you can use + this control as follows. - Click on the control or press , , or , to + display a dialog box containing a hierarchical list of the available + properties. Properties whose value cannot be set are dim. Help text is + shown for each property. Select a property by double-clicking on it + or by selecting it and then pressing . Read-only properties appear dim + in the list box. If you select a read-only property, an error message + appears. A ring control at the top of the dialog box allows you to see + all IVI properties or only the properties of the ViInt32 type. If you + choose to see all IVI properties, the data types appear to the right of + the property names in the list box. The data types that are not + consistent with this method are dim. If you select a property data + type that is dim, LabWindows/CVI transfers you to the method panel for + the corresponding method that is consistent with the data type. - If + you want to enter a variable name, press to change this ring control to + a manual input box. - If the property in this ring control has + constants as valid values, you can view the constants by moving to the + Property Value control and pressing . + + attribute_value (str): Pass the value to which you want to set the property. From the method + panel window, you can use this control as follows. - If the property + currently showing in the Property ID ring control has constants as + valid values, you can view a list of the constants by pressing on this + control. Select a value by double-clicking on it or by selecting it and + then pressing . Note: Some of the values might not be valid depending on + the current settings of the instrument session. Default Value: none + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, attribute_value) + + def unlock(self): + '''unlock + + Releases a lock that you acquired on an device session using + lock. Refer to lock for additional + information on session locks. + ''' + self._interpreter.unlock() + + def _error_message(self, error_code): + r'''_error_message + + Converts an error code returned by NI-SWITCH into a user-readable + string. Generally this information is supplied in error out of any + NI-SWITCH VI. Use _error_message for a static lookup of an + error code description. + + Args: + error_code (int): Status code returned by any NI-SWITCH method. Default Value: 0 + (VI_SUCCESS) + + + Returns: + error_message (str): The error information formatted into a string. You must pass a ViChar + array with at least 256 bytes. + + ''' + error_message = self._interpreter.error_message(error_code) + return error_message + + +class Session(_SessionBase): + '''An NI-SWITCH session to an NI switch module.''' + + def __init__(self, resource_name, topology="Configured Topology", simulate=False, reset_device=False, *, grpc_options=None): + r'''An NI-SWITCH session to an NI switch module. + + Returns a session handle used to identify the switch in all subsequent + instrument driver calls and sets the topology of the switch. + __init__ creates a new IVI instrument driver session + for the switch specified in the resourceName parameter. The driver uses + the topology specified in the topology parameter and overrides the + topology specified in MAX. Note: When initializing an NI SwitchBlock + device with topology, you must specify the topology created when you + configured the device in MAX, using either + "Configured Topology" or the topology string of the + device. Refer to the Initializing with Topology for NI SwitchBlock + Devices topic in the NI Switches Help for information about determining + the topology string of an NI SwitchBlock device. By default, the switch + is reset to a known state. Enable simulation by specifying the topology + and setting the simulate parameter to True. + + Args: + resource_name (str): Resource name of the switch module to initialize. Default value: None + Syntax: Optional fields are shown in square brackets ([]). Configured in + MAX Under Valid Syntax Devices and Interfaces DeviceName Traditional + NI-DAQ Devices SCXI[chassis ID]::slot number PXI System PXI[bus + number]::device number TIP: IVI logical names are also valid for the + resource name. Default values for optional fields: chassis ID = 1 bus + number = 0 Example resource names: Resource Name Description SC1Mod3 + NI-DAQmx module in chassis "SC1" slot 3 MySwitch NI-DAQmx module renamed + to "MySwitch" SCXI1::3 Traditional NI-DAQ module in chassis 1, slot 3 + SCXI::3 Traditional NI-DAQ module in chassis 1, slot 3 PXI0::16 PXI bus + 0, device number 16 PXI::16 PXI bus 0, device number 16 + + topology (str): Pass the topology name you want to use for the switch you specify with + Resource Name parameter. You can also pass + "Configured Topology" to use the last topology that + was configured for the device in MAX. + Default Value: + "Configured Topology" + Valid Values: + "Configured Topology" + "2501/1-Wire 48x1 Mux" + "2501/1-Wire 48x1 Amplified Mux" + "2501/2-Wire 24x1 Mux" + "2501/2-Wire 24x1 Amplified Mux" + "2501/2-Wire Dual 12x1 Mux" + "2501/2-Wire Quad 6x1 Mux" + "2501/2-Wire 4x6 Matrix" + "2501/4-Wire 12x1 Mux" + "2503/1-Wire 48x1 Mux" + "2503/2-Wire 24x1 Mux" + "2503/2-Wire Dual 12x1 Mux" + "2503/2-Wire Quad 6x1 Mux" + "2503/2-Wire 4x6 Matrix" + "2503/4-Wire 12x1 Mux" + "2510/Independent" + "2512/Independent" + "2514/Independent" + "2515/Independent" + "2520/80-SPST" + "2521/40-DPST" + "2522/53-SPDT" + "2523/26-DPDT" + "2524/1-Wire 128x1 Mux" + "2524/1-Wire Dual 64x1 Mux" + "2524/1-Wire Quad 32x1 Mux" + "2524/1-Wire Octal 16x1 Mux" + "2524/1-Wire Sixteen 8x1 Mux" + "2525/2-Wire 64x1 Mux" + "2525/2-Wire Dual 32x1 Mux" + "2525/2-Wire Quad 16x1 Mux" + "2525/2-Wire Octal 8x1 Mux" + "2525/2-Wire Sixteen 4x1 Mux" + "2526/1-Wire 158x1 Mux" + "2526/2-Wire 79x1 Mux" + "2527/1-Wire 64x1 Mux" + "2527/1-Wire Dual 32x1 Mux" + "2527/2-Wire 32x1 Mux" + "2527/2-Wire Dual 16x1 Mux" + "2527/4-Wire 16x1 Mux" + "2527/Independent" + "2529/2-Wire Dual 4x16 Matrix" + "2529/2-Wire 8x16 Matrix" + "2529/2-Wire 4x32 Matrix" + "2530/1-Wire 128x1 Mux" + "2530/1-Wire Dual 64x1 Mux" + "2530/1-Wire 4x32 Matrix" + "2530/1-Wire 8x16 Matrix" + "2530/1-Wire Octal 16x1 Mux" + "2530/1-Wire Quad 32x1 Mux" + "2530/2-Wire 4x16 Matrix" + "2530/2-Wire 64x1 Mux" + "2530/2-Wire Dual 32x1 Mux" + "2530/2-Wire Quad 16x1 Mux" + "2530/4-Wire 32x1 Mux" + "2530/4-Wire Dual 16x1 Mux" + "2530/Independent" + "2531/1-Wire 4x128 Matrix" + "2531/1-Wire 8x64 Matrix" + "2531/1-Wire Dual 4x64 Matrix" + "2531/1-Wire Dual 8x32 Matrix" + "2531/2-Wire 4x64 Matrix" + "2531/2-Wire 8x32 Matrix" + "2532/1-Wire 16x32 Matrix" + "2532/1-Wire 4x128 Matrix" + "2532/1-Wire 8x64 Matrix" + "2532/1-Wire Dual 16x16 Matrix" + "2532/1-Wire Dual 4x64 Matrix" + "2532/1-Wire Dual 8x32 Matrix" + "2532/1-Wire Quad 4x32 Matrix" + "2532/1-Wire Sixteen 2x16 Matrix" + "2532/2-Wire 16x16 Matrix" + "2532/2-Wire 4x64 Matrix" + "2532/2-Wire 8x32 Matrix" + "2532/2-Wire Dual 4x32 Matrix" + "2533/1-Wire 4x64 Matrix" + "2534/1-Wire 8x32 Matrix" + "2535/1-Wire 4x136 Matrix" + "2536/1-Wire 8x68 Matrix" + "2540/1-Wire 8x9 Matrix" + "2541/1-Wire 8x12 Matrix" + "2542/Quad 2x1 Terminated Mux" + "2543/Dual 4x1 Terminated Mux" + "2544/8x1 Terminated Mux" + "2545/4x1 Terminated Mux" + "2546/Dual 4x1 Mux" + "2547/8x1 Mux" + "2548/4-SPDT" + "2549/Terminated 2-SPDT" + "2554/4x1 Mux" + "2555/4x1 Terminated Mux" + "2556/Dual 4x1 Mux" + "2557/8x1 Mux" + "2558/4-SPDT" + "2559/Terminated 2-SPDT" + "2564/16-SPST" + "2564/8-DPST" + "2565/16-SPST" + "2566/16-SPDT" + "2566/8-DPDT" + "2567/Independent" + "2568/15-DPST" + "2568/31-SPST" + "2569/100-SPST" + "2569/50-DPST" + "2570/20-DPDT" + "2570/40-SPDT" + "2571/66-SPDT" + "2575/1-Wire 196x1 Mux" + "2575/2-Wire 98x1 Mux" + "2575/2-Wire 95x1 Mux" + "2576/2-Wire 64x1 Mux" + "2576/2-Wire Dual 32x1 Mux" + "2576/2-Wire Octal 8x1 Mux" + "2576/2-Wire Quad 16x1 Mux" + "2576/2-Wire Sixteen 4x1 Mux" + "2576/Independent" + "2584/1-Wire 12x1 Mux" + "2584/1-Wire Dual 6x1 Mux" + "2584/2-Wire 6x1 Mux" + "2584/Independent" + "2585/1-Wire 10x1 Mux" + "2586/10-SPST" + "2586/5-DPST" + "2590/4x1 Mux" + "2591/4x1 Mux" + "2593/16x1 Mux" + "2593/8x1 Terminated Mux" + "2593/Dual 8x1 Mux" + "2593/Dual 4x1 Terminated Mux" + "2593/Independent" + "2594/4x1 Mux" + "2595/4x1 Mux" + "2596/Dual 6x1 Mux" + "2597/6x1 Terminated Mux" + "2598/Dual Transfer" + "2599/2-SPDT" + "2720/Independent" + "2722/Independent" + "2725/Independent" + "2727/Independent" + "2737/2-Wire 4x64 Matrix" + "2738/2-Wire 8x32 Matrix" + "2739/2-Wire 16x16 Matrix" + "2746/Quad 4x1 Mux" + "2747/Dual 8x1 Mux" + "2748/16x1 Mux" + "2790/Independent" + "2796/Dual 6x1 Mux" + "2797/6x1 Terminated Mux" + "2798/Dual Transfer" + "2799/2-SPDT" + + simulate (bool): Enables simulation of the switch module specified in the resource name + parameter. Valid Values: True - simulate False - Don't simulate + (Default Value) + + reset_device (bool): Specifies whether to reset the switch module during the initialization + process. Valid Values: True - Reset Device (Default Value) False + - Currently unsupported. The device will not reset. + + grpc_options (niswitch.grpc_session_options.GrpcSessionOptions): MeasurementLink gRPC session options + + + Returns: + session (niswitch.Session): A session object representing the device. + + ''' + if grpc_options: + import niswitch._grpc_stub_interpreter as _grpc_stub_interpreter + interpreter = _grpc_stub_interpreter.GrpcStubInterpreter(grpc_options) + else: + interpreter = _library_interpreter.LibraryInterpreter(encoding='windows-1251') + + # Initialize the superclass with default values first, populate them later + super(Session, self).__init__( + repeated_capability_list=[], + interpreter=interpreter, + freeze_it=False, + all_channels_in_session=None + ) + + # Call specified init function + # Note that _interpreter default-initializes the session handle in its constructor, so that + # if _init_with_topology fails, the error handler can reference it. + # And then here, once _init_with_topology succeeds, we call set_session_handle + # with the actual session handle. + connected = False + try: + self._interpreter.set_session_handle(self._init_with_topology(resource_name, topology, simulate, reset_device)) + connected = True + finally: + if grpc_options: + import nitlsconfig + nitlsconfig.audit_session_connect('NI-SWITCH', grpc_options.grpc_channel, connected) + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("resource_name=" + pp.pformat(resource_name)) + param_list.append("topology=" + pp.pformat(topology)) + param_list.append("simulate=" + pp.pformat(simulate)) + param_list.append("reset_device=" + pp.pformat(reset_device)) + self._param_list = ', '.join(param_list) + + # Store the list of channels in the Session which is needed by some nimi-python modules. + # Use try/except because not all the modules support channels. + # self.get_channel_names() and self.channel_count can only be called after the session + # handle is set + try: + self._all_channels_in_session = self.get_channel_names(range(self.channel_count)) + except AttributeError: + self._all_channels_in_session = None + + # Finally, set _is_frozen to True which is used to prevent clients from accidentally adding + # members when trying to set a property with a typo. + self._is_frozen = True + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_value, traceback): + if self._interpreter._close_on_exit: + self.close() + + def initiate(self): + '''initiate + + Commits the configured scan list and trigger settings to hardware and + initiates the scan. If niSwitch Commit was called earlier, niSwitch + Initiate Scan only initiates the scan and returns immediately. Once the + scanning operation begins, you cannot perform any other operation other + than GetAttribute, AbortScan, or SendSoftwareTrigger. All other + methods return NISWITCH_ERROR_SCAN_IN_PROGRESS. To stop the + scanning operation, To stop the scanning operation, call + abort. + + Note: + This method will return a Python context manager that will initiate on entering and abort on exit. + ''' + return _Scan(self) + + def close(self): + '''close + + Terminates the NI-SWITCH session and all of its properties and + deallocates any memory resources the driver uses. Notes: (1) You must + unlock the session before calling _close. (2) After calling + _close, you cannot use the instrument driver again until you + call init or InitWithOptions. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + Note: + This method is not needed when using the session context manager + ''' + try: + self._close() + except errors.DriverError: + self._interpreter.set_session_handle() + raise + self._interpreter.set_session_handle() + + ''' These are code-generated ''' + + @ivi_synchronized + def abort(self): + r'''abort + + Aborts the scan in progress. Initiate a scan with + initiate. If the switch module is not scanning, + NISWITCH_ERROR_NO_SCAN_IN_PROGRESS error is returned. + ''' + self._interpreter.abort() + + @ivi_synchronized + def can_connect(self, channel1, channel2): + r'''can_connect + + Verifies that a path between channel 1 and channel 2 can be created. If + a path is possible in the switch module, the availability of that path + is returned given the existing connections. If the path is possible but + in use, a NISWITCH_WARN_IMPLICIT_CONNECTION_EXISTS warning is + returned. + + Args: + channel1 (str): Input one of the channel names of the desired path. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + channel2 (str): Input one of the channel names of the desired path. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + + Returns: + path_capability (enums.PathCapability): Indicates whether a path is valid. Possible values include: + + - PathCapability.PATH_AVAILABLE 1 + - PathCapability.PATH_EXISTS 2 + - PathCapability.PATH_UNSUPPORTED 3 + - PathCapability.RESOURCE_IN_USE 4 + - PathCapability.SOURCE_CONFLICT 5 + - PathCapability.CHANNEL_NOT_AVAILABLE 6 + + Notes: (1) + PathCapability.PATH_AVAILABLE indicates that the driver can create the + path at this time. (2) PathCapability.PATH_EXISTS indicates that the + path already exists. (3) PathCapability.PATH_UNSUPPORTED indicates that + the instrument is not capable of creating a path between the channels + you specify. (4) PathCapability.RESOURCE_IN_USE indicates that although + the path is valid, the driver cannot create the path at this moment + because the switch device is currently using one or more of the required + channels to create another path. You must destroy the other path before + creating this one. (5) PathCapability.SOURCE_CONFLICT indicates that + the instrument cannot create a path because both channels are connected + to a different source channel. (6) + PathCapability.CHANNEL_NOT_AVAILABLE indicates that the driver cannot + create a path between the two channels because one of the channels is a + configuration channel and thus unavailable for external connections. + + ''' + path_capability = self._interpreter.can_connect(channel1, channel2) + return path_capability + + @ivi_synchronized + def commit(self): + r'''commit + + Downloads the configured scan list and trigger settings to hardware. + Calling commit optional as it is implicitly called during + initiate. Use commit to arm triggers in a given + order or to control when expensive hardware operations are performed. + ''' + self._interpreter.commit() + + @ivi_synchronized + def connect(self, channel1, channel2): + r'''connect + + Creates a path between channel 1 and channel 2. The driver calculates + and uses the shortest path between the two channels. Refer to Immediate + Operations for information about Channel Usage types. If a path is not + available, the method returns one of the following errors: - + NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are + already explicitly connected by calling either the connect or + set_path method. - + NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a + configuration channel. Error elaboration contains information about + which of the two channels is a configuration channel. - + NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are + connected to a different source. Error elaboration contains information + about sources channel 1 and 2 connect to. - + NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are + one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the + driver cannot find a path between the two channels. Note: Paths are + bidirectional. For example, if a path exists between channels CH1 and + CH2, then the path also exists between channels CH2 and CH1. + + Args: + channel1 (str): Input one of the channel names of the desired path. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + channel2 (str): Input one of the channel names of the desired path. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + ''' + self._interpreter.connect(channel1, channel2) + + @ivi_synchronized + def connect_multiple(self, connection_list): + r'''connect_multiple + + Creates the connections between channels specified in Connection List. + Specify connections with two endpoints only or the explicit path between + two endpoints. NI-SWITCH calculates and uses the shortest path between + the channels. Refer to Setting Source and Configuration Channels for + information about channel usage types. In the event of an error, + connecting stops at the point in the list where the error occurred. If a + path is not available, the method returns one of the following errors: + - NISWITCH_ERROR_EXPLICIT_CONNECTION_EXISTS, if the two channels are + already explicitly connected. - + NISWITCH_ERROR_IS_CONFIGURATION_CHANNEL, if a channel is a + configuration channel. Error elaboration contains information about + which of the two channels is a configuration channel. - + NISWITCH_ERROR_ATTEMPT_TO_CONNECT_SOURCES, if both channels are + connected to a different source. Error elaboration contains information + about sources channel 1 and 2 to connect. - + NISWITCH_ERROR_CANNOT_CONNECT_TO_ITSELF, if channels 1 and 2 are + one and the same channel. - NISWITCH_ERROR_PATH_NOT_FOUND, if the + driver cannot find a path between the two channels. Note: Paths are + bidirectional. For example, if a path exists between channels ch1 and + ch2, then the path also exists between channels ch1 and ch2. + + Args: + connection_list (str): Connection List specifies a list of connections between channels to + make. NI-SWITCH validates the connection list, and aborts execution of + the list if errors are returned. Refer to Connection and Disconnection + List Syntax for valid connection list syntax and examples. Refer to + Devices Overview for valid channel names for the switch module. Example + of a valid connection list: c0 -> r1, [c2 -> r2 -> c3] In this example, + r2 is a configuration channel. Default value: None + + ''' + self._interpreter.connect_multiple(connection_list) + + @ivi_synchronized + def disable(self): + r'''disable + + Places the switch module in a quiescent state where it has minimal or no + impact on the system to which it is connected. All channels are + disconnected and any scan in progress is aborted. + ''' + self._interpreter.disable() + + @ivi_synchronized + def disconnect(self, channel1, channel2): + r'''disconnect + + This method destroys the path between two channels that you create + with the connect or set_path method. If a path is + not connected or not available, the method returns the + IVISWTCH_ERROR_NO_SUCH_PATH error. + + Args: + channel1 (str): Input one of the channel names of the path to break. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + channel2 (str): Input one of the channel names of the path to break. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: None + + ''' + self._interpreter.disconnect(channel1, channel2) + + @ivi_synchronized + def disconnect_all(self): + r'''disconnect_all + + Breaks all existing paths. If the switch module cannot break all paths, + NISWITCH_WARN_PATH_REMAINS warning is returned. + ''' + self._interpreter.disconnect_all() + + @ivi_synchronized + def disconnect_multiple(self, disconnection_list): + r'''disconnect_multiple + + Breaks the connections between channels specified in Disconnection List. + If no connections exist between channels, NI-SWITCH returns an error. In + the event of an error, the VI stops at the point in the list where the + error occurred. + + Args: + disconnection_list (str): Disconnection List specifies a list of connections between channels to + break. NI-SWITCH validates the disconnection list, and aborts execution + of the list if errors are returned. Refer to Connection and + Disconnection List Syntax for valid disconnection list syntax and + examples. Refer to Devices Overview for valid channel names for the + switch module. Example of a valid disconnection list: c0 -> r1, [c2 -> + r2 -> c3] In this example, r2 is a configuration channel. Default value: + None + + ''' + self._interpreter.disconnect_multiple(disconnection_list) + + @ivi_synchronized + def get_channel_name(self, index): + r'''get_channel_name + + Returns the channel string that is in the channel table at the specified + index. Use get_channel_name in a For Loop to get a complete list + of valid channel names for the switch module. Use the Channel Count + property to determine the number of channels. + + Args: + index (int): A 1-based index into the channel table. Default value: 1 Maximum value: + Value of Channel Count property. + + + Returns: + channel_name_buffer (str): Returns the channel name that is in the channel table at the index you + specify. + + ''' + channel_name_buffer = self._interpreter.get_channel_name(index) + return channel_name_buffer + + @ivi_synchronized + def get_path(self, channel1, channel2): + r'''get_path + + Returns a string that identifies the explicit path created with + connect. Pass this string to set_path to establish + the exact same path in future connections. In some cases, multiple paths + are available between two channels. When you call connect, the + driver selects an available path. With connect, there is no + guarantee that the driver selected path will always be the same path + through the switch module. get_path only returns those paths + explicitly created by niSwitch Connect Channels or set_path. + For example, if you connect channels CH1 and CH3,and then channels CH2 + and CH3, an explicit path between channels CH1 and CH2 does not exist an + error is returned + + Args: + channel1 (str): Input one of the channel names of the desired path. Pass the other + channel name as the channel 2 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + channel2 (str): Input one of the channel names of the desired path. Pass the other + channel name as the channel 1 parameter. Refer to Devices Overview for + valid channel names for the switch module. Examples of valid channel + names: ch0, com0, ab0, r1, c2, cjtemp Default value: "" + + + Returns: + path (str): A string composed of comma-separated paths between channel 1 and channel + 2. The first and last names in the path are the endpoints of the path. + All other channels in the path are configuration channels. Examples of + returned paths: ch0->com0, com0->ab0 + + ''' + path = self._interpreter.get_path(channel1, channel2) + return path + + @ivi_synchronized + def get_relay_count(self, relay_name): + r'''get_relay_count + + Returns the number of times the relay has changed from Closed to Open. + Relay count is useful for tracking relay lifetime and usage. Call + wait_for_debounce before get_relay_count to ensure an + accurate count. Refer to the Relay Count topic in the NI Switches Help + to determine if the switch module supports relay counting. + + Args: + relay_name (str): Name of the relay. Default value: None Examples of valid relay names: + ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid + relay names for the switch module. + + + Returns: + relay_count (int): The number of relay cycles. + + ''' + relay_count = self._interpreter.get_relay_count(relay_name) + return relay_count + + @ivi_synchronized + def get_relay_name(self, index): + r'''get_relay_name + + Returns the relay name string that is in the relay list at the specified + index. Use get_relay_name in a For Loop to get a complete list + of valid relay names for the switch module. Use the Number of Relays + property to determine the number of relays. + + Args: + index (int): A 1-based index into the channel table. Default value: 1 Maximum value: + Value of Channel Count property. + + + Returns: + relay_name_buffer (str): Returns the relay name for the index you specify. + + ''' + relay_name_buffer = self._interpreter.get_relay_name(index) + return relay_name_buffer + + @ivi_synchronized + def get_relay_position(self, relay_name): + r'''get_relay_position + + Returns the relay position for the relay specified in the Relay Name + parameter. + + Args: + relay_name (str): Name of the relay. Default value: None Examples of valid relay names: + ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid + relay names for the switch module. + + + Returns: + relay_position (enums.RelayPosition): Indicates whether the relay is open or closed. RelayPosition.OPEN 10 + RelayPosition.CLOSED 11 + + ''' + relay_position = self._interpreter.get_relay_position(relay_name) + return relay_position + + def _init_with_topology(self, resource_name, topology="Configured Topology", simulate=False, reset_device=False): + r'''_init_with_topology + + Returns a session handle used to identify the switch in all subsequent + instrument driver calls and sets the topology of the switch. + __init__ creates a new IVI instrument driver session + for the switch specified in the resourceName parameter. The driver uses + the topology specified in the topology parameter and overrides the + topology specified in MAX. Note: When initializing an NI SwitchBlock + device with topology, you must specify the topology created when you + configured the device in MAX, using either + "Configured Topology" or the topology string of the + device. Refer to the Initializing with Topology for NI SwitchBlock + Devices topic in the NI Switches Help for information about determining + the topology string of an NI SwitchBlock device. By default, the switch + is reset to a known state. Enable simulation by specifying the topology + and setting the simulate parameter to True. + + Args: + resource_name (str): Resource name of the switch module to initialize. Default value: None + Syntax: Optional fields are shown in square brackets ([]). Configured in + MAX Under Valid Syntax Devices and Interfaces DeviceName Traditional + NI-DAQ Devices SCXI[chassis ID]::slot number PXI System PXI[bus + number]::device number TIP: IVI logical names are also valid for the + resource name. Default values for optional fields: chassis ID = 1 bus + number = 0 Example resource names: Resource Name Description SC1Mod3 + NI-DAQmx module in chassis "SC1" slot 3 MySwitch NI-DAQmx module renamed + to "MySwitch" SCXI1::3 Traditional NI-DAQ module in chassis 1, slot 3 + SCXI::3 Traditional NI-DAQ module in chassis 1, slot 3 PXI0::16 PXI bus + 0, device number 16 PXI::16 PXI bus 0, device number 16 + + topology (str): Pass the topology name you want to use for the switch you specify with + Resource Name parameter. You can also pass + "Configured Topology" to use the last topology that + was configured for the device in MAX. + Default Value: + "Configured Topology" + Valid Values: + "Configured Topology" + "2501/1-Wire 48x1 Mux" + "2501/1-Wire 48x1 Amplified Mux" + "2501/2-Wire 24x1 Mux" + "2501/2-Wire 24x1 Amplified Mux" + "2501/2-Wire Dual 12x1 Mux" + "2501/2-Wire Quad 6x1 Mux" + "2501/2-Wire 4x6 Matrix" + "2501/4-Wire 12x1 Mux" + "2503/1-Wire 48x1 Mux" + "2503/2-Wire 24x1 Mux" + "2503/2-Wire Dual 12x1 Mux" + "2503/2-Wire Quad 6x1 Mux" + "2503/2-Wire 4x6 Matrix" + "2503/4-Wire 12x1 Mux" + "2510/Independent" + "2512/Independent" + "2514/Independent" + "2515/Independent" + "2520/80-SPST" + "2521/40-DPST" + "2522/53-SPDT" + "2523/26-DPDT" + "2524/1-Wire 128x1 Mux" + "2524/1-Wire Dual 64x1 Mux" + "2524/1-Wire Quad 32x1 Mux" + "2524/1-Wire Octal 16x1 Mux" + "2524/1-Wire Sixteen 8x1 Mux" + "2525/2-Wire 64x1 Mux" + "2525/2-Wire Dual 32x1 Mux" + "2525/2-Wire Quad 16x1 Mux" + "2525/2-Wire Octal 8x1 Mux" + "2525/2-Wire Sixteen 4x1 Mux" + "2526/1-Wire 158x1 Mux" + "2526/2-Wire 79x1 Mux" + "2527/1-Wire 64x1 Mux" + "2527/1-Wire Dual 32x1 Mux" + "2527/2-Wire 32x1 Mux" + "2527/2-Wire Dual 16x1 Mux" + "2527/4-Wire 16x1 Mux" + "2527/Independent" + "2529/2-Wire Dual 4x16 Matrix" + "2529/2-Wire 8x16 Matrix" + "2529/2-Wire 4x32 Matrix" + "2530/1-Wire 128x1 Mux" + "2530/1-Wire Dual 64x1 Mux" + "2530/1-Wire 4x32 Matrix" + "2530/1-Wire 8x16 Matrix" + "2530/1-Wire Octal 16x1 Mux" + "2530/1-Wire Quad 32x1 Mux" + "2530/2-Wire 4x16 Matrix" + "2530/2-Wire 64x1 Mux" + "2530/2-Wire Dual 32x1 Mux" + "2530/2-Wire Quad 16x1 Mux" + "2530/4-Wire 32x1 Mux" + "2530/4-Wire Dual 16x1 Mux" + "2530/Independent" + "2531/1-Wire 4x128 Matrix" + "2531/1-Wire 8x64 Matrix" + "2531/1-Wire Dual 4x64 Matrix" + "2531/1-Wire Dual 8x32 Matrix" + "2531/2-Wire 4x64 Matrix" + "2531/2-Wire 8x32 Matrix" + "2532/1-Wire 16x32 Matrix" + "2532/1-Wire 4x128 Matrix" + "2532/1-Wire 8x64 Matrix" + "2532/1-Wire Dual 16x16 Matrix" + "2532/1-Wire Dual 4x64 Matrix" + "2532/1-Wire Dual 8x32 Matrix" + "2532/1-Wire Quad 4x32 Matrix" + "2532/1-Wire Sixteen 2x16 Matrix" + "2532/2-Wire 16x16 Matrix" + "2532/2-Wire 4x64 Matrix" + "2532/2-Wire 8x32 Matrix" + "2532/2-Wire Dual 4x32 Matrix" + "2533/1-Wire 4x64 Matrix" + "2534/1-Wire 8x32 Matrix" + "2535/1-Wire 4x136 Matrix" + "2536/1-Wire 8x68 Matrix" + "2540/1-Wire 8x9 Matrix" + "2541/1-Wire 8x12 Matrix" + "2542/Quad 2x1 Terminated Mux" + "2543/Dual 4x1 Terminated Mux" + "2544/8x1 Terminated Mux" + "2545/4x1 Terminated Mux" + "2546/Dual 4x1 Mux" + "2547/8x1 Mux" + "2548/4-SPDT" + "2549/Terminated 2-SPDT" + "2554/4x1 Mux" + "2555/4x1 Terminated Mux" + "2556/Dual 4x1 Mux" + "2557/8x1 Mux" + "2558/4-SPDT" + "2559/Terminated 2-SPDT" + "2564/16-SPST" + "2564/8-DPST" + "2565/16-SPST" + "2566/16-SPDT" + "2566/8-DPDT" + "2567/Independent" + "2568/15-DPST" + "2568/31-SPST" + "2569/100-SPST" + "2569/50-DPST" + "2570/20-DPDT" + "2570/40-SPDT" + "2571/66-SPDT" + "2575/1-Wire 196x1 Mux" + "2575/2-Wire 98x1 Mux" + "2575/2-Wire 95x1 Mux" + "2576/2-Wire 64x1 Mux" + "2576/2-Wire Dual 32x1 Mux" + "2576/2-Wire Octal 8x1 Mux" + "2576/2-Wire Quad 16x1 Mux" + "2576/2-Wire Sixteen 4x1 Mux" + "2576/Independent" + "2584/1-Wire 12x1 Mux" + "2584/1-Wire Dual 6x1 Mux" + "2584/2-Wire 6x1 Mux" + "2584/Independent" + "2585/1-Wire 10x1 Mux" + "2586/10-SPST" + "2586/5-DPST" + "2590/4x1 Mux" + "2591/4x1 Mux" + "2593/16x1 Mux" + "2593/8x1 Terminated Mux" + "2593/Dual 8x1 Mux" + "2593/Dual 4x1 Terminated Mux" + "2593/Independent" + "2594/4x1 Mux" + "2595/4x1 Mux" + "2596/Dual 6x1 Mux" + "2597/6x1 Terminated Mux" + "2598/Dual Transfer" + "2599/2-SPDT" + "2720/Independent" + "2722/Independent" + "2725/Independent" + "2727/Independent" + "2737/2-Wire 4x64 Matrix" + "2738/2-Wire 8x32 Matrix" + "2739/2-Wire 16x16 Matrix" + "2746/Quad 4x1 Mux" + "2747/Dual 8x1 Mux" + "2748/16x1 Mux" + "2790/Independent" + "2796/Dual 6x1 Mux" + "2797/6x1 Terminated Mux" + "2798/Dual Transfer" + "2799/2-SPDT" + + simulate (bool): Enables simulation of the switch module specified in the resource name + parameter. Valid Values: True - simulate False - Don't simulate + (Default Value) + + reset_device (bool): Specifies whether to reset the switch module during the initialization + process. Valid Values: True - Reset Device (Default Value) False + - Currently unsupported. The device will not reset. + + + Returns: + vi (int): A particular NI-SWITCH session established with + __init__, InitWithOptions, or init + and used for all subsequent NI-SWITCH calls. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + + ''' + vi = self._interpreter.init_with_topology(resource_name, topology, simulate, reset_device) + return vi + + @ivi_synchronized + def _initiate_scan(self): + r'''_initiate_scan + + Commits the configured scan list and trigger settings to hardware and + initiates the scan. If niSwitch Commit was called earlier, niSwitch + Initiate Scan only initiates the scan and returns immediately. Once the + scanning operation begins, you cannot perform any other operation other + than GetAttribute, AbortScan, or SendSoftwareTrigger. All other + methods return NISWITCH_ERROR_SCAN_IN_PROGRESS. To stop the + scanning operation, To stop the scanning operation, call + abort. + ''' + self._interpreter.initiate_scan() + + @ivi_synchronized + def relay_control(self, relay_name, relay_action): + r'''relay_control + + Controls individual relays of the switch. When controlling individual + relays, the protection offered by setting the usage of source channels + and configuration channels, and by enabling or disabling analog bus + sharing on the NI SwitchBlock, does not apply. Refer to the device book + for your switch in the NI Switches Help to determine if the switch + supports individual relay control. + + Args: + relay_name (str): Name of the relay. Default value: None Examples of valid relay names: + ch0, ab0, 1wire, hlselect Refer to Devices Overview for a list of valid + relay names for the switch module. + + relay_action (enums.RelayAction): Specifies whether to open or close a given relay. Default value: Relay + Close Defined values: RelayAction.OPEN + RelayAction.CLOSE (Default Value) + + ''' + if type(relay_action) is not enums.RelayAction: + raise TypeError('Parameter relay_action must be of type ' + str(enums.RelayAction)) + self._interpreter.relay_control(relay_name, relay_action) + + @ivi_synchronized + def reset_with_defaults(self): + r'''reset_with_defaults + + Resets the switch module and applies initial user specified settings + from the logical name used to initialize the session. If the session was + created without a logical name, this method is equivalent to + reset. + ''' + self._interpreter.reset_with_defaults() + + @ivi_synchronized + def route_scan_advanced_output(self, scan_advanced_output_connector, scan_advanced_output_bus_line, invert=False): + r'''route_scan_advanced_output + + Routes the scan advanced output trigger from a trigger bus line (TTLx) + to the front or rear connector. + + Args: + scan_advanced_output_connector (enums.ScanAdvancedOutput): The scan advanced trigger destination. Valid locations are the + ScanAdvancedOutput.FRONTCONNECTOR and ScanAdvancedOutput.REARCONNECTOR. Default + value: ScanAdvancedOutput.FRONTCONNECTOR + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + scan_advanced_output_bus_line (enums.ScanAdvancedOutput): The trigger line to route the scan advanced output trigger from the + front or rear connector. Select ScanAdvancedOutput.NONE to break an existing + route. Default value: None Valid Values: ScanAdvancedOutput.NONE + ScanAdvancedOutput.TTL0 ScanAdvancedOutput.TTL1 ScanAdvancedOutput.TTL2 + ScanAdvancedOutput.TTL3 ScanAdvancedOutput.TTL4 ScanAdvancedOutput.TTL5 + ScanAdvancedOutput.TTL6 ScanAdvancedOutput.TTL7 + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + invert (bool): If True, inverts the input trigger signal from falling to rising or + vice versa. Default value: False + + ''' + if type(scan_advanced_output_connector) is not enums.ScanAdvancedOutput: + raise TypeError('Parameter scan_advanced_output_connector must be of type ' + str(enums.ScanAdvancedOutput)) + if type(scan_advanced_output_bus_line) is not enums.ScanAdvancedOutput: + raise TypeError('Parameter scan_advanced_output_bus_line must be of type ' + str(enums.ScanAdvancedOutput)) + self._interpreter.route_scan_advanced_output(scan_advanced_output_connector, scan_advanced_output_bus_line, invert) + + @ivi_synchronized + def route_trigger_input(self, trigger_input_connector, trigger_input_bus_line, invert=False): + r'''route_trigger_input + + Routes the input trigger from the front or rear connector to a trigger + bus line (TTLx). To disconnect the route, call this method again and + specify None for trigger bus line parameter. + + Args: + trigger_input_connector (enums.TriggerInput): The location of the input trigger source on the switch module. Valid + locations are the TriggerInput.FRONTCONNECTOR and + TriggerInput.REARCONNECTOR. Default value: + TriggerInput.FRONTCONNECTOR + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + trigger_input_bus_line (enums.TriggerInput): The trigger line to route the input trigger. Select NISWITCH_VAL_NONE + to break an existing route. Default value: None Valid Values: + NISWITCH_VAL_NONE TriggerInput.TTL0 TriggerInput.TTL1 + TriggerInput.TTL2 TriggerInput.TTL3 TriggerInput.TTL4 + TriggerInput.TTL5 TriggerInput.TTL6 TriggerInput.TTL7 + + Note: + One or more of the referenced values are not in the Python API for this driver. Enums that only define values, or represent True/False, have been removed. + + invert (bool): If True, inverts the input trigger signal from falling to rising or + vice versa. Default value: False + + ''' + if type(trigger_input_connector) is not enums.TriggerInput: + raise TypeError('Parameter trigger_input_connector must be of type ' + str(enums.TriggerInput)) + if type(trigger_input_bus_line) is not enums.TriggerInput: + raise TypeError('Parameter trigger_input_bus_line must be of type ' + str(enums.TriggerInput)) + self._interpreter.route_trigger_input(trigger_input_connector, trigger_input_bus_line, invert) + + @ivi_synchronized + def send_software_trigger(self): + r'''send_software_trigger + + Sends a software trigger to the switch module specified in the NI-SWITCH + session. When the trigger input is set to TriggerInput.SOFTWARE_TRIG + through either the ConfigureScanTrigger or the + trigger_input property, the scan does not proceed from + a semi-colon (wait for trigger) until send_software_trigger is + called. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + self._interpreter.send_software_trigger() + + @ivi_synchronized + def set_path(self, path_list): + r'''set_path + + Connects two channels by specifying an explicit path in the path list + parameter. set_path is particularly useful where path + repeatability is important, such as in calibrated signal paths. If this + is not necessary, use connect. + + Args: + path_list (str): A string composed of comma-separated paths between channel 1 and channel + 2. The first and last names in the path are the endpoints of the path. + Every other channel in the path are configuration channels. Example of a + valid path list string: ch0->com0, com0->ab0. In this example, com0 is a + configuration channel. Default value: None Obtain the path list for a + previously created path with get_path. + + ''' + self._interpreter.set_path(path_list) + + @ivi_synchronized + def wait_for_debounce(self, maximum_time_ms=hightime.timedelta(milliseconds=5000)): + r'''wait_for_debounce + + Pauses until all created paths have settled. If the time you specify + with the Maximum Time (ms) parameter elapsed before the switch paths + have settled, this method returns the + NISWITCH_ERROR_MAX_TIME_EXCEEDED error. + + Args: + maximum_time_ms (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the maximum length of time to wait for all relays in the + switch module to activate or deactivate. If the specified time elapses + before all relays active or deactivate, a timeout error is returned. + Default Value:5000 ms + + ''' + maximum_time_ms = _converters.convert_timedelta_to_milliseconds_int32(maximum_time_ms) + self._interpreter.wait_for_debounce(maximum_time_ms) + + @ivi_synchronized + def wait_for_scan_complete(self, maximum_time_ms=hightime.timedelta(milliseconds=5000)): + r'''wait_for_scan_complete + + Pauses until the switch module stops scanning or the maximum time has + elapsed and returns a timeout error. If the time you specify with the + Maximum Time (ms) parameter elapsed before the scanning operation has + finished, this method returns the NISWITCH_ERROR_MAX_TIME_EXCEEDED + error. + + Args: + maximum_time_ms (hightime.timedelta, datetime.timedelta, or int in milliseconds): Specifies the maximum length of time to wait for the switch module to + stop scanning. If the specified time elapses before the scan ends, + NISWITCH_ERROR_MAX_TIME_EXCEEDED error is returned. Default + Value:5000 ms + + ''' + maximum_time_ms = _converters.convert_timedelta_to_milliseconds_int32(maximum_time_ms) + self._interpreter.wait_for_scan_complete(maximum_time_ms) + + def _close(self): + r'''_close + + Terminates the NI-SWITCH session and all of its properties and + deallocates any memory resources the driver uses. Notes: (1) You must + unlock the session before calling _close. (2) After calling + _close, you cannot use the instrument driver again until you + call init or InitWithOptions. + + Note: + One or more of the referenced methods are not in the Python API for this driver. + ''' + self._interpreter.close() + + @ivi_synchronized + def self_test(self): + '''self_test + + Verifies that the driver can communicate with the switch module. + + Raises `SelfTestError` on self test failure. Properties on exception object: + + - code - failure code from driver + - message - status message from driver + + +----------------+------------------+ + | Self-Test Code | Description | + +================+==================+ + | 0 | Passed self-test | + +----------------+------------------+ + | 1 | Self-test failed | + +----------------+------------------+ + ''' + code, msg = self._self_test() + if code: + raise errors.SelfTestError(code, msg) + return None + + @ivi_synchronized + def reset(self): + r'''reset + + Disconnects all created paths and returns the switch module to the state + at initialization. Configuration channel and source channel settings + remain unchanged. + ''' + self._interpreter.reset() + + @ivi_synchronized + def _self_test(self): + r'''_self_test + + Verifies that the driver can communicate with the switch module. + + Returns: + self_test_result (int): Value returned from the switch device self-test. Passed 0 Failed 1 + + self_test_message (str): Self-test response string from the switch device. You must pass a ViChar + array with at least 256 bytes. + + ''' + self_test_result, self_test_message = self._interpreter.self_test() + return self_test_result, self_test_message diff --git a/generated/niswitch/niswitch/unit_tests/_matchers.py b/generated/niswitch/niswitch/unit_tests/_matchers.py new file mode 100644 index 0000000000..87ccdfae68 --- /dev/null +++ b/generated/niswitch/niswitch/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import niswitch._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/niswitch/niswitch/unit_tests/_mock_helper.py b/generated/niswitch/niswitch/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..7962abc9a4 --- /dev/null +++ b/generated/niswitch/niswitch/unit_tests/_mock_helper.py @@ -0,0 +1,508 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['AbortScan'] = {} + self._defaults['AbortScan']['return'] = 0 + self._defaults['CanConnect'] = {} + self._defaults['CanConnect']['return'] = 0 + self._defaults['CanConnect']['pathCapability'] = None + self._defaults['Commit'] = {} + self._defaults['Commit']['return'] = 0 + self._defaults['Connect'] = {} + self._defaults['Connect']['return'] = 0 + self._defaults['ConnectMultiple'] = {} + self._defaults['ConnectMultiple']['return'] = 0 + self._defaults['Disable'] = {} + self._defaults['Disable']['return'] = 0 + self._defaults['Disconnect'] = {} + self._defaults['Disconnect']['return'] = 0 + self._defaults['DisconnectAll'] = {} + self._defaults['DisconnectAll']['return'] = 0 + self._defaults['DisconnectMultiple'] = {} + self._defaults['DisconnectMultiple']['return'] = 0 + self._defaults['GetAttributeViBoolean'] = {} + self._defaults['GetAttributeViBoolean']['return'] = 0 + self._defaults['GetAttributeViBoolean']['attributeValue'] = None + self._defaults['GetAttributeViInt32'] = {} + self._defaults['GetAttributeViInt32']['return'] = 0 + self._defaults['GetAttributeViInt32']['attributeValue'] = None + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['attributeValue'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['attributeValue'] = None + self._defaults['GetChannelName'] = {} + self._defaults['GetChannelName']['return'] = 0 + self._defaults['GetChannelName']['channelNameBuffer'] = None + self._defaults['GetError'] = {} + self._defaults['GetError']['return'] = 0 + self._defaults['GetError']['errorCode'] = None + self._defaults['GetError']['description'] = None + self._defaults['GetPath'] = {} + self._defaults['GetPath']['return'] = 0 + self._defaults['GetPath']['path'] = None + self._defaults['GetRelayCount'] = {} + self._defaults['GetRelayCount']['return'] = 0 + self._defaults['GetRelayCount']['relayCount'] = None + self._defaults['GetRelayName'] = {} + self._defaults['GetRelayName']['return'] = 0 + self._defaults['GetRelayName']['relayNameBuffer'] = None + self._defaults['GetRelayPosition'] = {} + self._defaults['GetRelayPosition']['return'] = 0 + self._defaults['GetRelayPosition']['relayPosition'] = None + self._defaults['InitWithTopology'] = {} + self._defaults['InitWithTopology']['return'] = 0 + self._defaults['InitWithTopology']['vi'] = None + self._defaults['InitiateScan'] = {} + self._defaults['InitiateScan']['return'] = 0 + self._defaults['LockSession'] = {} + self._defaults['LockSession']['return'] = 0 + self._defaults['LockSession']['callerHasLock'] = None + self._defaults['RelayControl'] = {} + self._defaults['RelayControl']['return'] = 0 + self._defaults['ResetWithDefaults'] = {} + self._defaults['ResetWithDefaults']['return'] = 0 + self._defaults['RouteScanAdvancedOutput'] = {} + self._defaults['RouteScanAdvancedOutput']['return'] = 0 + self._defaults['RouteTriggerInput'] = {} + self._defaults['RouteTriggerInput']['return'] = 0 + self._defaults['SendSoftwareTrigger'] = {} + self._defaults['SendSoftwareTrigger']['return'] = 0 + self._defaults['SetAttributeViBoolean'] = {} + self._defaults['SetAttributeViBoolean']['return'] = 0 + self._defaults['SetAttributeViInt32'] = {} + self._defaults['SetAttributeViInt32']['return'] = 0 + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetPath'] = {} + self._defaults['SetPath']['return'] = 0 + self._defaults['SetRuntimeEnvironment'] = {} + self._defaults['SetRuntimeEnvironment']['return'] = 0 + self._defaults['UnlockSession'] = {} + self._defaults['UnlockSession']['return'] = 0 + self._defaults['UnlockSession']['callerHasLock'] = None + self._defaults['WaitForDebounce'] = {} + self._defaults['WaitForDebounce']['return'] = 0 + self._defaults['WaitForScanComplete'] = {} + self._defaults['WaitForScanComplete']['return'] = 0 + self._defaults['close'] = {} + self._defaults['close']['return'] = 0 + self._defaults['error_message'] = {} + self._defaults['error_message']['return'] = 0 + self._defaults['error_message']['errorMessage'] = None + self._defaults['reset'] = {} + self._defaults['reset']['return'] = 0 + self._defaults['self_test'] = {} + self._defaults['self_test']['return'] = 0 + self._defaults['self_test']['selfTestResult'] = None + self._defaults['self_test']['selfTestMessage'] = None + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niSwitch_AbortScan(self, vi): # noqa: N802 + if self._defaults['AbortScan']['return'] != 0: + return self._defaults['AbortScan']['return'] + return self._defaults['AbortScan']['return'] + + def niSwitch_CanConnect(self, vi, channel1, channel2, path_capability): # noqa: N802 + if self._defaults['CanConnect']['return'] != 0: + return self._defaults['CanConnect']['return'] + # path_capability + if self._defaults['CanConnect']['pathCapability'] is None: + raise MockFunctionCallError("niSwitch_CanConnect", param='pathCapability') + if path_capability is not None: + path_capability.contents.value = self._defaults['CanConnect']['pathCapability'] + return self._defaults['CanConnect']['return'] + + def niSwitch_Commit(self, vi): # noqa: N802 + if self._defaults['Commit']['return'] != 0: + return self._defaults['Commit']['return'] + return self._defaults['Commit']['return'] + + def niSwitch_Connect(self, vi, channel1, channel2): # noqa: N802 + if self._defaults['Connect']['return'] != 0: + return self._defaults['Connect']['return'] + return self._defaults['Connect']['return'] + + def niSwitch_ConnectMultiple(self, vi, connection_list): # noqa: N802 + if self._defaults['ConnectMultiple']['return'] != 0: + return self._defaults['ConnectMultiple']['return'] + return self._defaults['ConnectMultiple']['return'] + + def niSwitch_Disable(self, vi): # noqa: N802 + if self._defaults['Disable']['return'] != 0: + return self._defaults['Disable']['return'] + return self._defaults['Disable']['return'] + + def niSwitch_Disconnect(self, vi, channel1, channel2): # noqa: N802 + if self._defaults['Disconnect']['return'] != 0: + return self._defaults['Disconnect']['return'] + return self._defaults['Disconnect']['return'] + + def niSwitch_DisconnectAll(self, vi): # noqa: N802 + if self._defaults['DisconnectAll']['return'] != 0: + return self._defaults['DisconnectAll']['return'] + return self._defaults['DisconnectAll']['return'] + + def niSwitch_DisconnectMultiple(self, vi, disconnection_list): # noqa: N802 + if self._defaults['DisconnectMultiple']['return'] != 0: + return self._defaults['DisconnectMultiple']['return'] + return self._defaults['DisconnectMultiple']['return'] + + def niSwitch_GetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViBoolean']['return'] != 0: + return self._defaults['GetAttributeViBoolean']['return'] + # attribute_value + if self._defaults['GetAttributeViBoolean']['attributeValue'] is None: + raise MockFunctionCallError("niSwitch_GetAttributeViBoolean", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViBoolean']['attributeValue'] + return self._defaults['GetAttributeViBoolean']['return'] + + def niSwitch_GetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViInt32']['return'] != 0: + return self._defaults['GetAttributeViInt32']['return'] + # attribute_value + if self._defaults['GetAttributeViInt32']['attributeValue'] is None: + raise MockFunctionCallError("niSwitch_GetAttributeViInt32", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViInt32']['attributeValue'] + return self._defaults['GetAttributeViInt32']['return'] + + def niSwitch_GetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # attribute_value + if self._defaults['GetAttributeViReal64']['attributeValue'] is None: + raise MockFunctionCallError("niSwitch_GetAttributeViReal64", param='attributeValue') + if attribute_value is not None: + attribute_value.contents.value = self._defaults['GetAttributeViReal64']['attributeValue'] + return self._defaults['GetAttributeViReal64']['return'] + + def niSwitch_GetAttributeViString(self, vi, channel_name, attribute_id, array_size, attribute_value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # attribute_value + if self._defaults['GetAttributeViString']['attributeValue'] is None: + raise MockFunctionCallError("niSwitch_GetAttributeViString", param='attributeValue') + if array_size.value == 0: + return len(self._defaults['GetAttributeViString']['attributeValue']) + attribute_value.value = self._defaults['GetAttributeViString']['attributeValue'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niSwitch_GetChannelName(self, vi, index, buffer_size, channel_name_buffer): # noqa: N802 + if self._defaults['GetChannelName']['return'] != 0: + return self._defaults['GetChannelName']['return'] + # channel_name_buffer + if self._defaults['GetChannelName']['channelNameBuffer'] is None: + raise MockFunctionCallError("niSwitch_GetChannelName", param='channelNameBuffer') + if buffer_size.value == 0: + return len(self._defaults['GetChannelName']['channelNameBuffer']) + channel_name_buffer.value = self._defaults['GetChannelName']['channelNameBuffer'].encode('ascii') + return self._defaults['GetChannelName']['return'] + + def niSwitch_GetError(self, vi, error_code, buffer_size, description): # noqa: N802 + if self._defaults['GetError']['return'] != 0: + return self._defaults['GetError']['return'] + # error_code + if self._defaults['GetError']['errorCode'] is None: + raise MockFunctionCallError("niSwitch_GetError", param='errorCode') + if error_code is not None: + error_code.contents.value = self._defaults['GetError']['errorCode'] + # description + if self._defaults['GetError']['description'] is None: + raise MockFunctionCallError("niSwitch_GetError", param='description') + if buffer_size.value == 0: + return len(self._defaults['GetError']['description']) + description.value = self._defaults['GetError']['description'].encode('ascii') + return self._defaults['GetError']['return'] + + def niSwitch_GetPath(self, vi, channel1, channel2, buffer_size, path): # noqa: N802 + if self._defaults['GetPath']['return'] != 0: + return self._defaults['GetPath']['return'] + # path + if self._defaults['GetPath']['path'] is None: + raise MockFunctionCallError("niSwitch_GetPath", param='path') + if buffer_size.value == 0: + return len(self._defaults['GetPath']['path']) + path.value = self._defaults['GetPath']['path'].encode('ascii') + return self._defaults['GetPath']['return'] + + def niSwitch_GetRelayCount(self, vi, relay_name, relay_count): # noqa: N802 + if self._defaults['GetRelayCount']['return'] != 0: + return self._defaults['GetRelayCount']['return'] + # relay_count + if self._defaults['GetRelayCount']['relayCount'] is None: + raise MockFunctionCallError("niSwitch_GetRelayCount", param='relayCount') + if relay_count is not None: + relay_count.contents.value = self._defaults['GetRelayCount']['relayCount'] + return self._defaults['GetRelayCount']['return'] + + def niSwitch_GetRelayName(self, vi, index, relay_name_buffer_size, relay_name_buffer): # noqa: N802 + if self._defaults['GetRelayName']['return'] != 0: + return self._defaults['GetRelayName']['return'] + # relay_name_buffer + if self._defaults['GetRelayName']['relayNameBuffer'] is None: + raise MockFunctionCallError("niSwitch_GetRelayName", param='relayNameBuffer') + if relay_name_buffer_size.value == 0: + return len(self._defaults['GetRelayName']['relayNameBuffer']) + relay_name_buffer.value = self._defaults['GetRelayName']['relayNameBuffer'].encode('ascii') + return self._defaults['GetRelayName']['return'] + + def niSwitch_GetRelayPosition(self, vi, relay_name, relay_position): # noqa: N802 + if self._defaults['GetRelayPosition']['return'] != 0: + return self._defaults['GetRelayPosition']['return'] + # relay_position + if self._defaults['GetRelayPosition']['relayPosition'] is None: + raise MockFunctionCallError("niSwitch_GetRelayPosition", param='relayPosition') + if relay_position is not None: + relay_position.contents.value = self._defaults['GetRelayPosition']['relayPosition'] + return self._defaults['GetRelayPosition']['return'] + + def niSwitch_InitWithTopology(self, resource_name, topology, simulate, reset_device, vi): # noqa: N802 + if self._defaults['InitWithTopology']['return'] != 0: + return self._defaults['InitWithTopology']['return'] + # vi + if self._defaults['InitWithTopology']['vi'] is None: + raise MockFunctionCallError("niSwitch_InitWithTopology", param='vi') + if vi is not None: + vi.contents.value = self._defaults['InitWithTopology']['vi'] + return self._defaults['InitWithTopology']['return'] + + def niSwitch_InitiateScan(self, vi): # noqa: N802 + if self._defaults['InitiateScan']['return'] != 0: + return self._defaults['InitiateScan']['return'] + return self._defaults['InitiateScan']['return'] + + def niSwitch_LockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['LockSession']['return'] != 0: + return self._defaults['LockSession']['return'] + # caller_has_lock + if self._defaults['LockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niSwitch_LockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['LockSession']['callerHasLock'] + return self._defaults['LockSession']['return'] + + def niSwitch_RelayControl(self, vi, relay_name, relay_action): # noqa: N802 + if self._defaults['RelayControl']['return'] != 0: + return self._defaults['RelayControl']['return'] + return self._defaults['RelayControl']['return'] + + def niSwitch_ResetWithDefaults(self, vi): # noqa: N802 + if self._defaults['ResetWithDefaults']['return'] != 0: + return self._defaults['ResetWithDefaults']['return'] + return self._defaults['ResetWithDefaults']['return'] + + def niSwitch_RouteScanAdvancedOutput(self, vi, scan_advanced_output_connector, scan_advanced_output_bus_line, invert): # noqa: N802 + if self._defaults['RouteScanAdvancedOutput']['return'] != 0: + return self._defaults['RouteScanAdvancedOutput']['return'] + return self._defaults['RouteScanAdvancedOutput']['return'] + + def niSwitch_RouteTriggerInput(self, vi, trigger_input_connector, trigger_input_bus_line, invert): # noqa: N802 + if self._defaults['RouteTriggerInput']['return'] != 0: + return self._defaults['RouteTriggerInput']['return'] + return self._defaults['RouteTriggerInput']['return'] + + def niSwitch_SendSoftwareTrigger(self, vi): # noqa: N802 + if self._defaults['SendSoftwareTrigger']['return'] != 0: + return self._defaults['SendSoftwareTrigger']['return'] + return self._defaults['SendSoftwareTrigger']['return'] + + def niSwitch_SetAttributeViBoolean(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViBoolean']['return'] != 0: + return self._defaults['SetAttributeViBoolean']['return'] + return self._defaults['SetAttributeViBoolean']['return'] + + def niSwitch_SetAttributeViInt32(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViInt32']['return'] != 0: + return self._defaults['SetAttributeViInt32']['return'] + return self._defaults['SetAttributeViInt32']['return'] + + def niSwitch_SetAttributeViReal64(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niSwitch_SetAttributeViString(self, vi, channel_name, attribute_id, attribute_value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niSwitch_SetPath(self, vi, path_list): # noqa: N802 + if self._defaults['SetPath']['return'] != 0: + return self._defaults['SetPath']['return'] + return self._defaults['SetPath']['return'] + + def niSwitch_SetRuntimeEnvironment(self, environment, environment_version, reserved1, reserved2): # noqa: N802 + if self._defaults['SetRuntimeEnvironment']['return'] != 0: + return self._defaults['SetRuntimeEnvironment']['return'] + return self._defaults['SetRuntimeEnvironment']['return'] + + def niSwitch_UnlockSession(self, vi, caller_has_lock): # noqa: N802 + if self._defaults['UnlockSession']['return'] != 0: + return self._defaults['UnlockSession']['return'] + # caller_has_lock + if self._defaults['UnlockSession']['callerHasLock'] is None: + raise MockFunctionCallError("niSwitch_UnlockSession", param='callerHasLock') + if caller_has_lock is not None: + caller_has_lock.contents.value = self._defaults['UnlockSession']['callerHasLock'] + return self._defaults['UnlockSession']['return'] + + def niSwitch_WaitForDebounce(self, vi, maximum_time_ms): # noqa: N802 + if self._defaults['WaitForDebounce']['return'] != 0: + return self._defaults['WaitForDebounce']['return'] + return self._defaults['WaitForDebounce']['return'] + + def niSwitch_WaitForScanComplete(self, vi, maximum_time_ms): # noqa: N802 + if self._defaults['WaitForScanComplete']['return'] != 0: + return self._defaults['WaitForScanComplete']['return'] + return self._defaults['WaitForScanComplete']['return'] + + def niSwitch_close(self, vi): # noqa: N802 + if self._defaults['close']['return'] != 0: + return self._defaults['close']['return'] + return self._defaults['close']['return'] + + def niSwitch_error_message(self, vi, error_code, error_message): # noqa: N802 + if self._defaults['error_message']['return'] != 0: + return self._defaults['error_message']['return'] + # error_message + if self._defaults['error_message']['errorMessage'] is None: + raise MockFunctionCallError("niSwitch_error_message", param='errorMessage') + test_value = self._defaults['error_message']['errorMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(error_message) >= len(test_value) + for i in range(len(test_value)): + error_message[i] = test_value[i] + return self._defaults['error_message']['return'] + + def niSwitch_reset(self, vi): # noqa: N802 + if self._defaults['reset']['return'] != 0: + return self._defaults['reset']['return'] + return self._defaults['reset']['return'] + + def niSwitch_self_test(self, vi, self_test_result, self_test_message): # noqa: N802 + if self._defaults['self_test']['return'] != 0: + return self._defaults['self_test']['return'] + # self_test_result + if self._defaults['self_test']['selfTestResult'] is None: + raise MockFunctionCallError("niSwitch_self_test", param='selfTestResult') + if self_test_result is not None: + self_test_result.contents.value = self._defaults['self_test']['selfTestResult'] + # self_test_message + if self._defaults['self_test']['selfTestMessage'] is None: + raise MockFunctionCallError("niSwitch_self_test", param='selfTestMessage') + test_value = self._defaults['self_test']['selfTestMessage'] + if type(test_value) is str: + test_value = test_value.encode('ascii') + assert len(self_test_message) >= len(test_value) + for i in range(len(test_value)): + self_test_message[i] = test_value[i] + return self._defaults['self_test']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niSwitch_AbortScan.side_effect = MockFunctionCallError("niSwitch_AbortScan") + mock_library.niSwitch_AbortScan.return_value = 0 + mock_library.niSwitch_CanConnect.side_effect = MockFunctionCallError("niSwitch_CanConnect") + mock_library.niSwitch_CanConnect.return_value = 0 + mock_library.niSwitch_Commit.side_effect = MockFunctionCallError("niSwitch_Commit") + mock_library.niSwitch_Commit.return_value = 0 + mock_library.niSwitch_Connect.side_effect = MockFunctionCallError("niSwitch_Connect") + mock_library.niSwitch_Connect.return_value = 0 + mock_library.niSwitch_ConnectMultiple.side_effect = MockFunctionCallError("niSwitch_ConnectMultiple") + mock_library.niSwitch_ConnectMultiple.return_value = 0 + mock_library.niSwitch_Disable.side_effect = MockFunctionCallError("niSwitch_Disable") + mock_library.niSwitch_Disable.return_value = 0 + mock_library.niSwitch_Disconnect.side_effect = MockFunctionCallError("niSwitch_Disconnect") + mock_library.niSwitch_Disconnect.return_value = 0 + mock_library.niSwitch_DisconnectAll.side_effect = MockFunctionCallError("niSwitch_DisconnectAll") + mock_library.niSwitch_DisconnectAll.return_value = 0 + mock_library.niSwitch_DisconnectMultiple.side_effect = MockFunctionCallError("niSwitch_DisconnectMultiple") + mock_library.niSwitch_DisconnectMultiple.return_value = 0 + mock_library.niSwitch_GetAttributeViBoolean.side_effect = MockFunctionCallError("niSwitch_GetAttributeViBoolean") + mock_library.niSwitch_GetAttributeViBoolean.return_value = 0 + mock_library.niSwitch_GetAttributeViInt32.side_effect = MockFunctionCallError("niSwitch_GetAttributeViInt32") + mock_library.niSwitch_GetAttributeViInt32.return_value = 0 + mock_library.niSwitch_GetAttributeViReal64.side_effect = MockFunctionCallError("niSwitch_GetAttributeViReal64") + mock_library.niSwitch_GetAttributeViReal64.return_value = 0 + mock_library.niSwitch_GetAttributeViString.side_effect = MockFunctionCallError("niSwitch_GetAttributeViString") + mock_library.niSwitch_GetAttributeViString.return_value = 0 + mock_library.niSwitch_GetChannelName.side_effect = MockFunctionCallError("niSwitch_GetChannelName") + mock_library.niSwitch_GetChannelName.return_value = 0 + mock_library.niSwitch_GetError.side_effect = MockFunctionCallError("niSwitch_GetError") + mock_library.niSwitch_GetError.return_value = 0 + mock_library.niSwitch_GetPath.side_effect = MockFunctionCallError("niSwitch_GetPath") + mock_library.niSwitch_GetPath.return_value = 0 + mock_library.niSwitch_GetRelayCount.side_effect = MockFunctionCallError("niSwitch_GetRelayCount") + mock_library.niSwitch_GetRelayCount.return_value = 0 + mock_library.niSwitch_GetRelayName.side_effect = MockFunctionCallError("niSwitch_GetRelayName") + mock_library.niSwitch_GetRelayName.return_value = 0 + mock_library.niSwitch_GetRelayPosition.side_effect = MockFunctionCallError("niSwitch_GetRelayPosition") + mock_library.niSwitch_GetRelayPosition.return_value = 0 + mock_library.niSwitch_InitWithTopology.side_effect = MockFunctionCallError("niSwitch_InitWithTopology") + mock_library.niSwitch_InitWithTopology.return_value = 0 + mock_library.niSwitch_InitiateScan.side_effect = MockFunctionCallError("niSwitch_InitiateScan") + mock_library.niSwitch_InitiateScan.return_value = 0 + mock_library.niSwitch_LockSession.side_effect = MockFunctionCallError("niSwitch_LockSession") + mock_library.niSwitch_LockSession.return_value = 0 + mock_library.niSwitch_RelayControl.side_effect = MockFunctionCallError("niSwitch_RelayControl") + mock_library.niSwitch_RelayControl.return_value = 0 + mock_library.niSwitch_ResetWithDefaults.side_effect = MockFunctionCallError("niSwitch_ResetWithDefaults") + mock_library.niSwitch_ResetWithDefaults.return_value = 0 + mock_library.niSwitch_RouteScanAdvancedOutput.side_effect = MockFunctionCallError("niSwitch_RouteScanAdvancedOutput") + mock_library.niSwitch_RouteScanAdvancedOutput.return_value = 0 + mock_library.niSwitch_RouteTriggerInput.side_effect = MockFunctionCallError("niSwitch_RouteTriggerInput") + mock_library.niSwitch_RouteTriggerInput.return_value = 0 + mock_library.niSwitch_SendSoftwareTrigger.side_effect = MockFunctionCallError("niSwitch_SendSoftwareTrigger") + mock_library.niSwitch_SendSoftwareTrigger.return_value = 0 + mock_library.niSwitch_SetAttributeViBoolean.side_effect = MockFunctionCallError("niSwitch_SetAttributeViBoolean") + mock_library.niSwitch_SetAttributeViBoolean.return_value = 0 + mock_library.niSwitch_SetAttributeViInt32.side_effect = MockFunctionCallError("niSwitch_SetAttributeViInt32") + mock_library.niSwitch_SetAttributeViInt32.return_value = 0 + mock_library.niSwitch_SetAttributeViReal64.side_effect = MockFunctionCallError("niSwitch_SetAttributeViReal64") + mock_library.niSwitch_SetAttributeViReal64.return_value = 0 + mock_library.niSwitch_SetAttributeViString.side_effect = MockFunctionCallError("niSwitch_SetAttributeViString") + mock_library.niSwitch_SetAttributeViString.return_value = 0 + mock_library.niSwitch_SetPath.side_effect = MockFunctionCallError("niSwitch_SetPath") + mock_library.niSwitch_SetPath.return_value = 0 + mock_library.niSwitch_SetRuntimeEnvironment.side_effect = MockFunctionCallError("niSwitch_SetRuntimeEnvironment") + mock_library.niSwitch_SetRuntimeEnvironment.return_value = 0 + mock_library.niSwitch_UnlockSession.side_effect = MockFunctionCallError("niSwitch_UnlockSession") + mock_library.niSwitch_UnlockSession.return_value = 0 + mock_library.niSwitch_WaitForDebounce.side_effect = MockFunctionCallError("niSwitch_WaitForDebounce") + mock_library.niSwitch_WaitForDebounce.return_value = 0 + mock_library.niSwitch_WaitForScanComplete.side_effect = MockFunctionCallError("niSwitch_WaitForScanComplete") + mock_library.niSwitch_WaitForScanComplete.return_value = 0 + mock_library.niSwitch_close.side_effect = MockFunctionCallError("niSwitch_close") + mock_library.niSwitch_close.return_value = 0 + mock_library.niSwitch_error_message.side_effect = MockFunctionCallError("niSwitch_error_message") + mock_library.niSwitch_error_message.return_value = 0 + mock_library.niSwitch_reset.side_effect = MockFunctionCallError("niSwitch_reset") + mock_library.niSwitch_reset.return_value = 0 + mock_library.niSwitch_self_test.side_effect = MockFunctionCallError("niSwitch_self_test") + mock_library.niSwitch_self_test.return_value = 0 diff --git a/generated/niswitch/setup.py b/generated/niswitch/setup.py new file mode 100644 index 0000000000..8a81e95772 --- /dev/null +++ b/generated/niswitch/setup.py @@ -0,0 +1,63 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'niswitch' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-SWITCH Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['niswitch'], + license='MIT', + include_package_data=True, + packages=['niswitch'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + ], + extras_require={ + 'grpc': [ + 'grpcio>=1.59.0,<2.0', + 'protobuf>=4.21.6', + 'ni.grpcdevice.v1.proto>=1.0.0', + 'nitlsconfig[grpc]>=1.0.0a2', + ], + }, + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/niswitch/tox-system_tests.ini b/generated/niswitch/tox-system_tests.ini new file mode 100644 index 0000000000..5c90eabb5e --- /dev/null +++ b/generated/niswitch/tox-system_tests.ini @@ -0,0 +1,65 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/niswitch) +[tox] +envlist = py{310,311,312,313,314}-niswitch-system_tests, py314-niswitch-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + niswitch-system_tests: Run niswitch system tests (requires NI-SWITCH runtime to be installed) + niswitch-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + niswitch-system_tests: . + niswitch-coverage: . + +commands = + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + niswitch-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + niswitch-system_tests: python -c "import niswitch; niswitch.print_diagnostic_information()" + niswitch-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niswitch --parallel-mode -m pytest ../../src/niswitch/examples --junitxml=../junit/junit-niswitch-{envname}-examples-{env:BITNESS:64}.xml {posargs} + niswitch-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source niswitch --parallel-mode -m pytest ../../src/niswitch/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-niswitch-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + niswitch-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + niswitch-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + niswitch-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + niswitch-system_tests: pytest < 9.2.0 + niswitch-system_tests: coverage + niswitch-system_tests: numpy + niswitch-system_tests: hightime + niswitch-system_tests: fasteners + niswitch-system_tests: pytest-json + niswitch-system_tests: .[grpc] + + niswitch-coverage: coverage + +depends = + niswitch-coverage: py{310,311,312,313,314}-niswitch-system_tests + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1 diff --git a/generated/nitclk/README.rst b/generated/nitclk/README.rst new file mode 100644 index 0000000000..ac26ea4ec6 --- /dev/null +++ b/generated/nitclk/README.rst @@ -0,0 +1,168 @@ +Overall Status +-------------- + ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| master branch status | |BuildStatus| |MITLicense| |CoverageStatus| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ +| GitHub status | |OpenIssues| |OpenPullRequests| | ++----------------------+------------------------------------------------------------------------------------------------------------------------------------+ + +=========== ============================================================================================================================ +Info NI Modular Instrument driver APIs for Python. +Author NI +=========== ============================================================================================================================ + +.. |BuildStatus| image:: https://github.com/ni/nimi-python/actions/workflows/CI.yml/badge.svg?branch=master + :alt: Build Status - master branch + :target: https://github.com/ni/nimi-python/actions/workflows/CI.yml + +.. |MITLicense| image:: https://img.shields.io/badge/License-MIT-yellow.svg + :alt: MIT License + :target: https://opensource.org/licenses/MIT + +.. |CoverageStatus| image:: https://codecov.io/github/ni/nimi-python/graph/badge.svg + :alt: Test Coverage - master branch + :target: https://codecov.io/github/ni/nimi-python + +.. |OpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python.svg + :alt: Open Issues + Pull Requests + :target: https://github.com/ni/nimi-python/issues + +.. |OpenPullRequests| image:: https://img.shields.io/github/issues-pr/ni/nimi-python.svg + :alt: Open Pull Requests + :target: https://github.com/ni/nimi-python/pulls + + +.. _about-section: + +About +===== + +The **nitclk** module provides a Python API for NI-TClk. The code is maintained in the Open Source repository for `nimi-python `_. + +Support Policy +-------------- +**nitclk** supports all the Operating Systems supported by NI-TClk. + +It follows `Python Software Foundation `_ support policy for different versions of CPython. + +NI created and supports **nitclk**. + + +NI-TClk Python API Status +------------------------- + ++-------------------------------+-----------------------+ +| NI-TClk (nitclk) | | ++===============================+=======================+ +| Driver Version Tested Against | 2026 Q4 | ++-------------------------------+-----------------------+ +| PyPI Version | |nitclkLatestVersion| | ++-------------------------------+-----------------------+ +| Supported Python Version | |nitclkPythonVersion| | ++-------------------------------+-----------------------+ +| Documentation | |nitclkDocs| | ++-------------------------------+-----------------------+ +| Open Issues | |nitclkOpenIssues| | ++-------------------------------+-----------------------+ +| Open Pull Requests | |nitclkOpenPRs| | ++-------------------------------+-----------------------+ + + +.. |nitclkLatestVersion| image:: http://img.shields.io/pypi/v/nitclk.svg + :alt: Latest NI-TClk Version + :target: http://pypi.python.org/pypi/nitclk + + +.. |nitclkPythonVersion| image:: http://img.shields.io/pypi/pyversions/nitclk.svg + :alt: NI-TClk supported Python versions + :target: http://pypi.python.org/pypi/nitclk + + +.. |nitclkDocs| image:: https://readthedocs.org/projects/nitclk/badge/?version=latest + :alt: NI-TClk Python API Documentation Status + :target: https://nitclk.readthedocs.io/en/latest + + +.. |nitclkOpenIssues| image:: https://img.shields.io/github/issues/ni/nimi-python/nitclk.svg + :alt: Open Issues + Pull Requests for NI-TClk + :target: https://github.com/ni/nimi-python/issues?q=is%3Aopen+is%3Aissue+label%3Anitclk + + +.. |nitclkOpenPRs| image:: https://img.shields.io/github/issues-pr/ni/nimi-python/nitclk.svg + :alt: Pull Requests for NI-TClk + :target: https://github.com/ni/nimi-python/pulls?q=is%3Aopen+is%3Aissue+label%3Anitclk + + + +.. _nitclk_installation-section: + +Installation +------------ + +As a prerequisite to using the **nitclk** module, you must install the NI-TClk runtime on your system. Visit `ni.com/downloads `_ to download the driver runtime for your devices. + +The nimi-python modules (i.e. for **NI-TClk**) can be installed with `pip `_:: + + $ python -m pip install nitclk + + +Contributing +============ + +We welcome contributions! You can clone the project repository, build it, and install it by `following these instructions `_. + +Usage +------ + +The following is a basic example of using the **nitclk** module + +.. code-block:: python + + import nitclk + +`Other usage examples can be found on GitHub. `_ + +.. _support-section: + +Support / Feedback +================== + +For support specific to the Python API, follow the processs in `Bugs / Feature Requests`_. +For support with hardware, the driver runtime or any other questions not specific to the Python API, please visit `NI Community Forums `_. + +.. _bugs-section: + +Bugs / Feature Requests +======================= + +To report a bug or submit a feature request specific to Python API, please use the +`GitHub issues page `_. + +Fill in the issue template as completely as possible and we will respond as soon +as we can. + + +.. _documentation-section: + +Documentation +============= + +Documentation is available `here `_. + + +.. _license-section: + +License +======= + +**nimi-python** is licensed under an MIT-style license (`see +LICENSE `_). +Other incorporated projects may be licensed under different licenses. All +licenses allow for non-commercial and commercial use. + + +**gRPC Features** + +For driver APIs that support it, passing a GrpcSessionOptions instance as a parameter to Session.__init__() is +subject to the NI General Purpose EULA (`see NILICENSE `_). \ No newline at end of file diff --git a/generated/nitclk/nitclk/VERSION b/generated/nitclk/nitclk/VERSION new file mode 100644 index 0000000000..d3f543b938 --- /dev/null +++ b/generated/nitclk/nitclk/VERSION @@ -0,0 +1,2 @@ +1.5.1.dev0 + diff --git a/generated/nitclk/nitclk/__init__.py b/generated/nitclk/nitclk/__init__.py new file mode 100644 index 0000000000..60e817d304 --- /dev/null +++ b/generated/nitclk/nitclk/__init__.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +__version__ = '1.5.1.dev0' + +from nitclk.errors import DriverWarning # noqa: F401 +from nitclk.errors import Error # noqa: F401 +from nitclk.session import SessionReference # noqa: F401 + +# Function imports +from nitclk.session import configure_for_homogeneous_triggers # noqa: F401 +from nitclk.session import finish_sync_pulse_sender_synchronize # noqa: F401 +from nitclk.session import initiate # noqa: F401 +from nitclk.session import is_done # noqa: F401 +from nitclk.session import setup_for_sync_pulse_sender_synchronize # noqa: F401 +from nitclk.session import synchronize # noqa: F401 +from nitclk.session import synchronize_to_sync_pulse_sender # noqa: F401 +from nitclk.session import wait_until_done # noqa: F401 + + +def get_diagnostic_information(): + '''Get diagnostic information about the system state that is suitable for printing or logging + + returns: dict + + note: Python bitness may be incorrect when running in a virtual environment + ''' + import importlib.metadata + import os + import platform + import struct + import sys + + def is_python_64bit(): + return (struct.calcsize("P") == 8) + + def is_os_64bit(): + return platform.machine().endswith('64') + + def is_venv(): + return 'VIRTUAL_ENV' in os.environ + + info = {} + info['os'] = {} + info['python'] = {} + info['driver'] = {} + info['module'] = {} + if platform.system() == 'Windows': + try: + import winreg as winreg + except ImportError: + import _winreg as winreg + + os_name = 'Windows' + try: + driver_version_key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\National Instruments\NI-TClk\CurrentVersion") + driver_version = winreg.QueryValueEx(driver_version_key, "Version")[0] + except WindowsError: + driver_version = 'Unknown' + elif platform.system() == 'Linux': + os_name = 'Linux' + driver_version = 'Unknown' + else: + raise SystemError('Unsupported platform: {}'.format(platform.system())) + + installed_packages_names = [ + name + for name_list in importlib.metadata.packages_distributions().values() + for name in name_list + ] + installed_packages_names = set(installed_packages_names) + installed_packages_list = [ + {'name': name, 'version': importlib.metadata.distribution(name).version} + for name in sorted(installed_packages_names) + ] + + info['os']['name'] = os_name + info['os']['version'] = platform.version() + info['os']['bits'] = '64' if is_os_64bit() else '32' + info['driver']['name'] = "NI-TClk" + info['driver']['version'] = driver_version + info['module']['name'] = 'nitclk' + info['module']['version'] = "1.5.1.dev0" + info['python']['version'] = sys.version + info['python']['bits'] = '64' if is_python_64bit() else '32' + info['python']['is_venv'] = is_venv() + info['python']['packages'] = installed_packages_list + + return info + + +def print_diagnostic_information(): + '''Print diagnostic information in a format suitable for issue report + + note: Python bitness may be incorrect when running in a virtual environment + ''' + info = get_diagnostic_information() + + row_format = ' {:<10} {}' + for type in ['OS', 'Driver', 'Module', 'Python']: + typename = type.lower() + print(type + ':') + for item in info[typename]: + if item != 'packages': + print(row_format.format(item.title() + ':', info[typename][item])) + print(' Installed Packages:') + for p in info['python']['packages']: + print((' ' * 8) + p['name'] + '==' + p['version']) + + return info diff --git a/generated/nitclk/nitclk/_attributes.py b/generated/nitclk/nitclk/_attributes.py new file mode 100644 index 0000000000..6086fd9e4d --- /dev/null +++ b/generated/nitclk/nitclk/_attributes.py @@ -0,0 +1,167 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nitclk._converters as _converters +import nitclk.errors as errors + +import hightime + + +class Attribute(object): + '''Base class for all typed attributes.''' + + def __init__(self, attribute_id): + self._attribute_id = attribute_id + + +class AttributeViInt32(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int32(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, value) + + +class AttributeViInt32TimeDeltaMilliseconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(milliseconds=session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_milliseconds_int32(value)) + + +class AttributeViInt32TimeDeltaMonths(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_month_to_timedelta(session._get_attribute_vi_int32(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_int32(self._attribute_id, _converters.convert_timedelta_to_months_int32(value)) + + +class AttributeViInt64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_int64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_int64(self._attribute_id, value) + + +class AttributeViReal64(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_real64(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, value) + + +class AttributeViReal64TimeDeltaSeconds(Attribute): + + def __get__(self, session, session_type): + return hightime.timedelta(seconds=session._get_attribute_vi_real64(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_real64(self._attribute_id, _converters.convert_timedelta_to_seconds_real64(value)) + + +class AttributeViString(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, value) + + +class AttributeViStringRepeatedCapability(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_string(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_repeated_capabilities_without_prefix(value)) + + +class AttributeViStringCommaSeparated(Attribute): + + def __get__(self, session, session_type): + return _converters.convert_comma_separated_string_to_list(session._get_attribute_vi_string(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_string(self._attribute_id, _converters.convert_list_to_comma_separated_string(value)) + + +class AttributeViBoolean(Attribute): + + def __get__(self, session, session_type): + return session._get_attribute_vi_boolean(self._attribute_id) + + def __set__(self, session, value): + session._set_attribute_vi_boolean(self._attribute_id, value) + + +class AttributeEnum(Attribute): + + def __init__(self, underlying_attribute_meta_class, enum_meta_class, attribute_id): + super(AttributeEnum, self).__init__(attribute_id) + self._underlying_attribute = underlying_attribute_meta_class(attribute_id) + self._attribute_type = enum_meta_class + + def __get__(self, session, session_type): + return self._attribute_type(self._underlying_attribute.__get__(session, session_type)) + + def __set__(self, session, value): + if type(value) is not self._attribute_type: + raise TypeError('must be ' + str(self._attribute_type.__name__) + ' not ' + str(type(value).__name__)) + return self._underlying_attribute.__set__(session, value.value) + + +class AttributeEnumWithConverter(Attribute): + '''Class for attributes that use enums internally but are exposed in the nitclk Python module as something else, thus need conversion.''' + + def __init__(self, underlying_attribute_enum, getter_converter, setter_converter): + '''Creates and returns an instance of AttributeEnumWithConverter attribute meta class. + + Args: + underlying_attribute_enum (AttributeEnum): The AttributeEnum instance for the underlying + enum + + getter_converter (function): The function that converts the enum value to its converted + value + + setter_converter (function): The function that converts the converted value back to the + enum value + ''' + super(AttributeEnumWithConverter, self).__init__(underlying_attribute_enum._attribute_id) + self._underlying_attribute_enum = underlying_attribute_enum + self._getter_converter = getter_converter + self._setter_converter = setter_converter + + def __get__(self, session, session_type): + try: + return self._getter_converter( + self._underlying_attribute_enum.__get__(session, session_type) + ) + except (KeyError, ValueError): + raise errors.DriverTooNewError() + + def __set__(self, session, value): + try: + return self._underlying_attribute_enum.__set__(session, self._setter_converter(value)) + except KeyError: + raise ValueError(f'Invalid value: {value}') + + +# nitclk specific attribute type +class AttributeSessionReference(Attribute): + + def __get__(self, session, session_type): + # Import here to avoid a circular dependency when initial import happens + from nitclk.session import SessionReference + return SessionReference(session._get_attribute_vi_session(self._attribute_id)) + + def __set__(self, session, value): + session._set_attribute_vi_session(self._attribute_id, _converters.convert_to_nitclk_session_number(value)) diff --git a/generated/nitclk/nitclk/_converters.py b/generated/nitclk/nitclk/_converters.py new file mode 100644 index 0000000000..8c1395257e --- /dev/null +++ b/generated/nitclk/nitclk/_converters.py @@ -0,0 +1,391 @@ +# -*- coding: utf-8 -*- +# This file was generated +import nitclk._visatype as _visatype +import nitclk.errors as errors + +import array +import collections +import hightime +import numbers + +from functools import singledispatch + + +@singledispatch +def _convert_repeated_capabilities(arg, prefix): # noqa: F811 + '''Base version that should not be called + + Overall purpose is to convert the repeated capabilities to a list of strings with prefix from what ever form + + Supported types: + - str - List (comma delimited) + - str - Range (using '-' or ':') + - str - single item + - int + - tuple + - range + - slice + + Each instance should return a list of strings, without prefix + - '0' --> ['0'] + - 0 --> ['0'] + - '0, 1' --> ['0', '1'] + - 'ScriptTrigger0, ScriptTrigger1' --> ['0', '1'] + - '0-1' --> ['0', '1'] + - '0:1' --> ['0', '1'] + - '0-1,4' --> ['0', '1', '4'] + - range(0, 2) --> ['0', '1'] + - slice(0, 2) --> ['0', '1'] + - (0, 1, 4) --> ['0', '1', '4'] + - ('0-1', 4) --> ['0', '1', '4'] + - (slice(0, 1), '2', [4, '5-6'], '7-9', '11:14', '16, 17') --> + ['0', '2', '4', '5', '6', '7', '8', '9', '11', '12', '13', '14', '16', '17'] + ''' + raise errors.InvalidRepeatedCapabilityError('Invalid type', type(arg)) + + +@_convert_repeated_capabilities.register(numbers.Integral) # noqa: F811 +def _(repeated_capability, prefix): + '''Integer version''' + return [str(repeated_capability)] + + +# This parsing function duplicate the parsing in the driver, so if changes to the allowed format are made there, they will need to be replicated here. +@_convert_repeated_capabilities.register(str) # noqa: F811 +def _(repeated_capability, prefix): + '''String version (this is the most complex) + + We need to deal with a range ('0-3' or '0:3'), a list ('0,1,2,3') and a single item + ''' + # First we deal with a list + rep_cap_list = repeated_capability.split(',') + if len(rep_cap_list) > 1: + # We have a list so call ourselves again to let the iterable instance handle it + return _convert_repeated_capabilities(rep_cap_list, prefix) + + # Now we deal with ranges + # We remove any prefix and change ':' to '-' + r = repeated_capability.strip().replace(prefix, '').replace(':', '-') + rc = r.split('-') + if len(rc) > 1: + if len(rc) > 2: + raise errors.InvalidRepeatedCapabilityError("Multiple '-' or ':'", repeated_capability) + try: + start = int(rc[0]) + end = int(rc[1]) + except ValueError: + # This exception is raised when repeated_capability is of the form "dev/0-1". rc[0] == "dev/0" in this case. + # Just return the repeated_capability string as-is in that case. + pass + else: + if end < start: + rng = range(start, end - 1, -1) + else: + rng = range(start, end + 1) + return _convert_repeated_capabilities(rng, prefix) + + # If we made it here, it must be a simple item so we remove any prefix and return + return [repeated_capability.replace(prefix, '').strip()] + + +# We cannot use collections.abc.Iterable here because strings are also iterable and then this +# instance is what gets called instead of the string one. +@_convert_repeated_capabilities.register(list) # noqa: F811 +@_convert_repeated_capabilities.register(range) # noqa: F811 +@_convert_repeated_capabilities.register(tuple) # noqa: F811 +def _(repeated_capability, prefix): + '''Iterable version - can handle lists, ranges, and tuples''' + rep_cap_list = [] + for r in repeated_capability: + rep_cap_list += _convert_repeated_capabilities(r, prefix) + return rep_cap_list + + +@_convert_repeated_capabilities.register(slice) # noqa: F811 +def _(repeated_capability, prefix): + '''slice version''' + def ifnone(a, b): + return b if a is None else a + # Turn the slice into a list and call ourselves again to let the iterable instance handle it + rng = range(ifnone(repeated_capability.start, 0), repeated_capability.stop, ifnone(repeated_capability.step, 1)) + return _convert_repeated_capabilities(rng, prefix) + + +def convert_repeated_capabilities(repeated_capability, prefix=''): + '''Convert a repeated capabilities object to a comma delimited list + + Args: + repeated_capability (str, list, tuple, slice, None) - + prefix (str) - common prefix for all strings + + Returns: + rep_cap_list (list of str) - list of each repeated capability item with ranges expanded and prefix added + ''' + # We need to explicitly handle None here. Everything else we can pass on to the singledispatch functions + if repeated_capability is None: + return [] + return [prefix + r for r in _convert_repeated_capabilities(repeated_capability, prefix)] + + +def convert_repeated_capabilities_without_prefix(repeated_capability): + '''Convert a repeated capabilities object, without any prefix, to a comma delimited list + + Args: + repeated_capability - Supported types: + - str - list (comma-delimited) + - str - range (using '-' or ':') + - str - single item + - int + - list of str + - tuple of str + - range of str + - slice of str + - None + + Returns: + rep_cap (str) - comma delimited string of each repeated capability item with ranges expanded + ''' + return ','.join(convert_repeated_capabilities(repeated_capability, '')) + + +def expand_channel_string(channel_string, all_channels_in_session): + '''Expands a channel_string to a list of individual channel names. + + The individual channel names may or may not be fully qualified channel names as applicable for + the session. In other words, the individual channel names will be a subset of + all_channels_in_session. + + Examples: + - expand_channel_string('1', ['0', '1', '2', '3']) --> ['1'] + - expand_channel_string('4,1:2', ['1', '2', '4']) --> ['4', '1', '2'] + - expand_channel_string('2:3,0', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/2', 'Dev1/3', 'Dev1/0'] + - expand_channel_string('Dev1/1', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3']) + --> ['Dev1/1'] + - expand_channel_string('4,Dev1/1:2', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/1', 'Dev1/2'] + - expand_channel_string('Dev1/4,Dev1/2,Dev1/3', ['Dev1/2', 'Dev1/3', 'Dev1/4']) + --> ['Dev1/4', 'Dev1/2', 'Dev1/3'] + - expand_channel_string('Dev1/1,Dev2/2', ['Dev1/0', 'Dev1/1', 'Dev1/2', 'Dev1/3', 'Dev2/0', 'Dev2/1', 'Dev2/2', 'Dev2/3']) + --> ['Dev1/1', 'Dev2/2'] + - expand_channel_string(' Dev1 / 1 : 2 , 4 ', ['Dev1/1', 'Dev1/2', 'Dev1/4']) + --> ['Dev1/1', 'Dev1/2', 'Dev1/4'] + - expand_channel_string('DEV1/0-1 , Dev1/3', ['dev1/0', 'dev1/1', 'dev1/2', 'dev1/3']) + --> ['dev1/0', 'dev1/1', 'dev1/3'] + + Args: + channel_string (str) - refer to _convert_repeated_capabilities() for the + supported formats (this string is expected to be used as the index of session.channels) + + all_channels_in_session (list of str) - names of all the channels in the session as returned + by get_channel_names() + + Returns: + channel_names (list of str) - A list in which each element is the name of a single channel, + with the exact capitalization used by the driver runtime. + ''' + if channel_string.strip() == '': + return all_channels_in_session + + # Rule 1: If all_channels_in_session is fully-qualified then returned channel names should be + # fully-qualified, otherwise returned channel names should not be fully-qualified. + # Rule 2: If any channel in the input is not fully-qualified, but we need to return + # fully-qualified channels because of Rule 1, then use the channel qualifier obtained + # from all_channels_in_session. This can only happen on a single-instrument session, + # so all the channel qualifiers are the same and we pick the first one. + + instrument, separator, channel = all_channels_in_session[0].rpartition('/') + default_channel_qualifier = instrument + separator + + expanded_channel_list = [] + for token in channel_string.split(','): + instrument, separator, channel = token.rpartition('/') + instrument = instrument.strip() + channel_qualifier = instrument + separator if instrument else default_channel_qualifier + expanded_channel_list.extend( + convert_repeated_capabilities(channel.strip(), channel_qualifier) + ) + + # Convert the expanded channel names to their canonical form based on all_channels_in_session + lowercase_channel_name_to_session_channel_name_dict = { + channel_name.lower(): channel_name for channel_name in all_channels_in_session + } + return [ + lowercase_channel_name_to_session_channel_name_dict[channel_name.lower()] + for channel_name in expanded_channel_list + ] + + +def _convert_timedelta(value, library_type, scaling): + try: + # We first assume it is a timedelta object + scaled_value = value.total_seconds() * scaling + except AttributeError: + # If that doesn't work, assume it is a value in seconds + # cast to float so scaled_value is always a float. This allows `timeout=10` to work as expected + scaled_value = float(value) * scaling + + # ctype integer types don't convert to int from float so we need to + if library_type in [_visatype.ViInt64, _visatype.ViInt32, _visatype.ViUInt32, _visatype.ViInt16, _visatype.ViUInt16, _visatype.ViInt8]: + scaled_value = int(scaled_value) + + return scaled_value + + +def convert_timedelta_to_seconds_real64(value): + return _convert_timedelta(value, _visatype.ViReal64, 1) + + +def convert_timedelta_to_milliseconds_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1000) + + +def convert_timedeltas_to_seconds_real64(values): + return [convert_timedelta_to_seconds_real64(i) for i in values] + + +def convert_seconds_real64_to_timedelta(value): + return hightime.timedelta(seconds=value) + + +def convert_seconds_real64_to_timedeltas(values): + return [convert_seconds_real64_to_timedelta(i) for i in values] + + +def convert_month_to_timedelta(months): + return hightime.timedelta(days=(30.4167 * months)) + + +# Scaling factor to apply on seconds to get months +# would be 1/(60 seconds * 60 minutes * 24 hours * 30.4167 days) +def convert_timedelta_to_months_int32(value): + return _convert_timedelta(value, _visatype.ViInt32, 1.0 / (60 * 60 * 24 * 30.4167)) + + +# This converter is not called from the normal codegen path for function. Instead it is +# call from init and is a special case. +def convert_init_with_options_dictionary(values): + if type(values) is str: + init_with_options_string = values + else: + good_keys = { + 'rangecheck': 'RangeCheck', + 'queryinstrstatus': 'QueryInstrStatus', + 'cache': 'Cache', + 'simulate': 'Simulate', + 'recordcoercions': 'RecordCoercions', + 'interchangecheck': 'InterchangeCheck', + 'driversetup': 'DriverSetup', + 'range_check': 'RangeCheck', + 'query_instr_status': 'QueryInstrStatus', + 'record_coercions': 'RecordCoercions', + 'interchange_check': 'InterchangeCheck', + 'driver_setup': 'DriverSetup', + } + init_with_options = [] + for k in sorted(values.keys()): + value = None + if k.lower() in good_keys and not good_keys[k.lower()] == 'DriverSetup': + value = good_keys[k.lower()] + ('=1' if values[k] is True else '=0') + elif k.lower() in good_keys and good_keys[k.lower()] == 'DriverSetup': + if not isinstance(values[k], dict): + raise TypeError('DriverSetup must be a dictionary') + value = 'DriverSetup=' + (';'.join([key + ':' + values[k][key] for key in sorted(values[k])])) + else: + value = k + ('=1' if values[k] is True else '=0') + + init_with_options.append(value) + + init_with_options_string = ','.join(init_with_options) + + return init_with_options_string + + +# convert value to bytes +@singledispatch +def _convert_to_bytes(value): # noqa: F811 + pass + + +@_convert_to_bytes.register(list) # noqa: F811 +@_convert_to_bytes.register(bytes) # noqa: F811 +@_convert_to_bytes.register(bytearray) # noqa: F811 +@_convert_to_bytes.register(array.array) # noqa: F811 +def _(value): + return value + + +@_convert_to_bytes.register(str) # noqa: F811 +def _(value): + return value.encode() + + +def convert_to_bytes(value): # noqa: F811 + return bytes(_convert_to_bytes(value)) + + +def convert_comma_separated_string_to_list(comma_separated_string): + return [x.strip() for x in comma_separated_string.split(',')] + + +def convert_list_to_comma_separated_string(list_of_strings): + '''Convert a list or tuple of strings into a comma-separated string. + + Args: + list_of_strings (list or tuple of str): List or tuple of strings. + + Returns: + str: Comma-separated string. + ''' + if not isinstance(list_of_strings, (list, tuple)) or not all(isinstance(item, str) for item in list_of_strings): + raise TypeError('Input must be a list or tuple of str') + return ','.join(list_of_strings) + + +def convert_chained_repeated_capability_to_parts(chained_repeated_capability): + '''Convert a chained repeated capabilities string to a list of comma-delimited repeated capabilities string. + + Converter assumes that the input contains the full cartesian product of its parts. + e.g. If chained_repeated_capability is 'site0/PinA,site0/PinB,site1/PinA,site1/PinB', + ['site0,site1', 'PinA,PinB'] is returned. + + Args: + chained_repeated_capability (str) - comma-delimited repeated capabilities string where each + item is a chain of slash-delimited repeated capabilities + + Returns: + rep_cap_list (list of str) - list of comma-delimited repeated capabilities string + ''' + chained_repeated_capability_items = convert_comma_separated_string_to_list(chained_repeated_capability) + repeated_capability_lists = [[] for _ in range(chained_repeated_capability_items[0].count('/') + 1)] + for item in chained_repeated_capability_items: + repeated_capability_lists = [x + [y] for x, y in zip(repeated_capability_lists, item.split('/'))] + return [','.join(collections.OrderedDict.fromkeys(x)) for x in repeated_capability_lists] + + +# nitclk specific converters +def convert_to_nitclk_session_number(item): + '''Convert from supported objects to NI-TClk Session Num + + Supported objects are: + - class with .tclk object of type nitclk.SessionReference + - nitclk.SessionReference + ''' + try: + return item.tclk._get_tclk_session_reference() + except AttributeError: + pass + + try: + return item._get_tclk_session_reference() + except AttributeError: + pass + + raise TypeError('Unsupported type for nitclk session: {}'.format(type(item))) + + +def convert_to_nitclk_session_number_list(item_list): + '''Converts a list of items to nitclk session nums''' + return [convert_to_nitclk_session_number(i) for i in item_list] + + diff --git a/generated/nitclk/nitclk/_library.py b/generated/nitclk/nitclk/_library.py new file mode 100644 index 0000000000..f8e44eae65 --- /dev/null +++ b/generated/nitclk/nitclk/_library.py @@ -0,0 +1,163 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import ctypes +import nitclk.errors as errors +import threading + +from nitclk._visatype import * # noqa: F403,H303 + + +class Library(object): + '''Library + + Wrapper around driver library. + Class will setup the correct ctypes information for every function on first call. + ''' + + def __init__(self, ctypes_library): + self._func_lock = threading.Lock() + self._library = ctypes_library + # We cache the cfunc object from the ctypes.CDLL object + self.niTClk_ConfigureForHomogeneousTriggers_cfunc = None + self.niTClk_FinishSyncPulseSenderSynchronize_cfunc = None + self.niTClk_GetAttributeViReal64_cfunc = None + self.niTClk_GetAttributeViSession_cfunc = None + self.niTClk_GetAttributeViString_cfunc = None + self.niTClk_GetExtendedErrorInfo_cfunc = None + self.niTClk_Initiate_cfunc = None + self.niTClk_IsDone_cfunc = None + self.niTClk_SetAttributeViReal64_cfunc = None + self.niTClk_SetAttributeViSession_cfunc = None + self.niTClk_SetAttributeViString_cfunc = None + self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc = None + self.niTClk_Synchronize_cfunc = None + self.niTClk_SynchronizeToSyncPulseSender_cfunc = None + self.niTClk_WaitUntilDone_cfunc = None + + def _get_library_function(self, name): + try: + function = getattr(self._library, name) + except AttributeError as e: + raise errors.DriverTooOldError() from e + return function + + def niTClk_ConfigureForHomogeneousTriggers(self, session_count, sessions): # noqa: N802 + with self._func_lock: + if self.niTClk_ConfigureForHomogeneousTriggers_cfunc is None: + self.niTClk_ConfigureForHomogeneousTriggers_cfunc = self._get_library_function('niTClk_ConfigureForHomogeneousTriggers') + self.niTClk_ConfigureForHomogeneousTriggers_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession)] # noqa: F405 + self.niTClk_ConfigureForHomogeneousTriggers_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_ConfigureForHomogeneousTriggers_cfunc(session_count, sessions) + + def niTClk_FinishSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 + with self._func_lock: + if self.niTClk_FinishSyncPulseSenderSynchronize_cfunc is None: + self.niTClk_FinishSyncPulseSenderSynchronize_cfunc = self._get_library_function('niTClk_FinishSyncPulseSenderSynchronize') + self.niTClk_FinishSyncPulseSenderSynchronize_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 + self.niTClk_FinishSyncPulseSenderSynchronize_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_FinishSyncPulseSenderSynchronize_cfunc(session_count, sessions, min_time) + + def niTClk_GetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niTClk_GetAttributeViReal64_cfunc is None: + self.niTClk_GetAttributeViReal64_cfunc = self._get_library_function('niTClk_GetAttributeViReal64') + self.niTClk_GetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViReal64)] # noqa: F405 + self.niTClk_GetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_GetAttributeViReal64_cfunc(session, channel_name, attribute_id, value) + + def niTClk_GetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niTClk_GetAttributeViSession_cfunc is None: + self.niTClk_GetAttributeViSession_cfunc = self._get_library_function('niTClk_GetAttributeViSession') + self.niTClk_GetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViSession)] # noqa: F405 + self.niTClk_GetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_GetAttributeViSession_cfunc(session, channel_name, attribute_id, value) + + def niTClk_GetAttributeViString(self, session, channel_name, attribute_id, buf_size, value): # noqa: N802 + with self._func_lock: + if self.niTClk_GetAttributeViString_cfunc is None: + self.niTClk_GetAttributeViString_cfunc = self._get_library_function('niTClk_GetAttributeViString') + self.niTClk_GetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViInt32, ctypes.POINTER(ViChar)] # noqa: F405 + self.niTClk_GetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_GetAttributeViString_cfunc(session, channel_name, attribute_id, buf_size, value) + + def niTClk_GetExtendedErrorInfo(self, error_string, error_string_size): # noqa: N802 + with self._func_lock: + if self.niTClk_GetExtendedErrorInfo_cfunc is None: + self.niTClk_GetExtendedErrorInfo_cfunc = self._get_library_function('niTClk_GetExtendedErrorInfo') + self.niTClk_GetExtendedErrorInfo_cfunc.argtypes = [ctypes.POINTER(ViChar), ViUInt32] # noqa: F405 + self.niTClk_GetExtendedErrorInfo_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_GetExtendedErrorInfo_cfunc(error_string, error_string_size) + + def niTClk_Initiate(self, session_count, sessions): # noqa: N802 + with self._func_lock: + if self.niTClk_Initiate_cfunc is None: + self.niTClk_Initiate_cfunc = self._get_library_function('niTClk_Initiate') + self.niTClk_Initiate_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession)] # noqa: F405 + self.niTClk_Initiate_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_Initiate_cfunc(session_count, sessions) + + def niTClk_IsDone(self, session_count, sessions, done): # noqa: N802 + with self._func_lock: + if self.niTClk_IsDone_cfunc is None: + self.niTClk_IsDone_cfunc = self._get_library_function('niTClk_IsDone') + self.niTClk_IsDone_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ctypes.POINTER(ViBoolean)] # noqa: F405 + self.niTClk_IsDone_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_IsDone_cfunc(session_count, sessions, done) + + def niTClk_SetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niTClk_SetAttributeViReal64_cfunc is None: + self.niTClk_SetAttributeViReal64_cfunc = self._get_library_function('niTClk_SetAttributeViReal64') + self.niTClk_SetAttributeViReal64_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViReal64] # noqa: F405 + self.niTClk_SetAttributeViReal64_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_SetAttributeViReal64_cfunc(session, channel_name, attribute_id, value) + + def niTClk_SetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niTClk_SetAttributeViSession_cfunc is None: + self.niTClk_SetAttributeViSession_cfunc = self._get_library_function('niTClk_SetAttributeViSession') + self.niTClk_SetAttributeViSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ViSession] # noqa: F405 + self.niTClk_SetAttributeViSession_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_SetAttributeViSession_cfunc(session, channel_name, attribute_id, value) + + def niTClk_SetAttributeViString(self, session, channel_name, attribute_id, value): # noqa: N802 + with self._func_lock: + if self.niTClk_SetAttributeViString_cfunc is None: + self.niTClk_SetAttributeViString_cfunc = self._get_library_function('niTClk_SetAttributeViString') + self.niTClk_SetAttributeViString_cfunc.argtypes = [ViSession, ctypes.POINTER(ViChar), ViAttr, ctypes.POINTER(ViChar)] # noqa: F405 + self.niTClk_SetAttributeViString_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_SetAttributeViString_cfunc(session, channel_name, attribute_id, value) + + def niTClk_SetupForSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 + with self._func_lock: + if self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc is None: + self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc = self._get_library_function('niTClk_SetupForSyncPulseSenderSynchronize') + self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 + self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_SetupForSyncPulseSenderSynchronize_cfunc(session_count, sessions, min_time) + + def niTClk_Synchronize(self, session_count, sessions, min_tclk_period): # noqa: N802 + with self._func_lock: + if self.niTClk_Synchronize_cfunc is None: + self.niTClk_Synchronize_cfunc = self._get_library_function('niTClk_Synchronize') + self.niTClk_Synchronize_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 + self.niTClk_Synchronize_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_Synchronize_cfunc(session_count, sessions, min_tclk_period) + + def niTClk_SynchronizeToSyncPulseSender(self, session_count, sessions, min_time): # noqa: N802 + with self._func_lock: + if self.niTClk_SynchronizeToSyncPulseSender_cfunc is None: + self.niTClk_SynchronizeToSyncPulseSender_cfunc = self._get_library_function('niTClk_SynchronizeToSyncPulseSender') + self.niTClk_SynchronizeToSyncPulseSender_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 + self.niTClk_SynchronizeToSyncPulseSender_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_SynchronizeToSyncPulseSender_cfunc(session_count, sessions, min_time) + + def niTClk_WaitUntilDone(self, session_count, sessions, timeout): # noqa: N802 + with self._func_lock: + if self.niTClk_WaitUntilDone_cfunc is None: + self.niTClk_WaitUntilDone_cfunc = self._get_library_function('niTClk_WaitUntilDone') + self.niTClk_WaitUntilDone_cfunc.argtypes = [ViUInt32, ctypes.POINTER(ViSession), ViReal64] # noqa: F405 + self.niTClk_WaitUntilDone_cfunc.restype = ViStatus # noqa: F405 + return self.niTClk_WaitUntilDone_cfunc(session_count, sessions, timeout) diff --git a/generated/nitclk/nitclk/_library_interpreter.py b/generated/nitclk/nitclk/_library_interpreter.py new file mode 100644 index 0000000000..8a23273dd6 --- /dev/null +++ b/generated/nitclk/nitclk/_library_interpreter.py @@ -0,0 +1,210 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import array +import ctypes +import hightime # noqa: F401 +import nitclk._library_singleton as _library_singleton +import nitclk._visatype as _visatype +import nitclk.errors as errors + + +# Helper functions for creating ctypes needed for calling into the driver DLL +def _get_ctypes_pointer_for_buffer(value=None, library_type=None, size=None): + if isinstance(value, array.array): + assert library_type is not None, 'library_type is required for array.array' + addr, _ = value.buffer_info() + return ctypes.cast(addr, ctypes.POINTER(library_type)) + elif str(type(value)).find("'numpy.ndarray'") != -1: + import numpy + return numpy.ctypeslib.as_ctypes(value) + elif isinstance(value, bytes): + return ctypes.cast(value, ctypes.POINTER(library_type)) + elif isinstance(value, list): + assert library_type is not None, 'library_type is required for list' + return (library_type * len(value))(*value) + else: + if library_type is not None and size is not None: + return (library_type * size)() + else: + return None + + +def _convert_to_array(value, array_type): + if value is not None: + if isinstance(value, array.array): + value_array = value + else: + value_array = array.array(array_type, value) + else: + value_array = None + + return value_array + + +class LibraryInterpreter(object): + '''Library C<->Python interpreter. + + This class is responsible for interpreting the Library's C API. It is responsible for: + * Converting ctypes to native Python types. + * Dealing with string encoding. + * Allocating memory. + * Converting errors returned by Library into Python exceptions. + ''' + + def __init__(self, encoding): + self._encoding = encoding + self._library = _library_singleton.get() + # Initialize _session_number to 0 for now. + # Session will directly update it once the driver runtime init function has been called and + # we have a valid session handle. + self.set_session_handle() + + def set_session_handle(self, value=0): + self._session_number = value + + def get_session_handle(self): + return self._session_number + + def get_error_description(self, error_code): + '''get_error_description + + Returns the error description. + ''' + try: + error_string = self.get_extended_error_info() + return error_string + except errors.Error: + return "Failed to retrieve error description." + + def configure_for_homogeneous_triggers(self, sessions): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + error_code = self._library.niTClk_ConfigureForHomogeneousTriggers(session_count_ctype, sessions_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def finish_sync_pulse_sender_synchronize(self, sessions, min_time): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + min_time_ctype = _visatype.ViReal64(min_time) # case S150 + error_code = self._library.niTClk_FinishSyncPulseSenderSynchronize(session_count_ctype, sessions_ctype, min_time_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def get_attribute_vi_real64(self, channel_name, attribute_id): # noqa: N802 + session_ctype = _visatype.ViSession(self._session_number) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViReal64() # case S220 + error_code = self._library.niTClk_GetAttributeViReal64(session_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return float(value_ctype.value) + + def get_attribute_vi_session(self, channel_name, attribute_id): # noqa: N802 + session_ctype = _visatype.ViSession(self._session_number) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViSession() # case S220 + error_code = self._library.niTClk_GetAttributeViSession(session_ctype, channel_name_ctype, attribute_id_ctype, None if value_ctype is None else (ctypes.pointer(value_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return int(value_ctype.value) + + def get_attribute_vi_string(self, channel_name, attribute_id): # noqa: N802 + session_ctype = _visatype.ViSession(self._session_number) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + buf_size_ctype = _visatype.ViInt32() # case S170 + value_ctype = None # case C050 + error_code = self._library.niTClk_GetAttributeViString(session_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=False) + buf_size_ctype = _visatype.ViInt32(error_code) # case S180 + value_ctype = (_visatype.ViChar * buf_size_ctype.value)() # case C060 + error_code = self._library.niTClk_GetAttributeViString(session_ctype, channel_name_ctype, attribute_id_ctype, buf_size_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return value_ctype.value.decode(self._encoding) + + def get_extended_error_info(self): # noqa: N802 + error_string_ctype = None # case C050 + error_string_size_ctype = _visatype.ViUInt32() # case S170 + error_code = self._library.niTClk_GetExtendedErrorInfo(error_string_ctype, error_string_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=True, is_error_handling=True) + error_string_size_ctype = _visatype.ViUInt32(error_code) # case S180 + error_string_ctype = (_visatype.ViChar * error_string_size_ctype.value)() # case C060 + error_code = self._library.niTClk_GetExtendedErrorInfo(error_string_ctype, error_string_size_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=True) + return error_string_ctype.value.decode(self._encoding) + + def initiate(self, sessions): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + error_code = self._library.niTClk_Initiate(session_count_ctype, sessions_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def is_done(self, sessions): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + done_ctype = _visatype.ViBoolean() # case S220 + error_code = self._library.niTClk_IsDone(session_count_ctype, sessions_ctype, None if done_ctype is None else (ctypes.pointer(done_ctype))) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return bool(done_ctype.value) + + def set_attribute_vi_real64(self, channel_name, attribute_id, value): # noqa: N802 + session_ctype = _visatype.ViSession(self._session_number) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViReal64(value) # case S150 + error_code = self._library.niTClk_SetAttributeViReal64(session_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_session(self, channel_name, attribute_id, value): # noqa: N802 + session_ctype = _visatype.ViSession(self._session_number) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = _visatype.ViSession(value) # case S150 + error_code = self._library.niTClk_SetAttributeViSession(session_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def set_attribute_vi_string(self, channel_name, attribute_id, value): # noqa: N802 + session_ctype = _visatype.ViSession(self._session_number) # case S110 + channel_name_ctype = ctypes.create_string_buffer(channel_name.encode(self._encoding)) # case C010 + attribute_id_ctype = _visatype.ViAttr(attribute_id) # case S150 + value_ctype = ctypes.create_string_buffer(value.encode(self._encoding)) # case C020 + error_code = self._library.niTClk_SetAttributeViString(session_ctype, channel_name_ctype, attribute_id_ctype, value_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def setup_for_sync_pulse_sender_synchronize(self, sessions, min_time): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + min_time_ctype = _visatype.ViReal64(min_time) # case S150 + error_code = self._library.niTClk_SetupForSyncPulseSenderSynchronize(session_count_ctype, sessions_ctype, min_time_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def synchronize(self, sessions, min_tclk_period): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + min_tclk_period_ctype = _visatype.ViReal64(min_tclk_period) # case S150 + error_code = self._library.niTClk_Synchronize(session_count_ctype, sessions_ctype, min_tclk_period_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def synchronize_to_sync_pulse_sender(self, sessions, min_time): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + min_time_ctype = _visatype.ViReal64(min_time) # case S150 + error_code = self._library.niTClk_SynchronizeToSyncPulseSender(session_count_ctype, sessions_ctype, min_time_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return + + def wait_until_done(self, sessions, timeout): # noqa: N802 + session_count_ctype = _visatype.ViUInt32(0 if sessions is None else len(sessions)) # case S160 + sessions_ctype = _get_ctypes_pointer_for_buffer(value=sessions, library_type=_visatype.ViSession) # case B550 + timeout_ctype = _visatype.ViReal64(timeout) # case S150 + error_code = self._library.niTClk_WaitUntilDone(session_count_ctype, sessions_ctype, timeout_ctype) + errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False) + return diff --git a/generated/nitclk/nitclk/_library_singleton.py b/generated/nitclk/nitclk/_library_singleton.py new file mode 100644 index 0000000000..38ca52d316 --- /dev/null +++ b/generated/nitclk/nitclk/_library_singleton.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# This file was generated + +import platform + +import ctypes +import ctypes.util +import nitclk._library as _library +import nitclk.errors as errors +import threading + + +_instance = None +_instance_lock = threading.Lock() +_library_info = {'Linux': {'64bit': {'name': 'nitclk', 'type': 'cdll'}}, + 'Windows': {'32bit': {'name': 'niTClk.dll', 'type': 'windll'}, + '64bit': {'name': 'niTClk_64.dll', 'type': 'cdll'}}} + + +def _get_library_name(): + try: + lib_name = ctypes.util.find_library(_library_info[platform.system()][platform.architecture()[0]]['name']) # We find and return full path to the DLL + if lib_name is None: + raise errors.DriverNotInstalledError() + return lib_name + except KeyError: + raise errors.UnsupportedConfigurationError + + +def _get_library_type(): + try: + return _library_info[platform.system()][platform.architecture()[0]]['type'] + except KeyError: + raise errors.UnsupportedConfigurationError + + +def get(): + '''get + + Returns the library.Library singleton for nitclk. + ''' + global _instance + + with _instance_lock: + if _instance is None: + try: + library_type = _get_library_type() + if library_type == 'windll': + ctypes_library = ctypes.WinDLL(_get_library_name()) + else: + assert library_type == 'cdll' + ctypes_library = ctypes.CDLL(_get_library_name()) + except OSError: + raise errors.DriverNotInstalledError() + _instance = _library.Library(ctypes_library) + return _instance + diff --git a/generated/nitclk/nitclk/_visatype.py b/generated/nitclk/nitclk/_visatype.py new file mode 100644 index 0000000000..f4da87aa79 --- /dev/null +++ b/generated/nitclk/nitclk/_visatype.py @@ -0,0 +1,29 @@ +import ctypes + + +'''Definitions of the VISA types used by the C API of the driver runtime. +These are aliased directly to ctypes types so can be used directly to call into the library. +''' + + +ViChar = ctypes.c_char +ViInt8 = ctypes.c_int8 +ViUInt8 = ctypes.c_uint8 +ViInt16 = ctypes.c_int16 +ViUInt16 = ctypes.c_uint16 +ViInt32 = ctypes.c_int32 +ViUInt32 = ctypes.c_uint32 +ViInt64 = ctypes.c_int64 +ViUInt64 = ctypes.c_uint64 +ViString = ctypes.c_char_p +ViReal32 = ctypes.c_float +ViReal64 = ctypes.c_double + +# Types that are based on other visatypes +ViBoolean = ViUInt16 +ViStatus = ViInt32 +ViSession = ViUInt32 +ViAttr = ViUInt32 +ViConstString = ViString +ViRsrc = ViString + diff --git a/generated/nitclk/nitclk/errors.py b/generated/nitclk/nitclk/errors.py new file mode 100644 index 0000000000..f371d699fd --- /dev/null +++ b/generated/nitclk/nitclk/errors.py @@ -0,0 +1,96 @@ +# -*- coding: utf-8 -*- +# This file was generated + + +import platform +import warnings + + +def _is_success(code): + return (code == 0) + + +def _is_error(code): + return (code < 0) + + +def _is_warning(code): + return (code > 0) + + +class Error(Exception): + '''Base error class for NI-TClk''' + + def __init__(self, message): + super(Error, self).__init__(message) + + +class DriverError(Error): + '''An error originating from the NI-TClk driver''' + + def __init__(self, code, description): + assert _is_error(code), "Should not raise Error if code is not fatal." + self.code = code + self.description = description + super(DriverError, self).__init__(str(self.code) + ": " + self.description) + + +class DriverWarning(Warning): + '''A warning originating from the NI-TClk driver''' + + def __init__(self, code, description): + assert _is_warning(code), "Should not create Warning if code is not positive." + super(DriverWarning, self).__init__('Warning {} occurred.\n\n{}'.format(code, description)) + + +class UnsupportedConfigurationError(Error): + '''An error due to using this module in an usupported platform.''' + + def __init__(self): + super(UnsupportedConfigurationError, self).__init__('System configuration is unsupported: ' + platform.architecture()[0] + ' ' + platform.system()) + + +class DriverNotInstalledError(Error): + '''An error due to using this module without the driver runtime installed.''' + + def __init__(self): + super(DriverNotInstalledError, self).__init__('The NI-TClk runtime could not be loaded. Make sure it is installed and its bitness matches that of your Python interpreter. Please visit http://www.ni.com/downloads/drivers/ to download and install it.') + + +class DriverTooOldError(Error): + '''An error due to using this module with an older version of the NI-TClk driver runtime.''' + + def __init__(self): + super(DriverTooOldError, self).__init__('A function was not found in the NI-TClk runtime. Please visit http://www.ni.com/downloads/drivers/ to download a newer version and install it.') + + +class DriverTooNewError(Error): + '''An error due to the NI-TClk driver runtime being too new for this module.''' + + def __init__(self): + super(DriverTooNewError, self).__init__('The NI-TClk runtime returned an unexpected value. This can occur if it is too new for the nitclk Python module. Upgrade the nitclk Python module.') + + +def handle_error(library_interpreter, code, ignore_warnings, is_error_handling): + '''handle_error + + Helper function for handling errors returned by nitclk.Library. + It calls back into the LibraryInterpreter to get the corresponding error + description and raises if necessary. + ''' + + if _is_success(code) or (_is_warning(code) and ignore_warnings): + return + + if is_error_handling: + # The caller is in the midst of error handling and an error occurred. + # Don't try to get the description or we'll start recursing until the stack overflows. + description = '' + else: + description = library_interpreter.get_error_description(code) + + if _is_error(code): + raise DriverError(code, description) + + assert _is_warning(code) + warnings.warn(DriverWarning(code, description)) diff --git a/generated/nitclk/nitclk/session.py b/generated/nitclk/nitclk/session.py new file mode 100644 index 0000000000..ed859bdd1e --- /dev/null +++ b/generated/nitclk/nitclk/session.py @@ -0,0 +1,876 @@ +# This file was generated + +import hightime + +import nitclk._attributes as _attributes +import nitclk._converters as _converters +import nitclk._library_interpreter as _library_interpreter + +# Used for __repr__ and __str__ +import pprint +pp = pprint.PrettyPrinter(indent=4) + + +class SessionReference(object): + '''Properties container for NI-TClk attributes. + + Note: Constructing this class is an advanced use case and should not be needed in most circumstances. + ''' + + # This is needed during __init__. Without it, __setattr__ raises an exception + _is_frozen = False + + exported_sync_pulse_output_terminal = _attributes.AttributeViString(2) + '''Type: str + + Specifies the destination of the Sync Pulse. This property is most often used when synchronizing a multichassis system. + Values + Empty string. Empty string is a valid value, indicating that the signal is not exported. + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value is empty string + ''' + exported_tclk_output_terminal = _attributes.AttributeViString(9) + '''Type: str + + Specifies the destination of the device's TClk signal. + Values + Empty string. Empty string is a valid value, indicating that the signal is not exported. + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value is empty string + ''' + pause_trigger_master_session = _attributes.AttributeSessionReference(6) + '''Type: instrument-specific session or an instance of nitclk.SessionReference + + Specifies the pause trigger master session. + For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. + ''' + ref_trigger_master_session = _attributes.AttributeSessionReference(4) + '''Type: instrument-specific session or an instance of nitclk.SessionReference + + Specifies the reference trigger master session. + For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. + ''' + sample_clock_delay = _attributes.AttributeViReal64TimeDeltaSeconds(11) + '''Type: hightime.timedelta, datetime.timedelta, or float in seconds + + Specifies the sample clock delay. + Specifies the delay, in seconds, to apply to the session sample clock relative to the other synchronized sessions. During synchronization, NI-TClk aligns the sample clocks on the synchronized devices. If you want to delay the sample clocks, set this property before calling synchronize. + not supported for acquisition sessions. + Values - Between minus one and plus one period of the sample clock. + One sample clock period is equal to (1/sample clock rate). For example, for a session with sample rate of 100 MS/s, you can specify sample clock delays between -10.0 ns and +10.0 ns. + Default Value is 0 + + Note: Sample clock delay is supported for generation sessions only; it is + ''' + sequencer_flag_master_session = _attributes.AttributeSessionReference(16) + '''Type: instrument-specific session or an instance of nitclk.SessionReference + + Specifies the sequencer flag master session. + For external triggers, the session that originally receives the trigger. + For None (no trigger configured) or software triggers, the session that + originally generates the trigger. + ''' + start_trigger_master_session = _attributes.AttributeSessionReference(3) + '''Type: instrument-specific session or an instance of nitclk.SessionReference + + Specifies the start trigger master session. + For external triggers, the session that originally receives the trigger. For None (no trigger configured) or software triggers, the session that originally generates the trigger. + ''' + sync_pulse_clock_source = _attributes.AttributeViString(10) + '''Type: str + + Specifies the Sync Pulse Clock source. This property is typically used to synchronize PCI devices when you want to control RTSI 7 yourself. Make sure that a 10 MHz clock is driven onto RTSI 7. + Values + PCI Devices - 'RTSI_7' and 'None' + PXI Devices - 'PXI_CLK10' and 'None' + Default Value - 'None' directs synchronize to create the necessary routes. For PCI, one of the synchronized devices drives a 10 MHz clock on RTSI 7 unless that line is already being driven. + ''' + sync_pulse_sender_sync_pulse_source = _attributes.AttributeViString(13) + '''Type: str + + Specifies the external sync pulse source for the Sync Pulse Sender. You can use this source to synchronize the Sync Pulse Sender with an external non-TClk source. + Values + Empty string. Empty string is a valid value, indicating that the signal is not exported. + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI4', and 'PFI5' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value is empty string + ''' + sync_pulse_source = _attributes.AttributeViString(1) + '''Type: str + + Specifies the Sync Pulse source. This property is most often used when synchronizing a multichassis system. + Values + Empty string + PXI Devices - 'PXI_Trig0' through 'PXI_Trig7' and device-specific settings + PCI Devices - 'RTSI_0' through 'RTSI_7' and device-specific settings + Examples of Device-Specific Settings + - NI PXI-5122 supports 'PFI0' and 'PFI1' + - NI PXI-5421 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + - NI PXI-6551/6552 supports 'PFI0', 'PFI1', 'PFI2', and 'PFI3' + Default Value - Empty string. This default value directs synchronize to set this property when all the synchronized devices are in one PXI chassis. To synchronize a multichassis system, you must set this property before calling synchronize. + ''' + tclk_actual_period = _attributes.AttributeViReal64(8) + '''Type: float + + Indicates the computed TClk period that will be used during the acquisition. + ''' + + def __init__(self, session_number, encoding='windows-1251'): + self._interpreter = _library_interpreter.LibraryInterpreter(encoding) + self._interpreter.set_session_handle(session_number) + # We need a self._repeated_capability string for passing down to function calls on the LibraryInterpreter class. We just need to set it to empty string. + self._repeated_capability = '' + + # Store the parameter list for later printing in __repr__ + param_list = [] + param_list.append("session_number=" + pp.pformat(session_number)) + param_list.append("encoding=" + pp.pformat(encoding)) + self._param_list = ', '.join(param_list) + + self._is_frozen = True + + def __repr__(self): + return '{0}.{1}({2})'.format('nitclk', self.__class__.__name__, self._param_list) + + def __setattr__(self, key, value): + if self._is_frozen and key not in dir(self): + raise AttributeError("'{0}' object has no attribute '{1}'".format(type(self).__name__, key)) + object.__setattr__(self, key, value) + + def _get_tclk_session_reference(self): + return self._interpreter.get_session_handle() + + def _get_attribute_vi_real64(self, attribute_id): + r'''_get_attribute_vi_real64 + + Gets the value of an NI-TClk ViReal64 property. + + Tip: + This method can be called on specific channels within your :py:class:`nitclk.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_real64` + + Args: + attribute_id (int): The ID of the property that you want to get Supported Property + sample_clock_delay + + + Returns: + value (float): The value that you are getting + + ''' + value = self._interpreter.get_attribute_vi_real64(self._repeated_capability, attribute_id) + return value + + def _get_attribute_vi_session(self, attribute_id): + r'''_get_attribute_vi_session + + Gets the value of an NI-TClk ViSession property. + + Tip: + This method can be called on specific channels within your :py:class:`nitclk.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_session` + + To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_session` + + Args: + attribute_id (int): The ID of the property that you want to set Supported Properties + start_trigger_master_session + ref_trigger_master_session + pause_trigger_master_session + + + Returns: + value (int): The value that you are getting + + ''' + value = self._interpreter.get_attribute_vi_session(self._repeated_capability, attribute_id) + return value + + def _get_attribute_vi_string(self, attribute_id): + r'''_get_attribute_vi_string + + This method queries the value of an NI-TClk ViString property. You + must provide a ViChar array to serve as a buffer for the value. You pass + the number of bytes in the buffer as bufSize. If the current value of + the property, including the terminating NULL byte, is larger than the + size you indicate in bufSize, the method copies bufSize minus 1 bytes + into the buffer, places an ASCII NULL byte at the end of the buffer, and + returns the array size that you must pass to get the entire value. For + example, if the value is "123456" and bufSize is 4, the method places + "123" into the buffer and returns 7. If you want to call + _get_attribute_vi_string just to get the required array size, pass 0 + for bufSize and VI_NULL for the value. + + Tip: + This method can be called on specific channels within your :py:class:`nitclk.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._get_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. + + Example: :py:meth:`my_session._get_attribute_vi_string` + + Args: + attribute_id (int): The ID of the property that you want to get Supported Properties + sync_pulse_source + sync_pulse_clock_source + exported_sync_pulse_output_terminal + + + Returns: + value (str): The value that you are getting + + ''' + value = self._interpreter.get_attribute_vi_string(self._repeated_capability, attribute_id) + return value + + def _set_attribute_vi_real64(self, attribute_id, value): + r'''_set_attribute_vi_real64 + + Sets the value of an NI-TClk VIReal64 property. + _set_attribute_vi_real64 is a low-level method that you can use to + set the values NI-TClk properties. NI-TClk contains high-level methods + that set most of the properties. It is best to use the high-level + methods as much as possible. + + Tip: + This method can be called on specific channels within your :py:class:`nitclk.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_real64` + + To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_real64` + + Args: + attribute_id (int): The ID of the property that you want to set Supported Property + sample_clock_delay + + value (float): The value for the property + + ''' + self._interpreter.set_attribute_vi_real64(self._repeated_capability, attribute_id, value) + + def _set_attribute_vi_session(self, attribute_id, value): + r'''_set_attribute_vi_session + + Sets the value of an NI-TClk ViSession property. + _set_attribute_vi_session is a low-level method that you can use + to set the values NI-TClk properties. NI-TClk contains high-level + methods that set most of the properties. It is best to use the + high-level methods as much as possible. + + Tip: + This method can be called on specific channels within your :py:class:`nitclk.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_session` + + To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_session` + + Args: + attribute_id (int): The ID of the property that you want to set Supported Properties + start_trigger_master_session + ref_trigger_master_session + pause_trigger_master_session + + value (int): The value for the property + + ''' + self._interpreter.set_attribute_vi_session(self._repeated_capability, attribute_id, value) + + def _set_attribute_vi_string(self, attribute_id, value): + r'''_set_attribute_vi_string + + Sets the value of an NI-TClk VIString property. + _set_attribute_vi_string is a low-level method that you can use to + set the values of NI-TClk properties. NI-TClk contain high-level + methods that set most of the properties. It is best to use the + high-level methods as much as possible. + + Tip: + This method can be called on specific channels within your :py:class:`nitclk.Session` instance. + Use Python index notation on the repeated capabilities container channels to specify a subset, + and then call this method on the result. + + Example: :py:meth:`my_session.channels[ ... ]._set_attribute_vi_string` + + To call the method on all channels, you can call it directly on the :py:class:`nitclk.Session`. + + Example: :py:meth:`my_session._set_attribute_vi_string` + + Args: + attribute_id (int): Pass the ID of the property that you want to set Supported Properties + sync_pulse_source + sync_pulse_clock_source + exported_sync_pulse_output_terminal + + value (str): Pass the value for the property + + ''' + self._interpreter.set_attribute_vi_string(self._repeated_capability, attribute_id, value) + + +class _Session(object): + '''Private class + + This class allows reusing function templates that are used in all other drivers. If + we don't do this, we would need new template(s) that the only difference is in the + indentation. + ''' + + def __init__(self): + self._interpreter = _library_interpreter.LibraryInterpreter('windows-1251') + + # Instantiate any repeated capability objects + + # Store the parameter list for later printing in __repr__ + param_list = [] + self._param_list = ', '.join(param_list) + + self._is_frozen = True + + ''' These are code-generated ''' + + def configure_for_homogeneous_triggers(self, sessions): + r'''configure_for_homogeneous_triggers + + Configures the properties commonly required for the TClk synchronization + of device sessions with homogeneous triggers in a single PXI chassis or + a single PC. Use configure_for_homogeneous_triggers to configure + the properties for the reference clocks, start triggers, reference + triggers, script triggers, and pause triggers. If + configure_for_homogeneous_triggers cannot perform all the steps + appropriate for the given sessions, it returns an error. If an error is + returned, use the instrument driver methods and properties for signal + routing, along with the following NI-TClk properties: + start_trigger_master_session + ref_trigger_master_session + pause_trigger_master_session + configure_for_homogeneous_triggers affects the following clocks and + triggers: - Reference clocks - Start triggers - Reference triggers - + Script triggers - Pause triggers Reference Clocks + configure_for_homogeneous_triggers configures the reference clocks + if they are needed. Specifically, if the internal sample clocks or + internal sample clock timebases are used, and the reference clock source + is not configured--or is set to None (no trigger + configured)--configure_for_homogeneous_triggers configures the + following: PXI--The reference clock source on all devices is set to be + the 10 MHz PXI backplane clock (PXI_CLK10). PCI--One of the devices + exports its 10 MHz onboard reference clock to RTSI 7. The reference + clock source on all devices is set to be RTSI 7. Note: If the reference + clock source is set to a value other than None, + configure_for_homogeneous_triggers cannot configure the reference + clock source. Start Triggers If the start trigger is set to None (no + trigger configured) for all sessions, the sessions are configured to + share the start trigger. The start trigger is shared by: - Implicitly + exporting the start trigger from one session - Configuring the other + sessions for digital edge start triggers with sources corresponding to + the exported start trigger - Setting + start_trigger_master_session to the session that is + exporting the trigger for all sessions If the start triggers are None + for all except one session, configure_for_homogeneous_triggers + configures the sessions to share the start trigger from the one excepted + session. The start trigger is shared by: - Implicitly exporting start + trigger from the session with the start trigger that is not None - + Configuring the other sessions for digital-edge start triggers with + sources corresponding to the exported start trigger - Setting + start_trigger_master_session to the session that is + exporting the trigger for all sessions If start triggers are configured + for all sessions, configure_for_homogeneous_triggers does not + affect the start triggers. Start triggers are considered to be + configured for all sessions if either of the following conditions is + true: - No session has a start trigger that is None - One session has a + start trigger that is None, and all other sessions have start triggers + other than None. The one session with the None trigger must have + start_trigger_master_session set to itself, indicating + that the session itself is the start trigger master Reference Triggers + configure_for_homogeneous_triggers configures sessions that support + reference triggers to share the reference triggers if the reference + triggers are None (no trigger configured) for all except one session. + The reference triggers are shared by: - Implicitly exporting the + reference trigger from the session whose reference trigger is not None - + Configuring the other sessions that support the reference trigger for + digital-edge reference triggers with sources corresponding to the + exported reference trigger - Setting + ref_trigger_master_session to the session that is + exporting the trigger for all sessions that support reference trigger If + the reference triggers are configured for all sessions that support + reference triggers, configure_for_homogeneous_triggers does not + affect the reference triggers. Reference triggers are considered to be + configured for all sessions if either one or the other of the following + conditions is true: - No session has a reference trigger that is None - + One session has a reference trigger that is None, and all other sessions + have reference triggers other than None. The one session with the None + trigger must have ref_trigger_master_session set to + itself, indicating that the session itself is the reference trigger + master Reference Trigger Holdoffs Acquisition sessions may be configured + with the reference trigger. For acquisition sessions, when the reference + trigger is shared, configure_for_homogeneous_triggers configures + the holdoff properties (which are instrument driver specific) on the + reference trigger master session so that the session does not recognize + the reference trigger before the other sessions are ready. This + condition is only relevant when the sample clock rates, sample clock + timebase rates, sample counts, holdoffs, and/or any delays for the + acquisitions are different. When the sample clock rates, sample clock + timebase rates, and/or the sample counts are different in acquisition + sessions sharing the reference trigger, you should also set the holdoff + properties for the reference trigger master using the instrument driver. + Pause Triggers + configure_for_homogeneous_triggers configures generation sessions + that support pause triggers to share them, if the pause triggers are + None (no trigger configured) for all except one session. The pause + triggers are shared by: - Implicitly exporting the pause trigger from + the session whose script trigger is not None - Configuring the other + sessions that support the pause trigger for digital-edge pause triggers + with sources corresponding to the exported pause trigger - Setting + pause_trigger_master_session to the session that is + exporting the trigger for all sessions that support script triggers If + the pause triggers are configured for all generation sessions that + support pause triggers, configure_for_homogeneous_triggers does not + affect pause triggers. Pause triggers are considered to be configured + for all sessions if either one or the other of the following conditions + is true: - No session has a pause trigger that is None - One session has + a pause trigger that is None and all other sessions have pause triggers + other than None. The one session with the None trigger must have + pause_trigger_master_session set to itself, indicating + that the session itself is the pause trigger master Note: TClk + synchronization is not supported for pause triggers on acquisition + sessions. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + self._interpreter.configure_for_homogeneous_triggers(sessions) + + def finish_sync_pulse_sender_synchronize(self, sessions, min_time=hightime.timedelta(seconds=0.0)): + r'''finish_sync_pulse_sender_synchronize + + Finishes synchronizing the Sync Pulse Sender. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + min_time = _converters.convert_timedelta_to_seconds_real64(min_time) + self._interpreter.finish_sync_pulse_sender_synchronize(sessions, min_time) + + def initiate(self, sessions): + r'''initiate + + Initiates the acquisition or generation sessions specified, taking into + consideration any special requirements needed for synchronization. For + example, the session exporting the TClk-synchronized start trigger is + not initiated until after initiate initiates all the sessions + that import the TClk-synchronized start trigger. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + self._interpreter.initiate(sessions) + + def is_done(self, sessions): + r'''is_done + + Monitors the progress of the acquisitions and/or generations + corresponding to sessions. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + + Returns: + done (bool): Indicates that the operation is done. The operation is done when each + session has completed without any errors or when any one of the sessions + reports an error. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + done = self._interpreter.is_done(sessions) + return done + + def setup_for_sync_pulse_sender_synchronize(self, sessions, min_time=hightime.timedelta(seconds=0.0)): + r'''setup_for_sync_pulse_sender_synchronize + + Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + min_time = _converters.convert_timedelta_to_seconds_real64(min_time) + self._interpreter.setup_for_sync_pulse_sender_synchronize(sessions, min_time) + + def synchronize(self, sessions, min_tclk_period=hightime.timedelta(seconds=0.0)): + r'''synchronize + + Synchronizes the TClk signals on the given sessions. After + synchronize executes, TClk signals from all sessions are + synchronized. Note: Before using this NI-TClk method, verify that your + system is configured as specified in the PXI Trigger Lines and RTSI + Lines topic of the NI-TClk Synchronization Help. You can locate this + help file at Start>>Programs>>National Instruments>>NI-TClk. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_tclk_period (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + min_tclk_period = _converters.convert_timedelta_to_seconds_real64(min_tclk_period) + self._interpreter.synchronize(sessions, min_tclk_period) + + def synchronize_to_sync_pulse_sender(self, sessions, min_time=hightime.timedelta(seconds=0.0)): + r'''synchronize_to_sync_pulse_sender + + Synchronizes the other devices to the Sync Pulse Sender. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + min_time = _converters.convert_timedelta_to_seconds_real64(min_time) + self._interpreter.synchronize_to_sync_pulse_sender(sessions, min_time) + + def wait_until_done(self, sessions, timeout=hightime.timedelta(seconds=0.0)): + r'''wait_until_done + + Call this method to pause execution of your program until the + acquisitions and/or generations corresponding to sessions are done or + until the method returns a timeout error. wait_until_done is a + blocking method that periodically checks the operation status. It + returns control to the calling program if the operation completes + successfully or an error occurs (including a timeout error). This + method is most useful for finite data operations that you expect to + complete within a certain time. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The amount of time in seconds that wait_until_done waits for the + sessions to complete. If timeout is exceeded, wait_until_done + returns an error. + + ''' + sessions = _converters.convert_to_nitclk_session_number_list(sessions) + timeout = _converters.convert_timedelta_to_seconds_real64(timeout) + self._interpreter.wait_until_done(sessions, timeout) + + +def configure_for_homogeneous_triggers(sessions): + '''configure_for_homogeneous_triggers + + Configures the properties commonly required for the TClk synchronization + of device sessions with homogeneous triggers in a single PXI chassis or + a single PC. Use configure_for_homogeneous_triggers to configure + the properties for the reference clocks, start triggers, reference + triggers, script triggers, and pause triggers. If + configure_for_homogeneous_triggers cannot perform all the steps + appropriate for the given sessions, it returns an error. If an error is + returned, use the instrument driver methods and properties for signal + routing, along with the following NI-TClk properties: + start_trigger_master_session + ref_trigger_master_session + pause_trigger_master_session + configure_for_homogeneous_triggers affects the following clocks and + triggers: - Reference clocks - Start triggers - Reference triggers - + Script triggers - Pause triggers Reference Clocks + configure_for_homogeneous_triggers configures the reference clocks + if they are needed. Specifically, if the internal sample clocks or + internal sample clock timebases are used, and the reference clock source + is not configured--or is set to None (no trigger + configured)--configure_for_homogeneous_triggers configures the + following: PXI--The reference clock source on all devices is set to be + the 10 MHz PXI backplane clock (PXI_CLK10). PCI--One of the devices + exports its 10 MHz onboard reference clock to RTSI 7. The reference + clock source on all devices is set to be RTSI 7. Note: If the reference + clock source is set to a value other than None, + configure_for_homogeneous_triggers cannot configure the reference + clock source. Start Triggers If the start trigger is set to None (no + trigger configured) for all sessions, the sessions are configured to + share the start trigger. The start trigger is shared by: - Implicitly + exporting the start trigger from one session - Configuring the other + sessions for digital edge start triggers with sources corresponding to + the exported start trigger - Setting + start_trigger_master_session to the session that is + exporting the trigger for all sessions If the start triggers are None + for all except one session, configure_for_homogeneous_triggers + configures the sessions to share the start trigger from the one excepted + session. The start trigger is shared by: - Implicitly exporting start + trigger from the session with the start trigger that is not None - + Configuring the other sessions for digital-edge start triggers with + sources corresponding to the exported start trigger - Setting + start_trigger_master_session to the session that is + exporting the trigger for all sessions If start triggers are configured + for all sessions, configure_for_homogeneous_triggers does not + affect the start triggers. Start triggers are considered to be + configured for all sessions if either of the following conditions is + true: - No session has a start trigger that is None - One session has a + start trigger that is None, and all other sessions have start triggers + other than None. The one session with the None trigger must have + start_trigger_master_session set to itself, indicating + that the session itself is the start trigger master Reference Triggers + configure_for_homogeneous_triggers configures sessions that support + reference triggers to share the reference triggers if the reference + triggers are None (no trigger configured) for all except one session. + The reference triggers are shared by: - Implicitly exporting the + reference trigger from the session whose reference trigger is not None - + Configuring the other sessions that support the reference trigger for + digital-edge reference triggers with sources corresponding to the + exported reference trigger - Setting + ref_trigger_master_session to the session that is + exporting the trigger for all sessions that support reference trigger If + the reference triggers are configured for all sessions that support + reference triggers, configure_for_homogeneous_triggers does not + affect the reference triggers. Reference triggers are considered to be + configured for all sessions if either one or the other of the following + conditions is true: - No session has a reference trigger that is None - + One session has a reference trigger that is None, and all other sessions + have reference triggers other than None. The one session with the None + trigger must have ref_trigger_master_session set to + itself, indicating that the session itself is the reference trigger + master Reference Trigger Holdoffs Acquisition sessions may be configured + with the reference trigger. For acquisition sessions, when the reference + trigger is shared, configure_for_homogeneous_triggers configures + the holdoff properties (which are instrument driver specific) on the + reference trigger master session so that the session does not recognize + the reference trigger before the other sessions are ready. This + condition is only relevant when the sample clock rates, sample clock + timebase rates, sample counts, holdoffs, and/or any delays for the + acquisitions are different. When the sample clock rates, sample clock + timebase rates, and/or the sample counts are different in acquisition + sessions sharing the reference trigger, you should also set the holdoff + properties for the reference trigger master using the instrument driver. + Pause Triggers + configure_for_homogeneous_triggers configures generation sessions + that support pause triggers to share them, if the pause triggers are + None (no trigger configured) for all except one session. The pause + triggers are shared by: - Implicitly exporting the pause trigger from + the session whose script trigger is not None - Configuring the other + sessions that support the pause trigger for digital-edge pause triggers + with sources corresponding to the exported pause trigger - Setting + pause_trigger_master_session to the session that is + exporting the trigger for all sessions that support script triggers If + the pause triggers are configured for all generation sessions that + support pause triggers, configure_for_homogeneous_triggers does not + affect pause triggers. Pause triggers are considered to be configured + for all sessions if either one or the other of the following conditions + is true: - No session has a pause trigger that is None - One session has + a pause trigger that is None and all other sessions have pause triggers + other than None. The one session with the None trigger must have + pause_trigger_master_session set to itself, indicating + that the session itself is the pause trigger master Note: TClk + synchronization is not supported for pause triggers on acquisition + sessions. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + ''' + return _Session().configure_for_homogeneous_triggers(sessions) + + +def finish_sync_pulse_sender_synchronize(sessions, min_time): + '''finish_sync_pulse_sender_synchronize + + Finishes synchronizing the Sync Pulse Sender. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + return _Session().finish_sync_pulse_sender_synchronize(sessions, min_time) + + +def initiate(sessions): + '''initiate + + Initiates the acquisition or generation sessions specified, taking into + consideration any special requirements needed for synchronization. For + example, the session exporting the TClk-synchronized start trigger is + not initiated until after initiate initiates all the sessions + that import the TClk-synchronized start trigger. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + ''' + return _Session().initiate(sessions) + + +def is_done(sessions): + '''is_done + + Monitors the progress of the acquisitions and/or generations + corresponding to sessions. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + + Returns: + done (bool): Indicates that the operation is done. The operation is done when each + session has completed without any errors or when any one of the sessions + reports an error. + + ''' + return _Session().is_done(sessions) + + +def setup_for_sync_pulse_sender_synchronize(sessions, min_time): + '''setup_for_sync_pulse_sender_synchronize + + Configures the TClks on all the devices and prepares the Sync Pulse Sender for synchronization + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + return _Session().setup_for_sync_pulse_sender_synchronize(sessions, min_time) + + +def synchronize(sessions, min_tclk_period): + '''synchronize + + Synchronizes the TClk signals on the given sessions. After + synchronize executes, TClk signals from all sessions are + synchronized. Note: Before using this NI-TClk method, verify that your + system is configured as specified in the PXI Trigger Lines and RTSI + Lines topic of the NI-TClk Synchronization Help. You can locate this + help file at Start>>Programs>>National Instruments>>NI-TClk. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_tclk_period (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + return _Session().synchronize(sessions, min_tclk_period) + + +def synchronize_to_sync_pulse_sender(sessions, min_time): + '''synchronize_to_sync_pulse_sender + + Synchronizes the other devices to the Sync Pulse Sender. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + min_time (hightime.timedelta, datetime.timedelta, or float in seconds): Minimal period of TClk, expressed in seconds. Supported values are + between 0.0 s and 0.050 s (50 ms). Minimal period for a single + chassis/PC is 200 ns. If the specified value is less than 200 ns, + NI-TClk automatically coerces minTime to 200 ns. For multichassis + synchronization, adjust this value to account for propagation delays + through the various devices and cables. + + ''' + return _Session().synchronize_to_sync_pulse_sender(sessions, min_time) + + +def wait_until_done(sessions, timeout): + '''wait_until_done + + Call this method to pause execution of your program until the + acquisitions and/or generations corresponding to sessions are done or + until the method returns a timeout error. wait_until_done is a + blocking method that periodically checks the operation status. It + returns control to the calling program if the operation completes + successfully or an error occurs (including a timeout error). This + method is most useful for finite data operations that you expect to + complete within a certain time. + + Args: + sessions (list of instrument-specific sessions or nitclk.SessionReference instances): sessions is an array of sessions that are being synchronized. + + timeout (hightime.timedelta, datetime.timedelta, or float in seconds): The amount of time in seconds that wait_until_done waits for the + sessions to complete. If timeout is exceeded, wait_until_done + returns an error. + + ''' + return _Session().wait_until_done(sessions, timeout) diff --git a/generated/nitclk/nitclk/unit_tests/_matchers.py b/generated/nitclk/nitclk/unit_tests/_matchers.py new file mode 100644 index 0000000000..a8740388d6 --- /dev/null +++ b/generated/nitclk/nitclk/unit_tests/_matchers.py @@ -0,0 +1,317 @@ +# -*- coding: utf-8 -*- +# This file was generated +'''Matcher classes used by unit tests in order to set mock expectations. +These work well with our visatype definitions. +''' + +import ctypes +import nitclk._visatype as _visatype +import pprint + +pp = pprint.PrettyPrinter(indent=4) + + +# Base classes + + +class _ScalarMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + print("{}: Unexpected type. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_type, type(other))) + return False + if other.value != self.expected_value: + print("{}: Unexpected value. Expected: {}. Received: {}".format(self.__class__.__name__, self.expected_value, other.value)) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class _PointerMatcher(object): + def __init__(self, expected_type): + self.expected_type = expected_type + + def __eq__(self, other): + if not isinstance(other, ctypes.POINTER(self.expected_type)): + print("Unexpected type. Expected: {}. Received: {}".format(ctypes.POINTER(self.expected_type), type(other))) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_type)) + + +class _BufferMatcher(object): + def __init__(self, expected_element_type, expected_size_or_value): + if isinstance(expected_size_or_value, int): + # Were given the size of the buffer + self.expected_value = None + self.expected_size = expected_size_or_value + else: + # Were given a list or something that behaves like a list + self.expected_value = expected_size_or_value + self.expected_size = len(expected_size_or_value) + self.expected_type = expected_element_type * self.expected_size + # Store params for __repr__ + self._expected_element_type = expected_element_type + self._expected_size_or_value = expected_size_or_value + + def __eq__(self, other): + if not isinstance(other, self.expected_type): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + # Because of object lifetimes, we may need to mock the other instance and provide lists instead of the actual array + if not isinstance(other, self.expected_type) and not isinstance(other, list): + print("Unexpected type. Expected: {} or {}. Received: {}".format(self.expected_type, list, type(other))) + return False + if self.expected_size != len(other): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(other))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for i in range(0, len(self.expected_value)): + if self.expected_value[i] != other[i]: + print("Unexpected value at index {}. Expected: {}. Received: {}".format(i, self.expected_value[i], other[i])) + return False + return True + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self._expected_element_type), pp.pformat(self._expected_size_or_value)) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_value = ' + str(self.expected_value) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Strings + + +class ViStringMatcher(object): + def __init__(self, expected_string_value): + self.expected_string_value = expected_string_value + + def __eq__(self, other): + if not isinstance(other, ctypes.Array): + # We try to "dereference" this in case it is a pointer and then do the check again. Only then saying they don't match + try: + other = other.contents + except AttributeError: + pass + + if not isinstance(other, ctypes.Array): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(other))) + return False + if len(other) < len(self.expected_string_value) + 1: # +1 for NULL terminating character + print("Unexpected length in C string. Expected at least: {}. Received {}".format(len(other), len(self.expected_string_value) + 1)) + return False + if not isinstance(other[0], bytes): + print("Unexpected type. Not a string. Received: {}".format(type(other[0]))) + return False + if other.value.decode("ascii") != self.expected_string_value: + print("Unexpected value. Expected {}. Received: {}".format(self.expected_string_value, other.value.decode)) + return False + return True + + def __repr__(self): + return '{}({})'.format(self.__class__.__name__, pp.pformat(self.expected_string_value)) + + +# Custom Type + + +def _compare_ctype_structs(expected, actual): + # From https://stackoverflow.com/questions/20986330/print-all-fields-of-ctypes-structure-with-introspection + for field in expected._fields_: + field_name = field[0] + expected_val = getattr(expected, field_name) + actual_val = getattr(actual, field_name) + if expected_val != actual_val: + print("Unexpected value field {}. Expected: {}. Received: {}".format(field_name, expected_val, actual_val)) + return False + return True + + +class CustomTypeMatcher(object): + def __init__(self, expected_type, expected_value): + self.expected_type = expected_type + self.expected_value = expected_value + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + return _compare_ctype_structs(self.expected_value, actual) + + def __repr__(self): + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_type), pp.pformat(self.expected_value)) + + +class CustomTypeBufferMatcher(object): + def __init__(self, expected_element_type, expected_value): + self.expected_value = expected_value + self.expected_size = len(expected_value) + self.expected_type = expected_element_type * self.expected_size + self.expected_element_type = expected_element_type + + def __eq__(self, actual): + if not isinstance(actual, self.expected_type): + print("Unexpected array type. Expected: {}. Received: {}".format(self.expected_type, type(actual))) + return False + if self.expected_size != len(actual): + print("Unexpected length. Expected: {}. Received: {}".format(self.expected_size, len(actual))) + return False + if self.expected_value is not None: + # Can't compare the objects directly because they're different types (one is list, another is ctypes array). + # Go element by element, which allows for reporting the first index where different values were found. + for a, e in zip(actual, self.expected_value): + if not isinstance(a, self.expected_element_type): + print("Unexpected type. Expected: {}. Received: {}".format(self.expected_element_type, type(a))) + return False + if not _compare_ctype_structs(e, a): + return False + return True + + def __repr__(self): + expected_val_repr = '[' + ', '.join([x.__repr__() for x in self.expected_value]) + ']' + return '{}({}, {})'.format(self.__class__.__name__, pp.pformat(self.expected_element_type), expected_val_repr) + + def __str__(self): + ret_str = self.__repr__() + '\n' + ret_str += ' expected_type = ' + str(self.expected_type) + '\n' + ret_str += ' expected_size = ' + str(self.expected_size) + '\n' + return ret_str + + +# Scalars + + +class ViBooleanMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViBoolean, 1 if expected_value is True else 0) + + +class ViSessionMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViSession, expected_value) + + +class ViInt16Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt16, expected_value) + + +class ViInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt32, expected_value) + + +class ViUInt32Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViUInt32, expected_value) + + +class ViAttrMatcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViAttr, expected_value) + + +class ViInt64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViInt64, expected_value) + + +class ViReal64Matcher(_ScalarMatcher): + def __init__(self, expected_value): + _ScalarMatcher.__init__(self, _visatype.ViReal64, expected_value) + + +# Pointers + + +class ViBooleanPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViBoolean) + + +class ViSessionPointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViSession) + + +class ViInt16PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt16) + + +class ViInt32PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt32) + + +class ViInt64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViInt64) + + +class ViReal64PointerMatcher(_PointerMatcher): + def __init__(self): + _PointerMatcher.__init__(self, _visatype.ViReal64) + + +# Buffers + + +class ViBooleanBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViBoolean, expected_size_or_value) + + +class ViCharBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViChar, expected_size_or_value) + + +class ViInt8BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt8, expected_size_or_value) + + +class ViInt16BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt16, expected_size_or_value) + + +class ViInt32BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt32, expected_size_or_value) + + +class ViInt64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViInt64, expected_size_or_value) + + +class ViReal64BufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViReal64, expected_size_or_value) + + +class ViSessionBufferMatcher(_BufferMatcher): + def __init__(self, expected_size_or_value): + _BufferMatcher.__init__(self, _visatype.ViSession, expected_size_or_value) + + + diff --git a/generated/nitclk/nitclk/unit_tests/_mock_helper.py b/generated/nitclk/nitclk/unit_tests/_mock_helper.py new file mode 100644 index 0000000000..0ac4e30103 --- /dev/null +++ b/generated/nitclk/nitclk/unit_tests/_mock_helper.py @@ -0,0 +1,194 @@ +# -*- coding: utf-8 -*- +# This file was generated +import sys # noqa: F401 - Not all mock_helpers will need this + + +class MockFunctionCallError(Exception): + def __init__(self, function, param=None): + self.function = function + self.param = param + msg = "{0} called without setting side_effect".format(self.function) + if param is not None: + msg += " or setting the {0} parameter return value".format(self.param) + super(Exception, self).__init__(msg) + + +class SideEffectsHelper(object): + def __init__(self): + self._defaults = {} + self._defaults['ConfigureForHomogeneousTriggers'] = {} + self._defaults['ConfigureForHomogeneousTriggers']['return'] = 0 + self._defaults['FinishSyncPulseSenderSynchronize'] = {} + self._defaults['FinishSyncPulseSenderSynchronize']['return'] = 0 + self._defaults['GetAttributeViReal64'] = {} + self._defaults['GetAttributeViReal64']['return'] = 0 + self._defaults['GetAttributeViReal64']['value'] = None + self._defaults['GetAttributeViSession'] = {} + self._defaults['GetAttributeViSession']['return'] = 0 + self._defaults['GetAttributeViSession']['value'] = None + self._defaults['GetAttributeViString'] = {} + self._defaults['GetAttributeViString']['return'] = 0 + self._defaults['GetAttributeViString']['value'] = None + self._defaults['GetExtendedErrorInfo'] = {} + self._defaults['GetExtendedErrorInfo']['return'] = 0 + self._defaults['GetExtendedErrorInfo']['errorString'] = None + self._defaults['Initiate'] = {} + self._defaults['Initiate']['return'] = 0 + self._defaults['IsDone'] = {} + self._defaults['IsDone']['return'] = 0 + self._defaults['IsDone']['done'] = None + self._defaults['SetAttributeViReal64'] = {} + self._defaults['SetAttributeViReal64']['return'] = 0 + self._defaults['SetAttributeViSession'] = {} + self._defaults['SetAttributeViSession']['return'] = 0 + self._defaults['SetAttributeViString'] = {} + self._defaults['SetAttributeViString']['return'] = 0 + self._defaults['SetupForSyncPulseSenderSynchronize'] = {} + self._defaults['SetupForSyncPulseSenderSynchronize']['return'] = 0 + self._defaults['Synchronize'] = {} + self._defaults['Synchronize']['return'] = 0 + self._defaults['SynchronizeToSyncPulseSender'] = {} + self._defaults['SynchronizeToSyncPulseSender']['return'] = 0 + self._defaults['WaitUntilDone'] = {} + self._defaults['WaitUntilDone']['return'] = 0 + + def __getitem__(self, func): + return self._defaults[func] + + def __setitem__(self, func, val): + self._defaults[func] = val + + def niTClk_ConfigureForHomogeneousTriggers(self, session_count, sessions): # noqa: N802 + if self._defaults['ConfigureForHomogeneousTriggers']['return'] != 0: + return self._defaults['ConfigureForHomogeneousTriggers']['return'] + return self._defaults['ConfigureForHomogeneousTriggers']['return'] + + def niTClk_FinishSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 + if self._defaults['FinishSyncPulseSenderSynchronize']['return'] != 0: + return self._defaults['FinishSyncPulseSenderSynchronize']['return'] + return self._defaults['FinishSyncPulseSenderSynchronize']['return'] + + def niTClk_GetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViReal64']['return'] != 0: + return self._defaults['GetAttributeViReal64']['return'] + # value + if self._defaults['GetAttributeViReal64']['value'] is None: + raise MockFunctionCallError("niTClk_GetAttributeViReal64", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViReal64']['value'] + return self._defaults['GetAttributeViReal64']['return'] + + def niTClk_GetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['GetAttributeViSession']['return'] != 0: + return self._defaults['GetAttributeViSession']['return'] + # value + if self._defaults['GetAttributeViSession']['value'] is None: + raise MockFunctionCallError("niTClk_GetAttributeViSession", param='value') + if value is not None: + value.contents.value = self._defaults['GetAttributeViSession']['value'] + return self._defaults['GetAttributeViSession']['return'] + + def niTClk_GetAttributeViString(self, session, channel_name, attribute_id, buf_size, value): # noqa: N802 + if self._defaults['GetAttributeViString']['return'] != 0: + return self._defaults['GetAttributeViString']['return'] + # value + if self._defaults['GetAttributeViString']['value'] is None: + raise MockFunctionCallError("niTClk_GetAttributeViString", param='value') + if buf_size.value == 0: + return len(self._defaults['GetAttributeViString']['value']) + value.value = self._defaults['GetAttributeViString']['value'].encode('ascii') + return self._defaults['GetAttributeViString']['return'] + + def niTClk_GetExtendedErrorInfo(self, error_string, error_string_size): # noqa: N802 + if self._defaults['GetExtendedErrorInfo']['return'] != 0: + return self._defaults['GetExtendedErrorInfo']['return'] + # error_string + if self._defaults['GetExtendedErrorInfo']['errorString'] is None: + raise MockFunctionCallError("niTClk_GetExtendedErrorInfo", param='errorString') + if error_string_size.value == 0: + return len(self._defaults['GetExtendedErrorInfo']['errorString']) + error_string.value = self._defaults['GetExtendedErrorInfo']['errorString'].encode('ascii') + return self._defaults['GetExtendedErrorInfo']['return'] + + def niTClk_Initiate(self, session_count, sessions): # noqa: N802 + if self._defaults['Initiate']['return'] != 0: + return self._defaults['Initiate']['return'] + return self._defaults['Initiate']['return'] + + def niTClk_IsDone(self, session_count, sessions, done): # noqa: N802 + if self._defaults['IsDone']['return'] != 0: + return self._defaults['IsDone']['return'] + # done + if self._defaults['IsDone']['done'] is None: + raise MockFunctionCallError("niTClk_IsDone", param='done') + if done is not None: + done.contents.value = self._defaults['IsDone']['done'] + return self._defaults['IsDone']['return'] + + def niTClk_SetAttributeViReal64(self, session, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViReal64']['return'] != 0: + return self._defaults['SetAttributeViReal64']['return'] + return self._defaults['SetAttributeViReal64']['return'] + + def niTClk_SetAttributeViSession(self, session, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViSession']['return'] != 0: + return self._defaults['SetAttributeViSession']['return'] + return self._defaults['SetAttributeViSession']['return'] + + def niTClk_SetAttributeViString(self, session, channel_name, attribute_id, value): # noqa: N802 + if self._defaults['SetAttributeViString']['return'] != 0: + return self._defaults['SetAttributeViString']['return'] + return self._defaults['SetAttributeViString']['return'] + + def niTClk_SetupForSyncPulseSenderSynchronize(self, session_count, sessions, min_time): # noqa: N802 + if self._defaults['SetupForSyncPulseSenderSynchronize']['return'] != 0: + return self._defaults['SetupForSyncPulseSenderSynchronize']['return'] + return self._defaults['SetupForSyncPulseSenderSynchronize']['return'] + + def niTClk_Synchronize(self, session_count, sessions, min_tclk_period): # noqa: N802 + if self._defaults['Synchronize']['return'] != 0: + return self._defaults['Synchronize']['return'] + return self._defaults['Synchronize']['return'] + + def niTClk_SynchronizeToSyncPulseSender(self, session_count, sessions, min_time): # noqa: N802 + if self._defaults['SynchronizeToSyncPulseSender']['return'] != 0: + return self._defaults['SynchronizeToSyncPulseSender']['return'] + return self._defaults['SynchronizeToSyncPulseSender']['return'] + + def niTClk_WaitUntilDone(self, session_count, sessions, timeout): # noqa: N802 + if self._defaults['WaitUntilDone']['return'] != 0: + return self._defaults['WaitUntilDone']['return'] + return self._defaults['WaitUntilDone']['return'] + + # Helper function to setup Mock object with default side effects and return values + def set_side_effects_and_return_values(self, mock_library): + mock_library.niTClk_ConfigureForHomogeneousTriggers.side_effect = MockFunctionCallError("niTClk_ConfigureForHomogeneousTriggers") + mock_library.niTClk_ConfigureForHomogeneousTriggers.return_value = 0 + mock_library.niTClk_FinishSyncPulseSenderSynchronize.side_effect = MockFunctionCallError("niTClk_FinishSyncPulseSenderSynchronize") + mock_library.niTClk_FinishSyncPulseSenderSynchronize.return_value = 0 + mock_library.niTClk_GetAttributeViReal64.side_effect = MockFunctionCallError("niTClk_GetAttributeViReal64") + mock_library.niTClk_GetAttributeViReal64.return_value = 0 + mock_library.niTClk_GetAttributeViSession.side_effect = MockFunctionCallError("niTClk_GetAttributeViSession") + mock_library.niTClk_GetAttributeViSession.return_value = 0 + mock_library.niTClk_GetAttributeViString.side_effect = MockFunctionCallError("niTClk_GetAttributeViString") + mock_library.niTClk_GetAttributeViString.return_value = 0 + mock_library.niTClk_GetExtendedErrorInfo.side_effect = MockFunctionCallError("niTClk_GetExtendedErrorInfo") + mock_library.niTClk_GetExtendedErrorInfo.return_value = 0 + mock_library.niTClk_Initiate.side_effect = MockFunctionCallError("niTClk_Initiate") + mock_library.niTClk_Initiate.return_value = 0 + mock_library.niTClk_IsDone.side_effect = MockFunctionCallError("niTClk_IsDone") + mock_library.niTClk_IsDone.return_value = 0 + mock_library.niTClk_SetAttributeViReal64.side_effect = MockFunctionCallError("niTClk_SetAttributeViReal64") + mock_library.niTClk_SetAttributeViReal64.return_value = 0 + mock_library.niTClk_SetAttributeViSession.side_effect = MockFunctionCallError("niTClk_SetAttributeViSession") + mock_library.niTClk_SetAttributeViSession.return_value = 0 + mock_library.niTClk_SetAttributeViString.side_effect = MockFunctionCallError("niTClk_SetAttributeViString") + mock_library.niTClk_SetAttributeViString.return_value = 0 + mock_library.niTClk_SetupForSyncPulseSenderSynchronize.side_effect = MockFunctionCallError("niTClk_SetupForSyncPulseSenderSynchronize") + mock_library.niTClk_SetupForSyncPulseSenderSynchronize.return_value = 0 + mock_library.niTClk_Synchronize.side_effect = MockFunctionCallError("niTClk_Synchronize") + mock_library.niTClk_Synchronize.return_value = 0 + mock_library.niTClk_SynchronizeToSyncPulseSender.side_effect = MockFunctionCallError("niTClk_SynchronizeToSyncPulseSender") + mock_library.niTClk_SynchronizeToSyncPulseSender.return_value = 0 + mock_library.niTClk_WaitUntilDone.side_effect = MockFunctionCallError("niTClk_WaitUntilDone") + mock_library.niTClk_WaitUntilDone.return_value = 0 diff --git a/generated/nitclk/nitclk/unit_tests/test_nitclk.py b/generated/nitclk/nitclk/unit_tests/test_nitclk.py new file mode 100644 index 0000000000..a82db0cf7d --- /dev/null +++ b/generated/nitclk/nitclk/unit_tests/test_nitclk.py @@ -0,0 +1,286 @@ +import _matchers +import _mock_helper + +import hightime +import nitclk + +from unittest.mock import MagicMock +from unittest.mock import patch + +SESSION_NUM_FOR_TEST = 42 +single_session = [SESSION_NUM_FOR_TEST] +multiple_sessions = [SESSION_NUM_FOR_TEST, SESSION_NUM_FOR_TEST * 10, SESSION_NUM_FOR_TEST * 100, SESSION_NUM_FOR_TEST + 1] + + +class NitclkSupportingDriverSession: + '''Session objects for drivers that support NI-TClk are expected to have a property of type nitclk.SessionReference called tclk + + This is why we're creating this fake driver class and adding the tclk property. + ''' + def __init__(self, session_number): + self.tclk = nitclk.SessionReference(session_number) + + +class TestNitclkApi: + class PatchedLibrary(nitclk._library.Library): + def __init__(self, ctypes_library): + super().__init__(ctypes_library) + + for f in dir(self): + if f.startswith("niTClk_") and not f.endswith("_cfunc"): + setattr(self, f, MagicMock()) + + def setup_method(self, method): + self.patched_library = self.PatchedLibrary(None) + self.patched_library_singleton_get = patch('nitclk._library_interpreter._library_singleton.get', return_value=self.patched_library) + self.patched_library_singleton_get.start() + + self.side_effects_helper = _mock_helper.SideEffectsHelper() + self.side_effects_helper.set_side_effects_and_return_values(self.patched_library) + + self._single_session_reference = [nitclk.SessionReference(x) for x in single_session] + self._multiple_session_references = [nitclk.SessionReference(x) for x in multiple_sessions] + + def teardown_method(self, method): + self.patched_library_singleton_get.stop() + + # API Tests + + def test_initialize_one_session(self): + self.patched_library.niTClk_Initiate.side_effect = self.side_effects_helper.niTClk_Initiate + nitclk.initiate(self._single_session_reference) + self.patched_library.niTClk_Initiate.assert_called_once_with(_matchers.ViUInt32Matcher(len(single_session)), _matchers.ViSessionBufferMatcher(single_session)) + return + + def test_initialize_multiple_sessions(self): + self.patched_library.niTClk_Initiate.side_effect = self.side_effects_helper.niTClk_Initiate + nitclk.initiate(self._multiple_session_references) + self.patched_library.niTClk_Initiate.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions)) + return + + def test_configure_for_homogeneous_triggers(self): + self.patched_library.niTClk_ConfigureForHomogeneousTriggers.side_effect = self.side_effects_helper.niTClk_ConfigureForHomogeneousTriggers + nitclk.configure_for_homogeneous_triggers(self._multiple_session_references) + self.patched_library.niTClk_ConfigureForHomogeneousTriggers.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions)) + return + + def test_finish_sync_pulse_sender_synchronize(self): + min_time = 0.042 + self.patched_library.niTClk_FinishSyncPulseSenderSynchronize.side_effect = self.side_effects_helper.niTClk_FinishSyncPulseSenderSynchronize + nitclk.finish_sync_pulse_sender_synchronize(self._multiple_session_references, min_time) + self.patched_library.niTClk_FinishSyncPulseSenderSynchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) + return + + def test_is_done(self): + expected_result = True + self.side_effects_helper['IsDone']['done'] = expected_result + + self.patched_library.niTClk_IsDone.side_effect = self.side_effects_helper.niTClk_IsDone + actual_result = nitclk.is_done(self._multiple_session_references) + assert actual_result == expected_result + self.patched_library.niTClk_IsDone.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViBooleanPointerMatcher()) + return + + def test_setup_for_sync_pulse_sender_synchronize(self): + min_time = 0.042 + self.patched_library.niTClk_SetupForSyncPulseSenderSynchronize.side_effect = self.side_effects_helper.niTClk_SetupForSyncPulseSenderSynchronize + nitclk.setup_for_sync_pulse_sender_synchronize(self._multiple_session_references, min_time) + self.patched_library.niTClk_SetupForSyncPulseSenderSynchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) + return + + def test_synchronize(self): + min_time = 0.042 + self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize + nitclk.synchronize(self._multiple_session_references, min_time) + self.patched_library.niTClk_Synchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) + return + + def test_synchronize_timedelta(self): + min_time = hightime.timedelta(seconds=0.042) + self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize + nitclk.synchronize(self._multiple_session_references, min_time) + self.patched_library.niTClk_Synchronize.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time.total_seconds())) + return + + def test_synchronize_to_sync_pulse_sender(self): + min_time = 0.042 + self.patched_library.niTClk_SynchronizeToSyncPulseSender.side_effect = self.side_effects_helper.niTClk_SynchronizeToSyncPulseSender + nitclk.synchronize_to_sync_pulse_sender(self._multiple_session_references, min_time) + self.patched_library.niTClk_SynchronizeToSyncPulseSender.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) + return + + def test_wait_until_done(self): + min_time = 4.2 + self.patched_library.niTClk_WaitUntilDone.side_effect = self.side_effects_helper.niTClk_WaitUntilDone + nitclk.wait_until_done(self._multiple_session_references, min_time) + self.patched_library.niTClk_WaitUntilDone.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViReal64Matcher(min_time)) + return + + # API error handling + + def test_api_error(self): + error_string = 'Error' + self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize + self.side_effects_helper['Synchronize']['return'] = -1 + self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['errorString'] = error_string + try: + nitclk.synchronize(self._multiple_session_references, 0.42) + except nitclk.Error as e: + assert e.code == -1 + assert e.description == error_string + + def test_api_get_error_description_fails(self): + self.patched_library.niTClk_Synchronize.side_effect = self.side_effects_helper.niTClk_Synchronize + self.side_effects_helper['Synchronize']['return'] = -1 + self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['return'] = -2 + try: + nitclk.synchronize(self._multiple_session_references, 0.42) + except nitclk.Error as e: + assert e.code == -1 # we want the original error code from getting the attribute. + assert e.description == "Failed to retrieve error description." + + # SessionReference error handling + + def test_session_reference_error(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + error_string = 'Error' + self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 + self.side_effects_helper['GetAttributeViReal64']['return'] = -1 + self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['errorString'] = error_string + try: + test = session.sample_clock_delay + print(test) # Get rid of flake8 F841 + assert False + except nitclk.Error as e: + assert e.code == -1 + assert e.description == error_string + + def test_session_reference_get_error_description_fails(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 + self.side_effects_helper['GetAttributeViReal64']['return'] = -1 + self.patched_library.niTClk_GetExtendedErrorInfo.side_effect = self.side_effects_helper.niTClk_GetExtendedErrorInfo + self.side_effects_helper['GetExtendedErrorInfo']['return'] = -2 + try: + test = session.sample_clock_delay + print(test) # Get rid of flake8 F841 + assert False + except nitclk.Error as e: + assert e.code == -1 # we want the original error code from getting the attribute. + assert e.description == "Failed to retrieve error description." + + # Session Reference + + def test_set_vi_real64(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_SetAttributeViReal64 + attribute_id = 8 + test_number = 4.2 + session.tclk_actual_period = test_number + self.patched_library.niTClk_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) + + def test_get_vi_real64(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 + attribute_id = 8 + test_number = 4.2 + self.side_effects_helper['GetAttributeViReal64']['value'] = test_number + attr_val = session.tclk_actual_period + assert attr_val == test_number + self.patched_library.niTClk_GetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64PointerMatcher()) + + def test_set_timedelta_as_vi_real64(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_SetAttributeViReal64 + attribute_id = 11 + test_number = 4.2 + session.sample_clock_delay = test_number + self.patched_library.niTClk_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) + + def test_set_timedelta_as_timedelta(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_SetAttributeViReal64 + attribute_id = 11 + test_number = 4.2 + session.sample_clock_delay = hightime.timedelta(seconds=test_number) + self.patched_library.niTClk_SetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64Matcher(test_number)) + + def test_get_timedelta(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_GetAttributeViReal64.side_effect = self.side_effects_helper.niTClk_GetAttributeViReal64 + attribute_id = 11 + test_number = 4.2 + self.side_effects_helper['GetAttributeViReal64']['value'] = test_number + attr_timedelta = session.sample_clock_delay + assert attr_timedelta.total_seconds() == test_number + self.patched_library.niTClk_GetAttributeViReal64.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViReal64PointerMatcher()) + + def test_set_vi_string(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViString.side_effect = self.side_effects_helper.niTClk_SetAttributeViString + attribute_id = 13 + test_string = "The answer to the ultimate question is 42" + session.sync_pulse_sender_sync_pulse_source = test_string + self.patched_library.niTClk_SetAttributeViString.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViStringMatcher(test_string)) + + def test_get_vi_string(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_GetAttributeViString.side_effect = self.side_effects_helper.niTClk_GetAttributeViString + attribute_id = 13 + test_string = "The answer to the ultimate question is 42" + self.side_effects_helper['GetAttributeViString']['value'] = test_string + attr_string = session.sync_pulse_sender_sync_pulse_source + assert attr_string == test_string + + from unittest.mock import call + calls = [call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(0), None), call(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViInt32Matcher(len(test_string)), _matchers.ViCharBufferMatcher(len(test_string)))] + self.patched_library.niTClk_GetAttributeViString.assert_has_calls(calls) + assert self.patched_library.niTClk_GetAttributeViString.call_count == 2 + + # All ViInt32 attributes are really sessions references + def test_set_vi_session_with_int(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViSession.side_effect = self.side_effects_helper.niTClk_SetAttributeViSession + other_session_number = 43 + # We do not support using just the number + try: + session.start_trigger_master_session = other_session_number + assert False + except TypeError: + pass + + def test_set_vi_session_with_session_reference(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViSession.side_effect = self.side_effects_helper.niTClk_SetAttributeViSession + attribute_id = 3 + other_session_number = 43 + other_session_reference = nitclk.SessionReference(other_session_number) + session.start_trigger_master_session = other_session_reference + self.patched_library.niTClk_SetAttributeViSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViSessionMatcher(other_session_number)) + + def test_set_vi_session_with_session(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_SetAttributeViSession.side_effect = self.side_effects_helper.niTClk_SetAttributeViSession + attribute_id = 3 + other_session_number = 43 + other_session = NitclkSupportingDriverSession(other_session_number) + session.start_trigger_master_session = other_session + self.patched_library.niTClk_SetAttributeViSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViSessionMatcher(other_session_number)) + + def test_get_tclk_session_reference(self): + session = nitclk.SessionReference(SESSION_NUM_FOR_TEST) + self.patched_library.niTClk_GetAttributeViSession.side_effect = self.side_effects_helper.niTClk_GetAttributeViSession + attribute_id = 3 + other_session_number = 43 + self.side_effects_helper['GetAttributeViSession']['value'] = other_session_number + attr_session_reference = session.start_trigger_master_session + assert type(attr_session_reference) is nitclk.SessionReference + assert attr_session_reference._get_tclk_session_reference() == other_session_number + self.patched_library.niTClk_GetAttributeViSession.assert_called_once_with(_matchers.ViSessionMatcher(SESSION_NUM_FOR_TEST), _matchers.ViStringMatcher(''), _matchers.ViAttrMatcher(attribute_id), _matchers.ViSessionPointerMatcher()) + + + + diff --git a/generated/nitclk/setup.py b/generated/nitclk/setup.py new file mode 100644 index 0000000000..a18498adbc --- /dev/null +++ b/generated/nitclk/setup.py @@ -0,0 +1,55 @@ +#!/usr/bin/python +# This file was generated + + +from setuptools import setup + + +pypi_name = 'nitclk' + + +def read_contents(file_to_read): + with open(file_to_read, 'r') as f: + return f.read() + + +setup( + name=pypi_name, + zip_safe=True, + version='1.5.1.dev0', + description='NI-TClk Python API', + long_description=read_contents('README.rst'), + long_description_content_type='text/x-rst', + author='NI', + author_email="opensource@ni.com", + url="https://github.com/ni/nimi-python", + maintainer="NI", + maintainer_email="opensource@ni.com", + keywords=['nitclk'], + license='MIT', + include_package_data=True, + packages=['nitclk'], + python_requires='>=3.10', + install_requires=[ + 'hightime>=0.2.0', + ], + classifiers=[ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Intended Audience :: Manufacturing", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: MIT License", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Scientific/Engineering :: Instrument Drivers", + "Topic :: System :: Hardware :: Hardware Drivers" + ], + package_data={pypi_name: ['VERSION']}, +) diff --git a/generated/nitclk/tox-system_tests.ini b/generated/nitclk/tox-system_tests.ini new file mode 100644 index 0000000000..821b25e8dd --- /dev/null +++ b/generated/nitclk/tox-system_tests.ini @@ -0,0 +1,72 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox -c tox-system_tests.ini" from the driver directory. (generated/nitclk) +[tox] +envlist = py{310,311,312,313,314}-nitclk-wheel_dep,py{310,311,312,313,314}-nitclk-system_tests, py314-nitclk-coverage +skip_missing_interpreters=True +ignore_basepython_conflict=True +# We put the .tox directory outside of the Jenkins workspace so that it isn't wiped with the rest of the repo +toxworkdir = ../../../.tox + +[testenv] +description = + nitclk-wheel_dep: Build the niscope wheel because we use it in nitclk tests + nitclk-system_tests: Run nitclk system tests (requires NI-TClk runtime to be installed) + nitclk-coverage: Prepare coverage report for upload to codecov.io # upload handled by GitHub Actions + +changedir = + nitclk-wheel_dep: ../niscope + nitclk-system_tests: . + nitclk-coverage: . + +commands = + nitclk-wheel_dep: python -m build --wheel + + # --disable-pip-version-check prevents pip from telling us we need to upgrade pip, since we are doing that now + nitclk-system_tests: python -m pip install --disable-pip-version-check --upgrade pip + nitclk-system_tests: python ../../tools/install_local_wheel.py --driver niscope --start-path ../.. + nitclk-system_tests: python -c "import nitclk; nitclk.print_diagnostic_information()" + nitclk-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nitclk --parallel-mode -m pytest ../../src/nitclk/examples --junitxml=../junit/junit-nitclk-{envname}-examples-{env:BITNESS:64}.xml {posargs} + nitclk-system_tests: coverage run --rcfile=../../tools/coverage_system_tests.rc --source nitclk --parallel-mode -m pytest ../../src/nitclk/system_tests -c tox-system_tests.ini --junitxml=../junit/junit-nitclk-{envname}-{env:BITNESS:64}.xml --durations=5 -p system_test_pytest_delay_terminate_plugin {posargs} + + nitclk-coverage: coverage combine --rcfile=../../tools/coverage_system_tests.rc ./ + # Create the report to upload + nitclk-coverage: coverage xml -i --rcfile=../../tools/coverage_system_tests.rc + # Display the coverage results + nitclk-coverage: coverage report --rcfile=../../tools/coverage_system_tests.rc + +deps = + nitclk-wheel_dep: build + + nitclk-system_tests: pytest < 9.2.0 + nitclk-system_tests: coverage + nitclk-system_tests: numpy + nitclk-system_tests: hightime + nitclk-system_tests: fasteners + nitclk-system_tests: pytest-json + + nitclk-coverage: coverage + +depends = + nitclk-coverage: py{310,311,312,313,314}-nitclk-system_tests + nitclk-system_tests: py{310,311,312,313,314}-nitclk-wheel_dep, + +passenv = + GIT_BRANCH + GIT_COMMIT + BUILD_URL + BRANCH_NAME + JENKINS_URL + BUILD_NUMBER + +setenv = + PYTHONPATH = ../../src/shared + +[pytest] +addopts = --verbose +filterwarnings = + error::pytest.PytestUnhandledThreadExceptionWarning +norecursedirs = .* build dist CVS _darcs {arch} *.egg venv +junit_suite_name = nimi-python +junit_family = xunit1